643
|
1 LIST
|
|
2
|
|
3 ;==========================================================================
|
|
4 ; MPASM PIC18F87K22 processor include
|
|
5 ;
|
|
6 ; (c) Copyright 1999-2012 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 PIC18F87K22 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 /PIC18F87K22
|
|
21 ; 2. LIST directive in the source file
|
|
22 ; LIST P=PIC18F87K22
|
|
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 __18F87K22
|
|
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 PMD3 EQU H'0F16'
|
|
68 PMD2 EQU H'0F17'
|
|
69 PMD1 EQU H'0F18'
|
|
70 PMD0 EQU H'0F19'
|
|
71 PSTR3CON EQU H'0F1A'
|
|
72 PSTR2CON EQU H'0F1B'
|
|
73 TXREG2 EQU H'0F1C'
|
|
74 RCREG2 EQU H'0F1D'
|
|
75 SPBRG2 EQU H'0F1E'
|
|
76 SPBRGH2 EQU H'0F1F'
|
|
77 BAUDCON2 EQU H'0F20'
|
|
78 TXSTA2 EQU H'0F21'
|
|
79 RCSTA2 EQU H'0F22'
|
|
80 ANCON2 EQU H'0F23'
|
|
81 ANCON1 EQU H'0F24'
|
|
82 ANCON0 EQU H'0F25'
|
|
83 MEMCON EQU H'0F26'
|
|
84 ODCON3 EQU H'0F27'
|
|
85 ODCON2 EQU H'0F28'
|
|
86 ODCON1 EQU H'0F29'
|
|
87 REFOCON EQU H'0F2A'
|
|
88 CCPTMRS2 EQU H'0F2B'
|
|
89 CCPTMRS1 EQU H'0F2C'
|
|
90 CCPTMRS0 EQU H'0F2D'
|
|
91 CM3CON EQU H'0F2E'
|
|
92 CM3CON1 EQU H'0F2E'
|
|
93 CM2CON EQU H'0F2F'
|
|
94 CM2CON1 EQU H'0F2F'
|
|
95 T12CON EQU H'0F30'
|
|
96 PR12 EQU H'0F31'
|
|
97 TMR12 EQU H'0F32'
|
|
98 T10CON EQU H'0F33'
|
|
99 PR10 EQU H'0F34'
|
|
100 TMR10 EQU H'0F35'
|
|
101 T8CON EQU H'0F36'
|
|
102 PR8 EQU H'0F37'
|
|
103 TMR8 EQU H'0F38'
|
|
104 T6CON EQU H'0F39'
|
|
105 PR6 EQU H'0F3A'
|
|
106 TMR6 EQU H'0F3B'
|
|
107 T7GCON EQU H'0F3C'
|
|
108 T7CON EQU H'0F3D'
|
|
109 TMR7 EQU H'0F3E'
|
|
110 TMR7L EQU H'0F3E'
|
|
111 TMR7H EQU H'0F3F'
|
|
112 CCP10CON EQU H'0F40'
|
|
113 CCPR10 EQU H'0F41'
|
|
114 CCPR10L EQU H'0F41'
|
|
115 CCPR10H EQU H'0F42'
|
|
116 CCP9CON EQU H'0F43'
|
|
117 CCPR9 EQU H'0F44'
|
|
118 CCPR9L EQU H'0F44'
|
|
119 CCPR9H EQU H'0F45'
|
|
120 CCP8CON EQU H'0F46'
|
|
121 CCPR8 EQU H'0F47'
|
|
122 CCPR8L EQU H'0F47'
|
|
123 CCPR8H EQU H'0F48'
|
|
124 CCP3CON EQU H'0F49'
|
|
125 CCPR3 EQU H'0F4A'
|
|
126 CCPR3L EQU H'0F4A'
|
|
127 CCPR3H EQU H'0F4B'
|
|
128 ECCP3DEL EQU H'0F4C'
|
|
129 ECCP3AS EQU H'0F4D'
|
|
130 CCP2CON EQU H'0F4E'
|
|
131 ECCP2CON EQU H'0F4E'
|
|
132 CCPR2 EQU H'0F4F'
|
|
133 CCPR2L EQU H'0F4F'
|
|
134 CCPR2H EQU H'0F50'
|
|
135 ECCP2DEL EQU H'0F51'
|
|
136 PWM2CON EQU H'0F51'
|
|
137 ECCP2AS EQU H'0F52'
|
|
138 PADCFG1 EQU H'0F53'
|
|
139 CM1CON EQU H'0F54'
|
|
140 CM1CON1 EQU H'0F54'
|
|
141 CTMUICON EQU H'0F55'
|
|
142 CTMUCONL EQU H'0F56'
|
|
143 CTMUCONH EQU H'0F57'
|
|
144 ALRMVAL EQU H'0F58'
|
|
145 ALRMVALL EQU H'0F58'
|
|
146 ALRMVALH EQU H'0F59'
|
|
147 ALRMRPT EQU H'0F5A'
|
|
148 ALRMCFG EQU H'0F5B'
|
|
149 RTCVAL EQU H'0F5C'
|
|
150 RTCVALL EQU H'0F5C'
|
|
151 RTCVALH EQU H'0F5D'
|
|
152 RTCCAL EQU H'0F5E'
|
|
153 RTCCFG EQU H'0F5F'
|
|
154 PIE6 EQU H'0F60'
|
|
155 EEDATA EQU H'0F61'
|
|
156 EEADR EQU H'0F62'
|
|
157 EEADRH EQU H'0F63'
|
|
158 OSCCON2 EQU H'0F64'
|
|
159 BAUDCON EQU H'0F65'
|
|
160 BAUDCON1 EQU H'0F65'
|
|
161 BAUDCTL EQU H'0F65'
|
|
162 SSP2CON2 EQU H'0F66'
|
|
163 SSP2CON1 EQU H'0F67'
|
|
164 SSP2STAT EQU H'0F68'
|
|
165 SSP2ADD EQU H'0F69'
|
|
166 SSP2MSK EQU H'0F69'
|
|
167 SSP2BUF EQU H'0F6A'
|
|
168 T4CON EQU H'0F6B'
|
|
169 PR4 EQU H'0F6C'
|
|
170 TMR4 EQU H'0F6D'
|
|
171 CCP7CON EQU H'0F6E'
|
|
172 CCPR7 EQU H'0F6F'
|
|
173 CCPR7L EQU H'0F6F'
|
|
174 CCPR7H EQU H'0F70'
|
|
175 CCP6CON EQU H'0F71'
|
|
176 CCPR6 EQU H'0F72'
|
|
177 CCPR6L EQU H'0F72'
|
|
178 CCPR6H EQU H'0F73'
|
|
179 CCP5CON EQU H'0F74'
|
|
180 CCPR5 EQU H'0F75'
|
|
181 CCPR5L EQU H'0F75'
|
|
182 CCPR5H EQU H'0F76'
|
|
183 CCP4CON EQU H'0F77'
|
|
184 CCPR4 EQU H'0F78'
|
|
185 CCPR4L EQU H'0F78'
|
|
186 CCPR4H EQU H'0F79'
|
|
187 T5GCON EQU H'0F7A'
|
|
188 T5CON EQU H'0F7B'
|
|
189 TMR5 EQU H'0F7C'
|
|
190 TMR5L EQU H'0F7C'
|
|
191 TMR5H EQU H'0F7D'
|
|
192 EECON2 EQU H'0F7E'
|
|
193 EECON1 EQU H'0F7F'
|
|
194 PORTA EQU H'0F80'
|
|
195 PORTB EQU H'0F81'
|
|
196 PORTC EQU H'0F82'
|
|
197 PORTD EQU H'0F83'
|
|
198 PORTE EQU H'0F84'
|
|
199 PORTF EQU H'0F85'
|
|
200 PORTG EQU H'0F86'
|
|
201 PORTH EQU H'0F87'
|
|
202 PORTJ EQU H'0F88'
|
|
203 LATA EQU H'0F89'
|
|
204 LATB EQU H'0F8A'
|
|
205 LATC EQU H'0F8B'
|
|
206 LATD EQU H'0F8C'
|
|
207 LATE EQU H'0F8D'
|
|
208 LATF EQU H'0F8E'
|
|
209 LATG EQU H'0F8F'
|
|
210 LATH EQU H'0F90'
|
|
211 LATJ EQU H'0F91'
|
|
212 TRISA EQU H'0F92'
|
|
213 TRISB EQU H'0F93'
|
|
214 TRISC EQU H'0F94'
|
|
215 TRISD EQU H'0F95'
|
|
216 TRISE EQU H'0F96'
|
|
217 TRISF EQU H'0F97'
|
|
218 TRISG EQU H'0F98'
|
|
219 TRISH EQU H'0F99'
|
|
220 TRISJ EQU H'0F9A'
|
|
221 OSCTUNE EQU H'0F9B'
|
|
222 PSTR1CON EQU H'0F9C'
|
|
223 PIE1 EQU H'0F9D'
|
|
224 PIR1 EQU H'0F9E'
|
|
225 IPR1 EQU H'0F9F'
|
|
226 PIE2 EQU H'0FA0'
|
|
227 PIR2 EQU H'0FA1'
|
|
228 IPR2 EQU H'0FA2'
|
|
229 PIE3 EQU H'0FA3'
|
|
230 PIR3 EQU H'0FA4'
|
|
231 IPR3 EQU H'0FA5'
|
|
232 PIR6 EQU H'0FA6'
|
|
233 PSPCON EQU H'0FA7'
|
|
234 HLVDCON EQU H'0FA8'
|
|
235 IPR6 EQU H'0FA9'
|
|
236 T1GCON EQU H'0FAA'
|
|
237 RCSTA EQU H'0FAB'
|
|
238 RCSTA1 EQU H'0FAB'
|
|
239 TXSTA EQU H'0FAC'
|
|
240 TXSTA1 EQU H'0FAC'
|
|
241 TXREG EQU H'0FAD'
|
|
242 TXREG1 EQU H'0FAD'
|
|
243 RCREG EQU H'0FAE'
|
|
244 RCREG1 EQU H'0FAE'
|
|
245 SPBRG EQU H'0FAF'
|
|
246 SPBRG1 EQU H'0FAF'
|
|
247 T3GCON EQU H'0FB0'
|
|
248 T3CON EQU H'0FB1'
|
|
249 TMR3 EQU H'0FB2'
|
|
250 TMR3L EQU H'0FB2'
|
|
251 TMR3H EQU H'0FB3'
|
|
252 CMSTAT EQU H'0FB4'
|
|
253 CMSTATUS EQU H'0FB4'
|
|
254 CVRCON EQU H'0FB5'
|
|
255 PIE4 EQU H'0FB6'
|
|
256 PIR4 EQU H'0FB7'
|
|
257 IPR4 EQU H'0FB8'
|
|
258 PIE5 EQU H'0FB9'
|
|
259 PIR5 EQU H'0FBA'
|
|
260 CCP1CON EQU H'0FBB'
|
|
261 ECCP1CON EQU H'0FBB'
|
|
262 CCPR1 EQU H'0FBC'
|
|
263 CCPR1L EQU H'0FBC'
|
|
264 CCPR1H EQU H'0FBD'
|
|
265 ECCP1DEL EQU H'0FBE'
|
|
266 PWM1CON EQU H'0FBE'
|
|
267 ECCP1AS EQU H'0FBF'
|
|
268 ADCON2 EQU H'0FC0'
|
|
269 ADCON1 EQU H'0FC1'
|
|
270 ADCON0 EQU H'0FC2'
|
|
271 ADRES EQU H'0FC3'
|
|
272 ADRESL EQU H'0FC3'
|
|
273 ADRESH EQU H'0FC4'
|
|
274 SSP1CON2 EQU H'0FC5'
|
|
275 SSPCON2 EQU H'0FC5'
|
|
276 SSP1CON1 EQU H'0FC6'
|
|
277 SSPCON1 EQU H'0FC6'
|
|
278 SSP1STAT EQU H'0FC7'
|
|
279 SSPSTAT EQU H'0FC7'
|
|
280 SSP1ADD EQU H'0FC8'
|
|
281 SSP1MSK EQU H'0FC8'
|
|
282 SSPADD EQU H'0FC8'
|
|
283 SSP1BUF EQU H'0FC9'
|
|
284 SSPBUF EQU H'0FC9'
|
|
285 T2CON EQU H'0FCA'
|
|
286 PR2 EQU H'0FCB'
|
|
287 TMR2 EQU H'0FCC'
|
|
288 T1CON EQU H'0FCD'
|
|
289 TMR1 EQU H'0FCE'
|
|
290 TMR1L EQU H'0FCE'
|
|
291 TMR1H EQU H'0FCF'
|
|
292 RCON EQU H'0FD0'
|
|
293 WDTCON EQU H'0FD1'
|
|
294 IPR5 EQU H'0FD2'
|
|
295 OSCCON EQU H'0FD3'
|
|
296 SPBRGH1 EQU H'0FD4'
|
|
297 T0CON EQU H'0FD5'
|
|
298 TMR0 EQU H'0FD6'
|
|
299 TMR0L EQU H'0FD6'
|
|
300 TMR0H EQU H'0FD7'
|
|
301 STATUS EQU H'0FD8'
|
|
302 FSR2L EQU H'0FD9'
|
|
303 FSR2H EQU H'0FDA'
|
|
304 PLUSW2 EQU H'0FDB'
|
|
305 PREINC2 EQU H'0FDC'
|
|
306 POSTDEC2 EQU H'0FDD'
|
|
307 POSTINC2 EQU H'0FDE'
|
|
308 INDF2 EQU H'0FDF'
|
|
309 BSR EQU H'0FE0'
|
|
310 FSR1L EQU H'0FE1'
|
|
311 FSR1H EQU H'0FE2'
|
|
312 PLUSW1 EQU H'0FE3'
|
|
313 PREINC1 EQU H'0FE4'
|
|
314 POSTDEC1 EQU H'0FE5'
|
|
315 POSTINC1 EQU H'0FE6'
|
|
316 INDF1 EQU H'0FE7'
|
|
317 WREG EQU H'0FE8'
|
|
318 FSR0L EQU H'0FE9'
|
|
319 FSR0H EQU H'0FEA'
|
|
320 PLUSW0 EQU H'0FEB'
|
|
321 PREINC0 EQU H'0FEC'
|
|
322 POSTDEC0 EQU H'0FED'
|
|
323 POSTINC0 EQU H'0FEE'
|
|
324 INDF0 EQU H'0FEF'
|
|
325 INTCON3 EQU H'0FF0'
|
|
326 INTCON2 EQU H'0FF1'
|
|
327 INTCON EQU H'0FF2'
|
|
328 PROD EQU H'0FF3'
|
|
329 PRODL EQU H'0FF3'
|
|
330 PRODH EQU H'0FF4'
|
|
331 TABLAT EQU H'0FF5'
|
|
332 TBLPTR EQU H'0FF6'
|
|
333 TBLPTRL EQU H'0FF6'
|
|
334 TBLPTRH EQU H'0FF7'
|
|
335 TBLPTRU EQU H'0FF8'
|
|
336 PC EQU H'0FF9'
|
|
337 PCL EQU H'0FF9'
|
|
338 PCLATH EQU H'0FFA'
|
|
339 PCLATU EQU H'0FFB'
|
|
340 STKPTR EQU H'0FFC'
|
|
341 TOS EQU H'0FFD'
|
|
342 TOSL EQU H'0FFD'
|
|
343 TOSH EQU H'0FFE'
|
|
344 TOSU EQU H'0FFF'
|
|
345
|
|
346 ;----- PMD3 Bits -----------------------------------------------------
|
|
347 TMR12MD EQU H'0000'
|
|
348 CCP4MD EQU H'0001'
|
|
349 CCP5MD EQU H'0002'
|
|
350 CCP6MD EQU H'0003'
|
|
351 CCP7MD EQU H'0004'
|
|
352 CCP8MD EQU H'0005'
|
|
353 CCP9MD EQU H'0006'
|
|
354 CCP10MD EQU H'0007'
|
|
355
|
|
356
|
|
357 ;----- PMD2 Bits -----------------------------------------------------
|
|
358 CMP1MD EQU H'0000'
|
|
359 CMP2MD EQU H'0001'
|
|
360 CMP3MD EQU H'0002'
|
|
361 TMR5MD EQU H'0003'
|
|
362 TMR6MD EQU H'0004'
|
|
363 TMR7MD EQU H'0005'
|
|
364 TMR8MD EQU H'0006'
|
|
365 TMR10MD EQU H'0007'
|
|
366
|
|
367
|
|
368 ;----- PMD1 Bits -----------------------------------------------------
|
|
369 EMBMD EQU H'0000'
|
|
370 TMR1MD EQU H'0001'
|
|
371 TMR2MD EQU H'0002'
|
|
372 TMR3MD EQU H'0003'
|
|
373 TMR4MD EQU H'0004'
|
|
374 RTCCMD EQU H'0005'
|
|
375 CTMUMD EQU H'0006'
|
|
376 PSPMD EQU H'0007'
|
|
377
|
|
378
|
|
379 ;----- PMD0 Bits -----------------------------------------------------
|
|
380 ADCMD EQU H'0000'
|
|
381 SSP1MD EQU H'0001'
|
|
382 SSP2MD EQU H'0002'
|
|
383 UART1MD EQU H'0003'
|
|
384 UART2MD EQU H'0004'
|
|
385 CCP1MD EQU H'0005'
|
|
386 CCP2MD EQU H'0006'
|
|
387 CCP3MD EQU H'0007'
|
|
388
|
|
389
|
|
390 ;----- PSTR3CON Bits -----------------------------------------------------
|
|
391 STRA EQU H'0000'
|
|
392 STRB EQU H'0001'
|
|
393 STRC EQU H'0002'
|
|
394 STRD EQU H'0003'
|
|
395 STRSYNC EQU H'0004'
|
|
396
|
|
397 CMPL0 EQU H'0006'
|
|
398 CMPL1 EQU H'0007'
|
|
399
|
|
400
|
|
401 ;----- PSTR2CON Bits -----------------------------------------------------
|
|
402 STRA EQU H'0000'
|
|
403 STRB EQU H'0001'
|
|
404 STRC EQU H'0002'
|
|
405 STRD EQU H'0003'
|
|
406 STRSYNC EQU H'0004'
|
|
407
|
|
408 CMPL0 EQU H'0006'
|
|
409 CMPL1 EQU H'0007'
|
|
410
|
|
411
|
|
412 ;----- BAUDCON2 Bits -----------------------------------------------------
|
|
413 ABDEN EQU H'0000'
|
|
414 WUE EQU H'0001'
|
|
415 BRG16 EQU H'0003'
|
|
416 TXCKP EQU H'0004'
|
|
417 RXDTP EQU H'0005'
|
|
418 RCIDL EQU H'0006'
|
|
419 ABDOVF EQU H'0007'
|
|
420
|
|
421
|
|
422 ;----- TXSTA2 Bits -----------------------------------------------------
|
|
423 TX9D EQU H'0000'
|
|
424 TRMT EQU H'0001'
|
|
425 BRGH EQU H'0002'
|
|
426 SENDB EQU H'0003'
|
|
427 SYNC EQU H'0004'
|
|
428 TXEN EQU H'0005'
|
|
429 TX9 EQU H'0006'
|
|
430 CSRC EQU H'0007'
|
|
431
|
|
432 TX9D2 EQU H'0000'
|
|
433 TRMT2 EQU H'0001'
|
|
434 BRGH2 EQU H'0002'
|
|
435 SENDB2 EQU H'0003'
|
|
436 SYNC2 EQU H'0004'
|
|
437 TXEN2 EQU H'0005'
|
|
438 TX92 EQU H'0006'
|
|
439 CSRC2 EQU H'0007'
|
|
440
|
|
441
|
|
442 ;----- RCSTA2 Bits -----------------------------------------------------
|
|
443 RX9D EQU H'0000'
|
|
444 OERR EQU H'0001'
|
|
445 FERR EQU H'0002'
|
|
446 ADDEN EQU H'0003'
|
|
447 CREN EQU H'0004'
|
|
448 SREN EQU H'0005'
|
|
449 RX9 EQU H'0006'
|
|
450 SPEN EQU H'0007'
|
|
451
|
|
452 RX9D2 EQU H'0000'
|
|
453 OERR2 EQU H'0001'
|
|
454 FERR2 EQU H'0002'
|
|
455 ADDEN2 EQU H'0003'
|
|
456 CREN2 EQU H'0004'
|
|
457 SREN2 EQU H'0005'
|
|
458 RX92 EQU H'0006'
|
|
459 SPEN2 EQU H'0007'
|
|
460
|
|
461
|
|
462 ;----- ANCON2 Bits -----------------------------------------------------
|
|
463 ANSEL16 EQU H'0000'
|
|
464 ANSEL17 EQU H'0001'
|
|
465 ANSEL18 EQU H'0002'
|
|
466 ANSEL19 EQU H'0003'
|
|
467 ANSEL20 EQU H'0004'
|
|
468 ANSEL21 EQU H'0005'
|
|
469 ANSEL22 EQU H'0006'
|
|
470 ANSEL23 EQU H'0007'
|
|
471
|
|
472
|
|
473 ;----- ANCON1 Bits -----------------------------------------------------
|
|
474 ANSEL8 EQU H'0000'
|
|
475 ANSEL9 EQU H'0001'
|
|
476 ANSEL10 EQU H'0002'
|
|
477 ANSEL11 EQU H'0003'
|
|
478 ANSEL12 EQU H'0004'
|
|
479 ANSEL13 EQU H'0005'
|
|
480 ANSEL14 EQU H'0006'
|
|
481 ANSEL15 EQU H'0007'
|
|
482
|
|
483
|
|
484 ;----- ANCON0 Bits -----------------------------------------------------
|
|
485 ANSEL0 EQU H'0000'
|
|
486 ANSEL1 EQU H'0001'
|
|
487 ANSEL2 EQU H'0002'
|
|
488 ANSEL3 EQU H'0003'
|
|
489 ANSEL4 EQU H'0004'
|
|
490 ANSEL5 EQU H'0005'
|
|
491 ANSEL6 EQU H'0006'
|
|
492 ANSEL7 EQU H'0007'
|
|
493
|
|
494
|
|
495 ;----- MEMCON Bits -----------------------------------------------------
|
|
496 EBDIS EQU H'0007'
|
|
497
|
|
498 WM0 EQU H'0000'
|
|
499 WM1 EQU H'0001'
|
|
500 WAIT0 EQU H'0004'
|
|
501 WAIT1 EQU H'0005'
|
|
502
|
|
503
|
|
504 ;----- ODCON3 Bits -----------------------------------------------------
|
|
505 CTMUDS EQU H'0000'
|
|
506 U1OD EQU H'0006'
|
|
507 U2OD EQU H'0007'
|
|
508
|
|
509
|
|
510 ;----- ODCON2 Bits -----------------------------------------------------
|
|
511 CCP3OD EQU H'0000'
|
|
512 CCP4OD EQU H'0001'
|
|
513 CCP5OD EQU H'0002'
|
|
514 CCP6OD EQU H'0003'
|
|
515 CCP7OD EQU H'0004'
|
|
516 CCP8OD EQU H'0005'
|
|
517 CCP9OD EQU H'0006'
|
|
518 CCP10OD EQU H'0007'
|
|
519
|
|
520
|
|
521 ;----- ODCON1 Bits -----------------------------------------------------
|
|
522 SPI2OD EQU H'0000'
|
|
523 CCP1OD EQU H'0005'
|
|
524 CCP2OD EQU H'0006'
|
|
525 SPI1OD EQU H'0007'
|
|
526
|
|
527
|
|
528 ;----- REFOCON Bits -----------------------------------------------------
|
|
529 ROSEL EQU H'0004'
|
|
530 ROSSLP EQU H'0005'
|
|
531 ROON EQU H'0007'
|
|
532
|
|
533 RODIV0 EQU H'0000'
|
|
534 RODIV1 EQU H'0001'
|
|
535 RODIV2 EQU H'0002'
|
|
536 RODIV3 EQU H'0003'
|
|
537
|
|
538
|
|
539 ;----- CCPTMRS2 Bits -----------------------------------------------------
|
|
540 C9TSEL0 EQU H'0002'
|
|
541 C10TSEL0 EQU H'0004'
|
|
542
|
|
543 C8TSEL0 EQU H'0000'
|
|
544 C8TSEL1 EQU H'0001'
|
|
545
|
|
546
|
|
547 ;----- CCPTMRS1 Bits -----------------------------------------------------
|
|
548 C5TSEL0 EQU H'0002'
|
|
549 C6TSEL0 EQU H'0004'
|
|
550
|
|
551 C4TSEL0 EQU H'0000'
|
|
552 C4TSEL1 EQU H'0001'
|
|
553 C7TSEL0 EQU H'0006'
|
|
554 C7TSEL1 EQU H'0007'
|
|
555
|
|
556
|
|
557 ;----- CCPTMRS0 Bits -----------------------------------------------------
|
|
558 C1TSEL0 EQU H'0000'
|
|
559 C1TSEL1 EQU H'0001'
|
|
560 C1TSEL2 EQU H'0002'
|
|
561 C2TSEL0 EQU H'0003'
|
|
562 C2TSEL1 EQU H'0004'
|
|
563 C2TSEL2 EQU H'0005'
|
|
564 C3TSEL0 EQU H'0006'
|
|
565 C3TSEL1 EQU H'0007'
|
|
566
|
|
567
|
|
568 ;----- CM3CON Bits -----------------------------------------------------
|
|
569 CREF EQU H'0002'
|
|
570 CPOL EQU H'0005'
|
|
571 COE EQU H'0006'
|
|
572 CON EQU H'0007'
|
|
573
|
|
574 CCH0 EQU H'0000'
|
|
575 CCH1 EQU H'0001'
|
|
576 EVPOL0 EQU H'0003'
|
|
577 EVPOL1 EQU H'0004'
|
|
578
|
|
579
|
|
580 ;----- CM3CON1 Bits -----------------------------------------------------
|
|
581 CREF EQU H'0002'
|
|
582 CPOL EQU H'0005'
|
|
583 COE EQU H'0006'
|
|
584 CON EQU H'0007'
|
|
585
|
|
586 CCH0 EQU H'0000'
|
|
587 CCH1 EQU H'0001'
|
|
588 EVPOL0 EQU H'0003'
|
|
589 EVPOL1 EQU H'0004'
|
|
590
|
|
591
|
|
592 ;----- CM2CON Bits -----------------------------------------------------
|
|
593 CREF EQU H'0002'
|
|
594 CPOL EQU H'0005'
|
|
595 COE EQU H'0006'
|
|
596 CON EQU H'0007'
|
|
597
|
|
598 CCH0 EQU H'0000'
|
|
599 CCH1 EQU H'0001'
|
|
600 EVPOL0 EQU H'0003'
|
|
601 EVPOL1 EQU H'0004'
|
|
602
|
|
603
|
|
604 ;----- CM2CON1 Bits -----------------------------------------------------
|
|
605 CREF EQU H'0002'
|
|
606 CPOL EQU H'0005'
|
|
607 COE EQU H'0006'
|
|
608 CON EQU H'0007'
|
|
609
|
|
610 CCH0 EQU H'0000'
|
|
611 CCH1 EQU H'0001'
|
|
612 EVPOL0 EQU H'0003'
|
|
613 EVPOL1 EQU H'0004'
|
|
614
|
|
615
|
|
616 ;----- T12CON Bits -----------------------------------------------------
|
|
617 TMR12ON EQU H'0002'
|
|
618
|
|
619 T12CKPS0 EQU H'0000'
|
|
620 T12CKPS1 EQU H'0001'
|
|
621 T12OUTPS0 EQU H'0003'
|
|
622 T12OUTPS1 EQU H'0004'
|
|
623 T12OUTPS2 EQU H'0005'
|
|
624 T12OUTPS3 EQU H'0006'
|
|
625
|
|
626
|
|
627 ;----- T10CON Bits -----------------------------------------------------
|
|
628 TMR10ON EQU H'0002'
|
|
629
|
|
630 T10CKPS0 EQU H'0000'
|
|
631 T10CKPS1 EQU H'0001'
|
|
632 T10OUTPS0 EQU H'0003'
|
|
633 T10OUTPS1 EQU H'0004'
|
|
634 T10OUTPS2 EQU H'0005'
|
|
635 T10OUTPS3 EQU H'0006'
|
|
636
|
|
637
|
|
638 ;----- T8CON Bits -----------------------------------------------------
|
|
639 TMR8ON EQU H'0002'
|
|
640
|
|
641 T8CKPS0 EQU H'0000'
|
|
642 T8CKPS1 EQU H'0001'
|
|
643 T8OUTPS0 EQU H'0003'
|
|
644 T8OUTPS1 EQU H'0004'
|
|
645 T8OUTPS2 EQU H'0005'
|
|
646 T8OUTPS3 EQU H'0006'
|
|
647
|
|
648
|
|
649 ;----- T6CON Bits -----------------------------------------------------
|
|
650 TMR6ON EQU H'0002'
|
|
651
|
|
652 T6CKPS0 EQU H'0000'
|
|
653 T6CKPS1 EQU H'0001'
|
|
654 T6OUTPS0 EQU H'0003'
|
|
655 T6OUTPS1 EQU H'0004'
|
|
656 T6OUTPS2 EQU H'0005'
|
|
657 T6OUTPS3 EQU H'0006'
|
|
658
|
|
659
|
|
660 ;----- T7GCON Bits -----------------------------------------------------
|
|
661 T7GVAL EQU H'0002'
|
|
662 T7GGO_NOT_T7DONE EQU H'0003'
|
|
663 T7GSPM EQU H'0004'
|
|
664 T7GTM EQU H'0005'
|
|
665 T7GPOL EQU H'0006'
|
|
666 TMR7GE EQU H'0007'
|
|
667
|
|
668 T7GSS0 EQU H'0000'
|
|
669 T7GSS1 EQU H'0001'
|
|
670 T7GGO EQU H'0003'
|
|
671
|
|
672 NOT_T7DONE EQU H'0003'
|
|
673
|
|
674
|
|
675 ;----- T7CON Bits -----------------------------------------------------
|
|
676 TMR7ON EQU H'0000'
|
|
677 RD16 EQU H'0001'
|
|
678 NOT_T7SYNC EQU H'0002'
|
|
679 SOSCEN EQU H'0003'
|
|
680
|
|
681 T7CKPS0 EQU H'0004'
|
|
682 T7CKPS1 EQU H'0005'
|
|
683 TMR7CS0 EQU H'0006'
|
|
684 TMR7CS1 EQU H'0007'
|
|
685
|
|
686
|
|
687 ;----- CCP10CON Bits -----------------------------------------------------
|
|
688 CCP10M0 EQU H'0000'
|
|
689 CCP10M1 EQU H'0001'
|
|
690 CCP10M2 EQU H'0002'
|
|
691 CCP10M3 EQU H'0003'
|
|
692 DC10B0 EQU H'0004'
|
|
693 DC10B1 EQU H'0005'
|
|
694
|
|
695 CCP10Y EQU H'0004'
|
|
696 CCP10X EQU H'0005'
|
|
697
|
|
698
|
|
699 ;----- CCP9CON Bits -----------------------------------------------------
|
|
700 CCP9M0 EQU H'0000'
|
|
701 CCP9M1 EQU H'0001'
|
|
702 CCP9M2 EQU H'0002'
|
|
703 CCP9M3 EQU H'0003'
|
|
704 DC9B0 EQU H'0004'
|
|
705 DC9B1 EQU H'0005'
|
|
706
|
|
707 CCP9Y EQU H'0004'
|
|
708 CCP9X EQU H'0005'
|
|
709
|
|
710
|
|
711 ;----- CCP8CON Bits -----------------------------------------------------
|
|
712 CCP8M0 EQU H'0000'
|
|
713 CCP8M1 EQU H'0001'
|
|
714 CCP8M2 EQU H'0002'
|
|
715 CCP8M3 EQU H'0003'
|
|
716 DC8B0 EQU H'0004'
|
|
717 DC8B1 EQU H'0005'
|
|
718
|
|
719 CCP8Y EQU H'0004'
|
|
720 CCP8X EQU H'0005'
|
|
721
|
|
722
|
|
723 ;----- CCP3CON Bits -----------------------------------------------------
|
|
724 CCP3M0 EQU H'0000'
|
|
725 CCP3M1 EQU H'0001'
|
|
726 CCP3M2 EQU H'0002'
|
|
727 CCP3M3 EQU H'0003'
|
|
728 DC3B0 EQU H'0004'
|
|
729 DC3B1 EQU H'0005'
|
|
730 P3M0 EQU H'0006'
|
|
731 P3M1 EQU H'0007'
|
|
732
|
|
733
|
|
734 ;----- ECCP3DEL Bits -----------------------------------------------------
|
|
735 P3RSEN EQU H'0007'
|
|
736
|
|
737 P3DC0 EQU H'0000'
|
|
738 P3DC1 EQU H'0001'
|
|
739 P3DC2 EQU H'0002'
|
|
740 P3DC3 EQU H'0003'
|
|
741 P3DC4 EQU H'0004'
|
|
742 P3DC5 EQU H'0005'
|
|
743 P3DC6 EQU H'0006'
|
|
744
|
|
745
|
|
746 ;----- ECCP3AS Bits -----------------------------------------------------
|
|
747 ECCP3ASE EQU H'0007'
|
|
748
|
|
749 PSS3BD0 EQU H'0000'
|
|
750 PSS3BD1 EQU H'0001'
|
|
751 PSS3AC0 EQU H'0002'
|
|
752 PSS3AC1 EQU H'0003'
|
|
753 ECCP3AS0 EQU H'0004'
|
|
754 ECCP3AS1 EQU H'0005'
|
|
755 ECCP3AS2 EQU H'0006'
|
|
756
|
|
757
|
|
758 ;----- CCP2CON Bits -----------------------------------------------------
|
|
759 CCP2M0 EQU H'0000'
|
|
760 CCP2M1 EQU H'0001'
|
|
761 CCP2M2 EQU H'0002'
|
|
762 CCP2M3 EQU H'0003'
|
|
763 DC2B0 EQU H'0004'
|
|
764 DC2B1 EQU H'0005'
|
|
765 P2M0 EQU H'0006'
|
|
766 P2M1 EQU H'0007'
|
|
767
|
|
768 CCP2Y EQU H'0004'
|
|
769 CCP2X EQU H'0005'
|
|
770
|
|
771
|
|
772 ;----- ECCP2CON Bits -----------------------------------------------------
|
|
773 CCP2M0 EQU H'0000'
|
|
774 CCP2M1 EQU H'0001'
|
|
775 CCP2M2 EQU H'0002'
|
|
776 CCP2M3 EQU H'0003'
|
|
777 DC2B0 EQU H'0004'
|
|
778 DC2B1 EQU H'0005'
|
|
779 P2M0 EQU H'0006'
|
|
780 P2M1 EQU H'0007'
|
|
781
|
|
782 CCP2Y EQU H'0004'
|
|
783 CCP2X EQU H'0005'
|
|
784
|
|
785
|
|
786 ;----- ECCP2DEL Bits -----------------------------------------------------
|
|
787 P2RSEN EQU H'0007'
|
|
788
|
|
789 P2DC0 EQU H'0000'
|
|
790 P2DC1 EQU H'0001'
|
|
791 P2DC2 EQU H'0002'
|
|
792 P2DC3 EQU H'0003'
|
|
793 P2DC4 EQU H'0004'
|
|
794 P2DC5 EQU H'0005'
|
|
795 P2DC6 EQU H'0006'
|
|
796
|
|
797
|
|
798 ;----- PWM2CON Bits -----------------------------------------------------
|
|
799 P2RSEN EQU H'0007'
|
|
800
|
|
801 P2DC0 EQU H'0000'
|
|
802 P2DC1 EQU H'0001'
|
|
803 P2DC2 EQU H'0002'
|
|
804 P2DC3 EQU H'0003'
|
|
805 P2DC4 EQU H'0004'
|
|
806 P2DC5 EQU H'0005'
|
|
807 P2DC6 EQU H'0006'
|
|
808
|
|
809
|
|
810 ;----- ECCP2AS Bits -----------------------------------------------------
|
|
811 ECCP2ASE EQU H'0007'
|
|
812
|
|
813 PSS2BD0 EQU H'0000'
|
|
814 PSS2BD1 EQU H'0001'
|
|
815 PSS2AC0 EQU H'0002'
|
|
816 PSS2AC1 EQU H'0003'
|
|
817 ECCP2AS0 EQU H'0004'
|
|
818 ECCP2AS1 EQU H'0005'
|
|
819 ECCP2AS2 EQU H'0006'
|
|
820
|
|
821
|
|
822 ;----- PADCFG1 Bits -----------------------------------------------------
|
|
823 RJPU EQU H'0005'
|
|
824 REPU EQU H'0006'
|
|
825 RDPU EQU H'0007'
|
|
826
|
|
827 RTSECSEL0 EQU H'0001'
|
|
828 RTSECSEL1 EQU H'0002'
|
|
829
|
|
830
|
|
831 ;----- CM1CON Bits -----------------------------------------------------
|
|
832 CREF EQU H'0002'
|
|
833 CPOL EQU H'0005'
|
|
834 COE EQU H'0006'
|
|
835 CON EQU H'0007'
|
|
836
|
|
837 CCH0 EQU H'0000'
|
|
838 CCH1 EQU H'0001'
|
|
839 EVPOL0 EQU H'0003'
|
|
840 EVPOL1 EQU H'0004'
|
|
841
|
|
842
|
|
843 ;----- CM1CON1 Bits -----------------------------------------------------
|
|
844 CREF EQU H'0002'
|
|
845 CPOL EQU H'0005'
|
|
846 COE EQU H'0006'
|
|
847 CON EQU H'0007'
|
|
848
|
|
849 CCH0 EQU H'0000'
|
|
850 CCH1 EQU H'0001'
|
|
851 EVPOL0 EQU H'0003'
|
|
852 EVPOL1 EQU H'0004'
|
|
853
|
|
854
|
|
855 ;----- CTMUICON Bits -----------------------------------------------------
|
|
856 IRNG0 EQU H'0000'
|
|
857 IRNG1 EQU H'0001'
|
|
858 ITRIM0 EQU H'0002'
|
|
859 ITRIM1 EQU H'0003'
|
|
860 ITRIM2 EQU H'0004'
|
|
861 ITRIM3 EQU H'0005'
|
|
862 ITRIM4 EQU H'0006'
|
|
863 ITRIM5 EQU H'0007'
|
|
864
|
|
865
|
|
866 ;----- CTMUCONL Bits -----------------------------------------------------
|
|
867 EDG1STAT EQU H'0000'
|
|
868 EDG2STAT EQU H'0001'
|
|
869 EDG1POL EQU H'0004'
|
|
870 EDG2POL EQU H'0007'
|
|
871
|
|
872 EDG1SEL0 EQU H'0002'
|
|
873 EDG1SEL1 EQU H'0003'
|
|
874 EDG2SEL0 EQU H'0005'
|
|
875 EDG2SEL1 EQU H'0006'
|
|
876
|
|
877
|
|
878 ;----- CTMUCONH Bits -----------------------------------------------------
|
|
879 CTTRIG EQU H'0000'
|
|
880 IDISSEN EQU H'0001'
|
|
881 EDGSEQEN EQU H'0002'
|
|
882 EDGEN EQU H'0003'
|
|
883 TGEN EQU H'0004'
|
|
884 CTMUSIDL EQU H'0005'
|
|
885 CTMUEN EQU H'0007'
|
|
886
|
|
887
|
|
888 ;----- ALRMRPT Bits -----------------------------------------------------
|
|
889 ARPT0 EQU H'0000'
|
|
890 ARPT1 EQU H'0001'
|
|
891 ARPT2 EQU H'0002'
|
|
892 ARPT3 EQU H'0003'
|
|
893 ARPT4 EQU H'0004'
|
|
894 ARPT5 EQU H'0005'
|
|
895 ARPT6 EQU H'0006'
|
|
896 ARPT7 EQU H'0007'
|
|
897
|
|
898
|
|
899 ;----- ALRMCFG Bits -----------------------------------------------------
|
|
900 CHIME EQU H'0006'
|
|
901 ALRMEN EQU H'0007'
|
|
902
|
|
903 ALRMPTR0 EQU H'0000'
|
|
904 ALRMPTR1 EQU H'0001'
|
|
905 AMASK0 EQU H'0002'
|
|
906 AMASK1 EQU H'0003'
|
|
907 AMASK2 EQU H'0004'
|
|
908 AMASK3 EQU H'0005'
|
|
909
|
|
910
|
|
911 ;----- RTCCAL Bits -----------------------------------------------------
|
|
912 CAL0 EQU H'0000'
|
|
913 CAL1 EQU H'0001'
|
|
914 CAL2 EQU H'0002'
|
|
915 CAL3 EQU H'0003'
|
|
916 CAL4 EQU H'0004'
|
|
917 CAL5 EQU H'0005'
|
|
918 CAL6 EQU H'0006'
|
|
919 CAL7 EQU H'0007'
|
|
920
|
|
921
|
|
922 ;----- RTCCFG Bits -----------------------------------------------------
|
|
923 RTCOE EQU H'0002'
|
|
924 HALFSEC EQU H'0003'
|
|
925 RTCSYNC EQU H'0004'
|
|
926 RTCWREN EQU H'0005'
|
|
927 RTCEN EQU H'0007'
|
|
928
|
|
929 RTCPTR0 EQU H'0000'
|
|
930 RTCPTR1 EQU H'0001'
|
|
931
|
|
932
|
|
933 ;----- PIE6 Bits -----------------------------------------------------
|
|
934 CMP1IE EQU H'0000'
|
|
935 CMP2IE EQU H'0001'
|
|
936 CMP3IE EQU H'0002'
|
|
937 EEIE EQU H'0004'
|
|
938
|
|
939
|
|
940 ;----- OSCCON2 Bits -----------------------------------------------------
|
|
941 MFIOSEL EQU H'0000'
|
|
942 MFIOFS EQU H'0001'
|
|
943 SOSCGO EQU H'0003'
|
|
944 SOSCRUN EQU H'0006'
|
|
945
|
|
946
|
|
947 ;----- BAUDCON Bits -----------------------------------------------------
|
|
948 ABDEN EQU H'0000'
|
|
949 WUE EQU H'0001'
|
|
950 BRG16 EQU H'0003'
|
|
951 TXCKP EQU H'0004'
|
|
952 RXDTP EQU H'0005'
|
|
953 RCIDL EQU H'0006'
|
|
954 ABDOVF EQU H'0007'
|
|
955
|
|
956
|
|
957 ;----- BAUDCON1 Bits -----------------------------------------------------
|
|
958 ABDEN EQU H'0000'
|
|
959 WUE EQU H'0001'
|
|
960 BRG16 EQU H'0003'
|
|
961 TXCKP EQU H'0004'
|
|
962 RXDTP EQU H'0005'
|
|
963 RCIDL EQU H'0006'
|
|
964 ABDOVF EQU H'0007'
|
|
965
|
|
966
|
|
967 ;----- BAUDCTL Bits -----------------------------------------------------
|
|
968 ABDEN EQU H'0000'
|
|
969 WUE EQU H'0001'
|
|
970 BRG16 EQU H'0003'
|
|
971 TXCKP EQU H'0004'
|
|
972 RXDTP EQU H'0005'
|
|
973 RCIDL EQU H'0006'
|
|
974 ABDOVF EQU H'0007'
|
|
975
|
|
976
|
|
977 ;----- SSP2CON2 Bits -----------------------------------------------------
|
|
978 SEN EQU H'0000'
|
|
979 RSEN EQU H'0001'
|
|
980 PEN EQU H'0002'
|
|
981 RCEN EQU H'0003'
|
|
982 ACKEN EQU H'0004'
|
|
983 ACKDT EQU H'0005'
|
|
984 ACKSTAT EQU H'0006'
|
|
985 GCEN EQU H'0007'
|
|
986
|
|
987 ADMSK1 EQU H'0001'
|
|
988 ADMSK2 EQU H'0002'
|
|
989 ADMSK3 EQU H'0003'
|
|
990 ADMSK4 EQU H'0004'
|
|
991 ADMSK5 EQU H'0005'
|
|
992
|
|
993
|
|
994 ;----- SSP2CON1 Bits -----------------------------------------------------
|
|
995 CKP EQU H'0004'
|
|
996 SSPEN EQU H'0005'
|
|
997 SSPOV EQU H'0006'
|
|
998 WCOL EQU H'0007'
|
|
999
|
|
1000 SSPM0 EQU H'0000'
|
|
1001 SSPM1 EQU H'0001'
|
|
1002 SSPM2 EQU H'0002'
|
|
1003 SSPM3 EQU H'0003'
|
|
1004
|
|
1005
|
|
1006 ;----- SSP2STAT Bits -----------------------------------------------------
|
|
1007 BF EQU H'0000'
|
|
1008 UA EQU H'0001'
|
|
1009 R_NOT_W EQU H'0002'
|
|
1010 S EQU H'0003'
|
|
1011 P EQU H'0004'
|
|
1012 D_NOT_A EQU H'0005'
|
|
1013 CKE EQU H'0006'
|
|
1014 SMP EQU H'0007'
|
|
1015
|
|
1016 R EQU H'0002'
|
|
1017 D EQU H'0005'
|
|
1018
|
|
1019 R_W EQU H'0002'
|
|
1020 D_A EQU H'0005'
|
|
1021
|
|
1022 NOT_W EQU H'0002'
|
|
1023 NOT_A EQU H'0005'
|
|
1024
|
|
1025 NOT_WRITE EQU H'0002'
|
|
1026 NOT_ADDRESS EQU H'0005'
|
|
1027
|
|
1028 READ_WRITE EQU H'0002'
|
|
1029 DATA_ADDRESS EQU H'0005'
|
|
1030
|
|
1031 I2C_READ EQU H'0002'
|
|
1032 I2C_START EQU H'0003'
|
|
1033 I2C_STOP EQU H'0004'
|
|
1034 I2C_DAT EQU H'0005'
|
|
1035
|
|
1036
|
|
1037 ;----- SSP2MSK Bits -----------------------------------------------------
|
|
1038 MSK0 EQU H'0000'
|
|
1039 MSK1 EQU H'0001'
|
|
1040 MSK2 EQU H'0002'
|
|
1041 MSK3 EQU H'0003'
|
|
1042 MSK4 EQU H'0004'
|
|
1043 MSK5 EQU H'0005'
|
|
1044 MSK6 EQU H'0006'
|
|
1045 MSK7 EQU H'0007'
|
|
1046
|
|
1047
|
|
1048 ;----- T4CON Bits -----------------------------------------------------
|
|
1049 TMR4ON EQU H'0002'
|
|
1050
|
|
1051 T4CKPS0 EQU H'0000'
|
|
1052 T4CKPS1 EQU H'0001'
|
|
1053 T4OUTPS0 EQU H'0003'
|
|
1054 T4OUTPS1 EQU H'0004'
|
|
1055 T4OUTPS2 EQU H'0005'
|
|
1056 T4OUTPS3 EQU H'0006'
|
|
1057
|
|
1058
|
|
1059 ;----- CCP7CON Bits -----------------------------------------------------
|
|
1060 CCP7M0 EQU H'0000'
|
|
1061 CCP7M1 EQU H'0001'
|
|
1062 CCP7M2 EQU H'0002'
|
|
1063 CCP7M3 EQU H'0003'
|
|
1064 DC7B0 EQU H'0004'
|
|
1065 DC7B1 EQU H'0005'
|
|
1066
|
|
1067 CCP7Y EQU H'0004'
|
|
1068 CCP7X EQU H'0005'
|
|
1069
|
|
1070
|
|
1071 ;----- CCP6CON Bits -----------------------------------------------------
|
|
1072 CCP6M0 EQU H'0000'
|
|
1073 CCP6M1 EQU H'0001'
|
|
1074 CCP6M2 EQU H'0002'
|
|
1075 CCP6M3 EQU H'0003'
|
|
1076 DC6B0 EQU H'0004'
|
|
1077 DC6B1 EQU H'0005'
|
|
1078
|
|
1079 CCP6Y EQU H'0004'
|
|
1080 CCP6X EQU H'0005'
|
|
1081
|
|
1082
|
|
1083 ;----- CCP5CON Bits -----------------------------------------------------
|
|
1084 CCP5M0 EQU H'0000'
|
|
1085 CCP5M1 EQU H'0001'
|
|
1086 CCP5M2 EQU H'0002'
|
|
1087 CCP5M3 EQU H'0003'
|
|
1088 DC5B0 EQU H'0004'
|
|
1089 DC5B1 EQU H'0005'
|
|
1090
|
|
1091 CCP5Y EQU H'0004'
|
|
1092 CCP5X EQU H'0005'
|
|
1093
|
|
1094
|
|
1095 ;----- CCP4CON Bits -----------------------------------------------------
|
|
1096 CCP4M0 EQU H'0000'
|
|
1097 CCP4M1 EQU H'0001'
|
|
1098 CCP4M2 EQU H'0002'
|
|
1099 CCP4M3 EQU H'0003'
|
|
1100 DC4B0 EQU H'0004'
|
|
1101 DC4B1 EQU H'0005'
|
|
1102
|
|
1103 CCP4Y EQU H'0004'
|
|
1104 CCP4X EQU H'0005'
|
|
1105
|
|
1106
|
|
1107 ;----- T5GCON Bits -----------------------------------------------------
|
|
1108 T5GVAL EQU H'0002'
|
|
1109 T5GGO_NOT_T5DONE EQU H'0003'
|
|
1110 T5GSPM EQU H'0004'
|
|
1111 T5GTM EQU H'0005'
|
|
1112 T5GPOL EQU H'0006'
|
|
1113 TMR5GE EQU H'0007'
|
|
1114
|
|
1115 T5GSS0 EQU H'0000'
|
|
1116 T5GSS1 EQU H'0001'
|
|
1117 T5GGO EQU H'0003'
|
|
1118
|
|
1119 NOT_T5DONE EQU H'0003'
|
|
1120
|
|
1121
|
|
1122 ;----- T5CON Bits -----------------------------------------------------
|
|
1123 TMR5ON EQU H'0000'
|
|
1124 RD16 EQU H'0001'
|
|
1125 NOT_T5SYNC EQU H'0002'
|
|
1126 SOSCEN EQU H'0003'
|
|
1127
|
|
1128 T5CKPS0 EQU H'0004'
|
|
1129 T5CKPS1 EQU H'0005'
|
|
1130 TMR5CS0 EQU H'0006'
|
|
1131 TMR5CS1 EQU H'0007'
|
|
1132
|
|
1133
|
|
1134 ;----- EECON1 Bits -----------------------------------------------------
|
|
1135 RD EQU H'0000'
|
|
1136 WR EQU H'0001'
|
|
1137 WREN EQU H'0002'
|
|
1138 WRERR EQU H'0003'
|
|
1139 FREE EQU H'0004'
|
|
1140 CFGS EQU H'0006'
|
|
1141 EEPGD EQU H'0007'
|
|
1142
|
|
1143
|
|
1144 ;----- PORTA Bits -----------------------------------------------------
|
|
1145 RA0 EQU H'0000'
|
|
1146 RA1 EQU H'0001'
|
|
1147 RA2 EQU H'0002'
|
|
1148 RA3 EQU H'0003'
|
|
1149 RA4 EQU H'0004'
|
|
1150 RA5 EQU H'0005'
|
|
1151 RA6 EQU H'0006'
|
|
1152 RA7 EQU H'0007'
|
|
1153
|
|
1154 AN0 EQU H'0000'
|
|
1155 AN1 EQU H'0001'
|
|
1156 AN2 EQU H'0002'
|
|
1157 AN3 EQU H'0003'
|
|
1158 AN4 EQU H'0005'
|
|
1159 OSC2 EQU H'0006'
|
|
1160 OSC1 EQU H'0007'
|
|
1161
|
|
1162 ULPWU EQU H'0000'
|
|
1163 VREF_MINUS EQU H'0002'
|
|
1164 VREF_PLUS EQU H'0003'
|
|
1165 T0CKI EQU H'0004'
|
|
1166 T1CKI EQU H'0005'
|
|
1167 CLKO EQU H'0006'
|
|
1168 CLKI EQU H'0007'
|
|
1169
|
|
1170 T3G EQU H'0005'
|
|
1171
|
|
1172 HLVDIN EQU H'0005'
|
|
1173
|
|
1174
|
|
1175 ;----- PORTB Bits -----------------------------------------------------
|
|
1176 RB0 EQU H'0000'
|
|
1177 RB1 EQU H'0001'
|
|
1178 RB2 EQU H'0002'
|
|
1179 RB3 EQU H'0003'
|
|
1180 RB4 EQU H'0004'
|
|
1181 RB5 EQU H'0005'
|
|
1182 RB6 EQU H'0006'
|
|
1183 RB7 EQU H'0007'
|
|
1184
|
|
1185 INT0 EQU H'0000'
|
|
1186 INT1 EQU H'0001'
|
|
1187 INT2 EQU H'0002'
|
|
1188 INT3 EQU H'0003'
|
|
1189 KBI0 EQU H'0004'
|
|
1190 KBI1 EQU H'0005'
|
|
1191 KBI2 EQU H'0006'
|
|
1192 KBI3 EQU H'0007'
|
|
1193
|
|
1194 FLT0 EQU H'0000'
|
|
1195 CTED1 EQU H'0002'
|
|
1196 CTED2 EQU H'0003'
|
|
1197 T3CKI EQU H'0005'
|
|
1198
|
|
1199 CCP2_P2A EQU H'0003'
|
|
1200 T1G EQU H'0005'
|
|
1201
|
|
1202 PGM EQU H'0005'
|
|
1203 PGC EQU H'0006'
|
|
1204 PGD EQU H'0007'
|
|
1205
|
|
1206
|
|
1207 ;----- PORTC Bits -----------------------------------------------------
|
|
1208 RC0 EQU H'0000'
|
|
1209 RC1 EQU H'0001'
|
|
1210 RC2 EQU H'0002'
|
|
1211 RC3 EQU H'0003'
|
|
1212 RC4 EQU H'0004'
|
|
1213 RC5 EQU H'0005'
|
|
1214 RC6 EQU H'0006'
|
|
1215 RC7 EQU H'0007'
|
|
1216
|
|
1217 SOSCO EQU H'0000'
|
|
1218 SOSCI EQU H'0001'
|
|
1219 SCK1 EQU H'0003'
|
|
1220 SDI1 EQU H'0004'
|
|
1221 SDO1 EQU H'0005'
|
|
1222 TX1 EQU H'0006'
|
|
1223 RX1 EQU H'0007'
|
|
1224
|
|
1225 SCKLI EQU H'0000'
|
|
1226 CCP2_PORTC EQU H'0001'
|
|
1227 CCP1 EQU H'0002'
|
|
1228 SCL1 EQU H'0003'
|
|
1229 SDA1 EQU H'0004'
|
|
1230 CK1 EQU H'0006'
|
|
1231 DT1 EQU H'0007'
|
|
1232
|
|
1233 P2A_PORTC EQU H'0001'
|
|
1234 P1A EQU H'0002'
|
|
1235
|
|
1236
|
|
1237 ;----- PORTD Bits -----------------------------------------------------
|
|
1238 RD0 EQU H'0000'
|
|
1239 RD1 EQU H'0001'
|
|
1240 RD2 EQU H'0002'
|
|
1241 RD3 EQU H'0003'
|
|
1242 RD4 EQU H'0004'
|
|
1243 RD5 EQU H'0005'
|
|
1244 RD6 EQU H'0006'
|
|
1245 RD7 EQU H'0007'
|
|
1246
|
|
1247 AD0 EQU H'0000'
|
|
1248 AD1 EQU H'0001'
|
|
1249 AD2 EQU H'0002'
|
|
1250 AD3 EQU H'0003'
|
|
1251 AD4 EQU H'0004'
|
|
1252 AD5 EQU H'0005'
|
|
1253 AD6 EQU H'0006'
|
|
1254 AD7 EQU H'0007'
|
|
1255
|
|
1256 PSP0 EQU H'0000'
|
|
1257 PSP1 EQU H'0001'
|
|
1258 PSP2 EQU H'0002'
|
|
1259 PSP3 EQU H'0003'
|
|
1260 PSP4 EQU H'0004'
|
|
1261 PSP5 EQU H'0005'
|
|
1262 PSP6 EQU H'0006'
|
|
1263 PSP7 EQU H'0007'
|
|
1264
|
|
1265 CTPLS EQU H'0000'
|
|
1266 T5CKI EQU H'0001'
|
|
1267 SDO2 EQU H'0004'
|
|
1268 SDI2 EQU H'0005'
|
|
1269 SCK2 EQU H'0006'
|
|
1270 NOT_SS2 EQU H'0007'
|
|
1271
|
|
1272 T7G EQU H'0001'
|
|
1273 SDA2 EQU H'0005'
|
|
1274 SCL2 EQU H'0006'
|
|
1275
|
|
1276
|
|
1277 ;----- PORTE Bits -----------------------------------------------------
|
|
1278 RE0 EQU H'0000'
|
|
1279 RE1 EQU H'0001'
|
|
1280 RE2 EQU H'0002'
|
|
1281 RE3 EQU H'0003'
|
|
1282 RE4 EQU H'0004'
|
|
1283 RE5 EQU H'0005'
|
|
1284 RE6 EQU H'0006'
|
|
1285 RE7 EQU H'0007'
|
|
1286
|
|
1287 AD8 EQU H'0000'
|
|
1288 AD9 EQU H'0001'
|
|
1289 AD10 EQU H'0002'
|
|
1290 AD11 EQU H'0003'
|
|
1291 AD12 EQU H'0004'
|
|
1292 AD13 EQU H'0005'
|
|
1293 AD14 EQU H'0006'
|
|
1294 AD15 EQU H'0007'
|
|
1295
|
|
1296 P2D EQU H'0000'
|
|
1297 P2C EQU H'0001'
|
|
1298 P2B EQU H'0002'
|
|
1299 P3C EQU H'0003'
|
|
1300 P3B EQU H'0004'
|
|
1301 P1C EQU H'0005'
|
|
1302 P1B EQU H'0006'
|
|
1303 P2A_PORTE EQU H'0007'
|
|
1304
|
|
1305 CCP10 EQU H'0002'
|
|
1306 CCP9_PORTE EQU H'0003'
|
|
1307 CCP8_PORTE EQU H'0004'
|
|
1308 CCP7_PORTE EQU H'0005'
|
|
1309 CCP6_PORTE EQU H'0006'
|
|
1310 CCP2_PORTE EQU H'0007'
|
|
1311
|
|
1312 NOT_RD EQU H'0000'
|
|
1313 NOT_WR EQU H'0001'
|
|
1314 NOT_CS EQU H'0002'
|
|
1315 REFO EQU H'0003'
|
|
1316
|
|
1317
|
|
1318 ;----- PORTF Bits -----------------------------------------------------
|
|
1319 RF1 EQU H'0001'
|
|
1320 RF2 EQU H'0002'
|
|
1321 RF3 EQU H'0003'
|
|
1322 RF4 EQU H'0004'
|
|
1323 RF5 EQU H'0005'
|
|
1324 RF6 EQU H'0006'
|
|
1325 RF7 EQU H'0007'
|
|
1326
|
|
1327 AN6 EQU H'0001'
|
|
1328 AN7 EQU H'0002'
|
|
1329 AN8 EQU H'0003'
|
|
1330 AN9 EQU H'0004'
|
|
1331 AN10 EQU H'0005'
|
|
1332 AN11 EQU H'0006'
|
|
1333 AN5 EQU H'0007'
|
|
1334
|
|
1335 C2OUT EQU H'0001'
|
|
1336 C1OUT EQU H'0002'
|
|
1337 C2INB EQU H'0003'
|
|
1338 C2INA EQU H'0004'
|
|
1339 C1INB EQU H'0005'
|
|
1340 C1INA EQU H'0006'
|
|
1341 SS1 EQU H'0007'
|
|
1342
|
|
1343 CTDIN EQU H'0001'
|
|
1344 CTMUI EQU H'0003'
|
|
1345 CVREF EQU H'0005'
|
|
1346
|
|
1347
|
|
1348 ;----- PORTG Bits -----------------------------------------------------
|
|
1349 RG0 EQU H'0000'
|
|
1350 RG1 EQU H'0001'
|
|
1351 RG2 EQU H'0002'
|
|
1352 RG3 EQU H'0003'
|
|
1353 RG4 EQU H'0004'
|
|
1354 RG5 EQU H'0005'
|
|
1355
|
|
1356 CCP3 EQU H'0000'
|
|
1357 C3OUT EQU H'0001'
|
|
1358 C3INA EQU H'0002'
|
|
1359 C3INB EQU H'0003'
|
|
1360 C3INC EQU H'0004'
|
|
1361
|
|
1362 PA3 EQU H'0000'
|
|
1363 TX2 EQU H'0001'
|
|
1364 RX2 EQU H'0002'
|
|
1365 PD3 EQU H'0003'
|
|
1366 PD1 EQU H'0004'
|
|
1367
|
|
1368 AN19 EQU H'0001'
|
|
1369 AN18 EQU H'0002'
|
|
1370 AN17 EQU H'0003'
|
|
1371 AN16 EQU H'0004'
|
|
1372
|
|
1373 CK2 EQU H'0001'
|
|
1374 DT2 EQU H'0002'
|
|
1375 CCP4 EQU H'0003'
|
|
1376 CCP5 EQU H'0004'
|
|
1377
|
|
1378 T7CKI EQU H'0004'
|
|
1379
|
|
1380 T5G EQU H'0004'
|
|
1381
|
|
1382 RTCC EQU H'0004'
|
|
1383
|
|
1384
|
|
1385 ;----- PORTH Bits -----------------------------------------------------
|
|
1386 RH0 EQU H'0000'
|
|
1387 RH1 EQU H'0001'
|
|
1388 RH2 EQU H'0002'
|
|
1389 RH3 EQU H'0003'
|
|
1390 RH4 EQU H'0004'
|
|
1391 RH5 EQU H'0005'
|
|
1392 RH6 EQU H'0006'
|
|
1393 RH7 EQU H'0007'
|
|
1394
|
|
1395 AN23 EQU H'0000'
|
|
1396 AN22 EQU H'0001'
|
|
1397 AN21 EQU H'0002'
|
|
1398 AN20 EQU H'0003'
|
|
1399 AN12 EQU H'0004'
|
|
1400 AN13 EQU H'0005'
|
|
1401 AN14 EQU H'0006'
|
|
1402 AN15 EQU H'0007'
|
|
1403
|
|
1404 A16 EQU H'0000'
|
|
1405 A17 EQU H'0001'
|
|
1406 A18 EQU H'0002'
|
|
1407 A19 EQU H'0003'
|
|
1408 CCP9_PORTH EQU H'0004'
|
|
1409 CCP8_PORTH EQU H'0005'
|
|
1410 CCP7_PORTH EQU H'0006'
|
|
1411 CCP6_PORTH EQU H'0007'
|
|
1412
|
|
1413 PC3 EQU H'0004'
|
|
1414 PB3 EQU H'0005'
|
|
1415 PC1 EQU H'0006'
|
|
1416 PB1 EQU H'0007'
|
|
1417
|
|
1418 C2INC EQU H'0004'
|
|
1419 C2IND EQU H'0005'
|
|
1420 C1INC EQU H'0006'
|
|
1421
|
|
1422
|
|
1423 ;----- PORTJ Bits -----------------------------------------------------
|
|
1424 RJ0 EQU H'0000'
|
|
1425 RJ1 EQU H'0001'
|
|
1426 RJ2 EQU H'0002'
|
|
1427 RJ3 EQU H'0003'
|
|
1428 RJ4 EQU H'0004'
|
|
1429 RJ5 EQU H'0005'
|
|
1430 RJ6 EQU H'0006'
|
|
1431 RJ7 EQU H'0007'
|
|
1432
|
|
1433 ALE EQU H'0000'
|
|
1434 OE EQU H'0001'
|
|
1435 WRL EQU H'0002'
|
|
1436 WRH EQU H'0003'
|
|
1437 BA0 EQU H'0004'
|
|
1438 CE EQU H'0005'
|
|
1439 LB EQU H'0006'
|
|
1440 UB EQU H'0007'
|
|
1441
|
|
1442
|
|
1443 ;----- LATA Bits -----------------------------------------------------
|
|
1444 LATA0 EQU H'0000'
|
|
1445 LATA1 EQU H'0001'
|
|
1446 LATA2 EQU H'0002'
|
|
1447 LATA3 EQU H'0003'
|
|
1448 LATA4 EQU H'0004'
|
|
1449 LATA5 EQU H'0005'
|
|
1450 LATA6 EQU H'0006'
|
|
1451 LATA7 EQU H'0007'
|
|
1452
|
|
1453
|
|
1454 ;----- LATB Bits -----------------------------------------------------
|
|
1455 LATB0 EQU H'0000'
|
|
1456 LATB1 EQU H'0001'
|
|
1457 LATB2 EQU H'0002'
|
|
1458 LATB3 EQU H'0003'
|
|
1459 LATB4 EQU H'0004'
|
|
1460 LATB5 EQU H'0005'
|
|
1461 LATB6 EQU H'0006'
|
|
1462 LATB7 EQU H'0007'
|
|
1463
|
|
1464
|
|
1465 ;----- LATC Bits -----------------------------------------------------
|
|
1466 LATC0 EQU H'0000'
|
|
1467 LATC1 EQU H'0001'
|
|
1468 LATC2 EQU H'0002'
|
|
1469 LATC3 EQU H'0003'
|
|
1470 LATC4 EQU H'0004'
|
|
1471 LATC5 EQU H'0005'
|
|
1472 LATC6 EQU H'0006'
|
|
1473 LATC7 EQU H'0007'
|
|
1474
|
|
1475
|
|
1476 ;----- LATD Bits -----------------------------------------------------
|
|
1477 LATD0 EQU H'0000'
|
|
1478 LATD1 EQU H'0001'
|
|
1479 LATD2 EQU H'0002'
|
|
1480 LATD3 EQU H'0003'
|
|
1481 LATD4 EQU H'0004'
|
|
1482 LATD5 EQU H'0005'
|
|
1483 LATD6 EQU H'0006'
|
|
1484 LATD7 EQU H'0007'
|
|
1485
|
|
1486
|
|
1487 ;----- LATE Bits -----------------------------------------------------
|
|
1488 LATE0 EQU H'0000'
|
|
1489 LATE1 EQU H'0001'
|
|
1490 LATE2 EQU H'0002'
|
|
1491 LATE3 EQU H'0003'
|
|
1492 LATE4 EQU H'0004'
|
|
1493 LATE5 EQU H'0005'
|
|
1494 LATE6 EQU H'0006'
|
|
1495 LATE7 EQU H'0007'
|
|
1496
|
|
1497
|
|
1498 ;----- LATF Bits -----------------------------------------------------
|
|
1499 LATF1 EQU H'0001'
|
|
1500 LATF2 EQU H'0002'
|
|
1501 LATF3 EQU H'0003'
|
|
1502 LATF4 EQU H'0004'
|
|
1503 LATF5 EQU H'0005'
|
|
1504 LATF6 EQU H'0006'
|
|
1505 LATF7 EQU H'0007'
|
|
1506
|
|
1507
|
|
1508 ;----- LATG Bits -----------------------------------------------------
|
|
1509 LATG0 EQU H'0000'
|
|
1510 LATG1 EQU H'0001'
|
|
1511 LATG2 EQU H'0002'
|
|
1512 LATG3 EQU H'0003'
|
|
1513 LATG4 EQU H'0004'
|
|
1514
|
|
1515
|
|
1516 ;----- LATH Bits -----------------------------------------------------
|
|
1517 LATH0 EQU H'0000'
|
|
1518 LATH1 EQU H'0001'
|
|
1519 LATH2 EQU H'0002'
|
|
1520 LATH3 EQU H'0003'
|
|
1521 LATH4 EQU H'0004'
|
|
1522 LATH5 EQU H'0005'
|
|
1523 LATH6 EQU H'0006'
|
|
1524 LATH7 EQU H'0007'
|
|
1525
|
|
1526
|
|
1527 ;----- LATJ Bits -----------------------------------------------------
|
|
1528 LATJ0 EQU H'0000'
|
|
1529 LATJ1 EQU H'0001'
|
|
1530 LATJ2 EQU H'0002'
|
|
1531 LATJ3 EQU H'0003'
|
|
1532 LATJ4 EQU H'0004'
|
|
1533 LATJ5 EQU H'0005'
|
|
1534 LATJ6 EQU H'0006'
|
|
1535 LATJ7 EQU H'0007'
|
|
1536
|
|
1537
|
|
1538 ;----- TRISA Bits -----------------------------------------------------
|
|
1539 TRISA0 EQU H'0000'
|
|
1540 TRISA1 EQU H'0001'
|
|
1541 TRISA2 EQU H'0002'
|
|
1542 TRISA3 EQU H'0003'
|
|
1543 TRISA4 EQU H'0004'
|
|
1544 TRISA5 EQU H'0005'
|
|
1545 TRISA6 EQU H'0006'
|
|
1546 TRISA7 EQU H'0007'
|
|
1547
|
|
1548
|
|
1549 ;----- TRISB Bits -----------------------------------------------------
|
|
1550 TRISB0 EQU H'0000'
|
|
1551 TRISB1 EQU H'0001'
|
|
1552 TRISB2 EQU H'0002'
|
|
1553 TRISB3 EQU H'0003'
|
|
1554 TRISB4 EQU H'0004'
|
|
1555 TRISB5 EQU H'0005'
|
|
1556 TRISB6 EQU H'0006'
|
|
1557 TRISB7 EQU H'0007'
|
|
1558
|
|
1559
|
|
1560 ;----- TRISC Bits -----------------------------------------------------
|
|
1561 TRISC0 EQU H'0000'
|
|
1562 TRISC1 EQU H'0001'
|
|
1563 TRISC2 EQU H'0002'
|
|
1564 TRISC3 EQU H'0003'
|
|
1565 TRISC4 EQU H'0004'
|
|
1566 TRISC5 EQU H'0005'
|
|
1567 TRISC6 EQU H'0006'
|
|
1568 TRISC7 EQU H'0007'
|
|
1569
|
|
1570
|
|
1571 ;----- TRISD Bits -----------------------------------------------------
|
|
1572 TRISD0 EQU H'0000'
|
|
1573 TRISD1 EQU H'0001'
|
|
1574 TRISD2 EQU H'0002'
|
|
1575 TRISD3 EQU H'0003'
|
|
1576 TRISD4 EQU H'0004'
|
|
1577 TRISD5 EQU H'0005'
|
|
1578 TRISD6 EQU H'0006'
|
|
1579 TRISD7 EQU H'0007'
|
|
1580
|
|
1581
|
|
1582 ;----- TRISE Bits -----------------------------------------------------
|
|
1583 TRISE0 EQU H'0000'
|
|
1584 TRISE1 EQU H'0001'
|
|
1585 TRISE2 EQU H'0002'
|
|
1586 TRISE3 EQU H'0003'
|
|
1587 TRISE4 EQU H'0004'
|
|
1588 TRISE5 EQU H'0005'
|
|
1589 TRISE6 EQU H'0006'
|
|
1590 TRISE7 EQU H'0007'
|
|
1591
|
|
1592
|
|
1593 ;----- TRISF Bits -----------------------------------------------------
|
|
1594 TRISF1 EQU H'0001'
|
|
1595 TRISF2 EQU H'0002'
|
|
1596 TRISF3 EQU H'0003'
|
|
1597 TRISF4 EQU H'0004'
|
|
1598 TRISF5 EQU H'0005'
|
|
1599 TRISF6 EQU H'0006'
|
|
1600 TRISF7 EQU H'0007'
|
|
1601
|
|
1602
|
|
1603 ;----- TRISG Bits -----------------------------------------------------
|
|
1604 TRISG0 EQU H'0000'
|
|
1605 TRISG1 EQU H'0001'
|
|
1606 TRISG2 EQU H'0002'
|
|
1607 TRISG3 EQU H'0003'
|
|
1608 TRISG4 EQU H'0004'
|
|
1609
|
|
1610
|
|
1611 ;----- TRISH Bits -----------------------------------------------------
|
|
1612 TRISH0 EQU H'0000'
|
|
1613 TRISH1 EQU H'0001'
|
|
1614 TRISH2 EQU H'0002'
|
|
1615 TRISH3 EQU H'0003'
|
|
1616 TRISH4 EQU H'0004'
|
|
1617 TRISH5 EQU H'0005'
|
|
1618 TRISH6 EQU H'0006'
|
|
1619 TRISH7 EQU H'0007'
|
|
1620
|
|
1621
|
|
1622 ;----- TRISJ Bits -----------------------------------------------------
|
|
1623 TRISJ0 EQU H'0000'
|
|
1624 TRISJ1 EQU H'0001'
|
|
1625 TRISJ2 EQU H'0002'
|
|
1626 TRISJ3 EQU H'0003'
|
|
1627 TRISJ4 EQU H'0004'
|
|
1628 TRISJ5 EQU H'0005'
|
|
1629 TRISJ6 EQU H'0006'
|
|
1630 TRISJ7 EQU H'0007'
|
|
1631
|
|
1632
|
|
1633 ;----- OSCTUNE Bits -----------------------------------------------------
|
|
1634 PLLEN EQU H'0006'
|
|
1635 INTSRC EQU H'0007'
|
|
1636
|
|
1637 TUN0 EQU H'0000'
|
|
1638 TUN1 EQU H'0001'
|
|
1639 TUN2 EQU H'0002'
|
|
1640 TUN3 EQU H'0003'
|
|
1641 TUN4 EQU H'0004'
|
|
1642 TUN5 EQU H'0005'
|
|
1643
|
|
1644
|
|
1645 ;----- PSTR1CON Bits -----------------------------------------------------
|
|
1646 STRA EQU H'0000'
|
|
1647 STRB EQU H'0001'
|
|
1648 STRC EQU H'0002'
|
|
1649 STRD EQU H'0003'
|
|
1650 STRSYNC EQU H'0004'
|
|
1651
|
|
1652 CMPL0 EQU H'0006'
|
|
1653 CMPL1 EQU H'0007'
|
|
1654
|
|
1655
|
|
1656 ;----- PIE1 Bits -----------------------------------------------------
|
|
1657 TMR1IE EQU H'0000'
|
|
1658 TMR2IE EQU H'0001'
|
|
1659 TMR1GIE EQU H'0002'
|
|
1660 SSP1IE EQU H'0003'
|
|
1661 TX1IE EQU H'0004'
|
|
1662 RC1IE EQU H'0005'
|
|
1663 ADIE EQU H'0006'
|
|
1664 PSPIE EQU H'0007'
|
|
1665
|
|
1666 SSPIE EQU H'0003'
|
|
1667 TXIE EQU H'0004'
|
|
1668 RCIE EQU H'0005'
|
|
1669
|
|
1670
|
|
1671 ;----- PIR1 Bits -----------------------------------------------------
|
|
1672 TMR1IF EQU H'0000'
|
|
1673 TMR2IF EQU H'0001'
|
|
1674 TMR1GIF EQU H'0002'
|
|
1675 SSP1IF EQU H'0003'
|
|
1676 TX1IF EQU H'0004'
|
|
1677 RC1IF EQU H'0005'
|
|
1678 ADIF EQU H'0006'
|
|
1679 PSPIF EQU H'0007'
|
|
1680
|
|
1681 SSPIF EQU H'0003'
|
|
1682 TXIF EQU H'0004'
|
|
1683 RCIF EQU H'0005'
|
|
1684
|
|
1685
|
|
1686 ;----- IPR1 Bits -----------------------------------------------------
|
|
1687 TMR1IP EQU H'0000'
|
|
1688 TMR2IP EQU H'0001'
|
|
1689 TMR1GIP EQU H'0002'
|
|
1690 SSP1IP EQU H'0003'
|
|
1691 TX1IP EQU H'0004'
|
|
1692 RC1IP EQU H'0005'
|
|
1693 ADIP EQU H'0006'
|
|
1694 PSPIP EQU H'0007'
|
|
1695
|
|
1696 SSPIP EQU H'0003'
|
|
1697 TXIP EQU H'0004'
|
|
1698 RCIP EQU H'0005'
|
|
1699
|
|
1700
|
|
1701 ;----- PIE2 Bits -----------------------------------------------------
|
|
1702 TMR3GIE EQU H'0000'
|
|
1703 TMR3IE EQU H'0001'
|
|
1704 HLVDIE EQU H'0002'
|
|
1705 BCL1IE EQU H'0003'
|
|
1706 BCL2IE EQU H'0004'
|
|
1707 SSP2IE EQU H'0005'
|
|
1708 OSCFIE EQU H'0007'
|
|
1709
|
|
1710 LVDIE EQU H'0002'
|
|
1711 BCLIE EQU H'0003'
|
|
1712
|
|
1713
|
|
1714 ;----- PIR2 Bits -----------------------------------------------------
|
|
1715 TMR3GIF EQU H'0000'
|
|
1716 TMR3IF EQU H'0001'
|
|
1717 HLVDIF EQU H'0002'
|
|
1718 BCL1IF EQU H'0003'
|
|
1719 BCL2IF EQU H'0004'
|
|
1720 SSP2IF EQU H'0005'
|
|
1721 OSCFIF EQU H'0007'
|
|
1722
|
|
1723 LVDIF EQU H'0002'
|
|
1724 BCLIF EQU H'0003'
|
|
1725
|
|
1726
|
|
1727 ;----- IPR2 Bits -----------------------------------------------------
|
|
1728 TMR3GIP EQU H'0000'
|
|
1729 TMR3IP EQU H'0001'
|
|
1730 HLVDIP EQU H'0002'
|
|
1731 BCL1IP EQU H'0003'
|
|
1732 BCL2IP EQU H'0004'
|
|
1733 SSP2IP EQU H'0005'
|
|
1734 OSCFIP EQU H'0007'
|
|
1735
|
|
1736 LVDIP EQU H'0002'
|
|
1737 BCLIP EQU H'0003'
|
|
1738
|
|
1739
|
|
1740 ;----- PIE3 Bits -----------------------------------------------------
|
|
1741 RTCCIE EQU H'0000'
|
|
1742 CCP1IE EQU H'0001'
|
|
1743 CCP2IE EQU H'0002'
|
|
1744 CTMUIE EQU H'0003'
|
|
1745 TX2IE EQU H'0004'
|
|
1746 RC2IE EQU H'0005'
|
|
1747 TMR5GIE EQU H'0007'
|
|
1748
|
|
1749
|
|
1750 ;----- PIR3 Bits -----------------------------------------------------
|
|
1751 RTCCIF EQU H'0000'
|
|
1752 CCP1IF EQU H'0001'
|
|
1753 CCP2IF EQU H'0002'
|
|
1754 CTMUIF EQU H'0003'
|
|
1755 TX2IF EQU H'0004'
|
|
1756 RC2IF EQU H'0005'
|
|
1757 TMR5GIF EQU H'0007'
|
|
1758
|
|
1759
|
|
1760 ;----- IPR3 Bits -----------------------------------------------------
|
|
1761 RTCCIP EQU H'0000'
|
|
1762 CCP1IP EQU H'0001'
|
|
1763 CCP2IP EQU H'0002'
|
|
1764 CTMUIP EQU H'0003'
|
|
1765 TX2IP EQU H'0004'
|
|
1766 RC2IP EQU H'0005'
|
|
1767 TMR5GIP EQU H'0007'
|
|
1768
|
|
1769
|
|
1770 ;----- PIR6 Bits -----------------------------------------------------
|
|
1771 CMP1IF EQU H'0000'
|
|
1772 CMP2IF EQU H'0001'
|
|
1773 CMP3IF EQU H'0002'
|
|
1774 EEIF EQU H'0004'
|
|
1775
|
|
1776
|
|
1777 ;----- PSPCON Bits -----------------------------------------------------
|
|
1778 PSPMODE EQU H'0004'
|
|
1779 IBOV EQU H'0005'
|
|
1780 OBF EQU H'0006'
|
|
1781 IBF EQU H'0007'
|
|
1782
|
|
1783
|
|
1784 ;----- HLVDCON Bits -----------------------------------------------------
|
|
1785 HLVDEN EQU H'0004'
|
|
1786 IRVST EQU H'0005'
|
|
1787 BGVST EQU H'0006'
|
|
1788 VDIRMAG EQU H'0007'
|
|
1789
|
|
1790 HLVDL0 EQU H'0000'
|
|
1791 HLVDL1 EQU H'0001'
|
|
1792 HLVDL2 EQU H'0002'
|
|
1793 HLVDL3 EQU H'0003'
|
|
1794
|
|
1795
|
|
1796 ;----- IPR6 Bits -----------------------------------------------------
|
|
1797 CMP1IP EQU H'0000'
|
|
1798 CMP2IP EQU H'0001'
|
|
1799 CMP3IP EQU H'0002'
|
|
1800 EEIP EQU H'0004'
|
|
1801
|
|
1802
|
|
1803 ;----- T1GCON Bits -----------------------------------------------------
|
|
1804 T1GVAL EQU H'0002'
|
|
1805 T1GGO_NOT_T1DONE EQU H'0003'
|
|
1806 T1GSPM EQU H'0004'
|
|
1807 T1GTM EQU H'0005'
|
|
1808 T1GPOL EQU H'0006'
|
|
1809 TMR1GE EQU H'0007'
|
|
1810
|
|
1811 T1GSS0 EQU H'0000'
|
|
1812 T1GSS1 EQU H'0001'
|
|
1813 T1GGO EQU H'0003'
|
|
1814
|
|
1815 NOT_T1DONE EQU H'0003'
|
|
1816
|
|
1817
|
|
1818 ;----- RCSTA Bits -----------------------------------------------------
|
|
1819 RX9D EQU H'0000'
|
|
1820 OERR EQU H'0001'
|
|
1821 FERR EQU H'0002'
|
|
1822 ADDEN EQU H'0003'
|
|
1823 CREN EQU H'0004'
|
|
1824 SREN EQU H'0005'
|
|
1825 RX9 EQU H'0006'
|
|
1826 SPEN EQU H'0007'
|
|
1827
|
|
1828 RCD8 EQU H'0000'
|
|
1829 ADEN EQU H'0003'
|
|
1830 RC9 EQU H'0006'
|
|
1831
|
|
1832 NOT_RC8 EQU H'0006'
|
|
1833
|
|
1834 RC8_9 EQU H'0006'
|
|
1835
|
|
1836 RX9D1 EQU H'0000'
|
|
1837 OERR1 EQU H'0001'
|
|
1838 FERR1 EQU H'0002'
|
|
1839 ADDEN1 EQU H'0003'
|
|
1840 CREN1 EQU H'0004'
|
|
1841 SREN1 EQU H'0005'
|
|
1842 RX91 EQU H'0006'
|
|
1843 SPEN1 EQU H'0007'
|
|
1844
|
|
1845
|
|
1846 ;----- RCSTA1 Bits -----------------------------------------------------
|
|
1847 RX9D EQU H'0000'
|
|
1848 OERR EQU H'0001'
|
|
1849 FERR EQU H'0002'
|
|
1850 ADDEN EQU H'0003'
|
|
1851 CREN EQU H'0004'
|
|
1852 SREN EQU H'0005'
|
|
1853 RX9 EQU H'0006'
|
|
1854 SPEN EQU H'0007'
|
|
1855
|
|
1856 RCD8 EQU H'0000'
|
|
1857 ADEN EQU H'0003'
|
|
1858 RC9 EQU H'0006'
|
|
1859
|
|
1860 NOT_RC8 EQU H'0006'
|
|
1861
|
|
1862 RC8_9 EQU H'0006'
|
|
1863
|
|
1864 RX9D1 EQU H'0000'
|
|
1865 OERR1 EQU H'0001'
|
|
1866 FERR1 EQU H'0002'
|
|
1867 ADDEN1 EQU H'0003'
|
|
1868 CREN1 EQU H'0004'
|
|
1869 SREN1 EQU H'0005'
|
|
1870 RX91 EQU H'0006'
|
|
1871 SPEN1 EQU H'0007'
|
|
1872
|
|
1873
|
|
1874 ;----- TXSTA Bits -----------------------------------------------------
|
|
1875 TX9D EQU H'0000'
|
|
1876 TRMT EQU H'0001'
|
|
1877 BRGH EQU H'0002'
|
|
1878 SENDB EQU H'0003'
|
|
1879 SYNC EQU H'0004'
|
|
1880 TXEN EQU H'0005'
|
|
1881 TX9 EQU H'0006'
|
|
1882 CSRC EQU H'0007'
|
|
1883
|
|
1884 TXD8 EQU H'0000'
|
|
1885 TX8_9 EQU H'0006'
|
|
1886
|
|
1887 NOT_TX8 EQU H'0006'
|
|
1888
|
|
1889 TX9D1 EQU H'0000'
|
|
1890 TRMT1 EQU H'0001'
|
|
1891 BRGH1 EQU H'0002'
|
|
1892 SENDB1 EQU H'0003'
|
|
1893 SYNC1 EQU H'0004'
|
|
1894 TXEN1 EQU H'0005'
|
|
1895 TX91 EQU H'0006'
|
|
1896 CSRC1 EQU H'0007'
|
|
1897
|
|
1898
|
|
1899 ;----- TXSTA1 Bits -----------------------------------------------------
|
|
1900 TX9D EQU H'0000'
|
|
1901 TRMT EQU H'0001'
|
|
1902 BRGH EQU H'0002'
|
|
1903 SENDB EQU H'0003'
|
|
1904 SYNC EQU H'0004'
|
|
1905 TXEN EQU H'0005'
|
|
1906 TX9 EQU H'0006'
|
|
1907 CSRC EQU H'0007'
|
|
1908
|
|
1909 TXD8 EQU H'0000'
|
|
1910 TX8_9 EQU H'0006'
|
|
1911
|
|
1912 NOT_TX8 EQU H'0006'
|
|
1913
|
|
1914 TX9D1 EQU H'0000'
|
|
1915 TRMT1 EQU H'0001'
|
|
1916 BRGH1 EQU H'0002'
|
|
1917 SENDB1 EQU H'0003'
|
|
1918 SYNC1 EQU H'0004'
|
|
1919 TXEN1 EQU H'0005'
|
|
1920 TX91 EQU H'0006'
|
|
1921 CSRC1 EQU H'0007'
|
|
1922
|
|
1923
|
|
1924 ;----- T3GCON Bits -----------------------------------------------------
|
|
1925 T3GVAL EQU H'0002'
|
|
1926 T3GGO_NOT_T3DONE EQU H'0003'
|
|
1927 T3GSPM EQU H'0004'
|
|
1928 T3GTM EQU H'0005'
|
|
1929 T3GPOL EQU H'0006'
|
|
1930 TMR3GE EQU H'0007'
|
|
1931
|
|
1932 T3GSS0 EQU H'0000'
|
|
1933 T3GSS1 EQU H'0001'
|
|
1934 T3GGO EQU H'0003'
|
|
1935
|
|
1936 NOT_T3DONE EQU H'0003'
|
|
1937
|
|
1938
|
|
1939 ;----- T3CON Bits -----------------------------------------------------
|
|
1940 TMR3ON EQU H'0000'
|
|
1941 RD16 EQU H'0001'
|
|
1942 NOT_T3SYNC EQU H'0002'
|
|
1943 SOSCEN EQU H'0003'
|
|
1944
|
|
1945 T3CKPS0 EQU H'0004'
|
|
1946 T3CKPS1 EQU H'0005'
|
|
1947 TMR3CS0 EQU H'0006'
|
|
1948 TMR3CS1 EQU H'0007'
|
|
1949
|
|
1950
|
|
1951 ;----- CMSTAT Bits -----------------------------------------------------
|
|
1952 CMP1OUT EQU H'0005'
|
|
1953 CMP2OUT EQU H'0006'
|
|
1954 CMP3OUT EQU H'0007'
|
|
1955
|
|
1956
|
|
1957 ;----- CMSTATUS Bits -----------------------------------------------------
|
|
1958 CMP1OUT EQU H'0005'
|
|
1959 CMP2OUT EQU H'0006'
|
|
1960 CMP3OUT EQU H'0007'
|
|
1961
|
|
1962
|
|
1963 ;----- CVRCON Bits -----------------------------------------------------
|
|
1964 CVRSS EQU H'0005'
|
|
1965 CVROE EQU H'0006'
|
|
1966 CVREN EQU H'0007'
|
|
1967
|
|
1968 CVR0 EQU H'0000'
|
|
1969 CVR1 EQU H'0001'
|
|
1970 CVR2 EQU H'0002'
|
|
1971 CVR3 EQU H'0003'
|
|
1972 CVR4 EQU H'0004'
|
|
1973
|
|
1974
|
|
1975 ;----- PIE4 Bits -----------------------------------------------------
|
|
1976 CCP3IE EQU H'0000'
|
|
1977 CCP4IE EQU H'0001'
|
|
1978 CCP5IE EQU H'0002'
|
|
1979 CCP6IE EQU H'0003'
|
|
1980 CCP7IE EQU H'0004'
|
|
1981 CCP8IE EQU H'0005'
|
|
1982 CCP9IE EQU H'0006'
|
|
1983 CCP10IE EQU H'0007'
|
|
1984
|
|
1985
|
|
1986 ;----- PIR4 Bits -----------------------------------------------------
|
|
1987 CCP3IF EQU H'0000'
|
|
1988 CCP4IF EQU H'0001'
|
|
1989 CCP5IF EQU H'0002'
|
|
1990 CCP6IF EQU H'0003'
|
|
1991 CCP7IF EQU H'0004'
|
|
1992 CCP8IF EQU H'0005'
|
|
1993 CCP9IF EQU H'0006'
|
|
1994 CCP10IF EQU H'0007'
|
|
1995
|
|
1996
|
|
1997 ;----- IPR4 Bits -----------------------------------------------------
|
|
1998 CCP3IP EQU H'0000'
|
|
1999 CCP4IP EQU H'0001'
|
|
2000 CCP5IP EQU H'0002'
|
|
2001 CCP6IP EQU H'0003'
|
|
2002 CCP7IP EQU H'0004'
|
|
2003 CCP8IP EQU H'0005'
|
|
2004 CCP9IP EQU H'0006'
|
|
2005 CCP10IP EQU H'0007'
|
|
2006
|
|
2007
|
|
2008 ;----- PIE5 Bits -----------------------------------------------------
|
|
2009 TMR4IE EQU H'0000'
|
|
2010 TMR5IE EQU H'0001'
|
|
2011 TMR6IE EQU H'0002'
|
|
2012 TMR7IE EQU H'0003'
|
|
2013 TMR8IE EQU H'0004'
|
|
2014 TMR10IE EQU H'0005'
|
|
2015 TMR12IE EQU H'0006'
|
|
2016 TMR7GIE EQU H'0007'
|
|
2017
|
|
2018
|
|
2019 ;----- PIR5 Bits -----------------------------------------------------
|
|
2020 TMR4IF EQU H'0000'
|
|
2021 TMR5IF EQU H'0001'
|
|
2022 TMR6IF EQU H'0002'
|
|
2023 TMR7IF EQU H'0003'
|
|
2024 TMR8IF EQU H'0004'
|
|
2025 TMR10IF EQU H'0005'
|
|
2026 TMR12IF EQU H'0006'
|
|
2027 TMR7GIF EQU H'0007'
|
|
2028
|
|
2029
|
|
2030 ;----- CCP1CON Bits -----------------------------------------------------
|
|
2031 CCP1M0 EQU H'0000'
|
|
2032 CCP1M1 EQU H'0001'
|
|
2033 CCP1M2 EQU H'0002'
|
|
2034 CCP1M3 EQU H'0003'
|
|
2035 DC1B0 EQU H'0004'
|
|
2036 DC1B1 EQU H'0005'
|
|
2037 P1M0 EQU H'0006'
|
|
2038 P1M1 EQU H'0007'
|
|
2039
|
|
2040 CCP1Y EQU H'0004'
|
|
2041 CCP1X EQU H'0005'
|
|
2042
|
|
2043
|
|
2044 ;----- ECCP1CON Bits -----------------------------------------------------
|
|
2045 CCP1M0 EQU H'0000'
|
|
2046 CCP1M1 EQU H'0001'
|
|
2047 CCP1M2 EQU H'0002'
|
|
2048 CCP1M3 EQU H'0003'
|
|
2049 DC1B0 EQU H'0004'
|
|
2050 DC1B1 EQU H'0005'
|
|
2051 P1M0 EQU H'0006'
|
|
2052 P1M1 EQU H'0007'
|
|
2053
|
|
2054 CCP1Y EQU H'0004'
|
|
2055 CCP1X EQU H'0005'
|
|
2056
|
|
2057
|
|
2058 ;----- ECCP1DEL Bits -----------------------------------------------------
|
|
2059 P1RSEN EQU H'0007'
|
|
2060
|
|
2061 P1DC0 EQU H'0000'
|
|
2062 P1DC1 EQU H'0001'
|
|
2063 P1DC2 EQU H'0002'
|
|
2064 P1DC3 EQU H'0003'
|
|
2065 P1DC4 EQU H'0004'
|
|
2066 P1DC5 EQU H'0005'
|
|
2067 P1DC6 EQU H'0006'
|
|
2068
|
|
2069
|
|
2070 ;----- PWM1CON Bits -----------------------------------------------------
|
|
2071 P1RSEN EQU H'0007'
|
|
2072
|
|
2073 P1DC0 EQU H'0000'
|
|
2074 P1DC1 EQU H'0001'
|
|
2075 P1DC2 EQU H'0002'
|
|
2076 P1DC3 EQU H'0003'
|
|
2077 P1DC4 EQU H'0004'
|
|
2078 P1DC5 EQU H'0005'
|
|
2079 P1DC6 EQU H'0006'
|
|
2080
|
|
2081
|
|
2082 ;----- ECCP1AS Bits -----------------------------------------------------
|
|
2083 ECCP1ASE EQU H'0007'
|
|
2084
|
|
2085 PSS1BD0 EQU H'0000'
|
|
2086 PSS1BD1 EQU H'0001'
|
|
2087 PSS1AC0 EQU H'0002'
|
|
2088 PSS1AC1 EQU H'0003'
|
|
2089 ECCP1AS0 EQU H'0004'
|
|
2090 ECCP1AS1 EQU H'0005'
|
|
2091 ECCP1AS2 EQU H'0006'
|
|
2092
|
|
2093
|
|
2094 ;----- ADCON2 Bits -----------------------------------------------------
|
|
2095 ADFM EQU H'0007'
|
|
2096
|
|
2097 ADCS0 EQU H'0000'
|
|
2098 ADCS1 EQU H'0001'
|
|
2099 ADCS2 EQU H'0002'
|
|
2100 ACQT0 EQU H'0003'
|
|
2101 ACQT1 EQU H'0004'
|
|
2102 ACQT2 EQU H'0005'
|
|
2103
|
|
2104
|
|
2105 ;----- ADCON1 Bits -----------------------------------------------------
|
|
2106 VNCFG EQU H'0003'
|
|
2107
|
|
2108 CHSN0 EQU H'0000'
|
|
2109 CHSN1 EQU H'0001'
|
|
2110 CHSN2 EQU H'0002'
|
|
2111 VCFG0 EQU H'0004'
|
|
2112 VCFG1 EQU H'0005'
|
|
2113 TRIGSEL0 EQU H'0006'
|
|
2114 TRIGSEL1 EQU H'0007'
|
|
2115
|
|
2116
|
|
2117 ;----- ADCON0 Bits -----------------------------------------------------
|
|
2118 ADON EQU H'0000'
|
|
2119 GO_NOT_DONE EQU H'0001'
|
|
2120
|
|
2121 DONE EQU H'0001'
|
|
2122 CHS0 EQU H'0002'
|
|
2123 CHS1 EQU H'0003'
|
|
2124 CHS2 EQU H'0004'
|
|
2125 CHS3 EQU H'0005'
|
|
2126 CHS4 EQU H'0006'
|
|
2127
|
|
2128 GO EQU H'0001'
|
|
2129
|
|
2130 NOT_DONE EQU H'0001'
|
|
2131
|
|
2132
|
|
2133 ;----- SSP1CON2 Bits -----------------------------------------------------
|
|
2134 SEN EQU H'0000'
|
|
2135 RSEN EQU H'0001'
|
|
2136 PEN EQU H'0002'
|
|
2137 RCEN EQU H'0003'
|
|
2138 ACKEN EQU H'0004'
|
|
2139 ACKDT EQU H'0005'
|
|
2140 ACKSTAT EQU H'0006'
|
|
2141 GCEN EQU H'0007'
|
|
2142
|
|
2143 ADMSK1 EQU H'0001'
|
|
2144 ADMSK2 EQU H'0002'
|
|
2145 ADMSK3 EQU H'0003'
|
|
2146 ADMSK4 EQU H'0004'
|
|
2147 ADMSK5 EQU H'0005'
|
|
2148
|
|
2149
|
|
2150 ;----- SSPCON2 Bits -----------------------------------------------------
|
|
2151 SEN EQU H'0000'
|
|
2152 RSEN EQU H'0001'
|
|
2153 PEN EQU H'0002'
|
|
2154 RCEN EQU H'0003'
|
|
2155 ACKEN EQU H'0004'
|
|
2156 ACKDT EQU H'0005'
|
|
2157 ACKSTAT EQU H'0006'
|
|
2158 GCEN EQU H'0007'
|
|
2159
|
|
2160 ADMSK1 EQU H'0001'
|
|
2161 ADMSK2 EQU H'0002'
|
|
2162 ADMSK3 EQU H'0003'
|
|
2163 ADMSK4 EQU H'0004'
|
|
2164 ADMSK5 EQU H'0005'
|
|
2165
|
|
2166
|
|
2167 ;----- SSP1CON1 Bits -----------------------------------------------------
|
|
2168 CKP EQU H'0004'
|
|
2169 SSPEN EQU H'0005'
|
|
2170 SSPOV EQU H'0006'
|
|
2171 WCOL EQU H'0007'
|
|
2172
|
|
2173 SSPM0 EQU H'0000'
|
|
2174 SSPM1 EQU H'0001'
|
|
2175 SSPM2 EQU H'0002'
|
|
2176 SSPM3 EQU H'0003'
|
|
2177
|
|
2178
|
|
2179 ;----- SSPCON1 Bits -----------------------------------------------------
|
|
2180 CKP EQU H'0004'
|
|
2181 SSPEN EQU H'0005'
|
|
2182 SSPOV EQU H'0006'
|
|
2183 WCOL EQU H'0007'
|
|
2184
|
|
2185 SSPM0 EQU H'0000'
|
|
2186 SSPM1 EQU H'0001'
|
|
2187 SSPM2 EQU H'0002'
|
|
2188 SSPM3 EQU H'0003'
|
|
2189
|
|
2190
|
|
2191 ;----- SSP1STAT Bits -----------------------------------------------------
|
|
2192 BF EQU H'0000'
|
|
2193 UA EQU H'0001'
|
|
2194 R_NOT_W EQU H'0002'
|
|
2195 S EQU H'0003'
|
|
2196 P EQU H'0004'
|
|
2197 D_NOT_A EQU H'0005'
|
|
2198 CKE EQU H'0006'
|
|
2199 SMP EQU H'0007'
|
|
2200
|
|
2201 R EQU H'0002'
|
|
2202 D EQU H'0005'
|
|
2203
|
|
2204 R_W EQU H'0002'
|
|
2205 D_A EQU H'0005'
|
|
2206
|
|
2207 NOT_W EQU H'0002'
|
|
2208 NOT_A EQU H'0005'
|
|
2209
|
|
2210 NOT_WRITE EQU H'0002'
|
|
2211 NOT_ADDRESS EQU H'0005'
|
|
2212
|
|
2213 READ_WRITE EQU H'0002'
|
|
2214 DATA_ADDRESS EQU H'0005'
|
|
2215
|
|
2216 I2C_READ EQU H'0002'
|
|
2217 I2C_START EQU H'0003'
|
|
2218 I2C_STOP EQU H'0004'
|
|
2219 I2C_DAT EQU H'0005'
|
|
2220
|
|
2221
|
|
2222 ;----- SSPSTAT Bits -----------------------------------------------------
|
|
2223 BF EQU H'0000'
|
|
2224 UA EQU H'0001'
|
|
2225 R_NOT_W EQU H'0002'
|
|
2226 S EQU H'0003'
|
|
2227 P EQU H'0004'
|
|
2228 D_NOT_A EQU H'0005'
|
|
2229 CKE EQU H'0006'
|
|
2230 SMP EQU H'0007'
|
|
2231
|
|
2232 R EQU H'0002'
|
|
2233 D EQU H'0005'
|
|
2234
|
|
2235 R_W EQU H'0002'
|
|
2236 D_A EQU H'0005'
|
|
2237
|
|
2238 NOT_W EQU H'0002'
|
|
2239 NOT_A EQU H'0005'
|
|
2240
|
|
2241 NOT_WRITE EQU H'0002'
|
|
2242 NOT_ADDRESS EQU H'0005'
|
|
2243
|
|
2244 READ_WRITE EQU H'0002'
|
|
2245 DATA_ADDRESS EQU H'0005'
|
|
2246
|
|
2247 I2C_READ EQU H'0002'
|
|
2248 I2C_START EQU H'0003'
|
|
2249 I2C_STOP EQU H'0004'
|
|
2250 I2C_DAT EQU H'0005'
|
|
2251
|
|
2252
|
|
2253 ;----- SSP1MSK Bits -----------------------------------------------------
|
|
2254 MSK0 EQU H'0000'
|
|
2255 MSK1 EQU H'0001'
|
|
2256 MSK2 EQU H'0002'
|
|
2257 MSK3 EQU H'0003'
|
|
2258 MSK4 EQU H'0004'
|
|
2259 MSK5 EQU H'0005'
|
|
2260 MSK6 EQU H'0006'
|
|
2261 MSK7 EQU H'0007'
|
|
2262
|
|
2263
|
|
2264 ;----- T2CON Bits -----------------------------------------------------
|
|
2265 TMR2ON EQU H'0002'
|
|
2266
|
|
2267 T2CKPS0 EQU H'0000'
|
|
2268 T2CKPS1 EQU H'0001'
|
|
2269 T2OUTPS0 EQU H'0003'
|
|
2270 T2OUTPS1 EQU H'0004'
|
|
2271 T2OUTPS2 EQU H'0005'
|
|
2272 T2OUTPS3 EQU H'0006'
|
|
2273
|
|
2274
|
|
2275 ;----- T1CON Bits -----------------------------------------------------
|
|
2276 TMR1ON EQU H'0000'
|
|
2277 RD16 EQU H'0001'
|
|
2278 NOT_T1SYNC EQU H'0002'
|
|
2279 SOSCEN EQU H'0003'
|
|
2280
|
|
2281 T1CKPS0 EQU H'0004'
|
|
2282 T1CKPS1 EQU H'0005'
|
|
2283 TMR1CS0 EQU H'0006'
|
|
2284 TMR1CS1 EQU H'0007'
|
|
2285
|
|
2286
|
|
2287 ;----- RCON Bits -----------------------------------------------------
|
|
2288 NOT_BOR EQU H'0000'
|
|
2289 NOT_POR EQU H'0001'
|
|
2290 NOT_PD EQU H'0002'
|
|
2291 NOT_TO EQU H'0003'
|
|
2292 NOT_RI EQU H'0004'
|
|
2293 NOT_CM EQU H'0005'
|
|
2294 SBOREN EQU H'0006'
|
|
2295 IPEN EQU H'0007'
|
|
2296
|
|
2297 BOR EQU H'0000'
|
|
2298 POR EQU H'0001'
|
|
2299 PD EQU H'0002'
|
|
2300 TO EQU H'0003'
|
|
2301 RI EQU H'0004'
|
|
2302 CM EQU H'0005'
|
|
2303
|
|
2304
|
|
2305 ;----- WDTCON Bits -----------------------------------------------------
|
|
2306 SWDTEN EQU H'0000'
|
|
2307 ULPSINK EQU H'0001'
|
|
2308 ULPEN EQU H'0002'
|
|
2309 SRETEN EQU H'0004'
|
|
2310 ULPLVL EQU H'0005'
|
|
2311 REGSLP EQU H'0007'
|
|
2312
|
|
2313 SWDTE EQU H'0000'
|
|
2314
|
|
2315
|
|
2316 ;----- IPR5 Bits -----------------------------------------------------
|
|
2317 TMR4IP EQU H'0000'
|
|
2318 TMR5IP EQU H'0001'
|
|
2319 TMR6IP EQU H'0002'
|
|
2320 TMR7IP EQU H'0003'
|
|
2321 TMR8IP EQU H'0004'
|
|
2322 TMR10IP EQU H'0005'
|
|
2323 TMR12IP EQU H'0006'
|
|
2324 TMR7GIP EQU H'0007'
|
|
2325
|
|
2326
|
|
2327 ;----- OSCCON Bits -----------------------------------------------------
|
|
2328 HFIOFS EQU H'0002'
|
|
2329 OSTS EQU H'0003'
|
|
2330 IDLEN EQU H'0007'
|
|
2331
|
|
2332 SCS0 EQU H'0000'
|
|
2333 SCS1 EQU H'0001'
|
|
2334 IRCF0 EQU H'0004'
|
|
2335 IRCF1 EQU H'0005'
|
|
2336 IRCF2 EQU H'0006'
|
|
2337
|
|
2338
|
|
2339 ;----- T0CON Bits -----------------------------------------------------
|
|
2340 PSA EQU H'0003'
|
|
2341 T0SE EQU H'0004'
|
|
2342 T0CS EQU H'0005'
|
|
2343 T08BIT EQU H'0006'
|
|
2344 TMR0ON EQU H'0007'
|
|
2345
|
|
2346 T0PS0 EQU H'0000'
|
|
2347 T0PS1 EQU H'0001'
|
|
2348 T0PS2 EQU H'0002'
|
|
2349
|
|
2350
|
|
2351 ;----- STATUS Bits -----------------------------------------------------
|
|
2352 C EQU H'0000'
|
|
2353 DC EQU H'0001'
|
|
2354 Z EQU H'0002'
|
|
2355 OV EQU H'0003'
|
|
2356 N EQU H'0004'
|
|
2357
|
|
2358
|
|
2359 ;----- INTCON3 Bits -----------------------------------------------------
|
|
2360 INT1IF EQU H'0000'
|
|
2361 INT2IF EQU H'0001'
|
|
2362 INT3IF EQU H'0002'
|
|
2363 INT1IE EQU H'0003'
|
|
2364 INT2IE EQU H'0004'
|
|
2365 INT3IE EQU H'0005'
|
|
2366 INT1IP EQU H'0006'
|
|
2367 INT2IP EQU H'0007'
|
|
2368
|
|
2369 INT1F EQU H'0000'
|
|
2370 INT2F EQU H'0001'
|
|
2371 INT3F EQU H'0002'
|
|
2372 INT1E EQU H'0003'
|
|
2373 INT2E EQU H'0004'
|
|
2374 INT3E EQU H'0005'
|
|
2375 INT1P EQU H'0006'
|
|
2376 INT2P EQU H'0007'
|
|
2377
|
|
2378
|
|
2379 ;----- INTCON2 Bits -----------------------------------------------------
|
|
2380 RBIP EQU H'0000'
|
|
2381 INT3IP EQU H'0001'
|
|
2382 TMR0IP EQU H'0002'
|
|
2383 INTEDG3 EQU H'0003'
|
|
2384 INTEDG2 EQU H'0004'
|
|
2385 INTEDG1 EQU H'0005'
|
|
2386 INTEDG0 EQU H'0006'
|
|
2387 NOT_RBPU EQU H'0007'
|
|
2388
|
|
2389 INT3P EQU H'0001'
|
|
2390 T0IP EQU H'0002'
|
|
2391 RBPU EQU H'0007'
|
|
2392
|
|
2393
|
|
2394 ;----- INTCON Bits -----------------------------------------------------
|
|
2395 RBIF EQU H'0000'
|
|
2396 INT0IF EQU H'0001'
|
|
2397 TMR0IF EQU H'0002'
|
|
2398 RBIE EQU H'0003'
|
|
2399 INT0IE EQU H'0004'
|
|
2400 TMR0IE EQU H'0005'
|
|
2401 PEIE_GIEL EQU H'0006'
|
|
2402 GIE_GIEH EQU H'0007'
|
|
2403
|
|
2404 INT0F EQU H'0001'
|
|
2405 T0IF EQU H'0002'
|
|
2406 INT0E EQU H'0004'
|
|
2407 T0IE EQU H'0005'
|
|
2408 PEIE EQU H'0006'
|
|
2409 GIE EQU H'0007'
|
|
2410
|
|
2411 GIEL EQU H'0006'
|
|
2412 GIEH EQU H'0007'
|
|
2413
|
|
2414
|
|
2415 ;----- STKPTR Bits -----------------------------------------------------
|
|
2416 STKUNF EQU H'0006'
|
|
2417 STKFUL EQU H'0007'
|
|
2418
|
|
2419 SP0 EQU H'0000'
|
|
2420 SP1 EQU H'0001'
|
|
2421 SP2 EQU H'0002'
|
|
2422 SP3 EQU H'0003'
|
|
2423 SP4 EQU H'0004'
|
|
2424 STKOVF EQU H'0007'
|
|
2425
|
|
2426
|
|
2427
|
|
2428 ;==========================================================================
|
|
2429 ;
|
|
2430 ; RAM Definitions
|
|
2431 ;
|
|
2432 ;==========================================================================
|
|
2433 __MAXRAM H'0FFF'
|
|
2434
|
|
2435 ;==========================================================================
|
|
2436 ;
|
|
2437 ; IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
|
|
2438 ; superseded by the CONFIG directive. The following settings
|
|
2439 ; are available for this device.
|
|
2440 ;
|
|
2441 ; VREG Sleep Enable bit:
|
|
2442 ; RETEN = OFF Disabled - Controlled by SRETEN bit
|
|
2443 ; RETEN = ON Enabled
|
|
2444 ;
|
|
2445 ; LF-INTOSC Low-power Enable bit:
|
|
2446 ; INTOSCSEL = LOW LF-INTOSC in Low-power mode during Sleep
|
|
2447 ; INTOSCSEL = HIGH LF-INTOSC in High-power mode during Sleep
|
|
2448 ;
|
|
2449 ; SOSC Power Selection and mode Configuration bits:
|
|
2450 ; SOSCSEL = LOW Low Power SOSC circuit selected
|
|
2451 ; SOSCSEL = DIG Digital (SCLKI) mode
|
|
2452 ; SOSCSEL = HIGH High Power SOSC circuit selected
|
|
2453 ;
|
|
2454 ; Extended Instruction Set:
|
|
2455 ; XINST = OFF Disabled
|
|
2456 ; XINST = ON Enabled
|
|
2457 ;
|
|
2458 ; Oscillator:
|
|
2459 ; FOSC = LP LP oscillator
|
|
2460 ; FOSC = XT XT oscillator
|
|
2461 ; FOSC = HS2 HS oscillator (High power, 16 MHz - 25 MHz)
|
|
2462 ; FOSC = HS1 HS oscillator (Medium power, 4 MHz - 16 MHz)
|
|
2463 ; FOSC = EC3IO EC oscillator, CLKOUT function on OSC2 (High power, 16 MHz - 64 MHz)
|
|
2464 ; FOSC = EC3 EC oscillator (High power, 16 MHz - 64 MHz)
|
|
2465 ; FOSC = RC External RC oscillator, CLKOUT function on OSC2
|
|
2466 ; FOSC = RCIO External RC oscillator
|
|
2467 ; FOSC = INTIO2 Internal RC oscillator
|
|
2468 ; FOSC = INTIO1 Internal RC oscillator, CLKOUT function on OSC2
|
|
2469 ; FOSC = EC2IO EC oscillator, CLKOUT function on OSC2 (Medium power, 160 kHz - 4 MHz)
|
|
2470 ; FOSC = EC2 EC oscillator (Medium power, 160 kHz - 4 MHz)
|
|
2471 ; FOSC = EC1IO EC oscillator, CLKOUT function on OSC2 (Low power, DC - 160 kHz)
|
|
2472 ; FOSC = EC1 EC oscillator (Low power, DC - 160 kHz)
|
|
2473 ;
|
|
2474 ; PLL x4 Enable bit:
|
|
2475 ; PLLCFG = OFF Disabled
|
|
2476 ; PLLCFG = ON Enabled
|
|
2477 ;
|
|
2478 ; Fail-Safe Clock Monitor:
|
|
2479 ; FCMEN = OFF Disabled
|
|
2480 ; FCMEN = ON Enabled
|
|
2481 ;
|
|
2482 ; Internal External Oscillator Switch Over Mode:
|
|
2483 ; IESO = OFF Disabled
|
|
2484 ; IESO = ON Enabled
|
|
2485 ;
|
|
2486 ; Power Up Timer:
|
|
2487 ; PWRTEN = ON Enabled
|
|
2488 ; PWRTEN = OFF Disabled
|
|
2489 ;
|
|
2490 ; Brown Out Detect:
|
|
2491 ; BOREN = OFF Disabled in hardware, SBOREN disabled
|
|
2492 ; BOREN = ON Controlled with SBOREN bit
|
|
2493 ; BOREN = NOSLP Enabled while active, disabled in SLEEP, SBOREN disabled
|
|
2494 ; BOREN = SBORDIS Enabled in hardware, SBOREN disabled
|
|
2495 ;
|
|
2496 ; Brown-out Reset Voltage bits:
|
|
2497 ; BORV = 0 3.0V
|
|
2498 ; BORV = 1 2.7V
|
|
2499 ; BORV = 2 2.0V
|
|
2500 ; BORV = 3 1.8V
|
|
2501 ;
|
|
2502 ; BORMV Power level:
|
|
2503 ; BORPWR = LOW BORMV set to low power level
|
|
2504 ; BORPWR = MEDIUM BORMV set to medium power level
|
|
2505 ; BORPWR = HIGH BORMV set to high power level
|
|
2506 ; BORPWR = ZPBORMV ZPBORMV instead of BORMV is selected
|
|
2507 ;
|
|
2508 ; Watchdog Timer:
|
|
2509 ; WDTEN = OFF WDT disabled in hardware; SWDTEN bit disabled
|
|
2510 ; WDTEN = NOSLP WDT enabled only while device is active and disabled in Sleep mode; SWDTEN bit disabled
|
|
2511 ; WDTEN = ON WDT controlled by SWDTEN bit setting
|
|
2512 ; WDTEN = SWDTDIS WDT enabled in hardware; SWDTEN bit disabled
|
|
2513 ;
|
|
2514 ; Watchdog Postscaler:
|
|
2515 ; WDTPS = 1 1:1
|
|
2516 ; WDTPS = 2 1:2
|
|
2517 ; WDTPS = 4 1:4
|
|
2518 ; WDTPS = 8 1:8
|
|
2519 ; WDTPS = 16 1:16
|
|
2520 ; WDTPS = 32 1:32
|
|
2521 ; WDTPS = 64 1:64
|
|
2522 ; WDTPS = 128 1:128
|
|
2523 ; WDTPS = 256 1:256
|
|
2524 ; WDTPS = 512 1:512
|
|
2525 ; WDTPS = 1024 1:1024
|
|
2526 ; WDTPS = 2048 1:2048
|
|
2527 ; WDTPS = 4096 1:4096
|
|
2528 ; WDTPS = 8192 1:8192
|
|
2529 ; WDTPS = 16384 1:16384
|
|
2530 ; WDTPS = 32768 1:32768
|
|
2531 ; WDTPS = 65536 1:65536
|
|
2532 ; WDTPS = 131072 1:131072
|
|
2533 ; WDTPS = 262144 1:262144
|
|
2534 ; WDTPS = 524288 1:524288
|
|
2535 ; WDTPS = 1048576 1:1048576
|
|
2536 ;
|
|
2537 ; RTCC Clock Select:
|
|
2538 ; RTCOSC = INTOSCREF RTCC uses INTRC
|
|
2539 ; RTCOSC = SOSCREF RTCC uses SOSC
|
|
2540 ;
|
|
2541 ; External Address Shift bit:
|
|
2542 ; EASHFT = OFF Address Shifting disabled
|
|
2543 ; EASHFT = ON Address Shifting enabled
|
|
2544 ;
|
|
2545 ; Address Bus Width Select bits:
|
|
2546 ; ABW = XM20 20-bit address bus
|
|
2547 ; ABW = XM16 16-bit address bus
|
|
2548 ; ABW = XM12 12-bit address bus
|
|
2549 ; ABW = MM 8-bit address bus
|
|
2550 ;
|
|
2551 ; Data Bus Width:
|
|
2552 ; BW = 8 8-bit external bus mode
|
|
2553 ; BW = 16 16-bit external bus mode
|
|
2554 ;
|
|
2555 ; External Bus Wait:
|
|
2556 ; WAIT = ON Enabled
|
|
2557 ; WAIT = OFF Disabled
|
|
2558 ;
|
|
2559 ; CCP2 Mux:
|
|
2560 ; CCP2MX = PORTBE RE7-Microcontroller Mode/RB3-All other modes
|
|
2561 ; CCP2MX = PORTC RC1
|
|
2562 ;
|
|
2563 ; ECCP Mux:
|
|
2564 ; ECCPMX = PORTH Enhanced CCP1/3 [P1B/P1C/P3B/P3C] muxed with RH7/RH6/RH5/RH4
|
|
2565 ; ECCPMX = PORTE Enhanced CCP1/3 [P1B/P1C/P3B/P3C] muxed with RE6/RE5/RE4/RE3
|
|
2566 ;
|
|
2567 ; MSSP address masking:
|
|
2568 ; MSSPMSK = MSK5 5 bit address masking mode
|
|
2569 ; MSSPMSK = MSK7 7 Bit address masking mode
|
|
2570 ;
|
|
2571 ; Master Clear Enable:
|
|
2572 ; MCLRE = OFF MCLR Disabled, RG5 Enabled
|
|
2573 ; MCLRE = ON MCLR Enabled, RG5 Disabled
|
|
2574 ;
|
|
2575 ; Stack Overflow Reset:
|
|
2576 ; STVREN = OFF Disabled
|
|
2577 ; STVREN = ON Enabled
|
|
2578 ;
|
|
2579 ; Boot Block Size:
|
|
2580 ; BBSIZ = BB1K 1K word Boot Block size
|
|
2581 ; BBSIZ = BB2K 2K word Boot Block size
|
|
2582 ;
|
|
2583 ; Background Debug:
|
|
2584 ; DEBUG = ON Enabled
|
|
2585 ; DEBUG = OFF Disabled
|
|
2586 ;
|
|
2587 ; Code Protect 00800-03FFF:
|
|
2588 ; CP0 = ON Enabled
|
|
2589 ; CP0 = OFF Disabled
|
|
2590 ;
|
|
2591 ; Code Protect 04000-07FFF:
|
|
2592 ; CP1 = ON Enabled
|
|
2593 ; CP1 = OFF Disabled
|
|
2594 ;
|
|
2595 ; Code Protect 08000-0BFFF:
|
|
2596 ; CP2 = ON Enabled
|
|
2597 ; CP2 = OFF Disabled
|
|
2598 ;
|
|
2599 ; Code Protect 0C000-0FFFF:
|
|
2600 ; CP3 = ON Enabled
|
|
2601 ; CP3 = OFF Disabled
|
|
2602 ;
|
|
2603 ; Code Protect 10000-13FFF:
|
|
2604 ; CP4 = ON Enabled
|
|
2605 ; CP4 = OFF Disabled
|
|
2606 ;
|
|
2607 ; Code Protect 14000-17FFF:
|
|
2608 ; CP5 = ON Enabled
|
|
2609 ; CP5 = OFF Disabled
|
|
2610 ;
|
|
2611 ; Code Protect 18000-1BFFF:
|
|
2612 ; CP6 = ON Enabled
|
|
2613 ; CP6 = OFF Disabled
|
|
2614 ;
|
|
2615 ; Code Protect 1C000-1FFFF:
|
|
2616 ; CP7 = ON Enabled
|
|
2617 ; CP7 = OFF Disabled
|
|
2618 ;
|
|
2619 ; Code Protect Boot:
|
|
2620 ; CPB = ON Enabled
|
|
2621 ; CPB = OFF Disabled
|
|
2622 ;
|
|
2623 ; Data EE Read Protect:
|
|
2624 ; CPD = ON Enabled
|
|
2625 ; CPD = OFF Disabled
|
|
2626 ;
|
|
2627 ; Table Write Protect 00800-03FFF:
|
|
2628 ; WRT0 = ON Enabled
|
|
2629 ; WRT0 = OFF Disabled
|
|
2630 ;
|
|
2631 ; Table Write Protect 04000-07FFF:
|
|
2632 ; WRT1 = ON Enabled
|
|
2633 ; WRT1 = OFF Disabled
|
|
2634 ;
|
|
2635 ; Table Write Protect 08000-0BFFF:
|
|
2636 ; WRT2 = ON Enabled
|
|
2637 ; WRT2 = OFF Disabled
|
|
2638 ;
|
|
2639 ; Table Write Protect 0C000-0FFFF:
|
|
2640 ; WRT3 = ON Enabled
|
|
2641 ; WRT3 = OFF Disabled
|
|
2642 ;
|
|
2643 ; Table Write Protect 10000-13FFF:
|
|
2644 ; WRT4 = ON Enabled
|
|
2645 ; WRT4 = OFF Disabled
|
|
2646 ;
|
|
2647 ; Table Write Protect 14000-17FFF:
|
|
2648 ; WRT5 = ON Enabled
|
|
2649 ; WRT5 = OFF Disabled
|
|
2650 ;
|
|
2651 ; Table Write Protect 18000-1BFFF:
|
|
2652 ; WRT6 = ON Enabled
|
|
2653 ; WRT6 = OFF Disabled
|
|
2654 ;
|
|
2655 ; Table Write Protect 1C000-1FFFF:
|
|
2656 ; WRT7 = ON Enabled
|
|
2657 ; WRT7 = OFF Disabled
|
|
2658 ;
|
|
2659 ; Config. Write Protect:
|
|
2660 ; WRTC = ON Enabled
|
|
2661 ; WRTC = OFF Disabled
|
|
2662 ;
|
|
2663 ; Table Write Protect Boot:
|
|
2664 ; WRTB = ON Enabled
|
|
2665 ; WRTB = OFF Disabled
|
|
2666 ;
|
|
2667 ; Data EE Write Protect:
|
|
2668 ; WRTD = ON Enabled
|
|
2669 ; WRTD = OFF Disabled
|
|
2670 ;
|
|
2671 ; Table Read Protect 00800-03FFF:
|
|
2672 ; EBRT0 = ON Enabled
|
|
2673 ; EBRT0 = OFF Disabled
|
|
2674 ;
|
|
2675 ; Table Read Protect 04000-07FFF:
|
|
2676 ; EBRT1 = ON Enabled
|
|
2677 ; EBRT1 = OFF Disabled
|
|
2678 ;
|
|
2679 ; Table Read Protect 08000-0BFFF:
|
|
2680 ; EBRT2 = ON Enabled
|
|
2681 ; EBRT2 = OFF Disabled
|
|
2682 ;
|
|
2683 ; Table Read Protect 0C000-0FFFF:
|
|
2684 ; EBRT3 = ON Enabled
|
|
2685 ; EBRT3 = OFF Disabled
|
|
2686 ;
|
|
2687 ; Table Read Protect 10000-13FFF:
|
|
2688 ; EBRT4 = ON Enabled
|
|
2689 ; EBRT4 = OFF Disabled
|
|
2690 ;
|
|
2691 ; Table Read Protect 14000-17FFF:
|
|
2692 ; EBRT5 = ON Enabled
|
|
2693 ; EBRT5 = OFF Disabled
|
|
2694 ;
|
|
2695 ; Table Read Protect 18000-1BFFF:
|
|
2696 ; EBRT6 = ON Enabled
|
|
2697 ; EBRT6 = OFF Disabled
|
|
2698 ;
|
|
2699 ; Table Read Protect 1C000-1FFFF:
|
|
2700 ; EBRT7 = ON Enabled
|
|
2701 ; EBRT7 = OFF Disabled
|
|
2702 ;
|
|
2703 ; Table Read Protect Boot:
|
|
2704 ; EBRTB = ON Enabled
|
|
2705 ; EBRTB = OFF Disabled
|
|
2706 ;
|
|
2707 ;==========================================================================
|
|
2708 ;==========================================================================
|
|
2709 ;
|
|
2710 ; Configuration Bits
|
|
2711 ;
|
|
2712 ; NAME Address
|
|
2713 ; CONFIG1L 300000h
|
|
2714 ; CONFIG1H 300001h
|
|
2715 ; CONFIG2L 300002h
|
|
2716 ; CONFIG2H 300003h
|
|
2717 ; CONFIG3L 300004h
|
|
2718 ; CONFIG3H 300005h
|
|
2719 ; CONFIG4L 300006h
|
|
2720 ; CONFIG5L 300008h
|
|
2721 ; CONFIG5H 300009h
|
|
2722 ; CONFIG6L 30000Ah
|
|
2723 ; CONFIG6H 30000Bh
|
|
2724 ; CONFIG7L 30000Ch
|
|
2725 ; CONFIG7H 30000Dh
|
|
2726 ;
|
|
2727 ;==========================================================================
|
|
2728
|
|
2729 ; The following is an assignment of address values for all of the
|
|
2730 ; configuration registers for the purpose of table reads
|
|
2731 _CONFIG1L EQU H'300000'
|
|
2732 _CONFIG1H EQU H'300001'
|
|
2733 _CONFIG2L EQU H'300002'
|
|
2734 _CONFIG2H EQU H'300003'
|
|
2735 _CONFIG3L EQU H'300004'
|
|
2736 _CONFIG3H EQU H'300005'
|
|
2737 _CONFIG4L EQU H'300006'
|
|
2738 _CONFIG5L EQU H'300008'
|
|
2739 _CONFIG5H EQU H'300009'
|
|
2740 _CONFIG6L EQU H'30000A'
|
|
2741 _CONFIG6H EQU H'30000B'
|
|
2742 _CONFIG7L EQU H'30000C'
|
|
2743 _CONFIG7H EQU H'30000D'
|
|
2744
|
|
2745 ;----- CONFIG1L Options --------------------------------------------------
|
|
2746 _RETEN_OFF_1L EQU H'FE' ; Disabled - Controlled by SRETEN bit
|
|
2747 _RETEN_ON_1L EQU H'FF' ; Enabled
|
|
2748
|
|
2749 _INTOSCSEL_LOW_1L EQU H'FB' ; LF-INTOSC in Low-power mode during Sleep
|
|
2750 _INTOSCSEL_HIGH_1L EQU H'FF' ; LF-INTOSC in High-power mode during Sleep
|
|
2751
|
|
2752 _SOSCSEL_LOW_1L EQU H'EF' ; Low Power SOSC circuit selected
|
|
2753 _SOSCSEL_DIG_1L EQU H'F7' ; Digital (SCLKI) mode
|
|
2754 _SOSCSEL_HIGH_1L EQU H'FF' ; High Power SOSC circuit selected
|
|
2755
|
|
2756 _XINST_OFF_1L EQU H'BF' ; Disabled
|
|
2757 _XINST_ON_1L EQU H'FF' ; Enabled
|
|
2758
|
|
2759 ;----- CONFIG1H Options --------------------------------------------------
|
|
2760 _FOSC_LP_1H EQU H'F0' ; LP oscillator
|
|
2761 _FOSC_XT_1H EQU H'F1' ; XT oscillator
|
|
2762 _FOSC_HS2_1H EQU H'F2' ; HS oscillator (High power, 16 MHz - 25 MHz)
|
|
2763 _FOSC_HS1_1H EQU H'F3' ; HS oscillator (Medium power, 4 MHz - 16 MHz)
|
|
2764 _FOSC_EC3IO_1H EQU H'F4' ; EC oscillator, CLKOUT function on OSC2 (High power, 16 MHz - 64 MHz)
|
|
2765 _FOSC_EC3_1H EQU H'F5' ; EC oscillator (High power, 16 MHz - 64 MHz)
|
|
2766 _FOSC_RC_1H EQU H'F6' ; External RC oscillator, CLKOUT function on OSC2
|
|
2767 _FOSC_RCIO_1H EQU H'F7' ; External RC oscillator
|
|
2768 _FOSC_INTIO2_1H EQU H'F8' ; Internal RC oscillator
|
|
2769 _FOSC_INTIO1_1H EQU H'F9' ; Internal RC oscillator, CLKOUT function on OSC2
|
|
2770 _FOSC_EC2IO_1H EQU H'FA' ; EC oscillator, CLKOUT function on OSC2 (Medium power, 160 kHz - 4 MHz)
|
|
2771 _FOSC_EC2_1H EQU H'FB' ; EC oscillator (Medium power, 160 kHz - 4 MHz)
|
|
2772 _FOSC_EC1IO_1H EQU H'FC' ; EC oscillator, CLKOUT function on OSC2 (Low power, DC - 160 kHz)
|
|
2773 _FOSC_EC1_1H EQU H'FD' ; EC oscillator (Low power, DC - 160 kHz)
|
|
2774
|
|
2775 _PLLCFG_OFF_1H EQU H'EF' ; Disabled
|
|
2776 _PLLCFG_ON_1H EQU H'FF' ; Enabled
|
|
2777
|
|
2778 _FCMEN_OFF_1H EQU H'BF' ; Disabled
|
|
2779 _FCMEN_ON_1H EQU H'FF' ; Enabled
|
|
2780
|
|
2781 _IESO_OFF_1H EQU H'7F' ; Disabled
|
|
2782 _IESO_ON_1H EQU H'FF' ; Enabled
|
|
2783
|
|
2784 ;----- CONFIG2L Options --------------------------------------------------
|
|
2785 _PWRTEN_ON_2L EQU H'FE' ; Enabled
|
|
2786 _PWRTEN_OFF_2L EQU H'FF' ; Disabled
|
|
2787
|
|
2788 _BOREN_OFF_2L EQU H'F9' ; Disabled in hardware, SBOREN disabled
|
|
2789 _BOREN_ON_2L EQU H'FB' ; Controlled with SBOREN bit
|
|
2790 _BOREN_NOSLP_2L EQU H'FD' ; Enabled while active, disabled in SLEEP, SBOREN disabled
|
|
2791 _BOREN_SBORDIS_2L EQU H'FF' ; Enabled in hardware, SBOREN disabled
|
|
2792
|
|
2793 _BORV_0_2L EQU H'E7' ; 3.0V
|
|
2794 _BORV_1_2L EQU H'EF' ; 2.7V
|
|
2795 _BORV_2_2L EQU H'F7' ; 2.0V
|
|
2796 _BORV_3_2L EQU H'FF' ; 1.8V
|
|
2797
|
|
2798 _BORPWR_LOW_2L EQU H'9F' ; BORMV set to low power level
|
|
2799 _BORPWR_MEDIUM_2L EQU H'BF' ; BORMV set to medium power level
|
|
2800 _BORPWR_HIGH_2L EQU H'DF' ; BORMV set to high power level
|
|
2801 _BORPWR_ZPBORMV_2L EQU H'FF' ; ZPBORMV instead of BORMV is selected
|
|
2802
|
|
2803 ;----- CONFIG2H Options --------------------------------------------------
|
|
2804 _WDTEN_OFF_2H EQU H'FC' ; WDT disabled in hardware; SWDTEN bit disabled
|
|
2805 _WDTEN_NOSLP_2H EQU H'FD' ; WDT enabled only while device is active and disabled in Sleep mode; SWDTEN bit disabled
|
|
2806 _WDTEN_ON_2H EQU H'FE' ; WDT controlled by SWDTEN bit setting
|
|
2807 _WDTEN_SWDTDIS_2H EQU H'FF' ; WDT enabled in hardware; SWDTEN bit disabled
|
|
2808
|
|
2809 _WDTPS_1_2H EQU H'83' ; 1:1
|
|
2810 _WDTPS_2_2H EQU H'87' ; 1:2
|
|
2811 _WDTPS_4_2H EQU H'8B' ; 1:4
|
|
2812 _WDTPS_8_2H EQU H'8F' ; 1:8
|
|
2813 _WDTPS_16_2H EQU H'93' ; 1:16
|
|
2814 _WDTPS_32_2H EQU H'97' ; 1:32
|
|
2815 _WDTPS_64_2H EQU H'9B' ; 1:64
|
|
2816 _WDTPS_128_2H EQU H'9F' ; 1:128
|
|
2817 _WDTPS_256_2H EQU H'A3' ; 1:256
|
|
2818 _WDTPS_512_2H EQU H'A7' ; 1:512
|
|
2819 _WDTPS_1024_2H EQU H'AB' ; 1:1024
|
|
2820 _WDTPS_2048_2H EQU H'AF' ; 1:2048
|
|
2821 _WDTPS_4096_2H EQU H'B3' ; 1:4096
|
|
2822 _WDTPS_8192_2H EQU H'B7' ; 1:8192
|
|
2823 _WDTPS_16384_2H EQU H'BB' ; 1:16384
|
|
2824 _WDTPS_32768_2H EQU H'BF' ; 1:32768
|
|
2825 _WDTPS_65536_2H EQU H'C3' ; 1:65536
|
|
2826 _WDTPS_131072_2H EQU H'C7' ; 1:131072
|
|
2827 _WDTPS_262144_2H EQU H'CB' ; 1:262144
|
|
2828 _WDTPS_524288_2H EQU H'CF' ; 1:524288
|
|
2829 _WDTPS_1048576_2H EQU H'FF' ; 1:1048576
|
|
2830
|
|
2831 ;----- CONFIG3L Options --------------------------------------------------
|
|
2832 _RTCOSC_INTOSCREF_3L EQU H'FE' ; RTCC uses INTRC
|
|
2833 _RTCOSC_SOSCREF_3L EQU H'FF' ; RTCC uses SOSC
|
|
2834
|
|
2835 _EASHFT_OFF_3L EQU H'F7' ; Address Shifting disabled
|
|
2836 _EASHFT_ON_3L EQU H'FF' ; Address Shifting enabled
|
|
2837
|
|
2838 _ABW_XM20_3L EQU H'CF' ; 20-bit address bus
|
|
2839 _ABW_XM16_3L EQU H'DF' ; 16-bit address bus
|
|
2840 _ABW_XM12_3L EQU H'EF' ; 12-bit address bus
|
|
2841 _ABW_MM_3L EQU H'FF' ; 8-bit address bus
|
|
2842
|
|
2843 _BW_8_3L EQU H'BF' ; 8-bit external bus mode
|
|
2844 _BW_16_3L EQU H'FF' ; 16-bit external bus mode
|
|
2845
|
|
2846 _WAIT_ON_3L EQU H'7F' ; Enabled
|
|
2847 _WAIT_OFF_3L EQU H'FF' ; Disabled
|
|
2848
|
|
2849 ;----- CONFIG3H Options --------------------------------------------------
|
|
2850 _CCP2MX_PORTBE_3H EQU H'FE' ; RE7-Microcontroller Mode/RB3-All other modes
|
|
2851 _CCP2MX_PORTC_3H EQU H'FF' ; RC1
|
|
2852
|
|
2853 _ECCPMX_PORTH_3H EQU H'FD' ; Enhanced CCP1/3 [P1B/P1C/P3B/P3C] muxed with RH7/RH6/RH5/RH4
|
|
2854 _ECCPMX_PORTE_3H EQU H'FF' ; Enhanced CCP1/3 [P1B/P1C/P3B/P3C] muxed with RE6/RE5/RE4/RE3
|
|
2855
|
|
2856 _MSSPMSK_MSK5_3H EQU H'F7' ; 5 bit address masking mode
|
|
2857 _MSSPMSK_MSK7_3H EQU H'FF' ; 7 Bit address masking mode
|
|
2858
|
|
2859 _MCLRE_OFF_3H EQU H'7F' ; MCLR Disabled, RG5 Enabled
|
|
2860 _MCLRE_ON_3H EQU H'FF' ; MCLR Enabled, RG5 Disabled
|
|
2861
|
|
2862 ;----- CONFIG4L Options --------------------------------------------------
|
|
2863 _STVREN_OFF_4L EQU H'FE' ; Disabled
|
|
2864 _STVREN_ON_4L EQU H'FF' ; Enabled
|
|
2865
|
|
2866 _BBSIZ_BB1K_4L EQU H'EF' ; 1K word Boot Block size
|
|
2867 _BBSIZ_BB2K_4L EQU H'FF' ; 2K word Boot Block size
|
|
2868
|
|
2869 _DEBUG_ON_4L EQU H'7F' ; Enabled
|
|
2870 _DEBUG_OFF_4L EQU H'FF' ; Disabled
|
|
2871
|
|
2872 ;----- CONFIG5L Options --------------------------------------------------
|
|
2873 _CP0_ON_5L EQU H'FE' ; Enabled
|
|
2874 _CP0_OFF_5L EQU H'FF' ; Disabled
|
|
2875
|
|
2876 _CP1_ON_5L EQU H'FD' ; Enabled
|
|
2877 _CP1_OFF_5L EQU H'FF' ; Disabled
|
|
2878
|
|
2879 _CP2_ON_5L EQU H'FB' ; Enabled
|
|
2880 _CP2_OFF_5L EQU H'FF' ; Disabled
|
|
2881
|
|
2882 _CP3_ON_5L EQU H'F7' ; Enabled
|
|
2883 _CP3_OFF_5L EQU H'FF' ; Disabled
|
|
2884
|
|
2885 _CP4_ON_5L EQU H'EF' ; Enabled
|
|
2886 _CP4_OFF_5L EQU H'FF' ; Disabled
|
|
2887
|
|
2888 _CP5_ON_5L EQU H'DF' ; Enabled
|
|
2889 _CP5_OFF_5L EQU H'FF' ; Disabled
|
|
2890
|
|
2891 _CP6_ON_5L EQU H'BF' ; Enabled
|
|
2892 _CP6_OFF_5L EQU H'FF' ; Disabled
|
|
2893
|
|
2894 _CP7_ON_5L EQU H'7F' ; Enabled
|
|
2895 _CP7_OFF_5L EQU H'FF' ; Disabled
|
|
2896
|
|
2897 ;----- CONFIG5H Options --------------------------------------------------
|
|
2898 _CPB_ON_5H EQU H'BF' ; Enabled
|
|
2899 _CPB_OFF_5H EQU H'FF' ; Disabled
|
|
2900
|
|
2901 _CPD_ON_5H EQU H'7F' ; Enabled
|
|
2902 _CPD_OFF_5H EQU H'FF' ; Disabled
|
|
2903
|
|
2904 ;----- CONFIG6L Options --------------------------------------------------
|
|
2905 _WRT0_ON_6L EQU H'FE' ; Enabled
|
|
2906 _WRT0_OFF_6L EQU H'FF' ; Disabled
|
|
2907
|
|
2908 _WRT1_ON_6L EQU H'FD' ; Enabled
|
|
2909 _WRT1_OFF_6L EQU H'FF' ; Disabled
|
|
2910
|
|
2911 _WRT2_ON_6L EQU H'FB' ; Enabled
|
|
2912 _WRT2_OFF_6L EQU H'FF' ; Disabled
|
|
2913
|
|
2914 _WRT3_ON_6L EQU H'F7' ; Enabled
|
|
2915 _WRT3_OFF_6L EQU H'FF' ; Disabled
|
|
2916
|
|
2917 _WRT4_ON_6L EQU H'EF' ; Enabled
|
|
2918 _WRT4_OFF_6L EQU H'FF' ; Disabled
|
|
2919
|
|
2920 _WRT5_ON_6L EQU H'DF' ; Enabled
|
|
2921 _WRT5_OFF_6L EQU H'FF' ; Disabled
|
|
2922
|
|
2923 _WRT6_ON_6L EQU H'BF' ; Enabled
|
|
2924 _WRT6_OFF_6L EQU H'FF' ; Disabled
|
|
2925
|
|
2926 _WRT7_ON_6L EQU H'7F' ; Enabled
|
|
2927 _WRT7_OFF_6L EQU H'FF' ; Disabled
|
|
2928
|
|
2929 ;----- CONFIG6H Options --------------------------------------------------
|
|
2930 _WRTC_ON_6H EQU H'DF' ; Enabled
|
|
2931 _WRTC_OFF_6H EQU H'FF' ; Disabled
|
|
2932
|
|
2933 _WRTB_ON_6H EQU H'BF' ; Enabled
|
|
2934 _WRTB_OFF_6H EQU H'FF' ; Disabled
|
|
2935
|
|
2936 _WRTD_ON_6H EQU H'7F' ; Enabled
|
|
2937 _WRTD_OFF_6H EQU H'FF' ; Disabled
|
|
2938
|
|
2939 ;----- CONFIG7L Options --------------------------------------------------
|
|
2940 _EBRT0_ON_7L EQU H'FE' ; Enabled
|
|
2941 _EBRT0_OFF_7L EQU H'FF' ; Disabled
|
|
2942
|
|
2943 _EBRT1_ON_7L EQU H'FD' ; Enabled
|
|
2944 _EBRT1_OFF_7L EQU H'FF' ; Disabled
|
|
2945
|
|
2946 _EBRT2_ON_7L EQU H'FB' ; Enabled
|
|
2947 _EBRT2_OFF_7L EQU H'FF' ; Disabled
|
|
2948
|
|
2949 _EBRT3_ON_7L EQU H'F7' ; Enabled
|
|
2950 _EBRT3_OFF_7L EQU H'FF' ; Disabled
|
|
2951
|
|
2952 _EBRT4_ON_7L EQU H'EF' ; Enabled
|
|
2953 _EBRT4_OFF_7L EQU H'FF' ; Disabled
|
|
2954
|
|
2955 _EBRT5_ON_7L EQU H'DF' ; Enabled
|
|
2956 _EBRT5_OFF_7L EQU H'FF' ; Disabled
|
|
2957
|
|
2958 _EBRT6_ON_7L EQU H'BF' ; Enabled
|
|
2959 _EBRT6_OFF_7L EQU H'FF' ; Disabled
|
|
2960
|
|
2961 _EBRT7_ON_7L EQU H'7F' ; Enabled
|
|
2962 _EBRT7_OFF_7L EQU H'FF' ; Disabled
|
|
2963
|
|
2964 ;----- CONFIG7H Options --------------------------------------------------
|
|
2965 _EBRTB_ON_7H EQU H'BF' ; Enabled
|
|
2966 _EBRTB_OFF_7H EQU H'FF' ; Disabled
|
|
2967
|
|
2968
|
|
2969 ;----- DEVID Equates --------------------------------------------------
|
|
2970 _DEVID1 EQU H'3FFFFE'
|
|
2971 _DEVID2 EQU H'3FFFFF'
|
|
2972
|
|
2973 ;----- IDLOC Equates --------------------------------------------------
|
|
2974 _IDLOC0 EQU H'200000'
|
|
2975 _IDLOC1 EQU H'200001'
|
|
2976 _IDLOC2 EQU H'200002'
|
|
2977 _IDLOC3 EQU H'200003'
|
|
2978 _IDLOC4 EQU H'200004'
|
|
2979 _IDLOC5 EQU H'200005'
|
|
2980 _IDLOC6 EQU H'200006'
|
|
2981 _IDLOC7 EQU H'200007'
|
|
2982
|
|
2983 LIST
|