cancel
Showing results for 
Search instead for 
Did you mean: 

Accurate timing of events - SPI DMA

sreyas40
Associate III

sreyas40_0-1762943386543.png

In the above image (logic analyzer) , SPI in DMA was supposed to start at the end of high on the second signal, but it starts a bit later. (3rd signal CS of SPI, 4th signal SCLK)

sreyas40_1-1762943518981.png

And the SPI was to supposed to be active at every period (the first signal) whose period is 8.607us. 

The second signal is a slave timer to the first and a period elapsed callback of this signal call HAL_SPI_Receive_DMA.

There is also a 1 second timer

sreyas40_2-1762943888502.png

What should i do to correct this? I don't how to proceed, any solutions, learning materal would be really helpful

0 REPLIES 0