2
-- automatically generated by gp2pub
8
pragma processor="p18c442";
9
family : constant processor.family_type = PIC16E;
10
name : constant processor.name_type = P18C442;
14
ADCON0 : uint8 at 0xfc2;
15
ADCON1 : uint8 at 0xfc1;
16
ADRESH : uint8 at 0xfc4;
17
ADRESL : uint8 at 0xfc3;
19
CCP1CON : uint8 at 0xfbd;
20
CCP2CON : uint8 at 0xfba;
21
CCPR1H : uint8 at 0xfbf;
22
CCPR1L : uint8 at 0xfbe;
23
CCPR2H : uint8 at 0xfbc;
24
CCPR2L : uint8 at 0xfbb;
25
FSR0H : uint8 at 0xfea;
26
FSR0L : uint8 at 0xfe9;
27
FSR1H : uint8 at 0xfe2;
28
FSR1L : uint8 at 0xfe1;
29
FSR2H : uint8 at 0xfda;
30
FSR2L : uint8 at 0xfd9;
31
INDF0 : uint8 at 0xfef;
32
INDF1 : uint8 at 0xfe7;
33
INDF2 : uint8 at 0xfdf;
34
INTCON : uint8 at 0xff2;
35
INTCON1 : uint8 at 0xff2;
36
INTCON2 : uint8 at 0xff1;
37
INTCON3 : uint8 at 0xff0;
38
IPR1 : uint8 at 0xf9f;
39
IPR2 : uint8 at 0xfa2;
40
LATA : uint8 at 0xf89;
41
LATB : uint8 at 0xf8a;
42
LATC : uint8 at 0xf8b;
43
LATD : uint8 at 0xf8c;
44
LATE : uint8 at 0xf8d;
45
LVDCON : uint8 at 0xfd2;
46
OSCCON : uint8 at 0xfd3;
48
PCLATH : uint8 at 0xffa;
49
PCLATU : uint8 at 0xffb;
50
PIE1 : uint8 at 0xf9d;
51
PIE2 : uint8 at 0xfa0;
52
PIR1 : uint8 at 0xf9e;
53
PIR2 : uint8 at 0xfa1;
54
PLUSW0 : uint8 at 0xfeb;
55
PLUSW1 : uint8 at 0xfe3;
56
PLUSW2 : uint8 at 0xfdb;
57
PORTA : uint8 at 0xf80;
58
PORTB : uint8 at 0xf81;
59
PORTC : uint8 at 0xf82;
60
PORTD : uint8 at 0xf83;
61
PORTE : uint8 at 0xf84;
62
POSTDEC0 : uint8 at 0xfed;
63
POSTDEC1 : uint8 at 0xfe5;
64
POSTDEC2 : uint8 at 0xfdd;
65
POSTINC0 : uint8 at 0xfee;
66
POSTINC1 : uint8 at 0xfe6;
67
POSTINC2 : uint8 at 0xfde;
69
PREINC0 : uint8 at 0xfec;
70
PREINC1 : uint8 at 0xfe4;
71
PREINC2 : uint8 at 0xfdc;
72
PRODH : uint8 at 0xff4;
73
PRODL : uint8 at 0xff3;
74
RCON : uint8 at 0xfd0;
75
RCREG : uint8 at 0xfae;
76
RCSTA : uint8 at 0xfab;
77
SPBRG : uint8 at 0xfaf;
78
SSPADD : uint8 at 0xfc8;
79
SSPBUF : uint8 at 0xfc9;
80
SSPCON1 : uint8 at 0xfc6;
81
SSPCON2 : uint8 at 0xfc5;
82
SSPSTAT : uint8 at 0xfc7;
83
STATUS : uint8 at 0xfd8;
84
STKPTR : uint8 at 0xffc;
85
T0CON : uint8 at 0xfd5;
86
T1CON : uint8 at 0xfcd;
87
T2CON : uint8 at 0xfca;
88
T3CON : uint8 at 0xfb1;
89
TABLAT : uint8 at 0xff5;
90
TBLPTRH : uint8 at 0xff7;
91
TBLPTRL : uint8 at 0xff6;
92
TBLPTRU : uint8 at 0xff8;
93
TMR0H : uint8 at 0xfd7;
94
TMR0L : uint8 at 0xfd6;
95
TMR1H : uint8 at 0xfcf;
96
TMR1L : uint8 at 0xfce;
97
TMR2 : uint8 at 0xfcc;
98
TMR3H : uint8 at 0xfb3;
99
TMR3L : uint8 at 0xfb2;
100
TOSH : uint8 at 0xffe;
101
TOSL : uint8 at 0xffd;
102
TOSU : uint8 at 0xfff;
103
TRISA : uint8 at 0xf92;
104
TRISB : uint8 at 0xf93;
105
TRISC : uint8 at 0xf94;
106
TRISD : uint8 at 0xf95;
107
TRISE : uint8 at 0xf96;
108
TXREG : uint8 at 0xfad;
109
TXSTA : uint8 at 0xfac;
110
WDTCON : uint8 at 0xfd1;
111
WREG : uint8 at 0xfe8;
115
A : constant uint8 = 0;
116
_ACCESS : constant uint8 = 0; -- gpal reserved word
117
ACKDT : constant uint8 = 0x5;
118
ACKEN : constant uint8 = 0x4;
119
ACKSTAT : constant uint8 = 0x6;
120
ADCS0 : constant uint8 = 0x6;
121
ADCS1 : constant uint8 = 0x7;
122
ADCS2 : constant uint8 = 0x6;
123
ADDEN : constant uint8 = 0x3;
124
ADFM : constant uint8 = 0x7;
125
ADIE : constant uint8 = 0x6;
126
ADIF : constant uint8 = 0x6;
127
ADIP : constant uint8 = 0x6;
128
ADON : constant uint8 = 0;
129
AN0 : constant uint8 = 0;
130
AN1 : constant uint8 = 0x1;
131
AN2 : constant uint8 = 0x2;
132
AN3 : constant uint8 = 0x3;
133
AN4 : constant uint8 = 0x5;
134
AN5 : constant uint8 = 0;
135
AN6 : constant uint8 = 0x1;
136
AN7 : constant uint8 = 0x2;
137
BANKED : constant uint8 = 0x1;
138
BCLIE : constant uint8 = 0x3;
139
BCLIF : constant uint8 = 0x3;
140
BCLIP : constant uint8 = 0x3;
141
BF : constant uint8 = 0;
142
BOR : constant uint8 = 0;
143
BRGH : constant uint8 = 0x2;
144
C : constant uint8 = 0;
145
CCP1 : constant uint8 = 0x2;
146
CCP1IE : constant uint8 = 0x2;
147
CCP1IF : constant uint8 = 0x2;
148
CCP1IP : constant uint8 = 0x2;
149
CCP1M0 : constant uint8 = 0;
150
CCP1M1 : constant uint8 = 0x1;
151
CCP1M2 : constant uint8 = 0x2;
152
CCP1M3 : constant uint8 = 0x3;
153
CCP1X : constant uint8 = 0x5;
154
CCP1Y : constant uint8 = 0x4;
155
CCP2 : constant uint8 = 0x1;
156
CCP2A : constant uint8 = 0x3;
157
CCP2IE : constant uint8 = 0;
158
CCP2IF : constant uint8 = 0;
159
CCP2IP : constant uint8 = 0;
160
CCP2M0 : constant uint8 = 0;
161
CCP2M1 : constant uint8 = 0x1;
162
CCP2M2 : constant uint8 = 0x2;
163
CCP2M3 : constant uint8 = 0x3;
164
CCP2X : constant uint8 = 0x5;
165
CCP2Y : constant uint8 = 0x4;
166
CHS0 : constant uint8 = 0x3;
167
CHS1 : constant uint8 = 0x4;
168
CHS2 : constant uint8 = 0x5;
169
CK : constant uint8 = 0x6;
170
CKE : constant uint8 = 0x6;
171
CKP : constant uint8 = 0x4;
172
CLKO : constant uint8 = 0x6;
173
CREN : constant uint8 = 0x4;
174
CS : constant uint8 = 0x2;
175
CSRC : constant uint8 = 0x7;
176
D : constant uint8 = 0x5;
177
DATA_ADDRESS : constant uint8 = 0x5;
178
DC : constant uint8 = 0x1;
179
DC1B0 : constant uint8 = 0x4;
180
DC1B1 : constant uint8 = 0x5;
181
DC2B0 : constant uint8 = 0x4;
182
DC2B1 : constant uint8 = 0x5;
183
DONE : constant uint8 = 0x2;
184
D_A : constant uint8 = 0x5;
185
FAST : constant uint8 = 0x1;
186
FERR : constant uint8 = 0x2;
187
FSR0 : constant uint8 = 0;
188
FSR1 : constant uint8 = 0x1;
189
FSR2 : constant uint8 = 0x2;
190
GCEN : constant uint8 = 0x7;
191
GIE : constant uint8 = 0x7;
192
GIEH : constant uint8 = 0x7;
193
GIEL : constant uint8 = 0x6;
194
GO : constant uint8 = 0x2;
195
GO_DONE : constant uint8 = 0x2;
196
I2C_DAT : constant uint8 = 0x5;
197
I2C_READ : constant uint8 = 0x2;
198
I2C_START : constant uint8 = 0x3;
199
I2C_STOP : constant uint8 = 0x4;
200
IBF : constant uint8 = 0x7;
201
IBOV : constant uint8 = 0x5;
202
INT0 : constant uint8 = 0;
203
INT0E : constant uint8 = 0x4;
204
INT0F : constant uint8 = 0x1;
205
INT0IE : constant uint8 = 0x4;
206
INT0IF : constant uint8 = 0x1;
207
INT1 : constant uint8 = 0x1;
208
INT1IE : constant uint8 = 0x3;
209
INT1IF : constant uint8 = 0;
210
INT1IP : constant uint8 = 0x6;
211
INT2 : constant uint8 = 0x2;
212
INT2IE : constant uint8 = 0x4;
213
INT2IF : constant uint8 = 0x1;
214
INT2IP : constant uint8 = 0x7;
215
INTEDG0 : constant uint8 = 0x6;
216
INTEDG1 : constant uint8 = 0x5;
217
INTEDG2 : constant uint8 = 0x4;
218
IPEN : constant uint8 = 0x7;
219
IRVST : constant uint8 = 0x5;
220
LVDEN : constant uint8 = 0x4;
221
LVDIE : constant uint8 = 0x2;
222
LVDIF : constant uint8 = 0x2;
223
LVDIN : constant uint8 = 0x5;
224
LVDIP : constant uint8 = 0x2;
225
LVDL0 : constant uint8 = 0;
226
LVDL1 : constant uint8 = 0x1;
227
LVDL2 : constant uint8 = 0x2;
228
LVDL3 : constant uint8 = 0x3;
229
LWRT : constant uint8 = 0x6;
230
N : constant uint8 = 0x4;
231
NOT_A : constant uint8 = 0x5;
232
NOT_ADDRESS : constant uint8 = 0x5;
233
NOT_BOR : constant uint8 = 0;
234
NOT_DONE : constant uint8 = 0x2;
235
NOT_PD : constant uint8 = 0x2;
236
NOT_POR : constant uint8 = 0x1;
237
NOT_RBPU : constant uint8 = 0x7;
238
NOT_RC8 : constant uint8 = 0x6;
239
NOT_RI : constant uint8 = 0x4;
240
NOT_T1SYNC : constant uint8 = 0x2;
241
NOT_T3SYNC : constant uint8 = 0x2;
242
NOT_TO : constant uint8 = 0x3;
243
NOT_TX8 : constant uint8 = 0x6;
244
NOT_W : constant uint8 = 0x2;
245
NOT_WRITE : constant uint8 = 0x2;
246
OBF : constant uint8 = 0x6;
247
OERR : constant uint8 = 0x1;
248
OSC2 : constant uint8 = 0x6;
249
OV : constant uint8 = 0x3;
250
P : constant uint8 = 0x4;
251
PCFG0 : constant uint8 = 0;
252
PCFG1 : constant uint8 = 0x1;
253
PCFG2 : constant uint8 = 0x2;
254
PCFG3 : constant uint8 = 0x3;
255
PD : constant uint8 = 0x2;
256
PEIE : constant uint8 = 0x6;
257
PEN : constant uint8 = 0x2;
258
POR : constant uint8 = 0x1;
259
PSA : constant uint8 = 0x3;
260
PSP0 : constant uint8 = 0;
261
PSP1 : constant uint8 = 0x1;
262
PSP2 : constant uint8 = 0x2;
263
PSP3 : constant uint8 = 0x3;
264
PSP4 : constant uint8 = 0x4;
265
PSP5 : constant uint8 = 0x5;
266
PSP6 : constant uint8 = 0x6;
267
PSP7 : constant uint8 = 0x7;
268
PSPIE : constant uint8 = 0x7;
269
PSPIF : constant uint8 = 0x7;
270
PSPIP : constant uint8 = 0x7;
271
PSPMODE : constant uint8 = 0x4;
272
R : constant uint8 = 0x2;
273
RA0 : constant uint8 = 0;
274
RA1 : constant uint8 = 0x1;
275
RA2 : constant uint8 = 0x2;
276
RA3 : constant uint8 = 0x3;
277
RA4 : constant uint8 = 0x4;
278
RA5 : constant uint8 = 0x5;
279
RA6 : constant uint8 = 0x6;
280
RB0 : constant uint8 = 0;
281
RB1 : constant uint8 = 0x1;
282
RB2 : constant uint8 = 0x2;
283
RB3 : constant uint8 = 0x3;
284
RB4 : constant uint8 = 0x4;
285
RB5 : constant uint8 = 0x5;
286
RB6 : constant uint8 = 0x6;
287
RB7 : constant uint8 = 0x7;
288
RBIE : constant uint8 = 0x3;
289
RBIF : constant uint8 = 0;
290
RBIP : constant uint8 = 0;
291
RBPU : constant uint8 = 0x7;
292
RC0 : constant uint8 = 0;
293
RC1 : constant uint8 = 0x1;
294
RC2 : constant uint8 = 0x2;
295
RC3 : constant uint8 = 0x3;
296
RC4 : constant uint8 = 0x4;
297
RC5 : constant uint8 = 0x5;
298
RC6 : constant uint8 = 0x6;
299
RC7 : constant uint8 = 0x7;
300
RC8_9 : constant uint8 = 0x6;
301
RC9 : constant uint8 = 0x6;
302
RCD8 : constant uint8 = 0;
303
RCEN : constant uint8 = 0x3;
304
RCIE : constant uint8 = 0x5;
305
RCIF : constant uint8 = 0x5;
306
RCIP : constant uint8 = 0x5;
307
RD : constant uint8 = 0;
308
RD0 : constant uint8 = 0;
309
RD1 : constant uint8 = 0x1;
310
RD16 : constant uint8 = 0x7;
311
RD2 : constant uint8 = 0x2;
312
RD3 : constant uint8 = 0x3;
313
RD4 : constant uint8 = 0x4;
314
RD5 : constant uint8 = 0x5;
315
RD6 : constant uint8 = 0x6;
316
RD7 : constant uint8 = 0x7;
317
RE0 : constant uint8 = 0;
318
RE1 : constant uint8 = 0x1;
319
RE2 : constant uint8 = 0x2;
320
READ_WRITE : constant uint8 = 0x2;
321
RI : constant uint8 = 0x4;
322
RSEN : constant uint8 = 0x1;
323
RX : constant uint8 = 0x7;
324
RX9 : constant uint8 = 0x6;
325
RX9D : constant uint8 = 0;
326
R_W : constant uint8 = 0x2;
327
S : constant uint8 = 0x3;
328
SCK : constant uint8 = 0x3;
329
SCL : constant uint8 = 0x3;
330
SCS : constant uint8 = 0;
331
SDA : constant uint8 = 0x4;
332
SDI : constant uint8 = 0x4;
333
SDO : constant uint8 = 0x5;
334
SEN : constant uint8 = 0;
335
SMP : constant uint8 = 0x7;
336
SPEN : constant uint8 = 0x7;
337
SREN : constant uint8 = 0x5;
338
SS : constant uint8 = 0x5;
339
SSPEN : constant uint8 = 0x5;
340
SSPIE : constant uint8 = 0x3;
341
SSPIF : constant uint8 = 0x3;
342
SSPIP : constant uint8 = 0x3;
343
SSPM0 : constant uint8 = 0;
344
SSPM1 : constant uint8 = 0x1;
345
SSPM2 : constant uint8 = 0x2;
346
SSPM3 : constant uint8 = 0x3;
347
SSPOV : constant uint8 = 0x6;
348
STKFUL : constant uint8 = 0x7;
349
STKUNF : constant uint8 = 0x6;
350
SWDTE : constant uint8 = 0;
351
SWDTEN : constant uint8 = 0;
352
SYNC : constant uint8 = 0x4;
353
T08BIT : constant uint8 = 0x6;
354
T0CKI : constant uint8 = 0x4;
355
T0CS : constant uint8 = 0x5;
356
T0IE : constant uint8 = 0x5;
357
T0IF : constant uint8 = 0x2;
358
T0IP : constant uint8 = 0x2;
359
T0PS0 : constant uint8 = 0;
360
T0PS1 : constant uint8 = 0x1;
361
T0PS2 : constant uint8 = 0x2;
362
T0SE : constant uint8 = 0x4;
363
T1CKI : constant uint8 = 0;
364
T1CKPS0 : constant uint8 = 0x4;
365
T1CKPS1 : constant uint8 = 0x5;
366
T1INSYNC : constant uint8 = 0x2;
367
T1OSCEN : constant uint8 = 0x3;
368
T1OSI : constant uint8 = 0x1;
369
T1OSO : constant uint8 = 0;
370
T1SYNC : constant uint8 = 0x2;
371
T2CKPS0 : constant uint8 = 0;
372
T2CKPS1 : constant uint8 = 0x1;
373
T3CCP1 : constant uint8 = 0x3;
374
T3CCP2 : constant uint8 = 0x6;
375
T3CKPS0 : constant uint8 = 0x4;
376
T3CKPS1 : constant uint8 = 0x5;
377
T3INSYNC : constant uint8 = 0x2;
378
T3SYNC : constant uint8 = 0x2;
379
TMR0IE : constant uint8 = 0x5;
380
TMR0IF : constant uint8 = 0x2;
381
TMR0IP : constant uint8 = 0x2;
382
TMR0ON : constant uint8 = 0x7;
383
TMR1CS : constant uint8 = 0x1;
384
TMR1IE : constant uint8 = 0;
385
TMR1IF : constant uint8 = 0;
386
TMR1IP : constant uint8 = 0;
387
TMR1ON : constant uint8 = 0;
388
TMR2IE : constant uint8 = 0x1;
389
TMR2IF : constant uint8 = 0x1;
390
TMR2IP : constant uint8 = 0x1;
391
TMR2ON : constant uint8 = 0x2;
392
TMR3CS : constant uint8 = 0x1;
393
TMR3IE : constant uint8 = 0x1;
394
TMR3IF : constant uint8 = 0x1;
395
TMR3IP : constant uint8 = 0x1;
396
TMR3ON : constant uint8 = 0;
397
_TO : constant uint8 = 0x3; -- gpal reserved word
398
TOUTPS0 : constant uint8 = 0x3;
399
TOUTPS1 : constant uint8 = 0x4;
400
TOUTPS2 : constant uint8 = 0x5;
401
TOUTPS3 : constant uint8 = 0x6;
402
TRISE0 : constant uint8 = 0;
403
TRISE1 : constant uint8 = 0x1;
404
TRISE2 : constant uint8 = 0x2;
405
TRMT : constant uint8 = 0x1;
406
TX : constant uint8 = 0x6;
407
TX8_9 : constant uint8 = 0x6;
408
TX9 : constant uint8 = 0x6;
409
TX9D : constant uint8 = 0;
410
TXD8 : constant uint8 = 0;
411
TXEN : constant uint8 = 0x5;
412
TXIE : constant uint8 = 0x4;
413
TXIF : constant uint8 = 0x4;
414
TXIP : constant uint8 = 0x4;
415
UA : constant uint8 = 0x1;
416
VREFM : constant uint8 = 0x2;
417
VREFP : constant uint8 = 0x3;
418
W : constant uint8 = 0;
419
WCOL : constant uint8 = 0x7;
420
WR : constant uint8 = 0x1;
421
Z : constant uint8 = 0x2;
422
_BORV_25_2 : constant uint8 = 0xff;
423
_BORV_27_2 : constant uint8 = 0xfb;
424
_BORV_42_2 : constant uint8 = 0xf7;
425
_BORV_45_2 : constant uint8 = 0xf3;
426
_BOR_OFF_2 : constant uint8 = 0xfd;
427
_BOR_ON_2 : constant uint8 = 0xff;
428
_CCP2MX_OFF_5 : constant uint8 = 0xfe;
429
_CCP2MX_ON_5 : constant uint8 = 0xff;
430
_CONFIG0 : constant uint24 = 0x300000;
431
_CONFIG1 : constant uint24 = 0x300001;
432
_CONFIG2 : constant uint24 = 0x300002;
433
_CONFIG3 : constant uint24 = 0x300003;
434
_CONFIG4 : constant uint24 = 0x300004;
435
_CONFIG5 : constant uint24 = 0x300005;
436
_CONFIG6 : constant uint24 = 0x300006;
437
_CONFIG7 : constant uint24 = 0x300007;
438
_CP_OFF_0 : constant uint8 = 0xff;
439
_CP_ON_0 : constant uint8 = 0;
440
_DEVID1 : constant uint24 = 0x3ffffe;
441
_DEVID2 : constant uint24 = 0x3fffff;
442
_ECIO_OSC_1 : constant uint8 = 0xfd;
443
_EC_OSC_1 : constant uint8 = 0xfc;
444
_HSPLL_OSC_1 : constant uint8 = 0xfe;
445
_HS_OSC_1 : constant uint8 = 0xfa;
446
_IDLOC0 : constant uint24 = 0x200000;
447
_IDLOC1 : constant uint24 = 0x200001;
448
_IDLOC2 : constant uint24 = 0x200002;
449
_IDLOC3 : constant uint24 = 0x200003;
450
_IDLOC4 : constant uint24 = 0x200004;
451
_IDLOC5 : constant uint24 = 0x200005;
452
_IDLOC6 : constant uint24 = 0x200006;
453
_IDLOC7 : constant uint24 = 0x200007;
454
_LP_OSC_1 : constant uint8 = 0xf8;
455
_OSCS_OFF_1 : constant uint8 = 0xff;
456
_OSCS_ON_1 : constant uint8 = 0xdf;
457
_PWRT_OFF_2 : constant uint8 = 0xff;
458
_PWRT_ON_2 : constant uint8 = 0xfe;
459
_RCIO_OSC_1 : constant uint8 = 0xff;
460
_RC_OSC_1 : constant uint8 = 0xfb;
461
_STVR_OFF_6 : constant uint8 = 0xfe;
462
_STVR_ON_6 : constant uint8 = 0xff;
463
_WDTPS_128_3 : constant uint8 = 0xff;
464
_WDTPS_16_3 : constant uint8 = 0xf9;
465
_WDTPS_1_3 : constant uint8 = 0xf1;
466
_WDTPS_2_3 : constant uint8 = 0xf3;
467
_WDTPS_32_3 : constant uint8 = 0xfb;
468
_WDTPS_4_3 : constant uint8 = 0xf5;
469
_WDTPS_64_3 : constant uint8 = 0xfd;
470
_WDTPS_8_3 : constant uint8 = 0xf7;
471
_WDT_OFF_3 : constant uint8 = 0xfe;
472
_WDT_ON_3 : constant uint8 = 0xff;
473
_XT_OSC_1 : constant uint8 = 0xf9;
474
__18C442 : constant uint8 = 0x1;