Om rlx (see, Figure 14-7 – Rainbow Electronics AT89LP216 User Manual
Page 34
34
3621A–MICRO–6/06
AT89LP216 [Preliminary]
Figure 14-7. Timer/Counter 1 PWM Mode 1
14.5.3
Mode 2 – 8-bit Frequency Generator
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:
{RH0 & RL0}/{RH1 & RL1} are not required by Timer 0/Timer 1 during PWM Mode 2 and may be
used as temporary storage registers.
OSC
TR1
GATE
INT1 Pin
TL1
(8 Bits)
Control
TH1
(8 Bits)
OCR1
RH1
(8 Bits)
=
T1
RL1
(8 Bits)
÷TPS
Mode 2:
f
out
Oscillator Frequency
2
256
TH
0
–
(
)
×
-------------------------------------------------------
1
TPS
1
+
--------------------
×
=
OSC
TR1
GATE
INT1 Pin
TL1
(8 Bits)
Control
T1
TH1
(8 Bits)
÷TPS
- MAX5151 (16 pages)
- MAXQ3108 (64 pages)
- MAX5661 (39 pages)
- MAX6691 (7 pages)
- MAX5362 (12 pages)
- ADC10158 (26 pages)
- MAX8922L (14 pages)
- MAX8596Z (8 pages)
- MAX7491 (18 pages)
- MAX15040 (15 pages)
- MAX5177 (16 pages)
- ADC08138 (22 pages)
- MAX5961 (42 pages)
- T89C51RD2 (86 pages)
- MAX16055 (9 pages)
- MAX6659 (17 pages)
- ADC0820 (20 pages)
- MAX6678 (19 pages)
- MAX8884Z (15 pages)
- MAX16915 (9 pages)
- MAX8620 (18 pages)
- MAX5144 (12 pages)
- MAX6670 (8 pages)
- MAX8760 (39 pages)
- W78C32C (14 pages)
- MX7533 (8 pages)
- MAX8727 (13 pages)
- MAX9053 (15 pages)
- W78C54 (16 pages)
- MAX8614B (15 pages)
- W90N740 (219 pages)
- MAX6626 (13 pages)
- ADC10738 (30 pages)
- MAX17000 (31 pages)
- MAX5051 (21 pages)
- MAXQ1004 (18 pages)
- MAX6871 (51 pages)
- MX7847 (12 pages)
- MAX6608 (6 pages)
- MAX17083 (15 pages)
- MAX6641 (17 pages)
- MAX5251 (16 pages)
- MAX6338 (8 pages)
- MAX6690 (16 pages)
- MAX8668 (18 pages)