- LPC5502 - can not trigger an SPI DMA transfer from CTimer0

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

- LPC5502 - can not trigger an SPI DMA transfer from CTimer0

540 Views
nico_2451
Contributor I

Hello,
I am a beginner with NXP MCUs. I have a task that I cannot solve.

So, I want to configure CTimer0 Match0 to trigger the DMA to transfer data over SPI every 100 microseconds. From the user manual, as far as I can understand, this should be possible. However, I can't achieve it. Could someone create a simple project that does this?

 

kind regards

0 Kudos
Reply
1 Reply

508 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @nico_2451 

There is a demo about SPI+DMA ''spi_dma" under LPC5506 SDK, it uses software trigger.

Alice_Yang_0-1727601661444.png

 

You can add Ctimer MATCH trigger based on it. About CTIMER  trigger SPI, you can refer to:

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/DMA-triggering-function-Demo-for-LPC55xx... 

https://community.nxp.com/t5/LPC-Microcontrollers/CTIMER-DMA-requests-triggers-pacing-the-transfers/... 

 

Hope it helps.

 

BR

Alice

0 Kudos
Reply