TIMER B
6.4 Event counter mode
[Precautions when operating in event counter mode]
By reading the timer Bi register, the counter value can be read out at any timing while counting is in
progress. However, if the timer Bi register is read at the reload timing shown in Figure 6.4.4, the value
"FFFF
" is read out. When reading the timer Bi register after setting a value to the register while counting
16
is not in progress and before the counter starts counting, the set value can be read out correctly.
Fig. 6.4.4 Reading timer Bi register
6–18
Counter value
2
(Hex.)
Read value
2
(Hex.)
n = Reload register's contents
7751 Group User's Manual
Reload
1
0
n
n – 1
1
0
FFFF n – 1
Time