struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16lf18313.h
blob241f78e23c7325ff8a6d3bf45adf18886f709e84
1 /*
2 * This declarations of the PIC16LF18313 MCU.
4 * This file is part of the GNU PIC library for SDCC, originally
5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:23 UTC.
9 * SDCC is licensed under the GNU Public license (GPL) v2. Note that
10 * this license covers the code to the compiler and other executables,
11 * but explicitly does not cover any code or objects generated by sdcc.
13 * For pic device libraries and header files which are derived from
14 * Microchip header (.inc) and linker script (.lkr) files Microchip
15 * requires that "The header files should state that they are only to be
16 * used with authentic Microchip devices" which makes them incompatible
17 * with the GPL. Pic device libraries and header files are located at
18 * non-free/lib and non-free/include directories respectively.
19 * Sdcc should be run with the --use-non-free command line option in
20 * order to include non-free header files and libraries.
22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
25 #ifndef __PIC16LF18313_H__
26 #define __PIC16LF18313_H__
28 //==============================================================================
30 // Register Addresses
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF0_ADDR 0x0000
37 #define INDF1_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR0_ADDR 0x0004
41 #define FSR0L_ADDR 0x0004
42 #define FSR0H_ADDR 0x0005
43 #define FSR1_ADDR 0x0006
44 #define FSR1L_ADDR 0x0006
45 #define FSR1H_ADDR 0x0007
46 #define BSR_ADDR 0x0008
47 #define WREG_ADDR 0x0009
48 #define PCLATH_ADDR 0x000A
49 #define INTCON_ADDR 0x000B
50 #define PORTA_ADDR 0x000C
51 #define PIR0_ADDR 0x0010
52 #define PIR1_ADDR 0x0011
53 #define PIR2_ADDR 0x0012
54 #define PIR3_ADDR 0x0013
55 #define PIR4_ADDR 0x0014
56 #define TMR0L_ADDR 0x0015
57 #define TMR0H_ADDR 0x0016
58 #define T0CON0_ADDR 0x0017
59 #define T0CON1_ADDR 0x0018
60 #define TMR1_ADDR 0x0019
61 #define TMR1L_ADDR 0x0019
62 #define TMR1H_ADDR 0x001A
63 #define T1CON_ADDR 0x001B
64 #define T1GCON_ADDR 0x001C
65 #define TMR2_ADDR 0x001D
66 #define PR2_ADDR 0x001E
67 #define T2CON_ADDR 0x001F
68 #define TRISA_ADDR 0x008C
69 #define PIE0_ADDR 0x0090
70 #define PIE1_ADDR 0x0091
71 #define PIE2_ADDR 0x0092
72 #define PIE3_ADDR 0x0093
73 #define PIE4_ADDR 0x0094
74 #define WDTCON_ADDR 0x0097
75 #define ADRES_ADDR 0x009B
76 #define ADRESL_ADDR 0x009B
77 #define ADRESH_ADDR 0x009C
78 #define ADCON0_ADDR 0x009D
79 #define ADCON1_ADDR 0x009E
80 #define ADACT_ADDR 0x009F
81 #define LATA_ADDR 0x010C
82 #define CM1CON0_ADDR 0x0111
83 #define CM1CON1_ADDR 0x0112
84 #define CMOUT_ADDR 0x0115
85 #define BORCON_ADDR 0x0116
86 #define FVRCON_ADDR 0x0117
87 #define DACCON0_ADDR 0x0118
88 #define DACCON1_ADDR 0x0119
89 #define ANSELA_ADDR 0x018C
90 #define RC1REG_ADDR 0x0199
91 #define RCREG_ADDR 0x0199
92 #define RCREG1_ADDR 0x0199
93 #define TX1REG_ADDR 0x019A
94 #define TXREG_ADDR 0x019A
95 #define TXREG1_ADDR 0x019A
96 #define SP1BRG_ADDR 0x019B
97 #define SP1BRGL_ADDR 0x019B
98 #define SPBRG_ADDR 0x019B
99 #define SPBRG1_ADDR 0x019B
100 #define SPBRGL_ADDR 0x019B
101 #define SP1BRGH_ADDR 0x019C
102 #define SPBRGH_ADDR 0x019C
103 #define SPBRGH1_ADDR 0x019C
104 #define RC1STA_ADDR 0x019D
105 #define RCSTA_ADDR 0x019D
106 #define RCSTA1_ADDR 0x019D
107 #define TX1STA_ADDR 0x019E
108 #define TXSTA_ADDR 0x019E
109 #define TXSTA1_ADDR 0x019E
110 #define BAUD1CON_ADDR 0x019F
111 #define BAUDCON_ADDR 0x019F
112 #define BAUDCON1_ADDR 0x019F
113 #define BAUDCTL_ADDR 0x019F
114 #define BAUDCTL1_ADDR 0x019F
115 #define WPUA_ADDR 0x020C
116 #define SSP1BUF_ADDR 0x0211
117 #define SSPBUF_ADDR 0x0211
118 #define SSP1ADD_ADDR 0x0212
119 #define SSPADD_ADDR 0x0212
120 #define SSP1MSK_ADDR 0x0213
121 #define SSPMSK_ADDR 0x0213
122 #define SSP1STAT_ADDR 0x0214
123 #define SSPSTAT_ADDR 0x0214
124 #define SSP1CON_ADDR 0x0215
125 #define SSP1CON1_ADDR 0x0215
126 #define SSPCON_ADDR 0x0215
127 #define SSPCON1_ADDR 0x0215
128 #define SSP1CON2_ADDR 0x0216
129 #define SSPCON2_ADDR 0x0216
130 #define SSP1CON3_ADDR 0x0217
131 #define SSPCON3_ADDR 0x0217
132 #define ODCONA_ADDR 0x028C
133 #define CCPR1_ADDR 0x0291
134 #define CCPR1L_ADDR 0x0291
135 #define CCPR1H_ADDR 0x0292
136 #define CCP1CON_ADDR 0x0293
137 #define CCP1CAP_ADDR 0x0294
138 #define CCPR2_ADDR 0x0295
139 #define CCPR2L_ADDR 0x0295
140 #define CCPR2H_ADDR 0x0296
141 #define CCP2CON_ADDR 0x0297
142 #define CCP2CAP_ADDR 0x0298
143 #define CCPTMRS_ADDR 0x029F
144 #define SLRCONA_ADDR 0x030C
145 #define INLVLA_ADDR 0x038C
146 #define IOCAP_ADDR 0x0391
147 #define IOCAN_ADDR 0x0392
148 #define IOCAF_ADDR 0x0393
149 #define CLKRCON_ADDR 0x039A
150 #define MDCON_ADDR 0x039C
151 #define MDSRC_ADDR 0x039D
152 #define MDCARH_ADDR 0x039E
153 #define MDCARL_ADDR 0x039F
154 #define CCDNA_ADDR 0x040C
155 #define CCDCON_ADDR 0x041F
156 #define CCDPA_ADDR 0x048C
157 #define NCO1ACC_ADDR 0x0498
158 #define NCO1ACCL_ADDR 0x0498
159 #define NCO1ACCH_ADDR 0x0499
160 #define NCO1ACCU_ADDR 0x049A
161 #define NCO1INC_ADDR 0x049B
162 #define NCO1INCL_ADDR 0x049B
163 #define NCO1INCH_ADDR 0x049C
164 #define NCO1INCU_ADDR 0x049D
165 #define NCO1CON_ADDR 0x049E
166 #define NCO1CLK_ADDR 0x049F
167 #define PWM5DCL_ADDR 0x0617
168 #define PWM5DCH_ADDR 0x0618
169 #define PWM5CON_ADDR 0x0619
170 #define PWM5CON0_ADDR 0x0619
171 #define PWM6DCL_ADDR 0x061A
172 #define PWM6DCH_ADDR 0x061B
173 #define PWM6CON_ADDR 0x061C
174 #define PWM6CON0_ADDR 0x061C
175 #define CWG1CLKCON_ADDR 0x0691
176 #define CWG1DAT_ADDR 0x0692
177 #define CWG1DBR_ADDR 0x0693
178 #define CWG1DBF_ADDR 0x0694
179 #define CWG1CON0_ADDR 0x0695
180 #define CWG1CON1_ADDR 0x0696
181 #define CWG1AS0_ADDR 0x0697
182 #define CWG1AS1_ADDR 0x0698
183 #define CWG1STR_ADDR 0x0699
184 #define NVMADR_ADDR 0x0891
185 #define NVMADRL_ADDR 0x0891
186 #define NVMADRH_ADDR 0x0892
187 #define NVMDAT_ADDR 0x0893
188 #define NVMDATL_ADDR 0x0893
189 #define NVMDATH_ADDR 0x0894
190 #define NVMCON1_ADDR 0x0895
191 #define NVMCON2_ADDR 0x0896
192 #define PCON0_ADDR 0x089B
193 #define PMD0_ADDR 0x0911
194 #define PMD1_ADDR 0x0912
195 #define PMD2_ADDR 0x0913
196 #define PMD3_ADDR 0x0914
197 #define PMD4_ADDR 0x0915
198 #define PMD5_ADDR 0x0916
199 #define CPUDOZE_ADDR 0x0918
200 #define OSCCON1_ADDR 0x0919
201 #define OSCCON2_ADDR 0x091A
202 #define OSCCON3_ADDR 0x091B
203 #define OSCSTAT1_ADDR 0x091C
204 #define OSCEN_ADDR 0x091D
205 #define OSCTUNE_ADDR 0x091E
206 #define OSCFRQ_ADDR 0x091F
207 #define PPSLOCK_ADDR 0x0E0F
208 #define INTPPS_ADDR 0x0E10
209 #define T0CKIPPS_ADDR 0x0E11
210 #define T1CKIPPS_ADDR 0x0E12
211 #define T1GPPS_ADDR 0x0E13
212 #define CCP1PPS_ADDR 0x0E14
213 #define CCP2PPS_ADDR 0x0E15
214 #define CWG1PPS_ADDR 0x0E18
215 #define MDCIN1PPS_ADDR 0x0E1A
216 #define MDCIN2PPS_ADDR 0x0E1B
217 #define MDMINPPS_ADDR 0x0E1C
218 #define SSP1CLKPPS_ADDR 0x0E20
219 #define SSP1DATPPS_ADDR 0x0E21
220 #define SSP1SSPPS_ADDR 0x0E22
221 #define RXPPS_ADDR 0x0E24
222 #define TXPPS_ADDR 0x0E25
223 #define CLCIN0PPS_ADDR 0x0E28
224 #define CLCIN1PPS_ADDR 0x0E29
225 #define CLCIN2PPS_ADDR 0x0E2A
226 #define CLCIN3PPS_ADDR 0x0E2B
227 #define RA0PPS_ADDR 0x0E90
228 #define RA1PPS_ADDR 0x0E91
229 #define RA2PPS_ADDR 0x0E92
230 #define RA4PPS_ADDR 0x0E94
231 #define RA5PPS_ADDR 0x0E95
232 #define CLCDATA_ADDR 0x0F0F
233 #define CLC1CON_ADDR 0x0F10
234 #define CLC1POL_ADDR 0x0F11
235 #define CLC1SEL0_ADDR 0x0F12
236 #define CLC1SEL1_ADDR 0x0F13
237 #define CLC1SEL2_ADDR 0x0F14
238 #define CLC1SEL3_ADDR 0x0F15
239 #define CLC1GLS0_ADDR 0x0F16
240 #define CLC1GLS1_ADDR 0x0F17
241 #define CLC1GLS2_ADDR 0x0F18
242 #define CLC1GLS3_ADDR 0x0F19
243 #define CLC2CON_ADDR 0x0F1A
244 #define CLC2POL_ADDR 0x0F1B
245 #define CLC2SEL0_ADDR 0x0F1C
246 #define CLC2SEL1_ADDR 0x0F1D
247 #define CLC2SEL2_ADDR 0x0F1E
248 #define CLC2SEL3_ADDR 0x0F1F
249 #define CLC2GLS0_ADDR 0x0F20
250 #define CLC2GLS1_ADDR 0x0F21
251 #define CLC2GLS2_ADDR 0x0F22
252 #define CLC2GLS3_ADDR 0x0F23
253 #define STATUS_SHAD_ADDR 0x0FE4
254 #define WREG_SHAD_ADDR 0x0FE5
255 #define BSR_SHAD_ADDR 0x0FE6
256 #define PCLATH_SHAD_ADDR 0x0FE7
257 #define FSR0L_SHAD_ADDR 0x0FE8
258 #define FSR0H_SHAD_ADDR 0x0FE9
259 #define FSR1L_SHAD_ADDR 0x0FEA
260 #define FSR1H_SHAD_ADDR 0x0FEB
261 #define STKPTR_ADDR 0x0FED
262 #define TOSL_ADDR 0x0FEE
263 #define TOSH_ADDR 0x0FEF
265 #endif // #ifndef NO_ADDR_DEFINES
267 //==============================================================================
269 // Register Definitions
271 //==============================================================================
273 extern __at(0x0000) __sfr INDF0;
274 extern __at(0x0001) __sfr INDF1;
275 extern __at(0x0002) __sfr PCL;
277 //==============================================================================
278 // STATUS Bits
280 extern __at(0x0003) __sfr STATUS;
282 typedef struct
284 unsigned C : 1;
285 unsigned DC : 1;
286 unsigned Z : 1;
287 unsigned NOT_PD : 1;
288 unsigned NOT_TO : 1;
289 unsigned : 1;
290 unsigned : 1;
291 unsigned : 1;
292 } __STATUSbits_t;
294 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
296 #define _C 0x01
297 #define _DC 0x02
298 #define _Z 0x04
299 #define _NOT_PD 0x08
300 #define _NOT_TO 0x10
302 //==============================================================================
304 extern __at(0x0004) __sfr FSR0;
305 extern __at(0x0004) __sfr FSR0L;
306 extern __at(0x0005) __sfr FSR0H;
307 extern __at(0x0006) __sfr FSR1;
308 extern __at(0x0006) __sfr FSR1L;
309 extern __at(0x0007) __sfr FSR1H;
311 //==============================================================================
312 // BSR Bits
314 extern __at(0x0008) __sfr BSR;
316 typedef union
318 struct
320 unsigned BSR0 : 1;
321 unsigned BSR1 : 1;
322 unsigned BSR2 : 1;
323 unsigned BSR3 : 1;
324 unsigned BSR4 : 1;
325 unsigned : 1;
326 unsigned : 1;
327 unsigned : 1;
330 struct
332 unsigned BSR : 5;
333 unsigned : 3;
335 } __BSRbits_t;
337 extern __at(0x0008) volatile __BSRbits_t BSRbits;
339 #define _BSR0 0x01
340 #define _BSR1 0x02
341 #define _BSR2 0x04
342 #define _BSR3 0x08
343 #define _BSR4 0x10
345 //==============================================================================
347 extern __at(0x0009) __sfr WREG;
348 extern __at(0x000A) __sfr PCLATH;
350 //==============================================================================
351 // INTCON Bits
353 extern __at(0x000B) __sfr INTCON;
355 typedef struct
357 unsigned INTEDG : 1;
358 unsigned : 1;
359 unsigned : 1;
360 unsigned : 1;
361 unsigned : 1;
362 unsigned : 1;
363 unsigned PEIE : 1;
364 unsigned GIE : 1;
365 } __INTCONbits_t;
367 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
369 #define _INTEDG 0x01
370 #define _PEIE 0x40
371 #define _GIE 0x80
373 //==============================================================================
376 //==============================================================================
377 // PORTA Bits
379 extern __at(0x000C) __sfr PORTA;
381 typedef union
383 struct
385 unsigned RA0 : 1;
386 unsigned RA1 : 1;
387 unsigned RA2 : 1;
388 unsigned RA3 : 1;
389 unsigned RA4 : 1;
390 unsigned RA5 : 1;
391 unsigned : 1;
392 unsigned : 1;
395 struct
397 unsigned RA : 6;
398 unsigned : 2;
400 } __PORTAbits_t;
402 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
404 #define _RA0 0x01
405 #define _RA1 0x02
406 #define _RA2 0x04
407 #define _RA3 0x08
408 #define _RA4 0x10
409 #define _RA5 0x20
411 //==============================================================================
414 //==============================================================================
415 // PIR0 Bits
417 extern __at(0x0010) __sfr PIR0;
419 typedef struct
421 unsigned INTF : 1;
422 unsigned : 1;
423 unsigned : 1;
424 unsigned : 1;
425 unsigned IOCIF : 1;
426 unsigned TMR0IF : 1;
427 unsigned : 1;
428 unsigned : 1;
429 } __PIR0bits_t;
431 extern __at(0x0010) volatile __PIR0bits_t PIR0bits;
433 #define _INTF 0x01
434 #define _IOCIF 0x10
435 #define _TMR0IF 0x20
437 //==============================================================================
440 //==============================================================================
441 // PIR1 Bits
443 extern __at(0x0011) __sfr PIR1;
445 typedef struct
447 unsigned TMR1IF : 1;
448 unsigned TMR2IF : 1;
449 unsigned BCL1IF : 1;
450 unsigned SSP1IF : 1;
451 unsigned TXIF : 1;
452 unsigned RCIF : 1;
453 unsigned ADIF : 1;
454 unsigned TMR1GIF : 1;
455 } __PIR1bits_t;
457 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
459 #define _TMR1IF 0x01
460 #define _TMR2IF 0x02
461 #define _BCL1IF 0x04
462 #define _SSP1IF 0x08
463 #define _TXIF 0x10
464 #define _RCIF 0x20
465 #define _ADIF 0x40
466 #define _TMR1GIF 0x80
468 //==============================================================================
471 //==============================================================================
472 // PIR2 Bits
474 extern __at(0x0012) __sfr PIR2;
476 typedef struct
478 unsigned NCO1IF : 1;
479 unsigned : 1;
480 unsigned : 1;
481 unsigned : 1;
482 unsigned NVMIF : 1;
483 unsigned C1IF : 1;
484 unsigned : 1;
485 unsigned : 1;
486 } __PIR2bits_t;
488 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
490 #define _NCO1IF 0x01
491 #define _NVMIF 0x10
492 #define _C1IF 0x20
494 //==============================================================================
497 //==============================================================================
498 // PIR3 Bits
500 extern __at(0x0013) __sfr PIR3;
502 typedef struct
504 unsigned CLC1IF : 1;
505 unsigned CLC2IF : 1;
506 unsigned : 1;
507 unsigned : 1;
508 unsigned : 1;
509 unsigned : 1;
510 unsigned CSWIF : 1;
511 unsigned OSFIF : 1;
512 } __PIR3bits_t;
514 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
516 #define _CLC1IF 0x01
517 #define _CLC2IF 0x02
518 #define _CSWIF 0x40
519 #define _OSFIF 0x80
521 //==============================================================================
524 //==============================================================================
525 // PIR4 Bits
527 extern __at(0x0014) __sfr PIR4;
529 typedef struct
531 unsigned CCP1IF : 1;
532 unsigned CCP2IF : 1;
533 unsigned : 1;
534 unsigned : 1;
535 unsigned : 1;
536 unsigned : 1;
537 unsigned CWG1IF : 1;
538 unsigned : 1;
539 } __PIR4bits_t;
541 extern __at(0x0014) volatile __PIR4bits_t PIR4bits;
543 #define _CCP1IF 0x01
544 #define _CCP2IF 0x02
545 #define _CWG1IF 0x40
547 //==============================================================================
550 //==============================================================================
551 // TMR0L Bits
553 extern __at(0x0015) __sfr TMR0L;
555 typedef struct
557 unsigned TMR00 : 1;
558 unsigned TMR01 : 1;
559 unsigned TMR02 : 1;
560 unsigned TMR03 : 1;
561 unsigned TMR04 : 1;
562 unsigned TMR05 : 1;
563 unsigned TMR06 : 1;
564 unsigned TMR07 : 1;
565 } __TMR0Lbits_t;
567 extern __at(0x0015) volatile __TMR0Lbits_t TMR0Lbits;
569 #define _TMR00 0x01
570 #define _TMR01 0x02
571 #define _TMR02 0x04
572 #define _TMR03 0x08
573 #define _TMR04 0x10
574 #define _TMR05 0x20
575 #define _TMR06 0x40
576 #define _TMR07 0x80
578 //==============================================================================
581 //==============================================================================
582 // TMR0H Bits
584 extern __at(0x0016) __sfr TMR0H;
586 typedef struct
588 unsigned TMR08 : 1;
589 unsigned TMR09 : 1;
590 unsigned TMR010 : 1;
591 unsigned TMR011 : 1;
592 unsigned TMR012 : 1;
593 unsigned TMR013 : 1;
594 unsigned TMR014 : 1;
595 unsigned TMR015 : 1;
596 } __TMR0Hbits_t;
598 extern __at(0x0016) volatile __TMR0Hbits_t TMR0Hbits;
600 #define _TMR08 0x01
601 #define _TMR09 0x02
602 #define _TMR010 0x04
603 #define _TMR011 0x08
604 #define _TMR012 0x10
605 #define _TMR013 0x20
606 #define _TMR014 0x40
607 #define _TMR015 0x80
609 //==============================================================================
612 //==============================================================================
613 // T0CON0 Bits
615 extern __at(0x0017) __sfr T0CON0;
617 typedef union
619 struct
621 unsigned T0OUTPS0 : 1;
622 unsigned T0OUTPS1 : 1;
623 unsigned T0OUTPS2 : 1;
624 unsigned T0OUTPS3 : 1;
625 unsigned T016BIT : 1;
626 unsigned T0OUT : 1;
627 unsigned : 1;
628 unsigned T0EN : 1;
631 struct
633 unsigned T0OUTPS : 4;
634 unsigned : 4;
636 } __T0CON0bits_t;
638 extern __at(0x0017) volatile __T0CON0bits_t T0CON0bits;
640 #define _T0OUTPS0 0x01
641 #define _T0OUTPS1 0x02
642 #define _T0OUTPS2 0x04
643 #define _T0OUTPS3 0x08
644 #define _T016BIT 0x10
645 #define _T0OUT 0x20
646 #define _T0EN 0x80
648 //==============================================================================
651 //==============================================================================
652 // T0CON1 Bits
654 extern __at(0x0018) __sfr T0CON1;
656 typedef union
658 struct
660 unsigned T0CKPS0 : 1;
661 unsigned T0CKPS1 : 1;
662 unsigned T0CKPS2 : 1;
663 unsigned T0CKPS3 : 1;
664 unsigned T0ASYNC : 1;
665 unsigned T0CS0 : 1;
666 unsigned T0CS1 : 1;
667 unsigned T0CS2 : 1;
670 struct
672 unsigned T0CKPS : 4;
673 unsigned : 4;
676 struct
678 unsigned : 5;
679 unsigned T0CS : 3;
681 } __T0CON1bits_t;
683 extern __at(0x0018) volatile __T0CON1bits_t T0CON1bits;
685 #define _T0CKPS0 0x01
686 #define _T0CKPS1 0x02
687 #define _T0CKPS2 0x04
688 #define _T0CKPS3 0x08
689 #define _T0ASYNC 0x10
690 #define _T0CS0 0x20
691 #define _T0CS1 0x40
692 #define _T0CS2 0x80
694 //==============================================================================
696 extern __at(0x0019) __sfr TMR1;
697 extern __at(0x0019) __sfr TMR1L;
698 extern __at(0x001A) __sfr TMR1H;
700 //==============================================================================
701 // T1CON Bits
703 extern __at(0x001B) __sfr T1CON;
705 typedef union
707 struct
709 unsigned TMR1ON : 1;
710 unsigned : 1;
711 unsigned T1SYNC : 1;
712 unsigned T1SOSC : 1;
713 unsigned T1CKPS0 : 1;
714 unsigned T1CKPS1 : 1;
715 unsigned TMR1CS0 : 1;
716 unsigned TMR1CS1 : 1;
719 struct
721 unsigned : 4;
722 unsigned T1CKPS : 2;
723 unsigned : 2;
726 struct
728 unsigned : 6;
729 unsigned TMR1CS : 2;
731 } __T1CONbits_t;
733 extern __at(0x001B) volatile __T1CONbits_t T1CONbits;
735 #define _TMR1ON 0x01
736 #define _T1SYNC 0x04
737 #define _T1SOSC 0x08
738 #define _T1CKPS0 0x10
739 #define _T1CKPS1 0x20
740 #define _TMR1CS0 0x40
741 #define _TMR1CS1 0x80
743 //==============================================================================
746 //==============================================================================
747 // T1GCON Bits
749 extern __at(0x001C) __sfr T1GCON;
751 typedef union
753 struct
755 unsigned T1GSS0 : 1;
756 unsigned T1GSS1 : 1;
757 unsigned T1GVAL : 1;
758 unsigned T1GGO_NOT_DONE : 1;
759 unsigned T1GSPM : 1;
760 unsigned T1GTM : 1;
761 unsigned T1GPOL : 1;
762 unsigned TMR1GE : 1;
765 struct
767 unsigned T1GSS : 2;
768 unsigned : 6;
770 } __T1GCONbits_t;
772 extern __at(0x001C) volatile __T1GCONbits_t T1GCONbits;
774 #define _T1GSS0 0x01
775 #define _T1GSS1 0x02
776 #define _T1GVAL 0x04
777 #define _T1GGO_NOT_DONE 0x08
778 #define _T1GSPM 0x10
779 #define _T1GTM 0x20
780 #define _T1GPOL 0x40
781 #define _TMR1GE 0x80
783 //==============================================================================
785 extern __at(0x001D) __sfr TMR2;
786 extern __at(0x001E) __sfr PR2;
788 //==============================================================================
789 // T2CON Bits
791 extern __at(0x001F) __sfr T2CON;
793 typedef union
795 struct
797 unsigned T2CKPS0 : 1;
798 unsigned T2CKPS1 : 1;
799 unsigned TMR2ON : 1;
800 unsigned T2OUTPS0 : 1;
801 unsigned T2OUTPS1 : 1;
802 unsigned T2OUTPS2 : 1;
803 unsigned T2OUTPS3 : 1;
804 unsigned : 1;
807 struct
809 unsigned T2CKPS : 2;
810 unsigned : 6;
813 struct
815 unsigned : 3;
816 unsigned T2OUTPS : 4;
817 unsigned : 1;
819 } __T2CONbits_t;
821 extern __at(0x001F) volatile __T2CONbits_t T2CONbits;
823 #define _T2CKPS0 0x01
824 #define _T2CKPS1 0x02
825 #define _TMR2ON 0x04
826 #define _T2OUTPS0 0x08
827 #define _T2OUTPS1 0x10
828 #define _T2OUTPS2 0x20
829 #define _T2OUTPS3 0x40
831 //==============================================================================
834 //==============================================================================
835 // TRISA Bits
837 extern __at(0x008C) __sfr TRISA;
839 typedef struct
841 unsigned TRISA0 : 1;
842 unsigned TRISA1 : 1;
843 unsigned TRISA2 : 1;
844 unsigned : 1;
845 unsigned TRISA4 : 1;
846 unsigned TRISA5 : 1;
847 unsigned : 1;
848 unsigned : 1;
849 } __TRISAbits_t;
851 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
853 #define _TRISA0 0x01
854 #define _TRISA1 0x02
855 #define _TRISA2 0x04
856 #define _TRISA4 0x10
857 #define _TRISA5 0x20
859 //==============================================================================
862 //==============================================================================
863 // PIE0 Bits
865 extern __at(0x0090) __sfr PIE0;
867 typedef struct
869 unsigned INTE : 1;
870 unsigned : 1;
871 unsigned : 1;
872 unsigned : 1;
873 unsigned IOCIE : 1;
874 unsigned TMR0IE : 1;
875 unsigned : 1;
876 unsigned : 1;
877 } __PIE0bits_t;
879 extern __at(0x0090) volatile __PIE0bits_t PIE0bits;
881 #define _INTE 0x01
882 #define _IOCIE 0x10
883 #define _TMR0IE 0x20
885 //==============================================================================
888 //==============================================================================
889 // PIE1 Bits
891 extern __at(0x0091) __sfr PIE1;
893 typedef struct
895 unsigned TMR1IE : 1;
896 unsigned TMR2IE : 1;
897 unsigned BCL1IE : 1;
898 unsigned SSP1IE : 1;
899 unsigned TXIE : 1;
900 unsigned RCIE : 1;
901 unsigned ADIE : 1;
902 unsigned TMR1GIE : 1;
903 } __PIE1bits_t;
905 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
907 #define _TMR1IE 0x01
908 #define _TMR2IE 0x02
909 #define _BCL1IE 0x04
910 #define _SSP1IE 0x08
911 #define _TXIE 0x10
912 #define _RCIE 0x20
913 #define _ADIE 0x40
914 #define _TMR1GIE 0x80
916 //==============================================================================
919 //==============================================================================
920 // PIE2 Bits
922 extern __at(0x0092) __sfr PIE2;
924 typedef struct
926 unsigned NCO1IE : 1;
927 unsigned : 1;
928 unsigned : 1;
929 unsigned : 1;
930 unsigned NVMIE : 1;
931 unsigned C1IE : 1;
932 unsigned : 1;
933 unsigned : 1;
934 } __PIE2bits_t;
936 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
938 #define _NCO1IE 0x01
939 #define _NVMIE 0x10
940 #define _C1IE 0x20
942 //==============================================================================
945 //==============================================================================
946 // PIE3 Bits
948 extern __at(0x0093) __sfr PIE3;
950 typedef struct
952 unsigned CLC1IE : 1;
953 unsigned CLC2IE : 1;
954 unsigned : 1;
955 unsigned : 1;
956 unsigned : 1;
957 unsigned : 1;
958 unsigned CSWIE : 1;
959 unsigned OSFIE : 1;
960 } __PIE3bits_t;
962 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
964 #define _CLC1IE 0x01
965 #define _CLC2IE 0x02
966 #define _CSWIE 0x40
967 #define _OSFIE 0x80
969 //==============================================================================
972 //==============================================================================
973 // PIE4 Bits
975 extern __at(0x0094) __sfr PIE4;
977 typedef struct
979 unsigned CCP1IE : 1;
980 unsigned CCP2IE : 1;
981 unsigned : 1;
982 unsigned : 1;
983 unsigned : 1;
984 unsigned : 1;
985 unsigned CWG1IE : 1;
986 unsigned : 1;
987 } __PIE4bits_t;
989 extern __at(0x0094) volatile __PIE4bits_t PIE4bits;
991 #define _CCP1IE 0x01
992 #define _CCP2IE 0x02
993 #define _CWG1IE 0x40
995 //==============================================================================
998 //==============================================================================
999 // WDTCON Bits
1001 extern __at(0x0097) __sfr WDTCON;
1003 typedef union
1005 struct
1007 unsigned SWDTEN : 1;
1008 unsigned WDTPS0 : 1;
1009 unsigned WDTPS1 : 1;
1010 unsigned WDTPS2 : 1;
1011 unsigned WDTPS3 : 1;
1012 unsigned WDTPS4 : 1;
1013 unsigned : 1;
1014 unsigned : 1;
1017 struct
1019 unsigned : 1;
1020 unsigned WDTPS : 5;
1021 unsigned : 2;
1023 } __WDTCONbits_t;
1025 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
1027 #define _SWDTEN 0x01
1028 #define _WDTPS0 0x02
1029 #define _WDTPS1 0x04
1030 #define _WDTPS2 0x08
1031 #define _WDTPS3 0x10
1032 #define _WDTPS4 0x20
1034 //==============================================================================
1036 extern __at(0x009B) __sfr ADRES;
1037 extern __at(0x009B) __sfr ADRESL;
1038 extern __at(0x009C) __sfr ADRESH;
1040 //==============================================================================
1041 // ADCON0 Bits
1043 extern __at(0x009D) __sfr ADCON0;
1045 typedef union
1047 struct
1049 unsigned ADON : 1;
1050 unsigned GO_NOT_DONE : 1;
1051 unsigned CHS0 : 1;
1052 unsigned CHS1 : 1;
1053 unsigned CHS2 : 1;
1054 unsigned CHS3 : 1;
1055 unsigned CHS4 : 1;
1056 unsigned CHS5 : 1;
1059 struct
1061 unsigned : 1;
1062 unsigned ADGO : 1;
1063 unsigned : 1;
1064 unsigned : 1;
1065 unsigned : 1;
1066 unsigned : 1;
1067 unsigned : 1;
1068 unsigned : 1;
1071 struct
1073 unsigned : 1;
1074 unsigned GO : 1;
1075 unsigned : 1;
1076 unsigned : 1;
1077 unsigned : 1;
1078 unsigned : 1;
1079 unsigned : 1;
1080 unsigned : 1;
1083 struct
1085 unsigned : 2;
1086 unsigned CHS : 6;
1088 } __ADCON0bits_t;
1090 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1092 #define _ADON 0x01
1093 #define _GO_NOT_DONE 0x02
1094 #define _ADGO 0x02
1095 #define _GO 0x02
1096 #define _CHS0 0x04
1097 #define _CHS1 0x08
1098 #define _CHS2 0x10
1099 #define _CHS3 0x20
1100 #define _CHS4 0x40
1101 #define _CHS5 0x80
1103 //==============================================================================
1106 //==============================================================================
1107 // ADCON1 Bits
1109 extern __at(0x009E) __sfr ADCON1;
1111 typedef union
1113 struct
1115 unsigned ADPREF0 : 1;
1116 unsigned ADPREF1 : 1;
1117 unsigned ADNREF : 1;
1118 unsigned : 1;
1119 unsigned ADCS0 : 1;
1120 unsigned ADCS1 : 1;
1121 unsigned ADCS2 : 1;
1122 unsigned ADFM : 1;
1125 struct
1127 unsigned ADPREF : 2;
1128 unsigned : 6;
1131 struct
1133 unsigned : 4;
1134 unsigned ADCS : 3;
1135 unsigned : 1;
1137 } __ADCON1bits_t;
1139 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1141 #define _ADPREF0 0x01
1142 #define _ADPREF1 0x02
1143 #define _ADNREF 0x04
1144 #define _ADCS0 0x10
1145 #define _ADCS1 0x20
1146 #define _ADCS2 0x40
1147 #define _ADFM 0x80
1149 //==============================================================================
1152 //==============================================================================
1153 // ADACT Bits
1155 extern __at(0x009F) __sfr ADACT;
1157 typedef union
1159 struct
1161 unsigned ADACT0 : 1;
1162 unsigned ADACT1 : 1;
1163 unsigned ADACT2 : 1;
1164 unsigned ADACT3 : 1;
1165 unsigned : 1;
1166 unsigned : 1;
1167 unsigned : 1;
1168 unsigned : 1;
1171 struct
1173 unsigned ADACT : 4;
1174 unsigned : 4;
1176 } __ADACTbits_t;
1178 extern __at(0x009F) volatile __ADACTbits_t ADACTbits;
1180 #define _ADACT0 0x01
1181 #define _ADACT1 0x02
1182 #define _ADACT2 0x04
1183 #define _ADACT3 0x08
1185 //==============================================================================
1188 //==============================================================================
1189 // LATA Bits
1191 extern __at(0x010C) __sfr LATA;
1193 typedef struct
1195 unsigned LATA0 : 1;
1196 unsigned LATA1 : 1;
1197 unsigned LATA2 : 1;
1198 unsigned : 1;
1199 unsigned LATA4 : 1;
1200 unsigned LATA5 : 1;
1201 unsigned : 1;
1202 unsigned : 1;
1203 } __LATAbits_t;
1205 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1207 #define _LATA0 0x01
1208 #define _LATA1 0x02
1209 #define _LATA2 0x04
1210 #define _LATA4 0x10
1211 #define _LATA5 0x20
1213 //==============================================================================
1216 //==============================================================================
1217 // CM1CON0 Bits
1219 extern __at(0x0111) __sfr CM1CON0;
1221 typedef struct
1223 unsigned C1SYNC : 1;
1224 unsigned C1HYS : 1;
1225 unsigned C1SP : 1;
1226 unsigned : 1;
1227 unsigned C1POL : 1;
1228 unsigned : 1;
1229 unsigned C1OUT : 1;
1230 unsigned C1ON : 1;
1231 } __CM1CON0bits_t;
1233 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1235 #define _C1SYNC 0x01
1236 #define _C1HYS 0x02
1237 #define _C1SP 0x04
1238 #define _C1POL 0x10
1239 #define _C1OUT 0x40
1240 #define _C1ON 0x80
1242 //==============================================================================
1245 //==============================================================================
1246 // CM1CON1 Bits
1248 extern __at(0x0112) __sfr CM1CON1;
1250 typedef union
1252 struct
1254 unsigned C1NCH0 : 1;
1255 unsigned C1NCH1 : 1;
1256 unsigned C1NCH2 : 1;
1257 unsigned C1PCH0 : 1;
1258 unsigned C1PCH1 : 1;
1259 unsigned C1PCH2 : 1;
1260 unsigned C1INTN : 1;
1261 unsigned C1INTP : 1;
1264 struct
1266 unsigned C1NCH : 3;
1267 unsigned : 5;
1270 struct
1272 unsigned : 3;
1273 unsigned C1PCH : 3;
1274 unsigned : 2;
1276 } __CM1CON1bits_t;
1278 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1280 #define _C1NCH0 0x01
1281 #define _C1NCH1 0x02
1282 #define _C1NCH2 0x04
1283 #define _C1PCH0 0x08
1284 #define _C1PCH1 0x10
1285 #define _C1PCH2 0x20
1286 #define _C1INTN 0x40
1287 #define _C1INTP 0x80
1289 //==============================================================================
1292 //==============================================================================
1293 // CMOUT Bits
1295 extern __at(0x0115) __sfr CMOUT;
1297 typedef struct
1299 unsigned MC1OUT : 1;
1300 unsigned : 1;
1301 unsigned : 1;
1302 unsigned : 1;
1303 unsigned : 1;
1304 unsigned : 1;
1305 unsigned : 1;
1306 unsigned : 1;
1307 } __CMOUTbits_t;
1309 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
1311 #define _MC1OUT 0x01
1313 //==============================================================================
1316 //==============================================================================
1317 // BORCON Bits
1319 extern __at(0x0116) __sfr BORCON;
1321 typedef struct
1323 unsigned BORRDY : 1;
1324 unsigned : 1;
1325 unsigned : 1;
1326 unsigned : 1;
1327 unsigned : 1;
1328 unsigned : 1;
1329 unsigned : 1;
1330 unsigned SBOREN : 1;
1331 } __BORCONbits_t;
1333 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
1335 #define _BORRDY 0x01
1336 #define _SBOREN 0x80
1338 //==============================================================================
1341 //==============================================================================
1342 // FVRCON Bits
1344 extern __at(0x0117) __sfr FVRCON;
1346 typedef union
1348 struct
1350 unsigned ADFVR0 : 1;
1351 unsigned ADFVR1 : 1;
1352 unsigned CDAFVR0 : 1;
1353 unsigned CDAFVR1 : 1;
1354 unsigned TSRNG : 1;
1355 unsigned TSEN : 1;
1356 unsigned FVRRDY : 1;
1357 unsigned FVREN : 1;
1360 struct
1362 unsigned ADFVR : 2;
1363 unsigned : 6;
1366 struct
1368 unsigned : 2;
1369 unsigned CDAFVR : 2;
1370 unsigned : 4;
1372 } __FVRCONbits_t;
1374 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
1376 #define _ADFVR0 0x01
1377 #define _ADFVR1 0x02
1378 #define _CDAFVR0 0x04
1379 #define _CDAFVR1 0x08
1380 #define _TSRNG 0x10
1381 #define _TSEN 0x20
1382 #define _FVRRDY 0x40
1383 #define _FVREN 0x80
1385 //==============================================================================
1388 //==============================================================================
1389 // DACCON0 Bits
1391 extern __at(0x0118) __sfr DACCON0;
1393 typedef union
1395 struct
1397 unsigned DAC1NSS : 1;
1398 unsigned : 1;
1399 unsigned DAC1PSS0 : 1;
1400 unsigned DAC1PSS1 : 1;
1401 unsigned : 1;
1402 unsigned DAC1OE : 1;
1403 unsigned : 1;
1404 unsigned DAC1EN : 1;
1407 struct
1409 unsigned : 2;
1410 unsigned DAC1PSS : 2;
1411 unsigned : 4;
1413 } __DACCON0bits_t;
1415 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits;
1417 #define _DAC1NSS 0x01
1418 #define _DAC1PSS0 0x04
1419 #define _DAC1PSS1 0x08
1420 #define _DAC1OE 0x20
1421 #define _DAC1EN 0x80
1423 //==============================================================================
1426 //==============================================================================
1427 // DACCON1 Bits
1429 extern __at(0x0119) __sfr DACCON1;
1431 typedef union
1433 struct
1435 unsigned DAC1R0 : 1;
1436 unsigned DAC1R1 : 1;
1437 unsigned DAC1R2 : 1;
1438 unsigned DAC1R3 : 1;
1439 unsigned DAC1R4 : 1;
1440 unsigned : 1;
1441 unsigned : 1;
1442 unsigned : 1;
1445 struct
1447 unsigned DAC1R : 5;
1448 unsigned : 3;
1450 } __DACCON1bits_t;
1452 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits;
1454 #define _DAC1R0 0x01
1455 #define _DAC1R1 0x02
1456 #define _DAC1R2 0x04
1457 #define _DAC1R3 0x08
1458 #define _DAC1R4 0x10
1460 //==============================================================================
1463 //==============================================================================
1464 // ANSELA Bits
1466 extern __at(0x018C) __sfr ANSELA;
1468 typedef struct
1470 unsigned ANSA0 : 1;
1471 unsigned ANSA1 : 1;
1472 unsigned ANSA2 : 1;
1473 unsigned : 1;
1474 unsigned ANSA4 : 1;
1475 unsigned ANSA5 : 1;
1476 unsigned : 1;
1477 unsigned : 1;
1478 } __ANSELAbits_t;
1480 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
1482 #define _ANSA0 0x01
1483 #define _ANSA1 0x02
1484 #define _ANSA2 0x04
1485 #define _ANSA4 0x10
1486 #define _ANSA5 0x20
1488 //==============================================================================
1490 extern __at(0x0199) __sfr RC1REG;
1491 extern __at(0x0199) __sfr RCREG;
1492 extern __at(0x0199) __sfr RCREG1;
1493 extern __at(0x019A) __sfr TX1REG;
1494 extern __at(0x019A) __sfr TXREG;
1495 extern __at(0x019A) __sfr TXREG1;
1496 extern __at(0x019B) __sfr SP1BRG;
1497 extern __at(0x019B) __sfr SP1BRGL;
1498 extern __at(0x019B) __sfr SPBRG;
1499 extern __at(0x019B) __sfr SPBRG1;
1500 extern __at(0x019B) __sfr SPBRGL;
1501 extern __at(0x019C) __sfr SP1BRGH;
1502 extern __at(0x019C) __sfr SPBRGH;
1503 extern __at(0x019C) __sfr SPBRGH1;
1505 //==============================================================================
1506 // RC1STA Bits
1508 extern __at(0x019D) __sfr RC1STA;
1510 typedef struct
1512 unsigned RX9D : 1;
1513 unsigned OERR : 1;
1514 unsigned FERR : 1;
1515 unsigned ADDEN : 1;
1516 unsigned CREN : 1;
1517 unsigned SREN : 1;
1518 unsigned RX9 : 1;
1519 unsigned SPEN : 1;
1520 } __RC1STAbits_t;
1522 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
1524 #define _RX9D 0x01
1525 #define _OERR 0x02
1526 #define _FERR 0x04
1527 #define _ADDEN 0x08
1528 #define _CREN 0x10
1529 #define _SREN 0x20
1530 #define _RX9 0x40
1531 #define _SPEN 0x80
1533 //==============================================================================
1536 //==============================================================================
1537 // RCSTA Bits
1539 extern __at(0x019D) __sfr RCSTA;
1541 typedef struct
1543 unsigned RX9D : 1;
1544 unsigned OERR : 1;
1545 unsigned FERR : 1;
1546 unsigned ADDEN : 1;
1547 unsigned CREN : 1;
1548 unsigned SREN : 1;
1549 unsigned RX9 : 1;
1550 unsigned SPEN : 1;
1551 } __RCSTAbits_t;
1553 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
1555 #define _RCSTA_RX9D 0x01
1556 #define _RCSTA_OERR 0x02
1557 #define _RCSTA_FERR 0x04
1558 #define _RCSTA_ADDEN 0x08
1559 #define _RCSTA_CREN 0x10
1560 #define _RCSTA_SREN 0x20
1561 #define _RCSTA_RX9 0x40
1562 #define _RCSTA_SPEN 0x80
1564 //==============================================================================
1567 //==============================================================================
1568 // RCSTA1 Bits
1570 extern __at(0x019D) __sfr RCSTA1;
1572 typedef struct
1574 unsigned RX9D : 1;
1575 unsigned OERR : 1;
1576 unsigned FERR : 1;
1577 unsigned ADDEN : 1;
1578 unsigned CREN : 1;
1579 unsigned SREN : 1;
1580 unsigned RX9 : 1;
1581 unsigned SPEN : 1;
1582 } __RCSTA1bits_t;
1584 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
1586 #define _RCSTA1_RX9D 0x01
1587 #define _RCSTA1_OERR 0x02
1588 #define _RCSTA1_FERR 0x04
1589 #define _RCSTA1_ADDEN 0x08
1590 #define _RCSTA1_CREN 0x10
1591 #define _RCSTA1_SREN 0x20
1592 #define _RCSTA1_RX9 0x40
1593 #define _RCSTA1_SPEN 0x80
1595 //==============================================================================
1598 //==============================================================================
1599 // TX1STA Bits
1601 extern __at(0x019E) __sfr TX1STA;
1603 typedef struct
1605 unsigned TX9D : 1;
1606 unsigned TRMT : 1;
1607 unsigned BRGH : 1;
1608 unsigned SENDB : 1;
1609 unsigned SYNC : 1;
1610 unsigned TXEN : 1;
1611 unsigned TX9 : 1;
1612 unsigned CSRC : 1;
1613 } __TX1STAbits_t;
1615 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
1617 #define _TX9D 0x01
1618 #define _TRMT 0x02
1619 #define _BRGH 0x04
1620 #define _SENDB 0x08
1621 #define _SYNC 0x10
1622 #define _TXEN 0x20
1623 #define _TX9 0x40
1624 #define _CSRC 0x80
1626 //==============================================================================
1629 //==============================================================================
1630 // TXSTA Bits
1632 extern __at(0x019E) __sfr TXSTA;
1634 typedef struct
1636 unsigned TX9D : 1;
1637 unsigned TRMT : 1;
1638 unsigned BRGH : 1;
1639 unsigned SENDB : 1;
1640 unsigned SYNC : 1;
1641 unsigned TXEN : 1;
1642 unsigned TX9 : 1;
1643 unsigned CSRC : 1;
1644 } __TXSTAbits_t;
1646 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
1648 #define _TXSTA_TX9D 0x01
1649 #define _TXSTA_TRMT 0x02
1650 #define _TXSTA_BRGH 0x04
1651 #define _TXSTA_SENDB 0x08
1652 #define _TXSTA_SYNC 0x10
1653 #define _TXSTA_TXEN 0x20
1654 #define _TXSTA_TX9 0x40
1655 #define _TXSTA_CSRC 0x80
1657 //==============================================================================
1660 //==============================================================================
1661 // TXSTA1 Bits
1663 extern __at(0x019E) __sfr TXSTA1;
1665 typedef struct
1667 unsigned TX9D : 1;
1668 unsigned TRMT : 1;
1669 unsigned BRGH : 1;
1670 unsigned SENDB : 1;
1671 unsigned SYNC : 1;
1672 unsigned TXEN : 1;
1673 unsigned TX9 : 1;
1674 unsigned CSRC : 1;
1675 } __TXSTA1bits_t;
1677 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
1679 #define _TXSTA1_TX9D 0x01
1680 #define _TXSTA1_TRMT 0x02
1681 #define _TXSTA1_BRGH 0x04
1682 #define _TXSTA1_SENDB 0x08
1683 #define _TXSTA1_SYNC 0x10
1684 #define _TXSTA1_TXEN 0x20
1685 #define _TXSTA1_TX9 0x40
1686 #define _TXSTA1_CSRC 0x80
1688 //==============================================================================
1691 //==============================================================================
1692 // BAUD1CON Bits
1694 extern __at(0x019F) __sfr BAUD1CON;
1696 typedef struct
1698 unsigned ABDEN : 1;
1699 unsigned WUE : 1;
1700 unsigned : 1;
1701 unsigned BRG16 : 1;
1702 unsigned SCKP : 1;
1703 unsigned : 1;
1704 unsigned RCIDL : 1;
1705 unsigned ABDOVF : 1;
1706 } __BAUD1CONbits_t;
1708 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
1710 #define _ABDEN 0x01
1711 #define _WUE 0x02
1712 #define _BRG16 0x08
1713 #define _SCKP 0x10
1714 #define _RCIDL 0x40
1715 #define _ABDOVF 0x80
1717 //==============================================================================
1720 //==============================================================================
1721 // BAUDCON Bits
1723 extern __at(0x019F) __sfr BAUDCON;
1725 typedef struct
1727 unsigned ABDEN : 1;
1728 unsigned WUE : 1;
1729 unsigned : 1;
1730 unsigned BRG16 : 1;
1731 unsigned SCKP : 1;
1732 unsigned : 1;
1733 unsigned RCIDL : 1;
1734 unsigned ABDOVF : 1;
1735 } __BAUDCONbits_t;
1737 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
1739 #define _BAUDCON_ABDEN 0x01
1740 #define _BAUDCON_WUE 0x02
1741 #define _BAUDCON_BRG16 0x08
1742 #define _BAUDCON_SCKP 0x10
1743 #define _BAUDCON_RCIDL 0x40
1744 #define _BAUDCON_ABDOVF 0x80
1746 //==============================================================================
1749 //==============================================================================
1750 // BAUDCON1 Bits
1752 extern __at(0x019F) __sfr BAUDCON1;
1754 typedef struct
1756 unsigned ABDEN : 1;
1757 unsigned WUE : 1;
1758 unsigned : 1;
1759 unsigned BRG16 : 1;
1760 unsigned SCKP : 1;
1761 unsigned : 1;
1762 unsigned RCIDL : 1;
1763 unsigned ABDOVF : 1;
1764 } __BAUDCON1bits_t;
1766 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
1768 #define _BAUDCON1_ABDEN 0x01
1769 #define _BAUDCON1_WUE 0x02
1770 #define _BAUDCON1_BRG16 0x08
1771 #define _BAUDCON1_SCKP 0x10
1772 #define _BAUDCON1_RCIDL 0x40
1773 #define _BAUDCON1_ABDOVF 0x80
1775 //==============================================================================
1778 //==============================================================================
1779 // BAUDCTL Bits
1781 extern __at(0x019F) __sfr BAUDCTL;
1783 typedef struct
1785 unsigned ABDEN : 1;
1786 unsigned WUE : 1;
1787 unsigned : 1;
1788 unsigned BRG16 : 1;
1789 unsigned SCKP : 1;
1790 unsigned : 1;
1791 unsigned RCIDL : 1;
1792 unsigned ABDOVF : 1;
1793 } __BAUDCTLbits_t;
1795 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
1797 #define _BAUDCTL_ABDEN 0x01
1798 #define _BAUDCTL_WUE 0x02
1799 #define _BAUDCTL_BRG16 0x08
1800 #define _BAUDCTL_SCKP 0x10
1801 #define _BAUDCTL_RCIDL 0x40
1802 #define _BAUDCTL_ABDOVF 0x80
1804 //==============================================================================
1807 //==============================================================================
1808 // BAUDCTL1 Bits
1810 extern __at(0x019F) __sfr BAUDCTL1;
1812 typedef struct
1814 unsigned ABDEN : 1;
1815 unsigned WUE : 1;
1816 unsigned : 1;
1817 unsigned BRG16 : 1;
1818 unsigned SCKP : 1;
1819 unsigned : 1;
1820 unsigned RCIDL : 1;
1821 unsigned ABDOVF : 1;
1822 } __BAUDCTL1bits_t;
1824 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
1826 #define _BAUDCTL1_ABDEN 0x01
1827 #define _BAUDCTL1_WUE 0x02
1828 #define _BAUDCTL1_BRG16 0x08
1829 #define _BAUDCTL1_SCKP 0x10
1830 #define _BAUDCTL1_RCIDL 0x40
1831 #define _BAUDCTL1_ABDOVF 0x80
1833 //==============================================================================
1836 //==============================================================================
1837 // WPUA Bits
1839 extern __at(0x020C) __sfr WPUA;
1841 typedef union
1843 struct
1845 unsigned WPUA0 : 1;
1846 unsigned WPUA1 : 1;
1847 unsigned WPUA2 : 1;
1848 unsigned WPUA3 : 1;
1849 unsigned WPUA4 : 1;
1850 unsigned WPUA5 : 1;
1851 unsigned : 1;
1852 unsigned : 1;
1855 struct
1857 unsigned WPUA : 6;
1858 unsigned : 2;
1860 } __WPUAbits_t;
1862 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
1864 #define _WPUA0 0x01
1865 #define _WPUA1 0x02
1866 #define _WPUA2 0x04
1867 #define _WPUA3 0x08
1868 #define _WPUA4 0x10
1869 #define _WPUA5 0x20
1871 //==============================================================================
1874 //==============================================================================
1875 // SSP1BUF Bits
1877 extern __at(0x0211) __sfr SSP1BUF;
1879 typedef union
1881 struct
1883 unsigned SSP1BUF0 : 1;
1884 unsigned SSP1BUF1 : 1;
1885 unsigned SSP1BUF2 : 1;
1886 unsigned SSP1BUF3 : 1;
1887 unsigned SSP1BUF4 : 1;
1888 unsigned SSP1BUF5 : 1;
1889 unsigned SSP1BUF6 : 1;
1890 unsigned SSP1BUF7 : 1;
1893 struct
1895 unsigned BUF0 : 1;
1896 unsigned BUF1 : 1;
1897 unsigned BUF2 : 1;
1898 unsigned BUF3 : 1;
1899 unsigned BUF4 : 1;
1900 unsigned BUF5 : 1;
1901 unsigned BUF6 : 1;
1902 unsigned BUF7 : 1;
1904 } __SSP1BUFbits_t;
1906 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
1908 #define _SSP1BUF0 0x01
1909 #define _BUF0 0x01
1910 #define _SSP1BUF1 0x02
1911 #define _BUF1 0x02
1912 #define _SSP1BUF2 0x04
1913 #define _BUF2 0x04
1914 #define _SSP1BUF3 0x08
1915 #define _BUF3 0x08
1916 #define _SSP1BUF4 0x10
1917 #define _BUF4 0x10
1918 #define _SSP1BUF5 0x20
1919 #define _BUF5 0x20
1920 #define _SSP1BUF6 0x40
1921 #define _BUF6 0x40
1922 #define _SSP1BUF7 0x80
1923 #define _BUF7 0x80
1925 //==============================================================================
1928 //==============================================================================
1929 // SSPBUF Bits
1931 extern __at(0x0211) __sfr SSPBUF;
1933 typedef union
1935 struct
1937 unsigned SSP1BUF0 : 1;
1938 unsigned SSP1BUF1 : 1;
1939 unsigned SSP1BUF2 : 1;
1940 unsigned SSP1BUF3 : 1;
1941 unsigned SSP1BUF4 : 1;
1942 unsigned SSP1BUF5 : 1;
1943 unsigned SSP1BUF6 : 1;
1944 unsigned SSP1BUF7 : 1;
1947 struct
1949 unsigned BUF0 : 1;
1950 unsigned BUF1 : 1;
1951 unsigned BUF2 : 1;
1952 unsigned BUF3 : 1;
1953 unsigned BUF4 : 1;
1954 unsigned BUF5 : 1;
1955 unsigned BUF6 : 1;
1956 unsigned BUF7 : 1;
1958 } __SSPBUFbits_t;
1960 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
1962 #define _SSPBUF_SSP1BUF0 0x01
1963 #define _SSPBUF_BUF0 0x01
1964 #define _SSPBUF_SSP1BUF1 0x02
1965 #define _SSPBUF_BUF1 0x02
1966 #define _SSPBUF_SSP1BUF2 0x04
1967 #define _SSPBUF_BUF2 0x04
1968 #define _SSPBUF_SSP1BUF3 0x08
1969 #define _SSPBUF_BUF3 0x08
1970 #define _SSPBUF_SSP1BUF4 0x10
1971 #define _SSPBUF_BUF4 0x10
1972 #define _SSPBUF_SSP1BUF5 0x20
1973 #define _SSPBUF_BUF5 0x20
1974 #define _SSPBUF_SSP1BUF6 0x40
1975 #define _SSPBUF_BUF6 0x40
1976 #define _SSPBUF_SSP1BUF7 0x80
1977 #define _SSPBUF_BUF7 0x80
1979 //==============================================================================
1982 //==============================================================================
1983 // SSP1ADD Bits
1985 extern __at(0x0212) __sfr SSP1ADD;
1987 typedef union
1989 struct
1991 unsigned SSP1ADD0 : 1;
1992 unsigned SSP1ADD1 : 1;
1993 unsigned SSP1ADD2 : 1;
1994 unsigned SSP1ADD3 : 1;
1995 unsigned SSP1ADD4 : 1;
1996 unsigned SSP1ADD5 : 1;
1997 unsigned SSP1ADD6 : 1;
1998 unsigned SSP1ADD7 : 1;
2001 struct
2003 unsigned ADD0 : 1;
2004 unsigned ADD1 : 1;
2005 unsigned ADD2 : 1;
2006 unsigned ADD3 : 1;
2007 unsigned ADD4 : 1;
2008 unsigned ADD5 : 1;
2009 unsigned ADD6 : 1;
2010 unsigned ADD7 : 1;
2012 } __SSP1ADDbits_t;
2014 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
2016 #define _SSP1ADD0 0x01
2017 #define _ADD0 0x01
2018 #define _SSP1ADD1 0x02
2019 #define _ADD1 0x02
2020 #define _SSP1ADD2 0x04
2021 #define _ADD2 0x04
2022 #define _SSP1ADD3 0x08
2023 #define _ADD3 0x08
2024 #define _SSP1ADD4 0x10
2025 #define _ADD4 0x10
2026 #define _SSP1ADD5 0x20
2027 #define _ADD5 0x20
2028 #define _SSP1ADD6 0x40
2029 #define _ADD6 0x40
2030 #define _SSP1ADD7 0x80
2031 #define _ADD7 0x80
2033 //==============================================================================
2036 //==============================================================================
2037 // SSPADD Bits
2039 extern __at(0x0212) __sfr SSPADD;
2041 typedef union
2043 struct
2045 unsigned SSP1ADD0 : 1;
2046 unsigned SSP1ADD1 : 1;
2047 unsigned SSP1ADD2 : 1;
2048 unsigned SSP1ADD3 : 1;
2049 unsigned SSP1ADD4 : 1;
2050 unsigned SSP1ADD5 : 1;
2051 unsigned SSP1ADD6 : 1;
2052 unsigned SSP1ADD7 : 1;
2055 struct
2057 unsigned ADD0 : 1;
2058 unsigned ADD1 : 1;
2059 unsigned ADD2 : 1;
2060 unsigned ADD3 : 1;
2061 unsigned ADD4 : 1;
2062 unsigned ADD5 : 1;
2063 unsigned ADD6 : 1;
2064 unsigned ADD7 : 1;
2066 } __SSPADDbits_t;
2068 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
2070 #define _SSPADD_SSP1ADD0 0x01
2071 #define _SSPADD_ADD0 0x01
2072 #define _SSPADD_SSP1ADD1 0x02
2073 #define _SSPADD_ADD1 0x02
2074 #define _SSPADD_SSP1ADD2 0x04
2075 #define _SSPADD_ADD2 0x04
2076 #define _SSPADD_SSP1ADD3 0x08
2077 #define _SSPADD_ADD3 0x08
2078 #define _SSPADD_SSP1ADD4 0x10
2079 #define _SSPADD_ADD4 0x10
2080 #define _SSPADD_SSP1ADD5 0x20
2081 #define _SSPADD_ADD5 0x20
2082 #define _SSPADD_SSP1ADD6 0x40
2083 #define _SSPADD_ADD6 0x40
2084 #define _SSPADD_SSP1ADD7 0x80
2085 #define _SSPADD_ADD7 0x80
2087 //==============================================================================
2090 //==============================================================================
2091 // SSP1MSK Bits
2093 extern __at(0x0213) __sfr SSP1MSK;
2095 typedef union
2097 struct
2099 unsigned SSP1MSK0 : 1;
2100 unsigned SSP1MSK1 : 1;
2101 unsigned SSP1MSK2 : 1;
2102 unsigned SSP1MSK3 : 1;
2103 unsigned SSP1MSK4 : 1;
2104 unsigned SSP1MSK5 : 1;
2105 unsigned SSP1MSK6 : 1;
2106 unsigned SSP1MSK7 : 1;
2109 struct
2111 unsigned MSK0 : 1;
2112 unsigned MSK1 : 1;
2113 unsigned MSK2 : 1;
2114 unsigned MSK3 : 1;
2115 unsigned MSK4 : 1;
2116 unsigned MSK5 : 1;
2117 unsigned MSK6 : 1;
2118 unsigned MSK7 : 1;
2120 } __SSP1MSKbits_t;
2122 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
2124 #define _SSP1MSK0 0x01
2125 #define _MSK0 0x01
2126 #define _SSP1MSK1 0x02
2127 #define _MSK1 0x02
2128 #define _SSP1MSK2 0x04
2129 #define _MSK2 0x04
2130 #define _SSP1MSK3 0x08
2131 #define _MSK3 0x08
2132 #define _SSP1MSK4 0x10
2133 #define _MSK4 0x10
2134 #define _SSP1MSK5 0x20
2135 #define _MSK5 0x20
2136 #define _SSP1MSK6 0x40
2137 #define _MSK6 0x40
2138 #define _SSP1MSK7 0x80
2139 #define _MSK7 0x80
2141 //==============================================================================
2144 //==============================================================================
2145 // SSPMSK Bits
2147 extern __at(0x0213) __sfr SSPMSK;
2149 typedef union
2151 struct
2153 unsigned SSP1MSK0 : 1;
2154 unsigned SSP1MSK1 : 1;
2155 unsigned SSP1MSK2 : 1;
2156 unsigned SSP1MSK3 : 1;
2157 unsigned SSP1MSK4 : 1;
2158 unsigned SSP1MSK5 : 1;
2159 unsigned SSP1MSK6 : 1;
2160 unsigned SSP1MSK7 : 1;
2163 struct
2165 unsigned MSK0 : 1;
2166 unsigned MSK1 : 1;
2167 unsigned MSK2 : 1;
2168 unsigned MSK3 : 1;
2169 unsigned MSK4 : 1;
2170 unsigned MSK5 : 1;
2171 unsigned MSK6 : 1;
2172 unsigned MSK7 : 1;
2174 } __SSPMSKbits_t;
2176 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
2178 #define _SSPMSK_SSP1MSK0 0x01
2179 #define _SSPMSK_MSK0 0x01
2180 #define _SSPMSK_SSP1MSK1 0x02
2181 #define _SSPMSK_MSK1 0x02
2182 #define _SSPMSK_SSP1MSK2 0x04
2183 #define _SSPMSK_MSK2 0x04
2184 #define _SSPMSK_SSP1MSK3 0x08
2185 #define _SSPMSK_MSK3 0x08
2186 #define _SSPMSK_SSP1MSK4 0x10
2187 #define _SSPMSK_MSK4 0x10
2188 #define _SSPMSK_SSP1MSK5 0x20
2189 #define _SSPMSK_MSK5 0x20
2190 #define _SSPMSK_SSP1MSK6 0x40
2191 #define _SSPMSK_MSK6 0x40
2192 #define _SSPMSK_SSP1MSK7 0x80
2193 #define _SSPMSK_MSK7 0x80
2195 //==============================================================================
2198 //==============================================================================
2199 // SSP1STAT Bits
2201 extern __at(0x0214) __sfr SSP1STAT;
2203 typedef struct
2205 unsigned BF : 1;
2206 unsigned UA : 1;
2207 unsigned R_NOT_W : 1;
2208 unsigned S : 1;
2209 unsigned P : 1;
2210 unsigned D_NOT_A : 1;
2211 unsigned CKE : 1;
2212 unsigned SMP : 1;
2213 } __SSP1STATbits_t;
2215 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
2217 #define _BF 0x01
2218 #define _UA 0x02
2219 #define _R_NOT_W 0x04
2220 #define _S 0x08
2221 #define _P 0x10
2222 #define _D_NOT_A 0x20
2223 #define _CKE 0x40
2224 #define _SMP 0x80
2226 //==============================================================================
2229 //==============================================================================
2230 // SSPSTAT Bits
2232 extern __at(0x0214) __sfr SSPSTAT;
2234 typedef struct
2236 unsigned BF : 1;
2237 unsigned UA : 1;
2238 unsigned R_NOT_W : 1;
2239 unsigned S : 1;
2240 unsigned P : 1;
2241 unsigned D_NOT_A : 1;
2242 unsigned CKE : 1;
2243 unsigned SMP : 1;
2244 } __SSPSTATbits_t;
2246 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
2248 #define _SSPSTAT_BF 0x01
2249 #define _SSPSTAT_UA 0x02
2250 #define _SSPSTAT_R_NOT_W 0x04
2251 #define _SSPSTAT_S 0x08
2252 #define _SSPSTAT_P 0x10
2253 #define _SSPSTAT_D_NOT_A 0x20
2254 #define _SSPSTAT_CKE 0x40
2255 #define _SSPSTAT_SMP 0x80
2257 //==============================================================================
2260 //==============================================================================
2261 // SSP1CON Bits
2263 extern __at(0x0215) __sfr SSP1CON;
2265 typedef union
2267 struct
2269 unsigned SSPM0 : 1;
2270 unsigned SSPM1 : 1;
2271 unsigned SSPM2 : 1;
2272 unsigned SSPM3 : 1;
2273 unsigned CKP : 1;
2274 unsigned SSPEN : 1;
2275 unsigned SSPOV : 1;
2276 unsigned WCOL : 1;
2279 struct
2281 unsigned SSPM : 4;
2282 unsigned : 4;
2284 } __SSP1CONbits_t;
2286 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
2288 #define _SSPM0 0x01
2289 #define _SSPM1 0x02
2290 #define _SSPM2 0x04
2291 #define _SSPM3 0x08
2292 #define _CKP 0x10
2293 #define _SSPEN 0x20
2294 #define _SSPOV 0x40
2295 #define _WCOL 0x80
2297 //==============================================================================
2300 //==============================================================================
2301 // SSP1CON1 Bits
2303 extern __at(0x0215) __sfr SSP1CON1;
2305 typedef union
2307 struct
2309 unsigned SSPM0 : 1;
2310 unsigned SSPM1 : 1;
2311 unsigned SSPM2 : 1;
2312 unsigned SSPM3 : 1;
2313 unsigned CKP : 1;
2314 unsigned SSPEN : 1;
2315 unsigned SSPOV : 1;
2316 unsigned WCOL : 1;
2319 struct
2321 unsigned SSPM : 4;
2322 unsigned : 4;
2324 } __SSP1CON1bits_t;
2326 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
2328 #define _SSP1CON1_SSPM0 0x01
2329 #define _SSP1CON1_SSPM1 0x02
2330 #define _SSP1CON1_SSPM2 0x04
2331 #define _SSP1CON1_SSPM3 0x08
2332 #define _SSP1CON1_CKP 0x10
2333 #define _SSP1CON1_SSPEN 0x20
2334 #define _SSP1CON1_SSPOV 0x40
2335 #define _SSP1CON1_WCOL 0x80
2337 //==============================================================================
2340 //==============================================================================
2341 // SSPCON Bits
2343 extern __at(0x0215) __sfr SSPCON;
2345 typedef union
2347 struct
2349 unsigned SSPM0 : 1;
2350 unsigned SSPM1 : 1;
2351 unsigned SSPM2 : 1;
2352 unsigned SSPM3 : 1;
2353 unsigned CKP : 1;
2354 unsigned SSPEN : 1;
2355 unsigned SSPOV : 1;
2356 unsigned WCOL : 1;
2359 struct
2361 unsigned SSPM : 4;
2362 unsigned : 4;
2364 } __SSPCONbits_t;
2366 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
2368 #define _SSPCON_SSPM0 0x01
2369 #define _SSPCON_SSPM1 0x02
2370 #define _SSPCON_SSPM2 0x04
2371 #define _SSPCON_SSPM3 0x08
2372 #define _SSPCON_CKP 0x10
2373 #define _SSPCON_SSPEN 0x20
2374 #define _SSPCON_SSPOV 0x40
2375 #define _SSPCON_WCOL 0x80
2377 //==============================================================================
2380 //==============================================================================
2381 // SSPCON1 Bits
2383 extern __at(0x0215) __sfr SSPCON1;
2385 typedef union
2387 struct
2389 unsigned SSPM0 : 1;
2390 unsigned SSPM1 : 1;
2391 unsigned SSPM2 : 1;
2392 unsigned SSPM3 : 1;
2393 unsigned CKP : 1;
2394 unsigned SSPEN : 1;
2395 unsigned SSPOV : 1;
2396 unsigned WCOL : 1;
2399 struct
2401 unsigned SSPM : 4;
2402 unsigned : 4;
2404 } __SSPCON1bits_t;
2406 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
2408 #define _SSPCON1_SSPM0 0x01
2409 #define _SSPCON1_SSPM1 0x02
2410 #define _SSPCON1_SSPM2 0x04
2411 #define _SSPCON1_SSPM3 0x08
2412 #define _SSPCON1_CKP 0x10
2413 #define _SSPCON1_SSPEN 0x20
2414 #define _SSPCON1_SSPOV 0x40
2415 #define _SSPCON1_WCOL 0x80
2417 //==============================================================================
2420 //==============================================================================
2421 // SSP1CON2 Bits
2423 extern __at(0x0216) __sfr SSP1CON2;
2425 typedef struct
2427 unsigned SEN : 1;
2428 unsigned RSEN : 1;
2429 unsigned PEN : 1;
2430 unsigned RCEN : 1;
2431 unsigned ACKEN : 1;
2432 unsigned ACKDT : 1;
2433 unsigned ACKSTAT : 1;
2434 unsigned GCEN : 1;
2435 } __SSP1CON2bits_t;
2437 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
2439 #define _SEN 0x01
2440 #define _RSEN 0x02
2441 #define _PEN 0x04
2442 #define _RCEN 0x08
2443 #define _ACKEN 0x10
2444 #define _ACKDT 0x20
2445 #define _ACKSTAT 0x40
2446 #define _GCEN 0x80
2448 //==============================================================================
2451 //==============================================================================
2452 // SSPCON2 Bits
2454 extern __at(0x0216) __sfr SSPCON2;
2456 typedef struct
2458 unsigned SEN : 1;
2459 unsigned RSEN : 1;
2460 unsigned PEN : 1;
2461 unsigned RCEN : 1;
2462 unsigned ACKEN : 1;
2463 unsigned ACKDT : 1;
2464 unsigned ACKSTAT : 1;
2465 unsigned GCEN : 1;
2466 } __SSPCON2bits_t;
2468 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
2470 #define _SSPCON2_SEN 0x01
2471 #define _SSPCON2_RSEN 0x02
2472 #define _SSPCON2_PEN 0x04
2473 #define _SSPCON2_RCEN 0x08
2474 #define _SSPCON2_ACKEN 0x10
2475 #define _SSPCON2_ACKDT 0x20
2476 #define _SSPCON2_ACKSTAT 0x40
2477 #define _SSPCON2_GCEN 0x80
2479 //==============================================================================
2482 //==============================================================================
2483 // SSP1CON3 Bits
2485 extern __at(0x0217) __sfr SSP1CON3;
2487 typedef struct
2489 unsigned DHEN : 1;
2490 unsigned AHEN : 1;
2491 unsigned SBCDE : 1;
2492 unsigned SDAHT : 1;
2493 unsigned BOEN : 1;
2494 unsigned SCIE : 1;
2495 unsigned PCIE : 1;
2496 unsigned ACKTIM : 1;
2497 } __SSP1CON3bits_t;
2499 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
2501 #define _DHEN 0x01
2502 #define _AHEN 0x02
2503 #define _SBCDE 0x04
2504 #define _SDAHT 0x08
2505 #define _BOEN 0x10
2506 #define _SCIE 0x20
2507 #define _PCIE 0x40
2508 #define _ACKTIM 0x80
2510 //==============================================================================
2513 //==============================================================================
2514 // SSPCON3 Bits
2516 extern __at(0x0217) __sfr SSPCON3;
2518 typedef struct
2520 unsigned DHEN : 1;
2521 unsigned AHEN : 1;
2522 unsigned SBCDE : 1;
2523 unsigned SDAHT : 1;
2524 unsigned BOEN : 1;
2525 unsigned SCIE : 1;
2526 unsigned PCIE : 1;
2527 unsigned ACKTIM : 1;
2528 } __SSPCON3bits_t;
2530 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
2532 #define _SSPCON3_DHEN 0x01
2533 #define _SSPCON3_AHEN 0x02
2534 #define _SSPCON3_SBCDE 0x04
2535 #define _SSPCON3_SDAHT 0x08
2536 #define _SSPCON3_BOEN 0x10
2537 #define _SSPCON3_SCIE 0x20
2538 #define _SSPCON3_PCIE 0x40
2539 #define _SSPCON3_ACKTIM 0x80
2541 //==============================================================================
2544 //==============================================================================
2545 // ODCONA Bits
2547 extern __at(0x028C) __sfr ODCONA;
2549 typedef struct
2551 unsigned ODCA0 : 1;
2552 unsigned ODCA1 : 1;
2553 unsigned ODCA2 : 1;
2554 unsigned : 1;
2555 unsigned ODCA4 : 1;
2556 unsigned ODCA5 : 1;
2557 unsigned : 1;
2558 unsigned : 1;
2559 } __ODCONAbits_t;
2561 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
2563 #define _ODCA0 0x01
2564 #define _ODCA1 0x02
2565 #define _ODCA2 0x04
2566 #define _ODCA4 0x10
2567 #define _ODCA5 0x20
2569 //==============================================================================
2571 extern __at(0x0291) __sfr CCPR1;
2572 extern __at(0x0291) __sfr CCPR1L;
2573 extern __at(0x0292) __sfr CCPR1H;
2575 //==============================================================================
2576 // CCP1CON Bits
2578 extern __at(0x0293) __sfr CCP1CON;
2580 typedef union
2582 struct
2584 unsigned CCP1MODE0 : 1;
2585 unsigned CCP1MODE1 : 1;
2586 unsigned CCP1MODE2 : 1;
2587 unsigned CCP1MODE3 : 1;
2588 unsigned CCP1FMT : 1;
2589 unsigned CCP1OUT : 1;
2590 unsigned : 1;
2591 unsigned CCP1EN : 1;
2594 struct
2596 unsigned CCP1MODE : 4;
2597 unsigned : 4;
2599 } __CCP1CONbits_t;
2601 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
2603 #define _CCP1MODE0 0x01
2604 #define _CCP1MODE1 0x02
2605 #define _CCP1MODE2 0x04
2606 #define _CCP1MODE3 0x08
2607 #define _CCP1FMT 0x10
2608 #define _CCP1OUT 0x20
2609 #define _CCP1EN 0x80
2611 //==============================================================================
2614 //==============================================================================
2615 // CCP1CAP Bits
2617 extern __at(0x0294) __sfr CCP1CAP;
2619 typedef union
2621 struct
2623 unsigned CCP1CTS0 : 1;
2624 unsigned CCP1CTS1 : 1;
2625 unsigned CCP1CTS2 : 1;
2626 unsigned : 1;
2627 unsigned : 1;
2628 unsigned : 1;
2629 unsigned : 1;
2630 unsigned : 1;
2633 struct
2635 unsigned CCP1CTS : 3;
2636 unsigned : 5;
2638 } __CCP1CAPbits_t;
2640 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
2642 #define _CCP1CTS0 0x01
2643 #define _CCP1CTS1 0x02
2644 #define _CCP1CTS2 0x04
2646 //==============================================================================
2648 extern __at(0x0295) __sfr CCPR2;
2649 extern __at(0x0295) __sfr CCPR2L;
2650 extern __at(0x0296) __sfr CCPR2H;
2652 //==============================================================================
2653 // CCP2CON Bits
2655 extern __at(0x0297) __sfr CCP2CON;
2657 typedef union
2659 struct
2661 unsigned CCP2MODE0 : 1;
2662 unsigned CCP2MODE1 : 1;
2663 unsigned CCP2MODE2 : 1;
2664 unsigned CCP2MODE3 : 1;
2665 unsigned CCP2FMT : 1;
2666 unsigned CCP2OUT : 1;
2667 unsigned : 1;
2668 unsigned CCP2EN : 1;
2671 struct
2673 unsigned CCP2MODE : 4;
2674 unsigned : 4;
2676 } __CCP2CONbits_t;
2678 extern __at(0x0297) volatile __CCP2CONbits_t CCP2CONbits;
2680 #define _CCP2MODE0 0x01
2681 #define _CCP2MODE1 0x02
2682 #define _CCP2MODE2 0x04
2683 #define _CCP2MODE3 0x08
2684 #define _CCP2FMT 0x10
2685 #define _CCP2OUT 0x20
2686 #define _CCP2EN 0x80
2688 //==============================================================================
2691 //==============================================================================
2692 // CCP2CAP Bits
2694 extern __at(0x0298) __sfr CCP2CAP;
2696 typedef union
2698 struct
2700 unsigned CCP2CTS0 : 1;
2701 unsigned CCP2CTS1 : 1;
2702 unsigned CCP2CTS2 : 1;
2703 unsigned : 1;
2704 unsigned : 1;
2705 unsigned : 1;
2706 unsigned : 1;
2707 unsigned : 1;
2710 struct
2712 unsigned CCP2CTS : 3;
2713 unsigned : 5;
2715 } __CCP2CAPbits_t;
2717 extern __at(0x0298) volatile __CCP2CAPbits_t CCP2CAPbits;
2719 #define _CCP2CTS0 0x01
2720 #define _CCP2CTS1 0x02
2721 #define _CCP2CTS2 0x04
2723 //==============================================================================
2726 //==============================================================================
2727 // CCPTMRS Bits
2729 extern __at(0x029F) __sfr CCPTMRS;
2731 typedef struct
2733 unsigned C1TSEL : 1;
2734 unsigned : 1;
2735 unsigned C2TSEL : 1;
2736 unsigned : 1;
2737 unsigned : 1;
2738 unsigned : 1;
2739 unsigned : 1;
2740 unsigned : 1;
2741 } __CCPTMRSbits_t;
2743 extern __at(0x029F) volatile __CCPTMRSbits_t CCPTMRSbits;
2745 #define _C1TSEL 0x01
2746 #define _C2TSEL 0x04
2748 //==============================================================================
2751 //==============================================================================
2752 // SLRCONA Bits
2754 extern __at(0x030C) __sfr SLRCONA;
2756 typedef struct
2758 unsigned SLRA0 : 1;
2759 unsigned SLRA1 : 1;
2760 unsigned SLRA2 : 1;
2761 unsigned : 1;
2762 unsigned SLRA4 : 1;
2763 unsigned SLRA5 : 1;
2764 unsigned : 1;
2765 unsigned : 1;
2766 } __SLRCONAbits_t;
2768 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
2770 #define _SLRA0 0x01
2771 #define _SLRA1 0x02
2772 #define _SLRA2 0x04
2773 #define _SLRA4 0x10
2774 #define _SLRA5 0x20
2776 //==============================================================================
2779 //==============================================================================
2780 // INLVLA Bits
2782 extern __at(0x038C) __sfr INLVLA;
2784 typedef union
2786 struct
2788 unsigned INLVLA0 : 1;
2789 unsigned INLVLA1 : 1;
2790 unsigned INLVLA2 : 1;
2791 unsigned INLVLA3 : 1;
2792 unsigned INLVLA4 : 1;
2793 unsigned INLVLA5 : 1;
2794 unsigned : 1;
2795 unsigned : 1;
2798 struct
2800 unsigned INLVLA : 6;
2801 unsigned : 2;
2803 } __INLVLAbits_t;
2805 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
2807 #define _INLVLA0 0x01
2808 #define _INLVLA1 0x02
2809 #define _INLVLA2 0x04
2810 #define _INLVLA3 0x08
2811 #define _INLVLA4 0x10
2812 #define _INLVLA5 0x20
2814 //==============================================================================
2817 //==============================================================================
2818 // IOCAP Bits
2820 extern __at(0x0391) __sfr IOCAP;
2822 typedef union
2824 struct
2826 unsigned IOCAP0 : 1;
2827 unsigned IOCAP1 : 1;
2828 unsigned IOCAP2 : 1;
2829 unsigned IOCAP3 : 1;
2830 unsigned IOCAP4 : 1;
2831 unsigned IOCAP5 : 1;
2832 unsigned : 1;
2833 unsigned : 1;
2836 struct
2838 unsigned IOCAP : 6;
2839 unsigned : 2;
2841 } __IOCAPbits_t;
2843 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
2845 #define _IOCAP0 0x01
2846 #define _IOCAP1 0x02
2847 #define _IOCAP2 0x04
2848 #define _IOCAP3 0x08
2849 #define _IOCAP4 0x10
2850 #define _IOCAP5 0x20
2852 //==============================================================================
2855 //==============================================================================
2856 // IOCAN Bits
2858 extern __at(0x0392) __sfr IOCAN;
2860 typedef union
2862 struct
2864 unsigned IOCAN0 : 1;
2865 unsigned IOCAN1 : 1;
2866 unsigned IOCAN2 : 1;
2867 unsigned IOCAN3 : 1;
2868 unsigned IOCAN4 : 1;
2869 unsigned IOCAN5 : 1;
2870 unsigned : 1;
2871 unsigned : 1;
2874 struct
2876 unsigned IOCAN : 6;
2877 unsigned : 2;
2879 } __IOCANbits_t;
2881 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
2883 #define _IOCAN0 0x01
2884 #define _IOCAN1 0x02
2885 #define _IOCAN2 0x04
2886 #define _IOCAN3 0x08
2887 #define _IOCAN4 0x10
2888 #define _IOCAN5 0x20
2890 //==============================================================================
2893 //==============================================================================
2894 // IOCAF Bits
2896 extern __at(0x0393) __sfr IOCAF;
2898 typedef union
2900 struct
2902 unsigned IOCAF0 : 1;
2903 unsigned IOCAF1 : 1;
2904 unsigned IOCAF2 : 1;
2905 unsigned IOCAF3 : 1;
2906 unsigned IOCAF4 : 1;
2907 unsigned IOCAF5 : 1;
2908 unsigned : 1;
2909 unsigned : 1;
2912 struct
2914 unsigned IOCAF : 6;
2915 unsigned : 2;
2917 } __IOCAFbits_t;
2919 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
2921 #define _IOCAF0 0x01
2922 #define _IOCAF1 0x02
2923 #define _IOCAF2 0x04
2924 #define _IOCAF3 0x08
2925 #define _IOCAF4 0x10
2926 #define _IOCAF5 0x20
2928 //==============================================================================
2931 //==============================================================================
2932 // CLKRCON Bits
2934 extern __at(0x039A) __sfr CLKRCON;
2936 typedef union
2938 struct
2940 unsigned CLKRDIV0 : 1;
2941 unsigned CLKRDIV1 : 1;
2942 unsigned CLKRDIV2 : 1;
2943 unsigned CLKRDC0 : 1;
2944 unsigned CLKRDC1 : 1;
2945 unsigned : 1;
2946 unsigned : 1;
2947 unsigned CLKREN : 1;
2950 struct
2952 unsigned CLKRDIV : 3;
2953 unsigned : 5;
2956 struct
2958 unsigned : 3;
2959 unsigned CLKRDC : 2;
2960 unsigned : 3;
2962 } __CLKRCONbits_t;
2964 extern __at(0x039A) volatile __CLKRCONbits_t CLKRCONbits;
2966 #define _CLKRDIV0 0x01
2967 #define _CLKRDIV1 0x02
2968 #define _CLKRDIV2 0x04
2969 #define _CLKRDC0 0x08
2970 #define _CLKRDC1 0x10
2971 #define _CLKREN 0x80
2973 //==============================================================================
2976 //==============================================================================
2977 // MDCON Bits
2979 extern __at(0x039C) __sfr MDCON;
2981 typedef struct
2983 unsigned MDBIT : 1;
2984 unsigned : 1;
2985 unsigned : 1;
2986 unsigned MDOUT : 1;
2987 unsigned MDOPOL : 1;
2988 unsigned : 1;
2989 unsigned : 1;
2990 unsigned MDEN : 1;
2991 } __MDCONbits_t;
2993 extern __at(0x039C) volatile __MDCONbits_t MDCONbits;
2995 #define _MDBIT 0x01
2996 #define _MDOUT 0x08
2997 #define _MDOPOL 0x10
2998 #define _MDEN 0x80
3000 //==============================================================================
3003 //==============================================================================
3004 // MDSRC Bits
3006 extern __at(0x039D) __sfr MDSRC;
3008 typedef union
3010 struct
3012 unsigned MDMS0 : 1;
3013 unsigned MDMS1 : 1;
3014 unsigned MDMS2 : 1;
3015 unsigned MDMS3 : 1;
3016 unsigned : 1;
3017 unsigned : 1;
3018 unsigned : 1;
3019 unsigned : 1;
3022 struct
3024 unsigned MDMS : 4;
3025 unsigned : 4;
3027 } __MDSRCbits_t;
3029 extern __at(0x039D) volatile __MDSRCbits_t MDSRCbits;
3031 #define _MDMS0 0x01
3032 #define _MDMS1 0x02
3033 #define _MDMS2 0x04
3034 #define _MDMS3 0x08
3036 //==============================================================================
3039 //==============================================================================
3040 // MDCARH Bits
3042 extern __at(0x039E) __sfr MDCARH;
3044 typedef union
3046 struct
3048 unsigned MDCH0 : 1;
3049 unsigned MDCH1 : 1;
3050 unsigned MDCH2 : 1;
3051 unsigned MDCH3 : 1;
3052 unsigned : 1;
3053 unsigned MDCHSYNC : 1;
3054 unsigned MDCHPOL : 1;
3055 unsigned : 1;
3058 struct
3060 unsigned MDCH : 4;
3061 unsigned : 4;
3063 } __MDCARHbits_t;
3065 extern __at(0x039E) volatile __MDCARHbits_t MDCARHbits;
3067 #define _MDCH0 0x01
3068 #define _MDCH1 0x02
3069 #define _MDCH2 0x04
3070 #define _MDCH3 0x08
3071 #define _MDCHSYNC 0x20
3072 #define _MDCHPOL 0x40
3074 //==============================================================================
3077 //==============================================================================
3078 // MDCARL Bits
3080 extern __at(0x039F) __sfr MDCARL;
3082 typedef union
3084 struct
3086 unsigned MDCL0 : 1;
3087 unsigned MDCL1 : 1;
3088 unsigned MDCL2 : 1;
3089 unsigned MDCL3 : 1;
3090 unsigned : 1;
3091 unsigned MDCLSYNC : 1;
3092 unsigned MDCLPOL : 1;
3093 unsigned : 1;
3096 struct
3098 unsigned MDCL : 4;
3099 unsigned : 4;
3101 } __MDCARLbits_t;
3103 extern __at(0x039F) volatile __MDCARLbits_t MDCARLbits;
3105 #define _MDCL0 0x01
3106 #define _MDCL1 0x02
3107 #define _MDCL2 0x04
3108 #define _MDCL3 0x08
3109 #define _MDCLSYNC 0x20
3110 #define _MDCLPOL 0x40
3112 //==============================================================================
3115 //==============================================================================
3116 // CCDNA Bits
3118 extern __at(0x040C) __sfr CCDNA;
3120 typedef struct
3122 unsigned CCDNA0 : 1;
3123 unsigned CCDNA1 : 1;
3124 unsigned CCDNA2 : 1;
3125 unsigned : 1;
3126 unsigned CCDNA4 : 1;
3127 unsigned CCDNA5 : 1;
3128 unsigned : 1;
3129 unsigned : 1;
3130 } __CCDNAbits_t;
3132 extern __at(0x040C) volatile __CCDNAbits_t CCDNAbits;
3134 #define _CCDNA0 0x01
3135 #define _CCDNA1 0x02
3136 #define _CCDNA2 0x04
3137 #define _CCDNA4 0x10
3138 #define _CCDNA5 0x20
3140 //==============================================================================
3143 //==============================================================================
3144 // CCDCON Bits
3146 extern __at(0x041F) __sfr CCDCON;
3148 typedef union
3150 struct
3152 unsigned CCDS0 : 1;
3153 unsigned CCDS1 : 1;
3154 unsigned : 1;
3155 unsigned : 1;
3156 unsigned : 1;
3157 unsigned : 1;
3158 unsigned : 1;
3159 unsigned CCDEN : 1;
3162 struct
3164 unsigned CCDS : 2;
3165 unsigned : 6;
3167 } __CCDCONbits_t;
3169 extern __at(0x041F) volatile __CCDCONbits_t CCDCONbits;
3171 #define _CCDS0 0x01
3172 #define _CCDS1 0x02
3173 #define _CCDEN 0x80
3175 //==============================================================================
3178 //==============================================================================
3179 // CCDPA Bits
3181 extern __at(0x048C) __sfr CCDPA;
3183 typedef struct
3185 unsigned CCDPA0 : 1;
3186 unsigned CCDPA1 : 1;
3187 unsigned CCDPA2 : 1;
3188 unsigned : 1;
3189 unsigned CCDPA4 : 1;
3190 unsigned CCDPA5 : 1;
3191 unsigned : 1;
3192 unsigned : 1;
3193 } __CCDPAbits_t;
3195 extern __at(0x048C) volatile __CCDPAbits_t CCDPAbits;
3197 #define _CCDPA0 0x01
3198 #define _CCDPA1 0x02
3199 #define _CCDPA2 0x04
3200 #define _CCDPA4 0x10
3201 #define _CCDPA5 0x20
3203 //==============================================================================
3205 extern __at(0x0498) __sfr NCO1ACC;
3206 extern __at(0x0498) __sfr NCO1ACCL;
3207 extern __at(0x0499) __sfr NCO1ACCH;
3208 extern __at(0x049A) __sfr NCO1ACCU;
3209 extern __at(0x049B) __sfr NCO1INC;
3210 extern __at(0x049B) __sfr NCO1INCL;
3211 extern __at(0x049C) __sfr NCO1INCH;
3212 extern __at(0x049D) __sfr NCO1INCU;
3214 //==============================================================================
3215 // NCO1CON Bits
3217 extern __at(0x049E) __sfr NCO1CON;
3219 typedef struct
3221 unsigned N1PFM : 1;
3222 unsigned : 1;
3223 unsigned : 1;
3224 unsigned : 1;
3225 unsigned N1POL : 1;
3226 unsigned N1OUT : 1;
3227 unsigned : 1;
3228 unsigned N1EN : 1;
3229 } __NCO1CONbits_t;
3231 extern __at(0x049E) volatile __NCO1CONbits_t NCO1CONbits;
3233 #define _N1PFM 0x01
3234 #define _N1POL 0x10
3235 #define _N1OUT 0x20
3236 #define _N1EN 0x80
3238 //==============================================================================
3240 extern __at(0x049F) __sfr NCO1CLK;
3242 //==============================================================================
3243 // PWM5DCL Bits
3245 extern __at(0x0617) __sfr PWM5DCL;
3247 typedef union
3249 struct
3251 unsigned : 1;
3252 unsigned : 1;
3253 unsigned : 1;
3254 unsigned : 1;
3255 unsigned : 1;
3256 unsigned : 1;
3257 unsigned PWM5DCL0 : 1;
3258 unsigned PWM5DCL1 : 1;
3261 struct
3263 unsigned : 6;
3264 unsigned PWM5DCL : 2;
3266 } __PWM5DCLbits_t;
3268 extern __at(0x0617) volatile __PWM5DCLbits_t PWM5DCLbits;
3270 #define _PWM5DCL0 0x40
3271 #define _PWM5DCL1 0x80
3273 //==============================================================================
3276 //==============================================================================
3277 // PWM5DCH Bits
3279 extern __at(0x0618) __sfr PWM5DCH;
3281 typedef struct
3283 unsigned PWM5DCH0 : 1;
3284 unsigned PWM5DCH1 : 1;
3285 unsigned PWM5DCH2 : 1;
3286 unsigned PWM5DCH3 : 1;
3287 unsigned PWM5DCH4 : 1;
3288 unsigned PWM5DCH5 : 1;
3289 unsigned PWM5DCH6 : 1;
3290 unsigned PWM5DCH7 : 1;
3291 } __PWM5DCHbits_t;
3293 extern __at(0x0618) volatile __PWM5DCHbits_t PWM5DCHbits;
3295 #define _PWM5DCH0 0x01
3296 #define _PWM5DCH1 0x02
3297 #define _PWM5DCH2 0x04
3298 #define _PWM5DCH3 0x08
3299 #define _PWM5DCH4 0x10
3300 #define _PWM5DCH5 0x20
3301 #define _PWM5DCH6 0x40
3302 #define _PWM5DCH7 0x80
3304 //==============================================================================
3307 //==============================================================================
3308 // PWM5CON Bits
3310 extern __at(0x0619) __sfr PWM5CON;
3312 typedef struct
3314 unsigned : 1;
3315 unsigned : 1;
3316 unsigned : 1;
3317 unsigned : 1;
3318 unsigned PWM5POL : 1;
3319 unsigned PWM5OUT : 1;
3320 unsigned : 1;
3321 unsigned PWM5EN : 1;
3322 } __PWM5CONbits_t;
3324 extern __at(0x0619) volatile __PWM5CONbits_t PWM5CONbits;
3326 #define _PWM5POL 0x10
3327 #define _PWM5OUT 0x20
3328 #define _PWM5EN 0x80
3330 //==============================================================================
3333 //==============================================================================
3334 // PWM5CON0 Bits
3336 extern __at(0x0619) __sfr PWM5CON0;
3338 typedef struct
3340 unsigned : 1;
3341 unsigned : 1;
3342 unsigned : 1;
3343 unsigned : 1;
3344 unsigned PWM5POL : 1;
3345 unsigned PWM5OUT : 1;
3346 unsigned : 1;
3347 unsigned PWM5EN : 1;
3348 } __PWM5CON0bits_t;
3350 extern __at(0x0619) volatile __PWM5CON0bits_t PWM5CON0bits;
3352 #define _PWM5CON0_PWM5POL 0x10
3353 #define _PWM5CON0_PWM5OUT 0x20
3354 #define _PWM5CON0_PWM5EN 0x80
3356 //==============================================================================
3359 //==============================================================================
3360 // PWM6DCL Bits
3362 extern __at(0x061A) __sfr PWM6DCL;
3364 typedef union
3366 struct
3368 unsigned : 1;
3369 unsigned : 1;
3370 unsigned : 1;
3371 unsigned : 1;
3372 unsigned : 1;
3373 unsigned : 1;
3374 unsigned PWM6DCL0 : 1;
3375 unsigned PWM6DCL1 : 1;
3378 struct
3380 unsigned : 6;
3381 unsigned PWM6DCL : 2;
3383 } __PWM6DCLbits_t;
3385 extern __at(0x061A) volatile __PWM6DCLbits_t PWM6DCLbits;
3387 #define _PWM6DCL0 0x40
3388 #define _PWM6DCL1 0x80
3390 //==============================================================================
3393 //==============================================================================
3394 // PWM6DCH Bits
3396 extern __at(0x061B) __sfr PWM6DCH;
3398 typedef struct
3400 unsigned PWM6DCH0 : 1;
3401 unsigned PWM6DCH1 : 1;
3402 unsigned PWM6DCH2 : 1;
3403 unsigned PWM6DCH3 : 1;
3404 unsigned PWM6DCH4 : 1;
3405 unsigned PWM6DCH5 : 1;
3406 unsigned PWM6DCH6 : 1;
3407 unsigned PWM6DCH7 : 1;
3408 } __PWM6DCHbits_t;
3410 extern __at(0x061B) volatile __PWM6DCHbits_t PWM6DCHbits;
3412 #define _PWM6DCH0 0x01
3413 #define _PWM6DCH1 0x02
3414 #define _PWM6DCH2 0x04
3415 #define _PWM6DCH3 0x08
3416 #define _PWM6DCH4 0x10
3417 #define _PWM6DCH5 0x20
3418 #define _PWM6DCH6 0x40
3419 #define _PWM6DCH7 0x80
3421 //==============================================================================
3424 //==============================================================================
3425 // PWM6CON Bits
3427 extern __at(0x061C) __sfr PWM6CON;
3429 typedef struct
3431 unsigned : 1;
3432 unsigned : 1;
3433 unsigned : 1;
3434 unsigned : 1;
3435 unsigned PWM6POL : 1;
3436 unsigned PWM6OUT : 1;
3437 unsigned : 1;
3438 unsigned PWM6EN : 1;
3439 } __PWM6CONbits_t;
3441 extern __at(0x061C) volatile __PWM6CONbits_t PWM6CONbits;
3443 #define _PWM6POL 0x10
3444 #define _PWM6OUT 0x20
3445 #define _PWM6EN 0x80
3447 //==============================================================================
3450 //==============================================================================
3451 // PWM6CON0 Bits
3453 extern __at(0x061C) __sfr PWM6CON0;
3455 typedef struct
3457 unsigned : 1;
3458 unsigned : 1;
3459 unsigned : 1;
3460 unsigned : 1;
3461 unsigned PWM6POL : 1;
3462 unsigned PWM6OUT : 1;
3463 unsigned : 1;
3464 unsigned PWM6EN : 1;
3465 } __PWM6CON0bits_t;
3467 extern __at(0x061C) volatile __PWM6CON0bits_t PWM6CON0bits;
3469 #define _PWM6CON0_PWM6POL 0x10
3470 #define _PWM6CON0_PWM6OUT 0x20
3471 #define _PWM6CON0_PWM6EN 0x80
3473 //==============================================================================
3476 //==============================================================================
3477 // CWG1CLKCON Bits
3479 extern __at(0x0691) __sfr CWG1CLKCON;
3481 typedef union
3483 struct
3485 unsigned CS : 1;
3486 unsigned : 1;
3487 unsigned : 1;
3488 unsigned : 1;
3489 unsigned : 1;
3490 unsigned : 1;
3491 unsigned : 1;
3492 unsigned : 1;
3495 struct
3497 unsigned CWG1CS : 1;
3498 unsigned : 1;
3499 unsigned : 1;
3500 unsigned : 1;
3501 unsigned : 1;
3502 unsigned : 1;
3503 unsigned : 1;
3504 unsigned : 1;
3506 } __CWG1CLKCONbits_t;
3508 extern __at(0x0691) volatile __CWG1CLKCONbits_t CWG1CLKCONbits;
3510 #define _CS 0x01
3511 #define _CWG1CS 0x01
3513 //==============================================================================
3516 //==============================================================================
3517 // CWG1DAT Bits
3519 extern __at(0x0692) __sfr CWG1DAT;
3521 typedef union
3523 struct
3525 unsigned CWG1DAT0 : 1;
3526 unsigned CWG1DAT1 : 1;
3527 unsigned CWG1DAT2 : 1;
3528 unsigned CWG1DAT3 : 1;
3529 unsigned : 1;
3530 unsigned : 1;
3531 unsigned : 1;
3532 unsigned : 1;
3535 struct
3537 unsigned CWG1DAT : 4;
3538 unsigned : 4;
3540 } __CWG1DATbits_t;
3542 extern __at(0x0692) volatile __CWG1DATbits_t CWG1DATbits;
3544 #define _CWG1DAT0 0x01
3545 #define _CWG1DAT1 0x02
3546 #define _CWG1DAT2 0x04
3547 #define _CWG1DAT3 0x08
3549 //==============================================================================
3552 //==============================================================================
3553 // CWG1DBR Bits
3555 extern __at(0x0693) __sfr CWG1DBR;
3557 typedef union
3559 struct
3561 unsigned DBR0 : 1;
3562 unsigned DBR1 : 1;
3563 unsigned DBR2 : 1;
3564 unsigned DBR3 : 1;
3565 unsigned DBR4 : 1;
3566 unsigned DBR5 : 1;
3567 unsigned : 1;
3568 unsigned : 1;
3571 struct
3573 unsigned CWG1DBR0 : 1;
3574 unsigned CWG1DBR1 : 1;
3575 unsigned CWG1DBR2 : 1;
3576 unsigned CWG1DBR3 : 1;
3577 unsigned CWG1DBR4 : 1;
3578 unsigned CWG1DBR5 : 1;
3579 unsigned : 1;
3580 unsigned : 1;
3583 struct
3585 unsigned CWG1DBR : 6;
3586 unsigned : 2;
3589 struct
3591 unsigned DBR : 6;
3592 unsigned : 2;
3594 } __CWG1DBRbits_t;
3596 extern __at(0x0693) volatile __CWG1DBRbits_t CWG1DBRbits;
3598 #define _DBR0 0x01
3599 #define _CWG1DBR0 0x01
3600 #define _DBR1 0x02
3601 #define _CWG1DBR1 0x02
3602 #define _DBR2 0x04
3603 #define _CWG1DBR2 0x04
3604 #define _DBR3 0x08
3605 #define _CWG1DBR3 0x08
3606 #define _DBR4 0x10
3607 #define _CWG1DBR4 0x10
3608 #define _DBR5 0x20
3609 #define _CWG1DBR5 0x20
3611 //==============================================================================
3614 //==============================================================================
3615 // CWG1DBF Bits
3617 extern __at(0x0694) __sfr CWG1DBF;
3619 typedef union
3621 struct
3623 unsigned DBF0 : 1;
3624 unsigned DBF1 : 1;
3625 unsigned DBF2 : 1;
3626 unsigned DBF3 : 1;
3627 unsigned DBF4 : 1;
3628 unsigned DBF5 : 1;
3629 unsigned : 1;
3630 unsigned : 1;
3633 struct
3635 unsigned CWG1DBF0 : 1;
3636 unsigned CWG1DBF1 : 1;
3637 unsigned CWG1DBF2 : 1;
3638 unsigned CWG1DBF3 : 1;
3639 unsigned CWG1DBF4 : 1;
3640 unsigned CWG1DBF5 : 1;
3641 unsigned : 1;
3642 unsigned : 1;
3645 struct
3647 unsigned DBF : 6;
3648 unsigned : 2;
3651 struct
3653 unsigned CWG1DBF : 6;
3654 unsigned : 2;
3656 } __CWG1DBFbits_t;
3658 extern __at(0x0694) volatile __CWG1DBFbits_t CWG1DBFbits;
3660 #define _DBF0 0x01
3661 #define _CWG1DBF0 0x01
3662 #define _DBF1 0x02
3663 #define _CWG1DBF1 0x02
3664 #define _DBF2 0x04
3665 #define _CWG1DBF2 0x04
3666 #define _DBF3 0x08
3667 #define _CWG1DBF3 0x08
3668 #define _DBF4 0x10
3669 #define _CWG1DBF4 0x10
3670 #define _DBF5 0x20
3671 #define _CWG1DBF5 0x20
3673 //==============================================================================
3676 //==============================================================================
3677 // CWG1CON0 Bits
3679 extern __at(0x0695) __sfr CWG1CON0;
3681 typedef union
3683 struct
3685 unsigned MODE0 : 1;
3686 unsigned MODE1 : 1;
3687 unsigned MODE2 : 1;
3688 unsigned : 1;
3689 unsigned : 1;
3690 unsigned : 1;
3691 unsigned LD : 1;
3692 unsigned EN : 1;
3695 struct
3697 unsigned CWG1MODE0 : 1;
3698 unsigned CWG1MODE1 : 1;
3699 unsigned CWG1MODE2 : 1;
3700 unsigned : 1;
3701 unsigned : 1;
3702 unsigned : 1;
3703 unsigned CWG1LD : 1;
3704 unsigned G1EN : 1;
3707 struct
3709 unsigned : 1;
3710 unsigned : 1;
3711 unsigned : 1;
3712 unsigned : 1;
3713 unsigned : 1;
3714 unsigned : 1;
3715 unsigned : 1;
3716 unsigned CWG1EN : 1;
3719 struct
3721 unsigned CWG1MODE : 3;
3722 unsigned : 5;
3725 struct
3727 unsigned MODE : 3;
3728 unsigned : 5;
3730 } __CWG1CON0bits_t;
3732 extern __at(0x0695) volatile __CWG1CON0bits_t CWG1CON0bits;
3734 #define _CWG1CON0_MODE0 0x01
3735 #define _CWG1CON0_CWG1MODE0 0x01
3736 #define _CWG1CON0_MODE1 0x02
3737 #define _CWG1CON0_CWG1MODE1 0x02
3738 #define _CWG1CON0_MODE2 0x04
3739 #define _CWG1CON0_CWG1MODE2 0x04
3740 #define _CWG1CON0_LD 0x40
3741 #define _CWG1CON0_CWG1LD 0x40
3742 #define _CWG1CON0_EN 0x80
3743 #define _CWG1CON0_G1EN 0x80
3744 #define _CWG1CON0_CWG1EN 0x80
3746 //==============================================================================
3749 //==============================================================================
3750 // CWG1CON1 Bits
3752 extern __at(0x0696) __sfr CWG1CON1;
3754 typedef union
3756 struct
3758 unsigned POLA : 1;
3759 unsigned POLB : 1;
3760 unsigned POLC : 1;
3761 unsigned POLD : 1;
3762 unsigned : 1;
3763 unsigned IN : 1;
3764 unsigned : 1;
3765 unsigned : 1;
3768 struct
3770 unsigned CWG1POLA : 1;
3771 unsigned CWG1POLB : 1;
3772 unsigned CWG1POLC : 1;
3773 unsigned CWG1POLD : 1;
3774 unsigned : 1;
3775 unsigned CWG1IN : 1;
3776 unsigned : 1;
3777 unsigned : 1;
3779 } __CWG1CON1bits_t;
3781 extern __at(0x0696) volatile __CWG1CON1bits_t CWG1CON1bits;
3783 #define _POLA 0x01
3784 #define _CWG1POLA 0x01
3785 #define _POLB 0x02
3786 #define _CWG1POLB 0x02
3787 #define _POLC 0x04
3788 #define _CWG1POLC 0x04
3789 #define _POLD 0x08
3790 #define _CWG1POLD 0x08
3791 #define _IN 0x20
3792 #define _CWG1IN 0x20
3794 //==============================================================================
3797 //==============================================================================
3798 // CWG1AS0 Bits
3800 extern __at(0x0697) __sfr CWG1AS0;
3802 typedef union
3804 struct
3806 unsigned : 1;
3807 unsigned : 1;
3808 unsigned LSAC0 : 1;
3809 unsigned LSAC1 : 1;
3810 unsigned LSBD0 : 1;
3811 unsigned LSBD1 : 1;
3812 unsigned REN : 1;
3813 unsigned SHUTDOWN : 1;
3816 struct
3818 unsigned : 1;
3819 unsigned : 1;
3820 unsigned CWG1LSAC0 : 1;
3821 unsigned CWG1LSAC1 : 1;
3822 unsigned CWG1LSBD0 : 1;
3823 unsigned CWG1LSBD1 : 1;
3824 unsigned CWG1REN : 1;
3825 unsigned CWG1SHUTDOWN : 1;
3828 struct
3830 unsigned : 2;
3831 unsigned CWG1LSAC : 2;
3832 unsigned : 4;
3835 struct
3837 unsigned : 2;
3838 unsigned LSAC : 2;
3839 unsigned : 4;
3842 struct
3844 unsigned : 4;
3845 unsigned LSBD : 2;
3846 unsigned : 2;
3849 struct
3851 unsigned : 4;
3852 unsigned CWG1LSBD : 2;
3853 unsigned : 2;
3855 } __CWG1AS0bits_t;
3857 extern __at(0x0697) volatile __CWG1AS0bits_t CWG1AS0bits;
3859 #define _LSAC0 0x04
3860 #define _CWG1LSAC0 0x04
3861 #define _LSAC1 0x08
3862 #define _CWG1LSAC1 0x08
3863 #define _LSBD0 0x10
3864 #define _CWG1LSBD0 0x10
3865 #define _LSBD1 0x20
3866 #define _CWG1LSBD1 0x20
3867 #define _REN 0x40
3868 #define _CWG1REN 0x40
3869 #define _SHUTDOWN 0x80
3870 #define _CWG1SHUTDOWN 0x80
3872 //==============================================================================
3875 //==============================================================================
3876 // CWG1AS1 Bits
3878 extern __at(0x0698) __sfr CWG1AS1;
3880 typedef struct
3882 unsigned AS0E : 1;
3883 unsigned AS1E : 1;
3884 unsigned : 1;
3885 unsigned AS3E : 1;
3886 unsigned : 1;
3887 unsigned : 1;
3888 unsigned : 1;
3889 unsigned : 1;
3890 } __CWG1AS1bits_t;
3892 extern __at(0x0698) volatile __CWG1AS1bits_t CWG1AS1bits;
3894 #define _AS0E 0x01
3895 #define _AS1E 0x02
3896 #define _AS3E 0x08
3898 //==============================================================================
3901 //==============================================================================
3902 // CWG1STR Bits
3904 extern __at(0x0699) __sfr CWG1STR;
3906 typedef union
3908 struct
3910 unsigned STRA : 1;
3911 unsigned STRB : 1;
3912 unsigned STRC : 1;
3913 unsigned STRD : 1;
3914 unsigned OVRA : 1;
3915 unsigned OVRB : 1;
3916 unsigned OVRC : 1;
3917 unsigned OVRD : 1;
3920 struct
3922 unsigned CWG1STRA : 1;
3923 unsigned CWG1STRB : 1;
3924 unsigned CWG1STRC : 1;
3925 unsigned CWG1STRD : 1;
3926 unsigned CWG1OVRA : 1;
3927 unsigned CWG1OVRB : 1;
3928 unsigned CWG1OVRC : 1;
3929 unsigned CWG1OVRD : 1;
3931 } __CWG1STRbits_t;
3933 extern __at(0x0699) volatile __CWG1STRbits_t CWG1STRbits;
3935 #define _STRA 0x01
3936 #define _CWG1STRA 0x01
3937 #define _STRB 0x02
3938 #define _CWG1STRB 0x02
3939 #define _STRC 0x04
3940 #define _CWG1STRC 0x04
3941 #define _STRD 0x08
3942 #define _CWG1STRD 0x08
3943 #define _OVRA 0x10
3944 #define _CWG1OVRA 0x10
3945 #define _OVRB 0x20
3946 #define _CWG1OVRB 0x20
3947 #define _OVRC 0x40
3948 #define _CWG1OVRC 0x40
3949 #define _OVRD 0x80
3950 #define _CWG1OVRD 0x80
3952 //==============================================================================
3954 extern __at(0x0891) __sfr NVMADR;
3956 //==============================================================================
3957 // NVMADRL Bits
3959 extern __at(0x0891) __sfr NVMADRL;
3961 typedef struct
3963 unsigned NVMADR0 : 1;
3964 unsigned NVMADR1 : 1;
3965 unsigned NVMADR2 : 1;
3966 unsigned NVMADR3 : 1;
3967 unsigned NVMADR4 : 1;
3968 unsigned NVMADR5 : 1;
3969 unsigned NVMADR6 : 1;
3970 unsigned NVMADR7 : 1;
3971 } __NVMADRLbits_t;
3973 extern __at(0x0891) volatile __NVMADRLbits_t NVMADRLbits;
3975 #define _NVMADR0 0x01
3976 #define _NVMADR1 0x02
3977 #define _NVMADR2 0x04
3978 #define _NVMADR3 0x08
3979 #define _NVMADR4 0x10
3980 #define _NVMADR5 0x20
3981 #define _NVMADR6 0x40
3982 #define _NVMADR7 0x80
3984 //==============================================================================
3987 //==============================================================================
3988 // NVMADRH Bits
3990 extern __at(0x0892) __sfr NVMADRH;
3992 typedef struct
3994 unsigned NVMADR8 : 1;
3995 unsigned NVMADR9 : 1;
3996 unsigned NVMADR10 : 1;
3997 unsigned NVMADR11 : 1;
3998 unsigned NVMADR12 : 1;
3999 unsigned NVMADR13 : 1;
4000 unsigned NVMADR14 : 1;
4001 unsigned : 1;
4002 } __NVMADRHbits_t;
4004 extern __at(0x0892) volatile __NVMADRHbits_t NVMADRHbits;
4006 #define _NVMADR8 0x01
4007 #define _NVMADR9 0x02
4008 #define _NVMADR10 0x04
4009 #define _NVMADR11 0x08
4010 #define _NVMADR12 0x10
4011 #define _NVMADR13 0x20
4012 #define _NVMADR14 0x40
4014 //==============================================================================
4016 extern __at(0x0893) __sfr NVMDAT;
4018 //==============================================================================
4019 // NVMDATL Bits
4021 extern __at(0x0893) __sfr NVMDATL;
4023 typedef struct
4025 unsigned NVMDAT0 : 1;
4026 unsigned NVMDAT1 : 1;
4027 unsigned NVMDAT2 : 1;
4028 unsigned NVMDAT3 : 1;
4029 unsigned NVMDAT4 : 1;
4030 unsigned NVMDAT5 : 1;
4031 unsigned NVMDAT6 : 1;
4032 unsigned NVMDAT7 : 1;
4033 } __NVMDATLbits_t;
4035 extern __at(0x0893) volatile __NVMDATLbits_t NVMDATLbits;
4037 #define _NVMDAT0 0x01
4038 #define _NVMDAT1 0x02
4039 #define _NVMDAT2 0x04
4040 #define _NVMDAT3 0x08
4041 #define _NVMDAT4 0x10
4042 #define _NVMDAT5 0x20
4043 #define _NVMDAT6 0x40
4044 #define _NVMDAT7 0x80
4046 //==============================================================================
4049 //==============================================================================
4050 // NVMDATH Bits
4052 extern __at(0x0894) __sfr NVMDATH;
4054 typedef struct
4056 unsigned NVMDAT8 : 1;
4057 unsigned NVMDAT9 : 1;
4058 unsigned NVMDAT10 : 1;
4059 unsigned NVMDAT11 : 1;
4060 unsigned NVMDAT12 : 1;
4061 unsigned NVMDAT13 : 1;
4062 unsigned : 1;
4063 unsigned : 1;
4064 } __NVMDATHbits_t;
4066 extern __at(0x0894) volatile __NVMDATHbits_t NVMDATHbits;
4068 #define _NVMDAT8 0x01
4069 #define _NVMDAT9 0x02
4070 #define _NVMDAT10 0x04
4071 #define _NVMDAT11 0x08
4072 #define _NVMDAT12 0x10
4073 #define _NVMDAT13 0x20
4075 //==============================================================================
4078 //==============================================================================
4079 // NVMCON1 Bits
4081 extern __at(0x0895) __sfr NVMCON1;
4083 typedef struct
4085 unsigned RD : 1;
4086 unsigned WR : 1;
4087 unsigned WREN : 1;
4088 unsigned WRERR : 1;
4089 unsigned FREE : 1;
4090 unsigned LWLO : 1;
4091 unsigned NVMREGS : 1;
4092 unsigned : 1;
4093 } __NVMCON1bits_t;
4095 extern __at(0x0895) volatile __NVMCON1bits_t NVMCON1bits;
4097 #define _RD 0x01
4098 #define _WR 0x02
4099 #define _WREN 0x04
4100 #define _WRERR 0x08
4101 #define _FREE 0x10
4102 #define _LWLO 0x20
4103 #define _NVMREGS 0x40
4105 //==============================================================================
4107 extern __at(0x0896) __sfr NVMCON2;
4109 //==============================================================================
4110 // PCON0 Bits
4112 extern __at(0x089B) __sfr PCON0;
4114 typedef struct
4116 unsigned NOT_BOR : 1;
4117 unsigned NOT_POR : 1;
4118 unsigned NOT_RI : 1;
4119 unsigned NOT_RMCLR : 1;
4120 unsigned NOT_RWDT : 1;
4121 unsigned : 1;
4122 unsigned STKUNF : 1;
4123 unsigned STKOVF : 1;
4124 } __PCON0bits_t;
4126 extern __at(0x089B) volatile __PCON0bits_t PCON0bits;
4128 #define _NOT_BOR 0x01
4129 #define _NOT_POR 0x02
4130 #define _NOT_RI 0x04
4131 #define _NOT_RMCLR 0x08
4132 #define _NOT_RWDT 0x10
4133 #define _STKUNF 0x40
4134 #define _STKOVF 0x80
4136 //==============================================================================
4139 //==============================================================================
4140 // PMD0 Bits
4142 extern __at(0x0911) __sfr PMD0;
4144 typedef struct
4146 unsigned IOCMD : 1;
4147 unsigned CLKRMD : 1;
4148 unsigned NVMMD : 1;
4149 unsigned : 1;
4150 unsigned : 1;
4151 unsigned : 1;
4152 unsigned FVRMD : 1;
4153 unsigned SYSCMD : 1;
4154 } __PMD0bits_t;
4156 extern __at(0x0911) volatile __PMD0bits_t PMD0bits;
4158 #define _IOCMD 0x01
4159 #define _CLKRMD 0x02
4160 #define _NVMMD 0x04
4161 #define _FVRMD 0x40
4162 #define _SYSCMD 0x80
4164 //==============================================================================
4167 //==============================================================================
4168 // PMD1 Bits
4170 extern __at(0x0912) __sfr PMD1;
4172 typedef struct
4174 unsigned TMR0MD : 1;
4175 unsigned TMR1MD : 1;
4176 unsigned TMR2MD : 1;
4177 unsigned : 1;
4178 unsigned : 1;
4179 unsigned : 1;
4180 unsigned : 1;
4181 unsigned NCOMD : 1;
4182 } __PMD1bits_t;
4184 extern __at(0x0912) volatile __PMD1bits_t PMD1bits;
4186 #define _TMR0MD 0x01
4187 #define _TMR1MD 0x02
4188 #define _TMR2MD 0x04
4189 #define _NCOMD 0x80
4191 //==============================================================================
4194 //==============================================================================
4195 // PMD2 Bits
4197 extern __at(0x0913) __sfr PMD2;
4199 typedef struct
4201 unsigned : 1;
4202 unsigned CMP1MD : 1;
4203 unsigned : 1;
4204 unsigned : 1;
4205 unsigned : 1;
4206 unsigned ADCMD : 1;
4207 unsigned DACMD : 1;
4208 unsigned : 1;
4209 } __PMD2bits_t;
4211 extern __at(0x0913) volatile __PMD2bits_t PMD2bits;
4213 #define _CMP1MD 0x02
4214 #define _ADCMD 0x20
4215 #define _DACMD 0x40
4217 //==============================================================================
4220 //==============================================================================
4221 // PMD3 Bits
4223 extern __at(0x0914) __sfr PMD3;
4225 typedef struct
4227 unsigned CCP1MD : 1;
4228 unsigned CCP2MD : 1;
4229 unsigned : 1;
4230 unsigned : 1;
4231 unsigned PWM5MD : 1;
4232 unsigned PWM6MD : 1;
4233 unsigned CWG1MD : 1;
4234 unsigned : 1;
4235 } __PMD3bits_t;
4237 extern __at(0x0914) volatile __PMD3bits_t PMD3bits;
4239 #define _CCP1MD 0x01
4240 #define _CCP2MD 0x02
4241 #define _PWM5MD 0x10
4242 #define _PWM6MD 0x20
4243 #define _CWG1MD 0x40
4245 //==============================================================================
4248 //==============================================================================
4249 // PMD4 Bits
4251 extern __at(0x0915) __sfr PMD4;
4253 typedef struct
4255 unsigned : 1;
4256 unsigned MSSP1MD : 1;
4257 unsigned : 1;
4258 unsigned : 1;
4259 unsigned : 1;
4260 unsigned UART1MD : 1;
4261 unsigned : 1;
4262 unsigned : 1;
4263 } __PMD4bits_t;
4265 extern __at(0x0915) volatile __PMD4bits_t PMD4bits;
4267 #define _MSSP1MD 0x02
4268 #define _UART1MD 0x20
4270 //==============================================================================
4273 //==============================================================================
4274 // PMD5 Bits
4276 extern __at(0x0916) __sfr PMD5;
4278 typedef struct
4280 unsigned DSMMD : 1;
4281 unsigned CLC1MD : 1;
4282 unsigned CLC2MD : 1;
4283 unsigned : 1;
4284 unsigned : 1;
4285 unsigned : 1;
4286 unsigned : 1;
4287 unsigned : 1;
4288 } __PMD5bits_t;
4290 extern __at(0x0916) volatile __PMD5bits_t PMD5bits;
4292 #define _DSMMD 0x01
4293 #define _CLC1MD 0x02
4294 #define _CLC2MD 0x04
4296 //==============================================================================
4299 //==============================================================================
4300 // CPUDOZE Bits
4302 extern __at(0x0918) __sfr CPUDOZE;
4304 typedef union
4306 struct
4308 unsigned DOZE0 : 1;
4309 unsigned DOZE1 : 1;
4310 unsigned DOZE2 : 1;
4311 unsigned : 1;
4312 unsigned DOE : 1;
4313 unsigned ROI : 1;
4314 unsigned DOZEN : 1;
4315 unsigned IDLEN : 1;
4318 struct
4320 unsigned DOZE : 3;
4321 unsigned : 5;
4323 } __CPUDOZEbits_t;
4325 extern __at(0x0918) volatile __CPUDOZEbits_t CPUDOZEbits;
4327 #define _DOZE0 0x01
4328 #define _DOZE1 0x02
4329 #define _DOZE2 0x04
4330 #define _DOE 0x10
4331 #define _ROI 0x20
4332 #define _DOZEN 0x40
4333 #define _IDLEN 0x80
4335 //==============================================================================
4338 //==============================================================================
4339 // OSCCON1 Bits
4341 extern __at(0x0919) __sfr OSCCON1;
4343 typedef union
4345 struct
4347 unsigned NDIV0 : 1;
4348 unsigned NDIV1 : 1;
4349 unsigned NDIV2 : 1;
4350 unsigned NDIV3 : 1;
4351 unsigned NOSC0 : 1;
4352 unsigned NOSC1 : 1;
4353 unsigned NOSC2 : 1;
4354 unsigned : 1;
4357 struct
4359 unsigned NDIV : 4;
4360 unsigned : 4;
4363 struct
4365 unsigned : 4;
4366 unsigned NOSC : 3;
4367 unsigned : 1;
4369 } __OSCCON1bits_t;
4371 extern __at(0x0919) volatile __OSCCON1bits_t OSCCON1bits;
4373 #define _NDIV0 0x01
4374 #define _NDIV1 0x02
4375 #define _NDIV2 0x04
4376 #define _NDIV3 0x08
4377 #define _NOSC0 0x10
4378 #define _NOSC1 0x20
4379 #define _NOSC2 0x40
4381 //==============================================================================
4384 //==============================================================================
4385 // OSCCON2 Bits
4387 extern __at(0x091A) __sfr OSCCON2;
4389 typedef union
4391 struct
4393 unsigned CDIV0 : 1;
4394 unsigned CDIV1 : 1;
4395 unsigned CDIV2 : 1;
4396 unsigned CDIV3 : 1;
4397 unsigned COSC0 : 1;
4398 unsigned COSC1 : 1;
4399 unsigned COSC2 : 1;
4400 unsigned : 1;
4403 struct
4405 unsigned CDIV : 4;
4406 unsigned : 4;
4409 struct
4411 unsigned : 4;
4412 unsigned COSC : 3;
4413 unsigned : 1;
4415 } __OSCCON2bits_t;
4417 extern __at(0x091A) volatile __OSCCON2bits_t OSCCON2bits;
4419 #define _CDIV0 0x01
4420 #define _CDIV1 0x02
4421 #define _CDIV2 0x04
4422 #define _CDIV3 0x08
4423 #define _COSC0 0x10
4424 #define _COSC1 0x20
4425 #define _COSC2 0x40
4427 //==============================================================================
4430 //==============================================================================
4431 // OSCCON3 Bits
4433 extern __at(0x091B) __sfr OSCCON3;
4435 typedef struct
4437 unsigned : 1;
4438 unsigned : 1;
4439 unsigned : 1;
4440 unsigned NOSCR : 1;
4441 unsigned ORDY : 1;
4442 unsigned SOSCBE : 1;
4443 unsigned SOSCPWR : 1;
4444 unsigned CSWHOLD : 1;
4445 } __OSCCON3bits_t;
4447 extern __at(0x091B) volatile __OSCCON3bits_t OSCCON3bits;
4449 #define _NOSCR 0x08
4450 #define _ORDY 0x10
4451 #define _SOSCBE 0x20
4452 #define _SOSCPWR 0x40
4453 #define _CSWHOLD 0x80
4455 //==============================================================================
4458 //==============================================================================
4459 // OSCSTAT1 Bits
4461 extern __at(0x091C) __sfr OSCSTAT1;
4463 typedef struct
4465 unsigned PLLR : 1;
4466 unsigned : 1;
4467 unsigned ADOR : 1;
4468 unsigned SOR : 1;
4469 unsigned LFOR : 1;
4470 unsigned : 1;
4471 unsigned HFOR : 1;
4472 unsigned EXTOR : 1;
4473 } __OSCSTAT1bits_t;
4475 extern __at(0x091C) volatile __OSCSTAT1bits_t OSCSTAT1bits;
4477 #define _PLLR 0x01
4478 #define _ADOR 0x04
4479 #define _SOR 0x08
4480 #define _LFOR 0x10
4481 #define _HFOR 0x40
4482 #define _EXTOR 0x80
4484 //==============================================================================
4487 //==============================================================================
4488 // OSCEN Bits
4490 extern __at(0x091D) __sfr OSCEN;
4492 typedef struct
4494 unsigned : 1;
4495 unsigned : 1;
4496 unsigned ADOEN : 1;
4497 unsigned SOSCEN : 1;
4498 unsigned LFOEN : 1;
4499 unsigned : 1;
4500 unsigned HFOEN : 1;
4501 unsigned EXTOEN : 1;
4502 } __OSCENbits_t;
4504 extern __at(0x091D) volatile __OSCENbits_t OSCENbits;
4506 #define _ADOEN 0x04
4507 #define _SOSCEN 0x08
4508 #define _LFOEN 0x10
4509 #define _HFOEN 0x40
4510 #define _EXTOEN 0x80
4512 //==============================================================================
4515 //==============================================================================
4516 // OSCTUNE Bits
4518 extern __at(0x091E) __sfr OSCTUNE;
4520 typedef union
4522 struct
4524 unsigned HFTUN0 : 1;
4525 unsigned HFTUN1 : 1;
4526 unsigned HFTUN2 : 1;
4527 unsigned HFTUN3 : 1;
4528 unsigned HFTUN4 : 1;
4529 unsigned HFTUN5 : 1;
4530 unsigned : 1;
4531 unsigned : 1;
4534 struct
4536 unsigned HFTUN : 6;
4537 unsigned : 2;
4539 } __OSCTUNEbits_t;
4541 extern __at(0x091E) volatile __OSCTUNEbits_t OSCTUNEbits;
4543 #define _HFTUN0 0x01
4544 #define _HFTUN1 0x02
4545 #define _HFTUN2 0x04
4546 #define _HFTUN3 0x08
4547 #define _HFTUN4 0x10
4548 #define _HFTUN5 0x20
4550 //==============================================================================
4553 //==============================================================================
4554 // OSCFRQ Bits
4556 extern __at(0x091F) __sfr OSCFRQ;
4558 typedef union
4560 struct
4562 unsigned HFFRQ0 : 1;
4563 unsigned HFFRQ1 : 1;
4564 unsigned HFFRQ2 : 1;
4565 unsigned HFFRQ3 : 1;
4566 unsigned : 1;
4567 unsigned : 1;
4568 unsigned : 1;
4569 unsigned : 1;
4572 struct
4574 unsigned HFFRQ : 4;
4575 unsigned : 4;
4577 } __OSCFRQbits_t;
4579 extern __at(0x091F) volatile __OSCFRQbits_t OSCFRQbits;
4581 #define _HFFRQ0 0x01
4582 #define _HFFRQ1 0x02
4583 #define _HFFRQ2 0x04
4584 #define _HFFRQ3 0x08
4586 //==============================================================================
4589 //==============================================================================
4590 // PPSLOCK Bits
4592 extern __at(0x0E0F) __sfr PPSLOCK;
4594 typedef struct
4596 unsigned PPSLOCKED : 1;
4597 unsigned : 1;
4598 unsigned : 1;
4599 unsigned : 1;
4600 unsigned : 1;
4601 unsigned : 1;
4602 unsigned : 1;
4603 unsigned : 1;
4604 } __PPSLOCKbits_t;
4606 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
4608 #define _PPSLOCKED 0x01
4610 //==============================================================================
4613 //==============================================================================
4614 // INTPPS Bits
4616 extern __at(0x0E10) __sfr INTPPS;
4618 typedef union
4620 struct
4622 unsigned INTPPS0 : 1;
4623 unsigned INTPPS1 : 1;
4624 unsigned INTPPS2 : 1;
4625 unsigned INTPPS3 : 1;
4626 unsigned INTPPS4 : 1;
4627 unsigned : 1;
4628 unsigned : 1;
4629 unsigned : 1;
4632 struct
4634 unsigned INTPPS : 5;
4635 unsigned : 3;
4637 } __INTPPSbits_t;
4639 extern __at(0x0E10) volatile __INTPPSbits_t INTPPSbits;
4641 #define _INTPPS0 0x01
4642 #define _INTPPS1 0x02
4643 #define _INTPPS2 0x04
4644 #define _INTPPS3 0x08
4645 #define _INTPPS4 0x10
4647 //==============================================================================
4650 //==============================================================================
4651 // T0CKIPPS Bits
4653 extern __at(0x0E11) __sfr T0CKIPPS;
4655 typedef union
4657 struct
4659 unsigned T0CKIPPS0 : 1;
4660 unsigned T0CKIPPS1 : 1;
4661 unsigned T0CKIPPS2 : 1;
4662 unsigned T0CKIPPS3 : 1;
4663 unsigned T0CKIPPS4 : 1;
4664 unsigned : 1;
4665 unsigned : 1;
4666 unsigned : 1;
4669 struct
4671 unsigned T0CKIPPS : 5;
4672 unsigned : 3;
4674 } __T0CKIPPSbits_t;
4676 extern __at(0x0E11) volatile __T0CKIPPSbits_t T0CKIPPSbits;
4678 #define _T0CKIPPS0 0x01
4679 #define _T0CKIPPS1 0x02
4680 #define _T0CKIPPS2 0x04
4681 #define _T0CKIPPS3 0x08
4682 #define _T0CKIPPS4 0x10
4684 //==============================================================================
4687 //==============================================================================
4688 // T1CKIPPS Bits
4690 extern __at(0x0E12) __sfr T1CKIPPS;
4692 typedef union
4694 struct
4696 unsigned T1CKIPPS0 : 1;
4697 unsigned T1CKIPPS1 : 1;
4698 unsigned T1CKIPPS2 : 1;
4699 unsigned T1CKIPPS3 : 1;
4700 unsigned T1CKIPPS4 : 1;
4701 unsigned : 1;
4702 unsigned : 1;
4703 unsigned : 1;
4706 struct
4708 unsigned T1CKIPPS : 5;
4709 unsigned : 3;
4711 } __T1CKIPPSbits_t;
4713 extern __at(0x0E12) volatile __T1CKIPPSbits_t T1CKIPPSbits;
4715 #define _T1CKIPPS0 0x01
4716 #define _T1CKIPPS1 0x02
4717 #define _T1CKIPPS2 0x04
4718 #define _T1CKIPPS3 0x08
4719 #define _T1CKIPPS4 0x10
4721 //==============================================================================
4724 //==============================================================================
4725 // T1GPPS Bits
4727 extern __at(0x0E13) __sfr T1GPPS;
4729 typedef union
4731 struct
4733 unsigned T1GPPS0 : 1;
4734 unsigned T1GPPS1 : 1;
4735 unsigned T1GPPS2 : 1;
4736 unsigned T1GPPS3 : 1;
4737 unsigned T1GPPS4 : 1;
4738 unsigned : 1;
4739 unsigned : 1;
4740 unsigned : 1;
4743 struct
4745 unsigned T1GPPS : 5;
4746 unsigned : 3;
4748 } __T1GPPSbits_t;
4750 extern __at(0x0E13) volatile __T1GPPSbits_t T1GPPSbits;
4752 #define _T1GPPS0 0x01
4753 #define _T1GPPS1 0x02
4754 #define _T1GPPS2 0x04
4755 #define _T1GPPS3 0x08
4756 #define _T1GPPS4 0x10
4758 //==============================================================================
4761 //==============================================================================
4762 // CCP1PPS Bits
4764 extern __at(0x0E14) __sfr CCP1PPS;
4766 typedef union
4768 struct
4770 unsigned CCP1PPS0 : 1;
4771 unsigned CCP1PPS1 : 1;
4772 unsigned CCP1PPS2 : 1;
4773 unsigned CCP1PPS3 : 1;
4774 unsigned CCP1PPS4 : 1;
4775 unsigned : 1;
4776 unsigned : 1;
4777 unsigned : 1;
4780 struct
4782 unsigned CCP1PPS : 5;
4783 unsigned : 3;
4785 } __CCP1PPSbits_t;
4787 extern __at(0x0E14) volatile __CCP1PPSbits_t CCP1PPSbits;
4789 #define _CCP1PPS0 0x01
4790 #define _CCP1PPS1 0x02
4791 #define _CCP1PPS2 0x04
4792 #define _CCP1PPS3 0x08
4793 #define _CCP1PPS4 0x10
4795 //==============================================================================
4798 //==============================================================================
4799 // CCP2PPS Bits
4801 extern __at(0x0E15) __sfr CCP2PPS;
4803 typedef union
4805 struct
4807 unsigned CCP2PPS0 : 1;
4808 unsigned CCP2PPS1 : 1;
4809 unsigned CCP2PPS2 : 1;
4810 unsigned CCP2PPS3 : 1;
4811 unsigned CCP2PPS4 : 1;
4812 unsigned : 1;
4813 unsigned : 1;
4814 unsigned : 1;
4817 struct
4819 unsigned CCP2PPS : 5;
4820 unsigned : 3;
4822 } __CCP2PPSbits_t;
4824 extern __at(0x0E15) volatile __CCP2PPSbits_t CCP2PPSbits;
4826 #define _CCP2PPS0 0x01
4827 #define _CCP2PPS1 0x02
4828 #define _CCP2PPS2 0x04
4829 #define _CCP2PPS3 0x08
4830 #define _CCP2PPS4 0x10
4832 //==============================================================================
4835 //==============================================================================
4836 // CWG1PPS Bits
4838 extern __at(0x0E18) __sfr CWG1PPS;
4840 typedef union
4842 struct
4844 unsigned CWG1PPS0 : 1;
4845 unsigned CWG1PPS1 : 1;
4846 unsigned CWG1PPS2 : 1;
4847 unsigned CWG1PPS3 : 1;
4848 unsigned CWG1PPS4 : 1;
4849 unsigned : 1;
4850 unsigned : 1;
4851 unsigned : 1;
4854 struct
4856 unsigned CWG1PPS : 5;
4857 unsigned : 3;
4859 } __CWG1PPSbits_t;
4861 extern __at(0x0E18) volatile __CWG1PPSbits_t CWG1PPSbits;
4863 #define _CWG1PPS0 0x01
4864 #define _CWG1PPS1 0x02
4865 #define _CWG1PPS2 0x04
4866 #define _CWG1PPS3 0x08
4867 #define _CWG1PPS4 0x10
4869 //==============================================================================
4872 //==============================================================================
4873 // MDCIN1PPS Bits
4875 extern __at(0x0E1A) __sfr MDCIN1PPS;
4877 typedef union
4879 struct
4881 unsigned MDCIN1PPS0 : 1;
4882 unsigned MDCIN1PPS1 : 1;
4883 unsigned MDCIN1PPS2 : 1;
4884 unsigned MDCIN1PPS3 : 1;
4885 unsigned MDCIN1PPS4 : 1;
4886 unsigned : 1;
4887 unsigned : 1;
4888 unsigned : 1;
4891 struct
4893 unsigned MDCIN1PPS : 5;
4894 unsigned : 3;
4896 } __MDCIN1PPSbits_t;
4898 extern __at(0x0E1A) volatile __MDCIN1PPSbits_t MDCIN1PPSbits;
4900 #define _MDCIN1PPS0 0x01
4901 #define _MDCIN1PPS1 0x02
4902 #define _MDCIN1PPS2 0x04
4903 #define _MDCIN1PPS3 0x08
4904 #define _MDCIN1PPS4 0x10
4906 //==============================================================================
4909 //==============================================================================
4910 // MDCIN2PPS Bits
4912 extern __at(0x0E1B) __sfr MDCIN2PPS;
4914 typedef union
4916 struct
4918 unsigned MDCIN2PPS0 : 1;
4919 unsigned MDCIN2PPS1 : 1;
4920 unsigned MDCIN2PPS2 : 1;
4921 unsigned MDCIN2PPS3 : 1;
4922 unsigned MDCIN2PPS4 : 1;
4923 unsigned : 1;
4924 unsigned : 1;
4925 unsigned : 1;
4928 struct
4930 unsigned MDCIN2PPS : 5;
4931 unsigned : 3;
4933 } __MDCIN2PPSbits_t;
4935 extern __at(0x0E1B) volatile __MDCIN2PPSbits_t MDCIN2PPSbits;
4937 #define _MDCIN2PPS0 0x01
4938 #define _MDCIN2PPS1 0x02
4939 #define _MDCIN2PPS2 0x04
4940 #define _MDCIN2PPS3 0x08
4941 #define _MDCIN2PPS4 0x10
4943 //==============================================================================
4946 //==============================================================================
4947 // MDMINPPS Bits
4949 extern __at(0x0E1C) __sfr MDMINPPS;
4951 typedef union
4953 struct
4955 unsigned MDMINPPS0 : 1;
4956 unsigned MDMINPPS1 : 1;
4957 unsigned MDMINPPS2 : 1;
4958 unsigned MDMINPPS3 : 1;
4959 unsigned MDMINPPS4 : 1;
4960 unsigned : 1;
4961 unsigned : 1;
4962 unsigned : 1;
4965 struct
4967 unsigned MDMINPPS : 5;
4968 unsigned : 3;
4970 } __MDMINPPSbits_t;
4972 extern __at(0x0E1C) volatile __MDMINPPSbits_t MDMINPPSbits;
4974 #define _MDMINPPS0 0x01
4975 #define _MDMINPPS1 0x02
4976 #define _MDMINPPS2 0x04
4977 #define _MDMINPPS3 0x08
4978 #define _MDMINPPS4 0x10
4980 //==============================================================================
4983 //==============================================================================
4984 // SSP1CLKPPS Bits
4986 extern __at(0x0E20) __sfr SSP1CLKPPS;
4988 typedef union
4990 struct
4992 unsigned SSP1CLKPPS0 : 1;
4993 unsigned SSP1CLKPPS1 : 1;
4994 unsigned SSP1CLKPPS2 : 1;
4995 unsigned SSP1CLKPPS3 : 1;
4996 unsigned SSP1CLKPPS4 : 1;
4997 unsigned : 1;
4998 unsigned : 1;
4999 unsigned : 1;
5002 struct
5004 unsigned SSP1CLKPPS : 5;
5005 unsigned : 3;
5007 } __SSP1CLKPPSbits_t;
5009 extern __at(0x0E20) volatile __SSP1CLKPPSbits_t SSP1CLKPPSbits;
5011 #define _SSP1CLKPPS0 0x01
5012 #define _SSP1CLKPPS1 0x02
5013 #define _SSP1CLKPPS2 0x04
5014 #define _SSP1CLKPPS3 0x08
5015 #define _SSP1CLKPPS4 0x10
5017 //==============================================================================
5020 //==============================================================================
5021 // SSP1DATPPS Bits
5023 extern __at(0x0E21) __sfr SSP1DATPPS;
5025 typedef union
5027 struct
5029 unsigned SSP1DATPPS0 : 1;
5030 unsigned SSP1DATPPS1 : 1;
5031 unsigned SSP1DATPPS2 : 1;
5032 unsigned SSP1DATPPS3 : 1;
5033 unsigned SSP1DATPPS4 : 1;
5034 unsigned : 1;
5035 unsigned : 1;
5036 unsigned : 1;
5039 struct
5041 unsigned SSP1DATPPS : 5;
5042 unsigned : 3;
5044 } __SSP1DATPPSbits_t;
5046 extern __at(0x0E21) volatile __SSP1DATPPSbits_t SSP1DATPPSbits;
5048 #define _SSP1DATPPS0 0x01
5049 #define _SSP1DATPPS1 0x02
5050 #define _SSP1DATPPS2 0x04
5051 #define _SSP1DATPPS3 0x08
5052 #define _SSP1DATPPS4 0x10
5054 //==============================================================================
5057 //==============================================================================
5058 // SSP1SSPPS Bits
5060 extern __at(0x0E22) __sfr SSP1SSPPS;
5062 typedef union
5064 struct
5066 unsigned SSP1SSPPS0 : 1;
5067 unsigned SSP1SSPPS1 : 1;
5068 unsigned SSP1SSPPS2 : 1;
5069 unsigned SSP1SSPPS3 : 1;
5070 unsigned SSP1SSPPS4 : 1;
5071 unsigned : 1;
5072 unsigned : 1;
5073 unsigned : 1;
5076 struct
5078 unsigned SSP1SSPPS : 5;
5079 unsigned : 3;
5081 } __SSP1SSPPSbits_t;
5083 extern __at(0x0E22) volatile __SSP1SSPPSbits_t SSP1SSPPSbits;
5085 #define _SSP1SSPPS0 0x01
5086 #define _SSP1SSPPS1 0x02
5087 #define _SSP1SSPPS2 0x04
5088 #define _SSP1SSPPS3 0x08
5089 #define _SSP1SSPPS4 0x10
5091 //==============================================================================
5094 //==============================================================================
5095 // RXPPS Bits
5097 extern __at(0x0E24) __sfr RXPPS;
5099 typedef union
5101 struct
5103 unsigned RXPPS0 : 1;
5104 unsigned RXPPS1 : 1;
5105 unsigned RXPPS2 : 1;
5106 unsigned RXPPS3 : 1;
5107 unsigned RXPPS4 : 1;
5108 unsigned : 1;
5109 unsigned : 1;
5110 unsigned : 1;
5113 struct
5115 unsigned RXPPS : 5;
5116 unsigned : 3;
5118 } __RXPPSbits_t;
5120 extern __at(0x0E24) volatile __RXPPSbits_t RXPPSbits;
5122 #define _RXPPS0 0x01
5123 #define _RXPPS1 0x02
5124 #define _RXPPS2 0x04
5125 #define _RXPPS3 0x08
5126 #define _RXPPS4 0x10
5128 //==============================================================================
5131 //==============================================================================
5132 // TXPPS Bits
5134 extern __at(0x0E25) __sfr TXPPS;
5136 typedef union
5138 struct
5140 unsigned TXPPS0 : 1;
5141 unsigned TXPPS1 : 1;
5142 unsigned TXPPS2 : 1;
5143 unsigned TXPPS3 : 1;
5144 unsigned TXPPS4 : 1;
5145 unsigned : 1;
5146 unsigned : 1;
5147 unsigned : 1;
5150 struct
5152 unsigned TXPPS : 5;
5153 unsigned : 3;
5155 } __TXPPSbits_t;
5157 extern __at(0x0E25) volatile __TXPPSbits_t TXPPSbits;
5159 #define _TXPPS0 0x01
5160 #define _TXPPS1 0x02
5161 #define _TXPPS2 0x04
5162 #define _TXPPS3 0x08
5163 #define _TXPPS4 0x10
5165 //==============================================================================
5168 //==============================================================================
5169 // CLCIN0PPS Bits
5171 extern __at(0x0E28) __sfr CLCIN0PPS;
5173 typedef union
5175 struct
5177 unsigned CLCIN0PPS0 : 1;
5178 unsigned CLCIN0PPS1 : 1;
5179 unsigned CLCIN0PPS2 : 1;
5180 unsigned CLCIN0PPS3 : 1;
5181 unsigned CLCIN0PPS4 : 1;
5182 unsigned : 1;
5183 unsigned : 1;
5184 unsigned : 1;
5187 struct
5189 unsigned CLCIN0PPS : 5;
5190 unsigned : 3;
5192 } __CLCIN0PPSbits_t;
5194 extern __at(0x0E28) volatile __CLCIN0PPSbits_t CLCIN0PPSbits;
5196 #define _CLCIN0PPS0 0x01
5197 #define _CLCIN0PPS1 0x02
5198 #define _CLCIN0PPS2 0x04
5199 #define _CLCIN0PPS3 0x08
5200 #define _CLCIN0PPS4 0x10
5202 //==============================================================================
5205 //==============================================================================
5206 // CLCIN1PPS Bits
5208 extern __at(0x0E29) __sfr CLCIN1PPS;
5210 typedef union
5212 struct
5214 unsigned CLCIN1PPS0 : 1;
5215 unsigned CLCIN1PPS1 : 1;
5216 unsigned CLCIN1PPS2 : 1;
5217 unsigned CLCIN1PPS3 : 1;
5218 unsigned CLCIN1PPS4 : 1;
5219 unsigned : 1;
5220 unsigned : 1;
5221 unsigned : 1;
5224 struct
5226 unsigned CLCIN1PPS : 5;
5227 unsigned : 3;
5229 } __CLCIN1PPSbits_t;
5231 extern __at(0x0E29) volatile __CLCIN1PPSbits_t CLCIN1PPSbits;
5233 #define _CLCIN1PPS0 0x01
5234 #define _CLCIN1PPS1 0x02
5235 #define _CLCIN1PPS2 0x04
5236 #define _CLCIN1PPS3 0x08
5237 #define _CLCIN1PPS4 0x10
5239 //==============================================================================
5242 //==============================================================================
5243 // CLCIN2PPS Bits
5245 extern __at(0x0E2A) __sfr CLCIN2PPS;
5247 typedef union
5249 struct
5251 unsigned CLCIN2PPS0 : 1;
5252 unsigned CLCIN2PPS1 : 1;
5253 unsigned CLCIN2PPS2 : 1;
5254 unsigned CLCIN2PPS3 : 1;
5255 unsigned CLCIN2PPS4 : 1;
5256 unsigned : 1;
5257 unsigned : 1;
5258 unsigned : 1;
5261 struct
5263 unsigned CLCIN2PPS : 5;
5264 unsigned : 3;
5266 } __CLCIN2PPSbits_t;
5268 extern __at(0x0E2A) volatile __CLCIN2PPSbits_t CLCIN2PPSbits;
5270 #define _CLCIN2PPS0 0x01
5271 #define _CLCIN2PPS1 0x02
5272 #define _CLCIN2PPS2 0x04
5273 #define _CLCIN2PPS3 0x08
5274 #define _CLCIN2PPS4 0x10
5276 //==============================================================================
5279 //==============================================================================
5280 // CLCIN3PPS Bits
5282 extern __at(0x0E2B) __sfr CLCIN3PPS;
5284 typedef union
5286 struct
5288 unsigned CLCIN3PPS0 : 1;
5289 unsigned CLCIN3PPS1 : 1;
5290 unsigned CLCIN3PPS2 : 1;
5291 unsigned CLCIN3PPS3 : 1;
5292 unsigned CLCIN3PPS4 : 1;
5293 unsigned : 1;
5294 unsigned : 1;
5295 unsigned : 1;
5298 struct
5300 unsigned CLCIN3PPS : 5;
5301 unsigned : 3;
5303 } __CLCIN3PPSbits_t;
5305 extern __at(0x0E2B) volatile __CLCIN3PPSbits_t CLCIN3PPSbits;
5307 #define _CLCIN3PPS0 0x01
5308 #define _CLCIN3PPS1 0x02
5309 #define _CLCIN3PPS2 0x04
5310 #define _CLCIN3PPS3 0x08
5311 #define _CLCIN3PPS4 0x10
5313 //==============================================================================
5316 //==============================================================================
5317 // RA0PPS Bits
5319 extern __at(0x0E90) __sfr RA0PPS;
5321 typedef union
5323 struct
5325 unsigned RA0PPS0 : 1;
5326 unsigned RA0PPS1 : 1;
5327 unsigned RA0PPS2 : 1;
5328 unsigned RA0PPS3 : 1;
5329 unsigned RA0PPS4 : 1;
5330 unsigned : 1;
5331 unsigned : 1;
5332 unsigned : 1;
5335 struct
5337 unsigned RA0PPS : 5;
5338 unsigned : 3;
5340 } __RA0PPSbits_t;
5342 extern __at(0x0E90) volatile __RA0PPSbits_t RA0PPSbits;
5344 #define _RA0PPS0 0x01
5345 #define _RA0PPS1 0x02
5346 #define _RA0PPS2 0x04
5347 #define _RA0PPS3 0x08
5348 #define _RA0PPS4 0x10
5350 //==============================================================================
5353 //==============================================================================
5354 // RA1PPS Bits
5356 extern __at(0x0E91) __sfr RA1PPS;
5358 typedef union
5360 struct
5362 unsigned RA1PPS0 : 1;
5363 unsigned RA1PPS1 : 1;
5364 unsigned RA1PPS2 : 1;
5365 unsigned RA1PPS3 : 1;
5366 unsigned RA1PPS4 : 1;
5367 unsigned : 1;
5368 unsigned : 1;
5369 unsigned : 1;
5372 struct
5374 unsigned RA1PPS : 5;
5375 unsigned : 3;
5377 } __RA1PPSbits_t;
5379 extern __at(0x0E91) volatile __RA1PPSbits_t RA1PPSbits;
5381 #define _RA1PPS0 0x01
5382 #define _RA1PPS1 0x02
5383 #define _RA1PPS2 0x04
5384 #define _RA1PPS3 0x08
5385 #define _RA1PPS4 0x10
5387 //==============================================================================
5390 //==============================================================================
5391 // RA2PPS Bits
5393 extern __at(0x0E92) __sfr RA2PPS;
5395 typedef union
5397 struct
5399 unsigned RA2PPS0 : 1;
5400 unsigned RA2PPS1 : 1;
5401 unsigned RA2PPS2 : 1;
5402 unsigned RA2PPS3 : 1;
5403 unsigned RA2PPS4 : 1;
5404 unsigned : 1;
5405 unsigned : 1;
5406 unsigned : 1;
5409 struct
5411 unsigned RA2PPS : 5;
5412 unsigned : 3;
5414 } __RA2PPSbits_t;
5416 extern __at(0x0E92) volatile __RA2PPSbits_t RA2PPSbits;
5418 #define _RA2PPS0 0x01
5419 #define _RA2PPS1 0x02
5420 #define _RA2PPS2 0x04
5421 #define _RA2PPS3 0x08
5422 #define _RA2PPS4 0x10
5424 //==============================================================================
5427 //==============================================================================
5428 // RA4PPS Bits
5430 extern __at(0x0E94) __sfr RA4PPS;
5432 typedef union
5434 struct
5436 unsigned RA4PPS0 : 1;
5437 unsigned RA4PPS1 : 1;
5438 unsigned RA4PPS2 : 1;
5439 unsigned RA4PPS3 : 1;
5440 unsigned RA4PPS4 : 1;
5441 unsigned : 1;
5442 unsigned : 1;
5443 unsigned : 1;
5446 struct
5448 unsigned RA4PPS : 5;
5449 unsigned : 3;
5451 } __RA4PPSbits_t;
5453 extern __at(0x0E94) volatile __RA4PPSbits_t RA4PPSbits;
5455 #define _RA4PPS0 0x01
5456 #define _RA4PPS1 0x02
5457 #define _RA4PPS2 0x04
5458 #define _RA4PPS3 0x08
5459 #define _RA4PPS4 0x10
5461 //==============================================================================
5464 //==============================================================================
5465 // RA5PPS Bits
5467 extern __at(0x0E95) __sfr RA5PPS;
5469 typedef union
5471 struct
5473 unsigned RA5PPS0 : 1;
5474 unsigned RA5PPS1 : 1;
5475 unsigned RA5PPS2 : 1;
5476 unsigned RA5PPS3 : 1;
5477 unsigned RA5PPS4 : 1;
5478 unsigned : 1;
5479 unsigned : 1;
5480 unsigned : 1;
5483 struct
5485 unsigned RA5PPS : 5;
5486 unsigned : 3;
5488 } __RA5PPSbits_t;
5490 extern __at(0x0E95) volatile __RA5PPSbits_t RA5PPSbits;
5492 #define _RA5PPS0 0x01
5493 #define _RA5PPS1 0x02
5494 #define _RA5PPS2 0x04
5495 #define _RA5PPS3 0x08
5496 #define _RA5PPS4 0x10
5498 //==============================================================================
5501 //==============================================================================
5502 // CLCDATA Bits
5504 extern __at(0x0F0F) __sfr CLCDATA;
5506 typedef struct
5508 unsigned MLC1OUT : 1;
5509 unsigned MLC2OUT : 1;
5510 unsigned : 1;
5511 unsigned : 1;
5512 unsigned : 1;
5513 unsigned : 1;
5514 unsigned : 1;
5515 unsigned : 1;
5516 } __CLCDATAbits_t;
5518 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
5520 #define _MLC1OUT 0x01
5521 #define _MLC2OUT 0x02
5523 //==============================================================================
5526 //==============================================================================
5527 // CLC1CON Bits
5529 extern __at(0x0F10) __sfr CLC1CON;
5531 typedef union
5533 struct
5535 unsigned LC1MODE0 : 1;
5536 unsigned LC1MODE1 : 1;
5537 unsigned LC1MODE2 : 1;
5538 unsigned LC1INTN : 1;
5539 unsigned LC1INTP : 1;
5540 unsigned LC1OUT : 1;
5541 unsigned : 1;
5542 unsigned LC1EN : 1;
5545 struct
5547 unsigned MODE0 : 1;
5548 unsigned MODE1 : 1;
5549 unsigned MODE2 : 1;
5550 unsigned INTN : 1;
5551 unsigned INTP : 1;
5552 unsigned OUT : 1;
5553 unsigned : 1;
5554 unsigned EN : 1;
5557 struct
5559 unsigned MODE : 3;
5560 unsigned : 5;
5563 struct
5565 unsigned LC1MODE : 3;
5566 unsigned : 5;
5568 } __CLC1CONbits_t;
5570 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
5572 #define _LC1MODE0 0x01
5573 #define _MODE0 0x01
5574 #define _LC1MODE1 0x02
5575 #define _MODE1 0x02
5576 #define _LC1MODE2 0x04
5577 #define _MODE2 0x04
5578 #define _LC1INTN 0x08
5579 #define _INTN 0x08
5580 #define _LC1INTP 0x10
5581 #define _INTP 0x10
5582 #define _LC1OUT 0x20
5583 #define _OUT 0x20
5584 #define _LC1EN 0x80
5585 #define _EN 0x80
5587 //==============================================================================
5590 //==============================================================================
5591 // CLC1POL Bits
5593 extern __at(0x0F11) __sfr CLC1POL;
5595 typedef union
5597 struct
5599 unsigned LC1G1POL : 1;
5600 unsigned LC1G2POL : 1;
5601 unsigned LC1G3POL : 1;
5602 unsigned LC1G4POL : 1;
5603 unsigned : 1;
5604 unsigned : 1;
5605 unsigned : 1;
5606 unsigned LC1POL : 1;
5609 struct
5611 unsigned G1POL : 1;
5612 unsigned G2POL : 1;
5613 unsigned G3POL : 1;
5614 unsigned G4POL : 1;
5615 unsigned : 1;
5616 unsigned : 1;
5617 unsigned : 1;
5618 unsigned POL : 1;
5620 } __CLC1POLbits_t;
5622 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
5624 #define _LC1G1POL 0x01
5625 #define _G1POL 0x01
5626 #define _LC1G2POL 0x02
5627 #define _G2POL 0x02
5628 #define _LC1G3POL 0x04
5629 #define _G3POL 0x04
5630 #define _LC1G4POL 0x08
5631 #define _G4POL 0x08
5632 #define _LC1POL 0x80
5633 #define _POL 0x80
5635 //==============================================================================
5638 //==============================================================================
5639 // CLC1SEL0 Bits
5641 extern __at(0x0F12) __sfr CLC1SEL0;
5643 typedef union
5645 struct
5647 unsigned LC1D1S0 : 1;
5648 unsigned LC1D1S1 : 1;
5649 unsigned LC1D1S2 : 1;
5650 unsigned LC1D1S3 : 1;
5651 unsigned LC1D1S4 : 1;
5652 unsigned : 1;
5653 unsigned : 1;
5654 unsigned : 1;
5657 struct
5659 unsigned D1S0 : 1;
5660 unsigned D1S1 : 1;
5661 unsigned D1S2 : 1;
5662 unsigned D1S3 : 1;
5663 unsigned D1S4 : 1;
5664 unsigned : 1;
5665 unsigned : 1;
5666 unsigned : 1;
5669 struct
5671 unsigned D1S : 5;
5672 unsigned : 3;
5675 struct
5677 unsigned LC1D1S : 5;
5678 unsigned : 3;
5680 } __CLC1SEL0bits_t;
5682 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
5684 #define _LC1D1S0 0x01
5685 #define _D1S0 0x01
5686 #define _LC1D1S1 0x02
5687 #define _D1S1 0x02
5688 #define _LC1D1S2 0x04
5689 #define _D1S2 0x04
5690 #define _LC1D1S3 0x08
5691 #define _D1S3 0x08
5692 #define _LC1D1S4 0x10
5693 #define _D1S4 0x10
5695 //==============================================================================
5698 //==============================================================================
5699 // CLC1SEL1 Bits
5701 extern __at(0x0F13) __sfr CLC1SEL1;
5703 typedef union
5705 struct
5707 unsigned LC1D2S0 : 1;
5708 unsigned LC1D2S1 : 1;
5709 unsigned LC1D2S2 : 1;
5710 unsigned LC1D2S3 : 1;
5711 unsigned LC1D2S4 : 1;
5712 unsigned : 1;
5713 unsigned : 1;
5714 unsigned : 1;
5717 struct
5719 unsigned D2S0 : 1;
5720 unsigned D2S1 : 1;
5721 unsigned D2S2 : 1;
5722 unsigned D2S3 : 1;
5723 unsigned D2S4 : 1;
5724 unsigned : 1;
5725 unsigned : 1;
5726 unsigned : 1;
5729 struct
5731 unsigned LC1D2S : 5;
5732 unsigned : 3;
5735 struct
5737 unsigned D2S : 5;
5738 unsigned : 3;
5740 } __CLC1SEL1bits_t;
5742 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
5744 #define _LC1D2S0 0x01
5745 #define _D2S0 0x01
5746 #define _LC1D2S1 0x02
5747 #define _D2S1 0x02
5748 #define _LC1D2S2 0x04
5749 #define _D2S2 0x04
5750 #define _LC1D2S3 0x08
5751 #define _D2S3 0x08
5752 #define _LC1D2S4 0x10
5753 #define _D2S4 0x10
5755 //==============================================================================
5758 //==============================================================================
5759 // CLC1SEL2 Bits
5761 extern __at(0x0F14) __sfr CLC1SEL2;
5763 typedef union
5765 struct
5767 unsigned LC1D3S0 : 1;
5768 unsigned LC1D3S1 : 1;
5769 unsigned LC1D3S2 : 1;
5770 unsigned LC1D3S3 : 1;
5771 unsigned LC1D3S4 : 1;
5772 unsigned : 1;
5773 unsigned : 1;
5774 unsigned : 1;
5777 struct
5779 unsigned D3S0 : 1;
5780 unsigned D3S1 : 1;
5781 unsigned D3S2 : 1;
5782 unsigned D3S3 : 1;
5783 unsigned D3S4 : 1;
5784 unsigned : 1;
5785 unsigned : 1;
5786 unsigned : 1;
5789 struct
5791 unsigned LC1D3S : 5;
5792 unsigned : 3;
5795 struct
5797 unsigned D3S : 5;
5798 unsigned : 3;
5800 } __CLC1SEL2bits_t;
5802 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
5804 #define _LC1D3S0 0x01
5805 #define _D3S0 0x01
5806 #define _LC1D3S1 0x02
5807 #define _D3S1 0x02
5808 #define _LC1D3S2 0x04
5809 #define _D3S2 0x04
5810 #define _LC1D3S3 0x08
5811 #define _D3S3 0x08
5812 #define _LC1D3S4 0x10
5813 #define _D3S4 0x10
5815 //==============================================================================
5818 //==============================================================================
5819 // CLC1SEL3 Bits
5821 extern __at(0x0F15) __sfr CLC1SEL3;
5823 typedef union
5825 struct
5827 unsigned LC1D4S0 : 1;
5828 unsigned LC1D4S1 : 1;
5829 unsigned LC1D4S2 : 1;
5830 unsigned LC1D4S3 : 1;
5831 unsigned LC1D4S4 : 1;
5832 unsigned : 1;
5833 unsigned : 1;
5834 unsigned : 1;
5837 struct
5839 unsigned D4S0 : 1;
5840 unsigned D4S1 : 1;
5841 unsigned D4S2 : 1;
5842 unsigned D4S3 : 1;
5843 unsigned D4S4 : 1;
5844 unsigned : 1;
5845 unsigned : 1;
5846 unsigned : 1;
5849 struct
5851 unsigned D4S : 5;
5852 unsigned : 3;
5855 struct
5857 unsigned LC1D4S : 5;
5858 unsigned : 3;
5860 } __CLC1SEL3bits_t;
5862 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
5864 #define _LC1D4S0 0x01
5865 #define _D4S0 0x01
5866 #define _LC1D4S1 0x02
5867 #define _D4S1 0x02
5868 #define _LC1D4S2 0x04
5869 #define _D4S2 0x04
5870 #define _LC1D4S3 0x08
5871 #define _D4S3 0x08
5872 #define _LC1D4S4 0x10
5873 #define _D4S4 0x10
5875 //==============================================================================
5878 //==============================================================================
5879 // CLC1GLS0 Bits
5881 extern __at(0x0F16) __sfr CLC1GLS0;
5883 typedef union
5885 struct
5887 unsigned LC1G1D1N : 1;
5888 unsigned LC1G1D1T : 1;
5889 unsigned LC1G1D2N : 1;
5890 unsigned LC1G1D2T : 1;
5891 unsigned LC1G1D3N : 1;
5892 unsigned LC1G1D3T : 1;
5893 unsigned LC1G1D4N : 1;
5894 unsigned LC1G1D4T : 1;
5897 struct
5899 unsigned D1N : 1;
5900 unsigned D1T : 1;
5901 unsigned D2N : 1;
5902 unsigned D2T : 1;
5903 unsigned D3N : 1;
5904 unsigned D3T : 1;
5905 unsigned D4N : 1;
5906 unsigned D4T : 1;
5908 } __CLC1GLS0bits_t;
5910 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
5912 #define _LC1G1D1N 0x01
5913 #define _D1N 0x01
5914 #define _LC1G1D1T 0x02
5915 #define _D1T 0x02
5916 #define _LC1G1D2N 0x04
5917 #define _D2N 0x04
5918 #define _LC1G1D2T 0x08
5919 #define _D2T 0x08
5920 #define _LC1G1D3N 0x10
5921 #define _D3N 0x10
5922 #define _LC1G1D3T 0x20
5923 #define _D3T 0x20
5924 #define _LC1G1D4N 0x40
5925 #define _D4N 0x40
5926 #define _LC1G1D4T 0x80
5927 #define _D4T 0x80
5929 //==============================================================================
5932 //==============================================================================
5933 // CLC1GLS1 Bits
5935 extern __at(0x0F17) __sfr CLC1GLS1;
5937 typedef union
5939 struct
5941 unsigned LC1G2D1N : 1;
5942 unsigned LC1G2D1T : 1;
5943 unsigned LC1G2D2N : 1;
5944 unsigned LC1G2D2T : 1;
5945 unsigned LC1G2D3N : 1;
5946 unsigned LC1G2D3T : 1;
5947 unsigned LC1G2D4N : 1;
5948 unsigned LC1G2D4T : 1;
5951 struct
5953 unsigned D1N : 1;
5954 unsigned D1T : 1;
5955 unsigned D2N : 1;
5956 unsigned D2T : 1;
5957 unsigned D3N : 1;
5958 unsigned D3T : 1;
5959 unsigned D4N : 1;
5960 unsigned D4T : 1;
5962 } __CLC1GLS1bits_t;
5964 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
5966 #define _CLC1GLS1_LC1G2D1N 0x01
5967 #define _CLC1GLS1_D1N 0x01
5968 #define _CLC1GLS1_LC1G2D1T 0x02
5969 #define _CLC1GLS1_D1T 0x02
5970 #define _CLC1GLS1_LC1G2D2N 0x04
5971 #define _CLC1GLS1_D2N 0x04
5972 #define _CLC1GLS1_LC1G2D2T 0x08
5973 #define _CLC1GLS1_D2T 0x08
5974 #define _CLC1GLS1_LC1G2D3N 0x10
5975 #define _CLC1GLS1_D3N 0x10
5976 #define _CLC1GLS1_LC1G2D3T 0x20
5977 #define _CLC1GLS1_D3T 0x20
5978 #define _CLC1GLS1_LC1G2D4N 0x40
5979 #define _CLC1GLS1_D4N 0x40
5980 #define _CLC1GLS1_LC1G2D4T 0x80
5981 #define _CLC1GLS1_D4T 0x80
5983 //==============================================================================
5986 //==============================================================================
5987 // CLC1GLS2 Bits
5989 extern __at(0x0F18) __sfr CLC1GLS2;
5991 typedef union
5993 struct
5995 unsigned LC1G3D1N : 1;
5996 unsigned LC1G3D1T : 1;
5997 unsigned LC1G3D2N : 1;
5998 unsigned LC1G3D2T : 1;
5999 unsigned LC1G3D3N : 1;
6000 unsigned LC1G3D3T : 1;
6001 unsigned LC1G3D4N : 1;
6002 unsigned LC1G3D4T : 1;
6005 struct
6007 unsigned D1N : 1;
6008 unsigned D1T : 1;
6009 unsigned D2N : 1;
6010 unsigned D2T : 1;
6011 unsigned D3N : 1;
6012 unsigned D3T : 1;
6013 unsigned D4N : 1;
6014 unsigned D4T : 1;
6016 } __CLC1GLS2bits_t;
6018 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
6020 #define _CLC1GLS2_LC1G3D1N 0x01
6021 #define _CLC1GLS2_D1N 0x01
6022 #define _CLC1GLS2_LC1G3D1T 0x02
6023 #define _CLC1GLS2_D1T 0x02
6024 #define _CLC1GLS2_LC1G3D2N 0x04
6025 #define _CLC1GLS2_D2N 0x04
6026 #define _CLC1GLS2_LC1G3D2T 0x08
6027 #define _CLC1GLS2_D2T 0x08
6028 #define _CLC1GLS2_LC1G3D3N 0x10
6029 #define _CLC1GLS2_D3N 0x10
6030 #define _CLC1GLS2_LC1G3D3T 0x20
6031 #define _CLC1GLS2_D3T 0x20
6032 #define _CLC1GLS2_LC1G3D4N 0x40
6033 #define _CLC1GLS2_D4N 0x40
6034 #define _CLC1GLS2_LC1G3D4T 0x80
6035 #define _CLC1GLS2_D4T 0x80
6037 //==============================================================================
6040 //==============================================================================
6041 // CLC1GLS3 Bits
6043 extern __at(0x0F19) __sfr CLC1GLS3;
6045 typedef union
6047 struct
6049 unsigned LC1G4D1N : 1;
6050 unsigned LC1G4D1T : 1;
6051 unsigned LC1G4D2N : 1;
6052 unsigned LC1G4D2T : 1;
6053 unsigned LC1G4D3N : 1;
6054 unsigned LC1G4D3T : 1;
6055 unsigned LC1G4D4N : 1;
6056 unsigned LC1G4D4T : 1;
6059 struct
6061 unsigned G4D1N : 1;
6062 unsigned G4D1T : 1;
6063 unsigned G4D2N : 1;
6064 unsigned G4D2T : 1;
6065 unsigned G4D3N : 1;
6066 unsigned G4D3T : 1;
6067 unsigned G4D4N : 1;
6068 unsigned G4D4T : 1;
6070 } __CLC1GLS3bits_t;
6072 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
6074 #define _LC1G4D1N 0x01
6075 #define _G4D1N 0x01
6076 #define _LC1G4D1T 0x02
6077 #define _G4D1T 0x02
6078 #define _LC1G4D2N 0x04
6079 #define _G4D2N 0x04
6080 #define _LC1G4D2T 0x08
6081 #define _G4D2T 0x08
6082 #define _LC1G4D3N 0x10
6083 #define _G4D3N 0x10
6084 #define _LC1G4D3T 0x20
6085 #define _G4D3T 0x20
6086 #define _LC1G4D4N 0x40
6087 #define _G4D4N 0x40
6088 #define _LC1G4D4T 0x80
6089 #define _G4D4T 0x80
6091 //==============================================================================
6094 //==============================================================================
6095 // CLC2CON Bits
6097 extern __at(0x0F1A) __sfr CLC2CON;
6099 typedef union
6101 struct
6103 unsigned LC2MODE0 : 1;
6104 unsigned LC2MODE1 : 1;
6105 unsigned LC2MODE2 : 1;
6106 unsigned LC2INTN : 1;
6107 unsigned LC2INTP : 1;
6108 unsigned LC2OUT : 1;
6109 unsigned : 1;
6110 unsigned LC2EN : 1;
6113 struct
6115 unsigned MODE0 : 1;
6116 unsigned MODE1 : 1;
6117 unsigned MODE2 : 1;
6118 unsigned INTN : 1;
6119 unsigned INTP : 1;
6120 unsigned OUT : 1;
6121 unsigned : 1;
6122 unsigned EN : 1;
6125 struct
6127 unsigned LC2MODE : 3;
6128 unsigned : 5;
6131 struct
6133 unsigned MODE : 3;
6134 unsigned : 5;
6136 } __CLC2CONbits_t;
6138 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
6140 #define _CLC2CON_LC2MODE0 0x01
6141 #define _CLC2CON_MODE0 0x01
6142 #define _CLC2CON_LC2MODE1 0x02
6143 #define _CLC2CON_MODE1 0x02
6144 #define _CLC2CON_LC2MODE2 0x04
6145 #define _CLC2CON_MODE2 0x04
6146 #define _CLC2CON_LC2INTN 0x08
6147 #define _CLC2CON_INTN 0x08
6148 #define _CLC2CON_LC2INTP 0x10
6149 #define _CLC2CON_INTP 0x10
6150 #define _CLC2CON_LC2OUT 0x20
6151 #define _CLC2CON_OUT 0x20
6152 #define _CLC2CON_LC2EN 0x80
6153 #define _CLC2CON_EN 0x80
6155 //==============================================================================
6158 //==============================================================================
6159 // CLC2POL Bits
6161 extern __at(0x0F1B) __sfr CLC2POL;
6163 typedef union
6165 struct
6167 unsigned LC2G1POL : 1;
6168 unsigned LC2G2POL : 1;
6169 unsigned LC2G3POL : 1;
6170 unsigned LC2G4POL : 1;
6171 unsigned : 1;
6172 unsigned : 1;
6173 unsigned : 1;
6174 unsigned LC2POL : 1;
6177 struct
6179 unsigned G1POL : 1;
6180 unsigned G2POL : 1;
6181 unsigned G3POL : 1;
6182 unsigned G4POL : 1;
6183 unsigned : 1;
6184 unsigned : 1;
6185 unsigned : 1;
6186 unsigned POL : 1;
6188 } __CLC2POLbits_t;
6190 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
6192 #define _CLC2POL_LC2G1POL 0x01
6193 #define _CLC2POL_G1POL 0x01
6194 #define _CLC2POL_LC2G2POL 0x02
6195 #define _CLC2POL_G2POL 0x02
6196 #define _CLC2POL_LC2G3POL 0x04
6197 #define _CLC2POL_G3POL 0x04
6198 #define _CLC2POL_LC2G4POL 0x08
6199 #define _CLC2POL_G4POL 0x08
6200 #define _CLC2POL_LC2POL 0x80
6201 #define _CLC2POL_POL 0x80
6203 //==============================================================================
6206 //==============================================================================
6207 // CLC2SEL0 Bits
6209 extern __at(0x0F1C) __sfr CLC2SEL0;
6211 typedef union
6213 struct
6215 unsigned LC2D1S0 : 1;
6216 unsigned LC2D1S1 : 1;
6217 unsigned LC2D1S2 : 1;
6218 unsigned LC2D1S3 : 1;
6219 unsigned LC2D1S4 : 1;
6220 unsigned : 1;
6221 unsigned : 1;
6222 unsigned : 1;
6225 struct
6227 unsigned D1S0 : 1;
6228 unsigned D1S1 : 1;
6229 unsigned D1S2 : 1;
6230 unsigned D1S3 : 1;
6231 unsigned D1S4 : 1;
6232 unsigned : 1;
6233 unsigned : 1;
6234 unsigned : 1;
6237 struct
6239 unsigned D1S : 5;
6240 unsigned : 3;
6243 struct
6245 unsigned LC2D1S : 5;
6246 unsigned : 3;
6248 } __CLC2SEL0bits_t;
6250 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
6252 #define _CLC2SEL0_LC2D1S0 0x01
6253 #define _CLC2SEL0_D1S0 0x01
6254 #define _CLC2SEL0_LC2D1S1 0x02
6255 #define _CLC2SEL0_D1S1 0x02
6256 #define _CLC2SEL0_LC2D1S2 0x04
6257 #define _CLC2SEL0_D1S2 0x04
6258 #define _CLC2SEL0_LC2D1S3 0x08
6259 #define _CLC2SEL0_D1S3 0x08
6260 #define _CLC2SEL0_LC2D1S4 0x10
6261 #define _CLC2SEL0_D1S4 0x10
6263 //==============================================================================
6266 //==============================================================================
6267 // CLC2SEL1 Bits
6269 extern __at(0x0F1D) __sfr CLC2SEL1;
6271 typedef union
6273 struct
6275 unsigned LC2D2S0 : 1;
6276 unsigned LC2D2S1 : 1;
6277 unsigned LC2D2S2 : 1;
6278 unsigned LC2D2S3 : 1;
6279 unsigned LC2D2S4 : 1;
6280 unsigned : 1;
6281 unsigned : 1;
6282 unsigned : 1;
6285 struct
6287 unsigned D2S0 : 1;
6288 unsigned D2S1 : 1;
6289 unsigned D2S2 : 1;
6290 unsigned D2S3 : 1;
6291 unsigned D2S4 : 1;
6292 unsigned : 1;
6293 unsigned : 1;
6294 unsigned : 1;
6297 struct
6299 unsigned D2S : 5;
6300 unsigned : 3;
6303 struct
6305 unsigned LC2D2S : 5;
6306 unsigned : 3;
6308 } __CLC2SEL1bits_t;
6310 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
6312 #define _CLC2SEL1_LC2D2S0 0x01
6313 #define _CLC2SEL1_D2S0 0x01
6314 #define _CLC2SEL1_LC2D2S1 0x02
6315 #define _CLC2SEL1_D2S1 0x02
6316 #define _CLC2SEL1_LC2D2S2 0x04
6317 #define _CLC2SEL1_D2S2 0x04
6318 #define _CLC2SEL1_LC2D2S3 0x08
6319 #define _CLC2SEL1_D2S3 0x08
6320 #define _CLC2SEL1_LC2D2S4 0x10
6321 #define _CLC2SEL1_D2S4 0x10
6323 //==============================================================================
6326 //==============================================================================
6327 // CLC2SEL2 Bits
6329 extern __at(0x0F1E) __sfr CLC2SEL2;
6331 typedef union
6333 struct
6335 unsigned LC2D3S0 : 1;
6336 unsigned LC2D3S1 : 1;
6337 unsigned LC2D3S2 : 1;
6338 unsigned LC2D3S3 : 1;
6339 unsigned LC2D3S4 : 1;
6340 unsigned : 1;
6341 unsigned : 1;
6342 unsigned : 1;
6345 struct
6347 unsigned D3S0 : 1;
6348 unsigned D3S1 : 1;
6349 unsigned D3S2 : 1;
6350 unsigned D3S3 : 1;
6351 unsigned D3S4 : 1;
6352 unsigned : 1;
6353 unsigned : 1;
6354 unsigned : 1;
6357 struct
6359 unsigned LC2D3S : 5;
6360 unsigned : 3;
6363 struct
6365 unsigned D3S : 5;
6366 unsigned : 3;
6368 } __CLC2SEL2bits_t;
6370 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
6372 #define _CLC2SEL2_LC2D3S0 0x01
6373 #define _CLC2SEL2_D3S0 0x01
6374 #define _CLC2SEL2_LC2D3S1 0x02
6375 #define _CLC2SEL2_D3S1 0x02
6376 #define _CLC2SEL2_LC2D3S2 0x04
6377 #define _CLC2SEL2_D3S2 0x04
6378 #define _CLC2SEL2_LC2D3S3 0x08
6379 #define _CLC2SEL2_D3S3 0x08
6380 #define _CLC2SEL2_LC2D3S4 0x10
6381 #define _CLC2SEL2_D3S4 0x10
6383 //==============================================================================
6386 //==============================================================================
6387 // CLC2SEL3 Bits
6389 extern __at(0x0F1F) __sfr CLC2SEL3;
6391 typedef union
6393 struct
6395 unsigned LC2D4S0 : 1;
6396 unsigned LC2D4S1 : 1;
6397 unsigned LC2D4S2 : 1;
6398 unsigned LC2D4S3 : 1;
6399 unsigned LC2D4S4 : 1;
6400 unsigned : 1;
6401 unsigned : 1;
6402 unsigned : 1;
6405 struct
6407 unsigned D4S0 : 1;
6408 unsigned D4S1 : 1;
6409 unsigned D4S2 : 1;
6410 unsigned D4S3 : 1;
6411 unsigned D4S4 : 1;
6412 unsigned : 1;
6413 unsigned : 1;
6414 unsigned : 1;
6417 struct
6419 unsigned LC2D4S : 5;
6420 unsigned : 3;
6423 struct
6425 unsigned D4S : 5;
6426 unsigned : 3;
6428 } __CLC2SEL3bits_t;
6430 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
6432 #define _CLC2SEL3_LC2D4S0 0x01
6433 #define _CLC2SEL3_D4S0 0x01
6434 #define _CLC2SEL3_LC2D4S1 0x02
6435 #define _CLC2SEL3_D4S1 0x02
6436 #define _CLC2SEL3_LC2D4S2 0x04
6437 #define _CLC2SEL3_D4S2 0x04
6438 #define _CLC2SEL3_LC2D4S3 0x08
6439 #define _CLC2SEL3_D4S3 0x08
6440 #define _CLC2SEL3_LC2D4S4 0x10
6441 #define _CLC2SEL3_D4S4 0x10
6443 //==============================================================================
6446 //==============================================================================
6447 // CLC2GLS0 Bits
6449 extern __at(0x0F20) __sfr CLC2GLS0;
6451 typedef union
6453 struct
6455 unsigned LC2G1D1N : 1;
6456 unsigned LC2G1D1T : 1;
6457 unsigned LC2G1D2N : 1;
6458 unsigned LC2G1D2T : 1;
6459 unsigned LC2G1D3N : 1;
6460 unsigned LC2G1D3T : 1;
6461 unsigned LC2G1D4N : 1;
6462 unsigned LC2G1D4T : 1;
6465 struct
6467 unsigned D1N : 1;
6468 unsigned D1T : 1;
6469 unsigned D2N : 1;
6470 unsigned D2T : 1;
6471 unsigned D3N : 1;
6472 unsigned D3T : 1;
6473 unsigned D4N : 1;
6474 unsigned D4T : 1;
6476 } __CLC2GLS0bits_t;
6478 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
6480 #define _CLC2GLS0_LC2G1D1N 0x01
6481 #define _CLC2GLS0_D1N 0x01
6482 #define _CLC2GLS0_LC2G1D1T 0x02
6483 #define _CLC2GLS0_D1T 0x02
6484 #define _CLC2GLS0_LC2G1D2N 0x04
6485 #define _CLC2GLS0_D2N 0x04
6486 #define _CLC2GLS0_LC2G1D2T 0x08
6487 #define _CLC2GLS0_D2T 0x08
6488 #define _CLC2GLS0_LC2G1D3N 0x10
6489 #define _CLC2GLS0_D3N 0x10
6490 #define _CLC2GLS0_LC2G1D3T 0x20
6491 #define _CLC2GLS0_D3T 0x20
6492 #define _CLC2GLS0_LC2G1D4N 0x40
6493 #define _CLC2GLS0_D4N 0x40
6494 #define _CLC2GLS0_LC2G1D4T 0x80
6495 #define _CLC2GLS0_D4T 0x80
6497 //==============================================================================
6500 //==============================================================================
6501 // CLC2GLS1 Bits
6503 extern __at(0x0F21) __sfr CLC2GLS1;
6505 typedef union
6507 struct
6509 unsigned LC2G2D1N : 1;
6510 unsigned LC2G2D1T : 1;
6511 unsigned LC2G2D2N : 1;
6512 unsigned LC2G2D2T : 1;
6513 unsigned LC2G2D3N : 1;
6514 unsigned LC2G2D3T : 1;
6515 unsigned LC2G2D4N : 1;
6516 unsigned LC2G2D4T : 1;
6519 struct
6521 unsigned D1N : 1;
6522 unsigned D1T : 1;
6523 unsigned D2N : 1;
6524 unsigned D2T : 1;
6525 unsigned D3N : 1;
6526 unsigned D3T : 1;
6527 unsigned D4N : 1;
6528 unsigned D4T : 1;
6530 } __CLC2GLS1bits_t;
6532 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
6534 #define _CLC2GLS1_LC2G2D1N 0x01
6535 #define _CLC2GLS1_D1N 0x01
6536 #define _CLC2GLS1_LC2G2D1T 0x02
6537 #define _CLC2GLS1_D1T 0x02
6538 #define _CLC2GLS1_LC2G2D2N 0x04
6539 #define _CLC2GLS1_D2N 0x04
6540 #define _CLC2GLS1_LC2G2D2T 0x08
6541 #define _CLC2GLS1_D2T 0x08
6542 #define _CLC2GLS1_LC2G2D3N 0x10
6543 #define _CLC2GLS1_D3N 0x10
6544 #define _CLC2GLS1_LC2G2D3T 0x20
6545 #define _CLC2GLS1_D3T 0x20
6546 #define _CLC2GLS1_LC2G2D4N 0x40
6547 #define _CLC2GLS1_D4N 0x40
6548 #define _CLC2GLS1_LC2G2D4T 0x80
6549 #define _CLC2GLS1_D4T 0x80
6551 //==============================================================================
6554 //==============================================================================
6555 // CLC2GLS2 Bits
6557 extern __at(0x0F22) __sfr CLC2GLS2;
6559 typedef union
6561 struct
6563 unsigned LC2G3D1N : 1;
6564 unsigned LC2G3D1T : 1;
6565 unsigned LC2G3D2N : 1;
6566 unsigned LC2G3D2T : 1;
6567 unsigned LC2G3D3N : 1;
6568 unsigned LC2G3D3T : 1;
6569 unsigned LC2G3D4N : 1;
6570 unsigned LC2G3D4T : 1;
6573 struct
6575 unsigned D1N : 1;
6576 unsigned D1T : 1;
6577 unsigned D2N : 1;
6578 unsigned D2T : 1;
6579 unsigned D3N : 1;
6580 unsigned D3T : 1;
6581 unsigned D4N : 1;
6582 unsigned D4T : 1;
6584 } __CLC2GLS2bits_t;
6586 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
6588 #define _CLC2GLS2_LC2G3D1N 0x01
6589 #define _CLC2GLS2_D1N 0x01
6590 #define _CLC2GLS2_LC2G3D1T 0x02
6591 #define _CLC2GLS2_D1T 0x02
6592 #define _CLC2GLS2_LC2G3D2N 0x04
6593 #define _CLC2GLS2_D2N 0x04
6594 #define _CLC2GLS2_LC2G3D2T 0x08
6595 #define _CLC2GLS2_D2T 0x08
6596 #define _CLC2GLS2_LC2G3D3N 0x10
6597 #define _CLC2GLS2_D3N 0x10
6598 #define _CLC2GLS2_LC2G3D3T 0x20
6599 #define _CLC2GLS2_D3T 0x20
6600 #define _CLC2GLS2_LC2G3D4N 0x40
6601 #define _CLC2GLS2_D4N 0x40
6602 #define _CLC2GLS2_LC2G3D4T 0x80
6603 #define _CLC2GLS2_D4T 0x80
6605 //==============================================================================
6608 //==============================================================================
6609 // CLC2GLS3 Bits
6611 extern __at(0x0F23) __sfr CLC2GLS3;
6613 typedef union
6615 struct
6617 unsigned LC2G4D1N : 1;
6618 unsigned LC2G4D1T : 1;
6619 unsigned LC2G4D2N : 1;
6620 unsigned LC2G4D2T : 1;
6621 unsigned LC2G4D3N : 1;
6622 unsigned LC2G4D3T : 1;
6623 unsigned LC2G4D4N : 1;
6624 unsigned LC2G4D4T : 1;
6627 struct
6629 unsigned G4D1N : 1;
6630 unsigned G4D1T : 1;
6631 unsigned G4D2N : 1;
6632 unsigned G4D2T : 1;
6633 unsigned G4D3N : 1;
6634 unsigned G4D3T : 1;
6635 unsigned G4D4N : 1;
6636 unsigned G4D4T : 1;
6638 } __CLC2GLS3bits_t;
6640 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
6642 #define _CLC2GLS3_LC2G4D1N 0x01
6643 #define _CLC2GLS3_G4D1N 0x01
6644 #define _CLC2GLS3_LC2G4D1T 0x02
6645 #define _CLC2GLS3_G4D1T 0x02
6646 #define _CLC2GLS3_LC2G4D2N 0x04
6647 #define _CLC2GLS3_G4D2N 0x04
6648 #define _CLC2GLS3_LC2G4D2T 0x08
6649 #define _CLC2GLS3_G4D2T 0x08
6650 #define _CLC2GLS3_LC2G4D3N 0x10
6651 #define _CLC2GLS3_G4D3N 0x10
6652 #define _CLC2GLS3_LC2G4D3T 0x20
6653 #define _CLC2GLS3_G4D3T 0x20
6654 #define _CLC2GLS3_LC2G4D4N 0x40
6655 #define _CLC2GLS3_G4D4N 0x40
6656 #define _CLC2GLS3_LC2G4D4T 0x80
6657 #define _CLC2GLS3_G4D4T 0x80
6659 //==============================================================================
6662 //==============================================================================
6663 // STATUS_SHAD Bits
6665 extern __at(0x0FE4) __sfr STATUS_SHAD;
6667 typedef struct
6669 unsigned C_SHAD : 1;
6670 unsigned DC_SHAD : 1;
6671 unsigned Z_SHAD : 1;
6672 unsigned : 1;
6673 unsigned : 1;
6674 unsigned : 1;
6675 unsigned : 1;
6676 unsigned : 1;
6677 } __STATUS_SHADbits_t;
6679 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
6681 #define _C_SHAD 0x01
6682 #define _DC_SHAD 0x02
6683 #define _Z_SHAD 0x04
6685 //==============================================================================
6687 extern __at(0x0FE5) __sfr WREG_SHAD;
6688 extern __at(0x0FE6) __sfr BSR_SHAD;
6689 extern __at(0x0FE7) __sfr PCLATH_SHAD;
6690 extern __at(0x0FE8) __sfr FSR0L_SHAD;
6691 extern __at(0x0FE9) __sfr FSR0H_SHAD;
6692 extern __at(0x0FEA) __sfr FSR1L_SHAD;
6693 extern __at(0x0FEB) __sfr FSR1H_SHAD;
6694 extern __at(0x0FED) __sfr STKPTR;
6695 extern __at(0x0FEE) __sfr TOSL;
6696 extern __at(0x0FEF) __sfr TOSH;
6698 //==============================================================================
6700 // Configuration Bits
6702 //==============================================================================
6704 #define _CONFIG1 0x8007
6705 #define _CONFIG2 0x8008
6706 #define _CONFIG3 0x8009
6707 #define _CONFIG4 0x800A
6709 //----------------------------- CONFIG1 Options -------------------------------
6711 #define _FEXTOSC_LP 0x3FF8 // LP (crystal oscillator) optimized for 32.768 kHz.
6712 #define _FEXTOSC_XT 0x3FF9 // XT (crystal oscillator) from 100 kHz to 4 MHz.
6713 #define _FEXTOSC_HS 0x3FFA // HS (crystal oscillator) above 4 MHz.
6714 #define _FEXTOSC_OFF 0x3FFC // Oscillator not enabled.
6715 #define _FEXTOSC_ECL 0x3FFD // EC (external clock) below 100 kHz.
6716 #define _FEXTOSC_ECM 0x3FFE // EC (external clock) for 100 kHz to 8 MHz.
6717 #define _FEXTOSC_ECH 0x3FFF // EC (external clock) above 8 MHz.
6718 #define _RSTOSC_HFINT32 0x3F8F // HFINTOSC with 2x PLL (32MHz).
6719 #define _RSTOSC_EXT4X 0x3F9F // EXTOSC with 4x PLL, with EXTOSC operating per FEXTOSC bits.
6720 #define _RSTOSC_SOSC 0x3FBF // SOSC (31kHz).
6721 #define _RSTOSC_LFINT 0x3FCF // LFINTOSC (31kHz).
6722 #define _RSTOSC_HFINT1 0x3FEF // HFINTOSC (1MHz).
6723 #define _RSTOSC_EXT1X 0x3FFF // EXTOSC operating per FEXTOSC bits.
6724 #define _CLKOUTEN_ON 0x3EFF // CLKOUT function is enabled; FOSC/4 clock appears at OSC2.
6725 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled; I/O or oscillator function on OSC2.
6726 #define _CSWEN_OFF 0x37FF // The NOSC and NDIV bits cannot be changed by user software.
6727 #define _CSWEN_ON 0x3FFF // Writing to NOSC and NDIV is allowed.
6728 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
6729 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
6731 //----------------------------- CONFIG2 Options -------------------------------
6733 #define _MCLRE_OFF 0x3FFE // MCLR/VPP pin function is digital input; MCLR internally disabled; Weak pull-up under control of port pin's WPU control bit.
6734 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR; Weak pull-up enabled.
6735 #define _PWRTE_ON 0x3FFD // PWRT enabled.
6736 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
6737 #define _WDTE_OFF 0x3FF3 // WDT disabled; SWDTEN is ignored.
6738 #define _WDTE_SWDTEN 0x3FF7 // WDT controlled by the SWDTEN bit in the WDTCON register.
6739 #define _WDTE_SLEEP 0x3FFB // WDT enabled while running and disabled while in SLEEP/IDLE; SWDTEN is ignored.
6740 #define _WDTE_ON 0x3FFF // WDT enabled, SWDTEN is ignored.
6741 #define _LPBOREN_ON 0x3FDF // ULPBOR enabled.
6742 #define _LPBOREN_OFF 0x3FFF // ULPBOR disabled.
6743 #define _BOREN_OFF 0x3F3F // Brown-out Reset disabled.
6744 #define _BOREN_SBOREN 0x3F7F // Brown-out Reset enabled according to SBOREN.
6745 #define _BOREN_SLEEP 0x3FBF // Brown-out Reset enabled while running, disabled in Sleep; SBOREN is ignored.
6746 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled, SBOREN bit ignored.
6747 #define _BORV_HIGH 0x3DFF // Brown-out voltage (Vbor) set to 2.7V.
6748 #define _BORV_LOW 0x3FFF // Brown-out voltage (Vbor) set to 2.45V.
6749 #define _PPS1WAY_OFF 0x37FF // The PPSLOCK bit can be set and cleared repeatedly (subject to the unlock sequence).
6750 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit can be cleared and set only once; PPS registers remain locked after one clear/set cycle.
6751 #define _STVREN_OFF 0x2FFF // Stack Overflow or Underflow will not cause a Reset.
6752 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
6753 #define _DEBUG_ON 0x1FFF // Background debugger enabled.
6754 #define _DEBUG_OFF 0x3FFF // Background debugger disabled.
6756 //----------------------------- CONFIG3 Options -------------------------------
6758 #define _WRT_ALL 0x3FFC // 0000h to 07FFh write protected, no addresses may be modified.
6759 #define _WRT_HALF 0x3FFD // 0000h to 03FFh write-protected, 0400h to 07FFh may be modified.
6760 #define _WRT_BOOT 0x3FFE // 0000h to 01FFh write-protected, 0200h to 07FFh may be modified.
6761 #define _WRT_OFF 0x3FFF // Write protection off.
6762 #define _LVP_OFF 0x1FFF // HV on MCLR/VPP must be used for programming.
6763 #define _LVP_ON 0x3FFF // Low voltage programming enabled. MCLR/VPP pin function is MCLR. MCLRE configuration bit is ignored.
6765 //----------------------------- CONFIG4 Options -------------------------------
6767 #define _CP_ON 0x3FFE // User NVM code protection enabled.
6768 #define _CP_OFF 0x3FFF // User NVM code protection disabled.
6769 #define _CPD_ON 0x3FFD // Data NVM code protection enabled.
6770 #define _CPD_OFF 0x3FFF // Data NVM code protection disabled.
6772 //==============================================================================
6774 #define _DEVID1 0x8006
6776 #define _IDLOC0 0x8000
6777 #define _IDLOC1 0x8001
6778 #define _IDLOC2 0x8002
6779 #define _IDLOC3 0x8003
6781 //==============================================================================
6783 #ifndef NO_BIT_DEFINES
6785 #define ADACT0 ADACTbits.ADACT0 // bit 0
6786 #define ADACT1 ADACTbits.ADACT1 // bit 1
6787 #define ADACT2 ADACTbits.ADACT2 // bit 2
6788 #define ADACT3 ADACTbits.ADACT3 // bit 3
6790 #define ADON ADCON0bits.ADON // bit 0
6791 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
6792 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
6793 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
6794 #define CHS0 ADCON0bits.CHS0 // bit 2
6795 #define CHS1 ADCON0bits.CHS1 // bit 3
6796 #define CHS2 ADCON0bits.CHS2 // bit 4
6797 #define CHS3 ADCON0bits.CHS3 // bit 5
6798 #define CHS4 ADCON0bits.CHS4 // bit 6
6799 #define CHS5 ADCON0bits.CHS5 // bit 7
6801 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
6802 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
6803 #define ADNREF ADCON1bits.ADNREF // bit 2
6804 #define ADCS0 ADCON1bits.ADCS0 // bit 4
6805 #define ADCS1 ADCON1bits.ADCS1 // bit 5
6806 #define ADCS2 ADCON1bits.ADCS2 // bit 6
6807 #define ADFM ADCON1bits.ADFM // bit 7
6809 #define ANSA0 ANSELAbits.ANSA0 // bit 0
6810 #define ANSA1 ANSELAbits.ANSA1 // bit 1
6811 #define ANSA2 ANSELAbits.ANSA2 // bit 2
6812 #define ANSA4 ANSELAbits.ANSA4 // bit 4
6813 #define ANSA5 ANSELAbits.ANSA5 // bit 5
6815 #define ABDEN BAUD1CONbits.ABDEN // bit 0
6816 #define WUE BAUD1CONbits.WUE // bit 1
6817 #define BRG16 BAUD1CONbits.BRG16 // bit 3
6818 #define SCKP BAUD1CONbits.SCKP // bit 4
6819 #define RCIDL BAUD1CONbits.RCIDL // bit 6
6820 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
6822 #define BORRDY BORCONbits.BORRDY // bit 0
6823 #define SBOREN BORCONbits.SBOREN // bit 7
6825 #define BSR0 BSRbits.BSR0 // bit 0
6826 #define BSR1 BSRbits.BSR1 // bit 1
6827 #define BSR2 BSRbits.BSR2 // bit 2
6828 #define BSR3 BSRbits.BSR3 // bit 3
6829 #define BSR4 BSRbits.BSR4 // bit 4
6831 #define CCDS0 CCDCONbits.CCDS0 // bit 0
6832 #define CCDS1 CCDCONbits.CCDS1 // bit 1
6833 #define CCDEN CCDCONbits.CCDEN // bit 7
6835 #define CCDNA0 CCDNAbits.CCDNA0 // bit 0
6836 #define CCDNA1 CCDNAbits.CCDNA1 // bit 1
6837 #define CCDNA2 CCDNAbits.CCDNA2 // bit 2
6838 #define CCDNA4 CCDNAbits.CCDNA4 // bit 4
6839 #define CCDNA5 CCDNAbits.CCDNA5 // bit 5
6841 #define CCDPA0 CCDPAbits.CCDPA0 // bit 0
6842 #define CCDPA1 CCDPAbits.CCDPA1 // bit 1
6843 #define CCDPA2 CCDPAbits.CCDPA2 // bit 2
6844 #define CCDPA4 CCDPAbits.CCDPA4 // bit 4
6845 #define CCDPA5 CCDPAbits.CCDPA5 // bit 5
6847 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0
6848 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1
6849 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2
6851 #define CCP1MODE0 CCP1CONbits.CCP1MODE0 // bit 0
6852 #define CCP1MODE1 CCP1CONbits.CCP1MODE1 // bit 1
6853 #define CCP1MODE2 CCP1CONbits.CCP1MODE2 // bit 2
6854 #define CCP1MODE3 CCP1CONbits.CCP1MODE3 // bit 3
6855 #define CCP1FMT CCP1CONbits.CCP1FMT // bit 4
6856 #define CCP1OUT CCP1CONbits.CCP1OUT // bit 5
6857 #define CCP1EN CCP1CONbits.CCP1EN // bit 7
6859 #define CCP1PPS0 CCP1PPSbits.CCP1PPS0 // bit 0
6860 #define CCP1PPS1 CCP1PPSbits.CCP1PPS1 // bit 1
6861 #define CCP1PPS2 CCP1PPSbits.CCP1PPS2 // bit 2
6862 #define CCP1PPS3 CCP1PPSbits.CCP1PPS3 // bit 3
6863 #define CCP1PPS4 CCP1PPSbits.CCP1PPS4 // bit 4
6865 #define CCP2CTS0 CCP2CAPbits.CCP2CTS0 // bit 0
6866 #define CCP2CTS1 CCP2CAPbits.CCP2CTS1 // bit 1
6867 #define CCP2CTS2 CCP2CAPbits.CCP2CTS2 // bit 2
6869 #define CCP2MODE0 CCP2CONbits.CCP2MODE0 // bit 0
6870 #define CCP2MODE1 CCP2CONbits.CCP2MODE1 // bit 1
6871 #define CCP2MODE2 CCP2CONbits.CCP2MODE2 // bit 2
6872 #define CCP2MODE3 CCP2CONbits.CCP2MODE3 // bit 3
6873 #define CCP2FMT CCP2CONbits.CCP2FMT // bit 4
6874 #define CCP2OUT CCP2CONbits.CCP2OUT // bit 5
6875 #define CCP2EN CCP2CONbits.CCP2EN // bit 7
6877 #define CCP2PPS0 CCP2PPSbits.CCP2PPS0 // bit 0
6878 #define CCP2PPS1 CCP2PPSbits.CCP2PPS1 // bit 1
6879 #define CCP2PPS2 CCP2PPSbits.CCP2PPS2 // bit 2
6880 #define CCP2PPS3 CCP2PPSbits.CCP2PPS3 // bit 3
6881 #define CCP2PPS4 CCP2PPSbits.CCP2PPS4 // bit 4
6883 #define C1TSEL CCPTMRSbits.C1TSEL // bit 0
6884 #define C2TSEL CCPTMRSbits.C2TSEL // bit 2
6886 #define LC1MODE0 CLC1CONbits.LC1MODE0 // bit 0, shadows bit in CLC1CONbits
6887 #define MODE0 CLC1CONbits.MODE0 // bit 0, shadows bit in CLC1CONbits
6888 #define LC1MODE1 CLC1CONbits.LC1MODE1 // bit 1, shadows bit in CLC1CONbits
6889 #define MODE1 CLC1CONbits.MODE1 // bit 1, shadows bit in CLC1CONbits
6890 #define LC1MODE2 CLC1CONbits.LC1MODE2 // bit 2, shadows bit in CLC1CONbits
6891 #define MODE2 CLC1CONbits.MODE2 // bit 2, shadows bit in CLC1CONbits
6892 #define LC1INTN CLC1CONbits.LC1INTN // bit 3, shadows bit in CLC1CONbits
6893 #define INTN CLC1CONbits.INTN // bit 3, shadows bit in CLC1CONbits
6894 #define LC1INTP CLC1CONbits.LC1INTP // bit 4, shadows bit in CLC1CONbits
6895 #define INTP CLC1CONbits.INTP // bit 4, shadows bit in CLC1CONbits
6896 #define LC1OUT CLC1CONbits.LC1OUT // bit 5, shadows bit in CLC1CONbits
6897 #define OUT CLC1CONbits.OUT // bit 5, shadows bit in CLC1CONbits
6898 #define LC1EN CLC1CONbits.LC1EN // bit 7, shadows bit in CLC1CONbits
6899 #define EN CLC1CONbits.EN // bit 7, shadows bit in CLC1CONbits
6901 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
6902 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
6903 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
6904 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
6905 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
6906 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
6907 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
6908 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
6909 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
6910 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
6911 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
6912 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
6913 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
6914 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
6915 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
6916 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
6918 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
6919 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
6920 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
6921 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
6922 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
6923 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
6924 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
6925 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
6926 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
6927 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
6928 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
6929 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
6930 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
6931 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
6932 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
6933 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
6935 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
6936 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
6937 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
6938 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
6939 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
6940 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
6941 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
6942 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
6943 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
6944 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
6946 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
6947 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
6948 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
6949 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
6950 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
6951 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
6952 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
6953 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
6954 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
6955 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
6957 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
6958 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
6959 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
6960 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
6961 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
6962 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
6963 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
6964 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
6965 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
6966 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
6968 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
6969 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
6970 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
6971 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
6972 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
6973 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
6974 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
6975 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
6976 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
6977 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
6979 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
6980 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
6981 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
6982 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
6983 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
6984 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
6985 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
6986 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
6987 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
6988 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
6990 #define MLC1OUT CLCDATAbits.MLC1OUT // bit 0
6991 #define MLC2OUT CLCDATAbits.MLC2OUT // bit 1
6993 #define CLCIN0PPS0 CLCIN0PPSbits.CLCIN0PPS0 // bit 0
6994 #define CLCIN0PPS1 CLCIN0PPSbits.CLCIN0PPS1 // bit 1
6995 #define CLCIN0PPS2 CLCIN0PPSbits.CLCIN0PPS2 // bit 2
6996 #define CLCIN0PPS3 CLCIN0PPSbits.CLCIN0PPS3 // bit 3
6997 #define CLCIN0PPS4 CLCIN0PPSbits.CLCIN0PPS4 // bit 4
6999 #define CLCIN1PPS0 CLCIN1PPSbits.CLCIN1PPS0 // bit 0
7000 #define CLCIN1PPS1 CLCIN1PPSbits.CLCIN1PPS1 // bit 1
7001 #define CLCIN1PPS2 CLCIN1PPSbits.CLCIN1PPS2 // bit 2
7002 #define CLCIN1PPS3 CLCIN1PPSbits.CLCIN1PPS3 // bit 3
7003 #define CLCIN1PPS4 CLCIN1PPSbits.CLCIN1PPS4 // bit 4
7005 #define CLCIN2PPS0 CLCIN2PPSbits.CLCIN2PPS0 // bit 0
7006 #define CLCIN2PPS1 CLCIN2PPSbits.CLCIN2PPS1 // bit 1
7007 #define CLCIN2PPS2 CLCIN2PPSbits.CLCIN2PPS2 // bit 2
7008 #define CLCIN2PPS3 CLCIN2PPSbits.CLCIN2PPS3 // bit 3
7009 #define CLCIN2PPS4 CLCIN2PPSbits.CLCIN2PPS4 // bit 4
7011 #define CLCIN3PPS0 CLCIN3PPSbits.CLCIN3PPS0 // bit 0
7012 #define CLCIN3PPS1 CLCIN3PPSbits.CLCIN3PPS1 // bit 1
7013 #define CLCIN3PPS2 CLCIN3PPSbits.CLCIN3PPS2 // bit 2
7014 #define CLCIN3PPS3 CLCIN3PPSbits.CLCIN3PPS3 // bit 3
7015 #define CLCIN3PPS4 CLCIN3PPSbits.CLCIN3PPS4 // bit 4
7017 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
7018 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
7019 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
7020 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
7021 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
7022 #define CLKREN CLKRCONbits.CLKREN // bit 7
7024 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
7025 #define C1HYS CM1CON0bits.C1HYS // bit 1
7026 #define C1SP CM1CON0bits.C1SP // bit 2
7027 #define C1POL CM1CON0bits.C1POL // bit 4
7028 #define C1OUT CM1CON0bits.C1OUT // bit 6
7029 #define C1ON CM1CON0bits.C1ON // bit 7
7031 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
7032 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
7033 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
7034 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
7035 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
7036 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
7037 #define C1INTN CM1CON1bits.C1INTN // bit 6
7038 #define C1INTP CM1CON1bits.C1INTP // bit 7
7040 #define MC1OUT CMOUTbits.MC1OUT // bit 0
7042 #define DOZE0 CPUDOZEbits.DOZE0 // bit 0
7043 #define DOZE1 CPUDOZEbits.DOZE1 // bit 1
7044 #define DOZE2 CPUDOZEbits.DOZE2 // bit 2
7045 #define DOE CPUDOZEbits.DOE // bit 4
7046 #define ROI CPUDOZEbits.ROI // bit 5
7047 #define DOZEN CPUDOZEbits.DOZEN // bit 6
7048 #define IDLEN CPUDOZEbits.IDLEN // bit 7
7050 #define LSAC0 CWG1AS0bits.LSAC0 // bit 2, shadows bit in CWG1AS0bits
7051 #define CWG1LSAC0 CWG1AS0bits.CWG1LSAC0 // bit 2, shadows bit in CWG1AS0bits
7052 #define LSAC1 CWG1AS0bits.LSAC1 // bit 3, shadows bit in CWG1AS0bits
7053 #define CWG1LSAC1 CWG1AS0bits.CWG1LSAC1 // bit 3, shadows bit in CWG1AS0bits
7054 #define LSBD0 CWG1AS0bits.LSBD0 // bit 4, shadows bit in CWG1AS0bits
7055 #define CWG1LSBD0 CWG1AS0bits.CWG1LSBD0 // bit 4, shadows bit in CWG1AS0bits
7056 #define LSBD1 CWG1AS0bits.LSBD1 // bit 5, shadows bit in CWG1AS0bits
7057 #define CWG1LSBD1 CWG1AS0bits.CWG1LSBD1 // bit 5, shadows bit in CWG1AS0bits
7058 #define REN CWG1AS0bits.REN // bit 6, shadows bit in CWG1AS0bits
7059 #define CWG1REN CWG1AS0bits.CWG1REN // bit 6, shadows bit in CWG1AS0bits
7060 #define SHUTDOWN CWG1AS0bits.SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
7061 #define CWG1SHUTDOWN CWG1AS0bits.CWG1SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
7063 #define AS0E CWG1AS1bits.AS0E // bit 0
7064 #define AS1E CWG1AS1bits.AS1E // bit 1
7065 #define AS3E CWG1AS1bits.AS3E // bit 3
7067 #define CS CWG1CLKCONbits.CS // bit 0, shadows bit in CWG1CLKCONbits
7068 #define CWG1CS CWG1CLKCONbits.CWG1CS // bit 0, shadows bit in CWG1CLKCONbits
7070 #define POLA CWG1CON1bits.POLA // bit 0, shadows bit in CWG1CON1bits
7071 #define CWG1POLA CWG1CON1bits.CWG1POLA // bit 0, shadows bit in CWG1CON1bits
7072 #define POLB CWG1CON1bits.POLB // bit 1, shadows bit in CWG1CON1bits
7073 #define CWG1POLB CWG1CON1bits.CWG1POLB // bit 1, shadows bit in CWG1CON1bits
7074 #define POLC CWG1CON1bits.POLC // bit 2, shadows bit in CWG1CON1bits
7075 #define CWG1POLC CWG1CON1bits.CWG1POLC // bit 2, shadows bit in CWG1CON1bits
7076 #define POLD CWG1CON1bits.POLD // bit 3, shadows bit in CWG1CON1bits
7077 #define CWG1POLD CWG1CON1bits.CWG1POLD // bit 3, shadows bit in CWG1CON1bits
7078 #define IN CWG1CON1bits.IN // bit 5, shadows bit in CWG1CON1bits
7079 #define CWG1IN CWG1CON1bits.CWG1IN // bit 5, shadows bit in CWG1CON1bits
7081 #define CWG1DAT0 CWG1DATbits.CWG1DAT0 // bit 0
7082 #define CWG1DAT1 CWG1DATbits.CWG1DAT1 // bit 1
7083 #define CWG1DAT2 CWG1DATbits.CWG1DAT2 // bit 2
7084 #define CWG1DAT3 CWG1DATbits.CWG1DAT3 // bit 3
7086 #define DBF0 CWG1DBFbits.DBF0 // bit 0, shadows bit in CWG1DBFbits
7087 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0, shadows bit in CWG1DBFbits
7088 #define DBF1 CWG1DBFbits.DBF1 // bit 1, shadows bit in CWG1DBFbits
7089 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1, shadows bit in CWG1DBFbits
7090 #define DBF2 CWG1DBFbits.DBF2 // bit 2, shadows bit in CWG1DBFbits
7091 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2, shadows bit in CWG1DBFbits
7092 #define DBF3 CWG1DBFbits.DBF3 // bit 3, shadows bit in CWG1DBFbits
7093 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3, shadows bit in CWG1DBFbits
7094 #define DBF4 CWG1DBFbits.DBF4 // bit 4, shadows bit in CWG1DBFbits
7095 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4, shadows bit in CWG1DBFbits
7096 #define DBF5 CWG1DBFbits.DBF5 // bit 5, shadows bit in CWG1DBFbits
7097 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5, shadows bit in CWG1DBFbits
7099 #define DBR0 CWG1DBRbits.DBR0 // bit 0, shadows bit in CWG1DBRbits
7100 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0, shadows bit in CWG1DBRbits
7101 #define DBR1 CWG1DBRbits.DBR1 // bit 1, shadows bit in CWG1DBRbits
7102 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1, shadows bit in CWG1DBRbits
7103 #define DBR2 CWG1DBRbits.DBR2 // bit 2, shadows bit in CWG1DBRbits
7104 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2, shadows bit in CWG1DBRbits
7105 #define DBR3 CWG1DBRbits.DBR3 // bit 3, shadows bit in CWG1DBRbits
7106 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3, shadows bit in CWG1DBRbits
7107 #define DBR4 CWG1DBRbits.DBR4 // bit 4, shadows bit in CWG1DBRbits
7108 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4, shadows bit in CWG1DBRbits
7109 #define DBR5 CWG1DBRbits.DBR5 // bit 5, shadows bit in CWG1DBRbits
7110 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5, shadows bit in CWG1DBRbits
7112 #define CWG1PPS0 CWG1PPSbits.CWG1PPS0 // bit 0
7113 #define CWG1PPS1 CWG1PPSbits.CWG1PPS1 // bit 1
7114 #define CWG1PPS2 CWG1PPSbits.CWG1PPS2 // bit 2
7115 #define CWG1PPS3 CWG1PPSbits.CWG1PPS3 // bit 3
7116 #define CWG1PPS4 CWG1PPSbits.CWG1PPS4 // bit 4
7118 #define STRA CWG1STRbits.STRA // bit 0, shadows bit in CWG1STRbits
7119 #define CWG1STRA CWG1STRbits.CWG1STRA // bit 0, shadows bit in CWG1STRbits
7120 #define STRB CWG1STRbits.STRB // bit 1, shadows bit in CWG1STRbits
7121 #define CWG1STRB CWG1STRbits.CWG1STRB // bit 1, shadows bit in CWG1STRbits
7122 #define STRC CWG1STRbits.STRC // bit 2, shadows bit in CWG1STRbits
7123 #define CWG1STRC CWG1STRbits.CWG1STRC // bit 2, shadows bit in CWG1STRbits
7124 #define STRD CWG1STRbits.STRD // bit 3, shadows bit in CWG1STRbits
7125 #define CWG1STRD CWG1STRbits.CWG1STRD // bit 3, shadows bit in CWG1STRbits
7126 #define OVRA CWG1STRbits.OVRA // bit 4, shadows bit in CWG1STRbits
7127 #define CWG1OVRA CWG1STRbits.CWG1OVRA // bit 4, shadows bit in CWG1STRbits
7128 #define OVRB CWG1STRbits.OVRB // bit 5, shadows bit in CWG1STRbits
7129 #define CWG1OVRB CWG1STRbits.CWG1OVRB // bit 5, shadows bit in CWG1STRbits
7130 #define OVRC CWG1STRbits.OVRC // bit 6, shadows bit in CWG1STRbits
7131 #define CWG1OVRC CWG1STRbits.CWG1OVRC // bit 6, shadows bit in CWG1STRbits
7132 #define OVRD CWG1STRbits.OVRD // bit 7, shadows bit in CWG1STRbits
7133 #define CWG1OVRD CWG1STRbits.CWG1OVRD // bit 7, shadows bit in CWG1STRbits
7135 #define DAC1NSS DACCON0bits.DAC1NSS // bit 0
7136 #define DAC1PSS0 DACCON0bits.DAC1PSS0 // bit 2
7137 #define DAC1PSS1 DACCON0bits.DAC1PSS1 // bit 3
7138 #define DAC1OE DACCON0bits.DAC1OE // bit 5
7139 #define DAC1EN DACCON0bits.DAC1EN // bit 7
7141 #define DAC1R0 DACCON1bits.DAC1R0 // bit 0
7142 #define DAC1R1 DACCON1bits.DAC1R1 // bit 1
7143 #define DAC1R2 DACCON1bits.DAC1R2 // bit 2
7144 #define DAC1R3 DACCON1bits.DAC1R3 // bit 3
7145 #define DAC1R4 DACCON1bits.DAC1R4 // bit 4
7147 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
7148 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
7149 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
7150 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
7151 #define TSRNG FVRCONbits.TSRNG // bit 4
7152 #define TSEN FVRCONbits.TSEN // bit 5
7153 #define FVRRDY FVRCONbits.FVRRDY // bit 6
7154 #define FVREN FVRCONbits.FVREN // bit 7
7156 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
7157 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
7158 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
7159 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
7160 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
7161 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
7163 #define INTEDG INTCONbits.INTEDG // bit 0
7164 #define PEIE INTCONbits.PEIE // bit 6
7165 #define GIE INTCONbits.GIE // bit 7
7167 #define INTPPS0 INTPPSbits.INTPPS0 // bit 0
7168 #define INTPPS1 INTPPSbits.INTPPS1 // bit 1
7169 #define INTPPS2 INTPPSbits.INTPPS2 // bit 2
7170 #define INTPPS3 INTPPSbits.INTPPS3 // bit 3
7171 #define INTPPS4 INTPPSbits.INTPPS4 // bit 4
7173 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
7174 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
7175 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
7176 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
7177 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
7178 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
7180 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
7181 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
7182 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
7183 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
7184 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
7185 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
7187 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
7188 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
7189 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
7190 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
7191 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
7192 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
7194 #define LATA0 LATAbits.LATA0 // bit 0
7195 #define LATA1 LATAbits.LATA1 // bit 1
7196 #define LATA2 LATAbits.LATA2 // bit 2
7197 #define LATA4 LATAbits.LATA4 // bit 4
7198 #define LATA5 LATAbits.LATA5 // bit 5
7200 #define MDCH0 MDCARHbits.MDCH0 // bit 0
7201 #define MDCH1 MDCARHbits.MDCH1 // bit 1
7202 #define MDCH2 MDCARHbits.MDCH2 // bit 2
7203 #define MDCH3 MDCARHbits.MDCH3 // bit 3
7204 #define MDCHSYNC MDCARHbits.MDCHSYNC // bit 5
7205 #define MDCHPOL MDCARHbits.MDCHPOL // bit 6
7207 #define MDCL0 MDCARLbits.MDCL0 // bit 0
7208 #define MDCL1 MDCARLbits.MDCL1 // bit 1
7209 #define MDCL2 MDCARLbits.MDCL2 // bit 2
7210 #define MDCL3 MDCARLbits.MDCL3 // bit 3
7211 #define MDCLSYNC MDCARLbits.MDCLSYNC // bit 5
7212 #define MDCLPOL MDCARLbits.MDCLPOL // bit 6
7214 #define MDCIN1PPS0 MDCIN1PPSbits.MDCIN1PPS0 // bit 0
7215 #define MDCIN1PPS1 MDCIN1PPSbits.MDCIN1PPS1 // bit 1
7216 #define MDCIN1PPS2 MDCIN1PPSbits.MDCIN1PPS2 // bit 2
7217 #define MDCIN1PPS3 MDCIN1PPSbits.MDCIN1PPS3 // bit 3
7218 #define MDCIN1PPS4 MDCIN1PPSbits.MDCIN1PPS4 // bit 4
7220 #define MDCIN2PPS0 MDCIN2PPSbits.MDCIN2PPS0 // bit 0
7221 #define MDCIN2PPS1 MDCIN2PPSbits.MDCIN2PPS1 // bit 1
7222 #define MDCIN2PPS2 MDCIN2PPSbits.MDCIN2PPS2 // bit 2
7223 #define MDCIN2PPS3 MDCIN2PPSbits.MDCIN2PPS3 // bit 3
7224 #define MDCIN2PPS4 MDCIN2PPSbits.MDCIN2PPS4 // bit 4
7226 #define MDBIT MDCONbits.MDBIT // bit 0
7227 #define MDOUT MDCONbits.MDOUT // bit 3
7228 #define MDOPOL MDCONbits.MDOPOL // bit 4
7229 #define MDEN MDCONbits.MDEN // bit 7
7231 #define MDMINPPS0 MDMINPPSbits.MDMINPPS0 // bit 0
7232 #define MDMINPPS1 MDMINPPSbits.MDMINPPS1 // bit 1
7233 #define MDMINPPS2 MDMINPPSbits.MDMINPPS2 // bit 2
7234 #define MDMINPPS3 MDMINPPSbits.MDMINPPS3 // bit 3
7235 #define MDMINPPS4 MDMINPPSbits.MDMINPPS4 // bit 4
7237 #define MDMS0 MDSRCbits.MDMS0 // bit 0
7238 #define MDMS1 MDSRCbits.MDMS1 // bit 1
7239 #define MDMS2 MDSRCbits.MDMS2 // bit 2
7240 #define MDMS3 MDSRCbits.MDMS3 // bit 3
7242 #define N1PFM NCO1CONbits.N1PFM // bit 0
7243 #define N1POL NCO1CONbits.N1POL // bit 4
7244 #define N1OUT NCO1CONbits.N1OUT // bit 5
7245 #define N1EN NCO1CONbits.N1EN // bit 7
7247 #define NVMADR8 NVMADRHbits.NVMADR8 // bit 0
7248 #define NVMADR9 NVMADRHbits.NVMADR9 // bit 1
7249 #define NVMADR10 NVMADRHbits.NVMADR10 // bit 2
7250 #define NVMADR11 NVMADRHbits.NVMADR11 // bit 3
7251 #define NVMADR12 NVMADRHbits.NVMADR12 // bit 4
7252 #define NVMADR13 NVMADRHbits.NVMADR13 // bit 5
7253 #define NVMADR14 NVMADRHbits.NVMADR14 // bit 6
7255 #define NVMADR0 NVMADRLbits.NVMADR0 // bit 0
7256 #define NVMADR1 NVMADRLbits.NVMADR1 // bit 1
7257 #define NVMADR2 NVMADRLbits.NVMADR2 // bit 2
7258 #define NVMADR3 NVMADRLbits.NVMADR3 // bit 3
7259 #define NVMADR4 NVMADRLbits.NVMADR4 // bit 4
7260 #define NVMADR5 NVMADRLbits.NVMADR5 // bit 5
7261 #define NVMADR6 NVMADRLbits.NVMADR6 // bit 6
7262 #define NVMADR7 NVMADRLbits.NVMADR7 // bit 7
7264 #define RD NVMCON1bits.RD // bit 0
7265 #define WR NVMCON1bits.WR // bit 1
7266 #define WREN NVMCON1bits.WREN // bit 2
7267 #define WRERR NVMCON1bits.WRERR // bit 3
7268 #define FREE NVMCON1bits.FREE // bit 4
7269 #define LWLO NVMCON1bits.LWLO // bit 5
7270 #define NVMREGS NVMCON1bits.NVMREGS // bit 6
7272 #define NVMDAT8 NVMDATHbits.NVMDAT8 // bit 0
7273 #define NVMDAT9 NVMDATHbits.NVMDAT9 // bit 1
7274 #define NVMDAT10 NVMDATHbits.NVMDAT10 // bit 2
7275 #define NVMDAT11 NVMDATHbits.NVMDAT11 // bit 3
7276 #define NVMDAT12 NVMDATHbits.NVMDAT12 // bit 4
7277 #define NVMDAT13 NVMDATHbits.NVMDAT13 // bit 5
7279 #define NVMDAT0 NVMDATLbits.NVMDAT0 // bit 0
7280 #define NVMDAT1 NVMDATLbits.NVMDAT1 // bit 1
7281 #define NVMDAT2 NVMDATLbits.NVMDAT2 // bit 2
7282 #define NVMDAT3 NVMDATLbits.NVMDAT3 // bit 3
7283 #define NVMDAT4 NVMDATLbits.NVMDAT4 // bit 4
7284 #define NVMDAT5 NVMDATLbits.NVMDAT5 // bit 5
7285 #define NVMDAT6 NVMDATLbits.NVMDAT6 // bit 6
7286 #define NVMDAT7 NVMDATLbits.NVMDAT7 // bit 7
7288 #define ODCA0 ODCONAbits.ODCA0 // bit 0
7289 #define ODCA1 ODCONAbits.ODCA1 // bit 1
7290 #define ODCA2 ODCONAbits.ODCA2 // bit 2
7291 #define ODCA4 ODCONAbits.ODCA4 // bit 4
7292 #define ODCA5 ODCONAbits.ODCA5 // bit 5
7294 #define NDIV0 OSCCON1bits.NDIV0 // bit 0
7295 #define NDIV1 OSCCON1bits.NDIV1 // bit 1
7296 #define NDIV2 OSCCON1bits.NDIV2 // bit 2
7297 #define NDIV3 OSCCON1bits.NDIV3 // bit 3
7298 #define NOSC0 OSCCON1bits.NOSC0 // bit 4
7299 #define NOSC1 OSCCON1bits.NOSC1 // bit 5
7300 #define NOSC2 OSCCON1bits.NOSC2 // bit 6
7302 #define CDIV0 OSCCON2bits.CDIV0 // bit 0
7303 #define CDIV1 OSCCON2bits.CDIV1 // bit 1
7304 #define CDIV2 OSCCON2bits.CDIV2 // bit 2
7305 #define CDIV3 OSCCON2bits.CDIV3 // bit 3
7306 #define COSC0 OSCCON2bits.COSC0 // bit 4
7307 #define COSC1 OSCCON2bits.COSC1 // bit 5
7308 #define COSC2 OSCCON2bits.COSC2 // bit 6
7310 #define NOSCR OSCCON3bits.NOSCR // bit 3
7311 #define ORDY OSCCON3bits.ORDY // bit 4
7312 #define SOSCBE OSCCON3bits.SOSCBE // bit 5
7313 #define SOSCPWR OSCCON3bits.SOSCPWR // bit 6
7314 #define CSWHOLD OSCCON3bits.CSWHOLD // bit 7
7316 #define ADOEN OSCENbits.ADOEN // bit 2
7317 #define SOSCEN OSCENbits.SOSCEN // bit 3
7318 #define LFOEN OSCENbits.LFOEN // bit 4
7319 #define HFOEN OSCENbits.HFOEN // bit 6
7320 #define EXTOEN OSCENbits.EXTOEN // bit 7
7322 #define HFFRQ0 OSCFRQbits.HFFRQ0 // bit 0
7323 #define HFFRQ1 OSCFRQbits.HFFRQ1 // bit 1
7324 #define HFFRQ2 OSCFRQbits.HFFRQ2 // bit 2
7325 #define HFFRQ3 OSCFRQbits.HFFRQ3 // bit 3
7327 #define PLLR OSCSTAT1bits.PLLR // bit 0
7328 #define ADOR OSCSTAT1bits.ADOR // bit 2
7329 #define SOR OSCSTAT1bits.SOR // bit 3
7330 #define LFOR OSCSTAT1bits.LFOR // bit 4
7331 #define HFOR OSCSTAT1bits.HFOR // bit 6
7332 #define EXTOR OSCSTAT1bits.EXTOR // bit 7
7334 #define HFTUN0 OSCTUNEbits.HFTUN0 // bit 0
7335 #define HFTUN1 OSCTUNEbits.HFTUN1 // bit 1
7336 #define HFTUN2 OSCTUNEbits.HFTUN2 // bit 2
7337 #define HFTUN3 OSCTUNEbits.HFTUN3 // bit 3
7338 #define HFTUN4 OSCTUNEbits.HFTUN4 // bit 4
7339 #define HFTUN5 OSCTUNEbits.HFTUN5 // bit 5
7341 #define NOT_BOR PCON0bits.NOT_BOR // bit 0
7342 #define NOT_POR PCON0bits.NOT_POR // bit 1
7343 #define NOT_RI PCON0bits.NOT_RI // bit 2
7344 #define NOT_RMCLR PCON0bits.NOT_RMCLR // bit 3
7345 #define NOT_RWDT PCON0bits.NOT_RWDT // bit 4
7346 #define STKUNF PCON0bits.STKUNF // bit 6
7347 #define STKOVF PCON0bits.STKOVF // bit 7
7349 #define INTE PIE0bits.INTE // bit 0
7350 #define IOCIE PIE0bits.IOCIE // bit 4
7351 #define TMR0IE PIE0bits.TMR0IE // bit 5
7353 #define TMR1IE PIE1bits.TMR1IE // bit 0
7354 #define TMR2IE PIE1bits.TMR2IE // bit 1
7355 #define BCL1IE PIE1bits.BCL1IE // bit 2
7356 #define SSP1IE PIE1bits.SSP1IE // bit 3
7357 #define TXIE PIE1bits.TXIE // bit 4
7358 #define RCIE PIE1bits.RCIE // bit 5
7359 #define ADIE PIE1bits.ADIE // bit 6
7360 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
7362 #define NCO1IE PIE2bits.NCO1IE // bit 0
7363 #define NVMIE PIE2bits.NVMIE // bit 4
7364 #define C1IE PIE2bits.C1IE // bit 5
7366 #define CLC1IE PIE3bits.CLC1IE // bit 0
7367 #define CLC2IE PIE3bits.CLC2IE // bit 1
7368 #define CSWIE PIE3bits.CSWIE // bit 6
7369 #define OSFIE PIE3bits.OSFIE // bit 7
7371 #define CCP1IE PIE4bits.CCP1IE // bit 0
7372 #define CCP2IE PIE4bits.CCP2IE // bit 1
7373 #define CWG1IE PIE4bits.CWG1IE // bit 6
7375 #define INTF PIR0bits.INTF // bit 0
7376 #define IOCIF PIR0bits.IOCIF // bit 4
7377 #define TMR0IF PIR0bits.TMR0IF // bit 5
7379 #define TMR1IF PIR1bits.TMR1IF // bit 0
7380 #define TMR2IF PIR1bits.TMR2IF // bit 1
7381 #define BCL1IF PIR1bits.BCL1IF // bit 2
7382 #define SSP1IF PIR1bits.SSP1IF // bit 3
7383 #define TXIF PIR1bits.TXIF // bit 4
7384 #define RCIF PIR1bits.RCIF // bit 5
7385 #define ADIF PIR1bits.ADIF // bit 6
7386 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
7388 #define NCO1IF PIR2bits.NCO1IF // bit 0
7389 #define NVMIF PIR2bits.NVMIF // bit 4
7390 #define C1IF PIR2bits.C1IF // bit 5
7392 #define CLC1IF PIR3bits.CLC1IF // bit 0
7393 #define CLC2IF PIR3bits.CLC2IF // bit 1
7394 #define CSWIF PIR3bits.CSWIF // bit 6
7395 #define OSFIF PIR3bits.OSFIF // bit 7
7397 #define CCP1IF PIR4bits.CCP1IF // bit 0
7398 #define CCP2IF PIR4bits.CCP2IF // bit 1
7399 #define CWG1IF PIR4bits.CWG1IF // bit 6
7401 #define IOCMD PMD0bits.IOCMD // bit 0
7402 #define CLKRMD PMD0bits.CLKRMD // bit 1
7403 #define NVMMD PMD0bits.NVMMD // bit 2
7404 #define FVRMD PMD0bits.FVRMD // bit 6
7405 #define SYSCMD PMD0bits.SYSCMD // bit 7
7407 #define TMR0MD PMD1bits.TMR0MD // bit 0
7408 #define TMR1MD PMD1bits.TMR1MD // bit 1
7409 #define TMR2MD PMD1bits.TMR2MD // bit 2
7410 #define NCOMD PMD1bits.NCOMD // bit 7
7412 #define CMP1MD PMD2bits.CMP1MD // bit 1
7413 #define ADCMD PMD2bits.ADCMD // bit 5
7414 #define DACMD PMD2bits.DACMD // bit 6
7416 #define CCP1MD PMD3bits.CCP1MD // bit 0
7417 #define CCP2MD PMD3bits.CCP2MD // bit 1
7418 #define PWM5MD PMD3bits.PWM5MD // bit 4
7419 #define PWM6MD PMD3bits.PWM6MD // bit 5
7420 #define CWG1MD PMD3bits.CWG1MD // bit 6
7422 #define MSSP1MD PMD4bits.MSSP1MD // bit 1
7423 #define UART1MD PMD4bits.UART1MD // bit 5
7425 #define DSMMD PMD5bits.DSMMD // bit 0
7426 #define CLC1MD PMD5bits.CLC1MD // bit 1
7427 #define CLC2MD PMD5bits.CLC2MD // bit 2
7429 #define RA0 PORTAbits.RA0 // bit 0
7430 #define RA1 PORTAbits.RA1 // bit 1
7431 #define RA2 PORTAbits.RA2 // bit 2
7432 #define RA3 PORTAbits.RA3 // bit 3
7433 #define RA4 PORTAbits.RA4 // bit 4
7434 #define RA5 PORTAbits.RA5 // bit 5
7436 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
7438 #define PWM5POL PWM5CONbits.PWM5POL // bit 4
7439 #define PWM5OUT PWM5CONbits.PWM5OUT // bit 5
7440 #define PWM5EN PWM5CONbits.PWM5EN // bit 7
7442 #define PWM5DCH0 PWM5DCHbits.PWM5DCH0 // bit 0
7443 #define PWM5DCH1 PWM5DCHbits.PWM5DCH1 // bit 1
7444 #define PWM5DCH2 PWM5DCHbits.PWM5DCH2 // bit 2
7445 #define PWM5DCH3 PWM5DCHbits.PWM5DCH3 // bit 3
7446 #define PWM5DCH4 PWM5DCHbits.PWM5DCH4 // bit 4
7447 #define PWM5DCH5 PWM5DCHbits.PWM5DCH5 // bit 5
7448 #define PWM5DCH6 PWM5DCHbits.PWM5DCH6 // bit 6
7449 #define PWM5DCH7 PWM5DCHbits.PWM5DCH7 // bit 7
7451 #define PWM5DCL0 PWM5DCLbits.PWM5DCL0 // bit 6
7452 #define PWM5DCL1 PWM5DCLbits.PWM5DCL1 // bit 7
7454 #define PWM6POL PWM6CONbits.PWM6POL // bit 4
7455 #define PWM6OUT PWM6CONbits.PWM6OUT // bit 5
7456 #define PWM6EN PWM6CONbits.PWM6EN // bit 7
7458 #define PWM6DCH0 PWM6DCHbits.PWM6DCH0 // bit 0
7459 #define PWM6DCH1 PWM6DCHbits.PWM6DCH1 // bit 1
7460 #define PWM6DCH2 PWM6DCHbits.PWM6DCH2 // bit 2
7461 #define PWM6DCH3 PWM6DCHbits.PWM6DCH3 // bit 3
7462 #define PWM6DCH4 PWM6DCHbits.PWM6DCH4 // bit 4
7463 #define PWM6DCH5 PWM6DCHbits.PWM6DCH5 // bit 5
7464 #define PWM6DCH6 PWM6DCHbits.PWM6DCH6 // bit 6
7465 #define PWM6DCH7 PWM6DCHbits.PWM6DCH7 // bit 7
7467 #define PWM6DCL0 PWM6DCLbits.PWM6DCL0 // bit 6
7468 #define PWM6DCL1 PWM6DCLbits.PWM6DCL1 // bit 7
7470 #define RA0PPS0 RA0PPSbits.RA0PPS0 // bit 0
7471 #define RA0PPS1 RA0PPSbits.RA0PPS1 // bit 1
7472 #define RA0PPS2 RA0PPSbits.RA0PPS2 // bit 2
7473 #define RA0PPS3 RA0PPSbits.RA0PPS3 // bit 3
7474 #define RA0PPS4 RA0PPSbits.RA0PPS4 // bit 4
7476 #define RA1PPS0 RA1PPSbits.RA1PPS0 // bit 0
7477 #define RA1PPS1 RA1PPSbits.RA1PPS1 // bit 1
7478 #define RA1PPS2 RA1PPSbits.RA1PPS2 // bit 2
7479 #define RA1PPS3 RA1PPSbits.RA1PPS3 // bit 3
7480 #define RA1PPS4 RA1PPSbits.RA1PPS4 // bit 4
7482 #define RA2PPS0 RA2PPSbits.RA2PPS0 // bit 0
7483 #define RA2PPS1 RA2PPSbits.RA2PPS1 // bit 1
7484 #define RA2PPS2 RA2PPSbits.RA2PPS2 // bit 2
7485 #define RA2PPS3 RA2PPSbits.RA2PPS3 // bit 3
7486 #define RA2PPS4 RA2PPSbits.RA2PPS4 // bit 4
7488 #define RA4PPS0 RA4PPSbits.RA4PPS0 // bit 0
7489 #define RA4PPS1 RA4PPSbits.RA4PPS1 // bit 1
7490 #define RA4PPS2 RA4PPSbits.RA4PPS2 // bit 2
7491 #define RA4PPS3 RA4PPSbits.RA4PPS3 // bit 3
7492 #define RA4PPS4 RA4PPSbits.RA4PPS4 // bit 4
7494 #define RA5PPS0 RA5PPSbits.RA5PPS0 // bit 0
7495 #define RA5PPS1 RA5PPSbits.RA5PPS1 // bit 1
7496 #define RA5PPS2 RA5PPSbits.RA5PPS2 // bit 2
7497 #define RA5PPS3 RA5PPSbits.RA5PPS3 // bit 3
7498 #define RA5PPS4 RA5PPSbits.RA5PPS4 // bit 4
7500 #define RX9D RC1STAbits.RX9D // bit 0
7501 #define OERR RC1STAbits.OERR // bit 1
7502 #define FERR RC1STAbits.FERR // bit 2
7503 #define ADDEN RC1STAbits.ADDEN // bit 3
7504 #define CREN RC1STAbits.CREN // bit 4
7505 #define SREN RC1STAbits.SREN // bit 5
7506 #define RX9 RC1STAbits.RX9 // bit 6
7507 #define SPEN RC1STAbits.SPEN // bit 7
7509 #define RXPPS0 RXPPSbits.RXPPS0 // bit 0
7510 #define RXPPS1 RXPPSbits.RXPPS1 // bit 1
7511 #define RXPPS2 RXPPSbits.RXPPS2 // bit 2
7512 #define RXPPS3 RXPPSbits.RXPPS3 // bit 3
7513 #define RXPPS4 RXPPSbits.RXPPS4 // bit 4
7515 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
7516 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
7517 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
7518 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
7519 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
7521 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
7522 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
7523 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
7524 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
7525 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
7526 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
7527 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
7528 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
7529 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
7530 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
7531 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
7532 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
7533 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
7534 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
7535 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
7536 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
7538 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
7539 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
7540 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
7541 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
7542 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
7543 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
7544 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
7545 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
7546 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
7547 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
7548 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
7549 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
7550 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
7551 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
7552 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
7553 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
7555 #define SSP1CLKPPS0 SSP1CLKPPSbits.SSP1CLKPPS0 // bit 0
7556 #define SSP1CLKPPS1 SSP1CLKPPSbits.SSP1CLKPPS1 // bit 1
7557 #define SSP1CLKPPS2 SSP1CLKPPSbits.SSP1CLKPPS2 // bit 2
7558 #define SSP1CLKPPS3 SSP1CLKPPSbits.SSP1CLKPPS3 // bit 3
7559 #define SSP1CLKPPS4 SSP1CLKPPSbits.SSP1CLKPPS4 // bit 4
7561 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
7562 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
7563 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
7564 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
7565 #define CKP SSP1CONbits.CKP // bit 4
7566 #define SSPEN SSP1CONbits.SSPEN // bit 5
7567 #define SSPOV SSP1CONbits.SSPOV // bit 6
7568 #define WCOL SSP1CONbits.WCOL // bit 7
7570 #define SEN SSP1CON2bits.SEN // bit 0
7571 #define RSEN SSP1CON2bits.RSEN // bit 1
7572 #define PEN SSP1CON2bits.PEN // bit 2
7573 #define RCEN SSP1CON2bits.RCEN // bit 3
7574 #define ACKEN SSP1CON2bits.ACKEN // bit 4
7575 #define ACKDT SSP1CON2bits.ACKDT // bit 5
7576 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
7577 #define GCEN SSP1CON2bits.GCEN // bit 7
7579 #define DHEN SSP1CON3bits.DHEN // bit 0
7580 #define AHEN SSP1CON3bits.AHEN // bit 1
7581 #define SBCDE SSP1CON3bits.SBCDE // bit 2
7582 #define SDAHT SSP1CON3bits.SDAHT // bit 3
7583 #define BOEN SSP1CON3bits.BOEN // bit 4
7584 #define SCIE SSP1CON3bits.SCIE // bit 5
7585 #define PCIE SSP1CON3bits.PCIE // bit 6
7586 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
7588 #define SSP1DATPPS0 SSP1DATPPSbits.SSP1DATPPS0 // bit 0
7589 #define SSP1DATPPS1 SSP1DATPPSbits.SSP1DATPPS1 // bit 1
7590 #define SSP1DATPPS2 SSP1DATPPSbits.SSP1DATPPS2 // bit 2
7591 #define SSP1DATPPS3 SSP1DATPPSbits.SSP1DATPPS3 // bit 3
7592 #define SSP1DATPPS4 SSP1DATPPSbits.SSP1DATPPS4 // bit 4
7594 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
7595 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
7596 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
7597 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
7598 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
7599 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
7600 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
7601 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
7602 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
7603 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
7604 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
7605 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
7606 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
7607 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
7608 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
7609 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
7611 #define SSP1SSPPS0 SSP1SSPPSbits.SSP1SSPPS0 // bit 0
7612 #define SSP1SSPPS1 SSP1SSPPSbits.SSP1SSPPS1 // bit 1
7613 #define SSP1SSPPS2 SSP1SSPPSbits.SSP1SSPPS2 // bit 2
7614 #define SSP1SSPPS3 SSP1SSPPSbits.SSP1SSPPS3 // bit 3
7615 #define SSP1SSPPS4 SSP1SSPPSbits.SSP1SSPPS4 // bit 4
7617 #define BF SSP1STATbits.BF // bit 0
7618 #define UA SSP1STATbits.UA // bit 1
7619 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
7620 #define S SSP1STATbits.S // bit 3
7621 #define P SSP1STATbits.P // bit 4
7622 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
7623 #define CKE SSP1STATbits.CKE // bit 6
7624 #define SMP SSP1STATbits.SMP // bit 7
7626 #define C STATUSbits.C // bit 0
7627 #define DC STATUSbits.DC // bit 1
7628 #define Z STATUSbits.Z // bit 2
7629 #define NOT_PD STATUSbits.NOT_PD // bit 3
7630 #define NOT_TO STATUSbits.NOT_TO // bit 4
7632 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
7633 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
7634 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
7636 #define T0CKIPPS0 T0CKIPPSbits.T0CKIPPS0 // bit 0
7637 #define T0CKIPPS1 T0CKIPPSbits.T0CKIPPS1 // bit 1
7638 #define T0CKIPPS2 T0CKIPPSbits.T0CKIPPS2 // bit 2
7639 #define T0CKIPPS3 T0CKIPPSbits.T0CKIPPS3 // bit 3
7640 #define T0CKIPPS4 T0CKIPPSbits.T0CKIPPS4 // bit 4
7642 #define T0OUTPS0 T0CON0bits.T0OUTPS0 // bit 0
7643 #define T0OUTPS1 T0CON0bits.T0OUTPS1 // bit 1
7644 #define T0OUTPS2 T0CON0bits.T0OUTPS2 // bit 2
7645 #define T0OUTPS3 T0CON0bits.T0OUTPS3 // bit 3
7646 #define T016BIT T0CON0bits.T016BIT // bit 4
7647 #define T0OUT T0CON0bits.T0OUT // bit 5
7648 #define T0EN T0CON0bits.T0EN // bit 7
7650 #define T0CKPS0 T0CON1bits.T0CKPS0 // bit 0
7651 #define T0CKPS1 T0CON1bits.T0CKPS1 // bit 1
7652 #define T0CKPS2 T0CON1bits.T0CKPS2 // bit 2
7653 #define T0CKPS3 T0CON1bits.T0CKPS3 // bit 3
7654 #define T0ASYNC T0CON1bits.T0ASYNC // bit 4
7655 #define T0CS0 T0CON1bits.T0CS0 // bit 5
7656 #define T0CS1 T0CON1bits.T0CS1 // bit 6
7657 #define T0CS2 T0CON1bits.T0CS2 // bit 7
7659 #define T1CKIPPS0 T1CKIPPSbits.T1CKIPPS0 // bit 0
7660 #define T1CKIPPS1 T1CKIPPSbits.T1CKIPPS1 // bit 1
7661 #define T1CKIPPS2 T1CKIPPSbits.T1CKIPPS2 // bit 2
7662 #define T1CKIPPS3 T1CKIPPSbits.T1CKIPPS3 // bit 3
7663 #define T1CKIPPS4 T1CKIPPSbits.T1CKIPPS4 // bit 4
7665 #define TMR1ON T1CONbits.TMR1ON // bit 0
7666 #define T1SYNC T1CONbits.T1SYNC // bit 2
7667 #define T1SOSC T1CONbits.T1SOSC // bit 3
7668 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
7669 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
7670 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
7671 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
7673 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
7674 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
7675 #define T1GVAL T1GCONbits.T1GVAL // bit 2
7676 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
7677 #define T1GSPM T1GCONbits.T1GSPM // bit 4
7678 #define T1GTM T1GCONbits.T1GTM // bit 5
7679 #define T1GPOL T1GCONbits.T1GPOL // bit 6
7680 #define TMR1GE T1GCONbits.TMR1GE // bit 7
7682 #define T1GPPS0 T1GPPSbits.T1GPPS0 // bit 0
7683 #define T1GPPS1 T1GPPSbits.T1GPPS1 // bit 1
7684 #define T1GPPS2 T1GPPSbits.T1GPPS2 // bit 2
7685 #define T1GPPS3 T1GPPSbits.T1GPPS3 // bit 3
7686 #define T1GPPS4 T1GPPSbits.T1GPPS4 // bit 4
7688 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
7689 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
7690 #define TMR2ON T2CONbits.TMR2ON // bit 2
7691 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
7692 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
7693 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
7694 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
7696 #define TMR08 TMR0Hbits.TMR08 // bit 0
7697 #define TMR09 TMR0Hbits.TMR09 // bit 1
7698 #define TMR010 TMR0Hbits.TMR010 // bit 2
7699 #define TMR011 TMR0Hbits.TMR011 // bit 3
7700 #define TMR012 TMR0Hbits.TMR012 // bit 4
7701 #define TMR013 TMR0Hbits.TMR013 // bit 5
7702 #define TMR014 TMR0Hbits.TMR014 // bit 6
7703 #define TMR015 TMR0Hbits.TMR015 // bit 7
7705 #define TMR00 TMR0Lbits.TMR00 // bit 0
7706 #define TMR01 TMR0Lbits.TMR01 // bit 1
7707 #define TMR02 TMR0Lbits.TMR02 // bit 2
7708 #define TMR03 TMR0Lbits.TMR03 // bit 3
7709 #define TMR04 TMR0Lbits.TMR04 // bit 4
7710 #define TMR05 TMR0Lbits.TMR05 // bit 5
7711 #define TMR06 TMR0Lbits.TMR06 // bit 6
7712 #define TMR07 TMR0Lbits.TMR07 // bit 7
7714 #define TRISA0 TRISAbits.TRISA0 // bit 0
7715 #define TRISA1 TRISAbits.TRISA1 // bit 1
7716 #define TRISA2 TRISAbits.TRISA2 // bit 2
7717 #define TRISA4 TRISAbits.TRISA4 // bit 4
7718 #define TRISA5 TRISAbits.TRISA5 // bit 5
7720 #define TX9D TX1STAbits.TX9D // bit 0
7721 #define TRMT TX1STAbits.TRMT // bit 1
7722 #define BRGH TX1STAbits.BRGH // bit 2
7723 #define SENDB TX1STAbits.SENDB // bit 3
7724 #define SYNC TX1STAbits.SYNC // bit 4
7725 #define TXEN TX1STAbits.TXEN // bit 5
7726 #define TX9 TX1STAbits.TX9 // bit 6
7727 #define CSRC TX1STAbits.CSRC // bit 7
7729 #define TXPPS0 TXPPSbits.TXPPS0 // bit 0
7730 #define TXPPS1 TXPPSbits.TXPPS1 // bit 1
7731 #define TXPPS2 TXPPSbits.TXPPS2 // bit 2
7732 #define TXPPS3 TXPPSbits.TXPPS3 // bit 3
7733 #define TXPPS4 TXPPSbits.TXPPS4 // bit 4
7735 #define SWDTEN WDTCONbits.SWDTEN // bit 0
7736 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
7737 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
7738 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
7739 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
7740 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
7742 #define WPUA0 WPUAbits.WPUA0 // bit 0
7743 #define WPUA1 WPUAbits.WPUA1 // bit 1
7744 #define WPUA2 WPUAbits.WPUA2 // bit 2
7745 #define WPUA3 WPUAbits.WPUA3 // bit 3
7746 #define WPUA4 WPUAbits.WPUA4 // bit 4
7747 #define WPUA5 WPUAbits.WPUA5 // bit 5
7749 #endif // #ifndef NO_BIT_DEFINES
7751 #endif // #ifndef __PIC16LF18313_H__