AnsweredAssumed Answered

[STM32F10x] Timer 1 overflow/underflow not correctly

Question asked by xuan_uoc.nguyen on Jun 26, 2016
Hi everyone,
I'm building a BLDC motor control project which use 6 steps for control. And now, i wanna sample ADC on timer1 overflow when PWM-ON (PWM run in PWM mode 1 and Center-Aligned3). I get an issue: Timer 1 overflow/underflow not correctly. Timer overflow isnt between in 2 times TCNT match Compare value (offset about 2us) and underflow the same. My pwm run at 20kHz.
Have you get the same problem?
Thank you very much.

Outcomes