AT89LP51ED2-20MU Atmel, AT89LP51ED2-20MU Datasheet - Page 89

no-image

AT89LP51ED2-20MU

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

Specifications of AT89LP51ED2-20MU

Rohs
yes
Core
8051
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
VQFN-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
Processor Series
AT89x
Program Memory Type
Flash
Factory Pack Quantity
360
14. Timer 2
3714A–MICRO–7/11
Figure 13-10. Timer/Counter 0 PWM Mode 3
The AT89LP51RD2/ED2/ID2 includes a 16-bit Timer/Counter 2 with the following features:
Timer 2 is a 16-bit Timer/Counter that can operate as either a timer or an event counter. The
type of operation is selected by bit C/T2 in the SFR T2CON. Timer 2 has three operating modes:
capture, auto-reload (up or down counting), and baud rate generator. The modes are selected
by bits in T2CON and T2MOD, as shown in
Timer 2 consists of two 8-bit registers, TH2 and TL2. In the Timer function, the register is incre-
mented every clock cycle. The timer rate can be prescaled by a value between 1 and 16 using
the Timer Prescaler (see
enabled and TPS defaults to 5, so Timer 2 counts every six clock cycles (1/12 of the oscillator
frequency in X1 mode or 1/6 of the oscillator frequency in X2 mode). In X2 mode Timer 2 can be
set to the X1 rate by setting the T2X2 bit in CKCON1. In Fast mode the prescaler is not enabled
by default so the count rate is equal to the system frequency (1/2 of the oscillator frequency in
X1 mode or equal to the oscillator frequency in X2 mode). In this case setting the T2X2 bit in
CKCON1 enables the prescaler for Timer 2.
Note that Timer 2 is not affected by the prescaler when operating in the Baud-Rate or Frequency
Generator modes.
• 16-bit timer/counter with one 16-bit reload/capture register
• One external reload/capture input
• Up/Down counting mode with external direction control
• UART baud rate generation
• Output-pin toggle on timer overflow
INT0 Pin
GATE0
CLK
CLK
TR0
SYS
SYS
Section 6.9 on page
TR1
AT89LP51RD2/ED2/ID2 Preliminary
÷TPS
÷TPS
Control
Table
50). In Compatibility mode the prescaler is always
14-1.
(8 Bits)
(8 Bits)
(8 Bits)
(8 Bits)
OCR0
OCR1
RL0
RH0
TL0
TH0
=
=
T0
T1
89

Related parts for AT89LP51ED2-20MU