Skip to main content

Programming Tool for STC8G/8H Microcontrollers

Project description

stc8isp - 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 bootloader.

Preparations

If necessary, a driver for the USB-to-serial converter used must be installed.

Installation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stc8isp-0.3.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

stc8isp-0.3.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file stc8isp-0.3.0.tar.gz.

File metadata

  • Download URL: stc8isp-0.3.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for stc8isp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1bcf48090bb7a52a66d5bddc7922ffba062f93441459206a3ac13aedd8b5f429
MD5 aef1e43109e8b3b6216820f3191e743b
BLAKE2b-256 34ef8c8b868c7e235ce39ee9b6bd0609dd3866eda3193d82b57696fe6dd90268

See more details on using hashes here.

File details

Details for the file stc8isp-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: stc8isp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for stc8isp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf9a7a90d7a0a86f9b19d33ef42a007755e32793e7e921faaf6fa8d904a8f578
MD5 bb2ff1e0c0ea2bed315c46802e65c7ad
BLAKE2b-256 3c6f9d9ae45693e2688e859718601e75ea6fad6e6190820367f1618ed6303bff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page