The sequence for setting up and starting a chained DMA is outlined in the
following steps and can also be seen in
page
10-48.
1. Configure the TCB associated with each DMA in the chain except
for the first DMA in the chain.
2. Write the first three parameters for the initial DMA to the
, and
IMSPI
3. Select a baud rate using the
4. Select which flag to use as the SPI slave select signal in the
register.
5. Configure and enable the SPI port with the
6. Configure the DMA settings for the entire sequence, enabling
DMA and DMA chaining in the
7. Begin the DMA by writing the address of a TCB (describing the
second DMA in the chain) to the
8. Clear the chain pointer register before enabling chaining.
The address field of the chain pointer registers is only 19 bits wide. If a
program writes a symbolic address to bit 19 of the chain pointer, there
may be a conflict with the
the address, then AND the
ADSP-2126x SHARC Processor Hardware Reference
registers directly.
CSPI
SPIBAUD
bit. Programs should clear the upper bits of
PCI
bit separately, if needed. For example:
PCI
"Chained DMA Transfers" on
register.
SPICTL
register.
SPIDMAC
register.
CPSPI
I/O Processor
,
IISPI
SPIFLG
register.
7-15
Need help?
Do you have a question about the ADSP-21261 SHARC and is the answer not in the manual?
Questions and answers