Thank you very much for your reply. I have already figured out the buttons. I need only to replace the PWM with phase angle output. At what frequency and how many microseconds delay to trigger the SCR. Do I need to create interrupt to fire at zero crossing or used a hardware like optocoupler MOC with zero crossing.