Microchip Technology AC244045 Data Sheet
PIC16F72X/PIC16LF72X
DS41341E-page 64
© 2009 Microchip Technology Inc.
REGISTER 6-7:
WPUB: WEAK PULL-UP PORTB REGISTER
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
WPUB7
WPUB6
WPUB5
WPUB4
WPUB3
WPUB2
WPUB1
WPUB0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable 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-0
WPUB<7:0>: Weak Pull-up Register bits
1
= Pull-up enabled
0
= Pull-up disabled
Note 1:
Global RBPU bit of the OPTION register must be cleared for individual pull-ups to be enabled.
2:
The weak pull-up device is automatically disabled if the pin is in configured as an output.
REGISTER 6-8:
IOCB: INTERRUPT-ON-CHANGE PORTB REGISTER
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
IOCB7
IOCB6
IOCB5
IOCB4
IOCB3
IOCB2
IOCB1
IOCB0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable 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-0
IOCB<7:0>: Interrupt-on-Change PORTB Control bits
1
= Interrupt-on-change enabled
0
= Interrupt-on-change disabled
REGISTER 6-9:
ANSELB: PORTB ANALOG SELECT REGISTER
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
—
—
ANSB5
ANSB4
ANSB3
ANSB2
ANSB1
ANSB0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable 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-0
ANSB<5:0>: Analog Select between Analog or Digital Function on Pins RB<5: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.
allow external control of the voltage on the pin.