2
-- automatically generated by gp2pub
8
pragma processor="p16f685";
9
family : constant processor.family_type = PIC14;
10
name : constant processor.name_type = P16F685;
14
ADCON0 : uint8 at 0x1f;
15
ADCON1 : uint8 at 0x9f;
16
ADRESH : uint8 at 0x1e;
17
ADRESL : uint8 at 0x9e;
18
ANSEL : uint8 at 0x11e;
19
ANSELH : uint8 at 0x11f;
20
CCP1CON : uint8 at 0x17;
21
CCPR1H : uint8 at 0x16;
22
CCPR1L : uint8 at 0x15;
23
CM1CON0 : uint8 at 0x119;
24
CM2CON0 : uint8 at 0x11a;
25
CM2CON1 : uint8 at 0x11b;
26
ECCPAS : uint8 at 0x1d;
27
EEADR : uint8 at 0x10d;
28
EEADRH : uint8 at 0x10f;
29
EECON1 : uint8 at 0x18c;
30
EECON2 : uint8 at 0x18d;
31
EEDATA : uint8 at 0x10c;
32
EEDATH : uint8 at 0x10e;
35
INTCON : uint8 at 0xb;
38
IOCB : uint8 at 0x116;
39
OPTION_REG : uint8 at 0x81;
40
OSCCON : uint8 at 0x8f;
41
OSCTUNE : uint8 at 0x90;
43
PCLATH : uint8 at 0xa;
53
PSTRCON : uint8 at 0x19d;
54
PWM1CON : uint8 at 0x1c;
55
SRCON : uint8 at 0x19e;
56
STATUS : uint8 at 0x3;
57
T1CON : uint8 at 0x10;
58
T2CON : uint8 at 0x12;
63
TRISA : uint8 at 0x85;
64
TRISB : uint8 at 0x86;
65
TRISC : uint8 at 0x87;
66
VRCON : uint8 at 0x118;
67
WDTCON : uint8 at 0x97;
70
WPUB : uint8 at 0x115;
74
ADCS0 : constant uint8 = 0x4;
75
ADCS1 : constant uint8 = 0x5;
76
ADCS2 : constant uint8 = 0x6;
77
ADFM : constant uint8 = 0x7;
78
ADIE : constant uint8 = 0x6;
79
ADIF : constant uint8 = 0x6;
80
ADON : constant uint8 = 0;
81
ANS0 : constant uint8 = 0;
82
ANS1 : constant uint8 = 0x1;
83
ANS2 : constant uint8 = 0x2;
84
ANS3 : constant uint8 = 0x3;
85
ANS4 : constant uint8 = 0x4;
86
ANS5 : constant uint8 = 0x5;
87
ANS6 : constant uint8 = 0x6;
88
ANS7 : constant uint8 = 0x7;
89
C : constant uint8 = 0;
90
C1CH0 : constant uint8 = 0;
91
C1CH1 : constant uint8 = 0x1;
92
C1IE : constant uint8 = 0x5;
93
C1IF : constant uint8 = 0x5;
94
C1OE : constant uint8 = 0x5;
95
C1ON : constant uint8 = 0x7;
96
C1OUT : constant uint8 = 0x6;
97
C1POL : constant uint8 = 0x4;
98
C1R : constant uint8 = 0x2;
99
C1SEN : constant uint8 = 0x5;
100
C1VREN : constant uint8 = 0x7;
101
C2CH0 : constant uint8 = 0;
102
C2CH1 : constant uint8 = 0x1;
103
C2IE : constant uint8 = 0x6;
104
C2IF : constant uint8 = 0x6;
105
C2OE : constant uint8 = 0x5;
106
C2ON : constant uint8 = 0x7;
107
C2OUT : constant uint8 = 0x6;
108
C2POL : constant uint8 = 0x4;
109
C2R : constant uint8 = 0x2;
110
C2REN : constant uint8 = 0x4;
111
C2SYNC : constant uint8 = 0;
112
C2VREN : constant uint8 = 0x6;
113
CCP1IF : constant uint8 = 0x2;
114
CCP1M0 : constant uint8 = 0;
115
CCP1M1 : constant uint8 = 0x1;
116
CCP1M2 : constant uint8 = 0x2;
117
CCP1M3 : constant uint8 = 0x3;
118
CCPIE : constant uint8 = 0x2;
119
CHS0 : constant uint8 = 0x2;
120
CHS1 : constant uint8 = 0x3;
121
CHS2 : constant uint8 = 0x4;
122
CHS3 : constant uint8 = 0x5;
123
DC : constant uint8 = 0x1;
124
DC1B0 : constant uint8 = 0x4;
125
DC1B1 : constant uint8 = 0x5;
126
ECCPAS0 : constant uint8 = 0x4;
127
ECCPAS1 : constant uint8 = 0x5;
128
ECCPAS2 : constant uint8 = 0x6;
129
ECCPASE : constant uint8 = 0x7;
130
EEIE : constant uint8 = 0x4;
131
EEIF : constant uint8 = 0x4;
132
EEPGD : constant uint8 = 0x7;
133
F : constant uint8 = 0x1;
134
GIE : constant uint8 = 0x7;
135
GO : constant uint8 = 0x1;
136
GO_DONE : constant uint8 = 0x1;
137
HTS : constant uint8 = 0x2;
138
INTE : constant uint8 = 0x4;
139
INTEDG : constant uint8 = 0x6;
140
INTF : constant uint8 = 0x1;
141
IOC0 : constant uint8 = 0;
142
IOC1 : constant uint8 = 0x1;
143
IOC2 : constant uint8 = 0x2;
144
IOC3 : constant uint8 = 0x3;
145
IOC4 : constant uint8 = 0x4;
146
IOC5 : constant uint8 = 0x5;
147
IOCA0 : constant uint8 = 0;
148
IOCA1 : constant uint8 = 0x1;
149
IOCA2 : constant uint8 = 0x2;
150
IOCA3 : constant uint8 = 0x3;
151
IOCA4 : constant uint8 = 0x4;
152
IOCA5 : constant uint8 = 0x5;
153
IOCB4 : constant uint8 = 0x4;
154
IOCB5 : constant uint8 = 0x5;
155
IOCB6 : constant uint8 = 0x6;
156
IOCB7 : constant uint8 = 0x7;
157
IRCF0 : constant uint8 = 0x4;
158
IRCF1 : constant uint8 = 0x5;
159
IRCF2 : constant uint8 = 0x6;
160
IRP : constant uint8 = 0x7;
161
LTS : constant uint8 = 0x1;
162
MC1OUT : constant uint8 = 0x7;
163
MC2OUT : constant uint8 = 0x6;
164
NOT_BOD : constant uint8 = 0;
165
NOT_DONE : constant uint8 = 0x1;
166
NOT_PD : constant uint8 = 0x3;
167
NOT_POR : constant uint8 = 0x1;
168
NOT_RABPU : constant uint8 = 0x7;
169
NOT_T1SYNC : constant uint8 = 0x2;
170
NOT_TO : constant uint8 = 0x4;
171
OSFIE : constant uint8 = 0x7;
172
OSFIF : constant uint8 = 0x7;
173
OSTS : constant uint8 = 0x3;
174
P1M0 : constant uint8 = 0x6;
175
P1M1 : constant uint8 = 0x7;
176
PDC0 : constant uint8 = 0;
177
PDC1 : constant uint8 = 0x1;
178
PDC2 : constant uint8 = 0x2;
179
PDC3 : constant uint8 = 0x3;
180
PDC4 : constant uint8 = 0x4;
181
PDC5 : constant uint8 = 0x5;
182
PDC6 : constant uint8 = 0x6;
183
PEIE : constant uint8 = 0x6;
184
PRSEN : constant uint8 = 0x7;
185
PS0 : constant uint8 = 0;
186
PS1 : constant uint8 = 0x1;
187
PS2 : constant uint8 = 0x2;
188
PSA : constant uint8 = 0x3;
189
PSSAC0 : constant uint8 = 0x2;
190
PSSAC1 : constant uint8 = 0x3;
191
PSSBD0 : constant uint8 = 0;
192
PSSBD1 : constant uint8 = 0x1;
193
PULSR : constant uint8 = 0x2;
194
PULSS : constant uint8 = 0x3;
195
RABIE : constant uint8 = 0x3;
196
RABIF : constant uint8 = 0;
197
RD : constant uint8 = 0;
198
RP0 : constant uint8 = 0x5;
199
RP1 : constant uint8 = 0x6;
200
SBODEN : constant uint8 = 0x4;
201
SCS : constant uint8 = 0;
202
SR0 : constant uint8 = 0x6;
203
SR1 : constant uint8 = 0x7;
204
STRA : constant uint8 = 0;
205
STRB : constant uint8 = 0x1;
206
STRC : constant uint8 = 0x2;
207
STRD : constant uint8 = 0x3;
208
STRSYNC : constant uint8 = 0x4;
209
SWDTEN : constant uint8 = 0;
210
T0CS : constant uint8 = 0x5;
211
T0IE : constant uint8 = 0x5;
212
T0IF : constant uint8 = 0x2;
213
T0SE : constant uint8 = 0x4;
214
T1CKPS0 : constant uint8 = 0x4;
215
T1CKPS1 : constant uint8 = 0x5;
216
T1GINV : constant uint8 = 0x7;
217
T1GSS : constant uint8 = 0x1;
218
T1IE : constant uint8 = 0;
219
T1IF : constant uint8 = 0;
220
T1OSCEN : constant uint8 = 0x3;
221
T2CKPS0 : constant uint8 = 0;
222
T2CKPS1 : constant uint8 = 0x1;
223
T2IE : constant uint8 = 0x1;
224
T2IF : constant uint8 = 0x1;
225
TMR1CS : constant uint8 = 0x1;
226
TMR1GE : constant uint8 = 0x6;
227
TMR1IE : constant uint8 = 0;
228
TMR1IF : constant uint8 = 0;
229
TMR1ON : constant uint8 = 0;
230
TMR2IE : constant uint8 = 0x1;
231
TMR2IF : constant uint8 = 0x1;
232
TMR2ON : constant uint8 = 0x2;
233
TOUTPS0 : constant uint8 = 0x3;
234
TOUTPS1 : constant uint8 = 0x4;
235
TOUTPS2 : constant uint8 = 0x5;
236
TOUTPS3 : constant uint8 = 0x6;
237
TRISA0 : constant uint8 = 0;
238
TRISA1 : constant uint8 = 0x1;
239
TRISA2 : constant uint8 = 0x2;
240
TRISA3 : constant uint8 = 0x3;
241
TRISA4 : constant uint8 = 0x4;
242
TRISA5 : constant uint8 = 0x5;
243
TRISB4 : constant uint8 = 0x4;
244
TRISB5 : constant uint8 = 0x5;
245
TRISB6 : constant uint8 = 0x6;
246
TRISB7 : constant uint8 = 0x7;
247
TRISC0 : constant uint8 = 0;
248
TRISC1 : constant uint8 = 0x1;
249
TRISC2 : constant uint8 = 0x2;
250
TRISC3 : constant uint8 = 0x3;
251
TRISC4 : constant uint8 = 0x4;
252
TRISC5 : constant uint8 = 0x5;
253
TRISC6 : constant uint8 = 0x6;
254
TRISC7 : constant uint8 = 0x7;
255
TUN0 : constant uint8 = 0;
256
TUN1 : constant uint8 = 0x1;
257
TUN2 : constant uint8 = 0x2;
258
TUN3 : constant uint8 = 0x3;
259
TUN4 : constant uint8 = 0x4;
260
ULPWUE : constant uint8 = 0x5;
261
VCFG : constant uint8 = 0x6;
262
VP6EN : constant uint8 = 0x4;
263
VR0 : constant uint8 = 0;
264
VR1 : constant uint8 = 0x1;
265
VR2 : constant uint8 = 0x2;
266
VR3 : constant uint8 = 0x3;
267
VRR : constant uint8 = 0x5;
268
W : constant uint8 = 0;
269
WDTPS0 : constant uint8 = 0x1;
270
WDTPS1 : constant uint8 = 0x2;
271
WDTPS2 : constant uint8 = 0x3;
272
WDTPS3 : constant uint8 = 0x4;
273
WPUA0 : constant uint8 = 0;
274
WPUA1 : constant uint8 = 0x1;
275
WPUA2 : constant uint8 = 0x2;
276
WPUA4 : constant uint8 = 0x4;
277
WPUA5 : constant uint8 = 0x5;
278
WPUB4 : constant uint8 = 0x4;
279
WPUB5 : constant uint8 = 0x5;
280
WPUB6 : constant uint8 = 0x6;
281
WPUB7 : constant uint8 = 0x7;
282
WR : constant uint8 = 0x1;
283
WREN : constant uint8 = 0x2;
284
WRERR : constant uint8 = 0x3;
285
Z : constant uint8 = 0x2;
286
_BOD_NSLEEP : constant uint16 = 0x3eff;
287
_BOD_OFF : constant uint16 = 0x3cff;
288
_BOD_ON : constant uint16 = 0x3fff;
289
_BOD_SBODEN : constant uint16 = 0x3dff;
290
_CPD_OFF : constant uint16 = 0x3fff;
291
_CPD_ON : constant uint16 = 0x3f7f;
292
_CP_OFF : constant uint16 = 0x3fff;
293
_CP_ON : constant uint16 = 0x3fbf;
294
_EC_OSC : constant uint16 = 0x3ffb;
295
_EXTRC : constant uint16 = 0x3fff;
296
_EXTRCIO : constant uint16 = 0x3ffe;
297
_EXTRC_OSC_CLKOUT : constant uint16 = 0x3fff;
298
_EXTRC_OSC_NOCLKOUT : constant uint16 = 0x3ffe;
299
_FCMEN_OFF : constant uint16 = 0x37ff;
300
_FCMEN_ON : constant uint16 = 0x3fff;
301
_HS_OSC : constant uint16 = 0x3ffa;
302
_IESO_OFF : constant uint16 = 0x3bff;
303
_IESO_ON : constant uint16 = 0x3fff;
304
_INTOSC : constant uint16 = 0x3ffd;
305
_INTOSCIO : constant uint16 = 0x3ffc;
306
_INTRC_OSC_CLKOUT : constant uint16 = 0x3ffd;
307
_INTRC_OSC_NOCLKOUT : constant uint16 = 0x3ffc;
308
_LP_OSC : constant uint16 = 0x3ff8;
309
_MCLRE_OFF : constant uint16 = 0x3fdf;
310
_MCLRE_ON : constant uint16 = 0x3fff;
311
_PWRTE_OFF : constant uint16 = 0x3fff;
312
_PWRTE_ON : constant uint16 = 0x3fef;
313
_WDT_OFF : constant uint16 = 0x3ff7;
314
_WDT_ON : constant uint16 = 0x3fff;
315
_XT_OSC : constant uint16 = 0x3ff9;
316
__16F685 : constant uint8 = 0x1;