There was a catastrophic error in the AC code this whole time. It's a miracle that it was working at all. I had the following to ENABLE complementary output mode:
PWMCON1bits.PMOD1 = 1; //
PWMCON1bits.PMOD2 = 1;
PWMCON1bits.PMOD3 = 1; //
BUT, that was to DISABLE complementary output mode!! The deadtime wasn't working the whole time!
|