English
Language : 

PIC18F87K22 Datasheet, PDF (7/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 9
2.0 Guidelines for Getting Started with PIC18FXXKXX Microcontrollers ......................................................................................... 37
3.0 Oscillator Configurations ............................................................................................................................................................ 41
4.0 Power-Managed Modes ............................................................................................................................................................. 55
5.0 Reset .......................................................................................................................................................................................... 71
6.0 Memory Organization ................................................................................................................................................................. 85
7.0 Flash Program Memory............................................................................................................................................................ 109
8.0 External Memory Bus ............................................................................................................................................................... 119
9.0 Data EEPROM Memory ........................................................................................................................................................... 131
10.0 8 x 8 Hardware Multiplier.......................................................................................................................................................... 137
11.0 Interrupts .................................................................................................................................................................................. 139
12.0 I/O Ports ................................................................................................................................................................................... 163
13.0 Timer0 Module ......................................................................................................................................................................... 191
14.0 Timer1 Module ......................................................................................................................................................................... 195
15.0 Timer2 Module ......................................................................................................................................................................... 207
16.0 Timer3/5/7 Modules.................................................................................................................................................................. 209
17.0 Timer4/6/8/10/12 Modules........................................................................................................................................................ 221
18.0 Real-Time Clock and Calendar (RTCC)................................................................................................................................... 225
19.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 243
20.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 257
21.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 279
22.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 325
23.0 12-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 349
24.0 Comparator Module.................................................................................................................................................................. 365
25.0 Comparator Voltage Reference Module................................................................................................................................... 373
26.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 377
27.0 Charge Time Measurement Unit (CTMU) ................................................................................................................................ 383
28.0 Special Features of the CPU.................................................................................................................................................... 401
29.0 Instruction Set Summary .......................................................................................................................................................... 429
30.0 Development Support............................................................................................................................................................... 479
31.0 Electrical Characteristics .......................................................................................................................................................... 483
32.0 Packaging Information.............................................................................................................................................................. 523
Appendix A: Revision History............................................................................................................................................................. 531
Appendix B: Migration From PIC18F87J11 and PIC18F8722 to PIC18F87K22................................................................................ 531
Index .................................................................................................................................................................................................. 533
The Microchip Web Site ..................................................................................................................................................................... 545
Customer Change Notification Service .............................................................................................................................................. 545
Customer Support .............................................................................................................................................................................. 545
Reader Response .............................................................................................................................................................................. 546
Product Identification System ............................................................................................................................................................ 547
 2010 Microchip Technology Inc.
Preliminary
DS39960B-page 7