PIC18F04Q40T-I/ST - 8-Bit 64MHz 16KB FLASH MCU | Microchip | 14-TSSOP
料号: PIC18F04Q40T-I/ST ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 1 | $1.25 | $1.25 |
| 10 | $1.15 | $11.50 |
| 100 | $1.02 | $102.00 |
| 500 | $0.91 | $455.00 |
| 1,000 | $0.83 | $830.00 |
| 2,500 | $0.75 | $1,875.00 |
PIC18F04Q40T-I/ST 概述
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.
直接替换替代料: PIC18F04Q40T-I/ST ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC18F04Q40T-I/ST (相同外形与封装尺寸) ——差异在于 DAC, PWM, ADC, Mounting Type, SRAM.
快速对比工具——选择替代料号进行并排对比:
PIC18F04Q40-I/ST
✅ 直接替换✓ 有现货
$0.82 / 个
查看数据手册 →PIC18F05Q40T-I/ST
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$1.18 / 个
查看数据手册 →PIC18F04Q40T-I/REB
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC18F04Q40T-I/ST 最大额定值与电气特性
| 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 |
| 工作温度范围 | -40C to +85C (Industrial) |
| 封装 | 14-pin TSSOP (ST) |
| 安装类型 | Surface Mount |
| RoHS 状态 | Compliant |
| Capacitive Touch Support | Yes (ADCC with CVD) |
| Low-Power Modes | Yes (sleep / ultra-low-power) |
PIC18F04Q40T-I/ST 引脚配置
| 引脚 1 | RA5/MCLR — RA5 / Master Clear (reset, active low) |
| 引脚 2 | RA0 — Port A bit 0 / I/O / analog channel |
| 引脚 3 | RA1 — Port A bit 1 / I/O / analog channel |
| 引脚 4 | RA2 — Port A bit 2 / I/O / analog channel |
| 引脚 5 | RA3 — Port A bit 3 / I/O / analog channel |
| 引脚 6 | RA4 — Port A bit 4 / I/O / analog channel |
| 引脚 7 | VSS — Ground reference |
| 引脚 8 | RA7 — Port A bit 7 / I/O / analog channel |
| 引脚 9 | RA6 — Port A bit 6 / I/O / analog channel |
| 引脚 10 | RC0 — Port C bit 0 / I/O / analog channel |
| 引脚 11 | RC1 — Port C bit 1 / I/O / analog channel |
| 引脚 12 | RC2 — Port C bit 2 / I/O / analog channel |
| 引脚 13 | RC3 — Port C bit 3 / I/O / analog channel |
| 引脚 14 | VDD — Positive supply voltage |
典型应用
PIC18F04Q40T-I/ST 适用于 6 应用s: 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.
推荐
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.
推荐
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.
推荐
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.
推荐
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.
推荐
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.
推荐
推荐产品汇总
工程参考数据: PIC18F04Q40T-I/ST ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | 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 |
关键差异点
- Integrated ADCC with CVD eliminates external touch controller (对比 PIC16F1825-I/ST)
- DMA offload and PPS flexibility on 14-TSSOP footprint (对比 PIC16F15214-I/ST)
- 1KB SRAM at 64MHz for protocol-stack headroom (对比 PIC16F18346-I/ST)
设计说明
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.
合规信息
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.