project work- i want to fire 3 IGBT usin sine pwm

Hi. my project is to design an UPS. i need to fire 3 IGBTs one by one. i have got arduino mega 2560. pls give me a program to generate pwm waveform..
thank you

This sounds . . . familiar