struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16f1703.h
blob88711fea9aef31178abb0c620e7c250c82a2e0f5
1 /*
2 * This declarations of the PIC16F1703 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:11 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 __PIC16F1703_H__
26 #define __PIC16F1703_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 PORTC_ADDR 0x000E
52 #define PIR1_ADDR 0x0011
53 #define PIR2_ADDR 0x0012
54 #define PIR3_ADDR 0x0013
55 #define TMR0_ADDR 0x0015
56 #define TMR1_ADDR 0x0016
57 #define TMR1L_ADDR 0x0016
58 #define TMR1H_ADDR 0x0017
59 #define T1CON_ADDR 0x0018
60 #define T1GCON_ADDR 0x0019
61 #define TMR2_ADDR 0x001A
62 #define PR2_ADDR 0x001B
63 #define T2CON_ADDR 0x001C
64 #define TRISA_ADDR 0x008C
65 #define TRISC_ADDR 0x008E
66 #define PIE1_ADDR 0x0091
67 #define PIE2_ADDR 0x0092
68 #define PIE3_ADDR 0x0093
69 #define OPTION_REG_ADDR 0x0095
70 #define PCON_ADDR 0x0096
71 #define WDTCON_ADDR 0x0097
72 #define OSCTUNE_ADDR 0x0098
73 #define OSCCON_ADDR 0x0099
74 #define OSCSTAT_ADDR 0x009A
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 ADCON2_ADDR 0x009F
81 #define LATA_ADDR 0x010C
82 #define LATC_ADDR 0x010E
83 #define BORCON_ADDR 0x0116
84 #define FVRCON_ADDR 0x0117
85 #define ZCD1CON_ADDR 0x011C
86 #define ANSELA_ADDR 0x018C
87 #define ANSELC_ADDR 0x018E
88 #define PMADR_ADDR 0x0191
89 #define PMADRL_ADDR 0x0191
90 #define PMADRH_ADDR 0x0192
91 #define PMDAT_ADDR 0x0193
92 #define PMDATL_ADDR 0x0193
93 #define PMDATH_ADDR 0x0194
94 #define PMCON1_ADDR 0x0195
95 #define PMCON2_ADDR 0x0196
96 #define VREGCON_ADDR 0x0197
97 #define WPUA_ADDR 0x020C
98 #define WPUC_ADDR 0x020E
99 #define SSP1BUF_ADDR 0x0211
100 #define SSPBUF_ADDR 0x0211
101 #define SSP1ADD_ADDR 0x0212
102 #define SSPADD_ADDR 0x0212
103 #define SSP1MSK_ADDR 0x0213
104 #define SSPMSK_ADDR 0x0213
105 #define SSP1STAT_ADDR 0x0214
106 #define SSPSTAT_ADDR 0x0214
107 #define SSP1CON_ADDR 0x0215
108 #define SSP1CON1_ADDR 0x0215
109 #define SSPCON_ADDR 0x0215
110 #define SSPCON1_ADDR 0x0215
111 #define SSP1CON2_ADDR 0x0216
112 #define SSPCON2_ADDR 0x0216
113 #define SSP1CON3_ADDR 0x0217
114 #define SSPCON3_ADDR 0x0217
115 #define ODCONA_ADDR 0x028C
116 #define ODCONC_ADDR 0x028E
117 #define CCPR1_ADDR 0x0291
118 #define CCPR1L_ADDR 0x0291
119 #define CCPR1H_ADDR 0x0292
120 #define CCP1CON_ADDR 0x0293
121 #define ECCP1CON_ADDR 0x0293
122 #define CCPR2_ADDR 0x0298
123 #define CCPR2L_ADDR 0x0298
124 #define CCPR2H_ADDR 0x0299
125 #define CCP2CON_ADDR 0x029A
126 #define ECCP2CON_ADDR 0x029A
127 #define SLRCONA_ADDR 0x030C
128 #define SLRCONC_ADDR 0x030E
129 #define INLVLA_ADDR 0x038C
130 #define INLVLC_ADDR 0x038E
131 #define IOCAP_ADDR 0x0391
132 #define IOCAN_ADDR 0x0392
133 #define IOCAF_ADDR 0x0393
134 #define IOCCP_ADDR 0x0397
135 #define IOCCN_ADDR 0x0398
136 #define IOCCF_ADDR 0x0399
137 #define OPA1CON_ADDR 0x0511
138 #define OPA2CON_ADDR 0x0515
139 #define PPSLOCK_ADDR 0x0E0F
140 #define INTPPS_ADDR 0x0E10
141 #define T0CKIPPS_ADDR 0x0E11
142 #define T1CKIPPS_ADDR 0x0E12
143 #define T1GPPS_ADDR 0x0E13
144 #define CCP1PPS_ADDR 0x0E14
145 #define CCP2PPS_ADDR 0x0E15
146 #define SSPCLKPPS_ADDR 0x0E20
147 #define SSPDATPPS_ADDR 0x0E21
148 #define SSPSSPPS_ADDR 0x0E22
149 #define RA0PPS_ADDR 0x0E90
150 #define RA1PPS_ADDR 0x0E91
151 #define RA2PPS_ADDR 0x0E92
152 #define RA4PPS_ADDR 0x0E94
153 #define RA5PPS_ADDR 0x0E95
154 #define RC0PPS_ADDR 0x0EA0
155 #define RC1PPS_ADDR 0x0EA1
156 #define RC2PPS_ADDR 0x0EA2
157 #define RC3PPS_ADDR 0x0EA3
158 #define RC4PPS_ADDR 0x0EA4
159 #define RC5PPS_ADDR 0x0EA5
160 #define ICDBK0H_ADDR 0x0F9E
161 #define STATUS_SHAD_ADDR 0x0FE4
162 #define WREG_SHAD_ADDR 0x0FE5
163 #define BSR_SHAD_ADDR 0x0FE6
164 #define PCLATH_SHAD_ADDR 0x0FE7
165 #define FSR0L_SHAD_ADDR 0x0FE8
166 #define FSR0H_SHAD_ADDR 0x0FE9
167 #define FSR1L_SHAD_ADDR 0x0FEA
168 #define FSR1H_SHAD_ADDR 0x0FEB
169 #define STKPTR_ADDR 0x0FED
170 #define TOSL_ADDR 0x0FEE
171 #define TOSH_ADDR 0x0FEF
173 #endif // #ifndef NO_ADDR_DEFINES
175 //==============================================================================
177 // Register Definitions
179 //==============================================================================
181 extern __at(0x0000) __sfr INDF0;
182 extern __at(0x0001) __sfr INDF1;
183 extern __at(0x0002) __sfr PCL;
185 //==============================================================================
186 // STATUS Bits
188 extern __at(0x0003) __sfr STATUS;
190 typedef struct
192 unsigned C : 1;
193 unsigned DC : 1;
194 unsigned Z : 1;
195 unsigned NOT_PD : 1;
196 unsigned NOT_TO : 1;
197 unsigned : 1;
198 unsigned : 1;
199 unsigned : 1;
200 } __STATUSbits_t;
202 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
204 #define _C 0x01
205 #define _DC 0x02
206 #define _Z 0x04
207 #define _NOT_PD 0x08
208 #define _NOT_TO 0x10
210 //==============================================================================
212 extern __at(0x0004) __sfr FSR0;
213 extern __at(0x0004) __sfr FSR0L;
214 extern __at(0x0005) __sfr FSR0H;
215 extern __at(0x0006) __sfr FSR1;
216 extern __at(0x0006) __sfr FSR1L;
217 extern __at(0x0007) __sfr FSR1H;
219 //==============================================================================
220 // BSR Bits
222 extern __at(0x0008) __sfr BSR;
224 typedef union
226 struct
228 unsigned BSR0 : 1;
229 unsigned BSR1 : 1;
230 unsigned BSR2 : 1;
231 unsigned BSR3 : 1;
232 unsigned BSR4 : 1;
233 unsigned : 1;
234 unsigned : 1;
235 unsigned : 1;
238 struct
240 unsigned BSR : 5;
241 unsigned : 3;
243 } __BSRbits_t;
245 extern __at(0x0008) volatile __BSRbits_t BSRbits;
247 #define _BSR0 0x01
248 #define _BSR1 0x02
249 #define _BSR2 0x04
250 #define _BSR3 0x08
251 #define _BSR4 0x10
253 //==============================================================================
255 extern __at(0x0009) __sfr WREG;
256 extern __at(0x000A) __sfr PCLATH;
258 //==============================================================================
259 // INTCON Bits
261 extern __at(0x000B) __sfr INTCON;
263 typedef union
265 struct
267 unsigned IOCIF : 1;
268 unsigned INTF : 1;
269 unsigned TMR0IF : 1;
270 unsigned IOCIE : 1;
271 unsigned INTE : 1;
272 unsigned TMR0IE : 1;
273 unsigned PEIE : 1;
274 unsigned GIE : 1;
277 struct
279 unsigned : 1;
280 unsigned : 1;
281 unsigned T0IF : 1;
282 unsigned : 1;
283 unsigned : 1;
284 unsigned T0IE : 1;
285 unsigned : 1;
286 unsigned : 1;
288 } __INTCONbits_t;
290 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
292 #define _IOCIF 0x01
293 #define _INTF 0x02
294 #define _TMR0IF 0x04
295 #define _T0IF 0x04
296 #define _IOCIE 0x08
297 #define _INTE 0x10
298 #define _TMR0IE 0x20
299 #define _T0IE 0x20
300 #define _PEIE 0x40
301 #define _GIE 0x80
303 //==============================================================================
306 //==============================================================================
307 // PORTA Bits
309 extern __at(0x000C) __sfr PORTA;
311 typedef union
313 struct
315 unsigned RA0 : 1;
316 unsigned RA1 : 1;
317 unsigned RA2 : 1;
318 unsigned RA3 : 1;
319 unsigned RA4 : 1;
320 unsigned RA5 : 1;
321 unsigned : 1;
322 unsigned : 1;
325 struct
327 unsigned RA : 6;
328 unsigned : 2;
330 } __PORTAbits_t;
332 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
334 #define _RA0 0x01
335 #define _RA1 0x02
336 #define _RA2 0x04
337 #define _RA3 0x08
338 #define _RA4 0x10
339 #define _RA5 0x20
341 //==============================================================================
344 //==============================================================================
345 // PORTC Bits
347 extern __at(0x000E) __sfr PORTC;
349 typedef union
351 struct
353 unsigned RC0 : 1;
354 unsigned RC1 : 1;
355 unsigned RC2 : 1;
356 unsigned RC3 : 1;
357 unsigned RC4 : 1;
358 unsigned RC5 : 1;
359 unsigned : 1;
360 unsigned : 1;
363 struct
365 unsigned RC : 6;
366 unsigned : 2;
368 } __PORTCbits_t;
370 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
372 #define _RC0 0x01
373 #define _RC1 0x02
374 #define _RC2 0x04
375 #define _RC3 0x08
376 #define _RC4 0x10
377 #define _RC5 0x20
379 //==============================================================================
382 //==============================================================================
383 // PIR1 Bits
385 extern __at(0x0011) __sfr PIR1;
387 typedef union
389 struct
391 unsigned TMR1IF : 1;
392 unsigned TMR2IF : 1;
393 unsigned CCP1IF : 1;
394 unsigned SSP1IF : 1;
395 unsigned : 1;
396 unsigned : 1;
397 unsigned ADIF : 1;
398 unsigned TMR1GIF : 1;
401 struct
403 unsigned : 1;
404 unsigned : 1;
405 unsigned CCPIF : 1;
406 unsigned : 1;
407 unsigned : 1;
408 unsigned : 1;
409 unsigned : 1;
410 unsigned : 1;
412 } __PIR1bits_t;
414 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
416 #define _TMR1IF 0x01
417 #define _TMR2IF 0x02
418 #define _CCP1IF 0x04
419 #define _CCPIF 0x04
420 #define _SSP1IF 0x08
421 #define _ADIF 0x40
422 #define _TMR1GIF 0x80
424 //==============================================================================
427 //==============================================================================
428 // PIR2 Bits
430 extern __at(0x0012) __sfr PIR2;
432 typedef struct
434 unsigned CCP2IF : 1;
435 unsigned : 1;
436 unsigned : 1;
437 unsigned BCL1IF : 1;
438 unsigned : 1;
439 unsigned : 1;
440 unsigned : 1;
441 unsigned : 1;
442 } __PIR2bits_t;
444 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
446 #define _CCP2IF 0x01
447 #define _BCL1IF 0x08
449 //==============================================================================
452 //==============================================================================
453 // PIR3 Bits
455 extern __at(0x0013) __sfr PIR3;
457 typedef struct
459 unsigned : 1;
460 unsigned : 1;
461 unsigned : 1;
462 unsigned : 1;
463 unsigned ZCDIF : 1;
464 unsigned : 1;
465 unsigned : 1;
466 unsigned : 1;
467 } __PIR3bits_t;
469 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
471 #define _ZCDIF 0x10
473 //==============================================================================
475 extern __at(0x0015) __sfr TMR0;
476 extern __at(0x0016) __sfr TMR1;
477 extern __at(0x0016) __sfr TMR1L;
478 extern __at(0x0017) __sfr TMR1H;
480 //==============================================================================
481 // T1CON Bits
483 extern __at(0x0018) __sfr T1CON;
485 typedef union
487 struct
489 unsigned TMR1ON : 1;
490 unsigned : 1;
491 unsigned NOT_T1SYNC : 1;
492 unsigned T1OSCEN : 1;
493 unsigned T1CKPS0 : 1;
494 unsigned T1CKPS1 : 1;
495 unsigned TMR1CS0 : 1;
496 unsigned TMR1CS1 : 1;
499 struct
501 unsigned : 4;
502 unsigned T1CKPS : 2;
503 unsigned : 2;
506 struct
508 unsigned : 6;
509 unsigned TMR1CS : 2;
511 } __T1CONbits_t;
513 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
515 #define _TMR1ON 0x01
516 #define _NOT_T1SYNC 0x04
517 #define _T1OSCEN 0x08
518 #define _T1CKPS0 0x10
519 #define _T1CKPS1 0x20
520 #define _TMR1CS0 0x40
521 #define _TMR1CS1 0x80
523 //==============================================================================
526 //==============================================================================
527 // T1GCON Bits
529 extern __at(0x0019) __sfr T1GCON;
531 typedef union
533 struct
535 unsigned T1GSS0 : 1;
536 unsigned T1GSS1 : 1;
537 unsigned T1GVAL : 1;
538 unsigned T1GGO_NOT_DONE : 1;
539 unsigned T1GSPM : 1;
540 unsigned T1GTM : 1;
541 unsigned T1GPOL : 1;
542 unsigned TMR1GE : 1;
545 struct
547 unsigned T1GSS : 2;
548 unsigned : 6;
550 } __T1GCONbits_t;
552 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
554 #define _T1GSS0 0x01
555 #define _T1GSS1 0x02
556 #define _T1GVAL 0x04
557 #define _T1GGO_NOT_DONE 0x08
558 #define _T1GSPM 0x10
559 #define _T1GTM 0x20
560 #define _T1GPOL 0x40
561 #define _TMR1GE 0x80
563 //==============================================================================
565 extern __at(0x001A) __sfr TMR2;
566 extern __at(0x001B) __sfr PR2;
568 //==============================================================================
569 // T2CON Bits
571 extern __at(0x001C) __sfr T2CON;
573 typedef union
575 struct
577 unsigned T2CKPS0 : 1;
578 unsigned T2CKPS1 : 1;
579 unsigned TMR2ON : 1;
580 unsigned T2OUTPS0 : 1;
581 unsigned T2OUTPS1 : 1;
582 unsigned T2OUTPS2 : 1;
583 unsigned T2OUTPS3 : 1;
584 unsigned : 1;
587 struct
589 unsigned T2CKPS : 2;
590 unsigned : 6;
593 struct
595 unsigned : 3;
596 unsigned T2OUTPS : 4;
597 unsigned : 1;
599 } __T2CONbits_t;
601 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
603 #define _T2CKPS0 0x01
604 #define _T2CKPS1 0x02
605 #define _TMR2ON 0x04
606 #define _T2OUTPS0 0x08
607 #define _T2OUTPS1 0x10
608 #define _T2OUTPS2 0x20
609 #define _T2OUTPS3 0x40
611 //==============================================================================
614 //==============================================================================
615 // TRISA Bits
617 extern __at(0x008C) __sfr TRISA;
619 typedef struct
621 unsigned TRISA0 : 1;
622 unsigned TRISA1 : 1;
623 unsigned TRISA2 : 1;
624 unsigned : 1;
625 unsigned TRISA4 : 1;
626 unsigned TRISA5 : 1;
627 unsigned : 1;
628 unsigned : 1;
629 } __TRISAbits_t;
631 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
633 #define _TRISA0 0x01
634 #define _TRISA1 0x02
635 #define _TRISA2 0x04
636 #define _TRISA4 0x10
637 #define _TRISA5 0x20
639 //==============================================================================
642 //==============================================================================
643 // TRISC Bits
645 extern __at(0x008E) __sfr TRISC;
647 typedef union
649 struct
651 unsigned TRISC0 : 1;
652 unsigned TRISC1 : 1;
653 unsigned TRISC2 : 1;
654 unsigned TRISC3 : 1;
655 unsigned TRISC4 : 1;
656 unsigned TRISC5 : 1;
657 unsigned : 1;
658 unsigned : 1;
661 struct
663 unsigned TRISC : 6;
664 unsigned : 2;
666 } __TRISCbits_t;
668 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
670 #define _TRISC0 0x01
671 #define _TRISC1 0x02
672 #define _TRISC2 0x04
673 #define _TRISC3 0x08
674 #define _TRISC4 0x10
675 #define _TRISC5 0x20
677 //==============================================================================
680 //==============================================================================
681 // PIE1 Bits
683 extern __at(0x0091) __sfr PIE1;
685 typedef union
687 struct
689 unsigned TMR1IE : 1;
690 unsigned TMR2IE : 1;
691 unsigned CCP1IE : 1;
692 unsigned SSP1IE : 1;
693 unsigned : 1;
694 unsigned : 1;
695 unsigned ADIE : 1;
696 unsigned TMR1GIE : 1;
699 struct
701 unsigned : 1;
702 unsigned : 1;
703 unsigned CCPIE : 1;
704 unsigned : 1;
705 unsigned : 1;
706 unsigned : 1;
707 unsigned : 1;
708 unsigned : 1;
710 } __PIE1bits_t;
712 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
714 #define _TMR1IE 0x01
715 #define _TMR2IE 0x02
716 #define _CCP1IE 0x04
717 #define _CCPIE 0x04
718 #define _SSP1IE 0x08
719 #define _ADIE 0x40
720 #define _TMR1GIE 0x80
722 //==============================================================================
725 //==============================================================================
726 // PIE2 Bits
728 extern __at(0x0092) __sfr PIE2;
730 typedef struct
732 unsigned CCP2IE : 1;
733 unsigned : 1;
734 unsigned : 1;
735 unsigned BCL1IE : 1;
736 unsigned : 1;
737 unsigned : 1;
738 unsigned : 1;
739 unsigned : 1;
740 } __PIE2bits_t;
742 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
744 #define _CCP2IE 0x01
745 #define _BCL1IE 0x08
747 //==============================================================================
750 //==============================================================================
751 // PIE3 Bits
753 extern __at(0x0093) __sfr PIE3;
755 typedef struct
757 unsigned : 1;
758 unsigned : 1;
759 unsigned : 1;
760 unsigned : 1;
761 unsigned ZCDIE : 1;
762 unsigned : 1;
763 unsigned : 1;
764 unsigned : 1;
765 } __PIE3bits_t;
767 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
769 #define _ZCDIE 0x10
771 //==============================================================================
774 //==============================================================================
775 // OPTION_REG Bits
777 extern __at(0x0095) __sfr OPTION_REG;
779 typedef union
781 struct
783 unsigned PS0 : 1;
784 unsigned PS1 : 1;
785 unsigned PS2 : 1;
786 unsigned PSA : 1;
787 unsigned TMR0SE : 1;
788 unsigned TMR0CS : 1;
789 unsigned INTEDG : 1;
790 unsigned NOT_WPUEN : 1;
793 struct
795 unsigned : 1;
796 unsigned : 1;
797 unsigned : 1;
798 unsigned : 1;
799 unsigned T0SE : 1;
800 unsigned T0CS : 1;
801 unsigned : 1;
802 unsigned : 1;
805 struct
807 unsigned PS : 3;
808 unsigned : 5;
810 } __OPTION_REGbits_t;
812 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
814 #define _PS0 0x01
815 #define _PS1 0x02
816 #define _PS2 0x04
817 #define _PSA 0x08
818 #define _TMR0SE 0x10
819 #define _T0SE 0x10
820 #define _TMR0CS 0x20
821 #define _T0CS 0x20
822 #define _INTEDG 0x40
823 #define _NOT_WPUEN 0x80
825 //==============================================================================
828 //==============================================================================
829 // PCON Bits
831 extern __at(0x0096) __sfr PCON;
833 typedef struct
835 unsigned NOT_BOR : 1;
836 unsigned NOT_POR : 1;
837 unsigned NOT_RI : 1;
838 unsigned NOT_RMCLR : 1;
839 unsigned NOT_RWDT : 1;
840 unsigned : 1;
841 unsigned STKUNF : 1;
842 unsigned STKOVF : 1;
843 } __PCONbits_t;
845 extern __at(0x0096) volatile __PCONbits_t PCONbits;
847 #define _NOT_BOR 0x01
848 #define _NOT_POR 0x02
849 #define _NOT_RI 0x04
850 #define _NOT_RMCLR 0x08
851 #define _NOT_RWDT 0x10
852 #define _STKUNF 0x40
853 #define _STKOVF 0x80
855 //==============================================================================
858 //==============================================================================
859 // WDTCON Bits
861 extern __at(0x0097) __sfr WDTCON;
863 typedef union
865 struct
867 unsigned SWDTEN : 1;
868 unsigned WDTPS0 : 1;
869 unsigned WDTPS1 : 1;
870 unsigned WDTPS2 : 1;
871 unsigned WDTPS3 : 1;
872 unsigned WDTPS4 : 1;
873 unsigned : 1;
874 unsigned : 1;
877 struct
879 unsigned : 1;
880 unsigned WDTPS : 5;
881 unsigned : 2;
883 } __WDTCONbits_t;
885 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
887 #define _SWDTEN 0x01
888 #define _WDTPS0 0x02
889 #define _WDTPS1 0x04
890 #define _WDTPS2 0x08
891 #define _WDTPS3 0x10
892 #define _WDTPS4 0x20
894 //==============================================================================
897 //==============================================================================
898 // OSCTUNE Bits
900 extern __at(0x0098) __sfr OSCTUNE;
902 typedef union
904 struct
906 unsigned TUN0 : 1;
907 unsigned TUN1 : 1;
908 unsigned TUN2 : 1;
909 unsigned TUN3 : 1;
910 unsigned TUN4 : 1;
911 unsigned TUN5 : 1;
912 unsigned : 1;
913 unsigned : 1;
916 struct
918 unsigned TUN : 6;
919 unsigned : 2;
921 } __OSCTUNEbits_t;
923 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
925 #define _TUN0 0x01
926 #define _TUN1 0x02
927 #define _TUN2 0x04
928 #define _TUN3 0x08
929 #define _TUN4 0x10
930 #define _TUN5 0x20
932 //==============================================================================
935 //==============================================================================
936 // OSCCON Bits
938 extern __at(0x0099) __sfr OSCCON;
940 typedef union
942 struct
944 unsigned SCS0 : 1;
945 unsigned SCS1 : 1;
946 unsigned : 1;
947 unsigned IRCF0 : 1;
948 unsigned IRCF1 : 1;
949 unsigned IRCF2 : 1;
950 unsigned IRCF3 : 1;
951 unsigned SPLLEN : 1;
954 struct
956 unsigned SCS : 2;
957 unsigned : 6;
960 struct
962 unsigned : 3;
963 unsigned IRCF : 4;
964 unsigned : 1;
966 } __OSCCONbits_t;
968 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
970 #define _SCS0 0x01
971 #define _SCS1 0x02
972 #define _IRCF0 0x08
973 #define _IRCF1 0x10
974 #define _IRCF2 0x20
975 #define _IRCF3 0x40
976 #define _SPLLEN 0x80
978 //==============================================================================
981 //==============================================================================
982 // OSCSTAT Bits
984 extern __at(0x009A) __sfr OSCSTAT;
986 typedef struct
988 unsigned HFIOFS : 1;
989 unsigned LFIOFR : 1;
990 unsigned MFIOFR : 1;
991 unsigned HFIOFL : 1;
992 unsigned HFIOFR : 1;
993 unsigned OSTS : 1;
994 unsigned PLLR : 1;
995 unsigned SOSCR : 1;
996 } __OSCSTATbits_t;
998 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1000 #define _HFIOFS 0x01
1001 #define _LFIOFR 0x02
1002 #define _MFIOFR 0x04
1003 #define _HFIOFL 0x08
1004 #define _HFIOFR 0x10
1005 #define _OSTS 0x20
1006 #define _PLLR 0x40
1007 #define _SOSCR 0x80
1009 //==============================================================================
1011 extern __at(0x009B) __sfr ADRES;
1012 extern __at(0x009B) __sfr ADRESL;
1013 extern __at(0x009C) __sfr ADRESH;
1015 //==============================================================================
1016 // ADCON0 Bits
1018 extern __at(0x009D) __sfr ADCON0;
1020 typedef union
1022 struct
1024 unsigned ADON : 1;
1025 unsigned GO_NOT_DONE : 1;
1026 unsigned CHS0 : 1;
1027 unsigned CHS1 : 1;
1028 unsigned CHS2 : 1;
1029 unsigned CHS3 : 1;
1030 unsigned CHS4 : 1;
1031 unsigned : 1;
1034 struct
1036 unsigned : 1;
1037 unsigned ADGO : 1;
1038 unsigned : 1;
1039 unsigned : 1;
1040 unsigned : 1;
1041 unsigned : 1;
1042 unsigned : 1;
1043 unsigned : 1;
1046 struct
1048 unsigned : 1;
1049 unsigned GO : 1;
1050 unsigned : 1;
1051 unsigned : 1;
1052 unsigned : 1;
1053 unsigned : 1;
1054 unsigned : 1;
1055 unsigned : 1;
1058 struct
1060 unsigned : 2;
1061 unsigned CHS : 5;
1062 unsigned : 1;
1064 } __ADCON0bits_t;
1066 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1068 #define _ADON 0x01
1069 #define _GO_NOT_DONE 0x02
1070 #define _ADGO 0x02
1071 #define _GO 0x02
1072 #define _CHS0 0x04
1073 #define _CHS1 0x08
1074 #define _CHS2 0x10
1075 #define _CHS3 0x20
1076 #define _CHS4 0x40
1078 //==============================================================================
1081 //==============================================================================
1082 // ADCON1 Bits
1084 extern __at(0x009E) __sfr ADCON1;
1086 typedef union
1088 struct
1090 unsigned ADPREF0 : 1;
1091 unsigned ADPREF1 : 1;
1092 unsigned ADNREF : 1;
1093 unsigned : 1;
1094 unsigned : 1;
1095 unsigned : 1;
1096 unsigned : 1;
1097 unsigned ADFM : 1;
1100 struct
1102 unsigned ADPREF : 2;
1103 unsigned : 6;
1105 } __ADCON1bits_t;
1107 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1109 #define _ADPREF0 0x01
1110 #define _ADPREF1 0x02
1111 #define _ADNREF 0x04
1112 #define _ADFM 0x80
1114 //==============================================================================
1117 //==============================================================================
1118 // ADCON2 Bits
1120 extern __at(0x009F) __sfr ADCON2;
1122 typedef union
1124 struct
1126 unsigned : 1;
1127 unsigned : 1;
1128 unsigned : 1;
1129 unsigned : 1;
1130 unsigned TRIGSEL0 : 1;
1131 unsigned TRIGSEL1 : 1;
1132 unsigned TRIGSEL2 : 1;
1133 unsigned TRIGSEL3 : 1;
1136 struct
1138 unsigned : 4;
1139 unsigned TRIGSEL : 4;
1141 } __ADCON2bits_t;
1143 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1145 #define _TRIGSEL0 0x10
1146 #define _TRIGSEL1 0x20
1147 #define _TRIGSEL2 0x40
1148 #define _TRIGSEL3 0x80
1150 //==============================================================================
1153 //==============================================================================
1154 // LATA Bits
1156 extern __at(0x010C) __sfr LATA;
1158 typedef struct
1160 unsigned LATA0 : 1;
1161 unsigned LATA1 : 1;
1162 unsigned LATA2 : 1;
1163 unsigned : 1;
1164 unsigned LATA4 : 1;
1165 unsigned LATA5 : 1;
1166 unsigned : 1;
1167 unsigned : 1;
1168 } __LATAbits_t;
1170 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1172 #define _LATA0 0x01
1173 #define _LATA1 0x02
1174 #define _LATA2 0x04
1175 #define _LATA4 0x10
1176 #define _LATA5 0x20
1178 //==============================================================================
1181 //==============================================================================
1182 // LATC Bits
1184 extern __at(0x010E) __sfr LATC;
1186 typedef union
1188 struct
1190 unsigned LATC0 : 1;
1191 unsigned LATC1 : 1;
1192 unsigned LATC2 : 1;
1193 unsigned LATC3 : 1;
1194 unsigned LATC4 : 1;
1195 unsigned LATC5 : 1;
1196 unsigned : 1;
1197 unsigned : 1;
1200 struct
1202 unsigned LATC : 6;
1203 unsigned : 2;
1205 } __LATCbits_t;
1207 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1209 #define _LATC0 0x01
1210 #define _LATC1 0x02
1211 #define _LATC2 0x04
1212 #define _LATC3 0x08
1213 #define _LATC4 0x10
1214 #define _LATC5 0x20
1216 //==============================================================================
1219 //==============================================================================
1220 // BORCON Bits
1222 extern __at(0x0116) __sfr BORCON;
1224 typedef struct
1226 unsigned BORRDY : 1;
1227 unsigned : 1;
1228 unsigned : 1;
1229 unsigned : 1;
1230 unsigned : 1;
1231 unsigned : 1;
1232 unsigned BORFS : 1;
1233 unsigned SBOREN : 1;
1234 } __BORCONbits_t;
1236 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
1238 #define _BORRDY 0x01
1239 #define _BORFS 0x40
1240 #define _SBOREN 0x80
1242 //==============================================================================
1245 //==============================================================================
1246 // FVRCON Bits
1248 extern __at(0x0117) __sfr FVRCON;
1250 typedef union
1252 struct
1254 unsigned ADFVR0 : 1;
1255 unsigned ADFVR1 : 1;
1256 unsigned CDAFVR0 : 1;
1257 unsigned CDAFVR1 : 1;
1258 unsigned TSRNG : 1;
1259 unsigned TSEN : 1;
1260 unsigned FVRRDY : 1;
1261 unsigned FVREN : 1;
1264 struct
1266 unsigned ADFVR : 2;
1267 unsigned : 6;
1270 struct
1272 unsigned : 2;
1273 unsigned CDAFVR : 2;
1274 unsigned : 4;
1276 } __FVRCONbits_t;
1278 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
1280 #define _ADFVR0 0x01
1281 #define _ADFVR1 0x02
1282 #define _CDAFVR0 0x04
1283 #define _CDAFVR1 0x08
1284 #define _TSRNG 0x10
1285 #define _TSEN 0x20
1286 #define _FVRRDY 0x40
1287 #define _FVREN 0x80
1289 //==============================================================================
1292 //==============================================================================
1293 // ZCD1CON Bits
1295 extern __at(0x011C) __sfr ZCD1CON;
1297 typedef struct
1299 unsigned ZCD1INTN : 1;
1300 unsigned ZCD1INTP : 1;
1301 unsigned : 1;
1302 unsigned : 1;
1303 unsigned ZCD1POL : 1;
1304 unsigned ZCD1OUT : 1;
1305 unsigned : 1;
1306 unsigned ZCD1EN : 1;
1307 } __ZCD1CONbits_t;
1309 extern __at(0x011C) volatile __ZCD1CONbits_t ZCD1CONbits;
1311 #define _ZCD1INTN 0x01
1312 #define _ZCD1INTP 0x02
1313 #define _ZCD1POL 0x10
1314 #define _ZCD1OUT 0x20
1315 #define _ZCD1EN 0x80
1317 //==============================================================================
1320 //==============================================================================
1321 // ANSELA Bits
1323 extern __at(0x018C) __sfr ANSELA;
1325 typedef struct
1327 unsigned ANSA0 : 1;
1328 unsigned ANSA1 : 1;
1329 unsigned ANSA2 : 1;
1330 unsigned : 1;
1331 unsigned ANSA4 : 1;
1332 unsigned : 1;
1333 unsigned : 1;
1334 unsigned : 1;
1335 } __ANSELAbits_t;
1337 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
1339 #define _ANSA0 0x01
1340 #define _ANSA1 0x02
1341 #define _ANSA2 0x04
1342 #define _ANSA4 0x10
1344 //==============================================================================
1347 //==============================================================================
1348 // ANSELC Bits
1350 extern __at(0x018E) __sfr ANSELC;
1352 typedef union
1354 struct
1356 unsigned ANSC0 : 1;
1357 unsigned ANSC1 : 1;
1358 unsigned ANSC2 : 1;
1359 unsigned ANSC3 : 1;
1360 unsigned ANSC4 : 1;
1361 unsigned ANSC5 : 1;
1362 unsigned : 1;
1363 unsigned : 1;
1366 struct
1368 unsigned ANSC : 6;
1369 unsigned : 2;
1371 } __ANSELCbits_t;
1373 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
1375 #define _ANSC0 0x01
1376 #define _ANSC1 0x02
1377 #define _ANSC2 0x04
1378 #define _ANSC3 0x08
1379 #define _ANSC4 0x10
1380 #define _ANSC5 0x20
1382 //==============================================================================
1384 extern __at(0x0191) __sfr PMADR;
1385 extern __at(0x0191) __sfr PMADRL;
1386 extern __at(0x0192) __sfr PMADRH;
1387 extern __at(0x0193) __sfr PMDAT;
1388 extern __at(0x0193) __sfr PMDATL;
1389 extern __at(0x0194) __sfr PMDATH;
1391 //==============================================================================
1392 // PMCON1 Bits
1394 extern __at(0x0195) __sfr PMCON1;
1396 typedef struct
1398 unsigned RD : 1;
1399 unsigned WR : 1;
1400 unsigned WREN : 1;
1401 unsigned WRERR : 1;
1402 unsigned FREE : 1;
1403 unsigned LWLO : 1;
1404 unsigned CFGS : 1;
1405 unsigned : 1;
1406 } __PMCON1bits_t;
1408 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
1410 #define _RD 0x01
1411 #define _WR 0x02
1412 #define _WREN 0x04
1413 #define _WRERR 0x08
1414 #define _FREE 0x10
1415 #define _LWLO 0x20
1416 #define _CFGS 0x40
1418 //==============================================================================
1420 extern __at(0x0196) __sfr PMCON2;
1422 //==============================================================================
1423 // VREGCON Bits
1425 extern __at(0x0197) __sfr VREGCON;
1427 typedef struct
1429 unsigned Reserved : 1;
1430 unsigned VREGPM : 1;
1431 unsigned : 1;
1432 unsigned : 1;
1433 unsigned : 1;
1434 unsigned : 1;
1435 unsigned : 1;
1436 unsigned : 1;
1437 } __VREGCONbits_t;
1439 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
1441 #define _Reserved 0x01
1442 #define _VREGPM 0x02
1444 //==============================================================================
1447 //==============================================================================
1448 // WPUA Bits
1450 extern __at(0x020C) __sfr WPUA;
1452 typedef union
1454 struct
1456 unsigned WPUA0 : 1;
1457 unsigned WPUA1 : 1;
1458 unsigned WPUA2 : 1;
1459 unsigned WPUA3 : 1;
1460 unsigned WPUA4 : 1;
1461 unsigned WPUA5 : 1;
1462 unsigned : 1;
1463 unsigned : 1;
1466 struct
1468 unsigned WPUA : 6;
1469 unsigned : 2;
1471 } __WPUAbits_t;
1473 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
1475 #define _WPUA0 0x01
1476 #define _WPUA1 0x02
1477 #define _WPUA2 0x04
1478 #define _WPUA3 0x08
1479 #define _WPUA4 0x10
1480 #define _WPUA5 0x20
1482 //==============================================================================
1485 //==============================================================================
1486 // WPUC Bits
1488 extern __at(0x020E) __sfr WPUC;
1490 typedef union
1492 struct
1494 unsigned WPUC0 : 1;
1495 unsigned WPUC1 : 1;
1496 unsigned WPUC2 : 1;
1497 unsigned WPUC3 : 1;
1498 unsigned WPUC4 : 1;
1499 unsigned WPUC5 : 1;
1500 unsigned : 1;
1501 unsigned : 1;
1504 struct
1506 unsigned WPUC : 6;
1507 unsigned : 2;
1509 } __WPUCbits_t;
1511 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
1513 #define _WPUC0 0x01
1514 #define _WPUC1 0x02
1515 #define _WPUC2 0x04
1516 #define _WPUC3 0x08
1517 #define _WPUC4 0x10
1518 #define _WPUC5 0x20
1520 //==============================================================================
1523 //==============================================================================
1524 // SSP1BUF Bits
1526 extern __at(0x0211) __sfr SSP1BUF;
1528 typedef union
1530 struct
1532 unsigned SSP1BUF0 : 1;
1533 unsigned SSP1BUF1 : 1;
1534 unsigned SSP1BUF2 : 1;
1535 unsigned SSP1BUF3 : 1;
1536 unsigned SSP1BUF4 : 1;
1537 unsigned SSP1BUF5 : 1;
1538 unsigned SSP1BUF6 : 1;
1539 unsigned SSP1BUF7 : 1;
1542 struct
1544 unsigned BUF0 : 1;
1545 unsigned BUF1 : 1;
1546 unsigned BUF2 : 1;
1547 unsigned BUF3 : 1;
1548 unsigned BUF4 : 1;
1549 unsigned BUF5 : 1;
1550 unsigned BUF6 : 1;
1551 unsigned BUF7 : 1;
1553 } __SSP1BUFbits_t;
1555 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
1557 #define _SSP1BUF0 0x01
1558 #define _BUF0 0x01
1559 #define _SSP1BUF1 0x02
1560 #define _BUF1 0x02
1561 #define _SSP1BUF2 0x04
1562 #define _BUF2 0x04
1563 #define _SSP1BUF3 0x08
1564 #define _BUF3 0x08
1565 #define _SSP1BUF4 0x10
1566 #define _BUF4 0x10
1567 #define _SSP1BUF5 0x20
1568 #define _BUF5 0x20
1569 #define _SSP1BUF6 0x40
1570 #define _BUF6 0x40
1571 #define _SSP1BUF7 0x80
1572 #define _BUF7 0x80
1574 //==============================================================================
1577 //==============================================================================
1578 // SSPBUF Bits
1580 extern __at(0x0211) __sfr SSPBUF;
1582 typedef union
1584 struct
1586 unsigned SSP1BUF0 : 1;
1587 unsigned SSP1BUF1 : 1;
1588 unsigned SSP1BUF2 : 1;
1589 unsigned SSP1BUF3 : 1;
1590 unsigned SSP1BUF4 : 1;
1591 unsigned SSP1BUF5 : 1;
1592 unsigned SSP1BUF6 : 1;
1593 unsigned SSP1BUF7 : 1;
1596 struct
1598 unsigned BUF0 : 1;
1599 unsigned BUF1 : 1;
1600 unsigned BUF2 : 1;
1601 unsigned BUF3 : 1;
1602 unsigned BUF4 : 1;
1603 unsigned BUF5 : 1;
1604 unsigned BUF6 : 1;
1605 unsigned BUF7 : 1;
1607 } __SSPBUFbits_t;
1609 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
1611 #define _SSPBUF_SSP1BUF0 0x01
1612 #define _SSPBUF_BUF0 0x01
1613 #define _SSPBUF_SSP1BUF1 0x02
1614 #define _SSPBUF_BUF1 0x02
1615 #define _SSPBUF_SSP1BUF2 0x04
1616 #define _SSPBUF_BUF2 0x04
1617 #define _SSPBUF_SSP1BUF3 0x08
1618 #define _SSPBUF_BUF3 0x08
1619 #define _SSPBUF_SSP1BUF4 0x10
1620 #define _SSPBUF_BUF4 0x10
1621 #define _SSPBUF_SSP1BUF5 0x20
1622 #define _SSPBUF_BUF5 0x20
1623 #define _SSPBUF_SSP1BUF6 0x40
1624 #define _SSPBUF_BUF6 0x40
1625 #define _SSPBUF_SSP1BUF7 0x80
1626 #define _SSPBUF_BUF7 0x80
1628 //==============================================================================
1631 //==============================================================================
1632 // SSP1ADD Bits
1634 extern __at(0x0212) __sfr SSP1ADD;
1636 typedef union
1638 struct
1640 unsigned SSP1ADD0 : 1;
1641 unsigned SSP1ADD1 : 1;
1642 unsigned SSP1ADD2 : 1;
1643 unsigned SSP1ADD3 : 1;
1644 unsigned SSP1ADD4 : 1;
1645 unsigned SSP1ADD5 : 1;
1646 unsigned SSP1ADD6 : 1;
1647 unsigned SSP1ADD7 : 1;
1650 struct
1652 unsigned ADD0 : 1;
1653 unsigned ADD1 : 1;
1654 unsigned ADD2 : 1;
1655 unsigned ADD3 : 1;
1656 unsigned ADD4 : 1;
1657 unsigned ADD5 : 1;
1658 unsigned ADD6 : 1;
1659 unsigned ADD7 : 1;
1661 } __SSP1ADDbits_t;
1663 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
1665 #define _SSP1ADD0 0x01
1666 #define _ADD0 0x01
1667 #define _SSP1ADD1 0x02
1668 #define _ADD1 0x02
1669 #define _SSP1ADD2 0x04
1670 #define _ADD2 0x04
1671 #define _SSP1ADD3 0x08
1672 #define _ADD3 0x08
1673 #define _SSP1ADD4 0x10
1674 #define _ADD4 0x10
1675 #define _SSP1ADD5 0x20
1676 #define _ADD5 0x20
1677 #define _SSP1ADD6 0x40
1678 #define _ADD6 0x40
1679 #define _SSP1ADD7 0x80
1680 #define _ADD7 0x80
1682 //==============================================================================
1685 //==============================================================================
1686 // SSPADD Bits
1688 extern __at(0x0212) __sfr SSPADD;
1690 typedef union
1692 struct
1694 unsigned SSP1ADD0 : 1;
1695 unsigned SSP1ADD1 : 1;
1696 unsigned SSP1ADD2 : 1;
1697 unsigned SSP1ADD3 : 1;
1698 unsigned SSP1ADD4 : 1;
1699 unsigned SSP1ADD5 : 1;
1700 unsigned SSP1ADD6 : 1;
1701 unsigned SSP1ADD7 : 1;
1704 struct
1706 unsigned ADD0 : 1;
1707 unsigned ADD1 : 1;
1708 unsigned ADD2 : 1;
1709 unsigned ADD3 : 1;
1710 unsigned ADD4 : 1;
1711 unsigned ADD5 : 1;
1712 unsigned ADD6 : 1;
1713 unsigned ADD7 : 1;
1715 } __SSPADDbits_t;
1717 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
1719 #define _SSPADD_SSP1ADD0 0x01
1720 #define _SSPADD_ADD0 0x01
1721 #define _SSPADD_SSP1ADD1 0x02
1722 #define _SSPADD_ADD1 0x02
1723 #define _SSPADD_SSP1ADD2 0x04
1724 #define _SSPADD_ADD2 0x04
1725 #define _SSPADD_SSP1ADD3 0x08
1726 #define _SSPADD_ADD3 0x08
1727 #define _SSPADD_SSP1ADD4 0x10
1728 #define _SSPADD_ADD4 0x10
1729 #define _SSPADD_SSP1ADD5 0x20
1730 #define _SSPADD_ADD5 0x20
1731 #define _SSPADD_SSP1ADD6 0x40
1732 #define _SSPADD_ADD6 0x40
1733 #define _SSPADD_SSP1ADD7 0x80
1734 #define _SSPADD_ADD7 0x80
1736 //==============================================================================
1739 //==============================================================================
1740 // SSP1MSK Bits
1742 extern __at(0x0213) __sfr SSP1MSK;
1744 typedef union
1746 struct
1748 unsigned SSP1MSK0 : 1;
1749 unsigned SSP1MSK1 : 1;
1750 unsigned SSP1MSK2 : 1;
1751 unsigned SSP1MSK3 : 1;
1752 unsigned SSP1MSK4 : 1;
1753 unsigned SSP1MSK5 : 1;
1754 unsigned SSP1MSK6 : 1;
1755 unsigned SSP1MSK7 : 1;
1758 struct
1760 unsigned MSK0 : 1;
1761 unsigned MSK1 : 1;
1762 unsigned MSK2 : 1;
1763 unsigned MSK3 : 1;
1764 unsigned MSK4 : 1;
1765 unsigned MSK5 : 1;
1766 unsigned MSK6 : 1;
1767 unsigned MSK7 : 1;
1769 } __SSP1MSKbits_t;
1771 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
1773 #define _SSP1MSK0 0x01
1774 #define _MSK0 0x01
1775 #define _SSP1MSK1 0x02
1776 #define _MSK1 0x02
1777 #define _SSP1MSK2 0x04
1778 #define _MSK2 0x04
1779 #define _SSP1MSK3 0x08
1780 #define _MSK3 0x08
1781 #define _SSP1MSK4 0x10
1782 #define _MSK4 0x10
1783 #define _SSP1MSK5 0x20
1784 #define _MSK5 0x20
1785 #define _SSP1MSK6 0x40
1786 #define _MSK6 0x40
1787 #define _SSP1MSK7 0x80
1788 #define _MSK7 0x80
1790 //==============================================================================
1793 //==============================================================================
1794 // SSPMSK Bits
1796 extern __at(0x0213) __sfr SSPMSK;
1798 typedef union
1800 struct
1802 unsigned SSP1MSK0 : 1;
1803 unsigned SSP1MSK1 : 1;
1804 unsigned SSP1MSK2 : 1;
1805 unsigned SSP1MSK3 : 1;
1806 unsigned SSP1MSK4 : 1;
1807 unsigned SSP1MSK5 : 1;
1808 unsigned SSP1MSK6 : 1;
1809 unsigned SSP1MSK7 : 1;
1812 struct
1814 unsigned MSK0 : 1;
1815 unsigned MSK1 : 1;
1816 unsigned MSK2 : 1;
1817 unsigned MSK3 : 1;
1818 unsigned MSK4 : 1;
1819 unsigned MSK5 : 1;
1820 unsigned MSK6 : 1;
1821 unsigned MSK7 : 1;
1823 } __SSPMSKbits_t;
1825 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
1827 #define _SSPMSK_SSP1MSK0 0x01
1828 #define _SSPMSK_MSK0 0x01
1829 #define _SSPMSK_SSP1MSK1 0x02
1830 #define _SSPMSK_MSK1 0x02
1831 #define _SSPMSK_SSP1MSK2 0x04
1832 #define _SSPMSK_MSK2 0x04
1833 #define _SSPMSK_SSP1MSK3 0x08
1834 #define _SSPMSK_MSK3 0x08
1835 #define _SSPMSK_SSP1MSK4 0x10
1836 #define _SSPMSK_MSK4 0x10
1837 #define _SSPMSK_SSP1MSK5 0x20
1838 #define _SSPMSK_MSK5 0x20
1839 #define _SSPMSK_SSP1MSK6 0x40
1840 #define _SSPMSK_MSK6 0x40
1841 #define _SSPMSK_SSP1MSK7 0x80
1842 #define _SSPMSK_MSK7 0x80
1844 //==============================================================================
1847 //==============================================================================
1848 // SSP1STAT Bits
1850 extern __at(0x0214) __sfr SSP1STAT;
1852 typedef struct
1854 unsigned BF : 1;
1855 unsigned UA : 1;
1856 unsigned R_NOT_W : 1;
1857 unsigned S : 1;
1858 unsigned P : 1;
1859 unsigned D_NOT_A : 1;
1860 unsigned CKE : 1;
1861 unsigned SMP : 1;
1862 } __SSP1STATbits_t;
1864 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
1866 #define _BF 0x01
1867 #define _UA 0x02
1868 #define _R_NOT_W 0x04
1869 #define _S 0x08
1870 #define _P 0x10
1871 #define _D_NOT_A 0x20
1872 #define _CKE 0x40
1873 #define _SMP 0x80
1875 //==============================================================================
1878 //==============================================================================
1879 // SSPSTAT Bits
1881 extern __at(0x0214) __sfr SSPSTAT;
1883 typedef struct
1885 unsigned BF : 1;
1886 unsigned UA : 1;
1887 unsigned R_NOT_W : 1;
1888 unsigned S : 1;
1889 unsigned P : 1;
1890 unsigned D_NOT_A : 1;
1891 unsigned CKE : 1;
1892 unsigned SMP : 1;
1893 } __SSPSTATbits_t;
1895 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
1897 #define _SSPSTAT_BF 0x01
1898 #define _SSPSTAT_UA 0x02
1899 #define _SSPSTAT_R_NOT_W 0x04
1900 #define _SSPSTAT_S 0x08
1901 #define _SSPSTAT_P 0x10
1902 #define _SSPSTAT_D_NOT_A 0x20
1903 #define _SSPSTAT_CKE 0x40
1904 #define _SSPSTAT_SMP 0x80
1906 //==============================================================================
1909 //==============================================================================
1910 // SSP1CON Bits
1912 extern __at(0x0215) __sfr SSP1CON;
1914 typedef union
1916 struct
1918 unsigned SSPM0 : 1;
1919 unsigned SSPM1 : 1;
1920 unsigned SSPM2 : 1;
1921 unsigned SSPM3 : 1;
1922 unsigned CKP : 1;
1923 unsigned SSPEN : 1;
1924 unsigned SSPOV : 1;
1925 unsigned WCOL : 1;
1928 struct
1930 unsigned SSPM : 4;
1931 unsigned : 4;
1933 } __SSP1CONbits_t;
1935 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
1937 #define _SSPM0 0x01
1938 #define _SSPM1 0x02
1939 #define _SSPM2 0x04
1940 #define _SSPM3 0x08
1941 #define _CKP 0x10
1942 #define _SSPEN 0x20
1943 #define _SSPOV 0x40
1944 #define _WCOL 0x80
1946 //==============================================================================
1949 //==============================================================================
1950 // SSP1CON1 Bits
1952 extern __at(0x0215) __sfr SSP1CON1;
1954 typedef union
1956 struct
1958 unsigned SSPM0 : 1;
1959 unsigned SSPM1 : 1;
1960 unsigned SSPM2 : 1;
1961 unsigned SSPM3 : 1;
1962 unsigned CKP : 1;
1963 unsigned SSPEN : 1;
1964 unsigned SSPOV : 1;
1965 unsigned WCOL : 1;
1968 struct
1970 unsigned SSPM : 4;
1971 unsigned : 4;
1973 } __SSP1CON1bits_t;
1975 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
1977 #define _SSP1CON1_SSPM0 0x01
1978 #define _SSP1CON1_SSPM1 0x02
1979 #define _SSP1CON1_SSPM2 0x04
1980 #define _SSP1CON1_SSPM3 0x08
1981 #define _SSP1CON1_CKP 0x10
1982 #define _SSP1CON1_SSPEN 0x20
1983 #define _SSP1CON1_SSPOV 0x40
1984 #define _SSP1CON1_WCOL 0x80
1986 //==============================================================================
1989 //==============================================================================
1990 // SSPCON Bits
1992 extern __at(0x0215) __sfr SSPCON;
1994 typedef union
1996 struct
1998 unsigned SSPM0 : 1;
1999 unsigned SSPM1 : 1;
2000 unsigned SSPM2 : 1;
2001 unsigned SSPM3 : 1;
2002 unsigned CKP : 1;
2003 unsigned SSPEN : 1;
2004 unsigned SSPOV : 1;
2005 unsigned WCOL : 1;
2008 struct
2010 unsigned SSPM : 4;
2011 unsigned : 4;
2013 } __SSPCONbits_t;
2015 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
2017 #define _SSPCON_SSPM0 0x01
2018 #define _SSPCON_SSPM1 0x02
2019 #define _SSPCON_SSPM2 0x04
2020 #define _SSPCON_SSPM3 0x08
2021 #define _SSPCON_CKP 0x10
2022 #define _SSPCON_SSPEN 0x20
2023 #define _SSPCON_SSPOV 0x40
2024 #define _SSPCON_WCOL 0x80
2026 //==============================================================================
2029 //==============================================================================
2030 // SSPCON1 Bits
2032 extern __at(0x0215) __sfr SSPCON1;
2034 typedef union
2036 struct
2038 unsigned SSPM0 : 1;
2039 unsigned SSPM1 : 1;
2040 unsigned SSPM2 : 1;
2041 unsigned SSPM3 : 1;
2042 unsigned CKP : 1;
2043 unsigned SSPEN : 1;
2044 unsigned SSPOV : 1;
2045 unsigned WCOL : 1;
2048 struct
2050 unsigned SSPM : 4;
2051 unsigned : 4;
2053 } __SSPCON1bits_t;
2055 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
2057 #define _SSPCON1_SSPM0 0x01
2058 #define _SSPCON1_SSPM1 0x02
2059 #define _SSPCON1_SSPM2 0x04
2060 #define _SSPCON1_SSPM3 0x08
2061 #define _SSPCON1_CKP 0x10
2062 #define _SSPCON1_SSPEN 0x20
2063 #define _SSPCON1_SSPOV 0x40
2064 #define _SSPCON1_WCOL 0x80
2066 //==============================================================================
2069 //==============================================================================
2070 // SSP1CON2 Bits
2072 extern __at(0x0216) __sfr SSP1CON2;
2074 typedef struct
2076 unsigned SEN : 1;
2077 unsigned RSEN : 1;
2078 unsigned PEN : 1;
2079 unsigned RCEN : 1;
2080 unsigned ACKEN : 1;
2081 unsigned ACKDT : 1;
2082 unsigned ACKSTAT : 1;
2083 unsigned GCEN : 1;
2084 } __SSP1CON2bits_t;
2086 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
2088 #define _SEN 0x01
2089 #define _RSEN 0x02
2090 #define _PEN 0x04
2091 #define _RCEN 0x08
2092 #define _ACKEN 0x10
2093 #define _ACKDT 0x20
2094 #define _ACKSTAT 0x40
2095 #define _GCEN 0x80
2097 //==============================================================================
2100 //==============================================================================
2101 // SSPCON2 Bits
2103 extern __at(0x0216) __sfr SSPCON2;
2105 typedef struct
2107 unsigned SEN : 1;
2108 unsigned RSEN : 1;
2109 unsigned PEN : 1;
2110 unsigned RCEN : 1;
2111 unsigned ACKEN : 1;
2112 unsigned ACKDT : 1;
2113 unsigned ACKSTAT : 1;
2114 unsigned GCEN : 1;
2115 } __SSPCON2bits_t;
2117 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
2119 #define _SSPCON2_SEN 0x01
2120 #define _SSPCON2_RSEN 0x02
2121 #define _SSPCON2_PEN 0x04
2122 #define _SSPCON2_RCEN 0x08
2123 #define _SSPCON2_ACKEN 0x10
2124 #define _SSPCON2_ACKDT 0x20
2125 #define _SSPCON2_ACKSTAT 0x40
2126 #define _SSPCON2_GCEN 0x80
2128 //==============================================================================
2131 //==============================================================================
2132 // SSP1CON3 Bits
2134 extern __at(0x0217) __sfr SSP1CON3;
2136 typedef struct
2138 unsigned DHEN : 1;
2139 unsigned AHEN : 1;
2140 unsigned SBCDE : 1;
2141 unsigned SDAHT : 1;
2142 unsigned BOEN : 1;
2143 unsigned SCIE : 1;
2144 unsigned PCIE : 1;
2145 unsigned ACKTIM : 1;
2146 } __SSP1CON3bits_t;
2148 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
2150 #define _DHEN 0x01
2151 #define _AHEN 0x02
2152 #define _SBCDE 0x04
2153 #define _SDAHT 0x08
2154 #define _BOEN 0x10
2155 #define _SCIE 0x20
2156 #define _PCIE 0x40
2157 #define _ACKTIM 0x80
2159 //==============================================================================
2162 //==============================================================================
2163 // SSPCON3 Bits
2165 extern __at(0x0217) __sfr SSPCON3;
2167 typedef struct
2169 unsigned DHEN : 1;
2170 unsigned AHEN : 1;
2171 unsigned SBCDE : 1;
2172 unsigned SDAHT : 1;
2173 unsigned BOEN : 1;
2174 unsigned SCIE : 1;
2175 unsigned PCIE : 1;
2176 unsigned ACKTIM : 1;
2177 } __SSPCON3bits_t;
2179 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
2181 #define _SSPCON3_DHEN 0x01
2182 #define _SSPCON3_AHEN 0x02
2183 #define _SSPCON3_SBCDE 0x04
2184 #define _SSPCON3_SDAHT 0x08
2185 #define _SSPCON3_BOEN 0x10
2186 #define _SSPCON3_SCIE 0x20
2187 #define _SSPCON3_PCIE 0x40
2188 #define _SSPCON3_ACKTIM 0x80
2190 //==============================================================================
2193 //==============================================================================
2194 // ODCONA Bits
2196 extern __at(0x028C) __sfr ODCONA;
2198 typedef struct
2200 unsigned ODA0 : 1;
2201 unsigned ODA1 : 1;
2202 unsigned ODA2 : 1;
2203 unsigned : 1;
2204 unsigned ODA4 : 1;
2205 unsigned ODA5 : 1;
2206 unsigned : 1;
2207 unsigned : 1;
2208 } __ODCONAbits_t;
2210 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
2212 #define _ODA0 0x01
2213 #define _ODA1 0x02
2214 #define _ODA2 0x04
2215 #define _ODA4 0x10
2216 #define _ODA5 0x20
2218 //==============================================================================
2221 //==============================================================================
2222 // ODCONC Bits
2224 extern __at(0x028E) __sfr ODCONC;
2226 typedef union
2228 struct
2230 unsigned ODC0 : 1;
2231 unsigned ODC1 : 1;
2232 unsigned ODC2 : 1;
2233 unsigned ODC3 : 1;
2234 unsigned ODC4 : 1;
2235 unsigned ODC5 : 1;
2236 unsigned : 1;
2237 unsigned : 1;
2240 struct
2242 unsigned ODC : 6;
2243 unsigned : 2;
2245 } __ODCONCbits_t;
2247 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
2249 #define _ODC0 0x01
2250 #define _ODC1 0x02
2251 #define _ODC2 0x04
2252 #define _ODC3 0x08
2253 #define _ODC4 0x10
2254 #define _ODC5 0x20
2256 //==============================================================================
2258 extern __at(0x0291) __sfr CCPR1;
2259 extern __at(0x0291) __sfr CCPR1L;
2260 extern __at(0x0292) __sfr CCPR1H;
2262 //==============================================================================
2263 // CCP1CON Bits
2265 extern __at(0x0293) __sfr CCP1CON;
2267 typedef union
2269 struct
2271 unsigned CCP1M0 : 1;
2272 unsigned CCP1M1 : 1;
2273 unsigned CCP1M2 : 1;
2274 unsigned CCP1M3 : 1;
2275 unsigned DC1B0 : 1;
2276 unsigned DC1B1 : 1;
2277 unsigned : 1;
2278 unsigned : 1;
2281 struct
2283 unsigned : 1;
2284 unsigned : 1;
2285 unsigned : 1;
2286 unsigned : 1;
2287 unsigned CCP1Y : 1;
2288 unsigned CCP1X : 1;
2289 unsigned : 1;
2290 unsigned : 1;
2293 struct
2295 unsigned CCP1M : 4;
2296 unsigned : 4;
2299 struct
2301 unsigned : 4;
2302 unsigned DC1B : 2;
2303 unsigned : 2;
2305 } __CCP1CONbits_t;
2307 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
2309 #define _CCP1M0 0x01
2310 #define _CCP1M1 0x02
2311 #define _CCP1M2 0x04
2312 #define _CCP1M3 0x08
2313 #define _DC1B0 0x10
2314 #define _CCP1Y 0x10
2315 #define _DC1B1 0x20
2316 #define _CCP1X 0x20
2318 //==============================================================================
2321 //==============================================================================
2322 // ECCP1CON Bits
2324 extern __at(0x0293) __sfr ECCP1CON;
2326 typedef union
2328 struct
2330 unsigned CCP1M0 : 1;
2331 unsigned CCP1M1 : 1;
2332 unsigned CCP1M2 : 1;
2333 unsigned CCP1M3 : 1;
2334 unsigned DC1B0 : 1;
2335 unsigned DC1B1 : 1;
2336 unsigned : 1;
2337 unsigned : 1;
2340 struct
2342 unsigned : 1;
2343 unsigned : 1;
2344 unsigned : 1;
2345 unsigned : 1;
2346 unsigned CCP1Y : 1;
2347 unsigned CCP1X : 1;
2348 unsigned : 1;
2349 unsigned : 1;
2352 struct
2354 unsigned CCP1M : 4;
2355 unsigned : 4;
2358 struct
2360 unsigned : 4;
2361 unsigned DC1B : 2;
2362 unsigned : 2;
2364 } __ECCP1CONbits_t;
2366 extern __at(0x0293) volatile __ECCP1CONbits_t ECCP1CONbits;
2368 #define _ECCP1CON_CCP1M0 0x01
2369 #define _ECCP1CON_CCP1M1 0x02
2370 #define _ECCP1CON_CCP1M2 0x04
2371 #define _ECCP1CON_CCP1M3 0x08
2372 #define _ECCP1CON_DC1B0 0x10
2373 #define _ECCP1CON_CCP1Y 0x10
2374 #define _ECCP1CON_DC1B1 0x20
2375 #define _ECCP1CON_CCP1X 0x20
2377 //==============================================================================
2379 extern __at(0x0298) __sfr CCPR2;
2380 extern __at(0x0298) __sfr CCPR2L;
2381 extern __at(0x0299) __sfr CCPR2H;
2383 //==============================================================================
2384 // CCP2CON Bits
2386 extern __at(0x029A) __sfr CCP2CON;
2388 typedef union
2390 struct
2392 unsigned CCP2M0 : 1;
2393 unsigned CCP2M1 : 1;
2394 unsigned CCP2M2 : 1;
2395 unsigned CCP2M3 : 1;
2396 unsigned DC2B0 : 1;
2397 unsigned DC2B1 : 1;
2398 unsigned : 1;
2399 unsigned : 1;
2402 struct
2404 unsigned : 1;
2405 unsigned : 1;
2406 unsigned : 1;
2407 unsigned : 1;
2408 unsigned CCP2Y : 1;
2409 unsigned CCP2X : 1;
2410 unsigned : 1;
2411 unsigned : 1;
2414 struct
2416 unsigned CCP2M : 4;
2417 unsigned : 4;
2420 struct
2422 unsigned : 4;
2423 unsigned DC2B : 2;
2424 unsigned : 2;
2426 } __CCP2CONbits_t;
2428 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
2430 #define _CCP2M0 0x01
2431 #define _CCP2M1 0x02
2432 #define _CCP2M2 0x04
2433 #define _CCP2M3 0x08
2434 #define _DC2B0 0x10
2435 #define _CCP2Y 0x10
2436 #define _DC2B1 0x20
2437 #define _CCP2X 0x20
2439 //==============================================================================
2442 //==============================================================================
2443 // ECCP2CON Bits
2445 extern __at(0x029A) __sfr ECCP2CON;
2447 typedef union
2449 struct
2451 unsigned CCP2M0 : 1;
2452 unsigned CCP2M1 : 1;
2453 unsigned CCP2M2 : 1;
2454 unsigned CCP2M3 : 1;
2455 unsigned DC2B0 : 1;
2456 unsigned DC2B1 : 1;
2457 unsigned : 1;
2458 unsigned : 1;
2461 struct
2463 unsigned : 1;
2464 unsigned : 1;
2465 unsigned : 1;
2466 unsigned : 1;
2467 unsigned CCP2Y : 1;
2468 unsigned CCP2X : 1;
2469 unsigned : 1;
2470 unsigned : 1;
2473 struct
2475 unsigned CCP2M : 4;
2476 unsigned : 4;
2479 struct
2481 unsigned : 4;
2482 unsigned DC2B : 2;
2483 unsigned : 2;
2485 } __ECCP2CONbits_t;
2487 extern __at(0x029A) volatile __ECCP2CONbits_t ECCP2CONbits;
2489 #define _ECCP2CON_CCP2M0 0x01
2490 #define _ECCP2CON_CCP2M1 0x02
2491 #define _ECCP2CON_CCP2M2 0x04
2492 #define _ECCP2CON_CCP2M3 0x08
2493 #define _ECCP2CON_DC2B0 0x10
2494 #define _ECCP2CON_CCP2Y 0x10
2495 #define _ECCP2CON_DC2B1 0x20
2496 #define _ECCP2CON_CCP2X 0x20
2498 //==============================================================================
2501 //==============================================================================
2502 // SLRCONA Bits
2504 extern __at(0x030C) __sfr SLRCONA;
2506 typedef struct
2508 unsigned SLRA0 : 1;
2509 unsigned SLRA1 : 1;
2510 unsigned SLRA2 : 1;
2511 unsigned : 1;
2512 unsigned SLRA4 : 1;
2513 unsigned SLRA5 : 1;
2514 unsigned : 1;
2515 unsigned : 1;
2516 } __SLRCONAbits_t;
2518 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
2520 #define _SLRA0 0x01
2521 #define _SLRA1 0x02
2522 #define _SLRA2 0x04
2523 #define _SLRA4 0x10
2524 #define _SLRA5 0x20
2526 //==============================================================================
2529 //==============================================================================
2530 // SLRCONC Bits
2532 extern __at(0x030E) __sfr SLRCONC;
2534 typedef union
2536 struct
2538 unsigned SLRC0 : 1;
2539 unsigned SLRC1 : 1;
2540 unsigned SLRC2 : 1;
2541 unsigned SLRC3 : 1;
2542 unsigned SLRC4 : 1;
2543 unsigned SLRC5 : 1;
2544 unsigned : 1;
2545 unsigned : 1;
2548 struct
2550 unsigned SLRC : 6;
2551 unsigned : 2;
2553 } __SLRCONCbits_t;
2555 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
2557 #define _SLRC0 0x01
2558 #define _SLRC1 0x02
2559 #define _SLRC2 0x04
2560 #define _SLRC3 0x08
2561 #define _SLRC4 0x10
2562 #define _SLRC5 0x20
2564 //==============================================================================
2567 //==============================================================================
2568 // INLVLA Bits
2570 extern __at(0x038C) __sfr INLVLA;
2572 typedef union
2574 struct
2576 unsigned INLVLA0 : 1;
2577 unsigned INLVLA1 : 1;
2578 unsigned INLVLA2 : 1;
2579 unsigned INLVLA3 : 1;
2580 unsigned INLVLA4 : 1;
2581 unsigned INLVLA5 : 1;
2582 unsigned : 1;
2583 unsigned : 1;
2586 struct
2588 unsigned INLVLA : 6;
2589 unsigned : 2;
2591 } __INLVLAbits_t;
2593 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
2595 #define _INLVLA0 0x01
2596 #define _INLVLA1 0x02
2597 #define _INLVLA2 0x04
2598 #define _INLVLA3 0x08
2599 #define _INLVLA4 0x10
2600 #define _INLVLA5 0x20
2602 //==============================================================================
2605 //==============================================================================
2606 // INLVLC Bits
2608 extern __at(0x038E) __sfr INLVLC;
2610 typedef union
2612 struct
2614 unsigned INLVLC0 : 1;
2615 unsigned INLVLC1 : 1;
2616 unsigned INLVLC2 : 1;
2617 unsigned INLVLC3 : 1;
2618 unsigned INLVLC4 : 1;
2619 unsigned INLVLC5 : 1;
2620 unsigned : 1;
2621 unsigned : 1;
2624 struct
2626 unsigned INLVLC : 6;
2627 unsigned : 2;
2629 } __INLVLCbits_t;
2631 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
2633 #define _INLVLC0 0x01
2634 #define _INLVLC1 0x02
2635 #define _INLVLC2 0x04
2636 #define _INLVLC3 0x08
2637 #define _INLVLC4 0x10
2638 #define _INLVLC5 0x20
2640 //==============================================================================
2643 //==============================================================================
2644 // IOCAP Bits
2646 extern __at(0x0391) __sfr IOCAP;
2648 typedef union
2650 struct
2652 unsigned IOCAP0 : 1;
2653 unsigned IOCAP1 : 1;
2654 unsigned IOCAP2 : 1;
2655 unsigned IOCAP3 : 1;
2656 unsigned IOCAP4 : 1;
2657 unsigned IOCAP5 : 1;
2658 unsigned : 1;
2659 unsigned : 1;
2662 struct
2664 unsigned IOCAP : 6;
2665 unsigned : 2;
2667 } __IOCAPbits_t;
2669 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
2671 #define _IOCAP0 0x01
2672 #define _IOCAP1 0x02
2673 #define _IOCAP2 0x04
2674 #define _IOCAP3 0x08
2675 #define _IOCAP4 0x10
2676 #define _IOCAP5 0x20
2678 //==============================================================================
2681 //==============================================================================
2682 // IOCAN Bits
2684 extern __at(0x0392) __sfr IOCAN;
2686 typedef union
2688 struct
2690 unsigned IOCAN0 : 1;
2691 unsigned IOCAN1 : 1;
2692 unsigned IOCAN2 : 1;
2693 unsigned IOCAN3 : 1;
2694 unsigned IOCAN4 : 1;
2695 unsigned IOCAN5 : 1;
2696 unsigned : 1;
2697 unsigned : 1;
2700 struct
2702 unsigned IOCAN : 6;
2703 unsigned : 2;
2705 } __IOCANbits_t;
2707 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
2709 #define _IOCAN0 0x01
2710 #define _IOCAN1 0x02
2711 #define _IOCAN2 0x04
2712 #define _IOCAN3 0x08
2713 #define _IOCAN4 0x10
2714 #define _IOCAN5 0x20
2716 //==============================================================================
2719 //==============================================================================
2720 // IOCAF Bits
2722 extern __at(0x0393) __sfr IOCAF;
2724 typedef union
2726 struct
2728 unsigned IOCAF0 : 1;
2729 unsigned IOCAF1 : 1;
2730 unsigned IOCAF2 : 1;
2731 unsigned IOCAF3 : 1;
2732 unsigned IOCAF4 : 1;
2733 unsigned IOCAF5 : 1;
2734 unsigned : 1;
2735 unsigned : 1;
2738 struct
2740 unsigned IOCAF : 6;
2741 unsigned : 2;
2743 } __IOCAFbits_t;
2745 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
2747 #define _IOCAF0 0x01
2748 #define _IOCAF1 0x02
2749 #define _IOCAF2 0x04
2750 #define _IOCAF3 0x08
2751 #define _IOCAF4 0x10
2752 #define _IOCAF5 0x20
2754 //==============================================================================
2757 //==============================================================================
2758 // IOCCP Bits
2760 extern __at(0x0397) __sfr IOCCP;
2762 typedef union
2764 struct
2766 unsigned IOCCP0 : 1;
2767 unsigned IOCCP1 : 1;
2768 unsigned IOCCP2 : 1;
2769 unsigned IOCCP3 : 1;
2770 unsigned IOCCP4 : 1;
2771 unsigned IOCCP5 : 1;
2772 unsigned : 1;
2773 unsigned : 1;
2776 struct
2778 unsigned IOCCP : 6;
2779 unsigned : 2;
2781 } __IOCCPbits_t;
2783 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
2785 #define _IOCCP0 0x01
2786 #define _IOCCP1 0x02
2787 #define _IOCCP2 0x04
2788 #define _IOCCP3 0x08
2789 #define _IOCCP4 0x10
2790 #define _IOCCP5 0x20
2792 //==============================================================================
2795 //==============================================================================
2796 // IOCCN Bits
2798 extern __at(0x0398) __sfr IOCCN;
2800 typedef union
2802 struct
2804 unsigned IOCCN0 : 1;
2805 unsigned IOCCN1 : 1;
2806 unsigned IOCCN2 : 1;
2807 unsigned IOCCN3 : 1;
2808 unsigned IOCCN4 : 1;
2809 unsigned IOCCN5 : 1;
2810 unsigned : 1;
2811 unsigned : 1;
2814 struct
2816 unsigned IOCCN : 6;
2817 unsigned : 2;
2819 } __IOCCNbits_t;
2821 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
2823 #define _IOCCN0 0x01
2824 #define _IOCCN1 0x02
2825 #define _IOCCN2 0x04
2826 #define _IOCCN3 0x08
2827 #define _IOCCN4 0x10
2828 #define _IOCCN5 0x20
2830 //==============================================================================
2833 //==============================================================================
2834 // IOCCF Bits
2836 extern __at(0x0399) __sfr IOCCF;
2838 typedef union
2840 struct
2842 unsigned IOCCF0 : 1;
2843 unsigned IOCCF1 : 1;
2844 unsigned IOCCF2 : 1;
2845 unsigned IOCCF3 : 1;
2846 unsigned IOCCF4 : 1;
2847 unsigned IOCCF5 : 1;
2848 unsigned : 1;
2849 unsigned : 1;
2852 struct
2854 unsigned IOCCF : 6;
2855 unsigned : 2;
2857 } __IOCCFbits_t;
2859 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
2861 #define _IOCCF0 0x01
2862 #define _IOCCF1 0x02
2863 #define _IOCCF2 0x04
2864 #define _IOCCF3 0x08
2865 #define _IOCCF4 0x10
2866 #define _IOCCF5 0x20
2868 //==============================================================================
2871 //==============================================================================
2872 // OPA1CON Bits
2874 extern __at(0x0511) __sfr OPA1CON;
2876 typedef union
2878 struct
2880 unsigned OPA1PCH0 : 1;
2881 unsigned OPA1PCH1 : 1;
2882 unsigned : 1;
2883 unsigned : 1;
2884 unsigned OPA1UG : 1;
2885 unsigned : 1;
2886 unsigned OPA1SP : 1;
2887 unsigned OPA1EN : 1;
2890 struct
2892 unsigned OPA1PCH : 2;
2893 unsigned : 6;
2895 } __OPA1CONbits_t;
2897 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
2899 #define _OPA1PCH0 0x01
2900 #define _OPA1PCH1 0x02
2901 #define _OPA1UG 0x10
2902 #define _OPA1SP 0x40
2903 #define _OPA1EN 0x80
2905 //==============================================================================
2908 //==============================================================================
2909 // OPA2CON Bits
2911 extern __at(0x0515) __sfr OPA2CON;
2913 typedef union
2915 struct
2917 unsigned OPA2PCH0 : 1;
2918 unsigned OPA2PCH1 : 1;
2919 unsigned : 1;
2920 unsigned : 1;
2921 unsigned OPA2UG : 1;
2922 unsigned : 1;
2923 unsigned OPA2SP : 1;
2924 unsigned OPA2EN : 1;
2927 struct
2929 unsigned OPA2PCH : 2;
2930 unsigned : 6;
2932 } __OPA2CONbits_t;
2934 extern __at(0x0515) volatile __OPA2CONbits_t OPA2CONbits;
2936 #define _OPA2PCH0 0x01
2937 #define _OPA2PCH1 0x02
2938 #define _OPA2UG 0x10
2939 #define _OPA2SP 0x40
2940 #define _OPA2EN 0x80
2942 //==============================================================================
2945 //==============================================================================
2946 // PPSLOCK Bits
2948 extern __at(0x0E0F) __sfr PPSLOCK;
2950 typedef struct
2952 unsigned PPSLOCKED : 1;
2953 unsigned : 1;
2954 unsigned : 1;
2955 unsigned : 1;
2956 unsigned : 1;
2957 unsigned : 1;
2958 unsigned : 1;
2959 unsigned : 1;
2960 } __PPSLOCKbits_t;
2962 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
2964 #define _PPSLOCKED 0x01
2966 //==============================================================================
2968 extern __at(0x0E10) __sfr INTPPS;
2969 extern __at(0x0E11) __sfr T0CKIPPS;
2970 extern __at(0x0E12) __sfr T1CKIPPS;
2971 extern __at(0x0E13) __sfr T1GPPS;
2972 extern __at(0x0E14) __sfr CCP1PPS;
2973 extern __at(0x0E15) __sfr CCP2PPS;
2974 extern __at(0x0E20) __sfr SSPCLKPPS;
2975 extern __at(0x0E21) __sfr SSPDATPPS;
2976 extern __at(0x0E22) __sfr SSPSSPPS;
2977 extern __at(0x0E90) __sfr RA0PPS;
2978 extern __at(0x0E91) __sfr RA1PPS;
2979 extern __at(0x0E92) __sfr RA2PPS;
2980 extern __at(0x0E94) __sfr RA4PPS;
2981 extern __at(0x0E95) __sfr RA5PPS;
2982 extern __at(0x0EA0) __sfr RC0PPS;
2983 extern __at(0x0EA1) __sfr RC1PPS;
2984 extern __at(0x0EA2) __sfr RC2PPS;
2985 extern __at(0x0EA3) __sfr RC3PPS;
2986 extern __at(0x0EA4) __sfr RC4PPS;
2987 extern __at(0x0EA5) __sfr RC5PPS;
2989 //==============================================================================
2990 // ICDBK0H Bits
2992 extern __at(0x0F9E) __sfr ICDBK0H;
2994 typedef struct
2996 unsigned BKA8 : 1;
2997 unsigned BKA9 : 1;
2998 unsigned BKA10 : 1;
2999 unsigned BKA11 : 1;
3000 unsigned BKA12 : 1;
3001 unsigned BKA13 : 1;
3002 unsigned BKA14 : 1;
3003 unsigned : 1;
3004 } __ICDBK0Hbits_t;
3006 extern __at(0x0F9E) volatile __ICDBK0Hbits_t ICDBK0Hbits;
3008 #define _BKA8 0x01
3009 #define _BKA9 0x02
3010 #define _BKA10 0x04
3011 #define _BKA11 0x08
3012 #define _BKA12 0x10
3013 #define _BKA13 0x20
3014 #define _BKA14 0x40
3016 //==============================================================================
3019 //==============================================================================
3020 // STATUS_SHAD Bits
3022 extern __at(0x0FE4) __sfr STATUS_SHAD;
3024 typedef struct
3026 unsigned C_SHAD : 1;
3027 unsigned DC_SHAD : 1;
3028 unsigned Z_SHAD : 1;
3029 unsigned : 1;
3030 unsigned : 1;
3031 unsigned : 1;
3032 unsigned : 1;
3033 unsigned : 1;
3034 } __STATUS_SHADbits_t;
3036 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
3038 #define _C_SHAD 0x01
3039 #define _DC_SHAD 0x02
3040 #define _Z_SHAD 0x04
3042 //==============================================================================
3044 extern __at(0x0FE5) __sfr WREG_SHAD;
3045 extern __at(0x0FE6) __sfr BSR_SHAD;
3046 extern __at(0x0FE7) __sfr PCLATH_SHAD;
3047 extern __at(0x0FE8) __sfr FSR0L_SHAD;
3048 extern __at(0x0FE9) __sfr FSR0H_SHAD;
3049 extern __at(0x0FEA) __sfr FSR1L_SHAD;
3050 extern __at(0x0FEB) __sfr FSR1H_SHAD;
3051 extern __at(0x0FED) __sfr STKPTR;
3052 extern __at(0x0FEE) __sfr TOSL;
3053 extern __at(0x0FEF) __sfr TOSH;
3055 //==============================================================================
3057 // Configuration Bits
3059 //==============================================================================
3061 #define _CONFIG1 0x8007
3062 #define _CONFIG2 0x8008
3064 //----------------------------- CONFIG1 Options -------------------------------
3066 #define _FOSC_INTOSC 0x3FFC // Internal HFINTOSC. I/O function on RA4 and RA5.
3067 #define _FOSC_ECL 0x3FFD // External oscillator, low power. I/O function on RA4.
3068 #define _FOSC_ECM 0x3FFE // External oscillator, medium power. I/O function on RA4.
3069 #define _FOSC_ECH 0x3FFF // External oscillator, high power. I/O function on RA4.
3070 #define _WDTE_OFF 0x3FE7 // WDT disabled.
3071 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
3072 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
3073 #define _WDTE_ON 0x3FFF // WDT enabled.
3074 #define _PWRTE_ON 0x3FDF // PWRT enabled.
3075 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
3076 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
3077 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
3078 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
3079 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
3080 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
3081 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
3082 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
3083 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
3084 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
3085 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
3087 //----------------------------- CONFIG2 Options -------------------------------
3089 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
3090 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
3091 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
3092 #define _WRT_OFF 0x3FFF // Write protection off.
3093 #define _PPS1WAY_OFF 0x3FFB // The PPSLOCK bit can be set and cleared repeatedly by software.
3094 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit cannot be cleared once it is set by software.
3095 #define _ZCDDIS_OFF 0x3F7F // Zero-cross detect circuit is enabled at POR.
3096 #define _ZCDDIS_ON 0x3FFF // Zero-cross detect circuit is disabled at POR.
3097 #define _PLLEN_OFF 0x3EFF // 4x PLL is enabled when software sets the SPLLEN bit.
3098 #define _PLLEN_ON 0x3FFF // 4x PLL is always enabled.
3099 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
3100 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
3101 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
3102 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
3103 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
3104 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
3105 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
3106 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
3107 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
3108 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
3110 //==============================================================================
3112 #define _DEVID1 0x8006
3114 #define _IDLOC0 0x8000
3115 #define _IDLOC1 0x8001
3116 #define _IDLOC2 0x8002
3117 #define _IDLOC3 0x8003
3119 //==============================================================================
3121 #ifndef NO_BIT_DEFINES
3123 #define ADON ADCON0bits.ADON // bit 0
3124 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
3125 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
3126 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
3127 #define CHS0 ADCON0bits.CHS0 // bit 2
3128 #define CHS1 ADCON0bits.CHS1 // bit 3
3129 #define CHS2 ADCON0bits.CHS2 // bit 4
3130 #define CHS3 ADCON0bits.CHS3 // bit 5
3131 #define CHS4 ADCON0bits.CHS4 // bit 6
3133 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
3134 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
3135 #define ADNREF ADCON1bits.ADNREF // bit 2
3136 #define ADFM ADCON1bits.ADFM // bit 7
3138 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
3139 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
3140 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
3141 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
3143 #define ANSA0 ANSELAbits.ANSA0 // bit 0
3144 #define ANSA1 ANSELAbits.ANSA1 // bit 1
3145 #define ANSA2 ANSELAbits.ANSA2 // bit 2
3146 #define ANSA4 ANSELAbits.ANSA4 // bit 4
3148 #define ANSC0 ANSELCbits.ANSC0 // bit 0
3149 #define ANSC1 ANSELCbits.ANSC1 // bit 1
3150 #define ANSC2 ANSELCbits.ANSC2 // bit 2
3151 #define ANSC3 ANSELCbits.ANSC3 // bit 3
3152 #define ANSC4 ANSELCbits.ANSC4 // bit 4
3153 #define ANSC5 ANSELCbits.ANSC5 // bit 5
3155 #define BORRDY BORCONbits.BORRDY // bit 0
3156 #define BORFS BORCONbits.BORFS // bit 6
3157 #define SBOREN BORCONbits.SBOREN // bit 7
3159 #define BSR0 BSRbits.BSR0 // bit 0
3160 #define BSR1 BSRbits.BSR1 // bit 1
3161 #define BSR2 BSRbits.BSR2 // bit 2
3162 #define BSR3 BSRbits.BSR3 // bit 3
3163 #define BSR4 BSRbits.BSR4 // bit 4
3165 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
3166 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
3167 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
3168 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
3169 #define DC1B0 CCP1CONbits.DC1B0 // bit 4, shadows bit in CCP1CONbits
3170 #define CCP1Y CCP1CONbits.CCP1Y // bit 4, shadows bit in CCP1CONbits
3171 #define DC1B1 CCP1CONbits.DC1B1 // bit 5, shadows bit in CCP1CONbits
3172 #define CCP1X CCP1CONbits.CCP1X // bit 5, shadows bit in CCP1CONbits
3174 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
3175 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
3176 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
3177 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
3178 #define DC2B0 CCP2CONbits.DC2B0 // bit 4, shadows bit in CCP2CONbits
3179 #define CCP2Y CCP2CONbits.CCP2Y // bit 4, shadows bit in CCP2CONbits
3180 #define DC2B1 CCP2CONbits.DC2B1 // bit 5, shadows bit in CCP2CONbits
3181 #define CCP2X CCP2CONbits.CCP2X // bit 5, shadows bit in CCP2CONbits
3183 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
3184 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
3185 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
3186 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
3187 #define TSRNG FVRCONbits.TSRNG // bit 4
3188 #define TSEN FVRCONbits.TSEN // bit 5
3189 #define FVRRDY FVRCONbits.FVRRDY // bit 6
3190 #define FVREN FVRCONbits.FVREN // bit 7
3192 #define BKA8 ICDBK0Hbits.BKA8 // bit 0
3193 #define BKA9 ICDBK0Hbits.BKA9 // bit 1
3194 #define BKA10 ICDBK0Hbits.BKA10 // bit 2
3195 #define BKA11 ICDBK0Hbits.BKA11 // bit 3
3196 #define BKA12 ICDBK0Hbits.BKA12 // bit 4
3197 #define BKA13 ICDBK0Hbits.BKA13 // bit 5
3198 #define BKA14 ICDBK0Hbits.BKA14 // bit 6
3200 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
3201 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
3202 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
3203 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
3204 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
3205 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
3207 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
3208 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
3209 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
3210 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
3211 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
3212 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
3214 #define IOCIF INTCONbits.IOCIF // bit 0
3215 #define INTF INTCONbits.INTF // bit 1
3216 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
3217 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
3218 #define IOCIE INTCONbits.IOCIE // bit 3
3219 #define INTE INTCONbits.INTE // bit 4
3220 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
3221 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
3222 #define PEIE INTCONbits.PEIE // bit 6
3223 #define GIE INTCONbits.GIE // bit 7
3225 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
3226 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
3227 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
3228 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
3229 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
3230 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
3232 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
3233 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
3234 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
3235 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
3236 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
3237 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
3239 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
3240 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
3241 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
3242 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
3243 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
3244 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
3246 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
3247 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
3248 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
3249 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
3250 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
3251 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
3253 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
3254 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
3255 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
3256 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
3257 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
3258 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
3260 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
3261 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
3262 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
3263 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
3264 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
3265 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
3267 #define LATA0 LATAbits.LATA0 // bit 0
3268 #define LATA1 LATAbits.LATA1 // bit 1
3269 #define LATA2 LATAbits.LATA2 // bit 2
3270 #define LATA4 LATAbits.LATA4 // bit 4
3271 #define LATA5 LATAbits.LATA5 // bit 5
3273 #define LATC0 LATCbits.LATC0 // bit 0
3274 #define LATC1 LATCbits.LATC1 // bit 1
3275 #define LATC2 LATCbits.LATC2 // bit 2
3276 #define LATC3 LATCbits.LATC3 // bit 3
3277 #define LATC4 LATCbits.LATC4 // bit 4
3278 #define LATC5 LATCbits.LATC5 // bit 5
3280 #define ODA0 ODCONAbits.ODA0 // bit 0
3281 #define ODA1 ODCONAbits.ODA1 // bit 1
3282 #define ODA2 ODCONAbits.ODA2 // bit 2
3283 #define ODA4 ODCONAbits.ODA4 // bit 4
3284 #define ODA5 ODCONAbits.ODA5 // bit 5
3286 #define ODC0 ODCONCbits.ODC0 // bit 0
3287 #define ODC1 ODCONCbits.ODC1 // bit 1
3288 #define ODC2 ODCONCbits.ODC2 // bit 2
3289 #define ODC3 ODCONCbits.ODC3 // bit 3
3290 #define ODC4 ODCONCbits.ODC4 // bit 4
3291 #define ODC5 ODCONCbits.ODC5 // bit 5
3293 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0
3294 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1
3295 #define OPA1UG OPA1CONbits.OPA1UG // bit 4
3296 #define OPA1SP OPA1CONbits.OPA1SP // bit 6
3297 #define OPA1EN OPA1CONbits.OPA1EN // bit 7
3299 #define OPA2PCH0 OPA2CONbits.OPA2PCH0 // bit 0
3300 #define OPA2PCH1 OPA2CONbits.OPA2PCH1 // bit 1
3301 #define OPA2UG OPA2CONbits.OPA2UG // bit 4
3302 #define OPA2SP OPA2CONbits.OPA2SP // bit 6
3303 #define OPA2EN OPA2CONbits.OPA2EN // bit 7
3305 #define PS0 OPTION_REGbits.PS0 // bit 0
3306 #define PS1 OPTION_REGbits.PS1 // bit 1
3307 #define PS2 OPTION_REGbits.PS2 // bit 2
3308 #define PSA OPTION_REGbits.PSA // bit 3
3309 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
3310 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
3311 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
3312 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
3313 #define INTEDG OPTION_REGbits.INTEDG // bit 6
3314 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
3316 #define SCS0 OSCCONbits.SCS0 // bit 0
3317 #define SCS1 OSCCONbits.SCS1 // bit 1
3318 #define IRCF0 OSCCONbits.IRCF0 // bit 3
3319 #define IRCF1 OSCCONbits.IRCF1 // bit 4
3320 #define IRCF2 OSCCONbits.IRCF2 // bit 5
3321 #define IRCF3 OSCCONbits.IRCF3 // bit 6
3322 #define SPLLEN OSCCONbits.SPLLEN // bit 7
3324 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
3325 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
3326 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
3327 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
3328 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
3329 #define OSTS OSCSTATbits.OSTS // bit 5
3330 #define PLLR OSCSTATbits.PLLR // bit 6
3331 #define SOSCR OSCSTATbits.SOSCR // bit 7
3333 #define TUN0 OSCTUNEbits.TUN0 // bit 0
3334 #define TUN1 OSCTUNEbits.TUN1 // bit 1
3335 #define TUN2 OSCTUNEbits.TUN2 // bit 2
3336 #define TUN3 OSCTUNEbits.TUN3 // bit 3
3337 #define TUN4 OSCTUNEbits.TUN4 // bit 4
3338 #define TUN5 OSCTUNEbits.TUN5 // bit 5
3340 #define NOT_BOR PCONbits.NOT_BOR // bit 0
3341 #define NOT_POR PCONbits.NOT_POR // bit 1
3342 #define NOT_RI PCONbits.NOT_RI // bit 2
3343 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
3344 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
3345 #define STKUNF PCONbits.STKUNF // bit 6
3346 #define STKOVF PCONbits.STKOVF // bit 7
3348 #define TMR1IE PIE1bits.TMR1IE // bit 0
3349 #define TMR2IE PIE1bits.TMR2IE // bit 1
3350 #define CCP1IE PIE1bits.CCP1IE // bit 2, shadows bit in PIE1bits
3351 #define CCPIE PIE1bits.CCPIE // bit 2, shadows bit in PIE1bits
3352 #define SSP1IE PIE1bits.SSP1IE // bit 3
3353 #define ADIE PIE1bits.ADIE // bit 6
3354 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
3356 #define CCP2IE PIE2bits.CCP2IE // bit 0
3357 #define BCL1IE PIE2bits.BCL1IE // bit 3
3359 #define ZCDIE PIE3bits.ZCDIE // bit 4
3361 #define TMR1IF PIR1bits.TMR1IF // bit 0
3362 #define TMR2IF PIR1bits.TMR2IF // bit 1
3363 #define CCP1IF PIR1bits.CCP1IF // bit 2, shadows bit in PIR1bits
3364 #define CCPIF PIR1bits.CCPIF // bit 2, shadows bit in PIR1bits
3365 #define SSP1IF PIR1bits.SSP1IF // bit 3
3366 #define ADIF PIR1bits.ADIF // bit 6
3367 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
3369 #define CCP2IF PIR2bits.CCP2IF // bit 0
3370 #define BCL1IF PIR2bits.BCL1IF // bit 3
3372 #define ZCDIF PIR3bits.ZCDIF // bit 4
3374 #define RD PMCON1bits.RD // bit 0
3375 #define WR PMCON1bits.WR // bit 1
3376 #define WREN PMCON1bits.WREN // bit 2
3377 #define WRERR PMCON1bits.WRERR // bit 3
3378 #define FREE PMCON1bits.FREE // bit 4
3379 #define LWLO PMCON1bits.LWLO // bit 5
3380 #define CFGS PMCON1bits.CFGS // bit 6
3382 #define RA0 PORTAbits.RA0 // bit 0
3383 #define RA1 PORTAbits.RA1 // bit 1
3384 #define RA2 PORTAbits.RA2 // bit 2
3385 #define RA3 PORTAbits.RA3 // bit 3
3386 #define RA4 PORTAbits.RA4 // bit 4
3387 #define RA5 PORTAbits.RA5 // bit 5
3389 #define RC0 PORTCbits.RC0 // bit 0
3390 #define RC1 PORTCbits.RC1 // bit 1
3391 #define RC2 PORTCbits.RC2 // bit 2
3392 #define RC3 PORTCbits.RC3 // bit 3
3393 #define RC4 PORTCbits.RC4 // bit 4
3394 #define RC5 PORTCbits.RC5 // bit 5
3396 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
3398 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
3399 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
3400 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
3401 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
3402 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
3404 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
3405 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
3406 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
3407 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
3408 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
3409 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
3411 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
3412 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
3413 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
3414 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
3415 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
3416 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
3417 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
3418 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
3419 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
3420 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
3421 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
3422 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
3423 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
3424 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
3425 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
3426 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
3428 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
3429 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
3430 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
3431 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
3432 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
3433 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
3434 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
3435 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
3436 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
3437 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
3438 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
3439 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
3440 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
3441 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
3442 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
3443 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
3445 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
3446 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
3447 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
3448 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
3449 #define CKP SSP1CONbits.CKP // bit 4
3450 #define SSPEN SSP1CONbits.SSPEN // bit 5
3451 #define SSPOV SSP1CONbits.SSPOV // bit 6
3452 #define WCOL SSP1CONbits.WCOL // bit 7
3454 #define SEN SSP1CON2bits.SEN // bit 0
3455 #define RSEN SSP1CON2bits.RSEN // bit 1
3456 #define PEN SSP1CON2bits.PEN // bit 2
3457 #define RCEN SSP1CON2bits.RCEN // bit 3
3458 #define ACKEN SSP1CON2bits.ACKEN // bit 4
3459 #define ACKDT SSP1CON2bits.ACKDT // bit 5
3460 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
3461 #define GCEN SSP1CON2bits.GCEN // bit 7
3463 #define DHEN SSP1CON3bits.DHEN // bit 0
3464 #define AHEN SSP1CON3bits.AHEN // bit 1
3465 #define SBCDE SSP1CON3bits.SBCDE // bit 2
3466 #define SDAHT SSP1CON3bits.SDAHT // bit 3
3467 #define BOEN SSP1CON3bits.BOEN // bit 4
3468 #define SCIE SSP1CON3bits.SCIE // bit 5
3469 #define PCIE SSP1CON3bits.PCIE // bit 6
3470 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
3472 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
3473 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
3474 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
3475 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
3476 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
3477 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
3478 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
3479 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
3480 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
3481 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
3482 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
3483 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
3484 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
3485 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
3486 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
3487 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
3489 #define BF SSP1STATbits.BF // bit 0
3490 #define UA SSP1STATbits.UA // bit 1
3491 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
3492 #define S SSP1STATbits.S // bit 3
3493 #define P SSP1STATbits.P // bit 4
3494 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
3495 #define CKE SSP1STATbits.CKE // bit 6
3496 #define SMP SSP1STATbits.SMP // bit 7
3498 #define C STATUSbits.C // bit 0
3499 #define DC STATUSbits.DC // bit 1
3500 #define Z STATUSbits.Z // bit 2
3501 #define NOT_PD STATUSbits.NOT_PD // bit 3
3502 #define NOT_TO STATUSbits.NOT_TO // bit 4
3504 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
3505 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
3506 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
3508 #define TMR1ON T1CONbits.TMR1ON // bit 0
3509 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
3510 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
3511 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
3512 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
3513 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
3514 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
3516 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
3517 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
3518 #define T1GVAL T1GCONbits.T1GVAL // bit 2
3519 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
3520 #define T1GSPM T1GCONbits.T1GSPM // bit 4
3521 #define T1GTM T1GCONbits.T1GTM // bit 5
3522 #define T1GPOL T1GCONbits.T1GPOL // bit 6
3523 #define TMR1GE T1GCONbits.TMR1GE // bit 7
3525 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
3526 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
3527 #define TMR2ON T2CONbits.TMR2ON // bit 2
3528 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
3529 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
3530 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
3531 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
3533 #define TRISA0 TRISAbits.TRISA0 // bit 0
3534 #define TRISA1 TRISAbits.TRISA1 // bit 1
3535 #define TRISA2 TRISAbits.TRISA2 // bit 2
3536 #define TRISA4 TRISAbits.TRISA4 // bit 4
3537 #define TRISA5 TRISAbits.TRISA5 // bit 5
3539 #define TRISC0 TRISCbits.TRISC0 // bit 0
3540 #define TRISC1 TRISCbits.TRISC1 // bit 1
3541 #define TRISC2 TRISCbits.TRISC2 // bit 2
3542 #define TRISC3 TRISCbits.TRISC3 // bit 3
3543 #define TRISC4 TRISCbits.TRISC4 // bit 4
3544 #define TRISC5 TRISCbits.TRISC5 // bit 5
3546 #define Reserved VREGCONbits.Reserved // bit 0
3547 #define VREGPM VREGCONbits.VREGPM // bit 1
3549 #define SWDTEN WDTCONbits.SWDTEN // bit 0
3550 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
3551 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
3552 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
3553 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
3554 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
3556 #define WPUA0 WPUAbits.WPUA0 // bit 0
3557 #define WPUA1 WPUAbits.WPUA1 // bit 1
3558 #define WPUA2 WPUAbits.WPUA2 // bit 2
3559 #define WPUA3 WPUAbits.WPUA3 // bit 3
3560 #define WPUA4 WPUAbits.WPUA4 // bit 4
3561 #define WPUA5 WPUAbits.WPUA5 // bit 5
3563 #define WPUC0 WPUCbits.WPUC0 // bit 0
3564 #define WPUC1 WPUCbits.WPUC1 // bit 1
3565 #define WPUC2 WPUCbits.WPUC2 // bit 2
3566 #define WPUC3 WPUCbits.WPUC3 // bit 3
3567 #define WPUC4 WPUCbits.WPUC4 // bit 4
3568 #define WPUC5 WPUCbits.WPUC5 // bit 5
3570 #define ZCD1INTN ZCD1CONbits.ZCD1INTN // bit 0
3571 #define ZCD1INTP ZCD1CONbits.ZCD1INTP // bit 1
3572 #define ZCD1POL ZCD1CONbits.ZCD1POL // bit 4
3573 #define ZCD1OUT ZCD1CONbits.ZCD1OUT // bit 5
3574 #define ZCD1EN ZCD1CONbits.ZCD1EN // bit 7
3576 #endif // #ifndef NO_BIT_DEFINES
3578 #endif // #ifndef __PIC16F1703_H__