2 * This declarations of the PIC12F1501 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 __PIC12F1501_H__
26 #define __PIC12F1501_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 VREGCON_ADDR 0x0197
97 #define WPUA_ADDR 0x020C
98 #define IOCAP_ADDR 0x0391
99 #define IOCAN_ADDR 0x0392
100 #define IOCAF_ADDR 0x0393
101 #define NCO1ACC_ADDR 0x0498
102 #define NCO1ACCL_ADDR 0x0498
103 #define NCO1ACCH_ADDR 0x0499
104 #define NCO1ACCU_ADDR 0x049A
105 #define NCO1INC_ADDR 0x049B
106 #define NCO1INCL_ADDR 0x049B
107 #define NCO1INCH_ADDR 0x049C
108 #define NCO1INCU_ADDR 0x049D
109 #define NCO1CON_ADDR 0x049E
110 #define NCO1CLK_ADDR 0x049F
111 #define PWM1DCL_ADDR 0x0611
112 #define PWM1DCH_ADDR 0x0612
113 #define PWM1CON_ADDR 0x0613
114 #define PWM1CON0_ADDR 0x0613
115 #define PWM2DCL_ADDR 0x0614
116 #define PWM2DCH_ADDR 0x0615
117 #define PWM2CON_ADDR 0x0616
118 #define PWM2CON0_ADDR 0x0616
119 #define PWM3DCL_ADDR 0x0617
120 #define PWM3DCH_ADDR 0x0618
121 #define PWM3CON_ADDR 0x0619
122 #define PWM3CON0_ADDR 0x0619
123 #define PWM4DCL_ADDR 0x061A
124 #define PWM4DCH_ADDR 0x061B
125 #define PWM4CON_ADDR 0x061C
126 #define PWM4CON0_ADDR 0x061C
127 #define CWG1DBR_ADDR 0x0691
128 #define CWG1DBF_ADDR 0x0692
129 #define CWG1CON0_ADDR 0x0693
130 #define CWG1CON1_ADDR 0x0694
131 #define CWG1CON2_ADDR 0x0695
132 #define CLCDATA_ADDR 0x0F0F
133 #define CLC1CON_ADDR 0x0F10
134 #define CLC1POL_ADDR 0x0F11
135 #define CLC1SEL0_ADDR 0x0F12
136 #define CLC1SEL1_ADDR 0x0F13
137 #define CLC1GLS0_ADDR 0x0F14
138 #define CLC1GLS1_ADDR 0x0F15
139 #define CLC1GLS2_ADDR 0x0F16
140 #define CLC1GLS3_ADDR 0x0F17
141 #define CLC2CON_ADDR 0x0F18
142 #define CLC2POL_ADDR 0x0F19
143 #define CLC2SEL0_ADDR 0x0F1A
144 #define CLC2SEL1_ADDR 0x0F1B
145 #define CLC2GLS0_ADDR 0x0F1C
146 #define CLC2GLS1_ADDR 0x0F1D
147 #define CLC2GLS2_ADDR 0x0F1E
148 #define CLC2GLS3_ADDR 0x0F1F
149 #define BSR_ICDSHAD_ADDR 0x0FE3
150 #define STATUS_SHAD_ADDR 0x0FE4
151 #define WREG_SHAD_ADDR 0x0FE5
152 #define BSR_SHAD_ADDR 0x0FE6
153 #define PCLATH_SHAD_ADDR 0x0FE7
154 #define FSR0L_SHAD_ADDR 0x0FE8
155 #define FSR0H_SHAD_ADDR 0x0FE9
156 #define FSR1L_SHAD_ADDR 0x0FEA
157 #define FSR1H_SHAD_ADDR 0x0FEB
158 #define STKPTR_ADDR 0x0FED
159 #define TOSL_ADDR 0x0FEE
160 #define TOSH_ADDR 0x0FEF
162 #endif // #ifndef NO_ADDR_DEFINES
164 //==============================================================================
166 // Register Definitions
168 //==============================================================================
170 extern __at(0x0000) __sfr INDF0
;
171 extern __at(0x0001) __sfr INDF1
;
172 extern __at(0x0002) __sfr PCL
;
174 //==============================================================================
177 extern __at(0x0003) __sfr STATUS
;
191 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
199 //==============================================================================
201 extern __at(0x0004) __sfr FSR0
;
202 extern __at(0x0004) __sfr FSR0L
;
203 extern __at(0x0005) __sfr FSR0H
;
204 extern __at(0x0006) __sfr FSR1
;
205 extern __at(0x0006) __sfr FSR1L
;
206 extern __at(0x0007) __sfr FSR1H
;
208 //==============================================================================
211 extern __at(0x0008) __sfr BSR
;
234 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
242 //==============================================================================
244 extern __at(0x0009) __sfr WREG
;
245 extern __at(0x000A) __sfr PCLATH
;
247 //==============================================================================
250 extern __at(0x000B) __sfr INTCON
;
279 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
292 //==============================================================================
295 //==============================================================================
298 extern __at(0x000C) __sfr PORTA
;
321 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
330 //==============================================================================
333 //==============================================================================
336 extern __at(0x0011) __sfr PIR1
;
347 unsigned TMR1GIF
: 1;
350 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
355 #define _TMR1GIF 0x80
357 //==============================================================================
360 //==============================================================================
363 extern __at(0x0012) __sfr PIR2
;
377 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
382 //==============================================================================
385 //==============================================================================
388 extern __at(0x0013) __sfr PIR3
;
402 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
407 //==============================================================================
409 extern __at(0x0015) __sfr TMR0
;
410 extern __at(0x0016) __sfr TMR1
;
411 extern __at(0x0016) __sfr TMR1L
;
412 extern __at(0x0017) __sfr TMR1H
;
414 //==============================================================================
417 extern __at(0x0018) __sfr T1CON
;
425 unsigned NOT_T1SYNC
: 1;
427 unsigned T1CKPS0
: 1;
428 unsigned T1CKPS1
: 1;
429 unsigned TMR1CS0
: 1;
430 unsigned TMR1CS1
: 1;
447 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
450 #define _NOT_T1SYNC 0x04
451 #define _T1CKPS0 0x10
452 #define _T1CKPS1 0x20
453 #define _TMR1CS0 0x40
454 #define _TMR1CS1 0x80
456 //==============================================================================
459 //==============================================================================
462 extern __at(0x0019) __sfr T1GCON
;
471 unsigned T1GGO_NOT_DONE
: 1;
485 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
490 #define _T1GGO_NOT_DONE 0x08
496 //==============================================================================
498 extern __at(0x001A) __sfr TMR2
;
499 extern __at(0x001B) __sfr PR2
;
501 //==============================================================================
504 extern __at(0x001C) __sfr T2CON
;
510 unsigned T2CKPS0
: 1;
511 unsigned T2CKPS1
: 1;
513 unsigned TOUTPS0
: 1;
514 unsigned TOUTPS1
: 1;
515 unsigned TOUTPS2
: 1;
516 unsigned TOUTPS3
: 1;
534 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
536 #define _T2CKPS0 0x01
537 #define _T2CKPS1 0x02
539 #define _TOUTPS0 0x08
540 #define _TOUTPS1 0x10
541 #define _TOUTPS2 0x20
542 #define _TOUTPS3 0x40
544 //==============================================================================
547 //==============================================================================
550 extern __at(0x008C) __sfr TRISA
;
573 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
582 //==============================================================================
585 //==============================================================================
588 extern __at(0x0091) __sfr PIE1
;
599 unsigned TMR1GIE
: 1;
602 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
607 #define _TMR1GIE 0x80
609 //==============================================================================
612 //==============================================================================
615 extern __at(0x0092) __sfr PIE2
;
629 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
634 //==============================================================================
637 //==============================================================================
640 extern __at(0x0093) __sfr PIE3
;
654 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
659 //==============================================================================
662 //==============================================================================
665 extern __at(0x0095) __sfr OPTION_REG
;
678 unsigned NOT_WPUEN
: 1;
698 } __OPTION_REGbits_t
;
700 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
711 #define _NOT_WPUEN 0x80
713 //==============================================================================
716 //==============================================================================
719 extern __at(0x0096) __sfr PCON
;
723 unsigned NOT_BOR
: 1;
724 unsigned NOT_POR
: 1;
726 unsigned NOT_RMCLR
: 1;
727 unsigned NOT_RWDT
: 1;
733 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
735 #define _NOT_BOR 0x01
736 #define _NOT_POR 0x02
738 #define _NOT_RMCLR 0x08
739 #define _NOT_RWDT 0x10
743 //==============================================================================
746 //==============================================================================
749 extern __at(0x0097) __sfr WDTCON
;
773 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
782 //==============================================================================
785 //==============================================================================
788 extern __at(0x0099) __sfr OSCCON
;
818 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
827 //==============================================================================
830 //==============================================================================
833 extern __at(0x009A) __sfr OSCSTAT
;
847 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
853 //==============================================================================
855 extern __at(0x009B) __sfr ADRES
;
856 extern __at(0x009B) __sfr ADRESL
;
857 extern __at(0x009C) __sfr ADRESH
;
859 //==============================================================================
862 extern __at(0x009D) __sfr ADCON0
;
869 unsigned GO_NOT_DONE
: 1;
910 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
913 #define _GO_NOT_DONE 0x02
922 //==============================================================================
925 //==============================================================================
928 extern __at(0x009E) __sfr ADCON1
;
934 unsigned ADPREF0
: 1;
935 unsigned ADPREF1
: 1;
951 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
953 #define _ADPREF0 0x01
954 #define _ADPREF1 0x02
957 //==============================================================================
960 //==============================================================================
963 extern __at(0x009F) __sfr ADCON2
;
973 unsigned TRIGSEL0
: 1;
974 unsigned TRIGSEL1
: 1;
975 unsigned TRIGSEL2
: 1;
976 unsigned TRIGSEL3
: 1;
982 unsigned TRIGSEL
: 4;
986 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
988 #define _TRIGSEL0 0x10
989 #define _TRIGSEL1 0x20
990 #define _TRIGSEL2 0x40
991 #define _TRIGSEL3 0x80
993 //==============================================================================
996 //==============================================================================
999 extern __at(0x010C) __sfr LATA
;
1013 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1021 //==============================================================================
1024 //==============================================================================
1027 extern __at(0x0111) __sfr CM1CON0
;
1031 unsigned C1SYNC
: 1;
1041 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1043 #define _C1SYNC 0x01
1051 //==============================================================================
1054 //==============================================================================
1057 extern __at(0x0112) __sfr CM1CON1
;
1063 unsigned C1NCH0
: 1;
1064 unsigned C1NCH1
: 1;
1065 unsigned C1NCH2
: 1;
1067 unsigned C1PCH0
: 1;
1068 unsigned C1PCH1
: 1;
1069 unsigned C1INTN
: 1;
1070 unsigned C1INTP
: 1;
1087 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1089 #define _C1NCH0 0x01
1090 #define _C1NCH1 0x02
1091 #define _C1NCH2 0x04
1092 #define _C1PCH0 0x10
1093 #define _C1PCH1 0x20
1094 #define _C1INTN 0x40
1095 #define _C1INTP 0x80
1097 //==============================================================================
1100 //==============================================================================
1103 extern __at(0x0115) __sfr CMOUT
;
1107 unsigned MC1OUT
: 1;
1117 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1119 #define _MC1OUT 0x01
1121 //==============================================================================
1124 //==============================================================================
1127 extern __at(0x0116) __sfr BORCON
;
1131 unsigned BORRDY
: 1;
1138 unsigned SBOREN
: 1;
1141 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1143 #define _BORRDY 0x01
1145 #define _SBOREN 0x80
1147 //==============================================================================
1150 //==============================================================================
1153 extern __at(0x0117) __sfr FVRCON
;
1159 unsigned ADFVR0
: 1;
1160 unsigned ADFVR1
: 1;
1161 unsigned CDAFVR0
: 1;
1162 unsigned CDAFVR1
: 1;
1165 unsigned FVRRDY
: 1;
1178 unsigned CDAFVR
: 2;
1183 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1185 #define _ADFVR0 0x01
1186 #define _ADFVR1 0x02
1187 #define _CDAFVR0 0x04
1188 #define _CDAFVR1 0x08
1191 #define _FVRRDY 0x40
1194 //==============================================================================
1197 //==============================================================================
1200 extern __at(0x0118) __sfr DACCON0
;
1206 unsigned DACPSS
: 1;
1208 unsigned DACOE2
: 1;
1209 unsigned DACOE1
: 1;
1214 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1216 #define _DACPSS 0x04
1217 #define _DACOE2 0x10
1218 #define _DACOE1 0x20
1221 //==============================================================================
1224 //==============================================================================
1227 extern __at(0x0119) __sfr DACCON1
;
1250 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1258 //==============================================================================
1261 //==============================================================================
1264 extern __at(0x011D) __sfr APFCON
;
1268 unsigned NCO1SEL
: 1;
1269 unsigned CLC1SEL
: 1;
1271 unsigned T1GSEL
: 1;
1274 unsigned CWG1ASEL
: 1;
1275 unsigned CWG1BSEL
: 1;
1278 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
1280 #define _NCO1SEL 0x01
1281 #define _CLC1SEL 0x02
1282 #define _T1GSEL 0x08
1283 #define _CWG1ASEL 0x40
1284 #define _CWG1BSEL 0x80
1286 //==============================================================================
1289 //==============================================================================
1292 extern __at(0x018C) __sfr ANSELA
;
1306 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
1313 //==============================================================================
1315 extern __at(0x0191) __sfr PMADR
;
1316 extern __at(0x0191) __sfr PMADRL
;
1317 extern __at(0x0192) __sfr PMADRH
;
1318 extern __at(0x0193) __sfr PMDAT
;
1319 extern __at(0x0193) __sfr PMDATL
;
1320 extern __at(0x0194) __sfr PMDATH
;
1322 //==============================================================================
1325 extern __at(0x0195) __sfr PMCON1
;
1339 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits
;
1349 //==============================================================================
1351 extern __at(0x0196) __sfr PMCON2
;
1353 //==============================================================================
1356 extern __at(0x0197) __sfr VREGCON
;
1361 unsigned VREGPM
: 1;
1370 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits
;
1372 #define _VREGPM 0x02
1374 //==============================================================================
1377 //==============================================================================
1380 extern __at(0x020C) __sfr WPUA
;
1403 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
1412 //==============================================================================
1415 //==============================================================================
1418 extern __at(0x0391) __sfr IOCAP
;
1424 unsigned IOCAP0
: 1;
1425 unsigned IOCAP1
: 1;
1426 unsigned IOCAP2
: 1;
1427 unsigned IOCAP3
: 1;
1428 unsigned IOCAP4
: 1;
1429 unsigned IOCAP5
: 1;
1441 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
1443 #define _IOCAP0 0x01
1444 #define _IOCAP1 0x02
1445 #define _IOCAP2 0x04
1446 #define _IOCAP3 0x08
1447 #define _IOCAP4 0x10
1448 #define _IOCAP5 0x20
1450 //==============================================================================
1453 //==============================================================================
1456 extern __at(0x0392) __sfr IOCAN
;
1462 unsigned IOCAN0
: 1;
1463 unsigned IOCAN1
: 1;
1464 unsigned IOCAN2
: 1;
1465 unsigned IOCAN3
: 1;
1466 unsigned IOCAN4
: 1;
1467 unsigned IOCAN5
: 1;
1479 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
1481 #define _IOCAN0 0x01
1482 #define _IOCAN1 0x02
1483 #define _IOCAN2 0x04
1484 #define _IOCAN3 0x08
1485 #define _IOCAN4 0x10
1486 #define _IOCAN5 0x20
1488 //==============================================================================
1491 //==============================================================================
1494 extern __at(0x0393) __sfr IOCAF
;
1500 unsigned IOCAF0
: 1;
1501 unsigned IOCAF1
: 1;
1502 unsigned IOCAF2
: 1;
1503 unsigned IOCAF3
: 1;
1504 unsigned IOCAF4
: 1;
1505 unsigned IOCAF5
: 1;
1517 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
1519 #define _IOCAF0 0x01
1520 #define _IOCAF1 0x02
1521 #define _IOCAF2 0x04
1522 #define _IOCAF3 0x08
1523 #define _IOCAF4 0x10
1524 #define _IOCAF5 0x20
1526 //==============================================================================
1528 extern __at(0x0498) __sfr NCO1ACC
;
1530 //==============================================================================
1533 extern __at(0x0498) __sfr NCO1ACCL
;
1537 unsigned NCO1ACC0
: 1;
1538 unsigned NCO1ACC1
: 1;
1539 unsigned NCO1ACC2
: 1;
1540 unsigned NCO1ACC3
: 1;
1541 unsigned NCO1ACC4
: 1;
1542 unsigned NCO1ACC5
: 1;
1543 unsigned NCO1ACC6
: 1;
1544 unsigned NCO1ACC7
: 1;
1547 extern __at(0x0498) volatile __NCO1ACCLbits_t NCO1ACCLbits
;
1549 #define _NCO1ACC0 0x01
1550 #define _NCO1ACC1 0x02
1551 #define _NCO1ACC2 0x04
1552 #define _NCO1ACC3 0x08
1553 #define _NCO1ACC4 0x10
1554 #define _NCO1ACC5 0x20
1555 #define _NCO1ACC6 0x40
1556 #define _NCO1ACC7 0x80
1558 //==============================================================================
1561 //==============================================================================
1564 extern __at(0x0499) __sfr NCO1ACCH
;
1568 unsigned NCO1ACC8
: 1;
1569 unsigned NCO1ACC9
: 1;
1570 unsigned NCO1ACC10
: 1;
1571 unsigned NCO1ACC11
: 1;
1572 unsigned NCO1ACC12
: 1;
1573 unsigned NCO1ACC13
: 1;
1574 unsigned NCO1ACC14
: 1;
1575 unsigned NCO1ACC15
: 1;
1578 extern __at(0x0499) volatile __NCO1ACCHbits_t NCO1ACCHbits
;
1580 #define _NCO1ACC8 0x01
1581 #define _NCO1ACC9 0x02
1582 #define _NCO1ACC10 0x04
1583 #define _NCO1ACC11 0x08
1584 #define _NCO1ACC12 0x10
1585 #define _NCO1ACC13 0x20
1586 #define _NCO1ACC14 0x40
1587 #define _NCO1ACC15 0x80
1589 //==============================================================================
1592 //==============================================================================
1595 extern __at(0x049A) __sfr NCO1ACCU
;
1599 unsigned NCO1ACC16
: 1;
1600 unsigned NCO1ACC17
: 1;
1601 unsigned NCO1ACC18
: 1;
1602 unsigned NCO1ACC19
: 1;
1609 extern __at(0x049A) volatile __NCO1ACCUbits_t NCO1ACCUbits
;
1611 #define _NCO1ACC16 0x01
1612 #define _NCO1ACC17 0x02
1613 #define _NCO1ACC18 0x04
1614 #define _NCO1ACC19 0x08
1616 //==============================================================================
1618 extern __at(0x049B) __sfr NCO1INC
;
1620 //==============================================================================
1623 extern __at(0x049B) __sfr NCO1INCL
;
1627 unsigned NCO1INC0
: 1;
1628 unsigned NCO1INC1
: 1;
1629 unsigned NCO1INC2
: 1;
1630 unsigned NCO1INC3
: 1;
1631 unsigned NCO1INC4
: 1;
1632 unsigned NCO1INC5
: 1;
1633 unsigned NCO1INC6
: 1;
1634 unsigned NCO1INC7
: 1;
1637 extern __at(0x049B) volatile __NCO1INCLbits_t NCO1INCLbits
;
1639 #define _NCO1INC0 0x01
1640 #define _NCO1INC1 0x02
1641 #define _NCO1INC2 0x04
1642 #define _NCO1INC3 0x08
1643 #define _NCO1INC4 0x10
1644 #define _NCO1INC5 0x20
1645 #define _NCO1INC6 0x40
1646 #define _NCO1INC7 0x80
1648 //==============================================================================
1651 //==============================================================================
1654 extern __at(0x049C) __sfr NCO1INCH
;
1658 unsigned NCO1INC8
: 1;
1659 unsigned NCO1INC9
: 1;
1660 unsigned NCO1INC10
: 1;
1661 unsigned NCO1INC11
: 1;
1662 unsigned NCO1INC12
: 1;
1663 unsigned NCO1INC13
: 1;
1664 unsigned NCO1INC14
: 1;
1665 unsigned NCO1INC15
: 1;
1668 extern __at(0x049C) volatile __NCO1INCHbits_t NCO1INCHbits
;
1670 #define _NCO1INC8 0x01
1671 #define _NCO1INC9 0x02
1672 #define _NCO1INC10 0x04
1673 #define _NCO1INC11 0x08
1674 #define _NCO1INC12 0x10
1675 #define _NCO1INC13 0x20
1676 #define _NCO1INC14 0x40
1677 #define _NCO1INC15 0x80
1679 //==============================================================================
1681 extern __at(0x049D) __sfr NCO1INCU
;
1683 //==============================================================================
1686 extern __at(0x049E) __sfr NCO1CON
;
1700 extern __at(0x049E) volatile __NCO1CONbits_t NCO1CONbits
;
1708 //==============================================================================
1711 //==============================================================================
1714 extern __at(0x049F) __sfr NCO1CLK
;
1720 unsigned N1CKS0
: 1;
1721 unsigned N1CKS1
: 1;
1725 unsigned N1PWS0
: 1;
1726 unsigned N1PWS1
: 1;
1727 unsigned N1PWS2
: 1;
1743 extern __at(0x049F) volatile __NCO1CLKbits_t NCO1CLKbits
;
1745 #define _N1CKS0 0x01
1746 #define _N1CKS1 0x02
1747 #define _N1PWS0 0x20
1748 #define _N1PWS1 0x40
1749 #define _N1PWS2 0x80
1751 //==============================================================================
1754 //==============================================================================
1757 extern __at(0x0611) __sfr PWM1DCL
;
1769 unsigned PWM1DCL0
: 1;
1770 unsigned PWM1DCL1
: 1;
1776 unsigned PWM1DCL
: 2;
1780 extern __at(0x0611) volatile __PWM1DCLbits_t PWM1DCLbits
;
1782 #define _PWM1DCL0 0x40
1783 #define _PWM1DCL1 0x80
1785 //==============================================================================
1788 //==============================================================================
1791 extern __at(0x0612) __sfr PWM1DCH
;
1795 unsigned PWM1DCH0
: 1;
1796 unsigned PWM1DCH1
: 1;
1797 unsigned PWM1DCH2
: 1;
1798 unsigned PWM1DCH3
: 1;
1799 unsigned PWM1DCH4
: 1;
1800 unsigned PWM1DCH5
: 1;
1801 unsigned PWM1DCH6
: 1;
1802 unsigned PWM1DCH7
: 1;
1805 extern __at(0x0612) volatile __PWM1DCHbits_t PWM1DCHbits
;
1807 #define _PWM1DCH0 0x01
1808 #define _PWM1DCH1 0x02
1809 #define _PWM1DCH2 0x04
1810 #define _PWM1DCH3 0x08
1811 #define _PWM1DCH4 0x10
1812 #define _PWM1DCH5 0x20
1813 #define _PWM1DCH6 0x40
1814 #define _PWM1DCH7 0x80
1816 //==============================================================================
1819 //==============================================================================
1822 extern __at(0x0613) __sfr PWM1CON
;
1830 unsigned PWM1POL
: 1;
1831 unsigned PWM1OUT
: 1;
1832 unsigned PWM1OE
: 1;
1833 unsigned PWM1EN
: 1;
1836 extern __at(0x0613) volatile __PWM1CONbits_t PWM1CONbits
;
1838 #define _PWM1POL 0x10
1839 #define _PWM1OUT 0x20
1840 #define _PWM1OE 0x40
1841 #define _PWM1EN 0x80
1843 //==============================================================================
1846 //==============================================================================
1849 extern __at(0x0613) __sfr PWM1CON0
;
1857 unsigned PWM1POL
: 1;
1858 unsigned PWM1OUT
: 1;
1859 unsigned PWM1OE
: 1;
1860 unsigned PWM1EN
: 1;
1863 extern __at(0x0613) volatile __PWM1CON0bits_t PWM1CON0bits
;
1865 #define _PWM1CON0_PWM1POL 0x10
1866 #define _PWM1CON0_PWM1OUT 0x20
1867 #define _PWM1CON0_PWM1OE 0x40
1868 #define _PWM1CON0_PWM1EN 0x80
1870 //==============================================================================
1873 //==============================================================================
1876 extern __at(0x0614) __sfr PWM2DCL
;
1888 unsigned PWM2DCL0
: 1;
1889 unsigned PWM2DCL1
: 1;
1895 unsigned PWM2DCL
: 2;
1899 extern __at(0x0614) volatile __PWM2DCLbits_t PWM2DCLbits
;
1901 #define _PWM2DCL0 0x40
1902 #define _PWM2DCL1 0x80
1904 //==============================================================================
1907 //==============================================================================
1910 extern __at(0x0615) __sfr PWM2DCH
;
1914 unsigned PWM2DCH0
: 1;
1915 unsigned PWM2DCH1
: 1;
1916 unsigned PWM2DCH2
: 1;
1917 unsigned PWM2DCH3
: 1;
1918 unsigned PWM2DCH4
: 1;
1919 unsigned PWM2DCH5
: 1;
1920 unsigned PWM2DCH6
: 1;
1921 unsigned PWM2DCH7
: 1;
1924 extern __at(0x0615) volatile __PWM2DCHbits_t PWM2DCHbits
;
1926 #define _PWM2DCH0 0x01
1927 #define _PWM2DCH1 0x02
1928 #define _PWM2DCH2 0x04
1929 #define _PWM2DCH3 0x08
1930 #define _PWM2DCH4 0x10
1931 #define _PWM2DCH5 0x20
1932 #define _PWM2DCH6 0x40
1933 #define _PWM2DCH7 0x80
1935 //==============================================================================
1938 //==============================================================================
1941 extern __at(0x0616) __sfr PWM2CON
;
1949 unsigned PWM2POL
: 1;
1950 unsigned PWM2OUT
: 1;
1951 unsigned PWM2OE
: 1;
1952 unsigned PWM2EN
: 1;
1955 extern __at(0x0616) volatile __PWM2CONbits_t PWM2CONbits
;
1957 #define _PWM2POL 0x10
1958 #define _PWM2OUT 0x20
1959 #define _PWM2OE 0x40
1960 #define _PWM2EN 0x80
1962 //==============================================================================
1965 //==============================================================================
1968 extern __at(0x0616) __sfr PWM2CON0
;
1976 unsigned PWM2POL
: 1;
1977 unsigned PWM2OUT
: 1;
1978 unsigned PWM2OE
: 1;
1979 unsigned PWM2EN
: 1;
1982 extern __at(0x0616) volatile __PWM2CON0bits_t PWM2CON0bits
;
1984 #define _PWM2CON0_PWM2POL 0x10
1985 #define _PWM2CON0_PWM2OUT 0x20
1986 #define _PWM2CON0_PWM2OE 0x40
1987 #define _PWM2CON0_PWM2EN 0x80
1989 //==============================================================================
1992 //==============================================================================
1995 extern __at(0x0617) __sfr PWM3DCL
;
2007 unsigned PWM3DCL0
: 1;
2008 unsigned PWM3DCL1
: 1;
2014 unsigned PWM3DCL
: 2;
2018 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits
;
2020 #define _PWM3DCL0 0x40
2021 #define _PWM3DCL1 0x80
2023 //==============================================================================
2026 //==============================================================================
2029 extern __at(0x0618) __sfr PWM3DCH
;
2033 unsigned PWM3DCH0
: 1;
2034 unsigned PWM3DCH1
: 1;
2035 unsigned PWM3DCH2
: 1;
2036 unsigned PWM3DCH3
: 1;
2037 unsigned PWM3DCH4
: 1;
2038 unsigned PWM3DCH5
: 1;
2039 unsigned PWM3DCH6
: 1;
2040 unsigned PWM3DCH7
: 1;
2043 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits
;
2045 #define _PWM3DCH0 0x01
2046 #define _PWM3DCH1 0x02
2047 #define _PWM3DCH2 0x04
2048 #define _PWM3DCH3 0x08
2049 #define _PWM3DCH4 0x10
2050 #define _PWM3DCH5 0x20
2051 #define _PWM3DCH6 0x40
2052 #define _PWM3DCH7 0x80
2054 //==============================================================================
2057 //==============================================================================
2060 extern __at(0x0619) __sfr PWM3CON
;
2068 unsigned PWM3POL
: 1;
2069 unsigned PWM3OUT
: 1;
2070 unsigned PWM3OE
: 1;
2071 unsigned PWM3EN
: 1;
2074 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits
;
2076 #define _PWM3POL 0x10
2077 #define _PWM3OUT 0x20
2078 #define _PWM3OE 0x40
2079 #define _PWM3EN 0x80
2081 //==============================================================================
2084 //==============================================================================
2087 extern __at(0x0619) __sfr PWM3CON0
;
2095 unsigned PWM3POL
: 1;
2096 unsigned PWM3OUT
: 1;
2097 unsigned PWM3OE
: 1;
2098 unsigned PWM3EN
: 1;
2101 extern __at(0x0619) volatile __PWM3CON0bits_t PWM3CON0bits
;
2103 #define _PWM3CON0_PWM3POL 0x10
2104 #define _PWM3CON0_PWM3OUT 0x20
2105 #define _PWM3CON0_PWM3OE 0x40
2106 #define _PWM3CON0_PWM3EN 0x80
2108 //==============================================================================
2111 //==============================================================================
2114 extern __at(0x061A) __sfr PWM4DCL
;
2126 unsigned PWM4DCL0
: 1;
2127 unsigned PWM4DCL1
: 1;
2133 unsigned PWM4DCL
: 2;
2137 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits
;
2139 #define _PWM4DCL0 0x40
2140 #define _PWM4DCL1 0x80
2142 //==============================================================================
2145 //==============================================================================
2148 extern __at(0x061B) __sfr PWM4DCH
;
2152 unsigned PWM4DCH0
: 1;
2153 unsigned PWM4DCH1
: 1;
2154 unsigned PWM4DCH2
: 1;
2155 unsigned PWM4DCH3
: 1;
2156 unsigned PWM4DCH4
: 1;
2157 unsigned PWM4DCH5
: 1;
2158 unsigned PWM4DCH6
: 1;
2159 unsigned PWM4DCH7
: 1;
2162 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits
;
2164 #define _PWM4DCH0 0x01
2165 #define _PWM4DCH1 0x02
2166 #define _PWM4DCH2 0x04
2167 #define _PWM4DCH3 0x08
2168 #define _PWM4DCH4 0x10
2169 #define _PWM4DCH5 0x20
2170 #define _PWM4DCH6 0x40
2171 #define _PWM4DCH7 0x80
2173 //==============================================================================
2176 //==============================================================================
2179 extern __at(0x061C) __sfr PWM4CON
;
2187 unsigned PWM4POL
: 1;
2188 unsigned PWM4OUT
: 1;
2189 unsigned PWM4OE
: 1;
2190 unsigned PWM4EN
: 1;
2193 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits
;
2195 #define _PWM4POL 0x10
2196 #define _PWM4OUT 0x20
2197 #define _PWM4OE 0x40
2198 #define _PWM4EN 0x80
2200 //==============================================================================
2203 //==============================================================================
2206 extern __at(0x061C) __sfr PWM4CON0
;
2214 unsigned PWM4POL
: 1;
2215 unsigned PWM4OUT
: 1;
2216 unsigned PWM4OE
: 1;
2217 unsigned PWM4EN
: 1;
2220 extern __at(0x061C) volatile __PWM4CON0bits_t PWM4CON0bits
;
2222 #define _PWM4CON0_PWM4POL 0x10
2223 #define _PWM4CON0_PWM4OUT 0x20
2224 #define _PWM4CON0_PWM4OE 0x40
2225 #define _PWM4CON0_PWM4EN 0x80
2227 //==============================================================================
2230 //==============================================================================
2233 extern __at(0x0691) __sfr CWG1DBR
;
2239 unsigned CWG1DBR0
: 1;
2240 unsigned CWG1DBR1
: 1;
2241 unsigned CWG1DBR2
: 1;
2242 unsigned CWG1DBR3
: 1;
2243 unsigned CWG1DBR4
: 1;
2244 unsigned CWG1DBR5
: 1;
2251 unsigned CWG1DBR
: 6;
2256 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits
;
2258 #define _CWG1DBR0 0x01
2259 #define _CWG1DBR1 0x02
2260 #define _CWG1DBR2 0x04
2261 #define _CWG1DBR3 0x08
2262 #define _CWG1DBR4 0x10
2263 #define _CWG1DBR5 0x20
2265 //==============================================================================
2268 //==============================================================================
2271 extern __at(0x0692) __sfr CWG1DBF
;
2277 unsigned CWG1DBF0
: 1;
2278 unsigned CWG1DBF1
: 1;
2279 unsigned CWG1DBF2
: 1;
2280 unsigned CWG1DBF3
: 1;
2281 unsigned CWG1DBF4
: 1;
2282 unsigned CWG1DBF5
: 1;
2289 unsigned CWG1DBF
: 6;
2294 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits
;
2296 #define _CWG1DBF0 0x01
2297 #define _CWG1DBF1 0x02
2298 #define _CWG1DBF2 0x04
2299 #define _CWG1DBF3 0x08
2300 #define _CWG1DBF4 0x10
2301 #define _CWG1DBF5 0x20
2303 //==============================================================================
2306 //==============================================================================
2309 extern __at(0x0693) __sfr CWG1CON0
;
2316 unsigned G1POLA
: 1;
2317 unsigned G1POLB
: 1;
2323 extern __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits
;
2326 #define _G1POLA 0x08
2327 #define _G1POLB 0x10
2332 //==============================================================================
2335 //==============================================================================
2338 extern __at(0x0694) __sfr CWG1CON1
;
2348 unsigned G1ASDLA0
: 1;
2349 unsigned G1ASDLA1
: 1;
2350 unsigned G1ASDLB0
: 1;
2351 unsigned G1ASDLB1
: 1;
2363 unsigned G1ASDLA
: 2;
2370 unsigned G1ASDLB
: 2;
2374 extern __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits
;
2379 #define _G1ASDLA0 0x10
2380 #define _G1ASDLA1 0x20
2381 #define _G1ASDLB0 0x40
2382 #define _G1ASDLB1 0x80
2384 //==============================================================================
2387 //==============================================================================
2390 extern __at(0x0695) __sfr CWG1CON2
;
2394 unsigned G1ASDSCLC2
: 1;
2395 unsigned G1ASDSFLT
: 1;
2396 unsigned G1ASDSC1
: 1;
2400 unsigned G1ARSEN
: 1;
2404 extern __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits
;
2406 #define _G1ASDSCLC2 0x01
2407 #define _G1ASDSFLT 0x02
2408 #define _G1ASDSC1 0x04
2409 #define _G1ARSEN 0x40
2412 //==============================================================================
2415 //==============================================================================
2418 extern __at(0x0F0F) __sfr CLCDATA
;
2422 unsigned MCLC1OUT
: 1;
2423 unsigned MCLC2OUT
: 1;
2432 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits
;
2434 #define _MCLC1OUT 0x01
2435 #define _MCLC2OUT 0x02
2437 //==============================================================================
2440 //==============================================================================
2443 extern __at(0x0F10) __sfr CLC1CON
;
2449 unsigned LC1MODE0
: 1;
2450 unsigned LC1MODE1
: 1;
2451 unsigned LC1MODE2
: 1;
2452 unsigned LC1INTN
: 1;
2453 unsigned LC1INTP
: 1;
2454 unsigned LC1OUT
: 1;
2461 unsigned LCMODE0
: 1;
2462 unsigned LCMODE1
: 1;
2463 unsigned LCMODE2
: 1;
2464 unsigned LCINTN
: 1;
2465 unsigned LCINTP
: 1;
2473 unsigned LC1MODE
: 3;
2479 unsigned LCMODE
: 3;
2484 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits
;
2486 #define _LC1MODE0 0x01
2487 #define _LCMODE0 0x01
2488 #define _LC1MODE1 0x02
2489 #define _LCMODE1 0x02
2490 #define _LC1MODE2 0x04
2491 #define _LCMODE2 0x04
2492 #define _LC1INTN 0x08
2493 #define _LCINTN 0x08
2494 #define _LC1INTP 0x10
2495 #define _LCINTP 0x10
2496 #define _LC1OUT 0x20
2503 //==============================================================================
2506 //==============================================================================
2509 extern __at(0x0F11) __sfr CLC1POL
;
2515 unsigned LC1G1POL
: 1;
2516 unsigned LC1G2POL
: 1;
2517 unsigned LC1G3POL
: 1;
2518 unsigned LC1G4POL
: 1;
2522 unsigned LC1POL
: 1;
2538 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits
;
2540 #define _LC1G1POL 0x01
2542 #define _LC1G2POL 0x02
2544 #define _LC1G3POL 0x04
2546 #define _LC1G4POL 0x08
2548 #define _LC1POL 0x80
2551 //==============================================================================
2554 //==============================================================================
2557 extern __at(0x0F12) __sfr CLC1SEL0
;
2563 unsigned LC1D1S0
: 1;
2564 unsigned LC1D1S1
: 1;
2565 unsigned LC1D1S2
: 1;
2567 unsigned LC1D2S0
: 1;
2568 unsigned LC1D2S1
: 1;
2569 unsigned LC1D2S2
: 1;
2587 unsigned LC1D1S
: 3;
2600 unsigned LC1D2S
: 3;
2612 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits
;
2614 #define _LC1D1S0 0x01
2616 #define _LC1D1S1 0x02
2618 #define _LC1D1S2 0x04
2620 #define _LC1D2S0 0x10
2622 #define _LC1D2S1 0x20
2624 #define _LC1D2S2 0x40
2627 //==============================================================================
2630 //==============================================================================
2633 extern __at(0x0F13) __sfr CLC1SEL1
;
2639 unsigned LC1D3S0
: 1;
2640 unsigned LC1D3S1
: 1;
2641 unsigned LC1D3S2
: 1;
2643 unsigned LC1D4S0
: 1;
2644 unsigned LC1D4S1
: 1;
2645 unsigned LC1D4S2
: 1;
2669 unsigned LC1D3S
: 3;
2676 unsigned LC1D4S
: 3;
2688 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits
;
2690 #define _LC1D3S0 0x01
2692 #define _LC1D3S1 0x02
2694 #define _LC1D3S2 0x04
2696 #define _LC1D4S0 0x10
2698 #define _LC1D4S1 0x20
2700 #define _LC1D4S2 0x40
2703 //==============================================================================
2706 //==============================================================================
2709 extern __at(0x0F14) __sfr CLC1GLS0
;
2715 unsigned LC1G1D1N
: 1;
2716 unsigned LC1G1D1T
: 1;
2717 unsigned LC1G1D2N
: 1;
2718 unsigned LC1G1D2T
: 1;
2719 unsigned LC1G1D3N
: 1;
2720 unsigned LC1G1D3T
: 1;
2721 unsigned LC1G1D4N
: 1;
2722 unsigned LC1G1D4T
: 1;
2738 extern __at(0x0F14) volatile __CLC1GLS0bits_t CLC1GLS0bits
;
2740 #define _LC1G1D1N 0x01
2742 #define _LC1G1D1T 0x02
2744 #define _LC1G1D2N 0x04
2746 #define _LC1G1D2T 0x08
2748 #define _LC1G1D3N 0x10
2750 #define _LC1G1D3T 0x20
2752 #define _LC1G1D4N 0x40
2754 #define _LC1G1D4T 0x80
2757 //==============================================================================
2760 //==============================================================================
2763 extern __at(0x0F15) __sfr CLC1GLS1
;
2769 unsigned LC1G2D1N
: 1;
2770 unsigned LC1G2D1T
: 1;
2771 unsigned LC1G2D2N
: 1;
2772 unsigned LC1G2D2T
: 1;
2773 unsigned LC1G2D3N
: 1;
2774 unsigned LC1G2D3T
: 1;
2775 unsigned LC1G2D4N
: 1;
2776 unsigned LC1G2D4T
: 1;
2792 extern __at(0x0F15) volatile __CLC1GLS1bits_t CLC1GLS1bits
;
2794 #define _CLC1GLS1_LC1G2D1N 0x01
2795 #define _CLC1GLS1_D1N 0x01
2796 #define _CLC1GLS1_LC1G2D1T 0x02
2797 #define _CLC1GLS1_D1T 0x02
2798 #define _CLC1GLS1_LC1G2D2N 0x04
2799 #define _CLC1GLS1_D2N 0x04
2800 #define _CLC1GLS1_LC1G2D2T 0x08
2801 #define _CLC1GLS1_D2T 0x08
2802 #define _CLC1GLS1_LC1G2D3N 0x10
2803 #define _CLC1GLS1_D3N 0x10
2804 #define _CLC1GLS1_LC1G2D3T 0x20
2805 #define _CLC1GLS1_D3T 0x20
2806 #define _CLC1GLS1_LC1G2D4N 0x40
2807 #define _CLC1GLS1_D4N 0x40
2808 #define _CLC1GLS1_LC1G2D4T 0x80
2809 #define _CLC1GLS1_D4T 0x80
2811 //==============================================================================
2814 //==============================================================================
2817 extern __at(0x0F16) __sfr CLC1GLS2
;
2823 unsigned LC1G3D1N
: 1;
2824 unsigned LC1G3D1T
: 1;
2825 unsigned LC1G3D2N
: 1;
2826 unsigned LC1G3D2T
: 1;
2827 unsigned LC1G3D3N
: 1;
2828 unsigned LC1G3D3T
: 1;
2829 unsigned LC1G3D4N
: 1;
2830 unsigned LC1G3D4T
: 1;
2846 extern __at(0x0F16) volatile __CLC1GLS2bits_t CLC1GLS2bits
;
2848 #define _CLC1GLS2_LC1G3D1N 0x01
2849 #define _CLC1GLS2_D1N 0x01
2850 #define _CLC1GLS2_LC1G3D1T 0x02
2851 #define _CLC1GLS2_D1T 0x02
2852 #define _CLC1GLS2_LC1G3D2N 0x04
2853 #define _CLC1GLS2_D2N 0x04
2854 #define _CLC1GLS2_LC1G3D2T 0x08
2855 #define _CLC1GLS2_D2T 0x08
2856 #define _CLC1GLS2_LC1G3D3N 0x10
2857 #define _CLC1GLS2_D3N 0x10
2858 #define _CLC1GLS2_LC1G3D3T 0x20
2859 #define _CLC1GLS2_D3T 0x20
2860 #define _CLC1GLS2_LC1G3D4N 0x40
2861 #define _CLC1GLS2_D4N 0x40
2862 #define _CLC1GLS2_LC1G3D4T 0x80
2863 #define _CLC1GLS2_D4T 0x80
2865 //==============================================================================
2868 //==============================================================================
2871 extern __at(0x0F17) __sfr CLC1GLS3
;
2877 unsigned LC1G4D1N
: 1;
2878 unsigned LC1G4D1T
: 1;
2879 unsigned LC1G4D2N
: 1;
2880 unsigned LC1G4D2T
: 1;
2881 unsigned LC1G4D3N
: 1;
2882 unsigned LC1G4D3T
: 1;
2883 unsigned LC1G4D4N
: 1;
2884 unsigned LC1G4D4T
: 1;
2900 extern __at(0x0F17) volatile __CLC1GLS3bits_t CLC1GLS3bits
;
2902 #define _LC1G4D1N 0x01
2904 #define _LC1G4D1T 0x02
2906 #define _LC1G4D2N 0x04
2908 #define _LC1G4D2T 0x08
2910 #define _LC1G4D3N 0x10
2912 #define _LC1G4D3T 0x20
2914 #define _LC1G4D4N 0x40
2916 #define _LC1G4D4T 0x80
2919 //==============================================================================
2922 //==============================================================================
2925 extern __at(0x0F18) __sfr CLC2CON
;
2931 unsigned LC2MODE0
: 1;
2932 unsigned LC2MODE1
: 1;
2933 unsigned LC2MODE2
: 1;
2934 unsigned LC2INTN
: 1;
2935 unsigned LC2INTP
: 1;
2936 unsigned LC2OUT
: 1;
2943 unsigned LCMODE0
: 1;
2944 unsigned LCMODE1
: 1;
2945 unsigned LCMODE2
: 1;
2946 unsigned LCINTN
: 1;
2947 unsigned LCINTP
: 1;
2955 unsigned LCMODE
: 3;
2961 unsigned LC2MODE
: 3;
2966 extern __at(0x0F18) volatile __CLC2CONbits_t CLC2CONbits
;
2968 #define _CLC2CON_LC2MODE0 0x01
2969 #define _CLC2CON_LCMODE0 0x01
2970 #define _CLC2CON_LC2MODE1 0x02
2971 #define _CLC2CON_LCMODE1 0x02
2972 #define _CLC2CON_LC2MODE2 0x04
2973 #define _CLC2CON_LCMODE2 0x04
2974 #define _CLC2CON_LC2INTN 0x08
2975 #define _CLC2CON_LCINTN 0x08
2976 #define _CLC2CON_LC2INTP 0x10
2977 #define _CLC2CON_LCINTP 0x10
2978 #define _CLC2CON_LC2OUT 0x20
2979 #define _CLC2CON_LCOUT 0x20
2980 #define _CLC2CON_LC2OE 0x40
2981 #define _CLC2CON_LCOE 0x40
2982 #define _CLC2CON_LC2EN 0x80
2983 #define _CLC2CON_LCEN 0x80
2985 //==============================================================================
2988 //==============================================================================
2991 extern __at(0x0F19) __sfr CLC2POL
;
2997 unsigned LC2G1POL
: 1;
2998 unsigned LC2G2POL
: 1;
2999 unsigned LC2G3POL
: 1;
3000 unsigned LC2G4POL
: 1;
3004 unsigned LC2POL
: 1;
3020 extern __at(0x0F19) volatile __CLC2POLbits_t CLC2POLbits
;
3022 #define _CLC2POL_LC2G1POL 0x01
3023 #define _CLC2POL_G1POL 0x01
3024 #define _CLC2POL_LC2G2POL 0x02
3025 #define _CLC2POL_G2POL 0x02
3026 #define _CLC2POL_LC2G3POL 0x04
3027 #define _CLC2POL_G3POL 0x04
3028 #define _CLC2POL_LC2G4POL 0x08
3029 #define _CLC2POL_G4POL 0x08
3030 #define _CLC2POL_LC2POL 0x80
3031 #define _CLC2POL_POL 0x80
3033 //==============================================================================
3036 //==============================================================================
3039 extern __at(0x0F1A) __sfr CLC2SEL0
;
3045 unsigned LC2D1S0
: 1;
3046 unsigned LC2D1S1
: 1;
3047 unsigned LC2D1S2
: 1;
3049 unsigned LC2D2S0
: 1;
3050 unsigned LC2D2S1
: 1;
3051 unsigned LC2D2S2
: 1;
3069 unsigned LC2D1S
: 3;
3082 unsigned LC2D2S
: 3;
3094 extern __at(0x0F1A) volatile __CLC2SEL0bits_t CLC2SEL0bits
;
3096 #define _CLC2SEL0_LC2D1S0 0x01
3097 #define _CLC2SEL0_D1S0 0x01
3098 #define _CLC2SEL0_LC2D1S1 0x02
3099 #define _CLC2SEL0_D1S1 0x02
3100 #define _CLC2SEL0_LC2D1S2 0x04
3101 #define _CLC2SEL0_D1S2 0x04
3102 #define _CLC2SEL0_LC2D2S0 0x10
3103 #define _CLC2SEL0_D2S0 0x10
3104 #define _CLC2SEL0_LC2D2S1 0x20
3105 #define _CLC2SEL0_D2S1 0x20
3106 #define _CLC2SEL0_LC2D2S2 0x40
3107 #define _CLC2SEL0_D2S2 0x40
3109 //==============================================================================
3112 //==============================================================================
3115 extern __at(0x0F1B) __sfr CLC2SEL1
;
3121 unsigned LC2D3S0
: 1;
3122 unsigned LC2D3S1
: 1;
3123 unsigned LC2D3S2
: 1;
3125 unsigned LC2D4S0
: 1;
3126 unsigned LC2D4S1
: 1;
3127 unsigned LC2D4S2
: 1;
3151 unsigned LC2D3S
: 3;
3158 unsigned LC2D4S
: 3;
3170 extern __at(0x0F1B) volatile __CLC2SEL1bits_t CLC2SEL1bits
;
3172 #define _CLC2SEL1_LC2D3S0 0x01
3173 #define _CLC2SEL1_D3S0 0x01
3174 #define _CLC2SEL1_LC2D3S1 0x02
3175 #define _CLC2SEL1_D3S1 0x02
3176 #define _CLC2SEL1_LC2D3S2 0x04
3177 #define _CLC2SEL1_D3S2 0x04
3178 #define _CLC2SEL1_LC2D4S0 0x10
3179 #define _CLC2SEL1_D4S0 0x10
3180 #define _CLC2SEL1_LC2D4S1 0x20
3181 #define _CLC2SEL1_D4S1 0x20
3182 #define _CLC2SEL1_LC2D4S2 0x40
3183 #define _CLC2SEL1_D4S2 0x40
3185 //==============================================================================
3188 //==============================================================================
3191 extern __at(0x0F1C) __sfr CLC2GLS0
;
3197 unsigned LC2G1D1N
: 1;
3198 unsigned LC2G1D1T
: 1;
3199 unsigned LC2G1D2N
: 1;
3200 unsigned LC2G1D2T
: 1;
3201 unsigned LC2G1D3N
: 1;
3202 unsigned LC2G1D3T
: 1;
3203 unsigned LC2G1D4N
: 1;
3204 unsigned LC2G1D4T
: 1;
3220 extern __at(0x0F1C) volatile __CLC2GLS0bits_t CLC2GLS0bits
;
3222 #define _CLC2GLS0_LC2G1D1N 0x01
3223 #define _CLC2GLS0_D1N 0x01
3224 #define _CLC2GLS0_LC2G1D1T 0x02
3225 #define _CLC2GLS0_D1T 0x02
3226 #define _CLC2GLS0_LC2G1D2N 0x04
3227 #define _CLC2GLS0_D2N 0x04
3228 #define _CLC2GLS0_LC2G1D2T 0x08
3229 #define _CLC2GLS0_D2T 0x08
3230 #define _CLC2GLS0_LC2G1D3N 0x10
3231 #define _CLC2GLS0_D3N 0x10
3232 #define _CLC2GLS0_LC2G1D3T 0x20
3233 #define _CLC2GLS0_D3T 0x20
3234 #define _CLC2GLS0_LC2G1D4N 0x40
3235 #define _CLC2GLS0_D4N 0x40
3236 #define _CLC2GLS0_LC2G1D4T 0x80
3237 #define _CLC2GLS0_D4T 0x80
3239 //==============================================================================
3242 //==============================================================================
3245 extern __at(0x0F1D) __sfr CLC2GLS1
;
3251 unsigned LC2G2D1N
: 1;
3252 unsigned LC2G2D1T
: 1;
3253 unsigned LC2G2D2N
: 1;
3254 unsigned LC2G2D2T
: 1;
3255 unsigned LC2G2D3N
: 1;
3256 unsigned LC2G2D3T
: 1;
3257 unsigned LC2G2D4N
: 1;
3258 unsigned LC2G2D4T
: 1;
3274 extern __at(0x0F1D) volatile __CLC2GLS1bits_t CLC2GLS1bits
;
3276 #define _CLC2GLS1_LC2G2D1N 0x01
3277 #define _CLC2GLS1_D1N 0x01
3278 #define _CLC2GLS1_LC2G2D1T 0x02
3279 #define _CLC2GLS1_D1T 0x02
3280 #define _CLC2GLS1_LC2G2D2N 0x04
3281 #define _CLC2GLS1_D2N 0x04
3282 #define _CLC2GLS1_LC2G2D2T 0x08
3283 #define _CLC2GLS1_D2T 0x08
3284 #define _CLC2GLS1_LC2G2D3N 0x10
3285 #define _CLC2GLS1_D3N 0x10
3286 #define _CLC2GLS1_LC2G2D3T 0x20
3287 #define _CLC2GLS1_D3T 0x20
3288 #define _CLC2GLS1_LC2G2D4N 0x40
3289 #define _CLC2GLS1_D4N 0x40
3290 #define _CLC2GLS1_LC2G2D4T 0x80
3291 #define _CLC2GLS1_D4T 0x80
3293 //==============================================================================
3296 //==============================================================================
3299 extern __at(0x0F1E) __sfr CLC2GLS2
;
3305 unsigned LC2G3D1N
: 1;
3306 unsigned LC2G3D1T
: 1;
3307 unsigned LC2G3D2N
: 1;
3308 unsigned LC2G3D2T
: 1;
3309 unsigned LC2G3D3N
: 1;
3310 unsigned LC2G3D3T
: 1;
3311 unsigned LC2G3D4N
: 1;
3312 unsigned LC2G3D4T
: 1;
3328 extern __at(0x0F1E) volatile __CLC2GLS2bits_t CLC2GLS2bits
;
3330 #define _CLC2GLS2_LC2G3D1N 0x01
3331 #define _CLC2GLS2_D1N 0x01
3332 #define _CLC2GLS2_LC2G3D1T 0x02
3333 #define _CLC2GLS2_D1T 0x02
3334 #define _CLC2GLS2_LC2G3D2N 0x04
3335 #define _CLC2GLS2_D2N 0x04
3336 #define _CLC2GLS2_LC2G3D2T 0x08
3337 #define _CLC2GLS2_D2T 0x08
3338 #define _CLC2GLS2_LC2G3D3N 0x10
3339 #define _CLC2GLS2_D3N 0x10
3340 #define _CLC2GLS2_LC2G3D3T 0x20
3341 #define _CLC2GLS2_D3T 0x20
3342 #define _CLC2GLS2_LC2G3D4N 0x40
3343 #define _CLC2GLS2_D4N 0x40
3344 #define _CLC2GLS2_LC2G3D4T 0x80
3345 #define _CLC2GLS2_D4T 0x80
3347 //==============================================================================
3350 //==============================================================================
3353 extern __at(0x0F1F) __sfr CLC2GLS3
;
3359 unsigned LC2G4D1N
: 1;
3360 unsigned LC2G4D1T
: 1;
3361 unsigned LC2G4D2N
: 1;
3362 unsigned LC2G4D2T
: 1;
3363 unsigned LC2G4D3N
: 1;
3364 unsigned LC2G4D3T
: 1;
3365 unsigned LC2G4D4N
: 1;
3366 unsigned LC2G4D4T
: 1;
3382 extern __at(0x0F1F) volatile __CLC2GLS3bits_t CLC2GLS3bits
;
3384 #define _CLC2GLS3_LC2G4D1N 0x01
3385 #define _CLC2GLS3_G4D1N 0x01
3386 #define _CLC2GLS3_LC2G4D1T 0x02
3387 #define _CLC2GLS3_G4D1T 0x02
3388 #define _CLC2GLS3_LC2G4D2N 0x04
3389 #define _CLC2GLS3_G4D2N 0x04
3390 #define _CLC2GLS3_LC2G4D2T 0x08
3391 #define _CLC2GLS3_G4D2T 0x08
3392 #define _CLC2GLS3_LC2G4D3N 0x10
3393 #define _CLC2GLS3_G4D3N 0x10
3394 #define _CLC2GLS3_LC2G4D3T 0x20
3395 #define _CLC2GLS3_G4D3T 0x20
3396 #define _CLC2GLS3_LC2G4D4N 0x40
3397 #define _CLC2GLS3_G4D4N 0x40
3398 #define _CLC2GLS3_LC2G4D4T 0x80
3399 #define _CLC2GLS3_G4D4T 0x80
3401 //==============================================================================
3403 extern __at(0x0FE3) __sfr BSR_ICDSHAD
;
3405 //==============================================================================
3408 extern __at(0x0FE4) __sfr STATUS_SHAD
;
3412 unsigned C_SHAD
: 1;
3413 unsigned DC_SHAD
: 1;
3414 unsigned Z_SHAD
: 1;
3420 } __STATUS_SHADbits_t
;
3422 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
3424 #define _C_SHAD 0x01
3425 #define _DC_SHAD 0x02
3426 #define _Z_SHAD 0x04
3428 //==============================================================================
3430 extern __at(0x0FE5) __sfr WREG_SHAD
;
3431 extern __at(0x0FE6) __sfr BSR_SHAD
;
3432 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
3433 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
3434 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
3435 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
3436 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
3437 extern __at(0x0FED) __sfr STKPTR
;
3438 extern __at(0x0FEE) __sfr TOSL
;
3439 extern __at(0x0FEF) __sfr TOSH
;
3441 //==============================================================================
3443 // Configuration Bits
3445 //==============================================================================
3447 #define _CONFIG1 0x8007
3448 #define _CONFIG2 0x8008
3450 //----------------------------- CONFIG1 Options -------------------------------
3452 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
3453 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
3454 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
3455 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pin.
3456 #define _WDTE_OFF 0x3FE7 // WDT disabled.
3457 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
3458 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
3459 #define _WDTE_ON 0x3FFF // WDT enabled.
3460 #define _PWRTE_ON 0x3FDF // PWRT enabled.
3461 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
3462 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
3463 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
3464 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
3465 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
3466 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
3467 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
3468 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
3469 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
3470 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
3471 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
3473 //----------------------------- CONFIG2 Options -------------------------------
3475 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
3476 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
3477 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
3478 #define _WRT_OFF 0x3FFF // Write protection off.
3479 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
3480 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
3481 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
3482 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
3483 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
3484 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
3485 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
3486 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
3488 //==============================================================================
3490 #define _DEVID1 0x8006
3492 #define _IDLOC0 0x8000
3493 #define _IDLOC1 0x8001
3494 #define _IDLOC2 0x8002
3495 #define _IDLOC3 0x8003
3497 //==============================================================================
3499 #ifndef NO_BIT_DEFINES
3501 #define ADON ADCON0bits.ADON // bit 0
3502 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
3503 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
3504 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
3505 #define CHS0 ADCON0bits.CHS0 // bit 2
3506 #define CHS1 ADCON0bits.CHS1 // bit 3
3507 #define CHS2 ADCON0bits.CHS2 // bit 4
3508 #define CHS3 ADCON0bits.CHS3 // bit 5
3509 #define CHS4 ADCON0bits.CHS4 // bit 6
3511 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
3512 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
3513 #define ADFM ADCON1bits.ADFM // bit 7
3515 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
3516 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
3517 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
3518 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
3520 #define ANSA0 ANSELAbits.ANSA0 // bit 0
3521 #define ANSA1 ANSELAbits.ANSA1 // bit 1
3522 #define ANSA2 ANSELAbits.ANSA2 // bit 2
3523 #define ANSA4 ANSELAbits.ANSA4 // bit 4
3525 #define NCO1SEL APFCONbits.NCO1SEL // bit 0
3526 #define CLC1SEL APFCONbits.CLC1SEL // bit 1
3527 #define T1GSEL APFCONbits.T1GSEL // bit 3
3528 #define CWG1ASEL APFCONbits.CWG1ASEL // bit 6
3529 #define CWG1BSEL APFCONbits.CWG1BSEL // bit 7
3531 #define BORRDY BORCONbits.BORRDY // bit 0
3532 #define BORFS BORCONbits.BORFS // bit 6
3533 #define SBOREN BORCONbits.SBOREN // bit 7
3535 #define BSR0 BSRbits.BSR0 // bit 0
3536 #define BSR1 BSRbits.BSR1 // bit 1
3537 #define BSR2 BSRbits.BSR2 // bit 2
3538 #define BSR3 BSRbits.BSR3 // bit 3
3539 #define BSR4 BSRbits.BSR4 // bit 4
3541 #define LC1MODE0 CLC1CONbits.LC1MODE0 // bit 0, shadows bit in CLC1CONbits
3542 #define LCMODE0 CLC1CONbits.LCMODE0 // bit 0, shadows bit in CLC1CONbits
3543 #define LC1MODE1 CLC1CONbits.LC1MODE1 // bit 1, shadows bit in CLC1CONbits
3544 #define LCMODE1 CLC1CONbits.LCMODE1 // bit 1, shadows bit in CLC1CONbits
3545 #define LC1MODE2 CLC1CONbits.LC1MODE2 // bit 2, shadows bit in CLC1CONbits
3546 #define LCMODE2 CLC1CONbits.LCMODE2 // bit 2, shadows bit in CLC1CONbits
3547 #define LC1INTN CLC1CONbits.LC1INTN // bit 3, shadows bit in CLC1CONbits
3548 #define LCINTN CLC1CONbits.LCINTN // bit 3, shadows bit in CLC1CONbits
3549 #define LC1INTP CLC1CONbits.LC1INTP // bit 4, shadows bit in CLC1CONbits
3550 #define LCINTP CLC1CONbits.LCINTP // bit 4, shadows bit in CLC1CONbits
3551 #define LC1OUT CLC1CONbits.LC1OUT // bit 5, shadows bit in CLC1CONbits
3552 #define LCOUT CLC1CONbits.LCOUT // bit 5, shadows bit in CLC1CONbits
3553 #define LC1OE CLC1CONbits.LC1OE // bit 6, shadows bit in CLC1CONbits
3554 #define LCOE CLC1CONbits.LCOE // bit 6, shadows bit in CLC1CONbits
3555 #define LC1EN CLC1CONbits.LC1EN // bit 7, shadows bit in CLC1CONbits
3556 #define LCEN CLC1CONbits.LCEN // bit 7, shadows bit in CLC1CONbits
3558 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
3559 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
3560 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
3561 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
3562 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
3563 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
3564 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
3565 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
3566 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
3567 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
3568 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
3569 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
3570 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
3571 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
3572 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
3573 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
3575 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
3576 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
3577 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
3578 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
3579 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
3580 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
3581 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
3582 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
3583 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
3584 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
3585 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
3586 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
3587 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
3588 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
3589 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
3590 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
3592 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
3593 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
3594 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
3595 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
3596 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
3597 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
3598 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
3599 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
3600 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
3601 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
3603 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
3604 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
3605 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
3606 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
3607 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
3608 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
3609 #define LC1D2S0 CLC1SEL0bits.LC1D2S0 // bit 4, shadows bit in CLC1SEL0bits
3610 #define D2S0 CLC1SEL0bits.D2S0 // bit 4, shadows bit in CLC1SEL0bits
3611 #define LC1D2S1 CLC1SEL0bits.LC1D2S1 // bit 5, shadows bit in CLC1SEL0bits
3612 #define D2S1 CLC1SEL0bits.D2S1 // bit 5, shadows bit in CLC1SEL0bits
3613 #define LC1D2S2 CLC1SEL0bits.LC1D2S2 // bit 6, shadows bit in CLC1SEL0bits
3614 #define D2S2 CLC1SEL0bits.D2S2 // bit 6, shadows bit in CLC1SEL0bits
3616 #define LC1D3S0 CLC1SEL1bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL1bits
3617 #define D3S0 CLC1SEL1bits.D3S0 // bit 0, shadows bit in CLC1SEL1bits
3618 #define LC1D3S1 CLC1SEL1bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL1bits
3619 #define D3S1 CLC1SEL1bits.D3S1 // bit 1, shadows bit in CLC1SEL1bits
3620 #define LC1D3S2 CLC1SEL1bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL1bits
3621 #define D3S2 CLC1SEL1bits.D3S2 // bit 2, shadows bit in CLC1SEL1bits
3622 #define LC1D4S0 CLC1SEL1bits.LC1D4S0 // bit 4, shadows bit in CLC1SEL1bits
3623 #define D4S0 CLC1SEL1bits.D4S0 // bit 4, shadows bit in CLC1SEL1bits
3624 #define LC1D4S1 CLC1SEL1bits.LC1D4S1 // bit 5, shadows bit in CLC1SEL1bits
3625 #define D4S1 CLC1SEL1bits.D4S1 // bit 5, shadows bit in CLC1SEL1bits
3626 #define LC1D4S2 CLC1SEL1bits.LC1D4S2 // bit 6, shadows bit in CLC1SEL1bits
3627 #define D4S2 CLC1SEL1bits.D4S2 // bit 6, shadows bit in CLC1SEL1bits
3629 #define MCLC1OUT CLCDATAbits.MCLC1OUT // bit 0
3630 #define MCLC2OUT CLCDATAbits.MCLC2OUT // bit 1
3632 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
3633 #define C1HYS CM1CON0bits.C1HYS // bit 1
3634 #define C1SP CM1CON0bits.C1SP // bit 2
3635 #define C1POL CM1CON0bits.C1POL // bit 4
3636 #define C1OE CM1CON0bits.C1OE // bit 5
3637 #define C1OUT CM1CON0bits.C1OUT // bit 6
3638 #define C1ON CM1CON0bits.C1ON // bit 7
3640 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
3641 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
3642 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
3643 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
3644 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
3645 #define C1INTN CM1CON1bits.C1INTN // bit 6
3646 #define C1INTP CM1CON1bits.C1INTP // bit 7
3648 #define MC1OUT CMOUTbits.MC1OUT // bit 0
3650 #define G1CS0 CWG1CON0bits.G1CS0 // bit 0
3651 #define G1POLA CWG1CON0bits.G1POLA // bit 3
3652 #define G1POLB CWG1CON0bits.G1POLB // bit 4
3653 #define G1OEA CWG1CON0bits.G1OEA // bit 5
3654 #define G1OEB CWG1CON0bits.G1OEB // bit 6
3655 #define G1EN CWG1CON0bits.G1EN // bit 7
3657 #define G1IS0 CWG1CON1bits.G1IS0 // bit 0
3658 #define G1IS1 CWG1CON1bits.G1IS1 // bit 1
3659 #define G1IS2 CWG1CON1bits.G1IS2 // bit 2
3660 #define G1ASDLA0 CWG1CON1bits.G1ASDLA0 // bit 4
3661 #define G1ASDLA1 CWG1CON1bits.G1ASDLA1 // bit 5
3662 #define G1ASDLB0 CWG1CON1bits.G1ASDLB0 // bit 6
3663 #define G1ASDLB1 CWG1CON1bits.G1ASDLB1 // bit 7
3665 #define G1ASDSCLC2 CWG1CON2bits.G1ASDSCLC2 // bit 0
3666 #define G1ASDSFLT CWG1CON2bits.G1ASDSFLT // bit 1
3667 #define G1ASDSC1 CWG1CON2bits.G1ASDSC1 // bit 2
3668 #define G1ARSEN CWG1CON2bits.G1ARSEN // bit 6
3669 #define G1ASE CWG1CON2bits.G1ASE // bit 7
3671 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0
3672 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1
3673 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2
3674 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3
3675 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4
3676 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5
3678 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0
3679 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1
3680 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2
3681 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3
3682 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4
3683 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5
3685 #define DACPSS DACCON0bits.DACPSS // bit 2
3686 #define DACOE2 DACCON0bits.DACOE2 // bit 4
3687 #define DACOE1 DACCON0bits.DACOE1 // bit 5
3688 #define DACEN DACCON0bits.DACEN // bit 7
3690 #define DACR0 DACCON1bits.DACR0 // bit 0
3691 #define DACR1 DACCON1bits.DACR1 // bit 1
3692 #define DACR2 DACCON1bits.DACR2 // bit 2
3693 #define DACR3 DACCON1bits.DACR3 // bit 3
3694 #define DACR4 DACCON1bits.DACR4 // bit 4
3696 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
3697 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
3698 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
3699 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
3700 #define TSRNG FVRCONbits.TSRNG // bit 4
3701 #define TSEN FVRCONbits.TSEN // bit 5
3702 #define FVRRDY FVRCONbits.FVRRDY // bit 6
3703 #define FVREN FVRCONbits.FVREN // bit 7
3705 #define IOCIF INTCONbits.IOCIF // bit 0
3706 #define INTF INTCONbits.INTF // bit 1
3707 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
3708 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
3709 #define IOCIE INTCONbits.IOCIE // bit 3
3710 #define INTE INTCONbits.INTE // bit 4
3711 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
3712 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
3713 #define PEIE INTCONbits.PEIE // bit 6
3714 #define GIE INTCONbits.GIE // bit 7
3716 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
3717 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
3718 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
3719 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
3720 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
3721 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
3723 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
3724 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
3725 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
3726 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
3727 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
3728 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
3730 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
3731 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
3732 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
3733 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
3734 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
3735 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
3737 #define LATA0 LATAbits.LATA0 // bit 0
3738 #define LATA1 LATAbits.LATA1 // bit 1
3739 #define LATA2 LATAbits.LATA2 // bit 2
3740 #define LATA4 LATAbits.LATA4 // bit 4
3741 #define LATA5 LATAbits.LATA5 // bit 5
3743 #define NCO1ACC8 NCO1ACCHbits.NCO1ACC8 // bit 0
3744 #define NCO1ACC9 NCO1ACCHbits.NCO1ACC9 // bit 1
3745 #define NCO1ACC10 NCO1ACCHbits.NCO1ACC10 // bit 2
3746 #define NCO1ACC11 NCO1ACCHbits.NCO1ACC11 // bit 3
3747 #define NCO1ACC12 NCO1ACCHbits.NCO1ACC12 // bit 4
3748 #define NCO1ACC13 NCO1ACCHbits.NCO1ACC13 // bit 5
3749 #define NCO1ACC14 NCO1ACCHbits.NCO1ACC14 // bit 6
3750 #define NCO1ACC15 NCO1ACCHbits.NCO1ACC15 // bit 7
3752 #define NCO1ACC0 NCO1ACCLbits.NCO1ACC0 // bit 0
3753 #define NCO1ACC1 NCO1ACCLbits.NCO1ACC1 // bit 1
3754 #define NCO1ACC2 NCO1ACCLbits.NCO1ACC2 // bit 2
3755 #define NCO1ACC3 NCO1ACCLbits.NCO1ACC3 // bit 3
3756 #define NCO1ACC4 NCO1ACCLbits.NCO1ACC4 // bit 4
3757 #define NCO1ACC5 NCO1ACCLbits.NCO1ACC5 // bit 5
3758 #define NCO1ACC6 NCO1ACCLbits.NCO1ACC6 // bit 6
3759 #define NCO1ACC7 NCO1ACCLbits.NCO1ACC7 // bit 7
3761 #define NCO1ACC16 NCO1ACCUbits.NCO1ACC16 // bit 0
3762 #define NCO1ACC17 NCO1ACCUbits.NCO1ACC17 // bit 1
3763 #define NCO1ACC18 NCO1ACCUbits.NCO1ACC18 // bit 2
3764 #define NCO1ACC19 NCO1ACCUbits.NCO1ACC19 // bit 3
3766 #define N1CKS0 NCO1CLKbits.N1CKS0 // bit 0
3767 #define N1CKS1 NCO1CLKbits.N1CKS1 // bit 1
3768 #define N1PWS0 NCO1CLKbits.N1PWS0 // bit 5
3769 #define N1PWS1 NCO1CLKbits.N1PWS1 // bit 6
3770 #define N1PWS2 NCO1CLKbits.N1PWS2 // bit 7
3772 #define N1PFM NCO1CONbits.N1PFM // bit 0
3773 #define N1POL NCO1CONbits.N1POL // bit 4
3774 #define N1OUT NCO1CONbits.N1OUT // bit 5
3775 #define N1OE NCO1CONbits.N1OE // bit 6
3776 #define N1EN NCO1CONbits.N1EN // bit 7
3778 #define NCO1INC8 NCO1INCHbits.NCO1INC8 // bit 0
3779 #define NCO1INC9 NCO1INCHbits.NCO1INC9 // bit 1
3780 #define NCO1INC10 NCO1INCHbits.NCO1INC10 // bit 2
3781 #define NCO1INC11 NCO1INCHbits.NCO1INC11 // bit 3
3782 #define NCO1INC12 NCO1INCHbits.NCO1INC12 // bit 4
3783 #define NCO1INC13 NCO1INCHbits.NCO1INC13 // bit 5
3784 #define NCO1INC14 NCO1INCHbits.NCO1INC14 // bit 6
3785 #define NCO1INC15 NCO1INCHbits.NCO1INC15 // bit 7
3787 #define NCO1INC0 NCO1INCLbits.NCO1INC0 // bit 0
3788 #define NCO1INC1 NCO1INCLbits.NCO1INC1 // bit 1
3789 #define NCO1INC2 NCO1INCLbits.NCO1INC2 // bit 2
3790 #define NCO1INC3 NCO1INCLbits.NCO1INC3 // bit 3
3791 #define NCO1INC4 NCO1INCLbits.NCO1INC4 // bit 4
3792 #define NCO1INC5 NCO1INCLbits.NCO1INC5 // bit 5
3793 #define NCO1INC6 NCO1INCLbits.NCO1INC6 // bit 6
3794 #define NCO1INC7 NCO1INCLbits.NCO1INC7 // bit 7
3796 #define PS0 OPTION_REGbits.PS0 // bit 0
3797 #define PS1 OPTION_REGbits.PS1 // bit 1
3798 #define PS2 OPTION_REGbits.PS2 // bit 2
3799 #define PSA OPTION_REGbits.PSA // bit 3
3800 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
3801 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
3802 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
3803 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
3804 #define INTEDG OPTION_REGbits.INTEDG // bit 6
3805 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
3807 #define SCS0 OSCCONbits.SCS0 // bit 0
3808 #define SCS1 OSCCONbits.SCS1 // bit 1
3809 #define IRCF0 OSCCONbits.IRCF0 // bit 3
3810 #define IRCF1 OSCCONbits.IRCF1 // bit 4
3811 #define IRCF2 OSCCONbits.IRCF2 // bit 5
3812 #define IRCF3 OSCCONbits.IRCF3 // bit 6
3814 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
3815 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
3816 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
3818 #define NOT_BOR PCONbits.NOT_BOR // bit 0
3819 #define NOT_POR PCONbits.NOT_POR // bit 1
3820 #define NOT_RI PCONbits.NOT_RI // bit 2
3821 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
3822 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
3823 #define STKUNF PCONbits.STKUNF // bit 6
3824 #define STKOVF PCONbits.STKOVF // bit 7
3826 #define TMR1IE PIE1bits.TMR1IE // bit 0
3827 #define TMR2IE PIE1bits.TMR2IE // bit 1
3828 #define ADIE PIE1bits.ADIE // bit 6
3829 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
3831 #define NCO1IE PIE2bits.NCO1IE // bit 2
3832 #define C1IE PIE2bits.C1IE // bit 5
3834 #define CLC1IE PIE3bits.CLC1IE // bit 0
3835 #define CLC2IE PIE3bits.CLC2IE // bit 1
3837 #define TMR1IF PIR1bits.TMR1IF // bit 0
3838 #define TMR2IF PIR1bits.TMR2IF // bit 1
3839 #define ADIF PIR1bits.ADIF // bit 6
3840 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
3842 #define NCO1IF PIR2bits.NCO1IF // bit 2
3843 #define C1IF PIR2bits.C1IF // bit 5
3845 #define CLC1IF PIR3bits.CLC1IF // bit 0
3846 #define CLC2IF PIR3bits.CLC2IF // bit 1
3848 #define RD PMCON1bits.RD // bit 0
3849 #define WR PMCON1bits.WR // bit 1
3850 #define WREN PMCON1bits.WREN // bit 2
3851 #define WRERR PMCON1bits.WRERR // bit 3
3852 #define FREE PMCON1bits.FREE // bit 4
3853 #define LWLO PMCON1bits.LWLO // bit 5
3854 #define CFGS PMCON1bits.CFGS // bit 6
3856 #define RA0 PORTAbits.RA0 // bit 0
3857 #define RA1 PORTAbits.RA1 // bit 1
3858 #define RA2 PORTAbits.RA2 // bit 2
3859 #define RA3 PORTAbits.RA3 // bit 3
3860 #define RA4 PORTAbits.RA4 // bit 4
3861 #define RA5 PORTAbits.RA5 // bit 5
3863 #define PWM1POL PWM1CONbits.PWM1POL // bit 4
3864 #define PWM1OUT PWM1CONbits.PWM1OUT // bit 5
3865 #define PWM1OE PWM1CONbits.PWM1OE // bit 6
3866 #define PWM1EN PWM1CONbits.PWM1EN // bit 7
3868 #define PWM1DCH0 PWM1DCHbits.PWM1DCH0 // bit 0
3869 #define PWM1DCH1 PWM1DCHbits.PWM1DCH1 // bit 1
3870 #define PWM1DCH2 PWM1DCHbits.PWM1DCH2 // bit 2
3871 #define PWM1DCH3 PWM1DCHbits.PWM1DCH3 // bit 3
3872 #define PWM1DCH4 PWM1DCHbits.PWM1DCH4 // bit 4
3873 #define PWM1DCH5 PWM1DCHbits.PWM1DCH5 // bit 5
3874 #define PWM1DCH6 PWM1DCHbits.PWM1DCH6 // bit 6
3875 #define PWM1DCH7 PWM1DCHbits.PWM1DCH7 // bit 7
3877 #define PWM1DCL0 PWM1DCLbits.PWM1DCL0 // bit 6
3878 #define PWM1DCL1 PWM1DCLbits.PWM1DCL1 // bit 7
3880 #define PWM2POL PWM2CONbits.PWM2POL // bit 4
3881 #define PWM2OUT PWM2CONbits.PWM2OUT // bit 5
3882 #define PWM2OE PWM2CONbits.PWM2OE // bit 6
3883 #define PWM2EN PWM2CONbits.PWM2EN // bit 7
3885 #define PWM2DCH0 PWM2DCHbits.PWM2DCH0 // bit 0
3886 #define PWM2DCH1 PWM2DCHbits.PWM2DCH1 // bit 1
3887 #define PWM2DCH2 PWM2DCHbits.PWM2DCH2 // bit 2
3888 #define PWM2DCH3 PWM2DCHbits.PWM2DCH3 // bit 3
3889 #define PWM2DCH4 PWM2DCHbits.PWM2DCH4 // bit 4
3890 #define PWM2DCH5 PWM2DCHbits.PWM2DCH5 // bit 5
3891 #define PWM2DCH6 PWM2DCHbits.PWM2DCH6 // bit 6
3892 #define PWM2DCH7 PWM2DCHbits.PWM2DCH7 // bit 7
3894 #define PWM2DCL0 PWM2DCLbits.PWM2DCL0 // bit 6
3895 #define PWM2DCL1 PWM2DCLbits.PWM2DCL1 // bit 7
3897 #define PWM3POL PWM3CONbits.PWM3POL // bit 4
3898 #define PWM3OUT PWM3CONbits.PWM3OUT // bit 5
3899 #define PWM3OE PWM3CONbits.PWM3OE // bit 6
3900 #define PWM3EN PWM3CONbits.PWM3EN // bit 7
3902 #define PWM3DCH0 PWM3DCHbits.PWM3DCH0 // bit 0
3903 #define PWM3DCH1 PWM3DCHbits.PWM3DCH1 // bit 1
3904 #define PWM3DCH2 PWM3DCHbits.PWM3DCH2 // bit 2
3905 #define PWM3DCH3 PWM3DCHbits.PWM3DCH3 // bit 3
3906 #define PWM3DCH4 PWM3DCHbits.PWM3DCH4 // bit 4
3907 #define PWM3DCH5 PWM3DCHbits.PWM3DCH5 // bit 5
3908 #define PWM3DCH6 PWM3DCHbits.PWM3DCH6 // bit 6
3909 #define PWM3DCH7 PWM3DCHbits.PWM3DCH7 // bit 7
3911 #define PWM3DCL0 PWM3DCLbits.PWM3DCL0 // bit 6
3912 #define PWM3DCL1 PWM3DCLbits.PWM3DCL1 // bit 7
3914 #define PWM4POL PWM4CONbits.PWM4POL // bit 4
3915 #define PWM4OUT PWM4CONbits.PWM4OUT // bit 5
3916 #define PWM4OE PWM4CONbits.PWM4OE // bit 6
3917 #define PWM4EN PWM4CONbits.PWM4EN // bit 7
3919 #define PWM4DCH0 PWM4DCHbits.PWM4DCH0 // bit 0
3920 #define PWM4DCH1 PWM4DCHbits.PWM4DCH1 // bit 1
3921 #define PWM4DCH2 PWM4DCHbits.PWM4DCH2 // bit 2
3922 #define PWM4DCH3 PWM4DCHbits.PWM4DCH3 // bit 3
3923 #define PWM4DCH4 PWM4DCHbits.PWM4DCH4 // bit 4
3924 #define PWM4DCH5 PWM4DCHbits.PWM4DCH5 // bit 5
3925 #define PWM4DCH6 PWM4DCHbits.PWM4DCH6 // bit 6
3926 #define PWM4DCH7 PWM4DCHbits.PWM4DCH7 // bit 7
3928 #define PWM4DCL0 PWM4DCLbits.PWM4DCL0 // bit 6
3929 #define PWM4DCL1 PWM4DCLbits.PWM4DCL1 // bit 7
3931 #define C STATUSbits.C // bit 0
3932 #define DC STATUSbits.DC // bit 1
3933 #define Z STATUSbits.Z // bit 2
3934 #define NOT_PD STATUSbits.NOT_PD // bit 3
3935 #define NOT_TO STATUSbits.NOT_TO // bit 4
3937 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
3938 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
3939 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
3941 #define TMR1ON T1CONbits.TMR1ON // bit 0
3942 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
3943 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
3944 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
3945 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
3946 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
3948 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
3949 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
3950 #define T1GVAL T1GCONbits.T1GVAL // bit 2
3951 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
3952 #define T1GSPM T1GCONbits.T1GSPM // bit 4
3953 #define T1GTM T1GCONbits.T1GTM // bit 5
3954 #define T1GPOL T1GCONbits.T1GPOL // bit 6
3955 #define TMR1GE T1GCONbits.TMR1GE // bit 7
3957 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
3958 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
3959 #define TMR2ON T2CONbits.TMR2ON // bit 2
3960 #define TOUTPS0 T2CONbits.TOUTPS0 // bit 3
3961 #define TOUTPS1 T2CONbits.TOUTPS1 // bit 4
3962 #define TOUTPS2 T2CONbits.TOUTPS2 // bit 5
3963 #define TOUTPS3 T2CONbits.TOUTPS3 // bit 6
3965 #define TRISA0 TRISAbits.TRISA0 // bit 0
3966 #define TRISA1 TRISAbits.TRISA1 // bit 1
3967 #define TRISA2 TRISAbits.TRISA2 // bit 2
3968 #define TRISA3 TRISAbits.TRISA3 // bit 3
3969 #define TRISA4 TRISAbits.TRISA4 // bit 4
3970 #define TRISA5 TRISAbits.TRISA5 // bit 5
3972 #define VREGPM VREGCONbits.VREGPM // bit 1
3974 #define SWDTEN WDTCONbits.SWDTEN // bit 0
3975 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
3976 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
3977 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
3978 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
3979 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
3981 #define WPUA0 WPUAbits.WPUA0 // bit 0
3982 #define WPUA1 WPUAbits.WPUA1 // bit 1
3983 #define WPUA2 WPUAbits.WPUA2 // bit 2
3984 #define WPUA3 WPUAbits.WPUA3 // bit 3
3985 #define WPUA4 WPUAbits.WPUA4 // bit 4
3986 #define WPUA5 WPUAbits.WPUA5 // bit 5
3988 #endif // #ifndef NO_BIT_DEFINES
3990 #endif // #ifndef __PIC12F1501_H__