Operation Of Tom In Single-Shot Pwm Output Mode - Mitsubishi 32172 User Manual

M32r series
Table of Contents

Advertisement

INPUT/OUTPUT TIMERS
10
10.6 TOM (Output Related 16-bit Timers)
10.6.15 Operation of TOM in Single-shot PWM Output Mode (without Correction Function)
(1) Outline of single-shot PWM output mode for TOM
In single-shot PWM output mode, the TOM uses two reload registers to generate a waveform
with any duty cycle only once.
When the timer is enabled after setting the initial value in the reload 0 and the reload 1 registers,
the counter is loaded with the value of the reload 0 register synchronously with the count clock,
from which it starts counting down. The first time the counter underflows after reaching the
minimum count, it is loaded with the content of the reload 1 register. When the counter
underflows second time, it stops counting. The reload 0 register set value + 1 and the reload 1
register set value + 1 respectively are the valid count values.
To stop the timer in software, write to the enable bit to disable counting, and the timer
immediately stops (not synchronized to the PWM output period).
The F/F output waveform in single-shot PWM output mode is inverted (F/F output changes level
from low to high or vice versa) each time the counter underflows. (Unlike in PWM output mode,
the F/F output waveform is not inverted when the counter is enabled.)
An interrupt and a DMA transfer request can be generated the second time the counter
underflows after being enabled.
Single-shot PWM output mode for TOM does not have a correction function.
10-109
Rev.1.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

32173

Table of Contents