English
Language : 

PIC16F1847_13 Datasheet, PDF (122/440 Pages) Microchip Technology – 18/20/28-Pin Flash Microcontrollers with XLP Technology
PIC16(L)F1847
REGISTER 12-7: ANSELA: PORTA ANALOG SELECT REGISTER
U-0
—
bit 7
U-0
U-0
R/W-1/1
R/W-1/1
R/W-1/1
—
—
ANSA4
ANSA3
ANSA2
R/W-1/1
ANSA1
R/W-1/1
ANSA0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-5
bit 4-0
Unimplemented: Read as ‘0’
ANSA<4:0>: Analog Select between Analog or Digital Function on pins RA<4:0>, respectively
0 = Digital I/O. Pin is assigned to port or digital special function.
1 = Analog input. Pin is assigned as analog input(1). Digital input buffer disabled.
Note 1: 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.
DS40001453D-page 122
Preliminary
 2011-2013 Microchip Technology Inc.