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
Metadata
Release files for stc8isp 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stc8isp-0.3.1.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stc8isp-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.0 kB
Release files / stc8isp-0.3.1.tar.gz
| Download URL | stc8isp-0.3.1.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f5ca81678de0aebf02b8bf66d4589062dac6a3e38a834a5eebb89df90fa505d
|
|
BLAKE2b-256 checksum How to use checksums |
ed265798d8398a88f2f0916c9ed688cf1266f337e8b0d350e66c0006b5405230
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / stc8isp-0.3.1-py3-none-any.whl
| Download URL | stc8isp-0.3.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaaa62ef952e4b06b3ba1117f1d42a150ddc2fd4cf5646b3bfb50f6fba37035c
|
|
BLAKE2b-256 checksum How to use checksums |
5007efc4c8d88e3f58f1c0663bf7ef49e694c5d47b052de48a0be1028a965d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|