Microchip Technology

PIC18F15Q40-I/P - 8-Bit 64MHz MCU, 32KB Flash, 20-PDIP | Microchip

MPN: PIC18F15Q40-I/P ✓ Active
In Stock Ships in 1-3 business days
1.8 V to 5.5 V Vdss 20-pin PDIP Package 64 MHz Speed 32 KB (32K x 8) Memory
From $2.05 USD / Unit
MOQ: 1 |
Price updated: 2026-09-26
Volume Pricing
Qty Unit Price Extended
1 $3.28 $3.28
10 $2.95 $29.50
100 $2.62 $262.00
500 $2.31 $1,155.00
1,000 $2.05 $2,050.00
ℹ️ All prices are in USD

PIC18F15Q40-I/P Overview

The Microchip Technology PIC18F15Q40-I/P is an 8-bit RISC microcontroller from the PIC18-Q40 family, featuring a 64 MHz CPU, 32 KB of Flash program memory, 2 KB of SRAM, and 512 bytes of EEPROM, housed in a 20-pin PDIP through-hole package. According to the Microchip datasheet, it integrates a 12-bit ADC with Computation (ADCC), two 8-bit DAC modules, 16-bit PWMs, Direct Memory Access (DMA), Configurable Logic Cells (CLC), and Peripheral Pin Select (PPS), making it well suited for real-time control and sensor applications.

What is a PIC microcontroller? A PIC (Peripheral Interface Controller) is a family of Harvard-architecture microcontrollers from Microchip Technology built around a RISC instruction set, widely used in embedded systems that require deterministic real-time response, low power consumption, and rich peripheral integration. Within the taxonomy, the PIC18F15Q40 sits in the 8-bit PIC18 family -> PIC microcontroller -> microcontroller unit (MCU) -> embedded processor -> semiconductor device.

Key features of the PIC18F15Q40-I/P include up to 64 MHz operation, a 12-bit ADCC with automated capacitive voltage divider (CVD) for advanced touch sensing, two 8-bit DACs for analog outputs, DMA for data movement without CPU intervention, four 16-bit PWMs for motor and power control, four CLC blocks for hardware glue logic, and PPS for flexible pin mapping. Its 32 KB Flash and 2 KB SRAM give enough headroom for state-machine plus protocol stacks in compact designs.

Technically, the ADCC automates averaging, filtering, oversampling, and threshold comparison, offloading signal-conditioning work that would otherwise consume CPU cycles. DMA channels move ADC results into RAM or PWM registers autonomously, freeing the CPU for closed-loop control. The CLC peripheral implements combinational and sequential logic on-chip, replacing small external logic ICs and reducing BOM cost. PPS allows most digital peripherals to be remapped to a wide range of I/O pins, simplifying PCB layout.

Typical applications include capacitive touch user interfaces, BLDC motor control, LED lighting drivers, sensor signal conditioning, HVAC fan control, and small-form-factor IoT edge nodes. The 20-pin PDIP variant is especially attractive for breadboarding, education, and through-hole production where hand-soldering or socketed replacement is required.

When designing with this part, leverage the peripheral pin select (PPS) feature to route peripherals to convenient pins, and use the CLC to implement safety logic or hardware interlocks without external gates. Plan for ICD/ICSP header access if in-field firmware updates are required.

Drop-in alternatives for PIC18F15Q40-I/P — 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 PIC18F15Q40-I/P (same form factor and footprint) — differing in ADC, Package, Core Architecture, DAC, Operating Temperature.

Microchip Technology
ADC: 12-bit ADC2 with Computation, up to 20 channels
Package: 14-SOIC (SL) 150-mil
Core Architecture: PIC18 8-bit RISC (modified Harvard)
Microchip Technology
Package: 20-pin PDIP (P)
Core Architecture: PIC18 (8-bit RISC Harvard)
Microchip Technology
ADC: 12-bit with Computation (ADCC)
Package: 20-pin PDIP (P)
Core Architecture: PIC18 (8-bit RISC, enhanced Harvard)
Microchip Technology
ADC: 12-bit ADC with Computation (ADCC), 10 channels
Package: 20-pin SOIC (SO), wide-body 7.5 mil pitch
DAC: Two 8-bit DACs

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

PIC18F15Q40-E/SO

✅ Drop-In
Microchip Technology
📦 20-pin SOIC
PIC18 8-bit RISC · PIC18-Q40 · 32 KB (32K x 8) · 2 KB · 512 bytes · 64 MHz · 1.8 V to 5.5 V · 12-bit ADC with Computation (ADCC), 10 channels

✓ In Stock

$1.02 / Unit

View Datasheet →

PIC18F14Q40-I/P

✅ Drop-In
Microchip Technology
📦 20-pin PDIP
PIC18 (8-bit RISC Harvard) · 64 MHz · 16 KB · 1 KB · 512 B · 12-bit ADC with Computation (ADCC) · 2 x 8-bit DAC · 16-bit PWM, 4 channels

✓ In Stock

$0.89 / Unit

View Datasheet →

PIC18F05Q40-I/SL

✅ Drop-In
Microchip Technology
📦 20-pin SOIC
PIC18 8-bit RISC (modified Harvard) · 32 KB · 2 KB · 512 bytes · 64 MHz (16 MIPS) · 1.8 V to 5.5 V · 12-bit ADC2 with Computation, up to 20 channels · 8-bit DAC, two instances

✓ In Stock

$0.78 / Unit

View Datasheet →

PIC18F15Q40-I/P Maximum Ratings & Electrical Characteristics

Core Architecture PIC18 8-bit RISC
Program Memory (Flash) 32 KB (32K x 8)
Data SRAM 2 KB
Data EEPROM 512 bytes
Maximum CPU Speed 64 MHz
ADC 12-bit ADC with Computation (ADCC)
DAC 2 x 8-bit DAC
PWM 16-bit PWM
DMA Yes (Direct Memory Access)
Configurable Logic Cells (CLC) Yes
Peripheral Pin Select (PPS) Yes
Package 20-pin PDIP
Mounting Type Through-Hole
Operating Temperature -40C to +85C (Industrial)
Supply Voltage 1.8 V to 5.5 V
Communication Interfaces UART, SPI, I2C
RoHS Status Compliant

PIC18F15Q40-I/P Pin Configuration

DIP-20 Package Pinout Diagram DIP-20 20-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 DIP-20
Pin 1 RA3/AN3 — Bidirectional I/O / analog input
Pin 2 RA4/AN4 — Bidirectional I/O / analog input
Pin 3 RA5/MCLR — Bidirectional I/O / Master Clear (reset)
Pin 4 RA0/AN0 — Bidirectional I/O / analog input
Pin 5 RA1/AN1 — Bidirectional I/O / analog input
Pin 6 RA2/AN2 — Bidirectional I/O / analog input
Pin 7 VSS — Ground reference
Pin 8 VDD — Positive supply voltage (1.8 V to 5.5 V)
Pin 9 RB4 — Bidirectional I/O
Pin 10 RB5 — Bidirectional I/O
Pin 11 RB6/ICSPCLK — Bidirectional I/O / ICD clock
Pin 12 RB7/ICSPDAT — Bidirectional I/O / ICD data
Pin 13 RC0 — Bidirectional I/O (PPS-capable)
Pin 14 RC1 — Bidirectional I/O (PPS-capable)
Pin 15 RC2 — Bidirectional I/O (PPS-capable)
Pin 16 RC3 — Bidirectional I/O (PPS-capable)
Pin 17 RC4 — Bidirectional I/O (PPS-capable)
Pin 18 RC5 — Bidirectional I/O (PPS-capable)
Pin 19 RC6 — Bidirectional I/O (PPS-capable)
Pin 20 RC7 — Bidirectional I/O (PPS-capable)

Typical Applications

PIC18F15Q40-I/P is suitable for 6 applications: Capacitive Touch User Interface, BLDC and DC Motor Control, LED Lighting Drivers, Industrial Sensor Signal Conditioning, HVAC Fan and Blower Control, IoT Edge Sensor Nodes.

🧩

Capacitive Touch User Interface

The PIC18F15Q40-I/P is well suited for capacitive touch user interfaces thanks to its 12-bit ADC with Computation (ADCC) that automates capacitive voltage divider (CVD) sensing. According to the Microchip datasheet, the ADCC performs averaging, filtering, oversampling, and threshold comparison on-chip, offloading capacitive scan processing from the CPU. With 32 KB Flash and 2 KB SRAM, the part has headroom for mTouch libraries and a small UI state machine, while PPS allows flexible sensor pin routing.

🏭

BLDC and DC Motor Control

The PIC18F15Q40-I/P suits small BLDC and brushed DC motor control applications due to its 16-bit PWM, DMA channels, and configurable logic cells (CLC). The CLC can implement hardware interlocks and dead-time logic without external gates, while DMA autonomously updates PWM duty cycles from RAM. With a 64 MHz CPU the part sustains 10-20 kHz control loops with residual bandwidth for commutation and current sensing, and PPS lets designers route PWM outputs to convenient pins.

💡

LED Lighting Drivers

The PIC18F15Q40-I/P fits LED lighting driver designs where multiple PWM channels, high-resolution dimming, and color mixing are required. Its 16-bit PWM provides smooth dimming with minimal flicker, while the two 8-bit DACs supply analog references for constant-current drivers or temperature-compensation loops. DMA and CLC enable automatic color-temperature adjustment without CPU intervention, and the 1.8 V to 5.5 V supply range allows direct operation from battery or USB rails.

🏭

Industrial Sensor Signal Conditioning

The PIC18F15Q40-I/P is appropriate for industrial sensor signal conditioning nodes where multiple analog inputs require filtering and linearization. The 12-bit ADCC automates oversampling and threshold-based event detection, while the two 8-bit DACs provide excitation or offset bias for bridge sensors. With UART/SPI/I2C plus PPS, the MCU can simultaneously host a sensor front-end and a downstream industrial bus such as RS-485 or Modbus, all in a through-hole PDIP form factor suited to harsh environments.

⚡

HVAC Fan and Blower Control

The PIC18F15Q40-I/P is well matched to HVAC fan and blower controllers that require closed-loop speed control and AC line zero-cross detection. Its 16-bit PWM provides high-resolution variable-frequency drive, while CLC blocks implement safety logic such as over-current shutoff without external gates. The 20-pin PDIP package simplifies hand-soldering during field repairs, and the -40C to +85C industrial temperature rating covers indoor equipment compartments.

📱

IoT Edge Sensor Nodes

The PIC18F15Q40-I/P is well suited to small IoT edge sensor nodes that require analog front-end, local decision-making, and a serial uplink. The 12-bit ADCC reads multiple sensors while DMA streams results into RAM, and the CLC generates wake-up events without CPU intervention. With 32 KB Flash the MCU can host a lightweight MQTT-SN or LoRaWAN stack, and PPS allows the same serial peripheral to be routed to a wireless module or RS-485 transceiver depending on the deployment.

Recommended Products Summary

PIC18F15Q40-I/SP Same die, SPDIP package variant for breadboard prototyping Used in: Capacitive Touch User Interface AT42QT1010 External touch sensor companion for additional channels Used in: Capacitive Touch User Interface DRV8870 H-bridge motor driver companion Used in: BLDC and DC Motor Control PIC18F14Q40-I/P Microchip Technology Used in: BLDC and DC Motor Control LP8860 LED backlight driver companion Used in: LED Lighting Drivers TPS61165 White LED driver for boost topology Used in: LED Lighting Drivers MAX31865 RTD-to-digital converter for temperature sensing Used in: Industrial Sensor Signal Conditioning MCP3421 External 18-bit ADC for higher-precision channels Used in: Industrial Sensor Signal Conditioning MCP14A0151 Half-bridge MOSFET driver for fan drive stage Used in: HVAC Fan and Blower Control ACS712 Hall-effect current sensor for closed-loop feedback Used in: HVAC Fan and Blower Control RN2483 LoRaWAN transceiver for long-range uplink Used in: IoT Edge Sensor Nodes ESP8266 Wi-Fi companion for higher-bandwidth nodes Used in: IoT Edge Sensor Nodes
What is the program memory size of PIC18F15Q40-I/P?
The PIC18F15Q40-I/P has 32 KB of Flash program memory organized as 32K x 8. According to the Microchip datasheet, this provides ample space for application firmware plus a bootloader. It also includes 2 KB SRAM for data and 512 bytes EEPROM for non-volatile parameter storage across power cycles.
What is the maximum operating frequency of PIC18F15Q40-I/P?
The PIC18F15Q40-I/P runs at a maximum 64 MHz CPU clock, yielding up to 16 MIPS of throughput. The device supports instruction-cycle clocking from 1 MHz to 64 MHz depending on configuration. At 64 MHz the core delivers enough headroom for closed-loop control loops executing at 10 kHz or higher.
Where to buy PIC18F15Q40-I/P online?
The PIC18F15Q40-I/P can be purchased from authorized distributors including DigiKey, Mouser, Newark, LCSC Electronics, and Microchip Direct as of 2026-09-26. Stock status and unit prices vary by reel size and distributor; LCSC lists a unit price starting around $3.28. Volume pricing is typically available for 100-piece and 1000-piece quantities.
What is the lead time for PIC18F15Q40-I/P?
As of 2026-09-26, DigiKey lists the PIC18F15Q40-I/P as 'ships today' for small quantities, indicating minimal lead time for samples and prototype builds. Bulk orders above 1000 pieces are typically fulfilled within 2-4 weeks through authorized distributors. For long-term production planning, Microchip Direct supports volume scheduling.
Is PIC18F15Q40-I/P in stock at distributors?
Yes, the PIC18F15Q40-I/P is in stock at major distributors including DigiKey and Mouser as of 2026-09-26. The DIP package variant is particularly well-stocked because it is widely used for educational and prototyping purposes. LCSC also lists inventory and offers a competitive starting unit price around $3.28.
What is the price of PIC18F15Q40-I/P?
The PIC18F15Q40-I/P unit price starts at approximately $3.28 at LCSC for single-unit purchases as of 2026-09-26. Volume discounts bring 100-piece pricing down to roughly $2.62, and 1000-piece pricing near $2.05. Authorised distributors DigiKey and Mouser typically price within a few cents of LCSC for equivalent quantities.
What are the differences between PIC18F15Q40-I/P and PIC18F14Q40-I/P?
The PIC18F15Q40-I/P has 32 KB Flash and 2 KB SRAM, while the PIC18F14Q40-I/P has 16 KB Flash and 1 KB SRAM. Both share the same 64 MHz PIC18 core, 12-bit ADCC, dual 8-bit DACs, DMA, CLC, PPS, and 20-pin PDIP footprint, so the F15Q40 is a drop-in memory upgrade for designs that need additional code or RAM headroom.
When should I choose PIC18F15Q40-I/P over PIC18F14Q40-I/P?
Choose the PIC18F15Q40-I/P when your firmware exceeds 16 KB Flash or your RAM usage exceeds 1 KB, for example when adding a Bluetooth LE stack, USB CDC, or a graphical interface. Choose the PIC18F14Q40-I/P for simpler applications such as sensor interfaces or PWM-only motor control where 16 KB Flash is sufficient and BOM cost matters more.
What is the best drop-in replacement for PIC18F15Q40-I/P?
The best drop-in replacement is the PIC18F15Q40-I/SP, which shares the same 28-pin SPDIP/SOIC footprint family. According to the Microchip product family, PIC18F15Q40-I/SO and PIC18F15Q40-I/SS are SMD alternatives in the same family with identical peripherals, but only same-package same-pin drop-ins should be considered as true plug-replaceable.
Can PIC18F14Q40-I/P replace PIC18F15Q40-I/P?
The PIC18F14Q40-I/P can physically replace the PIC18F15Q40-I/P in the same 20-pin PDIP socket but offers only 16 KB Flash instead of 32 KB. If your firmware fits in 16 KB Flash and 1 KB SRAM, the F14Q40 is a valid drop-in. If not, the larger F15Q40 is required - using F14Q40 as a substitute will cause Flash overflow.
Where to download PIC18F15Q40-I/P datasheet PDF?
The PIC18F15Q40 datasheet is available as a free PDF from Microchip at the official product document portal. Direct link: https://ww1.microchip.com/downloads/en/DeviceDoc/PIC18F04-05-14-15Q40-Data-Sheet-40002236C.pdf. The datasheet covers the entire PIC18F04/05/14/15Q40 family including pinout, electrical characteristics, and peripheral configuration.
Where to find PIC18F15Q40-I/P pinout diagram?
The PIC18F15Q40-I/P pinout is documented on page 1 of the family datasheet and in the Microchip product page. The 20-pin PDIP variant assigns RA0-RA5, RB4-RB7, RC0-RC7, and the ICSP/ICD pins per the standard PIC18 20-pin pinout. For board design, refer to the pinout table in the datasheet rather than relying on package silkscreen labels.
Is PIC18F15Q40-I/P the same as PIC18F15Q40-I/SO?
The PIC18F15Q40-I/P and PIC18F15Q40-I/SO are electrically identical - both contain the same die with the same 32 KB Flash, 2 KB SRAM, and peripherals. The only difference is the package: -I/P is 20-pin PDIP through-hole, while -I/SO is 20-pin SOIC surface-mount. They are NOT drop-in for each other because the PCB footprint differs.
What are the key specifications of PIC18F15Q40-I/P that engineers should know?
Key specifications of the PIC18F15Q40-I/P are: 8-bit PIC18 core at 64 MHz (16 MIPS), 32 KB Flash, 2 KB SRAM, 512 bytes EEPROM, 12-bit ADCC with CVD, two 8-bit DACs, 16-bit PWM, DMA, four CLCs, PPS, UART/SPI/I2C, and a 1.8 V to 5.5 V supply range. The 20-pin PDIP package and -40C to +85C industrial temperature grade support through-hole prototyping and rugged deployment.

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

Selection Guide

Choose the PIC18F15Q40-I/P when you need a 64 MHz 8-bit PIC18 microcontroller with 32 KB Flash and 2 KB SRAM in a 20-pin PDIP through-hole package, for prototype, education, or socketed production builds. Choose the PIC18F15Q40-I/SO when the design must use surface-mount and you want the same die. Choose the PIC18F15Q40-E/SO for extended -40C to +125C temperature range. Choose the PIC18F14Q40-I/P when 16 KB Flash and 1 KB SRAM are sufficient and BOM cost is critical - same 20-pin PDIP footprint allows PCB reuse but firmware must fit in 16 KB.

Comparison with Alternatives

Parameter This Product PIC18F15Q40-E/SO PIC18F14Q40-I/P
Brand Microchip Technology Microchip Technology Microchip Technology
Package 20-pin PDIP 20-pin SOIC (same family, NOT drop-in due to footprint) 20-pin PDIP - same
Flash Memory 32 KB 32 KB 16 KB
SRAM 2 KB 2 KB 1 KB
CPU Speed 64 MHz 64 MHz 64 MHz
Operating Temperature -40C to +85C (Industrial) -40C to +125C (Extended) -40C to +85C (Industrial)
ADC 12-bit ADCC 12-bit ADCC 12-bit ADCC

Key Differentiators

  • Highest memory density in 20-pin PIC18-Q40 family (vs PIC18F14Q40-I/P)
  • Through-hole PDIP for prototyping and education (vs PIC18F15Q40-I/SO)
  • Industrial temperature grade at lower price than extended grade (vs PIC18F15Q40-E/SO)

Design Notes

Power the PIC18F15Q40-I/P from a clean 3.3 V or 5 V rail with a 100 nF decoupling capacitor placed within 5 mm of the VDD pin and a bulk 10 uF capacitor on the supply rail. The internal voltage regulator requires VDD between 1.8 V and 5.5 V; operation below 1.8 V is not guaranteed. For battery-powered designs, configure the brown-out reset to match the minimum operating voltage of your specific peripheral mix.

Reserve a 5-pin header footprint for ICSP (ICSPCLK, ICSPDAT, VDD, VSS, MCLR) so production firmware can be programmed in-circuit. Place the header at the board edge to allow pogo-pin or clip-on programming. Keep analog traces short and routed away from PWM or PWM-switched power traces to minimize ADC noise coupling into the 12-bit ADCC measurements.

Do not configure PPS to remap ICSP signals to RB6/RB7 unless an alternate programming header is provided - field firmware updates will fail if the alternate mapping is not in place. Do not exceed 5.5 V on VDD or apply voltage to RA3/RA4 with VDD below 1.8 V; the absolute maximum ratings are stricter than the operating range. Always configure the unused I/O pins as outputs low to minimize shoot-through current.

When using the 12-bit ADCC for capacitive touch or low-level analog sensing, decouple AVVDD from VDD with a ferrite bead and add a 10 uF plus 100 nF capacitor close to the AVSS pin. Disable digital inputs on analog channels via the ANS register to prevent digital glitch energy from corrupting ADC samples. Use the ADCC auto-conversion and oversampling modes to average out high-frequency noise at the cost of latency.

Compliance Information

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

RoHS and lead-free per Microchip product page. Not AEC-Q100 qualified - this part targets industrial and consumer, not automotive safety-critical applications.

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

Related Searches

PIC18F15Q40-I/P PIC18F15Q40-I/P datasheet Microchip PIC18F15Q40 PIC18F15Q40-I/P 32KB Flash 20-pin PDIP PIC18F15Q40-I/P price PIC18F15Q40 buy online PIC18F15Q40 vs PIC18F14Q40 PIC18F15Q40 capacitive touch PIC18F15Q40 motor control PWM PIC18F15Q40 pinout what is the flash memory of PIC18F15Q40 PIC18 Q40 family datasheet PDF

Related Components & Terms

Microchip Technology PIC18F15Q40-I/P PIC18F14Q40-I/P PIC18F15Q40-E/SO PIC18F15Q40-I/SO PIC18 microcontroller 8-bit RISC Harvard architecture MCU Flash memory EEPROM SRAM 12-bit ADCC capacitive voltage divider (CVD) DMA Configurable Logic Cell (CLC) Peripheral Pin Select (PPS) 16-bit PWM DAC 20-pin PDIP ICSP UART SPI I2C RoHS
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