PIC18F4620-I/P - 8-Bit 40MHz 64KB Flash MCU 40-PDIP | Microchip
N.º da peça: PIC18F4620-I/P ✓ Ativo| Qtd. | Preço unitário | Total |
|---|---|---|
| 1 | $7.95 | $7,95 |
| 10 | $7.16 | $71,60 |
| 100 | $6.37 | $637,00 |
| 500 | $5.72 | $2.860,00 |
| 1.000 | $5.08 | $5.080,00 |
PIC18F4620-I/P Visão geral
A microcontroller (MCU) is a single-chip computer that integrates a CPU, RAM, non-volatile program memory, peripherals, and I/O on one die. The PIC18 family is the high-end 8-bit line of Microchip's PIC architecture, sitting below the 16-bit dsPIC and PIC24 and the 32-bit PIC32 families. PIC18F-series parts use a 16-bit modified-Harvard instruction set with 8-bit data paths, which delivers a deterministic C-compiler-friendly instruction pipeline and predictable interrupt latency preferred for real-time control.
The PIC18F4620-I/P runs up to 40 MHz from a 4.2 V to 5.5 V supply, executes most instructions in 4 oscillator cycles (one instruction cycle), and integrates an internal 31 kHz to 8 MHz oscillator block with 4x PLL (8 MHz x4 = 32 MHz internal). Peripherals include a 10-bit ADC with up to 13 channels, two capture/compare/PWM (CCP/ECCP) modules, two comparators, two USART ports with LIN support, MSSP for SPI/I2C master-slave, two I2C/SPI, CTMU for capacitive touch, and nanoWatt power-down modes including Idle, Sleep, and low-power Timer1 oscillator.
Typical applications include industrial control panels, sensor signal conditioning and 4-20 mA loop interfaces, automotive body and HVAC controllers, USB HID class devices when paired with the MCP2200, small graphic/text LCD modules, and hobbyist/pro-maker projects that need reliable through-hole 40-pin PDIP for breadboarding or hand-soldered prototypes.
Design with the PIC18F4620-I/P using the MPLAB X IDE and the free XC8 compiler, programmed/debugged via the MPLAB ICD 3, MPLAB ICD 4, MPLAB PICkit 3, PICkit 4, or PICkit 5 in-circuit debugger. Always use a 100 nF decoupling capacitor on VDD as close as possible to the pin, plus a bulk 10 uF tantalum on the supply rail to ensure brown-out reset (BOR) operates correctly.
For pin-compatible upgrades, the PIC18F46K22-I/P and PIC18F4525-I/P share the same 40-pin PDIP footprint and offer 12-bit ADC and lower-power variants. This page synthesizes distributor pricing, pin-compatible drop-in alternatives, and practical design notes not found in the manufacturer datasheet.
Alternativas drop-in para PIC18F4620-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 PIC18F4620-I/P (mesmo formato e footprint) — diferindo em Operating Temperature, Timers, Program Memory (Flash), Package, Core.
Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:
PIC18F4620-E/PT
✅ Drop-In✓ Em estoque
$5.2 / unidade
Ver ficha técnica →PIC18F46K22-I/P
✅ Drop-In✓ Em estoque
$2.61 / unidade
Ver ficha técnica →PIC18F4525-I/PT
✅ Drop-In✓ Em estoque
$4.18 / unidade
Ver ficha técnica →PIC18F4520-I/P
✅ Drop-In✓ Em estoque
$5.35 / unidade
Ver ficha técnica →PIC18F45K22-I/P
✅ Drop-In✓ Em estoque
$2.1 / unidade
Ver ficha técnica →PIC18F4620-I/P Classificações máximas e características elétricas
| Series | PIC 18F |
| Core Processor | PIC |
| Core Size | 8-bit |
| Program Memory Type | Flash |
| Program Memory Size | 64 KB (32K x 16) |
| RAM Size | 3968 bytes |
| EEPROM Size | 1024 bytes |
| Maximum CPU Speed | 40 MHz (10 MIPS) |
| Supply Voltage (VDD) | 4.2 V to 5.5 V |
| Number of I/O Pins | 36 |
| ADC | 10-bit, 13 channels |
| Timers | 1 x 8/16-bit, 3 x 16-bit |
| Communication Interfaces | 2 x USART, 1 x MSSP (SPI/I2C) |
| PWM Channels | 2 x CCP/ECCP, 10-bit |
| Oscillator | Internal 31 kHz to 8 MHz + 4x PLL, plus external crystal/RC |
| Temperatura de operação | -40 C to +85 C (Industrial) |
| Encapsulamento | 40-pin PDIP (P) |
| Tipo de montagem | Through-Hole |
| Status RoHS | Compliant |
| Lead-Free | Yes |
Configuração de pinos do PIC18F4620-I/P
| Pino 1 | MCLR/RE3 — Master Clear (reset) input / digital I/O pin RE3 |
| Pino 2 | RA0/AN0 — PORTA bit 0 / analog input AN0 |
| Pino 3 | RA1/AN1 — PORTA bit 1 / analog input AN1 |
| Pino 4 | RA2/AN2/VREF- — PORTA bit 2 / analog input AN2 / ADC VREF- |
| Pino 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog input AN3 / ADC VREF+ |
| Pino 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pino 7 | RA5/AN4/SS — PORTA bit 5 / analog input AN4 / SPI slave select |
| Pino 8 | RE0/RD/AN5 — PORTE bit 0 / read control for parallel slave port / AN5 |
| Pino 9 | RE1/WR/AN6 — PORTE bit 1 / write control for parallel slave port / AN6 |
| Pino 10 | RE2/CS/AN7 — PORTE bit 2 / chip select for parallel slave port / AN7 |
| Pino 11 | VDD — Positive supply voltage (4.2 V to 5.5 V) |
| Pino 12 | VSS — Ground reference |
| Pino 13 | OSC1/CLKI/RA7 — Oscillator crystal input / external clock input / GPIO RA7 |
| Pino 14 | OSC2/CLKO/RA6 — Oscillator crystal output / clock output / GPIO RA6 |
| Pino 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| Pino 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 I/O |
| Pino 17 | RC2/CCP1 — PORTC bit 2 / CCP1 I/O |
| Pino 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pino 19 | RD0/PSP0 — PORTD bit 0 / parallel slave port bit 0 |
| Pino 20 | RD1/PSP1 — PORTD bit 1 / parallel slave port bit 1 |
| Pino 21 | RD2/PSP2 — PORTD bit 2 / parallel slave port bit 2 |
| Pino 22 | RD3/PSP3 — PORTD bit 3 / parallel slave port bit 3 |
| Pino 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pino 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pino 25 | RC6/TX/CK — PORTC bit 6 / USART asynchronous transmit / synchronous clock |
| Pino 26 | RC7/RX/DT — PORTC bit 7 / USART asynchronous receive / synchronous data |
| Pino 27 | RD4/PSP4 — PORTD bit 4 / parallel slave port bit 4 |
| Pino 28 | RD5/PSP5 — PORTD bit 5 / parallel slave port bit 5 |
| Pino 29 | RD6/PSP6 — PORTD bit 6 / parallel slave port bit 6 |
| Pino 30 | RD7/PSP7 — PORTD bit 7 / parallel slave port bit 7 |
| Pino 31 | VSS — Ground reference (second VSS pin) |
| Pino 32 | VDD — Positive supply voltage (second VDD pin) |
| Pino 33 | RB0/INT0 — PORTB bit 0 / external interrupt 0 |
| Pino 34 | RB1/INT1 — PORTB bit 1 / external interrupt 1 |
| Pino 35 | RB2/INT2 — PORTB bit 2 / external interrupt 2 |
| Pino 36 | RB3/INT3/CCP2 — PORTB bit 3 / external interrupt 3 / CCP2 I/O |
| Pino 37 | RB4/AN8 — PORTB bit 4 / analog input AN8 |
| Pino 38 | RB5/AN9 — PORTB bit 5 / analog input AN9 |
| Pino 39 | RB6/AN10/PGC — PORTB bit 6 / analog input AN10 / ICSP clock |
| Pino 40 | RB7/AN11/PGD — PORTB bit 7 / analog input AN11 / ICSP data |
Aplicações típicas
PIC18F4620-I/P é adequado para 6 aplicaçãos: Industrial Control Panels, Automotive Body and HVAC Controllers, USB HID Class Devices (with MCP2200 bridge), Sensor Signal Conditioning and 4-20 mA Loop Interfaces, Small Graphic/Text LCD Modules, Hobbyist and Maker Projects.
Industrial Control Panels
The PIC18F4620-I/P is well suited to industrial control panels where its 64 KB flash fits full Modbus RTU masters, multi-page HMI state machines, and PID control loops. Operating at 5 V from a regulated 24 V-to-5 V DC-DC converter, the device's 40 MHz / 10 MIPS throughput executes control loops in well under 100 us. Its 36 GPIO drive 4-20 mA loop transmitters, relay drivers, and discrete inputs with internal weak pull-ups. The 10-bit, 13-channel ADC reads analog sensors directly, while two USARTs handle RS-485 Modbus and an isolated RS-232 debug port simultaneously. The nanoWatt Idle mode keeps standby current low between scans, important for panels that sleep when no operator input is present.
Recomendado
Automotive Body and HVAC Controllers
In automotive body and HVAC modules the PIC18F4620-I/P runs LIN bus masters, climate control state machines, and PWM-driven blower fan controllers from 12 V battery via a 5 V regulator. The 10-bit ADC reads thermistor inputs for cabin temperature, while the two CCP modules generate PWM outputs at up to 10-bit resolution for proportional valve control. The internal 31 kHz to 8 MHz oscillator with 4x PLL provides a stable system clock without external crystal, reducing BOM cost and PCB area. The 40-pin PDIP package is preferred for prototyping; for production a -40 C to +125 C variant like PIC18F4620-E/P or the AEC-Q100 qualified PIC18F46K22-I/P is the recommended drop-in upgrade.
Recomendado
USB HID Class Devices (with MCP2200 bridge)
The PIC18F4620-I/P drives USB HID class devices like custom keyboards, barcode readers, and measurement instruments by pairing it with the MCP2200 USB-to-UART bridge. The PIC's MSSP delivers SPI data to the MCP2200, which enumerates on the host PC as a CDC virtual COM port without requiring the PIC itself to handle USB protocol stacks. The 64 KB flash is sufficient to embed full HID report tables, while the 3968-byte RAM holds the parsed USB report buffers and command queue. The 40-PDIP package simplifies hand-soldered prototypes that hobbyists and small-batch manufacturers prefer. The two USARTs allow simultaneous debug logging and HID data exchange at high baud rates.
Recomendado
Sensor Signal Conditioning and 4-20 mA Loop Interfaces
The PIC18F4620-I/P excels at sensor signal conditioning where its 13-channel 10-bit ADC digitizes bridge sensors, RTDs, and pressure transducers, and its two comparators handle window detection for alarm outputs. With 3968 bytes of RAM the device can hold linearization lookup tables for non-linear sensors (thermistor Steinhart-Hart, RTD Callendar-Van Dusen) plus moving-average filters. Two USARTs allow direct RS-485 Modbus RTU output to a PLC while a second UART drives an operator display. The MSSP runs an I2C OLED status panel and SPI EEPROM data logger simultaneously. The nanoWatt Idle mode lets battery-backed field units sleep between measurements, and the 64 KB flash holds full calibration constants per channel.
Recomendado
Small Graphic/Text LCD Modules
The PIC18F4620-I/P drives character LCDs and small graphic LCDs in industrial operator panels and instrumentation where its MSSP runs 4-wire SPI for ST7565/ST7920 controllers while a second USART handles serial commands. Its 64 KB flash stores font tables and multi-language menus for translation between Latin, Cyrillic, and CJK character sets, and the 3968-byte RAM holds the display refresh buffer without flicker. The two CCP/ECCP modules generate backlight PWM and contrast control voltages from a single 5 V rail, simplifying the BOM. The 40-pin PDIP package makes hand-soldering prototype front-panel boards straightforward, and the nanoWatt power-down modes let the LCD backlight sleep when the operator is idle.
Recomendado
Hobbyist and Maker Projects
The PIC18F4620-I/P remains a popular choice among hobbyists and STEM educators because the 40-pin PDIP package drops into breadboards and perfboard without SMD soldering, while the 5 V operating range simplifies interfacing with hobby sensors that expect 5 V logic. Its 64 KB flash accommodates full XC8 firmware including libraries for character LCDs, DHT22, GPS parsing, and motor control. The 36 GPIO directly drive hobby servos, stepper motor drivers, and WS2812 LED strips via bit-banged SPI. Programming uses the low-cost PICkit 3, PICkit 4, or PICkit 5 in-circuit debugger with MPLAB X IDE and the free XC8 compiler, keeping the development toolchain inexpensive. The PIC18F4620-I/P is also widely emulated in Proteus for circuit simulation in classroom settings.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para PIC18F4620-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 | PIC18F4620-E/P | PIC18F46K22-I/P | PIC18F4525-I/P | PIC18F4520-I/P | PIC18F45K22-I/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 40-pin PDIP | 40-pin PDIP (same) | 40-pin PDIP (same) | 40-pin PDIP (same) | 40-pin PDIP (same) | 40-pin PDIP (same) |
| Flash Memory | 64 KB | 64 KB | 64 KB | 48 KB | 32 KB | 32 KB |
| RAM Size | 3968 bytes | 3968 bytes | 3968 bytes | 2560 bytes | 2048 bytes | 2048 bytes |
| ADC Resolution | 10-bit | 10-bit | 12-bit | 10-bit | 10-bit | 12-bit |
| Max CPU Speed | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 64 MHz / 16 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 64 MHz / 16 MIPS |
| Supply Voltage | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 2.3 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 2.3 V to 5.5 V |
| Operating Temperature | -40 C to +85 C | -40 C to +125 C (extended) | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C |
| EEPROM | 1024 bytes | 1024 bytes | 1024 bytes | 1024 bytes | 1024 bytes | 1024 bytes |
Principais diferenciais
- Largest flash and RAM among PIC18F4620 family at 64 KB and 3968 bytes (vs PIC18F4525-I/P)
- Pin-compatible upgrade path to 12-bit ADC and XLP nanoWatt power (vs PIC18F46K22-I/P)
- Through-hole DIP package preferred for prototyping and education (vs PIC18F4620-I/PT)
- Mature firmware ecosystem with PICkit 3/4/5 and XC8 compiler (vs PIC18F4520-I/P)
Notas de projeto
Always place a 100 nF ceramic decoupling capacitor on each VDD pin (pin 11 and pin 32 on the 40-PDIP) as close as physically possible to the IC, with traces no longer than 5 mm. Add a bulk 10 uF tantalum or low-ESR ceramic on the 5 V rail near the MCU. Both VSS pins (12 and 31) must connect to a low-impedance ground plane. Brown-out reset (BOR) must be enabled in configuration bits so the PIC18F4620-I/P holds the MCLR low until VDD reaches a valid threshold, preventing flash corruption during power-up.
Do not float the MCLR/RE3 pin (pin 1). If left floating, the MCU can enter programming mode or reset randomly due to noise. Either tie MCLR to VDD through a 10 kohm resistor with a 100 nF cap to ground, or drive it from the PICkit's reset line. Configuration bits must explicitly disable the internal weak pull-up if you use RE3 as a digital I/O. Forgetting to set config bits LVP=OFF and DEBUG=OFF in production code will lock the device into low-voltage programming mode.
Keep the 40 MHz oscillator traces (OSC1/OSC2, pins 13/14) short, symmetric, and surrounded by a ground guard ring. Place the crystal or resonator within 10 mm of the pins and use a clean analog ground if possible. The ICSP pins PGC and PGD (RB6/RB7, pins 39/40) must remain accessible for in-circuit debugging via the PICkit header. Route the parallel slave port (PORTD/PSP and PORTE/RD/WR/CS, pins 8-10 and 19-22 and 27-30) as grouped bus lines if PSP is enabled, with ground traces between data lines for signal integrity.
When the MSSP runs I2C at 400 kHz or faster, add 4.7 kohm pull-up resistors on SCL (RC3, pin 18) and SDA (RC4, pin 23) as recommended by the I2C specification. The PIC18F4620-I/P internal weak pull-ups are insufficient for reliable 400 kHz / 1 MHz I2C. For SPI at 10 MHz, route SCK (RC3), SDI (RC4), SDO (RC5) as matched-length traces within a few millimetres of each other. Use a 100 ohm series terminator near the master when driving long slave cables.
For the 40-pin PDIP footprint, use 0.6 mm drill (for 0.5 mm pin), 1.85 mm pad diameter, and 2.54 mm pitch. Add a small silkscreen pin-1 marker near pin 1 (MCLR/RE3) for orientation. Through-hole pad design allows easy hand-soldering for prototype and education. For production volume, move to PIC18F4620-I/PT (44-TQFP) with the same firmware and configuration bits to save board space.
Informações de conformidade
RoHS compliant per Microchip product page and DigiKey listing. Industrial -40 C to +85 C temperature range; choose -E variants for extended -40 C to +125 C range. Not AEC-Q100 qualified; the K22 family has AEC-Q100 qualified variants for automotive.