Programming Model
10-54
ADSP-2126x SHARC Processor Hardware Reference
With disabling the SPI:
1. Disable the SPI port by writing 0x00 to the
SPICTLx
registers.
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 before configuring a new DMA operation.
3. Clear all errors by writing to the W1C-type bits in the
SPISTATx
registers. This ensures that the error bits
SPIOVF
and
SPIUNF
(in the
SPIDMACx
registers) are cleared when a new DMA is configured.
4. Reconfigure the
SPICTLx
registers and enable the SPI using the
SPIEN
bit.
5. Configure DMA by writing to the DMA parameter registers and
the
SPIDMACx
registers.
Without disabling the SPI:
1. Disable DMA and clear the FIFO by writing 0x80 to the
SPIDMAC
register. This ensures that any data from a previous DMA opera-
tion is cleared before configuring a new DMA operation.
2. Clear the
RXSPIx
/
TXSPIx
registers and the buffer status without dis-
abling SPI. This can be done by ORing 0xc0000 with the present
value in the
SPICTLx
registers. Use the
RXFLSH
and
TXFLSH
bits to
clear the
RXSPIx
/
TXSPIx
registers and the buffer status.
3. Clear all errors by writing to the W1C-type bits in the
SPISTAT
register. This ensures that error bits
SPIOVF
and
SPIUNF
in the
SPIDMACx
registers are cleared when a new DMA is configured.
4. Reconfigure the
SPICTL
register to remove the clear condition on
the
RXSPI
/
TXSPI
register bits.
5. Configure DMA by writing to the DMA parameter registers and
the
SPIDMACx
register.
Summary of Contents for ADSP-21261 SHARC
Page 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Page 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Page 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Page 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Page 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Page 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Page 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Page 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Page 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Page 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Page 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Page 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...