2 * This declarations of the PIC12F1572 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 __PIC12F1572_H__
26 #define __PIC12F1572_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 RCREG_ADDR 0x0199
100 #define TXREG_ADDR 0x019A
101 #define SPBRG_ADDR 0x019B
102 #define SPBRGL_ADDR 0x019B
103 #define SPBRGH_ADDR 0x019C
104 #define RCSTA_ADDR 0x019D
105 #define TXSTA_ADDR 0x019E
106 #define BAUDCON_ADDR 0x019F
107 #define WPUA_ADDR 0x020C
108 #define ODCONA_ADDR 0x028C
109 #define SLRCONA_ADDR 0x030C
110 #define INLVLA_ADDR 0x038C
111 #define IOCAP_ADDR 0x0391
112 #define IOCAN_ADDR 0x0392
113 #define IOCAF_ADDR 0x0393
114 #define CWG1DBR_ADDR 0x0691
115 #define CWG1DBF_ADDR 0x0692
116 #define CWG1CON0_ADDR 0x0693
117 #define CWG1CON1_ADDR 0x0694
118 #define CWG1CON2_ADDR 0x0695
119 #define PWMEN_ADDR 0x0D8E
120 #define PWMLD_ADDR 0x0D8F
121 #define PWMOUT_ADDR 0x0D90
122 #define PWM1PH_ADDR 0x0D91
123 #define PWM1PHL_ADDR 0x0D91
124 #define PWM1PHH_ADDR 0x0D92
125 #define PWM1DC_ADDR 0x0D93
126 #define PWM1DCL_ADDR 0x0D93
127 #define PWM1DCH_ADDR 0x0D94
128 #define PWM1PR_ADDR 0x0D95
129 #define PWM1PRL_ADDR 0x0D95
130 #define PWM1PRH_ADDR 0x0D96
131 #define PWM1OF_ADDR 0x0D97
132 #define PWM1OFL_ADDR 0x0D97
133 #define PWM1OFH_ADDR 0x0D98
134 #define PWM1TMR_ADDR 0x0D99
135 #define PWM1TMRL_ADDR 0x0D99
136 #define PWM1TMRH_ADDR 0x0D9A
137 #define PWM1CON_ADDR 0x0D9B
138 #define PWM1INTCON_ADDR 0x0D9C
139 #define PWM1INTE_ADDR 0x0D9C
140 #define PWM1INTF_ADDR 0x0D9D
141 #define PWM1INTFLG_ADDR 0x0D9D
142 #define PWM1CLKCON_ADDR 0x0D9E
143 #define PWM1LDCON_ADDR 0x0D9F
144 #define PWM1OFCON_ADDR 0x0DA0
145 #define PWM2PH_ADDR 0x0DA1
146 #define PWM2PHL_ADDR 0x0DA1
147 #define PWM2PHH_ADDR 0x0DA2
148 #define PWM2DC_ADDR 0x0DA3
149 #define PWM2DCL_ADDR 0x0DA3
150 #define PWM2DCH_ADDR 0x0DA4
151 #define PWM2PR_ADDR 0x0DA5
152 #define PWM2PRL_ADDR 0x0DA5
153 #define PWM2PRH_ADDR 0x0DA6
154 #define PWM2OF_ADDR 0x0DA7
155 #define PWM2OFL_ADDR 0x0DA7
156 #define PWM2OFH_ADDR 0x0DA8
157 #define PWM2TMR_ADDR 0x0DA9
158 #define PWM2TMRL_ADDR 0x0DA9
159 #define PWM2TMRH_ADDR 0x0DAA
160 #define PWM2CON_ADDR 0x0DAB
161 #define PWM2INTCON_ADDR 0x0DAC
162 #define PWM2INTE_ADDR 0x0DAC
163 #define PWM2INTF_ADDR 0x0DAD
164 #define PWM2INTFLG_ADDR 0x0DAD
165 #define PWM2CLKCON_ADDR 0x0DAE
166 #define PWM2LDCON_ADDR 0x0DAF
167 #define PWM2OFCON_ADDR 0x0DB0
168 #define PWM3PH_ADDR 0x0DB1
169 #define PWM3PHL_ADDR 0x0DB1
170 #define PWM3PHH_ADDR 0x0DB2
171 #define PWM3DC_ADDR 0x0DB3
172 #define PWM3DCL_ADDR 0x0DB3
173 #define PWM3DCH_ADDR 0x0DB4
174 #define PWM3PR_ADDR 0x0DB5
175 #define PWM3PRL_ADDR 0x0DB5
176 #define PWM3PRH_ADDR 0x0DB6
177 #define PWM3OF_ADDR 0x0DB7
178 #define PWM3OFL_ADDR 0x0DB7
179 #define PWM3OFH_ADDR 0x0DB8
180 #define PWM3TMR_ADDR 0x0DB9
181 #define PWM3TMRL_ADDR 0x0DB9
182 #define PWM3TMRH_ADDR 0x0DBA
183 #define PWM3CON_ADDR 0x0DBB
184 #define PWM3INTCON_ADDR 0x0DBC
185 #define PWM3INTE_ADDR 0x0DBC
186 #define PWM3INTF_ADDR 0x0DBD
187 #define PWM3INTFLG_ADDR 0x0DBD
188 #define PWM3CLKCON_ADDR 0x0DBE
189 #define PWM3LDCON_ADDR 0x0DBF
190 #define PWM3OFCON_ADDR 0x0DC0
191 #define STATUS_SHAD_ADDR 0x0FE4
192 #define WREG_SHAD_ADDR 0x0FE5
193 #define BSR_SHAD_ADDR 0x0FE6
194 #define PCLATH_SHAD_ADDR 0x0FE7
195 #define FSR0L_SHAD_ADDR 0x0FE8
196 #define FSR0_SHAD_ADDR 0x0FE8
197 #define FSR0H_SHAD_ADDR 0x0FE9
198 #define FSR1L_SHAD_ADDR 0x0FEA
199 #define FSR1_SHAD_ADDR 0x0FEA
200 #define FSR1H_SHAD_ADDR 0x0FEB
201 #define STKPTR_ADDR 0x0FED
202 #define TOS_ADDR 0x0FEE
203 #define TOSL_ADDR 0x0FEE
204 #define TOSH_ADDR 0x0FEF
206 #endif // #ifndef NO_ADDR_DEFINES
208 //==============================================================================
210 // Register Definitions
212 //==============================================================================
214 extern __at(0x0000) __sfr INDF0
;
215 extern __at(0x0001) __sfr INDF1
;
216 extern __at(0x0002) __sfr PCL
;
218 //==============================================================================
221 extern __at(0x0003) __sfr STATUS
;
235 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
243 //==============================================================================
245 extern __at(0x0004) __sfr FSR0
;
246 extern __at(0x0004) __sfr FSR0L
;
247 extern __at(0x0005) __sfr FSR0H
;
248 extern __at(0x0006) __sfr FSR1
;
249 extern __at(0x0006) __sfr FSR1L
;
250 extern __at(0x0007) __sfr FSR1H
;
252 //==============================================================================
255 extern __at(0x0008) __sfr BSR
;
278 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
286 //==============================================================================
288 extern __at(0x0009) __sfr WREG
;
289 extern __at(0x000A) __sfr PCLATH
;
291 //==============================================================================
294 extern __at(0x000B) __sfr INTCON
;
323 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
336 //==============================================================================
339 //==============================================================================
342 extern __at(0x000C) __sfr PORTA
;
365 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
374 //==============================================================================
377 //==============================================================================
380 extern __at(0x0011) __sfr PIR1
;
391 unsigned TMR1GIF
: 1;
394 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
401 #define _TMR1GIF 0x80
403 //==============================================================================
406 //==============================================================================
409 extern __at(0x0012) __sfr PIR2
;
423 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
427 //==============================================================================
430 //==============================================================================
433 extern __at(0x0013) __sfr PIR3
;
447 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
453 //==============================================================================
455 extern __at(0x0015) __sfr TMR0
;
456 extern __at(0x0016) __sfr TMR1
;
457 extern __at(0x0016) __sfr TMR1L
;
458 extern __at(0x0017) __sfr TMR1H
;
460 //==============================================================================
463 extern __at(0x0018) __sfr T1CON
;
471 unsigned NOT_T1SYNC
: 1;
473 unsigned T1CKPS0
: 1;
474 unsigned T1CKPS1
: 1;
475 unsigned TMR1CS0
: 1;
476 unsigned TMR1CS1
: 1;
493 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
496 #define _NOT_T1SYNC 0x04
497 #define _T1CKPS0 0x10
498 #define _T1CKPS1 0x20
499 #define _TMR1CS0 0x40
500 #define _TMR1CS1 0x80
502 //==============================================================================
505 //==============================================================================
508 extern __at(0x0019) __sfr T1GCON
;
517 unsigned T1GGO_NOT_DONE
: 1;
543 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
548 #define _T1GGO_NOT_DONE 0x08
555 //==============================================================================
557 extern __at(0x001A) __sfr TMR2
;
558 extern __at(0x001B) __sfr PR2
;
560 //==============================================================================
563 extern __at(0x001C) __sfr T2CON
;
569 unsigned T2CKPS0
: 1;
570 unsigned T2CKPS1
: 1;
572 unsigned T2OUTPS0
: 1;
573 unsigned T2OUTPS1
: 1;
574 unsigned T2OUTPS2
: 1;
575 unsigned T2OUTPS3
: 1;
588 unsigned T2OUTPS
: 4;
593 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
595 #define _T2CKPS0 0x01
596 #define _T2CKPS1 0x02
598 #define _T2OUTPS0 0x08
599 #define _T2OUTPS1 0x10
600 #define _T2OUTPS2 0x20
601 #define _T2OUTPS3 0x40
603 //==============================================================================
606 //==============================================================================
609 extern __at(0x008C) __sfr TRISA
;
632 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
641 //==============================================================================
644 //==============================================================================
647 extern __at(0x0091) __sfr PIE1
;
658 unsigned TMR1GIE
: 1;
661 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
668 #define _TMR1GIE 0x80
670 //==============================================================================
673 //==============================================================================
676 extern __at(0x0092) __sfr PIE2
;
690 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
694 //==============================================================================
697 //==============================================================================
700 extern __at(0x0093) __sfr PIE3
;
714 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
720 //==============================================================================
723 //==============================================================================
726 extern __at(0x0095) __sfr OPTION_REG
;
739 unsigned NOT_WPUEN
: 1;
759 } __OPTION_REGbits_t
;
761 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
772 #define _NOT_WPUEN 0x80
774 //==============================================================================
777 //==============================================================================
780 extern __at(0x0096) __sfr PCON
;
784 unsigned NOT_BOR
: 1;
785 unsigned NOT_POR
: 1;
787 unsigned NOT_RMCLR
: 1;
788 unsigned NOT_RWDT
: 1;
794 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
796 #define _NOT_BOR 0x01
797 #define _NOT_POR 0x02
799 #define _NOT_RMCLR 0x08
800 #define _NOT_RWDT 0x10
804 //==============================================================================
807 //==============================================================================
810 extern __at(0x0097) __sfr WDTCON
;
834 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
843 //==============================================================================
846 //==============================================================================
849 extern __at(0x0098) __sfr OSCTUNE
;
872 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
881 //==============================================================================
884 //==============================================================================
887 extern __at(0x0099) __sfr OSCCON
;
917 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
927 //==============================================================================
930 //==============================================================================
933 extern __at(0x009A) __sfr OSCSTAT
;
947 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
957 //==============================================================================
959 extern __at(0x009B) __sfr ADRES
;
960 extern __at(0x009B) __sfr ADRESL
;
961 extern __at(0x009C) __sfr ADRESH
;
963 //==============================================================================
966 extern __at(0x009D) __sfr ADCON0
;
973 unsigned GO_NOT_DONE
: 1;
1009 unsigned NOT_DONE
: 1;
1026 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1029 #define _GO_NOT_DONE 0x02
1032 #define _NOT_DONE 0x02
1039 //==============================================================================
1042 //==============================================================================
1045 extern __at(0x009E) __sfr ADCON1
;
1051 unsigned ADPREF0
: 1;
1052 unsigned ADPREF1
: 1;
1063 unsigned ADPREF
: 2;
1075 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1077 #define _ADPREF0 0x01
1078 #define _ADPREF1 0x02
1084 //==============================================================================
1087 //==============================================================================
1090 extern __at(0x009F) __sfr ADCON2
;
1100 unsigned TRIGSEL0
: 1;
1101 unsigned TRIGSEL1
: 1;
1102 unsigned TRIGSEL2
: 1;
1103 unsigned TRIGSEL3
: 1;
1109 unsigned TRIGSEL
: 4;
1113 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1115 #define _TRIGSEL0 0x10
1116 #define _TRIGSEL1 0x20
1117 #define _TRIGSEL2 0x40
1118 #define _TRIGSEL3 0x80
1120 //==============================================================================
1123 //==============================================================================
1126 extern __at(0x010C) __sfr LATA
;
1140 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1148 //==============================================================================
1151 //==============================================================================
1154 extern __at(0x0111) __sfr CM1CON0
;
1158 unsigned C1SYNC
: 1;
1168 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1170 #define _C1SYNC 0x01
1178 //==============================================================================
1181 //==============================================================================
1184 extern __at(0x0112) __sfr CM1CON1
;
1190 unsigned C1NCH0
: 1;
1191 unsigned C1NCH1
: 1;
1192 unsigned C1NCH2
: 1;
1194 unsigned C1PCH0
: 1;
1195 unsigned C1PCH1
: 1;
1196 unsigned C1INTN
: 1;
1197 unsigned C1INTP
: 1;
1214 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1216 #define _C1NCH0 0x01
1217 #define _C1NCH1 0x02
1218 #define _C1NCH2 0x04
1219 #define _C1PCH0 0x10
1220 #define _C1PCH1 0x20
1221 #define _C1INTN 0x40
1222 #define _C1INTP 0x80
1224 //==============================================================================
1227 //==============================================================================
1230 extern __at(0x0115) __sfr CMOUT
;
1234 unsigned MC1OUT
: 1;
1244 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1246 #define _MC1OUT 0x01
1248 //==============================================================================
1251 //==============================================================================
1254 extern __at(0x0116) __sfr BORCON
;
1258 unsigned BORRDY
: 1;
1265 unsigned SBOREN
: 1;
1268 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1270 #define _BORRDY 0x01
1272 #define _SBOREN 0x80
1274 //==============================================================================
1277 //==============================================================================
1280 extern __at(0x0117) __sfr FVRCON
;
1286 unsigned ADFVR0
: 1;
1287 unsigned ADFVR1
: 1;
1288 unsigned CDAFVR0
: 1;
1289 unsigned CDAFVR1
: 1;
1292 unsigned FVRRDY
: 1;
1305 unsigned CDAFVR
: 2;
1310 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1312 #define _ADFVR0 0x01
1313 #define _ADFVR1 0x02
1314 #define _CDAFVR0 0x04
1315 #define _CDAFVR1 0x08
1318 #define _FVRRDY 0x40
1321 //==============================================================================
1324 //==============================================================================
1327 extern __at(0x0118) __sfr DACCON0
;
1335 unsigned DACPSS0
: 1;
1336 unsigned DACPSS1
: 1;
1339 unsigned DACLPS
: 1;
1346 unsigned DACPSS
: 2;
1351 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1353 #define _DACPSS0 0x04
1354 #define _DACPSS1 0x08
1356 #define _DACLPS 0x40
1359 //==============================================================================
1362 //==============================================================================
1365 extern __at(0x0119) __sfr DACCON1
;
1388 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1396 //==============================================================================
1399 //==============================================================================
1402 extern __at(0x011D) __sfr APFCON
;
1408 unsigned TXCKSEL
: 1;
1409 unsigned T1GSEL
: 1;
1411 unsigned CWGBSEL
: 1;
1412 unsigned CWGASEL
: 1;
1413 unsigned RXDTSEL
: 1;
1416 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
1420 #define _TXCKSEL 0x04
1421 #define _T1GSEL 0x08
1422 #define _CWGBSEL 0x20
1423 #define _CWGASEL 0x40
1424 #define _RXDTSEL 0x80
1426 //==============================================================================
1429 //==============================================================================
1432 extern __at(0x011D) __sfr APFCON0
;
1438 unsigned TXCKSEL
: 1;
1439 unsigned T1GSEL
: 1;
1441 unsigned CWGBSEL
: 1;
1442 unsigned CWGASEL
: 1;
1443 unsigned RXDTSEL
: 1;
1446 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits
;
1448 #define _APFCON0_P1SEL 0x01
1449 #define _APFCON0_P2SEL 0x02
1450 #define _APFCON0_TXCKSEL 0x04
1451 #define _APFCON0_T1GSEL 0x08
1452 #define _APFCON0_CWGBSEL 0x20
1453 #define _APFCON0_CWGASEL 0x40
1454 #define _APFCON0_RXDTSEL 0x80
1456 //==============================================================================
1459 //==============================================================================
1462 extern __at(0x018C) __sfr ANSELA
;
1476 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
1483 //==============================================================================
1485 extern __at(0x0191) __sfr PMADR
;
1486 extern __at(0x0191) __sfr PMADRL
;
1487 extern __at(0x0192) __sfr PMADRH
;
1488 extern __at(0x0193) __sfr PMDAT
;
1489 extern __at(0x0193) __sfr PMDATL
;
1490 extern __at(0x0194) __sfr PMDATH
;
1492 //==============================================================================
1495 extern __at(0x0195) __sfr PMCON1
;
1509 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits
;
1519 //==============================================================================
1521 extern __at(0x0196) __sfr PMCON2
;
1523 //==============================================================================
1526 extern __at(0x0197) __sfr VREGCON
;
1531 unsigned VREGPM
: 1;
1540 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits
;
1542 #define _VREGPM 0x02
1544 //==============================================================================
1546 extern __at(0x0199) __sfr RCREG
;
1547 extern __at(0x019A) __sfr TXREG
;
1548 extern __at(0x019B) __sfr SPBRG
;
1549 extern __at(0x019B) __sfr SPBRGL
;
1550 extern __at(0x019C) __sfr SPBRGH
;
1552 //==============================================================================
1555 extern __at(0x019D) __sfr RCSTA
;
1569 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
1580 //==============================================================================
1583 //==============================================================================
1586 extern __at(0x019E) __sfr TXSTA
;
1600 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
1611 //==============================================================================
1614 //==============================================================================
1617 extern __at(0x019F) __sfr BAUDCON
;
1628 unsigned ABDOVF
: 1;
1631 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
1638 #define _ABDOVF 0x80
1640 //==============================================================================
1643 //==============================================================================
1646 extern __at(0x020C) __sfr WPUA
;
1669 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
1678 //==============================================================================
1681 //==============================================================================
1684 extern __at(0x028C) __sfr ODCONA
;
1698 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
1706 //==============================================================================
1709 //==============================================================================
1712 extern __at(0x030C) __sfr SLRCONA
;
1726 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
1734 //==============================================================================
1737 //==============================================================================
1740 extern __at(0x038C) __sfr INLVLA
;
1746 unsigned INLVLA0
: 1;
1747 unsigned INLVLA1
: 1;
1748 unsigned INLVLA2
: 1;
1749 unsigned INLVLA3
: 1;
1750 unsigned INLVLA4
: 1;
1751 unsigned INLVLA5
: 1;
1758 unsigned INLVLA
: 6;
1763 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
1765 #define _INLVLA0 0x01
1766 #define _INLVLA1 0x02
1767 #define _INLVLA2 0x04
1768 #define _INLVLA3 0x08
1769 #define _INLVLA4 0x10
1770 #define _INLVLA5 0x20
1772 //==============================================================================
1775 //==============================================================================
1778 extern __at(0x0391) __sfr IOCAP
;
1784 unsigned IOCAP0
: 1;
1785 unsigned IOCAP1
: 1;
1786 unsigned IOCAP2
: 1;
1787 unsigned IOCAP3
: 1;
1788 unsigned IOCAP4
: 1;
1789 unsigned IOCAP5
: 1;
1801 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
1803 #define _IOCAP0 0x01
1804 #define _IOCAP1 0x02
1805 #define _IOCAP2 0x04
1806 #define _IOCAP3 0x08
1807 #define _IOCAP4 0x10
1808 #define _IOCAP5 0x20
1810 //==============================================================================
1813 //==============================================================================
1816 extern __at(0x0392) __sfr IOCAN
;
1822 unsigned IOCAN0
: 1;
1823 unsigned IOCAN1
: 1;
1824 unsigned IOCAN2
: 1;
1825 unsigned IOCAN3
: 1;
1826 unsigned IOCAN4
: 1;
1827 unsigned IOCAN5
: 1;
1839 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
1841 #define _IOCAN0 0x01
1842 #define _IOCAN1 0x02
1843 #define _IOCAN2 0x04
1844 #define _IOCAN3 0x08
1845 #define _IOCAN4 0x10
1846 #define _IOCAN5 0x20
1848 //==============================================================================
1851 //==============================================================================
1854 extern __at(0x0393) __sfr IOCAF
;
1860 unsigned IOCAF0
: 1;
1861 unsigned IOCAF1
: 1;
1862 unsigned IOCAF2
: 1;
1863 unsigned IOCAF3
: 1;
1864 unsigned IOCAF4
: 1;
1865 unsigned IOCAF5
: 1;
1877 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
1879 #define _IOCAF0 0x01
1880 #define _IOCAF1 0x02
1881 #define _IOCAF2 0x04
1882 #define _IOCAF3 0x08
1883 #define _IOCAF4 0x10
1884 #define _IOCAF5 0x20
1886 //==============================================================================
1889 //==============================================================================
1892 extern __at(0x0691) __sfr CWG1DBR
;
1898 unsigned CWG1DBR0
: 1;
1899 unsigned CWG1DBR1
: 1;
1900 unsigned CWG1DBR2
: 1;
1901 unsigned CWG1DBR3
: 1;
1902 unsigned CWG1DBR4
: 1;
1903 unsigned CWG1DBR5
: 1;
1910 unsigned CWG1DBR
: 6;
1915 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits
;
1917 #define _CWG1DBR0 0x01
1918 #define _CWG1DBR1 0x02
1919 #define _CWG1DBR2 0x04
1920 #define _CWG1DBR3 0x08
1921 #define _CWG1DBR4 0x10
1922 #define _CWG1DBR5 0x20
1924 //==============================================================================
1927 //==============================================================================
1930 extern __at(0x0692) __sfr CWG1DBF
;
1936 unsigned CWG1DBF0
: 1;
1937 unsigned CWG1DBF1
: 1;
1938 unsigned CWG1DBF2
: 1;
1939 unsigned CWG1DBF3
: 1;
1940 unsigned CWG1DBF4
: 1;
1941 unsigned CWG1DBF5
: 1;
1948 unsigned CWG1DBF
: 6;
1953 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits
;
1955 #define _CWG1DBF0 0x01
1956 #define _CWG1DBF1 0x02
1957 #define _CWG1DBF2 0x04
1958 #define _CWG1DBF3 0x08
1959 #define _CWG1DBF4 0x10
1960 #define _CWG1DBF5 0x20
1962 //==============================================================================
1965 //==============================================================================
1968 extern __at(0x0693) __sfr CWG1CON0
;
1975 unsigned G1POLA
: 1;
1976 unsigned G1POLB
: 1;
1982 extern __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits
;
1985 #define _G1POLA 0x08
1986 #define _G1POLB 0x10
1991 //==============================================================================
1994 //==============================================================================
1997 extern __at(0x0694) __sfr CWG1CON1
;
2007 unsigned G1ASDLA0
: 1;
2008 unsigned G1ASDLA1
: 1;
2009 unsigned G1ASDLB0
: 1;
2010 unsigned G1ASDLB1
: 1;
2022 unsigned G1ASDLA
: 2;
2029 unsigned G1ASDLB
: 2;
2033 extern __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits
;
2038 #define _G1ASDLA0 0x10
2039 #define _G1ASDLA1 0x20
2040 #define _G1ASDLB0 0x40
2041 #define _G1ASDLB1 0x80
2043 //==============================================================================
2046 //==============================================================================
2049 extern __at(0x0695) __sfr CWG1CON2
;
2054 unsigned G1ASDSFLT
: 1;
2055 unsigned G1ASDSC1
: 1;
2059 unsigned G1ARSEN
: 1;
2063 extern __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits
;
2065 #define _G1ASDSFLT 0x02
2066 #define _G1ASDSC1 0x04
2067 #define _G1ARSEN 0x40
2070 //==============================================================================
2073 //==============================================================================
2076 extern __at(0x0D8E) __sfr PWMEN
;
2082 unsigned PWM1EN_A
: 1;
2083 unsigned PWM2EN_A
: 1;
2084 unsigned PWM3EN_A
: 1;
2094 unsigned MPWM1EN
: 1;
2095 unsigned MPWM2EN
: 1;
2096 unsigned MPWM3EN
: 1;
2105 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits
;
2107 #define _PWM1EN_A 0x01
2108 #define _MPWM1EN 0x01
2109 #define _PWM2EN_A 0x02
2110 #define _MPWM2EN 0x02
2111 #define _PWM3EN_A 0x04
2112 #define _MPWM3EN 0x04
2114 //==============================================================================
2117 //==============================================================================
2120 extern __at(0x0D8F) __sfr PWMLD
;
2126 unsigned PWM1LDA_A
: 1;
2127 unsigned PWM2LDA_A
: 1;
2128 unsigned PWM3LDA_A
: 1;
2138 unsigned MPWM1LD
: 1;
2139 unsigned MPWM2LD
: 1;
2140 unsigned MPWM3LD
: 1;
2149 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits
;
2151 #define _PWM1LDA_A 0x01
2152 #define _MPWM1LD 0x01
2153 #define _PWM2LDA_A 0x02
2154 #define _MPWM2LD 0x02
2155 #define _PWM3LDA_A 0x04
2156 #define _MPWM3LD 0x04
2158 //==============================================================================
2161 //==============================================================================
2164 extern __at(0x0D90) __sfr PWMOUT
;
2170 unsigned PWM1OUT_A
: 1;
2171 unsigned PWM2OUT_A
: 1;
2172 unsigned PWM3OUT_A
: 1;
2182 unsigned MPWM1OUT
: 1;
2183 unsigned MPWM2OUT
: 1;
2184 unsigned MPWM3OUT
: 1;
2193 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits
;
2195 #define _PWM1OUT_A 0x01
2196 #define _MPWM1OUT 0x01
2197 #define _PWM2OUT_A 0x02
2198 #define _MPWM2OUT 0x02
2199 #define _PWM3OUT_A 0x04
2200 #define _MPWM3OUT 0x04
2202 //==============================================================================
2204 extern __at(0x0D91) __sfr PWM1PH
;
2206 //==============================================================================
2209 extern __at(0x0D91) __sfr PWM1PHL
;
2213 unsigned PWM1PHL0
: 1;
2214 unsigned PWM1PHL1
: 1;
2215 unsigned PWM1PHL2
: 1;
2216 unsigned PWM1PHL3
: 1;
2217 unsigned PWM1PHL4
: 1;
2218 unsigned PWM1PHL5
: 1;
2219 unsigned PWM1PHL6
: 1;
2220 unsigned PWM1PHL7
: 1;
2223 extern __at(0x0D91) volatile __PWM1PHLbits_t PWM1PHLbits
;
2225 #define _PWM1PHL0 0x01
2226 #define _PWM1PHL1 0x02
2227 #define _PWM1PHL2 0x04
2228 #define _PWM1PHL3 0x08
2229 #define _PWM1PHL4 0x10
2230 #define _PWM1PHL5 0x20
2231 #define _PWM1PHL6 0x40
2232 #define _PWM1PHL7 0x80
2234 //==============================================================================
2237 //==============================================================================
2240 extern __at(0x0D92) __sfr PWM1PHH
;
2244 unsigned PWM1PHH0
: 1;
2245 unsigned PWM1PHH1
: 1;
2246 unsigned PWM1PHH2
: 1;
2247 unsigned PWM1PHH3
: 1;
2248 unsigned PWM1PHH4
: 1;
2249 unsigned PWM1PHH5
: 1;
2250 unsigned PWM1PHH6
: 1;
2251 unsigned PWM1PHH7
: 1;
2254 extern __at(0x0D92) volatile __PWM1PHHbits_t PWM1PHHbits
;
2256 #define _PWM1PHH0 0x01
2257 #define _PWM1PHH1 0x02
2258 #define _PWM1PHH2 0x04
2259 #define _PWM1PHH3 0x08
2260 #define _PWM1PHH4 0x10
2261 #define _PWM1PHH5 0x20
2262 #define _PWM1PHH6 0x40
2263 #define _PWM1PHH7 0x80
2265 //==============================================================================
2267 extern __at(0x0D93) __sfr PWM1DC
;
2269 //==============================================================================
2272 extern __at(0x0D93) __sfr PWM1DCL
;
2276 unsigned PWM1DCL0
: 1;
2277 unsigned PWM1DCL1
: 1;
2278 unsigned PWM1DCL2
: 1;
2279 unsigned PWM1DCL3
: 1;
2280 unsigned PWM1DCL4
: 1;
2281 unsigned PWM1DCL5
: 1;
2282 unsigned PWM1DCL6
: 1;
2283 unsigned PWM1DCL7
: 1;
2286 extern __at(0x0D93) volatile __PWM1DCLbits_t PWM1DCLbits
;
2288 #define _PWM1DCL0 0x01
2289 #define _PWM1DCL1 0x02
2290 #define _PWM1DCL2 0x04
2291 #define _PWM1DCL3 0x08
2292 #define _PWM1DCL4 0x10
2293 #define _PWM1DCL5 0x20
2294 #define _PWM1DCL6 0x40
2295 #define _PWM1DCL7 0x80
2297 //==============================================================================
2300 //==============================================================================
2303 extern __at(0x0D94) __sfr PWM1DCH
;
2307 unsigned PWM1DCH0
: 1;
2308 unsigned PWM1DCH1
: 1;
2309 unsigned PWM1DCH2
: 1;
2310 unsigned PWM1DCH3
: 1;
2311 unsigned PWM1DCH4
: 1;
2312 unsigned PWM1DCH5
: 1;
2313 unsigned PWM1DCH6
: 1;
2314 unsigned PWM1DCH7
: 1;
2317 extern __at(0x0D94) volatile __PWM1DCHbits_t PWM1DCHbits
;
2319 #define _PWM1DCH0 0x01
2320 #define _PWM1DCH1 0x02
2321 #define _PWM1DCH2 0x04
2322 #define _PWM1DCH3 0x08
2323 #define _PWM1DCH4 0x10
2324 #define _PWM1DCH5 0x20
2325 #define _PWM1DCH6 0x40
2326 #define _PWM1DCH7 0x80
2328 //==============================================================================
2330 extern __at(0x0D95) __sfr PWM1PR
;
2332 //==============================================================================
2335 extern __at(0x0D95) __sfr PWM1PRL
;
2339 unsigned PWM1PRL0
: 1;
2340 unsigned PWM1PRL1
: 1;
2341 unsigned PWM1PRL2
: 1;
2342 unsigned PWM1PRL3
: 1;
2343 unsigned PWM1PRL4
: 1;
2344 unsigned PWM1PRL5
: 1;
2345 unsigned PWM1PRL6
: 1;
2346 unsigned PWM1PRL7
: 1;
2349 extern __at(0x0D95) volatile __PWM1PRLbits_t PWM1PRLbits
;
2351 #define _PWM1PRL0 0x01
2352 #define _PWM1PRL1 0x02
2353 #define _PWM1PRL2 0x04
2354 #define _PWM1PRL3 0x08
2355 #define _PWM1PRL4 0x10
2356 #define _PWM1PRL5 0x20
2357 #define _PWM1PRL6 0x40
2358 #define _PWM1PRL7 0x80
2360 //==============================================================================
2363 //==============================================================================
2366 extern __at(0x0D96) __sfr PWM1PRH
;
2370 unsigned PWM1PRH0
: 1;
2371 unsigned PWM1PRH1
: 1;
2372 unsigned PWM1PRH2
: 1;
2373 unsigned PWM1PRH3
: 1;
2374 unsigned PWM1PRH4
: 1;
2375 unsigned PWM1PRH5
: 1;
2376 unsigned PWM1PRH6
: 1;
2377 unsigned PWM1PRH7
: 1;
2380 extern __at(0x0D96) volatile __PWM1PRHbits_t PWM1PRHbits
;
2382 #define _PWM1PRH0 0x01
2383 #define _PWM1PRH1 0x02
2384 #define _PWM1PRH2 0x04
2385 #define _PWM1PRH3 0x08
2386 #define _PWM1PRH4 0x10
2387 #define _PWM1PRH5 0x20
2388 #define _PWM1PRH6 0x40
2389 #define _PWM1PRH7 0x80
2391 //==============================================================================
2393 extern __at(0x0D97) __sfr PWM1OF
;
2395 //==============================================================================
2398 extern __at(0x0D97) __sfr PWM1OFL
;
2402 unsigned PWM1OFL0
: 1;
2403 unsigned PWM1OFL1
: 1;
2404 unsigned PWM1OFL2
: 1;
2405 unsigned PWM1OFL3
: 1;
2406 unsigned PWM1OFL4
: 1;
2407 unsigned PWM1OFL5
: 1;
2408 unsigned PWM1OFL6
: 1;
2409 unsigned PWM1OFL7
: 1;
2412 extern __at(0x0D97) volatile __PWM1OFLbits_t PWM1OFLbits
;
2414 #define _PWM1OFL0 0x01
2415 #define _PWM1OFL1 0x02
2416 #define _PWM1OFL2 0x04
2417 #define _PWM1OFL3 0x08
2418 #define _PWM1OFL4 0x10
2419 #define _PWM1OFL5 0x20
2420 #define _PWM1OFL6 0x40
2421 #define _PWM1OFL7 0x80
2423 //==============================================================================
2426 //==============================================================================
2429 extern __at(0x0D98) __sfr PWM1OFH
;
2433 unsigned PWM1OFH0
: 1;
2434 unsigned PWM1OFH1
: 1;
2435 unsigned PWM1OFH2
: 1;
2436 unsigned PWM1OFH3
: 1;
2437 unsigned PWM1OFH4
: 1;
2438 unsigned PWM1OFH5
: 1;
2439 unsigned PWM1OFH6
: 1;
2440 unsigned PWM1OFH7
: 1;
2443 extern __at(0x0D98) volatile __PWM1OFHbits_t PWM1OFHbits
;
2445 #define _PWM1OFH0 0x01
2446 #define _PWM1OFH1 0x02
2447 #define _PWM1OFH2 0x04
2448 #define _PWM1OFH3 0x08
2449 #define _PWM1OFH4 0x10
2450 #define _PWM1OFH5 0x20
2451 #define _PWM1OFH6 0x40
2452 #define _PWM1OFH7 0x80
2454 //==============================================================================
2456 extern __at(0x0D99) __sfr PWM1TMR
;
2458 //==============================================================================
2461 extern __at(0x0D99) __sfr PWM1TMRL
;
2465 unsigned PWM1TMRL0
: 1;
2466 unsigned PWM1TMRL1
: 1;
2467 unsigned PWM1TMRL2
: 1;
2468 unsigned PWM1TMRL3
: 1;
2469 unsigned PWM1TMRL4
: 1;
2470 unsigned PWM1TMRL5
: 1;
2471 unsigned PWM1TMRL6
: 1;
2472 unsigned PWM1TMRL7
: 1;
2475 extern __at(0x0D99) volatile __PWM1TMRLbits_t PWM1TMRLbits
;
2477 #define _PWM1TMRL0 0x01
2478 #define _PWM1TMRL1 0x02
2479 #define _PWM1TMRL2 0x04
2480 #define _PWM1TMRL3 0x08
2481 #define _PWM1TMRL4 0x10
2482 #define _PWM1TMRL5 0x20
2483 #define _PWM1TMRL6 0x40
2484 #define _PWM1TMRL7 0x80
2486 //==============================================================================
2489 //==============================================================================
2492 extern __at(0x0D9A) __sfr PWM1TMRH
;
2496 unsigned PWM1TMRH0
: 1;
2497 unsigned PWM1TMRH1
: 1;
2498 unsigned PWM1TMRH2
: 1;
2499 unsigned PWM1TMRH3
: 1;
2500 unsigned PWM1TMRH4
: 1;
2501 unsigned PWM1TMRH5
: 1;
2502 unsigned PWM1TMRH6
: 1;
2503 unsigned PWM1TMRH7
: 1;
2506 extern __at(0x0D9A) volatile __PWM1TMRHbits_t PWM1TMRHbits
;
2508 #define _PWM1TMRH0 0x01
2509 #define _PWM1TMRH1 0x02
2510 #define _PWM1TMRH2 0x04
2511 #define _PWM1TMRH3 0x08
2512 #define _PWM1TMRH4 0x10
2513 #define _PWM1TMRH5 0x20
2514 #define _PWM1TMRH6 0x40
2515 #define _PWM1TMRH7 0x80
2517 //==============================================================================
2520 //==============================================================================
2523 extern __at(0x0D9B) __sfr PWM1CON
;
2531 unsigned PWM1MODE0
: 1;
2532 unsigned PWM1MODE1
: 1;
2545 unsigned PWM1POL
: 1;
2546 unsigned PWM1OUT
: 1;
2547 unsigned PWM1OE
: 1;
2548 unsigned PWM1EN
: 1;
2561 unsigned PWM1MODE
: 2;
2566 extern __at(0x0D9B) volatile __PWM1CONbits_t PWM1CONbits
;
2568 #define _PWM1MODE0 0x04
2570 #define _PWM1MODE1 0x08
2573 #define _PWM1POL 0x10
2575 #define _PWM1OUT 0x20
2577 #define _PWM1OE 0x40
2579 #define _PWM1EN 0x80
2581 //==============================================================================
2584 //==============================================================================
2587 extern __at(0x0D9C) __sfr PWM1INTCON
;
2605 unsigned PWM1PRIE
: 1;
2606 unsigned PWM1DCIE
: 1;
2607 unsigned PWM1PHIE
: 1;
2608 unsigned PWM1OFIE
: 1;
2614 } __PWM1INTCONbits_t
;
2616 extern __at(0x0D9C) volatile __PWM1INTCONbits_t PWM1INTCONbits
;
2619 #define _PWM1PRIE 0x01
2621 #define _PWM1DCIE 0x02
2623 #define _PWM1PHIE 0x04
2625 #define _PWM1OFIE 0x08
2627 //==============================================================================
2630 //==============================================================================
2633 extern __at(0x0D9C) __sfr PWM1INTE
;
2651 unsigned PWM1PRIE
: 1;
2652 unsigned PWM1DCIE
: 1;
2653 unsigned PWM1PHIE
: 1;
2654 unsigned PWM1OFIE
: 1;
2662 extern __at(0x0D9C) volatile __PWM1INTEbits_t PWM1INTEbits
;
2664 #define _PWM1INTE_PRIE 0x01
2665 #define _PWM1INTE_PWM1PRIE 0x01
2666 #define _PWM1INTE_DCIE 0x02
2667 #define _PWM1INTE_PWM1DCIE 0x02
2668 #define _PWM1INTE_PHIE 0x04
2669 #define _PWM1INTE_PWM1PHIE 0x04
2670 #define _PWM1INTE_OFIE 0x08
2671 #define _PWM1INTE_PWM1OFIE 0x08
2673 //==============================================================================
2676 //==============================================================================
2679 extern __at(0x0D9D) __sfr PWM1INTF
;
2697 unsigned PWM1PRIF
: 1;
2698 unsigned PWM1DCIF
: 1;
2699 unsigned PWM1PHIF
: 1;
2700 unsigned PWM1OFIF
: 1;
2708 extern __at(0x0D9D) volatile __PWM1INTFbits_t PWM1INTFbits
;
2711 #define _PWM1PRIF 0x01
2713 #define _PWM1DCIF 0x02
2715 #define _PWM1PHIF 0x04
2717 #define _PWM1OFIF 0x08
2719 //==============================================================================
2722 //==============================================================================
2725 extern __at(0x0D9D) __sfr PWM1INTFLG
;
2743 unsigned PWM1PRIF
: 1;
2744 unsigned PWM1DCIF
: 1;
2745 unsigned PWM1PHIF
: 1;
2746 unsigned PWM1OFIF
: 1;
2752 } __PWM1INTFLGbits_t
;
2754 extern __at(0x0D9D) volatile __PWM1INTFLGbits_t PWM1INTFLGbits
;
2756 #define _PWM1INTFLG_PRIF 0x01
2757 #define _PWM1INTFLG_PWM1PRIF 0x01
2758 #define _PWM1INTFLG_DCIF 0x02
2759 #define _PWM1INTFLG_PWM1DCIF 0x02
2760 #define _PWM1INTFLG_PHIF 0x04
2761 #define _PWM1INTFLG_PWM1PHIF 0x04
2762 #define _PWM1INTFLG_OFIF 0x08
2763 #define _PWM1INTFLG_PWM1OFIF 0x08
2765 //==============================================================================
2768 //==============================================================================
2771 extern __at(0x0D9E) __sfr PWM1CLKCON
;
2777 unsigned PWM1CS0
: 1;
2778 unsigned PWM1CS1
: 1;
2781 unsigned PWM1PS0
: 1;
2782 unsigned PWM1PS1
: 1;
2783 unsigned PWM1PS2
: 1;
2801 unsigned PWM1CS
: 2;
2821 unsigned PWM1PS
: 3;
2824 } __PWM1CLKCONbits_t
;
2826 extern __at(0x0D9E) volatile __PWM1CLKCONbits_t PWM1CLKCONbits
;
2828 #define _PWM1CLKCON_PWM1CS0 0x01
2829 #define _PWM1CLKCON_CS0 0x01
2830 #define _PWM1CLKCON_PWM1CS1 0x02
2831 #define _PWM1CLKCON_CS1 0x02
2832 #define _PWM1CLKCON_PWM1PS0 0x10
2833 #define _PWM1CLKCON_PS0 0x10
2834 #define _PWM1CLKCON_PWM1PS1 0x20
2835 #define _PWM1CLKCON_PS1 0x20
2836 #define _PWM1CLKCON_PWM1PS2 0x40
2837 #define _PWM1CLKCON_PS2 0x40
2839 //==============================================================================
2842 //==============================================================================
2845 extern __at(0x0D9F) __sfr PWM1LDCON
;
2851 unsigned PWM1LDS0
: 1;
2852 unsigned PWM1LDS1
: 1;
2869 unsigned PWM1LDM
: 1;
2870 unsigned PWM1LD
: 1;
2875 unsigned PWM1LDS
: 2;
2884 } __PWM1LDCONbits_t
;
2886 extern __at(0x0D9F) volatile __PWM1LDCONbits_t PWM1LDCONbits
;
2888 #define _PWM1LDS0 0x01
2890 #define _PWM1LDS1 0x02
2893 #define _PWM1LDM 0x40
2895 #define _PWM1LD 0x80
2897 //==============================================================================
2900 //==============================================================================
2903 extern __at(0x0DA0) __sfr PWM1OFCON
;
2909 unsigned PWM1OFS0
: 1;
2910 unsigned PWM1OFS1
: 1;
2914 unsigned PWM1OFM0
: 1;
2915 unsigned PWM1OFM1
: 1;
2925 unsigned PWM1OFMC
: 1;
2939 unsigned PWM1OFS
: 2;
2946 unsigned PWM1OFM
: 2;
2956 } __PWM1OFCONbits_t
;
2958 extern __at(0x0DA0) volatile __PWM1OFCONbits_t PWM1OFCONbits
;
2960 #define _PWM1OFS0 0x01
2962 #define _PWM1OFS1 0x02
2965 #define _PWM1OFMC 0x10
2966 #define _PWM1OFM0 0x20
2968 #define _PWM1OFM1 0x40
2971 //==============================================================================
2973 extern __at(0x0DA1) __sfr PWM2PH
;
2975 //==============================================================================
2978 extern __at(0x0DA1) __sfr PWM2PHL
;
2982 unsigned PWM2PHL0
: 1;
2983 unsigned PWM2PHL1
: 1;
2984 unsigned PWM2PHL2
: 1;
2985 unsigned PWM2PHL3
: 1;
2986 unsigned PWM2PHL4
: 1;
2987 unsigned PWM2PHL5
: 1;
2988 unsigned PWM2PHL6
: 1;
2989 unsigned PWM2PHL7
: 1;
2992 extern __at(0x0DA1) volatile __PWM2PHLbits_t PWM2PHLbits
;
2994 #define _PWM2PHL0 0x01
2995 #define _PWM2PHL1 0x02
2996 #define _PWM2PHL2 0x04
2997 #define _PWM2PHL3 0x08
2998 #define _PWM2PHL4 0x10
2999 #define _PWM2PHL5 0x20
3000 #define _PWM2PHL6 0x40
3001 #define _PWM2PHL7 0x80
3003 //==============================================================================
3006 //==============================================================================
3009 extern __at(0x0DA2) __sfr PWM2PHH
;
3013 unsigned PWM2PHH0
: 1;
3014 unsigned PWM2PHH1
: 1;
3015 unsigned PWM2PHH2
: 1;
3016 unsigned PWM2PHH3
: 1;
3017 unsigned PWM2PHH4
: 1;
3018 unsigned PWM2PHH5
: 1;
3019 unsigned PWM2PHH6
: 1;
3020 unsigned PWM2PHH7
: 1;
3023 extern __at(0x0DA2) volatile __PWM2PHHbits_t PWM2PHHbits
;
3025 #define _PWM2PHH0 0x01
3026 #define _PWM2PHH1 0x02
3027 #define _PWM2PHH2 0x04
3028 #define _PWM2PHH3 0x08
3029 #define _PWM2PHH4 0x10
3030 #define _PWM2PHH5 0x20
3031 #define _PWM2PHH6 0x40
3032 #define _PWM2PHH7 0x80
3034 //==============================================================================
3036 extern __at(0x0DA3) __sfr PWM2DC
;
3038 //==============================================================================
3041 extern __at(0x0DA3) __sfr PWM2DCL
;
3045 unsigned PWM2DCL0
: 1;
3046 unsigned PWM2DCL1
: 1;
3047 unsigned PWM2DCL2
: 1;
3048 unsigned PWM2DCL3
: 1;
3049 unsigned PWM2DCL4
: 1;
3050 unsigned PWM2DCL5
: 1;
3051 unsigned PWM2DCL6
: 1;
3052 unsigned PWM2DCL7
: 1;
3055 extern __at(0x0DA3) volatile __PWM2DCLbits_t PWM2DCLbits
;
3057 #define _PWM2DCL0 0x01
3058 #define _PWM2DCL1 0x02
3059 #define _PWM2DCL2 0x04
3060 #define _PWM2DCL3 0x08
3061 #define _PWM2DCL4 0x10
3062 #define _PWM2DCL5 0x20
3063 #define _PWM2DCL6 0x40
3064 #define _PWM2DCL7 0x80
3066 //==============================================================================
3069 //==============================================================================
3072 extern __at(0x0DA4) __sfr PWM2DCH
;
3076 unsigned PWM2DCH0
: 1;
3077 unsigned PWM2DCH1
: 1;
3078 unsigned PWM2DCH2
: 1;
3079 unsigned PWM2DCH3
: 1;
3080 unsigned PWM2DCH4
: 1;
3081 unsigned PWM2DCH5
: 1;
3082 unsigned PWM2DCH6
: 1;
3083 unsigned PWM2DCH7
: 1;
3086 extern __at(0x0DA4) volatile __PWM2DCHbits_t PWM2DCHbits
;
3088 #define _PWM2DCH0 0x01
3089 #define _PWM2DCH1 0x02
3090 #define _PWM2DCH2 0x04
3091 #define _PWM2DCH3 0x08
3092 #define _PWM2DCH4 0x10
3093 #define _PWM2DCH5 0x20
3094 #define _PWM2DCH6 0x40
3095 #define _PWM2DCH7 0x80
3097 //==============================================================================
3099 extern __at(0x0DA5) __sfr PWM2PR
;
3101 //==============================================================================
3104 extern __at(0x0DA5) __sfr PWM2PRL
;
3108 unsigned PWM2PRL0
: 1;
3109 unsigned PWM2PRL1
: 1;
3110 unsigned PWM2PRL2
: 1;
3111 unsigned PWM2PRL3
: 1;
3112 unsigned PWM2PRL4
: 1;
3113 unsigned PWM2PRL5
: 1;
3114 unsigned PWM2PRL6
: 1;
3115 unsigned PWM2PRL7
: 1;
3118 extern __at(0x0DA5) volatile __PWM2PRLbits_t PWM2PRLbits
;
3120 #define _PWM2PRL0 0x01
3121 #define _PWM2PRL1 0x02
3122 #define _PWM2PRL2 0x04
3123 #define _PWM2PRL3 0x08
3124 #define _PWM2PRL4 0x10
3125 #define _PWM2PRL5 0x20
3126 #define _PWM2PRL6 0x40
3127 #define _PWM2PRL7 0x80
3129 //==============================================================================
3132 //==============================================================================
3135 extern __at(0x0DA6) __sfr PWM2PRH
;
3139 unsigned PWM2PRH0
: 1;
3140 unsigned PWM2PRH1
: 1;
3141 unsigned PWM2PRH2
: 1;
3142 unsigned PWM2PRH3
: 1;
3143 unsigned PWM2PRH4
: 1;
3144 unsigned PWM2PRH5
: 1;
3145 unsigned PWM2PRH6
: 1;
3146 unsigned PWM2PRH7
: 1;
3149 extern __at(0x0DA6) volatile __PWM2PRHbits_t PWM2PRHbits
;
3151 #define _PWM2PRH0 0x01
3152 #define _PWM2PRH1 0x02
3153 #define _PWM2PRH2 0x04
3154 #define _PWM2PRH3 0x08
3155 #define _PWM2PRH4 0x10
3156 #define _PWM2PRH5 0x20
3157 #define _PWM2PRH6 0x40
3158 #define _PWM2PRH7 0x80
3160 //==============================================================================
3162 extern __at(0x0DA7) __sfr PWM2OF
;
3164 //==============================================================================
3167 extern __at(0x0DA7) __sfr PWM2OFL
;
3171 unsigned PWM2OFL0
: 1;
3172 unsigned PWM2OFL1
: 1;
3173 unsigned PWM2OFL2
: 1;
3174 unsigned PWM2OFL3
: 1;
3175 unsigned PWM2OFL4
: 1;
3176 unsigned PWM2OFL5
: 1;
3177 unsigned PWM2OFL6
: 1;
3178 unsigned PWM2OFL7
: 1;
3181 extern __at(0x0DA7) volatile __PWM2OFLbits_t PWM2OFLbits
;
3183 #define _PWM2OFL0 0x01
3184 #define _PWM2OFL1 0x02
3185 #define _PWM2OFL2 0x04
3186 #define _PWM2OFL3 0x08
3187 #define _PWM2OFL4 0x10
3188 #define _PWM2OFL5 0x20
3189 #define _PWM2OFL6 0x40
3190 #define _PWM2OFL7 0x80
3192 //==============================================================================
3195 //==============================================================================
3198 extern __at(0x0DA8) __sfr PWM2OFH
;
3202 unsigned PWM2OFH0
: 1;
3203 unsigned PWM2OFH1
: 1;
3204 unsigned PWM2OFH2
: 1;
3205 unsigned PWM2OFH3
: 1;
3206 unsigned PWM2OFH4
: 1;
3207 unsigned PWM2OFH5
: 1;
3208 unsigned PWM2OFH6
: 1;
3209 unsigned PWM2OFH7
: 1;
3212 extern __at(0x0DA8) volatile __PWM2OFHbits_t PWM2OFHbits
;
3214 #define _PWM2OFH0 0x01
3215 #define _PWM2OFH1 0x02
3216 #define _PWM2OFH2 0x04
3217 #define _PWM2OFH3 0x08
3218 #define _PWM2OFH4 0x10
3219 #define _PWM2OFH5 0x20
3220 #define _PWM2OFH6 0x40
3221 #define _PWM2OFH7 0x80
3223 //==============================================================================
3225 extern __at(0x0DA9) __sfr PWM2TMR
;
3227 //==============================================================================
3230 extern __at(0x0DA9) __sfr PWM2TMRL
;
3234 unsigned PWM2TMRL0
: 1;
3235 unsigned PWM2TMRL1
: 1;
3236 unsigned PWM2TMRL2
: 1;
3237 unsigned PWM2TMRL3
: 1;
3238 unsigned PWM2TMRL4
: 1;
3239 unsigned PWM2TMRL5
: 1;
3240 unsigned PWM2TMRL6
: 1;
3241 unsigned PWM2TMRL7
: 1;
3244 extern __at(0x0DA9) volatile __PWM2TMRLbits_t PWM2TMRLbits
;
3246 #define _PWM2TMRL0 0x01
3247 #define _PWM2TMRL1 0x02
3248 #define _PWM2TMRL2 0x04
3249 #define _PWM2TMRL3 0x08
3250 #define _PWM2TMRL4 0x10
3251 #define _PWM2TMRL5 0x20
3252 #define _PWM2TMRL6 0x40
3253 #define _PWM2TMRL7 0x80
3255 //==============================================================================
3258 //==============================================================================
3261 extern __at(0x0DAA) __sfr PWM2TMRH
;
3265 unsigned PWM2TMRH0
: 1;
3266 unsigned PWM2TMRH1
: 1;
3267 unsigned PWM2TMRH2
: 1;
3268 unsigned PWM2TMRH3
: 1;
3269 unsigned PWM2TMRH4
: 1;
3270 unsigned PWM2TMRH5
: 1;
3271 unsigned PWM2TMRH6
: 1;
3272 unsigned PWM2TMRH7
: 1;
3275 extern __at(0x0DAA) volatile __PWM2TMRHbits_t PWM2TMRHbits
;
3277 #define _PWM2TMRH0 0x01
3278 #define _PWM2TMRH1 0x02
3279 #define _PWM2TMRH2 0x04
3280 #define _PWM2TMRH3 0x08
3281 #define _PWM2TMRH4 0x10
3282 #define _PWM2TMRH5 0x20
3283 #define _PWM2TMRH6 0x40
3284 #define _PWM2TMRH7 0x80
3286 //==============================================================================
3289 //==============================================================================
3292 extern __at(0x0DAB) __sfr PWM2CON
;
3300 unsigned PWM2MODE0
: 1;
3301 unsigned PWM2MODE1
: 1;
3314 unsigned PWM2POL
: 1;
3315 unsigned PWM2OUT
: 1;
3316 unsigned PWM2OE
: 1;
3317 unsigned PWM2EN
: 1;
3330 unsigned PWM2MODE
: 2;
3335 extern __at(0x0DAB) volatile __PWM2CONbits_t PWM2CONbits
;
3337 #define _PWM2CON_PWM2MODE0 0x04
3338 #define _PWM2CON_MODE0 0x04
3339 #define _PWM2CON_PWM2MODE1 0x08
3340 #define _PWM2CON_MODE1 0x08
3341 #define _PWM2CON_POL 0x10
3342 #define _PWM2CON_PWM2POL 0x10
3343 #define _PWM2CON_OUT 0x20
3344 #define _PWM2CON_PWM2OUT 0x20
3345 #define _PWM2CON_OE 0x40
3346 #define _PWM2CON_PWM2OE 0x40
3347 #define _PWM2CON_EN 0x80
3348 #define _PWM2CON_PWM2EN 0x80
3350 //==============================================================================
3353 //==============================================================================
3356 extern __at(0x0DAC) __sfr PWM2INTCON
;
3374 unsigned PWM2PRIE
: 1;
3375 unsigned PWM2DCIE
: 1;
3376 unsigned PWM2PHIE
: 1;
3377 unsigned PWM2OFIE
: 1;
3383 } __PWM2INTCONbits_t
;
3385 extern __at(0x0DAC) volatile __PWM2INTCONbits_t PWM2INTCONbits
;
3387 #define _PWM2INTCON_PRIE 0x01
3388 #define _PWM2INTCON_PWM2PRIE 0x01
3389 #define _PWM2INTCON_DCIE 0x02
3390 #define _PWM2INTCON_PWM2DCIE 0x02
3391 #define _PWM2INTCON_PHIE 0x04
3392 #define _PWM2INTCON_PWM2PHIE 0x04
3393 #define _PWM2INTCON_OFIE 0x08
3394 #define _PWM2INTCON_PWM2OFIE 0x08
3396 //==============================================================================
3399 //==============================================================================
3402 extern __at(0x0DAC) __sfr PWM2INTE
;
3420 unsigned PWM2PRIE
: 1;
3421 unsigned PWM2DCIE
: 1;
3422 unsigned PWM2PHIE
: 1;
3423 unsigned PWM2OFIE
: 1;
3431 extern __at(0x0DAC) volatile __PWM2INTEbits_t PWM2INTEbits
;
3433 #define _PWM2INTE_PRIE 0x01
3434 #define _PWM2INTE_PWM2PRIE 0x01
3435 #define _PWM2INTE_DCIE 0x02
3436 #define _PWM2INTE_PWM2DCIE 0x02
3437 #define _PWM2INTE_PHIE 0x04
3438 #define _PWM2INTE_PWM2PHIE 0x04
3439 #define _PWM2INTE_OFIE 0x08
3440 #define _PWM2INTE_PWM2OFIE 0x08
3442 //==============================================================================
3445 //==============================================================================
3448 extern __at(0x0DAD) __sfr PWM2INTF
;
3466 unsigned PWM2PRIF
: 1;
3467 unsigned PWM2DCIF
: 1;
3468 unsigned PWM2PHIF
: 1;
3469 unsigned PWM2OFIF
: 1;
3477 extern __at(0x0DAD) volatile __PWM2INTFbits_t PWM2INTFbits
;
3479 #define _PWM2INTF_PRIF 0x01
3480 #define _PWM2INTF_PWM2PRIF 0x01
3481 #define _PWM2INTF_DCIF 0x02
3482 #define _PWM2INTF_PWM2DCIF 0x02
3483 #define _PWM2INTF_PHIF 0x04
3484 #define _PWM2INTF_PWM2PHIF 0x04
3485 #define _PWM2INTF_OFIF 0x08
3486 #define _PWM2INTF_PWM2OFIF 0x08
3488 //==============================================================================
3491 //==============================================================================
3494 extern __at(0x0DAD) __sfr PWM2INTFLG
;
3512 unsigned PWM2PRIF
: 1;
3513 unsigned PWM2DCIF
: 1;
3514 unsigned PWM2PHIF
: 1;
3515 unsigned PWM2OFIF
: 1;
3521 } __PWM2INTFLGbits_t
;
3523 extern __at(0x0DAD) volatile __PWM2INTFLGbits_t PWM2INTFLGbits
;
3525 #define _PWM2INTFLG_PRIF 0x01
3526 #define _PWM2INTFLG_PWM2PRIF 0x01
3527 #define _PWM2INTFLG_DCIF 0x02
3528 #define _PWM2INTFLG_PWM2DCIF 0x02
3529 #define _PWM2INTFLG_PHIF 0x04
3530 #define _PWM2INTFLG_PWM2PHIF 0x04
3531 #define _PWM2INTFLG_OFIF 0x08
3532 #define _PWM2INTFLG_PWM2OFIF 0x08
3534 //==============================================================================
3537 //==============================================================================
3540 extern __at(0x0DAE) __sfr PWM2CLKCON
;
3546 unsigned PWM2CS0
: 1;
3547 unsigned PWM2CS1
: 1;
3550 unsigned PWM2PS0
: 1;
3551 unsigned PWM2PS1
: 1;
3552 unsigned PWM2PS2
: 1;
3576 unsigned PWM2CS
: 2;
3583 unsigned PWM2PS
: 3;
3593 } __PWM2CLKCONbits_t
;
3595 extern __at(0x0DAE) volatile __PWM2CLKCONbits_t PWM2CLKCONbits
;
3597 #define _PWM2CLKCON_PWM2CS0 0x01
3598 #define _PWM2CLKCON_CS0 0x01
3599 #define _PWM2CLKCON_PWM2CS1 0x02
3600 #define _PWM2CLKCON_CS1 0x02
3601 #define _PWM2CLKCON_PWM2PS0 0x10
3602 #define _PWM2CLKCON_PS0 0x10
3603 #define _PWM2CLKCON_PWM2PS1 0x20
3604 #define _PWM2CLKCON_PS1 0x20
3605 #define _PWM2CLKCON_PWM2PS2 0x40
3606 #define _PWM2CLKCON_PS2 0x40
3608 //==============================================================================
3611 //==============================================================================
3614 extern __at(0x0DAF) __sfr PWM2LDCON
;
3620 unsigned PWM2LDS0
: 1;
3621 unsigned PWM2LDS1
: 1;
3638 unsigned PWM2LDM
: 1;
3639 unsigned PWM2LD
: 1;
3650 unsigned PWM2LDS
: 2;
3653 } __PWM2LDCONbits_t
;
3655 extern __at(0x0DAF) volatile __PWM2LDCONbits_t PWM2LDCONbits
;
3657 #define _PWM2LDCON_PWM2LDS0 0x01
3658 #define _PWM2LDCON_LDS0 0x01
3659 #define _PWM2LDCON_PWM2LDS1 0x02
3660 #define _PWM2LDCON_LDS1 0x02
3661 #define _PWM2LDCON_LDT 0x40
3662 #define _PWM2LDCON_PWM2LDM 0x40
3663 #define _PWM2LDCON_LDA 0x80
3664 #define _PWM2LDCON_PWM2LD 0x80
3666 //==============================================================================
3669 //==============================================================================
3672 extern __at(0x0DB0) __sfr PWM2OFCON
;
3678 unsigned PWM2OFS0
: 1;
3679 unsigned PWM2OFS1
: 1;
3683 unsigned PWM2OFM0
: 1;
3684 unsigned PWM2OFM1
: 1;
3694 unsigned PWM2OFMC
: 1;
3708 unsigned PWM2OFS
: 2;
3715 unsigned PWM2OFM
: 2;
3725 } __PWM2OFCONbits_t
;
3727 extern __at(0x0DB0) volatile __PWM2OFCONbits_t PWM2OFCONbits
;
3729 #define _PWM2OFCON_PWM2OFS0 0x01
3730 #define _PWM2OFCON_OFS0 0x01
3731 #define _PWM2OFCON_PWM2OFS1 0x02
3732 #define _PWM2OFCON_OFS1 0x02
3733 #define _PWM2OFCON_OFO 0x10
3734 #define _PWM2OFCON_PWM2OFMC 0x10
3735 #define _PWM2OFCON_PWM2OFM0 0x20
3736 #define _PWM2OFCON_OFM0 0x20
3737 #define _PWM2OFCON_PWM2OFM1 0x40
3738 #define _PWM2OFCON_OFM1 0x40
3740 //==============================================================================
3742 extern __at(0x0DB1) __sfr PWM3PH
;
3744 //==============================================================================
3747 extern __at(0x0DB1) __sfr PWM3PHL
;
3751 unsigned PWM3PHL0
: 1;
3752 unsigned PWM3PHL1
: 1;
3753 unsigned PWM3PHL2
: 1;
3754 unsigned PWM3PHL3
: 1;
3755 unsigned PWM3PHL4
: 1;
3756 unsigned PWM3PHL5
: 1;
3757 unsigned PWM3PHL6
: 1;
3758 unsigned PWM3PHL7
: 1;
3761 extern __at(0x0DB1) volatile __PWM3PHLbits_t PWM3PHLbits
;
3763 #define _PWM3PHL0 0x01
3764 #define _PWM3PHL1 0x02
3765 #define _PWM3PHL2 0x04
3766 #define _PWM3PHL3 0x08
3767 #define _PWM3PHL4 0x10
3768 #define _PWM3PHL5 0x20
3769 #define _PWM3PHL6 0x40
3770 #define _PWM3PHL7 0x80
3772 //==============================================================================
3775 //==============================================================================
3778 extern __at(0x0DB2) __sfr PWM3PHH
;
3782 unsigned PWM3PHH0
: 1;
3783 unsigned PWM3PHH1
: 1;
3784 unsigned PWM3PHH2
: 1;
3785 unsigned PWM3PHH3
: 1;
3786 unsigned PWM3PHH4
: 1;
3787 unsigned PWM3PHH5
: 1;
3788 unsigned PWM3PHH6
: 1;
3789 unsigned PWM3PHH7
: 1;
3792 extern __at(0x0DB2) volatile __PWM3PHHbits_t PWM3PHHbits
;
3794 #define _PWM3PHH0 0x01
3795 #define _PWM3PHH1 0x02
3796 #define _PWM3PHH2 0x04
3797 #define _PWM3PHH3 0x08
3798 #define _PWM3PHH4 0x10
3799 #define _PWM3PHH5 0x20
3800 #define _PWM3PHH6 0x40
3801 #define _PWM3PHH7 0x80
3803 //==============================================================================
3805 extern __at(0x0DB3) __sfr PWM3DC
;
3807 //==============================================================================
3810 extern __at(0x0DB3) __sfr PWM3DCL
;
3814 unsigned PWM3DCL0
: 1;
3815 unsigned PWM3DCL1
: 1;
3816 unsigned PWM3DCL2
: 1;
3817 unsigned PWM3DCL3
: 1;
3818 unsigned PWM3DCL4
: 1;
3819 unsigned PWM3DCL5
: 1;
3820 unsigned PWM3DCL6
: 1;
3821 unsigned PWM3DCL7
: 1;
3824 extern __at(0x0DB3) volatile __PWM3DCLbits_t PWM3DCLbits
;
3826 #define _PWM3DCL0 0x01
3827 #define _PWM3DCL1 0x02
3828 #define _PWM3DCL2 0x04
3829 #define _PWM3DCL3 0x08
3830 #define _PWM3DCL4 0x10
3831 #define _PWM3DCL5 0x20
3832 #define _PWM3DCL6 0x40
3833 #define _PWM3DCL7 0x80
3835 //==============================================================================
3838 //==============================================================================
3841 extern __at(0x0DB4) __sfr PWM3DCH
;
3845 unsigned PWM3DCH0
: 1;
3846 unsigned PWM3DCH1
: 1;
3847 unsigned PWM3DCH2
: 1;
3848 unsigned PWM3DCH3
: 1;
3849 unsigned PWM3DCH4
: 1;
3850 unsigned PWM3DCH5
: 1;
3851 unsigned PWM3DCH6
: 1;
3852 unsigned PWM3DCH7
: 1;
3855 extern __at(0x0DB4) volatile __PWM3DCHbits_t PWM3DCHbits
;
3857 #define _PWM3DCH0 0x01
3858 #define _PWM3DCH1 0x02
3859 #define _PWM3DCH2 0x04
3860 #define _PWM3DCH3 0x08
3861 #define _PWM3DCH4 0x10
3862 #define _PWM3DCH5 0x20
3863 #define _PWM3DCH6 0x40
3864 #define _PWM3DCH7 0x80
3866 //==============================================================================
3868 extern __at(0x0DB5) __sfr PWM3PR
;
3870 //==============================================================================
3873 extern __at(0x0DB5) __sfr PWM3PRL
;
3877 unsigned PWM3PRL0
: 1;
3878 unsigned PWM3PRL1
: 1;
3879 unsigned PWM3PRL2
: 1;
3880 unsigned PWM3PRL3
: 1;
3881 unsigned PWM3PRL4
: 1;
3882 unsigned PWM3PRL5
: 1;
3883 unsigned PWM3PRL6
: 1;
3884 unsigned PWM3PRL7
: 1;
3887 extern __at(0x0DB5) volatile __PWM3PRLbits_t PWM3PRLbits
;
3889 #define _PWM3PRL0 0x01
3890 #define _PWM3PRL1 0x02
3891 #define _PWM3PRL2 0x04
3892 #define _PWM3PRL3 0x08
3893 #define _PWM3PRL4 0x10
3894 #define _PWM3PRL5 0x20
3895 #define _PWM3PRL6 0x40
3896 #define _PWM3PRL7 0x80
3898 //==============================================================================
3901 //==============================================================================
3904 extern __at(0x0DB6) __sfr PWM3PRH
;
3908 unsigned PWM3PRH0
: 1;
3909 unsigned PWM3PRH1
: 1;
3910 unsigned PWM3PRH2
: 1;
3911 unsigned PWM3PRH3
: 1;
3912 unsigned PWM3PRH4
: 1;
3913 unsigned PWM3PRH5
: 1;
3914 unsigned PWM3PRH6
: 1;
3915 unsigned PWM3PRH7
: 1;
3918 extern __at(0x0DB6) volatile __PWM3PRHbits_t PWM3PRHbits
;
3920 #define _PWM3PRH0 0x01
3921 #define _PWM3PRH1 0x02
3922 #define _PWM3PRH2 0x04
3923 #define _PWM3PRH3 0x08
3924 #define _PWM3PRH4 0x10
3925 #define _PWM3PRH5 0x20
3926 #define _PWM3PRH6 0x40
3927 #define _PWM3PRH7 0x80
3929 //==============================================================================
3931 extern __at(0x0DB7) __sfr PWM3OF
;
3933 //==============================================================================
3936 extern __at(0x0DB7) __sfr PWM3OFL
;
3940 unsigned PWM3OFL0
: 1;
3941 unsigned PWM3OFL1
: 1;
3942 unsigned PWM3OFL2
: 1;
3943 unsigned PWM3OFL3
: 1;
3944 unsigned PWM3OFL4
: 1;
3945 unsigned PWM3OFL5
: 1;
3946 unsigned PWM3OFL6
: 1;
3947 unsigned PWM3OFL7
: 1;
3950 extern __at(0x0DB7) volatile __PWM3OFLbits_t PWM3OFLbits
;
3952 #define _PWM3OFL0 0x01
3953 #define _PWM3OFL1 0x02
3954 #define _PWM3OFL2 0x04
3955 #define _PWM3OFL3 0x08
3956 #define _PWM3OFL4 0x10
3957 #define _PWM3OFL5 0x20
3958 #define _PWM3OFL6 0x40
3959 #define _PWM3OFL7 0x80
3961 //==============================================================================
3964 //==============================================================================
3967 extern __at(0x0DB8) __sfr PWM3OFH
;
3971 unsigned PWM3OFH0
: 1;
3972 unsigned PWM3OFH1
: 1;
3973 unsigned PWM3OFH2
: 1;
3974 unsigned PWM3OFH3
: 1;
3975 unsigned PWM3OFH4
: 1;
3976 unsigned PWM3OFH5
: 1;
3977 unsigned PWM3OFH6
: 1;
3978 unsigned PWM3OFH7
: 1;
3981 extern __at(0x0DB8) volatile __PWM3OFHbits_t PWM3OFHbits
;
3983 #define _PWM3OFH0 0x01
3984 #define _PWM3OFH1 0x02
3985 #define _PWM3OFH2 0x04
3986 #define _PWM3OFH3 0x08
3987 #define _PWM3OFH4 0x10
3988 #define _PWM3OFH5 0x20
3989 #define _PWM3OFH6 0x40
3990 #define _PWM3OFH7 0x80
3992 //==============================================================================
3994 extern __at(0x0DB9) __sfr PWM3TMR
;
3996 //==============================================================================
3999 extern __at(0x0DB9) __sfr PWM3TMRL
;
4003 unsigned PWM3TMRL0
: 1;
4004 unsigned PWM3TMRL1
: 1;
4005 unsigned PWM3TMRL2
: 1;
4006 unsigned PWM3TMRL3
: 1;
4007 unsigned PWM3TMRL4
: 1;
4008 unsigned PWM3TMRL5
: 1;
4009 unsigned PWM3TMRL6
: 1;
4010 unsigned PWM3TMRL7
: 1;
4013 extern __at(0x0DB9) volatile __PWM3TMRLbits_t PWM3TMRLbits
;
4015 #define _PWM3TMRL0 0x01
4016 #define _PWM3TMRL1 0x02
4017 #define _PWM3TMRL2 0x04
4018 #define _PWM3TMRL3 0x08
4019 #define _PWM3TMRL4 0x10
4020 #define _PWM3TMRL5 0x20
4021 #define _PWM3TMRL6 0x40
4022 #define _PWM3TMRL7 0x80
4024 //==============================================================================
4027 //==============================================================================
4030 extern __at(0x0DBA) __sfr PWM3TMRH
;
4034 unsigned PWM3TMRH0
: 1;
4035 unsigned PWM3TMRH1
: 1;
4036 unsigned PWM3TMRH2
: 1;
4037 unsigned PWM3TMRH3
: 1;
4038 unsigned PWM3TMRH4
: 1;
4039 unsigned PWM3TMRH5
: 1;
4040 unsigned PWM3TMRH6
: 1;
4041 unsigned PWM3TMRH7
: 1;
4044 extern __at(0x0DBA) volatile __PWM3TMRHbits_t PWM3TMRHbits
;
4046 #define _PWM3TMRH0 0x01
4047 #define _PWM3TMRH1 0x02
4048 #define _PWM3TMRH2 0x04
4049 #define _PWM3TMRH3 0x08
4050 #define _PWM3TMRH4 0x10
4051 #define _PWM3TMRH5 0x20
4052 #define _PWM3TMRH6 0x40
4053 #define _PWM3TMRH7 0x80
4055 //==============================================================================
4058 //==============================================================================
4061 extern __at(0x0DBB) __sfr PWM3CON
;
4069 unsigned PWM3MODE0
: 1;
4070 unsigned PWM3MODE1
: 1;
4083 unsigned PWM3POL
: 1;
4084 unsigned PWM3OUT
: 1;
4085 unsigned PWM3OE
: 1;
4086 unsigned PWM3EN
: 1;
4092 unsigned PWM3MODE
: 2;
4104 extern __at(0x0DBB) volatile __PWM3CONbits_t PWM3CONbits
;
4106 #define _PWM3CON_PWM3MODE0 0x04
4107 #define _PWM3CON_MODE0 0x04
4108 #define _PWM3CON_PWM3MODE1 0x08
4109 #define _PWM3CON_MODE1 0x08
4110 #define _PWM3CON_POL 0x10
4111 #define _PWM3CON_PWM3POL 0x10
4112 #define _PWM3CON_OUT 0x20
4113 #define _PWM3CON_PWM3OUT 0x20
4114 #define _PWM3CON_OE 0x40
4115 #define _PWM3CON_PWM3OE 0x40
4116 #define _PWM3CON_EN 0x80
4117 #define _PWM3CON_PWM3EN 0x80
4119 //==============================================================================
4122 //==============================================================================
4125 extern __at(0x0DBC) __sfr PWM3INTCON
;
4143 unsigned PWM3PRIE
: 1;
4144 unsigned PWM3DCIE
: 1;
4145 unsigned PWM3PHIE
: 1;
4146 unsigned PWM3OFIE
: 1;
4152 } __PWM3INTCONbits_t
;
4154 extern __at(0x0DBC) volatile __PWM3INTCONbits_t PWM3INTCONbits
;
4156 #define _PWM3INTCON_PRIE 0x01
4157 #define _PWM3INTCON_PWM3PRIE 0x01
4158 #define _PWM3INTCON_DCIE 0x02
4159 #define _PWM3INTCON_PWM3DCIE 0x02
4160 #define _PWM3INTCON_PHIE 0x04
4161 #define _PWM3INTCON_PWM3PHIE 0x04
4162 #define _PWM3INTCON_OFIE 0x08
4163 #define _PWM3INTCON_PWM3OFIE 0x08
4165 //==============================================================================
4168 //==============================================================================
4171 extern __at(0x0DBC) __sfr PWM3INTE
;
4189 unsigned PWM3PRIE
: 1;
4190 unsigned PWM3DCIE
: 1;
4191 unsigned PWM3PHIE
: 1;
4192 unsigned PWM3OFIE
: 1;
4200 extern __at(0x0DBC) volatile __PWM3INTEbits_t PWM3INTEbits
;
4202 #define _PWM3INTE_PRIE 0x01
4203 #define _PWM3INTE_PWM3PRIE 0x01
4204 #define _PWM3INTE_DCIE 0x02
4205 #define _PWM3INTE_PWM3DCIE 0x02
4206 #define _PWM3INTE_PHIE 0x04
4207 #define _PWM3INTE_PWM3PHIE 0x04
4208 #define _PWM3INTE_OFIE 0x08
4209 #define _PWM3INTE_PWM3OFIE 0x08
4211 //==============================================================================
4214 //==============================================================================
4217 extern __at(0x0DBD) __sfr PWM3INTF
;
4235 unsigned PWM3PRIF
: 1;
4236 unsigned PWM3DCIF
: 1;
4237 unsigned PWM3PHIF
: 1;
4238 unsigned PWM3OFIF
: 1;
4246 extern __at(0x0DBD) volatile __PWM3INTFbits_t PWM3INTFbits
;
4248 #define _PWM3INTF_PRIF 0x01
4249 #define _PWM3INTF_PWM3PRIF 0x01
4250 #define _PWM3INTF_DCIF 0x02
4251 #define _PWM3INTF_PWM3DCIF 0x02
4252 #define _PWM3INTF_PHIF 0x04
4253 #define _PWM3INTF_PWM3PHIF 0x04
4254 #define _PWM3INTF_OFIF 0x08
4255 #define _PWM3INTF_PWM3OFIF 0x08
4257 //==============================================================================
4260 //==============================================================================
4263 extern __at(0x0DBD) __sfr PWM3INTFLG
;
4281 unsigned PWM3PRIF
: 1;
4282 unsigned PWM3DCIF
: 1;
4283 unsigned PWM3PHIF
: 1;
4284 unsigned PWM3OFIF
: 1;
4290 } __PWM3INTFLGbits_t
;
4292 extern __at(0x0DBD) volatile __PWM3INTFLGbits_t PWM3INTFLGbits
;
4294 #define _PWM3INTFLG_PRIF 0x01
4295 #define _PWM3INTFLG_PWM3PRIF 0x01
4296 #define _PWM3INTFLG_DCIF 0x02
4297 #define _PWM3INTFLG_PWM3DCIF 0x02
4298 #define _PWM3INTFLG_PHIF 0x04
4299 #define _PWM3INTFLG_PWM3PHIF 0x04
4300 #define _PWM3INTFLG_OFIF 0x08
4301 #define _PWM3INTFLG_PWM3OFIF 0x08
4303 //==============================================================================
4306 //==============================================================================
4309 extern __at(0x0DBE) __sfr PWM3CLKCON
;
4315 unsigned PWM3CS0
: 1;
4316 unsigned PWM3CS1
: 1;
4319 unsigned PWM3PS0
: 1;
4320 unsigned PWM3PS1
: 1;
4321 unsigned PWM3PS2
: 1;
4339 unsigned PWM3CS
: 2;
4352 unsigned PWM3PS
: 3;
4362 } __PWM3CLKCONbits_t
;
4364 extern __at(0x0DBE) volatile __PWM3CLKCONbits_t PWM3CLKCONbits
;
4366 #define _PWM3CLKCON_PWM3CS0 0x01
4367 #define _PWM3CLKCON_CS0 0x01
4368 #define _PWM3CLKCON_PWM3CS1 0x02
4369 #define _PWM3CLKCON_CS1 0x02
4370 #define _PWM3CLKCON_PWM3PS0 0x10
4371 #define _PWM3CLKCON_PS0 0x10
4372 #define _PWM3CLKCON_PWM3PS1 0x20
4373 #define _PWM3CLKCON_PS1 0x20
4374 #define _PWM3CLKCON_PWM3PS2 0x40
4375 #define _PWM3CLKCON_PS2 0x40
4377 //==============================================================================
4380 //==============================================================================
4383 extern __at(0x0DBF) __sfr PWM3LDCON
;
4389 unsigned PWM3LDS0
: 1;
4390 unsigned PWM3LDS1
: 1;
4407 unsigned PWM3LDM
: 1;
4408 unsigned PWM3LD
: 1;
4413 unsigned PWM3LDS
: 2;
4422 } __PWM3LDCONbits_t
;
4424 extern __at(0x0DBF) volatile __PWM3LDCONbits_t PWM3LDCONbits
;
4426 #define _PWM3LDCON_PWM3LDS0 0x01
4427 #define _PWM3LDCON_LDS0 0x01
4428 #define _PWM3LDCON_PWM3LDS1 0x02
4429 #define _PWM3LDCON_LDS1 0x02
4430 #define _PWM3LDCON_LDT 0x40
4431 #define _PWM3LDCON_PWM3LDM 0x40
4432 #define _PWM3LDCON_LDA 0x80
4433 #define _PWM3LDCON_PWM3LD 0x80
4435 //==============================================================================
4438 //==============================================================================
4441 extern __at(0x0DC0) __sfr PWM3OFCON
;
4447 unsigned PWM3OFS0
: 1;
4448 unsigned PWM3OFS1
: 1;
4452 unsigned PWM3OFM0
: 1;
4453 unsigned PWM3OFM1
: 1;
4463 unsigned PWM3OFMC
: 1;
4477 unsigned PWM3OFS
: 2;
4484 unsigned PWM3OFM
: 2;
4494 } __PWM3OFCONbits_t
;
4496 extern __at(0x0DC0) volatile __PWM3OFCONbits_t PWM3OFCONbits
;
4498 #define _PWM3OFCON_PWM3OFS0 0x01
4499 #define _PWM3OFCON_OFS0 0x01
4500 #define _PWM3OFCON_PWM3OFS1 0x02
4501 #define _PWM3OFCON_OFS1 0x02
4502 #define _PWM3OFCON_OFO 0x10
4503 #define _PWM3OFCON_PWM3OFMC 0x10
4504 #define _PWM3OFCON_PWM3OFM0 0x20
4505 #define _PWM3OFCON_OFM0 0x20
4506 #define _PWM3OFCON_PWM3OFM1 0x40
4507 #define _PWM3OFCON_OFM1 0x40
4509 //==============================================================================
4512 //==============================================================================
4515 extern __at(0x0FE4) __sfr STATUS_SHAD
;
4519 unsigned C_SHAD
: 1;
4520 unsigned DC_SHAD
: 1;
4521 unsigned Z_SHAD
: 1;
4527 } __STATUS_SHADbits_t
;
4529 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
4531 #define _C_SHAD 0x01
4532 #define _DC_SHAD 0x02
4533 #define _Z_SHAD 0x04
4535 //==============================================================================
4537 extern __at(0x0FE5) __sfr WREG_SHAD
;
4538 extern __at(0x0FE6) __sfr BSR_SHAD
;
4539 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
4540 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
4541 extern __at(0x0FE8) __sfr FSR0_SHAD
;
4542 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
4543 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
4544 extern __at(0x0FEA) __sfr FSR1_SHAD
;
4545 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
4546 extern __at(0x0FED) __sfr STKPTR
;
4547 extern __at(0x0FEE) __sfr TOS
;
4548 extern __at(0x0FEE) __sfr TOSL
;
4549 extern __at(0x0FEF) __sfr TOSH
;
4551 //==============================================================================
4553 // Configuration Bits
4555 //==============================================================================
4557 #define _CONFIG1 0x8007
4558 #define _CONFIG2 0x8008
4560 //----------------------------- CONFIG1 Options -------------------------------
4562 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator; I/O function on CLKIN pin.
4563 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz); device clock supplied to CLKIN pin.
4564 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz); device clock supplied to CLKIN pin.
4565 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz); device clock supplied to CLKIN pin.
4566 #define _WDTE_OFF 0x3FE7 // WDT disabled.
4567 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
4568 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
4569 #define _WDTE_ON 0x3FFF // WDT enabled.
4570 #define _PWRTE_ON 0x3FDF // PWRT enabled.
4571 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
4572 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
4573 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
4574 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
4575 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
4576 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
4577 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
4578 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
4579 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
4580 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
4581 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
4583 //----------------------------- CONFIG2 Options -------------------------------
4585 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
4586 #define _WRT_HALF 0x3FFD // 000h to 3FFh write protected, 400h to 7FFh may be modified by EECON control.
4587 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 7FFh may be modified by EECON control.
4588 #define _WRT_OFF 0x3FFF // Write protection off.
4589 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
4590 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
4591 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
4592 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
4593 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
4594 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
4595 #define _BORV_19 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
4596 #define _LPBOREN_ON 0x37FF // LPBOR is enabled.
4597 #define _LPBOREN_OFF 0x3FFF // LPBOR is disabled.
4598 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
4599 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
4600 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
4601 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
4603 //==============================================================================
4605 #define _DEVID1 0x8006
4607 #define _IDLOC0 0x8000
4608 #define _IDLOC1 0x8001
4609 #define _IDLOC2 0x8002
4610 #define _IDLOC3 0x8003
4612 //==============================================================================
4614 #ifndef NO_BIT_DEFINES
4616 #define ADON ADCON0bits.ADON // bit 0
4617 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
4618 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
4619 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
4620 #define NOT_DONE ADCON0bits.NOT_DONE // bit 1, shadows bit in ADCON0bits
4621 #define CHS0 ADCON0bits.CHS0 // bit 2
4622 #define CHS1 ADCON0bits.CHS1 // bit 3
4623 #define CHS2 ADCON0bits.CHS2 // bit 4
4624 #define CHS3 ADCON0bits.CHS3 // bit 5
4625 #define CHS4 ADCON0bits.CHS4 // bit 6
4627 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
4628 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
4629 #define ADCS0 ADCON1bits.ADCS0 // bit 4
4630 #define ADCS1 ADCON1bits.ADCS1 // bit 5
4631 #define ADCS2 ADCON1bits.ADCS2 // bit 6
4632 #define ADFM ADCON1bits.ADFM // bit 7
4634 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
4635 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
4636 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
4637 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
4639 #define ANSA0 ANSELAbits.ANSA0 // bit 0
4640 #define ANSA1 ANSELAbits.ANSA1 // bit 1
4641 #define ANSA2 ANSELAbits.ANSA2 // bit 2
4642 #define ANSA4 ANSELAbits.ANSA4 // bit 4
4644 #define P1SEL APFCONbits.P1SEL // bit 0
4645 #define P2SEL APFCONbits.P2SEL // bit 1
4646 #define TXCKSEL APFCONbits.TXCKSEL // bit 2
4647 #define T1GSEL APFCONbits.T1GSEL // bit 3
4648 #define CWGBSEL APFCONbits.CWGBSEL // bit 5
4649 #define CWGASEL APFCONbits.CWGASEL // bit 6
4650 #define RXDTSEL APFCONbits.RXDTSEL // bit 7
4652 #define ABDEN BAUDCONbits.ABDEN // bit 0
4653 #define WUE BAUDCONbits.WUE // bit 1
4654 #define BRG16 BAUDCONbits.BRG16 // bit 3
4655 #define SCKP BAUDCONbits.SCKP // bit 4
4656 #define RCIDL BAUDCONbits.RCIDL // bit 6
4657 #define ABDOVF BAUDCONbits.ABDOVF // bit 7
4659 #define BORRDY BORCONbits.BORRDY // bit 0
4660 #define BORFS BORCONbits.BORFS // bit 6
4661 #define SBOREN BORCONbits.SBOREN // bit 7
4663 #define BSR0 BSRbits.BSR0 // bit 0
4664 #define BSR1 BSRbits.BSR1 // bit 1
4665 #define BSR2 BSRbits.BSR2 // bit 2
4666 #define BSR3 BSRbits.BSR3 // bit 3
4667 #define BSR4 BSRbits.BSR4 // bit 4
4669 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
4670 #define C1HYS CM1CON0bits.C1HYS // bit 1
4671 #define C1SP CM1CON0bits.C1SP // bit 2
4672 #define C1POL CM1CON0bits.C1POL // bit 4
4673 #define C1OE CM1CON0bits.C1OE // bit 5
4674 #define C1OUT CM1CON0bits.C1OUT // bit 6
4675 #define C1ON CM1CON0bits.C1ON // bit 7
4677 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
4678 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
4679 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
4680 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
4681 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
4682 #define C1INTN CM1CON1bits.C1INTN // bit 6
4683 #define C1INTP CM1CON1bits.C1INTP // bit 7
4685 #define MC1OUT CMOUTbits.MC1OUT // bit 0
4687 #define G1CS0 CWG1CON0bits.G1CS0 // bit 0
4688 #define G1POLA CWG1CON0bits.G1POLA // bit 3
4689 #define G1POLB CWG1CON0bits.G1POLB // bit 4
4690 #define G1OEA CWG1CON0bits.G1OEA // bit 5
4691 #define G1OEB CWG1CON0bits.G1OEB // bit 6
4692 #define G1EN CWG1CON0bits.G1EN // bit 7
4694 #define G1IS0 CWG1CON1bits.G1IS0 // bit 0
4695 #define G1IS1 CWG1CON1bits.G1IS1 // bit 1
4696 #define G1IS2 CWG1CON1bits.G1IS2 // bit 2
4697 #define G1ASDLA0 CWG1CON1bits.G1ASDLA0 // bit 4
4698 #define G1ASDLA1 CWG1CON1bits.G1ASDLA1 // bit 5
4699 #define G1ASDLB0 CWG1CON1bits.G1ASDLB0 // bit 6
4700 #define G1ASDLB1 CWG1CON1bits.G1ASDLB1 // bit 7
4702 #define G1ASDSFLT CWG1CON2bits.G1ASDSFLT // bit 1
4703 #define G1ASDSC1 CWG1CON2bits.G1ASDSC1 // bit 2
4704 #define G1ARSEN CWG1CON2bits.G1ARSEN // bit 6
4705 #define G1ASE CWG1CON2bits.G1ASE // bit 7
4707 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0
4708 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1
4709 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2
4710 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3
4711 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4
4712 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5
4714 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0
4715 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1
4716 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2
4717 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3
4718 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4
4719 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5
4721 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
4722 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
4723 #define DACOE DACCON0bits.DACOE // bit 5
4724 #define DACLPS DACCON0bits.DACLPS // bit 6
4725 #define DACEN DACCON0bits.DACEN // bit 7
4727 #define DACR0 DACCON1bits.DACR0 // bit 0
4728 #define DACR1 DACCON1bits.DACR1 // bit 1
4729 #define DACR2 DACCON1bits.DACR2 // bit 2
4730 #define DACR3 DACCON1bits.DACR3 // bit 3
4731 #define DACR4 DACCON1bits.DACR4 // bit 4
4733 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
4734 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
4735 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
4736 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
4737 #define TSRNG FVRCONbits.TSRNG // bit 4
4738 #define TSEN FVRCONbits.TSEN // bit 5
4739 #define FVRRDY FVRCONbits.FVRRDY // bit 6
4740 #define FVREN FVRCONbits.FVREN // bit 7
4742 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
4743 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
4744 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
4745 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
4746 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
4747 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
4749 #define IOCIF INTCONbits.IOCIF // bit 0
4750 #define INTF INTCONbits.INTF // bit 1
4751 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
4752 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
4753 #define IOCIE INTCONbits.IOCIE // bit 3
4754 #define INTE INTCONbits.INTE // bit 4
4755 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
4756 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
4757 #define PEIE INTCONbits.PEIE // bit 6
4758 #define GIE INTCONbits.GIE // bit 7
4760 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
4761 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
4762 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
4763 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
4764 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
4765 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
4767 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
4768 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
4769 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
4770 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
4771 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
4772 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
4774 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
4775 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
4776 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
4777 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
4778 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
4779 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
4781 #define LATA0 LATAbits.LATA0 // bit 0
4782 #define LATA1 LATAbits.LATA1 // bit 1
4783 #define LATA2 LATAbits.LATA2 // bit 2
4784 #define LATA4 LATAbits.LATA4 // bit 4
4785 #define LATA5 LATAbits.LATA5 // bit 5
4787 #define ODA0 ODCONAbits.ODA0 // bit 0
4788 #define ODA1 ODCONAbits.ODA1 // bit 1
4789 #define ODA2 ODCONAbits.ODA2 // bit 2
4790 #define ODA4 ODCONAbits.ODA4 // bit 4
4791 #define ODA5 ODCONAbits.ODA5 // bit 5
4793 #define PS0 OPTION_REGbits.PS0 // bit 0
4794 #define PS1 OPTION_REGbits.PS1 // bit 1
4795 #define PS2 OPTION_REGbits.PS2 // bit 2
4796 #define PSA OPTION_REGbits.PSA // bit 3
4797 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
4798 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
4799 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
4800 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
4801 #define INTEDG OPTION_REGbits.INTEDG // bit 6
4802 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
4804 #define SCS0 OSCCONbits.SCS0 // bit 0
4805 #define SCS1 OSCCONbits.SCS1 // bit 1
4806 #define IRCF0 OSCCONbits.IRCF0 // bit 3
4807 #define IRCF1 OSCCONbits.IRCF1 // bit 4
4808 #define IRCF2 OSCCONbits.IRCF2 // bit 5
4809 #define IRCF3 OSCCONbits.IRCF3 // bit 6
4810 #define SPLLEN OSCCONbits.SPLLEN // bit 7
4812 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
4813 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
4814 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
4815 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
4816 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
4817 #define OSTS OSCSTATbits.OSTS // bit 5
4818 #define PLLR OSCSTATbits.PLLR // bit 6
4820 #define TUN0 OSCTUNEbits.TUN0 // bit 0
4821 #define TUN1 OSCTUNEbits.TUN1 // bit 1
4822 #define TUN2 OSCTUNEbits.TUN2 // bit 2
4823 #define TUN3 OSCTUNEbits.TUN3 // bit 3
4824 #define TUN4 OSCTUNEbits.TUN4 // bit 4
4825 #define TUN5 OSCTUNEbits.TUN5 // bit 5
4827 #define NOT_BOR PCONbits.NOT_BOR // bit 0
4828 #define NOT_POR PCONbits.NOT_POR // bit 1
4829 #define NOT_RI PCONbits.NOT_RI // bit 2
4830 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
4831 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
4832 #define STKUNF PCONbits.STKUNF // bit 6
4833 #define STKOVF PCONbits.STKOVF // bit 7
4835 #define TMR1IE PIE1bits.TMR1IE // bit 0
4836 #define TMR2IE PIE1bits.TMR2IE // bit 1
4837 #define TXIE PIE1bits.TXIE // bit 4
4838 #define RCIE PIE1bits.RCIE // bit 5
4839 #define ADIE PIE1bits.ADIE // bit 6
4840 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
4842 #define C1IE PIE2bits.C1IE // bit 5
4844 #define PWM1IE PIE3bits.PWM1IE // bit 4
4845 #define PWM2IE PIE3bits.PWM2IE // bit 5
4846 #define PWM3IE PIE3bits.PWM3IE // bit 6
4848 #define TMR1IF PIR1bits.TMR1IF // bit 0
4849 #define TMR2IF PIR1bits.TMR2IF // bit 1
4850 #define TXIF PIR1bits.TXIF // bit 4
4851 #define RCIF PIR1bits.RCIF // bit 5
4852 #define ADIF PIR1bits.ADIF // bit 6
4853 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
4855 #define C1IF PIR2bits.C1IF // bit 5
4857 #define PWM1IF PIR3bits.PWM1IF // bit 4
4858 #define PWM2IF PIR3bits.PWM2IF // bit 5
4859 #define PWM3IF PIR3bits.PWM3IF // bit 6
4861 #define RD PMCON1bits.RD // bit 0
4862 #define WR PMCON1bits.WR // bit 1
4863 #define WREN PMCON1bits.WREN // bit 2
4864 #define WRERR PMCON1bits.WRERR // bit 3
4865 #define FREE PMCON1bits.FREE // bit 4
4866 #define LWLO PMCON1bits.LWLO // bit 5
4867 #define CFGS PMCON1bits.CFGS // bit 6
4869 #define RA0 PORTAbits.RA0 // bit 0
4870 #define RA1 PORTAbits.RA1 // bit 1
4871 #define RA2 PORTAbits.RA2 // bit 2
4872 #define RA3 PORTAbits.RA3 // bit 3
4873 #define RA4 PORTAbits.RA4 // bit 4
4874 #define RA5 PORTAbits.RA5 // bit 5
4876 #define PWM1MODE0 PWM1CONbits.PWM1MODE0 // bit 2, shadows bit in PWM1CONbits
4877 #define MODE0 PWM1CONbits.MODE0 // bit 2, shadows bit in PWM1CONbits
4878 #define PWM1MODE1 PWM1CONbits.PWM1MODE1 // bit 3, shadows bit in PWM1CONbits
4879 #define MODE1 PWM1CONbits.MODE1 // bit 3, shadows bit in PWM1CONbits
4880 #define POL PWM1CONbits.POL // bit 4, shadows bit in PWM1CONbits
4881 #define PWM1POL PWM1CONbits.PWM1POL // bit 4, shadows bit in PWM1CONbits
4882 #define OUT PWM1CONbits.OUT // bit 5, shadows bit in PWM1CONbits
4883 #define PWM1OUT PWM1CONbits.PWM1OUT // bit 5, shadows bit in PWM1CONbits
4884 #define OE PWM1CONbits.OE // bit 6, shadows bit in PWM1CONbits
4885 #define PWM1OE PWM1CONbits.PWM1OE // bit 6, shadows bit in PWM1CONbits
4886 #define EN PWM1CONbits.EN // bit 7, shadows bit in PWM1CONbits
4887 #define PWM1EN PWM1CONbits.PWM1EN // bit 7, shadows bit in PWM1CONbits
4889 #define PWM1DCH0 PWM1DCHbits.PWM1DCH0 // bit 0
4890 #define PWM1DCH1 PWM1DCHbits.PWM1DCH1 // bit 1
4891 #define PWM1DCH2 PWM1DCHbits.PWM1DCH2 // bit 2
4892 #define PWM1DCH3 PWM1DCHbits.PWM1DCH3 // bit 3
4893 #define PWM1DCH4 PWM1DCHbits.PWM1DCH4 // bit 4
4894 #define PWM1DCH5 PWM1DCHbits.PWM1DCH5 // bit 5
4895 #define PWM1DCH6 PWM1DCHbits.PWM1DCH6 // bit 6
4896 #define PWM1DCH7 PWM1DCHbits.PWM1DCH7 // bit 7
4898 #define PWM1DCL0 PWM1DCLbits.PWM1DCL0 // bit 0
4899 #define PWM1DCL1 PWM1DCLbits.PWM1DCL1 // bit 1
4900 #define PWM1DCL2 PWM1DCLbits.PWM1DCL2 // bit 2
4901 #define PWM1DCL3 PWM1DCLbits.PWM1DCL3 // bit 3
4902 #define PWM1DCL4 PWM1DCLbits.PWM1DCL4 // bit 4
4903 #define PWM1DCL5 PWM1DCLbits.PWM1DCL5 // bit 5
4904 #define PWM1DCL6 PWM1DCLbits.PWM1DCL6 // bit 6
4905 #define PWM1DCL7 PWM1DCLbits.PWM1DCL7 // bit 7
4907 #define PRIE PWM1INTCONbits.PRIE // bit 0, shadows bit in PWM1INTCONbits
4908 #define PWM1PRIE PWM1INTCONbits.PWM1PRIE // bit 0, shadows bit in PWM1INTCONbits
4909 #define DCIE PWM1INTCONbits.DCIE // bit 1, shadows bit in PWM1INTCONbits
4910 #define PWM1DCIE PWM1INTCONbits.PWM1DCIE // bit 1, shadows bit in PWM1INTCONbits
4911 #define PHIE PWM1INTCONbits.PHIE // bit 2, shadows bit in PWM1INTCONbits
4912 #define PWM1PHIE PWM1INTCONbits.PWM1PHIE // bit 2, shadows bit in PWM1INTCONbits
4913 #define OFIE PWM1INTCONbits.OFIE // bit 3, shadows bit in PWM1INTCONbits
4914 #define PWM1OFIE PWM1INTCONbits.PWM1OFIE // bit 3, shadows bit in PWM1INTCONbits
4916 #define PRIF PWM1INTFbits.PRIF // bit 0, shadows bit in PWM1INTFbits
4917 #define PWM1PRIF PWM1INTFbits.PWM1PRIF // bit 0, shadows bit in PWM1INTFbits
4918 #define DCIF PWM1INTFbits.DCIF // bit 1, shadows bit in PWM1INTFbits
4919 #define PWM1DCIF PWM1INTFbits.PWM1DCIF // bit 1, shadows bit in PWM1INTFbits
4920 #define PHIF PWM1INTFbits.PHIF // bit 2, shadows bit in PWM1INTFbits
4921 #define PWM1PHIF PWM1INTFbits.PWM1PHIF // bit 2, shadows bit in PWM1INTFbits
4922 #define OFIF PWM1INTFbits.OFIF // bit 3, shadows bit in PWM1INTFbits
4923 #define PWM1OFIF PWM1INTFbits.PWM1OFIF // bit 3, shadows bit in PWM1INTFbits
4925 #define PWM1LDS0 PWM1LDCONbits.PWM1LDS0 // bit 0, shadows bit in PWM1LDCONbits
4926 #define LDS0 PWM1LDCONbits.LDS0 // bit 0, shadows bit in PWM1LDCONbits
4927 #define PWM1LDS1 PWM1LDCONbits.PWM1LDS1 // bit 1, shadows bit in PWM1LDCONbits
4928 #define LDS1 PWM1LDCONbits.LDS1 // bit 1, shadows bit in PWM1LDCONbits
4929 #define LDT PWM1LDCONbits.LDT // bit 6, shadows bit in PWM1LDCONbits
4930 #define PWM1LDM PWM1LDCONbits.PWM1LDM // bit 6, shadows bit in PWM1LDCONbits
4931 #define LDA PWM1LDCONbits.LDA // bit 7, shadows bit in PWM1LDCONbits
4932 #define PWM1LD PWM1LDCONbits.PWM1LD // bit 7, shadows bit in PWM1LDCONbits
4934 #define PWM1OFS0 PWM1OFCONbits.PWM1OFS0 // bit 0, shadows bit in PWM1OFCONbits
4935 #define OFS0 PWM1OFCONbits.OFS0 // bit 0, shadows bit in PWM1OFCONbits
4936 #define PWM1OFS1 PWM1OFCONbits.PWM1OFS1 // bit 1, shadows bit in PWM1OFCONbits
4937 #define OFS1 PWM1OFCONbits.OFS1 // bit 1, shadows bit in PWM1OFCONbits
4938 #define OFO PWM1OFCONbits.OFO // bit 4, shadows bit in PWM1OFCONbits
4939 #define PWM1OFMC PWM1OFCONbits.PWM1OFMC // bit 4, shadows bit in PWM1OFCONbits
4940 #define PWM1OFM0 PWM1OFCONbits.PWM1OFM0 // bit 5, shadows bit in PWM1OFCONbits
4941 #define OFM0 PWM1OFCONbits.OFM0 // bit 5, shadows bit in PWM1OFCONbits
4942 #define PWM1OFM1 PWM1OFCONbits.PWM1OFM1 // bit 6, shadows bit in PWM1OFCONbits
4943 #define OFM1 PWM1OFCONbits.OFM1 // bit 6, shadows bit in PWM1OFCONbits
4945 #define PWM1OFH0 PWM1OFHbits.PWM1OFH0 // bit 0
4946 #define PWM1OFH1 PWM1OFHbits.PWM1OFH1 // bit 1
4947 #define PWM1OFH2 PWM1OFHbits.PWM1OFH2 // bit 2
4948 #define PWM1OFH3 PWM1OFHbits.PWM1OFH3 // bit 3
4949 #define PWM1OFH4 PWM1OFHbits.PWM1OFH4 // bit 4
4950 #define PWM1OFH5 PWM1OFHbits.PWM1OFH5 // bit 5
4951 #define PWM1OFH6 PWM1OFHbits.PWM1OFH6 // bit 6
4952 #define PWM1OFH7 PWM1OFHbits.PWM1OFH7 // bit 7
4954 #define PWM1OFL0 PWM1OFLbits.PWM1OFL0 // bit 0
4955 #define PWM1OFL1 PWM1OFLbits.PWM1OFL1 // bit 1
4956 #define PWM1OFL2 PWM1OFLbits.PWM1OFL2 // bit 2
4957 #define PWM1OFL3 PWM1OFLbits.PWM1OFL3 // bit 3
4958 #define PWM1OFL4 PWM1OFLbits.PWM1OFL4 // bit 4
4959 #define PWM1OFL5 PWM1OFLbits.PWM1OFL5 // bit 5
4960 #define PWM1OFL6 PWM1OFLbits.PWM1OFL6 // bit 6
4961 #define PWM1OFL7 PWM1OFLbits.PWM1OFL7 // bit 7
4963 #define PWM1PHH0 PWM1PHHbits.PWM1PHH0 // bit 0
4964 #define PWM1PHH1 PWM1PHHbits.PWM1PHH1 // bit 1
4965 #define PWM1PHH2 PWM1PHHbits.PWM1PHH2 // bit 2
4966 #define PWM1PHH3 PWM1PHHbits.PWM1PHH3 // bit 3
4967 #define PWM1PHH4 PWM1PHHbits.PWM1PHH4 // bit 4
4968 #define PWM1PHH5 PWM1PHHbits.PWM1PHH5 // bit 5
4969 #define PWM1PHH6 PWM1PHHbits.PWM1PHH6 // bit 6
4970 #define PWM1PHH7 PWM1PHHbits.PWM1PHH7 // bit 7
4972 #define PWM1PHL0 PWM1PHLbits.PWM1PHL0 // bit 0
4973 #define PWM1PHL1 PWM1PHLbits.PWM1PHL1 // bit 1
4974 #define PWM1PHL2 PWM1PHLbits.PWM1PHL2 // bit 2
4975 #define PWM1PHL3 PWM1PHLbits.PWM1PHL3 // bit 3
4976 #define PWM1PHL4 PWM1PHLbits.PWM1PHL4 // bit 4
4977 #define PWM1PHL5 PWM1PHLbits.PWM1PHL5 // bit 5
4978 #define PWM1PHL6 PWM1PHLbits.PWM1PHL6 // bit 6
4979 #define PWM1PHL7 PWM1PHLbits.PWM1PHL7 // bit 7
4981 #define PWM1PRH0 PWM1PRHbits.PWM1PRH0 // bit 0
4982 #define PWM1PRH1 PWM1PRHbits.PWM1PRH1 // bit 1
4983 #define PWM1PRH2 PWM1PRHbits.PWM1PRH2 // bit 2
4984 #define PWM1PRH3 PWM1PRHbits.PWM1PRH3 // bit 3
4985 #define PWM1PRH4 PWM1PRHbits.PWM1PRH4 // bit 4
4986 #define PWM1PRH5 PWM1PRHbits.PWM1PRH5 // bit 5
4987 #define PWM1PRH6 PWM1PRHbits.PWM1PRH6 // bit 6
4988 #define PWM1PRH7 PWM1PRHbits.PWM1PRH7 // bit 7
4990 #define PWM1PRL0 PWM1PRLbits.PWM1PRL0 // bit 0
4991 #define PWM1PRL1 PWM1PRLbits.PWM1PRL1 // bit 1
4992 #define PWM1PRL2 PWM1PRLbits.PWM1PRL2 // bit 2
4993 #define PWM1PRL3 PWM1PRLbits.PWM1PRL3 // bit 3
4994 #define PWM1PRL4 PWM1PRLbits.PWM1PRL4 // bit 4
4995 #define PWM1PRL5 PWM1PRLbits.PWM1PRL5 // bit 5
4996 #define PWM1PRL6 PWM1PRLbits.PWM1PRL6 // bit 6
4997 #define PWM1PRL7 PWM1PRLbits.PWM1PRL7 // bit 7
4999 #define PWM1TMRH0 PWM1TMRHbits.PWM1TMRH0 // bit 0
5000 #define PWM1TMRH1 PWM1TMRHbits.PWM1TMRH1 // bit 1
5001 #define PWM1TMRH2 PWM1TMRHbits.PWM1TMRH2 // bit 2
5002 #define PWM1TMRH3 PWM1TMRHbits.PWM1TMRH3 // bit 3
5003 #define PWM1TMRH4 PWM1TMRHbits.PWM1TMRH4 // bit 4
5004 #define PWM1TMRH5 PWM1TMRHbits.PWM1TMRH5 // bit 5
5005 #define PWM1TMRH6 PWM1TMRHbits.PWM1TMRH6 // bit 6
5006 #define PWM1TMRH7 PWM1TMRHbits.PWM1TMRH7 // bit 7
5008 #define PWM1TMRL0 PWM1TMRLbits.PWM1TMRL0 // bit 0
5009 #define PWM1TMRL1 PWM1TMRLbits.PWM1TMRL1 // bit 1
5010 #define PWM1TMRL2 PWM1TMRLbits.PWM1TMRL2 // bit 2
5011 #define PWM1TMRL3 PWM1TMRLbits.PWM1TMRL3 // bit 3
5012 #define PWM1TMRL4 PWM1TMRLbits.PWM1TMRL4 // bit 4
5013 #define PWM1TMRL5 PWM1TMRLbits.PWM1TMRL5 // bit 5
5014 #define PWM1TMRL6 PWM1TMRLbits.PWM1TMRL6 // bit 6
5015 #define PWM1TMRL7 PWM1TMRLbits.PWM1TMRL7 // bit 7
5017 #define PWM2DCH0 PWM2DCHbits.PWM2DCH0 // bit 0
5018 #define PWM2DCH1 PWM2DCHbits.PWM2DCH1 // bit 1
5019 #define PWM2DCH2 PWM2DCHbits.PWM2DCH2 // bit 2
5020 #define PWM2DCH3 PWM2DCHbits.PWM2DCH3 // bit 3
5021 #define PWM2DCH4 PWM2DCHbits.PWM2DCH4 // bit 4
5022 #define PWM2DCH5 PWM2DCHbits.PWM2DCH5 // bit 5
5023 #define PWM2DCH6 PWM2DCHbits.PWM2DCH6 // bit 6
5024 #define PWM2DCH7 PWM2DCHbits.PWM2DCH7 // bit 7
5026 #define PWM2DCL0 PWM2DCLbits.PWM2DCL0 // bit 0
5027 #define PWM2DCL1 PWM2DCLbits.PWM2DCL1 // bit 1
5028 #define PWM2DCL2 PWM2DCLbits.PWM2DCL2 // bit 2
5029 #define PWM2DCL3 PWM2DCLbits.PWM2DCL3 // bit 3
5030 #define PWM2DCL4 PWM2DCLbits.PWM2DCL4 // bit 4
5031 #define PWM2DCL5 PWM2DCLbits.PWM2DCL5 // bit 5
5032 #define PWM2DCL6 PWM2DCLbits.PWM2DCL6 // bit 6
5033 #define PWM2DCL7 PWM2DCLbits.PWM2DCL7 // bit 7
5035 #define PWM2OFH0 PWM2OFHbits.PWM2OFH0 // bit 0
5036 #define PWM2OFH1 PWM2OFHbits.PWM2OFH1 // bit 1
5037 #define PWM2OFH2 PWM2OFHbits.PWM2OFH2 // bit 2
5038 #define PWM2OFH3 PWM2OFHbits.PWM2OFH3 // bit 3
5039 #define PWM2OFH4 PWM2OFHbits.PWM2OFH4 // bit 4
5040 #define PWM2OFH5 PWM2OFHbits.PWM2OFH5 // bit 5
5041 #define PWM2OFH6 PWM2OFHbits.PWM2OFH6 // bit 6
5042 #define PWM2OFH7 PWM2OFHbits.PWM2OFH7 // bit 7
5044 #define PWM2OFL0 PWM2OFLbits.PWM2OFL0 // bit 0
5045 #define PWM2OFL1 PWM2OFLbits.PWM2OFL1 // bit 1
5046 #define PWM2OFL2 PWM2OFLbits.PWM2OFL2 // bit 2
5047 #define PWM2OFL3 PWM2OFLbits.PWM2OFL3 // bit 3
5048 #define PWM2OFL4 PWM2OFLbits.PWM2OFL4 // bit 4
5049 #define PWM2OFL5 PWM2OFLbits.PWM2OFL5 // bit 5
5050 #define PWM2OFL6 PWM2OFLbits.PWM2OFL6 // bit 6
5051 #define PWM2OFL7 PWM2OFLbits.PWM2OFL7 // bit 7
5053 #define PWM2PHH0 PWM2PHHbits.PWM2PHH0 // bit 0
5054 #define PWM2PHH1 PWM2PHHbits.PWM2PHH1 // bit 1
5055 #define PWM2PHH2 PWM2PHHbits.PWM2PHH2 // bit 2
5056 #define PWM2PHH3 PWM2PHHbits.PWM2PHH3 // bit 3
5057 #define PWM2PHH4 PWM2PHHbits.PWM2PHH4 // bit 4
5058 #define PWM2PHH5 PWM2PHHbits.PWM2PHH5 // bit 5
5059 #define PWM2PHH6 PWM2PHHbits.PWM2PHH6 // bit 6
5060 #define PWM2PHH7 PWM2PHHbits.PWM2PHH7 // bit 7
5062 #define PWM2PHL0 PWM2PHLbits.PWM2PHL0 // bit 0
5063 #define PWM2PHL1 PWM2PHLbits.PWM2PHL1 // bit 1
5064 #define PWM2PHL2 PWM2PHLbits.PWM2PHL2 // bit 2
5065 #define PWM2PHL3 PWM2PHLbits.PWM2PHL3 // bit 3
5066 #define PWM2PHL4 PWM2PHLbits.PWM2PHL4 // bit 4
5067 #define PWM2PHL5 PWM2PHLbits.PWM2PHL5 // bit 5
5068 #define PWM2PHL6 PWM2PHLbits.PWM2PHL6 // bit 6
5069 #define PWM2PHL7 PWM2PHLbits.PWM2PHL7 // bit 7
5071 #define PWM2PRH0 PWM2PRHbits.PWM2PRH0 // bit 0
5072 #define PWM2PRH1 PWM2PRHbits.PWM2PRH1 // bit 1
5073 #define PWM2PRH2 PWM2PRHbits.PWM2PRH2 // bit 2
5074 #define PWM2PRH3 PWM2PRHbits.PWM2PRH3 // bit 3
5075 #define PWM2PRH4 PWM2PRHbits.PWM2PRH4 // bit 4
5076 #define PWM2PRH5 PWM2PRHbits.PWM2PRH5 // bit 5
5077 #define PWM2PRH6 PWM2PRHbits.PWM2PRH6 // bit 6
5078 #define PWM2PRH7 PWM2PRHbits.PWM2PRH7 // bit 7
5080 #define PWM2PRL0 PWM2PRLbits.PWM2PRL0 // bit 0
5081 #define PWM2PRL1 PWM2PRLbits.PWM2PRL1 // bit 1
5082 #define PWM2PRL2 PWM2PRLbits.PWM2PRL2 // bit 2
5083 #define PWM2PRL3 PWM2PRLbits.PWM2PRL3 // bit 3
5084 #define PWM2PRL4 PWM2PRLbits.PWM2PRL4 // bit 4
5085 #define PWM2PRL5 PWM2PRLbits.PWM2PRL5 // bit 5
5086 #define PWM2PRL6 PWM2PRLbits.PWM2PRL6 // bit 6
5087 #define PWM2PRL7 PWM2PRLbits.PWM2PRL7 // bit 7
5089 #define PWM2TMRH0 PWM2TMRHbits.PWM2TMRH0 // bit 0
5090 #define PWM2TMRH1 PWM2TMRHbits.PWM2TMRH1 // bit 1
5091 #define PWM2TMRH2 PWM2TMRHbits.PWM2TMRH2 // bit 2
5092 #define PWM2TMRH3 PWM2TMRHbits.PWM2TMRH3 // bit 3
5093 #define PWM2TMRH4 PWM2TMRHbits.PWM2TMRH4 // bit 4
5094 #define PWM2TMRH5 PWM2TMRHbits.PWM2TMRH5 // bit 5
5095 #define PWM2TMRH6 PWM2TMRHbits.PWM2TMRH6 // bit 6
5096 #define PWM2TMRH7 PWM2TMRHbits.PWM2TMRH7 // bit 7
5098 #define PWM2TMRL0 PWM2TMRLbits.PWM2TMRL0 // bit 0
5099 #define PWM2TMRL1 PWM2TMRLbits.PWM2TMRL1 // bit 1
5100 #define PWM2TMRL2 PWM2TMRLbits.PWM2TMRL2 // bit 2
5101 #define PWM2TMRL3 PWM2TMRLbits.PWM2TMRL3 // bit 3
5102 #define PWM2TMRL4 PWM2TMRLbits.PWM2TMRL4 // bit 4
5103 #define PWM2TMRL5 PWM2TMRLbits.PWM2TMRL5 // bit 5
5104 #define PWM2TMRL6 PWM2TMRLbits.PWM2TMRL6 // bit 6
5105 #define PWM2TMRL7 PWM2TMRLbits.PWM2TMRL7 // bit 7
5107 #define PWM3DCH0 PWM3DCHbits.PWM3DCH0 // bit 0
5108 #define PWM3DCH1 PWM3DCHbits.PWM3DCH1 // bit 1
5109 #define PWM3DCH2 PWM3DCHbits.PWM3DCH2 // bit 2
5110 #define PWM3DCH3 PWM3DCHbits.PWM3DCH3 // bit 3
5111 #define PWM3DCH4 PWM3DCHbits.PWM3DCH4 // bit 4
5112 #define PWM3DCH5 PWM3DCHbits.PWM3DCH5 // bit 5
5113 #define PWM3DCH6 PWM3DCHbits.PWM3DCH6 // bit 6
5114 #define PWM3DCH7 PWM3DCHbits.PWM3DCH7 // bit 7
5116 #define PWM3DCL0 PWM3DCLbits.PWM3DCL0 // bit 0
5117 #define PWM3DCL1 PWM3DCLbits.PWM3DCL1 // bit 1
5118 #define PWM3DCL2 PWM3DCLbits.PWM3DCL2 // bit 2
5119 #define PWM3DCL3 PWM3DCLbits.PWM3DCL3 // bit 3
5120 #define PWM3DCL4 PWM3DCLbits.PWM3DCL4 // bit 4
5121 #define PWM3DCL5 PWM3DCLbits.PWM3DCL5 // bit 5
5122 #define PWM3DCL6 PWM3DCLbits.PWM3DCL6 // bit 6
5123 #define PWM3DCL7 PWM3DCLbits.PWM3DCL7 // bit 7
5125 #define PWM3OFH0 PWM3OFHbits.PWM3OFH0 // bit 0
5126 #define PWM3OFH1 PWM3OFHbits.PWM3OFH1 // bit 1
5127 #define PWM3OFH2 PWM3OFHbits.PWM3OFH2 // bit 2
5128 #define PWM3OFH3 PWM3OFHbits.PWM3OFH3 // bit 3
5129 #define PWM3OFH4 PWM3OFHbits.PWM3OFH4 // bit 4
5130 #define PWM3OFH5 PWM3OFHbits.PWM3OFH5 // bit 5
5131 #define PWM3OFH6 PWM3OFHbits.PWM3OFH6 // bit 6
5132 #define PWM3OFH7 PWM3OFHbits.PWM3OFH7 // bit 7
5134 #define PWM3OFL0 PWM3OFLbits.PWM3OFL0 // bit 0
5135 #define PWM3OFL1 PWM3OFLbits.PWM3OFL1 // bit 1
5136 #define PWM3OFL2 PWM3OFLbits.PWM3OFL2 // bit 2
5137 #define PWM3OFL3 PWM3OFLbits.PWM3OFL3 // bit 3
5138 #define PWM3OFL4 PWM3OFLbits.PWM3OFL4 // bit 4
5139 #define PWM3OFL5 PWM3OFLbits.PWM3OFL5 // bit 5
5140 #define PWM3OFL6 PWM3OFLbits.PWM3OFL6 // bit 6
5141 #define PWM3OFL7 PWM3OFLbits.PWM3OFL7 // bit 7
5143 #define PWM3PHH0 PWM3PHHbits.PWM3PHH0 // bit 0
5144 #define PWM3PHH1 PWM3PHHbits.PWM3PHH1 // bit 1
5145 #define PWM3PHH2 PWM3PHHbits.PWM3PHH2 // bit 2
5146 #define PWM3PHH3 PWM3PHHbits.PWM3PHH3 // bit 3
5147 #define PWM3PHH4 PWM3PHHbits.PWM3PHH4 // bit 4
5148 #define PWM3PHH5 PWM3PHHbits.PWM3PHH5 // bit 5
5149 #define PWM3PHH6 PWM3PHHbits.PWM3PHH6 // bit 6
5150 #define PWM3PHH7 PWM3PHHbits.PWM3PHH7 // bit 7
5152 #define PWM3PHL0 PWM3PHLbits.PWM3PHL0 // bit 0
5153 #define PWM3PHL1 PWM3PHLbits.PWM3PHL1 // bit 1
5154 #define PWM3PHL2 PWM3PHLbits.PWM3PHL2 // bit 2
5155 #define PWM3PHL3 PWM3PHLbits.PWM3PHL3 // bit 3
5156 #define PWM3PHL4 PWM3PHLbits.PWM3PHL4 // bit 4
5157 #define PWM3PHL5 PWM3PHLbits.PWM3PHL5 // bit 5
5158 #define PWM3PHL6 PWM3PHLbits.PWM3PHL6 // bit 6
5159 #define PWM3PHL7 PWM3PHLbits.PWM3PHL7 // bit 7
5161 #define PWM3PRH0 PWM3PRHbits.PWM3PRH0 // bit 0
5162 #define PWM3PRH1 PWM3PRHbits.PWM3PRH1 // bit 1
5163 #define PWM3PRH2 PWM3PRHbits.PWM3PRH2 // bit 2
5164 #define PWM3PRH3 PWM3PRHbits.PWM3PRH3 // bit 3
5165 #define PWM3PRH4 PWM3PRHbits.PWM3PRH4 // bit 4
5166 #define PWM3PRH5 PWM3PRHbits.PWM3PRH5 // bit 5
5167 #define PWM3PRH6 PWM3PRHbits.PWM3PRH6 // bit 6
5168 #define PWM3PRH7 PWM3PRHbits.PWM3PRH7 // bit 7
5170 #define PWM3PRL0 PWM3PRLbits.PWM3PRL0 // bit 0
5171 #define PWM3PRL1 PWM3PRLbits.PWM3PRL1 // bit 1
5172 #define PWM3PRL2 PWM3PRLbits.PWM3PRL2 // bit 2
5173 #define PWM3PRL3 PWM3PRLbits.PWM3PRL3 // bit 3
5174 #define PWM3PRL4 PWM3PRLbits.PWM3PRL4 // bit 4
5175 #define PWM3PRL5 PWM3PRLbits.PWM3PRL5 // bit 5
5176 #define PWM3PRL6 PWM3PRLbits.PWM3PRL6 // bit 6
5177 #define PWM3PRL7 PWM3PRLbits.PWM3PRL7 // bit 7
5179 #define PWM3TMRH0 PWM3TMRHbits.PWM3TMRH0 // bit 0
5180 #define PWM3TMRH1 PWM3TMRHbits.PWM3TMRH1 // bit 1
5181 #define PWM3TMRH2 PWM3TMRHbits.PWM3TMRH2 // bit 2
5182 #define PWM3TMRH3 PWM3TMRHbits.PWM3TMRH3 // bit 3
5183 #define PWM3TMRH4 PWM3TMRHbits.PWM3TMRH4 // bit 4
5184 #define PWM3TMRH5 PWM3TMRHbits.PWM3TMRH5 // bit 5
5185 #define PWM3TMRH6 PWM3TMRHbits.PWM3TMRH6 // bit 6
5186 #define PWM3TMRH7 PWM3TMRHbits.PWM3TMRH7 // bit 7
5188 #define PWM3TMRL0 PWM3TMRLbits.PWM3TMRL0 // bit 0
5189 #define PWM3TMRL1 PWM3TMRLbits.PWM3TMRL1 // bit 1
5190 #define PWM3TMRL2 PWM3TMRLbits.PWM3TMRL2 // bit 2
5191 #define PWM3TMRL3 PWM3TMRLbits.PWM3TMRL3 // bit 3
5192 #define PWM3TMRL4 PWM3TMRLbits.PWM3TMRL4 // bit 4
5193 #define PWM3TMRL5 PWM3TMRLbits.PWM3TMRL5 // bit 5
5194 #define PWM3TMRL6 PWM3TMRLbits.PWM3TMRL6 // bit 6
5195 #define PWM3TMRL7 PWM3TMRLbits.PWM3TMRL7 // bit 7
5197 #define PWM1EN_A PWMENbits.PWM1EN_A // bit 0, shadows bit in PWMENbits
5198 #define MPWM1EN PWMENbits.MPWM1EN // bit 0, shadows bit in PWMENbits
5199 #define PWM2EN_A PWMENbits.PWM2EN_A // bit 1, shadows bit in PWMENbits
5200 #define MPWM2EN PWMENbits.MPWM2EN // bit 1, shadows bit in PWMENbits
5201 #define PWM3EN_A PWMENbits.PWM3EN_A // bit 2, shadows bit in PWMENbits
5202 #define MPWM3EN PWMENbits.MPWM3EN // bit 2, shadows bit in PWMENbits
5204 #define PWM1LDA_A PWMLDbits.PWM1LDA_A // bit 0, shadows bit in PWMLDbits
5205 #define MPWM1LD PWMLDbits.MPWM1LD // bit 0, shadows bit in PWMLDbits
5206 #define PWM2LDA_A PWMLDbits.PWM2LDA_A // bit 1, shadows bit in PWMLDbits
5207 #define MPWM2LD PWMLDbits.MPWM2LD // bit 1, shadows bit in PWMLDbits
5208 #define PWM3LDA_A PWMLDbits.PWM3LDA_A // bit 2, shadows bit in PWMLDbits
5209 #define MPWM3LD PWMLDbits.MPWM3LD // bit 2, shadows bit in PWMLDbits
5211 #define PWM1OUT_A PWMOUTbits.PWM1OUT_A // bit 0, shadows bit in PWMOUTbits
5212 #define MPWM1OUT PWMOUTbits.MPWM1OUT // bit 0, shadows bit in PWMOUTbits
5213 #define PWM2OUT_A PWMOUTbits.PWM2OUT_A // bit 1, shadows bit in PWMOUTbits
5214 #define MPWM2OUT PWMOUTbits.MPWM2OUT // bit 1, shadows bit in PWMOUTbits
5215 #define PWM3OUT_A PWMOUTbits.PWM3OUT_A // bit 2, shadows bit in PWMOUTbits
5216 #define MPWM3OUT PWMOUTbits.MPWM3OUT // bit 2, shadows bit in PWMOUTbits
5218 #define RX9D RCSTAbits.RX9D // bit 0
5219 #define OERR RCSTAbits.OERR // bit 1
5220 #define FERR RCSTAbits.FERR // bit 2
5221 #define ADDEN RCSTAbits.ADDEN // bit 3
5222 #define CREN RCSTAbits.CREN // bit 4
5223 #define SREN RCSTAbits.SREN // bit 5
5224 #define RX9 RCSTAbits.RX9 // bit 6
5225 #define SPEN RCSTAbits.SPEN // bit 7
5227 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
5228 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
5229 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
5230 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
5231 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
5233 #define C STATUSbits.C // bit 0
5234 #define DC STATUSbits.DC // bit 1
5235 #define Z STATUSbits.Z // bit 2
5236 #define NOT_PD STATUSbits.NOT_PD // bit 3
5237 #define NOT_TO STATUSbits.NOT_TO // bit 4
5239 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
5240 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
5241 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
5243 #define TMR1ON T1CONbits.TMR1ON // bit 0
5244 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
5245 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
5246 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
5247 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
5248 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
5250 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
5251 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
5252 #define T1GVAL T1GCONbits.T1GVAL // bit 2
5253 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
5254 #define T1GGO T1GCONbits.T1GGO // bit 3, shadows bit in T1GCONbits
5255 #define T1GSPM T1GCONbits.T1GSPM // bit 4
5256 #define T1GTM T1GCONbits.T1GTM // bit 5
5257 #define T1GPOL T1GCONbits.T1GPOL // bit 6
5258 #define TMR1GE T1GCONbits.TMR1GE // bit 7
5260 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
5261 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
5262 #define TMR2ON T2CONbits.TMR2ON // bit 2
5263 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
5264 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
5265 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
5266 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
5268 #define TRISA0 TRISAbits.TRISA0 // bit 0
5269 #define TRISA1 TRISAbits.TRISA1 // bit 1
5270 #define TRISA2 TRISAbits.TRISA2 // bit 2
5271 #define TRISA3 TRISAbits.TRISA3 // bit 3
5272 #define TRISA4 TRISAbits.TRISA4 // bit 4
5273 #define TRISA5 TRISAbits.TRISA5 // bit 5
5275 #define TX9D TXSTAbits.TX9D // bit 0
5276 #define TRMT TXSTAbits.TRMT // bit 1
5277 #define BRGH TXSTAbits.BRGH // bit 2
5278 #define SENDB TXSTAbits.SENDB // bit 3
5279 #define SYNC TXSTAbits.SYNC // bit 4
5280 #define TXEN TXSTAbits.TXEN // bit 5
5281 #define TX9 TXSTAbits.TX9 // bit 6
5282 #define CSRC TXSTAbits.CSRC // bit 7
5284 #define VREGPM VREGCONbits.VREGPM // bit 1
5286 #define SWDTEN WDTCONbits.SWDTEN // bit 0
5287 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
5288 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
5289 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
5290 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
5291 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
5293 #define WPUA0 WPUAbits.WPUA0 // bit 0
5294 #define WPUA1 WPUAbits.WPUA1 // bit 1
5295 #define WPUA2 WPUAbits.WPUA2 // bit 2
5296 #define WPUA3 WPUAbits.WPUA3 // bit 3
5297 #define WPUA4 WPUAbits.WPUA4 // bit 4
5298 #define WPUA5 WPUAbits.WPUA5 // bit 5
5300 #endif // #ifndef NO_BIT_DEFINES
5302 #endif // #ifndef __PIC12F1572_H__