6 Timer
6 – 2
0x3FFD
0x3FFC
0x3FFB
1514131211109876543210
TPERIOD Period Register
TCOUNT Counter Register
TSCALE Scaling Register
00000000
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
TCOUNTDecrement Zero
Count Register Load Logic
Timer
Interrupt
Timer Enable
16
16
8
DMD Bus
16
Figure 6.2 Timer Block Diagram