English
Language : 

M16C1N Datasheet, PDF (118/238 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/10 SERIES
M16C/1N Group
12. Timers
Timer C
(b15)
b7
(b8)
b0 b7
b0
Symbol
TC
Address
009116, 009016
When reset
Indeterminate
Function
RW
Internal count source is counted
RO
Time measurement register
(b15)
(b8)
b7
b0 b7
b0
Symbol
TM
Address
009C16, 009D16
When reset
Indeterminate
Function
RW
When active edge of measurement pulse is input, the count value of Timer C RO
is stored (Note 1)
Note 1: When time measurement is disabled, the value is indeterminate. After enabling time measurement, the
value is indeterminate until the first trigger is generated.
Timer C control register 0
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TCC0
Address
009A16
When reset
0XX000002
Bit symbol
Bit name
Function
RW
TCC00
Time measurement control bit 0 : Time measurement disabled
1 : Time measurement enabled
RW
b2 b1
TCC01 Timer C clock select bit
0 0 : f1
RW
(Note 1) 0 1 : f8
TCC02
1 0 : f32
RW
1 1 : Inhibited
b4 b3
TCC03 Time measurement input edge 0 0 : Rising edge
RW
trigger bit
(Note 1) 0 1 : Falling edge
TCC04
1 0 : Both edges
1 1 : Inhibited
RW
Nothing is assigned.
When write, set "0". When read, their contents are "0".
TCC07 Time measurement input
0 : TCIN
source switching bit
1 : fRING256
RW
(Note 1 to 3)
Note 1: Change this bit when time measurement is disabled.
Note 2: Set the on-chip oscillation stop bit (CM14) to "0" before setting this bit to "1".
Note 3: Change this bit when the interrupt is disabled. When switching the timer measurement input source, the TCIN
interrupt may be requested. Therefore, enable the interrupt after setting the interrupt request bit to "0".
Timer C control register 1
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TCC1
Address
009B16
When reset
XXXXXX112
Bit symbol
Bit name
Function
RW
b1 b0
TCC10 Digital filter clock select bit
0 0 : Inhibited
RW
(Note 1) 0 1 : f1
TCC11
1 0 : f8
1 1 : f32
RW
Nothing is assigned.
When write, set "0". When read, their contents are "0".
Note 1: Input edge becomes active when the same value from TCIN pin is sampled three times in succession.
Figure 12.32 Timer C-related register
Rev.1.00 Oct 20, 2004 page 106 of 222
REJ09B0007-0100Z