Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 338
PIC16F882/883/884/886/887
DS41291G-page 52
 2006-2012 Microchip Technology Inc.
3.4.4
PIN DESCRIPTIONS AND 
DIAGRAMS
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.
3.4.4.1
RB0/AN12/INT
 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
• an external edge triggered interrupt
3.4.4.2
RB1/AN10/P1C
(1)
/C12IN3-
 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
• a PWM output
(1)
• an analog input to Comparator C1 or C2
3.4.4.3
RB2/AN8/P1B
(1)
 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
• a PWM output
(1)
3.4.4.4
RB3/AN9/PGM/C12IN2-
 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
FIGURE 3-9:
BLOCK DIAGRAM OF 
RB<3:0>
Note 1: P1C is available on PIC16F882/883/886
only.
Note 1: P1B is available on PIC16F882/883/886
only.
I/O Pin
V
DD
V
SS
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
V
DD
Weak
Analog
(1)
Input Mode
Data Bus
WR
WPUB
RD
WPUB
WR
PORTB
WR
TRISB
RD
TRISB
To A/D Converter
RB0/INT
Analog
(1)
Input Mode
RBPU
Note 1:
ANSELH determines Analog Input mode.
RB3/PGM
To Comparator (RB1, RB3)
D
Q
CK
Q
D
EN
Q
D
EN
Q
RD PORTB
RD
PORTB
WR
IOCB
RD
IOCB
Interrupt-on-
Change
Q3
1
0
CCP1OUT Enable
CCP1OUT