PIC16F913/914/916/917/946
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
LCDEN and LMUX<1:0> ≠ 00
VDD
WPUB<5>
VDD
VSS
Weak
RBPU
P
Pull-up
Data Bus
D
Q
I/O Pin
WR PORTB
WR TRISB
CK
Data Latch
D
Q
CK
TRIS Latch
LCDEN and LMUX<1:0> ≠ 00
TTL
RD TRISB
Input Buffer
RD PORTB
D
Q
Q
WR IOC
RD IOC
CK
Q
D
LCDEN and
LMUX<1:0> ≠ 00
Q1
EN
Set RBIF
Interrupt-on-
Change
Q
S
D
Q
From other
RB<7:4> pins
R
EN
RD PORTB
Write ‘0’ to RBIF
LCDEN and LMUX<1:0> ≠ 00
COM1
DS41250F-page 58
© 2007 Microchip Technology Inc.