PIC18F05Q40T-I/ST - 32KB Flash 8-bit MCU, 64MHz | Microchip
MPN: PIC18F05Q40T-I/ST ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.92 | $1.92 |
| 10 | $1.74 | $17.40 |
| 100 | $1.52 | $152.00 |
| 500 | $1.34 | $670.00 |
| 1,000 | $1.18 | $1,180.00 |
PIC18F05Q40T-I/ST Overview
A microcontroller (MCU) is a single-chip computer containing a CPU, memory (Flash/SRAM/EEPROM), and programmable peripherals. The PIC18 family is Microchip's mainstream 8-bit architecture, sitting between the smaller PIC16 and the 16-bit dsPIC33/PIC24 families in the broader PIC taxonomy (PIC16 -> PIC18 -> PIC24/dsPIC -> PIC32). The Q40 sub-family specifically targets real-time control and sensor applications through its hardware-based CIP blocks, reducing CPU overhead and improving deterministic response.
Key differentiating features include 12 I/O pins with peripheral pin select (PPS), 16-bit PWM resolution suitable for digital power and motor control, and zero-cross detection for TRIAC-based solid-state relay control. The integrated 12-bit ADC2 with computation automates averaging, oversampling, and threshold detection, freeing the CPU from intensive math routines. Hardware CLCs allow glue-logic consolidation, replacing external gates on the PCB.
Typical applications include LED lighting, BLDC motor control, sensor signal conditioning, capacitive touch sensing, real-time control loops, and low-cost consumer/IoT devices. In particular, the combination of 16-bit PWM, DMA, and zero-cross detection makes the Q40 family attractive for digital dimming and TRIAC-controlled AC loads.
When designing with this device, ensure the ICSP programming pins (PGD/PGC) are not pulled low at reset. Decouple VDD/VSS with 100nF plus bulk capacitance, and follow Microchip AN2686 (Configuring the PIC18 Q40 Family) for oscillator and PPS settings. The TSSOP-14 footprint has a thermal resistance around 100 C/W, so high-current GPIO toggling should be balanced against junction temperature rise.
Drop-in alternatives for PIC18F05Q40T-I/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 PIC18F05Q40T-I/ST (same form factor and footprint) — differing in ADC, DAC, Package, PWM, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F05Q40-E/ST
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$0.98 / Unit
View Datasheet →PIC18F04Q40-I/ST
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$0.82 / Unit
View Datasheet →PIC18F05Q40T-I/ST Maximum Ratings & Electrical Characteristics
| Architecture | PIC18 8-bit Harvard |
| Core | PIC18 |
| Program Memory (Flash) | 32 KB (32K x 8) |
| SRAM | 2 KB |
| EEPROM | 512 bytes |
| Maximum CPU Frequency | 64 MHz |
| Operating Voltage (VDD) | 1.8 V to 5.5 V |
| I/O Pins | 12 |
| ADC | 12-bit ADC with Computation (ADC2) |
| DAC | 2x 8-bit DAC |
| PWM | 16-bit PWM (multiple channels) |
| Package | 14-pin TSSOP (ST) |
| Operating Temperature | -40C to +85C (industrial) |
| Mounting Type | Surface Mount (Tape & Reel) |
| RoHS Status | Compliant |
PIC18F05Q40T-I/ST Pin Configuration
| Pin 1 | RA5 — Bidirectional I/O with interrupt, analog input |
| Pin 2 | RA4 — Bidirectional I/O with interrupt, analog input |
| Pin 3 | RA3 — Bidirectional I/O with interrupt, analog input/MCLR |
| Pin 4 | RA2 — Bidirectional I/O with interrupt, analog input |
| Pin 5 | RA1 — Bidirectional I/O with interrupt, analog input/DAC1 |
| Pin 6 | RA0 — Bidirectional I/O with interrupt, analog input/DAC2 |
| Pin 7 | VSS — Ground reference |
| Pin 8 | RA7 — Bidirectional I/O with interrupt, oscillator |
| Pin 9 | RA6 — Bidirectional I/O with interrupt, oscillator |
| Pin 10 | RB5 — Bidirectional I/O with interrupt, ICSPDAT |
| Pin 11 | RB4 — Bidirectional I/O with interrupt, ICSPCLK |
| Pin 12 | RB7 — Bidirectional I/O with interrupt, programming |
| Pin 13 | RB6 — Bidirectional I/O with interrupt, programming |
| Pin 14 | VDD — Positive supply voltage |
Typical Applications
PIC18F05Q40T-I/ST is suitable for 7 applications: LED Lighting and Dimming Control, BLDC Motor Control (Sensorless), Capacitive Touch Sensing, Industrial Sensor Signal Conditioning, Solid-State Relay (TRIAC Control), IoT Sensor Nodes and Edge Devices, Consumer Appliance User Interfaces.
LED Lighting and Dimming Control
The PIC18F05Q40T-I/ST fits LED lighting and dimming designs because its 16-bit PWM delivers sub-percent dimming resolution while the integrated zero-cross detection handles TRIAC phase-angle dimming. The 1.8V-5.5V supply range lets a single MCU interface both 3.3V LED drivers and 5V analog front-ends. Hardware CLCs combine PWM outputs with fault signals without CPU latency. With 32KB Flash, lighting profiles and DMX-style control tables fit comfortably, while the 12-bit ADC2 monitors output current for closed-loop brightness regulation. The 64MHz CPU executes commutation and thermal foldback routines within microseconds. The TSSOP-14 footprint (5.0mm x 4.4mm) keeps board area small enough for MR16 retrofit lamps and ceiling fixtures alike.
Recommended
BLDC Motor Control (Sensorless)
The PIC18F05Q40T-I/ST suits low-power BLDC motor control because the 16-bit PWM with complementary outputs and programmable dead-time directly drives external gate drivers for 3-phase bridges. The 12-bit ADC2 with computation offloads back-EMF zero-cross sampling and threshold detection via DMA, freeing the CPU for commutation state machines. At 64MHz, the device executes Field-Oriented Control (FOC) math for small fans and pumps in real time. The dual 8-bit DACs can drive analog references for current-loop compensation. Zero-cross detection hardware assists sensorless startup routines. The TSSOP-14 footprint plus 12 I/O pins leaves enough headroom for Hall inputs, fault flags, and a UART debug port on a compact motor PCB.
Recommended
Capacitive Touch Sensing
The PIC18F05Q40T-I/ST supports mTouch capacitive touch buttons and sliders through its 12-bit ADC2 with hardware oversampling and the integrated CLCs that combine comparator and timer events without CPU intervention. The 64MHz clock yields fast scan rates suitable for water-tolerant touch designs and proximity sensing. With 32KB Flash, designers can implement custom haptic feedback profiles and gesture decoding locally. The 1.8V-5.5V VDD range suits battery-powered touch remotes. DMA enables continuous scanning of multiple channels without interrupting the main loop. The 14-pin TSSOP footprint fits behind glass or plastic overlays in appliance user interfaces and consumer electronics.
Recommended
Industrial Sensor Signal Conditioning
The PIC18F05Q40T-I/ST handles industrial sensor signal conditioning thanks to its 12-bit ADC2 with computation (averaging, accumulation, threshold comparisons) plus dual 8-bit DACs for analog trim and excitation. The 1.8V-5.5V supply and industrial -40C to +85C temperature range suit factory floor environments, while the CLCs combine sensor alarms without software polling. With 32KB Flash and 2KB SRAM, designers implement calibration tables and digital filtering (IIR/FIR) locally. PPS assigns peripherals to any I/O, simplifying PCB routing around isolation barriers. The TSSOP-14 package fits in DIN-rail sensor housings where board area is constrained and EMI robustness matters.
Recommended
Solid-State Relay (TRIAC Control)
The PIC18F05Q40T-I/ST is ideal for solid-state relay designs where zero-cross detection of the AC mains synchronizes TRIAC firing to minimize EMI. The 16-bit PWM generates precise phase-angle timing while the 12-bit ADC2 monitors load current for fault detection. The 32KB Flash supports application-specific safety routines and self-test diagnostics. Hardware CLCs combine zero-cross and overcurrent signals into a hardware shutoff path that does not depend on CPU latency. The wide 1.8V-5.5V supply allows the MCU to share bias rails with optocoupler-driven gate circuitry. TSSOP-14 keeps the PCB footprint under 30mm squared for SSR modules mounted on DIN rails.
Recommended
IoT Sensor Nodes and Edge Devices
The PIC18F05Q40T-I/ST powers battery-friendly IoT sensor edge nodes because of its 1.8V-5.5V supply, sleep currents in the microamp range (per Q40 family datasheet), and the DMA engine that lets peripherals run while the CPU sleeps. The 12-bit ADC2 samples sensors directly, while dual 8-bit DACs drive analog actuators. UART, SPI, and I2C peripherals with PPS connect radios and EEPROMs without external glue logic. With 32KB Flash, devices implement local decision logic and store configuration without external memory. The TSSOP-14 footprint fits coin-cell powered PCB modules, and 64MHz operation ensures responsive event handling.
Recommended
Consumer Appliance User Interfaces
The PIC18F05Q40T-I/ST drives consumer appliance UIs - washing machine panels, microwave keypads, and air-conditioner controllers - because of its combination of mTouch capacitive sensing, 16-bit PWM for backlight dimming, and dual 8-bit DACs for audio cues. The 1.8V-5.5V supply handles fluctuating rails from rectified mains adapters. With 32KB Flash, designers implement multi-language menu state machines and diagnostic logs locally. DMA offloads display refresh routines, while CLCs combine button events without CPU latency. The TSSOP-14 footprint fits behind appliance front panels where space is at a premium and operating temperatures can exceed room ambient.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F05Q40T-I/ST — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F05Q40T-I/SL | PIC18F05Q40-E/ST | PIC18F04Q40-I/ST | PIC18F05Q40-I/SL |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 14-pin TSSOP (ST) | 14-pin SOIC (SL) - different footprint | 14-pin TSSOP (ST) - same | 14-pin TSSOP (ST) - same | 14-pin SOIC (SL) - different footprint |
| Flash Memory | 32 KB | 32 KB - same | 32 KB - same | 16 KB - smaller | 32 KB - same |
| SRAM | 2 KB | 2 KB - same | 2 KB - same | 1 KB - smaller | 2 KB - same |
| EEPROM | 512 bytes | 512 bytes - same | 512 bytes - same | 512 bytes - same | 512 bytes - same |
| Maximum CPU Frequency | 64 MHz | 64 MHz - same | 64 MHz - same | 64 MHz - same | 64 MHz - same |
| Operating Voltage | 1.8V to 5.5V | 1.8V to 5.5V - same | 1.8V to 5.5V - same | 1.8V to 5.5V - same | 1.8V to 5.5V - same |
| Operating Temperature | -40C to +85C (industrial) | -40C to +85C - same | -40C to +125C (extended) | -40C to +85C - same | -40C to +85C - same |
| ADC / DAC / PWM | 12-bit ADC2 + 2x 8-bit DAC + 16-bit PWM | Same ADC/DAC/PWM block | Same ADC/DAC/PWM block | Same ADC/DAC/PWM block | Same ADC/DAC/PWM block |
Key Differentiators
- Dual 8-bit DACs integrated on-chip (vs PIC18F04Q40-I/ST)
- 32KB Flash / 2KB SRAM vs lower Flash variant (vs PIC18F04Q40-I/ST)
- Industrial -40C to +85C temperature grade (vs PIC18F05Q40T-I/ST vs same F05 family)
Design Notes
Estimated: Decouple VDD/VSS with a 100nF X7R ceramic capacitor placed within 5mm of pins 7 (VSS) and 14 (VDD). For noise-sensitive ADC2 sampling at 12-bit resolution, add a 10uF bulk capacitor plus a ferrite bead on the analog supply rail. The TSSOP-14 package has a thermal resistance of approximately 100 C/W - power dissipation at 64MHz is roughly 25mW, leaving ample margin for industrial temperature operation without heatsinking.
Keep the ICSP programming pins (RB4/RB5) accessible - they share pins with general I/O and must not be pulled low at reset. Per Microchip Q40 layout guidance, route the analog input traces away from switching PWM outputs to avoid ADC2 sampling crosstalk. The exposed pad of the TSSOP-14 is internally tied to VSS; ensure the land pattern provides at least 4 vias to the ground plane for thermal and electrical conductivity. Leave room for the MCLR pull-up resistor near pin 3.
Do not exceed 5.5V on any pin including MCLR (pin 3) - use a series resistor or clamping diode if the supply can overshoot. The 12-bit ADC2 requires the acquisition time to be programmed per the Q40 datasheet (TBYTE bit in ADCON), or accuracy will degrade. The PIC18F05Q40T-I/ST variant ships in tape-and-reel ('T' suffix); for prototype builds order the PIC18F05Q40-I/SL or PIC18F05Q40-E/ST in tube or tray packaging. PPS assignments must be unlocked via the PPSLOCK register sequence before changes take effect.
Compliance Information
RoHS and REACH compliance per Microchip product environmental compliance database. Industrial temperature grade -40C to +85C; not AEC-Q100 qualified (choose AEC-Q100 variants for automotive).