ADSP-2126x SHARC Processor Hardware Reference
10-51
Serial Peripheral Interface Port
With disabled SPI:
1. Write 0x00 to the
SPICTLx
registers to disable SPI. Disabling the
SPI also clears the
RXSPIx
/
TXSPIx
registers and the buffer status.
2. Disable DMA by writing 0x00 to the
SPIDMAxC
register.
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 and enable the SPI ports.
5. Configure DMA by writing to the DMA parameter registers and
enable DMA.
With enabled SPI:
1. Clear the
RXSPIx
/
TXSPxI
registers and the buffer status without dis-
abling the SPI. This can be done by OR’ing 0xC0000 with the
present value in the
SPICTLx
registers. For example, programs can
use the
RXFLSH
and
TXFLSH
bits to clear
TXSPIx
/
RXSPIx
and the buf-
fer status.
2. Disable DMA by writing 0x00 to the
SPIDMAC
register.
3. Clear all errors by writing to the W1C-type bits in the
SPISTAT
reg-
ister. This ensures that no interrupts occur due to errors from a
previous DMA operation.
4. Reconfigure the
SPICTL
register to remove the clear condition on
the
TXSPI
/
RXSPI
registers.
5. Configure DMA by writing to the DMA parameter registers and
enable DMA.
Содержание 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 ...