PIC18F8520-E/PT - 8-bit 25MHz 32KB Flash MCU 80-TQFP | Microchip
MPN: PIC18F8520-E/PT ✓ Hoạt độngPIC18F8520-E/PT Tóm tắt
What is a PIC18F microcontroller? The PIC18F family is a family of 8-bit Harvard-architecture microcontrollers from Microchip Technology that sit between the baseline PIC10/12/16 families and the 16-bit dsPIC/PIC24 families in the company's product hierarchy. PIC18F parts add a 16-bit instruction word, linear memory addressing, C-friendly architecture, hardware multiply, and richer peripherals (USB, CAN, Ethernet, ADC) compared to baseline PICs. As a microcontroller (MCU), the PIC18F8520 integrates CPU, Flash, SRAM, EEPROM, timers, ADC, communication peripherals, and I/O on a single die, eliminating the need for external memory in many embedded designs.
Key features of the PIC18F8520 include 68 digital I/O lines, two USART modules, one MSSP (SPI/I2C) module, two CCP modules plus one enhanced ECCP, five 8/16-bit timers, a 10-bit ADC with up to 16 channels, two analog comparators, and a 10-bit DAC reference module. The PIC18 instruction set provides 77 instructions with hardware multiply, allowing efficient C compilation and deterministic real-time response for control loops. Code protection, low-voltage programming, and ICSP (In-Circuit Serial Programming) support simplify prototyping and field updates.
The PIC18F8520 architecture exposes the same peripheral set as the smaller PIC18F452 but adds more RAM, more I/O, and a second USART, making it suitable for high-pin-count designs that still fit within an 8-bit instruction budget. Its 80-pin TQFP exposes 68 I/O with flexible peripheral remapping via PPS-like alternate pin functions on most lines, plus separate analog and digital power pins for noise isolation.
Typical applications for the PIC18F8520-E/PT include industrial control panels, HVAC controllers, automotive body and comfort modules, multi-sensor data loggers, and human-machine interface (HMI) boards where a low-cost 8-bit MCU with abundant I/O and two serial ports is preferred. Its 32 KB Flash supports GUI stacks or motor-control libraries, while the 10-bit ADC serves transducer monitoring.
Designers should pay attention to the 80-TQFP's thermal pad (EP) connection to ground for EMI suppression, and route AVSS/AVDD separately from digital supply when using ADC channels. Programming uses Microchip's MPLAB X IDE with the free MPLAB XC8 compiler, and ICSP requires dedicated PGC/PGD pins that must not be reassigned by the application.
This page synthesizes distributor pricing, drop-in alternatives from the PIC18F85xx family, and practical design notes not found in the standalone datasheet.
Bộ thay thế dễ dàng lắp đặt cho PIC18F8520-E/PT — 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 PIC18F8520-E/PT (cùng hình factor và footprint) — khác nhau ở Package, Timers, ADC, Core Architecture, Operating Temperature.
PIC18F8520-I/PT
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F8520T-E/PT
✅ Drop-InLiên hệ để biết giá
Xem tài liệu →PIC18F8520T-I/PT
✅ Drop-In📋 Tham chiếu thay thế (không có trong danh mục)
PIC18F8621-E/PT
✅ Drop-In ⚠️ Thông số chưa được xác minh📋 Tham chiếu thay thế (không có trong danh mục)
PIC18F8722-E/PT
✅ Drop-In ⚠️ Thông số chưa được xác minh📋 Tham chiếu thay thế (không có trong danh mục)
PIC18F8520-E/PT Tỷ lệ tối đa & tính chất điện
| Core Architecture | 8-bit PIC18 enhanced RISC |
| Program Memory (Flash) | 32 KB (16K x 16) |
| Data SRAM | 2 KB (2048 bytes) |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 25 MIPS (25 MHz oscillator) |
| Operating Voltage (VDD) | 4.2 V to 5.5 V |
| I/O Pins | 68 |
| Timers | 5 (8-bit and 16-bit) |
| ADC | 10-bit, up to 16 channels |
| Analog Comparators | 2 |
| USART | 2 |
| MSSP (SPI / I2C) | 1 |
| CCP / ECCP Modules | 2 CCP + 1 ECCP |
| Nhiệt độ hoạt động | -40 C to +125 C (Extended, -E suffix) |
| Hộp | 80-pin TQFP (12 x 12 mm), -PT suffix |
| Kiểu lắp đặt | Surface Mount |
| Instruction Set | 77 instructions, hardware multiply |
| ICSP / ICD Support | Yes (PGC/PGD) |
| Trạng thái RoHS | Compliant |
Cấu hình chân PIC18F8520-E/PT
| Chân 1 | MCLR — Master Clear (reset, active low); tie to VDD through 10 kohm resistor for normal operation |
| Chân 2 | RA0/AN0 — PORTA bit 0 / Analog input 0 |
| Chân 3 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| Chân 4 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / ADC negative reference |
| Chân 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / ADC positive reference |
| Chân 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Chân 7 | RA5/AN4/SS — PORTA bit 5 / Analog input 4 / SPI slave select |
| Chân 8 | RE0/RD/AN5 — PORTE bit 0 / Parallel-port read / Analog input 5 |
| Chân 9 | RE1/WR/AN6 — PORTE bit 1 / Parallel-port write / Analog input 6 |
| Chân 10 | RE2/CS/AN7 — PORTE bit 2 / Parallel-port chip select / Analog input 7 |
| Chân 11 | VDD — Digital supply voltage 4.2 V to 5.5 V |
| Chân 12 | VSS — Digital ground |
| Chân 13 | OSC1/CLKIN — Oscillator crystal input / external clock input |
| Chân 14 | OSC2/CLKOUT — Oscillator crystal output / clock output (Fosc/4) |
| Chân 15 | RC0/T1OSO/T13CKI — PORTC bit 0 / Timer1 oscillator output / Timer1/3 clock |
| Chân 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| Chân 17 | RC2/CCP1 — PORTC bit 2 / CCP1 output |
| Chân 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Chân 19 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| Chân 20 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| Chân 21 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| Chân 22 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| Chân 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Chân 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| Chân 25 | RC6/TX1/CK1 — PORTC bit 6 / USART1 TX / USART1 clock |
| Chân 26 | RC7/RX1/DT1 — PORTC bit 7 / USART1 RX / USART1 data |
| Chân 27 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| Chân 28 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| Chân 29 | RD6/PSP6/TX2/CK2 — PORTD bit 6 / PSP6 / USART2 TX / USART2 clock |
| Chân 30 | RD7/PSP7/RX2/DT2 — PORTD bit 7 / PSP7 / USART2 RX / USART2 data |
| Chân 31 | VSS — Digital ground |
| Chân 32 | VDD — Digital supply voltage 4.2 V to 5.5 V |
| Chân 33 | RB0/INT0/FLT0 — PORTB bit 0 / External interrupt 0 / ECCP fault input |
| Chân 34 | RB1/INT1 — PORTB bit 1 / External interrupt 1 |
| Chân 35 | RB2/INT2 — PORTB bit 2 / External interrupt 2 |
| Chân 36 | RB3/INT3/CCP2 — PORTB bit 3 / External interrupt 3 / CCP2 alt |
| Chân 37 | RB4/KBI0 — PORTB bit 4 / Interrupt-on-change bit 0 |
| Chân 38 | RB5/KBI1/PGM — PORTB bit 5 / IOC bit 1 / LVP programming |
| Chân 39 | RB6/KBI2/PGC — PORTB bit 6 / IOC bit 2 / ICSP clock |
| Chân 40 | RB7/KBI3/PGD — PORTB bit 7 / IOC bit 3 / ICSP data |
| Chân 41 | AVSS — Analog ground |
| Chân 42 | AVDD — Analog supply voltage 4.2 V to 5.5 V |
| Chân 43 | RF0 — PORTF bit 0 (analog input on some variants) |
| Chân 44 | RF1 — PORTF bit 1 |
| Chân 45 | RF2 — PORTF bit 2 |
| Chân 46 | RF3 — PORTF bit 3 |
| Chân 47 | RF4 — PORTF bit 4 |
| Chân 48 | RF5 — PORTF bit 5 |
| Chân 49 | RF6 — PORTF bit 6 |
| Chân 50 | RF7 — PORTF bit 7 |
| Chân 51 | VSS — Digital ground |
| Chân 52 | VDD — Digital supply voltage 4.2 V to 5.5 V |
| Chân 53 | RG0 — PORTG bit 0 |
| Chân 54 | RG1 — PORTG bit 1 |
| Chân 55 | RG2 — PORTG bit 2 |
| Chân 56 | RG3 — PORTG bit 3 |
| Chân 57 | RG4 — PORTG bit 4 |
| Chân 58 | RG5 — PORTG bit 5 |
| Chân 59 | AVSS — Analog ground |
| Chân 60 | AVDD — Analog supply voltage 4.2 V to 5.5 V |
| Chân 61 | RH0 — PORTH bit 0 |
| Chân 62 | RH1 — PORTH bit 1 |
| Chân 63 | RH2 — PORTH bit 2 |
| Chân 64 | RH3 — PORTH bit 3 |
| Chân 65 | RH4 — PORTH bit 4 |
| Chân 66 | RH5 — PORTH bit 5 |
| Chân 67 | RH6 — PORTH bit 6 |
| Chân 68 | RH7 — PORTH bit 7 |
| Chân 69 | RJ0 — PORTJ bit 0 |
| Chân 70 | RJ1 — PORTJ bit 1 |
| Chân 71 | RJ2 — PORTJ bit 2 |
| Chân 72 | RJ3 — PORTJ bit 3 |
| Chân 73 | RJ4 — PORTJ bit 4 |
| Chân 74 | RJ5 — PORTJ bit 5 |
| Chân 75 | RJ6 — PORTJ bit 6 |
| Chân 76 | RJ7 — PORTJ bit 7 |
| Chân 77 | VSS — Digital ground |
| Chân 78 | VDD — Digital supply voltage 4.2 V to 5.5 V |
| Chân 79 | RK0 — PORTK bit 0 |
| Chân 80 | RK1 — PORTK bit 1 |
Ứng dụng tiêu biểu
PIC18F8520-E/PT phù hợp cho 7 Áp dụngs: Industrial Control Panels, HVAC Climate Controllers, Automotive Body and Comfort Modules, Multi-Channel Data Loggers, Human-Machine Interface Boards, White-Goods Motor-Control Boards, Point-of-Sale Terminal Peripherals.
Industrial Control Panels
The PIC18F8520-E/PT fits industrial control panels with its 68 I/O and dual USART. The Extended -40 C to +125 C grade survives cabinet temperatures near motors and contactors. Place PGC/PGD on dedicated PORTB pins so ICSP works in-circuit. Two USARTs let one drive an RS-485 fieldbus while the other talks to a local HMI display. The 32 KB Flash supports ladder-logic or PID control libraries compiled in MPLAB XC8, and 2 KB SRAM buffers control-loop scratch variables.
Được đề xuất
HVAC Climate Controllers
The PIC18F8520-E/PT suits HVAC controllers where the 10-bit ADC reads multiple temperature and pressure sensors while the ECCP module drives TRIAC phase-control outputs. The Extended temperature grade keeps the MCU alive inside rooftop units that hit 70 C ambient. Two USARTs allow simultaneous Modbus to a building-management system and a local service-port UART. The 256-byte EEPROM stores commissioning setpoints that survive power cycles without wear-leveling concerns.
Được đề xuất
Automotive Body and Comfort Modules
The PIC18F8520-E/PT drives body-control modules where 68 I/O handle mirror, seat, lighting, and wiper switching. The Extended -40 C to +125 C grade covers cabin and under-hood thermal zones, though AEC-Q100 is not qualified on this part. The 10-bit ADC reads battery voltage and current shunts, while two USARTs talk to CAN gateways via external MCP2515 controllers. Designers reuse legacy PIC18 code while gaining 2x the Flash of a PIC18F452.
Được đề xuất
Multi-Channel Data Loggers
The PIC18F8520-E/PT fits multi-channel data loggers where the 16-channel 10-bit ADC samples slowly-varying analog signals and stores them to an external SPI Flash via the MSSP module. The 2 KB SRAM buffers bursts before flushing to storage, and the EEPROM records log headers and timestamps. The Extended temperature grade lets the logger operate in outdoor enclosures. Two USARTs provide debug console and external GPS receiver connection simultaneously.
Được đề xuất
Human-Machine Interface Boards
The PIC18F8520-E/PT powers HMI boards that scan a matrix keypad and drive an alphanumeric LCD or character OLED. Its 68 I/O drive LCD data/control lines plus LED backlight PWM via ECCP, while the MSSP runs I2C to a capacitive-touch controller. The 32 KB Flash holds menu-state machines and multilingual strings in XC8. Two USARTs allow field updates via RS-232 service port and a parallel Modbus link to a controller.
Được đề xuất
White-Goods Motor-Control Boards
The PIC18F8520-E/PT runs washing-machine and dishwasher control boards where the ECCP module generates complementary PWM for an inverter-fed three-phase motor. Its 68 I/O drive valves, door locks, water-level sensors, and the user panel. The Extended temperature grade tolerates the 85 C-plus ambient inside the appliance cabinet. The MSSP communicates with a digital hall-effect sensor over SPI while a USART carries the diagnostic bus.
Được đề xuất
Point-of-Sale Terminal Peripherals
The PIC18F8520-E/PT serves as a peripheral controller in POS terminals where the dual USART bridges the main CPU to a thermal printer and a magnetic-stripe reader. The 10-bit ADC monitors supply voltage and battery health, while the MSSP drives a 4x4 keypad via SPI I/O expanders. The 32 KB Flash holds USB HID stacks via software bit-banging, eliminating the need for an external USB controller in low-cost terminals.
Đượ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 PIC18F8520-E/PT — 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 | PIC18F8520-I/PT | PIC18F8520T-E/PT | PIC18F8520T-I/PT | PIC18F8621-E/PT | PIC18F8722-E/PT |
|---|---|---|---|---|---|---|
| Package | 80-pin TQFP (12x12 mm) | 80-pin TQFP (12x12 mm) - same | 80-pin TQFP (12x12 mm) - same | 80-pin TQFP (12x12 mm) - same | 80-pin TQFP (12x12 mm) - same | 80-pin TQFP (12x12 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 32 KB | 32 KB - same | 32 KB - same | 32 KB - same | 64 KB | 128 KB |
| SRAM | 2 KB | 2 KB - same | 2 KB - same | 2 KB - same | 4 KB | 4 KB |
| Maximum CPU Speed | 25 MIPS (25 MHz) | 25 MIPS - same | 25 MIPS - same | 25 MIPS - same | 25 MIPS - same | 25 MIPS - same |
| Operating Temperature | -40 C to +125 C (E grade) | -40 C to +85 C (I grade) | -40 C to +125 C (E grade) - same | -40 C to +85 C (I grade) | -40 C to +125 C (E grade) - same | -40 C to +125 C (E grade) - same |
| I/O Pins | 68 | 68 - same | 68 - same | 68 - same | 68 - same | 68 - same |
| ADC Channels | 16 x 10-bit | 16 - same | 16 - same | 16 - same | 16 - same | 16 - same |
| USART Modules | 2 | 2 - same | 2 - same | 2 - same | 2 - same | 2 - same |
Bảo phân biệt quan trọng
- Highest temperature grade in the 32 KB 80-TQFP 18F85xx tier (vsPIC18F8520-I/PT)
- Flash-upgrade path to 128 KB on identical 80-TQFP footprint (vsPIC18F8722-E/PT)
- Pin-to-pin compatibility with the entire PIC18F85xx 80-TQFP family (vsPIC18F6627-I/PT)
- Dual USART vs single USART on smaller 18F452 siblings (vsPIC18F452-I/PT)
Ghi chú thiết kế
PIC18F8520-E/PT operates from 4.2 V to 5.5 V on VDD. Provide one 100 nF ceramic decoupling capacitor on each VDD/VSS pair (pins 11/12, 31/32, 51/52, 77/78) placed within 5 mm of the package pin. Place a bulk 10 uF tantalum or ceramic capacitor at the board power input. AVSS/AVDD pairs (pins 41/42 and 59/60) require their own 100 nF decoupling capacitors placed close to the pins; route AVSS directly to the analog ground plane via a via, not through a shared digital ground.
Estimated: at 25 MHz / 5 V with all I/O toggling, the PIC18F8520-E/PT draws approximately 50 mA, dissipating about 250 mW. The 80-pin TQFP has a theta_JA of approximately 45 C/W (typical, 4-layer JEDEC board), giving a 11 C junction rise above ambient - well within the 125 C limit. For Extended-grade designs in sealed enclosures without airflow, derate by adding 30 percent margin and consider placing the IC near a board edge or thermal via array.
Place the 80-TQFP on a 0.5 mm pitch land pattern with 0.25 mm via-in-pad recommended for the center thermal pad; connect the thermal pad to digital ground through at least four vias for mechanical and thermal integrity. Keep the ICSP signals PGC (pin 39) and PGD (pin 40) on PORTB free of any external pull-up stronger than 10 kohm to avoid contention with the ICD programmer; both lines should be reachable from a 2x3 0.1 inch header at the board edge for production programming.
Do not confuse the E (Extended) and I (Industrial) temperature grades when ordering - both share the same /PT package suffix. The OSC1/OSC2 pins require a configuration word selection of HS, XT, or EC oscillator mode matching the chosen crystal; default configuration after a blank-chip bulk erase is RC mode with PORTB pull-ups disabled. Always read the configuration bits after programming to confirm correct oscillator, watchdog, brownout, and code-protect settings.
The PIC18F8520-E/PT ADC achieves rated 10-bit performance only when AVSS/AVDD are isolated from digital VDD/VSS and the analog input source impedance stays below 2.5 kohm. Add a 100 nF ceramic capacitor on each analog input pin near the MCU; route analog traces away from switching signals and cross only at right angles. The MSSP SCK/SDA pins (RC3/RC4) require 4.7 kohm pull-ups for I2C at 100 kHz and 2.2 kohm at 400 kHz; the SPI SS pin (RA5) is unique to this family and must be driven by the master.
Thông tin tuân thủ
RoHS compliant per Microchip product page; lead-free TQFP package. Not AEC-Q100 qualified - automotive designs requiring formal certification should evaluate PIC18FxxKxx or PIC18FxxJxx AEC-Q100 grades. Halogen-free status not explicitly stated in provided data.