Download Print this page

Renesas M16C/50 Series User Manual page 335

Advertisement

M16C/5L Group, M16C/56 Group
Pulse Period/Pulse Width Measurement Modes
Timer Bi Mode Register (i = 0 to 2)
b7
b6 b5 b4
b3
b2
b1
1
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 TBCS1 is set to 0 (TCK0,
TCK1 enabled).
Set the PCLK0 bit in the PCLKR register to select f1TIMAB or f2TIMAB.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
TB0MR to TB2MR
0
Bit Symbol
Bit Name
TMOD0
Operation mode select
bit
TMOD1
MR0
Measurement mode
select bit
MR1
No register bit. If necessary, set to 0. The read value is undefined.
(b4)
MR3
Timer Bi overflow flag
TCK0
Count source select bit
TCK1
Address
033Bh to 033Dh
Function
b1
b0
1
0 : Pulse period/pulse width
measurement modes
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
0 : No overflow
1 : Overflow
b7
b6
0
0 : f1TIMAB or f2TIMAB
0
1 : f8TIMAB
1
0 : f32TIMAB
1
1 : fC32
16. Timer B
Reset Value
00XX 0000b
RW
RW
RW
RW
RW
RO
RW
RW
Page 298 of 803

Advertisement

loading