Editor Version ×
Standard

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators

Profession

1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 5,000 devices or 10,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Ongoing

STD STC8H8K64U 45I Development Board

License: CC BY-SA 3.0

Mode: Editors' pick

  • 276
  • 0
  • 0
Update time: 2023-12-22 15:51:33
Creation time: 2023-12-05 17:45:43
Description
# STC8H8K64U-45I-TSSOP20 Development Board Development board for the STC8H8K64U low-cost 8-bit 8051 core microcontroller with native full-speed USB 2.0 and factory built-in USB bootloader. - Project files (Github): https://github.com/wagiminator/Development-Boards/tree/main/STC8H8K64U_DevBoard ![STC8H8K64U_DevBoard_pic1.jpg](https://raw.githubusercontent.com/wagiminator/Development-Boards/main/STC8H8K64U_DevBoard/documentation/STC8H8K64U_DevBoard_pic1.jpg) # Pinout ![STC8H8K64U_DevBoard_pinout.png](https://raw.githubusercontent.com/wagiminator/Development-Boards/main/STC8H8K64U_DevBoard/documentation/STC8H8K64U_DevBoard_pinout.png) # The STC8H8K64U Family of 8-bit 8051 USB2.0 Microcontrollers ## Overview The STC8H8K64U series is a cost-effective family of 8-bit microcontrollers with an ultra-high speed 8051 core that is compatible with the MCS51 instruction set. These microcontrollers offer an average instruction speed that is approximately 12 times faster than the traditional 8051, with most instructions requiring only one clock cycle for execution. They support clock frequencies of up to 40MHz, operate within a voltage range of 1.9V to 5.5V, and come equipped with standard peripherals such as a 12-bit ADC, analog comparator, multiple timers, PWM, DMA, UART, SPI, and I2C. Additionally, these microcontrollers feature a built-in bootloader, allowing firmware to be uploaded directly via the native full-speed USB 2.0 interface without the need for an extra programming device. ## Features - Ultra-high-speed 8051 core with single clock per machine cycle (1T) - Fully compatible instruction set with the traditional 8051 - Maximum 40MHz system main frequency - 64KB Flash for user code (CODE) - 128 bytes internal direct access SRAM (DATA) - 128 bytes internal indirect access SRAM (IDATA) - 8192 bytes internal extended SRAM (XDATA) - 1280 bytes USB data RAM (FIFO) - Up to 32KB EEPROM (size configurable), can be erased more than 100,000 times - Operating voltage: 1.9V - 5.5V - Internal high-precision RC clock (IRC), adjustable to a max of 45MHz, error ±0.3% - Internal high-precision 48MHz clock (IRC48M) for USB module - Internal 32KHz low-speed oscillator (LSI) with a large error - External 4MHz - 33MHz oscillator or external clock (HSE) - Hardware 16-bit multiplier and divider (MDU16) - Enhanced dual 16-bit data pointer with auto-increment/auto-decrement and auto-switch - Direct memory access (DMA) controller, supports MEM-to-MEM, UART, SPI, ADC, LCM - Power-on reset, programmable low-voltage detector - 22 interrupt sources and 4 interrupt priority levels - Multiple low-power modes: Idle, Stop - Up to 61 GPIOs - 4 modes for all GPIOs: quasi-bidirectional, push-pull output, open-drain, high-impedance input - 8 channels enhanced 16-bit PWM, complementary output with dead time, external pulse width measurement - 5x 16-bit timers with multiple operating modes - 1x watchdog timer - 1x real-time clock (RTC) with calendar and alarm functions - 1x USB2.0/USB1.1 full-speed device interface, 6 two-way endpoints with 64 byte FIFO each - 4x UART interface, max baud rate F_CPU/4 - 1x SPI interface, master and slave mode - 1x I2C interface, master and slave mode - 1x 12-bit ADC, 14 channels + internal 1.19V reference voltage, 800ksps - 1x set of comparators - LCM (TFT color screen) driver, supports 8080 and 6800 interface, 8-bit and 16-bit data width - Factory-built-in USB bootloader # Compiling, Programming and Debugging ## SDCC Toolchain For compiling install the SDCC compiler. On Linux (Debian-based), this can be done with the following command: ``` sudo apt install build-essential sdcc ``` ## Factory built-in USB Bootlader The MCU has an embedded bootloader with USB interface, which can be used to upload firmware. The Python tool [stc8usb.py](https://github.com/wagiminator/MCU-Flash-Tools) included with the example software can be used for this purpose. In order for this ISP tool to work, Python3 must be installed on your system. To do this, follow these [instructions](https://www.pythontutorial.net/getting-started/install-python/). In addition [pyhidapi](https://pypi.org/project/hid/) must be installed. On Linux (Debian-based), all of this can be done with the following commands: ``` sudo apt install python3 python3-pip python3 -m pip install hid ``` Because the USB bootloader functions as a Human Interface Device (HID), there's no need to install drivers. However, Linux doesn't initially grant sufficient permissions to access the bootloader. To resolve this issue, open a terminal and execute the following commands: ``` echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="34bf", ATTR{idProduct}=="1001", MODE="666"' | sudo tee /etc/udev/rules.d/99-STC-ISP.rules sudo udevadm control --reload-rules ``` You can also utilize the manufacturer's proprietary programming tool, [STC ISP](https://www.stcmicro.com/rjxz.html), for programming the MCU. To initiate new uploads, the bootloader needs to be manually started. Begin by unplugging the board from the USB port and disconnecting all power sources. Then, press and hold the BOOT button while reconnecting the board to your PC's USB port. This action triggers the chip to enter bootloader mode. Once in this mode, you can release the BOOT button and proceed to upload new firmware via USB. ## Arduino IDE Support An Arduino core for the STC8H series can be found [here](https://github.com/ma6254/Arduino_Core_STC). # References, Links and Notes - [EasyEDA Design Files](https://oshwlab.com/wagiminator) - [STC Product Page](https://stcmicro.com/stc/stc8h8k64u.html) - [STC ISP Software](https://www.stcmicro.com/rjxz.html) - [MCU Templates](https://github.com/wagiminator/MCU-Templates) - [MCU Flash Tools](https://github.com/wagiminator/MCU-Flash-Tools) - [Arduino Support](https://github.com/ma6254/Arduino_Core_STC) ![STC8H8K64U_DevBoard_pic2.jpg](https://raw.githubusercontent.com/wagiminator/Development-Boards/main/STC8H8K64U_DevBoard/documentation/STC8H8K64U_DevBoard_pic2.jpg) ![STC8H8K64U_DevBoard_pic3.jpg](https://raw.githubusercontent.com/wagiminator/Development-Boards/main/STC8H8K64U_DevBoard/documentation/STC8H8K64U_DevBoard_pic3.jpg) # License ![license.png](https://i.creativecommons.org/l/by-sa/3.0/88x31.png) This work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License. (http://creativecommons.org/licenses/by-sa/3.0/)
Design Drawing
schematic diagram
1 /
PCB
1 /
The preview image was not generated, please save it again in the editor.
ID Name Designator Footprint Quantity Supplier JLCPCB Part Class Contributor
1 100n C1,C3 C_0603 2 LCSC C14663 CC0603KRX7R9BB104
2 10n C2 C_0603 1 LCSC C57112 CC0603KRX7R9BB104
3 10u C4 C_0603 1 LCSC C19702 CC0603KRX7R9BB104
4 HDR-M-2.54_1x10 H1,H2 210S-10X1/2.54 2 LCSC C57369 HDR-M-2.54_1x10
5 PWR LED1 LED0603 1 LCSC C72043 LED-0603-GREEN
6 P34 LED2 LED0603 1 LCSC C2286 LED-0603-RED
7 1k R1,R2 0603 2 LCSC C21190 Res_0603(1/10W)_EU
8 22R R3,R4 0603 2 LCSC C23345 Res_0603(1/10W)_EU
9 10k R5 0603 1 LCSC C25804 Res_0603(1/10W)_EU
10 300R R6 0603 1 LCSC C23025 Res_0603(1/10W)_EU
11 BOOT SW1 SW-SMD_L4.0-W2.9-LS5.0 1 LCSC C967786 SW-4.0x2.9
12 STC8H8K64U-45I-TSSOP20 U1 TSSOP-20 1 LCSC C5210758 STC8H8K64U-45I-TSSOP20 https://lcsc.com/eda_search?q=C5210758&%26type=1&ref=editor
13 Micro Input USB1 MINI-USB-SMD_U254-051T-4BH23-S2B 1 LCSC C319164 U254-051T-4BH23-S2B

Unfold

Project Attachments
Empty
Project Members
Target complaint
Related Projects
Change a batch
Loading...
Add to album ×

Loading...

reminder ×

Do you need to add this project to the album?

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn