259
Input Capture Mode: In 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. The pulse width and cycle
can be measured by using the input capture function.
•
Procedure for selecting input capture mode (figure 10.23)
1. Set TIOR to select the input capture function of GR and select the rising edge, falling edge,
or both edges as the input edge of the input capture signal. Put the corresponding port into
input-capture mode using the pin function controller before setting TIOR.
2. Set the STR bit in TSTR to 1 to start the TCNT count.
Input selection
Select input-capture input
(1)
(2)
Start counting
Capture
Figure 10.23 Procedure for Selecting Input Capture Mode
Summary of Contents for HD6417032
Page 21: ......
Page 35: ...xiv ...
Page 85: ...50 ...
Page 101: ...66 ...
Page 129: ...94 ...
Page 135: ...100 ...
Page 343: ...308 ...
Page 369: ...334 ...
Page 383: ...348 ...
Page 475: ...440 ...
Page 525: ...490 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 18 Self Refresh ...
Page 578: ...543 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 62 Self Refresh ...
Page 689: ...654 ...