205

Chapter 7 Timer/Counter Units
7
7.4 8-BIT TIMER/COUNTER 37.4.1 Functions

Eight-bit timer/counter 3 can be used as an interval timer, and also as a counter for generating a clock signal used

with the baud rate generator.

When operating as an interval timer, 8-bit timer/counter 3 generates an internal interrupt at specified intervals.

Table 7-19 indicates the interval setting range.

Table 7-19 Intervals of 8-Bit Timer/Counter 3

Resolution
8/fCLK (1.3
µ
s)
16/fCLK (2.6
µ
s)
32/fCLK (5.3
µ
s)
64/fCLK (10.7
µ
s)
128/fCLK (21.3
µ
s)
256/fCLK (42.7
µ
s)
512/fCLK (85.3
µ
s)
Maximum interval
28 × 8/fCLK (341
µ
s)
28 × 16/fCLK (683
µ
s)
28 × 32/fCLK (1.37 ms)
28 × 64/fCLK (2.73 ms)
28 × 128/fCLK (5.46 ms)
28 × 256/fCLK (10.9 ms)
28 × 512/fCLK (21.8 ms)
Minimum interval
8/fCLK (1.3
µ
s)
16/fCLK (2.6
µ
s)
32/fCLK (5.3
µ
s)
64/fCLK (10.7
µ
s)
128/fCLK (21.3
µ
s)
256/fCLK (42.7
µ
s)
512/fCLK (85.3
µ
s)
The values in parentheses are based on fCLK = 6 MHz.
7.4.2 Configuration

Eight-bit timer/counter 3 consists of one 8-bit timer 3 (TM3) and one 8-bit compare register (CR30).

Fig. 7-122 shows the block diagram of 8-bit timer/counter 3.