PIC16F688

Manufacturer Part NumberPIC16F688
ManufacturerMicrochip Technology Inc.
PIC16F688 datasheet
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
Page 191
192
Page 192
193
Page 193
194
Page 194
195
Page 195
196
Page 196
197
Page 197
198
Page 198
199
Page 199
200
Page 200
201
202
Page 197/202

Download datasheet (4Mb)Embed
PrevNext
ADC ............................................................................ 69
Associated Registers ................................................ 121
Comparator ................................................................. 59
Context Saving.......................................................... 122
Interrupt-on-Change.................................................... 34
PORTA Interrupt-on-Change .................................... 120
RA2/INT .................................................................... 120
Timer0....................................................................... 120
TMR1 .......................................................................... 50
INTOSC Specifications ............................................. 154, 155
IOCA Register ..................................................................... 35
L
Load Conditions ................................................................ 152
M
MCLR ................................................................................ 113
Internal ...................................................................... 113
Memory Organization............................................................ 7
Data .............................................................................. 7
Program ........................................................................ 7
Microchip Internet Web Site .............................................. 197
Migrating from other PIC Devices ..................................... 191
MPLAB ASM30 Assembler, Linker, Librarian ................... 140
MPLAB ICD 2 In-Circuit Debugger ................................... 141
MPLAB ICE 2000 High-Performance Universal
In-Circuit Emulator .................................................... 141
MPLAB ICE 4000 High-Performance Universal
In-Circuit Emulator .................................................... 141
MPLAB Integrated Development Environment Software .. 139
MPLAB PM3 Device Programmer .................................... 141
MPLINK Object Linker/MPLIB Object Librarian ................ 140
O
OPCODE Field Descriptions ............................................. 129
OPTION Register ................................................................ 14
OPTION_REG Register ...................................................... 47
OSCCON Register ........................................................ 10, 22
Oscillator
Associated registers.............................................. 32, 52
Oscillator Module ................................................................ 21
EC ............................................................................... 21
HFINTOSC.................................................................. 21
HS ............................................................................... 21
INTOSC ...................................................................... 21
INTOSCIO................................................................... 21
LFINTOSC .................................................................. 21
LP................................................................................ 21
RC............................................................................... 21
RCIO ........................................................................... 21
XT ............................................................................... 21
Oscillator Parameters ....................................................... 154
Oscillator Specifications .................................................... 153
Oscillator Start-up Timer (OST)
Specifications............................................................ 157
Oscillator Switching
Fail-Safe Clock Monitor............................................... 31
Two-Speed Clock Start-up.......................................... 29
OSCTUNE Register ............................................................ 26
P
Packaging ......................................................................... 185
Marking ..................................................................... 185
PDIP Details.............................................................. 186
PCL and PCLATH ............................................................... 19
Computed GOTO........................................................ 19
© 2007 Microchip Technology Inc.
PIC16F688
Stack........................................................................... 19
PCON Register ........................................................... 18, 115
PICSTART Plus Development Programmer..................... 142
PIE1 Register ..................................................................... 16
Pin Diagram ...................................................................... 2, 3
Pinout Description
PIC16F688 ................................................................... 6
PIR1 Register ..................................................................... 17
PORTA ............................................................................... 33
Additional Pin Functions ............................................. 34
ANSEL Register ................................................. 34
Interrupt-on-Change ........................................... 34
Ultra Low-Power Wake-up............................ 34, 36
Weak Pull-up ...................................................... 34
Associated registers ................................................... 41
Pin Descriptions and Diagrams .................................. 37
RA0............................................................................. 37
RA1............................................................................. 38
RA2............................................................................. 38
RA4............................................................................. 39
RA5............................................................................. 40
Specifications ........................................................... 155
PORTA Register ................................................................. 33
PORTC ............................................................................... 42
Associated registers ................................................... 44
PA/PB/PC/PD.See Enhanced Universal
Asynchronous Receiver Transmitter (EUSART) 42
Specifications ........................................................... 155
PORTC Register................................................................. 42
Power-Down Mode (Sleep)............................................... 125
Power-up Timer (PWRT) .................................................. 113
Specifications ........................................................... 157
Precision Internal Oscillator Parameters .......................... 155
Prescaler
Shared WDT/Timer0................................................... 46
Switching Prescaler Assignment ................................ 46
Product Identification System ........................................... 199
Program Memory .................................................................. 7
Map and Stack.............................................................. 7
Programming, Device Instructions.................................... 129
R
RA3/MCLR/V
.................................................................. 39
PP
RCREG............................................................................... 90
RCSTA Register ................................................................. 93
Reader Response............................................................. 198
Read-Modify-Write Operations ......................................... 129
Register
RCREG Register ........................................................ 99
Registers
ADCON0 (ADC Control 0) .......................................... 71
ADCON1 (ADC Control 1) .......................................... 71
ADRESH (ADC Result High) with ADFM = 0) ............ 72
ADRESH (ADC Result High) with ADFM = 1) ............ 72
ADRESL (ADC Result Low) with ADFM = 0).............. 72
ADRESL (ADC Result Low) with ADFM = 1).............. 72
ANSEL (Analog Select) .............................................. 34
BAUDCTL (Baud Rate Control).................................. 94
CMCON0 (Comparator Control 0) .............................. 61
CMCON1 (Comparator Control 1) .............................. 62
CONFIG (Configuration Word) ................................. 111
EEADR (EEPROM Address) ...................................... 78
EECON1 (EEPROM Control 1) .................................. 79
EEDAT (EEPROM Data) ............................................ 78
EEDATH (EEPROM Data High Byte) ......................... 78
INTCON (Interrupt Control) ........................................ 15
DS41203D-page 195