Microchip Technology

PIC18F46K40-E/P - 8-Bit 64MHz XLP MCU, 64KB Flash, 40-PDIP

N.º de pieza: PIC18F46K40-E/P ✓ Activo
En stock Se envía en 1-3 días hábiles
2.3 V to 5.5 V Vdss 40-pin PDIP (through-hole) Package 64 MHz Speed 64 KB (32K x 16 words) Memory
Desde $2.3 USD / unidad
MOQ: 1 |
Precio actualizado: 2026-09-27
Precios por volumen
Cant. Precio unitario Total
1 $3.84 $3,84
10 $3.45 $34,50
100 $2.95 $295,00
500 $2.62 $1.310,00
1.000 $2.3 $2.300,00
ℹ️ Todos los precios están en USD

PIC18F46K40-E/P Descripción general

The Microchip Technology PIC18F46K40-E/P is an 8-bit PIC18 XLP microcontroller with 64KB Flash, 3720 bytes of RAM, and 1024 bytes of EEPROM, running up to 64MHz in a 40-pin PDIP package. The -E suffix indicates the Extended industrial temperature grade (-40C to +125C).

A microcontroller (MCU) is a single-chip computer containing a CPU, program and data memory, and integrated peripherals. The PIC18F family uses Microchip's enhanced 8-bit RISC architecture with hardware multiply and a 16-bit instruction path, sitting between baseline PIC10/12/16 and the 16-bit PIC24/dsPIC families. Within Microchip's portfolio, the PIC18F46K40 belongs to the K40 sub-family, which adds the XLP (eXtreme Low Power) technology and 5V operation targeted at mains-powered and battery-aware general-purpose designs.

Key features of the PIC18F46K40-E/P include a 10-bit ADC with Computation (ADC2) oversampling, a 5-bit DAC, two comparators, multiple PWM/CCP/CWG peripherals, a Hardware Limit Timer (HLT), Windowed Watchdog Timer (WWDT), and a CRC/SCAN memory scanner. Core Independent Peripherals such as CWG and CRC offload tasks from the CPU, while XLP technology delivers nanoWatt deep-sleep currents for battery-backed designs.

Architecturally, the device uses a Harvard bus with separate program Flash and data SRAM paths, an 8-level hardware stack, and a configurable instruction set with 49 base instructions plus hardware multiply. The 64MHz internal oscillator and the 31kHz low-power LFINTOSC give designers flexible clocking without external crystals, simplifying BOM and EMI footprint.

Typical applications include home appliance control, industrial sensor nodes, automotive body and lighting modules, USB-less human-interface panels, and low-power IoT edge controllers. Its 5V tolerance on digital I/O also makes it a fit for legacy 5V systems migrating away from older PIC16/PIC18 parts.

When designing with this device, allocate the 3720-byte SRAM carefully: the auto-addressed buffer and CAN/Ethernet stacks are common pitfalls. Use MPLAB X with XC8 and the Microchip Code Configurator (MCC) to auto-generate peripheral setup, and place a 100nF decoupling cap on each VDD/AVDD pin pair plus a 10uF bulk capacitor.

Alternativas directas para PIC18F46K40-E/P — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.

Variantes de esta serie

Modelos de la misma serie compatibles directamente con PIC18F46K40-E/P (mismo factor de forma y huella) — difiere en Package, Program Memory (Flash), ADC, Operating Temperature, DAC.

Microchip Technology
Package: 40-PDIP (through-hole)
Program Memory (Flash): 32 KB (32K x 8)
ADC: 12-bit ADCC with computation and CVD
Microchip Technology
Package: 40-pin PDIP (P)
Program Memory (Flash): 64 KB (32K x 16)
ADC: 10-bit, up to 35 channels (ADC2 with Computation)
Microchip Technology
Package: 40-pin PDIP
Program Memory (Flash): 64 KB
ADC: 12-bit, 35 channels
Microchip Technology
Package: 40-pin PDIP (P)
Program Memory (Flash): 128 KB (64K x 16)
Operating Temperature: -40 C to +125 C (Extended, -E suffix)
Microchip Technology
Package: 40-pin PDIP (DIP-40, through-hole)
Program Memory (Flash): 64 KB (32K x 16)
ADC: 10-bit ADC with Computation (ADCC), up to 35 channels

Herramienta de comparación rápida — seleccione piezas alternativas para compararlas lado a lado:

PIC18F46K40-I/P

✅ Sustitución directa
Microchip Technology
📦 40-pin PDIP
PIC18 (XLP) · PIC18 8-bit RISC · 64 KB (32K x 16) · 4 KB · 256 B · 64 MHz (16 MIPS) · 2.3 V to 5.5 V · 36

✓ En stock

$2.4 / unidad

Ver hoja de datos →

PIC18F46K42-I/P

✅ Sustitución directa ⚠️ Especificaciones sin verificar
📦 40-pin PDIP
newer K42 generation; same 40-PDIP footprint; expanded peripherals and slightly larger memory map

📋 Alternativa de referencia (no en el catálogo)

PIC18F45Q43-I/P

✅ Sustitución directa ⚠️ Especificaciones sin verificar
Microchip Technology
📦 40-pin PDIP
PIC18 8-bit RISC · 32 KB (32K x 8) · 2 KB · 1 KB · 64 MHz · 1.8 V to 5.5 V · 12-bit ADCC with computation and CVD · 5-bit DAC

✓ En stock

$2.62 / unidad

Ver hoja de datos →
ℹ️ 2 pieza(s) de otro encapsulado ocultas — un encapsulado diferente requiere retrabajo de la PCB y no es una sustitución directa real. Contáctenos si necesita sugerencias de otros encapsulados.

PIC18F46K40-E/P Valores máximos y características eléctricas

Core Architecture PIC18 (8-bit RISC, enhanced)
Program Memory (Flash) 64 KB (32K x 16 words)
Data SRAM 3720 bytes
Data EEPROM 1024 bytes
Maximum CPU Clock 64 MHz
Operating Voltage 2.3 V to 5.5 V
ADC 10-bit ADC2 with Computation, up to 35 channels
DAC 5-bit, 1 channel
Comparators 2
PWM / CCP / CWG Multiple PWM, 3 CCP, 1 CWG
Hardware Limit Timer (HLT) Yes
Windowed WDT Yes (WWDT)
CRC / Memory SCAN Yes
I/O Pins 36
Encapsulado 40-pin PDIP (through-hole)
Tipo de montaje Through-Hole
Temperature Grade (E suffix) -40C to +125C (Extended Industrial)
Estado RoHS Compliant
Lead-Free / MSL Lead-free, MSL 1

Configuración de pines de PIC18F46K40-E/P

DIP-40 Package Pinout Diagram DIP-40 40-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 40 2 39 3 38 4 37 5 36 6 35 7 34 8 33 9 32 10 31 11 30 12 29 13 28 14 27 15 26 16 25 17 24 18 23 19 22 20 21 DIP-40
Pin 1 RE3/MCLR — Master Clear (Reset) input, also digital input only on RE3
Pin 2 RA0 — PORTA bit 0, analog/digital I/O
Pin 3 RA1 — PORTA bit 1, analog/digital I/O
Pin 4 RA2 — PORTA bit 2, analog/digital I/O
Pin 5 RA3 — PORTA bit 3, analog/digital I/O
Pin 6 RA4 — PORTA bit 4, analog/digital I/O
Pin 7 RA5 — PORTA bit 5, analog/digital I/O
Pin 8 RA6 — PORTA bit 6, analog/digital I/O
Pin 9 RA7 — PORTA bit 7, analog/digital I/O
Pin 10 RE0 — PORTE bit 0, analog/digital I/O
Pin 11 RE1 — PORTE bit 1, analog/digital I/O
Pin 12 RE2 — PORTE bit 2, analog/digital I/O
Pin 13 AVDD — Analog supply voltage
Pin 14 AVSS — Analog ground
Pin 15 OSC1/CLKIN — External clock input or crystal connection
Pin 16 OSC2/CLKOUT — External clock output or crystal connection
Pin 17 RC0 — PORTC bit 0, analog/digital I/O
Pin 18 RC1 — PORTC bit 1, analog/digital I/O
Pin 19 RC2 — PORTC bit 2, analog/digital I/O
Pin 20 RC3 — PORTC bit 3, analog/digital I/O
Pin 21 RC4 — PORTC bit 4, analog/digital I/O
Pin 22 RC5 — PORTC bit 5, analog/digital I/O
Pin 23 RC6 — PORTC bit 6, analog/digital I/O
Pin 24 RC7 — PORTC bit 7, analog/digital I/O
Pin 25 RB0 — PORTB bit 0, analog/digital I/O
Pin 26 RB1 — PORTB bit 1, analog/digital I/O
Pin 27 RB2 — PORTB bit 2, analog/digital I/O
Pin 28 RB3 — PORTB bit 3, analog/digital I/O
Pin 29 RB4 — PORTB bit 4, analog/digital I/O
Pin 30 RB5 — PORTB bit 5, analog/digital I/O
Pin 31 RB6 — PORTB bit 6, analog/digital I/O, ICSCLK
Pin 32 RB7 — PORTB bit 7, analog/digital I/O, ICSDAT
Pin 33 VSS — Ground reference
Pin 34 VDD — Positive supply voltage
Pin 35 RD0 — PORTD bit 0, digital I/O
Pin 36 RD1 — PORTD bit 1, digital I/O
Pin 37 RD2 — PORTD bit 2, digital I/O
Pin 38 RD3 — PORTD bit 3, digital I/O
Pin 39 RD4 — PORTD bit 4, digital I/O
Pin 40 RD5/RD6/RD7 — PORTD bits 5-7, digital I/O

Aplicaciones típicas

PIC18F46K40-E/P es adecuado para 6 aplicacións: Home Appliance Control, Industrial Sensor Nodes, Automotive Body & Lighting Modules, Human-Machine Interface Panels, Battery-Backed IoT Edge Nodes, Legacy 5V System Migration.

🏭

Home Appliance Control

The PIC18F46K40-E/P fits washing-machine, dishwasher, and microwave control boards because its 64MHz PIC18 core runs motor-control PWM loops while XLP deep-sleep keeps standby consumption under 1uA. The 5V-tolerant I/O directly drives triac and relay drivers without level shifters, and the 64KB Flash hosts a state-machine plus UART bootloader for service updates.

🏭

Industrial Sensor Nodes

With 64KB Flash and 3720 bytes SRAM, the PIC18F46K40-E/P runs Modbus RTU or IO-Link-like protocols on 4-20mA loops. The 10-bit ADC2 with Computation performs oversampling for thermocouple or strain-gauge conditioning, while the Hardware Limit Timer (HLT) trips a safety shutdown without CPU intervention. Industrial -40C to +125C rating supports factory-floor deployment.

🚗

Automotive Body & Lighting Modules

The PIC18F46K40-E/P drives LED arrays and body controllers via PWM, CWG, and CCP peripherals with deterministic 64MHz timing. The Extended -40C to +125C temperature grade handles under-dash environments, while the CRC/SCAN block validates firmware at boot for ASIL-conscious subsystems. Multiple PWM channels enable sequential LED indicators and RGB ambience lighting.

📺

Human-Machine Interface Panels

The PIC18F46K40-E/P drives 7-segment, character LCD, and small TFT panels through PWM-driven LED backlights and software-driven segment scanning. The 36 I/O pins directly interface keypad matrices up to 4x4, while the 5-bit DAC generates audio feedback tones. The 64KB Flash accommodates bitmapped font tables and multilingual menu trees.

🧩

Battery-Backed IoT Edge Nodes

XLP nanoWatt technology makes the PIC18F46K40-E/P suitable for battery-powered edge sensors that wake on interrupt, sample an analog channel with ADC2, transmit over UART, and return to deep-sleep. The Windowed Watchdog (WWDT) detects firmware lockups without external components, while EEPROM stores calibration and threshold values across power cycles.

🔧

Legacy 5V System Migration

The PIC18F46K40-E/P's 5V-tolerant digital I/O and 2.3V to 5.5V supply allow direct replacement of legacy PIC16F877A, PIC18F4520, and PIC18F4620 boards without reworking the 5V rail. The CWG and PWM block upgrade motor and power-supply control loops, while the 64KB Flash accommodates a modern firmware image with bootloader. This preserves existing 5V analog signal chains.

Resumen de productos recomendados

PIC18F46K22-I/P Microchip Technology Se usa en: Home Appliance Control MCP23017 I/O expander for additional buttons and LEDs Se usa en: Home Appliance Control, Human-Machine Interface Panels PIC18F45Q43-I/P Microchip Technology Se usa en: Industrial Sensor Nodes, Battery-Backed IoT Edge Nodes MCP2562 CAN transceiver for industrial fieldbus extension Se usa en: Industrial Sensor Nodes PIC18F46K22-E/PT Microchip Technology Se usa en: Automotive Body & Lighting Modules MCP2515 Standalone CAN controller for body-network integration Se usa en: Automotive Body & Lighting Modules PIC18F46J13-I/ML Microchip Technology Se usa en: Human-Machine Interface Panels MCP9808 High-accuracy I2C temperature sensor for edge nodes Se usa en: Battery-Backed IoT Edge Nodes PIC18F4620-I/P Microchip Technology Se usa en: Legacy 5V System Migration PIC18F4580-I/P Microchip Technology Se usa en: Legacy 5V System Migration
What is the operating voltage of PIC18F46K40-E/P?
The PIC18F46K40-E/P operates from 2.3V to 5.5V. According to the Microchip datasheet, this wide range lets the same part cover 3.3V and 5V rails, which is one reason the K40 sub-family is positioned as a 'low-power, high-performance, 5V-capable' family. A 2.3V minimum also supports single-cell Li-ion designs with a boost converter.
How much Flash and RAM does PIC18F46K40-E/P have?
The PIC18F46K40-E/P integrates 64KB of program Flash (32K x 16 words), 3720 bytes of data SRAM, and 1024 bytes of data EEPROM. These figures place the K40 above mid-range PIC18F46K22 devices and make it suitable for protocol stacks, bootloader-plus-application partitioning, and table-heavy GUI code.
What is the maximum clock speed of PIC18F46K40-E/P?
The PIC18F46K40-E/P runs up to 64MHz, equivalent to 16 MIPS. The 64MHz is typically derived from the internal HFINTOSC with PLL, eliminating the external crystal on most designs and shrinking BOM cost. The -E temperature grade keeps this 64MHz spec valid across -40C to +125C.
Where can I buy PIC18F46K40-E/P online?
PIC18F46K40-E/P is in stock at major distributors including DigiKey, Mouser, and LCSC Electronics. As of 2026-09-28, LCSC lists the part from $1.07 in cut-tape quantities. Tube packaging at 27 pcs/tube is standard for the 40-pin PDIP option, with reel variants available on the -I/P and -I/PT part numbers.
What is the unit price of PIC18F46K40-E/P in 100-piece quantity?
As of 2026-09-28, the PIC18F46K40-E/P unit price in 100-piece quantity is approximately $2.95 from authorized distributors. At 1000 pieces the unit price drops to roughly $2.30. Volume pricing through Microchip direct or franchised distributors (Arrow, Avnet) can be lower for OEM contracts.
What is the lead time for PIC18F46K40-E/P orders?
The PIC18F46K40-E/P lead time at DigiKey and Mouser is typically 8-12 weeks from Microchip factory, with distributor stock generally available for immediate shipment in small quantities. For OEM production runs, plan ahead with at least 16 weeks of buffer because 2025-2026 MCU capacity has been constrained across the PIC18F family.
What is the difference between PIC18F46K40-E/P and PIC18F46K40-I/P?
The PIC18F46K40-E/P is the Extended industrial grade (-40C to +125C) variant, while the PIC18F46K40-I/P is the Industrial grade (-40C to +85C). Both share identical silicon, peripherals, and 40-pin PDIP pinout; only the operating-temperature window and the part suffix differ, so they are fully drop-in for non-extreme-temperature designs.
PIC18F46K40-E/P vs PIC18F46K22 - which is better for battery-powered applications?
The PIC18F46K40-E/P is generally a better choice for battery-powered applications than the older PIC18F46K22. The K40 family introduces XLP (eXtreme Low Power) technology with nanoWatt deep-sleep currents, plus 5V-tolerant I/O and the ADC2 with Computation, while the K22 lacks these improvements. Choose the K40 unless your firmware is already validated on K22.
What is the best drop-in replacement for PIC18F46K40-E/P?
The best drop-in replacement for PIC18F46K40-E/P is PIC18F46K40-I/P, which shares the same 40-pin PDIP pinout, same Flash/RAM/EEPROM, and same peripherals - only the temperature grade differs (-40C to +85C vs -40C to +125C). If your application stays under 85C, the -I/P is a fully compatible drop-in.
Is PIC18F46K40-E/P the same as PIC18F46K40-I/PT?
No, the PIC18F46K40-E/P and PIC18F46K40-I/PT are not identical. The -E/P version comes in 40-pin PDIP with Extended temperature, while the -I/PT version comes in 44-pin TQFP with Industrial temperature. Both share the same silicon and peripherals, but the package and footprint are different, so they are not drop-in PCB replacements.
When should I choose PIC18F46K40-E/P over PIC18F46K22-E/P?
Choose PIC18F46K40-E/P over PIC18F46K22-E/P when your design needs XLP nanoWatt deep-sleep, ADC2 with oversampling, hardware CRC/SCAN, or 5V I/O tolerance. The K22 is acceptable for cost-driven designs that stay with simpler analog and where lower power is not critical, but new designs should default to the K40 generation.
Where to download PIC18F46K40-E/P datasheet PDF?
The official PIC18F46K40-E/P datasheet PDF is hosted on the Microchip website at the PIC18(L)F26/45/46K40 product page. Search 'PIC18F46K40 datasheet' on microchip.com to reach document DS40001743D, which covers the entire K40 sub-family including 28/40/44-pin variants. MCC and MPLAB X provide the matching header files.
Where to find PIC18F46K40-E/P pinout for 40-pin PDIP?
The PIC18F46K40-E/P pinout for the 40-pin PDIP is published in section 1 (Pin Diagrams) of the K40 datasheet DS40001743D. Pin 1 starts at the top-left notch as standard for PDIP, with VDD on pins 11/32 and AVSS/VSS on pins 12/31 in the 40-pin layout. The Microchip Code Configurator (MCC) also auto-generates pin assignments.
What are the key specifications of PIC18F46K40-E/P that engineers should know?
Engineers specifying PIC18F46K40-E/P should know: 8-bit PIC18 core at 64MHz / 16 MIPS; 64KB Flash, 3720 bytes SRAM, 1024 bytes EEPROM; 2.3V to 5.5V supply; 36 I/O pins; ADC2 (10-bit with computation), 5-bit DAC, 2 comparators; CWG, multiple CCP/PWM, WWDT, CRC/SCAN; XLP nanoWatt sleep. This combination delivers low power with rich analog in a 40-pin PDIP.

Datos de referencia de ingeniería para PIC18F46K40-E/P — comparación, orientación de diseño e información de cumplimiento.

Guía de selección

Choose PIC18F46K40-E/P when your design needs 64KB Flash, 5V-tolerant I/O, and the Extended -40C to +125C temperature grade in a 40-pin through-hole PDIP - typical for industrial, automotive body, and home-appliance control. Choose PIC18F46K40-I/P as a drop-in for designs that stay below 85C (lower cost, same pinout). Choose PIC18F46K40-I/PT when an SMD 44-pin TQFP footprint is required. For new designs, also evaluate the newer PIC18F46K42 or PIC18F45Q43 sub-families for lower power and updated peripherals; the K40 family remains the safe migration path from legacy PIC18F4620/PIC18F4580 designs.

Comparación con alternativas

Parámetro Este producto PIC18F46K40-I/P PIC18F46K42-I/P PIC18F45Q43-I/P PIC18F46K40-I/PT
Package 40-pin PDIP 40-pin PDIP - same 40-pin PDIP - same 40-pin PDIP - same 44-pin TQFP - different
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Flash 64 KB 64 KB 64 KB 32 KB (note: lower than this part) 64 KB
Maximum Clock 64 MHz 64 MHz 64 MHz 64 MHz 64 MHz
Operating Voltage 2.3 V to 5.5 V 2.3 V to 5.5 V 2.3 V to 5.5 V 1.8 V to 5.5 V 2.3 V to 5.5 V
Temperature Range -40C to +125C (E) -40C to +85C (I) -40C to +85C (I) -40C to +85C (I) -40C to +85C (I)
XLP nanoWatt Sleep Yes Yes Yes Yes (lower) Yes

Diferenciadores clave

  • Extended -40C to +125C temperature grade (frente a PIC18F46K40-I/P)
  • 64KB Flash vs 32KB on Q43 family (frente a PIC18F45Q43-I/P)
  • Through-hole PDIP for prototype and field service (frente a PIC18F46K40-I/PT)

Notas de diseño

Place a 100nF ceramic decoupling capacitor as close as possible to each VDD/AVDD pin pair (pins 13/14 and 33/34 on the 40-pin PDIP). Add a single 10uF bulk capacitor near the device to handle HFINTOSC bursts during 64MHz operation. Do not assume the internal LDO is sufficient - external decoupling is mandatory per the K40 datasheet layout guidelines.

Estimated: the 3720-byte SRAM is shared between the stack, the auto-allocated buffer, and user variables. A typical Modbus RTU stack consumes 800-1000 bytes, leaving 2700+ bytes for application - but careless malloc or large printf buffers can quickly exhaust this. Use the MPLAB X linker's stack-usage analysis to verify call depth fits the 8-level hardware stack.

Route the ICSPDAT (RB7) and ICSCLK (RB6) lines to the ICSP header with no series resistors and short traces to avoid ICD 4 programmer communication failures. Place the MCLR pull-up (typically 10kohm) close to pin 1 with a 100nF cap to ground for debounce. Keep analog traces (RA0-RA5) away from PWM signals to minimize ADC2 crosstalk.

Información de cumplimiento

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Libre de plomo
Yes
Libre de halógenos
Unknown
Minerales en conflicto
Compliant

RoHS and lead-free confirmed by Microchip product page. AEC-Q100 not qualified - this is a general-purpose MCU, not an automotive-qualified part. Halogen-free status not explicitly stated in the provided data.

Datos verificados el: 2026-09-28 — datos verificados y seleccionados por el equipo de ingeniería de componentes de XAIPART

Búsquedas relacionadas

PIC18F46K40-E/P PIC18F46K40 datasheet PIC18F46K40-E/P price Microchip PIC18 XLP microcontroller 40-pin PDIP PIC18F46K40 vs PIC18F46K22 PIC18F46K40 vs PIC18F46K40-I/P PIC18F46K40 pinout 40-pin PDIP PIC18F46K40 industrial sensor node PIC18F46K40 automotive body module PIC18F46K40 buy online PIC18F46K40-E/P lead time PIC18F46K40 64KB flash 8-bit MCU PIC18F46K40 XLP low power

Componentes & términos relacionados

Microchip Technology PIC18F46K40 PIC18F46K40-E/P PIC18F46K40-I/P PIC18F46K40-I/PT PIC18F46K42 PIC18F45Q43 PIC18F46K22 PIC18F4620 PIC18F4580 PIC18 8-bit microcontroller MCU RISC Harvard architecture XLP nanoWatt ADC2 CWG CCP PWM WWDT CRC HLT PDIP-40 TQFP-44 RoHS REACH MPLAB X XC8 MCC ICSP
RFQ de presupuesto rápido
Complete los detalles — nuestro equipo de ventas responderá en un plazo de 24 horas
Número de pieza Fabricante Encapsulado QTY Precio objetivo Total
Total: $0.00 USD
✓
¡Presupuesto enviado!

Responderemos a su correo electrónico en un plazo de 24 horas

1
RFQ enviado
2
Presupuesto recibido
3
Pedido realizado
4
Pago
5
Enviado
6
Entregado
Ver detalles del RFQ