R01UH0092EJ0110 Rev.1.10
Page 323 of 807
Jul 31, 2012
M16C/64C Group
18. Timer B
Figure 18.6
Operation Example in Pulse Period Measurement Mode
Interrupt request by an active edge of
the measured pulse
0000h
TBiIN input
Count source
(Undefined
value)
(Undefined
value)
Undefined value
Measured value 2
TBi register
IR bit
in TBiIC register
Count
start
Becomes 0000h
Transfer to
the TBi register
(Measured value 4)
(Measured
value 2)
Transfer to
the TBi register
(Measured value 3)
Becomes 0000h
Measured
value 4
Measured
value 3
Measured
value 1
Undefined value
Set to 0 by accepting an interrupt request, or by a program.
Transfer to the TBi register
(Measured value 1)
i = 0 to 5
The above assumes the following:
•
Bits MR1 to MR0 in the TBiMR register = 00b (measurement between a falling edge and the next falling
edge of measured pulse).
•
Bits PPWFS12 to PPWFS10 and PPWFS22 to PPWFS20 in the PPWFS1 and PPWFS2 registers = 0
(measurement result stored in the TBi register).
•
No initial value is set while timer Bi is stopped.
TBiS bit in the
TABSR register or
TBSR register
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...