1        LIST
2
3;==========================================================================
4; Build date : Oct 21 2015
5;  MPASM PIC16F883 processor include
6;
7;  (c) Copyright 1999-2015 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 PIC16F883 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 /PIC16F883
22;       2. LIST directive in the source file
23;               LIST   P=PIC16F883
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 __16F883
34           MESSG "Processor-header file mismatch.  Verify selected processor."
35        ENDIF
36
37
38
39;==========================================================================
40;
41;       Register Definitions
42;
43;==========================================================================
44
45W                EQU  H'0000'
46F                EQU  H'0001'
47
48;----- Register Files -----------------------------------------------------
49
50;-----Bank0------------------
51INDF             EQU  H'0000'
52TMR0             EQU  H'0001'
53PCL              EQU  H'0002'
54STATUS           EQU  H'0003'
55FSR              EQU  H'0004'
56PORTA            EQU  H'0005'
57PORTB            EQU  H'0006'
58PORTC            EQU  H'0007'
59PORTE            EQU  H'0009'
60PCLATH           EQU  H'000A'
61INTCON           EQU  H'000B'
62PIR1             EQU  H'000C'
63PIR2             EQU  H'000D'
64TMR1             EQU  H'000E'
65TMR1L            EQU  H'000E'
66TMR1H            EQU  H'000F'
67T1CON            EQU  H'0010'
68TMR2             EQU  H'0011'
69T2CON            EQU  H'0012'
70SSPBUF           EQU  H'0013'
71SSPCON           EQU  H'0014'
72CCPR1            EQU  H'0015'
73CCPR1L           EQU  H'0015'
74CCPR1H           EQU  H'0016'
75CCP1CON          EQU  H'0017'
76RCSTA            EQU  H'0018'
77TXREG            EQU  H'0019'
78RCREG            EQU  H'001A'
79CCPR2            EQU  H'001B'
80CCPR2L           EQU  H'001B'
81CCPR2H           EQU  H'001C'
82CCP2CON          EQU  H'001D'
83ADRESH           EQU  H'001E'
84ADCON0           EQU  H'001F'
85
86;-----Bank1------------------
87OPTION_REG       EQU  H'0081'
88TRISA            EQU  H'0085'
89TRISB            EQU  H'0086'
90TRISC            EQU  H'0087'
91TRISE            EQU  H'0089'
92PIE1             EQU  H'008C'
93PIE2             EQU  H'008D'
94PCON             EQU  H'008E'
95OSCCON           EQU  H'008F'
96OSCTUNE          EQU  H'0090'
97SSPCON2          EQU  H'0091'
98PR2              EQU  H'0092'
99MSK              EQU  H'0093'
100SSPADD           EQU  H'0093'
101SSPMSK           EQU  H'0093'
102SSPSTAT          EQU  H'0094'
103WPUB             EQU  H'0095'
104IOCB             EQU  H'0096'
105VRCON            EQU  H'0097'
106TXSTA            EQU  H'0098'
107SPBRG            EQU  H'0099'
108SPBRGH           EQU  H'009A'
109PWM1CON          EQU  H'009B'
110ECCPAS           EQU  H'009C'
111PSTRCON          EQU  H'009D'
112ADRESL           EQU  H'009E'
113ADCON1           EQU  H'009F'
114
115;-----Bank2------------------
116WDTCON           EQU  H'0105'
117CM1CON0          EQU  H'0107'
118CM2CON0          EQU  H'0108'
119CM2CON1          EQU  H'0109'
120EEDAT            EQU  H'010C'
121EEDATA           EQU  H'010C'
122EEADR            EQU  H'010D'
123EEDATH           EQU  H'010E'
124EEADRH           EQU  H'010F'
125
126;-----Bank3------------------
127SRCON            EQU  H'0185'
128BAUDCTL          EQU  H'0187'
129ANSEL            EQU  H'0188'
130ANSELH           EQU  H'0189'
131EECON1           EQU  H'018C'
132EECON2           EQU  H'018D'
133
134;----- STATUS Bits -----------------------------------------------------
135C                EQU  H'0000'
136DC               EQU  H'0001'
137Z                EQU  H'0002'
138NOT_PD           EQU  H'0003'
139NOT_TO           EQU  H'0004'
140IRP              EQU  H'0007'
141
142RP0              EQU  H'0005'
143RP1              EQU  H'0006'
144
145
146;----- PORTA Bits -----------------------------------------------------
147RA0              EQU  H'0000'
148RA1              EQU  H'0001'
149RA2              EQU  H'0002'
150RA3              EQU  H'0003'
151RA4              EQU  H'0004'
152RA5              EQU  H'0005'
153RA6              EQU  H'0006'
154RA7              EQU  H'0007'
155
156
157;----- PORTB Bits -----------------------------------------------------
158RB0              EQU  H'0000'
159RB1              EQU  H'0001'
160RB2              EQU  H'0002'
161RB3              EQU  H'0003'
162RB4              EQU  H'0004'
163RB5              EQU  H'0005'
164RB6              EQU  H'0006'
165RB7              EQU  H'0007'
166
167
168;----- PORTC Bits -----------------------------------------------------
169RC0              EQU  H'0000'
170RC1              EQU  H'0001'
171RC2              EQU  H'0002'
172RC3              EQU  H'0003'
173RC4              EQU  H'0004'
174RC5              EQU  H'0005'
175RC6              EQU  H'0006'
176RC7              EQU  H'0007'
177
178
179;----- PORTE Bits -----------------------------------------------------
180RE3              EQU  H'0003'
181
182
183;----- INTCON Bits -----------------------------------------------------
184RBIF             EQU  H'0000'
185INTF             EQU  H'0001'
186T0IF             EQU  H'0002'
187RBIE             EQU  H'0003'
188INTE             EQU  H'0004'
189T0IE             EQU  H'0005'
190PEIE             EQU  H'0006'
191GIE              EQU  H'0007'
192
193TMR0IF           EQU  H'0002'
194TMR0IE           EQU  H'0005'
195
196
197;----- PIR1 Bits -----------------------------------------------------
198TMR1IF           EQU  H'0000'
199TMR2IF           EQU  H'0001'
200CCP1IF           EQU  H'0002'
201SSPIF            EQU  H'0003'
202TXIF             EQU  H'0004'
203RCIF             EQU  H'0005'
204ADIF             EQU  H'0006'
205
206
207;----- PIR2 Bits -----------------------------------------------------
208CCP2IF           EQU  H'0000'
209ULPWUIF          EQU  H'0002'
210BCLIF            EQU  H'0003'
211EEIF             EQU  H'0004'
212C1IF             EQU  H'0005'
213C2IF             EQU  H'0006'
214OSFIF            EQU  H'0007'
215
216
217;----- T1CON Bits -----------------------------------------------------
218TMR1ON           EQU  H'0000'
219TMR1CS           EQU  H'0001'
220NOT_T1SYNC       EQU  H'0002'
221T1OSCEN          EQU  H'0003'
222TMR1GE           EQU  H'0006'
223T1GINV           EQU  H'0007'
224
225T1INSYNC         EQU  H'0002'
226T1CKPS0          EQU  H'0004'
227T1CKPS1          EQU  H'0005'
228T1GIV            EQU  H'0007'
229
230T1SYNC           EQU  H'0002'
231
232
233;----- T2CON Bits -----------------------------------------------------
234TMR2ON           EQU  H'0002'
235
236T2CKPS0          EQU  H'0000'
237T2CKPS1          EQU  H'0001'
238TOUTPS0          EQU  H'0003'
239TOUTPS1          EQU  H'0004'
240TOUTPS2          EQU  H'0005'
241TOUTPS3          EQU  H'0006'
242
243
244;----- SSPCON Bits -----------------------------------------------------
245CKP              EQU  H'0004'
246SSPEN            EQU  H'0005'
247SSPOV            EQU  H'0006'
248WCOL             EQU  H'0007'
249
250SSPM0            EQU  H'0000'
251SSPM1            EQU  H'0001'
252SSPM2            EQU  H'0002'
253SSPM3            EQU  H'0003'
254
255
256;----- CCP1CON Bits -----------------------------------------------------
257CCP1M0           EQU  H'0000'
258CCP1M1           EQU  H'0001'
259CCP1M2           EQU  H'0002'
260CCP1M3           EQU  H'0003'
261DC1B0            EQU  H'0004'
262DC1B1            EQU  H'0005'
263P1M0             EQU  H'0006'
264P1M1             EQU  H'0007'
265
266CCP1Y            EQU  H'0004'
267CCP1X            EQU  H'0005'
268
269
270;----- RCSTA Bits -----------------------------------------------------
271RX9D             EQU  H'0000'
272OERR             EQU  H'0001'
273FERR             EQU  H'0002'
274ADDEN            EQU  H'0003'
275CREN             EQU  H'0004'
276SREN             EQU  H'0005'
277RX9              EQU  H'0006'
278SPEN             EQU  H'0007'
279
280RCD8             EQU  H'0000'
281RC9              EQU  H'0006'
282
283NOT_RC8          EQU  H'0006'
284
285RC8_9            EQU  H'0006'
286
287
288;----- CCP2CON Bits -----------------------------------------------------
289DC2B0            EQU  H'0004'
290DC2B1            EQU  H'0005'
291
292CCP2M0           EQU  H'0000'
293CCP2M1           EQU  H'0001'
294CCP2M2           EQU  H'0002'
295CCP2M3           EQU  H'0003'
296CCP2Y            EQU  H'0004'
297CCP2X            EQU  H'0005'
298
299
300;----- ADCON0 Bits -----------------------------------------------------
301ADON             EQU  H'0000'
302GO_NOT_DONE      EQU  H'0001'
303
304GO               EQU  H'0001'
305CHS0             EQU  H'0002'
306CHS1             EQU  H'0003'
307CHS2             EQU  H'0004'
308CHS3             EQU  H'0005'
309ADCS0            EQU  H'0006'
310ADCS1            EQU  H'0007'
311
312NOT_DONE         EQU  H'0001'
313
314GO_DONE          EQU  H'0001'
315
316
317;----- OPTION_REG Bits -----------------------------------------------------
318PSA              EQU  H'0003'
319T0SE             EQU  H'0004'
320T0CS             EQU  H'0005'
321INTEDG           EQU  H'0006'
322NOT_RBPU         EQU  H'0007'
323
324PS0              EQU  H'0000'
325PS1              EQU  H'0001'
326PS2              EQU  H'0002'
327
328
329;----- TRISA Bits -----------------------------------------------------
330TRISA0           EQU  H'0000'
331TRISA1           EQU  H'0001'
332TRISA2           EQU  H'0002'
333TRISA3           EQU  H'0003'
334TRISA4           EQU  H'0004'
335TRISA5           EQU  H'0005'
336TRISA6           EQU  H'0006'
337TRISA7           EQU  H'0007'
338
339
340;----- TRISB Bits -----------------------------------------------------
341TRISB0           EQU  H'0000'
342TRISB1           EQU  H'0001'
343TRISB2           EQU  H'0002'
344TRISB3           EQU  H'0003'
345TRISB4           EQU  H'0004'
346TRISB5           EQU  H'0005'
347TRISB6           EQU  H'0006'
348TRISB7           EQU  H'0007'
349
350
351;----- TRISC Bits -----------------------------------------------------
352TRISC0           EQU  H'0000'
353TRISC1           EQU  H'0001'
354TRISC2           EQU  H'0002'
355TRISC3           EQU  H'0003'
356TRISC4           EQU  H'0004'
357TRISC5           EQU  H'0005'
358TRISC6           EQU  H'0006'
359TRISC7           EQU  H'0007'
360
361
362;----- TRISE Bits -----------------------------------------------------
363TRISE3           EQU  H'0003'
364
365
366;----- PIE1 Bits -----------------------------------------------------
367TMR1IE           EQU  H'0000'
368TMR2IE           EQU  H'0001'
369CCP1IE           EQU  H'0002'
370SSPIE            EQU  H'0003'
371TXIE             EQU  H'0004'
372RCIE             EQU  H'0005'
373ADIE             EQU  H'0006'
374
375
376;----- PIE2 Bits -----------------------------------------------------
377CCP2IE           EQU  H'0000'
378ULPWUIE          EQU  H'0002'
379BCLIE            EQU  H'0003'
380EEIE             EQU  H'0004'
381C1IE             EQU  H'0005'
382C2IE             EQU  H'0006'
383OSFIE            EQU  H'0007'
384
385
386;----- PCON Bits -----------------------------------------------------
387NOT_BOR          EQU  H'0000'
388NOT_POR          EQU  H'0001'
389SBOREN           EQU  H'0004'
390ULPWUE           EQU  H'0005'
391
392NOT_BO           EQU  H'0000'
393
394
395;----- OSCCON Bits -----------------------------------------------------
396SCS              EQU  H'0000'
397LTS              EQU  H'0001'
398HTS              EQU  H'0002'
399OSTS             EQU  H'0003'
400
401IRCF0            EQU  H'0004'
402IRCF1            EQU  H'0005'
403IRCF2            EQU  H'0006'
404
405
406;----- OSCTUNE Bits -----------------------------------------------------
407TUN0             EQU  H'0000'
408TUN1             EQU  H'0001'
409TUN2             EQU  H'0002'
410TUN3             EQU  H'0003'
411TUN4             EQU  H'0004'
412
413
414;----- SSPCON2 Bits -----------------------------------------------------
415SEN              EQU  H'0000'
416RSEN             EQU  H'0001'
417PEN              EQU  H'0002'
418RCEN             EQU  H'0003'
419ACKEN            EQU  H'0004'
420ACKDT            EQU  H'0005'
421ACKSTAT          EQU  H'0006'
422GCEN             EQU  H'0007'
423
424
425;----- MSK Bits -----------------------------------------------------
426MSK0             EQU  H'0000'
427MSK1             EQU  H'0001'
428MSK2             EQU  H'0002'
429MSK3             EQU  H'0003'
430MSK4             EQU  H'0004'
431MSK5             EQU  H'0005'
432MSK6             EQU  H'0006'
433MSK7             EQU  H'0007'
434
435
436;----- SSPMSK Bits -----------------------------------------------------
437MSK0             EQU  H'0000'
438MSK1             EQU  H'0001'
439MSK2             EQU  H'0002'
440MSK3             EQU  H'0003'
441MSK4             EQU  H'0004'
442MSK5             EQU  H'0005'
443MSK6             EQU  H'0006'
444MSK7             EQU  H'0007'
445
446
447;----- SSPSTAT Bits -----------------------------------------------------
448BF               EQU  H'0000'
449UA               EQU  H'0001'
450R_NOT_W          EQU  H'0002'
451S                EQU  H'0003'
452P                EQU  H'0004'
453D_NOT_A          EQU  H'0005'
454CKE              EQU  H'0006'
455SMP              EQU  H'0007'
456
457R                EQU  H'0002'
458D                EQU  H'0005'
459
460I2C_READ         EQU  H'0002'
461I2C_START        EQU  H'0003'
462I2C_STOP         EQU  H'0004'
463I2C_DATA         EQU  H'0005'
464
465NOT_W            EQU  H'0002'
466NOT_A            EQU  H'0005'
467
468NOT_WRITE        EQU  H'0002'
469NOT_ADDRESS      EQU  H'0005'
470
471R_W              EQU  H'0002'
472D_A              EQU  H'0005'
473
474READ_WRITE       EQU  H'0002'
475DATA_ADDRESS     EQU  H'0005'
476
477
478;----- WPUB Bits -----------------------------------------------------
479WPUB0            EQU  H'0000'
480WPUB1            EQU  H'0001'
481WPUB2            EQU  H'0002'
482WPUB3            EQU  H'0003'
483WPUB4            EQU  H'0004'
484WPUB5            EQU  H'0005'
485WPUB6            EQU  H'0006'
486WPUB7            EQU  H'0007'
487
488
489;----- IOCB Bits -----------------------------------------------------
490IOCB0            EQU  H'0000'
491IOCB1            EQU  H'0001'
492IOCB2            EQU  H'0002'
493IOCB3            EQU  H'0003'
494IOCB4            EQU  H'0004'
495IOCB5            EQU  H'0005'
496IOCB6            EQU  H'0006'
497IOCB7            EQU  H'0007'
498
499
500;----- VRCON Bits -----------------------------------------------------
501VRSS             EQU  H'0004'
502VRR              EQU  H'0005'
503VROE             EQU  H'0006'
504VREN             EQU  H'0007'
505
506VR0              EQU  H'0000'
507VR1              EQU  H'0001'
508VR2              EQU  H'0002'
509VR3              EQU  H'0003'
510
511
512;----- TXSTA Bits -----------------------------------------------------
513TX9D             EQU  H'0000'
514TRMT             EQU  H'0001'
515BRGH             EQU  H'0002'
516SENDB            EQU  H'0003'
517SYNC             EQU  H'0004'
518TXEN             EQU  H'0005'
519TX9              EQU  H'0006'
520CSRC             EQU  H'0007'
521
522TXD8             EQU  H'0000'
523NOT_TX8          EQU  H'0006'
524
525TX8_9            EQU  H'0006'
526
527
528;----- SPBRG Bits -----------------------------------------------------
529BRG0             EQU  H'0000'
530BRG1             EQU  H'0001'
531BRG2             EQU  H'0002'
532BRG3             EQU  H'0003'
533BRG4             EQU  H'0004'
534BRG5             EQU  H'0005'
535BRG6             EQU  H'0006'
536BRG7             EQU  H'0007'
537
538
539;----- SPBRGH Bits -----------------------------------------------------
540BRG8             EQU  H'0000'
541BRG9             EQU  H'0001'
542BRG10            EQU  H'0002'
543BRG11            EQU  H'0003'
544BRG12            EQU  H'0004'
545BRG13            EQU  H'0005'
546BRG14            EQU  H'0006'
547BRG15            EQU  H'0007'
548
549
550;----- PWM1CON Bits -----------------------------------------------------
551PRSEN            EQU  H'0007'
552
553PDC0             EQU  H'0000'
554PDC1             EQU  H'0001'
555PDC2             EQU  H'0002'
556PDC3             EQU  H'0003'
557PDC4             EQU  H'0004'
558PDC5             EQU  H'0005'
559PDC6             EQU  H'0006'
560
561
562;----- ECCPAS Bits -----------------------------------------------------
563ECCPASE          EQU  H'0007'
564
565PSSBD0           EQU  H'0000'
566PSSBD1           EQU  H'0001'
567PSSAC0           EQU  H'0002'
568PSSAC1           EQU  H'0003'
569ECCPAS0          EQU  H'0004'
570ECCPAS1          EQU  H'0005'
571ECCPAS2          EQU  H'0006'
572
573
574;----- PSTRCON Bits -----------------------------------------------------
575STRA             EQU  H'0000'
576STRB             EQU  H'0001'
577STRC             EQU  H'0002'
578STRD             EQU  H'0003'
579STRSYNC          EQU  H'0004'
580
581
582;----- ADCON1 Bits -----------------------------------------------------
583VCFG0            EQU  H'0004'
584VCFG1            EQU  H'0005'
585ADFM             EQU  H'0007'
586
587
588;----- WDTCON Bits -----------------------------------------------------
589SWDTEN           EQU  H'0000'
590
591WDTPS0           EQU  H'0001'
592WDTPS1           EQU  H'0002'
593WDTPS2           EQU  H'0003'
594WDTPS3           EQU  H'0004'
595
596
597;----- CM1CON0 Bits -----------------------------------------------------
598C1R              EQU  H'0002'
599C1POL            EQU  H'0004'
600C1OE             EQU  H'0005'
601C1OUT            EQU  H'0006'
602C1ON             EQU  H'0007'
603
604C1CH0            EQU  H'0000'
605C1CH1            EQU  H'0001'
606
607
608;----- CM2CON0 Bits -----------------------------------------------------
609C2R              EQU  H'0002'
610C2POL            EQU  H'0004'
611C2OE             EQU  H'0005'
612C2OUT            EQU  H'0006'
613C2ON             EQU  H'0007'
614
615C2CH0            EQU  H'0000'
616C2CH1            EQU  H'0001'
617
618
619;----- CM2CON1 Bits -----------------------------------------------------
620C2SYNC           EQU  H'0000'
621T1GSS            EQU  H'0001'
622C2RSEL           EQU  H'0004'
623C1RSEL           EQU  H'0005'
624MC2OUT           EQU  H'0006'
625MC1OUT           EQU  H'0007'
626
627
628;----- SRCON Bits -----------------------------------------------------
629FVREN            EQU  H'0000'
630PULSR            EQU  H'0002'
631PULSS            EQU  H'0003'
632C2REN            EQU  H'0004'
633C1SEN            EQU  H'0005'
634SR0              EQU  H'0006'
635SR1              EQU  H'0007'
636
637
638;----- BAUDCTL Bits -----------------------------------------------------
639ABDEN            EQU  H'0000'
640WUE              EQU  H'0001'
641BRG16            EQU  H'0003'
642SCKP             EQU  H'0004'
643RCIDL            EQU  H'0006'
644ABDOVF           EQU  H'0007'
645
646
647;----- ANSEL Bits -----------------------------------------------------
648ANS0             EQU  H'0000'
649ANS1             EQU  H'0001'
650ANS2             EQU  H'0002'
651ANS3             EQU  H'0003'
652ANS4             EQU  H'0004'
653
654
655;----- ANSELH Bits -----------------------------------------------------
656ANS8             EQU  H'0000'
657ANS9             EQU  H'0001'
658ANS10            EQU  H'0002'
659ANS11            EQU  H'0003'
660ANS12            EQU  H'0004'
661ANS13            EQU  H'0005'
662
663
664;----- EECON1 Bits -----------------------------------------------------
665RD               EQU  H'0000'
666WR               EQU  H'0001'
667WREN             EQU  H'0002'
668WRERR            EQU  H'0003'
669EEPGD            EQU  H'0007'
670
671
672
673
674;==========================================================================
675;
676;       RAM Definitions
677;
678;==========================================================================
679       __MAXRAM  H'01FF'
680       __BADRAM  H'0008'
681       __BADRAM  H'0088'
682       __BADRAM  H'0110'-H'011F'
683       __BADRAM  H'018E'-H'018F'
684       __BADRAM  H'0190'-H'01EF'
685
686;==========================================================================
687;
688;       Configuration Bits
689;
690;   NAME            Address
691;   CONFIG1           2007h
692;   CONFIG2           2008h
693;
694;==========================================================================
695
696; The following is an assignment of address values for all of the
697; configuration registers for the purpose of table reads
698_CONFIG1         EQU  H'2007'
699_CONFIG2         EQU  H'2008'
700
701;----- CONFIG1 Options --------------------------------------------------
702_FOSC_LP             EQU  H'3FF8'    ; LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
703_LP_OSC              EQU  H'3FF8'    ; LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
704_FOSC_XT             EQU  H'3FF9'    ; XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
705_XT_OSC              EQU  H'3FF9'    ; XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
706_FOSC_HS             EQU  H'3FFA'    ; HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
707_HS_OSC              EQU  H'3FFA'    ; HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
708_FOSC_EC             EQU  H'3FFB'    ; EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN
709_EC_OSC              EQU  H'3FFB'    ; EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN
710_FOSC_INTRC_NOCLKOUT EQU  H'3FFC'    ; INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
711_INTRC_OSC_NOCLKOUT  EQU  H'3FFC'    ; INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
712_INTOSCIO            EQU  H'3FFC'    ; INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
713_FOSC_INTRC_CLKOUT   EQU  H'3FFD'    ; INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
714_INTRC_OSC_CLKOUT    EQU  H'3FFD'    ; INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
715_INTOSC              EQU  H'3FFD'    ; INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
716_FOSC_EXTRC_NOCLKOUT EQU  H'3FFE'    ; RCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN
717_EXTRC_OSC_NOCLKOUT  EQU  H'3FFE'    ; RCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN
718_EXTRCIO             EQU  H'3FFE'    ; RCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN
719_FOSC_EXTRC_CLKOUT   EQU  H'3FFF'    ; RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN
720_EXTRC_OSC_CLKOUT    EQU  H'3FFF'    ; RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN
721_EXTRC               EQU  H'3FFF'    ; RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN
722
723_WDTE_OFF            EQU  H'3FF7'    ; WDT disabled and can be enabled by SWDTEN bit of the WDTCON register
724_WDT_OFF             EQU  H'3FF7'    ; WDT disabled and can be enabled by SWDTEN bit of the WDTCON register
725_WDTE_ON             EQU  H'3FFF'    ; WDT enabled
726_WDT_ON              EQU  H'3FFF'    ; WDT enabled
727
728_PWRTE_ON            EQU  H'3FEF'    ; PWRT enabled
729_PWRTE_OFF           EQU  H'3FFF'    ; PWRT disabled
730
731_MCLRE_OFF           EQU  H'3FDF'    ; RE3/MCLR pin function is digital input, MCLR internally tied to VDD
732_MCLRE_ON            EQU  H'3FFF'    ; RE3/MCLR pin function is MCLR
733
734_CP_ON               EQU  H'3FBF'    ; Program memory code protection is enabled
735_CP_OFF              EQU  H'3FFF'    ; Program memory code protection is disabled
736
737_CPD_ON              EQU  H'3F7F'    ; Data memory code protection is enabled
738_CPD_OFF             EQU  H'3FFF'    ; Data memory code protection is disabled
739
740_BOREN_OFF           EQU  H'3CFF'    ; BOR disabled
741_BOR_OFF             EQU  H'3CFF'    ; BOR disabled
742_BOREN_SBODEN        EQU  H'3DFF'    ; BOR controlled by SBOREN bit of the PCON register
743_BOR_SBODEN          EQU  H'3DFF'    ; BOR controlled by SBOREN bit of the PCON register
744_BOREN_NSLEEP        EQU  H'3EFF'    ; BOR enabled during operation and disabled in Sleep
745_BOR_NSLEEP          EQU  H'3EFF'    ; BOR enabled during operation and disabled in Sleep
746_BOREN_ON            EQU  H'3FFF'    ; BOR enabled
747_BOR_ON              EQU  H'3FFF'    ; BOR enabled
748
749_IESO_OFF            EQU  H'3BFF'    ; Internal/External Switchover mode is disabled
750_IESO_ON             EQU  H'3FFF'    ; Internal/External Switchover mode is enabled
751
752_FCMEN_OFF           EQU  H'37FF'    ; Fail-Safe Clock Monitor is disabled
753_FCMEN_ON            EQU  H'3FFF'    ; Fail-Safe Clock Monitor is enabled
754
755_LVP_OFF             EQU  H'2FFF'    ; RB3 pin has digital I/O, HV on MCLR must be used for programming
756_LVP_ON              EQU  H'3FFF'    ; RB3/PGM pin has PGM function, low voltage programming enabled
757
758_DEBUG_ON            EQU  H'1FFF'    ; In_Circuit Debugger enabled, RB6/ICSPCLK and RB7/ICSPDAT are dedicated to the debugger
759_DEBUG_OFF           EQU  H'3FFF'    ; In-Circuit Debugger disabled, RB6/ICSPCLK and RB7/ICSPDAT are general purpose I/O pins
760
761;----- CONFIG2 Options --------------------------------------------------
762_BOR4V_BOR21V        EQU  H'3EFF'    ; Brown-out Reset set to 2.1V
763_BOR21V              EQU  H'3EFF'    ; Brown-out Reset set to 2.1V
764_BOR4V_BOR40V        EQU  H'3FFF'    ; Brown-out Reset set to 4.0V
765_BOR40V              EQU  H'3FFF'    ; Brown-out Reset set to 4.0V
766
767_WRT_HALF            EQU  H'39FF'    ; 0000h to 07FFh write protected, 0800h to 0FFFh may be modified by EECON control
768_WRT_1FOURTH         EQU  H'3BFF'    ; 0000h to 03FFh write protected, 0400h to 0FFFh may be modified by EECON control
769_WRT_256             EQU  H'3DFF'    ; 0000h to 00FFh write protected, 0100h to 0FFFh may be modified by EECON control
770_WRT_OFF             EQU  H'3FFF'    ; Write protection off
771
772;----- DEVID Equates --------------------------------------------------
773_DEVID1          EQU  H'2006'
774
775;----- IDLOC Equates --------------------------------------------------
776_IDLOC0          EQU  H'2000'
777_IDLOC1          EQU  H'2001'
778_IDLOC2          EQU  H'2002'
779_IDLOC3          EQU  H'2003'
780
781        LIST
782