CHAPTER 9 TIMER/COUNTER FUNCTION
337
User’s Manual U15195EJ5V0UD
(a) Caution for PWM output change timing
If the SWFEn bit is changed from 1 to 0 when the timer is operating while the internal PWM output
operation is being performed, then the output level becomes active. After that, PWM output from the
TO2n pin is performed upon a compare match at subchannel n. However, the first PWM output change
timing varies as follows, depending on the internal output level and the SWFEn bit clear timing.
Figure 9-65. PWM Output Change Timing
(i) Example 1
TO2n output
(ALVEn bit = 1)
PWM output change timing
SWFEn bit
Internal output level
(ii) Example 2
TO2n output
(ALVEn bit = 1)
PWM output change timing
SWFEn bit
Internal output level
Remark
n = 1 to 4