Datasheet
© 2008 Microchip Technology Inc. Preliminary DS41303D-page 1
PIC18F2XK20/4XK20
Power-Managed Modes:
• Run: CPU on, Peripherals on
• Idle: CPU off, Peripherals on
• Sleep: CPU off, Peripherals off
• Idle Mode Currents Down to 1.0 μA, typical
• Sleep Mode Current Down to 0.1 μA, typical
• Timer1 Oscillator: 1.0 μA, 32 kHz, 1.8V, typical
• Watchdog Timer: 2.0 μA, 1.8V, typical
• Two-Speed Oscillator Start-up
Peripheral Highlights:
• High-Current Sink/Source 25 mA/25 mA
• Three Programmable External Interrupts
• Four Independent Input-Change Interrupts
• 8 Independent Weak Pull-ups
• Programmable Slew Rate
• Capture/Compare/PWM (CCP) module
• Enhanced Capture/Compare/PWM (ECCP)
module:
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead time
- Auto-Shutdown and Auto-Restart
• Master Synchronous Serial Port (MSSP) module
supporting 3-wire SPI (all 4 modes) and I
2
C™
Master and Slave modes with address mask
• Enhanced Addressable USART module:
- Supports RS-485, RS-232 and LIN/J2602
- RS-232 operation using internal oscillator
block (no external crystal required)
- Auto-Wake-up on Break
- Auto-Baud Detect
• 10-bit, up to 14-Channel Analog-to-Digital
Converter module (ADC):
- Auto-acquisition capability
- Conversion available during Sleep
- Internal 1.2V Fixed Voltage Reference (FVR)
channel
- Independent input multiplexing
• Dual Analog Comparators:
- Rail-to-rail operation
- Independent input multiplexing
• Programmable On-Chip Voltage Reference
(CV
REF) module (% of VDD)
Flexible Oscillator Structure:
• Four Crystal modes, up to 64 MHz
• 4X Phase Lock Loop (available for crystal and
internal oscillators)
• Two External RC modes, up to 4 MHz
• Two External Clock modes, up to 64 MHz
• Internal Oscillator Block:
- 8 user selectable frequencies, from 31 kHz to
16 MHz
- Provides a complete range of clock speeds
from 31 kHz to 64 MHz when used with PLL
- User tunable to compensate for frequency drift
• Secondary Oscillator using Timer1 @ 32 kHz
• Fail-Safe Clock Monitor:
- Allows for safe shutdown if primary or secondary
oscillator stops
Special Microcontroller Features:
• C Compiler Optimized Architecture:
- Optional extended instruction set designed to
optimize re-entrant code
• Self-Programmable under Software Control
• Priority Levels for Interrupts
• 8 x 8 Single-Cycle Hardware Multiplier
• Extended Watchdog Timer (WDT):
- Programmable period from 4 ms to 131s
• Single-Supply 3V In-Circuit Serial
Programming™ (ICSP™) via two pins
• In-Circuit Debug (ICD) via Two Pins
• Operating Voltage Range: 1.8V to 3.6V
• Programmable 16-Level High/Low-Voltage
Detection (HLVD) module:
- Supports interrupt on High/Low-Voltage
Detection
• Programmable Brown-out Reset (BOR):
- With software enable option
28/40/44-Pin Flash Microcontrollers with
10-Bit A/D and nanoWatt Technology