AT89LP428 Atmel Corporation, AT89LP428 Datasheet - Page 48
AT89LP428
Manufacturer Part Number
AT89LP428
Description
Manufacturer
Atmel Corporation
Datasheet
1.AT89LP428.pdf
(149 pages)
Specifications of AT89LP428
Flash (kbytes)
4 Kbytes
Max. Operating Frequency
25 MHz
Cpu
8051-1C
Max I/o Pins
30
Spi
1
Uart
1
Sram (kbytes)
0.75
Eeprom (bytes)
512
Self Program Memory
IAP
Operating Voltage (vcc)
2.4 to 5.5
Timers
3
Isp
SPI/OCD
Watchdog
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT89LP428-20AU
Manufacturer:
RFMD
Quantity:
1 240
11.5.1
11.5.2
48
AT89LP428/828
Mode 0 – 8-bit PWM with 8-bit Logarithmic Prescaler
Mode 1 – 8-bit PWM with 8-bit Linear Prescaler
In Mode 0, TLx acts as a logarithmic prescaler driving 8-bit counter THx (see
PSCx bits in TCONB control the prescaler value. On THx overflow, the duty cycle value in RHx
is transferred to OCRx and the output pin is set high. When the count in THx matches OCRx, the
output pin is cleared low. The following formulas give the output frequency and duty cycle for
Timer 0 in PWM mode 0. Timer 1 in PWM mode 0 is identical to Timer 0.
Figure 11-6. Timer/Counter 1 PWM Mode 0
In Mode 1, TLx provides linear prescaling with an 8-bit auto-reload from RLx (see
page
THx overflow, the duty cycle value in RHx is transferred to OCRx and the output pin is set high.
When the count in THx matches OCRx, the output pin is cleared low. The following formulas
give the output frequency and duty cycle for Timer 0 in PWM mode 1. Timer 1 in PWM mode 1 is
identical to Timer 0.
INT1 Pin
49). On TLx overflow, TLx is loaded with the value of RLx. THx acts as an 8-bit counter. On
GATE
OSC
TR1
Mode 0:
Mode 1:
÷TPS
Control
f
f
OUT
OUT
=
=
Duty Cycle %
Duty Cycle %
Oscillator Frequency
------------------------------------------------------ -
Oscillator Frequency
------------------------------------------------------ -
PSC1
256
256
×
(8 Bits)
×
(
TL1
256 RL0
2
PSC0
=
=
–
100
100
+
1
(8 Bits)
(8 Bits)
OCR1
)
RH1
TH1
×
×
×
RH0
----------- -
×
RH0
----------- -
256
256
-------------------- -
TPS
-------------------- -
TPS
=
1
1
+
+
1
1
Figure
3654A–MICRO–8/09
Figure 11-7 on
11-6). The
T1