cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 TIMER synchronize with interrupt every rising edge?

parth kothiya
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

View solution in original post

1 REPLY 1

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

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