Features:
- Core
- • Ultra-high speed 8051 Core with single clock per machine cycle, which is called 1T and the speed is about 12 times faster than
traditional 8051
- • Fully compatible instruction set with traditional 8051
- • 22 interrupt sources and 4 interrupt priority levels
- • Online debugging is supported
- Operating voltage
- • 1.9 to 5.5V
- Operating temperature
- • -40℃ ~ + 85℃(The chip is produced in -40℃~125℃ process. Please refer to the description of the electrical characteristics
chapter for applications beyond the temperature range)
- Flash memory
- • Up to 64Kbytes of Flash memory to be used to store user code
- • Configurable EEPROM size, 512bytes single page erased, can be repeatedly erased more than
100 thousand times.
- • In-System-Programming, ISP in short, can be used to update the application code, no need for programmer.
- • Online debugging with single chip is supported, and no emulator is needed. The number of
breakpoints is unlimited theoretically.
- SRAM
- • 128 bytes internal direct access RAM (DATA, use keyword data to declare in C language program)
- • 128 bytes internal indirect access RAM(IDATA, use keyword idata to declare in C language program)
- • 8192 bytes internal extended RAM (internal XDATA, use keyword xdata to declare in C language program)
- • 1280 bytes USB Data RAM
- Clock
- • Internal high precise RC clock IRC(IRC for short, ranges from 4MHz to 45MHz), adjustable while ISP and can be divided to
lower frequency by user software, 100KHz for instance.
- – Error:±0.3% (at the temperature 25℃)
- – -1.35%~+1.30% temperature drift (at the temperature range of -40°C to +85°C))
- – -0.76%~+0.98% temperature drift (at the temperature range of -20℃ to 65℃)
- • Internal 32KHz low speed IRC with large error
- • External crystal (4MHz~33MHz) and external clock
- • Users can freely choose the above 3 clock sources
- Reset
- • Hardware reset
- – Power-on reset. Measured voltage is 1.69V~1.82V. (Effective when the chip does not enable the low voltage reset
function)
- – Reset by reset pin. The default function of P5.4 is the I/O port. The P5.4 pin can be set as the reset pin while ISP
download. (Note: When the P5.4 pin is set as the reset pin, the reset level is low.)
- – Watch dog timer reset
- – Low voltage detection reset. 4 low voltage detection levels are provided, 2.0V, 2.4V, V2.7,V3.0
- • Software reset
- – Writing the reset trigger register using software
- Interrupts
- • 22 interrupt sources: INT0(Supports rising edge and falling edge interrupt), INT1(Supports rising edge and falling edge
interrupt), INT2(Supports falling edge interrupt only), INT3(Supports falling edge interrupt only), INT4(Supports falling edge
interrupt only), timer 0, timer 1, timer 2, timer 3, timer 4, UART 1, UART 2, UART 3, UART 4, ADC, LVD, SPI, I2C,
comparator, PWMA, PWMB, USB
- • 4 interrupt priority levels
- • Interrupts that can wake up the CPU in clock stop mode: INT0(P3.2), INT1(P3.3), INT2(P3.6), INT3(P3.7), INT4(P3.0),
T0(P3.4), T1(P3.5), T2(P1.2), T3(P0.4), T4(P0.6), RXD(P3.0/P3.6/P1.6/P4.3), RXD2(P1.0/P4.6), RXD3(P0.0/P5.0),
RXD4(P0.2/P5.2), I2C_SDA(P1.4/P2.4/P3.3), Comparator interrupt, LVD interrupt, Power-down wake-up timer.
- Digital peripherals
- • 5 16-bit timers: timer0, timer1, timer2, timer3, timer4, where the mode 3 of timer 0 has the Non-Maskable Interrupt (NMI in
short) function. Mode 0 of timer 0 and timer 1 is 16-bit Auto-reload mode.
- • 4 high speed UARTs: UART1, UART 2, UART 3, UART 4, whose maximum baudrate may be FOSC/4.
- • 8 channels/2 groups of enhanced PWMs, which can realize control signals with dead time, and support external fault
detection function. In addition, it also supports 16-bit timers, 8 external interrupts, 8 external captures and pulse width
measurement functions.
- • SPI: Master mode, slave mode or master/slave automatic switch mode are supported.
- • I2C: Master mode or slave mode are supported.
- • MDU16: Hardware 16-bit Multiplier and Divider which supports 32-bit divided by 16-bit, 16-bit divided by 16-bit, 16-bit
multiplied by 16-bit, data shift, and data normalization operations.
- • USB: USB2.0/USB1.1 compatible with full speed USB, 6 two-way endpoints, support 4 endpoint transmission modes (control
transmission, interrupt transmission, batch Quantum and synchronous transfers), each endpoint has a 64 byte buffer
- • RTC: Support year, month, day, hour, minute, second, sub-second (1/128 second). And supports clock interrupt and a set of
alarm clocks (Note: A version of the chip does not have this function)
- • I/O port interrupt: All I/Os support interrupts, each group of I/O interrupts has an independent interrupt entry address, all I/O
interrupts can support 4 types interrupt mode: high level interrupt, low level interrupt, rising edge interrupt, falling edge
interrupt. (Note: The I/O port interrupts of the STC8H3K64S2 series A version of the chip cannot wake up CPU from powerdown.
The I/O port interrupts of the B version chip can wake up CPU from power-down, but only have one level of interrupt
priority)
- • DMA: support Memory-To-Memory, SPI, UART1TX/UART1RX, UART2TX/UART2RX, UART3TX/UART3RX,
UART4TX/UART4RX, ADC(Automatically calculates the average of multiple ADC results), LCM (Note: A version of the
chip does not have this function)
- • LCM (TFT color screen) dirver: support 8080 and 6800 interface, and support 8-bit and 16-bit data width (Note: A version of
the chip does not have this function)
- – 8 bits 8080 data bus: 8 bits data lines (TD0~TD7), READ signael (TRD)c WRITE signal (TWR), RS line (TRS)
- – 16 bits 8080 bus: 16 bits data lines (TD0~TD15), READ signael (TRD)c WRITE signal (TWR), RS line (TRS)
- – 8 bits 6800 bus: 8 bits data lines (TD0~TD7), enable signal (TE) , READ and WRITE signal (TRW) , RS line (TRS)
- – 16 bits 6800 bus: 16 bits data lines (TD0~TD15), enable signal (TE) , READ and WRITE signal (TRW) , RS line (TRS)
- – Note: If you use 8-bit data lines to control the TFT screen, you generally need TD0~D7, TRD/TWR/TRS, 11 data and control lines, plus 2 common I/Os to control chip selection and reset (many TFT color screen chip selections and reset
manufacturer has carried out automatic processing, does not need software control)
- Analog peripherals
- • Ultra high speed ADC which supports 12-bit precision 12 channels analog-to-digital convertor (channel 0 to channel 2, channel
6 to channel 14. No channel 3 and channel 5 because P1.3, P1.4 and P1.5 do not exist ). The maximum speed can be
800K(800K ADC conversions per second)
- • Channel 15 of ADC is used to test the internal reference voltage. (The default internal reference voltage is 1.19V when the chip
is shipped)
- • Comparator. A set of comparator (For A version of the chip, the CMP+ port and all ADC input ports can be selected as the
positive terminal of the comparator, the CMP- port and the internal reference voltage 1.19V can be selected as the negative
terminal of the comparator. For B version of the chip, the CMP+, CMP+_2, CMP+_3 port and all ADC input ports can be
selected as the positive terminal of the comparator, the CMP- port and the internal reference voltage 1.19V can be selected as
the negative terminal of the comparator. So the comparator can be used as a multi-channel comparator for time division
multiplexing)
- • DAC: 8 channels advanced PWMs timers can be used as 8 channels DAC
- GPIO
- • Up to 61 GPIOs: P0.0~P0.7, P1.0~ P1.7(no P1.2), P2.0~P2.7, P3.0~P3.7, P4.0~P4.7, P5.0~P5.4, P6.0~P6.7, P7.0~P7.7
- • 4 modes for all GPIOs: quasi-bidirectional mode, push-pull output mode, open drain mode,
high-impedance input mode
- • Except for P3.0 and P3.1, all other I/O ports are in a high-impedance state after power-on. User must set the I/O ports mode
before using them. In addition, the internal 4K pull-up resistor of every I/O can be enabled independently.
- Package
- • LQFP64 , QFN64 , LQFP48 , QFN48 , LQFP32 , TSSOP20
Product Documents:
General Overview: STC8H8K64U_Features.pdf
Data Sheet:STC8H8K64U.pdf
ROSH:
SCH/PCB: STC SCH/PCB library
Sample Code:
library Function: STC8H4K64U library function
Dome Code: STC8H4K64U Dome Code
STC8H8K64U series Selection Table:
Type
1T 8051
MCU |
Oper
ating
Voltage
(V) |
Flash
(byte) |
S
R
A
M
(byte) |
U
A
R
T |
S
P
I
|
Full
speed USB
|
M D U
16 |
T
I
M
E
R |
P
W M |
Power
-down
wake
-up
timer
|
I2C |
Comp
-arat
ors(1
A/D,
ext
brow -nout
detec -tion) |
A/D 12-
ch |
W
D T |
D
P
T R |
E E P R O M |
Inter
-nal
LVD
Inter
-rupt
(can
wake -up CPU) |
Prog -ram
encry
-pted
transm
-ission
(Anti- bloc -king)
|
Internal
High-
reliable
Reset
(with
optional
thres
-hold voltage) |
Inter
-nal
High-
Pre
cise
Clock |
Clock
out -put
and
Reset
|
Supp
-ort
USB
down
-load |
Supp
-ort
RS485
down
-load |
STC8H8K64U series MCU Selection and Price Table
Note: |
STC8H8K32U |
1.9-5.5 |
32K |
8.2K |
4 |
Y |
Y |
Y |
5 |
8 |
Y |
Y |
Y |
12b |
Y |
2 |
32K |
Y |
Y |
4-level |
Y |
Y |
Y |
Y |
STC8H8K48U |
1.9-5.5 |
48K |
8.2K |
4 |
Y |
Y |
Y |
5 |
8 |
Y |
Y |
Y |
12b |
Y |
2 |
16K |
Y |
Y |
4-level |
Y |
Y |
Y |
Y |
STC8H8K60U |
1.9-5.5 |
60K |
8.2K |
4 |
Y |
Y |
Y |
5 |
8 |
Y |
Y |
Y |
12b |
Y |
2 |
4K |
Y |
Y |
4-level |
Y |
Y |
Y |
Y |
STC8H8K64U |
1.9-5.5 |
64K |
8.2K |
4 |
Y |
Y |
Y |
5 |
8 |
Y |
Y |
Y |
12b |
Y |
2 |
IAP |
Y |
Y |
4-level |
Y |
Y |
Y |
Y |
Sample & Buy:
Sample: Sample Request Form
Buy : Buy Online