Figure 9.9 Example Of Setting Procedure For Input Capture Operation - Renesas H8SX/1520 Series Hardware Manual

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1520 Series:
Table of Contents

Advertisement

(3)
Input Capture Function
The TCNT value can be transferred to TGR on detection of the TIOC pin input edge.
Rising edge, falling edge, or both edges can be selected as the detection edge. For channels 0, 1, 3,
and 4, it is also possible to specify another channel's counter input clock or compare match signal
as the input capture source.
Note: When another channel's counter input clock is used as the input capture input for
channels 0 and 3, Pφ/1 should not be selected as the counter input clock used for input
capture input. Input capture will not be generated if Pφ/1 is selected.
(a)
Example of setting procedure for input capture operation
Figure 9.9 shows an example of the setting procedure for input capture operation.
Select input capture input
<Input capture operation>

Figure 9.9 Example of Setting Procedure for Input Capture Operation

Downloaded from
Elcodis.com
electronic components distributor
Input selection
Start count
[1] Designate TGR as an input capture register by
means of TIOR, and select the input capture
source and input signal edge (rising edge, falling
[1]
edge, or both edges).
[2] Set the CST bit in TSTR to 1 to start the count
[2]
operation.
Rev. 3.00 Mar. 14, 2006 Page 303 of 804
Section 9 16-Bit Timer Pulse Unit (TPU)
REJ09B0104-0300

Advertisement

Table of Contents
loading

Table of Contents