![](http://datasheet.mmic.net.cn/260000/PIC16F687_datasheet_15942840/PIC16F687_286.png)
PIC16F631/677/685/687/689/690
DS41262D-page 284
2007 Microchip Technology Inc.
Clock Accuracy with Asynchronous Operation .................158
Clock Sources
External Modes...........................................................49
EC.......................................................................49
HS.......................................................................50
LP........................................................................50
OST.....................................................................49
RC.......................................................................51
XT .......................................................................50
Internal Modes ............................................................51
Frequency Selection ...........................................53
HFINTOSC..........................................................51
HFINTOSC/LFINTOSC Switch Timing ...............53
INTOSC ..............................................................51
INTOSCIO...........................................................51
LFINTOSC ..........................................................53
Clock Switching...................................................................55
CM1CON0 Register............................................................98
CM2CON0 Register............................................................99
CM2CON1 Register..........................................................101
Code Examples
A/D Conversion.........................................................112
Assigning Prescaler to Timer0....................................82
Assigning Prescaler to WDT.......................................82
Changing Between Capture Prescalers....................128
Indirect Addressing .....................................................44
Initializing PORTA.......................................................59
Initializing PORTB.......................................................69
Initializing PORTC.......................................................76
Loading the SSPBUF (SSPSR) Register..................178
Saving STATUS and W Registers in RAM ...............207
Ultra Low-Power Wake-up Initialization ......................63
Write Verify ...............................................................125
Code Protection ................................................................211
Comparator
C2OUT as T1 Gate...................................................101
Operation ....................................................................93
Operation During Sleep ..............................................97
Response Time...........................................................95
Synchronizing COUT w/Timer1 ................................101
Comparator Module ............................................................93
Associated registers..................................................106
C1 Output State Versus Input Conditions...................95
Comparator Voltage Reference (CV
REF
)
Response Time...........................................................95
Comparator Voltage Reference (CV
REF
) ..........................104
Effects of a Reset........................................................97
Specifications............................................................245
Comparators
C2OUT as T1 Gate.....................................................85
Effects of a Reset........................................................97
Specifications............................................................245
Compare Module.
See
Enhanced Capture/
Compare/PWM (ECCP)
CONFIG Register..............................................................195
Configuration Bits..............................................................194
CPU Features ...................................................................193
Customer Change Notification Service .............................289
Customer Notification Service...........................................289
Customer Support.............................................................289
D
D/A bit ...............................................................................176
Data EEPROM Memory....................................................119
Associated Registers ................................................126
Code Protection ........................................................125
Reading .................................................................... 122
Writing ...................................................................... 122
Data Memory ...................................................................... 26
Data/Address bit (D/A)...................................................... 176
DC Characteristics
Extended .................................................................. 232
Extended and Industrial............................................ 234
Industrial................................................................... 230
Industrial and Extended............................................ 229
Development Support....................................................... 223
Device Overview................................................................... 9
E
ECCP.
See
Enhanced Capture/Compare/PWM
ECCPAS Register............................................................. 141
EEADR Register............................................................... 120
EEADR Registers............................................................. 119
EEADRH Registers........................................................... 119
EECON1 Register..................................................... 119, 121
EECON2 Register............................................................. 119
EEDAT Register ............................................................... 120
EEDATH Register............................................................. 120
EEPROM Data Memory
Avoiding Spurious Write ........................................... 125
Write Verify............................................................... 125
Effects of Reset
PWM mode............................................................... 132
Electrical Specifications.................................................... 227
Enhanced Capture/Compare/PWM .................................. 127
Enhanced Capture/Compare/PWM (ECCP)
Enhanced PWM Mode.............................................. 133
Auto-Restart ..................................................... 142
Auto-shutdown.................................................. 141
Direction Change in Full-Bridge Output Mode.. 139
Full-Bridge Application...................................... 137
Full-Bridge Mode .............................................. 137
Half-Bridge Application..................................... 136
Half-Bridge Application Examples .................... 143
Half-Bridge Mode.............................................. 136
Output Relationships (Active-High and
Active-Low)............................................... 134
Output Relationships Diagram.......................... 135
Programmable Dead Band Delay..................... 143
Shoot-through Current...................................... 143
Start-up Considerations.................................... 140
Specifications ........................................................... 244
Timer Resources ...................................................... 127
Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART) .............................. 149
Errata.................................................................................... 8
EUSART ........................................................................... 149
Associated Registers
Baud Rate Generator ....................................... 161
Asynchronous Mode................................................. 151
12-bit Break Transmit and Receive .................. 167
Associated Registers
Receive .................................................... 157
Transmit.................................................... 153
Auto-Wake-up on Break................................... 166
Baud Rate Generator (BRG) ............................ 161
Clock Accuracy................................................. 158
Receiver ........................................................... 154
Setting up 9-bit Mode with Address Detect ...... 156
Transmitter ....................................................... 151
Baud Rate Generator (BRG)
Auto Baud Rate Detect..................................... 165