English
Language : 

M16C1N Datasheet, PDF (86/238 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/10 SERIES
M16C/1N Group
12. Timers
Prescaler X
b7
Timer X
b7
b0
Symbol
PREX
Address
008C16
Function
Timer mode
Internal count source is counted
Pulse output mode
Internal count source is counted
Event counter mode
Externally input pulses are counted
Pulse width measurement mode
Pulse width of externally input pulses is measured
(Internal count source is counted)
Pulse period measurement mode
Pulse period of externally input pulses is measured
(Internal count source is counted)
When reset
FF16
Values that can be set RW
0016 to FF16
RW
0016 to FF16
RW
0016 to FF16
RW
0016 to FF16
RW
0016 to FF16
RW
b0
Symbol
TX
Address
008D16
When reset
FF16
Function
Timer mode, Pulse output mode, Event counter mode,
Pulse width measurement mode
Underflow of prescaler X is counted
Pulse period measurement mode
Underflow of prescaler X is counted
Values that can be set RW
0016 to FF16
RW
0116 to FF16
RW
Timer count source setting register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TCSS
Address
008E16
When reset
0016
Bit symbol
Bit name
Function
RW
TXCK0
Timer X count source b1 b0
select bit (Note 1)
0 0 : f1
RW
0 1 : f8
TXCK1
1 0 : f32
1 1 : fC32
RW
TYCK0
TYCK1
TZCK0
TZCK1
T1CK0
T1CK1
Timer Y count source
select bit (Note 1, 2)
Timer Z count source
select bit (Note 1, 4)
Timer 1 count source
select bit
b3 b2
0 0 : f1
0 1 : f8
1 0 : On-chip oscillator output (Note 3)
1 1 : fC32
b5 b4
0 0 : f1
0 1 : f8
1 0 : Timer Y underflow
1 1 : fC32
b7 b6
0 0 : f1
0 1 : f8
1 0 : f32
1 1 : fC32
RW
RW
RW
RW
RW
RW
Note 1: Avoid switching a count source, while a counter is in progress. Timer counter should be stopped before
switching a count source.
Note 2: The waveform extend function cannot be used when selecting f1 for count source.
Note 3: When attempting to select on-chip oscillator output, set the on-chip oscillation enable bit (CM14) of the
system clock control register (address 000716) for oscillation enabled.
Note 4: The waveform extend function cannot be used when selecting Timer Y underflow and f1 for count source.
Both the Timer Y primary underflow and the Timer Y secondary underflow are counted when selecting the
Timer Y underflow for count source.
Figure 12.5 Timer X-related registers (2)
Rev.1.00 Oct 20, 2004 page 74 of 222
REJ09B0007-0100Z