PIC18F13K22-I/P - 8KB Flash 8-bit nanoWatt XLP MCU | Microchip
MPN: PIC18F13K22-I/P ✓ Hoạt độngPIC18F13K22-I/P Tóm tắt
What is an 8-bit flash microcontroller? An MCU (microcontroller unit) integrates a CPU core, program memory (flash), data memory (RAM), non-volatile data storage (EEPROM), and peripherals (ADC, timers, UART, I/O) on a single die. The PIC18 core is an enhanced 8-bit Harvard RISC architecture with C-compiler-friendly instruction set, 16-bit opcodes, and hardware multiply — well above the older PIC16 baseline. The PIC18F13K22 adds nanoWatt XLP sleep modes (down to single-digit nA typical) that let battery-powered products survive years on a coin cell, while still running code at 16 MIPS from a 64 MHz internal oscillator.
Key features include 16 I/O pins, an integrated 10-bit ADC with up to 11 channels, two PWM modules, one Enhanced USART, one MSSP (SPI/I2C), and a wide 1.8 V–5.5 V operating range. The 'I' temperature grade supports -40 °C to +85 °C industrial applications. Internal 16 MHz and 64 MHz oscillators eliminate external crystals on most designs.
Typical applications include consumer appliances, low-power IoT sensor nodes, battery-powered handheld instruments, and LED control. The 20-pin PDIP form factor remains the package of choice for through-hole hobby, education, breadboarding, and legacy industrial PCB designs where socketed replacement simplifies field service. The PIC18F13K22-I/P offers familiar MPLAB X IDE, XC8 compiler, and PICkit programmer support.
Bộ thay thế dễ dàng lắp đặt cho PIC18F13K22-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 PIC18F13K22-I/P (cùng hình factor và footprint) — khác nhau ở Program Memory (Flash), Package, ADC, Operating Temperature, Mounting Type.
PIC18F14K22-I/P
✅ Drop-In📋 Tham chiếu thay thế (không có trong danh mục)
PIC18F13K22-E/P
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F13K22T-I/P
✅ Drop-In📋 Tham chiếu thay thế (không có trong danh mục)
PIC18F13K22-I/SO
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F13K22-I/SS
✅ Drop-In📋 Tham chiếu thay thế (không có trong danh mục)
PIC18F13K22-I/P Tỷ lệ tối đa & tính chất điện
| Product Family | PIC18F1XK22 (nanoWatt XLP) |
| Core | PIC18 8-bit RISC (Harvard) |
| Program Memory (Flash) | 8 KB (4K x 16) |
| Data RAM | 256 bytes |
| Data EEPROM | 256 bytes |
| Maximum CPU Speed | 64 MHz (16 MIPS) |
| Operating Voltage | 1.8 V to 5.5 V (4.2 V–5.5 V typical at full speed) |
| I/O Pins | 16 |
| ADC | 10-bit, up to 11 channels |
| Timers | 4 (Timer0/1/2/3) |
| PWM Modules | 2 (Enhanced CCP) |
| Communication | 1x EUSART, 1x MSSP (SPI/I2C) |
| Hộp | 20-pin PDIP (DIP-20, 0.300 inch) |
| Nhiệt độ hoạt động | -40 °C to +85 °C (Industrial) |
| Kiểu lắp đặt | Through-Hole (PDIP) |
| Trạng thái RoHS | Compliant |
Cấu hình chân PIC18F13K22-I/P
| Chân 1 | RA7/OSC1/CLKI — Digital I/O / Oscillator crystal input / External clock input |
| Chân 2 | RA6/OSC2/CLKO — Digital I/O / Oscillator crystal output / Clock output |
| Chân 3 | RA5/MCLR/VPP — Digital I/O / Master Clear (reset) / Programming voltage |
| Chân 4 | RA4/AN4/T0CKI — Digital I/O / Analog input 4 / Timer0 clock input |
| Chân 5 | RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC positive voltage reference |
| Chân 6 | RA2/AN2/VREF- — Digital I/O / Analog input 2 / ADC negative voltage reference |
| Chân 7 | RA1/AN1 — Digital I/O / Analog input 1 |
| Chân 8 | RA0/AN0 — Digital I/O / Analog input 0 |
| Chân 9 | VSS — Ground reference |
| Chân 10 | VDD — Positive supply voltage (1.8 V–5.5 V) |
| Chân 11 | RC7/AN9 — Digital I/O / Analog input 9 |
| Chân 12 | RC6/AN8 — Digital I/O / Analog input 8 |
| Chân 13 | RC5/AN7 — Digital I/O / Analog input 7 |
| Chân 14 | RC4/AN6 — Digital I/O / Analog input 6 |
| Chân 15 | RC3/AN5/CCP2 — Digital I/O / Analog input 5 / Enhanced CCP2 PWM output |
| Chân 16 | RC2/AN6/CCP1/P1A — Digital I/O / Analog input 6 / Enhanced CCP1 PWM output |
| Chân 17 | RC1/AN7/C2OUT — Digital I/O / Analog input 7 / Comparator 2 output |
| Chân 18 | RC0/AN8 — Digital I/O / Analog input 8 |
| Chân 19 | RB7/ICSPDAT — Digital I/O / ICSP data |
| Chân 20 | RB6/ICSPCLK — Digital I/O / ICSP clock |
Ứng dụng tiêu biểu
PIC18F13K22-I/P phù hợp cho 6 Áp dụngs: Battery-Powered IoT Sensor Node, Consumer Appliance Control Board, Hobbyist and Educational Electronics, LED Lighting and Display Control, Industrial Sensor Interface Module, Automotive Interior Accessory (Non-Safety).
Battery-Powered IoT Sensor Node
The PIC18F13K22-I/P fits low-power IoT sensor nodes because of its nanoWatt XLP sleep current (~20 nA typical in sleep with RTCC) and integrated 10-bit ADC for direct sensor readout. Its 8 KB flash holds sensor-fusion or LoRaWAN-style protocol stacks, while the wide 1.8–5.5 V supply range lets a 2x AA or Li-ion battery power the board without regulation. The MSSP supports I2C sensor buses; the EUSART handles UART links to radios. Compared to a switching regulator plus op-amp front-end, the PIC18's integrated ADC eliminates two external parts.
Được đề xuất
Consumer Appliance Control Board
The PIC18F13K22-I/P suits small home appliances (coffee makers, blenders, fans) where the 20-pin PDIP through-hole form factor simplifies socketed service. Its 16 I/O pins drive triac/MOSFET power stages directly via PWM; the 10-bit ADC reads thermistor, motor current, or line voltage feedback. The PIC18's C-compiler-friendly instruction set reduces firmware development time. Industrial -40 to +85 °C temperature grade covers under-hood and kitchen environments.
Được đề xuất
Hobbyist and Educational Electronics
The PIC18F13K22-I/P remains the go-to MCU for hobbyists and universities because the 20-pin PDIP fits standard 0.3-inch IC sockets, breadboards, and through-hole perfboards. PICkit 3/4 programmers debug code in-circuit via ICSP; the free MPLAB X IDE with XC8 C compiler supports modern development workflows. Sample code, datasheets, and application notes are abundant on Microchip's site, and the PIC18 architecture is widely documented in textbooks.
Được đề xuất
LED Lighting and Display Control
The PIC18F13K22-I/P drives small LED lighting and indicator panels using its two Enhanced CCP PWM modules, which generate precise duty-cycle outputs at up to 64 MHz FOSC. The 10-bit ADC provides analog dimming or current-sensing feedback; the MSSP (SPI) chains addressable LED strips such as WS2812 (via bit-bang) or APA102 (native SPI). The wide 1.8–5.5 V supply accepts direct 5 V USB power or 3.3 V logic rails without level shifters.
Được đề xuất
Industrial Sensor Interface Module
The PIC18F13K22-I/P acts as a smart 4–20 mA or 0–10 V sensor-to-Modbus gateway in industrial panels. Its 10-bit ADC digitizes analog sensor signals; the EUSART provides RS-485 Modbus RTU connectivity for SCADA systems; the MSSP supports I2C sensor expansion. The industrial -40 to +85 °C operating range covers factory-floor temperatures. DIP packaging simplifies field-replaceable module designs.
Được đề xuất
Automotive Interior Accessory (Non-Safety)
The PIC18F13K22-I/P runs non-safety automotive interior accessories such as ambient lighting controllers, cup-holder LEDs, or cabin-ventilation trim. With an automotive-grade variant (PIC18F13K22T-I/P automotive screening) and -40 to +85 °C industrial temperature range, it handles under-dash thermal conditions. The PWM modules drive LED dimming smoothly; the ADC reads trim-switch positions. Note: for safety-critical body ECUs, migrate to AEC-Q100-qualified parts.
Đượ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 PIC18F13K22-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 | PIC18F14K22-I/P | PIC18F13K22-E/P | PIC18F13K22-I/SO | PIC18F13K22-I/SS |
|---|---|---|---|---|---|
| Package | PDIP-20 (through-hole) | PDIP-20 - same | PDIP-20 - same | SOIC-20 (SMD) - same pinout | SSOP-20 (SMD) - same pinout |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 8 KB | 16 KB (+100%) | 8 KB (same) | 8 KB (same die) | 8 KB (same die) |
| Maximum Clock | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) | 64 MHz (16 MIPS) |
| Operating Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V |
| Temperature Grade | Industrial -40 °C to +85 °C | Industrial -40 °C to +85 °C | Extended -40 °C to +125 °C | Industrial -40 °C to +85 °C | Industrial -40 °C to +85 °C |
| ADC | 10-bit, up to 11 ch | 10-bit, up to 11 ch | 10-bit, up to 11 ch | 10-bit, up to 11 ch | 10-bit, up to 11 ch |
| Mounting | Through-Hole (PDIP) | Through-Hole (PDIP) | Through-Hole (PDIP) | Surface Mount (SOIC) | Surface Mount (SSOP) |
| Price (qty 1, USD) | $2.18 | $2.35 (approx) | $2.25 (approx) | $2.05 (approx) | $2.10 (approx) |
Bảo phân biệt quan trọng
- Mid-density 8 KB flash with nanoWatt XLP low-power sleep (vsPIC16F886-I/P)
- Lower cost upgrade path to 16 KB flash in same footprint (vsPIC18F14K22-I/P)
- Extended temperature option in identical package (vsPIC18F13K22-E/P)
Ghi chú thiết kế
Estimated: at 3.3 V VDD and 16 MHz HFINTOSC, the PIC18F13K22-I/P draws approximately 4–6 mA active and ~20 nA in sleep with RTCC and WDT disabled. For battery-life calculations, use datasheet Figure 35-3 (IDD vs FOSC). Place a 100 nF decoupling capacitor within 5 mm of the VDD pin (pin 10) and a 10 µF bulk capacitor near the ICSP header. The MCU has no internal voltage regulator, so VDD ripple directly affects ADC accuracy — keep ripple under 10 mV at full ADC gain.
Keep the ICSP header (6-pin standard Microchip layout) accessible on the PCB for in-circuit debugging and field firmware updates. Route the ICSPDAT/ICSPCLK lines (RB7/RB6) without series resistors in the production path — programmers include their own. The 20-pin PDIP footprint should leave room around the ICSP header for the PICkit clip to attach without removing the chip from socket.
Do not assume the 64 MHz oscillator is enabled by default — CONFIG1H must set FOSC = INTIO67 for internal 16 MHz, then OSCCON's IRCF bits select 64 MHz via the PLL. The MCLR pin (RA5) requires a 10 kΩ pull-up to VDD if used as reset; if unused, tie RA5 directly to VDD. Programming the PIC18F13K22 requires high-voltage (≈8 V) on MCLR in LVP mode is not available — use HVP via ICSP or an external programmer.
For ADC accuracy, route analog inputs (AN0–AN11) away from PWM outputs (CCP1/CCP2) and digital switching signals. Use a guard ring around the analog input pin on the PCB and tie unused analog pins to VSS through 1 kΩ resistors. Configure the ADC clock period (TAD) per datasheet Table 36-26 — at 64 MHz FOSC the ADC requires a prescaler of at least /16 to meet the minimum TAD of 0.7 µs.
Thông tin tuân thủ
RoHS and REACH compliant per Microchip product page. Not AEC-Q100 qualified — for automotive applications use the automotive-screened variant or migrate to AEC-Q100 parts. Lead-free matte-tin finish. Conflict-minerals reporting (CMRT v6.x) available on request.