AT89LP216-20PI ATMEL [ATMEL Corporation], AT89LP216-20PI Datasheet - Page 34

no-image

AT89LP216-20PI

Manufacturer Part Number
AT89LP216-20PI
Description
Microcontroller with 2K Bytes Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
14.5.3
34
AT89LP216 [Preliminary]
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
(8 Bits)
(8 Bits)
RL1
TL1
TH
(8 Bits)
(8 Bits)
0
TH1
TL1
)
×
(8 Bits)
(8 Bits)
------------------- -
TPS
OCR1
RH1
TH1
1
+
=
1
T1
3621A–MICRO–6/06
Figure
T1
14-8).

Related parts for AT89LP216-20PI