PIC18F47K40-I/P - 8-Bit 64MHz 128KB Flash MCU | Microchip | DIP-40
MPN: PIC18F47K40-I/P ✓ 啟用中PIC18F47K40-I/P 概覽
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, non-volatile program memory, working RAM, and a rich set of peripherals (ADC, timers, communication interfaces, PWM, comparators). It belongs to the hierarchy: microcontroller -> embedded processor -> semiconductor IC -> electronic component. PIC18F-series MCUs sit in Microchip's 8-bit mid-range tier and target cost-sensitive, deterministic, low-power applications where an ARM Cortex-M device would be over-specified.
Key features include 10-bit ADC with computation (ADC2), a 5-bit DAC, comparators, PWM, CCP, the Configurable Logic Cell (CLC), Complementary Waveform Generator (CWG), Windowed Watchdog Timer (WWDT), SCAN/CRC, Zero-Cross Detect (ZCD), Peripheral Pin Select (PPS), EUSART, and SPI/I2C. The XLP technology delivers nanoWatt sleep currents, allowing battery-powered products to retain state for years.
The 128 KB Flash and 4 KB RAM enable meaningful embedded firmware with communication stacks and user-interface logic. Peripheral Pin Select remaps digital peripherals to almost any I/O pin, simplifying PCB layout and BOM reuse across the PIC18F4xK40 family.
Typical applications include home appliances, white goods, motor-control front ends, sensor hubs, IoT edge nodes, and any 5V-tolerant embedded design. The 40-pin PDIP package is breadboard-friendly and accelerates prototyping and field-replaceable modules.
When designing with this MCU, plan oscillator and ICSP pin usage early because pins 38/39 share the debugger; using the PPS system lets designers re-route EUSART/SPI after the schematic is frozen. A 100 nF decoupling capacitor as close as possible to VDD/AVDD plus a 10 µF bulk cap is the minimum recommended power architecture.
直接替換替代品,適用於 PIC18F47K40-I/P — 相同封裝,腳位對腳位相容。需重新設計 PCB 的不同封裝零件不列入。
此系列的變體
與下列產品可直接替換的同系列型號: PIC18F47K40-I/P (相同外形與佔位) — 差異在於 Package, ADC, Operating Temperature, Program Memory (Flash), Core.
PIC18F46K40-I/P
✅ 直接替換聯絡詢價
查看資料表 →PIC18F45K40-I/P
✅ 直接替換📋 參考替代品(不在目錄中)
PIC18F46Q43-I/P
✅ 直接替換聯絡詢價
查看資料表 →PIC18F45Q43-I/P
✅ 直接替換聯絡詢價
查看資料表 →PIC18F46K80-I/P
✅ 直接替換聯絡詢價
查看資料表 →PIC18F4620-I/PT
✅ 直接替換聯絡詢價
查看資料表 →PIC18F47K40-I/P 最大額定值與電氣特性
| Core | PIC18 (enhanced mid-range 8-bit) |
| Program Memory (Flash) | 128 KB (64K x 16) |
| Data RAM | 4 KB |
| Data EEPROM | 256 B |
| Maximum CPU Speed | 64 MHz |
| 封裝 | 40-pin PDIP (DIP-40) |
| Operating Voltage Range | 2.3 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 10-bit ADC2 (with computation) |
| DAC | 5-bit DAC |
| Comparators | Yes |
| PWM Channels | Yes (CCP, CWG) |
| Communication Interfaces | EUSART, SPI, I2C |
| XLP (nanoWatt) | Yes |
| 工作溫度 | -40C to +85C (Industrial) |
| 安裝類型 | Through-Hole (DIP-40) |
| RoHS 狀態 | Compliant |
PIC18F47K40-I/P 腳位配置
| 腳位 1 | MCLR/RE3 — Master Clear reset (input) or digital-only I/O RE3 |
| 腳位 2 | RA0 — PORTA bit 0 (analog AN0) |
| 腳位 3 | RA1 — PORTA bit 1 (analog AN1) |
| 腳位 4 | RA2 — PORTA bit 2 (analog AN2) |
| 腳位 5 | RA3 — PORTA bit 3 (analog AN3) |
| 腳位 6 | RA4 — PORTA bit 4 (analog AN4) |
| 腳位 7 | RA5 — PORTA bit 5 (analog AN5) |
| 腳位 8 | RA6 — PORTA bit 6 (analog AN6 / oscillator) |
| 腳位 9 | RA7 — PORTA bit 7 (analog AN7 / oscillator) |
| 腳位 10 | RE0 — PORTE bit 0 (analog AN8) |
| 腳位 11 | RE1 — PORTE bit 1 (analog AN9) |
| 腳位 12 | RE2 — PORTE bit 2 (analog AN10) |
| 腳位 13 | VDD — Positive power supply |
| 腳位 14 | VSS — Ground reference |
| 腳位 15 | RB0 — PORTB bit 0 (analog AN12, INT0) |
| 腳位 16 | RB1 — PORTB bit 1 (analog AN10, INT1) |
| 腳位 17 | RB2 — PORTB bit 2 (analog AN8) |
| 腳位 18 | RB3 — PORTB bit 3 (analog AN9) |
| 腳位 19 | RB4 — PORTB bit 4 |
| 腳位 20 | RB5 — PORTB bit 5 |
| 腳位 21 | RB6 — PORTB bit 6 (ICSP PGC, ICDCLK) |
| 腳位 22 | RB7 — PORTB bit 7 (ICSP PGD, ICDDAT) |
| 腳位 23 | VSS — Ground reference |
| 腳位 24 | VDD — Positive power supply |
| 腳位 25 | RC0 — PORTC bit 0 |
| 腳位 26 | RC1 — PORTC bit 1 |
| 腳位 27 | RC2 — PORTC bit 2 |
| 腳位 28 | RC3 — PORTC bit 3 |
| 腳位 29 | RC4 — PORTC bit 4 |
| 腳位 30 | RC5 — PORTC bit 5 |
| 腳位 31 | RC6 — PORTC bit 6 |
| 腳位 32 | RC7 — PORTC bit 7 |
| 腳位 33 | VSS — Ground reference |
| 腳位 34 | VDD — Positive power supply |
| 腳位 35 | RD0 — PORTD bit 0 |
| 腳位 36 | RD1 — PORTD bit 1 |
| 腳位 37 | RD2 — PORTD bit 2 |
| 腳位 38 | RD3 — PORTD bit 3 |
| 腳位 39 | RD4 — PORTD bit 4 |
| 腳位 40 | RD5 — PORTD bit 5 |
典型應用
PIC18F47K40-I/P 適用於 7 應用s: Home Appliance Control Board, Battery-Powered IoT Sensor Node, Industrial Control and HMI, Motor Control Front-End, Automotive Body Electronics (Non-Safety), Consumer Audio and Lighting, Prototyping and Educational Tooling.
Home Appliance Control Board
The PIC18F47K40-I/P fits home appliance control boards where 128 KB Flash accommodates capacitive-touch firmware, motor-control state machines, and diagnostic logs. Its 5V native I/O eliminates level shifters to triac drivers, and the 10-bit ADC2 with computation reads NTC temperature sensors directly. Peripheral Pin Select lets PCB designers remap EUSART/SPI after schematic freeze, while XLP nanoWatt sleep keeps the standby power below EU eco-design limits for refrigerators, washing machines, and dishwashers.
推薦
Battery-Powered IoT Sensor Node
The PIC18F47K40-I/P is a strong fit for coin-cell IoT sensor nodes thanks to XLP nanoWatt technology that drops core current into the tens of nA during sleep. Sleep with RTCC running at 32 kHz typically draws under 1 µA, enabling multi-year battery life on CR2032 cells. The 4 KB RAM buffers sensor samples before LoRa or sub-GHz transmissions, and ADC2 hardware oversampling delivers 12-bit effective resolution from the 10-bit ADC, improving temperature, humidity, and gas-sensor readings without CPU overhead.
推薦
Industrial Control and HMI
The PIC18F47K40-I/P powers industrial control panels and simple HMIs where the 128 KB Flash holds graphic-rendering libraries, multilingual fonts, and Modbus stacks. The CWG (Complementary Waveform Generator) drives half-bridges and three-phase bridges for small motor control, while the 10-bit ADC2 with computation samples current shunts at zero CPU cost. Industrial -40C to +85C operation, plus 5V tolerance to legacy industrial sensors and 24V-clamped inputs, make the MCU a robust drop-in for programmable logic controllers and sensor interfaces.
推薦
Motor Control Front-End
For brushless-DC (BLDC) and stepper motor control, the PIC18F47K40-I/P delivers PWM and the Complementary Waveform Generator with hardware dead-band insertion. The 5-bit DAC and analog comparators form closed-loop current control loops, while ADC2 oversampling captures back-EMF at zero CPU overhead. PPS lets designers route PWM outputs to any I/O pin, simplifying PCB routing of three-phase bridges and keeping the same firmware across 28-, 40-, and 44-pin members of the K40 family.
推薦
Automotive Body Electronics (Non-Safety)
The PIC18F47K40-I/P fits non-safety automotive body modules such as interior lighting, seat controllers, and HVAC blend-door actuators. While not AEC-Q100 qualified, it operates from -40C to +85C and is widely used in non-safety modules by hobbyists and developers. For AEC-Q100 production, designers migrate to PIC18F-Q84 or dsPIC33 automotive families. The 5V tolerance drives relays and LED strings directly, and ADC2 reads photodiodes and potentiometers for analog feedback.
推薦
Consumer Audio and Lighting
The PIC18F47K40-I/P drives consumer audio accessories, addressable-LED controllers, and DMX-512 lighting fixtures. Its PWM and CWG modules generate audio PWM and high-resolution LED dimming, while 4 KB RAM buffers DMX frames. Peripheral Pin Select allows routing SPI to APA102/SK6812 LEDs and EUSART to DMX-512 transceivers. The 128 KB Flash stores firmware for color engines, fade libraries, and remote-control stacks, making the MCU ideal for stage lighting, gaming peripherals, and decorative controllers.
推薦
Prototyping and Educational Tooling
The PIC18F47K40-I/P in PDIP-40 is the de-facto prototyping MCU thanks to breadboard-friendly through-hole pins and Microchip's MPLAB X IDE plus XC8 compiler support. The D-Stick development tool (ME Labs) targets the same K40 silicon for solderless-breadboard development. Universities and makers favor the K47 because of 128 KB Flash, abundant peripherals, and a long-standing peripheral library (PLIB) that lowers the learning curve. Final production migrates to PIC18F47K40-I/PT TQFP-44.
推薦
推薦產品摘要
工程參考資料,適用於 PIC18F47K40-I/P — 比較、設計指引及合規資訊。
選型指南
與替代品比較
| 參數 | 本產品 | PIC18F46K40-I/P | PIC18F45K40-I/P | PIC18F46Q43-I/P | PIC18F46K80-I/P | PIC18F4620-I/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 40-pin PDIP (DIP-40) | 40-pin PDIP (DIP-40) - same | 40-pin PDIP (DIP-40) - same | 40-pin PDIP (DIP-40) - same | 40-pin PDIP (DIP-40) - same | 40-pin PDIP (DIP-40) - same |
| Program Memory (Flash) | 128 KB | 64 KB (-50%) | 32 KB (-75%) | 64 KB (-50%) | 64 KB (-50%) | 64 KB (-50%) |
| Maximum CPU Speed | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 64 MHz | 40 MHz (-37%) |
| ADC | 10-bit ADC2 | 10-bit ADC2 | 10-bit ADC2 | 12-bit ADC | 12-bit ADC | 10-bit ADC (legacy) |
| Peripheral Pin Select (PPS) | Yes | Yes | Yes | Yes | Yes | No (legacy) |
| XLP nanoWatt | Yes | Yes | Yes | Yes | Yes | No (older) |
| CAN 2.0B | No | No | No | No | Yes | No |
| Operating Temperature | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
主要差異化特點
- Largest Flash in the K40 PDIP-40 family (對比PIC18F46K40-I/P)
- Newer-generation core versus legacy K22/K80 (對比PIC18F46K80-I/P)
- Migration path to Q43 family (對比PIC18F46Q43-I/P)
- XLP nanoWatt Sleep vs legacy PIC18F (對比PIC18F4620-I/P)
設計說明
Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pair (the K40 has three VDD pins on PDIP-40: pins 13, 24, 34). Add a single 10 µF bulk capacitor near the MCU supply pin. Per Microchip TB3077 application note, multi-cap decoupling improves ADC2 SNR by up to 3 dB. Use a ferrite bead if the supply comes from a switching regulator.
When laying out the PCB, keep ICSP pins RB6 (pin 21) and RB7 (pin 22) accessible for in-circuit serial programming - never strap them to a hard pull-up or pull-down that fights the programmer. Reserve a 5-pin ICSP header footprint (VPP, VDD, VSS, PGD, PGC) even if debugging is done off-board. According to Microchip TB3102, leaving ICSP accessible saves prototype rework time.
PIC18F47K40-I/P uses Peripheral Pin Select (PPS) to remap digital peripherals - peripherals are NOT enabled by default. New users often forget to call PPS_unlock() and configure PPS registers in firmware, leaving EUSART/SPI/CWG outputs floating. Always include the PPS configuration block in the early startup sequence before initializing peripherals. Per Microchip datasheet Section 26, PPS settings are retained through a software reset but lost on MCLR or BOR.
When the ADC2 conversion rate exceeds 100 ksps, add a 100 nF + 10 µF bypass directly on the AVREF/AVDD analog rail and route analog traces away from PWM/CWG outputs. The 5-bit DAC is shared with the reference voltage pin on some K40 variants; consult the datasheet pin map. For noise-sensitive designs, use a separate LDO for analog AVREF rather than the digital VDD.
Estimated: at 64 MHz, 5 V supply, and 50% I/O toggling, the PIC18F47K40-I/P dissipates around 60 mW. DIP-40 thermal resistance is roughly 50 C/W, yielding a 3C junction temperature rise above ambient - well within the -40C to +85C operating envelope. No external heatsink is required for typical embedded use.
合規資訊
RoHS compliant per Microchip product page. Not AEC-Q100 qualified; consult Microchip automotive portfolio (dsPIC33A, PIC18F-Q84) for AEC-Q100 needs. Lead-free and halogen-free per Microchip environmental certification.