HD6417021 Hitachi Semiconductor, HD6417021 Datasheet - Page 267

no-image

HD6417021

Manufacturer Part Number
HD6417021
Description
SuperH RISC engine
Manufacturer
Hitachi Semiconductor
Datasheet
Input Capture Mode: In the input capture mode, the counter value is captured into a general
register when the input edge is detected at an input capture/output compare pin (TIOCA, TIOCB).
Detection can take place on the rising edge, falling edge, or both edges. Pulse width and cycle can
be measured by using the input capture function.
• Procedure for selecting the input capture mode (figure 10.23)
1. Set the TIOR to select the input capture function of the GR and select the rising edge,
2. Set the STR bit in the TSTR to 1 to start the TCNT counting.
falling edge, or both edges as the input edge of the input capture signal. Put the
corresponding port into input-capture using the pin function controller before setting the
TIOR.
Figure 10.23 Procedure for Selecting Input Capture Mode
Select input-capture input
Input selection
Start counting
Capture
HITACHI 253

Related parts for HD6417021