AnsweredAssumed Answered

STM32F051 10xPWM signal capture

Question asked by Péter Szilágyi on Mar 31, 2018
Latest reply on Apr 1, 2018 by Péter Szilágyi

Hi guys!

 

I use HAL drivers and I would like to measure the duty cycle of 10 x 25 kHz (asynchronus) PWM signal, but I'm not sure which peripheral should I use:

- if I use timer with capture mode then I get 2 x 10 x 25000 interrupts a second (might be too much?)

- I could use RC elements to convert the signals to analog and use the ADC (converting from digital to analog then back to digital again, sounds like unnecessary tasks to me)

 

What would you do in my case?

 

Thank you in advance!

 

Greetings,

Péter

Outcomes