Download Print this page

Renesas M16C/50 Series User Manual page 307

Advertisement

M16C/5L Group, M16C/56 Group
15.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
15.16 lists Programmable Output Mode Specifications. Table 15.17 lists Registers and the Setting in
Programmable Output Mode. Figure 15.13 shows Operation Example in Programmable Output Mode.
Table 15.16
Programmable Output Mode Specifications
Item
Count sources
Count operations
Pulse width
Count start conditions
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
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
f1TIMAB, f2TIMAB, f8TIMAB, f32TIMAB, f64TIMAB, fOCO-F, fOCO-S, fC32
Decrement
The timer reloads the reload register value at the rising edge of pulse and
continues counting
When a trigger occurs while counting, the timer is not affected.
High-level pulse width
Low-level pulse width
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 when 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 time).
Output polarity control
The output polarity of the TAiOUT pin is inverted. (While the TAiS bit is set to 0
(stop counting), a high-level signal is output.)
Specification
m
---- -
fj
n
-- -
fj
15. Timer A
m
n
Page 270 of 803

Advertisement

loading