Figure 12.5 Toggle Output Example (Toa = 0, Tob = 1); Figure 12.6 Toggle Output Example (Toa = 0, Tob = 1) - Renesas H8/36912 Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8/36912 Series:
Table of Contents

Advertisement

H'FFFF
GRA
GRB
H'0000
FTIOA
FTIOB
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.
H'FFFF
GRA
GRB
H'0000
FTIOA
FTIOB
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. 1.00, 11/03, page 166 of 376
Downloaded from
Elcodis.com
electronic components distributor
TCNT value

Figure 12.5 Toggle Output Example (TOA = 0, TOB = 1)

TCNT value

Figure 12.6 Toggle Output Example (TOA = 0, TOB = 1)

Counter cleared by compare match with GRA
Time
Toggle output
Toggle output
Time
Toggle
output
Toggle
output

Advertisement

Table of Contents
loading

Table of Contents