15.1.2 CCP2 PIN ASSIGNMENT
The pin assignment for CCP2 (Capture input, Compare
and PWM output) can change, based on device configuration.
The CCP2MX Configuration bit determines
which pin CCP2 is multiplexed to. By default, it is
assigned to RC1 (CCP2MX = 1). If the Configuration bit
is cleared, CCP2 is multiplexed with RB3.
Changing the pin assignment of CCP2 does not
automatically change any requirements for configuring
the port pin. Users must always verify that the appropriate
TRIS register is configured correctly for CCP2
operation, regardless of where it is located.
Esta dañada esa PUll-UP. No, no, no.. Es en serie no te rias. A mi me paso y creeme me saco canas verdes, rojas, azules. Sucede que confiaba de las Pull-Up de B4 hasta B7. Coloque el teclado 4x4 y listo a programar. despues de dias y dias de por que razon el bendito teclado no trabajaba, encontre que por mas que activaba las Pull-Up, nunca aparecian y me toco colocarselas externas.. Para no creer pero asi fue me hizo perder mas de 8 dias ese problemita.
Revisando otro tema, me he topado de bruces con un fuse: CCP2C1/CCP2B3
He revisado el código de tu programa, ¿y a que no adivinas cuál de los dos tienes puesto? :D