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

PIC18F4221

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, 13 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
Buy Now

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 a 44-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 PIC18F4221 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, 13 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 Bytes
512
Data EEPROM/HEF (bytes)
256
Digital Communication Peripherals
1-UART, 1-SPI, 1-I2C1-MSSP(SPI/I2C)
Capture/Compare/PWM Peripherals
1 CCP, 1 ECCP,
Timers
1 x 8-bit, 3 x 16-bit
ADC Input
13 ch, 10-bit
Number of Comparators
2
Temperature Range (C)
-40 to 85
Operating Voltage Range (V)
2 to 5.5
Pin Count
40

Documents

Jump to:

Data Sheet

Programming Specification

Brochures

Product Line Card

Brochures

Tips and Tricks

Development Environment

  • Demo & Evaluation Boards
  • Emulators & Debuggers
  • Programmers
  • Application Examples
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
Emulators & Debuggers
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® 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 faster

...

Learn More
Add To Cart
PICkit 3 In-Circuit Debugger
PICkit 3 In-Circuit Debugger ( PG164130 )
(Not Recommended for new design)

Microchip’s PICkit™ 3 In-Circuit Debugger/Programmer uses in-circuit debugging logic incorporated into each chip with Flash memory to provide a low-cost hardware debugger and programmer. In-circuit debugging offers these benefits:

  • Low cost
  • Minimum of additional hardware needed for debug
  • Expensive sockets or adapters are not required
...

Learn More
Add To Cart
MPLAB ICD 3 In-Circuit Debugger
MPLAB ICD 3 In-Circuit Debugger ( DV164035 )
(Not Recommended for new design)

 The MPLAB ICD 3 is a mature product. For new designs, consider using the MPLAB ICD 4 (DV164045)

MPLAB® ICD 3 In-Circuit Debugger System is Microchip's most cost effective high-speed hardware debugger/programmer for Microchip Flash Digital Signal Controller (DSC) and microcontroller

...

Learn More
Add To Cart
MPLAB REAL ICE PROBE KIT
MPLAB REAL ICE PROBE KIT ( DV244005 )
(Not Recommended for new design)

MPLAB REAL ICE In-Circuit Emulator System is Microchip’s next generation high speed emulator for Microchip Flash DSC® and MCU devices. It debugs and programs PIC® and dsPIC® Flash microcontrollers with the easy-to-use but powerful graphical user interface of the MPLAB Integrated Development Environment (IDE), included with each kit.
The MPLAB REAL ICE probe is

...

Debug Features:
I/O Port Trace:True (Requires Compiler Support)
SPI Trace:True (Requires Compiler Support)


Learn More
Add To Cart
Programmers
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® 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 faster

...

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: AC164305   PartNo: PIC18F4221 (44PT)
  • Socket: AC164301   PartNo: PIC18F4221 (40P)
  • Socket: AC164301   PartNo: PIC18F4221 (44P)
  • Socket: AC164322   PartNo: PIC18F4221 (44ML)
Learn More
Add To Cart
PICkit 3 In-Circuit Debugger
PICkit 3 In-Circuit Debugger ( PG164130 )
(Not Recommended for new design)

Microchip’s PICkit™ 3 In-Circuit Debugger/Programmer uses in-circuit debugging logic incorporated into each chip with Flash memory to provide a low-cost hardware debugger and programmer. In-circuit debugging offers these benefits:

  • Low cost
  • Minimum of additional hardware needed for debug
  • Expensive sockets or adapters are not required
...

Learn More
Add To Cart
MPLAB ICD 3 In-Circuit Debugger
MPLAB ICD 3 In-Circuit Debugger ( DV164035 )
(Not Recommended for new design)

 The MPLAB ICD 3 is a mature product. For new designs, consider using the MPLAB ICD 4 (DV164045)

MPLAB® ICD 3 In-Circuit Debugger System is Microchip's most cost effective high-speed hardware debugger/programmer for Microchip Flash Digital Signal Controller (DSC) and microcontroller

...

Learn More
Add To Cart
MPLAB REAL ICE PROBE KIT
MPLAB REAL ICE PROBE KIT ( DV244005 )
(Not Recommended for new design)

MPLAB REAL ICE In-Circuit Emulator System is Microchip’s next generation high speed emulator for Microchip Flash DSC® and MCU devices. It debugs and programs PIC® and dsPIC® Flash microcontrollers with the easy-to-use but powerful graphical user interface of the MPLAB Integrated Development Environment (IDE), included with each kit.
The MPLAB REAL ICE probe is

...

Learn More
Add To Cart

Similar Devices

Product
Pins
Flash (KB)
RAM (B)
Price 5K
Notes
28
4
512
$1.93
 
28
8
512
$2.06
 
40
4
512
$2.17
 
40
8
512
$2.30
 

RoHS Information

Part Number
Device Weight (g)
Shipping Weight (Kg)
Lead Count
Package Type
Package Width
Solder Composition
JEDEC Indicator
RoHS
China EFUP
PIC18F4221-E/P
6.500000
10.600000
40
PDIP
.600in
Matte Tin
e3
PIC18F4221-I/P
6.500000
10.600000
40
PDIP
.600in
Matte Tin
e3
PIC18F4221-I/PREL
6.500000
10.600000
40
PDIP
.600in
Matte Tin
e3
PIC18F4221T-E/PT
0.273300
0.748333
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F4221T-I/PT
0.273300
0.748333
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F4221-I/PT
0.273300
1.187500
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F4221-E/PT
0.273300
1.187500
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F4221-E/ML
0.188400
0.288889
44
QFN
8x8x0.9mm
Matte Tin
e3
PIC18F4221-I/ML
0.188400
0.288889
44
QFN
8x8x0.9mm
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

Grid
View
Table
View
Filter:
Apply
Clear
Product
Leads
Package Type
Temp Range
Packing Media
5K Pricing
Buy