ADSP-2126x SHARC Processor Hardware Reference
11-23
Input Data Port
IDP (DAI) Interrupt Service Routines for DMAs
The IDP can trigger either the high priority DAI core interrupt reflected
in the
DAI_IRPTL_H
register or the low priority DAI core interrupt
reflected in the
DAI_IRPTL_L
register. The ISR must read the correspond-
ing
DAI_IRPTL_H
or
DAI_IRPTL_L
register to find all the interrupts
currently latched. The
DAI_IRPTL_H
register reflects the high priority inter-
rupts and the
DAI_IRPTL_L
register reflects the low priority interrupts.
When these registers are read, it clears the latched interrupt bits. This is a
destructive read.
The following steps describe how an IDP ISR should be handled.
1. When the DMA for a channel completes, an interrupt is generated
and program control jumps to the ISR.
2. The program should clear the
IDP_DMA_EN
bit in the
IDP_CTL
register (= 0).
3. The program should read the
DAI_IRPTL_L
or
DAI_IRPTL_H
registers
to determine which DMA channels have completed.
To ensure that the DMA of a particular IDP channel is complete,
(all data is transferred into internal memory) wait until the
IDP_D-
MAx_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.
As each DMA channel completes, a corresponding bit in either the
DAI_IRPTL_L
or
DAI_IRPTL_H
registers for each DMA channel is set
(
IDP_DMAx_INT
). Refer to
and
DAI_IRPTL_L
or
DAI_IRPTL_H
registers.
4. Reprogram the DMA registers for finished DMA channels.
Содержание 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 ...