Datasheet

2010-2015 Microchip Technology Inc. DS40001303H-page 1
PIC18F2XK20/4XK20
High-Performance RISC CPU
C Compiler Optimized Architecture:
- Optional extended instruction set designed to
optimize re-entrant code
Up to 1024 bytes Data EEPROM
Up to 64 Kbytes Linear Program Memory
Addressing
Up to 3936 bytes Linear Data Memory Addressing
Up to 16 MIPS Operation
16-bit Wide Instructions, 8-bit Wide Data Path
Priority Levels for Interrupts
31-Level, Software Accessible Hardware Stack
8 x 8 Single-Cycle Hardware Multiplier
Flexible Oscillator Structure
Precision 16 MHz Internal Oscillator Block:
- Factory calibrated to ± 1%
- Software selectable frequencies range of
31 kHz to 16 MHz
- 64 MHz performance available using PLL –
no external components required
Four Crystal Modes up to 64 MHz
Two External Clock Modes up to 64 MHz
4X Phase Lock Loop (PLL)
Secondary Oscillator using Timer1 @ 32 kHz
Fail-Safe Clock Monitor:
- Allows for safe shutdown, if peripheral clock
stops
- Two-Speed Oscillator Start-up
Special Microcontroller Features
Operating Voltage Range: 1.8V to 3.6V
Self-Programmable under Software Control
Programmable 16-Level High/Low-Voltage
Detection (HLVD) module:
- Interrupt on High/Low-Voltage Detection
Programmable Brown-out Reset (BOR):
- With software enable option
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
Extreme Low-Power Management
with XLP
Sleep Mode: < 100 nA @ 1.8V
Watchdog Timer: < 800 nA @ 1.8V
Timer1 Oscillator: < 800 nA @ 32 kHz and 1.8V
Analog Features
Analog-to-Digital Converter (ADC) Module:
- 10-bit resolution, 13 External Channels
- Auto-acquisition capability
- Conversion available during Sleep
- 1.2V Fixed Voltage Reference (FVR) channel
- Independent input multiplexing
Analog Comparator Module:
- Two rail-to-rail analog comparators
- Independent input multiplexing
Voltage Reference (CV
REF) Module
- Programmable (% VDD), 16 steps
- Two 16-level voltage ranges using V
REF pins
Peripheral Highlights
Up to 35 I/O Pins plus 1 Input-only Pin:
- High-Current Sink/Source 25 mA/25 mA
- Three programmable external interrupts
- Four programmable interrupt-on-change
- Eight programmable weak pull-ups
- Programmable slew rate
Capture/Compare/PWM (CCP) Module
Enhanced CCP (ECCP) module:
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead time
- Auto-shutdown and auto-restart
Master Synchronous Serial Port (MSSP) Module
- 3-wire SPI (supports all four modes)
-I
2
C™ Master and Slave modes with address
mask
Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART) Module:
- Supports RS-485, RS-232 and LIN
- RS-232 operation using internal oscillator
- Auto-Wake-up on Break
- Auto-Baud Detect
28/40/44-Pin Flash Microcontrollers
with XLP Technology

Summary of content (440 pages)