Hi,
Well, you have to set the pins to the correct state at the start of the program - before you start the PWM-loop otherwise they will both start low and then toggle together. Set one high and the other low at the beginning, before you actually start the PWM.
Or create a subroutine which sets everything up properly and simply GOSUB that routine at startup or whenever you need to "restart" it.
Bookmarks