Specifications
Counter/Timers
Actual counter operation is different for even and odd counts. For
even counts, the initial count is loaded in one clock pulse and
decremented by two on succeeding clock pulses. TOUT changes state
when the count expires and the operation is repeated. For odd counts,
the initial count minus one is loaded in one clock pulse and
decremented by two on succeeding clock pulses. TOUT goes low one
clock pulse after the count expires and the operation is repeated. For
an odd count of N, TOUT is high for (N + 1)/2 and low for (N -1)/2.
CLK
TCTL2
TOUT2
COUNT = 0004H
(Internal)
IOWR
COUNT = 0005H
(Internal)
IOWR
Count value
??
0002H 0004H 0002H 0004H 0002H 0004H 0004H 0004H
TOUT2
Count value
??
0002H 0000H 0004H 0002H 0004H 0002H 0000H 0004H
0004H
0004H
Figure 7–10. Mode 3 Operation.
7-23