English
Language : 

PIC18F66K22-I Datasheet, PDF (7/550 Pages) Microchip Technology – PIC18F87K22 Family Data Sheet
PIC18F87K22 FAMILY
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 9
2.0 Guidelines for Getting Started with PIC18FXXKXX Microcontrollers ......................................................................................... 37
3.0 Oscillator Configurations ............................................................................................................................................................ 43
4.0 Power-Managed Modes ............................................................................................................................................................. 57
5.0 Reset .......................................................................................................................................................................................... 73
6.0 Memory Organization ................................................................................................................................................................. 87
7.0 Flash Program Memory............................................................................................................................................................ 111
8.0 External Memory Bus ............................................................................................................................................................... 121
9.0 Data EEPROM Memory ........................................................................................................................................................... 133
10.0 8 x 8 Hardware Multiplier.......................................................................................................................................................... 139
11.0 Interrupts .................................................................................................................................................................................. 141
12.0 I/O Ports ................................................................................................................................................................................... 165
13.0 Timer0 Module ......................................................................................................................................................................... 193
14.0 Timer1 Module ......................................................................................................................................................................... 197
15.0 Timer2 Module ......................................................................................................................................................................... 209
16.0 Timer3/5/7 Modules.................................................................................................................................................................. 211
17.0 Timer4/6/8/10/12 Modules........................................................................................................................................................ 223
18.0 Real-Time Clock and Calendar (RTCC)................................................................................................................................... 227
19.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 245
20.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 259
21.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 281
22.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 327
23.0 12-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 351
24.0 Comparator Module.................................................................................................................................................................. 367
25.0 Comparator Voltage Reference Module................................................................................................................................... 375
26.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 379
27.0 Charge Time Measurement Unit (CTMU) ................................................................................................................................ 385
28.0 Special Features of the CPU.................................................................................................................................................... 403
29.0 Instruction Set Summary .......................................................................................................................................................... 431
30.0 Development Support............................................................................................................................................................... 481
31.0 Electrical Characteristics .......................................................................................................................................................... 485
32.0 Packaging Information.............................................................................................................................................................. 525
Appendix A: Revision History............................................................................................................................................................. 533
Appendix B: Migration From PIC18F87J11 and PIC18F8722 to PIC18F87K22................................................................................ 534
Index .................................................................................................................................................................................................. 535
The Microchip Web Site ..................................................................................................................................................................... 547
Customer Change Notification Service .............................................................................................................................................. 547
Customer Support .............................................................................................................................................................................. 547
Reader Response .............................................................................................................................................................................. 548
Product Identification System ............................................................................................................................................................ 549
 2009-2011 Microchip Technology Inc.
DS39960D-page 7