CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
Preliminary User’s Manual U16898EJ1V0UD
92
Figure 6-11. Interval Timer Configuration Diagram
16-bit timer capture/compare
register 000 (CR000)
16-bit timer counter 00
(TM00)
OVF00
Clear
circuit
INTTM000
f
XP
f
XP
/2
2
f
XP
/2
8
TI000/INTP0/P30
Selector
Noise
eliminator
f
XP
Note
Note OVF00 is set to 1 only when 16-bit timer capture/compare register 000 is set to FFFFH.
Figure 6-12. Timing of Interval Timer Operation
Count clock
t
TM00 count value
CR000
INTTM000
0000H
0001H
N
0000H 0001H
N
0000H 0001H
N
N
N
N
N
Timer operation enabled
Clear
Clear
Interrupt acknowledged
Interrupt acknowledged
Remark Interval time = (N + 1)
×
t
N = 0001H to FFFFH
When the compare register is changed during timer count operation, if the value after 16-bit timer capture/compare
register 000 (CR000) is changed is smaller than that of 16-bit timer counter 00 (TM00), TM00 continues counting,
overflows and then restarts counting from 0. Thus, if the value (M) after the CR000 change is smaller than that (N)
before the change, it is necessary to restart the timer after changing CR000.
Figure 6-13. Timing After Change of Compare Register During Timer Count Operation
CR000
N
M
Count clock
TM00 count value
X – 1
X
FFFFH
0000H
0001H
0002H
Remark N > X > M
www.DataSheet4U.com
www.DataSheet4U.com