10
10-184
MULTIJUNCTION TIMERS
10.8 TOU (Output-Related 24-Bit Timer)
32180 Group User’s Manual (Rev.1.0)
10.8.13 Operation in TOU Single-shot PWM Output Mode (without Correction Function)
(1) Outline of TOU 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 the timer is enabled after setting the initial values in the reload 0 and reload 1 registers, the counter is
loaded with the reload 0 register value and starts counting down synchronously with the count clock. The first
time the counter underflows, it is loaded with the reload 1 register value and continues counting. The counter
stops when it underflows next time. The (reload 0 register set value + 1) and (reload 1 register set value + 1)
respectively are effective as count values.
The timer can be stopped in software, in which case it stops at the same time count is disabled by writing to
the enable bit (and not in synchronism with PWM output period).
The F/F output waveform in single-shot PWM output mode is inverted (F/F output level changes from low to
high or vice versa) each time the counter underflows. (Unlike in PWM output mode, the F/F output is not
inverted when the counter is enabled.) An interrupt request and DMA transfer request can be generated
when the counter underflows second time after being enabled.
If the value ‘FFFF’ is set in the reload register, F/F output will not be inverted although an interrupt request is
generated upon underflow, making it possible to produce a 0% or 100% duty-cycle PWM output. Because a
0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count clock
equivalent delay before F/F is inverted and an interrupt or DMA transfer request is generated. However,
startup requests to other timers are not delayed. For details, see Section 10.8.17, “0% or 100% Duty-Cycle
Wave Output during PWM Output and Single-shot PWM Output Modes.”
Note that TOU’s single-shot PWM output mode does not have the count correction function.
(2) Precautions on using TOU single-shot PWM output mode
The following describes precautions to be observed when using TOU single-shot PWM output mode.
• If the timer is enabled by external input in the same clock period as count is disabled by writing to the
enable bit, the latter has priority so that count is disabled.
• If the counter is accessed for read immediately after being reloaded pursuant to an underflow, the counter
value temporarily reads as H’FFFF but immediately changes to (reload value – 1) at the next clock edge.
Because a 0% or 100% duty-cycle needs to be determined when reloading the counter, there is a one count
clock equivalent delay before F/F is inverted and an interrupt or DMA transfer request is generated. How-
ever, startup requests to other timers are not delayed. For details, see Section 10.8.17, “0% or 100% Duty-
Cycle Wave Output during PWM Output and Single-shot PWM Output Modes.”
Summary of Contents for M32R/ECU Series
Page 17: ...12 This page is blank for reasons of layout...
Page 712: ...CHAPTER 18 OSCILLATOR CIRCUIT 18 1 Oscillator Circuit 18 2 Clock Generator Circuit...
Page 794: ...CHAPTER 22 TYPICAL CHARACTERISTICS...
Page 796: ...APPENDIX 1 MECHANICAL SPECIFICAITONS Appendix 1 1 Dimensional Outline Drawing...
Page 798: ...APPENDIX 2 INSTRUCTION PROCESSING TIME Appendix 2 1 32180 Instruction Processing Time...
Page 802: ...APPENDIX 3 PROCESSING OF UNUSED PINS Appendix 3 1 Example Processing of Unused Pins...