Features
• 80C52 Compatible
– 8051 pin and instruction compatible
– Four 8-bit I/O ports + 2 I/O I2C Interface pins
– Three 16-bit timer/counters
– 256 bytes scratch pad RAM
– 10 Interrupt sources with 4 priority levels
– Dual Data Pointer
• Variable length MOVX for slow RAM/peripherals
• ISP (In System Programming) using standard V
• Boot ROM contains low level FLASH programming routines and a default serial loader
• High-Speed Architecture
– 40 MHz in standard mode
– 20 MHz in X2 mode (6 clocks/machine cycle)
• 32-Kbytes on-chip FLASH program / data Memory
– Byte and page (128 bytes) erase and write
– 10k write cycles
– On-chip 1024 bytes expanded RAM (XRAM)
– Software selectable size (0, 256, 512, 768, 1024 bytes)
– 256 bytes selected at reset for T87C51RB2/RC2 compatibility
• Keyboard interrupt interface on port P1
• 400-Kbits/s Multimaster I
• SPI Interface (Master / Slave Mode)
• Sub clock 32kHz crystal oscillator
• 8-bit clock prescaler
• Improved X2 mode with i ndependant selection for CPU and each peripheral
• Programmable Counter Array 5 Channels with:
– High Speed Output,
– Compare / Capture,
– Pulse Width Modulator,
– Watchdog Timer Capabilities
• Asynchronous port reset
• Full duplex Enhanced UART
• Dedicated Baud Rate Generator for UART
• Low EMI (inhibit ALE)
• HardwareWatchdog Timer (One-time enabled with Reset-Out)
• Power control modes:
– Idle Mode.
– Power-down mode.
– Power-Off Flag.
• Power supply: 4.5V to 5. 5V or 2.7V to 3.6V
• Temperature ranges: Commercial (0 to +70°C) and industrial ( -40 ° Cto+85°C).
• Packages: PLC44, VQFP44
2
C Interface
power supply.
CC
8-bit
Microcontroller
with Flash and
2
C Interface
I
T89C51IC2
Summary
Description
T89C51IC2 is a high performance FLASH version of the 80C51 8-bit microcontrollers.
It c ontains a 32-Kbytes Flash memory block for program and data.
The 32-K by tes F LASH memory can be programmed either in parallel mode or in serial
mode with the IS P capability or wi th software. The programming voltage is internally
generated from the standard V
The T89C51IC2 reta ins all features of the 80C52 with 256 bytes of internal RAM, a 7source 4-level interrupt controller and three timer/counters.
CC
pin.
Rev. C – 3-Dec-01
1
In addition, the T89C51IC2 has a 32kHz Subsidiary clock Os c illator, a Pro grammable
Counter Array, an XRA M of 1024 byte, a Hardware Watchdog Timer, a Key board Interface, a I2C Interface, a S PI Interface, a mor e versatile serial c hannel that f acilitates
multiprocessor com munication (EUART) and a speed improvement mechanism (X2
mode).
The fully static design of th e T89C51IC2 all ows to reduce system pow er consum ption by
bringing the clock frequency down to any value, even DC, without loss of data.
The T89C51IC2 has 2 software-selectable modes of reduced activity and 8 bit clock
prescaler for further reduction in power consumption. In the Idle mode the CPU is frozen
while the peripherals and the interrupt system are still operating. In the power-down
mode the RAM is saved and all other functions are inoperative.
The added features of the T89C51IC2 make it more powerful for applications that need
pulse width modulation, high speed I/O and counting capabilities s uc h as alarms, motor
control, corded phones, s mart card readers.
Table 1. Memory Size
Block Diagram
ALE/
XTAL1
XTAL2
PRO G
PSEN
EA
RD
WR
PLCC44
VQFP441.4 Flash(bytes) XRAM (bytes)
TOTALRAM
(bytes) I/O
T89C51IC2 32k 1024 1280 34
CC
Vss
V
Flash
32K x8 or
16Kx8
IB-bus
Parallel I/O Ports & Ext. Bus
Port0
XRAM
1Kx8
Port 1 Port 2 Port 3
Boot
ROM
2Kx8
PortI2
(1)
ECI
PCA
Watch
Dog
PCA
(1)
T2EX
(1) (1)
Timer2
Key
Board
T2
SPI
(1) (1) (1)
SDA
(2)
(2)
CPU
RxD
TxD
(2)(2)
EUART
BRG
Timer 0
Timer 1
(2) (2) (2) ( 2 )
RAM
+
256x8
C51
CORE
INT
Ctrl
SCL
I2C
(1)
P0
P1
P2
T0
T1
RESET
2
T89C51IC2
INT1
INT0
(1): A l ternatefunctionof Port 1
(2): Alternatefunction of Port3
P3
PI2
MISO
MOSI
SCK
SS
Rev. C – 3-Dec-01
SFR Mapping
T89C51IC2
The Special Function Registers (SFRs) of the T89C51IC2 fall into the following
categories:
• C51 core registers: ACC, B, DPH, DPL, P S W, SP
• I/O port registers: P0, P 1, P2, P3, PI2
• Timer registers: T2CON, T2MOD, TCON, TH0, TH1, TH2, TMOD, TL0, TL1, TL2,
RCAP2L, RCAP2H
• Serial I/O port registers: SADDR, SADEN, SBUF, SCON
• PCA (Programmable Counter Array) registers: CCON, CCAP Mx, CL, CH, CCA PxH,
CCAPxL(x:0to4)
• Power and clock control registers: PCON
• Hardware Watchdog Timer registers: WDTRST, WDTPRG
• Interrupt system registers: IE0, IPL0, IPH0, IE1, IPL1, IPH1
• Keyboard Interface registers: KBE, KBF, KBLS
• SPI registers: SPCON, SPSTR, SPDAT
• I2C Interface registers: SSCON, SSCS, SSDAT, SSADR
• BRG (Baud Rate Generator) registers: BRL, BDRCON
• Flash register: FCON
• Clock Prescaler register: CKRL
• 32Khz Sub Clock Oscillator registers: CKSEL, OSSCON
• Others: AUXR, AUXR1, CKCON0, CKCON1
Rev. C – 3-Dec-01
3