cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger SPI using Timer

sreyas40
Senior

I'm using STM32H723ZG

 

I want to know if a Timer's update event can trigger SPI transfer without any software interrupts.

This is the problem

4 REPLIES 4
TDK
Super User

Yes, you can set up a DMA channel to transfer data to/from the SPI on a timer event, such as TRGO.

If you feel a post has answered your question, please click "Accept as Solution".

@TDK  Can you tell me how to do it step-by-step.

Is this done by DMA Request Synchronization settings?

If it is, for SPI_RX  i can see TIM12 TRGO only, and there is no option for setting TRGO event for that timer in MX

TDK
Super User

I don't think this is clickable in STM32CubeMX.

If you feel a post has answered your question, please click "Accept as Solution".

then can you show me the other way