Analog Devices SHARC ADSP-2136 Series Hardware Reference Manual page 263

Table of Contents

Advertisement

To configure for slave mode DMA:
1. Write to the
the same as the mode that is set up in the SPI master. Configure
the
TIMOD
(
= 10).
TIMOD
2. Define DMA receive (or transmit) transfer parameters by writing
to the
IISPIx
write to the chain pointer address of the
3. Write to the
configure the following:
• A receive access (
• A transmit access (
• If DMA chaining is desired, set the
SPIDMACx
Enable the SPI port before enabling DMA to avoid data
corruption.
Chained DMA Transfers
The sequence for setting up and starting a chained DMA is outlined in the
following steps.
1. Clear the chain pointer register.
2. Configure the TCB associated with each DMA in the chain except
for the first DMA in the chain.
3. Write the first three parameters for the initial DMA to the
,
IMSPI
CSPI
4. Select a baud rate using the
ADSP-2136x SHARC Processor Hardware Reference
www.BDTIC.com/ADI
for the ADSP-21362/3/4/5/6 Processors
Serial Peripheral Interface Ports
register to make the mode of the serial link
SPICTLx
field to select transmit or receive DMA mode
,
, and
IMSPIx
CSPIx
registers to enable the SPI DMA engine and
SPIDMACx
SPIRCV
SPIRCV
registers.
,
,
, and
IISPIB
IMSPIB
SPIBAUD
registers. For DMA chaining,
registers.
CPSPIx
= 1) or
= 0)
SPICHEN
registers directly.
CSPIB
register.
bit in the
,
IISPI
7-39

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SHARC ADSP-2136 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents