PIC18F06Q40-E/SL - 8-bit 64MHz 64KB Flash MCU | Microchip
MPN: PIC18F06Q40-E/SL ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $0.87 | $0.87 |
| 10 | $0.78 | $7.80 |
| 100 | $0.69 | $69.00 |
| 500 | $0.6 | $300.00 |
| 1,000 | $0.55 | $550.00 |
PIC18F06Q40-E/SL Overview
An 8-bit PIC microcontroller is a compact Harvard-architecture processor that executes a RISC instruction set, providing deterministic timing and simple peripheral integration for embedded control. Within the broader semiconductor hierarchy, PIC MCUs sit under microcontrollers (MCUs) -> embedded processors -> digital ICs. The PIC18 sub-family specifically targets applications requiring more computational headroom, larger memory, and richer analog peripherals than PIC16 devices, while retaining the small pin-count and ease-of-use advantages of the PIC ecosystem.
Key specifications include 64 MHz maximum CPU clock (16 MIPS performance), 12-bit ADC with computation features for automated averaging and threshold detection, dual 8-bit DAC outputs for reference generation or analog biasing, 16-bit PWM with complementary outputs, and 5V/3.3V operation across an extended industrial temperature range. The 14-pin SOIC footprint provides a compact, hand-solderable package suitable for both prototype and volume production.
Typical applications include closed-loop sensor conditioning, LED lighting drivers, low-end motor control (small DC fans, BLDC commutation assistance), appliance user-interface controllers, battery-powered IoT sensor nodes, and digital power-supply housekeeping. The integrated ADC2 and DAC peripherals enable single-chip sensor-signal chains with minimal external analog circuitry.
When designing with this part, ensure the configuration words are correctly set for oscillator source and code protection, and that the unused pins are explicitly configured as outputs or inputs with pull-ups to minimize current consumption. The 64 KB Flash and 4 KB SRAM are well-suited to mid-size firmware stacks using MPLAB XC8 and the MPLAB Code Configurator peripheral libraries.
Drop-in alternatives for PIC18F06Q40-E/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 PIC18F06Q40-E/SL (same form factor and footprint) — differing in PWM, Package, ADC, Operating Temperature, DAC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F04Q40-E/SL
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F05Q40-E/SL
✅ Drop-In✓ In Stock
$0.74 / Unit
View Datasheet →PIC18F06Q40T-I/SL
✅ Drop-In✓ In Stock
$1.1 / Unit
View Datasheet →PIC18F05Q40-E/SL
✅ Drop-In✓ In Stock
$0.74 / Unit
View Datasheet →PIC18F06Q41-E/SL
✅ Drop-In✓ In Stock
$0.92 / Unit
View Datasheet →PIC18F06Q40-E/SL Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit RISC) |
| Maximum CPU Frequency | 64 MHz |
| Program Memory (Flash) | 64 KB |
| Data Memory (SRAM) | 4 KB |
| EEPROM | 512 bytes |
| ADC | 12-bit with Computation (ADC2) |
| DAC | 2 x 8-bit DAC |
| PWM | 16-bit PWM modules |
| Communication Peripherals | I2C / SPI / UART |
| Package | 14-pin SOIC (SL) |
| Mounting Type | Surface Mount |
| Operating Temperature | -40C to +125C (Extended, '-E') |
| RoHS Status | Compliant |
| Instruction Set | PIC18 enhanced instruction set |
| Family | PIC18-Q40 |
PIC18F06Q40-E/SL Pin Configuration
| Pin 1 | RA2 — Digital I/O / analog input (DAC1VOUT1 reference) |
| Pin 2 | RA3 — Digital I/O / analog input |
| Pin 3 | RA4 — Digital I/O / analog input |
| Pin 4 | RA5 — Digital I/O / analog input |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RA0 — Digital I/O / analog input (DAC1VOUT0 reference) |
| Pin 7 | RA1 — Digital I/O / analog input |
| Pin 8 | VDD — Positive supply voltage |
| Pin 9 | MCLR — Master Clear (reset) input, active-low |
| Pin 10 | RC0 — Digital I/O / SOSCO crystal driver |
| Pin 11 | RC1 — Digital I/O / SOSCI crystal driver |
| Pin 12 | RC2 — Digital I/O |
| Pin 13 | RC3 — Digital I/O / SCL1 I2C clock |
| Pin 14 | RC4 — Digital I/O / SDA1 I2C data |
Typical Applications
PIC18F06Q40-E/SL is suitable for 6 applications: Closed-Loop Sensor Signal Conditioning, LED Lighting Dimming Controllers, Small DC Motor and Fan Control, Appliance User Interface Controllers, Battery-Powered IoT Sensor Nodes, Digital Power Supply Housekeeping.
Closed-Loop Sensor Signal Conditioning
The PIC18F06Q40-E/SL is well matched to closed-loop sensor-conditioning front ends. Its 12-bit ADC with Computation (ADC2) performs hardware-averaged oversampling, while the two 8-bit DACs generate bias or setpoint voltages. With 64 MHz (16 MIPS) throughput, the PIC18 core closes proportional-integral loops in software while the peripherals handle signal capture. Per Microchip application notes, pairing ADC2 with the internal voltage reference and op-amp peripherals yields a single-chip Wheatstone-bridge conditioner for strain-gauge or thermistor bridges with sub-0.5% accuracy.
Recommended
LED Lighting Dimming Controllers
The PIC18F06Q40-E/SL drives multi-channel LED dimming via its 16-bit PWM modules with complementary outputs and configurable dead-band. At 64 MHz, PWM resolution exceeds 12 bits at typical 1 kHz lighting frequencies, eliminating visible flicker. The dual 8-bit DACs provide 0-10 V analog dimming outputs for external LED drivers. According to Microchip lighting application notes, this combination supports DALI-2 or 0-10 V dimming interfaces in a single MCU without external PWM generators.
Recommended
Small DC Motor and Fan Control
For small DC motors, fans, and low-power BLDC pumps, the PIC18F06Q40-E/SL integrates the timers and 16-bit PWM channels required for variable-frequency or fixed-frequency commutation. The 12-bit ADC2 samples back-EMF or current-sense signals for sensorless control loops, while ECCP/PWM peripherals generate complementary drive signals with programmable dead-time. Per Microchip motor-control documentation, a 14-pin SOIC PIC18F-Q40 device can run a 6-step or sinusoidal BLDC algorithm for sub-50 W motors.
Recommended
Appliance User Interface Controllers
The PIC18F06Q40-E/SL serves as the user-interface controller in white-goods and small appliances, driving segmented LCDs (via PWM or charge-pump), capacitive touch sensing, and UART communication with the main appliance MCU. With 64 KB Flash and 4 KB SRAM, it comfortably runs state-machine-based UI firmware plus low-power capacitive-touch libraries. According to Microchip mTouch documentation, the ADC2 with computation integrates capacitive-sensing scanning without external touch ICs.
Recommended
Battery-Powered IoT Sensor Nodes
For battery-powered IoT sensor endpoints, the PIC18F06Q40-E/SL operates from 1.8-5.5 V with nanoWatt sleep modes retaining RAM down to sub-microamp currents. The 12-bit ADC2 wakes the core on threshold-crossing events, enabling duty-cycled sensor nodes that spend most of their time asleep. Per Microchip low-power documentation, integrating UART/I2C/SPI radios (sub-GHz or BLE modules) with the PIC18-Q40 reduces total BOM to under 10 components for a connected sensor beacon.
Recommended
Digital Power Supply Housekeeping
The PIC18F06Q40-E/SL acts as a digital housekeeping controller in AC-DC or DC-DC converters, measuring output voltage via 12-bit ADC2 and trimming references through the dual 8-bit DACs. With 16-bit PWM and ECCP, it can also implement a non-isolated auxiliary power control loop. According to Microchip power-supply reference designs, this PIC18-Q40 family integrates sufficient peripherals for full digital housekeeping without requiring an external supervisor IC.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F06Q40-E/SL — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F04Q40-E/SL | PIC18F05Q40-E/SL | PIC18F06Q40T-I/SL | PIC18F06Q41-E/SL |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 14-pin SOIC (SL) | 14-pin SOIC (SL) - same | 14-pin SOIC (SL) - same | 14-pin SOIC (SL) - same | 14-pin SOIC (SL) - same |
| Core / Architecture | PIC18 8-bit RISC | PIC18 8-bit RISC | PIC18 8-bit RISC | PIC18 8-bit RISC | PIC18 8-bit RISC |
| Flash Program Memory | 64 KB | 32 KB (-50%) | 48 KB (-25%) | 64 KB (same) | 64 KB (same) |
| SRAM | 4 KB | 4 KB | 4 KB | 4 KB | 4 KB |
| EEPROM | 512 bytes | 512 bytes | 512 bytes | 512 bytes | 512 bytes |
| ADC | 12-bit ADC2 (with Computation) | 12-bit ADC2 | 12-bit ADC2 | 12-bit ADC2 | 12-bit ADC2 (refined) |
| DAC | 2 x 8-bit DAC | 2 x 8-bit DAC | 2 x 8-bit DAC | 2 x 8-bit DAC | 2 x 8-bit DAC |
| Temperature Range | -40C to +125C (Extended) | -40C to +125C (Extended) | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +125C (Extended) |
| Packaging Format | Tube | Tube | Tube | Tape & Reel | Tube |
Key Differentiators
- Largest Flash in the Q40 14-pin SOIC family (vs PIC18F05Q40-E/SL)
- Double the Flash of the smaller Q40 alternative (vs PIC18F04Q40-E/SL)
- Extended -40C to +125C temperature range (vs PIC18F06Q40T-I/SL)
Design Notes
Estimated: supply-current budget for a sensor-node firmware at 64 MHz is approximately 8-12 mA active, with nanoWatt sleep currents under 1 uA retaining RAM. Place a 100 nF decoupling capacitor within 3 mm of the VDD pin and add a 10 uF bulk capacitor near the IC. For battery-powered designs using the internal 64 MHz HFINTOSC, switch to the 31 kHz LFINTOSC during sleep to achieve the lowest quiescent current per Microchip PIC18-Q40 family datasheet DC characteristics.
Estimated: in the 14-pin SOIC layout, keep the ICSP/PGD/PGC traces short (under 50 mm) and away from switching power nodes to prevent programming glitches. Place the MCLR pull-up resistor (typically 10 kOhm) close to the pin and add a 100 nF cap to ground for ESD suppression. When using the analog ADC channels, route analog ground separately from digital ground and join them at a single point near the IC's VSS pin to minimize ADC offset errors.
Do not leave unused PIC18F06Q40-E/SL pins floating - configure them as outputs or inputs with internal pull-ups in firmware. Floating pins can draw extra supply current and inject noise into the analog ADC. According to Microchip PIC18 documentation, the configuration words must be set explicitly for oscillator source, watchdog, code protection, and brown-out voltage before the device will run user code; leaving configuration words in their default state may prevent proper startup in noisy environments.
Compliance Information
RoHS and REACH compliant per Microchip product page and DigiKey distributor listing. Not AEC-Q100 qualified - automotive designs should consult Microchip for AEC-Q100 qualified Q40 variants if available.