Datasheet

PIC18F66K80 FAMILY
DS30009977G-page 8 2010-2017 Microchip Technology Inc.
Table of Contents
1.0 Device Overview ........................................................................................................................................................................ 10
2.0 Guidelines for Getting Started with PIC18FXXKXX Microcontrollers ......................................................................................... 43
3.0 Oscillator Configurations ............................................................................................................................................................ 48
4.0 Power-Managed Modes ............................................................................................................................................................. 61
5.0 Reset .......................................................................................................................................................................................... 75
6.0 Memory Organization ................................................................................................................................................................. 97
7.0 Flash Program Memory ............................................................................................................................................................ 125
8.0 Data EEPROM Memory ........................................................................................................................................................... 134
9.0 8 x 8 Hardware Multiplier.......................................................................................................................................................... 140
10.0 Interrupts .................................................................................................................................................................................. 142
11.0 I/O Ports ................................................................................................................................................................................... 165
12.0 Data Signal Modulator.............................................................................................................................................................. 189
13.0 Timer0 Module ......................................................................................................................................................................... 199
14.0 Timer1 Module ......................................................................................................................................................................... 202
15.0 Timer2 Module ......................................................................................................................................................................... 214
16.0 Timer3 Module ......................................................................................................................................................................... 217
17.0 Timer4 Modules........................................................................................................................................................................ 227
18.0 Charge Time Measurement Unit (CTMU) ................................................................................................................................ 229
19.0 Capture/Compare/PWM (CCP) Modules ................................................................................................................................. 247
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) ............................................................... 326
23.0 12-Bit Analog-to-Digital Converter (A/D) Module ..................................................................................................................... 350
24.0 Comparator Module.................................................................................................................................................................. 365
25.0 Comparator Voltage Reference Module ................................................................................................................................... 373
26.0 High/Low-Voltage Detect (HLVD)............................................................................................................................................. 376
27.0 ECAN Module........................................................................................................................................................................... 382
28.0 Special Features of the CPU .................................................................................................................................................... 447
29.0 Instruction Set Summary .......................................................................................................................................................... 473
30.0 Development Support............................................................................................................................................................... 523
31.0 Electrical Characteristics .......................................................................................................................................................... 527
32.0 Packaging Information.............................................................................................................................................................. 571
Appendix A: Revision History............................................................................................................................................................. 590
Appendix B: Migration to PIC18F66K80 Family................................................................................................................................. 591
The Microchip Web Site ..................................................................................................................................................................... 593
Customer Change Notification Service .............................................................................................................................................. 593
Customer Support .............................................................................................................................................................................. 593
Product Identification System............................................................................................................................................................. 595