Section 13 Timer Z
13.4.7
Complementary PWM Mode
Three PWM waveforms for non-overlapped normal and counter phases are output by combining
channels 0 and 1.
In complementary PWM mode, the FTIOB0 to FTIOD0 and FTIOA1 to FTIOD1 pins become
PWM-output pins automatically. TCNT_0 and TCNT_1 perform an increment or decrement
operation. Tables 13.6 and 13.7 show the output pins and register settings in complementary PWM
mode, respectively.
Figure 13.29 shows the example of complementary PWM mode setting procedure.
Table 13.6 Output Pins in Complementary PWM Mode
Channel
Pin Name Input/Output
Pin Function
0
0
0
FTIOC0
FTIOB0
FTIOD0
Output
Output
Output
Toggle output in synchronous with PWM cycle
PWM output 1
PWM output 1 (counter-phase waveform non-
overlapped with PWM output 1)
1
1
FTIOA1
FTIOC1
Output
Output
PWM output 2
PWM output 2 (counter-phase waveform non-
overlapped with PWM output 2)
1
1
FTIOB1
FTIOD1
Output
Output
PWM output 3
PWM output 3 (counter-phase waveform non-
overlapped with PWM output 3)
Table 13.7 Register Settings in Complementary PWM Mode
Register
Description
TCNT_0
Initial setting of non-overlapped periods (non-overlapped periods are differences
with TCNT_1)
TCNT_1
GRA_0
GRB_0
Initial setting of H'0000
Sets (upper limit value – 1) of TCNT_0
Set a changing point of the PWM waveform output from pins FTIOB0 and
FTIOD0.
GRA_1
GRB_1
Set a changing point of the PWM waveform output from pins FTIOA1 and
FTIOC1.
Set a changing point of the PWM waveform output from pins FTIOB1 and
FTIOD1.
Rev. 3.00 Sep. 10, 2007 Page 244 of 528
REJ09B0216-0300