PIC16F913/914/916/917/946
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
CM<2:0> = 110or 101
C2OUT
1
0
Data Bus
D
Q
Q
VDD
VSS
WR PORTA
CK
Data Latch
I/O Pin
D
Q
WR TRISA
CK
Q
TRIS Latch
RD TRISA
Analog Input or
SE5 and LCDEN
TTL
Input Buffer
SE5 and LCDEN
RD PORTA
To SS Input
SEG5
SE5 and LCDEN
To A/D Converter
DS41250F-page 50
© 2007 Microchip Technology Inc.