R01UH0136EJ0210 Rev.2.10
Page 320 of 800
Jul 31, 2012
M16C/64A Group
18. Timer B
MR3 (Timer Bi overflow flag) (b5)
This bit is undefined after reset. The MR3 bit becomes 0 (no overflow) by writing to the TBiMR register.
The MR3 bit cannot be set to 1 by a program.
TCK1 and TCK0 (Count source select bit) (b7-b6)
These bits are enabled when the TCS3 bit or TCS7 bit in registers TBCS0 to TBCS3 is set to 0 (TCK0,
TCK1 enabled).
Set the PCLK0 bit in the PCLKR register to select f1TIMAB or f2TIMAB.
b7
0
1
b6 b5 b4
b1
b2
b3
b0
Function
Bit Symbol
Bit Name
RW
RW
b1 b0
1 0 : Pulse period/pulse width
measurement modes
Operation mode select
bit
RW
TMOD1
TMOD0
Count source select bit
b7 b6
0 0 : f1TIMAB or f2TIMAB
0 1 : f8TIMAB
1 0 : f32TIMAB
1 1 : fC32
—
(b4)
—
No register bit. If necessary, set to 0. The read value is undefined.
MR3
RO
Timer Bi overflow flag
0 : No overflow
1 : Overflow
TCK0
RW
TCK1
RW
Measurement mode
select bit
b3 b2
0 0 : Pulse period measurement
(measurement between a falling edge and
the next falling edge of measured pulse)
0 1 : Pulse period measurement
(measurement between a rising edge and
the next rising edge of measured pulse)
1 0 : Pulse width measurement
(measurement between a falling edge and
the next rising edge of measured pulse
and between a rising edge and the next
falling edge)
1 1 : Do not set
RW
MR1
RW
MR0
Pulse Period/Pulse Width Measurement Modes
Timer Bi Mode Register (i = 0 to 5)
Symbol
Address
Reset Value
TB0MR to TB2MR
033Bh to 033Dh
00XX 0000b
TB3MR to TB5MR
031Bh to 031Dh
00XX 0000b
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...