Skip to main content
parth kothiya
Associate III
April 24, 2019
Solved

STM32 TIMER synchronize with interrupt every rising edge?

  • April 24, 2019
  • 1 reply
  • 793 views

i want to control AC voltage using timer PWM mode ..

reference zero crossing signal interrupt every rising edge of zero crossing

frequency of pwm signal (100Hz) some time frequency of AC mains very between 99-100Hz so i need to synchronize my timer with every rising edge of zero crossing how can i synchronize TIMER?

This topic has been closed for replies.
Best answer by Tesla DeLorean

You can reset or change the phase by writing into the TIMx->CNT register.​

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
April 24, 2019

You can reset or change the phase by writing into the TIMx->CNT register.​

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