PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 251

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
REGISTER 20-6:
REGISTER 20-7:
 2003 Microchip Technology Inc.
bit 15-9 Unimplemented: Read as ‘0’
bit 8
bit 7-0
bit 7
ANS8: Analog Input Function Select bit
1 = Analog Input
0 = Digital I/O
Legend:
R = Readable bit
-n = Value at Reset
ANS<7:0>: Analog Input Function Select bits
Correspond to pins AN<7:0>
1 = Analog Input
0 = Digital I/O
ANSEL0: ANALOG SELECT REGISTER 0
Legend:
R = Readable bit
-n = Value at Reset
ANSEL1: ANALOG SELECT REGISTER 1
ANS7
R/W-1
Note 1: Setting a pin to an analog input disables the digital input buffer. The corresponding
bit 15
Note 1: Setting a pin to an analog input disables the digital input buffer. The corresponding
U-0
(2)
2: ANS8 is available only on PIC18F4X31 devices.
2: ANS7 through ANS5 are available only on PIC18F4X31 devices.
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 to be read as ‘0’.
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 to be read as ‘0’.
ANS6
R/W-1
U-0
(2)
PIC18F2331/2431/4331/4431
ANS5
R/W-1
Preliminary
U-0
W = Writable bit
‘1’ = bit is set
W = Writable bit
‘1’ = bit is set
(2)
R/W-1
ANS4
U-0
(1)
(1)
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
R/W-1
ANS2
U-0
x = bit is unknown
x = bit is unknown
R/W-1
ANS1
U-0
DS39616B-page 249
ANS8
R/W-1
R/W-1
ANS0
bit 0
bit 8
(2)

Related parts for PIC18F2331