
2008 Microchip Technology Inc.
DS39631E-page 9
PIC18F2420/2520/4420/4520
TABLE 1-1:
DEVICE FEATURES
Features
PIC18F2420
PIC18F2520
PIC18F4420
PIC18F4520
Operating Frequency
DC – 40 MHz
Program Memory (Bytes)
16384
32768
16384
32768
Program Memory
(Instructions)
8192
16384
8192
16384
Data Memory (Bytes)
768
1536
768
1536
Data EEPROM Memory (Bytes)
256
Interrupt Sources
19
20
I/O Ports
Ports A, B, C, (E)
Ports A, B, C, D, E
Timers
4
Capture/Compare/PWM Modules
2
1
Enhanced
Capture/Compare/PWM Modules
00
11
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
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
High/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 QFN
28-Pin SPDIP
28-Pin SOIC
28-Pin QFN
40-Pin PDIP
44-Pin QFN
44-Pin TQFP
40-Pin PDIP
44-Pin QFN
44-Pin TQFP