Datasheet
2009-2011 Microchip Technology Inc. DS39957D-page 7
PIC18F87K90 FAMILY
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 9
2.0 Guidelines for Getting Started with PIC18FXXKXX Microcontrollers ......................................................................................... 35
3.0 Oscillator Configurations ............................................................................................................................................................ 41
4.0 Power-Managed Modes ............................................................................................................................................................. 53
5.0 Reset.......................................................................................................................................................................................... 69
6.0 Memory Organization ................................................................................................................................................................. 85
7.0 Flash Program Memory............................................................................................................................................................ 111
8.0 Data EEPROM Memory ........................................................................................................................................................... 121
9.0 8 x 8 Hardware Multiplier.......................................................................................................................................................... 127
10.0 Interrupts .................................................................................................................................................................................. 129
11.0 I/O Ports ................................................................................................................................................................................... 153
12.0 Timer0 Module ......................................................................................................................................................................... 183
13.0 Timer1 Module ......................................................................................................................................................................... 187
14.0 Timer2 Module ......................................................................................................................................................................... 199
15.0 Timer3/5/7 Modules.................................................................................................................................................................. 201
16.0 Timer4/6/8/10/12 Modules........................................................................................................................................................ 213
17.0 Real-Time Clock and Calendar (RTCC)................................................................................................................................... 217
18.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 237
19.0 Enhanced Capture/Compare/PWM (ECCP) Module................................................................................................................ 251
20.0 Liquid Crystal Display (LCD) Driver Module............................................................................................................................. 273
21.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 303
22.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 349
23.0 12-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 373
24.0 Comparator Module.................................................................................................................................................................. 389
25.0 Comparator Voltage Reference Module................................................................................................................................... 397
26.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 401
27.0 Charge Time Measurement Unit (CTMU) ................................................................................................................................ 407
28.0 Special Features of the CPU.................................................................................................................................................... 425
29.0 Instruction Set Summary.......................................................................................................................................................... 451
30.0 Development Support............................................................................................................................................................... 501
31.0 Electrical Characteristics.......................................................................................................................................................... 505
32.0 Packaging Information.............................................................................................................................................................. 545
Appendix A: Revision History............................................................................................................................................................. 553
Appendix B: Migration From PIC18F85J90 and PIC18F87J90 to PIC18F87K90 .............................................................................. 553
Index ................................................................................................................................................................................................. 555
The Microchip Web Site..................................................................................................................................................................... 567
Customer Change Notification Service .............................................................................................................................................. 567
Customer Support .............................................................................................................................................................................. 567
Reader Response .............................................................................................................................................................................. 568
Product Identification System ............................................................................................................................................................ 569