Datasheet

Table Of Contents
© 2007 Microchip Technology Inc. DS39605F-page 1
Low-Power Features:
Power Managed modes:
- 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
Timer1 Oscillator: 1.1 μA, 32 kHz, 2V
Watchdog Timer: 2.1 μA
Two-Speed Oscillator Start-up
Oscillators:
Four Crystal modes:
- LP, XT, HS: up to 25 MHz
- 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 to 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
- Allows for safe shutdown if peripheral clock stops
Peripheral Highlights:
High current sink/source 25 mA/25 mA
Three external interrupts
Enhanced Capture/Compare/PWM (ECCP) module:
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead time
- Auto-Shutdown and Auto-Restart
- Capture is 16-bit, max resolution 6.25 ns (T
CY/16)
- Compare is 16-bit, max resolution 100 ns (T
CY)
Compatible 10-bit, up to 13-channel Analog-to-
Digital Converter module (A/D) with programmable
acquisition time
Enhanced USART module:
- Supports RS-485, RS-232 and LIN 1.2
- Auto-Wake-up on Start bit
- Auto-Baud Detect
Special Microcontroller Features:
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 V
DD and Temperature
Single-supply 5V In-Circuit Serial Programming™
(ICSP™) via two pins
In-Circuit Debug (ICD) via two pins
Wide operating voltage range: 2.0V to 5.5V
Device
Program Memory Data Memory
I/O
10-bit
A/D (ch)
ECCP
(PWM)
EUSART
Timers
8/16-bit
Flash
(bytes)
# Single-Word
Instructions
SRAM
(bytes)
EEPROM
(bytes)
PIC18F1220 4K 2048 256 256 16 7 1 Y 1/3
PIC18F1320 8K 4096 256 256 16 7 1 Y 1/3
18/20/28-Pin High-Performance, Enhanced Flash MCUs
with 10-bit A/D and nanoWatt Technology
PIC18F1220/1320