The peripheral-rich 8-bit PIC microcontrollers offer the best price/performance ratio in the industry, with Flash, one-time-programmable and ROM program memory options. Based on a powerful RISC core, these families feature a common architecture for easy migration from 6 to 100 pins with little or no code change required. Microchip’s High Performance Architecture encompasses the PIC18 family of devices. These microcontrollers utilize a 16-bit program word architecture with 18- to 80-pin package options. The PIC18 devices are high performance microcontrollers with integrated A/D converters. All PIC18 microcontrollers incorporate an advanced RISC architecture that supports Flash and OTP devices. The PIC18 has enhanced core features, 32 level-deep stack and multiple internal and external interrupts. The separate instruction and data buses of the Harvard architecture allow a 16-bit instruction word with separate 8-bit data. The two-stage instruction pipeline enables all instructions to execute in a single cycle, except for program branches, which require two cycles. A total of 79 instructions (reduced instruction set) are available. The PIC18 family has special features to reduce external components, thus minimizing cost, enhancing system reliability and reducing power consumption. The PIC18 family builds on the foundation established by the other 8-bit PIC microcontrollers and provides engineers with a smooth, easy migration to these higher levels of performance and feature sets.
The PIC18F452-I/L is a high-performance Enhanced Flash Microcontroller with 8 channels of 10-bit Analogue-to-digital (A/D) converter. The PIC18F452 features a C compiler friendly development environment, 256 bytes of EEPROM, self-programming, an ICD, 2 capture/compare/PWM functions, the synchronous serial port can be configured as either 3-wire Serial Peripheral Interface (SPI™) or the 2-wire Inter-Integrated Circuit (I²C™) bus and Addressable Universal Asynchronous Receiver Transmitter (AUSART). All of these features make it ideal for manufacturing equipment, data acquisition, power conditioning and environmental monitoring.
DEVICE OVERVIEW This document contains device specific information for the following devices: • PIC18F2420 • PIC18LF2420 • PIC18F2520 • PIC18LF2520 • PIC18F4420 • PIC18LF4420 • PIC18F4520 • PIC18LF4520 This family offers the advantages of all PIC18 micro controllers – namely, high computational performance at an economical price – with the addition of high endurance, Enhanced Flash program memory. On top of these features, the PIC18F2420/2520/4420/4520 family introduces design enhancements that make these microcontrollers a logical choice for many high performance, power sensitive applications. Power Managed Modes: • Run: CPU on, peripherals on • Idle: CPU off, peripherals on • Sleep: CPU off, peripherals off • Idle mode currents down to 5.8 µA typical • Sleep mode current down to 0.1 µA typical • Timer1 Oscillator: 1.8 µA, 32 kHz, 2V • Watchdog Timer: 2.1 µA • Two-Speed Oscillator Start-up Peripheral Highlights: • High-current sink/source 25 mA/25 mA • Three programmable external interrupts • Four input change interrupts • 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 • Master Synchronous Serial Port (MSSP) module supporting 3-wire SPI™ (all 4 modes) and I2C™ Master and Slave Modes • Enhanced Addressable USART module: - Supports RS-485, RS-232 and LIN 1.2 - RS-232 operation using internal oscillator block (no external crystal required) - Auto-Wake-up on Start bit - Auto-Baud Detect • 10-bit, up to 13-channel Analog-to-Digital Converter module (A/D): - Auto-acquisition capability - Conversion available during Sleep • Dual analog comparators with input multiplexing) Flexible Oscillator Structure: • Four Crystal modes, up to 40 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 40 MHz • Internal oscillator block: - 8 user 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 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 • Priority levels for interrupts • 8 x 8 Single-Cycle Hardware Multiplier • Extended Watchdog Timer (WDT): \- 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 16-level High/Low-Voltage Detection (HLVD) module: - Supports interrupt on High/Low-Voltage Detection • Programmable Brown-out Reset (BOR - With software enable option