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