Loads when you scroll to it. Unloads after 5 minutes in the background.

Symbol & Footprint

Schematic Symbol

Open full view ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.

PCB Footprint

Open full view ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.
Loads when you scroll to it. Unloads after 5 minutes in the background.
Download PDF
Contents

README

markdown

PIC18F65K40-I

Microchip Tech · Microcontrollers (MCU/MPU/SOC) · TQFP-64(10x10)

PIC18F65K40-I from Microchip Tech, in a TQFP-64(10x10). 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 RE1 bidirectional PORTE I/O with ANE1 analog input, IOCE1 interrupt-on-change, and default RX3/DT3 EUSART3 function.
2 RE0 bidirectional PORTE I/O with ANE0 analog input, IOCE0 interrupt-on-change, and default CK3 EUSART3 clock function.
3 RG0 bidirectional PORTG I/O with ANG0 analog input.
4 RG1 bidirectional PORTG I/O with ANG1 analog input and default CK2 EUSART2 clock function.
5 RG2 bidirectional PORTG I/O with ANG2 analog input, C3IN0+ comparator input, and default RX2/DT2 EUSART2 function.
6 RG3 bidirectional PORTG I/O with ANG3 analog input, C3IN0- comparator input, and default CCP4 input.
7 RG5/MCLR/VPP input Input-only RG5 with IOCG5 interrupt-on-change; also the Master Clear reset input and high-voltage programming (VPP) pin.
8 RG4 bidirectional PORTG I/O with ANG4 analog input, C3IN1- comparator input, default T5G/T7CKI timer inputs and CCP5 input.
9 VSS power_in Ground reference; must always be connected.
10 VDD power_in Positive supply; must always be connected and decoupled.
11 RF7 bidirectional PORTF I/O with C2IN3-/C3IN3- comparator inputs and default SS1 MSSP1 input.
12 RF6 bidirectional PORTF I/O with ANF6 analog input and C1IN0+ comparator input.
13 RF5 bidirectional PORTF I/O with ANF5 analog input, DAC1OUT1 output, and C1IN1-/C2IN1- comparator inputs.
14 RF4 bidirectional PORTF I/O with ANF4 analog input and C2IN0+ comparator input.
15 RF3 bidirectional PORTF I/O with C1IN2-/C2IN2-/C3IN2- comparator inputs.
16 RF2 bidirectional PORTF I/O with ANF2 analog input.
17 RF1 bidirectional PORTF I/O with ANF1 analog input.
18 RF0 bidirectional PORTF I/O with C1IN0-/C2IN0- comparator inputs.
19 RG7 bidirectional PORTG I/O with ANG7 analog input and default SMT2SIG1 input.
20 RG6 bidirectional PORTG I/O with ANG6 analog input and default SMT2WIN1 input.
21 RA3 bidirectional PORTA I/O with ANA3 analog input and VREF+ external reference input.
22 RA2 bidirectional PORTA I/O with ANA2 analog input, VREF- reference input, and C1IN1+/C2IN1+/C3IN1+ comparator inputs.
23 RA1 bidirectional PORTA I/O with ANA1 analog input and default T2IN timer input.
24 RA0 bidirectional PORTA I/O with ANA0 analog input, C1IN4-/C2IN4-/C3IN4- comparator inputs, and default T8IN timer input.
25 RH1 bidirectional PORTH I/O with default ADCACT ADC auto-conversion trigger input.
26 RH0 bidirectional PORTH general-purpose I/O.
27 RA5 bidirectional PORTA I/O with ANA5 analog input and default T3G timer gate input.
28 RA4 bidirectional PORTA I/O with ANA4 analog input and default T0CKI timer clock input.
29 RC1 bidirectional PORTC I/O with IOCC1 interrupt-on-change, SOSCI secondary oscillator input, default T6IN and RX4/DT4 EUSART4 function.
30 RC0 bidirectional PORTC I/O with IOCC0 interrupt-on-change, SOSCO secondary oscillator output, default T1CKI and CK4 EUSART4 clock.
31 RC6 bidirectional PORTC I/O with IOCC6 interrupt-on-change and default CK1 EUSART1 clock function.
32 RC7 bidirectional PORTC I/O with IOCC7 interrupt-on-change and default RX1/DT1 EUSART1 function.
33 RC2 bidirectional PORTC I/O with IOCC2 interrupt-on-change and default CWG1IN input.
34 RC3 bidirectional PORTC I/O with IOCC3 interrupt-on-change and default SCL1/SCK1 MSSP1 clock (I2C logic levels).
35 RC4 bidirectional PORTC I/O with IOCC4 interrupt-on-change and default SDA1/SDI1 MSSP1 data (I2C logic levels).
36 RC5 bidirectional PORTC I/O with IOCC5 interrupt-on-change.
37 RB7 bidirectional PORTB I/O with ANB7 analog input, DAC1OUT2 output, IOCB7 interrupt-on-change, and ICSPDAT programming data.
38 VDD power_in Positive supply; must always be connected and decoupled.
39 RA7 bidirectional PORTA I/O with ANA7 analog input and OSC1/CLKIN external oscillator or clock input.
40 RA6 bidirectional PORTA I/O with ANA6 analog input and OSC2/CLKOUT oscillator output.
41 VSS power_in Ground reference; must always be connected.
42 RB6 bidirectional PORTB I/O with ANB6 analog input, IOCB6 interrupt-on-change, and ICSPCLK programming clock.
43 RB5 bidirectional PORTB I/O with ANB5 analog input, IOCB5 interrupt-on-change, default T1G and T3CKI timer inputs.
44 RB4 bidirectional PORTB I/O with ANB4 analog input and IOCB4 interrupt-on-change.
45 RB3 bidirectional PORTB I/O with ANB3 analog input, IOCB3 interrupt-on-change, and INT3 external interrupt.
46 RB2 bidirectional PORTB I/O with ANB2 analog input, IOCB2 interrupt-on-change, INT2 external interrupt (I2C logic levels pin).
47 RB1 bidirectional PORTB I/O with ANB1 analog input, IOCB1 interrupt-on-change, INT1 external interrupt (I2C logic levels pin).
48 RB0 bidirectional PORTB I/O with ANB0 analog input, ZCDIN zero-cross detect input, IOCB0 interrupt-on-change, and INT0 external interrupt.
49 RD7 bidirectional PORTD I/O with AND7 analog input and default SS2 MSSP2 input.
50 RD6 bidirectional PORTD I/O with AND6 analog input and default SCL2/SCK2 MSSP2 clock (I2C logic levels).
51 RD5 bidirectional PORTD I/O with AND5 analog input, default MDSRC DSM input, and SDA2/SDI2 MSSP2 data (I2C logic levels).
52 RD4 bidirectional PORTD I/O with AND4 analog input and default MDCARH DSM carrier input.
53 RD3 bidirectional PORTD I/O with AND3 analog input and default MDCARL DSM carrier input.
54 RD2 bidirectional PORTD I/O with AND2 analog input.
55 RD1 bidirectional PORTD I/O with AND1 analog input and default T5CKI/T7G timer inputs.
56 RH3 bidirectional PORTH general-purpose I/O.
57 RH2 bidirectional PORTH general-purpose I/O.
58 RD0 bidirectional PORTD I/O with AND0 analog input.
59 RE7 bidirectional PORTE I/O with ANE7 analog input, IOCE7 interrupt-on-change, and default SMT1SIG1 input.
60 RE6 bidirectional PORTE I/O with ANE6 analog input, IOCE6 interrupt-on-change, default CCP3 and SMT1WIN1 inputs.
61 RE5 bidirectional PORTE I/O with ANE5 analog input, IOCE5 interrupt-on-change, and default CCP1 input.
62 RE4 bidirectional PORTE I/O with ANE4 analog input, IOCE4 interrupt-on-change, default T4IN timer and CCP2 inputs.
63 RE3 bidirectional PORTE I/O with ANE3 analog input, IOCE3 interrupt-on-change, and default RX5/DT5 EUSART5 function.
64 RE2 bidirectional PORTE I/O with ANE2 analog input, IOCE2 interrupt-on-change, and default CK5 EUSART5 clock function.

Key specifications

Parameter Value
Manufacturer Microchip Tech
Package TQFP-64(10x10)
Category Embedded Processors & Controllers
Pins 64

Electrical characteristics

Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).

Parameter Symbol Min Typ Max Unit Conditions Page
Ambient temperature under bias -40 125 °C 745
Storage temperature -65 150 °C 745
Voltage on VDD pin VDD -0.3 6.5 V PIC18F65/66K40, with respect to VSS 745
Voltage on MCLR pin -0.3 9 V with respect to VSS 745
Voltage on all other pins -0.3 V with respect to VSS; max is (VDD + 0.3V) 745
Maximum current on VSS pin 350 mA -40°C ≤ TA ≤ +85°C 745
Maximum current on VDD pin VDD 350 mA -40°C ≤ TA ≤ +85°C 745
Maximum current on any standard I/O pin -50 50 mA 745
Clamp current IK -20 20 mA VPIN < 0 or VPIN > VDD 745
Total power dissipation 800 mW 745
Operating supply voltage VDD (PIC18F) VDD 2.3 5.5 V D002A, FOSC ≤ 16 MHz 748
Operating supply voltage VDD (PIC18F) VDD 2.5 5.5 V D002A, FOSC > 16 MHz 748
Operating supply voltage VDD (PIC18F) VDD 3 5.5 V D002A, FOSC > 32 MHz 748
Operating ambient temperature, industrial TA -40 85 °C Industrial temperature range 746
RAM data retention voltage VDR 1.7 V D003A, device in SLEEP mode 748
VDD rise rate to ensure internal Power-on Reset signal SVDD 0.05 V/ms D006A, BOR or LPBOR disabled 748
Supply current XT = 4 MHz IDDXT4 575 750 μA D150, XT = 4 MHz, VDD 3.0V 750
Supply current HFINTOSC 16 MHz IDDHFO16 2.3 3.2 mA D151, HFINTOSC = 16 MHz, VDD 3.0V 750
Supply current HFINTOSC 64 MHz IDDHFOPLL 8.5 12 mA D152, HFINTOSC = 64 MHz, VDD 3.0V 750
Supply current HS+PLL 64 MHz IDDHSPLL64 8.3 11 mA D153, HS+PLL = 64 MHz, VDD 3.0V 750
Power-down current IPD base IPD 0.4 4 μA D250, VDD 3.0V, VREGPM = 1, max at +85°C 752
Power-down current WDT/LFINTOSC IPD_WDT 0.6 5 μA D251, VDD 3.0V, VREGPM = 1, max at +85°C 752
Power-down current Secondary Oscillator IPD_SOSC 0.8 8.5 μA D252, VDD 3.0V, VREGPM = 1, max at +85°C 752
Power-down current FVR IPD_FVR 32 53 μA D253, VDD 3.0V, VREGPM = 1, FVRCON = 0x81 or 0x84, max at +85°C 752
Power-down current BOR IPD_BOR 14 19 μA D254, VDD 3.0V, VREGPM = 1, max at +85°C 752
Power-down current LPBOR IPD_LPBOR 0.7 5 μA D255, VDD 3.0V, VREGPM = 1, max at +85°C 752
Input low voltage, TTL buffer VIL 0.8 V D300, I/O port with TTL buffer, 4.5V≤VDD≤5.5V 753
Input low voltage, SMBus levels VIL 0.8 V D304, I/O port with SMBus levels, 2.7V≤VDD≤5.5V 753
Input high voltage, TTL buffer VIH 2 V D320, I/O port with TTL buffer, 4.5V≤VDD≤5.5V 753
Input high voltage, SMBus levels VIH 2.1 V D324, I/O port with SMBus levels, 2.7V≤VDD≤5.5V 753
Input leakage current I/O ports IIL -125 5 125 nA D340, VSS≤VPIN≤VDD, pin at high-impedance, 85°C 754
Input leakage current MCLR IIL -200 50 200 nA D342, VSS≤VPIN≤VDD, pin at high-impedance, 85°C 754
Weak pull-up current IPUR 25 120 200 μA D350, VDD=3.0V, VPIN=VSS 754
Output low voltage I/O ports VOL 0.6 V D360, IOL=10.0 mA, VDD=3.0V 754
Pin capacitance, all I/O pins CIO 5 50 pF D380 754
Data EEPROM byte endurance ED 100 k E/W MEM20, -40°C≤TA≤+85°C 754
Program Flash cell endurance EP 10 k E/W MEM30, -40°C≤Ta≤+85°C (Note 1) 754
Byte erase and write cycle time TD_BEW 4 5 ms MEM24 754
Self-timed row erase or write time TP_REW 2 2.5 ms MEM35 755
Thermal resistance junction to ambient, 64-pin TQFP θJA 59 °C/W TH01, 64-pin TQFP package 755
Thermal resistance junction to case, 64-pin TQFP θJC 18 °C/W TH02, 64-pin TQFP package 755
Secondary oscillator clock frequency FSEC 32.4 32.768 33.1 kHz OS10, Note 4 757
System clock frequency FOSC 64 MHz OS20, Note 2, Note 3 757
Instruction cycle period TCY 62.5 ns OS22 757
LP oscillator clock frequency FLP 100 kHz OS7, Note 4 757
PLL input frequency range FPLLIN 4 16 MHz PLL01 759
PLL output frequency range FPLLOUT 16 64 MHz PLL02, Note 1 759
PLL lock time from start-up FPLLST 200 μs PLL03 759
PLL output frequency stability (jitter) FPLLJIT -0.25 0.25 % PLL04 759
CLKOUT rising edge delay TCLKOUTH 70 ns IO1 760
CLKOUT falling edge delay TCLKOUTL 72 ns IO2 760
Port output valid time TIO_VALID 50 70 ns IO3 760
Port input setup time TIO_SETUP 20 ns IO4 760
Port input hold time TIO_HOLD 50 ns IO5 760
INT pin high or low time to trigger an interrupt TINT 25 ns IO10 760
Interrupt-on-change minimum high or low time TIOC 25 ns IO11 760
MCLR pulse width low to ensure Reset TMCLR 2 μs RST01 761

Materials and finish

As the datasheet states them (page.json metadata.appearance; the 3D model's colours follow it).

Part Material Colour / plating Datasheet says Page
housing PPS body RxyPPS 333

CAD (KiCad official)

  • Symbol: PIC18F65K40-I
  • Footprint: Package_QFP:TQFP-64_10x10mm_P0.5mm
  • 3D model: TQFP-64(10x10) (KiCad packages3D, STEP)
  • 3D model files: pic18f65k40-i-etched.step / pic18f65k40-i-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); pic18f65k40-i.step / pic18f65k40-i.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: Microchip Tech datasheet (807 pp, sha256 724f99a23e1fd947, retrieved 2026-11-06, tier: lcsc)
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-sonnet-5-5 (text+vision), consensus claude-opus-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