Operation In Tom Single-Shot Pwm Output Mode (Without Correction Function) - Mitsubishi Electric M32R Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

MULTIJUNCTION TIMERS
10
10.9 TOM (Output-related 16-bit Timer)

10.9.12 Operation in TOM Single-shot PWM Output Mode (without Correction Function)

(1) Outline of TOM single-shot PWM output mode
In single-shot PWM output mode, the timer uses two reload registers to generate a waveform
with a given duty cycle only once.
When after setting the initial values in reload 0 and reload 1 registers, the timer is enabled (by
writing to the enable bit in software or by TID2 underflow/overflow signal), it loads the reload 0
register value into the counter synchronously with the count clock, letting the counter start
counting down. The first time the counter underflows, the reload 1 register value is loaded into the
counter letting it continue counting. Then when the counter underflows next time, it stops. The
valid count values are the (reload 0 register set value + 1) and (reload 1 register set value + 1)
each. To stop the timer in software, disable count by writing to the enable bit. The timer stops at
the same time count is disabled (and not in synchronism with PWM output period).
The F/F output waveform in single-shot PWM output mode is inverted (F/F output levels change
from low to high, or vice versa) upon each underflow. (Unlike in PWM output mode, F/F output is
not inverted at counter startup.) An interrupt can be generated when the counter underflows
second time after being enabled.
Note that TOM's single-shot PWM output mode does not have the correction function.
10-222
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents