Programming Tool for STC8G/8H Microcontrollers
Project description
Programming Tool for STC8G/8H Microcontrollers
Description
With this tool, STC8G/8H microcontrollers can be flashed via a simple USB-to-serial converter by utilizing the factory built-in embedded UART bootloader.
Preparations
If necessary, a driver for the USB-to-serial converter used must be installed.
Installation
Ensure that the prerequisites for installing Python packages are met. Then execute the following command in the command line:
pip install stc8isp
Usage
- Connect your USB-to-serial converter to your MCU as shown below.
- Run stc8isp.py (see below for arguments).
- Perform a power cycle of your MCU (reconnect to power) when prompted.
USB2SERIAL STC8G/8H
+--------+ +------+
| VCC| --/ --> |VCC | interruptible (for power cycle)
| RXD| --|R|-- |P3.1 | resistor (100R - 1000R)
| TXD| --|<|-- |P3.0 | diode (e.g. 1N5819)
| GND| ------- |GND | common ground
+--------+ +------+
Usage: stc8isp [-h] [-p PORT] [-t TRIM] [-e] [-f FLASH]
Optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT set COM port (default: /dev/ttyUSB0)
-t TRIM, --trim TRIM trim IRC to frequency in Hz (128000 - 36000000)
-e, --erase perform chip erase (implied with -f)
-f FLASH, --flash FLASH write BIN file to flash
Example:
stc8isp -p /dev/ttyUSB0 -t 24000000 -f firmware.bin
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stc8isp-0.3.1.tar.gz.
File metadata
- Download URL: stc8isp-0.3.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f5ca81678de0aebf02b8bf66d4589062dac6a3e38a834a5eebb89df90fa505d
|
|
| MD5 |
d7f070d7389edef151ae55d29164dd7e
|
|
| BLAKE2b-256 |
ed265798d8398a88f2f0916c9ed688cf1266f337e8b0d350e66c0006b5405230
|
File details
Details for the file stc8isp-0.3.1-py3-none-any.whl.
File metadata
- Download URL: stc8isp-0.3.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaaa62ef952e4b06b3ba1117f1d42a150ddc2fd4cf5646b3bfb50f6fba37035c
|
|
| MD5 |
5e847a07b5e0123dded7dfa79d0a1436
|
|
| BLAKE2b-256 |
5007efc4c8d88e3f58f1c0663bf7ef49e694c5d47b052de48a0be1028a965d3f
|