
Programming Model
10-48
ADSP-2126x SHARC Processor Hardware Reference
bytes may not be received by the SPI DMA due to the condition for gen-
erating the DMA request.
To configure for slave mode DMA:
1. Write to the
SPICTLx
register to make the mode of the serial link
the same as the mode that is set up in the SPI master. Configure
the
TIMOD
field to select transmit or receive DMA mode
(
TIMOD
= 10).
2. Define DMA receive (or transmit) transfer parameters by writing
to the
IISPIx
,
IMSPIx
, and
CSPIx
registers. For DMA chaining,
write to the chain pointer address of the
CPSPIx
registers.
3. Write to the
SPIDMACx
registers to enable the SPI DMA engine and
configure the following:
• A receive access (
SPIRCV
= 1) or
• A transmit access (
SPIRCV
= 0)
If DMA chaining is desired, set the
SPICHEN
bit in the
SPIDMACx
registers.
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.
Содержание 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 ...