
R01UH0092EJ0110 Rev.1.10
Page 319 of 807
Jul 31, 2012
M16C/64C Group
18. Timer B
Figure 18.5
Operation Example in Event Counter Mode
n
Count operations
0000h
IR bit
in the TBiIC register
Underflow
and reload
n+1
Set to 0 by accepting an interrupt request, or by a program.
TBiIN input
Count start
Count stop
by TBiS bit
i = 0 to 5
The above assumes the following:
•
Bits MR1 to MR0 in the TBiMR register = 10b (the falling edge and rising edge of an external signal).
•
The TCK1 bit in the TBiMR register = 0 (input signals from the TBiIN pin counted).
•
The value in the TBi register (n) = 0004h.
TBiS bit in the
TABSR register or
TBSR register
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...