2
-- automatically generated by gp2pub
8
pragma processor="p18c601";
9
family : constant processor.family_type = PIC16E;
10
name : constant processor.name_type = P18C601;
14
ADCON0 : uint8 at 0xfc2;
15
ADCON1 : uint8 at 0xfc1;
16
ADCON2 : uint8 at 0xfc0;
17
ADRESH : uint8 at 0xfc4;
18
ADRESL : uint8 at 0xfc3;
20
CCP1CON : uint8 at 0xfbd;
21
CCP2CON : uint8 at 0xfba;
22
CCPR1H : uint8 at 0xfbf;
23
CCPR1L : uint8 at 0xfbe;
24
CCPR2H : uint8 at 0xfbc;
25
CCPR2L : uint8 at 0xfbb;
26
CSEL2 : uint8 at 0xfa7;
27
CSELIO : uint8 at 0xfa6;
28
DDRF : uint8 at 0xf97;
29
DDRG : uint8 at 0xf98;
30
FSR0H : uint8 at 0xfea;
31
FSR0L : uint8 at 0xfe9;
32
FSR1H : uint8 at 0xfe2;
33
FSR1L : uint8 at 0xfe1;
34
FSR2H : uint8 at 0xfda;
35
FSR2L : uint8 at 0xfd9;
36
INDF0 : uint8 at 0xfef;
37
INDF1 : uint8 at 0xfe7;
38
INDF2 : uint8 at 0xfdf;
39
INTCON : uint8 at 0xff2;
40
INTCON1 : uint8 at 0xff2;
41
INTCON2 : uint8 at 0xff1;
42
INTCON3 : uint8 at 0xff0;
43
IPR1 : uint8 at 0xf9f;
44
IPR2 : uint8 at 0xfa2;
45
LATA : uint8 at 0xf89;
46
LATB : uint8 at 0xf8a;
47
LATC : uint8 at 0xf8b;
48
LATD : uint8 at 0xf8c;
49
LATE : uint8 at 0xf8d;
50
LATF : uint8 at 0xf8e;
51
LATG : uint8 at 0xf8f;
52
LVDCON : uint8 at 0xfd2;
53
MEMCON : uint8 at 0xf9c;
54
OSCCON : uint8 at 0xfd3;
56
PCLATH : uint8 at 0xffa;
57
PCLATU : uint8 at 0xffb;
58
PIE1 : uint8 at 0xf9d;
59
PIE2 : uint8 at 0xfa0;
60
PIR1 : uint8 at 0xf9e;
61
PIR2 : uint8 at 0xfa1;
62
PLUSW0 : uint8 at 0xfeb;
63
PLUSW1 : uint8 at 0xfe3;
64
PLUSW2 : uint8 at 0xfdb;
65
PORTA : uint8 at 0xf80;
66
PORTB : uint8 at 0xf81;
67
PORTC : uint8 at 0xf82;
68
PORTD : uint8 at 0xf83;
69
PORTE : uint8 at 0xf84;
70
PORTF : uint8 at 0xf85;
71
PORTG : uint8 at 0xf86;
72
POSTDEC0 : uint8 at 0xfed;
73
POSTDEC1 : uint8 at 0xfe5;
74
POSTDEC2 : uint8 at 0xfdd;
75
POSTINC0 : uint8 at 0xfee;
76
POSTINC1 : uint8 at 0xfe6;
77
POSTINC2 : uint8 at 0xfde;
79
PREINC0 : uint8 at 0xfec;
80
PREINC1 : uint8 at 0xfe4;
81
PREINC2 : uint8 at 0xfdc;
82
PRODH : uint8 at 0xff4;
83
PRODL : uint8 at 0xff3;
84
PSPCON : uint8 at 0xfb0;
85
RCON : uint8 at 0xfd0;
86
RCREG : uint8 at 0xfae;
87
RCSTA : uint8 at 0xfab;
88
SPBRG : uint8 at 0xfaf;
89
SSPADD : uint8 at 0xfc8;
90
SSPBUF : uint8 at 0xfc9;
91
SSPCON1 : uint8 at 0xfc6;
92
SSPCON2 : uint8 at 0xfc5;
93
SSPSTAT : uint8 at 0xfc7;
94
STATUS : uint8 at 0xfd8;
95
STKPTR : uint8 at 0xffc;
96
T0CON : uint8 at 0xfd5;
97
T1CON : uint8 at 0xfcd;
98
T2CON : uint8 at 0xfca;
99
T3CON : uint8 at 0xfb1;
100
TABLAT : uint8 at 0xff5;
101
TBLPTRH : uint8 at 0xff7;
102
TBLPTRL : uint8 at 0xff6;
103
TBLPTRU : uint8 at 0xff8;
104
TMR0H : uint8 at 0xfd7;
105
TMR0L : uint8 at 0xfd6;
106
TMR1H : uint8 at 0xfcf;
107
TMR1L : uint8 at 0xfce;
108
TMR2 : uint8 at 0xfcc;
109
TMR3H : uint8 at 0xfb3;
110
TMR3L : uint8 at 0xfb2;
111
TOSH : uint8 at 0xffe;
112
TOSL : uint8 at 0xffd;
113
TOSU : uint8 at 0xfff;
114
TRISA : uint8 at 0xf92;
115
TRISB : uint8 at 0xf93;
116
TRISC : uint8 at 0xf94;
117
TRISD : uint8 at 0xf95;
118
TRISE : uint8 at 0xf96;
119
TRISF : uint8 at 0xf97;
120
TRISG : uint8 at 0xf98;
121
TXREG : uint8 at 0xfad;
122
TXSTA : uint8 at 0xfac;
123
WDTCON : uint8 at 0xfd1;
124
WREG : uint8 at 0xfe8;
128
A : constant uint8 = 0;
129
_ACCESS : constant uint8 = 0; -- gpal reserved word
130
ACKDT : constant uint8 = 0x5;
131
ACKEN : constant uint8 = 0x4;
132
ACKSTAT : constant uint8 = 0x6;
133
AD0 : constant uint8 = 0;
134
AD1 : constant uint8 = 0x1;
135
AD10 : constant uint8 = 0x2;
136
AD11 : constant uint8 = 0x3;
137
AD12 : constant uint8 = 0x4;
138
AD13 : constant uint8 = 0x5;
139
AD14 : constant uint8 = 0x6;
140
AD15 : constant uint8 = 0x7;
141
AD16 : constant uint8 = 0x4;
142
AD2 : constant uint8 = 0x2;
143
AD3 : constant uint8 = 0x3;
144
AD4 : constant uint8 = 0x4;
145
AD5 : constant uint8 = 0x5;
146
AD6 : constant uint8 = 0x6;
147
AD7 : constant uint8 = 0x7;
148
AD8 : constant uint8 = 0;
149
AD9 : constant uint8 = 0x1;
150
ADCS0 : constant uint8 = 0;
151
ADCS1 : constant uint8 = 0x1;
152
ADCS2 : constant uint8 = 0x2;
153
ADEN : constant uint8 = 0x3;
154
ADFM : constant uint8 = 0x7;
155
ADIE : constant uint8 = 0x6;
156
ADIF : constant uint8 = 0x6;
157
ADIP : constant uint8 = 0x6;
158
ADON : constant uint8 = 0;
159
ALE : constant uint8 = 0;
160
AN0 : constant uint8 = 0;
161
AN1 : constant uint8 = 0x1;
162
AN2 : constant uint8 = 0x2;
163
AN3 : constant uint8 = 0x3;
164
AN4 : constant uint8 = 0x5;
165
AN5 : constant uint8 = 0;
166
AN6 : constant uint8 = 0x1;
167
AN7 : constant uint8 = 0x2;
168
BA0 : constant uint8 = 0x4;
169
BANKED : constant uint8 = 0x1;
170
BCLIE : constant uint8 = 0x3;
171
BCLIF : constant uint8 = 0x3;
172
BCLIP : constant uint8 = 0x3;
173
BF : constant uint8 = 0;
174
BRGH : constant uint8 = 0x2;
175
C : constant uint8 = 0;
176
CCP1 : constant uint8 = 0x2;
177
CCP1IE : constant uint8 = 0x2;
178
CCP1IF : constant uint8 = 0x2;
179
CCP1IP : constant uint8 = 0x2;
180
CCP1M0 : constant uint8 = 0;
181
CCP1M1 : constant uint8 = 0x1;
182
CCP1M2 : constant uint8 = 0x2;
183
CCP1M3 : constant uint8 = 0x3;
184
CCP1X : constant uint8 = 0x5;
185
CCP1Y : constant uint8 = 0x4;
186
CCP2 : constant uint8 = 0x3;
187
CCP2IE : constant uint8 = 0;
188
CCP2IF : constant uint8 = 0;
189
CCP2IP : constant uint8 = 0;
190
CCP2M0 : constant uint8 = 0;
191
CCP2M1 : constant uint8 = 0x1;
192
CCP2M2 : constant uint8 = 0x2;
193
CCP2M3 : constant uint8 = 0x3;
194
CCP2X : constant uint8 = 0x5;
195
CCP2Y : constant uint8 = 0x4;
196
CHS0 : constant uint8 = 0x2;
197
CHS1 : constant uint8 = 0x3;
198
CHS2 : constant uint8 = 0x4;
199
CHS3 : constant uint8 = 0x5;
200
CK : constant uint8 = 0x6;
201
CKE : constant uint8 = 0x6;
202
CKP : constant uint8 = 0x4;
203
CMLK0 : constant uint8 = 0;
204
CMLK1 : constant uint8 = 0x1;
205
CREN : constant uint8 = 0x4;
206
CS1 : constant uint8 = 0x5;
207
CSIO : constant uint8 = 0x3;
208
CSRC : constant uint8 = 0x7;
209
D : constant uint8 = 0x5;
210
DATA_ADDRESS : constant uint8 = 0x5;
211
DC : constant uint8 = 0x1;
212
DC1B0 : constant uint8 = 0x4;
213
DC1B1 : constant uint8 = 0x5;
214
DC2B0 : constant uint8 = 0x4;
215
DC2B1 : constant uint8 = 0x5;
216
DCCPX : constant uint8 = 0x5;
217
DONE : constant uint8 = 0x1;
218
D_A : constant uint8 = 0x5;
219
EBDIS : constant uint8 = 0x7;
220
FAST : constant uint8 = 0x1;
221
FERR : constant uint8 = 0x2;
222
FSR0 : constant uint8 = 0;
223
FSR1 : constant uint8 = 0x1;
224
FSR2 : constant uint8 = 0x2;
225
GCEN : constant uint8 = 0x7;
226
GIE : constant uint8 = 0x7;
227
GIEH : constant uint8 = 0x7;
228
GIEL : constant uint8 = 0x6;
229
GO : constant uint8 = 0x1;
230
GO_DONE : constant uint8 = 0x1;
231
I2C_DAT : constant uint8 = 0x5;
232
I2C_READ : constant uint8 = 0x2;
233
I2C_START : constant uint8 = 0x3;
234
I2C_STOP : constant uint8 = 0x4;
235
INT0 : constant uint8 = 0;
236
INT0E : constant uint8 = 0x4;
237
INT0F : constant uint8 = 0x1;
238
INT0IE : constant uint8 = 0x4;
239
INT0IF : constant uint8 = 0x1;
240
INT1 : constant uint8 = 0x1;
241
INT1E : constant uint8 = 0x3;
242
INT1F : constant uint8 = 0;
243
INT1IE : constant uint8 = 0x3;
244
INT1IF : constant uint8 = 0;
245
INT1IP : constant uint8 = 0x6;
246
INT1P : constant uint8 = 0x6;
247
INT2 : constant uint8 = 0x2;
248
INT2E : constant uint8 = 0x4;
249
INT2F : constant uint8 = 0x1;
250
INT2IE : constant uint8 = 0x4;
251
INT2IF : constant uint8 = 0x1;
252
INT2IP : constant uint8 = 0x7;
253
INT2P : constant uint8 = 0x7;
254
INTEDG0 : constant uint8 = 0x6;
255
INTEDG1 : constant uint8 = 0x5;
256
INTEDG2 : constant uint8 = 0x4;
257
IPEN : constant uint8 = 0x7;
258
IRVST : constant uint8 = 0x5;
259
LB : constant uint8 = 0x6;
260
LOCK : constant uint8 = 0x3;
261
LVDEN : constant uint8 = 0x4;
262
LVDIE : constant uint8 = 0x2;
263
LVDIF : constant uint8 = 0x2;
264
LVDIN : constant uint8 = 0x5;
265
LVDIP : constant uint8 = 0x2;
266
LVDL0 : constant uint8 = 0;
267
LVDL1 : constant uint8 = 0x1;
268
LVDL2 : constant uint8 = 0x2;
269
LVDL3 : constant uint8 = 0x3;
270
N : constant uint8 = 0x4;
271
NOT_A : constant uint8 = 0x5;
272
NOT_ADDRESS : constant uint8 = 0x5;
273
NOT_DONE : constant uint8 = 0x1;
274
NOT_IPEN : constant uint8 = 0x7;
275
NOT_PD : constant uint8 = 0x2;
276
NOT_POR : constant uint8 = 0x1;
277
NOT_RBPU : constant uint8 = 0x7;
278
NOT_RI : constant uint8 = 0x4;
279
NOT_T1SYNC : constant uint8 = 0x2;
280
NOT_T3SYNC : constant uint8 = 0x2;
281
NOT_TO : constant uint8 = 0x3;
282
NOT_W : constant uint8 = 0x2;
283
NOT_WRITE : constant uint8 = 0x2;
284
OE : constant uint8 = 0x1;
285
OERR : constant uint8 = 0x1;
286
OV : constant uint8 = 0x3;
287
P : constant uint8 = 0x4;
288
PCFG0 : constant uint8 = 0;
289
PCFG1 : constant uint8 = 0x1;
290
PCFG2 : constant uint8 = 0x2;
291
PCFG3 : constant uint8 = 0x3;
292
PD : constant uint8 = 0x2;
293
PEIE : constant uint8 = 0x6;
294
PEN : constant uint8 = 0x2;
295
PGRM : constant uint8 = 0x6;
296
PLLEN : constant uint8 = 0x2;
297
POR : constant uint8 = 0x1;
298
PSA : constant uint8 = 0x3;
299
R : constant uint8 = 0x2;
300
RA0 : constant uint8 = 0;
301
RA1 : constant uint8 = 0x1;
302
RA2 : constant uint8 = 0x2;
303
RA3 : constant uint8 = 0x3;
304
RA4 : constant uint8 = 0x4;
305
RA5 : constant uint8 = 0x5;
306
RB0 : constant uint8 = 0;
307
RB1 : constant uint8 = 0x1;
308
RB2 : constant uint8 = 0x2;
309
RB3 : constant uint8 = 0x3;
310
RB4 : constant uint8 = 0x4;
311
RB5 : constant uint8 = 0x5;
312
RB6 : constant uint8 = 0x6;
313
RB7 : constant uint8 = 0x7;
314
RBIE : constant uint8 = 0x3;
315
RBIF : constant uint8 = 0;
316
RBIP : constant uint8 = 0;
317
RBPU : constant uint8 = 0x7;
318
RC0 : constant uint8 = 0;
319
RC1 : constant uint8 = 0x1;
320
RC2 : constant uint8 = 0x2;
321
RC3 : constant uint8 = 0x3;
322
RC4 : constant uint8 = 0x4;
323
RC5 : constant uint8 = 0x5;
324
RC6 : constant uint8 = 0x6;
325
RC7 : constant uint8 = 0x7;
326
RCEN : constant uint8 = 0x3;
327
RCIE : constant uint8 = 0x5;
328
RCIF : constant uint8 = 0x5;
329
RCIP : constant uint8 = 0x5;
330
RD0 : constant uint8 = 0;
331
RD1 : constant uint8 = 0x1;
332
RD16 : constant uint8 = 0x7;
333
RD2 : constant uint8 = 0x2;
334
RD3 : constant uint8 = 0x3;
335
RD4 : constant uint8 = 0x4;
336
RD5 : constant uint8 = 0x5;
337
RD6 : constant uint8 = 0x6;
338
RD7 : constant uint8 = 0x7;
339
RE0 : constant uint8 = 0;
340
RE1 : constant uint8 = 0x1;
341
RE2 : constant uint8 = 0x2;
342
RE3 : constant uint8 = 0x3;
343
RE4 : constant uint8 = 0x4;
344
RE5 : constant uint8 = 0x5;
345
RE6 : constant uint8 = 0x6;
346
RE7 : constant uint8 = 0x7;
347
READ_WRITE : constant uint8 = 0x2;
348
RF0 : constant uint8 = 0;
349
RF1 : constant uint8 = 0x1;
350
RF2 : constant uint8 = 0x2;
351
RF3 : constant uint8 = 0x3;
352
RF4 : constant uint8 = 0x4;
353
RF5 : constant uint8 = 0x5;
354
RF6 : constant uint8 = 0x6;
355
RF7 : constant uint8 = 0x7;
356
RG0 : constant uint8 = 0;
357
RG1 : constant uint8 = 0x1;
358
RG2 : constant uint8 = 0x2;
359
RG3 : constant uint8 = 0x3;
360
RG4 : constant uint8 = 0x4;
361
RI : constant uint8 = 0x4;
362
RSEN : constant uint8 = 0x1;
363
RX : constant uint8 = 0x7;
364
RX9 : constant uint8 = 0x6;
365
RX9D : constant uint8 = 0;
366
R_W : constant uint8 = 0x2;
367
S : constant uint8 = 0x3;
368
SCK : constant uint8 = 0x3;
369
SCL : constant uint8 = 0x3;
370
SCS0 : constant uint8 = 0;
371
SCS1 : constant uint8 = 0x1;
372
SDA : constant uint8 = 0x4;
373
SDI : constant uint8 = 0x4;
374
SDO : constant uint8 = 0x5;
375
SEN : constant uint8 = 0;
376
SMP : constant uint8 = 0x7;
377
SPEN : constant uint8 = 0x7;
378
SREN : constant uint8 = 0x5;
379
SS : constant uint8 = 0x5;
380
SSPEN : constant uint8 = 0x5;
381
SSPIE : constant uint8 = 0x3;
382
SSPIF : constant uint8 = 0x3;
383
SSPIP : constant uint8 = 0x3;
384
SSPM0 : constant uint8 = 0;
385
SSPM1 : constant uint8 = 0x1;
386
SSPM2 : constant uint8 = 0x2;
387
SSPM3 : constant uint8 = 0x3;
388
SSPOV : constant uint8 = 0x6;
389
STKFUL : constant uint8 = 0x7;
390
STKPTR0 : constant uint8 = 0;
391
STKPTR1 : constant uint8 = 0x1;
392
STKPTR2 : constant uint8 = 0x2;
393
STKPTR3 : constant uint8 = 0x3;
394
STKPTR4 : constant uint8 = 0x4;
395
STKUNF : constant uint8 = 0x6;
396
SWDTE : constant uint8 = 0;
397
SWDTEN : constant uint8 = 0;
398
SYNC : constant uint8 = 0x4;
399
T08BIT : constant uint8 = 0x6;
400
T0CKI : constant uint8 = 0x4;
401
T0CS : constant uint8 = 0x5;
402
T0IE : constant uint8 = 0x5;
403
T0IF : constant uint8 = 0x2;
404
T0IP : constant uint8 = 0x2;
405
T0PS0 : constant uint8 = 0;
406
T0PS1 : constant uint8 = 0x1;
407
T0PS2 : constant uint8 = 0x2;
408
T0SE : constant uint8 = 0x4;
409
T1CKI : constant uint8 = 0;
410
T1CKPS0 : constant uint8 = 0x4;
411
T1CKPS1 : constant uint8 = 0x5;
412
T1INSYNC : constant uint8 = 0x2;
413
T1OSCEN : constant uint8 = 0x3;
414
T1OSI : constant uint8 = 0x1;
415
T1OSO : constant uint8 = 0;
416
T1SYNC : constant uint8 = 0x2;
417
T2CKPS0 : constant uint8 = 0;
418
T2CKPS1 : constant uint8 = 0x1;
419
T3CCP1 : constant uint8 = 0x3;
420
T3CCP2 : constant uint8 = 0x6;
421
T3CKPS0 : constant uint8 = 0x4;
422
T3CKPS1 : constant uint8 = 0x5;
423
T3INSYNC : constant uint8 = 0x2;
424
T3SYNC : constant uint8 = 0x2;
425
TMR0IE : constant uint8 = 0x5;
426
TMR0IF : constant uint8 = 0x2;
427
TMR0IP : constant uint8 = 0x2;
428
TMR0ON : constant uint8 = 0x7;
429
TMR1CS : constant uint8 = 0x1;
430
TMR1IE : constant uint8 = 0;
431
TMR1IF : constant uint8 = 0;
432
TMR1IP : constant uint8 = 0;
433
TMR1ON : constant uint8 = 0;
434
TMR2IE : constant uint8 = 0x1;
435
TMR2IF : constant uint8 = 0x1;
436
TMR2IP : constant uint8 = 0x1;
437
TMR2ON : constant uint8 = 0x2;
438
TMR3CS : constant uint8 = 0x1;
439
TMR3IE : constant uint8 = 0x1;
440
TMR3IF : constant uint8 = 0x1;
441
TMR3IP : constant uint8 = 0x1;
442
TMR3ON : constant uint8 = 0;
443
_TO : constant uint8 = 0x3; -- gpal reserved word
444
TOUTPS0 : constant uint8 = 0x3;
445
TOUTPS1 : constant uint8 = 0x4;
446
TOUTPS2 : constant uint8 = 0x5;
447
TOUTPS3 : constant uint8 = 0x6;
448
TRMT : constant uint8 = 0x1;
449
TX : constant uint8 = 0x6;
450
TX9 : constant uint8 = 0x6;
451
TX9D : constant uint8 = 0;
452
TXEN : constant uint8 = 0x5;
453
TXIE : constant uint8 = 0x4;
454
TXIF : constant uint8 = 0x4;
455
TXIP : constant uint8 = 0x4;
456
UA : constant uint8 = 0x1;
457
UB : constant uint8 = 0x7;
458
VCFG0 : constant uint8 = 0x4;
459
VCFG1 : constant uint8 = 0x5;
460
VREFN : constant uint8 = 0x2;
461
VREFP : constant uint8 = 0x3;
462
W : constant uint8 = 0;
463
WAIT0 : constant uint8 = 0x4;
464
WAIT1 : constant uint8 = 0x5;
465
WCOL : constant uint8 = 0x7;
466
WDPS0 : constant uint8 = 0x1;
467
WDPS1 : constant uint8 = 0x2;
468
WDPS2 : constant uint8 = 0x3;
469
WM0 : constant uint8 = 0;
470
WM1 : constant uint8 = 0x1;
471
WRH : constant uint8 = 0x3;
472
WRL : constant uint8 = 0x2;
473
Z : constant uint8 = 0x2;
474
_BW_16_BIT_2L : constant uint8 = 0xff;
475
_BW_8_BIT_2L : constant uint8 = 0xbf;
476
_CONFIG1H : constant uint24 = 0x300001;
477
_CONFIG2H : constant uint24 = 0x300003;
478
_CONFIG2L : constant uint24 = 0x300002;
479
_CONFIG4L : constant uint24 = 0x300006;
480
_DEVID1 : constant uint24 = 0x3ffffe;
481
_DEVID2 : constant uint24 = 0x3fffff;
482
_EC_OSC_1H : constant uint8 = 0xfd;
483
_HS_OSC_1H : constant uint8 = 0xfe;
484
_LP_OSC_1H : constant uint8 = 0xfc;
485
_PWRT_OFF_2L : constant uint8 = 0xff;
486
_PWRT_ON_2L : constant uint8 = 0xfe;
487
_RC_OSC_1H : constant uint8 = 0xff;
488
_STVR_OFF_4L : constant uint8 = 0xfe;
489
_STVR_ON_4L : constant uint8 = 0xff;
490
_WDTPS_128_2H : constant uint8 = 0xff;
491
_WDTPS_16_2H : constant uint8 = 0xf9;
492
_WDTPS_1_2H : constant uint8 = 0xf1;
493
_WDTPS_2_2H : constant uint8 = 0xf3;
494
_WDTPS_32_2H : constant uint8 = 0xfb;
495
_WDTPS_4_2H : constant uint8 = 0xf5;
496
_WDTPS_64_2H : constant uint8 = 0xfd;
497
_WDTPS_8_2H : constant uint8 = 0xf7;
498
_WDT_OFF_2H : constant uint8 = 0xfe;
499
_WDT_ON_2H : constant uint8 = 0xff;
500
__18C601 : constant uint8 = 0x1;