Micro-controllers. STC8F2K64S4 Datasheet

STC8F2K64S4 Datasheet PDF


STC8F2K64S4
STC micro
宏晶科技
STC8F family of Micro-controllers
Reference Manual
Date of update2018/3/20
-1-


Part STC8F2K64S4
Description Micro-controllers
Feature STC8F2K64S4; STC micro STC8F family of Micro-controllers Reference Manual Date of update:2018/3/20 -1- 67&).
Manufacture STC MCU
Datasheet
Download STC8F2K64S4 Datasheet


STC micro STC8F family of Micro-controllers Reference Manua STC8F2K64S4 Datasheet





STC8F2K64S4
67&)6HULHV0DQXDO
Contents
1 Overview ...........................................................................................................................................................1
2 Features .............................................................................................................................................................2
2.1 Features and Prices of STC8A8K64S4A12 family............................................................................2
2.2 Features and Prices of STC8A4K64S2A12 family............................................................................4
2.3 Features and Prices of STC8F2K64S4 family ...................................................................................6
2.4 Features and Prices of STC8F2K64S4 family ...................................................................................8
2.5 Features and Prices of STC8F1K08S2 family .................................................................................10
2.6 Features and Prices of STC8H1K08S2A10 family..........................................................................11
2.7 Advance notice of STC8H1K64S2A10 family................................................................................14
2.8 Advance notice of STC8H1K08S2 family.......................................................................................14
2.9 Advance notice of STC8H04A10 family.........................................................................................15
2.10 Advance notice of STC8H04 family..............................................................................................15
3 Pinouts and pin descriptions .........................................................................................................................16
3.1 Pinouts .............................................................................................................................................16
3.1.1 STC8A8K64S4A12 family pinouts ...................................................................................16
3.1.2 STC8A4K64S2A12 family pinouts ...................................................................................19
3.1.3 STC8F2K64S4 family pinouts...........................................................................................22
3.1.4 STC8F2K64S2 family pinouts...........................................................................................24
3.1.5 STC8F1K08S2 family pinouts...........................................................................................26
3.1.6 STC8H1K08S2A10 family pinouts ...................................................................................26
3.1.7 GX8S003 family pinouts....................................................................................................27
3.1.8 STC8H1K08S2 family pinouts ..........................................................................................27
3.2 Pin descriptions................................................................................................................................28
3.2.1 STC8A8K64S4A12 family pin descriptions......................................................................28
3.2.2 STC8A4K64S2A12 family pin descriptions......................................................................34
3.2.3 STC8F2K64S4 family pin descriptions .............................................................................40
3.2.4 STC8F2K64S2 family pin descriptions .............................................................................45
3.3 Function Pin Switch.........................................................................................................................48
3.3.1 Function pin related register...............................................................................................48
3.4 Sample Program...............................................................................................................................52
3.4.1 Serial 1 switch....................................................................................................................52
3.4.2 Serial 2 switch....................................................................................................................53
3.4.3 Serial 3 switch....................................................................................................................53
3.4.4 Serial 4 switch....................................................................................................................54
3.4.5 SPI switch ..........................................................................................................................54
3.4.6 PWM switch.......................................................................................................................55
3.4.7 PCA/CCP/PWM switch .....................................................................................................57
3.4.8 I2C switch ..........................................................................................................................58
3.4.9 Comparator output switch ..................................................................................................58




STC8F2K64S4
STC8F Series Manual
3.4.10 Master clock output switching .........................................................................................59
4 Package characteristics..................................................................................................................................61
4.1 LQFP64S package mechanical data12mm*12mm..................................................................61
4.2 LQFP64L package mechanical data16mm*16mm..................................................................62
4.3 LQFP48 package mechanical data9mm*9mm.........................................................................63
4.4 LQFP44 package mechanical data12mm*12mm.....................................................................66
4.5 LQFP32 package mechanical data9mm*9mm.........................................................................69
4.6 QFN32 package mechanical data4mm*4mm..........................................................................70
4.7 PDIP40 package mechanical data ....................................................................................................71
4.8 TSSOP20 package mechanical data.................................................................................................72
4.9 SOP16 package mechanical data .....................................................................................................73
5 STC8 seriesmicrocontroller selection price list.........................................................................................74
5.1 STC8 series of microcontroller package price list ........................................................................75
5.2 STC8 series microcontroller name rule ........................................................................................76
6 ISP download and typical application circuit diagram ............................................................................77
6.1 STC8F series ISP download application circuit diagram.................................................................77
6.1.1 Using RS-232 transferor download....................................................................................77
6.1.2 Using PL2303-SA download..............................................................................................78
6.1.3 Using U8-Mini tool download ...........................................................................................78
6.1.4 Using U8W tool download.................................................................................................79
6.1.5 USB directly ISP download ...............................................................................................80
6.2 STC8A series ISP download application circuit diagram ................................................................81
6.2.1 Using RS-232 transfer download(using high-precision ADC)...........................................81
6.2.2 Using RS-232 transfer download (ADC general application)............................................82
6.2.3 Using PL2303 download....................................................................................................83
6.2.4 Using U8-Mini tool download ...........................................................................................84
6.2.5 Using U8W tool download.................................................................................................85
6.2.6 USB directly ISP download ...............................................................................................86
7 clockreset and power management ........................................................................................................87
7.1 System clock control...................................................................................................................87
7.2 System reset ................................................................................................................................89
7.3 System power management ........................................................................................................92
7.4 Sample program..........................................................................................................................93
7.4.1 Select system clock source.................................................................................................93
7.4.2 Master clock frequency division output .............................................................................95
7.4.3 Watchdog timer application................................................................................................96
7.4.4 Soft reset to implement custom Downloads.......................................................................96
7.4.5 Low voltage detection ........................................................................................................97
7.4.6 Power saving mode ............................................................................................................98
7.4.7 Wake-up MCU with INT0/INT1/INT2/INT3/INT4 interrupt ..........................................100
7.4.8 Wake-up MCU with T0/T1/T2/T3/T4 interrupts..............................................................102
7.4.9 Wake-up MCU with RxD/RxD2/RxD3/RxD4 interrupt ..................................................106
7.4.10 Wake-up MCU with LVD interrupt................................................................................108
7.4.11 Wake-up MCU with CCP0/CCP1/CCP2/CCP3 interrupt ..............................................110
-3-






@ 2014 :: Datasheetspdf.com ::
Semiconductors datasheet search & download site (Privacy Policy & Contact)