STC TECHNOLOGY Co.,Ltd.
STC12C5A08/16/32/60
8-bit micro-controller
This document contains information on a new product under development by STC.STC reserves the right to change or discontinue this
product without notice. 2007/12 version A1
Features ............................................................................................................................. 3
General Description .......................................................................................................... 4
Order Information: ............................................................................................................ 4
Pin Description .................................................................................................................. 5
Pin Definition ............................................................................................................ 5
Pin Configuration ...................................................................................................... 7
Block Diagram .................................................................................................................. 9
Address Map ........................................................................................................... 10
Bits Description ...................................................................................................... 11
Memory ........................................................................................................................... 13
Organization ............................................................................................................ 13
RAM ....................................................................................................................... 13
Embedded Flash ...................................................................................................... 14
ALE OUTPUT ................................................................................................................ 15
Functional Description .................................................................................................... 17
I/O Port Configuration ............................................................................................ 17
Timer/Counter ......................................................................................................... 21
BAUD-RATE GENERATOR(BRT) ....................................................................... 25
Interrupt ................................................................................................................... 27
Watch Dog Timer .................................................................................................... 34
Universal Asynchronous Serial Port (UART) ......................................................... 36
Secondary Universal Asynchronous Serial Port (S2) ............................................. 40
Programmable Counter Array (PCA) ...................................................................... 45
Serial Peripheral Interface(SPI) .............................................................................. 55
Analog to Digital Converter .................................................................................... 63
Power Management ................................................................................................ 66
In System Programming and In Application Programming .................................... 69
In System Programming (ISP) ................................................................................ 69
In-Application Program (IAP) ................................................................................ 72
Instructions Set ................................................................................................................ 72
Absolute Maximum Rating (STC12C5Axx) .................................................................. 75
DC Characteristics (STC12C5Axx) ................................................................................ 75
Absolute Maximum Rating (STC12LE5Axx) ................................................................ 76
DC Characteristics (STC12LE5Axx) ............................................................................. 76
Package Dimension ......................................................................................................... 77
http://www.DataSheet4U.net/
datasheet pdf - http://www.DataSheet4U.net/