Datasheet

MCP19111
DS22331A-page 116 2013 Microchip Technology Inc.
REGISTER 19-8: WPUGPB: WEAK PULL-UP PORTGPB REGISTER
R/W-1 R/W-1 R/W-1 R/W-1 U-0 R/W-1 R/W-1 U-0
WPUB7 WPUB6 WPUB5 WPUB4 WPUB2 WPUB1
bit 7 bit 0
Legend:
R = Readable bit P = Programmable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-4 WPUB<7:4>: Weak Pull-up Register bit
1 = Pull-up enabled
0 = Pull-up disabled
bit 3 Unimplemented: Read as ‘0
bit 2-1 WPUB<2:1>: Weak Pull-up Register bit
1 = Pull-up enabled
0 = Pull-up disabled
bit 0 Unimplemented: Read as ‘0
Note 1: The weak pull-up device is enabled only when the global RAPU
bit is enabled, the pin is in Input mode
(TRISGPA = 1), the individual WPUB bit is enabled (WPUB = 1), and the pin is not configured as an
analog input.
REGISTER 19-9: ANSELB: ANALOG SELECT PORTGPB REGISTER
U-0 U-0 R/W-1 R/W-1 U-0 R/W-1 R/W-1 U-0
ANSB5 ANSB4 ANSB2 ANSB1
bit 7 bit 0
Legend:
R = Readable bit P = Programmable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-6 Unimplemented: Read as ‘0
bit 5-4 ANSB<5:4>: Analog Select PORTGPB Register bit
1 = Analog input. Pin is assigned as analog input
(1)
.
0 = Digital I/O. Pin is assigned to port or special function.
bit 3 Unimplemented: Read as0
bit 2-1 ANSB<2:1>: Analog Select PORTGPB Register bit
1 = Analog input. Pin is assigned as analog input
(1)
.
0 = Digital I/O. Pin is assigned to port or special function.
bit 0 Unimplemented: Read as0
Note 1: Setting a pin to an analog input automatically disables the digital input circuitry, weak pull-ups and
interrupt-on-change if available. The corresponding TRIS bit must be set to Input mode in order to allow
external control of the voltage on the pin.