2018-10-19 06:15 AM
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?
2018-10-19 07:32 AM
You could perhaps find a DMA/TIM combination to write a value to the SPI->DR