PIC18F47K40-I/P - 8-Bit 64MHz 128KB Flash MCU | Microchip | DIP-40
MPN: PIC18F47K40-I/P ✓ Hoạt độngPIC18F47K40-I/P Tóm tắt
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.
Bộ thay thế dễ dàng lắp đặt cho PIC18F47K40-I/P — cùng gói, chân-to-chân tương thích. Các bộ phận yêu cầu hàn PCB bị loại trừ.
Các biến thể trong loạt này
Các mẫu cùng loạt có thể lắp đặt dễ dàng tương thích với PIC18F47K40-I/P (cùng hình factor và footprint) — khác nhau ở Package, ADC, Operating Temperature, Program Memory (Flash), Core.
PIC18F46K40-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F45K40-I/P
✅ Drop-In📋 Tham chiếu thay thế (không có trong danh mục)
PIC18F46Q43-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F45Q43-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F46K80-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F4620-I/PT
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F47K40-I/P Tỷ lệ tối đa & tính chất điện
| 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 |
| Hộp | 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 |
| Nhiệt độ hoạt động | -40C to +85C (Industrial) |
| Kiểu lắp đặt | Through-Hole (DIP-40) |
| Trạng thái RoHS | Compliant |
Cấu hình chân PIC18F47K40-I/P
| Chân 1 | MCLR/RE3 — Master Clear reset (input) or digital-only I/O RE3 |
| Chân 2 | RA0 — PORTA bit 0 (analog AN0) |
| Chân 3 | RA1 — PORTA bit 1 (analog AN1) |
| Chân 4 | RA2 — PORTA bit 2 (analog AN2) |
| Chân 5 | RA3 — PORTA bit 3 (analog AN3) |
| Chân 6 | RA4 — PORTA bit 4 (analog AN4) |
| Chân 7 | RA5 — PORTA bit 5 (analog AN5) |
| Chân 8 | RA6 — PORTA bit 6 (analog AN6 / oscillator) |
| Chân 9 | RA7 — PORTA bit 7 (analog AN7 / oscillator) |
| Chân 10 | RE0 — PORTE bit 0 (analog AN8) |
| Chân 11 | RE1 — PORTE bit 1 (analog AN9) |
| Chân 12 | RE2 — PORTE bit 2 (analog AN10) |
| Chân 13 | VDD — Positive power supply |
| Chân 14 | VSS — Ground reference |
| Chân 15 | RB0 — PORTB bit 0 (analog AN12, INT0) |
| Chân 16 | RB1 — PORTB bit 1 (analog AN10, INT1) |
| Chân 17 | RB2 — PORTB bit 2 (analog AN8) |
| Chân 18 | RB3 — PORTB bit 3 (analog AN9) |
| Chân 19 | RB4 — PORTB bit 4 |
| Chân 20 | RB5 — PORTB bit 5 |
| Chân 21 | RB6 — PORTB bit 6 (ICSP PGC, ICDCLK) |
| Chân 22 | RB7 — PORTB bit 7 (ICSP PGD, ICDDAT) |
| Chân 23 | VSS — Ground reference |
| Chân 24 | VDD — Positive power supply |
| Chân 25 | RC0 — PORTC bit 0 |
| Chân 26 | RC1 — PORTC bit 1 |
| Chân 27 | RC2 — PORTC bit 2 |
| Chân 28 | RC3 — PORTC bit 3 |
| Chân 29 | RC4 — PORTC bit 4 |
| Chân 30 | RC5 — PORTC bit 5 |
| Chân 31 | RC6 — PORTC bit 6 |
| Chân 32 | RC7 — PORTC bit 7 |
| Chân 33 | VSS — Ground reference |
| Chân 34 | VDD — Positive power supply |
| Chân 35 | RD0 — PORTD bit 0 |
| Chân 36 | RD1 — PORTD bit 1 |
| Chân 37 | RD2 — PORTD bit 2 |
| Chân 38 | RD3 — PORTD bit 3 |
| Chân 39 | RD4 — PORTD bit 4 |
| Chân 40 | RD5 — PORTD bit 5 |
Ứng dụng tiêu biểu
PIC18F47K40-I/P phù hợp cho 7 Áp dụngs: 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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
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.
Được đề xuất
Tóm tắt các sản phẩm được đề xuất
Dữ liệu tham khảo kỹ thuật cho PIC18F47K40-I/P — so sánh, hướng dẫn thiết kế và thông tin tuân thủ.
Hướng dẫn chọn lựa
So sánh với các sản phẩm thay thế
| Tham số | Sản phẩm này | 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 |
Bảo phân biệt quan trọng
- Largest Flash in the K40 PDIP-40 family (vsPIC18F46K40-I/P)
- Newer-generation core versus legacy K22/K80 (vsPIC18F46K80-I/P)
- Migration path to Q43 family (vsPIC18F46Q43-I/P)
- XLP nanoWatt Sleep vs legacy PIC18F (vsPIC18F4620-I/P)
Ghi chú thiết kế
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.
Thông tin tuân thủ
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.