Datasheet
Section 18 Timer RG
Page 644 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
• TGIOB pin
Register
Name PMR PCR TRGMDR TRGIOR
Bit Name PMR PCR PWM
IOB2 to
IOB0
Function
X 0 001, 01X Timer mode waveform output (output compare
function)
1
0 0 1XX Timer mode (input capture function)
1 X XXX General output port 0
0 X XXX General input port
Setting
values
Other than the above Setting prohibited
[Legend]
X: Don't care.
18.3.1 Timer Mode
TRGCNT performs up-counting, and is also capable of free-running operation, periodic counting,
and external event counting.
Each of GRA and GRB can be used as an input capture register or output compare register.
(1) Waveform Output by Compare Match:
The TPU can perform 0, 1, or toggle output from the corresponding output pin using a compare
match.
(a) Example of setting procedure for waveform output by compare match
Figure 18.2 shows an example of the setting procedure for waveform output by a compare match.