Datasheet
© 2009 Microchip Technology Inc. DS41203E-page 195
PIC16F688
INDEX
A
A/D
Specifications.................................................... 160, 161
Absolute Maximum Ratings ..............................................143
AC Characteristics
Industrial and Extended ............................................ 153
Load Conditions........................................................ 152
ADC .................................................................................... 65
Acquisition Requirements ........................................... 73
Associated registers.................................................... 75
Block Diagram............................................................. 65
Calculating Acquisition Time....................................... 73
Channel Selection....................................................... 66
Configuration............................................................... 66
Configuring Interrupt ................................................... 69
Conversion Clock........................................................ 66
Conversion Procedure ................................................ 69
Internal Sampling Switch (R
SS) Impedance................ 73
Interrupts.....................................................................68
Operation .................................................................... 69
Operation During Sleep .............................................. 69
Port Configuration....................................................... 66
Reference Voltage (V
REF)........................................... 66
Result Formatting........................................................ 68
Source Impedance...................................................... 73
Starting an A/D Conversion ........................................ 68
ADCON0 Register............................................................... 71
ADCON1 Register............................................................... 71
ADRESH Register (ADFM = 0)........................................... 72
ADRESH Register (ADFM = 1)........................................... 72
ADRESL Register (ADFM = 0)............................................ 72
ADRESL Register (ADFM = 1)............................................ 72
Analog Front-end (AFE)
Power-On Reset .......................................................113
Analog Input Connection Considerations............................ 55
Analog-to-Digital Converter. See ADC
ANSEL Register..................................................................34
Assembler
MPASM Assembler...................................................140
B
BAUDCTL Register.............................................................94
Block Diagrams
ADC ............................................................................65
ADC Transfer Function ............................................... 74
Analog Input Model............................................... 55, 74
Clock Source............................................................... 21
Comparator 1..............................................................54
Comparator 2..............................................................54
Comparator Modes ..................................................... 57
Crystal Operation........................................................24
EUSART Receive ....................................................... 84
EUSART Transmit ...................................................... 83
External RC Mode....................................................... 25
Fail-Safe Clock Monitor (FSCM)................................. 31
In-Circuit Serial Programming Connections.............. 127
Interrupt Logic...........................................................120
MCLR
Circuit............................................................. 113
On-Chip Reset Circuit............................................... 112
PIC16F688.................................................................... 5
RA1 Pins.....................................................................38
RA2 Pin....................................................................... 38
RA3 Pin....................................................................... 39
RA4 Pin....................................................................... 39
RA5 Pin ...................................................................... 40
RC0 and RC1 Pins ..................................................... 43
RC2 and RC3 Pins ..................................................... 43
RC4 Pin ...................................................................... 44
RC5 Pin ...................................................................... 44
Resonator Operation .................................................. 24
Timer1 ........................................................................ 48
TMR0/WDT Prescaler ................................................ 45
Watchdog Timer (WDT)............................................ 123
Break Character (12-bit) Transmit and Receive ............... 101
Brown-out Reset (BOR).................................................... 114
Associated................................................................ 115
Specifications ........................................................... 157
Timing and Characteristics....................................... 156
C
C Compilers
MPLAB C18.............................................................. 140
MPLAB C30.............................................................. 140
Clock Accuracy with Asynchronous Operation................... 92
Clock Sources
External Modes........................................................... 23
EC ...................................................................... 23
HS ...................................................................... 24
LP....................................................................... 24
OST .................................................................... 23
RC ...................................................................... 25
XT....................................................................... 24
Internal Modes............................................................ 25
Frequency Selection........................................... 27
HFINTOSC ......................................................... 25
INTOSC.............................................................. 25
INTOSCIO .......................................................... 25
LFINTOSC.......................................................... 27
Clock Switching .................................................................. 29
CMCON0 Register.............................................................. 61
CMCON1 Register.............................................................. 62
Code Examples
A/D Conversion .......................................................... 70
Assigning Prescaler to Timer0.................................... 46
Assigning Prescaler to WDT....................................... 46
Indirect Addressing..................................................... 20
Initializing PORTA ...................................................... 33
Initializing PORTC ...................................................... 42
Saving Status and W Registers in RAM ................... 122
Ultra Low-Power Wake-up Initialization...................... 36
Code Protection................................................................ 126
Comparator......................................................................... 53
C2OUT as T1 Gate..................................................... 62
Configurations ............................................................ 56
Interrupts .................................................................... 59
Operation.............................................................. 53, 58
Operation During Sleep .............................................. 60
Response Time .......................................................... 59
Synchronizing COUT w/Timer1.................................. 62
Comparator Module
Associated registers ................................................... 64
Comparator Voltage Reference (CV
REF)............................ 63
Effects of a Reset ....................................................... 60
Response Time .......................................................... 59
Specifications ........................................................... 159
Comparators
C2OUT as T1 Gate..................................................... 49
Effects of a Reset ....................................................... 60