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
Содержание HD6417032
Страница 21: ......
Страница 35: ...xiv ...
Страница 85: ...50 ...
Страница 101: ...66 ...
Страница 129: ...94 ...
Страница 135: ...100 ...
Страница 343: ...308 ...
Страница 369: ...334 ...
Страница 383: ...348 ...
Страница 475: ...440 ...
Страница 525: ...490 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 18 Self Refresh ...
Страница 578: ...543 CK RAS CAS TRp TRc TRcc tRASD1 tRASD2 tCASD3 tCASD2 TRr tCSR Figure 20 62 Self Refresh ...
Страница 689: ...654 ...