Microchip Technology MA160014 Data Sheet

Page of 560
 2010-2012 Microchip Technology Inc.
DS41412F-page 17
PIC18(L)F2X/4XK22
 
TABLE 1-2:
PIC18(L)F2XK22 PINOUT I/O DESCRIPTIONS
Pin Number
Pin Name
Pin 
Type
Buffer 
Type
Description
PDIP, 
SOIC
QFN,
UQFN
2
27
RA0/C12IN0-/AN0
RA0
I/O
TTL
Digital I/O.
C12IN0-
I
Analog
Comparators C1 and C2 inverting input.
AN0
I
Analog
Analog input 0.
3
28
RA1/C12IN1-/AN1
RA1
I/O
TTL
Digital I/O.
C12IN1-
I
Analog
Comparators C1 and C2 inverting input.
AN1
I
Analog
Analog input 1.
4
1
RA2/C2IN+/AN2/DACOUT/V
REF
-
RA2
I/O
TTL
Digital I/O.
C2IN+
I
Analog
Comparator C2 non-inverting input.
AN2
I
Analog
Analog input 2.
DACOUT
O
Analog
DAC Reference output.
V
REF
-
I
Analog
A/D reference voltage (low) input.
5
2
RA3/C1IN+/AN3/V
REF
+
RA3
I/O
TTL
Digital I/O.
C1IN+
I
Analog
Comparator C1 non-inverting input.
AN3
I
Analog
Analog input 3.
V
REF
+
I
Analog
A/D reference voltage (high) input.
6
3
RA4/CCP5/C1OUT/SRQ/T0CKI
RA4
I/O
ST
Digital I/O.
CCP5
I/O
ST
Capture 5 input/Compare 5 output/PWM 5 output.
C1OUT
O
CMOS
Comparator C1 output.
SRQ
O
TTL
SR latch Q output.
T0CKI
I
ST
Timer0 external clock input.
7
4
RA5/C2OUT/SRNQ/SS1/HLVDIN/AN4
RA5
I/O
TTL
Digital I/O.
C2OUT
O
CMOS
Comparator C2 output.
SRNQ
O
TTL
SR latch Q output.
SS1
I
TTL
SPI slave select input (MSSP).
HLVDIN
I
Analog
High/Low-Voltage Detect input.
AN4
I
Analog
Analog input 4.
10
7
RA6/CLKO/OSC2
RA6
I/O
TTL
Digital I/O.
CLKO
O
In RC mode, OSC2 pin outputs CLKOUT which has 
1/4 the frequency of OSC1 and denotes the instruction 
cycle rate.
OSC2
O
Oscillator crystal output. Connects to crystal or resonator 
in Crystal Oscillator mode.
Legend:
TTL = TTL compatible input CMOS = CMOS compatible input or output; ST = Schmitt Trigger input with CMOS levels; 
I = Input; O = Output; P = Power.
Note
1:
Default pin assignment for P2B, T3CKI, CCP3 and CCP2 when Configuration bits PB2MX, T3CMX, CCP3MX and 
CCP2MX are set.
2:
Alternate pin assignment for P2B, T3CKI, CCP3 and CCP2 when Configuration bits PB2MX, T3CMX, CCP3MX and 
CCP2MX are clear.