Let me guess, you are using PORTC.1 and/or PORTC.2 ?? The comparator will need dealt with.