PIC18F45K22-I/P - 8-Bit 64MHz MCU 32KB Flash 40-PDIP | Microchip
MPN: PIC18F45K22-I/P ✓ Hoạt độngPIC18F45K22-I/P Tóm tắt
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, RAM, non-volatile program memory, and peripherals onto one piece of silicon. PIC microcontrollers use a modified Harvard architecture with separate program and data buses, executed from Flash memory and SRAM respectively. The PIC18 family sits at the top of Microchip's 8-bit portfolio, offering the highest code density and richest peripheral set within the 8-bit line, and is widely used where deterministic real-time response and low sleep current are required.
Key features of the PIC18F45K22 include eXtreme Low-Power (XLP) nanoWatt sleep modes with currents in the nanoamp range, multiple serial interfaces (UART, SPI, I2C), Enhanced Capture/Compare/PWM (ECCP) modules, comparators, and a 12-bit ADC. The 64 MHz internal oscillator eliminates an external crystal in many designs, and the 40-pin PDIP package supports breadboard and through-hole prototyping, making the part popular in industrial control, instrumentation, and educational applications.
The architecture combines an 8-bit data path with a 16-bit instruction word, providing orthogonal addressing and a hardware multiplier that accelerates arithmetic. The 12-bit ADC with acquisition timer and automatic channel scanning enables precision sensor interfacing, while the PWM modules support motor control and power-conversion loops. Internal EEPROM supports non-volatile data storage without external memory chips.
Typical applications include industrial sensor interfaces, low-power remote sensor nodes, HVAC and building-control nodes, motor-control front-ends, USB HID peripherals (paired with a USB transceiver), and educational development platforms. The wide 4.2-5.5 V supply range is well-matched to 5 V industrial buses and battery-backed systems.
When designing with this part, choose the appropriate oscillator mode for your EMI and accuracy budget; internal 16 MHz or 64 MHz operation removes a crystal but trades frequency precision. The 40-pin PDIP footprint is identical to the PIC18F452 / PIC18F4550 family, easing migration. Decouple VDD with 100 nF plus 10 uF bulk capacitors and follow Microchip's emulator/debugger pin assignments when using MPLAB tools.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found on the manufacturer datasheet.
Bộ thay thế dễ dàng lắp đặt cho PIC18F45K22-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 PIC18F45K22-I/P (cùng hình factor và footprint) — khác nhau ở Package, Operating Temperature, ADC, Timers, Core Architecture.
PIC18F46K22-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F44K22-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F45K22-E/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F452-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F4520-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F4550-I/PT
✅ Drop-In✓ Còn hàng
$4.95 / Đơn vị
Xem tài liệu →PIC18F458-I/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F45K22-I/P Tỷ lệ tối đa & tính chất điện
| Core | PIC18 (8-bit) |
| CPU Speed | 64 MHz (16 MIPS) |
| Program Memory | 32 KB Flash (16K x 16) |
| Data SRAM | 1536 bytes |
| Data EEPROM | 256 bytes |
| I/O Pins | 36 |
| ADC | 12-bit, up to 28 channels |
| Điện áp cung cấp | 4.2 V to 5.5 V |
| Nhiệt độ hoạt động | -40C to +85C (Industrial) |
| Hộp | 40-pin PDIP (DIP-40) |
| Kiểu lắp đặt | Through-Hole |
| Oscillator | Internal 16 MHz / 64 MHz + external crystal |
| Timers | 4 x 8-bit / 16-bit |
| UART | 2 |
| SPI | 2 |
| I2C | 2 (MSSP) |
| PWM Channels | Up to 5 (ECCP + CCP) |
| Comparators | 2 |
| XLP nanoWatt | Yes (down to nA sleep currents) |
| Cấp MSL | 1 (unlimited floor life, through-hole) |
| Trạng thái RoHS | Compliant (lead-free matte-tin pins) |
Cấu hình chân PIC18F45K22-I/P
| Chân 1 | MCLR/RE3 — Master Clear (reset) input or digital input RE3 |
| Chân 2 | RA0 — PORTA digital I/O / AN0 analog input |
| Chân 3 | RA1 — PORTA digital I/O / AN1 analog input |
| Chân 4 | RA2 — PORTA digital I/O / AN2 analog input / VREF- |
| Chân 5 | RA3 — PORTA digital I/O / AN3 analog input / VREF+ |
| Chân 6 | RA4 — PORTA digital I/O / AN4 / T0CKI |
| Chân 7 | RA5 — PORTA digital I/O / AN5 / HLVDIN |
| Chân 8 | RE0 — PORTE digital I/O / AN6 / RD |
| Chân 9 | RE1 — PORTE digital I/O / AN7 / WR |
| Chân 10 | RE2 — PORTE digital I/O / AN8 / CS |
| Chân 11 | VDD — Positive supply (4.2-5.5 V) |
| Chân 12 | VSS — Ground reference |
| Chân 13 | OSC1/CLKI/RA7 — Crystal input or external clock / GPIO |
| Chân 14 | OSC2/CLKO/RA6 — Crystal output or clock output / GPIO |
| Chân 15 | RC0 — PORTC digital I/O / AN16 / T3CKI |
| Chân 16 | RC1 — PORTC digital I/O / AN17 / CCP2 |
| Chân 17 | RC2 — PORTC digital I/O / AN18 / CCP1 |
| Chân 18 | RC3 — PORTC digital I/O / AN19 / SCL1 |
| Chân 19 | RD0 — PORTD digital I/O / PSP0 |
| Chân 20 | RD1 — PORTD digital I/O / PSP1 |
| Chân 21 | RD2 — PORTD digital I/O / PSP2 |
| Chân 22 | RD3 — PORTD digital I/O / PSP3 |
| Chân 23 | RC4 — PORTC digital I/O / SDA1 / SDI1 |
| Chân 24 | RC5 — PORTC digital I/O / SDO1 |
| Chân 25 | RC6 — PORTC digital I/O / TX1 / CK1 |
| Chân 26 | RC7 — PORTC digital I/O / RX1 / DT1 |
| Chân 27 | RD4 — PORTD digital I/O / PSP4 / SDO2 |
| Chân 28 | RD5 — PORTD digital I/O / PSP5 / SDI2 |
| Chân 29 | RD6 — PORTD digital I/O / PSP6 / TX2 / CK2 |
| Chân 30 | RD7 — PORTD digital I/O / PSP7 / RX2 / DT2 |
| Chân 31 | VSS — Ground reference |
| Chân 32 | VDD — Positive supply (4.2-5.5 V) |
| Chân 33 | RB0 — PORTB digital I/O / INT0 / AN10 / CCP4 |
| Chân 34 | RB1 — PORTB digital I/O / INT1 / AN8 / CCP5 |
| Chân 35 | RB2 — PORTB digital I/O / INT2 / AN9 |
| Chân 36 | RB3 — PORTB digital I/O / INT3 / AN11 / CCP2 |
| Chân 37 | RB4 — PORTB digital I/O / AN12 / KBI0 |
| Chân 38 | RB5 — PORTB digital I/O / AN13 / KBI1 / PGM |
| Chân 39 | RB6 — PORTB digital I/O / KBI2 / PGC (ICSP clock) |
| Chân 40 | RB7 — PORTB digital I/O / KBI3 / PGD (ICSP data) |
Ứng dụng tiêu biểu
PIC18F45K22-I/P phù hợp cho 7 Áp dụngs: Industrial Sensor Interface Module, HVAC Building-Control Node, Low-Power Remote Sensor Node, Educational Development Platform, Motor-Control Front-End, USB HID Peripheral (with FTDI bridge), Appliance Control Board.
Industrial Sensor Interface Module
The PIC18F45K22-I/P fits industrial 4-20 mA and 0-10 V sensor-interface modules because its 12-bit ADC with up to 28 channels provides the resolution needed for precision RTD, thermocouple, and bridge-sensor conditioning. The 4.2-5.5 V supply range aligns directly with 5 V industrial rails, while the nanoWatt XLP sleep currents in the nanoamp range enable battery-backed or energy-harvested remote nodes. Designers typically route each ADC channel through an external op-amp front end and use the integrated EEPROM for calibration constants. Compared with newer PIC18F45Q10 designs, the K22 still wins where mature MPLAB X and XC8 toolchains are mandated.
Được đề xuất
HVAC Building-Control Node
In HVAC and building-automation nodes, the PIC18F45K22-I/P drives temperature, humidity, and airflow sensors while managing relays and triac outputs for damper and valve actuation. Its 64 MHz CPU handles BACnet or Modbus stack parsing with headroom, and the multiple UART channels bridge to RS-485 transceivers such as the MAX485 for fieldbus communications. The 36 I/O pins comfortably drive local keypads, LCDs, and status LEDs without external expanders. Its industrial temperature grade and proven XLP sleep modes support 24/7 operation in unconditioned equipment rooms.
Được đề xuất
Low-Power Remote Sensor Node
For battery-powered remote sensor nodes, the PIC18F45K22-I/P's XLP nanoWatt technology delivers sleep currents measured in nanoamps, allowing multi-year operation from a single coin cell when periodic wake-ups are used. The 12-bit ADC reads environmental parameters, the UART serves a low-power radio module such as the XBee or LoRa transceiver, and the internal 16 MHz oscillator eliminates an external crystal to reduce BOM cost. Designers leverage the deep-sleep retention of SRAM plus EEPROM for last-known state and calibration, while the 5 V supply is post-regulated from the battery for clean ADC reference.
Được đề xuất
Educational Development Platform
The PIC18F45K22-I/P is a workhorse in university embedded-systems labs because the 40-pin PDIP form factor accepts standard 0.100 inch sockets and breadboards, and the 64 MHz CPU supports real-time OS demonstrations. Students exercise UART, SPI, I2C, ADC, and PWM peripherals in a single device without remapping pinouts between parts. MPLAB X IDE and the XC8 compiler are free, while the PICkit 4 or MPLAB Snap programmer/debugger attaches via ICSP using PGD/PGC/MCLR. The K22's mature peripheral library and abundant reference code on Microchip's site accelerate lab completion.
Được đề xuất
Motor-Control Front-End
In motor-control front-ends, the PIC18F45K22-I/P's Enhanced Capture/Compare/PWM (ECCP) modules generate complementary PWMs with programmable dead-band for driving half-bridges via gate drivers such as the IR2104. Its 64 MHz core closes PI current loops well within the PWM period at 20 kHz, and the 12-bit ADC samples phase currents through op-amp sense amplifiers. The 40-pin PDIP simplifies bench bring-up and rework during prototype tuning. Designers transition to the TQFP package or the K22 QFN variant for production volume where the smaller footprint and thermal performance matter.
Được đề xuất
USB HID Peripheral (with FTDI bridge)
Where USB connectivity is required but the K22 lacks a native port, designers pair the PIC18F45K22-I/P with an FTDI FT230XS-R USB-to-UART bridge to expose a CDC or HID interface to the host PC. The PIC's UART runs at full speed driving the FT230, while firmware implements the application protocol (HID reports, sensor streaming, or boot-loader messaging). This combination preserves the K22's nanoWatt XLP sleep behavior and the well-known 40-pin PDIP prototyping footprint, making it a common pattern in lab tools, sensor adapters, and industrial configuration dongles.
Được đề xuất
Appliance Control Board
The PIC18F45K22-I/P is widely deployed in white-goods control boards (washing machines, dishwashers, induction cookers) because its 5 V operation, 12-bit ADC for current/voltage sensing, and PWM channels for triac/IGBT drive match typical appliance topologies. Its industrial temperature rating and long-life Flash retention accommodate 10+ year service intervals. The 40-pin PDIP remains the through-hole package of choice for hand-assembled or wave-soldered production lines. The K22 family's mature peripheral library and application notes accelerate compliance with IEC 60730 safety standards.
Đượ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 PIC18F45K22-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 | PIC18F46K22-I/P | PIC18F44K22-I/P | PIC18F45K22-E/P | PIC18F452-I/P | PIC18F4550-I/P |
|---|---|---|---|---|---|---|
| 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 |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Program Memory | 32 KB | 64 KB | 16 KB | 32 KB | 32 KB | 32 KB |
| SRAM | 1536 bytes | 3896 bytes | 768 bytes | 1536 bytes | 1536 bytes | 2048 bytes |
| CPU Speed | 64 MHz / 16 MIPS | 64 MHz / 16 MIPS | 64 MHz / 16 MIPS | 64 MHz / 16 MIPS | 40 MHz / 10 MIPS | 48 MHz / 12 MIPS |
| ADC Resolution | 12-bit | 12-bit | 12-bit | 12-bit | 10-bit | 12-bit |
| USB Peripheral | No | No | No | No | No | Yes (USB 2.0 FS Device) |
| Operating Temperature | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +125C (Extended) | -40C to +85C (Industrial) | -40C to +85C (Industrial) |
| XLP nanoWatt Sleep | Yes | Yes | Yes | Yes | No | Limited |
Bảo phân biệt quan trọng
- 12-bit ADC vs legacy 10-bit ADC on older siblings (vsPIC18F452-I/P)
- nanoWatt XLP sleep mode not present on legacy parts (vsPIC18F452-I/P)
- Lower memory density compared with 46K22 sibling (vsPIC18F46K22-I/P)
- 64 MHz CPU vs 48 MHz on USB-equipped sibling (vsPIC18F4550-I/P)
Ghi chú thiết kế
Place a 100 nF ceramic plus a 10 uF tantalum or ceramic bulk capacitor within 4 mm of each VDD pin pair (pins 11/12 and pins 31/32). Use a low-ESR bulk cap and a small-value ceramic for high-frequency decoupling. AVDD and AVSS, if used, must be tied to the same VDD/VSS with their own 100 nF decoupling. Power-rail sequencing is not required, but the BOR should be enabled in configuration words for predictable reset behavior.
Keep the crystal or oscillator traces short and surround them with a ground guard ring to minimize EMI coupling into ADC inputs. Route analog signals (ANx) away from digital switching traces, especially PWM outputs, and provide a separate analog ground return if the PCB has split grounds. Place the ICSP test points on PGC (RB6), PGD (RB7), and MCLR (pin 1) on the board edge so a PICkit 4 or MPLAB Snap can attach without fly-wires. Reference Microchip's TB077 and AN585 app notes for additional layout guidance.
Estimated: switching from PIC18F452 code to PIC18F45K22 code requires reconfiguration of the ADC for 12-bit operation and review of the oscillator configuration bits, since the K22 adds the PLL and HFINTOSC modes not present on the F452. Always unlock the configuration registers using the CONFIG4L/PROG sequence in Flash before writing the CONFIG words, or the write will silently fail. Do not drive MCLR low without the internal weak pull-up disabled if the device is sharing the pin with a digital signal; otherwise add an external 10 kohm pull-up. Finally, the 36 I/O pins support 5 V logic, but analog inputs must remain within VSS-0.3 V to VDD+0.3 V or ADC readings will saturate.
Estimated: the 40-pin PDIP package has a theta_JA of approximately 50 C/W in still air and 35 C/W with 1 oz copper pours on the leads. At 64 MHz the K22 typically draws 12 mA from 5 V (60 mW), so self-heating is negligible (<3 C). However, when driving high-current loads through PORTB/PORTC I/O pins (sourcing 20 mA per pin up to 200 mA per port), the cumulative dissipation can rise several hundred milliwatts. Derate the I/O source current per port to 90 mA and per pin to 20 mA to stay within Microchip's published specifications.
The internal 16 MHz HFINTOSC is factory-trimmed to within +/- 2 percent across temperature, suitable for UART communication up to 9600 baud without external crystals. For higher baud rates, CAN, or USB timing, use an external crystal or resonator and configure HS or XT oscillator mode. The MSSP I2C module supports Standard, Fast, and Fast-Plus modes (up to 1 MHz) with proper pull-up resistor sizing; use 4.7 kohm pull-ups for Fast mode and 1 kohm for Fast-Plus. Always enable the SMBus input levels for robust I2C communication with industrial sensors.
Thông tin tuân thủ
RoHS compliant per Microchip product page; lead-free matte-tin pins. Not AEC-Q100 qualified - choose AEC-Q100 equivalent from PIC18F family for automotive. Conflict-minerals statement available from Microchip.