Hi all,
I am trying to construct a circuit with ATmega88. At first, I used SG3525 for a 30-kHz inverter with comparators and opamps for sensing battery voltage, overload and different conditions. Now I want to do this with ATmega88. I can do all the sensing with ADC, that's no problem. My problem is how can I generate two PWM signals like the SG3525. They are not be inverted of each other but symmetrical, like in the SG3525 so that I can drive two MOSFETs in push-pull configuration, such that there won't be core saturation.
Is there any way to achieve this using the present PWM modules?
I tried, but failed. Say, I have 10microsecond period. If I set duty cycle at 30%, I have 3us on and 7us off on one pin, but on the other, 3us off and 7us on. Instead, I want it like on first pin 3us on then 2us off and then 5us off during which time on the other pin, firstly the whole 5us off, then 3us on, and then 2us off.
I hope I could make the problem clear.
Thanks in advance.
4AVR!