Renesas H8/3067 Series User Manual page 393

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

Advertisement

• Sample setup procedure for input capture
Figure 9.21 shows a sample procedure for setting up input capture.
Input selection
Select input-capture input
Start counter
Input capture
Figure 9.21 Setup Procedure for Input Capture (Example)
• Examples of input capture
Figure 9.22 illustrates input capture when the falling edge of TIOCB and both edges of TIOCA
are selected as capture edges. TCNT is cleared by input capture into GRB.
TCNT value
H'0180
H'0160
H'0005
H'0000
TIOCB
TIOCA
GRA
GRB
1.
Set TIOR to select the input capture function of a
general register and the rising edge, falling edge,
or both edges of the input capture signal. Clear the
DDR bit to 0 before making these TIOR settings.
1
2
2.
Set the STR bit to 1 in TSTR to start the timer
counter.
H'0005
Figure 9.22 Input Capture (Example)
Section 9 16-Bit Timer
H'0160
H'0180
Rev. 4.00 Jan 26, 2006 page 369 of 938
REJ09B0276-0400

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3067H8/3066H8/3065H8/3067rf

Table of Contents