English
Language : 

M16C30P_07 Datasheet, PDF (131/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
01
Symbol
Address
After Reset
TB0MR to TB2MR
039Bh to 039Dh
00XX0000b
Bit Symbol
Bit Name
Function
RW
TMOD0 Operation Mode Select Bit
b1 b0
RW
TMOD1
0 1 : Event counter mode
RW
Count Polarity Select Bit (1)
b3 b2
MR0
0 0 : Counts falling edges of external signal
RW
0 1 : Counts rising edges of external signal
1 0 : Counts falling and rising edges
MR1
external signal
RW
1 1 : Do not set to this value
TB0MR register
Set to “0” in event counter mode
RW
MR2
TB1MR, TB2MR registers
Nothing is assigned. When w rite, set to “0”.
—
When read, its content is indeterminate.
When w rite in event counter mode, set to “0”.
MR3 When read in event counter mode, its content is indeterminate.
RO
Has no effect in event counter mode.
TCK0 Can be set to “0” or “1”.
RW
Event Clock Select
0 : Input from TBiIN pin (2)
TCK1
1 : TBj overflow or underflow
RW
(j = i – 1, how ever, j = 2 if i = 0)
NOTES :
1. 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”.
2. The port direction bit for the TBiIN pin must be set to “0” (= input mode).
Figure 14.19 TBiMR Register in Event Counter Mode
Rev.1.22 Mar 29, 2007 Page 115 of 291
REJ09B0179-0122