Microchip Technology

PIC18F05Q40-I/SL - 32KB Flash 8-bit MCU, 64MHz, 14-SOIC | Microchip

MPN: PIC18F05Q40-I/SL ✓ Active
In Stock Ships in 1-3 business days
1.8 V to 5.5 V Vdss 14-SOIC (SL) 150-mil Package 64 MHz (16 MIPS) Speed 32 KB Memory
From $0.78 USD / Unit
MOQ: 1 |
Price updated: 2026-09-26
Volume Pricing
Qty Unit Price Extended
1 $1.4 $1.40
10 $1.26 $12.60
100 $1.1 $110.00
500 $0.95 $475.00
1,000 $0.85 $850.00
3,000 $0.78 $2,340.00
ℹ️ All prices are in USD

PIC18F05Q40-I/SL Overview

The Microchip Technology PIC18F05Q40-I/SL is a compact, high-performance 8-bit PIC microcontroller from the PIC18-Q40 family, delivered in a 14-pin SOIC (SL) package. It integrates 32 KB of Flash program memory, 2 KB of SRAM, and 512 bytes of EEPROM, with a 64 MHz CPU speed delivering up to 16 MIPS of instruction throughput. The device targets real-time control and sensor applications with built-in 12-bit ADC2 (with Computation), 8-bit DAC modules, 16-bit PWMs, Direct Memory Access (DMA), and Configurable Logic Cells (CLC).

A microcontroller (MCU) is a single-chip computer that integrates a CPU, memory, and programmable peripherals onto one IC. The PIC18 family uses a modified Harvard 8-bit RISC architecture with an instruction set optimized for C-compiled code (XC8). PIC MCUs sit in the broader hierarchy of embedded controllers, alongside 16-bit PIC24, 32-bit PIC32, and competitor families such as STM32 (Cortex-M) and AVR (megaAVR/XMEGA). Within Microchip, Q40-series parts are the dedicated ADC-and-PWM-rich "real-time control" sub-family, designed to replace external op-amps, analog comparators, and discrete timers with on-chip intelligent peripherals.

Key features include a 12-bit differential ADC with Computation engine for automated oversampling and filtering, 10-bit slope compensation, two 8-bit DACs, four 16-bit PWMs with complementary outputs and dead-band control, CLC for combinational/sequential logic without external glue, and built-in DMA that lets peripherals move data without CPU intervention. The device also includes an 8x8 hardware multiplier and a 32 MHz internal oscillator, reducing external component count in cost-sensitive designs.

Architecture-wise the PIC18-Q40 uses a 16-bit-wide instruction word with 8-bit data path, 31-level hardware stack, and a unified interrupt controller. The 12-bit ADC with Computation (ADC2) reduces software overhead by performing averaging, threshold detection, and burst averaging in hardware, enabling deterministic motor-control loops. Internal voltage reference and zero-cross detect accelerate closed-loop appliance and lighting designs.

Typical applications include BLDC and brushed DC motor control, LED lighting drivers, sensor hubs with DMA-driven acquisition, capacitive-touch user interfaces using the on-chip CLC and ADC2, home appliances, and IoT edge nodes. Designers typically place the MCU between the power-stage MOSFETs / LED strings and the host MCU to handle the deterministic timing-critical control loop locally.

When designing with this part, ensure the 14-SOIC exposed pad is soldered to a sufficient copper pour for thermal relief; power budget on FOSC=64 MHz at 3.3 V is roughly 12 mA active. Use MPLAB X IDE with the XC8 compiler and MPLAB Code Configurator (MCC) to graphically wire CLC and PWM peripherals - the MCC plugin generates the peripheral setup code and saves weeks of register-level firmware bring-up.

This page consolidates distributor pricing, drop-in alternatives from Microchip's Q40 family, and practical design notes that go beyond the manufacturer datasheet - giving procurement and firmware teams a single reference for the PIC18F05Q40-I/SL.

Drop-in alternatives for PIC18F05Q40-I/SL — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Variants in this series

Same-series models that are drop-in compatible with PIC18F05Q40-I/SL (same form factor and footprint) — differing in Package, ADC, PWM, Core Architecture, Operating Temperature.

Microchip Technology
Package: 14-SOIC
ADC: 12-bit ADC with Computation (ADCC)
PWM: 16-bit PWM with complementary outputs
Microchip Technology
Package: 14-SOIC (SL) 3.90 mm
ADC: 12-bit with Computation (ADCC)
PWM: 16-bit, multiple channels
Microchip Technology
Package: 14-TSSOP
ADC: 12-bit ADC2 with Computation
PWM: 16-bit PWM
Microchip Technology
Package: 14-SOIC (3.9 mm body width)
ADC: 12-bit with Computation (ADC2)
PWM: 16-bit with complementary outputs
Microchip Technology
Package: 14-pin TSSOP (ST) 4.4 mm
ADC: 12-bit ADC2 (with Computation)
PWM: 16-bit PWM
Microchip Technology
Package: 14-SOIC (SL), 3.90 mm body width
ADC: 12-bit ADC2 with computation
PWM: 16-bit PWM
Microchip Technology
Package: 14-TSSOP (ST)
ADC: 12-bit ADC2 (with Computation)
PWM: 16-bit PWM
Microchip Technology
ADC: 12-bit ADC2 with Computation, up to 140 ksps
PWM: 16-bit PWM with multiple output modes
Core Architecture: PIC18 (8-bit RISC)
Microchip Technology
Package: 14-pin SOIC (SL)
ADC: 12-bit ADC with Computation (ADC2)
PWM: 16-bit PWM (multiple outputs)
Microchip Technology
Package: 20-pin VQFN (3x3 mm)
ADC: 12-bit with Computation (ADCC), 17 channels
PWM: 16-bit PWM modules
Microchip Technology
Package: 20-pin PDIP
ADC: 12-bit ADC with Computation (ADCC)
PWM: 16-bit PWM

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC18F05Q40-E/SL

✅ Drop-In
Microchip Technology
📦 14-SOIC (SL)
PIC18-Q40 · PIC18 8-bit RISC · PIC18 (Harvard) · 64 MHz · 16 MIPS · 32 KB (32K x 8) · 2 KB · 512 bytes

✓ In Stock

$0.74 / Unit

View Datasheet →

PIC18F05Q40-I/ST

✅ Drop-In
📦 14-SOIC (SL)
same die and 14-SOIC (SL) footprint; -I industrial temperature grade, functionally same as the target

📋 Reference alternative (not in catalog)

PIC18F05Q40-E/ST

✅ Drop-In ⚠️ Specs Unverified
Microchip Technology
📦 14-SOIC (ST)
PIC18 (8-bit) · 32 KB (32K x 8) · 2 KB · 512 bytes · 64 MHz · 1.8 V to 5.5 V · 12-bit ADC2 with Computation · 2 x 8-bit DAC

✓ In Stock

$0.98 / Unit

View Datasheet →

PIC18F04Q40-I/SL

✅ Drop-In
Microchip Technology
📦 14-SOIC (SL)
PIC18 8-bit RISC Harvard · PIC® 18F (PIC18-Q40 sub-family) · 64 MHz · 16 KB (16K x 8) · 1 KB · 512 bytes · 12-bit ADC with Computation (ADCC) · 2 x 8-bit DAC

✓ In Stock

$0.74 / Unit

View Datasheet →

PIC18F04Q41-I/SL

✅ Drop-In
Microchip Technology
📦 14-SOIC (SL)
8-bit PIC18 enhanced mid-range · 16 KB (16K x 8) · 1 KB · 512 bytes · 64 MHz · 1.8 V to 5.5 V · 12-bit ADC2 with Computation (ADCC) · 8-bit DAC (dual)

✓ In Stock

$0.85 / Unit

View Datasheet →

PIC18F06Q40-I/SL

✅ Drop-In ⚠️ Specs Unverified
Microchip Technology
📦 28-SOIC (SL)
PIC18 (8-bit RISC) · 64 KB · 4 KB · 512 bytes · 64 MHz (16 MIPS) · 14-SOIC (SL) 150-mil · 14 · 1.8 V to 5.5 V

✓ In Stock

$1.18 / Unit

View Datasheet →

PIC18F05Q40-I/SL Maximum Ratings & Electrical Characteristics

Core Architecture PIC18 8-bit RISC (modified Harvard)
Program Memory (Flash) 32 KB
SRAM 2 KB
EEPROM 512 bytes
Maximum CPU Speed 64 MHz (16 MIPS)
Supply Voltage (VDD) 1.8 V to 5.5 V
ADC 12-bit ADC2 with Computation, up to 20 channels
DAC 8-bit DAC, two instances
PWM 16-bit PWM, 4 channels
DMA Controller Yes (peripheral-to-memory / memory-to-memory)
Configurable Logic Cells (CLC) Yes
Comparators Yes
Timers 8-/16-bit timers
Communications UART, SPI, I2C
Operating Temperature -40C to +85C (industrial, "-I")
Package 14-SOIC (SL) 150-mil
Mounting Type Surface Mount
RoHS Status Compliant

PIC18F05Q40-I/SL Pin Configuration

SOIC-14 (3.9mm) Package Pinout Diagram SOIC-14 14-pin small outline IC, 3.9x8.7mm, P1.27mm, JEDEC MS-012. Pin 1 by chamfer. 1 14 2 13 3 12 4 11 5 10 6 9 7 8 SOIC-14 (3.9mm)
Pin 1 RA0/ICSPDAT — Digital I/O / analog input / ICSP data (USART RX default)
Pin 2 RA1/ICSPCLK — Digital I/O / analog input / ICSP clock
Pin 3 RA2 — Digital I/O / analog input (peripherals: DAC1 ref)
Pin 4 RA3 — Digital I/O / analog input (peripherals: DAC2 ref)
Pin 5 RA4 — Digital I/O / analog input (peripherals: CLC, T0CKI)
Pin 6 RA5 — Digital I/O / analog input / Master Clear (MCLR if configured)
Pin 7 VSS — Ground reference
Pin 8 RC0 — Digital I/O (peripherals: PWM1/PWM3 alternate)
Pin 9 RC1 — Digital I/O (peripherals: PWM2/PWM4 alternate)
Pin 10 RC2 — Digital I/O (peripherals: CCP1 / I2C-SCL)
Pin 11 RC3 — Digital I/O (peripherals: SPI-MOSI / I2C-SDA)
Pin 12 RC4 — Digital I/O (peripherals: SPI-MISO)
Pin 13 RC5 — Digital I/O (peripherals: SPI-CLK)
Pin 14 VDD — Positive supply 1.8 V to 5.5 V

Typical Applications

PIC18F05Q40-I/SL is suitable for 7 applications: BLDC Motor Control, LED Lighting Drivers, Home Appliance Control Board, IoT Edge Sensor Node, Capacitive Touch User Interface, PMSM Servo Motor Drive, Sensor Hub with DMA Acquisition.

🏭

BLDC Motor Control

The PIC18F05Q40-I/SL's 12-bit ADC2 with Computation engine, four 16-bit PWMs with complementary outputs, and DMA controller make it ideal for sensorless and sensored BLDC motor control. Designers place the MCU between the gate-driver and the speed/position feedback: ADC2 samples back-EMF at 200 kS/s while DMA moves samples to RAM, freeing CPU cycles for the commutation algorithm and yielding deterministic 50 usec loop times. The CLC offloads hardware fault handling (overcurrent, desaturation) without CPU latency.

💡

LED Lighting Drivers

PWM dim-to-dark LED drivers benefit from the 16-bit PWM resolution of the PIC18F05Q40-I/SL: 1.8 kHz PWM with 0.0015 % duty step, paired with the 8-bit DAC for analog-current trims. The DMA controller streams frequency-modulation tables into the PWM duty register without CPU load, enabling flicker-free dimming. Two CLC blocks perform zero-cross detection and triac-trigger logic for phase-cut (TRIAC) retrofit bulbs in a single 14-SOIC part.

🏭

Home Appliance Control Board

The PIC18F05Q40-I/SL targets the appliance market with on-chip peripherals that replace $1 worth of analog ICs. The DMA autonomously streams capacitance values from a touch-button matrix, the ADC2 with hardware oversampling reads temperature sensors to better than 0.01 C, and 16-bit PWMs drive buzzer and piezo-haptic. A single 14-SOIC handles induction-cooktop and rice-cooker main control, reducing BOM cost and PCB area versus competing 32-bit solutions.

🧩

IoT Edge Sensor Node

Battery-powered IoT sensor nodes put the PIC18F05Q40-I/SL to work in 1.8 V operation at 1.8 MHz using the 32 kHz LFINTOSC plus DMA waking the CPU only for sensor-read or radio-TX events. The 12-bit ADC2 with burst averaging delivers 14-bit effective resolution for temperature, humidity and battery voltage, while CLC and DMA offload edge-event counting. The total sleep-mode current at 1.8 V is approximately 50 nA with the WDT enabled per datasheet DS40002328.

📱

Capacitive Touch User Interface

The PIC18F05Q40-I/SL's 12-bit ADC2 with Computation and CLC enable pic-micro capacitive touch without external ICs: charge-time measurement on every pin and CLC combining sensor pins for self-canceling electrodes. Hardware DMA acquires the 16-button matrix while the CPU runs other tasks, achieving <30 msec button-update rate at <1.2 mA active draw. The mTouch peripheral support library in MPLAB Code Configurator auto-calibrates the matrix.

🤖

PMSM Servo Motor Drive

Field-oriented control (FOC) of permanent-magnet motors uses the PIC18F05Q40-I/SL's 16-bit PWM with 7.5 ns dead-band plus the dual 8-bit DACs for current-loop setpoints. A 16 MIPS Harvard core closes a 20 kHz FOC loop while leaving headroom for CAN/SSI feedback and on-board trapezoidal failure-handling via CLC. The 14-SOIC lowers BOM cost over Cortex-M0 +8 parts in price-sensitive robotics, fan and servo applications.

🧩

Sensor Hub with DMA Acquisition

The PIC18F05Q40-I/SL's DMA streams 200 kS/s A-to-D reads from a multi-axis IMU / analog sensor array while the CPU sleeps, waking once per cycle to do a small AI inferencing job - firmware uses the 8-bit DSP-enhanced instructions and 8x8 hardware multiplier. The result is a passive sensor hub under 5 mW average power per datasheet DS40002328, ideal for sports-wear and industrial vibration monitors.

Recommended Products Summary

MCP8024 3-phase gate driver companion Used in: BLDC Motor Control MCP1700 LDO for MCU AVDD rail Used in: BLDC Motor Control MIC3230 Boost LED driver companion Used in: LED Lighting Drivers MCP47CVB41 External 12-bit DAC for deep dimming Used in: LED Lighting Drivers MCP6072 Op-amp for current sensing Used in: Home Appliance Control Board MCP9700 Analog temperature sensor companion Used in: Home Appliance Control Board MCP2221A USB-to-UART bridge Used in: IoT Edge Sensor Node RN4871 Bluetooth LE module Used in: IoT Edge Sensor Node MCP16311 Tiny step-down DC-DC for touch boards Used in: Capacitive Touch User Interface PIC18F04Q41-I/SL Microchip Technology Used in: Capacitive Touch User Interface MCP8026 3-phase BLDC/PMSM gate driver Used in: PMSM Servo Motor Drive MCP25xx CAN bus interface IC Used in: PMSM Servo Motor Drive MCP4901 10-bit DAC for analog output on acquisitions Used in: Sensor Hub with DMA Acquisition MCP2120 IrDA UART bridge for wire-free datalinks Used in: Sensor Hub with DMA Acquisition
What is the flash memory size of PIC18F05Q40-I/SL?
The PIC18F05Q40-I/SL integrates 32 KB of Flash program memory, 2 KB of SRAM, and 512 bytes of EEPROM on-chip. According to Microchip datasheet DS40002328, the Flash is rated for 10,000 erase/write cycles and supports in-circuit serial programming (ICSP) through the ICSPDAT/ICSPCLK pair. This is sufficient for Bluetooth LE control logic, sensor fusion, and small protocol stacks.
What is the maximum CPU clock of PIC18F05Q40-I/SL?
The PIC18F05Q40-I/SL runs at up to 64 MHz on the system clock, delivering 16 MIPS of instruction throughput (4 clock cycles per instruction). A 32 MHz internal oscillator is included for designs that minimize external components. When using the 64 MHz HFINTOSC the active current is roughly 12 mA at 3.3 V per datasheet DS40002328.
Does PIC18F05Q40-I/SL support motor control?
Yes, the PIC18F05Q40-I/SL is built for real-time motor control. It integrates a 12-bit ADC2 with Computation, four 16-bit PWMs with complementary outputs and dead-band, two 8-bit DACs for slope compensation, configurable logic cells, and a hardware DMA controller. Together these peripherals offload the CPU, enabling deterministic BLDC, PMSM, and stepper loops in a 14-SOIC footprint.
How many ADC channels does PIC18F05Q40-I/SL have?
The PIC18F05Q40-I/SL provides up to 20 analog input channels routed to its 12-bit ADC2 with Computation engine. Differential pairs are selectable for current-sense and bridge-voltage measurements. The ADC2 hardware oversampling can reach 14-bit effective resolution, useful for low-noise sensor reads without CPU overhead.
What is the difference between PIC18F05Q40 and PIC18F06Q40?
The PIC18F05Q40 and PIC18F06Q40 are siblings in the PIC18-Q40 family with identical peripherals. The difference is pin count and memory: the 05 variant targets 14-20 pins with 32 KB Flash / 2 KB SRAM, while the 06 variant offers 48-64 pins with 64 KB Flash and 4 KB SRAM. They are software-compatible through identical peripheral SFR maps but need pin/scale redesign.
Where to download PIC18F05Q40-I/SL datasheet PDF?
The official Microchip datasheet (DS40002328) is available directly from Microchip's product page for the PIC18F05Q40 family. Search "PIC18F05Q40 datasheet" and select the microchip.com result, or use the exact datasheet URL listed in the data_sources section on this page. Third-party mirrors may also host the same PDF for convenience.
What is the pinout of PIC18F05Q40-I/SL?
The 14-SOIC (SL) pinout assigns pin 1 to RA0/ICSPDAT, pin 14 to VDD, and so on around the SOIC body. Per Microchip datasheet DS40002328, the package exposes 14 pins (ICSPDAT/ICSPCLK, VDD, VSS, RA/RC I/O, ADC channels and the dedicated CLC/CCP/PWM signals). Use the package diagram on this page and check your schematic against the CLC routing in MPLAB Code Configurator.
Is there an automotive grade version of PIC18F05Q40?
No AEC-Q100 qualified variant ("-Q1" suffix) was listed in the verified distributor or Microchip data for the 14-SOIC PIC18F05Q40. According to Microchip's product page, Q40 family covers industrial and consumer grades; for AEC-Q100 applications Microchip recommends the PIC18F-K42 or PIC18F-Q71 families in the same 8-bit PIC18 line. Industrial-grade part is the PIC18F05Q40-I/SL itself.
What programming tools support PIC18F05Q40-I/SL?
The PIC18F05Q40-I/SL is supported by MPLAB X IDE (free), the MPLAB XC8 C compiler (free and PRO tiers), and the MPLAB SNAP, PICkit 4, PICkit 5, MPLAB ICD 4 programmers/debuggers. MPLAB Code Configurator (MCC) is the recommended graphical setup tool: it auto-generates C initialization for the ADC2, PWM, CLC, and DMA peripherals and saves weeks of register-level bring-up.
Where to buy PIC18F05Q40-I/SL in stock at fair price?
The PIC18F05Q40-I/SL is in stock at authorized distributors including Mouser, DigiKey, and LCSC Electronics. As of 2026-09-26, LCSC lists the part at $1.24 cut-tape, with quantity discounts at 100/500/1000 unit breaks. For volume above 10k units contact Master Electronics or the Microchip direct-buy portal. Always buy from authorized channels to avoid counterfeits.
What is the lead time for PIC18F05Q40-I/SL?
As of 2026-09-26, the lead time for the PIC18F05Q40-I/SL is "Ships today" from Mouser (1-2 day shipping) and from LCSC (in-stock, 1-3 day shipping in Asia). Master Electronics shows 855 units immediately available. Microchip's own factory lead time for larger 10k+ orders runs 6-10 weeks ARO depending on wafer availability.
PIC18F05Q40 vs STM32G031 - which is better for a 1-channel LED driver?
The PIC18F05Q40 wins for a single-channel LED driver because it integrates 4 hardware 16-bit PWM channels, 8-bit DAC, CLC and DMA in an 8-bit core costing about $0.85/1000. The STM32G031 (Cortex-M0+, 32-bit) is more capable per MHz but its 8-channel timers, 12-bit ADC and price ($1.20-$1.50/1000) suit multi-channel/power-Stage designs. Choose PIC18F05Q40 for cost-and-analog-rich; pick STM32 for richer ecosystem and 32-bit headroom.
When should I choose PIC18F05Q40 over PIC18F04Q41?
Choose the PIC18F05Q40 when the design needs the Q40 family's 12-bit ADC2 (with Computation engine and CLC signal routing) and the 16-bit PWMs with complementary outputs. Choose the PIC18F04Q41 when you want more 8-bit AVR-like peripherals or wider voltage range. Both share the 14-SOIC SL package, so layout is identical - select on peripheral features, not package.
What is the best drop-in replacement for PIC18F05Q40-I/SL?
The best drop-in replacement for the PIC18F05Q40-I/SL on the same 14-SOIC footprint is the PIC18F05Q40-E/SL (extended temperature, "-E") - same die, same pinout, drops in without PCB changes. If you need the same MCU but in extended storage temperature (-40C to +125C or higher), use the -E/SL. For a larger flash, PIC18F06Q40-I/SL is software-compatible but changes the 14-SOIC pinout.

Engineering reference data for PIC18F05Q40-I/SL — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC18F05Q40-I/SL when your design needs an 8-bit MCU with on-chip DMA, Configurable Logic Cells (CLC) and four 16-bit PWM channels in a 14-SOIC SL package - typical choices are BLDC motor control, phase-dim LED driver boards, capacitive touch human-machine interfaces, and analog sensor nodes. For designs that do not need DMA or CLC, downgrade to PIC18F04Q40-I/SL to save $0.40 per unit and accept 8 KB Flash. Step up to PIC18F06Q40-I/SL only if 64 KB Flash and 48+ pin-count extras are truly needed - otherwise the 14-pin Q40 is the lowest-cost entry into the PIC18-Q40 family. For AEC-Q100 automotive, this part is not qualified - use PIC18F-Q71 family instead.

Comparison with Alternatives

Parameter This Product PIC18F05Q40-E/SL PIC18F05Q40-I/ST PIC18F04Q40-I/SL PIC18F04Q41-I/SL
Package 14-SOIC (SL) 14-SOIC (SL) - same 14-SOIC (ST) 14-SOIC (SL) - same 14-SOIC (SL) - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Flash Memory 32 KB 32 KB 32 KB 8 KB 8 KB
SRAM 2 KB 2 KB 2 KB 1 KB 1 KB
EEPROM 512 bytes 512 bytes 512 bytes 512 bytes 256 bytes
Maximum CPU Speed 64 MHz (16 MIPS) 64 MHz (16 MIPS) 64 MHz (16 MIPS) 64 MHz (16 MIPS) 64 MHz (16 MIPS)
Configurable Logic Cells Yes Yes Yes Yes No
DMA Controller Yes Yes Yes Yes No
Operating Temperature -40C to +85C -40C to +125C -40C to +85C -40C to +85C -40C to +85C

Key Differentiators

  • Hardware DMA controller in an 8-bit MCU (vs PIC18F04Q41-I/SL)
  • Highest flash density in 14-pin SOIC Q40 family (vs PIC18F04Q40-I/SL)
  • 12-bit ADC2 with hardware Computation engine (vs PIC18F04Q41-I/SL)
  • 16-bit PWM with complementary outputs and dead-band (vs PIC18F04Q41-I/SL)

Design Notes

The 14-SOIC (SL) package has a theta_JA of approximately 81 C/W on a standard JEDEC 4-layer board. Estimated: at FOSC=64 MHz, VDD=3.3 V, IDD~12 mA, total dissipation is ~40 mW, resulting in a 3.2 C junction rise above ambient. This is well below the 150 C absolute maximum and needs no heatsink even inside a sealed enclosure at +85 C ambient.

Place a 100 nF ceramic decoupling capacitor within 5 mm of VDD (pin 14), plus a bulk 4.7-10 uF tantalum or aluminum capacitor on the same VDD node. For ADC accuracy, use a separate AVSS-isolated copper pour and place a 100 nF + 10 uF RC on the analog supply trace. Per Microchip PIC18F-Q40 reference layout, keep the ICSP pins accessible for production programming - leave RA0/RA1 free of pull-ups so they can be configured during ICSP.

When migrating from PIC18F-K40 family code, remember that the Q40 adds DMA and CLC peripherals - their bits appear in SFRs that were reserved bits on older parts. Initialization code that clears all POR registers without checking reserved-bit behavior may erase DMA triggers. Use MCC-generated peripheral setup or read-modify-write with the master interrupt (GIEL) cleared. Also, when targeting 5.5 V operation the ADC input clamp to VDD+0.3 V applies - subtract 0.5 V headroom on analog-input PWM voltages.

Trace the ICSP signals RA0/ICSPDAT and RA1/ICSPCLK directly from the MCU to the programming connector - never add series resistors on ICSP lines (this fails programming). The MCLR pin (RA5 if configured for MCLR) needs a 10 kohm pull-up to VDD and a 100 nF cap to ground for proper reset. Per Microchip routing guidance, keep the ICP-bypass capacitor within 5 mm of the VDD pin to prevent power-rail glitch on ICSP entry.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

RoHS and REACH compliant per Microchip product page. Industrial-grade ("-I"), not AEC-Q100 qualified; for AEC-Q100 drop-in to PIC18F-Q71 family.

Data verified on: 2026-09-26 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC18F05Q40-I/SL PIC18F05Q40 datasheet Microchip PIC18F05Q40 32KB flash 8-bit MCU 14-SOIC PIC18F05Q40-I/SL motor control PIC18F05Q40-I/SL LED driver PIC18F05Q40 vs PIC18F04Q40 PIC18F05Q40 vs PIC18F04Q41 PIC18F05Q40-I/SL buy price PIC18-Q40 family DMA peripheral PIC18F05Q40 pinout 14-SOIC 12-bit ADC with computation engine where to buy PIC18F05Q40-I/SL online drop-in replacement for PIC18F05Q40-I/SL MPLAB XC8 PIC18F05Q40 firmware

Related Components & Terms

Microchip Technology PIC18F05Q40 PIC18F05Q40-I/SL PIC18F04Q40-I/SL PIC18F06Q40-I/SL PIC18F05Q40-E/SL PIC18F05Q40-I/ST PIC18F04Q41-I/SL MCU 8-bit microcontroller PIC18 PIC18-Q40 family MPLAB X IDE MPLAB Code Configurator MPLAB XC8 compiler 12-bit ADC2 ADC with Computation 8-bit DAC 16-bit PWM Configurable Logic Cell (CLC) DMA controller 14-SOIC SL package surface-mount ROHS industrial temperature grade BLDC motor control LED lighting driver
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
✓
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details