Datasheet

PIC16F913/914/916/917/946
DS41250F-page 58 © 2007 Microchip Technology Inc.
3.4.3.6 RB5/COM1
Figure 3-11 shows the diagram for this pin. The RB5
pin is configurable to function as one of the following:
a general purpose I/O
an analog output for the LCD
FIGURE 3-11: BLOCK DIAGRAM OF RB5
From other
Set RBIF
RB<7:4> pins
LCDEN and
COM1
QD
CK
Data Latch
TRIS Latch
RD TRISB
RD PORTB
QD
CK
TTL
Input Buffer
LCDEN and LMUX<1:0>
00
Data Bus
WR PORTB
WR TRISB
P
VDD
I/O Pin
Weak
Pull-up
LCDEN and LMUX<1:0> 00
RBPU
D
Q
EN
LCDEN and LMUX<1:0> 00
RD PORTB
Q
D
EN
VDD
VSS
QD
CK
Q
RD IOC
WR IOC
Interrupt-on-
Change
Write ‘0’ to RBIF
Q
S
R
LMUX<1:0> 00
Q1
WPUB<5>