Hi,
have a look at the following
http://www.picbasic.co.uk/forum/show...power+inverter