Datasheet
PIC16F913/914/916/917/946
DS41250F-page 50 © 2007 Microchip Technology Inc.
3.2.1.6 RA5/AN4/C2OUT/SS/SEG5
Figure 3-6 shows the diagram for this pin. The RA5 pin
is configurable to function as one of the following:
• a general purpose I/O
• a digital output from Comparator C2
• a slave select input
• an analog output for the LCD
• an analog input for the ADC
FIGURE 3-6: BLOCK DIAGRAM OF RA5
To A/D Converter
RD TRISA
RD PORTA
TTL
Input Buffer
SEG5
SE5 and LCDEN
Data Bus
WR PORTA
WR TRISA
To S S Input
Analog Input or
SE5 and LCDEN
C2OUT
CM<2:0> = 110 or 101
0
1
QD
Q
CK
Data Latch
QD
Q
CK
I/O Pin
TRIS Latch
SE5 and LCDEN
VDD
VSS