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

Table of Contents

Advertisement

Programming Model
With SPI enabled:
1. Disable DMA and clear the DMA FIFO by
SPIDMACx
operation is cleared before configuring a new DMA operation.
2. Clear the
abling SPI. This can be done by ORing 0xC0000 with the present
value in the
clear the
3. Clear all errors by writing to the W1C-type bits in the
register. This ensures that error bits
SPIDMACx
4. Reconfigure the
the
RXSPI
5. Configure DMA by writing to the DMA parameter registers and
the
SPIDMACx
Multi-Master Transfers
The following steps show how to implement a system with two SPI
devices. Since the slaves cannot initiate transfers over the bus, the master
must send frames over the
to the bus by sending messages over the
1. Slave writes message to its
2. Slave starts polling its
3. Message is latched by current master and decoded.
4. Master deasserts the slave select signal and clears the
become a slave.
15-38
www.BDTIC.com/ADI
register. This ensures that any data from a previous DMA
/
registers and the buffer status without dis-
RXSPIx
TXSPIx
registers. Use the
SPICTLx
/
registers and the buffer status.
RXSPIx
TXSPIx
registers are cleared when a new DMA is configured.
register to remove the clear condition on
SPICTL
/
register bits.
TXSPI
register.
pin. This ensures that slaves can respond
MOSI
MISO
SPI_DS_I
ADSP-214xx SHARC Processor Hardware Reference
FIFOFLSH
and
RXFLSH
TXFLSH
and
SPIOVF
SPIUNF
pin to the bus master.
MISO
pin.
pin which is currently low.
bit in the
bits to
SPISTAT
in the
bit to
SPIMS

Advertisement

Table of Contents
loading

Table of Contents