PIC18F6628-E/PT - 8-Bit 25MHz 96KB Flash MCU | Microchip
MPN: PIC18F6628-E/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $8.42 | $8.42 |
| 10 | $7.71 | $77.10 |
| 100 | $6.85 | $685.00 |
| 500 | $6.12 | $3,060.00 |
| 1,000 | $5.54 | $5,540.00 |
PIC18F6628-E/PT Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU, program and data memory, peripherals, and I/O onto one silicon die. The PIC18F family sits in Microchip's 8-bit hierarchy above baseline PIC10/12/16 families and below the 16-bit dsPIC and 32-bit SAM ARM Cortex-M lines, balancing low power consumption, deterministic interrupt latency, and rich peripheral integration for cost-sensitive embedded control.
Key specifications include a wide 4.2V to 5.5V supply range, 10-bit ADC up to 12 channels, 5 CCP/ECCP modules for PWM and motor control, parallel slave port for external bus expansion, hardware 8x8 multiplier, and nanoWatt power-saving modes. The 'E' suffix indicates the Extended (-40°C to +125°C) operating temperature grade suitable for harsh industrial environments. The -PT suffix denotes the TQFP-64 (10x10 mm) surface-mount package.
Architecturally, the PIC18F6628 uses a RISC Harvard architecture with separate program and data buses, a 16-bit instruction word, and a hardware multiply/divide unit delivering 25 MIPS at 25 MHz (40 MHz external oscillator with 4x PLL disabled). It supports ICD/ICSP in-circuit debugging and Flash self-programming via bootloader.
Typical applications include industrial automation controllers, automotive body and HVAC modules, building automation panels, LIN/J1939 networked sensors, graphical LCD user interfaces with touch, USB-to-UART bridges using external PHYs, and uninterruptible power supply monitors. The dual USART/LIN interface enables low-cost automotive body networks.
When designing with this part, leave ample ground copper and follow Microchip's TQFP-64 thermal pad recommendations even when the thermal pad is electrically floating, since reduced die-to-PCB thermal resistance aids power dissipation. Always configure unused I/O as outputs with logic-low to minimize current draw in standby, and reserve the ICSPDAT/ICSPCLK pins for in-circuit serial programming.
Drop-in alternatives for PIC18F6628-E/PT — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with PIC18F6628-E/PT (same form factor and footprint) — differing in Package, Timers, Core Architecture, Operating Temperature, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F6627-I/PT
✅ Drop-In✓ In Stock
$5.42 / Unit
View Datasheet →PIC18F6628-I/PT
✅ Drop-In✓ In Stock
$5.2 / Unit
View Datasheet →PIC18F6622-E/PT
✅ Drop-In✓ In Stock
$6.71 / Unit
View Datasheet →PIC18F6621-I/PT
✅ Drop-In✓ In Stock
$8.15 / Unit
View Datasheet →PIC18F6620T-I/PT
✅ Drop-In✓ In Stock
$4.18 / Unit
View Datasheet →PIC18F67K22-E/PT
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$5.1 / Unit
View Datasheet →PIC18F6628-E/PT Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18F (8-bit RISC) |
| CPU Speed | 25 MIPS at 25 MHz (max 40 MHz oscillator) |
| Program Memory | 96 KB Flash (48K x 16) |
| RAM | 4 KB |
| EEPROM | 1 KB |
| I/O Pins | 54 |
| Supply Voltage | 4.2 V to 5.5 V |
| ADC | 10-bit, up to 12 channels |
| CCP/ECCP Modules | 5 (Capture/Compare/PWM) |
| Serial Interfaces | 2x MSSP (I²C/SPI) + 2x EUSART (LIN-capable) |
| Timers | 1x 8-bit + 3x 16-bit |
| Parallel Slave Port | Yes (PSP) |
| Operating Temperature | -40°C to +125°C (Extended grade) |
| Package | 64-pin TQFP (10x10 mm) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
| ICSP Programming | Yes (In-Circuit Serial Programming) |
PIC18F6628-E/PT Pin Configuration
| Pin 1 | RG0 — I/O port G bit 0 |
| Pin 2 | RG1 — I/O port G bit 1 |
| Pin 3 | RG2 — I/O port G bit 2 |
| Pin 4 | RG3 — I/O port G bit 3 |
| Pin 5 | MCLR — Master Clear / Reset input (active low) |
| Pin 6 | RG4 — I/O port G bit 4 |
| Pin 7 | RA0/AN0 — I/O port A bit 0 / Analog input 0 |
| Pin 8 | RA1/AN1 — I/O port A bit 1 / Analog input 1 |
| Pin 9 | RA2/AN2 — I/O port A bit 2 / Analog input 2 |
| Pin 10 | RA3/AN3 — I/O port A bit 3 / Analog input 3 |
| Pin 11 | RA4/AN4 — I/O port A bit 4 / Analog input 4 |
| Pin 12 | RA5/AN5 — I/O port A bit 5 / Analog input 5 |
| Pin 13 | RA6 — I/O port A bit 6 |
| Pin 14 | RA7 — I/O port A bit 7 |
| Pin 15 | VSS — Ground reference |
| Pin 16 | OSC1 — Crystal oscillator input |
| Pin 17 | OSC2 — Crystal oscillator output |
| Pin 18 | VDD — Positive supply voltage |
| Pin 19 | VSS — Ground reference |
| Pin 20 | RB0/AN12/INT0 — I/O port B bit 0 / Analog 12 / External interrupt 0 |
| Pin 21 | RB1/AN10/INT1 — I/O port B bit 1 / Analog 10 / External interrupt 1 |
| Pin 22 | RB2/AN8/INT2 — I/O port B bit 2 / Analog 8 / External interrupt 2 |
| Pin 23 | RB3/AN9/INT3 — I/O port B bit 3 / Analog 9 / External interrupt 3 |
| Pin 24 | RB4/AN11 — I/O port B bit 4 / Analog 11 |
| Pin 25 | RB5/PGM — I/O port B bit 5 / LVP programming |
| Pin 26 | RB6/PGC — I/O port B bit 6 / ICSP clock |
| Pin 27 | RB7/PGD — I/O port B bit 7 / ICSP data |
| Pin 28 | VDD — Positive supply voltage |
| Pin 29 | VSS — Ground reference |
| Pin 30 | RD0/PSP0 — I/O port D bit 0 / Parallel Slave Port bit 0 |
| Pin 31 | RD1/PSP1 — I/O port D bit 1 / Parallel Slave Port bit 1 |
| Pin 32 | RD2/PSP2 — I/O port D bit 2 / Parallel Slave Port bit 2 |
| Pin 33 | RD3/PSP3 — I/O port D bit 3 / Parallel Slave Port bit 3 |
| Pin 34 | RD4/PSP4 — I/O port D bit 4 / Parallel Slave Port bit 4 |
| Pin 35 | RD5/PSP5 — I/O port D bit 5 / Parallel Slave Port bit 5 |
| Pin 36 | RD6/PSP6 — I/O port D bit 6 / Parallel Slave Port bit 6 |
| Pin 37 | RD7/PSP7 — I/O port D bit 7 / Parallel Slave Port bit 7 |
| Pin 38 | VSS — Ground reference |
| Pin 39 | VDD — Positive supply voltage |
| Pin 40 | RC0/T1OSO — I/O port C bit 0 / Timer1 oscillator output |
| Pin 41 | RC1/T1OSI — I/O port C bit 1 / Timer1 oscillator input |
| Pin 42 | RC2/CCP1 — I/O port C bit 2 / Capture/Compare/PWM 1 |
| Pin 43 | RC3/SCL1 — I/O port C bit 3 / I²C clock (MSSP1) |
| Pin 44 | RC4/SDA1 — I/O port C bit 4 / I²C data (MSSP1) |
| Pin 45 | RC5/SDO1 — I/O port C bit 5 / SPI data out (MSSP1) |
| Pin 46 | RC6/TX1/CK1 — I/O port C bit 6 / EUSART1 TX / clock |
| Pin 47 | RC7/RX1/DT1 — I/O port C bit 7 / EUSART1 RX / data |
| Pin 48 | VSS — Ground reference |
| Pin 49 | VDD — Positive supply voltage |
| Pin 50 | RE0/RD — I/O port E bit 0 / Parallel port read |
| Pin 51 | RE1/WR — I/O port E bit 1 / Parallel port write |
| Pin 52 | RE2/CS — I/O port E bit 2 / Parallel port chip select |
| Pin 53 | RE3 — I/O port E bit 3 |
| Pin 54 | RE4 — I/O port E bit 4 |
| Pin 55 | RE5 — I/O port E bit 5 |
| Pin 56 | RE6 — I/O port E bit 6 |
| Pin 57 | RE7 — I/O port E bit 7 |
| Pin 58 | RF0/AN6 — I/O port F bit 0 / Analog input 6 |
| Pin 59 | RF1/AN7 — I/O port F bit 1 / Analog input 7 |
| Pin 60 | RF2 — I/O port F bit 2 |
| Pin 61 | RF3 — I/O port F bit 3 |
| Pin 62 | RF4 — I/O port F bit 4 |
| Pin 63 | RF5 — I/O port F bit 5 |
| Pin 64 | RF6 — I/O port F bit 6 |
Typical Applications
PIC18F6628-E/PT is suitable for 7 applications: Industrial Automation Controllers, Automotive Body and HVAC Modules, Graphical LCD User Interfaces, Uninterruptible Power Supply (UPS) Monitors, Building Automation Panels, Medical Monitoring Devices, USB-to-UART Bridge Modules.
Industrial Automation Controllers
The PIC18F6628-E/PT is well-suited for industrial PLCs, conveyor controllers, and sensor hubs where its 96KB Flash and 54 I/O pins handle multiple motor drivers and digital inputs. The Extended -40C to +125C temperature grade tolerates factory-floor thermal swings near motor enclosures. Its 25 MIPS performance executes PID loops and Modbus ASCII/RTU frames without an external DSP. NanoWatt sleep modes drop quiescent current below 100 nA in standby for energy-conscious field installations.
Recommended
Automotive Body and HVAC Modules
The PIC18F6628-E/PT's dual EUSART with LIN 1.2/2.0/2.1 compliance enables body control modules that aggregate switch, sensor, and HVAC data over LIN buses. The 96KB Flash stores communication stacks, calibration tables, and HVAC control firmware. Extended temperature grade ensures reliable cold-crank and under-hood operation. Four serial ports (MSSP+I2C/SPI + 2x EUSART) bridge LIN body networks to a central gateway without an external UART expander.
Recommended
Graphical LCD User Interfaces
The PIC18F6628-E/PT drives 128x64 to 320x240 monochrome graphical LCDs through its parallel slave port and MSSP peripherals in SPI mode. Its 4KB SRAM doubles as a display frame buffer for partial-screen updates without flicker. Five CCP/ECCP modules deliver PWM backlight dimming, key-click feedback, and indicator LED control. The 25 MIPS CPU executes custom GUI rendering, touch scanning, and menu navigation fluidly with room for USB-serial bootloader updates.
Recommended
Uninterruptible Power Supply (UPS) Monitors
Battery-backed UPS systems use the PIC18F6628-E/PT to monitor mains voltage, battery state-of-charge, load current, and temperature with its 10-bit ADC across 12 channels. The Extended temperature rating supports operation near battery cabinets. 96KB Flash stores voltage/frequency transfer tables, alarm logs, and inverter control algorithms. nanoWatt sleep modes cut standby draw to a few microamps when mains is healthy, prolonging battery life.
Recommended
Building Automation Panels
Building automation hubs for HVAC, lighting, and access control rely on the PIC18F6628-E/PT to bridge BACnet MS-TP, Modbus, and proprietary protocols through its dual EUSARTs. Its 54 I/O pins scan multiple keypad switches and drive triac outputs directly. The 4KB SRAM handles message buffering for incoming telemetry. Extended temperature grade supports unheated electrical closets, and the 96KB Flash accommodates protocol stacks and configuration UI.
Recommended
Medical Monitoring Devices
Patient-side medical peripherals such as blood-pressure monitors, infusion pumps, and pulse oximeters benefit from the PIC18F6628-E/PT's combination of deterministic 8-bit performance and 96KB Flash for signal-processing firmware. Its 10-bit ADC digitizes analog sensor outputs while MSSP peripherals drive OLED displays and store patient data to external EEPROM. The Extended temperature grade supports portable equipment used across diverse clinical environments. The PIC18 heritage offers long-term firmware stability for regulatory submissions.
Recommended
USB-to-UART Bridge Modules
USB-to-serial debug and field-service bridges leverage the PIC18F6628-E/PT's two EUSART peripherals to fan out to multiple RS-232/RS-485 channels simultaneously. With 96KB Flash, a CDC ACM stack plus vendor command firmware fit comfortably. The 25 MIPS throughput sustains full-rate UART traffic at 921600 baud without data loss. ICSP allows in-field firmware upgrades for adapting to new device protocols in service tools.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F6628-E/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F6627-I/PT | PIC18F6628-I/PT | PIC18F6622-E/PT | PIC18F6621-I/PT | PIC18F6620T-I/PT | PIC18F67K22-E/PT |
|---|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 64-pin TQFP (10x10 mm) | 64-pin TQFP (10x10 mm) - same | 64-pin TQFP (10x10 mm) - same | 64-pin TQFP (10x10 mm) - same | 64-pin TQFP (10x10 mm) - same | 64-pin TQFP (10x10 mm) - same | 64-pin TQFP (10x10 mm) - same |
| Program Memory (Flash) | 96 KB | 96 KB | 96 KB | 64 KB | 64 KB | 64 KB | 128 KB |
| RAM | 4 KB | 4 KB | 4 KB | 4 KB | 4 KB | 4 KB | 8 KB |
| CPU Speed (MIPS) | 25 MIPS @ 25 MHz | 25 MIPS @ 25 MHz | 25 MIPS @ 25 MHz | 25 MIPS @ 25 MHz | 25 MIPS @ 25 MHz | 25 MIPS @ 25 MHz | 16 MIPS @ 64 MHz |
| ADC | 10-bit, up to 12 channels | 10-bit, ~10 channels | 10-bit, up to 12 channels | 10-bit | 10-bit | 10-bit | 12-bit |
| Temperature Grade | Extended (-40C to +125C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) | Extended (-40C to +125C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) | Extended (-40C to +125C) |
| Power-Saving Mode | nanoWatt Technology | nanoWatt Technology | nanoWatt Technology | nanoWatt Technology | nanoWatt Technology | nanoWatt Technology | eXtreme Low Power (XLP) |
Key Differentiators
- Largest Flash in the F66x2 family at 96 KB (vs PIC18F6622-E/PT)
- Extended -40C to +125C temperature grade vs Industrial on F6628-I/PT (vs PIC18F6628-I/PT)
- Wider ADC channel availability on analog-capable pins (vs PIC18F6627-I/PT)
- nanoWatt technology rather than newer XLP (vs PIC18F67K22-E/PT)
Design Notes
The PIC18F6628-E/PT operates from 4.2V to 5.5V. Provide at least 100 nF decoupling on each VDD/VSS pair (pins 18/19, 28/29, 39/48) placed within 5 mm of the pin, plus a bulk 10 uF tantalum near the supply entry. Add a 10 kohm pull-up to VDD on the MCLR pin (pin 5) with a series diode to VDD for protection against ESD-induced reset. Estimated: total decoupling ESR budget should remain below 50 milliohm at the switching frequencies used by the on-chip PLL.
The 64-pin TQFP (10x10 mm) has a 0.5 mm pitch and 0.6 mm pad width. Use NSMD land pads 0.4 mm wide with 0.2 mm solder mask expansion. Route signals on inner layers first to escape the dense perimeter; keep traces 0.15 mm or wider to maintain 50-ohm impedance if controlled-impedance routing is needed. The exposed die attach pad (if present in this package variant) should be soldered to a 7 mm x 7 mm copper island for thermal dissipation even though it is electrically floating per the datasheet.
Do not enable low-voltage ICSP (LVP) via the LVP_CONFIG fuse unless pin RB5 is dedicated to programming; otherwise the device may fail to start in noisy environments. Configure all unused I/O as outputs driving low to minimize current draw in sleep mode. Always read the configuration bits with the right ID mask - PIC18F6628 and PIC18F6627 have similar device IDs but different peripheral disable masks. When migrating firmware between F6628 and F6627, re-verify ADC channel mappings for AN6-AN12.
Compliance Information
RoHS and REACH compliant per Microchip product page. Lead-free (Pb-free) TQFP-64 package. Not AEC-Q100 qualified - automotive applications should use the AEC-Q100 qualified PIC18F6628-E/PT automotive equivalent or a K22 variant.