LPC55S69 - Simple example of SCTIMER triggering SPI DMA transfer

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

LPC55S69 - Simple example of SCTIMER triggering SPI DMA transfer

1,102 Views
IanMcCarthy
Contributor I

Hi All,

So many options, so little time...

Does anyone have a simple example where a free running SCTIMER will trigger a single TX byte/word DMA transfer on an SPI interface.

We have SCTIMER running generating PWM and we have SPI DMA running using various linked descriptor strategies...but we can't at the moment get an SCTIMER match to trigger a DMA transfer.

Any help/pointers would be gratefully appreciated.

Thanks.

0 Kudos
Reply
1 Reply

1,093 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

It is okay to use SCTimer to generate fixed period signal to trigger DMA, but we have not example code for the solution.

For your application that you use SCTimer to trigger DMA, you have to configure the SCT DMA request 0, which is set up in DMAREQ0,

xiangjun_rong_1-1650007851392.png

 

You have to set up the Input Mux register  to generate trigger signal to trigger DMA channel

xiangjun_rong_0-1650007749467.png

Pls have a check if you set them or not.

BR

XiangJun Rong

 

0 Kudos
Reply