STC8A8K64D4 Series Manual
Contents
1 Overview
........................................................................................................................................................1
2 Features, Price and Pins ................................................................................................................................. 2
2.1 STC8A8K64D4-64Pin/48Pin family ....................................................................................................... 2
2.1.1 Features and Price(Quasi 16-bit MCU with 16-bit hardware multiplier and divider MDU16) ...... 2
2.1.2 Pinouts ............................................................................................................................................ 5
2.1.3 Pin descriptions .............................................................................................................................. 9
3 Function pins switch...................................................................................................................................... 15
3.1 Register related to function pin switch .................................................................................................. 15
3.1.1 Bus Speed Control Register (BUS_SPEED) ................................................................................ 15
3.1.2 Peripheral port switch register 1(P_SW1) (for UART1, CCP, SPI switching) ............................. 15
3.1.3 Peripheral port switch register 2(P_SW2) (for UART2/3/4, I2C, Comparator output switching) 16
3.1.4 Clock selection register(MCLKOCR) .......................................................................................... 16
3.1.5 Enhanced PWM Control Register (PWMnCR) ............................................................................ 17
3.1.6 LCM Interface Configuration Register (LCMIFCFG) ................................................................. 18
3.2 Example Routines .................................................................................................................................. 19
3.2.1 USART1 switch ............................................................................................................................ 19
3.2.2 USART2 switch ............................................................................................................................ 20
3.2.3 UART3 switch .............................................................................................................................. 22
3.2.4 UART4 switch .............................................................................................................................. 23
3.2.5 SPI switch ..................................................................................................................................... 25
3.2.6 PWM switch ................................................................................................................................. 26
3.2.7 PCA/CCP/PWM switch ................................................................................................................ 29
3.2.8 I2C switch ..................................................................................................................................... 30
3.2.9 Comparator output switch ............................................................................................................ 32
3.2.10 Main clock output switch ........................................................................................................... 33
4 Package Dimensions ...................................................................................................................................... 36
4.1 LQFP44 Package mechanical data (12mm*12mm) ............................................................................... 36
4.2 LQFP48 Package mechanical data9mm*9mm .............................................................................. 37
4.3 QFN48 Package mechanical data (6mm*6mm) .................................................................................... 38
4.4 LQFP64 Package mechanical data12mm*12mm .......................................................................... 39
4.5 QFN64 Package mechanical data8mm*8mm ................................................................................ 40
4.6 Naming rules of STC8A8K64D4 family ............................................................................................... 40
5 ISP Download and typical application circuit ............................................................................................. 42
5.1 STC8A8K64D4 series ISP download application circuit ...................................................................... 42
5.1.1 Download using RS-232 converter (High precision ADC), Emulation supported ....................... 42
5.1.2 Download using RS-232 converter (General precision ADC), Emulation supported .................. 43
5.1.3 Download using PL2303-GL, Emulation supported .................................................................... 44
5.1.4 Download using universal USB to Serial Tool, Emulation supported .......................................... 45
5.1.5 Download using U8-Mini tool, Support ISP online and offline download, also support emulation
46