at89lp214-20xi ATMEL Corporation, at89lp214-20xi Datasheet - Page 34

no-image

at89lp214-20xi

Manufacturer Part Number
at89lp214-20xi
Description
At89lp213 8-bit Microcontroller With 2k Bytes Flash
Manufacturer
ATMEL Corporation
Datasheet
14.5.3
34
AT89LP213/214
Mode 2 – 8-bit Frequency Generator
Figure 14-7. Timer/Counter 1 PWM Mode 1
Timer 0 in PWM Mode 2 functions as an 8-bit auto-reload timer, the same as normal Mode 2,
with the exception that the output pin T0 is toggled at every TL0 overflow (see
Timer 1 in PWM Mode 2 is identical to Timer 0. PWM Mode 2 can be used to output a square
wave of varying frequency. THx acts as an 8-bit counter. The following formula gives the output
frequency for Timer 0 in PWM Mode 2.
Figure 14-8. Timer/Counter 1 PWM Mode 2
Note:
INT1 Pin
GATE
{RH0 & RL0}/{RH1 & RL1} are not required by Timer 0/Timer 1 during PWM Mode 2 and may be
used as temporary storage registers.
INT1 Pin
GATE
OSC
TR1
Mode 2:
TR1
OSC
÷TPS
f
Control
out
÷TPS
=
Oscillator Frequency
------------------------------------------------------ -
Control
2
×
(
256 TH0
(8 Bits)
(8 Bits)
RL1
TL1
(8 Bits)
(8 Bits)
TH1
TL1
)
×
(8 Bits)
(8 Bits)
------------------- -
TPS
OCR1
RH1
TH1
1
+
=
1
3538B–MICRO–11/07
T1
Figure
T1
14-8).

Related parts for at89lp214-20xi