HD6432670 Hitachi, HD6432670 Datasheet - Page 589

no-image

HD6432670

Manufacturer Part Number
HD6432670
Description
(HD64F267x Series) 16-Bit Microcomputer
Manufacturer
Hitachi
Datasheet
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
1. Example of setting procedure for input capture operation
2. Example of input capture operation
Figure 11.8 shows an example of the setting procedure for input capture operation.
Figure 11.9 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, 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.
<Input capture operation>
Select input capture input
0 and 3, ø/1 should not be selected as the counter input clock used for input capture input.
Input capture will not be generated if ø/1 is selected.
Figure 11.8 Example of Setting Procedure for Input Capture Operation
Input selection
Start count
[1]
[2]
[1] Designate TGR as an input capture register by
[2] Set the CST bit in TSTR to 1 to start the count
means of TIOR, and select the input capture
source and input signal edge (rising edge, falling
edge, or both edges).
operation.
Rev. 2.0, 04/02, page 543 of 906

Related parts for HD6432670