2 * This declarations of the PIC16LF1509 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:06 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 __PIC16LF1509_H__
26 #define __PIC16LF1509_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 PORTB_ADDR 0x000D
52 #define PORTC_ADDR 0x000E
53 #define PIR1_ADDR 0x0011
54 #define PIR2_ADDR 0x0012
55 #define PIR3_ADDR 0x0013
56 #define TMR0_ADDR 0x0015
57 #define TMR1_ADDR 0x0016
58 #define TMR1L_ADDR 0x0016
59 #define TMR1H_ADDR 0x0017
60 #define T1CON_ADDR 0x0018
61 #define T1GCON_ADDR 0x0019
62 #define TMR2_ADDR 0x001A
63 #define PR2_ADDR 0x001B
64 #define T2CON_ADDR 0x001C
65 #define TRISA_ADDR 0x008C
66 #define TRISB_ADDR 0x008D
67 #define TRISC_ADDR 0x008E
68 #define PIE1_ADDR 0x0091
69 #define PIE2_ADDR 0x0092
70 #define PIE3_ADDR 0x0093
71 #define OPTION_REG_ADDR 0x0095
72 #define PCON_ADDR 0x0096
73 #define WDTCON_ADDR 0x0097
74 #define OSCCON_ADDR 0x0099
75 #define OSCSTAT_ADDR 0x009A
76 #define ADRES_ADDR 0x009B
77 #define ADRESL_ADDR 0x009B
78 #define ADRESH_ADDR 0x009C
79 #define ADCON0_ADDR 0x009D
80 #define ADCON1_ADDR 0x009E
81 #define ADCON2_ADDR 0x009F
82 #define LATA_ADDR 0x010C
83 #define LATB_ADDR 0x010D
84 #define LATC_ADDR 0x010E
85 #define CM1CON0_ADDR 0x0111
86 #define CM1CON1_ADDR 0x0112
87 #define CM2CON0_ADDR 0x0113
88 #define CM2CON1_ADDR 0x0114
89 #define CMOUT_ADDR 0x0115
90 #define BORCON_ADDR 0x0116
91 #define FVRCON_ADDR 0x0117
92 #define DACCON0_ADDR 0x0118
93 #define DACCON1_ADDR 0x0119
94 #define APFCON_ADDR 0x011D
95 #define ANSELA_ADDR 0x018C
96 #define ANSELB_ADDR 0x018D
97 #define ANSELC_ADDR 0x018E
98 #define PMADR_ADDR 0x0191
99 #define PMADRL_ADDR 0x0191
100 #define PMADRH_ADDR 0x0192
101 #define PMDAT_ADDR 0x0193
102 #define PMDATL_ADDR 0x0193
103 #define PMDATH_ADDR 0x0194
104 #define PMCON1_ADDR 0x0195
105 #define PMCON2_ADDR 0x0196
106 #define RCREG_ADDR 0x0199
107 #define TXREG_ADDR 0x019A
108 #define SPBRG_ADDR 0x019B
109 #define SPBRGL_ADDR 0x019B
110 #define SPBRGH_ADDR 0x019C
111 #define RCSTA_ADDR 0x019D
112 #define TXSTA_ADDR 0x019E
113 #define BAUDCON_ADDR 0x019F
114 #define WPUA_ADDR 0x020C
115 #define WPUB_ADDR 0x020D
116 #define SSP1BUF_ADDR 0x0211
117 #define SSPBUF_ADDR 0x0211
118 #define SSP1ADD_ADDR 0x0212
119 #define SSPADD_ADDR 0x0212
120 #define SSP1MSK_ADDR 0x0213
121 #define SSPMSK_ADDR 0x0213
122 #define SSP1STAT_ADDR 0x0214
123 #define SSPSTAT_ADDR 0x0214
124 #define SSP1CON1_ADDR 0x0215
125 #define SSPCON_ADDR 0x0215
126 #define SSPCON1_ADDR 0x0215
127 #define SSP1CON2_ADDR 0x0216
128 #define SSPCON2_ADDR 0x0216
129 #define SSP1CON3_ADDR 0x0217
130 #define SSPCON3_ADDR 0x0217
131 #define IOCAP_ADDR 0x0391
132 #define IOCAN_ADDR 0x0392
133 #define IOCAF_ADDR 0x0393
134 #define IOCBP_ADDR 0x0394
135 #define IOCBN_ADDR 0x0395
136 #define IOCBF_ADDR 0x0396
137 #define NCO1ACC_ADDR 0x0498
138 #define NCO1ACCL_ADDR 0x0498
139 #define NCO1ACCH_ADDR 0x0499
140 #define NCO1ACCU_ADDR 0x049A
141 #define NCO1INC_ADDR 0x049B
142 #define NCO1INCL_ADDR 0x049B
143 #define NCO1INCH_ADDR 0x049C
144 #define NCO1INCU_ADDR 0x049D
145 #define NCO1CON_ADDR 0x049E
146 #define NCO1CLK_ADDR 0x049F
147 #define PWM1DCL_ADDR 0x0611
148 #define PWM1DCH_ADDR 0x0612
149 #define PWM1CON_ADDR 0x0613
150 #define PWM1CON0_ADDR 0x0613
151 #define PWM2DCL_ADDR 0x0614
152 #define PWM2DCH_ADDR 0x0615
153 #define PWM2CON_ADDR 0x0616
154 #define PWM2CON0_ADDR 0x0616
155 #define PWM3DCL_ADDR 0x0617
156 #define PWM3DCH_ADDR 0x0618
157 #define PWM3CON_ADDR 0x0619
158 #define PWM3CON0_ADDR 0x0619
159 #define PWM4DCL_ADDR 0x061A
160 #define PWM4DCH_ADDR 0x061B
161 #define PWM4CON_ADDR 0x061C
162 #define PWM4CON0_ADDR 0x061C
163 #define CWG1DBR_ADDR 0x0691
164 #define CWG1DBF_ADDR 0x0692
165 #define CWG1CON0_ADDR 0x0693
166 #define CWG1CON1_ADDR 0x0694
167 #define CWG1CON2_ADDR 0x0695
168 #define CLCDATA_ADDR 0x0F0F
169 #define CLC1CON_ADDR 0x0F10
170 #define CLC1POL_ADDR 0x0F11
171 #define CLC1SEL0_ADDR 0x0F12
172 #define CLC1SEL1_ADDR 0x0F13
173 #define CLC1GLS0_ADDR 0x0F14
174 #define CLC1GLS1_ADDR 0x0F15
175 #define CLC1GLS2_ADDR 0x0F16
176 #define CLC1GLS3_ADDR 0x0F17
177 #define CLC2CON_ADDR 0x0F18
178 #define CLC2POL_ADDR 0x0F19
179 #define CLC2SEL0_ADDR 0x0F1A
180 #define CLC2SEL1_ADDR 0x0F1B
181 #define CLC2GLS0_ADDR 0x0F1C
182 #define CLC2GLS1_ADDR 0x0F1D
183 #define CLC2GLS2_ADDR 0x0F1E
184 #define CLC2GLS3_ADDR 0x0F1F
185 #define CLC3CON_ADDR 0x0F20
186 #define CLC3POL_ADDR 0x0F21
187 #define CLC3SEL0_ADDR 0x0F22
188 #define CLC3SEL1_ADDR 0x0F23
189 #define CLC3GLS0_ADDR 0x0F24
190 #define CLC3GLS1_ADDR 0x0F25
191 #define CLC3GLS2_ADDR 0x0F26
192 #define CLC3GLS3_ADDR 0x0F27
193 #define CLC4CON_ADDR 0x0F28
194 #define CLC4POL_ADDR 0x0F29
195 #define CLC4SEL0_ADDR 0x0F2A
196 #define CLC4SEL1_ADDR 0x0F2B
197 #define CLC4GLS0_ADDR 0x0F2C
198 #define CLC4GLS1_ADDR 0x0F2D
199 #define CLC4GLS2_ADDR 0x0F2E
200 #define CLC4GLS3_ADDR 0x0F2F
201 #define ICDIO_ADDR 0x0F8C
202 #define ICDCON0_ADDR 0x0F8D
203 #define ICDSTAT_ADDR 0x0F91
204 #define DEVSEL_ADDR 0x0F95
205 #define ICDINSTL_ADDR 0x0F96
206 #define ICDINSTH_ADDR 0x0F97
207 #define ICDBK0CON_ADDR 0x0F9C
208 #define ICDBK0L_ADDR 0x0F9D
209 #define ICDBK0H_ADDR 0x0F9E
210 #define BSRICDSHAD_ADDR 0x0FE3
211 #define STATUS_SHAD_ADDR 0x0FE4
212 #define WREG_SHAD_ADDR 0x0FE5
213 #define BSR_SHAD_ADDR 0x0FE6
214 #define PCLATH_SHAD_ADDR 0x0FE7
215 #define FSR0L_SHAD_ADDR 0x0FE8
216 #define FSR0H_SHAD_ADDR 0x0FE9
217 #define FSR1L_SHAD_ADDR 0x0FEA
218 #define FSR1H_SHAD_ADDR 0x0FEB
219 #define STKPTR_ADDR 0x0FED
220 #define TOSL_ADDR 0x0FEE
221 #define TOSH_ADDR 0x0FEF
223 #endif // #ifndef NO_ADDR_DEFINES
225 //==============================================================================
227 // Register Definitions
229 //==============================================================================
231 extern __at(0x0000) __sfr INDF0
;
232 extern __at(0x0001) __sfr INDF1
;
233 extern __at(0x0002) __sfr PCL
;
235 //==============================================================================
238 extern __at(0x0003) __sfr STATUS
;
252 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
260 //==============================================================================
262 extern __at(0x0004) __sfr FSR0
;
263 extern __at(0x0004) __sfr FSR0L
;
264 extern __at(0x0005) __sfr FSR0H
;
265 extern __at(0x0006) __sfr FSR1
;
266 extern __at(0x0006) __sfr FSR1L
;
267 extern __at(0x0007) __sfr FSR1H
;
269 //==============================================================================
272 extern __at(0x0008) __sfr BSR
;
295 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
303 //==============================================================================
305 extern __at(0x0009) __sfr WREG
;
306 extern __at(0x000A) __sfr PCLATH
;
308 //==============================================================================
311 extern __at(0x000B) __sfr INTCON
;
340 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
353 //==============================================================================
356 //==============================================================================
359 extern __at(0x000C) __sfr PORTA
;
382 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
391 //==============================================================================
394 //==============================================================================
397 extern __at(0x000D) __sfr PORTB
;
411 extern __at(0x000D) volatile __PORTBbits_t PORTBbits
;
418 //==============================================================================
421 //==============================================================================
424 extern __at(0x000E) __sfr PORTC
;
438 extern __at(0x000E) volatile __PORTCbits_t PORTCbits
;
449 //==============================================================================
452 //==============================================================================
455 extern __at(0x0011) __sfr PIR1
;
466 unsigned TMR1GIF
: 1;
469 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
477 #define _TMR1GIF 0x80
479 //==============================================================================
482 //==============================================================================
485 extern __at(0x0012) __sfr PIR2
;
499 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
507 //==============================================================================
510 //==============================================================================
513 extern __at(0x0013) __sfr PIR3
;
527 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
534 //==============================================================================
536 extern __at(0x0015) __sfr TMR0
;
537 extern __at(0x0016) __sfr TMR1
;
538 extern __at(0x0016) __sfr TMR1L
;
539 extern __at(0x0017) __sfr TMR1H
;
541 //==============================================================================
544 extern __at(0x0018) __sfr T1CON
;
552 unsigned NOT_T1SYNC
: 1;
553 unsigned T1OSCEN
: 1;
554 unsigned T1CKPS0
: 1;
555 unsigned T1CKPS1
: 1;
556 unsigned TMR1CS0
: 1;
557 unsigned TMR1CS1
: 1;
574 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
577 #define _NOT_T1SYNC 0x04
578 #define _T1OSCEN 0x08
579 #define _T1CKPS0 0x10
580 #define _T1CKPS1 0x20
581 #define _TMR1CS0 0x40
582 #define _TMR1CS1 0x80
584 //==============================================================================
587 //==============================================================================
590 extern __at(0x0019) __sfr T1GCON
;
599 unsigned T1GGO_NOT_DONE
: 1;
613 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
618 #define _T1GGO_NOT_DONE 0x08
624 //==============================================================================
626 extern __at(0x001A) __sfr TMR2
;
627 extern __at(0x001B) __sfr PR2
;
629 //==============================================================================
632 extern __at(0x001C) __sfr T2CON
;
638 unsigned T2CKPS0
: 1;
639 unsigned T2CKPS1
: 1;
641 unsigned T2OUTPS0
: 1;
642 unsigned T2OUTPS1
: 1;
643 unsigned T2OUTPS2
: 1;
644 unsigned T2OUTPS3
: 1;
657 unsigned T2OUTPS
: 4;
662 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
664 #define _T2CKPS0 0x01
665 #define _T2CKPS1 0x02
667 #define _T2OUTPS0 0x08
668 #define _T2OUTPS1 0x10
669 #define _T2OUTPS2 0x20
670 #define _T2OUTPS3 0x40
672 //==============================================================================
675 //==============================================================================
678 extern __at(0x008C) __sfr TRISA
;
701 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
710 //==============================================================================
713 //==============================================================================
716 extern __at(0x008D) __sfr TRISB
;
730 extern __at(0x008D) volatile __TRISBbits_t TRISBbits
;
737 //==============================================================================
740 //==============================================================================
743 extern __at(0x008E) __sfr TRISC
;
757 extern __at(0x008E) volatile __TRISCbits_t TRISCbits
;
768 //==============================================================================
771 //==============================================================================
774 extern __at(0x0091) __sfr PIE1
;
785 unsigned TMR1GIE
: 1;
788 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
796 #define _TMR1GIE 0x80
798 //==============================================================================
801 //==============================================================================
804 extern __at(0x0092) __sfr PIE2
;
818 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
826 //==============================================================================
829 //==============================================================================
832 extern __at(0x0093) __sfr PIE3
;
846 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
853 //==============================================================================
856 //==============================================================================
859 extern __at(0x0095) __sfr OPTION_REG
;
872 unsigned NOT_WPUEN
: 1;
892 } __OPTION_REGbits_t
;
894 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
905 #define _NOT_WPUEN 0x80
907 //==============================================================================
910 //==============================================================================
913 extern __at(0x0096) __sfr PCON
;
917 unsigned NOT_BOR
: 1;
918 unsigned NOT_POR
: 1;
920 unsigned NOT_RMCLR
: 1;
921 unsigned NOT_RWDT
: 1;
927 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
929 #define _NOT_BOR 0x01
930 #define _NOT_POR 0x02
932 #define _NOT_RMCLR 0x08
933 #define _NOT_RWDT 0x10
937 //==============================================================================
940 //==============================================================================
943 extern __at(0x0097) __sfr WDTCON
;
967 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
976 //==============================================================================
979 //==============================================================================
982 extern __at(0x0099) __sfr OSCCON
;
1012 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
1021 //==============================================================================
1024 //==============================================================================
1027 extern __at(0x009A) __sfr OSCSTAT
;
1031 unsigned HFIOFS
: 1;
1032 unsigned LFIOFR
: 1;
1035 unsigned HFIOFR
: 1;
1041 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
1043 #define _HFIOFS 0x01
1044 #define _LFIOFR 0x02
1045 #define _HFIOFR 0x10
1049 //==============================================================================
1051 extern __at(0x009B) __sfr ADRES
;
1052 extern __at(0x009B) __sfr ADRESL
;
1053 extern __at(0x009C) __sfr ADRESH
;
1055 //==============================================================================
1058 extern __at(0x009D) __sfr ADCON0
;
1065 unsigned GO_NOT_DONE
: 1;
1106 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1109 #define _GO_NOT_DONE 0x02
1118 //==============================================================================
1121 //==============================================================================
1124 extern __at(0x009E) __sfr ADCON1
;
1130 unsigned ADPREF0
: 1;
1131 unsigned ADPREF1
: 1;
1142 unsigned ADPREF
: 2;
1147 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1149 #define _ADPREF0 0x01
1150 #define _ADPREF1 0x02
1153 //==============================================================================
1156 //==============================================================================
1159 extern __at(0x009F) __sfr ADCON2
;
1169 unsigned TRIGSEL0
: 1;
1170 unsigned TRIGSEL1
: 1;
1171 unsigned TRIGSEL2
: 1;
1172 unsigned TRIGSEL3
: 1;
1178 unsigned TRIGSEL
: 4;
1182 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1184 #define _TRIGSEL0 0x10
1185 #define _TRIGSEL1 0x20
1186 #define _TRIGSEL2 0x40
1187 #define _TRIGSEL3 0x80
1189 //==============================================================================
1192 //==============================================================================
1195 extern __at(0x010C) __sfr LATA
;
1209 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1217 //==============================================================================
1220 //==============================================================================
1223 extern __at(0x010D) __sfr LATB
;
1237 extern __at(0x010D) volatile __LATBbits_t LATBbits
;
1244 //==============================================================================
1247 //==============================================================================
1250 extern __at(0x010E) __sfr LATC
;
1264 extern __at(0x010E) volatile __LATCbits_t LATCbits
;
1275 //==============================================================================
1278 //==============================================================================
1281 extern __at(0x0111) __sfr CM1CON0
;
1285 unsigned C1SYNC
: 1;
1295 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1297 #define _C1SYNC 0x01
1305 //==============================================================================
1308 //==============================================================================
1311 extern __at(0x0112) __sfr CM1CON1
;
1317 unsigned C1NCH0
: 1;
1318 unsigned C1NCH1
: 1;
1319 unsigned C1NCH2
: 1;
1321 unsigned C1PCH0
: 1;
1322 unsigned C1PCH1
: 1;
1323 unsigned C1INTN
: 1;
1324 unsigned C1INTP
: 1;
1341 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1343 #define _C1NCH0 0x01
1344 #define _C1NCH1 0x02
1345 #define _C1NCH2 0x04
1346 #define _C1PCH0 0x10
1347 #define _C1PCH1 0x20
1348 #define _C1INTN 0x40
1349 #define _C1INTP 0x80
1351 //==============================================================================
1354 //==============================================================================
1357 extern __at(0x0113) __sfr CM2CON0
;
1361 unsigned C2SYNC
: 1;
1371 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits
;
1373 #define _C2SYNC 0x01
1381 //==============================================================================
1384 //==============================================================================
1387 extern __at(0x0114) __sfr CM2CON1
;
1393 unsigned C2NCH0
: 1;
1394 unsigned C2NCH1
: 1;
1395 unsigned C2NCH2
: 1;
1397 unsigned C2PCH0
: 1;
1398 unsigned C2PCH1
: 1;
1399 unsigned C2INTN
: 1;
1400 unsigned C2INTP
: 1;
1417 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits
;
1419 #define _C2NCH0 0x01
1420 #define _C2NCH1 0x02
1421 #define _C2NCH2 0x04
1422 #define _C2PCH0 0x10
1423 #define _C2PCH1 0x20
1424 #define _C2INTN 0x40
1425 #define _C2INTP 0x80
1427 //==============================================================================
1430 //==============================================================================
1433 extern __at(0x0115) __sfr CMOUT
;
1437 unsigned MC1OUT
: 1;
1438 unsigned MC2OUT
: 1;
1447 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1449 #define _MC1OUT 0x01
1450 #define _MC2OUT 0x02
1452 //==============================================================================
1455 //==============================================================================
1458 extern __at(0x0116) __sfr BORCON
;
1462 unsigned BORRDY
: 1;
1469 unsigned SBOREN
: 1;
1472 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1474 #define _BORRDY 0x01
1476 #define _SBOREN 0x80
1478 //==============================================================================
1481 //==============================================================================
1484 extern __at(0x0117) __sfr FVRCON
;
1490 unsigned ADFVR0
: 1;
1491 unsigned ADFVR1
: 1;
1492 unsigned CDAFVR0
: 1;
1493 unsigned CDAFVR1
: 1;
1496 unsigned FVRRDY
: 1;
1509 unsigned CDAFVR
: 2;
1514 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1516 #define _ADFVR0 0x01
1517 #define _ADFVR1 0x02
1518 #define _CDAFVR0 0x04
1519 #define _CDAFVR1 0x08
1522 #define _FVRRDY 0x40
1525 //==============================================================================
1528 //==============================================================================
1531 extern __at(0x0118) __sfr DACCON0
;
1537 unsigned DACPSS
: 1;
1539 unsigned DACOE2
: 1;
1540 unsigned DACOE1
: 1;
1545 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1547 #define _DACPSS 0x04
1548 #define _DACOE2 0x10
1549 #define _DACOE1 0x20
1552 //==============================================================================
1555 //==============================================================================
1558 extern __at(0x0119) __sfr DACCON1
;
1581 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1589 //==============================================================================
1592 //==============================================================================
1595 extern __at(0x011D) __sfr APFCON
;
1599 unsigned NCO1SEL
: 1;
1600 unsigned CLC1SEL
: 1;
1602 unsigned T1GSEL
: 1;
1609 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
1611 #define _NCO1SEL 0x01
1612 #define _CLC1SEL 0x02
1613 #define _T1GSEL 0x08
1616 //==============================================================================
1619 //==============================================================================
1622 extern __at(0x018C) __sfr ANSELA
;
1636 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
1643 //==============================================================================
1646 //==============================================================================
1649 extern __at(0x018D) __sfr ANSELB
;
1663 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits
;
1668 //==============================================================================
1671 //==============================================================================
1674 extern __at(0x018E) __sfr ANSELC
;
1688 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits
;
1697 //==============================================================================
1699 extern __at(0x0191) __sfr PMADR
;
1700 extern __at(0x0191) __sfr PMADRL
;
1701 extern __at(0x0192) __sfr PMADRH
;
1702 extern __at(0x0193) __sfr PMDAT
;
1703 extern __at(0x0193) __sfr PMDATL
;
1704 extern __at(0x0194) __sfr PMDATH
;
1706 //==============================================================================
1709 extern __at(0x0195) __sfr PMCON1
;
1723 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits
;
1733 //==============================================================================
1735 extern __at(0x0196) __sfr PMCON2
;
1736 extern __at(0x0199) __sfr RCREG
;
1737 extern __at(0x019A) __sfr TXREG
;
1738 extern __at(0x019B) __sfr SPBRG
;
1739 extern __at(0x019B) __sfr SPBRGL
;
1740 extern __at(0x019C) __sfr SPBRGH
;
1742 //==============================================================================
1745 extern __at(0x019D) __sfr RCSTA
;
1759 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
1770 //==============================================================================
1773 //==============================================================================
1776 extern __at(0x019E) __sfr TXSTA
;
1790 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
1801 //==============================================================================
1804 //==============================================================================
1807 extern __at(0x019F) __sfr BAUDCON
;
1818 unsigned ABDOVF
: 1;
1821 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
1828 #define _ABDOVF 0x80
1830 //==============================================================================
1833 //==============================================================================
1836 extern __at(0x020C) __sfr WPUA
;
1859 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
1868 //==============================================================================
1871 //==============================================================================
1874 extern __at(0x020D) __sfr WPUB
;
1888 extern __at(0x020D) volatile __WPUBbits_t WPUBbits
;
1895 //==============================================================================
1897 extern __at(0x0211) __sfr SSP1BUF
;
1898 extern __at(0x0211) __sfr SSPBUF
;
1899 extern __at(0x0212) __sfr SSP1ADD
;
1900 extern __at(0x0212) __sfr SSPADD
;
1901 extern __at(0x0213) __sfr SSP1MSK
;
1902 extern __at(0x0213) __sfr SSPMSK
;
1904 //==============================================================================
1907 extern __at(0x0214) __sfr SSP1STAT
;
1913 unsigned R_NOT_W
: 1;
1916 unsigned D_NOT_A
: 1;
1921 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits
;
1925 #define _R_NOT_W 0x04
1928 #define _D_NOT_A 0x20
1932 //==============================================================================
1935 //==============================================================================
1938 extern __at(0x0214) __sfr SSPSTAT
;
1944 unsigned R_NOT_W
: 1;
1947 unsigned D_NOT_A
: 1;
1952 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits
;
1954 #define _SSPSTAT_BF 0x01
1955 #define _SSPSTAT_UA 0x02
1956 #define _SSPSTAT_R_NOT_W 0x04
1957 #define _SSPSTAT_S 0x08
1958 #define _SSPSTAT_P 0x10
1959 #define _SSPSTAT_D_NOT_A 0x20
1960 #define _SSPSTAT_CKE 0x40
1961 #define _SSPSTAT_SMP 0x80
1963 //==============================================================================
1966 //==============================================================================
1969 extern __at(0x0215) __sfr SSP1CON1
;
1992 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits
;
2003 //==============================================================================
2006 //==============================================================================
2009 extern __at(0x0215) __sfr SSPCON
;
2032 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits
;
2034 #define _SSPCON_SSPM0 0x01
2035 #define _SSPCON_SSPM1 0x02
2036 #define _SSPCON_SSPM2 0x04
2037 #define _SSPCON_SSPM3 0x08
2038 #define _SSPCON_CKP 0x10
2039 #define _SSPCON_SSPEN 0x20
2040 #define _SSPCON_SSPOV 0x40
2041 #define _SSPCON_WCOL 0x80
2043 //==============================================================================
2046 //==============================================================================
2049 extern __at(0x0215) __sfr SSPCON1
;
2072 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits
;
2074 #define _SSPCON1_SSPM0 0x01
2075 #define _SSPCON1_SSPM1 0x02
2076 #define _SSPCON1_SSPM2 0x04
2077 #define _SSPCON1_SSPM3 0x08
2078 #define _SSPCON1_CKP 0x10
2079 #define _SSPCON1_SSPEN 0x20
2080 #define _SSPCON1_SSPOV 0x40
2081 #define _SSPCON1_WCOL 0x80
2083 //==============================================================================
2086 //==============================================================================
2089 extern __at(0x0216) __sfr SSP1CON2
;
2099 unsigned ACKSTAT
: 1;
2103 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits
;
2111 #define _ACKSTAT 0x40
2114 //==============================================================================
2117 //==============================================================================
2120 extern __at(0x0216) __sfr SSPCON2
;
2130 unsigned ACKSTAT
: 1;
2134 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits
;
2136 #define _SSPCON2_SEN 0x01
2137 #define _SSPCON2_RSEN 0x02
2138 #define _SSPCON2_PEN 0x04
2139 #define _SSPCON2_RCEN 0x08
2140 #define _SSPCON2_ACKEN 0x10
2141 #define _SSPCON2_ACKDT 0x20
2142 #define _SSPCON2_ACKSTAT 0x40
2143 #define _SSPCON2_GCEN 0x80
2145 //==============================================================================
2148 //==============================================================================
2151 extern __at(0x0217) __sfr SSP1CON3
;
2162 unsigned ACKTIM
: 1;
2165 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits
;
2174 #define _ACKTIM 0x80
2176 //==============================================================================
2179 //==============================================================================
2182 extern __at(0x0217) __sfr SSPCON3
;
2193 unsigned ACKTIM
: 1;
2196 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits
;
2198 #define _SSPCON3_DHEN 0x01
2199 #define _SSPCON3_AHEN 0x02
2200 #define _SSPCON3_SBCDE 0x04
2201 #define _SSPCON3_SDAHT 0x08
2202 #define _SSPCON3_BOEN 0x10
2203 #define _SSPCON3_SCIE 0x20
2204 #define _SSPCON3_PCIE 0x40
2205 #define _SSPCON3_ACKTIM 0x80
2207 //==============================================================================
2210 //==============================================================================
2213 extern __at(0x0391) __sfr IOCAP
;
2219 unsigned IOCAP0
: 1;
2220 unsigned IOCAP1
: 1;
2221 unsigned IOCAP2
: 1;
2222 unsigned IOCAP3
: 1;
2223 unsigned IOCAP4
: 1;
2224 unsigned IOCAP5
: 1;
2236 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
2238 #define _IOCAP0 0x01
2239 #define _IOCAP1 0x02
2240 #define _IOCAP2 0x04
2241 #define _IOCAP3 0x08
2242 #define _IOCAP4 0x10
2243 #define _IOCAP5 0x20
2245 //==============================================================================
2248 //==============================================================================
2251 extern __at(0x0392) __sfr IOCAN
;
2257 unsigned IOCAN0
: 1;
2258 unsigned IOCAN1
: 1;
2259 unsigned IOCAN2
: 1;
2260 unsigned IOCAN3
: 1;
2261 unsigned IOCAN4
: 1;
2262 unsigned IOCAN5
: 1;
2274 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
2276 #define _IOCAN0 0x01
2277 #define _IOCAN1 0x02
2278 #define _IOCAN2 0x04
2279 #define _IOCAN3 0x08
2280 #define _IOCAN4 0x10
2281 #define _IOCAN5 0x20
2283 //==============================================================================
2286 //==============================================================================
2289 extern __at(0x0393) __sfr IOCAF
;
2295 unsigned IOCAF0
: 1;
2296 unsigned IOCAF1
: 1;
2297 unsigned IOCAF2
: 1;
2298 unsigned IOCAF3
: 1;
2299 unsigned IOCAF4
: 1;
2300 unsigned IOCAF5
: 1;
2312 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
2314 #define _IOCAF0 0x01
2315 #define _IOCAF1 0x02
2316 #define _IOCAF2 0x04
2317 #define _IOCAF3 0x08
2318 #define _IOCAF4 0x10
2319 #define _IOCAF5 0x20
2321 //==============================================================================
2324 //==============================================================================
2327 extern __at(0x0394) __sfr IOCBP
;
2335 unsigned IOCBP4
: 1;
2336 unsigned IOCBP5
: 1;
2337 unsigned IOCBP6
: 1;
2338 unsigned IOCBP7
: 1;
2341 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits
;
2343 #define _IOCBP4 0x10
2344 #define _IOCBP5 0x20
2345 #define _IOCBP6 0x40
2346 #define _IOCBP7 0x80
2348 //==============================================================================
2351 //==============================================================================
2354 extern __at(0x0395) __sfr IOCBN
;
2362 unsigned IOCBN4
: 1;
2363 unsigned IOCBN5
: 1;
2364 unsigned IOCBN6
: 1;
2365 unsigned IOCBN7
: 1;
2368 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits
;
2370 #define _IOCBN4 0x10
2371 #define _IOCBN5 0x20
2372 #define _IOCBN6 0x40
2373 #define _IOCBN7 0x80
2375 //==============================================================================
2378 //==============================================================================
2381 extern __at(0x0396) __sfr IOCBF
;
2389 unsigned IOCBF4
: 1;
2390 unsigned IOCBF5
: 1;
2391 unsigned IOCBF6
: 1;
2392 unsigned IOCBF7
: 1;
2395 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits
;
2397 #define _IOCBF4 0x10
2398 #define _IOCBF5 0x20
2399 #define _IOCBF6 0x40
2400 #define _IOCBF7 0x80
2402 //==============================================================================
2404 extern __at(0x0498) __sfr NCO1ACC
;
2406 //==============================================================================
2409 extern __at(0x0498) __sfr NCO1ACCL
;
2413 unsigned NCO1ACC0
: 1;
2414 unsigned NCO1ACC1
: 1;
2415 unsigned NCO1ACC2
: 1;
2416 unsigned NCO1ACC3
: 1;
2417 unsigned NCO1ACC4
: 1;
2418 unsigned NCO1ACC5
: 1;
2419 unsigned NCO1ACC6
: 1;
2420 unsigned NCO1ACC7
: 1;
2423 extern __at(0x0498) volatile __NCO1ACCLbits_t NCO1ACCLbits
;
2425 #define _NCO1ACC0 0x01
2426 #define _NCO1ACC1 0x02
2427 #define _NCO1ACC2 0x04
2428 #define _NCO1ACC3 0x08
2429 #define _NCO1ACC4 0x10
2430 #define _NCO1ACC5 0x20
2431 #define _NCO1ACC6 0x40
2432 #define _NCO1ACC7 0x80
2434 //==============================================================================
2437 //==============================================================================
2440 extern __at(0x0499) __sfr NCO1ACCH
;
2444 unsigned NCO1ACC8
: 1;
2445 unsigned NCO1ACC9
: 1;
2446 unsigned NCO1ACC10
: 1;
2447 unsigned NCO1ACC11
: 1;
2448 unsigned NCO1ACC12
: 1;
2449 unsigned NCO1ACC13
: 1;
2450 unsigned NCO1ACC14
: 1;
2451 unsigned NCO1ACC15
: 1;
2454 extern __at(0x0499) volatile __NCO1ACCHbits_t NCO1ACCHbits
;
2456 #define _NCO1ACC8 0x01
2457 #define _NCO1ACC9 0x02
2458 #define _NCO1ACC10 0x04
2459 #define _NCO1ACC11 0x08
2460 #define _NCO1ACC12 0x10
2461 #define _NCO1ACC13 0x20
2462 #define _NCO1ACC14 0x40
2463 #define _NCO1ACC15 0x80
2465 //==============================================================================
2468 //==============================================================================
2471 extern __at(0x049A) __sfr NCO1ACCU
;
2475 unsigned NCO1ACC16
: 1;
2476 unsigned NCO1ACC17
: 1;
2477 unsigned NCO1ACC18
: 1;
2478 unsigned NCO1ACC19
: 1;
2485 extern __at(0x049A) volatile __NCO1ACCUbits_t NCO1ACCUbits
;
2487 #define _NCO1ACC16 0x01
2488 #define _NCO1ACC17 0x02
2489 #define _NCO1ACC18 0x04
2490 #define _NCO1ACC19 0x08
2492 //==============================================================================
2494 extern __at(0x049B) __sfr NCO1INC
;
2496 //==============================================================================
2499 extern __at(0x049B) __sfr NCO1INCL
;
2503 unsigned NCO1INC0
: 1;
2504 unsigned NCO1INC1
: 1;
2505 unsigned NCO1INC2
: 1;
2506 unsigned NCO1INC3
: 1;
2507 unsigned NCO1INC4
: 1;
2508 unsigned NCO1INC5
: 1;
2509 unsigned NCO1INC6
: 1;
2510 unsigned NCO1INC7
: 1;
2513 extern __at(0x049B) volatile __NCO1INCLbits_t NCO1INCLbits
;
2515 #define _NCO1INC0 0x01
2516 #define _NCO1INC1 0x02
2517 #define _NCO1INC2 0x04
2518 #define _NCO1INC3 0x08
2519 #define _NCO1INC4 0x10
2520 #define _NCO1INC5 0x20
2521 #define _NCO1INC6 0x40
2522 #define _NCO1INC7 0x80
2524 //==============================================================================
2527 //==============================================================================
2530 extern __at(0x049C) __sfr NCO1INCH
;
2534 unsigned NCO1INC8
: 1;
2535 unsigned NCO1INC9
: 1;
2536 unsigned NCO1INC10
: 1;
2537 unsigned NCO1INC11
: 1;
2538 unsigned NCO1INC12
: 1;
2539 unsigned NCO1INC13
: 1;
2540 unsigned NCO1INC14
: 1;
2541 unsigned NCO1INC15
: 1;
2544 extern __at(0x049C) volatile __NCO1INCHbits_t NCO1INCHbits
;
2546 #define _NCO1INC8 0x01
2547 #define _NCO1INC9 0x02
2548 #define _NCO1INC10 0x04
2549 #define _NCO1INC11 0x08
2550 #define _NCO1INC12 0x10
2551 #define _NCO1INC13 0x20
2552 #define _NCO1INC14 0x40
2553 #define _NCO1INC15 0x80
2555 //==============================================================================
2557 extern __at(0x049D) __sfr NCO1INCU
;
2559 //==============================================================================
2562 extern __at(0x049E) __sfr NCO1CON
;
2576 extern __at(0x049E) volatile __NCO1CONbits_t NCO1CONbits
;
2584 //==============================================================================
2587 //==============================================================================
2590 extern __at(0x049F) __sfr NCO1CLK
;
2596 unsigned N1CKS0
: 1;
2597 unsigned N1CKS1
: 1;
2601 unsigned N1PWS0
: 1;
2602 unsigned N1PWS1
: 1;
2603 unsigned N1PWS2
: 1;
2619 extern __at(0x049F) volatile __NCO1CLKbits_t NCO1CLKbits
;
2621 #define _N1CKS0 0x01
2622 #define _N1CKS1 0x02
2623 #define _N1PWS0 0x20
2624 #define _N1PWS1 0x40
2625 #define _N1PWS2 0x80
2627 //==============================================================================
2630 //==============================================================================
2633 extern __at(0x0611) __sfr PWM1DCL
;
2645 unsigned PWM1DCL0
: 1;
2646 unsigned PWM1DCL1
: 1;
2652 unsigned PWM1DCL
: 2;
2656 extern __at(0x0611) volatile __PWM1DCLbits_t PWM1DCLbits
;
2658 #define _PWM1DCL0 0x40
2659 #define _PWM1DCL1 0x80
2661 //==============================================================================
2664 //==============================================================================
2667 extern __at(0x0612) __sfr PWM1DCH
;
2671 unsigned PWM1DCH0
: 1;
2672 unsigned PWM1DCH1
: 1;
2673 unsigned PWM1DCH2
: 1;
2674 unsigned PWM1DCH3
: 1;
2675 unsigned PWM1DCH4
: 1;
2676 unsigned PWM1DCH5
: 1;
2677 unsigned PWM1DCH6
: 1;
2678 unsigned PWM1DCH7
: 1;
2681 extern __at(0x0612) volatile __PWM1DCHbits_t PWM1DCHbits
;
2683 #define _PWM1DCH0 0x01
2684 #define _PWM1DCH1 0x02
2685 #define _PWM1DCH2 0x04
2686 #define _PWM1DCH3 0x08
2687 #define _PWM1DCH4 0x10
2688 #define _PWM1DCH5 0x20
2689 #define _PWM1DCH6 0x40
2690 #define _PWM1DCH7 0x80
2692 //==============================================================================
2695 //==============================================================================
2698 extern __at(0x0613) __sfr PWM1CON
;
2706 unsigned PWM1POL
: 1;
2707 unsigned PWM1OUT
: 1;
2708 unsigned PWM1OE
: 1;
2709 unsigned PWM1EN
: 1;
2712 extern __at(0x0613) volatile __PWM1CONbits_t PWM1CONbits
;
2714 #define _PWM1POL 0x10
2715 #define _PWM1OUT 0x20
2716 #define _PWM1OE 0x40
2717 #define _PWM1EN 0x80
2719 //==============================================================================
2722 //==============================================================================
2725 extern __at(0x0613) __sfr PWM1CON0
;
2733 unsigned PWM1POL
: 1;
2734 unsigned PWM1OUT
: 1;
2735 unsigned PWM1OE
: 1;
2736 unsigned PWM1EN
: 1;
2739 extern __at(0x0613) volatile __PWM1CON0bits_t PWM1CON0bits
;
2741 #define _PWM1CON0_PWM1POL 0x10
2742 #define _PWM1CON0_PWM1OUT 0x20
2743 #define _PWM1CON0_PWM1OE 0x40
2744 #define _PWM1CON0_PWM1EN 0x80
2746 //==============================================================================
2749 //==============================================================================
2752 extern __at(0x0614) __sfr PWM2DCL
;
2764 unsigned PWM2DCL0
: 1;
2765 unsigned PWM2DCL1
: 1;
2771 unsigned PWM2DCL
: 2;
2775 extern __at(0x0614) volatile __PWM2DCLbits_t PWM2DCLbits
;
2777 #define _PWM2DCL0 0x40
2778 #define _PWM2DCL1 0x80
2780 //==============================================================================
2783 //==============================================================================
2786 extern __at(0x0615) __sfr PWM2DCH
;
2790 unsigned PWM2DCH0
: 1;
2791 unsigned PWM2DCH1
: 1;
2792 unsigned PWM2DCH2
: 1;
2793 unsigned PWM2DCH3
: 1;
2794 unsigned PWM2DCH4
: 1;
2795 unsigned PWM2DCH5
: 1;
2796 unsigned PWM2DCH6
: 1;
2797 unsigned PWM2DCH7
: 1;
2800 extern __at(0x0615) volatile __PWM2DCHbits_t PWM2DCHbits
;
2802 #define _PWM2DCH0 0x01
2803 #define _PWM2DCH1 0x02
2804 #define _PWM2DCH2 0x04
2805 #define _PWM2DCH3 0x08
2806 #define _PWM2DCH4 0x10
2807 #define _PWM2DCH5 0x20
2808 #define _PWM2DCH6 0x40
2809 #define _PWM2DCH7 0x80
2811 //==============================================================================
2814 //==============================================================================
2817 extern __at(0x0616) __sfr PWM2CON
;
2825 unsigned PWM2POL
: 1;
2826 unsigned PWM2OUT
: 1;
2827 unsigned PWM2OE
: 1;
2828 unsigned PWM2EN
: 1;
2831 extern __at(0x0616) volatile __PWM2CONbits_t PWM2CONbits
;
2833 #define _PWM2POL 0x10
2834 #define _PWM2OUT 0x20
2835 #define _PWM2OE 0x40
2836 #define _PWM2EN 0x80
2838 //==============================================================================
2841 //==============================================================================
2844 extern __at(0x0616) __sfr PWM2CON0
;
2852 unsigned PWM2POL
: 1;
2853 unsigned PWM2OUT
: 1;
2854 unsigned PWM2OE
: 1;
2855 unsigned PWM2EN
: 1;
2858 extern __at(0x0616) volatile __PWM2CON0bits_t PWM2CON0bits
;
2860 #define _PWM2CON0_PWM2POL 0x10
2861 #define _PWM2CON0_PWM2OUT 0x20
2862 #define _PWM2CON0_PWM2OE 0x40
2863 #define _PWM2CON0_PWM2EN 0x80
2865 //==============================================================================
2868 //==============================================================================
2871 extern __at(0x0617) __sfr PWM3DCL
;
2883 unsigned PWM3DCL0
: 1;
2884 unsigned PWM3DCL1
: 1;
2890 unsigned PWM3DCL
: 2;
2894 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits
;
2896 #define _PWM3DCL0 0x40
2897 #define _PWM3DCL1 0x80
2899 //==============================================================================
2902 //==============================================================================
2905 extern __at(0x0618) __sfr PWM3DCH
;
2909 unsigned PWM3DCH0
: 1;
2910 unsigned PWM3DCH1
: 1;
2911 unsigned PWM3DCH2
: 1;
2912 unsigned PWM3DCH3
: 1;
2913 unsigned PWM3DCH4
: 1;
2914 unsigned PWM3DCH5
: 1;
2915 unsigned PWM3DCH6
: 1;
2916 unsigned PWM3DCH7
: 1;
2919 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits
;
2921 #define _PWM3DCH0 0x01
2922 #define _PWM3DCH1 0x02
2923 #define _PWM3DCH2 0x04
2924 #define _PWM3DCH3 0x08
2925 #define _PWM3DCH4 0x10
2926 #define _PWM3DCH5 0x20
2927 #define _PWM3DCH6 0x40
2928 #define _PWM3DCH7 0x80
2930 //==============================================================================
2933 //==============================================================================
2936 extern __at(0x0619) __sfr PWM3CON
;
2944 unsigned PWM3POL
: 1;
2945 unsigned PWM3OUT
: 1;
2946 unsigned PWM3OE
: 1;
2947 unsigned PWM3EN
: 1;
2950 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits
;
2952 #define _PWM3POL 0x10
2953 #define _PWM3OUT 0x20
2954 #define _PWM3OE 0x40
2955 #define _PWM3EN 0x80
2957 //==============================================================================
2960 //==============================================================================
2963 extern __at(0x0619) __sfr PWM3CON0
;
2971 unsigned PWM3POL
: 1;
2972 unsigned PWM3OUT
: 1;
2973 unsigned PWM3OE
: 1;
2974 unsigned PWM3EN
: 1;
2977 extern __at(0x0619) volatile __PWM3CON0bits_t PWM3CON0bits
;
2979 #define _PWM3CON0_PWM3POL 0x10
2980 #define _PWM3CON0_PWM3OUT 0x20
2981 #define _PWM3CON0_PWM3OE 0x40
2982 #define _PWM3CON0_PWM3EN 0x80
2984 //==============================================================================
2987 //==============================================================================
2990 extern __at(0x061A) __sfr PWM4DCL
;
3002 unsigned PWM4DCL0
: 1;
3003 unsigned PWM4DCL1
: 1;
3009 unsigned PWM4DCL
: 2;
3013 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits
;
3015 #define _PWM4DCL0 0x40
3016 #define _PWM4DCL1 0x80
3018 //==============================================================================
3021 //==============================================================================
3024 extern __at(0x061B) __sfr PWM4DCH
;
3028 unsigned PWM4DCH0
: 1;
3029 unsigned PWM4DCH1
: 1;
3030 unsigned PWM4DCH2
: 1;
3031 unsigned PWM4DCH3
: 1;
3032 unsigned PWM4DCH4
: 1;
3033 unsigned PWM4DCH5
: 1;
3034 unsigned PWM4DCH6
: 1;
3035 unsigned PWM4DCH7
: 1;
3038 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits
;
3040 #define _PWM4DCH0 0x01
3041 #define _PWM4DCH1 0x02
3042 #define _PWM4DCH2 0x04
3043 #define _PWM4DCH3 0x08
3044 #define _PWM4DCH4 0x10
3045 #define _PWM4DCH5 0x20
3046 #define _PWM4DCH6 0x40
3047 #define _PWM4DCH7 0x80
3049 //==============================================================================
3052 //==============================================================================
3055 extern __at(0x061C) __sfr PWM4CON
;
3063 unsigned PWM4POL
: 1;
3064 unsigned PWM4OUT
: 1;
3065 unsigned PWM4OE
: 1;
3066 unsigned PWM4EN
: 1;
3069 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits
;
3071 #define _PWM4POL 0x10
3072 #define _PWM4OUT 0x20
3073 #define _PWM4OE 0x40
3074 #define _PWM4EN 0x80
3076 //==============================================================================
3079 //==============================================================================
3082 extern __at(0x061C) __sfr PWM4CON0
;
3090 unsigned PWM4POL
: 1;
3091 unsigned PWM4OUT
: 1;
3092 unsigned PWM4OE
: 1;
3093 unsigned PWM4EN
: 1;
3096 extern __at(0x061C) volatile __PWM4CON0bits_t PWM4CON0bits
;
3098 #define _PWM4CON0_PWM4POL 0x10
3099 #define _PWM4CON0_PWM4OUT 0x20
3100 #define _PWM4CON0_PWM4OE 0x40
3101 #define _PWM4CON0_PWM4EN 0x80
3103 //==============================================================================
3106 //==============================================================================
3109 extern __at(0x0691) __sfr CWG1DBR
;
3115 unsigned CWG1DBR0
: 1;
3116 unsigned CWG1DBR1
: 1;
3117 unsigned CWG1DBR2
: 1;
3118 unsigned CWG1DBR3
: 1;
3119 unsigned CWG1DBR4
: 1;
3120 unsigned CWG1DBR5
: 1;
3127 unsigned CWG1DBR
: 6;
3132 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits
;
3134 #define _CWG1DBR0 0x01
3135 #define _CWG1DBR1 0x02
3136 #define _CWG1DBR2 0x04
3137 #define _CWG1DBR3 0x08
3138 #define _CWG1DBR4 0x10
3139 #define _CWG1DBR5 0x20
3141 //==============================================================================
3144 //==============================================================================
3147 extern __at(0x0692) __sfr CWG1DBF
;
3153 unsigned CWG1DBF0
: 1;
3154 unsigned CWG1DBF1
: 1;
3155 unsigned CWG1DBF2
: 1;
3156 unsigned CWG1DBF3
: 1;
3157 unsigned CWG1DBF4
: 1;
3158 unsigned CWG1DBF5
: 1;
3165 unsigned CWG1DBF
: 6;
3170 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits
;
3172 #define _CWG1DBF0 0x01
3173 #define _CWG1DBF1 0x02
3174 #define _CWG1DBF2 0x04
3175 #define _CWG1DBF3 0x08
3176 #define _CWG1DBF4 0x10
3177 #define _CWG1DBF5 0x20
3179 //==============================================================================
3182 //==============================================================================
3185 extern __at(0x0693) __sfr CWG1CON0
;
3192 unsigned G1POLA
: 1;
3193 unsigned G1POLB
: 1;
3199 extern __at(0x0693) volatile __CWG1CON0bits_t CWG1CON0bits
;
3202 #define _G1POLA 0x08
3203 #define _G1POLB 0x10
3208 //==============================================================================
3211 //==============================================================================
3214 extern __at(0x0694) __sfr CWG1CON1
;
3224 unsigned G1ASDLA0
: 1;
3225 unsigned G1ASDLA1
: 1;
3226 unsigned G1ASDLB0
: 1;
3227 unsigned G1ASDLB1
: 1;
3239 unsigned G1ASDLA
: 2;
3246 unsigned G1ASDLB
: 2;
3250 extern __at(0x0694) volatile __CWG1CON1bits_t CWG1CON1bits
;
3255 #define _G1ASDLA0 0x10
3256 #define _G1ASDLA1 0x20
3257 #define _G1ASDLB0 0x40
3258 #define _G1ASDLB1 0x80
3260 //==============================================================================
3263 //==============================================================================
3266 extern __at(0x0695) __sfr CWG1CON2
;
3270 unsigned G1ASDSCLC2
: 1;
3271 unsigned G1ASDSFLT
: 1;
3272 unsigned G1ASDSC1
: 1;
3273 unsigned G1ASDSC2
: 1;
3276 unsigned G1ARSEN
: 1;
3280 extern __at(0x0695) volatile __CWG1CON2bits_t CWG1CON2bits
;
3282 #define _G1ASDSCLC2 0x01
3283 #define _G1ASDSFLT 0x02
3284 #define _G1ASDSC1 0x04
3285 #define _G1ASDSC2 0x08
3286 #define _G1ARSEN 0x40
3289 //==============================================================================
3292 //==============================================================================
3295 extern __at(0x0F0F) __sfr CLCDATA
;
3299 unsigned MCLC1OUT
: 1;
3300 unsigned MCLC2OUT
: 1;
3301 unsigned MCLC3OUT
: 1;
3302 unsigned MCLC4OUT
: 1;
3309 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits
;
3311 #define _MCLC1OUT 0x01
3312 #define _MCLC2OUT 0x02
3313 #define _MCLC3OUT 0x04
3314 #define _MCLC4OUT 0x08
3316 //==============================================================================
3319 //==============================================================================
3322 extern __at(0x0F10) __sfr CLC1CON
;
3328 unsigned LC1MODE0
: 1;
3329 unsigned LC1MODE1
: 1;
3330 unsigned LC1MODE2
: 1;
3331 unsigned LC1INTN
: 1;
3332 unsigned LC1INTP
: 1;
3333 unsigned LC1OUT
: 1;
3340 unsigned LCMODE0
: 1;
3341 unsigned LCMODE1
: 1;
3342 unsigned LCMODE2
: 1;
3343 unsigned LCINTN
: 1;
3344 unsigned LCINTP
: 1;
3352 unsigned LCMODE
: 3;
3358 unsigned LC1MODE
: 3;
3363 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits
;
3365 #define _LC1MODE0 0x01
3366 #define _LCMODE0 0x01
3367 #define _LC1MODE1 0x02
3368 #define _LCMODE1 0x02
3369 #define _LC1MODE2 0x04
3370 #define _LCMODE2 0x04
3371 #define _LC1INTN 0x08
3372 #define _LCINTN 0x08
3373 #define _LC1INTP 0x10
3374 #define _LCINTP 0x10
3375 #define _LC1OUT 0x20
3382 //==============================================================================
3385 //==============================================================================
3388 extern __at(0x0F11) __sfr CLC1POL
;
3394 unsigned LC1G1POL
: 1;
3395 unsigned LC1G2POL
: 1;
3396 unsigned LC1G3POL
: 1;
3397 unsigned LC1G4POL
: 1;
3401 unsigned LC1POL
: 1;
3417 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits
;
3419 #define _LC1G1POL 0x01
3421 #define _LC1G2POL 0x02
3423 #define _LC1G3POL 0x04
3425 #define _LC1G4POL 0x08
3427 #define _LC1POL 0x80
3430 //==============================================================================
3433 //==============================================================================
3436 extern __at(0x0F12) __sfr CLC1SEL0
;
3442 unsigned LC1D1S0
: 1;
3443 unsigned LC1D1S1
: 1;
3444 unsigned LC1D1S2
: 1;
3446 unsigned LC1D2S0
: 1;
3447 unsigned LC1D2S1
: 1;
3448 unsigned LC1D2S2
: 1;
3466 unsigned LC1D1S
: 3;
3486 unsigned LC1D2S
: 3;
3491 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits
;
3493 #define _LC1D1S0 0x01
3495 #define _LC1D1S1 0x02
3497 #define _LC1D1S2 0x04
3499 #define _LC1D2S0 0x10
3501 #define _LC1D2S1 0x20
3503 #define _LC1D2S2 0x40
3506 //==============================================================================
3509 //==============================================================================
3512 extern __at(0x0F13) __sfr CLC1SEL1
;
3518 unsigned LC1D3S0
: 1;
3519 unsigned LC1D3S1
: 1;
3520 unsigned LC1D3S2
: 1;
3522 unsigned LC1D4S0
: 1;
3523 unsigned LC1D4S1
: 1;
3524 unsigned LC1D4S2
: 1;
3548 unsigned LC1D3S
: 3;
3555 unsigned LC1D4S
: 3;
3567 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits
;
3569 #define _LC1D3S0 0x01
3571 #define _LC1D3S1 0x02
3573 #define _LC1D3S2 0x04
3575 #define _LC1D4S0 0x10
3577 #define _LC1D4S1 0x20
3579 #define _LC1D4S2 0x40
3582 //==============================================================================
3585 //==============================================================================
3588 extern __at(0x0F14) __sfr CLC1GLS0
;
3594 unsigned LC1G1D1N
: 1;
3595 unsigned LC1G1D1T
: 1;
3596 unsigned LC1G1D2N
: 1;
3597 unsigned LC1G1D2T
: 1;
3598 unsigned LC1G1D3N
: 1;
3599 unsigned LC1G1D3T
: 1;
3600 unsigned LC1G1D4N
: 1;
3601 unsigned LC1G1D4T
: 1;
3617 extern __at(0x0F14) volatile __CLC1GLS0bits_t CLC1GLS0bits
;
3619 #define _LC1G1D1N 0x01
3621 #define _LC1G1D1T 0x02
3623 #define _LC1G1D2N 0x04
3625 #define _LC1G1D2T 0x08
3627 #define _LC1G1D3N 0x10
3629 #define _LC1G1D3T 0x20
3631 #define _LC1G1D4N 0x40
3633 #define _LC1G1D4T 0x80
3636 //==============================================================================
3639 //==============================================================================
3642 extern __at(0x0F15) __sfr CLC1GLS1
;
3648 unsigned LC1G2D1N
: 1;
3649 unsigned LC1G2D1T
: 1;
3650 unsigned LC1G2D2N
: 1;
3651 unsigned LC1G2D2T
: 1;
3652 unsigned LC1G2D3N
: 1;
3653 unsigned LC1G2D3T
: 1;
3654 unsigned LC1G2D4N
: 1;
3655 unsigned LC1G2D4T
: 1;
3671 extern __at(0x0F15) volatile __CLC1GLS1bits_t CLC1GLS1bits
;
3673 #define _CLC1GLS1_LC1G2D1N 0x01
3674 #define _CLC1GLS1_D1N 0x01
3675 #define _CLC1GLS1_LC1G2D1T 0x02
3676 #define _CLC1GLS1_D1T 0x02
3677 #define _CLC1GLS1_LC1G2D2N 0x04
3678 #define _CLC1GLS1_D2N 0x04
3679 #define _CLC1GLS1_LC1G2D2T 0x08
3680 #define _CLC1GLS1_D2T 0x08
3681 #define _CLC1GLS1_LC1G2D3N 0x10
3682 #define _CLC1GLS1_D3N 0x10
3683 #define _CLC1GLS1_LC1G2D3T 0x20
3684 #define _CLC1GLS1_D3T 0x20
3685 #define _CLC1GLS1_LC1G2D4N 0x40
3686 #define _CLC1GLS1_D4N 0x40
3687 #define _CLC1GLS1_LC1G2D4T 0x80
3688 #define _CLC1GLS1_D4T 0x80
3690 //==============================================================================
3693 //==============================================================================
3696 extern __at(0x0F16) __sfr CLC1GLS2
;
3702 unsigned LC1G3D1N
: 1;
3703 unsigned LC1G3D1T
: 1;
3704 unsigned LC1G3D2N
: 1;
3705 unsigned LC1G3D2T
: 1;
3706 unsigned LC1G3D3N
: 1;
3707 unsigned LC1G3D3T
: 1;
3708 unsigned LC1G3D4N
: 1;
3709 unsigned LC1G3D4T
: 1;
3725 extern __at(0x0F16) volatile __CLC1GLS2bits_t CLC1GLS2bits
;
3727 #define _CLC1GLS2_LC1G3D1N 0x01
3728 #define _CLC1GLS2_D1N 0x01
3729 #define _CLC1GLS2_LC1G3D1T 0x02
3730 #define _CLC1GLS2_D1T 0x02
3731 #define _CLC1GLS2_LC1G3D2N 0x04
3732 #define _CLC1GLS2_D2N 0x04
3733 #define _CLC1GLS2_LC1G3D2T 0x08
3734 #define _CLC1GLS2_D2T 0x08
3735 #define _CLC1GLS2_LC1G3D3N 0x10
3736 #define _CLC1GLS2_D3N 0x10
3737 #define _CLC1GLS2_LC1G3D3T 0x20
3738 #define _CLC1GLS2_D3T 0x20
3739 #define _CLC1GLS2_LC1G3D4N 0x40
3740 #define _CLC1GLS2_D4N 0x40
3741 #define _CLC1GLS2_LC1G3D4T 0x80
3742 #define _CLC1GLS2_D4T 0x80
3744 //==============================================================================
3747 //==============================================================================
3750 extern __at(0x0F17) __sfr CLC1GLS3
;
3756 unsigned LC1G4D1N
: 1;
3757 unsigned LC1G4D1T
: 1;
3758 unsigned LC1G4D2N
: 1;
3759 unsigned LC1G4D2T
: 1;
3760 unsigned LC1G4D3N
: 1;
3761 unsigned LC1G4D3T
: 1;
3762 unsigned LC1G4D4N
: 1;
3763 unsigned LC1G4D4T
: 1;
3779 extern __at(0x0F17) volatile __CLC1GLS3bits_t CLC1GLS3bits
;
3781 #define _LC1G4D1N 0x01
3783 #define _LC1G4D1T 0x02
3785 #define _LC1G4D2N 0x04
3787 #define _LC1G4D2T 0x08
3789 #define _LC1G4D3N 0x10
3791 #define _LC1G4D3T 0x20
3793 #define _LC1G4D4N 0x40
3795 #define _LC1G4D4T 0x80
3798 //==============================================================================
3801 //==============================================================================
3804 extern __at(0x0F18) __sfr CLC2CON
;
3810 unsigned LC2MODE0
: 1;
3811 unsigned LC2MODE1
: 1;
3812 unsigned LC2MODE2
: 1;
3813 unsigned LC2INTN
: 1;
3814 unsigned LC2INTP
: 1;
3815 unsigned LC2OUT
: 1;
3822 unsigned LCMODE0
: 1;
3823 unsigned LCMODE1
: 1;
3824 unsigned LCMODE2
: 1;
3825 unsigned LCINTN
: 1;
3826 unsigned LCINTP
: 1;
3834 unsigned LC2MODE
: 3;
3840 unsigned LCMODE
: 3;
3845 extern __at(0x0F18) volatile __CLC2CONbits_t CLC2CONbits
;
3847 #define _CLC2CON_LC2MODE0 0x01
3848 #define _CLC2CON_LCMODE0 0x01
3849 #define _CLC2CON_LC2MODE1 0x02
3850 #define _CLC2CON_LCMODE1 0x02
3851 #define _CLC2CON_LC2MODE2 0x04
3852 #define _CLC2CON_LCMODE2 0x04
3853 #define _CLC2CON_LC2INTN 0x08
3854 #define _CLC2CON_LCINTN 0x08
3855 #define _CLC2CON_LC2INTP 0x10
3856 #define _CLC2CON_LCINTP 0x10
3857 #define _CLC2CON_LC2OUT 0x20
3858 #define _CLC2CON_LCOUT 0x20
3859 #define _CLC2CON_LC2OE 0x40
3860 #define _CLC2CON_LCOE 0x40
3861 #define _CLC2CON_LC2EN 0x80
3862 #define _CLC2CON_LCEN 0x80
3864 //==============================================================================
3867 //==============================================================================
3870 extern __at(0x0F19) __sfr CLC2POL
;
3876 unsigned LC2G1POL
: 1;
3877 unsigned LC2G2POL
: 1;
3878 unsigned LC2G3POL
: 1;
3879 unsigned LC2G4POL
: 1;
3883 unsigned LC2POL
: 1;
3899 extern __at(0x0F19) volatile __CLC2POLbits_t CLC2POLbits
;
3901 #define _CLC2POL_LC2G1POL 0x01
3902 #define _CLC2POL_G1POL 0x01
3903 #define _CLC2POL_LC2G2POL 0x02
3904 #define _CLC2POL_G2POL 0x02
3905 #define _CLC2POL_LC2G3POL 0x04
3906 #define _CLC2POL_G3POL 0x04
3907 #define _CLC2POL_LC2G4POL 0x08
3908 #define _CLC2POL_G4POL 0x08
3909 #define _CLC2POL_LC2POL 0x80
3910 #define _CLC2POL_POL 0x80
3912 //==============================================================================
3915 //==============================================================================
3918 extern __at(0x0F1A) __sfr CLC2SEL0
;
3924 unsigned LC2D1S0
: 1;
3925 unsigned LC2D1S1
: 1;
3926 unsigned LC2D1S2
: 1;
3928 unsigned LC2D2S0
: 1;
3929 unsigned LC2D2S1
: 1;
3930 unsigned LC2D2S2
: 1;
3948 unsigned LC2D1S
: 3;
3968 unsigned LC2D2S
: 3;
3973 extern __at(0x0F1A) volatile __CLC2SEL0bits_t CLC2SEL0bits
;
3975 #define _CLC2SEL0_LC2D1S0 0x01
3976 #define _CLC2SEL0_D1S0 0x01
3977 #define _CLC2SEL0_LC2D1S1 0x02
3978 #define _CLC2SEL0_D1S1 0x02
3979 #define _CLC2SEL0_LC2D1S2 0x04
3980 #define _CLC2SEL0_D1S2 0x04
3981 #define _CLC2SEL0_LC2D2S0 0x10
3982 #define _CLC2SEL0_D2S0 0x10
3983 #define _CLC2SEL0_LC2D2S1 0x20
3984 #define _CLC2SEL0_D2S1 0x20
3985 #define _CLC2SEL0_LC2D2S2 0x40
3986 #define _CLC2SEL0_D2S2 0x40
3988 //==============================================================================
3991 //==============================================================================
3994 extern __at(0x0F1B) __sfr CLC2SEL1
;
4000 unsigned LC2D3S0
: 1;
4001 unsigned LC2D3S1
: 1;
4002 unsigned LC2D3S2
: 1;
4004 unsigned LC2D4S0
: 1;
4005 unsigned LC2D4S1
: 1;
4006 unsigned LC2D4S2
: 1;
4024 unsigned LC2D3S
: 3;
4037 unsigned LC2D4S
: 3;
4049 extern __at(0x0F1B) volatile __CLC2SEL1bits_t CLC2SEL1bits
;
4051 #define _CLC2SEL1_LC2D3S0 0x01
4052 #define _CLC2SEL1_D3S0 0x01
4053 #define _CLC2SEL1_LC2D3S1 0x02
4054 #define _CLC2SEL1_D3S1 0x02
4055 #define _CLC2SEL1_LC2D3S2 0x04
4056 #define _CLC2SEL1_D3S2 0x04
4057 #define _CLC2SEL1_LC2D4S0 0x10
4058 #define _CLC2SEL1_D4S0 0x10
4059 #define _CLC2SEL1_LC2D4S1 0x20
4060 #define _CLC2SEL1_D4S1 0x20
4061 #define _CLC2SEL1_LC2D4S2 0x40
4062 #define _CLC2SEL1_D4S2 0x40
4064 //==============================================================================
4067 //==============================================================================
4070 extern __at(0x0F1C) __sfr CLC2GLS0
;
4076 unsigned LC2G1D1N
: 1;
4077 unsigned LC2G1D1T
: 1;
4078 unsigned LC2G1D2N
: 1;
4079 unsigned LC2G1D2T
: 1;
4080 unsigned LC2G1D3N
: 1;
4081 unsigned LC2G1D3T
: 1;
4082 unsigned LC2G1D4N
: 1;
4083 unsigned LC2G1D4T
: 1;
4099 extern __at(0x0F1C) volatile __CLC2GLS0bits_t CLC2GLS0bits
;
4101 #define _CLC2GLS0_LC2G1D1N 0x01
4102 #define _CLC2GLS0_D1N 0x01
4103 #define _CLC2GLS0_LC2G1D1T 0x02
4104 #define _CLC2GLS0_D1T 0x02
4105 #define _CLC2GLS0_LC2G1D2N 0x04
4106 #define _CLC2GLS0_D2N 0x04
4107 #define _CLC2GLS0_LC2G1D2T 0x08
4108 #define _CLC2GLS0_D2T 0x08
4109 #define _CLC2GLS0_LC2G1D3N 0x10
4110 #define _CLC2GLS0_D3N 0x10
4111 #define _CLC2GLS0_LC2G1D3T 0x20
4112 #define _CLC2GLS0_D3T 0x20
4113 #define _CLC2GLS0_LC2G1D4N 0x40
4114 #define _CLC2GLS0_D4N 0x40
4115 #define _CLC2GLS0_LC2G1D4T 0x80
4116 #define _CLC2GLS0_D4T 0x80
4118 //==============================================================================
4121 //==============================================================================
4124 extern __at(0x0F1D) __sfr CLC2GLS1
;
4130 unsigned LC2G2D1N
: 1;
4131 unsigned LC2G2D1T
: 1;
4132 unsigned LC2G2D2N
: 1;
4133 unsigned LC2G2D2T
: 1;
4134 unsigned LC2G2D3N
: 1;
4135 unsigned LC2G2D3T
: 1;
4136 unsigned LC2G2D4N
: 1;
4137 unsigned LC2G2D4T
: 1;
4153 extern __at(0x0F1D) volatile __CLC2GLS1bits_t CLC2GLS1bits
;
4155 #define _CLC2GLS1_LC2G2D1N 0x01
4156 #define _CLC2GLS1_D1N 0x01
4157 #define _CLC2GLS1_LC2G2D1T 0x02
4158 #define _CLC2GLS1_D1T 0x02
4159 #define _CLC2GLS1_LC2G2D2N 0x04
4160 #define _CLC2GLS1_D2N 0x04
4161 #define _CLC2GLS1_LC2G2D2T 0x08
4162 #define _CLC2GLS1_D2T 0x08
4163 #define _CLC2GLS1_LC2G2D3N 0x10
4164 #define _CLC2GLS1_D3N 0x10
4165 #define _CLC2GLS1_LC2G2D3T 0x20
4166 #define _CLC2GLS1_D3T 0x20
4167 #define _CLC2GLS1_LC2G2D4N 0x40
4168 #define _CLC2GLS1_D4N 0x40
4169 #define _CLC2GLS1_LC2G2D4T 0x80
4170 #define _CLC2GLS1_D4T 0x80
4172 //==============================================================================
4175 //==============================================================================
4178 extern __at(0x0F1E) __sfr CLC2GLS2
;
4184 unsigned LC2G3D1N
: 1;
4185 unsigned LC2G3D1T
: 1;
4186 unsigned LC2G3D2N
: 1;
4187 unsigned LC2G3D2T
: 1;
4188 unsigned LC2G3D3N
: 1;
4189 unsigned LC2G3D3T
: 1;
4190 unsigned LC2G3D4N
: 1;
4191 unsigned LC2G3D4T
: 1;
4207 extern __at(0x0F1E) volatile __CLC2GLS2bits_t CLC2GLS2bits
;
4209 #define _CLC2GLS2_LC2G3D1N 0x01
4210 #define _CLC2GLS2_D1N 0x01
4211 #define _CLC2GLS2_LC2G3D1T 0x02
4212 #define _CLC2GLS2_D1T 0x02
4213 #define _CLC2GLS2_LC2G3D2N 0x04
4214 #define _CLC2GLS2_D2N 0x04
4215 #define _CLC2GLS2_LC2G3D2T 0x08
4216 #define _CLC2GLS2_D2T 0x08
4217 #define _CLC2GLS2_LC2G3D3N 0x10
4218 #define _CLC2GLS2_D3N 0x10
4219 #define _CLC2GLS2_LC2G3D3T 0x20
4220 #define _CLC2GLS2_D3T 0x20
4221 #define _CLC2GLS2_LC2G3D4N 0x40
4222 #define _CLC2GLS2_D4N 0x40
4223 #define _CLC2GLS2_LC2G3D4T 0x80
4224 #define _CLC2GLS2_D4T 0x80
4226 //==============================================================================
4229 //==============================================================================
4232 extern __at(0x0F1F) __sfr CLC2GLS3
;
4238 unsigned LC2G4D1N
: 1;
4239 unsigned LC2G4D1T
: 1;
4240 unsigned LC2G4D2N
: 1;
4241 unsigned LC2G4D2T
: 1;
4242 unsigned LC2G4D3N
: 1;
4243 unsigned LC2G4D3T
: 1;
4244 unsigned LC2G4D4N
: 1;
4245 unsigned LC2G4D4T
: 1;
4261 extern __at(0x0F1F) volatile __CLC2GLS3bits_t CLC2GLS3bits
;
4263 #define _CLC2GLS3_LC2G4D1N 0x01
4264 #define _CLC2GLS3_G4D1N 0x01
4265 #define _CLC2GLS3_LC2G4D1T 0x02
4266 #define _CLC2GLS3_G4D1T 0x02
4267 #define _CLC2GLS3_LC2G4D2N 0x04
4268 #define _CLC2GLS3_G4D2N 0x04
4269 #define _CLC2GLS3_LC2G4D2T 0x08
4270 #define _CLC2GLS3_G4D2T 0x08
4271 #define _CLC2GLS3_LC2G4D3N 0x10
4272 #define _CLC2GLS3_G4D3N 0x10
4273 #define _CLC2GLS3_LC2G4D3T 0x20
4274 #define _CLC2GLS3_G4D3T 0x20
4275 #define _CLC2GLS3_LC2G4D4N 0x40
4276 #define _CLC2GLS3_G4D4N 0x40
4277 #define _CLC2GLS3_LC2G4D4T 0x80
4278 #define _CLC2GLS3_G4D4T 0x80
4280 //==============================================================================
4283 //==============================================================================
4286 extern __at(0x0F20) __sfr CLC3CON
;
4292 unsigned LC3MODE0
: 1;
4293 unsigned LC3MODE1
: 1;
4294 unsigned LC3MODE2
: 1;
4295 unsigned LC3INTN
: 1;
4296 unsigned LC3INTP
: 1;
4297 unsigned LC3OUT
: 1;
4304 unsigned LCMODE0
: 1;
4305 unsigned LCMODE1
: 1;
4306 unsigned LCMODE2
: 1;
4307 unsigned LCINTN
: 1;
4308 unsigned LCINTP
: 1;
4316 unsigned LC3MODE
: 3;
4322 unsigned LCMODE
: 3;
4327 extern __at(0x0F20) volatile __CLC3CONbits_t CLC3CONbits
;
4329 #define _CLC3CON_LC3MODE0 0x01
4330 #define _CLC3CON_LCMODE0 0x01
4331 #define _CLC3CON_LC3MODE1 0x02
4332 #define _CLC3CON_LCMODE1 0x02
4333 #define _CLC3CON_LC3MODE2 0x04
4334 #define _CLC3CON_LCMODE2 0x04
4335 #define _CLC3CON_LC3INTN 0x08
4336 #define _CLC3CON_LCINTN 0x08
4337 #define _CLC3CON_LC3INTP 0x10
4338 #define _CLC3CON_LCINTP 0x10
4339 #define _CLC3CON_LC3OUT 0x20
4340 #define _CLC3CON_LCOUT 0x20
4341 #define _CLC3CON_LC3OE 0x40
4342 #define _CLC3CON_LCOE 0x40
4343 #define _CLC3CON_LC3EN 0x80
4344 #define _CLC3CON_LCEN 0x80
4346 //==============================================================================
4349 //==============================================================================
4352 extern __at(0x0F21) __sfr CLC3POL
;
4358 unsigned LC3G1POL
: 1;
4359 unsigned LC3G2POL
: 1;
4360 unsigned LC3G3POL
: 1;
4361 unsigned LC3G4POL
: 1;
4365 unsigned LC3POL
: 1;
4381 extern __at(0x0F21) volatile __CLC3POLbits_t CLC3POLbits
;
4383 #define _CLC3POL_LC3G1POL 0x01
4384 #define _CLC3POL_G1POL 0x01
4385 #define _CLC3POL_LC3G2POL 0x02
4386 #define _CLC3POL_G2POL 0x02
4387 #define _CLC3POL_LC3G3POL 0x04
4388 #define _CLC3POL_G3POL 0x04
4389 #define _CLC3POL_LC3G4POL 0x08
4390 #define _CLC3POL_G4POL 0x08
4391 #define _CLC3POL_LC3POL 0x80
4392 #define _CLC3POL_POL 0x80
4394 //==============================================================================
4397 //==============================================================================
4400 extern __at(0x0F22) __sfr CLC3SEL0
;
4406 unsigned LC3D1S0
: 1;
4407 unsigned LC3D1S1
: 1;
4408 unsigned LC3D1S2
: 1;
4410 unsigned LC3D2S0
: 1;
4411 unsigned LC3D2S1
: 1;
4412 unsigned LC3D2S2
: 1;
4430 unsigned LC3D1S
: 3;
4450 unsigned LC3D2S
: 3;
4455 extern __at(0x0F22) volatile __CLC3SEL0bits_t CLC3SEL0bits
;
4457 #define _CLC3SEL0_LC3D1S0 0x01
4458 #define _CLC3SEL0_D1S0 0x01
4459 #define _CLC3SEL0_LC3D1S1 0x02
4460 #define _CLC3SEL0_D1S1 0x02
4461 #define _CLC3SEL0_LC3D1S2 0x04
4462 #define _CLC3SEL0_D1S2 0x04
4463 #define _CLC3SEL0_LC3D2S0 0x10
4464 #define _CLC3SEL0_D2S0 0x10
4465 #define _CLC3SEL0_LC3D2S1 0x20
4466 #define _CLC3SEL0_D2S1 0x20
4467 #define _CLC3SEL0_LC3D2S2 0x40
4468 #define _CLC3SEL0_D2S2 0x40
4470 //==============================================================================
4473 //==============================================================================
4476 extern __at(0x0F23) __sfr CLC3SEL1
;
4482 unsigned LC3D3S0
: 1;
4483 unsigned LC3D3S1
: 1;
4484 unsigned LC3D3S2
: 1;
4486 unsigned LC3D4S0
: 1;
4487 unsigned LC3D4S1
: 1;
4488 unsigned LC3D4S2
: 1;
4506 unsigned LC3D3S
: 3;
4519 unsigned LC3D4S
: 3;
4531 extern __at(0x0F23) volatile __CLC3SEL1bits_t CLC3SEL1bits
;
4533 #define _CLC3SEL1_LC3D3S0 0x01
4534 #define _CLC3SEL1_D3S0 0x01
4535 #define _CLC3SEL1_LC3D3S1 0x02
4536 #define _CLC3SEL1_D3S1 0x02
4537 #define _CLC3SEL1_LC3D3S2 0x04
4538 #define _CLC3SEL1_D3S2 0x04
4539 #define _CLC3SEL1_LC3D4S0 0x10
4540 #define _CLC3SEL1_D4S0 0x10
4541 #define _CLC3SEL1_LC3D4S1 0x20
4542 #define _CLC3SEL1_D4S1 0x20
4543 #define _CLC3SEL1_LC3D4S2 0x40
4544 #define _CLC3SEL1_D4S2 0x40
4546 //==============================================================================
4549 //==============================================================================
4552 extern __at(0x0F24) __sfr CLC3GLS0
;
4558 unsigned LC3G1D1N
: 1;
4559 unsigned LC3G1D1T
: 1;
4560 unsigned LC3G1D2N
: 1;
4561 unsigned LC3G1D2T
: 1;
4562 unsigned LC3G1D3N
: 1;
4563 unsigned LC3G1D3T
: 1;
4564 unsigned LC3G1D4N
: 1;
4565 unsigned LC3G1D4T
: 1;
4581 extern __at(0x0F24) volatile __CLC3GLS0bits_t CLC3GLS0bits
;
4583 #define _CLC3GLS0_LC3G1D1N 0x01
4584 #define _CLC3GLS0_D1N 0x01
4585 #define _CLC3GLS0_LC3G1D1T 0x02
4586 #define _CLC3GLS0_D1T 0x02
4587 #define _CLC3GLS0_LC3G1D2N 0x04
4588 #define _CLC3GLS0_D2N 0x04
4589 #define _CLC3GLS0_LC3G1D2T 0x08
4590 #define _CLC3GLS0_D2T 0x08
4591 #define _CLC3GLS0_LC3G1D3N 0x10
4592 #define _CLC3GLS0_D3N 0x10
4593 #define _CLC3GLS0_LC3G1D3T 0x20
4594 #define _CLC3GLS0_D3T 0x20
4595 #define _CLC3GLS0_LC3G1D4N 0x40
4596 #define _CLC3GLS0_D4N 0x40
4597 #define _CLC3GLS0_LC3G1D4T 0x80
4598 #define _CLC3GLS0_D4T 0x80
4600 //==============================================================================
4603 //==============================================================================
4606 extern __at(0x0F25) __sfr CLC3GLS1
;
4612 unsigned LC3G2D1N
: 1;
4613 unsigned LC3G2D1T
: 1;
4614 unsigned LC3G2D2N
: 1;
4615 unsigned LC3G2D2T
: 1;
4616 unsigned LC3G2D3N
: 1;
4617 unsigned LC3G2D3T
: 1;
4618 unsigned LC3G2D4N
: 1;
4619 unsigned LC3G2D4T
: 1;
4635 extern __at(0x0F25) volatile __CLC3GLS1bits_t CLC3GLS1bits
;
4637 #define _CLC3GLS1_LC3G2D1N 0x01
4638 #define _CLC3GLS1_D1N 0x01
4639 #define _CLC3GLS1_LC3G2D1T 0x02
4640 #define _CLC3GLS1_D1T 0x02
4641 #define _CLC3GLS1_LC3G2D2N 0x04
4642 #define _CLC3GLS1_D2N 0x04
4643 #define _CLC3GLS1_LC3G2D2T 0x08
4644 #define _CLC3GLS1_D2T 0x08
4645 #define _CLC3GLS1_LC3G2D3N 0x10
4646 #define _CLC3GLS1_D3N 0x10
4647 #define _CLC3GLS1_LC3G2D3T 0x20
4648 #define _CLC3GLS1_D3T 0x20
4649 #define _CLC3GLS1_LC3G2D4N 0x40
4650 #define _CLC3GLS1_D4N 0x40
4651 #define _CLC3GLS1_LC3G2D4T 0x80
4652 #define _CLC3GLS1_D4T 0x80
4654 //==============================================================================
4657 //==============================================================================
4660 extern __at(0x0F26) __sfr CLC3GLS2
;
4666 unsigned LC3G3D1N
: 1;
4667 unsigned LC3G3D1T
: 1;
4668 unsigned LC3G3D2N
: 1;
4669 unsigned LC3G3D2T
: 1;
4670 unsigned LC3G3D3N
: 1;
4671 unsigned LC3G3D3T
: 1;
4672 unsigned LC3G3D4N
: 1;
4673 unsigned LC3G3D4T
: 1;
4689 extern __at(0x0F26) volatile __CLC3GLS2bits_t CLC3GLS2bits
;
4691 #define _CLC3GLS2_LC3G3D1N 0x01
4692 #define _CLC3GLS2_D1N 0x01
4693 #define _CLC3GLS2_LC3G3D1T 0x02
4694 #define _CLC3GLS2_D1T 0x02
4695 #define _CLC3GLS2_LC3G3D2N 0x04
4696 #define _CLC3GLS2_D2N 0x04
4697 #define _CLC3GLS2_LC3G3D2T 0x08
4698 #define _CLC3GLS2_D2T 0x08
4699 #define _CLC3GLS2_LC3G3D3N 0x10
4700 #define _CLC3GLS2_D3N 0x10
4701 #define _CLC3GLS2_LC3G3D3T 0x20
4702 #define _CLC3GLS2_D3T 0x20
4703 #define _CLC3GLS2_LC3G3D4N 0x40
4704 #define _CLC3GLS2_D4N 0x40
4705 #define _CLC3GLS2_LC3G3D4T 0x80
4706 #define _CLC3GLS2_D4T 0x80
4708 //==============================================================================
4711 //==============================================================================
4714 extern __at(0x0F27) __sfr CLC3GLS3
;
4720 unsigned LC3G4D1N
: 1;
4721 unsigned LC3G4D1T
: 1;
4722 unsigned LC3G4D2N
: 1;
4723 unsigned LC3G4D2T
: 1;
4724 unsigned LC3G4D3N
: 1;
4725 unsigned LC3G4D3T
: 1;
4726 unsigned LC3G4D4N
: 1;
4727 unsigned LC3G4D4T
: 1;
4743 extern __at(0x0F27) volatile __CLC3GLS3bits_t CLC3GLS3bits
;
4745 #define _CLC3GLS3_LC3G4D1N 0x01
4746 #define _CLC3GLS3_G4D1N 0x01
4747 #define _CLC3GLS3_LC3G4D1T 0x02
4748 #define _CLC3GLS3_G4D1T 0x02
4749 #define _CLC3GLS3_LC3G4D2N 0x04
4750 #define _CLC3GLS3_G4D2N 0x04
4751 #define _CLC3GLS3_LC3G4D2T 0x08
4752 #define _CLC3GLS3_G4D2T 0x08
4753 #define _CLC3GLS3_LC3G4D3N 0x10
4754 #define _CLC3GLS3_G4D3N 0x10
4755 #define _CLC3GLS3_LC3G4D3T 0x20
4756 #define _CLC3GLS3_G4D3T 0x20
4757 #define _CLC3GLS3_LC3G4D4N 0x40
4758 #define _CLC3GLS3_G4D4N 0x40
4759 #define _CLC3GLS3_LC3G4D4T 0x80
4760 #define _CLC3GLS3_G4D4T 0x80
4762 //==============================================================================
4765 //==============================================================================
4768 extern __at(0x0F28) __sfr CLC4CON
;
4774 unsigned LC4MODE0
: 1;
4775 unsigned LC4MODE1
: 1;
4776 unsigned LC4MODE2
: 1;
4777 unsigned LC4INTN
: 1;
4778 unsigned LC4INTP
: 1;
4779 unsigned LC4OUT
: 1;
4786 unsigned LCMODE0
: 1;
4787 unsigned LCMODE1
: 1;
4788 unsigned LCMODE2
: 1;
4789 unsigned LCINTN
: 1;
4790 unsigned LCINTP
: 1;
4798 unsigned LCMODE
: 3;
4804 unsigned LC4MODE
: 3;
4809 extern __at(0x0F28) volatile __CLC4CONbits_t CLC4CONbits
;
4811 #define _CLC4CON_LC4MODE0 0x01
4812 #define _CLC4CON_LCMODE0 0x01
4813 #define _CLC4CON_LC4MODE1 0x02
4814 #define _CLC4CON_LCMODE1 0x02
4815 #define _CLC4CON_LC4MODE2 0x04
4816 #define _CLC4CON_LCMODE2 0x04
4817 #define _CLC4CON_LC4INTN 0x08
4818 #define _CLC4CON_LCINTN 0x08
4819 #define _CLC4CON_LC4INTP 0x10
4820 #define _CLC4CON_LCINTP 0x10
4821 #define _CLC4CON_LC4OUT 0x20
4822 #define _CLC4CON_LCOUT 0x20
4823 #define _CLC4CON_LC4OE 0x40
4824 #define _CLC4CON_LCOE 0x40
4825 #define _CLC4CON_LC4EN 0x80
4826 #define _CLC4CON_LCEN 0x80
4828 //==============================================================================
4831 //==============================================================================
4834 extern __at(0x0F29) __sfr CLC4POL
;
4840 unsigned LC4G1POL
: 1;
4841 unsigned LC4G2POL
: 1;
4842 unsigned LC4G3POL
: 1;
4843 unsigned LC4G4POL
: 1;
4847 unsigned LC4POL
: 1;
4863 extern __at(0x0F29) volatile __CLC4POLbits_t CLC4POLbits
;
4865 #define _CLC4POL_LC4G1POL 0x01
4866 #define _CLC4POL_G1POL 0x01
4867 #define _CLC4POL_LC4G2POL 0x02
4868 #define _CLC4POL_G2POL 0x02
4869 #define _CLC4POL_LC4G3POL 0x04
4870 #define _CLC4POL_G3POL 0x04
4871 #define _CLC4POL_LC4G4POL 0x08
4872 #define _CLC4POL_G4POL 0x08
4873 #define _CLC4POL_LC4POL 0x80
4874 #define _CLC4POL_POL 0x80
4876 //==============================================================================
4879 //==============================================================================
4882 extern __at(0x0F2A) __sfr CLC4SEL0
;
4888 unsigned LC4D1S0
: 1;
4889 unsigned LC4D1S1
: 1;
4890 unsigned LC4D1S2
: 1;
4892 unsigned LC4D2S0
: 1;
4893 unsigned LC4D2S1
: 1;
4894 unsigned LC4D2S2
: 1;
4918 unsigned LC4D1S
: 3;
4932 unsigned LC4D2S
: 3;
4937 extern __at(0x0F2A) volatile __CLC4SEL0bits_t CLC4SEL0bits
;
4939 #define _CLC4SEL0_LC4D1S0 0x01
4940 #define _CLC4SEL0_D1S0 0x01
4941 #define _CLC4SEL0_LC4D1S1 0x02
4942 #define _CLC4SEL0_D1S1 0x02
4943 #define _CLC4SEL0_LC4D1S2 0x04
4944 #define _CLC4SEL0_D1S2 0x04
4945 #define _CLC4SEL0_LC4D2S0 0x10
4946 #define _CLC4SEL0_D2S0 0x10
4947 #define _CLC4SEL0_LC4D2S1 0x20
4948 #define _CLC4SEL0_D2S1 0x20
4949 #define _CLC4SEL0_LC4D2S2 0x40
4950 #define _CLC4SEL0_D2S2 0x40
4952 //==============================================================================
4955 //==============================================================================
4958 extern __at(0x0F2B) __sfr CLC4SEL1
;
4964 unsigned LC4D3S0
: 1;
4965 unsigned LC4D3S1
: 1;
4966 unsigned LC4D3S2
: 1;
4968 unsigned LC4D4S0
: 1;
4969 unsigned LC4D4S1
: 1;
4970 unsigned LC4D4S2
: 1;
4988 unsigned LC4D3S
: 3;
5001 unsigned LC4D4S
: 3;
5013 extern __at(0x0F2B) volatile __CLC4SEL1bits_t CLC4SEL1bits
;
5015 #define _CLC4SEL1_LC4D3S0 0x01
5016 #define _CLC4SEL1_D3S0 0x01
5017 #define _CLC4SEL1_LC4D3S1 0x02
5018 #define _CLC4SEL1_D3S1 0x02
5019 #define _CLC4SEL1_LC4D3S2 0x04
5020 #define _CLC4SEL1_D3S2 0x04
5021 #define _CLC4SEL1_LC4D4S0 0x10
5022 #define _CLC4SEL1_D4S0 0x10
5023 #define _CLC4SEL1_LC4D4S1 0x20
5024 #define _CLC4SEL1_D4S1 0x20
5025 #define _CLC4SEL1_LC4D4S2 0x40
5026 #define _CLC4SEL1_D4S2 0x40
5028 //==============================================================================
5031 //==============================================================================
5034 extern __at(0x0F2C) __sfr CLC4GLS0
;
5040 unsigned LC4G1D1N
: 1;
5041 unsigned LC4G1D1T
: 1;
5042 unsigned LC4G1D2N
: 1;
5043 unsigned LC4G1D2T
: 1;
5044 unsigned LC4G1D3N
: 1;
5045 unsigned LC4G1D3T
: 1;
5046 unsigned LC4G1D4N
: 1;
5047 unsigned LC4G1D4T
: 1;
5063 extern __at(0x0F2C) volatile __CLC4GLS0bits_t CLC4GLS0bits
;
5065 #define _CLC4GLS0_LC4G1D1N 0x01
5066 #define _CLC4GLS0_D1N 0x01
5067 #define _CLC4GLS0_LC4G1D1T 0x02
5068 #define _CLC4GLS0_D1T 0x02
5069 #define _CLC4GLS0_LC4G1D2N 0x04
5070 #define _CLC4GLS0_D2N 0x04
5071 #define _CLC4GLS0_LC4G1D2T 0x08
5072 #define _CLC4GLS0_D2T 0x08
5073 #define _CLC4GLS0_LC4G1D3N 0x10
5074 #define _CLC4GLS0_D3N 0x10
5075 #define _CLC4GLS0_LC4G1D3T 0x20
5076 #define _CLC4GLS0_D3T 0x20
5077 #define _CLC4GLS0_LC4G1D4N 0x40
5078 #define _CLC4GLS0_D4N 0x40
5079 #define _CLC4GLS0_LC4G1D4T 0x80
5080 #define _CLC4GLS0_D4T 0x80
5082 //==============================================================================
5085 //==============================================================================
5088 extern __at(0x0F2D) __sfr CLC4GLS1
;
5094 unsigned LC4G2D1N
: 1;
5095 unsigned LC4G2D1T
: 1;
5096 unsigned LC4G2D2N
: 1;
5097 unsigned LC4G2D2T
: 1;
5098 unsigned LC4G2D3N
: 1;
5099 unsigned LC4G2D3T
: 1;
5100 unsigned LC4G2D4N
: 1;
5101 unsigned LC4G2D4T
: 1;
5117 extern __at(0x0F2D) volatile __CLC4GLS1bits_t CLC4GLS1bits
;
5119 #define _CLC4GLS1_LC4G2D1N 0x01
5120 #define _CLC4GLS1_D1N 0x01
5121 #define _CLC4GLS1_LC4G2D1T 0x02
5122 #define _CLC4GLS1_D1T 0x02
5123 #define _CLC4GLS1_LC4G2D2N 0x04
5124 #define _CLC4GLS1_D2N 0x04
5125 #define _CLC4GLS1_LC4G2D2T 0x08
5126 #define _CLC4GLS1_D2T 0x08
5127 #define _CLC4GLS1_LC4G2D3N 0x10
5128 #define _CLC4GLS1_D3N 0x10
5129 #define _CLC4GLS1_LC4G2D3T 0x20
5130 #define _CLC4GLS1_D3T 0x20
5131 #define _CLC4GLS1_LC4G2D4N 0x40
5132 #define _CLC4GLS1_D4N 0x40
5133 #define _CLC4GLS1_LC4G2D4T 0x80
5134 #define _CLC4GLS1_D4T 0x80
5136 //==============================================================================
5139 //==============================================================================
5142 extern __at(0x0F2E) __sfr CLC4GLS2
;
5148 unsigned LC4G3D1N
: 1;
5149 unsigned LC4G3D1T
: 1;
5150 unsigned LC4G3D2N
: 1;
5151 unsigned LC4G3D2T
: 1;
5152 unsigned LC4G3D3N
: 1;
5153 unsigned LC4G3D3T
: 1;
5154 unsigned LC4G3D4N
: 1;
5155 unsigned LC4G3D4T
: 1;
5171 extern __at(0x0F2E) volatile __CLC4GLS2bits_t CLC4GLS2bits
;
5173 #define _CLC4GLS2_LC4G3D1N 0x01
5174 #define _CLC4GLS2_D1N 0x01
5175 #define _CLC4GLS2_LC4G3D1T 0x02
5176 #define _CLC4GLS2_D1T 0x02
5177 #define _CLC4GLS2_LC4G3D2N 0x04
5178 #define _CLC4GLS2_D2N 0x04
5179 #define _CLC4GLS2_LC4G3D2T 0x08
5180 #define _CLC4GLS2_D2T 0x08
5181 #define _CLC4GLS2_LC4G3D3N 0x10
5182 #define _CLC4GLS2_D3N 0x10
5183 #define _CLC4GLS2_LC4G3D3T 0x20
5184 #define _CLC4GLS2_D3T 0x20
5185 #define _CLC4GLS2_LC4G3D4N 0x40
5186 #define _CLC4GLS2_D4N 0x40
5187 #define _CLC4GLS2_LC4G3D4T 0x80
5188 #define _CLC4GLS2_D4T 0x80
5190 //==============================================================================
5193 //==============================================================================
5196 extern __at(0x0F2F) __sfr CLC4GLS3
;
5202 unsigned LC4G4D1N
: 1;
5203 unsigned LC4G4D1T
: 1;
5204 unsigned LC4G4D2N
: 1;
5205 unsigned LC4G4D2T
: 1;
5206 unsigned LC4G4D3N
: 1;
5207 unsigned LC4G4D3T
: 1;
5208 unsigned LC4G4D4N
: 1;
5209 unsigned LC4G4D4T
: 1;
5225 extern __at(0x0F2F) volatile __CLC4GLS3bits_t CLC4GLS3bits
;
5227 #define _CLC4GLS3_LC4G4D1N 0x01
5228 #define _CLC4GLS3_G4D1N 0x01
5229 #define _CLC4GLS3_LC4G4D1T 0x02
5230 #define _CLC4GLS3_G4D1T 0x02
5231 #define _CLC4GLS3_LC4G4D2N 0x04
5232 #define _CLC4GLS3_G4D2N 0x04
5233 #define _CLC4GLS3_LC4G4D2T 0x08
5234 #define _CLC4GLS3_G4D2T 0x08
5235 #define _CLC4GLS3_LC4G4D3N 0x10
5236 #define _CLC4GLS3_G4D3N 0x10
5237 #define _CLC4GLS3_LC4G4D3T 0x20
5238 #define _CLC4GLS3_G4D3T 0x20
5239 #define _CLC4GLS3_LC4G4D4N 0x40
5240 #define _CLC4GLS3_G4D4N 0x40
5241 #define _CLC4GLS3_LC4G4D4T 0x80
5242 #define _CLC4GLS3_G4D4T 0x80
5244 //==============================================================================
5247 //==============================================================================
5250 extern __at(0x0F8C) __sfr ICDIO
;
5256 unsigned TRIS_ICDCLK
: 1;
5257 unsigned TRIS_ICDDAT
: 1;
5258 unsigned LAT_ICDCLK
: 1;
5259 unsigned LAT_ICDDAT
: 1;
5260 unsigned PORT_ICDCLK
: 1;
5261 unsigned PORT_ICDDAT
: 1;
5264 extern __at(0x0F8C) volatile __ICDIObits_t ICDIObits
;
5266 #define _TRIS_ICDCLK 0x04
5267 #define _TRIS_ICDDAT 0x08
5268 #define _LAT_ICDCLK 0x10
5269 #define _LAT_ICDDAT 0x20
5270 #define _PORT_ICDCLK 0x40
5271 #define _PORT_ICDDAT 0x80
5273 //==============================================================================
5276 //==============================================================================
5279 extern __at(0x0F8D) __sfr ICDCON0
;
5283 unsigned RSTVEC
: 1;
5286 unsigned DBGINEX
: 1;
5293 extern __at(0x0F8D) volatile __ICDCON0bits_t ICDCON0bits
;
5295 #define _RSTVEC 0x01
5296 #define _DBGINEX 0x08
5301 //==============================================================================
5304 //==============================================================================
5307 extern __at(0x0F91) __sfr ICDSTAT
;
5312 unsigned USRHLTF
: 1;
5317 unsigned TRP0HLTF
: 1;
5318 unsigned TRP1HLTF
: 1;
5321 extern __at(0x0F91) volatile __ICDSTATbits_t ICDSTATbits
;
5323 #define _USRHLTF 0x02
5324 #define _TRP0HLTF 0x40
5325 #define _TRP1HLTF 0x80
5327 //==============================================================================
5330 //==============================================================================
5333 extern __at(0x0F95) __sfr DEVSEL
;
5339 unsigned DEVSEL0
: 1;
5340 unsigned DEVSEL1
: 1;
5341 unsigned DEVSEL2
: 1;
5351 unsigned DEVSEL
: 3;
5356 extern __at(0x0F95) volatile __DEVSELbits_t DEVSELbits
;
5358 #define _DEVSEL0 0x01
5359 #define _DEVSEL1 0x02
5360 #define _DEVSEL2 0x04
5362 //==============================================================================
5365 //==============================================================================
5368 extern __at(0x0F96) __sfr ICDINSTL
;
5372 unsigned DBGIN0
: 1;
5373 unsigned DBGIN1
: 1;
5374 unsigned DBGIN2
: 1;
5375 unsigned DBGIN3
: 1;
5376 unsigned DBGIN4
: 1;
5377 unsigned DBGIN5
: 1;
5378 unsigned DBGIN6
: 1;
5379 unsigned DBGIN7
: 1;
5382 extern __at(0x0F96) volatile __ICDINSTLbits_t ICDINSTLbits
;
5384 #define _DBGIN0 0x01
5385 #define _DBGIN1 0x02
5386 #define _DBGIN2 0x04
5387 #define _DBGIN3 0x08
5388 #define _DBGIN4 0x10
5389 #define _DBGIN5 0x20
5390 #define _DBGIN6 0x40
5391 #define _DBGIN7 0x80
5393 //==============================================================================
5396 //==============================================================================
5399 extern __at(0x0F97) __sfr ICDINSTH
;
5403 unsigned DBGIN8
: 1;
5404 unsigned DBGIN9
: 1;
5405 unsigned DBGIN10
: 1;
5406 unsigned DBGIN11
: 1;
5407 unsigned DBGIN12
: 1;
5408 unsigned DBGIN13
: 1;
5413 extern __at(0x0F97) volatile __ICDINSTHbits_t ICDINSTHbits
;
5415 #define _DBGIN8 0x01
5416 #define _DBGIN9 0x02
5417 #define _DBGIN10 0x04
5418 #define _DBGIN11 0x08
5419 #define _DBGIN12 0x10
5420 #define _DBGIN13 0x20
5422 //==============================================================================
5425 //==============================================================================
5428 extern __at(0x0F9C) __sfr ICDBK0CON
;
5440 } __ICDBK0CONbits_t
;
5442 extern __at(0x0F9C) volatile __ICDBK0CONbits_t ICDBK0CONbits
;
5447 //==============================================================================
5450 //==============================================================================
5453 extern __at(0x0F9D) __sfr ICDBK0L
;
5467 extern __at(0x0F9D) volatile __ICDBK0Lbits_t ICDBK0Lbits
;
5478 //==============================================================================
5481 //==============================================================================
5484 extern __at(0x0F9E) __sfr ICDBK0H
;
5498 extern __at(0x0F9E) volatile __ICDBK0Hbits_t ICDBK0Hbits
;
5508 //==============================================================================
5510 extern __at(0x0FE3) __sfr BSRICDSHAD
;
5512 //==============================================================================
5515 extern __at(0x0FE4) __sfr STATUS_SHAD
;
5519 unsigned C_SHAD
: 1;
5520 unsigned DC_SHAD
: 1;
5521 unsigned Z_SHAD
: 1;
5527 } __STATUS_SHADbits_t
;
5529 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
5531 #define _C_SHAD 0x01
5532 #define _DC_SHAD 0x02
5533 #define _Z_SHAD 0x04
5535 //==============================================================================
5537 extern __at(0x0FE5) __sfr WREG_SHAD
;
5538 extern __at(0x0FE6) __sfr BSR_SHAD
;
5539 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
5540 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
5541 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
5542 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
5543 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
5544 extern __at(0x0FED) __sfr STKPTR
;
5545 extern __at(0x0FEE) __sfr TOSL
;
5546 extern __at(0x0FEF) __sfr TOSH
;
5548 //==============================================================================
5550 // Configuration Bits
5552 //==============================================================================
5554 #define _CONFIG1 0x8007
5555 #define _CONFIG2 0x8008
5557 //----------------------------- CONFIG1 Options -------------------------------
5559 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
5560 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
5561 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
5562 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
5563 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
5564 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
5565 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
5566 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
5567 #define _WDTE_OFF 0x3FE7 // WDT disabled.
5568 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
5569 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
5570 #define _WDTE_ON 0x3FFF // WDT enabled.
5571 #define _PWRTE_ON 0x3FDF // PWRT enabled.
5572 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
5573 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
5574 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
5575 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
5576 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
5577 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
5578 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
5579 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
5580 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
5581 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
5582 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
5583 #define _IESO_OFF 0x2FFF // Internal/External Switchover Mode is disabled.
5584 #define _IESO_ON 0x3FFF // Internal/External Switchover Mode is enabled.
5585 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
5586 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
5588 //----------------------------- CONFIG2 Options -------------------------------
5590 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
5591 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
5592 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
5593 #define _WRT_OFF 0x3FFF // Write protection off.
5594 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
5595 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
5596 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
5597 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
5598 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
5599 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
5600 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
5601 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
5602 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
5603 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
5605 //==============================================================================
5607 #define _DEVID1 0x8006
5609 #define _IDLOC0 0x8000
5610 #define _IDLOC1 0x8001
5611 #define _IDLOC2 0x8002
5612 #define _IDLOC3 0x8003
5614 //==============================================================================
5616 #ifndef NO_BIT_DEFINES
5618 #define ADON ADCON0bits.ADON // bit 0
5619 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
5620 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
5621 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
5622 #define CHS0 ADCON0bits.CHS0 // bit 2
5623 #define CHS1 ADCON0bits.CHS1 // bit 3
5624 #define CHS2 ADCON0bits.CHS2 // bit 4
5625 #define CHS3 ADCON0bits.CHS3 // bit 5
5626 #define CHS4 ADCON0bits.CHS4 // bit 6
5628 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
5629 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
5630 #define ADFM ADCON1bits.ADFM // bit 7
5632 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
5633 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
5634 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
5635 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
5637 #define ANSA0 ANSELAbits.ANSA0 // bit 0
5638 #define ANSA1 ANSELAbits.ANSA1 // bit 1
5639 #define ANSA2 ANSELAbits.ANSA2 // bit 2
5640 #define ANSA4 ANSELAbits.ANSA4 // bit 4
5642 #define ANSB4 ANSELBbits.ANSB4 // bit 4
5643 #define ANSB5 ANSELBbits.ANSB5 // bit 5
5645 #define ANSC0 ANSELCbits.ANSC0 // bit 0
5646 #define ANSC1 ANSELCbits.ANSC1 // bit 1
5647 #define ANSC2 ANSELCbits.ANSC2 // bit 2
5648 #define ANSC3 ANSELCbits.ANSC3 // bit 3
5649 #define ANSC6 ANSELCbits.ANSC6 // bit 6
5650 #define ANSC7 ANSELCbits.ANSC7 // bit 7
5652 #define NCO1SEL APFCONbits.NCO1SEL // bit 0
5653 #define CLC1SEL APFCONbits.CLC1SEL // bit 1
5654 #define T1GSEL APFCONbits.T1GSEL // bit 3
5655 #define SSSEL APFCONbits.SSSEL // bit 4
5657 #define ABDEN BAUDCONbits.ABDEN // bit 0
5658 #define WUE BAUDCONbits.WUE // bit 1
5659 #define BRG16 BAUDCONbits.BRG16 // bit 3
5660 #define SCKP BAUDCONbits.SCKP // bit 4
5661 #define RCIDL BAUDCONbits.RCIDL // bit 6
5662 #define ABDOVF BAUDCONbits.ABDOVF // bit 7
5664 #define BORRDY BORCONbits.BORRDY // bit 0
5665 #define BORFS BORCONbits.BORFS // bit 6
5666 #define SBOREN BORCONbits.SBOREN // bit 7
5668 #define BSR0 BSRbits.BSR0 // bit 0
5669 #define BSR1 BSRbits.BSR1 // bit 1
5670 #define BSR2 BSRbits.BSR2 // bit 2
5671 #define BSR3 BSRbits.BSR3 // bit 3
5672 #define BSR4 BSRbits.BSR4 // bit 4
5674 #define LC1MODE0 CLC1CONbits.LC1MODE0 // bit 0, shadows bit in CLC1CONbits
5675 #define LCMODE0 CLC1CONbits.LCMODE0 // bit 0, shadows bit in CLC1CONbits
5676 #define LC1MODE1 CLC1CONbits.LC1MODE1 // bit 1, shadows bit in CLC1CONbits
5677 #define LCMODE1 CLC1CONbits.LCMODE1 // bit 1, shadows bit in CLC1CONbits
5678 #define LC1MODE2 CLC1CONbits.LC1MODE2 // bit 2, shadows bit in CLC1CONbits
5679 #define LCMODE2 CLC1CONbits.LCMODE2 // bit 2, shadows bit in CLC1CONbits
5680 #define LC1INTN CLC1CONbits.LC1INTN // bit 3, shadows bit in CLC1CONbits
5681 #define LCINTN CLC1CONbits.LCINTN // bit 3, shadows bit in CLC1CONbits
5682 #define LC1INTP CLC1CONbits.LC1INTP // bit 4, shadows bit in CLC1CONbits
5683 #define LCINTP CLC1CONbits.LCINTP // bit 4, shadows bit in CLC1CONbits
5684 #define LC1OUT CLC1CONbits.LC1OUT // bit 5, shadows bit in CLC1CONbits
5685 #define LCOUT CLC1CONbits.LCOUT // bit 5, shadows bit in CLC1CONbits
5686 #define LC1OE CLC1CONbits.LC1OE // bit 6, shadows bit in CLC1CONbits
5687 #define LCOE CLC1CONbits.LCOE // bit 6, shadows bit in CLC1CONbits
5688 #define LC1EN CLC1CONbits.LC1EN // bit 7, shadows bit in CLC1CONbits
5689 #define LCEN CLC1CONbits.LCEN // bit 7, shadows bit in CLC1CONbits
5691 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
5692 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
5693 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
5694 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
5695 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
5696 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
5697 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
5698 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
5699 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
5700 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
5701 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
5702 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
5703 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
5704 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
5705 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
5706 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
5708 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
5709 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
5710 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
5711 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
5712 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
5713 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
5714 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
5715 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
5716 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
5717 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
5718 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
5719 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
5720 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
5721 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
5722 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
5723 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
5725 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
5726 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
5727 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
5728 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
5729 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
5730 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
5731 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
5732 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
5733 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
5734 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
5736 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
5737 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
5738 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
5739 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
5740 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
5741 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
5742 #define LC1D2S0 CLC1SEL0bits.LC1D2S0 // bit 4, shadows bit in CLC1SEL0bits
5743 #define D2S0 CLC1SEL0bits.D2S0 // bit 4, shadows bit in CLC1SEL0bits
5744 #define LC1D2S1 CLC1SEL0bits.LC1D2S1 // bit 5, shadows bit in CLC1SEL0bits
5745 #define D2S1 CLC1SEL0bits.D2S1 // bit 5, shadows bit in CLC1SEL0bits
5746 #define LC1D2S2 CLC1SEL0bits.LC1D2S2 // bit 6, shadows bit in CLC1SEL0bits
5747 #define D2S2 CLC1SEL0bits.D2S2 // bit 6, shadows bit in CLC1SEL0bits
5749 #define LC1D3S0 CLC1SEL1bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL1bits
5750 #define D3S0 CLC1SEL1bits.D3S0 // bit 0, shadows bit in CLC1SEL1bits
5751 #define LC1D3S1 CLC1SEL1bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL1bits
5752 #define D3S1 CLC1SEL1bits.D3S1 // bit 1, shadows bit in CLC1SEL1bits
5753 #define LC1D3S2 CLC1SEL1bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL1bits
5754 #define D3S2 CLC1SEL1bits.D3S2 // bit 2, shadows bit in CLC1SEL1bits
5755 #define LC1D4S0 CLC1SEL1bits.LC1D4S0 // bit 4, shadows bit in CLC1SEL1bits
5756 #define D4S0 CLC1SEL1bits.D4S0 // bit 4, shadows bit in CLC1SEL1bits
5757 #define LC1D4S1 CLC1SEL1bits.LC1D4S1 // bit 5, shadows bit in CLC1SEL1bits
5758 #define D4S1 CLC1SEL1bits.D4S1 // bit 5, shadows bit in CLC1SEL1bits
5759 #define LC1D4S2 CLC1SEL1bits.LC1D4S2 // bit 6, shadows bit in CLC1SEL1bits
5760 #define D4S2 CLC1SEL1bits.D4S2 // bit 6, shadows bit in CLC1SEL1bits
5762 #define MCLC1OUT CLCDATAbits.MCLC1OUT // bit 0
5763 #define MCLC2OUT CLCDATAbits.MCLC2OUT // bit 1
5764 #define MCLC3OUT CLCDATAbits.MCLC3OUT // bit 2
5765 #define MCLC4OUT CLCDATAbits.MCLC4OUT // bit 3
5767 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
5768 #define C1HYS CM1CON0bits.C1HYS // bit 1
5769 #define C1SP CM1CON0bits.C1SP // bit 2
5770 #define C1POL CM1CON0bits.C1POL // bit 4
5771 #define C1OE CM1CON0bits.C1OE // bit 5
5772 #define C1OUT CM1CON0bits.C1OUT // bit 6
5773 #define C1ON CM1CON0bits.C1ON // bit 7
5775 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
5776 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
5777 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
5778 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
5779 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
5780 #define C1INTN CM1CON1bits.C1INTN // bit 6
5781 #define C1INTP CM1CON1bits.C1INTP // bit 7
5783 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
5784 #define C2HYS CM2CON0bits.C2HYS // bit 1
5785 #define C2SP CM2CON0bits.C2SP // bit 2
5786 #define C2POL CM2CON0bits.C2POL // bit 4
5787 #define C2OE CM2CON0bits.C2OE // bit 5
5788 #define C2OUT CM2CON0bits.C2OUT // bit 6
5789 #define C2ON CM2CON0bits.C2ON // bit 7
5791 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
5792 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
5793 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
5794 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 4
5795 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 5
5796 #define C2INTN CM2CON1bits.C2INTN // bit 6
5797 #define C2INTP CM2CON1bits.C2INTP // bit 7
5799 #define MC1OUT CMOUTbits.MC1OUT // bit 0
5800 #define MC2OUT CMOUTbits.MC2OUT // bit 1
5802 #define G1CS0 CWG1CON0bits.G1CS0 // bit 0
5803 #define G1POLA CWG1CON0bits.G1POLA // bit 3
5804 #define G1POLB CWG1CON0bits.G1POLB // bit 4
5805 #define G1OEA CWG1CON0bits.G1OEA // bit 5
5806 #define G1OEB CWG1CON0bits.G1OEB // bit 6
5807 #define G1EN CWG1CON0bits.G1EN // bit 7
5809 #define G1IS0 CWG1CON1bits.G1IS0 // bit 0
5810 #define G1IS1 CWG1CON1bits.G1IS1 // bit 1
5811 #define G1IS2 CWG1CON1bits.G1IS2 // bit 2
5812 #define G1ASDLA0 CWG1CON1bits.G1ASDLA0 // bit 4
5813 #define G1ASDLA1 CWG1CON1bits.G1ASDLA1 // bit 5
5814 #define G1ASDLB0 CWG1CON1bits.G1ASDLB0 // bit 6
5815 #define G1ASDLB1 CWG1CON1bits.G1ASDLB1 // bit 7
5817 #define G1ASDSCLC2 CWG1CON2bits.G1ASDSCLC2 // bit 0
5818 #define G1ASDSFLT CWG1CON2bits.G1ASDSFLT // bit 1
5819 #define G1ASDSC1 CWG1CON2bits.G1ASDSC1 // bit 2
5820 #define G1ASDSC2 CWG1CON2bits.G1ASDSC2 // bit 3
5821 #define G1ARSEN CWG1CON2bits.G1ARSEN // bit 6
5822 #define G1ASE CWG1CON2bits.G1ASE // bit 7
5824 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0
5825 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1
5826 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2
5827 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3
5828 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4
5829 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5
5831 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0
5832 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1
5833 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2
5834 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3
5835 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4
5836 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5
5838 #define DACPSS DACCON0bits.DACPSS // bit 2
5839 #define DACOE2 DACCON0bits.DACOE2 // bit 4
5840 #define DACOE1 DACCON0bits.DACOE1 // bit 5
5841 #define DACEN DACCON0bits.DACEN // bit 7
5843 #define DACR0 DACCON1bits.DACR0 // bit 0
5844 #define DACR1 DACCON1bits.DACR1 // bit 1
5845 #define DACR2 DACCON1bits.DACR2 // bit 2
5846 #define DACR3 DACCON1bits.DACR3 // bit 3
5847 #define DACR4 DACCON1bits.DACR4 // bit 4
5849 #define DEVSEL0 DEVSELbits.DEVSEL0 // bit 0
5850 #define DEVSEL1 DEVSELbits.DEVSEL1 // bit 1
5851 #define DEVSEL2 DEVSELbits.DEVSEL2 // bit 2
5853 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
5854 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
5855 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
5856 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
5857 #define TSRNG FVRCONbits.TSRNG // bit 4
5858 #define TSEN FVRCONbits.TSEN // bit 5
5859 #define FVRRDY FVRCONbits.FVRRDY // bit 6
5860 #define FVREN FVRCONbits.FVREN // bit 7
5862 #define BKHLT ICDBK0CONbits.BKHLT // bit 0
5863 #define BKEN ICDBK0CONbits.BKEN // bit 7
5865 #define BKA8 ICDBK0Hbits.BKA8 // bit 0
5866 #define BKA9 ICDBK0Hbits.BKA9 // bit 1
5867 #define BKA10 ICDBK0Hbits.BKA10 // bit 2
5868 #define BKA11 ICDBK0Hbits.BKA11 // bit 3
5869 #define BKA12 ICDBK0Hbits.BKA12 // bit 4
5870 #define BKA13 ICDBK0Hbits.BKA13 // bit 5
5871 #define BKA14 ICDBK0Hbits.BKA14 // bit 6
5873 #define BKA0 ICDBK0Lbits.BKA0 // bit 0
5874 #define BKA1 ICDBK0Lbits.BKA1 // bit 1
5875 #define BKA2 ICDBK0Lbits.BKA2 // bit 2
5876 #define BKA3 ICDBK0Lbits.BKA3 // bit 3
5877 #define BKA4 ICDBK0Lbits.BKA4 // bit 4
5878 #define BKA5 ICDBK0Lbits.BKA5 // bit 5
5879 #define BKA6 ICDBK0Lbits.BKA6 // bit 6
5880 #define BKA7 ICDBK0Lbits.BKA7 // bit 7
5882 #define RSTVEC ICDCON0bits.RSTVEC // bit 0
5883 #define DBGINEX ICDCON0bits.DBGINEX // bit 3
5884 #define SSTEP ICDCON0bits.SSTEP // bit 5
5885 #define FREEZ ICDCON0bits.FREEZ // bit 6
5886 #define INBUG ICDCON0bits.INBUG // bit 7
5888 #define DBGIN8 ICDINSTHbits.DBGIN8 // bit 0
5889 #define DBGIN9 ICDINSTHbits.DBGIN9 // bit 1
5890 #define DBGIN10 ICDINSTHbits.DBGIN10 // bit 2
5891 #define DBGIN11 ICDINSTHbits.DBGIN11 // bit 3
5892 #define DBGIN12 ICDINSTHbits.DBGIN12 // bit 4
5893 #define DBGIN13 ICDINSTHbits.DBGIN13 // bit 5
5895 #define DBGIN0 ICDINSTLbits.DBGIN0 // bit 0
5896 #define DBGIN1 ICDINSTLbits.DBGIN1 // bit 1
5897 #define DBGIN2 ICDINSTLbits.DBGIN2 // bit 2
5898 #define DBGIN3 ICDINSTLbits.DBGIN3 // bit 3
5899 #define DBGIN4 ICDINSTLbits.DBGIN4 // bit 4
5900 #define DBGIN5 ICDINSTLbits.DBGIN5 // bit 5
5901 #define DBGIN6 ICDINSTLbits.DBGIN6 // bit 6
5902 #define DBGIN7 ICDINSTLbits.DBGIN7 // bit 7
5904 #define TRIS_ICDCLK ICDIObits.TRIS_ICDCLK // bit 2
5905 #define TRIS_ICDDAT ICDIObits.TRIS_ICDDAT // bit 3
5906 #define LAT_ICDCLK ICDIObits.LAT_ICDCLK // bit 4
5907 #define LAT_ICDDAT ICDIObits.LAT_ICDDAT // bit 5
5908 #define PORT_ICDCLK ICDIObits.PORT_ICDCLK // bit 6
5909 #define PORT_ICDDAT ICDIObits.PORT_ICDDAT // bit 7
5911 #define USRHLTF ICDSTATbits.USRHLTF // bit 1
5912 #define TRP0HLTF ICDSTATbits.TRP0HLTF // bit 6
5913 #define TRP1HLTF ICDSTATbits.TRP1HLTF // bit 7
5915 #define IOCIF INTCONbits.IOCIF // bit 0
5916 #define INTF INTCONbits.INTF // bit 1
5917 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
5918 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
5919 #define IOCIE INTCONbits.IOCIE // bit 3
5920 #define INTE INTCONbits.INTE // bit 4
5921 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
5922 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
5923 #define PEIE INTCONbits.PEIE // bit 6
5924 #define GIE INTCONbits.GIE // bit 7
5926 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
5927 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
5928 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
5929 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
5930 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
5931 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
5933 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
5934 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
5935 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
5936 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
5937 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
5938 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
5940 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
5941 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
5942 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
5943 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
5944 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
5945 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
5947 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
5948 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
5949 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
5950 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
5952 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
5953 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
5954 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
5955 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
5957 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
5958 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
5959 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
5960 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
5962 #define LATA0 LATAbits.LATA0 // bit 0
5963 #define LATA1 LATAbits.LATA1 // bit 1
5964 #define LATA2 LATAbits.LATA2 // bit 2
5965 #define LATA4 LATAbits.LATA4 // bit 4
5966 #define LATA5 LATAbits.LATA5 // bit 5
5968 #define LATB4 LATBbits.LATB4 // bit 4
5969 #define LATB5 LATBbits.LATB5 // bit 5
5970 #define LATB6 LATBbits.LATB6 // bit 6
5971 #define LATB7 LATBbits.LATB7 // bit 7
5973 #define LATC0 LATCbits.LATC0 // bit 0
5974 #define LATC1 LATCbits.LATC1 // bit 1
5975 #define LATC2 LATCbits.LATC2 // bit 2
5976 #define LATC3 LATCbits.LATC3 // bit 3
5977 #define LATC4 LATCbits.LATC4 // bit 4
5978 #define LATC5 LATCbits.LATC5 // bit 5
5979 #define LATC6 LATCbits.LATC6 // bit 6
5980 #define LATC7 LATCbits.LATC7 // bit 7
5982 #define NCO1ACC8 NCO1ACCHbits.NCO1ACC8 // bit 0
5983 #define NCO1ACC9 NCO1ACCHbits.NCO1ACC9 // bit 1
5984 #define NCO1ACC10 NCO1ACCHbits.NCO1ACC10 // bit 2
5985 #define NCO1ACC11 NCO1ACCHbits.NCO1ACC11 // bit 3
5986 #define NCO1ACC12 NCO1ACCHbits.NCO1ACC12 // bit 4
5987 #define NCO1ACC13 NCO1ACCHbits.NCO1ACC13 // bit 5
5988 #define NCO1ACC14 NCO1ACCHbits.NCO1ACC14 // bit 6
5989 #define NCO1ACC15 NCO1ACCHbits.NCO1ACC15 // bit 7
5991 #define NCO1ACC0 NCO1ACCLbits.NCO1ACC0 // bit 0
5992 #define NCO1ACC1 NCO1ACCLbits.NCO1ACC1 // bit 1
5993 #define NCO1ACC2 NCO1ACCLbits.NCO1ACC2 // bit 2
5994 #define NCO1ACC3 NCO1ACCLbits.NCO1ACC3 // bit 3
5995 #define NCO1ACC4 NCO1ACCLbits.NCO1ACC4 // bit 4
5996 #define NCO1ACC5 NCO1ACCLbits.NCO1ACC5 // bit 5
5997 #define NCO1ACC6 NCO1ACCLbits.NCO1ACC6 // bit 6
5998 #define NCO1ACC7 NCO1ACCLbits.NCO1ACC7 // bit 7
6000 #define NCO1ACC16 NCO1ACCUbits.NCO1ACC16 // bit 0
6001 #define NCO1ACC17 NCO1ACCUbits.NCO1ACC17 // bit 1
6002 #define NCO1ACC18 NCO1ACCUbits.NCO1ACC18 // bit 2
6003 #define NCO1ACC19 NCO1ACCUbits.NCO1ACC19 // bit 3
6005 #define N1CKS0 NCO1CLKbits.N1CKS0 // bit 0
6006 #define N1CKS1 NCO1CLKbits.N1CKS1 // bit 1
6007 #define N1PWS0 NCO1CLKbits.N1PWS0 // bit 5
6008 #define N1PWS1 NCO1CLKbits.N1PWS1 // bit 6
6009 #define N1PWS2 NCO1CLKbits.N1PWS2 // bit 7
6011 #define N1PFM NCO1CONbits.N1PFM // bit 0
6012 #define N1POL NCO1CONbits.N1POL // bit 4
6013 #define N1OUT NCO1CONbits.N1OUT // bit 5
6014 #define N1OE NCO1CONbits.N1OE // bit 6
6015 #define N1EN NCO1CONbits.N1EN // bit 7
6017 #define NCO1INC8 NCO1INCHbits.NCO1INC8 // bit 0
6018 #define NCO1INC9 NCO1INCHbits.NCO1INC9 // bit 1
6019 #define NCO1INC10 NCO1INCHbits.NCO1INC10 // bit 2
6020 #define NCO1INC11 NCO1INCHbits.NCO1INC11 // bit 3
6021 #define NCO1INC12 NCO1INCHbits.NCO1INC12 // bit 4
6022 #define NCO1INC13 NCO1INCHbits.NCO1INC13 // bit 5
6023 #define NCO1INC14 NCO1INCHbits.NCO1INC14 // bit 6
6024 #define NCO1INC15 NCO1INCHbits.NCO1INC15 // bit 7
6026 #define NCO1INC0 NCO1INCLbits.NCO1INC0 // bit 0
6027 #define NCO1INC1 NCO1INCLbits.NCO1INC1 // bit 1
6028 #define NCO1INC2 NCO1INCLbits.NCO1INC2 // bit 2
6029 #define NCO1INC3 NCO1INCLbits.NCO1INC3 // bit 3
6030 #define NCO1INC4 NCO1INCLbits.NCO1INC4 // bit 4
6031 #define NCO1INC5 NCO1INCLbits.NCO1INC5 // bit 5
6032 #define NCO1INC6 NCO1INCLbits.NCO1INC6 // bit 6
6033 #define NCO1INC7 NCO1INCLbits.NCO1INC7 // bit 7
6035 #define PS0 OPTION_REGbits.PS0 // bit 0
6036 #define PS1 OPTION_REGbits.PS1 // bit 1
6037 #define PS2 OPTION_REGbits.PS2 // bit 2
6038 #define PSA OPTION_REGbits.PSA // bit 3
6039 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
6040 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
6041 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
6042 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
6043 #define INTEDG OPTION_REGbits.INTEDG // bit 6
6044 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
6046 #define SCS0 OSCCONbits.SCS0 // bit 0
6047 #define SCS1 OSCCONbits.SCS1 // bit 1
6048 #define IRCF0 OSCCONbits.IRCF0 // bit 3
6049 #define IRCF1 OSCCONbits.IRCF1 // bit 4
6050 #define IRCF2 OSCCONbits.IRCF2 // bit 5
6051 #define IRCF3 OSCCONbits.IRCF3 // bit 6
6053 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
6054 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
6055 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
6056 #define OSTS OSCSTATbits.OSTS // bit 5
6057 #define SOSCR OSCSTATbits.SOSCR // bit 7
6059 #define NOT_BOR PCONbits.NOT_BOR // bit 0
6060 #define NOT_POR PCONbits.NOT_POR // bit 1
6061 #define NOT_RI PCONbits.NOT_RI // bit 2
6062 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
6063 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
6064 #define STKUNF PCONbits.STKUNF // bit 6
6065 #define STKOVF PCONbits.STKOVF // bit 7
6067 #define TMR1IE PIE1bits.TMR1IE // bit 0
6068 #define TMR2IE PIE1bits.TMR2IE // bit 1
6069 #define SSP1IE PIE1bits.SSP1IE // bit 3
6070 #define TXIE PIE1bits.TXIE // bit 4
6071 #define RCIE PIE1bits.RCIE // bit 5
6072 #define ADIE PIE1bits.ADIE // bit 6
6073 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
6075 #define NCO1IE PIE2bits.NCO1IE // bit 2
6076 #define BCL1IE PIE2bits.BCL1IE // bit 3
6077 #define C1IE PIE2bits.C1IE // bit 5
6078 #define C2IE PIE2bits.C2IE // bit 6
6079 #define OSFIE PIE2bits.OSFIE // bit 7
6081 #define CLC1IE PIE3bits.CLC1IE // bit 0
6082 #define CLC2IE PIE3bits.CLC2IE // bit 1
6083 #define CLC3IE PIE3bits.CLC3IE // bit 2
6084 #define CLC4IE PIE3bits.CLC4IE // bit 3
6086 #define TMR1IF PIR1bits.TMR1IF // bit 0
6087 #define TMR2IF PIR1bits.TMR2IF // bit 1
6088 #define SSP1IF PIR1bits.SSP1IF // bit 3
6089 #define TXIF PIR1bits.TXIF // bit 4
6090 #define RCIF PIR1bits.RCIF // bit 5
6091 #define ADIF PIR1bits.ADIF // bit 6
6092 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
6094 #define NCO1IF PIR2bits.NCO1IF // bit 2
6095 #define BCL1IF PIR2bits.BCL1IF // bit 3
6096 #define C1IF PIR2bits.C1IF // bit 5
6097 #define C2IF PIR2bits.C2IF // bit 6
6098 #define OSFIF PIR2bits.OSFIF // bit 7
6100 #define CLC1IF PIR3bits.CLC1IF // bit 0
6101 #define CLC2IF PIR3bits.CLC2IF // bit 1
6102 #define CLC3IF PIR3bits.CLC3IF // bit 2
6103 #define CLC4IF PIR3bits.CLC4IF // bit 3
6105 #define RD PMCON1bits.RD // bit 0
6106 #define WR PMCON1bits.WR // bit 1
6107 #define WREN PMCON1bits.WREN // bit 2
6108 #define WRERR PMCON1bits.WRERR // bit 3
6109 #define FREE PMCON1bits.FREE // bit 4
6110 #define LWLO PMCON1bits.LWLO // bit 5
6111 #define CFGS PMCON1bits.CFGS // bit 6
6113 #define RA0 PORTAbits.RA0 // bit 0
6114 #define RA1 PORTAbits.RA1 // bit 1
6115 #define RA2 PORTAbits.RA2 // bit 2
6116 #define RA3 PORTAbits.RA3 // bit 3
6117 #define RA4 PORTAbits.RA4 // bit 4
6118 #define RA5 PORTAbits.RA5 // bit 5
6120 #define RB4 PORTBbits.RB4 // bit 4
6121 #define RB5 PORTBbits.RB5 // bit 5
6122 #define RB6 PORTBbits.RB6 // bit 6
6123 #define RB7 PORTBbits.RB7 // bit 7
6125 #define RC0 PORTCbits.RC0 // bit 0
6126 #define RC1 PORTCbits.RC1 // bit 1
6127 #define RC2 PORTCbits.RC2 // bit 2
6128 #define RC3 PORTCbits.RC3 // bit 3
6129 #define RC4 PORTCbits.RC4 // bit 4
6130 #define RC5 PORTCbits.RC5 // bit 5
6131 #define RC6 PORTCbits.RC6 // bit 6
6132 #define RC7 PORTCbits.RC7 // bit 7
6134 #define PWM1POL PWM1CONbits.PWM1POL // bit 4
6135 #define PWM1OUT PWM1CONbits.PWM1OUT // bit 5
6136 #define PWM1OE PWM1CONbits.PWM1OE // bit 6
6137 #define PWM1EN PWM1CONbits.PWM1EN // bit 7
6139 #define PWM1DCH0 PWM1DCHbits.PWM1DCH0 // bit 0
6140 #define PWM1DCH1 PWM1DCHbits.PWM1DCH1 // bit 1
6141 #define PWM1DCH2 PWM1DCHbits.PWM1DCH2 // bit 2
6142 #define PWM1DCH3 PWM1DCHbits.PWM1DCH3 // bit 3
6143 #define PWM1DCH4 PWM1DCHbits.PWM1DCH4 // bit 4
6144 #define PWM1DCH5 PWM1DCHbits.PWM1DCH5 // bit 5
6145 #define PWM1DCH6 PWM1DCHbits.PWM1DCH6 // bit 6
6146 #define PWM1DCH7 PWM1DCHbits.PWM1DCH7 // bit 7
6148 #define PWM1DCL0 PWM1DCLbits.PWM1DCL0 // bit 6
6149 #define PWM1DCL1 PWM1DCLbits.PWM1DCL1 // bit 7
6151 #define PWM2POL PWM2CONbits.PWM2POL // bit 4
6152 #define PWM2OUT PWM2CONbits.PWM2OUT // bit 5
6153 #define PWM2OE PWM2CONbits.PWM2OE // bit 6
6154 #define PWM2EN PWM2CONbits.PWM2EN // bit 7
6156 #define PWM2DCH0 PWM2DCHbits.PWM2DCH0 // bit 0
6157 #define PWM2DCH1 PWM2DCHbits.PWM2DCH1 // bit 1
6158 #define PWM2DCH2 PWM2DCHbits.PWM2DCH2 // bit 2
6159 #define PWM2DCH3 PWM2DCHbits.PWM2DCH3 // bit 3
6160 #define PWM2DCH4 PWM2DCHbits.PWM2DCH4 // bit 4
6161 #define PWM2DCH5 PWM2DCHbits.PWM2DCH5 // bit 5
6162 #define PWM2DCH6 PWM2DCHbits.PWM2DCH6 // bit 6
6163 #define PWM2DCH7 PWM2DCHbits.PWM2DCH7 // bit 7
6165 #define PWM2DCL0 PWM2DCLbits.PWM2DCL0 // bit 6
6166 #define PWM2DCL1 PWM2DCLbits.PWM2DCL1 // bit 7
6168 #define PWM3POL PWM3CONbits.PWM3POL // bit 4
6169 #define PWM3OUT PWM3CONbits.PWM3OUT // bit 5
6170 #define PWM3OE PWM3CONbits.PWM3OE // bit 6
6171 #define PWM3EN PWM3CONbits.PWM3EN // bit 7
6173 #define PWM3DCH0 PWM3DCHbits.PWM3DCH0 // bit 0
6174 #define PWM3DCH1 PWM3DCHbits.PWM3DCH1 // bit 1
6175 #define PWM3DCH2 PWM3DCHbits.PWM3DCH2 // bit 2
6176 #define PWM3DCH3 PWM3DCHbits.PWM3DCH3 // bit 3
6177 #define PWM3DCH4 PWM3DCHbits.PWM3DCH4 // bit 4
6178 #define PWM3DCH5 PWM3DCHbits.PWM3DCH5 // bit 5
6179 #define PWM3DCH6 PWM3DCHbits.PWM3DCH6 // bit 6
6180 #define PWM3DCH7 PWM3DCHbits.PWM3DCH7 // bit 7
6182 #define PWM3DCL0 PWM3DCLbits.PWM3DCL0 // bit 6
6183 #define PWM3DCL1 PWM3DCLbits.PWM3DCL1 // bit 7
6185 #define PWM4POL PWM4CONbits.PWM4POL // bit 4
6186 #define PWM4OUT PWM4CONbits.PWM4OUT // bit 5
6187 #define PWM4OE PWM4CONbits.PWM4OE // bit 6
6188 #define PWM4EN PWM4CONbits.PWM4EN // bit 7
6190 #define PWM4DCH0 PWM4DCHbits.PWM4DCH0 // bit 0
6191 #define PWM4DCH1 PWM4DCHbits.PWM4DCH1 // bit 1
6192 #define PWM4DCH2 PWM4DCHbits.PWM4DCH2 // bit 2
6193 #define PWM4DCH3 PWM4DCHbits.PWM4DCH3 // bit 3
6194 #define PWM4DCH4 PWM4DCHbits.PWM4DCH4 // bit 4
6195 #define PWM4DCH5 PWM4DCHbits.PWM4DCH5 // bit 5
6196 #define PWM4DCH6 PWM4DCHbits.PWM4DCH6 // bit 6
6197 #define PWM4DCH7 PWM4DCHbits.PWM4DCH7 // bit 7
6199 #define PWM4DCL0 PWM4DCLbits.PWM4DCL0 // bit 6
6200 #define PWM4DCL1 PWM4DCLbits.PWM4DCL1 // bit 7
6202 #define RX9D RCSTAbits.RX9D // bit 0
6203 #define OERR RCSTAbits.OERR // bit 1
6204 #define FERR RCSTAbits.FERR // bit 2
6205 #define ADDEN RCSTAbits.ADDEN // bit 3
6206 #define CREN RCSTAbits.CREN // bit 4
6207 #define SREN RCSTAbits.SREN // bit 5
6208 #define RX9 RCSTAbits.RX9 // bit 6
6209 #define SPEN RCSTAbits.SPEN // bit 7
6211 #define SSPM0 SSP1CON1bits.SSPM0 // bit 0
6212 #define SSPM1 SSP1CON1bits.SSPM1 // bit 1
6213 #define SSPM2 SSP1CON1bits.SSPM2 // bit 2
6214 #define SSPM3 SSP1CON1bits.SSPM3 // bit 3
6215 #define CKP SSP1CON1bits.CKP // bit 4
6216 #define SSPEN SSP1CON1bits.SSPEN // bit 5
6217 #define SSPOV SSP1CON1bits.SSPOV // bit 6
6218 #define WCOL SSP1CON1bits.WCOL // bit 7
6220 #define SEN SSP1CON2bits.SEN // bit 0
6221 #define RSEN SSP1CON2bits.RSEN // bit 1
6222 #define PEN SSP1CON2bits.PEN // bit 2
6223 #define RCEN SSP1CON2bits.RCEN // bit 3
6224 #define ACKEN SSP1CON2bits.ACKEN // bit 4
6225 #define ACKDT SSP1CON2bits.ACKDT // bit 5
6226 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
6227 #define GCEN SSP1CON2bits.GCEN // bit 7
6229 #define DHEN SSP1CON3bits.DHEN // bit 0
6230 #define AHEN SSP1CON3bits.AHEN // bit 1
6231 #define SBCDE SSP1CON3bits.SBCDE // bit 2
6232 #define SDAHT SSP1CON3bits.SDAHT // bit 3
6233 #define BOEN SSP1CON3bits.BOEN // bit 4
6234 #define SCIE SSP1CON3bits.SCIE // bit 5
6235 #define PCIE SSP1CON3bits.PCIE // bit 6
6236 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
6238 #define BF SSP1STATbits.BF // bit 0
6239 #define UA SSP1STATbits.UA // bit 1
6240 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
6241 #define S SSP1STATbits.S // bit 3
6242 #define P SSP1STATbits.P // bit 4
6243 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
6244 #define CKE SSP1STATbits.CKE // bit 6
6245 #define SMP SSP1STATbits.SMP // bit 7
6247 #define C STATUSbits.C // bit 0
6248 #define DC STATUSbits.DC // bit 1
6249 #define Z STATUSbits.Z // bit 2
6250 #define NOT_PD STATUSbits.NOT_PD // bit 3
6251 #define NOT_TO STATUSbits.NOT_TO // bit 4
6253 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
6254 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
6255 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
6257 #define TMR1ON T1CONbits.TMR1ON // bit 0
6258 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
6259 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
6260 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
6261 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
6262 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
6263 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
6265 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
6266 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
6267 #define T1GVAL T1GCONbits.T1GVAL // bit 2
6268 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
6269 #define T1GSPM T1GCONbits.T1GSPM // bit 4
6270 #define T1GTM T1GCONbits.T1GTM // bit 5
6271 #define T1GPOL T1GCONbits.T1GPOL // bit 6
6272 #define TMR1GE T1GCONbits.TMR1GE // bit 7
6274 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
6275 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
6276 #define TMR2ON T2CONbits.TMR2ON // bit 2
6277 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
6278 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
6279 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
6280 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
6282 #define TRISA0 TRISAbits.TRISA0 // bit 0
6283 #define TRISA1 TRISAbits.TRISA1 // bit 1
6284 #define TRISA2 TRISAbits.TRISA2 // bit 2
6285 #define TRISA3 TRISAbits.TRISA3 // bit 3
6286 #define TRISA4 TRISAbits.TRISA4 // bit 4
6287 #define TRISA5 TRISAbits.TRISA5 // bit 5
6289 #define TRISB4 TRISBbits.TRISB4 // bit 4
6290 #define TRISB5 TRISBbits.TRISB5 // bit 5
6291 #define TRISB6 TRISBbits.TRISB6 // bit 6
6292 #define TRISB7 TRISBbits.TRISB7 // bit 7
6294 #define TRISC0 TRISCbits.TRISC0 // bit 0
6295 #define TRISC1 TRISCbits.TRISC1 // bit 1
6296 #define TRISC2 TRISCbits.TRISC2 // bit 2
6297 #define TRISC3 TRISCbits.TRISC3 // bit 3
6298 #define TRISC4 TRISCbits.TRISC4 // bit 4
6299 #define TRISC5 TRISCbits.TRISC5 // bit 5
6300 #define TRISC6 TRISCbits.TRISC6 // bit 6
6301 #define TRISC7 TRISCbits.TRISC7 // bit 7
6303 #define TX9D TXSTAbits.TX9D // bit 0
6304 #define TRMT TXSTAbits.TRMT // bit 1
6305 #define BRGH TXSTAbits.BRGH // bit 2
6306 #define SENDB TXSTAbits.SENDB // bit 3
6307 #define SYNC TXSTAbits.SYNC // bit 4
6308 #define TXEN TXSTAbits.TXEN // bit 5
6309 #define TX9 TXSTAbits.TX9 // bit 6
6310 #define CSRC TXSTAbits.CSRC // bit 7
6312 #define SWDTEN WDTCONbits.SWDTEN // bit 0
6313 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
6314 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
6315 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
6316 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
6317 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
6319 #define WPUA0 WPUAbits.WPUA0 // bit 0
6320 #define WPUA1 WPUAbits.WPUA1 // bit 1
6321 #define WPUA2 WPUAbits.WPUA2 // bit 2
6322 #define WPUA3 WPUAbits.WPUA3 // bit 3
6323 #define WPUA4 WPUAbits.WPUA4 // bit 4
6324 #define WPUA5 WPUAbits.WPUA5 // bit 5
6326 #define WPUB4 WPUBbits.WPUB4 // bit 4
6327 #define WPUB5 WPUBbits.WPUB5 // bit 5
6328 #define WPUB6 WPUBbits.WPUB6 // bit 6
6329 #define WPUB7 WPUBbits.WPUB7 // bit 7
6331 #endif // #ifndef NO_BIT_DEFINES
6333 #endif // #ifndef __PIC16LF1509_H__