Hitachi H8/3664 Hardware Manual page 229

Table of Contents

Advertisement

Input Capture Function: 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. Figure 12.11
shows an example of the procedure for setting up input capture.
Input setup
Select input-capture
signal source
Start counter
Input capture operation
Figure 12.11 Setup Procedure for Input Capture (Example)
1. Set TIOR to select the input capture
function for a general register, and
select the input-capture signal source
and the capture edges (rising edge,
1
falling edge, or both edges) of the
input capture signal.
2. Set the CST bit in TMRW to 1 to start
the timer counter.
2
213

Advertisement

Table of Contents
loading

Table of Contents