struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic16 / pic18f85j94.h
blob8a4312dfe56963a1e8d99b0dcce24b9f079a20eb
1 /*
2 * This declarations of the PIC18F85J94 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:37 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 __PIC18F85J94_H__
26 #define __PIC18F85J94_H__
28 //==============================================================================
30 //==============================================================================
32 // Register Definitions
34 //==============================================================================
37 //==============================================================================
38 // UEP0 Bits
40 extern __at(0x0DFF) __sfr UEP0;
42 typedef struct
44 unsigned EPSTALL : 1;
45 unsigned EPINEN : 1;
46 unsigned EPOUTEN : 1;
47 unsigned EPCONDIS : 1;
48 unsigned EPHSHK : 1;
49 unsigned : 1;
50 unsigned : 1;
51 unsigned : 1;
52 } __UEP0bits_t;
54 extern __at(0x0DFF) volatile __UEP0bits_t UEP0bits;
56 #define _EPSTALL 0x01
57 #define _EPINEN 0x02
58 #define _EPOUTEN 0x04
59 #define _EPCONDIS 0x08
60 #define _EPHSHK 0x10
62 //==============================================================================
65 //==============================================================================
66 // UEP1 Bits
68 extern __at(0x0E00) __sfr UEP1;
70 typedef struct
72 unsigned EPSTALL : 1;
73 unsigned EPINEN : 1;
74 unsigned EPOUTEN : 1;
75 unsigned EPCONDIS : 1;
76 unsigned EPHSHK : 1;
77 unsigned : 1;
78 unsigned : 1;
79 unsigned : 1;
80 } __UEP1bits_t;
82 extern __at(0x0E00) volatile __UEP1bits_t UEP1bits;
84 #define _UEP1_EPSTALL 0x01
85 #define _UEP1_EPINEN 0x02
86 #define _UEP1_EPOUTEN 0x04
87 #define _UEP1_EPCONDIS 0x08
88 #define _UEP1_EPHSHK 0x10
90 //==============================================================================
93 //==============================================================================
94 // UEP2 Bits
96 extern __at(0x0E01) __sfr UEP2;
98 typedef struct
100 unsigned EPSTALL : 1;
101 unsigned EPINEN : 1;
102 unsigned EPOUTEN : 1;
103 unsigned EPCONDIS : 1;
104 unsigned EPHSHK : 1;
105 unsigned : 1;
106 unsigned : 1;
107 unsigned : 1;
108 } __UEP2bits_t;
110 extern __at(0x0E01) volatile __UEP2bits_t UEP2bits;
112 #define _UEP2_EPSTALL 0x01
113 #define _UEP2_EPINEN 0x02
114 #define _UEP2_EPOUTEN 0x04
115 #define _UEP2_EPCONDIS 0x08
116 #define _UEP2_EPHSHK 0x10
118 //==============================================================================
121 //==============================================================================
122 // UEP3 Bits
124 extern __at(0x0E02) __sfr UEP3;
126 typedef struct
128 unsigned EPSTALL : 1;
129 unsigned EPINEN : 1;
130 unsigned EPOUTEN : 1;
131 unsigned EPCONDIS : 1;
132 unsigned EPHSHK : 1;
133 unsigned : 1;
134 unsigned : 1;
135 unsigned : 1;
136 } __UEP3bits_t;
138 extern __at(0x0E02) volatile __UEP3bits_t UEP3bits;
140 #define _UEP3_EPSTALL 0x01
141 #define _UEP3_EPINEN 0x02
142 #define _UEP3_EPOUTEN 0x04
143 #define _UEP3_EPCONDIS 0x08
144 #define _UEP3_EPHSHK 0x10
146 //==============================================================================
149 //==============================================================================
150 // UEP4 Bits
152 extern __at(0x0E03) __sfr UEP4;
154 typedef struct
156 unsigned EPSTALL : 1;
157 unsigned EPINEN : 1;
158 unsigned EPOUTEN : 1;
159 unsigned EPCONDIS : 1;
160 unsigned EPHSHK : 1;
161 unsigned : 1;
162 unsigned : 1;
163 unsigned : 1;
164 } __UEP4bits_t;
166 extern __at(0x0E03) volatile __UEP4bits_t UEP4bits;
168 #define _UEP4_EPSTALL 0x01
169 #define _UEP4_EPINEN 0x02
170 #define _UEP4_EPOUTEN 0x04
171 #define _UEP4_EPCONDIS 0x08
172 #define _UEP4_EPHSHK 0x10
174 //==============================================================================
177 //==============================================================================
178 // UEP5 Bits
180 extern __at(0x0E04) __sfr UEP5;
182 typedef struct
184 unsigned EPSTALL : 1;
185 unsigned EPINEN : 1;
186 unsigned EPOUTEN : 1;
187 unsigned EPCONDIS : 1;
188 unsigned EPHSHK : 1;
189 unsigned : 1;
190 unsigned : 1;
191 unsigned : 1;
192 } __UEP5bits_t;
194 extern __at(0x0E04) volatile __UEP5bits_t UEP5bits;
196 #define _UEP5_EPSTALL 0x01
197 #define _UEP5_EPINEN 0x02
198 #define _UEP5_EPOUTEN 0x04
199 #define _UEP5_EPCONDIS 0x08
200 #define _UEP5_EPHSHK 0x10
202 //==============================================================================
205 //==============================================================================
206 // UEP6 Bits
208 extern __at(0x0E05) __sfr UEP6;
210 typedef struct
212 unsigned EPSTALL : 1;
213 unsigned EPINEN : 1;
214 unsigned EPOUTEN : 1;
215 unsigned EPCONDIS : 1;
216 unsigned EPHSHK : 1;
217 unsigned : 1;
218 unsigned : 1;
219 unsigned : 1;
220 } __UEP6bits_t;
222 extern __at(0x0E05) volatile __UEP6bits_t UEP6bits;
224 #define _UEP6_EPSTALL 0x01
225 #define _UEP6_EPINEN 0x02
226 #define _UEP6_EPOUTEN 0x04
227 #define _UEP6_EPCONDIS 0x08
228 #define _UEP6_EPHSHK 0x10
230 //==============================================================================
233 //==============================================================================
234 // UEP7 Bits
236 extern __at(0x0E06) __sfr UEP7;
238 typedef struct
240 unsigned EPSTALL : 1;
241 unsigned EPINEN : 1;
242 unsigned EPOUTEN : 1;
243 unsigned EPCONDIS : 1;
244 unsigned EPHSHK : 1;
245 unsigned : 1;
246 unsigned : 1;
247 unsigned : 1;
248 } __UEP7bits_t;
250 extern __at(0x0E06) volatile __UEP7bits_t UEP7bits;
252 #define _UEP7_EPSTALL 0x01
253 #define _UEP7_EPINEN 0x02
254 #define _UEP7_EPOUTEN 0x04
255 #define _UEP7_EPCONDIS 0x08
256 #define _UEP7_EPHSHK 0x10
258 //==============================================================================
261 //==============================================================================
262 // UEP8 Bits
264 extern __at(0x0E07) __sfr UEP8;
266 typedef struct
268 unsigned EPSTALL : 1;
269 unsigned EPINEN : 1;
270 unsigned EPOUTEN : 1;
271 unsigned EPCONDIS : 1;
272 unsigned EPHSHK : 1;
273 unsigned : 1;
274 unsigned : 1;
275 unsigned : 1;
276 } __UEP8bits_t;
278 extern __at(0x0E07) volatile __UEP8bits_t UEP8bits;
280 #define _UEP8_EPSTALL 0x01
281 #define _UEP8_EPINEN 0x02
282 #define _UEP8_EPOUTEN 0x04
283 #define _UEP8_EPCONDIS 0x08
284 #define _UEP8_EPHSHK 0x10
286 //==============================================================================
289 //==============================================================================
290 // UEP9 Bits
292 extern __at(0x0E08) __sfr UEP9;
294 typedef struct
296 unsigned EPSTALL : 1;
297 unsigned EPINEN : 1;
298 unsigned EPOUTEN : 1;
299 unsigned EPCONDIS : 1;
300 unsigned EPHSHK : 1;
301 unsigned : 1;
302 unsigned : 1;
303 unsigned : 1;
304 } __UEP9bits_t;
306 extern __at(0x0E08) volatile __UEP9bits_t UEP9bits;
308 #define _UEP9_EPSTALL 0x01
309 #define _UEP9_EPINEN 0x02
310 #define _UEP9_EPOUTEN 0x04
311 #define _UEP9_EPCONDIS 0x08
312 #define _UEP9_EPHSHK 0x10
314 //==============================================================================
317 //==============================================================================
318 // UEP10 Bits
320 extern __at(0x0E09) __sfr UEP10;
322 typedef struct
324 unsigned EPSTALL : 1;
325 unsigned EPINEN : 1;
326 unsigned EPOUTEN : 1;
327 unsigned EPCONDIS : 1;
328 unsigned EPHSHK : 1;
329 unsigned : 1;
330 unsigned : 1;
331 unsigned : 1;
332 } __UEP10bits_t;
334 extern __at(0x0E09) volatile __UEP10bits_t UEP10bits;
336 #define _UEP10_EPSTALL 0x01
337 #define _UEP10_EPINEN 0x02
338 #define _UEP10_EPOUTEN 0x04
339 #define _UEP10_EPCONDIS 0x08
340 #define _UEP10_EPHSHK 0x10
342 //==============================================================================
345 //==============================================================================
346 // UEP11 Bits
348 extern __at(0x0E0A) __sfr UEP11;
350 typedef struct
352 unsigned EPSTALL : 1;
353 unsigned EPINEN : 1;
354 unsigned EPOUTEN : 1;
355 unsigned EPCONDIS : 1;
356 unsigned EPHSHK : 1;
357 unsigned : 1;
358 unsigned : 1;
359 unsigned : 1;
360 } __UEP11bits_t;
362 extern __at(0x0E0A) volatile __UEP11bits_t UEP11bits;
364 #define _UEP11_EPSTALL 0x01
365 #define _UEP11_EPINEN 0x02
366 #define _UEP11_EPOUTEN 0x04
367 #define _UEP11_EPCONDIS 0x08
368 #define _UEP11_EPHSHK 0x10
370 //==============================================================================
373 //==============================================================================
374 // UEP12 Bits
376 extern __at(0x0E0B) __sfr UEP12;
378 typedef struct
380 unsigned EPSTALL : 1;
381 unsigned EPINEN : 1;
382 unsigned EPOUTEN : 1;
383 unsigned EPCONDIS : 1;
384 unsigned EPHSHK : 1;
385 unsigned : 1;
386 unsigned : 1;
387 unsigned : 1;
388 } __UEP12bits_t;
390 extern __at(0x0E0B) volatile __UEP12bits_t UEP12bits;
392 #define _UEP12_EPSTALL 0x01
393 #define _UEP12_EPINEN 0x02
394 #define _UEP12_EPOUTEN 0x04
395 #define _UEP12_EPCONDIS 0x08
396 #define _UEP12_EPHSHK 0x10
398 //==============================================================================
401 //==============================================================================
402 // UEP13 Bits
404 extern __at(0x0E0C) __sfr UEP13;
406 typedef struct
408 unsigned EPSTALL : 1;
409 unsigned EPINEN : 1;
410 unsigned EPOUTEN : 1;
411 unsigned EPCONDIS : 1;
412 unsigned EPHSHK : 1;
413 unsigned : 1;
414 unsigned : 1;
415 unsigned : 1;
416 } __UEP13bits_t;
418 extern __at(0x0E0C) volatile __UEP13bits_t UEP13bits;
420 #define _UEP13_EPSTALL 0x01
421 #define _UEP13_EPINEN 0x02
422 #define _UEP13_EPOUTEN 0x04
423 #define _UEP13_EPCONDIS 0x08
424 #define _UEP13_EPHSHK 0x10
426 //==============================================================================
429 //==============================================================================
430 // UEP14 Bits
432 extern __at(0x0E0D) __sfr UEP14;
434 typedef struct
436 unsigned EPSTALL : 1;
437 unsigned EPINEN : 1;
438 unsigned EPOUTEN : 1;
439 unsigned EPCONDIS : 1;
440 unsigned EPHSHK : 1;
441 unsigned : 1;
442 unsigned : 1;
443 unsigned : 1;
444 } __UEP14bits_t;
446 extern __at(0x0E0D) volatile __UEP14bits_t UEP14bits;
448 #define _UEP14_EPSTALL 0x01
449 #define _UEP14_EPINEN 0x02
450 #define _UEP14_EPOUTEN 0x04
451 #define _UEP14_EPCONDIS 0x08
452 #define _UEP14_EPHSHK 0x10
454 //==============================================================================
457 //==============================================================================
458 // UEP15 Bits
460 extern __at(0x0E0E) __sfr UEP15;
462 typedef struct
464 unsigned EPSTALL : 1;
465 unsigned EPINEN : 1;
466 unsigned EPOUTEN : 1;
467 unsigned EPCONDIS : 1;
468 unsigned EPHSHK : 1;
469 unsigned : 1;
470 unsigned : 1;
471 unsigned : 1;
472 } __UEP15bits_t;
474 extern __at(0x0E0E) volatile __UEP15bits_t UEP15bits;
476 #define _UEP15_EPSTALL 0x01
477 #define _UEP15_EPINEN 0x02
478 #define _UEP15_EPOUTEN 0x04
479 #define _UEP15_EPCONDIS 0x08
480 #define _UEP15_EPHSHK 0x10
482 //==============================================================================
485 //==============================================================================
486 // UEIE Bits
488 extern __at(0x0E0F) __sfr UEIE;
490 typedef struct
492 unsigned PIDEE : 1;
493 unsigned CRC5EE : 1;
494 unsigned CRC16EE : 1;
495 unsigned DFN8EE : 1;
496 unsigned BTOEE : 1;
497 unsigned : 1;
498 unsigned : 1;
499 unsigned BTSEE : 1;
500 } __UEIEbits_t;
502 extern __at(0x0E0F) volatile __UEIEbits_t UEIEbits;
504 #define _PIDEE 0x01
505 #define _CRC5EE 0x02
506 #define _CRC16EE 0x04
507 #define _DFN8EE 0x08
508 #define _BTOEE 0x10
509 #define _BTSEE 0x80
511 //==============================================================================
514 //==============================================================================
515 // UIE Bits
517 extern __at(0x0E10) __sfr UIE;
519 typedef struct
521 unsigned URSTIE : 1;
522 unsigned UERRIE : 1;
523 unsigned ACTVIE : 1;
524 unsigned TRNIE : 1;
525 unsigned IDLEIE : 1;
526 unsigned STALLIE : 1;
527 unsigned SOFIE : 1;
528 unsigned : 1;
529 } __UIEbits_t;
531 extern __at(0x0E10) volatile __UIEbits_t UIEbits;
533 #define _URSTIE 0x01
534 #define _UERRIE 0x02
535 #define _ACTVIE 0x04
536 #define _TRNIE 0x08
537 #define _IDLEIE 0x10
538 #define _STALLIE 0x20
539 #define _SOFIE 0x40
541 //==============================================================================
544 //==============================================================================
545 // UCFG Bits
547 extern __at(0x0E11) __sfr UCFG;
549 typedef union
551 struct
553 unsigned PPB0 : 1;
554 unsigned PPB1 : 1;
555 unsigned FSEN : 1;
556 unsigned UTRDIS : 1;
557 unsigned UPUEN : 1;
558 unsigned : 1;
559 unsigned UOEMON : 1;
560 unsigned UTEYE : 1;
563 struct
565 unsigned PPB : 2;
566 unsigned : 6;
568 } __UCFGbits_t;
570 extern __at(0x0E11) volatile __UCFGbits_t UCFGbits;
572 #define _PPB0 0x01
573 #define _PPB1 0x02
574 #define _FSEN 0x04
575 #define _UTRDIS 0x08
576 #define _UPUEN 0x10
577 #define _UOEMON 0x40
578 #define _UTEYE 0x80
580 //==============================================================================
583 //==============================================================================
584 // RPOR0_1 Bits
586 extern __at(0x0E12) __sfr RPOR0_1;
588 typedef union
590 struct
592 unsigned RPO0R0 : 1;
593 unsigned RPO0R1 : 1;
594 unsigned RPO0R2 : 1;
595 unsigned RPO0R3 : 1;
596 unsigned RPO1R0 : 1;
597 unsigned RPO1R1 : 1;
598 unsigned RPO1R2 : 1;
599 unsigned RPO1R3 : 1;
602 struct
604 unsigned RPO0R : 4;
605 unsigned : 4;
608 struct
610 unsigned : 4;
611 unsigned RPO1R : 4;
613 } __RPOR0_1bits_t;
615 extern __at(0x0E12) volatile __RPOR0_1bits_t RPOR0_1bits;
617 #define _RPO0R0 0x01
618 #define _RPO0R1 0x02
619 #define _RPO0R2 0x04
620 #define _RPO0R3 0x08
621 #define _RPO1R0 0x10
622 #define _RPO1R1 0x20
623 #define _RPO1R2 0x40
624 #define _RPO1R3 0x80
626 //==============================================================================
629 //==============================================================================
630 // RPOR2_3 Bits
632 extern __at(0x0E13) __sfr RPOR2_3;
634 typedef union
636 struct
638 unsigned RPO2R0 : 1;
639 unsigned RPO2R1 : 1;
640 unsigned RPO2R2 : 1;
641 unsigned RPO2R3 : 1;
642 unsigned RPO3R0 : 1;
643 unsigned RPO3R1 : 1;
644 unsigned RPO3R2 : 1;
645 unsigned RPO3R3 : 1;
648 struct
650 unsigned RPO2R : 4;
651 unsigned : 4;
654 struct
656 unsigned : 4;
657 unsigned RPO3R : 4;
659 } __RPOR2_3bits_t;
661 extern __at(0x0E13) volatile __RPOR2_3bits_t RPOR2_3bits;
663 #define _RPO2R0 0x01
664 #define _RPO2R1 0x02
665 #define _RPO2R2 0x04
666 #define _RPO2R3 0x08
667 #define _RPO3R0 0x10
668 #define _RPO3R1 0x20
669 #define _RPO3R2 0x40
670 #define _RPO3R3 0x80
672 //==============================================================================
675 //==============================================================================
676 // RPOR4_5 Bits
678 extern __at(0x0E14) __sfr RPOR4_5;
680 typedef union
682 struct
684 unsigned RPO4R0 : 1;
685 unsigned RPO4R1 : 1;
686 unsigned RPO4R2 : 1;
687 unsigned RPO4R3 : 1;
688 unsigned RPO5R0 : 1;
689 unsigned RPO5R1 : 1;
690 unsigned RPO5R2 : 1;
691 unsigned RPO5R3 : 1;
694 struct
696 unsigned RPO4R : 4;
697 unsigned : 4;
700 struct
702 unsigned : 4;
703 unsigned RPO5R : 4;
705 } __RPOR4_5bits_t;
707 extern __at(0x0E14) volatile __RPOR4_5bits_t RPOR4_5bits;
709 #define _RPO4R0 0x01
710 #define _RPO4R1 0x02
711 #define _RPO4R2 0x04
712 #define _RPO4R3 0x08
713 #define _RPO5R0 0x10
714 #define _RPO5R1 0x20
715 #define _RPO5R2 0x40
716 #define _RPO5R3 0x80
718 //==============================================================================
721 //==============================================================================
722 // RPOR6_7 Bits
724 extern __at(0x0E15) __sfr RPOR6_7;
726 typedef union
728 struct
730 unsigned RPO6R0 : 1;
731 unsigned RPO6R1 : 1;
732 unsigned RPO6R2 : 1;
733 unsigned RPO6R3 : 1;
734 unsigned RPO7R0 : 1;
735 unsigned RPO7R1 : 1;
736 unsigned RPO7R2 : 1;
737 unsigned RPO7R3 : 1;
740 struct
742 unsigned RPO6R : 4;
743 unsigned : 4;
746 struct
748 unsigned : 4;
749 unsigned RPO7R : 4;
751 } __RPOR6_7bits_t;
753 extern __at(0x0E15) volatile __RPOR6_7bits_t RPOR6_7bits;
755 #define _RPO6R0 0x01
756 #define _RPO6R1 0x02
757 #define _RPO6R2 0x04
758 #define _RPO6R3 0x08
759 #define _RPO7R0 0x10
760 #define _RPO7R1 0x20
761 #define _RPO7R2 0x40
762 #define _RPO7R3 0x80
764 //==============================================================================
767 //==============================================================================
768 // RPOR8_9 Bits
770 extern __at(0x0E16) __sfr RPOR8_9;
772 typedef union
774 struct
776 unsigned RPO8R0 : 1;
777 unsigned RPO8R1 : 1;
778 unsigned RPO8R2 : 1;
779 unsigned RPO8R3 : 1;
780 unsigned RPO9R0 : 1;
781 unsigned RPO9R1 : 1;
782 unsigned RPO9R2 : 1;
783 unsigned RPO9R3 : 1;
786 struct
788 unsigned RPO8R : 4;
789 unsigned : 4;
792 struct
794 unsigned : 4;
795 unsigned RPO9R : 4;
797 } __RPOR8_9bits_t;
799 extern __at(0x0E16) volatile __RPOR8_9bits_t RPOR8_9bits;
801 #define _RPO8R0 0x01
802 #define _RPO8R1 0x02
803 #define _RPO8R2 0x04
804 #define _RPO8R3 0x08
805 #define _RPO9R0 0x10
806 #define _RPO9R1 0x20
807 #define _RPO9R2 0x40
808 #define _RPO9R3 0x80
810 //==============================================================================
813 //==============================================================================
814 // RPOR10_11 Bits
816 extern __at(0x0E17) __sfr RPOR10_11;
818 typedef union
820 struct
822 unsigned RPO10R0 : 1;
823 unsigned RPO10R1 : 1;
824 unsigned RPO10R2 : 1;
825 unsigned RPO10R3 : 1;
826 unsigned RPO11R0 : 1;
827 unsigned RPO11R1 : 1;
828 unsigned RPO11R2 : 1;
829 unsigned RPO11R3 : 1;
832 struct
834 unsigned RPO10R : 4;
835 unsigned : 4;
838 struct
840 unsigned : 4;
841 unsigned RPO11R : 4;
843 } __RPOR10_11bits_t;
845 extern __at(0x0E17) volatile __RPOR10_11bits_t RPOR10_11bits;
847 #define _RPO10R0 0x01
848 #define _RPO10R1 0x02
849 #define _RPO10R2 0x04
850 #define _RPO10R3 0x08
851 #define _RPO11R0 0x10
852 #define _RPO11R1 0x20
853 #define _RPO11R2 0x40
854 #define _RPO11R3 0x80
856 //==============================================================================
859 //==============================================================================
860 // RPOR12_13 Bits
862 extern __at(0x0E18) __sfr RPOR12_13;
864 typedef union
866 struct
868 unsigned RPO12R0 : 1;
869 unsigned RPO12R1 : 1;
870 unsigned RPO12R2 : 1;
871 unsigned RPO12R3 : 1;
872 unsigned RPO13R0 : 1;
873 unsigned RPO13R1 : 1;
874 unsigned RPO13R2 : 1;
875 unsigned RPO13R3 : 1;
878 struct
880 unsigned RPO12R : 4;
881 unsigned : 4;
884 struct
886 unsigned : 4;
887 unsigned RPO13R : 4;
889 } __RPOR12_13bits_t;
891 extern __at(0x0E18) volatile __RPOR12_13bits_t RPOR12_13bits;
893 #define _RPO12R0 0x01
894 #define _RPO12R1 0x02
895 #define _RPO12R2 0x04
896 #define _RPO12R3 0x08
897 #define _RPO13R0 0x10
898 #define _RPO13R1 0x20
899 #define _RPO13R2 0x40
900 #define _RPO13R3 0x80
902 //==============================================================================
905 //==============================================================================
906 // RPOR14_15 Bits
908 extern __at(0x0E19) __sfr RPOR14_15;
910 typedef union
912 struct
914 unsigned RPO14R0 : 1;
915 unsigned RPO14R1 : 1;
916 unsigned RPO14R2 : 1;
917 unsigned RPO14R3 : 1;
918 unsigned RPO15R0 : 1;
919 unsigned RPO15R1 : 1;
920 unsigned RPO15R2 : 1;
921 unsigned RPO15R3 : 1;
924 struct
926 unsigned RPO14R : 4;
927 unsigned : 4;
930 struct
932 unsigned : 4;
933 unsigned RPO15R : 4;
935 } __RPOR14_15bits_t;
937 extern __at(0x0E19) volatile __RPOR14_15bits_t RPOR14_15bits;
939 #define _RPO14R0 0x01
940 #define _RPO14R1 0x02
941 #define _RPO14R2 0x04
942 #define _RPO14R3 0x08
943 #define _RPO15R0 0x10
944 #define _RPO15R1 0x20
945 #define _RPO15R2 0x40
946 #define _RPO15R3 0x80
948 //==============================================================================
951 //==============================================================================
952 // RPOR16_17 Bits
954 extern __at(0x0E1A) __sfr RPOR16_17;
956 typedef union
958 struct
960 unsigned RPO16R0 : 1;
961 unsigned RPO16R1 : 1;
962 unsigned RPO16R2 : 1;
963 unsigned RPO16R3 : 1;
964 unsigned RPO17R0 : 1;
965 unsigned RPO17R1 : 1;
966 unsigned RPO17R2 : 1;
967 unsigned RPO17R3 : 1;
970 struct
972 unsigned RPO16R : 4;
973 unsigned : 4;
976 struct
978 unsigned : 4;
979 unsigned RPO17R : 4;
981 } __RPOR16_17bits_t;
983 extern __at(0x0E1A) volatile __RPOR16_17bits_t RPOR16_17bits;
985 #define _RPO16R0 0x01
986 #define _RPO16R1 0x02
987 #define _RPO16R2 0x04
988 #define _RPO16R3 0x08
989 #define _RPO17R0 0x10
990 #define _RPO17R1 0x20
991 #define _RPO17R2 0x40
992 #define _RPO17R3 0x80
994 //==============================================================================
997 //==============================================================================
998 // RPOR18_19 Bits
1000 extern __at(0x0E1B) __sfr RPOR18_19;
1002 typedef union
1004 struct
1006 unsigned RPO18R0 : 1;
1007 unsigned RPO18R1 : 1;
1008 unsigned RPO18R2 : 1;
1009 unsigned RPO18R3 : 1;
1010 unsigned RPO19R0 : 1;
1011 unsigned RPO19R1 : 1;
1012 unsigned RPO19R2 : 1;
1013 unsigned RPO19R3 : 1;
1016 struct
1018 unsigned RPO18R : 4;
1019 unsigned : 4;
1022 struct
1024 unsigned : 4;
1025 unsigned RPO19R : 4;
1027 } __RPOR18_19bits_t;
1029 extern __at(0x0E1B) volatile __RPOR18_19bits_t RPOR18_19bits;
1031 #define _RPO18R0 0x01
1032 #define _RPO18R1 0x02
1033 #define _RPO18R2 0x04
1034 #define _RPO18R3 0x08
1035 #define _RPO19R0 0x10
1036 #define _RPO19R1 0x20
1037 #define _RPO19R2 0x40
1038 #define _RPO19R3 0x80
1040 //==============================================================================
1043 //==============================================================================
1044 // RPOR20_21 Bits
1046 extern __at(0x0E1C) __sfr RPOR20_21;
1048 typedef union
1050 struct
1052 unsigned RPO20R0 : 1;
1053 unsigned RPO20R1 : 1;
1054 unsigned RPO20R2 : 1;
1055 unsigned RPO20R3 : 1;
1056 unsigned RPO21R0 : 1;
1057 unsigned RPO21R1 : 1;
1058 unsigned RPO21R2 : 1;
1059 unsigned RPO21R3 : 1;
1062 struct
1064 unsigned RPO20R : 4;
1065 unsigned : 4;
1068 struct
1070 unsigned : 4;
1071 unsigned RPO21R : 4;
1073 } __RPOR20_21bits_t;
1075 extern __at(0x0E1C) volatile __RPOR20_21bits_t RPOR20_21bits;
1077 #define _RPO20R0 0x01
1078 #define _RPO20R1 0x02
1079 #define _RPO20R2 0x04
1080 #define _RPO20R3 0x08
1081 #define _RPO21R0 0x10
1082 #define _RPO21R1 0x20
1083 #define _RPO21R2 0x40
1084 #define _RPO21R3 0x80
1086 //==============================================================================
1089 //==============================================================================
1090 // RPOR22_23 Bits
1092 extern __at(0x0E1D) __sfr RPOR22_23;
1094 typedef union
1096 struct
1098 unsigned RPO22R0 : 1;
1099 unsigned RPO22R1 : 1;
1100 unsigned RPO22R2 : 1;
1101 unsigned RPO22R3 : 1;
1102 unsigned RPO23R0 : 1;
1103 unsigned RPO23R1 : 1;
1104 unsigned RPO23R2 : 1;
1105 unsigned RPO23R3 : 1;
1108 struct
1110 unsigned RPO22R : 4;
1111 unsigned : 4;
1114 struct
1116 unsigned : 4;
1117 unsigned RPO23R : 4;
1119 } __RPOR22_23bits_t;
1121 extern __at(0x0E1D) volatile __RPOR22_23bits_t RPOR22_23bits;
1123 #define _RPO22R0 0x01
1124 #define _RPO22R1 0x02
1125 #define _RPO22R2 0x04
1126 #define _RPO22R3 0x08
1127 #define _RPO23R0 0x10
1128 #define _RPO23R1 0x20
1129 #define _RPO23R2 0x40
1130 #define _RPO23R3 0x80
1132 //==============================================================================
1135 //==============================================================================
1136 // RPOR24_25 Bits
1138 extern __at(0x0E1E) __sfr RPOR24_25;
1140 typedef union
1142 struct
1144 unsigned RPO24R0 : 1;
1145 unsigned RPO24R1 : 1;
1146 unsigned RPO24R2 : 1;
1147 unsigned RPO24R3 : 1;
1148 unsigned RPO25R0 : 1;
1149 unsigned RPO25R1 : 1;
1150 unsigned RPO25R2 : 1;
1151 unsigned RPO25R3 : 1;
1154 struct
1156 unsigned RPO24R : 4;
1157 unsigned : 4;
1160 struct
1162 unsigned : 4;
1163 unsigned RPO25R : 4;
1165 } __RPOR24_25bits_t;
1167 extern __at(0x0E1E) volatile __RPOR24_25bits_t RPOR24_25bits;
1169 #define _RPO24R0 0x01
1170 #define _RPO24R1 0x02
1171 #define _RPO24R2 0x04
1172 #define _RPO24R3 0x08
1173 #define _RPO25R0 0x10
1174 #define _RPO25R1 0x20
1175 #define _RPO25R2 0x40
1176 #define _RPO25R3 0x80
1178 //==============================================================================
1181 //==============================================================================
1182 // RPOR26_27 Bits
1184 extern __at(0x0E1F) __sfr RPOR26_27;
1186 typedef union
1188 struct
1190 unsigned RPO26R0 : 1;
1191 unsigned RPO26R1 : 1;
1192 unsigned RPO26R2 : 1;
1193 unsigned RPO26R3 : 1;
1194 unsigned RPO27R0 : 1;
1195 unsigned RPO27R1 : 1;
1196 unsigned RPO27R2 : 1;
1197 unsigned RPO27R3 : 1;
1200 struct
1202 unsigned RPO26R : 4;
1203 unsigned : 4;
1206 struct
1208 unsigned : 4;
1209 unsigned RPO27R : 4;
1211 } __RPOR26_27bits_t;
1213 extern __at(0x0E1F) volatile __RPOR26_27bits_t RPOR26_27bits;
1215 #define _RPO26R0 0x01
1216 #define _RPO26R1 0x02
1217 #define _RPO26R2 0x04
1218 #define _RPO26R3 0x08
1219 #define _RPO27R0 0x10
1220 #define _RPO27R1 0x20
1221 #define _RPO27R2 0x40
1222 #define _RPO27R3 0x80
1224 //==============================================================================
1227 //==============================================================================
1228 // RPOR28_29 Bits
1230 extern __at(0x0E20) __sfr RPOR28_29;
1232 typedef union
1234 struct
1236 unsigned RPO28R0 : 1;
1237 unsigned RPO28R1 : 1;
1238 unsigned RPO28R2 : 1;
1239 unsigned RPO28R3 : 1;
1240 unsigned RPO29R0 : 1;
1241 unsigned RPO29R1 : 1;
1242 unsigned RPO29R2 : 1;
1243 unsigned RPO29R3 : 1;
1246 struct
1248 unsigned RPO28R : 4;
1249 unsigned : 4;
1252 struct
1254 unsigned : 4;
1255 unsigned RPO29R : 4;
1257 } __RPOR28_29bits_t;
1259 extern __at(0x0E20) volatile __RPOR28_29bits_t RPOR28_29bits;
1261 #define _RPO28R0 0x01
1262 #define _RPO28R1 0x02
1263 #define _RPO28R2 0x04
1264 #define _RPO28R3 0x08
1265 #define _RPO29R0 0x10
1266 #define _RPO29R1 0x20
1267 #define _RPO29R2 0x40
1268 #define _RPO29R3 0x80
1270 //==============================================================================
1273 //==============================================================================
1274 // RPOR30_31 Bits
1276 extern __at(0x0E21) __sfr RPOR30_31;
1278 typedef union
1280 struct
1282 unsigned RPO30R0 : 1;
1283 unsigned RPO30R1 : 1;
1284 unsigned RPO30R2 : 1;
1285 unsigned RPO30R3 : 1;
1286 unsigned RPO31R0 : 1;
1287 unsigned RPO31R1 : 1;
1288 unsigned RPO31R2 : 1;
1289 unsigned RPO31R3 : 1;
1292 struct
1294 unsigned RPO30R : 4;
1295 unsigned : 4;
1298 struct
1300 unsigned : 4;
1301 unsigned RPO31R : 4;
1303 } __RPOR30_31bits_t;
1305 extern __at(0x0E21) volatile __RPOR30_31bits_t RPOR30_31bits;
1307 #define _RPO30R0 0x01
1308 #define _RPO30R1 0x02
1309 #define _RPO30R2 0x04
1310 #define _RPO30R3 0x08
1311 #define _RPO31R0 0x10
1312 #define _RPO31R1 0x20
1313 #define _RPO31R2 0x40
1314 #define _RPO31R3 0x80
1316 //==============================================================================
1319 //==============================================================================
1320 // RPOR32_33 Bits
1322 extern __at(0x0E22) __sfr RPOR32_33;
1324 typedef union
1326 struct
1328 unsigned RPO32R0 : 1;
1329 unsigned RPO32R1 : 1;
1330 unsigned RPO32R2 : 1;
1331 unsigned RPO32R3 : 1;
1332 unsigned RPO33R0 : 1;
1333 unsigned RPO33R1 : 1;
1334 unsigned RPO33R2 : 1;
1335 unsigned RPO33R3 : 1;
1338 struct
1340 unsigned RPO32R : 4;
1341 unsigned : 4;
1344 struct
1346 unsigned : 4;
1347 unsigned RPO33R : 4;
1349 } __RPOR32_33bits_t;
1351 extern __at(0x0E22) volatile __RPOR32_33bits_t RPOR32_33bits;
1353 #define _RPO32R0 0x01
1354 #define _RPO32R1 0x02
1355 #define _RPO32R2 0x04
1356 #define _RPO32R3 0x08
1357 #define _RPO33R0 0x10
1358 #define _RPO33R1 0x20
1359 #define _RPO33R2 0x40
1360 #define _RPO33R3 0x80
1362 //==============================================================================
1365 //==============================================================================
1366 // RPOR34_35 Bits
1368 extern __at(0x0E23) __sfr RPOR34_35;
1370 typedef union
1372 struct
1374 unsigned RPO34R0 : 1;
1375 unsigned RPO34R1 : 1;
1376 unsigned RPO34R2 : 1;
1377 unsigned RPO34R3 : 1;
1378 unsigned RPO35R0 : 1;
1379 unsigned RPO35R1 : 1;
1380 unsigned RPO35R2 : 1;
1381 unsigned RPO35R3 : 1;
1384 struct
1386 unsigned RPO34R : 4;
1387 unsigned : 4;
1390 struct
1392 unsigned : 4;
1393 unsigned RPO35R : 4;
1395 } __RPOR34_35bits_t;
1397 extern __at(0x0E23) volatile __RPOR34_35bits_t RPOR34_35bits;
1399 #define _RPO34R0 0x01
1400 #define _RPO34R1 0x02
1401 #define _RPO34R2 0x04
1402 #define _RPO34R3 0x08
1403 #define _RPO35R0 0x10
1404 #define _RPO35R1 0x20
1405 #define _RPO35R2 0x40
1406 #define _RPO35R3 0x80
1408 //==============================================================================
1411 //==============================================================================
1412 // RPOR36_37 Bits
1414 extern __at(0x0E24) __sfr RPOR36_37;
1416 typedef union
1418 struct
1420 unsigned RPO36R0 : 1;
1421 unsigned RPO36R1 : 1;
1422 unsigned RPO36R2 : 1;
1423 unsigned RPO36R3 : 1;
1424 unsigned RPO37R0 : 1;
1425 unsigned RPO37R1 : 1;
1426 unsigned RPO37R2 : 1;
1427 unsigned RPO37R3 : 1;
1430 struct
1432 unsigned RPO36R : 4;
1433 unsigned : 4;
1436 struct
1438 unsigned : 4;
1439 unsigned RPO37R : 4;
1441 } __RPOR36_37bits_t;
1443 extern __at(0x0E24) volatile __RPOR36_37bits_t RPOR36_37bits;
1445 #define _RPO36R0 0x01
1446 #define _RPO36R1 0x02
1447 #define _RPO36R2 0x04
1448 #define _RPO36R3 0x08
1449 #define _RPO37R0 0x10
1450 #define _RPO37R1 0x20
1451 #define _RPO37R2 0x40
1452 #define _RPO37R3 0x80
1454 //==============================================================================
1457 //==============================================================================
1458 // RPOR38_39 Bits
1460 extern __at(0x0E25) __sfr RPOR38_39;
1462 typedef union
1464 struct
1466 unsigned RPO38R0 : 1;
1467 unsigned RPO38R1 : 1;
1468 unsigned RPO38R2 : 1;
1469 unsigned RPO38R3 : 1;
1470 unsigned RPO39R0 : 1;
1471 unsigned RPO39R1 : 1;
1472 unsigned RPO39R2 : 1;
1473 unsigned RPO39R3 : 1;
1476 struct
1478 unsigned RPO38R : 4;
1479 unsigned : 4;
1482 struct
1484 unsigned : 4;
1485 unsigned RPO39R : 4;
1487 } __RPOR38_39bits_t;
1489 extern __at(0x0E25) volatile __RPOR38_39bits_t RPOR38_39bits;
1491 #define _RPO38R0 0x01
1492 #define _RPO38R1 0x02
1493 #define _RPO38R2 0x04
1494 #define _RPO38R3 0x08
1495 #define _RPO39R0 0x10
1496 #define _RPO39R1 0x20
1497 #define _RPO39R2 0x40
1498 #define _RPO39R3 0x80
1500 //==============================================================================
1503 //==============================================================================
1504 // RPOR40_41 Bits
1506 extern __at(0x0E26) __sfr RPOR40_41;
1508 typedef union
1510 struct
1512 unsigned RPO40R0 : 1;
1513 unsigned RPO40R1 : 1;
1514 unsigned RPO40R2 : 1;
1515 unsigned RPO40R3 : 1;
1516 unsigned RPO41R0 : 1;
1517 unsigned RPO41R1 : 1;
1518 unsigned RPO41R2 : 1;
1519 unsigned RPO41R3 : 1;
1522 struct
1524 unsigned RPO40R : 4;
1525 unsigned : 4;
1528 struct
1530 unsigned : 4;
1531 unsigned RPO41R : 4;
1533 } __RPOR40_41bits_t;
1535 extern __at(0x0E26) volatile __RPOR40_41bits_t RPOR40_41bits;
1537 #define _RPO40R0 0x01
1538 #define _RPO40R1 0x02
1539 #define _RPO40R2 0x04
1540 #define _RPO40R3 0x08
1541 #define _RPO41R0 0x10
1542 #define _RPO41R1 0x20
1543 #define _RPO41R2 0x40
1544 #define _RPO41R3 0x80
1546 //==============================================================================
1549 //==============================================================================
1550 // RPOR42_43 Bits
1552 extern __at(0x0E27) __sfr RPOR42_43;
1554 typedef union
1556 struct
1558 unsigned RPO42R0 : 1;
1559 unsigned RPO42R1 : 1;
1560 unsigned RPO42R2 : 1;
1561 unsigned RPO42R3 : 1;
1562 unsigned RPO43R0 : 1;
1563 unsigned RPO43R1 : 1;
1564 unsigned RPO43R2 : 1;
1565 unsigned RPO43R3 : 1;
1568 struct
1570 unsigned RPO42R : 4;
1571 unsigned : 4;
1574 struct
1576 unsigned : 4;
1577 unsigned RPO43R : 4;
1579 } __RPOR42_43bits_t;
1581 extern __at(0x0E27) volatile __RPOR42_43bits_t RPOR42_43bits;
1583 #define _RPO42R0 0x01
1584 #define _RPO42R1 0x02
1585 #define _RPO42R2 0x04
1586 #define _RPO42R3 0x08
1587 #define _RPO43R0 0x10
1588 #define _RPO43R1 0x20
1589 #define _RPO43R2 0x40
1590 #define _RPO43R3 0x80
1592 //==============================================================================
1595 //==============================================================================
1596 // RPOR44_45 Bits
1598 extern __at(0x0E28) __sfr RPOR44_45;
1600 typedef union
1602 struct
1604 unsigned RPO44R0 : 1;
1605 unsigned RPO44R1 : 1;
1606 unsigned RPO44R2 : 1;
1607 unsigned RPO44R3 : 1;
1608 unsigned RPO45R0 : 1;
1609 unsigned RPO45R1 : 1;
1610 unsigned RPO45R2 : 1;
1611 unsigned RPO45R3 : 1;
1614 struct
1616 unsigned RPO44R : 4;
1617 unsigned : 4;
1620 struct
1622 unsigned : 4;
1623 unsigned RPO45R : 4;
1625 } __RPOR44_45bits_t;
1627 extern __at(0x0E28) volatile __RPOR44_45bits_t RPOR44_45bits;
1629 #define _RPO44R0 0x01
1630 #define _RPO44R1 0x02
1631 #define _RPO44R2 0x04
1632 #define _RPO44R3 0x08
1633 #define _RPO45R0 0x10
1634 #define _RPO45R1 0x20
1635 #define _RPO45R2 0x40
1636 #define _RPO45R3 0x80
1638 //==============================================================================
1641 //==============================================================================
1642 // RPOR46 Bits
1644 extern __at(0x0E29) __sfr RPOR46;
1646 typedef union
1648 struct
1650 unsigned RPO46R0 : 1;
1651 unsigned RPO46R1 : 1;
1652 unsigned RPO46R2 : 1;
1653 unsigned RPO46R3 : 1;
1654 unsigned : 1;
1655 unsigned : 1;
1656 unsigned : 1;
1657 unsigned : 1;
1660 struct
1662 unsigned RPO46R : 4;
1663 unsigned : 4;
1665 } __RPOR46bits_t;
1667 extern __at(0x0E29) volatile __RPOR46bits_t RPOR46bits;
1669 #define _RPO46R0 0x01
1670 #define _RPO46R1 0x02
1671 #define _RPO46R2 0x04
1672 #define _RPO46R3 0x08
1674 //==============================================================================
1677 //==============================================================================
1678 // RPINR0_1 Bits
1680 extern __at(0x0E2A) __sfr RPINR0_1;
1682 typedef union
1684 struct
1686 unsigned U1RXR0 : 1;
1687 unsigned U1RXR1 : 1;
1688 unsigned U1RXR2 : 1;
1689 unsigned U1RXR3 : 1;
1690 unsigned U1TXR0 : 1;
1691 unsigned U1TXR1 : 1;
1692 unsigned U1TXR2 : 1;
1693 unsigned U1TXR3 : 1;
1696 struct
1698 unsigned U1RXR : 4;
1699 unsigned : 4;
1702 struct
1704 unsigned : 4;
1705 unsigned U1TXR : 4;
1707 } __RPINR0_1bits_t;
1709 extern __at(0x0E2A) volatile __RPINR0_1bits_t RPINR0_1bits;
1711 #define _U1RXR0 0x01
1712 #define _U1RXR1 0x02
1713 #define _U1RXR2 0x04
1714 #define _U1RXR3 0x08
1715 #define _U1TXR0 0x10
1716 #define _U1TXR1 0x20
1717 #define _U1TXR2 0x40
1718 #define _U1TXR3 0x80
1720 //==============================================================================
1723 //==============================================================================
1724 // RPINR2_3 Bits
1726 extern __at(0x0E2B) __sfr RPINR2_3;
1728 typedef union
1730 struct
1732 unsigned U2RXR0 : 1;
1733 unsigned U2RXR1 : 1;
1734 unsigned U2RXR2 : 1;
1735 unsigned U2RXR3 : 1;
1736 unsigned U2TXR0 : 1;
1737 unsigned U2TXR1 : 1;
1738 unsigned U2TXR2 : 1;
1739 unsigned U2TXR3 : 1;
1742 struct
1744 unsigned U2RXR : 4;
1745 unsigned : 4;
1748 struct
1750 unsigned : 4;
1751 unsigned U2TXR : 4;
1753 } __RPINR2_3bits_t;
1755 extern __at(0x0E2B) volatile __RPINR2_3bits_t RPINR2_3bits;
1757 #define _U2RXR0 0x01
1758 #define _U2RXR1 0x02
1759 #define _U2RXR2 0x04
1760 #define _U2RXR3 0x08
1761 #define _U2TXR0 0x10
1762 #define _U2TXR1 0x20
1763 #define _U2TXR2 0x40
1764 #define _U2TXR3 0x80
1766 //==============================================================================
1769 //==============================================================================
1770 // RPINR4_5 Bits
1772 extern __at(0x0E2C) __sfr RPINR4_5;
1774 typedef union
1776 struct
1778 unsigned U3RXR0 : 1;
1779 unsigned U3RXR1 : 1;
1780 unsigned U3RXR2 : 1;
1781 unsigned U3RXR3 : 1;
1782 unsigned U3TXR0 : 1;
1783 unsigned U3TXR1 : 1;
1784 unsigned U3TXR2 : 1;
1785 unsigned U3TXR3 : 1;
1788 struct
1790 unsigned U3RXR : 4;
1791 unsigned : 4;
1794 struct
1796 unsigned : 4;
1797 unsigned U3TXR : 4;
1799 } __RPINR4_5bits_t;
1801 extern __at(0x0E2C) volatile __RPINR4_5bits_t RPINR4_5bits;
1803 #define _U3RXR0 0x01
1804 #define _U3RXR1 0x02
1805 #define _U3RXR2 0x04
1806 #define _U3RXR3 0x08
1807 #define _U3TXR0 0x10
1808 #define _U3TXR1 0x20
1809 #define _U3TXR2 0x40
1810 #define _U3TXR3 0x80
1812 //==============================================================================
1815 //==============================================================================
1816 // RPINR6_7 Bits
1818 extern __at(0x0E2D) __sfr RPINR6_7;
1820 typedef union
1822 struct
1824 unsigned U4RXR0 : 1;
1825 unsigned U4RXR1 : 1;
1826 unsigned U4RXR2 : 1;
1827 unsigned U4RXR3 : 1;
1828 unsigned U4TXR0 : 1;
1829 unsigned U4TXR1 : 1;
1830 unsigned U4TXR2 : 1;
1831 unsigned U4TXR3 : 1;
1834 struct
1836 unsigned U4RXR : 4;
1837 unsigned : 4;
1840 struct
1842 unsigned : 4;
1843 unsigned U4TXR : 4;
1845 } __RPINR6_7bits_t;
1847 extern __at(0x0E2D) volatile __RPINR6_7bits_t RPINR6_7bits;
1849 #define _U4RXR0 0x01
1850 #define _U4RXR1 0x02
1851 #define _U4RXR2 0x04
1852 #define _U4RXR3 0x08
1853 #define _U4TXR0 0x10
1854 #define _U4TXR1 0x20
1855 #define _U4TXR2 0x40
1856 #define _U4TXR3 0x80
1858 //==============================================================================
1861 //==============================================================================
1862 // RPINR8_9 Bits
1864 extern __at(0x0E2E) __sfr RPINR8_9;
1866 typedef union
1868 struct
1870 unsigned SCK1R0 : 1;
1871 unsigned SCK1R1 : 1;
1872 unsigned SCK1R2 : 1;
1873 unsigned SCK1R3 : 1;
1874 unsigned SDI1R0 : 1;
1875 unsigned SDI1R1 : 1;
1876 unsigned SDI1R2 : 1;
1877 unsigned SDI1R3 : 1;
1880 struct
1882 unsigned SCK1R : 4;
1883 unsigned : 4;
1886 struct
1888 unsigned : 4;
1889 unsigned SDI1R : 4;
1891 } __RPINR8_9bits_t;
1893 extern __at(0x0E2E) volatile __RPINR8_9bits_t RPINR8_9bits;
1895 #define _SCK1R0 0x01
1896 #define _SCK1R1 0x02
1897 #define _SCK1R2 0x04
1898 #define _SCK1R3 0x08
1899 #define _SDI1R0 0x10
1900 #define _SDI1R1 0x20
1901 #define _SDI1R2 0x40
1902 #define _SDI1R3 0x80
1904 //==============================================================================
1907 //==============================================================================
1908 // RPINR10_11 Bits
1910 extern __at(0x0E2F) __sfr RPINR10_11;
1912 typedef union
1914 struct
1916 unsigned SS1R0 : 1;
1917 unsigned SS1R1 : 1;
1918 unsigned SS1R2 : 1;
1919 unsigned SS1R3 : 1;
1920 unsigned SCK2R0 : 1;
1921 unsigned SCK2R1 : 1;
1922 unsigned SCK2R2 : 1;
1923 unsigned SCK2R3 : 1;
1926 struct
1928 unsigned SS1R : 4;
1929 unsigned : 4;
1932 struct
1934 unsigned : 4;
1935 unsigned SCK2R : 4;
1937 } __RPINR10_11bits_t;
1939 extern __at(0x0E2F) volatile __RPINR10_11bits_t RPINR10_11bits;
1941 #define _SS1R0 0x01
1942 #define _SS1R1 0x02
1943 #define _SS1R2 0x04
1944 #define _SS1R3 0x08
1945 #define _SCK2R0 0x10
1946 #define _SCK2R1 0x20
1947 #define _SCK2R2 0x40
1948 #define _SCK2R3 0x80
1950 //==============================================================================
1953 //==============================================================================
1954 // RPINR12_13 Bits
1956 extern __at(0x0E30) __sfr RPINR12_13;
1958 typedef union
1960 struct
1962 unsigned SDI2R0 : 1;
1963 unsigned SDI2R1 : 1;
1964 unsigned SDI2R2 : 1;
1965 unsigned SDI2R3 : 1;
1966 unsigned SS2R0 : 1;
1967 unsigned SS2R1 : 1;
1968 unsigned SS2R2 : 1;
1969 unsigned SS2R3 : 1;
1972 struct
1974 unsigned SDI2R : 4;
1975 unsigned : 4;
1978 struct
1980 unsigned : 4;
1981 unsigned SS2R : 4;
1983 } __RPINR12_13bits_t;
1985 extern __at(0x0E30) volatile __RPINR12_13bits_t RPINR12_13bits;
1987 #define _SDI2R0 0x01
1988 #define _SDI2R1 0x02
1989 #define _SDI2R2 0x04
1990 #define _SDI2R3 0x08
1991 #define _SS2R0 0x10
1992 #define _SS2R1 0x20
1993 #define _SS2R2 0x40
1994 #define _SS2R3 0x80
1996 //==============================================================================
1999 //==============================================================================
2000 // RPINR14_15 Bits
2002 extern __at(0x0E31) __sfr RPINR14_15;
2004 typedef union
2006 struct
2008 unsigned FLT0R0 : 1;
2009 unsigned FLT0R1 : 1;
2010 unsigned FLT0R2 : 1;
2011 unsigned FLT0R3 : 1;
2012 unsigned ECCP1R0 : 1;
2013 unsigned ECCP1R1 : 1;
2014 unsigned ECCP1R2 : 1;
2015 unsigned ECCP1R3 : 1;
2018 struct
2020 unsigned FLT0R : 4;
2021 unsigned : 4;
2024 struct
2026 unsigned : 4;
2027 unsigned ECCP1R : 4;
2029 } __RPINR14_15bits_t;
2031 extern __at(0x0E31) volatile __RPINR14_15bits_t RPINR14_15bits;
2033 #define _FLT0R0 0x01
2034 #define _FLT0R1 0x02
2035 #define _FLT0R2 0x04
2036 #define _FLT0R3 0x08
2037 #define _ECCP1R0 0x10
2038 #define _ECCP1R1 0x20
2039 #define _ECCP1R2 0x40
2040 #define _ECCP1R3 0x80
2042 //==============================================================================
2045 //==============================================================================
2046 // RPINR16_17 Bits
2048 extern __at(0x0E32) __sfr RPINR16_17;
2050 typedef union
2052 struct
2054 unsigned ECCP2R0 : 1;
2055 unsigned ECCP2R1 : 1;
2056 unsigned ECCP2R2 : 1;
2057 unsigned ECCP2R3 : 1;
2058 unsigned ECCP3R0 : 1;
2059 unsigned ECCP3R1 : 1;
2060 unsigned ECCP3R2 : 1;
2061 unsigned ECCP3R3 : 1;
2064 struct
2066 unsigned ECCP2R : 4;
2067 unsigned : 4;
2070 struct
2072 unsigned : 4;
2073 unsigned ECCP3R : 4;
2075 } __RPINR16_17bits_t;
2077 extern __at(0x0E32) volatile __RPINR16_17bits_t RPINR16_17bits;
2079 #define _ECCP2R0 0x01
2080 #define _ECCP2R1 0x02
2081 #define _ECCP2R2 0x04
2082 #define _ECCP2R3 0x08
2083 #define _ECCP3R0 0x10
2084 #define _ECCP3R1 0x20
2085 #define _ECCP3R2 0x40
2086 #define _ECCP3R3 0x80
2088 //==============================================================================
2091 //==============================================================================
2092 // RPINR18_19 Bits
2094 extern __at(0x0E33) __sfr RPINR18_19;
2096 typedef union
2098 struct
2100 unsigned IOC0R0 : 1;
2101 unsigned IOC0R1 : 1;
2102 unsigned IOC0R2 : 1;
2103 unsigned IOC0R3 : 1;
2104 unsigned IOC1R0 : 1;
2105 unsigned IOC1R1 : 1;
2106 unsigned IOC1R2 : 1;
2107 unsigned IOC1R3 : 1;
2110 struct
2112 unsigned IOC0R : 4;
2113 unsigned : 4;
2116 struct
2118 unsigned : 4;
2119 unsigned IOC1R : 4;
2121 } __RPINR18_19bits_t;
2123 extern __at(0x0E33) volatile __RPINR18_19bits_t RPINR18_19bits;
2125 #define _IOC0R0 0x01
2126 #define _IOC0R1 0x02
2127 #define _IOC0R2 0x04
2128 #define _IOC0R3 0x08
2129 #define _IOC1R0 0x10
2130 #define _IOC1R1 0x20
2131 #define _IOC1R2 0x40
2132 #define _IOC1R3 0x80
2134 //==============================================================================
2137 //==============================================================================
2138 // RPINR20_21 Bits
2140 extern __at(0x0E34) __sfr RPINR20_21;
2142 typedef union
2144 struct
2146 unsigned IOC2R0 : 1;
2147 unsigned IOC2R1 : 1;
2148 unsigned IOC2R2 : 1;
2149 unsigned IOC2R3 : 1;
2150 unsigned IOC3R0 : 1;
2151 unsigned IOC3R1 : 1;
2152 unsigned IOC3R2 : 1;
2153 unsigned IOC3R3 : 1;
2156 struct
2158 unsigned IOC2R : 4;
2159 unsigned : 4;
2162 struct
2164 unsigned : 4;
2165 unsigned IOC3R : 4;
2167 } __RPINR20_21bits_t;
2169 extern __at(0x0E34) volatile __RPINR20_21bits_t RPINR20_21bits;
2171 #define _IOC2R0 0x01
2172 #define _IOC2R1 0x02
2173 #define _IOC2R2 0x04
2174 #define _IOC2R3 0x08
2175 #define _IOC3R0 0x10
2176 #define _IOC3R1 0x20
2177 #define _IOC3R2 0x40
2178 #define _IOC3R3 0x80
2180 //==============================================================================
2183 //==============================================================================
2184 // RPINR22_23 Bits
2186 extern __at(0x0E35) __sfr RPINR22_23;
2188 typedef union
2190 struct
2192 unsigned IOC4R0 : 1;
2193 unsigned IOC4R1 : 1;
2194 unsigned IOC4R2 : 1;
2195 unsigned IOC4R3 : 1;
2196 unsigned IOC5R0 : 1;
2197 unsigned IOC5R1 : 1;
2198 unsigned IOC5R2 : 1;
2199 unsigned IOC5R3 : 1;
2202 struct
2204 unsigned IOC4R : 4;
2205 unsigned : 4;
2208 struct
2210 unsigned : 4;
2211 unsigned IOC5R : 4;
2213 } __RPINR22_23bits_t;
2215 extern __at(0x0E35) volatile __RPINR22_23bits_t RPINR22_23bits;
2217 #define _IOC4R0 0x01
2218 #define _IOC4R1 0x02
2219 #define _IOC4R2 0x04
2220 #define _IOC4R3 0x08
2221 #define _IOC5R0 0x10
2222 #define _IOC5R1 0x20
2223 #define _IOC5R2 0x40
2224 #define _IOC5R3 0x80
2226 //==============================================================================
2229 //==============================================================================
2230 // RPINR24_25 Bits
2232 extern __at(0x0E36) __sfr RPINR24_25;
2234 typedef union
2236 struct
2238 unsigned IOC6R0 : 1;
2239 unsigned IOC6R1 : 1;
2240 unsigned IOC6R2 : 1;
2241 unsigned IOC6R3 : 1;
2242 unsigned IOC7R0 : 1;
2243 unsigned IOC7R1 : 1;
2244 unsigned IOC7R2 : 1;
2245 unsigned IOC7R3 : 1;
2248 struct
2250 unsigned IOC6R : 4;
2251 unsigned : 4;
2254 struct
2256 unsigned : 4;
2257 unsigned IOC7R : 4;
2259 } __RPINR24_25bits_t;
2261 extern __at(0x0E36) volatile __RPINR24_25bits_t RPINR24_25bits;
2263 #define _IOC6R0 0x01
2264 #define _IOC6R1 0x02
2265 #define _IOC6R2 0x04
2266 #define _IOC6R3 0x08
2267 #define _IOC7R0 0x10
2268 #define _IOC7R1 0x20
2269 #define _IOC7R2 0x40
2270 #define _IOC7R3 0x80
2272 //==============================================================================
2275 //==============================================================================
2276 // RPINR26_27 Bits
2278 extern __at(0x0E37) __sfr RPINR26_27;
2280 typedef union
2282 struct
2284 unsigned INT1R0 : 1;
2285 unsigned INT1R1 : 1;
2286 unsigned INT1R2 : 1;
2287 unsigned INT1R3 : 1;
2288 unsigned INT2R0 : 1;
2289 unsigned INT2R1 : 1;
2290 unsigned INT2R2 : 1;
2291 unsigned INT2R3 : 1;
2294 struct
2296 unsigned INT1R : 4;
2297 unsigned : 4;
2300 struct
2302 unsigned : 4;
2303 unsigned INT2R : 4;
2305 } __RPINR26_27bits_t;
2307 extern __at(0x0E37) volatile __RPINR26_27bits_t RPINR26_27bits;
2309 #define _INT1R0 0x01
2310 #define _INT1R1 0x02
2311 #define _INT1R2 0x04
2312 #define _INT1R3 0x08
2313 #define _INT2R0 0x10
2314 #define _INT2R1 0x20
2315 #define _INT2R2 0x40
2316 #define _INT2R3 0x80
2318 //==============================================================================
2321 //==============================================================================
2322 // RPINR28_29 Bits
2324 extern __at(0x0E38) __sfr RPINR28_29;
2326 typedef union
2328 struct
2330 unsigned INT3R0 : 1;
2331 unsigned INT3R1 : 1;
2332 unsigned INT3R2 : 1;
2333 unsigned INT3R3 : 1;
2334 unsigned MDMINR0 : 1;
2335 unsigned MDMINR1 : 1;
2336 unsigned MDMINR2 : 1;
2337 unsigned MDMINR3 : 1;
2340 struct
2342 unsigned INT3R : 4;
2343 unsigned : 4;
2346 struct
2348 unsigned : 4;
2349 unsigned MDMINR : 4;
2351 } __RPINR28_29bits_t;
2353 extern __at(0x0E38) volatile __RPINR28_29bits_t RPINR28_29bits;
2355 #define _INT3R0 0x01
2356 #define _INT3R1 0x02
2357 #define _INT3R2 0x04
2358 #define _INT3R3 0x08
2359 #define _MDMINR0 0x10
2360 #define _MDMINR1 0x20
2361 #define _MDMINR2 0x40
2362 #define _MDMINR3 0x80
2364 //==============================================================================
2367 //==============================================================================
2368 // RPINR30_31 Bits
2370 extern __at(0x0E39) __sfr RPINR30_31;
2372 typedef union
2374 struct
2376 unsigned MDCIN1R0 : 1;
2377 unsigned MDCIN1R1 : 1;
2378 unsigned MDCIN1R2 : 1;
2379 unsigned MDCIN1R3 : 1;
2380 unsigned MDCIN2R0 : 1;
2381 unsigned MDCIN2R1 : 1;
2382 unsigned MDCIN2R2 : 1;
2383 unsigned MDCIN2R3 : 1;
2386 struct
2388 unsigned MDCIN1R : 4;
2389 unsigned : 4;
2392 struct
2394 unsigned : 4;
2395 unsigned MDCIN2R : 4;
2397 } __RPINR30_31bits_t;
2399 extern __at(0x0E39) volatile __RPINR30_31bits_t RPINR30_31bits;
2401 #define _MDCIN1R0 0x01
2402 #define _MDCIN1R1 0x02
2403 #define _MDCIN1R2 0x04
2404 #define _MDCIN1R3 0x08
2405 #define _MDCIN2R0 0x10
2406 #define _MDCIN2R1 0x20
2407 #define _MDCIN2R2 0x40
2408 #define _MDCIN2R3 0x80
2410 //==============================================================================
2413 //==============================================================================
2414 // RPINR32_33 Bits
2416 extern __at(0x0E3A) __sfr RPINR32_33;
2418 typedef union
2420 struct
2422 unsigned CCP4R0 : 1;
2423 unsigned CCP4R1 : 1;
2424 unsigned CCP4R2 : 1;
2425 unsigned CCP4R3 : 1;
2426 unsigned CCP5R0 : 1;
2427 unsigned CCP5R1 : 1;
2428 unsigned CCP5R2 : 1;
2429 unsigned CCP5R3 : 1;
2432 struct
2434 unsigned CCP4R : 4;
2435 unsigned : 4;
2438 struct
2440 unsigned : 4;
2441 unsigned CCP5R : 4;
2443 } __RPINR32_33bits_t;
2445 extern __at(0x0E3A) volatile __RPINR32_33bits_t RPINR32_33bits;
2447 #define _CCP4R0 0x01
2448 #define _CCP4R1 0x02
2449 #define _CCP4R2 0x04
2450 #define _CCP4R3 0x08
2451 #define _CCP5R0 0x10
2452 #define _CCP5R1 0x20
2453 #define _CCP5R2 0x40
2454 #define _CCP5R3 0x80
2456 //==============================================================================
2459 //==============================================================================
2460 // RPINR34_35 Bits
2462 extern __at(0x0E3B) __sfr RPINR34_35;
2464 typedef union
2466 struct
2468 unsigned CCP6R0 : 1;
2469 unsigned CCP6R1 : 1;
2470 unsigned CCP6R2 : 1;
2471 unsigned CCP6R3 : 1;
2472 unsigned CCP7R0 : 1;
2473 unsigned CCP7R1 : 1;
2474 unsigned CCP7R2 : 1;
2475 unsigned CCP7R3 : 1;
2478 struct
2480 unsigned CCP6R : 4;
2481 unsigned : 4;
2484 struct
2486 unsigned : 4;
2487 unsigned CCP7R : 4;
2489 } __RPINR34_35bits_t;
2491 extern __at(0x0E3B) volatile __RPINR34_35bits_t RPINR34_35bits;
2493 #define _CCP6R0 0x01
2494 #define _CCP6R1 0x02
2495 #define _CCP6R2 0x04
2496 #define _CCP6R3 0x08
2497 #define _CCP7R0 0x10
2498 #define _CCP7R1 0x20
2499 #define _CCP7R2 0x40
2500 #define _CCP7R3 0x80
2502 //==============================================================================
2505 //==============================================================================
2506 // RPINR36_37 Bits
2508 extern __at(0x0E3C) __sfr RPINR36_37;
2510 typedef union
2512 struct
2514 unsigned CCP8R0 : 1;
2515 unsigned CCP8R1 : 1;
2516 unsigned CCP8R2 : 1;
2517 unsigned CCP8R3 : 1;
2518 unsigned CCP9R0 : 1;
2519 unsigned CCP9R1 : 1;
2520 unsigned CCP9R2 : 1;
2521 unsigned CCP9R3 : 1;
2524 struct
2526 unsigned CCP8R : 4;
2527 unsigned : 4;
2530 struct
2532 unsigned : 4;
2533 unsigned CCP9R : 4;
2535 } __RPINR36_37bits_t;
2537 extern __at(0x0E3C) volatile __RPINR36_37bits_t RPINR36_37bits;
2539 #define _CCP8R0 0x01
2540 #define _CCP8R1 0x02
2541 #define _CCP8R2 0x04
2542 #define _CCP8R3 0x08
2543 #define _CCP9R0 0x10
2544 #define _CCP9R1 0x20
2545 #define _CCP9R2 0x40
2546 #define _CCP9R3 0x80
2548 //==============================================================================
2551 //==============================================================================
2552 // RPINR38_39 Bits
2554 extern __at(0x0E3D) __sfr RPINR38_39;
2556 typedef union
2558 struct
2560 unsigned CCP10R0 : 1;
2561 unsigned CCP10R1 : 1;
2562 unsigned CCP10R2 : 1;
2563 unsigned CCP10R3 : 1;
2564 unsigned T0CKIR0 : 1;
2565 unsigned T0CKIR1 : 1;
2566 unsigned T0CKIR2 : 1;
2567 unsigned T0CKIR3 : 1;
2570 struct
2572 unsigned CCP10R : 4;
2573 unsigned : 4;
2576 struct
2578 unsigned : 4;
2579 unsigned T0CKIR : 4;
2581 } __RPINR38_39bits_t;
2583 extern __at(0x0E3D) volatile __RPINR38_39bits_t RPINR38_39bits;
2585 #define _CCP10R0 0x01
2586 #define _CCP10R1 0x02
2587 #define _CCP10R2 0x04
2588 #define _CCP10R3 0x08
2589 #define _T0CKIR0 0x10
2590 #define _T0CKIR1 0x20
2591 #define _T0CKIR2 0x40
2592 #define _T0CKIR3 0x80
2594 //==============================================================================
2597 //==============================================================================
2598 // RPINR40_41 Bits
2600 extern __at(0x0E3E) __sfr RPINR40_41;
2602 typedef union
2604 struct
2606 unsigned T1GR0 : 1;
2607 unsigned T1GR1 : 1;
2608 unsigned T1GR2 : 1;
2609 unsigned T1GR3 : 1;
2610 unsigned T1CKIR0 : 1;
2611 unsigned T1CKIR1 : 1;
2612 unsigned T1CKIR2 : 1;
2613 unsigned T1CKIR3 : 1;
2616 struct
2618 unsigned T1GR : 4;
2619 unsigned : 4;
2622 struct
2624 unsigned : 4;
2625 unsigned T1CKIR : 4;
2627 } __RPINR40_41bits_t;
2629 extern __at(0x0E3E) volatile __RPINR40_41bits_t RPINR40_41bits;
2631 #define _T1GR0 0x01
2632 #define _T1GR1 0x02
2633 #define _T1GR2 0x04
2634 #define _T1GR3 0x08
2635 #define _T1CKIR0 0x10
2636 #define _T1CKIR1 0x20
2637 #define _T1CKIR2 0x40
2638 #define _T1CKIR3 0x80
2640 //==============================================================================
2643 //==============================================================================
2644 // RPINR42_43 Bits
2646 extern __at(0x0E3F) __sfr RPINR42_43;
2648 typedef union
2650 struct
2652 unsigned T3GR0 : 1;
2653 unsigned T3GR1 : 1;
2654 unsigned T3GR2 : 1;
2655 unsigned T3GR3 : 1;
2656 unsigned T3CKIR0 : 1;
2657 unsigned T3CKIR1 : 1;
2658 unsigned T3CKIR2 : 1;
2659 unsigned T3CKIR3 : 1;
2662 struct
2664 unsigned T3GR : 4;
2665 unsigned : 4;
2668 struct
2670 unsigned : 4;
2671 unsigned T3CKIR : 4;
2673 } __RPINR42_43bits_t;
2675 extern __at(0x0E3F) volatile __RPINR42_43bits_t RPINR42_43bits;
2677 #define _T3GR0 0x01
2678 #define _T3GR1 0x02
2679 #define _T3GR2 0x04
2680 #define _T3GR3 0x08
2681 #define _T3CKIR0 0x10
2682 #define _T3CKIR1 0x20
2683 #define _T3CKIR2 0x40
2684 #define _T3CKIR3 0x80
2686 //==============================================================================
2689 //==============================================================================
2690 // RPINR44_45 Bits
2692 extern __at(0x0E40) __sfr RPINR44_45;
2694 typedef union
2696 struct
2698 unsigned T5GR0 : 1;
2699 unsigned T5GR1 : 1;
2700 unsigned T5GR2 : 1;
2701 unsigned T5GR3 : 1;
2702 unsigned T5CKIR0 : 1;
2703 unsigned T5CKIR1 : 1;
2704 unsigned T5CKIR2 : 1;
2705 unsigned T5CKIR3 : 1;
2708 struct
2710 unsigned T5GR : 4;
2711 unsigned : 4;
2714 struct
2716 unsigned : 4;
2717 unsigned T5CKIR : 4;
2719 } __RPINR44_45bits_t;
2721 extern __at(0x0E40) volatile __RPINR44_45bits_t RPINR44_45bits;
2723 #define _T5GR0 0x01
2724 #define _T5GR1 0x02
2725 #define _T5GR2 0x04
2726 #define _T5GR3 0x08
2727 #define _T5CKIR0 0x10
2728 #define _T5CKIR1 0x20
2729 #define _T5CKIR2 0x40
2730 #define _T5CKIR3 0x80
2732 //==============================================================================
2735 //==============================================================================
2736 // RPINR46_47 Bits
2738 extern __at(0x0E41) __sfr RPINR46_47;
2740 typedef union
2742 struct
2744 unsigned PBIO0R0 : 1;
2745 unsigned PBIO0R1 : 1;
2746 unsigned PBIO0R2 : 1;
2747 unsigned PBIO0R3 : 1;
2748 unsigned PBIO1R0 : 1;
2749 unsigned PBIO1R1 : 1;
2750 unsigned PBIO1R2 : 1;
2751 unsigned PBIO1R3 : 1;
2754 struct
2756 unsigned PBIO0R : 4;
2757 unsigned : 4;
2760 struct
2762 unsigned : 4;
2763 unsigned PBIO1R : 4;
2765 } __RPINR46_47bits_t;
2767 extern __at(0x0E41) volatile __RPINR46_47bits_t RPINR46_47bits;
2769 #define _PBIO0R0 0x01
2770 #define _PBIO0R1 0x02
2771 #define _PBIO0R2 0x04
2772 #define _PBIO0R3 0x08
2773 #define _PBIO1R0 0x10
2774 #define _PBIO1R1 0x20
2775 #define _PBIO1R2 0x40
2776 #define _PBIO1R3 0x80
2778 //==============================================================================
2781 //==============================================================================
2782 // RPINR48_49 Bits
2784 extern __at(0x0E42) __sfr RPINR48_49;
2786 typedef union
2788 struct
2790 unsigned PBIO2R0 : 1;
2791 unsigned PBIO2R1 : 1;
2792 unsigned PBIO2R2 : 1;
2793 unsigned PBIO2R3 : 1;
2794 unsigned PBIO3R0 : 1;
2795 unsigned PBIO3R1 : 1;
2796 unsigned PBIO3R2 : 1;
2797 unsigned PBIO3R3 : 1;
2800 struct
2802 unsigned PBIO2R : 4;
2803 unsigned : 4;
2806 struct
2808 unsigned : 4;
2809 unsigned PBIO3R : 4;
2811 } __RPINR48_49bits_t;
2813 extern __at(0x0E42) volatile __RPINR48_49bits_t RPINR48_49bits;
2815 #define _PBIO2R0 0x01
2816 #define _PBIO2R1 0x02
2817 #define _PBIO2R2 0x04
2818 #define _PBIO2R3 0x08
2819 #define _PBIO3R0 0x10
2820 #define _PBIO3R1 0x20
2821 #define _PBIO3R2 0x40
2822 #define _PBIO3R3 0x80
2824 //==============================================================================
2827 //==============================================================================
2828 // RPINR50_51 Bits
2830 extern __at(0x0E43) __sfr RPINR50_51;
2832 typedef union
2834 struct
2836 unsigned PBIO4R0 : 1;
2837 unsigned PBIO4R1 : 1;
2838 unsigned PBIO4R2 : 1;
2839 unsigned PBIO4R3 : 1;
2840 unsigned PBIO5R0 : 1;
2841 unsigned PBIO5R1 : 1;
2842 unsigned PBIO5R2 : 1;
2843 unsigned PBIO5R3 : 1;
2846 struct
2848 unsigned PBIO4R : 4;
2849 unsigned : 4;
2852 struct
2854 unsigned : 4;
2855 unsigned PBIO5R : 4;
2857 } __RPINR50_51bits_t;
2859 extern __at(0x0E43) volatile __RPINR50_51bits_t RPINR50_51bits;
2861 #define _PBIO4R0 0x01
2862 #define _PBIO4R1 0x02
2863 #define _PBIO4R2 0x04
2864 #define _PBIO4R3 0x08
2865 #define _PBIO5R0 0x10
2866 #define _PBIO5R1 0x20
2867 #define _PBIO5R2 0x40
2868 #define _PBIO5R3 0x80
2870 //==============================================================================
2873 //==============================================================================
2874 // RPINR52_53 Bits
2876 extern __at(0x0E44) __sfr RPINR52_53;
2878 typedef union
2880 struct
2882 unsigned PBIO6R0 : 1;
2883 unsigned PBIO6R1 : 1;
2884 unsigned PBIO6R2 : 1;
2885 unsigned PBIO6R3 : 1;
2886 unsigned PBIO7R0 : 1;
2887 unsigned PBIO7R1 : 1;
2888 unsigned PBIO7R2 : 1;
2889 unsigned PBIO7R3 : 1;
2892 struct
2894 unsigned PBIO6R : 4;
2895 unsigned : 4;
2898 struct
2900 unsigned : 4;
2901 unsigned PBIO7R : 4;
2903 } __RPINR52_53bits_t;
2905 extern __at(0x0E44) volatile __RPINR52_53bits_t RPINR52_53bits;
2907 #define _PBIO6R0 0x01
2908 #define _PBIO6R1 0x02
2909 #define _PBIO6R2 0x04
2910 #define _PBIO6R3 0x08
2911 #define _PBIO7R0 0x10
2912 #define _PBIO7R1 0x20
2913 #define _PBIO7R2 0x40
2914 #define _PBIO7R3 0x80
2916 //==============================================================================
2919 //==============================================================================
2920 // ANCON3 Bits
2922 extern __at(0x0E45) __sfr ANCON3;
2924 typedef struct
2926 unsigned ANSEL16 : 1;
2927 unsigned ANSEL17 : 1;
2928 unsigned ANSEL18 : 1;
2929 unsigned ANSEL19 : 1;
2930 unsigned ANSEL20 : 1;
2931 unsigned ANSEL21 : 1;
2932 unsigned ANSEL22 : 1;
2933 unsigned ANSEL23 : 1;
2934 } __ANCON3bits_t;
2936 extern __at(0x0E45) volatile __ANCON3bits_t ANCON3bits;
2938 #define _ANSEL16 0x01
2939 #define _ANSEL17 0x02
2940 #define _ANSEL18 0x04
2941 #define _ANSEL19 0x08
2942 #define _ANSEL20 0x10
2943 #define _ANSEL21 0x20
2944 #define _ANSEL22 0x40
2945 #define _ANSEL23 0x80
2947 //==============================================================================
2950 //==============================================================================
2951 // ANCON2 Bits
2953 extern __at(0x0E46) __sfr ANCON2;
2955 typedef struct
2957 unsigned ANSEL8 : 1;
2958 unsigned ANSEL9 : 1;
2959 unsigned ANSEL10 : 1;
2960 unsigned ANSEL11 : 1;
2961 unsigned ANSEL12 : 1;
2962 unsigned ANSEL13 : 1;
2963 unsigned ANSEL14 : 1;
2964 unsigned ANSEL15 : 1;
2965 } __ANCON2bits_t;
2967 extern __at(0x0E46) volatile __ANCON2bits_t ANCON2bits;
2969 #define _ANSEL8 0x01
2970 #define _ANSEL9 0x02
2971 #define _ANSEL10 0x04
2972 #define _ANSEL11 0x08
2973 #define _ANSEL12 0x10
2974 #define _ANSEL13 0x20
2975 #define _ANSEL14 0x40
2976 #define _ANSEL15 0x80
2978 //==============================================================================
2981 //==============================================================================
2982 // ANCON1 Bits
2984 extern __at(0x0E47) __sfr ANCON1;
2986 typedef struct
2988 unsigned ANSEL0 : 1;
2989 unsigned ANSEL1 : 1;
2990 unsigned ANSEL2 : 1;
2991 unsigned ANSEL3 : 1;
2992 unsigned ANSEL4 : 1;
2993 unsigned ANSEL5 : 1;
2994 unsigned ANSEL6 : 1;
2995 unsigned ANSEL7 : 1;
2996 } __ANCON1bits_t;
2998 extern __at(0x0E47) volatile __ANCON1bits_t ANCON1bits;
3000 #define _ANSEL0 0x01
3001 #define _ANSEL1 0x02
3002 #define _ANSEL2 0x04
3003 #define _ANSEL3 0x08
3004 #define _ANSEL4 0x10
3005 #define _ANSEL5 0x20
3006 #define _ANSEL6 0x40
3007 #define _ANSEL7 0x80
3009 //==============================================================================
3011 extern __at(0x0E48) __sfr ADCBUF1;
3012 extern __at(0x0E48) __sfr ADCBUF1L;
3013 extern __at(0x0E49) __sfr ADCBUF1H;
3014 extern __at(0x0E4A) __sfr ADCBUF2;
3015 extern __at(0x0E4A) __sfr ADCBUF2L;
3016 extern __at(0x0E4B) __sfr ADCBUF2H;
3017 extern __at(0x0E4C) __sfr ADCBUF3;
3018 extern __at(0x0E4C) __sfr ADCBUF3L;
3019 extern __at(0x0E4D) __sfr ADCBUF3H;
3020 extern __at(0x0E4E) __sfr ADCBUF4;
3021 extern __at(0x0E4E) __sfr ADCBUF4L;
3022 extern __at(0x0E4F) __sfr ADCBUF4H;
3023 extern __at(0x0E50) __sfr ADCBUF5;
3024 extern __at(0x0E50) __sfr ADCBUF5L;
3025 extern __at(0x0E51) __sfr ADCBUF5H;
3026 extern __at(0x0E52) __sfr ADCBUF6;
3027 extern __at(0x0E52) __sfr ADCBUF6L;
3028 extern __at(0x0E53) __sfr ADCBUF6H;
3029 extern __at(0x0E54) __sfr ADCBUF7;
3030 extern __at(0x0E54) __sfr ADCBUF7L;
3031 extern __at(0x0E55) __sfr ADCBUF7H;
3032 extern __at(0x0E56) __sfr ADCBUF8;
3033 extern __at(0x0E56) __sfr ADCBUF8L;
3034 extern __at(0x0E57) __sfr ADCBUF8H;
3035 extern __at(0x0E58) __sfr ADCBUF9;
3036 extern __at(0x0E58) __sfr ADCBUF9L;
3037 extern __at(0x0E59) __sfr ADCBUF9H;
3038 extern __at(0x0E5A) __sfr ADCBUF10;
3039 extern __at(0x0E5A) __sfr ADCBUF10L;
3040 extern __at(0x0E5B) __sfr ADCBUF10H;
3041 extern __at(0x0E5C) __sfr ADCBUF11;
3042 extern __at(0x0E5C) __sfr ADCBUF11L;
3043 extern __at(0x0E5D) __sfr ADCBUF11H;
3044 extern __at(0x0E5E) __sfr ADCBUF12;
3045 extern __at(0x0E5E) __sfr ADCBUF12L;
3046 extern __at(0x0E5F) __sfr ADCBUF12H;
3047 extern __at(0x0E60) __sfr ADCBUF13;
3048 extern __at(0x0E60) __sfr ADCBUF13L;
3049 extern __at(0x0E61) __sfr ADCBUF13H;
3050 extern __at(0x0E62) __sfr ADCBUF14;
3051 extern __at(0x0E62) __sfr ADCBUF14L;
3052 extern __at(0x0E63) __sfr ADCBUF14H;
3053 extern __at(0x0E64) __sfr ADCBUF15;
3054 extern __at(0x0E64) __sfr ADCBUF15L;
3055 extern __at(0x0E65) __sfr ADCBUF15H;
3056 extern __at(0x0E66) __sfr ADCBUF16;
3057 extern __at(0x0E66) __sfr ADCBUF16L;
3058 extern __at(0x0E67) __sfr ADCBUF16H;
3059 extern __at(0x0E68) __sfr ADCBUF17;
3060 extern __at(0x0E68) __sfr ADCBUF17L;
3061 extern __at(0x0E69) __sfr ADCBUF17H;
3062 extern __at(0x0E6A) __sfr ADCBUF18;
3063 extern __at(0x0E6A) __sfr ADCBUF18L;
3064 extern __at(0x0E6B) __sfr ADCBUF18H;
3065 extern __at(0x0E6C) __sfr ADCBUF19;
3066 extern __at(0x0E6C) __sfr ADCBUF19L;
3067 extern __at(0x0E6D) __sfr ADCBUF19H;
3068 extern __at(0x0E6E) __sfr ADCBUF20;
3069 extern __at(0x0E6E) __sfr ADCBUF20L;
3070 extern __at(0x0E6F) __sfr ADCBUF20H;
3071 extern __at(0x0E70) __sfr ADCBUF21;
3072 extern __at(0x0E70) __sfr ADCBUF21L;
3073 extern __at(0x0E71) __sfr ADCBUF21H;
3074 extern __at(0x0E72) __sfr ADCBUF22;
3075 extern __at(0x0E72) __sfr ADCBUF22L;
3076 extern __at(0x0E73) __sfr ADCBUF22H;
3077 extern __at(0x0E74) __sfr ADCBUF23;
3078 extern __at(0x0E74) __sfr ADCBUF23L;
3079 extern __at(0x0E75) __sfr ADCBUF23H;
3080 extern __at(0x0E76) __sfr ADCBUF24;
3081 extern __at(0x0E76) __sfr ADCBUF24L;
3082 extern __at(0x0E77) __sfr ADCBUF24H;
3083 extern __at(0x0E78) __sfr ADCBUF25;
3084 extern __at(0x0E78) __sfr ADCBUF25L;
3085 extern __at(0x0E79) __sfr ADCBUF25H;
3087 //==============================================================================
3088 // ADCTMUEN0L Bits
3090 extern __at(0x0E7A) __sfr ADCTMUEN0L;
3092 typedef struct
3094 unsigned CTMUEN0 : 1;
3095 unsigned CTMUEN1 : 1;
3096 unsigned CTMUEN2 : 1;
3097 unsigned CTMUEN3 : 1;
3098 unsigned CTMUEN4 : 1;
3099 unsigned CTMUEN5 : 1;
3100 unsigned CTMUEN6 : 1;
3101 unsigned CTMUEN7 : 1;
3102 } __ADCTMUEN0Lbits_t;
3104 extern __at(0x0E7A) volatile __ADCTMUEN0Lbits_t ADCTMUEN0Lbits;
3106 #define _CTMUEN0 0x01
3107 #define _CTMUEN1 0x02
3108 #define _CTMUEN2 0x04
3109 #define _CTMUEN3 0x08
3110 #define _CTMUEN4 0x10
3111 #define _CTMUEN5 0x20
3112 #define _CTMUEN6 0x40
3113 #define _CTMUEN7 0x80
3115 //==============================================================================
3118 //==============================================================================
3119 // ADCTMUEN0H Bits
3121 extern __at(0x0E7B) __sfr ADCTMUEN0H;
3123 typedef struct
3125 unsigned CTMUEN8 : 1;
3126 unsigned CTMUEN9 : 1;
3127 unsigned CTMUEN10 : 1;
3128 unsigned CTMUEN11 : 1;
3129 unsigned CTMUEN12 : 1;
3130 unsigned CTMUEN13 : 1;
3131 unsigned CTMUEN14 : 1;
3132 unsigned CTMUEN15 : 1;
3133 } __ADCTMUEN0Hbits_t;
3135 extern __at(0x0E7B) volatile __ADCTMUEN0Hbits_t ADCTMUEN0Hbits;
3137 #define _CTMUEN8 0x01
3138 #define _CTMUEN9 0x02
3139 #define _CTMUEN10 0x04
3140 #define _CTMUEN11 0x08
3141 #define _CTMUEN12 0x10
3142 #define _CTMUEN13 0x20
3143 #define _CTMUEN14 0x40
3144 #define _CTMUEN15 0x80
3146 //==============================================================================
3149 //==============================================================================
3150 // ADCTMUEN1L Bits
3152 extern __at(0x0E7C) __sfr ADCTMUEN1L;
3154 typedef struct
3156 unsigned CTUMEN16 : 1;
3157 unsigned CTUMEN17 : 1;
3158 unsigned CTUMEN18 : 1;
3159 unsigned CTUMEN19 : 1;
3160 unsigned CTMUEN20 : 1;
3161 unsigned CTMUEN21 : 1;
3162 unsigned CTMUEN22 : 1;
3163 unsigned CTMUEN23 : 1;
3164 } __ADCTMUEN1Lbits_t;
3166 extern __at(0x0E7C) volatile __ADCTMUEN1Lbits_t ADCTMUEN1Lbits;
3168 #define _CTUMEN16 0x01
3169 #define _CTUMEN17 0x02
3170 #define _CTUMEN18 0x04
3171 #define _CTUMEN19 0x08
3172 #define _CTMUEN20 0x10
3173 #define _CTMUEN21 0x20
3174 #define _CTMUEN22 0x40
3175 #define _CTMUEN23 0x80
3177 //==============================================================================
3180 //==============================================================================
3181 // ADCTMUEN1H Bits
3183 extern __at(0x0E7D) __sfr ADCTMUEN1H;
3185 typedef struct
3187 unsigned CTUMEN24 : 1;
3188 unsigned CTUMEN25 : 1;
3189 unsigned CTUMEN26 : 1;
3190 unsigned CTUMEN27 : 1;
3191 unsigned CTUMEN28 : 1;
3192 unsigned CTUMEN29 : 1;
3193 unsigned CTMUEN30 : 1;
3194 unsigned : 1;
3195 } __ADCTMUEN1Hbits_t;
3197 extern __at(0x0E7D) volatile __ADCTMUEN1Hbits_t ADCTMUEN1Hbits;
3199 #define _CTUMEN24 0x01
3200 #define _CTUMEN25 0x02
3201 #define _CTUMEN26 0x04
3202 #define _CTUMEN27 0x08
3203 #define _CTUMEN28 0x10
3204 #define _CTUMEN29 0x20
3205 #define _CTMUEN30 0x40
3207 //==============================================================================
3210 //==============================================================================
3211 // ADCHIT0L Bits
3213 extern __at(0x0E7E) __sfr ADCHIT0L;
3215 typedef struct
3217 unsigned CHH0 : 1;
3218 unsigned CHH1 : 1;
3219 unsigned CHH2 : 1;
3220 unsigned CHH3 : 1;
3221 unsigned CHH4 : 1;
3222 unsigned CHH5 : 1;
3223 unsigned CHH6 : 1;
3224 unsigned CHH7 : 1;
3225 } __ADCHIT0Lbits_t;
3227 extern __at(0x0E7E) volatile __ADCHIT0Lbits_t ADCHIT0Lbits;
3229 #define _CHH0 0x01
3230 #define _CHH1 0x02
3231 #define _CHH2 0x04
3232 #define _CHH3 0x08
3233 #define _CHH4 0x10
3234 #define _CHH5 0x20
3235 #define _CHH6 0x40
3236 #define _CHH7 0x80
3238 //==============================================================================
3241 //==============================================================================
3242 // ADCHIT0H Bits
3244 extern __at(0x0E7F) __sfr ADCHIT0H;
3246 typedef struct
3248 unsigned CHH8 : 1;
3249 unsigned CHH9 : 1;
3250 unsigned CHH10 : 1;
3251 unsigned CHH11 : 1;
3252 unsigned CHH12 : 1;
3253 unsigned CHH13 : 1;
3254 unsigned CHH14 : 1;
3255 unsigned CHH15 : 1;
3256 } __ADCHIT0Hbits_t;
3258 extern __at(0x0E7F) volatile __ADCHIT0Hbits_t ADCHIT0Hbits;
3260 #define _CHH8 0x01
3261 #define _CHH9 0x02
3262 #define _CHH10 0x04
3263 #define _CHH11 0x08
3264 #define _CHH12 0x10
3265 #define _CHH13 0x20
3266 #define _CHH14 0x40
3267 #define _CHH15 0x80
3269 //==============================================================================
3272 //==============================================================================
3273 // ADCHIT1L Bits
3275 extern __at(0x0E80) __sfr ADCHIT1L;
3277 typedef struct
3279 unsigned CHH16 : 1;
3280 unsigned CHH17 : 1;
3281 unsigned CHH18 : 1;
3282 unsigned CHH19 : 1;
3283 unsigned CHH20 : 1;
3284 unsigned CHH21 : 1;
3285 unsigned CHH22 : 1;
3286 unsigned CHH23 : 1;
3287 } __ADCHIT1Lbits_t;
3289 extern __at(0x0E80) volatile __ADCHIT1Lbits_t ADCHIT1Lbits;
3291 #define _CHH16 0x01
3292 #define _CHH17 0x02
3293 #define _CHH18 0x04
3294 #define _CHH19 0x08
3295 #define _CHH20 0x10
3296 #define _CHH21 0x20
3297 #define _CHH22 0x40
3298 #define _CHH23 0x80
3300 //==============================================================================
3303 //==============================================================================
3304 // ADCHIT1H Bits
3306 extern __at(0x0E81) __sfr ADCHIT1H;
3308 typedef struct
3310 unsigned CHH24 : 1;
3311 unsigned CHH25 : 1;
3312 unsigned CHH26 : 1;
3313 unsigned CHH27 : 1;
3314 unsigned CHH28 : 1;
3315 unsigned CHH29 : 1;
3316 unsigned CHH30 : 1;
3317 unsigned : 1;
3318 } __ADCHIT1Hbits_t;
3320 extern __at(0x0E81) volatile __ADCHIT1Hbits_t ADCHIT1Hbits;
3322 #define _CHH24 0x01
3323 #define _CHH25 0x02
3324 #define _CHH26 0x04
3325 #define _CHH27 0x08
3326 #define _CHH28 0x10
3327 #define _CHH29 0x20
3328 #define _CHH30 0x40
3330 //==============================================================================
3333 //==============================================================================
3334 // ADCSS0L Bits
3336 extern __at(0x0E82) __sfr ADCSS0L;
3338 typedef struct
3340 unsigned CSS0 : 1;
3341 unsigned CSS1 : 1;
3342 unsigned CSS2 : 1;
3343 unsigned CSS3 : 1;
3344 unsigned CSS4 : 1;
3345 unsigned CSS5 : 1;
3346 unsigned CSS6 : 1;
3347 unsigned CSS7 : 1;
3348 } __ADCSS0Lbits_t;
3350 extern __at(0x0E82) volatile __ADCSS0Lbits_t ADCSS0Lbits;
3352 #define _CSS0 0x01
3353 #define _CSS1 0x02
3354 #define _CSS2 0x04
3355 #define _CSS3 0x08
3356 #define _CSS4 0x10
3357 #define _CSS5 0x20
3358 #define _CSS6 0x40
3359 #define _CSS7 0x80
3361 //==============================================================================
3364 //==============================================================================
3365 // ADCSS0H Bits
3367 extern __at(0x0E83) __sfr ADCSS0H;
3369 typedef struct
3371 unsigned CSS8 : 1;
3372 unsigned CSS9 : 1;
3373 unsigned CSS10 : 1;
3374 unsigned CSS11 : 1;
3375 unsigned CSS12 : 1;
3376 unsigned CSS13 : 1;
3377 unsigned CSS14 : 1;
3378 unsigned CSS15 : 1;
3379 } __ADCSS0Hbits_t;
3381 extern __at(0x0E83) volatile __ADCSS0Hbits_t ADCSS0Hbits;
3383 #define _CSS8 0x01
3384 #define _CSS9 0x02
3385 #define _CSS10 0x04
3386 #define _CSS11 0x08
3387 #define _CSS12 0x10
3388 #define _CSS13 0x20
3389 #define _CSS14 0x40
3390 #define _CSS15 0x80
3392 //==============================================================================
3395 //==============================================================================
3396 // ADCSS1L Bits
3398 extern __at(0x0E84) __sfr ADCSS1L;
3400 typedef struct
3402 unsigned CSS16 : 1;
3403 unsigned CSS17 : 1;
3404 unsigned CSS18 : 1;
3405 unsigned CSS19 : 1;
3406 unsigned CSS20 : 1;
3407 unsigned CSS21 : 1;
3408 unsigned CSS22 : 1;
3409 unsigned CSS23 : 1;
3410 } __ADCSS1Lbits_t;
3412 extern __at(0x0E84) volatile __ADCSS1Lbits_t ADCSS1Lbits;
3414 #define _CSS16 0x01
3415 #define _CSS17 0x02
3416 #define _CSS18 0x04
3417 #define _CSS19 0x08
3418 #define _CSS20 0x10
3419 #define _CSS21 0x20
3420 #define _CSS22 0x40
3421 #define _CSS23 0x80
3423 //==============================================================================
3426 //==============================================================================
3427 // ADCSS1H Bits
3429 extern __at(0x0E85) __sfr ADCSS1H;
3431 typedef struct
3433 unsigned CSS24 : 1;
3434 unsigned CSS25 : 1;
3435 unsigned CSS26 : 1;
3436 unsigned CSS27 : 1;
3437 unsigned CSS28 : 1;
3438 unsigned CSS29 : 1;
3439 unsigned CSS30 : 1;
3440 unsigned : 1;
3441 } __ADCSS1Hbits_t;
3443 extern __at(0x0E85) volatile __ADCSS1Hbits_t ADCSS1Hbits;
3445 #define _CSS24 0x01
3446 #define _CSS25 0x02
3447 #define _CSS26 0x04
3448 #define _CSS27 0x08
3449 #define _CSS28 0x10
3450 #define _CSS29 0x20
3451 #define _CSS30 0x40
3453 //==============================================================================
3456 //==============================================================================
3457 // ADCHS0L Bits
3459 extern __at(0x0E86) __sfr ADCHS0L;
3461 typedef union
3463 struct
3465 unsigned CH0SA0 : 1;
3466 unsigned CH0SA1 : 1;
3467 unsigned CH0SA2 : 1;
3468 unsigned CH0SA3 : 1;
3469 unsigned CH0SA4 : 1;
3470 unsigned CH0NA0 : 1;
3471 unsigned CH0NA1 : 1;
3472 unsigned CH0NA2 : 1;
3475 struct
3477 unsigned CH0SA : 5;
3478 unsigned : 3;
3481 struct
3483 unsigned : 5;
3484 unsigned CH0NA : 3;
3486 } __ADCHS0Lbits_t;
3488 extern __at(0x0E86) volatile __ADCHS0Lbits_t ADCHS0Lbits;
3490 #define _CH0SA0 0x01
3491 #define _CH0SA1 0x02
3492 #define _CH0SA2 0x04
3493 #define _CH0SA3 0x08
3494 #define _CH0SA4 0x10
3495 #define _CH0NA0 0x20
3496 #define _CH0NA1 0x40
3497 #define _CH0NA2 0x80
3499 //==============================================================================
3502 //==============================================================================
3503 // ADCHS0H Bits
3505 extern __at(0x0E87) __sfr ADCHS0H;
3507 typedef union
3509 struct
3511 unsigned CH0SB0 : 1;
3512 unsigned CH0SB1 : 1;
3513 unsigned CH0SB2 : 1;
3514 unsigned CH0SB3 : 1;
3515 unsigned CH0SB4 : 1;
3516 unsigned CH0NB0 : 1;
3517 unsigned CH0NB1 : 1;
3518 unsigned CH0NB2 : 1;
3521 struct
3523 unsigned CH0SB : 5;
3524 unsigned : 3;
3527 struct
3529 unsigned : 5;
3530 unsigned CH0NB : 3;
3532 } __ADCHS0Hbits_t;
3534 extern __at(0x0E87) volatile __ADCHS0Hbits_t ADCHS0Hbits;
3536 #define _CH0SB0 0x01
3537 #define _CH0SB1 0x02
3538 #define _CH0SB2 0x04
3539 #define _CH0SB3 0x08
3540 #define _CH0SB4 0x10
3541 #define _CH0NB0 0x20
3542 #define _CH0NB1 0x40
3543 #define _CH0NB2 0x80
3545 //==============================================================================
3548 //==============================================================================
3549 // ADCON5L Bits
3551 extern __at(0x0E88) __sfr ADCON5L;
3553 typedef union
3555 struct
3557 unsigned CM0 : 1;
3558 unsigned CM1 : 1;
3559 unsigned WM0 : 1;
3560 unsigned WM1 : 1;
3561 unsigned : 1;
3562 unsigned : 1;
3563 unsigned : 1;
3564 unsigned : 1;
3567 struct
3569 unsigned CM : 2;
3570 unsigned : 6;
3573 struct
3575 unsigned : 2;
3576 unsigned WM : 2;
3577 unsigned : 4;
3579 } __ADCON5Lbits_t;
3581 extern __at(0x0E88) volatile __ADCON5Lbits_t ADCON5Lbits;
3583 #define _CM0 0x01
3584 #define _CM1 0x02
3585 #define _WM0 0x04
3586 #define _WM1 0x08
3588 //==============================================================================
3591 //==============================================================================
3592 // ADCON5H Bits
3594 extern __at(0x0E89) __sfr ADCON5H;
3596 typedef union
3598 struct
3600 unsigned ASINTMD0 : 1;
3601 unsigned ASINTMD1 : 1;
3602 unsigned : 1;
3603 unsigned : 1;
3604 unsigned : 1;
3605 unsigned CTMUREQ : 1;
3606 unsigned LPENA : 1;
3607 unsigned ASENA : 1;
3610 struct
3612 unsigned ASINTMD : 2;
3613 unsigned : 6;
3615 } __ADCON5Hbits_t;
3617 extern __at(0x0E89) volatile __ADCON5Hbits_t ADCON5Hbits;
3619 #define _ASINTMD0 0x01
3620 #define _ASINTMD1 0x02
3621 #define _CTMUREQ 0x20
3622 #define _LPENA 0x40
3623 #define _ASENA 0x80
3625 //==============================================================================
3628 //==============================================================================
3629 // ADCON3L Bits
3631 extern __at(0x0E8A) __sfr ADCON3L;
3633 typedef struct
3635 unsigned ADCS0 : 1;
3636 unsigned ADCS1 : 1;
3637 unsigned ADCS2 : 1;
3638 unsigned ADCS3 : 1;
3639 unsigned ADCS4 : 1;
3640 unsigned ADCS5 : 1;
3641 unsigned ADCS6 : 1;
3642 unsigned ADCS7 : 1;
3643 } __ADCON3Lbits_t;
3645 extern __at(0x0E8A) volatile __ADCON3Lbits_t ADCON3Lbits;
3647 #define _ADCS0 0x01
3648 #define _ADCS1 0x02
3649 #define _ADCS2 0x04
3650 #define _ADCS3 0x08
3651 #define _ADCS4 0x10
3652 #define _ADCS5 0x20
3653 #define _ADCS6 0x40
3654 #define _ADCS7 0x80
3656 //==============================================================================
3659 //==============================================================================
3660 // ADCON3H Bits
3662 extern __at(0x0E8B) __sfr ADCON3H;
3664 typedef union
3666 struct
3668 unsigned SAMC0 : 1;
3669 unsigned SAMC1 : 1;
3670 unsigned SAMC2 : 1;
3671 unsigned SAMC3 : 1;
3672 unsigned SAMC4 : 1;
3673 unsigned PUMPEN : 1;
3674 unsigned EXTSAM : 1;
3675 unsigned ADRC : 1;
3678 struct
3680 unsigned SAMC : 5;
3681 unsigned : 3;
3683 } __ADCON3Hbits_t;
3685 extern __at(0x0E8B) volatile __ADCON3Hbits_t ADCON3Hbits;
3687 #define _SAMC0 0x01
3688 #define _SAMC1 0x02
3689 #define _SAMC2 0x04
3690 #define _SAMC3 0x08
3691 #define _SAMC4 0x10
3692 #define _PUMPEN 0x20
3693 #define _EXTSAM 0x40
3694 #define _ADRC 0x80
3696 //==============================================================================
3699 //==============================================================================
3700 // ADCON2L Bits
3702 extern __at(0x0E8C) __sfr ADCON2L;
3704 typedef union
3706 struct
3708 unsigned ALTS : 1;
3709 unsigned BUFM : 1;
3710 unsigned SMPI0 : 1;
3711 unsigned SMPI1 : 1;
3712 unsigned SMPI2 : 1;
3713 unsigned SMPI3 : 1;
3714 unsigned SMPI4 : 1;
3715 unsigned BUFS : 1;
3718 struct
3720 unsigned : 2;
3721 unsigned SMPI : 5;
3722 unsigned : 1;
3724 } __ADCON2Lbits_t;
3726 extern __at(0x0E8C) volatile __ADCON2Lbits_t ADCON2Lbits;
3728 #define _ALTS 0x01
3729 #define _BUFM 0x02
3730 #define _SMPI0 0x04
3731 #define _SMPI1 0x08
3732 #define _SMPI2 0x10
3733 #define _SMPI3 0x20
3734 #define _SMPI4 0x40
3735 #define _BUFS 0x80
3737 //==============================================================================
3740 //==============================================================================
3741 // ADCON2H Bits
3743 extern __at(0x0E8D) __sfr ADCON2H;
3745 typedef union
3747 struct
3749 unsigned : 1;
3750 unsigned : 1;
3751 unsigned CSCNA : 1;
3752 unsigned BUFREGEN : 1;
3753 unsigned OFFCAL : 1;
3754 unsigned NVCFG0 : 1;
3755 unsigned PVCFG0 : 1;
3756 unsigned PVCFG1 : 1;
3759 struct
3761 unsigned : 6;
3762 unsigned PVCFG : 2;
3764 } __ADCON2Hbits_t;
3766 extern __at(0x0E8D) volatile __ADCON2Hbits_t ADCON2Hbits;
3768 #define _CSCNA 0x04
3769 #define _BUFREGEN 0x08
3770 #define _OFFCAL 0x10
3771 #define _NVCFG0 0x20
3772 #define _PVCFG0 0x40
3773 #define _PVCFG1 0x80
3775 //==============================================================================
3778 //==============================================================================
3779 // LCDDATA0 Bits
3781 extern __at(0x0E8E) __sfr LCDDATA0;
3783 typedef struct
3785 unsigned S00C0 : 1;
3786 unsigned S01C0 : 1;
3787 unsigned S02C0 : 1;
3788 unsigned S03C0 : 1;
3789 unsigned S04C0 : 1;
3790 unsigned S05C0 : 1;
3791 unsigned S06C0 : 1;
3792 unsigned S07C0 : 1;
3793 } __LCDDATA0bits_t;
3795 extern __at(0x0E8E) volatile __LCDDATA0bits_t LCDDATA0bits;
3797 #define _S00C0 0x01
3798 #define _S01C0 0x02
3799 #define _S02C0 0x04
3800 #define _S03C0 0x08
3801 #define _S04C0 0x10
3802 #define _S05C0 0x20
3803 #define _S06C0 0x40
3804 #define _S07C0 0x80
3806 //==============================================================================
3809 //==============================================================================
3810 // LCDDATA1 Bits
3812 extern __at(0x0E8F) __sfr LCDDATA1;
3814 typedef struct
3816 unsigned S08C0 : 1;
3817 unsigned S09C0 : 1;
3818 unsigned S10C0 : 1;
3819 unsigned S11C0 : 1;
3820 unsigned S12C0 : 1;
3821 unsigned S13C0 : 1;
3822 unsigned S14C0 : 1;
3823 unsigned S15C0 : 1;
3824 } __LCDDATA1bits_t;
3826 extern __at(0x0E8F) volatile __LCDDATA1bits_t LCDDATA1bits;
3828 #define _S08C0 0x01
3829 #define _S09C0 0x02
3830 #define _S10C0 0x04
3831 #define _S11C0 0x08
3832 #define _S12C0 0x10
3833 #define _S13C0 0x20
3834 #define _S14C0 0x40
3835 #define _S15C0 0x80
3837 //==============================================================================
3840 //==============================================================================
3841 // LCDDATA2 Bits
3843 extern __at(0x0E90) __sfr LCDDATA2;
3845 typedef struct
3847 unsigned S16C0 : 1;
3848 unsigned S17C0 : 1;
3849 unsigned S18C0 : 1;
3850 unsigned S19C0 : 1;
3851 unsigned S20C0 : 1;
3852 unsigned S21C0 : 1;
3853 unsigned S22C0 : 1;
3854 unsigned S23C0 : 1;
3855 } __LCDDATA2bits_t;
3857 extern __at(0x0E90) volatile __LCDDATA2bits_t LCDDATA2bits;
3859 #define _S16C0 0x01
3860 #define _S17C0 0x02
3861 #define _S18C0 0x04
3862 #define _S19C0 0x08
3863 #define _S20C0 0x10
3864 #define _S21C0 0x20
3865 #define _S22C0 0x40
3866 #define _S23C0 0x80
3868 //==============================================================================
3871 //==============================================================================
3872 // LCDDATA3 Bits
3874 extern __at(0x0E91) __sfr LCDDATA3;
3876 typedef struct
3878 unsigned S24C0 : 1;
3879 unsigned S25C0 : 1;
3880 unsigned S26C0 : 1;
3881 unsigned S27C0 : 1;
3882 unsigned S28C0 : 1;
3883 unsigned S29C0 : 1;
3884 unsigned S30C0 : 1;
3885 unsigned S31C0 : 1;
3886 } __LCDDATA3bits_t;
3888 extern __at(0x0E91) volatile __LCDDATA3bits_t LCDDATA3bits;
3890 #define _S24C0 0x01
3891 #define _S25C0 0x02
3892 #define _S26C0 0x04
3893 #define _S27C0 0x08
3894 #define _S28C0 0x10
3895 #define _S29C0 0x20
3896 #define _S30C0 0x40
3897 #define _S31C0 0x80
3899 //==============================================================================
3902 //==============================================================================
3903 // LCDDATA4 Bits
3905 extern __at(0x0E92) __sfr LCDDATA4;
3907 typedef struct
3909 unsigned S32C0 : 1;
3910 unsigned S33C0 : 1;
3911 unsigned S34C0 : 1;
3912 unsigned S35C0 : 1;
3913 unsigned S36C0 : 1;
3914 unsigned S37C0 : 1;
3915 unsigned S38C0 : 1;
3916 unsigned S39C0 : 1;
3917 } __LCDDATA4bits_t;
3919 extern __at(0x0E92) volatile __LCDDATA4bits_t LCDDATA4bits;
3921 #define _S32C0 0x01
3922 #define _S33C0 0x02
3923 #define _S34C0 0x04
3924 #define _S35C0 0x08
3925 #define _S36C0 0x10
3926 #define _S37C0 0x20
3927 #define _S38C0 0x40
3928 #define _S39C0 0x80
3930 //==============================================================================
3933 //==============================================================================
3934 // LCDDATA5 Bits
3936 extern __at(0x0E93) __sfr LCDDATA5;
3938 typedef struct
3940 unsigned S40C0 : 1;
3941 unsigned S41C0 : 1;
3942 unsigned S42C0 : 1;
3943 unsigned S43C0 : 1;
3944 unsigned S44C0 : 1;
3945 unsigned S45C0 : 1;
3946 unsigned S46C0 : 1;
3947 unsigned S47C0 : 1;
3948 } __LCDDATA5bits_t;
3950 extern __at(0x0E93) volatile __LCDDATA5bits_t LCDDATA5bits;
3952 #define _S40C0 0x01
3953 #define _S41C0 0x02
3954 #define _S42C0 0x04
3955 #define _S43C0 0x08
3956 #define _S44C0 0x10
3957 #define _S45C0 0x20
3958 #define _S46C0 0x40
3959 #define _S47C0 0x80
3961 //==============================================================================
3964 //==============================================================================
3965 // LCDDATA6 Bits
3967 extern __at(0x0E94) __sfr LCDDATA6;
3969 typedef struct
3971 unsigned S48C0 : 1;
3972 unsigned S49C0 : 1;
3973 unsigned S50C0 : 1;
3974 unsigned S51C0 : 1;
3975 unsigned S52C0 : 1;
3976 unsigned S53C0 : 1;
3977 unsigned S54C0 : 1;
3978 unsigned S55C0 : 1;
3979 } __LCDDATA6bits_t;
3981 extern __at(0x0E94) volatile __LCDDATA6bits_t LCDDATA6bits;
3983 #define _S48C0 0x01
3984 #define _S49C0 0x02
3985 #define _S50C0 0x04
3986 #define _S51C0 0x08
3987 #define _S52C0 0x10
3988 #define _S53C0 0x20
3989 #define _S54C0 0x40
3990 #define _S55C0 0x80
3992 //==============================================================================
3995 //==============================================================================
3996 // LCDDATA7 Bits
3998 extern __at(0x0E95) __sfr LCDDATA7;
4000 typedef struct
4002 unsigned S56C0 : 1;
4003 unsigned S57C0 : 1;
4004 unsigned S58C0 : 1;
4005 unsigned S59C0 : 1;
4006 unsigned S60C0 : 1;
4007 unsigned S61C0 : 1;
4008 unsigned S62C0 : 1;
4009 unsigned S63C0 : 1;
4010 } __LCDDATA7bits_t;
4012 extern __at(0x0E95) volatile __LCDDATA7bits_t LCDDATA7bits;
4014 #define _S56C0 0x01
4015 #define _S57C0 0x02
4016 #define _S58C0 0x04
4017 #define _S59C0 0x08
4018 #define _S60C0 0x10
4019 #define _S61C0 0x20
4020 #define _S62C0 0x40
4021 #define _S63C0 0x80
4023 //==============================================================================
4026 //==============================================================================
4027 // LCDDATA8 Bits
4029 extern __at(0x0E96) __sfr LCDDATA8;
4031 typedef struct
4033 unsigned S00C1 : 1;
4034 unsigned S01C1 : 1;
4035 unsigned S02C1 : 1;
4036 unsigned S03C1 : 1;
4037 unsigned S04C1 : 1;
4038 unsigned S05C1 : 1;
4039 unsigned S06C1 : 1;
4040 unsigned S07C1 : 1;
4041 } __LCDDATA8bits_t;
4043 extern __at(0x0E96) volatile __LCDDATA8bits_t LCDDATA8bits;
4045 #define _S00C1 0x01
4046 #define _S01C1 0x02
4047 #define _S02C1 0x04
4048 #define _S03C1 0x08
4049 #define _S04C1 0x10
4050 #define _S05C1 0x20
4051 #define _S06C1 0x40
4052 #define _S07C1 0x80
4054 //==============================================================================
4057 //==============================================================================
4058 // LCDDATA9 Bits
4060 extern __at(0x0E97) __sfr LCDDATA9;
4062 typedef struct
4064 unsigned S08C1 : 1;
4065 unsigned S09C1 : 1;
4066 unsigned S10C1 : 1;
4067 unsigned S11C1 : 1;
4068 unsigned S12C1 : 1;
4069 unsigned S13C1 : 1;
4070 unsigned S14C1 : 1;
4071 unsigned S15C1 : 1;
4072 } __LCDDATA9bits_t;
4074 extern __at(0x0E97) volatile __LCDDATA9bits_t LCDDATA9bits;
4076 #define _S08C1 0x01
4077 #define _S09C1 0x02
4078 #define _S10C1 0x04
4079 #define _S11C1 0x08
4080 #define _S12C1 0x10
4081 #define _S13C1 0x20
4082 #define _S14C1 0x40
4083 #define _S15C1 0x80
4085 //==============================================================================
4088 //==============================================================================
4089 // LCDDATA10 Bits
4091 extern __at(0x0E98) __sfr LCDDATA10;
4093 typedef struct
4095 unsigned S16C1 : 1;
4096 unsigned S17C1 : 1;
4097 unsigned S18C1 : 1;
4098 unsigned S19C1 : 1;
4099 unsigned S20C1 : 1;
4100 unsigned S21C1 : 1;
4101 unsigned S22C1 : 1;
4102 unsigned S23C1 : 1;
4103 } __LCDDATA10bits_t;
4105 extern __at(0x0E98) volatile __LCDDATA10bits_t LCDDATA10bits;
4107 #define _S16C1 0x01
4108 #define _S17C1 0x02
4109 #define _S18C1 0x04
4110 #define _S19C1 0x08
4111 #define _S20C1 0x10
4112 #define _S21C1 0x20
4113 #define _S22C1 0x40
4114 #define _S23C1 0x80
4116 //==============================================================================
4119 //==============================================================================
4120 // LCDDATA11 Bits
4122 extern __at(0x0E99) __sfr LCDDATA11;
4124 typedef struct
4126 unsigned S24C1 : 1;
4127 unsigned S25C1 : 1;
4128 unsigned S26C1 : 1;
4129 unsigned S27C1 : 1;
4130 unsigned S28C1 : 1;
4131 unsigned S29C1 : 1;
4132 unsigned S30C1 : 1;
4133 unsigned S31C1 : 1;
4134 } __LCDDATA11bits_t;
4136 extern __at(0x0E99) volatile __LCDDATA11bits_t LCDDATA11bits;
4138 #define _S24C1 0x01
4139 #define _S25C1 0x02
4140 #define _S26C1 0x04
4141 #define _S27C1 0x08
4142 #define _S28C1 0x10
4143 #define _S29C1 0x20
4144 #define _S30C1 0x40
4145 #define _S31C1 0x80
4147 //==============================================================================
4150 //==============================================================================
4151 // LCDDATA12 Bits
4153 extern __at(0x0E9A) __sfr LCDDATA12;
4155 typedef struct
4157 unsigned S32C1 : 1;
4158 unsigned S33C1 : 1;
4159 unsigned S34C1 : 1;
4160 unsigned S35C1 : 1;
4161 unsigned S36C1 : 1;
4162 unsigned S37C1 : 1;
4163 unsigned S38C1 : 1;
4164 unsigned S39C1 : 1;
4165 } __LCDDATA12bits_t;
4167 extern __at(0x0E9A) volatile __LCDDATA12bits_t LCDDATA12bits;
4169 #define _S32C1 0x01
4170 #define _S33C1 0x02
4171 #define _S34C1 0x04
4172 #define _S35C1 0x08
4173 #define _S36C1 0x10
4174 #define _S37C1 0x20
4175 #define _S38C1 0x40
4176 #define _S39C1 0x80
4178 //==============================================================================
4181 //==============================================================================
4182 // LCDDATA13 Bits
4184 extern __at(0x0E9B) __sfr LCDDATA13;
4186 typedef struct
4188 unsigned S40C1 : 1;
4189 unsigned S41C1 : 1;
4190 unsigned S42C1 : 1;
4191 unsigned S43C1 : 1;
4192 unsigned S44C1 : 1;
4193 unsigned S45C1 : 1;
4194 unsigned S46C1 : 1;
4195 unsigned S47C1 : 1;
4196 } __LCDDATA13bits_t;
4198 extern __at(0x0E9B) volatile __LCDDATA13bits_t LCDDATA13bits;
4200 #define _S40C1 0x01
4201 #define _S41C1 0x02
4202 #define _S42C1 0x04
4203 #define _S43C1 0x08
4204 #define _S44C1 0x10
4205 #define _S45C1 0x20
4206 #define _S46C1 0x40
4207 #define _S47C1 0x80
4209 //==============================================================================
4212 //==============================================================================
4213 // LCDDATA14 Bits
4215 extern __at(0x0E9C) __sfr LCDDATA14;
4217 typedef struct
4219 unsigned S48C1 : 1;
4220 unsigned S49C1 : 1;
4221 unsigned S50C1 : 1;
4222 unsigned S51C1 : 1;
4223 unsigned S52C1 : 1;
4224 unsigned S53C1 : 1;
4225 unsigned S54C1 : 1;
4226 unsigned S55C1 : 1;
4227 } __LCDDATA14bits_t;
4229 extern __at(0x0E9C) volatile __LCDDATA14bits_t LCDDATA14bits;
4231 #define _S48C1 0x01
4232 #define _S49C1 0x02
4233 #define _S50C1 0x04
4234 #define _S51C1 0x08
4235 #define _S52C1 0x10
4236 #define _S53C1 0x20
4237 #define _S54C1 0x40
4238 #define _S55C1 0x80
4240 //==============================================================================
4243 //==============================================================================
4244 // LCDDATA15 Bits
4246 extern __at(0x0E9D) __sfr LCDDATA15;
4248 typedef struct
4250 unsigned S56C1 : 1;
4251 unsigned S57C1 : 1;
4252 unsigned S58C1 : 1;
4253 unsigned S59C1 : 1;
4254 unsigned S60C1 : 1;
4255 unsigned S61C1 : 1;
4256 unsigned S62C1 : 1;
4257 unsigned S63C1 : 1;
4258 } __LCDDATA15bits_t;
4260 extern __at(0x0E9D) volatile __LCDDATA15bits_t LCDDATA15bits;
4262 #define _S56C1 0x01
4263 #define _S57C1 0x02
4264 #define _S58C1 0x04
4265 #define _S59C1 0x08
4266 #define _S60C1 0x10
4267 #define _S61C1 0x20
4268 #define _S62C1 0x40
4269 #define _S63C1 0x80
4271 //==============================================================================
4274 //==============================================================================
4275 // LCDDATA16 Bits
4277 extern __at(0x0E9E) __sfr LCDDATA16;
4279 typedef struct
4281 unsigned S00C2 : 1;
4282 unsigned S01C2 : 1;
4283 unsigned S02C2 : 1;
4284 unsigned S03C2 : 1;
4285 unsigned S04C2 : 1;
4286 unsigned S05C2 : 1;
4287 unsigned S06C2 : 1;
4288 unsigned S07C2 : 1;
4289 } __LCDDATA16bits_t;
4291 extern __at(0x0E9E) volatile __LCDDATA16bits_t LCDDATA16bits;
4293 #define _S00C2 0x01
4294 #define _S01C2 0x02
4295 #define _S02C2 0x04
4296 #define _S03C2 0x08
4297 #define _S04C2 0x10
4298 #define _S05C2 0x20
4299 #define _S06C2 0x40
4300 #define _S07C2 0x80
4302 //==============================================================================
4305 //==============================================================================
4306 // LCDDATA17 Bits
4308 extern __at(0x0E9F) __sfr LCDDATA17;
4310 typedef struct
4312 unsigned S08C2 : 1;
4313 unsigned S09C2 : 1;
4314 unsigned S10C2 : 1;
4315 unsigned S11C2 : 1;
4316 unsigned S12C2 : 1;
4317 unsigned S13C2 : 1;
4318 unsigned S14C2 : 1;
4319 unsigned S15C2 : 1;
4320 } __LCDDATA17bits_t;
4322 extern __at(0x0E9F) volatile __LCDDATA17bits_t LCDDATA17bits;
4324 #define _S08C2 0x01
4325 #define _S09C2 0x02
4326 #define _S10C2 0x04
4327 #define _S11C2 0x08
4328 #define _S12C2 0x10
4329 #define _S13C2 0x20
4330 #define _S14C2 0x40
4331 #define _S15C2 0x80
4333 //==============================================================================
4336 //==============================================================================
4337 // LCDDATA18 Bits
4339 extern __at(0x0EA0) __sfr LCDDATA18;
4341 typedef struct
4343 unsigned S16C2 : 1;
4344 unsigned S17C2 : 1;
4345 unsigned S18C2 : 1;
4346 unsigned S19C2 : 1;
4347 unsigned S20C2 : 1;
4348 unsigned S21C2 : 1;
4349 unsigned S22C2 : 1;
4350 unsigned S23C2 : 1;
4351 } __LCDDATA18bits_t;
4353 extern __at(0x0EA0) volatile __LCDDATA18bits_t LCDDATA18bits;
4355 #define _S16C2 0x01
4356 #define _S17C2 0x02
4357 #define _S18C2 0x04
4358 #define _S19C2 0x08
4359 #define _S20C2 0x10
4360 #define _S21C2 0x20
4361 #define _S22C2 0x40
4362 #define _S23C2 0x80
4364 //==============================================================================
4367 //==============================================================================
4368 // LCDDATA19 Bits
4370 extern __at(0x0EA1) __sfr LCDDATA19;
4372 typedef struct
4374 unsigned S24C2 : 1;
4375 unsigned S25C2 : 1;
4376 unsigned S26C2 : 1;
4377 unsigned S27C2 : 1;
4378 unsigned S28C2 : 1;
4379 unsigned S29C2 : 1;
4380 unsigned S30C2 : 1;
4381 unsigned S31C2 : 1;
4382 } __LCDDATA19bits_t;
4384 extern __at(0x0EA1) volatile __LCDDATA19bits_t LCDDATA19bits;
4386 #define _S24C2 0x01
4387 #define _S25C2 0x02
4388 #define _S26C2 0x04
4389 #define _S27C2 0x08
4390 #define _S28C2 0x10
4391 #define _S29C2 0x20
4392 #define _S30C2 0x40
4393 #define _S31C2 0x80
4395 //==============================================================================
4398 //==============================================================================
4399 // LCDDATA20 Bits
4401 extern __at(0x0EA2) __sfr LCDDATA20;
4403 typedef struct
4405 unsigned S32C2 : 1;
4406 unsigned S33C2 : 1;
4407 unsigned S34C2 : 1;
4408 unsigned S35C2 : 1;
4409 unsigned S36C2 : 1;
4410 unsigned S37C2 : 1;
4411 unsigned S38C2 : 1;
4412 unsigned S39C2 : 1;
4413 } __LCDDATA20bits_t;
4415 extern __at(0x0EA2) volatile __LCDDATA20bits_t LCDDATA20bits;
4417 #define _S32C2 0x01
4418 #define _S33C2 0x02
4419 #define _S34C2 0x04
4420 #define _S35C2 0x08
4421 #define _S36C2 0x10
4422 #define _S37C2 0x20
4423 #define _S38C2 0x40
4424 #define _S39C2 0x80
4426 //==============================================================================
4429 //==============================================================================
4430 // LCDDATA21 Bits
4432 extern __at(0x0EA3) __sfr LCDDATA21;
4434 typedef struct
4436 unsigned S40C2 : 1;
4437 unsigned S41C2 : 1;
4438 unsigned S42C2 : 1;
4439 unsigned S43C2 : 1;
4440 unsigned S44C2 : 1;
4441 unsigned S45C2 : 1;
4442 unsigned S46C2 : 1;
4443 unsigned S47C2 : 1;
4444 } __LCDDATA21bits_t;
4446 extern __at(0x0EA3) volatile __LCDDATA21bits_t LCDDATA21bits;
4448 #define _S40C2 0x01
4449 #define _S41C2 0x02
4450 #define _S42C2 0x04
4451 #define _S43C2 0x08
4452 #define _S44C2 0x10
4453 #define _S45C2 0x20
4454 #define _S46C2 0x40
4455 #define _S47C2 0x80
4457 //==============================================================================
4460 //==============================================================================
4461 // LCDDATA22 Bits
4463 extern __at(0x0EA4) __sfr LCDDATA22;
4465 typedef struct
4467 unsigned S48C2 : 1;
4468 unsigned S49C2 : 1;
4469 unsigned S50C2 : 1;
4470 unsigned S51C2 : 1;
4471 unsigned S52C2 : 1;
4472 unsigned S53C2 : 1;
4473 unsigned S54C2 : 1;
4474 unsigned S55C2 : 1;
4475 } __LCDDATA22bits_t;
4477 extern __at(0x0EA4) volatile __LCDDATA22bits_t LCDDATA22bits;
4479 #define _S48C2 0x01
4480 #define _S49C2 0x02
4481 #define _S50C2 0x04
4482 #define _S51C2 0x08
4483 #define _S52C2 0x10
4484 #define _S53C2 0x20
4485 #define _S54C2 0x40
4486 #define _S55C2 0x80
4488 //==============================================================================
4491 //==============================================================================
4492 // LCDDATA23 Bits
4494 extern __at(0x0EA5) __sfr LCDDATA23;
4496 typedef struct
4498 unsigned S56C2 : 1;
4499 unsigned S57C2 : 1;
4500 unsigned S58C2 : 1;
4501 unsigned S59C2 : 1;
4502 unsigned S60C2 : 1;
4503 unsigned S61C2 : 1;
4504 unsigned S62C2 : 1;
4505 unsigned S63C2 : 1;
4506 } __LCDDATA23bits_t;
4508 extern __at(0x0EA5) volatile __LCDDATA23bits_t LCDDATA23bits;
4510 #define _S56C2 0x01
4511 #define _S57C2 0x02
4512 #define _S58C2 0x04
4513 #define _S59C2 0x08
4514 #define _S60C2 0x10
4515 #define _S61C2 0x20
4516 #define _S62C2 0x40
4517 #define _S63C2 0x80
4519 //==============================================================================
4522 //==============================================================================
4523 // LCDDATA24 Bits
4525 extern __at(0x0EA6) __sfr LCDDATA24;
4527 typedef struct
4529 unsigned S00C3 : 1;
4530 unsigned S01C3 : 1;
4531 unsigned S02C3 : 1;
4532 unsigned S03C3 : 1;
4533 unsigned S04C3 : 1;
4534 unsigned S05C3 : 1;
4535 unsigned S06C3 : 1;
4536 unsigned S07C3 : 1;
4537 } __LCDDATA24bits_t;
4539 extern __at(0x0EA6) volatile __LCDDATA24bits_t LCDDATA24bits;
4541 #define _S00C3 0x01
4542 #define _S01C3 0x02
4543 #define _S02C3 0x04
4544 #define _S03C3 0x08
4545 #define _S04C3 0x10
4546 #define _S05C3 0x20
4547 #define _S06C3 0x40
4548 #define _S07C3 0x80
4550 //==============================================================================
4553 //==============================================================================
4554 // LCDDATA25 Bits
4556 extern __at(0x0EA7) __sfr LCDDATA25;
4558 typedef struct
4560 unsigned S08C3 : 1;
4561 unsigned S09C3 : 1;
4562 unsigned S10C3 : 1;
4563 unsigned S11C3 : 1;
4564 unsigned S12C3 : 1;
4565 unsigned S13C3 : 1;
4566 unsigned S14C3 : 1;
4567 unsigned S15C3 : 1;
4568 } __LCDDATA25bits_t;
4570 extern __at(0x0EA7) volatile __LCDDATA25bits_t LCDDATA25bits;
4572 #define _S08C3 0x01
4573 #define _S09C3 0x02
4574 #define _S10C3 0x04
4575 #define _S11C3 0x08
4576 #define _S12C3 0x10
4577 #define _S13C3 0x20
4578 #define _S14C3 0x40
4579 #define _S15C3 0x80
4581 //==============================================================================
4584 //==============================================================================
4585 // LCDDATA26 Bits
4587 extern __at(0x0EA8) __sfr LCDDATA26;
4589 typedef struct
4591 unsigned S16C3 : 1;
4592 unsigned S17C3 : 1;
4593 unsigned S18C3 : 1;
4594 unsigned S19C3 : 1;
4595 unsigned S20C3 : 1;
4596 unsigned S21C3 : 1;
4597 unsigned S22C3 : 1;
4598 unsigned S23C3 : 1;
4599 } __LCDDATA26bits_t;
4601 extern __at(0x0EA8) volatile __LCDDATA26bits_t LCDDATA26bits;
4603 #define _S16C3 0x01
4604 #define _S17C3 0x02
4605 #define _S18C3 0x04
4606 #define _S19C3 0x08
4607 #define _S20C3 0x10
4608 #define _S21C3 0x20
4609 #define _S22C3 0x40
4610 #define _S23C3 0x80
4612 //==============================================================================
4615 //==============================================================================
4616 // LCDDATA27 Bits
4618 extern __at(0x0EA9) __sfr LCDDATA27;
4620 typedef struct
4622 unsigned S24C3 : 1;
4623 unsigned S25C3 : 1;
4624 unsigned S26C3 : 1;
4625 unsigned S27C3 : 1;
4626 unsigned S28C3 : 1;
4627 unsigned S29C3 : 1;
4628 unsigned S30C3 : 1;
4629 unsigned S31C3 : 1;
4630 } __LCDDATA27bits_t;
4632 extern __at(0x0EA9) volatile __LCDDATA27bits_t LCDDATA27bits;
4634 #define _S24C3 0x01
4635 #define _S25C3 0x02
4636 #define _S26C3 0x04
4637 #define _S27C3 0x08
4638 #define _S28C3 0x10
4639 #define _S29C3 0x20
4640 #define _S30C3 0x40
4641 #define _S31C3 0x80
4643 //==============================================================================
4646 //==============================================================================
4647 // LCDDATA28 Bits
4649 extern __at(0x0EAA) __sfr LCDDATA28;
4651 typedef struct
4653 unsigned S32C3 : 1;
4654 unsigned S33C3 : 1;
4655 unsigned S34C3 : 1;
4656 unsigned S35C3 : 1;
4657 unsigned S36C3 : 1;
4658 unsigned S37C3 : 1;
4659 unsigned S38C3 : 1;
4660 unsigned S39C3 : 1;
4661 } __LCDDATA28bits_t;
4663 extern __at(0x0EAA) volatile __LCDDATA28bits_t LCDDATA28bits;
4665 #define _S32C3 0x01
4666 #define _S33C3 0x02
4667 #define _S34C3 0x04
4668 #define _S35C3 0x08
4669 #define _S36C3 0x10
4670 #define _S37C3 0x20
4671 #define _S38C3 0x40
4672 #define _S39C3 0x80
4674 //==============================================================================
4677 //==============================================================================
4678 // LCDDATA29 Bits
4680 extern __at(0x0EAB) __sfr LCDDATA29;
4682 typedef struct
4684 unsigned S40C3 : 1;
4685 unsigned S41C3 : 1;
4686 unsigned S42C3 : 1;
4687 unsigned S43C3 : 1;
4688 unsigned S44C3 : 1;
4689 unsigned S45C3 : 1;
4690 unsigned S46C3 : 1;
4691 unsigned S47C3 : 1;
4692 } __LCDDATA29bits_t;
4694 extern __at(0x0EAB) volatile __LCDDATA29bits_t LCDDATA29bits;
4696 #define _S40C3 0x01
4697 #define _S41C3 0x02
4698 #define _S42C3 0x04
4699 #define _S43C3 0x08
4700 #define _S44C3 0x10
4701 #define _S45C3 0x20
4702 #define _S46C3 0x40
4703 #define _S47C3 0x80
4705 //==============================================================================
4708 //==============================================================================
4709 // LCDDATA30 Bits
4711 extern __at(0x0EAC) __sfr LCDDATA30;
4713 typedef struct
4715 unsigned S48C3 : 1;
4716 unsigned S49C3 : 1;
4717 unsigned S50C3 : 1;
4718 unsigned S51C3 : 1;
4719 unsigned S52C3 : 1;
4720 unsigned S53C3 : 1;
4721 unsigned S54C3 : 1;
4722 unsigned S55C3 : 1;
4723 } __LCDDATA30bits_t;
4725 extern __at(0x0EAC) volatile __LCDDATA30bits_t LCDDATA30bits;
4727 #define _S48C3 0x01
4728 #define _S49C3 0x02
4729 #define _S50C3 0x04
4730 #define _S51C3 0x08
4731 #define _S52C3 0x10
4732 #define _S53C3 0x20
4733 #define _S54C3 0x40
4734 #define _S55C3 0x80
4736 //==============================================================================
4739 //==============================================================================
4740 // LCDDATA31 Bits
4742 extern __at(0x0EAD) __sfr LCDDATA31;
4744 typedef struct
4746 unsigned S56C3 : 1;
4747 unsigned S57C3 : 1;
4748 unsigned S58C3 : 1;
4749 unsigned S59C3 : 1;
4750 unsigned S60C3 : 1;
4751 unsigned S61C3 : 1;
4752 unsigned S62C3 : 1;
4753 unsigned S63C3 : 1;
4754 } __LCDDATA31bits_t;
4756 extern __at(0x0EAD) volatile __LCDDATA31bits_t LCDDATA31bits;
4758 #define _S56C3 0x01
4759 #define _S57C3 0x02
4760 #define _S58C3 0x04
4761 #define _S59C3 0x08
4762 #define _S60C3 0x10
4763 #define _S61C3 0x20
4764 #define _S62C3 0x40
4765 #define _S63C3 0x80
4767 //==============================================================================
4770 //==============================================================================
4771 // LCDDATA32 Bits
4773 extern __at(0x0EAE) __sfr LCDDATA32;
4775 typedef struct
4777 unsigned S00C4 : 1;
4778 unsigned S01C4 : 1;
4779 unsigned S02C4 : 1;
4780 unsigned S03C4 : 1;
4781 unsigned S04C4 : 1;
4782 unsigned S05C4 : 1;
4783 unsigned S06C4 : 1;
4784 unsigned S07C4 : 1;
4785 } __LCDDATA32bits_t;
4787 extern __at(0x0EAE) volatile __LCDDATA32bits_t LCDDATA32bits;
4789 #define _S00C4 0x01
4790 #define _S01C4 0x02
4791 #define _S02C4 0x04
4792 #define _S03C4 0x08
4793 #define _S04C4 0x10
4794 #define _S05C4 0x20
4795 #define _S06C4 0x40
4796 #define _S07C4 0x80
4798 //==============================================================================
4801 //==============================================================================
4802 // LCDDATA33 Bits
4804 extern __at(0x0EAF) __sfr LCDDATA33;
4806 typedef struct
4808 unsigned S08C4 : 1;
4809 unsigned S09C4 : 1;
4810 unsigned S10C4 : 1;
4811 unsigned S11C4 : 1;
4812 unsigned S12C4 : 1;
4813 unsigned S13C4 : 1;
4814 unsigned S14C4 : 1;
4815 unsigned S15C4 : 1;
4816 } __LCDDATA33bits_t;
4818 extern __at(0x0EAF) volatile __LCDDATA33bits_t LCDDATA33bits;
4820 #define _S08C4 0x01
4821 #define _S09C4 0x02
4822 #define _S10C4 0x04
4823 #define _S11C4 0x08
4824 #define _S12C4 0x10
4825 #define _S13C4 0x20
4826 #define _S14C4 0x40
4827 #define _S15C4 0x80
4829 //==============================================================================
4832 //==============================================================================
4833 // LCDDATA34 Bits
4835 extern __at(0x0EB0) __sfr LCDDATA34;
4837 typedef struct
4839 unsigned S16C4 : 1;
4840 unsigned S17C4 : 1;
4841 unsigned S18C4 : 1;
4842 unsigned S19C4 : 1;
4843 unsigned S20C4 : 1;
4844 unsigned S21C4 : 1;
4845 unsigned S22C4 : 1;
4846 unsigned S23C4 : 1;
4847 } __LCDDATA34bits_t;
4849 extern __at(0x0EB0) volatile __LCDDATA34bits_t LCDDATA34bits;
4851 #define _S16C4 0x01
4852 #define _S17C4 0x02
4853 #define _S18C4 0x04
4854 #define _S19C4 0x08
4855 #define _S20C4 0x10
4856 #define _S21C4 0x20
4857 #define _S22C4 0x40
4858 #define _S23C4 0x80
4860 //==============================================================================
4863 //==============================================================================
4864 // LCDDATA35 Bits
4866 extern __at(0x0EB1) __sfr LCDDATA35;
4868 typedef struct
4870 unsigned S24C4 : 1;
4871 unsigned S25C4 : 1;
4872 unsigned S26C4 : 1;
4873 unsigned S27C4 : 1;
4874 unsigned S28C4 : 1;
4875 unsigned S29C4 : 1;
4876 unsigned S30C4 : 1;
4877 unsigned S31C4 : 1;
4878 } __LCDDATA35bits_t;
4880 extern __at(0x0EB1) volatile __LCDDATA35bits_t LCDDATA35bits;
4882 #define _S24C4 0x01
4883 #define _S25C4 0x02
4884 #define _S26C4 0x04
4885 #define _S27C4 0x08
4886 #define _S28C4 0x10
4887 #define _S29C4 0x20
4888 #define _S30C4 0x40
4889 #define _S31C4 0x80
4891 //==============================================================================
4894 //==============================================================================
4895 // LCDDATA36 Bits
4897 extern __at(0x0EB2) __sfr LCDDATA36;
4899 typedef struct
4901 unsigned S32C4 : 1;
4902 unsigned S33C4 : 1;
4903 unsigned S34C4 : 1;
4904 unsigned S35C4 : 1;
4905 unsigned S36C4 : 1;
4906 unsigned S37C4 : 1;
4907 unsigned S38C4 : 1;
4908 unsigned S39C4 : 1;
4909 } __LCDDATA36bits_t;
4911 extern __at(0x0EB2) volatile __LCDDATA36bits_t LCDDATA36bits;
4913 #define _S32C4 0x01
4914 #define _S33C4 0x02
4915 #define _S34C4 0x04
4916 #define _S35C4 0x08
4917 #define _S36C4 0x10
4918 #define _S37C4 0x20
4919 #define _S38C4 0x40
4920 #define _S39C4 0x80
4922 //==============================================================================
4925 //==============================================================================
4926 // LCDDATA37 Bits
4928 extern __at(0x0EB3) __sfr LCDDATA37;
4930 typedef struct
4932 unsigned S40C4 : 1;
4933 unsigned S41C4 : 1;
4934 unsigned S42C4 : 1;
4935 unsigned S43C4 : 1;
4936 unsigned S44C4 : 1;
4937 unsigned S45C4 : 1;
4938 unsigned S46C4 : 1;
4939 unsigned S47C4 : 1;
4940 } __LCDDATA37bits_t;
4942 extern __at(0x0EB3) volatile __LCDDATA37bits_t LCDDATA37bits;
4944 #define _S40C4 0x01
4945 #define _S41C4 0x02
4946 #define _S42C4 0x04
4947 #define _S43C4 0x08
4948 #define _S44C4 0x10
4949 #define _S45C4 0x20
4950 #define _S46C4 0x40
4951 #define _S47C4 0x80
4953 //==============================================================================
4956 //==============================================================================
4957 // LCDDATA38 Bits
4959 extern __at(0x0EB4) __sfr LCDDATA38;
4961 typedef struct
4963 unsigned S48C4 : 1;
4964 unsigned S49C4 : 1;
4965 unsigned S50C4 : 1;
4966 unsigned S51C4 : 1;
4967 unsigned S52C4 : 1;
4968 unsigned S53C4 : 1;
4969 unsigned S54C4 : 1;
4970 unsigned S55C4 : 1;
4971 } __LCDDATA38bits_t;
4973 extern __at(0x0EB4) volatile __LCDDATA38bits_t LCDDATA38bits;
4975 #define _S48C4 0x01
4976 #define _S49C4 0x02
4977 #define _S50C4 0x04
4978 #define _S51C4 0x08
4979 #define _S52C4 0x10
4980 #define _S53C4 0x20
4981 #define _S54C4 0x40
4982 #define _S55C4 0x80
4984 //==============================================================================
4987 //==============================================================================
4988 // LCDDATA39 Bits
4990 extern __at(0x0EB5) __sfr LCDDATA39;
4992 typedef struct
4994 unsigned S56C4 : 1;
4995 unsigned S57C4 : 1;
4996 unsigned S58C4 : 1;
4997 unsigned S59C4 : 1;
4998 unsigned S60C4 : 1;
4999 unsigned S61C4 : 1;
5000 unsigned S62C4 : 1;
5001 unsigned S63C4 : 1;
5002 } __LCDDATA39bits_t;
5004 extern __at(0x0EB5) volatile __LCDDATA39bits_t LCDDATA39bits;
5006 #define _S56C4 0x01
5007 #define _S57C4 0x02
5008 #define _S58C4 0x04
5009 #define _S59C4 0x08
5010 #define _S60C4 0x10
5011 #define _S61C4 0x20
5012 #define _S62C4 0x40
5013 #define _S63C4 0x80
5015 //==============================================================================
5018 //==============================================================================
5019 // LCDDATA40 Bits
5021 extern __at(0x0EB6) __sfr LCDDATA40;
5023 typedef struct
5025 unsigned S00C5 : 1;
5026 unsigned S01C5 : 1;
5027 unsigned S02C5 : 1;
5028 unsigned S03C5 : 1;
5029 unsigned S04C5 : 1;
5030 unsigned S05C5 : 1;
5031 unsigned S06C5 : 1;
5032 unsigned S07C5 : 1;
5033 } __LCDDATA40bits_t;
5035 extern __at(0x0EB6) volatile __LCDDATA40bits_t LCDDATA40bits;
5037 #define _S00C5 0x01
5038 #define _S01C5 0x02
5039 #define _S02C5 0x04
5040 #define _S03C5 0x08
5041 #define _S04C5 0x10
5042 #define _S05C5 0x20
5043 #define _S06C5 0x40
5044 #define _S07C5 0x80
5046 //==============================================================================
5049 //==============================================================================
5050 // LCDDATA41 Bits
5052 extern __at(0x0EB7) __sfr LCDDATA41;
5054 typedef struct
5056 unsigned S08C5 : 1;
5057 unsigned S09C5 : 1;
5058 unsigned S10C5 : 1;
5059 unsigned S11C5 : 1;
5060 unsigned S12C5 : 1;
5061 unsigned S13C5 : 1;
5062 unsigned S14C5 : 1;
5063 unsigned S15C5 : 1;
5064 } __LCDDATA41bits_t;
5066 extern __at(0x0EB7) volatile __LCDDATA41bits_t LCDDATA41bits;
5068 #define _S08C5 0x01
5069 #define _S09C5 0x02
5070 #define _S10C5 0x04
5071 #define _S11C5 0x08
5072 #define _S12C5 0x10
5073 #define _S13C5 0x20
5074 #define _S14C5 0x40
5075 #define _S15C5 0x80
5077 //==============================================================================
5080 //==============================================================================
5081 // LCDDATA42 Bits
5083 extern __at(0x0EB8) __sfr LCDDATA42;
5085 typedef struct
5087 unsigned S16C5 : 1;
5088 unsigned S17C5 : 1;
5089 unsigned S18C5 : 1;
5090 unsigned S19C5 : 1;
5091 unsigned S20C5 : 1;
5092 unsigned S21C5 : 1;
5093 unsigned S22C5 : 1;
5094 unsigned S23C5 : 1;
5095 } __LCDDATA42bits_t;
5097 extern __at(0x0EB8) volatile __LCDDATA42bits_t LCDDATA42bits;
5099 #define _S16C5 0x01
5100 #define _S17C5 0x02
5101 #define _S18C5 0x04
5102 #define _S19C5 0x08
5103 #define _S20C5 0x10
5104 #define _S21C5 0x20
5105 #define _S22C5 0x40
5106 #define _S23C5 0x80
5108 //==============================================================================
5111 //==============================================================================
5112 // LCDDATA43 Bits
5114 extern __at(0x0EB9) __sfr LCDDATA43;
5116 typedef struct
5118 unsigned S24C5 : 1;
5119 unsigned S25C5 : 1;
5120 unsigned S26C5 : 1;
5121 unsigned S27C5 : 1;
5122 unsigned S28C5 : 1;
5123 unsigned S29C5 : 1;
5124 unsigned S30C5 : 1;
5125 unsigned S31C5 : 1;
5126 } __LCDDATA43bits_t;
5128 extern __at(0x0EB9) volatile __LCDDATA43bits_t LCDDATA43bits;
5130 #define _S24C5 0x01
5131 #define _S25C5 0x02
5132 #define _S26C5 0x04
5133 #define _S27C5 0x08
5134 #define _S28C5 0x10
5135 #define _S29C5 0x20
5136 #define _S30C5 0x40
5137 #define _S31C5 0x80
5139 //==============================================================================
5142 //==============================================================================
5143 // LCDDATA44 Bits
5145 extern __at(0x0EBA) __sfr LCDDATA44;
5147 typedef struct
5149 unsigned S32C5 : 1;
5150 unsigned S33C5 : 1;
5151 unsigned S34C5 : 1;
5152 unsigned S35C5 : 1;
5153 unsigned S36C5 : 1;
5154 unsigned S37C5 : 1;
5155 unsigned S38C5 : 1;
5156 unsigned S39C5 : 1;
5157 } __LCDDATA44bits_t;
5159 extern __at(0x0EBA) volatile __LCDDATA44bits_t LCDDATA44bits;
5161 #define _S32C5 0x01
5162 #define _S33C5 0x02
5163 #define _S34C5 0x04
5164 #define _S35C5 0x08
5165 #define _S36C5 0x10
5166 #define _S37C5 0x20
5167 #define _S38C5 0x40
5168 #define _S39C5 0x80
5170 //==============================================================================
5173 //==============================================================================
5174 // LCDDATA45 Bits
5176 extern __at(0x0EBB) __sfr LCDDATA45;
5178 typedef struct
5180 unsigned S40C5 : 1;
5181 unsigned S41C5 : 1;
5182 unsigned S42C5 : 1;
5183 unsigned S43C5 : 1;
5184 unsigned S44C5 : 1;
5185 unsigned S45C5 : 1;
5186 unsigned S46C5 : 1;
5187 unsigned S47C5 : 1;
5188 } __LCDDATA45bits_t;
5190 extern __at(0x0EBB) volatile __LCDDATA45bits_t LCDDATA45bits;
5192 #define _S40C5 0x01
5193 #define _S41C5 0x02
5194 #define _S42C5 0x04
5195 #define _S43C5 0x08
5196 #define _S44C5 0x10
5197 #define _S45C5 0x20
5198 #define _S46C5 0x40
5199 #define _S47C5 0x80
5201 //==============================================================================
5204 //==============================================================================
5205 // LCDDATA46 Bits
5207 extern __at(0x0EBC) __sfr LCDDATA46;
5209 typedef struct
5211 unsigned S48C5 : 1;
5212 unsigned S49C5 : 1;
5213 unsigned S50C5 : 1;
5214 unsigned S51C5 : 1;
5215 unsigned S52C5 : 1;
5216 unsigned S53C5 : 1;
5217 unsigned S54C5 : 1;
5218 unsigned S55C5 : 1;
5219 } __LCDDATA46bits_t;
5221 extern __at(0x0EBC) volatile __LCDDATA46bits_t LCDDATA46bits;
5223 #define _S48C5 0x01
5224 #define _S49C5 0x02
5225 #define _S50C5 0x04
5226 #define _S51C5 0x08
5227 #define _S52C5 0x10
5228 #define _S53C5 0x20
5229 #define _S54C5 0x40
5230 #define _S55C5 0x80
5232 //==============================================================================
5235 //==============================================================================
5236 // LCDDATA47 Bits
5238 extern __at(0x0EBD) __sfr LCDDATA47;
5240 typedef struct
5242 unsigned S56C5 : 1;
5243 unsigned S57C5 : 1;
5244 unsigned S58C5 : 1;
5245 unsigned S59C5 : 1;
5246 unsigned S60C5 : 1;
5247 unsigned S61C5 : 1;
5248 unsigned S62C5 : 1;
5249 unsigned S63C5 : 1;
5250 } __LCDDATA47bits_t;
5252 extern __at(0x0EBD) volatile __LCDDATA47bits_t LCDDATA47bits;
5254 #define _S56C5 0x01
5255 #define _S57C5 0x02
5256 #define _S58C5 0x04
5257 #define _S59C5 0x08
5258 #define _S60C5 0x10
5259 #define _S61C5 0x20
5260 #define _S62C5 0x40
5261 #define _S63C5 0x80
5263 //==============================================================================
5266 //==============================================================================
5267 // LCDDATA48 Bits
5269 extern __at(0x0EBE) __sfr LCDDATA48;
5271 typedef struct
5273 unsigned S00C6 : 1;
5274 unsigned S01C6 : 1;
5275 unsigned S02C6 : 1;
5276 unsigned S03C6 : 1;
5277 unsigned S04C6 : 1;
5278 unsigned S05C6 : 1;
5279 unsigned S06C6 : 1;
5280 unsigned S07C6 : 1;
5281 } __LCDDATA48bits_t;
5283 extern __at(0x0EBE) volatile __LCDDATA48bits_t LCDDATA48bits;
5285 #define _S00C6 0x01
5286 #define _S01C6 0x02
5287 #define _S02C6 0x04
5288 #define _S03C6 0x08
5289 #define _S04C6 0x10
5290 #define _S05C6 0x20
5291 #define _S06C6 0x40
5292 #define _S07C6 0x80
5294 //==============================================================================
5297 //==============================================================================
5298 // LCDDATA49 Bits
5300 extern __at(0x0EBF) __sfr LCDDATA49;
5302 typedef struct
5304 unsigned S08C6 : 1;
5305 unsigned S09C6 : 1;
5306 unsigned S10C6 : 1;
5307 unsigned S11C6 : 1;
5308 unsigned S12C6 : 1;
5309 unsigned S13C6 : 1;
5310 unsigned S14C6 : 1;
5311 unsigned S15C6 : 1;
5312 } __LCDDATA49bits_t;
5314 extern __at(0x0EBF) volatile __LCDDATA49bits_t LCDDATA49bits;
5316 #define _S08C6 0x01
5317 #define _S09C6 0x02
5318 #define _S10C6 0x04
5319 #define _S11C6 0x08
5320 #define _S12C6 0x10
5321 #define _S13C6 0x20
5322 #define _S14C6 0x40
5323 #define _S15C6 0x80
5325 //==============================================================================
5328 //==============================================================================
5329 // LCDDATA50 Bits
5331 extern __at(0x0EC0) __sfr LCDDATA50;
5333 typedef struct
5335 unsigned S16C6 : 1;
5336 unsigned S17C6 : 1;
5337 unsigned S18C6 : 1;
5338 unsigned S19C6 : 1;
5339 unsigned S20C6 : 1;
5340 unsigned S21C6 : 1;
5341 unsigned S22C6 : 1;
5342 unsigned S23C6 : 1;
5343 } __LCDDATA50bits_t;
5345 extern __at(0x0EC0) volatile __LCDDATA50bits_t LCDDATA50bits;
5347 #define _S16C6 0x01
5348 #define _S17C6 0x02
5349 #define _S18C6 0x04
5350 #define _S19C6 0x08
5351 #define _S20C6 0x10
5352 #define _S21C6 0x20
5353 #define _S22C6 0x40
5354 #define _S23C6 0x80
5356 //==============================================================================
5359 //==============================================================================
5360 // LCDDATA51 Bits
5362 extern __at(0x0EC1) __sfr LCDDATA51;
5364 typedef struct
5366 unsigned S24C6 : 1;
5367 unsigned S25C6 : 1;
5368 unsigned S26C6 : 1;
5369 unsigned S27C6 : 1;
5370 unsigned S28C6 : 1;
5371 unsigned S29C6 : 1;
5372 unsigned S30C6 : 1;
5373 unsigned S31C6 : 1;
5374 } __LCDDATA51bits_t;
5376 extern __at(0x0EC1) volatile __LCDDATA51bits_t LCDDATA51bits;
5378 #define _S24C6 0x01
5379 #define _S25C6 0x02
5380 #define _S26C6 0x04
5381 #define _S27C6 0x08
5382 #define _S28C6 0x10
5383 #define _S29C6 0x20
5384 #define _S30C6 0x40
5385 #define _S31C6 0x80
5387 //==============================================================================
5390 //==============================================================================
5391 // LCDDATA52 Bits
5393 extern __at(0x0EC2) __sfr LCDDATA52;
5395 typedef struct
5397 unsigned S32C6 : 1;
5398 unsigned S33C6 : 1;
5399 unsigned S34C6 : 1;
5400 unsigned S35C6 : 1;
5401 unsigned S36C6 : 1;
5402 unsigned S37C6 : 1;
5403 unsigned S38C6 : 1;
5404 unsigned S39C6 : 1;
5405 } __LCDDATA52bits_t;
5407 extern __at(0x0EC2) volatile __LCDDATA52bits_t LCDDATA52bits;
5409 #define _S32C6 0x01
5410 #define _S33C6 0x02
5411 #define _S34C6 0x04
5412 #define _S35C6 0x08
5413 #define _S36C6 0x10
5414 #define _S37C6 0x20
5415 #define _S38C6 0x40
5416 #define _S39C6 0x80
5418 //==============================================================================
5421 //==============================================================================
5422 // LCDDATA53 Bits
5424 extern __at(0x0EC3) __sfr LCDDATA53;
5426 typedef struct
5428 unsigned S40C6 : 1;
5429 unsigned S41C6 : 1;
5430 unsigned S42C6 : 1;
5431 unsigned S43C6 : 1;
5432 unsigned S44C6 : 1;
5433 unsigned S45C6 : 1;
5434 unsigned S46C6 : 1;
5435 unsigned S47C6 : 1;
5436 } __LCDDATA53bits_t;
5438 extern __at(0x0EC3) volatile __LCDDATA53bits_t LCDDATA53bits;
5440 #define _S40C6 0x01
5441 #define _S41C6 0x02
5442 #define _S42C6 0x04
5443 #define _S43C6 0x08
5444 #define _S44C6 0x10
5445 #define _S45C6 0x20
5446 #define _S46C6 0x40
5447 #define _S47C6 0x80
5449 //==============================================================================
5452 //==============================================================================
5453 // LCDDATA54 Bits
5455 extern __at(0x0EC4) __sfr LCDDATA54;
5457 typedef struct
5459 unsigned S48C6 : 1;
5460 unsigned S49C6 : 1;
5461 unsigned S50C6 : 1;
5462 unsigned S51C6 : 1;
5463 unsigned S52C6 : 1;
5464 unsigned S53C6 : 1;
5465 unsigned S54C6 : 1;
5466 unsigned S55C6 : 1;
5467 } __LCDDATA54bits_t;
5469 extern __at(0x0EC4) volatile __LCDDATA54bits_t LCDDATA54bits;
5471 #define _S48C6 0x01
5472 #define _S49C6 0x02
5473 #define _S50C6 0x04
5474 #define _S51C6 0x08
5475 #define _S52C6 0x10
5476 #define _S53C6 0x20
5477 #define _S54C6 0x40
5478 #define _S55C6 0x80
5480 //==============================================================================
5483 //==============================================================================
5484 // LCDDATA55 Bits
5486 extern __at(0x0EC5) __sfr LCDDATA55;
5488 typedef struct
5490 unsigned S56C6 : 1;
5491 unsigned S57C6 : 1;
5492 unsigned S58C6 : 1;
5493 unsigned S59C6 : 1;
5494 unsigned S60C6 : 1;
5495 unsigned S61C6 : 1;
5496 unsigned S62C6 : 1;
5497 unsigned S63C6 : 1;
5498 } __LCDDATA55bits_t;
5500 extern __at(0x0EC5) volatile __LCDDATA55bits_t LCDDATA55bits;
5502 #define _S56C6 0x01
5503 #define _S57C6 0x02
5504 #define _S58C6 0x04
5505 #define _S59C6 0x08
5506 #define _S60C6 0x10
5507 #define _S61C6 0x20
5508 #define _S62C6 0x40
5509 #define _S63C6 0x80
5511 //==============================================================================
5514 //==============================================================================
5515 // LCDDATA56 Bits
5517 extern __at(0x0EC6) __sfr LCDDATA56;
5519 typedef struct
5521 unsigned S00C7 : 1;
5522 unsigned S01C7 : 1;
5523 unsigned S02C7 : 1;
5524 unsigned S03C7 : 1;
5525 unsigned S04C7 : 1;
5526 unsigned S05C7 : 1;
5527 unsigned S06C7 : 1;
5528 unsigned S07C7 : 1;
5529 } __LCDDATA56bits_t;
5531 extern __at(0x0EC6) volatile __LCDDATA56bits_t LCDDATA56bits;
5533 #define _S00C7 0x01
5534 #define _S01C7 0x02
5535 #define _S02C7 0x04
5536 #define _S03C7 0x08
5537 #define _S04C7 0x10
5538 #define _S05C7 0x20
5539 #define _S06C7 0x40
5540 #define _S07C7 0x80
5542 //==============================================================================
5545 //==============================================================================
5546 // LCDDATA57 Bits
5548 extern __at(0x0EC7) __sfr LCDDATA57;
5550 typedef struct
5552 unsigned S08C7 : 1;
5553 unsigned S09C7 : 1;
5554 unsigned S10C7 : 1;
5555 unsigned S11C7 : 1;
5556 unsigned S12C7 : 1;
5557 unsigned S13C7 : 1;
5558 unsigned S14C7 : 1;
5559 unsigned S15C7 : 1;
5560 } __LCDDATA57bits_t;
5562 extern __at(0x0EC7) volatile __LCDDATA57bits_t LCDDATA57bits;
5564 #define _S08C7 0x01
5565 #define _S09C7 0x02
5566 #define _S10C7 0x04
5567 #define _S11C7 0x08
5568 #define _S12C7 0x10
5569 #define _S13C7 0x20
5570 #define _S14C7 0x40
5571 #define _S15C7 0x80
5573 //==============================================================================
5576 //==============================================================================
5577 // LCDDATA58 Bits
5579 extern __at(0x0EC8) __sfr LCDDATA58;
5581 typedef struct
5583 unsigned S16C7 : 1;
5584 unsigned S17C7 : 1;
5585 unsigned S18C7 : 1;
5586 unsigned S19C7 : 1;
5587 unsigned S20C7 : 1;
5588 unsigned S21C7 : 1;
5589 unsigned S22C7 : 1;
5590 unsigned S23C7 : 1;
5591 } __LCDDATA58bits_t;
5593 extern __at(0x0EC8) volatile __LCDDATA58bits_t LCDDATA58bits;
5595 #define _S16C7 0x01
5596 #define _S17C7 0x02
5597 #define _S18C7 0x04
5598 #define _S19C7 0x08
5599 #define _S20C7 0x10
5600 #define _S21C7 0x20
5601 #define _S22C7 0x40
5602 #define _S23C7 0x80
5604 //==============================================================================
5607 //==============================================================================
5608 // LCDDATA59 Bits
5610 extern __at(0x0EC9) __sfr LCDDATA59;
5612 typedef struct
5614 unsigned S24C7 : 1;
5615 unsigned S25C7 : 1;
5616 unsigned S26C7 : 1;
5617 unsigned S27C7 : 1;
5618 unsigned S28C7 : 1;
5619 unsigned S29C7 : 1;
5620 unsigned S30C7 : 1;
5621 unsigned S31C7 : 1;
5622 } __LCDDATA59bits_t;
5624 extern __at(0x0EC9) volatile __LCDDATA59bits_t LCDDATA59bits;
5626 #define _S24C7 0x01
5627 #define _S25C7 0x02
5628 #define _S26C7 0x04
5629 #define _S27C7 0x08
5630 #define _S28C7 0x10
5631 #define _S29C7 0x20
5632 #define _S30C7 0x40
5633 #define _S31C7 0x80
5635 //==============================================================================
5638 //==============================================================================
5639 // LCDDATA60 Bits
5641 extern __at(0x0ECA) __sfr LCDDATA60;
5643 typedef struct
5645 unsigned S32C7 : 1;
5646 unsigned S33C7 : 1;
5647 unsigned S34C7 : 1;
5648 unsigned S35C7 : 1;
5649 unsigned S36C7 : 1;
5650 unsigned S37C7 : 1;
5651 unsigned S38C7 : 1;
5652 unsigned S39C7 : 1;
5653 } __LCDDATA60bits_t;
5655 extern __at(0x0ECA) volatile __LCDDATA60bits_t LCDDATA60bits;
5657 #define _S32C7 0x01
5658 #define _S33C7 0x02
5659 #define _S34C7 0x04
5660 #define _S35C7 0x08
5661 #define _S36C7 0x10
5662 #define _S37C7 0x20
5663 #define _S38C7 0x40
5664 #define _S39C7 0x80
5666 //==============================================================================
5669 //==============================================================================
5670 // LCDDATA61 Bits
5672 extern __at(0x0ECB) __sfr LCDDATA61;
5674 typedef struct
5676 unsigned S40C7 : 1;
5677 unsigned S41C7 : 1;
5678 unsigned S42C7 : 1;
5679 unsigned S43C7 : 1;
5680 unsigned S44C7 : 1;
5681 unsigned S45C7 : 1;
5682 unsigned S46C7 : 1;
5683 unsigned S47C7 : 1;
5684 } __LCDDATA61bits_t;
5686 extern __at(0x0ECB) volatile __LCDDATA61bits_t LCDDATA61bits;
5688 #define _S40C7 0x01
5689 #define _S41C7 0x02
5690 #define _S42C7 0x04
5691 #define _S43C7 0x08
5692 #define _S44C7 0x10
5693 #define _S45C7 0x20
5694 #define _S46C7 0x40
5695 #define _S47C7 0x80
5697 //==============================================================================
5700 //==============================================================================
5701 // LCDDATA62 Bits
5703 extern __at(0x0ECC) __sfr LCDDATA62;
5705 typedef struct
5707 unsigned S48C7 : 1;
5708 unsigned S49C7 : 1;
5709 unsigned S50C7 : 1;
5710 unsigned S51C7 : 1;
5711 unsigned S52C7 : 1;
5712 unsigned S53C7 : 1;
5713 unsigned S54C7 : 1;
5714 unsigned S55C7 : 1;
5715 } __LCDDATA62bits_t;
5717 extern __at(0x0ECC) volatile __LCDDATA62bits_t LCDDATA62bits;
5719 #define _S48C7 0x01
5720 #define _S49C7 0x02
5721 #define _S50C7 0x04
5722 #define _S51C7 0x08
5723 #define _S52C7 0x10
5724 #define _S53C7 0x20
5725 #define _S54C7 0x40
5726 #define _S55C7 0x80
5728 //==============================================================================
5731 //==============================================================================
5732 // LCDDATA63 Bits
5734 extern __at(0x0ECD) __sfr LCDDATA63;
5736 typedef struct
5738 unsigned S56C7 : 1;
5739 unsigned S57C7 : 1;
5740 unsigned S58C7 : 1;
5741 unsigned S59C7 : 1;
5742 unsigned S60C7 : 1;
5743 unsigned S61C7 : 1;
5744 unsigned S62C7 : 1;
5745 unsigned S63C7 : 1;
5746 } __LCDDATA63bits_t;
5748 extern __at(0x0ECD) volatile __LCDDATA63bits_t LCDDATA63bits;
5750 #define _S56C7 0x01
5751 #define _S57C7 0x02
5752 #define _S58C7 0x04
5753 #define _S59C7 0x08
5754 #define _S60C7 0x10
5755 #define _S61C7 0x20
5756 #define _S62C7 0x40
5757 #define _S63C7 0x80
5759 //==============================================================================
5762 //==============================================================================
5763 // LCDSE0 Bits
5765 extern __at(0x0ECE) __sfr LCDSE0;
5767 typedef struct
5769 unsigned SE00 : 1;
5770 unsigned SE01 : 1;
5771 unsigned SE02 : 1;
5772 unsigned SE03 : 1;
5773 unsigned SE04 : 1;
5774 unsigned SE05 : 1;
5775 unsigned SE06 : 1;
5776 unsigned SE07 : 1;
5777 } __LCDSE0bits_t;
5779 extern __at(0x0ECE) volatile __LCDSE0bits_t LCDSE0bits;
5781 #define _SE00 0x01
5782 #define _SE01 0x02
5783 #define _SE02 0x04
5784 #define _SE03 0x08
5785 #define _SE04 0x10
5786 #define _SE05 0x20
5787 #define _SE06 0x40
5788 #define _SE07 0x80
5790 //==============================================================================
5793 //==============================================================================
5794 // LCDSE1 Bits
5796 extern __at(0x0ECF) __sfr LCDSE1;
5798 typedef struct
5800 unsigned SE08 : 1;
5801 unsigned SE09 : 1;
5802 unsigned SE10 : 1;
5803 unsigned SE11 : 1;
5804 unsigned SE12 : 1;
5805 unsigned SE13 : 1;
5806 unsigned SE14 : 1;
5807 unsigned SE15 : 1;
5808 } __LCDSE1bits_t;
5810 extern __at(0x0ECF) volatile __LCDSE1bits_t LCDSE1bits;
5812 #define _SE08 0x01
5813 #define _SE09 0x02
5814 #define _SE10 0x04
5815 #define _SE11 0x08
5816 #define _SE12 0x10
5817 #define _SE13 0x20
5818 #define _SE14 0x40
5819 #define _SE15 0x80
5821 //==============================================================================
5824 //==============================================================================
5825 // LCDSE2 Bits
5827 extern __at(0x0ED0) __sfr LCDSE2;
5829 typedef struct
5831 unsigned SE16 : 1;
5832 unsigned SE17 : 1;
5833 unsigned SE18 : 1;
5834 unsigned SE19 : 1;
5835 unsigned SE20 : 1;
5836 unsigned SE21 : 1;
5837 unsigned SE22 : 1;
5838 unsigned SE23 : 1;
5839 } __LCDSE2bits_t;
5841 extern __at(0x0ED0) volatile __LCDSE2bits_t LCDSE2bits;
5843 #define _SE16 0x01
5844 #define _SE17 0x02
5845 #define _SE18 0x04
5846 #define _SE19 0x08
5847 #define _SE20 0x10
5848 #define _SE21 0x20
5849 #define _SE22 0x40
5850 #define _SE23 0x80
5852 //==============================================================================
5855 //==============================================================================
5856 // LCDSE3 Bits
5858 extern __at(0x0ED1) __sfr LCDSE3;
5860 typedef struct
5862 unsigned SE24 : 1;
5863 unsigned SE25 : 1;
5864 unsigned SE26 : 1;
5865 unsigned SE27 : 1;
5866 unsigned SE28 : 1;
5867 unsigned SE29 : 1;
5868 unsigned SE30 : 1;
5869 unsigned SE31 : 1;
5870 } __LCDSE3bits_t;
5872 extern __at(0x0ED1) volatile __LCDSE3bits_t LCDSE3bits;
5874 #define _SE24 0x01
5875 #define _SE25 0x02
5876 #define _SE26 0x04
5877 #define _SE27 0x08
5878 #define _SE28 0x10
5879 #define _SE29 0x20
5880 #define _SE30 0x40
5881 #define _SE31 0x80
5883 //==============================================================================
5886 //==============================================================================
5887 // LCDSE4 Bits
5889 extern __at(0x0ED2) __sfr LCDSE4;
5891 typedef struct
5893 unsigned SE32 : 1;
5894 unsigned SE33 : 1;
5895 unsigned SE34 : 1;
5896 unsigned SE35 : 1;
5897 unsigned SE36 : 1;
5898 unsigned SE37 : 1;
5899 unsigned SE38 : 1;
5900 unsigned SE39 : 1;
5901 } __LCDSE4bits_t;
5903 extern __at(0x0ED2) volatile __LCDSE4bits_t LCDSE4bits;
5905 #define _SE32 0x01
5906 #define _SE33 0x02
5907 #define _SE34 0x04
5908 #define _SE35 0x08
5909 #define _SE36 0x10
5910 #define _SE37 0x20
5911 #define _SE38 0x40
5912 #define _SE39 0x80
5914 //==============================================================================
5917 //==============================================================================
5918 // LCDSE5 Bits
5920 extern __at(0x0ED3) __sfr LCDSE5;
5922 typedef struct
5924 unsigned SE40 : 1;
5925 unsigned SE41 : 1;
5926 unsigned SE42 : 1;
5927 unsigned SE43 : 1;
5928 unsigned SE44 : 1;
5929 unsigned SE45 : 1;
5930 unsigned SE46 : 1;
5931 unsigned SE47 : 1;
5932 } __LCDSE5bits_t;
5934 extern __at(0x0ED3) volatile __LCDSE5bits_t LCDSE5bits;
5936 #define _SE40 0x01
5937 #define _SE41 0x02
5938 #define _SE42 0x04
5939 #define _SE43 0x08
5940 #define _SE44 0x10
5941 #define _SE45 0x20
5942 #define _SE46 0x40
5943 #define _SE47 0x80
5945 //==============================================================================
5948 //==============================================================================
5949 // LCDSE6 Bits
5951 extern __at(0x0ED4) __sfr LCDSE6;
5953 typedef struct
5955 unsigned SE48 : 1;
5956 unsigned SE49 : 1;
5957 unsigned SE50 : 1;
5958 unsigned SE51 : 1;
5959 unsigned SE52 : 1;
5960 unsigned SE53 : 1;
5961 unsigned SE54 : 1;
5962 unsigned SE55 : 1;
5963 } __LCDSE6bits_t;
5965 extern __at(0x0ED4) volatile __LCDSE6bits_t LCDSE6bits;
5967 #define _SE48 0x01
5968 #define _SE49 0x02
5969 #define _SE50 0x04
5970 #define _SE51 0x08
5971 #define _SE52 0x10
5972 #define _SE53 0x20
5973 #define _SE54 0x40
5974 #define _SE55 0x80
5976 //==============================================================================
5979 //==============================================================================
5980 // LCDSE7 Bits
5982 extern __at(0x0ED5) __sfr LCDSE7;
5984 typedef struct
5986 unsigned SE56 : 1;
5987 unsigned SE57 : 1;
5988 unsigned SE58 : 1;
5989 unsigned SE59 : 1;
5990 unsigned SE60 : 1;
5991 unsigned SE61 : 1;
5992 unsigned SE62 : 1;
5993 unsigned SE63 : 1;
5994 } __LCDSE7bits_t;
5996 extern __at(0x0ED5) volatile __LCDSE7bits_t LCDSE7bits;
5998 #define _SE56 0x01
5999 #define _SE57 0x02
6000 #define _SE58 0x04
6001 #define _SE59 0x08
6002 #define _SE60 0x10
6003 #define _SE61 0x20
6004 #define _SE62 0x40
6005 #define _SE63 0x80
6007 //==============================================================================
6010 //==============================================================================
6011 // LCDRL Bits
6013 extern __at(0x0ED6) __sfr LCDRL;
6015 typedef union
6017 struct
6019 unsigned LRLAT0 : 1;
6020 unsigned LRLAT1 : 1;
6021 unsigned LRLAT2 : 1;
6022 unsigned : 1;
6023 unsigned LRLBP0 : 1;
6024 unsigned LRLBP1 : 1;
6025 unsigned LRLAP0 : 1;
6026 unsigned LRLAP1 : 1;
6029 struct
6031 unsigned LRLAT : 3;
6032 unsigned : 5;
6035 struct
6037 unsigned : 4;
6038 unsigned LRLBP : 2;
6039 unsigned : 2;
6042 struct
6044 unsigned : 6;
6045 unsigned LRLAP : 2;
6047 } __LCDRLbits_t;
6049 extern __at(0x0ED6) volatile __LCDRLbits_t LCDRLbits;
6051 #define _LRLAT0 0x01
6052 #define _LRLAT1 0x02
6053 #define _LRLAT2 0x04
6054 #define _LRLBP0 0x10
6055 #define _LRLBP1 0x20
6056 #define _LRLAP0 0x40
6057 #define _LRLAP1 0x80
6059 //==============================================================================
6062 //==============================================================================
6063 // LCDREF Bits
6065 extern __at(0x0ED7) __sfr LCDREF;
6067 typedef union
6069 struct
6071 unsigned VLCD1PE : 1;
6072 unsigned VLCD2PE : 1;
6073 unsigned VLCD3PE : 1;
6074 unsigned LCDCST0 : 1;
6075 unsigned LCDCST1 : 1;
6076 unsigned LCDCST2 : 1;
6077 unsigned : 1;
6078 unsigned LCDIRE : 1;
6081 struct
6083 unsigned : 3;
6084 unsigned LCDCST : 3;
6085 unsigned : 2;
6087 } __LCDREFbits_t;
6089 extern __at(0x0ED7) volatile __LCDREFbits_t LCDREFbits;
6091 #define _VLCD1PE 0x01
6092 #define _VLCD2PE 0x02
6093 #define _VLCD3PE 0x04
6094 #define _LCDCST0 0x08
6095 #define _LCDCST1 0x10
6096 #define _LCDCST2 0x20
6097 #define _LCDIRE 0x80
6099 //==============================================================================
6102 //==============================================================================
6103 // LCDREG Bits
6105 extern __at(0x0ED8) __sfr LCDREG;
6107 typedef union
6109 struct
6111 unsigned CLKSEL0 : 1;
6112 unsigned CLKSEL1 : 1;
6113 unsigned MODE13 : 1;
6114 unsigned BIAS0 : 1;
6115 unsigned BIAS1 : 1;
6116 unsigned BIAS2 : 1;
6117 unsigned : 1;
6118 unsigned CPEN : 1;
6121 struct
6123 unsigned CLKSEL : 2;
6124 unsigned : 6;
6127 struct
6129 unsigned : 3;
6130 unsigned BIAS : 3;
6131 unsigned : 2;
6133 } __LCDREGbits_t;
6135 extern __at(0x0ED8) volatile __LCDREGbits_t LCDREGbits;
6137 #define _CLKSEL0 0x01
6138 #define _CLKSEL1 0x02
6139 #define _MODE13 0x04
6140 #define _BIAS0 0x08
6141 #define _BIAS1 0x10
6142 #define _BIAS2 0x20
6143 #define _CPEN 0x80
6145 //==============================================================================
6148 //==============================================================================
6149 // LCDCON Bits
6151 extern __at(0x0ED9) __sfr LCDCON;
6153 typedef union
6155 struct
6157 unsigned LMUX0 : 1;
6158 unsigned LMUX1 : 1;
6159 unsigned LMUX2 : 1;
6160 unsigned CS0 : 1;
6161 unsigned CS1 : 1;
6162 unsigned WERR : 1;
6163 unsigned SLPEN : 1;
6164 unsigned LCDEN : 1;
6167 struct
6169 unsigned LMUX : 3;
6170 unsigned : 5;
6173 struct
6175 unsigned : 3;
6176 unsigned CS : 2;
6177 unsigned : 3;
6179 } __LCDCONbits_t;
6181 extern __at(0x0ED9) volatile __LCDCONbits_t LCDCONbits;
6183 #define _LMUX0 0x01
6184 #define _LMUX1 0x02
6185 #define _LMUX2 0x04
6186 #define _CS0 0x08
6187 #define _CS1 0x10
6188 #define _WERR 0x20
6189 #define _SLPEN 0x40
6190 #define _LCDEN 0x80
6192 //==============================================================================
6195 //==============================================================================
6196 // LCDPS Bits
6198 extern __at(0x0EDA) __sfr LCDPS;
6200 typedef union
6202 struct
6204 unsigned LP0 : 1;
6205 unsigned LP1 : 1;
6206 unsigned LP2 : 1;
6207 unsigned LP3 : 1;
6208 unsigned WA : 1;
6209 unsigned LCDA : 1;
6210 unsigned BIASMD : 1;
6211 unsigned WFT : 1;
6214 struct
6216 unsigned LP : 4;
6217 unsigned : 4;
6219 } __LCDPSbits_t;
6221 extern __at(0x0EDA) volatile __LCDPSbits_t LCDPSbits;
6223 #define _LP0 0x01
6224 #define _LP1 0x02
6225 #define _LP2 0x04
6226 #define _LP3 0x08
6227 #define _WA 0x10
6228 #define _LCDA 0x20
6229 #define _BIASMD 0x40
6230 #define _WFT 0x80
6232 //==============================================================================
6235 //==============================================================================
6236 // REFO2CON3 Bits
6238 extern __at(0x0EDB) __sfr REFO2CON3;
6240 typedef struct
6242 unsigned RODIV8 : 1;
6243 unsigned RODIV9 : 1;
6244 unsigned RODIV10 : 1;
6245 unsigned RODIV11 : 1;
6246 unsigned RODIV12 : 1;
6247 unsigned RODIV13 : 1;
6248 unsigned RODIV14 : 1;
6249 unsigned : 1;
6250 } __REFO2CON3bits_t;
6252 extern __at(0x0EDB) volatile __REFO2CON3bits_t REFO2CON3bits;
6254 #define _REFO2CON3_RODIV8 0x01
6255 #define _REFO2CON3_RODIV9 0x02
6256 #define _REFO2CON3_RODIV10 0x04
6257 #define _REFO2CON3_RODIV11 0x08
6258 #define _REFO2CON3_RODIV12 0x10
6259 #define _REFO2CON3_RODIV13 0x20
6260 #define _REFO2CON3_RODIV14 0x40
6262 //==============================================================================
6265 //==============================================================================
6266 // REFO2CON2 Bits
6268 extern __at(0x0EDC) __sfr REFO2CON2;
6270 typedef struct
6272 unsigned RODIV0 : 1;
6273 unsigned RODIV1 : 1;
6274 unsigned RODIV2 : 1;
6275 unsigned RODIV3 : 1;
6276 unsigned RODIV4 : 1;
6277 unsigned RODIV5 : 1;
6278 unsigned RODIV6 : 1;
6279 unsigned RODIV7 : 1;
6280 } __REFO2CON2bits_t;
6282 extern __at(0x0EDC) volatile __REFO2CON2bits_t REFO2CON2bits;
6284 #define _REFO2CON2_RODIV0 0x01
6285 #define _REFO2CON2_RODIV1 0x02
6286 #define _REFO2CON2_RODIV2 0x04
6287 #define _REFO2CON2_RODIV3 0x08
6288 #define _REFO2CON2_RODIV4 0x10
6289 #define _REFO2CON2_RODIV5 0x20
6290 #define _REFO2CON2_RODIV6 0x40
6291 #define _REFO2CON2_RODIV7 0x80
6293 //==============================================================================
6296 //==============================================================================
6297 // REFO2CON1 Bits
6299 extern __at(0x0EDD) __sfr REFO2CON1;
6301 typedef union
6303 struct
6305 unsigned ROSEL0 : 1;
6306 unsigned ROSEL1 : 1;
6307 unsigned ROSEL2 : 1;
6308 unsigned ROSEL3 : 1;
6309 unsigned : 1;
6310 unsigned : 1;
6311 unsigned : 1;
6312 unsigned : 1;
6315 struct
6317 unsigned ROSEL : 4;
6318 unsigned : 4;
6320 } __REFO2CON1bits_t;
6322 extern __at(0x0EDD) volatile __REFO2CON1bits_t REFO2CON1bits;
6324 #define _REFO2CON1_ROSEL0 0x01
6325 #define _REFO2CON1_ROSEL1 0x02
6326 #define _REFO2CON1_ROSEL2 0x04
6327 #define _REFO2CON1_ROSEL3 0x08
6329 //==============================================================================
6332 //==============================================================================
6333 // REFO2CON Bits
6335 extern __at(0x0EDE) __sfr REFO2CON;
6337 typedef struct
6339 unsigned ACTIVE : 1;
6340 unsigned DIVSWEN : 1;
6341 unsigned : 1;
6342 unsigned ROSSLP : 1;
6343 unsigned ROOE : 1;
6344 unsigned ROSIDL : 1;
6345 unsigned : 1;
6346 unsigned ROON : 1;
6347 } __REFO2CONbits_t;
6349 extern __at(0x0EDE) volatile __REFO2CONbits_t REFO2CONbits;
6351 #define _REFO2CON_ACTIVE 0x01
6352 #define _REFO2CON_DIVSWEN 0x02
6353 #define _REFO2CON_ROSSLP 0x08
6354 #define _REFO2CON_ROOE 0x10
6355 #define _REFO2CON_ROSIDL 0x20
6356 #define _REFO2CON_ROON 0x80
6358 //==============================================================================
6361 //==============================================================================
6362 // REFO1CON3 Bits
6364 extern __at(0x0EDF) __sfr REFO1CON3;
6366 typedef struct
6368 unsigned RODIV8 : 1;
6369 unsigned RODIV9 : 1;
6370 unsigned RODIV10 : 1;
6371 unsigned RODIV11 : 1;
6372 unsigned RODIV12 : 1;
6373 unsigned RODIV13 : 1;
6374 unsigned RODIV14 : 1;
6375 unsigned : 1;
6376 } __REFO1CON3bits_t;
6378 extern __at(0x0EDF) volatile __REFO1CON3bits_t REFO1CON3bits;
6380 #define _RODIV8 0x01
6381 #define _RODIV9 0x02
6382 #define _RODIV10 0x04
6383 #define _RODIV11 0x08
6384 #define _RODIV12 0x10
6385 #define _RODIV13 0x20
6386 #define _RODIV14 0x40
6388 //==============================================================================
6391 //==============================================================================
6392 // REFO1CON2 Bits
6394 extern __at(0x0EE0) __sfr REFO1CON2;
6396 typedef struct
6398 unsigned RODIV0 : 1;
6399 unsigned RODIV1 : 1;
6400 unsigned RODIV2 : 1;
6401 unsigned RODIV3 : 1;
6402 unsigned RODIV4 : 1;
6403 unsigned RODIV5 : 1;
6404 unsigned RODIV6 : 1;
6405 unsigned RODIV7 : 1;
6406 } __REFO1CON2bits_t;
6408 extern __at(0x0EE0) volatile __REFO1CON2bits_t REFO1CON2bits;
6410 #define _RODIV0 0x01
6411 #define _RODIV1 0x02
6412 #define _RODIV2 0x04
6413 #define _RODIV3 0x08
6414 #define _RODIV4 0x10
6415 #define _RODIV5 0x20
6416 #define _RODIV6 0x40
6417 #define _RODIV7 0x80
6419 //==============================================================================
6422 //==============================================================================
6423 // REFO1CON1 Bits
6425 extern __at(0x0EE1) __sfr REFO1CON1;
6427 typedef union
6429 struct
6431 unsigned ROSEL0 : 1;
6432 unsigned ROSEL1 : 1;
6433 unsigned ROSEL2 : 1;
6434 unsigned ROSEL3 : 1;
6435 unsigned : 1;
6436 unsigned : 1;
6437 unsigned : 1;
6438 unsigned : 1;
6441 struct
6443 unsigned ROSEL : 4;
6444 unsigned : 4;
6446 } __REFO1CON1bits_t;
6448 extern __at(0x0EE1) volatile __REFO1CON1bits_t REFO1CON1bits;
6450 #define _ROSEL0 0x01
6451 #define _ROSEL1 0x02
6452 #define _ROSEL2 0x04
6453 #define _ROSEL3 0x08
6455 //==============================================================================
6458 //==============================================================================
6459 // REFO1CON Bits
6461 extern __at(0x0EE2) __sfr REFO1CON;
6463 typedef struct
6465 unsigned ACTIVE : 1;
6466 unsigned DIVSWEN : 1;
6467 unsigned : 1;
6468 unsigned ROSSLP : 1;
6469 unsigned ROOE : 1;
6470 unsigned ROSIDL : 1;
6471 unsigned : 1;
6472 unsigned ROON : 1;
6473 } __REFO1CONbits_t;
6475 extern __at(0x0EE2) volatile __REFO1CONbits_t REFO1CONbits;
6477 #define _ACTIVE 0x01
6478 #define _DIVSWEN 0x02
6479 #define _ROSSLP 0x08
6480 #define _ROOE 0x10
6481 #define _ROSIDL 0x20
6482 #define _ROON 0x80
6484 //==============================================================================
6487 //==============================================================================
6488 // MEMCON Bits
6490 extern __at(0x0EE3) __sfr MEMCON;
6492 typedef union
6494 struct
6496 unsigned WM0 : 1;
6497 unsigned WM1 : 1;
6498 unsigned : 1;
6499 unsigned : 1;
6500 unsigned WAIT0 : 1;
6501 unsigned WAIT1 : 1;
6502 unsigned : 1;
6503 unsigned EBDIS : 1;
6506 struct
6508 unsigned WM : 2;
6509 unsigned : 6;
6512 struct
6514 unsigned : 4;
6515 unsigned WAIT : 2;
6516 unsigned : 2;
6518 } __MEMCONbits_t;
6520 extern __at(0x0EE3) volatile __MEMCONbits_t MEMCONbits;
6522 #define _MEMCON_WM0 0x01
6523 #define _MEMCON_WM1 0x02
6524 #define _MEMCON_WAIT0 0x10
6525 #define _MEMCON_WAIT1 0x20
6526 #define _MEMCON_EBDIS 0x80
6528 //==============================================================================
6531 //==============================================================================
6532 // ODCON2 Bits
6534 extern __at(0x0EEA) __sfr ODCON2;
6536 typedef struct
6538 unsigned ECCP3OD : 1;
6539 unsigned CCP4OD : 1;
6540 unsigned CCP5OD : 1;
6541 unsigned CCP6OD : 1;
6542 unsigned CCP7OD : 1;
6543 unsigned CCP8OD : 1;
6544 unsigned CCP9OD : 1;
6545 unsigned CCP10OD : 1;
6546 } __ODCON2bits_t;
6548 extern __at(0x0EEA) volatile __ODCON2bits_t ODCON2bits;
6550 #define _ECCP3OD 0x01
6551 #define _CCP4OD 0x02
6552 #define _CCP5OD 0x04
6553 #define _CCP6OD 0x08
6554 #define _CCP7OD 0x10
6555 #define _CCP8OD 0x20
6556 #define _CCP9OD 0x40
6557 #define _CCP10OD 0x80
6559 //==============================================================================
6562 //==============================================================================
6563 // ODCON1 Bits
6565 extern __at(0x0EEB) __sfr ODCON1;
6567 typedef struct
6569 unsigned SSP1OD : 1;
6570 unsigned SSP2OD : 1;
6571 unsigned USART1OD : 1;
6572 unsigned USART2OD : 1;
6573 unsigned USART3OD : 1;
6574 unsigned USART4OD : 1;
6575 unsigned ECCP1OD : 1;
6576 unsigned ECCP2OD : 1;
6577 } __ODCON1bits_t;
6579 extern __at(0x0EEB) volatile __ODCON1bits_t ODCON1bits;
6581 #define _SSP1OD 0x01
6582 #define _SSP2OD 0x02
6583 #define _USART1OD 0x04
6584 #define _USART2OD 0x08
6585 #define _USART3OD 0x10
6586 #define _USART4OD 0x20
6587 #define _ECCP1OD 0x40
6588 #define _ECCP2OD 0x80
6590 //==============================================================================
6593 //==============================================================================
6594 // MDCARL Bits
6596 extern __at(0x0EEC) __sfr MDCARL;
6598 typedef union
6600 struct
6602 unsigned MDCL0 : 1;
6603 unsigned MDCL1 : 1;
6604 unsigned MDCL2 : 1;
6605 unsigned MDCL3 : 1;
6606 unsigned : 1;
6607 unsigned MDCLSYNC : 1;
6608 unsigned MDCLPOL : 1;
6609 unsigned MDCLODIS : 1;
6612 struct
6614 unsigned MDCL : 4;
6615 unsigned : 4;
6617 } __MDCARLbits_t;
6619 extern __at(0x0EEC) volatile __MDCARLbits_t MDCARLbits;
6621 #define _MDCL0 0x01
6622 #define _MDCL1 0x02
6623 #define _MDCL2 0x04
6624 #define _MDCL3 0x08
6625 #define _MDCLSYNC 0x20
6626 #define _MDCLPOL 0x40
6627 #define _MDCLODIS 0x80
6629 //==============================================================================
6632 //==============================================================================
6633 // MDCARH Bits
6635 extern __at(0x0EED) __sfr MDCARH;
6637 typedef union
6639 struct
6641 unsigned MDCH0 : 1;
6642 unsigned MDCH1 : 1;
6643 unsigned MDCH2 : 1;
6644 unsigned MDCH3 : 1;
6645 unsigned : 1;
6646 unsigned MDCHSYNC : 1;
6647 unsigned MDCHPOL : 1;
6648 unsigned MDCHODIS : 1;
6651 struct
6653 unsigned MDCH : 4;
6654 unsigned : 4;
6656 } __MDCARHbits_t;
6658 extern __at(0x0EED) volatile __MDCARHbits_t MDCARHbits;
6660 #define _MDCH0 0x01
6661 #define _MDCH1 0x02
6662 #define _MDCH2 0x04
6663 #define _MDCH3 0x08
6664 #define _MDCHSYNC 0x20
6665 #define _MDCHPOL 0x40
6666 #define _MDCHODIS 0x80
6668 //==============================================================================
6671 //==============================================================================
6672 // MDSRC Bits
6674 extern __at(0x0EEE) __sfr MDSRC;
6676 typedef union
6678 struct
6680 unsigned MDSRC0 : 1;
6681 unsigned MDSRC1 : 1;
6682 unsigned MDSRC2 : 1;
6683 unsigned MDSRC3 : 1;
6684 unsigned : 1;
6685 unsigned : 1;
6686 unsigned : 1;
6687 unsigned MDSODIS : 1;
6690 struct
6692 unsigned MDSRC : 4;
6693 unsigned : 4;
6695 } __MDSRCbits_t;
6697 extern __at(0x0EEE) volatile __MDSRCbits_t MDSRCbits;
6699 #define _MDSRC0 0x01
6700 #define _MDSRC1 0x02
6701 #define _MDSRC2 0x04
6702 #define _MDSRC3 0x08
6703 #define _MDSODIS 0x80
6705 //==============================================================================
6708 //==============================================================================
6709 // MDCON Bits
6711 extern __at(0x0EEF) __sfr MDCON;
6713 typedef struct
6715 unsigned MDBIT : 1;
6716 unsigned : 1;
6717 unsigned : 1;
6718 unsigned MDO : 1;
6719 unsigned MDOPOL : 1;
6720 unsigned MDSLR : 1;
6721 unsigned MDOE : 1;
6722 unsigned MDEN : 1;
6723 } __MDCONbits_t;
6725 extern __at(0x0EEF) volatile __MDCONbits_t MDCONbits;
6727 #define _MDBIT 0x01
6728 #define _MDO 0x08
6729 #define _MDOPOL 0x10
6730 #define _MDSLR 0x20
6731 #define _MDOE 0x40
6732 #define _MDEN 0x80
6734 //==============================================================================
6737 //==============================================================================
6738 // PMD4 Bits
6740 extern __at(0x0EF0) __sfr PMD4;
6742 typedef struct
6744 unsigned EMBMD : 1;
6745 unsigned : 1;
6746 unsigned LVDMD : 1;
6747 unsigned IOCMD : 1;
6748 unsigned USBMD : 1;
6749 unsigned CMP3MD : 1;
6750 unsigned CMP2MD : 1;
6751 unsigned CMP1MD : 1;
6752 } __PMD4bits_t;
6754 extern __at(0x0EF0) volatile __PMD4bits_t PMD4bits;
6756 #define _EMBMD 0x01
6757 #define _LVDMD 0x04
6758 #define _IOCMD 0x08
6759 #define _USBMD 0x10
6760 #define _CMP3MD 0x20
6761 #define _CMP2MD 0x40
6762 #define _CMP1MD 0x80
6764 //==============================================================================
6767 //==============================================================================
6768 // PMD3 Bits
6770 extern __at(0x0EF1) __sfr PMD3;
6772 typedef union
6774 struct
6776 unsigned REFO2MD : 1;
6777 unsigned REFO1MD : 1;
6778 unsigned PSPMD : 1;
6779 unsigned LCDMD : 1;
6780 unsigned RTCCMD : 1;
6781 unsigned ADCMD : 1;
6782 unsigned CTMUMD : 1;
6783 unsigned MODMD : 1;
6786 struct
6788 unsigned : 1;
6789 unsigned : 1;
6790 unsigned : 1;
6791 unsigned : 1;
6792 unsigned : 1;
6793 unsigned : 1;
6794 unsigned : 1;
6795 unsigned TXMMD : 1;
6797 } __PMD3bits_t;
6799 extern __at(0x0EF1) volatile __PMD3bits_t PMD3bits;
6801 #define _REFO2MD 0x01
6802 #define _REFO1MD 0x02
6803 #define _PSPMD 0x04
6804 #define _LCDMD 0x08
6805 #define _RTCCMD 0x10
6806 #define _ADCMD 0x20
6807 #define _CTMUMD 0x40
6808 #define _MODMD 0x80
6809 #define _TXMMD 0x80
6811 //==============================================================================
6814 //==============================================================================
6815 // PMD2 Bits
6817 extern __at(0x0EF2) __sfr PMD2;
6819 typedef struct
6821 unsigned TMR0MD : 1;
6822 unsigned TMR1MD : 1;
6823 unsigned TMR2MD : 1;
6824 unsigned TMR3MD : 1;
6825 unsigned TMR4MD : 1;
6826 unsigned TMR5MD : 1;
6827 unsigned TMR6MD : 1;
6828 unsigned TMR8MD : 1;
6829 } __PMD2bits_t;
6831 extern __at(0x0EF2) volatile __PMD2bits_t PMD2bits;
6833 #define _TMR0MD 0x01
6834 #define _TMR1MD 0x02
6835 #define _TMR2MD 0x04
6836 #define _TMR3MD 0x08
6837 #define _TMR4MD 0x10
6838 #define _TMR5MD 0x20
6839 #define _TMR6MD 0x40
6840 #define _TMR8MD 0x80
6842 //==============================================================================
6845 //==============================================================================
6846 // PMD1 Bits
6848 extern __at(0x0EF3) __sfr PMD1;
6850 typedef struct
6852 unsigned SSP1MD : 1;
6853 unsigned SSP2MD : 1;
6854 unsigned UART1MD : 1;
6855 unsigned UART2MD : 1;
6856 unsigned UART3MD : 1;
6857 unsigned UART4MD : 1;
6858 unsigned ECCP1MD : 1;
6859 unsigned ECCP2MD : 1;
6860 } __PMD1bits_t;
6862 extern __at(0x0EF3) volatile __PMD1bits_t PMD1bits;
6864 #define _SSP1MD 0x01
6865 #define _SSP2MD 0x02
6866 #define _UART1MD 0x04
6867 #define _UART2MD 0x08
6868 #define _UART3MD 0x10
6869 #define _UART4MD 0x20
6870 #define _ECCP1MD 0x40
6871 #define _ECCP2MD 0x80
6873 //==============================================================================
6876 //==============================================================================
6877 // PMD0 Bits
6879 extern __at(0x0EF4) __sfr PMD0;
6881 typedef struct
6883 unsigned ECCP3MD : 1;
6884 unsigned CCP4MD : 1;
6885 unsigned CCP5MD : 1;
6886 unsigned CCP6MD : 1;
6887 unsigned CCP7MD : 1;
6888 unsigned CCP8MD : 1;
6889 unsigned CCP9MD : 1;
6890 unsigned CCP10MD : 1;
6891 } __PMD0bits_t;
6893 extern __at(0x0EF4) volatile __PMD0bits_t PMD0bits;
6895 #define _ECCP3MD 0x01
6896 #define _CCP4MD 0x02
6897 #define _CCP5MD 0x04
6898 #define _CCP6MD 0x08
6899 #define _CCP7MD 0x10
6900 #define _CCP8MD 0x20
6901 #define _CCP9MD 0x40
6902 #define _CCP10MD 0x80
6904 //==============================================================================
6907 //==============================================================================
6908 // CTMUCON4 Bits
6910 extern __at(0x0EF5) __sfr CTMUCON4;
6912 typedef union
6914 struct
6916 unsigned EDG1STAT : 1;
6917 unsigned EDG2STAT : 1;
6918 unsigned EDG1SEL0 : 1;
6919 unsigned EDG1SEL1 : 1;
6920 unsigned EDG1SEL2 : 1;
6921 unsigned EDG1SEL3 : 1;
6922 unsigned EDG1POL : 1;
6923 unsigned EDG1EN : 1;
6926 struct
6928 unsigned : 2;
6929 unsigned EDG1SEL : 4;
6930 unsigned : 2;
6932 } __CTMUCON4bits_t;
6934 extern __at(0x0EF5) volatile __CTMUCON4bits_t CTMUCON4bits;
6936 #define _EDG1STAT 0x01
6937 #define _EDG2STAT 0x02
6938 #define _EDG1SEL0 0x04
6939 #define _EDG1SEL1 0x08
6940 #define _EDG1SEL2 0x10
6941 #define _EDG1SEL3 0x20
6942 #define _EDG1POL 0x40
6943 #define _EDG1EN 0x80
6945 //==============================================================================
6948 //==============================================================================
6949 // CTMUCON3 Bits
6951 extern __at(0x0EF6) __sfr CTMUCON3;
6953 typedef union
6955 struct
6957 unsigned : 1;
6958 unsigned : 1;
6959 unsigned EDG2SEL0 : 1;
6960 unsigned EDG2SEL1 : 1;
6961 unsigned EDG2SEL2 : 1;
6962 unsigned EDG2SEL3 : 1;
6963 unsigned EDG2POL : 1;
6964 unsigned EDG2EN : 1;
6967 struct
6969 unsigned : 2;
6970 unsigned EDG2SEL : 4;
6971 unsigned : 2;
6973 } __CTMUCON3bits_t;
6975 extern __at(0x0EF6) volatile __CTMUCON3bits_t CTMUCON3bits;
6977 #define _EDG2SEL0 0x04
6978 #define _EDG2SEL1 0x08
6979 #define _EDG2SEL2 0x10
6980 #define _EDG2SEL3 0x20
6981 #define _EDG2POL 0x40
6982 #define _EDG2EN 0x80
6984 //==============================================================================
6987 //==============================================================================
6988 // CTMUCON2 Bits
6990 extern __at(0x0EF7) __sfr CTMUCON2;
6992 typedef union
6994 struct
6996 unsigned IRNG0 : 1;
6997 unsigned IRNG1 : 1;
6998 unsigned ITRIM0 : 1;
6999 unsigned ITRIM1 : 1;
7000 unsigned ITRIM2 : 1;
7001 unsigned ITRIM3 : 1;
7002 unsigned ITRIM4 : 1;
7003 unsigned ITRIM5 : 1;
7006 struct
7008 unsigned IRNG : 2;
7009 unsigned : 6;
7012 struct
7014 unsigned : 2;
7015 unsigned ITRIM : 6;
7017 } __CTMUCON2bits_t;
7019 extern __at(0x0EF7) volatile __CTMUCON2bits_t CTMUCON2bits;
7021 #define _IRNG0 0x01
7022 #define _IRNG1 0x02
7023 #define _ITRIM0 0x04
7024 #define _ITRIM1 0x08
7025 #define _ITRIM2 0x10
7026 #define _ITRIM3 0x20
7027 #define _ITRIM4 0x40
7028 #define _ITRIM5 0x80
7030 //==============================================================================
7033 //==============================================================================
7034 // CTMUCON1 Bits
7036 extern __at(0x0EF8) __sfr CTMUCON1;
7038 typedef struct
7040 unsigned CTTRIG : 1;
7041 unsigned IDISSEN : 1;
7042 unsigned EDGSEQEN : 1;
7043 unsigned EDGEN : 1;
7044 unsigned TGEN : 1;
7045 unsigned CTMUSIDL : 1;
7046 unsigned : 1;
7047 unsigned CTMUEN : 1;
7048 } __CTMUCON1bits_t;
7050 extern __at(0x0EF8) volatile __CTMUCON1bits_t CTMUCON1bits;
7052 #define _CTTRIG 0x01
7053 #define _IDISSEN 0x02
7054 #define _EDGSEQEN 0x04
7055 #define _EDGEN 0x08
7056 #define _TGEN 0x10
7057 #define _CTMUSIDL 0x20
7058 #define _CTMUEN 0x80
7060 //==============================================================================
7062 extern __at(0x0EF9) __sfr TXREG4;
7063 extern __at(0x0EFA) __sfr RCREG4;
7065 //==============================================================================
7066 // SPBRG4 Bits
7068 extern __at(0x0EFB) __sfr SPBRG4;
7070 typedef struct
7072 unsigned BRG0 : 1;
7073 unsigned BRG1 : 1;
7074 unsigned BRG2 : 1;
7075 unsigned BRG3 : 1;
7076 unsigned BRG4 : 1;
7077 unsigned BRG5 : 1;
7078 unsigned BRG6 : 1;
7079 unsigned BRG7 : 1;
7080 } __SPBRG4bits_t;
7082 extern __at(0x0EFB) volatile __SPBRG4bits_t SPBRG4bits;
7084 #define _SPBRG4_BRG0 0x01
7085 #define _SPBRG4_BRG1 0x02
7086 #define _SPBRG4_BRG2 0x04
7087 #define _SPBRG4_BRG3 0x08
7088 #define _SPBRG4_BRG4 0x10
7089 #define _SPBRG4_BRG5 0x20
7090 #define _SPBRG4_BRG6 0x40
7091 #define _SPBRG4_BRG7 0x80
7093 //==============================================================================
7096 //==============================================================================
7097 // SPBRGH4 Bits
7099 extern __at(0x0EFC) __sfr SPBRGH4;
7101 typedef struct
7103 unsigned BRG8 : 1;
7104 unsigned BRG9 : 1;
7105 unsigned BRG10 : 1;
7106 unsigned BRG11 : 1;
7107 unsigned BRG12 : 1;
7108 unsigned BRG13 : 1;
7109 unsigned BRG14 : 1;
7110 unsigned BRG15 : 1;
7111 } __SPBRGH4bits_t;
7113 extern __at(0x0EFC) volatile __SPBRGH4bits_t SPBRGH4bits;
7115 #define _SPBRGH4_BRG8 0x01
7116 #define _SPBRGH4_BRG9 0x02
7117 #define _SPBRGH4_BRG10 0x04
7118 #define _SPBRGH4_BRG11 0x08
7119 #define _SPBRGH4_BRG12 0x10
7120 #define _SPBRGH4_BRG13 0x20
7121 #define _SPBRGH4_BRG14 0x40
7122 #define _SPBRGH4_BRG15 0x80
7124 //==============================================================================
7127 //==============================================================================
7128 // BAUDCON4 Bits
7130 extern __at(0x0EFD) __sfr BAUDCON4;
7132 typedef struct
7134 unsigned ABDEN : 1;
7135 unsigned WUE : 1;
7136 unsigned IREN : 1;
7137 unsigned BRG16 : 1;
7138 unsigned TXCKP : 1;
7139 unsigned RXDTP : 1;
7140 unsigned RCIDL : 1;
7141 unsigned ABDOVF : 1;
7142 } __BAUDCON4bits_t;
7144 extern __at(0x0EFD) volatile __BAUDCON4bits_t BAUDCON4bits;
7146 #define _BAUDCON4_ABDEN 0x01
7147 #define _BAUDCON4_WUE 0x02
7148 #define _BAUDCON4_IREN 0x04
7149 #define _BAUDCON4_BRG16 0x08
7150 #define _BAUDCON4_TXCKP 0x10
7151 #define _BAUDCON4_RXDTP 0x20
7152 #define _BAUDCON4_RCIDL 0x40
7153 #define _BAUDCON4_ABDOVF 0x80
7155 //==============================================================================
7158 //==============================================================================
7159 // TXSTA4 Bits
7161 extern __at(0x0EFE) __sfr TXSTA4;
7163 typedef struct
7165 unsigned TX9D : 1;
7166 unsigned TRMT : 1;
7167 unsigned BRGH : 1;
7168 unsigned SENDB : 1;
7169 unsigned SYNC : 1;
7170 unsigned TXEN : 1;
7171 unsigned TX9 : 1;
7172 unsigned CSRC : 1;
7173 } __TXSTA4bits_t;
7175 extern __at(0x0EFE) volatile __TXSTA4bits_t TXSTA4bits;
7177 #define _TXSTA4_TX9D 0x01
7178 #define _TXSTA4_TRMT 0x02
7179 #define _TXSTA4_BRGH 0x04
7180 #define _TXSTA4_SENDB 0x08
7181 #define _TXSTA4_SYNC 0x10
7182 #define _TXSTA4_TXEN 0x20
7183 #define _TXSTA4_TX9 0x40
7184 #define _TXSTA4_CSRC 0x80
7186 //==============================================================================
7189 //==============================================================================
7190 // RCSTA4 Bits
7192 extern __at(0x0EFF) __sfr RCSTA4;
7194 typedef struct
7196 unsigned RX9D : 1;
7197 unsigned OERR : 1;
7198 unsigned FERR : 1;
7199 unsigned ADDEN : 1;
7200 unsigned CREN : 1;
7201 unsigned SREN : 1;
7202 unsigned RX9 : 1;
7203 unsigned SPEN : 1;
7204 } __RCSTA4bits_t;
7206 extern __at(0x0EFF) volatile __RCSTA4bits_t RCSTA4bits;
7208 #define _RCSTA4_RX9D 0x01
7209 #define _RCSTA4_OERR 0x02
7210 #define _RCSTA4_FERR 0x04
7211 #define _RCSTA4_ADDEN 0x08
7212 #define _RCSTA4_CREN 0x10
7213 #define _RCSTA4_SREN 0x20
7214 #define _RCSTA4_RX9 0x40
7215 #define _RCSTA4_SPEN 0x80
7217 //==============================================================================
7220 //==============================================================================
7221 // DMACON2 Bits
7223 extern __at(0x0F00) __sfr DMACON2;
7225 typedef union
7227 struct
7229 unsigned INTLVL0 : 1;
7230 unsigned INTLVL1 : 1;
7231 unsigned INTLVL2 : 1;
7232 unsigned INTLVL3 : 1;
7233 unsigned DLYCYC0 : 1;
7234 unsigned DLYCYC1 : 1;
7235 unsigned DLYCYC2 : 1;
7236 unsigned DLYCYC3 : 1;
7239 struct
7241 unsigned INTLVL : 4;
7242 unsigned : 4;
7245 struct
7247 unsigned : 4;
7248 unsigned DLYCYC : 4;
7250 } __DMACON2bits_t;
7252 extern __at(0x0F00) volatile __DMACON2bits_t DMACON2bits;
7254 #define _INTLVL0 0x01
7255 #define _INTLVL1 0x02
7256 #define _INTLVL2 0x04
7257 #define _INTLVL3 0x08
7258 #define _DLYCYC0 0x10
7259 #define _DLYCYC1 0x20
7260 #define _DLYCYC2 0x40
7261 #define _DLYCYC3 0x80
7263 //==============================================================================
7266 //==============================================================================
7267 // ANCFG Bits
7269 extern __at(0x0F01) __sfr ANCFG;
7271 typedef struct
7273 unsigned VBGEN : 1;
7274 unsigned VBG2EN : 1;
7275 unsigned VBG6EN : 1;
7276 unsigned : 1;
7277 unsigned : 1;
7278 unsigned : 1;
7279 unsigned : 1;
7280 unsigned : 1;
7281 } __ANCFGbits_t;
7283 extern __at(0x0F01) volatile __ANCFGbits_t ANCFGbits;
7285 #define _VBGEN 0x01
7286 #define _VBG2EN 0x02
7287 #define _VBG6EN 0x04
7289 //==============================================================================
7291 extern __at(0x0F02) __sfr SSP2ADD;
7292 extern __at(0x0F03) __sfr SSP2BUF;
7294 //==============================================================================
7295 // T4CON Bits
7297 extern __at(0x0F04) __sfr T4CON;
7299 typedef union
7301 struct
7303 unsigned T4CKPS0 : 1;
7304 unsigned T4CKPS1 : 1;
7305 unsigned TMR4ON : 1;
7306 unsigned T4OUTPS0 : 1;
7307 unsigned T4OUTPS1 : 1;
7308 unsigned T4OUTPS2 : 1;
7309 unsigned T4OUTPS3 : 1;
7310 unsigned : 1;
7313 struct
7315 unsigned T4CKPS : 2;
7316 unsigned : 6;
7319 struct
7321 unsigned : 3;
7322 unsigned T4OUTPS : 4;
7323 unsigned : 1;
7325 } __T4CONbits_t;
7327 extern __at(0x0F04) volatile __T4CONbits_t T4CONbits;
7329 #define _T4CKPS0 0x01
7330 #define _T4CKPS1 0x02
7331 #define _TMR4ON 0x04
7332 #define _T4OUTPS0 0x08
7333 #define _T4OUTPS1 0x10
7334 #define _T4OUTPS2 0x20
7335 #define _T4OUTPS3 0x40
7337 //==============================================================================
7339 extern __at(0x0F05) __sfr PR4;
7340 extern __at(0x0F06) __sfr TMR4;
7342 //==============================================================================
7343 // CCP7CON Bits
7345 extern __at(0x0F07) __sfr CCP7CON;
7347 typedef union
7349 struct
7351 unsigned CCP7M0 : 1;
7352 unsigned CCP7M1 : 1;
7353 unsigned CCP7M2 : 1;
7354 unsigned CCP7M3 : 1;
7355 unsigned DC7B0 : 1;
7356 unsigned DC7B1 : 1;
7357 unsigned : 1;
7358 unsigned : 1;
7361 struct
7363 unsigned : 1;
7364 unsigned : 1;
7365 unsigned : 1;
7366 unsigned : 1;
7367 unsigned CCP7Y : 1;
7368 unsigned CCP7X : 1;
7369 unsigned : 1;
7370 unsigned : 1;
7373 struct
7375 unsigned CCP7M : 4;
7376 unsigned : 4;
7379 struct
7381 unsigned : 4;
7382 unsigned DC7B : 2;
7383 unsigned : 2;
7385 } __CCP7CONbits_t;
7387 extern __at(0x0F07) volatile __CCP7CONbits_t CCP7CONbits;
7389 #define _CCP7M0 0x01
7390 #define _CCP7M1 0x02
7391 #define _CCP7M2 0x04
7392 #define _CCP7M3 0x08
7393 #define _DC7B0 0x10
7394 #define _CCP7Y 0x10
7395 #define _DC7B1 0x20
7396 #define _CCP7X 0x20
7398 //==============================================================================
7400 extern __at(0x0F08) __sfr CCPR7;
7401 extern __at(0x0F08) __sfr CCPR7L;
7402 extern __at(0x0F09) __sfr CCPR7H;
7404 //==============================================================================
7405 // CCP6CON Bits
7407 extern __at(0x0F0A) __sfr CCP6CON;
7409 typedef union
7411 struct
7413 unsigned CCP6M0 : 1;
7414 unsigned CCP6M1 : 1;
7415 unsigned CCP6M2 : 1;
7416 unsigned CCP6M3 : 1;
7417 unsigned DC6B0 : 1;
7418 unsigned DC6B1 : 1;
7419 unsigned : 1;
7420 unsigned : 1;
7423 struct
7425 unsigned : 1;
7426 unsigned : 1;
7427 unsigned : 1;
7428 unsigned : 1;
7429 unsigned CCP6Y : 1;
7430 unsigned CCP6X : 1;
7431 unsigned : 1;
7432 unsigned : 1;
7435 struct
7437 unsigned CCP6M : 4;
7438 unsigned : 4;
7441 struct
7443 unsigned : 4;
7444 unsigned DC6B : 2;
7445 unsigned : 2;
7447 } __CCP6CONbits_t;
7449 extern __at(0x0F0A) volatile __CCP6CONbits_t CCP6CONbits;
7451 #define _CCP6M0 0x01
7452 #define _CCP6M1 0x02
7453 #define _CCP6M2 0x04
7454 #define _CCP6M3 0x08
7455 #define _DC6B0 0x10
7456 #define _CCP6Y 0x10
7457 #define _DC6B1 0x20
7458 #define _CCP6X 0x20
7460 //==============================================================================
7462 extern __at(0x0F0B) __sfr CCPR6;
7463 extern __at(0x0F0B) __sfr CCPR6L;
7464 extern __at(0x0F0C) __sfr CCPR6H;
7466 //==============================================================================
7467 // CCP5CON Bits
7469 extern __at(0x0F0D) __sfr CCP5CON;
7471 typedef union
7473 struct
7475 unsigned CCP5M0 : 1;
7476 unsigned CCP5M1 : 1;
7477 unsigned CCP5M2 : 1;
7478 unsigned CCP5M3 : 1;
7479 unsigned DC5B0 : 1;
7480 unsigned DC5B1 : 1;
7481 unsigned : 1;
7482 unsigned : 1;
7485 struct
7487 unsigned : 1;
7488 unsigned : 1;
7489 unsigned : 1;
7490 unsigned : 1;
7491 unsigned CCP5Y : 1;
7492 unsigned CCP5X : 1;
7493 unsigned : 1;
7494 unsigned : 1;
7497 struct
7499 unsigned CCP5M : 4;
7500 unsigned : 4;
7503 struct
7505 unsigned : 4;
7506 unsigned DC5B : 2;
7507 unsigned : 2;
7509 } __CCP5CONbits_t;
7511 extern __at(0x0F0D) volatile __CCP5CONbits_t CCP5CONbits;
7513 #define _CCP5M0 0x01
7514 #define _CCP5M1 0x02
7515 #define _CCP5M2 0x04
7516 #define _CCP5M3 0x08
7517 #define _DC5B0 0x10
7518 #define _CCP5Y 0x10
7519 #define _DC5B1 0x20
7520 #define _CCP5X 0x20
7522 //==============================================================================
7524 extern __at(0x0F0E) __sfr CCPR5;
7525 extern __at(0x0F0E) __sfr CCPR5L;
7526 extern __at(0x0F0F) __sfr CCPR5H;
7528 //==============================================================================
7529 // CCP4CON Bits
7531 extern __at(0x0F10) __sfr CCP4CON;
7533 typedef union
7535 struct
7537 unsigned CCP4M0 : 1;
7538 unsigned CCP4M1 : 1;
7539 unsigned CCP4M2 : 1;
7540 unsigned CCP4M3 : 1;
7541 unsigned DC4B0 : 1;
7542 unsigned DC4B1 : 1;
7543 unsigned : 1;
7544 unsigned : 1;
7547 struct
7549 unsigned : 1;
7550 unsigned : 1;
7551 unsigned : 1;
7552 unsigned : 1;
7553 unsigned CCP4Y : 1;
7554 unsigned CCP4X : 1;
7555 unsigned : 1;
7556 unsigned : 1;
7559 struct
7561 unsigned CCP4M : 4;
7562 unsigned : 4;
7565 struct
7567 unsigned : 4;
7568 unsigned DC4B : 2;
7569 unsigned : 2;
7571 } __CCP4CONbits_t;
7573 extern __at(0x0F10) volatile __CCP4CONbits_t CCP4CONbits;
7575 #define _CCP4M0 0x01
7576 #define _CCP4M1 0x02
7577 #define _CCP4M2 0x04
7578 #define _CCP4M3 0x08
7579 #define _DC4B0 0x10
7580 #define _CCP4Y 0x10
7581 #define _DC4B1 0x20
7582 #define _CCP4X 0x20
7584 //==============================================================================
7586 extern __at(0x0F11) __sfr CCPR4;
7587 extern __at(0x0F11) __sfr CCPR4L;
7588 extern __at(0x0F12) __sfr CCPR4H;
7590 //==============================================================================
7591 // T5GCON Bits
7593 extern __at(0x0F13) __sfr T5GCON;
7595 typedef union
7597 struct
7599 unsigned T5GSS0 : 1;
7600 unsigned T5GSS1 : 1;
7601 unsigned T5GVAL : 1;
7602 unsigned T5GGO_NOT_T5DONE : 1;
7603 unsigned T5GSPM : 1;
7604 unsigned T5GTM : 1;
7605 unsigned T5GPOL : 1;
7606 unsigned TMR5GE : 1;
7609 struct
7611 unsigned : 1;
7612 unsigned : 1;
7613 unsigned : 1;
7614 unsigned T5GGO : 1;
7615 unsigned : 1;
7616 unsigned : 1;
7617 unsigned : 1;
7618 unsigned : 1;
7621 struct
7623 unsigned : 1;
7624 unsigned : 1;
7625 unsigned : 1;
7626 unsigned NOT_T5DONE : 1;
7627 unsigned : 1;
7628 unsigned : 1;
7629 unsigned : 1;
7630 unsigned : 1;
7633 struct
7635 unsigned T5GSS : 2;
7636 unsigned : 6;
7638 } __T5GCONbits_t;
7640 extern __at(0x0F13) volatile __T5GCONbits_t T5GCONbits;
7642 #define _T5GSS0 0x01
7643 #define _T5GSS1 0x02
7644 #define _T5GVAL 0x04
7645 #define _T5GGO_NOT_T5DONE 0x08
7646 #define _T5GGO 0x08
7647 #define _NOT_T5DONE 0x08
7648 #define _T5GSPM 0x10
7649 #define _T5GTM 0x20
7650 #define _T5GPOL 0x40
7651 #define _TMR5GE 0x80
7653 //==============================================================================
7656 //==============================================================================
7657 // T5CON Bits
7659 extern __at(0x0F14) __sfr T5CON;
7661 typedef union
7663 struct
7665 unsigned TMR5ON : 1;
7666 unsigned RD16 : 1;
7667 unsigned NOT_T5SYNC : 1;
7668 unsigned SOSCEN : 1;
7669 unsigned T5CKPS0 : 1;
7670 unsigned T5CKPS1 : 1;
7671 unsigned TMR5CS0 : 1;
7672 unsigned TMR5CS1 : 1;
7675 struct
7677 unsigned : 4;
7678 unsigned T5CKPS : 2;
7679 unsigned : 2;
7682 struct
7684 unsigned : 6;
7685 unsigned TMR5CS : 2;
7687 } __T5CONbits_t;
7689 extern __at(0x0F14) volatile __T5CONbits_t T5CONbits;
7691 #define _T5CON_TMR5ON 0x01
7692 #define _T5CON_RD16 0x02
7693 #define _T5CON_NOT_T5SYNC 0x04
7694 #define _T5CON_SOSCEN 0x08
7695 #define _T5CON_T5CKPS0 0x10
7696 #define _T5CON_T5CKPS1 0x20
7697 #define _T5CON_TMR5CS0 0x40
7698 #define _T5CON_TMR5CS1 0x80
7700 //==============================================================================
7702 extern __at(0x0F15) __sfr TMR5;
7703 extern __at(0x0F15) __sfr TMR5L;
7704 extern __at(0x0F16) __sfr TMR5H;
7706 //==============================================================================
7707 // SSP2MSK Bits
7709 extern __at(0x0F17) __sfr SSP2MSK;
7711 typedef struct
7713 unsigned MSK0 : 1;
7714 unsigned MSK1 : 1;
7715 unsigned MSK2 : 1;
7716 unsigned MSK3 : 1;
7717 unsigned MSK4 : 1;
7718 unsigned MSK5 : 1;
7719 unsigned MSK6 : 1;
7720 unsigned MSK7 : 1;
7721 } __SSP2MSKbits_t;
7723 extern __at(0x0F17) volatile __SSP2MSKbits_t SSP2MSKbits;
7725 #define _SSP2MSK_MSK0 0x01
7726 #define _SSP2MSK_MSK1 0x02
7727 #define _SSP2MSK_MSK2 0x04
7728 #define _SSP2MSK_MSK3 0x08
7729 #define _SSP2MSK_MSK4 0x10
7730 #define _SSP2MSK_MSK5 0x20
7731 #define _SSP2MSK_MSK6 0x40
7732 #define _SSP2MSK_MSK7 0x80
7734 //==============================================================================
7737 //==============================================================================
7738 // SSP2CON2 Bits
7740 extern __at(0x0F18) __sfr SSP2CON2;
7742 typedef union
7744 struct
7746 unsigned SEN : 1;
7747 unsigned RSEN : 1;
7748 unsigned PEN : 1;
7749 unsigned RCEN : 1;
7750 unsigned ACKEN : 1;
7751 unsigned ACKDT : 1;
7752 unsigned ACKSTAT : 1;
7753 unsigned GCEN : 1;
7756 struct
7758 unsigned : 1;
7759 unsigned ADMSK1 : 1;
7760 unsigned ADMSK2 : 1;
7761 unsigned ADMSK3 : 1;
7762 unsigned ADMSK4 : 1;
7763 unsigned ADMSK5 : 1;
7764 unsigned : 1;
7765 unsigned : 1;
7767 } __SSP2CON2bits_t;
7769 extern __at(0x0F18) volatile __SSP2CON2bits_t SSP2CON2bits;
7771 #define _SSP2CON2_SEN 0x01
7772 #define _SSP2CON2_RSEN 0x02
7773 #define _SSP2CON2_ADMSK1 0x02
7774 #define _SSP2CON2_PEN 0x04
7775 #define _SSP2CON2_ADMSK2 0x04
7776 #define _SSP2CON2_RCEN 0x08
7777 #define _SSP2CON2_ADMSK3 0x08
7778 #define _SSP2CON2_ACKEN 0x10
7779 #define _SSP2CON2_ADMSK4 0x10
7780 #define _SSP2CON2_ACKDT 0x20
7781 #define _SSP2CON2_ADMSK5 0x20
7782 #define _SSP2CON2_ACKSTAT 0x40
7783 #define _SSP2CON2_GCEN 0x80
7785 //==============================================================================
7788 //==============================================================================
7789 // SSP2CON1 Bits
7791 extern __at(0x0F19) __sfr SSP2CON1;
7793 typedef union
7795 struct
7797 unsigned SSPM0 : 1;
7798 unsigned SSPM1 : 1;
7799 unsigned SSPM2 : 1;
7800 unsigned SSPM3 : 1;
7801 unsigned CKP : 1;
7802 unsigned SSPEN : 1;
7803 unsigned SSPOV : 1;
7804 unsigned WCOL : 1;
7807 struct
7809 unsigned SSPM : 4;
7810 unsigned : 4;
7812 } __SSP2CON1bits_t;
7814 extern __at(0x0F19) volatile __SSP2CON1bits_t SSP2CON1bits;
7816 #define _SSP2CON1_SSPM0 0x01
7817 #define _SSP2CON1_SSPM1 0x02
7818 #define _SSP2CON1_SSPM2 0x04
7819 #define _SSP2CON1_SSPM3 0x08
7820 #define _SSP2CON1_CKP 0x10
7821 #define _SSP2CON1_SSPEN 0x20
7822 #define _SSP2CON1_SSPOV 0x40
7823 #define _SSP2CON1_WCOL 0x80
7825 //==============================================================================
7828 //==============================================================================
7829 // SSP2STAT Bits
7831 extern __at(0x0F1A) __sfr SSP2STAT;
7833 typedef union
7835 struct
7837 unsigned BF : 1;
7838 unsigned UA : 1;
7839 unsigned R_NOT_W : 1;
7840 unsigned S : 1;
7841 unsigned P : 1;
7842 unsigned D_NOT_A : 1;
7843 unsigned CKE : 1;
7844 unsigned SMP : 1;
7847 struct
7849 unsigned : 1;
7850 unsigned : 1;
7851 unsigned R_W : 1;
7852 unsigned I2C_START : 1;
7853 unsigned I2C_STOP : 1;
7854 unsigned D_A : 1;
7855 unsigned : 1;
7856 unsigned : 1;
7859 struct
7861 unsigned : 1;
7862 unsigned : 1;
7863 unsigned NOT_W : 1;
7864 unsigned : 1;
7865 unsigned : 1;
7866 unsigned NOT_A : 1;
7867 unsigned : 1;
7868 unsigned : 1;
7871 struct
7873 unsigned : 1;
7874 unsigned : 1;
7875 unsigned NOT_WRITE : 1;
7876 unsigned : 1;
7877 unsigned : 1;
7878 unsigned NOT_ADDRESS : 1;
7879 unsigned : 1;
7880 unsigned : 1;
7883 struct
7885 unsigned : 1;
7886 unsigned : 1;
7887 unsigned READ_WRITE : 1;
7888 unsigned : 1;
7889 unsigned : 1;
7890 unsigned DATA_ADDRESS : 1;
7891 unsigned : 1;
7892 unsigned : 1;
7895 struct
7897 unsigned : 1;
7898 unsigned : 1;
7899 unsigned I2C_READ : 1;
7900 unsigned : 1;
7901 unsigned : 1;
7902 unsigned I2C_DAT : 1;
7903 unsigned : 1;
7904 unsigned : 1;
7906 } __SSP2STATbits_t;
7908 extern __at(0x0F1A) volatile __SSP2STATbits_t SSP2STATbits;
7910 #define _SSP2STAT_BF 0x01
7911 #define _SSP2STAT_UA 0x02
7912 #define _SSP2STAT_R_NOT_W 0x04
7913 #define _SSP2STAT_R_W 0x04
7914 #define _SSP2STAT_NOT_W 0x04
7915 #define _SSP2STAT_NOT_WRITE 0x04
7916 #define _SSP2STAT_READ_WRITE 0x04
7917 #define _SSP2STAT_I2C_READ 0x04
7918 #define _SSP2STAT_S 0x08
7919 #define _SSP2STAT_I2C_START 0x08
7920 #define _SSP2STAT_P 0x10
7921 #define _SSP2STAT_I2C_STOP 0x10
7922 #define _SSP2STAT_D_NOT_A 0x20
7923 #define _SSP2STAT_D_A 0x20
7924 #define _SSP2STAT_NOT_A 0x20
7925 #define _SSP2STAT_NOT_ADDRESS 0x20
7926 #define _SSP2STAT_DATA_ADDRESS 0x20
7927 #define _SSP2STAT_I2C_DAT 0x20
7928 #define _SSP2STAT_CKE 0x40
7929 #define _SSP2STAT_SMP 0x80
7931 //==============================================================================
7934 //==============================================================================
7935 // PSTR3CON Bits
7937 extern __at(0x0F1B) __sfr PSTR3CON;
7939 typedef union
7941 struct
7943 unsigned STRA : 1;
7944 unsigned STRB : 1;
7945 unsigned STRC : 1;
7946 unsigned STRD : 1;
7947 unsigned STRSYNC : 1;
7948 unsigned : 1;
7949 unsigned CMPL0 : 1;
7950 unsigned CMPL1 : 1;
7953 struct
7955 unsigned : 6;
7956 unsigned CMPL : 2;
7958 } __PSTR3CONbits_t;
7960 extern __at(0x0F1B) volatile __PSTR3CONbits_t PSTR3CONbits;
7962 #define _PSTR3CON_STRA 0x01
7963 #define _PSTR3CON_STRB 0x02
7964 #define _PSTR3CON_STRC 0x04
7965 #define _PSTR3CON_STRD 0x08
7966 #define _PSTR3CON_STRSYNC 0x10
7967 #define _PSTR3CON_CMPL0 0x40
7968 #define _PSTR3CON_CMPL1 0x80
7970 //==============================================================================
7973 //==============================================================================
7974 // PSTR2CON Bits
7976 extern __at(0x0F1C) __sfr PSTR2CON;
7978 typedef union
7980 struct
7982 unsigned STRA : 1;
7983 unsigned STRB : 1;
7984 unsigned STRC : 1;
7985 unsigned STRD : 1;
7986 unsigned STRSYNC : 1;
7987 unsigned : 1;
7988 unsigned CMPL0 : 1;
7989 unsigned CMPL1 : 1;
7992 struct
7994 unsigned : 6;
7995 unsigned CMPL : 2;
7997 } __PSTR2CONbits_t;
7999 extern __at(0x0F1C) volatile __PSTR2CONbits_t PSTR2CONbits;
8001 #define _PSTR2CON_STRA 0x01
8002 #define _PSTR2CON_STRB 0x02
8003 #define _PSTR2CON_STRC 0x04
8004 #define _PSTR2CON_STRD 0x08
8005 #define _PSTR2CON_STRSYNC 0x10
8006 #define _PSTR2CON_CMPL0 0x40
8007 #define _PSTR2CON_CMPL1 0x80
8009 //==============================================================================
8011 extern __at(0x0F1D) __sfr TXREG2;
8012 extern __at(0x0F1E) __sfr RCREG2;
8014 //==============================================================================
8015 // SPBRG2 Bits
8017 extern __at(0x0F1F) __sfr SPBRG2;
8019 typedef struct
8021 unsigned BRG0 : 1;
8022 unsigned BRG1 : 1;
8023 unsigned BRG2 : 1;
8024 unsigned BRG3 : 1;
8025 unsigned BRG4 : 1;
8026 unsigned BRG5 : 1;
8027 unsigned BRG6 : 1;
8028 unsigned BRG7 : 1;
8029 } __SPBRG2bits_t;
8031 extern __at(0x0F1F) volatile __SPBRG2bits_t SPBRG2bits;
8033 #define _SPBRG2_BRG0 0x01
8034 #define _SPBRG2_BRG1 0x02
8035 #define _SPBRG2_BRG2 0x04
8036 #define _SPBRG2_BRG3 0x08
8037 #define _SPBRG2_BRG4 0x10
8038 #define _SPBRG2_BRG5 0x20
8039 #define _SPBRG2_BRG6 0x40
8040 #define _SPBRG2_BRG7 0x80
8042 //==============================================================================
8045 //==============================================================================
8046 // SPBRGH2 Bits
8048 extern __at(0x0F20) __sfr SPBRGH2;
8050 typedef struct
8052 unsigned BRG8 : 1;
8053 unsigned BRG9 : 1;
8054 unsigned BRG10 : 1;
8055 unsigned BRG11 : 1;
8056 unsigned BRG12 : 1;
8057 unsigned BRG13 : 1;
8058 unsigned BRG14 : 1;
8059 unsigned BRG15 : 1;
8060 } __SPBRGH2bits_t;
8062 extern __at(0x0F20) volatile __SPBRGH2bits_t SPBRGH2bits;
8064 #define _SPBRGH2_BRG8 0x01
8065 #define _SPBRGH2_BRG9 0x02
8066 #define _SPBRGH2_BRG10 0x04
8067 #define _SPBRGH2_BRG11 0x08
8068 #define _SPBRGH2_BRG12 0x10
8069 #define _SPBRGH2_BRG13 0x20
8070 #define _SPBRGH2_BRG14 0x40
8071 #define _SPBRGH2_BRG15 0x80
8073 //==============================================================================
8075 extern __at(0x0F21) __sfr DSGPR3;
8076 extern __at(0x0F22) __sfr DSGPR2;
8077 extern __at(0x0F23) __sfr DSGPR1;
8078 extern __at(0x0F24) __sfr DSGPR0;
8080 //==============================================================================
8081 // DSWAKEH Bits
8083 extern __at(0x0F25) __sfr DSWAKEH;
8085 typedef struct
8087 unsigned DSINT0 : 1;
8088 unsigned : 1;
8089 unsigned : 1;
8090 unsigned : 1;
8091 unsigned : 1;
8092 unsigned : 1;
8093 unsigned : 1;
8094 unsigned : 1;
8095 } __DSWAKEHbits_t;
8097 extern __at(0x0F25) volatile __DSWAKEHbits_t DSWAKEHbits;
8099 #define _DSINT0 0x01
8101 //==============================================================================
8104 //==============================================================================
8105 // DSWAKEL Bits
8107 extern __at(0x0F26) __sfr DSWAKEL;
8109 typedef struct
8111 unsigned DSPOR : 1;
8112 unsigned DSICD : 1;
8113 unsigned DSMCLR : 1;
8114 unsigned DSRTC : 1;
8115 unsigned DSWDT : 1;
8116 unsigned DSULP : 1;
8117 unsigned BOR : 1;
8118 unsigned DSFLT : 1;
8119 } __DSWAKELbits_t;
8121 extern __at(0x0F26) volatile __DSWAKELbits_t DSWAKELbits;
8123 #define _DSPOR 0x01
8124 #define _DSICD 0x02
8125 #define _DSMCLR 0x04
8126 #define _DSRTC 0x08
8127 #define _DSWDT 0x10
8128 #define _DSULP 0x20
8129 #define _BOR 0x40
8130 #define _DSFLT 0x80
8132 //==============================================================================
8135 //==============================================================================
8136 // DSCONH Bits
8138 extern __at(0x0F27) __sfr DSCONH;
8140 typedef struct
8142 unsigned RTCWDIS : 1;
8143 unsigned : 1;
8144 unsigned : 1;
8145 unsigned : 1;
8146 unsigned : 1;
8147 unsigned : 1;
8148 unsigned : 1;
8149 unsigned DSEN : 1;
8150 } __DSCONHbits_t;
8152 extern __at(0x0F27) volatile __DSCONHbits_t DSCONHbits;
8154 #define _RTCWDIS 0x01
8155 #define _DSEN 0x80
8157 //==============================================================================
8160 //==============================================================================
8161 // DSCONL Bits
8163 extern __at(0x0F28) __sfr DSCONL;
8165 typedef struct
8167 unsigned RELEASE : 1;
8168 unsigned DSBOR : 1;
8169 unsigned ULPWDIS : 1;
8170 unsigned : 1;
8171 unsigned : 1;
8172 unsigned : 1;
8173 unsigned : 1;
8174 unsigned : 1;
8175 } __DSCONLbits_t;
8177 extern __at(0x0F28) volatile __DSCONLbits_t DSCONLbits;
8179 #define _RELEASE 0x01
8180 #define _DSBOR 0x02
8181 #define _ULPWDIS 0x04
8183 //==============================================================================
8185 extern __at(0x0F29) __sfr TXREG3;
8186 extern __at(0x0F2A) __sfr RCREG3;
8188 //==============================================================================
8189 // SPBRG3 Bits
8191 extern __at(0x0F2B) __sfr SPBRG3;
8193 typedef struct
8195 unsigned BRG0 : 1;
8196 unsigned BRG1 : 1;
8197 unsigned BRG2 : 1;
8198 unsigned BRG3 : 1;
8199 unsigned BRG4 : 1;
8200 unsigned BRG5 : 1;
8201 unsigned BRG6 : 1;
8202 unsigned BRG7 : 1;
8203 } __SPBRG3bits_t;
8205 extern __at(0x0F2B) volatile __SPBRG3bits_t SPBRG3bits;
8207 #define _SPBRG3_BRG0 0x01
8208 #define _SPBRG3_BRG1 0x02
8209 #define _SPBRG3_BRG2 0x04
8210 #define _SPBRG3_BRG3 0x08
8211 #define _SPBRG3_BRG4 0x10
8212 #define _SPBRG3_BRG5 0x20
8213 #define _SPBRG3_BRG6 0x40
8214 #define _SPBRG3_BRG7 0x80
8216 //==============================================================================
8219 //==============================================================================
8220 // SPBRGH3 Bits
8222 extern __at(0x0F2C) __sfr SPBRGH3;
8224 typedef struct
8226 unsigned BRG8 : 1;
8227 unsigned BRG9 : 1;
8228 unsigned BRG10 : 1;
8229 unsigned BRG11 : 1;
8230 unsigned BRG12 : 1;
8231 unsigned BRG13 : 1;
8232 unsigned BRG14 : 1;
8233 unsigned BRG15 : 1;
8234 } __SPBRGH3bits_t;
8236 extern __at(0x0F2C) volatile __SPBRGH3bits_t SPBRGH3bits;
8238 #define _SPBRGH3_BRG8 0x01
8239 #define _SPBRGH3_BRG9 0x02
8240 #define _SPBRGH3_BRG10 0x04
8241 #define _SPBRGH3_BRG11 0x08
8242 #define _SPBRGH3_BRG12 0x10
8243 #define _SPBRGH3_BRG13 0x20
8244 #define _SPBRGH3_BRG14 0x40
8245 #define _SPBRGH3_BRG15 0x80
8247 //==============================================================================
8250 //==============================================================================
8251 // BAUDCON3 Bits
8253 extern __at(0x0F2D) __sfr BAUDCON3;
8255 typedef struct
8257 unsigned ABDEN : 1;
8258 unsigned WUE : 1;
8259 unsigned IREN : 1;
8260 unsigned BRG16 : 1;
8261 unsigned TXCKP : 1;
8262 unsigned RXDTP : 1;
8263 unsigned RCIDL : 1;
8264 unsigned ABDOVF : 1;
8265 } __BAUDCON3bits_t;
8267 extern __at(0x0F2D) volatile __BAUDCON3bits_t BAUDCON3bits;
8269 #define _BAUDCON3_ABDEN 0x01
8270 #define _BAUDCON3_WUE 0x02
8271 #define _BAUDCON3_IREN 0x04
8272 #define _BAUDCON3_BRG16 0x08
8273 #define _BAUDCON3_TXCKP 0x10
8274 #define _BAUDCON3_RXDTP 0x20
8275 #define _BAUDCON3_RCIDL 0x40
8276 #define _BAUDCON3_ABDOVF 0x80
8278 //==============================================================================
8281 //==============================================================================
8282 // TXSTA3 Bits
8284 extern __at(0x0F2E) __sfr TXSTA3;
8286 typedef struct
8288 unsigned TX9D : 1;
8289 unsigned TRMT : 1;
8290 unsigned BRGH : 1;
8291 unsigned SENDB : 1;
8292 unsigned SYNC : 1;
8293 unsigned TXEN : 1;
8294 unsigned TX9 : 1;
8295 unsigned CSRC : 1;
8296 } __TXSTA3bits_t;
8298 extern __at(0x0F2E) volatile __TXSTA3bits_t TXSTA3bits;
8300 #define _TXSTA3_TX9D 0x01
8301 #define _TXSTA3_TRMT 0x02
8302 #define _TXSTA3_BRGH 0x04
8303 #define _TXSTA3_SENDB 0x08
8304 #define _TXSTA3_SYNC 0x10
8305 #define _TXSTA3_TXEN 0x20
8306 #define _TXSTA3_TX9 0x40
8307 #define _TXSTA3_CSRC 0x80
8309 //==============================================================================
8312 //==============================================================================
8313 // RCSTA3 Bits
8315 extern __at(0x0F2F) __sfr RCSTA3;
8317 typedef struct
8319 unsigned RX9D : 1;
8320 unsigned OERR : 1;
8321 unsigned FERR : 1;
8322 unsigned ADDEN : 1;
8323 unsigned CREN : 1;
8324 unsigned SREN : 1;
8325 unsigned RX9 : 1;
8326 unsigned SPEN : 1;
8327 } __RCSTA3bits_t;
8329 extern __at(0x0F2F) volatile __RCSTA3bits_t RCSTA3bits;
8331 #define _RCSTA3_RX9D 0x01
8332 #define _RCSTA3_OERR 0x02
8333 #define _RCSTA3_FERR 0x04
8334 #define _RCSTA3_ADDEN 0x08
8335 #define _RCSTA3_CREN 0x10
8336 #define _RCSTA3_SREN 0x20
8337 #define _RCSTA3_RX9 0x40
8338 #define _RCSTA3_SPEN 0x80
8340 //==============================================================================
8343 //==============================================================================
8344 // SPBRGH Bits
8346 extern __at(0x0F30) __sfr SPBRGH;
8348 typedef struct
8350 unsigned BRG8 : 1;
8351 unsigned BRG9 : 1;
8352 unsigned BRG10 : 1;
8353 unsigned BRG11 : 1;
8354 unsigned BRG12 : 1;
8355 unsigned BRG13 : 1;
8356 unsigned BRG14 : 1;
8357 unsigned BRG15 : 1;
8358 } __SPBRGHbits_t;
8360 extern __at(0x0F30) volatile __SPBRGHbits_t SPBRGHbits;
8362 #define _BRG8 0x01
8363 #define _BRG9 0x02
8364 #define _BRG10 0x04
8365 #define _BRG11 0x08
8366 #define _BRG12 0x10
8367 #define _BRG13 0x20
8368 #define _BRG14 0x40
8369 #define _BRG15 0x80
8371 //==============================================================================
8374 //==============================================================================
8375 // SPBRGH1 Bits
8377 extern __at(0x0F30) __sfr SPBRGH1;
8379 typedef struct
8381 unsigned BRG8 : 1;
8382 unsigned BRG9 : 1;
8383 unsigned BRG10 : 1;
8384 unsigned BRG11 : 1;
8385 unsigned BRG12 : 1;
8386 unsigned BRG13 : 1;
8387 unsigned BRG14 : 1;
8388 unsigned BRG15 : 1;
8389 } __SPBRGH1bits_t;
8391 extern __at(0x0F30) volatile __SPBRGH1bits_t SPBRGH1bits;
8393 #define _SPBRGH1_BRG8 0x01
8394 #define _SPBRGH1_BRG9 0x02
8395 #define _SPBRGH1_BRG10 0x04
8396 #define _SPBRGH1_BRG11 0x08
8397 #define _SPBRGH1_BRG12 0x10
8398 #define _SPBRGH1_BRG13 0x20
8399 #define _SPBRGH1_BRG14 0x40
8400 #define _SPBRGH1_BRG15 0x80
8402 //==============================================================================
8405 //==============================================================================
8406 // BAUDCON2 Bits
8408 extern __at(0x0F31) __sfr BAUDCON2;
8410 typedef struct
8412 unsigned ABDEN : 1;
8413 unsigned WUE : 1;
8414 unsigned IREN : 1;
8415 unsigned BRG16 : 1;
8416 unsigned TXCKP : 1;
8417 unsigned RXDTP : 1;
8418 unsigned RCIDL : 1;
8419 unsigned ABDOVF : 1;
8420 } __BAUDCON2bits_t;
8422 extern __at(0x0F31) volatile __BAUDCON2bits_t BAUDCON2bits;
8424 #define _BAUDCON2_ABDEN 0x01
8425 #define _BAUDCON2_WUE 0x02
8426 #define _BAUDCON2_IREN 0x04
8427 #define _BAUDCON2_BRG16 0x08
8428 #define _BAUDCON2_TXCKP 0x10
8429 #define _BAUDCON2_RXDTP 0x20
8430 #define _BAUDCON2_RCIDL 0x40
8431 #define _BAUDCON2_ABDOVF 0x80
8433 //==============================================================================
8436 //==============================================================================
8437 // TXSTA2 Bits
8439 extern __at(0x0F32) __sfr TXSTA2;
8441 typedef struct
8443 unsigned TX9D : 1;
8444 unsigned TRMT : 1;
8445 unsigned BRGH : 1;
8446 unsigned SENDB : 1;
8447 unsigned SYNC : 1;
8448 unsigned TXEN : 1;
8449 unsigned TX9 : 1;
8450 unsigned CSRC : 1;
8451 } __TXSTA2bits_t;
8453 extern __at(0x0F32) volatile __TXSTA2bits_t TXSTA2bits;
8455 #define _TXSTA2_TX9D 0x01
8456 #define _TXSTA2_TRMT 0x02
8457 #define _TXSTA2_BRGH 0x04
8458 #define _TXSTA2_SENDB 0x08
8459 #define _TXSTA2_SYNC 0x10
8460 #define _TXSTA2_TXEN 0x20
8461 #define _TXSTA2_TX9 0x40
8462 #define _TXSTA2_CSRC 0x80
8464 //==============================================================================
8467 //==============================================================================
8468 // RCSTA2 Bits
8470 extern __at(0x0F33) __sfr RCSTA2;
8472 typedef struct
8474 unsigned RX9D : 1;
8475 unsigned OERR : 1;
8476 unsigned FERR : 1;
8477 unsigned ADDEN : 1;
8478 unsigned CREN : 1;
8479 unsigned SREN : 1;
8480 unsigned RX9 : 1;
8481 unsigned SPEN : 1;
8482 } __RCSTA2bits_t;
8484 extern __at(0x0F33) volatile __RCSTA2bits_t RCSTA2bits;
8486 #define _RCSTA2_RX9D 0x01
8487 #define _RCSTA2_OERR 0x02
8488 #define _RCSTA2_FERR 0x04
8489 #define _RCSTA2_ADDEN 0x08
8490 #define _RCSTA2_CREN 0x10
8491 #define _RCSTA2_SREN 0x20
8492 #define _RCSTA2_RX9 0x40
8493 #define _RCSTA2_SPEN 0x80
8495 //==============================================================================
8498 //==============================================================================
8499 // CCPTMRS2 Bits
8501 extern __at(0x0F34) __sfr CCPTMRS2;
8503 typedef union
8505 struct
8507 unsigned C8TSEL0 : 1;
8508 unsigned C8TSEL1 : 1;
8509 unsigned C9TSEL : 1;
8510 unsigned : 1;
8511 unsigned C10TSEL : 1;
8512 unsigned : 1;
8513 unsigned : 1;
8514 unsigned : 1;
8517 struct
8519 unsigned : 1;
8520 unsigned : 1;
8521 unsigned C9TSEL0 : 1;
8522 unsigned : 1;
8523 unsigned C10TSEL0 : 1;
8524 unsigned : 1;
8525 unsigned : 1;
8526 unsigned : 1;
8529 struct
8531 unsigned C8TSEL : 2;
8532 unsigned : 6;
8534 } __CCPTMRS2bits_t;
8536 extern __at(0x0F34) volatile __CCPTMRS2bits_t CCPTMRS2bits;
8538 #define _C8TSEL0 0x01
8539 #define _C8TSEL1 0x02
8540 #define _C9TSEL 0x04
8541 #define _C9TSEL0 0x04
8542 #define _C10TSEL 0x10
8543 #define _C10TSEL0 0x10
8545 //==============================================================================
8548 //==============================================================================
8549 // CCPTMRS1 Bits
8551 extern __at(0x0F35) __sfr CCPTMRS1;
8553 typedef union
8555 struct
8557 unsigned C4TSEL0 : 1;
8558 unsigned C4TSEL1 : 1;
8559 unsigned C5TSEL : 1;
8560 unsigned : 1;
8561 unsigned C6TSEL : 1;
8562 unsigned : 1;
8563 unsigned C7TSEL0 : 1;
8564 unsigned C7TSEL1 : 1;
8567 struct
8569 unsigned : 1;
8570 unsigned : 1;
8571 unsigned C5TSEL0 : 1;
8572 unsigned : 1;
8573 unsigned C6TSEL0 : 1;
8574 unsigned : 1;
8575 unsigned : 1;
8576 unsigned : 1;
8579 struct
8581 unsigned C4TSEL : 2;
8582 unsigned : 6;
8585 struct
8587 unsigned : 6;
8588 unsigned C7TSEL : 2;
8590 } __CCPTMRS1bits_t;
8592 extern __at(0x0F35) volatile __CCPTMRS1bits_t CCPTMRS1bits;
8594 #define _C4TSEL0 0x01
8595 #define _C4TSEL1 0x02
8596 #define _C5TSEL 0x04
8597 #define _C5TSEL0 0x04
8598 #define _C6TSEL 0x10
8599 #define _C6TSEL0 0x10
8600 #define _C7TSEL0 0x40
8601 #define _C7TSEL1 0x80
8603 //==============================================================================
8606 //==============================================================================
8607 // CCPTMRS0 Bits
8609 extern __at(0x0F36) __sfr CCPTMRS0;
8611 typedef union
8613 struct
8615 unsigned C1TSEL0 : 1;
8616 unsigned C1TSEL1 : 1;
8617 unsigned C1TSEL2 : 1;
8618 unsigned C2TSEL0 : 1;
8619 unsigned C2TSEL1 : 1;
8620 unsigned C2TSEL2 : 1;
8621 unsigned C3TSEL0 : 1;
8622 unsigned C3TSEL1 : 1;
8625 struct
8627 unsigned C1TSEL : 3;
8628 unsigned : 5;
8631 struct
8633 unsigned : 3;
8634 unsigned C2TSEL : 3;
8635 unsigned : 2;
8638 struct
8640 unsigned : 6;
8641 unsigned C3TSEL : 2;
8643 } __CCPTMRS0bits_t;
8645 extern __at(0x0F36) volatile __CCPTMRS0bits_t CCPTMRS0bits;
8647 #define _C1TSEL0 0x01
8648 #define _C1TSEL1 0x02
8649 #define _C1TSEL2 0x04
8650 #define _C2TSEL0 0x08
8651 #define _C2TSEL1 0x10
8652 #define _C2TSEL2 0x20
8653 #define _C3TSEL0 0x40
8654 #define _C3TSEL1 0x80
8656 //==============================================================================
8659 //==============================================================================
8660 // CM3CON Bits
8662 extern __at(0x0F37) __sfr CM3CON;
8664 typedef union
8666 struct
8668 unsigned CCH0 : 1;
8669 unsigned CCH1 : 1;
8670 unsigned CREF : 1;
8671 unsigned EVPOL0 : 1;
8672 unsigned EVPOL1 : 1;
8673 unsigned CPOL : 1;
8674 unsigned COE : 1;
8675 unsigned CON : 1;
8678 struct
8680 unsigned CCH : 2;
8681 unsigned : 6;
8684 struct
8686 unsigned : 3;
8687 unsigned EVPOL : 2;
8688 unsigned : 3;
8690 } __CM3CONbits_t;
8692 extern __at(0x0F37) volatile __CM3CONbits_t CM3CONbits;
8694 #define _CM3CON_CCH0 0x01
8695 #define _CM3CON_CCH1 0x02
8696 #define _CM3CON_CREF 0x04
8697 #define _CM3CON_EVPOL0 0x08
8698 #define _CM3CON_EVPOL1 0x10
8699 #define _CM3CON_CPOL 0x20
8700 #define _CM3CON_COE 0x40
8701 #define _CM3CON_CON 0x80
8703 //==============================================================================
8706 //==============================================================================
8707 // CM2CON Bits
8709 extern __at(0x0F38) __sfr CM2CON;
8711 typedef union
8713 struct
8715 unsigned CCH0 : 1;
8716 unsigned CCH1 : 1;
8717 unsigned CREF : 1;
8718 unsigned EVPOL0 : 1;
8719 unsigned EVPOL1 : 1;
8720 unsigned CPOL : 1;
8721 unsigned COE : 1;
8722 unsigned CON : 1;
8725 struct
8727 unsigned CCH : 2;
8728 unsigned : 6;
8731 struct
8733 unsigned : 3;
8734 unsigned EVPOL : 2;
8735 unsigned : 3;
8737 } __CM2CONbits_t;
8739 extern __at(0x0F38) volatile __CM2CONbits_t CM2CONbits;
8741 #define _CM2CON_CCH0 0x01
8742 #define _CM2CON_CCH1 0x02
8743 #define _CM2CON_CREF 0x04
8744 #define _CM2CON_EVPOL0 0x08
8745 #define _CM2CON_EVPOL1 0x10
8746 #define _CM2CON_CPOL 0x20
8747 #define _CM2CON_COE 0x40
8748 #define _CM2CON_CON 0x80
8750 //==============================================================================
8753 //==============================================================================
8754 // SSP2CON3 Bits
8756 extern __at(0x0F39) __sfr SSP2CON3;
8758 typedef struct
8760 unsigned DHEN : 1;
8761 unsigned AHEN : 1;
8762 unsigned SBCDE : 1;
8763 unsigned SDAHT : 1;
8764 unsigned BOEN : 1;
8765 unsigned SCIE : 1;
8766 unsigned PCIE : 1;
8767 unsigned ACKTIM : 1;
8768 } __SSP2CON3bits_t;
8770 extern __at(0x0F39) volatile __SSP2CON3bits_t SSP2CON3bits;
8772 #define _SSP2CON3_DHEN 0x01
8773 #define _SSP2CON3_AHEN 0x02
8774 #define _SSP2CON3_SBCDE 0x04
8775 #define _SSP2CON3_SDAHT 0x08
8776 #define _SSP2CON3_BOEN 0x10
8777 #define _SSP2CON3_SCIE 0x20
8778 #define _SSP2CON3_PCIE 0x40
8779 #define _SSP2CON3_ACKTIM 0x80
8781 //==============================================================================
8784 //==============================================================================
8785 // T8CON Bits
8787 extern __at(0x0F3A) __sfr T8CON;
8789 typedef union
8791 struct
8793 unsigned T8CKPS0 : 1;
8794 unsigned T8CKPS1 : 1;
8795 unsigned TMR8ON : 1;
8796 unsigned T8OUTPS0 : 1;
8797 unsigned T8OUTPS1 : 1;
8798 unsigned T8OUTPS2 : 1;
8799 unsigned T8OUTPS3 : 1;
8800 unsigned : 1;
8803 struct
8805 unsigned T8CKPS : 2;
8806 unsigned : 6;
8809 struct
8811 unsigned : 3;
8812 unsigned T8OUTPS : 4;
8813 unsigned : 1;
8815 } __T8CONbits_t;
8817 extern __at(0x0F3A) volatile __T8CONbits_t T8CONbits;
8819 #define _T8CKPS0 0x01
8820 #define _T8CKPS1 0x02
8821 #define _TMR8ON 0x04
8822 #define _T8OUTPS0 0x08
8823 #define _T8OUTPS1 0x10
8824 #define _T8OUTPS2 0x20
8825 #define _T8OUTPS3 0x40
8827 //==============================================================================
8829 extern __at(0x0F3B) __sfr PR8;
8830 extern __at(0x0F3C) __sfr TMR8;
8832 //==============================================================================
8833 // T6CON Bits
8835 extern __at(0x0F3D) __sfr T6CON;
8837 typedef union
8839 struct
8841 unsigned T6CKPS0 : 1;
8842 unsigned T6CKPS1 : 1;
8843 unsigned TMR6ON : 1;
8844 unsigned T6OUTPS0 : 1;
8845 unsigned T6OUTPS1 : 1;
8846 unsigned T6OUTPS2 : 1;
8847 unsigned T6OUTPS3 : 1;
8848 unsigned : 1;
8851 struct
8853 unsigned T6CKPS : 2;
8854 unsigned : 6;
8857 struct
8859 unsigned : 3;
8860 unsigned T6OUTPS : 4;
8861 unsigned : 1;
8863 } __T6CONbits_t;
8865 extern __at(0x0F3D) volatile __T6CONbits_t T6CONbits;
8867 #define _T6CKPS0 0x01
8868 #define _T6CKPS1 0x02
8869 #define _TMR6ON 0x04
8870 #define _T6OUTPS0 0x08
8871 #define _T6OUTPS1 0x10
8872 #define _T6OUTPS2 0x20
8873 #define _T6OUTPS3 0x40
8875 //==============================================================================
8877 extern __at(0x0F3E) __sfr PR6;
8878 extern __at(0x0F3F) __sfr TMR6;
8880 //==============================================================================
8881 // CCP10CON Bits
8883 extern __at(0x0F40) __sfr CCP10CON;
8885 typedef union
8887 struct
8889 unsigned CCP10M0 : 1;
8890 unsigned CCP10M1 : 1;
8891 unsigned CCP10M2 : 1;
8892 unsigned CCP10M3 : 1;
8893 unsigned DC10B0 : 1;
8894 unsigned DC10B1 : 1;
8895 unsigned : 1;
8896 unsigned : 1;
8899 struct
8901 unsigned : 1;
8902 unsigned : 1;
8903 unsigned : 1;
8904 unsigned : 1;
8905 unsigned CCP10Y : 1;
8906 unsigned CCP10X : 1;
8907 unsigned : 1;
8908 unsigned : 1;
8911 struct
8913 unsigned CCP10M : 4;
8914 unsigned : 4;
8917 struct
8919 unsigned : 4;
8920 unsigned DC10B : 2;
8921 unsigned : 2;
8923 } __CCP10CONbits_t;
8925 extern __at(0x0F40) volatile __CCP10CONbits_t CCP10CONbits;
8927 #define _CCP10M0 0x01
8928 #define _CCP10M1 0x02
8929 #define _CCP10M2 0x04
8930 #define _CCP10M3 0x08
8931 #define _DC10B0 0x10
8932 #define _CCP10Y 0x10
8933 #define _DC10B1 0x20
8934 #define _CCP10X 0x20
8936 //==============================================================================
8938 extern __at(0x0F41) __sfr CCPR10;
8939 extern __at(0x0F41) __sfr CCPR10L;
8940 extern __at(0x0F42) __sfr CCPR10H;
8942 //==============================================================================
8943 // CCP9CON Bits
8945 extern __at(0x0F43) __sfr CCP9CON;
8947 typedef union
8949 struct
8951 unsigned CCP9M0 : 1;
8952 unsigned CCP9M1 : 1;
8953 unsigned CCP9M2 : 1;
8954 unsigned CCP9M3 : 1;
8955 unsigned DC9B0 : 1;
8956 unsigned DC9B1 : 1;
8957 unsigned : 1;
8958 unsigned : 1;
8961 struct
8963 unsigned : 1;
8964 unsigned : 1;
8965 unsigned : 1;
8966 unsigned : 1;
8967 unsigned CCP9Y : 1;
8968 unsigned CCP9X : 1;
8969 unsigned : 1;
8970 unsigned : 1;
8973 struct
8975 unsigned CCP9M : 4;
8976 unsigned : 4;
8979 struct
8981 unsigned : 4;
8982 unsigned DC9B : 2;
8983 unsigned : 2;
8985 } __CCP9CONbits_t;
8987 extern __at(0x0F43) volatile __CCP9CONbits_t CCP9CONbits;
8989 #define _CCP9M0 0x01
8990 #define _CCP9M1 0x02
8991 #define _CCP9M2 0x04
8992 #define _CCP9M3 0x08
8993 #define _DC9B0 0x10
8994 #define _CCP9Y 0x10
8995 #define _DC9B1 0x20
8996 #define _CCP9X 0x20
8998 //==============================================================================
9000 extern __at(0x0F44) __sfr CCPR9;
9001 extern __at(0x0F44) __sfr CCPR9L;
9002 extern __at(0x0F45) __sfr CCPR9H;
9004 //==============================================================================
9005 // CCP8CON Bits
9007 extern __at(0x0F46) __sfr CCP8CON;
9009 typedef union
9011 struct
9013 unsigned CCP8M0 : 1;
9014 unsigned CCP8M1 : 1;
9015 unsigned CCP8M2 : 1;
9016 unsigned CCP8M3 : 1;
9017 unsigned DC8B0 : 1;
9018 unsigned DC8B1 : 1;
9019 unsigned : 1;
9020 unsigned : 1;
9023 struct
9025 unsigned : 1;
9026 unsigned : 1;
9027 unsigned : 1;
9028 unsigned : 1;
9029 unsigned CCP8Y : 1;
9030 unsigned CCP8X : 1;
9031 unsigned : 1;
9032 unsigned : 1;
9035 struct
9037 unsigned CCP8M : 4;
9038 unsigned : 4;
9041 struct
9043 unsigned : 4;
9044 unsigned DC8B : 2;
9045 unsigned : 2;
9047 } __CCP8CONbits_t;
9049 extern __at(0x0F46) volatile __CCP8CONbits_t CCP8CONbits;
9051 #define _CCP8M0 0x01
9052 #define _CCP8M1 0x02
9053 #define _CCP8M2 0x04
9054 #define _CCP8M3 0x08
9055 #define _DC8B0 0x10
9056 #define _CCP8Y 0x10
9057 #define _DC8B1 0x20
9058 #define _CCP8X 0x20
9060 //==============================================================================
9062 extern __at(0x0F47) __sfr CCPR8;
9063 extern __at(0x0F47) __sfr CCPR8L;
9064 extern __at(0x0F48) __sfr CCPR8H;
9066 //==============================================================================
9067 // CCP3CON Bits
9069 extern __at(0x0F49) __sfr CCP3CON;
9071 typedef union
9073 struct
9075 unsigned CCP3M0 : 1;
9076 unsigned CCP3M1 : 1;
9077 unsigned CCP3M2 : 1;
9078 unsigned CCP3M3 : 1;
9079 unsigned DC3B0 : 1;
9080 unsigned DC3B1 : 1;
9081 unsigned P3M0 : 1;
9082 unsigned P3M1 : 1;
9085 struct
9087 unsigned : 1;
9088 unsigned : 1;
9089 unsigned : 1;
9090 unsigned : 1;
9091 unsigned CCP3Y : 1;
9092 unsigned CCP3X : 1;
9093 unsigned : 1;
9094 unsigned : 1;
9097 struct
9099 unsigned CCP3M : 4;
9100 unsigned : 4;
9103 struct
9105 unsigned : 4;
9106 unsigned DC3B : 2;
9107 unsigned : 2;
9110 struct
9112 unsigned : 6;
9113 unsigned P3M : 2;
9115 } __CCP3CONbits_t;
9117 extern __at(0x0F49) volatile __CCP3CONbits_t CCP3CONbits;
9119 #define _CCP3M0 0x01
9120 #define _CCP3M1 0x02
9121 #define _CCP3M2 0x04
9122 #define _CCP3M3 0x08
9123 #define _DC3B0 0x10
9124 #define _CCP3Y 0x10
9125 #define _DC3B1 0x20
9126 #define _CCP3X 0x20
9127 #define _P3M0 0x40
9128 #define _P3M1 0x80
9130 //==============================================================================
9132 extern __at(0x0F4A) __sfr CCPR3;
9133 extern __at(0x0F4A) __sfr CCPR3L;
9134 extern __at(0x0F4B) __sfr CCPR3H;
9136 //==============================================================================
9137 // ECCP3DEL Bits
9139 extern __at(0x0F4C) __sfr ECCP3DEL;
9141 typedef union
9143 struct
9145 unsigned P3DC0 : 1;
9146 unsigned P3DC1 : 1;
9147 unsigned P3DC2 : 1;
9148 unsigned P3DC3 : 1;
9149 unsigned P3DC4 : 1;
9150 unsigned P3DC5 : 1;
9151 unsigned P3DC6 : 1;
9152 unsigned P3RSEN : 1;
9155 struct
9157 unsigned P3DC : 7;
9158 unsigned : 1;
9160 } __ECCP3DELbits_t;
9162 extern __at(0x0F4C) volatile __ECCP3DELbits_t ECCP3DELbits;
9164 #define _P3DC0 0x01
9165 #define _P3DC1 0x02
9166 #define _P3DC2 0x04
9167 #define _P3DC3 0x08
9168 #define _P3DC4 0x10
9169 #define _P3DC5 0x20
9170 #define _P3DC6 0x40
9171 #define _P3RSEN 0x80
9173 //==============================================================================
9176 //==============================================================================
9177 // ECCP3AS Bits
9179 extern __at(0x0F4D) __sfr ECCP3AS;
9181 typedef union
9183 struct
9185 unsigned PSS3BD0 : 1;
9186 unsigned PSS3BD1 : 1;
9187 unsigned PSS3AC0 : 1;
9188 unsigned PSS3AC1 : 1;
9189 unsigned ECCP3AS0 : 1;
9190 unsigned ECCP3AS1 : 1;
9191 unsigned ECCP3AS2 : 1;
9192 unsigned ECCP3ASE : 1;
9195 struct
9197 unsigned PSS3BD : 2;
9198 unsigned : 6;
9201 struct
9203 unsigned : 2;
9204 unsigned PSS3AC : 2;
9205 unsigned : 4;
9208 struct
9210 unsigned : 4;
9211 unsigned ECCP3AS : 3;
9212 unsigned : 1;
9214 } __ECCP3ASbits_t;
9216 extern __at(0x0F4D) volatile __ECCP3ASbits_t ECCP3ASbits;
9218 #define _PSS3BD0 0x01
9219 #define _PSS3BD1 0x02
9220 #define _PSS3AC0 0x04
9221 #define _PSS3AC1 0x08
9222 #define _ECCP3AS0 0x10
9223 #define _ECCP3AS1 0x20
9224 #define _ECCP3AS2 0x40
9225 #define _ECCP3ASE 0x80
9227 //==============================================================================
9230 //==============================================================================
9231 // CCP2CON Bits
9233 extern __at(0x0F4E) __sfr CCP2CON;
9235 typedef union
9237 struct
9239 unsigned CCP2M0 : 1;
9240 unsigned CCP2M1 : 1;
9241 unsigned CCP2M2 : 1;
9242 unsigned CCP2M3 : 1;
9243 unsigned DC2B0 : 1;
9244 unsigned DC2B1 : 1;
9245 unsigned P2M0 : 1;
9246 unsigned P2M1 : 1;
9249 struct
9251 unsigned : 1;
9252 unsigned : 1;
9253 unsigned : 1;
9254 unsigned : 1;
9255 unsigned CCP2Y : 1;
9256 unsigned CCP2X : 1;
9257 unsigned : 1;
9258 unsigned : 1;
9261 struct
9263 unsigned CCP2M : 4;
9264 unsigned : 4;
9267 struct
9269 unsigned : 4;
9270 unsigned DC2B : 2;
9271 unsigned : 2;
9274 struct
9276 unsigned : 6;
9277 unsigned P2M : 2;
9279 } __CCP2CONbits_t;
9281 extern __at(0x0F4E) volatile __CCP2CONbits_t CCP2CONbits;
9283 #define _CCP2M0 0x01
9284 #define _CCP2M1 0x02
9285 #define _CCP2M2 0x04
9286 #define _CCP2M3 0x08
9287 #define _DC2B0 0x10
9288 #define _CCP2Y 0x10
9289 #define _DC2B1 0x20
9290 #define _CCP2X 0x20
9291 #define _P2M0 0x40
9292 #define _P2M1 0x80
9294 //==============================================================================
9296 extern __at(0x0F4F) __sfr CCPR2;
9297 extern __at(0x0F4F) __sfr CCPR2L;
9298 extern __at(0x0F50) __sfr CCPR2H;
9300 //==============================================================================
9301 // ECCP2DEL Bits
9303 extern __at(0x0F51) __sfr ECCP2DEL;
9305 typedef union
9307 struct
9309 unsigned P2DC0 : 1;
9310 unsigned P2DC1 : 1;
9311 unsigned P2DC2 : 1;
9312 unsigned P2DC3 : 1;
9313 unsigned P2DC4 : 1;
9314 unsigned P2DC5 : 1;
9315 unsigned P2DC6 : 1;
9316 unsigned P2RSEN : 1;
9319 struct
9321 unsigned P2DC : 7;
9322 unsigned : 1;
9324 } __ECCP2DELbits_t;
9326 extern __at(0x0F51) volatile __ECCP2DELbits_t ECCP2DELbits;
9328 #define _P2DC0 0x01
9329 #define _P2DC1 0x02
9330 #define _P2DC2 0x04
9331 #define _P2DC3 0x08
9332 #define _P2DC4 0x10
9333 #define _P2DC5 0x20
9334 #define _P2DC6 0x40
9335 #define _P2RSEN 0x80
9337 //==============================================================================
9340 //==============================================================================
9341 // ECCP2AS Bits
9343 extern __at(0x0F52) __sfr ECCP2AS;
9345 typedef union
9347 struct
9349 unsigned PSS2BD0 : 1;
9350 unsigned PSS2BD1 : 1;
9351 unsigned PSS2AC0 : 1;
9352 unsigned PSS2AC1 : 1;
9353 unsigned ECCP2AS0 : 1;
9354 unsigned ECCP2AS1 : 1;
9355 unsigned ECCP2AS2 : 1;
9356 unsigned ECCP2ASE : 1;
9359 struct
9361 unsigned PSS2BD : 2;
9362 unsigned : 6;
9365 struct
9367 unsigned : 2;
9368 unsigned PSS2AC : 2;
9369 unsigned : 4;
9372 struct
9374 unsigned : 4;
9375 unsigned ECCP2AS : 3;
9376 unsigned : 1;
9378 } __ECCP2ASbits_t;
9380 extern __at(0x0F52) volatile __ECCP2ASbits_t ECCP2ASbits;
9382 #define _PSS2BD0 0x01
9383 #define _PSS2BD1 0x02
9384 #define _PSS2AC0 0x04
9385 #define _PSS2AC1 0x08
9386 #define _ECCP2AS0 0x10
9387 #define _ECCP2AS1 0x20
9388 #define _ECCP2AS2 0x40
9389 #define _ECCP2ASE 0x80
9391 //==============================================================================
9394 //==============================================================================
9395 // CM1CON Bits
9397 extern __at(0x0F53) __sfr CM1CON;
9399 typedef union
9401 struct
9403 unsigned CCH0 : 1;
9404 unsigned CCH1 : 1;
9405 unsigned CREF : 1;
9406 unsigned EVPOL0 : 1;
9407 unsigned EVPOL1 : 1;
9408 unsigned CPOL : 1;
9409 unsigned COE : 1;
9410 unsigned CON : 1;
9413 struct
9415 unsigned CCH : 2;
9416 unsigned : 6;
9419 struct
9421 unsigned : 3;
9422 unsigned EVPOL : 2;
9423 unsigned : 3;
9425 } __CM1CONbits_t;
9427 extern __at(0x0F53) volatile __CM1CONbits_t CM1CONbits;
9429 #define _CCH0 0x01
9430 #define _CCH1 0x02
9431 #define _CREF 0x04
9432 #define _EVPOL0 0x08
9433 #define _EVPOL1 0x10
9434 #define _CPOL 0x20
9435 #define _COE 0x40
9436 #define _CON 0x80
9438 //==============================================================================
9441 //==============================================================================
9442 // PADCFG1 Bits
9444 extern __at(0x0F54) __sfr PADCFG1;
9446 typedef struct
9448 unsigned RLPU : 1;
9449 unsigned RKPU : 1;
9450 unsigned RJPU : 1;
9451 unsigned RHPU : 1;
9452 unsigned RGPU : 1;
9453 unsigned RFPU : 1;
9454 unsigned REPU : 1;
9455 unsigned RDPU : 1;
9456 } __PADCFG1bits_t;
9458 extern __at(0x0F54) volatile __PADCFG1bits_t PADCFG1bits;
9460 #define _RLPU 0x01
9461 #define _RKPU 0x02
9462 #define _RJPU 0x04
9463 #define _RHPU 0x08
9464 #define _RGPU 0x10
9465 #define _RFPU 0x20
9466 #define _REPU 0x40
9467 #define _RDPU 0x80
9469 //==============================================================================
9472 //==============================================================================
9473 // IOCN Bits
9475 extern __at(0x0F55) __sfr IOCN;
9477 typedef struct
9479 unsigned IOCN0 : 1;
9480 unsigned IOCN1 : 1;
9481 unsigned IOCN2 : 1;
9482 unsigned IOCN3 : 1;
9483 unsigned IOCN4 : 1;
9484 unsigned IOCN5 : 1;
9485 unsigned IOCN6 : 1;
9486 unsigned IOCN7 : 1;
9487 } __IOCNbits_t;
9489 extern __at(0x0F55) volatile __IOCNbits_t IOCNbits;
9491 #define _IOCN0 0x01
9492 #define _IOCN1 0x02
9493 #define _IOCN2 0x04
9494 #define _IOCN3 0x08
9495 #define _IOCN4 0x10
9496 #define _IOCN5 0x20
9497 #define _IOCN6 0x40
9498 #define _IOCN7 0x80
9500 //==============================================================================
9503 //==============================================================================
9504 // IOCP Bits
9506 extern __at(0x0F56) __sfr IOCP;
9508 typedef struct
9510 unsigned IOCP0 : 1;
9511 unsigned IOCP1 : 1;
9512 unsigned IOCP2 : 1;
9513 unsigned IOCP3 : 1;
9514 unsigned IOCP4 : 1;
9515 unsigned IOCP5 : 1;
9516 unsigned IOCP6 : 1;
9517 unsigned IOCP7 : 1;
9518 } __IOCPbits_t;
9520 extern __at(0x0F56) volatile __IOCPbits_t IOCPbits;
9522 #define _IOCP0 0x01
9523 #define _IOCP1 0x02
9524 #define _IOCP2 0x04
9525 #define _IOCP3 0x08
9526 #define _IOCP4 0x10
9527 #define _IOCP5 0x20
9528 #define _IOCP6 0x40
9529 #define _IOCP7 0x80
9531 //==============================================================================
9534 //==============================================================================
9535 // RTCCON2 Bits
9537 extern __at(0x0F57) __sfr RTCCON2;
9539 typedef union
9541 struct
9543 unsigned RTCSECSEL0 : 1;
9544 unsigned RTCSECSEL1 : 1;
9545 unsigned RTCCLKSEL0 : 1;
9546 unsigned RTCCLKSEL1 : 1;
9547 unsigned PWCSPRE : 1;
9548 unsigned PWCCPRE : 1;
9549 unsigned PWCPOL : 1;
9550 unsigned PWCEN : 1;
9553 struct
9555 unsigned RTCSECSEL : 2;
9556 unsigned : 6;
9559 struct
9561 unsigned : 2;
9562 unsigned RTCCLKSEL : 2;
9563 unsigned : 4;
9565 } __RTCCON2bits_t;
9567 extern __at(0x0F57) volatile __RTCCON2bits_t RTCCON2bits;
9569 #define _RTCSECSEL0 0x01
9570 #define _RTCSECSEL1 0x02
9571 #define _RTCCLKSEL0 0x04
9572 #define _RTCCLKSEL1 0x08
9573 #define _PWCSPRE 0x10
9574 #define _PWCCPRE 0x20
9575 #define _PWCPOL 0x40
9576 #define _PWCEN 0x80
9578 //==============================================================================
9580 extern __at(0x0F58) __sfr ALRMVALL;
9581 extern __at(0x0F59) __sfr ALRMVALH;
9583 //==============================================================================
9584 // ALRMRPT Bits
9586 extern __at(0x0F5A) __sfr ALRMRPT;
9588 typedef struct
9590 unsigned ARPT0 : 1;
9591 unsigned ARPT1 : 1;
9592 unsigned ARPT2 : 1;
9593 unsigned ARPT3 : 1;
9594 unsigned ARPT4 : 1;
9595 unsigned ARPT5 : 1;
9596 unsigned ARPT6 : 1;
9597 unsigned ARPT7 : 1;
9598 } __ALRMRPTbits_t;
9600 extern __at(0x0F5A) volatile __ALRMRPTbits_t ALRMRPTbits;
9602 #define _ARPT0 0x01
9603 #define _ARPT1 0x02
9604 #define _ARPT2 0x04
9605 #define _ARPT3 0x08
9606 #define _ARPT4 0x10
9607 #define _ARPT5 0x20
9608 #define _ARPT6 0x40
9609 #define _ARPT7 0x80
9611 //==============================================================================
9614 //==============================================================================
9615 // ALRMCFG Bits
9617 extern __at(0x0F5B) __sfr ALRMCFG;
9619 typedef union
9621 struct
9623 unsigned ALRMPTR0 : 1;
9624 unsigned ALRMPTR1 : 1;
9625 unsigned AMASK0 : 1;
9626 unsigned AMASK1 : 1;
9627 unsigned AMASK2 : 1;
9628 unsigned AMASK3 : 1;
9629 unsigned CHIME : 1;
9630 unsigned ALRMEN : 1;
9633 struct
9635 unsigned ALRMPTR : 2;
9636 unsigned : 6;
9639 struct
9641 unsigned : 2;
9642 unsigned AMASK : 4;
9643 unsigned : 2;
9645 } __ALRMCFGbits_t;
9647 extern __at(0x0F5B) volatile __ALRMCFGbits_t ALRMCFGbits;
9649 #define _ALRMPTR0 0x01
9650 #define _ALRMPTR1 0x02
9651 #define _AMASK0 0x04
9652 #define _AMASK1 0x08
9653 #define _AMASK2 0x10
9654 #define _AMASK3 0x20
9655 #define _CHIME 0x40
9656 #define _ALRMEN 0x80
9658 //==============================================================================
9660 extern __at(0x0F5C) __sfr RTCVALL;
9661 extern __at(0x0F5D) __sfr RTCVALH;
9663 //==============================================================================
9664 // RTCCAL Bits
9666 extern __at(0x0F5E) __sfr RTCCAL;
9668 typedef struct
9670 unsigned CAL0 : 1;
9671 unsigned CAL1 : 1;
9672 unsigned CAL2 : 1;
9673 unsigned CAL3 : 1;
9674 unsigned CAL4 : 1;
9675 unsigned CAL5 : 1;
9676 unsigned CAL6 : 1;
9677 unsigned CAL7 : 1;
9678 } __RTCCALbits_t;
9680 extern __at(0x0F5E) volatile __RTCCALbits_t RTCCALbits;
9682 #define _CAL0 0x01
9683 #define _CAL1 0x02
9684 #define _CAL2 0x04
9685 #define _CAL3 0x08
9686 #define _CAL4 0x10
9687 #define _CAL5 0x20
9688 #define _CAL6 0x40
9689 #define _CAL7 0x80
9691 //==============================================================================
9694 //==============================================================================
9695 // RTCCON1 Bits
9697 extern __at(0x0F5F) __sfr RTCCON1;
9699 typedef union
9701 struct
9703 unsigned RTCPTR0 : 1;
9704 unsigned RTCPTR1 : 1;
9705 unsigned RTCOE : 1;
9706 unsigned HALFSEC : 1;
9707 unsigned RTCSYNC : 1;
9708 unsigned RTCWREN : 1;
9709 unsigned : 1;
9710 unsigned RTCEN : 1;
9713 struct
9715 unsigned RTCPTR : 2;
9716 unsigned : 6;
9718 } __RTCCON1bits_t;
9720 extern __at(0x0F5F) volatile __RTCCON1bits_t RTCCON1bits;
9722 #define _RTCPTR0 0x01
9723 #define _RTCPTR1 0x02
9724 #define _RTCOE 0x04
9725 #define _HALFSEC 0x08
9726 #define _RTCSYNC 0x10
9727 #define _RTCWREN 0x20
9728 #define _RTCEN 0x80
9730 //==============================================================================
9733 //==============================================================================
9734 // DMACON1 Bits
9736 extern __at(0x0F60) __sfr DMACON1;
9738 typedef union
9740 struct
9742 unsigned DMAEN : 1;
9743 unsigned DLYINTEN : 1;
9744 unsigned DUPLEX0 : 1;
9745 unsigned DUPLEX1 : 1;
9746 unsigned RXINC : 1;
9747 unsigned TXINC : 1;
9748 unsigned SSCON0 : 1;
9749 unsigned SSCON1 : 1;
9752 struct
9754 unsigned : 2;
9755 unsigned DUPLEX : 2;
9756 unsigned : 4;
9759 struct
9761 unsigned : 6;
9762 unsigned SSCON : 2;
9764 } __DMACON1bits_t;
9766 extern __at(0x0F60) volatile __DMACON1bits_t DMACON1bits;
9768 #define _DMAEN 0x01
9769 #define _DLYINTEN 0x02
9770 #define _DUPLEX0 0x04
9771 #define _DUPLEX1 0x08
9772 #define _RXINC 0x10
9773 #define _TXINC 0x20
9774 #define _SSCON0 0x40
9775 #define _SSCON1 0x80
9777 //==============================================================================
9780 //==============================================================================
9781 // PIE6 Bits
9783 extern __at(0x0F61) __sfr PIE6;
9785 typedef struct
9787 unsigned CMP1IE : 1;
9788 unsigned CMP2IE : 1;
9789 unsigned CMP3IE : 1;
9790 unsigned : 1;
9791 unsigned TX3IE : 1;
9792 unsigned RC3IE : 1;
9793 unsigned TX4IE : 1;
9794 unsigned RC4IE : 1;
9795 } __PIE6bits_t;
9797 extern __at(0x0F61) volatile __PIE6bits_t PIE6bits;
9799 #define _CMP1IE 0x01
9800 #define _CMP2IE 0x02
9801 #define _CMP3IE 0x04
9802 #define _TX3IE 0x10
9803 #define _RC3IE 0x20
9804 #define _TX4IE 0x40
9805 #define _RC4IE 0x80
9807 //==============================================================================
9810 //==============================================================================
9811 // WPUB Bits
9813 extern __at(0x0F62) __sfr WPUB;
9815 typedef struct
9817 unsigned WPUB0 : 1;
9818 unsigned WPUB1 : 1;
9819 unsigned WPUB2 : 1;
9820 unsigned WPUB3 : 1;
9821 unsigned WPUB4 : 1;
9822 unsigned WPUB5 : 1;
9823 unsigned WPUB6 : 1;
9824 unsigned WPUB7 : 1;
9825 } __WPUBbits_t;
9827 extern __at(0x0F62) volatile __WPUBbits_t WPUBbits;
9829 #define _WPUB0 0x01
9830 #define _WPUB1 0x02
9831 #define _WPUB2 0x04
9832 #define _WPUB3 0x08
9833 #define _WPUB4 0x10
9834 #define _WPUB5 0x20
9835 #define _WPUB6 0x40
9836 #define _WPUB7 0x80
9838 //==============================================================================
9841 //==============================================================================
9842 // ACTCON Bits
9844 extern __at(0x0F63) __sfr ACTCON;
9846 typedef struct
9848 unsigned ACTORSPOL : 1;
9849 unsigned ACTORS : 1;
9850 unsigned ACTLOCKPOL : 1;
9851 unsigned ACTLOCK : 1;
9852 unsigned ACTSRC : 1;
9853 unsigned ACTSIDL : 1;
9854 unsigned : 1;
9855 unsigned ACTEN : 1;
9856 } __ACTCONbits_t;
9858 extern __at(0x0F63) volatile __ACTCONbits_t ACTCONbits;
9860 #define _ACTORSPOL 0x01
9861 #define _ACTORS 0x02
9862 #define _ACTLOCKPOL 0x04
9863 #define _ACTLOCK 0x08
9864 #define _ACTSRC 0x10
9865 #define _ACTSIDL 0x20
9866 #define _ACTEN 0x80
9868 //==============================================================================
9871 //==============================================================================
9872 // OSCCON4 Bits
9874 extern __at(0x0F64) __sfr OSCCON4;
9876 typedef union
9878 struct
9880 unsigned : 1;
9881 unsigned : 1;
9882 unsigned : 1;
9883 unsigned : 1;
9884 unsigned : 1;
9885 unsigned PLLEN : 1;
9886 unsigned CPDIV0 : 1;
9887 unsigned CPDIV1 : 1;
9890 struct
9892 unsigned : 6;
9893 unsigned CPDIV : 2;
9895 } __OSCCON4bits_t;
9897 extern __at(0x0F64) volatile __OSCCON4bits_t OSCCON4bits;
9899 #define _PLLEN 0x20
9900 #define _CPDIV0 0x40
9901 #define _CPDIV1 0x80
9903 //==============================================================================
9906 //==============================================================================
9907 // OSCCON3 Bits
9909 extern __at(0x0F65) __sfr OSCCON3;
9911 typedef union
9913 struct
9915 unsigned IRCF0 : 1;
9916 unsigned IRCF1 : 1;
9917 unsigned IRCF2 : 1;
9918 unsigned : 1;
9919 unsigned : 1;
9920 unsigned : 1;
9921 unsigned : 1;
9922 unsigned : 1;
9925 struct
9927 unsigned IRCF : 3;
9928 unsigned : 5;
9930 } __OSCCON3bits_t;
9932 extern __at(0x0F65) volatile __OSCCON3bits_t OSCCON3bits;
9934 #define _IRCF0 0x01
9935 #define _IRCF1 0x02
9936 #define _IRCF2 0x04
9938 //==============================================================================
9941 //==============================================================================
9942 // OSCCON2 Bits
9944 extern __at(0x0F66) __sfr OSCCON2;
9946 typedef struct
9948 unsigned : 1;
9949 unsigned SOSCGO : 1;
9950 unsigned POSCEN : 1;
9951 unsigned CF : 1;
9952 unsigned : 1;
9953 unsigned LOCK : 1;
9954 unsigned IOLOCK : 1;
9955 unsigned CLKLOCK : 1;
9956 } __OSCCON2bits_t;
9958 extern __at(0x0F66) volatile __OSCCON2bits_t OSCCON2bits;
9960 #define _SOSCGO 0x02
9961 #define _POSCEN 0x04
9962 #define _CF 0x08
9963 #define _LOCK 0x20
9964 #define _IOLOCK 0x40
9965 #define _CLKLOCK 0x80
9967 //==============================================================================
9970 //==============================================================================
9971 // BAUDCON Bits
9973 extern __at(0x0F67) __sfr BAUDCON;
9975 typedef union
9977 struct
9979 unsigned ABDEN : 1;
9980 unsigned WUE : 1;
9981 unsigned IREN : 1;
9982 unsigned BRG16 : 1;
9983 unsigned TXCKP : 1;
9984 unsigned RXDTP : 1;
9985 unsigned RCIDL : 1;
9986 unsigned ABDOVF : 1;
9989 struct
9991 unsigned : 1;
9992 unsigned : 1;
9993 unsigned : 1;
9994 unsigned : 1;
9995 unsigned CKTXP : 1;
9996 unsigned DTRXP : 1;
9997 unsigned RCMT : 1;
9998 unsigned : 1;
10001 struct
10003 unsigned : 1;
10004 unsigned : 1;
10005 unsigned : 1;
10006 unsigned : 1;
10007 unsigned SCKP : 1;
10008 unsigned : 1;
10009 unsigned : 1;
10010 unsigned : 1;
10012 } __BAUDCONbits_t;
10014 extern __at(0x0F67) volatile __BAUDCONbits_t BAUDCONbits;
10016 #define _ABDEN 0x01
10017 #define _WUE 0x02
10018 #define _IREN 0x04
10019 #define _BRG16 0x08
10020 #define _TXCKP 0x10
10021 #define _CKTXP 0x10
10022 #define _SCKP 0x10
10023 #define _RXDTP 0x20
10024 #define _DTRXP 0x20
10025 #define _RCIDL 0x40
10026 #define _RCMT 0x40
10027 #define _ABDOVF 0x80
10029 //==============================================================================
10032 //==============================================================================
10033 // BAUDCON1 Bits
10035 extern __at(0x0F67) __sfr BAUDCON1;
10037 typedef union
10039 struct
10041 unsigned ABDEN : 1;
10042 unsigned WUE : 1;
10043 unsigned IREN : 1;
10044 unsigned BRG16 : 1;
10045 unsigned TXCKP : 1;
10046 unsigned RXDTP : 1;
10047 unsigned RCIDL : 1;
10048 unsigned ABDOVF : 1;
10051 struct
10053 unsigned : 1;
10054 unsigned : 1;
10055 unsigned : 1;
10056 unsigned : 1;
10057 unsigned CKTXP : 1;
10058 unsigned DTRXP : 1;
10059 unsigned RCMT : 1;
10060 unsigned : 1;
10063 struct
10065 unsigned : 1;
10066 unsigned : 1;
10067 unsigned : 1;
10068 unsigned : 1;
10069 unsigned SCKP : 1;
10070 unsigned : 1;
10071 unsigned : 1;
10072 unsigned : 1;
10074 } __BAUDCON1bits_t;
10076 extern __at(0x0F67) volatile __BAUDCON1bits_t BAUDCON1bits;
10078 #define _BAUDCON1_ABDEN 0x01
10079 #define _BAUDCON1_WUE 0x02
10080 #define _BAUDCON1_IREN 0x04
10081 #define _BAUDCON1_BRG16 0x08
10082 #define _BAUDCON1_TXCKP 0x10
10083 #define _BAUDCON1_CKTXP 0x10
10084 #define _BAUDCON1_SCKP 0x10
10085 #define _BAUDCON1_RXDTP 0x20
10086 #define _BAUDCON1_DTRXP 0x20
10087 #define _BAUDCON1_RCIDL 0x40
10088 #define _BAUDCON1_RCMT 0x40
10089 #define _BAUDCON1_ABDOVF 0x80
10091 //==============================================================================
10094 //==============================================================================
10095 // SSP1MSK Bits
10097 extern __at(0x0F68) __sfr SSP1MSK;
10099 typedef struct
10101 unsigned MSK0 : 1;
10102 unsigned MSK1 : 1;
10103 unsigned MSK2 : 1;
10104 unsigned MSK3 : 1;
10105 unsigned MSK4 : 1;
10106 unsigned MSK5 : 1;
10107 unsigned MSK6 : 1;
10108 unsigned MSK7 : 1;
10109 } __SSP1MSKbits_t;
10111 extern __at(0x0F68) volatile __SSP1MSKbits_t SSP1MSKbits;
10113 #define _MSK0 0x01
10114 #define _MSK1 0x02
10115 #define _MSK2 0x04
10116 #define _MSK3 0x08
10117 #define _MSK4 0x10
10118 #define _MSK5 0x20
10119 #define _MSK6 0x40
10120 #define _MSK7 0x80
10122 //==============================================================================
10125 //==============================================================================
10126 // SSP1CON3 Bits
10128 extern __at(0x0F69) __sfr SSP1CON3;
10130 typedef struct
10132 unsigned DHEN : 1;
10133 unsigned AHEN : 1;
10134 unsigned SBCDE : 1;
10135 unsigned SDAHT : 1;
10136 unsigned BOEN : 1;
10137 unsigned SCIE : 1;
10138 unsigned PCIE : 1;
10139 unsigned ACKTIM : 1;
10140 } __SSP1CON3bits_t;
10142 extern __at(0x0F69) volatile __SSP1CON3bits_t SSP1CON3bits;
10144 #define _DHEN 0x01
10145 #define _AHEN 0x02
10146 #define _SBCDE 0x04
10147 #define _SDAHT 0x08
10148 #define _BOEN 0x10
10149 #define _SCIE 0x20
10150 #define _PCIE 0x40
10151 #define _ACKTIM 0x80
10153 //==============================================================================
10156 //==============================================================================
10157 // TXBUF Bits
10159 extern __at(0x0F6A) __sfr TXBUF;
10161 typedef struct
10163 unsigned TXBUF0 : 1;
10164 unsigned TXBUF1 : 1;
10165 unsigned TXBUF2 : 1;
10166 unsigned TXBUF3 : 1;
10167 unsigned TXBUF4 : 1;
10168 unsigned TXBUF5 : 1;
10169 unsigned TXBUF6 : 1;
10170 unsigned TXBUF7 : 1;
10171 } __TXBUFbits_t;
10173 extern __at(0x0F6A) volatile __TXBUFbits_t TXBUFbits;
10175 #define _TXBUF0 0x01
10176 #define _TXBUF1 0x02
10177 #define _TXBUF2 0x04
10178 #define _TXBUF3 0x08
10179 #define _TXBUF4 0x10
10180 #define _TXBUF5 0x20
10181 #define _TXBUF6 0x40
10182 #define _TXBUF7 0x80
10184 //==============================================================================
10187 //==============================================================================
10188 // DMABCH Bits
10190 extern __at(0x0F6B) __sfr DMABCH;
10192 typedef struct
10194 unsigned BC8 : 1;
10195 unsigned BC9 : 1;
10196 unsigned : 1;
10197 unsigned : 1;
10198 unsigned : 1;
10199 unsigned : 1;
10200 unsigned : 1;
10201 unsigned : 1;
10202 } __DMABCHbits_t;
10204 extern __at(0x0F6B) volatile __DMABCHbits_t DMABCHbits;
10206 #define _BC8 0x01
10207 #define _BC9 0x02
10209 //==============================================================================
10212 //==============================================================================
10213 // DMABCL Bits
10215 extern __at(0x0F6C) __sfr DMABCL;
10217 typedef struct
10219 unsigned BC0 : 1;
10220 unsigned BC1 : 1;
10221 unsigned BC2 : 1;
10222 unsigned BC3 : 1;
10223 unsigned BC4 : 1;
10224 unsigned BC5 : 1;
10225 unsigned BC6 : 1;
10226 unsigned BC7 : 1;
10227 } __DMABCLbits_t;
10229 extern __at(0x0F6C) volatile __DMABCLbits_t DMABCLbits;
10231 #define _BC0 0x01
10232 #define _BC1 0x02
10233 #define _BC2 0x04
10234 #define _BC3 0x08
10235 #define _BC4 0x10
10236 #define _BC5 0x20
10237 #define _BC6 0x40
10238 #define _BC7 0x80
10240 //==============================================================================
10243 //==============================================================================
10244 // RXADDRH Bits
10246 extern __at(0x0F6D) __sfr RXADDRH;
10248 typedef struct
10250 unsigned RXADDR8 : 1;
10251 unsigned RXADDR9 : 1;
10252 unsigned RXADDR10 : 1;
10253 unsigned RXADDR11 : 1;
10254 unsigned : 1;
10255 unsigned : 1;
10256 unsigned : 1;
10257 unsigned : 1;
10258 } __RXADDRHbits_t;
10260 extern __at(0x0F6D) volatile __RXADDRHbits_t RXADDRHbits;
10262 #define _RXADDR8 0x01
10263 #define _RXADDR9 0x02
10264 #define _RXADDR10 0x04
10265 #define _RXADDR11 0x08
10267 //==============================================================================
10270 //==============================================================================
10271 // RXADDRL Bits
10273 extern __at(0x0F6E) __sfr RXADDRL;
10275 typedef struct
10277 unsigned RXADDR0 : 1;
10278 unsigned RXADDR1 : 1;
10279 unsigned RXADDR2 : 1;
10280 unsigned RXADDR3 : 1;
10281 unsigned RXADDR4 : 1;
10282 unsigned RXADDR5 : 1;
10283 unsigned RXADDR6 : 1;
10284 unsigned RXADDR7 : 1;
10285 } __RXADDRLbits_t;
10287 extern __at(0x0F6E) volatile __RXADDRLbits_t RXADDRLbits;
10289 #define _RXADDR0 0x01
10290 #define _RXADDR1 0x02
10291 #define _RXADDR2 0x04
10292 #define _RXADDR3 0x08
10293 #define _RXADDR4 0x10
10294 #define _RXADDR5 0x20
10295 #define _RXADDR6 0x40
10296 #define _RXADDR7 0x80
10298 //==============================================================================
10301 //==============================================================================
10302 // TXADDRH Bits
10304 extern __at(0x0F6F) __sfr TXADDRH;
10306 typedef struct
10308 unsigned TXADDR8 : 1;
10309 unsigned TXADDR9 : 1;
10310 unsigned TXADDR10 : 1;
10311 unsigned TXADDR11 : 1;
10312 unsigned : 1;
10313 unsigned : 1;
10314 unsigned : 1;
10315 unsigned : 1;
10316 } __TXADDRHbits_t;
10318 extern __at(0x0F6F) volatile __TXADDRHbits_t TXADDRHbits;
10320 #define _TXADDR8 0x01
10321 #define _TXADDR9 0x02
10322 #define _TXADDR10 0x04
10323 #define _TXADDR11 0x08
10325 //==============================================================================
10328 //==============================================================================
10329 // TXADDRL Bits
10331 extern __at(0x0F70) __sfr TXADDRL;
10333 typedef struct
10335 unsigned TXADDR0 : 1;
10336 unsigned TXADDR1 : 1;
10337 unsigned TXADDR2 : 1;
10338 unsigned TXADDR3 : 1;
10339 unsigned TXADDR4 : 1;
10340 unsigned TXADDR5 : 1;
10341 unsigned TXADDR6 : 1;
10342 unsigned TXADDR7 : 1;
10343 } __TXADDRLbits_t;
10345 extern __at(0x0F70) volatile __TXADDRLbits_t TXADDRLbits;
10347 #define _TXADDR0 0x01
10348 #define _TXADDR1 0x02
10349 #define _TXADDR2 0x04
10350 #define _TXADDR3 0x08
10351 #define _TXADDR4 0x10
10352 #define _TXADDR5 0x20
10353 #define _TXADDR6 0x40
10354 #define _TXADDR7 0x80
10356 //==============================================================================
10359 //==============================================================================
10360 // PORTVP Bits
10362 extern __at(0x0F71) __sfr PORTVP;
10364 typedef struct
10366 unsigned RVP0 : 1;
10367 unsigned RVP1 : 1;
10368 unsigned RVP2 : 1;
10369 unsigned RVP3 : 1;
10370 unsigned RVP4 : 1;
10371 unsigned RVP5 : 1;
10372 unsigned RVP6 : 1;
10373 unsigned RVP7 : 1;
10374 } __PORTVPbits_t;
10376 extern __at(0x0F71) volatile __PORTVPbits_t PORTVPbits;
10378 #define _RVP0 0x01
10379 #define _RVP1 0x02
10380 #define _RVP2 0x04
10381 #define _RVP3 0x08
10382 #define _RVP4 0x10
10383 #define _RVP5 0x20
10384 #define _RVP6 0x40
10385 #define _RVP7 0x80
10387 //==============================================================================
10390 //==============================================================================
10391 // LATVP Bits
10393 extern __at(0x0F72) __sfr LATVP;
10395 typedef struct
10397 unsigned LATVP0 : 1;
10398 unsigned LATVP1 : 1;
10399 unsigned LATVP2 : 1;
10400 unsigned LATVP3 : 1;
10401 unsigned LATVP4 : 1;
10402 unsigned LATVP5 : 1;
10403 unsigned LATVP6 : 1;
10404 unsigned LATVP7 : 1;
10405 } __LATVPbits_t;
10407 extern __at(0x0F72) volatile __LATVPbits_t LATVPbits;
10409 #define _LATVP0 0x01
10410 #define _LATVP1 0x02
10411 #define _LATVP2 0x04
10412 #define _LATVP3 0x08
10413 #define _LATVP4 0x10
10414 #define _LATVP5 0x20
10415 #define _LATVP6 0x40
10416 #define _LATVP7 0x80
10418 //==============================================================================
10421 //==============================================================================
10422 // TRISVP Bits
10424 extern __at(0x0F73) __sfr TRISVP;
10426 typedef struct
10428 unsigned TRISVP0 : 1;
10429 unsigned TRISVP1 : 1;
10430 unsigned TRISVP2 : 1;
10431 unsigned TRISVP3 : 1;
10432 unsigned TRISVP4 : 1;
10433 unsigned TRISVP5 : 1;
10434 unsigned TRISVP6 : 1;
10435 unsigned TRISVP7 : 1;
10436 } __TRISVPbits_t;
10438 extern __at(0x0F73) volatile __TRISVPbits_t TRISVPbits;
10440 #define _TRISVP0 0x01
10441 #define _TRISVP1 0x02
10442 #define _TRISVP2 0x04
10443 #define _TRISVP3 0x08
10444 #define _TRISVP4 0x10
10445 #define _TRISVP5 0x20
10446 #define _TRISVP6 0x40
10447 #define _TRISVP7 0x80
10449 //==============================================================================
10452 //==============================================================================
10453 // UADDR Bits
10455 extern __at(0x0F74) __sfr UADDR;
10457 typedef union
10459 struct
10461 unsigned ADDR0 : 1;
10462 unsigned ADDR1 : 1;
10463 unsigned ADDR2 : 1;
10464 unsigned ADDR3 : 1;
10465 unsigned ADDR4 : 1;
10466 unsigned ADDR5 : 1;
10467 unsigned ADDR6 : 1;
10468 unsigned : 1;
10471 struct
10473 unsigned ADDR : 7;
10474 unsigned : 1;
10476 } __UADDRbits_t;
10478 extern __at(0x0F74) volatile __UADDRbits_t UADDRbits;
10480 #define _ADDR0 0x01
10481 #define _ADDR1 0x02
10482 #define _ADDR2 0x04
10483 #define _ADDR3 0x08
10484 #define _ADDR4 0x10
10485 #define _ADDR5 0x20
10486 #define _ADDR6 0x40
10488 //==============================================================================
10491 //==============================================================================
10492 // UCON Bits
10494 extern __at(0x0F75) __sfr UCON;
10496 typedef struct
10498 unsigned : 1;
10499 unsigned SUSPND : 1;
10500 unsigned RESUME : 1;
10501 unsigned USBEN : 1;
10502 unsigned PKTDIS : 1;
10503 unsigned SE0 : 1;
10504 unsigned PPBRST : 1;
10505 unsigned : 1;
10506 } __UCONbits_t;
10508 extern __at(0x0F75) volatile __UCONbits_t UCONbits;
10510 #define _SUSPND 0x02
10511 #define _RESUME 0x04
10512 #define _USBEN 0x08
10513 #define _PKTDIS 0x10
10514 #define _SE0 0x20
10515 #define _PPBRST 0x40
10517 //==============================================================================
10520 //==============================================================================
10521 // USTAT Bits
10523 extern __at(0x0F76) __sfr USTAT;
10525 typedef union
10527 struct
10529 unsigned : 1;
10530 unsigned PPBI : 1;
10531 unsigned DIR : 1;
10532 unsigned ENDP0 : 1;
10533 unsigned ENDP1 : 1;
10534 unsigned ENDP2 : 1;
10535 unsigned ENDP3 : 1;
10536 unsigned : 1;
10539 struct
10541 unsigned : 3;
10542 unsigned ENDP : 4;
10543 unsigned : 1;
10545 } __USTATbits_t;
10547 extern __at(0x0F76) volatile __USTATbits_t USTATbits;
10549 #define _PPBI 0x02
10550 #define _DIR 0x04
10551 #define _ENDP0 0x08
10552 #define _ENDP1 0x10
10553 #define _ENDP2 0x20
10554 #define _ENDP3 0x40
10556 //==============================================================================
10559 //==============================================================================
10560 // UEIR Bits
10562 extern __at(0x0F77) __sfr UEIR;
10564 typedef struct
10566 unsigned PIDEF : 1;
10567 unsigned CRC5EF : 1;
10568 unsigned CRC16EF : 1;
10569 unsigned DFN8EF : 1;
10570 unsigned BTOEF : 1;
10571 unsigned : 1;
10572 unsigned : 1;
10573 unsigned BTSEF : 1;
10574 } __UEIRbits_t;
10576 extern __at(0x0F77) volatile __UEIRbits_t UEIRbits;
10578 #define _PIDEF 0x01
10579 #define _CRC5EF 0x02
10580 #define _CRC16EF 0x04
10581 #define _DFN8EF 0x08
10582 #define _BTOEF 0x10
10583 #define _BTSEF 0x80
10585 //==============================================================================
10588 //==============================================================================
10589 // UIR Bits
10591 extern __at(0x0F78) __sfr UIR;
10593 typedef struct
10595 unsigned URSTIF : 1;
10596 unsigned UERRIF : 1;
10597 unsigned ACTVIF : 1;
10598 unsigned TRNIF : 1;
10599 unsigned IDLEIF : 1;
10600 unsigned STALLIF : 1;
10601 unsigned SOFIF : 1;
10602 unsigned : 1;
10603 } __UIRbits_t;
10605 extern __at(0x0F78) volatile __UIRbits_t UIRbits;
10607 #define _URSTIF 0x01
10608 #define _UERRIF 0x02
10609 #define _ACTVIF 0x04
10610 #define _TRNIF 0x08
10611 #define _IDLEIF 0x10
10612 #define _STALLIF 0x20
10613 #define _SOFIF 0x40
10615 //==============================================================================
10617 extern __at(0x0F79) __sfr UFRM;
10619 //==============================================================================
10620 // UFRMH Bits
10622 extern __at(0x0F79) __sfr UFRMH;
10624 typedef struct
10626 unsigned FRM8 : 1;
10627 unsigned FRM9 : 1;
10628 unsigned FRM10 : 1;
10629 unsigned : 1;
10630 unsigned : 1;
10631 unsigned : 1;
10632 unsigned : 1;
10633 unsigned : 1;
10634 } __UFRMHbits_t;
10636 extern __at(0x0F79) volatile __UFRMHbits_t UFRMHbits;
10638 #define _FRM8 0x01
10639 #define _FRM9 0x02
10640 #define _FRM10 0x04
10642 //==============================================================================
10645 //==============================================================================
10646 // UFRML Bits
10648 extern __at(0x0F7A) __sfr UFRML;
10650 typedef struct
10652 unsigned FRM0 : 1;
10653 unsigned FRM1 : 1;
10654 unsigned FRM2 : 1;
10655 unsigned FRM3 : 1;
10656 unsigned FRM4 : 1;
10657 unsigned FRM5 : 1;
10658 unsigned FRM6 : 1;
10659 unsigned FRM7 : 1;
10660 } __UFRMLbits_t;
10662 extern __at(0x0F7A) volatile __UFRMLbits_t UFRMLbits;
10664 #define _FRM0 0x01
10665 #define _FRM1 0x02
10666 #define _FRM2 0x04
10667 #define _FRM3 0x08
10668 #define _FRM4 0x10
10669 #define _FRM5 0x20
10670 #define _FRM6 0x40
10671 #define _FRM7 0x80
10673 //==============================================================================
10676 //==============================================================================
10677 // RCON4 Bits
10679 extern __at(0x0F7B) __sfr RCON4;
10681 typedef struct
10683 unsigned PMSLP : 1;
10684 unsigned : 1;
10685 unsigned DPSLP : 1;
10686 unsigned : 1;
10687 unsigned SRETEN : 1;
10688 unsigned : 1;
10689 unsigned : 1;
10690 unsigned : 1;
10691 } __RCON4bits_t;
10693 extern __at(0x0F7B) volatile __RCON4bits_t RCON4bits;
10695 #define _PMSLP 0x01
10696 #define _DPSLP 0x04
10697 #define _SRETEN 0x10
10699 //==============================================================================
10702 //==============================================================================
10703 // RCON3 Bits
10705 extern __at(0x0F7C) __sfr RCON3;
10707 typedef struct
10709 unsigned VBAT : 1;
10710 unsigned VBPOR : 1;
10711 unsigned VDDPOR : 1;
10712 unsigned VDDBOR : 1;
10713 unsigned : 1;
10714 unsigned : 1;
10715 unsigned : 1;
10716 unsigned STKERR : 1;
10717 } __RCON3bits_t;
10719 extern __at(0x0F7C) volatile __RCON3bits_t RCON3bits;
10721 #define _VBAT 0x01
10722 #define _VBPOR 0x02
10723 #define _VDDPOR 0x04
10724 #define _VDDBOR 0x08
10725 #define _STKERR 0x80
10727 //==============================================================================
10730 //==============================================================================
10731 // RCON2 Bits
10733 extern __at(0x0F7D) __sfr RCON2;
10735 typedef struct
10737 unsigned : 1;
10738 unsigned : 1;
10739 unsigned : 1;
10740 unsigned : 1;
10741 unsigned : 1;
10742 unsigned SWDTEN : 1;
10743 unsigned : 1;
10744 unsigned EXTR : 1;
10745 } __RCON2bits_t;
10747 extern __at(0x0F7D) volatile __RCON2bits_t RCON2bits;
10749 #define _SWDTEN 0x20
10750 #define _EXTR 0x80
10752 //==============================================================================
10754 extern __at(0x0F7E) __sfr EECON2;
10756 //==============================================================================
10757 // EECON1 Bits
10759 extern __at(0x0F7F) __sfr EECON1;
10761 typedef struct
10763 unsigned : 1;
10764 unsigned WR : 1;
10765 unsigned WREN : 1;
10766 unsigned WRERR : 1;
10767 unsigned FREE : 1;
10768 unsigned WWPROG : 1;
10769 unsigned : 1;
10770 unsigned : 1;
10771 } __EECON1bits_t;
10773 extern __at(0x0F7F) volatile __EECON1bits_t EECON1bits;
10775 #define _WR 0x02
10776 #define _WREN 0x04
10777 #define _WRERR 0x08
10778 #define _FREE 0x10
10779 #define _WWPROG 0x20
10781 //==============================================================================
10784 //==============================================================================
10785 // PORTA Bits
10787 extern __at(0x0F80) __sfr PORTA;
10789 typedef struct
10791 unsigned RA0 : 1;
10792 unsigned RA1 : 1;
10793 unsigned RA2 : 1;
10794 unsigned RA3 : 1;
10795 unsigned RA4 : 1;
10796 unsigned RA5 : 1;
10797 unsigned RA6 : 1;
10798 unsigned RA7 : 1;
10799 } __PORTAbits_t;
10801 extern __at(0x0F80) volatile __PORTAbits_t PORTAbits;
10803 #define _RA0 0x01
10804 #define _RA1 0x02
10805 #define _RA2 0x04
10806 #define _RA3 0x08
10807 #define _RA4 0x10
10808 #define _RA5 0x20
10809 #define _RA6 0x40
10810 #define _RA7 0x80
10812 //==============================================================================
10815 //==============================================================================
10816 // PORTB Bits
10818 extern __at(0x0F81) __sfr PORTB;
10820 typedef struct
10822 unsigned RB0 : 1;
10823 unsigned RB1 : 1;
10824 unsigned RB2 : 1;
10825 unsigned RB3 : 1;
10826 unsigned RB4 : 1;
10827 unsigned RB5 : 1;
10828 unsigned RB6 : 1;
10829 unsigned RB7 : 1;
10830 } __PORTBbits_t;
10832 extern __at(0x0F81) volatile __PORTBbits_t PORTBbits;
10834 #define _RB0 0x01
10835 #define _RB1 0x02
10836 #define _RB2 0x04
10837 #define _RB3 0x08
10838 #define _RB4 0x10
10839 #define _RB5 0x20
10840 #define _RB6 0x40
10841 #define _RB7 0x80
10843 //==============================================================================
10846 //==============================================================================
10847 // PORTC Bits
10849 extern __at(0x0F82) __sfr PORTC;
10851 typedef struct
10853 unsigned RC0 : 1;
10854 unsigned RC1 : 1;
10855 unsigned RC2 : 1;
10856 unsigned RC3 : 1;
10857 unsigned RC4 : 1;
10858 unsigned RC5 : 1;
10859 unsigned RC6 : 1;
10860 unsigned RC7 : 1;
10861 } __PORTCbits_t;
10863 extern __at(0x0F82) volatile __PORTCbits_t PORTCbits;
10865 #define _RC0 0x01
10866 #define _RC1 0x02
10867 #define _RC2 0x04
10868 #define _RC3 0x08
10869 #define _RC4 0x10
10870 #define _RC5 0x20
10871 #define _RC6 0x40
10872 #define _RC7 0x80
10874 //==============================================================================
10877 //==============================================================================
10878 // PORTD Bits
10880 extern __at(0x0F83) __sfr PORTD;
10882 typedef struct
10884 unsigned RD0 : 1;
10885 unsigned RD1 : 1;
10886 unsigned RD2 : 1;
10887 unsigned RD3 : 1;
10888 unsigned RD4 : 1;
10889 unsigned RD5 : 1;
10890 unsigned RD6 : 1;
10891 unsigned RD7 : 1;
10892 } __PORTDbits_t;
10894 extern __at(0x0F83) volatile __PORTDbits_t PORTDbits;
10896 #define _RD0 0x01
10897 #define _RD1 0x02
10898 #define _RD2 0x04
10899 #define _RD3 0x08
10900 #define _RD4 0x10
10901 #define _RD5 0x20
10902 #define _RD6 0x40
10903 #define _RD7 0x80
10905 //==============================================================================
10908 //==============================================================================
10909 // PORTE Bits
10911 extern __at(0x0F84) __sfr PORTE;
10913 typedef struct
10915 unsigned RE0 : 1;
10916 unsigned RE1 : 1;
10917 unsigned RE2 : 1;
10918 unsigned RE3 : 1;
10919 unsigned RE4 : 1;
10920 unsigned RE5 : 1;
10921 unsigned RE6 : 1;
10922 unsigned RE7 : 1;
10923 } __PORTEbits_t;
10925 extern __at(0x0F84) volatile __PORTEbits_t PORTEbits;
10927 #define _RE0 0x01
10928 #define _RE1 0x02
10929 #define _RE2 0x04
10930 #define _RE3 0x08
10931 #define _RE4 0x10
10932 #define _RE5 0x20
10933 #define _RE6 0x40
10934 #define _RE7 0x80
10936 //==============================================================================
10939 //==============================================================================
10940 // PORTF Bits
10942 extern __at(0x0F85) __sfr PORTF;
10944 typedef struct
10946 unsigned : 1;
10947 unsigned : 1;
10948 unsigned RF2 : 1;
10949 unsigned RF3 : 1;
10950 unsigned RF4 : 1;
10951 unsigned RF5 : 1;
10952 unsigned RF6 : 1;
10953 unsigned RF7 : 1;
10954 } __PORTFbits_t;
10956 extern __at(0x0F85) volatile __PORTFbits_t PORTFbits;
10958 #define _RF2 0x04
10959 #define _RF3 0x08
10960 #define _RF4 0x10
10961 #define _RF5 0x20
10962 #define _RF6 0x40
10963 #define _RF7 0x80
10965 //==============================================================================
10968 //==============================================================================
10969 // PORTG Bits
10971 extern __at(0x0F86) __sfr PORTG;
10973 typedef union
10975 struct
10977 unsigned RG0 : 1;
10978 unsigned RG1 : 1;
10979 unsigned RG2 : 1;
10980 unsigned RG3 : 1;
10981 unsigned RG4 : 1;
10982 unsigned : 1;
10983 unsigned : 1;
10984 unsigned : 1;
10987 struct
10989 unsigned RG : 5;
10990 unsigned : 3;
10992 } __PORTGbits_t;
10994 extern __at(0x0F86) volatile __PORTGbits_t PORTGbits;
10996 #define _RG0 0x01
10997 #define _RG1 0x02
10998 #define _RG2 0x04
10999 #define _RG3 0x08
11000 #define _RG4 0x10
11002 //==============================================================================
11005 //==============================================================================
11006 // PORTH Bits
11008 extern __at(0x0F87) __sfr PORTH;
11010 typedef struct
11012 unsigned RH0 : 1;
11013 unsigned RH1 : 1;
11014 unsigned RH2 : 1;
11015 unsigned RH3 : 1;
11016 unsigned RH4 : 1;
11017 unsigned RH5 : 1;
11018 unsigned RH6 : 1;
11019 unsigned RH7 : 1;
11020 } __PORTHbits_t;
11022 extern __at(0x0F87) volatile __PORTHbits_t PORTHbits;
11024 #define _RH0 0x01
11025 #define _RH1 0x02
11026 #define _RH2 0x04
11027 #define _RH3 0x08
11028 #define _RH4 0x10
11029 #define _RH5 0x20
11030 #define _RH6 0x40
11031 #define _RH7 0x80
11033 //==============================================================================
11036 //==============================================================================
11037 // PORTJ Bits
11039 extern __at(0x0F88) __sfr PORTJ;
11041 typedef struct
11043 unsigned RJ0 : 1;
11044 unsigned RJ1 : 1;
11045 unsigned RJ2 : 1;
11046 unsigned RJ3 : 1;
11047 unsigned RJ4 : 1;
11048 unsigned RJ5 : 1;
11049 unsigned RJ6 : 1;
11050 unsigned RJ7 : 1;
11051 } __PORTJbits_t;
11053 extern __at(0x0F88) volatile __PORTJbits_t PORTJbits;
11055 #define _RJ0 0x01
11056 #define _RJ1 0x02
11057 #define _RJ2 0x04
11058 #define _RJ3 0x08
11059 #define _RJ4 0x10
11060 #define _RJ5 0x20
11061 #define _RJ6 0x40
11062 #define _RJ7 0x80
11064 //==============================================================================
11067 //==============================================================================
11068 // LATA Bits
11070 extern __at(0x0F89) __sfr LATA;
11072 typedef struct
11074 unsigned LATA0 : 1;
11075 unsigned LATA1 : 1;
11076 unsigned LATA2 : 1;
11077 unsigned LATA3 : 1;
11078 unsigned LATA4 : 1;
11079 unsigned LATA5 : 1;
11080 unsigned LATA6 : 1;
11081 unsigned LATA7 : 1;
11082 } __LATAbits_t;
11084 extern __at(0x0F89) volatile __LATAbits_t LATAbits;
11086 #define _LATA0 0x01
11087 #define _LATA1 0x02
11088 #define _LATA2 0x04
11089 #define _LATA3 0x08
11090 #define _LATA4 0x10
11091 #define _LATA5 0x20
11092 #define _LATA6 0x40
11093 #define _LATA7 0x80
11095 //==============================================================================
11098 //==============================================================================
11099 // LATB Bits
11101 extern __at(0x0F8A) __sfr LATB;
11103 typedef struct
11105 unsigned LATB0 : 1;
11106 unsigned LATB1 : 1;
11107 unsigned LATB2 : 1;
11108 unsigned LATB3 : 1;
11109 unsigned LATB4 : 1;
11110 unsigned LATB5 : 1;
11111 unsigned LATB6 : 1;
11112 unsigned LATB7 : 1;
11113 } __LATBbits_t;
11115 extern __at(0x0F8A) volatile __LATBbits_t LATBbits;
11117 #define _LATB0 0x01
11118 #define _LATB1 0x02
11119 #define _LATB2 0x04
11120 #define _LATB3 0x08
11121 #define _LATB4 0x10
11122 #define _LATB5 0x20
11123 #define _LATB6 0x40
11124 #define _LATB7 0x80
11126 //==============================================================================
11129 //==============================================================================
11130 // LATC Bits
11132 extern __at(0x0F8B) __sfr LATC;
11134 typedef struct
11136 unsigned LATC0 : 1;
11137 unsigned LATC1 : 1;
11138 unsigned LATC2 : 1;
11139 unsigned LATC3 : 1;
11140 unsigned LATC4 : 1;
11141 unsigned LATC5 : 1;
11142 unsigned LATC6 : 1;
11143 unsigned LATC7 : 1;
11144 } __LATCbits_t;
11146 extern __at(0x0F8B) volatile __LATCbits_t LATCbits;
11148 #define _LATC0 0x01
11149 #define _LATC1 0x02
11150 #define _LATC2 0x04
11151 #define _LATC3 0x08
11152 #define _LATC4 0x10
11153 #define _LATC5 0x20
11154 #define _LATC6 0x40
11155 #define _LATC7 0x80
11157 //==============================================================================
11160 //==============================================================================
11161 // LATD Bits
11163 extern __at(0x0F8C) __sfr LATD;
11165 typedef struct
11167 unsigned LATD0 : 1;
11168 unsigned LATD1 : 1;
11169 unsigned LATD2 : 1;
11170 unsigned LATD3 : 1;
11171 unsigned LATD4 : 1;
11172 unsigned LATD5 : 1;
11173 unsigned LATD6 : 1;
11174 unsigned LATD7 : 1;
11175 } __LATDbits_t;
11177 extern __at(0x0F8C) volatile __LATDbits_t LATDbits;
11179 #define _LATD0 0x01
11180 #define _LATD1 0x02
11181 #define _LATD2 0x04
11182 #define _LATD3 0x08
11183 #define _LATD4 0x10
11184 #define _LATD5 0x20
11185 #define _LATD6 0x40
11186 #define _LATD7 0x80
11188 //==============================================================================
11191 //==============================================================================
11192 // LATE Bits
11194 extern __at(0x0F8D) __sfr LATE;
11196 typedef struct
11198 unsigned LATE0 : 1;
11199 unsigned LATE1 : 1;
11200 unsigned LATE2 : 1;
11201 unsigned LATE3 : 1;
11202 unsigned LATE4 : 1;
11203 unsigned LATE5 : 1;
11204 unsigned LATE6 : 1;
11205 unsigned LATE7 : 1;
11206 } __LATEbits_t;
11208 extern __at(0x0F8D) volatile __LATEbits_t LATEbits;
11210 #define _LATE0 0x01
11211 #define _LATE1 0x02
11212 #define _LATE2 0x04
11213 #define _LATE3 0x08
11214 #define _LATE4 0x10
11215 #define _LATE5 0x20
11216 #define _LATE6 0x40
11217 #define _LATE7 0x80
11219 //==============================================================================
11222 //==============================================================================
11223 // LATF Bits
11225 extern __at(0x0F8E) __sfr LATF;
11227 typedef struct
11229 unsigned : 1;
11230 unsigned : 1;
11231 unsigned LATF2 : 1;
11232 unsigned LATF3 : 1;
11233 unsigned LATF4 : 1;
11234 unsigned LATF5 : 1;
11235 unsigned LATF6 : 1;
11236 unsigned LATF7 : 1;
11237 } __LATFbits_t;
11239 extern __at(0x0F8E) volatile __LATFbits_t LATFbits;
11241 #define _LATF2 0x04
11242 #define _LATF3 0x08
11243 #define _LATF4 0x10
11244 #define _LATF5 0x20
11245 #define _LATF6 0x40
11246 #define _LATF7 0x80
11248 //==============================================================================
11251 //==============================================================================
11252 // LATG Bits
11254 extern __at(0x0F8F) __sfr LATG;
11256 typedef union
11258 struct
11260 unsigned LATG0 : 1;
11261 unsigned LATG1 : 1;
11262 unsigned LATG2 : 1;
11263 unsigned LATG3 : 1;
11264 unsigned LATG4 : 1;
11265 unsigned : 1;
11266 unsigned : 1;
11267 unsigned : 1;
11270 struct
11272 unsigned LATG : 5;
11273 unsigned : 3;
11275 } __LATGbits_t;
11277 extern __at(0x0F8F) volatile __LATGbits_t LATGbits;
11279 #define _LATG0 0x01
11280 #define _LATG1 0x02
11281 #define _LATG2 0x04
11282 #define _LATG3 0x08
11283 #define _LATG4 0x10
11285 //==============================================================================
11288 //==============================================================================
11289 // LATH Bits
11291 extern __at(0x0F90) __sfr LATH;
11293 typedef struct
11295 unsigned LATH0 : 1;
11296 unsigned LATH1 : 1;
11297 unsigned LATH2 : 1;
11298 unsigned LATH3 : 1;
11299 unsigned LATH4 : 1;
11300 unsigned LATH5 : 1;
11301 unsigned LATH6 : 1;
11302 unsigned LATH7 : 1;
11303 } __LATHbits_t;
11305 extern __at(0x0F90) volatile __LATHbits_t LATHbits;
11307 #define _LATH0 0x01
11308 #define _LATH1 0x02
11309 #define _LATH2 0x04
11310 #define _LATH3 0x08
11311 #define _LATH4 0x10
11312 #define _LATH5 0x20
11313 #define _LATH6 0x40
11314 #define _LATH7 0x80
11316 //==============================================================================
11319 //==============================================================================
11320 // LATJ Bits
11322 extern __at(0x0F91) __sfr LATJ;
11324 typedef struct
11326 unsigned LATJ0 : 1;
11327 unsigned LATJ1 : 1;
11328 unsigned LATJ2 : 1;
11329 unsigned LATJ3 : 1;
11330 unsigned LATJ4 : 1;
11331 unsigned LATJ5 : 1;
11332 unsigned LATJ6 : 1;
11333 unsigned LATJ7 : 1;
11334 } __LATJbits_t;
11336 extern __at(0x0F91) volatile __LATJbits_t LATJbits;
11338 #define _LATJ0 0x01
11339 #define _LATJ1 0x02
11340 #define _LATJ2 0x04
11341 #define _LATJ3 0x08
11342 #define _LATJ4 0x10
11343 #define _LATJ5 0x20
11344 #define _LATJ6 0x40
11345 #define _LATJ7 0x80
11347 //==============================================================================
11350 //==============================================================================
11351 // TRISA Bits
11353 extern __at(0x0F92) __sfr TRISA;
11355 typedef struct
11357 unsigned TRISA0 : 1;
11358 unsigned TRISA1 : 1;
11359 unsigned TRISA2 : 1;
11360 unsigned TRISA3 : 1;
11361 unsigned TRISA4 : 1;
11362 unsigned TRISA5 : 1;
11363 unsigned TRISA6 : 1;
11364 unsigned TRISA7 : 1;
11365 } __TRISAbits_t;
11367 extern __at(0x0F92) volatile __TRISAbits_t TRISAbits;
11369 #define _TRISA0 0x01
11370 #define _TRISA1 0x02
11371 #define _TRISA2 0x04
11372 #define _TRISA3 0x08
11373 #define _TRISA4 0x10
11374 #define _TRISA5 0x20
11375 #define _TRISA6 0x40
11376 #define _TRISA7 0x80
11378 //==============================================================================
11381 //==============================================================================
11382 // TRISB Bits
11384 extern __at(0x0F93) __sfr TRISB;
11386 typedef struct
11388 unsigned TRISB0 : 1;
11389 unsigned TRISB1 : 1;
11390 unsigned TRISB2 : 1;
11391 unsigned TRISB3 : 1;
11392 unsigned TRISB4 : 1;
11393 unsigned TRISB5 : 1;
11394 unsigned TRISB6 : 1;
11395 unsigned TRISB7 : 1;
11396 } __TRISBbits_t;
11398 extern __at(0x0F93) volatile __TRISBbits_t TRISBbits;
11400 #define _TRISB0 0x01
11401 #define _TRISB1 0x02
11402 #define _TRISB2 0x04
11403 #define _TRISB3 0x08
11404 #define _TRISB4 0x10
11405 #define _TRISB5 0x20
11406 #define _TRISB6 0x40
11407 #define _TRISB7 0x80
11409 //==============================================================================
11412 //==============================================================================
11413 // TRISC Bits
11415 extern __at(0x0F94) __sfr TRISC;
11417 typedef struct
11419 unsigned TRISC0 : 1;
11420 unsigned TRISC1 : 1;
11421 unsigned TRISC2 : 1;
11422 unsigned TRISC3 : 1;
11423 unsigned TRISC4 : 1;
11424 unsigned TRISC5 : 1;
11425 unsigned TRISC6 : 1;
11426 unsigned TRISC7 : 1;
11427 } __TRISCbits_t;
11429 extern __at(0x0F94) volatile __TRISCbits_t TRISCbits;
11431 #define _TRISC0 0x01
11432 #define _TRISC1 0x02
11433 #define _TRISC2 0x04
11434 #define _TRISC3 0x08
11435 #define _TRISC4 0x10
11436 #define _TRISC5 0x20
11437 #define _TRISC6 0x40
11438 #define _TRISC7 0x80
11440 //==============================================================================
11443 //==============================================================================
11444 // TRISD Bits
11446 extern __at(0x0F95) __sfr TRISD;
11448 typedef struct
11450 unsigned TRISD0 : 1;
11451 unsigned TRISD1 : 1;
11452 unsigned TRISD2 : 1;
11453 unsigned TRISD3 : 1;
11454 unsigned TRISD4 : 1;
11455 unsigned TRISD5 : 1;
11456 unsigned TRISD6 : 1;
11457 unsigned TRISD7 : 1;
11458 } __TRISDbits_t;
11460 extern __at(0x0F95) volatile __TRISDbits_t TRISDbits;
11462 #define _TRISD0 0x01
11463 #define _TRISD1 0x02
11464 #define _TRISD2 0x04
11465 #define _TRISD3 0x08
11466 #define _TRISD4 0x10
11467 #define _TRISD5 0x20
11468 #define _TRISD6 0x40
11469 #define _TRISD7 0x80
11471 //==============================================================================
11474 //==============================================================================
11475 // TRISE Bits
11477 extern __at(0x0F96) __sfr TRISE;
11479 typedef struct
11481 unsigned TRISE0 : 1;
11482 unsigned TRISE1 : 1;
11483 unsigned TRISE2 : 1;
11484 unsigned TRISE3 : 1;
11485 unsigned TRISE4 : 1;
11486 unsigned TRISE5 : 1;
11487 unsigned TRISE6 : 1;
11488 unsigned TRISE7 : 1;
11489 } __TRISEbits_t;
11491 extern __at(0x0F96) volatile __TRISEbits_t TRISEbits;
11493 #define _TRISE0 0x01
11494 #define _TRISE1 0x02
11495 #define _TRISE2 0x04
11496 #define _TRISE3 0x08
11497 #define _TRISE4 0x10
11498 #define _TRISE5 0x20
11499 #define _TRISE6 0x40
11500 #define _TRISE7 0x80
11502 //==============================================================================
11505 //==============================================================================
11506 // TRISF Bits
11508 extern __at(0x0F97) __sfr TRISF;
11510 typedef struct
11512 unsigned : 1;
11513 unsigned : 1;
11514 unsigned TRISF2 : 1;
11515 unsigned TRISF3 : 1;
11516 unsigned TRISF4 : 1;
11517 unsigned TRISF5 : 1;
11518 unsigned TRISF6 : 1;
11519 unsigned TRISF7 : 1;
11520 } __TRISFbits_t;
11522 extern __at(0x0F97) volatile __TRISFbits_t TRISFbits;
11524 #define _TRISF2 0x04
11525 #define _TRISF3 0x08
11526 #define _TRISF4 0x10
11527 #define _TRISF5 0x20
11528 #define _TRISF6 0x40
11529 #define _TRISF7 0x80
11531 //==============================================================================
11534 //==============================================================================
11535 // TRISG Bits
11537 extern __at(0x0F98) __sfr TRISG;
11539 typedef union
11541 struct
11543 unsigned TRISG0 : 1;
11544 unsigned TRISG1 : 1;
11545 unsigned TRISG2 : 1;
11546 unsigned TRISG3 : 1;
11547 unsigned TRISG4 : 1;
11548 unsigned : 1;
11549 unsigned : 1;
11550 unsigned : 1;
11553 struct
11555 unsigned TRISG : 5;
11556 unsigned : 3;
11558 } __TRISGbits_t;
11560 extern __at(0x0F98) volatile __TRISGbits_t TRISGbits;
11562 #define _TRISG0 0x01
11563 #define _TRISG1 0x02
11564 #define _TRISG2 0x04
11565 #define _TRISG3 0x08
11566 #define _TRISG4 0x10
11568 //==============================================================================
11571 //==============================================================================
11572 // TRISH Bits
11574 extern __at(0x0F99) __sfr TRISH;
11576 typedef struct
11578 unsigned TRISH0 : 1;
11579 unsigned TRISH1 : 1;
11580 unsigned TRISH2 : 1;
11581 unsigned TRISH3 : 1;
11582 unsigned TRISH4 : 1;
11583 unsigned TRISH5 : 1;
11584 unsigned TRISH6 : 1;
11585 unsigned TRISH7 : 1;
11586 } __TRISHbits_t;
11588 extern __at(0x0F99) volatile __TRISHbits_t TRISHbits;
11590 #define _TRISH0 0x01
11591 #define _TRISH1 0x02
11592 #define _TRISH2 0x04
11593 #define _TRISH3 0x08
11594 #define _TRISH4 0x10
11595 #define _TRISH5 0x20
11596 #define _TRISH6 0x40
11597 #define _TRISH7 0x80
11599 //==============================================================================
11602 //==============================================================================
11603 // TRISJ Bits
11605 extern __at(0x0F9A) __sfr TRISJ;
11607 typedef struct
11609 unsigned TRISJ0 : 1;
11610 unsigned TRISJ1 : 1;
11611 unsigned TRISJ2 : 1;
11612 unsigned TRISJ3 : 1;
11613 unsigned TRISJ4 : 1;
11614 unsigned TRISJ5 : 1;
11615 unsigned TRISJ6 : 1;
11616 unsigned TRISJ7 : 1;
11617 } __TRISJbits_t;
11619 extern __at(0x0F9A) volatile __TRISJbits_t TRISJbits;
11621 #define _TRISJ0 0x01
11622 #define _TRISJ1 0x02
11623 #define _TRISJ2 0x04
11624 #define _TRISJ3 0x08
11625 #define _TRISJ4 0x10
11626 #define _TRISJ5 0x20
11627 #define _TRISJ6 0x40
11628 #define _TRISJ7 0x80
11630 //==============================================================================
11633 //==============================================================================
11634 // OSCTUNE Bits
11636 extern __at(0x0F9B) __sfr OSCTUNE;
11638 typedef union
11640 struct
11642 unsigned TUN0 : 1;
11643 unsigned TUN1 : 1;
11644 unsigned TUN2 : 1;
11645 unsigned TUN3 : 1;
11646 unsigned TUN4 : 1;
11647 unsigned TUN5 : 1;
11648 unsigned : 1;
11649 unsigned : 1;
11652 struct
11654 unsigned TUN : 6;
11655 unsigned : 2;
11657 } __OSCTUNEbits_t;
11659 extern __at(0x0F9B) volatile __OSCTUNEbits_t OSCTUNEbits;
11661 #define _TUN0 0x01
11662 #define _TUN1 0x02
11663 #define _TUN2 0x04
11664 #define _TUN3 0x08
11665 #define _TUN4 0x10
11666 #define _TUN5 0x20
11668 //==============================================================================
11671 //==============================================================================
11672 // PSTR1CON Bits
11674 extern __at(0x0F9C) __sfr PSTR1CON;
11676 typedef union
11678 struct
11680 unsigned STRA : 1;
11681 unsigned STRB : 1;
11682 unsigned STRC : 1;
11683 unsigned STRD : 1;
11684 unsigned STRSYNC : 1;
11685 unsigned : 1;
11686 unsigned CMPL0 : 1;
11687 unsigned CMPL1 : 1;
11690 struct
11692 unsigned : 6;
11693 unsigned CMPL : 2;
11695 } __PSTR1CONbits_t;
11697 extern __at(0x0F9C) volatile __PSTR1CONbits_t PSTR1CONbits;
11699 #define _STRA 0x01
11700 #define _STRB 0x02
11701 #define _STRC 0x04
11702 #define _STRD 0x08
11703 #define _STRSYNC 0x10
11704 #define _CMPL0 0x40
11705 #define _CMPL1 0x80
11707 //==============================================================================
11710 //==============================================================================
11711 // PIE1 Bits
11713 extern __at(0x0F9D) __sfr PIE1;
11715 typedef struct
11717 unsigned TMR1IE : 1;
11718 unsigned TMR2IE : 1;
11719 unsigned TMR1GIE : 1;
11720 unsigned SSP1IE : 1;
11721 unsigned TX1IE : 1;
11722 unsigned RC1IE : 1;
11723 unsigned ADIE : 1;
11724 unsigned PSPIE : 1;
11725 } __PIE1bits_t;
11727 extern __at(0x0F9D) volatile __PIE1bits_t PIE1bits;
11729 #define _TMR1IE 0x01
11730 #define _TMR2IE 0x02
11731 #define _TMR1GIE 0x04
11732 #define _SSP1IE 0x08
11733 #define _TX1IE 0x10
11734 #define _RC1IE 0x20
11735 #define _ADIE 0x40
11736 #define _PSPIE 0x80
11738 //==============================================================================
11741 //==============================================================================
11742 // PIR1 Bits
11744 extern __at(0x0F9E) __sfr PIR1;
11746 typedef struct
11748 unsigned TMR1IF : 1;
11749 unsigned TMR2IF : 1;
11750 unsigned TMR1GIF : 1;
11751 unsigned SSP1IF : 1;
11752 unsigned TX1IF : 1;
11753 unsigned RC1IF : 1;
11754 unsigned ADIF : 1;
11755 unsigned PSPIF : 1;
11756 } __PIR1bits_t;
11758 extern __at(0x0F9E) volatile __PIR1bits_t PIR1bits;
11760 #define _TMR1IF 0x01
11761 #define _TMR2IF 0x02
11762 #define _TMR1GIF 0x04
11763 #define _SSP1IF 0x08
11764 #define _TX1IF 0x10
11765 #define _RC1IF 0x20
11766 #define _ADIF 0x40
11767 #define _PSPIF 0x80
11769 //==============================================================================
11772 //==============================================================================
11773 // IPR1 Bits
11775 extern __at(0x0F9F) __sfr IPR1;
11777 typedef struct
11779 unsigned TMR1IP : 1;
11780 unsigned TMR2IP : 1;
11781 unsigned TMR1GIP : 1;
11782 unsigned SSP1IP : 1;
11783 unsigned TX1IP : 1;
11784 unsigned RC1IP : 1;
11785 unsigned ADIP : 1;
11786 unsigned PSPIP : 1;
11787 } __IPR1bits_t;
11789 extern __at(0x0F9F) volatile __IPR1bits_t IPR1bits;
11791 #define _TMR1IP 0x01
11792 #define _TMR2IP 0x02
11793 #define _TMR1GIP 0x04
11794 #define _SSP1IP 0x08
11795 #define _TX1IP 0x10
11796 #define _RC1IP 0x20
11797 #define _ADIP 0x40
11798 #define _PSPIP 0x80
11800 //==============================================================================
11803 //==============================================================================
11804 // PIE2 Bits
11806 extern __at(0x0FA0) __sfr PIE2;
11808 typedef struct
11810 unsigned TMR3GIE : 1;
11811 unsigned TMR3IE : 1;
11812 unsigned HLVDIE : 1;
11813 unsigned BCL1IE : 1;
11814 unsigned USBIE : 1;
11815 unsigned BCL2IE : 1;
11816 unsigned SSP2IE : 1;
11817 unsigned OSCFIE : 1;
11818 } __PIE2bits_t;
11820 extern __at(0x0FA0) volatile __PIE2bits_t PIE2bits;
11822 #define _TMR3GIE 0x01
11823 #define _TMR3IE 0x02
11824 #define _HLVDIE 0x04
11825 #define _BCL1IE 0x08
11826 #define _USBIE 0x10
11827 #define _BCL2IE 0x20
11828 #define _SSP2IE 0x40
11829 #define _OSCFIE 0x80
11831 //==============================================================================
11834 //==============================================================================
11835 // PIR2 Bits
11837 extern __at(0x0FA1) __sfr PIR2;
11839 typedef union
11841 struct
11843 unsigned TMR3GIF : 1;
11844 unsigned TMR3IF : 1;
11845 unsigned HLVDIF : 1;
11846 unsigned BCL1IF : 1;
11847 unsigned USBIF : 1;
11848 unsigned BCL2IF : 1;
11849 unsigned SSP2IF : 1;
11850 unsigned OSCFIF : 1;
11853 struct
11855 unsigned : 1;
11856 unsigned : 1;
11857 unsigned LVDIF : 1;
11858 unsigned : 1;
11859 unsigned : 1;
11860 unsigned : 1;
11861 unsigned : 1;
11862 unsigned : 1;
11864 } __PIR2bits_t;
11866 extern __at(0x0FA1) volatile __PIR2bits_t PIR2bits;
11868 #define _TMR3GIF 0x01
11869 #define _TMR3IF 0x02
11870 #define _HLVDIF 0x04
11871 #define _LVDIF 0x04
11872 #define _BCL1IF 0x08
11873 #define _USBIF 0x10
11874 #define _BCL2IF 0x20
11875 #define _SSP2IF 0x40
11876 #define _OSCFIF 0x80
11878 //==============================================================================
11881 //==============================================================================
11882 // IPR2 Bits
11884 extern __at(0x0FA2) __sfr IPR2;
11886 typedef struct
11888 unsigned TMR3GIP : 1;
11889 unsigned TMR3IP : 1;
11890 unsigned HLVDIP : 1;
11891 unsigned BCL1IP : 1;
11892 unsigned USBIP : 1;
11893 unsigned BCL2IP : 1;
11894 unsigned SSP2IP : 1;
11895 unsigned OSCFIP : 1;
11896 } __IPR2bits_t;
11898 extern __at(0x0FA2) volatile __IPR2bits_t IPR2bits;
11900 #define _TMR3GIP 0x01
11901 #define _TMR3IP 0x02
11902 #define _HLVDIP 0x04
11903 #define _BCL1IP 0x08
11904 #define _USBIP 0x10
11905 #define _BCL2IP 0x20
11906 #define _SSP2IP 0x40
11907 #define _OSCFIP 0x80
11909 //==============================================================================
11912 //==============================================================================
11913 // PIE3 Bits
11915 extern __at(0x0FA3) __sfr PIE3;
11917 typedef struct
11919 unsigned RTCCIE : 1;
11920 unsigned CCP1IE : 1;
11921 unsigned CCP2IE : 1;
11922 unsigned CTMUIE : 1;
11923 unsigned TX2IE : 1;
11924 unsigned RC2IE : 1;
11925 unsigned LCDIE : 1;
11926 unsigned TMR5GIE : 1;
11927 } __PIE3bits_t;
11929 extern __at(0x0FA3) volatile __PIE3bits_t PIE3bits;
11931 #define _RTCCIE 0x01
11932 #define _CCP1IE 0x02
11933 #define _CCP2IE 0x04
11934 #define _CTMUIE 0x08
11935 #define _TX2IE 0x10
11936 #define _RC2IE 0x20
11937 #define _LCDIE 0x40
11938 #define _TMR5GIE 0x80
11940 //==============================================================================
11943 //==============================================================================
11944 // PIR3 Bits
11946 extern __at(0x0FA4) __sfr PIR3;
11948 typedef struct
11950 unsigned RTCCIF : 1;
11951 unsigned CCP1IF : 1;
11952 unsigned CCP2IF : 1;
11953 unsigned CTMUIF : 1;
11954 unsigned TX2IF : 1;
11955 unsigned RC2IF : 1;
11956 unsigned LCDIF : 1;
11957 unsigned TMR5GIF : 1;
11958 } __PIR3bits_t;
11960 extern __at(0x0FA4) volatile __PIR3bits_t PIR3bits;
11962 #define _RTCCIF 0x01
11963 #define _CCP1IF 0x02
11964 #define _CCP2IF 0x04
11965 #define _CTMUIF 0x08
11966 #define _TX2IF 0x10
11967 #define _RC2IF 0x20
11968 #define _LCDIF 0x40
11969 #define _TMR5GIF 0x80
11971 //==============================================================================
11974 //==============================================================================
11975 // IPR3 Bits
11977 extern __at(0x0FA5) __sfr IPR3;
11979 typedef struct
11981 unsigned RTCCIP : 1;
11982 unsigned CCP1IP : 1;
11983 unsigned CCP2IP : 1;
11984 unsigned CTMUIP : 1;
11985 unsigned TX2IP : 1;
11986 unsigned RC2IP : 1;
11987 unsigned LCDIP : 1;
11988 unsigned TMR5GIP : 1;
11989 } __IPR3bits_t;
11991 extern __at(0x0FA5) volatile __IPR3bits_t IPR3bits;
11993 #define _RTCCIP 0x01
11994 #define _CCP1IP 0x02
11995 #define _CCP2IP 0x04
11996 #define _CTMUIP 0x08
11997 #define _TX2IP 0x10
11998 #define _RC2IP 0x20
11999 #define _LCDIP 0x40
12000 #define _TMR5GIP 0x80
12002 //==============================================================================
12005 //==============================================================================
12006 // PIR6 Bits
12008 extern __at(0x0FA6) __sfr PIR6;
12010 typedef struct
12012 unsigned CMP1IF : 1;
12013 unsigned CMP2IF : 1;
12014 unsigned CMP3IF : 1;
12015 unsigned : 1;
12016 unsigned TX3IF : 1;
12017 unsigned RC3IF : 1;
12018 unsigned TX4IF : 1;
12019 unsigned RC4IF : 1;
12020 } __PIR6bits_t;
12022 extern __at(0x0FA6) volatile __PIR6bits_t PIR6bits;
12024 #define _CMP1IF 0x01
12025 #define _CMP2IF 0x02
12026 #define _CMP3IF 0x04
12027 #define _TX3IF 0x10
12028 #define _RC3IF 0x20
12029 #define _TX4IF 0x40
12030 #define _RC4IF 0x80
12032 //==============================================================================
12035 //==============================================================================
12036 // PSPCON Bits
12038 extern __at(0x0FA7) __sfr PSPCON;
12040 typedef struct
12042 unsigned : 1;
12043 unsigned : 1;
12044 unsigned : 1;
12045 unsigned : 1;
12046 unsigned PSPMODE : 1;
12047 unsigned IBOV : 1;
12048 unsigned OBF : 1;
12049 unsigned IBF : 1;
12050 } __PSPCONbits_t;
12052 extern __at(0x0FA7) volatile __PSPCONbits_t PSPCONbits;
12054 #define _PSPMODE 0x10
12055 #define _IBOV 0x20
12056 #define _OBF 0x40
12057 #define _IBF 0x80
12059 //==============================================================================
12062 //==============================================================================
12063 // HLVDCON Bits
12065 extern __at(0x0FA8) __sfr HLVDCON;
12067 typedef union
12069 struct
12071 unsigned HLVDL0 : 1;
12072 unsigned HLVDL1 : 1;
12073 unsigned HLVDL2 : 1;
12074 unsigned HLVDL3 : 1;
12075 unsigned HLVDEN : 1;
12076 unsigned IRVST : 1;
12077 unsigned BGVST : 1;
12078 unsigned VDIRMAG : 1;
12081 struct
12083 unsigned HLVDL : 4;
12084 unsigned : 4;
12086 } __HLVDCONbits_t;
12088 extern __at(0x0FA8) volatile __HLVDCONbits_t HLVDCONbits;
12090 #define _HLVDL0 0x01
12091 #define _HLVDL1 0x02
12092 #define _HLVDL2 0x04
12093 #define _HLVDL3 0x08
12094 #define _HLVDEN 0x10
12095 #define _IRVST 0x20
12096 #define _BGVST 0x40
12097 #define _VDIRMAG 0x80
12099 //==============================================================================
12102 //==============================================================================
12103 // IPR6 Bits
12105 extern __at(0x0FA9) __sfr IPR6;
12107 typedef struct
12109 unsigned CMP1IP : 1;
12110 unsigned CMP2IP : 1;
12111 unsigned CMP3IP : 1;
12112 unsigned : 1;
12113 unsigned TX3IP : 1;
12114 unsigned RC3IP : 1;
12115 unsigned TX4IP : 1;
12116 unsigned RC4IP : 1;
12117 } __IPR6bits_t;
12119 extern __at(0x0FA9) volatile __IPR6bits_t IPR6bits;
12121 #define _CMP1IP 0x01
12122 #define _CMP2IP 0x02
12123 #define _CMP3IP 0x04
12124 #define _TX3IP 0x10
12125 #define _RC3IP 0x20
12126 #define _TX4IP 0x40
12127 #define _RC4IP 0x80
12129 //==============================================================================
12132 //==============================================================================
12133 // T1GCON Bits
12135 extern __at(0x0FAA) __sfr T1GCON;
12137 typedef union
12139 struct
12141 unsigned T1GSS0 : 1;
12142 unsigned T1GSS1 : 1;
12143 unsigned T1GVAL : 1;
12144 unsigned T1GGO_NOT_T1DONE : 1;
12145 unsigned T1GSPM : 1;
12146 unsigned T1GTM : 1;
12147 unsigned T1GPOL : 1;
12148 unsigned TMR1GE : 1;
12151 struct
12153 unsigned : 1;
12154 unsigned : 1;
12155 unsigned : 1;
12156 unsigned T1GGO : 1;
12157 unsigned : 1;
12158 unsigned : 1;
12159 unsigned : 1;
12160 unsigned : 1;
12163 struct
12165 unsigned : 1;
12166 unsigned : 1;
12167 unsigned : 1;
12168 unsigned NOT_T1DONE : 1;
12169 unsigned : 1;
12170 unsigned : 1;
12171 unsigned : 1;
12172 unsigned : 1;
12175 struct
12177 unsigned T1GSS : 2;
12178 unsigned : 6;
12180 } __T1GCONbits_t;
12182 extern __at(0x0FAA) volatile __T1GCONbits_t T1GCONbits;
12184 #define _T1GSS0 0x01
12185 #define _T1GSS1 0x02
12186 #define _T1GVAL 0x04
12187 #define _T1GGO_NOT_T1DONE 0x08
12188 #define _T1GGO 0x08
12189 #define _NOT_T1DONE 0x08
12190 #define _T1GSPM 0x10
12191 #define _T1GTM 0x20
12192 #define _T1GPOL 0x40
12193 #define _TMR1GE 0x80
12195 //==============================================================================
12198 //==============================================================================
12199 // RCSTA Bits
12201 extern __at(0x0FAB) __sfr RCSTA;
12203 typedef union
12205 struct
12207 unsigned RX9D : 1;
12208 unsigned OERR : 1;
12209 unsigned FERR : 1;
12210 unsigned ADDEN : 1;
12211 unsigned CREN : 1;
12212 unsigned SREN : 1;
12213 unsigned RX9 : 1;
12214 unsigned SPEN : 1;
12217 struct
12219 unsigned : 1;
12220 unsigned : 1;
12221 unsigned : 1;
12222 unsigned ADEN : 1;
12223 unsigned : 1;
12224 unsigned : 1;
12225 unsigned : 1;
12226 unsigned : 1;
12228 } __RCSTAbits_t;
12230 extern __at(0x0FAB) volatile __RCSTAbits_t RCSTAbits;
12232 #define _RX9D 0x01
12233 #define _OERR 0x02
12234 #define _FERR 0x04
12235 #define _ADDEN 0x08
12236 #define _ADEN 0x08
12237 #define _CREN 0x10
12238 #define _SREN 0x20
12239 #define _RX9 0x40
12240 #define _SPEN 0x80
12242 //==============================================================================
12245 //==============================================================================
12246 // RCSTA1 Bits
12248 extern __at(0x0FAB) __sfr RCSTA1;
12250 typedef union
12252 struct
12254 unsigned RX9D : 1;
12255 unsigned OERR : 1;
12256 unsigned FERR : 1;
12257 unsigned ADDEN : 1;
12258 unsigned CREN : 1;
12259 unsigned SREN : 1;
12260 unsigned RX9 : 1;
12261 unsigned SPEN : 1;
12264 struct
12266 unsigned : 1;
12267 unsigned : 1;
12268 unsigned : 1;
12269 unsigned ADEN : 1;
12270 unsigned : 1;
12271 unsigned : 1;
12272 unsigned : 1;
12273 unsigned : 1;
12275 } __RCSTA1bits_t;
12277 extern __at(0x0FAB) volatile __RCSTA1bits_t RCSTA1bits;
12279 #define _RCSTA1_RX9D 0x01
12280 #define _RCSTA1_OERR 0x02
12281 #define _RCSTA1_FERR 0x04
12282 #define _RCSTA1_ADDEN 0x08
12283 #define _RCSTA1_ADEN 0x08
12284 #define _RCSTA1_CREN 0x10
12285 #define _RCSTA1_SREN 0x20
12286 #define _RCSTA1_RX9 0x40
12287 #define _RCSTA1_SPEN 0x80
12289 //==============================================================================
12292 //==============================================================================
12293 // TXSTA Bits
12295 extern __at(0x0FAC) __sfr TXSTA;
12297 typedef struct
12299 unsigned TX9D : 1;
12300 unsigned TRMT : 1;
12301 unsigned BRGH : 1;
12302 unsigned SENDB : 1;
12303 unsigned SYNC : 1;
12304 unsigned TXEN : 1;
12305 unsigned TX9 : 1;
12306 unsigned CSRC : 1;
12307 } __TXSTAbits_t;
12309 extern __at(0x0FAC) volatile __TXSTAbits_t TXSTAbits;
12311 #define _TX9D 0x01
12312 #define _TRMT 0x02
12313 #define _BRGH 0x04
12314 #define _SENDB 0x08
12315 #define _SYNC 0x10
12316 #define _TXEN 0x20
12317 #define _TX9 0x40
12318 #define _CSRC 0x80
12320 //==============================================================================
12323 //==============================================================================
12324 // TXSTA1 Bits
12326 extern __at(0x0FAC) __sfr TXSTA1;
12328 typedef struct
12330 unsigned TX9D : 1;
12331 unsigned TRMT : 1;
12332 unsigned BRGH : 1;
12333 unsigned SENDB : 1;
12334 unsigned SYNC : 1;
12335 unsigned TXEN : 1;
12336 unsigned TX9 : 1;
12337 unsigned CSRC : 1;
12338 } __TXSTA1bits_t;
12340 extern __at(0x0FAC) volatile __TXSTA1bits_t TXSTA1bits;
12342 #define _TXSTA1_TX9D 0x01
12343 #define _TXSTA1_TRMT 0x02
12344 #define _TXSTA1_BRGH 0x04
12345 #define _TXSTA1_SENDB 0x08
12346 #define _TXSTA1_SYNC 0x10
12347 #define _TXSTA1_TXEN 0x20
12348 #define _TXSTA1_TX9 0x40
12349 #define _TXSTA1_CSRC 0x80
12351 //==============================================================================
12353 extern __at(0x0FAD) __sfr TXREG;
12354 extern __at(0x0FAD) __sfr TXREG1;
12355 extern __at(0x0FAE) __sfr RCREG;
12356 extern __at(0x0FAE) __sfr RCREG1;
12358 //==============================================================================
12359 // SPBRG Bits
12361 extern __at(0x0FAF) __sfr SPBRG;
12363 typedef struct
12365 unsigned BRG0 : 1;
12366 unsigned BRG1 : 1;
12367 unsigned BRG2 : 1;
12368 unsigned BRG3 : 1;
12369 unsigned BRG4 : 1;
12370 unsigned BRG5 : 1;
12371 unsigned BRG6 : 1;
12372 unsigned BRG7 : 1;
12373 } __SPBRGbits_t;
12375 extern __at(0x0FAF) volatile __SPBRGbits_t SPBRGbits;
12377 #define _BRG0 0x01
12378 #define _BRG1 0x02
12379 #define _BRG2 0x04
12380 #define _BRG3 0x08
12381 #define _BRG4 0x10
12382 #define _BRG5 0x20
12383 #define _BRG6 0x40
12384 #define _BRG7 0x80
12386 //==============================================================================
12389 //==============================================================================
12390 // SPBRG1 Bits
12392 extern __at(0x0FAF) __sfr SPBRG1;
12394 typedef struct
12396 unsigned BRG0 : 1;
12397 unsigned BRG1 : 1;
12398 unsigned BRG2 : 1;
12399 unsigned BRG3 : 1;
12400 unsigned BRG4 : 1;
12401 unsigned BRG5 : 1;
12402 unsigned BRG6 : 1;
12403 unsigned BRG7 : 1;
12404 } __SPBRG1bits_t;
12406 extern __at(0x0FAF) volatile __SPBRG1bits_t SPBRG1bits;
12408 #define _SPBRG1_BRG0 0x01
12409 #define _SPBRG1_BRG1 0x02
12410 #define _SPBRG1_BRG2 0x04
12411 #define _SPBRG1_BRG3 0x08
12412 #define _SPBRG1_BRG4 0x10
12413 #define _SPBRG1_BRG5 0x20
12414 #define _SPBRG1_BRG6 0x40
12415 #define _SPBRG1_BRG7 0x80
12417 //==============================================================================
12420 //==============================================================================
12421 // T3GCON Bits
12423 extern __at(0x0FB0) __sfr T3GCON;
12425 typedef union
12427 struct
12429 unsigned T3GSS0 : 1;
12430 unsigned T3GSS1 : 1;
12431 unsigned T3GVAL : 1;
12432 unsigned T3GGO_NOT_T3DONE : 1;
12433 unsigned T3GSPM : 1;
12434 unsigned T3GTM : 1;
12435 unsigned T3GPOL : 1;
12436 unsigned TMR3GE : 1;
12439 struct
12441 unsigned : 1;
12442 unsigned : 1;
12443 unsigned : 1;
12444 unsigned T3GGO : 1;
12445 unsigned : 1;
12446 unsigned : 1;
12447 unsigned : 1;
12448 unsigned : 1;
12451 struct
12453 unsigned : 1;
12454 unsigned : 1;
12455 unsigned : 1;
12456 unsigned NOT_T3DONE : 1;
12457 unsigned : 1;
12458 unsigned : 1;
12459 unsigned : 1;
12460 unsigned : 1;
12463 struct
12465 unsigned T3GSS : 2;
12466 unsigned : 6;
12468 } __T3GCONbits_t;
12470 extern __at(0x0FB0) volatile __T3GCONbits_t T3GCONbits;
12472 #define _T3GSS0 0x01
12473 #define _T3GSS1 0x02
12474 #define _T3GVAL 0x04
12475 #define _T3GGO_NOT_T3DONE 0x08
12476 #define _T3GGO 0x08
12477 #define _NOT_T3DONE 0x08
12478 #define _T3GSPM 0x10
12479 #define _T3GTM 0x20
12480 #define _T3GPOL 0x40
12481 #define _TMR3GE 0x80
12483 //==============================================================================
12486 //==============================================================================
12487 // T3CON Bits
12489 extern __at(0x0FB1) __sfr T3CON;
12491 typedef union
12493 struct
12495 unsigned TMR3ON : 1;
12496 unsigned RD16 : 1;
12497 unsigned NOT_T3SYNC : 1;
12498 unsigned SOSCEN : 1;
12499 unsigned T3CKPS0 : 1;
12500 unsigned T3CKPS1 : 1;
12501 unsigned TMR3CS0 : 1;
12502 unsigned TMR3CS1 : 1;
12505 struct
12507 unsigned : 4;
12508 unsigned T3CKPS : 2;
12509 unsigned : 2;
12512 struct
12514 unsigned : 6;
12515 unsigned TMR3CS : 2;
12517 } __T3CONbits_t;
12519 extern __at(0x0FB1) volatile __T3CONbits_t T3CONbits;
12521 #define _T3CON_TMR3ON 0x01
12522 #define _T3CON_RD16 0x02
12523 #define _T3CON_NOT_T3SYNC 0x04
12524 #define _T3CON_SOSCEN 0x08
12525 #define _T3CON_T3CKPS0 0x10
12526 #define _T3CON_T3CKPS1 0x20
12527 #define _T3CON_TMR3CS0 0x40
12528 #define _T3CON_TMR3CS1 0x80
12530 //==============================================================================
12532 extern __at(0x0FB2) __sfr TMR3;
12533 extern __at(0x0FB2) __sfr TMR3L;
12534 extern __at(0x0FB3) __sfr TMR3H;
12536 //==============================================================================
12537 // PIE4 Bits
12539 extern __at(0x0FB4) __sfr PIE4;
12541 typedef struct
12543 unsigned ECCP3IE : 1;
12544 unsigned CCP4IE : 1;
12545 unsigned CCP5IE : 1;
12546 unsigned CCP6IE : 1;
12547 unsigned CCP7IE : 1;
12548 unsigned CCP8IE : 1;
12549 unsigned CCP9IE : 1;
12550 unsigned CCP10IE : 1;
12551 } __PIE4bits_t;
12553 extern __at(0x0FB4) volatile __PIE4bits_t PIE4bits;
12555 #define _ECCP3IE 0x01
12556 #define _CCP4IE 0x02
12557 #define _CCP5IE 0x04
12558 #define _CCP6IE 0x08
12559 #define _CCP7IE 0x10
12560 #define _CCP8IE 0x20
12561 #define _CCP9IE 0x40
12562 #define _CCP10IE 0x80
12564 //==============================================================================
12567 //==============================================================================
12568 // PIR4 Bits
12570 extern __at(0x0FB5) __sfr PIR4;
12572 typedef struct
12574 unsigned ECCP3IF : 1;
12575 unsigned CCP4IF : 1;
12576 unsigned CCP5IF : 1;
12577 unsigned CCP6IF : 1;
12578 unsigned CCP7IF : 1;
12579 unsigned CCP8IF : 1;
12580 unsigned CCP9IF : 1;
12581 unsigned CCP10IF : 1;
12582 } __PIR4bits_t;
12584 extern __at(0x0FB5) volatile __PIR4bits_t PIR4bits;
12586 #define _ECCP3IF 0x01
12587 #define _CCP4IF 0x02
12588 #define _CCP5IF 0x04
12589 #define _CCP6IF 0x08
12590 #define _CCP7IF 0x10
12591 #define _CCP8IF 0x20
12592 #define _CCP9IF 0x40
12593 #define _CCP10IF 0x80
12595 //==============================================================================
12598 //==============================================================================
12599 // IPR4 Bits
12601 extern __at(0x0FB6) __sfr IPR4;
12603 typedef struct
12605 unsigned ECCP3IP : 1;
12606 unsigned CCP4IP : 1;
12607 unsigned CCP5IP : 1;
12608 unsigned CCP6IP : 1;
12609 unsigned CCP7IP : 1;
12610 unsigned CCP8IP : 1;
12611 unsigned CCP9IP : 1;
12612 unsigned CCP10IP : 1;
12613 } __IPR4bits_t;
12615 extern __at(0x0FB6) volatile __IPR4bits_t IPR4bits;
12617 #define _ECCP3IP 0x01
12618 #define _CCP4IP 0x02
12619 #define _CCP5IP 0x04
12620 #define _CCP6IP 0x08
12621 #define _CCP7IP 0x10
12622 #define _CCP8IP 0x20
12623 #define _CCP9IP 0x40
12624 #define _CCP10IP 0x80
12626 //==============================================================================
12629 //==============================================================================
12630 // PIE5 Bits
12632 extern __at(0x0FB7) __sfr PIE5;
12634 typedef struct
12636 unsigned TMR4IE : 1;
12637 unsigned TMR5IE : 1;
12638 unsigned TMR6IE : 1;
12639 unsigned : 1;
12640 unsigned TMR8IE : 1;
12641 unsigned ACTLOCKIE : 1;
12642 unsigned ACTORSIE : 1;
12643 unsigned : 1;
12644 } __PIE5bits_t;
12646 extern __at(0x0FB7) volatile __PIE5bits_t PIE5bits;
12648 #define _TMR4IE 0x01
12649 #define _TMR5IE 0x02
12650 #define _TMR6IE 0x04
12651 #define _TMR8IE 0x10
12652 #define _ACTLOCKIE 0x20
12653 #define _ACTORSIE 0x40
12655 //==============================================================================
12658 //==============================================================================
12659 // PIR5 Bits
12661 extern __at(0x0FB8) __sfr PIR5;
12663 typedef struct
12665 unsigned TMR4IF : 1;
12666 unsigned TMR5IF : 1;
12667 unsigned TMR6IF : 1;
12668 unsigned : 1;
12669 unsigned TMR8IF : 1;
12670 unsigned ACTLOCKIF : 1;
12671 unsigned ACTORSIF : 1;
12672 unsigned : 1;
12673 } __PIR5bits_t;
12675 extern __at(0x0FB8) volatile __PIR5bits_t PIR5bits;
12677 #define _TMR4IF 0x01
12678 #define _TMR5IF 0x02
12679 #define _TMR6IF 0x04
12680 #define _TMR8IF 0x10
12681 #define _ACTLOCKIF 0x20
12682 #define _ACTORSIF 0x40
12684 //==============================================================================
12687 //==============================================================================
12688 // CCP1CON Bits
12690 extern __at(0x0FB9) __sfr CCP1CON;
12692 typedef union
12694 struct
12696 unsigned CCP1M0 : 1;
12697 unsigned CCP1M1 : 1;
12698 unsigned CCP1M2 : 1;
12699 unsigned CCP1M3 : 1;
12700 unsigned DC1B0 : 1;
12701 unsigned DC1B1 : 1;
12702 unsigned P1M0 : 1;
12703 unsigned P1M1 : 1;
12706 struct
12708 unsigned : 1;
12709 unsigned : 1;
12710 unsigned : 1;
12711 unsigned : 1;
12712 unsigned CCP1Y : 1;
12713 unsigned CCP1X : 1;
12714 unsigned : 1;
12715 unsigned : 1;
12718 struct
12720 unsigned CCP1M : 4;
12721 unsigned : 4;
12724 struct
12726 unsigned : 4;
12727 unsigned DC1B : 2;
12728 unsigned : 2;
12731 struct
12733 unsigned : 6;
12734 unsigned P1M : 2;
12736 } __CCP1CONbits_t;
12738 extern __at(0x0FB9) volatile __CCP1CONbits_t CCP1CONbits;
12740 #define _CCP1M0 0x01
12741 #define _CCP1M1 0x02
12742 #define _CCP1M2 0x04
12743 #define _CCP1M3 0x08
12744 #define _DC1B0 0x10
12745 #define _CCP1Y 0x10
12746 #define _DC1B1 0x20
12747 #define _CCP1X 0x20
12748 #define _P1M0 0x40
12749 #define _P1M1 0x80
12751 //==============================================================================
12753 extern __at(0x0FBA) __sfr CCPR1;
12754 extern __at(0x0FBA) __sfr CCPR1L;
12755 extern __at(0x0FBB) __sfr CCPR1H;
12757 //==============================================================================
12758 // ECCP1DEL Bits
12760 extern __at(0x0FBC) __sfr ECCP1DEL;
12762 typedef union
12764 struct
12766 unsigned P1DC0 : 1;
12767 unsigned P1DC1 : 1;
12768 unsigned P1DC2 : 1;
12769 unsigned P1DC3 : 1;
12770 unsigned P1DC4 : 1;
12771 unsigned P1DC5 : 1;
12772 unsigned P1DC6 : 1;
12773 unsigned P1RSEN : 1;
12776 struct
12778 unsigned P1DC : 7;
12779 unsigned : 1;
12781 } __ECCP1DELbits_t;
12783 extern __at(0x0FBC) volatile __ECCP1DELbits_t ECCP1DELbits;
12785 #define _P1DC0 0x01
12786 #define _P1DC1 0x02
12787 #define _P1DC2 0x04
12788 #define _P1DC3 0x08
12789 #define _P1DC4 0x10
12790 #define _P1DC5 0x20
12791 #define _P1DC6 0x40
12792 #define _P1RSEN 0x80
12794 //==============================================================================
12797 //==============================================================================
12798 // ECCP1AS Bits
12800 extern __at(0x0FBD) __sfr ECCP1AS;
12802 typedef union
12804 struct
12806 unsigned PSS1BD0 : 1;
12807 unsigned PSS1BD1 : 1;
12808 unsigned PSS1AC0 : 1;
12809 unsigned PSS1AC1 : 1;
12810 unsigned ECCP1AS0 : 1;
12811 unsigned ECCP1AS1 : 1;
12812 unsigned ECCP1AS2 : 1;
12813 unsigned ECCP1ASE : 1;
12816 struct
12818 unsigned PSS1BD : 2;
12819 unsigned : 6;
12822 struct
12824 unsigned : 2;
12825 unsigned PSS1AC : 2;
12826 unsigned : 4;
12829 struct
12831 unsigned : 4;
12832 unsigned ECCP1AS : 3;
12833 unsigned : 1;
12835 } __ECCP1ASbits_t;
12837 extern __at(0x0FBD) volatile __ECCP1ASbits_t ECCP1ASbits;
12839 #define _PSS1BD0 0x01
12840 #define _PSS1BD1 0x02
12841 #define _PSS1AC0 0x04
12842 #define _PSS1AC1 0x08
12843 #define _ECCP1AS0 0x10
12844 #define _ECCP1AS1 0x20
12845 #define _ECCP1AS2 0x40
12846 #define _ECCP1ASE 0x80
12848 //==============================================================================
12851 //==============================================================================
12852 // CVRCONL Bits
12854 extern __at(0x0FBE) __sfr CVRCONL;
12856 typedef union
12858 struct
12860 unsigned CVRNSS : 1;
12861 unsigned : 1;
12862 unsigned : 1;
12863 unsigned : 1;
12864 unsigned CVRPSS0 : 1;
12865 unsigned CVRPSS1 : 1;
12866 unsigned CVROE : 1;
12867 unsigned CVREN : 1;
12870 struct
12872 unsigned : 4;
12873 unsigned CVRPSS : 2;
12874 unsigned : 2;
12876 } __CVRCONLbits_t;
12878 extern __at(0x0FBE) volatile __CVRCONLbits_t CVRCONLbits;
12880 #define _CVRNSS 0x01
12881 #define _CVRPSS0 0x10
12882 #define _CVRPSS1 0x20
12883 #define _CVROE 0x40
12884 #define _CVREN 0x80
12886 //==============================================================================
12889 //==============================================================================
12890 // CVRCONH Bits
12892 extern __at(0x0FBF) __sfr CVRCONH;
12894 typedef union
12896 struct
12898 unsigned CVR0 : 1;
12899 unsigned CVR1 : 1;
12900 unsigned CVR2 : 1;
12901 unsigned CVR3 : 1;
12902 unsigned CVR4 : 1;
12903 unsigned : 1;
12904 unsigned : 1;
12905 unsigned : 1;
12908 struct
12910 unsigned CVR : 5;
12911 unsigned : 3;
12913 } __CVRCONHbits_t;
12915 extern __at(0x0FBF) volatile __CVRCONHbits_t CVRCONHbits;
12917 #define _CVR0 0x01
12918 #define _CVR1 0x02
12919 #define _CVR2 0x04
12920 #define _CVR3 0x08
12921 #define _CVR4 0x10
12923 //==============================================================================
12926 //==============================================================================
12927 // ADCON1L Bits
12929 extern __at(0x0FC0) __sfr ADCON1L;
12931 typedef union
12933 struct
12935 unsigned DONE : 1;
12936 unsigned SAMP : 1;
12937 unsigned ASAM : 1;
12938 unsigned : 1;
12939 unsigned SSRC0 : 1;
12940 unsigned SSRC1 : 1;
12941 unsigned SSRC2 : 1;
12942 unsigned SSRC3 : 1;
12945 struct
12947 unsigned : 4;
12948 unsigned SSRC : 4;
12950 } __ADCON1Lbits_t;
12952 extern __at(0x0FC0) volatile __ADCON1Lbits_t ADCON1Lbits;
12954 #define _DONE 0x01
12955 #define _SAMP 0x02
12956 #define _ASAM 0x04
12957 #define _SSRC0 0x10
12958 #define _SSRC1 0x20
12959 #define _SSRC2 0x40
12960 #define _SSRC3 0x80
12962 //==============================================================================
12965 //==============================================================================
12966 // ADCON1H Bits
12968 extern __at(0x0FC1) __sfr ADCON1H;
12970 typedef union
12972 struct
12974 unsigned FORM0 : 1;
12975 unsigned FORM1 : 1;
12976 unsigned MODE12 : 1;
12977 unsigned : 1;
12978 unsigned : 1;
12979 unsigned : 1;
12980 unsigned : 1;
12981 unsigned ADON : 1;
12984 struct
12986 unsigned FORM : 2;
12987 unsigned : 6;
12989 } __ADCON1Hbits_t;
12991 extern __at(0x0FC1) volatile __ADCON1Hbits_t ADCON1Hbits;
12993 #define _FORM0 0x01
12994 #define _FORM1 0x02
12995 #define _MODE12 0x04
12996 #define _ADON 0x80
12998 //==============================================================================
13000 extern __at(0x0FC2) __sfr ADCBUF0;
13001 extern __at(0x0FC2) __sfr ADCBUF0L;
13002 extern __at(0x0FC3) __sfr ADCBUF0H;
13004 //==============================================================================
13005 // CMSTAT Bits
13007 extern __at(0x0FC4) __sfr CMSTAT;
13009 typedef struct
13011 unsigned C1OUT : 1;
13012 unsigned C2OUT : 1;
13013 unsigned C3OUT : 1;
13014 unsigned : 1;
13015 unsigned : 1;
13016 unsigned : 1;
13017 unsigned : 1;
13018 unsigned : 1;
13019 } __CMSTATbits_t;
13021 extern __at(0x0FC4) volatile __CMSTATbits_t CMSTATbits;
13023 #define _C1OUT 0x01
13024 #define _C2OUT 0x02
13025 #define _C3OUT 0x04
13027 //==============================================================================
13030 //==============================================================================
13031 // SSP1CON2 Bits
13033 extern __at(0x0FC5) __sfr SSP1CON2;
13035 typedef union
13037 struct
13039 unsigned SEN : 1;
13040 unsigned RSEN : 1;
13041 unsigned PEN : 1;
13042 unsigned RCEN : 1;
13043 unsigned ACKEN : 1;
13044 unsigned ACKDT : 1;
13045 unsigned ACKSTAT : 1;
13046 unsigned GCEN : 1;
13049 struct
13051 unsigned : 1;
13052 unsigned ADMSK1 : 1;
13053 unsigned ADMSK2 : 1;
13054 unsigned ADMSK3 : 1;
13055 unsigned ADMSK4 : 1;
13056 unsigned ADMSK5 : 1;
13057 unsigned : 1;
13058 unsigned : 1;
13060 } __SSP1CON2bits_t;
13062 extern __at(0x0FC5) volatile __SSP1CON2bits_t SSP1CON2bits;
13064 #define _SEN 0x01
13065 #define _RSEN 0x02
13066 #define _ADMSK1 0x02
13067 #define _PEN 0x04
13068 #define _ADMSK2 0x04
13069 #define _RCEN 0x08
13070 #define _ADMSK3 0x08
13071 #define _ACKEN 0x10
13072 #define _ADMSK4 0x10
13073 #define _ACKDT 0x20
13074 #define _ADMSK5 0x20
13075 #define _ACKSTAT 0x40
13076 #define _GCEN 0x80
13078 //==============================================================================
13081 //==============================================================================
13082 // SSP1CON1 Bits
13084 extern __at(0x0FC6) __sfr SSP1CON1;
13086 typedef union
13088 struct
13090 unsigned SSPM0 : 1;
13091 unsigned SSPM1 : 1;
13092 unsigned SSPM2 : 1;
13093 unsigned SSPM3 : 1;
13094 unsigned CKP : 1;
13095 unsigned SSPEN : 1;
13096 unsigned SSPOV : 1;
13097 unsigned WCOL : 1;
13100 struct
13102 unsigned SSPM : 4;
13103 unsigned : 4;
13105 } __SSP1CON1bits_t;
13107 extern __at(0x0FC6) volatile __SSP1CON1bits_t SSP1CON1bits;
13109 #define _SSPM0 0x01
13110 #define _SSPM1 0x02
13111 #define _SSPM2 0x04
13112 #define _SSPM3 0x08
13113 #define _CKP 0x10
13114 #define _SSPEN 0x20
13115 #define _SSPOV 0x40
13116 #define _WCOL 0x80
13118 //==============================================================================
13121 //==============================================================================
13122 // SSP1STAT Bits
13124 extern __at(0x0FC7) __sfr SSP1STAT;
13126 typedef union
13128 struct
13130 unsigned BF : 1;
13131 unsigned UA : 1;
13132 unsigned R_NOT_W : 1;
13133 unsigned S : 1;
13134 unsigned P : 1;
13135 unsigned D_NOT_A : 1;
13136 unsigned CKE : 1;
13137 unsigned SMP : 1;
13140 struct
13142 unsigned : 1;
13143 unsigned : 1;
13144 unsigned R_W : 1;
13145 unsigned I2C_START : 1;
13146 unsigned I2C_STOP : 1;
13147 unsigned D_A : 1;
13148 unsigned : 1;
13149 unsigned : 1;
13152 struct
13154 unsigned : 1;
13155 unsigned : 1;
13156 unsigned NOT_W : 1;
13157 unsigned : 1;
13158 unsigned : 1;
13159 unsigned NOT_A : 1;
13160 unsigned : 1;
13161 unsigned : 1;
13164 struct
13166 unsigned : 1;
13167 unsigned : 1;
13168 unsigned NOT_WRITE : 1;
13169 unsigned : 1;
13170 unsigned : 1;
13171 unsigned NOT_ADDRESS : 1;
13172 unsigned : 1;
13173 unsigned : 1;
13176 struct
13178 unsigned : 1;
13179 unsigned : 1;
13180 unsigned READ_WRITE : 1;
13181 unsigned : 1;
13182 unsigned : 1;
13183 unsigned DATA_ADDRESS : 1;
13184 unsigned : 1;
13185 unsigned : 1;
13188 struct
13190 unsigned : 1;
13191 unsigned : 1;
13192 unsigned I2C_READ : 1;
13193 unsigned : 1;
13194 unsigned : 1;
13195 unsigned I2C_DAT : 1;
13196 unsigned : 1;
13197 unsigned : 1;
13199 } __SSP1STATbits_t;
13201 extern __at(0x0FC7) volatile __SSP1STATbits_t SSP1STATbits;
13203 #define _BF 0x01
13204 #define _UA 0x02
13205 #define _R_NOT_W 0x04
13206 #define _R_W 0x04
13207 #define _NOT_W 0x04
13208 #define _NOT_WRITE 0x04
13209 #define _READ_WRITE 0x04
13210 #define _I2C_READ 0x04
13211 #define _S 0x08
13212 #define _I2C_START 0x08
13213 #define _P 0x10
13214 #define _I2C_STOP 0x10
13215 #define _D_NOT_A 0x20
13216 #define _D_A 0x20
13217 #define _NOT_A 0x20
13218 #define _NOT_ADDRESS 0x20
13219 #define _DATA_ADDRESS 0x20
13220 #define _I2C_DAT 0x20
13221 #define _CKE 0x40
13222 #define _SMP 0x80
13224 //==============================================================================
13226 extern __at(0x0FC8) __sfr SSP1ADD;
13227 extern __at(0x0FC9) __sfr SSP1BUF;
13229 //==============================================================================
13230 // T2CON Bits
13232 extern __at(0x0FCA) __sfr T2CON;
13234 typedef union
13236 struct
13238 unsigned T2CKPS0 : 1;
13239 unsigned T2CKPS1 : 1;
13240 unsigned TMR2ON : 1;
13241 unsigned T2OUTPS0 : 1;
13242 unsigned T2OUTPS1 : 1;
13243 unsigned T2OUTPS2 : 1;
13244 unsigned T2OUTPS3 : 1;
13245 unsigned : 1;
13248 struct
13250 unsigned T2CKPS : 2;
13251 unsigned : 6;
13254 struct
13256 unsigned : 3;
13257 unsigned T2OUTPS : 4;
13258 unsigned : 1;
13260 } __T2CONbits_t;
13262 extern __at(0x0FCA) volatile __T2CONbits_t T2CONbits;
13264 #define _T2CKPS0 0x01
13265 #define _T2CKPS1 0x02
13266 #define _TMR2ON 0x04
13267 #define _T2OUTPS0 0x08
13268 #define _T2OUTPS1 0x10
13269 #define _T2OUTPS2 0x20
13270 #define _T2OUTPS3 0x40
13272 //==============================================================================
13274 extern __at(0x0FCB) __sfr PR2;
13275 extern __at(0x0FCC) __sfr TMR2;
13277 //==============================================================================
13278 // T1CON Bits
13280 extern __at(0x0FCD) __sfr T1CON;
13282 typedef union
13284 struct
13286 unsigned TMR1ON : 1;
13287 unsigned RD16 : 1;
13288 unsigned NOT_T1SYNC : 1;
13289 unsigned SOSCEN : 1;
13290 unsigned T1CKPS0 : 1;
13291 unsigned T1CKPS1 : 1;
13292 unsigned TMR1CS0 : 1;
13293 unsigned TMR1CS1 : 1;
13296 struct
13298 unsigned : 4;
13299 unsigned T1CKPS : 2;
13300 unsigned : 2;
13303 struct
13305 unsigned : 6;
13306 unsigned TMR1CS : 2;
13308 } __T1CONbits_t;
13310 extern __at(0x0FCD) volatile __T1CONbits_t T1CONbits;
13312 #define _TMR1ON 0x01
13313 #define _RD16 0x02
13314 #define _NOT_T1SYNC 0x04
13315 #define _SOSCEN 0x08
13316 #define _T1CKPS0 0x10
13317 #define _T1CKPS1 0x20
13318 #define _TMR1CS0 0x40
13319 #define _TMR1CS1 0x80
13321 //==============================================================================
13323 extern __at(0x0FCE) __sfr TMR1;
13324 extern __at(0x0FCE) __sfr TMR1L;
13325 extern __at(0x0FCF) __sfr TMR1H;
13327 //==============================================================================
13328 // RCON Bits
13330 extern __at(0x0FD0) __sfr RCON;
13332 typedef union
13334 struct
13336 unsigned NOT_BOR : 1;
13337 unsigned NOT_POR : 1;
13338 unsigned NOT_PD : 1;
13339 unsigned NOT_TO : 1;
13340 unsigned NOT_RI : 1;
13341 unsigned NOT_CM : 1;
13342 unsigned : 1;
13343 unsigned IPEN : 1;
13346 struct
13348 unsigned BOR : 1;
13349 unsigned POR : 1;
13350 unsigned PD : 1;
13351 unsigned TO : 1;
13352 unsigned RI : 1;
13353 unsigned CM : 1;
13354 unsigned : 1;
13355 unsigned : 1;
13357 } __RCONbits_t;
13359 extern __at(0x0FD0) volatile __RCONbits_t RCONbits;
13361 #define _RCON_NOT_BOR 0x01
13362 #define _RCON_BOR 0x01
13363 #define _RCON_NOT_POR 0x02
13364 #define _RCON_POR 0x02
13365 #define _RCON_NOT_PD 0x04
13366 #define _RCON_PD 0x04
13367 #define _RCON_NOT_TO 0x08
13368 #define _RCON_TO 0x08
13369 #define _RCON_NOT_RI 0x10
13370 #define _RCON_RI 0x10
13371 #define _RCON_NOT_CM 0x20
13372 #define _RCON_CM 0x20
13373 #define _RCON_IPEN 0x80
13375 //==============================================================================
13378 //==============================================================================
13379 // IOCF Bits
13381 extern __at(0x0FD1) __sfr IOCF;
13383 typedef struct
13385 unsigned IOCF0 : 1;
13386 unsigned IOCF1 : 1;
13387 unsigned IOCF2 : 1;
13388 unsigned IOCF3 : 1;
13389 unsigned IOCF4 : 1;
13390 unsigned IOCF5 : 1;
13391 unsigned IOCF6 : 1;
13392 unsigned IOCF7 : 1;
13393 } __IOCFbits_t;
13395 extern __at(0x0FD1) volatile __IOCFbits_t IOCFbits;
13397 #define _IOCF0 0x01
13398 #define _IOCF1 0x02
13399 #define _IOCF2 0x04
13400 #define _IOCF3 0x08
13401 #define _IOCF4 0x10
13402 #define _IOCF5 0x20
13403 #define _IOCF6 0x40
13404 #define _IOCF7 0x80
13406 //==============================================================================
13409 //==============================================================================
13410 // IPR5 Bits
13412 extern __at(0x0FD2) __sfr IPR5;
13414 typedef struct
13416 unsigned TMR4IP : 1;
13417 unsigned TMR5IP : 1;
13418 unsigned TMR6IP : 1;
13419 unsigned : 1;
13420 unsigned TMR8IP : 1;
13421 unsigned ACTLOCKIP : 1;
13422 unsigned ACTORSIP : 1;
13423 unsigned : 1;
13424 } __IPR5bits_t;
13426 extern __at(0x0FD2) volatile __IPR5bits_t IPR5bits;
13428 #define _TMR4IP 0x01
13429 #define _TMR5IP 0x02
13430 #define _TMR6IP 0x04
13431 #define _TMR8IP 0x10
13432 #define _ACTLOCKIP 0x20
13433 #define _ACTORSIP 0x40
13435 //==============================================================================
13438 //==============================================================================
13439 // OSCCON Bits
13441 extern __at(0x0FD3) __sfr OSCCON;
13443 typedef union
13445 struct
13447 unsigned NOSC0 : 1;
13448 unsigned NOSC1 : 1;
13449 unsigned NOSC2 : 1;
13450 unsigned : 1;
13451 unsigned COSC0 : 1;
13452 unsigned COSC1 : 1;
13453 unsigned COSC2 : 1;
13454 unsigned IDLEN : 1;
13457 struct
13459 unsigned NOSC : 3;
13460 unsigned : 5;
13463 struct
13465 unsigned : 4;
13466 unsigned COSC : 3;
13467 unsigned : 1;
13469 } __OSCCONbits_t;
13471 extern __at(0x0FD3) volatile __OSCCONbits_t OSCCONbits;
13473 #define _NOSC0 0x01
13474 #define _NOSC1 0x02
13475 #define _NOSC2 0x04
13476 #define _COSC0 0x10
13477 #define _COSC1 0x20
13478 #define _COSC2 0x40
13479 #define _IDLEN 0x80
13481 //==============================================================================
13484 //==============================================================================
13485 // T0CON Bits
13487 extern __at(0x0FD5) __sfr T0CON;
13489 typedef union
13491 struct
13493 unsigned T0PS0 : 1;
13494 unsigned T0PS1 : 1;
13495 unsigned T0PS2 : 1;
13496 unsigned PSA : 1;
13497 unsigned T0CS0 : 1;
13498 unsigned T0CS1 : 1;
13499 unsigned T08BIT : 1;
13500 unsigned TMR0ON : 1;
13503 struct
13505 unsigned T0PS : 3;
13506 unsigned : 5;
13509 struct
13511 unsigned : 4;
13512 unsigned T0CS : 2;
13513 unsigned : 2;
13515 } __T0CONbits_t;
13517 extern __at(0x0FD5) volatile __T0CONbits_t T0CONbits;
13519 #define _T0PS0 0x01
13520 #define _T0PS1 0x02
13521 #define _T0PS2 0x04
13522 #define _PSA 0x08
13523 #define _T0CS0 0x10
13524 #define _T0CS1 0x20
13525 #define _T08BIT 0x40
13526 #define _TMR0ON 0x80
13528 //==============================================================================
13530 extern __at(0x0FD6) __sfr TMR0;
13531 extern __at(0x0FD6) __sfr TMR0L;
13532 extern __at(0x0FD7) __sfr TMR0H;
13534 //==============================================================================
13535 // STATUS Bits
13537 extern __at(0x0FD8) __sfr STATUS;
13539 typedef struct
13541 unsigned C : 1;
13542 unsigned DC : 1;
13543 unsigned Z : 1;
13544 unsigned OV : 1;
13545 unsigned N : 1;
13546 unsigned : 1;
13547 unsigned : 1;
13548 unsigned : 1;
13549 } __STATUSbits_t;
13551 extern __at(0x0FD8) volatile __STATUSbits_t STATUSbits;
13553 #define _C 0x01
13554 #define _DC 0x02
13555 #define _Z 0x04
13556 #define _OV 0x08
13557 #define _N 0x10
13559 //==============================================================================
13561 extern __at(0x0FD9) __sfr FSR2L;
13562 extern __at(0x0FDA) __sfr FSR2H;
13563 extern __at(0x0FDB) __sfr PLUSW2;
13564 extern __at(0x0FDC) __sfr PREINC2;
13565 extern __at(0x0FDD) __sfr POSTDEC2;
13566 extern __at(0x0FDE) __sfr POSTINC2;
13567 extern __at(0x0FDF) __sfr INDF2;
13568 extern __at(0x0FE0) __sfr BSR;
13569 extern __at(0x0FE1) __sfr FSR1L;
13570 extern __at(0x0FE2) __sfr FSR1H;
13571 extern __at(0x0FE3) __sfr PLUSW1;
13572 extern __at(0x0FE4) __sfr PREINC1;
13573 extern __at(0x0FE5) __sfr POSTDEC1;
13574 extern __at(0x0FE6) __sfr POSTINC1;
13575 extern __at(0x0FE7) __sfr INDF1;
13576 extern __at(0x0FE8) __sfr WREG;
13577 extern __at(0x0FE9) __sfr FSR0L;
13578 extern __at(0x0FEA) __sfr FSR0H;
13579 extern __at(0x0FEB) __sfr PLUSW0;
13580 extern __at(0x0FEC) __sfr PREINC0;
13581 extern __at(0x0FED) __sfr POSTDEC0;
13582 extern __at(0x0FEE) __sfr POSTINC0;
13583 extern __at(0x0FEF) __sfr INDF0;
13585 //==============================================================================
13586 // INTCON3 Bits
13588 extern __at(0x0FF0) __sfr INTCON3;
13590 typedef union
13592 struct
13594 unsigned INT1IF : 1;
13595 unsigned INT2IF : 1;
13596 unsigned INT3IF : 1;
13597 unsigned INT1IE : 1;
13598 unsigned INT2IE : 1;
13599 unsigned INT3IE : 1;
13600 unsigned INT1IP : 1;
13601 unsigned INT2IP : 1;
13604 struct
13606 unsigned INT1F : 1;
13607 unsigned INT2F : 1;
13608 unsigned INT3F : 1;
13609 unsigned INT1E : 1;
13610 unsigned INT2E : 1;
13611 unsigned INT3E : 1;
13612 unsigned INT1P : 1;
13613 unsigned INT2P : 1;
13615 } __INTCON3bits_t;
13617 extern __at(0x0FF0) volatile __INTCON3bits_t INTCON3bits;
13619 #define _INT1IF 0x01
13620 #define _INT1F 0x01
13621 #define _INT2IF 0x02
13622 #define _INT2F 0x02
13623 #define _INT3IF 0x04
13624 #define _INT3F 0x04
13625 #define _INT1IE 0x08
13626 #define _INT1E 0x08
13627 #define _INT2IE 0x10
13628 #define _INT2E 0x10
13629 #define _INT3IE 0x20
13630 #define _INT3E 0x20
13631 #define _INT1IP 0x40
13632 #define _INT1P 0x40
13633 #define _INT2IP 0x80
13634 #define _INT2P 0x80
13636 //==============================================================================
13639 //==============================================================================
13640 // INTCON2 Bits
13642 extern __at(0x0FF1) __sfr INTCON2;
13644 typedef union
13646 struct
13648 unsigned IOCIP : 1;
13649 unsigned INT3IP : 1;
13650 unsigned TMR0IP : 1;
13651 unsigned INTEDG3 : 1;
13652 unsigned INTEDG2 : 1;
13653 unsigned INTEDG1 : 1;
13654 unsigned INTEDG0 : 1;
13655 unsigned NOT_RBPU : 1;
13658 struct
13660 unsigned : 1;
13661 unsigned INT3P : 1;
13662 unsigned T0IP : 1;
13663 unsigned : 1;
13664 unsigned : 1;
13665 unsigned : 1;
13666 unsigned : 1;
13667 unsigned RBPU : 1;
13669 } __INTCON2bits_t;
13671 extern __at(0x0FF1) volatile __INTCON2bits_t INTCON2bits;
13673 #define _IOCIP 0x01
13674 #define _INT3IP 0x02
13675 #define _INT3P 0x02
13676 #define _TMR0IP 0x04
13677 #define _T0IP 0x04
13678 #define _INTEDG3 0x08
13679 #define _INTEDG2 0x10
13680 #define _INTEDG1 0x20
13681 #define _INTEDG0 0x40
13682 #define _NOT_RBPU 0x80
13683 #define _RBPU 0x80
13685 //==============================================================================
13688 //==============================================================================
13689 // INTCON Bits
13691 extern __at(0x0FF2) __sfr INTCON;
13693 typedef union
13695 struct
13697 unsigned IOCIF : 1;
13698 unsigned INT0IF : 1;
13699 unsigned TMR0IF : 1;
13700 unsigned IOCIE : 1;
13701 unsigned INT0IE : 1;
13702 unsigned TMR0IE : 1;
13703 unsigned PEIE_GIEL : 1;
13704 unsigned GIE_GIEH : 1;
13707 struct
13709 unsigned : 1;
13710 unsigned INT0F : 1;
13711 unsigned T0IF : 1;
13712 unsigned : 1;
13713 unsigned INT0E : 1;
13714 unsigned T0IE : 1;
13715 unsigned PEIE : 1;
13716 unsigned GIE : 1;
13719 struct
13721 unsigned : 1;
13722 unsigned : 1;
13723 unsigned : 1;
13724 unsigned : 1;
13725 unsigned : 1;
13726 unsigned : 1;
13727 unsigned GIEL : 1;
13728 unsigned GIEH : 1;
13730 } __INTCONbits_t;
13732 extern __at(0x0FF2) volatile __INTCONbits_t INTCONbits;
13734 #define _IOCIF 0x01
13735 #define _INT0IF 0x02
13736 #define _INT0F 0x02
13737 #define _TMR0IF 0x04
13738 #define _T0IF 0x04
13739 #define _IOCIE 0x08
13740 #define _INT0IE 0x10
13741 #define _INT0E 0x10
13742 #define _TMR0IE 0x20
13743 #define _T0IE 0x20
13744 #define _PEIE_GIEL 0x40
13745 #define _PEIE 0x40
13746 #define _GIEL 0x40
13747 #define _GIE_GIEH 0x80
13748 #define _GIE 0x80
13749 #define _GIEH 0x80
13751 //==============================================================================
13753 extern __at(0x0FF3) __sfr PROD;
13754 extern __at(0x0FF3) __sfr PRODL;
13755 extern __at(0x0FF4) __sfr PRODH;
13756 extern __at(0x0FF5) __sfr TABLAT;
13757 extern __at(0x0FF6) __sfr TBLPTR;
13758 extern __at(0x0FF6) __sfr TBLPTRL;
13759 extern __at(0x0FF7) __sfr TBLPTRH;
13760 extern __at(0x0FF8) __sfr TBLPTRU;
13761 extern __at(0x0FF9) __sfr PC;
13762 extern __at(0x0FF9) __sfr PCL;
13763 extern __at(0x0FFA) __sfr PCLATH;
13764 extern __at(0x0FFB) __sfr PCLATU;
13766 //==============================================================================
13767 // STKPTR Bits
13769 extern __at(0x0FFC) __sfr STKPTR;
13771 typedef union
13773 struct
13775 unsigned SP0 : 1;
13776 unsigned SP1 : 1;
13777 unsigned SP2 : 1;
13778 unsigned SP3 : 1;
13779 unsigned SP4 : 1;
13780 unsigned : 1;
13781 unsigned STKUNF : 1;
13782 unsigned STKFUL : 1;
13785 struct
13787 unsigned : 1;
13788 unsigned : 1;
13789 unsigned : 1;
13790 unsigned : 1;
13791 unsigned : 1;
13792 unsigned : 1;
13793 unsigned : 1;
13794 unsigned STKOVF : 1;
13797 struct
13799 unsigned SP : 5;
13800 unsigned : 3;
13802 } __STKPTRbits_t;
13804 extern __at(0x0FFC) volatile __STKPTRbits_t STKPTRbits;
13806 #define _SP0 0x01
13807 #define _SP1 0x02
13808 #define _SP2 0x04
13809 #define _SP3 0x08
13810 #define _SP4 0x10
13811 #define _STKUNF 0x40
13812 #define _STKFUL 0x80
13813 #define _STKOVF 0x80
13815 //==============================================================================
13817 extern __at(0x0FFD) __sfr TOS;
13818 extern __at(0x0FFD) __sfr TOSL;
13819 extern __at(0x0FFE) __sfr TOSH;
13820 extern __at(0x0FFF) __sfr TOSU;
13822 //==============================================================================
13824 // Configuration Addresses
13826 //==============================================================================
13828 #define __CONFIG1L 0x007FF0
13829 #define __CONFIG1H 0x007FF1
13830 #define __CONFIG2L 0x007FF2
13831 #define __CONFIG2H 0x007FF3
13832 #define __CONFIG3L 0x007FF4
13833 #define __CONFIG3H 0x007FF5
13834 #define __CONFIG4L 0x007FF6
13835 #define __CONFIG4H 0x007FF7
13836 #define __CONFIG5L 0x007FF8
13837 #define __CONFIG5H 0x007FF9
13838 #define __CONFIG6L 0x007FFA
13839 #define __CONFIG6H 0x007FFB
13840 #define __CONFIG7L 0x007FFC
13841 #define __CONFIG7H 0x007FFD
13842 #define __CONFIG8L 0x007FFE
13843 #define __CONFIG8H 0x007FFF
13845 //==============================================================================
13847 #endif // #ifndef __PIC18F85J94_H__