AT89LP51ED2-20AU Atmel, AT89LP51ED2-20AU Datasheet - Page 91

no-image

AT89LP51ED2-20AU

Manufacturer Part Number
AT89LP51ED2-20AU
Description
8-bit Microcontrollers - MCU 64KB 20MHz 2.4V-5.5V
Manufacturer
Atmel
Datasheet

Specifications of AT89LP51ED2-20AU

Rohs
yes
Core
8051
Processor Series
AT89x
Data Bus Width
8 bit
Maximum Clock Frequency
20 MHz
Program Memory Size
64 KB
Data Ram Size
256 B
On-chip Adc
Yes
Operating Supply Voltage
2.4 V to 5.5 V
Operating Temperature Range
- 40 C to + 85 C
Package / Case
TQFP-44
Mounting Style
SMD/SMT
Data Rom Size
4 KB
Interface Type
2-Wire, SPI, UART
Number Of Programmable I/os
36
Number Of Timers
3
Program Memory Type
Flash
Factory Pack Quantity
160

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP51ED2-20AU
Manufacturer:
Atmel
Quantity:
10 000
14.1
Table 14-3.
Note:
3714A–MICRO–7/11
T2CON Address = 0C8H
Bit Addressable
Bit
Symbol
TF2
EXF2
RCLK
TCLK
EXEN2
TR2
C/T2
CP/RL2
Timer 2 Registers
The Timer 2 operating mode depends on bits in both T2CON and T2MOD as shown in
bits have priority over CP/RL2.
TF2
Function
Timer 2 Overflow Flag
Set by hardware when Timer 2 overflows and must be cleared by software. TF2 will not be set when either
RCLK = 1 or TCLK = 1. TF2 will generate an interrupt when ET2 is set in IEN0.
Timer 2 External Flag
Set when either a capture or reload is caused by a negative transition on T2EX and EXEN2 = 1. When Timer 2 interrupt is
enabled, EXF2 = 1 will cause the CPU to vector to the Timer 2 interrupt routine. EXF2 must be cleared by software. EXF2
does not cause an interrupt in up/down counter mode (DCEN = 1) or dual-slope mode.
Receive Clock Enable
Set to use Timer 2 overflow pulses for receive clock in serial port Modes 1 and 3. Clear to use Timer 1 overflows for the
receive clock.
Transmit Clock Enable
Set to use Timer 2 overflow pulses for transmit clock in serial port Modes 1 and 3. Clear to use Timer 1 overflows for the
transmit clock.
Timer 2 External Enable
When set, allows a capture or reload to occur as a result of a negative transition on T2EX if Timer 2 is not being used to
clock the serial port. EXEN2 = 0 causes Timer 2 to ignore events at T2EX.
Timer 2 Run Control
Start/Stop control for Timer 2. TR2 = 1 starts the timer. TR2 = 0 stops the timer.
Timer/Counter Select 2
Clear C/T2 = 0 for timer function. Set C/T2 = 1 for external event counter on T2 (P1.0) (falling edge triggered). C/T2 must
be 0 to use clock out mode.
Capture/Reload Select
CP/RL2 = 1 causes captures to occur on negative transitions at T2EX if EXEN2 = 1. CP/RL2 = 0 causes automatic
reloads to occur when Timer 2 overflows or negative transitions occur at T2EX when EXEN2 = 1. When either RCLK or
TCLK = 1, this bit is ignored and the timer is forced to auto-reload on Timer 2 overflow.
7
T2CON – Timer/Counter 2 Control Register
EXF2
Control and status bits for Timer 2 are contained in registers T2CON (see
T2MOD (see
16-bit timer register for Timer 2. The register pair {RCAP2H, RCAP2L} at addresses 0CBH and
0CAH are the 16-bit Capture/Reload register for Timer 2 in capture and auto-reload modes.
6
RCLK
5
Table
14-4). The register pair {TH2, TL2} at addresses 0CDH and 0CCH are the
TCLK
4
AT89LP51RD2/ED2/ID2 Preliminary
EXEN2
3
TR2
2
Table
Reset Value = 0000 0000B
14-1. The RCLK, TCLK and T2OE
C/T2
1
CP/RL2
Table
0
14-3) and
91

Related parts for AT89LP51ED2-20AU