AT89LP51ED2-20JU Atmel, AT89LP51ED2-20JU Datasheet - Page 85

no-image

AT89LP51ED2-20JU

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

Specifications of AT89LP51ED2-20JU

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
PLCC-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
27

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP51ED2-20JU
Manufacturer:
Atmel
Quantity:
10 000
13.6
3714A–MICRO–7/11
Pulse Width Modulation
Figure 13-4. Timer/Counter 0 Mode 3: Two 8-bit Counters
On the AT89LP51RD2/ED2/ID2, Timer 0 and Timer 1 may be independently configured as 8-bit
asymmetrical (edge-aligned) pulse width modulators (PWM) by setting the PWM0EN or
PWM1EN bits in TCONB, respectively. In PWM Mode the generated waveform is output on the
timer's input pin, T0 or T1. Therefore, C/Tx must be set to “0” when in PWM mode and the T0
(P3.4) and T1 (P3.5) must be configured in an output mode. The Timer Overflow Flags and
Interrupts will continue to function while in PWM Mode and Timer 1 may still generate the baud
rate for the UART. The timer GATE function also works in PWM mode, allowing the output to be
halted by an external input. Each PWM channel has four modes selected by the mode bits in
TMOD.
An example waveform for Timer 0 in PWM Mode 0 is shown in
counter while RH0 stores the 8-bit compare value. When TH0 is 00H the PWM output is
set high. When the TH0 count reaches the value stored in RH0 the PWM output is set low.
Therefore, the pulse width is proportional to the value in RH0. To prevent glitches, writes to
RH0 only take effect on the FFH to 00H overflow of TH0. Setting RH0 to 00H will keep the PWM
output low.
Figure 13-5. 8-bit Asymmetrical Pulse Width Modulation
(P3.4)T0
INT0 Pin
GATE0
CLK
CLK
T0 Pin
RH0
FFH
00H
SYS
SYS
TH0
÷TPS
÷TPS
AT89LP51RD2/ED2/ID2 Preliminary
C/T = 0
C/T =1
Control
Control
TF0 Set
(8 Bits)
(8 Bits)
Figure
13-5. TH0 acts as an 8-bit
Inter r up t
Inter r up t
time
85

Related parts for AT89LP51ED2-20JU