16.14.4 ANSELx
Important: 
            
- When setting a pin as an analog input, the corresponding TRIS bit must be set to Input mode in order to allow external control of the voltage on the pin.
- Refer to the “Pin Allocation Table” for details about pin availability per port.
| Name: | ANSELx | 
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| ANSELx7 | ANSELx6 | ANSELx5 | ANSELx4 | ANSELx3 | ANSELx2 | ANSELx1 | ANSELx0 | ||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 
Bits 0, 1, 2, 3, 4, 5, 6, 7 – ANSELxn Analog Select on Rx Pin
| Value | Description | 
|---|---|
| 1 | Analog input. Pin is assigned as analog input. Digital input buffer disabled. | 
| 0 | Digital I/O. Pin is assigned to port or digital special function. | 
