component
PIC18F2520-I
Public Made by Adomby adom
Microchip Tech Microcontrollers (MCU/MPU/SOC), SOIC-28-300mil. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
main
PIC18F2520-I
Microchip Tech · Microcontrollers (MCU/MPU/SOC) · SOIC-28-300mil
PIC18F2520-I from Microchip Tech, in a SOIC-28-300mil. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.
Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | MCLR/VPP/RE3 | input | Master Clear (Reset) input is active-low when MCLRE is set; otherwise pin functions as digital input RE3, and VPP is the programming voltage input. |
| 2 | RA0/AN0 | bidirectional | Digital I/O with TTL input levels, also analog input 0 and comparator C1- input. |
| 3 | RA1/AN1 | bidirectional | Digital I/O with TTL input levels, also analog input 1 and comparator C2- input. |
| 4 | RA2/AN2/VREF-/CVREF | bidirectional | Digital I/O with TTL input levels, also analog input 2, A/D low reference voltage input VREF-, or comparator voltage reference output CVREF. |
| 5 | RA3/AN3/VREF+ | bidirectional | Digital I/O with TTL input levels, also analog input 3 or A/D high reference voltage input VREF+. |
| 6 | RA4/T0CKI/C1OUT | bidirectional | Digital I/O with Schmitt Trigger input, also Timer0 external clock input T0CKI or comparator 1 output C1OUT. |
| 7 | RA5/AN4/SS/HLVDIN/C2OUT | bidirectional | Digital I/O with TTL input levels, also analog input 4, MSSP SPI slave select SS, High/Low-Voltage Detect input HLVDIN, or comparator 2 output C2OUT. |
| 8 | VSS | power_in | Ground reference for logic and I/O pins. |
| 9 | OSC1/CLKI/RA7 | input | Oscillator crystal or external clock input (ST buffer in RC mode, CMOS otherwise); pin becomes general purpose I/O RA7 when not used as an oscillator pin. |
| 10 | OSC2/CLKO/RA6 | output | Oscillator crystal output in crystal modes, CLKO (FOSC/4) in RC and EC modes, or general purpose I/O RA6 in RCIO, INTIO2 and ECIO modes. |
| 11 | RC0/T1OSO/T13CKI | bidirectional | Digital I/O with Schmitt Trigger input, also Timer1 oscillator output T1OSO or Timer1/Timer3 external clock input T13CKI. |
| 12 | RC1/T1OSI/CCP2 | bidirectional | Digital I/O with Schmitt Trigger input, also Timer1 oscillator input T1OSI or CCP2 capture input/compare and PWM output (default CCP2 pin when CCP2MX is set). |
| 13 | RC2/CCP1 | bidirectional | Digital I/O with Schmitt Trigger input, also CCP1 capture input or compare/PWM output. |
| 14 | RC3/SCK/SCL | bidirectional | Digital I/O with Schmitt Trigger input, also MSSP synchronous serial clock SCK (SPI mode) or SCL (I2C mode). |
| 15 | RC4/SDI/SDA | bidirectional | Digital I/O with Schmitt Trigger input, also MSSP SPI data input SDI or I2C data I/O SDA. |
| 16 | RC5/SDO | bidirectional | Digital I/O with Schmitt Trigger input, also MSSP SPI data output SDO. |
| 17 | RC6/TX/CK | bidirectional | Digital I/O with Schmitt Trigger input, also EUSART asynchronous transmit TX or synchronous clock CK. |
| 18 | RC7/RX/DT | bidirectional | Digital I/O with Schmitt Trigger input, also EUSART asynchronous receive RX or synchronous data DT. |
| 19 | VSS | power_in | Ground reference for logic and I/O pins. |
| 20 | VDD | power_in | Positive supply for logic and I/O pins; PIC18F devices operate from 4.2V to 5.5V and PIC18LF devices from 2.0V to 5.5V. |
| 21 | RB0/INT0/FLT0/AN12 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also external interrupt 0 INT0, Enhanced PWM fault input FLT0, or analog input 12. |
| 22 | RB1/INT1/AN10 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also external interrupt 1 INT1 or analog input 10. |
| 23 | RB2/INT2/AN8 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also external interrupt 2 INT2 or analog input 8. |
| 24 | RB3/AN9/CCP2 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also analog input 9 or CCP2 capture/compare/PWM (alternate CCP2 pin when CCP2MX is cleared). |
| 25 | RB4/KBI0/AN11 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI0 or analog input 11. |
| 26 | RB5/KBI1/PGM | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI1 or low-voltage ICSP programming enable pin PGM. |
| 27 | RB6/KBI2/PGC | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI2 or in-circuit debugger and ICSP programming clock PGC. |
| 28 | RB7/KBI3/PGD | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI3 or in-circuit debugger and ICSP programming data PGD. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | Microchip Tech |
| Package | SOIC-28-300mil |
| Category | Embedded Processors & Controllers |
| Pins | 28 |
Electrical characteristics
Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| Supply voltage (standard F device, not LF) | VDD | 4.2 | 5.5 | V | Standard Enhanced Flash 'F' device (PIC18F2520, not PIC18LF2520); Section 1.3 | 10 | |
| Operating frequency | 40 | MHz | PIC18F2520 column of Table 1-1, printed as 'DC, 40 MHz' | 9 | |||
| Maximum recommended analog source impedance | 2.5 | kΩ | A/D analog input source impedance, Section 19.1 | 230 | |||
| External resistor REXT (RC oscillator) | REXT | 3 | 100 | kΩ | RC oscillator mode, recommended values | 27 | |
| External capacitor CEXT (RC oscillator) | CEXT | 20 | pF | RC oscillator mode, recommended CEXT > 20 pF | 27 | ||
| MCLR pull-up resistor for power-on Reset | 1 | 10 | kΩ | MCLR tied through resistor to VDD for POR | 45 | ||
| A/D maximum device frequency, TAD = 2 TOSC | 2.86 | MHz | ADCS<2:0> = 000; PIC18F2X20/4X20 column of Table 19-1 | 231 | |||
| A/D maximum device frequency, TAD = 4 TOSC | 5.71 | MHz | ADCS<2:0> = 100; PIC18F2X20/4X20 column of Table 19-1 | 231 | |||
| A/D maximum device frequency, TAD = 8 TOSC | 11.43 | MHz | ADCS<2:0> = 001; PIC18F2X20/4X20 column of Table 19-1 | 231 | |||
| A/D maximum device frequency, TAD = 16 TOSC | 22.86 | MHz | ADCS<2:0> = 101; PIC18F2X20/4X20 column of Table 19-1 | 231 | |||
| A/D maximum device frequency, TAD = 32 TOSC | 40 | MHz | ADCS<2:0> = 010; PIC18F2X20/4X20 column of Table 19-1 | 231 | |||
| A/D maximum device frequency, TAD = 64 TOSC | 40 | MHz | ADCS<2:0> = 110; PIC18F2X20/4X20 column of Table 19-1 | 231 | |||
| A/D maximum device frequency, TAD = internal RC | 1 | MHz | ADCS<2:0> = x11 (RC); PIC18F2X20/4X20 column of Table 19-1; see footnote 1 | 231 |
CAD (KiCad official)
- Symbol:
PIC18F2520-I - Footprint:
Package_SO:SOIC-28W_7.5x17.9mm_P1.27mm - 3D model: SOIC-28-300mil (KiCad packages3D, STEP)
- 3D model files:
pic18f2520-i-etched.step/pic18f2520-i-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);pic18f2520-i.step/pic18f2520-i.glbare the bare package body.
Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- Datasheet: Microchip Tech datasheet (412 pp, sha256
7f882378ad20764a, retrieved 2026-10-18, tier: lcsc) - Extractor: parts-factory
2.0.0/extract_pins 0.3, primaryclaude-haiku-5-5(text), consensusclaude-sonnet-5-5(agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish. - CAD: KiCad official libraries (CC-BY-SA 4.0).
# PIC18F2520-I
**Microchip Tech** · Microcontrollers (MCU/MPU/SOC) · SOIC-28-300mil
PIC18F2520-I from Microchip Tech, in a SOIC-28-300mil. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.
## Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | MCLR/VPP/RE3 | input | Master Clear (Reset) input is active-low when MCLRE is set; otherwise pin functions as digital input RE3, and VPP is the programming voltage input. |
| 2 | RA0/AN0 | bidirectional | Digital I/O with TTL input levels, also analog input 0 and comparator C1- input. |
| 3 | RA1/AN1 | bidirectional | Digital I/O with TTL input levels, also analog input 1 and comparator C2- input. |
| 4 | RA2/AN2/VREF-/CVREF | bidirectional | Digital I/O with TTL input levels, also analog input 2, A/D low reference voltage input VREF-, or comparator voltage reference output CVREF. |
| 5 | RA3/AN3/VREF+ | bidirectional | Digital I/O with TTL input levels, also analog input 3 or A/D high reference voltage input VREF+. |
| 6 | RA4/T0CKI/C1OUT | bidirectional | Digital I/O with Schmitt Trigger input, also Timer0 external clock input T0CKI or comparator 1 output C1OUT. |
| 7 | RA5/AN4/SS/HLVDIN/C2OUT | bidirectional | Digital I/O with TTL input levels, also analog input 4, MSSP SPI slave select SS, High/Low-Voltage Detect input HLVDIN, or comparator 2 output C2OUT. |
| 8 | VSS | power_in | Ground reference for logic and I/O pins. |
| 9 | OSC1/CLKI/RA7 | input | Oscillator crystal or external clock input (ST buffer in RC mode, CMOS otherwise); pin becomes general purpose I/O RA7 when not used as an oscillator pin. |
| 10 | OSC2/CLKO/RA6 | output | Oscillator crystal output in crystal modes, CLKO (FOSC/4) in RC and EC modes, or general purpose I/O RA6 in RCIO, INTIO2 and ECIO modes. |
| 11 | RC0/T1OSO/T13CKI | bidirectional | Digital I/O with Schmitt Trigger input, also Timer1 oscillator output T1OSO or Timer1/Timer3 external clock input T13CKI. |
| 12 | RC1/T1OSI/CCP2 | bidirectional | Digital I/O with Schmitt Trigger input, also Timer1 oscillator input T1OSI or CCP2 capture input/compare and PWM output (default CCP2 pin when CCP2MX is set). |
| 13 | RC2/CCP1 | bidirectional | Digital I/O with Schmitt Trigger input, also CCP1 capture input or compare/PWM output. |
| 14 | RC3/SCK/SCL | bidirectional | Digital I/O with Schmitt Trigger input, also MSSP synchronous serial clock SCK (SPI mode) or SCL (I2C mode). |
| 15 | RC4/SDI/SDA | bidirectional | Digital I/O with Schmitt Trigger input, also MSSP SPI data input SDI or I2C data I/O SDA. |
| 16 | RC5/SDO | bidirectional | Digital I/O with Schmitt Trigger input, also MSSP SPI data output SDO. |
| 17 | RC6/TX/CK | bidirectional | Digital I/O with Schmitt Trigger input, also EUSART asynchronous transmit TX or synchronous clock CK. |
| 18 | RC7/RX/DT | bidirectional | Digital I/O with Schmitt Trigger input, also EUSART asynchronous receive RX or synchronous data DT. |
| 19 | VSS | power_in | Ground reference for logic and I/O pins. |
| 20 | VDD | power_in | Positive supply for logic and I/O pins; PIC18F devices operate from 4.2V to 5.5V and PIC18LF devices from 2.0V to 5.5V. |
| 21 | RB0/INT0/FLT0/AN12 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also external interrupt 0 INT0, Enhanced PWM fault input FLT0, or analog input 12. |
| 22 | RB1/INT1/AN10 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also external interrupt 1 INT1 or analog input 10. |
| 23 | RB2/INT2/AN8 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also external interrupt 2 INT2 or analog input 8. |
| 24 | RB3/AN9/CCP2 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also analog input 9 or CCP2 capture/compare/PWM (alternate CCP2 pin when CCP2MX is cleared). |
| 25 | RB4/KBI0/AN11 | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI0 or analog input 11. |
| 26 | RB5/KBI1/PGM | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI1 or low-voltage ICSP programming enable pin PGM. |
| 27 | RB6/KBI2/PGC | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI2 or in-circuit debugger and ICSP programming clock PGC. |
| 28 | RB7/KBI3/PGD | bidirectional | Digital I/O with TTL input and programmable weak pull-up, also interrupt-on-change pin KBI3 or in-circuit debugger and ICSP programming data PGD. |
## Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | Microchip Tech |
| Package | SOIC-28-300mil |
| Category | Embedded Processors & Controllers |
| Pins | 28 |
## Electrical characteristics
Limits as printed in the datasheet (page.json `metadata.characteristics` carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| Supply voltage (standard F device, not LF) | VDD | 4.2 | | 5.5 | V | Standard Enhanced Flash 'F' device (PIC18F2520, not PIC18LF2520); Section 1.3 | 10 |
| Operating frequency | | | | 40 | MHz | PIC18F2520 column of Table 1-1, printed as 'DC, 40 MHz' | 9 |
| Maximum recommended analog source impedance | | | | 2.5 | kΩ | A/D analog input source impedance, Section 19.1 | 230 |
| External resistor REXT (RC oscillator) | REXT | 3 | | 100 | kΩ | RC oscillator mode, recommended values | 27 |
| External capacitor CEXT (RC oscillator) | CEXT | 20 | | | pF | RC oscillator mode, recommended CEXT > 20 pF | 27 |
| MCLR pull-up resistor for power-on Reset | | 1 | | 10 | kΩ | MCLR tied through resistor to VDD for POR | 45 |
| A/D maximum device frequency, TAD = 2 TOSC | | | | 2.86 | MHz | ADCS<2:0> = 000; PIC18F2X20/4X20 column of Table 19-1 | 231 |
| A/D maximum device frequency, TAD = 4 TOSC | | | | 5.71 | MHz | ADCS<2:0> = 100; PIC18F2X20/4X20 column of Table 19-1 | 231 |
| A/D maximum device frequency, TAD = 8 TOSC | | | | 11.43 | MHz | ADCS<2:0> = 001; PIC18F2X20/4X20 column of Table 19-1 | 231 |
| A/D maximum device frequency, TAD = 16 TOSC | | | | 22.86 | MHz | ADCS<2:0> = 101; PIC18F2X20/4X20 column of Table 19-1 | 231 |
| A/D maximum device frequency, TAD = 32 TOSC | | | | 40 | MHz | ADCS<2:0> = 010; PIC18F2X20/4X20 column of Table 19-1 | 231 |
| A/D maximum device frequency, TAD = 64 TOSC | | | | 40 | MHz | ADCS<2:0> = 110; PIC18F2X20/4X20 column of Table 19-1 | 231 |
| A/D maximum device frequency, TAD = internal RC | | | | 1 | MHz | ADCS<2:0> = x11 (RC); PIC18F2X20/4X20 column of Table 19-1; see footnote 1 | 231 |
## CAD (KiCad official)
- Symbol: `PIC18F2520-I`
- Footprint: `Package_SO:SOIC-28W_7.5x17.9mm_P1.27mm`
- 3D model: SOIC-28-300mil (KiCad packages3D, STEP)
- 3D model files: `pic18f2520-i-etched.step` / `pic18f2520-i-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `pic18f2520-i.step` / `pic18f2520-i.glb` are the bare package body.
## Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- **Datasheet:** [Microchip Tech datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588884724974960640) (412 pp, sha256 `7f882378ad20764a`, retrieved 2026-10-18, tier: lcsc)
- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.3`, primary `claude-haiku-5-5` (text), consensus `claude-sonnet-5-5` (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
- **CAD:** KiCad official libraries (CC-BY-SA 4.0).
[Datasheet PDF](docs/pic18f2520-i-datasheet.pdf)