PIC18F2331-E/ML MICROCHIP [Microchip Technology], PIC18F2331-E/ML Datasheet - Page 245

no-image

PIC18F2331-E/ML

Manufacturer Part Number
PIC18F2331-E/ML
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
REGISTER 21-6:
REGISTER 21-7:
 2010 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-0
Note 1:
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-1
bit 0
Note 1:
ANS7
R/W-1
U-0
2:
2:
(2)
Setting a pin to an analog input disables the digital input buffer. The corresponding TRIS bit should be set
for an input and cleared for an output (analog or digital). The ANSx bits directly correspond to the ANx pins
(e.g., ANS0 = AN0, ANS1 = AN1, etc.). Unused ANSx bits are read as ‘0’.
ANS7 through ANS5 are available only on PIC18F4331/4431 devices.
Setting a pin to an analog input disables the digital input buffer. The corresponding TRIS bit should be set
for an input and cleared for an output (analog or digital). The ANSx bits directly correspond to the ANx pins
(e.g., ANS8 = AN8, ANS9 = AN9, etc.). Unused ANSx bits are read as ‘0’.
ANS8 is available only on PIC18F4331/4431 devices.
ANS<7:0>: Analog Input Function Select bits
Correspond to pins, AN<7:0>.
1 = Analog input
0 = Digital I/O
Unimplemented: Read as ‘0’
ANS8: Analog Input Function Select bit
1 = Analog input
0 = Digital I/O
ANS6
R/W-1
U-0
ANSEL0: ANALOG SELECT REGISTER 0
ANSEL1: ANALOG SELECT REGISTER 1
(2)
W = Writable bit
W = Writable bit
‘1’ = Bit is set
‘1’ = Bit is set
ANS5
R/W-1
U-0
(2)
PIC18F2331/2431/4331/4431
R/W-1
ANS4
U-0
(2)
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-1
ANS3
U-0
(1)
(1)
R/W-1
ANS2
U-0
x = Bit is unknown
x = Bit is unknown
R/W-1
ANS1
U-0
DS39616D-page 245
ANS8
R/W-1
R/W-1
ANS0
(2)
bit 0
bit 0

Related parts for PIC18F2331-E/ML