AT89LP51ED2 Atmel Corporation, AT89LP51ED2 Datasheet - Page 88

no-image

AT89LP51ED2

Manufacturer Part Number
AT89LP51ED2
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89LP51ED2

Flash (kbytes)
64 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)
2.25
Eeprom (bytes)
4096
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
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
13.6.4
88
AT89LP51RD2/ED2/ID2 Preliminary
Mode 3 – Split 8-bit PWM
Figure 13-9. PWM Mode 2 Waveform
Timer 1 in PWM Mode 3 simply holds its count. The effect is the same as setting TR1 = 0.
Timer 0 in PWM Mode 3 establishes TL0 and TH0 as two separate PWM counters in a manner
similar to normal Mode 3. PWM Mode 3 on Timer 0 is shown in
Prescaler is available to change the output frequency during PWM Mode 3. TL0 can use the
Timer 0 control bits: GATE, TR0, INT0, PWM0EN and TF0. TH0 is locked into a timer function
and uses TR1, PWM1EN and TF1. RL0 provides the duty cycle for TL0 and RH0 provides the
duty cycle for TH0.
PWM Mode 3 is for applications requiring a single PWM channel and two timers, or two PWM
c h a n n e l s a n d a n e x t r a t i m e r o r c o u n t e r . W i t h T i m e r 0 i n P W M M o d e 3 , t h e
AT89LP51RD2/ED2/ID2 can appear to have four Timer/Counters. When Timer 0 is in PWM
Mode 3, Timer 1 can be turned on and off by switching it out of and into its own Mode 3. In this
case, Timer 1 can still be used by the serial port as a baud rate generator or in any application
not requiring an interrupt. The following formulas give the output frequency and duty cycle for
Timer 0 in PWM Mode 3.
Note:
In Fast Mode, TPS applies only when the TnX2 bits in CKCON0 are set. TPS always
applies in Compatibility Mode, therefore setting TnX2 in Compatibility Mode will halve
the output frequency.
THx
FFh
Tx
Mode 3, T1:
Mode 3, T0:
Mode 3:
Duty Cycle %
Duty Cycle %
f
out
=
f
---------- -
256
SYS
=
=
×
100
100
-------------------- -
TPS
×
1
×
+
RH0
----------- -
RL0
---------- -
256
256
1
Figure
13-10. Only the Timer
3714A–MICRO–7/11

Related parts for AT89LP51ED2