PIC16F882/883/884/886/887
3.4.4
PIN DESCRIPTIONS AND
DIAGRAMS
FIGURE 3-9:
BLOCK DIAGRAM OF
RB<3:0>
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, I2C or interrupts, refer to the appropriate
section in this data sheet.
Analog(1)
Input Mode
Data Bus
D
Q
Q
VDD
WR
CK
Weak
WPUB
RBPU
RD
WPUB
3.4.4.1
RB0/AN12/INT
Figure 3-9 shows the diagram for this pin. This pin is
configurable to function as one of the following:
CCP1OUT Enable
VDD
D
Q
Q
• a general purpose I/O
CCP1OUT
1
• an analog input for the ADC
• an external edge triggered interrupt
WR
PORTB
CK
0
I/O Pin
3.4.4.2
RB1/AN10/P1C(1)/C12IN3-
D
Q
Q
Figure 3-9 shows the diagram for this pin. This pin is
configurable to function as one of the following:
WR
TRISB
CK
VSS
• a general purpose I/O
Analog(1)
Input Mode
RD
TRISB
• an analog input for the ADC
(1)
• a PWM output
RD
PORTB
• an analog input to Comparator C1 or C2
D
Q
Q
Note 1: P1C is available on PIC16F882/883/886
Q
Q
D
only.
CK
WR
IOCB
EN
Q3
3.4.4.3
RB2/AN8/P1B(1)
RD
IOCB
Figure 3-9 shows the diagram for this pin. This pin is
configurable to function as one of the following:
D
EN
• a general purpose I/O
Interrupt-on-
Change
• an analog input for the ADC
(1)
• a PWM output
RD PORTB
Note 1: P1B is available on PIC16F882/883/886
only.
RB0/INT
RB3/PGM
3.4.4.4
RB3/AN9/PGM/C12IN2-
To A/D Converter
To Comparator (RB1, RB3)
Note 1: ANSELH determines Analog Input mode.
Figure 3-9 shows the diagram for this pin. This pin is
configurable to function as one of the following:
• a general purpose I/O
• an analog input for the ADC
• Low-voltage In-Circuit Serial Programming enable
pin
• an analog input to Comparator C1 or C2
DS41291D-page 50
Preliminary
© 2007 Microchip Technology Inc.