English
Language : 

HD6433694 Datasheet, PDF (187/432 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Tiny Series
TCNT value
H'FFFF
GRA
GRB
H'0000
FTIOA
FTIOB
Time
Toggle output
Toggle output
Figure 12.5 Toggle Output Example (TOA = 0, TOB = 1)
Figure 12.6 shows another example of toggle output when TCNT operates as a periodic counter,
cleared by compare match A. Toggle output is selected for both compare match A and B.
TCNT value
H'FFFF
GRA
GRB
H'0000
FTIOA
FTIOB
Counter cleared by compare match with GRA
Time
Toggle
output
Toggle
output
Figure 12.6 Toggle Output Example (TOA = 0, TOB = 1)
The TCNT value can be captured into a general register (GRA, GRB, GRC, or GRD) when a
signal level changes at an input-capture pin (FTIOA, FTIOB, FTIOC, or FTIOD). Capture can
take place on the rising edge, falling edge, or both edges. By using the input-capture function, the
pulse width and periods can be measured. Figure 12.7 shows an example of input capture when
both edges of FTIOA and the falling edge of FTIOB are selected as capture edges. TCNT operates
as a free-running counter.
Rev. 4.00, 03/04, page 159 of 400