Datasheet
PIC16(L)F720/721
DS40001430E-page 56 2010-2013 Microchip Technology Inc.
REGISTER 6-9: IOCB: INTERRUPT-ON-CHANGE PORTB REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 U-0 U-0 U-0 U-0
IOCB7 IOCB6 IOCB5 IOCB4
— — — —
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-4 IOCB<7:4>: Interrupt-on-Change PORTB Control bits
1 = Interrupt-on-change enabled
(1)
0 = Interrupt-on-change disabled
bit 3-0 Unimplemented: Read as ‘0’
Note 1: Interrupt-on-change also requires that the RABIE bit of the INTCON register be set.
REGISTER 6-10: ANSELB: PORTB ANALOG SELECT REGISTER
U-0 U-0 R/W-1 R/W-1 U-0 U-0 U-0 U-0
— — ANSB5 ANSB4 — — — —
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-4 ANSB<5:4>: Analog Select between Analog or Digital Function on Pins RB<5:4>, 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.
bit 3-0 Unimplemented: Read as ‘0’
Note 1: Setting a pin to an analog input automatically disables the digital input circuitry. Weak pull-ups, if
available, are unaffected. The corresponding TRIS bit must be set to Input mode by the user, in order to
allow external control of the voltage on the pin.