=20 > I get the digest to this list, so my replies sometimes are out of > synch with your newest replies to me. Sorry. That's OK, I understand > I'm not sure I fully follow your flow on using Comparators The thought was to use a comparator to determine the state of the CWG pins. As they are complementary the state of one will be the inverse of the other. For example, wire CWG1A to C1IN+. s/w detects C1IF, which would be set when CWG1A goes high. PWM is turned on for the duration of CWG1A=3Dhigh. CWG1A=3Dlow is detected via C1IF after flipping the comparator polarity bit. The PWM when CWG1A =3Dhigh comes out of one of the designated PWM pins. Another is set to an I/O with the opposite polarity to CWG1A, corresponding to CWG1B=3Dlow. When CWG1A=3Dlow, the opposite happens You could get the same result by using IOC or polling to determine the state of the CWG pins There would be no or negligible effect on the audio > But what I can say is that I want to stick with RC5 (pin 5) and > RC4 (pin 6) for my complementary outputs to the H-BRIDGE If you can't multiplex CWG with PWM inside the chip then you can't get what you want on the CWG pins. Adding PWM to CWG is a requirement Microchip seem not to have envisaged ;-) !! All this comes with a disclaimer - I don't have a chip and could easily have overlooked something but I think the two important points are that CWG cannot be intercepted before the pins and cannot be used as CLC input Joe ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2016.0.7690 / Virus Database: 4627/12754 - Release Date: 08/05/16 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .