Problems setting PPS Digital Inputs on the dsPIC33EP512MU810
RPIx (PPS input) digital pin is also multiplexed as an analog pin. If the pin is being configured for digital input, why does setting the ANSEL to 0 not make the pin behave as a digital input pin?
On the dsPIC33EP512MU810 device, the ANSEL setting is in reverse order of all other dsPIC33EP devices for PPS pins. To make an RPIx pin behave as a digital input set the ANSELx bit as 1.
Please read "dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814 Family Silicon Errata and Data Sheet Clarification" for more information.