Datasheet

2010-2011 Microchip Technology Inc. DS41418B-page 59
PIC16(L)F707
6.3.4 PIN DESCRIPTIONS
Each PORTB pin is multiplexed with other functions. The
pins and their combined functions are briefly described
here. For specific information about individual functions
such as the SSP, I
2
C or interrupts, refer to the appropriate
section in this data sheet.
6.3.4.1 RB0/AN12/CPSB8/INT
These pins are configurable to function as one of the
following:
General purpose I/O
Analog input for the ADC
Capacitive sensing input
External edge triggered interrupt
6.3.4.2 RB1/AN10/CPSB9
These pins are configurable to function as one of the
following:
General purpose I/O
Analog input for the ADC
Capacitive sensing input
6.3.4.3 RB2/AN8/CPSB10
These pins are configurable to function as one of the
following:
General purpose I/O
Analog input for the ADC
Capacitive sensing input
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
R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1
ANSB7 ANSB6 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-0 ANSB<7:0>: Analog Select between Analog or Digital Function on Pins RB<7: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.