English
Language : 

M16C65 Datasheet, PDF (338/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
17. Timer A
17.3.2 Timer Mode
In timer mode, the timer counts a count source generated internally. Table 17.6 lists Specifications of
Timer Mode, Table 17.7 lists Registers and the Setting in Timer Mode, and Figure 17.5 shows
Operation Example in Timer Mode.
Table 17.6 Specifications of Timer Mode
Item
Count source
Count operation
Counter cycles
Count start condition
Count stop condition
Interrupt request generation
timing
TAiIN pin function
TAiOUT pin function
Read from timer
Write to timer
Selectable functions
i = 0 to 4
Specification
f1TIMAB, f2TIMAB, f8TIMAB, f32TIMAB, f64TIMAB, fOCO-F, fOCO-S, fC32
• Decrement
• When the timer underflows, it reloads the reload register contents and
continues counting.
-(--n-----+-----1----)
fj
n: set value of TAi register 0000h to FFFFh
fj: frequency of count source
Set the TAiS bit in the TABSR register to 1 (start counting).
Set the TAiS bit to 0 (stop counting).
Timer underflow
I/O port or gate input
I/O port or pulse output
Count value can be read by reading the TAi register.
• When not counting
Value written to the TAi register is written to both reload register and counter.
• When counting
Value written to the TAi register is written to only reload register
(transferred to counter when reloaded next).
• Gate function
Counting can be started and stopped by an input signal to the TAiIN pin.
• Pulse output function
Whenever the timer underflows, the output polarity of the TAiOUT pin is inverted.
When the TAiS bit is set to 0 (stop counting), the pin outputs a low-level signal.
• Output polarity control
While the output polarity of the TAiOUT pin is inverted (the TAiS bit is set to 0
(stop counting)), the pin outputs a high-level signal.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 303 of 791