Datasheet

© 2008 Microchip Technology Inc. DS41249E-page 43
PIC16F785/HV785
4.3.1 PORTB 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 individ-
ual functions such as the PWM, operational amplifier,
or the A/D, refer to the appropriate section in this Data
Sheet.
4.3.1.1 RB4/AN10/OP2-
The RB4/AN10/OP2- pin is configurable to function as
one of the following:
General purpose I/O
Analog input to the A/D
Analog input to Op Amp 2
4.3.1.2 RB5/AN11/OP2+
The RB5/AN11/OP2+ pin is configurable to function as
one of the following:
General purpose I/O
Analog input to the A/D
Analog input to Op Amp 2
FIGURE 4-7: BLOCK DIAGRAM OF RB4
AND RB5
4.3.1.3 RB6
The RB6 pin is configurable to function as the following:
Open drain general purpose I/O
FIGURE 4-8: BLOCK DIAGRAM OF RB6
4.3.1.4 RB7/SYNC
The RB7/SYNC pin is configurable to function as one
of the following:
General purpose I/O
PWM synchronization input and output
FIGURE 4-9: BLOCK DIAGRAM OF RB7
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTB
WR
TRISB
RD
TRISB
To A/D Converter
RD
PORTB
ANS10 (RB4)
ANS11 (RB5)
To Op Amp 2
D
EN
Q
I/O Pin
V
SS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTB
WR
TRISB
RD
TRISB
N
VSS
RD
PORTB
D
EN
Q
I/O Pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTB
WR
TRISB
RD
TRISB
0
1
Sync out
PWM Master
to PWM Sync Input
PH1EN
PH2EN
RD
PORTB
D
EN
Q