Datasheet
Section 18 Timer RG
Page 646 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
(b) Examples of waveform output operation
Figure 18.3 shows an example of 0 output/1 output.
In this example, TRGCNT has been designated as a free-running counter, and settings have been
made so that 1 is output by compare match A, and 0 is output by compare match B. When the set
level and the pin level match, the pin level does not change.
TRGCNT value
H'FFFF
H'0000
TGIOB
TGIOA
Time
GRB
GRA
No change No change
No change No change
1 output
0 output
Figure 18.3 Example of 0 Output/1 Output Operation
Figure 18.4 shows an example of toggle output. In this example TRGCNT has been designated as
a periodic counter (with counter clearing performed by compare match B), and settings have been
made so that output is toggled by both compare match A and compare match B.
TRGCNT value
H'FFFF
H'0000
TGIOB
TGIOA
Time
GRB
GRA
Toggle output
Toggle output
Counter cleared by GRB compare match
Figure 18.4 Example of Toggle Output Operation