Datasheet
Section 16 Timer RD
REJ09B0465-0300 Rev. 3.00 Page 567 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
(2) Examples of Complementary PWM Mode Operation
Figure 16.31 shows an example of complementary PWM mode operation. In complementary
PWM mode, TRDCNT_0 and TRDCNT_1 perform an increment or decrement operation. When
TRDCNT_0 and GRA_0 are compared and their contents match, the counter is decremented. And
when TRDCNT_1 underflows, the counter is incremented. In GRA_0, GRA_1, and GRB_1,
compare match is carried out in the order of TRDCNT_0 → TRDCNT_1 → TRDCNT_1 →
TRDCNT_0 and PWM waveform is output, during one cycle of an up/down counter. In this mode,
the initial setting will be TRDCNT_0 > TRDCNT_1.
GRA_0
GRB_0
GRA_1
GRB_1
TRDCNT values
TRDCNT_0 and GRA_0 are compared and their contents match
Time
H'0000
FTIOA1
FTIOB1
FTIOB0
FTIOC1
FTIOD1
FTIOC0
FTIOD0
Figure 16.31 Example of Complementary PWM Mode Operation (1)