Datasheet

© 2009 Microchip Technology Inc. DS41291F-page 51
PIC16F882/883/884/886/887
3.4.4.5 RB4/AN11/P1D
(1)
Figure 3-10 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.6 RB5/AN13/T1G
Figure 3-10 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 Timer1 gate input
3.4.4.7 RB6/ICSPCLK
Figure 3-10 shows the diagram for this pin. This pin is
configurable to function as one of the following:
a general purpose I/O
In-Circuit Serial Programming clock
3.4.4.8 RB7/ICSPDAT
Figure 3-10 shows the diagram for this pin. This pin is
configurable to function as one of the following:
a general purpose I/O
In-Circuit Serial Programming data
FIGURE 3-10: BLOCK DIAGRAM OF RB<7:4>
Note 1: P1D is available on PIC16F882/883/886
only.
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
D
Q
CK
Q
VDD
D
EN
Q
D
EN
Q
Weak
Data Bus
WR
WPUB
RD
WPUB
RD PORTB
RD
PORTB
WR
PORTB
WR
TRISB
RD
TRISB
WR
IOCB
RD
IOCB
Interrupt-on-
Analog
(1)
Input Mode
RBPU
Change
Q3
Available on PIC16F882/PIC16F883/PIC16F886 only.
Note 1: ANSELH determines Analog Input mode.
2: Applies to RB<7:6> pins only).
3: Applies to RB5 pin only.
To A/D Converter
1
0
CCP1OUT Enable
CCP1OUT
0
1
1
0
Analog
(1)
Input Mode
To Timer1 T1G
(3)
ICSP™
(2)
To ICSPCLK (RB6) and ICSPDAT (RB7)