~ubuntu-branches/ubuntu/quantal/gputils/quantal

« back to all changes in this revision

Viewing changes to header/p18f85j15.inc

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2005-04-16 01:00:23 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20050416010023-xo612jqs8xlk0b3d
Tags: upstream-0.13.1
ImportĀ upstreamĀ versionĀ 0.13.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
        LIST
 
2
 
 
3
;==========================================================================
 
4
;  $Id: p18f85j15.inc,v 1.2 2005/03/24 04:08:47 craigfranklin Exp $
 
5
;  MPASM PIC18F85J15 processor include
 
6
 
7
;  (c) Copyright 1999-2005 Microchip Technology, All rights reserved
 
8
;==========================================================================
 
9
 
 
10
        NOLIST
 
11
 
 
12
;==========================================================================
 
13
;  This header file defines configurations, registers, and other useful
 
14
;  bits of information for the PIC18F85J15 microcontroller.  These names
 
15
;  are taken to match the data sheets as closely as possible.
 
16
;
 
17
;  Note that the processor must be selected before this file is included.
 
18
;  The processor may be selected the following ways:
 
19
;
 
20
;       1. Command line switch:
 
21
;               C:\MPASM MYFILE.ASM /PIC18F85J15
 
22
;       2. LIST directive in the source file
 
23
;               LIST   P=PIC18F85J15
 
24
;       3. Processor Type entry in the MPASM full-screen interface
 
25
;       4. Setting the processor in the MPLAB Project Dialog
 
26
;==========================================================================
 
27
 
 
28
;==========================================================================
 
29
;
 
30
;       Verify Processor
 
31
;
 
32
;==========================================================================
 
33
        IFNDEF __18F85J15
 
34
           MESSG "Processor-header file mismatch.  Verify selected processor."
 
35
        ENDIF
 
36
 
 
37
;==========================================================================
 
38
;       18xxxx Family        EQUates
 
39
;==========================================================================
 
40
FSR0            EQU 0
 
41
FSR1            EQU 1
 
42
FSR2            EQU 2
 
43
 
 
44
FAST            EQU 1
 
45
 
 
46
W               EQU 0
 
47
A               EQU 0
 
48
ACCESS          EQU 0
 
49
BANKED          EQU 1
 
50
;==========================================================================
 
51
 
 
52
;==========================================================================
 
53
;       16Cxxx/17Cxxx Substitutions
 
54
;==========================================================================
 
55
  #define DDRA  TRISA      ; PIC17Cxxx SFR substitution
 
56
  #define DDRB  TRISB      ; PIC17Cxxx SFR substitution
 
57
  #define DDRC  TRISC      ; PIC17Cxxx SFR substitution
 
58
  #define DDRD  TRISD      ; PIC17Cxxx SFR substitution
 
59
  #define DDRE  TRISE      ; PIC17Cxxx SFR substitution
 
60
 
 
61
;==========================================================================
 
62
;
 
63
;       Register Definitions
 
64
;
 
65
;==========================================================================
 
66
 
 
67
;----- Register Files -----------------------------------------------------
 
68
SSP2CON2         EQU  H'0F62'
 
69
SSP2CON1         EQU  H'0F63'
 
70
SSP2STAT         EQU  H'0F64'
 
71
SSP2ADD          EQU  H'0F65'
 
72
SSP2BUF          EQU  H'0F66'
 
73
ECCP2DEL         EQU  H'0F67'
 
74
ECCP2AS          EQU  H'0F68'
 
75
ECCP3DEL         EQU  H'0F69'
 
76
ECCP3AS          EQU  H'0F6A'
 
77
RCSTA2           EQU  H'0F6B'
 
78
TXSTA2           EQU  H'0F6C'
 
79
TXREG2           EQU  H'0F6D'
 
80
RCREG2           EQU  H'0F6E'
 
81
SPBRG2           EQU  H'0F6F'
 
82
CCP5CON          EQU  H'0F70'
 
83
CCPR5            EQU  H'0F71'
 
84
CCPR5L           EQU  H'0F71'
 
85
CCPR5H           EQU  H'0F72'
 
86
CCP4CON          EQU  H'0F73'
 
87
CCPR4            EQU  H'0F74'
 
88
CCPR4L           EQU  H'0F74'
 
89
CCPR4H           EQU  H'0F75'
 
90
T4CON            EQU  H'0F76'
 
91
PR4              EQU  H'0F77'
 
92
TMR4             EQU  H'0F78'
 
93
ECCP1DEL         EQU  H'0F79'
 
94
BAUDCON2         EQU  H'0F7C'
 
95
SPBRGH2          EQU  H'0F7D'
 
96
BAUDCON1         EQU  H'0F7E'
 
97
SPBRGH1          EQU  H'0F7F'
 
98
PORTA            EQU  H'0F80'
 
99
PORTB            EQU  H'0F81'
 
100
PORTC            EQU  H'0F82'
 
101
PORTD            EQU  H'0F83'
 
102
PORTE            EQU  H'0F84'
 
103
PORTF            EQU  H'0F85'
 
104
PORTG            EQU  H'0F86'
 
105
PORTH            EQU  H'0F87'
 
106
PORTJ            EQU  H'0F88'
 
107
LATA             EQU  H'0F89'
 
108
LATB             EQU  H'0F8A'
 
109
LATC             EQU  H'0F8B'
 
110
LATD             EQU  H'0F8C'
 
111
LATE             EQU  H'0F8D'
 
112
LATF             EQU  H'0F8E'
 
113
LATG             EQU  H'0F8F'
 
114
LATH             EQU  H'0F90'
 
115
LATJ             EQU  H'0F91'
 
116
DDRA             EQU  H'0F92'
 
117
TRISA            EQU  H'0F92'
 
118
DDRB             EQU  H'0F93'
 
119
TRISB            EQU  H'0F93'
 
120
DDRC             EQU  H'0F94'
 
121
TRISC            EQU  H'0F94'
 
122
DDRD             EQU  H'0F95'
 
123
TRISD            EQU  H'0F95'
 
124
DDRE             EQU  H'0F96'
 
125
TRISE            EQU  H'0F96'
 
126
DDRF             EQU  H'0F97'
 
127
TRISF            EQU  H'0F97'
 
128
DDRG             EQU  H'0F98'
 
129
TRISG            EQU  H'0F98'
 
130
DDRH             EQU  H'0F99'
 
131
TRISH            EQU  H'0F99'
 
132
DDRJ             EQU  H'0F9A'
 
133
TRISJ            EQU  H'0F9A'
 
134
OSCTUNE          EQU  H'0F9B'
 
135
MEMCON           EQU  H'0F9C'
 
136
PIE1             EQU  H'0F9D'
 
137
PIR1             EQU  H'0F9E'
 
138
IPR1             EQU  H'0F9F'
 
139
PIE2             EQU  H'0FA0'
 
140
PIR2             EQU  H'0FA1'
 
141
IPR2             EQU  H'0FA2'
 
142
PIE3             EQU  H'0FA3'
 
143
PIR3             EQU  H'0FA4'
 
144
IPR3             EQU  H'0FA5'
 
145
RCSTA            EQU  H'0FAB'
 
146
RCSTA1           EQU  H'0FAB'
 
147
TXSTA            EQU  H'0FAC'
 
148
TXSTA1           EQU  H'0FAC'
 
149
TXREG            EQU  H'0FAD'
 
150
TXREG1           EQU  H'0FAD'
 
151
RCREG1           EQU  H'0FAE'
 
152
SPBRG            EQU  H'0FAF'
 
153
SPBRG1           EQU  H'0FAF'
 
154
PSPCON           EQU  H'0FB0'
 
155
T3CON            EQU  H'0FB1'
 
156
TMR3L            EQU  H'0FB2'
 
157
TMR3H            EQU  H'0FB3'
 
158
CMCON            EQU  H'0FB4'
 
159
CVRCON           EQU  H'0FB5'
 
160
ECCP1AS          EQU  H'0FB6'
 
161
CCP3CON          EQU  H'0FB7'
 
162
ECCP3CON         EQU  H'0FB7'
 
163
CCPR3            EQU  H'0FB8'
 
164
CCPR3L           EQU  H'0FB8'
 
165
CCPR3H           EQU  H'0FB9'
 
166
CCP2CON          EQU  H'0FBA'
 
167
ECCP2CON         EQU  H'0FBA'
 
168
CCPR2            EQU  H'0FBB'
 
169
CCPR2L           EQU  H'0FBB'
 
170
CCPR2H           EQU  H'0FBC'
 
171
CCP1CON          EQU  H'0FBD'
 
172
ECCP1CON         EQU  H'0FBD'
 
173
CCPR1            EQU  H'0FBE'
 
174
CCPR1L           EQU  H'0FBE'
 
175
CCPR1H           EQU  H'0FBF'
 
176
ADCON2           EQU  H'0FC0'
 
177
ADCON1           EQU  H'0FC1'
 
178
ADCON0           EQU  H'0FC2'
 
179
ADRES            EQU  H'0FC3'
 
180
ADRESL           EQU  H'0FC3'
 
181
ADRESH           EQU  H'0FC4'
 
182
SSP1CON2         EQU  H'0FC5'
 
183
SSPCON2          EQU  H'0FC5'
 
184
SSP1CON1         EQU  H'0FC6'
 
185
SSPCON1          EQU  H'0FC6'
 
186
SSP1STAT         EQU  H'0FC7'
 
187
SSPSTAT          EQU  H'0FC7'
 
188
SSP1ADD          EQU  H'0FC8'
 
189
SSPADD           EQU  H'0FC8'
 
190
SSP1BUF          EQU  H'0FC9'
 
191
SSPBUF           EQU  H'0FC9'
 
192
T2CON            EQU  H'0FCA'
 
193
PR2              EQU  H'0FCB'
 
194
TMR2             EQU  H'0FCC'
 
195
T1CON            EQU  H'0FCD'
 
196
TMR1L            EQU  H'0FCE'
 
197
TMR1H            EQU  H'0FCF'
 
198
RCON             EQU  H'0FD0'
 
199
WDTCON           EQU  H'0FD1'
 
200
OSCCON           EQU  H'0FD3'
 
201
T0CON            EQU  H'0FD5'
 
202
TMR0L            EQU  H'0FD6'
 
203
TMR0H            EQU  H'0FD7'
 
204
STATUS           EQU  H'0FD8'
 
205
FSR2L            EQU  H'0FD9'
 
206
FSR2H            EQU  H'0FDA'
 
207
PLUSW2           EQU  H'0FDB'
 
208
PREINC2          EQU  H'0FDC'
 
209
POSTDEC2         EQU  H'0FDD'
 
210
POSTINC2         EQU  H'0FDE'
 
211
INDF2            EQU  H'0FDF'
 
212
BSR              EQU  H'0FE0'
 
213
FSR1L            EQU  H'0FE1'
 
214
FSR1H            EQU  H'0FE2'
 
215
PLUSW1           EQU  H'0FE3'
 
216
PREINC1          EQU  H'0FE4'
 
217
POSTDEC1         EQU  H'0FE5'
 
218
POSTINC1         EQU  H'0FE6'
 
219
INDF1            EQU  H'0FE7'
 
220
WREG             EQU  H'0FE8'
 
221
FSR0L            EQU  H'0FE9'
 
222
FSR0H            EQU  H'0FEA'
 
223
PLUSW0           EQU  H'0FEB'
 
224
PREINC0          EQU  H'0FEC'
 
225
POSTDEC0         EQU  H'0FED'
 
226
POSTINC0         EQU  H'0FEE'
 
227
INDF0            EQU  H'0FEF'
 
228
INTCON3          EQU  H'0FF0'
 
229
INTCON2          EQU  H'0FF1'
 
230
INTCON           EQU  H'0FF2'
 
231
PROD             EQU  H'0FF3'
 
232
PRODL            EQU  H'0FF3'
 
233
PRODH            EQU  H'0FF4'
 
234
TABLAT           EQU  H'0FF5'
 
235
TBLPTR           EQU  H'0FF6'
 
236
TBLPTRL          EQU  H'0FF6'
 
237
TBLPTRH          EQU  H'0FF7'
 
238
TBLPTRU          EQU  H'0FF8'
 
239
PC               EQU  H'0FF9'
 
240
PCL              EQU  H'0FF9'
 
241
PCLATH           EQU  H'0FFA'
 
242
PCLATU           EQU  H'0FFB'
 
243
STKPTR           EQU  H'0FFC'
 
244
TOS              EQU  H'0FFD'
 
245
TOSL             EQU  H'0FFD'
 
246
TOSH             EQU  H'0FFE'
 
247
TOSU             EQU  H'0FFF'
 
248
 
 
249
;----- SSP2CON2 Bits -----------------------------------------------------
 
250
SEN              EQU  H'0000'
 
251
RSEN             EQU  H'0001'
 
252
PEN              EQU  H'0002'
 
253
RCEN             EQU  H'0003'
 
254
ACKEN            EQU  H'0004'
 
255
ACKDT            EQU  H'0005'
 
256
ACKSTAT          EQU  H'0006'
 
257
GCEN             EQU  H'0007'
 
258
 
 
259
 
 
260
;----- SSP2CON1 Bits -----------------------------------------------------
 
261
SSPM0            EQU  H'0000'
 
262
SSPM1            EQU  H'0001'
 
263
SSPM2            EQU  H'0002'
 
264
SSPM3            EQU  H'0003'
 
265
CKP              EQU  H'0004'
 
266
SSPEN            EQU  H'0005'
 
267
SSPOV            EQU  H'0006'
 
268
WCOL             EQU  H'0007'
 
269
 
 
270
 
 
271
;----- SSP2STAT Bits -----------------------------------------------------
 
272
BF               EQU  H'0000'
 
273
UA               EQU  H'0001'
 
274
R_W              EQU  H'0002'
 
275
S                EQU  H'0003'
 
276
P                EQU  H'0004'
 
277
D_A              EQU  H'0005'
 
278
CKE              EQU  H'0006'
 
279
SMP              EQU  H'0007'
 
280
 
 
281
I2C_READ         EQU  H'0002'
 
282
I2C_START        EQU  H'0003'
 
283
I2C_STOP         EQU  H'0004'
 
284
I2C_DAT          EQU  H'0005'
 
285
 
 
286
NOT_W            EQU  H'0002'
 
287
NOT_A            EQU  H'0005'
 
288
 
 
289
NOT_WRITE        EQU  H'0002'
 
290
NOT_ADDRESS      EQU  H'0005'
 
291
 
 
292
READ_WRITE       EQU  H'0002'
 
293
DATA_ADDRESS     EQU  H'0005'
 
294
 
 
295
R                EQU  H'0002'
 
296
D                EQU  H'0005'
 
297
 
 
298
 
 
299
;----- ECCP2DEL Bits -----------------------------------------------------
 
300
PDC0             EQU  H'0000'
 
301
PDC1             EQU  H'0001'
 
302
PDC2             EQU  H'0002'
 
303
PDC3             EQU  H'0003'
 
304
PDC4             EQU  H'0004'
 
305
PDC5             EQU  H'0005'
 
306
PDC6             EQU  H'0006'
 
307
PRSEN            EQU  H'0007'
 
308
 
 
309
 
 
310
;----- ECCP2AS Bits -----------------------------------------------------
 
311
PSSBD0           EQU  H'0000'
 
312
PSSBD1           EQU  H'0001'
 
313
PSSAC0           EQU  H'0002'
 
314
PSSAC1           EQU  H'0003'
 
315
ECCPAS0          EQU  H'0004'
 
316
ECCPAS1          EQU  H'0005'
 
317
ECCPAS2          EQU  H'0006'
 
318
ECCPASE          EQU  H'0007'
 
319
 
 
320
 
 
321
;----- ECCP3DEL Bits -----------------------------------------------------
 
322
PDC0             EQU  H'0000'
 
323
PDC1             EQU  H'0001'
 
324
PDC2             EQU  H'0002'
 
325
PDC3             EQU  H'0003'
 
326
PDC4             EQU  H'0004'
 
327
PDC5             EQU  H'0005'
 
328
PDC6             EQU  H'0006'
 
329
PRSEN            EQU  H'0007'
 
330
 
 
331
 
 
332
;----- ECCP3AS Bits -----------------------------------------------------
 
333
PSSBD0           EQU  H'0000'
 
334
PSSBD1           EQU  H'0001'
 
335
PSSAC0           EQU  H'0002'
 
336
PSSAC1           EQU  H'0003'
 
337
ECCPAS0          EQU  H'0004'
 
338
ECCPAS1          EQU  H'0005'
 
339
ECCPAS2          EQU  H'0006'
 
340
ECCPASE          EQU  H'0007'
 
341
 
 
342
 
 
343
;----- RCSTA2 Bits -----------------------------------------------------
 
344
RCD8             EQU  H'0000'
 
345
RC9              EQU  H'0006'
 
346
 
 
347
NOT_RC8          EQU  H'0006'
 
348
 
 
349
RC8_9            EQU  H'0006'
 
350
 
 
351
RX9D             EQU  H'0000'
 
352
OERR             EQU  H'0001'
 
353
FERR             EQU  H'0002'
 
354
ADDEN            EQU  H'0003'
 
355
CREN             EQU  H'0004'
 
356
SREN             EQU  H'0005'
 
357
RX9              EQU  H'0006'
 
358
SPEN             EQU  H'0007'
 
359
 
 
360
 
 
361
;----- TXSTA2 Bits -----------------------------------------------------
 
362
TX9D             EQU  H'0000'
 
363
TRMT             EQU  H'0001'
 
364
BRGH             EQU  H'0002'
 
365
SENDB            EQU  H'0003'
 
366
SYNC             EQU  H'0004'
 
367
TXEN             EQU  H'0005'
 
368
TX9              EQU  H'0006'
 
369
CSRC             EQU  H'0007'
 
370
 
 
371
TXD8             EQU  H'0000'
 
372
TX8_9            EQU  H'0006'
 
373
 
 
374
NOT_TX8          EQU  H'0006'
 
375
 
 
376
 
 
377
;----- CCP5CON Bits -----------------------------------------------------
 
378
CCP5M0           EQU  H'0000'
 
379
CCP5M1           EQU  H'0001'
 
380
CCP5M2           EQU  H'0002'
 
381
CCP5M3           EQU  H'0003'
 
382
DCCP5Y           EQU  H'0004'
 
383
DCCP5X           EQU  H'0005'
 
384
 
 
385
DC5B0            EQU  H'0004'
 
386
DC5B1            EQU  H'0005'
 
387
 
 
388
 
 
389
;----- CCP4CON Bits -----------------------------------------------------
 
390
CCP4M0           EQU  H'0000'
 
391
CCP4M1           EQU  H'0001'
 
392
CCP4M2           EQU  H'0002'
 
393
CCP4M3           EQU  H'0003'
 
394
DCCP4Y           EQU  H'0004'
 
395
DCCP4X           EQU  H'0005'
 
396
 
 
397
DC4B0            EQU  H'0004'
 
398
DC4B1            EQU  H'0005'
 
399
 
 
400
 
 
401
;----- T4CON Bits -----------------------------------------------------
 
402
T4CKPS0          EQU  H'0000'
 
403
T4CKPS1          EQU  H'0001'
 
404
TMR4ON           EQU  H'0002'
 
405
T4OUTPS0         EQU  H'0003'
 
406
T4OUTPS1         EQU  H'0004'
 
407
T4OUTPS2         EQU  H'0005'
 
408
T4OUTPS3         EQU  H'0006'
 
409
 
 
410
 
 
411
;----- ECCP1DEL Bits -----------------------------------------------------
 
412
PDC0             EQU  H'0000'
 
413
PDC1             EQU  H'0001'
 
414
PDC2             EQU  H'0002'
 
415
PDC3             EQU  H'0003'
 
416
PDC4             EQU  H'0004'
 
417
PDC5             EQU  H'0005'
 
418
PDC6             EQU  H'0006'
 
419
PRSEN            EQU  H'0007'
 
420
 
 
421
 
 
422
;----- BAUDCON2 Bits -----------------------------------------------------
 
423
ABDEN            EQU  H'0000'
 
424
WUE              EQU  H'0001'
 
425
BRG16            EQU  H'0003'
 
426
SCKP             EQU  H'0004'
 
427
RCMT             EQU  H'0006'
 
428
ABDOVF           EQU  H'0007'
 
429
 
 
430
 
 
431
;----- BAUDCON1 Bits -----------------------------------------------------
 
432
ABDEN            EQU  H'0000'
 
433
WUE              EQU  H'0001'
 
434
BRG16            EQU  H'0003'
 
435
SCKP             EQU  H'0004'
 
436
RCMT             EQU  H'0006'
 
437
ABDOVF           EQU  H'0007'
 
438
 
 
439
 
 
440
;----- PORTA Bits -----------------------------------------------------
 
441
RA0              EQU  H'0000'
 
442
RA1              EQU  H'0001'
 
443
RA2              EQU  H'0002'
 
444
RA3              EQU  H'0003'
 
445
RA4              EQU  H'0004'
 
446
RA5              EQU  H'0005'
 
447
 
 
448
AN0              EQU  H'0000'
 
449
AN1              EQU  H'0001'
 
450
AN2              EQU  H'0002'
 
451
AN3              EQU  H'0003'
 
452
T0CKI            EQU  H'0004'
 
453
AN4              EQU  H'0005'
 
454
OSC2             EQU  H'0006'
 
455
 
 
456
VREFM            EQU  H'0002'
 
457
VREFP            EQU  H'0003'
 
458
CLKO             EQU  H'0006'
 
459
 
 
460
 
 
461
;----- PORTB Bits -----------------------------------------------------
 
462
RB0              EQU  H'0000'
 
463
RB1              EQU  H'0001'
 
464
RB2              EQU  H'0002'
 
465
RB3              EQU  H'0003'
 
466
RB4              EQU  H'0004'
 
467
RB5              EQU  H'0005'
 
468
RB6              EQU  H'0006'
 
469
RB7              EQU  H'0007'
 
470
 
 
471
INT0             EQU  H'0000'
 
472
INT1             EQU  H'0001'
 
473
INT2             EQU  H'0002'
 
474
INT3             EQU  H'0003'
 
475
KBI0             EQU  H'0004'
 
476
KBI1             EQU  H'0005'
 
477
KBI2             EQU  H'0006'
 
478
KBI3             EQU  H'0007'
 
479
 
 
480
PGM              EQU  H'0004'
 
481
PGC              EQU  H'0005'
 
482
PGD              EQU  H'0006'
 
483
 
 
484
 
 
485
;----- PORTC Bits -----------------------------------------------------
 
486
RC0              EQU  H'0000'
 
487
RC1              EQU  H'0001'
 
488
RC2              EQU  H'0002'
 
489
RC3              EQU  H'0003'
 
490
RC4              EQU  H'0004'
 
491
RC5              EQU  H'0005'
 
492
RC6              EQU  H'0006'
 
493
RC7              EQU  H'0007'
 
494
 
 
495
T1OSO            EQU  H'0000'
 
496
T1OSI            EQU  H'0001'
 
497
CCP1             EQU  H'0002'
 
498
SCK              EQU  H'0003'
 
499
SDI              EQU  H'0004'
 
500
SDO              EQU  H'0005'
 
501
TX               EQU  H'0006'
 
502
RX               EQU  H'0007'
 
503
 
 
504
T13CKI           EQU  H'0000'
 
505
CCP2             EQU  H'0001'
 
506
SCL              EQU  H'0003'
 
507
SDA              EQU  H'0004'
 
508
CK               EQU  H'0006'
 
509
; DT is a reserved word
 
510
; DT               EQU  H'0007'
 
511
 
 
512
 
 
513
;----- PORTD Bits -----------------------------------------------------
 
514
RD0              EQU  H'0000'
 
515
RD1              EQU  H'0001'
 
516
RD2              EQU  H'0002'
 
517
RD3              EQU  H'0003'
 
518
RD4              EQU  H'0004'
 
519
RD5              EQU  H'0005'
 
520
RD6              EQU  H'0006'
 
521
RD7              EQU  H'0007'
 
522
 
 
523
PSP0             EQU  H'0000'
 
524
PSP1             EQU  H'0001'
 
525
PSP2             EQU  H'0002'
 
526
PSP3             EQU  H'0003'
 
527
PSP4             EQU  H'0004'
 
528
PSP5             EQU  H'0005'
 
529
PSP6             EQU  H'0006'
 
530
PSP7             EQU  H'0007'
 
531
 
 
532
AD00             EQU  H'0000'
 
533
AD01             EQU  H'0001'
 
534
AD02             EQU  H'0002'
 
535
AD03             EQU  H'0003'
 
536
AD04             EQU  H'0004'
 
537
AD05             EQU  H'0005'
 
538
AD06             EQU  H'0006'
 
539
AD07             EQU  H'0007'
 
540
 
 
541
SDA2             EQU  H'0005'
 
542
SCL2             EQU  H'0006'
 
543
SS2              EQU  H'0007'
 
544
 
 
545
SDO2             EQU  H'0004'
 
546
SDI2             EQU  H'0005'
 
547
SCK2             EQU  H'0006'
 
548
 
 
549
 
 
550
;----- PORTE Bits -----------------------------------------------------
 
551
RE0              EQU  H'0000'
 
552
RE1              EQU  H'0001'
 
553
RE2              EQU  H'0002'
 
554
RE3              EQU  H'0003'
 
555
RE4              EQU  H'0004'
 
556
RE5              EQU  H'0005'
 
557
RE6              EQU  H'0006'
 
558
RE7              EQU  H'0007'
 
559
 
 
560
RD               EQU  H'0000'
 
561
WR               EQU  H'0001'
 
562
CS               EQU  H'0002'
 
563
 
 
564
AD8              EQU  H'0000'
 
565
AD9              EQU  H'0001'
 
566
AD10             EQU  H'0002'
 
567
AD11             EQU  H'0003'
 
568
AD12             EQU  H'0004'
 
569
AD13             EQU  H'0005'
 
570
AD14             EQU  H'0006'
 
571
AD15             EQU  H'0007'
 
572
 
 
573
 
 
574
;----- PORTF Bits -----------------------------------------------------
 
575
RF1              EQU  H'0001'
 
576
RF2              EQU  H'0002'
 
577
RF3              EQU  H'0003'
 
578
RF4              EQU  H'0004'
 
579
RF5              EQU  H'0005'
 
580
RF6              EQU  H'0006'
 
581
RF7              EQU  H'0007'
 
582
 
 
583
AN6              EQU  H'0001'
 
584
AN7              EQU  H'0002'
 
585
AN8              EQU  H'0003'
 
586
AN9              EQU  H'0004'
 
587
AN10             EQU  H'0005'
 
588
AN11             EQU  H'0006'
 
589
SS               EQU  H'0007'
 
590
 
 
591
CVREF            EQU  H'0003'
 
592
 
 
593
 
 
594
;----- PORTG Bits -----------------------------------------------------
 
595
RG0              EQU  H'0000'
 
596
RG1              EQU  H'0001'
 
597
RG2              EQU  H'0002'
 
598
RG3              EQU  H'0003'
 
599
RG4              EQU  H'0004'
 
600
 
 
601
CCP3             EQU  H'0000'
 
602
TX2              EQU  H'0001'
 
603
RX2              EQU  H'0002'
 
604
CCP4             EQU  H'0003'
 
605
CCP5             EQU  H'0004'
 
606
 
 
607
CK2              EQU  H'0001'
 
608
DT2              EQU  H'0002'
 
609
 
 
610
 
 
611
;----- PORTH Bits -----------------------------------------------------
 
612
RH0              EQU  H'0000'
 
613
RH1              EQU  H'0001'
 
614
RH2              EQU  H'0002'
 
615
RH3              EQU  H'0003'
 
616
RH4              EQU  H'0004'
 
617
RH5              EQU  H'0005'
 
618
RH6              EQU  H'0006'
 
619
RH7              EQU  H'0007'
 
620
 
 
621
AD16             EQU  H'0000'
 
622
AD17             EQU  H'0001'
 
623
AD18             EQU  H'0002'
 
624
AD19             EQU  H'0003'
 
625
AN12             EQU  H'0004'
 
626
AN13             EQU  H'0005'
 
627
AN14             EQU  H'0006'
 
628
AN15             EQU  H'0007'
 
629
 
 
630
 
 
631
;----- PORTJ Bits -----------------------------------------------------
 
632
RJ0              EQU  H'0000'
 
633
RJ1              EQU  H'0001'
 
634
RJ2              EQU  H'0002'
 
635
RJ3              EQU  H'0003'
 
636
RJ4              EQU  H'0004'
 
637
RJ5              EQU  H'0005'
 
638
RJ6              EQU  H'0006'
 
639
RJ7              EQU  H'0007'
 
640
 
 
641
ALE              EQU  H'0000'
 
642
OE               EQU  H'0001'
 
643
WRL              EQU  H'0002'
 
644
WRH              EQU  H'0003'
 
645
BA0              EQU  H'0004'
 
646
CE               EQU  H'0005'
 
647
LB               EQU  H'0006'
 
648
UB               EQU  H'0007'
 
649
 
 
650
 
 
651
;----- LATA Bits -----------------------------------------------------
 
652
LATA0            EQU  H'0000'
 
653
LATA1            EQU  H'0001'
 
654
LATA2            EQU  H'0002'
 
655
LATA3            EQU  H'0003'
 
656
LATA4            EQU  H'0004'
 
657
LATA5            EQU  H'0005'
 
658
 
 
659
 
 
660
;----- LATB Bits -----------------------------------------------------
 
661
LATB0            EQU  H'0000'
 
662
LATB1            EQU  H'0001'
 
663
LATB2            EQU  H'0002'
 
664
LATB3            EQU  H'0003'
 
665
LATB4            EQU  H'0004'
 
666
LATB5            EQU  H'0005'
 
667
LATB6            EQU  H'0006'
 
668
LATB7            EQU  H'0007'
 
669
 
 
670
 
 
671
;----- LATC Bits -----------------------------------------------------
 
672
LATC0            EQU  H'0000'
 
673
LATC1            EQU  H'0001'
 
674
LATC2            EQU  H'0002'
 
675
LATC3            EQU  H'0003'
 
676
LATC4            EQU  H'0004'
 
677
LATC5            EQU  H'0005'
 
678
LATC6            EQU  H'0006'
 
679
LATC7            EQU  H'0007'
 
680
 
 
681
 
 
682
;----- LATD Bits -----------------------------------------------------
 
683
LATD0            EQU  H'0000'
 
684
LATD1            EQU  H'0001'
 
685
LATD2            EQU  H'0002'
 
686
LATD3            EQU  H'0003'
 
687
LATD4            EQU  H'0004'
 
688
LATD5            EQU  H'0005'
 
689
LATD6            EQU  H'0006'
 
690
LATD7            EQU  H'0007'
 
691
 
 
692
 
 
693
;----- LATE Bits -----------------------------------------------------
 
694
LATE0            EQU  H'0000'
 
695
LATE1            EQU  H'0001'
 
696
LATE2            EQU  H'0002'
 
697
LATE3            EQU  H'0003'
 
698
LATE4            EQU  H'0004'
 
699
LATE5            EQU  H'0005'
 
700
LATE6            EQU  H'0006'
 
701
LATE7            EQU  H'0007'
 
702
 
 
703
 
 
704
;----- LATF Bits -----------------------------------------------------
 
705
LATF1            EQU  H'0001'
 
706
LATF2            EQU  H'0002'
 
707
LATF3            EQU  H'0003'
 
708
LATF4            EQU  H'0004'
 
709
LATF5            EQU  H'0005'
 
710
LATF6            EQU  H'0006'
 
711
LATF7            EQU  H'0007'
 
712
 
 
713
 
 
714
;----- LATG Bits -----------------------------------------------------
 
715
LATG0            EQU  H'0000'
 
716
LATG1            EQU  H'0001'
 
717
LATG2            EQU  H'0002'
 
718
LATG3            EQU  H'0003'
 
719
LATG4            EQU  H'0004'
 
720
 
 
721
 
 
722
;----- LATH Bits -----------------------------------------------------
 
723
LATH0            EQU  H'0000'
 
724
LATH1            EQU  H'0001'
 
725
LATH2            EQU  H'0002'
 
726
LATH3            EQU  H'0003'
 
727
LATH4            EQU  H'0004'
 
728
LATH5            EQU  H'0005'
 
729
LATH6            EQU  H'0006'
 
730
LATH7            EQU  H'0007'
 
731
 
 
732
 
 
733
;----- LATJ Bits -----------------------------------------------------
 
734
LATJ0            EQU  H'0000'
 
735
LATJ1            EQU  H'0001'
 
736
LATJ2            EQU  H'0002'
 
737
LATJ3            EQU  H'0003'
 
738
LATJ4            EQU  H'0004'
 
739
LATJ5            EQU  H'0005'
 
740
LATJ6            EQU  H'0006'
 
741
LATJ7            EQU  H'0007'
 
742
 
 
743
 
 
744
;----- DDRA Bits -----------------------------------------------------
 
745
RA0              EQU  H'0000'
 
746
RA1              EQU  H'0001'
 
747
RA2              EQU  H'0002'
 
748
RA3              EQU  H'0003'
 
749
RA4              EQU  H'0004'
 
750
RA5              EQU  H'0005'
 
751
 
 
752
 
 
753
;----- TRISA Bits -----------------------------------------------------
 
754
TRISA0           EQU  H'0000'
 
755
TRISA1           EQU  H'0001'
 
756
TRISA2           EQU  H'0002'
 
757
TRISA3           EQU  H'0003'
 
758
TRISA4           EQU  H'0004'
 
759
TRISA5           EQU  H'0005'
 
760
 
 
761
 
 
762
;----- DDRB Bits -----------------------------------------------------
 
763
RB0              EQU  H'0000'
 
764
RB1              EQU  H'0001'
 
765
RB2              EQU  H'0002'
 
766
RB3              EQU  H'0003'
 
767
RB4              EQU  H'0004'
 
768
RB5              EQU  H'0005'
 
769
RB6              EQU  H'0006'
 
770
RB7              EQU  H'0007'
 
771
 
 
772
 
 
773
;----- TRISB Bits -----------------------------------------------------
 
774
TRISB0           EQU  H'0000'
 
775
TRISB1           EQU  H'0001'
 
776
TRISB2           EQU  H'0002'
 
777
TRISB3           EQU  H'0003'
 
778
TRISB4           EQU  H'0004'
 
779
TRISB5           EQU  H'0005'
 
780
TRISB6           EQU  H'0006'
 
781
TRISB7           EQU  H'0007'
 
782
 
 
783
 
 
784
;----- DDRC Bits -----------------------------------------------------
 
785
RC0              EQU  H'0000'
 
786
RC1              EQU  H'0001'
 
787
RC2              EQU  H'0002'
 
788
RC3              EQU  H'0003'
 
789
RC4              EQU  H'0004'
 
790
RC5              EQU  H'0005'
 
791
RC6              EQU  H'0006'
 
792
RC7              EQU  H'0007'
 
793
 
 
794
 
 
795
;----- TRISC Bits -----------------------------------------------------
 
796
TRISC0           EQU  H'0000'
 
797
TRISC1           EQU  H'0001'
 
798
TRISC2           EQU  H'0002'
 
799
TRISC3           EQU  H'0003'
 
800
TRISC4           EQU  H'0004'
 
801
TRISC5           EQU  H'0005'
 
802
TRISC6           EQU  H'0006'
 
803
TRISC7           EQU  H'0007'
 
804
 
 
805
 
 
806
;----- DDRD Bits -----------------------------------------------------
 
807
RD0              EQU  H'0000'
 
808
RD1              EQU  H'0001'
 
809
RD2              EQU  H'0002'
 
810
RD3              EQU  H'0003'
 
811
RD4              EQU  H'0004'
 
812
RD5              EQU  H'0005'
 
813
RD6              EQU  H'0006'
 
814
RD7              EQU  H'0007'
 
815
 
 
816
 
 
817
;----- TRISD Bits -----------------------------------------------------
 
818
TRISD0           EQU  H'0000'
 
819
TRISD1           EQU  H'0001'
 
820
TRISD2           EQU  H'0002'
 
821
TRISD3           EQU  H'0003'
 
822
TRISD4           EQU  H'0004'
 
823
TRISD5           EQU  H'0005'
 
824
TRISD6           EQU  H'0006'
 
825
TRISD7           EQU  H'0007'
 
826
 
 
827
 
 
828
;----- DDRE Bits -----------------------------------------------------
 
829
RE0              EQU  H'0000'
 
830
RE1              EQU  H'0001'
 
831
RE2              EQU  H'0002'
 
832
RE3              EQU  H'0003'
 
833
RE4              EQU  H'0004'
 
834
RE5              EQU  H'0005'
 
835
RE6              EQU  H'0006'
 
836
RE7              EQU  H'0007'
 
837
 
 
838
 
 
839
;----- TRISE Bits -----------------------------------------------------
 
840
TRISE0           EQU  H'0000'
 
841
TRISE1           EQU  H'0001'
 
842
TRISE2           EQU  H'0002'
 
843
TRISE3           EQU  H'0003'
 
844
TRISE4           EQU  H'0004'
 
845
TRISE5           EQU  H'0005'
 
846
TRISE6           EQU  H'0006'
 
847
TRISE7           EQU  H'0007'
 
848
 
 
849
 
 
850
;----- DDRF Bits -----------------------------------------------------
 
851
RF1              EQU  H'0001'
 
852
RF2              EQU  H'0002'
 
853
RF3              EQU  H'0003'
 
854
RF4              EQU  H'0004'
 
855
RF5              EQU  H'0005'
 
856
RF6              EQU  H'0006'
 
857
RF7              EQU  H'0007'
 
858
 
 
859
 
 
860
;----- TRISF Bits -----------------------------------------------------
 
861
TRISF1           EQU  H'0001'
 
862
TRISF2           EQU  H'0002'
 
863
TRISF3           EQU  H'0003'
 
864
TRISF4           EQU  H'0004'
 
865
TRISF5           EQU  H'0005'
 
866
TRISF6           EQU  H'0006'
 
867
TRISF7           EQU  H'0007'
 
868
 
 
869
 
 
870
;----- DDRG Bits -----------------------------------------------------
 
871
RG0              EQU  H'0000'
 
872
RG1              EQU  H'0001'
 
873
RG2              EQU  H'0002'
 
874
RG3              EQU  H'0003'
 
875
RG4              EQU  H'0004'
 
876
 
 
877
 
 
878
;----- TRISG Bits -----------------------------------------------------
 
879
TRISG0           EQU  H'0000'
 
880
TRISG1           EQU  H'0001'
 
881
TRISG2           EQU  H'0002'
 
882
TRISG3           EQU  H'0003'
 
883
TRISG4           EQU  H'0004'
 
884
 
 
885
 
 
886
;----- DDRH Bits -----------------------------------------------------
 
887
RH0              EQU  H'0000'
 
888
RH1              EQU  H'0001'
 
889
RH2              EQU  H'0002'
 
890
RH3              EQU  H'0003'
 
891
RH4              EQU  H'0004'
 
892
RH5              EQU  H'0005'
 
893
RH6              EQU  H'0006'
 
894
RH7              EQU  H'0007'
 
895
 
 
896
 
 
897
;----- TRISH Bits -----------------------------------------------------
 
898
TRISH0           EQU  H'0000'
 
899
TRISH1           EQU  H'0001'
 
900
TRISH2           EQU  H'0002'
 
901
TRISH3           EQU  H'0003'
 
902
TRISH4           EQU  H'0004'
 
903
TRISH5           EQU  H'0005'
 
904
TRISH6           EQU  H'0006'
 
905
TRISH7           EQU  H'0007'
 
906
 
 
907
 
 
908
;----- DDRJ Bits -----------------------------------------------------
 
909
RJ0              EQU  H'0000'
 
910
RJ1              EQU  H'0001'
 
911
RJ2              EQU  H'0002'
 
912
RJ3              EQU  H'0003'
 
913
RJ4              EQU  H'0004'
 
914
RJ5              EQU  H'0005'
 
915
RJ6              EQU  H'0006'
 
916
RJ7              EQU  H'0007'
 
917
 
 
918
 
 
919
;----- TRISJ Bits -----------------------------------------------------
 
920
TRISJ0           EQU  H'0000'
 
921
TRISJ1           EQU  H'0001'
 
922
TRISJ2           EQU  H'0002'
 
923
TRISJ3           EQU  H'0003'
 
924
TRISJ4           EQU  H'0004'
 
925
TRISJ5           EQU  H'0005'
 
926
TRISJ6           EQU  H'0006'
 
927
TRISJ7           EQU  H'0007'
 
928
 
 
929
 
 
930
;----- OSCTUNE Bits -----------------------------------------------------
 
931
PLLEN            EQU  H'0006'
 
932
 
 
933
 
 
934
;----- MEMCON Bits -----------------------------------------------------
 
935
WM0              EQU  H'0000'
 
936
WM1              EQU  H'0001'
 
937
WAIT0            EQU  H'0004'
 
938
WAIT1            EQU  H'0005'
 
939
EBDIS            EQU  H'0007'
 
940
 
 
941
 
 
942
;----- PIE1 Bits -----------------------------------------------------
 
943
TMR1IE           EQU  H'0000'
 
944
TMR2IE           EQU  H'0001'
 
945
CCP1IE           EQU  H'0002'
 
946
SSPIE            EQU  H'0003'
 
947
TXIE             EQU  H'0004'
 
948
RCIE             EQU  H'0005'
 
949
ADIE             EQU  H'0006'
 
950
PSPIE            EQU  H'0007'
 
951
 
 
952
SSP1IE           EQU  H'0003'
 
953
TX1IE            EQU  H'0004'
 
954
RC1IE            EQU  H'0005'
 
955
 
 
956
 
 
957
;----- PIR1 Bits -----------------------------------------------------
 
958
TMR1IF           EQU  H'0000'
 
959
TMR2IF           EQU  H'0001'
 
960
CCP1IF           EQU  H'0002'
 
961
SSPIF            EQU  H'0003'
 
962
TXIF             EQU  H'0004'
 
963
RCIF             EQU  H'0005'
 
964
ADIF             EQU  H'0006'
 
965
PSPIF            EQU  H'0007'
 
966
 
 
967
SSP1IF           EQU  H'0003'
 
968
TX1IF            EQU  H'0004'
 
969
RC1IF            EQU  H'0005'
 
970
 
 
971
 
 
972
;----- IPR1 Bits -----------------------------------------------------
 
973
TMR1IP           EQU  H'0000'
 
974
TMR2IP           EQU  H'0001'
 
975
CCP1IP           EQU  H'0002'
 
976
SSPIP            EQU  H'0003'
 
977
TXIP             EQU  H'0004'
 
978
RCIP             EQU  H'0005'
 
979
ADIP             EQU  H'0006'
 
980
PSPIP            EQU  H'0007'
 
981
 
 
982
SSP1IP           EQU  H'0003'
 
983
TX1IP            EQU  H'0004'
 
984
RC1IP            EQU  H'0005'
 
985
 
 
986
 
 
987
;----- PIE2 Bits -----------------------------------------------------
 
988
CCP2IE           EQU  H'0000'
 
989
TMR3IE           EQU  H'0001'
 
990
BCLIE            EQU  H'0003'
 
991
CMIE             EQU  H'0006'
 
992
OSCFIE           EQU  H'0007'
 
993
 
 
994
BCL1IE           EQU  H'0003'
 
995
 
 
996
 
 
997
;----- PIR2 Bits -----------------------------------------------------
 
998
CCP2IF           EQU  H'0000'
 
999
TMR3IF           EQU  H'0001'
 
1000
BCLIF            EQU  H'0003'
 
1001
CMIF             EQU  H'0006'
 
1002
OSCFIF           EQU  H'0007'
 
1003
 
 
1004
BCL1IF           EQU  H'0003'
 
1005
 
 
1006
 
 
1007
;----- IPR2 Bits -----------------------------------------------------
 
1008
CCP2IP           EQU  H'0000'
 
1009
TMR3IP           EQU  H'0001'
 
1010
BCLIP            EQU  H'0003'
 
1011
CMIP             EQU  H'0006'
 
1012
OSCFIP           EQU  H'0007'
 
1013
 
 
1014
BCL1IP           EQU  H'0003'
 
1015
 
 
1016
 
 
1017
;----- PIE3 Bits -----------------------------------------------------
 
1018
CCP3IE           EQU  H'0000'
 
1019
CCP4IE           EQU  H'0001'
 
1020
CCP5IE           EQU  H'0002'
 
1021
TMR4IE           EQU  H'0003'
 
1022
TX2IE            EQU  H'0004'
 
1023
RC2IE            EQU  H'0005'
 
1024
BCL2IE           EQU  H'0006'
 
1025
SSP2IE           EQU  H'0007'
 
1026
 
 
1027
 
 
1028
;----- PIR3 Bits -----------------------------------------------------
 
1029
CCP3IF           EQU  H'0000'
 
1030
CCP4IF           EQU  H'0001'
 
1031
CCP5IF           EQU  H'0002'
 
1032
TMR4IF           EQU  H'0003'
 
1033
TX2IF            EQU  H'0004'
 
1034
RC2IF            EQU  H'0005'
 
1035
BCL2IF           EQU  H'0006'
 
1036
SSP2IF           EQU  H'0007'
 
1037
 
 
1038
 
 
1039
;----- IPR3 Bits -----------------------------------------------------
 
1040
CCP3IP           EQU  H'0000'
 
1041
CCP4IP           EQU  H'0001'
 
1042
CCP5IP           EQU  H'0002'
 
1043
TMR4IP           EQU  H'0003'
 
1044
TX2IP            EQU  H'0004'
 
1045
RC2IP            EQU  H'0005'
 
1046
BCL2IP           EQU  H'0006'
 
1047
SSP2IP           EQU  H'0007'
 
1048
 
 
1049
 
 
1050
;----- RCSTA Bits -----------------------------------------------------
 
1051
RX9D             EQU  H'0000'
 
1052
OERR             EQU  H'0001'
 
1053
FERR             EQU  H'0002'
 
1054
ADDEN            EQU  H'0003'
 
1055
CREN             EQU  H'0004'
 
1056
SREN             EQU  H'0005'
 
1057
RX9              EQU  H'0006'
 
1058
SPEN             EQU  H'0007'
 
1059
 
 
1060
RCD8             EQU  H'0000'
 
1061
RC9              EQU  H'0006'
 
1062
 
 
1063
NOT_RC8          EQU  H'0006'
 
1064
 
 
1065
RC8_9            EQU  H'0006'
 
1066
 
 
1067
 
 
1068
;----- RCSTA1 Bits -----------------------------------------------------
 
1069
RX9D             EQU  H'0000'
 
1070
OERR             EQU  H'0001'
 
1071
FERR             EQU  H'0002'
 
1072
ADDEN            EQU  H'0003'
 
1073
CREN             EQU  H'0004'
 
1074
SREN             EQU  H'0005'
 
1075
RX9              EQU  H'0006'
 
1076
SPEN             EQU  H'0007'
 
1077
 
 
1078
RCD8             EQU  H'0000'
 
1079
RC9              EQU  H'0006'
 
1080
 
 
1081
NOT_RC8          EQU  H'0006'
 
1082
 
 
1083
RC8_9            EQU  H'0006'
 
1084
 
 
1085
 
 
1086
;----- TXSTA Bits -----------------------------------------------------
 
1087
TX9D             EQU  H'0000'
 
1088
TRMT             EQU  H'0001'
 
1089
BRGH             EQU  H'0002'
 
1090
SENDB            EQU  H'0003'
 
1091
SYNC             EQU  H'0004'
 
1092
TXEN             EQU  H'0005'
 
1093
TX9              EQU  H'0006'
 
1094
CSRC             EQU  H'0007'
 
1095
 
 
1096
TXD8             EQU  H'0000'
 
1097
TX8_9            EQU  H'0006'
 
1098
 
 
1099
NOT_TX8          EQU  H'0006'
 
1100
 
 
1101
 
 
1102
;----- TXSTA1 Bits -----------------------------------------------------
 
1103
TX9D             EQU  H'0000'
 
1104
TRMT             EQU  H'0001'
 
1105
BRGH             EQU  H'0002'
 
1106
SENDB            EQU  H'0003'
 
1107
SYNC             EQU  H'0004'
 
1108
TXEN             EQU  H'0005'
 
1109
TX9              EQU  H'0006'
 
1110
CSRC             EQU  H'0007'
 
1111
 
 
1112
TXD8             EQU  H'0000'
 
1113
TX8_9            EQU  H'0006'
 
1114
 
 
1115
NOT_TX8          EQU  H'0006'
 
1116
 
 
1117
 
 
1118
;----- PSPCON Bits -----------------------------------------------------
 
1119
PSPMODE          EQU  H'0004'
 
1120
IBOV             EQU  H'0005'
 
1121
OBF              EQU  H'0006'
 
1122
IBF              EQU  H'0007'
 
1123
 
 
1124
 
 
1125
;----- T3CON Bits -----------------------------------------------------
 
1126
TMR3ON           EQU  H'0000'
 
1127
TMR3CS           EQU  H'0001'
 
1128
T3SYNC           EQU  H'0002'
 
1129
T3CCP1           EQU  H'0003'
 
1130
T3CKPS0          EQU  H'0004'
 
1131
T3CKPS1          EQU  H'0005'
 
1132
T3CCP2           EQU  H'0006'
 
1133
RD16             EQU  H'0007'
 
1134
 
 
1135
T3INSYNC         EQU  H'0002'
 
1136
 
 
1137
NOT_T3SYNC       EQU  H'0002'
 
1138
 
 
1139
 
 
1140
;----- CMCON Bits -----------------------------------------------------
 
1141
CM0              EQU  H'0000'
 
1142
CM1              EQU  H'0001'
 
1143
CM2              EQU  H'0002'
 
1144
CIS              EQU  H'0003'
 
1145
C1INV            EQU  H'0004'
 
1146
C2INV            EQU  H'0005'
 
1147
C1OUT            EQU  H'0006'
 
1148
C2OUT            EQU  H'0007'
 
1149
 
 
1150
 
 
1151
;----- CVRCON Bits -----------------------------------------------------
 
1152
CVR0             EQU  H'0000'
 
1153
CVR1             EQU  H'0001'
 
1154
CVR2             EQU  H'0002'
 
1155
CVR3             EQU  H'0003'
 
1156
CVRSS            EQU  H'0004'
 
1157
CVRR             EQU  H'0005'
 
1158
CVROE            EQU  H'0006'
 
1159
CVREN            EQU  H'0007'
 
1160
 
 
1161
 
 
1162
;----- ECCP1AS Bits -----------------------------------------------------
 
1163
PSSBD0           EQU  H'0000'
 
1164
PSSBD1           EQU  H'0001'
 
1165
PSSAC0           EQU  H'0002'
 
1166
PSSAC1           EQU  H'0003'
 
1167
ECCPAS0          EQU  H'0004'
 
1168
ECCPAS1          EQU  H'0005'
 
1169
ECCPAS2          EQU  H'0006'
 
1170
ECCPASE          EQU  H'0007'
 
1171
 
 
1172
 
 
1173
;----- CCP3CON Bits -----------------------------------------------------
 
1174
CCP3M0           EQU  H'0000'
 
1175
CCP3M1           EQU  H'0001'
 
1176
CCP3M2           EQU  H'0002'
 
1177
CCP3M3           EQU  H'0003'
 
1178
DC3B0            EQU  H'0004'
 
1179
DC3B1            EQU  H'0005'
 
1180
 
 
1181
 
 
1182
;----- ECCP3CON Bits -----------------------------------------------------
 
1183
CCP3M0           EQU  H'0000'
 
1184
CCP3M1           EQU  H'0001'
 
1185
CCP3M2           EQU  H'0002'
 
1186
CCP3M3           EQU  H'0003'
 
1187
DC3B0            EQU  H'0004'
 
1188
DC3B1            EQU  H'0005'
 
1189
P3M0             EQU  H'0006'
 
1190
P3M1             EQU  H'0007'
 
1191
 
 
1192
CCP3Y            EQU  H'0004'
 
1193
CCP3X            EQU  H'0005'
 
1194
 
 
1195
 
 
1196
;----- CCP2CON Bits -----------------------------------------------------
 
1197
CCP2M0           EQU  H'0000'
 
1198
CCP2M1           EQU  H'0001'
 
1199
CCP2M2           EQU  H'0002'
 
1200
CCP2M3           EQU  H'0003'
 
1201
DC2B0            EQU  H'0004'
 
1202
DC2B1            EQU  H'0005'
 
1203
 
 
1204
 
 
1205
;----- ECCP2CON Bits -----------------------------------------------------
 
1206
CCP2M0           EQU  H'0000'
 
1207
CCP2M1           EQU  H'0001'
 
1208
CCP2M2           EQU  H'0002'
 
1209
CCP2M3           EQU  H'0003'
 
1210
DC2B0            EQU  H'0004'
 
1211
DC2B1            EQU  H'0005'
 
1212
P2M0             EQU  H'0006'
 
1213
P2M1             EQU  H'0007'
 
1214
 
 
1215
CCP2Y            EQU  H'0004'
 
1216
CCP2X            EQU  H'0005'
 
1217
 
 
1218
 
 
1219
;----- CCP1CON Bits -----------------------------------------------------
 
1220
CCP1M0           EQU  H'0000'
 
1221
CCP1M1           EQU  H'0001'
 
1222
CCP1M2           EQU  H'0002'
 
1223
CCP1M3           EQU  H'0003'
 
1224
DC1B0            EQU  H'0004'
 
1225
DC1B1            EQU  H'0005'
 
1226
 
 
1227
CCP1Y            EQU  H'0004'
 
1228
CCP1X            EQU  H'0005'
 
1229
 
 
1230
 
 
1231
;----- ECCP1CON Bits -----------------------------------------------------
 
1232
CCP1M0           EQU  H'0000'
 
1233
CCP1M1           EQU  H'0001'
 
1234
CCP1M2           EQU  H'0002'
 
1235
CCP1M3           EQU  H'0003'
 
1236
DC1B0            EQU  H'0004'
 
1237
DC1B1            EQU  H'0005'
 
1238
P1M0             EQU  H'0006'
 
1239
P1M1             EQU  H'0007'
 
1240
 
 
1241
CCP1Y            EQU  H'0004'
 
1242
CCP1X            EQU  H'0005'
 
1243
 
 
1244
 
 
1245
;----- ADCON2 Bits -----------------------------------------------------
 
1246
ADCS0            EQU  H'0000'
 
1247
ADCS1            EQU  H'0001'
 
1248
ADCS2            EQU  H'0002'
 
1249
ACQT0            EQU  H'0003'
 
1250
ACQT1            EQU  H'0004'
 
1251
ACQT2            EQU  H'0005'
 
1252
ADFM             EQU  H'0007'
 
1253
 
 
1254
 
 
1255
;----- ADCON1 Bits -----------------------------------------------------
 
1256
PCFG0            EQU  H'0000'
 
1257
PCFG1            EQU  H'0001'
 
1258
PCFG2            EQU  H'0002'
 
1259
PCFG3            EQU  H'0003'
 
1260
VCFG0            EQU  H'0004'
 
1261
VCFG1            EQU  H'0005'
 
1262
 
 
1263
 
 
1264
;----- ADCON0 Bits -----------------------------------------------------
 
1265
DONE             EQU  H'0001'
 
1266
 
 
1267
GO_DONE          EQU  H'0001'
 
1268
 
 
1269
ADON             EQU  H'0000'
 
1270
GO               EQU  H'0001'
 
1271
CHS0             EQU  H'0002'
 
1272
CHS1             EQU  H'0003'
 
1273
CHS2             EQU  H'0004'
 
1274
CHS3             EQU  H'0005'
 
1275
 
 
1276
NOT_DONE         EQU  H'0001'
 
1277
 
 
1278
 
 
1279
;----- SSP1CON2 Bits -----------------------------------------------------
 
1280
SEN              EQU  H'0000'
 
1281
RSEN             EQU  H'0001'
 
1282
PEN              EQU  H'0002'
 
1283
RCEN             EQU  H'0003'
 
1284
ACKEN            EQU  H'0004'
 
1285
ACKDT            EQU  H'0005'
 
1286
ACKSTAT          EQU  H'0006'
 
1287
GCEN             EQU  H'0007'
 
1288
 
 
1289
 
 
1290
;----- SSPCON2 Bits -----------------------------------------------------
 
1291
SEN              EQU  H'0000'
 
1292
RSEN             EQU  H'0001'
 
1293
PEN              EQU  H'0002'
 
1294
RCEN             EQU  H'0003'
 
1295
ACKEN            EQU  H'0004'
 
1296
ACKDT            EQU  H'0005'
 
1297
ACKSTAT          EQU  H'0006'
 
1298
GCEN             EQU  H'0007'
 
1299
 
 
1300
 
 
1301
;----- SSP1CON1 Bits -----------------------------------------------------
 
1302
SSPM0            EQU  H'0000'
 
1303
SSPM1            EQU  H'0001'
 
1304
SSPM2            EQU  H'0002'
 
1305
SSPM3            EQU  H'0003'
 
1306
CKP              EQU  H'0004'
 
1307
SSPEN            EQU  H'0005'
 
1308
SSPOV            EQU  H'0006'
 
1309
WCOL             EQU  H'0007'
 
1310
 
 
1311
 
 
1312
;----- SSPCON1 Bits -----------------------------------------------------
 
1313
SSPM0            EQU  H'0000'
 
1314
SSPM1            EQU  H'0001'
 
1315
SSPM2            EQU  H'0002'
 
1316
SSPM3            EQU  H'0003'
 
1317
CKP              EQU  H'0004'
 
1318
SSPEN            EQU  H'0005'
 
1319
SSPOV            EQU  H'0006'
 
1320
WCOL             EQU  H'0007'
 
1321
 
 
1322
 
 
1323
;----- SSP1STAT Bits -----------------------------------------------------
 
1324
BF               EQU  H'0000'
 
1325
UA               EQU  H'0001'
 
1326
R_W              EQU  H'0002'
 
1327
S                EQU  H'0003'
 
1328
P                EQU  H'0004'
 
1329
D_A              EQU  H'0005'
 
1330
CKE              EQU  H'0006'
 
1331
SMP              EQU  H'0007'
 
1332
 
 
1333
I2C_READ         EQU  H'0002'
 
1334
I2C_START        EQU  H'0003'
 
1335
I2C_STOP         EQU  H'0004'
 
1336
I2C_DAT          EQU  H'0005'
 
1337
 
 
1338
NOT_W            EQU  H'0002'
 
1339
NOT_A            EQU  H'0005'
 
1340
 
 
1341
NOT_WRITE        EQU  H'0002'
 
1342
NOT_ADDRESS      EQU  H'0005'
 
1343
 
 
1344
READ_WRITE       EQU  H'0002'
 
1345
DATA_ADDRESS     EQU  H'0005'
 
1346
 
 
1347
R                EQU  H'0002'
 
1348
D                EQU  H'0005'
 
1349
 
 
1350
 
 
1351
;----- SSPSTAT Bits -----------------------------------------------------
 
1352
BF               EQU  H'0000'
 
1353
UA               EQU  H'0001'
 
1354
R_W              EQU  H'0002'
 
1355
S                EQU  H'0003'
 
1356
P                EQU  H'0004'
 
1357
D_A              EQU  H'0005'
 
1358
CKE              EQU  H'0006'
 
1359
SMP              EQU  H'0007'
 
1360
 
 
1361
I2C_READ         EQU  H'0002'
 
1362
I2C_START        EQU  H'0003'
 
1363
I2C_STOP         EQU  H'0004'
 
1364
I2C_DAT          EQU  H'0005'
 
1365
 
 
1366
NOT_W            EQU  H'0002'
 
1367
NOT_A            EQU  H'0005'
 
1368
 
 
1369
NOT_WRITE        EQU  H'0002'
 
1370
NOT_ADDRESS      EQU  H'0005'
 
1371
 
 
1372
READ_WRITE       EQU  H'0002'
 
1373
DATA_ADDRESS     EQU  H'0005'
 
1374
 
 
1375
R                EQU  H'0002'
 
1376
D                EQU  H'0005'
 
1377
 
 
1378
 
 
1379
;----- T2CON Bits -----------------------------------------------------
 
1380
T2CKPS0          EQU  H'0000'
 
1381
T2CKPS1          EQU  H'0001'
 
1382
TMR2ON           EQU  H'0002'
 
1383
T2OUTPS0         EQU  H'0003'
 
1384
T2OUTPS1         EQU  H'0004'
 
1385
T2OUTPS2         EQU  H'0005'
 
1386
T2OUTPS3         EQU  H'0006'
 
1387
 
 
1388
 
 
1389
;----- T1CON Bits -----------------------------------------------------
 
1390
TMR1ON           EQU  H'0000'
 
1391
TMR1CS           EQU  H'0001'
 
1392
T1SYNC           EQU  H'0002'
 
1393
T1OSCEN          EQU  H'0003'
 
1394
T1CKPS0          EQU  H'0004'
 
1395
T1CKPS1          EQU  H'0005'
 
1396
T1RUN            EQU  H'0006'
 
1397
RD16             EQU  H'0007'
 
1398
 
 
1399
T1INSYNC         EQU  H'0002'
 
1400
 
 
1401
NOT_T1SYNC       EQU  H'0002'
 
1402
 
 
1403
 
 
1404
;----- RCON Bits -----------------------------------------------------
 
1405
NOT_BOR          EQU  H'0000'
 
1406
NOT_POR          EQU  H'0001'
 
1407
NOT_PD           EQU  H'0002'
 
1408
NOT_TO           EQU  H'0003'
 
1409
NOT_RI           EQU  H'0004'
 
1410
IPEN             EQU  H'0007'
 
1411
 
 
1412
BOR              EQU  H'0000'
 
1413
POR              EQU  H'0001'
 
1414
PD               EQU  H'0002'
 
1415
TO               EQU  H'0003'
 
1416
RI               EQU  H'0004'
 
1417
 
 
1418
 
 
1419
;----- WDTCON Bits -----------------------------------------------------
 
1420
SWDTE            EQU  H'0000'
 
1421
 
 
1422
SWDTEN           EQU  H'0000'
 
1423
 
 
1424
 
 
1425
;----- OSCCON Bits -----------------------------------------------------
 
1426
SCS0             EQU  H'0000'
 
1427
SCS1             EQU  H'0001'
 
1428
OSTS             EQU  H'0003'
 
1429
IDLEN            EQU  H'0007'
 
1430
 
 
1431
 
 
1432
;----- T0CON Bits -----------------------------------------------------
 
1433
T0PS0            EQU  H'0000'
 
1434
T0PS1            EQU  H'0001'
 
1435
T0PS2            EQU  H'0002'
 
1436
T0PS3            EQU  H'0003'
 
1437
T0SE             EQU  H'0004'
 
1438
T0CS             EQU  H'0005'
 
1439
T08BIT           EQU  H'0006'
 
1440
TMR0ON           EQU  H'0007'
 
1441
 
 
1442
 
 
1443
;----- STATUS Bits -----------------------------------------------------
 
1444
C                EQU  H'0000'
 
1445
DC               EQU  H'0001'
 
1446
Z                EQU  H'0002'
 
1447
OV               EQU  H'0003'
 
1448
N                EQU  H'0004'
 
1449
 
 
1450
 
 
1451
;----- INTCON3 Bits -----------------------------------------------------
 
1452
INT1F            EQU  H'0000'
 
1453
INT2F            EQU  H'0001'
 
1454
INT3F            EQU  H'0002'
 
1455
INT1E            EQU  H'0003'
 
1456
INT2E            EQU  H'0004'
 
1457
INT3E            EQU  H'0005'
 
1458
INT1P            EQU  H'0006'
 
1459
INT2P            EQU  H'0007'
 
1460
 
 
1461
INT1IF           EQU  H'0000'
 
1462
INT2IF           EQU  H'0001'
 
1463
INT3IF           EQU  H'0002'
 
1464
INT1IE           EQU  H'0003'
 
1465
INT2IE           EQU  H'0004'
 
1466
INT3IE           EQU  H'0005'
 
1467
INT1IP           EQU  H'0006'
 
1468
INT2IP           EQU  H'0007'
 
1469
 
 
1470
 
 
1471
;----- INTCON2 Bits -----------------------------------------------------
 
1472
RBIP             EQU  H'0000'
 
1473
INT3P            EQU  H'0001'
 
1474
T0IP             EQU  H'0002'
 
1475
INTEDG3          EQU  H'0003'
 
1476
INTEDG2          EQU  H'0004'
 
1477
INTEDG1          EQU  H'0005'
 
1478
INTEDG0          EQU  H'0006'
 
1479
NOT_RBPU         EQU  H'0007'
 
1480
 
 
1481
TMR0IP           EQU  H'0002'
 
1482
RBPU             EQU  H'0007'
 
1483
 
 
1484
 
 
1485
;----- INTCON Bits -----------------------------------------------------
 
1486
RBIF             EQU  H'0000'
 
1487
INT0F            EQU  H'0001'
 
1488
T0IF             EQU  H'0002'
 
1489
RBIE             EQU  H'0003'
 
1490
INT0E            EQU  H'0004'
 
1491
T0IE             EQU  H'0005'
 
1492
PEIE             EQU  H'0006'
 
1493
GIE              EQU  H'0007'
 
1494
 
 
1495
INT0IF           EQU  H'0001'
 
1496
TMR0IF           EQU  H'0002'
 
1497
INT0IE           EQU  H'0004'
 
1498
TMR0IE           EQU  H'0005'
 
1499
GIEL             EQU  H'0006'
 
1500
GIEH             EQU  H'0007'
 
1501
 
 
1502
 
 
1503
;----- STKPTR Bits -----------------------------------------------------
 
1504
STKPTR0          EQU  H'0000'
 
1505
STKPTR1          EQU  H'0001'
 
1506
STKPTR2          EQU  H'0002'
 
1507
STKPTR3          EQU  H'0003'
 
1508
STKPTR4          EQU  H'0004'
 
1509
STKUNF           EQU  H'0006'
 
1510
STKOVF           EQU  H'0007'
 
1511
 
 
1512
 
 
1513
 
 
1514
;==========================================================================
 
1515
;
 
1516
;       RAM Definitions
 
1517
;
 
1518
;==========================================================================
 
1519
       __MAXRAM  H'0FFF'
 
1520
       __BADRAM  H'0800'-H'0F5F'
 
1521
       __BADRAM  H'0F7A'-H'0F7B'
 
1522
       __BADRAM  H'0FA6'-H'0FAA'
 
1523
       __BADRAM  H'0FD2'
 
1524
       __BADRAM  H'0FD4'
 
1525
 
 
1526
;==========================================================================
 
1527
;
 
1528
;   IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
 
1529
;              superseded by the CONFIG directive.  The following settings
 
1530
;              are available for this device.
 
1531
;
 
1532
;   Background Debugger Enable:
 
1533
;     DEBUG = ON           Enabled
 
1534
;     DEBUG = OFF          Disabled
 
1535
;
 
1536
;   Extended Instruction Set Enable:
 
1537
;     XINST = OFF          Disabled
 
1538
;     XINST = ON           Enabled
 
1539
;
 
1540
;   Stack Overflow Reset:
 
1541
;     STVR = OFF           Disabled
 
1542
;     STVR = ON            Enabled
 
1543
;
 
1544
;   Low Voltage ICSP:
 
1545
;     LVP = OFF            Disabled
 
1546
;     LVP = ON             Enabled
 
1547
;
 
1548
;   Watchdog Timer:
 
1549
;     WDT = OFF            Disabled
 
1550
;     WDT = ON             Enabled
 
1551
;
 
1552
;   Configuration Word Signature:
 
1553
;     SIGN = CLR           Clear
 
1554
;     SIGN = SET           Set
 
1555
;
 
1556
;   Code Protection:
 
1557
;     CP0 = ON             Enabled
 
1558
;     CP0 = OFF            Disabled
 
1559
;
 
1560
;   Fail Safe Clock Monitor:
 
1561
;     FCMEM = OFF          Disabled
 
1562
;     FCMEM = ON           Enabled
 
1563
;
 
1564
;   Internal/External Switch Over:
 
1565
;     IESO = OFF           Disabled
 
1566
;     IESO = ON            Enabled
 
1567
;
 
1568
;   Oscillator Selection bits:
 
1569
;     FOSC = HS            HS oscillator
 
1570
;     FOSC = HSPLL         HS oscillator, Software Controlled PLL
 
1571
;     FOSC = EC            External Clock
 
1572
;     FOSC = ECPLL         External Clock, Software Controlled PLL
 
1573
;
 
1574
;   Watchdog Postscaler:
 
1575
;     WDTPS = 1            1:1
 
1576
;     WDTPS = 2            1:2
 
1577
;     WDTPS = 4            1:4
 
1578
;     WDTPS = 8            1:8
 
1579
;     WDTPS = 16           1:16
 
1580
;     WDTPS = 32           1:32
 
1581
;     WDTPS = 64           1:64
 
1582
;     WDTPS = 128          1:128
 
1583
;     WDTPS = 256          1:256
 
1584
;     WDTPS = 512          1:512
 
1585
;     WDTPS = 1024         1:1024
 
1586
;     WDTPS = 2048         1:2048
 
1587
;     WDTPS = 4096         1:4096
 
1588
;     WDTPS = 8192         1:8192
 
1589
;     WDTPS = 16384        1:16384
 
1590
;     WDTPS = 32768        1:32768
 
1591
;
 
1592
;   External Bus Data Wait:
 
1593
;     WAIT = ON            Enabled
 
1594
;     WAIT = OFF           Disabled
 
1595
;
 
1596
;   Data Bus Width Select:
 
1597
;     BW = 8               8-bit external bus
 
1598
;     BW = 16              16-bit external bus
 
1599
;
 
1600
;   Processor Mode Selection:
 
1601
;     MODE = MM            Microcontroller Mode - External bus disabled
 
1602
;     MODE = XM12          Extended Microcontroller Mode - 12-bit address mode
 
1603
;     MODE = XM16          Extended Microcontroller Mode - 16-bit address mode
 
1604
;     MODE = XM20          Extended Microcontroller Mode - 20-bit address mode
 
1605
;
 
1606
;   External Address Bus Shift Enable:
 
1607
;     EASHIFT = OFF        External bus reflects PC value
 
1608
;     EASHIFT = ON         External bus starts at 000000h
 
1609
;
 
1610
;   ECCP Mux:
 
1611
;     ECCPMUX = OFF        Disabled
 
1612
;     ECCPMUX = ON         Enabled
 
1613
;
 
1614
;   CCP2 Mux:
 
1615
;     CCP2MUX = OFF        Disabled
 
1616
;     CCP2MUX = ON         Enabled
 
1617
;
 
1618
;==========================================================================
 
1619
;==========================================================================
 
1620
;
 
1621
;       Configuration Bits
 
1622
;
 
1623
;   NAME            Address
 
1624
;   CONFIG1L        300000h
 
1625
;   CONFIG1H        300001h
 
1626
;   CONFIG2L        300002h
 
1627
;   CONFIG2H        300003h
 
1628
;   CONFIG3L        300004h
 
1629
;   CONFIG3H        300005h
 
1630
;
 
1631
;==========================================================================
 
1632
 
 
1633
; The following is an assignment of address values for all of the
 
1634
; configuration registers for the purpose of table reads
 
1635
_CONFIG1L        EQU  H'300000'
 
1636
_CONFIG1H        EQU  H'300001'
 
1637
_CONFIG2L        EQU  H'300002'
 
1638
_CONFIG2H        EQU  H'300003'
 
1639
_CONFIG3L        EQU  H'300004'
 
1640
_CONFIG3H        EQU  H'300005'
 
1641
 
 
1642
;----- CONFIG1L Options --------------------------------------------------
 
1643
_DEBUG_ON_1L         EQU  H'7F'    ; Enabled
 
1644
_DEBUG_OFF_1L        EQU  H'FF'    ; Disabled
 
1645
 
 
1646
_XINST_OFF_1L        EQU  H'BF'    ; Disabled
 
1647
_XINST_ON_1L         EQU  H'FF'    ; Enabled
 
1648
 
 
1649
_STVR_OFF_1L         EQU  H'DF'    ; Disabled
 
1650
_STVR_ON_1L          EQU  H'FF'    ; Enabled
 
1651
 
 
1652
_LVP_OFF_1L          EQU  H'EF'    ; Disabled
 
1653
_LVP_ON_1L           EQU  H'FF'    ; Enabled
 
1654
 
 
1655
_WDT_OFF_1L          EQU  H'FE'    ; Disabled
 
1656
_WDT_ON_1L           EQU  H'FF'    ; Enabled
 
1657
 
 
1658
;----- CONFIG1H Options --------------------------------------------------
 
1659
_SIGN_CLR_1H         EQU  H'F7'    ; Clear
 
1660
_SIGN_SET_1H         EQU  H'FF'    ; Set
 
1661
 
 
1662
_CP0_ON_1H           EQU  H'FB'    ; Enabled
 
1663
_CP0_OFF_1H          EQU  H'FF'    ; Disabled
 
1664
 
 
1665
;----- CONFIG2L Options --------------------------------------------------
 
1666
_FCMEM_OFF_2L        EQU  H'BF'    ; Disabled
 
1667
_FCMEM_ON_2L         EQU  H'FF'    ; Enabled
 
1668
 
 
1669
_IESO_OFF_2L         EQU  H'7F'    ; Disabled
 
1670
_IESO_ON_2L          EQU  H'FF'    ; Enabled
 
1671
 
 
1672
_FOSC_HS_2L          EQU  H'FC'    ; HS oscillator
 
1673
_FOSC_HSPLL_2L       EQU  H'FD'    ; HS oscillator, Software Controlled PLL
 
1674
_FOSC_EC_2L          EQU  H'FE'    ; External Clock
 
1675
_FOSC_ECPLL_2L       EQU  H'FF'    ; External Clock, Software Controlled PLL
 
1676
 
 
1677
;----- CONFIG2H Options --------------------------------------------------
 
1678
_WDTPS_1_2H          EQU  H'E1'    ; 1:1
 
1679
_WDTPS_2_2H          EQU  H'E3'    ; 1:2
 
1680
_WDTPS_4_2H          EQU  H'E5'    ; 1:4
 
1681
_WDTPS_8_2H          EQU  H'E7'    ; 1:8
 
1682
_WDTPS_16_2H         EQU  H'E9'    ; 1:16
 
1683
_WDTPS_32_2H         EQU  H'EB'    ; 1:32
 
1684
_WDTPS_64_2H         EQU  H'ED'    ; 1:64
 
1685
_WDTPS_128_2H        EQU  H'EF'    ; 1:128
 
1686
_WDTPS_256_2H        EQU  H'F1'    ; 1:256
 
1687
_WDTPS_512_2H        EQU  H'F3'    ; 1:512
 
1688
_WDTPS_1024_2H       EQU  H'F5'    ; 1:1024
 
1689
_WDTPS_2048_2H       EQU  H'F7'    ; 1:2048
 
1690
_WDTPS_4096_2H       EQU  H'F9'    ; 1:4096
 
1691
_WDTPS_8192_2H       EQU  H'FB'    ; 1:8192
 
1692
_WDTPS_16384_2H      EQU  H'FD'    ; 1:16384
 
1693
_WDTPS_32768_2H      EQU  H'FF'    ; 1:32768
 
1694
 
 
1695
;----- CONFIG3L Options --------------------------------------------------
 
1696
_WAIT_ON_3L          EQU  H'7F'    ; Enabled
 
1697
_WAIT_OFF_3L         EQU  H'FF'    ; Disabled
 
1698
 
 
1699
_BW_8_3L             EQU  H'BF'    ; 8-bit external bus
 
1700
_BW_16_3L            EQU  H'FF'    ; 16-bit external bus
 
1701
 
 
1702
_MODE_MM_3L          EQU  H'CF'    ; Microcontroller Mode - External bus disabled
 
1703
_MODE_XM12_3L        EQU  H'DF'    ; Extended Microcontroller Mode - 12-bit address mode
 
1704
_MODE_XM16_3L        EQU  H'EF'    ; Extended Microcontroller Mode - 16-bit address mode
 
1705
_MODE_XM20_3L        EQU  H'FF'    ; Extended Microcontroller Mode - 20-bit address mode
 
1706
 
 
1707
_EASHIFT_OFF_3L      EQU  H'F7'    ; External bus reflects PC value
 
1708
_EASHIFT_ON_3L       EQU  H'FF'    ; External bus starts at 000000h
 
1709
 
 
1710
;----- CONFIG3H Options --------------------------------------------------
 
1711
_ECCPMUX_OFF_3H      EQU  H'FD'    ; Disabled
 
1712
_ECCPMUX_ON_3H       EQU  H'FF'    ; Enabled
 
1713
 
 
1714
_CCP2MUX_OFF_3H      EQU  H'FE'    ; Disabled
 
1715
_CCP2MUX_ON_3H       EQU  H'FF'    ; Enabled
 
1716
 
 
1717
 
 
1718
_DEVID1          EQU  H'3FFFFE'
 
1719
_DEVID2          EQU  H'3FFFFF'
 
1720
 
 
1721
 
 
1722
        LIST