{"datasheetId":"ds_5905e2de3f75d7691888","chunkCount":1063,"revision":"2026-11-09T20:37:12.161Z","source":"index","nextCursor":"49","chunks":[{"chunkId":"ds_5905e2de3f75d7691888-chunk-0001","chunkIndex":0,"heading":"PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology","headingPath":["PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology"],"preview":"PIC18(L)F2X/4XK22 28/40/44 Pin, Low Power, High Performance Microcontrollers with XLP Technology Microchip Technology DS40001412G (Revision G, August 2016). Source PDF: https://ww1.microchip.com/downloads/en/DeviceDoc/40001412G.pdf (SHA 256","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0001"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0002","chunkIndex":1,"heading":"Page 1","headingPath":["PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology","Page 1"],"preview":"Page 1 DS40001412G page 1: features ```text PIC18(L)F2X/4XK22 28/40/44 Pin, Low Power, High Performance Microcontrollers with XLP Technology High Performance RISC CPU: eXtreme Low Power Features (XLP) • C Compiler Optimized Architecture: (P","images":[{"path":"images/page-001.png","name":"page-001.png","mimeType":"image/png","semanticKind":"text_snippet","semanticCaption":"PIC18(L)F2X/4XK22 microcontroller features overview","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-001.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0002"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0003","chunkIndex":2,"heading":"Page 1","headingPath":["PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology","Page 1"],"preview":"• Programmable Brown out Reset (BOR): • Precision 16 MHz Internal Oscillator Block: With software enable option Factory calibrated to ± 1% Configurable shutdown in Sleep Selectable frequencies, 31 kHz to 16 MHz • Extended Watchdog Timer (WD","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0003"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0004","chunkIndex":3,"heading":"Page 1","headingPath":["PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology","Page 1"],"preview":"Auto acquisition capability • Two Capture/Compare/PWM (CCP) modules Conversion available during Sleep • Three Enhanced CCP (ECCP) modules: Fixed Voltage Reference (FVR) channel One, two or four PWM outputs Independent input multiplexing Sel","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0004"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0005","chunkIndex":4,"heading":"Page 2","headingPath":["PIC18(L)F2X/4XK22 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology","Page 2"],"preview":"Page 2 DS40001412G page 2: family types table ```text 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","images":[{"path":"images/page-002.png","name":"page-002.png","mimeType":"image/png","semanticKind":"electrical_table","semanticCaption":"PIC18(L)F2X/4XK22 family types and memory/peripheral comparison table","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-002.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0005"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0006","chunkIndex":5,"heading":"Single-Word","headingPath":["Single-Word"],"preview":"Single Word CTMU ECCP ECCP 10 bit Instructions I/O(1) CCP Device EEPROM (Bytes) (Bytes) (Bytes) SRAM Flash SPI I2C PIC18(L)F23K22 8K 4096 512 256 25 19 2 1 2 2 2 2 2 Y Y Y 3 4 PIC18(L)F24K22 16K 8192 768 256 25 19 2 1 2 2 2 2 2 Y Y Y 3 4 PI","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0006"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0007","chunkIndex":6,"heading":"Page 3","headingPath":["Single-Word","Page 3"],"preview":"Page 3 text PIC18(L)F2X/4XK22 FIGURE 1: 28 PIN PDIP, SOIC, SSOP DIAGRAM MCLR/VPP/RE3 1 28 RB7/PGD RA0 2 27 RB6/PGC RA1 3 26 RB5 RA2 4 25 RB4 PIC18(L)F2XK22 RA3 5 24 RB3 RA4 6 23 RB2 RA5 7 22 RB1 VSS 8 21 RB0 RA7 9 20 VDD RA6 10 19 VSS RC0 1","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0007"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0008","chunkIndex":7,"heading":"Page 4","headingPath":["Single-Word","Page 4"],"preview":"Page 4 text PIC18(L)F2X/4XK22 FIGURE 3: 40 PIN PDIP DIAGRAM MCLR/VPP/RE3 1 40 RB7/PGD RA0 2 39 RB6/PGC RA1 3 38 RB5 RA2 4 37 RB4 RA3 5 36 RB3 RA4 6 35 RB2 RA5 7 34 RB1 PIC18(L)F4XK22 RE0 8 33 RB0 RE1 9 32 VDD RE2 10 31 VSS VDD 11 30 RD7 VSS","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0008"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0009","chunkIndex":8,"heading":"Page 5","headingPath":["Single-Word","Page 5"],"preview":"Page 5 DS40001412G page 5: 44 pin TQFP pin diagram ```text PIC18(L)F2X/4XK22 FIGURE 5: 44 PIN TQFP DIAGRAM RC6 RC5 RC4 RD3 RD2 RD1 RD0 RC3 RC2 RC1 NC 41 40 39 37 36 35 34 42 44 43 38 RC7 1 33 NC RD4 2 32 RC0 RD5 3 31 RA6 RD6 4 30 RA7 RD7 5","images":[{"path":"images/page-005.png","name":"page-005.png","mimeType":"image/png","semanticKind":"pinout","semanticCaption":"44-pin TQFP and QFN package pin diagrams for PIC18(L)F4XK22","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-005.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0009"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0010","chunkIndex":9,"heading":"Page 5","headingPath":["Single-Word","Page 5"],"preview":"RB4 RB5 PGC/RB6 PGD/RB7 MCLR/VPP/RE3 RA0 RA1 RA2 RA3 NC  2010 2016 Microchip Technology Inc. DS40001412G page 5 Page 6 text PIC18(L)F2X/4XK22 TABLE 2: PIC18(L)F2XK22 PIN SUMMARY 28 SSOP, SOIC 28 QFN, UQFN Comparator Reference Interrupts 28","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0010"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0011","chunkIndex":10,"heading":"Page 6","headingPath":["Single-Word","Page 6"],"preview":"11 8 RC0 P2B(3) SOSCO T1CKI T3CKI(2) T3G 12 9 RC1 CCP2 SOSCI P2A(1) 13 10 RC2 AN14 CTPLS CCP1 T5CKI P1A 14 11 RC3 AN15 SCK1 SCL1 15 12 RC4 AN16 SDI1 SDA1 16 13 RC5 AN17 SDO1 17 14 RC6 AN18 CCP3 TX1/CK1 P3A(4) 18 15 RC7 AN19 P3B RX1/DT1 1 26","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0011"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0012","chunkIndex":11,"heading":"Page 7","headingPath":["Single-Word","Page 7"],"preview":"Page 7 DS40001412G page 7: PIC18(L)F4XK22 pin summary ```text PIC18(L)F2X/4XK22 TABLE 3: PIC18(L)F4XK22 PIN SUMMARY Comparator Reference Interrupts SR Latch 40 UQFN 44 TQFP EUSART 40 PDIP 44 QFN (E)CCP Analog Pull up Timers CTMU MSSP Basic","images":[{"path":"images/page-007.png","name":"page-007.png","mimeType":"image/png","semanticKind":"electrical_table","semanticCaption":"PIC18(L)F4XK22 pin summary and alternate functions","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-007.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0012"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0013","chunkIndex":12,"heading":"Page 7","headingPath":["Single-Word","Page 7"],"preview":"T3CKI(2) T3G 16 31 35 35 RC1 CCP2(1) SOSCI P2A 17 32 36 36 RC2 AN14 CTPLS CCP1 T5CKI P1A 18 33 37 37 RC3 AN15 SCK1 SCL1 23 38 42 42 RC4 AN16 SDI1 SDA1 24 39 43 43 RC5 AN17 SDO1 25 40 44 44 RC6 AN18 TX1 CK1 26 1 1 1 RC7 AN19 RX1 DT1 19 34 38","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0013"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0014","chunkIndex":13,"heading":"Page 8","headingPath":["Single-Word","Page 8"],"preview":"Page 8 DS40001412G page 8: pin summary (continued) text PIC18(L)F2X/4XK22 TABLE 3: PIC18(L)F4XK22 PIN SUMMARY (CONTINUED) Comparator Reference Interrupts SR Latch 40 UQFN 44 TQFP EUSART 40 PDIP 44 QFN (E)CCP Analog Pull up Timers CTMU MSSP","images":[{"path":"images/page-008.png","name":"page-008.png","mimeType":"image/png","semanticKind":"electrical_table","semanticCaption":"Continuation of PIC18(L)F4XK22 pin summary","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-008.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0014"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0015","chunkIndex":14,"heading":"Page 9","headingPath":["Single-Word","Page 9"],"preview":"Page 9 DS40001412G page 9: product identification ```text PIC18(L)F2X/4XK22 Table of Contents 1.0 Device Overview ..............................................................................................................................","images":[{"path":"images/page-009.png","name":"page-009.png","mimeType":"image/png","semanticKind":"text_snippet","semanticCaption":"PIC18(L)F2X/4XK22 datasheet table of contents","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-009.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0015"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0016","chunkIndex":15,"heading":"Page 9","headingPath":["Single-Word","Page 9"],"preview":"6.0 Flash Program Memory............................................................................................................................................................. 90 7.0 Data EEPROM Memory ................................","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0016"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0017","chunkIndex":16,"heading":"Page 9","headingPath":["Single-Word","Page 9"],"preview":"12.0 Timer1/3/5 Module with Gate Control...................................................................................................................................... 157 13.0 Timer2/4/6 Module ......................................","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0017"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0018","chunkIndex":17,"heading":"Page 9","headingPath":["Single-Word","Page 9"],"preview":"18.0 Comparator Module................................................................................................................................................................. 302 19.0 Charge Time Measurement Unit (CTMU)............","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0018"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0019","chunkIndex":18,"heading":"Page 9","headingPath":["Single-Word","Page 9"],"preview":"24.0 Special Features of the CPU ................................................................................................................................................... 343 25.0 Instruction Set Summary ..........................","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0019"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0020","chunkIndex":19,"heading":"Page 9","headingPath":["Single-Word","Page 9"],"preview":"Appendix A: Revision History............................................................................................................................................................ 534 Appendix B: Device Differences.....................","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0020"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0021","chunkIndex":20,"heading":"Page 10","headingPath":["Single-Word","Page 10"],"preview":"Page 10 ```text PIC18(L)F2X/4XK22 TO OUR VALUED CUSTOMERS It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip products. To this end, we will continue to improve","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0021"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0022","chunkIndex":21,"heading":"Page 10","headingPath":["Single-Word","Page 10"],"preview":"devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision of silicon and revision of document to which it applies. To determine if an errata sheet exists for a particul","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0022"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0023","chunkIndex":22,"heading":"Page 11","headingPath":["Single-Word","Page 11"],"preview":"Page 11 ```text PIC18(L)F2X/4XK22 1.0 DEVICE OVERVIEW 1.1.2 MULTIPLE OSCILLATOR OPTIONS AND FEATURES This document contains device specific information for the following devices: All of the devices in the PIC18(L)F2X/4XK22 family offer ten","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0023"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0024","chunkIndex":23,"heading":"Page 11","headingPath":["Single-Word","Page 11"],"preview":"performance at an economical price – with the addition 16 MHz HFINTOSC oscillator and a 31 kHz of high endurance, Flash program memory. On top of LFINTOSC oscillator, which together provide eight these features, the PIC18(L)F2X/4XK22 family","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0024"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0025","chunkIndex":24,"heading":"Page 11","headingPath":["Single-Word","Page 11"],"preview":"items include: oscillator block provides a stable reference source that • Alternate Run Modes: By clocking the controller gives the family additional features for robust from the Timer1 source or the internal oscillator operation: block, po","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0025"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0026","chunkIndex":25,"heading":"Page 11","headingPath":["Single-Word","Page 11"],"preview":"saving ideas into their application’s software design. • Low Consumption in Key Modules: The power requirements for both Timer1 and the Watchdog Timer are minimized. See Section 27.0 “Electrical Specifications” for values.  2010 2016 Micro","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0026"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0027","chunkIndex":26,"heading":"Page 12","headingPath":["Single-Word","Page 12"],"preview":"located in the protected Boot Block at the top of 4. A/D channels program memory, it becomes possible to create 5. I/O ports an application that can update itself in the field. 6. ECCP modules (Full/Half Bridge) • Extended Instruction Set:","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0027"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0028","chunkIndex":27,"heading":"Page 12","headingPath":["Single-Word","Page 12"],"preview":"Auto Restart, to reactivate outputs once the condition has cleared Output steering to selectively enable one or more of four outputs to provide the PWM signal. • Enhanced Addressable EUSART: This serial communication module is capable of st","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0028"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0029","chunkIndex":28,"heading":"Page 12","headingPath":["Single-Word","Page 12"],"preview":"• Charge Time Measurement Unit (CTMU) • SR Latch Output: DS40001412G page 12  2010 2016 Microchip Technology Inc. Page 13 text TABLE 1 1: DEVICE FEATURES  2010 2016 Microchip Technology Inc. PIC18F23K22 PIC18F24K22 PIC18F25K22 PIC18F26K22","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0029"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0030","chunkIndex":29,"heading":"Page 13","headingPath":["Single-Word","Page 13"],"preview":"10 bit Analog to Digital Module (ADC) 2 internal 2 internal 2 internal 2 internal 2 internal 2 internal 2 internal 2 internal 17 input 17 input 17 input 17 input 28 input 28 input 28 input 28 input Packages 28 pin PDIP 28 pin PDIP 28 pin PD","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0030"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0031","chunkIndex":30,"heading":"Page 13","headingPath":["Single-Word","Page 13"],"preview":"83 with Extended Instruction Set enabled Operating Frequency DC 64 MHz Note 1: PORTE contains the single RE3 read only bit. Page 14 text PIC18(L)F2X/4XK22 FIGURE 1 1: PIC18(L)F2X/4XK22 FAMILY BLOCK DIAGRAM Data Bus","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0031"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0032","chunkIndex":31,"heading":"Page 14","headingPath":["Single-Word","Page 14"],"preview":"Precision FVR Single Supply Brown out Band Gap MCLR(1) Reset Programming Reference In Circuit Fail Safe Debugger Clock Monitor BOR Data Timer1 Timer2 Timer0 Timer3 Timer4 CTMU DAC HLVD EEPROM Timer5 Timer6 FVR ECCP1 CCP4 Comparators MSSP1 E","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0032"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0033","chunkIndex":32,"heading":"Page 15","headingPath":["Single-Word","Page 15"],"preview":"Page 15 ```text PIC18(L)F2X/4XK22 TABLE 1 2: PIC18(L)F2XK22 PINOUT I/O DESCRIPTIONS Pin Number Pin Buffer PDIP, QFN, Pin Name Description Type Type SOIC UQFN 2 27 RA0/C12IN0 /AN0 RA0 I/O TTL Digital I/O. C12IN0 I Analog Comparators C1 and C","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0033"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0034","chunkIndex":33,"heading":"Page 15","headingPath":["Single-Word","Page 15"],"preview":"SRQ O TTL SR latch Q output. T0CKI I ST Timer0 external clock input. 7 4 RA5/C2OUT/SRNQ/SS1/HLVDIN/AN4 RA5 I/O TTL Digital I/O. C2OUT O CMOS Comparator C2 output. SRNQ O TTL SR latch Q output. SS1 I TTL SPI slave select input (MSSP). HLVDIN","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0034"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0035","chunkIndex":34,"heading":"Page 16","headingPath":["Single-Word","Page 16"],"preview":"Page 16 ```text PIC18(L)F2X/4XK22 TABLE 1 2: PIC18(L)F2XK22 PINOUT I/O DESCRIPTIONS (CONTINUED) Pin Number Pin Buffer PDIP, QFN, Pin Name Description Type Type SOIC UQFN 9 6 RA7/CLKI/OSC1 RA7 I/O TTL Digital I/O. CLKI I CMOS External clock","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0035"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0036","chunkIndex":35,"heading":"Page 16","headingPath":["Single-Word","Page 16"],"preview":"C12IN3 I Analog Comparators C1 and C2 inverting input. AN10 I Analog Analog input 10. 23 20 RB2/INT2/CTED1/P1B/SDI2/SDA2/AN8 RB2 I/O TTL Digital I/O. INT2 I ST External interrupt 2. CTED1 I ST CTMU Edge 1 input. P1B O CMOS Enhanced CCP1 PWM","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0036"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0037","chunkIndex":36,"heading":"Page 16","headingPath":["Single-Word","Page 16"],"preview":"2: Alternate pin assignment for P2B, T3CKI, CCP3 and CCP2 when Configuration bits PB2MX, T3CMX, CCP3MX and CCP2MX are clear. DS40001412G page 16  2010 2016 Microchip Technology Inc. Page 17 text PIC18(L)F2X/4XK22 TABLE 1 2: PIC18(L)F2XK22","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0037"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0038","chunkIndex":37,"heading":"Page 17","headingPath":["Single-Word","Page 17"],"preview":"TX2 O — EUSART asynchronous transmit. CK2 I/O ST EUSART synchronous clock (see related RXx/DTx). PGC I/O ST In Circuit Debugger and ICSP™ programming clock pin. 28 25 RB7/IOC3/RX2/DT2/PGD RB7 I/O TTL Digital I/O. IOC3 I TTL Interrupt on cha","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0038"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0039","chunkIndex":38,"heading":"Page 17","headingPath":["Single-Word","Page 17"],"preview":"Note 1: Default pin assignment for P2B, T3CKI, CCP3 and CCP2 when Configuration bits PB2MX, T3CMX, CCP3MX and CCP2MX are set. 2: Alternate pin assignment for P2B, T3CKI, CCP3 and CCP2 when Configuration bits PB2MX, T3CMX, CCP3MX and CCP2MX","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0039"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0040","chunkIndex":39,"heading":"Page 18","headingPath":["Single-Word","Page 18"],"preview":"SDI1 I ST SPI data in (MSSP). SDA1 I/O ST I2C data I/O (MSSP). AN16 I Analog Analog input 16. 16 13 RC5/SDO1/AN17 RC5 I/O ST Digital I/O. SDO1 O — SPI data out (MSSP). AN17 I Analog Analog input 17. 17 14 RC6/P3A/CCP3/TX1/CK1/AN18 RC6 I/O S","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0040"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0041","chunkIndex":40,"heading":"Page 18","headingPath":["Single-Word","Page 18"],"preview":"Note 1: Default pin assignment for P2B, T3CKI, CCP3 and CCP2 when Configuration bits PB2MX, T3CMX, CCP3MX and CCP2MX are set. 2: Alternate pin assignment for P2B, T3CKI, CCP3 and CCP2 when Configuration bits PB2MX, T3CMX, CCP3MX and CCP2MX","images":[{"path":"images/page-019.png","name":"page-019.png","mimeType":"image/png","semanticKind":"pinout","semanticCaption":"PIC18(L)F2X/F4XK22 pinout I/O description tables","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-019.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0041"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0042","chunkIndex":41,"heading":"Page 19","headingPath":["Single-Word","Page 19"],"preview":"TABLE 1 3: PIC18(L)F4XK22 PINOUT I/O DESCRIPTIONS Pin Number Pin Buffer Pin Name Description PDIP TQFP QFN UQFN Type Type 2 19 19 17 RA0/C12IN0 /AN0 RA0 I/O TTL Digital I/O. C12IN0 I Analog Comparators C1 and C2 inverting input. AN0 I Analo","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0042"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0043","chunkIndex":42,"heading":"Page 19","headingPath":["Single-Word","Page 19"],"preview":"Legend: TTL = TTL compatible input CMOS = CMOS compatible input or output; ST = Schmitt Trigger input with CMOS levels; I = Input; O = Output; P = Power. Note 1: Default pin assignment for P2B, T3CKI, CCP3/P3A and CCP2/P2A when Configuratio","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0043"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0044","chunkIndex":43,"heading":"Page 20","headingPath":["Single-Word","Page 20"],"preview":"Page 20 DS40001412G page 20: Table 1 3 (continued) ```text PIC18(L)F2X/4XK22 TABLE 1 3: PIC18(L)F4XK22 PINOUT I/O DESCRIPTIONS (CONTINUED) Pin Number Pin Buffer Pin Name Description PDIP TQFP QFN UQFN Type Type 7 24 24 22 RA5/C2OUT/SRNQ/SS1","images":[{"path":"images/page-020.png","name":"page-020.png","mimeType":"image/png","semanticKind":"pinout","semanticCaption":"PIC18(L)F4XK22 continued pinout I/O descriptions","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-020.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0044"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0045","chunkIndex":44,"heading":"Page 20","headingPath":["Single-Word","Page 20"],"preview":"33 8 9 8 RB0/INT0/FLT0/SRI/AN12 RB0 I/O TTL Digital I/O. INT0 I ST External interrupt 0. FLT0 I ST PWM Fault input for ECCP Auto Shutdown. SRI I ST SR latch input. AN12 I Analog Analog input 12. 34 9 10 9 RB1/INT1/C12IN3 /AN10 RB1 I/O TTL D","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0045"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0046","chunkIndex":45,"heading":"Page 20","headingPath":["Single-Word","Page 20"],"preview":"Note 1: Default pin assignment for P2B, T3CKI, CCP3/P3A and CCP2/P2A when Configuration bits PB2MX, T3CMX, CCP3MX and CCP2MX are set. 2: Alternate pin assignment for P2B, T3CKI, CCP3/P3A and CCP2/P2A when Configuration bits PB2MX, T3CMX, CC","images":[{"path":"images/page-021.png","name":"page-021.png","mimeType":"image/png","semanticKind":"pinout","semanticCaption":"PIC18(L)F4XK22 continued pinout I/O descriptions","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-021.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0046"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0047","chunkIndex":46,"heading":"Page 21","headingPath":["Single-Word","Page 21"],"preview":"AN13 I Analog Analog input 13. 39 16 16 14 RB6/IOC2/PGC RB6 I/O TTL Digital I/O. IOC2 I TTL Interrupt on change pin. PGC I/O ST In Circuit Debugger and ICSP™ programming clock pin. 40 17 17 15 RB7/IOC3/PGD RB7 I/O TTL Digital I/O. IOC3 I TT","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0047"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0048","chunkIndex":47,"heading":"Page 21","headingPath":["Single-Word","Page 21"],"preview":"CCP1 I/O ST Capture 1 input/Compare 1 output/PWM 1 output. T5CKI I ST Timer5 clock input. AN14 I Analog Analog input 14. Legend: TTL = TTL compatible input CMOS = CMOS compatible input or output; ST = Schmitt Trigger input with CMOS levels;","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0048"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0049","chunkIndex":48,"heading":"Page 22","headingPath":["Single-Word","Page 22"],"preview":"Page 22 DS40001412G page 22: Table 1 3 (continued) ```text PIC18(L)F2X/4XK22 TABLE 1 3: PIC18(L)F4XK22 PINOUT I/O DESCRIPTIONS (CONTINUED) Pin Number Pin Buffer Pin Name Description PDIP TQFP QFN UQFN Type Type 18 37 37 33 RC3/SCK1/SCL1/AN1","images":[{"path":"images/page-022.png","name":"page-022.png","mimeType":"image/png","semanticKind":"pinout","semanticCaption":"PIC18(L)F4XK22 continued pinout I/O descriptions","viewUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/asset?path=images%2Fpage-022.png"}],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0049"},{"chunkId":"ds_5905e2de3f75d7691888-chunk-0050","chunkIndex":49,"heading":"Page 22","headingPath":["Single-Word","Page 22"],"preview":"RX1 I ST EUSART asynchronous receive. DT1 I/O ST EUSART synchronous data (see related TXx/ CKx). AN19 I Analog Analog input 19. 19 38 38 34 RD0/SCK2/SCL2/AN20 RD0 I/O ST Digital I/O. SCK2 I/O ST Synchronous serial clock input/output for SPI","images":[],"readUrl":"https://www.embedr.app/api/datasheets/ds_5905e2de3f75d7691888/chunks/ds_5905e2de3f75d7691888-chunk-0050"}]}