Renesas M16C/64A Series User Manual page 355

Table of Contents

Advertisement

M16C/64A Group
Count source
FFFFh
0000h
TBiS bit in the
TABSR register or
TBSR register
TBiIN input
TBi register
IR bit
in the TBiIC register
MR3 bit
in the TBiMR register
i = 0 to 5
The above assumes the following:
Bits MR1 to MR0 in the TBiMR register = 10b (measure pulse width).
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.
Figure 18.7
Operation Example in Pulse Width Measurement Mode
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
(Undefined
value)
(Undefined
value)
Count
started
Becomes 0000h
Undefined value
Undefined
value
Set to 0 by accepting an interrupt request, or by a program.
Transfer to the TBi register
(Measured value 1)
(Measured
value 2)
Measured
value 1
Measured value 2
Interrupt request by an effective edge
of the measured pulse
Set to 0 by writing to the TBiMR register.
18. Timer B
Transfer to
the TBi register
(Measured value 3)
Becomes 0000h
Measured
value 3
Interrupt request
by overflow
Page 322 of 800

Advertisement

Table of Contents
loading

Table of Contents