R01UH0092EJ0110 Rev.1.10
Page 318 of 807
Jul 31, 2012
M16C/64C Group
18. Timer B
MR1 and MR0 (Count polarity select bit) (b3-b2)
These bits are enabled when the TCK1 bit is 0 (input from TBiIN pin). When the TCK1 bit is 1 (timer Bj),
these bits can be set to 0 or 1.
TCK1 (Event clock select bit) (b7)
When the TCK1 bit is 1, an event occurs when an interrupt request of timer Bj (j = i - 1; however, j = 2 if
i = 0, j = 5 if i = 3) is generated. An event occurs while an interrupt is disabled because an interrupt
request signal is generated regardless of the I flag, IPL, or interrupt control registers
b7
1
0
b6 b5 b4
b1
b2
b3
b0
Function
Bit Symbol
Bit Name
RW
—
—
(b4)
No register bit. If necessary, set to 0. The read value is undefined.
RW
b1 b0
0 1 : Event counter mode
Operation mode select bit
RW
TMOD1
TMOD0
RO
MR3
Write 0 in event counter mode.
The read value is undefined in event counter mode
RW
TCK0
Disabled in event counter mode.
Set 0 or 1.
RW
TCK1
Event clock select bit
0 : Input from TBiIN pin
1 : Timer Bj
Count polarity select bit
b3 b2
0 0 : Counts falling edges of an external
signal
0 1 : Counts rising edges of an external signal
1 0 : Counts falling and rising edges of an
external signal
1 1 : Do not set
MR1
MR0
RW
RW
Event Counter Mode
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
(j = i - 1; however, j = 2 if i = 0, j = 5 if i = 3)
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...