Hi
I require help from learned forum members regarding a general concept.
I have a sine weighted PWM generator from a microcontroller.
Simple question : How to determine synchronise the o/p frequency of sinewave with Mains frequency?
PWM freq = 8KHz
Microcontroller has 2 timers of which one is generating the 4 PWM o/ps
Also i have a Comparator module which can trigger this Timer1
or else i can use Timer2 in input capture mode to trigger Timer1 for PWM.
Can someone explain at top level, how this is done or can be done?
All help appreciated
I require help from learned forum members regarding a general concept.
I have a sine weighted PWM generator from a microcontroller.
Simple question : How to determine synchronise the o/p frequency of sinewave with Mains frequency?
PWM freq = 8KHz
Microcontroller has 2 timers of which one is generating the 4 PWM o/ps
Also i have a Comparator module which can trigger this Timer1
or else i can use Timer2 in input capture mode to trigger Timer1 for PWM.
Can someone explain at top level, how this is done or can be done?
All help appreciated