For producing the firing pulses for thyristors using pic microcontroller the ac line sholuld be syncronized with μc as a reference. How we can acieve this and how this interfacing could be done? Need help.thank you!