Document
www.STCMCU.com
Mobile:(86)13922809991
Tel:86-755-82948412
Fax:86-755-82905966
. d e STC12C2052AD series MCU t i m i L STC12LE2052AD series MCU U C Data M Sheet C T S
STC MCU Limited
www.STCMCU.com
Update date: 2011-7-15
STC MCU Limited.
website:www.STCMCU.com
Free Datasheet http://www.Datasheet4U.com
CONTENTS
Chapter 1. Introduction. ................................................................7
1.1 Features.................................................................................................. 7 1.2 Block diagram........................................................................................ 8 1.3 Pin Configurations . ............................................................................... 9 1.4 STC12C2052AD series Selection Table.............................................. 10 1.5 STC12C2052AD series Minimum Application System. .......................11 1.6 STC12C2052AD series MCU Typical Application Circuit for ISP..... 12 1.7 Pin Descriptions................................................................................... 14 1.8 Package Dimension Drawings. ............................................................. 16 1.9 STC12C2052AD series MCU naming rules........................................ 18 1.10 Global Unique Identification Number (ID)........................................ 19 2.1 Clock.................................................................................................... 22
2.1.1 2.1.2 2.1.3 2.1.4 On-Chip R/C Clock and External Crystal/Clcok are Optional in STC-ISP.exe 22 Divider for System Clock ................................................................................... 23 How to Know Internal RC Oscillator frequency(Internal clock frequency) ...... 24 Programmable Clock Output............................................................................... 27
Chapter 2. Clock, Power Management and Reset....................22
2.2 Power Management Modes.................................................................. 30
2.2.1 Slow Down Mode................................................................................................ 31 2.2.2 Idle Mode............................................................................................................. 32 2.2.3 Stop / Power Down (PD) Mode and Demo Program (C and ASM).................... 33 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 RESET Pin........................................................................................................... 39 Software RESET. ................................................................................................. 39 Power-On Reset (POR). ....................................................................................... 40 MAX810 power-on-Reset delay.......................................................................... 40 Internal Low Voltage Detection Reset................................................................. 41 Watch-Dog-Timer................................................................................................ 44 Warm Boot and Cold Boot Reset. ........................................................................ 48
2.1.4.1 Timer 0 Programmable Clock-out on P1.0........................................................................ 28 2.1.4.2 Timer 1 Programmable Clock-out on P1.1........................................................................ 29
C T S
U C M
L
d e t i im
2.3 RESET Sources.................................................................................... 39
Free Datasheet http://www.Datasheet4U.com
Chapter 3. Memory Organization..............................................49
3.1 Program Memory................................................................................. 49 3.2 Data Memory(SRAM). ......................................................................... 50 3.3 Special Function Registers................................................................... 53
Chapter 4. Configurable I/O Ports of STC12C2052AD series 58
4.1 I/O Ports Configurations...................................................................... 58 4.2 I/O ports Modes.................................................................................... 60
4.2.1 4.2.2 4.2.3 4.2.4 Quasi-bidirectional I/O........................................................................................ 60 Push-pull Output.................................................................................................. 61 Input-only (High-Impedance) Mode................................................................... 61 Open-drain Output............................................................................................... 61
3.3.1 Special Function Registers Address Map............................................................ 53 3.3.2 Special Function Registers Bits Description....................................................... 54
Chapter 5. Instruction System.....