AT89LP51RC2 Atmel Corporation, AT89LP51RC2 Datasheet - Page 91
AT89LP51RC2
Manufacturer Part Number
AT89LP51RC2
Description
Manufacturer
Atmel Corporation
Specifications of AT89LP51RC2
Flash (kbytes)
32 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
42
Spi
1
Twi (i2c)
1
Uart
1
Adc Channels
7
Adc Resolution (bits)
10
Adc Speed (ksps)
153.8
Sram (kbytes)
1.375
Self Program Memory
API
Operating Voltage (vcc)
2.4 to 5.5
Timers
4
Isp
SPI/OCD/UART
Watchdog
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 91 of 254
- Download datasheet (8Mb)
14.3
14.3.1
3722A–MICRO–10/11
Auto-Reload Mode
Up Counter
Timer 2 can be programmed to count up or down when configured in its 16-bit auto-reload
mode. This feature is invoked by the DCEN (Down Counter Enable) bit located in the SFR
T2MOD (see
count up. When DCEN is set, Timer 2 can count up or down, depending on the value of the
T2EX pin. A summary of the Auto-Reload behaviors is listed in
Table 14-5.
Figure 14-2
counts up to MAX and then sets the TF2 bit upon overflow. The overflow also causes the timer
registers to be reloaded with BOTTOM, the 16-bit value in RCAP2H and RCAP2L. If EXEN2 = 1,
a 16-bit reload can be triggered either by an overflow or by a 1-to-0 transition at external input
T2EX. This transition also sets the EXF2 bit. Both the TF2 and EXF2 bits can generate an inter-
rupt. The Timer 2 overflow rate for this mode is given in the following equation:
Note:
Figure 14-2. Timer 2 Diagram: Auto-Reload Mode (DCEN = 0)
DCEN
0
1
1
Auto-Reload Mode:
In Fast Mode, TPS applies only when the T2X2 bit in CKCON0 is set. TPS always
applies in Compatibility Mode, therefore setting T2X2 in Compatibility Mode will double
the timeout period.
DCEN = 0
CLK
shows Timer 2 automatically counting up when DCEN = 0. In this mode Timer 2
SYS
T2EX
Table
X
Summary of Auto-Reload Modes
0
1
÷TPS
14-4). Upon reset, the DCEN bit is set to 0 so that timer 2 will default to
Direction
Down
Up
Up
AT89LP51RB2/RC2/IC2 Preliminary
Time-out Period
Behavior
BOTTOM
MAX
BOTTOM
→
BOTTOM
→
→
MAX
MAX
=
65536
------------------------------------------------------------------------------ -
reload to BOTTOM
underflow to MAX
overflow to BOTTOM
–
TL2
{
RCAP2H RCAP2L
f
Table
SYS
TH2
,
14-5.
}
×
(
TPS
+
1
)
91
Related parts for AT89LP51RC2
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8-Bit Microcontroller with 4K Bytes Flash
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
8-bit Flash Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
2-Wire Serial EEPROM
Manufacturer:
ATMEL Corporation
Datasheet: