AT89LP51 Atmel Corporation, AT89LP51 Datasheet - Page 47

no-image

AT89LP51

Manufacturer Part Number
AT89LP51
Description
Manufacturer
Atmel Corporation
Datasheet

Specifications of AT89LP51

Flash (kbytes)
4 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
36
Uart
1
Sram (kbytes)
0.25
Eeprom (bytes)
256
Self Program Memory
IAP
Operating Voltage (vcc)
2.4 to 5.5
Timers
3
Isp
SPI
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP51-20AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51-20JU
Manufacturer:
Atmel
Quantity:
44
Part Number:
AT89LP51-20JU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51-20PU
Manufacturer:
TI
Quantity:
183
Part Number:
AT89LP51ED2-20AAU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51ED2-20AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51ED2-20JU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51RD2-20AAU
Manufacturer:
INFINEON
Quantity:
450
11.1
11.2
3709D–MICRO–12/11
Mode 0 – 13-bit Timer/Counter
Mode 1 – 16-bit Timer/Counter
Both Timers in Mode 0 are 8-bit Counters with a divide-by-32 prescaler.
Mode 0 operation as it applies to Timer 1. As the count rolls over from all “1”s to all “0”s, it sets
the Timer interrupt flag TF1. The counter input is enabled to the Timer when TR1 = 1 and either
GATE1 = 0 or INT1 = 1. Setting GATE1 = 1 allows the Timer to be controlled by external input
INT1, to facilitate pulse width measurements. TR1 is a control bit in the Special Function Regis-
ter TCON. GATE1 is in TMOD. The 13-bit register consists of all 8 bits of TH1 and the lower 5
bits of TL1. The upper 3 bits of TL1 are indeterminate and should be ignored. Setting the run flag
(TR1) does not clear the registers.
Figure 11-1. Timer/Counter 1 Mode 0: 13-bit Counter
Mode 0 operation is the same for Timer 0 as for Timer 1, except that TR0, TF0, GATE0 and
INT0 replace the corresponding Timer 1 signals in
one for Timer 1 (TMOD.6) and one for Timer 0 (TMOD.2).
In Mode 1 the Timers are configured for 16-bit operation. The Timer register is run with all 16 bits
and the clock is applied to the combined high and low timer registers (TH1/TL1). As clock pulses
are received, the timer counts up: 0000H, 0001H, 0002H, etc. An overflow occurs on the
FFFFH-to-0000H transition, upon which the overflow flag bit in TCON is set. See
Mode 1 operation is the same for Timer/Counter 0.
Figure 11-2. Timer/Counter 1 Mode 1: 16-bit Counter
OSC
OSC
INT1 Pin
INT1 Pin
GATE1
GATE1
T1 Pin
T1 Pin
÷CDV
÷CDV
Mode 0:
Mode 1:
TR1
TR1
÷TPS
÷TPS
Time-out Period
Time-out Period
C/T = 0
C/T =1
C/T = 0
C/T = 1
Control
Control
=
=
------------------------------------------------- -
System Frequency
------------------------------------------------- -
System Frequency
Figure
8192
65536
(8 Bits)
(5 Bits)
TL1
TL1
11-1. There are two different C/T bits,
(8 Bits)
(8 Bits)
TH1
TH1
×
×
(
TPS
(
AT89LP51/52
TPS
Figure 11-1
+
+
1
TF1
TF1
1
)
)
Figure
shows the
Inter r up t
Interrupt
11-2.
47

Related parts for AT89LP51