PIC16F631/677/685/687/689/690 Table of Contents 1.0 Device Overview . 9 2.0 Memory Organization . 24 3.0 Oscillator Module (With Fail-Safe Clock Monitor). 45 4.0 I/O Ports . 57 5.0 Timer0 Module . 79 6.0 Timer1 Module with Gate Control. 82 7.0 Timer2 Module . 89 8.0 Comparator Module. 91 9.0 Analog-to-Digital Converter (ADC) Module . 105 10.0 Data EEPROM and Flash Program Memory Control . 117 11.0 Enhanced Capture/Compare/PWM Module . 125 12.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) . 148 13.0 SSP Module Overview . 175 14.0 Special Features of the CPU . 193 15.0 Instruction Set Summary . 212 16.0 Development Support. 221 17.0 Electrical Specifications. 225 18.0 DC and AC Characteristics Graphs and Tables . 258 19.0 Packaging Information. 285 The Microchip Web Site . 295 Customer Change Notification Service . 295 Customer Support . 295 Product Identification System. 296 TO OUR VALUED CUSTOMERS It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and enhanced as new volumes and updates are introduced. If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via Email at docerrors@microchip.com. We welcome your feedback. Most Current Data Sheet To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at: http://www.microchip.com You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page. The last character of the literature number is the version number, (e.g., DS30000000A is version A of document DS30000000). Errata An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision of silicon and revision of document to which it applies. To determine if an errata sheet exists for a particular device, please check with one of the following: • Microchip’s Worldwide Web site; http://www.microchip.com • Your local Microchip sales office (see last page) When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are using. Customer Notification System Register on our web site at www.microchip.com to receive the most current information on all of our products. DS40001262F-page 8 2005-2015 Microchip Technology Inc.