2 * This declarations of the PIC12LF1501 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:05 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 __PIC12LF1501_H__
26 #define __PIC12LF1501_H__
28 //==============================================================================
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF0_ADDR 0x0000
37 #define INDF1_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR0_ADDR 0x0004
41 #define FSR0L_ADDR 0x0004
42 #define FSR0H_ADDR 0x0005
43 #define FSR1_ADDR 0x0006
44 #define FSR1L_ADDR 0x0006
45 #define FSR1H_ADDR 0x0007
46 #define BSR_ADDR 0x0008
47 #define WREG_ADDR 0x0009
48 #define PCLATH_ADDR 0x000A
49 #define INTCON_ADDR 0x000B
50 #define PORTA_ADDR 0x000C
51 #define PIR1_ADDR 0x0011
52 #define PIR2_ADDR 0x0012
53 #define PIR3_ADDR 0x0013
54 #define TMR0_ADDR 0x0015
55 #define TMR1_ADDR 0x0016
56 #define TMR1L_ADDR 0x0016
57 #define TMR1H_ADDR 0x0017
58 #define T1CON_ADDR 0x0018
59 #define T1GCON_ADDR 0x0019
60 #define TMR2_ADDR 0x001A
61 #define PR2_ADDR 0x001B
62 #define T2CON_ADDR 0x001C
63 #define TRISA_ADDR 0x008C
64 #define PIE1_ADDR 0x0091
65 #define PIE2_ADDR 0x0092
66 #define PIE3_ADDR 0x0093
67 #define OPTION_REG_ADDR 0x0095
68 #define PCON_ADDR 0x0096
69 #define WDTCON_ADDR 0x0097
70 #define OSCCON_ADDR 0x0099
71 #define OSCSTAT_ADDR 0x009A
72 #define ADRES_ADDR 0x009B
73 #define ADRESL_ADDR 0x009B
74 #define ADRESH_ADDR 0x009C
75 #define ADCON0_ADDR 0x009D
76 #define ADCON1_ADDR 0x009E
77 #define ADCON2_ADDR 0x009F
78 #define LATA_ADDR 0x010C
79 #define CM1CON0_ADDR 0x0111
80 #define CM1CON1_ADDR 0x0112
81 #define CMOUT_ADDR 0x0115
82 #define BORCON_ADDR 0x0116
83 #define FVRCON_ADDR 0x0117
84 #define DACCON0_ADDR 0x0118
85 #define DACCON1_ADDR 0x0119
86 #define APFCON_ADDR 0x011D
87 #define ANSELA_ADDR 0x018C
88 #define PMADR_ADDR 0x0191
89 #define PMADRL_ADDR 0x0191
90 #define PMADRH_ADDR 0x0192
91 #define PMDAT_ADDR 0x0193
92 #define PMDATL_ADDR 0x0193
93 #define PMDATH_ADDR 0x0194
94 #define PMCON1_ADDR 0x0195
95 #define PMCON2_ADDR 0x0196
96 #define WPUA_ADDR 0x020C
97 #define IOCAP_ADDR 0x0391
98 #define IOCAN_ADDR 0x0392
99 #define IOCAF_ADDR 0x0393
100 #define NCO1ACC_ADDR 0x0498
101 #define NCO1ACCL_ADDR 0x0498
102 #define NCO1ACCH_ADDR 0x0499
103 #define NCO1ACCU_ADDR 0x049A
104 #define NCO1INC_ADDR 0x049B
105 #define NCO1INCL_ADDR 0x049B
106 #define NCO1INCH_ADDR 0x049C
107 #define NCO1INCU_ADDR 0x049D
108 #define NCO1CON_ADDR 0x049E
109 #define NCO1CLK_ADDR 0x049F
110 #define PWM1DCL_ADDR 0x0611
111 #define PWM1DCH_ADDR 0x0612
112 #define PWM1CON_ADDR 0x0613
113 #define PWM1CON0_ADDR 0x0613
114 #define PWM2DCL_ADDR 0x0614
115 #define PWM2DCH_ADDR 0x0615
116 #define PWM2CON_ADDR 0x0616
117 #define PWM2CON0_ADDR 0x0616
118 #define PWM3DCL_ADDR 0x0617
119 #define PWM3DCH_ADDR 0x0618
120 #define PWM3CON_ADDR 0x0619
121 #define PWM3CON0_ADDR 0x0619
122 #define PWM4DCL_ADDR 0x061A
123 #define PWM4DCH_ADDR 0x061B
124 #define PWM4CON_ADDR 0x061C
125 #define PWM4CON0_ADDR 0x061C
126 #define CWG1DBR_ADDR 0x0691
127 #define CWG1DBF_ADDR 0x0692
128 #define CWG1CON0_ADDR 0x0693
129 #define CWG1CON1_ADDR 0x0694
130 #define CWG1CON2_ADDR 0x0695
131 #define CLCDATA_ADDR 0x0F0F
132 #define CLC1CON_ADDR 0x0F10
133 #define CLC1POL_ADDR 0x0F11
134 #define CLC1SEL0_ADDR 0x0F12
135 #define CLC1SEL1_ADDR 0x0F13
136 #define CLC1GLS0_ADDR 0x0F14
137 #define CLC1GLS1_ADDR 0x0F15
138 #define CLC1GLS2_ADDR 0x0F16
139 #define CLC1GLS3_ADDR 0x0F17
140 #define CLC2CON_ADDR 0x0F18
141 #define CLC2POL_ADDR 0x0F19
142 #define CLC2SEL0_ADDR 0x0F1A
143 #define CLC2SEL1_ADDR 0x0F1B
144 #define CLC2GLS0_ADDR 0x0F1C
145 #define CLC2GLS1_ADDR 0x0F1D
146 #define CLC2GLS2_ADDR 0x0F1E
147 #define CLC2GLS3_ADDR 0x0F1F
148 #define BSR_ICDSHAD_ADDR 0x0FE3
149 #define STATUS_SHAD_ADDR 0x0FE4
150 #define WREG_SHAD_ADDR 0x0FE5
151 #define BSR_SHAD_ADDR 0x0FE6
152 #define PCLATH_SHAD_ADDR 0x0FE7
153 #define FSR0L_SHAD_ADDR 0x0FE8
154 #define FSR0H_SHAD_ADDR 0x0FE9
155 #define FSR1L_SHAD_ADDR 0x0FEA
156 #define FSR1H_SHAD_ADDR 0x0FEB
157 #define STKPTR_ADDR 0x0FED
158 #define TOSL_ADDR 0x0FEE
159 #define TOSH_ADDR 0x0FEF
161 #endif // #ifndef NO_ADDR_DEFINES
163 //==============================================================================
165 // Register Definitions
167 //==============================================================================
169 extern __at(0x0000) __sfr INDF0
;
170 extern __at(0x0001) __sfr INDF1
;
171 extern __at(0x0002) __sfr PCL
;
173 //==============================================================================
176 extern __at(0x0003) __sfr STATUS
;
190 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
198 //==============================================================================
200 extern __at(0x0004) __sfr FSR0
;
201 extern __at(0x0004) __sfr FSR0L
;
202 extern __at(0x0005) __sfr FSR0H
;
203 extern __at(0x0006) __sfr FSR1
;
204 extern __at(0x0006) __sfr FSR1L
;
205 extern __at(0x0007) __sfr FSR1H
;
207 //==============================================================================
210 extern __at(0x0008) __sfr BSR
;
233 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
241 //==============================================================================
243 extern __at(0x0009) __sfr WREG
;
244 extern __at(0x000A) __sfr PCLATH
;
246 //==============================================================================
249 extern __at(0x000B) __sfr INTCON
;
278 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
291 //==============================================================================
294 //==============================================================================
297 extern __at(0x000C) __sfr PORTA
;
320 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
329 //==============================================================================
332 //==============================================================================
335 extern __at(0x0011) __sfr PIR1
;
346 unsigned TMR1GIF
: 1;
349 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
354 #define _TMR1GIF 0x80
356 //==============================================================================
359 //==============================================================================
362 extern __at(0x0012) __sfr PIR2
;
376 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
381 //==============================================================================
384 //==============================================================================
387 extern __at(0x0013) __sfr PIR3
;
401 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
406 //==============================================================================
408 extern __at(0x0015) __sfr TMR0
;
409 extern __at(0x0016) __sfr TMR1
;
410 extern __at(0x0016) __sfr TMR1L
;
411 extern __at(0x0017) __sfr TMR1H
;
413 //==============================================================================
416 extern __at(0x0018) __sfr T1CON
;
424 unsigned NOT_T1SYNC
: 1;
426 unsigned T1CKPS0
: 1;
427 unsigned T1CKPS1
: 1;
428 unsigned TMR1CS0
: 1;
429 unsigned TMR1CS1
: 1;
446 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
449 #define _NOT_T1SYNC 0x04
450 #define _T1CKPS0 0x10
451 #define _T1CKPS1 0x20
452 #define _TMR1CS0 0x40
453 #define _TMR1CS1 0x80
455 //==============================================================================
458 //==============================================================================
461 extern __at(0x0019) __sfr T1GCON
;
470 unsigned T1GGO_NOT_DONE
: 1;
484 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
489 #define _T1GGO_NOT_DONE 0x08
495 //==============================================================================
497 extern __at(0x001A) __sfr TMR2
;
498 extern __at(0x001B) __sfr PR2
;
500 //==============================================================================
503 extern __at(0x001C) __sfr T2CON
;
509 unsigned T2CKPS0
: 1;
510 unsigned T2CKPS1
: 1;
512 unsigned TOUTPS0
: 1;
513 unsigned TOUTPS1
: 1;
514 unsigned TOUTPS2
: 1;
515 unsigned TOUTPS3
: 1;
533 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
535 #define _T2CKPS0 0x01
536 #define _T2CKPS1 0x02
538 #define _TOUTPS0 0x08
539 #define _TOUTPS1 0x10
540 #define _TOUTPS2 0x20
541 #define _TOUTPS3 0x40
543 //==============================================================================
546 //==============================================================================
549 extern __at(0x008C) __sfr TRISA
;
572 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
581 //==============================================================================
584 //==============================================================================
587 extern __at(0x0091) __sfr PIE1
;
598 unsigned TMR1GIE
: 1;
601 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
606 #define _TMR1GIE 0x80
608 //==============================================================================
611 //==============================================================================
614 extern __at(0x0092) __sfr PIE2
;
628 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
633 //==============================================================================
636 //==============================================================================
639 extern __at(0x0093) __sfr PIE3
;
653 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
658 //==============================================================================
661 //==============================================================================
664 extern __at(0x0095) __sfr OPTION_REG
;
677 unsigned NOT_WPUEN
: 1;
697 } __OPTION_REGbits_t
;
699 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
710 #define _NOT_WPUEN 0x80
712 //==============================================================================
715 //==============================================================================
718 extern __at(0x0096) __sfr PCON
;
722 unsigned NOT_BOR
: 1;
723 unsigned NOT_POR
: 1;
725 unsigned NOT_RMCLR
: 1;
726 unsigned NOT_RWDT
: 1;
732 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
734 #define _NOT_BOR 0x01
735 #define _NOT_POR 0x02
737 #define _NOT_RMCLR 0x08
738 #define _NOT_RWDT 0x10
742 //==============================================================================
745 //==============================================================================
748 extern __at(0x0097) __sfr WDTCON
;
772 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
781 //==============================================================================
784 //==============================================================================
787 extern __at(0x0099) __sfr OSCCON
;
817 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
826 //==============================================================================
829 //==============================================================================
832 extern __at(0x009A) __sfr OSCSTAT
;
846 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
852 //==============================================================================
854 extern __at(0x009B) __sfr ADRES
;
855 extern __at(0x009B) __sfr ADRESL
;
856 extern __at(0x009C) __sfr ADRESH
;
858 //==============================================================================
861 extern __at(0x009D) __sfr ADCON0
;
868 unsigned GO_NOT_DONE
: 1;
909 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
912 #define _GO_NOT_DONE 0x02
921 //==============================================================================
924 //==============================================================================
927 extern __at(0x009E) __sfr ADCON1
;
933 unsigned ADPREF0
: 1;
934 unsigned ADPREF1
: 1;
950 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
952 #define _ADPREF0 0x01
953 #define _ADPREF1 0x02
956 //==============================================================================
959 //==============================================================================
962 extern __at(0x009F) __sfr ADCON2
;
972 unsigned TRIGSEL0
: 1;
973 unsigned TRIGSEL1
: 1;
974 unsigned TRIGSEL2
: 1;
975 unsigned TRIGSEL3
: 1;
981 unsigned TRIGSEL
: 4;
985 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
987 #define _TRIGSEL0 0x10
988 #define _TRIGSEL1 0x20
989 #define _TRIGSEL2 0x40
990 #define _TRIGSEL3 0x80
992 //==============================================================================
995 //==============================================================================
998 extern __at(0x010C) __sfr LATA
;
1012 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1020 //==============================================================================
1023 //==============================================================================
1026 extern __at(0x0111) __sfr CM1CON0
;
1030 unsigned C1SYNC
: 1;
1040 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1042 #define _C1SYNC 0x01
1050 //==============================================================================
1053 //==============================================================================
1056 extern __at(0x0112) __sfr CM1CON1
;
1062 unsigned C1NCH0
: 1;
1063 unsigned C1NCH1
: 1;
1064 unsigned C1NCH2
: 1;
1066 unsigned C1PCH0
: 1;
1067 unsigned C1PCH1
: 1;
1068 unsigned C1INTN
: 1;
1069 unsigned C1INTP
: 1;
1086 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1088 #define _C1NCH0 0x01
1089 #define _C1NCH1 0x02
1090 #define _C1NCH2 0x04
1091 #define _C1PCH0 0x10
1092 #define _C1PCH1 0x20
1093 #define _C1INTN 0x40
1094 #define _C1INTP 0x80
1096 //==============================================================================
1099 //==============================================================================
1102 extern __at(0x0115) __sfr CMOUT
;
1106 unsigned MC1OUT
: 1;
1116 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1118 #define _MC1OUT 0x01
1120 //==============================================================================
1123 //==============================================================================
1126 extern __at(0x0116) __sfr BORCON
;
1130 unsigned BORRDY
: 1;
1137 unsigned SBOREN
: 1;
1140 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1142 #define _BORRDY 0x01
1144 #define _SBOREN 0x80
1146 //==============================================================================
1149 //==============================================================================
1152 extern __at(0x0117) __sfr FVRCON
;
1158 unsigned ADFVR0
: 1;
1159 unsigned ADFVR1
: 1;
1160 unsigned CDAFVR0
: 1;
1161 unsigned CDAFVR1
: 1;
1164 unsigned FVRRDY
: 1;
1177 unsigned CDAFVR
: 2;
1182 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1184 #define _ADFVR0 0x01
1185 #define _ADFVR1 0x02
1186 #define _CDAFVR0 0x04
1187 #define _CDAFVR1 0x08
1190 #define _FVRRDY 0x40
1193 //==============================================================================
1196 //==============================================================================
1199 extern __at(0x0118) __sfr DACCON0
;
1205 unsigned DACPSS
: 1;
1207 unsigned DACOE2
: 1;
1208 unsigned DACOE1
: 1;
1213 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1215 #define _DACPSS 0x04
1216 #define _DACOE2 0x10
1217 #define _DACOE1 0x20
1220 //==============================================================================
1223 //==============================================================================
1226 extern __at(0x0119) __sfr DACCON1
;
1249 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1257 //==============================================================================
1260 //==============================================================================
1263 extern __at(0x011D) __sfr APFCON
;
1267 unsigned NCO1SEL
: 1;
1268 unsigned CLC1SEL
: 1;
1270 unsigned T1GSEL
: 1;
1273 unsigned CWG1ASEL
: 1;
1274 unsigned CWG1BSEL
: 1;
1277 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
1279 #define _NCO1SEL 0x01
1280 #define _CLC1SEL 0x02
1281 #define _T1GSEL 0x08
1282 #define _CWG1ASEL 0x40
1283 #define _CWG1BSEL 0x80
1285 //==============================================================================
1288 //==============================================================================
1291 extern __at(0x018C) __sfr ANSELA
;
1305 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
1312 //==============================================================================
1314 extern __at(0x0191) __sfr PMADR
;
1315 extern __at(0x0191) __sfr PMADRL
;
1316 extern __at(0x0192) __sfr PMADRH
;
1317 extern __at(0x0193) __sfr PMDAT
;
1318 extern __at(0x0193) __sfr PMDATL
;
1319 extern __at(0x0194) __sfr PMDATH
;
1321 //==============================================================================
1324 extern __at(0x0195) __sfr PMCON1
;
1338 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits
;
1348 //==============================================================================
1350 extern __at(0x0196) __sfr PMCON2
;
1352 //==============================================================================
1355 extern __at(0x020C) __sfr WPUA
;
1378 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
1387 //==============================================================================
1390 //==============================================================================
1393 extern __at(0x0391) __sfr IOCAP
;
1399 unsigned IOCAP0
: 1;
1400 unsigned IOCAP1
: 1;
1401 unsigned IOCAP2
: 1;
1402 unsigned IOCAP3
: 1;
1403 unsigned IOCAP4
: 1;
1404 unsigned IOCAP5
: 1;
1416 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
1418 #define _IOCAP0 0x01
1419 #define _IOCAP1 0x02
1420 #define _IOCAP2 0x04
1421 #define _IOCAP3 0x08
1422 #define _IOCAP4 0x10
1423 #define _IOCAP5 0x20
1425 //==============================================================================
1428 //==============================================================================
1431 extern __at(0x0392) __sfr IOCAN
;
1437 unsigned IOCAN0
: 1;
1438 unsigned IOCAN1
: 1;
1439 unsigned IOCAN2
: 1;
1440 unsigned IOCAN3
: 1;
1441 unsigned IOCAN4
: 1;
1442 unsigned IOCAN5
: 1;
1454 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
1456 #define _IOCAN0 0x01
1457 #define _IOCAN1 0x02
1458 #define _IOCAN2 0x04
1459 #define _IOCAN3 0x08
1460 #define _IOCAN4 0x10
1461 #define _IOCAN5 0x20
1463 //==============================================================================
1466 //==============================================================================
1469 extern __at(0x0393) __sfr IOCAF
;
1475 unsigned IOCAF0
: 1;
1476 unsigned IOCAF1
: 1;
1477 unsigned IOCAF2
: 1;
1478 unsigned IOCAF3
: 1;
1479 unsigned IOCAF4
: 1;
1480 unsigned IOCAF5
: 1;
1492 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
1494 #define _IOCAF0 0x01
1495 #define _IOCAF1 0x02
1496 #define _IOCAF2 0x04
1497 #define _IOCAF3 0x08
1498 #define _IOCAF4 0x10
1499 #define _IOCAF5 0x20
1501 //==============================================================================
1503 extern __at(0x0498) __sfr NCO1ACC
;
1505 //==============================================================================
1508 extern __at(0x0498) __sfr NCO1ACCL
;
1512 unsigned NCO1ACC0
: 1;
1513 unsigned NCO1ACC1
: 1;
1514 unsigned NCO1ACC2
: 1;
1515 unsigned NCO1ACC3
: 1;
1516 unsigned NCO1ACC4
: 1;
1517 unsigned NCO1ACC5
: 1;
1518 unsigned NCO1ACC6
: 1;
1519 unsigned NCO1ACC7
: 1;
1522 extern __at(0x0498) volatile __NCO1ACCLbits_t NCO1ACCLbits
;
1524 #define _NCO1ACC0 0x01
1525 #define _NCO1ACC1 0x02
1526 #define _NCO1ACC2 0x04
1527 #define _NCO1ACC3 0x08
1528 #define _NCO1ACC4 0x10
1529 #define _NCO1ACC5 0x20
1530 #define _NCO1ACC6 0x40
1531 #define _NCO1ACC7 0x80
1533 //==============================================================================
1536 //==============================================================================
1539 extern __at(0x0499) __sfr NCO1ACCH
;
1543 unsigned NCO1ACC8
: 1;
1544 unsigned NCO1ACC9
: 1;
1545 unsigned NCO1ACC10
: 1;
1546 unsigned NCO1ACC11
: 1;
1547 unsigned NCO1ACC12
: 1;
1548 unsigned NCO1ACC13
: 1;
1549 unsigned NCO1ACC14
: 1;
1550 unsigned NCO1ACC15
: 1;
1553 extern __at(0x0499) volatile __NCO1ACCHbits_t NCO1ACCHbits
;
1555 #define _NCO1ACC8 0x01
1556 #define _NCO1ACC9 0x02
1557 #define _NCO1ACC10 0x04
1558 #define _NCO1ACC11 0x08
1559 #define _NCO1ACC12 0x10
1560 #define _NCO1ACC13 0x20
1561 #define _NCO1ACC14 0x40
1562 #define _NCO1ACC15 0x80
1564 //==============================================================================
1567 //==============================================================================
1570 extern __at(0x049A) __sfr NCO1ACCU
;
1574 unsigned NCO1ACC16
: 1;
1575 unsigned NCO1ACC17
: 1;
1576 unsigned NCO1ACC18
: 1;
1577 unsigned NCO1ACC19
: 1;
1584 extern __at(0x049A) volatile __NCO1ACCUbits_t NCO1ACCUbits
;
1586 #define _NCO1ACC16 0x01
1587 #define _NCO1ACC17 0x02
1588 #define _NCO1ACC18 0x04
1589 #define _NCO1ACC19 0x08
1591 //==============================================================================
1593 extern __at(0x049B) __sfr NCO1INC
;
1595 //==============================================================================
1598 extern __at(0x049B) __sfr NCO1INCL
;
1602 unsigned NCO1INC0
: 1;
1603 unsigned NCO1INC1
: 1;
1604 unsigned NCO1INC2
: 1;
1605 unsigned NCO1INC3
: 1;
1606 unsigned NCO1INC4
: 1;
1607 unsigned NCO1INC5
: 1;
1608 unsigned NCO1INC6
: 1;
1609 unsigned NCO1INC7
: 1;
1612 extern __at(0x049B) volatile __NCO1INCLbits_t NCO1INCLbits
;
1614 #define _NCO1INC0 0x01
1615 #define _NCO1INC1 0x02
1616 #define _NCO1INC2 0x04
1617 #define _NCO1INC3 0x08
1618 #define _NCO1INC4 0x10
1619 #define _NCO1INC5 0x20
1620 #define _NCO1INC6 0x40
1621 #define _NCO1INC7 0x80
1623 //==============================================================================
1626 //==============================================================================
1629 extern __at(0x049C) __sfr NCO1INCH
;
1633 unsigned NCO1INC8
: 1;
1634 unsigned NCO1INC9
: 1;
1635 unsigned NCO1INC10
: 1;
1636 unsigned NCO1INC11
: 1;
1637 unsigned NCO1INC12
: 1;
1638 unsigned NCO1INC13
: 1;
1639 unsigned NCO1INC14
: 1;
1640 unsigned NCO1INC15
: 1;
1643 extern __at(0x049C) volatile __NCO1INCHbits_t NCO1INCHbits
;
1645 #define _NCO1INC8 0x01
1646 #define _NCO1INC9 0x02
1647 #define _NCO1INC10 0x04
1648 #define _NCO1INC11 0x08
1649 #define _NCO1INC12 0x10
1650 #define _NCO1INC13 0x20
1651 #define _NCO1INC14 0x40
1652 #define _NCO1INC15 0x80
1654 //==============================================================================
1656 extern __at(0x049D) __sfr NCO1INCU
;
1658 //==============================================================================
1661 extern __at(0x049E) __sfr NCO1CON
;
1675 extern __at(0x049E) volatile __NCO1CONbits_t NCO1CONbits
;
1683 //==============================================================================
1686 //==============================================================================
1689 extern __at(0x049F) __sfr NCO1CLK
;
1695 unsigned N1CKS0
: 1;
1696 unsigned N1CKS1
: 1;
1700 unsigned N1PWS0
: 1;
1701 unsigned N1PWS1
: 1;
1702 unsigned N1PWS2
: 1;
1718 extern __at(0x049F) volatile __NCO1CLKbits_t NCO1CLKbits
;
1720 #define _N1CKS0 0x01
1721 #define _N1CKS1 0x02
1722 #define _N1PWS0 0x20
1723 #define _N1PWS1 0x40
1724 #define _N1PWS2 0x80
1726 //==============================================================================
1729 //==============================================================================
1732 extern __at(0x0611) __sfr PWM1DCL
;
1744 unsigned PWM1DCL0
: 1;
1745 unsigned PWM1DCL1
: 1;
1751 unsigned PWM1DCL
: 2;
1755 extern __at(0x0611) volatile __PWM1DCLbits_t PWM1DCLbits
;
1757 #define _PWM1DCL0 0x40
1758 #define _PWM1DCL1 0x80
1760 //==============================================================================
1763 //==============================================================================
1766 extern __at(0x0612) __sfr PWM1DCH
;
1770 unsigned PWM1DCH0
: 1;
1771 unsigned PWM1DCH1
: 1;
1772 unsigned PWM1DCH2
: 1;
1773 unsigned PWM1DCH3
: 1;
1774 unsigned PWM1DCH4
: 1;
1775 unsigned PWM1DCH5
: 1;
1776 unsigned PWM1DCH6
: 1;
1777 unsigned PWM1DCH7
: 1;
1780 extern __at(0x0612) volatile __PWM1DCHbits_t PWM1DCHbits
;
1782 #define _PWM1DCH0 0x01
1783 #define _PWM1DCH1 0x02
1784 #define _PWM1DCH2 0x04
1785 #define _PWM1DCH3 0x08
1786 #define _PWM1DCH4 0x10
1787 #define _PWM1DCH5 0x20
1788 #define _PWM1DCH6 0x40
1789 #define _PWM1DCH7 0x80
1791 //==============================================================================
1794 //==============================================================================
1797 extern __at(0x0613) __sfr PWM1CON
;
1805 unsigned PWM1POL
: 1;
1806 unsigned PWM1OUT
: 1;
1807 unsigned PWM1OE
: 1;
1808 unsigned PWM1EN
: 1;
1811 extern __at(0x0613) volatile __PWM1CONbits_t PWM1CONbits
;
1813 #define _PWM1POL 0x10
1814 #define _PWM1OUT 0x20
1815 #define _PWM1OE 0x40
1816 #define _PWM1EN 0x80
1818 //==============================================================================
1821 //==============================================================================
1824 extern __at(0x0613) __sfr PWM1CON0
;
1832 unsigned PWM1POL
: 1;
1833 unsigned PWM1OUT
: 1;
1834 unsigned PWM1OE
: 1;
1835 unsigned PWM1EN
: 1;
1838 extern __at(0x0613) volatile __PWM1CON0bits_t PWM1CON0bits
;
1840 #define _PWM1CON0_PWM1POL 0x10
1841 #define _PWM1CON0_PWM1OUT 0x20
1842 #define _PWM1CON0_PWM1OE 0x40
1843 #define _PWM1CON0_PWM1EN 0x80
1845 //==============================================================================
1848 //==============================================================================
1851 extern __at(0x0614) __sfr PWM2DCL
;
1863 unsigned PWM2DCL0
: 1;
1864 unsigned PWM2DCL1
: 1;
1870 unsigned PWM2DCL
: 2;
1874 extern __at(0x0614) volatile __PWM2DCLbits_t PWM2DCLbits
;
1876 #define _PWM2DCL0 0x40
1877 #define _PWM2DCL1 0x80
1879 //==============================================================================
1882 //==============================================================================
1885 extern __at(0x0615) __sfr PWM2DCH
;
1889 unsigned PWM2DCH0
: 1;
1890 unsigned PWM2DCH1
: 1;
1891 unsigned PWM2DCH2
: 1;
1892 unsigned PWM2DCH3
: 1;
1893 unsigned PWM2DCH4
: 1;
1894 unsigned PWM2DCH5
: 1;
1895 unsigned PWM2DCH6
: 1;
1896 unsigned PWM2DCH7
: 1;
1899 extern __at(0x0615) volatile __PWM2DCHbits_t PWM2DCHbits
;
1901 #define _PWM2DCH0 0x01
1902 #define _PWM2DCH1 0x02
1903 #define _PWM2DCH2 0x04
1904 #define _PWM2DCH3 0x08
1905 #define _PWM2DCH4 0x10
1906 #define _PWM2DCH5 0x20
1907 #define _PWM2DCH6 0x40
1908 #define _PWM2DCH7 0x80
1910 //==============================================================================
1913 //==============================================================================
1916 extern __at(0x0616) __sfr PWM2CON
;
1924 unsigned PWM2POL
: 1;
1925 unsigned PWM2OUT
: 1;
1926 unsigned PWM2OE
: 1;
1927 unsigned PWM2EN
: 1;
1930 extern __at(0x0616) volatile __PWM2CONbits_t PWM2CONbits
;
1932 #define _PWM2POL 0x10
1933 #define _PWM2OUT 0x20
1934 #define _PWM2OE 0x40
1935 #define _PWM2EN 0x80
1937 //==============================================================================
1940 //==============================================================================
1943 extern __at(0x0616) __sfr PWM2CON0
;
1951 unsigned PWM2POL
: 1;
1952 unsigned PWM2OUT
: 1;
1953 unsigned PWM2OE
: 1;
1954 unsigned PWM2EN
: 1;
1957 extern __at(0x0616) volatile __PWM2CON0bits_t PWM2CON0bits
;
1959 #define _PWM2CON0_PWM2POL 0x10
1960 #define _PWM2CON0_PWM2OUT 0x20
1961 #define _PWM2CON0_PWM2OE 0x40
1962 #define _PWM2CON0_PWM2EN 0x80
1964 //==============================================================================
1967 //==============================================================================
1970 extern __at(0x0617) __sfr PWM3DCL
;
1982 unsigned PWM3DCL0
: 1;
1983 unsigned PWM3DCL1
: 1;
1989 unsigned PWM3DCL
: 2;
1993 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits
;
1995 #define _PWM3DCL0 0x40
1996 #define _PWM3DCL1 0x80
1998 //==============================================================================
2001 //==============================================================================
2004 extern __at(0x0618) __sfr PWM3DCH
;
2008 unsigned PWM3DCH0
: 1;
2009 unsigned PWM3DCH1
: 1;
2010 unsigned PWM3DCH2
: 1;
2011 unsigned PWM3DCH3
: 1;
2012 unsigned PWM3DCH4
: 1;
2013 unsigned PWM3DCH5
: 1;
2014 unsigned PWM3DCH6
: 1;
2015 unsigned PWM3DCH7
: 1;
2018 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits
;
2020 #define _PWM3DCH0 0x01
2021 #define _PWM3DCH1 0x02
2022 #define _PWM3DCH2 0x04
2023 #define _PWM3DCH3 0x08
2024 #define _PWM3DCH4 0x10
2025 #define _PWM3DCH5 0x20
2026 #define _PWM3DCH6 0x40
2027 #define _PWM3DCH7 0x80
2029 //==============================================================================
2032 //==============================================================================
2035 extern __at(0x0619) __sfr PWM3CON
;
2043 unsigned PWM3POL
: 1;
2044 unsigned PWM3OUT
: 1;
2045 unsigned PWM3OE
: 1;
2046 unsigned PWM3EN
: 1;
2049 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits
;
2051 #define _PWM3POL 0x10
2052 #define _PWM3OUT 0x20
2053 #define _PWM3OE 0x40
2054 #define _PWM3EN 0x80
2056 //==============================================================================
2059 //==============================================================================
2062 extern __at(0x0619) __sfr PWM3CON0
;
2070 unsigned PWM3POL
: 1;
2071 unsigned PWM3OUT
: 1;
2072 unsigned PWM3OE
: 1;
2073 unsigned PWM3EN
: 1;
2076 extern __at(0x0619) volatile __PWM3CON0bits_t PWM3CON0bits
;
2078 #define _PWM3CON0_PWM3POL 0x10
2079 #define _PWM3CON0_PWM3OUT 0x20
2080 #define _PWM3CON0_PWM3OE 0x40
2081 #define _PWM3CON0_PWM3EN 0x80
2083 //==============================================================================
2086 //==============================================================================
2089 extern __at(0x061A) __sfr PWM4DCL
;
2101 unsigned PWM4DCL0
: 1;
2102 unsigned PWM4DCL1
: 1;
2108 unsigned PWM4DCL
: 2;
2112 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits
;
2114 #define _PWM4DCL0 0x40
2115 #define _PWM4DCL1 0x80
2117 //==============================================================================
2120 //==============================================================================
2123 extern __at(0x061B) __sfr PWM4DCH
;
2127 unsigned PWM4DCH0
: 1;
2128 unsigned PWM4DCH1
: 1;
2129 unsigned PWM4DCH2
: 1;
2130 unsigned PWM4DCH3
: 1;
2131 unsigned PWM4DCH4
: 1;
2132 unsigned PWM4DCH5
: 1;
2133 unsigned PWM4DCH6
: 1;
2134 unsigned PWM4DCH7
: 1;
2137 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits
;
2139 #define _PWM4DCH0 0x01
2140 #define _PWM4DCH1 0x02
2141 #define _PWM4DCH2 0x04
2142 #define _PWM4DCH3 0x08
2143 #define _PWM4DCH4 0x10
2144 #define _PWM4DCH5 0x20
2145 #define _PWM4DCH6 0x40
2146 #define _PWM4DCH7 0x80
2148 //==============================================================================
2151 //==============================================================================
2154 extern __at(0x061C) __sfr PWM4CON
;
2162 unsigned PWM4POL
: 1;
2163 unsigned PWM4OUT
: 1;
2164 unsigned PWM4OE
: 1;
2165 unsigned PWM4EN
: 1;
2168 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits
;
2170 #define _PWM4POL 0x10
2171 #define _PWM4OUT 0x20
2172 #define _PWM4OE 0x40
2173 #define _PWM4EN 0x80
2175 //==============================================================================
2178 //==============================================================================
2181 extern __at(0x061C) __sfr PWM4CON0
;
2189 unsigned PWM4POL
: 1;
2190 unsigned PWM4OUT
: 1;
2191 unsigned PWM4OE
: 1;
2192 unsigned PWM4EN
: 1;
2195 extern __at(0x061C) volatile __PWM4CON0bits_t PWM4CON0bits
;
2197 #define _PWM4CON0_PWM4POL 0x10
2198 #define _PWM4CON0_PWM4OUT 0x20
2199 #define _PWM4CON0_PWM4OE 0x40
2200 #define _PWM4CON0_PWM4EN 0x80
2202 //==============================================================================
2205 //==============================================================================
2208 extern __at(0x0691) __sfr CWG1DBR
;
2214 unsigned CWG1DBR0
: 1;
2215 unsigned CWG1DBR1
: 1;
2216 unsigned CWG1DBR2
: 1;
2217 unsigned CWG1DBR3
: 1;
2218 unsigned CWG1DBR4
: 1;
2219 unsigned CWG1DBR5
: 1;
2226 unsigned CWG1DBR
: 6;
2231 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits
;
2233 #define _CWG1DBR0 0x01
2234 #define _CWG1DBR1 0x02
2235 #define _CWG1DBR2 0x04
2236 #define _CWG1DBR3 0x08
2237 #define _CWG1DBR4 0x10
2238 #define _CWG1DBR5 0x20
2240 //==============================================================================
2243 //==============================================================================
2246 extern __at(0x0692) __sfr CWG1DBF
;
2252 unsigned CWG1DBF0
: 1;
2253 unsigned CWG1DBF1
: 1;
2254 unsigned CWG1DBF2
: 1;
2255 unsigned CWG1DBF3
: 1;
2256 unsigned CWG1DBF4
: 1;
2257 unsigned CWG1DBF5
: 1;
2264 unsigned CWG1DBF
: 6;
2269 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits
;
2271 #define _CWG1DBF0 0x01
2272 #define _CWG1DBF1 0x02
2273 #define _CWG1DBF2 0x04
2274 #define _CWG1DBF3 0x08
2275 #define _CWG1DBF4 0x10
2276 #define _CWG1DBF5 0x20
2278 //==============================================================================
2281 //==============================================================================
2284 extern __at(0x0693) __sfr CWG1CON0
;
2291 unsigned G1POLA
: 1;
2292 unsigned G1POLB
: 1;
2298 extern __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits
;
2301 #define _G1POLA 0x08
2302 #define _G1POLB 0x10
2307 //==============================================================================
2310 //==============================================================================
2313 extern __at(0x0694) __sfr CWG1CON1
;
2323 unsigned G1ASDLA0
: 1;
2324 unsigned G1ASDLA1
: 1;
2325 unsigned G1ASDLB0
: 1;
2326 unsigned G1ASDLB1
: 1;
2338 unsigned G1ASDLA
: 2;
2345 unsigned G1ASDLB
: 2;
2349 extern __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits
;
2354 #define _G1ASDLA0 0x10
2355 #define _G1ASDLA1 0x20
2356 #define _G1ASDLB0 0x40
2357 #define _G1ASDLB1 0x80
2359 //==============================================================================
2362 //==============================================================================
2365 extern __at(0x0695) __sfr CWG1CON2
;
2369 unsigned G1ASDSCLC2
: 1;
2370 unsigned G1ASDSFLT
: 1;
2371 unsigned G1ASDSC1
: 1;
2375 unsigned G1ARSEN
: 1;
2379 extern __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits
;
2381 #define _G1ASDSCLC2 0x01
2382 #define _G1ASDSFLT 0x02
2383 #define _G1ASDSC1 0x04
2384 #define _G1ARSEN 0x40
2387 //==============================================================================
2390 //==============================================================================
2393 extern __at(0x0F0F) __sfr CLCDATA
;
2397 unsigned MCLC1OUT
: 1;
2398 unsigned MCLC2OUT
: 1;
2407 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits
;
2409 #define _MCLC1OUT 0x01
2410 #define _MCLC2OUT 0x02
2412 //==============================================================================
2415 //==============================================================================
2418 extern __at(0x0F10) __sfr CLC1CON
;
2424 unsigned LC1MODE0
: 1;
2425 unsigned LC1MODE1
: 1;
2426 unsigned LC1MODE2
: 1;
2427 unsigned LC1INTN
: 1;
2428 unsigned LC1INTP
: 1;
2429 unsigned LC1OUT
: 1;
2436 unsigned LCMODE0
: 1;
2437 unsigned LCMODE1
: 1;
2438 unsigned LCMODE2
: 1;
2439 unsigned LCINTN
: 1;
2440 unsigned LCINTP
: 1;
2448 unsigned LCMODE
: 3;
2454 unsigned LC1MODE
: 3;
2459 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits
;
2461 #define _LC1MODE0 0x01
2462 #define _LCMODE0 0x01
2463 #define _LC1MODE1 0x02
2464 #define _LCMODE1 0x02
2465 #define _LC1MODE2 0x04
2466 #define _LCMODE2 0x04
2467 #define _LC1INTN 0x08
2468 #define _LCINTN 0x08
2469 #define _LC1INTP 0x10
2470 #define _LCINTP 0x10
2471 #define _LC1OUT 0x20
2478 //==============================================================================
2481 //==============================================================================
2484 extern __at(0x0F11) __sfr CLC1POL
;
2490 unsigned LC1G1POL
: 1;
2491 unsigned LC1G2POL
: 1;
2492 unsigned LC1G3POL
: 1;
2493 unsigned LC1G4POL
: 1;
2497 unsigned LC1POL
: 1;
2513 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits
;
2515 #define _LC1G1POL 0x01
2517 #define _LC1G2POL 0x02
2519 #define _LC1G3POL 0x04
2521 #define _LC1G4POL 0x08
2523 #define _LC1POL 0x80
2526 //==============================================================================
2529 //==============================================================================
2532 extern __at(0x0F12) __sfr CLC1SEL0
;
2538 unsigned LC1D1S0
: 1;
2539 unsigned LC1D1S1
: 1;
2540 unsigned LC1D1S2
: 1;
2542 unsigned LC1D2S0
: 1;
2543 unsigned LC1D2S1
: 1;
2544 unsigned LC1D2S2
: 1;
2562 unsigned LC1D1S
: 3;
2575 unsigned LC1D2S
: 3;
2587 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits
;
2589 #define _LC1D1S0 0x01
2591 #define _LC1D1S1 0x02
2593 #define _LC1D1S2 0x04
2595 #define _LC1D2S0 0x10
2597 #define _LC1D2S1 0x20
2599 #define _LC1D2S2 0x40
2602 //==============================================================================
2605 //==============================================================================
2608 extern __at(0x0F13) __sfr CLC1SEL1
;
2614 unsigned LC1D3S0
: 1;
2615 unsigned LC1D3S1
: 1;
2616 unsigned LC1D3S2
: 1;
2618 unsigned LC1D4S0
: 1;
2619 unsigned LC1D4S1
: 1;
2620 unsigned LC1D4S2
: 1;
2644 unsigned LC1D3S
: 3;
2651 unsigned LC1D4S
: 3;
2663 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits
;
2665 #define _LC1D3S0 0x01
2667 #define _LC1D3S1 0x02
2669 #define _LC1D3S2 0x04
2671 #define _LC1D4S0 0x10
2673 #define _LC1D4S1 0x20
2675 #define _LC1D4S2 0x40
2678 //==============================================================================
2681 //==============================================================================
2684 extern __at(0x0F14) __sfr CLC1GLS0
;
2690 unsigned LC1G1D1N
: 1;
2691 unsigned LC1G1D1T
: 1;
2692 unsigned LC1G1D2N
: 1;
2693 unsigned LC1G1D2T
: 1;
2694 unsigned LC1G1D3N
: 1;
2695 unsigned LC1G1D3T
: 1;
2696 unsigned LC1G1D4N
: 1;
2697 unsigned LC1G1D4T
: 1;
2713 extern __at(0x0F14) volatile __CLC1GLS0bits_t CLC1GLS0bits
;
2715 #define _LC1G1D1N 0x01
2717 #define _LC1G1D1T 0x02
2719 #define _LC1G1D2N 0x04
2721 #define _LC1G1D2T 0x08
2723 #define _LC1G1D3N 0x10
2725 #define _LC1G1D3T 0x20
2727 #define _LC1G1D4N 0x40
2729 #define _LC1G1D4T 0x80
2732 //==============================================================================
2735 //==============================================================================
2738 extern __at(0x0F15) __sfr CLC1GLS1
;
2744 unsigned LC1G2D1N
: 1;
2745 unsigned LC1G2D1T
: 1;
2746 unsigned LC1G2D2N
: 1;
2747 unsigned LC1G2D2T
: 1;
2748 unsigned LC1G2D3N
: 1;
2749 unsigned LC1G2D3T
: 1;
2750 unsigned LC1G2D4N
: 1;
2751 unsigned LC1G2D4T
: 1;
2767 extern __at(0x0F15) volatile __CLC1GLS1bits_t CLC1GLS1bits
;
2769 #define _CLC1GLS1_LC1G2D1N 0x01
2770 #define _CLC1GLS1_D1N 0x01
2771 #define _CLC1GLS1_LC1G2D1T 0x02
2772 #define _CLC1GLS1_D1T 0x02
2773 #define _CLC1GLS1_LC1G2D2N 0x04
2774 #define _CLC1GLS1_D2N 0x04
2775 #define _CLC1GLS1_LC1G2D2T 0x08
2776 #define _CLC1GLS1_D2T 0x08
2777 #define _CLC1GLS1_LC1G2D3N 0x10
2778 #define _CLC1GLS1_D3N 0x10
2779 #define _CLC1GLS1_LC1G2D3T 0x20
2780 #define _CLC1GLS1_D3T 0x20
2781 #define _CLC1GLS1_LC1G2D4N 0x40
2782 #define _CLC1GLS1_D4N 0x40
2783 #define _CLC1GLS1_LC1G2D4T 0x80
2784 #define _CLC1GLS1_D4T 0x80
2786 //==============================================================================
2789 //==============================================================================
2792 extern __at(0x0F16) __sfr CLC1GLS2
;
2798 unsigned LC1G3D1N
: 1;
2799 unsigned LC1G3D1T
: 1;
2800 unsigned LC1G3D2N
: 1;
2801 unsigned LC1G3D2T
: 1;
2802 unsigned LC1G3D3N
: 1;
2803 unsigned LC1G3D3T
: 1;
2804 unsigned LC1G3D4N
: 1;
2805 unsigned LC1G3D4T
: 1;
2821 extern __at(0x0F16) volatile __CLC1GLS2bits_t CLC1GLS2bits
;
2823 #define _CLC1GLS2_LC1G3D1N 0x01
2824 #define _CLC1GLS2_D1N 0x01
2825 #define _CLC1GLS2_LC1G3D1T 0x02
2826 #define _CLC1GLS2_D1T 0x02
2827 #define _CLC1GLS2_LC1G3D2N 0x04
2828 #define _CLC1GLS2_D2N 0x04
2829 #define _CLC1GLS2_LC1G3D2T 0x08
2830 #define _CLC1GLS2_D2T 0x08
2831 #define _CLC1GLS2_LC1G3D3N 0x10
2832 #define _CLC1GLS2_D3N 0x10
2833 #define _CLC1GLS2_LC1G3D3T 0x20
2834 #define _CLC1GLS2_D3T 0x20
2835 #define _CLC1GLS2_LC1G3D4N 0x40
2836 #define _CLC1GLS2_D4N 0x40
2837 #define _CLC1GLS2_LC1G3D4T 0x80
2838 #define _CLC1GLS2_D4T 0x80
2840 //==============================================================================
2843 //==============================================================================
2846 extern __at(0x0F17) __sfr CLC1GLS3
;
2852 unsigned LC1G4D1N
: 1;
2853 unsigned LC1G4D1T
: 1;
2854 unsigned LC1G4D2N
: 1;
2855 unsigned LC1G4D2T
: 1;
2856 unsigned LC1G4D3N
: 1;
2857 unsigned LC1G4D3T
: 1;
2858 unsigned LC1G4D4N
: 1;
2859 unsigned LC1G4D4T
: 1;
2875 extern __at(0x0F17) volatile __CLC1GLS3bits_t CLC1GLS3bits
;
2877 #define _LC1G4D1N 0x01
2879 #define _LC1G4D1T 0x02
2881 #define _LC1G4D2N 0x04
2883 #define _LC1G4D2T 0x08
2885 #define _LC1G4D3N 0x10
2887 #define _LC1G4D3T 0x20
2889 #define _LC1G4D4N 0x40
2891 #define _LC1G4D4T 0x80
2894 //==============================================================================
2897 //==============================================================================
2900 extern __at(0x0F18) __sfr CLC2CON
;
2906 unsigned LC2MODE0
: 1;
2907 unsigned LC2MODE1
: 1;
2908 unsigned LC2MODE2
: 1;
2909 unsigned LC2INTN
: 1;
2910 unsigned LC2INTP
: 1;
2911 unsigned LC2OUT
: 1;
2918 unsigned LCMODE0
: 1;
2919 unsigned LCMODE1
: 1;
2920 unsigned LCMODE2
: 1;
2921 unsigned LCINTN
: 1;
2922 unsigned LCINTP
: 1;
2930 unsigned LC2MODE
: 3;
2936 unsigned LCMODE
: 3;
2941 extern __at(0x0F18) volatile __CLC2CONbits_t CLC2CONbits
;
2943 #define _CLC2CON_LC2MODE0 0x01
2944 #define _CLC2CON_LCMODE0 0x01
2945 #define _CLC2CON_LC2MODE1 0x02
2946 #define _CLC2CON_LCMODE1 0x02
2947 #define _CLC2CON_LC2MODE2 0x04
2948 #define _CLC2CON_LCMODE2 0x04
2949 #define _CLC2CON_LC2INTN 0x08
2950 #define _CLC2CON_LCINTN 0x08
2951 #define _CLC2CON_LC2INTP 0x10
2952 #define _CLC2CON_LCINTP 0x10
2953 #define _CLC2CON_LC2OUT 0x20
2954 #define _CLC2CON_LCOUT 0x20
2955 #define _CLC2CON_LC2OE 0x40
2956 #define _CLC2CON_LCOE 0x40
2957 #define _CLC2CON_LC2EN 0x80
2958 #define _CLC2CON_LCEN 0x80
2960 //==============================================================================
2963 //==============================================================================
2966 extern __at(0x0F19) __sfr CLC2POL
;
2972 unsigned LC2G1POL
: 1;
2973 unsigned LC2G2POL
: 1;
2974 unsigned LC2G3POL
: 1;
2975 unsigned LC2G4POL
: 1;
2979 unsigned LC2POL
: 1;
2995 extern __at(0x0F19) volatile __CLC2POLbits_t CLC2POLbits
;
2997 #define _CLC2POL_LC2G1POL 0x01
2998 #define _CLC2POL_G1POL 0x01
2999 #define _CLC2POL_LC2G2POL 0x02
3000 #define _CLC2POL_G2POL 0x02
3001 #define _CLC2POL_LC2G3POL 0x04
3002 #define _CLC2POL_G3POL 0x04
3003 #define _CLC2POL_LC2G4POL 0x08
3004 #define _CLC2POL_G4POL 0x08
3005 #define _CLC2POL_LC2POL 0x80
3006 #define _CLC2POL_POL 0x80
3008 //==============================================================================
3011 //==============================================================================
3014 extern __at(0x0F1A) __sfr CLC2SEL0
;
3020 unsigned LC2D1S0
: 1;
3021 unsigned LC2D1S1
: 1;
3022 unsigned LC2D1S2
: 1;
3024 unsigned LC2D2S0
: 1;
3025 unsigned LC2D2S1
: 1;
3026 unsigned LC2D2S2
: 1;
3050 unsigned LC2D1S
: 3;
3057 unsigned LC2D2S
: 3;
3069 extern __at(0x0F1A) volatile __CLC2SEL0bits_t CLC2SEL0bits
;
3071 #define _CLC2SEL0_LC2D1S0 0x01
3072 #define _CLC2SEL0_D1S0 0x01
3073 #define _CLC2SEL0_LC2D1S1 0x02
3074 #define _CLC2SEL0_D1S1 0x02
3075 #define _CLC2SEL0_LC2D1S2 0x04
3076 #define _CLC2SEL0_D1S2 0x04
3077 #define _CLC2SEL0_LC2D2S0 0x10
3078 #define _CLC2SEL0_D2S0 0x10
3079 #define _CLC2SEL0_LC2D2S1 0x20
3080 #define _CLC2SEL0_D2S1 0x20
3081 #define _CLC2SEL0_LC2D2S2 0x40
3082 #define _CLC2SEL0_D2S2 0x40
3084 //==============================================================================
3087 //==============================================================================
3090 extern __at(0x0F1B) __sfr CLC2SEL1
;
3096 unsigned LC2D3S0
: 1;
3097 unsigned LC2D3S1
: 1;
3098 unsigned LC2D3S2
: 1;
3100 unsigned LC2D4S0
: 1;
3101 unsigned LC2D4S1
: 1;
3102 unsigned LC2D4S2
: 1;
3126 unsigned LC2D3S
: 3;
3133 unsigned LC2D4S
: 3;
3145 extern __at(0x0F1B) volatile __CLC2SEL1bits_t CLC2SEL1bits
;
3147 #define _CLC2SEL1_LC2D3S0 0x01
3148 #define _CLC2SEL1_D3S0 0x01
3149 #define _CLC2SEL1_LC2D3S1 0x02
3150 #define _CLC2SEL1_D3S1 0x02
3151 #define _CLC2SEL1_LC2D3S2 0x04
3152 #define _CLC2SEL1_D3S2 0x04
3153 #define _CLC2SEL1_LC2D4S0 0x10
3154 #define _CLC2SEL1_D4S0 0x10
3155 #define _CLC2SEL1_LC2D4S1 0x20
3156 #define _CLC2SEL1_D4S1 0x20
3157 #define _CLC2SEL1_LC2D4S2 0x40
3158 #define _CLC2SEL1_D4S2 0x40
3160 //==============================================================================
3163 //==============================================================================
3166 extern __at(0x0F1C) __sfr CLC2GLS0
;
3172 unsigned LC2G1D1N
: 1;
3173 unsigned LC2G1D1T
: 1;
3174 unsigned LC2G1D2N
: 1;
3175 unsigned LC2G1D2T
: 1;
3176 unsigned LC2G1D3N
: 1;
3177 unsigned LC2G1D3T
: 1;
3178 unsigned LC2G1D4N
: 1;
3179 unsigned LC2G1D4T
: 1;
3195 extern __at(0x0F1C) volatile __CLC2GLS0bits_t CLC2GLS0bits
;
3197 #define _CLC2GLS0_LC2G1D1N 0x01
3198 #define _CLC2GLS0_D1N 0x01
3199 #define _CLC2GLS0_LC2G1D1T 0x02
3200 #define _CLC2GLS0_D1T 0x02
3201 #define _CLC2GLS0_LC2G1D2N 0x04
3202 #define _CLC2GLS0_D2N 0x04
3203 #define _CLC2GLS0_LC2G1D2T 0x08
3204 #define _CLC2GLS0_D2T 0x08
3205 #define _CLC2GLS0_LC2G1D3N 0x10
3206 #define _CLC2GLS0_D3N 0x10
3207 #define _CLC2GLS0_LC2G1D3T 0x20
3208 #define _CLC2GLS0_D3T 0x20
3209 #define _CLC2GLS0_LC2G1D4N 0x40
3210 #define _CLC2GLS0_D4N 0x40
3211 #define _CLC2GLS0_LC2G1D4T 0x80
3212 #define _CLC2GLS0_D4T 0x80
3214 //==============================================================================
3217 //==============================================================================
3220 extern __at(0x0F1D) __sfr CLC2GLS1
;
3226 unsigned LC2G2D1N
: 1;
3227 unsigned LC2G2D1T
: 1;
3228 unsigned LC2G2D2N
: 1;
3229 unsigned LC2G2D2T
: 1;
3230 unsigned LC2G2D3N
: 1;
3231 unsigned LC2G2D3T
: 1;
3232 unsigned LC2G2D4N
: 1;
3233 unsigned LC2G2D4T
: 1;
3249 extern __at(0x0F1D) volatile __CLC2GLS1bits_t CLC2GLS1bits
;
3251 #define _CLC2GLS1_LC2G2D1N 0x01
3252 #define _CLC2GLS1_D1N 0x01
3253 #define _CLC2GLS1_LC2G2D1T 0x02
3254 #define _CLC2GLS1_D1T 0x02
3255 #define _CLC2GLS1_LC2G2D2N 0x04
3256 #define _CLC2GLS1_D2N 0x04
3257 #define _CLC2GLS1_LC2G2D2T 0x08
3258 #define _CLC2GLS1_D2T 0x08
3259 #define _CLC2GLS1_LC2G2D3N 0x10
3260 #define _CLC2GLS1_D3N 0x10
3261 #define _CLC2GLS1_LC2G2D3T 0x20
3262 #define _CLC2GLS1_D3T 0x20
3263 #define _CLC2GLS1_LC2G2D4N 0x40
3264 #define _CLC2GLS1_D4N 0x40
3265 #define _CLC2GLS1_LC2G2D4T 0x80
3266 #define _CLC2GLS1_D4T 0x80
3268 //==============================================================================
3271 //==============================================================================
3274 extern __at(0x0F1E) __sfr CLC2GLS2
;
3280 unsigned LC2G3D1N
: 1;
3281 unsigned LC2G3D1T
: 1;
3282 unsigned LC2G3D2N
: 1;
3283 unsigned LC2G3D2T
: 1;
3284 unsigned LC2G3D3N
: 1;
3285 unsigned LC2G3D3T
: 1;
3286 unsigned LC2G3D4N
: 1;
3287 unsigned LC2G3D4T
: 1;
3303 extern __at(0x0F1E) volatile __CLC2GLS2bits_t CLC2GLS2bits
;
3305 #define _CLC2GLS2_LC2G3D1N 0x01
3306 #define _CLC2GLS2_D1N 0x01
3307 #define _CLC2GLS2_LC2G3D1T 0x02
3308 #define _CLC2GLS2_D1T 0x02
3309 #define _CLC2GLS2_LC2G3D2N 0x04
3310 #define _CLC2GLS2_D2N 0x04
3311 #define _CLC2GLS2_LC2G3D2T 0x08
3312 #define _CLC2GLS2_D2T 0x08
3313 #define _CLC2GLS2_LC2G3D3N 0x10
3314 #define _CLC2GLS2_D3N 0x10
3315 #define _CLC2GLS2_LC2G3D3T 0x20
3316 #define _CLC2GLS2_D3T 0x20
3317 #define _CLC2GLS2_LC2G3D4N 0x40
3318 #define _CLC2GLS2_D4N 0x40
3319 #define _CLC2GLS2_LC2G3D4T 0x80
3320 #define _CLC2GLS2_D4T 0x80
3322 //==============================================================================
3325 //==============================================================================
3328 extern __at(0x0F1F) __sfr CLC2GLS3
;
3334 unsigned LC2G4D1N
: 1;
3335 unsigned LC2G4D1T
: 1;
3336 unsigned LC2G4D2N
: 1;
3337 unsigned LC2G4D2T
: 1;
3338 unsigned LC2G4D3N
: 1;
3339 unsigned LC2G4D3T
: 1;
3340 unsigned LC2G4D4N
: 1;
3341 unsigned LC2G4D4T
: 1;
3357 extern __at(0x0F1F) volatile __CLC2GLS3bits_t CLC2GLS3bits
;
3359 #define _CLC2GLS3_LC2G4D1N 0x01
3360 #define _CLC2GLS3_G4D1N 0x01
3361 #define _CLC2GLS3_LC2G4D1T 0x02
3362 #define _CLC2GLS3_G4D1T 0x02
3363 #define _CLC2GLS3_LC2G4D2N 0x04
3364 #define _CLC2GLS3_G4D2N 0x04
3365 #define _CLC2GLS3_LC2G4D2T 0x08
3366 #define _CLC2GLS3_G4D2T 0x08
3367 #define _CLC2GLS3_LC2G4D3N 0x10
3368 #define _CLC2GLS3_G4D3N 0x10
3369 #define _CLC2GLS3_LC2G4D3T 0x20
3370 #define _CLC2GLS3_G4D3T 0x20
3371 #define _CLC2GLS3_LC2G4D4N 0x40
3372 #define _CLC2GLS3_G4D4N 0x40
3373 #define _CLC2GLS3_LC2G4D4T 0x80
3374 #define _CLC2GLS3_G4D4T 0x80
3376 //==============================================================================
3378 extern __at(0x0FE3) __sfr BSR_ICDSHAD
;
3380 //==============================================================================
3383 extern __at(0x0FE4) __sfr STATUS_SHAD
;
3387 unsigned C_SHAD
: 1;
3388 unsigned DC_SHAD
: 1;
3389 unsigned Z_SHAD
: 1;
3395 } __STATUS_SHADbits_t
;
3397 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
3399 #define _C_SHAD 0x01
3400 #define _DC_SHAD 0x02
3401 #define _Z_SHAD 0x04
3403 //==============================================================================
3405 extern __at(0x0FE5) __sfr WREG_SHAD
;
3406 extern __at(0x0FE6) __sfr BSR_SHAD
;
3407 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
3408 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
3409 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
3410 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
3411 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
3412 extern __at(0x0FED) __sfr STKPTR
;
3413 extern __at(0x0FEE) __sfr TOSL
;
3414 extern __at(0x0FEF) __sfr TOSH
;
3416 //==============================================================================
3418 // Configuration Bits
3420 //==============================================================================
3422 #define _CONFIG1 0x8007
3423 #define _CONFIG2 0x8008
3425 //----------------------------- CONFIG1 Options -------------------------------
3427 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
3428 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
3429 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
3430 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pin.
3431 #define _WDTE_OFF 0x3FE7 // WDT disabled.
3432 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
3433 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
3434 #define _WDTE_ON 0x3FFF // WDT enabled.
3435 #define _PWRTE_ON 0x3FDF // PWRT enabled.
3436 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
3437 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
3438 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
3439 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
3440 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
3441 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
3442 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
3443 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
3444 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
3445 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
3446 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
3448 //----------------------------- CONFIG2 Options -------------------------------
3450 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
3451 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
3452 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
3453 #define _WRT_OFF 0x3FFF // Write protection off.
3454 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
3455 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
3456 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
3457 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
3458 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
3459 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
3460 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
3461 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
3463 //==============================================================================
3465 #define _DEVID1 0x8006
3467 #define _IDLOC0 0x8000
3468 #define _IDLOC1 0x8001
3469 #define _IDLOC2 0x8002
3470 #define _IDLOC3 0x8003
3472 //==============================================================================
3474 #ifndef NO_BIT_DEFINES
3476 #define ADON ADCON0bits.ADON // bit 0
3477 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
3478 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
3479 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
3480 #define CHS0 ADCON0bits.CHS0 // bit 2
3481 #define CHS1 ADCON0bits.CHS1 // bit 3
3482 #define CHS2 ADCON0bits.CHS2 // bit 4
3483 #define CHS3 ADCON0bits.CHS3 // bit 5
3484 #define CHS4 ADCON0bits.CHS4 // bit 6
3486 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
3487 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
3488 #define ADFM ADCON1bits.ADFM // bit 7
3490 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
3491 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
3492 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
3493 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
3495 #define ANSA0 ANSELAbits.ANSA0 // bit 0
3496 #define ANSA1 ANSELAbits.ANSA1 // bit 1
3497 #define ANSA2 ANSELAbits.ANSA2 // bit 2
3498 #define ANSA4 ANSELAbits.ANSA4 // bit 4
3500 #define NCO1SEL APFCONbits.NCO1SEL // bit 0
3501 #define CLC1SEL APFCONbits.CLC1SEL // bit 1
3502 #define T1GSEL APFCONbits.T1GSEL // bit 3
3503 #define CWG1ASEL APFCONbits.CWG1ASEL // bit 6
3504 #define CWG1BSEL APFCONbits.CWG1BSEL // bit 7
3506 #define BORRDY BORCONbits.BORRDY // bit 0
3507 #define BORFS BORCONbits.BORFS // bit 6
3508 #define SBOREN BORCONbits.SBOREN // bit 7
3510 #define BSR0 BSRbits.BSR0 // bit 0
3511 #define BSR1 BSRbits.BSR1 // bit 1
3512 #define BSR2 BSRbits.BSR2 // bit 2
3513 #define BSR3 BSRbits.BSR3 // bit 3
3514 #define BSR4 BSRbits.BSR4 // bit 4
3516 #define LC1MODE0 CLC1CONbits.LC1MODE0 // bit 0, shadows bit in CLC1CONbits
3517 #define LCMODE0 CLC1CONbits.LCMODE0 // bit 0, shadows bit in CLC1CONbits
3518 #define LC1MODE1 CLC1CONbits.LC1MODE1 // bit 1, shadows bit in CLC1CONbits
3519 #define LCMODE1 CLC1CONbits.LCMODE1 // bit 1, shadows bit in CLC1CONbits
3520 #define LC1MODE2 CLC1CONbits.LC1MODE2 // bit 2, shadows bit in CLC1CONbits
3521 #define LCMODE2 CLC1CONbits.LCMODE2 // bit 2, shadows bit in CLC1CONbits
3522 #define LC1INTN CLC1CONbits.LC1INTN // bit 3, shadows bit in CLC1CONbits
3523 #define LCINTN CLC1CONbits.LCINTN // bit 3, shadows bit in CLC1CONbits
3524 #define LC1INTP CLC1CONbits.LC1INTP // bit 4, shadows bit in CLC1CONbits
3525 #define LCINTP CLC1CONbits.LCINTP // bit 4, shadows bit in CLC1CONbits
3526 #define LC1OUT CLC1CONbits.LC1OUT // bit 5, shadows bit in CLC1CONbits
3527 #define LCOUT CLC1CONbits.LCOUT // bit 5, shadows bit in CLC1CONbits
3528 #define LC1OE CLC1CONbits.LC1OE // bit 6, shadows bit in CLC1CONbits
3529 #define LCOE CLC1CONbits.LCOE // bit 6, shadows bit in CLC1CONbits
3530 #define LC1EN CLC1CONbits.LC1EN // bit 7, shadows bit in CLC1CONbits
3531 #define LCEN CLC1CONbits.LCEN // bit 7, shadows bit in CLC1CONbits
3533 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
3534 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
3535 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
3536 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
3537 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
3538 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
3539 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
3540 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
3541 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
3542 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
3543 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
3544 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
3545 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
3546 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
3547 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
3548 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
3550 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
3551 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
3552 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
3553 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
3554 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
3555 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
3556 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
3557 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
3558 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
3559 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
3560 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
3561 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
3562 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
3563 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
3564 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
3565 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
3567 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
3568 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
3569 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
3570 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
3571 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
3572 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
3573 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
3574 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
3575 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
3576 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
3578 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
3579 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
3580 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
3581 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
3582 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
3583 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
3584 #define LC1D2S0 CLC1SEL0bits.LC1D2S0 // bit 4, shadows bit in CLC1SEL0bits
3585 #define D2S0 CLC1SEL0bits.D2S0 // bit 4, shadows bit in CLC1SEL0bits
3586 #define LC1D2S1 CLC1SEL0bits.LC1D2S1 // bit 5, shadows bit in CLC1SEL0bits
3587 #define D2S1 CLC1SEL0bits.D2S1 // bit 5, shadows bit in CLC1SEL0bits
3588 #define LC1D2S2 CLC1SEL0bits.LC1D2S2 // bit 6, shadows bit in CLC1SEL0bits
3589 #define D2S2 CLC1SEL0bits.D2S2 // bit 6, shadows bit in CLC1SEL0bits
3591 #define LC1D3S0 CLC1SEL1bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL1bits
3592 #define D3S0 CLC1SEL1bits.D3S0 // bit 0, shadows bit in CLC1SEL1bits
3593 #define LC1D3S1 CLC1SEL1bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL1bits
3594 #define D3S1 CLC1SEL1bits.D3S1 // bit 1, shadows bit in CLC1SEL1bits
3595 #define LC1D3S2 CLC1SEL1bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL1bits
3596 #define D3S2 CLC1SEL1bits.D3S2 // bit 2, shadows bit in CLC1SEL1bits
3597 #define LC1D4S0 CLC1SEL1bits.LC1D4S0 // bit 4, shadows bit in CLC1SEL1bits
3598 #define D4S0 CLC1SEL1bits.D4S0 // bit 4, shadows bit in CLC1SEL1bits
3599 #define LC1D4S1 CLC1SEL1bits.LC1D4S1 // bit 5, shadows bit in CLC1SEL1bits
3600 #define D4S1 CLC1SEL1bits.D4S1 // bit 5, shadows bit in CLC1SEL1bits
3601 #define LC1D4S2 CLC1SEL1bits.LC1D4S2 // bit 6, shadows bit in CLC1SEL1bits
3602 #define D4S2 CLC1SEL1bits.D4S2 // bit 6, shadows bit in CLC1SEL1bits
3604 #define MCLC1OUT CLCDATAbits.MCLC1OUT // bit 0
3605 #define MCLC2OUT CLCDATAbits.MCLC2OUT // bit 1
3607 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
3608 #define C1HYS CM1CON0bits.C1HYS // bit 1
3609 #define C1SP CM1CON0bits.C1SP // bit 2
3610 #define C1POL CM1CON0bits.C1POL // bit 4
3611 #define C1OE CM1CON0bits.C1OE // bit 5
3612 #define C1OUT CM1CON0bits.C1OUT // bit 6
3613 #define C1ON CM1CON0bits.C1ON // bit 7
3615 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
3616 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
3617 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
3618 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
3619 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
3620 #define C1INTN CM1CON1bits.C1INTN // bit 6
3621 #define C1INTP CM1CON1bits.C1INTP // bit 7
3623 #define MC1OUT CMOUTbits.MC1OUT // bit 0
3625 #define G1CS0 CWG1CON0bits.G1CS0 // bit 0
3626 #define G1POLA CWG1CON0bits.G1POLA // bit 3
3627 #define G1POLB CWG1CON0bits.G1POLB // bit 4
3628 #define G1OEA CWG1CON0bits.G1OEA // bit 5
3629 #define G1OEB CWG1CON0bits.G1OEB // bit 6
3630 #define G1EN CWG1CON0bits.G1EN // bit 7
3632 #define G1IS0 CWG1CON1bits.G1IS0 // bit 0
3633 #define G1IS1 CWG1CON1bits.G1IS1 // bit 1
3634 #define G1IS2 CWG1CON1bits.G1IS2 // bit 2
3635 #define G1ASDLA0 CWG1CON1bits.G1ASDLA0 // bit 4
3636 #define G1ASDLA1 CWG1CON1bits.G1ASDLA1 // bit 5
3637 #define G1ASDLB0 CWG1CON1bits.G1ASDLB0 // bit 6
3638 #define G1ASDLB1 CWG1CON1bits.G1ASDLB1 // bit 7
3640 #define G1ASDSCLC2 CWG1CON2bits.G1ASDSCLC2 // bit 0
3641 #define G1ASDSFLT CWG1CON2bits.G1ASDSFLT // bit 1
3642 #define G1ASDSC1 CWG1CON2bits.G1ASDSC1 // bit 2
3643 #define G1ARSEN CWG1CON2bits.G1ARSEN // bit 6
3644 #define G1ASE CWG1CON2bits.G1ASE // bit 7
3646 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0
3647 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1
3648 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2
3649 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3
3650 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4
3651 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5
3653 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0
3654 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1
3655 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2
3656 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3
3657 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4
3658 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5
3660 #define DACPSS DACCON0bits.DACPSS // bit 2
3661 #define DACOE2 DACCON0bits.DACOE2 // bit 4
3662 #define DACOE1 DACCON0bits.DACOE1 // bit 5
3663 #define DACEN DACCON0bits.DACEN // bit 7
3665 #define DACR0 DACCON1bits.DACR0 // bit 0
3666 #define DACR1 DACCON1bits.DACR1 // bit 1
3667 #define DACR2 DACCON1bits.DACR2 // bit 2
3668 #define DACR3 DACCON1bits.DACR3 // bit 3
3669 #define DACR4 DACCON1bits.DACR4 // bit 4
3671 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
3672 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
3673 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
3674 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
3675 #define TSRNG FVRCONbits.TSRNG // bit 4
3676 #define TSEN FVRCONbits.TSEN // bit 5
3677 #define FVRRDY FVRCONbits.FVRRDY // bit 6
3678 #define FVREN FVRCONbits.FVREN // bit 7
3680 #define IOCIF INTCONbits.IOCIF // bit 0
3681 #define INTF INTCONbits.INTF // bit 1
3682 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
3683 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
3684 #define IOCIE INTCONbits.IOCIE // bit 3
3685 #define INTE INTCONbits.INTE // bit 4
3686 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
3687 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
3688 #define PEIE INTCONbits.PEIE // bit 6
3689 #define GIE INTCONbits.GIE // bit 7
3691 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
3692 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
3693 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
3694 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
3695 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
3696 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
3698 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
3699 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
3700 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
3701 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
3702 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
3703 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
3705 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
3706 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
3707 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
3708 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
3709 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
3710 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
3712 #define LATA0 LATAbits.LATA0 // bit 0
3713 #define LATA1 LATAbits.LATA1 // bit 1
3714 #define LATA2 LATAbits.LATA2 // bit 2
3715 #define LATA4 LATAbits.LATA4 // bit 4
3716 #define LATA5 LATAbits.LATA5 // bit 5
3718 #define NCO1ACC8 NCO1ACCHbits.NCO1ACC8 // bit 0
3719 #define NCO1ACC9 NCO1ACCHbits.NCO1ACC9 // bit 1
3720 #define NCO1ACC10 NCO1ACCHbits.NCO1ACC10 // bit 2
3721 #define NCO1ACC11 NCO1ACCHbits.NCO1ACC11 // bit 3
3722 #define NCO1ACC12 NCO1ACCHbits.NCO1ACC12 // bit 4
3723 #define NCO1ACC13 NCO1ACCHbits.NCO1ACC13 // bit 5
3724 #define NCO1ACC14 NCO1ACCHbits.NCO1ACC14 // bit 6
3725 #define NCO1ACC15 NCO1ACCHbits.NCO1ACC15 // bit 7
3727 #define NCO1ACC0 NCO1ACCLbits.NCO1ACC0 // bit 0
3728 #define NCO1ACC1 NCO1ACCLbits.NCO1ACC1 // bit 1
3729 #define NCO1ACC2 NCO1ACCLbits.NCO1ACC2 // bit 2
3730 #define NCO1ACC3 NCO1ACCLbits.NCO1ACC3 // bit 3
3731 #define NCO1ACC4 NCO1ACCLbits.NCO1ACC4 // bit 4
3732 #define NCO1ACC5 NCO1ACCLbits.NCO1ACC5 // bit 5
3733 #define NCO1ACC6 NCO1ACCLbits.NCO1ACC6 // bit 6
3734 #define NCO1ACC7 NCO1ACCLbits.NCO1ACC7 // bit 7
3736 #define NCO1ACC16 NCO1ACCUbits.NCO1ACC16 // bit 0
3737 #define NCO1ACC17 NCO1ACCUbits.NCO1ACC17 // bit 1
3738 #define NCO1ACC18 NCO1ACCUbits.NCO1ACC18 // bit 2
3739 #define NCO1ACC19 NCO1ACCUbits.NCO1ACC19 // bit 3
3741 #define N1CKS0 NCO1CLKbits.N1CKS0 // bit 0
3742 #define N1CKS1 NCO1CLKbits.N1CKS1 // bit 1
3743 #define N1PWS0 NCO1CLKbits.N1PWS0 // bit 5
3744 #define N1PWS1 NCO1CLKbits.N1PWS1 // bit 6
3745 #define N1PWS2 NCO1CLKbits.N1PWS2 // bit 7
3747 #define N1PFM NCO1CONbits.N1PFM // bit 0
3748 #define N1POL NCO1CONbits.N1POL // bit 4
3749 #define N1OUT NCO1CONbits.N1OUT // bit 5
3750 #define N1OE NCO1CONbits.N1OE // bit 6
3751 #define N1EN NCO1CONbits.N1EN // bit 7
3753 #define NCO1INC8 NCO1INCHbits.NCO1INC8 // bit 0
3754 #define NCO1INC9 NCO1INCHbits.NCO1INC9 // bit 1
3755 #define NCO1INC10 NCO1INCHbits.NCO1INC10 // bit 2
3756 #define NCO1INC11 NCO1INCHbits.NCO1INC11 // bit 3
3757 #define NCO1INC12 NCO1INCHbits.NCO1INC12 // bit 4
3758 #define NCO1INC13 NCO1INCHbits.NCO1INC13 // bit 5
3759 #define NCO1INC14 NCO1INCHbits.NCO1INC14 // bit 6
3760 #define NCO1INC15 NCO1INCHbits.NCO1INC15 // bit 7
3762 #define NCO1INC0 NCO1INCLbits.NCO1INC0 // bit 0
3763 #define NCO1INC1 NCO1INCLbits.NCO1INC1 // bit 1
3764 #define NCO1INC2 NCO1INCLbits.NCO1INC2 // bit 2
3765 #define NCO1INC3 NCO1INCLbits.NCO1INC3 // bit 3
3766 #define NCO1INC4 NCO1INCLbits.NCO1INC4 // bit 4
3767 #define NCO1INC5 NCO1INCLbits.NCO1INC5 // bit 5
3768 #define NCO1INC6 NCO1INCLbits.NCO1INC6 // bit 6
3769 #define NCO1INC7 NCO1INCLbits.NCO1INC7 // bit 7
3771 #define PS0 OPTION_REGbits.PS0 // bit 0
3772 #define PS1 OPTION_REGbits.PS1 // bit 1
3773 #define PS2 OPTION_REGbits.PS2 // bit 2
3774 #define PSA OPTION_REGbits.PSA // bit 3
3775 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
3776 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
3777 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
3778 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
3779 #define INTEDG OPTION_REGbits.INTEDG // bit 6
3780 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
3782 #define SCS0 OSCCONbits.SCS0 // bit 0
3783 #define SCS1 OSCCONbits.SCS1 // bit 1
3784 #define IRCF0 OSCCONbits.IRCF0 // bit 3
3785 #define IRCF1 OSCCONbits.IRCF1 // bit 4
3786 #define IRCF2 OSCCONbits.IRCF2 // bit 5
3787 #define IRCF3 OSCCONbits.IRCF3 // bit 6
3789 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
3790 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
3791 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
3793 #define NOT_BOR PCONbits.NOT_BOR // bit 0
3794 #define NOT_POR PCONbits.NOT_POR // bit 1
3795 #define NOT_RI PCONbits.NOT_RI // bit 2
3796 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
3797 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
3798 #define STKUNF PCONbits.STKUNF // bit 6
3799 #define STKOVF PCONbits.STKOVF // bit 7
3801 #define TMR1IE PIE1bits.TMR1IE // bit 0
3802 #define TMR2IE PIE1bits.TMR2IE // bit 1
3803 #define ADIE PIE1bits.ADIE // bit 6
3804 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
3806 #define NCO1IE PIE2bits.NCO1IE // bit 2
3807 #define C1IE PIE2bits.C1IE // bit 5
3809 #define CLC1IE PIE3bits.CLC1IE // bit 0
3810 #define CLC2IE PIE3bits.CLC2IE // bit 1
3812 #define TMR1IF PIR1bits.TMR1IF // bit 0
3813 #define TMR2IF PIR1bits.TMR2IF // bit 1
3814 #define ADIF PIR1bits.ADIF // bit 6
3815 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
3817 #define NCO1IF PIR2bits.NCO1IF // bit 2
3818 #define C1IF PIR2bits.C1IF // bit 5
3820 #define CLC1IF PIR3bits.CLC1IF // bit 0
3821 #define CLC2IF PIR3bits.CLC2IF // bit 1
3823 #define RD PMCON1bits.RD // bit 0
3824 #define WR PMCON1bits.WR // bit 1
3825 #define WREN PMCON1bits.WREN // bit 2
3826 #define WRERR PMCON1bits.WRERR // bit 3
3827 #define FREE PMCON1bits.FREE // bit 4
3828 #define LWLO PMCON1bits.LWLO // bit 5
3829 #define CFGS PMCON1bits.CFGS // bit 6
3831 #define RA0 PORTAbits.RA0 // bit 0
3832 #define RA1 PORTAbits.RA1 // bit 1
3833 #define RA2 PORTAbits.RA2 // bit 2
3834 #define RA3 PORTAbits.RA3 // bit 3
3835 #define RA4 PORTAbits.RA4 // bit 4
3836 #define RA5 PORTAbits.RA5 // bit 5
3838 #define PWM1POL PWM1CONbits.PWM1POL // bit 4
3839 #define PWM1OUT PWM1CONbits.PWM1OUT // bit 5
3840 #define PWM1OE PWM1CONbits.PWM1OE // bit 6
3841 #define PWM1EN PWM1CONbits.PWM1EN // bit 7
3843 #define PWM1DCH0 PWM1DCHbits.PWM1DCH0 // bit 0
3844 #define PWM1DCH1 PWM1DCHbits.PWM1DCH1 // bit 1
3845 #define PWM1DCH2 PWM1DCHbits.PWM1DCH2 // bit 2
3846 #define PWM1DCH3 PWM1DCHbits.PWM1DCH3 // bit 3
3847 #define PWM1DCH4 PWM1DCHbits.PWM1DCH4 // bit 4
3848 #define PWM1DCH5 PWM1DCHbits.PWM1DCH5 // bit 5
3849 #define PWM1DCH6 PWM1DCHbits.PWM1DCH6 // bit 6
3850 #define PWM1DCH7 PWM1DCHbits.PWM1DCH7 // bit 7
3852 #define PWM1DCL0 PWM1DCLbits.PWM1DCL0 // bit 6
3853 #define PWM1DCL1 PWM1DCLbits.PWM1DCL1 // bit 7
3855 #define PWM2POL PWM2CONbits.PWM2POL // bit 4
3856 #define PWM2OUT PWM2CONbits.PWM2OUT // bit 5
3857 #define PWM2OE PWM2CONbits.PWM2OE // bit 6
3858 #define PWM2EN PWM2CONbits.PWM2EN // bit 7
3860 #define PWM2DCH0 PWM2DCHbits.PWM2DCH0 // bit 0
3861 #define PWM2DCH1 PWM2DCHbits.PWM2DCH1 // bit 1
3862 #define PWM2DCH2 PWM2DCHbits.PWM2DCH2 // bit 2
3863 #define PWM2DCH3 PWM2DCHbits.PWM2DCH3 // bit 3
3864 #define PWM2DCH4 PWM2DCHbits.PWM2DCH4 // bit 4
3865 #define PWM2DCH5 PWM2DCHbits.PWM2DCH5 // bit 5
3866 #define PWM2DCH6 PWM2DCHbits.PWM2DCH6 // bit 6
3867 #define PWM2DCH7 PWM2DCHbits.PWM2DCH7 // bit 7
3869 #define PWM2DCL0 PWM2DCLbits.PWM2DCL0 // bit 6
3870 #define PWM2DCL1 PWM2DCLbits.PWM2DCL1 // bit 7
3872 #define PWM3POL PWM3CONbits.PWM3POL // bit 4
3873 #define PWM3OUT PWM3CONbits.PWM3OUT // bit 5
3874 #define PWM3OE PWM3CONbits.PWM3OE // bit 6
3875 #define PWM3EN PWM3CONbits.PWM3EN // bit 7
3877 #define PWM3DCH0 PWM3DCHbits.PWM3DCH0 // bit 0
3878 #define PWM3DCH1 PWM3DCHbits.PWM3DCH1 // bit 1
3879 #define PWM3DCH2 PWM3DCHbits.PWM3DCH2 // bit 2
3880 #define PWM3DCH3 PWM3DCHbits.PWM3DCH3 // bit 3
3881 #define PWM3DCH4 PWM3DCHbits.PWM3DCH4 // bit 4
3882 #define PWM3DCH5 PWM3DCHbits.PWM3DCH5 // bit 5
3883 #define PWM3DCH6 PWM3DCHbits.PWM3DCH6 // bit 6
3884 #define PWM3DCH7 PWM3DCHbits.PWM3DCH7 // bit 7
3886 #define PWM3DCL0 PWM3DCLbits.PWM3DCL0 // bit 6
3887 #define PWM3DCL1 PWM3DCLbits.PWM3DCL1 // bit 7
3889 #define PWM4POL PWM4CONbits.PWM4POL // bit 4
3890 #define PWM4OUT PWM4CONbits.PWM4OUT // bit 5
3891 #define PWM4OE PWM4CONbits.PWM4OE // bit 6
3892 #define PWM4EN PWM4CONbits.PWM4EN // bit 7
3894 #define PWM4DCH0 PWM4DCHbits.PWM4DCH0 // bit 0
3895 #define PWM4DCH1 PWM4DCHbits.PWM4DCH1 // bit 1
3896 #define PWM4DCH2 PWM4DCHbits.PWM4DCH2 // bit 2
3897 #define PWM4DCH3 PWM4DCHbits.PWM4DCH3 // bit 3
3898 #define PWM4DCH4 PWM4DCHbits.PWM4DCH4 // bit 4
3899 #define PWM4DCH5 PWM4DCHbits.PWM4DCH5 // bit 5
3900 #define PWM4DCH6 PWM4DCHbits.PWM4DCH6 // bit 6
3901 #define PWM4DCH7 PWM4DCHbits.PWM4DCH7 // bit 7
3903 #define PWM4DCL0 PWM4DCLbits.PWM4DCL0 // bit 6
3904 #define PWM4DCL1 PWM4DCLbits.PWM4DCL1 // bit 7
3906 #define C STATUSbits.C // bit 0
3907 #define DC STATUSbits.DC // bit 1
3908 #define Z STATUSbits.Z // bit 2
3909 #define NOT_PD STATUSbits.NOT_PD // bit 3
3910 #define NOT_TO STATUSbits.NOT_TO // bit 4
3912 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
3913 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
3914 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
3916 #define TMR1ON T1CONbits.TMR1ON // bit 0
3917 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
3918 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
3919 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
3920 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
3921 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
3923 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
3924 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
3925 #define T1GVAL T1GCONbits.T1GVAL // bit 2
3926 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
3927 #define T1GSPM T1GCONbits.T1GSPM // bit 4
3928 #define T1GTM T1GCONbits.T1GTM // bit 5
3929 #define T1GPOL T1GCONbits.T1GPOL // bit 6
3930 #define TMR1GE T1GCONbits.TMR1GE // bit 7
3932 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
3933 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
3934 #define TMR2ON T2CONbits.TMR2ON // bit 2
3935 #define TOUTPS0 T2CONbits.TOUTPS0 // bit 3
3936 #define TOUTPS1 T2CONbits.TOUTPS1 // bit 4
3937 #define TOUTPS2 T2CONbits.TOUTPS2 // bit 5
3938 #define TOUTPS3 T2CONbits.TOUTPS3 // bit 6
3940 #define TRISA0 TRISAbits.TRISA0 // bit 0
3941 #define TRISA1 TRISAbits.TRISA1 // bit 1
3942 #define TRISA2 TRISAbits.TRISA2 // bit 2
3943 #define TRISA3 TRISAbits.TRISA3 // bit 3
3944 #define TRISA4 TRISAbits.TRISA4 // bit 4
3945 #define TRISA5 TRISAbits.TRISA5 // bit 5
3947 #define SWDTEN WDTCONbits.SWDTEN // bit 0
3948 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
3949 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
3950 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
3951 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
3952 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
3954 #define WPUA0 WPUAbits.WPUA0 // bit 0
3955 #define WPUA1 WPUAbits.WPUA1 // bit 1
3956 #define WPUA2 WPUAbits.WPUA2 // bit 2
3957 #define WPUA3 WPUAbits.WPUA3 // bit 3
3958 #define WPUA4 WPUAbits.WPUA4 // bit 4
3959 #define WPUA5 WPUAbits.WPUA5 // bit 5
3961 #endif // #ifndef NO_BIT_DEFINES
3963 #endif // #ifndef __PIC12LF1501_H__