Datasheet

2010-2015 Microchip Technology Inc. DS40001303H-page 9
PIC18F2XK20/4XK20
Table of Contents
1.0 Device Overview ....................................................................................................................................................................... 11
2.0 Oscillator Module (With Fail-Safe Clock Monitor)...................................................................................................................... 26
3.0 Power-Managed Modes ............................................................................................................................................................ 41
4.0 Reset......................................................................................................................................................................................... 48
5.0 Memory Organization................................................................................................................................................................ 61
6.0 Flash Program Memory............................................................................................................................................................. 84
7.0 Data EEPROM Memory ............................................................................................................................................................ 93
8.0 8 x 8 Hardware Multiplier........................................................................................................................................................... 98
9.0 Interrupts................................................................................................................................................................................. 100
10.0 I/O Ports .................................................................................................................................................................................. 113
11.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................ 134
12.0 Timer0 Module ........................................................................................................................................................................ 145
13.0 Timer1 Module ........................................................................................................................................................................ 148
14.0 Timer2 Module ........................................................................................................................................................................ 155
15.0 Timer3 Module ........................................................................................................................................................................ 157
16.0 Enhanced Capture/Compare/PWM (ECCP) Module............................................................................................................... 161
17.0 Master Synchronous Serial Port (MSSP) Module ................................................................................................................... 179
18.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART).............................................................. 222
19.0 Analog-to-Digital Converter (ADC) Module ............................................................................................................................. 249
20.0 Comparator Module................................................................................................................................................................. 262
21.0 Voltage References................................................................................................................................................................. 272
22.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................ 276
23.0 Special Features of the CPU................................................................................................................................................... 281
24.0 Instruction Set Summary......................................................................................................................................................... 296
25.0 Development Support.............................................................................................................................................................. 346
26.0 Electrical Characteristics......................................................................................................................................................... 350
27.0 DC and AC Characteristics Graphs and Tables...................................................................................................................... 387
28.0 Packaging Information............................................................................................................................................................. 410
Appendix A: Revision History............................................................................................................................................................ 435
Appendix B: Device Differences ....................................................................................................................................................... 436
The Microchip Web Site.................................................................................................................................................................... 437
Customer Change Notification Service ............................................................................................................................................. 437
Customer Support............................................................................................................................................................................. 437
Product Identification System ........................................................................................................................................................... 438