EmbeddedRelated.com
Forums

LPC17xx DMA, full duplex SPI bus, seeking code example

Started by Richard September 5, 2012
I seeking code example that demonstrate or make use of DMA for data transfer between memory to SPI bus within SSP1 port. This need to be full duplex, rather than half-duplex.

This device is treated as Slave, where external CS and SCLK drive drive the data transfer.

The data transfer size is up to 130 Byte.

Can the DMA be halted or operation cancel when CS goes HIGH without risk of memory corruption. If so how to do this?

An Engineer's Guide to the LPC2100 Series

Hi,

take a look at this:
http://www.embeddedrelated.com/groups/lpc2000/show/55956.php

Regards,
Kuba

2012/9/5 Richard

> **
> I seeking code example that demonstrate or make use of DMA for data
> transfer between memory to SPI bus within SSP1 port. This need to be full
> duplex, rather than half-duplex.
>
> This device is treated as Slave, where external CS and SCLK drive drive
> the data transfer.
>
> The data transfer size is up to 130 Byte.
>
> Can the DMA be halted or operation cancel when CS goes HIGH without risk
> of memory corruption. If so how to do this?
>
>
>