the instantaneous value of the SEIG terminal voltage is sensed for every two cycles and the error signal is generated by comparing the voltage with reference value. Depending upon the value of the error signal the PIG microcontroller is programmed to provide the PWM pulses to the switch.