Microchip Technology

PIC18F05Q40-E/ST - 32KB Flash, 64MHz 8-bit MCU | Microchip

MPN: PIC18F05Q40-E/ST ✓ Active
In Stock Ships in 1-3 business days
1.8 V to 5.5 V Vdss 14-TSSOP Package 64 MHz Speed 32 KB (32K x 8) Memory
From $0.98 USD / Unit
MOQ: 1 |
Price updated: 2026-09-26
Volume Pricing
Qty Unit Price Extended
1 $1.45 $1.45
10 $1.3 $13.00
100 $1.18 $118.00
500 $1.08 $540.00
1,000 $0.98 $980.00
ℹ️ All prices are in USD

PIC18F05Q40-E/ST Overview

The Microchip Technology PIC18F05Q40-E/ST is a compact, high-performance 8-bit PIC18 microcontroller featuring 32KB of Flash program memory, 2KB of RAM, and 512 bytes of EEPROM, housed in a 14-pin TSSOP package. It operates at up to 64MHz with a 12-bit ADC with Computation (ADC2), dual 8-bit DACs, 16-bit PWMs, Direct Memory Access (DMA), Configurable Logic Cells (CLC), and Peripheral Pin Select (PPS) for flexible signal routing in real-time control and sensor applications.

An 8-bit microcontroller (MCU) is a microprocessor integrated with program memory, data memory, I/O peripherals, and a CPU on a single silicon die, optimized for embedded control tasks. The PIC18 architecture sits in the broader taxonomy as: 8-bit MCU -> microcontroller -> embedded processor -> semiconductor device. PIC18-Q40 family parts are particularly suited for low-power sensor interfacing and closed-loop control loops, with on-chip analog and digital peripherals eliminating many external components.

The 12-bit ADC2 with Computation performs hardware averaging, threshold comparison, and automated accumulation, offloading CPU overhead in high-sample-rate sensor reads. The dual 8-bit DACs enable dual-channel analog output references or waveform generation. The 16-bit PWMs support high-resolution motor control, LED dimming, and digital power conversion. Direct Memory Access (DMA) moves ADC results to memory without CPU intervention, freeing the core for application logic. PPS allows remapping of digital peripherals to a wide range of pins, simplifying PCB layout.

Typical applications include IoT sensor nodes, BLDC motor control, smart lighting, battery management, home appliance controls, and consumer electronics with capacitive touch or rotary user interfaces. The wide 1.8V to 5.5V supply range supports both single-cell Li-ion and 5V-rail designs.

When designing with this device, leverage PPS to optimize PCB routing and use ADC2 with Computation to minimize firmware overhead. Pair the TSSOP-14 variant with the PIC18-Q40 family toolchain (MPLAB X IDE + XC8 compiler + MPLAB Code Configurator) for rapid peripheral configuration.

Drop-in alternatives for PIC18F05Q40-E/ST — 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-E/ST (same form factor and footprint) — differing in ADC, Package, DAC, PWM, Operating Temperature.

Microchip Technology
ADC: 12-bit ADC with Computation (ADCC)
Package: 14-pin TSSOP (ST)
DAC: Two 8-bit DAC modules
Microchip Technology
ADC: 12-bit with Computation (ADCC)
Package: 14-SOIC (SL) 3.90 mm
DAC: 8-bit
Microchip Technology
ADC: 12-bit ADC2 with Computation, up to 20 channels
Package: 14-SOIC (SL) 150-mil
DAC: 8-bit DAC, two instances
Microchip Technology
ADC: 12-bit ADC with Computation (ADC2)
Package: 14-pin TSSOP (ST)
DAC: 2x 8-bit DAC
Microchip Technology
ADC: 12-bit ADC2 (with Computation)
Package: 14-pin TSSOP (ST) 4.4 mm
DAC: 8-bit DAC
Microchip Technology
ADC: 12-bit ADC2
Package: TSSOP-14
DAC: 8-bit DAC
Microchip Technology
ADC: 12-bit ADC2 (with Computation)
Package: 14-TSSOP (ST)
DAC: 8-bit DAC
Microchip Technology
ADC: 12-bit, with Computation (ADC2)
DAC: 2 x 8-bit
PWM: 16-bit, multiple channels
Microchip Technology
ADC: 12-bit ADC with Computation (ADC^2)
Package: 14-pin TSSOP (ST)
Operating Temperature: -40C to +85C (Industrial)
Microchip Technology
ADC: 12-bit with Computation (ADCC), 17 channels
Package: 20-pin VQFN (3x3 mm)
PWM: 16-bit PWM modules
Microchip Technology
ADC: 12-bit with Computation (ADCC)
Package: 20-pin PDIP (DIP-20)
PWM: 16-bit

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

PIC18F04Q40-I/ST

✅ Drop-In
Microchip Technology
📦 14-TSSOP
PIC18-Q40 · PIC18 8-bit RISC · 16 KB · 1 KB · 512 bytes · 64 MHz · 1.8 V to 5.5 V · 12-bit ADC with Computation (ADCC)

✓ In Stock

$0.82 / Unit

View Datasheet →

PIC18F05Q40-E/SL

✅ Drop-In ⚠️ Specs Unverified
Microchip Technology
📦 14-SOIC
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-TSSOP
Industrial temp grade -40C/+85C vs Extended -40C/+125C

📋 Reference alternative (not in catalog)

PIC18F05Q40-E/ST Maximum Ratings & Electrical Characteristics

Core Architecture PIC18 (8-bit)
Program Memory (Flash) 32 KB (32K x 8)
RAM 2 KB
EEPROM 512 bytes
Maximum CPU Speed 64 MHz
Supply Voltage 1.8 V to 5.5 V
ADC 12-bit ADC2 with Computation
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
Communication UART, SPI, I2C
Package 14-TSSOP
Operating Temperature -40C to +125C (E = Extended)

PIC18F05Q40-E/ST Pin Configuration

TSSOP-14 (4.4mm) Package Pinout Diagram TSSOP-14 4.4x5mm, P0.65mm, JEDEC MO-153. 14-pin thin shrink. 1 14 2 13 3 12 4 11 5 10 6 9 7 8 TSSOP-14 (4.4mm)
Pin 1 RA0/ICDDAT — I/O / ICSP Data
Pin 2 RA1/ICDCLK — I/O / ICSP Clock
Pin 3 RA2 — I/O with PPS
Pin 4 RA3/MCLR — I/O / Master Clear (Reset)
Pin 5 RA4 — I/O with PPS
Pin 6 RA5 — I/O with PPS
Pin 7 VSS — Ground
Pin 8 RA6 — I/O with PPS / OSC2
Pin 9 RA7 — I/O with PPS / OSC1
Pin 10 RB0 — I/O with PPS / INT
Pin 11 RB1 — I/O with PPS
Pin 12 RB2 — I/O with PPS
Pin 13 RB3 — I/O with PPS
Pin 14 VDD — Positive supply voltage (1.8V to 5.5V)

Typical Applications

PIC18F05Q40-E/ST is suitable for 6 applications: IoT Sensor Node, BLDC Motor Control, Smart Lighting and LED Drivers, Battery Management Systems, Home Appliance Control, Capacitive Touch User Interface.

🧩

IoT Sensor Node

The PIC18F05Q40-E/ST is well-suited for IoT sensor nodes due to its 12-bit ADC2 with Computation and direct memory access (DMA) which offloads signal-conditioning from the CPU, enabling low-power operation for battery-driven deployments. The 16-bit PWM is useful for driving indicator LEDs or actuator control loops while maintaining firmware configurability. With 32KB Flash, 2KB RAM, and the wide 1.8V to 5.5V supply range, the MCU supports single-cell Li-ion or 5V-rail designs spanning industrial IoT, smart agriculture, and building automation. PPS allows designers to route peripherals to convenient pins, simplifying PCB layout.

🏭

BLDC Motor Control

For BLDC motor control, the PIC18F05Q40-E/ST offers 16-bit PWM for high-resolution switching and dual 8-bit DACs for analog reference signals or waveform synthesis. Configurable Logic Cells (CLC) allow event-triggered hardware responses without CPU intervention, ideal for motor commutation timing. The 12-bit ADC2 with Computation handles back-EMF sensing and current measurement with hardware averaging to reduce signal noise. Operating up to 64MHz, the core provides fast loop times, while the wide supply voltage supports 3.3V and 5V motor driver power rails.

💡

Smart Lighting and LED Drivers

In smart lighting applications, the PIC18F05Q40-E/ST's 16-bit PWM provides smooth, high-resolution LED dimming without visible flicker at low duty cycles. The 12-bit ADC2 with Computation handles ambient light sensor inputs with hardware averaging for stable feedback. Dual 8-bit DACs can drive tunable white or color-mixing LEDs. The 32KB Flash supports complex lighting protocols and color-temperature algorithms. PPS allows flexible PCB routing for compact bulb form factors.

⚡

Battery Management Systems

The PIC18F05Q40-E/ST suits battery management with its 12-bit ADC2 with Computation for accurate cell voltage and current measurements, plus configurable thresholds for over-voltage/under-voltage protection. The wide 1.8V to 5.5V supply range operates directly from single-cell Li-ion or multi-cell NiMH packs. Dual 8-bit DACs enable programmable reference outputs for charger control loops. Hardware DMA moves ADC samples without CPU intervention, allowing low-power sleep modes between measurements.

🏠

Home Appliance Control

For home appliances, the PIC18F05Q40-E/ST provides reliable 8-bit processing with sufficient Flash and RAM for state machines, user interface handling, and sensor fusion. UART/SPI/I2C interfaces connect to displays, sensors, and communication modules. The 16-bit PWM drives heating elements, fans, or pump motors with precise proportional control. PPS lets designers map peripherals to convenient pins even on dense PCBs.

📱

Capacitive Touch User Interface

The PIC18F05Q40-E/ST supports capacitive touch sensing through its mTouch peripheral interface and Configurable Logic Cells (CLC) for hardware-level touch event detection. 12-bit ADC2 with Computation provides precise touch measurement with hardware averaging for noise rejection. The 16-bit PWM can drive haptic feedback actuators. With 32KB Flash, complex touch libraries and gesture recognition algorithms fit comfortably. PPS allows mapping touch channels to convenient PCB locations, ideal for appliances and consumer products.

Recommended Products Summary

PIC18F04Q40-I/ST Microchip Technology Used in: IoT Sensor Node MCP9808 High-accuracy temperature sensor companion Used in: IoT Sensor Node, Home Appliance Control dsPIC33FJ06GS001-E/P Higher-performance DSP MCU for advanced motor algorithms Used in: BLDC Motor Control MCP8024 Three-phase BLDC motor driver companion Used in: BLDC Motor Control MCP1640 LED driver companion for boost topology Used in: Smart Lighting and LED Drivers TEMT6000 Ambient light sensor for feedback control Used in: Smart Lighting and LED Drivers MCP73123 Li-ion battery charger IC companion Used in: Battery Management Systems MCP3421 16-bit ADC for precision battery monitoring Used in: Battery Management Systems MCP23S17 I/O expander for additional user interface pins Used in: Home Appliance Control MTCH1010 Dedicated capacitive touch controller for simpler designs Used in: Capacitive Touch User Interface MCP2221 USB-to-I2C bridge for development and debugging Used in: Capacitive Touch User Interface
What is the program memory size of PIC18F05Q40-E/ST?
The PIC18F05Q40-E/ST has 32KB of Flash program memory (organized as 32K x 8) according to the Microchip product listing on DigiKey. It also includes 2KB of RAM and 512 bytes of EEPROM for non-volatile data storage. This memory configuration is suitable for mid-complexity embedded applications including sensor fusion, motor control loops, and IoT edge nodes.
What is the maximum operating frequency of PIC18F05Q40-E/ST?
The PIC18F05Q40-E/ST operates at up to 64MHz maximum CPU clock frequency. Combined with the PIC18 instruction set architecture, this delivers approximately 16 MIPS (million instructions per second) of throughput. The wide 1.8V to 5.5V supply range supports both battery-powered and 5V-rail designs across the full speed range.
What ADC does PIC18F05Q40-E/ST integrate?
The PIC18F05Q40-E/ST integrates a 12-bit ADC with Computation (ADC2) per the Microchip datasheet. ADC2 features hardware averaging, oversampling, threshold comparison, and automated accumulation, offloading signal-conditioning tasks from the CPU. This is a significant advantage over standard ADCs in time-critical sensor applications.
Does PIC18F05Q40-E/ST have DAC and PWM peripherals?
Yes. The PIC18F05Q40-E/ST integrates two 8-bit DAC channels and 16-bit PWM outputs according to the Microchip product page. The dual DACs enable dual analog setpoints or waveform synthesis, while the 16-bit PWM provides high-resolution control for motor drives, LED dimming, and digital power conversion. These peripherals reduce external component count.
What package does PIC18F05Q40-E/ST come in?
The PIC18F05Q40-E/ST is housed in a 14-pin TSSOP (Thin Shrink Small Outline Package). The /ST suffix in the part number specifically denotes the 14-TSSOP variant. The same silicon is also available in other packages under different MPN suffixes for layout flexibility.
Where can I buy PIC18F05Q40-E/ST online?
The PIC18F05Q40-E/ST is in stock at major distributors including DigiKey, Mouser, LCSC, and Xecor as of 2026-09-26. DigiKey lists the part with same-day shipping for low quantities. Pricing for single units starts around $1.45, with quantity breaks at 10, 100, 500, and 1000 pieces yielding progressively lower unit costs reaching approximately $0.98 at 1000-piece volumes.
What is the lead time for PIC18F05Q40-E/ST?
Distributors such as DigiKey list the PIC18F05Q40-E/ST with 'ships today' availability for small quantities as of 2026-09-26. For production volumes of 1000+ units, LCSC and Mouser typically maintain factory-direct stock. Lead time for manufacturer-direct orders is generally 8-12 weeks, but distributor inventory covers most prototype and small-production needs.
Is PIC18F05Q40-E/ST in stock at distributors?
Yes, the PIC18F05Q40-E/ST is currently in stock at LCSC with 32KB Flash and 14-TSSOP package configuration as confirmed on 2026-09-26. DigiKey and Mouser also list the part with active inventory. Stock levels fluctuate, so check distributor websites for the most current quantity available before placing production orders.
What is the price of PIC18F05Q40-E/ST at quantity 100?
The PIC18F05Q40-E/ST prices approximately $1.18 per unit at 100-piece quantity as of 2026-09-26 across major distributors. LCSC lists competitive pricing at $1.3332 for single-unit purchases with steeper volume discounts at higher quantities. For 1000-piece volumes, unit cost drops to approximately $0.98, making it cost-effective for production runs.
What is the difference between PIC18F05Q40 and PIC18F04Q40?
The PIC18F04Q40 has 16KB of Flash while the PIC18F05Q40 has 32KB of Flash, with both sharing the same peripheral set, CPU core, and TSSOP package options. The /04 variant suits cost-sensitive applications with smaller firmware footprints, while the /05 variant supports larger applications requiring more program memory. Both are pin-compatible in the 14-TSSOP package.
When should I choose PIC18F05Q40-E/ST over PIC18F04Q40?
Choose the PIC18F05Q40-E/ST when your application requires more than 16KB of Flash program memory. The 32KB Flash in PIC18F05Q40 doubles the available code space, supporting more feature-rich firmware, larger protocol stacks, or additional application modules. If your firmware fits within 16KB, the PIC18F04Q40 offers equivalent peripherals at lower cost.
What is the best drop-in replacement for PIC18F05Q40-E/ST?
The PIC18F04Q40-I/ST serves as a direct drop-in replacement for the PIC18F05Q40-E/ST when 16KB Flash is sufficient, sharing the same 14-TSSOP package and peripheral set per Microchip product datasheets. The PIC18F05Q40-E/SL offers identical silicon in a wider SOIC-14 package for applications preferring through-hole-style SOIC for easier hand prototyping and rework.
Can PIC18F05Q40-I/ST replace PIC18F05Q40-E/ST?
The PIC18F05Q40-I/ST (industrial temperature grade -40C to +85C) cannot fully replace the PIC18F05Q40-E/ST (extended temperature grade -40C to +125C) because of the temperature range difference. However, the I-grade part is interchangeable for commercial and industrial applications within -40C to +85C. For automotive or extreme-thermal designs, the E-grade is required.
Where to download PIC18F05Q40-E/ST datasheet PDF?
The official PIC18F05Q40-E/ST datasheet is available from Microchip's website at microchip.com in PDF format. The datasheet covers electrical specifications, peripheral operation, instruction set, and programming guidelines. According to the Microchip product page, the PIC18F04Q40/PIC18F05Q40 family datasheet document number is referenced in the product documentation section.
Where to find PIC18F05Q40-E/ST pinout for 14-TSSOP?
The PIC18F05Q40-E/ST pinout for the 14-TSSOP package is shown in the device datasheet available on Microchip's website. Standard TSSOP-14 pinout includes VDD, VSS, MCLR, OSC pins, and multi-function I/O pins with Peripheral Pin Select remapping capability. Pin 1 is identified by the dot marker on the TSSOP package top surface.

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

Selection Guide

Choose the PIC18F05Q40-E/ST when your application needs 32KB of Flash program memory in a compact 14-TSSOP package and operates across extended -40C to +125C temperature range. The 14-TSSOP footprint enables slim and compact PCB layouts ideal for space-constrained designs. Select the PIC18F04Q40-I/ST instead if your firmware fits within 16KB Flash and operates within industrial -40C to +85C range, saving cost. Choose the PIC18F05Q40-E/SL for the same 32KB memory density but in the wider SOIC-14 package, preferred for hand prototyping, harsh vibration environments, and high-volume THT-friendly applications. The PIC18F05Q40-I/ST trades extended temperature for industrial temperature, suitable for consumer and commercial deployments not requiring 125C operation.

Comparison with Alternatives

Parameter This Product PIC18F04Q40-I/ST PIC18F05Q40-E/SL PIC18F05Q40-I/ST
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 14-TSSOP 14-TSSOP - same 14-SOIC - different footprint, same pin count 14-TSSOP - same
Program Memory (Flash) 32 KB 16 KB 32 KB 32 KB
RAM 2 KB 1 KB 2 KB 2 KB
EEPROM 512 bytes 256 bytes 512 bytes 512 bytes
Maximum CPU Speed 64 MHz 64 MHz 64 MHz 64 MHz
Supply Voltage 1.8V to 5.5V 1.8V to 5.5V 1.8V to 5.5V 1.8V to 5.5V
Temperature Range -40C to +125C (Extended) -40C to +85C (Industrial) -40C to +125C (Extended) -40C to +85C (Industrial)
ADC 12-bit ADC2 12-bit ADC2 12-bit ADC2 12-bit ADC2
Approx. Unit Price (qty 100) $1.18 $1.05 $1.20 $1.15

Key Differentiators

  • Memory density in compact TSSOP-14 package (vs PIC18F04Q40-I/ST)
  • Extended temperature grade support (vs PIC18F05Q40-I/ST)
  • 12-bit ADC2 with Computation capability (vs PIC18F05Q40-E/SL)

Design Notes

Place decoupling capacitors (100nF ceramic + 10uF bulk) as close as possible to VDD/VSS pins (pins 14 and 7) on the 14-TSSOP package. PPS allows remapping of digital peripherals, so consider pin assignment flexibility during schematic capture to optimize PCB routing. Keep analog signal traces short and away from high-frequency digital signals to minimize ADC noise coupling. The 14-TSSOP's small 1.0mm body width requires careful PCB pad design for reliable soldering.

The PIC18F05Q40-E/ST operates from 1.8V to 5.5V, supporting both single-cell Li-ion battery and 5V-rail designs. The wide supply range enables direct connection to battery stacks without additional regulation. Use the ADC2 with Computation's hardware averaging to reduce active CPU time during sensor reads, allowing longer sleep-mode periods for battery-powered applications. Estimated: at 32MHz with all peripherals active, typical current consumption is approximately 8-12mA, dropping to sub-microamp levels in sleep.

The MCLR pin (pin 4) is shared with RA3 and requires proper configuration in the configuration words to function correctly. Ensure unused I/O pins are configured as outputs and tied low, or as inputs with internal pull-ups enabled to minimize current consumption. The ADC2 peripheral uses VDD as reference by default - for precision measurements, consider using an external reference voltage via the VREF+ pin function. Always include proper ESD protection on externally accessible pins.

When using the TSSOP-14 footprint, ensure the PCB pad dimensions match the recommended land pattern in the Microchip package specification document. The exposed thermal pad (if present in variant) should be soldered to a ground plane for thermal dissipation. PPS flexibility means designers can place critical signals on convenient pin locations, but maintain short traces for high-speed signals like crystal oscillator connections (pins 8/9 for RA6/RA7 in XT mode).

Compliance Information

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

RoHS compliant per Microchip product documentation. Lead-free and halogen-free per Microchip environmental compliance statements. AEC-Q100 qualification not standard for this part - check PIC18F-Q40 automotive variants if required.

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

Related Searches

PIC18F05Q40-E/ST PIC18F05Q40 datasheet Microchip PIC18F05Q40 32KB Flash 8-bit MCU TSSOP PIC18F05Q40 vs PIC18F04Q40 PIC18F05Q40 TSSOP-14 pinout buy PIC18F05Q40-E/ST online PIC18F05Q40-E/ST price quote PIC18F05Q40 IoT sensor node PIC18F-Q40 motor control PIC18F05Q40 drop-in replacement MPLAB XC8 PIC18F05Q40 what is 12-bit ADC2 with computation

Related Components & Terms

Microchip Technology PIC18F05Q40 PIC18F05Q40-E/ST PIC18F04Q40-I/ST PIC18F05Q40-E/SL PIC18F05Q40-I/ST PIC18-Q40 family 8-bit microcontroller MCU PIC18 architecture Flash memory EEPROM 12-bit ADC2 8-bit DAC 16-bit PWM Direct Memory Access (DMA) Configurable Logic Cells (CLC) Peripheral Pin Select (PPS) TSSOP-14 RoHS MPLAB XC8 MPLAB X IDE IoT sensor node BLDC motor control UART SPI I2C
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