2 * This declarations of the PIC16LF1574 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:08 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 __PIC16LF1574_H__
26 #define __PIC16LF1574_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 PORTC_ADDR 0x000E
52 #define PIR1_ADDR 0x0011
53 #define PIR2_ADDR 0x0012
54 #define PIR3_ADDR 0x0013
55 #define TMR0_ADDR 0x0015
56 #define TMR1_ADDR 0x0016
57 #define TMR1L_ADDR 0x0016
58 #define TMR1H_ADDR 0x0017
59 #define T1CON_ADDR 0x0018
60 #define T1GCON_ADDR 0x0019
61 #define TMR2_ADDR 0x001A
62 #define PR2_ADDR 0x001B
63 #define T2CON_ADDR 0x001C
64 #define TRISA_ADDR 0x008C
65 #define TRISC_ADDR 0x008E
66 #define PIE1_ADDR 0x0091
67 #define PIE2_ADDR 0x0092
68 #define PIE3_ADDR 0x0093
69 #define OPTION_REG_ADDR 0x0095
70 #define PCON_ADDR 0x0096
71 #define WDTCON_ADDR 0x0097
72 #define OSCTUNE_ADDR 0x0098
73 #define OSCCON_ADDR 0x0099
74 #define OSCSTAT_ADDR 0x009A
75 #define ADRES_ADDR 0x009B
76 #define ADRESL_ADDR 0x009B
77 #define ADRESH_ADDR 0x009C
78 #define ADCON0_ADDR 0x009D
79 #define ADCON1_ADDR 0x009E
80 #define ADCON2_ADDR 0x009F
81 #define LATA_ADDR 0x010C
82 #define LATC_ADDR 0x010E
83 #define CM1CON0_ADDR 0x0111
84 #define CM1CON1_ADDR 0x0112
85 #define CM2CON0_ADDR 0x0113
86 #define CM2CON1_ADDR 0x0114
87 #define CMOUT_ADDR 0x0115
88 #define BORCON_ADDR 0x0116
89 #define FVRCON_ADDR 0x0117
90 #define DACCON0_ADDR 0x0118
91 #define DACCON1_ADDR 0x0119
92 #define ANSELA_ADDR 0x018C
93 #define ANSELC_ADDR 0x018E
94 #define PMADR_ADDR 0x0191
95 #define PMADRL_ADDR 0x0191
96 #define PMADRH_ADDR 0x0192
97 #define PMDAT_ADDR 0x0193
98 #define PMDATL_ADDR 0x0193
99 #define PMDATH_ADDR 0x0194
100 #define PMCON1_ADDR 0x0195
101 #define PMCON2_ADDR 0x0196
102 #define RCREG_ADDR 0x0199
103 #define TXREG_ADDR 0x019A
104 #define SPBRG_ADDR 0x019B
105 #define SPBRGL_ADDR 0x019B
106 #define SPBRGH_ADDR 0x019C
107 #define RCSTA_ADDR 0x019D
108 #define TXSTA_ADDR 0x019E
109 #define BAUDCON_ADDR 0x019F
110 #define WPUA_ADDR 0x020C
111 #define WPUC_ADDR 0x020E
112 #define ODCONA_ADDR 0x028C
113 #define ODCONC_ADDR 0x028E
114 #define SLRCONA_ADDR 0x030C
115 #define SLRCONC_ADDR 0x030E
116 #define INLVLA_ADDR 0x038C
117 #define INLVLC_ADDR 0x038E
118 #define IOCAP_ADDR 0x0391
119 #define IOCAN_ADDR 0x0392
120 #define IOCAF_ADDR 0x0393
121 #define IOCCP_ADDR 0x0397
122 #define IOCCN_ADDR 0x0398
123 #define IOCCF_ADDR 0x0399
124 #define CWG1DBR_ADDR 0x0691
125 #define CWG1DBF_ADDR 0x0692
126 #define CWG1CON0_ADDR 0x0693
127 #define CWG1CON1_ADDR 0x0694
128 #define CWG1CON2_ADDR 0x0695
129 #define PWMEN_ADDR 0x0D8E
130 #define PWMLD_ADDR 0x0D8F
131 #define PWMOUT_ADDR 0x0D90
132 #define PWM1PH_ADDR 0x0D91
133 #define PWM1PHL_ADDR 0x0D91
134 #define PWM1PHH_ADDR 0x0D92
135 #define PWM1DC_ADDR 0x0D93
136 #define PWM1DCL_ADDR 0x0D93
137 #define PWM1DCH_ADDR 0x0D94
138 #define PWM1PR_ADDR 0x0D95
139 #define PWM1PRL_ADDR 0x0D95
140 #define PWM1PRH_ADDR 0x0D96
141 #define PWM1OF_ADDR 0x0D97
142 #define PWM1OFL_ADDR 0x0D97
143 #define PWM1OFH_ADDR 0x0D98
144 #define PWM1TMR_ADDR 0x0D99
145 #define PWM1TMRL_ADDR 0x0D99
146 #define PWM1TMRH_ADDR 0x0D9A
147 #define PWM1CON_ADDR 0x0D9B
148 #define PWM1INTCON_ADDR 0x0D9C
149 #define PWM1INTE_ADDR 0x0D9C
150 #define PWM1INTF_ADDR 0x0D9D
151 #define PWM1INTFLG_ADDR 0x0D9D
152 #define PWM1CLKCON_ADDR 0x0D9E
153 #define PWM1LDCON_ADDR 0x0D9F
154 #define PWM1OFCON_ADDR 0x0DA0
155 #define PWM2PH_ADDR 0x0DA1
156 #define PWM2PHL_ADDR 0x0DA1
157 #define PWM2PHH_ADDR 0x0DA2
158 #define PWM2DC_ADDR 0x0DA3
159 #define PWM2DCL_ADDR 0x0DA3
160 #define PWM2DCH_ADDR 0x0DA4
161 #define PWM2PR_ADDR 0x0DA5
162 #define PWM2PRL_ADDR 0x0DA5
163 #define PWM2PRH_ADDR 0x0DA6
164 #define PWM2OF_ADDR 0x0DA7
165 #define PWM2OFL_ADDR 0x0DA7
166 #define PWM2OFH_ADDR 0x0DA8
167 #define PWM2TMR_ADDR 0x0DA9
168 #define PWM2TMRL_ADDR 0x0DA9
169 #define PWM2TMRH_ADDR 0x0DAA
170 #define PWM2CON_ADDR 0x0DAB
171 #define PWM2INTCON_ADDR 0x0DAC
172 #define PWM2INTE_ADDR 0x0DAC
173 #define PWM2INTF_ADDR 0x0DAD
174 #define PWM2INTFLG_ADDR 0x0DAD
175 #define PWM2CLKCON_ADDR 0x0DAE
176 #define PWM2LDCON_ADDR 0x0DAF
177 #define PWM2OFCON_ADDR 0x0DB0
178 #define PWM3PH_ADDR 0x0DB1
179 #define PWM3PHL_ADDR 0x0DB1
180 #define PWM3PHH_ADDR 0x0DB2
181 #define PWM3DC_ADDR 0x0DB3
182 #define PWM3DCL_ADDR 0x0DB3
183 #define PWM3DCH_ADDR 0x0DB4
184 #define PWM3PR_ADDR 0x0DB5
185 #define PWM3PRL_ADDR 0x0DB5
186 #define PWM3PRH_ADDR 0x0DB6
187 #define PWM3OF_ADDR 0x0DB7
188 #define PWM3OFL_ADDR 0x0DB7
189 #define PWM3OFH_ADDR 0x0DB8
190 #define PWM3TMR_ADDR 0x0DB9
191 #define PWM3TMRL_ADDR 0x0DB9
192 #define PWM3TMRH_ADDR 0x0DBA
193 #define PWM3CON_ADDR 0x0DBB
194 #define PWM3INTCON_ADDR 0x0DBC
195 #define PWM3INTE_ADDR 0x0DBC
196 #define PWM3INTF_ADDR 0x0DBD
197 #define PWM3INTFLG_ADDR 0x0DBD
198 #define PWM3CLKCON_ADDR 0x0DBE
199 #define PWM3LDCON_ADDR 0x0DBF
200 #define PWM3OFCON_ADDR 0x0DC0
201 #define PWM4PH_ADDR 0x0DC1
202 #define PWM4PHL_ADDR 0x0DC1
203 #define PWM4PHH_ADDR 0x0DC2
204 #define PWM4DC_ADDR 0x0DC3
205 #define PWM4DCL_ADDR 0x0DC3
206 #define PWM4DCH_ADDR 0x0DC4
207 #define PWM4PR_ADDR 0x0DC5
208 #define PWM4PRL_ADDR 0x0DC5
209 #define PWM4PRH_ADDR 0x0DC6
210 #define PWM4OF_ADDR 0x0DC7
211 #define PWM4OFL_ADDR 0x0DC7
212 #define PWM4OFH_ADDR 0x0DC8
213 #define PWM4TMR_ADDR 0x0DC9
214 #define PWM4TMRL_ADDR 0x0DC9
215 #define PWM4TMRH_ADDR 0x0DCA
216 #define PWM4CON_ADDR 0x0DCB
217 #define PWM4INTCON_ADDR 0x0DCC
218 #define PWM4INTE_ADDR 0x0DCC
219 #define PWM4INTF_ADDR 0x0DCD
220 #define PWM4INTFLG_ADDR 0x0DCD
221 #define PWM4CLKCON_ADDR 0x0DCE
222 #define PWM4LDCON_ADDR 0x0DCF
223 #define PWM4OFCON_ADDR 0x0DD0
224 #define PPSLOCK_ADDR 0x0E0F
225 #define INTPPS_ADDR 0x0E10
226 #define T0CKIPPS_ADDR 0x0E11
227 #define T1CKIPPS_ADDR 0x0E12
228 #define T1GPPS_ADDR 0x0E13
229 #define CWG1INPPS_ADDR 0x0E14
230 #define RXPPS_ADDR 0x0E15
231 #define CKPPS_ADDR 0x0E16
232 #define ADCACTPPS_ADDR 0x0E17
233 #define RA0PPS_ADDR 0x0E90
234 #define RA1PPS_ADDR 0x0E91
235 #define RA2PPS_ADDR 0x0E92
236 #define RA4PPS_ADDR 0x0E94
237 #define RA5PPS_ADDR 0x0E95
238 #define RC0PPS_ADDR 0x0EA0
239 #define RC1PPS_ADDR 0x0EA1
240 #define RC2PPS_ADDR 0x0EA2
241 #define RC3PPS_ADDR 0x0EA3
242 #define RC4PPS_ADDR 0x0EA4
243 #define RC5PPS_ADDR 0x0EA5
244 #define STATUS_SHAD_ADDR 0x0FE4
245 #define WREG_SHAD_ADDR 0x0FE5
246 #define BSR_SHAD_ADDR 0x0FE6
247 #define PCLATH_SHAD_ADDR 0x0FE7
248 #define FSR0L_SHAD_ADDR 0x0FE8
249 #define FSR0_SHAD_ADDR 0x0FE8
250 #define FSR0H_SHAD_ADDR 0x0FE9
251 #define FSR1L_SHAD_ADDR 0x0FEA
252 #define FSR1_SHAD_ADDR 0x0FEA
253 #define FSR1H_SHAD_ADDR 0x0FEB
254 #define STKPTR_ADDR 0x0FED
255 #define TOS_ADDR 0x0FEE
256 #define TOSL_ADDR 0x0FEE
257 #define TOSH_ADDR 0x0FEF
259 #endif // #ifndef NO_ADDR_DEFINES
261 //==============================================================================
263 // Register Definitions
265 //==============================================================================
267 extern __at(0x0000) __sfr INDF0
;
268 extern __at(0x0001) __sfr INDF1
;
269 extern __at(0x0002) __sfr PCL
;
271 //==============================================================================
274 extern __at(0x0003) __sfr STATUS
;
288 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
296 //==============================================================================
298 extern __at(0x0004) __sfr FSR0
;
299 extern __at(0x0004) __sfr FSR0L
;
300 extern __at(0x0005) __sfr FSR0H
;
301 extern __at(0x0006) __sfr FSR1
;
302 extern __at(0x0006) __sfr FSR1L
;
303 extern __at(0x0007) __sfr FSR1H
;
305 //==============================================================================
308 extern __at(0x0008) __sfr BSR
;
331 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
339 //==============================================================================
341 extern __at(0x0009) __sfr WREG
;
342 extern __at(0x000A) __sfr PCLATH
;
344 //==============================================================================
347 extern __at(0x000B) __sfr INTCON
;
376 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
389 //==============================================================================
392 //==============================================================================
395 extern __at(0x000C) __sfr PORTA
;
418 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
427 //==============================================================================
430 //==============================================================================
433 extern __at(0x000E) __sfr PORTC
;
456 extern __at(0x000E) volatile __PORTCbits_t PORTCbits
;
465 //==============================================================================
468 //==============================================================================
471 extern __at(0x0011) __sfr PIR1
;
482 unsigned TMR1GIF
: 1;
485 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
492 #define _TMR1GIF 0x80
494 //==============================================================================
497 //==============================================================================
500 extern __at(0x0012) __sfr PIR2
;
514 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
519 //==============================================================================
522 //==============================================================================
525 extern __at(0x0013) __sfr PIR3
;
539 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
546 //==============================================================================
548 extern __at(0x0015) __sfr TMR0
;
549 extern __at(0x0016) __sfr TMR1
;
550 extern __at(0x0016) __sfr TMR1L
;
551 extern __at(0x0017) __sfr TMR1H
;
553 //==============================================================================
556 extern __at(0x0018) __sfr T1CON
;
564 unsigned NOT_T1SYNC
: 1;
565 unsigned T1OSCEN
: 1;
566 unsigned T1CKPS0
: 1;
567 unsigned T1CKPS1
: 1;
568 unsigned TMR1CS0
: 1;
569 unsigned TMR1CS1
: 1;
586 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
589 #define _NOT_T1SYNC 0x04
590 #define _T1OSCEN 0x08
591 #define _T1CKPS0 0x10
592 #define _T1CKPS1 0x20
593 #define _TMR1CS0 0x40
594 #define _TMR1CS1 0x80
596 //==============================================================================
599 //==============================================================================
602 extern __at(0x0019) __sfr T1GCON
;
611 unsigned T1GGO_NOT_DONE
: 1;
637 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
642 #define _T1GGO_NOT_DONE 0x08
649 //==============================================================================
651 extern __at(0x001A) __sfr TMR2
;
652 extern __at(0x001B) __sfr PR2
;
654 //==============================================================================
657 extern __at(0x001C) __sfr T2CON
;
663 unsigned T2CKPS0
: 1;
664 unsigned T2CKPS1
: 1;
666 unsigned T2OUTPS0
: 1;
667 unsigned T2OUTPS1
: 1;
668 unsigned T2OUTPS2
: 1;
669 unsigned T2OUTPS3
: 1;
682 unsigned T2OUTPS
: 4;
687 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
689 #define _T2CKPS0 0x01
690 #define _T2CKPS1 0x02
692 #define _T2OUTPS0 0x08
693 #define _T2OUTPS1 0x10
694 #define _T2OUTPS2 0x20
695 #define _T2OUTPS3 0x40
697 //==============================================================================
700 //==============================================================================
703 extern __at(0x008C) __sfr TRISA
;
726 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
735 //==============================================================================
738 //==============================================================================
741 extern __at(0x008E) __sfr TRISC
;
764 extern __at(0x008E) volatile __TRISCbits_t TRISCbits
;
773 //==============================================================================
776 //==============================================================================
779 extern __at(0x0091) __sfr PIE1
;
790 unsigned TMR1GIE
: 1;
793 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
800 #define _TMR1GIE 0x80
802 //==============================================================================
805 //==============================================================================
808 extern __at(0x0092) __sfr PIE2
;
822 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
827 //==============================================================================
830 //==============================================================================
833 extern __at(0x0093) __sfr PIE3
;
847 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
854 //==============================================================================
857 //==============================================================================
860 extern __at(0x0095) __sfr OPTION_REG
;
873 unsigned NOT_WPUEN
: 1;
893 } __OPTION_REGbits_t
;
895 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
906 #define _NOT_WPUEN 0x80
908 //==============================================================================
911 //==============================================================================
914 extern __at(0x0096) __sfr PCON
;
918 unsigned NOT_BOR
: 1;
919 unsigned NOT_POR
: 1;
921 unsigned NOT_RMCLR
: 1;
922 unsigned NOT_RWDT
: 1;
928 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
930 #define _NOT_BOR 0x01
931 #define _NOT_POR 0x02
933 #define _NOT_RMCLR 0x08
934 #define _NOT_RWDT 0x10
938 //==============================================================================
941 //==============================================================================
944 extern __at(0x0097) __sfr WDTCON
;
968 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
977 //==============================================================================
980 //==============================================================================
983 extern __at(0x0098) __sfr OSCTUNE
;
1006 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
1015 //==============================================================================
1018 //==============================================================================
1021 extern __at(0x0099) __sfr OSCCON
;
1034 unsigned SPLLEN
: 1;
1051 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
1059 #define _SPLLEN 0x80
1061 //==============================================================================
1064 //==============================================================================
1067 extern __at(0x009A) __sfr OSCSTAT
;
1071 unsigned HFIOFS
: 1;
1072 unsigned LFIOFR
: 1;
1073 unsigned MFIOFR
: 1;
1074 unsigned HFIOFL
: 1;
1075 unsigned HFIOFR
: 1;
1081 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
1083 #define _HFIOFS 0x01
1084 #define _LFIOFR 0x02
1085 #define _MFIOFR 0x04
1086 #define _HFIOFL 0x08
1087 #define _HFIOFR 0x10
1091 //==============================================================================
1093 extern __at(0x009B) __sfr ADRES
;
1094 extern __at(0x009B) __sfr ADRESL
;
1095 extern __at(0x009C) __sfr ADRESH
;
1097 //==============================================================================
1100 extern __at(0x009D) __sfr ADCON0
;
1107 unsigned GO_NOT_DONE
: 1;
1143 unsigned NOT_DONE
: 1;
1160 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1163 #define _GO_NOT_DONE 0x02
1166 #define _NOT_DONE 0x02
1173 //==============================================================================
1176 //==============================================================================
1179 extern __at(0x009E) __sfr ADCON1
;
1185 unsigned ADPREF0
: 1;
1186 unsigned ADPREF1
: 1;
1197 unsigned ADPREF
: 2;
1209 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1211 #define _ADPREF0 0x01
1212 #define _ADPREF1 0x02
1218 //==============================================================================
1221 //==============================================================================
1224 extern __at(0x009F) __sfr ADCON2
;
1234 unsigned TRIGSEL0
: 1;
1235 unsigned TRIGSEL1
: 1;
1236 unsigned TRIGSEL2
: 1;
1237 unsigned TRIGSEL3
: 1;
1243 unsigned TRIGSEL
: 4;
1247 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1249 #define _TRIGSEL0 0x10
1250 #define _TRIGSEL1 0x20
1251 #define _TRIGSEL2 0x40
1252 #define _TRIGSEL3 0x80
1254 //==============================================================================
1257 //==============================================================================
1260 extern __at(0x010C) __sfr LATA
;
1274 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1282 //==============================================================================
1285 //==============================================================================
1288 extern __at(0x010E) __sfr LATC
;
1311 extern __at(0x010E) volatile __LATCbits_t LATCbits
;
1320 //==============================================================================
1323 //==============================================================================
1326 extern __at(0x0111) __sfr CM1CON0
;
1330 unsigned C1SYNC
: 1;
1340 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1342 #define _C1SYNC 0x01
1350 //==============================================================================
1353 //==============================================================================
1356 extern __at(0x0112) __sfr CM1CON1
;
1362 unsigned C1NCH0
: 1;
1363 unsigned C1NCH1
: 1;
1364 unsigned C1NCH2
: 1;
1366 unsigned C1PCH0
: 1;
1367 unsigned C1PCH1
: 1;
1368 unsigned C1INTN
: 1;
1369 unsigned C1INTP
: 1;
1386 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1388 #define _C1NCH0 0x01
1389 #define _C1NCH1 0x02
1390 #define _C1NCH2 0x04
1391 #define _C1PCH0 0x10
1392 #define _C1PCH1 0x20
1393 #define _C1INTN 0x40
1394 #define _C1INTP 0x80
1396 //==============================================================================
1399 //==============================================================================
1402 extern __at(0x0113) __sfr CM2CON0
;
1406 unsigned C2SYNC
: 1;
1416 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits
;
1418 #define _C2SYNC 0x01
1426 //==============================================================================
1429 //==============================================================================
1432 extern __at(0x0114) __sfr CM2CON1
;
1438 unsigned C2NCH0
: 1;
1439 unsigned C2NCH1
: 1;
1440 unsigned C2NCH2
: 1;
1442 unsigned C2PCH0
: 1;
1443 unsigned C2PCH1
: 1;
1444 unsigned C2INTN
: 1;
1445 unsigned C2INTP
: 1;
1462 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits
;
1464 #define _C2NCH0 0x01
1465 #define _C2NCH1 0x02
1466 #define _C2NCH2 0x04
1467 #define _C2PCH0 0x10
1468 #define _C2PCH1 0x20
1469 #define _C2INTN 0x40
1470 #define _C2INTP 0x80
1472 //==============================================================================
1475 //==============================================================================
1478 extern __at(0x0115) __sfr CMOUT
;
1482 unsigned MC1OUT
: 1;
1483 unsigned MC2OUT
: 1;
1492 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1494 #define _MC1OUT 0x01
1495 #define _MC2OUT 0x02
1497 //==============================================================================
1500 //==============================================================================
1503 extern __at(0x0116) __sfr BORCON
;
1507 unsigned BORRDY
: 1;
1514 unsigned SBOREN
: 1;
1517 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1519 #define _BORRDY 0x01
1521 #define _SBOREN 0x80
1523 //==============================================================================
1526 //==============================================================================
1529 extern __at(0x0117) __sfr FVRCON
;
1535 unsigned ADFVR0
: 1;
1536 unsigned ADFVR1
: 1;
1537 unsigned CDAFVR0
: 1;
1538 unsigned CDAFVR1
: 1;
1541 unsigned FVRRDY
: 1;
1554 unsigned CDAFVR
: 2;
1559 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1561 #define _ADFVR0 0x01
1562 #define _ADFVR1 0x02
1563 #define _CDAFVR0 0x04
1564 #define _CDAFVR1 0x08
1567 #define _FVRRDY 0x40
1570 //==============================================================================
1573 //==============================================================================
1576 extern __at(0x0118) __sfr DACCON0
;
1584 unsigned DACPSS0
: 1;
1585 unsigned DACPSS1
: 1;
1588 unsigned DACLPS
: 1;
1595 unsigned DACPSS
: 2;
1600 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1602 #define _DACPSS0 0x04
1603 #define _DACPSS1 0x08
1605 #define _DACLPS 0x40
1608 //==============================================================================
1611 //==============================================================================
1614 extern __at(0x0119) __sfr DACCON1
;
1637 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1645 //==============================================================================
1648 //==============================================================================
1651 extern __at(0x018C) __sfr ANSELA
;
1665 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
1672 //==============================================================================
1675 //==============================================================================
1678 extern __at(0x018E) __sfr ANSELC
;
1701 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits
;
1708 //==============================================================================
1710 extern __at(0x0191) __sfr PMADR
;
1711 extern __at(0x0191) __sfr PMADRL
;
1712 extern __at(0x0192) __sfr PMADRH
;
1713 extern __at(0x0193) __sfr PMDAT
;
1714 extern __at(0x0193) __sfr PMDATL
;
1715 extern __at(0x0194) __sfr PMDATH
;
1717 //==============================================================================
1720 extern __at(0x0195) __sfr PMCON1
;
1734 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits
;
1744 //==============================================================================
1746 extern __at(0x0196) __sfr PMCON2
;
1747 extern __at(0x0199) __sfr RCREG
;
1748 extern __at(0x019A) __sfr TXREG
;
1749 extern __at(0x019B) __sfr SPBRG
;
1750 extern __at(0x019B) __sfr SPBRGL
;
1751 extern __at(0x019C) __sfr SPBRGH
;
1753 //==============================================================================
1756 extern __at(0x019D) __sfr RCSTA
;
1770 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
1781 //==============================================================================
1784 //==============================================================================
1787 extern __at(0x019E) __sfr TXSTA
;
1801 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
1812 //==============================================================================
1815 //==============================================================================
1818 extern __at(0x019F) __sfr BAUDCON
;
1829 unsigned ABDOVF
: 1;
1832 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
1839 #define _ABDOVF 0x80
1841 //==============================================================================
1844 //==============================================================================
1847 extern __at(0x020C) __sfr WPUA
;
1870 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
1879 //==============================================================================
1882 //==============================================================================
1885 extern __at(0x020E) __sfr WPUC
;
1908 extern __at(0x020E) volatile __WPUCbits_t WPUCbits
;
1917 //==============================================================================
1920 //==============================================================================
1923 extern __at(0x028C) __sfr ODCONA
;
1937 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
1945 //==============================================================================
1948 //==============================================================================
1951 extern __at(0x028E) __sfr ODCONC
;
1974 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits
;
1983 //==============================================================================
1986 //==============================================================================
1989 extern __at(0x030C) __sfr SLRCONA
;
2003 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
2011 //==============================================================================
2014 //==============================================================================
2017 extern __at(0x030E) __sfr SLRCONC
;
2040 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits
;
2049 //==============================================================================
2052 //==============================================================================
2055 extern __at(0x038C) __sfr INLVLA
;
2061 unsigned INLVLA0
: 1;
2062 unsigned INLVLA1
: 1;
2063 unsigned INLVLA2
: 1;
2064 unsigned INLVLA3
: 1;
2065 unsigned INLVLA4
: 1;
2066 unsigned INLVLA5
: 1;
2073 unsigned INLVLA
: 6;
2078 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
2080 #define _INLVLA0 0x01
2081 #define _INLVLA1 0x02
2082 #define _INLVLA2 0x04
2083 #define _INLVLA3 0x08
2084 #define _INLVLA4 0x10
2085 #define _INLVLA5 0x20
2087 //==============================================================================
2090 //==============================================================================
2093 extern __at(0x038E) __sfr INLVLC
;
2099 unsigned INLVLC0
: 1;
2100 unsigned INLVLC1
: 1;
2101 unsigned INLVLC2
: 1;
2102 unsigned INLVLC3
: 1;
2103 unsigned INLVLC4
: 1;
2104 unsigned INLVLC5
: 1;
2111 unsigned INLVLC
: 6;
2116 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits
;
2118 #define _INLVLC0 0x01
2119 #define _INLVLC1 0x02
2120 #define _INLVLC2 0x04
2121 #define _INLVLC3 0x08
2122 #define _INLVLC4 0x10
2123 #define _INLVLC5 0x20
2125 //==============================================================================
2128 //==============================================================================
2131 extern __at(0x0391) __sfr IOCAP
;
2137 unsigned IOCAP0
: 1;
2138 unsigned IOCAP1
: 1;
2139 unsigned IOCAP2
: 1;
2140 unsigned IOCAP3
: 1;
2141 unsigned IOCAP4
: 1;
2142 unsigned IOCAP5
: 1;
2154 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
2156 #define _IOCAP0 0x01
2157 #define _IOCAP1 0x02
2158 #define _IOCAP2 0x04
2159 #define _IOCAP3 0x08
2160 #define _IOCAP4 0x10
2161 #define _IOCAP5 0x20
2163 //==============================================================================
2166 //==============================================================================
2169 extern __at(0x0392) __sfr IOCAN
;
2175 unsigned IOCAN0
: 1;
2176 unsigned IOCAN1
: 1;
2177 unsigned IOCAN2
: 1;
2178 unsigned IOCAN3
: 1;
2179 unsigned IOCAN4
: 1;
2180 unsigned IOCAN5
: 1;
2192 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
2194 #define _IOCAN0 0x01
2195 #define _IOCAN1 0x02
2196 #define _IOCAN2 0x04
2197 #define _IOCAN3 0x08
2198 #define _IOCAN4 0x10
2199 #define _IOCAN5 0x20
2201 //==============================================================================
2204 //==============================================================================
2207 extern __at(0x0393) __sfr IOCAF
;
2213 unsigned IOCAF0
: 1;
2214 unsigned IOCAF1
: 1;
2215 unsigned IOCAF2
: 1;
2216 unsigned IOCAF3
: 1;
2217 unsigned IOCAF4
: 1;
2218 unsigned IOCAF5
: 1;
2230 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
2232 #define _IOCAF0 0x01
2233 #define _IOCAF1 0x02
2234 #define _IOCAF2 0x04
2235 #define _IOCAF3 0x08
2236 #define _IOCAF4 0x10
2237 #define _IOCAF5 0x20
2239 //==============================================================================
2242 //==============================================================================
2245 extern __at(0x0397) __sfr IOCCP
;
2251 unsigned IOCCP0
: 1;
2252 unsigned IOCCP1
: 1;
2253 unsigned IOCCP2
: 1;
2254 unsigned IOCCP3
: 1;
2255 unsigned IOCCP4
: 1;
2256 unsigned IOCCP5
: 1;
2268 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits
;
2270 #define _IOCCP0 0x01
2271 #define _IOCCP1 0x02
2272 #define _IOCCP2 0x04
2273 #define _IOCCP3 0x08
2274 #define _IOCCP4 0x10
2275 #define _IOCCP5 0x20
2277 //==============================================================================
2280 //==============================================================================
2283 extern __at(0x0398) __sfr IOCCN
;
2289 unsigned IOCCN0
: 1;
2290 unsigned IOCCN1
: 1;
2291 unsigned IOCCN2
: 1;
2292 unsigned IOCCN3
: 1;
2293 unsigned IOCCN4
: 1;
2294 unsigned IOCCN5
: 1;
2306 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits
;
2308 #define _IOCCN0 0x01
2309 #define _IOCCN1 0x02
2310 #define _IOCCN2 0x04
2311 #define _IOCCN3 0x08
2312 #define _IOCCN4 0x10
2313 #define _IOCCN5 0x20
2315 //==============================================================================
2318 //==============================================================================
2321 extern __at(0x0399) __sfr IOCCF
;
2327 unsigned IOCCF0
: 1;
2328 unsigned IOCCF1
: 1;
2329 unsigned IOCCF2
: 1;
2330 unsigned IOCCF3
: 1;
2331 unsigned IOCCF4
: 1;
2332 unsigned IOCCF5
: 1;
2344 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits
;
2346 #define _IOCCF0 0x01
2347 #define _IOCCF1 0x02
2348 #define _IOCCF2 0x04
2349 #define _IOCCF3 0x08
2350 #define _IOCCF4 0x10
2351 #define _IOCCF5 0x20
2353 //==============================================================================
2356 //==============================================================================
2359 extern __at(0x0691) __sfr CWG1DBR
;
2365 unsigned CWG1DBR0
: 1;
2366 unsigned CWG1DBR1
: 1;
2367 unsigned CWG1DBR2
: 1;
2368 unsigned CWG1DBR3
: 1;
2369 unsigned CWG1DBR4
: 1;
2370 unsigned CWG1DBR5
: 1;
2377 unsigned CWG1DBR
: 6;
2382 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits
;
2384 #define _CWG1DBR0 0x01
2385 #define _CWG1DBR1 0x02
2386 #define _CWG1DBR2 0x04
2387 #define _CWG1DBR3 0x08
2388 #define _CWG1DBR4 0x10
2389 #define _CWG1DBR5 0x20
2391 //==============================================================================
2394 //==============================================================================
2397 extern __at(0x0692) __sfr CWG1DBF
;
2403 unsigned CWG1DBF0
: 1;
2404 unsigned CWG1DBF1
: 1;
2405 unsigned CWG1DBF2
: 1;
2406 unsigned CWG1DBF3
: 1;
2407 unsigned CWG1DBF4
: 1;
2408 unsigned CWG1DBF5
: 1;
2415 unsigned CWG1DBF
: 6;
2420 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits
;
2422 #define _CWG1DBF0 0x01
2423 #define _CWG1DBF1 0x02
2424 #define _CWG1DBF2 0x04
2425 #define _CWG1DBF3 0x08
2426 #define _CWG1DBF4 0x10
2427 #define _CWG1DBF5 0x20
2429 //==============================================================================
2432 //==============================================================================
2435 extern __at(0x0693) __sfr CWG1CON0
;
2442 unsigned G1POLA
: 1;
2443 unsigned G1POLB
: 1;
2449 extern __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits
;
2452 #define _G1POLA 0x08
2453 #define _G1POLB 0x10
2458 //==============================================================================
2461 //==============================================================================
2464 extern __at(0x0694) __sfr CWG1CON1
;
2474 unsigned G1ASDLA0
: 1;
2475 unsigned G1ASDLA1
: 1;
2476 unsigned G1ASDLB0
: 1;
2477 unsigned G1ASDLB1
: 1;
2489 unsigned G1ASDLA
: 2;
2496 unsigned G1ASDLB
: 2;
2500 extern __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits
;
2505 #define _G1ASDLA0 0x10
2506 #define _G1ASDLA1 0x20
2507 #define _G1ASDLB0 0x40
2508 #define _G1ASDLB1 0x80
2510 //==============================================================================
2513 //==============================================================================
2516 extern __at(0x0695) __sfr CWG1CON2
;
2521 unsigned G1ASDSPPS
: 1;
2522 unsigned G1ASDSC1
: 1;
2523 unsigned G1ASDSC2
: 1;
2526 unsigned G1ARSEN
: 1;
2530 extern __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits
;
2532 #define _G1ASDSPPS 0x02
2533 #define _G1ASDSC1 0x04
2534 #define _G1ASDSC2 0x08
2535 #define _G1ARSEN 0x40
2538 //==============================================================================
2541 //==============================================================================
2544 extern __at(0x0D8E) __sfr PWMEN
;
2550 unsigned PWM1EN_A
: 1;
2551 unsigned PWM2EN_A
: 1;
2552 unsigned PWM3EN_A
: 1;
2553 unsigned PWM4EN_A
: 1;
2562 unsigned MPWM1EN
: 1;
2563 unsigned MPWM2EN
: 1;
2564 unsigned MPWM3EN
: 1;
2573 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits
;
2575 #define _PWM1EN_A 0x01
2576 #define _MPWM1EN 0x01
2577 #define _PWM2EN_A 0x02
2578 #define _MPWM2EN 0x02
2579 #define _PWM3EN_A 0x04
2580 #define _MPWM3EN 0x04
2581 #define _PWM4EN_A 0x08
2583 //==============================================================================
2586 //==============================================================================
2589 extern __at(0x0D8F) __sfr PWMLD
;
2595 unsigned PWM1LDA_A
: 1;
2596 unsigned PWM2LDA_A
: 1;
2597 unsigned PWM3LDA_A
: 1;
2598 unsigned PWM4LDA_A
: 1;
2607 unsigned MPWM1LD
: 1;
2608 unsigned MPWM2LD
: 1;
2609 unsigned MPWM3LD
: 1;
2618 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits
;
2620 #define _PWM1LDA_A 0x01
2621 #define _MPWM1LD 0x01
2622 #define _PWM2LDA_A 0x02
2623 #define _MPWM2LD 0x02
2624 #define _PWM3LDA_A 0x04
2625 #define _MPWM3LD 0x04
2626 #define _PWM4LDA_A 0x08
2628 //==============================================================================
2631 //==============================================================================
2634 extern __at(0x0D90) __sfr PWMOUT
;
2640 unsigned PWM1OUT_A
: 1;
2641 unsigned PWM2OUT_A
: 1;
2642 unsigned PWM3OUT_A
: 1;
2643 unsigned PWM4OUT_A
: 1;
2652 unsigned MPWM1OUT
: 1;
2653 unsigned MPWM2OUT
: 1;
2654 unsigned MPWM3OUT
: 1;
2663 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits
;
2665 #define _PWM1OUT_A 0x01
2666 #define _MPWM1OUT 0x01
2667 #define _PWM2OUT_A 0x02
2668 #define _MPWM2OUT 0x02
2669 #define _PWM3OUT_A 0x04
2670 #define _MPWM3OUT 0x04
2671 #define _PWM4OUT_A 0x08
2673 //==============================================================================
2675 extern __at(0x0D91) __sfr PWM1PH
;
2677 //==============================================================================
2680 extern __at(0x0D91) __sfr PWM1PHL
;
2684 unsigned PWM1PHL0
: 1;
2685 unsigned PWM1PHL1
: 1;
2686 unsigned PWM1PHL2
: 1;
2687 unsigned PWM1PHL3
: 1;
2688 unsigned PWM1PHL4
: 1;
2689 unsigned PWM1PHL5
: 1;
2690 unsigned PWM1PHL6
: 1;
2691 unsigned PWM1PHL7
: 1;
2694 extern __at(0x0D91) volatile __PWM1PHLbits_t PWM1PHLbits
;
2696 #define _PWM1PHL0 0x01
2697 #define _PWM1PHL1 0x02
2698 #define _PWM1PHL2 0x04
2699 #define _PWM1PHL3 0x08
2700 #define _PWM1PHL4 0x10
2701 #define _PWM1PHL5 0x20
2702 #define _PWM1PHL6 0x40
2703 #define _PWM1PHL7 0x80
2705 //==============================================================================
2708 //==============================================================================
2711 extern __at(0x0D92) __sfr PWM1PHH
;
2715 unsigned PWM1PHH0
: 1;
2716 unsigned PWM1PHH1
: 1;
2717 unsigned PWM1PHH2
: 1;
2718 unsigned PWM1PHH3
: 1;
2719 unsigned PWM1PHH4
: 1;
2720 unsigned PWM1PHH5
: 1;
2721 unsigned PWM1PHH6
: 1;
2722 unsigned PWM1PHH7
: 1;
2725 extern __at(0x0D92) volatile __PWM1PHHbits_t PWM1PHHbits
;
2727 #define _PWM1PHH0 0x01
2728 #define _PWM1PHH1 0x02
2729 #define _PWM1PHH2 0x04
2730 #define _PWM1PHH3 0x08
2731 #define _PWM1PHH4 0x10
2732 #define _PWM1PHH5 0x20
2733 #define _PWM1PHH6 0x40
2734 #define _PWM1PHH7 0x80
2736 //==============================================================================
2738 extern __at(0x0D93) __sfr PWM1DC
;
2740 //==============================================================================
2743 extern __at(0x0D93) __sfr PWM1DCL
;
2747 unsigned PWM1DCL0
: 1;
2748 unsigned PWM1DCL1
: 1;
2749 unsigned PWM1DCL2
: 1;
2750 unsigned PWM1DCL3
: 1;
2751 unsigned PWM1DCL4
: 1;
2752 unsigned PWM1DCL5
: 1;
2753 unsigned PWM1DCL6
: 1;
2754 unsigned PWM1DCL7
: 1;
2757 extern __at(0x0D93) volatile __PWM1DCLbits_t PWM1DCLbits
;
2759 #define _PWM1DCL0 0x01
2760 #define _PWM1DCL1 0x02
2761 #define _PWM1DCL2 0x04
2762 #define _PWM1DCL3 0x08
2763 #define _PWM1DCL4 0x10
2764 #define _PWM1DCL5 0x20
2765 #define _PWM1DCL6 0x40
2766 #define _PWM1DCL7 0x80
2768 //==============================================================================
2771 //==============================================================================
2774 extern __at(0x0D94) __sfr PWM1DCH
;
2778 unsigned PWM1DCH0
: 1;
2779 unsigned PWM1DCH1
: 1;
2780 unsigned PWM1DCH2
: 1;
2781 unsigned PWM1DCH3
: 1;
2782 unsigned PWM1DCH4
: 1;
2783 unsigned PWM1DCH5
: 1;
2784 unsigned PWM1DCH6
: 1;
2785 unsigned PWM1DCH7
: 1;
2788 extern __at(0x0D94) volatile __PWM1DCHbits_t PWM1DCHbits
;
2790 #define _PWM1DCH0 0x01
2791 #define _PWM1DCH1 0x02
2792 #define _PWM1DCH2 0x04
2793 #define _PWM1DCH3 0x08
2794 #define _PWM1DCH4 0x10
2795 #define _PWM1DCH5 0x20
2796 #define _PWM1DCH6 0x40
2797 #define _PWM1DCH7 0x80
2799 //==============================================================================
2801 extern __at(0x0D95) __sfr PWM1PR
;
2803 //==============================================================================
2806 extern __at(0x0D95) __sfr PWM1PRL
;
2810 unsigned PWM1PRL0
: 1;
2811 unsigned PWM1PRL1
: 1;
2812 unsigned PWM1PRL2
: 1;
2813 unsigned PWM1PRL3
: 1;
2814 unsigned PWM1PRL4
: 1;
2815 unsigned PWM1PRL5
: 1;
2816 unsigned PWM1PRL6
: 1;
2817 unsigned PWM1PRL7
: 1;
2820 extern __at(0x0D95) volatile __PWM1PRLbits_t PWM1PRLbits
;
2822 #define _PWM1PRL0 0x01
2823 #define _PWM1PRL1 0x02
2824 #define _PWM1PRL2 0x04
2825 #define _PWM1PRL3 0x08
2826 #define _PWM1PRL4 0x10
2827 #define _PWM1PRL5 0x20
2828 #define _PWM1PRL6 0x40
2829 #define _PWM1PRL7 0x80
2831 //==============================================================================
2834 //==============================================================================
2837 extern __at(0x0D96) __sfr PWM1PRH
;
2841 unsigned PWM1PRH0
: 1;
2842 unsigned PWM1PRH1
: 1;
2843 unsigned PWM1PRH2
: 1;
2844 unsigned PWM1PRH3
: 1;
2845 unsigned PWM1PRH4
: 1;
2846 unsigned PWM1PRH5
: 1;
2847 unsigned PWM1PRH6
: 1;
2848 unsigned PWM1PRH7
: 1;
2851 extern __at(0x0D96) volatile __PWM1PRHbits_t PWM1PRHbits
;
2853 #define _PWM1PRH0 0x01
2854 #define _PWM1PRH1 0x02
2855 #define _PWM1PRH2 0x04
2856 #define _PWM1PRH3 0x08
2857 #define _PWM1PRH4 0x10
2858 #define _PWM1PRH5 0x20
2859 #define _PWM1PRH6 0x40
2860 #define _PWM1PRH7 0x80
2862 //==============================================================================
2864 extern __at(0x0D97) __sfr PWM1OF
;
2866 //==============================================================================
2869 extern __at(0x0D97) __sfr PWM1OFL
;
2873 unsigned PWM1OFL0
: 1;
2874 unsigned PWM1OFL1
: 1;
2875 unsigned PWM1OFL2
: 1;
2876 unsigned PWM1OFL3
: 1;
2877 unsigned PWM1OFL4
: 1;
2878 unsigned PWM1OFL5
: 1;
2879 unsigned PWM1OFL6
: 1;
2880 unsigned PWM1OFL7
: 1;
2883 extern __at(0x0D97) volatile __PWM1OFLbits_t PWM1OFLbits
;
2885 #define _PWM1OFL0 0x01
2886 #define _PWM1OFL1 0x02
2887 #define _PWM1OFL2 0x04
2888 #define _PWM1OFL3 0x08
2889 #define _PWM1OFL4 0x10
2890 #define _PWM1OFL5 0x20
2891 #define _PWM1OFL6 0x40
2892 #define _PWM1OFL7 0x80
2894 //==============================================================================
2897 //==============================================================================
2900 extern __at(0x0D98) __sfr PWM1OFH
;
2904 unsigned PWM1OFH0
: 1;
2905 unsigned PWM1OFH1
: 1;
2906 unsigned PWM1OFH2
: 1;
2907 unsigned PWM1OFH3
: 1;
2908 unsigned PWM1OFH4
: 1;
2909 unsigned PWM1OFH5
: 1;
2910 unsigned PWM1OFH6
: 1;
2911 unsigned PWM1OFH7
: 1;
2914 extern __at(0x0D98) volatile __PWM1OFHbits_t PWM1OFHbits
;
2916 #define _PWM1OFH0 0x01
2917 #define _PWM1OFH1 0x02
2918 #define _PWM1OFH2 0x04
2919 #define _PWM1OFH3 0x08
2920 #define _PWM1OFH4 0x10
2921 #define _PWM1OFH5 0x20
2922 #define _PWM1OFH6 0x40
2923 #define _PWM1OFH7 0x80
2925 //==============================================================================
2927 extern __at(0x0D99) __sfr PWM1TMR
;
2929 //==============================================================================
2932 extern __at(0x0D99) __sfr PWM1TMRL
;
2936 unsigned PWM1TMRL0
: 1;
2937 unsigned PWM1TMRL1
: 1;
2938 unsigned PWM1TMRL2
: 1;
2939 unsigned PWM1TMRL3
: 1;
2940 unsigned PWM1TMRL4
: 1;
2941 unsigned PWM1TMRL5
: 1;
2942 unsigned PWM1TMRL6
: 1;
2943 unsigned PWM1TMRL7
: 1;
2946 extern __at(0x0D99) volatile __PWM1TMRLbits_t PWM1TMRLbits
;
2948 #define _PWM1TMRL0 0x01
2949 #define _PWM1TMRL1 0x02
2950 #define _PWM1TMRL2 0x04
2951 #define _PWM1TMRL3 0x08
2952 #define _PWM1TMRL4 0x10
2953 #define _PWM1TMRL5 0x20
2954 #define _PWM1TMRL6 0x40
2955 #define _PWM1TMRL7 0x80
2957 //==============================================================================
2960 //==============================================================================
2963 extern __at(0x0D9A) __sfr PWM1TMRH
;
2967 unsigned PWM1TMRH0
: 1;
2968 unsigned PWM1TMRH1
: 1;
2969 unsigned PWM1TMRH2
: 1;
2970 unsigned PWM1TMRH3
: 1;
2971 unsigned PWM1TMRH4
: 1;
2972 unsigned PWM1TMRH5
: 1;
2973 unsigned PWM1TMRH6
: 1;
2974 unsigned PWM1TMRH7
: 1;
2977 extern __at(0x0D9A) volatile __PWM1TMRHbits_t PWM1TMRHbits
;
2979 #define _PWM1TMRH0 0x01
2980 #define _PWM1TMRH1 0x02
2981 #define _PWM1TMRH2 0x04
2982 #define _PWM1TMRH3 0x08
2983 #define _PWM1TMRH4 0x10
2984 #define _PWM1TMRH5 0x20
2985 #define _PWM1TMRH6 0x40
2986 #define _PWM1TMRH7 0x80
2988 //==============================================================================
2991 //==============================================================================
2994 extern __at(0x0D9B) __sfr PWM1CON
;
3002 unsigned PWM1MODE0
: 1;
3003 unsigned PWM1MODE1
: 1;
3016 unsigned PWM1POL
: 1;
3017 unsigned PWM1OUT
: 1;
3018 unsigned PWM1OE
: 1;
3019 unsigned PWM1EN
: 1;
3032 unsigned PWM1MODE
: 2;
3037 extern __at(0x0D9B) volatile __PWM1CONbits_t PWM1CONbits
;
3039 #define _PWM1MODE0 0x04
3041 #define _PWM1MODE1 0x08
3044 #define _PWM1POL 0x10
3046 #define _PWM1OUT 0x20
3048 #define _PWM1OE 0x40
3050 #define _PWM1EN 0x80
3052 //==============================================================================
3055 //==============================================================================
3058 extern __at(0x0D9C) __sfr PWM1INTCON
;
3076 unsigned PWM1PRIE
: 1;
3077 unsigned PWM1DCIE
: 1;
3078 unsigned PWM1PHIE
: 1;
3079 unsigned PWM1OFIE
: 1;
3085 } __PWM1INTCONbits_t
;
3087 extern __at(0x0D9C) volatile __PWM1INTCONbits_t PWM1INTCONbits
;
3090 #define _PWM1PRIE 0x01
3092 #define _PWM1DCIE 0x02
3094 #define _PWM1PHIE 0x04
3096 #define _PWM1OFIE 0x08
3098 //==============================================================================
3101 //==============================================================================
3104 extern __at(0x0D9C) __sfr PWM1INTE
;
3122 unsigned PWM1PRIE
: 1;
3123 unsigned PWM1DCIE
: 1;
3124 unsigned PWM1PHIE
: 1;
3125 unsigned PWM1OFIE
: 1;
3133 extern __at(0x0D9C) volatile __PWM1INTEbits_t PWM1INTEbits
;
3135 #define _PWM1INTE_PRIE 0x01
3136 #define _PWM1INTE_PWM1PRIE 0x01
3137 #define _PWM1INTE_DCIE 0x02
3138 #define _PWM1INTE_PWM1DCIE 0x02
3139 #define _PWM1INTE_PHIE 0x04
3140 #define _PWM1INTE_PWM1PHIE 0x04
3141 #define _PWM1INTE_OFIE 0x08
3142 #define _PWM1INTE_PWM1OFIE 0x08
3144 //==============================================================================
3147 //==============================================================================
3150 extern __at(0x0D9D) __sfr PWM1INTF
;
3168 unsigned PWM1PRIF
: 1;
3169 unsigned PWM1DCIF
: 1;
3170 unsigned PWM1PHIF
: 1;
3171 unsigned PWM1OFIF
: 1;
3179 extern __at(0x0D9D) volatile __PWM1INTFbits_t PWM1INTFbits
;
3182 #define _PWM1PRIF 0x01
3184 #define _PWM1DCIF 0x02
3186 #define _PWM1PHIF 0x04
3188 #define _PWM1OFIF 0x08
3190 //==============================================================================
3193 //==============================================================================
3196 extern __at(0x0D9D) __sfr PWM1INTFLG
;
3214 unsigned PWM1PRIF
: 1;
3215 unsigned PWM1DCIF
: 1;
3216 unsigned PWM1PHIF
: 1;
3217 unsigned PWM1OFIF
: 1;
3223 } __PWM1INTFLGbits_t
;
3225 extern __at(0x0D9D) volatile __PWM1INTFLGbits_t PWM1INTFLGbits
;
3227 #define _PWM1INTFLG_PRIF 0x01
3228 #define _PWM1INTFLG_PWM1PRIF 0x01
3229 #define _PWM1INTFLG_DCIF 0x02
3230 #define _PWM1INTFLG_PWM1DCIF 0x02
3231 #define _PWM1INTFLG_PHIF 0x04
3232 #define _PWM1INTFLG_PWM1PHIF 0x04
3233 #define _PWM1INTFLG_OFIF 0x08
3234 #define _PWM1INTFLG_PWM1OFIF 0x08
3236 //==============================================================================
3239 //==============================================================================
3242 extern __at(0x0D9E) __sfr PWM1CLKCON
;
3248 unsigned PWM1CS0
: 1;
3249 unsigned PWM1CS1
: 1;
3252 unsigned PWM1PS0
: 1;
3253 unsigned PWM1PS1
: 1;
3254 unsigned PWM1PS2
: 1;
3278 unsigned PWM1CS
: 2;
3285 unsigned PWM1PS
: 3;
3295 } __PWM1CLKCONbits_t
;
3297 extern __at(0x0D9E) volatile __PWM1CLKCONbits_t PWM1CLKCONbits
;
3299 #define _PWM1CLKCON_PWM1CS0 0x01
3300 #define _PWM1CLKCON_CS0 0x01
3301 #define _PWM1CLKCON_PWM1CS1 0x02
3302 #define _PWM1CLKCON_CS1 0x02
3303 #define _PWM1CLKCON_PWM1PS0 0x10
3304 #define _PWM1CLKCON_PS0 0x10
3305 #define _PWM1CLKCON_PWM1PS1 0x20
3306 #define _PWM1CLKCON_PS1 0x20
3307 #define _PWM1CLKCON_PWM1PS2 0x40
3308 #define _PWM1CLKCON_PS2 0x40
3310 //==============================================================================
3313 //==============================================================================
3316 extern __at(0x0D9F) __sfr PWM1LDCON
;
3322 unsigned PWM1LDS0
: 1;
3323 unsigned PWM1LDS1
: 1;
3340 unsigned PWM1LDM
: 1;
3341 unsigned PWM1LD
: 1;
3352 unsigned PWM1LDS
: 2;
3355 } __PWM1LDCONbits_t
;
3357 extern __at(0x0D9F) volatile __PWM1LDCONbits_t PWM1LDCONbits
;
3359 #define _PWM1LDS0 0x01
3361 #define _PWM1LDS1 0x02
3364 #define _PWM1LDM 0x40
3366 #define _PWM1LD 0x80
3368 //==============================================================================
3371 //==============================================================================
3374 extern __at(0x0DA0) __sfr PWM1OFCON
;
3380 unsigned PWM1OFS0
: 1;
3381 unsigned PWM1OFS1
: 1;
3385 unsigned PWM1OFM0
: 1;
3386 unsigned PWM1OFM1
: 1;
3396 unsigned PWM1OFMC
: 1;
3410 unsigned PWM1OFS
: 2;
3417 unsigned PWM1OFM
: 2;
3427 } __PWM1OFCONbits_t
;
3429 extern __at(0x0DA0) volatile __PWM1OFCONbits_t PWM1OFCONbits
;
3431 #define _PWM1OFS0 0x01
3433 #define _PWM1OFS1 0x02
3436 #define _PWM1OFMC 0x10
3437 #define _PWM1OFM0 0x20
3439 #define _PWM1OFM1 0x40
3442 //==============================================================================
3444 extern __at(0x0DA1) __sfr PWM2PH
;
3446 //==============================================================================
3449 extern __at(0x0DA1) __sfr PWM2PHL
;
3453 unsigned PWM2PHL0
: 1;
3454 unsigned PWM2PHL1
: 1;
3455 unsigned PWM2PHL2
: 1;
3456 unsigned PWM2PHL3
: 1;
3457 unsigned PWM2PHL4
: 1;
3458 unsigned PWM2PHL5
: 1;
3459 unsigned PWM2PHL6
: 1;
3460 unsigned PWM2PHL7
: 1;
3463 extern __at(0x0DA1) volatile __PWM2PHLbits_t PWM2PHLbits
;
3465 #define _PWM2PHL0 0x01
3466 #define _PWM2PHL1 0x02
3467 #define _PWM2PHL2 0x04
3468 #define _PWM2PHL3 0x08
3469 #define _PWM2PHL4 0x10
3470 #define _PWM2PHL5 0x20
3471 #define _PWM2PHL6 0x40
3472 #define _PWM2PHL7 0x80
3474 //==============================================================================
3477 //==============================================================================
3480 extern __at(0x0DA2) __sfr PWM2PHH
;
3484 unsigned PWM2PHH0
: 1;
3485 unsigned PWM2PHH1
: 1;
3486 unsigned PWM2PHH2
: 1;
3487 unsigned PWM2PHH3
: 1;
3488 unsigned PWM2PHH4
: 1;
3489 unsigned PWM2PHH5
: 1;
3490 unsigned PWM2PHH6
: 1;
3491 unsigned PWM2PHH7
: 1;
3494 extern __at(0x0DA2) volatile __PWM2PHHbits_t PWM2PHHbits
;
3496 #define _PWM2PHH0 0x01
3497 #define _PWM2PHH1 0x02
3498 #define _PWM2PHH2 0x04
3499 #define _PWM2PHH3 0x08
3500 #define _PWM2PHH4 0x10
3501 #define _PWM2PHH5 0x20
3502 #define _PWM2PHH6 0x40
3503 #define _PWM2PHH7 0x80
3505 //==============================================================================
3507 extern __at(0x0DA3) __sfr PWM2DC
;
3509 //==============================================================================
3512 extern __at(0x0DA3) __sfr PWM2DCL
;
3516 unsigned PWM2DCL0
: 1;
3517 unsigned PWM2DCL1
: 1;
3518 unsigned PWM2DCL2
: 1;
3519 unsigned PWM2DCL3
: 1;
3520 unsigned PWM2DCL4
: 1;
3521 unsigned PWM2DCL5
: 1;
3522 unsigned PWM2DCL6
: 1;
3523 unsigned PWM2DCL7
: 1;
3526 extern __at(0x0DA3) volatile __PWM2DCLbits_t PWM2DCLbits
;
3528 #define _PWM2DCL0 0x01
3529 #define _PWM2DCL1 0x02
3530 #define _PWM2DCL2 0x04
3531 #define _PWM2DCL3 0x08
3532 #define _PWM2DCL4 0x10
3533 #define _PWM2DCL5 0x20
3534 #define _PWM2DCL6 0x40
3535 #define _PWM2DCL7 0x80
3537 //==============================================================================
3540 //==============================================================================
3543 extern __at(0x0DA4) __sfr PWM2DCH
;
3547 unsigned PWM2DCH0
: 1;
3548 unsigned PWM2DCH1
: 1;
3549 unsigned PWM2DCH2
: 1;
3550 unsigned PWM2DCH3
: 1;
3551 unsigned PWM2DCH4
: 1;
3552 unsigned PWM2DCH5
: 1;
3553 unsigned PWM2DCH6
: 1;
3554 unsigned PWM2DCH7
: 1;
3557 extern __at(0x0DA4) volatile __PWM2DCHbits_t PWM2DCHbits
;
3559 #define _PWM2DCH0 0x01
3560 #define _PWM2DCH1 0x02
3561 #define _PWM2DCH2 0x04
3562 #define _PWM2DCH3 0x08
3563 #define _PWM2DCH4 0x10
3564 #define _PWM2DCH5 0x20
3565 #define _PWM2DCH6 0x40
3566 #define _PWM2DCH7 0x80
3568 //==============================================================================
3570 extern __at(0x0DA5) __sfr PWM2PR
;
3572 //==============================================================================
3575 extern __at(0x0DA5) __sfr PWM2PRL
;
3579 unsigned PWM2PRL0
: 1;
3580 unsigned PWM2PRL1
: 1;
3581 unsigned PWM2PRL2
: 1;
3582 unsigned PWM2PRL3
: 1;
3583 unsigned PWM2PRL4
: 1;
3584 unsigned PWM2PRL5
: 1;
3585 unsigned PWM2PRL6
: 1;
3586 unsigned PWM2PRL7
: 1;
3589 extern __at(0x0DA5) volatile __PWM2PRLbits_t PWM2PRLbits
;
3591 #define _PWM2PRL0 0x01
3592 #define _PWM2PRL1 0x02
3593 #define _PWM2PRL2 0x04
3594 #define _PWM2PRL3 0x08
3595 #define _PWM2PRL4 0x10
3596 #define _PWM2PRL5 0x20
3597 #define _PWM2PRL6 0x40
3598 #define _PWM2PRL7 0x80
3600 //==============================================================================
3603 //==============================================================================
3606 extern __at(0x0DA6) __sfr PWM2PRH
;
3610 unsigned PWM2PRH0
: 1;
3611 unsigned PWM2PRH1
: 1;
3612 unsigned PWM2PRH2
: 1;
3613 unsigned PWM2PRH3
: 1;
3614 unsigned PWM2PRH4
: 1;
3615 unsigned PWM2PRH5
: 1;
3616 unsigned PWM2PRH6
: 1;
3617 unsigned PWM2PRH7
: 1;
3620 extern __at(0x0DA6) volatile __PWM2PRHbits_t PWM2PRHbits
;
3622 #define _PWM2PRH0 0x01
3623 #define _PWM2PRH1 0x02
3624 #define _PWM2PRH2 0x04
3625 #define _PWM2PRH3 0x08
3626 #define _PWM2PRH4 0x10
3627 #define _PWM2PRH5 0x20
3628 #define _PWM2PRH6 0x40
3629 #define _PWM2PRH7 0x80
3631 //==============================================================================
3633 extern __at(0x0DA7) __sfr PWM2OF
;
3635 //==============================================================================
3638 extern __at(0x0DA7) __sfr PWM2OFL
;
3642 unsigned PWM2OFL0
: 1;
3643 unsigned PWM2OFL1
: 1;
3644 unsigned PWM2OFL2
: 1;
3645 unsigned PWM2OFL3
: 1;
3646 unsigned PWM2OFL4
: 1;
3647 unsigned PWM2OFL5
: 1;
3648 unsigned PWM2OFL6
: 1;
3649 unsigned PWM2OFL7
: 1;
3652 extern __at(0x0DA7) volatile __PWM2OFLbits_t PWM2OFLbits
;
3654 #define _PWM2OFL0 0x01
3655 #define _PWM2OFL1 0x02
3656 #define _PWM2OFL2 0x04
3657 #define _PWM2OFL3 0x08
3658 #define _PWM2OFL4 0x10
3659 #define _PWM2OFL5 0x20
3660 #define _PWM2OFL6 0x40
3661 #define _PWM2OFL7 0x80
3663 //==============================================================================
3666 //==============================================================================
3669 extern __at(0x0DA8) __sfr PWM2OFH
;
3673 unsigned PWM2OFH0
: 1;
3674 unsigned PWM2OFH1
: 1;
3675 unsigned PWM2OFH2
: 1;
3676 unsigned PWM2OFH3
: 1;
3677 unsigned PWM2OFH4
: 1;
3678 unsigned PWM2OFH5
: 1;
3679 unsigned PWM2OFH6
: 1;
3680 unsigned PWM2OFH7
: 1;
3683 extern __at(0x0DA8) volatile __PWM2OFHbits_t PWM2OFHbits
;
3685 #define _PWM2OFH0 0x01
3686 #define _PWM2OFH1 0x02
3687 #define _PWM2OFH2 0x04
3688 #define _PWM2OFH3 0x08
3689 #define _PWM2OFH4 0x10
3690 #define _PWM2OFH5 0x20
3691 #define _PWM2OFH6 0x40
3692 #define _PWM2OFH7 0x80
3694 //==============================================================================
3696 extern __at(0x0DA9) __sfr PWM2TMR
;
3698 //==============================================================================
3701 extern __at(0x0DA9) __sfr PWM2TMRL
;
3705 unsigned PWM2TMRL0
: 1;
3706 unsigned PWM2TMRL1
: 1;
3707 unsigned PWM2TMRL2
: 1;
3708 unsigned PWM2TMRL3
: 1;
3709 unsigned PWM2TMRL4
: 1;
3710 unsigned PWM2TMRL5
: 1;
3711 unsigned PWM2TMRL6
: 1;
3712 unsigned PWM2TMRL7
: 1;
3715 extern __at(0x0DA9) volatile __PWM2TMRLbits_t PWM2TMRLbits
;
3717 #define _PWM2TMRL0 0x01
3718 #define _PWM2TMRL1 0x02
3719 #define _PWM2TMRL2 0x04
3720 #define _PWM2TMRL3 0x08
3721 #define _PWM2TMRL4 0x10
3722 #define _PWM2TMRL5 0x20
3723 #define _PWM2TMRL6 0x40
3724 #define _PWM2TMRL7 0x80
3726 //==============================================================================
3729 //==============================================================================
3732 extern __at(0x0DAA) __sfr PWM2TMRH
;
3736 unsigned PWM2TMRH0
: 1;
3737 unsigned PWM2TMRH1
: 1;
3738 unsigned PWM2TMRH2
: 1;
3739 unsigned PWM2TMRH3
: 1;
3740 unsigned PWM2TMRH4
: 1;
3741 unsigned PWM2TMRH5
: 1;
3742 unsigned PWM2TMRH6
: 1;
3743 unsigned PWM2TMRH7
: 1;
3746 extern __at(0x0DAA) volatile __PWM2TMRHbits_t PWM2TMRHbits
;
3748 #define _PWM2TMRH0 0x01
3749 #define _PWM2TMRH1 0x02
3750 #define _PWM2TMRH2 0x04
3751 #define _PWM2TMRH3 0x08
3752 #define _PWM2TMRH4 0x10
3753 #define _PWM2TMRH5 0x20
3754 #define _PWM2TMRH6 0x40
3755 #define _PWM2TMRH7 0x80
3757 //==============================================================================
3760 //==============================================================================
3763 extern __at(0x0DAB) __sfr PWM2CON
;
3771 unsigned PWM2MODE0
: 1;
3772 unsigned PWM2MODE1
: 1;
3785 unsigned PWM2POL
: 1;
3786 unsigned PWM2OUT
: 1;
3787 unsigned PWM2OE
: 1;
3788 unsigned PWM2EN
: 1;
3801 unsigned PWM2MODE
: 2;
3806 extern __at(0x0DAB) volatile __PWM2CONbits_t PWM2CONbits
;
3808 #define _PWM2CON_PWM2MODE0 0x04
3809 #define _PWM2CON_MODE0 0x04
3810 #define _PWM2CON_PWM2MODE1 0x08
3811 #define _PWM2CON_MODE1 0x08
3812 #define _PWM2CON_POL 0x10
3813 #define _PWM2CON_PWM2POL 0x10
3814 #define _PWM2CON_OUT 0x20
3815 #define _PWM2CON_PWM2OUT 0x20
3816 #define _PWM2CON_OE 0x40
3817 #define _PWM2CON_PWM2OE 0x40
3818 #define _PWM2CON_EN 0x80
3819 #define _PWM2CON_PWM2EN 0x80
3821 //==============================================================================
3824 //==============================================================================
3827 extern __at(0x0DAC) __sfr PWM2INTCON
;
3845 unsigned PWM2PRIE
: 1;
3846 unsigned PWM2DCIE
: 1;
3847 unsigned PWM2PHIE
: 1;
3848 unsigned PWM2OFIE
: 1;
3854 } __PWM2INTCONbits_t
;
3856 extern __at(0x0DAC) volatile __PWM2INTCONbits_t PWM2INTCONbits
;
3858 #define _PWM2INTCON_PRIE 0x01
3859 #define _PWM2INTCON_PWM2PRIE 0x01
3860 #define _PWM2INTCON_DCIE 0x02
3861 #define _PWM2INTCON_PWM2DCIE 0x02
3862 #define _PWM2INTCON_PHIE 0x04
3863 #define _PWM2INTCON_PWM2PHIE 0x04
3864 #define _PWM2INTCON_OFIE 0x08
3865 #define _PWM2INTCON_PWM2OFIE 0x08
3867 //==============================================================================
3870 //==============================================================================
3873 extern __at(0x0DAC) __sfr PWM2INTE
;
3891 unsigned PWM2PRIE
: 1;
3892 unsigned PWM2DCIE
: 1;
3893 unsigned PWM2PHIE
: 1;
3894 unsigned PWM2OFIE
: 1;
3902 extern __at(0x0DAC) volatile __PWM2INTEbits_t PWM2INTEbits
;
3904 #define _PWM2INTE_PRIE 0x01
3905 #define _PWM2INTE_PWM2PRIE 0x01
3906 #define _PWM2INTE_DCIE 0x02
3907 #define _PWM2INTE_PWM2DCIE 0x02
3908 #define _PWM2INTE_PHIE 0x04
3909 #define _PWM2INTE_PWM2PHIE 0x04
3910 #define _PWM2INTE_OFIE 0x08
3911 #define _PWM2INTE_PWM2OFIE 0x08
3913 //==============================================================================
3916 //==============================================================================
3919 extern __at(0x0DAD) __sfr PWM2INTF
;
3937 unsigned PWM2PRIF
: 1;
3938 unsigned PWM2DCIF
: 1;
3939 unsigned PWM2PHIF
: 1;
3940 unsigned PWM2OFIF
: 1;
3948 extern __at(0x0DAD) volatile __PWM2INTFbits_t PWM2INTFbits
;
3950 #define _PWM2INTF_PRIF 0x01
3951 #define _PWM2INTF_PWM2PRIF 0x01
3952 #define _PWM2INTF_DCIF 0x02
3953 #define _PWM2INTF_PWM2DCIF 0x02
3954 #define _PWM2INTF_PHIF 0x04
3955 #define _PWM2INTF_PWM2PHIF 0x04
3956 #define _PWM2INTF_OFIF 0x08
3957 #define _PWM2INTF_PWM2OFIF 0x08
3959 //==============================================================================
3962 //==============================================================================
3965 extern __at(0x0DAD) __sfr PWM2INTFLG
;
3983 unsigned PWM2PRIF
: 1;
3984 unsigned PWM2DCIF
: 1;
3985 unsigned PWM2PHIF
: 1;
3986 unsigned PWM2OFIF
: 1;
3992 } __PWM2INTFLGbits_t
;
3994 extern __at(0x0DAD) volatile __PWM2INTFLGbits_t PWM2INTFLGbits
;
3996 #define _PWM2INTFLG_PRIF 0x01
3997 #define _PWM2INTFLG_PWM2PRIF 0x01
3998 #define _PWM2INTFLG_DCIF 0x02
3999 #define _PWM2INTFLG_PWM2DCIF 0x02
4000 #define _PWM2INTFLG_PHIF 0x04
4001 #define _PWM2INTFLG_PWM2PHIF 0x04
4002 #define _PWM2INTFLG_OFIF 0x08
4003 #define _PWM2INTFLG_PWM2OFIF 0x08
4005 //==============================================================================
4008 //==============================================================================
4011 extern __at(0x0DAE) __sfr PWM2CLKCON
;
4017 unsigned PWM2CS0
: 1;
4018 unsigned PWM2CS1
: 1;
4021 unsigned PWM2PS0
: 1;
4022 unsigned PWM2PS1
: 1;
4023 unsigned PWM2PS2
: 1;
4041 unsigned PWM2CS
: 2;
4061 unsigned PWM2PS
: 3;
4064 } __PWM2CLKCONbits_t
;
4066 extern __at(0x0DAE) volatile __PWM2CLKCONbits_t PWM2CLKCONbits
;
4068 #define _PWM2CLKCON_PWM2CS0 0x01
4069 #define _PWM2CLKCON_CS0 0x01
4070 #define _PWM2CLKCON_PWM2CS1 0x02
4071 #define _PWM2CLKCON_CS1 0x02
4072 #define _PWM2CLKCON_PWM2PS0 0x10
4073 #define _PWM2CLKCON_PS0 0x10
4074 #define _PWM2CLKCON_PWM2PS1 0x20
4075 #define _PWM2CLKCON_PS1 0x20
4076 #define _PWM2CLKCON_PWM2PS2 0x40
4077 #define _PWM2CLKCON_PS2 0x40
4079 //==============================================================================
4082 //==============================================================================
4085 extern __at(0x0DAF) __sfr PWM2LDCON
;
4091 unsigned PWM2LDS0
: 1;
4092 unsigned PWM2LDS1
: 1;
4109 unsigned PWM2LDM
: 1;
4110 unsigned PWM2LD
: 1;
4115 unsigned PWM2LDS
: 2;
4124 } __PWM2LDCONbits_t
;
4126 extern __at(0x0DAF) volatile __PWM2LDCONbits_t PWM2LDCONbits
;
4128 #define _PWM2LDCON_PWM2LDS0 0x01
4129 #define _PWM2LDCON_LDS0 0x01
4130 #define _PWM2LDCON_PWM2LDS1 0x02
4131 #define _PWM2LDCON_LDS1 0x02
4132 #define _PWM2LDCON_LDT 0x40
4133 #define _PWM2LDCON_PWM2LDM 0x40
4134 #define _PWM2LDCON_LDA 0x80
4135 #define _PWM2LDCON_PWM2LD 0x80
4137 //==============================================================================
4140 //==============================================================================
4143 extern __at(0x0DB0) __sfr PWM2OFCON
;
4149 unsigned PWM2OFS0
: 1;
4150 unsigned PWM2OFS1
: 1;
4154 unsigned PWM2OFM0
: 1;
4155 unsigned PWM2OFM1
: 1;
4165 unsigned PWM2OFMC
: 1;
4179 unsigned PWM2OFS
: 2;
4193 unsigned PWM2OFM
: 2;
4196 } __PWM2OFCONbits_t
;
4198 extern __at(0x0DB0) volatile __PWM2OFCONbits_t PWM2OFCONbits
;
4200 #define _PWM2OFCON_PWM2OFS0 0x01
4201 #define _PWM2OFCON_OFS0 0x01
4202 #define _PWM2OFCON_PWM2OFS1 0x02
4203 #define _PWM2OFCON_OFS1 0x02
4204 #define _PWM2OFCON_OFO 0x10
4205 #define _PWM2OFCON_PWM2OFMC 0x10
4206 #define _PWM2OFCON_PWM2OFM0 0x20
4207 #define _PWM2OFCON_OFM0 0x20
4208 #define _PWM2OFCON_PWM2OFM1 0x40
4209 #define _PWM2OFCON_OFM1 0x40
4211 //==============================================================================
4213 extern __at(0x0DB1) __sfr PWM3PH
;
4215 //==============================================================================
4218 extern __at(0x0DB1) __sfr PWM3PHL
;
4222 unsigned PWM3PHL0
: 1;
4223 unsigned PWM3PHL1
: 1;
4224 unsigned PWM3PHL2
: 1;
4225 unsigned PWM3PHL3
: 1;
4226 unsigned PWM3PHL4
: 1;
4227 unsigned PWM3PHL5
: 1;
4228 unsigned PWM3PHL6
: 1;
4229 unsigned PWM3PHL7
: 1;
4232 extern __at(0x0DB1) volatile __PWM3PHLbits_t PWM3PHLbits
;
4234 #define _PWM3PHL0 0x01
4235 #define _PWM3PHL1 0x02
4236 #define _PWM3PHL2 0x04
4237 #define _PWM3PHL3 0x08
4238 #define _PWM3PHL4 0x10
4239 #define _PWM3PHL5 0x20
4240 #define _PWM3PHL6 0x40
4241 #define _PWM3PHL7 0x80
4243 //==============================================================================
4246 //==============================================================================
4249 extern __at(0x0DB2) __sfr PWM3PHH
;
4253 unsigned PWM3PHH0
: 1;
4254 unsigned PWM3PHH1
: 1;
4255 unsigned PWM3PHH2
: 1;
4256 unsigned PWM3PHH3
: 1;
4257 unsigned PWM3PHH4
: 1;
4258 unsigned PWM3PHH5
: 1;
4259 unsigned PWM3PHH6
: 1;
4260 unsigned PWM3PHH7
: 1;
4263 extern __at(0x0DB2) volatile __PWM3PHHbits_t PWM3PHHbits
;
4265 #define _PWM3PHH0 0x01
4266 #define _PWM3PHH1 0x02
4267 #define _PWM3PHH2 0x04
4268 #define _PWM3PHH3 0x08
4269 #define _PWM3PHH4 0x10
4270 #define _PWM3PHH5 0x20
4271 #define _PWM3PHH6 0x40
4272 #define _PWM3PHH7 0x80
4274 //==============================================================================
4276 extern __at(0x0DB3) __sfr PWM3DC
;
4278 //==============================================================================
4281 extern __at(0x0DB3) __sfr PWM3DCL
;
4285 unsigned PWM3DCL0
: 1;
4286 unsigned PWM3DCL1
: 1;
4287 unsigned PWM3DCL2
: 1;
4288 unsigned PWM3DCL3
: 1;
4289 unsigned PWM3DCL4
: 1;
4290 unsigned PWM3DCL5
: 1;
4291 unsigned PWM3DCL6
: 1;
4292 unsigned PWM3DCL7
: 1;
4295 extern __at(0x0DB3) volatile __PWM3DCLbits_t PWM3DCLbits
;
4297 #define _PWM3DCL0 0x01
4298 #define _PWM3DCL1 0x02
4299 #define _PWM3DCL2 0x04
4300 #define _PWM3DCL3 0x08
4301 #define _PWM3DCL4 0x10
4302 #define _PWM3DCL5 0x20
4303 #define _PWM3DCL6 0x40
4304 #define _PWM3DCL7 0x80
4306 //==============================================================================
4309 //==============================================================================
4312 extern __at(0x0DB4) __sfr PWM3DCH
;
4316 unsigned PWM3DCH0
: 1;
4317 unsigned PWM3DCH1
: 1;
4318 unsigned PWM3DCH2
: 1;
4319 unsigned PWM3DCH3
: 1;
4320 unsigned PWM3DCH4
: 1;
4321 unsigned PWM3DCH5
: 1;
4322 unsigned PWM3DCH6
: 1;
4323 unsigned PWM3DCH7
: 1;
4326 extern __at(0x0DB4) volatile __PWM3DCHbits_t PWM3DCHbits
;
4328 #define _PWM3DCH0 0x01
4329 #define _PWM3DCH1 0x02
4330 #define _PWM3DCH2 0x04
4331 #define _PWM3DCH3 0x08
4332 #define _PWM3DCH4 0x10
4333 #define _PWM3DCH5 0x20
4334 #define _PWM3DCH6 0x40
4335 #define _PWM3DCH7 0x80
4337 //==============================================================================
4339 extern __at(0x0DB5) __sfr PWM3PR
;
4341 //==============================================================================
4344 extern __at(0x0DB5) __sfr PWM3PRL
;
4348 unsigned PWM3PRL0
: 1;
4349 unsigned PWM3PRL1
: 1;
4350 unsigned PWM3PRL2
: 1;
4351 unsigned PWM3PRL3
: 1;
4352 unsigned PWM3PRL4
: 1;
4353 unsigned PWM3PRL5
: 1;
4354 unsigned PWM3PRL6
: 1;
4355 unsigned PWM3PRL7
: 1;
4358 extern __at(0x0DB5) volatile __PWM3PRLbits_t PWM3PRLbits
;
4360 #define _PWM3PRL0 0x01
4361 #define _PWM3PRL1 0x02
4362 #define _PWM3PRL2 0x04
4363 #define _PWM3PRL3 0x08
4364 #define _PWM3PRL4 0x10
4365 #define _PWM3PRL5 0x20
4366 #define _PWM3PRL6 0x40
4367 #define _PWM3PRL7 0x80
4369 //==============================================================================
4372 //==============================================================================
4375 extern __at(0x0DB6) __sfr PWM3PRH
;
4379 unsigned PWM3PRH0
: 1;
4380 unsigned PWM3PRH1
: 1;
4381 unsigned PWM3PRH2
: 1;
4382 unsigned PWM3PRH3
: 1;
4383 unsigned PWM3PRH4
: 1;
4384 unsigned PWM3PRH5
: 1;
4385 unsigned PWM3PRH6
: 1;
4386 unsigned PWM3PRH7
: 1;
4389 extern __at(0x0DB6) volatile __PWM3PRHbits_t PWM3PRHbits
;
4391 #define _PWM3PRH0 0x01
4392 #define _PWM3PRH1 0x02
4393 #define _PWM3PRH2 0x04
4394 #define _PWM3PRH3 0x08
4395 #define _PWM3PRH4 0x10
4396 #define _PWM3PRH5 0x20
4397 #define _PWM3PRH6 0x40
4398 #define _PWM3PRH7 0x80
4400 //==============================================================================
4402 extern __at(0x0DB7) __sfr PWM3OF
;
4404 //==============================================================================
4407 extern __at(0x0DB7) __sfr PWM3OFL
;
4411 unsigned PWM3OFL0
: 1;
4412 unsigned PWM3OFL1
: 1;
4413 unsigned PWM3OFL2
: 1;
4414 unsigned PWM3OFL3
: 1;
4415 unsigned PWM3OFL4
: 1;
4416 unsigned PWM3OFL5
: 1;
4417 unsigned PWM3OFL6
: 1;
4418 unsigned PWM3OFL7
: 1;
4421 extern __at(0x0DB7) volatile __PWM3OFLbits_t PWM3OFLbits
;
4423 #define _PWM3OFL0 0x01
4424 #define _PWM3OFL1 0x02
4425 #define _PWM3OFL2 0x04
4426 #define _PWM3OFL3 0x08
4427 #define _PWM3OFL4 0x10
4428 #define _PWM3OFL5 0x20
4429 #define _PWM3OFL6 0x40
4430 #define _PWM3OFL7 0x80
4432 //==============================================================================
4435 //==============================================================================
4438 extern __at(0x0DB8) __sfr PWM3OFH
;
4442 unsigned PWM3OFH0
: 1;
4443 unsigned PWM3OFH1
: 1;
4444 unsigned PWM3OFH2
: 1;
4445 unsigned PWM3OFH3
: 1;
4446 unsigned PWM3OFH4
: 1;
4447 unsigned PWM3OFH5
: 1;
4448 unsigned PWM3OFH6
: 1;
4449 unsigned PWM3OFH7
: 1;
4452 extern __at(0x0DB8) volatile __PWM3OFHbits_t PWM3OFHbits
;
4454 #define _PWM3OFH0 0x01
4455 #define _PWM3OFH1 0x02
4456 #define _PWM3OFH2 0x04
4457 #define _PWM3OFH3 0x08
4458 #define _PWM3OFH4 0x10
4459 #define _PWM3OFH5 0x20
4460 #define _PWM3OFH6 0x40
4461 #define _PWM3OFH7 0x80
4463 //==============================================================================
4465 extern __at(0x0DB9) __sfr PWM3TMR
;
4467 //==============================================================================
4470 extern __at(0x0DB9) __sfr PWM3TMRL
;
4474 unsigned PWM3TMRL0
: 1;
4475 unsigned PWM3TMRL1
: 1;
4476 unsigned PWM3TMRL2
: 1;
4477 unsigned PWM3TMRL3
: 1;
4478 unsigned PWM3TMRL4
: 1;
4479 unsigned PWM3TMRL5
: 1;
4480 unsigned PWM3TMRL6
: 1;
4481 unsigned PWM3TMRL7
: 1;
4484 extern __at(0x0DB9) volatile __PWM3TMRLbits_t PWM3TMRLbits
;
4486 #define _PWM3TMRL0 0x01
4487 #define _PWM3TMRL1 0x02
4488 #define _PWM3TMRL2 0x04
4489 #define _PWM3TMRL3 0x08
4490 #define _PWM3TMRL4 0x10
4491 #define _PWM3TMRL5 0x20
4492 #define _PWM3TMRL6 0x40
4493 #define _PWM3TMRL7 0x80
4495 //==============================================================================
4498 //==============================================================================
4501 extern __at(0x0DBA) __sfr PWM3TMRH
;
4505 unsigned PWM3TMRH0
: 1;
4506 unsigned PWM3TMRH1
: 1;
4507 unsigned PWM3TMRH2
: 1;
4508 unsigned PWM3TMRH3
: 1;
4509 unsigned PWM3TMRH4
: 1;
4510 unsigned PWM3TMRH5
: 1;
4511 unsigned PWM3TMRH6
: 1;
4512 unsigned PWM3TMRH7
: 1;
4515 extern __at(0x0DBA) volatile __PWM3TMRHbits_t PWM3TMRHbits
;
4517 #define _PWM3TMRH0 0x01
4518 #define _PWM3TMRH1 0x02
4519 #define _PWM3TMRH2 0x04
4520 #define _PWM3TMRH3 0x08
4521 #define _PWM3TMRH4 0x10
4522 #define _PWM3TMRH5 0x20
4523 #define _PWM3TMRH6 0x40
4524 #define _PWM3TMRH7 0x80
4526 //==============================================================================
4529 //==============================================================================
4532 extern __at(0x0DBB) __sfr PWM3CON
;
4540 unsigned PWM3MODE0
: 1;
4541 unsigned PWM3MODE1
: 1;
4554 unsigned PWM3POL
: 1;
4555 unsigned PWM3OUT
: 1;
4556 unsigned PWM3OE
: 1;
4557 unsigned PWM3EN
: 1;
4570 unsigned PWM3MODE
: 2;
4575 extern __at(0x0DBB) volatile __PWM3CONbits_t PWM3CONbits
;
4577 #define _PWM3CON_PWM3MODE0 0x04
4578 #define _PWM3CON_MODE0 0x04
4579 #define _PWM3CON_PWM3MODE1 0x08
4580 #define _PWM3CON_MODE1 0x08
4581 #define _PWM3CON_POL 0x10
4582 #define _PWM3CON_PWM3POL 0x10
4583 #define _PWM3CON_OUT 0x20
4584 #define _PWM3CON_PWM3OUT 0x20
4585 #define _PWM3CON_OE 0x40
4586 #define _PWM3CON_PWM3OE 0x40
4587 #define _PWM3CON_EN 0x80
4588 #define _PWM3CON_PWM3EN 0x80
4590 //==============================================================================
4593 //==============================================================================
4596 extern __at(0x0DBC) __sfr PWM3INTCON
;
4614 unsigned PWM3PRIE
: 1;
4615 unsigned PWM3DCIE
: 1;
4616 unsigned PWM3PHIE
: 1;
4617 unsigned PWM3OFIE
: 1;
4623 } __PWM3INTCONbits_t
;
4625 extern __at(0x0DBC) volatile __PWM3INTCONbits_t PWM3INTCONbits
;
4627 #define _PWM3INTCON_PRIE 0x01
4628 #define _PWM3INTCON_PWM3PRIE 0x01
4629 #define _PWM3INTCON_DCIE 0x02
4630 #define _PWM3INTCON_PWM3DCIE 0x02
4631 #define _PWM3INTCON_PHIE 0x04
4632 #define _PWM3INTCON_PWM3PHIE 0x04
4633 #define _PWM3INTCON_OFIE 0x08
4634 #define _PWM3INTCON_PWM3OFIE 0x08
4636 //==============================================================================
4639 //==============================================================================
4642 extern __at(0x0DBC) __sfr PWM3INTE
;
4660 unsigned PWM3PRIE
: 1;
4661 unsigned PWM3DCIE
: 1;
4662 unsigned PWM3PHIE
: 1;
4663 unsigned PWM3OFIE
: 1;
4671 extern __at(0x0DBC) volatile __PWM3INTEbits_t PWM3INTEbits
;
4673 #define _PWM3INTE_PRIE 0x01
4674 #define _PWM3INTE_PWM3PRIE 0x01
4675 #define _PWM3INTE_DCIE 0x02
4676 #define _PWM3INTE_PWM3DCIE 0x02
4677 #define _PWM3INTE_PHIE 0x04
4678 #define _PWM3INTE_PWM3PHIE 0x04
4679 #define _PWM3INTE_OFIE 0x08
4680 #define _PWM3INTE_PWM3OFIE 0x08
4682 //==============================================================================
4685 //==============================================================================
4688 extern __at(0x0DBD) __sfr PWM3INTF
;
4706 unsigned PWM3PRIF
: 1;
4707 unsigned PWM3DCIF
: 1;
4708 unsigned PWM3PHIF
: 1;
4709 unsigned PWM3OFIF
: 1;
4717 extern __at(0x0DBD) volatile __PWM3INTFbits_t PWM3INTFbits
;
4719 #define _PWM3INTF_PRIF 0x01
4720 #define _PWM3INTF_PWM3PRIF 0x01
4721 #define _PWM3INTF_DCIF 0x02
4722 #define _PWM3INTF_PWM3DCIF 0x02
4723 #define _PWM3INTF_PHIF 0x04
4724 #define _PWM3INTF_PWM3PHIF 0x04
4725 #define _PWM3INTF_OFIF 0x08
4726 #define _PWM3INTF_PWM3OFIF 0x08
4728 //==============================================================================
4731 //==============================================================================
4734 extern __at(0x0DBD) __sfr PWM3INTFLG
;
4752 unsigned PWM3PRIF
: 1;
4753 unsigned PWM3DCIF
: 1;
4754 unsigned PWM3PHIF
: 1;
4755 unsigned PWM3OFIF
: 1;
4761 } __PWM3INTFLGbits_t
;
4763 extern __at(0x0DBD) volatile __PWM3INTFLGbits_t PWM3INTFLGbits
;
4765 #define _PWM3INTFLG_PRIF 0x01
4766 #define _PWM3INTFLG_PWM3PRIF 0x01
4767 #define _PWM3INTFLG_DCIF 0x02
4768 #define _PWM3INTFLG_PWM3DCIF 0x02
4769 #define _PWM3INTFLG_PHIF 0x04
4770 #define _PWM3INTFLG_PWM3PHIF 0x04
4771 #define _PWM3INTFLG_OFIF 0x08
4772 #define _PWM3INTFLG_PWM3OFIF 0x08
4774 //==============================================================================
4777 //==============================================================================
4780 extern __at(0x0DBE) __sfr PWM3CLKCON
;
4786 unsigned PWM3CS0
: 1;
4787 unsigned PWM3CS1
: 1;
4790 unsigned PWM3PS0
: 1;
4791 unsigned PWM3PS1
: 1;
4792 unsigned PWM3PS2
: 1;
4810 unsigned PWM3CS
: 2;
4830 unsigned PWM3PS
: 3;
4833 } __PWM3CLKCONbits_t
;
4835 extern __at(0x0DBE) volatile __PWM3CLKCONbits_t PWM3CLKCONbits
;
4837 #define _PWM3CLKCON_PWM3CS0 0x01
4838 #define _PWM3CLKCON_CS0 0x01
4839 #define _PWM3CLKCON_PWM3CS1 0x02
4840 #define _PWM3CLKCON_CS1 0x02
4841 #define _PWM3CLKCON_PWM3PS0 0x10
4842 #define _PWM3CLKCON_PS0 0x10
4843 #define _PWM3CLKCON_PWM3PS1 0x20
4844 #define _PWM3CLKCON_PS1 0x20
4845 #define _PWM3CLKCON_PWM3PS2 0x40
4846 #define _PWM3CLKCON_PS2 0x40
4848 //==============================================================================
4851 //==============================================================================
4854 extern __at(0x0DBF) __sfr PWM3LDCON
;
4860 unsigned PWM3LDS0
: 1;
4861 unsigned PWM3LDS1
: 1;
4878 unsigned PWM3LDM
: 1;
4879 unsigned PWM3LD
: 1;
4890 unsigned PWM3LDS
: 2;
4893 } __PWM3LDCONbits_t
;
4895 extern __at(0x0DBF) volatile __PWM3LDCONbits_t PWM3LDCONbits
;
4897 #define _PWM3LDCON_PWM3LDS0 0x01
4898 #define _PWM3LDCON_LDS0 0x01
4899 #define _PWM3LDCON_PWM3LDS1 0x02
4900 #define _PWM3LDCON_LDS1 0x02
4901 #define _PWM3LDCON_LDT 0x40
4902 #define _PWM3LDCON_PWM3LDM 0x40
4903 #define _PWM3LDCON_LDA 0x80
4904 #define _PWM3LDCON_PWM3LD 0x80
4906 //==============================================================================
4909 //==============================================================================
4912 extern __at(0x0DC0) __sfr PWM3OFCON
;
4918 unsigned PWM3OFS0
: 1;
4919 unsigned PWM3OFS1
: 1;
4923 unsigned PWM3OFM0
: 1;
4924 unsigned PWM3OFM1
: 1;
4934 unsigned PWM3OFMC
: 1;
4948 unsigned PWM3OFS
: 2;
4962 unsigned PWM3OFM
: 2;
4965 } __PWM3OFCONbits_t
;
4967 extern __at(0x0DC0) volatile __PWM3OFCONbits_t PWM3OFCONbits
;
4969 #define _PWM3OFCON_PWM3OFS0 0x01
4970 #define _PWM3OFCON_OFS0 0x01
4971 #define _PWM3OFCON_PWM3OFS1 0x02
4972 #define _PWM3OFCON_OFS1 0x02
4973 #define _PWM3OFCON_OFO 0x10
4974 #define _PWM3OFCON_PWM3OFMC 0x10
4975 #define _PWM3OFCON_PWM3OFM0 0x20
4976 #define _PWM3OFCON_OFM0 0x20
4977 #define _PWM3OFCON_PWM3OFM1 0x40
4978 #define _PWM3OFCON_OFM1 0x40
4980 //==============================================================================
4982 extern __at(0x0DC1) __sfr PWM4PH
;
4984 //==============================================================================
4987 extern __at(0x0DC1) __sfr PWM4PHL
;
4991 unsigned PWM4PHL0
: 1;
4992 unsigned PWM4PHL1
: 1;
4993 unsigned PWM4PHL2
: 1;
4994 unsigned PWM4PHL3
: 1;
4995 unsigned PWM4PHL4
: 1;
4996 unsigned PWM4PHL5
: 1;
4997 unsigned PWM4PHL6
: 1;
4998 unsigned PWM4PHL7
: 1;
5001 extern __at(0x0DC1) volatile __PWM4PHLbits_t PWM4PHLbits
;
5003 #define _PWM4PHL0 0x01
5004 #define _PWM4PHL1 0x02
5005 #define _PWM4PHL2 0x04
5006 #define _PWM4PHL3 0x08
5007 #define _PWM4PHL4 0x10
5008 #define _PWM4PHL5 0x20
5009 #define _PWM4PHL6 0x40
5010 #define _PWM4PHL7 0x80
5012 //==============================================================================
5015 //==============================================================================
5018 extern __at(0x0DC2) __sfr PWM4PHH
;
5022 unsigned PWM4PHH0
: 1;
5023 unsigned PWM4PHH1
: 1;
5024 unsigned PWM4PHH2
: 1;
5025 unsigned PWM4PHH3
: 1;
5026 unsigned PWM4PHH4
: 1;
5027 unsigned PWM4PHH5
: 1;
5028 unsigned PWM4PHH6
: 1;
5029 unsigned PWM4PHH7
: 1;
5032 extern __at(0x0DC2) volatile __PWM4PHHbits_t PWM4PHHbits
;
5034 #define _PWM4PHH0 0x01
5035 #define _PWM4PHH1 0x02
5036 #define _PWM4PHH2 0x04
5037 #define _PWM4PHH3 0x08
5038 #define _PWM4PHH4 0x10
5039 #define _PWM4PHH5 0x20
5040 #define _PWM4PHH6 0x40
5041 #define _PWM4PHH7 0x80
5043 //==============================================================================
5045 extern __at(0x0DC3) __sfr PWM4DC
;
5047 //==============================================================================
5050 extern __at(0x0DC3) __sfr PWM4DCL
;
5054 unsigned PWM4DCL0
: 1;
5055 unsigned PWM4DCL1
: 1;
5056 unsigned PWM4DCL2
: 1;
5057 unsigned PWM4DCL3
: 1;
5058 unsigned PWM4DCL4
: 1;
5059 unsigned PWM4DCL5
: 1;
5060 unsigned PWM4DCL6
: 1;
5061 unsigned PWM4DCL7
: 1;
5064 extern __at(0x0DC3) volatile __PWM4DCLbits_t PWM4DCLbits
;
5066 #define _PWM4DCL0 0x01
5067 #define _PWM4DCL1 0x02
5068 #define _PWM4DCL2 0x04
5069 #define _PWM4DCL3 0x08
5070 #define _PWM4DCL4 0x10
5071 #define _PWM4DCL5 0x20
5072 #define _PWM4DCL6 0x40
5073 #define _PWM4DCL7 0x80
5075 //==============================================================================
5078 //==============================================================================
5081 extern __at(0x0DC4) __sfr PWM4DCH
;
5085 unsigned PWM4DCH0
: 1;
5086 unsigned PWM4DCH1
: 1;
5087 unsigned PWM4DCH2
: 1;
5088 unsigned PWM4DCH3
: 1;
5089 unsigned PWM4DCH4
: 1;
5090 unsigned PWM4DCH5
: 1;
5091 unsigned PWM4DCH6
: 1;
5092 unsigned PWM4DCH7
: 1;
5095 extern __at(0x0DC4) volatile __PWM4DCHbits_t PWM4DCHbits
;
5097 #define _PWM4DCH0 0x01
5098 #define _PWM4DCH1 0x02
5099 #define _PWM4DCH2 0x04
5100 #define _PWM4DCH3 0x08
5101 #define _PWM4DCH4 0x10
5102 #define _PWM4DCH5 0x20
5103 #define _PWM4DCH6 0x40
5104 #define _PWM4DCH7 0x80
5106 //==============================================================================
5108 extern __at(0x0DC5) __sfr PWM4PR
;
5110 //==============================================================================
5113 extern __at(0x0DC5) __sfr PWM4PRL
;
5117 unsigned PWM4PRL0
: 1;
5118 unsigned PWM4PRL1
: 1;
5119 unsigned PWM4PRL2
: 1;
5120 unsigned PWM4PRL3
: 1;
5121 unsigned PWM4PRL4
: 1;
5122 unsigned PWM4PRL5
: 1;
5123 unsigned PWM4PRL6
: 1;
5124 unsigned PWM4PRL7
: 1;
5127 extern __at(0x0DC5) volatile __PWM4PRLbits_t PWM4PRLbits
;
5129 #define _PWM4PRL0 0x01
5130 #define _PWM4PRL1 0x02
5131 #define _PWM4PRL2 0x04
5132 #define _PWM4PRL3 0x08
5133 #define _PWM4PRL4 0x10
5134 #define _PWM4PRL5 0x20
5135 #define _PWM4PRL6 0x40
5136 #define _PWM4PRL7 0x80
5138 //==============================================================================
5141 //==============================================================================
5144 extern __at(0x0DC6) __sfr PWM4PRH
;
5148 unsigned PWM4PRH0
: 1;
5149 unsigned PWM4PRH1
: 1;
5150 unsigned PWM4PRH2
: 1;
5151 unsigned PWM4PRH3
: 1;
5152 unsigned PWM4PRH4
: 1;
5153 unsigned PWM4PRH5
: 1;
5154 unsigned PWM4PRH6
: 1;
5155 unsigned PWM4PRH7
: 1;
5158 extern __at(0x0DC6) volatile __PWM4PRHbits_t PWM4PRHbits
;
5160 #define _PWM4PRH0 0x01
5161 #define _PWM4PRH1 0x02
5162 #define _PWM4PRH2 0x04
5163 #define _PWM4PRH3 0x08
5164 #define _PWM4PRH4 0x10
5165 #define _PWM4PRH5 0x20
5166 #define _PWM4PRH6 0x40
5167 #define _PWM4PRH7 0x80
5169 //==============================================================================
5171 extern __at(0x0DC7) __sfr PWM4OF
;
5173 //==============================================================================
5176 extern __at(0x0DC7) __sfr PWM4OFL
;
5180 unsigned PWM4OFL0
: 1;
5181 unsigned PWM4OFL1
: 1;
5182 unsigned PWM4OFL2
: 1;
5183 unsigned PWM4OFL3
: 1;
5184 unsigned PWM4OFL4
: 1;
5185 unsigned PWM4OFL5
: 1;
5186 unsigned PWM4OFL6
: 1;
5187 unsigned PWM4OFL7
: 1;
5190 extern __at(0x0DC7) volatile __PWM4OFLbits_t PWM4OFLbits
;
5192 #define _PWM4OFL0 0x01
5193 #define _PWM4OFL1 0x02
5194 #define _PWM4OFL2 0x04
5195 #define _PWM4OFL3 0x08
5196 #define _PWM4OFL4 0x10
5197 #define _PWM4OFL5 0x20
5198 #define _PWM4OFL6 0x40
5199 #define _PWM4OFL7 0x80
5201 //==============================================================================
5204 //==============================================================================
5207 extern __at(0x0DC8) __sfr PWM4OFH
;
5211 unsigned PWM4OFH0
: 1;
5212 unsigned PWM4OFH1
: 1;
5213 unsigned PWM4OFH2
: 1;
5214 unsigned PWM4OFH3
: 1;
5215 unsigned PWM4OFH4
: 1;
5216 unsigned PWM4OFH5
: 1;
5217 unsigned PWM4OFH6
: 1;
5218 unsigned PWM4OFH7
: 1;
5221 extern __at(0x0DC8) volatile __PWM4OFHbits_t PWM4OFHbits
;
5223 #define _PWM4OFH0 0x01
5224 #define _PWM4OFH1 0x02
5225 #define _PWM4OFH2 0x04
5226 #define _PWM4OFH3 0x08
5227 #define _PWM4OFH4 0x10
5228 #define _PWM4OFH5 0x20
5229 #define _PWM4OFH6 0x40
5230 #define _PWM4OFH7 0x80
5232 //==============================================================================
5234 extern __at(0x0DC9) __sfr PWM4TMR
;
5236 //==============================================================================
5239 extern __at(0x0DC9) __sfr PWM4TMRL
;
5243 unsigned PWM4TMRL0
: 1;
5244 unsigned PWM4TMRL1
: 1;
5245 unsigned PWM4TMRL2
: 1;
5246 unsigned PWM4TMRL3
: 1;
5247 unsigned PWM4TMRL4
: 1;
5248 unsigned PWM4TMRL5
: 1;
5249 unsigned PWM4TMRL6
: 1;
5250 unsigned PWM4TMRL7
: 1;
5253 extern __at(0x0DC9) volatile __PWM4TMRLbits_t PWM4TMRLbits
;
5255 #define _PWM4TMRL0 0x01
5256 #define _PWM4TMRL1 0x02
5257 #define _PWM4TMRL2 0x04
5258 #define _PWM4TMRL3 0x08
5259 #define _PWM4TMRL4 0x10
5260 #define _PWM4TMRL5 0x20
5261 #define _PWM4TMRL6 0x40
5262 #define _PWM4TMRL7 0x80
5264 //==============================================================================
5267 //==============================================================================
5270 extern __at(0x0DCA) __sfr PWM4TMRH
;
5274 unsigned PWM4TMRH0
: 1;
5275 unsigned PWM4TMRH1
: 1;
5276 unsigned PWM4TMRH2
: 1;
5277 unsigned PWM4TMRH3
: 1;
5278 unsigned PWM4TMRH4
: 1;
5279 unsigned PWM4TMRH5
: 1;
5280 unsigned PWM4TMRH6
: 1;
5281 unsigned PWM4TMRH7
: 1;
5284 extern __at(0x0DCA) volatile __PWM4TMRHbits_t PWM4TMRHbits
;
5286 #define _PWM4TMRH0 0x01
5287 #define _PWM4TMRH1 0x02
5288 #define _PWM4TMRH2 0x04
5289 #define _PWM4TMRH3 0x08
5290 #define _PWM4TMRH4 0x10
5291 #define _PWM4TMRH5 0x20
5292 #define _PWM4TMRH6 0x40
5293 #define _PWM4TMRH7 0x80
5295 //==============================================================================
5298 //==============================================================================
5301 extern __at(0x0DCB) __sfr PWM4CON
;
5309 unsigned PWM4MODE0
: 1;
5310 unsigned PWM4MODE1
: 1;
5323 unsigned PWM4POL
: 1;
5324 unsigned PWM4OUT
: 1;
5325 unsigned PWM4OE
: 1;
5326 unsigned PWM4EN
: 1;
5339 unsigned PWM4MODE
: 2;
5344 extern __at(0x0DCB) volatile __PWM4CONbits_t PWM4CONbits
;
5346 #define _PWM4CON_PWM4MODE0 0x04
5347 #define _PWM4CON_MODE0 0x04
5348 #define _PWM4CON_PWM4MODE1 0x08
5349 #define _PWM4CON_MODE1 0x08
5350 #define _PWM4CON_POL 0x10
5351 #define _PWM4CON_PWM4POL 0x10
5352 #define _PWM4CON_OUT 0x20
5353 #define _PWM4CON_PWM4OUT 0x20
5354 #define _PWM4CON_OE 0x40
5355 #define _PWM4CON_PWM4OE 0x40
5356 #define _PWM4CON_EN 0x80
5357 #define _PWM4CON_PWM4EN 0x80
5359 //==============================================================================
5362 //==============================================================================
5365 extern __at(0x0DCC) __sfr PWM4INTCON
;
5383 unsigned PWM4PRIE
: 1;
5384 unsigned PWM4DCIE
: 1;
5385 unsigned PWM4PHIE
: 1;
5386 unsigned PWM4OFIE
: 1;
5392 } __PWM4INTCONbits_t
;
5394 extern __at(0x0DCC) volatile __PWM4INTCONbits_t PWM4INTCONbits
;
5396 #define _PWM4INTCON_PRIE 0x01
5397 #define _PWM4INTCON_PWM4PRIE 0x01
5398 #define _PWM4INTCON_DCIE 0x02
5399 #define _PWM4INTCON_PWM4DCIE 0x02
5400 #define _PWM4INTCON_PHIE 0x04
5401 #define _PWM4INTCON_PWM4PHIE 0x04
5402 #define _PWM4INTCON_OFIE 0x08
5403 #define _PWM4INTCON_PWM4OFIE 0x08
5405 //==============================================================================
5408 //==============================================================================
5411 extern __at(0x0DCC) __sfr PWM4INTE
;
5429 unsigned PWM4PRIE
: 1;
5430 unsigned PWM4DCIE
: 1;
5431 unsigned PWM4PHIE
: 1;
5432 unsigned PWM4OFIE
: 1;
5440 extern __at(0x0DCC) volatile __PWM4INTEbits_t PWM4INTEbits
;
5442 #define _PWM4INTE_PRIE 0x01
5443 #define _PWM4INTE_PWM4PRIE 0x01
5444 #define _PWM4INTE_DCIE 0x02
5445 #define _PWM4INTE_PWM4DCIE 0x02
5446 #define _PWM4INTE_PHIE 0x04
5447 #define _PWM4INTE_PWM4PHIE 0x04
5448 #define _PWM4INTE_OFIE 0x08
5449 #define _PWM4INTE_PWM4OFIE 0x08
5451 //==============================================================================
5454 //==============================================================================
5457 extern __at(0x0DCD) __sfr PWM4INTF
;
5475 unsigned PWM4PRIF
: 1;
5476 unsigned PWM4DCIF
: 1;
5477 unsigned PWM4PHIF
: 1;
5478 unsigned PWM4OFIF
: 1;
5486 extern __at(0x0DCD) volatile __PWM4INTFbits_t PWM4INTFbits
;
5488 #define _PWM4INTF_PRIF 0x01
5489 #define _PWM4INTF_PWM4PRIF 0x01
5490 #define _PWM4INTF_DCIF 0x02
5491 #define _PWM4INTF_PWM4DCIF 0x02
5492 #define _PWM4INTF_PHIF 0x04
5493 #define _PWM4INTF_PWM4PHIF 0x04
5494 #define _PWM4INTF_OFIF 0x08
5495 #define _PWM4INTF_PWM4OFIF 0x08
5497 //==============================================================================
5500 //==============================================================================
5503 extern __at(0x0DCD) __sfr PWM4INTFLG
;
5521 unsigned PWM4PRIF
: 1;
5522 unsigned PWM4DCIF
: 1;
5523 unsigned PWM4PHIF
: 1;
5524 unsigned PWM4OFIF
: 1;
5530 } __PWM4INTFLGbits_t
;
5532 extern __at(0x0DCD) volatile __PWM4INTFLGbits_t PWM4INTFLGbits
;
5534 #define _PWM4INTFLG_PRIF 0x01
5535 #define _PWM4INTFLG_PWM4PRIF 0x01
5536 #define _PWM4INTFLG_DCIF 0x02
5537 #define _PWM4INTFLG_PWM4DCIF 0x02
5538 #define _PWM4INTFLG_PHIF 0x04
5539 #define _PWM4INTFLG_PWM4PHIF 0x04
5540 #define _PWM4INTFLG_OFIF 0x08
5541 #define _PWM4INTFLG_PWM4OFIF 0x08
5543 //==============================================================================
5546 //==============================================================================
5549 extern __at(0x0DCE) __sfr PWM4CLKCON
;
5555 unsigned PWM4CS0
: 1;
5556 unsigned PWM4CS1
: 1;
5559 unsigned PWM4PS0
: 1;
5560 unsigned PWM4PS1
: 1;
5561 unsigned PWM4PS2
: 1;
5585 unsigned PWM4CS
: 2;
5592 unsigned PWM4PS
: 3;
5602 } __PWM4CLKCONbits_t
;
5604 extern __at(0x0DCE) volatile __PWM4CLKCONbits_t PWM4CLKCONbits
;
5606 #define _PWM4CLKCON_PWM4CS0 0x01
5607 #define _PWM4CLKCON_CS0 0x01
5608 #define _PWM4CLKCON_PWM4CS1 0x02
5609 #define _PWM4CLKCON_CS1 0x02
5610 #define _PWM4CLKCON_PWM4PS0 0x10
5611 #define _PWM4CLKCON_PS0 0x10
5612 #define _PWM4CLKCON_PWM4PS1 0x20
5613 #define _PWM4CLKCON_PS1 0x20
5614 #define _PWM4CLKCON_PWM4PS2 0x40
5615 #define _PWM4CLKCON_PS2 0x40
5617 //==============================================================================
5620 //==============================================================================
5623 extern __at(0x0DCF) __sfr PWM4LDCON
;
5629 unsigned PWM4LDS0
: 1;
5630 unsigned PWM4LDS1
: 1;
5647 unsigned PWM4LDM
: 1;
5648 unsigned PWM4LD
: 1;
5653 unsigned PWM4LDS
: 2;
5662 } __PWM4LDCONbits_t
;
5664 extern __at(0x0DCF) volatile __PWM4LDCONbits_t PWM4LDCONbits
;
5666 #define _PWM4LDCON_PWM4LDS0 0x01
5667 #define _PWM4LDCON_LDS0 0x01
5668 #define _PWM4LDCON_PWM4LDS1 0x02
5669 #define _PWM4LDCON_LDS1 0x02
5670 #define _PWM4LDCON_LDT 0x40
5671 #define _PWM4LDCON_PWM4LDM 0x40
5672 #define _PWM4LDCON_LDA 0x80
5673 #define _PWM4LDCON_PWM4LD 0x80
5675 //==============================================================================
5678 //==============================================================================
5681 extern __at(0x0DD0) __sfr PWM4OFCON
;
5687 unsigned PWM4OFS0
: 1;
5688 unsigned PWM4OFS1
: 1;
5692 unsigned PWM4OFM0
: 1;
5693 unsigned PWM4OFM1
: 1;
5703 unsigned PWM4OFMC
: 1;
5717 unsigned PWM4OFS
: 2;
5731 unsigned PWM4OFM
: 2;
5734 } __PWM4OFCONbits_t
;
5736 extern __at(0x0DD0) volatile __PWM4OFCONbits_t PWM4OFCONbits
;
5738 #define _PWM4OFCON_PWM4OFS0 0x01
5739 #define _PWM4OFCON_OFS0 0x01
5740 #define _PWM4OFCON_PWM4OFS1 0x02
5741 #define _PWM4OFCON_OFS1 0x02
5742 #define _PWM4OFCON_OFO 0x10
5743 #define _PWM4OFCON_PWM4OFMC 0x10
5744 #define _PWM4OFCON_PWM4OFM0 0x20
5745 #define _PWM4OFCON_OFM0 0x20
5746 #define _PWM4OFCON_PWM4OFM1 0x40
5747 #define _PWM4OFCON_OFM1 0x40
5749 //==============================================================================
5752 //==============================================================================
5755 extern __at(0x0E0F) __sfr PPSLOCK
;
5759 unsigned PPSLOCKED
: 1;
5769 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits
;
5771 #define _PPSLOCKED 0x01
5773 //==============================================================================
5776 //==============================================================================
5779 extern __at(0x0E10) __sfr INTPPS
;
5785 unsigned INTPPS0
: 1;
5786 unsigned INTPPS1
: 1;
5787 unsigned INTPPS2
: 1;
5788 unsigned INTPPS3
: 1;
5789 unsigned INTPPS4
: 1;
5797 unsigned INTPPS
: 5;
5802 extern __at(0x0E10) volatile __INTPPSbits_t INTPPSbits
;
5804 #define _INTPPS0 0x01
5805 #define _INTPPS1 0x02
5806 #define _INTPPS2 0x04
5807 #define _INTPPS3 0x08
5808 #define _INTPPS4 0x10
5810 //==============================================================================
5813 //==============================================================================
5816 extern __at(0x0E11) __sfr T0CKIPPS
;
5822 unsigned T0CKIPPS0
: 1;
5823 unsigned T0CKIPPS1
: 1;
5824 unsigned T0CKIPPS2
: 1;
5825 unsigned T0CKIPPS3
: 1;
5826 unsigned T0CKIPPS4
: 1;
5834 unsigned T0CKIPPS
: 5;
5839 extern __at(0x0E11) volatile __T0CKIPPSbits_t T0CKIPPSbits
;
5841 #define _T0CKIPPS0 0x01
5842 #define _T0CKIPPS1 0x02
5843 #define _T0CKIPPS2 0x04
5844 #define _T0CKIPPS3 0x08
5845 #define _T0CKIPPS4 0x10
5847 //==============================================================================
5850 //==============================================================================
5853 extern __at(0x0E12) __sfr T1CKIPPS
;
5859 unsigned T1CKIPPS0
: 1;
5860 unsigned T1CKIPPS1
: 1;
5861 unsigned T1CKIPPS2
: 1;
5862 unsigned T1CKIPPS3
: 1;
5863 unsigned T1CKIPPS4
: 1;
5871 unsigned T1CKIPPS
: 5;
5876 extern __at(0x0E12) volatile __T1CKIPPSbits_t T1CKIPPSbits
;
5878 #define _T1CKIPPS0 0x01
5879 #define _T1CKIPPS1 0x02
5880 #define _T1CKIPPS2 0x04
5881 #define _T1CKIPPS3 0x08
5882 #define _T1CKIPPS4 0x10
5884 //==============================================================================
5887 //==============================================================================
5890 extern __at(0x0E13) __sfr T1GPPS
;
5896 unsigned T1GPPS0
: 1;
5897 unsigned T1GPPS1
: 1;
5898 unsigned T1GPPS2
: 1;
5899 unsigned T1GPPS3
: 1;
5900 unsigned T1GPPS4
: 1;
5908 unsigned T1GPPS
: 5;
5913 extern __at(0x0E13) volatile __T1GPPSbits_t T1GPPSbits
;
5915 #define _T1GPPS0 0x01
5916 #define _T1GPPS1 0x02
5917 #define _T1GPPS2 0x04
5918 #define _T1GPPS3 0x08
5919 #define _T1GPPS4 0x10
5921 //==============================================================================
5924 //==============================================================================
5927 extern __at(0x0E14) __sfr CWG1INPPS
;
5933 unsigned CWG1INPPS0
: 1;
5934 unsigned CWG1INPPS1
: 1;
5935 unsigned CWG1INPPS2
: 1;
5936 unsigned CWG1INPPS3
: 1;
5937 unsigned CWG1INPPS4
: 1;
5945 unsigned CWG1INPPS
: 5;
5948 } __CWG1INPPSbits_t
;
5950 extern __at(0x0E14) volatile __CWG1INPPSbits_t CWG1INPPSbits
;
5952 #define _CWG1INPPS0 0x01
5953 #define _CWG1INPPS1 0x02
5954 #define _CWG1INPPS2 0x04
5955 #define _CWG1INPPS3 0x08
5956 #define _CWG1INPPS4 0x10
5958 //==============================================================================
5961 //==============================================================================
5964 extern __at(0x0E15) __sfr RXPPS
;
5970 unsigned RXPPS0
: 1;
5971 unsigned RXPPS1
: 1;
5972 unsigned RXPPS2
: 1;
5973 unsigned RXPPS3
: 1;
5974 unsigned RXPPS4
: 1;
5987 extern __at(0x0E15) volatile __RXPPSbits_t RXPPSbits
;
5989 #define _RXPPS0 0x01
5990 #define _RXPPS1 0x02
5991 #define _RXPPS2 0x04
5992 #define _RXPPS3 0x08
5993 #define _RXPPS4 0x10
5995 //==============================================================================
5998 //==============================================================================
6001 extern __at(0x0E16) __sfr CKPPS
;
6007 unsigned CKPPS0
: 1;
6008 unsigned CKPPS1
: 1;
6009 unsigned CKPPS2
: 1;
6010 unsigned CKPPS3
: 1;
6011 unsigned CKPPS4
: 1;
6024 extern __at(0x0E16) volatile __CKPPSbits_t CKPPSbits
;
6026 #define _CKPPS0 0x01
6027 #define _CKPPS1 0x02
6028 #define _CKPPS2 0x04
6029 #define _CKPPS3 0x08
6030 #define _CKPPS4 0x10
6032 //==============================================================================
6035 //==============================================================================
6038 extern __at(0x0E17) __sfr ADCACTPPS
;
6044 unsigned ADCACTPPS0
: 1;
6045 unsigned ADCACTPPS1
: 1;
6046 unsigned ADCACTPPS2
: 1;
6047 unsigned ADCACTPPS3
: 1;
6048 unsigned ADCACTPPS4
: 1;
6056 unsigned ADCACTPPS
: 5;
6059 } __ADCACTPPSbits_t
;
6061 extern __at(0x0E17) volatile __ADCACTPPSbits_t ADCACTPPSbits
;
6063 #define _ADCACTPPS0 0x01
6064 #define _ADCACTPPS1 0x02
6065 #define _ADCACTPPS2 0x04
6066 #define _ADCACTPPS3 0x08
6067 #define _ADCACTPPS4 0x10
6069 //==============================================================================
6072 //==============================================================================
6075 extern __at(0x0E90) __sfr RA0PPS
;
6081 unsigned RA0PPS0
: 1;
6082 unsigned RA0PPS1
: 1;
6083 unsigned RA0PPS2
: 1;
6084 unsigned RA0PPS3
: 1;
6093 unsigned RA0PPS
: 4;
6098 extern __at(0x0E90) volatile __RA0PPSbits_t RA0PPSbits
;
6100 #define _RA0PPS0 0x01
6101 #define _RA0PPS1 0x02
6102 #define _RA0PPS2 0x04
6103 #define _RA0PPS3 0x08
6105 //==============================================================================
6108 //==============================================================================
6111 extern __at(0x0E91) __sfr RA1PPS
;
6117 unsigned RA1PPS0
: 1;
6118 unsigned RA1PPS1
: 1;
6119 unsigned RA1PPS2
: 1;
6120 unsigned RA1PPS3
: 1;
6129 unsigned RA1PPS
: 4;
6134 extern __at(0x0E91) volatile __RA1PPSbits_t RA1PPSbits
;
6136 #define _RA1PPS0 0x01
6137 #define _RA1PPS1 0x02
6138 #define _RA1PPS2 0x04
6139 #define _RA1PPS3 0x08
6141 //==============================================================================
6144 //==============================================================================
6147 extern __at(0x0E92) __sfr RA2PPS
;
6153 unsigned RA2PPS0
: 1;
6154 unsigned RA2PPS1
: 1;
6155 unsigned RA2PPS2
: 1;
6156 unsigned RA2PPS3
: 1;
6165 unsigned RA2PPS
: 4;
6170 extern __at(0x0E92) volatile __RA2PPSbits_t RA2PPSbits
;
6172 #define _RA2PPS0 0x01
6173 #define _RA2PPS1 0x02
6174 #define _RA2PPS2 0x04
6175 #define _RA2PPS3 0x08
6177 //==============================================================================
6180 //==============================================================================
6183 extern __at(0x0E94) __sfr RA4PPS
;
6189 unsigned RA4PPS0
: 1;
6190 unsigned RA4PPS1
: 1;
6191 unsigned RA4PPS2
: 1;
6192 unsigned RA4PPS3
: 1;
6201 unsigned RA4PPS
: 4;
6206 extern __at(0x0E94) volatile __RA4PPSbits_t RA4PPSbits
;
6208 #define _RA4PPS0 0x01
6209 #define _RA4PPS1 0x02
6210 #define _RA4PPS2 0x04
6211 #define _RA4PPS3 0x08
6213 //==============================================================================
6216 //==============================================================================
6219 extern __at(0x0E95) __sfr RA5PPS
;
6225 unsigned RA5PPS0
: 1;
6226 unsigned RA5PPS1
: 1;
6227 unsigned RA5PPS2
: 1;
6228 unsigned RA5PPS3
: 1;
6237 unsigned RA5PPS
: 4;
6242 extern __at(0x0E95) volatile __RA5PPSbits_t RA5PPSbits
;
6244 #define _RA5PPS0 0x01
6245 #define _RA5PPS1 0x02
6246 #define _RA5PPS2 0x04
6247 #define _RA5PPS3 0x08
6249 //==============================================================================
6252 //==============================================================================
6255 extern __at(0x0EA0) __sfr RC0PPS
;
6261 unsigned RC0PPS0
: 1;
6262 unsigned RC0PPS1
: 1;
6263 unsigned RC0PPS2
: 1;
6264 unsigned RC0PPS3
: 1;
6273 unsigned RC0PPS
: 4;
6278 extern __at(0x0EA0) volatile __RC0PPSbits_t RC0PPSbits
;
6280 #define _RC0PPS0 0x01
6281 #define _RC0PPS1 0x02
6282 #define _RC0PPS2 0x04
6283 #define _RC0PPS3 0x08
6285 //==============================================================================
6288 //==============================================================================
6291 extern __at(0x0EA1) __sfr RC1PPS
;
6297 unsigned RC1PPS0
: 1;
6298 unsigned RC1PPS1
: 1;
6299 unsigned RC1PPS2
: 1;
6300 unsigned RC1PPS3
: 1;
6309 unsigned RC1PPS
: 4;
6314 extern __at(0x0EA1) volatile __RC1PPSbits_t RC1PPSbits
;
6316 #define _RC1PPS0 0x01
6317 #define _RC1PPS1 0x02
6318 #define _RC1PPS2 0x04
6319 #define _RC1PPS3 0x08
6321 //==============================================================================
6324 //==============================================================================
6327 extern __at(0x0EA2) __sfr RC2PPS
;
6333 unsigned RC1PPS0
: 1;
6334 unsigned RC1PPS1
: 1;
6335 unsigned RC1PPS2
: 1;
6336 unsigned RC1PPS3
: 1;
6345 unsigned RC1PPS
: 4;
6350 extern __at(0x0EA2) volatile __RC2PPSbits_t RC2PPSbits
;
6352 #define _RC2PPS_RC1PPS0 0x01
6353 #define _RC2PPS_RC1PPS1 0x02
6354 #define _RC2PPS_RC1PPS2 0x04
6355 #define _RC2PPS_RC1PPS3 0x08
6357 //==============================================================================
6360 //==============================================================================
6363 extern __at(0x0EA3) __sfr RC3PPS
;
6369 unsigned RC3PPS0
: 1;
6370 unsigned RC3PPS1
: 1;
6371 unsigned RC3PPS2
: 1;
6372 unsigned RC3PPS3
: 1;
6381 unsigned RC3PPS
: 4;
6386 extern __at(0x0EA3) volatile __RC3PPSbits_t RC3PPSbits
;
6388 #define _RC3PPS0 0x01
6389 #define _RC3PPS1 0x02
6390 #define _RC3PPS2 0x04
6391 #define _RC3PPS3 0x08
6393 //==============================================================================
6396 //==============================================================================
6399 extern __at(0x0EA4) __sfr RC4PPS
;
6405 unsigned RC4PPS0
: 1;
6406 unsigned RC4PPS1
: 1;
6407 unsigned RC4PPS2
: 1;
6408 unsigned RC4PPS3
: 1;
6417 unsigned RC4PPS
: 4;
6422 extern __at(0x0EA4) volatile __RC4PPSbits_t RC4PPSbits
;
6424 #define _RC4PPS0 0x01
6425 #define _RC4PPS1 0x02
6426 #define _RC4PPS2 0x04
6427 #define _RC4PPS3 0x08
6429 //==============================================================================
6432 //==============================================================================
6435 extern __at(0x0EA5) __sfr RC5PPS
;
6441 unsigned RC5PPS0
: 1;
6442 unsigned RC5PPS1
: 1;
6443 unsigned RC5PPS2
: 1;
6444 unsigned RC5PPS3
: 1;
6453 unsigned RC5PPS
: 4;
6458 extern __at(0x0EA5) volatile __RC5PPSbits_t RC5PPSbits
;
6460 #define _RC5PPS0 0x01
6461 #define _RC5PPS1 0x02
6462 #define _RC5PPS2 0x04
6463 #define _RC5PPS3 0x08
6465 //==============================================================================
6468 //==============================================================================
6471 extern __at(0x0FE4) __sfr STATUS_SHAD
;
6475 unsigned C_SHAD
: 1;
6476 unsigned DC_SHAD
: 1;
6477 unsigned Z_SHAD
: 1;
6483 } __STATUS_SHADbits_t
;
6485 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
6487 #define _C_SHAD 0x01
6488 #define _DC_SHAD 0x02
6489 #define _Z_SHAD 0x04
6491 //==============================================================================
6493 extern __at(0x0FE5) __sfr WREG_SHAD
;
6494 extern __at(0x0FE6) __sfr BSR_SHAD
;
6495 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
6496 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
6497 extern __at(0x0FE8) __sfr FSR0_SHAD
;
6498 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
6499 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
6500 extern __at(0x0FEA) __sfr FSR1_SHAD
;
6501 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
6502 extern __at(0x0FED) __sfr STKPTR
;
6503 extern __at(0x0FEE) __sfr TOS
;
6504 extern __at(0x0FEE) __sfr TOSL
;
6505 extern __at(0x0FEF) __sfr TOSH
;
6507 //==============================================================================
6509 // Configuration Bits
6511 //==============================================================================
6513 #define _CONFIG1 0x8007
6514 #define _CONFIG2 0x8008
6516 //----------------------------- CONFIG1 Options -------------------------------
6518 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator; I/O function on CLKIN pin.
6519 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz); device clock supplied to CLKIN pin.
6520 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz); device clock supplied to CLKIN pin.
6521 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz); device clock supplied to CLKIN pin.
6522 #define _WDTE_OFF 0x3FE7 // WDT disabled.
6523 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
6524 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
6525 #define _WDTE_ON 0x3FFF // WDT enabled.
6526 #define _PWRTE_ON 0x3FDF // PWRT enabled.
6527 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
6528 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
6529 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
6530 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
6531 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
6532 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
6533 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
6534 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
6535 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
6536 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
6537 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
6539 //----------------------------- CONFIG2 Options -------------------------------
6541 #define _WRT_ALL 0x3FFC // 000h to FFFh write protected, no addresses may be modified by EECON control.
6542 #define _WRT_HALF 0x3FFD // 000h to 7FFh write protected, 800h to FFFh may be modified by EECON control.
6543 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to FFFh may be modified by EECON control.
6544 #define _WRT_OFF 0x3FFF // Write protection off.
6545 #define _PPS1WAY_OFF 0x3FFB // PPSLOCKED Bit Can Be Cleared & Set Repeatedly.
6546 #define _PPS1WAY_ON 0x3FFF // PPSLOCKED Bit Can Be Cleared & Set Once.
6547 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
6548 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
6549 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
6550 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
6551 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
6552 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
6553 #define _BORV_19 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
6554 #define _LPBOREN_ON 0x37FF // LPBOR is enabled.
6555 #define _LPBOREN_OFF 0x3FFF // LPBOR is disabled.
6556 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
6557 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
6558 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
6559 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
6561 //==============================================================================
6563 #define _DEVID1 0x8006
6565 #define _IDLOC0 0x8000
6566 #define _IDLOC1 0x8001
6567 #define _IDLOC2 0x8002
6568 #define _IDLOC3 0x8003
6570 //==============================================================================
6572 #ifndef NO_BIT_DEFINES
6574 #define ADCACTPPS0 ADCACTPPSbits.ADCACTPPS0 // bit 0
6575 #define ADCACTPPS1 ADCACTPPSbits.ADCACTPPS1 // bit 1
6576 #define ADCACTPPS2 ADCACTPPSbits.ADCACTPPS2 // bit 2
6577 #define ADCACTPPS3 ADCACTPPSbits.ADCACTPPS3 // bit 3
6578 #define ADCACTPPS4 ADCACTPPSbits.ADCACTPPS4 // bit 4
6580 #define ADON ADCON0bits.ADON // bit 0
6581 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
6582 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
6583 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
6584 #define NOT_DONE ADCON0bits.NOT_DONE // bit 1, shadows bit in ADCON0bits
6585 #define CHS0 ADCON0bits.CHS0 // bit 2
6586 #define CHS1 ADCON0bits.CHS1 // bit 3
6587 #define CHS2 ADCON0bits.CHS2 // bit 4
6588 #define CHS3 ADCON0bits.CHS3 // bit 5
6589 #define CHS4 ADCON0bits.CHS4 // bit 6
6591 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
6592 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
6593 #define ADCS0 ADCON1bits.ADCS0 // bit 4
6594 #define ADCS1 ADCON1bits.ADCS1 // bit 5
6595 #define ADCS2 ADCON1bits.ADCS2 // bit 6
6596 #define ADFM ADCON1bits.ADFM // bit 7
6598 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
6599 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
6600 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
6601 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
6603 #define ANSA0 ANSELAbits.ANSA0 // bit 0
6604 #define ANSA1 ANSELAbits.ANSA1 // bit 1
6605 #define ANSA2 ANSELAbits.ANSA2 // bit 2
6606 #define ANSA4 ANSELAbits.ANSA4 // bit 4
6608 #define ANSC0 ANSELCbits.ANSC0 // bit 0
6609 #define ANSC1 ANSELCbits.ANSC1 // bit 1
6610 #define ANSC2 ANSELCbits.ANSC2 // bit 2
6611 #define ANSC3 ANSELCbits.ANSC3 // bit 3
6613 #define ABDEN BAUDCONbits.ABDEN // bit 0
6614 #define WUE BAUDCONbits.WUE // bit 1
6615 #define BRG16 BAUDCONbits.BRG16 // bit 3
6616 #define SCKP BAUDCONbits.SCKP // bit 4
6617 #define RCIDL BAUDCONbits.RCIDL // bit 6
6618 #define ABDOVF BAUDCONbits.ABDOVF // bit 7
6620 #define BORRDY BORCONbits.BORRDY // bit 0
6621 #define BORFS BORCONbits.BORFS // bit 6
6622 #define SBOREN BORCONbits.SBOREN // bit 7
6624 #define BSR0 BSRbits.BSR0 // bit 0
6625 #define BSR1 BSRbits.BSR1 // bit 1
6626 #define BSR2 BSRbits.BSR2 // bit 2
6627 #define BSR3 BSRbits.BSR3 // bit 3
6628 #define BSR4 BSRbits.BSR4 // bit 4
6630 #define CKPPS0 CKPPSbits.CKPPS0 // bit 0
6631 #define CKPPS1 CKPPSbits.CKPPS1 // bit 1
6632 #define CKPPS2 CKPPSbits.CKPPS2 // bit 2
6633 #define CKPPS3 CKPPSbits.CKPPS3 // bit 3
6634 #define CKPPS4 CKPPSbits.CKPPS4 // bit 4
6636 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
6637 #define C1HYS CM1CON0bits.C1HYS // bit 1
6638 #define C1SP CM1CON0bits.C1SP // bit 2
6639 #define C1POL CM1CON0bits.C1POL // bit 4
6640 #define C1OE CM1CON0bits.C1OE // bit 5
6641 #define C1OUT CM1CON0bits.C1OUT // bit 6
6642 #define C1ON CM1CON0bits.C1ON // bit 7
6644 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
6645 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
6646 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
6647 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
6648 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
6649 #define C1INTN CM1CON1bits.C1INTN // bit 6
6650 #define C1INTP CM1CON1bits.C1INTP // bit 7
6652 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
6653 #define C2HYS CM2CON0bits.C2HYS // bit 1
6654 #define C2SP CM2CON0bits.C2SP // bit 2
6655 #define C2POL CM2CON0bits.C2POL // bit 4
6656 #define C2OE CM2CON0bits.C2OE // bit 5
6657 #define C2OUT CM2CON0bits.C2OUT // bit 6
6658 #define C2ON CM2CON0bits.C2ON // bit 7
6660 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
6661 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
6662 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
6663 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 4
6664 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 5
6665 #define C2INTN CM2CON1bits.C2INTN // bit 6
6666 #define C2INTP CM2CON1bits.C2INTP // bit 7
6668 #define MC1OUT CMOUTbits.MC1OUT // bit 0
6669 #define MC2OUT CMOUTbits.MC2OUT // bit 1
6671 #define G1CS0 CWG1CON0bits.G1CS0 // bit 0
6672 #define G1POLA CWG1CON0bits.G1POLA // bit 3
6673 #define G1POLB CWG1CON0bits.G1POLB // bit 4
6674 #define G1OEA CWG1CON0bits.G1OEA // bit 5
6675 #define G1OEB CWG1CON0bits.G1OEB // bit 6
6676 #define G1EN CWG1CON0bits.G1EN // bit 7
6678 #define G1IS0 CWG1CON1bits.G1IS0 // bit 0
6679 #define G1IS1 CWG1CON1bits.G1IS1 // bit 1
6680 #define G1IS2 CWG1CON1bits.G1IS2 // bit 2
6681 #define G1ASDLA0 CWG1CON1bits.G1ASDLA0 // bit 4
6682 #define G1ASDLA1 CWG1CON1bits.G1ASDLA1 // bit 5
6683 #define G1ASDLB0 CWG1CON1bits.G1ASDLB0 // bit 6
6684 #define G1ASDLB1 CWG1CON1bits.G1ASDLB1 // bit 7
6686 #define G1ASDSPPS CWG1CON2bits.G1ASDSPPS // bit 1
6687 #define G1ASDSC1 CWG1CON2bits.G1ASDSC1 // bit 2
6688 #define G1ASDSC2 CWG1CON2bits.G1ASDSC2 // bit 3
6689 #define G1ARSEN CWG1CON2bits.G1ARSEN // bit 6
6690 #define G1ASE CWG1CON2bits.G1ASE // bit 7
6692 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0
6693 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1
6694 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2
6695 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3
6696 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4
6697 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5
6699 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0
6700 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1
6701 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2
6702 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3
6703 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4
6704 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5
6706 #define CWG1INPPS0 CWG1INPPSbits.CWG1INPPS0 // bit 0
6707 #define CWG1INPPS1 CWG1INPPSbits.CWG1INPPS1 // bit 1
6708 #define CWG1INPPS2 CWG1INPPSbits.CWG1INPPS2 // bit 2
6709 #define CWG1INPPS3 CWG1INPPSbits.CWG1INPPS3 // bit 3
6710 #define CWG1INPPS4 CWG1INPPSbits.CWG1INPPS4 // bit 4
6712 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
6713 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
6714 #define DACOE DACCON0bits.DACOE // bit 5
6715 #define DACLPS DACCON0bits.DACLPS // bit 6
6716 #define DACEN DACCON0bits.DACEN // bit 7
6718 #define DACR0 DACCON1bits.DACR0 // bit 0
6719 #define DACR1 DACCON1bits.DACR1 // bit 1
6720 #define DACR2 DACCON1bits.DACR2 // bit 2
6721 #define DACR3 DACCON1bits.DACR3 // bit 3
6722 #define DACR4 DACCON1bits.DACR4 // bit 4
6724 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
6725 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
6726 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
6727 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
6728 #define TSRNG FVRCONbits.TSRNG // bit 4
6729 #define TSEN FVRCONbits.TSEN // bit 5
6730 #define FVRRDY FVRCONbits.FVRRDY // bit 6
6731 #define FVREN FVRCONbits.FVREN // bit 7
6733 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
6734 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
6735 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
6736 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
6737 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
6738 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
6740 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
6741 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
6742 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
6743 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
6744 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
6745 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
6747 #define IOCIF INTCONbits.IOCIF // bit 0
6748 #define INTF INTCONbits.INTF // bit 1
6749 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
6750 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
6751 #define IOCIE INTCONbits.IOCIE // bit 3
6752 #define INTE INTCONbits.INTE // bit 4
6753 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
6754 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
6755 #define PEIE INTCONbits.PEIE // bit 6
6756 #define GIE INTCONbits.GIE // bit 7
6758 #define INTPPS0 INTPPSbits.INTPPS0 // bit 0
6759 #define INTPPS1 INTPPSbits.INTPPS1 // bit 1
6760 #define INTPPS2 INTPPSbits.INTPPS2 // bit 2
6761 #define INTPPS3 INTPPSbits.INTPPS3 // bit 3
6762 #define INTPPS4 INTPPSbits.INTPPS4 // bit 4
6764 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
6765 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
6766 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
6767 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
6768 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
6769 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
6771 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
6772 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
6773 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
6774 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
6775 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
6776 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
6778 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
6779 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
6780 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
6781 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
6782 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
6783 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
6785 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
6786 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
6787 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
6788 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
6789 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
6790 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
6792 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
6793 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
6794 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
6795 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
6796 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
6797 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
6799 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
6800 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
6801 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
6802 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
6803 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
6804 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
6806 #define LATA0 LATAbits.LATA0 // bit 0
6807 #define LATA1 LATAbits.LATA1 // bit 1
6808 #define LATA2 LATAbits.LATA2 // bit 2
6809 #define LATA4 LATAbits.LATA4 // bit 4
6810 #define LATA5 LATAbits.LATA5 // bit 5
6812 #define LATC0 LATCbits.LATC0 // bit 0
6813 #define LATC1 LATCbits.LATC1 // bit 1
6814 #define LATC2 LATCbits.LATC2 // bit 2
6815 #define LATC3 LATCbits.LATC3 // bit 3
6816 #define LATC4 LATCbits.LATC4 // bit 4
6817 #define LATC5 LATCbits.LATC5 // bit 5
6819 #define ODA0 ODCONAbits.ODA0 // bit 0
6820 #define ODA1 ODCONAbits.ODA1 // bit 1
6821 #define ODA2 ODCONAbits.ODA2 // bit 2
6822 #define ODA4 ODCONAbits.ODA4 // bit 4
6823 #define ODA5 ODCONAbits.ODA5 // bit 5
6825 #define ODC0 ODCONCbits.ODC0 // bit 0
6826 #define ODC1 ODCONCbits.ODC1 // bit 1
6827 #define ODC2 ODCONCbits.ODC2 // bit 2
6828 #define ODC3 ODCONCbits.ODC3 // bit 3
6829 #define ODC4 ODCONCbits.ODC4 // bit 4
6830 #define ODC5 ODCONCbits.ODC5 // bit 5
6832 #define PS0 OPTION_REGbits.PS0 // bit 0
6833 #define PS1 OPTION_REGbits.PS1 // bit 1
6834 #define PS2 OPTION_REGbits.PS2 // bit 2
6835 #define PSA OPTION_REGbits.PSA // bit 3
6836 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
6837 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
6838 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
6839 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
6840 #define INTEDG OPTION_REGbits.INTEDG // bit 6
6841 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
6843 #define SCS0 OSCCONbits.SCS0 // bit 0
6844 #define SCS1 OSCCONbits.SCS1 // bit 1
6845 #define IRCF0 OSCCONbits.IRCF0 // bit 3
6846 #define IRCF1 OSCCONbits.IRCF1 // bit 4
6847 #define IRCF2 OSCCONbits.IRCF2 // bit 5
6848 #define IRCF3 OSCCONbits.IRCF3 // bit 6
6849 #define SPLLEN OSCCONbits.SPLLEN // bit 7
6851 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
6852 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
6853 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
6854 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
6855 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
6856 #define OSTS OSCSTATbits.OSTS // bit 5
6857 #define PLLR OSCSTATbits.PLLR // bit 6
6859 #define TUN0 OSCTUNEbits.TUN0 // bit 0
6860 #define TUN1 OSCTUNEbits.TUN1 // bit 1
6861 #define TUN2 OSCTUNEbits.TUN2 // bit 2
6862 #define TUN3 OSCTUNEbits.TUN3 // bit 3
6863 #define TUN4 OSCTUNEbits.TUN4 // bit 4
6864 #define TUN5 OSCTUNEbits.TUN5 // bit 5
6866 #define NOT_BOR PCONbits.NOT_BOR // bit 0
6867 #define NOT_POR PCONbits.NOT_POR // bit 1
6868 #define NOT_RI PCONbits.NOT_RI // bit 2
6869 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
6870 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
6871 #define STKUNF PCONbits.STKUNF // bit 6
6872 #define STKOVF PCONbits.STKOVF // bit 7
6874 #define TMR1IE PIE1bits.TMR1IE // bit 0
6875 #define TMR2IE PIE1bits.TMR2IE // bit 1
6876 #define TXIE PIE1bits.TXIE // bit 4
6877 #define RCIE PIE1bits.RCIE // bit 5
6878 #define ADIE PIE1bits.ADIE // bit 6
6879 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
6881 #define C1IE PIE2bits.C1IE // bit 5
6882 #define C2IE PIE2bits.C2IE // bit 6
6884 #define PWM1IE PIE3bits.PWM1IE // bit 4
6885 #define PWM2IE PIE3bits.PWM2IE // bit 5
6886 #define PWM3IE PIE3bits.PWM3IE // bit 6
6887 #define PWM4IE PIE3bits.PWM4IE // bit 7
6889 #define TMR1IF PIR1bits.TMR1IF // bit 0
6890 #define TMR2IF PIR1bits.TMR2IF // bit 1
6891 #define TXIF PIR1bits.TXIF // bit 4
6892 #define RCIF PIR1bits.RCIF // bit 5
6893 #define ADIF PIR1bits.ADIF // bit 6
6894 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
6896 #define C1IF PIR2bits.C1IF // bit 5
6897 #define C2IF PIR2bits.C2IF // bit 6
6899 #define PWM1IF PIR3bits.PWM1IF // bit 4
6900 #define PWM2IF PIR3bits.PWM2IF // bit 5
6901 #define PWM3IF PIR3bits.PWM3IF // bit 6
6902 #define PWM4IF PIR3bits.PWM4IF // bit 7
6904 #define RD PMCON1bits.RD // bit 0
6905 #define WR PMCON1bits.WR // bit 1
6906 #define WREN PMCON1bits.WREN // bit 2
6907 #define WRERR PMCON1bits.WRERR // bit 3
6908 #define FREE PMCON1bits.FREE // bit 4
6909 #define LWLO PMCON1bits.LWLO // bit 5
6910 #define CFGS PMCON1bits.CFGS // bit 6
6912 #define RA0 PORTAbits.RA0 // bit 0
6913 #define RA1 PORTAbits.RA1 // bit 1
6914 #define RA2 PORTAbits.RA2 // bit 2
6915 #define RA3 PORTAbits.RA3 // bit 3
6916 #define RA4 PORTAbits.RA4 // bit 4
6917 #define RA5 PORTAbits.RA5 // bit 5
6919 #define RC0 PORTCbits.RC0 // bit 0
6920 #define RC1 PORTCbits.RC1 // bit 1
6921 #define RC2 PORTCbits.RC2 // bit 2
6922 #define RC3 PORTCbits.RC3 // bit 3
6923 #define RC4 PORTCbits.RC4 // bit 4
6924 #define RC5 PORTCbits.RC5 // bit 5
6926 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
6928 #define PWM1MODE0 PWM1CONbits.PWM1MODE0 // bit 2, shadows bit in PWM1CONbits
6929 #define MODE0 PWM1CONbits.MODE0 // bit 2, shadows bit in PWM1CONbits
6930 #define PWM1MODE1 PWM1CONbits.PWM1MODE1 // bit 3, shadows bit in PWM1CONbits
6931 #define MODE1 PWM1CONbits.MODE1 // bit 3, shadows bit in PWM1CONbits
6932 #define POL PWM1CONbits.POL // bit 4, shadows bit in PWM1CONbits
6933 #define PWM1POL PWM1CONbits.PWM1POL // bit 4, shadows bit in PWM1CONbits
6934 #define OUT PWM1CONbits.OUT // bit 5, shadows bit in PWM1CONbits
6935 #define PWM1OUT PWM1CONbits.PWM1OUT // bit 5, shadows bit in PWM1CONbits
6936 #define OE PWM1CONbits.OE // bit 6, shadows bit in PWM1CONbits
6937 #define PWM1OE PWM1CONbits.PWM1OE // bit 6, shadows bit in PWM1CONbits
6938 #define EN PWM1CONbits.EN // bit 7, shadows bit in PWM1CONbits
6939 #define PWM1EN PWM1CONbits.PWM1EN // bit 7, shadows bit in PWM1CONbits
6941 #define PWM1DCH0 PWM1DCHbits.PWM1DCH0 // bit 0
6942 #define PWM1DCH1 PWM1DCHbits.PWM1DCH1 // bit 1
6943 #define PWM1DCH2 PWM1DCHbits.PWM1DCH2 // bit 2
6944 #define PWM1DCH3 PWM1DCHbits.PWM1DCH3 // bit 3
6945 #define PWM1DCH4 PWM1DCHbits.PWM1DCH4 // bit 4
6946 #define PWM1DCH5 PWM1DCHbits.PWM1DCH5 // bit 5
6947 #define PWM1DCH6 PWM1DCHbits.PWM1DCH6 // bit 6
6948 #define PWM1DCH7 PWM1DCHbits.PWM1DCH7 // bit 7
6950 #define PWM1DCL0 PWM1DCLbits.PWM1DCL0 // bit 0
6951 #define PWM1DCL1 PWM1DCLbits.PWM1DCL1 // bit 1
6952 #define PWM1DCL2 PWM1DCLbits.PWM1DCL2 // bit 2
6953 #define PWM1DCL3 PWM1DCLbits.PWM1DCL3 // bit 3
6954 #define PWM1DCL4 PWM1DCLbits.PWM1DCL4 // bit 4
6955 #define PWM1DCL5 PWM1DCLbits.PWM1DCL5 // bit 5
6956 #define PWM1DCL6 PWM1DCLbits.PWM1DCL6 // bit 6
6957 #define PWM1DCL7 PWM1DCLbits.PWM1DCL7 // bit 7
6959 #define PRIE PWM1INTCONbits.PRIE // bit 0, shadows bit in PWM1INTCONbits
6960 #define PWM1PRIE PWM1INTCONbits.PWM1PRIE // bit 0, shadows bit in PWM1INTCONbits
6961 #define DCIE PWM1INTCONbits.DCIE // bit 1, shadows bit in PWM1INTCONbits
6962 #define PWM1DCIE PWM1INTCONbits.PWM1DCIE // bit 1, shadows bit in PWM1INTCONbits
6963 #define PHIE PWM1INTCONbits.PHIE // bit 2, shadows bit in PWM1INTCONbits
6964 #define PWM1PHIE PWM1INTCONbits.PWM1PHIE // bit 2, shadows bit in PWM1INTCONbits
6965 #define OFIE PWM1INTCONbits.OFIE // bit 3, shadows bit in PWM1INTCONbits
6966 #define PWM1OFIE PWM1INTCONbits.PWM1OFIE // bit 3, shadows bit in PWM1INTCONbits
6968 #define PRIF PWM1INTFbits.PRIF // bit 0, shadows bit in PWM1INTFbits
6969 #define PWM1PRIF PWM1INTFbits.PWM1PRIF // bit 0, shadows bit in PWM1INTFbits
6970 #define DCIF PWM1INTFbits.DCIF // bit 1, shadows bit in PWM1INTFbits
6971 #define PWM1DCIF PWM1INTFbits.PWM1DCIF // bit 1, shadows bit in PWM1INTFbits
6972 #define PHIF PWM1INTFbits.PHIF // bit 2, shadows bit in PWM1INTFbits
6973 #define PWM1PHIF PWM1INTFbits.PWM1PHIF // bit 2, shadows bit in PWM1INTFbits
6974 #define OFIF PWM1INTFbits.OFIF // bit 3, shadows bit in PWM1INTFbits
6975 #define PWM1OFIF PWM1INTFbits.PWM1OFIF // bit 3, shadows bit in PWM1INTFbits
6977 #define PWM1LDS0 PWM1LDCONbits.PWM1LDS0 // bit 0, shadows bit in PWM1LDCONbits
6978 #define LDS0 PWM1LDCONbits.LDS0 // bit 0, shadows bit in PWM1LDCONbits
6979 #define PWM1LDS1 PWM1LDCONbits.PWM1LDS1 // bit 1, shadows bit in PWM1LDCONbits
6980 #define LDS1 PWM1LDCONbits.LDS1 // bit 1, shadows bit in PWM1LDCONbits
6981 #define LDT PWM1LDCONbits.LDT // bit 6, shadows bit in PWM1LDCONbits
6982 #define PWM1LDM PWM1LDCONbits.PWM1LDM // bit 6, shadows bit in PWM1LDCONbits
6983 #define LDA PWM1LDCONbits.LDA // bit 7, shadows bit in PWM1LDCONbits
6984 #define PWM1LD PWM1LDCONbits.PWM1LD // bit 7, shadows bit in PWM1LDCONbits
6986 #define PWM1OFS0 PWM1OFCONbits.PWM1OFS0 // bit 0, shadows bit in PWM1OFCONbits
6987 #define OFS0 PWM1OFCONbits.OFS0 // bit 0, shadows bit in PWM1OFCONbits
6988 #define PWM1OFS1 PWM1OFCONbits.PWM1OFS1 // bit 1, shadows bit in PWM1OFCONbits
6989 #define OFS1 PWM1OFCONbits.OFS1 // bit 1, shadows bit in PWM1OFCONbits
6990 #define OFO PWM1OFCONbits.OFO // bit 4, shadows bit in PWM1OFCONbits
6991 #define PWM1OFMC PWM1OFCONbits.PWM1OFMC // bit 4, shadows bit in PWM1OFCONbits
6992 #define PWM1OFM0 PWM1OFCONbits.PWM1OFM0 // bit 5, shadows bit in PWM1OFCONbits
6993 #define OFM0 PWM1OFCONbits.OFM0 // bit 5, shadows bit in PWM1OFCONbits
6994 #define PWM1OFM1 PWM1OFCONbits.PWM1OFM1 // bit 6, shadows bit in PWM1OFCONbits
6995 #define OFM1 PWM1OFCONbits.OFM1 // bit 6, shadows bit in PWM1OFCONbits
6997 #define PWM1OFH0 PWM1OFHbits.PWM1OFH0 // bit 0
6998 #define PWM1OFH1 PWM1OFHbits.PWM1OFH1 // bit 1
6999 #define PWM1OFH2 PWM1OFHbits.PWM1OFH2 // bit 2
7000 #define PWM1OFH3 PWM1OFHbits.PWM1OFH3 // bit 3
7001 #define PWM1OFH4 PWM1OFHbits.PWM1OFH4 // bit 4
7002 #define PWM1OFH5 PWM1OFHbits.PWM1OFH5 // bit 5
7003 #define PWM1OFH6 PWM1OFHbits.PWM1OFH6 // bit 6
7004 #define PWM1OFH7 PWM1OFHbits.PWM1OFH7 // bit 7
7006 #define PWM1OFL0 PWM1OFLbits.PWM1OFL0 // bit 0
7007 #define PWM1OFL1 PWM1OFLbits.PWM1OFL1 // bit 1
7008 #define PWM1OFL2 PWM1OFLbits.PWM1OFL2 // bit 2
7009 #define PWM1OFL3 PWM1OFLbits.PWM1OFL3 // bit 3
7010 #define PWM1OFL4 PWM1OFLbits.PWM1OFL4 // bit 4
7011 #define PWM1OFL5 PWM1OFLbits.PWM1OFL5 // bit 5
7012 #define PWM1OFL6 PWM1OFLbits.PWM1OFL6 // bit 6
7013 #define PWM1OFL7 PWM1OFLbits.PWM1OFL7 // bit 7
7015 #define PWM1PHH0 PWM1PHHbits.PWM1PHH0 // bit 0
7016 #define PWM1PHH1 PWM1PHHbits.PWM1PHH1 // bit 1
7017 #define PWM1PHH2 PWM1PHHbits.PWM1PHH2 // bit 2
7018 #define PWM1PHH3 PWM1PHHbits.PWM1PHH3 // bit 3
7019 #define PWM1PHH4 PWM1PHHbits.PWM1PHH4 // bit 4
7020 #define PWM1PHH5 PWM1PHHbits.PWM1PHH5 // bit 5
7021 #define PWM1PHH6 PWM1PHHbits.PWM1PHH6 // bit 6
7022 #define PWM1PHH7 PWM1PHHbits.PWM1PHH7 // bit 7
7024 #define PWM1PHL0 PWM1PHLbits.PWM1PHL0 // bit 0
7025 #define PWM1PHL1 PWM1PHLbits.PWM1PHL1 // bit 1
7026 #define PWM1PHL2 PWM1PHLbits.PWM1PHL2 // bit 2
7027 #define PWM1PHL3 PWM1PHLbits.PWM1PHL3 // bit 3
7028 #define PWM1PHL4 PWM1PHLbits.PWM1PHL4 // bit 4
7029 #define PWM1PHL5 PWM1PHLbits.PWM1PHL5 // bit 5
7030 #define PWM1PHL6 PWM1PHLbits.PWM1PHL6 // bit 6
7031 #define PWM1PHL7 PWM1PHLbits.PWM1PHL7 // bit 7
7033 #define PWM1PRH0 PWM1PRHbits.PWM1PRH0 // bit 0
7034 #define PWM1PRH1 PWM1PRHbits.PWM1PRH1 // bit 1
7035 #define PWM1PRH2 PWM1PRHbits.PWM1PRH2 // bit 2
7036 #define PWM1PRH3 PWM1PRHbits.PWM1PRH3 // bit 3
7037 #define PWM1PRH4 PWM1PRHbits.PWM1PRH4 // bit 4
7038 #define PWM1PRH5 PWM1PRHbits.PWM1PRH5 // bit 5
7039 #define PWM1PRH6 PWM1PRHbits.PWM1PRH6 // bit 6
7040 #define PWM1PRH7 PWM1PRHbits.PWM1PRH7 // bit 7
7042 #define PWM1PRL0 PWM1PRLbits.PWM1PRL0 // bit 0
7043 #define PWM1PRL1 PWM1PRLbits.PWM1PRL1 // bit 1
7044 #define PWM1PRL2 PWM1PRLbits.PWM1PRL2 // bit 2
7045 #define PWM1PRL3 PWM1PRLbits.PWM1PRL3 // bit 3
7046 #define PWM1PRL4 PWM1PRLbits.PWM1PRL4 // bit 4
7047 #define PWM1PRL5 PWM1PRLbits.PWM1PRL5 // bit 5
7048 #define PWM1PRL6 PWM1PRLbits.PWM1PRL6 // bit 6
7049 #define PWM1PRL7 PWM1PRLbits.PWM1PRL7 // bit 7
7051 #define PWM1TMRH0 PWM1TMRHbits.PWM1TMRH0 // bit 0
7052 #define PWM1TMRH1 PWM1TMRHbits.PWM1TMRH1 // bit 1
7053 #define PWM1TMRH2 PWM1TMRHbits.PWM1TMRH2 // bit 2
7054 #define PWM1TMRH3 PWM1TMRHbits.PWM1TMRH3 // bit 3
7055 #define PWM1TMRH4 PWM1TMRHbits.PWM1TMRH4 // bit 4
7056 #define PWM1TMRH5 PWM1TMRHbits.PWM1TMRH5 // bit 5
7057 #define PWM1TMRH6 PWM1TMRHbits.PWM1TMRH6 // bit 6
7058 #define PWM1TMRH7 PWM1TMRHbits.PWM1TMRH7 // bit 7
7060 #define PWM1TMRL0 PWM1TMRLbits.PWM1TMRL0 // bit 0
7061 #define PWM1TMRL1 PWM1TMRLbits.PWM1TMRL1 // bit 1
7062 #define PWM1TMRL2 PWM1TMRLbits.PWM1TMRL2 // bit 2
7063 #define PWM1TMRL3 PWM1TMRLbits.PWM1TMRL3 // bit 3
7064 #define PWM1TMRL4 PWM1TMRLbits.PWM1TMRL4 // bit 4
7065 #define PWM1TMRL5 PWM1TMRLbits.PWM1TMRL5 // bit 5
7066 #define PWM1TMRL6 PWM1TMRLbits.PWM1TMRL6 // bit 6
7067 #define PWM1TMRL7 PWM1TMRLbits.PWM1TMRL7 // bit 7
7069 #define PWM2DCH0 PWM2DCHbits.PWM2DCH0 // bit 0
7070 #define PWM2DCH1 PWM2DCHbits.PWM2DCH1 // bit 1
7071 #define PWM2DCH2 PWM2DCHbits.PWM2DCH2 // bit 2
7072 #define PWM2DCH3 PWM2DCHbits.PWM2DCH3 // bit 3
7073 #define PWM2DCH4 PWM2DCHbits.PWM2DCH4 // bit 4
7074 #define PWM2DCH5 PWM2DCHbits.PWM2DCH5 // bit 5
7075 #define PWM2DCH6 PWM2DCHbits.PWM2DCH6 // bit 6
7076 #define PWM2DCH7 PWM2DCHbits.PWM2DCH7 // bit 7
7078 #define PWM2DCL0 PWM2DCLbits.PWM2DCL0 // bit 0
7079 #define PWM2DCL1 PWM2DCLbits.PWM2DCL1 // bit 1
7080 #define PWM2DCL2 PWM2DCLbits.PWM2DCL2 // bit 2
7081 #define PWM2DCL3 PWM2DCLbits.PWM2DCL3 // bit 3
7082 #define PWM2DCL4 PWM2DCLbits.PWM2DCL4 // bit 4
7083 #define PWM2DCL5 PWM2DCLbits.PWM2DCL5 // bit 5
7084 #define PWM2DCL6 PWM2DCLbits.PWM2DCL6 // bit 6
7085 #define PWM2DCL7 PWM2DCLbits.PWM2DCL7 // bit 7
7087 #define PWM2OFH0 PWM2OFHbits.PWM2OFH0 // bit 0
7088 #define PWM2OFH1 PWM2OFHbits.PWM2OFH1 // bit 1
7089 #define PWM2OFH2 PWM2OFHbits.PWM2OFH2 // bit 2
7090 #define PWM2OFH3 PWM2OFHbits.PWM2OFH3 // bit 3
7091 #define PWM2OFH4 PWM2OFHbits.PWM2OFH4 // bit 4
7092 #define PWM2OFH5 PWM2OFHbits.PWM2OFH5 // bit 5
7093 #define PWM2OFH6 PWM2OFHbits.PWM2OFH6 // bit 6
7094 #define PWM2OFH7 PWM2OFHbits.PWM2OFH7 // bit 7
7096 #define PWM2OFL0 PWM2OFLbits.PWM2OFL0 // bit 0
7097 #define PWM2OFL1 PWM2OFLbits.PWM2OFL1 // bit 1
7098 #define PWM2OFL2 PWM2OFLbits.PWM2OFL2 // bit 2
7099 #define PWM2OFL3 PWM2OFLbits.PWM2OFL3 // bit 3
7100 #define PWM2OFL4 PWM2OFLbits.PWM2OFL4 // bit 4
7101 #define PWM2OFL5 PWM2OFLbits.PWM2OFL5 // bit 5
7102 #define PWM2OFL6 PWM2OFLbits.PWM2OFL6 // bit 6
7103 #define PWM2OFL7 PWM2OFLbits.PWM2OFL7 // bit 7
7105 #define PWM2PHH0 PWM2PHHbits.PWM2PHH0 // bit 0
7106 #define PWM2PHH1 PWM2PHHbits.PWM2PHH1 // bit 1
7107 #define PWM2PHH2 PWM2PHHbits.PWM2PHH2 // bit 2
7108 #define PWM2PHH3 PWM2PHHbits.PWM2PHH3 // bit 3
7109 #define PWM2PHH4 PWM2PHHbits.PWM2PHH4 // bit 4
7110 #define PWM2PHH5 PWM2PHHbits.PWM2PHH5 // bit 5
7111 #define PWM2PHH6 PWM2PHHbits.PWM2PHH6 // bit 6
7112 #define PWM2PHH7 PWM2PHHbits.PWM2PHH7 // bit 7
7114 #define PWM2PHL0 PWM2PHLbits.PWM2PHL0 // bit 0
7115 #define PWM2PHL1 PWM2PHLbits.PWM2PHL1 // bit 1
7116 #define PWM2PHL2 PWM2PHLbits.PWM2PHL2 // bit 2
7117 #define PWM2PHL3 PWM2PHLbits.PWM2PHL3 // bit 3
7118 #define PWM2PHL4 PWM2PHLbits.PWM2PHL4 // bit 4
7119 #define PWM2PHL5 PWM2PHLbits.PWM2PHL5 // bit 5
7120 #define PWM2PHL6 PWM2PHLbits.PWM2PHL6 // bit 6
7121 #define PWM2PHL7 PWM2PHLbits.PWM2PHL7 // bit 7
7123 #define PWM2PRH0 PWM2PRHbits.PWM2PRH0 // bit 0
7124 #define PWM2PRH1 PWM2PRHbits.PWM2PRH1 // bit 1
7125 #define PWM2PRH2 PWM2PRHbits.PWM2PRH2 // bit 2
7126 #define PWM2PRH3 PWM2PRHbits.PWM2PRH3 // bit 3
7127 #define PWM2PRH4 PWM2PRHbits.PWM2PRH4 // bit 4
7128 #define PWM2PRH5 PWM2PRHbits.PWM2PRH5 // bit 5
7129 #define PWM2PRH6 PWM2PRHbits.PWM2PRH6 // bit 6
7130 #define PWM2PRH7 PWM2PRHbits.PWM2PRH7 // bit 7
7132 #define PWM2PRL0 PWM2PRLbits.PWM2PRL0 // bit 0
7133 #define PWM2PRL1 PWM2PRLbits.PWM2PRL1 // bit 1
7134 #define PWM2PRL2 PWM2PRLbits.PWM2PRL2 // bit 2
7135 #define PWM2PRL3 PWM2PRLbits.PWM2PRL3 // bit 3
7136 #define PWM2PRL4 PWM2PRLbits.PWM2PRL4 // bit 4
7137 #define PWM2PRL5 PWM2PRLbits.PWM2PRL5 // bit 5
7138 #define PWM2PRL6 PWM2PRLbits.PWM2PRL6 // bit 6
7139 #define PWM2PRL7 PWM2PRLbits.PWM2PRL7 // bit 7
7141 #define PWM2TMRH0 PWM2TMRHbits.PWM2TMRH0 // bit 0
7142 #define PWM2TMRH1 PWM2TMRHbits.PWM2TMRH1 // bit 1
7143 #define PWM2TMRH2 PWM2TMRHbits.PWM2TMRH2 // bit 2
7144 #define PWM2TMRH3 PWM2TMRHbits.PWM2TMRH3 // bit 3
7145 #define PWM2TMRH4 PWM2TMRHbits.PWM2TMRH4 // bit 4
7146 #define PWM2TMRH5 PWM2TMRHbits.PWM2TMRH5 // bit 5
7147 #define PWM2TMRH6 PWM2TMRHbits.PWM2TMRH6 // bit 6
7148 #define PWM2TMRH7 PWM2TMRHbits.PWM2TMRH7 // bit 7
7150 #define PWM2TMRL0 PWM2TMRLbits.PWM2TMRL0 // bit 0
7151 #define PWM2TMRL1 PWM2TMRLbits.PWM2TMRL1 // bit 1
7152 #define PWM2TMRL2 PWM2TMRLbits.PWM2TMRL2 // bit 2
7153 #define PWM2TMRL3 PWM2TMRLbits.PWM2TMRL3 // bit 3
7154 #define PWM2TMRL4 PWM2TMRLbits.PWM2TMRL4 // bit 4
7155 #define PWM2TMRL5 PWM2TMRLbits.PWM2TMRL5 // bit 5
7156 #define PWM2TMRL6 PWM2TMRLbits.PWM2TMRL6 // bit 6
7157 #define PWM2TMRL7 PWM2TMRLbits.PWM2TMRL7 // bit 7
7159 #define PWM3DCH0 PWM3DCHbits.PWM3DCH0 // bit 0
7160 #define PWM3DCH1 PWM3DCHbits.PWM3DCH1 // bit 1
7161 #define PWM3DCH2 PWM3DCHbits.PWM3DCH2 // bit 2
7162 #define PWM3DCH3 PWM3DCHbits.PWM3DCH3 // bit 3
7163 #define PWM3DCH4 PWM3DCHbits.PWM3DCH4 // bit 4
7164 #define PWM3DCH5 PWM3DCHbits.PWM3DCH5 // bit 5
7165 #define PWM3DCH6 PWM3DCHbits.PWM3DCH6 // bit 6
7166 #define PWM3DCH7 PWM3DCHbits.PWM3DCH7 // bit 7
7168 #define PWM3DCL0 PWM3DCLbits.PWM3DCL0 // bit 0
7169 #define PWM3DCL1 PWM3DCLbits.PWM3DCL1 // bit 1
7170 #define PWM3DCL2 PWM3DCLbits.PWM3DCL2 // bit 2
7171 #define PWM3DCL3 PWM3DCLbits.PWM3DCL3 // bit 3
7172 #define PWM3DCL4 PWM3DCLbits.PWM3DCL4 // bit 4
7173 #define PWM3DCL5 PWM3DCLbits.PWM3DCL5 // bit 5
7174 #define PWM3DCL6 PWM3DCLbits.PWM3DCL6 // bit 6
7175 #define PWM3DCL7 PWM3DCLbits.PWM3DCL7 // bit 7
7177 #define PWM3OFH0 PWM3OFHbits.PWM3OFH0 // bit 0
7178 #define PWM3OFH1 PWM3OFHbits.PWM3OFH1 // bit 1
7179 #define PWM3OFH2 PWM3OFHbits.PWM3OFH2 // bit 2
7180 #define PWM3OFH3 PWM3OFHbits.PWM3OFH3 // bit 3
7181 #define PWM3OFH4 PWM3OFHbits.PWM3OFH4 // bit 4
7182 #define PWM3OFH5 PWM3OFHbits.PWM3OFH5 // bit 5
7183 #define PWM3OFH6 PWM3OFHbits.PWM3OFH6 // bit 6
7184 #define PWM3OFH7 PWM3OFHbits.PWM3OFH7 // bit 7
7186 #define PWM3OFL0 PWM3OFLbits.PWM3OFL0 // bit 0
7187 #define PWM3OFL1 PWM3OFLbits.PWM3OFL1 // bit 1
7188 #define PWM3OFL2 PWM3OFLbits.PWM3OFL2 // bit 2
7189 #define PWM3OFL3 PWM3OFLbits.PWM3OFL3 // bit 3
7190 #define PWM3OFL4 PWM3OFLbits.PWM3OFL4 // bit 4
7191 #define PWM3OFL5 PWM3OFLbits.PWM3OFL5 // bit 5
7192 #define PWM3OFL6 PWM3OFLbits.PWM3OFL6 // bit 6
7193 #define PWM3OFL7 PWM3OFLbits.PWM3OFL7 // bit 7
7195 #define PWM3PHH0 PWM3PHHbits.PWM3PHH0 // bit 0
7196 #define PWM3PHH1 PWM3PHHbits.PWM3PHH1 // bit 1
7197 #define PWM3PHH2 PWM3PHHbits.PWM3PHH2 // bit 2
7198 #define PWM3PHH3 PWM3PHHbits.PWM3PHH3 // bit 3
7199 #define PWM3PHH4 PWM3PHHbits.PWM3PHH4 // bit 4
7200 #define PWM3PHH5 PWM3PHHbits.PWM3PHH5 // bit 5
7201 #define PWM3PHH6 PWM3PHHbits.PWM3PHH6 // bit 6
7202 #define PWM3PHH7 PWM3PHHbits.PWM3PHH7 // bit 7
7204 #define PWM3PHL0 PWM3PHLbits.PWM3PHL0 // bit 0
7205 #define PWM3PHL1 PWM3PHLbits.PWM3PHL1 // bit 1
7206 #define PWM3PHL2 PWM3PHLbits.PWM3PHL2 // bit 2
7207 #define PWM3PHL3 PWM3PHLbits.PWM3PHL3 // bit 3
7208 #define PWM3PHL4 PWM3PHLbits.PWM3PHL4 // bit 4
7209 #define PWM3PHL5 PWM3PHLbits.PWM3PHL5 // bit 5
7210 #define PWM3PHL6 PWM3PHLbits.PWM3PHL6 // bit 6
7211 #define PWM3PHL7 PWM3PHLbits.PWM3PHL7 // bit 7
7213 #define PWM3PRH0 PWM3PRHbits.PWM3PRH0 // bit 0
7214 #define PWM3PRH1 PWM3PRHbits.PWM3PRH1 // bit 1
7215 #define PWM3PRH2 PWM3PRHbits.PWM3PRH2 // bit 2
7216 #define PWM3PRH3 PWM3PRHbits.PWM3PRH3 // bit 3
7217 #define PWM3PRH4 PWM3PRHbits.PWM3PRH4 // bit 4
7218 #define PWM3PRH5 PWM3PRHbits.PWM3PRH5 // bit 5
7219 #define PWM3PRH6 PWM3PRHbits.PWM3PRH6 // bit 6
7220 #define PWM3PRH7 PWM3PRHbits.PWM3PRH7 // bit 7
7222 #define PWM3PRL0 PWM3PRLbits.PWM3PRL0 // bit 0
7223 #define PWM3PRL1 PWM3PRLbits.PWM3PRL1 // bit 1
7224 #define PWM3PRL2 PWM3PRLbits.PWM3PRL2 // bit 2
7225 #define PWM3PRL3 PWM3PRLbits.PWM3PRL3 // bit 3
7226 #define PWM3PRL4 PWM3PRLbits.PWM3PRL4 // bit 4
7227 #define PWM3PRL5 PWM3PRLbits.PWM3PRL5 // bit 5
7228 #define PWM3PRL6 PWM3PRLbits.PWM3PRL6 // bit 6
7229 #define PWM3PRL7 PWM3PRLbits.PWM3PRL7 // bit 7
7231 #define PWM3TMRH0 PWM3TMRHbits.PWM3TMRH0 // bit 0
7232 #define PWM3TMRH1 PWM3TMRHbits.PWM3TMRH1 // bit 1
7233 #define PWM3TMRH2 PWM3TMRHbits.PWM3TMRH2 // bit 2
7234 #define PWM3TMRH3 PWM3TMRHbits.PWM3TMRH3 // bit 3
7235 #define PWM3TMRH4 PWM3TMRHbits.PWM3TMRH4 // bit 4
7236 #define PWM3TMRH5 PWM3TMRHbits.PWM3TMRH5 // bit 5
7237 #define PWM3TMRH6 PWM3TMRHbits.PWM3TMRH6 // bit 6
7238 #define PWM3TMRH7 PWM3TMRHbits.PWM3TMRH7 // bit 7
7240 #define PWM3TMRL0 PWM3TMRLbits.PWM3TMRL0 // bit 0
7241 #define PWM3TMRL1 PWM3TMRLbits.PWM3TMRL1 // bit 1
7242 #define PWM3TMRL2 PWM3TMRLbits.PWM3TMRL2 // bit 2
7243 #define PWM3TMRL3 PWM3TMRLbits.PWM3TMRL3 // bit 3
7244 #define PWM3TMRL4 PWM3TMRLbits.PWM3TMRL4 // bit 4
7245 #define PWM3TMRL5 PWM3TMRLbits.PWM3TMRL5 // bit 5
7246 #define PWM3TMRL6 PWM3TMRLbits.PWM3TMRL6 // bit 6
7247 #define PWM3TMRL7 PWM3TMRLbits.PWM3TMRL7 // bit 7
7249 #define PWM4DCH0 PWM4DCHbits.PWM4DCH0 // bit 0
7250 #define PWM4DCH1 PWM4DCHbits.PWM4DCH1 // bit 1
7251 #define PWM4DCH2 PWM4DCHbits.PWM4DCH2 // bit 2
7252 #define PWM4DCH3 PWM4DCHbits.PWM4DCH3 // bit 3
7253 #define PWM4DCH4 PWM4DCHbits.PWM4DCH4 // bit 4
7254 #define PWM4DCH5 PWM4DCHbits.PWM4DCH5 // bit 5
7255 #define PWM4DCH6 PWM4DCHbits.PWM4DCH6 // bit 6
7256 #define PWM4DCH7 PWM4DCHbits.PWM4DCH7 // bit 7
7258 #define PWM4DCL0 PWM4DCLbits.PWM4DCL0 // bit 0
7259 #define PWM4DCL1 PWM4DCLbits.PWM4DCL1 // bit 1
7260 #define PWM4DCL2 PWM4DCLbits.PWM4DCL2 // bit 2
7261 #define PWM4DCL3 PWM4DCLbits.PWM4DCL3 // bit 3
7262 #define PWM4DCL4 PWM4DCLbits.PWM4DCL4 // bit 4
7263 #define PWM4DCL5 PWM4DCLbits.PWM4DCL5 // bit 5
7264 #define PWM4DCL6 PWM4DCLbits.PWM4DCL6 // bit 6
7265 #define PWM4DCL7 PWM4DCLbits.PWM4DCL7 // bit 7
7267 #define PWM4OFH0 PWM4OFHbits.PWM4OFH0 // bit 0
7268 #define PWM4OFH1 PWM4OFHbits.PWM4OFH1 // bit 1
7269 #define PWM4OFH2 PWM4OFHbits.PWM4OFH2 // bit 2
7270 #define PWM4OFH3 PWM4OFHbits.PWM4OFH3 // bit 3
7271 #define PWM4OFH4 PWM4OFHbits.PWM4OFH4 // bit 4
7272 #define PWM4OFH5 PWM4OFHbits.PWM4OFH5 // bit 5
7273 #define PWM4OFH6 PWM4OFHbits.PWM4OFH6 // bit 6
7274 #define PWM4OFH7 PWM4OFHbits.PWM4OFH7 // bit 7
7276 #define PWM4OFL0 PWM4OFLbits.PWM4OFL0 // bit 0
7277 #define PWM4OFL1 PWM4OFLbits.PWM4OFL1 // bit 1
7278 #define PWM4OFL2 PWM4OFLbits.PWM4OFL2 // bit 2
7279 #define PWM4OFL3 PWM4OFLbits.PWM4OFL3 // bit 3
7280 #define PWM4OFL4 PWM4OFLbits.PWM4OFL4 // bit 4
7281 #define PWM4OFL5 PWM4OFLbits.PWM4OFL5 // bit 5
7282 #define PWM4OFL6 PWM4OFLbits.PWM4OFL6 // bit 6
7283 #define PWM4OFL7 PWM4OFLbits.PWM4OFL7 // bit 7
7285 #define PWM4PHH0 PWM4PHHbits.PWM4PHH0 // bit 0
7286 #define PWM4PHH1 PWM4PHHbits.PWM4PHH1 // bit 1
7287 #define PWM4PHH2 PWM4PHHbits.PWM4PHH2 // bit 2
7288 #define PWM4PHH3 PWM4PHHbits.PWM4PHH3 // bit 3
7289 #define PWM4PHH4 PWM4PHHbits.PWM4PHH4 // bit 4
7290 #define PWM4PHH5 PWM4PHHbits.PWM4PHH5 // bit 5
7291 #define PWM4PHH6 PWM4PHHbits.PWM4PHH6 // bit 6
7292 #define PWM4PHH7 PWM4PHHbits.PWM4PHH7 // bit 7
7294 #define PWM4PHL0 PWM4PHLbits.PWM4PHL0 // bit 0
7295 #define PWM4PHL1 PWM4PHLbits.PWM4PHL1 // bit 1
7296 #define PWM4PHL2 PWM4PHLbits.PWM4PHL2 // bit 2
7297 #define PWM4PHL3 PWM4PHLbits.PWM4PHL3 // bit 3
7298 #define PWM4PHL4 PWM4PHLbits.PWM4PHL4 // bit 4
7299 #define PWM4PHL5 PWM4PHLbits.PWM4PHL5 // bit 5
7300 #define PWM4PHL6 PWM4PHLbits.PWM4PHL6 // bit 6
7301 #define PWM4PHL7 PWM4PHLbits.PWM4PHL7 // bit 7
7303 #define PWM4PRH0 PWM4PRHbits.PWM4PRH0 // bit 0
7304 #define PWM4PRH1 PWM4PRHbits.PWM4PRH1 // bit 1
7305 #define PWM4PRH2 PWM4PRHbits.PWM4PRH2 // bit 2
7306 #define PWM4PRH3 PWM4PRHbits.PWM4PRH3 // bit 3
7307 #define PWM4PRH4 PWM4PRHbits.PWM4PRH4 // bit 4
7308 #define PWM4PRH5 PWM4PRHbits.PWM4PRH5 // bit 5
7309 #define PWM4PRH6 PWM4PRHbits.PWM4PRH6 // bit 6
7310 #define PWM4PRH7 PWM4PRHbits.PWM4PRH7 // bit 7
7312 #define PWM4PRL0 PWM4PRLbits.PWM4PRL0 // bit 0
7313 #define PWM4PRL1 PWM4PRLbits.PWM4PRL1 // bit 1
7314 #define PWM4PRL2 PWM4PRLbits.PWM4PRL2 // bit 2
7315 #define PWM4PRL3 PWM4PRLbits.PWM4PRL3 // bit 3
7316 #define PWM4PRL4 PWM4PRLbits.PWM4PRL4 // bit 4
7317 #define PWM4PRL5 PWM4PRLbits.PWM4PRL5 // bit 5
7318 #define PWM4PRL6 PWM4PRLbits.PWM4PRL6 // bit 6
7319 #define PWM4PRL7 PWM4PRLbits.PWM4PRL7 // bit 7
7321 #define PWM4TMRH0 PWM4TMRHbits.PWM4TMRH0 // bit 0
7322 #define PWM4TMRH1 PWM4TMRHbits.PWM4TMRH1 // bit 1
7323 #define PWM4TMRH2 PWM4TMRHbits.PWM4TMRH2 // bit 2
7324 #define PWM4TMRH3 PWM4TMRHbits.PWM4TMRH3 // bit 3
7325 #define PWM4TMRH4 PWM4TMRHbits.PWM4TMRH4 // bit 4
7326 #define PWM4TMRH5 PWM4TMRHbits.PWM4TMRH5 // bit 5
7327 #define PWM4TMRH6 PWM4TMRHbits.PWM4TMRH6 // bit 6
7328 #define PWM4TMRH7 PWM4TMRHbits.PWM4TMRH7 // bit 7
7330 #define PWM4TMRL0 PWM4TMRLbits.PWM4TMRL0 // bit 0
7331 #define PWM4TMRL1 PWM4TMRLbits.PWM4TMRL1 // bit 1
7332 #define PWM4TMRL2 PWM4TMRLbits.PWM4TMRL2 // bit 2
7333 #define PWM4TMRL3 PWM4TMRLbits.PWM4TMRL3 // bit 3
7334 #define PWM4TMRL4 PWM4TMRLbits.PWM4TMRL4 // bit 4
7335 #define PWM4TMRL5 PWM4TMRLbits.PWM4TMRL5 // bit 5
7336 #define PWM4TMRL6 PWM4TMRLbits.PWM4TMRL6 // bit 6
7337 #define PWM4TMRL7 PWM4TMRLbits.PWM4TMRL7 // bit 7
7339 #define PWM1EN_A PWMENbits.PWM1EN_A // bit 0, shadows bit in PWMENbits
7340 #define MPWM1EN PWMENbits.MPWM1EN // bit 0, shadows bit in PWMENbits
7341 #define PWM2EN_A PWMENbits.PWM2EN_A // bit 1, shadows bit in PWMENbits
7342 #define MPWM2EN PWMENbits.MPWM2EN // bit 1, shadows bit in PWMENbits
7343 #define PWM3EN_A PWMENbits.PWM3EN_A // bit 2, shadows bit in PWMENbits
7344 #define MPWM3EN PWMENbits.MPWM3EN // bit 2, shadows bit in PWMENbits
7345 #define PWM4EN_A PWMENbits.PWM4EN_A // bit 3
7347 #define PWM1LDA_A PWMLDbits.PWM1LDA_A // bit 0, shadows bit in PWMLDbits
7348 #define MPWM1LD PWMLDbits.MPWM1LD // bit 0, shadows bit in PWMLDbits
7349 #define PWM2LDA_A PWMLDbits.PWM2LDA_A // bit 1, shadows bit in PWMLDbits
7350 #define MPWM2LD PWMLDbits.MPWM2LD // bit 1, shadows bit in PWMLDbits
7351 #define PWM3LDA_A PWMLDbits.PWM3LDA_A // bit 2, shadows bit in PWMLDbits
7352 #define MPWM3LD PWMLDbits.MPWM3LD // bit 2, shadows bit in PWMLDbits
7353 #define PWM4LDA_A PWMLDbits.PWM4LDA_A // bit 3
7355 #define PWM1OUT_A PWMOUTbits.PWM1OUT_A // bit 0, shadows bit in PWMOUTbits
7356 #define MPWM1OUT PWMOUTbits.MPWM1OUT // bit 0, shadows bit in PWMOUTbits
7357 #define PWM2OUT_A PWMOUTbits.PWM2OUT_A // bit 1, shadows bit in PWMOUTbits
7358 #define MPWM2OUT PWMOUTbits.MPWM2OUT // bit 1, shadows bit in PWMOUTbits
7359 #define PWM3OUT_A PWMOUTbits.PWM3OUT_A // bit 2, shadows bit in PWMOUTbits
7360 #define MPWM3OUT PWMOUTbits.MPWM3OUT // bit 2, shadows bit in PWMOUTbits
7361 #define PWM4OUT_A PWMOUTbits.PWM4OUT_A // bit 3
7363 #define RA0PPS0 RA0PPSbits.RA0PPS0 // bit 0
7364 #define RA0PPS1 RA0PPSbits.RA0PPS1 // bit 1
7365 #define RA0PPS2 RA0PPSbits.RA0PPS2 // bit 2
7366 #define RA0PPS3 RA0PPSbits.RA0PPS3 // bit 3
7368 #define RA1PPS0 RA1PPSbits.RA1PPS0 // bit 0
7369 #define RA1PPS1 RA1PPSbits.RA1PPS1 // bit 1
7370 #define RA1PPS2 RA1PPSbits.RA1PPS2 // bit 2
7371 #define RA1PPS3 RA1PPSbits.RA1PPS3 // bit 3
7373 #define RA2PPS0 RA2PPSbits.RA2PPS0 // bit 0
7374 #define RA2PPS1 RA2PPSbits.RA2PPS1 // bit 1
7375 #define RA2PPS2 RA2PPSbits.RA2PPS2 // bit 2
7376 #define RA2PPS3 RA2PPSbits.RA2PPS3 // bit 3
7378 #define RA4PPS0 RA4PPSbits.RA4PPS0 // bit 0
7379 #define RA4PPS1 RA4PPSbits.RA4PPS1 // bit 1
7380 #define RA4PPS2 RA4PPSbits.RA4PPS2 // bit 2
7381 #define RA4PPS3 RA4PPSbits.RA4PPS3 // bit 3
7383 #define RA5PPS0 RA5PPSbits.RA5PPS0 // bit 0
7384 #define RA5PPS1 RA5PPSbits.RA5PPS1 // bit 1
7385 #define RA5PPS2 RA5PPSbits.RA5PPS2 // bit 2
7386 #define RA5PPS3 RA5PPSbits.RA5PPS3 // bit 3
7388 #define RC0PPS0 RC0PPSbits.RC0PPS0 // bit 0
7389 #define RC0PPS1 RC0PPSbits.RC0PPS1 // bit 1
7390 #define RC0PPS2 RC0PPSbits.RC0PPS2 // bit 2
7391 #define RC0PPS3 RC0PPSbits.RC0PPS3 // bit 3
7393 #define RC1PPS0 RC1PPSbits.RC1PPS0 // bit 0
7394 #define RC1PPS1 RC1PPSbits.RC1PPS1 // bit 1
7395 #define RC1PPS2 RC1PPSbits.RC1PPS2 // bit 2
7396 #define RC1PPS3 RC1PPSbits.RC1PPS3 // bit 3
7398 #define RC3PPS0 RC3PPSbits.RC3PPS0 // bit 0
7399 #define RC3PPS1 RC3PPSbits.RC3PPS1 // bit 1
7400 #define RC3PPS2 RC3PPSbits.RC3PPS2 // bit 2
7401 #define RC3PPS3 RC3PPSbits.RC3PPS3 // bit 3
7403 #define RC4PPS0 RC4PPSbits.RC4PPS0 // bit 0
7404 #define RC4PPS1 RC4PPSbits.RC4PPS1 // bit 1
7405 #define RC4PPS2 RC4PPSbits.RC4PPS2 // bit 2
7406 #define RC4PPS3 RC4PPSbits.RC4PPS3 // bit 3
7408 #define RC5PPS0 RC5PPSbits.RC5PPS0 // bit 0
7409 #define RC5PPS1 RC5PPSbits.RC5PPS1 // bit 1
7410 #define RC5PPS2 RC5PPSbits.RC5PPS2 // bit 2
7411 #define RC5PPS3 RC5PPSbits.RC5PPS3 // bit 3
7413 #define RX9D RCSTAbits.RX9D // bit 0
7414 #define OERR RCSTAbits.OERR // bit 1
7415 #define FERR RCSTAbits.FERR // bit 2
7416 #define ADDEN RCSTAbits.ADDEN // bit 3
7417 #define CREN RCSTAbits.CREN // bit 4
7418 #define SREN RCSTAbits.SREN // bit 5
7419 #define RX9 RCSTAbits.RX9 // bit 6
7420 #define SPEN RCSTAbits.SPEN // bit 7
7422 #define RXPPS0 RXPPSbits.RXPPS0 // bit 0
7423 #define RXPPS1 RXPPSbits.RXPPS1 // bit 1
7424 #define RXPPS2 RXPPSbits.RXPPS2 // bit 2
7425 #define RXPPS3 RXPPSbits.RXPPS3 // bit 3
7426 #define RXPPS4 RXPPSbits.RXPPS4 // bit 4
7428 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
7429 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
7430 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
7431 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
7432 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
7434 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
7435 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
7436 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
7437 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
7438 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
7439 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
7441 #define C STATUSbits.C // bit 0
7442 #define DC STATUSbits.DC // bit 1
7443 #define Z STATUSbits.Z // bit 2
7444 #define NOT_PD STATUSbits.NOT_PD // bit 3
7445 #define NOT_TO STATUSbits.NOT_TO // bit 4
7447 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
7448 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
7449 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
7451 #define T0CKIPPS0 T0CKIPPSbits.T0CKIPPS0 // bit 0
7452 #define T0CKIPPS1 T0CKIPPSbits.T0CKIPPS1 // bit 1
7453 #define T0CKIPPS2 T0CKIPPSbits.T0CKIPPS2 // bit 2
7454 #define T0CKIPPS3 T0CKIPPSbits.T0CKIPPS3 // bit 3
7455 #define T0CKIPPS4 T0CKIPPSbits.T0CKIPPS4 // bit 4
7457 #define T1CKIPPS0 T1CKIPPSbits.T1CKIPPS0 // bit 0
7458 #define T1CKIPPS1 T1CKIPPSbits.T1CKIPPS1 // bit 1
7459 #define T1CKIPPS2 T1CKIPPSbits.T1CKIPPS2 // bit 2
7460 #define T1CKIPPS3 T1CKIPPSbits.T1CKIPPS3 // bit 3
7461 #define T1CKIPPS4 T1CKIPPSbits.T1CKIPPS4 // bit 4
7463 #define TMR1ON T1CONbits.TMR1ON // bit 0
7464 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
7465 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
7466 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
7467 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
7468 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
7469 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
7471 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
7472 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
7473 #define T1GVAL T1GCONbits.T1GVAL // bit 2
7474 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
7475 #define T1GGO T1GCONbits.T1GGO // bit 3, shadows bit in T1GCONbits
7476 #define T1GSPM T1GCONbits.T1GSPM // bit 4
7477 #define T1GTM T1GCONbits.T1GTM // bit 5
7478 #define T1GPOL T1GCONbits.T1GPOL // bit 6
7479 #define TMR1GE T1GCONbits.TMR1GE // bit 7
7481 #define T1GPPS0 T1GPPSbits.T1GPPS0 // bit 0
7482 #define T1GPPS1 T1GPPSbits.T1GPPS1 // bit 1
7483 #define T1GPPS2 T1GPPSbits.T1GPPS2 // bit 2
7484 #define T1GPPS3 T1GPPSbits.T1GPPS3 // bit 3
7485 #define T1GPPS4 T1GPPSbits.T1GPPS4 // bit 4
7487 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
7488 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
7489 #define TMR2ON T2CONbits.TMR2ON // bit 2
7490 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
7491 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
7492 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
7493 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
7495 #define TRISA0 TRISAbits.TRISA0 // bit 0
7496 #define TRISA1 TRISAbits.TRISA1 // bit 1
7497 #define TRISA2 TRISAbits.TRISA2 // bit 2
7498 #define TRISA3 TRISAbits.TRISA3 // bit 3
7499 #define TRISA4 TRISAbits.TRISA4 // bit 4
7500 #define TRISA5 TRISAbits.TRISA5 // bit 5
7502 #define TRISC0 TRISCbits.TRISC0 // bit 0
7503 #define TRISC1 TRISCbits.TRISC1 // bit 1
7504 #define TRISC2 TRISCbits.TRISC2 // bit 2
7505 #define TRISC3 TRISCbits.TRISC3 // bit 3
7506 #define TRISC4 TRISCbits.TRISC4 // bit 4
7507 #define TRISC5 TRISCbits.TRISC5 // bit 5
7509 #define TX9D TXSTAbits.TX9D // bit 0
7510 #define TRMT TXSTAbits.TRMT // bit 1
7511 #define BRGH TXSTAbits.BRGH // bit 2
7512 #define SENDB TXSTAbits.SENDB // bit 3
7513 #define SYNC TXSTAbits.SYNC // bit 4
7514 #define TXEN TXSTAbits.TXEN // bit 5
7515 #define TX9 TXSTAbits.TX9 // bit 6
7516 #define CSRC TXSTAbits.CSRC // bit 7
7518 #define SWDTEN WDTCONbits.SWDTEN // bit 0
7519 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
7520 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
7521 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
7522 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
7523 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
7525 #define WPUA0 WPUAbits.WPUA0 // bit 0
7526 #define WPUA1 WPUAbits.WPUA1 // bit 1
7527 #define WPUA2 WPUAbits.WPUA2 // bit 2
7528 #define WPUA3 WPUAbits.WPUA3 // bit 3
7529 #define WPUA4 WPUAbits.WPUA4 // bit 4
7530 #define WPUA5 WPUAbits.WPUA5 // bit 5
7532 #define WPUC0 WPUCbits.WPUC0 // bit 0
7533 #define WPUC1 WPUCbits.WPUC1 // bit 1
7534 #define WPUC2 WPUCbits.WPUC2 // bit 2
7535 #define WPUC3 WPUCbits.WPUC3 // bit 3
7536 #define WPUC4 WPUCbits.WPUC4 // bit 4
7537 #define WPUC5 WPUCbits.WPUC5 // bit 5
7539 #endif // #ifndef NO_BIT_DEFINES
7541 #endif // #ifndef __PIC16LF1574_H__