Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes
product primary image

PIC18F2221

Status: In Production

Features:

  • Up to 10 MIPS performance
  • C compiler optimized RISC architecture
  • 8 x 8 Single Cycle Hardware Multiply
  • Internal oscillator support - 31 kHz to 8 MHz, up to 32 MHz with 4X PLL
  • Fail-Safe Clock Monitor – allows safe shutdown if clock fails
  • Watchdog Timer with separate RC oscillator
  • Wide operating Voltage range; 2.0V to 5.5V
  • Run, Idle and Sleep modes
  • Idle mode currents down to 5.8uA typical
  • Sleep mode currents down to 0.1uA typical
  • 10-bit ADC, 10 channels, 100K samples per second
  • Programmable Low Voltage Detection Module
  • Programmable Brown-out Reset module
  • Two Analog comparators with input multiplexing
  • Master Synchronous Serial Port supports SPI ™ and I2C™ Master and Slave Mode
  • EUSART module including LIN bus support
  • Four Timer Modules
  • Up to 5 PWM outputs
  • Up to 2 Capture / Compare
View More
Overview
Documents
Development Environment
Similar Devices
RoHS Information
Add To Cart

Device Overview

Summary

This powerful 10 MIPS (100 nanosecond instruction execution), yet easy-to-program (only 77 single word instructions) CMOS Flash-based 8-bit microcontroller packs Microchip's powerful PIC® architecture into an 28-pin package and is upwards compatible with the PIC16C5X, PIC12CXXX, PIC16CXX and PIC17CXX devices and provides a seamless migration path of software code to higher levels of hardware integration.

The PIC18F2221 features a C compiler-friendly development environment, 256 bytes of EEPROM, self-programming, an ICD, 2 capture/compare/PWM functions, 13 channels of 10-bit Analog-to-Digital (A/D) converter, 2 comparators, 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 Enhanced Universal Asynchronous Receiver Transmitter (EUSART), 8 MHz internal RC oscillator and advanced low power oscillator controls.

All of these features make it ideal for battery powered and power consumption critical applications including instrumentation and monitoring, data acquisition, power conditioning, environmental monitoring, telecom and consumer audio/video applications.

Additional Features

    CPU

    • Up to 10 MIPS performance
    • C compiler optimized RISC architecture
    • 8 x 8 Single Cycle Hardware Multiply

    System

    • Internal oscillator support - 31 kHz to 8 MHz, up to 32 MHz with 4X PLL
    • Fail-Safe Clock Monitor – allows safe shutdown if clock fails
    • Watchdog Timer with separate RC oscillator
    • Wide operating Voltage range; 2.0V to 5.5V

    nanoWatt Power Managed Modes

    • Run, Idle and Sleep modes
    • Idle mode currents down to 5.8uA typical
    • Sleep mode currents down to 0.1uA typical

    Analog Features

    • 10-bit ADC, 10 channels, 100K samples per second
    • Programmable Low Voltage Detection Module
    • Programmable Brown-out Reset module
    • Two Analog comparators with input multiplexing

    Peripherals

    • Master Synchronous Serial Port supports SPI ™ and I2C™ Master and Slave Mode
    • EUSART module including LIN bus support
    • Four Timer Modules
    • Up to 5 PWM outputs
    • Up to 2 Capture / Compare
Parametrics
Name
Value
Program Memory Type
Flash
Program Memory Size (KB)
4
CPU Speed (MIPS/DMIPS)
10
SRAM (B)
512
Data EEPROM/HEF (bytes)
256
Digital Communication Peripherals
1-UART, 1-SPI, 1-I2C1-MSSP(SPI/I2C)
Capture/Compare/PWM Peripherals
2 Input Capture, 2 CCP,
Timers
1 x 8-bit, 3 x 16-bit
ADC Input
10 ch, 10-bit
Number of Comparators
2
Temperature Range (°C)
-40 to 125
Operating Voltage Range (V)
2 to 5.5
Pin Count
28

Documents

Jump to:

Programming Specifications

White Papers

Development Environment

  • Integrated Development Environments
  • Compilers
  • Emulators & Debuggers
  • Programmers
  • Demo & Evaluation Boards
Integrated Development Environments
MPLAB-X-IDE
MPLAB X Integrated Development Environment (IDE) ( MPLAB-X-IDE )

MPLAB® X Integrated Development Environment (IDE) is an expandable, highly configurable software program that incorporates powerful tools to help you discover, configure, develop, debug and qualify embedded designs for most of Microchip’s microcontrollers, microprocessors and digital signal controllers.
MPLAB X IDE works seamlessly with the MPLAB development ecosystem of

...

Learn More
Compilers
MPLAB-XC8
MPLAB XC8 Compiler ( MPLAB-XC8 )

Available as free, unrestricted-use downloads, our award-winning MPLAB® XC C Compilers are comprehensive solutions for your project’s software development. Finding the right compiler to support your device is simple:

  • MPLAB XC8 supports all 8-bit PIC® and AVR® microcontrollers (MCUs)
  • MPLAB XC16 supports all 16-bit PIC MCUs and dsPIC® Digital
...

Learn More
Emulators & Debuggers
MPLAB PICkit 4 In-Circuit Debugger
MPLAB PICkit 4 In-Circuit Debugger ( PG164140 )

Fast programming, increased functionality, at the same price as its predecessor, the PICkit™ 3.

The MPLAB PICkit 4 now has Programmer-to-Go functionality for 8-bit, 16-bit and 32-bit PIC MCUs and dsPICs and also SAM MCU devices . The firmware update comes with MPLAB X IDE v5.30. AVR is expected soon!


The MPLAB® PICkit™ 4 In-Circuit

...

Learn More
Add To Cart
MPLAB ICD 4 In-Circuit Debugger
MPLAB ICD 4 In-Circuit Debugger ( DV164045 )

The MPLAB® ICD 4 In-Circuit Debugger/Programmer is Microchip’s fastest, cost-effective debugging and programming tool for PIC® and SAM Microcontrollers (MCUs), dsPIC® Digital Signal Controllers (DSCs), and CEC flash microcontrollers. This speed is provided by a SAME70 MCU with 300 MHz, 32-bit MCU with 2MB of RAM and a high-speed FPGA to yield

...

Learn More
Add To Cart
Programmers
MPLAB PICkit 4 In-Circuit Debugger
MPLAB PICkit 4 In-Circuit Debugger ( PG164140 )

Fast programming, increased functionality, at the same price as its predecessor, the PICkit™ 3.

The MPLAB PICkit 4 now has Programmer-to-Go functionality for 8-bit, 16-bit and 32-bit PIC MCUs and dsPICs and also SAM MCU devices . The firmware update comes with MPLAB X IDE v5.30. AVR is expected soon!


The MPLAB® PICkit™ 4 In-Circuit

...

Learn More
Add To Cart
MPLAB ICD 4 In-Circuit Debugger
MPLAB ICD 4 In-Circuit Debugger ( DV164045 )

The MPLAB® ICD 4 In-Circuit Debugger/Programmer is Microchip’s fastest, cost-effective debugging and programming tool for PIC® and SAM Microcontrollers (MCUs), dsPIC® Digital Signal Controllers (DSCs), and CEC flash microcontrollers. This speed is provided by a SAME70 MCU with 300 MHz, 32-bit MCU with 2MB of RAM and a high-speed FPGA to yield

...

Learn More
Add To Cart
MPLAB PM3 Universal Device Programmer
MPLAB PM3 Universal Device Programmer ( DV007004 )

The MPLAB® PM3 Universal Device Programmer is easy to use and operates with a PC or as a stand-alone unit, and programs Microchip's entire line of PIC® devices as well as the latest dsPIC® DSC devices. When used standalone, data can be loaded and saved with the SD/MMC card (not included).

  • Socket: AC164302   PartNo: PIC18F2221 (28SO)
  • Socket: AC164301   PartNo: PIC18F2221 (28SP)
  • Socket: AC164322   PartNo: PIC18F2221 (28ML)
  • Socket: AC164307   PartNo: PIC18F2221 (28SS)
Learn More
Add To Cart
Demo & Evaluation Boards
Explorer 8 Development Kit
Explorer 8 Development Kit ( DM160228 )

Summary
The Explorer 8 Development Kit is a full-featured development board and platform for 8-bit PIC® microcontrollers. This kit is a versatile development solution, featuring several options for external sensors, off-board communication and human interface. Additionally, it offers ample room for expansion, making it an excellent solution for developers and engineers looking for a...

Learn More
Add To Cart

Similar Devices

Product
Pins
Flash (KB)
SRAM (B)
Price 5K
Notes
28
4
512
$2.06
 
28
8
512
$2.19
 
40
4
512
$2.28
 
40
8
512
$2.45
 

RoHS Information

Part Number
Device Weight (g)
Shipping Weight (grams)
Lead Count
Package Type
Package Width
Solder Composition
JEDEC Indicator
RoHS
China EFUP
PIC18F2221-E/ML
0.101600
0.163934
28
QFN
6x6x0.9mm
Matte Tin
e3
PIC18F2221-I/ML
0.101600
0.163934
28
QFN
6x6x0.9mm
Matte Tin
e3
PIC18F2221-E/SS
0.229200
0.489362
28
SSOP
.209in
Matte Tin
e3
PIC18F2221-I/SS
0.229200
0.489362
28
SSOP
.209in
Matte Tin
e3
PIC18F2221T-I/SS
0.229200
0.333333
28
SSOP
.209in
Matte Tin
e3
PIC18F2221-E/SO
0.770400
1.370370
28
SOIC
.300in
Matte Tin
e3
PIC18F2221-I/SO
0.770400
1.370370
28
SOIC
.300in
Matte Tin
e3
PIC18F2221T-E/SO
0.770400
1.152500
28
SOIC
.300in
Matte Tin
e3
PIC18F2221-E/SP
2.087500
3.733333
28
SPDIP
.300in
Matte Tin
e3
PIC18F2221-I/SP
2.087500
3.733333
28
SPDIP
.300in
Matte Tin
e3
PIC18F2221-I/SPREL
2.087500
3.733333
28
SPDIP
.300in
Matte Tin
e3
To see a complete listing of RoHS data for this device, please Click here
Shipping Weight = Device Weight + Packing Material weight. Please contact sales office if device weight is not available.

Buy from Microchip

Grid
View
Table
View
Filter:
Apply
Clear
Only show products with samples
Product
Leads
Package Type
Temp Range
Packing Media
5K Pricing
Buy