Datasheet
Section 18 Timer RG
Page 652 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
(2) Examples of PWM Mode Operation
Figure 18.10 shows examples of PWM mode operation.
When PWM mode is set, the TGIOA pin is automatically set as an output pin. The TGIOA pin
outputs 1 on a GRA compare match and outputs 0 on a GRB compare match. The TGIOB pin
always functions as an I/O pin for the relevant port.
In the examples shown in the figure, GRA and GRB compare matches are set as the TRGCNT
clearing source. The initial value of TGIOA differs according to the counter clearing source. The
correspondence between counter clearing sources and initial values is shown in table 18.5.
Table 18.5 Correspondence between Counter Clearing Sources and TGIOA Initial Values
Counter Clearing Source TGIOA Initial Value
GRA compare match 1
GRB compare match 0