ADSP-2126x SHARC Processor Hardware Reference
10-53
Serial Peripheral Interface Port
With enabled SPI:
1. Clear the
RXSPIx
/
TXSPIx
registers and the buffer status without dis-
abling the SPI by ORing 0xC0000 with the present value in the
SPICTLx
registers. Use the
RXFLSH
(bit 19) and
TXFLSH
(bit 18) bits
in the
SPICTLx
registers to clear the
RXSPIx/TXSPIx
registers and
the buffer status.
2. Disable DMA and clear the FIFO by writing 0x80 to the
SPIDMACx
registers. This ensures that any data from a previous DMA opera-
tion is cleared because
SPICLK
runs for five more word transfers
even after the DMA count is zero in receive DMA.
3. Clear all errors by writing to the W1C-type bits in the
SPISTATx
registers. This ensures that no interrupts occur due to errors from a
previous DMA operation.
4. Reconfigure the
SPICTLx
registers to remove the clear condition on
the
TXSPIx
/
RXSPIx
registers.
5. Configure DMA by writing to the DMA parameter registers
(described in
“Setting Up DMA Channel Allocation and Priorities”
) and the
SPIDMACx
registers using the
SPIDEN
bit (bit
0).
DMA Error Interrupts
The
SPIUNF
and
SPIOVF
bits of the
SPIDMACx
registers indicate transmission
errors during a DMA operation in slave mode. When one of the bits is set,
an SPI interrupt occurs. The following sequence details the steps to
respond to this interrupt.
Содержание 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 ...