PIC16F631/677/685/687/689/690
INDEX
PIC16F685 ................................................................. 11
PIC16F687/689 .......................................................... 12
PIC16F690 ................................................................. 13
A
A/D
Specifications............................................ 252, 253, 254
PWM (Enhanced) ..................................................... 133
RA0 Pins..................................................................... 64
RA1 Pins..................................................................... 65
RA2 Pin ...................................................................... 65
RA3 Pin ...................................................................... 66
RA4 Pin ...................................................................... 66
RA5 Pin ...................................................................... 67
RB4 Pin ...................................................................... 71
RB5 Pin ...................................................................... 72
RB6 Pin ...................................................................... 73
RB7 Pin ...................................................................... 74
RC0 and RC1 Pins ..................................................... 77
RC2 and RC3 Pins ..................................................... 77
RC4 Pin ...................................................................... 78
RC5 Pin ...................................................................... 78
RC6 Pin ...................................................................... 79
RC7 Pin ...................................................................... 79
Resonator Operation .................................................. 50
Absolute Maximum Ratings .............................................. 227
AC Characteristics
Industrial and Extended ............................................ 238
Load Conditions........................................................ 237
ACK pulse......................................................................... 184
ADC .................................................................................. 107
Acquisition Requirements ......................................... 116
Associated registers.................................................. 118
Block Diagram........................................................... 107
Calculating Acquisition Time..................................... 116
Channel Selection..................................................... 108
Configuration............................................................. 108
Configuring Interrupt ................................................. 111
Conversion Clock...................................................... 108
Conversion Procedure .............................................. 111
Internal Sampling Switch (RSS) Impedance.............. 116
Interrupts................................................................... 109
Operation .................................................................. 111
Operation During Sleep ............................................ 111
Port Configuration..................................................... 108
Reference Voltage (VREF)......................................... 108
Result Formatting...................................................... 110
Source Impedance.................................................... 116
Special Event Trigger................................................ 111
Starting an A/D Conversion ...................................... 110
ADCON0 Register............................................................. 113
ADCON1 Register............................................................. 114
ADRESH Register (ADFM = 0)......................................... 115
ADRESH Register (ADFM = 1)......................................... 115
ADRESL Register (ADFM = 0).......................................... 115
ADRESL Register (ADFM = 1).......................................... 115
Analog Input Connection Considerations.......................... 100
Analog-to-Digital Converter. See ADC
2
SSP (I C Mode)........................................................ 184
SSP (SPI Mode) ....................................................... 175
Timer1 ........................................................................ 84
Timer2 ........................................................................ 91
TMR0/WDT Prescaler ................................................ 81
Watchdog Timer (WDT)............................................ 208
Break Character (12-bit) Transmit and Receive ............... 167
Brown-out Reset (BOR).................................................... 198
Associated................................................................ 199
Specifications ........................................................... 242
Timing and Characteristics....................................... 241
C
C Compilers
MPLAB C18.............................................................. 224
MPLAB C30.............................................................. 224
Capture Module. See Enhanced Capture/Compare/
PWM(ECCP)
ANSEL Register.................................................................. 61
ANSELH Register ............................................................... 61
Assembler
Capture/Compare/PWM (CCP)
MPASM Assembler................................................... 224
Associated registers w/ Capture/Compare/PWM ..... 148
Capture Mode........................................................... 128
CCPx Pin Configuration............................................ 128
Compare Mode......................................................... 129
CCPx Pin Configuration.................................... 129
Software Interrupt Mode........................... 128, 129
Special Event Trigger....................................... 129
Timer1 Mode Selection............................. 128, 129
Prescaler .................................................................. 128
PWM Mode............................................................... 130
Duty Cycle ........................................................ 131
Effects of Reset................................................ 132
Example PWM Frequencies and
B
BAUDCTL Register........................................................... 160
BF bit................................................................................. 176
Block Diagrams
(CCP) Capture Mode Operation ............................... 128
ADC .......................................................................... 107
ADC Transfer Function ............................................. 117
Analog Input Model........................................... 100, 117
CCP PWM................................................................. 130
Clock Source............................................................... 47
Comparator C1 ........................................................... 94
Comparator C2 ........................................................... 94
Compare ................................................................... 129
Crystal Operation........................................................ 50
EUSART Receive ..................................................... 150
EUSART Transmit .................................................... 149
External RC Mode....................................................... 51
Fail-Safe Clock Monitor (FSCM)................................. 57
In-Circuit Serial Programming Connections.............. 212
Interrupt Logic........................................................... 205
On-Chip Reset Circuit............................................... 196
PIC16F631.................................................................... 9
PIC16F677.................................................................. 10
Resolutions, 20 MHZ................................ 131
Example PWM Frequencies and
Resolutions, 8 MHz .................................. 131
Operation in Sleep Mode.................................. 132
Setup for Operation .......................................... 132
System Clock Frequency Changes .................. 132
PWM Period ............................................................. 131
Setup for PWM Operation ........................................ 132
CCPxCON (Enhanced) Register ...................................... 127
CKE bit ............................................................................. 176
CKP bit ............................................................................. 177
© 2007 Microchip Technology Inc.
DS41262D-page 283