cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to synchronize PWM on-time with an SPI reading?

xpp07
Senior

I'm using Timer 1 from nucleo L432KC in PWM generation mode at 5 kHz to control a DC motor.

I'm using this current sensor TLI4970-D050T4 which gives a digital data via SPI. Is there a way I can synchronize current sampling with the PWM on-time?

1 REPLY 1

You could perhaps find a DMA/TIM combination to write a value to the SPI->DR

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..