English
Language : 

M16C65 Datasheet, PDF (360/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.7 Programmable Output Mode (Timers A1, A2, and A4)
In programmable output mode, the timer outputs low- and high-levels of pulse width successively. Table
17.16 lists Specifications of Programmable Output Mode. Table 17.17 lists Registers and the Setting in
Programmable Output Mode. Figure 17.13 shows Operation Example in Programmable Output Mode.
Table 17.16 Specifications of Programmable Output Mode
Item
Count source
Count operations
Pulse width
Specification
f1TIMAB, f2TIMAB, f8TIMAB, f32TIMAB, f64TIMAB, fOCO-F, fOCO-S, fC32
• Decrement
• Reloads on the rising edge of pulse and continues counting
• When a trigger occurs while counting, the timer reloads a new value and
restarts counting.
• High-level pulse width m----
fj
mn
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 = 1, 2, and 4
• Low-level pulse width n--
fj
m: set value of the TAi register
n: set value of the TAi1 register
fj: count source frequency
• The TAiS bit of the TABSR register is set to 1 (start counting).
• The TAiS bit is 1 and external trigger input from the TAiIN pin
• The TAiS bit is 1 and one of the following external triggers occurs
Timer B2 overflow or underflow
Timer Aj overflow or underflow (j = i - 1)
Timer Ak overflow or underflow (k = i + 1, except k = 0 if i = 4)
The TAiS bit is set to 0 (stop counting).
At the rising edge of pulse
I/O port or trigger input
Pulse output
An undefined value is read by reading registers TAi and TAi1.
• When writing to registers TAi and TAi1 while not counting, the value is written
to both reload register and counter.
• When writing to registers TAi and TAi1 while counting, the value is written to
the reload register. (transferred to the counter when reloaded next).
Output polarity control
The output polarity of TAiOUT pin is inverted. (While 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 325 of 791