M16C/62P Group (M16C/62P, M16C/62PT)
15. Timers
Rev.2.41
Jan 10, 2006
Page 161 of 390
REJ09B0185-0241
.
Figure 15.20
TBiMR Register in Event Counter Mode
Timer Bi Mode Register (i=0 to 5)
Address
After Reset
039Bh to 039Dh
00XX0000b
035Bh to 035Dh
00XX0000b
Bit Symbol
Function
RW
RW
—
NOTES :
1.
2.
Effective w hen the TCK1 bit = 0 (input from TBiIN pin). If the TCK1 bit = 1 (TBj overflow or underflow ), these bits can
be set to “0” or “1”.
The port direction bit for the TBiIN pin must be set to “0” (= input mode).
MR3
MR2
When w rite in event counter mode, set to “0”.
When read in event counter mode, its content is indeterminate.
Has no effect in event counter mode.
Can be set to “0” or “1”.
Event Clock Select
0 : Input from TBiIN pin
(2)
1 : TBj overflow or underflow
(j = i – 1, how ever, j = 2 if i = 0,
j = 5 if i = 3)
TCK1
RW
0 1
RW
MR0
RW
b1 b0
0 1 : Event counter mode
TMOD0
RW
Count Polarity Select Bit
(1)
b3 b2
0 0 : Counts falling edges of external signal
0 1 : Counts rising edges of external signal
1 0 : Counts falling and rising edges
external signal
1 1 : Do not set to this value
RW
b3 b2 b1 b0
b7 b6 b5 b4
RO
MR1
TCK0
TB0MR, TB3MR registers
Set to “0” in event counter mode
TB1MR, TB2MR, TB4MR, TB5MR registers
Nothing is assigned. When w rite, set to “0”.
When read, its content is indeterminate.
RW
Bit Name
Operation Mode Select Bit
TB3MR to TB5MR
Symbol
TMOD1
TB0MR to TB2MR
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655