
Input Data Port Programming Example
11-24
ADSP-2126x SHARC Processor Hardware Reference
More than one DMA channel may have completed during this
time period. For each, a bit is latched in the
DAI_IRPTL_L
or
DAI_IRPTL_H
registers. Ensure that the DMA registers are repro-
grammed. If any of the channels is not used, then its clock and
frame sync must be held
LOW
.
5. Read the
DAI_IRPTL_L
or
DAI_IRPTL_H
registers to see if more inter-
rupts have been generated.
• If the value(s) are not zero, repeat step 4.
• If the value(s) are zero, continue to step 6.
6. Re-enable the
IDP_DMA_EN
bit in the
IDP_CTL
register (set to 1).
7. Exit the ISR.
If a zero is read in step 5 (no more interrupts are latched), then all of the
interrupts needed for that ISR have been serviced. If another DMA com-
pletes after step 5 (that is, during steps 6 or 7), as soon as the ISR
completes, the ISR is called again because the OR of the latched bits will
be nonzero again. DMAs in process run to completion.
If step 5 is not performed, and a DMA channel expires during step
4, then when IDP DMA is re-enabled (step 6) the completed DMA
will
not
have been reprogrammed and its buffer will overrun.
Input Data Port Programming Example
shows a data transfer using an interrupt service routine (ISR).
The transfer takes place through the Digital Audio Interface (DAI). This
code implements the algorithm outlined in
.
Содержание ADSP-21261 SHARC
Страница 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Страница 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Страница 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Страница 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Страница 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...