1        LIST
2
3;==========================================================================
4; Build date : Oct 21 2015
5;  MPASM PIC18F4510 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 PIC18F4510 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 /PIC18F4510
22;       2. LIST directive in the source file
23;               LIST   P=PIC18F4510
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 __18F4510
34           MESSG "Processor-header file mismatch.  Verify selected processor."
35        ENDIF
36
37;==========================================================================
38;       18xxxx Family        EQUates
39;==========================================================================
40FSR0             EQU  0
41FSR1             EQU  1
42FSR2             EQU  2
43
44FAST             EQU  1
45
46W                EQU  0
47A                EQU  0
48ACCESS           EQU  0
49BANKED           EQU  1
50;==========================================================================
51
52;==========================================================================
53;       16Cxxx/17Cxxx Substitutions
54;==========================================================================
55  #define DDRA  TRISA      ; PIC17Cxxx SFR substitution
56  #define DDRB  TRISB      ; PIC17Cxxx SFR substitution
57  #define DDRC  TRISC      ; PIC17Cxxx SFR substitution
58  #define DDRD  TRISD      ; PIC17Cxxx SFR substitution
59  #define DDRE  TRISE      ; PIC17Cxxx SFR substitution
60
61;==========================================================================
62;
63;       Register Definitions
64;
65;==========================================================================
66
67;----- Register Files -----------------------------------------------------
68PORTA            EQU  H'0F80'
69PORTB            EQU  H'0F81'
70PORTC            EQU  H'0F82'
71PORTD            EQU  H'0F83'
72PORTE            EQU  H'0F84'
73LATA             EQU  H'0F89'
74LATB             EQU  H'0F8A'
75LATC             EQU  H'0F8B'
76LATD             EQU  H'0F8C'
77LATE             EQU  H'0F8D'
78DDRA             EQU  H'0F92'
79TRISA            EQU  H'0F92'
80DDRB             EQU  H'0F93'
81TRISB            EQU  H'0F93'
82DDRC             EQU  H'0F94'
83TRISC            EQU  H'0F94'
84DDRD             EQU  H'0F95'
85TRISD            EQU  H'0F95'
86DDRE             EQU  H'0F96'
87TRISE            EQU  H'0F96'
88OSCTUNE          EQU  H'0F9B'
89PIE1             EQU  H'0F9D'
90PIR1             EQU  H'0F9E'
91IPR1             EQU  H'0F9F'
92PIE2             EQU  H'0FA0'
93PIR2             EQU  H'0FA1'
94IPR2             EQU  H'0FA2'
95RCSTA            EQU  H'0FAB'
96TXSTA            EQU  H'0FAC'
97TXREG            EQU  H'0FAD'
98RCREG            EQU  H'0FAE'
99SPBRG            EQU  H'0FAF'
100SPBRGH           EQU  H'0FB0'
101T3CON            EQU  H'0FB1'
102TMR3             EQU  H'0FB2'
103TMR3L            EQU  H'0FB2'
104TMR3H            EQU  H'0FB3'
105CMCON            EQU  H'0FB4'
106CVRCON           EQU  H'0FB5'
107ECCP1AS          EQU  H'0FB6'
108ECCPAS           EQU  H'0FB6'
109PWM1CON          EQU  H'0FB7'
110BAUDCON          EQU  H'0FB8'
111BAUDCTL          EQU  H'0FB8'
112CCP2CON          EQU  H'0FBA'
113CCPR2            EQU  H'0FBB'
114CCPR2L           EQU  H'0FBB'
115CCPR2H           EQU  H'0FBC'
116CCP1CON          EQU  H'0FBD'
117CCPR1            EQU  H'0FBE'
118CCPR1L           EQU  H'0FBE'
119CCPR1H           EQU  H'0FBF'
120ADCON2           EQU  H'0FC0'
121ADCON1           EQU  H'0FC1'
122ADCON0           EQU  H'0FC2'
123ADRES            EQU  H'0FC3'
124ADRESL           EQU  H'0FC3'
125ADRESH           EQU  H'0FC4'
126SSPCON2          EQU  H'0FC5'
127SSPCON1          EQU  H'0FC6'
128SSPSTAT          EQU  H'0FC7'
129SSPADD           EQU  H'0FC8'
130SSPBUF           EQU  H'0FC9'
131T2CON            EQU  H'0FCA'
132PR2              EQU  H'0FCB'
133TMR2             EQU  H'0FCC'
134T1CON            EQU  H'0FCD'
135TMR1             EQU  H'0FCE'
136TMR1L            EQU  H'0FCE'
137TMR1H            EQU  H'0FCF'
138RCON             EQU  H'0FD0'
139WDTCON           EQU  H'0FD1'
140HLVDCON          EQU  H'0FD2'
141LVDCON           EQU  H'0FD2'
142OSCCON           EQU  H'0FD3'
143T0CON            EQU  H'0FD5'
144TMR0             EQU  H'0FD6'
145TMR0L            EQU  H'0FD6'
146TMR0H            EQU  H'0FD7'
147STATUS           EQU  H'0FD8'
148FSR2L            EQU  H'0FD9'
149FSR2H            EQU  H'0FDA'
150PLUSW2           EQU  H'0FDB'
151PREINC2          EQU  H'0FDC'
152POSTDEC2         EQU  H'0FDD'
153POSTINC2         EQU  H'0FDE'
154INDF2            EQU  H'0FDF'
155BSR              EQU  H'0FE0'
156FSR1L            EQU  H'0FE1'
157FSR1H            EQU  H'0FE2'
158PLUSW1           EQU  H'0FE3'
159PREINC1          EQU  H'0FE4'
160POSTDEC1         EQU  H'0FE5'
161POSTINC1         EQU  H'0FE6'
162INDF1            EQU  H'0FE7'
163WREG             EQU  H'0FE8'
164FSR0L            EQU  H'0FE9'
165FSR0H            EQU  H'0FEA'
166PLUSW0           EQU  H'0FEB'
167PREINC0          EQU  H'0FEC'
168POSTDEC0         EQU  H'0FED'
169POSTINC0         EQU  H'0FEE'
170INDF0            EQU  H'0FEF'
171INTCON3          EQU  H'0FF0'
172INTCON2          EQU  H'0FF1'
173INTCON           EQU  H'0FF2'
174PROD             EQU  H'0FF3'
175PRODL            EQU  H'0FF3'
176PRODH            EQU  H'0FF4'
177TABLAT           EQU  H'0FF5'
178TBLPTR           EQU  H'0FF6'
179TBLPTRL          EQU  H'0FF6'
180TBLPTRH          EQU  H'0FF7'
181TBLPTRU          EQU  H'0FF8'
182PC               EQU  H'0FF9'
183PCL              EQU  H'0FF9'
184PCLATH           EQU  H'0FFA'
185PCLATU           EQU  H'0FFB'
186STKPTR           EQU  H'0FFC'
187TOS              EQU  H'0FFD'
188TOSL             EQU  H'0FFD'
189TOSH             EQU  H'0FFE'
190TOSU             EQU  H'0FFF'
191
192;----- PORTA Bits -----------------------------------------------------
193RA0              EQU  H'0000'
194RA1              EQU  H'0001'
195RA2              EQU  H'0002'
196RA3              EQU  H'0003'
197RA4              EQU  H'0004'
198RA5              EQU  H'0005'
199RA6              EQU  H'0006'
200RA7              EQU  H'0007'
201
202AN0              EQU  H'0000'
203AN1              EQU  H'0001'
204AN2              EQU  H'0002'
205AN3              EQU  H'0003'
206T0CKI            EQU  H'0004'
207AN4              EQU  H'0005'
208OSC2             EQU  H'0006'
209OSC1             EQU  H'0007'
210
211VREFN            EQU  H'0002'
212VREFP            EQU  H'0003'
213SS               EQU  H'0005'
214CLKO             EQU  H'0006'
215CLKI             EQU  H'0007'
216
217CVREF            EQU  H'0002'
218NOT_SS           EQU  H'0005'
219
220LVDIN            EQU  H'0005'
221
222HLVDIN           EQU  H'0005'
223
224
225;----- PORTB Bits -----------------------------------------------------
226RB0              EQU  H'0000'
227RB1              EQU  H'0001'
228RB2              EQU  H'0002'
229RB3              EQU  H'0003'
230RB4              EQU  H'0004'
231RB5              EQU  H'0005'
232RB6              EQU  H'0006'
233RB7              EQU  H'0007'
234
235INT0             EQU  H'0000'
236INT1             EQU  H'0001'
237INT2             EQU  H'0002'
238CCP2_PORTB       EQU  H'0003'
239KBI0             EQU  H'0004'
240KBI1             EQU  H'0005'
241KBI2             EQU  H'0006'
242KBI3             EQU  H'0007'
243
244AN12             EQU  H'0000'
245AN10             EQU  H'0001'
246AN8              EQU  H'0002'
247AN9              EQU  H'0003'
248AN11             EQU  H'0004'
249PGM              EQU  H'0005'
250PGC              EQU  H'0006'
251PGD              EQU  H'0007'
252
253
254;----- PORTC Bits -----------------------------------------------------
255RC0              EQU  H'0000'
256RC1              EQU  H'0001'
257RC2              EQU  H'0002'
258RC3              EQU  H'0003'
259RC4              EQU  H'0004'
260RC5              EQU  H'0005'
261RC6              EQU  H'0006'
262RC7              EQU  H'0007'
263
264T1OSO            EQU  H'0000'
265T1OSI            EQU  H'0001'
266CCP1             EQU  H'0002'
267SCK              EQU  H'0003'
268SDI              EQU  H'0004'
269SDO              EQU  H'0005'
270TX               EQU  H'0006'
271RX               EQU  H'0007'
272
273T13CKI           EQU  H'0000'
274CCP2_PORTC       EQU  H'0001'
275SCL              EQU  H'0003'
276SDA              EQU  H'0004'
277CK               EQU  H'0006'
278; DT is a reserved word
279; DT               EQU  H'0007'
280
281T1CKI            EQU  H'0000'
282
283
284;----- PORTD Bits -----------------------------------------------------
285RD0              EQU  H'0000'
286RD1              EQU  H'0001'
287RD2              EQU  H'0002'
288RD3              EQU  H'0003'
289RD4              EQU  H'0004'
290RD5              EQU  H'0005'
291RD6              EQU  H'0006'
292RD7              EQU  H'0007'
293
294PSP0             EQU  H'0000'
295PSP1             EQU  H'0001'
296PSP2             EQU  H'0002'
297PSP3             EQU  H'0003'
298PSP4             EQU  H'0004'
299PSP5             EQU  H'0005'
300PSP6             EQU  H'0006'
301PSP7             EQU  H'0007'
302
303P1B              EQU  H'0005'
304P1C              EQU  H'0006'
305P1D              EQU  H'0007'
306
307
308;----- PORTE Bits -----------------------------------------------------
309RE0              EQU  H'0000'
310RE1              EQU  H'0001'
311RE2              EQU  H'0002'
312RE3              EQU  H'0003'
313
314RD               EQU  H'0000'
315WR               EQU  H'0001'
316CS               EQU  H'0002'
317MCLR             EQU  H'0003'
318
319NOT_RD           EQU  H'0000'
320NOT_WR           EQU  H'0001'
321NOT_CS           EQU  H'0002'
322NOT_MCLR         EQU  H'0003'
323
324AN5              EQU  H'0000'
325AN6              EQU  H'0001'
326AN7              EQU  H'0002'
327VPP              EQU  H'0003'
328
329
330;----- LATA Bits -----------------------------------------------------
331LATA0            EQU  H'0000'
332LATA1            EQU  H'0001'
333LATA2            EQU  H'0002'
334LATA3            EQU  H'0003'
335LATA4            EQU  H'0004'
336LATA5            EQU  H'0005'
337LATA6            EQU  H'0006'
338LATA7            EQU  H'0007'
339
340
341;----- LATB Bits -----------------------------------------------------
342LATB0            EQU  H'0000'
343LATB1            EQU  H'0001'
344LATB2            EQU  H'0002'
345LATB3            EQU  H'0003'
346LATB4            EQU  H'0004'
347LATB5            EQU  H'0005'
348LATB6            EQU  H'0006'
349LATB7            EQU  H'0007'
350
351
352;----- LATC Bits -----------------------------------------------------
353LATC0            EQU  H'0000'
354LATC1            EQU  H'0001'
355LATC2            EQU  H'0002'
356LATC3            EQU  H'0003'
357LATC4            EQU  H'0004'
358LATC5            EQU  H'0005'
359LATC6            EQU  H'0006'
360LATC7            EQU  H'0007'
361
362
363;----- LATD Bits -----------------------------------------------------
364LATD0            EQU  H'0000'
365LATD1            EQU  H'0001'
366LATD2            EQU  H'0002'
367LATD3            EQU  H'0003'
368LATD4            EQU  H'0004'
369LATD5            EQU  H'0005'
370LATD6            EQU  H'0006'
371LATD7            EQU  H'0007'
372
373
374;----- LATE Bits -----------------------------------------------------
375LATE0            EQU  H'0000'
376LATE1            EQU  H'0001'
377LATE2            EQU  H'0002'
378
379
380;----- DDRA Bits -----------------------------------------------------
381TRISA0           EQU  H'0000'
382TRISA1           EQU  H'0001'
383TRISA2           EQU  H'0002'
384TRISA3           EQU  H'0003'
385TRISA4           EQU  H'0004'
386TRISA5           EQU  H'0005'
387TRISA6           EQU  H'0006'
388TRISA7           EQU  H'0007'
389
390RA0              EQU  H'0000'
391RA1              EQU  H'0001'
392RA2              EQU  H'0002'
393RA3              EQU  H'0003'
394RA4              EQU  H'0004'
395RA5              EQU  H'0005'
396RA6              EQU  H'0006'
397RA7              EQU  H'0007'
398
399
400;----- TRISA Bits -----------------------------------------------------
401TRISA0           EQU  H'0000'
402TRISA1           EQU  H'0001'
403TRISA2           EQU  H'0002'
404TRISA3           EQU  H'0003'
405TRISA4           EQU  H'0004'
406TRISA5           EQU  H'0005'
407TRISA6           EQU  H'0006'
408TRISA7           EQU  H'0007'
409
410RA0              EQU  H'0000'
411RA1              EQU  H'0001'
412RA2              EQU  H'0002'
413RA3              EQU  H'0003'
414RA4              EQU  H'0004'
415RA5              EQU  H'0005'
416RA6              EQU  H'0006'
417RA7              EQU  H'0007'
418
419
420;----- DDRB Bits -----------------------------------------------------
421TRISB0           EQU  H'0000'
422TRISB1           EQU  H'0001'
423TRISB2           EQU  H'0002'
424TRISB3           EQU  H'0003'
425TRISB4           EQU  H'0004'
426TRISB5           EQU  H'0005'
427TRISB6           EQU  H'0006'
428TRISB7           EQU  H'0007'
429
430RB0              EQU  H'0000'
431RB1              EQU  H'0001'
432RB2              EQU  H'0002'
433RB3              EQU  H'0003'
434RB4              EQU  H'0004'
435RB5              EQU  H'0005'
436RB6              EQU  H'0006'
437RB7              EQU  H'0007'
438
439
440;----- TRISB Bits -----------------------------------------------------
441TRISB0           EQU  H'0000'
442TRISB1           EQU  H'0001'
443TRISB2           EQU  H'0002'
444TRISB3           EQU  H'0003'
445TRISB4           EQU  H'0004'
446TRISB5           EQU  H'0005'
447TRISB6           EQU  H'0006'
448TRISB7           EQU  H'0007'
449
450RB0              EQU  H'0000'
451RB1              EQU  H'0001'
452RB2              EQU  H'0002'
453RB3              EQU  H'0003'
454RB4              EQU  H'0004'
455RB5              EQU  H'0005'
456RB6              EQU  H'0006'
457RB7              EQU  H'0007'
458
459
460;----- DDRC Bits -----------------------------------------------------
461TRISC0           EQU  H'0000'
462TRISC1           EQU  H'0001'
463TRISC2           EQU  H'0002'
464TRISC3           EQU  H'0003'
465TRISC4           EQU  H'0004'
466TRISC5           EQU  H'0005'
467TRISC6           EQU  H'0006'
468TRISC7           EQU  H'0007'
469
470RC0              EQU  H'0000'
471RC1              EQU  H'0001'
472RC2              EQU  H'0002'
473RC3              EQU  H'0003'
474RC4              EQU  H'0004'
475RC5              EQU  H'0005'
476RC6              EQU  H'0006'
477RC7              EQU  H'0007'
478
479
480;----- TRISC Bits -----------------------------------------------------
481TRISC0           EQU  H'0000'
482TRISC1           EQU  H'0001'
483TRISC2           EQU  H'0002'
484TRISC3           EQU  H'0003'
485TRISC4           EQU  H'0004'
486TRISC5           EQU  H'0005'
487TRISC6           EQU  H'0006'
488TRISC7           EQU  H'0007'
489
490RC0              EQU  H'0000'
491RC1              EQU  H'0001'
492RC2              EQU  H'0002'
493RC3              EQU  H'0003'
494RC4              EQU  H'0004'
495RC5              EQU  H'0005'
496RC6              EQU  H'0006'
497RC7              EQU  H'0007'
498
499
500;----- DDRD Bits -----------------------------------------------------
501TRISD0           EQU  H'0000'
502TRISD1           EQU  H'0001'
503TRISD2           EQU  H'0002'
504TRISD3           EQU  H'0003'
505TRISD4           EQU  H'0004'
506TRISD5           EQU  H'0005'
507TRISD6           EQU  H'0006'
508TRISD7           EQU  H'0007'
509
510RD0              EQU  H'0000'
511RD1              EQU  H'0001'
512RD2              EQU  H'0002'
513RD3              EQU  H'0003'
514RD4              EQU  H'0004'
515RD5              EQU  H'0005'
516RD6              EQU  H'0006'
517RD7              EQU  H'0007'
518
519
520;----- TRISD Bits -----------------------------------------------------
521TRISD0           EQU  H'0000'
522TRISD1           EQU  H'0001'
523TRISD2           EQU  H'0002'
524TRISD3           EQU  H'0003'
525TRISD4           EQU  H'0004'
526TRISD5           EQU  H'0005'
527TRISD6           EQU  H'0006'
528TRISD7           EQU  H'0007'
529
530RD0              EQU  H'0000'
531RD1              EQU  H'0001'
532RD2              EQU  H'0002'
533RD3              EQU  H'0003'
534RD4              EQU  H'0004'
535RD5              EQU  H'0005'
536RD6              EQU  H'0006'
537RD7              EQU  H'0007'
538
539
540;----- DDRE Bits -----------------------------------------------------
541TRISE0           EQU  H'0000'
542TRISE1           EQU  H'0001'
543TRISE2           EQU  H'0002'
544PSPMODE          EQU  H'0004'
545IBOV             EQU  H'0005'
546OBF              EQU  H'0006'
547IBF              EQU  H'0007'
548
549RE0              EQU  H'0000'
550RE1              EQU  H'0001'
551RE2              EQU  H'0002'
552RE3              EQU  H'0003'
553
554
555;----- TRISE Bits -----------------------------------------------------
556TRISE0           EQU  H'0000'
557TRISE1           EQU  H'0001'
558TRISE2           EQU  H'0002'
559PSPMODE          EQU  H'0004'
560IBOV             EQU  H'0005'
561OBF              EQU  H'0006'
562IBF              EQU  H'0007'
563
564RE0              EQU  H'0000'
565RE1              EQU  H'0001'
566RE2              EQU  H'0002'
567RE3              EQU  H'0003'
568
569
570;----- OSCTUNE Bits -----------------------------------------------------
571PLLEN            EQU  H'0006'
572INTSRC           EQU  H'0007'
573
574TUN0             EQU  H'0000'
575TUN1             EQU  H'0001'
576TUN2             EQU  H'0002'
577TUN3             EQU  H'0003'
578TUN4             EQU  H'0004'
579
580
581;----- PIE1 Bits -----------------------------------------------------
582TMR1IE           EQU  H'0000'
583TMR2IE           EQU  H'0001'
584CCP1IE           EQU  H'0002'
585SSPIE            EQU  H'0003'
586TXIE             EQU  H'0004'
587RCIE             EQU  H'0005'
588ADIE             EQU  H'0006'
589PSPIE            EQU  H'0007'
590
591
592;----- PIR1 Bits -----------------------------------------------------
593TMR1IF           EQU  H'0000'
594TMR2IF           EQU  H'0001'
595CCP1IF           EQU  H'0002'
596SSPIF            EQU  H'0003'
597TXIF             EQU  H'0004'
598RCIF             EQU  H'0005'
599ADIF             EQU  H'0006'
600PSPIF            EQU  H'0007'
601
602
603;----- IPR1 Bits -----------------------------------------------------
604TMR1IP           EQU  H'0000'
605TMR2IP           EQU  H'0001'
606CCP1IP           EQU  H'0002'
607SSPIP            EQU  H'0003'
608TXIP             EQU  H'0004'
609RCIP             EQU  H'0005'
610ADIP             EQU  H'0006'
611PSPIP            EQU  H'0007'
612
613
614;----- PIE2 Bits -----------------------------------------------------
615CCP2IE           EQU  H'0000'
616TMR3IE           EQU  H'0001'
617HLVDIE           EQU  H'0002'
618BCLIE            EQU  H'0003'
619CMIE             EQU  H'0006'
620OSCFIE           EQU  H'0007'
621
622LVDIE            EQU  H'0002'
623
624
625;----- PIR2 Bits -----------------------------------------------------
626CCP2IF           EQU  H'0000'
627TMR3IF           EQU  H'0001'
628HLVDIF           EQU  H'0002'
629BCLIF            EQU  H'0003'
630CMIF             EQU  H'0006'
631OSCFIF           EQU  H'0007'
632
633LVDIF            EQU  H'0002'
634
635
636;----- IPR2 Bits -----------------------------------------------------
637CCP2IP           EQU  H'0000'
638TMR3IP           EQU  H'0001'
639HLVDIP           EQU  H'0002'
640BCLIP            EQU  H'0003'
641CMIP             EQU  H'0006'
642OSCFIP           EQU  H'0007'
643
644LVDIP            EQU  H'0002'
645
646
647;----- RCSTA Bits -----------------------------------------------------
648RX9D             EQU  H'0000'
649OERR             EQU  H'0001'
650FERR             EQU  H'0002'
651ADDEN            EQU  H'0003'
652CREN             EQU  H'0004'
653SREN             EQU  H'0005'
654RX9              EQU  H'0006'
655SPEN             EQU  H'0007'
656
657ADEN             EQU  H'0003'
658
659
660;----- TXSTA Bits -----------------------------------------------------
661TX9D             EQU  H'0000'
662TRMT             EQU  H'0001'
663BRGH             EQU  H'0002'
664SENDB            EQU  H'0003'
665SYNC             EQU  H'0004'
666TXEN             EQU  H'0005'
667TX9              EQU  H'0006'
668CSRC             EQU  H'0007'
669
670
671;----- T3CON Bits -----------------------------------------------------
672TMR3ON           EQU  H'0000'
673TMR3CS           EQU  H'0001'
674NOT_T3SYNC       EQU  H'0002'
675T3CCP1           EQU  H'0003'
676T3CCP2           EQU  H'0006'
677RD16             EQU  H'0007'
678
679T3SYNC           EQU  H'0002'
680T3CKPS0          EQU  H'0004'
681T3CKPS1          EQU  H'0005'
682
683
684;----- CMCON Bits -----------------------------------------------------
685CIS              EQU  H'0003'
686C1INV            EQU  H'0004'
687C2INV            EQU  H'0005'
688C1OUT            EQU  H'0006'
689C2OUT            EQU  H'0007'
690
691CM0              EQU  H'0000'
692CM1              EQU  H'0001'
693CM2              EQU  H'0002'
694
695
696;----- CVRCON Bits -----------------------------------------------------
697CVRSS            EQU  H'0004'
698CVRR             EQU  H'0005'
699CVROE            EQU  H'0006'
700CVREN            EQU  H'0007'
701
702CVR0             EQU  H'0000'
703CVR1             EQU  H'0001'
704CVR2             EQU  H'0002'
705CVR3             EQU  H'0003'
706
707
708;----- ECCP1AS Bits -----------------------------------------------------
709ECCPASE          EQU  H'0007'
710
711PSSBD0           EQU  H'0000'
712PSSBD1           EQU  H'0001'
713PSSAC0           EQU  H'0002'
714PSSAC1           EQU  H'0003'
715ECCPAS0          EQU  H'0004'
716ECCPAS1          EQU  H'0005'
717ECCPAS2          EQU  H'0006'
718
719
720;----- ECCPAS Bits -----------------------------------------------------
721ECCPASE          EQU  H'0007'
722
723PSSBD0           EQU  H'0000'
724PSSBD1           EQU  H'0001'
725PSSAC0           EQU  H'0002'
726PSSAC1           EQU  H'0003'
727ECCPAS0          EQU  H'0004'
728ECCPAS1          EQU  H'0005'
729ECCPAS2          EQU  H'0006'
730
731
732;----- PWM1CON Bits -----------------------------------------------------
733PRSEN            EQU  H'0007'
734
735PDC0             EQU  H'0000'
736PDC1             EQU  H'0001'
737PDC2             EQU  H'0002'
738PDC3             EQU  H'0003'
739PDC4             EQU  H'0004'
740PDC5             EQU  H'0005'
741PDC6             EQU  H'0006'
742
743
744;----- BAUDCON Bits -----------------------------------------------------
745ABDEN            EQU  H'0000'
746WUE              EQU  H'0001'
747BRG16            EQU  H'0003'
748TXCKP            EQU  H'0004'
749RXDTP            EQU  H'0005'
750RCIDL            EQU  H'0006'
751ABDOVF           EQU  H'0007'
752
753SCKP             EQU  H'0004'
754RCMT             EQU  H'0006'
755
756
757;----- BAUDCTL Bits -----------------------------------------------------
758ABDEN            EQU  H'0000'
759WUE              EQU  H'0001'
760BRG16            EQU  H'0003'
761TXCKP            EQU  H'0004'
762RXDTP            EQU  H'0005'
763RCIDL            EQU  H'0006'
764ABDOVF           EQU  H'0007'
765
766SCKP             EQU  H'0004'
767RCMT             EQU  H'0006'
768
769
770;----- CCP2CON Bits -----------------------------------------------------
771CCP2M0           EQU  H'0000'
772CCP2M1           EQU  H'0001'
773CCP2M2           EQU  H'0002'
774CCP2M3           EQU  H'0003'
775CCP2Y            EQU  H'0004'
776CCP2X            EQU  H'0005'
777
778DC2B0            EQU  H'0004'
779DC2B1            EQU  H'0005'
780
781
782;----- CCP1CON Bits -----------------------------------------------------
783CCP1M0           EQU  H'0000'
784CCP1M1           EQU  H'0001'
785CCP1M2           EQU  H'0002'
786CCP1M3           EQU  H'0003'
787CCP1Y            EQU  H'0004'
788CCP1X            EQU  H'0005'
789P1M0             EQU  H'0006'
790P1M1             EQU  H'0007'
791
792DC1B0            EQU  H'0004'
793DC1B1            EQU  H'0005'
794
795
796;----- ADCON2 Bits -----------------------------------------------------
797ADFM             EQU  H'0007'
798
799ADCS0            EQU  H'0000'
800ADCS1            EQU  H'0001'
801ADCS2            EQU  H'0002'
802ACQT0            EQU  H'0003'
803ACQT1            EQU  H'0004'
804ACQT2            EQU  H'0005'
805
806
807;----- ADCON1 Bits -----------------------------------------------------
808PCFG0            EQU  H'0000'
809PCFG1            EQU  H'0001'
810PCFG2            EQU  H'0002'
811PCFG3            EQU  H'0003'
812VCFG0            EQU  H'0004'
813VCFG1            EQU  H'0005'
814
815
816;----- ADCON0 Bits -----------------------------------------------------
817ADON             EQU  H'0000'
818GO_NOT_DONE      EQU  H'0001'
819
820GO               EQU  H'0001'
821CHS0             EQU  H'0002'
822CHS1             EQU  H'0003'
823CHS2             EQU  H'0004'
824CHS3             EQU  H'0005'
825
826DONE             EQU  H'0001'
827
828NOT_DONE         EQU  H'0001'
829
830GO_DONE          EQU  H'0001'
831
832
833;----- SSPCON2 Bits -----------------------------------------------------
834SEN              EQU  H'0000'
835RSEN             EQU  H'0001'
836PEN              EQU  H'0002'
837RCEN             EQU  H'0003'
838ACKEN            EQU  H'0004'
839ACKDT            EQU  H'0005'
840ACKSTAT          EQU  H'0006'
841GCEN             EQU  H'0007'
842
843
844;----- SSPCON1 Bits -----------------------------------------------------
845CKP              EQU  H'0004'
846SSPEN            EQU  H'0005'
847SSPOV            EQU  H'0006'
848WCOL             EQU  H'0007'
849
850SSPM0            EQU  H'0000'
851SSPM1            EQU  H'0001'
852SSPM2            EQU  H'0002'
853SSPM3            EQU  H'0003'
854
855
856;----- SSPSTAT Bits -----------------------------------------------------
857BF               EQU  H'0000'
858UA               EQU  H'0001'
859R_NOT_W          EQU  H'0002'
860S                EQU  H'0003'
861P                EQU  H'0004'
862D_NOT_A          EQU  H'0005'
863CKE              EQU  H'0006'
864SMP              EQU  H'0007'
865
866R                EQU  H'0002'
867D                EQU  H'0005'
868
869
870NOT_W            EQU  H'0002'
871NOT_A            EQU  H'0005'
872
873R_W              EQU  H'0002'
874D_A              EQU  H'0005'
875
876NOT_WRITE        EQU  H'0002'
877NOT_ADDRESS      EQU  H'0005'
878
879START            EQU  H'0003'
880STOP             EQU  H'0004'
881
882
883;----- T2CON Bits -----------------------------------------------------
884TMR2ON           EQU  H'0002'
885
886T2CKPS0          EQU  H'0000'
887T2CKPS1          EQU  H'0001'
888T2OUTPS0         EQU  H'0003'
889T2OUTPS1         EQU  H'0004'
890T2OUTPS2         EQU  H'0005'
891T2OUTPS3         EQU  H'0006'
892
893TOUTPS0          EQU  H'0003'
894TOUTPS1          EQU  H'0004'
895TOUTPS2          EQU  H'0005'
896TOUTPS3          EQU  H'0006'
897
898
899;----- T1CON Bits -----------------------------------------------------
900TMR1ON           EQU  H'0000'
901TMR1CS           EQU  H'0001'
902NOT_T1SYNC       EQU  H'0002'
903T1OSCEN          EQU  H'0003'
904T1RUN            EQU  H'0006'
905RD16             EQU  H'0007'
906
907T1SYNC           EQU  H'0002'
908T1CKPS0          EQU  H'0004'
909T1CKPS1          EQU  H'0005'
910
911
912;----- RCON Bits -----------------------------------------------------
913NOT_BOR          EQU  H'0000'
914NOT_POR          EQU  H'0001'
915NOT_PD           EQU  H'0002'
916NOT_TO           EQU  H'0003'
917NOT_RI           EQU  H'0004'
918SBOREN           EQU  H'0006'
919IPEN             EQU  H'0007'
920
921BOR              EQU  H'0000'
922POR              EQU  H'0001'
923PD               EQU  H'0002'
924TO               EQU  H'0003'
925RI               EQU  H'0004'
926
927
928;----- WDTCON Bits -----------------------------------------------------
929SWDTEN           EQU  H'0000'
930
931SWDTE            EQU  H'0000'
932
933
934;----- HLVDCON Bits -----------------------------------------------------
935HLVDEN           EQU  H'0004'
936IVRST            EQU  H'0005'
937VDIRMAG          EQU  H'0007'
938
939HLVDL0           EQU  H'0000'
940HLVDL1           EQU  H'0001'
941HLVDL2           EQU  H'0002'
942HLVDL3           EQU  H'0003'
943
944LVDL0            EQU  H'0000'
945LVDL1            EQU  H'0001'
946LVDL2            EQU  H'0002'
947LVDL3            EQU  H'0003'
948LVDEN            EQU  H'0004'
949IRVST            EQU  H'0005'
950
951LVV0             EQU  H'0000'
952LVV1             EQU  H'0001'
953LVV2             EQU  H'0002'
954LVV3             EQU  H'0003'
955BGST             EQU  H'0005'
956
957
958;----- LVDCON Bits -----------------------------------------------------
959HLVDEN           EQU  H'0004'
960IVRST            EQU  H'0005'
961VDIRMAG          EQU  H'0007'
962
963HLVDL0           EQU  H'0000'
964HLVDL1           EQU  H'0001'
965HLVDL2           EQU  H'0002'
966HLVDL3           EQU  H'0003'
967
968LVDL0            EQU  H'0000'
969LVDL1            EQU  H'0001'
970LVDL2            EQU  H'0002'
971LVDL3            EQU  H'0003'
972LVDEN            EQU  H'0004'
973IRVST            EQU  H'0005'
974
975LVV0             EQU  H'0000'
976LVV1             EQU  H'0001'
977LVV2             EQU  H'0002'
978LVV3             EQU  H'0003'
979BGST             EQU  H'0005'
980
981
982;----- OSCCON Bits -----------------------------------------------------
983IOFS             EQU  H'0002'
984OSTS             EQU  H'0003'
985IDLEN            EQU  H'0007'
986
987SCS0             EQU  H'0000'
988SCS1             EQU  H'0001'
989FLTS             EQU  H'0002'
990IRCF0            EQU  H'0004'
991IRCF1            EQU  H'0005'
992IRCF2            EQU  H'0006'
993
994
995;----- T0CON Bits -----------------------------------------------------
996PSA              EQU  H'0003'
997T0SE             EQU  H'0004'
998T0CS             EQU  H'0005'
999T08BIT           EQU  H'0006'
1000TMR0ON           EQU  H'0007'
1001
1002T0PS0            EQU  H'0000'
1003T0PS1            EQU  H'0001'
1004T0PS2            EQU  H'0002'
1005T0PS3            EQU  H'0003'
1006T016BIT          EQU  H'0006'
1007
1008
1009;----- STATUS Bits -----------------------------------------------------
1010C                EQU  H'0000'
1011DC               EQU  H'0001'
1012Z                EQU  H'0002'
1013OV               EQU  H'0003'
1014N                EQU  H'0004'
1015
1016
1017;----- INTCON3 Bits -----------------------------------------------------
1018INT1IF           EQU  H'0000'
1019INT2IF           EQU  H'0001'
1020INT1IE           EQU  H'0003'
1021INT2IE           EQU  H'0004'
1022INT1IP           EQU  H'0006'
1023INT2IP           EQU  H'0007'
1024
1025INT1F            EQU  H'0000'
1026INT2F            EQU  H'0001'
1027INT1E            EQU  H'0003'
1028INT2E            EQU  H'0004'
1029INT1P            EQU  H'0006'
1030INT2P            EQU  H'0007'
1031
1032
1033;----- INTCON2 Bits -----------------------------------------------------
1034RBIP             EQU  H'0000'
1035TMR0IP           EQU  H'0002'
1036INTEDG2          EQU  H'0004'
1037INTEDG1          EQU  H'0005'
1038INTEDG0          EQU  H'0006'
1039NOT_RBPU         EQU  H'0007'
1040
1041RBPU             EQU  H'0007'
1042
1043
1044;----- INTCON Bits -----------------------------------------------------
1045RBIF             EQU  H'0000'
1046INT0IF           EQU  H'0001'
1047TMR0IF           EQU  H'0002'
1048RBIE             EQU  H'0003'
1049INT0IE           EQU  H'0004'
1050TMR0IE           EQU  H'0005'
1051PEIE_GIEL        EQU  H'0006'
1052GIE_GIEH         EQU  H'0007'
1053
1054INT0F            EQU  H'0001'
1055T0IF             EQU  H'0002'
1056INT0E            EQU  H'0004'
1057T0IE             EQU  H'0005'
1058PEIE             EQU  H'0006'
1059GIE              EQU  H'0007'
1060
1061GIEL             EQU  H'0006'
1062GIEH             EQU  H'0007'
1063
1064
1065;----- STKPTR Bits -----------------------------------------------------
1066STKUNF           EQU  H'0006'
1067STKFUL           EQU  H'0007'
1068
1069SP0              EQU  H'0000'
1070SP1              EQU  H'0001'
1071SP2              EQU  H'0002'
1072SP3              EQU  H'0003'
1073SP4              EQU  H'0004'
1074STKOVF           EQU  H'0007'
1075
1076
1077
1078;==========================================================================
1079;
1080;       RAM Definitions
1081;
1082;==========================================================================
1083       __MAXRAM  H'0FFF'
1084       __BADRAM  H'0600'-H'0F7F'
1085       __BADRAM  H'0F85'-H'0F88'
1086       __BADRAM  H'0F8E'-H'0F91'
1087       __BADRAM  H'0F97'-H'0F9A'
1088       __BADRAM  H'0F9C'
1089       __BADRAM  H'0FA3'-H'0FAA'
1090       __BADRAM  H'0FB9'
1091       __BADRAM  H'0FD4'
1092
1093;==========================================================================
1094;
1095;   IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
1096;              superseded by the CONFIG directive.  The following settings
1097;              are available for this device.
1098;
1099;   Oscillator Selection bits:
1100;     OSC = LP             LP oscillator
1101;     OSC = XT             XT oscillator
1102;     OSC = HS             HS oscillator
1103;     OSC = RC             External RC oscillator, CLKO function on RA6
1104;     OSC = EC             EC oscillator, CLKO function on RA6
1105;     OSC = ECIO6          EC oscillator, port function on RA6
1106;     OSC = HSPLL          HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1)
1107;     OSC = RCIO6          External RC oscillator, port function on RA6
1108;     OSC = INTIO67        Internal oscillator block, port function on RA6 and RA7
1109;     OSC = INTIO7         Internal oscillator block, CLKO function on RA6, port function on RA7
1110;
1111;   Fail-Safe Clock Monitor Enable bit:
1112;     FCMEN = OFF          Fail-Safe Clock Monitor disabled
1113;     FCMEN = ON           Fail-Safe Clock Monitor enabled
1114;
1115;   Internal/External Oscillator Switchover bit:
1116;     IESO = OFF           Oscillator Switchover mode disabled
1117;     IESO = ON            Oscillator Switchover mode enabled
1118;
1119;   Power-up Timer Enable bit:
1120;     PWRT = ON            PWRT enabled
1121;     PWRT = OFF           PWRT disabled
1122;
1123;   Brown-out Reset Enable bits:
1124;     BOREN = OFF          Brown-out Reset disabled in hardware and software
1125;     BOREN = ON           Brown-out Reset enabled and controlled by software (SBOREN is enabled)
1126;     BOREN = NOSLP        Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
1127;     BOREN = SBORDIS      Brown-out Reset enabled in hardware only (SBOREN is disabled)
1128;
1129;   Brown Out Reset Voltage bits:
1130;     BORV = 0             Maximum setting
1131;     BORV = 1
1132;     BORV = 2
1133;     BORV = 3             Minimum setting
1134;
1135;   Watchdog Timer Enable bit:
1136;     WDT = OFF            WDT disabled (control is placed on the SWDTEN bit)
1137;     WDT = ON             WDT enabled
1138;
1139;   Watchdog Timer Postscale Select bits:
1140;     WDTPS = 1            1:1
1141;     WDTPS = 2            1:2
1142;     WDTPS = 4            1:4
1143;     WDTPS = 8            1:8
1144;     WDTPS = 16           1:16
1145;     WDTPS = 32           1:32
1146;     WDTPS = 64           1:64
1147;     WDTPS = 128          1:128
1148;     WDTPS = 256          1:256
1149;     WDTPS = 512          1:512
1150;     WDTPS = 1024         1:1024
1151;     WDTPS = 2048         1:2048
1152;     WDTPS = 4096         1:4096
1153;     WDTPS = 8192         1:8192
1154;     WDTPS = 16384        1:16384
1155;     WDTPS = 32768        1:32768
1156;
1157;   CCP2 MUX bit:
1158;     CCP2MX = PORTBE      CCP2 input/output is multiplexed with RB3
1159;     CCP2MX = PORTC       CCP2 input/output is multiplexed with RC1
1160;
1161;   PORTB A/D Enable bit:
1162;     PBADEN = OFF         PORTB<4:0> pins are configured as digital I/O on Reset
1163;     PBADEN = ON          PORTB<4:0> pins are configured as analog input channels on Reset
1164;
1165;   Low-Power Timer1 Oscillator Enable bit:
1166;     LPT1OSC = OFF        Timer1 configured for higher power operation
1167;     LPT1OSC = ON         Timer1 configured for low-power operation
1168;
1169;   MCLR Pin Enable bit:
1170;     MCLRE = OFF          RE3 input pin enabled; MCLR disabled
1171;     MCLRE = ON           MCLR pin enabled; RE3 input pin disabled
1172;
1173;   Stack Full/Underflow Reset Enable bit:
1174;     STVREN = OFF         Stack full/underflow will not cause Reset
1175;     STVREN = ON          Stack full/underflow will cause Reset
1176;
1177;   Single-Supply ICSP Enable bit:
1178;     LVP = OFF            Single-Supply ICSP disabled
1179;     LVP = ON             Single-Supply ICSP enabled
1180;
1181;   Extended Instruction Set Enable bit:
1182;     XINST = OFF          Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
1183;     XINST = ON           Instruction set extension and Indexed Addressing mode enabled
1184;
1185;   Background Debugger Enable bit:
1186;     DEBUG = ON           Background debugger enabled, RB6 and RB7 are dedicated to In-Circuit Debug
1187;     DEBUG = OFF          Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins
1188;
1189;   Code Protection bit:
1190;     CP0 = ON             Block 0 (000800-001FFFh) code-protected
1191;     CP0 = OFF            Block 0 (000800-001FFFh) not code-protected
1192;
1193;   Code Protection bit:
1194;     CP1 = ON             Block 1 (002000-003FFFh) code-protected
1195;     CP1 = OFF            Block 1 (002000-003FFFh) not code-protected
1196;
1197;   Code Protection bit:
1198;     CP2 = ON             Block 2 (004000-005FFFh) code-protected
1199;     CP2 = OFF            Block 2 (004000-005FFFh) not code-protected
1200;
1201;   Code Protection bit:
1202;     CP3 = ON             Block 3 (006000-007FFFh) code-protected
1203;     CP3 = OFF            Block 3 (006000-007FFFh) not code-protected
1204;
1205;   Boot Block Code Protection bit:
1206;     CPB = ON             Boot block (000000-0007FFh) code-protected
1207;     CPB = OFF            Boot block (000000-0007FFh) not code-protected
1208;
1209;   Write Protection bit:
1210;     WRT0 = ON            Block 0 (000800-001FFFh) write-protected
1211;     WRT0 = OFF           Block 0 (000800-001FFFh) not write-protected
1212;
1213;   Write Protection bit:
1214;     WRT1 = ON            Block 1 (002000-003FFFh) write-protected
1215;     WRT1 = OFF           Block 1 (002000-003FFFh) not write-protected
1216;
1217;   Write Protection bit:
1218;     WRT2 = ON            Block 2 (004000-005FFFh) write-protected
1219;     WRT2 = OFF           Block 2 (004000-005FFFh) not write-protected
1220;
1221;   Write Protection bit:
1222;     WRT3 = ON            Block 3 (006000-007FFFh) write-protected
1223;     WRT3 = OFF           Block 3 (006000-007FFFh) not write-protected
1224;
1225;   Configuration Register Write Protection bit:
1226;     WRTC = ON            Configuration registers (300000-3000FFh) write-protected
1227;     WRTC = OFF           Configuration registers (300000-3000FFh) not write-protected
1228;
1229;   Boot Block Write Protection bit:
1230;     WRTB = ON            Boot block (000000-0007FFh) write-protected
1231;     WRTB = OFF           Boot block (000000-0007FFh) not write-protected
1232;
1233;   Table Read Protection bit:
1234;     EBTR0 = ON           Block 0 (000800-001FFFh) protected from table reads executed in other blocks
1235;     EBTR0 = OFF          Block 0 (000800-001FFFh) not protected from table reads executed in other blocks
1236;
1237;   Table Read Protection bit:
1238;     EBTR1 = ON           Block 1 (002000-003FFFh) protected from table reads executed in other blocks
1239;     EBTR1 = OFF          Block 1 (002000-003FFFh) not protected from table reads executed in other blocks
1240;
1241;   Table Read Protection bit:
1242;     EBTR2 = ON           Block 2 (004000-005FFFh) protected from table reads executed in other blocks
1243;     EBTR2 = OFF          Block 2 (004000-005FFFh) not protected from table reads executed in other blocks
1244;
1245;   Table Read Protection bit:
1246;     EBTR3 = ON           Block 3 (006000-007FFFh) protected from table reads executed in other blocks
1247;     EBTR3 = OFF          Block 3 (006000-007FFFh) not protected from table reads executed in other blocks
1248;
1249;   Boot Block Table Read Protection bit:
1250;     EBTRB = ON           Boot block (000000-0007FFh) protected from table reads executed in other blocks
1251;     EBTRB = OFF          Boot block (000000-0007FFh) not protected from table reads executed in other blocks
1252;
1253;==========================================================================
1254;==========================================================================
1255;
1256;       Configuration Bits
1257;
1258;   NAME            Address
1259;   CONFIG1H        300001h
1260;   CONFIG2L        300002h
1261;   CONFIG2H        300003h
1262;   CONFIG3H        300005h
1263;   CONFIG4L        300006h
1264;   CONFIG5L        300008h
1265;   CONFIG5H        300009h
1266;   CONFIG6L        30000Ah
1267;   CONFIG6H        30000Bh
1268;   CONFIG7L        30000Ch
1269;   CONFIG7H        30000Dh
1270;
1271;==========================================================================
1272
1273; The following is an assignment of address values for all of the
1274; configuration registers for the purpose of table reads
1275_CONFIG1H       EQU  H'300001'
1276_CONFIG2L       EQU  H'300002'
1277_CONFIG2H       EQU  H'300003'
1278_CONFIG3H       EQU  H'300005'
1279_CONFIG4L       EQU  H'300006'
1280_CONFIG5L       EQU  H'300008'
1281_CONFIG5H       EQU  H'300009'
1282_CONFIG6L       EQU  H'30000A'
1283_CONFIG6H       EQU  H'30000B'
1284_CONFIG7L       EQU  H'30000C'
1285_CONFIG7H       EQU  H'30000D'
1286
1287;----- CONFIG1H Options --------------------------------------------------
1288_OSC_LP_1H           EQU  H'F0'; LP oscillator
1289_OSC_XT_1H           EQU  H'F1'; XT oscillator
1290_OSC_HS_1H           EQU  H'F2'; HS oscillator
1291_OSC_RC_1H           EQU  H'F3'; External RC oscillator, CLKO function on RA6
1292_OSC_EC_1H           EQU  H'F4'; EC oscillator, CLKO function on RA6
1293_OSC_ECIO6_1H        EQU  H'F5'; EC oscillator, port function on RA6
1294_OSC_HSPLL_1H        EQU  H'F6'; HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1)
1295_OSC_RCIO6_1H        EQU  H'F7'; External RC oscillator, port function on RA6
1296_OSC_INTIO67_1H      EQU  H'F8'; Internal oscillator block, port function on RA6 and RA7
1297_OSC_INTIO7_1H       EQU  H'F9'; Internal oscillator block, CLKO function on RA6, port function on RA7
1298
1299_FCMEN_OFF_1H        EQU  H'BF'; Fail-Safe Clock Monitor disabled
1300_FCMEN_ON_1H         EQU  H'FF'; Fail-Safe Clock Monitor enabled
1301
1302_IESO_OFF_1H         EQU  H'7F'; Oscillator Switchover mode disabled
1303_IESO_ON_1H          EQU  H'FF'; Oscillator Switchover mode enabled
1304
1305;----- CONFIG2L Options --------------------------------------------------
1306_PWRT_ON_2L          EQU  H'FE'; PWRT enabled
1307_PWRT_OFF_2L         EQU  H'FF'; PWRT disabled
1308
1309_BOREN_OFF_2L        EQU  H'F9'; Brown-out Reset disabled in hardware and software
1310_BOREN_ON_2L         EQU  H'FB'; Brown-out Reset enabled and controlled by software (SBOREN is enabled)
1311_BOREN_NOSLP_2L      EQU  H'FD'; Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
1312_BOREN_SBORDIS_2L    EQU  H'FF'; Brown-out Reset enabled in hardware only (SBOREN is disabled)
1313
1314_BORV_0_2L           EQU  H'E7'; Maximum setting
1315_BORV_1_2L           EQU  H'EF'
1316_BORV_2_2L           EQU  H'F7'
1317_BORV_3_2L           EQU  H'FF'; Minimum setting
1318
1319;----- CONFIG2H Options --------------------------------------------------
1320_WDT_OFF_2H          EQU  H'FE'; WDT disabled (control is placed on the SWDTEN bit)
1321_WDT_ON_2H           EQU  H'FF'; WDT enabled
1322
1323_WDTPS_1_2H          EQU  H'E1'; 1:1
1324_WDTPS_2_2H          EQU  H'E3'; 1:2
1325_WDTPS_4_2H          EQU  H'E5'; 1:4
1326_WDTPS_8_2H          EQU  H'E7'; 1:8
1327_WDTPS_16_2H         EQU  H'E9'; 1:16
1328_WDTPS_32_2H         EQU  H'EB'; 1:32
1329_WDTPS_64_2H         EQU  H'ED'; 1:64
1330_WDTPS_128_2H        EQU  H'EF'; 1:128
1331_WDTPS_256_2H        EQU  H'F1'; 1:256
1332_WDTPS_512_2H        EQU  H'F3'; 1:512
1333_WDTPS_1024_2H       EQU  H'F5'; 1:1024
1334_WDTPS_2048_2H       EQU  H'F7'; 1:2048
1335_WDTPS_4096_2H       EQU  H'F9'; 1:4096
1336_WDTPS_8192_2H       EQU  H'FB'; 1:8192
1337_WDTPS_16384_2H      EQU  H'FD'; 1:16384
1338_WDTPS_32768_2H      EQU  H'FF'; 1:32768
1339
1340;----- CONFIG3H Options --------------------------------------------------
1341_CCP2MX_PORTBE_3H    EQU  H'FE'; CCP2 input/output is multiplexed with RB3
1342_CCP2MX_PORTC_3H     EQU  H'FF'; CCP2 input/output is multiplexed with RC1
1343
1344_PBADEN_OFF_3H       EQU  H'FD'; PORTB<4:0> pins are configured as digital I/O on Reset
1345_PBADEN_ON_3H        EQU  H'FF'; PORTB<4:0> pins are configured as analog input channels on Reset
1346
1347_LPT1OSC_OFF_3H      EQU  H'FB'; Timer1 configured for higher power operation
1348_LPT1OSC_ON_3H       EQU  H'FF'; Timer1 configured for low-power operation
1349
1350_MCLRE_OFF_3H        EQU  H'7F'; RE3 input pin enabled; MCLR disabled
1351_MCLRE_ON_3H         EQU  H'FF'; MCLR pin enabled; RE3 input pin disabled
1352
1353;----- CONFIG4L Options --------------------------------------------------
1354_STVREN_OFF_4L       EQU  H'FE'; Stack full/underflow will not cause Reset
1355_STVREN_ON_4L        EQU  H'FF'; Stack full/underflow will cause Reset
1356
1357_LVP_OFF_4L          EQU  H'FB'; Single-Supply ICSP disabled
1358_LVP_ON_4L           EQU  H'FF'; Single-Supply ICSP enabled
1359
1360_XINST_OFF_4L        EQU  H'BF'; Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
1361_XINST_ON_4L         EQU  H'FF'; Instruction set extension and Indexed Addressing mode enabled
1362
1363_DEBUG_ON_4L         EQU  H'7F'; Background debugger enabled, RB6 and RB7 are dedicated to In-Circuit Debug
1364_DEBUG_OFF_4L        EQU  H'FF'; Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins
1365
1366;----- CONFIG5L Options --------------------------------------------------
1367_CP0_ON_5L           EQU  H'FE'; Block 0 (000800-001FFFh) code-protected
1368_CP0_OFF_5L          EQU  H'FF'; Block 0 (000800-001FFFh) not code-protected
1369
1370_CP1_ON_5L           EQU  H'FD'; Block 1 (002000-003FFFh) code-protected
1371_CP1_OFF_5L          EQU  H'FF'; Block 1 (002000-003FFFh) not code-protected
1372
1373_CP2_ON_5L           EQU  H'FB'; Block 2 (004000-005FFFh) code-protected
1374_CP2_OFF_5L          EQU  H'FF'; Block 2 (004000-005FFFh) not code-protected
1375
1376_CP3_ON_5L           EQU  H'F7'; Block 3 (006000-007FFFh) code-protected
1377_CP3_OFF_5L          EQU  H'FF'; Block 3 (006000-007FFFh) not code-protected
1378
1379;----- CONFIG5H Options --------------------------------------------------
1380_CPB_ON_5H           EQU  H'BF'; Boot block (000000-0007FFh) code-protected
1381_CPB_OFF_5H          EQU  H'FF'; Boot block (000000-0007FFh) not code-protected
1382
1383;----- CONFIG6L Options --------------------------------------------------
1384_WRT0_ON_6L          EQU  H'FE'; Block 0 (000800-001FFFh) write-protected
1385_WRT0_OFF_6L         EQU  H'FF'; Block 0 (000800-001FFFh) not write-protected
1386
1387_WRT1_ON_6L          EQU  H'FD'; Block 1 (002000-003FFFh) write-protected
1388_WRT1_OFF_6L         EQU  H'FF'; Block 1 (002000-003FFFh) not write-protected
1389
1390_WRT2_ON_6L          EQU  H'FB'; Block 2 (004000-005FFFh) write-protected
1391_WRT2_OFF_6L         EQU  H'FF'; Block 2 (004000-005FFFh) not write-protected
1392
1393_WRT3_ON_6L          EQU  H'F7'; Block 3 (006000-007FFFh) write-protected
1394_WRT3_OFF_6L         EQU  H'FF'; Block 3 (006000-007FFFh) not write-protected
1395
1396;----- CONFIG6H Options --------------------------------------------------
1397_WRTC_ON_6H          EQU  H'DF'; Configuration registers (300000-3000FFh) write-protected
1398_WRTC_OFF_6H         EQU  H'FF'; Configuration registers (300000-3000FFh) not write-protected
1399
1400_WRTB_ON_6H          EQU  H'BF'; Boot block (000000-0007FFh) write-protected
1401_WRTB_OFF_6H         EQU  H'FF'; Boot block (000000-0007FFh) not write-protected
1402
1403;----- CONFIG7L Options --------------------------------------------------
1404_EBTR0_ON_7L         EQU  H'FE'; Block 0 (000800-001FFFh) protected from table reads executed in other blocks
1405_EBTR0_OFF_7L        EQU  H'FF'; Block 0 (000800-001FFFh) not protected from table reads executed in other blocks
1406
1407_EBTR1_ON_7L         EQU  H'FD'; Block 1 (002000-003FFFh) protected from table reads executed in other blocks
1408_EBTR1_OFF_7L        EQU  H'FF'; Block 1 (002000-003FFFh) not protected from table reads executed in other blocks
1409
1410_EBTR2_ON_7L         EQU  H'FB'; Block 2 (004000-005FFFh) protected from table reads executed in other blocks
1411_EBTR2_OFF_7L        EQU  H'FF'; Block 2 (004000-005FFFh) not protected from table reads executed in other blocks
1412
1413_EBTR3_ON_7L         EQU  H'F7'; Block 3 (006000-007FFFh) protected from table reads executed in other blocks
1414_EBTR3_OFF_7L        EQU  H'FF'; Block 3 (006000-007FFFh) not protected from table reads executed in other blocks
1415
1416;----- CONFIG7H Options --------------------------------------------------
1417_EBTRB_ON_7H         EQU  H'BF'; Boot block (000000-0007FFh) protected from table reads executed in other blocks
1418_EBTRB_OFF_7H        EQU  H'FF'; Boot block (000000-0007FFh) not protected from table reads executed in other blocks
1419
1420
1421;----- DEVID Equates --------------------------------------------------
1422_DEVID1          EQU  H'3FFFFE'
1423_DEVID2          EQU  H'3FFFFF'
1424
1425;----- IDLOC Equates --------------------------------------------------
1426_IDLOC0          EQU  H'200000'
1427_IDLOC1          EQU  H'200001'
1428_IDLOC2          EQU  H'200002'
1429_IDLOC3          EQU  H'200003'
1430_IDLOC4          EQU  H'200004'
1431_IDLOC5          EQU  H'200005'
1432_IDLOC6          EQU  H'200006'
1433_IDLOC7          EQU  H'200007'
1434
1435        LIST
1436