PIC18F2220/2320/4220/4320
28/40/44-Pin High-Performance, Enhanced Flash MCUs
with 10-bit A/D and nanoWatt Technology
Low-Power Features:
Peripheral Highlights:
• Power Managed modes:
• High current sink/source 25 mA/25 mA
• Three external interrupts
- Run: CPU on, peripherals on
- Idle: CPU off, peripherals on
- Sleep: CPU off, peripherals off
• Power Consumption modes:
- PRI_RUN: 150 µA, 1 MHz, 2V
- PRI_IDLE: 37 µA, 1 MHz, 2V
- SEC_RUN: 14 µA, 32 kHz, 2V
- SEC_IDLE: 5.8 µA, 32 kHz, 2V
- RC_RUN: 110 µA, 1 MHz, 2V
- RC_IDLE: 52 µA, 1 MHz, 2V
- Sleep: 0.1 µA, 1 MHz, 2V
• Up to 2 Capture/Compare/PWM (CCP) modules:
- Capture is 16-bit, max. resolution is 6.25 ns (TCY/16)
- Compare is 16-bit, max. resolution is 100 ns (TCY)
- PWM output: PWM resolution is 1 to 10-bit
• Enhanced Capture/Compare/PWM (ECCP) module:
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead-time
- Auto-Shutdown and Auto-Restart
• Compatible 10-bit, up to 13-channel
Analog-to-Digital Converter module (A/D) with
programmable acquisition time
• Timer1 Oscillator: 1.1 µA, 32 kHz, 2V
• Watchdog Timer: 2.1 µA
• Two-Speed Oscillator Start-up
• Dual analog comparators
• Addressable USART module:
- RS-232 operation using internal oscillator
block (no external crystal required)
Oscillators:
• Four Crystal modes:
- LP, XT, HS: up to 25 MHz
Special Microcontroller Features:
- HSPLL: 4-10 MHz (16-40 MHz internal)
• Two External RC modes, up to 4 MHz
• Two External Clock modes, up to 40 MHz
• Internal oscillator block:
- 8 user selectable frequencies: 31 kHz, 125 kHz,
250 kHz, 500 kHz, 1 MHz, 2 MHz, 4 MHz, 8 MHz
- 125 kHz-8 MHz calibrated to 1%
- Two modes select one or two I/O pins
- OSCTUNE – Allows user to shift frequency
• Secondary oscillator using Timer1 @ 32 kHz
• Fail-Safe Clock Monitor
• 100,000 erase/write cycle Enhanced Flash program
memory typical
• 1,000,000 erase/write cycle Data EEPROM memory
typical
• Flash/Data EEPROM Retention: > 40 years
• Self-programmable under software control
• Priority levels for interrupts
• 8 x 8 Single-Cycle Hardware Multiplier
• Extended Watchdog Timer (WDT):
- Programmable period from 41 ms to 131s
- 2% stability over VDD and Temperature
• Single-supply 5V In-Circuit Serial Programming™
(ICSP™) via two pins
- Allows for safe shutdown if peripheral clock stops
• In-Circuit Debug (ICD) via two pins
• Wide operating voltage range: 2.0V to 5.5V
Program Memory
Data Memory
MSSP
CCP/
10-bit
A/D (ch)
Timers
8/16-bit
Device
I/O
ECCP
USART
Flash # Single Word SRAM EEPROM
(bytes) Instructions (bytes) (bytes)
Master
SPI™
2
(PWM)
I C™
PIC18F2220
PIC18F2320
PIC18F4220
PIC18F4320
4096
8192
4096
8192
2048
4096
2048
4096
512
512
512
512
256
256
256
256
25
25
36
36
10
10
13
13
2/0
2/0
1/1
1/1
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
2
2
2
2
2/3
2/3
2/3
2/3
2003 Microchip Technology Inc.
DS39599C-page 1