Skip to main content
parth kothiya
Associate III
Apr 24, 2019 4:46 AM UTC
Solved

STM32 TIMER synchronize with interrupt every rising edge?

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.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Apr 24, 2019 5:32 AM UTC

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Apr 24, 2019 5:32 AM UTC

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..