English
Language : 

M16C30P_07 Datasheet, PDF (133/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
14. Timers
Timer Bi Mode Register (i=0 to 2)
b7 b6 b5 b4 b3 b2 b1 b0
10
Symbol
Address
After Reset
TB0MR to TB2MR 039Bh to 039Dh
Bit Symbol
Bit Name
00XX0000b
Function
RW
TMOD0 Operation Mode Select Bit b1 b0
RW
TMOD1
1 0 : Pulse period / pulse w idth measurement
mode
RW
Measurement Mode Select b3 b2
Bit
0 0 : Pulse period measurement
(Measurement betw een a falling edge and
MR0
the next falling edge of measured pulse)
RW
0 1 : Pulse period measurement
(Measurement betw een a rising edge and
the next rising edge of measured pulse)
1 0 : Pulse w idth measurement
(Measurement betw een a falling edge and
the next rising edge of measured pulse
MR1
and betw een a rising edge and the next
RW
falling edge)
1 1 : Do not set to this value
TB0MR register
Set to “0” in pulse period and pulse w idth measurement mode
RW
MR2
TB1MR, TB2MR registers
Nothing is assigned. When w rite, set to “0”.
—
When read, its content turns out to be indeterminate.
Timer Bi Overflow Flag (1) 0 : Timer did not overflow
MR3
1 : Timer has overflow ed
RO
Count Source Select Bit b7 b6
TCK0
0 0 : f1 or f2 (2)
RW
0 1 : f8
TCK1
1 0 : f32
RW
1 1 : fC32
NOTES :
1. This flag is indeterminate after reset. When the TBiS bit = 1 (start counting), the MR3 bit is cleared to “0” (no overflow )
by w riting to the TBiMR register at the next count timing or later after the MR3 bit w as set to “1” (overflow ed). The
MR3 bit cannot be set to “1” in a program. The TB0S to TB2S bits are assigned to the bit 5 to bit 7 in the TABSR
register.
2. Selected by PCLK0 bit in the PCLKR register.
Figure 14.20 TBiMR Register in Pulse Period and Pulse Width Measurement Mode
Rev.1.22 Mar 29, 2007 Page 117 of 291
REJ09B0179-0122