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

« back to all changes in this revision

Viewing changes to header/p18lf45j11.inc

  • Committer: Bazaar Package Importer
  • Author(s): Taisuke Yamada
  • Date: 2009-03-16 08:39:23 UTC
  • mfrom: (1.1.8 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090316083923-jr9k3f8bchev19s0
Tags: 0.13.7-1
* New upstream release.
* New maintainer (Closes: #504473)
* Bumped Standards-Version to 3.8.1.
* General updates in debian/* to make it lintian clean.
* Removed PS/PDF files from gputils due to duplicate with gputils-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
        LIST
 
2
 
 
3
;==========================================================================
 
4
;  MPASM PIC18LF45J11 processor include
 
5
 
6
;  (c) Copyright 1999-2009 Microchip Technology, All rights reserved
 
7
;==========================================================================
 
8
 
 
9
        NOLIST
 
10
 
 
11
;==========================================================================
 
12
;  This header file defines configurations, registers, and other useful
 
13
;  bits of information for the PIC18LF45J11 microcontroller.  These names
 
14
;  are taken to match the data sheets as closely as possible.
 
15
;
 
16
;  Note that the processor must be selected before this file is included.
 
17
;  The processor may be selected the following ways:
 
18
;
 
19
;       1. Command line switch:
 
20
;               C:\MPASM MYFILE.ASM /PIC18LF45J11
 
21
;       2. LIST directive in the source file
 
22
;               LIST   P=PIC18LF45J11
 
23
;       3. Processor Type entry in the MPASM full-screen interface
 
24
;       4. Setting the processor in the MPLAB Project Dialog
 
25
;==========================================================================
 
26
 
 
27
;==========================================================================
 
28
;
 
29
;       Verify Processor
 
30
;
 
31
;==========================================================================
 
32
        IFNDEF __18LF45J11
 
33
           MESSG "Processor-header file mismatch.  Verify selected processor."
 
34
        ENDIF
 
35
 
 
36
;==========================================================================
 
37
;       18xxxx Family        EQUates
 
38
;==========================================================================
 
39
FSR0            EQU 0
 
40
FSR1            EQU 1
 
41
FSR2            EQU 2
 
42
 
 
43
FAST            EQU 1
 
44
 
 
45
W               EQU 0
 
46
A               EQU 0
 
47
ACCESS          EQU 0
 
48
BANKED          EQU 1
 
49
;==========================================================================
 
50
 
 
51
;==========================================================================
 
52
;       16Cxxx/17Cxxx Substitutions
 
53
;==========================================================================
 
54
  #define DDRA  TRISA      ; PIC17Cxxx SFR substitution
 
55
  #define DDRB  TRISB      ; PIC17Cxxx SFR substitution
 
56
  #define DDRC  TRISC      ; PIC17Cxxx SFR substitution
 
57
  #define DDRD  TRISD      ; PIC17Cxxx SFR substitution
 
58
  #define DDRE  TRISE      ; PIC17Cxxx SFR substitution
 
59
 
 
60
;==========================================================================
 
61
;
 
62
;       Register Definitions
 
63
;
 
64
;==========================================================================
 
65
 
 
66
;----- Register Files -----------------------------------------------------
 
67
RPOR0            EQU  H'0EC6'
 
68
RPOR1            EQU  H'0EC7'
 
69
RPOR2            EQU  H'0EC8'
 
70
RPOR3            EQU  H'0EC9'
 
71
RPOR4            EQU  H'0ECA'
 
72
RPOR5            EQU  H'0ECB'
 
73
RPOR6            EQU  H'0ECC'
 
74
RPOR7            EQU  H'0ECD'
 
75
RPOR8            EQU  H'0ECE'
 
76
RPOR9            EQU  H'0ECF'
 
77
RPOR10           EQU  H'0ED0'
 
78
RPOR11           EQU  H'0ED1'
 
79
RPOR12           EQU  H'0ED2'
 
80
RPOR13           EQU  H'0ED3'
 
81
RPOR14           EQU  H'0ED4'
 
82
RPOR15           EQU  H'0ED5'
 
83
RPOR16           EQU  H'0ED6'
 
84
RPOR17           EQU  H'0ED7'
 
85
RPOR18           EQU  H'0ED8'
 
86
RPOR19           EQU  H'0ED9'
 
87
RPOR20           EQU  H'0EDA'
 
88
RPOR21           EQU  H'0EDB'
 
89
RPOR22           EQU  H'0EDC'
 
90
RPOR23           EQU  H'0EDD'
 
91
RPOR24           EQU  H'0EDE'
 
92
RPINR1           EQU  H'0EE7'
 
93
RPINR2           EQU  H'0EE8'
 
94
RPINR3           EQU  H'0EE9'
 
95
RPINR4           EQU  H'0EEA'
 
96
RPINR6           EQU  H'0EEC'
 
97
RPINR7           EQU  H'0EED'
 
98
RPINR8           EQU  H'0EEE'
 
99
RPINR12          EQU  H'0EF2'
 
100
RPINR13          EQU  H'0EF3'
 
101
RPINR16          EQU  H'0EF6'
 
102
RPINR17          EQU  H'0EF7'
 
103
RPINR21          EQU  H'0EFB'
 
104
RPINR22          EQU  H'0EFC'
 
105
RPINR23          EQU  H'0EFD'
 
106
RPINR24          EQU  H'0EFE'
 
107
PPSCON           EQU  H'0EFF'
 
108
PADCFG1          EQU  H'0F3C'
 
109
REFOCON          EQU  H'0F3D'
 
110
RTCCAL           EQU  H'0F3E'
 
111
RTCCFG           EQU  H'0F3F'
 
112
ODCON3           EQU  H'0F40'
 
113
ODCON2           EQU  H'0F41'
 
114
ODCON1           EQU  H'0F42'
 
115
ANCON0           EQU  H'0F48'
 
116
ANCON1           EQU  H'0F49'
 
117
DSWAKEL          EQU  H'0F4A'
 
118
DSWAKEH          EQU  H'0F4B'
 
119
DSCONL           EQU  H'0F4C'
 
120
DSCONH           EQU  H'0F4D'
 
121
DSGPR0           EQU  H'0F4E'
 
122
DSGPR1           EQU  H'0F4F'
 
123
TCLKCON          EQU  H'0F52'
 
124
CVRCON           EQU  H'0F53'
 
125
PMSTATL          EQU  H'0F54'
 
126
PMSTATH          EQU  H'0F55'
 
127
PMEL             EQU  H'0F56'
 
128
PMEH             EQU  H'0F57'
 
129
PMDIN2L          EQU  H'0F58'
 
130
PMDIN2H          EQU  H'0F59'
 
131
PMDOUT2L         EQU  H'0F5A'
 
132
PMDOUT2H         EQU  H'0F5B'
 
133
PMMODEL          EQU  H'0F5C'
 
134
PMMODEH          EQU  H'0F5D'
 
135
PMCONL           EQU  H'0F5E'
 
136
PMCONH           EQU  H'0F5F'
 
137
DMABCH           EQU  H'0F66'
 
138
DMABCL           EQU  H'0F67'
 
139
RXADDRH          EQU  H'0F68'
 
140
RXADDRL          EQU  H'0F69'
 
141
TXADDRH          EQU  H'0F6A'
 
142
TXADDRL          EQU  H'0F6B'
 
143
PMDIN1L          EQU  H'0F6C'
 
144
PMDIN1H          EQU  H'0F6D'
 
145
PMADDRL          EQU  H'0F6E'
 
146
PMDOUT1L         EQU  H'0F6E'
 
147
PMADDRH          EQU  H'0F6F'
 
148
PMDOUT1H         EQU  H'0F6F'
 
149
CMSTAT           EQU  H'0F70'
 
150
CMSTATUS         EQU  H'0F70'
 
151
SSP2CON2         EQU  H'0F71'
 
152
SSP2CON1         EQU  H'0F72'
 
153
SSP2STAT         EQU  H'0F73'
 
154
SSP2ADD          EQU  H'0F74'
 
155
SSP2BUF          EQU  H'0F75'
 
156
T4CON            EQU  H'0F76'
 
157
PR4              EQU  H'0F77'
 
158
TMR4             EQU  H'0F78'
 
159
T3CON            EQU  H'0F79'
 
160
TMR3L            EQU  H'0F7A'
 
161
TMR3H            EQU  H'0F7B'
 
162
BAUDCON2         EQU  H'0F7C'
 
163
SPBRGH2          EQU  H'0F7D'
 
164
BAUDCON          EQU  H'0F7E'
 
165
BAUDCON1         EQU  H'0F7E'
 
166
BAUDCTL          EQU  H'0F7E'
 
167
SPBRGH           EQU  H'0F7F'
 
168
SPBRGH1          EQU  H'0F7F'
 
169
PORTA            EQU  H'0F80'
 
170
PORTB            EQU  H'0F81'
 
171
PORTC            EQU  H'0F82'
 
172
PORTD            EQU  H'0F83'
 
173
PORTE            EQU  H'0F84'
 
174
HLVDCON          EQU  H'0F85'
 
175
DMACON2          EQU  H'0F86'
 
176
DMACON1          EQU  H'0F88'
 
177
LATA             EQU  H'0F89'
 
178
LATB             EQU  H'0F8A'
 
179
LATC             EQU  H'0F8B'
 
180
LATD             EQU  H'0F8C'
 
181
LATE             EQU  H'0F8D'
 
182
ALRMVALL         EQU  H'0F8E'
 
183
ALRMVALH         EQU  H'0F8F'
 
184
ALRMRPT          EQU  H'0F90'
 
185
ALRMCFG          EQU  H'0F91'
 
186
TRISA            EQU  H'0F92'
 
187
TRISB            EQU  H'0F93'
 
188
TRISC            EQU  H'0F94'
 
189
TRISD            EQU  H'0F95'
 
190
TRISE            EQU  H'0F96'
 
191
T3GCON           EQU  H'0F97'
 
192
RTCVALL          EQU  H'0F98'
 
193
RTCVALH          EQU  H'0F99'
 
194
T1GCON           EQU  H'0F9A'
 
195
OSCTUNE          EQU  H'0F9B'
 
196
RCSTA2           EQU  H'0F9C'
 
197
PIE1             EQU  H'0F9D'
 
198
PIR1             EQU  H'0F9E'
 
199
IPR1             EQU  H'0F9F'
 
200
PIE2             EQU  H'0FA0'
 
201
PIR2             EQU  H'0FA1'
 
202
IPR2             EQU  H'0FA2'
 
203
PIE3             EQU  H'0FA3'
 
204
PIR3             EQU  H'0FA4'
 
205
IPR3             EQU  H'0FA5'
 
206
EECON1           EQU  H'0FA6'
 
207
EECON2           EQU  H'0FA7'
 
208
TXSTA2           EQU  H'0FA8'
 
209
TXREG2           EQU  H'0FA9'
 
210
RCREG2           EQU  H'0FAA'
 
211
SPBRG2           EQU  H'0FAB'
 
212
RCSTA            EQU  H'0FAC'
 
213
RCSTA1           EQU  H'0FAC'
 
214
TXSTA            EQU  H'0FAD'
 
215
TXSTA1           EQU  H'0FAD'
 
216
TXREG            EQU  H'0FAE'
 
217
TXREG1           EQU  H'0FAE'
 
218
RCREG            EQU  H'0FAF'
 
219
RCREG1           EQU  H'0FAF'
 
220
SPBRG            EQU  H'0FB0'
 
221
SPBRG1           EQU  H'0FB0'
 
222
CTMUICON         EQU  H'0FB1'
 
223
CTMUCONL         EQU  H'0FB2'
 
224
CTMUCONH         EQU  H'0FB3'
 
225
CCP2CON          EQU  H'0FB4'
 
226
ECCP2CON         EQU  H'0FB4'
 
227
CCPR2            EQU  H'0FB5'
 
228
CCPR2L           EQU  H'0FB5'
 
229
CCPR2H           EQU  H'0FB6'
 
230
ECCP2DEL         EQU  H'0FB7'
 
231
PWM2CON          EQU  H'0FB7'
 
232
ECCP2AS          EQU  H'0FB8'
 
233
PSTR2CON         EQU  H'0FB9'
 
234
CCP1CON          EQU  H'0FBA'
 
235
ECCP1CON         EQU  H'0FBA'
 
236
CCPR1            EQU  H'0FBB'
 
237
CCPR1L           EQU  H'0FBB'
 
238
CCPR1H           EQU  H'0FBC'
 
239
ECCP1DEL         EQU  H'0FBD'
 
240
PWM1CON          EQU  H'0FBD'
 
241
ECCP1AS          EQU  H'0FBE'
 
242
PSTR1CON         EQU  H'0FBF'
 
243
WDTCON           EQU  H'0FC0'
 
244
ADCON1           EQU  H'0FC1'
 
245
ADCON0           EQU  H'0FC2'
 
246
ADRES            EQU  H'0FC3'
 
247
ADRESL           EQU  H'0FC3'
 
248
ADRESH           EQU  H'0FC4'
 
249
SSP1CON2         EQU  H'0FC5'
 
250
SSPCON2          EQU  H'0FC5'
 
251
SSP1CON1         EQU  H'0FC6'
 
252
SSPCON1          EQU  H'0FC6'
 
253
SSP1STAT         EQU  H'0FC7'
 
254
SSPSTAT          EQU  H'0FC7'
 
255
SSP1ADD          EQU  H'0FC8'
 
256
SSPADD           EQU  H'0FC8'
 
257
SSP1BUF          EQU  H'0FC9'
 
258
SSPBUF           EQU  H'0FC9'
 
259
T2CON            EQU  H'0FCA'
 
260
PR2              EQU  H'0FCB'
 
261
TMR2             EQU  H'0FCC'
 
262
T1CON            EQU  H'0FCD'
 
263
TMR1L            EQU  H'0FCE'
 
264
TMR1H            EQU  H'0FCF'
 
265
RCON             EQU  H'0FD0'
 
266
CM2CON           EQU  H'0FD1'
 
267
CM2CON1          EQU  H'0FD1'
 
268
CM1CON           EQU  H'0FD2'
 
269
CM1CON1          EQU  H'0FD2'
 
270
OSCCON           EQU  H'0FD3'
 
271
T0CON            EQU  H'0FD5'
 
272
TMR0L            EQU  H'0FD6'
 
273
TMR0H            EQU  H'0FD7'
 
274
STATUS           EQU  H'0FD8'
 
275
FSR2L            EQU  H'0FD9'
 
276
FSR2H            EQU  H'0FDA'
 
277
PLUSW2           EQU  H'0FDB'
 
278
PREINC2          EQU  H'0FDC'
 
279
POSTDEC2         EQU  H'0FDD'
 
280
POSTINC2         EQU  H'0FDE'
 
281
INDF2            EQU  H'0FDF'
 
282
BSR              EQU  H'0FE0'
 
283
FSR1L            EQU  H'0FE1'
 
284
FSR1H            EQU  H'0FE2'
 
285
PLUSW1           EQU  H'0FE3'
 
286
PREINC1          EQU  H'0FE4'
 
287
POSTDEC1         EQU  H'0FE5'
 
288
POSTINC1         EQU  H'0FE6'
 
289
INDF1            EQU  H'0FE7'
 
290
WREG             EQU  H'0FE8'
 
291
FSR0L            EQU  H'0FE9'
 
292
FSR0H            EQU  H'0FEA'
 
293
PLUSW0           EQU  H'0FEB'
 
294
PREINC0          EQU  H'0FEC'
 
295
POSTDEC0         EQU  H'0FED'
 
296
POSTINC0         EQU  H'0FEE'
 
297
INDF0            EQU  H'0FEF'
 
298
INTCON3          EQU  H'0FF0'
 
299
INTCON2          EQU  H'0FF1'
 
300
INTCON           EQU  H'0FF2'
 
301
PROD             EQU  H'0FF3'
 
302
PRODL            EQU  H'0FF3'
 
303
PRODH            EQU  H'0FF4'
 
304
TABLAT           EQU  H'0FF5'
 
305
TBLPTR           EQU  H'0FF6'
 
306
TBLPTRL          EQU  H'0FF6'
 
307
TBLPTRH          EQU  H'0FF7'
 
308
TBLPTRU          EQU  H'0FF8'
 
309
PC               EQU  H'0FF9'
 
310
PCL              EQU  H'0FF9'
 
311
PCLATH           EQU  H'0FFA'
 
312
PCLATU           EQU  H'0FFB'
 
313
STKPTR           EQU  H'0FFC'
 
314
TOS              EQU  H'0FFD'
 
315
TOSL             EQU  H'0FFD'
 
316
TOSH             EQU  H'0FFE'
 
317
TOSU             EQU  H'0FFF'
 
318
 
 
319
;----- PPSCON Bits -----------------------------------------------------
 
320
IOLOCK           EQU  H'0000'
 
321
 
 
322
 
 
323
;----- PADCFG1 Bits -----------------------------------------------------
 
324
PMPTTL           EQU  H'0000'
 
325
RTSECSEL0        EQU  H'0001'
 
326
RTSECSEL1        EQU  H'0002'
 
327
 
 
328
 
 
329
;----- REFOCON Bits -----------------------------------------------------
 
330
ROSEL            EQU  H'0004'
 
331
ROSSLP           EQU  H'0005'
 
332
ROON             EQU  H'0007'
 
333
 
 
334
RODIV0           EQU  H'0000'
 
335
RODIV1           EQU  H'0001'
 
336
RODIV2           EQU  H'0002'
 
337
RODIV3           EQU  H'0003'
 
338
 
 
339
 
 
340
;----- RTCCAL Bits -----------------------------------------------------
 
341
CAL0             EQU  H'0000'
 
342
CAL1             EQU  H'0001'
 
343
CAL2             EQU  H'0002'
 
344
CAL3             EQU  H'0003'
 
345
CAL4             EQU  H'0004'
 
346
CAL5             EQU  H'0005'
 
347
CAL6             EQU  H'0006'
 
348
CAL7             EQU  H'0007'
 
349
 
 
350
 
 
351
;----- RTCCFG Bits -----------------------------------------------------
 
352
RTCPTR0          EQU  H'0000'
 
353
RTCPTR1          EQU  H'0001'
 
354
RTCOE            EQU  H'0002'
 
355
HALFSEC          EQU  H'0003'
 
356
RTCSYNC          EQU  H'0004'
 
357
RTCWREN          EQU  H'0005'
 
358
RTCEN            EQU  H'0007'
 
359
 
 
360
 
 
361
;----- ODCON3 Bits -----------------------------------------------------
 
362
SPI1OD           EQU  H'0000'
 
363
SPI2OD           EQU  H'0001'
 
364
 
 
365
 
 
366
;----- ODCON2 Bits -----------------------------------------------------
 
367
U1OD             EQU  H'0000'
 
368
U2OD             EQU  H'0001'
 
369
 
 
370
 
 
371
;----- ODCON1 Bits -----------------------------------------------------
 
372
ECCP1OD          EQU  H'0000'
 
373
ECCP2OD          EQU  H'0001'
 
374
 
 
375
 
 
376
;----- ANCON0 Bits -----------------------------------------------------
 
377
PCFG0            EQU  H'0000'
 
378
PCFG1            EQU  H'0001'
 
379
PCFG2            EQU  H'0002'
 
380
PCFG3            EQU  H'0003'
 
381
PCFG4            EQU  H'0004'
 
382
PCFG5            EQU  H'0005'
 
383
PCFG6            EQU  H'0006'
 
384
PCFG7            EQU  H'0007'
 
385
 
 
386
 
 
387
;----- ANCON1 Bits -----------------------------------------------------
 
388
PCFG8            EQU  H'0000'
 
389
PCFG9            EQU  H'0001'
 
390
PCFG10           EQU  H'0002'
 
391
PCFG11           EQU  H'0003'
 
392
PCFG12           EQU  H'0004'
 
393
VBG2EN           EQU  H'0006'
 
394
VBGEN            EQU  H'0007'
 
395
 
 
396
 
 
397
;----- DSWAKEL Bits -----------------------------------------------------
 
398
DSPOR            EQU  H'0000'
 
399
DSMCLR           EQU  H'0002'
 
400
DSRTC            EQU  H'0003'
 
401
DSWDT            EQU  H'0004'
 
402
DSULP            EQU  H'0005'
 
403
DSFLT            EQU  H'0007'
 
404
 
 
405
 
 
406
;----- DSWAKEH Bits -----------------------------------------------------
 
407
DSINT0           EQU  H'0000'
 
408
 
 
409
 
 
410
;----- DSCONL Bits -----------------------------------------------------
 
411
RELEASE          EQU  H'0000'
 
412
DSBOR            EQU  H'0001'
 
413
ULPWDIS          EQU  H'0002'
 
414
 
 
415
 
 
416
;----- DSCONH Bits -----------------------------------------------------
 
417
RTCWDIS          EQU  H'0000'
 
418
DSULPEN          EQU  H'0001'
 
419
DSEN             EQU  H'0007'
 
420
 
 
421
 
 
422
;----- TCLKCON Bits -----------------------------------------------------
 
423
T3CCP1           EQU  H'0000'
 
424
T3CCP2           EQU  H'0001'
 
425
T1RUN            EQU  H'0004'
 
426
 
 
427
 
 
428
;----- CVRCON Bits -----------------------------------------------------
 
429
CVRSS            EQU  H'0004'
 
430
CVRR             EQU  H'0005'
 
431
CVROE            EQU  H'0006'
 
432
CVREN            EQU  H'0007'
 
433
 
 
434
CVR0             EQU  H'0000'
 
435
CVR1             EQU  H'0001'
 
436
CVR2             EQU  H'0002'
 
437
CVR3             EQU  H'0003'
 
438
 
 
439
 
 
440
;----- PMSTATL Bits -----------------------------------------------------
 
441
OB0E             EQU  H'0000'
 
442
OB1E             EQU  H'0001'
 
443
OB2E             EQU  H'0002'
 
444
OB3E             EQU  H'0003'
 
445
OBUF             EQU  H'0006'
 
446
OBE              EQU  H'0007'
 
447
 
 
448
 
 
449
;----- PMSTATH Bits -----------------------------------------------------
 
450
IB0F             EQU  H'0000'
 
451
IB1F             EQU  H'0001'
 
452
IB2F             EQU  H'0002'
 
453
IB3F             EQU  H'0003'
 
454
IBOV             EQU  H'0006'
 
455
IBF              EQU  H'0007'
 
456
 
 
457
 
 
458
;----- PMEL Bits -----------------------------------------------------
 
459
PTEN0            EQU  H'0000'
 
460
PTEN1            EQU  H'0001'
 
461
PTEN2            EQU  H'0002'
 
462
PTEN3            EQU  H'0003'
 
463
PTEN4            EQU  H'0004'
 
464
PTEN5            EQU  H'0005'
 
465
PTEN6            EQU  H'0006'
 
466
PTEN7            EQU  H'0007'
 
467
 
 
468
 
 
469
;----- PMEH Bits -----------------------------------------------------
 
470
PTEN8            EQU  H'0000'
 
471
PTEN9            EQU  H'0001'
 
472
PTEN10           EQU  H'0002'
 
473
PTEN11           EQU  H'0003'
 
474
PTEN12           EQU  H'0004'
 
475
PTEN13           EQU  H'0005'
 
476
PTEN14           EQU  H'0006'
 
477
PTEN15           EQU  H'0007'
 
478
 
 
479
 
 
480
;----- PMMODEL Bits -----------------------------------------------------
 
481
WAITE0           EQU  H'0000'
 
482
WAITE1           EQU  H'0001'
 
483
WAITM0           EQU  H'0002'
 
484
WAITM1           EQU  H'0003'
 
485
WAITM2           EQU  H'0004'
 
486
WAITM3           EQU  H'0005'
 
487
WAITB0           EQU  H'0006'
 
488
WAITB1           EQU  H'0007'
 
489
 
 
490
 
 
491
;----- PMMODEH Bits -----------------------------------------------------
 
492
MODE0            EQU  H'0000'
 
493
MODE1            EQU  H'0001'
 
494
MODE16           EQU  H'0002'
 
495
INCM0            EQU  H'0003'
 
496
INCM1            EQU  H'0004'
 
497
IRQM0            EQU  H'0005'
 
498
IRQM1            EQU  H'0006'
 
499
BUSY             EQU  H'0007'
 
500
 
 
501
 
 
502
;----- PMCONL Bits -----------------------------------------------------
 
503
RDSP             EQU  H'0000'
 
504
WRSP             EQU  H'0001'
 
505
BEP              EQU  H'0002'
 
506
CS1P             EQU  H'0003'
 
507
CS2P             EQU  H'0004'
 
508
ALP              EQU  H'0005'
 
509
CSF0             EQU  H'0006'
 
510
CSF1             EQU  H'0007'
 
511
 
 
512
 
 
513
;----- PMCONH Bits -----------------------------------------------------
 
514
PTRDEN           EQU  H'0000'
 
515
PTWREN           EQU  H'0001'
 
516
PTBEEN           EQU  H'0002'
 
517
ADRMUX0          EQU  H'0003'
 
518
ADRMUX1          EQU  H'0004'
 
519
PSIDL            EQU  H'0005'
 
520
PMPEN            EQU  H'0007'
 
521
 
 
522
 
 
523
;----- PMADDRH Bits -----------------------------------------------------
 
524
CS1              EQU  H'0006'
 
525
 
 
526
 
 
527
;----- CMSTAT Bits -----------------------------------------------------
 
528
COUT1            EQU  H'0000'
 
529
COUT2            EQU  H'0001'
 
530
 
 
531
 
 
532
;----- CMSTATUS Bits -----------------------------------------------------
 
533
COUT1            EQU  H'0000'
 
534
COUT2            EQU  H'0001'
 
535
 
 
536
 
 
537
;----- SSP2CON2 Bits -----------------------------------------------------
 
538
SEN              EQU  H'0000'
 
539
RSEN             EQU  H'0001'
 
540
PEN              EQU  H'0002'
 
541
RCEN             EQU  H'0003'
 
542
ACKEN            EQU  H'0004'
 
543
ACKDT            EQU  H'0005'
 
544
ACKSTAT          EQU  H'0006'
 
545
GCEN             EQU  H'0007'
 
546
 
 
547
ADMSK1           EQU  H'0001'
 
548
ADMSK2           EQU  H'0002'
 
549
ADMSK3           EQU  H'0003'
 
550
ADMSK4           EQU  H'0004'
 
551
ADMSK5           EQU  H'0005'
 
552
 
 
553
 
 
554
;----- SSP2CON1 Bits -----------------------------------------------------
 
555
CKP              EQU  H'0004'
 
556
SSPEN            EQU  H'0005'
 
557
SSPOV            EQU  H'0006'
 
558
WCOL             EQU  H'0007'
 
559
 
 
560
SSPM0            EQU  H'0000'
 
561
SSPM1            EQU  H'0001'
 
562
SSPM2            EQU  H'0002'
 
563
SSPM3            EQU  H'0003'
 
564
 
 
565
 
 
566
;----- SSP2STAT Bits -----------------------------------------------------
 
567
BF               EQU  H'0000'
 
568
UA               EQU  H'0001'
 
569
R_NOT_W          EQU  H'0002'
 
570
S                EQU  H'0003'
 
571
P                EQU  H'0004'
 
572
D_NOT_A          EQU  H'0005'
 
573
CKE              EQU  H'0006'
 
574
SMP              EQU  H'0007'
 
575
 
 
576
 
 
577
;----- SSP2ADD Bits -----------------------------------------------------
 
578
MSK0             EQU  H'0000'
 
579
MSK1             EQU  H'0001'
 
580
MSK2             EQU  H'0002'
 
581
MSK3             EQU  H'0003'
 
582
MSK4             EQU  H'0004'
 
583
MSK5             EQU  H'0005'
 
584
MSK6             EQU  H'0006'
 
585
MSK7             EQU  H'0007'
 
586
 
 
587
 
 
588
;----- T4CON Bits -----------------------------------------------------
 
589
TMR4ON           EQU  H'0002'
 
590
 
 
591
T4CKPS0          EQU  H'0000'
 
592
T4CKPS1          EQU  H'0001'
 
593
T4OUTPS0         EQU  H'0003'
 
594
T4OUTPS1         EQU  H'0004'
 
595
T4OUTPS2         EQU  H'0005'
 
596
T4OUTPS3         EQU  H'0006'
 
597
 
 
598
 
 
599
;----- T3CON Bits -----------------------------------------------------
 
600
TMR3ON           EQU  H'0000'
 
601
RD16             EQU  H'0001'
 
602
T3SYNC           EQU  H'0002'
 
603
 
 
604
T3CKPS0          EQU  H'0004'
 
605
T3CKPS1          EQU  H'0005'
 
606
TMR3CS0          EQU  H'0006'
 
607
TMR3CS1          EQU  H'0007'
 
608
 
 
609
 
 
610
;----- BAUDCON2 Bits -----------------------------------------------------
 
611
ABDEN            EQU  H'0000'
 
612
WUE              EQU  H'0001'
 
613
BRG16            EQU  H'0003'
 
614
TXCKP            EQU  H'0004'
 
615
RXDTP            EQU  H'0005'
 
616
RCIDL            EQU  H'0006'
 
617
ABDOVF           EQU  H'0007'
 
618
 
 
619
 
 
620
;----- BAUDCON Bits -----------------------------------------------------
 
621
ABDEN            EQU  H'0000'
 
622
WUE              EQU  H'0001'
 
623
BRG16            EQU  H'0003'
 
624
TXCKP            EQU  H'0004'
 
625
RXDTP            EQU  H'0005'
 
626
RCIDL            EQU  H'0006'
 
627
ABDOVF           EQU  H'0007'
 
628
 
 
629
 
 
630
;----- BAUDCON1 Bits -----------------------------------------------------
 
631
ABDEN            EQU  H'0000'
 
632
WUE              EQU  H'0001'
 
633
BRG16            EQU  H'0003'
 
634
TXCKP            EQU  H'0004'
 
635
RXDTP            EQU  H'0005'
 
636
RCIDL            EQU  H'0006'
 
637
ABDOVF           EQU  H'0007'
 
638
 
 
639
 
 
640
;----- BAUDCTL Bits -----------------------------------------------------
 
641
ABDEN            EQU  H'0000'
 
642
WUE              EQU  H'0001'
 
643
BRG16            EQU  H'0003'
 
644
TXCKP            EQU  H'0004'
 
645
RXDTP            EQU  H'0005'
 
646
RCIDL            EQU  H'0006'
 
647
ABDOVF           EQU  H'0007'
 
648
 
 
649
 
 
650
;----- PORTA Bits -----------------------------------------------------
 
651
RA0              EQU  H'0000'
 
652
RA1              EQU  H'0001'
 
653
RA2              EQU  H'0002'
 
654
RA3              EQU  H'0003'
 
655
RA5              EQU  H'0005'
 
656
RA6              EQU  H'0006'
 
657
RA7              EQU  H'0007'
 
658
 
 
659
 
 
660
AN0              EQU  H'0000'
 
661
AN1              EQU  H'0001'
 
662
AN2              EQU  H'0002'
 
663
AN3              EQU  H'0003'
 
664
AN4              EQU  H'0005'
 
665
OSC2             EQU  H'0006'
 
666
OSC1             EQU  H'0007'
 
667
 
 
668
C1INA            EQU  H'0000'
 
669
C2INA            EQU  H'0001'
 
670
VREF_MINUS       EQU  H'0002'
 
671
VREF_PLUS        EQU  H'0003'
 
672
NOT_SS1          EQU  H'0005'
 
673
CLKO             EQU  H'0006'
 
674
CLKI             EQU  H'0007'
 
675
 
 
676
PMPA6            EQU  H'0000'
 
677
PMPA7            EQU  H'0001'
 
678
CVREF_MINUS      EQU  H'0002'
 
679
C1INB            EQU  H'0003'
 
680
HLVDIN           EQU  H'0005'
 
681
 
 
682
RP0              EQU  H'0000'
 
683
RP1              EQU  H'0001'
 
684
C2INB            EQU  H'0002'
 
685
RCV              EQU  H'0005'
 
686
 
 
687
ULPWU            EQU  H'0000'
 
688
RP2              EQU  H'0005'
 
689
 
 
690
 
 
691
;----- PORTB Bits -----------------------------------------------------
 
692
RB0              EQU  H'0000'
 
693
RB1              EQU  H'0001'
 
694
RB2              EQU  H'0002'
 
695
RB3              EQU  H'0003'
 
696
RB4              EQU  H'0004'
 
697
RB5              EQU  H'0005'
 
698
RB6              EQU  H'0006'
 
699
RB7              EQU  H'0007'
 
700
 
 
701
 
 
702
AN12             EQU  H'0000'
 
703
AN10             EQU  H'0001'
 
704
AN8              EQU  H'0002'
 
705
AN9              EQU  H'0003'
 
706
PMPA1            EQU  H'0004'
 
707
PMPA0            EQU  H'0005'
 
708
KBI2             EQU  H'0006'
 
709
KBI3             EQU  H'0007'
 
710
 
 
711
INT0             EQU  H'0000'
 
712
PMPBE            EQU  H'0001'
 
713
CTEDG1           EQU  H'0002'
 
714
CTEDG2           EQU  H'0003'
 
715
KBI0             EQU  H'0004'
 
716
KBI1             EQU  H'0005'
 
717
PGC              EQU  H'0006'
 
718
PGD              EQU  H'0007'
 
719
 
 
720
RP3              EQU  H'0000'
 
721
RTCC             EQU  H'0001'
 
722
PMPA3            EQU  H'0002'
 
723
PMPA2            EQU  H'0003'
 
724
RP9              EQU  H'0006'
 
725
RP10             EQU  H'0007'
 
726
 
 
727
RP4              EQU  H'0001'
 
728
 
 
729
REFO             EQU  H'0002'
 
730
RP6              EQU  H'0003'
 
731
RP7              EQU  H'0004'
 
732
RP8              EQU  H'0005'
 
733
 
 
734
RP5              EQU  H'0002'
 
735
 
 
736
 
 
737
;----- PORTC Bits -----------------------------------------------------
 
738
RC0              EQU  H'0000'
 
739
RC1              EQU  H'0001'
 
740
RC2              EQU  H'0002'
 
741
RC3              EQU  H'0003'
 
742
RC4              EQU  H'0004'
 
743
RC5              EQU  H'0005'
 
744
RC6              EQU  H'0006'
 
745
RC7              EQU  H'0007'
 
746
 
 
747
 
 
748
T1OSO            EQU  H'0000'
 
749
T1OSI            EQU  H'0001'
 
750
AN11             EQU  H'0002'
 
751
SCK1             EQU  H'0003'
 
752
PMPA5            EQU  H'0006'
 
753
PMPA4            EQU  H'0007'
 
754
 
 
755
T1CKI            EQU  H'0000'
 
756
CTPLS            EQU  H'0002'
 
757
SCL1             EQU  H'0003'
 
758
SDI1             EQU  H'0004'
 
759
SDO1             EQU  H'0005'
 
760
TX1              EQU  H'0006'
 
761
RX1              EQU  H'0007'
 
762
 
 
763
RP11             EQU  H'0000'
 
764
RP12             EQU  H'0001'
 
765
RP13             EQU  H'0002'
 
766
RP14             EQU  H'0003'
 
767
RP15             EQU  H'0004'
 
768
RP16             EQU  H'0005'
 
769
CK1              EQU  H'0006'
 
770
DT1              EQU  H'0007'
 
771
 
 
772
RP17             EQU  H'0006'
 
773
RP18             EQU  H'0007'
 
774
 
 
775
 
 
776
;----- PORTD Bits -----------------------------------------------------
 
777
RD0              EQU  H'0000'
 
778
RD1              EQU  H'0001'
 
779
RD2              EQU  H'0002'
 
780
RD3              EQU  H'0003'
 
781
RD4              EQU  H'0004'
 
782
RD5              EQU  H'0005'
 
783
RD6              EQU  H'0006'
 
784
RD7              EQU  H'0007'
 
785
 
 
786
 
 
787
PMPD0            EQU  H'0000'
 
788
PMPD1            EQU  H'0001'
 
789
PMPD2            EQU  H'0002'
 
790
PMPD3            EQU  H'0003'
 
791
PMPD4            EQU  H'0004'
 
792
PMPD5            EQU  H'0005'
 
793
PMPD6            EQU  H'0006'
 
794
PMPD7            EQU  H'0007'
 
795
 
 
796
SCL2             EQU  H'0000'
 
797
SDA2             EQU  H'0001'
 
798
RP19             EQU  H'0002'
 
799
RP20             EQU  H'0003'
 
800
RP21             EQU  H'0004'
 
801
RP22             EQU  H'0005'
 
802
RP23             EQU  H'0006'
 
803
RP24             EQU  H'0007'
 
804
 
 
805
 
 
806
;----- PORTE Bits -----------------------------------------------------
 
807
RE0              EQU  H'0000'
 
808
RE1              EQU  H'0001'
 
809
RE2              EQU  H'0002'
 
810
REPU             EQU  H'0006'
 
811
RDPU             EQU  H'0007'
 
812
 
 
813
 
 
814
AN5              EQU  H'0000'
 
815
AN6              EQU  H'0001'
 
816
AN7              EQU  H'0002'
 
817
 
 
818
PMPRD            EQU  H'0000'
 
819
PMPWR            EQU  H'0001'
 
820
PMPCS            EQU  H'0002'
 
821
 
 
822
 
 
823
;----- HLVDCON Bits -----------------------------------------------------
 
824
HLVDEN           EQU  H'0004'
 
825
IRVST            EQU  H'0005'
 
826
BGVST            EQU  H'0006'
 
827
VDIRMAG          EQU  H'0007'
 
828
 
 
829
HLVDL0           EQU  H'0000'
 
830
HLVDL1           EQU  H'0001'
 
831
HLVDL2           EQU  H'0002'
 
832
HLVDL3           EQU  H'0003'
 
833
 
 
834
 
 
835
;----- DMACON2 Bits -----------------------------------------------------
 
836
INTLVL0          EQU  H'0000'
 
837
INTLVL1          EQU  H'0001'
 
838
INTLVL2          EQU  H'0002'
 
839
INTLVL3          EQU  H'0003'
 
840
DLYCYC0          EQU  H'0004'
 
841
DLYCYC1          EQU  H'0005'
 
842
DLYCYC2          EQU  H'0006'
 
843
DLYCYC3          EQU  H'0007'
 
844
 
 
845
 
 
846
;----- DMACON1 Bits -----------------------------------------------------
 
847
DMAEN            EQU  H'0000'
 
848
DLYINTEN         EQU  H'0001'
 
849
DUPLEX0          EQU  H'0002'
 
850
DUPLEX1          EQU  H'0003'
 
851
RXINC            EQU  H'0004'
 
852
TXINC            EQU  H'0005'
 
853
SSCON0           EQU  H'0006'
 
854
SSCON1           EQU  H'0007'
 
855
 
 
856
 
 
857
;----- LATA Bits -----------------------------------------------------
 
858
LATA0            EQU  H'0000'
 
859
LATA1            EQU  H'0001'
 
860
LATA2            EQU  H'0002'
 
861
LATA3            EQU  H'0003'
 
862
LATA5            EQU  H'0005'
 
863
LATA6            EQU  H'0006'
 
864
LATA7            EQU  H'0007'
 
865
 
 
866
 
 
867
 
 
868
;----- LATB Bits -----------------------------------------------------
 
869
LATB0            EQU  H'0000'
 
870
LATB1            EQU  H'0001'
 
871
LATB2            EQU  H'0002'
 
872
LATB3            EQU  H'0003'
 
873
LATB4            EQU  H'0004'
 
874
LATB5            EQU  H'0005'
 
875
LATB6            EQU  H'0006'
 
876
LATB7            EQU  H'0007'
 
877
 
 
878
 
 
879
 
 
880
;----- LATC Bits -----------------------------------------------------
 
881
LATC0            EQU  H'0000'
 
882
LATC1            EQU  H'0001'
 
883
LATC2            EQU  H'0002'
 
884
LATC3            EQU  H'0003'
 
885
LATC4            EQU  H'0004'
 
886
LATC5            EQU  H'0005'
 
887
LATC6            EQU  H'0006'
 
888
LATC7            EQU  H'0007'
 
889
 
 
890
 
 
891
 
 
892
;----- LATD Bits -----------------------------------------------------
 
893
LATD0            EQU  H'0000'
 
894
LATD1            EQU  H'0001'
 
895
LATD2            EQU  H'0002'
 
896
LATD3            EQU  H'0003'
 
897
LATD4            EQU  H'0004'
 
898
LATD5            EQU  H'0005'
 
899
LATD6            EQU  H'0006'
 
900
LATD7            EQU  H'0007'
 
901
 
 
902
 
 
903
 
 
904
;----- LATE Bits -----------------------------------------------------
 
905
LATE0            EQU  H'0000'
 
906
LATE1            EQU  H'0001'
 
907
LATE2            EQU  H'0002'
 
908
 
 
909
 
 
910
 
 
911
;----- ALRMRPT Bits -----------------------------------------------------
 
912
ARPT0            EQU  H'0000'
 
913
ARPT1            EQU  H'0001'
 
914
ARPT2            EQU  H'0002'
 
915
ARPT3            EQU  H'0003'
 
916
ARPT4            EQU  H'0004'
 
917
ARPT5            EQU  H'0005'
 
918
ARPT6            EQU  H'0006'
 
919
ARPT7            EQU  H'0007'
 
920
 
 
921
 
 
922
;----- ALRMCFG Bits -----------------------------------------------------
 
923
CHIME            EQU  H'0006'
 
924
ALRMEN           EQU  H'0007'
 
925
 
 
926
ALRMPTR0         EQU  H'0000'
 
927
ALRMPTR1         EQU  H'0001'
 
928
AMASK0           EQU  H'0002'
 
929
AMASK1           EQU  H'0003'
 
930
AMASK2           EQU  H'0004'
 
931
AMASK3           EQU  H'0005'
 
932
 
 
933
 
 
934
;----- TRISA Bits -----------------------------------------------------
 
935
TRISA0           EQU  H'0000'
 
936
TRISA1           EQU  H'0001'
 
937
TRISA2           EQU  H'0002'
 
938
TRISA3           EQU  H'0003'
 
939
TRISA5           EQU  H'0005'
 
940
TRISA6           EQU  H'0006'
 
941
TRISA7           EQU  H'0007'
 
942
 
 
943
 
 
944
 
 
945
;----- TRISB Bits -----------------------------------------------------
 
946
TRISB0           EQU  H'0000'
 
947
TRISB1           EQU  H'0001'
 
948
TRISB2           EQU  H'0002'
 
949
TRISB3           EQU  H'0003'
 
950
TRISB4           EQU  H'0004'
 
951
TRISB5           EQU  H'0005'
 
952
TRISB6           EQU  H'0006'
 
953
TRISB7           EQU  H'0007'
 
954
 
 
955
 
 
956
 
 
957
;----- TRISC Bits -----------------------------------------------------
 
958
TRISC0           EQU  H'0000'
 
959
TRISC1           EQU  H'0001'
 
960
TRISC2           EQU  H'0002'
 
961
TRISC3           EQU  H'0003'
 
962
TRISC4           EQU  H'0004'
 
963
TRISC5           EQU  H'0005'
 
964
TRISC6           EQU  H'0006'
 
965
TRISC7           EQU  H'0007'
 
966
 
 
967
 
 
968
 
 
969
;----- TRISD Bits -----------------------------------------------------
 
970
TRISD0           EQU  H'0000'
 
971
TRISD1           EQU  H'0001'
 
972
TRISD2           EQU  H'0002'
 
973
TRISD3           EQU  H'0003'
 
974
TRISD4           EQU  H'0004'
 
975
TRISD5           EQU  H'0005'
 
976
TRISD6           EQU  H'0006'
 
977
TRISD7           EQU  H'0007'
 
978
 
 
979
 
 
980
 
 
981
;----- TRISE Bits -----------------------------------------------------
 
982
TRISE0           EQU  H'0000'
 
983
TRISE1           EQU  H'0001'
 
984
TRISE2           EQU  H'0002'
 
985
 
 
986
 
 
987
 
 
988
;----- T3GCON Bits -----------------------------------------------------
 
989
T3GSS0           EQU  H'0000'
 
990
T3GSS1           EQU  H'0001'
 
991
T3GVAL           EQU  H'0002'
 
992
T3GGO_T3DONE     EQU  H'0003'
 
993
T3GSPM           EQU  H'0004'
 
994
T3GTM            EQU  H'0005'
 
995
T3GPOL           EQU  H'0006'
 
996
TMR3GE           EQU  H'0007'
 
997
 
 
998
T3GGO            EQU  H'0003'
 
999
 
 
1000
T3DONE           EQU  H'0003'
 
1001
 
 
1002
 
 
1003
;----- T1GCON Bits -----------------------------------------------------
 
1004
T1GSS0           EQU  H'0000'
 
1005
T1GSS1           EQU  H'0001'
 
1006
T1GVAL           EQU  H'0002'
 
1007
T1GGO_T1DONE     EQU  H'0003'
 
1008
T1GSPM           EQU  H'0004'
 
1009
T1GTM            EQU  H'0005'
 
1010
T1GPOL           EQU  H'0006'
 
1011
TMR1GE           EQU  H'0007'
 
1012
 
 
1013
T1GGO            EQU  H'0003'
 
1014
 
 
1015
T1DONE           EQU  H'0003'
 
1016
 
 
1017
 
 
1018
;----- OSCTUNE Bits -----------------------------------------------------
 
1019
PLLEN            EQU  H'0006'
 
1020
INTSRC           EQU  H'0007'
 
1021
 
 
1022
TUN0             EQU  H'0000'
 
1023
TUN1             EQU  H'0001'
 
1024
TUN2             EQU  H'0002'
 
1025
TUN3             EQU  H'0003'
 
1026
TUN4             EQU  H'0004'
 
1027
TUN5             EQU  H'0005'
 
1028
 
 
1029
 
 
1030
;----- RCSTA2 Bits -----------------------------------------------------
 
1031
RX9D             EQU  H'0000'
 
1032
OERR             EQU  H'0001'
 
1033
FERR             EQU  H'0002'
 
1034
ADDEN            EQU  H'0003'
 
1035
CREN             EQU  H'0004'
 
1036
SREN             EQU  H'0005'
 
1037
RX9              EQU  H'0006'
 
1038
SPEN             EQU  H'0007'
 
1039
 
 
1040
 
 
1041
;----- PIE1 Bits -----------------------------------------------------
 
1042
TMR1IE           EQU  H'0000'
 
1043
TMR2IE           EQU  H'0001'
 
1044
CCP1IE           EQU  H'0002'
 
1045
SSP1IE           EQU  H'0003'
 
1046
TX1IE            EQU  H'0004'
 
1047
RC1IE            EQU  H'0005'
 
1048
ADIE             EQU  H'0006'
 
1049
PMPIE            EQU  H'0007'
 
1050
 
 
1051
SSPIE            EQU  H'0003'
 
1052
TXIE             EQU  H'0004'
 
1053
RCIE             EQU  H'0005'
 
1054
 
 
1055
 
 
1056
;----- PIR1 Bits -----------------------------------------------------
 
1057
TMR1IF           EQU  H'0000'
 
1058
TMR2IF           EQU  H'0001'
 
1059
CCP1IF           EQU  H'0002'
 
1060
SSP1IF           EQU  H'0003'
 
1061
TX1IF            EQU  H'0004'
 
1062
RC1IF            EQU  H'0005'
 
1063
ADIF             EQU  H'0006'
 
1064
PMPIF            EQU  H'0007'
 
1065
 
 
1066
SSPIF            EQU  H'0003'
 
1067
TXIF             EQU  H'0004'
 
1068
RCIF             EQU  H'0005'
 
1069
 
 
1070
 
 
1071
;----- IPR1 Bits -----------------------------------------------------
 
1072
TMR1IP           EQU  H'0000'
 
1073
TMR2IP           EQU  H'0001'
 
1074
CCP1IP           EQU  H'0002'
 
1075
SSP1IP           EQU  H'0003'
 
1076
TX1IP            EQU  H'0004'
 
1077
RC1IP            EQU  H'0005'
 
1078
ADIP             EQU  H'0006'
 
1079
PMPIP            EQU  H'0007'
 
1080
 
 
1081
SSPIP            EQU  H'0003'
 
1082
TXIP             EQU  H'0004'
 
1083
RCIP             EQU  H'0005'
 
1084
 
 
1085
 
 
1086
;----- PIE2 Bits -----------------------------------------------------
 
1087
CCP2IE           EQU  H'0000'
 
1088
TMR3IE           EQU  H'0001'
 
1089
LVDIE            EQU  H'0002'
 
1090
BCL1IE           EQU  H'0003'
 
1091
CM1IE            EQU  H'0005'
 
1092
CM2IE            EQU  H'0006'
 
1093
OSCFIE           EQU  H'0007'
 
1094
 
 
1095
BCLIE            EQU  H'0003'
 
1096
 
 
1097
 
 
1098
;----- PIR2 Bits -----------------------------------------------------
 
1099
CCP2IF           EQU  H'0000'
 
1100
TMR3IF           EQU  H'0001'
 
1101
LVDIF            EQU  H'0002'
 
1102
BCL1IF           EQU  H'0003'
 
1103
CM1IF            EQU  H'0005'
 
1104
CM2IF            EQU  H'0006'
 
1105
OSCFIF           EQU  H'0007'
 
1106
 
 
1107
BCLIF            EQU  H'0003'
 
1108
 
 
1109
 
 
1110
;----- IPR2 Bits -----------------------------------------------------
 
1111
CCP2IP           EQU  H'0000'
 
1112
TMR3IP           EQU  H'0001'
 
1113
LVDIP            EQU  H'0002'
 
1114
BCL1IP           EQU  H'0003'
 
1115
CM1IP            EQU  H'0005'
 
1116
CM2IP            EQU  H'0006'
 
1117
OSCFIP           EQU  H'0007'
 
1118
 
 
1119
BCLIP            EQU  H'0003'
 
1120
 
 
1121
 
 
1122
;----- PIE3 Bits -----------------------------------------------------
 
1123
RTCCIE           EQU  H'0000'
 
1124
TMR3GIE          EQU  H'0001'
 
1125
CTMUIE           EQU  H'0002'
 
1126
TMR4IE           EQU  H'0003'
 
1127
TX2IE            EQU  H'0004'
 
1128
RC2IE            EQU  H'0005'
 
1129
BCL2IE           EQU  H'0006'
 
1130
SSP2IE           EQU  H'0007'
 
1131
 
 
1132
 
 
1133
;----- PIR3 Bits -----------------------------------------------------
 
1134
RTCCIF           EQU  H'0000'
 
1135
TMR3GIF          EQU  H'0001'
 
1136
CTMUIF           EQU  H'0002'
 
1137
TMR4IF           EQU  H'0003'
 
1138
TX2IF            EQU  H'0004'
 
1139
RC2IF            EQU  H'0005'
 
1140
BCL2IF           EQU  H'0006'
 
1141
SSP2IF           EQU  H'0007'
 
1142
 
 
1143
 
 
1144
;----- IPR3 Bits -----------------------------------------------------
 
1145
RTCCIP           EQU  H'0000'
 
1146
TMR3GIP          EQU  H'0001'
 
1147
CTMUIP           EQU  H'0002'
 
1148
TMR4IP           EQU  H'0003'
 
1149
TX2IP            EQU  H'0004'
 
1150
RC2IP            EQU  H'0005'
 
1151
BCL2IP           EQU  H'0006'
 
1152
SSP2IP           EQU  H'0007'
 
1153
 
 
1154
 
 
1155
;----- EECON1 Bits -----------------------------------------------------
 
1156
WR               EQU  H'0001'
 
1157
WREN             EQU  H'0002'
 
1158
WRERR            EQU  H'0003'
 
1159
FREE             EQU  H'0004'
 
1160
WPROG            EQU  H'0005'
 
1161
 
 
1162
 
 
1163
;----- TXSTA2 Bits -----------------------------------------------------
 
1164
TX9D             EQU  H'0000'
 
1165
TRMT             EQU  H'0001'
 
1166
BRGH             EQU  H'0002'
 
1167
SENDB            EQU  H'0003'
 
1168
SYNC             EQU  H'0004'
 
1169
TXEN             EQU  H'0005'
 
1170
TX9              EQU  H'0006'
 
1171
CSRC             EQU  H'0007'
 
1172
 
 
1173
 
 
1174
;----- RCSTA Bits -----------------------------------------------------
 
1175
RX9D             EQU  H'0000'
 
1176
OERR             EQU  H'0001'
 
1177
FERR             EQU  H'0002'
 
1178
ADDEN            EQU  H'0003'
 
1179
CREN             EQU  H'0004'
 
1180
SREN             EQU  H'0005'
 
1181
RX9              EQU  H'0006'
 
1182
SPEN             EQU  H'0007'
 
1183
 
 
1184
RCD8             EQU  H'0000'
 
1185
ADEN             EQU  H'0003'
 
1186
RC9              EQU  H'0006'
 
1187
 
 
1188
NOT_RC8          EQU  H'0006'
 
1189
 
 
1190
RC8_9            EQU  H'0006'
 
1191
 
 
1192
 
 
1193
;----- RCSTA1 Bits -----------------------------------------------------
 
1194
RX9D             EQU  H'0000'
 
1195
OERR             EQU  H'0001'
 
1196
FERR             EQU  H'0002'
 
1197
ADDEN            EQU  H'0003'
 
1198
CREN             EQU  H'0004'
 
1199
SREN             EQU  H'0005'
 
1200
RX9              EQU  H'0006'
 
1201
SPEN             EQU  H'0007'
 
1202
 
 
1203
RCD8             EQU  H'0000'
 
1204
ADEN             EQU  H'0003'
 
1205
RC9              EQU  H'0006'
 
1206
 
 
1207
NOT_RC8          EQU  H'0006'
 
1208
 
 
1209
RC8_9            EQU  H'0006'
 
1210
 
 
1211
 
 
1212
;----- TXSTA Bits -----------------------------------------------------
 
1213
TX9D             EQU  H'0000'
 
1214
TRMT             EQU  H'0001'
 
1215
BRGH             EQU  H'0002'
 
1216
SENDB            EQU  H'0003'
 
1217
SYNC             EQU  H'0004'
 
1218
TXEN             EQU  H'0005'
 
1219
TX9              EQU  H'0006'
 
1220
CSRC             EQU  H'0007'
 
1221
 
 
1222
TXD8             EQU  H'0000'
 
1223
TX8_9            EQU  H'0006'
 
1224
 
 
1225
NOT_TX8          EQU  H'0006'
 
1226
 
 
1227
 
 
1228
;----- TXSTA1 Bits -----------------------------------------------------
 
1229
TX9D             EQU  H'0000'
 
1230
TRMT             EQU  H'0001'
 
1231
BRGH             EQU  H'0002'
 
1232
SENDB            EQU  H'0003'
 
1233
SYNC             EQU  H'0004'
 
1234
TXEN             EQU  H'0005'
 
1235
TX9              EQU  H'0006'
 
1236
CSRC             EQU  H'0007'
 
1237
 
 
1238
TXD8             EQU  H'0000'
 
1239
TX8_9            EQU  H'0006'
 
1240
 
 
1241
NOT_TX8          EQU  H'0006'
 
1242
 
 
1243
 
 
1244
;----- CTMUICON Bits -----------------------------------------------------
 
1245
IRNG0            EQU  H'0000'
 
1246
IRNG1            EQU  H'0001'
 
1247
ITRIM0           EQU  H'0002'
 
1248
ITRIM1           EQU  H'0003'
 
1249
ITRIM2           EQU  H'0004'
 
1250
ITRIM3           EQU  H'0005'
 
1251
ITRIM4           EQU  H'0006'
 
1252
ITRIM5           EQU  H'0007'
 
1253
 
 
1254
 
 
1255
;----- CTMUCONL Bits -----------------------------------------------------
 
1256
EDG1STAT         EQU  H'0000'
 
1257
EDG2STAT         EQU  H'0001'
 
1258
EDG1SEL0         EQU  H'0002'
 
1259
EDG1SEL1         EQU  H'0003'
 
1260
EDG1POL          EQU  H'0004'
 
1261
EDG2SEL0         EQU  H'0005'
 
1262
EDG2SEL1         EQU  H'0006'
 
1263
EDG2POL          EQU  H'0007'
 
1264
 
 
1265
 
 
1266
;----- CTMUCONH Bits -----------------------------------------------------
 
1267
CTTRIG           EQU  H'0000'
 
1268
IDISSEN          EQU  H'0001'
 
1269
EDGSEQEN         EQU  H'0002'
 
1270
EDGEN            EQU  H'0003'
 
1271
TGEN             EQU  H'0004'
 
1272
CTMUSIDL         EQU  H'0005'
 
1273
CTMUEN           EQU  H'0007'
 
1274
 
 
1275
 
 
1276
;----- CCP2CON Bits -----------------------------------------------------
 
1277
CCP2M0           EQU  H'0000'
 
1278
CCP2M1           EQU  H'0001'
 
1279
CCP2M2           EQU  H'0002'
 
1280
CCP2M3           EQU  H'0003'
 
1281
DC2B0            EQU  H'0004'
 
1282
DC2B1            EQU  H'0005'
 
1283
P2M0             EQU  H'0006'
 
1284
P2M1             EQU  H'0007'
 
1285
 
 
1286
CCP2Y            EQU  H'0004'
 
1287
CCP2X            EQU  H'0005'
 
1288
 
 
1289
 
 
1290
;----- ECCP2CON Bits -----------------------------------------------------
 
1291
CCP2M0           EQU  H'0000'
 
1292
CCP2M1           EQU  H'0001'
 
1293
CCP2M2           EQU  H'0002'
 
1294
CCP2M3           EQU  H'0003'
 
1295
DC2B0            EQU  H'0004'
 
1296
DC2B1            EQU  H'0005'
 
1297
P2M0             EQU  H'0006'
 
1298
P2M1             EQU  H'0007'
 
1299
 
 
1300
CCP2Y            EQU  H'0004'
 
1301
CCP2X            EQU  H'0005'
 
1302
 
 
1303
 
 
1304
;----- ECCP2DEL Bits -----------------------------------------------------
 
1305
P2RSEN           EQU  H'0007'
 
1306
 
 
1307
P2DC0            EQU  H'0000'
 
1308
P2DC1            EQU  H'0001'
 
1309
P2DC2            EQU  H'0002'
 
1310
P2DC3            EQU  H'0003'
 
1311
P2DC4            EQU  H'0004'
 
1312
P2DC5            EQU  H'0005'
 
1313
P2DC6            EQU  H'0006'
 
1314
 
 
1315
 
 
1316
;----- PWM2CON Bits -----------------------------------------------------
 
1317
P2RSEN           EQU  H'0007'
 
1318
 
 
1319
P2DC0            EQU  H'0000'
 
1320
P2DC1            EQU  H'0001'
 
1321
P2DC2            EQU  H'0002'
 
1322
P2DC3            EQU  H'0003'
 
1323
P2DC4            EQU  H'0004'
 
1324
P2DC5            EQU  H'0005'
 
1325
P2DC6            EQU  H'0006'
 
1326
 
 
1327
 
 
1328
;----- ECCP2AS Bits -----------------------------------------------------
 
1329
ECCP2ASE         EQU  H'0007'
 
1330
 
 
1331
PSS2BD0          EQU  H'0000'
 
1332
PSS2BD1          EQU  H'0001'
 
1333
PSS2AC0          EQU  H'0002'
 
1334
PSS2AC1          EQU  H'0003'
 
1335
ECCP2AS0         EQU  H'0004'
 
1336
ECCP2AS1         EQU  H'0005'
 
1337
ECCP2AS2         EQU  H'0006'
 
1338
 
 
1339
 
 
1340
;----- PSTR2CON Bits -----------------------------------------------------
 
1341
STRA             EQU  H'0000'
 
1342
STRB             EQU  H'0001'
 
1343
STRC             EQU  H'0002'
 
1344
STRD             EQU  H'0003'
 
1345
STRSYNC          EQU  H'0004'
 
1346
CMPL0            EQU  H'0006'
 
1347
CMPL1            EQU  H'0007'
 
1348
 
 
1349
P2DC0            EQU  H'0000'
 
1350
P2DC1            EQU  H'0001'
 
1351
P2DC2            EQU  H'0002'
 
1352
P2DC3            EQU  H'0003'
 
1353
P2DC4            EQU  H'0004'
 
1354
P2DC5            EQU  H'0005'
 
1355
P2DC6            EQU  H'0006'
 
1356
 
 
1357
 
 
1358
;----- CCP1CON Bits -----------------------------------------------------
 
1359
CCP1M0           EQU  H'0000'
 
1360
CCP1M1           EQU  H'0001'
 
1361
CCP1M2           EQU  H'0002'
 
1362
CCP1M3           EQU  H'0003'
 
1363
DC1B0            EQU  H'0004'
 
1364
DC1B1            EQU  H'0005'
 
1365
P1M0             EQU  H'0006'
 
1366
P1M1             EQU  H'0007'
 
1367
 
 
1368
CCP1Y            EQU  H'0004'
 
1369
CCP1X            EQU  H'0005'
 
1370
 
 
1371
 
 
1372
;----- ECCP1CON Bits -----------------------------------------------------
 
1373
CCP1M0           EQU  H'0000'
 
1374
CCP1M1           EQU  H'0001'
 
1375
CCP1M2           EQU  H'0002'
 
1376
CCP1M3           EQU  H'0003'
 
1377
DC1B0            EQU  H'0004'
 
1378
DC1B1            EQU  H'0005'
 
1379
P1M0             EQU  H'0006'
 
1380
P1M1             EQU  H'0007'
 
1381
 
 
1382
CCP1Y            EQU  H'0004'
 
1383
CCP1X            EQU  H'0005'
 
1384
 
 
1385
 
 
1386
;----- ECCP1DEL Bits -----------------------------------------------------
 
1387
P1RSEN           EQU  H'0007'
 
1388
 
 
1389
P1DC0            EQU  H'0000'
 
1390
P1DC1            EQU  H'0001'
 
1391
P1DC2            EQU  H'0002'
 
1392
P1DC3            EQU  H'0003'
 
1393
P1DC4            EQU  H'0004'
 
1394
P1DC5            EQU  H'0005'
 
1395
P1DC6            EQU  H'0006'
 
1396
 
 
1397
 
 
1398
;----- PWM1CON Bits -----------------------------------------------------
 
1399
P1RSEN           EQU  H'0007'
 
1400
 
 
1401
P1DC0            EQU  H'0000'
 
1402
P1DC1            EQU  H'0001'
 
1403
P1DC2            EQU  H'0002'
 
1404
P1DC3            EQU  H'0003'
 
1405
P1DC4            EQU  H'0004'
 
1406
P1DC5            EQU  H'0005'
 
1407
P1DC6            EQU  H'0006'
 
1408
 
 
1409
 
 
1410
;----- ECCP1AS Bits -----------------------------------------------------
 
1411
ECCP1ASE         EQU  H'0007'
 
1412
 
 
1413
PSS1BD0          EQU  H'0000'
 
1414
PSS1BD1          EQU  H'0001'
 
1415
PSS1AC0          EQU  H'0002'
 
1416
PSS1AC1          EQU  H'0003'
 
1417
ECCP1AS0         EQU  H'0004'
 
1418
ECCP1AS1         EQU  H'0005'
 
1419
ECCP1AS2         EQU  H'0006'
 
1420
 
 
1421
 
 
1422
;----- PSTR1CON Bits -----------------------------------------------------
 
1423
STRA             EQU  H'0000'
 
1424
STRB             EQU  H'0001'
 
1425
STRC             EQU  H'0002'
 
1426
STRD             EQU  H'0003'
 
1427
STRSYNC          EQU  H'0004'
 
1428
CMPL0            EQU  H'0006'
 
1429
CMPL1            EQU  H'0007'
 
1430
 
 
1431
 
 
1432
;----- WDTCON Bits -----------------------------------------------------
 
1433
SWDTEN           EQU  H'0000'
 
1434
ULPSINK          EQU  H'0001'
 
1435
ULPEN            EQU  H'0002'
 
1436
DS               EQU  H'0003'
 
1437
ULPLVL           EQU  H'0005'
 
1438
LVDSTAT          EQU  H'0006'
 
1439
REGSLP           EQU  H'0007'
 
1440
 
 
1441
SWDTE            EQU  H'0000'
 
1442
 
 
1443
 
 
1444
;----- ADCON1 Bits -----------------------------------------------------
 
1445
ADCAL            EQU  H'0006'
 
1446
ADFM             EQU  H'0007'
 
1447
 
 
1448
ADCS0            EQU  H'0000'
 
1449
ADCS1            EQU  H'0001'
 
1450
ADCS2            EQU  H'0002'
 
1451
ACQT0            EQU  H'0003'
 
1452
ACQT1            EQU  H'0004'
 
1453
ACQT2            EQU  H'0005'
 
1454
 
 
1455
 
 
1456
;----- ADCON0 Bits -----------------------------------------------------
 
1457
ADON             EQU  H'0000'
 
1458
GO_NOT_DONE      EQU  H'0001'
 
1459
 
 
1460
GO_DONE          EQU  H'0001'
 
1461
CHS0             EQU  H'0002'
 
1462
CHS1             EQU  H'0003'
 
1463
CHS2             EQU  H'0004'
 
1464
CHS3             EQU  H'0005'
 
1465
VCFG0            EQU  H'0006'
 
1466
VCFG1            EQU  H'0007'
 
1467
 
 
1468
DONE             EQU  H'0001'
 
1469
 
 
1470
GO               EQU  H'0001'
 
1471
 
 
1472
NOT_DONE         EQU  H'0001'
 
1473
 
 
1474
 
 
1475
;----- SSP1CON2 Bits -----------------------------------------------------
 
1476
SEN              EQU  H'0000'
 
1477
RSEN             EQU  H'0001'
 
1478
PEN              EQU  H'0002'
 
1479
RCEN             EQU  H'0003'
 
1480
ACKEN            EQU  H'0004'
 
1481
ACKDT            EQU  H'0005'
 
1482
ACKSTAT          EQU  H'0006'
 
1483
GCEN             EQU  H'0007'
 
1484
 
 
1485
ADMSK1           EQU  H'0001'
 
1486
ADMSK2           EQU  H'0002'
 
1487
ADMSK3           EQU  H'0003'
 
1488
ADMSK4           EQU  H'0004'
 
1489
ADMSK5           EQU  H'0005'
 
1490
 
 
1491
 
 
1492
;----- SSPCON2 Bits -----------------------------------------------------
 
1493
SEN              EQU  H'0000'
 
1494
RSEN             EQU  H'0001'
 
1495
PEN              EQU  H'0002'
 
1496
RCEN             EQU  H'0003'
 
1497
ACKEN            EQU  H'0004'
 
1498
ACKDT            EQU  H'0005'
 
1499
ACKSTAT          EQU  H'0006'
 
1500
GCEN             EQU  H'0007'
 
1501
 
 
1502
ADMSK1           EQU  H'0001'
 
1503
ADMSK2           EQU  H'0002'
 
1504
ADMSK3           EQU  H'0003'
 
1505
ADMSK4           EQU  H'0004'
 
1506
ADMSK5           EQU  H'0005'
 
1507
 
 
1508
 
 
1509
;----- SSP1CON1 Bits -----------------------------------------------------
 
1510
CKP              EQU  H'0004'
 
1511
SSPEN            EQU  H'0005'
 
1512
SSPOV            EQU  H'0006'
 
1513
WCOL             EQU  H'0007'
 
1514
 
 
1515
SSPM0            EQU  H'0000'
 
1516
SSPM1            EQU  H'0001'
 
1517
SSPM2            EQU  H'0002'
 
1518
SSPM3            EQU  H'0003'
 
1519
 
 
1520
 
 
1521
;----- SSPCON1 Bits -----------------------------------------------------
 
1522
CKP              EQU  H'0004'
 
1523
SSPEN            EQU  H'0005'
 
1524
SSPOV            EQU  H'0006'
 
1525
WCOL             EQU  H'0007'
 
1526
 
 
1527
SSPM0            EQU  H'0000'
 
1528
SSPM1            EQU  H'0001'
 
1529
SSPM2            EQU  H'0002'
 
1530
SSPM3            EQU  H'0003'
 
1531
 
 
1532
 
 
1533
;----- SSP1STAT Bits -----------------------------------------------------
 
1534
BF               EQU  H'0000'
 
1535
UA               EQU  H'0001'
 
1536
R_NOT_W          EQU  H'0002'
 
1537
S                EQU  H'0003'
 
1538
P                EQU  H'0004'
 
1539
D_NOT_A          EQU  H'0005'
 
1540
CKE              EQU  H'0006'
 
1541
SMP              EQU  H'0007'
 
1542
 
 
1543
R                EQU  H'0002'
 
1544
D                EQU  H'0005'
 
1545
 
 
1546
R_W              EQU  H'0002'
 
1547
D_A              EQU  H'0005'
 
1548
 
 
1549
NOT_W            EQU  H'0002'
 
1550
NOT_A            EQU  H'0005'
 
1551
 
 
1552
NOT_WRITE        EQU  H'0002'
 
1553
NOT_ADDRESS      EQU  H'0005'
 
1554
 
 
1555
READ_WRITE       EQU  H'0002'
 
1556
DATA_ADDRESS     EQU  H'0005'
 
1557
 
 
1558
I2C_READ         EQU  H'0002'
 
1559
I2C_START        EQU  H'0003'
 
1560
I2C_STOP         EQU  H'0004'
 
1561
I2C_DAT          EQU  H'0005'
 
1562
 
 
1563
 
 
1564
;----- SSPSTAT Bits -----------------------------------------------------
 
1565
BF               EQU  H'0000'
 
1566
UA               EQU  H'0001'
 
1567
R_NOT_W          EQU  H'0002'
 
1568
S                EQU  H'0003'
 
1569
P                EQU  H'0004'
 
1570
D_NOT_A          EQU  H'0005'
 
1571
CKE              EQU  H'0006'
 
1572
SMP              EQU  H'0007'
 
1573
 
 
1574
R                EQU  H'0002'
 
1575
D                EQU  H'0005'
 
1576
 
 
1577
R_W              EQU  H'0002'
 
1578
D_A              EQU  H'0005'
 
1579
 
 
1580
NOT_W            EQU  H'0002'
 
1581
NOT_A            EQU  H'0005'
 
1582
 
 
1583
NOT_WRITE        EQU  H'0002'
 
1584
NOT_ADDRESS      EQU  H'0005'
 
1585
 
 
1586
READ_WRITE       EQU  H'0002'
 
1587
DATA_ADDRESS     EQU  H'0005'
 
1588
 
 
1589
I2C_READ         EQU  H'0002'
 
1590
I2C_START        EQU  H'0003'
 
1591
I2C_STOP         EQU  H'0004'
 
1592
I2C_DAT          EQU  H'0005'
 
1593
 
 
1594
 
 
1595
;----- SSP1ADD Bits -----------------------------------------------------
 
1596
MSK0             EQU  H'0000'
 
1597
MSK1             EQU  H'0001'
 
1598
MSK2             EQU  H'0002'
 
1599
MSK3             EQU  H'0003'
 
1600
MSK4             EQU  H'0004'
 
1601
MSK5             EQU  H'0005'
 
1602
MSK6             EQU  H'0006'
 
1603
MSK7             EQU  H'0007'
 
1604
 
 
1605
 
 
1606
;----- SSPADD Bits -----------------------------------------------------
 
1607
MSK0             EQU  H'0000'
 
1608
MSK1             EQU  H'0001'
 
1609
MSK2             EQU  H'0002'
 
1610
MSK3             EQU  H'0003'
 
1611
MSK4             EQU  H'0004'
 
1612
MSK5             EQU  H'0005'
 
1613
MSK6             EQU  H'0006'
 
1614
MSK7             EQU  H'0007'
 
1615
 
 
1616
 
 
1617
;----- T2CON Bits -----------------------------------------------------
 
1618
TMR2ON           EQU  H'0002'
 
1619
 
 
1620
T2CKPS0          EQU  H'0000'
 
1621
T2CKPS1          EQU  H'0001'
 
1622
T2OUTPS0         EQU  H'0003'
 
1623
T2OUTPS1         EQU  H'0004'
 
1624
T2OUTPS2         EQU  H'0005'
 
1625
T2OUTPS3         EQU  H'0006'
 
1626
 
 
1627
 
 
1628
;----- T1CON Bits -----------------------------------------------------
 
1629
TMR1ON           EQU  H'0000'
 
1630
RD16             EQU  H'0001'
 
1631
T1SYNC           EQU  H'0002'
 
1632
T1OSCEN          EQU  H'0003'
 
1633
 
 
1634
T1CKPS0          EQU  H'0004'
 
1635
T1CKPS1          EQU  H'0005'
 
1636
TMR1CS0          EQU  H'0006'
 
1637
TMR1CS1          EQU  H'0007'
 
1638
 
 
1639
 
 
1640
;----- RCON Bits -----------------------------------------------------
 
1641
NOT_BOR          EQU  H'0000'
 
1642
NOT_POR          EQU  H'0001'
 
1643
NOT_PD           EQU  H'0002'
 
1644
NOT_TO           EQU  H'0003'
 
1645
NOT_RI           EQU  H'0004'
 
1646
NOT_CM           EQU  H'0005'
 
1647
IPEN             EQU  H'0007'
 
1648
 
 
1649
BOR              EQU  H'0000'
 
1650
POR              EQU  H'0001'
 
1651
PD               EQU  H'0002'
 
1652
TO               EQU  H'0003'
 
1653
RI               EQU  H'0004'
 
1654
CM               EQU  H'0005'
 
1655
 
 
1656
 
 
1657
;----- CM2CON Bits -----------------------------------------------------
 
1658
CREF             EQU  H'0002'
 
1659
CPOL             EQU  H'0005'
 
1660
COE              EQU  H'0006'
 
1661
CON              EQU  H'0007'
 
1662
 
 
1663
CCH0             EQU  H'0000'
 
1664
CCH1             EQU  H'0001'
 
1665
EVPOL0           EQU  H'0003'
 
1666
EVPOL1           EQU  H'0004'
 
1667
 
 
1668
 
 
1669
;----- CM2CON1 Bits -----------------------------------------------------
 
1670
CREF             EQU  H'0002'
 
1671
CPOL             EQU  H'0005'
 
1672
COE              EQU  H'0006'
 
1673
CON              EQU  H'0007'
 
1674
 
 
1675
CCH0             EQU  H'0000'
 
1676
CCH1             EQU  H'0001'
 
1677
EVPOL0           EQU  H'0003'
 
1678
EVPOL1           EQU  H'0004'
 
1679
 
 
1680
 
 
1681
;----- CM1CON Bits -----------------------------------------------------
 
1682
CREF             EQU  H'0002'
 
1683
CPOL             EQU  H'0005'
 
1684
COE              EQU  H'0006'
 
1685
CON              EQU  H'0007'
 
1686
 
 
1687
CCH0             EQU  H'0000'
 
1688
CCH1             EQU  H'0001'
 
1689
EVPOL0           EQU  H'0003'
 
1690
EVPOL1           EQU  H'0004'
 
1691
 
 
1692
 
 
1693
;----- CM1CON1 Bits -----------------------------------------------------
 
1694
CREF             EQU  H'0002'
 
1695
CPOL             EQU  H'0005'
 
1696
COE              EQU  H'0006'
 
1697
CON              EQU  H'0007'
 
1698
 
 
1699
CCH0             EQU  H'0000'
 
1700
CCH1             EQU  H'0001'
 
1701
EVPOL0           EQU  H'0003'
 
1702
EVPOL1           EQU  H'0004'
 
1703
 
 
1704
 
 
1705
;----- OSCCON Bits -----------------------------------------------------
 
1706
OSTS             EQU  H'0003'
 
1707
IDLEN            EQU  H'0007'
 
1708
 
 
1709
SCS0             EQU  H'0000'
 
1710
SCS1             EQU  H'0001'
 
1711
IRCF0            EQU  H'0004'
 
1712
IRCF1            EQU  H'0005'
 
1713
IRCF2            EQU  H'0006'
 
1714
 
 
1715
 
 
1716
;----- T0CON Bits -----------------------------------------------------
 
1717
PSA              EQU  H'0003'
 
1718
T0SE             EQU  H'0004'
 
1719
T0CS             EQU  H'0005'
 
1720
T08BIT           EQU  H'0006'
 
1721
TMR0ON           EQU  H'0007'
 
1722
 
 
1723
T0PS0            EQU  H'0000'
 
1724
T0PS1            EQU  H'0001'
 
1725
T0PS2            EQU  H'0002'
 
1726
 
 
1727
 
 
1728
;----- STATUS Bits -----------------------------------------------------
 
1729
C                EQU  H'0000'
 
1730
DC               EQU  H'0001'
 
1731
Z                EQU  H'0002'
 
1732
OV               EQU  H'0003'
 
1733
N                EQU  H'0004'
 
1734
 
 
1735
 
 
1736
;----- INTCON3 Bits -----------------------------------------------------
 
1737
INT1IF           EQU  H'0000'
 
1738
INT2IF           EQU  H'0001'
 
1739
INT3IF           EQU  H'0002'
 
1740
INT1IE           EQU  H'0003'
 
1741
INT2IE           EQU  H'0004'
 
1742
INT3IE           EQU  H'0005'
 
1743
INT1IP           EQU  H'0006'
 
1744
INT2IP           EQU  H'0007'
 
1745
 
 
1746
INT1F            EQU  H'0000'
 
1747
INT2F            EQU  H'0001'
 
1748
INT3F            EQU  H'0002'
 
1749
INT1E            EQU  H'0003'
 
1750
INT2E            EQU  H'0004'
 
1751
INT3E            EQU  H'0005'
 
1752
INT1P            EQU  H'0006'
 
1753
INT2P            EQU  H'0007'
 
1754
 
 
1755
 
 
1756
;----- INTCON2 Bits -----------------------------------------------------
 
1757
RBIP             EQU  H'0000'
 
1758
INT3IP           EQU  H'0001'
 
1759
TMR0IP           EQU  H'0002'
 
1760
INTEDG3          EQU  H'0003'
 
1761
INTEDG2          EQU  H'0004'
 
1762
INTEDG1          EQU  H'0005'
 
1763
INTEDG0          EQU  H'0006'
 
1764
NOT_RBPU         EQU  H'0007'
 
1765
 
 
1766
INT3P            EQU  H'0001'
 
1767
T0IP             EQU  H'0002'
 
1768
RBPU             EQU  H'0007'
 
1769
 
 
1770
 
 
1771
;----- INTCON Bits -----------------------------------------------------
 
1772
RBIF             EQU  H'0000'
 
1773
INT0IF           EQU  H'0001'
 
1774
TMR0IF           EQU  H'0002'
 
1775
RBIE             EQU  H'0003'
 
1776
INT0IE           EQU  H'0004'
 
1777
TMR0IE           EQU  H'0005'
 
1778
PEIE_GIEL        EQU  H'0006'
 
1779
GIE_GIEH         EQU  H'0007'
 
1780
 
 
1781
INT0F            EQU  H'0001'
 
1782
T0IF             EQU  H'0002'
 
1783
INT0E            EQU  H'0004'
 
1784
T0IE             EQU  H'0005'
 
1785
PEIE             EQU  H'0006'
 
1786
GIE              EQU  H'0007'
 
1787
 
 
1788
GIEL             EQU  H'0006'
 
1789
GIEH             EQU  H'0007'
 
1790
 
 
1791
 
 
1792
;----- STKPTR Bits -----------------------------------------------------
 
1793
STKUNF           EQU  H'0006'
 
1794
STKFUL           EQU  H'0007'
 
1795
 
 
1796
SP0              EQU  H'0000'
 
1797
SP1              EQU  H'0001'
 
1798
SP2              EQU  H'0002'
 
1799
SP3              EQU  H'0003'
 
1800
SP4              EQU  H'0004'
 
1801
 
 
1802
 
 
1803
 
 
1804
;==========================================================================
 
1805
;
 
1806
;       RAM Definitions
 
1807
;
 
1808
;==========================================================================
 
1809
       __MAXRAM  H'0FFF'
 
1810
       __BADRAM  H'0EDF'-H'0EE6'
 
1811
       __BADRAM  H'0EEB'
 
1812
       __BADRAM  H'0EEF'-H'0EF1'
 
1813
       __BADRAM  H'0EF4'-H'0EF5'
 
1814
       __BADRAM  H'0EF8'-H'0EFA'
 
1815
       __BADRAM  H'0F00'-H'0F3B'
 
1816
       __BADRAM  H'0F43'-H'0F47'
 
1817
       __BADRAM  H'0F50'-H'0F51'
 
1818
       __BADRAM  H'0F60'-H'0F65'
 
1819
       __BADRAM  H'0F87'
 
1820
       __BADRAM  H'0FD4'
 
1821
 
 
1822
;==========================================================================
 
1823
;
 
1824
;   IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
 
1825
;              superseded by the CONFIG directive.  The following settings
 
1826
;              are available for this device.
 
1827
;
 
1828
;   Watchdog Timer:
 
1829
;     WDTEN = OFF          Disabled - Controlled by SWDTEN bit
 
1830
;     WDTEN = ON           Enabled
 
1831
;
 
1832
;   Stack Overflow/Underflow Reset:
 
1833
;     STVREN = OFF         Disabled
 
1834
;     STVREN = ON          Enabled
 
1835
;
 
1836
;   Extended Instruction Set:
 
1837
;     XINST = OFF          Disabled
 
1838
;     XINST = ON           Enabled
 
1839
;
 
1840
;   Code Protect:
 
1841
;     CP0 = ON             Program memory is code-protected
 
1842
;     CP0 = OFF            Program memory is not code-protected
 
1843
;
 
1844
;   Oscillator:
 
1845
;     OSC = INTOSC         INTOSC
 
1846
;     OSC = INTOSCO        INTOSCO (CLKO-RA6)
 
1847
;     OSC = INTOSCPLL      INTOSCPLL
 
1848
;     OSC = INTOSCPLLO     INTOSCPLLO (CLKO-RA6) 
 
1849
;     OSC = HS             HS
 
1850
;     OSC = HSPLL          HS+PLL
 
1851
;     OSC = EC             EC (CLKO-RA6)
 
1852
;     OSC = ECPLL          EC+PLL (CLKO-RA6) 
 
1853
;
 
1854
;   T1OSCEN Enforcement:
 
1855
;     T1DIG = OFF          Secondary Oscillator clock source may not be selected
 
1856
;     T1DIG = ON           Secondary Oscillator clock source may be selected
 
1857
;
 
1858
;   Low-Power Timer1 Oscillator:
 
1859
;     LPT1OSC = ON         Low-power operation
 
1860
;     LPT1OSC = OFF        High-power operation
 
1861
;
 
1862
;   Fail-Safe Clock Monitor:
 
1863
;     FCMEN = OFF          Disabled
 
1864
;     FCMEN = ON           Enabled
 
1865
;
 
1866
;   Internal External Oscillator Switch Over Mode:
 
1867
;     IESO = OFF           Disabled
 
1868
;     IESO = ON            Enabled
 
1869
;
 
1870
;   Watchdog Postscaler:
 
1871
;     WDTPS = 1            1:1
 
1872
;     WDTPS = 2            1:2
 
1873
;     WDTPS = 4            1:4
 
1874
;     WDTPS = 8            1:8
 
1875
;     WDTPS = 16           1:16
 
1876
;     WDTPS = 32           1:32
 
1877
;     WDTPS = 64           1:64
 
1878
;     WDTPS = 128          1:128
 
1879
;     WDTPS = 256          1:256
 
1880
;     WDTPS = 512          1:512
 
1881
;     WDTPS = 1024         1:1024
 
1882
;     WDTPS = 2048         1:2048
 
1883
;     WDTPS = 4096         1:4096
 
1884
;     WDTPS = 8192         1:8192
 
1885
;     WDTPS = 16384        1:16384
 
1886
;     WDTPS = 32768        1:32768
 
1887
;
 
1888
;   RTCC Clock Select:
 
1889
;     RTCOSC = INTOSCREF   RTCC uses INTRC
 
1890
;     RTCOSC = T1OSCREF    RTCC uses T1OSC/T1CKI
 
1891
;
 
1892
;   IOLOCK One-Way Set Enable bit:
 
1893
;     IOL1WAY = OFF        The IOLOCK bit (PPSCON<0>) can be set and cleared as needed
 
1894
;     IOL1WAY = ON         The IOLOCK bit (PPSCON<0>) can be set once
 
1895
;
 
1896
;   MSSP address masking:
 
1897
;     MSSP7B_EN = MSK5     5 Bit address masking mode
 
1898
;     MSSP7B_EN = MSK7     7 Bit address masking mode
 
1899
;
 
1900
;   Write/Erase Protect Page Start/End Location:
 
1901
;     WPFP = PAGE_0        Write Protect Program Flash Page 0
 
1902
;     WPFP = PAGE_1        Write Protect Program Flash Page 1
 
1903
;     WPFP = PAGE_2        Write Protect Program Flash Page 2
 
1904
;     WPFP = PAGE_3        Write Protect Program Flash Page 3
 
1905
;     WPFP = PAGE_4        Write Protect Program Flash Page 4
 
1906
;     WPFP = PAGE_5        Write Protect Program Flash Page 5
 
1907
;     WPFP = PAGE_6        Write Protect Program Flash Page 6
 
1908
;     WPFP = PAGE_7        Write Protect Program Flash Page 7
 
1909
;     WPFP = PAGE_8        Write Protect Program Flash Page 8
 
1910
;     WPFP = PAGE_9        Write Protect Program Flash Page 9
 
1911
;     WPFP = PAGE_10       Write Protect Program Flash Page 10
 
1912
;     WPFP = PAGE_11       Write Protect Program Flash Page 11
 
1913
;     WPFP = PAGE_12       Write Protect Program Flash Page 12
 
1914
;     WPFP = PAGE_13       Write Protect Program Flash Page 13
 
1915
;     WPFP = PAGE_14       Write Protect Program Flash Page 14
 
1916
;     WPFP = PAGE_15       Write Protect Program Flash Page 15
 
1917
;     WPFP = PAGE_16       Write Protect Program Flash Page 16
 
1918
;     WPFP = PAGE_17       Write Protect Program Flash Page 17
 
1919
;     WPFP = PAGE_18       Write Protect Program Flash Page 18
 
1920
;     WPFP = PAGE_19       Write Protect Program Flash Page 19
 
1921
;     WPFP = PAGE_20       Write Protect Program Flash Page 20
 
1922
;     WPFP = PAGE_21       Write Protect Program Flash Page 21
 
1923
;     WPFP = PAGE_22       Write Protect Program Flash Page 22
 
1924
;     WPFP = PAGE_23       Write Protect Program Flash Page 23
 
1925
;     WPFP = PAGE_24       Write Protect Program Flash Page 24
 
1926
;     WPFP = PAGE_25       Write Protect Program Flash Page 25
 
1927
;     WPFP = PAGE_26       Write Protect Program Flash Page 26
 
1928
;     WPFP = PAGE_27       Write Protect Program Flash Page 27
 
1929
;     WPFP = PAGE_28       Write Protect Program Flash Page 28
 
1930
;     WPFP = PAGE_29       Write Protect Program Flash Page 29
 
1931
;     WPFP = PAGE_30       Write Protect Program Flash Page 30
 
1932
;     WPFP = PAGE_31       Write Protect Program Flash Page 31
 
1933
;
 
1934
;   Write/Erase Protect Region Select bit (valid when WPDIS = 0):
 
1935
;     WPEND = PAGE_0       Page 0 to WPFP<5:0> erase/write-protected
 
1936
;     WPEND = PAGE_WPFP    Pages WPFP<5:0> to (Configuration Words page) write/erase protected
 
1937
;
 
1938
;   Write/Erase Protect Configuration Region :
 
1939
;     WPCFG = ON           Configuration Words page erase/write-protected
 
1940
;     WPCFG = OFF          Configuration Words page not erase/write-protected
 
1941
;
 
1942
;   Write Protect Disable bit:
 
1943
;     WPDIS = ON           WPFP[5:0], WPEND, and WPCFG bits enabled
 
1944
;     WPDIS = OFF          WPFP[5:0], WPEND, and WPCFG bits ignored
 
1945
;
 
1946
;==========================================================================
 
1947
_DEVID1          EQU  H'3FFFFE'
 
1948
_DEVID2          EQU  H'3FFFFF'
 
1949
 
 
1950
 
 
1951
        LIST