PIC18F13K22-I/P - 8KB Flash 8-bit nanoWatt XLP MCU | Microchip
N.º da peça: PIC18F13K22-I/P ✓ Ativo| Qtd. | Preço unitário | Total |
|---|---|---|
| 1 | $2.18 | $2,18 |
| 10 | $1.96 | $19,60 |
| 100 | $1.62 | $162,00 |
| 500 | $1.38 | $690,00 |
| 1.000 | $1.21 | $1.210,00 |
PIC18F13K22-I/P Visão geral
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.
Alternativas drop-in para PIC18F13K22-I/P — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.
Variantes desta série
Modelos da mesma série compatíveis como drop-in com PIC18F13K22-I/P (mesmo formato e footprint) — diferindo em Program Memory (Flash), Package, ADC, Operating Temperature, Mounting Type.
Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:
PIC18F14K22-I/P
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC18F13K22-E/P
✅ Drop-In✓ Em estoque
$1.05 / unidade
Ver ficha técnica →PIC18F13K22T-I/P
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC18F13K22-I/SO
✅ Drop-In✓ Em estoque
$1.49 / unidade
Ver ficha técnica →PIC18F13K22-I/SS
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC18F13K22-I/P Classificações máximas e características elétricas
| 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) |
| Encapsulamento | 20-pin PDIP (DIP-20, 0.300 inch) |
| Temperatura de operação | -40 °C to +85 °C (Industrial) |
| Tipo de montagem | Through-Hole (PDIP) |
| Status RoHS | Compliant |
Configuração de pinos do PIC18F13K22-I/P
| Pino 1 | RA7/OSC1/CLKI — Digital I/O / Oscillator crystal input / External clock input |
| Pino 2 | RA6/OSC2/CLKO — Digital I/O / Oscillator crystal output / Clock output |
| Pino 3 | RA5/MCLR/VPP — Digital I/O / Master Clear (reset) / Programming voltage |
| Pino 4 | RA4/AN4/T0CKI — Digital I/O / Analog input 4 / Timer0 clock input |
| Pino 5 | RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC positive voltage reference |
| Pino 6 | RA2/AN2/VREF- — Digital I/O / Analog input 2 / ADC negative voltage reference |
| Pino 7 | RA1/AN1 — Digital I/O / Analog input 1 |
| Pino 8 | RA0/AN0 — Digital I/O / Analog input 0 |
| Pino 9 | VSS — Ground reference |
| Pino 10 | VDD — Positive supply voltage (1.8 V–5.5 V) |
| Pino 11 | RC7/AN9 — Digital I/O / Analog input 9 |
| Pino 12 | RC6/AN8 — Digital I/O / Analog input 8 |
| Pino 13 | RC5/AN7 — Digital I/O / Analog input 7 |
| Pino 14 | RC4/AN6 — Digital I/O / Analog input 6 |
| Pino 15 | RC3/AN5/CCP2 — Digital I/O / Analog input 5 / Enhanced CCP2 PWM output |
| Pino 16 | RC2/AN6/CCP1/P1A — Digital I/O / Analog input 6 / Enhanced CCP1 PWM output |
| Pino 17 | RC1/AN7/C2OUT — Digital I/O / Analog input 7 / Comparator 2 output |
| Pino 18 | RC0/AN8 — Digital I/O / Analog input 8 |
| Pino 19 | RB7/ICSPDAT — Digital I/O / ICSP data |
| Pino 20 | RB6/ICSPCLK — Digital I/O / ICSP clock |
Aplicações típicas
PIC18F13K22-I/P é adequado para 6 aplicaçãos: 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.
Recomendado
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.
Recomendado
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.
Recomendado
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.
Recomendado
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.
Recomendado
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.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para PIC18F13K22-I/P — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | 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) |
Principais diferenciais
- Mid-density 8 KB flash with nanoWatt XLP low-power sleep (vs PIC16F886-I/P)
- Lower cost upgrade path to 16 KB flash in same footprint (vs PIC18F14K22-I/P)
- Extended temperature option in identical package (vs PIC18F13K22-E/P)
Notas de projeto
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.
Informações de conformidade
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.