PIC18 Microcontroller Family
The PIC18 microcontroller family provides PICmicro®
devices in 18- to 80-pin packages, that are both socket
and software upwardly compatible to the PIC16 family. The
PIC18 family includes all the popular peripherals, such as
MSSP, ESCI, CCP, flexible 8- and 16-bit timers, PSP, 10-bit
ADC, WDT, POR and CAN 2.0B Active for the maximum
flexible solution. Most PIC18 devices will provide FLASH
program memory in sizes from 8 to 128 Kbytes and data
RAM from 256 to 4 Kbytes; operating from 2.0 to 5.5 volts,
at speeds from DC to 40 MHz. Optimized for high-level
languages like ANSI C, the PIC18 family offers a highly
flexible solution for complex embedded applications.
High Performance RISC CPU:
• 77 instructions
• C-Language friendly architecture
• PIC16 source code compatible
• Linear program memory addressing to 2 Mbyte
Analog Features (Continued):
• Linear data memory addressing up to 4 Kbytes
• Up to 10 MIPs operation:
• Programmable Low Voltage Detection (LVD) module
– Supports interrupt-on-low voltage detection
• Programmable Brown-out Reset (BOR)
• Comparators
– DC - 40 MHz osc/clock input
– 4 MHz - 10 MHz clock with PLL active
• 16-bit wide instructions, 8-bit wide data path
• Priority levels for interrupts
• 8 x 8 Single Cycle Hardware Multiplier
Special Microcontroller Features:
• Power-on Reset (POR), Power-up Timer (PWRT) and
Oscillator Start-up Timer (OST)
Peripheral Features:
• High current sink/source 25 mA/25 mA
• Up to four external interrupt pins
• Up to three 16-bit timer/counters
• Up to two 8-bit timer/counters with 8-bit period
register (time-base for PWM)
• Watchdog Timer (WDT) with its own on-chip RC oscillator
for reliable operation
• Programmable code protection
TM
TM
• In-Circuit Serial Programming (ICSP ) via two pins
• Secondary LP oscillator clock option - Timer1
• Up to five Capture/Compare/PWM (CCP) modules
CCP pins can be configured as:
CMOS Technology:
• Fully static design
– Capture input: 16-bit, resolution 6.25 ns (TCY/16)
– Compare: 16-bit, max. resolution 100 ns (TCY)
– PWM output: PWM resolution is 1- to 10-bit
Max. PWM frequency @: 8-bit resolution = 156 kHz
10-bit resolution = 39 kHz
• Wide operating voltage range (2.0V to 5.5V)
• Industrial and Extended temperature ranges
Power Managed Features:
• Dynamically switch to secondary LP oscillator
• Internal RC oscillator for ADC operation during SLEEP
• SLEEP mode (IPD < 1 µA typ.)
• Master Synchronous Serial Port (MSSP) module
Two modes of operation:
TM
– 3-wire SPI (supports all 4 SPI modes)
– up to 23 individually selectable wake-up events
– 3 edge selectable wake-up inputs
– 4 state change wake-up inputs
2
TM
– I C Master and Slave mode
• Up to 2 Addressable USART modules (ESCI)
– Supports interrupt on Address bit
• Parallel Slave Port (PSP) module
• Internal RC oscillator for WDT (period wake-up)
• RAM retention mode (VDD as low as 1.5V)
• Up to 6 more Power Managed modes available on
selected models (PIC18F1320/2320/4320 and
PIC18F1220/2220/4220)
Analog Features:
• 10-bit Analog-to-Digital Converter module (A/D) with:
– Fast sampling rate
– Up to 16 channels input multiplexor
– Conversion available during SLEEP
– DNL = ±1 LSb, INL = ±1 LSb
�
M i c r o c h i p T e c h n o l o g y I n c . • T h e E m b e d d e d C o n t r o l S o l u t i o n s C o m p a n y ®