14.3 I/O Priorities
Each pin defaults to the PORT data latch after Reset. Other functions are selected with the peripheral pin select logic. See the “Peripheral Pin Select (PPS) Module” section for more information.
Analog input functions, such as ADC and comparator inputs, are not shown in the peripheral pin select lists. These inputs are active when the I/O pin is set for Analog mode using the ANSELx register. Digital output functions may continue to control the pin when it is in Analog mode.
Analog outputs, when enabled, take priority over digital outputs and force the digital output driver into a High-Impedance state.
The pin function priorities are as follows:
- Configuration bits
- Analog outputs (disable the input buffers)
- Analog inputs
- Port inputs and outputs from PPS