TIMER A
7.6 Pulse width modulation (PWM) mode
(1 / fi) ➀
(216 – 1)
Count source
TAjIN pin’s input signal
Trigger is not generated by this signal.
(1 / f (n)
i) ➀
PWM pulse output
from TAjOUT pin
Timer Aj interrupt
request bit
f
i
: Frequency of count source
Cleared to “0” when interrupt request is accepted
or cleared by software.
n: Reload register
Note: The above applies when n = “000316” and an external trigger (rising edge of TAjIN pin’s input
signal) is selected.
Fig. 7.6.4 Operation example of 16-bit pulse width modulator
n = Reload register’s contents
(1 / fi) ➀ (216 –1)
(1 / fi) ➀ (216 –1)
(1 / fi) ➀ (216 –1)
FFFE16
200016
(216 –1) – n
n
000116
Time
Stops
Restarts counting.
counting.
TAjIN pin’s
input signal
➀
PWM pulse
output from
TAjOUT pin
“FFFE16” is set to timer Aj
“000016” is set to timer Aj
“200016” is set to timer Aj
fi: Frequency of count source
n: Reload register’s contents
register.
register.
register.
➀
When an arbitrary value is set to the timer Aj register after setting “000016” to it, the timing when the PWM pulse goes “H”
depends on the timing when the new value is set.
Note: The above applies when an external trigger (rising edge of TAjIN pin’s input signal) is selected.
Fig. 7.6.5 Operation example of 16-bit pulse width modulator (when counter value is updated during
pulse output)
7906 Group User’s Manual Rev.2.0
7-44