English
Language : 

M32C8A Datasheet, PDF (194/372 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M32C/80 Series
M32C/8A Group
15. Timers (Timer B)
Pulse input
“H”
to TBiIN pin
“L”
1st valid edge
10000h + n
2nd valid edge
FFFFh
n
Contents of the counter
n = contents of the
reload register
0000h
(note1)
(note2)
(note1)
TBiS bit in the TABSR or
1
TBSR register
0
MR3 bit in the
1
TBiMR register
0
1
IR bit in the TBiIC register 0
(note 3)
(note 4)
(note 4)
Transfer timing from counter
to reload register
TBi register
i = 0 to 5
Set to 0 by an interrupt acknowledgement or by program
Transfer
(undefined value)
Undefined value
Transfer
(measured value n)
n
NOTES:
1. Counter is reset due to the completion of the measurement.
2. Overflow
3. To set the MR3 bit to 0 (no overflow), wait for one or more count source cycles to write a 0 to the TBiMR register
after the MR3 bit becomes 1 (overflow), while the TBiS bit in TABSR or TBSR register is set to 1 (count starts).
4. Determine whether an interrupt source is a valid edge input or an overflow by reading the port level
in the TBi interrupt routine.
Figure 15.30 Operation in Pulse Width Measurement Mode (Timer B)
Rev.1.00 Jul 15, 2007 Page 177 of 352
REJ09B0385-0100