beautypg.com

Renesas SH7641 User Manual

Page 617

background image

Section 18 Multi-Function Timer Pulse Unit (MTU)

Rev. 4.00 Sep. 14, 2005 Page 567 of 982

REJ09B0023-0400

Example of Input Capture Operation Setting Procedure: Figure 18.9 shows an example of the
input capture operation setting procedure.

Input selection

Select input capture input

Start count

[1]

[2]

[1] Designate TGR as an input capture register

by means of TIOR, and select rising edge,
falling edge, or both edges as the input
capture source and input signal edge.

[2] Set the CST bit in TSTR to 1 to start the

count operation.

Figure 18.9 Example of Input Capture Operation Setting Procedure

Example of Input Capture Operation: Figure 18.10 shows an example of input capture
operation.

In this example both rising and falling edges have been selected as the TIOCA pin input capture
input edge, the falling edge has been selected as the TIOCB pin input capture input edge, and
counter clearing by TGRB input capture has been designated for TCNT.

This manual is related to the following products: