PIC18(L)F2X/4XK22 Data Sheet 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology 2010-2012 Microchip Technology Inc.
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature.
PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology High-Performance RISC CPU: • C Compiler Optimized Architecture: - Optional extended instruction set designed to optimize re-entrant code • Up to 1024 Bytes Data EEPROM • Up to 64 Kbytes Linear Program Memory Addressing • Up to 3896 Bytes Linear Data Memory Addressing • Up to 16 MIPS Operation • 16-bit Wide Instructions, 8-bit Wide Data Path • Priority Levels for Interrupts • 31-Level, Software Accessible Hardwar
PIC18(L)F2X/4XK22 • Two Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) modules: - Supports RS-485, RS-232 and LIN - RS-232 operation using internal oscillator - Auto-Wake-up on Break - Auto-Baud Detect SRAM (Bytes) EEPROM (Bytes) I/O(1) 10-bit A/D Channels(2) CCP ECCP (Full-Bridge) ECCP (Half-Bridge) SPI I2C™ EUSART Comparator CTMU BOR/LVD SR Latch 8-bit Timer 16-bit Timer MSSP # Single-Word Instructions Data Memory Flash (Bytes) Program Memory PIC18(L)F23K22
PIC18(L)F2X/4XK22 Pin Diagrams (28-pin) 28-pin PDIP, SOIC, SSOP 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 PIC18(L)F2XK22 MCLR/VPP/RE3 RA0 RA1 RA2 RA3 RA4 RA5 VSS RA7 RA6 RC0 RC1 RC2 RC3 RB7/PGD RB6/PGC RB5 RB4 RB3 RB2 RB1 RB0 VDD VSS RC7 RC6 RC5 RC4 RA1 RA0 MCLR/VPP/RE3 RB7/PGD RB6/PGC RB5 RB4 28-pin QFN, UQFN(1) 28 27 26 25 24 23 22 1 2 3 4 PIC18(L)F2XK22 5 6 7 8 9 10 11 12 13 14 21 20 19 18 17 16 15 RB3 RB2 RB1 RB0 VDD VSS RC7 RC0 RC1 RC2 RC3 RC4 RC5 RC6 RA2 RA3
PIC18(L)F2X/4XK22 Pin Diagrams (40-pin) MCLR/VPP/RE3 RA0 RA1 RA2 RA3 RA4 RA5 RE0 RE1 RE2 VDD VSS RA7 RA6 RC0 RC1 RC2 RC3 RD0 RD1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 PIC18(L)F4XK22 40-pin PDIP 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 RB7/PGD RB6/PGC RB5 RB4 RB3 RB2 RB1 RB0 VDD VSS RD7 RD6 RD5 RD4 RC7 RC6 RC5 RC4 RD3 RD2 40 39 38 37 36 35 34 33 32 31 RC6 RC5 RC4 RD3 RD2 RD1 RD0 RC3 RC2 RC1 40-pin UQFN 1 2 3 4 5 PIC18(L)F4XK22 6 7 8 9 10 30 29 28 27 26 25 24 23 22 21
PIC18(L)F2X/4XK22 Pin Diagrams (44-pin) 44 43 42 41 40 39 38 37 36 35 34 RC6 RC5 RC4 RD3 RD2 RD1 RD0 RC3 RC2 RC1 NC 44-pin TQFP 1 2 3 4 5 6 PIC18(L)F4XK22 7 8 9 10 11 33 32 31 30 29 28 27 26 25 24 23 NC RC0 RA6 RA7 VSS VDD RE2 RE1 RE0 RA5 RA4 NC NC RB4 RB5 PGC/RB6 PGD/RB7 MCLR/VPP/RE3 RA0 RA1 RA2 RA3 22 21 20 19 18 17 16 15 14 13 12 RC7 RD4 RD5 RD6 RD7 VSS VDD RB0 RB1 RB2 RB3 1 2 3 4 5 6 PIC18(L)F4XK22 7 8 9 10 11 33 RA6 32 RA7 31 VSS 30 VSS 29 VDD 28 VDD 27 RE2 26 RE1 25 RE0 24 RA5 23 RA4 RB3 N
PIC18(L)F2X/4XK22 C2IN+ AN3 5 2 RA3 6 3 RA4 AN4 Basic AN2 Pull-up RA2 Interrupts 1 Timers C12IN1- 4 MSSP C12IN0- AN1 EUSART AN0 RA1 (E)CCP Comparator RA0 28 Reference Analog 27 3 SR Latch I/O 2 CTMU 28-QFN, UQFN PIC18(L)F2XK22 PIN SUMMARY 28-SSOP, SOIC 28-SPDIP TABLE 1: VREFDACOUT C1IN+ VREF+ C1OUT SRQ C2OUT SRNQ CCP5 T0CKI 7 4 RA5 10 7 RA6 OSC2 CLKO 9 6 RA7 OSC1 CLKI 21 18 RB0 AN12 22 19 RB1 AN10 23 20 RB2 AN8 24 21 RB3 AN9 SRI SS
PIC18(L)F2X/4XK22 21 21 RA2 AN2 C2IN+ AN3 Basic 19 Pull-up C12IN1- 4 Interrupts C12IN0- AN1 Timers AN0 RA1 MSSP Comparator RA0 20 EUSART Analog 19 20 (E)CCP I/O 19 18 Reference 44-QFN 17 3 SR Latch 44-TQFP 2 CTMU 40-UQFN PIC18(L)F4XK22 PIN SUMMARY 40-PDIP TABLE 2: VREFDACOUT 5 20 22 22 RA3 6 21 23 23 RA4 7 22 24 24 RA5 14 29 31 33 RA6 OSC2 CLKO 13 28 30 32 RA7 OSC1 CLKI 33 8 8 9 RB0 AN12 34 9 9 10 RB1 AN10 35 10 10 11 RB2
PIC18(L)F2X/4XK22 Interrupts P3B 10 25 27 27 RE2 AN7 CCP5 1 16 18 18 RE3 11 32 7, 26 7 28 7,8 28, 29 VDD 12 31 6, 27 6 29 6 30, 31 VSS — — 12, 13 33, 34 13 Note 1: 2: 3: 4: Basic AN6 Pull-up RE1 Timers 26 MSSP 26 EUSART Analog 24 (E)CCP I/O Reference 44-QFN SR Latch 44-TQFP 9 CTMU 40-UQFN Comparator PIC18(L)F4XK22 PIN SUMMARY (CONTINUED) 40-PDIP TABLE 2: Y MCLR VPP NC CCP2 multiplexed in fuses. T3CKI multiplexed in fuses. CCP3/P3A multiplexed in fuses.