
2009 Microchip Technology Inc.
DS39689F-page 11
PIC18F2221/2321/4221/4321 FAMILY
TABLE 1-1:
DEVICE FEATURES
Features
PIC18F2221
PIC18F2321
PIC18F4221
PIC18F4321
Operating Frequency
DC – 40 MHz
Program Memory (Bytes)
4096
8192
4096
8192
Program Memory (Instructions)
2048
4096
2048
4096
Data Memory (Bytes)
512
Data EEPROM Memory (Bytes)
256
Interrupt Sources
19
20
I/O Ports
Ports A, B, C, (E)
Ports A, B, C, D, E Ports A, B, C, D, E
Timers
4
Capture/Compare/PWM Modules
2
1
Enhanced Capture/Compare/
PWM Modules
00
1
Serial Communications
MSSP,
Enhanced USART
MSSP,
Enhanced USART
MSSP,
Enhanced USART
MSSP,
Enhanced USART
Parallel Communications (PSP)
No
Yes
10-bit Analog-to-Digital Module
10 Input Channels 10 Input Channels 13 Input Channels 13 Input Channels
Resets (and Delays)
POR, BOR,
RESET Instruction,
Stack Full,
Stack Underflow
(PWRT, OST),
MCLR (optional),
WDT
POR, BOR,
RESET Instruction,
Stack Full,
Stack Underflow
(PWRT, OST),
MCLR (optional),
WDT
POR, BOR,
RESET Instruction,
Stack Full,
Stack Underflow
(PWRT, OST),
MCLR (optional),
WDT
POR, BOR,
RESET Instruction,
Stack Full,
Stack Underflow
(PWRT, OST),
MCLR (optional),
WDT
Programmable Low-Voltage
Detect
Yes
Programmable Brown-out Reset
Yes
Instruction Set
75 Instructions;
83 with Extended
Instruction Set
enabled
75 Instructions;
83 with Extended
Instruction Set
enabled
75 Instructions;
83 with Extended
Instruction Set
enabled
75 Instructions;
83 with Extended
Instruction Set
enabled
Packages
28-pin SPDIP
28-pin SOIC
28-pin SSOP
28-pin QFN
28-pin SPDIP
28-pin SOIC
28-pin SSOP
28-pin QFN
40-pin PDIP
44-pin QFN
44-pin TQFP
40-pin PDIP
44-pin QFN
44-pin TQFP