MPC5554: Non-trivial DSPI-DMA transfer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5554: Non-trivial DSPI-DMA transfer

622 Views
vyacheslavkruto
Contributor I

Is it possible to configure DSPI-DMA mode such way that allows to automaticaly transfer several KB data array from a memory location  outside over SPI bus ?

So, when SPI TX FIFO would be full, DMA will stall and wait till an empty entry in FIFO after word shifting out would be available to continue DMA operation.

 

Thanks.

Labels (1)
0 Kudos
1 Reply

379 Views
petervlna
NXP TechSupport
NXP TechSupport

[We are sorry for delayed answer, this question was originally placed in box which was not monitored by our team]

Hi,

Yes you can achieve such functionality with DMA.

When FIFO is not full SPI will request DMA transfer.

Example code can be found here:

https://community.freescale.com/message/535094#comment-535094

Peter

0 Kudos