2 * This declarations of the PIC12F1571 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 __PIC12F1571_H__
26 #define __PIC12F1571_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 OSCTUNE_ADDR 0x0098
71 #define OSCCON_ADDR 0x0099
72 #define OSCSTAT_ADDR 0x009A
73 #define ADRES_ADDR 0x009B
74 #define ADRESL_ADDR 0x009B
75 #define ADRESH_ADDR 0x009C
76 #define ADCON0_ADDR 0x009D
77 #define ADCON1_ADDR 0x009E
78 #define ADCON2_ADDR 0x009F
79 #define LATA_ADDR 0x010C
80 #define CM1CON0_ADDR 0x0111
81 #define CM1CON1_ADDR 0x0112
82 #define CMOUT_ADDR 0x0115
83 #define BORCON_ADDR 0x0116
84 #define FVRCON_ADDR 0x0117
85 #define DACCON0_ADDR 0x0118
86 #define DACCON1_ADDR 0x0119
87 #define APFCON_ADDR 0x011D
88 #define APFCON0_ADDR 0x011D
89 #define ANSELA_ADDR 0x018C
90 #define PMADR_ADDR 0x0191
91 #define PMADRL_ADDR 0x0191
92 #define PMADRH_ADDR 0x0192
93 #define PMDAT_ADDR 0x0193
94 #define PMDATL_ADDR 0x0193
95 #define PMDATH_ADDR 0x0194
96 #define PMCON1_ADDR 0x0195
97 #define PMCON2_ADDR 0x0196
98 #define VREGCON_ADDR 0x0197
99 #define WPUA_ADDR 0x020C
100 #define ODCONA_ADDR 0x028C
101 #define SLRCONA_ADDR 0x030C
102 #define INLVLA_ADDR 0x038C
103 #define IOCAP_ADDR 0x0391
104 #define IOCAN_ADDR 0x0392
105 #define IOCAF_ADDR 0x0393
106 #define CWG1DBR_ADDR 0x0691
107 #define CWG1DBF_ADDR 0x0692
108 #define CWG1CON0_ADDR 0x0693
109 #define CWG1CON1_ADDR 0x0694
110 #define CWG1CON2_ADDR 0x0695
111 #define PWMEN_ADDR 0x0D8E
112 #define PWMLD_ADDR 0x0D8F
113 #define PWMOUT_ADDR 0x0D90
114 #define PWM1PH_ADDR 0x0D91
115 #define PWM1PHL_ADDR 0x0D91
116 #define PWM1PHH_ADDR 0x0D92
117 #define PWM1DC_ADDR 0x0D93
118 #define PWM1DCL_ADDR 0x0D93
119 #define PWM1DCH_ADDR 0x0D94
120 #define PWM1PR_ADDR 0x0D95
121 #define PWM1PRL_ADDR 0x0D95
122 #define PWM1PRH_ADDR 0x0D96
123 #define PWM1OF_ADDR 0x0D97
124 #define PWM1OFL_ADDR 0x0D97
125 #define PWM1OFH_ADDR 0x0D98
126 #define PWM1TMR_ADDR 0x0D99
127 #define PWM1TMRL_ADDR 0x0D99
128 #define PWM1TMRH_ADDR 0x0D9A
129 #define PWM1CON_ADDR 0x0D9B
130 #define PWM1INTCON_ADDR 0x0D9C
131 #define PWM1INTE_ADDR 0x0D9C
132 #define PWM1INTF_ADDR 0x0D9D
133 #define PWM1INTFLG_ADDR 0x0D9D
134 #define PWM1CLKCON_ADDR 0x0D9E
135 #define PWM1LDCON_ADDR 0x0D9F
136 #define PWM1OFCON_ADDR 0x0DA0
137 #define PWM2PH_ADDR 0x0DA1
138 #define PWM2PHL_ADDR 0x0DA1
139 #define PWM2PHH_ADDR 0x0DA2
140 #define PWM2DC_ADDR 0x0DA3
141 #define PWM2DCL_ADDR 0x0DA3
142 #define PWM2DCH_ADDR 0x0DA4
143 #define PWM2PR_ADDR 0x0DA5
144 #define PWM2PRL_ADDR 0x0DA5
145 #define PWM2PRH_ADDR 0x0DA6
146 #define PWM2OF_ADDR 0x0DA7
147 #define PWM2OFL_ADDR 0x0DA7
148 #define PWM2OFH_ADDR 0x0DA8
149 #define PWM2TMR_ADDR 0x0DA9
150 #define PWM2TMRL_ADDR 0x0DA9
151 #define PWM2TMRH_ADDR 0x0DAA
152 #define PWM2CON_ADDR 0x0DAB
153 #define PWM2INTCON_ADDR 0x0DAC
154 #define PWM2INTE_ADDR 0x0DAC
155 #define PWM2INTF_ADDR 0x0DAD
156 #define PWM2INTFLG_ADDR 0x0DAD
157 #define PWM2CLKCON_ADDR 0x0DAE
158 #define PWM2LDCON_ADDR 0x0DAF
159 #define PWM2OFCON_ADDR 0x0DB0
160 #define PWM3PH_ADDR 0x0DB1
161 #define PWM3PHL_ADDR 0x0DB1
162 #define PWM3PHH_ADDR 0x0DB2
163 #define PWM3DC_ADDR 0x0DB3
164 #define PWM3DCL_ADDR 0x0DB3
165 #define PWM3DCH_ADDR 0x0DB4
166 #define PWM3PR_ADDR 0x0DB5
167 #define PWM3PRL_ADDR 0x0DB5
168 #define PWM3PRH_ADDR 0x0DB6
169 #define PWM3OF_ADDR 0x0DB7
170 #define PWM3OFL_ADDR 0x0DB7
171 #define PWM3OFH_ADDR 0x0DB8
172 #define PWM3TMR_ADDR 0x0DB9
173 #define PWM3TMRL_ADDR 0x0DB9
174 #define PWM3TMRH_ADDR 0x0DBA
175 #define PWM3CON_ADDR 0x0DBB
176 #define PWM3INTCON_ADDR 0x0DBC
177 #define PWM3INTE_ADDR 0x0DBC
178 #define PWM3INTF_ADDR 0x0DBD
179 #define PWM3INTFLG_ADDR 0x0DBD
180 #define PWM3CLKCON_ADDR 0x0DBE
181 #define PWM3LDCON_ADDR 0x0DBF
182 #define PWM3OFCON_ADDR 0x0DC0
183 #define STATUS_SHAD_ADDR 0x0FE4
184 #define WREG_SHAD_ADDR 0x0FE5
185 #define BSR_SHAD_ADDR 0x0FE6
186 #define PCLATH_SHAD_ADDR 0x0FE7
187 #define FSR0L_SHAD_ADDR 0x0FE8
188 #define FSR0_SHAD_ADDR 0x0FE8
189 #define FSR0H_SHAD_ADDR 0x0FE9
190 #define FSR1L_SHAD_ADDR 0x0FEA
191 #define FSR1_SHAD_ADDR 0x0FEA
192 #define FSR1H_SHAD_ADDR 0x0FEB
193 #define STKPTR_ADDR 0x0FED
194 #define TOS_ADDR 0x0FEE
195 #define TOSL_ADDR 0x0FEE
196 #define TOSH_ADDR 0x0FEF
198 #endif // #ifndef NO_ADDR_DEFINES
200 //==============================================================================
202 // Register Definitions
204 //==============================================================================
206 extern __at(0x0000) __sfr INDF0
;
207 extern __at(0x0001) __sfr INDF1
;
208 extern __at(0x0002) __sfr PCL
;
210 //==============================================================================
213 extern __at(0x0003) __sfr STATUS
;
227 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
235 //==============================================================================
237 extern __at(0x0004) __sfr FSR0
;
238 extern __at(0x0004) __sfr FSR0L
;
239 extern __at(0x0005) __sfr FSR0H
;
240 extern __at(0x0006) __sfr FSR1
;
241 extern __at(0x0006) __sfr FSR1L
;
242 extern __at(0x0007) __sfr FSR1H
;
244 //==============================================================================
247 extern __at(0x0008) __sfr BSR
;
270 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
278 //==============================================================================
280 extern __at(0x0009) __sfr WREG
;
281 extern __at(0x000A) __sfr PCLATH
;
283 //==============================================================================
286 extern __at(0x000B) __sfr INTCON
;
315 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
328 //==============================================================================
331 //==============================================================================
334 extern __at(0x000C) __sfr PORTA
;
357 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
366 //==============================================================================
369 //==============================================================================
372 extern __at(0x0011) __sfr PIR1
;
383 unsigned TMR1GIF
: 1;
386 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
391 #define _TMR1GIF 0x80
393 //==============================================================================
396 //==============================================================================
399 extern __at(0x0012) __sfr PIR2
;
413 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
417 //==============================================================================
420 //==============================================================================
423 extern __at(0x0013) __sfr PIR3
;
437 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
443 //==============================================================================
445 extern __at(0x0015) __sfr TMR0
;
446 extern __at(0x0016) __sfr TMR1
;
447 extern __at(0x0016) __sfr TMR1L
;
448 extern __at(0x0017) __sfr TMR1H
;
450 //==============================================================================
453 extern __at(0x0018) __sfr T1CON
;
461 unsigned NOT_T1SYNC
: 1;
463 unsigned T1CKPS0
: 1;
464 unsigned T1CKPS1
: 1;
465 unsigned TMR1CS0
: 1;
466 unsigned TMR1CS1
: 1;
483 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
486 #define _NOT_T1SYNC 0x04
487 #define _T1CKPS0 0x10
488 #define _T1CKPS1 0x20
489 #define _TMR1CS0 0x40
490 #define _TMR1CS1 0x80
492 //==============================================================================
495 //==============================================================================
498 extern __at(0x0019) __sfr T1GCON
;
507 unsigned T1GGO_NOT_DONE
: 1;
533 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
538 #define _T1GGO_NOT_DONE 0x08
545 //==============================================================================
547 extern __at(0x001A) __sfr TMR2
;
548 extern __at(0x001B) __sfr PR2
;
550 //==============================================================================
553 extern __at(0x001C) __sfr T2CON
;
559 unsigned T2CKPS0
: 1;
560 unsigned T2CKPS1
: 1;
562 unsigned T2OUTPS0
: 1;
563 unsigned T2OUTPS1
: 1;
564 unsigned T2OUTPS2
: 1;
565 unsigned T2OUTPS3
: 1;
578 unsigned T2OUTPS
: 4;
583 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
585 #define _T2CKPS0 0x01
586 #define _T2CKPS1 0x02
588 #define _T2OUTPS0 0x08
589 #define _T2OUTPS1 0x10
590 #define _T2OUTPS2 0x20
591 #define _T2OUTPS3 0x40
593 //==============================================================================
596 //==============================================================================
599 extern __at(0x008C) __sfr TRISA
;
622 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
631 //==============================================================================
634 //==============================================================================
637 extern __at(0x0091) __sfr PIE1
;
648 unsigned TMR1GIE
: 1;
651 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
656 #define _TMR1GIE 0x80
658 //==============================================================================
661 //==============================================================================
664 extern __at(0x0092) __sfr PIE2
;
678 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
682 //==============================================================================
685 //==============================================================================
688 extern __at(0x0093) __sfr PIE3
;
702 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
708 //==============================================================================
711 //==============================================================================
714 extern __at(0x0095) __sfr OPTION_REG
;
727 unsigned NOT_WPUEN
: 1;
747 } __OPTION_REGbits_t
;
749 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
760 #define _NOT_WPUEN 0x80
762 //==============================================================================
765 //==============================================================================
768 extern __at(0x0096) __sfr PCON
;
772 unsigned NOT_BOR
: 1;
773 unsigned NOT_POR
: 1;
775 unsigned NOT_RMCLR
: 1;
776 unsigned NOT_RWDT
: 1;
782 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
784 #define _NOT_BOR 0x01
785 #define _NOT_POR 0x02
787 #define _NOT_RMCLR 0x08
788 #define _NOT_RWDT 0x10
792 //==============================================================================
795 //==============================================================================
798 extern __at(0x0097) __sfr WDTCON
;
822 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
831 //==============================================================================
834 //==============================================================================
837 extern __at(0x0098) __sfr OSCTUNE
;
860 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
869 //==============================================================================
872 //==============================================================================
875 extern __at(0x0099) __sfr OSCCON
;
905 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
915 //==============================================================================
918 //==============================================================================
921 extern __at(0x009A) __sfr OSCSTAT
;
935 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
945 //==============================================================================
947 extern __at(0x009B) __sfr ADRES
;
948 extern __at(0x009B) __sfr ADRESL
;
949 extern __at(0x009C) __sfr ADRESH
;
951 //==============================================================================
954 extern __at(0x009D) __sfr ADCON0
;
961 unsigned GO_NOT_DONE
: 1;
997 unsigned NOT_DONE
: 1;
1014 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1017 #define _GO_NOT_DONE 0x02
1020 #define _NOT_DONE 0x02
1027 //==============================================================================
1030 //==============================================================================
1033 extern __at(0x009E) __sfr ADCON1
;
1039 unsigned ADPREF0
: 1;
1040 unsigned ADPREF1
: 1;
1051 unsigned ADPREF
: 2;
1063 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1065 #define _ADPREF0 0x01
1066 #define _ADPREF1 0x02
1072 //==============================================================================
1075 //==============================================================================
1078 extern __at(0x009F) __sfr ADCON2
;
1088 unsigned TRIGSEL0
: 1;
1089 unsigned TRIGSEL1
: 1;
1090 unsigned TRIGSEL2
: 1;
1091 unsigned TRIGSEL3
: 1;
1097 unsigned TRIGSEL
: 4;
1101 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1103 #define _TRIGSEL0 0x10
1104 #define _TRIGSEL1 0x20
1105 #define _TRIGSEL2 0x40
1106 #define _TRIGSEL3 0x80
1108 //==============================================================================
1111 //==============================================================================
1114 extern __at(0x010C) __sfr LATA
;
1128 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1136 //==============================================================================
1139 //==============================================================================
1142 extern __at(0x0111) __sfr CM1CON0
;
1146 unsigned C1SYNC
: 1;
1156 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1158 #define _C1SYNC 0x01
1166 //==============================================================================
1169 //==============================================================================
1172 extern __at(0x0112) __sfr CM1CON1
;
1178 unsigned C1NCH0
: 1;
1179 unsigned C1NCH1
: 1;
1180 unsigned C1NCH2
: 1;
1182 unsigned C1PCH0
: 1;
1183 unsigned C1PCH1
: 1;
1184 unsigned C1INTN
: 1;
1185 unsigned C1INTP
: 1;
1202 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1204 #define _C1NCH0 0x01
1205 #define _C1NCH1 0x02
1206 #define _C1NCH2 0x04
1207 #define _C1PCH0 0x10
1208 #define _C1PCH1 0x20
1209 #define _C1INTN 0x40
1210 #define _C1INTP 0x80
1212 //==============================================================================
1215 //==============================================================================
1218 extern __at(0x0115) __sfr CMOUT
;
1222 unsigned MC1OUT
: 1;
1232 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1234 #define _MC1OUT 0x01
1236 //==============================================================================
1239 //==============================================================================
1242 extern __at(0x0116) __sfr BORCON
;
1246 unsigned BORRDY
: 1;
1253 unsigned SBOREN
: 1;
1256 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1258 #define _BORRDY 0x01
1260 #define _SBOREN 0x80
1262 //==============================================================================
1265 //==============================================================================
1268 extern __at(0x0117) __sfr FVRCON
;
1274 unsigned ADFVR0
: 1;
1275 unsigned ADFVR1
: 1;
1276 unsigned CDAFVR0
: 1;
1277 unsigned CDAFVR1
: 1;
1280 unsigned FVRRDY
: 1;
1293 unsigned CDAFVR
: 2;
1298 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1300 #define _ADFVR0 0x01
1301 #define _ADFVR1 0x02
1302 #define _CDAFVR0 0x04
1303 #define _CDAFVR1 0x08
1306 #define _FVRRDY 0x40
1309 //==============================================================================
1312 //==============================================================================
1315 extern __at(0x0118) __sfr DACCON0
;
1323 unsigned DACPSS0
: 1;
1324 unsigned DACPSS1
: 1;
1327 unsigned DACLPS
: 1;
1334 unsigned DACPSS
: 2;
1339 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1341 #define _DACPSS0 0x04
1342 #define _DACPSS1 0x08
1344 #define _DACLPS 0x40
1347 //==============================================================================
1350 //==============================================================================
1353 extern __at(0x0119) __sfr DACCON1
;
1376 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1384 //==============================================================================
1387 //==============================================================================
1390 extern __at(0x011D) __sfr APFCON
;
1397 unsigned T1GSEL
: 1;
1399 unsigned CWGBSEL
: 1;
1400 unsigned CWGASEL
: 1;
1404 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
1408 #define _T1GSEL 0x08
1409 #define _CWGBSEL 0x20
1410 #define _CWGASEL 0x40
1412 //==============================================================================
1415 //==============================================================================
1418 extern __at(0x011D) __sfr APFCON0
;
1425 unsigned T1GSEL
: 1;
1427 unsigned CWGBSEL
: 1;
1428 unsigned CWGASEL
: 1;
1432 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits
;
1434 #define _APFCON0_P1SEL 0x01
1435 #define _APFCON0_P2SEL 0x02
1436 #define _APFCON0_T1GSEL 0x08
1437 #define _APFCON0_CWGBSEL 0x20
1438 #define _APFCON0_CWGASEL 0x40
1440 //==============================================================================
1443 //==============================================================================
1446 extern __at(0x018C) __sfr ANSELA
;
1460 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
1467 //==============================================================================
1469 extern __at(0x0191) __sfr PMADR
;
1470 extern __at(0x0191) __sfr PMADRL
;
1471 extern __at(0x0192) __sfr PMADRH
;
1472 extern __at(0x0193) __sfr PMDAT
;
1473 extern __at(0x0193) __sfr PMDATL
;
1474 extern __at(0x0194) __sfr PMDATH
;
1476 //==============================================================================
1479 extern __at(0x0195) __sfr PMCON1
;
1493 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits
;
1503 //==============================================================================
1505 extern __at(0x0196) __sfr PMCON2
;
1507 //==============================================================================
1510 extern __at(0x0197) __sfr VREGCON
;
1515 unsigned VREGPM
: 1;
1524 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits
;
1526 #define _VREGPM 0x02
1528 //==============================================================================
1531 //==============================================================================
1534 extern __at(0x020C) __sfr WPUA
;
1557 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
1566 //==============================================================================
1569 //==============================================================================
1572 extern __at(0x028C) __sfr ODCONA
;
1586 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
1594 //==============================================================================
1597 //==============================================================================
1600 extern __at(0x030C) __sfr SLRCONA
;
1614 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
1622 //==============================================================================
1625 //==============================================================================
1628 extern __at(0x038C) __sfr INLVLA
;
1634 unsigned INLVLA0
: 1;
1635 unsigned INLVLA1
: 1;
1636 unsigned INLVLA2
: 1;
1637 unsigned INLVLA3
: 1;
1638 unsigned INLVLA4
: 1;
1639 unsigned INLVLA5
: 1;
1646 unsigned INLVLA
: 6;
1651 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
1653 #define _INLVLA0 0x01
1654 #define _INLVLA1 0x02
1655 #define _INLVLA2 0x04
1656 #define _INLVLA3 0x08
1657 #define _INLVLA4 0x10
1658 #define _INLVLA5 0x20
1660 //==============================================================================
1663 //==============================================================================
1666 extern __at(0x0391) __sfr IOCAP
;
1672 unsigned IOCAP0
: 1;
1673 unsigned IOCAP1
: 1;
1674 unsigned IOCAP2
: 1;
1675 unsigned IOCAP3
: 1;
1676 unsigned IOCAP4
: 1;
1677 unsigned IOCAP5
: 1;
1689 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
1691 #define _IOCAP0 0x01
1692 #define _IOCAP1 0x02
1693 #define _IOCAP2 0x04
1694 #define _IOCAP3 0x08
1695 #define _IOCAP4 0x10
1696 #define _IOCAP5 0x20
1698 //==============================================================================
1701 //==============================================================================
1704 extern __at(0x0392) __sfr IOCAN
;
1710 unsigned IOCAN0
: 1;
1711 unsigned IOCAN1
: 1;
1712 unsigned IOCAN2
: 1;
1713 unsigned IOCAN3
: 1;
1714 unsigned IOCAN4
: 1;
1715 unsigned IOCAN5
: 1;
1727 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
1729 #define _IOCAN0 0x01
1730 #define _IOCAN1 0x02
1731 #define _IOCAN2 0x04
1732 #define _IOCAN3 0x08
1733 #define _IOCAN4 0x10
1734 #define _IOCAN5 0x20
1736 //==============================================================================
1739 //==============================================================================
1742 extern __at(0x0393) __sfr IOCAF
;
1748 unsigned IOCAF0
: 1;
1749 unsigned IOCAF1
: 1;
1750 unsigned IOCAF2
: 1;
1751 unsigned IOCAF3
: 1;
1752 unsigned IOCAF4
: 1;
1753 unsigned IOCAF5
: 1;
1765 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
1767 #define _IOCAF0 0x01
1768 #define _IOCAF1 0x02
1769 #define _IOCAF2 0x04
1770 #define _IOCAF3 0x08
1771 #define _IOCAF4 0x10
1772 #define _IOCAF5 0x20
1774 //==============================================================================
1777 //==============================================================================
1780 extern __at(0x0691) __sfr CWG1DBR
;
1786 unsigned CWG1DBR0
: 1;
1787 unsigned CWG1DBR1
: 1;
1788 unsigned CWG1DBR2
: 1;
1789 unsigned CWG1DBR3
: 1;
1790 unsigned CWG1DBR4
: 1;
1791 unsigned CWG1DBR5
: 1;
1798 unsigned CWG1DBR
: 6;
1803 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits
;
1805 #define _CWG1DBR0 0x01
1806 #define _CWG1DBR1 0x02
1807 #define _CWG1DBR2 0x04
1808 #define _CWG1DBR3 0x08
1809 #define _CWG1DBR4 0x10
1810 #define _CWG1DBR5 0x20
1812 //==============================================================================
1815 //==============================================================================
1818 extern __at(0x0692) __sfr CWG1DBF
;
1824 unsigned CWG1DBF0
: 1;
1825 unsigned CWG1DBF1
: 1;
1826 unsigned CWG1DBF2
: 1;
1827 unsigned CWG1DBF3
: 1;
1828 unsigned CWG1DBF4
: 1;
1829 unsigned CWG1DBF5
: 1;
1836 unsigned CWG1DBF
: 6;
1841 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits
;
1843 #define _CWG1DBF0 0x01
1844 #define _CWG1DBF1 0x02
1845 #define _CWG1DBF2 0x04
1846 #define _CWG1DBF3 0x08
1847 #define _CWG1DBF4 0x10
1848 #define _CWG1DBF5 0x20
1850 //==============================================================================
1853 //==============================================================================
1856 extern __at(0x0693) __sfr CWG1CON0
;
1863 unsigned G1POLA
: 1;
1864 unsigned G1POLB
: 1;
1870 extern __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits
;
1873 #define _G1POLA 0x08
1874 #define _G1POLB 0x10
1879 //==============================================================================
1882 //==============================================================================
1885 extern __at(0x0694) __sfr CWG1CON1
;
1895 unsigned G1ASDLA0
: 1;
1896 unsigned G1ASDLA1
: 1;
1897 unsigned G1ASDLB0
: 1;
1898 unsigned G1ASDLB1
: 1;
1910 unsigned G1ASDLA
: 2;
1917 unsigned G1ASDLB
: 2;
1921 extern __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits
;
1926 #define _G1ASDLA0 0x10
1927 #define _G1ASDLA1 0x20
1928 #define _G1ASDLB0 0x40
1929 #define _G1ASDLB1 0x80
1931 //==============================================================================
1934 //==============================================================================
1937 extern __at(0x0695) __sfr CWG1CON2
;
1942 unsigned G1ASDSFLT
: 1;
1943 unsigned G1ASDSC1
: 1;
1947 unsigned G1ARSEN
: 1;
1951 extern __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits
;
1953 #define _G1ASDSFLT 0x02
1954 #define _G1ASDSC1 0x04
1955 #define _G1ARSEN 0x40
1958 //==============================================================================
1961 //==============================================================================
1964 extern __at(0x0D8E) __sfr PWMEN
;
1970 unsigned PWM1EN_A
: 1;
1971 unsigned PWM2EN_A
: 1;
1972 unsigned PWM3EN_A
: 1;
1982 unsigned MPWM1EN
: 1;
1983 unsigned MPWM2EN
: 1;
1984 unsigned MPWM3EN
: 1;
1993 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits
;
1995 #define _PWM1EN_A 0x01
1996 #define _MPWM1EN 0x01
1997 #define _PWM2EN_A 0x02
1998 #define _MPWM2EN 0x02
1999 #define _PWM3EN_A 0x04
2000 #define _MPWM3EN 0x04
2002 //==============================================================================
2005 //==============================================================================
2008 extern __at(0x0D8F) __sfr PWMLD
;
2014 unsigned PWM1LDA_A
: 1;
2015 unsigned PWM2LDA_A
: 1;
2016 unsigned PWM3LDA_A
: 1;
2026 unsigned MPWM1LD
: 1;
2027 unsigned MPWM2LD
: 1;
2028 unsigned MPWM3LD
: 1;
2037 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits
;
2039 #define _PWM1LDA_A 0x01
2040 #define _MPWM1LD 0x01
2041 #define _PWM2LDA_A 0x02
2042 #define _MPWM2LD 0x02
2043 #define _PWM3LDA_A 0x04
2044 #define _MPWM3LD 0x04
2046 //==============================================================================
2049 //==============================================================================
2052 extern __at(0x0D90) __sfr PWMOUT
;
2058 unsigned PWM1OUT_A
: 1;
2059 unsigned PWM2OUT_A
: 1;
2060 unsigned PWM3OUT_A
: 1;
2070 unsigned MPWM1OUT
: 1;
2071 unsigned MPWM2OUT
: 1;
2072 unsigned MPWM3OUT
: 1;
2081 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits
;
2083 #define _PWM1OUT_A 0x01
2084 #define _MPWM1OUT 0x01
2085 #define _PWM2OUT_A 0x02
2086 #define _MPWM2OUT 0x02
2087 #define _PWM3OUT_A 0x04
2088 #define _MPWM3OUT 0x04
2090 //==============================================================================
2092 extern __at(0x0D91) __sfr PWM1PH
;
2094 //==============================================================================
2097 extern __at(0x0D91) __sfr PWM1PHL
;
2101 unsigned PWM1PHL0
: 1;
2102 unsigned PWM1PHL1
: 1;
2103 unsigned PWM1PHL2
: 1;
2104 unsigned PWM1PHL3
: 1;
2105 unsigned PWM1PHL4
: 1;
2106 unsigned PWM1PHL5
: 1;
2107 unsigned PWM1PHL6
: 1;
2108 unsigned PWM1PHL7
: 1;
2111 extern __at(0x0D91) volatile __PWM1PHLbits_t PWM1PHLbits
;
2113 #define _PWM1PHL0 0x01
2114 #define _PWM1PHL1 0x02
2115 #define _PWM1PHL2 0x04
2116 #define _PWM1PHL3 0x08
2117 #define _PWM1PHL4 0x10
2118 #define _PWM1PHL5 0x20
2119 #define _PWM1PHL6 0x40
2120 #define _PWM1PHL7 0x80
2122 //==============================================================================
2125 //==============================================================================
2128 extern __at(0x0D92) __sfr PWM1PHH
;
2132 unsigned PWM1PHH0
: 1;
2133 unsigned PWM1PHH1
: 1;
2134 unsigned PWM1PHH2
: 1;
2135 unsigned PWM1PHH3
: 1;
2136 unsigned PWM1PHH4
: 1;
2137 unsigned PWM1PHH5
: 1;
2138 unsigned PWM1PHH6
: 1;
2139 unsigned PWM1PHH7
: 1;
2142 extern __at(0x0D92) volatile __PWM1PHHbits_t PWM1PHHbits
;
2144 #define _PWM1PHH0 0x01
2145 #define _PWM1PHH1 0x02
2146 #define _PWM1PHH2 0x04
2147 #define _PWM1PHH3 0x08
2148 #define _PWM1PHH4 0x10
2149 #define _PWM1PHH5 0x20
2150 #define _PWM1PHH6 0x40
2151 #define _PWM1PHH7 0x80
2153 //==============================================================================
2155 extern __at(0x0D93) __sfr PWM1DC
;
2157 //==============================================================================
2160 extern __at(0x0D93) __sfr PWM1DCL
;
2164 unsigned PWM1DCL0
: 1;
2165 unsigned PWM1DCL1
: 1;
2166 unsigned PWM1DCL2
: 1;
2167 unsigned PWM1DCL3
: 1;
2168 unsigned PWM1DCL4
: 1;
2169 unsigned PWM1DCL5
: 1;
2170 unsigned PWM1DCL6
: 1;
2171 unsigned PWM1DCL7
: 1;
2174 extern __at(0x0D93) volatile __PWM1DCLbits_t PWM1DCLbits
;
2176 #define _PWM1DCL0 0x01
2177 #define _PWM1DCL1 0x02
2178 #define _PWM1DCL2 0x04
2179 #define _PWM1DCL3 0x08
2180 #define _PWM1DCL4 0x10
2181 #define _PWM1DCL5 0x20
2182 #define _PWM1DCL6 0x40
2183 #define _PWM1DCL7 0x80
2185 //==============================================================================
2188 //==============================================================================
2191 extern __at(0x0D94) __sfr PWM1DCH
;
2195 unsigned PWM1DCH0
: 1;
2196 unsigned PWM1DCH1
: 1;
2197 unsigned PWM1DCH2
: 1;
2198 unsigned PWM1DCH3
: 1;
2199 unsigned PWM1DCH4
: 1;
2200 unsigned PWM1DCH5
: 1;
2201 unsigned PWM1DCH6
: 1;
2202 unsigned PWM1DCH7
: 1;
2205 extern __at(0x0D94) volatile __PWM1DCHbits_t PWM1DCHbits
;
2207 #define _PWM1DCH0 0x01
2208 #define _PWM1DCH1 0x02
2209 #define _PWM1DCH2 0x04
2210 #define _PWM1DCH3 0x08
2211 #define _PWM1DCH4 0x10
2212 #define _PWM1DCH5 0x20
2213 #define _PWM1DCH6 0x40
2214 #define _PWM1DCH7 0x80
2216 //==============================================================================
2218 extern __at(0x0D95) __sfr PWM1PR
;
2220 //==============================================================================
2223 extern __at(0x0D95) __sfr PWM1PRL
;
2227 unsigned PWM1PRL0
: 1;
2228 unsigned PWM1PRL1
: 1;
2229 unsigned PWM1PRL2
: 1;
2230 unsigned PWM1PRL3
: 1;
2231 unsigned PWM1PRL4
: 1;
2232 unsigned PWM1PRL5
: 1;
2233 unsigned PWM1PRL6
: 1;
2234 unsigned PWM1PRL7
: 1;
2237 extern __at(0x0D95) volatile __PWM1PRLbits_t PWM1PRLbits
;
2239 #define _PWM1PRL0 0x01
2240 #define _PWM1PRL1 0x02
2241 #define _PWM1PRL2 0x04
2242 #define _PWM1PRL3 0x08
2243 #define _PWM1PRL4 0x10
2244 #define _PWM1PRL5 0x20
2245 #define _PWM1PRL6 0x40
2246 #define _PWM1PRL7 0x80
2248 //==============================================================================
2251 //==============================================================================
2254 extern __at(0x0D96) __sfr PWM1PRH
;
2258 unsigned PWM1PRH0
: 1;
2259 unsigned PWM1PRH1
: 1;
2260 unsigned PWM1PRH2
: 1;
2261 unsigned PWM1PRH3
: 1;
2262 unsigned PWM1PRH4
: 1;
2263 unsigned PWM1PRH5
: 1;
2264 unsigned PWM1PRH6
: 1;
2265 unsigned PWM1PRH7
: 1;
2268 extern __at(0x0D96) volatile __PWM1PRHbits_t PWM1PRHbits
;
2270 #define _PWM1PRH0 0x01
2271 #define _PWM1PRH1 0x02
2272 #define _PWM1PRH2 0x04
2273 #define _PWM1PRH3 0x08
2274 #define _PWM1PRH4 0x10
2275 #define _PWM1PRH5 0x20
2276 #define _PWM1PRH6 0x40
2277 #define _PWM1PRH7 0x80
2279 //==============================================================================
2281 extern __at(0x0D97) __sfr PWM1OF
;
2283 //==============================================================================
2286 extern __at(0x0D97) __sfr PWM1OFL
;
2290 unsigned PWM1OFL0
: 1;
2291 unsigned PWM1OFL1
: 1;
2292 unsigned PWM1OFL2
: 1;
2293 unsigned PWM1OFL3
: 1;
2294 unsigned PWM1OFL4
: 1;
2295 unsigned PWM1OFL5
: 1;
2296 unsigned PWM1OFL6
: 1;
2297 unsigned PWM1OFL7
: 1;
2300 extern __at(0x0D97) volatile __PWM1OFLbits_t PWM1OFLbits
;
2302 #define _PWM1OFL0 0x01
2303 #define _PWM1OFL1 0x02
2304 #define _PWM1OFL2 0x04
2305 #define _PWM1OFL3 0x08
2306 #define _PWM1OFL4 0x10
2307 #define _PWM1OFL5 0x20
2308 #define _PWM1OFL6 0x40
2309 #define _PWM1OFL7 0x80
2311 //==============================================================================
2314 //==============================================================================
2317 extern __at(0x0D98) __sfr PWM1OFH
;
2321 unsigned PWM1OFH0
: 1;
2322 unsigned PWM1OFH1
: 1;
2323 unsigned PWM1OFH2
: 1;
2324 unsigned PWM1OFH3
: 1;
2325 unsigned PWM1OFH4
: 1;
2326 unsigned PWM1OFH5
: 1;
2327 unsigned PWM1OFH6
: 1;
2328 unsigned PWM1OFH7
: 1;
2331 extern __at(0x0D98) volatile __PWM1OFHbits_t PWM1OFHbits
;
2333 #define _PWM1OFH0 0x01
2334 #define _PWM1OFH1 0x02
2335 #define _PWM1OFH2 0x04
2336 #define _PWM1OFH3 0x08
2337 #define _PWM1OFH4 0x10
2338 #define _PWM1OFH5 0x20
2339 #define _PWM1OFH6 0x40
2340 #define _PWM1OFH7 0x80
2342 //==============================================================================
2344 extern __at(0x0D99) __sfr PWM1TMR
;
2346 //==============================================================================
2349 extern __at(0x0D99) __sfr PWM1TMRL
;
2353 unsigned PWM1TMRL0
: 1;
2354 unsigned PWM1TMRL1
: 1;
2355 unsigned PWM1TMRL2
: 1;
2356 unsigned PWM1TMRL3
: 1;
2357 unsigned PWM1TMRL4
: 1;
2358 unsigned PWM1TMRL5
: 1;
2359 unsigned PWM1TMRL6
: 1;
2360 unsigned PWM1TMRL7
: 1;
2363 extern __at(0x0D99) volatile __PWM1TMRLbits_t PWM1TMRLbits
;
2365 #define _PWM1TMRL0 0x01
2366 #define _PWM1TMRL1 0x02
2367 #define _PWM1TMRL2 0x04
2368 #define _PWM1TMRL3 0x08
2369 #define _PWM1TMRL4 0x10
2370 #define _PWM1TMRL5 0x20
2371 #define _PWM1TMRL6 0x40
2372 #define _PWM1TMRL7 0x80
2374 //==============================================================================
2377 //==============================================================================
2380 extern __at(0x0D9A) __sfr PWM1TMRH
;
2384 unsigned PWM1TMRH0
: 1;
2385 unsigned PWM1TMRH1
: 1;
2386 unsigned PWM1TMRH2
: 1;
2387 unsigned PWM1TMRH3
: 1;
2388 unsigned PWM1TMRH4
: 1;
2389 unsigned PWM1TMRH5
: 1;
2390 unsigned PWM1TMRH6
: 1;
2391 unsigned PWM1TMRH7
: 1;
2394 extern __at(0x0D9A) volatile __PWM1TMRHbits_t PWM1TMRHbits
;
2396 #define _PWM1TMRH0 0x01
2397 #define _PWM1TMRH1 0x02
2398 #define _PWM1TMRH2 0x04
2399 #define _PWM1TMRH3 0x08
2400 #define _PWM1TMRH4 0x10
2401 #define _PWM1TMRH5 0x20
2402 #define _PWM1TMRH6 0x40
2403 #define _PWM1TMRH7 0x80
2405 //==============================================================================
2408 //==============================================================================
2411 extern __at(0x0D9B) __sfr PWM1CON
;
2419 unsigned PWM1MODE0
: 1;
2420 unsigned PWM1MODE1
: 1;
2433 unsigned PWM1POL
: 1;
2434 unsigned PWM1OUT
: 1;
2435 unsigned PWM1OE
: 1;
2436 unsigned PWM1EN
: 1;
2449 unsigned PWM1MODE
: 2;
2454 extern __at(0x0D9B) volatile __PWM1CONbits_t PWM1CONbits
;
2456 #define _PWM1MODE0 0x04
2458 #define _PWM1MODE1 0x08
2461 #define _PWM1POL 0x10
2463 #define _PWM1OUT 0x20
2465 #define _PWM1OE 0x40
2467 #define _PWM1EN 0x80
2469 //==============================================================================
2472 //==============================================================================
2475 extern __at(0x0D9C) __sfr PWM1INTCON
;
2493 unsigned PWM1PRIE
: 1;
2494 unsigned PWM1DCIE
: 1;
2495 unsigned PWM1PHIE
: 1;
2496 unsigned PWM1OFIE
: 1;
2502 } __PWM1INTCONbits_t
;
2504 extern __at(0x0D9C) volatile __PWM1INTCONbits_t PWM1INTCONbits
;
2507 #define _PWM1PRIE 0x01
2509 #define _PWM1DCIE 0x02
2511 #define _PWM1PHIE 0x04
2513 #define _PWM1OFIE 0x08
2515 //==============================================================================
2518 //==============================================================================
2521 extern __at(0x0D9C) __sfr PWM1INTE
;
2539 unsigned PWM1PRIE
: 1;
2540 unsigned PWM1DCIE
: 1;
2541 unsigned PWM1PHIE
: 1;
2542 unsigned PWM1OFIE
: 1;
2550 extern __at(0x0D9C) volatile __PWM1INTEbits_t PWM1INTEbits
;
2552 #define _PWM1INTE_PRIE 0x01
2553 #define _PWM1INTE_PWM1PRIE 0x01
2554 #define _PWM1INTE_DCIE 0x02
2555 #define _PWM1INTE_PWM1DCIE 0x02
2556 #define _PWM1INTE_PHIE 0x04
2557 #define _PWM1INTE_PWM1PHIE 0x04
2558 #define _PWM1INTE_OFIE 0x08
2559 #define _PWM1INTE_PWM1OFIE 0x08
2561 //==============================================================================
2564 //==============================================================================
2567 extern __at(0x0D9D) __sfr PWM1INTF
;
2585 unsigned PWM1PRIF
: 1;
2586 unsigned PWM1DCIF
: 1;
2587 unsigned PWM1PHIF
: 1;
2588 unsigned PWM1OFIF
: 1;
2596 extern __at(0x0D9D) volatile __PWM1INTFbits_t PWM1INTFbits
;
2599 #define _PWM1PRIF 0x01
2601 #define _PWM1DCIF 0x02
2603 #define _PWM1PHIF 0x04
2605 #define _PWM1OFIF 0x08
2607 //==============================================================================
2610 //==============================================================================
2613 extern __at(0x0D9D) __sfr PWM1INTFLG
;
2631 unsigned PWM1PRIF
: 1;
2632 unsigned PWM1DCIF
: 1;
2633 unsigned PWM1PHIF
: 1;
2634 unsigned PWM1OFIF
: 1;
2640 } __PWM1INTFLGbits_t
;
2642 extern __at(0x0D9D) volatile __PWM1INTFLGbits_t PWM1INTFLGbits
;
2644 #define _PWM1INTFLG_PRIF 0x01
2645 #define _PWM1INTFLG_PWM1PRIF 0x01
2646 #define _PWM1INTFLG_DCIF 0x02
2647 #define _PWM1INTFLG_PWM1DCIF 0x02
2648 #define _PWM1INTFLG_PHIF 0x04
2649 #define _PWM1INTFLG_PWM1PHIF 0x04
2650 #define _PWM1INTFLG_OFIF 0x08
2651 #define _PWM1INTFLG_PWM1OFIF 0x08
2653 //==============================================================================
2656 //==============================================================================
2659 extern __at(0x0D9E) __sfr PWM1CLKCON
;
2665 unsigned PWM1CS0
: 1;
2666 unsigned PWM1CS1
: 1;
2669 unsigned PWM1PS0
: 1;
2670 unsigned PWM1PS1
: 1;
2671 unsigned PWM1PS2
: 1;
2689 unsigned PWM1CS
: 2;
2702 unsigned PWM1PS
: 3;
2712 } __PWM1CLKCONbits_t
;
2714 extern __at(0x0D9E) volatile __PWM1CLKCONbits_t PWM1CLKCONbits
;
2716 #define _PWM1CLKCON_PWM1CS0 0x01
2717 #define _PWM1CLKCON_CS0 0x01
2718 #define _PWM1CLKCON_PWM1CS1 0x02
2719 #define _PWM1CLKCON_CS1 0x02
2720 #define _PWM1CLKCON_PWM1PS0 0x10
2721 #define _PWM1CLKCON_PS0 0x10
2722 #define _PWM1CLKCON_PWM1PS1 0x20
2723 #define _PWM1CLKCON_PS1 0x20
2724 #define _PWM1CLKCON_PWM1PS2 0x40
2725 #define _PWM1CLKCON_PS2 0x40
2727 //==============================================================================
2730 //==============================================================================
2733 extern __at(0x0D9F) __sfr PWM1LDCON
;
2739 unsigned PWM1LDS0
: 1;
2740 unsigned PWM1LDS1
: 1;
2757 unsigned PWM1LDM
: 1;
2758 unsigned PWM1LD
: 1;
2763 unsigned PWM1LDS
: 2;
2772 } __PWM1LDCONbits_t
;
2774 extern __at(0x0D9F) volatile __PWM1LDCONbits_t PWM1LDCONbits
;
2776 #define _PWM1LDS0 0x01
2778 #define _PWM1LDS1 0x02
2781 #define _PWM1LDM 0x40
2783 #define _PWM1LD 0x80
2785 //==============================================================================
2788 //==============================================================================
2791 extern __at(0x0DA0) __sfr PWM1OFCON
;
2797 unsigned PWM1OFS0
: 1;
2798 unsigned PWM1OFS1
: 1;
2802 unsigned PWM1OFM0
: 1;
2803 unsigned PWM1OFM1
: 1;
2813 unsigned PWM1OFMC
: 1;
2827 unsigned PWM1OFS
: 2;
2841 unsigned PWM1OFM
: 2;
2844 } __PWM1OFCONbits_t
;
2846 extern __at(0x0DA0) volatile __PWM1OFCONbits_t PWM1OFCONbits
;
2848 #define _PWM1OFS0 0x01
2850 #define _PWM1OFS1 0x02
2853 #define _PWM1OFMC 0x10
2854 #define _PWM1OFM0 0x20
2856 #define _PWM1OFM1 0x40
2859 //==============================================================================
2861 extern __at(0x0DA1) __sfr PWM2PH
;
2863 //==============================================================================
2866 extern __at(0x0DA1) __sfr PWM2PHL
;
2870 unsigned PWM2PHL0
: 1;
2871 unsigned PWM2PHL1
: 1;
2872 unsigned PWM2PHL2
: 1;
2873 unsigned PWM2PHL3
: 1;
2874 unsigned PWM2PHL4
: 1;
2875 unsigned PWM2PHL5
: 1;
2876 unsigned PWM2PHL6
: 1;
2877 unsigned PWM2PHL7
: 1;
2880 extern __at(0x0DA1) volatile __PWM2PHLbits_t PWM2PHLbits
;
2882 #define _PWM2PHL0 0x01
2883 #define _PWM2PHL1 0x02
2884 #define _PWM2PHL2 0x04
2885 #define _PWM2PHL3 0x08
2886 #define _PWM2PHL4 0x10
2887 #define _PWM2PHL5 0x20
2888 #define _PWM2PHL6 0x40
2889 #define _PWM2PHL7 0x80
2891 //==============================================================================
2894 //==============================================================================
2897 extern __at(0x0DA2) __sfr PWM2PHH
;
2901 unsigned PWM2PHH0
: 1;
2902 unsigned PWM2PHH1
: 1;
2903 unsigned PWM2PHH2
: 1;
2904 unsigned PWM2PHH3
: 1;
2905 unsigned PWM2PHH4
: 1;
2906 unsigned PWM2PHH5
: 1;
2907 unsigned PWM2PHH6
: 1;
2908 unsigned PWM2PHH7
: 1;
2911 extern __at(0x0DA2) volatile __PWM2PHHbits_t PWM2PHHbits
;
2913 #define _PWM2PHH0 0x01
2914 #define _PWM2PHH1 0x02
2915 #define _PWM2PHH2 0x04
2916 #define _PWM2PHH3 0x08
2917 #define _PWM2PHH4 0x10
2918 #define _PWM2PHH5 0x20
2919 #define _PWM2PHH6 0x40
2920 #define _PWM2PHH7 0x80
2922 //==============================================================================
2924 extern __at(0x0DA3) __sfr PWM2DC
;
2926 //==============================================================================
2929 extern __at(0x0DA3) __sfr PWM2DCL
;
2933 unsigned PWM2DCL0
: 1;
2934 unsigned PWM2DCL1
: 1;
2935 unsigned PWM2DCL2
: 1;
2936 unsigned PWM2DCL3
: 1;
2937 unsigned PWM2DCL4
: 1;
2938 unsigned PWM2DCL5
: 1;
2939 unsigned PWM2DCL6
: 1;
2940 unsigned PWM2DCL7
: 1;
2943 extern __at(0x0DA3) volatile __PWM2DCLbits_t PWM2DCLbits
;
2945 #define _PWM2DCL0 0x01
2946 #define _PWM2DCL1 0x02
2947 #define _PWM2DCL2 0x04
2948 #define _PWM2DCL3 0x08
2949 #define _PWM2DCL4 0x10
2950 #define _PWM2DCL5 0x20
2951 #define _PWM2DCL6 0x40
2952 #define _PWM2DCL7 0x80
2954 //==============================================================================
2957 //==============================================================================
2960 extern __at(0x0DA4) __sfr PWM2DCH
;
2964 unsigned PWM2DCH0
: 1;
2965 unsigned PWM2DCH1
: 1;
2966 unsigned PWM2DCH2
: 1;
2967 unsigned PWM2DCH3
: 1;
2968 unsigned PWM2DCH4
: 1;
2969 unsigned PWM2DCH5
: 1;
2970 unsigned PWM2DCH6
: 1;
2971 unsigned PWM2DCH7
: 1;
2974 extern __at(0x0DA4) volatile __PWM2DCHbits_t PWM2DCHbits
;
2976 #define _PWM2DCH0 0x01
2977 #define _PWM2DCH1 0x02
2978 #define _PWM2DCH2 0x04
2979 #define _PWM2DCH3 0x08
2980 #define _PWM2DCH4 0x10
2981 #define _PWM2DCH5 0x20
2982 #define _PWM2DCH6 0x40
2983 #define _PWM2DCH7 0x80
2985 //==============================================================================
2987 extern __at(0x0DA5) __sfr PWM2PR
;
2989 //==============================================================================
2992 extern __at(0x0DA5) __sfr PWM2PRL
;
2996 unsigned PWM2PRL0
: 1;
2997 unsigned PWM2PRL1
: 1;
2998 unsigned PWM2PRL2
: 1;
2999 unsigned PWM2PRL3
: 1;
3000 unsigned PWM2PRL4
: 1;
3001 unsigned PWM2PRL5
: 1;
3002 unsigned PWM2PRL6
: 1;
3003 unsigned PWM2PRL7
: 1;
3006 extern __at(0x0DA5) volatile __PWM2PRLbits_t PWM2PRLbits
;
3008 #define _PWM2PRL0 0x01
3009 #define _PWM2PRL1 0x02
3010 #define _PWM2PRL2 0x04
3011 #define _PWM2PRL3 0x08
3012 #define _PWM2PRL4 0x10
3013 #define _PWM2PRL5 0x20
3014 #define _PWM2PRL6 0x40
3015 #define _PWM2PRL7 0x80
3017 //==============================================================================
3020 //==============================================================================
3023 extern __at(0x0DA6) __sfr PWM2PRH
;
3027 unsigned PWM2PRH0
: 1;
3028 unsigned PWM2PRH1
: 1;
3029 unsigned PWM2PRH2
: 1;
3030 unsigned PWM2PRH3
: 1;
3031 unsigned PWM2PRH4
: 1;
3032 unsigned PWM2PRH5
: 1;
3033 unsigned PWM2PRH6
: 1;
3034 unsigned PWM2PRH7
: 1;
3037 extern __at(0x0DA6) volatile __PWM2PRHbits_t PWM2PRHbits
;
3039 #define _PWM2PRH0 0x01
3040 #define _PWM2PRH1 0x02
3041 #define _PWM2PRH2 0x04
3042 #define _PWM2PRH3 0x08
3043 #define _PWM2PRH4 0x10
3044 #define _PWM2PRH5 0x20
3045 #define _PWM2PRH6 0x40
3046 #define _PWM2PRH7 0x80
3048 //==============================================================================
3050 extern __at(0x0DA7) __sfr PWM2OF
;
3052 //==============================================================================
3055 extern __at(0x0DA7) __sfr PWM2OFL
;
3059 unsigned PWM2OFL0
: 1;
3060 unsigned PWM2OFL1
: 1;
3061 unsigned PWM2OFL2
: 1;
3062 unsigned PWM2OFL3
: 1;
3063 unsigned PWM2OFL4
: 1;
3064 unsigned PWM2OFL5
: 1;
3065 unsigned PWM2OFL6
: 1;
3066 unsigned PWM2OFL7
: 1;
3069 extern __at(0x0DA7) volatile __PWM2OFLbits_t PWM2OFLbits
;
3071 #define _PWM2OFL0 0x01
3072 #define _PWM2OFL1 0x02
3073 #define _PWM2OFL2 0x04
3074 #define _PWM2OFL3 0x08
3075 #define _PWM2OFL4 0x10
3076 #define _PWM2OFL5 0x20
3077 #define _PWM2OFL6 0x40
3078 #define _PWM2OFL7 0x80
3080 //==============================================================================
3083 //==============================================================================
3086 extern __at(0x0DA8) __sfr PWM2OFH
;
3090 unsigned PWM2OFH0
: 1;
3091 unsigned PWM2OFH1
: 1;
3092 unsigned PWM2OFH2
: 1;
3093 unsigned PWM2OFH3
: 1;
3094 unsigned PWM2OFH4
: 1;
3095 unsigned PWM2OFH5
: 1;
3096 unsigned PWM2OFH6
: 1;
3097 unsigned PWM2OFH7
: 1;
3100 extern __at(0x0DA8) volatile __PWM2OFHbits_t PWM2OFHbits
;
3102 #define _PWM2OFH0 0x01
3103 #define _PWM2OFH1 0x02
3104 #define _PWM2OFH2 0x04
3105 #define _PWM2OFH3 0x08
3106 #define _PWM2OFH4 0x10
3107 #define _PWM2OFH5 0x20
3108 #define _PWM2OFH6 0x40
3109 #define _PWM2OFH7 0x80
3111 //==============================================================================
3113 extern __at(0x0DA9) __sfr PWM2TMR
;
3115 //==============================================================================
3118 extern __at(0x0DA9) __sfr PWM2TMRL
;
3122 unsigned PWM2TMRL0
: 1;
3123 unsigned PWM2TMRL1
: 1;
3124 unsigned PWM2TMRL2
: 1;
3125 unsigned PWM2TMRL3
: 1;
3126 unsigned PWM2TMRL4
: 1;
3127 unsigned PWM2TMRL5
: 1;
3128 unsigned PWM2TMRL6
: 1;
3129 unsigned PWM2TMRL7
: 1;
3132 extern __at(0x0DA9) volatile __PWM2TMRLbits_t PWM2TMRLbits
;
3134 #define _PWM2TMRL0 0x01
3135 #define _PWM2TMRL1 0x02
3136 #define _PWM2TMRL2 0x04
3137 #define _PWM2TMRL3 0x08
3138 #define _PWM2TMRL4 0x10
3139 #define _PWM2TMRL5 0x20
3140 #define _PWM2TMRL6 0x40
3141 #define _PWM2TMRL7 0x80
3143 //==============================================================================
3146 //==============================================================================
3149 extern __at(0x0DAA) __sfr PWM2TMRH
;
3153 unsigned PWM2TMRH0
: 1;
3154 unsigned PWM2TMRH1
: 1;
3155 unsigned PWM2TMRH2
: 1;
3156 unsigned PWM2TMRH3
: 1;
3157 unsigned PWM2TMRH4
: 1;
3158 unsigned PWM2TMRH5
: 1;
3159 unsigned PWM2TMRH6
: 1;
3160 unsigned PWM2TMRH7
: 1;
3163 extern __at(0x0DAA) volatile __PWM2TMRHbits_t PWM2TMRHbits
;
3165 #define _PWM2TMRH0 0x01
3166 #define _PWM2TMRH1 0x02
3167 #define _PWM2TMRH2 0x04
3168 #define _PWM2TMRH3 0x08
3169 #define _PWM2TMRH4 0x10
3170 #define _PWM2TMRH5 0x20
3171 #define _PWM2TMRH6 0x40
3172 #define _PWM2TMRH7 0x80
3174 //==============================================================================
3177 //==============================================================================
3180 extern __at(0x0DAB) __sfr PWM2CON
;
3188 unsigned PWM2MODE0
: 1;
3189 unsigned PWM2MODE1
: 1;
3202 unsigned PWM2POL
: 1;
3203 unsigned PWM2OUT
: 1;
3204 unsigned PWM2OE
: 1;
3205 unsigned PWM2EN
: 1;
3218 unsigned PWM2MODE
: 2;
3223 extern __at(0x0DAB) volatile __PWM2CONbits_t PWM2CONbits
;
3225 #define _PWM2CON_PWM2MODE0 0x04
3226 #define _PWM2CON_MODE0 0x04
3227 #define _PWM2CON_PWM2MODE1 0x08
3228 #define _PWM2CON_MODE1 0x08
3229 #define _PWM2CON_POL 0x10
3230 #define _PWM2CON_PWM2POL 0x10
3231 #define _PWM2CON_OUT 0x20
3232 #define _PWM2CON_PWM2OUT 0x20
3233 #define _PWM2CON_OE 0x40
3234 #define _PWM2CON_PWM2OE 0x40
3235 #define _PWM2CON_EN 0x80
3236 #define _PWM2CON_PWM2EN 0x80
3238 //==============================================================================
3241 //==============================================================================
3244 extern __at(0x0DAC) __sfr PWM2INTCON
;
3262 unsigned PWM2PRIE
: 1;
3263 unsigned PWM2DCIE
: 1;
3264 unsigned PWM2PHIE
: 1;
3265 unsigned PWM2OFIE
: 1;
3271 } __PWM2INTCONbits_t
;
3273 extern __at(0x0DAC) volatile __PWM2INTCONbits_t PWM2INTCONbits
;
3275 #define _PWM2INTCON_PRIE 0x01
3276 #define _PWM2INTCON_PWM2PRIE 0x01
3277 #define _PWM2INTCON_DCIE 0x02
3278 #define _PWM2INTCON_PWM2DCIE 0x02
3279 #define _PWM2INTCON_PHIE 0x04
3280 #define _PWM2INTCON_PWM2PHIE 0x04
3281 #define _PWM2INTCON_OFIE 0x08
3282 #define _PWM2INTCON_PWM2OFIE 0x08
3284 //==============================================================================
3287 //==============================================================================
3290 extern __at(0x0DAC) __sfr PWM2INTE
;
3308 unsigned PWM2PRIE
: 1;
3309 unsigned PWM2DCIE
: 1;
3310 unsigned PWM2PHIE
: 1;
3311 unsigned PWM2OFIE
: 1;
3319 extern __at(0x0DAC) volatile __PWM2INTEbits_t PWM2INTEbits
;
3321 #define _PWM2INTE_PRIE 0x01
3322 #define _PWM2INTE_PWM2PRIE 0x01
3323 #define _PWM2INTE_DCIE 0x02
3324 #define _PWM2INTE_PWM2DCIE 0x02
3325 #define _PWM2INTE_PHIE 0x04
3326 #define _PWM2INTE_PWM2PHIE 0x04
3327 #define _PWM2INTE_OFIE 0x08
3328 #define _PWM2INTE_PWM2OFIE 0x08
3330 //==============================================================================
3333 //==============================================================================
3336 extern __at(0x0DAD) __sfr PWM2INTF
;
3354 unsigned PWM2PRIF
: 1;
3355 unsigned PWM2DCIF
: 1;
3356 unsigned PWM2PHIF
: 1;
3357 unsigned PWM2OFIF
: 1;
3365 extern __at(0x0DAD) volatile __PWM2INTFbits_t PWM2INTFbits
;
3367 #define _PWM2INTF_PRIF 0x01
3368 #define _PWM2INTF_PWM2PRIF 0x01
3369 #define _PWM2INTF_DCIF 0x02
3370 #define _PWM2INTF_PWM2DCIF 0x02
3371 #define _PWM2INTF_PHIF 0x04
3372 #define _PWM2INTF_PWM2PHIF 0x04
3373 #define _PWM2INTF_OFIF 0x08
3374 #define _PWM2INTF_PWM2OFIF 0x08
3376 //==============================================================================
3379 //==============================================================================
3382 extern __at(0x0DAD) __sfr PWM2INTFLG
;
3400 unsigned PWM2PRIF
: 1;
3401 unsigned PWM2DCIF
: 1;
3402 unsigned PWM2PHIF
: 1;
3403 unsigned PWM2OFIF
: 1;
3409 } __PWM2INTFLGbits_t
;
3411 extern __at(0x0DAD) volatile __PWM2INTFLGbits_t PWM2INTFLGbits
;
3413 #define _PWM2INTFLG_PRIF 0x01
3414 #define _PWM2INTFLG_PWM2PRIF 0x01
3415 #define _PWM2INTFLG_DCIF 0x02
3416 #define _PWM2INTFLG_PWM2DCIF 0x02
3417 #define _PWM2INTFLG_PHIF 0x04
3418 #define _PWM2INTFLG_PWM2PHIF 0x04
3419 #define _PWM2INTFLG_OFIF 0x08
3420 #define _PWM2INTFLG_PWM2OFIF 0x08
3422 //==============================================================================
3425 //==============================================================================
3428 extern __at(0x0DAE) __sfr PWM2CLKCON
;
3434 unsigned PWM2CS0
: 1;
3435 unsigned PWM2CS1
: 1;
3438 unsigned PWM2PS0
: 1;
3439 unsigned PWM2PS1
: 1;
3440 unsigned PWM2PS2
: 1;
3458 unsigned PWM2CS
: 2;
3471 unsigned PWM2PS
: 3;
3481 } __PWM2CLKCONbits_t
;
3483 extern __at(0x0DAE) volatile __PWM2CLKCONbits_t PWM2CLKCONbits
;
3485 #define _PWM2CLKCON_PWM2CS0 0x01
3486 #define _PWM2CLKCON_CS0 0x01
3487 #define _PWM2CLKCON_PWM2CS1 0x02
3488 #define _PWM2CLKCON_CS1 0x02
3489 #define _PWM2CLKCON_PWM2PS0 0x10
3490 #define _PWM2CLKCON_PS0 0x10
3491 #define _PWM2CLKCON_PWM2PS1 0x20
3492 #define _PWM2CLKCON_PS1 0x20
3493 #define _PWM2CLKCON_PWM2PS2 0x40
3494 #define _PWM2CLKCON_PS2 0x40
3496 //==============================================================================
3499 //==============================================================================
3502 extern __at(0x0DAF) __sfr PWM2LDCON
;
3508 unsigned PWM2LDS0
: 1;
3509 unsigned PWM2LDS1
: 1;
3526 unsigned PWM2LDM
: 1;
3527 unsigned PWM2LD
: 1;
3532 unsigned PWM2LDS
: 2;
3541 } __PWM2LDCONbits_t
;
3543 extern __at(0x0DAF) volatile __PWM2LDCONbits_t PWM2LDCONbits
;
3545 #define _PWM2LDCON_PWM2LDS0 0x01
3546 #define _PWM2LDCON_LDS0 0x01
3547 #define _PWM2LDCON_PWM2LDS1 0x02
3548 #define _PWM2LDCON_LDS1 0x02
3549 #define _PWM2LDCON_LDT 0x40
3550 #define _PWM2LDCON_PWM2LDM 0x40
3551 #define _PWM2LDCON_LDA 0x80
3552 #define _PWM2LDCON_PWM2LD 0x80
3554 //==============================================================================
3557 //==============================================================================
3560 extern __at(0x0DB0) __sfr PWM2OFCON
;
3566 unsigned PWM2OFS0
: 1;
3567 unsigned PWM2OFS1
: 1;
3571 unsigned PWM2OFM0
: 1;
3572 unsigned PWM2OFM1
: 1;
3582 unsigned PWM2OFMC
: 1;
3596 unsigned PWM2OFS
: 2;
3610 unsigned PWM2OFM
: 2;
3613 } __PWM2OFCONbits_t
;
3615 extern __at(0x0DB0) volatile __PWM2OFCONbits_t PWM2OFCONbits
;
3617 #define _PWM2OFCON_PWM2OFS0 0x01
3618 #define _PWM2OFCON_OFS0 0x01
3619 #define _PWM2OFCON_PWM2OFS1 0x02
3620 #define _PWM2OFCON_OFS1 0x02
3621 #define _PWM2OFCON_OFO 0x10
3622 #define _PWM2OFCON_PWM2OFMC 0x10
3623 #define _PWM2OFCON_PWM2OFM0 0x20
3624 #define _PWM2OFCON_OFM0 0x20
3625 #define _PWM2OFCON_PWM2OFM1 0x40
3626 #define _PWM2OFCON_OFM1 0x40
3628 //==============================================================================
3630 extern __at(0x0DB1) __sfr PWM3PH
;
3632 //==============================================================================
3635 extern __at(0x0DB1) __sfr PWM3PHL
;
3639 unsigned PWM3PHL0
: 1;
3640 unsigned PWM3PHL1
: 1;
3641 unsigned PWM3PHL2
: 1;
3642 unsigned PWM3PHL3
: 1;
3643 unsigned PWM3PHL4
: 1;
3644 unsigned PWM3PHL5
: 1;
3645 unsigned PWM3PHL6
: 1;
3646 unsigned PWM3PHL7
: 1;
3649 extern __at(0x0DB1) volatile __PWM3PHLbits_t PWM3PHLbits
;
3651 #define _PWM3PHL0 0x01
3652 #define _PWM3PHL1 0x02
3653 #define _PWM3PHL2 0x04
3654 #define _PWM3PHL3 0x08
3655 #define _PWM3PHL4 0x10
3656 #define _PWM3PHL5 0x20
3657 #define _PWM3PHL6 0x40
3658 #define _PWM3PHL7 0x80
3660 //==============================================================================
3663 //==============================================================================
3666 extern __at(0x0DB2) __sfr PWM3PHH
;
3670 unsigned PWM3PHH0
: 1;
3671 unsigned PWM3PHH1
: 1;
3672 unsigned PWM3PHH2
: 1;
3673 unsigned PWM3PHH3
: 1;
3674 unsigned PWM3PHH4
: 1;
3675 unsigned PWM3PHH5
: 1;
3676 unsigned PWM3PHH6
: 1;
3677 unsigned PWM3PHH7
: 1;
3680 extern __at(0x0DB2) volatile __PWM3PHHbits_t PWM3PHHbits
;
3682 #define _PWM3PHH0 0x01
3683 #define _PWM3PHH1 0x02
3684 #define _PWM3PHH2 0x04
3685 #define _PWM3PHH3 0x08
3686 #define _PWM3PHH4 0x10
3687 #define _PWM3PHH5 0x20
3688 #define _PWM3PHH6 0x40
3689 #define _PWM3PHH7 0x80
3691 //==============================================================================
3693 extern __at(0x0DB3) __sfr PWM3DC
;
3695 //==============================================================================
3698 extern __at(0x0DB3) __sfr PWM3DCL
;
3702 unsigned PWM3DCL0
: 1;
3703 unsigned PWM3DCL1
: 1;
3704 unsigned PWM3DCL2
: 1;
3705 unsigned PWM3DCL3
: 1;
3706 unsigned PWM3DCL4
: 1;
3707 unsigned PWM3DCL5
: 1;
3708 unsigned PWM3DCL6
: 1;
3709 unsigned PWM3DCL7
: 1;
3712 extern __at(0x0DB3) volatile __PWM3DCLbits_t PWM3DCLbits
;
3714 #define _PWM3DCL0 0x01
3715 #define _PWM3DCL1 0x02
3716 #define _PWM3DCL2 0x04
3717 #define _PWM3DCL3 0x08
3718 #define _PWM3DCL4 0x10
3719 #define _PWM3DCL5 0x20
3720 #define _PWM3DCL6 0x40
3721 #define _PWM3DCL7 0x80
3723 //==============================================================================
3726 //==============================================================================
3729 extern __at(0x0DB4) __sfr PWM3DCH
;
3733 unsigned PWM3DCH0
: 1;
3734 unsigned PWM3DCH1
: 1;
3735 unsigned PWM3DCH2
: 1;
3736 unsigned PWM3DCH3
: 1;
3737 unsigned PWM3DCH4
: 1;
3738 unsigned PWM3DCH5
: 1;
3739 unsigned PWM3DCH6
: 1;
3740 unsigned PWM3DCH7
: 1;
3743 extern __at(0x0DB4) volatile __PWM3DCHbits_t PWM3DCHbits
;
3745 #define _PWM3DCH0 0x01
3746 #define _PWM3DCH1 0x02
3747 #define _PWM3DCH2 0x04
3748 #define _PWM3DCH3 0x08
3749 #define _PWM3DCH4 0x10
3750 #define _PWM3DCH5 0x20
3751 #define _PWM3DCH6 0x40
3752 #define _PWM3DCH7 0x80
3754 //==============================================================================
3756 extern __at(0x0DB5) __sfr PWM3PR
;
3758 //==============================================================================
3761 extern __at(0x0DB5) __sfr PWM3PRL
;
3765 unsigned PWM3PRL0
: 1;
3766 unsigned PWM3PRL1
: 1;
3767 unsigned PWM3PRL2
: 1;
3768 unsigned PWM3PRL3
: 1;
3769 unsigned PWM3PRL4
: 1;
3770 unsigned PWM3PRL5
: 1;
3771 unsigned PWM3PRL6
: 1;
3772 unsigned PWM3PRL7
: 1;
3775 extern __at(0x0DB5) volatile __PWM3PRLbits_t PWM3PRLbits
;
3777 #define _PWM3PRL0 0x01
3778 #define _PWM3PRL1 0x02
3779 #define _PWM3PRL2 0x04
3780 #define _PWM3PRL3 0x08
3781 #define _PWM3PRL4 0x10
3782 #define _PWM3PRL5 0x20
3783 #define _PWM3PRL6 0x40
3784 #define _PWM3PRL7 0x80
3786 //==============================================================================
3789 //==============================================================================
3792 extern __at(0x0DB6) __sfr PWM3PRH
;
3796 unsigned PWM3PRH0
: 1;
3797 unsigned PWM3PRH1
: 1;
3798 unsigned PWM3PRH2
: 1;
3799 unsigned PWM3PRH3
: 1;
3800 unsigned PWM3PRH4
: 1;
3801 unsigned PWM3PRH5
: 1;
3802 unsigned PWM3PRH6
: 1;
3803 unsigned PWM3PRH7
: 1;
3806 extern __at(0x0DB6) volatile __PWM3PRHbits_t PWM3PRHbits
;
3808 #define _PWM3PRH0 0x01
3809 #define _PWM3PRH1 0x02
3810 #define _PWM3PRH2 0x04
3811 #define _PWM3PRH3 0x08
3812 #define _PWM3PRH4 0x10
3813 #define _PWM3PRH5 0x20
3814 #define _PWM3PRH6 0x40
3815 #define _PWM3PRH7 0x80
3817 //==============================================================================
3819 extern __at(0x0DB7) __sfr PWM3OF
;
3821 //==============================================================================
3824 extern __at(0x0DB7) __sfr PWM3OFL
;
3828 unsigned PWM3OFL0
: 1;
3829 unsigned PWM3OFL1
: 1;
3830 unsigned PWM3OFL2
: 1;
3831 unsigned PWM3OFL3
: 1;
3832 unsigned PWM3OFL4
: 1;
3833 unsigned PWM3OFL5
: 1;
3834 unsigned PWM3OFL6
: 1;
3835 unsigned PWM3OFL7
: 1;
3838 extern __at(0x0DB7) volatile __PWM3OFLbits_t PWM3OFLbits
;
3840 #define _PWM3OFL0 0x01
3841 #define _PWM3OFL1 0x02
3842 #define _PWM3OFL2 0x04
3843 #define _PWM3OFL3 0x08
3844 #define _PWM3OFL4 0x10
3845 #define _PWM3OFL5 0x20
3846 #define _PWM3OFL6 0x40
3847 #define _PWM3OFL7 0x80
3849 //==============================================================================
3852 //==============================================================================
3855 extern __at(0x0DB8) __sfr PWM3OFH
;
3859 unsigned PWM3OFH0
: 1;
3860 unsigned PWM3OFH1
: 1;
3861 unsigned PWM3OFH2
: 1;
3862 unsigned PWM3OFH3
: 1;
3863 unsigned PWM3OFH4
: 1;
3864 unsigned PWM3OFH5
: 1;
3865 unsigned PWM3OFH6
: 1;
3866 unsigned PWM3OFH7
: 1;
3869 extern __at(0x0DB8) volatile __PWM3OFHbits_t PWM3OFHbits
;
3871 #define _PWM3OFH0 0x01
3872 #define _PWM3OFH1 0x02
3873 #define _PWM3OFH2 0x04
3874 #define _PWM3OFH3 0x08
3875 #define _PWM3OFH4 0x10
3876 #define _PWM3OFH5 0x20
3877 #define _PWM3OFH6 0x40
3878 #define _PWM3OFH7 0x80
3880 //==============================================================================
3882 extern __at(0x0DB9) __sfr PWM3TMR
;
3884 //==============================================================================
3887 extern __at(0x0DB9) __sfr PWM3TMRL
;
3891 unsigned PWM3TMRL0
: 1;
3892 unsigned PWM3TMRL1
: 1;
3893 unsigned PWM3TMRL2
: 1;
3894 unsigned PWM3TMRL3
: 1;
3895 unsigned PWM3TMRL4
: 1;
3896 unsigned PWM3TMRL5
: 1;
3897 unsigned PWM3TMRL6
: 1;
3898 unsigned PWM3TMRL7
: 1;
3901 extern __at(0x0DB9) volatile __PWM3TMRLbits_t PWM3TMRLbits
;
3903 #define _PWM3TMRL0 0x01
3904 #define _PWM3TMRL1 0x02
3905 #define _PWM3TMRL2 0x04
3906 #define _PWM3TMRL3 0x08
3907 #define _PWM3TMRL4 0x10
3908 #define _PWM3TMRL5 0x20
3909 #define _PWM3TMRL6 0x40
3910 #define _PWM3TMRL7 0x80
3912 //==============================================================================
3915 //==============================================================================
3918 extern __at(0x0DBA) __sfr PWM3TMRH
;
3922 unsigned PWM3TMRH0
: 1;
3923 unsigned PWM3TMRH1
: 1;
3924 unsigned PWM3TMRH2
: 1;
3925 unsigned PWM3TMRH3
: 1;
3926 unsigned PWM3TMRH4
: 1;
3927 unsigned PWM3TMRH5
: 1;
3928 unsigned PWM3TMRH6
: 1;
3929 unsigned PWM3TMRH7
: 1;
3932 extern __at(0x0DBA) volatile __PWM3TMRHbits_t PWM3TMRHbits
;
3934 #define _PWM3TMRH0 0x01
3935 #define _PWM3TMRH1 0x02
3936 #define _PWM3TMRH2 0x04
3937 #define _PWM3TMRH3 0x08
3938 #define _PWM3TMRH4 0x10
3939 #define _PWM3TMRH5 0x20
3940 #define _PWM3TMRH6 0x40
3941 #define _PWM3TMRH7 0x80
3943 //==============================================================================
3946 //==============================================================================
3949 extern __at(0x0DBB) __sfr PWM3CON
;
3957 unsigned PWM3MODE0
: 1;
3958 unsigned PWM3MODE1
: 1;
3971 unsigned PWM3POL
: 1;
3972 unsigned PWM3OUT
: 1;
3973 unsigned PWM3OE
: 1;
3974 unsigned PWM3EN
: 1;
3987 unsigned PWM3MODE
: 2;
3992 extern __at(0x0DBB) volatile __PWM3CONbits_t PWM3CONbits
;
3994 #define _PWM3CON_PWM3MODE0 0x04
3995 #define _PWM3CON_MODE0 0x04
3996 #define _PWM3CON_PWM3MODE1 0x08
3997 #define _PWM3CON_MODE1 0x08
3998 #define _PWM3CON_POL 0x10
3999 #define _PWM3CON_PWM3POL 0x10
4000 #define _PWM3CON_OUT 0x20
4001 #define _PWM3CON_PWM3OUT 0x20
4002 #define _PWM3CON_OE 0x40
4003 #define _PWM3CON_PWM3OE 0x40
4004 #define _PWM3CON_EN 0x80
4005 #define _PWM3CON_PWM3EN 0x80
4007 //==============================================================================
4010 //==============================================================================
4013 extern __at(0x0DBC) __sfr PWM3INTCON
;
4031 unsigned PWM3PRIE
: 1;
4032 unsigned PWM3DCIE
: 1;
4033 unsigned PWM3PHIE
: 1;
4034 unsigned PWM3OFIE
: 1;
4040 } __PWM3INTCONbits_t
;
4042 extern __at(0x0DBC) volatile __PWM3INTCONbits_t PWM3INTCONbits
;
4044 #define _PWM3INTCON_PRIE 0x01
4045 #define _PWM3INTCON_PWM3PRIE 0x01
4046 #define _PWM3INTCON_DCIE 0x02
4047 #define _PWM3INTCON_PWM3DCIE 0x02
4048 #define _PWM3INTCON_PHIE 0x04
4049 #define _PWM3INTCON_PWM3PHIE 0x04
4050 #define _PWM3INTCON_OFIE 0x08
4051 #define _PWM3INTCON_PWM3OFIE 0x08
4053 //==============================================================================
4056 //==============================================================================
4059 extern __at(0x0DBC) __sfr PWM3INTE
;
4077 unsigned PWM3PRIE
: 1;
4078 unsigned PWM3DCIE
: 1;
4079 unsigned PWM3PHIE
: 1;
4080 unsigned PWM3OFIE
: 1;
4088 extern __at(0x0DBC) volatile __PWM3INTEbits_t PWM3INTEbits
;
4090 #define _PWM3INTE_PRIE 0x01
4091 #define _PWM3INTE_PWM3PRIE 0x01
4092 #define _PWM3INTE_DCIE 0x02
4093 #define _PWM3INTE_PWM3DCIE 0x02
4094 #define _PWM3INTE_PHIE 0x04
4095 #define _PWM3INTE_PWM3PHIE 0x04
4096 #define _PWM3INTE_OFIE 0x08
4097 #define _PWM3INTE_PWM3OFIE 0x08
4099 //==============================================================================
4102 //==============================================================================
4105 extern __at(0x0DBD) __sfr PWM3INTF
;
4123 unsigned PWM3PRIF
: 1;
4124 unsigned PWM3DCIF
: 1;
4125 unsigned PWM3PHIF
: 1;
4126 unsigned PWM3OFIF
: 1;
4134 extern __at(0x0DBD) volatile __PWM3INTFbits_t PWM3INTFbits
;
4136 #define _PWM3INTF_PRIF 0x01
4137 #define _PWM3INTF_PWM3PRIF 0x01
4138 #define _PWM3INTF_DCIF 0x02
4139 #define _PWM3INTF_PWM3DCIF 0x02
4140 #define _PWM3INTF_PHIF 0x04
4141 #define _PWM3INTF_PWM3PHIF 0x04
4142 #define _PWM3INTF_OFIF 0x08
4143 #define _PWM3INTF_PWM3OFIF 0x08
4145 //==============================================================================
4148 //==============================================================================
4151 extern __at(0x0DBD) __sfr PWM3INTFLG
;
4169 unsigned PWM3PRIF
: 1;
4170 unsigned PWM3DCIF
: 1;
4171 unsigned PWM3PHIF
: 1;
4172 unsigned PWM3OFIF
: 1;
4178 } __PWM3INTFLGbits_t
;
4180 extern __at(0x0DBD) volatile __PWM3INTFLGbits_t PWM3INTFLGbits
;
4182 #define _PWM3INTFLG_PRIF 0x01
4183 #define _PWM3INTFLG_PWM3PRIF 0x01
4184 #define _PWM3INTFLG_DCIF 0x02
4185 #define _PWM3INTFLG_PWM3DCIF 0x02
4186 #define _PWM3INTFLG_PHIF 0x04
4187 #define _PWM3INTFLG_PWM3PHIF 0x04
4188 #define _PWM3INTFLG_OFIF 0x08
4189 #define _PWM3INTFLG_PWM3OFIF 0x08
4191 //==============================================================================
4194 //==============================================================================
4197 extern __at(0x0DBE) __sfr PWM3CLKCON
;
4203 unsigned PWM3CS0
: 1;
4204 unsigned PWM3CS1
: 1;
4207 unsigned PWM3PS0
: 1;
4208 unsigned PWM3PS1
: 1;
4209 unsigned PWM3PS2
: 1;
4227 unsigned PWM3CS
: 2;
4247 unsigned PWM3PS
: 3;
4250 } __PWM3CLKCONbits_t
;
4252 extern __at(0x0DBE) volatile __PWM3CLKCONbits_t PWM3CLKCONbits
;
4254 #define _PWM3CLKCON_PWM3CS0 0x01
4255 #define _PWM3CLKCON_CS0 0x01
4256 #define _PWM3CLKCON_PWM3CS1 0x02
4257 #define _PWM3CLKCON_CS1 0x02
4258 #define _PWM3CLKCON_PWM3PS0 0x10
4259 #define _PWM3CLKCON_PS0 0x10
4260 #define _PWM3CLKCON_PWM3PS1 0x20
4261 #define _PWM3CLKCON_PS1 0x20
4262 #define _PWM3CLKCON_PWM3PS2 0x40
4263 #define _PWM3CLKCON_PS2 0x40
4265 //==============================================================================
4268 //==============================================================================
4271 extern __at(0x0DBF) __sfr PWM3LDCON
;
4277 unsigned PWM3LDS0
: 1;
4278 unsigned PWM3LDS1
: 1;
4295 unsigned PWM3LDM
: 1;
4296 unsigned PWM3LD
: 1;
4307 unsigned PWM3LDS
: 2;
4310 } __PWM3LDCONbits_t
;
4312 extern __at(0x0DBF) volatile __PWM3LDCONbits_t PWM3LDCONbits
;
4314 #define _PWM3LDCON_PWM3LDS0 0x01
4315 #define _PWM3LDCON_LDS0 0x01
4316 #define _PWM3LDCON_PWM3LDS1 0x02
4317 #define _PWM3LDCON_LDS1 0x02
4318 #define _PWM3LDCON_LDT 0x40
4319 #define _PWM3LDCON_PWM3LDM 0x40
4320 #define _PWM3LDCON_LDA 0x80
4321 #define _PWM3LDCON_PWM3LD 0x80
4323 //==============================================================================
4326 //==============================================================================
4329 extern __at(0x0DC0) __sfr PWM3OFCON
;
4335 unsigned PWM3OFS0
: 1;
4336 unsigned PWM3OFS1
: 1;
4340 unsigned PWM3OFM0
: 1;
4341 unsigned PWM3OFM1
: 1;
4351 unsigned PWM3OFMC
: 1;
4365 unsigned PWM3OFS
: 2;
4379 unsigned PWM3OFM
: 2;
4382 } __PWM3OFCONbits_t
;
4384 extern __at(0x0DC0) volatile __PWM3OFCONbits_t PWM3OFCONbits
;
4386 #define _PWM3OFCON_PWM3OFS0 0x01
4387 #define _PWM3OFCON_OFS0 0x01
4388 #define _PWM3OFCON_PWM3OFS1 0x02
4389 #define _PWM3OFCON_OFS1 0x02
4390 #define _PWM3OFCON_OFO 0x10
4391 #define _PWM3OFCON_PWM3OFMC 0x10
4392 #define _PWM3OFCON_PWM3OFM0 0x20
4393 #define _PWM3OFCON_OFM0 0x20
4394 #define _PWM3OFCON_PWM3OFM1 0x40
4395 #define _PWM3OFCON_OFM1 0x40
4397 //==============================================================================
4400 //==============================================================================
4403 extern __at(0x0FE4) __sfr STATUS_SHAD
;
4407 unsigned C_SHAD
: 1;
4408 unsigned DC_SHAD
: 1;
4409 unsigned Z_SHAD
: 1;
4415 } __STATUS_SHADbits_t
;
4417 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
4419 #define _C_SHAD 0x01
4420 #define _DC_SHAD 0x02
4421 #define _Z_SHAD 0x04
4423 //==============================================================================
4425 extern __at(0x0FE5) __sfr WREG_SHAD
;
4426 extern __at(0x0FE6) __sfr BSR_SHAD
;
4427 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
4428 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
4429 extern __at(0x0FE8) __sfr FSR0_SHAD
;
4430 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
4431 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
4432 extern __at(0x0FEA) __sfr FSR1_SHAD
;
4433 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
4434 extern __at(0x0FED) __sfr STKPTR
;
4435 extern __at(0x0FEE) __sfr TOS
;
4436 extern __at(0x0FEE) __sfr TOSL
;
4437 extern __at(0x0FEF) __sfr TOSH
;
4439 //==============================================================================
4441 // Configuration Bits
4443 //==============================================================================
4445 #define _CONFIG1 0x8007
4446 #define _CONFIG2 0x8008
4448 //----------------------------- CONFIG1 Options -------------------------------
4450 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator; I/O function on CLKIN pin.
4451 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz); device clock supplied to CLKIN pin.
4452 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz); device clock supplied to CLKIN pin.
4453 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz); device clock supplied to CLKIN pin.
4454 #define _WDTE_OFF 0x3FE7 // WDT disabled.
4455 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
4456 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
4457 #define _WDTE_ON 0x3FFF // WDT enabled.
4458 #define _PWRTE_ON 0x3FDF // PWRT enabled.
4459 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
4460 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
4461 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
4462 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
4463 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
4464 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
4465 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
4466 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
4467 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
4468 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
4469 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
4471 //----------------------------- CONFIG2 Options -------------------------------
4473 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
4474 #define _WRT_HALF 0x3FFD // 000h to 1FFh write protected, 200h to 3FFh may be modified by EECON control.
4475 #define _WRT_BOOT 0x3FFE // 000h to 0FFh write protected, 100h to 3FFh may be modified by EECON control.
4476 #define _WRT_OFF 0x3FFF // Write protection off.
4477 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
4478 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
4479 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
4480 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
4481 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
4482 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
4483 #define _BORV_19 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
4484 #define _LPBOREN_ON 0x37FF // LPBOR is enabled.
4485 #define _LPBOREN_OFF 0x3FFF // LPBOR is disabled.
4486 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
4487 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
4488 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
4489 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
4491 //==============================================================================
4493 #define _DEVID1 0x8006
4495 #define _IDLOC0 0x8000
4496 #define _IDLOC1 0x8001
4497 #define _IDLOC2 0x8002
4498 #define _IDLOC3 0x8003
4500 //==============================================================================
4502 #ifndef NO_BIT_DEFINES
4504 #define ADON ADCON0bits.ADON // bit 0
4505 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
4506 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
4507 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
4508 #define NOT_DONE ADCON0bits.NOT_DONE // bit 1, shadows bit in ADCON0bits
4509 #define CHS0 ADCON0bits.CHS0 // bit 2
4510 #define CHS1 ADCON0bits.CHS1 // bit 3
4511 #define CHS2 ADCON0bits.CHS2 // bit 4
4512 #define CHS3 ADCON0bits.CHS3 // bit 5
4513 #define CHS4 ADCON0bits.CHS4 // bit 6
4515 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
4516 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
4517 #define ADCS0 ADCON1bits.ADCS0 // bit 4
4518 #define ADCS1 ADCON1bits.ADCS1 // bit 5
4519 #define ADCS2 ADCON1bits.ADCS2 // bit 6
4520 #define ADFM ADCON1bits.ADFM // bit 7
4522 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
4523 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
4524 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
4525 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
4527 #define ANSA0 ANSELAbits.ANSA0 // bit 0
4528 #define ANSA1 ANSELAbits.ANSA1 // bit 1
4529 #define ANSA2 ANSELAbits.ANSA2 // bit 2
4530 #define ANSA4 ANSELAbits.ANSA4 // bit 4
4532 #define P1SEL APFCONbits.P1SEL // bit 0
4533 #define P2SEL APFCONbits.P2SEL // bit 1
4534 #define T1GSEL APFCONbits.T1GSEL // bit 3
4535 #define CWGBSEL APFCONbits.CWGBSEL // bit 5
4536 #define CWGASEL APFCONbits.CWGASEL // bit 6
4538 #define BORRDY BORCONbits.BORRDY // bit 0
4539 #define BORFS BORCONbits.BORFS // bit 6
4540 #define SBOREN BORCONbits.SBOREN // bit 7
4542 #define BSR0 BSRbits.BSR0 // bit 0
4543 #define BSR1 BSRbits.BSR1 // bit 1
4544 #define BSR2 BSRbits.BSR2 // bit 2
4545 #define BSR3 BSRbits.BSR3 // bit 3
4546 #define BSR4 BSRbits.BSR4 // bit 4
4548 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
4549 #define C1HYS CM1CON0bits.C1HYS // bit 1
4550 #define C1SP CM1CON0bits.C1SP // bit 2
4551 #define C1POL CM1CON0bits.C1POL // bit 4
4552 #define C1OE CM1CON0bits.C1OE // bit 5
4553 #define C1OUT CM1CON0bits.C1OUT // bit 6
4554 #define C1ON CM1CON0bits.C1ON // bit 7
4556 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
4557 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
4558 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
4559 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
4560 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
4561 #define C1INTN CM1CON1bits.C1INTN // bit 6
4562 #define C1INTP CM1CON1bits.C1INTP // bit 7
4564 #define MC1OUT CMOUTbits.MC1OUT // bit 0
4566 #define G1CS0 CWG1CON0bits.G1CS0 // bit 0
4567 #define G1POLA CWG1CON0bits.G1POLA // bit 3
4568 #define G1POLB CWG1CON0bits.G1POLB // bit 4
4569 #define G1OEA CWG1CON0bits.G1OEA // bit 5
4570 #define G1OEB CWG1CON0bits.G1OEB // bit 6
4571 #define G1EN CWG1CON0bits.G1EN // bit 7
4573 #define G1IS0 CWG1CON1bits.G1IS0 // bit 0
4574 #define G1IS1 CWG1CON1bits.G1IS1 // bit 1
4575 #define G1IS2 CWG1CON1bits.G1IS2 // bit 2
4576 #define G1ASDLA0 CWG1CON1bits.G1ASDLA0 // bit 4
4577 #define G1ASDLA1 CWG1CON1bits.G1ASDLA1 // bit 5
4578 #define G1ASDLB0 CWG1CON1bits.G1ASDLB0 // bit 6
4579 #define G1ASDLB1 CWG1CON1bits.G1ASDLB1 // bit 7
4581 #define G1ASDSFLT CWG1CON2bits.G1ASDSFLT // bit 1
4582 #define G1ASDSC1 CWG1CON2bits.G1ASDSC1 // bit 2
4583 #define G1ARSEN CWG1CON2bits.G1ARSEN // bit 6
4584 #define G1ASE CWG1CON2bits.G1ASE // bit 7
4586 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0
4587 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1
4588 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2
4589 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3
4590 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4
4591 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5
4593 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0
4594 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1
4595 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2
4596 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3
4597 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4
4598 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5
4600 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
4601 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
4602 #define DACOE DACCON0bits.DACOE // bit 5
4603 #define DACLPS DACCON0bits.DACLPS // bit 6
4604 #define DACEN DACCON0bits.DACEN // bit 7
4606 #define DACR0 DACCON1bits.DACR0 // bit 0
4607 #define DACR1 DACCON1bits.DACR1 // bit 1
4608 #define DACR2 DACCON1bits.DACR2 // bit 2
4609 #define DACR3 DACCON1bits.DACR3 // bit 3
4610 #define DACR4 DACCON1bits.DACR4 // bit 4
4612 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
4613 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
4614 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
4615 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
4616 #define TSRNG FVRCONbits.TSRNG // bit 4
4617 #define TSEN FVRCONbits.TSEN // bit 5
4618 #define FVRRDY FVRCONbits.FVRRDY // bit 6
4619 #define FVREN FVRCONbits.FVREN // bit 7
4621 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
4622 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
4623 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
4624 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
4625 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
4626 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
4628 #define IOCIF INTCONbits.IOCIF // bit 0
4629 #define INTF INTCONbits.INTF // bit 1
4630 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
4631 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
4632 #define IOCIE INTCONbits.IOCIE // bit 3
4633 #define INTE INTCONbits.INTE // bit 4
4634 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
4635 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
4636 #define PEIE INTCONbits.PEIE // bit 6
4637 #define GIE INTCONbits.GIE // bit 7
4639 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
4640 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
4641 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
4642 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
4643 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
4644 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
4646 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
4647 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
4648 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
4649 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
4650 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
4651 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
4653 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
4654 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
4655 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
4656 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
4657 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
4658 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
4660 #define LATA0 LATAbits.LATA0 // bit 0
4661 #define LATA1 LATAbits.LATA1 // bit 1
4662 #define LATA2 LATAbits.LATA2 // bit 2
4663 #define LATA4 LATAbits.LATA4 // bit 4
4664 #define LATA5 LATAbits.LATA5 // bit 5
4666 #define ODA0 ODCONAbits.ODA0 // bit 0
4667 #define ODA1 ODCONAbits.ODA1 // bit 1
4668 #define ODA2 ODCONAbits.ODA2 // bit 2
4669 #define ODA4 ODCONAbits.ODA4 // bit 4
4670 #define ODA5 ODCONAbits.ODA5 // bit 5
4672 #define PS0 OPTION_REGbits.PS0 // bit 0
4673 #define PS1 OPTION_REGbits.PS1 // bit 1
4674 #define PS2 OPTION_REGbits.PS2 // bit 2
4675 #define PSA OPTION_REGbits.PSA // bit 3
4676 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
4677 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
4678 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
4679 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
4680 #define INTEDG OPTION_REGbits.INTEDG // bit 6
4681 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
4683 #define SCS0 OSCCONbits.SCS0 // bit 0
4684 #define SCS1 OSCCONbits.SCS1 // bit 1
4685 #define IRCF0 OSCCONbits.IRCF0 // bit 3
4686 #define IRCF1 OSCCONbits.IRCF1 // bit 4
4687 #define IRCF2 OSCCONbits.IRCF2 // bit 5
4688 #define IRCF3 OSCCONbits.IRCF3 // bit 6
4689 #define SPLLEN OSCCONbits.SPLLEN // bit 7
4691 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
4692 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
4693 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
4694 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
4695 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
4696 #define OSTS OSCSTATbits.OSTS // bit 5
4697 #define PLLR OSCSTATbits.PLLR // bit 6
4699 #define TUN0 OSCTUNEbits.TUN0 // bit 0
4700 #define TUN1 OSCTUNEbits.TUN1 // bit 1
4701 #define TUN2 OSCTUNEbits.TUN2 // bit 2
4702 #define TUN3 OSCTUNEbits.TUN3 // bit 3
4703 #define TUN4 OSCTUNEbits.TUN4 // bit 4
4704 #define TUN5 OSCTUNEbits.TUN5 // bit 5
4706 #define NOT_BOR PCONbits.NOT_BOR // bit 0
4707 #define NOT_POR PCONbits.NOT_POR // bit 1
4708 #define NOT_RI PCONbits.NOT_RI // bit 2
4709 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
4710 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
4711 #define STKUNF PCONbits.STKUNF // bit 6
4712 #define STKOVF PCONbits.STKOVF // bit 7
4714 #define TMR1IE PIE1bits.TMR1IE // bit 0
4715 #define TMR2IE PIE1bits.TMR2IE // bit 1
4716 #define ADIE PIE1bits.ADIE // bit 6
4717 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
4719 #define C1IE PIE2bits.C1IE // bit 5
4721 #define PWM1IE PIE3bits.PWM1IE // bit 4
4722 #define PWM2IE PIE3bits.PWM2IE // bit 5
4723 #define PWM3IE PIE3bits.PWM3IE // bit 6
4725 #define TMR1IF PIR1bits.TMR1IF // bit 0
4726 #define TMR2IF PIR1bits.TMR2IF // bit 1
4727 #define ADIF PIR1bits.ADIF // bit 6
4728 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
4730 #define C1IF PIR2bits.C1IF // bit 5
4732 #define PWM1IF PIR3bits.PWM1IF // bit 4
4733 #define PWM2IF PIR3bits.PWM2IF // bit 5
4734 #define PWM3IF PIR3bits.PWM3IF // bit 6
4736 #define RD PMCON1bits.RD // bit 0
4737 #define WR PMCON1bits.WR // bit 1
4738 #define WREN PMCON1bits.WREN // bit 2
4739 #define WRERR PMCON1bits.WRERR // bit 3
4740 #define FREE PMCON1bits.FREE // bit 4
4741 #define LWLO PMCON1bits.LWLO // bit 5
4742 #define CFGS PMCON1bits.CFGS // bit 6
4744 #define RA0 PORTAbits.RA0 // bit 0
4745 #define RA1 PORTAbits.RA1 // bit 1
4746 #define RA2 PORTAbits.RA2 // bit 2
4747 #define RA3 PORTAbits.RA3 // bit 3
4748 #define RA4 PORTAbits.RA4 // bit 4
4749 #define RA5 PORTAbits.RA5 // bit 5
4751 #define PWM1MODE0 PWM1CONbits.PWM1MODE0 // bit 2, shadows bit in PWM1CONbits
4752 #define MODE0 PWM1CONbits.MODE0 // bit 2, shadows bit in PWM1CONbits
4753 #define PWM1MODE1 PWM1CONbits.PWM1MODE1 // bit 3, shadows bit in PWM1CONbits
4754 #define MODE1 PWM1CONbits.MODE1 // bit 3, shadows bit in PWM1CONbits
4755 #define POL PWM1CONbits.POL // bit 4, shadows bit in PWM1CONbits
4756 #define PWM1POL PWM1CONbits.PWM1POL // bit 4, shadows bit in PWM1CONbits
4757 #define OUT PWM1CONbits.OUT // bit 5, shadows bit in PWM1CONbits
4758 #define PWM1OUT PWM1CONbits.PWM1OUT // bit 5, shadows bit in PWM1CONbits
4759 #define OE PWM1CONbits.OE // bit 6, shadows bit in PWM1CONbits
4760 #define PWM1OE PWM1CONbits.PWM1OE // bit 6, shadows bit in PWM1CONbits
4761 #define EN PWM1CONbits.EN // bit 7, shadows bit in PWM1CONbits
4762 #define PWM1EN PWM1CONbits.PWM1EN // bit 7, shadows bit in PWM1CONbits
4764 #define PWM1DCH0 PWM1DCHbits.PWM1DCH0 // bit 0
4765 #define PWM1DCH1 PWM1DCHbits.PWM1DCH1 // bit 1
4766 #define PWM1DCH2 PWM1DCHbits.PWM1DCH2 // bit 2
4767 #define PWM1DCH3 PWM1DCHbits.PWM1DCH3 // bit 3
4768 #define PWM1DCH4 PWM1DCHbits.PWM1DCH4 // bit 4
4769 #define PWM1DCH5 PWM1DCHbits.PWM1DCH5 // bit 5
4770 #define PWM1DCH6 PWM1DCHbits.PWM1DCH6 // bit 6
4771 #define PWM1DCH7 PWM1DCHbits.PWM1DCH7 // bit 7
4773 #define PWM1DCL0 PWM1DCLbits.PWM1DCL0 // bit 0
4774 #define PWM1DCL1 PWM1DCLbits.PWM1DCL1 // bit 1
4775 #define PWM1DCL2 PWM1DCLbits.PWM1DCL2 // bit 2
4776 #define PWM1DCL3 PWM1DCLbits.PWM1DCL3 // bit 3
4777 #define PWM1DCL4 PWM1DCLbits.PWM1DCL4 // bit 4
4778 #define PWM1DCL5 PWM1DCLbits.PWM1DCL5 // bit 5
4779 #define PWM1DCL6 PWM1DCLbits.PWM1DCL6 // bit 6
4780 #define PWM1DCL7 PWM1DCLbits.PWM1DCL7 // bit 7
4782 #define PRIE PWM1INTCONbits.PRIE // bit 0, shadows bit in PWM1INTCONbits
4783 #define PWM1PRIE PWM1INTCONbits.PWM1PRIE // bit 0, shadows bit in PWM1INTCONbits
4784 #define DCIE PWM1INTCONbits.DCIE // bit 1, shadows bit in PWM1INTCONbits
4785 #define PWM1DCIE PWM1INTCONbits.PWM1DCIE // bit 1, shadows bit in PWM1INTCONbits
4786 #define PHIE PWM1INTCONbits.PHIE // bit 2, shadows bit in PWM1INTCONbits
4787 #define PWM1PHIE PWM1INTCONbits.PWM1PHIE // bit 2, shadows bit in PWM1INTCONbits
4788 #define OFIE PWM1INTCONbits.OFIE // bit 3, shadows bit in PWM1INTCONbits
4789 #define PWM1OFIE PWM1INTCONbits.PWM1OFIE // bit 3, shadows bit in PWM1INTCONbits
4791 #define PRIF PWM1INTFbits.PRIF // bit 0, shadows bit in PWM1INTFbits
4792 #define PWM1PRIF PWM1INTFbits.PWM1PRIF // bit 0, shadows bit in PWM1INTFbits
4793 #define DCIF PWM1INTFbits.DCIF // bit 1, shadows bit in PWM1INTFbits
4794 #define PWM1DCIF PWM1INTFbits.PWM1DCIF // bit 1, shadows bit in PWM1INTFbits
4795 #define PHIF PWM1INTFbits.PHIF // bit 2, shadows bit in PWM1INTFbits
4796 #define PWM1PHIF PWM1INTFbits.PWM1PHIF // bit 2, shadows bit in PWM1INTFbits
4797 #define OFIF PWM1INTFbits.OFIF // bit 3, shadows bit in PWM1INTFbits
4798 #define PWM1OFIF PWM1INTFbits.PWM1OFIF // bit 3, shadows bit in PWM1INTFbits
4800 #define PWM1LDS0 PWM1LDCONbits.PWM1LDS0 // bit 0, shadows bit in PWM1LDCONbits
4801 #define LDS0 PWM1LDCONbits.LDS0 // bit 0, shadows bit in PWM1LDCONbits
4802 #define PWM1LDS1 PWM1LDCONbits.PWM1LDS1 // bit 1, shadows bit in PWM1LDCONbits
4803 #define LDS1 PWM1LDCONbits.LDS1 // bit 1, shadows bit in PWM1LDCONbits
4804 #define LDT PWM1LDCONbits.LDT // bit 6, shadows bit in PWM1LDCONbits
4805 #define PWM1LDM PWM1LDCONbits.PWM1LDM // bit 6, shadows bit in PWM1LDCONbits
4806 #define LDA PWM1LDCONbits.LDA // bit 7, shadows bit in PWM1LDCONbits
4807 #define PWM1LD PWM1LDCONbits.PWM1LD // bit 7, shadows bit in PWM1LDCONbits
4809 #define PWM1OFS0 PWM1OFCONbits.PWM1OFS0 // bit 0, shadows bit in PWM1OFCONbits
4810 #define OFS0 PWM1OFCONbits.OFS0 // bit 0, shadows bit in PWM1OFCONbits
4811 #define PWM1OFS1 PWM1OFCONbits.PWM1OFS1 // bit 1, shadows bit in PWM1OFCONbits
4812 #define OFS1 PWM1OFCONbits.OFS1 // bit 1, shadows bit in PWM1OFCONbits
4813 #define OFO PWM1OFCONbits.OFO // bit 4, shadows bit in PWM1OFCONbits
4814 #define PWM1OFMC PWM1OFCONbits.PWM1OFMC // bit 4, shadows bit in PWM1OFCONbits
4815 #define PWM1OFM0 PWM1OFCONbits.PWM1OFM0 // bit 5, shadows bit in PWM1OFCONbits
4816 #define OFM0 PWM1OFCONbits.OFM0 // bit 5, shadows bit in PWM1OFCONbits
4817 #define PWM1OFM1 PWM1OFCONbits.PWM1OFM1 // bit 6, shadows bit in PWM1OFCONbits
4818 #define OFM1 PWM1OFCONbits.OFM1 // bit 6, shadows bit in PWM1OFCONbits
4820 #define PWM1OFH0 PWM1OFHbits.PWM1OFH0 // bit 0
4821 #define PWM1OFH1 PWM1OFHbits.PWM1OFH1 // bit 1
4822 #define PWM1OFH2 PWM1OFHbits.PWM1OFH2 // bit 2
4823 #define PWM1OFH3 PWM1OFHbits.PWM1OFH3 // bit 3
4824 #define PWM1OFH4 PWM1OFHbits.PWM1OFH4 // bit 4
4825 #define PWM1OFH5 PWM1OFHbits.PWM1OFH5 // bit 5
4826 #define PWM1OFH6 PWM1OFHbits.PWM1OFH6 // bit 6
4827 #define PWM1OFH7 PWM1OFHbits.PWM1OFH7 // bit 7
4829 #define PWM1OFL0 PWM1OFLbits.PWM1OFL0 // bit 0
4830 #define PWM1OFL1 PWM1OFLbits.PWM1OFL1 // bit 1
4831 #define PWM1OFL2 PWM1OFLbits.PWM1OFL2 // bit 2
4832 #define PWM1OFL3 PWM1OFLbits.PWM1OFL3 // bit 3
4833 #define PWM1OFL4 PWM1OFLbits.PWM1OFL4 // bit 4
4834 #define PWM1OFL5 PWM1OFLbits.PWM1OFL5 // bit 5
4835 #define PWM1OFL6 PWM1OFLbits.PWM1OFL6 // bit 6
4836 #define PWM1OFL7 PWM1OFLbits.PWM1OFL7 // bit 7
4838 #define PWM1PHH0 PWM1PHHbits.PWM1PHH0 // bit 0
4839 #define PWM1PHH1 PWM1PHHbits.PWM1PHH1 // bit 1
4840 #define PWM1PHH2 PWM1PHHbits.PWM1PHH2 // bit 2
4841 #define PWM1PHH3 PWM1PHHbits.PWM1PHH3 // bit 3
4842 #define PWM1PHH4 PWM1PHHbits.PWM1PHH4 // bit 4
4843 #define PWM1PHH5 PWM1PHHbits.PWM1PHH5 // bit 5
4844 #define PWM1PHH6 PWM1PHHbits.PWM1PHH6 // bit 6
4845 #define PWM1PHH7 PWM1PHHbits.PWM1PHH7 // bit 7
4847 #define PWM1PHL0 PWM1PHLbits.PWM1PHL0 // bit 0
4848 #define PWM1PHL1 PWM1PHLbits.PWM1PHL1 // bit 1
4849 #define PWM1PHL2 PWM1PHLbits.PWM1PHL2 // bit 2
4850 #define PWM1PHL3 PWM1PHLbits.PWM1PHL3 // bit 3
4851 #define PWM1PHL4 PWM1PHLbits.PWM1PHL4 // bit 4
4852 #define PWM1PHL5 PWM1PHLbits.PWM1PHL5 // bit 5
4853 #define PWM1PHL6 PWM1PHLbits.PWM1PHL6 // bit 6
4854 #define PWM1PHL7 PWM1PHLbits.PWM1PHL7 // bit 7
4856 #define PWM1PRH0 PWM1PRHbits.PWM1PRH0 // bit 0
4857 #define PWM1PRH1 PWM1PRHbits.PWM1PRH1 // bit 1
4858 #define PWM1PRH2 PWM1PRHbits.PWM1PRH2 // bit 2
4859 #define PWM1PRH3 PWM1PRHbits.PWM1PRH3 // bit 3
4860 #define PWM1PRH4 PWM1PRHbits.PWM1PRH4 // bit 4
4861 #define PWM1PRH5 PWM1PRHbits.PWM1PRH5 // bit 5
4862 #define PWM1PRH6 PWM1PRHbits.PWM1PRH6 // bit 6
4863 #define PWM1PRH7 PWM1PRHbits.PWM1PRH7 // bit 7
4865 #define PWM1PRL0 PWM1PRLbits.PWM1PRL0 // bit 0
4866 #define PWM1PRL1 PWM1PRLbits.PWM1PRL1 // bit 1
4867 #define PWM1PRL2 PWM1PRLbits.PWM1PRL2 // bit 2
4868 #define PWM1PRL3 PWM1PRLbits.PWM1PRL3 // bit 3
4869 #define PWM1PRL4 PWM1PRLbits.PWM1PRL4 // bit 4
4870 #define PWM1PRL5 PWM1PRLbits.PWM1PRL5 // bit 5
4871 #define PWM1PRL6 PWM1PRLbits.PWM1PRL6 // bit 6
4872 #define PWM1PRL7 PWM1PRLbits.PWM1PRL7 // bit 7
4874 #define PWM1TMRH0 PWM1TMRHbits.PWM1TMRH0 // bit 0
4875 #define PWM1TMRH1 PWM1TMRHbits.PWM1TMRH1 // bit 1
4876 #define PWM1TMRH2 PWM1TMRHbits.PWM1TMRH2 // bit 2
4877 #define PWM1TMRH3 PWM1TMRHbits.PWM1TMRH3 // bit 3
4878 #define PWM1TMRH4 PWM1TMRHbits.PWM1TMRH4 // bit 4
4879 #define PWM1TMRH5 PWM1TMRHbits.PWM1TMRH5 // bit 5
4880 #define PWM1TMRH6 PWM1TMRHbits.PWM1TMRH6 // bit 6
4881 #define PWM1TMRH7 PWM1TMRHbits.PWM1TMRH7 // bit 7
4883 #define PWM1TMRL0 PWM1TMRLbits.PWM1TMRL0 // bit 0
4884 #define PWM1TMRL1 PWM1TMRLbits.PWM1TMRL1 // bit 1
4885 #define PWM1TMRL2 PWM1TMRLbits.PWM1TMRL2 // bit 2
4886 #define PWM1TMRL3 PWM1TMRLbits.PWM1TMRL3 // bit 3
4887 #define PWM1TMRL4 PWM1TMRLbits.PWM1TMRL4 // bit 4
4888 #define PWM1TMRL5 PWM1TMRLbits.PWM1TMRL5 // bit 5
4889 #define PWM1TMRL6 PWM1TMRLbits.PWM1TMRL6 // bit 6
4890 #define PWM1TMRL7 PWM1TMRLbits.PWM1TMRL7 // bit 7
4892 #define PWM2DCH0 PWM2DCHbits.PWM2DCH0 // bit 0
4893 #define PWM2DCH1 PWM2DCHbits.PWM2DCH1 // bit 1
4894 #define PWM2DCH2 PWM2DCHbits.PWM2DCH2 // bit 2
4895 #define PWM2DCH3 PWM2DCHbits.PWM2DCH3 // bit 3
4896 #define PWM2DCH4 PWM2DCHbits.PWM2DCH4 // bit 4
4897 #define PWM2DCH5 PWM2DCHbits.PWM2DCH5 // bit 5
4898 #define PWM2DCH6 PWM2DCHbits.PWM2DCH6 // bit 6
4899 #define PWM2DCH7 PWM2DCHbits.PWM2DCH7 // bit 7
4901 #define PWM2DCL0 PWM2DCLbits.PWM2DCL0 // bit 0
4902 #define PWM2DCL1 PWM2DCLbits.PWM2DCL1 // bit 1
4903 #define PWM2DCL2 PWM2DCLbits.PWM2DCL2 // bit 2
4904 #define PWM2DCL3 PWM2DCLbits.PWM2DCL3 // bit 3
4905 #define PWM2DCL4 PWM2DCLbits.PWM2DCL4 // bit 4
4906 #define PWM2DCL5 PWM2DCLbits.PWM2DCL5 // bit 5
4907 #define PWM2DCL6 PWM2DCLbits.PWM2DCL6 // bit 6
4908 #define PWM2DCL7 PWM2DCLbits.PWM2DCL7 // bit 7
4910 #define PWM2OFH0 PWM2OFHbits.PWM2OFH0 // bit 0
4911 #define PWM2OFH1 PWM2OFHbits.PWM2OFH1 // bit 1
4912 #define PWM2OFH2 PWM2OFHbits.PWM2OFH2 // bit 2
4913 #define PWM2OFH3 PWM2OFHbits.PWM2OFH3 // bit 3
4914 #define PWM2OFH4 PWM2OFHbits.PWM2OFH4 // bit 4
4915 #define PWM2OFH5 PWM2OFHbits.PWM2OFH5 // bit 5
4916 #define PWM2OFH6 PWM2OFHbits.PWM2OFH6 // bit 6
4917 #define PWM2OFH7 PWM2OFHbits.PWM2OFH7 // bit 7
4919 #define PWM2OFL0 PWM2OFLbits.PWM2OFL0 // bit 0
4920 #define PWM2OFL1 PWM2OFLbits.PWM2OFL1 // bit 1
4921 #define PWM2OFL2 PWM2OFLbits.PWM2OFL2 // bit 2
4922 #define PWM2OFL3 PWM2OFLbits.PWM2OFL3 // bit 3
4923 #define PWM2OFL4 PWM2OFLbits.PWM2OFL4 // bit 4
4924 #define PWM2OFL5 PWM2OFLbits.PWM2OFL5 // bit 5
4925 #define PWM2OFL6 PWM2OFLbits.PWM2OFL6 // bit 6
4926 #define PWM2OFL7 PWM2OFLbits.PWM2OFL7 // bit 7
4928 #define PWM2PHH0 PWM2PHHbits.PWM2PHH0 // bit 0
4929 #define PWM2PHH1 PWM2PHHbits.PWM2PHH1 // bit 1
4930 #define PWM2PHH2 PWM2PHHbits.PWM2PHH2 // bit 2
4931 #define PWM2PHH3 PWM2PHHbits.PWM2PHH3 // bit 3
4932 #define PWM2PHH4 PWM2PHHbits.PWM2PHH4 // bit 4
4933 #define PWM2PHH5 PWM2PHHbits.PWM2PHH5 // bit 5
4934 #define PWM2PHH6 PWM2PHHbits.PWM2PHH6 // bit 6
4935 #define PWM2PHH7 PWM2PHHbits.PWM2PHH7 // bit 7
4937 #define PWM2PHL0 PWM2PHLbits.PWM2PHL0 // bit 0
4938 #define PWM2PHL1 PWM2PHLbits.PWM2PHL1 // bit 1
4939 #define PWM2PHL2 PWM2PHLbits.PWM2PHL2 // bit 2
4940 #define PWM2PHL3 PWM2PHLbits.PWM2PHL3 // bit 3
4941 #define PWM2PHL4 PWM2PHLbits.PWM2PHL4 // bit 4
4942 #define PWM2PHL5 PWM2PHLbits.PWM2PHL5 // bit 5
4943 #define PWM2PHL6 PWM2PHLbits.PWM2PHL6 // bit 6
4944 #define PWM2PHL7 PWM2PHLbits.PWM2PHL7 // bit 7
4946 #define PWM2PRH0 PWM2PRHbits.PWM2PRH0 // bit 0
4947 #define PWM2PRH1 PWM2PRHbits.PWM2PRH1 // bit 1
4948 #define PWM2PRH2 PWM2PRHbits.PWM2PRH2 // bit 2
4949 #define PWM2PRH3 PWM2PRHbits.PWM2PRH3 // bit 3
4950 #define PWM2PRH4 PWM2PRHbits.PWM2PRH4 // bit 4
4951 #define PWM2PRH5 PWM2PRHbits.PWM2PRH5 // bit 5
4952 #define PWM2PRH6 PWM2PRHbits.PWM2PRH6 // bit 6
4953 #define PWM2PRH7 PWM2PRHbits.PWM2PRH7 // bit 7
4955 #define PWM2PRL0 PWM2PRLbits.PWM2PRL0 // bit 0
4956 #define PWM2PRL1 PWM2PRLbits.PWM2PRL1 // bit 1
4957 #define PWM2PRL2 PWM2PRLbits.PWM2PRL2 // bit 2
4958 #define PWM2PRL3 PWM2PRLbits.PWM2PRL3 // bit 3
4959 #define PWM2PRL4 PWM2PRLbits.PWM2PRL4 // bit 4
4960 #define PWM2PRL5 PWM2PRLbits.PWM2PRL5 // bit 5
4961 #define PWM2PRL6 PWM2PRLbits.PWM2PRL6 // bit 6
4962 #define PWM2PRL7 PWM2PRLbits.PWM2PRL7 // bit 7
4964 #define PWM2TMRH0 PWM2TMRHbits.PWM2TMRH0 // bit 0
4965 #define PWM2TMRH1 PWM2TMRHbits.PWM2TMRH1 // bit 1
4966 #define PWM2TMRH2 PWM2TMRHbits.PWM2TMRH2 // bit 2
4967 #define PWM2TMRH3 PWM2TMRHbits.PWM2TMRH3 // bit 3
4968 #define PWM2TMRH4 PWM2TMRHbits.PWM2TMRH4 // bit 4
4969 #define PWM2TMRH5 PWM2TMRHbits.PWM2TMRH5 // bit 5
4970 #define PWM2TMRH6 PWM2TMRHbits.PWM2TMRH6 // bit 6
4971 #define PWM2TMRH7 PWM2TMRHbits.PWM2TMRH7 // bit 7
4973 #define PWM2TMRL0 PWM2TMRLbits.PWM2TMRL0 // bit 0
4974 #define PWM2TMRL1 PWM2TMRLbits.PWM2TMRL1 // bit 1
4975 #define PWM2TMRL2 PWM2TMRLbits.PWM2TMRL2 // bit 2
4976 #define PWM2TMRL3 PWM2TMRLbits.PWM2TMRL3 // bit 3
4977 #define PWM2TMRL4 PWM2TMRLbits.PWM2TMRL4 // bit 4
4978 #define PWM2TMRL5 PWM2TMRLbits.PWM2TMRL5 // bit 5
4979 #define PWM2TMRL6 PWM2TMRLbits.PWM2TMRL6 // bit 6
4980 #define PWM2TMRL7 PWM2TMRLbits.PWM2TMRL7 // bit 7
4982 #define PWM3DCH0 PWM3DCHbits.PWM3DCH0 // bit 0
4983 #define PWM3DCH1 PWM3DCHbits.PWM3DCH1 // bit 1
4984 #define PWM3DCH2 PWM3DCHbits.PWM3DCH2 // bit 2
4985 #define PWM3DCH3 PWM3DCHbits.PWM3DCH3 // bit 3
4986 #define PWM3DCH4 PWM3DCHbits.PWM3DCH4 // bit 4
4987 #define PWM3DCH5 PWM3DCHbits.PWM3DCH5 // bit 5
4988 #define PWM3DCH6 PWM3DCHbits.PWM3DCH6 // bit 6
4989 #define PWM3DCH7 PWM3DCHbits.PWM3DCH7 // bit 7
4991 #define PWM3DCL0 PWM3DCLbits.PWM3DCL0 // bit 0
4992 #define PWM3DCL1 PWM3DCLbits.PWM3DCL1 // bit 1
4993 #define PWM3DCL2 PWM3DCLbits.PWM3DCL2 // bit 2
4994 #define PWM3DCL3 PWM3DCLbits.PWM3DCL3 // bit 3
4995 #define PWM3DCL4 PWM3DCLbits.PWM3DCL4 // bit 4
4996 #define PWM3DCL5 PWM3DCLbits.PWM3DCL5 // bit 5
4997 #define PWM3DCL6 PWM3DCLbits.PWM3DCL6 // bit 6
4998 #define PWM3DCL7 PWM3DCLbits.PWM3DCL7 // bit 7
5000 #define PWM3OFH0 PWM3OFHbits.PWM3OFH0 // bit 0
5001 #define PWM3OFH1 PWM3OFHbits.PWM3OFH1 // bit 1
5002 #define PWM3OFH2 PWM3OFHbits.PWM3OFH2 // bit 2
5003 #define PWM3OFH3 PWM3OFHbits.PWM3OFH3 // bit 3
5004 #define PWM3OFH4 PWM3OFHbits.PWM3OFH4 // bit 4
5005 #define PWM3OFH5 PWM3OFHbits.PWM3OFH5 // bit 5
5006 #define PWM3OFH6 PWM3OFHbits.PWM3OFH6 // bit 6
5007 #define PWM3OFH7 PWM3OFHbits.PWM3OFH7 // bit 7
5009 #define PWM3OFL0 PWM3OFLbits.PWM3OFL0 // bit 0
5010 #define PWM3OFL1 PWM3OFLbits.PWM3OFL1 // bit 1
5011 #define PWM3OFL2 PWM3OFLbits.PWM3OFL2 // bit 2
5012 #define PWM3OFL3 PWM3OFLbits.PWM3OFL3 // bit 3
5013 #define PWM3OFL4 PWM3OFLbits.PWM3OFL4 // bit 4
5014 #define PWM3OFL5 PWM3OFLbits.PWM3OFL5 // bit 5
5015 #define PWM3OFL6 PWM3OFLbits.PWM3OFL6 // bit 6
5016 #define PWM3OFL7 PWM3OFLbits.PWM3OFL7 // bit 7
5018 #define PWM3PHH0 PWM3PHHbits.PWM3PHH0 // bit 0
5019 #define PWM3PHH1 PWM3PHHbits.PWM3PHH1 // bit 1
5020 #define PWM3PHH2 PWM3PHHbits.PWM3PHH2 // bit 2
5021 #define PWM3PHH3 PWM3PHHbits.PWM3PHH3 // bit 3
5022 #define PWM3PHH4 PWM3PHHbits.PWM3PHH4 // bit 4
5023 #define PWM3PHH5 PWM3PHHbits.PWM3PHH5 // bit 5
5024 #define PWM3PHH6 PWM3PHHbits.PWM3PHH6 // bit 6
5025 #define PWM3PHH7 PWM3PHHbits.PWM3PHH7 // bit 7
5027 #define PWM3PHL0 PWM3PHLbits.PWM3PHL0 // bit 0
5028 #define PWM3PHL1 PWM3PHLbits.PWM3PHL1 // bit 1
5029 #define PWM3PHL2 PWM3PHLbits.PWM3PHL2 // bit 2
5030 #define PWM3PHL3 PWM3PHLbits.PWM3PHL3 // bit 3
5031 #define PWM3PHL4 PWM3PHLbits.PWM3PHL4 // bit 4
5032 #define PWM3PHL5 PWM3PHLbits.PWM3PHL5 // bit 5
5033 #define PWM3PHL6 PWM3PHLbits.PWM3PHL6 // bit 6
5034 #define PWM3PHL7 PWM3PHLbits.PWM3PHL7 // bit 7
5036 #define PWM3PRH0 PWM3PRHbits.PWM3PRH0 // bit 0
5037 #define PWM3PRH1 PWM3PRHbits.PWM3PRH1 // bit 1
5038 #define PWM3PRH2 PWM3PRHbits.PWM3PRH2 // bit 2
5039 #define PWM3PRH3 PWM3PRHbits.PWM3PRH3 // bit 3
5040 #define PWM3PRH4 PWM3PRHbits.PWM3PRH4 // bit 4
5041 #define PWM3PRH5 PWM3PRHbits.PWM3PRH5 // bit 5
5042 #define PWM3PRH6 PWM3PRHbits.PWM3PRH6 // bit 6
5043 #define PWM3PRH7 PWM3PRHbits.PWM3PRH7 // bit 7
5045 #define PWM3PRL0 PWM3PRLbits.PWM3PRL0 // bit 0
5046 #define PWM3PRL1 PWM3PRLbits.PWM3PRL1 // bit 1
5047 #define PWM3PRL2 PWM3PRLbits.PWM3PRL2 // bit 2
5048 #define PWM3PRL3 PWM3PRLbits.PWM3PRL3 // bit 3
5049 #define PWM3PRL4 PWM3PRLbits.PWM3PRL4 // bit 4
5050 #define PWM3PRL5 PWM3PRLbits.PWM3PRL5 // bit 5
5051 #define PWM3PRL6 PWM3PRLbits.PWM3PRL6 // bit 6
5052 #define PWM3PRL7 PWM3PRLbits.PWM3PRL7 // bit 7
5054 #define PWM3TMRH0 PWM3TMRHbits.PWM3TMRH0 // bit 0
5055 #define PWM3TMRH1 PWM3TMRHbits.PWM3TMRH1 // bit 1
5056 #define PWM3TMRH2 PWM3TMRHbits.PWM3TMRH2 // bit 2
5057 #define PWM3TMRH3 PWM3TMRHbits.PWM3TMRH3 // bit 3
5058 #define PWM3TMRH4 PWM3TMRHbits.PWM3TMRH4 // bit 4
5059 #define PWM3TMRH5 PWM3TMRHbits.PWM3TMRH5 // bit 5
5060 #define PWM3TMRH6 PWM3TMRHbits.PWM3TMRH6 // bit 6
5061 #define PWM3TMRH7 PWM3TMRHbits.PWM3TMRH7 // bit 7
5063 #define PWM3TMRL0 PWM3TMRLbits.PWM3TMRL0 // bit 0
5064 #define PWM3TMRL1 PWM3TMRLbits.PWM3TMRL1 // bit 1
5065 #define PWM3TMRL2 PWM3TMRLbits.PWM3TMRL2 // bit 2
5066 #define PWM3TMRL3 PWM3TMRLbits.PWM3TMRL3 // bit 3
5067 #define PWM3TMRL4 PWM3TMRLbits.PWM3TMRL4 // bit 4
5068 #define PWM3TMRL5 PWM3TMRLbits.PWM3TMRL5 // bit 5
5069 #define PWM3TMRL6 PWM3TMRLbits.PWM3TMRL6 // bit 6
5070 #define PWM3TMRL7 PWM3TMRLbits.PWM3TMRL7 // bit 7
5072 #define PWM1EN_A PWMENbits.PWM1EN_A // bit 0, shadows bit in PWMENbits
5073 #define MPWM1EN PWMENbits.MPWM1EN // bit 0, shadows bit in PWMENbits
5074 #define PWM2EN_A PWMENbits.PWM2EN_A // bit 1, shadows bit in PWMENbits
5075 #define MPWM2EN PWMENbits.MPWM2EN // bit 1, shadows bit in PWMENbits
5076 #define PWM3EN_A PWMENbits.PWM3EN_A // bit 2, shadows bit in PWMENbits
5077 #define MPWM3EN PWMENbits.MPWM3EN // bit 2, shadows bit in PWMENbits
5079 #define PWM1LDA_A PWMLDbits.PWM1LDA_A // bit 0, shadows bit in PWMLDbits
5080 #define MPWM1LD PWMLDbits.MPWM1LD // bit 0, shadows bit in PWMLDbits
5081 #define PWM2LDA_A PWMLDbits.PWM2LDA_A // bit 1, shadows bit in PWMLDbits
5082 #define MPWM2LD PWMLDbits.MPWM2LD // bit 1, shadows bit in PWMLDbits
5083 #define PWM3LDA_A PWMLDbits.PWM3LDA_A // bit 2, shadows bit in PWMLDbits
5084 #define MPWM3LD PWMLDbits.MPWM3LD // bit 2, shadows bit in PWMLDbits
5086 #define PWM1OUT_A PWMOUTbits.PWM1OUT_A // bit 0, shadows bit in PWMOUTbits
5087 #define MPWM1OUT PWMOUTbits.MPWM1OUT // bit 0, shadows bit in PWMOUTbits
5088 #define PWM2OUT_A PWMOUTbits.PWM2OUT_A // bit 1, shadows bit in PWMOUTbits
5089 #define MPWM2OUT PWMOUTbits.MPWM2OUT // bit 1, shadows bit in PWMOUTbits
5090 #define PWM3OUT_A PWMOUTbits.PWM3OUT_A // bit 2, shadows bit in PWMOUTbits
5091 #define MPWM3OUT PWMOUTbits.MPWM3OUT // bit 2, shadows bit in PWMOUTbits
5093 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
5094 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
5095 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
5096 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
5097 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
5099 #define C STATUSbits.C // bit 0
5100 #define DC STATUSbits.DC // bit 1
5101 #define Z STATUSbits.Z // bit 2
5102 #define NOT_PD STATUSbits.NOT_PD // bit 3
5103 #define NOT_TO STATUSbits.NOT_TO // bit 4
5105 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
5106 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
5107 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
5109 #define TMR1ON T1CONbits.TMR1ON // bit 0
5110 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
5111 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
5112 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
5113 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
5114 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
5116 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
5117 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
5118 #define T1GVAL T1GCONbits.T1GVAL // bit 2
5119 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
5120 #define T1GGO T1GCONbits.T1GGO // bit 3, shadows bit in T1GCONbits
5121 #define T1GSPM T1GCONbits.T1GSPM // bit 4
5122 #define T1GTM T1GCONbits.T1GTM // bit 5
5123 #define T1GPOL T1GCONbits.T1GPOL // bit 6
5124 #define TMR1GE T1GCONbits.TMR1GE // bit 7
5126 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
5127 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
5128 #define TMR2ON T2CONbits.TMR2ON // bit 2
5129 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
5130 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
5131 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
5132 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
5134 #define TRISA0 TRISAbits.TRISA0 // bit 0
5135 #define TRISA1 TRISAbits.TRISA1 // bit 1
5136 #define TRISA2 TRISAbits.TRISA2 // bit 2
5137 #define TRISA3 TRISAbits.TRISA3 // bit 3
5138 #define TRISA4 TRISAbits.TRISA4 // bit 4
5139 #define TRISA5 TRISAbits.TRISA5 // bit 5
5141 #define VREGPM VREGCONbits.VREGPM // bit 1
5143 #define SWDTEN WDTCONbits.SWDTEN // bit 0
5144 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
5145 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
5146 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
5147 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
5148 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
5150 #define WPUA0 WPUAbits.WPUA0 // bit 0
5151 #define WPUA1 WPUAbits.WPUA1 // bit 1
5152 #define WPUA2 WPUAbits.WPUA2 // bit 2
5153 #define WPUA3 WPUAbits.WPUA3 // bit 3
5154 #define WPUA4 WPUAbits.WPUA4 // bit 4
5155 #define WPUA5 WPUAbits.WPUA5 // bit 5
5157 #endif // #ifndef NO_BIT_DEFINES
5159 #endif // #ifndef __PIC12F1571_H__