Datasheet

Section 15 Timer RC
REJ09B0465-0300 Rev. 3.00 Page 475 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
15.3.3 PWM2 Mode Operation
In PWM2 mode, waveforms are output on the FTIOB pin when a compare match occurs on GRB
or GRC. GRD functions as a buffer register for GRB by setting the BUFEB bit in TRCMR to 1.
The output level of the FTIOB signal is specified by the TOB bit in TRCCR1. When TOB = 0, 1
is output on a compare match of GRC and 0 is output on a compare match of GRB. When TOB =
1, 0 is output on a compare match of GRC and 1 is output on a compare match of GRB.
Table 15.8 shows the correspondence between the pin configuration and GR registers and figure
15.14 is a block diagram in PWM2 mode.
Figures 15.15 and 15.16 show the GRD and GRB buffer operating timing in PWM2 mode.
In PWM2 mode, the value of GRD is transferred to GRB on a compare match of GRA and the
counter is cleared. Note, however, that the counter is only cleared when the CCLR bit in TRCCR1
is set to 1. Moreover, when the trigger input is enabled by the TCEG1 and TCEG0 bits in
TRCCR2, the value of GRD is transferred to GRB by the trigger signal and the counter is cleared.
The input/output pins of timers which do not operate in PWM2 mode are only used as general I/O
ports.
Table 15.8 Pin Configuration in PWM2 Mode and GR Registers
Pin Name Input/Output Compare Match Register Buffer Register
FTIOA I/O Port*/TRGC Port*/TRGC
FTIOB Output GRB GRD
GRC
FTIOC I/O Port* Port*
FTIOD I/O Port* Port*
Note: * When the port functions, clear the PMR bit on the corresponding pin to 0.