I need to generate two PWM signals with the same duty cycle but with different phase shift, exactly 180°. The idea is to control the mosfets of the primary side of an inverter.
I´m working with a MC56F8006 of Freescale. Can anyone help me with this issue? Any similar experience with other microcontroller?
you can use a look-up table. it means a vector with members which all together construct a saw-tooth waveform. each time you want to compare saw-tooth and your reference signal pick one of the members. you need two saw-tooth waveforms. you simply can have these wave-forms by choosing appropriate members. for example suppose a period of your saw-tooth is 200 sample according to switching frequency. you start to construct first saw-tooth by picking member #1 and for second saw-tooth you have to start picking numbers from member #200.
Another way is using timer count-up and count-down. I am not experienced with the MCU you have mentioned. please read the datasheet for more information.