i,m using pic16f877 to generate SPWM. sine wave that i build in half wave need to be invert because PIC cannot read in negative value. can anybody help me with this problem..this is what i write in c programming.
The question seems almost unclear because the code hasn't anything to do with "read in" a value, neither positive nor negative.
If output inversion would be possibly needed in PWM generation, depends on the intended power stage configuration and PWM
scheme, that hasn't been mentioned.