Datasheet
2010-2016 Microchip Technology Inc. DS40001412G-page 9
PIC18(L)F2X/4XK22
Table of Contents
1.0 Device Overview ........................................................................................................................................................................ 11
2.0 Oscillator Module (With Fail-Safe Clock Monitor)) .................................................................................................................... 25
3.0 Power-Managed Modes ............................................................................................................................................................ 44
4.0 Reset......................................................................................................................................................................................... 55
5.0 Memory Organization................................................................................................................................................................ 64
6.0 Flash Program Memory............................................................................................................................................................. 90
7.0 Data EEPROM Memory ............................................................................................................................................................ 99
8.0 8 x 8 Hardware Multiplier......................................................................................................................................................... 104
9.0 Interrupts ................................................................................................................................................................................. 106
10.0 I/O Ports .................................................................................................................................................................................. 127
11.0 Timer0 Module ........................................................................................................................................................................ 154
12.0 Timer1/3/5 Module with Gate Control...................................................................................................................................... 157
13.0 Timer2/4/6 Module .................................................................................................................................................................. 169
14.0 Capture/Compare/PWM Modules ........................................................................................................................................... 173
15.0 Master Synchronous Serial Port (MSSP1 and MSSP2) Module ............................................................................................. 204
16.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) .............................................................. 259
17.0 Analog-to-Digital Converter (ADC) Module ............................................................................................................................. 288
18.0 Comparator Module................................................................................................................................................................. 302
19.0 Charge Time Measurement Unit (CTMU)................................................................................................................................. 311
20.0 SR L
ATCH................................................................................................................................................................................. 326
21.0 Fixed Voltage Reference (FVR) .............................................................................................................................................. 331
22.0 Digital-to-Analog Converter (DAC) Module ............................................................................................................................. 333
23.0 High/Low-Voltage Detect (HLVD) ............................................................................................................................................ 337
24.0 Special Features of the CPU................................................................................................................................................... 343
25.0 Instruction Set Summary......................................................................................................................................................... 360
26.0 Development Support.............................................................................................................................................................. 410
27.0 Electrical Specifications........................................................................................................................................................... 414
28.0 DC and AC Characteristics Graphs and Tables ...................................................................................................................... 453
29.0 Packaging Information............................................................................................................................................................. 509
Appendix A: Revision History............................................................................................................................................................ 534
Appendix B: Device Differences........................................................................................................................................................ 535
The Microchip Web Site.................................................................................................................................................................... 536
Customer Change Notification Service ............................................................................................................................................. 536
Customer Support............................................................................................................................................................................. 536
Product Identification System ........................................................................................................................................................... 537