RB3 CCP1 input is an ST type, so it needs 0.8 * Vdd to meet the logic 1 input threshold.

I can't really tell from your schematic, but it looks like you might have a voltage divider?