English
Language : 

PIC18LF4520-IPT Datasheet, PDF (3/412 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2420/2520/4420/4520
28/40/44-Pin Enhanced Flash Microcontrollers with
10-Bit A/D and nanoWatt Technology
Power Management Features:
Peripheral Highlights (Continued):
• Run: CPU on, Peripherals on
• Idle: CPU off, Peripherals on
• Sleep: CPU off, Peripherals off
• Master Synchronous Serial Port (MSSP) module
Supporting 3-Wire SPI (all 4 modes) and I2C™
Master and Slave modes
• Ultra Low 50nA Input Leakage
• Enhanced Addressable USART module:
• Run mode Currents Down to 11 μA Typical
- Supports RS-485, RS-232 and LIN/J2602
• Idle mode Currents Down to 2.5 μA Typical
- RS-232 operation using internal oscillator
• Sleep mode Current Down to 100 nA Typical
block (no external crystal required)
• Timer1 Oscillator: 900 nA, 32 kHz, 2V
- Auto-wake-up on Start bit
• Watchdog Timer: 1.4 μA, 2V Typical
- Auto-Baud Detect
• Two-Speed Oscillator Start-up
• 10-Bit, up to 13-Channel Analog-to-Digital (A/D)
Flexible Oscillator Structure:
• Four Crystal modes, up to 40 MHz
• 4x Phase Lock Loop (PLL) – Available for Crystal
and Internal Oscillators
• Two External RC modes, up to 4 MHz
• Two External Clock modes, up to 40 MHz
• Internal Oscillator Block:
Converter module:
- Auto-acquisition capability
- Conversion available during Sleep
• Dual Analog Comparators with Input Multiplexing
• Programmable 16-Level High/Low-Voltage
Detection (HLVD) module:
- Supports interrupt on High/Low-Voltage Detection
- Fast wake from Sleep and Idle, 1 μs typical
- 8 use-selectable frequencies, from 31 kHz to
8 MHz
- Provides a complete range of clock speeds
from 31 kHz to 32 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 peripheral clock stops
Peripheral Highlights:
Special Microcontroller Features:
• C Compiler Optimized Architecture:
- Optional extended instruction set designed to
optimize re-entrant code
• 100,000 Erase/Write Cycle Enhanced Flash
Program Memory Typical
• 1,000,000 Erase/Write Cycle Data EEPROM
Memory Typical
• Flash/Data EEPROM Retention: 100 Years Typical
• Self-Programmable under Software Control
• High-Current Sink/Source 25 mA/25 mA
• Priority Levels for Interrupts
• Three Programmable External Interrupts
• 8 x 8 Single-Cycle Hardware Multiplier
• Four Input Change Interrupts
• Extended Watchdog Timer (WDT):
• Up to 2 Capture/Compare/PWM (CCP) modules,
one with Auto-Shutdown (28-pin devices)
• Enhanced Capture/Compare/PWM (ECCP)
module (40/44-pin devices only):
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead time
- Auto-shutdown and auto-restart
- Programmable period from 4 ms to 131s
• 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
• Programmable Brown-out Reset (BOR) with
Software Enable Option
-
Device
Program Memory
Data Memory
Flash # Single-Word SRAM EEPROM
(bytes) Instructions (bytes) (bytes)
I/O
10-Bit
A/D (ch)
CCP/
ECCP
(PWM)
MSSP
SPI
Master
I2C™
Comp.
Timers
8/16-Bit
PIC18F2420 16K
PIC18F2520 32K
PIC18F4420 16K
PIC18F4520 32K
8192
768
256 25
10
2/0
Y
Y
1
16384
1536
256
25
10
2/0
Y
Y
1
8192
768
256 36
13
1/1
Y
Y
1
16384
1536
256
36
13
1/1
Y
Y
1
2
1/3
2
1/3
2
1/3
2
1/3
© 2008 Microchip Technology Inc.
DS39631E-page 1