6 Timer
6 – 2
0x3FFD
0x3FFC
0x3FFB
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TPERIOD Period Register
TCOUNT Counter Register
TSCALE Scaling Register
0
0
0
0
0
0
0
0
Figure 6.1 Timer Registers
TSCALE stores a scaling value that is one less than the number of cycles
between decrements of TCOUNT. For example, if the value in TSCALE
register is 0, the counter register decrements once every cycle. If the value
in TSCALE is 1, the counter decrements once every 2 cycles. Figure 6.2
shows the timer block diagram.
TSCALE
TPERIOD
CLKOUT
Timer Enable
& Prescale Logic
TCOUNT
Decrement
Zero
Count Register Load Logic
Timer
Interrupt
Timer Enable
16
16
8
DMD Bus
16
Figure 6.2 Timer Block Diagram