PIC18F04Q40T-I/ST - 8-Bit 64MHz 16KB FLASH MCU | Microchip | 14-TSSOP
MPN: PIC18F04Q40T-I/ST ✓ NakahandaPIC18F04Q40T-I/ST Ulas
A PIC microcontroller is a compact, low-cost, programmable integrated circuit that combines a CPU core, non-volatile program memory (FLASH), volatile data memory (SRAM), and a rich set of on-chip peripherals (ADC, timers, communication interfaces). PIC microcontrollers sit within the microcontroller family, which itself is a sub-category of microcomputers and, more broadly, embedded processors. The PIC18 architecture is Microchip's enhanced 8-bit core with a 16-bit instruction word, supporting linear memory access and a C-friendly instruction set, making it suitable for both assembly and C development using MPLAB X IDE and the XC8 compiler.
Key features of the PIC18F04Q40T-I/ST include the 12-bit ADCC with automated Capacitive Voltage Divider (CVD) techniques for advanced capacitive touch sensing, averaging, filtering, oversampling, and threshold comparison. It also integrates two 8-bit DAC modules, a 16-bit Pulse-Width Modulation (PWM) peripheral with multiple independent outputs, Direct Memory Access (DMA), and Peripheral Pin Select (PPS) for flexible signal routing. Communication interfaces include UART, SPI, and I2C, and the device supports a wide operating voltage range with ultra-low-power sleep modes.
The PIC18-Q40 family combines high-performance analog peripherals with deterministic real-time control capability. The PPS feature allows remapping of digital peripheral functions onto a wide range of I/O pins, simplifying PCB layout. DMA offloads data movement from the CPU, improving throughput for ADC, PWM, and communication tasks, which is particularly valuable in motor control, lighting, and power-conversion loops.
Typical applications for the PIC18F04Q40T-I/ST include capacitive touch user interfaces, LED lighting control, sensor signal conditioning, low-cost motor control, and IoT edge nodes. The integrated ADCC with CVD is optimized for touch buttons, sliders, and proximity sensing, removing the need for an external touch controller.
When designing with this device, allocate sufficient decoupling (100nF plus 1uF bulk) close to VDD and ensure unused I/O pins are configured as outputs low or inputs with internal pull-ups disabled to minimize current draw. PPS mappings must be unlocked before reprogramming on each reset to avoid lockout conditions.
Mga alternatibo na pwedeng ilagay na PIC18F04Q40T-I/ST — parehas na package, pin-to-pin na katugmang. Hindi kasama ang mga bahagi ng iba't-ibang package na nangangailangan ng pagpapaayos ng PCB.
Variante sa Seri na ito
Katulad na modelo sa serye na katugma sa pagpasok PIC18F04Q40T-I/ST (parehas na form factor at footprint) — pagkakaiba sa DAC, PWM, ADC, Mounting Type, SRAM.
PIC18F04Q40-I/ST
✅ Drop-InMagkontak para sa presyo
Tingnan ang Datasheet →PIC18F05Q40T-I/ST
✅ Drop-In ⚠️ Mga Talaan Hindi NaiwerikmoMagkontak para sa presyo
Tingnan ang Datasheet →PIC18F04Q40T-I/REB
✅ Drop-In ⚠️ Mga Talaan Hindi Naiwerikmo📋 Alternatibo na Reference (hindi sa katalogo)
PIC18F04Q40T-I/ST Mga Pinakamataas na Rating at Electrical Characteristics
| Core | PIC18 8-bit |
| Instruction Set Architecture | 8-bit data, 16-bit instruction word |
| Maximum CPU Frequency | 64 MHz |
| Program Memory (FLASH) | 16 KB (16K x 8) |
| SRAM | 1 KB |
| EEPROM | 512 bytes |
| ADC | 12-bit ADC with Computation (ADCC) |
| DAC | 2 x 8-bit DAC |
| PWM | 16-bit PWM (multiple outputs) |
| DMA | Yes |
| Peripheral Pin Select (PPS) | Yes |
| Communication Interfaces | UART, SPI, I2C |
| Hanay ng Temperature na Operasyon | -40C to +85C (Industrial) |
| Packhaging | 14-pin TSSOP (ST) |
| Uri ng Pagpapasok | Surface Mount |
| Tindminan RoHS | Compliant |
| Capacitive Touch Support | Yes (ADCC with CVD) |
| Low-Power Modes | Yes (sleep / ultra-low-power) |
Pin Configuration ng PIC18F04Q40T-I/ST
| Pin 1 | RA5/MCLR — RA5 / Master Clear (reset, active low) |
| Pin 2 | RA0 — Port A bit 0 / I/O / analog channel |
| Pin 3 | RA1 — Port A bit 1 / I/O / analog channel |
| Pin 4 | RA2 — Port A bit 2 / I/O / analog channel |
| Pin 5 | RA3 — Port A bit 3 / I/O / analog channel |
| Pin 6 | RA4 — Port A bit 4 / I/O / analog channel |
| Pin 7 | VSS — Ground reference |
| Pin 8 | RA7 — Port A bit 7 / I/O / analog channel |
| Pin 9 | RA6 — Port A bit 6 / I/O / analog channel |
| Pin 10 | RC0 — Port C bit 0 / I/O / analog channel |
| Pin 11 | RC1 — Port C bit 1 / I/O / analog channel |
| Pin 12 | RC2 — Port C bit 2 / I/O / analog channel |
| Pin 13 | RC3 — Port C bit 3 / I/O / analog channel |
| Pin 14 | VDD — Positive supply voltage |
Tipikal na mga Gamit
PIC18F04Q40T-I/ST ay nararapat para sa 6 aplikasyons: Capacitive Touch User Interface, LED Lighting Control, Sensor Signal Conditioning Hub, Low-Cost DC Motor Control, IoT Edge Sensor Node, Small Appliance Control Board.
Capacitive Touch User Interface
The PIC18F04Q40T-I/ST is purpose-built for capacitive touch user interfaces thanks to its integrated 12-bit ADC with Computation (ADCC) and built-in Capacitive Voltage Divider (CVD) engine. The ADCC automates the analog front-end sequencing, oversampling, averaging, and threshold comparison required for reliable touch detection, removing the need for an external touch controller IC. With up to 12 GPIO and PPS routing, the device can drive 4-8 touch buttons or a 2-channel slider on the 14-TSSOP footprint, while 16KB FLASH and 1KB SRAM host debounce, gesture, and proximity-detection firmware. Designers can use Microchip's MPLAB Code Configurator to configure touch channels in minutes, accelerating UI prototyping.
Inirekomenda
LED Lighting Control
The PIC18F04Q40T-I/ST drives multi-channel LED lighting applications with its 16-bit PWM peripheral (multiple independent outputs), DMA offload, and PPS flexibility. The 64MHz CPU core provides up to 16 MIPS, sufficient for color-mixing algorithms and dimming curves. The two 8-bit DACs and 12-bit ADCC enable closed-loop current sensing on high-brightness LEDs, supporting constant-current drivers and white-balance tuning. The 14-TSSOP package fits inside MR16 spots, strip-light controllers, and architectural fixtures where board area is constrained. Low-power sleep modes allow standby current below typical quiescent LED-driver thresholds.
Inirekomenda
Sensor Signal Conditioning Hub
The PIC18F04Q40T-I/ST serves as a sensor-conditioning front-end, digitizing thermistors, photodiodes, RTDs, and strain gauges through its 12-bit ADCC. The hardware oversampling and averaging of the ADCC achieve effective resolution beyond 12 bits when averaging is enabled, improving SNR for low-level sensor signals. PPS lets designers route ADC triggers to timer events or PWM edges for synchronous sampling, eliminating software jitter. DMA channels move ADC results into RAM without CPU intervention, freeing MIPS for calibration, linearization, and I2C/SPI reporting to a host MCU. The 14-TSSOP package fits sensor-puck form factors.
Inirekomenda
Low-Cost DC Motor Control
The PIC18F04Q40T-I/ST's 16-bit PWM with complementary outputs and configurable dead-band is well-suited to brushed-DC and low-voltage 3-phase BLDC motor control. The 64MHz instruction rate delivers a fast control loop, while DMA and PPS keep the ADC-trigger-to-PWM-update latency predictable for smooth torque control. The integrated ADCC supports BEMF zero-cross detection on auxiliary channels. The 14-TSSOP pinout is sufficient for 2-quadrant brushed-DC, small BLDC fans, and vibration motors used in appliances and personal care devices.
Inirekomenda
IoT Edge Sensor Node
In IoT edge nodes, the PIC18F04Q40T-I/ST acts as the local sensor-processing and connectivity-front-end MCU. Its UART/SPI/I2C interfaces connect to wireless modules such as Wi-Fi or LoRa transceivers, while the ADCC digitizes environmental sensors. Low-power sleep modes plus a fast wake-up oscillator allow multi-year battery life on coin cells when paired with event-driven firmware. The 16KB FLASH stores sensor-fusion and security libraries, and PPS keeps pin assignments flexible when board layouts evolve. The 14-TSSOP package supports reflow-compatible miniature sensor pucks.
Inirekomenda
Small Appliance Control Board
The PIC18F04Q40T-I/ST is well suited for compact appliance controllers such as coffee makers, kitchen scales, and humidifiers. Its PWM channels drive heating elements, pumps, and buzzers, while the ADCC reads thermistors and water-level sensors. The integrated CVD supports touch-buttons or sealed-key panels, eliminating mechanical switches that wear out in high-moisture environments. The 14-TSSOP package fits inside tight enclosures, and Microchip's long product-lifecycle support matches typical 7-10 year appliance production runs.
Inirekomenda
Buod ng mga Inirekomendang Produkto
Impormasyon ng Talumpati sa Engineering for PIC18F04Q40T-I/ST — ikabit, gabay sa disenyo, at impormasyon ng pagsunod sa kautusan.
Paunawang Hanapin
Ikabit sa Mga Alternatibo
| Parametro | Ito ang Producto | PIC18F04Q40-I/ST | PIC18F05Q40T-I/ST | PIC18F04Q40T-I/REB |
|---|---|---|---|---|
| Package | 14-TSSOP (ST) | 14-TSSOP (ST) - same | 14-TSSOP (ST) - same | 14-TSSOP (ST) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| FLASH Memory | 16 KB | 16 KB | 32 KB | 16 KB |
| SRAM | 1 KB | 1 KB | 1 KB | 1 KB |
| EEPROM | 512 bytes | 512 bytes | 512 bytes | 512 bytes |
| Maximum CPU Frequency | 64 MHz | 64 MHz | 64 MHz | 64 MHz |
| ADC | 12-bit ADCC | 12-bit ADCC | 12-bit ADCC | 12-bit ADCC |
| PWM | 16-bit multi-output | 16-bit multi-output | 16-bit multi-output | 16-bit multi-output |
| DMA | Yes | Yes | Yes | Yes |
| Carrier | Tape & Reel | Tube | Tape & Reel | Tape & Reel |
Pangunahing mga Pagkakaiba
- Integrated ADCC with CVD eliminates external touch controller (kumpara saPIC16F1825-I/ST)
- DMA offload and PPS flexibility on 14-TSSOP footprint (kumpara saPIC16F15214-I/ST)
- 1KB SRAM at 64MHz for protocol-stack headroom (kumpara saPIC16F18346-I/ST)
Talaan ng Disenyo
Place a 100nF X7R decoupling capacitor as close as possible to the VDD pin (pin 14) on the 14-TSSOP package, with a 1uF to 10uF bulk capacitor on the same supply trace. For low-noise ADCC measurements add an additional ferrite bead or small resistor (10 ohm) between the bulk cap and the MCU VDD to keep switching noise out of the analog rail. Avoid running high-current traces under the IC's exposed thermal pad area, even though the 14-TSSOP does not have a pad - keep the ground return underneath as continuous as possible.
Estimated: when migrating from PIC16F to PIC18F04Q40T-I/ST, do not assume PIC16 register names map 1:1 - the PIC18 LAT register must be used for writes to avoid read-modify-write hazards. PPS peripherals are locked by default after reset; unlock the PPS registers before configuring new mappings, otherwise subsequent writes are silently ignored. The MCLR pin (pin 1) is enabled by default on this family - configure the MCLRE configuration bit low to free the pin as RA5 if reset is unused.
For capacitive-touch applications, route CVD-driven shield traces between adjacent touch channels and keep ground pours at least 5mm away from the touch sensor pads to prevent parasitic capacitance that lowers sensitivity. Use a guard ring driven by the same CVD waveform on the sensor periphery to suppress moisture-induced false triggers. Keep high-frequency digital signals (SPI, PWM) physically separated from touch sensor traces, and avoid 90-degree bends in touch routing - use 45-degree or curved traces.
Estimated: at 64MHz the PIC18F04Q40T-I/ST internal oscillator is suitable for most general-purpose designs, but for UART or SPI communication above 1Mbps, switch to a high-frequency crystal or external clock to keep baud-rate error within 2 percent. The PPS feature allows SPI, UART, and I2C functions to be routed to any PPS-capable pin, simplifying PCB layer count but requiring careful pin-assignment planning to avoid remapping during firmware development.
Impormasyon ng Pagsunod sa Kautusan
RoHS and REACH compliance per Microchip product page. Lead-free matte-tin plating. Industrial temperature grade -40C to +85C. Not AEC-Q100 qualified; for automotive designs consult Microchip automotive part listings.