Thanks for your replies.
I have rearranged and modified the code.
The feedback is working properly but there is an issue.
Any time i load it small load like table lamp, small fan , the output wave and voltage is good, but when i use larger loads, like soldering iron, laptop, the output voltage becomes attenuated and distorted. what can I do ?
Sounds like overloading... If you have designed the hardware to give an output of 1KW... Thats only 4 amp..
Your laptop will require 3~4a at 220vac.... How much DC are you using? If you have designed the inverter for 1KW then the inverter is too small or is inefficient.. Most inverters have to run around 85%+ to be of any use..