English
Language : 

PIC18F1220_07 Datasheet, PDF (10/308 Pages) Microchip Technology – 18/20/28-Pin High-Performance, Enhanced Flash Microcontrollers with 10-bit A/D and nanoWatt Technology
PIC18F1220/1320
TABLE 1-2: PIC18F1220/1320 PINOUT I/O DESCRIPTIONS
Pin Name
Pin Number
PDIP/
SOIC
SSOP
QFN
Pin
Type
Buffer
Type
Description
MCLR/VPP/RA5
MCLR
VPP
RA5
OSC1/CLKI/RA7
OSC1
CLKI
RA7
OSC2/CLKO/RA6
OSC2
CLKO
RA6
RA0/AN0
RA0
AN0
RA1/AN1/LVDIN
RA1
AN1
LVDIN
RA2/AN2/VREF-
RA2
AN2
VREF-
RA3/AN3/VREF+
RA3
AN3
VREF+
RA4/T0CKI
RA4
T0CKI
4
4
1
Master Clear (input) or programming voltage (input).
I
ST
Master Clear (Reset) input. This pin is an active-low
Reset to the device.
P
—
Programming voltage input.
I
ST
Digital input.
16 18 21
Oscillator crystal or external clock input.
I
ST
Oscillator crystal input or external clock source
input. ST buffer when configured in RC mode,
CMOS otherwise.
I CMOS
External clock source input. Always associated with
pin function OSC1. (See related OSC1/CLKI,
OSC2/CLKO pins.)
I/O ST
General purpose I/O pin.
15 17 20
Oscillator crystal or clock output.
O
—
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
O
—
In RC, EC and INTRC modes, OSC2 pin outputs
CLKO, which has 1/4 the frequency of OSC1 and
denotes instruction cycle rate.
I/O ST
General purpose I/O pin.
PORTA is a bidirectional I/O port.
1
1
26
I/O ST
Digital I/O.
I Analog
Analog input 0.
2
2
27
I/O ST
Digital I/O.
I Analog Analog input 1.
I Analog Low-Voltage Detect input.
6
7
7
I/O ST
Digital I/O.
I Analog Analog input 2.
I Analog A/D reference voltage (low) input.
7
8
8
I/O ST
Digital I/O.
I Analog Analog input 3.
I Analog A/D reference voltage (high) input.
3
3
28
I/O ST/OD
Digital I/O. Open-drain when configured as output.
I
ST
Timer0 external clock input.
RA5
See the MCLR/VPP/RA5 pin.
RA6
See the OSC2/CLKO/RA6 pin.
RA7
Legend:
TTL =
ST =
O=
OD =
TTL compatible input
Schmitt Trigger input with CMOS levels
Output
Open-drain (no P diode to VDD)
See the OSC1/CLKI/RA7 pin.
CMOS = CMOS compatible input or output
I
= Input
P
= Power
DS39605F-page 8
© 2007 Microchip Technology Inc.