33.5.1 I/O Lines

To prevent interference with the input signal on an I/O pin, the pin can be configured to use the analog function, which disables the pull-up, pull-down, input buffer, and output buffer controls. On PIC32CM devices, this is typically achieved by writing the Peripheral Multiplexing for Odd-Numbered Pin (PMUXO) or Peripheral Multiplexing for Even-Numbered Pin (PMUXE) bit field for the corresponding pin in the Peripheral Multiplexing register (PMUX[m]) to peripheral function B.

Alternatively, if some of the controls are needed by the application, the I/O pin output buffer and input buffer can be disabled separately to prevent interference with the input signal.

Refer to the Pinout and Multiplexing section in the Pinout chapter and the PORT – I/O Pin Controller chapter for details.