PIC18F6628-I/PT - 8-bit 40MHz 96KB Flash MCU TQFP-64 | Microchip
MPN: PIC18F6628-I/PT ✓ فعالPIC18F6628-I/PT جائزہ
An 8-bit microcontroller (MCU) is a single-chip computer built around an 8-bit data path and Harvard or Von Neumann architecture, integrating CPU, ROM/Flash, RAM, and peripherals into one package. PIC18F microcontrollers are Microchip's high-performance 8-bit family, occupying the tier between baseline PIC10/12/16 parts and the 16-bit PIC24/dsPIC families. Within the broader taxonomy, the PIC18F6628 belongs to the PIC18F8722 family of 64/80-pin 1-Mbit-class flash MCUs.
Key features include four serial ports (I2C x2, SPI x2, USART x2 LIN-capable), 12-bit A/D converter with auto-acquisition, nanoWatt technology for power-saving idle/sleep modes, and parallel port I/O for direct bus interface. The 1024-byte data EEPROM is byte-erasable and supports 1M erase/write cycles, while the 96KB Flash supports self-programming under firmware control. Operating voltage is 2.0 V to 5.5 V across the industrial temperature range of -40C to +85C.
Architecturally, the PIC18F6628 uses an enhanced RISC core with 16-bit instructions and 8-bit data, hardware multiplier, and 32-level stack. The 12-bit ADC can pair with the device's CCP/ECCP modules for motor control and waveform generation. Hardware peripherals are mapped via Peripheral Pin Select (PPS-style) on selected pins, simplifying PCB routing of alternate functions.
Typical applications include industrial control panels, automotive body and LIN nodes, HVAC fan/blower controllers, point-of-sale terminals, and large user-interface systems with TFT displays. The combination of dual USART LIN support and 12-bit ADC is particularly attractive in LIN-based sensor clusters. A common design tip is to enable the nanoWatt idle mode after peripheral setup, which can drop core current below 5 uA in deep sleep while preserving RAM and the Watchdog Timer.
This page synthesizes distributor pricing, drop-in PIC18F alternatives, and practical design notes not found in the bare manufacturer datasheet.
کے لیے ڈراپ اِن متبادل PIC18F6628-I/PT — یکساں پیکیج، پن سے پن مطابقت پذیر۔ مختلف پیکیج والے پرزے جن کے لیے PCB دوبارہ کام درکار ہو، شامل نہیں ہیں۔
اس سیریز میں مختلف ورژن
اسی سیریز کے ماڈلز جو ڈراپ اِن مطابقت رکھتے ہیں PIC18F6628-I/PT (یکساں فارم فیکٹر اور فٹ پرنٹ) — میں مختلف Package, Core Architecture, ADC, Timers, Operating Temperature.
PIC18F6627-I/PT
✅ ڈراپ-اِنقیمت کے لیے رابطہ کریں
ڈیٹا شیٹ دیکھیں →PIC18F6722-I/PT
✅ ڈراپ-اِنقیمت کے لیے رابطہ کریں
ڈیٹا شیٹ دیکھیں →PIC18F6628-E/PT
✅ ڈراپ-اِنقیمت کے لیے رابطہ کریں
ڈیٹا شیٹ دیکھیں →PIC18F6622-E/PT
✅ ڈراپ-اِنقیمت کے لیے رابطہ کریں
ڈیٹا شیٹ دیکھیں →PIC18F6621-I/PT
✅ ڈراپ-اِنقیمت کے لیے رابطہ کریں
ڈیٹا شیٹ دیکھیں →PIC18F6628-I/PT زیادہ سے زیادہ ریٹنگز اور برقی خصوصیات
| Core Architecture | PIC18 (8-bit RISC, enhanced) |
| Program Memory (Flash) | 96 KB (48K x 16 words) |
| Data SRAM | 4 KB |
| Data EEPROM | 1024 bytes |
| Maximum CPU Frequency | 40 MHz (10 MIPS) |
| Operating Voltage (VDD) | 2.0 V to 5.5 V |
| ADC | 12-bit, up to 12 channels |
| I2C | 2 (Synchronous Serial Port) |
| SPI | 2 (Synchronous Serial Port) |
| USART / LIN | 2 (LIN-capable) |
| I/O Pins | Up to 53 (TQFP-64) |
| پیکیج | 64-pin TQFP (10x10 mm) |
| ماؤنٹنگ ٹائپ | Surface Mount |
| Operating Temperature (I grade) | -40C to +85C |
| Power-Saving Modes | nanoWatt (Idle, Sleep, Deep Sleep) |
| RoHS اسٹیٹس | Compliant (PT suffix = Pb-free TQFP) |
PIC18F6628-I/PT پن کنفیگریشن
| پن 1 | RG0/AN19/C1INA-/P1D/ECCP3 — I/O port RG0, analog input, CCP3 PWM |
| پن 2 | RG1/AN20/C1INB-/P1C/ECCP3 — I/O port RG1, analog input, CCP3 PWM |
| پن 3 | RG2/AN21/C2INA/P1B/ECCP3 — I/O port RG2, analog input, CCP3 PWM |
| پن 4 | RG3/AN22/C2INB/P1C/ECCP3 — I/O port RG3, analog input, CCP3 PWM |
| پن 5 | RG4/RTCC/T5CKI/AN23 — I/O port RG4, RTCC output, Timer5 clock |
| پن 6 | RE0/RD/AN5 — I/O port RE0, parallel port read |
| پن 7 | RE1/WR/AN6 — I/O port RE1, parallel port write |
| پن 8 | RE2/CS/AN7 — I/O port RE2, parallel port chip select |
| پن 9 | AVDD — Analog supply voltage |
| پن 10 | AVSS — Analog ground |
| پن 11 | RA0/AN0 — I/O port RA0, analog input 0 |
| پن 12 | RA1/AN1 — I/O port RA1, analog input 1 |
| پن 13 | RA2/AN2/VREF- — I/O port RA2, analog input 2, VREF- |
| پن 14 | RA3/AN3/VREF+ — I/O port RA3, analog input 3, VREF+ |
| پن 15 | RA4/T0CKI — I/O port RA4, Timer0 clock input |
| پن 16 | RA5/AN4 — I/O port RA5, analog input 4 |
| پن 17 | VSS — Digital ground |
| پن 18 | OSC1/CLKI/RA7 — Oscillator crystal input / external clock |
| پن 19 | OSC2/CLKO/RA6 — Oscillator crystal output |
| پن 20 | VDD — Digital supply voltage |
| پن 21 | RB0/INT0/FLT0 — I/O port RB0, external interrupt 0 |
| پن 22 | RB1/INT1 — I/O port RB1, external interrupt 1 |
| پن 23 | RB2/INT2 — I/O port RB2, external interrupt 2 |
| پن 24 | RB3/INT3/ECCP2/P2A — I/O port RB3, CCP2 PWM |
| پن 25 | RB4/KBI0 — I/O port RB4, keyboard interrupt |
| پن 26 | RB5/KBI1 — I/O port RB5, keyboard interrupt |
| پن 27 | RB6/KBI2/PGC — I/O port RB6, ICSP clock |
| پن 28 | RB7/KBI3/PGD — I/O port RB7, ICSP data |
| پن 29 | VSS — Digital ground |
| پن 30 | VDD — Digital supply voltage |
| پن 31 | RC0/T1CKI/T1OSO — I/O port RC0, Timer1 clock |
| پن 32 | RC1/T1OSI/ECCP2/P2A — I/O port RC1, CCP2 PWM |
| پن 33 | RC2/ECCP1/P1A — I/O port RC2, CCP1 PWM |
| پن 34 | RC3/SCK1/SCL1 — I/O port RC3, SPI1 clock, I2C1 clock |
| پن 35 | RC4/SDI1/SDA1 — I/O port RC4, SPI1 data in, I2C1 data |
| پن 36 | RC5/SDO1 — I/O port RC5, SPI1 data out |
| پن 37 | RC6/TX1/CK1 — I/O port RC6, USART1 transmit |
| پن 38 | RC7/RX1/DT1 — I/O port RC7, USART1 receive |
| پن 39 | RD0/PSP0/C1INA+ — I/O port RD0, parallel port |
| پن 40 | RD1/PSP1/C1INB+ — I/O port RD1, parallel port |
| پن 41 | RD2/PSP2/C2INA+ — I/O port RD2, parallel port |
| پن 42 | RD3/PSP3/C2INB+ — I/O port RD3, parallel port |
| پن 43 | RD4/PSP4/ECCP3/P3D — I/O port RD4, CCP3 PWM |
| پن 44 | RD5/PSP5/ECCP3/P3C — I/O port RD5, CCP3 PWM |
| پن 45 | RD6/PSP6/ECCP3/P3B — I/O port RD6, CCP3 PWM |
| پن 46 | RD7/PSP7/ECCP3/P3A — I/O port RD7, CCP3 PWM |
| پن 47 | VSS — Digital ground |
| پن 48 | VDD — Digital supply voltage |
| پن 49 | RF0/AN16 — I/O port RF0, analog input 16 |
| پن 50 | RF1/AN17/C2OUT — I/O port RF1, analog input 17, comparator output |
| پن 51 | RF2/AN18/C1OUT — I/O port RF2, analog input 18, comparator output |
| پن 52 | RF3/AN8 — I/O port RF3, analog input 8 |
| پن 53 | RF4/AN9 — I/O port RF4, analog input 9 |
| پن 54 | RF5/AN10/CVREF — I/O port RF5, analog input 10, CVREF |
| پن 55 | RF6/AN11 — I/O port RF6, analog input 11 |
| پن 56 | RF7/AN12 — I/O port RF7, analog input 12 |
| پن 57 | MCLR — Master clear reset input (active-low) |
| پن 58 | SCK2/SCL2/RC3 — I2C2/SPI2 clock (alternate function) |
| پن 59 | SDI2/SDA2/RC4 — I2C2/SPI2 data (alternate function) |
| پن 60 | SDO2/RC5 — SPI2 data out |
| پن 61 | TX2/CK2/RC6 — USART2 transmit |
| پن 62 | RX2/DT2/RC7 — USART2 receive |
| پن 63 | VSS — Digital ground |
| پن 64 | VDD — Digital supply voltage |
عام استعمالات
PIC18F6628-I/PT کے لیے موزوں ہے 6 ایپلیکیشنs: Automotive LIN Body Electronics, Industrial Control Panels with TFT Display, HVAC Blower and Damper Controllers, Point-of-Sale (POS) Terminals, Smart Sensor Hubs with Multi-Bus Aggregation, Educational and Prototyping Boards.
Automotive LIN Body Electronics
The PIC18F6628-I/PT's dual LIN-capable USART, 12-bit ADC, and nanoWatt power-saving modes make it well suited for automotive body modules such as door/window/seat controllers and HVAC blend-door actuators. LIN bus nodes require the second USART to act as a LIN master while the first serves as a LIN slave, exactly mirroring the PIC18F6628's dual-USART topology. The 12-bit ADC reading position feedback from a potentiometer or thermistor reaches 12 ksps with auto-acquisition, sufficient for 50 Hz servo control loops. Placing the device as a LIN slave node off a master BCM keeps the network topology simple; firmware uses the EUSART LIN framing with auto-baud detection. Designers can idle the MCU between LIN frames in Sleep mode, with the LIN break detector waking it. Compared with discrete 8/16-bit MCU + LIN transceiver solutions, the integrated USART simplifies BOM cost.
تجویز کردہ
Industrial Control Panels with TFT Display
The PIC18F6628-I/PT drives mid-size industrial HMI panels requiring parallel bus connection to 3.5" to 4.3" TFTs, with the parallel port acting as an 8-bit external data bus while SPI runs the touch controller and I2C manages the ambient-light/temperature sensors. With 96 KB Flash, the MCU holds graphics tables, multi-language strings, and the Modbus RTU state machine without external memory. The 12-bit ADC samples panel-supply current and analog buttons with 0.5 mV resolution at 5 V VDD. The device's nanoWatt modes let the panel drop below 5 uA in standby between user interactions while retaining the LCD controller and live RTC. Compared to PIC24-only designs, the PIC18F6628-I/PT brings ample code space at lower cost.
تجویز کردہ
HVAC Blower and Damper Controllers
The PIC18F6628-I/PT is well matched to variable-speed HVAC blower and damper controllers that need a 12-bit ADC for closed-loop tach feedback, PWM for triac/IGBT gating, and dual UART for Modbus plus diagnostic logging. The ECCP module generates a 25 kHz PWM with hardware fault shutdown, while the 12-bit ADC measures motor current at 100 ksps for overcurrent detection within 10 us. The device's dual I2C bus connects to EEPROM-stored trim coefficients and an airflow-pressure sensor, leaving SPI free for an SPI EEPROM bootloader. nanoWatt Sleep drops system standby to 2 uA when the blower is idle. Compared to discrete MCU + analog PI control, integrating the 12-bit ADC removes an external ADC chip.
تجویز کردہ
Point-of-Sale (POS) Terminals
The PIC18F6628-I/PT supports compact POS terminals that handle a 4-line LCD, mag-stripe reader, NFC frontend, and encrypted keypad matrix in a single chip. With 53 I/O pins in TQFP-64, the MCU directly drives the LCD segment bus, magnetic-head amplifiers, and a 4x4 keypad scan without an I/O expander. The two SPI ports separate NFC from the mag-stripe codec, while a single I2C connects to a secure authentication IC. 96 KB Flash comfortably holds the EMV transaction state machine, firmware-update bootloader, and certificate storage. Compared with 32-bit Cortex-M0 designs, the PIC18F6628-I/PT cuts unit cost while preserving the deterministic interrupt latency needed for mag-stripe sampling.
تجویز کردہ
Smart Sensor Hubs with Multi-Bus Aggregation
The PIC18F6628-I/PT is suited to sensor hubs that aggregate I2C sensors, SPI IMUs, and UART GPS data into one stream. With dual I2C, dual SPI, and dual USART, the MCU connects to a 6-axis IMU (SPI), barometric/environmental sensor pair (I2C), and GPS receiver (UART) concurrently without bus contention. The 12-bit ADC samples analog channels like battery current or temperature, and 4 KB RAM holds 50 Hz sensor fusion windows. The nanoWatt Sleep modes are critical for battery-powered hubs: the device wakes on INT, performs a sensor read burst, and returns to sleep within 5 ms. Compared to ASIC sensor-fusion solutions, the PIC18F6628-I/PT offers firmware-level flexibility for custom sensor suites.
تجویز کردہ
Educational and Prototyping Boards
The PIC18F6628-I/PT is widely used in university embedded-systems courses and prototyping platforms because of its rich peripheral set, 96 KB Flash, and Microchip's mature toolchain (MPLAB X IDE, XC8 compiler, PICkit programmer). Students can experiment with all four serial buses simultaneously, learn 12-bit ADC averaging, and implement interrupt-driven scheduling - all on one part. Compared with the PIC18F45K22, the PIC18F6628-I/PT adds 32 more I/O lines for breadboard projects that wire many peripherals at once.
تجویز کردہ
تجویز کردہ پروڈکٹس کا خلاصہ
کے لیے انجینئرنگ ریفرنس ڈیٹا PIC18F6628-I/PT — موازنہ، ڈیزائن رہنمائی، اور تعمیل کی معلومات۔
انتخاب کی گائیڈ
متبادلات کے ساتھ موازنہ
| پیرامیٹر | یہ پروڈکٹ | PIC18F6627-I/PT | PIC18F6722-I/PT | PIC18F6628-E/PT | PIC18F6622-E/PT | PIC18F6621-I/PT |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | TQFP-64 (10x10 mm) | TQFP-64 (10x10 mm) - same | TQFP-64 (10x10 mm) - same | TQFP-64 (10x10 mm) - same | TQFP-64 (10x10 mm) - same | TQFP-64 (10x10 mm) - same |
| Flash Memory | 96 KB | 96 KB | 128 KB | 96 KB | 64 KB | 64 KB |
| Data EEPROM | 1024 bytes | 256 bytes | 1024 bytes | 1024 bytes | 1024 bytes | 1024 bytes |
| Maximum Frequency | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS |
| Temperature Grade | Industrial (-40C to +85C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) | Extended (-40C to +125C) | Extended (-40C to +125C) | Industrial (-40C to +85C) |
| ADC Resolution | 12-bit, 12 channels | 12-bit, 12 channels | 12-bit, 12 channels | 12-bit, 12 channels | 12-bit, 12 channels | 12-bit, 12 channels |
| Serial Ports | 2x I2C, 2x SPI, 2x USART/LIN | 2x I2C, 2x SPI, 2x USART/LIN | 2x I2C, 2x SPI, 2x USART/LIN | 2x I2C, 2x SPI, 2x USART/LIN | 2x I2C, 2x SPI, 2x USART/LIN | 2x I2C, 2x SPI, 2x USART/LIN |
| Relative Cost (qty-100) | Baseline | Lower (smaller EEPROM) | Higher (larger Flash) | Comparable (grade premium) | Lower (smaller Flash) | Lower (smaller Flash) |
اہم امتیازی خصوصیات
- Larger data EEPROM than PIC18F6627 (بمقابلہPIC18F6627-I/PT)
- Industrial temperature range option (بمقابلہPIC18F6628-E/PT)
- Smaller Flash than PIC18F6722 (بمقابلہPIC18F6722-I/PT)
ڈیزائن نوٹس
Estimated: at 40 MHz / 5 V with peripherals active, the PIC18F6628-I/PT draws roughly 16 mA of I_DD, dropping to 8 mA at 4 MHz and below 5 uA in Sleep mode. For battery-backed applications, gate the analog section with a load switch controlled by a GPIO so AV_DD collapses during Sleep and avoids ~1 mA of analog quiescent current. Decoupling: place 100 nF X7R between each VDD/VSS pair (multiple pairs on this 64-pin part) and a single 10 uF bulk capacitor within 25 mm. nanoWatt Sleep disables the system clock but retains RAM and the WDT; if the firmware needs to wake on a LIN break, leave the EUSART2 peripheral clock active in the wake source register.
Route the parallel port signals (RD0-RD7, RE0-RE2) as matched-length traces (~25 mm max) and place a 100 ohm series resistor near the MCU when driving a TFT ribbon connector, to dampen reflections. Place the 12-bit ADC traces (AN0-AN12) perpendicular to digital bus lines and add a ground guard ring around the AV_DD/AV_SS pins; the datasheet recommends 0.1 uF + 10 uF on AV_DD. The ICSP pins (PGC/PGD, RB6/RB7) need their own 4.7 kohm pull-up to VDD to avoid programming errors during in-circuit programming.
Do not forget the CONFIG bits: the default configuration out of reset disables the PLL and selects RC oscillator. Program the CONFIG1L register to enable HS or HS+PLL mode for 40 MHz operation. When migrating between PIC18F6628 and PIC18F6627/6722, double-check EEPROM usage: PIC18F6627 has only 256 bytes of data EEPROM versus 1024 bytes on the 6628 - firmware using EEPROM for logging may need to relocate or reduce its buffer size. The PPS (Peripheral Pin Select) remap function is device-dependent and must be reconfigured for each variant.
تعمیل کی معلومات
RoHS compliance per Microchip product page (PT suffix = Pb-free TQFP). Not AEC-Q100 qualified; for AEC-Q100 automotive qualification select the AEC-qualified PIC18 variant. REACH compliance to be confirmed by procurement team.