English
Language : 

PIC16F882-I Datasheet, PDF (52/328 Pages) Microchip Technology – 28/40/44-Pin, Enhanced Flash-Based 8-Bit CMOS Microcontrollers
PIC16F882/883/884/886/887
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, I2C or interrupts, refer to the appropriate
section in this data sheet.
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:
• 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-
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
• a PWM output(1)
• an analog input to Comparator C1 or C2
Note 1: P1C is available on PIC16F882/883/886
only.
3.4.4.3 RB2/AN8/P1B(1)
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
• a PWM output(1)
Note 1: P1B is available on PIC16F882/883/886
only.
3.4.4.4 RB3/AN9/PGM/C12IN2-
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
FIGURE 3-9:
Data Bus
DQ
WR
WPUB
CK Q
RD
WPUB
DQ
WR
PORTB
CK Q
WR
TRISB
DQ
CK Q
RD
TRISB
RD
PORTB
DQ
WR
IOCB
CK Q
RD
IOCB
Interrupt-on-
Change
BLOCK DIAGRAM OF
RB<3:0>
Analog(1)
Input Mode
VDD
Weak
RBPU
CCP1OUT Enable
VDD
CCP1OUT 1
0
I/O Pin
VSS
Analog(1)
Input Mode
QD
EN
Q3
QD
EN
RD PORTB
RB0/INT
RB3/PGM
To A/D Converter
To Comparator (RB1, RB3)
Note 1: ANSELH determines Analog Input mode.
DS41291F-page 50
© 2009 Microchip Technology Inc.