EasyManua.ls Logo

Analog Devices SHARC ADSP-21368 User Manual

Analog Devices SHARC ADSP-21368
894 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #388 background imageLoading...
Page #388 background image
SPI Data Transfer Operations
6-16 ADSP-21368 SHARC Processor Hardware Reference
4. For a single DMA, define the parameters of the DMA transfer by
writing to the
IISPIx, IMSPIx, and CSPIx registers. For DMA
chaining, also write the chain pointer address to the CPSPIx regis-
ters after the other DMA registers. For more information, see
“Setting Up and Starting Chained DMA over the SPI” on
page 2-42.
5. Write to the SPI DMA configuration registers, (SPIDMACx), to spec-
ify the DMA direction (SPIRCV, bit 1) and to enable the SPI DMA
engine (SPIDEN, bit 0). If DMA chaining is desired, set (= 1) the
SPICHEN bit (bit 4) in the SPIDMACx registers.
[
To avoid data corruption, enable the SPI port before enabling
DMA.
If flags are used as slave selects, programs should activate the flags by clear-
ing the flag after the SPICTLx and the SPIBAUDx registers are configured,
but before enabling the DMA. When CPHASE = 0, and a program is using
DMA, the flags are automatically activated by the SPI ports.
When enabled as a master, the DMA engine transmits or receives data as
follows:
1. If the SPI system is configured for transmitting, the DMA engine
reads data from memory into the SPI DMA FIFO. Data from the
DMA FIFO is loaded into the
TXSPIx registers and then into the
transmit shift register. This initiates the transfer on the SPI port.
2. If configured to receive, data from the
RXSPIx registers is automati-
cally loaded into the SPI DMA FIFO and the DMA engine reads
data from the SPI DMA FIFO and writes to memory. Finally, the
SPI initiates the receive transfer.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Analog Devices SHARC ADSP-21368 and is the answer not in the manual?

Analog Devices SHARC ADSP-21368 Specifications

General IconGeneral
ArchitectureSHARC
Core ProcessorADSP-21368
Core Clock Speed400 MHz
Serial Ports1
SPORTs4
SPI Ports1
I2C Ports1
Timers2
DMA Channels14
Operating Voltage - Core1.2 V
Operating Voltage - I/O3.3 V
Data Bus Width32-bit
Operating Temperature-40°C to +85°C
Number of Cores1
Audio ProcessingYes
PackageLQFP

Related product manuals