
SPI Data Transfer Operations
10-24
ADSP-2126x SHARC Processor Hardware Reference
4. Reconfigure the
SPICTL
register to clear the
TXSPI
/
RXSPI
registers.
5. Configure DMA by writing to the DMA parameter registers and
the
SPIDMAC
register using the
SPIDEN
bit (bit 0). These registers are
described in
DMA Error Interrupts
The
SPIUNF
and
SPIOVF
bits of the
SPIDMAC
register 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.
With disabling the SPI:
1. Disable the SPI port by writing 0x00 to the
SPICTL
register.
2. Disable DMA and clear the FIFO. For example, write 0x80 to the
SPIDMAC
register. This ensures that any data from a previous DMA
operation clears before configuring a new DMA operation.
3. Clear all errors by writing to the W1C-type bit in the
SPISTAT
reg-
ister. This ensures that the error bits
SPIOVF
and
SPIUNF
(in the
SPIDMAC
register) clear when a new DMA is configured.
4. Reconfigure the
SPICTL
register and enable SPI using the
SPIEN
bit.
5. Configure DMA by writing to the DMA parameter registers and
the
SPIDMAC
register.
Содержание 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 ...