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

PIC18F45K20

Status: In Production

Features:

  • Optional extended instruction set designed to optimize re-entrant code
  • Up to 1024 bytes Data EEPROM
  • Up to 64 Kbytes Linear program memory addressing
  • Up to 3936 bytes Linear data memory addressing
  • Up to 16 MIPS operation
  • 16-bit wide instructions, 8-bit wide data path
  • Priority levels for interrupts
  • 31-level, software accessible hardware stack
  • 8 x 8 single-cycle hardware multiplier
  • Factory calibrated to ± 1%
  • Software selectable frequencies range of 31 kHz to 16 MHz
  • 64 MHz performance available using PLL
  • no external components required
  • Four crystal modes up to 64 MHz
  • Two external clock modes up to 64 MHz
  • 4X Phase Lock Loop (PLL)
  • Secondary oscillator using Timer1 @ 32 kHz
  • Fail-Safe Clock Monitor:
  • Allows for safe shutdown if peripheral clock stops
  • Two-Speed Oscillator Start-up
  • Operating Voltage Range: 1.8V to 3.6V
  • Self-Programmable under Software Control
  • Interrupt on High/Low-Voltage Detection
  • With software enable option
  • Programmable period from 4 ms to 131s
  • Single-Supply 3V In-Circuit Serial Programming™ (ICSP™) via two pins
  • In-Circuit Debug (ICD) via Two Pins
  • Sleep mode: 100 nA
  • Watchdog Timer: 500 nA
  • Timer1 Oscillator: 500 nA @ 32 kHz
  • 10-bit resolution, 13 External Channels
  • Auto-acquisition capability
  • Conversion available during Sleep
  • 1.2V Fixed Voltage Reference (FVR) channel
  • Independent input multiplexing
  • Two rail-to-rail analog comparators
  • Independent input multiplexing
  • Programmable (% VDD), 16 steps
  • Two 16-level voltage ranges using VREF pins
  • High-Current Sink/Source 25 mA/25 mA
  • Three programmable external interrupts
  • Four programmable interrupt-on-change
  • Eight programmable weak pull-ups
  • Programmable slew rate
  • Capture/Compare/PWM (CCP) module
  • One, two or four PWM outputs
  • Selectable polarity
  • Programmable dead time
  • Auto-Shutdown and Auto-Restart
  • 3-wire SPI (supports all 4 modes)
  • I2C™ Master and Slave modes with address mask
  • Supports RS-485, RS-232 and LIN
  • RS-232 operation using internal oscillator
  • Auto-Wake-up on Break
  • Auto-Baud Detect
View More
Overview
Documents
Development Environment
Similar Devices
RoHS Information
Add To Cart

Device Overview

Additional Features

    High Performance RISC CPU:

    • C Compiler Optimized Architecture:
      • Optional extended instruction set designed to optimize re-entrant code
    • Up to 1024 bytes Data EEPROM
    • Up to 64 Kbytes Linear program memory addressing
    • Up to 3936 bytes Linear data memory addressing
    • Up to 16 MIPS operation
    • 16-bit wide instructions, 8-bit wide data path
    • Priority levels for interrupts
    • 31-level, software accessible hardware stack
    • 8 x 8 single-cycle hardware multiplier

    Flexible Oscillator Structure:

    • Precision 16 MHz internal oscillator block:
      • Factory calibrated to ± 1%
      • Software selectable frequencies range of 31 kHz to 16 MHz
      • 64 MHz performance available using PLL
      • no external components required
    • Four crystal modes up to 64 MHz
    • Two external clock modes up to 64 MHz
    • 4X Phase Lock Loop (PLL)
    • Secondary oscillator using Timer1 @ 32 kHz
    • Fail-Safe Clock Monitor:
    • Allows for safe shutdown if peripheral clock stops
    • Two-Speed Oscillator Start-up

Special Microcontroller Features:

  • Operating Voltage Range: 1.8V to 3.6V
  • Self-Programmable under Software Control
  • Programmable 16-Level High/Low-Voltage Detection (HLVD) module:
    • Interrupt on High/Low-Voltage Detection
  • Programmable Brown-out Reset (BOR):
    • With software enable option
  • Extended Watchdog Timer (WDT):
    • Programmable period from 4 ms to 131s
  • Single-Supply 3V In-Circuit Serial Programming™ (ICSP™) via two pins
  • In-Circuit Debug (ICD) via Two Pins

Extreme Low-Power Management with nanoWatt XLP™:

  • Sleep mode: 100 nA
  • Watchdog Timer: 500 nA
  • Timer1 Oscillator: 500 nA @ 32 kHz

Analog Features:

  • Analog-to-Digital Converter (ADC) module :
    • 10-bit resolution, 13 External Channels
    • Auto-acquisition capability
    • Conversion available during Sleep
    • 1.2V Fixed Voltage Reference (FVR) channel
    • Independent input multiplexing
  • Analog Comparator module:
    • Two rail-to-rail analog comparators
    • Independent input multiplexing
  • Voltage Reference (CVREF) module
    • Programmable (% VDD), 16 steps
    • Two 16-level voltage ranges using VREF pins

Peripheral Highlights:

  • Up to 35 I/O pins plus 1 input-only pin:
    • High-Current Sink/Source 25 mA/25 mA
    • Three programmable external interrupts
    • Four programmable interrupt-on-change
    • Eight programmable weak pull-ups
    • Programmable slew rate
  • Capture/Compare/PWM (CCP) module
  • Enhanced CCP (ECCP) module:
    • One, two or four PWM outputs
    • Selectable polarity
    • Programmable dead time
    • Auto-Shutdown and Auto-Restart
  • Master Synchronous Serial Port (MSSP) module
    • 3-wire SPI (supports all 4 modes)
    • I2C™ Master and Slave modes with address mask
  • Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) module:
    • Supports RS-485, RS-232 and LIN
    • RS-232 operation using internal oscillator
    • Auto-Wake-up on Break
    • Auto-Baud Detect
Parametrics
Name
Value
Program Memory Type
Flash
Program Memory Size (KB)
32
CPU Speed (MIPS/DMIPS)
16
SRAM (KB)
1,536
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 125
Operating Voltage Range (V)
1.8 to 3.6
Pin Count
40
Low Power
Yes

Documents

Jump to:

Development Environment

  • Emulators & Debuggers
  • Programmers
  • Demo & Evaluation Boards
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 and 32-bit PIC MCUs. The firmware update comes with MPLAB X IDE v5.25. More to come!


The MPLAB® PICkit™ 4 In-Circuit Debugger/Programmer allows fast and easy debugging and

...

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
PICkit 3 In-Circuit Debugger
PICkit 3 In-Circuit Debugger ( PG164130 )
(Not Recommended for new design)

The PICkit 3 is not recommended for new designs and no new device support will be added to it as of June 1, 2019. For new designs, please see the MPLAB PICKit 4.

Microchip’s PICkit™ 3 In-Circuit Debugger/Programmer uses in-circuit debugging logic incorporated into each chip with Flash memory to

...

Learn More
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 and no new device support will be added to it as of June 1, 2019. 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

...

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

 

Not recommended for new designs and no new device support will be added to it as of June 1, 2019. For new designs, please consider the MPLAB ICD 4 (DV164045).

MPLAB REAL ICE In-Circuit Emulator System is Microchip’s next generation high speed emulator for

...

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


Learn More
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 and 32-bit PIC MCUs. The firmware update comes with MPLAB X IDE v5.25. More to come!


The MPLAB® PICkit™ 4 In-Circuit Debugger/Programmer allows fast and easy debugging and

...

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
PICkit 3 In-Circuit Debugger
PICkit 3 In-Circuit Debugger ( PG164130 )
(Not Recommended for new design)

The PICkit 3 is not recommended for new designs and no new device support will be added to it as of June 1, 2019. For new designs, please see the MPLAB PICKit 4.

Microchip’s PICkit™ 3 In-Circuit Debugger/Programmer uses in-circuit debugging logic incorporated into each chip with Flash memory to

...

Learn More
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: PIC18F45K20 (44PT)
  • Socket: AC164301   PartNo: PIC18F45K20 (40P)
  • Socket: AC164301   PartNo: PIC18F45K20 (44P)
  • Socket: AC164322   PartNo: PIC18F45K20 (44ML)
  • Socket: AC164348   PartNo: PIC18F45K20 (40MV)
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 and no new device support will be added to it as of June 1, 2019. 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

...

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

 

Not recommended for new designs and no new device support will be added to it as of June 1, 2019. For new designs, please consider the MPLAB ICD 4 (DV164045).

MPLAB REAL ICE In-Circuit Emulator System is Microchip’s next generation high speed emulator for

...

Learn More
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)
RAM (B)
Price 5K
Notes
28
8
512
$1.23
 
28
16
768
$1.30
 
28
32
1,536
$1.37
 
28
64
3,936
$1.65
 
40
8
512
$1.46
 
40
16
768
$1.54
 
40
32
1,536
$1.60
 
40
64
3,936
$1.81
 

RoHS Information

Part Number
Device Weight (g)
Shipping Weight (grams)
Lead Count
Package Type
Package Width
Solder Composition
JEDEC Indicator
RoHS
China EFUP
PIC18F45K20-I/ML
0.188400
0.288889
44
QFN
8x8x0.9mm
Matte Tin
e3
PIC18F45K20T-I/ML
0.188400
0.437500
44
QFN
8x8x0.9mm
Matte Tin
e3
PIC18F45K20-E/PT
0.273300
1.187500
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F45K20-I/PT
0.273300
1.187500
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F45K20-I/PTVAO
0.273300
1.187500
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F45K20T-I/PT
0.273300
0.748333
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F45K20T-I/PTVAO
0.273300
0.748333
44
TQFP
10x10x1mm
Matte Tin
e3
PIC18F45K20-I/MV
0.042500
0.109589
40
UQFN
5x5x0.5mm
Matte Tin
e3
PIC18F45K20-E/P
6.500000
10.600000
40
PDIP
.600in
Matte Tin
e3
PIC18F45K20-I/P
6.500000
10.600000
40
PDIP
.600in
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 the Microchip Store

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