2 * This declarations of the PIC12LF1572 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 __PIC12LF1572_H__
26 #define __PIC12LF1572_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 RCREG_ADDR 0x0199
99 #define TXREG_ADDR 0x019A
100 #define SPBRG_ADDR 0x019B
101 #define SPBRGL_ADDR 0x019B
102 #define SPBRGH_ADDR 0x019C
103 #define RCSTA_ADDR 0x019D
104 #define TXSTA_ADDR 0x019E
105 #define BAUDCON_ADDR 0x019F
106 #define WPUA_ADDR 0x020C
107 #define ODCONA_ADDR 0x028C
108 #define SLRCONA_ADDR 0x030C
109 #define INLVLA_ADDR 0x038C
110 #define IOCAP_ADDR 0x0391
111 #define IOCAN_ADDR 0x0392
112 #define IOCAF_ADDR 0x0393
113 #define CWG1DBR_ADDR 0x0691
114 #define CWG1DBF_ADDR 0x0692
115 #define CWG1CON0_ADDR 0x0693
116 #define CWG1CON1_ADDR 0x0694
117 #define CWG1CON2_ADDR 0x0695
118 #define PWMEN_ADDR 0x0D8E
119 #define PWMLD_ADDR 0x0D8F
120 #define PWMOUT_ADDR 0x0D90
121 #define PWM1PH_ADDR 0x0D91
122 #define PWM1PHL_ADDR 0x0D91
123 #define PWM1PHH_ADDR 0x0D92
124 #define PWM1DC_ADDR 0x0D93
125 #define PWM1DCL_ADDR 0x0D93
126 #define PWM1DCH_ADDR 0x0D94
127 #define PWM1PR_ADDR 0x0D95
128 #define PWM1PRL_ADDR 0x0D95
129 #define PWM1PRH_ADDR 0x0D96
130 #define PWM1OF_ADDR 0x0D97
131 #define PWM1OFL_ADDR 0x0D97
132 #define PWM1OFH_ADDR 0x0D98
133 #define PWM1TMR_ADDR 0x0D99
134 #define PWM1TMRL_ADDR 0x0D99
135 #define PWM1TMRH_ADDR 0x0D9A
136 #define PWM1CON_ADDR 0x0D9B
137 #define PWM1INTCON_ADDR 0x0D9C
138 #define PWM1INTE_ADDR 0x0D9C
139 #define PWM1INTF_ADDR 0x0D9D
140 #define PWM1INTFLG_ADDR 0x0D9D
141 #define PWM1CLKCON_ADDR 0x0D9E
142 #define PWM1LDCON_ADDR 0x0D9F
143 #define PWM1OFCON_ADDR 0x0DA0
144 #define PWM2PH_ADDR 0x0DA1
145 #define PWM2PHL_ADDR 0x0DA1
146 #define PWM2PHH_ADDR 0x0DA2
147 #define PWM2DC_ADDR 0x0DA3
148 #define PWM2DCL_ADDR 0x0DA3
149 #define PWM2DCH_ADDR 0x0DA4
150 #define PWM2PR_ADDR 0x0DA5
151 #define PWM2PRL_ADDR 0x0DA5
152 #define PWM2PRH_ADDR 0x0DA6
153 #define PWM2OF_ADDR 0x0DA7
154 #define PWM2OFL_ADDR 0x0DA7
155 #define PWM2OFH_ADDR 0x0DA8
156 #define PWM2TMR_ADDR 0x0DA9
157 #define PWM2TMRL_ADDR 0x0DA9
158 #define PWM2TMRH_ADDR 0x0DAA
159 #define PWM2CON_ADDR 0x0DAB
160 #define PWM2INTCON_ADDR 0x0DAC
161 #define PWM2INTE_ADDR 0x0DAC
162 #define PWM2INTF_ADDR 0x0DAD
163 #define PWM2INTFLG_ADDR 0x0DAD
164 #define PWM2CLKCON_ADDR 0x0DAE
165 #define PWM2LDCON_ADDR 0x0DAF
166 #define PWM2OFCON_ADDR 0x0DB0
167 #define PWM3PH_ADDR 0x0DB1
168 #define PWM3PHL_ADDR 0x0DB1
169 #define PWM3PHH_ADDR 0x0DB2
170 #define PWM3DC_ADDR 0x0DB3
171 #define PWM3DCL_ADDR 0x0DB3
172 #define PWM3DCH_ADDR 0x0DB4
173 #define PWM3PR_ADDR 0x0DB5
174 #define PWM3PRL_ADDR 0x0DB5
175 #define PWM3PRH_ADDR 0x0DB6
176 #define PWM3OF_ADDR 0x0DB7
177 #define PWM3OFL_ADDR 0x0DB7
178 #define PWM3OFH_ADDR 0x0DB8
179 #define PWM3TMR_ADDR 0x0DB9
180 #define PWM3TMRL_ADDR 0x0DB9
181 #define PWM3TMRH_ADDR 0x0DBA
182 #define PWM3CON_ADDR 0x0DBB
183 #define PWM3INTCON_ADDR 0x0DBC
184 #define PWM3INTE_ADDR 0x0DBC
185 #define PWM3INTF_ADDR 0x0DBD
186 #define PWM3INTFLG_ADDR 0x0DBD
187 #define PWM3CLKCON_ADDR 0x0DBE
188 #define PWM3LDCON_ADDR 0x0DBF
189 #define PWM3OFCON_ADDR 0x0DC0
190 #define STATUS_SHAD_ADDR 0x0FE4
191 #define WREG_SHAD_ADDR 0x0FE5
192 #define BSR_SHAD_ADDR 0x0FE6
193 #define PCLATH_SHAD_ADDR 0x0FE7
194 #define FSR0L_SHAD_ADDR 0x0FE8
195 #define FSR0_SHAD_ADDR 0x0FE8
196 #define FSR0H_SHAD_ADDR 0x0FE9
197 #define FSR1L_SHAD_ADDR 0x0FEA
198 #define FSR1_SHAD_ADDR 0x0FEA
199 #define FSR1H_SHAD_ADDR 0x0FEB
200 #define STKPTR_ADDR 0x0FED
201 #define TOS_ADDR 0x0FEE
202 #define TOSL_ADDR 0x0FEE
203 #define TOSH_ADDR 0x0FEF
205 #endif // #ifndef NO_ADDR_DEFINES
207 //==============================================================================
209 // Register Definitions
211 //==============================================================================
213 extern __at(0x0000) __sfr INDF0
;
214 extern __at(0x0001) __sfr INDF1
;
215 extern __at(0x0002) __sfr PCL
;
217 //==============================================================================
220 extern __at(0x0003) __sfr STATUS
;
234 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
242 //==============================================================================
244 extern __at(0x0004) __sfr FSR0
;
245 extern __at(0x0004) __sfr FSR0L
;
246 extern __at(0x0005) __sfr FSR0H
;
247 extern __at(0x0006) __sfr FSR1
;
248 extern __at(0x0006) __sfr FSR1L
;
249 extern __at(0x0007) __sfr FSR1H
;
251 //==============================================================================
254 extern __at(0x0008) __sfr BSR
;
277 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
285 //==============================================================================
287 extern __at(0x0009) __sfr WREG
;
288 extern __at(0x000A) __sfr PCLATH
;
290 //==============================================================================
293 extern __at(0x000B) __sfr INTCON
;
322 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
335 //==============================================================================
338 //==============================================================================
341 extern __at(0x000C) __sfr PORTA
;
364 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
373 //==============================================================================
376 //==============================================================================
379 extern __at(0x0011) __sfr PIR1
;
390 unsigned TMR1GIF
: 1;
393 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
400 #define _TMR1GIF 0x80
402 //==============================================================================
405 //==============================================================================
408 extern __at(0x0012) __sfr PIR2
;
422 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
426 //==============================================================================
429 //==============================================================================
432 extern __at(0x0013) __sfr PIR3
;
446 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
452 //==============================================================================
454 extern __at(0x0015) __sfr TMR0
;
455 extern __at(0x0016) __sfr TMR1
;
456 extern __at(0x0016) __sfr TMR1L
;
457 extern __at(0x0017) __sfr TMR1H
;
459 //==============================================================================
462 extern __at(0x0018) __sfr T1CON
;
470 unsigned NOT_T1SYNC
: 1;
472 unsigned T1CKPS0
: 1;
473 unsigned T1CKPS1
: 1;
474 unsigned TMR1CS0
: 1;
475 unsigned TMR1CS1
: 1;
492 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
495 #define _NOT_T1SYNC 0x04
496 #define _T1CKPS0 0x10
497 #define _T1CKPS1 0x20
498 #define _TMR1CS0 0x40
499 #define _TMR1CS1 0x80
501 //==============================================================================
504 //==============================================================================
507 extern __at(0x0019) __sfr T1GCON
;
516 unsigned T1GGO_NOT_DONE
: 1;
542 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
547 #define _T1GGO_NOT_DONE 0x08
554 //==============================================================================
556 extern __at(0x001A) __sfr TMR2
;
557 extern __at(0x001B) __sfr PR2
;
559 //==============================================================================
562 extern __at(0x001C) __sfr T2CON
;
568 unsigned T2CKPS0
: 1;
569 unsigned T2CKPS1
: 1;
571 unsigned T2OUTPS0
: 1;
572 unsigned T2OUTPS1
: 1;
573 unsigned T2OUTPS2
: 1;
574 unsigned T2OUTPS3
: 1;
587 unsigned T2OUTPS
: 4;
592 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
594 #define _T2CKPS0 0x01
595 #define _T2CKPS1 0x02
597 #define _T2OUTPS0 0x08
598 #define _T2OUTPS1 0x10
599 #define _T2OUTPS2 0x20
600 #define _T2OUTPS3 0x40
602 //==============================================================================
605 //==============================================================================
608 extern __at(0x008C) __sfr TRISA
;
631 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
640 //==============================================================================
643 //==============================================================================
646 extern __at(0x0091) __sfr PIE1
;
657 unsigned TMR1GIE
: 1;
660 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
667 #define _TMR1GIE 0x80
669 //==============================================================================
672 //==============================================================================
675 extern __at(0x0092) __sfr PIE2
;
689 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
693 //==============================================================================
696 //==============================================================================
699 extern __at(0x0093) __sfr PIE3
;
713 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
719 //==============================================================================
722 //==============================================================================
725 extern __at(0x0095) __sfr OPTION_REG
;
738 unsigned NOT_WPUEN
: 1;
758 } __OPTION_REGbits_t
;
760 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
771 #define _NOT_WPUEN 0x80
773 //==============================================================================
776 //==============================================================================
779 extern __at(0x0096) __sfr PCON
;
783 unsigned NOT_BOR
: 1;
784 unsigned NOT_POR
: 1;
786 unsigned NOT_RMCLR
: 1;
787 unsigned NOT_RWDT
: 1;
793 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
795 #define _NOT_BOR 0x01
796 #define _NOT_POR 0x02
798 #define _NOT_RMCLR 0x08
799 #define _NOT_RWDT 0x10
803 //==============================================================================
806 //==============================================================================
809 extern __at(0x0097) __sfr WDTCON
;
833 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
842 //==============================================================================
845 //==============================================================================
848 extern __at(0x0098) __sfr OSCTUNE
;
871 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
880 //==============================================================================
883 //==============================================================================
886 extern __at(0x0099) __sfr OSCCON
;
916 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
926 //==============================================================================
929 //==============================================================================
932 extern __at(0x009A) __sfr OSCSTAT
;
946 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
956 //==============================================================================
958 extern __at(0x009B) __sfr ADRES
;
959 extern __at(0x009B) __sfr ADRESL
;
960 extern __at(0x009C) __sfr ADRESH
;
962 //==============================================================================
965 extern __at(0x009D) __sfr ADCON0
;
972 unsigned GO_NOT_DONE
: 1;
1008 unsigned NOT_DONE
: 1;
1025 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1028 #define _GO_NOT_DONE 0x02
1031 #define _NOT_DONE 0x02
1038 //==============================================================================
1041 //==============================================================================
1044 extern __at(0x009E) __sfr ADCON1
;
1050 unsigned ADPREF0
: 1;
1051 unsigned ADPREF1
: 1;
1062 unsigned ADPREF
: 2;
1074 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1076 #define _ADPREF0 0x01
1077 #define _ADPREF1 0x02
1083 //==============================================================================
1086 //==============================================================================
1089 extern __at(0x009F) __sfr ADCON2
;
1099 unsigned TRIGSEL0
: 1;
1100 unsigned TRIGSEL1
: 1;
1101 unsigned TRIGSEL2
: 1;
1102 unsigned TRIGSEL3
: 1;
1108 unsigned TRIGSEL
: 4;
1112 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1114 #define _TRIGSEL0 0x10
1115 #define _TRIGSEL1 0x20
1116 #define _TRIGSEL2 0x40
1117 #define _TRIGSEL3 0x80
1119 //==============================================================================
1122 //==============================================================================
1125 extern __at(0x010C) __sfr LATA
;
1139 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1147 //==============================================================================
1150 //==============================================================================
1153 extern __at(0x0111) __sfr CM1CON0
;
1157 unsigned C1SYNC
: 1;
1167 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1169 #define _C1SYNC 0x01
1177 //==============================================================================
1180 //==============================================================================
1183 extern __at(0x0112) __sfr CM1CON1
;
1189 unsigned C1NCH0
: 1;
1190 unsigned C1NCH1
: 1;
1191 unsigned C1NCH2
: 1;
1193 unsigned C1PCH0
: 1;
1194 unsigned C1PCH1
: 1;
1195 unsigned C1INTN
: 1;
1196 unsigned C1INTP
: 1;
1213 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1215 #define _C1NCH0 0x01
1216 #define _C1NCH1 0x02
1217 #define _C1NCH2 0x04
1218 #define _C1PCH0 0x10
1219 #define _C1PCH1 0x20
1220 #define _C1INTN 0x40
1221 #define _C1INTP 0x80
1223 //==============================================================================
1226 //==============================================================================
1229 extern __at(0x0115) __sfr CMOUT
;
1233 unsigned MC1OUT
: 1;
1243 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1245 #define _MC1OUT 0x01
1247 //==============================================================================
1250 //==============================================================================
1253 extern __at(0x0116) __sfr BORCON
;
1257 unsigned BORRDY
: 1;
1264 unsigned SBOREN
: 1;
1267 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1269 #define _BORRDY 0x01
1271 #define _SBOREN 0x80
1273 //==============================================================================
1276 //==============================================================================
1279 extern __at(0x0117) __sfr FVRCON
;
1285 unsigned ADFVR0
: 1;
1286 unsigned ADFVR1
: 1;
1287 unsigned CDAFVR0
: 1;
1288 unsigned CDAFVR1
: 1;
1291 unsigned FVRRDY
: 1;
1304 unsigned CDAFVR
: 2;
1309 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1311 #define _ADFVR0 0x01
1312 #define _ADFVR1 0x02
1313 #define _CDAFVR0 0x04
1314 #define _CDAFVR1 0x08
1317 #define _FVRRDY 0x40
1320 //==============================================================================
1323 //==============================================================================
1326 extern __at(0x0118) __sfr DACCON0
;
1334 unsigned DACPSS0
: 1;
1335 unsigned DACPSS1
: 1;
1338 unsigned DACLPS
: 1;
1345 unsigned DACPSS
: 2;
1350 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1352 #define _DACPSS0 0x04
1353 #define _DACPSS1 0x08
1355 #define _DACLPS 0x40
1358 //==============================================================================
1361 //==============================================================================
1364 extern __at(0x0119) __sfr DACCON1
;
1387 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1395 //==============================================================================
1398 //==============================================================================
1401 extern __at(0x011D) __sfr APFCON
;
1407 unsigned TXCKSEL
: 1;
1408 unsigned T1GSEL
: 1;
1410 unsigned CWGBSEL
: 1;
1411 unsigned CWGASEL
: 1;
1412 unsigned RXDTSEL
: 1;
1415 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
1419 #define _TXCKSEL 0x04
1420 #define _T1GSEL 0x08
1421 #define _CWGBSEL 0x20
1422 #define _CWGASEL 0x40
1423 #define _RXDTSEL 0x80
1425 //==============================================================================
1428 //==============================================================================
1431 extern __at(0x011D) __sfr APFCON0
;
1437 unsigned TXCKSEL
: 1;
1438 unsigned T1GSEL
: 1;
1440 unsigned CWGBSEL
: 1;
1441 unsigned CWGASEL
: 1;
1442 unsigned RXDTSEL
: 1;
1445 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits
;
1447 #define _APFCON0_P1SEL 0x01
1448 #define _APFCON0_P2SEL 0x02
1449 #define _APFCON0_TXCKSEL 0x04
1450 #define _APFCON0_T1GSEL 0x08
1451 #define _APFCON0_CWGBSEL 0x20
1452 #define _APFCON0_CWGASEL 0x40
1453 #define _APFCON0_RXDTSEL 0x80
1455 //==============================================================================
1458 //==============================================================================
1461 extern __at(0x018C) __sfr ANSELA
;
1475 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
1482 //==============================================================================
1484 extern __at(0x0191) __sfr PMADR
;
1485 extern __at(0x0191) __sfr PMADRL
;
1486 extern __at(0x0192) __sfr PMADRH
;
1487 extern __at(0x0193) __sfr PMDAT
;
1488 extern __at(0x0193) __sfr PMDATL
;
1489 extern __at(0x0194) __sfr PMDATH
;
1491 //==============================================================================
1494 extern __at(0x0195) __sfr PMCON1
;
1508 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits
;
1518 //==============================================================================
1520 extern __at(0x0196) __sfr PMCON2
;
1521 extern __at(0x0199) __sfr RCREG
;
1522 extern __at(0x019A) __sfr TXREG
;
1523 extern __at(0x019B) __sfr SPBRG
;
1524 extern __at(0x019B) __sfr SPBRGL
;
1525 extern __at(0x019C) __sfr SPBRGH
;
1527 //==============================================================================
1530 extern __at(0x019D) __sfr RCSTA
;
1544 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
1555 //==============================================================================
1558 //==============================================================================
1561 extern __at(0x019E) __sfr TXSTA
;
1575 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
1586 //==============================================================================
1589 //==============================================================================
1592 extern __at(0x019F) __sfr BAUDCON
;
1603 unsigned ABDOVF
: 1;
1606 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
1613 #define _ABDOVF 0x80
1615 //==============================================================================
1618 //==============================================================================
1621 extern __at(0x020C) __sfr WPUA
;
1644 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
1653 //==============================================================================
1656 //==============================================================================
1659 extern __at(0x028C) __sfr ODCONA
;
1673 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
1681 //==============================================================================
1684 //==============================================================================
1687 extern __at(0x030C) __sfr SLRCONA
;
1701 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
1709 //==============================================================================
1712 //==============================================================================
1715 extern __at(0x038C) __sfr INLVLA
;
1721 unsigned INLVLA0
: 1;
1722 unsigned INLVLA1
: 1;
1723 unsigned INLVLA2
: 1;
1724 unsigned INLVLA3
: 1;
1725 unsigned INLVLA4
: 1;
1726 unsigned INLVLA5
: 1;
1733 unsigned INLVLA
: 6;
1738 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
1740 #define _INLVLA0 0x01
1741 #define _INLVLA1 0x02
1742 #define _INLVLA2 0x04
1743 #define _INLVLA3 0x08
1744 #define _INLVLA4 0x10
1745 #define _INLVLA5 0x20
1747 //==============================================================================
1750 //==============================================================================
1753 extern __at(0x0391) __sfr IOCAP
;
1759 unsigned IOCAP0
: 1;
1760 unsigned IOCAP1
: 1;
1761 unsigned IOCAP2
: 1;
1762 unsigned IOCAP3
: 1;
1763 unsigned IOCAP4
: 1;
1764 unsigned IOCAP5
: 1;
1776 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
1778 #define _IOCAP0 0x01
1779 #define _IOCAP1 0x02
1780 #define _IOCAP2 0x04
1781 #define _IOCAP3 0x08
1782 #define _IOCAP4 0x10
1783 #define _IOCAP5 0x20
1785 //==============================================================================
1788 //==============================================================================
1791 extern __at(0x0392) __sfr IOCAN
;
1797 unsigned IOCAN0
: 1;
1798 unsigned IOCAN1
: 1;
1799 unsigned IOCAN2
: 1;
1800 unsigned IOCAN3
: 1;
1801 unsigned IOCAN4
: 1;
1802 unsigned IOCAN5
: 1;
1814 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
1816 #define _IOCAN0 0x01
1817 #define _IOCAN1 0x02
1818 #define _IOCAN2 0x04
1819 #define _IOCAN3 0x08
1820 #define _IOCAN4 0x10
1821 #define _IOCAN5 0x20
1823 //==============================================================================
1826 //==============================================================================
1829 extern __at(0x0393) __sfr IOCAF
;
1835 unsigned IOCAF0
: 1;
1836 unsigned IOCAF1
: 1;
1837 unsigned IOCAF2
: 1;
1838 unsigned IOCAF3
: 1;
1839 unsigned IOCAF4
: 1;
1840 unsigned IOCAF5
: 1;
1852 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
1854 #define _IOCAF0 0x01
1855 #define _IOCAF1 0x02
1856 #define _IOCAF2 0x04
1857 #define _IOCAF3 0x08
1858 #define _IOCAF4 0x10
1859 #define _IOCAF5 0x20
1861 //==============================================================================
1864 //==============================================================================
1867 extern __at(0x0691) __sfr CWG1DBR
;
1873 unsigned CWG1DBR0
: 1;
1874 unsigned CWG1DBR1
: 1;
1875 unsigned CWG1DBR2
: 1;
1876 unsigned CWG1DBR3
: 1;
1877 unsigned CWG1DBR4
: 1;
1878 unsigned CWG1DBR5
: 1;
1885 unsigned CWG1DBR
: 6;
1890 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits
;
1892 #define _CWG1DBR0 0x01
1893 #define _CWG1DBR1 0x02
1894 #define _CWG1DBR2 0x04
1895 #define _CWG1DBR3 0x08
1896 #define _CWG1DBR4 0x10
1897 #define _CWG1DBR5 0x20
1899 //==============================================================================
1902 //==============================================================================
1905 extern __at(0x0692) __sfr CWG1DBF
;
1911 unsigned CWG1DBF0
: 1;
1912 unsigned CWG1DBF1
: 1;
1913 unsigned CWG1DBF2
: 1;
1914 unsigned CWG1DBF3
: 1;
1915 unsigned CWG1DBF4
: 1;
1916 unsigned CWG1DBF5
: 1;
1923 unsigned CWG1DBF
: 6;
1928 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits
;
1930 #define _CWG1DBF0 0x01
1931 #define _CWG1DBF1 0x02
1932 #define _CWG1DBF2 0x04
1933 #define _CWG1DBF3 0x08
1934 #define _CWG1DBF4 0x10
1935 #define _CWG1DBF5 0x20
1937 //==============================================================================
1940 //==============================================================================
1943 extern __at(0x0693) __sfr CWG1CON0
;
1950 unsigned G1POLA
: 1;
1951 unsigned G1POLB
: 1;
1957 extern __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits
;
1960 #define _G1POLA 0x08
1961 #define _G1POLB 0x10
1966 //==============================================================================
1969 //==============================================================================
1972 extern __at(0x0694) __sfr CWG1CON1
;
1982 unsigned G1ASDLA0
: 1;
1983 unsigned G1ASDLA1
: 1;
1984 unsigned G1ASDLB0
: 1;
1985 unsigned G1ASDLB1
: 1;
1997 unsigned G1ASDLA
: 2;
2004 unsigned G1ASDLB
: 2;
2008 extern __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits
;
2013 #define _G1ASDLA0 0x10
2014 #define _G1ASDLA1 0x20
2015 #define _G1ASDLB0 0x40
2016 #define _G1ASDLB1 0x80
2018 //==============================================================================
2021 //==============================================================================
2024 extern __at(0x0695) __sfr CWG1CON2
;
2029 unsigned G1ASDSFLT
: 1;
2030 unsigned G1ASDSC1
: 1;
2034 unsigned G1ARSEN
: 1;
2038 extern __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits
;
2040 #define _G1ASDSFLT 0x02
2041 #define _G1ASDSC1 0x04
2042 #define _G1ARSEN 0x40
2045 //==============================================================================
2048 //==============================================================================
2051 extern __at(0x0D8E) __sfr PWMEN
;
2057 unsigned PWM1EN_A
: 1;
2058 unsigned PWM2EN_A
: 1;
2059 unsigned PWM3EN_A
: 1;
2069 unsigned MPWM1EN
: 1;
2070 unsigned MPWM2EN
: 1;
2071 unsigned MPWM3EN
: 1;
2080 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits
;
2082 #define _PWM1EN_A 0x01
2083 #define _MPWM1EN 0x01
2084 #define _PWM2EN_A 0x02
2085 #define _MPWM2EN 0x02
2086 #define _PWM3EN_A 0x04
2087 #define _MPWM3EN 0x04
2089 //==============================================================================
2092 //==============================================================================
2095 extern __at(0x0D8F) __sfr PWMLD
;
2101 unsigned PWM1LDA_A
: 1;
2102 unsigned PWM2LDA_A
: 1;
2103 unsigned PWM3LDA_A
: 1;
2113 unsigned MPWM1LD
: 1;
2114 unsigned MPWM2LD
: 1;
2115 unsigned MPWM3LD
: 1;
2124 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits
;
2126 #define _PWM1LDA_A 0x01
2127 #define _MPWM1LD 0x01
2128 #define _PWM2LDA_A 0x02
2129 #define _MPWM2LD 0x02
2130 #define _PWM3LDA_A 0x04
2131 #define _MPWM3LD 0x04
2133 //==============================================================================
2136 //==============================================================================
2139 extern __at(0x0D90) __sfr PWMOUT
;
2145 unsigned PWM1OUT_A
: 1;
2146 unsigned PWM2OUT_A
: 1;
2147 unsigned PWM3OUT_A
: 1;
2157 unsigned MPWM1OUT
: 1;
2158 unsigned MPWM2OUT
: 1;
2159 unsigned MPWM3OUT
: 1;
2168 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits
;
2170 #define _PWM1OUT_A 0x01
2171 #define _MPWM1OUT 0x01
2172 #define _PWM2OUT_A 0x02
2173 #define _MPWM2OUT 0x02
2174 #define _PWM3OUT_A 0x04
2175 #define _MPWM3OUT 0x04
2177 //==============================================================================
2179 extern __at(0x0D91) __sfr PWM1PH
;
2181 //==============================================================================
2184 extern __at(0x0D91) __sfr PWM1PHL
;
2188 unsigned PWM1PHL0
: 1;
2189 unsigned PWM1PHL1
: 1;
2190 unsigned PWM1PHL2
: 1;
2191 unsigned PWM1PHL3
: 1;
2192 unsigned PWM1PHL4
: 1;
2193 unsigned PWM1PHL5
: 1;
2194 unsigned PWM1PHL6
: 1;
2195 unsigned PWM1PHL7
: 1;
2198 extern __at(0x0D91) volatile __PWM1PHLbits_t PWM1PHLbits
;
2200 #define _PWM1PHL0 0x01
2201 #define _PWM1PHL1 0x02
2202 #define _PWM1PHL2 0x04
2203 #define _PWM1PHL3 0x08
2204 #define _PWM1PHL4 0x10
2205 #define _PWM1PHL5 0x20
2206 #define _PWM1PHL6 0x40
2207 #define _PWM1PHL7 0x80
2209 //==============================================================================
2212 //==============================================================================
2215 extern __at(0x0D92) __sfr PWM1PHH
;
2219 unsigned PWM1PHH0
: 1;
2220 unsigned PWM1PHH1
: 1;
2221 unsigned PWM1PHH2
: 1;
2222 unsigned PWM1PHH3
: 1;
2223 unsigned PWM1PHH4
: 1;
2224 unsigned PWM1PHH5
: 1;
2225 unsigned PWM1PHH6
: 1;
2226 unsigned PWM1PHH7
: 1;
2229 extern __at(0x0D92) volatile __PWM1PHHbits_t PWM1PHHbits
;
2231 #define _PWM1PHH0 0x01
2232 #define _PWM1PHH1 0x02
2233 #define _PWM1PHH2 0x04
2234 #define _PWM1PHH3 0x08
2235 #define _PWM1PHH4 0x10
2236 #define _PWM1PHH5 0x20
2237 #define _PWM1PHH6 0x40
2238 #define _PWM1PHH7 0x80
2240 //==============================================================================
2242 extern __at(0x0D93) __sfr PWM1DC
;
2244 //==============================================================================
2247 extern __at(0x0D93) __sfr PWM1DCL
;
2251 unsigned PWM1DCL0
: 1;
2252 unsigned PWM1DCL1
: 1;
2253 unsigned PWM1DCL2
: 1;
2254 unsigned PWM1DCL3
: 1;
2255 unsigned PWM1DCL4
: 1;
2256 unsigned PWM1DCL5
: 1;
2257 unsigned PWM1DCL6
: 1;
2258 unsigned PWM1DCL7
: 1;
2261 extern __at(0x0D93) volatile __PWM1DCLbits_t PWM1DCLbits
;
2263 #define _PWM1DCL0 0x01
2264 #define _PWM1DCL1 0x02
2265 #define _PWM1DCL2 0x04
2266 #define _PWM1DCL3 0x08
2267 #define _PWM1DCL4 0x10
2268 #define _PWM1DCL5 0x20
2269 #define _PWM1DCL6 0x40
2270 #define _PWM1DCL7 0x80
2272 //==============================================================================
2275 //==============================================================================
2278 extern __at(0x0D94) __sfr PWM1DCH
;
2282 unsigned PWM1DCH0
: 1;
2283 unsigned PWM1DCH1
: 1;
2284 unsigned PWM1DCH2
: 1;
2285 unsigned PWM1DCH3
: 1;
2286 unsigned PWM1DCH4
: 1;
2287 unsigned PWM1DCH5
: 1;
2288 unsigned PWM1DCH6
: 1;
2289 unsigned PWM1DCH7
: 1;
2292 extern __at(0x0D94) volatile __PWM1DCHbits_t PWM1DCHbits
;
2294 #define _PWM1DCH0 0x01
2295 #define _PWM1DCH1 0x02
2296 #define _PWM1DCH2 0x04
2297 #define _PWM1DCH3 0x08
2298 #define _PWM1DCH4 0x10
2299 #define _PWM1DCH5 0x20
2300 #define _PWM1DCH6 0x40
2301 #define _PWM1DCH7 0x80
2303 //==============================================================================
2305 extern __at(0x0D95) __sfr PWM1PR
;
2307 //==============================================================================
2310 extern __at(0x0D95) __sfr PWM1PRL
;
2314 unsigned PWM1PRL0
: 1;
2315 unsigned PWM1PRL1
: 1;
2316 unsigned PWM1PRL2
: 1;
2317 unsigned PWM1PRL3
: 1;
2318 unsigned PWM1PRL4
: 1;
2319 unsigned PWM1PRL5
: 1;
2320 unsigned PWM1PRL6
: 1;
2321 unsigned PWM1PRL7
: 1;
2324 extern __at(0x0D95) volatile __PWM1PRLbits_t PWM1PRLbits
;
2326 #define _PWM1PRL0 0x01
2327 #define _PWM1PRL1 0x02
2328 #define _PWM1PRL2 0x04
2329 #define _PWM1PRL3 0x08
2330 #define _PWM1PRL4 0x10
2331 #define _PWM1PRL5 0x20
2332 #define _PWM1PRL6 0x40
2333 #define _PWM1PRL7 0x80
2335 //==============================================================================
2338 //==============================================================================
2341 extern __at(0x0D96) __sfr PWM1PRH
;
2345 unsigned PWM1PRH0
: 1;
2346 unsigned PWM1PRH1
: 1;
2347 unsigned PWM1PRH2
: 1;
2348 unsigned PWM1PRH3
: 1;
2349 unsigned PWM1PRH4
: 1;
2350 unsigned PWM1PRH5
: 1;
2351 unsigned PWM1PRH6
: 1;
2352 unsigned PWM1PRH7
: 1;
2355 extern __at(0x0D96) volatile __PWM1PRHbits_t PWM1PRHbits
;
2357 #define _PWM1PRH0 0x01
2358 #define _PWM1PRH1 0x02
2359 #define _PWM1PRH2 0x04
2360 #define _PWM1PRH3 0x08
2361 #define _PWM1PRH4 0x10
2362 #define _PWM1PRH5 0x20
2363 #define _PWM1PRH6 0x40
2364 #define _PWM1PRH7 0x80
2366 //==============================================================================
2368 extern __at(0x0D97) __sfr PWM1OF
;
2370 //==============================================================================
2373 extern __at(0x0D97) __sfr PWM1OFL
;
2377 unsigned PWM1OFL0
: 1;
2378 unsigned PWM1OFL1
: 1;
2379 unsigned PWM1OFL2
: 1;
2380 unsigned PWM1OFL3
: 1;
2381 unsigned PWM1OFL4
: 1;
2382 unsigned PWM1OFL5
: 1;
2383 unsigned PWM1OFL6
: 1;
2384 unsigned PWM1OFL7
: 1;
2387 extern __at(0x0D97) volatile __PWM1OFLbits_t PWM1OFLbits
;
2389 #define _PWM1OFL0 0x01
2390 #define _PWM1OFL1 0x02
2391 #define _PWM1OFL2 0x04
2392 #define _PWM1OFL3 0x08
2393 #define _PWM1OFL4 0x10
2394 #define _PWM1OFL5 0x20
2395 #define _PWM1OFL6 0x40
2396 #define _PWM1OFL7 0x80
2398 //==============================================================================
2401 //==============================================================================
2404 extern __at(0x0D98) __sfr PWM1OFH
;
2408 unsigned PWM1OFH0
: 1;
2409 unsigned PWM1OFH1
: 1;
2410 unsigned PWM1OFH2
: 1;
2411 unsigned PWM1OFH3
: 1;
2412 unsigned PWM1OFH4
: 1;
2413 unsigned PWM1OFH5
: 1;
2414 unsigned PWM1OFH6
: 1;
2415 unsigned PWM1OFH7
: 1;
2418 extern __at(0x0D98) volatile __PWM1OFHbits_t PWM1OFHbits
;
2420 #define _PWM1OFH0 0x01
2421 #define _PWM1OFH1 0x02
2422 #define _PWM1OFH2 0x04
2423 #define _PWM1OFH3 0x08
2424 #define _PWM1OFH4 0x10
2425 #define _PWM1OFH5 0x20
2426 #define _PWM1OFH6 0x40
2427 #define _PWM1OFH7 0x80
2429 //==============================================================================
2431 extern __at(0x0D99) __sfr PWM1TMR
;
2433 //==============================================================================
2436 extern __at(0x0D99) __sfr PWM1TMRL
;
2440 unsigned PWM1TMRL0
: 1;
2441 unsigned PWM1TMRL1
: 1;
2442 unsigned PWM1TMRL2
: 1;
2443 unsigned PWM1TMRL3
: 1;
2444 unsigned PWM1TMRL4
: 1;
2445 unsigned PWM1TMRL5
: 1;
2446 unsigned PWM1TMRL6
: 1;
2447 unsigned PWM1TMRL7
: 1;
2450 extern __at(0x0D99) volatile __PWM1TMRLbits_t PWM1TMRLbits
;
2452 #define _PWM1TMRL0 0x01
2453 #define _PWM1TMRL1 0x02
2454 #define _PWM1TMRL2 0x04
2455 #define _PWM1TMRL3 0x08
2456 #define _PWM1TMRL4 0x10
2457 #define _PWM1TMRL5 0x20
2458 #define _PWM1TMRL6 0x40
2459 #define _PWM1TMRL7 0x80
2461 //==============================================================================
2464 //==============================================================================
2467 extern __at(0x0D9A) __sfr PWM1TMRH
;
2471 unsigned PWM1TMRH0
: 1;
2472 unsigned PWM1TMRH1
: 1;
2473 unsigned PWM1TMRH2
: 1;
2474 unsigned PWM1TMRH3
: 1;
2475 unsigned PWM1TMRH4
: 1;
2476 unsigned PWM1TMRH5
: 1;
2477 unsigned PWM1TMRH6
: 1;
2478 unsigned PWM1TMRH7
: 1;
2481 extern __at(0x0D9A) volatile __PWM1TMRHbits_t PWM1TMRHbits
;
2483 #define _PWM1TMRH0 0x01
2484 #define _PWM1TMRH1 0x02
2485 #define _PWM1TMRH2 0x04
2486 #define _PWM1TMRH3 0x08
2487 #define _PWM1TMRH4 0x10
2488 #define _PWM1TMRH5 0x20
2489 #define _PWM1TMRH6 0x40
2490 #define _PWM1TMRH7 0x80
2492 //==============================================================================
2495 //==============================================================================
2498 extern __at(0x0D9B) __sfr PWM1CON
;
2506 unsigned PWM1MODE0
: 1;
2507 unsigned PWM1MODE1
: 1;
2520 unsigned PWM1POL
: 1;
2521 unsigned PWM1OUT
: 1;
2522 unsigned PWM1OE
: 1;
2523 unsigned PWM1EN
: 1;
2536 unsigned PWM1MODE
: 2;
2541 extern __at(0x0D9B) volatile __PWM1CONbits_t PWM1CONbits
;
2543 #define _PWM1MODE0 0x04
2545 #define _PWM1MODE1 0x08
2548 #define _PWM1POL 0x10
2550 #define _PWM1OUT 0x20
2552 #define _PWM1OE 0x40
2554 #define _PWM1EN 0x80
2556 //==============================================================================
2559 //==============================================================================
2562 extern __at(0x0D9C) __sfr PWM1INTCON
;
2580 unsigned PWM1PRIE
: 1;
2581 unsigned PWM1DCIE
: 1;
2582 unsigned PWM1PHIE
: 1;
2583 unsigned PWM1OFIE
: 1;
2589 } __PWM1INTCONbits_t
;
2591 extern __at(0x0D9C) volatile __PWM1INTCONbits_t PWM1INTCONbits
;
2594 #define _PWM1PRIE 0x01
2596 #define _PWM1DCIE 0x02
2598 #define _PWM1PHIE 0x04
2600 #define _PWM1OFIE 0x08
2602 //==============================================================================
2605 //==============================================================================
2608 extern __at(0x0D9C) __sfr PWM1INTE
;
2626 unsigned PWM1PRIE
: 1;
2627 unsigned PWM1DCIE
: 1;
2628 unsigned PWM1PHIE
: 1;
2629 unsigned PWM1OFIE
: 1;
2637 extern __at(0x0D9C) volatile __PWM1INTEbits_t PWM1INTEbits
;
2639 #define _PWM1INTE_PRIE 0x01
2640 #define _PWM1INTE_PWM1PRIE 0x01
2641 #define _PWM1INTE_DCIE 0x02
2642 #define _PWM1INTE_PWM1DCIE 0x02
2643 #define _PWM1INTE_PHIE 0x04
2644 #define _PWM1INTE_PWM1PHIE 0x04
2645 #define _PWM1INTE_OFIE 0x08
2646 #define _PWM1INTE_PWM1OFIE 0x08
2648 //==============================================================================
2651 //==============================================================================
2654 extern __at(0x0D9D) __sfr PWM1INTF
;
2672 unsigned PWM1PRIF
: 1;
2673 unsigned PWM1DCIF
: 1;
2674 unsigned PWM1PHIF
: 1;
2675 unsigned PWM1OFIF
: 1;
2683 extern __at(0x0D9D) volatile __PWM1INTFbits_t PWM1INTFbits
;
2686 #define _PWM1PRIF 0x01
2688 #define _PWM1DCIF 0x02
2690 #define _PWM1PHIF 0x04
2692 #define _PWM1OFIF 0x08
2694 //==============================================================================
2697 //==============================================================================
2700 extern __at(0x0D9D) __sfr PWM1INTFLG
;
2718 unsigned PWM1PRIF
: 1;
2719 unsigned PWM1DCIF
: 1;
2720 unsigned PWM1PHIF
: 1;
2721 unsigned PWM1OFIF
: 1;
2727 } __PWM1INTFLGbits_t
;
2729 extern __at(0x0D9D) volatile __PWM1INTFLGbits_t PWM1INTFLGbits
;
2731 #define _PWM1INTFLG_PRIF 0x01
2732 #define _PWM1INTFLG_PWM1PRIF 0x01
2733 #define _PWM1INTFLG_DCIF 0x02
2734 #define _PWM1INTFLG_PWM1DCIF 0x02
2735 #define _PWM1INTFLG_PHIF 0x04
2736 #define _PWM1INTFLG_PWM1PHIF 0x04
2737 #define _PWM1INTFLG_OFIF 0x08
2738 #define _PWM1INTFLG_PWM1OFIF 0x08
2740 //==============================================================================
2743 //==============================================================================
2746 extern __at(0x0D9E) __sfr PWM1CLKCON
;
2752 unsigned PWM1CS0
: 1;
2753 unsigned PWM1CS1
: 1;
2756 unsigned PWM1PS0
: 1;
2757 unsigned PWM1PS1
: 1;
2758 unsigned PWM1PS2
: 1;
2776 unsigned PWM1CS
: 2;
2796 unsigned PWM1PS
: 3;
2799 } __PWM1CLKCONbits_t
;
2801 extern __at(0x0D9E) volatile __PWM1CLKCONbits_t PWM1CLKCONbits
;
2803 #define _PWM1CLKCON_PWM1CS0 0x01
2804 #define _PWM1CLKCON_CS0 0x01
2805 #define _PWM1CLKCON_PWM1CS1 0x02
2806 #define _PWM1CLKCON_CS1 0x02
2807 #define _PWM1CLKCON_PWM1PS0 0x10
2808 #define _PWM1CLKCON_PS0 0x10
2809 #define _PWM1CLKCON_PWM1PS1 0x20
2810 #define _PWM1CLKCON_PS1 0x20
2811 #define _PWM1CLKCON_PWM1PS2 0x40
2812 #define _PWM1CLKCON_PS2 0x40
2814 //==============================================================================
2817 //==============================================================================
2820 extern __at(0x0D9F) __sfr PWM1LDCON
;
2826 unsigned PWM1LDS0
: 1;
2827 unsigned PWM1LDS1
: 1;
2844 unsigned PWM1LDM
: 1;
2845 unsigned PWM1LD
: 1;
2850 unsigned PWM1LDS
: 2;
2859 } __PWM1LDCONbits_t
;
2861 extern __at(0x0D9F) volatile __PWM1LDCONbits_t PWM1LDCONbits
;
2863 #define _PWM1LDS0 0x01
2865 #define _PWM1LDS1 0x02
2868 #define _PWM1LDM 0x40
2870 #define _PWM1LD 0x80
2872 //==============================================================================
2875 //==============================================================================
2878 extern __at(0x0DA0) __sfr PWM1OFCON
;
2884 unsigned PWM1OFS0
: 1;
2885 unsigned PWM1OFS1
: 1;
2889 unsigned PWM1OFM0
: 1;
2890 unsigned PWM1OFM1
: 1;
2900 unsigned PWM1OFMC
: 1;
2914 unsigned PWM1OFS
: 2;
2928 unsigned PWM1OFM
: 2;
2931 } __PWM1OFCONbits_t
;
2933 extern __at(0x0DA0) volatile __PWM1OFCONbits_t PWM1OFCONbits
;
2935 #define _PWM1OFS0 0x01
2937 #define _PWM1OFS1 0x02
2940 #define _PWM1OFMC 0x10
2941 #define _PWM1OFM0 0x20
2943 #define _PWM1OFM1 0x40
2946 //==============================================================================
2948 extern __at(0x0DA1) __sfr PWM2PH
;
2950 //==============================================================================
2953 extern __at(0x0DA1) __sfr PWM2PHL
;
2957 unsigned PWM2PHL0
: 1;
2958 unsigned PWM2PHL1
: 1;
2959 unsigned PWM2PHL2
: 1;
2960 unsigned PWM2PHL3
: 1;
2961 unsigned PWM2PHL4
: 1;
2962 unsigned PWM2PHL5
: 1;
2963 unsigned PWM2PHL6
: 1;
2964 unsigned PWM2PHL7
: 1;
2967 extern __at(0x0DA1) volatile __PWM2PHLbits_t PWM2PHLbits
;
2969 #define _PWM2PHL0 0x01
2970 #define _PWM2PHL1 0x02
2971 #define _PWM2PHL2 0x04
2972 #define _PWM2PHL3 0x08
2973 #define _PWM2PHL4 0x10
2974 #define _PWM2PHL5 0x20
2975 #define _PWM2PHL6 0x40
2976 #define _PWM2PHL7 0x80
2978 //==============================================================================
2981 //==============================================================================
2984 extern __at(0x0DA2) __sfr PWM2PHH
;
2988 unsigned PWM2PHH0
: 1;
2989 unsigned PWM2PHH1
: 1;
2990 unsigned PWM2PHH2
: 1;
2991 unsigned PWM2PHH3
: 1;
2992 unsigned PWM2PHH4
: 1;
2993 unsigned PWM2PHH5
: 1;
2994 unsigned PWM2PHH6
: 1;
2995 unsigned PWM2PHH7
: 1;
2998 extern __at(0x0DA2) volatile __PWM2PHHbits_t PWM2PHHbits
;
3000 #define _PWM2PHH0 0x01
3001 #define _PWM2PHH1 0x02
3002 #define _PWM2PHH2 0x04
3003 #define _PWM2PHH3 0x08
3004 #define _PWM2PHH4 0x10
3005 #define _PWM2PHH5 0x20
3006 #define _PWM2PHH6 0x40
3007 #define _PWM2PHH7 0x80
3009 //==============================================================================
3011 extern __at(0x0DA3) __sfr PWM2DC
;
3013 //==============================================================================
3016 extern __at(0x0DA3) __sfr PWM2DCL
;
3020 unsigned PWM2DCL0
: 1;
3021 unsigned PWM2DCL1
: 1;
3022 unsigned PWM2DCL2
: 1;
3023 unsigned PWM2DCL3
: 1;
3024 unsigned PWM2DCL4
: 1;
3025 unsigned PWM2DCL5
: 1;
3026 unsigned PWM2DCL6
: 1;
3027 unsigned PWM2DCL7
: 1;
3030 extern __at(0x0DA3) volatile __PWM2DCLbits_t PWM2DCLbits
;
3032 #define _PWM2DCL0 0x01
3033 #define _PWM2DCL1 0x02
3034 #define _PWM2DCL2 0x04
3035 #define _PWM2DCL3 0x08
3036 #define _PWM2DCL4 0x10
3037 #define _PWM2DCL5 0x20
3038 #define _PWM2DCL6 0x40
3039 #define _PWM2DCL7 0x80
3041 //==============================================================================
3044 //==============================================================================
3047 extern __at(0x0DA4) __sfr PWM2DCH
;
3051 unsigned PWM2DCH0
: 1;
3052 unsigned PWM2DCH1
: 1;
3053 unsigned PWM2DCH2
: 1;
3054 unsigned PWM2DCH3
: 1;
3055 unsigned PWM2DCH4
: 1;
3056 unsigned PWM2DCH5
: 1;
3057 unsigned PWM2DCH6
: 1;
3058 unsigned PWM2DCH7
: 1;
3061 extern __at(0x0DA4) volatile __PWM2DCHbits_t PWM2DCHbits
;
3063 #define _PWM2DCH0 0x01
3064 #define _PWM2DCH1 0x02
3065 #define _PWM2DCH2 0x04
3066 #define _PWM2DCH3 0x08
3067 #define _PWM2DCH4 0x10
3068 #define _PWM2DCH5 0x20
3069 #define _PWM2DCH6 0x40
3070 #define _PWM2DCH7 0x80
3072 //==============================================================================
3074 extern __at(0x0DA5) __sfr PWM2PR
;
3076 //==============================================================================
3079 extern __at(0x0DA5) __sfr PWM2PRL
;
3083 unsigned PWM2PRL0
: 1;
3084 unsigned PWM2PRL1
: 1;
3085 unsigned PWM2PRL2
: 1;
3086 unsigned PWM2PRL3
: 1;
3087 unsigned PWM2PRL4
: 1;
3088 unsigned PWM2PRL5
: 1;
3089 unsigned PWM2PRL6
: 1;
3090 unsigned PWM2PRL7
: 1;
3093 extern __at(0x0DA5) volatile __PWM2PRLbits_t PWM2PRLbits
;
3095 #define _PWM2PRL0 0x01
3096 #define _PWM2PRL1 0x02
3097 #define _PWM2PRL2 0x04
3098 #define _PWM2PRL3 0x08
3099 #define _PWM2PRL4 0x10
3100 #define _PWM2PRL5 0x20
3101 #define _PWM2PRL6 0x40
3102 #define _PWM2PRL7 0x80
3104 //==============================================================================
3107 //==============================================================================
3110 extern __at(0x0DA6) __sfr PWM2PRH
;
3114 unsigned PWM2PRH0
: 1;
3115 unsigned PWM2PRH1
: 1;
3116 unsigned PWM2PRH2
: 1;
3117 unsigned PWM2PRH3
: 1;
3118 unsigned PWM2PRH4
: 1;
3119 unsigned PWM2PRH5
: 1;
3120 unsigned PWM2PRH6
: 1;
3121 unsigned PWM2PRH7
: 1;
3124 extern __at(0x0DA6) volatile __PWM2PRHbits_t PWM2PRHbits
;
3126 #define _PWM2PRH0 0x01
3127 #define _PWM2PRH1 0x02
3128 #define _PWM2PRH2 0x04
3129 #define _PWM2PRH3 0x08
3130 #define _PWM2PRH4 0x10
3131 #define _PWM2PRH5 0x20
3132 #define _PWM2PRH6 0x40
3133 #define _PWM2PRH7 0x80
3135 //==============================================================================
3137 extern __at(0x0DA7) __sfr PWM2OF
;
3139 //==============================================================================
3142 extern __at(0x0DA7) __sfr PWM2OFL
;
3146 unsigned PWM2OFL0
: 1;
3147 unsigned PWM2OFL1
: 1;
3148 unsigned PWM2OFL2
: 1;
3149 unsigned PWM2OFL3
: 1;
3150 unsigned PWM2OFL4
: 1;
3151 unsigned PWM2OFL5
: 1;
3152 unsigned PWM2OFL6
: 1;
3153 unsigned PWM2OFL7
: 1;
3156 extern __at(0x0DA7) volatile __PWM2OFLbits_t PWM2OFLbits
;
3158 #define _PWM2OFL0 0x01
3159 #define _PWM2OFL1 0x02
3160 #define _PWM2OFL2 0x04
3161 #define _PWM2OFL3 0x08
3162 #define _PWM2OFL4 0x10
3163 #define _PWM2OFL5 0x20
3164 #define _PWM2OFL6 0x40
3165 #define _PWM2OFL7 0x80
3167 //==============================================================================
3170 //==============================================================================
3173 extern __at(0x0DA8) __sfr PWM2OFH
;
3177 unsigned PWM2OFH0
: 1;
3178 unsigned PWM2OFH1
: 1;
3179 unsigned PWM2OFH2
: 1;
3180 unsigned PWM2OFH3
: 1;
3181 unsigned PWM2OFH4
: 1;
3182 unsigned PWM2OFH5
: 1;
3183 unsigned PWM2OFH6
: 1;
3184 unsigned PWM2OFH7
: 1;
3187 extern __at(0x0DA8) volatile __PWM2OFHbits_t PWM2OFHbits
;
3189 #define _PWM2OFH0 0x01
3190 #define _PWM2OFH1 0x02
3191 #define _PWM2OFH2 0x04
3192 #define _PWM2OFH3 0x08
3193 #define _PWM2OFH4 0x10
3194 #define _PWM2OFH5 0x20
3195 #define _PWM2OFH6 0x40
3196 #define _PWM2OFH7 0x80
3198 //==============================================================================
3200 extern __at(0x0DA9) __sfr PWM2TMR
;
3202 //==============================================================================
3205 extern __at(0x0DA9) __sfr PWM2TMRL
;
3209 unsigned PWM2TMRL0
: 1;
3210 unsigned PWM2TMRL1
: 1;
3211 unsigned PWM2TMRL2
: 1;
3212 unsigned PWM2TMRL3
: 1;
3213 unsigned PWM2TMRL4
: 1;
3214 unsigned PWM2TMRL5
: 1;
3215 unsigned PWM2TMRL6
: 1;
3216 unsigned PWM2TMRL7
: 1;
3219 extern __at(0x0DA9) volatile __PWM2TMRLbits_t PWM2TMRLbits
;
3221 #define _PWM2TMRL0 0x01
3222 #define _PWM2TMRL1 0x02
3223 #define _PWM2TMRL2 0x04
3224 #define _PWM2TMRL3 0x08
3225 #define _PWM2TMRL4 0x10
3226 #define _PWM2TMRL5 0x20
3227 #define _PWM2TMRL6 0x40
3228 #define _PWM2TMRL7 0x80
3230 //==============================================================================
3233 //==============================================================================
3236 extern __at(0x0DAA) __sfr PWM2TMRH
;
3240 unsigned PWM2TMRH0
: 1;
3241 unsigned PWM2TMRH1
: 1;
3242 unsigned PWM2TMRH2
: 1;
3243 unsigned PWM2TMRH3
: 1;
3244 unsigned PWM2TMRH4
: 1;
3245 unsigned PWM2TMRH5
: 1;
3246 unsigned PWM2TMRH6
: 1;
3247 unsigned PWM2TMRH7
: 1;
3250 extern __at(0x0DAA) volatile __PWM2TMRHbits_t PWM2TMRHbits
;
3252 #define _PWM2TMRH0 0x01
3253 #define _PWM2TMRH1 0x02
3254 #define _PWM2TMRH2 0x04
3255 #define _PWM2TMRH3 0x08
3256 #define _PWM2TMRH4 0x10
3257 #define _PWM2TMRH5 0x20
3258 #define _PWM2TMRH6 0x40
3259 #define _PWM2TMRH7 0x80
3261 //==============================================================================
3264 //==============================================================================
3267 extern __at(0x0DAB) __sfr PWM2CON
;
3275 unsigned PWM2MODE0
: 1;
3276 unsigned PWM2MODE1
: 1;
3289 unsigned PWM2POL
: 1;
3290 unsigned PWM2OUT
: 1;
3291 unsigned PWM2OE
: 1;
3292 unsigned PWM2EN
: 1;
3298 unsigned PWM2MODE
: 2;
3310 extern __at(0x0DAB) volatile __PWM2CONbits_t PWM2CONbits
;
3312 #define _PWM2CON_PWM2MODE0 0x04
3313 #define _PWM2CON_MODE0 0x04
3314 #define _PWM2CON_PWM2MODE1 0x08
3315 #define _PWM2CON_MODE1 0x08
3316 #define _PWM2CON_POL 0x10
3317 #define _PWM2CON_PWM2POL 0x10
3318 #define _PWM2CON_OUT 0x20
3319 #define _PWM2CON_PWM2OUT 0x20
3320 #define _PWM2CON_OE 0x40
3321 #define _PWM2CON_PWM2OE 0x40
3322 #define _PWM2CON_EN 0x80
3323 #define _PWM2CON_PWM2EN 0x80
3325 //==============================================================================
3328 //==============================================================================
3331 extern __at(0x0DAC) __sfr PWM2INTCON
;
3349 unsigned PWM2PRIE
: 1;
3350 unsigned PWM2DCIE
: 1;
3351 unsigned PWM2PHIE
: 1;
3352 unsigned PWM2OFIE
: 1;
3358 } __PWM2INTCONbits_t
;
3360 extern __at(0x0DAC) volatile __PWM2INTCONbits_t PWM2INTCONbits
;
3362 #define _PWM2INTCON_PRIE 0x01
3363 #define _PWM2INTCON_PWM2PRIE 0x01
3364 #define _PWM2INTCON_DCIE 0x02
3365 #define _PWM2INTCON_PWM2DCIE 0x02
3366 #define _PWM2INTCON_PHIE 0x04
3367 #define _PWM2INTCON_PWM2PHIE 0x04
3368 #define _PWM2INTCON_OFIE 0x08
3369 #define _PWM2INTCON_PWM2OFIE 0x08
3371 //==============================================================================
3374 //==============================================================================
3377 extern __at(0x0DAC) __sfr PWM2INTE
;
3395 unsigned PWM2PRIE
: 1;
3396 unsigned PWM2DCIE
: 1;
3397 unsigned PWM2PHIE
: 1;
3398 unsigned PWM2OFIE
: 1;
3406 extern __at(0x0DAC) volatile __PWM2INTEbits_t PWM2INTEbits
;
3408 #define _PWM2INTE_PRIE 0x01
3409 #define _PWM2INTE_PWM2PRIE 0x01
3410 #define _PWM2INTE_DCIE 0x02
3411 #define _PWM2INTE_PWM2DCIE 0x02
3412 #define _PWM2INTE_PHIE 0x04
3413 #define _PWM2INTE_PWM2PHIE 0x04
3414 #define _PWM2INTE_OFIE 0x08
3415 #define _PWM2INTE_PWM2OFIE 0x08
3417 //==============================================================================
3420 //==============================================================================
3423 extern __at(0x0DAD) __sfr PWM2INTF
;
3441 unsigned PWM2PRIF
: 1;
3442 unsigned PWM2DCIF
: 1;
3443 unsigned PWM2PHIF
: 1;
3444 unsigned PWM2OFIF
: 1;
3452 extern __at(0x0DAD) volatile __PWM2INTFbits_t PWM2INTFbits
;
3454 #define _PWM2INTF_PRIF 0x01
3455 #define _PWM2INTF_PWM2PRIF 0x01
3456 #define _PWM2INTF_DCIF 0x02
3457 #define _PWM2INTF_PWM2DCIF 0x02
3458 #define _PWM2INTF_PHIF 0x04
3459 #define _PWM2INTF_PWM2PHIF 0x04
3460 #define _PWM2INTF_OFIF 0x08
3461 #define _PWM2INTF_PWM2OFIF 0x08
3463 //==============================================================================
3466 //==============================================================================
3469 extern __at(0x0DAD) __sfr PWM2INTFLG
;
3487 unsigned PWM2PRIF
: 1;
3488 unsigned PWM2DCIF
: 1;
3489 unsigned PWM2PHIF
: 1;
3490 unsigned PWM2OFIF
: 1;
3496 } __PWM2INTFLGbits_t
;
3498 extern __at(0x0DAD) volatile __PWM2INTFLGbits_t PWM2INTFLGbits
;
3500 #define _PWM2INTFLG_PRIF 0x01
3501 #define _PWM2INTFLG_PWM2PRIF 0x01
3502 #define _PWM2INTFLG_DCIF 0x02
3503 #define _PWM2INTFLG_PWM2DCIF 0x02
3504 #define _PWM2INTFLG_PHIF 0x04
3505 #define _PWM2INTFLG_PWM2PHIF 0x04
3506 #define _PWM2INTFLG_OFIF 0x08
3507 #define _PWM2INTFLG_PWM2OFIF 0x08
3509 //==============================================================================
3512 //==============================================================================
3515 extern __at(0x0DAE) __sfr PWM2CLKCON
;
3521 unsigned PWM2CS0
: 1;
3522 unsigned PWM2CS1
: 1;
3525 unsigned PWM2PS0
: 1;
3526 unsigned PWM2PS1
: 1;
3527 unsigned PWM2PS2
: 1;
3551 unsigned PWM2CS
: 2;
3565 unsigned PWM2PS
: 3;
3568 } __PWM2CLKCONbits_t
;
3570 extern __at(0x0DAE) volatile __PWM2CLKCONbits_t PWM2CLKCONbits
;
3572 #define _PWM2CLKCON_PWM2CS0 0x01
3573 #define _PWM2CLKCON_CS0 0x01
3574 #define _PWM2CLKCON_PWM2CS1 0x02
3575 #define _PWM2CLKCON_CS1 0x02
3576 #define _PWM2CLKCON_PWM2PS0 0x10
3577 #define _PWM2CLKCON_PS0 0x10
3578 #define _PWM2CLKCON_PWM2PS1 0x20
3579 #define _PWM2CLKCON_PS1 0x20
3580 #define _PWM2CLKCON_PWM2PS2 0x40
3581 #define _PWM2CLKCON_PS2 0x40
3583 //==============================================================================
3586 //==============================================================================
3589 extern __at(0x0DAF) __sfr PWM2LDCON
;
3595 unsigned PWM2LDS0
: 1;
3596 unsigned PWM2LDS1
: 1;
3613 unsigned PWM2LDM
: 1;
3614 unsigned PWM2LD
: 1;
3625 unsigned PWM2LDS
: 2;
3628 } __PWM2LDCONbits_t
;
3630 extern __at(0x0DAF) volatile __PWM2LDCONbits_t PWM2LDCONbits
;
3632 #define _PWM2LDCON_PWM2LDS0 0x01
3633 #define _PWM2LDCON_LDS0 0x01
3634 #define _PWM2LDCON_PWM2LDS1 0x02
3635 #define _PWM2LDCON_LDS1 0x02
3636 #define _PWM2LDCON_LDT 0x40
3637 #define _PWM2LDCON_PWM2LDM 0x40
3638 #define _PWM2LDCON_LDA 0x80
3639 #define _PWM2LDCON_PWM2LD 0x80
3641 //==============================================================================
3644 //==============================================================================
3647 extern __at(0x0DB0) __sfr PWM2OFCON
;
3653 unsigned PWM2OFS0
: 1;
3654 unsigned PWM2OFS1
: 1;
3658 unsigned PWM2OFM0
: 1;
3659 unsigned PWM2OFM1
: 1;
3669 unsigned PWM2OFMC
: 1;
3677 unsigned PWM2OFS
: 2;
3690 unsigned PWM2OFM
: 2;
3700 } __PWM2OFCONbits_t
;
3702 extern __at(0x0DB0) volatile __PWM2OFCONbits_t PWM2OFCONbits
;
3704 #define _PWM2OFCON_PWM2OFS0 0x01
3705 #define _PWM2OFCON_OFS0 0x01
3706 #define _PWM2OFCON_PWM2OFS1 0x02
3707 #define _PWM2OFCON_OFS1 0x02
3708 #define _PWM2OFCON_OFO 0x10
3709 #define _PWM2OFCON_PWM2OFMC 0x10
3710 #define _PWM2OFCON_PWM2OFM0 0x20
3711 #define _PWM2OFCON_OFM0 0x20
3712 #define _PWM2OFCON_PWM2OFM1 0x40
3713 #define _PWM2OFCON_OFM1 0x40
3715 //==============================================================================
3717 extern __at(0x0DB1) __sfr PWM3PH
;
3719 //==============================================================================
3722 extern __at(0x0DB1) __sfr PWM3PHL
;
3726 unsigned PWM3PHL0
: 1;
3727 unsigned PWM3PHL1
: 1;
3728 unsigned PWM3PHL2
: 1;
3729 unsigned PWM3PHL3
: 1;
3730 unsigned PWM3PHL4
: 1;
3731 unsigned PWM3PHL5
: 1;
3732 unsigned PWM3PHL6
: 1;
3733 unsigned PWM3PHL7
: 1;
3736 extern __at(0x0DB1) volatile __PWM3PHLbits_t PWM3PHLbits
;
3738 #define _PWM3PHL0 0x01
3739 #define _PWM3PHL1 0x02
3740 #define _PWM3PHL2 0x04
3741 #define _PWM3PHL3 0x08
3742 #define _PWM3PHL4 0x10
3743 #define _PWM3PHL5 0x20
3744 #define _PWM3PHL6 0x40
3745 #define _PWM3PHL7 0x80
3747 //==============================================================================
3750 //==============================================================================
3753 extern __at(0x0DB2) __sfr PWM3PHH
;
3757 unsigned PWM3PHH0
: 1;
3758 unsigned PWM3PHH1
: 1;
3759 unsigned PWM3PHH2
: 1;
3760 unsigned PWM3PHH3
: 1;
3761 unsigned PWM3PHH4
: 1;
3762 unsigned PWM3PHH5
: 1;
3763 unsigned PWM3PHH6
: 1;
3764 unsigned PWM3PHH7
: 1;
3767 extern __at(0x0DB2) volatile __PWM3PHHbits_t PWM3PHHbits
;
3769 #define _PWM3PHH0 0x01
3770 #define _PWM3PHH1 0x02
3771 #define _PWM3PHH2 0x04
3772 #define _PWM3PHH3 0x08
3773 #define _PWM3PHH4 0x10
3774 #define _PWM3PHH5 0x20
3775 #define _PWM3PHH6 0x40
3776 #define _PWM3PHH7 0x80
3778 //==============================================================================
3780 extern __at(0x0DB3) __sfr PWM3DC
;
3782 //==============================================================================
3785 extern __at(0x0DB3) __sfr PWM3DCL
;
3789 unsigned PWM3DCL0
: 1;
3790 unsigned PWM3DCL1
: 1;
3791 unsigned PWM3DCL2
: 1;
3792 unsigned PWM3DCL3
: 1;
3793 unsigned PWM3DCL4
: 1;
3794 unsigned PWM3DCL5
: 1;
3795 unsigned PWM3DCL6
: 1;
3796 unsigned PWM3DCL7
: 1;
3799 extern __at(0x0DB3) volatile __PWM3DCLbits_t PWM3DCLbits
;
3801 #define _PWM3DCL0 0x01
3802 #define _PWM3DCL1 0x02
3803 #define _PWM3DCL2 0x04
3804 #define _PWM3DCL3 0x08
3805 #define _PWM3DCL4 0x10
3806 #define _PWM3DCL5 0x20
3807 #define _PWM3DCL6 0x40
3808 #define _PWM3DCL7 0x80
3810 //==============================================================================
3813 //==============================================================================
3816 extern __at(0x0DB4) __sfr PWM3DCH
;
3820 unsigned PWM3DCH0
: 1;
3821 unsigned PWM3DCH1
: 1;
3822 unsigned PWM3DCH2
: 1;
3823 unsigned PWM3DCH3
: 1;
3824 unsigned PWM3DCH4
: 1;
3825 unsigned PWM3DCH5
: 1;
3826 unsigned PWM3DCH6
: 1;
3827 unsigned PWM3DCH7
: 1;
3830 extern __at(0x0DB4) volatile __PWM3DCHbits_t PWM3DCHbits
;
3832 #define _PWM3DCH0 0x01
3833 #define _PWM3DCH1 0x02
3834 #define _PWM3DCH2 0x04
3835 #define _PWM3DCH3 0x08
3836 #define _PWM3DCH4 0x10
3837 #define _PWM3DCH5 0x20
3838 #define _PWM3DCH6 0x40
3839 #define _PWM3DCH7 0x80
3841 //==============================================================================
3843 extern __at(0x0DB5) __sfr PWM3PR
;
3845 //==============================================================================
3848 extern __at(0x0DB5) __sfr PWM3PRL
;
3852 unsigned PWM3PRL0
: 1;
3853 unsigned PWM3PRL1
: 1;
3854 unsigned PWM3PRL2
: 1;
3855 unsigned PWM3PRL3
: 1;
3856 unsigned PWM3PRL4
: 1;
3857 unsigned PWM3PRL5
: 1;
3858 unsigned PWM3PRL6
: 1;
3859 unsigned PWM3PRL7
: 1;
3862 extern __at(0x0DB5) volatile __PWM3PRLbits_t PWM3PRLbits
;
3864 #define _PWM3PRL0 0x01
3865 #define _PWM3PRL1 0x02
3866 #define _PWM3PRL2 0x04
3867 #define _PWM3PRL3 0x08
3868 #define _PWM3PRL4 0x10
3869 #define _PWM3PRL5 0x20
3870 #define _PWM3PRL6 0x40
3871 #define _PWM3PRL7 0x80
3873 //==============================================================================
3876 //==============================================================================
3879 extern __at(0x0DB6) __sfr PWM3PRH
;
3883 unsigned PWM3PRH0
: 1;
3884 unsigned PWM3PRH1
: 1;
3885 unsigned PWM3PRH2
: 1;
3886 unsigned PWM3PRH3
: 1;
3887 unsigned PWM3PRH4
: 1;
3888 unsigned PWM3PRH5
: 1;
3889 unsigned PWM3PRH6
: 1;
3890 unsigned PWM3PRH7
: 1;
3893 extern __at(0x0DB6) volatile __PWM3PRHbits_t PWM3PRHbits
;
3895 #define _PWM3PRH0 0x01
3896 #define _PWM3PRH1 0x02
3897 #define _PWM3PRH2 0x04
3898 #define _PWM3PRH3 0x08
3899 #define _PWM3PRH4 0x10
3900 #define _PWM3PRH5 0x20
3901 #define _PWM3PRH6 0x40
3902 #define _PWM3PRH7 0x80
3904 //==============================================================================
3906 extern __at(0x0DB7) __sfr PWM3OF
;
3908 //==============================================================================
3911 extern __at(0x0DB7) __sfr PWM3OFL
;
3915 unsigned PWM3OFL0
: 1;
3916 unsigned PWM3OFL1
: 1;
3917 unsigned PWM3OFL2
: 1;
3918 unsigned PWM3OFL3
: 1;
3919 unsigned PWM3OFL4
: 1;
3920 unsigned PWM3OFL5
: 1;
3921 unsigned PWM3OFL6
: 1;
3922 unsigned PWM3OFL7
: 1;
3925 extern __at(0x0DB7) volatile __PWM3OFLbits_t PWM3OFLbits
;
3927 #define _PWM3OFL0 0x01
3928 #define _PWM3OFL1 0x02
3929 #define _PWM3OFL2 0x04
3930 #define _PWM3OFL3 0x08
3931 #define _PWM3OFL4 0x10
3932 #define _PWM3OFL5 0x20
3933 #define _PWM3OFL6 0x40
3934 #define _PWM3OFL7 0x80
3936 //==============================================================================
3939 //==============================================================================
3942 extern __at(0x0DB8) __sfr PWM3OFH
;
3946 unsigned PWM3OFH0
: 1;
3947 unsigned PWM3OFH1
: 1;
3948 unsigned PWM3OFH2
: 1;
3949 unsigned PWM3OFH3
: 1;
3950 unsigned PWM3OFH4
: 1;
3951 unsigned PWM3OFH5
: 1;
3952 unsigned PWM3OFH6
: 1;
3953 unsigned PWM3OFH7
: 1;
3956 extern __at(0x0DB8) volatile __PWM3OFHbits_t PWM3OFHbits
;
3958 #define _PWM3OFH0 0x01
3959 #define _PWM3OFH1 0x02
3960 #define _PWM3OFH2 0x04
3961 #define _PWM3OFH3 0x08
3962 #define _PWM3OFH4 0x10
3963 #define _PWM3OFH5 0x20
3964 #define _PWM3OFH6 0x40
3965 #define _PWM3OFH7 0x80
3967 //==============================================================================
3969 extern __at(0x0DB9) __sfr PWM3TMR
;
3971 //==============================================================================
3974 extern __at(0x0DB9) __sfr PWM3TMRL
;
3978 unsigned PWM3TMRL0
: 1;
3979 unsigned PWM3TMRL1
: 1;
3980 unsigned PWM3TMRL2
: 1;
3981 unsigned PWM3TMRL3
: 1;
3982 unsigned PWM3TMRL4
: 1;
3983 unsigned PWM3TMRL5
: 1;
3984 unsigned PWM3TMRL6
: 1;
3985 unsigned PWM3TMRL7
: 1;
3988 extern __at(0x0DB9) volatile __PWM3TMRLbits_t PWM3TMRLbits
;
3990 #define _PWM3TMRL0 0x01
3991 #define _PWM3TMRL1 0x02
3992 #define _PWM3TMRL2 0x04
3993 #define _PWM3TMRL3 0x08
3994 #define _PWM3TMRL4 0x10
3995 #define _PWM3TMRL5 0x20
3996 #define _PWM3TMRL6 0x40
3997 #define _PWM3TMRL7 0x80
3999 //==============================================================================
4002 //==============================================================================
4005 extern __at(0x0DBA) __sfr PWM3TMRH
;
4009 unsigned PWM3TMRH0
: 1;
4010 unsigned PWM3TMRH1
: 1;
4011 unsigned PWM3TMRH2
: 1;
4012 unsigned PWM3TMRH3
: 1;
4013 unsigned PWM3TMRH4
: 1;
4014 unsigned PWM3TMRH5
: 1;
4015 unsigned PWM3TMRH6
: 1;
4016 unsigned PWM3TMRH7
: 1;
4019 extern __at(0x0DBA) volatile __PWM3TMRHbits_t PWM3TMRHbits
;
4021 #define _PWM3TMRH0 0x01
4022 #define _PWM3TMRH1 0x02
4023 #define _PWM3TMRH2 0x04
4024 #define _PWM3TMRH3 0x08
4025 #define _PWM3TMRH4 0x10
4026 #define _PWM3TMRH5 0x20
4027 #define _PWM3TMRH6 0x40
4028 #define _PWM3TMRH7 0x80
4030 //==============================================================================
4033 //==============================================================================
4036 extern __at(0x0DBB) __sfr PWM3CON
;
4044 unsigned PWM3MODE0
: 1;
4045 unsigned PWM3MODE1
: 1;
4058 unsigned PWM3POL
: 1;
4059 unsigned PWM3OUT
: 1;
4060 unsigned PWM3OE
: 1;
4061 unsigned PWM3EN
: 1;
4067 unsigned PWM3MODE
: 2;
4079 extern __at(0x0DBB) volatile __PWM3CONbits_t PWM3CONbits
;
4081 #define _PWM3CON_PWM3MODE0 0x04
4082 #define _PWM3CON_MODE0 0x04
4083 #define _PWM3CON_PWM3MODE1 0x08
4084 #define _PWM3CON_MODE1 0x08
4085 #define _PWM3CON_POL 0x10
4086 #define _PWM3CON_PWM3POL 0x10
4087 #define _PWM3CON_OUT 0x20
4088 #define _PWM3CON_PWM3OUT 0x20
4089 #define _PWM3CON_OE 0x40
4090 #define _PWM3CON_PWM3OE 0x40
4091 #define _PWM3CON_EN 0x80
4092 #define _PWM3CON_PWM3EN 0x80
4094 //==============================================================================
4097 //==============================================================================
4100 extern __at(0x0DBC) __sfr PWM3INTCON
;
4118 unsigned PWM3PRIE
: 1;
4119 unsigned PWM3DCIE
: 1;
4120 unsigned PWM3PHIE
: 1;
4121 unsigned PWM3OFIE
: 1;
4127 } __PWM3INTCONbits_t
;
4129 extern __at(0x0DBC) volatile __PWM3INTCONbits_t PWM3INTCONbits
;
4131 #define _PWM3INTCON_PRIE 0x01
4132 #define _PWM3INTCON_PWM3PRIE 0x01
4133 #define _PWM3INTCON_DCIE 0x02
4134 #define _PWM3INTCON_PWM3DCIE 0x02
4135 #define _PWM3INTCON_PHIE 0x04
4136 #define _PWM3INTCON_PWM3PHIE 0x04
4137 #define _PWM3INTCON_OFIE 0x08
4138 #define _PWM3INTCON_PWM3OFIE 0x08
4140 //==============================================================================
4143 //==============================================================================
4146 extern __at(0x0DBC) __sfr PWM3INTE
;
4164 unsigned PWM3PRIE
: 1;
4165 unsigned PWM3DCIE
: 1;
4166 unsigned PWM3PHIE
: 1;
4167 unsigned PWM3OFIE
: 1;
4175 extern __at(0x0DBC) volatile __PWM3INTEbits_t PWM3INTEbits
;
4177 #define _PWM3INTE_PRIE 0x01
4178 #define _PWM3INTE_PWM3PRIE 0x01
4179 #define _PWM3INTE_DCIE 0x02
4180 #define _PWM3INTE_PWM3DCIE 0x02
4181 #define _PWM3INTE_PHIE 0x04
4182 #define _PWM3INTE_PWM3PHIE 0x04
4183 #define _PWM3INTE_OFIE 0x08
4184 #define _PWM3INTE_PWM3OFIE 0x08
4186 //==============================================================================
4189 //==============================================================================
4192 extern __at(0x0DBD) __sfr PWM3INTF
;
4210 unsigned PWM3PRIF
: 1;
4211 unsigned PWM3DCIF
: 1;
4212 unsigned PWM3PHIF
: 1;
4213 unsigned PWM3OFIF
: 1;
4221 extern __at(0x0DBD) volatile __PWM3INTFbits_t PWM3INTFbits
;
4223 #define _PWM3INTF_PRIF 0x01
4224 #define _PWM3INTF_PWM3PRIF 0x01
4225 #define _PWM3INTF_DCIF 0x02
4226 #define _PWM3INTF_PWM3DCIF 0x02
4227 #define _PWM3INTF_PHIF 0x04
4228 #define _PWM3INTF_PWM3PHIF 0x04
4229 #define _PWM3INTF_OFIF 0x08
4230 #define _PWM3INTF_PWM3OFIF 0x08
4232 //==============================================================================
4235 //==============================================================================
4238 extern __at(0x0DBD) __sfr PWM3INTFLG
;
4256 unsigned PWM3PRIF
: 1;
4257 unsigned PWM3DCIF
: 1;
4258 unsigned PWM3PHIF
: 1;
4259 unsigned PWM3OFIF
: 1;
4265 } __PWM3INTFLGbits_t
;
4267 extern __at(0x0DBD) volatile __PWM3INTFLGbits_t PWM3INTFLGbits
;
4269 #define _PWM3INTFLG_PRIF 0x01
4270 #define _PWM3INTFLG_PWM3PRIF 0x01
4271 #define _PWM3INTFLG_DCIF 0x02
4272 #define _PWM3INTFLG_PWM3DCIF 0x02
4273 #define _PWM3INTFLG_PHIF 0x04
4274 #define _PWM3INTFLG_PWM3PHIF 0x04
4275 #define _PWM3INTFLG_OFIF 0x08
4276 #define _PWM3INTFLG_PWM3OFIF 0x08
4278 //==============================================================================
4281 //==============================================================================
4284 extern __at(0x0DBE) __sfr PWM3CLKCON
;
4290 unsigned PWM3CS0
: 1;
4291 unsigned PWM3CS1
: 1;
4294 unsigned PWM3PS0
: 1;
4295 unsigned PWM3PS1
: 1;
4296 unsigned PWM3PS2
: 1;
4320 unsigned PWM3CS
: 2;
4327 unsigned PWM3PS
: 3;
4337 } __PWM3CLKCONbits_t
;
4339 extern __at(0x0DBE) volatile __PWM3CLKCONbits_t PWM3CLKCONbits
;
4341 #define _PWM3CLKCON_PWM3CS0 0x01
4342 #define _PWM3CLKCON_CS0 0x01
4343 #define _PWM3CLKCON_PWM3CS1 0x02
4344 #define _PWM3CLKCON_CS1 0x02
4345 #define _PWM3CLKCON_PWM3PS0 0x10
4346 #define _PWM3CLKCON_PS0 0x10
4347 #define _PWM3CLKCON_PWM3PS1 0x20
4348 #define _PWM3CLKCON_PS1 0x20
4349 #define _PWM3CLKCON_PWM3PS2 0x40
4350 #define _PWM3CLKCON_PS2 0x40
4352 //==============================================================================
4355 //==============================================================================
4358 extern __at(0x0DBF) __sfr PWM3LDCON
;
4364 unsigned PWM3LDS0
: 1;
4365 unsigned PWM3LDS1
: 1;
4382 unsigned PWM3LDM
: 1;
4383 unsigned PWM3LD
: 1;
4394 unsigned PWM3LDS
: 2;
4397 } __PWM3LDCONbits_t
;
4399 extern __at(0x0DBF) volatile __PWM3LDCONbits_t PWM3LDCONbits
;
4401 #define _PWM3LDCON_PWM3LDS0 0x01
4402 #define _PWM3LDCON_LDS0 0x01
4403 #define _PWM3LDCON_PWM3LDS1 0x02
4404 #define _PWM3LDCON_LDS1 0x02
4405 #define _PWM3LDCON_LDT 0x40
4406 #define _PWM3LDCON_PWM3LDM 0x40
4407 #define _PWM3LDCON_LDA 0x80
4408 #define _PWM3LDCON_PWM3LD 0x80
4410 //==============================================================================
4413 //==============================================================================
4416 extern __at(0x0DC0) __sfr PWM3OFCON
;
4422 unsigned PWM3OFS0
: 1;
4423 unsigned PWM3OFS1
: 1;
4427 unsigned PWM3OFM0
: 1;
4428 unsigned PWM3OFM1
: 1;
4438 unsigned PWM3OFMC
: 1;
4452 unsigned PWM3OFS
: 2;
4466 unsigned PWM3OFM
: 2;
4469 } __PWM3OFCONbits_t
;
4471 extern __at(0x0DC0) volatile __PWM3OFCONbits_t PWM3OFCONbits
;
4473 #define _PWM3OFCON_PWM3OFS0 0x01
4474 #define _PWM3OFCON_OFS0 0x01
4475 #define _PWM3OFCON_PWM3OFS1 0x02
4476 #define _PWM3OFCON_OFS1 0x02
4477 #define _PWM3OFCON_OFO 0x10
4478 #define _PWM3OFCON_PWM3OFMC 0x10
4479 #define _PWM3OFCON_PWM3OFM0 0x20
4480 #define _PWM3OFCON_OFM0 0x20
4481 #define _PWM3OFCON_PWM3OFM1 0x40
4482 #define _PWM3OFCON_OFM1 0x40
4484 //==============================================================================
4487 //==============================================================================
4490 extern __at(0x0FE4) __sfr STATUS_SHAD
;
4494 unsigned C_SHAD
: 1;
4495 unsigned DC_SHAD
: 1;
4496 unsigned Z_SHAD
: 1;
4502 } __STATUS_SHADbits_t
;
4504 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
4506 #define _C_SHAD 0x01
4507 #define _DC_SHAD 0x02
4508 #define _Z_SHAD 0x04
4510 //==============================================================================
4512 extern __at(0x0FE5) __sfr WREG_SHAD
;
4513 extern __at(0x0FE6) __sfr BSR_SHAD
;
4514 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
4515 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
4516 extern __at(0x0FE8) __sfr FSR0_SHAD
;
4517 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
4518 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
4519 extern __at(0x0FEA) __sfr FSR1_SHAD
;
4520 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
4521 extern __at(0x0FED) __sfr STKPTR
;
4522 extern __at(0x0FEE) __sfr TOS
;
4523 extern __at(0x0FEE) __sfr TOSL
;
4524 extern __at(0x0FEF) __sfr TOSH
;
4526 //==============================================================================
4528 // Configuration Bits
4530 //==============================================================================
4532 #define _CONFIG1 0x8007
4533 #define _CONFIG2 0x8008
4535 //----------------------------- CONFIG1 Options -------------------------------
4537 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator; I/O function on CLKIN pin.
4538 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz); device clock supplied to CLKIN pin.
4539 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz); device clock supplied to CLKIN pin.
4540 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz); device clock supplied to CLKIN pin.
4541 #define _WDTE_OFF 0x3FE7 // WDT disabled.
4542 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
4543 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
4544 #define _WDTE_ON 0x3FFF // WDT enabled.
4545 #define _PWRTE_ON 0x3FDF // PWRT enabled.
4546 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
4547 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
4548 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
4549 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
4550 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
4551 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
4552 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
4553 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
4554 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
4555 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
4556 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
4558 //----------------------------- CONFIG2 Options -------------------------------
4560 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
4561 #define _WRT_HALF 0x3FFD // 000h to 3FFh write protected, 400h to 7FFh may be modified by EECON control.
4562 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 7FFh may be modified by EECON control.
4563 #define _WRT_OFF 0x3FFF // Write protection off.
4564 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
4565 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
4566 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
4567 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
4568 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
4569 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
4570 #define _BORV_19 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
4571 #define _LPBOREN_ON 0x37FF // LPBOR is enabled.
4572 #define _LPBOREN_OFF 0x3FFF // LPBOR is disabled.
4573 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
4574 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
4575 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
4576 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
4578 //==============================================================================
4580 #define _DEVID1 0x8006
4582 #define _IDLOC0 0x8000
4583 #define _IDLOC1 0x8001
4584 #define _IDLOC2 0x8002
4585 #define _IDLOC3 0x8003
4587 //==============================================================================
4589 #ifndef NO_BIT_DEFINES
4591 #define ADON ADCON0bits.ADON // bit 0
4592 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
4593 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
4594 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
4595 #define NOT_DONE ADCON0bits.NOT_DONE // bit 1, shadows bit in ADCON0bits
4596 #define CHS0 ADCON0bits.CHS0 // bit 2
4597 #define CHS1 ADCON0bits.CHS1 // bit 3
4598 #define CHS2 ADCON0bits.CHS2 // bit 4
4599 #define CHS3 ADCON0bits.CHS3 // bit 5
4600 #define CHS4 ADCON0bits.CHS4 // bit 6
4602 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
4603 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
4604 #define ADCS0 ADCON1bits.ADCS0 // bit 4
4605 #define ADCS1 ADCON1bits.ADCS1 // bit 5
4606 #define ADCS2 ADCON1bits.ADCS2 // bit 6
4607 #define ADFM ADCON1bits.ADFM // bit 7
4609 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
4610 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
4611 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
4612 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
4614 #define ANSA0 ANSELAbits.ANSA0 // bit 0
4615 #define ANSA1 ANSELAbits.ANSA1 // bit 1
4616 #define ANSA2 ANSELAbits.ANSA2 // bit 2
4617 #define ANSA4 ANSELAbits.ANSA4 // bit 4
4619 #define P1SEL APFCONbits.P1SEL // bit 0
4620 #define P2SEL APFCONbits.P2SEL // bit 1
4621 #define TXCKSEL APFCONbits.TXCKSEL // bit 2
4622 #define T1GSEL APFCONbits.T1GSEL // bit 3
4623 #define CWGBSEL APFCONbits.CWGBSEL // bit 5
4624 #define CWGASEL APFCONbits.CWGASEL // bit 6
4625 #define RXDTSEL APFCONbits.RXDTSEL // bit 7
4627 #define ABDEN BAUDCONbits.ABDEN // bit 0
4628 #define WUE BAUDCONbits.WUE // bit 1
4629 #define BRG16 BAUDCONbits.BRG16 // bit 3
4630 #define SCKP BAUDCONbits.SCKP // bit 4
4631 #define RCIDL BAUDCONbits.RCIDL // bit 6
4632 #define ABDOVF BAUDCONbits.ABDOVF // bit 7
4634 #define BORRDY BORCONbits.BORRDY // bit 0
4635 #define BORFS BORCONbits.BORFS // bit 6
4636 #define SBOREN BORCONbits.SBOREN // bit 7
4638 #define BSR0 BSRbits.BSR0 // bit 0
4639 #define BSR1 BSRbits.BSR1 // bit 1
4640 #define BSR2 BSRbits.BSR2 // bit 2
4641 #define BSR3 BSRbits.BSR3 // bit 3
4642 #define BSR4 BSRbits.BSR4 // bit 4
4644 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
4645 #define C1HYS CM1CON0bits.C1HYS // bit 1
4646 #define C1SP CM1CON0bits.C1SP // bit 2
4647 #define C1POL CM1CON0bits.C1POL // bit 4
4648 #define C1OE CM1CON0bits.C1OE // bit 5
4649 #define C1OUT CM1CON0bits.C1OUT // bit 6
4650 #define C1ON CM1CON0bits.C1ON // bit 7
4652 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
4653 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
4654 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
4655 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
4656 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
4657 #define C1INTN CM1CON1bits.C1INTN // bit 6
4658 #define C1INTP CM1CON1bits.C1INTP // bit 7
4660 #define MC1OUT CMOUTbits.MC1OUT // bit 0
4662 #define G1CS0 CWG1CON0bits.G1CS0 // bit 0
4663 #define G1POLA CWG1CON0bits.G1POLA // bit 3
4664 #define G1POLB CWG1CON0bits.G1POLB // bit 4
4665 #define G1OEA CWG1CON0bits.G1OEA // bit 5
4666 #define G1OEB CWG1CON0bits.G1OEB // bit 6
4667 #define G1EN CWG1CON0bits.G1EN // bit 7
4669 #define G1IS0 CWG1CON1bits.G1IS0 // bit 0
4670 #define G1IS1 CWG1CON1bits.G1IS1 // bit 1
4671 #define G1IS2 CWG1CON1bits.G1IS2 // bit 2
4672 #define G1ASDLA0 CWG1CON1bits.G1ASDLA0 // bit 4
4673 #define G1ASDLA1 CWG1CON1bits.G1ASDLA1 // bit 5
4674 #define G1ASDLB0 CWG1CON1bits.G1ASDLB0 // bit 6
4675 #define G1ASDLB1 CWG1CON1bits.G1ASDLB1 // bit 7
4677 #define G1ASDSFLT CWG1CON2bits.G1ASDSFLT // bit 1
4678 #define G1ASDSC1 CWG1CON2bits.G1ASDSC1 // bit 2
4679 #define G1ARSEN CWG1CON2bits.G1ARSEN // bit 6
4680 #define G1ASE CWG1CON2bits.G1ASE // bit 7
4682 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0
4683 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1
4684 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2
4685 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3
4686 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4
4687 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5
4689 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0
4690 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1
4691 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2
4692 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3
4693 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4
4694 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5
4696 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
4697 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
4698 #define DACOE DACCON0bits.DACOE // bit 5
4699 #define DACLPS DACCON0bits.DACLPS // bit 6
4700 #define DACEN DACCON0bits.DACEN // bit 7
4702 #define DACR0 DACCON1bits.DACR0 // bit 0
4703 #define DACR1 DACCON1bits.DACR1 // bit 1
4704 #define DACR2 DACCON1bits.DACR2 // bit 2
4705 #define DACR3 DACCON1bits.DACR3 // bit 3
4706 #define DACR4 DACCON1bits.DACR4 // bit 4
4708 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
4709 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
4710 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
4711 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
4712 #define TSRNG FVRCONbits.TSRNG // bit 4
4713 #define TSEN FVRCONbits.TSEN // bit 5
4714 #define FVRRDY FVRCONbits.FVRRDY // bit 6
4715 #define FVREN FVRCONbits.FVREN // bit 7
4717 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
4718 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
4719 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
4720 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
4721 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
4722 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
4724 #define IOCIF INTCONbits.IOCIF // bit 0
4725 #define INTF INTCONbits.INTF // bit 1
4726 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
4727 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
4728 #define IOCIE INTCONbits.IOCIE // bit 3
4729 #define INTE INTCONbits.INTE // bit 4
4730 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
4731 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
4732 #define PEIE INTCONbits.PEIE // bit 6
4733 #define GIE INTCONbits.GIE // bit 7
4735 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
4736 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
4737 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
4738 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
4739 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
4740 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
4742 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
4743 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
4744 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
4745 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
4746 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
4747 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
4749 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
4750 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
4751 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
4752 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
4753 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
4754 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
4756 #define LATA0 LATAbits.LATA0 // bit 0
4757 #define LATA1 LATAbits.LATA1 // bit 1
4758 #define LATA2 LATAbits.LATA2 // bit 2
4759 #define LATA4 LATAbits.LATA4 // bit 4
4760 #define LATA5 LATAbits.LATA5 // bit 5
4762 #define ODA0 ODCONAbits.ODA0 // bit 0
4763 #define ODA1 ODCONAbits.ODA1 // bit 1
4764 #define ODA2 ODCONAbits.ODA2 // bit 2
4765 #define ODA4 ODCONAbits.ODA4 // bit 4
4766 #define ODA5 ODCONAbits.ODA5 // bit 5
4768 #define PS0 OPTION_REGbits.PS0 // bit 0
4769 #define PS1 OPTION_REGbits.PS1 // bit 1
4770 #define PS2 OPTION_REGbits.PS2 // bit 2
4771 #define PSA OPTION_REGbits.PSA // bit 3
4772 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
4773 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
4774 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
4775 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
4776 #define INTEDG OPTION_REGbits.INTEDG // bit 6
4777 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
4779 #define SCS0 OSCCONbits.SCS0 // bit 0
4780 #define SCS1 OSCCONbits.SCS1 // bit 1
4781 #define IRCF0 OSCCONbits.IRCF0 // bit 3
4782 #define IRCF1 OSCCONbits.IRCF1 // bit 4
4783 #define IRCF2 OSCCONbits.IRCF2 // bit 5
4784 #define IRCF3 OSCCONbits.IRCF3 // bit 6
4785 #define SPLLEN OSCCONbits.SPLLEN // bit 7
4787 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
4788 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
4789 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
4790 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
4791 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
4792 #define OSTS OSCSTATbits.OSTS // bit 5
4793 #define PLLR OSCSTATbits.PLLR // bit 6
4795 #define TUN0 OSCTUNEbits.TUN0 // bit 0
4796 #define TUN1 OSCTUNEbits.TUN1 // bit 1
4797 #define TUN2 OSCTUNEbits.TUN2 // bit 2
4798 #define TUN3 OSCTUNEbits.TUN3 // bit 3
4799 #define TUN4 OSCTUNEbits.TUN4 // bit 4
4800 #define TUN5 OSCTUNEbits.TUN5 // bit 5
4802 #define NOT_BOR PCONbits.NOT_BOR // bit 0
4803 #define NOT_POR PCONbits.NOT_POR // bit 1
4804 #define NOT_RI PCONbits.NOT_RI // bit 2
4805 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
4806 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
4807 #define STKUNF PCONbits.STKUNF // bit 6
4808 #define STKOVF PCONbits.STKOVF // bit 7
4810 #define TMR1IE PIE1bits.TMR1IE // bit 0
4811 #define TMR2IE PIE1bits.TMR2IE // bit 1
4812 #define TXIE PIE1bits.TXIE // bit 4
4813 #define RCIE PIE1bits.RCIE // bit 5
4814 #define ADIE PIE1bits.ADIE // bit 6
4815 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
4817 #define C1IE PIE2bits.C1IE // bit 5
4819 #define PWM1IE PIE3bits.PWM1IE // bit 4
4820 #define PWM2IE PIE3bits.PWM2IE // bit 5
4821 #define PWM3IE PIE3bits.PWM3IE // bit 6
4823 #define TMR1IF PIR1bits.TMR1IF // bit 0
4824 #define TMR2IF PIR1bits.TMR2IF // bit 1
4825 #define TXIF PIR1bits.TXIF // bit 4
4826 #define RCIF PIR1bits.RCIF // bit 5
4827 #define ADIF PIR1bits.ADIF // bit 6
4828 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
4830 #define C1IF PIR2bits.C1IF // bit 5
4832 #define PWM1IF PIR3bits.PWM1IF // bit 4
4833 #define PWM2IF PIR3bits.PWM2IF // bit 5
4834 #define PWM3IF PIR3bits.PWM3IF // bit 6
4836 #define RD PMCON1bits.RD // bit 0
4837 #define WR PMCON1bits.WR // bit 1
4838 #define WREN PMCON1bits.WREN // bit 2
4839 #define WRERR PMCON1bits.WRERR // bit 3
4840 #define FREE PMCON1bits.FREE // bit 4
4841 #define LWLO PMCON1bits.LWLO // bit 5
4842 #define CFGS PMCON1bits.CFGS // bit 6
4844 #define RA0 PORTAbits.RA0 // bit 0
4845 #define RA1 PORTAbits.RA1 // bit 1
4846 #define RA2 PORTAbits.RA2 // bit 2
4847 #define RA3 PORTAbits.RA3 // bit 3
4848 #define RA4 PORTAbits.RA4 // bit 4
4849 #define RA5 PORTAbits.RA5 // bit 5
4851 #define PWM1MODE0 PWM1CONbits.PWM1MODE0 // bit 2, shadows bit in PWM1CONbits
4852 #define MODE0 PWM1CONbits.MODE0 // bit 2, shadows bit in PWM1CONbits
4853 #define PWM1MODE1 PWM1CONbits.PWM1MODE1 // bit 3, shadows bit in PWM1CONbits
4854 #define MODE1 PWM1CONbits.MODE1 // bit 3, shadows bit in PWM1CONbits
4855 #define POL PWM1CONbits.POL // bit 4, shadows bit in PWM1CONbits
4856 #define PWM1POL PWM1CONbits.PWM1POL // bit 4, shadows bit in PWM1CONbits
4857 #define OUT PWM1CONbits.OUT // bit 5, shadows bit in PWM1CONbits
4858 #define PWM1OUT PWM1CONbits.PWM1OUT // bit 5, shadows bit in PWM1CONbits
4859 #define OE PWM1CONbits.OE // bit 6, shadows bit in PWM1CONbits
4860 #define PWM1OE PWM1CONbits.PWM1OE // bit 6, shadows bit in PWM1CONbits
4861 #define EN PWM1CONbits.EN // bit 7, shadows bit in PWM1CONbits
4862 #define PWM1EN PWM1CONbits.PWM1EN // bit 7, shadows bit in PWM1CONbits
4864 #define PWM1DCH0 PWM1DCHbits.PWM1DCH0 // bit 0
4865 #define PWM1DCH1 PWM1DCHbits.PWM1DCH1 // bit 1
4866 #define PWM1DCH2 PWM1DCHbits.PWM1DCH2 // bit 2
4867 #define PWM1DCH3 PWM1DCHbits.PWM1DCH3 // bit 3
4868 #define PWM1DCH4 PWM1DCHbits.PWM1DCH4 // bit 4
4869 #define PWM1DCH5 PWM1DCHbits.PWM1DCH5 // bit 5
4870 #define PWM1DCH6 PWM1DCHbits.PWM1DCH6 // bit 6
4871 #define PWM1DCH7 PWM1DCHbits.PWM1DCH7 // bit 7
4873 #define PWM1DCL0 PWM1DCLbits.PWM1DCL0 // bit 0
4874 #define PWM1DCL1 PWM1DCLbits.PWM1DCL1 // bit 1
4875 #define PWM1DCL2 PWM1DCLbits.PWM1DCL2 // bit 2
4876 #define PWM1DCL3 PWM1DCLbits.PWM1DCL3 // bit 3
4877 #define PWM1DCL4 PWM1DCLbits.PWM1DCL4 // bit 4
4878 #define PWM1DCL5 PWM1DCLbits.PWM1DCL5 // bit 5
4879 #define PWM1DCL6 PWM1DCLbits.PWM1DCL6 // bit 6
4880 #define PWM1DCL7 PWM1DCLbits.PWM1DCL7 // bit 7
4882 #define PRIE PWM1INTCONbits.PRIE // bit 0, shadows bit in PWM1INTCONbits
4883 #define PWM1PRIE PWM1INTCONbits.PWM1PRIE // bit 0, shadows bit in PWM1INTCONbits
4884 #define DCIE PWM1INTCONbits.DCIE // bit 1, shadows bit in PWM1INTCONbits
4885 #define PWM1DCIE PWM1INTCONbits.PWM1DCIE // bit 1, shadows bit in PWM1INTCONbits
4886 #define PHIE PWM1INTCONbits.PHIE // bit 2, shadows bit in PWM1INTCONbits
4887 #define PWM1PHIE PWM1INTCONbits.PWM1PHIE // bit 2, shadows bit in PWM1INTCONbits
4888 #define OFIE PWM1INTCONbits.OFIE // bit 3, shadows bit in PWM1INTCONbits
4889 #define PWM1OFIE PWM1INTCONbits.PWM1OFIE // bit 3, shadows bit in PWM1INTCONbits
4891 #define PRIF PWM1INTFbits.PRIF // bit 0, shadows bit in PWM1INTFbits
4892 #define PWM1PRIF PWM1INTFbits.PWM1PRIF // bit 0, shadows bit in PWM1INTFbits
4893 #define DCIF PWM1INTFbits.DCIF // bit 1, shadows bit in PWM1INTFbits
4894 #define PWM1DCIF PWM1INTFbits.PWM1DCIF // bit 1, shadows bit in PWM1INTFbits
4895 #define PHIF PWM1INTFbits.PHIF // bit 2, shadows bit in PWM1INTFbits
4896 #define PWM1PHIF PWM1INTFbits.PWM1PHIF // bit 2, shadows bit in PWM1INTFbits
4897 #define OFIF PWM1INTFbits.OFIF // bit 3, shadows bit in PWM1INTFbits
4898 #define PWM1OFIF PWM1INTFbits.PWM1OFIF // bit 3, shadows bit in PWM1INTFbits
4900 #define PWM1LDS0 PWM1LDCONbits.PWM1LDS0 // bit 0, shadows bit in PWM1LDCONbits
4901 #define LDS0 PWM1LDCONbits.LDS0 // bit 0, shadows bit in PWM1LDCONbits
4902 #define PWM1LDS1 PWM1LDCONbits.PWM1LDS1 // bit 1, shadows bit in PWM1LDCONbits
4903 #define LDS1 PWM1LDCONbits.LDS1 // bit 1, shadows bit in PWM1LDCONbits
4904 #define LDT PWM1LDCONbits.LDT // bit 6, shadows bit in PWM1LDCONbits
4905 #define PWM1LDM PWM1LDCONbits.PWM1LDM // bit 6, shadows bit in PWM1LDCONbits
4906 #define LDA PWM1LDCONbits.LDA // bit 7, shadows bit in PWM1LDCONbits
4907 #define PWM1LD PWM1LDCONbits.PWM1LD // bit 7, shadows bit in PWM1LDCONbits
4909 #define PWM1OFS0 PWM1OFCONbits.PWM1OFS0 // bit 0, shadows bit in PWM1OFCONbits
4910 #define OFS0 PWM1OFCONbits.OFS0 // bit 0, shadows bit in PWM1OFCONbits
4911 #define PWM1OFS1 PWM1OFCONbits.PWM1OFS1 // bit 1, shadows bit in PWM1OFCONbits
4912 #define OFS1 PWM1OFCONbits.OFS1 // bit 1, shadows bit in PWM1OFCONbits
4913 #define OFO PWM1OFCONbits.OFO // bit 4, shadows bit in PWM1OFCONbits
4914 #define PWM1OFMC PWM1OFCONbits.PWM1OFMC // bit 4, shadows bit in PWM1OFCONbits
4915 #define PWM1OFM0 PWM1OFCONbits.PWM1OFM0 // bit 5, shadows bit in PWM1OFCONbits
4916 #define OFM0 PWM1OFCONbits.OFM0 // bit 5, shadows bit in PWM1OFCONbits
4917 #define PWM1OFM1 PWM1OFCONbits.PWM1OFM1 // bit 6, shadows bit in PWM1OFCONbits
4918 #define OFM1 PWM1OFCONbits.OFM1 // bit 6, shadows bit in PWM1OFCONbits
4920 #define PWM1OFH0 PWM1OFHbits.PWM1OFH0 // bit 0
4921 #define PWM1OFH1 PWM1OFHbits.PWM1OFH1 // bit 1
4922 #define PWM1OFH2 PWM1OFHbits.PWM1OFH2 // bit 2
4923 #define PWM1OFH3 PWM1OFHbits.PWM1OFH3 // bit 3
4924 #define PWM1OFH4 PWM1OFHbits.PWM1OFH4 // bit 4
4925 #define PWM1OFH5 PWM1OFHbits.PWM1OFH5 // bit 5
4926 #define PWM1OFH6 PWM1OFHbits.PWM1OFH6 // bit 6
4927 #define PWM1OFH7 PWM1OFHbits.PWM1OFH7 // bit 7
4929 #define PWM1OFL0 PWM1OFLbits.PWM1OFL0 // bit 0
4930 #define PWM1OFL1 PWM1OFLbits.PWM1OFL1 // bit 1
4931 #define PWM1OFL2 PWM1OFLbits.PWM1OFL2 // bit 2
4932 #define PWM1OFL3 PWM1OFLbits.PWM1OFL3 // bit 3
4933 #define PWM1OFL4 PWM1OFLbits.PWM1OFL4 // bit 4
4934 #define PWM1OFL5 PWM1OFLbits.PWM1OFL5 // bit 5
4935 #define PWM1OFL6 PWM1OFLbits.PWM1OFL6 // bit 6
4936 #define PWM1OFL7 PWM1OFLbits.PWM1OFL7 // bit 7
4938 #define PWM1PHH0 PWM1PHHbits.PWM1PHH0 // bit 0
4939 #define PWM1PHH1 PWM1PHHbits.PWM1PHH1 // bit 1
4940 #define PWM1PHH2 PWM1PHHbits.PWM1PHH2 // bit 2
4941 #define PWM1PHH3 PWM1PHHbits.PWM1PHH3 // bit 3
4942 #define PWM1PHH4 PWM1PHHbits.PWM1PHH4 // bit 4
4943 #define PWM1PHH5 PWM1PHHbits.PWM1PHH5 // bit 5
4944 #define PWM1PHH6 PWM1PHHbits.PWM1PHH6 // bit 6
4945 #define PWM1PHH7 PWM1PHHbits.PWM1PHH7 // bit 7
4947 #define PWM1PHL0 PWM1PHLbits.PWM1PHL0 // bit 0
4948 #define PWM1PHL1 PWM1PHLbits.PWM1PHL1 // bit 1
4949 #define PWM1PHL2 PWM1PHLbits.PWM1PHL2 // bit 2
4950 #define PWM1PHL3 PWM1PHLbits.PWM1PHL3 // bit 3
4951 #define PWM1PHL4 PWM1PHLbits.PWM1PHL4 // bit 4
4952 #define PWM1PHL5 PWM1PHLbits.PWM1PHL5 // bit 5
4953 #define PWM1PHL6 PWM1PHLbits.PWM1PHL6 // bit 6
4954 #define PWM1PHL7 PWM1PHLbits.PWM1PHL7 // bit 7
4956 #define PWM1PRH0 PWM1PRHbits.PWM1PRH0 // bit 0
4957 #define PWM1PRH1 PWM1PRHbits.PWM1PRH1 // bit 1
4958 #define PWM1PRH2 PWM1PRHbits.PWM1PRH2 // bit 2
4959 #define PWM1PRH3 PWM1PRHbits.PWM1PRH3 // bit 3
4960 #define PWM1PRH4 PWM1PRHbits.PWM1PRH4 // bit 4
4961 #define PWM1PRH5 PWM1PRHbits.PWM1PRH5 // bit 5
4962 #define PWM1PRH6 PWM1PRHbits.PWM1PRH6 // bit 6
4963 #define PWM1PRH7 PWM1PRHbits.PWM1PRH7 // bit 7
4965 #define PWM1PRL0 PWM1PRLbits.PWM1PRL0 // bit 0
4966 #define PWM1PRL1 PWM1PRLbits.PWM1PRL1 // bit 1
4967 #define PWM1PRL2 PWM1PRLbits.PWM1PRL2 // bit 2
4968 #define PWM1PRL3 PWM1PRLbits.PWM1PRL3 // bit 3
4969 #define PWM1PRL4 PWM1PRLbits.PWM1PRL4 // bit 4
4970 #define PWM1PRL5 PWM1PRLbits.PWM1PRL5 // bit 5
4971 #define PWM1PRL6 PWM1PRLbits.PWM1PRL6 // bit 6
4972 #define PWM1PRL7 PWM1PRLbits.PWM1PRL7 // bit 7
4974 #define PWM1TMRH0 PWM1TMRHbits.PWM1TMRH0 // bit 0
4975 #define PWM1TMRH1 PWM1TMRHbits.PWM1TMRH1 // bit 1
4976 #define PWM1TMRH2 PWM1TMRHbits.PWM1TMRH2 // bit 2
4977 #define PWM1TMRH3 PWM1TMRHbits.PWM1TMRH3 // bit 3
4978 #define PWM1TMRH4 PWM1TMRHbits.PWM1TMRH4 // bit 4
4979 #define PWM1TMRH5 PWM1TMRHbits.PWM1TMRH5 // bit 5
4980 #define PWM1TMRH6 PWM1TMRHbits.PWM1TMRH6 // bit 6
4981 #define PWM1TMRH7 PWM1TMRHbits.PWM1TMRH7 // bit 7
4983 #define PWM1TMRL0 PWM1TMRLbits.PWM1TMRL0 // bit 0
4984 #define PWM1TMRL1 PWM1TMRLbits.PWM1TMRL1 // bit 1
4985 #define PWM1TMRL2 PWM1TMRLbits.PWM1TMRL2 // bit 2
4986 #define PWM1TMRL3 PWM1TMRLbits.PWM1TMRL3 // bit 3
4987 #define PWM1TMRL4 PWM1TMRLbits.PWM1TMRL4 // bit 4
4988 #define PWM1TMRL5 PWM1TMRLbits.PWM1TMRL5 // bit 5
4989 #define PWM1TMRL6 PWM1TMRLbits.PWM1TMRL6 // bit 6
4990 #define PWM1TMRL7 PWM1TMRLbits.PWM1TMRL7 // bit 7
4992 #define PWM2DCH0 PWM2DCHbits.PWM2DCH0 // bit 0
4993 #define PWM2DCH1 PWM2DCHbits.PWM2DCH1 // bit 1
4994 #define PWM2DCH2 PWM2DCHbits.PWM2DCH2 // bit 2
4995 #define PWM2DCH3 PWM2DCHbits.PWM2DCH3 // bit 3
4996 #define PWM2DCH4 PWM2DCHbits.PWM2DCH4 // bit 4
4997 #define PWM2DCH5 PWM2DCHbits.PWM2DCH5 // bit 5
4998 #define PWM2DCH6 PWM2DCHbits.PWM2DCH6 // bit 6
4999 #define PWM2DCH7 PWM2DCHbits.PWM2DCH7 // bit 7
5001 #define PWM2DCL0 PWM2DCLbits.PWM2DCL0 // bit 0
5002 #define PWM2DCL1 PWM2DCLbits.PWM2DCL1 // bit 1
5003 #define PWM2DCL2 PWM2DCLbits.PWM2DCL2 // bit 2
5004 #define PWM2DCL3 PWM2DCLbits.PWM2DCL3 // bit 3
5005 #define PWM2DCL4 PWM2DCLbits.PWM2DCL4 // bit 4
5006 #define PWM2DCL5 PWM2DCLbits.PWM2DCL5 // bit 5
5007 #define PWM2DCL6 PWM2DCLbits.PWM2DCL6 // bit 6
5008 #define PWM2DCL7 PWM2DCLbits.PWM2DCL7 // bit 7
5010 #define PWM2OFH0 PWM2OFHbits.PWM2OFH0 // bit 0
5011 #define PWM2OFH1 PWM2OFHbits.PWM2OFH1 // bit 1
5012 #define PWM2OFH2 PWM2OFHbits.PWM2OFH2 // bit 2
5013 #define PWM2OFH3 PWM2OFHbits.PWM2OFH3 // bit 3
5014 #define PWM2OFH4 PWM2OFHbits.PWM2OFH4 // bit 4
5015 #define PWM2OFH5 PWM2OFHbits.PWM2OFH5 // bit 5
5016 #define PWM2OFH6 PWM2OFHbits.PWM2OFH6 // bit 6
5017 #define PWM2OFH7 PWM2OFHbits.PWM2OFH7 // bit 7
5019 #define PWM2OFL0 PWM2OFLbits.PWM2OFL0 // bit 0
5020 #define PWM2OFL1 PWM2OFLbits.PWM2OFL1 // bit 1
5021 #define PWM2OFL2 PWM2OFLbits.PWM2OFL2 // bit 2
5022 #define PWM2OFL3 PWM2OFLbits.PWM2OFL3 // bit 3
5023 #define PWM2OFL4 PWM2OFLbits.PWM2OFL4 // bit 4
5024 #define PWM2OFL5 PWM2OFLbits.PWM2OFL5 // bit 5
5025 #define PWM2OFL6 PWM2OFLbits.PWM2OFL6 // bit 6
5026 #define PWM2OFL7 PWM2OFLbits.PWM2OFL7 // bit 7
5028 #define PWM2PHH0 PWM2PHHbits.PWM2PHH0 // bit 0
5029 #define PWM2PHH1 PWM2PHHbits.PWM2PHH1 // bit 1
5030 #define PWM2PHH2 PWM2PHHbits.PWM2PHH2 // bit 2
5031 #define PWM2PHH3 PWM2PHHbits.PWM2PHH3 // bit 3
5032 #define PWM2PHH4 PWM2PHHbits.PWM2PHH4 // bit 4
5033 #define PWM2PHH5 PWM2PHHbits.PWM2PHH5 // bit 5
5034 #define PWM2PHH6 PWM2PHHbits.PWM2PHH6 // bit 6
5035 #define PWM2PHH7 PWM2PHHbits.PWM2PHH7 // bit 7
5037 #define PWM2PHL0 PWM2PHLbits.PWM2PHL0 // bit 0
5038 #define PWM2PHL1 PWM2PHLbits.PWM2PHL1 // bit 1
5039 #define PWM2PHL2 PWM2PHLbits.PWM2PHL2 // bit 2
5040 #define PWM2PHL3 PWM2PHLbits.PWM2PHL3 // bit 3
5041 #define PWM2PHL4 PWM2PHLbits.PWM2PHL4 // bit 4
5042 #define PWM2PHL5 PWM2PHLbits.PWM2PHL5 // bit 5
5043 #define PWM2PHL6 PWM2PHLbits.PWM2PHL6 // bit 6
5044 #define PWM2PHL7 PWM2PHLbits.PWM2PHL7 // bit 7
5046 #define PWM2PRH0 PWM2PRHbits.PWM2PRH0 // bit 0
5047 #define PWM2PRH1 PWM2PRHbits.PWM2PRH1 // bit 1
5048 #define PWM2PRH2 PWM2PRHbits.PWM2PRH2 // bit 2
5049 #define PWM2PRH3 PWM2PRHbits.PWM2PRH3 // bit 3
5050 #define PWM2PRH4 PWM2PRHbits.PWM2PRH4 // bit 4
5051 #define PWM2PRH5 PWM2PRHbits.PWM2PRH5 // bit 5
5052 #define PWM2PRH6 PWM2PRHbits.PWM2PRH6 // bit 6
5053 #define PWM2PRH7 PWM2PRHbits.PWM2PRH7 // bit 7
5055 #define PWM2PRL0 PWM2PRLbits.PWM2PRL0 // bit 0
5056 #define PWM2PRL1 PWM2PRLbits.PWM2PRL1 // bit 1
5057 #define PWM2PRL2 PWM2PRLbits.PWM2PRL2 // bit 2
5058 #define PWM2PRL3 PWM2PRLbits.PWM2PRL3 // bit 3
5059 #define PWM2PRL4 PWM2PRLbits.PWM2PRL4 // bit 4
5060 #define PWM2PRL5 PWM2PRLbits.PWM2PRL5 // bit 5
5061 #define PWM2PRL6 PWM2PRLbits.PWM2PRL6 // bit 6
5062 #define PWM2PRL7 PWM2PRLbits.PWM2PRL7 // bit 7
5064 #define PWM2TMRH0 PWM2TMRHbits.PWM2TMRH0 // bit 0
5065 #define PWM2TMRH1 PWM2TMRHbits.PWM2TMRH1 // bit 1
5066 #define PWM2TMRH2 PWM2TMRHbits.PWM2TMRH2 // bit 2
5067 #define PWM2TMRH3 PWM2TMRHbits.PWM2TMRH3 // bit 3
5068 #define PWM2TMRH4 PWM2TMRHbits.PWM2TMRH4 // bit 4
5069 #define PWM2TMRH5 PWM2TMRHbits.PWM2TMRH5 // bit 5
5070 #define PWM2TMRH6 PWM2TMRHbits.PWM2TMRH6 // bit 6
5071 #define PWM2TMRH7 PWM2TMRHbits.PWM2TMRH7 // bit 7
5073 #define PWM2TMRL0 PWM2TMRLbits.PWM2TMRL0 // bit 0
5074 #define PWM2TMRL1 PWM2TMRLbits.PWM2TMRL1 // bit 1
5075 #define PWM2TMRL2 PWM2TMRLbits.PWM2TMRL2 // bit 2
5076 #define PWM2TMRL3 PWM2TMRLbits.PWM2TMRL3 // bit 3
5077 #define PWM2TMRL4 PWM2TMRLbits.PWM2TMRL4 // bit 4
5078 #define PWM2TMRL5 PWM2TMRLbits.PWM2TMRL5 // bit 5
5079 #define PWM2TMRL6 PWM2TMRLbits.PWM2TMRL6 // bit 6
5080 #define PWM2TMRL7 PWM2TMRLbits.PWM2TMRL7 // bit 7
5082 #define PWM3DCH0 PWM3DCHbits.PWM3DCH0 // bit 0
5083 #define PWM3DCH1 PWM3DCHbits.PWM3DCH1 // bit 1
5084 #define PWM3DCH2 PWM3DCHbits.PWM3DCH2 // bit 2
5085 #define PWM3DCH3 PWM3DCHbits.PWM3DCH3 // bit 3
5086 #define PWM3DCH4 PWM3DCHbits.PWM3DCH4 // bit 4
5087 #define PWM3DCH5 PWM3DCHbits.PWM3DCH5 // bit 5
5088 #define PWM3DCH6 PWM3DCHbits.PWM3DCH6 // bit 6
5089 #define PWM3DCH7 PWM3DCHbits.PWM3DCH7 // bit 7
5091 #define PWM3DCL0 PWM3DCLbits.PWM3DCL0 // bit 0
5092 #define PWM3DCL1 PWM3DCLbits.PWM3DCL1 // bit 1
5093 #define PWM3DCL2 PWM3DCLbits.PWM3DCL2 // bit 2
5094 #define PWM3DCL3 PWM3DCLbits.PWM3DCL3 // bit 3
5095 #define PWM3DCL4 PWM3DCLbits.PWM3DCL4 // bit 4
5096 #define PWM3DCL5 PWM3DCLbits.PWM3DCL5 // bit 5
5097 #define PWM3DCL6 PWM3DCLbits.PWM3DCL6 // bit 6
5098 #define PWM3DCL7 PWM3DCLbits.PWM3DCL7 // bit 7
5100 #define PWM3OFH0 PWM3OFHbits.PWM3OFH0 // bit 0
5101 #define PWM3OFH1 PWM3OFHbits.PWM3OFH1 // bit 1
5102 #define PWM3OFH2 PWM3OFHbits.PWM3OFH2 // bit 2
5103 #define PWM3OFH3 PWM3OFHbits.PWM3OFH3 // bit 3
5104 #define PWM3OFH4 PWM3OFHbits.PWM3OFH4 // bit 4
5105 #define PWM3OFH5 PWM3OFHbits.PWM3OFH5 // bit 5
5106 #define PWM3OFH6 PWM3OFHbits.PWM3OFH6 // bit 6
5107 #define PWM3OFH7 PWM3OFHbits.PWM3OFH7 // bit 7
5109 #define PWM3OFL0 PWM3OFLbits.PWM3OFL0 // bit 0
5110 #define PWM3OFL1 PWM3OFLbits.PWM3OFL1 // bit 1
5111 #define PWM3OFL2 PWM3OFLbits.PWM3OFL2 // bit 2
5112 #define PWM3OFL3 PWM3OFLbits.PWM3OFL3 // bit 3
5113 #define PWM3OFL4 PWM3OFLbits.PWM3OFL4 // bit 4
5114 #define PWM3OFL5 PWM3OFLbits.PWM3OFL5 // bit 5
5115 #define PWM3OFL6 PWM3OFLbits.PWM3OFL6 // bit 6
5116 #define PWM3OFL7 PWM3OFLbits.PWM3OFL7 // bit 7
5118 #define PWM3PHH0 PWM3PHHbits.PWM3PHH0 // bit 0
5119 #define PWM3PHH1 PWM3PHHbits.PWM3PHH1 // bit 1
5120 #define PWM3PHH2 PWM3PHHbits.PWM3PHH2 // bit 2
5121 #define PWM3PHH3 PWM3PHHbits.PWM3PHH3 // bit 3
5122 #define PWM3PHH4 PWM3PHHbits.PWM3PHH4 // bit 4
5123 #define PWM3PHH5 PWM3PHHbits.PWM3PHH5 // bit 5
5124 #define PWM3PHH6 PWM3PHHbits.PWM3PHH6 // bit 6
5125 #define PWM3PHH7 PWM3PHHbits.PWM3PHH7 // bit 7
5127 #define PWM3PHL0 PWM3PHLbits.PWM3PHL0 // bit 0
5128 #define PWM3PHL1 PWM3PHLbits.PWM3PHL1 // bit 1
5129 #define PWM3PHL2 PWM3PHLbits.PWM3PHL2 // bit 2
5130 #define PWM3PHL3 PWM3PHLbits.PWM3PHL3 // bit 3
5131 #define PWM3PHL4 PWM3PHLbits.PWM3PHL4 // bit 4
5132 #define PWM3PHL5 PWM3PHLbits.PWM3PHL5 // bit 5
5133 #define PWM3PHL6 PWM3PHLbits.PWM3PHL6 // bit 6
5134 #define PWM3PHL7 PWM3PHLbits.PWM3PHL7 // bit 7
5136 #define PWM3PRH0 PWM3PRHbits.PWM3PRH0 // bit 0
5137 #define PWM3PRH1 PWM3PRHbits.PWM3PRH1 // bit 1
5138 #define PWM3PRH2 PWM3PRHbits.PWM3PRH2 // bit 2
5139 #define PWM3PRH3 PWM3PRHbits.PWM3PRH3 // bit 3
5140 #define PWM3PRH4 PWM3PRHbits.PWM3PRH4 // bit 4
5141 #define PWM3PRH5 PWM3PRHbits.PWM3PRH5 // bit 5
5142 #define PWM3PRH6 PWM3PRHbits.PWM3PRH6 // bit 6
5143 #define PWM3PRH7 PWM3PRHbits.PWM3PRH7 // bit 7
5145 #define PWM3PRL0 PWM3PRLbits.PWM3PRL0 // bit 0
5146 #define PWM3PRL1 PWM3PRLbits.PWM3PRL1 // bit 1
5147 #define PWM3PRL2 PWM3PRLbits.PWM3PRL2 // bit 2
5148 #define PWM3PRL3 PWM3PRLbits.PWM3PRL3 // bit 3
5149 #define PWM3PRL4 PWM3PRLbits.PWM3PRL4 // bit 4
5150 #define PWM3PRL5 PWM3PRLbits.PWM3PRL5 // bit 5
5151 #define PWM3PRL6 PWM3PRLbits.PWM3PRL6 // bit 6
5152 #define PWM3PRL7 PWM3PRLbits.PWM3PRL7 // bit 7
5154 #define PWM3TMRH0 PWM3TMRHbits.PWM3TMRH0 // bit 0
5155 #define PWM3TMRH1 PWM3TMRHbits.PWM3TMRH1 // bit 1
5156 #define PWM3TMRH2 PWM3TMRHbits.PWM3TMRH2 // bit 2
5157 #define PWM3TMRH3 PWM3TMRHbits.PWM3TMRH3 // bit 3
5158 #define PWM3TMRH4 PWM3TMRHbits.PWM3TMRH4 // bit 4
5159 #define PWM3TMRH5 PWM3TMRHbits.PWM3TMRH5 // bit 5
5160 #define PWM3TMRH6 PWM3TMRHbits.PWM3TMRH6 // bit 6
5161 #define PWM3TMRH7 PWM3TMRHbits.PWM3TMRH7 // bit 7
5163 #define PWM3TMRL0 PWM3TMRLbits.PWM3TMRL0 // bit 0
5164 #define PWM3TMRL1 PWM3TMRLbits.PWM3TMRL1 // bit 1
5165 #define PWM3TMRL2 PWM3TMRLbits.PWM3TMRL2 // bit 2
5166 #define PWM3TMRL3 PWM3TMRLbits.PWM3TMRL3 // bit 3
5167 #define PWM3TMRL4 PWM3TMRLbits.PWM3TMRL4 // bit 4
5168 #define PWM3TMRL5 PWM3TMRLbits.PWM3TMRL5 // bit 5
5169 #define PWM3TMRL6 PWM3TMRLbits.PWM3TMRL6 // bit 6
5170 #define PWM3TMRL7 PWM3TMRLbits.PWM3TMRL7 // bit 7
5172 #define PWM1EN_A PWMENbits.PWM1EN_A // bit 0, shadows bit in PWMENbits
5173 #define MPWM1EN PWMENbits.MPWM1EN // bit 0, shadows bit in PWMENbits
5174 #define PWM2EN_A PWMENbits.PWM2EN_A // bit 1, shadows bit in PWMENbits
5175 #define MPWM2EN PWMENbits.MPWM2EN // bit 1, shadows bit in PWMENbits
5176 #define PWM3EN_A PWMENbits.PWM3EN_A // bit 2, shadows bit in PWMENbits
5177 #define MPWM3EN PWMENbits.MPWM3EN // bit 2, shadows bit in PWMENbits
5179 #define PWM1LDA_A PWMLDbits.PWM1LDA_A // bit 0, shadows bit in PWMLDbits
5180 #define MPWM1LD PWMLDbits.MPWM1LD // bit 0, shadows bit in PWMLDbits
5181 #define PWM2LDA_A PWMLDbits.PWM2LDA_A // bit 1, shadows bit in PWMLDbits
5182 #define MPWM2LD PWMLDbits.MPWM2LD // bit 1, shadows bit in PWMLDbits
5183 #define PWM3LDA_A PWMLDbits.PWM3LDA_A // bit 2, shadows bit in PWMLDbits
5184 #define MPWM3LD PWMLDbits.MPWM3LD // bit 2, shadows bit in PWMLDbits
5186 #define PWM1OUT_A PWMOUTbits.PWM1OUT_A // bit 0, shadows bit in PWMOUTbits
5187 #define MPWM1OUT PWMOUTbits.MPWM1OUT // bit 0, shadows bit in PWMOUTbits
5188 #define PWM2OUT_A PWMOUTbits.PWM2OUT_A // bit 1, shadows bit in PWMOUTbits
5189 #define MPWM2OUT PWMOUTbits.MPWM2OUT // bit 1, shadows bit in PWMOUTbits
5190 #define PWM3OUT_A PWMOUTbits.PWM3OUT_A // bit 2, shadows bit in PWMOUTbits
5191 #define MPWM3OUT PWMOUTbits.MPWM3OUT // bit 2, shadows bit in PWMOUTbits
5193 #define RX9D RCSTAbits.RX9D // bit 0
5194 #define OERR RCSTAbits.OERR // bit 1
5195 #define FERR RCSTAbits.FERR // bit 2
5196 #define ADDEN RCSTAbits.ADDEN // bit 3
5197 #define CREN RCSTAbits.CREN // bit 4
5198 #define SREN RCSTAbits.SREN // bit 5
5199 #define RX9 RCSTAbits.RX9 // bit 6
5200 #define SPEN RCSTAbits.SPEN // bit 7
5202 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
5203 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
5204 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
5205 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
5206 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
5208 #define C STATUSbits.C // bit 0
5209 #define DC STATUSbits.DC // bit 1
5210 #define Z STATUSbits.Z // bit 2
5211 #define NOT_PD STATUSbits.NOT_PD // bit 3
5212 #define NOT_TO STATUSbits.NOT_TO // bit 4
5214 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
5215 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
5216 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
5218 #define TMR1ON T1CONbits.TMR1ON // bit 0
5219 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
5220 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
5221 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
5222 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
5223 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
5225 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
5226 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
5227 #define T1GVAL T1GCONbits.T1GVAL // bit 2
5228 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
5229 #define T1GGO T1GCONbits.T1GGO // bit 3, shadows bit in T1GCONbits
5230 #define T1GSPM T1GCONbits.T1GSPM // bit 4
5231 #define T1GTM T1GCONbits.T1GTM // bit 5
5232 #define T1GPOL T1GCONbits.T1GPOL // bit 6
5233 #define TMR1GE T1GCONbits.TMR1GE // bit 7
5235 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
5236 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
5237 #define TMR2ON T2CONbits.TMR2ON // bit 2
5238 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
5239 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
5240 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
5241 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
5243 #define TRISA0 TRISAbits.TRISA0 // bit 0
5244 #define TRISA1 TRISAbits.TRISA1 // bit 1
5245 #define TRISA2 TRISAbits.TRISA2 // bit 2
5246 #define TRISA3 TRISAbits.TRISA3 // bit 3
5247 #define TRISA4 TRISAbits.TRISA4 // bit 4
5248 #define TRISA5 TRISAbits.TRISA5 // bit 5
5250 #define TX9D TXSTAbits.TX9D // bit 0
5251 #define TRMT TXSTAbits.TRMT // bit 1
5252 #define BRGH TXSTAbits.BRGH // bit 2
5253 #define SENDB TXSTAbits.SENDB // bit 3
5254 #define SYNC TXSTAbits.SYNC // bit 4
5255 #define TXEN TXSTAbits.TXEN // bit 5
5256 #define TX9 TXSTAbits.TX9 // bit 6
5257 #define CSRC TXSTAbits.CSRC // bit 7
5259 #define SWDTEN WDTCONbits.SWDTEN // bit 0
5260 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
5261 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
5262 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
5263 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
5264 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
5266 #define WPUA0 WPUAbits.WPUA0 // bit 0
5267 #define WPUA1 WPUAbits.WPUA1 // bit 1
5268 #define WPUA2 WPUAbits.WPUA2 // bit 2
5269 #define WPUA3 WPUAbits.WPUA3 // bit 3
5270 #define WPUA4 WPUAbits.WPUA4 // bit 4
5271 #define WPUA5 WPUAbits.WPUA5 // bit 5
5273 #endif // #ifndef NO_BIT_DEFINES
5275 #endif // #ifndef __PIC12LF1572_H__