Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 653

Table of Contents

Advertisement

5. Reconfigure the
the
TXSPIx
6. Configure DMA by writing to the DMA parameter registers and
the
SPIDMACx
DMA Error Interrupts
The
and
SPIUNF
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 SPI disabled:
1. Disable the SPI port by writing 0x00 to the
2. Disable DMA and clear the DMA FIFO by
SPIDMACx
operation is cleared before configuring a new DMA operation.
3. Clear all errors by writing to the W1C-type bits in the
registers. This ensures that the error bits
SPIDMACx
4. Reconfigure the
bit.
SPIEN
5. Configure DMA by writing to the DMA parameter registers and
the
SPIDMACx
ADSP-214xx SHARC Processor Hardware Reference
www.BDTIC.com/ADI
registers to remove the clear condition on
SPICTLx
/
registers.
RXSPIx
registers using the
bits of the
SPIOVF
SPIDMACx
register. This ensures that any data from a previous DMA
registers) are cleared when a new DMA is configured.
registers and enable the SPI using the
SPICTLx
registers.
Serial Peripheral Interface Ports
bit (bit 0).
SPIDEN
registers indicate transmission
SPICTLx
FIFOFLSH
SPIOVF
registers.
bit in the
SPISTATx
and
(in the
SPIUNF
15-37

Advertisement

Table of Contents
loading

Table of Contents