ADSP-214xx SHARC Processor Hardware Reference
11-31
Input Data Port
Servicing Interrupts for DMA
The following steps describe how to handle an IDP ISR for DMA.
1. An interrupt is generated and program control jumps to the ISR
when the DMA for a channel completes.
2. The program clears the
IDP_DMA_EN
bit in the
IDP_CTL
register.
a. To ensure that the DMA of a particular IDP channel is
complete, (all data is transferred into internal memory) wait
until the
IDP_DMAx_STAT
bit of that channel becomes zero in
the
DAI_STAT
register. This is required if a high priority
DMA (for example a SPORT DMA) is occurring at the
same time as the IDP DMA.
b. As each DMA channel completes, a corresponding bit in
either the
DAI_IMASK_L
or
DAI_IMASK_H
register for each
DMA channel is set (
IDP_DMAx_INT
).
3. The program clears (= 0) the channel's
IDP_DMA_ENx
bit in the
IDP_CTL1
register which has finished.
4. Reprogram the DMA registers for finished DMA channels.
More than one DMA channel may have completed during this
time period. For each, a bit is latched in the
DAI_IMASK_L
or
DAI_IMASK_H
registers. Ensure that the DMA registers are repro-
grammed. If any of the channels are not used, then its clock and
frame sync should be held
LOW
.
5. Read the
DAI_IMASK_L
or
DAI_IMASK_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.
www.BDTIC.com/ADI
Содержание SHARC ADSP-214 Series
Страница 60: ...Contents lx ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 72: ...Notation Conventions lxxii ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 130: ...Programming Model 2 52 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 264: ...Programming Models 3 134 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 290: ...Programming Model 4 26 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 296: ...Programming Model 5 6 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 396: ...Effect Latency 7 28 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 520: ...Programming Model 10 62 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 616: ...Debug Features 14 22 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 656: ...Programming Model 15 40 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 714: ...Programming Model 19 10 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1132: ...Register Listing A 306 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1192: ...Index I 34 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...