14.6.10 ANSELA
Note: When setting a pin to 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.
Name: | ANSELA |
Offset: | 0x1F38 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
ANSELA5 | ANSELA4 | ANSELA2 | ANSELA1 | ANSELA0 | |||||
Access | R/W | R/W | R/W | R/W | R/W | ||||
Reset | 1 | 1 | 1 | 1 | 1 |
Bits 4, 5 – ANSELAn Analog Select on RA Pins
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. |
Bits 0, 1, 2 – ANSELAn Analog Select on RA Pins
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. |