Skip to main content
nguyenxuanuoc0905
Visitor II
June 26, 2016
Question

[STM32F10x] Timer 1 overflow/underflow not correctly

  • June 26, 2016
  • 0 replies
  • 468 views
Posted on June 26, 2016 at 07:06

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.
This topic has been closed for replies.