• 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.4Flash(bytes)XRAM (bytes)
TOTALRAM
(bytes)I/O
T89C51IC232k1024128034
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:
P0.0-P0.743-3637-30I/OPort 0: Port 0 is an open-drain, bidirectional I/O port. Port 0 pins that have 1s written to
P1.0-P1.72-940-44
2216IGround: 0V reference
4438I
1-3
240I/OP1.0: Input / Output
341I/OP1.1: Input / Output
Type
Name and FunctionPLCC44VQFP44 1.4
Power Supply: This is the power supply voltage for normal, idle and power-down
operation
them floata nd can be used as high impedance inputs. Port0 must be polarized to V
or VSSin order to prevent any parasitic current consumption. Port 0 is also the
multiplexed low-orderaddress and databus duringaccess to external program and
datamemory. In this application, it usesstrong internal pull-upwhenemitting 1s.Port 0
alsoinputsthe codebytes during EPROM programming.Externalpull-ups arerequired
duringprogram verification duringwhich P0 outputs the codebytes.
I/OPort 1: Port 1 is an 8-bit bidirectional I/O portwith internalpull-ups.Port1pinsthat
have 1s written to them are pulled high by the internal pull-ups and can be used as
inputs. As inputs,Port 1 pins thatare externallypulled low will sourcecurrent because
of the internal pull-ups.Port 1 also receives the low-orderaddress byteduri ng memory
programming and verification.
IXTALB1 (P1.0): Sub Clock input to the inverting oscillator amplifier
CC
IT2EX: Timer/Counter 2 Reload/Capture/Direction Control
ISS
442I/OP1.2: Input / Output
IECI: External Clockforthe PCA
543I/OP1.3: Input / Output
I/OCEX0: Capture/Compare External I/O for PCA module 0
644I/OP1.4: Input / Output
I/OCEX1: Capture/Compare External I/O for PCA module 1
71I/OP1.5: Input / Output
I/OCEX2: Capture/Compare External I/O for PCA module 2
I/OMISO: SPI Master Input Slave Output line
82I/OP1.6: Input / Output
I/OCEX3: Capture/Compare External I/O for PCA module 3
I/OSCK: SPI Serial Clock
: SPI Slave Select
When SPIis in master mode,MISO receives data fromtheslave peripheral. When SPI
is in slave mode, MISO outputs data to the master controller.
SCK outputsclock to the slaveperipheral
93I/OP1.7: Input / Output:
6
T89C51IC2
Rev. C – 3-Dec-01
T89C51IC2
Pin Number
Mnemonic
XTALA12115I
XTALA22014OCrystal A 2: Output from the inverting oscillatoramplifier
XTALB1240I
XTALB2139OCrystal B 2: (Sub Clock) Output from the inverting oscillator amplifier
P2.0-P2.724-3118-25I/OPort 2: Port 2 is an 8-bit bidirectional I/O port withinternalpull-ups.Port 2 pins that
Type
Name and FunctionPLCC44VQFP44 1.4
I/OCEX4: Capture/Compare External I/O for PCA module 4
I/OMOSI: SPI Master Output Slave Input line
When SPI is in mastermode, MOSI outputsdata to the slave peripheral. When SPI is
in slave mode, MOSI receives data from the master controller.
Crystal A 1: Input to the inverting oscillator amplifier and inputto the internalclock
generator circuits.
Crystal B 1: (Sub Clock) Input to the inverting oscillator amplifier and input to the
internal clockgenerator circuits.
have 1s written to them are pulled high by the internal pull-ups and can be used as
inputs. As inputs,Port 2 pins thatare externallypulled low will sourcecurrent because
of the internal pull-ups. Port 2 emits the high-order addressbyte duringfetches from
external programmemoryand duringaccessestoexternaldata memorythatuse 16-bit
addresses (MOVX@DPTR).In this application, it usesstrong internal pull-ups emitting
1s. During accesses to external data memory that use 8-bit addresses (MOVX @Ri),
port 2 emitsthecont ents of the P2 SFR. Some Port 2 pins receive the highorder
addressbits duringEPROM programming and verification:
P2.0 to P2.5 for 16Kb devices
P2.0 to P2.6 for 32Kb devices
P3.0-P3.711,
13-19
115IRXD (P3.0): Serialinput port
137OTXD (P3.1): Serial outputport
148IINT0
159IINT1
1610IT0 (P3.4): Timer0external input
1711IT1 (P3.5): Timer1external input
1812OWR
1913ORD
PI2.0-PI2.1
34, 1228, 6
3428I/OSCL (PI2.0): I2C Serial Clock
126I/OSDA (PI2.1): I2CSerial Data
5,
7-13
I/OPort 3: Port 3 is an 8-bit bidirectional I/O portwith internalpull-ups.Port3pinsthat
have 1s written to them are pulled high by the internal pull-ups and can be used as
inputs. As inputs,Port 3 pins thatare externallypulled low will sourcecurrent because
of the internal pull-ups. Port 3 also serves the special features of the 80C51 family, as
listedbelow.
Port I2: Port I2 is an open drain.It can be used as inputs (must be polarized to Vcc
with external resistor to prevent any parasitic current consumption).
SCL outputtheserial clocktoslave peripherals
SCL input the serial clock from master
Rev. C – 3-Dec-01
SDA is the bidirectional I2C data line
7
Pin Number
Type
Mnemonic
RST104I/O
Name and FunctionPLCC44VQFP44 1.4
Reset: A high on this pin for two machine cycles while the oscillator is running, resets
the device. An internaldiffusedresistor to V
external capacitor to V
system reset.
. This pin is an output when the hardware watchdog forces a
CC
permits a power-on reset using only an
SS
ALE/PROG
PSEN3226OProgram StrobeENable: The read strobe to external program memory. When
EA3529IExternal Access Enable: EA
3327O (I)Address Latch Enable/Program Pulse:Output pulse for latching t he low byte of the
address during an access to external memory. In normal operation, ALE is emitted at a
constant rate of 1/6 (1/3 in X2 mode) the oscillator frequency, and can be used for
external timing or clocking. Note that one ALE pulse is skipped during each access to
external data memory.This pin is also theprogram pulse input (PROG
programming. ALE can be disabled by setting SFR’s AUXR.0 bit. With this bit set, ALE
will be inactive during internalfetches.
executing code from the external program memory, PSEN
machinecycle, exceptthattwo PSEN
external data memory.PSE N
memory.
codefrom externalprogram memorylocations0000HtoFFFFH(RD). Ifsecuritylevel 1
is programmed, EA
willbeinternally latchedonReset.
is not activated duringfetches from internal program
activations are skipped duringeachaccess to
mustbeexternally held low to enable the device tofetch
Atmel C or p or ation makes no w arrant y for the u se of its pr oducts, o ther than those expres sl y c ontaine d in the Com pany’s standard warranty
which is detailed in Atmel’s Terms and Conditions located on the Company’s web site. The Company assumes no responsibility for any errors
which may appear in this document, reserves the right to change devices or specificat ions detailed herein at any time without notice, and does
not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted
by t he Company in connec tion w ith the sale of A tmel prod uc ts, expressly or by impl ication . Atmel’s product s are not autho r iz ed for use as critic al
components in life support devices or systems.
Printedonrecycledpaper.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.