1 /*
2  * This declarations of the PIC16F1778 MCU.
3  *
4  * This file is part of the GNU PIC library for SDCC, originally
5  * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
6  *
7  * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:16 UTC.
8  *
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.
12  *
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.
21  *
22  * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
23  */
24 
25 #ifndef __PIC16F1778_H__
26 #define __PIC16F1778_H__
27 
28 //==============================================================================
29 //
30 //	Register Addresses
31 //
32 //==============================================================================
33 
34 #ifndef NO_ADDR_DEFINES
35 
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 PORTE_ADDR              0x0010
54 #define PIR1_ADDR               0x0011
55 #define PIR2_ADDR               0x0012
56 #define PIR3_ADDR               0x0013
57 #define PIR4_ADDR               0x0014
58 #define PIR5_ADDR               0x0015
59 #define PIR6_ADDR               0x0016
60 #define TMR0_ADDR               0x0017
61 #define TMR1_ADDR               0x0018
62 #define TMR1L_ADDR              0x0018
63 #define TMR1H_ADDR              0x0019
64 #define T1CON_ADDR              0x001A
65 #define T1GCON_ADDR             0x001B
66 #define TMR3_ADDR               0x001C
67 #define TMR3L_ADDR              0x001C
68 #define TMR3H_ADDR              0x001D
69 #define T3CON_ADDR              0x001E
70 #define T3GCON_ADDR             0x001F
71 #define TRISA_ADDR              0x008C
72 #define TRISB_ADDR              0x008D
73 #define TRISC_ADDR              0x008E
74 #define TRISE_ADDR              0x0090
75 #define PIE1_ADDR               0x0091
76 #define PIE2_ADDR               0x0092
77 #define PIE3_ADDR               0x0093
78 #define PIE4_ADDR               0x0094
79 #define PIE5_ADDR               0x0095
80 #define PIE6_ADDR               0x0096
81 #define OPTION_REG_ADDR         0x0097
82 #define PCON_ADDR               0x0098
83 #define WDTCON_ADDR             0x0099
84 #define OSCTUNE_ADDR            0x009A
85 #define OSCCON_ADDR             0x009B
86 #define OSCSTAT_ADDR            0x009C
87 #define BORCON_ADDR             0x009D
88 #define FVRCON_ADDR             0x009E
89 #define ZCD1CON_ADDR            0x009F
90 #define LATA_ADDR               0x010C
91 #define LATB_ADDR               0x010D
92 #define LATC_ADDR               0x010E
93 #define CMOUT_ADDR              0x0111
94 #define CM1CON0_ADDR            0x0112
95 #define CM1CON1_ADDR            0x0113
96 #define CM1NSEL_ADDR            0x0114
97 #define CM1PSEL_ADDR            0x0115
98 #define CM2CON0_ADDR            0x0116
99 #define CM2CON1_ADDR            0x0117
100 #define CM2NSEL_ADDR            0x0118
101 #define CM2PSEL_ADDR            0x0119
102 #define CM3CON0_ADDR            0x011A
103 #define CM3CON1_ADDR            0x011B
104 #define CM3NSEL_ADDR            0x011C
105 #define CM3PSEL_ADDR            0x011D
106 #define ANSELA_ADDR             0x018C
107 #define ANSELB_ADDR             0x018D
108 #define ANSELC_ADDR             0x018E
109 #define PMADR_ADDR              0x0191
110 #define PMADRL_ADDR             0x0191
111 #define PMADRH_ADDR             0x0192
112 #define PMDAT_ADDR              0x0193
113 #define PMDATL_ADDR             0x0193
114 #define PMDATH_ADDR             0x0194
115 #define PMCON1_ADDR             0x0195
116 #define PMCON2_ADDR             0x0196
117 #define VREGCON_ADDR            0x0197
118 #define RC1REG_ADDR             0x0199
119 #define RCREG_ADDR              0x0199
120 #define RCREG1_ADDR             0x0199
121 #define TX1REG_ADDR             0x019A
122 #define TXREG_ADDR              0x019A
123 #define TXREG1_ADDR             0x019A
124 #define SP1BRG_ADDR             0x019B
125 #define SP1BRGL_ADDR            0x019B
126 #define SPBRG_ADDR              0x019B
127 #define SPBRG1_ADDR             0x019B
128 #define SPBRGL_ADDR             0x019B
129 #define SP1BRGH_ADDR            0x019C
130 #define SPBRGH_ADDR             0x019C
131 #define SPBRGH1_ADDR            0x019C
132 #define RC1STA_ADDR             0x019D
133 #define RCSTA_ADDR              0x019D
134 #define RCSTA1_ADDR             0x019D
135 #define TX1STA_ADDR             0x019E
136 #define TXSTA_ADDR              0x019E
137 #define TXSTA1_ADDR             0x019E
138 #define BAUD1CON_ADDR           0x019F
139 #define BAUDCON_ADDR            0x019F
140 #define BAUDCON1_ADDR           0x019F
141 #define BAUDCTL_ADDR            0x019F
142 #define BAUDCTL1_ADDR           0x019F
143 #define WPUA_ADDR               0x020C
144 #define WPUB_ADDR               0x020D
145 #define WPUC_ADDR               0x020E
146 #define WPUE_ADDR               0x0210
147 #define SSP1BUF_ADDR            0x0211
148 #define SSPBUF_ADDR             0x0211
149 #define SSP1ADD_ADDR            0x0212
150 #define SSPADD_ADDR             0x0212
151 #define SSP1MSK_ADDR            0x0213
152 #define SSPMSK_ADDR             0x0213
153 #define SSP1STAT_ADDR           0x0214
154 #define SSPSTAT_ADDR            0x0214
155 #define SSP1CON_ADDR            0x0215
156 #define SSP1CON1_ADDR           0x0215
157 #define SSPCON_ADDR             0x0215
158 #define SSPCON1_ADDR            0x0215
159 #define SSP1CON2_ADDR           0x0216
160 #define SSPCON2_ADDR            0x0216
161 #define SSP1CON3_ADDR           0x0217
162 #define SSPCON3_ADDR            0x0217
163 #define MD3CON0_ADDR            0x021B
164 #define MD3CON1_ADDR            0x021C
165 #define MD3SRC_ADDR             0x021D
166 #define MD3CARL_ADDR            0x021E
167 #define MD3CARH_ADDR            0x021F
168 #define ODCONA_ADDR             0x028C
169 #define ODCONB_ADDR             0x028D
170 #define ODCONC_ADDR             0x028E
171 #define CCPR1_ADDR              0x0291
172 #define CCPR1L_ADDR             0x0291
173 #define CCPR1H_ADDR             0x0292
174 #define CCP1CON_ADDR            0x0293
175 #define CCP1CAP_ADDR            0x0294
176 #define CCPR2_ADDR              0x0295
177 #define CCPR2L_ADDR             0x0295
178 #define CCPR2H_ADDR             0x0296
179 #define CCP2CON_ADDR            0x0297
180 #define CCP2CAP_ADDR            0x0298
181 #define CCPR7_ADDR              0x0299
182 #define CCPR7L_ADDR             0x0299
183 #define CCPR7H_ADDR             0x029A
184 #define CCP7CON_ADDR            0x029B
185 #define CCP7CAP_ADDR            0x029C
186 #define CCPTMRS1_ADDR           0x029E
187 #define CCPTMRS2_ADDR           0x029F
188 #define SLRCONA_ADDR            0x030C
189 #define SLRCONB_ADDR            0x030D
190 #define SLRCONC_ADDR            0x030E
191 #define MD1CON0_ADDR            0x0315
192 #define MD1CON1_ADDR            0x0316
193 #define MD1SRC_ADDR             0x0317
194 #define MD1CARL_ADDR            0x0318
195 #define MD1CARH_ADDR            0x0319
196 #define MD2CON0_ADDR            0x031B
197 #define MD2CON1_ADDR            0x031C
198 #define MD2SRC_ADDR             0x031D
199 #define MD2CARL_ADDR            0x031E
200 #define MD2CARH_ADDR            0x031F
201 #define INLVLA_ADDR             0x038C
202 #define INLVLB_ADDR             0x038D
203 #define INLVLC_ADDR             0x038E
204 #define INLVE_ADDR              0x0390
205 #define IOCAP_ADDR              0x0391
206 #define IOCAN_ADDR              0x0392
207 #define IOCAF_ADDR              0x0393
208 #define IOCBP_ADDR              0x0394
209 #define IOCBN_ADDR              0x0395
210 #define IOCBF_ADDR              0x0396
211 #define IOCCP_ADDR              0x0397
212 #define IOCCN_ADDR              0x0398
213 #define IOCCF_ADDR              0x0399
214 #define IOCEP_ADDR              0x039D
215 #define IOCEN_ADDR              0x039E
216 #define IOCEF_ADDR              0x039F
217 #define HIDRVB_ADDR             0x040D
218 #define TMR5_ADDR               0x040F
219 #define TMR5L_ADDR              0x040F
220 #define TMR5H_ADDR              0x0410
221 #define T5CON_ADDR              0x0411
222 #define T5GCON_ADDR             0x0412
223 #define T4TMR_ADDR              0x0413
224 #define TMR4_ADDR               0x0413
225 #define PR4_ADDR                0x0414
226 #define T4PR_ADDR               0x0414
227 #define T4CON_ADDR              0x0415
228 #define T4HLT_ADDR              0x0416
229 #define T4CLKCON_ADDR           0x0417
230 #define T4RST_ADDR              0x0418
231 #define T6TMR_ADDR              0x041A
232 #define TMR6_ADDR               0x041A
233 #define PR6_ADDR                0x041B
234 #define T6PR_ADDR               0x041B
235 #define T6CON_ADDR              0x041C
236 #define T6HLT_ADDR              0x041D
237 #define T6CLKCON_ADDR           0x041E
238 #define T6RST_ADDR              0x041F
239 #define ADRESL_ADDR             0x048E
240 #define ADRESH_ADDR             0x048F
241 #define ADCON0_ADDR             0x0490
242 #define ADCON1_ADDR             0x0491
243 #define ADCON2_ADDR             0x0492
244 #define T2TMR_ADDR              0x0493
245 #define TMR2_ADDR               0x0493
246 #define PR2_ADDR                0x0494
247 #define T2PR_ADDR               0x0494
248 #define T2CON_ADDR              0x0495
249 #define T2HLT_ADDR              0x0496
250 #define T2CLKCON_ADDR           0x0497
251 #define T2RST_ADDR              0x0498
252 #define T8TMR_ADDR              0x049A
253 #define TMR8_ADDR               0x049A
254 #define PR8_ADDR                0x049B
255 #define T8PR_ADDR               0x049B
256 #define T8CON_ADDR              0x049C
257 #define T8HLT_ADDR              0x049D
258 #define T8CLKCON_ADDR           0x049E
259 #define T8RST_ADDR              0x049F
260 #define OPA1NCHS_ADDR           0x050F
261 #define OPA1PCHS_ADDR           0x0510
262 #define OPA1CON_ADDR            0x0511
263 #define OPA1ORS_ADDR            0x0512
264 #define OPA2NCHS_ADDR           0x0513
265 #define OPA2PCHS_ADDR           0x0514
266 #define OPA2CON_ADDR            0x0515
267 #define OPA2ORS_ADDR            0x0516
268 #define OPA3NCHS_ADDR           0x0517
269 #define OPA3PCHS_ADDR           0x0518
270 #define OPA3CON_ADDR            0x0519
271 #define OPA3ORS_ADDR            0x051A
272 #define DACLD_ADDR              0x058D
273 #define DAC1CON0_ADDR           0x058E
274 #define DAC1CON1_ADDR           0x058F
275 #define DAC1REF_ADDR            0x058F
276 #define DAC1REFL_ADDR           0x058F
277 #define DAC1CON2_ADDR           0x0590
278 #define DAC1REFH_ADDR           0x0590
279 #define DAC2CON0_ADDR           0x0591
280 #define DAC2CON1_ADDR           0x0592
281 #define DAC2REF_ADDR            0x0592
282 #define DAC2REFL_ADDR           0x0592
283 #define DAC2CON2_ADDR           0x0593
284 #define DAC2REFH_ADDR           0x0593
285 #define DAC3CON0_ADDR           0x0594
286 #define DAC3CON1_ADDR           0x0595
287 #define DAC3REF_ADDR            0x0595
288 #define DAC4CON0_ADDR           0x0596
289 #define DAC4CON1_ADDR           0x0597
290 #define DAC4REF_ADDR            0x0597
291 #define DAC5CON0_ADDR           0x0598
292 #define DAC5CON1_ADDR           0x0599
293 #define DAC5REF_ADDR            0x0599
294 #define DAC5REFL_ADDR           0x0599
295 #define DAC5CON2_ADDR           0x059A
296 #define DAC5REFH_ADDR           0x059A
297 #define DAC7CON0_ADDR           0x059E
298 #define DAC7CON1_ADDR           0x059F
299 #define DAC7REF_ADDR            0x059F
300 #define PWM3DCL_ADDR            0x0614
301 #define PWM3DCH_ADDR            0x0615
302 #define PWM3CON_ADDR            0x0616
303 #define PWM4DCL_ADDR            0x0617
304 #define PWM4DCH_ADDR            0x0618
305 #define PWM4CON_ADDR            0x0619
306 #define PWM9DCL_ADDR            0x061A
307 #define PWM9DCH_ADDR            0x061B
308 #define PWM9CON_ADDR            0x061C
309 #define COG1PHR_ADDR            0x068D
310 #define COG1PHF_ADDR            0x068E
311 #define COG1BLKR_ADDR           0x068F
312 #define COG1BLKF_ADDR           0x0690
313 #define COG1DBR_ADDR            0x0691
314 #define COG1DBF_ADDR            0x0692
315 #define COG1CON0_ADDR           0x0693
316 #define COG1CON1_ADDR           0x0694
317 #define COG1RIS0_ADDR           0x0695
318 #define COG1RIS1_ADDR           0x0696
319 #define COG1RSIM0_ADDR          0x0697
320 #define COG1RSIM1_ADDR          0x0698
321 #define COG1FIS0_ADDR           0x0699
322 #define COG1FIS1_ADDR           0x069A
323 #define COG1FSIM0_ADDR          0x069B
324 #define COG1FSIM1_ADDR          0x069C
325 #define COG1ASD0_ADDR           0x069D
326 #define COG1ASD1_ADDR           0x069E
327 #define COG1STR_ADDR            0x069F
328 #define COG2PHR_ADDR            0x070D
329 #define COG2PHF_ADDR            0x070E
330 #define COG2BLKR_ADDR           0x070F
331 #define COG2BLKF_ADDR           0x0710
332 #define COG2DBR_ADDR            0x0711
333 #define COG2DBF_ADDR            0x0712
334 #define COG2CON0_ADDR           0x0713
335 #define COG2CON1_ADDR           0x0714
336 #define COG2RIS0_ADDR           0x0715
337 #define COG2RIS1_ADDR           0x0716
338 #define COG2RSIM0_ADDR          0x0717
339 #define COG2RSIM1_ADDR          0x0718
340 #define COG2FIS0_ADDR           0x0719
341 #define COG2FIS1_ADDR           0x071A
342 #define COG2FSIM0_ADDR          0x071B
343 #define COG2FSIM1_ADDR          0x071C
344 #define COG2ASD0_ADDR           0x071D
345 #define COG2ASD1_ADDR           0x071E
346 #define COG2STR_ADDR            0x071F
347 #define PRG1RTSS_ADDR           0x078E
348 #define PRG1FTSS_ADDR           0x078F
349 #define PRG1INS_ADDR            0x0790
350 #define PRG1CON0_ADDR           0x0791
351 #define PRG1CON1_ADDR           0x0792
352 #define PRG1CON2_ADDR           0x0793
353 #define PRG2RTSS_ADDR           0x0794
354 #define PRG2FTSS_ADDR           0x0795
355 #define PRG2INS_ADDR            0x0796
356 #define PRG2CON0_ADDR           0x0797
357 #define PRG2CON1_ADDR           0x0798
358 #define PRG2CON2_ADDR           0x0799
359 #define PRG3RTSS_ADDR           0x079A
360 #define PRG3FTSS_ADDR           0x079B
361 #define PRG3INS_ADDR            0x079C
362 #define PRG3CON0_ADDR           0x079D
363 #define PRG3CON1_ADDR           0x079E
364 #define PRG3CON2_ADDR           0x079F
365 #define COG3PHR_ADDR            0x080D
366 #define COG3PHF_ADDR            0x080E
367 #define COG3BLKR_ADDR           0x080F
368 #define COG3BLKF_ADDR           0x0810
369 #define COG3DBR_ADDR            0x0811
370 #define COG3DBF_ADDR            0x0812
371 #define COG3CON0_ADDR           0x0813
372 #define COG3CON1_ADDR           0x0814
373 #define COG3RIS0_ADDR           0x0815
374 #define COG3RIS1_ADDR           0x0816
375 #define COG3RSIM0_ADDR          0x0817
376 #define COG3RSIM1_ADDR          0x0818
377 #define COG3FIS0_ADDR           0x0819
378 #define COG3FIS1_ADDR           0x081A
379 #define COG3FSIM0_ADDR          0x081B
380 #define COG3FSIM1_ADDR          0x081C
381 #define COG3ASD0_ADDR           0x081D
382 #define COG3ASD1_ADDR           0x081E
383 #define COG3STR_ADDR            0x081F
384 #define CM4CON0_ADDR            0x090C
385 #define CM4CON1_ADDR            0x090D
386 #define CM4NSEL_ADDR            0x090E
387 #define CM4PSEL_ADDR            0x090F
388 #define CM5CON0_ADDR            0x0910
389 #define CM5CON1_ADDR            0x0911
390 #define CM5NSEL_ADDR            0x0912
391 #define CM5PSEL_ADDR            0x0913
392 #define CM6CON0_ADDR            0x0914
393 #define CM6CON1_ADDR            0x0915
394 #define CM6NSEL_ADDR            0x0916
395 #define CM6PSEL_ADDR            0x0917
396 #define PWMEN_ADDR              0x0D8E
397 #define PWMLD_ADDR              0x0D8F
398 #define PWMOUT_ADDR             0x0D90
399 #define PWM5PH_ADDR             0x0D91
400 #define PWM5PHL_ADDR            0x0D91
401 #define PWM5PHH_ADDR            0x0D92
402 #define PWM5DC_ADDR             0x0D93
403 #define PWM5DCL_ADDR            0x0D93
404 #define PWM5DCH_ADDR            0x0D94
405 #define PWM5PR_ADDR             0x0D95
406 #define PWM5PRL_ADDR            0x0D95
407 #define PWM5PRH_ADDR            0x0D96
408 #define PWM5OF_ADDR             0x0D97
409 #define PWM5OFL_ADDR            0x0D97
410 #define PWM5OFH_ADDR            0x0D98
411 #define PWM5TMR_ADDR            0x0D99
412 #define PWM5TMRL_ADDR           0x0D99
413 #define PWM5TMRH_ADDR           0x0D9A
414 #define PWM5CON_ADDR            0x0D9B
415 #define PWM5INTCON_ADDR         0x0D9C
416 #define PWM5INTE_ADDR           0x0D9C
417 #define PWM5INTF_ADDR           0x0D9D
418 #define PWM5INTFLG_ADDR         0x0D9D
419 #define PWM5CLKCON_ADDR         0x0D9E
420 #define PWM5LDCON_ADDR          0x0D9F
421 #define PWM5OFCON_ADDR          0x0DA0
422 #define PWM6PH_ADDR             0x0DA1
423 #define PWM6PHL_ADDR            0x0DA1
424 #define PWM6PHH_ADDR            0x0DA2
425 #define PWM6DC_ADDR             0x0DA3
426 #define PWM6DCL_ADDR            0x0DA3
427 #define PWM6DCH_ADDR            0x0DA4
428 #define PWM6PR_ADDR             0x0DA5
429 #define PWM6PRL_ADDR            0x0DA5
430 #define PWM6PRH_ADDR            0x0DA6
431 #define PWM6OF_ADDR             0x0DA7
432 #define PWM6OFL_ADDR            0x0DA7
433 #define PWM6OFH_ADDR            0x0DA8
434 #define PWM6TMR_ADDR            0x0DA9
435 #define PWM6TMRL_ADDR           0x0DA9
436 #define PWM6TMRH_ADDR           0x0DAA
437 #define PWM6CON_ADDR            0x0DAB
438 #define PWM6INTCON_ADDR         0x0DAC
439 #define PWM6INTE_ADDR           0x0DAC
440 #define PWM6INTF_ADDR           0x0DAD
441 #define PWM6INTFLG_ADDR         0x0DAD
442 #define PWM6CLKCON_ADDR         0x0DAE
443 #define PWM6LDCON_ADDR          0x0DAF
444 #define PWM6OFCON_ADDR          0x0DB0
445 #define PWM11PH_ADDR            0x0DB1
446 #define PWM11PHL_ADDR           0x0DB1
447 #define PWM11PHH_ADDR           0x0DB2
448 #define PWM11DC_ADDR            0x0DB3
449 #define PWM11DCL_ADDR           0x0DB3
450 #define PWM11DCH_ADDR           0x0DB4
451 #define PWM11PR_ADDR            0x0DB5
452 #define PWM11PRL_ADDR           0x0DB5
453 #define PWM11PRH_ADDR           0x0DB6
454 #define PWM11OF_ADDR            0x0DB7
455 #define PWM11OFL_ADDR           0x0DB7
456 #define PWM11OFH_ADDR           0x0DB8
457 #define PWM11TMR_ADDR           0x0DB9
458 #define PWM11TMRL_ADDR          0x0DB9
459 #define PWM11TMRH_ADDR          0x0DBA
460 #define PWM11CON_ADDR           0x0DBB
461 #define PWM11INTCON_ADDR        0x0DBC
462 #define PWM11INTE_ADDR          0x0DBC
463 #define PWM11INTF_ADDR          0x0DBD
464 #define PWM11INTFLG_ADDR        0x0DBD
465 #define PWM11CLKCON_ADDR        0x0DBE
466 #define PWM11LDCON_ADDR         0x0DBF
467 #define PWM11OFCON_ADDR         0x0DC0
468 #define PPSLOCK_ADDR            0x0E0C
469 #define INTPPS_ADDR             0x0E0D
470 #define T0CKIPPS_ADDR           0x0E0E
471 #define T1CKIPPS_ADDR           0x0E0F
472 #define T1GPPS_ADDR             0x0E10
473 #define T3CKIPPS_ADDR           0x0E11
474 #define T3GPPS_ADDR             0x0E12
475 #define T5CKIPPS_ADDR           0x0E13
476 #define T5GPPS_ADDR             0x0E14
477 #define T2CKIPPS_ADDR           0x0E15
478 #define T4CKIPPS_ADDR           0x0E16
479 #define T6CKIPPS_ADDR           0x0E17
480 #define T8CKIPPS_ADDR           0x0E18
481 #define CCP1PPS_ADDR            0x0E19
482 #define CCP2PPS_ADDR            0x0E1A
483 #define CCP7PPS_ADDR            0x0E1B
484 #define COG1INPPS_ADDR          0x0E1D
485 #define COG2INPPS_ADDR          0x0E1E
486 #define COG3INPPS_ADDR          0x0E1F
487 #define MD1CLPPS_ADDR           0x0E21
488 #define MD1CHPPS_ADDR           0x0E22
489 #define MD1MODPPS_ADDR          0x0E23
490 #define MD2CLPPS_ADDR           0x0E24
491 #define MD2CHPPS_ADDR           0x0E25
492 #define MD2MODPPS_ADDR          0x0E26
493 #define MD3CLPPS_ADDR           0x0E27
494 #define MD3CHPPS_ADDR           0x0E28
495 #define MD3MODPPS_ADDR          0x0E29
496 #define PRG1RPPS_ADDR           0x0E2D
497 #define PRG1FPPS_ADDR           0x0E2E
498 #define PRG2RPPS_ADDR           0x0E2F
499 #define PRG2FPPS_ADDR           0x0E30
500 #define PRG3RPPS_ADDR           0x0E31
501 #define PRG3FPPS_ADDR           0x0E32
502 #define CLCIN0PPS_ADDR          0x0E35
503 #define CLCIN1PPS_ADDR          0x0E36
504 #define CLCIN2PPS_ADDR          0x0E37
505 #define CLCIN3PPS_ADDR          0x0E38
506 #define ADCACTPPS_ADDR          0x0E39
507 #define SSPCLKPPS_ADDR          0x0E3A
508 #define SSPDATPPS_ADDR          0x0E3B
509 #define SSPSSPPS_ADDR           0x0E3C
510 #define RXPPS_ADDR              0x0E3D
511 #define CKPPS_ADDR              0x0E3E
512 #define RA0PPS_ADDR             0x0E90
513 #define RA1PPS_ADDR             0x0E91
514 #define RA2PPS_ADDR             0x0E92
515 #define RA3PPS_ADDR             0x0E93
516 #define RA4PPS_ADDR             0x0E94
517 #define RA5PPS_ADDR             0x0E95
518 #define RA6PPS_ADDR             0x0E96
519 #define RA7PPS_ADDR             0x0E97
520 #define RB0PPS_ADDR             0x0E98
521 #define RB1PPS_ADDR             0x0E99
522 #define RB2PPS_ADDR             0x0E9A
523 #define RB3PPS_ADDR             0x0E9B
524 #define RB4PPS_ADDR             0x0E9C
525 #define RB5PPS_ADDR             0x0E9D
526 #define RB6PPS_ADDR             0x0E9E
527 #define RB7PPS_ADDR             0x0E9F
528 #define RC0PPS_ADDR             0x0EA0
529 #define RC1PPS_ADDR             0x0EA1
530 #define RC2PPS_ADDR             0x0EA2
531 #define RC3PPS_ADDR             0x0EA3
532 #define RC4PPS_ADDR             0x0EA4
533 #define RC5PPS_ADDR             0x0EA5
534 #define RC6PPS_ADDR             0x0EA6
535 #define RC7PPS_ADDR             0x0EA7
536 #define CLCDATA_ADDR            0x0F0F
537 #define CLC1CON_ADDR            0x0F10
538 #define CLC1POL_ADDR            0x0F11
539 #define CLC1SEL0_ADDR           0x0F12
540 #define CLC1SEL1_ADDR           0x0F13
541 #define CLC1SEL2_ADDR           0x0F14
542 #define CLC1SEL3_ADDR           0x0F15
543 #define CLC1GLS0_ADDR           0x0F16
544 #define CLC1GLS1_ADDR           0x0F17
545 #define CLC1GLS2_ADDR           0x0F18
546 #define CLC1GLS3_ADDR           0x0F19
547 #define CLC2CON_ADDR            0x0F1A
548 #define CLC2POL_ADDR            0x0F1B
549 #define CLC2SEL0_ADDR           0x0F1C
550 #define CLC2SEL1_ADDR           0x0F1D
551 #define CLC2SEL2_ADDR           0x0F1E
552 #define CLC2SEL3_ADDR           0x0F1F
553 #define CLC2GLS0_ADDR           0x0F20
554 #define CLC2GLS1_ADDR           0x0F21
555 #define CLC2GLS2_ADDR           0x0F22
556 #define CLC2GLS3_ADDR           0x0F23
557 #define CLC3CON_ADDR            0x0F24
558 #define CLC3POL_ADDR            0x0F25
559 #define CLC3SEL0_ADDR           0x0F26
560 #define CLC3SEL1_ADDR           0x0F27
561 #define CLC3SEL2_ADDR           0x0F28
562 #define CLC3SEL3_ADDR           0x0F29
563 #define CLC3GLS0_ADDR           0x0F2A
564 #define CLC3GLS1_ADDR           0x0F2B
565 #define CLC3GLS2_ADDR           0x0F2C
566 #define CLC3GLS3_ADDR           0x0F2D
567 #define CLC4CON_ADDR            0x0F2E
568 #define CLC4POL_ADDR            0x0F2F
569 #define CLC4SEL0_ADDR           0x0F30
570 #define CLC4SEL1_ADDR           0x0F31
571 #define CLC4SEL2_ADDR           0x0F32
572 #define CLC4SEL3_ADDR           0x0F33
573 #define CLC4GLS0_ADDR           0x0F34
574 #define CLC4GLS1_ADDR           0x0F35
575 #define CLC4GLS2_ADDR           0x0F36
576 #define CLC4GLS3_ADDR           0x0F37
577 #define STATUS_SHAD_ADDR        0x0FE4
578 #define WREG_SHAD_ADDR          0x0FE5
579 #define BSR_SHAD_ADDR           0x0FE6
580 #define PCLATH_SHAD_ADDR        0x0FE7
581 #define FSR0L_SHAD_ADDR         0x0FE8
582 #define FSR0H_SHAD_ADDR         0x0FE9
583 #define FSR1L_SHAD_ADDR         0x0FEA
584 #define FSR1H_SHAD_ADDR         0x0FEB
585 #define STKPTR_ADDR             0x0FED
586 #define TOSL_ADDR               0x0FEE
587 #define TOSH_ADDR               0x0FEF
588 
589 #endif // #ifndef NO_ADDR_DEFINES
590 
591 //==============================================================================
592 //
593 //	Register Definitions
594 //
595 //==============================================================================
596 
597 extern __at(0x0000) __sfr INDF0;
598 extern __at(0x0001) __sfr INDF1;
599 extern __at(0x0002) __sfr PCL;
600 
601 //==============================================================================
602 //        STATUS Bits
603 
604 extern __at(0x0003) __sfr STATUS;
605 
606 typedef struct
607   {
608   unsigned C                    : 1;
609   unsigned DC                   : 1;
610   unsigned Z                    : 1;
611   unsigned NOT_PD               : 1;
612   unsigned NOT_TO               : 1;
613   unsigned                      : 1;
614   unsigned                      : 1;
615   unsigned                      : 1;
616   } __STATUSbits_t;
617 
618 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
619 
620 #define _C                      0x01
621 #define _DC                     0x02
622 #define _Z                      0x04
623 #define _NOT_PD                 0x08
624 #define _NOT_TO                 0x10
625 
626 //==============================================================================
627 
628 extern __at(0x0004) __sfr FSR0;
629 extern __at(0x0004) __sfr FSR0L;
630 extern __at(0x0005) __sfr FSR0H;
631 extern __at(0x0006) __sfr FSR1;
632 extern __at(0x0006) __sfr FSR1L;
633 extern __at(0x0007) __sfr FSR1H;
634 
635 //==============================================================================
636 //        BSR Bits
637 
638 extern __at(0x0008) __sfr BSR;
639 
640 typedef union
641   {
642   struct
643     {
644     unsigned BSR0               : 1;
645     unsigned BSR1               : 1;
646     unsigned BSR2               : 1;
647     unsigned BSR3               : 1;
648     unsigned BSR4               : 1;
649     unsigned                    : 1;
650     unsigned                    : 1;
651     unsigned                    : 1;
652     };
653 
654   struct
655     {
656     unsigned BSR                : 5;
657     unsigned                    : 3;
658     };
659   } __BSRbits_t;
660 
661 extern __at(0x0008) volatile __BSRbits_t BSRbits;
662 
663 #define _BSR0                   0x01
664 #define _BSR1                   0x02
665 #define _BSR2                   0x04
666 #define _BSR3                   0x08
667 #define _BSR4                   0x10
668 
669 //==============================================================================
670 
671 extern __at(0x0009) __sfr WREG;
672 extern __at(0x000A) __sfr PCLATH;
673 
674 //==============================================================================
675 //        INTCON Bits
676 
677 extern __at(0x000B) __sfr INTCON;
678 
679 typedef union
680   {
681   struct
682     {
683     unsigned IOCIF              : 1;
684     unsigned INTF               : 1;
685     unsigned TMR0IF             : 1;
686     unsigned IOCIE              : 1;
687     unsigned INTE               : 1;
688     unsigned TMR0IE             : 1;
689     unsigned PEIE               : 1;
690     unsigned GIE                : 1;
691     };
692 
693   struct
694     {
695     unsigned                    : 1;
696     unsigned                    : 1;
697     unsigned T0IF               : 1;
698     unsigned                    : 1;
699     unsigned                    : 1;
700     unsigned T0IE               : 1;
701     unsigned                    : 1;
702     unsigned                    : 1;
703     };
704   } __INTCONbits_t;
705 
706 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
707 
708 #define _IOCIF                  0x01
709 #define _INTF                   0x02
710 #define _TMR0IF                 0x04
711 #define _T0IF                   0x04
712 #define _IOCIE                  0x08
713 #define _INTE                   0x10
714 #define _TMR0IE                 0x20
715 #define _T0IE                   0x20
716 #define _PEIE                   0x40
717 #define _GIE                    0x80
718 
719 //==============================================================================
720 
721 
722 //==============================================================================
723 //        PORTA Bits
724 
725 extern __at(0x000C) __sfr PORTA;
726 
727 typedef struct
728   {
729   unsigned RA0                  : 1;
730   unsigned RA1                  : 1;
731   unsigned RA2                  : 1;
732   unsigned RA3                  : 1;
733   unsigned RA4                  : 1;
734   unsigned RA5                  : 1;
735   unsigned RA6                  : 1;
736   unsigned RA7                  : 1;
737   } __PORTAbits_t;
738 
739 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
740 
741 #define _RA0                    0x01
742 #define _RA1                    0x02
743 #define _RA2                    0x04
744 #define _RA3                    0x08
745 #define _RA4                    0x10
746 #define _RA5                    0x20
747 #define _RA6                    0x40
748 #define _RA7                    0x80
749 
750 //==============================================================================
751 
752 
753 //==============================================================================
754 //        PORTB Bits
755 
756 extern __at(0x000D) __sfr PORTB;
757 
758 typedef struct
759   {
760   unsigned RB0                  : 1;
761   unsigned RB1                  : 1;
762   unsigned RB2                  : 1;
763   unsigned RB3                  : 1;
764   unsigned RB4                  : 1;
765   unsigned RB5                  : 1;
766   unsigned RB6                  : 1;
767   unsigned RB7                  : 1;
768   } __PORTBbits_t;
769 
770 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
771 
772 #define _RB0                    0x01
773 #define _RB1                    0x02
774 #define _RB2                    0x04
775 #define _RB3                    0x08
776 #define _RB4                    0x10
777 #define _RB5                    0x20
778 #define _RB6                    0x40
779 #define _RB7                    0x80
780 
781 //==============================================================================
782 
783 
784 //==============================================================================
785 //        PORTC Bits
786 
787 extern __at(0x000E) __sfr PORTC;
788 
789 typedef struct
790   {
791   unsigned RC0                  : 1;
792   unsigned RC1                  : 1;
793   unsigned RC2                  : 1;
794   unsigned RC3                  : 1;
795   unsigned RC4                  : 1;
796   unsigned RC5                  : 1;
797   unsigned RC6                  : 1;
798   unsigned RC7                  : 1;
799   } __PORTCbits_t;
800 
801 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
802 
803 #define _RC0                    0x01
804 #define _RC1                    0x02
805 #define _RC2                    0x04
806 #define _RC3                    0x08
807 #define _RC4                    0x10
808 #define _RC5                    0x20
809 #define _RC6                    0x40
810 #define _RC7                    0x80
811 
812 //==============================================================================
813 
814 
815 //==============================================================================
816 //        PORTE Bits
817 
818 extern __at(0x0010) __sfr PORTE;
819 
820 typedef struct
821   {
822   unsigned                      : 1;
823   unsigned                      : 1;
824   unsigned                      : 1;
825   unsigned RE3                  : 1;
826   unsigned                      : 1;
827   unsigned                      : 1;
828   unsigned                      : 1;
829   unsigned                      : 1;
830   } __PORTEbits_t;
831 
832 extern __at(0x0010) volatile __PORTEbits_t PORTEbits;
833 
834 #define _RE3                    0x08
835 
836 //==============================================================================
837 
838 
839 //==============================================================================
840 //        PIR1 Bits
841 
842 extern __at(0x0011) __sfr PIR1;
843 
844 typedef union
845   {
846   struct
847     {
848     unsigned TMR1IF             : 1;
849     unsigned TMR2IF             : 1;
850     unsigned CCP1IF             : 1;
851     unsigned SSP1IF             : 1;
852     unsigned TXIF               : 1;
853     unsigned RCIF               : 1;
854     unsigned ADIF               : 1;
855     unsigned TMR1GIF            : 1;
856     };
857 
858   struct
859     {
860     unsigned                    : 1;
861     unsigned                    : 1;
862     unsigned CCPIF              : 1;
863     unsigned                    : 1;
864     unsigned                    : 1;
865     unsigned                    : 1;
866     unsigned                    : 1;
867     unsigned                    : 1;
868     };
869   } __PIR1bits_t;
870 
871 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
872 
873 #define _TMR1IF                 0x01
874 #define _TMR2IF                 0x02
875 #define _CCP1IF                 0x04
876 #define _CCPIF                  0x04
877 #define _SSP1IF                 0x08
878 #define _TXIF                   0x10
879 #define _RCIF                   0x20
880 #define _ADIF                   0x40
881 #define _TMR1GIF                0x80
882 
883 //==============================================================================
884 
885 
886 //==============================================================================
887 //        PIR2 Bits
888 
889 extern __at(0x0012) __sfr PIR2;
890 
891 typedef struct
892   {
893   unsigned CCP2IF               : 1;
894   unsigned C3IF                 : 1;
895   unsigned C4IF                 : 1;
896   unsigned BCL1IF               : 1;
897   unsigned COG1IF               : 1;
898   unsigned C1IF                 : 1;
899   unsigned C2IF                 : 1;
900   unsigned OSFIF                : 1;
901   } __PIR2bits_t;
902 
903 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
904 
905 #define _CCP2IF                 0x01
906 #define _C3IF                   0x02
907 #define _C4IF                   0x04
908 #define _BCL1IF                 0x08
909 #define _COG1IF                 0x10
910 #define _C1IF                   0x20
911 #define _C2IF                   0x40
912 #define _OSFIF                  0x80
913 
914 //==============================================================================
915 
916 
917 //==============================================================================
918 //        PIR3 Bits
919 
920 extern __at(0x0013) __sfr PIR3;
921 
922 typedef struct
923   {
924   unsigned CLC1IF               : 1;
925   unsigned CLC2IF               : 1;
926   unsigned CLC3IF               : 1;
927   unsigned CLC4IF               : 1;
928   unsigned ZCDIF                : 1;
929   unsigned COG2IF               : 1;
930   unsigned                      : 1;
931   unsigned                      : 1;
932   } __PIR3bits_t;
933 
934 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
935 
936 #define _CLC1IF                 0x01
937 #define _CLC2IF                 0x02
938 #define _CLC3IF                 0x04
939 #define _CLC4IF                 0x08
940 #define _ZCDIF                  0x10
941 #define _COG2IF                 0x20
942 
943 //==============================================================================
944 
945 
946 //==============================================================================
947 //        PIR4 Bits
948 
949 extern __at(0x0014) __sfr PIR4;
950 
951 typedef struct
952   {
953   unsigned TMR4IF               : 1;
954   unsigned TMR6IF               : 1;
955   unsigned TMR3IF               : 1;
956   unsigned TMR3GIF              : 1;
957   unsigned TMR5IF               : 1;
958   unsigned TMR5GIF              : 1;
959   unsigned TMR8IF               : 1;
960   unsigned                      : 1;
961   } __PIR4bits_t;
962 
963 extern __at(0x0014) volatile __PIR4bits_t PIR4bits;
964 
965 #define _TMR4IF                 0x01
966 #define _TMR6IF                 0x02
967 #define _TMR3IF                 0x04
968 #define _TMR3GIF                0x08
969 #define _TMR5IF                 0x10
970 #define _TMR5GIF                0x20
971 #define _TMR8IF                 0x40
972 
973 //==============================================================================
974 
975 
976 //==============================================================================
977 //        PIR5 Bits
978 
979 extern __at(0x0015) __sfr PIR5;
980 
981 typedef struct
982   {
983   unsigned C5IF                 : 1;
984   unsigned C6IF                 : 1;
985   unsigned                      : 1;
986   unsigned                      : 1;
987   unsigned COG3IF               : 1;
988   unsigned                      : 1;
989   unsigned CCP7IF               : 1;
990   unsigned                      : 1;
991   } __PIR5bits_t;
992 
993 extern __at(0x0015) volatile __PIR5bits_t PIR5bits;
994 
995 #define _C5IF                   0x01
996 #define _C6IF                   0x02
997 #define _COG3IF                 0x10
998 #define _CCP7IF                 0x40
999 
1000 //==============================================================================
1001 
1002 
1003 //==============================================================================
1004 //        PIR6 Bits
1005 
1006 extern __at(0x0016) __sfr PIR6;
1007 
1008 typedef struct
1009   {
1010   unsigned PWM5IF               : 1;
1011   unsigned PWM6IF               : 1;
1012   unsigned PWM11IF              : 1;
1013   unsigned                      : 1;
1014   unsigned                      : 1;
1015   unsigned                      : 1;
1016   unsigned                      : 1;
1017   unsigned                      : 1;
1018   } __PIR6bits_t;
1019 
1020 extern __at(0x0016) volatile __PIR6bits_t PIR6bits;
1021 
1022 #define _PWM5IF                 0x01
1023 #define _PWM6IF                 0x02
1024 #define _PWM11IF                0x04
1025 
1026 //==============================================================================
1027 
1028 extern __at(0x0017) __sfr TMR0;
1029 extern __at(0x0018) __sfr TMR1;
1030 extern __at(0x0018) __sfr TMR1L;
1031 extern __at(0x0019) __sfr TMR1H;
1032 
1033 //==============================================================================
1034 //        T1CON Bits
1035 
1036 extern __at(0x001A) __sfr T1CON;
1037 
1038 typedef union
1039   {
1040   struct
1041     {
1042     unsigned ON                 : 1;
1043     unsigned                    : 1;
1044     unsigned NOT_SYNC           : 1;
1045     unsigned OSCEN              : 1;
1046     unsigned CKPS0              : 1;
1047     unsigned CKPS1              : 1;
1048     unsigned CS0                : 1;
1049     unsigned CS1                : 1;
1050     };
1051 
1052   struct
1053     {
1054     unsigned TMRON              : 1;
1055     unsigned                    : 1;
1056     unsigned SYNC               : 1;
1057     unsigned SOSCEN             : 1;
1058     unsigned T1CKPS0            : 1;
1059     unsigned T1CKPS1            : 1;
1060     unsigned T1CS0              : 1;
1061     unsigned T1CS1              : 1;
1062     };
1063 
1064   struct
1065     {
1066     unsigned TMR1ON             : 1;
1067     unsigned                    : 1;
1068     unsigned NOT_T1SYNC         : 1;
1069     unsigned T1OSCEN            : 1;
1070     unsigned                    : 1;
1071     unsigned                    : 1;
1072     unsigned TMR1CS0            : 1;
1073     unsigned TMR1CS1            : 1;
1074     };
1075 
1076   struct
1077     {
1078     unsigned T1ON               : 1;
1079     unsigned                    : 1;
1080     unsigned                    : 1;
1081     unsigned                    : 1;
1082     unsigned                    : 1;
1083     unsigned                    : 1;
1084     unsigned                    : 1;
1085     unsigned                    : 1;
1086     };
1087 
1088   struct
1089     {
1090     unsigned                    : 4;
1091     unsigned T1CKPS             : 2;
1092     unsigned                    : 2;
1093     };
1094 
1095   struct
1096     {
1097     unsigned                    : 4;
1098     unsigned CKPS               : 2;
1099     unsigned                    : 2;
1100     };
1101 
1102   struct
1103     {
1104     unsigned                    : 6;
1105     unsigned TMR1CS             : 2;
1106     };
1107 
1108   struct
1109     {
1110     unsigned                    : 6;
1111     unsigned CS                 : 2;
1112     };
1113 
1114   struct
1115     {
1116     unsigned                    : 6;
1117     unsigned T1CS               : 2;
1118     };
1119   } __T1CONbits_t;
1120 
1121 extern __at(0x001A) volatile __T1CONbits_t T1CONbits;
1122 
1123 #define _T1CON_ON               0x01
1124 #define _T1CON_TMRON            0x01
1125 #define _T1CON_TMR1ON           0x01
1126 #define _T1CON_T1ON             0x01
1127 #define _T1CON_NOT_SYNC         0x04
1128 #define _T1CON_SYNC             0x04
1129 #define _T1CON_NOT_T1SYNC       0x04
1130 #define _T1CON_OSCEN            0x08
1131 #define _T1CON_SOSCEN           0x08
1132 #define _T1CON_T1OSCEN          0x08
1133 #define _T1CON_CKPS0            0x10
1134 #define _T1CON_T1CKPS0          0x10
1135 #define _T1CON_CKPS1            0x20
1136 #define _T1CON_T1CKPS1          0x20
1137 #define _T1CON_CS0              0x40
1138 #define _T1CON_T1CS0            0x40
1139 #define _T1CON_TMR1CS0          0x40
1140 #define _T1CON_CS1              0x80
1141 #define _T1CON_T1CS1            0x80
1142 #define _T1CON_TMR1CS1          0x80
1143 
1144 //==============================================================================
1145 
1146 
1147 //==============================================================================
1148 //        T1GCON Bits
1149 
1150 extern __at(0x001B) __sfr T1GCON;
1151 
1152 typedef union
1153   {
1154   struct
1155     {
1156     unsigned GSS0               : 1;
1157     unsigned GSS1               : 1;
1158     unsigned GVAL               : 1;
1159     unsigned GGO_NOT_DONE       : 1;
1160     unsigned GSPM               : 1;
1161     unsigned GTM                : 1;
1162     unsigned GPOL               : 1;
1163     unsigned GE                 : 1;
1164     };
1165 
1166   struct
1167     {
1168     unsigned T1GSS0             : 1;
1169     unsigned T1GSS1             : 1;
1170     unsigned T1GVAL             : 1;
1171     unsigned T1GGO_NOT_DONE     : 1;
1172     unsigned T1GSPM             : 1;
1173     unsigned T1GTM              : 1;
1174     unsigned T1GPOL             : 1;
1175     unsigned T1GE               : 1;
1176     };
1177 
1178   struct
1179     {
1180     unsigned                    : 1;
1181     unsigned                    : 1;
1182     unsigned                    : 1;
1183     unsigned                    : 1;
1184     unsigned                    : 1;
1185     unsigned                    : 1;
1186     unsigned                    : 1;
1187     unsigned TMR1GE             : 1;
1188     };
1189 
1190   struct
1191     {
1192     unsigned T1GSS              : 2;
1193     unsigned                    : 6;
1194     };
1195 
1196   struct
1197     {
1198     unsigned GSS                : 2;
1199     unsigned                    : 6;
1200     };
1201   } __T1GCONbits_t;
1202 
1203 extern __at(0x001B) volatile __T1GCONbits_t T1GCONbits;
1204 
1205 #define _GSS0                   0x01
1206 #define _T1GSS0                 0x01
1207 #define _GSS1                   0x02
1208 #define _T1GSS1                 0x02
1209 #define _GVAL                   0x04
1210 #define _T1GVAL                 0x04
1211 #define _GGO_NOT_DONE           0x08
1212 #define _T1GGO_NOT_DONE         0x08
1213 #define _GSPM                   0x10
1214 #define _T1GSPM                 0x10
1215 #define _GTM                    0x20
1216 #define _T1GTM                  0x20
1217 #define _GPOL                   0x40
1218 #define _T1GPOL                 0x40
1219 #define _GE                     0x80
1220 #define _T1GE                   0x80
1221 #define _TMR1GE                 0x80
1222 
1223 //==============================================================================
1224 
1225 extern __at(0x001C) __sfr TMR3;
1226 extern __at(0x001C) __sfr TMR3L;
1227 extern __at(0x001D) __sfr TMR3H;
1228 
1229 //==============================================================================
1230 //        T3CON Bits
1231 
1232 extern __at(0x001E) __sfr T3CON;
1233 
1234 typedef union
1235   {
1236   struct
1237     {
1238     unsigned ON                 : 1;
1239     unsigned                    : 1;
1240     unsigned NOT_SYNC           : 1;
1241     unsigned OSCEN              : 1;
1242     unsigned CKPS0              : 1;
1243     unsigned CKPS1              : 1;
1244     unsigned CS0                : 1;
1245     unsigned CS1                : 1;
1246     };
1247 
1248   struct
1249     {
1250     unsigned TMRON              : 1;
1251     unsigned                    : 1;
1252     unsigned SYNC               : 1;
1253     unsigned SOSCEN             : 1;
1254     unsigned T3CKPS0            : 1;
1255     unsigned T3CKPS1            : 1;
1256     unsigned T3CS0              : 1;
1257     unsigned T3CS1              : 1;
1258     };
1259 
1260   struct
1261     {
1262     unsigned TMR3ON             : 1;
1263     unsigned                    : 1;
1264     unsigned NOT_T3SYNC         : 1;
1265     unsigned T3OSCEN            : 1;
1266     unsigned                    : 1;
1267     unsigned                    : 1;
1268     unsigned TMR3CS0            : 1;
1269     unsigned TMR3CS1            : 1;
1270     };
1271 
1272   struct
1273     {
1274     unsigned T3ON               : 1;
1275     unsigned                    : 1;
1276     unsigned                    : 1;
1277     unsigned                    : 1;
1278     unsigned                    : 1;
1279     unsigned                    : 1;
1280     unsigned                    : 1;
1281     unsigned                    : 1;
1282     };
1283 
1284   struct
1285     {
1286     unsigned                    : 4;
1287     unsigned T3CKPS             : 2;
1288     unsigned                    : 2;
1289     };
1290 
1291   struct
1292     {
1293     unsigned                    : 4;
1294     unsigned CKPS               : 2;
1295     unsigned                    : 2;
1296     };
1297 
1298   struct
1299     {
1300     unsigned                    : 6;
1301     unsigned TMR3CS             : 2;
1302     };
1303 
1304   struct
1305     {
1306     unsigned                    : 6;
1307     unsigned T3CS               : 2;
1308     };
1309 
1310   struct
1311     {
1312     unsigned                    : 6;
1313     unsigned CS                 : 2;
1314     };
1315   } __T3CONbits_t;
1316 
1317 extern __at(0x001E) volatile __T3CONbits_t T3CONbits;
1318 
1319 #define _T3CON_ON               0x01
1320 #define _T3CON_TMRON            0x01
1321 #define _T3CON_TMR3ON           0x01
1322 #define _T3CON_T3ON             0x01
1323 #define _T3CON_NOT_SYNC         0x04
1324 #define _T3CON_SYNC             0x04
1325 #define _T3CON_NOT_T3SYNC       0x04
1326 #define _T3CON_OSCEN            0x08
1327 #define _T3CON_SOSCEN           0x08
1328 #define _T3CON_T3OSCEN          0x08
1329 #define _T3CON_CKPS0            0x10
1330 #define _T3CON_T3CKPS0          0x10
1331 #define _T3CON_CKPS1            0x20
1332 #define _T3CON_T3CKPS1          0x20
1333 #define _T3CON_CS0              0x40
1334 #define _T3CON_T3CS0            0x40
1335 #define _T3CON_TMR3CS0          0x40
1336 #define _T3CON_CS1              0x80
1337 #define _T3CON_T3CS1            0x80
1338 #define _T3CON_TMR3CS1          0x80
1339 
1340 //==============================================================================
1341 
1342 
1343 //==============================================================================
1344 //        T3GCON Bits
1345 
1346 extern __at(0x001F) __sfr T3GCON;
1347 
1348 typedef union
1349   {
1350   struct
1351     {
1352     unsigned GSS0               : 1;
1353     unsigned GSS1               : 1;
1354     unsigned GVAL               : 1;
1355     unsigned GGO_NOT_DONE       : 1;
1356     unsigned GSPM               : 1;
1357     unsigned GTM                : 1;
1358     unsigned GPOL               : 1;
1359     unsigned GE                 : 1;
1360     };
1361 
1362   struct
1363     {
1364     unsigned T3GSS0             : 1;
1365     unsigned T3GSS1             : 1;
1366     unsigned T3GVAL             : 1;
1367     unsigned T3GGO_NOT_DONE     : 1;
1368     unsigned T3GSPM             : 1;
1369     unsigned T3GTM              : 1;
1370     unsigned T3GPOL             : 1;
1371     unsigned T3GE               : 1;
1372     };
1373 
1374   struct
1375     {
1376     unsigned                    : 1;
1377     unsigned                    : 1;
1378     unsigned                    : 1;
1379     unsigned                    : 1;
1380     unsigned                    : 1;
1381     unsigned                    : 1;
1382     unsigned                    : 1;
1383     unsigned TMR3GE             : 1;
1384     };
1385 
1386   struct
1387     {
1388     unsigned T3GSS              : 2;
1389     unsigned                    : 6;
1390     };
1391 
1392   struct
1393     {
1394     unsigned GSS                : 2;
1395     unsigned                    : 6;
1396     };
1397   } __T3GCONbits_t;
1398 
1399 extern __at(0x001F) volatile __T3GCONbits_t T3GCONbits;
1400 
1401 #define _T3GCON_GSS0            0x01
1402 #define _T3GCON_T3GSS0          0x01
1403 #define _T3GCON_GSS1            0x02
1404 #define _T3GCON_T3GSS1          0x02
1405 #define _T3GCON_GVAL            0x04
1406 #define _T3GCON_T3GVAL          0x04
1407 #define _T3GCON_GGO_NOT_DONE    0x08
1408 #define _T3GCON_T3GGO_NOT_DONE  0x08
1409 #define _T3GCON_GSPM            0x10
1410 #define _T3GCON_T3GSPM          0x10
1411 #define _T3GCON_GTM             0x20
1412 #define _T3GCON_T3GTM           0x20
1413 #define _T3GCON_GPOL            0x40
1414 #define _T3GCON_T3GPOL          0x40
1415 #define _T3GCON_GE              0x80
1416 #define _T3GCON_T3GE            0x80
1417 #define _T3GCON_TMR3GE          0x80
1418 
1419 //==============================================================================
1420 
1421 
1422 //==============================================================================
1423 //        TRISA Bits
1424 
1425 extern __at(0x008C) __sfr TRISA;
1426 
1427 typedef struct
1428   {
1429   unsigned TRISA0               : 1;
1430   unsigned TRISA1               : 1;
1431   unsigned TRISA2               : 1;
1432   unsigned TRISA3               : 1;
1433   unsigned TRISA4               : 1;
1434   unsigned TRISA5               : 1;
1435   unsigned TRISA6               : 1;
1436   unsigned TRISA7               : 1;
1437   } __TRISAbits_t;
1438 
1439 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
1440 
1441 #define _TRISA0                 0x01
1442 #define _TRISA1                 0x02
1443 #define _TRISA2                 0x04
1444 #define _TRISA3                 0x08
1445 #define _TRISA4                 0x10
1446 #define _TRISA5                 0x20
1447 #define _TRISA6                 0x40
1448 #define _TRISA7                 0x80
1449 
1450 //==============================================================================
1451 
1452 
1453 //==============================================================================
1454 //        TRISB Bits
1455 
1456 extern __at(0x008D) __sfr TRISB;
1457 
1458 typedef struct
1459   {
1460   unsigned TRISB0               : 1;
1461   unsigned TRISB1               : 1;
1462   unsigned TRISB2               : 1;
1463   unsigned TRISB3               : 1;
1464   unsigned TRISB4               : 1;
1465   unsigned TRISB5               : 1;
1466   unsigned TRISB6               : 1;
1467   unsigned TRISB7               : 1;
1468   } __TRISBbits_t;
1469 
1470 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
1471 
1472 #define _TRISB0                 0x01
1473 #define _TRISB1                 0x02
1474 #define _TRISB2                 0x04
1475 #define _TRISB3                 0x08
1476 #define _TRISB4                 0x10
1477 #define _TRISB5                 0x20
1478 #define _TRISB6                 0x40
1479 #define _TRISB7                 0x80
1480 
1481 //==============================================================================
1482 
1483 
1484 //==============================================================================
1485 //        TRISC Bits
1486 
1487 extern __at(0x008E) __sfr TRISC;
1488 
1489 typedef struct
1490   {
1491   unsigned TRISC0               : 1;
1492   unsigned TRISC1               : 1;
1493   unsigned TRISC2               : 1;
1494   unsigned TRISC3               : 1;
1495   unsigned TRISC4               : 1;
1496   unsigned TRISC5               : 1;
1497   unsigned TRISC6               : 1;
1498   unsigned TRISC7               : 1;
1499   } __TRISCbits_t;
1500 
1501 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1502 
1503 #define _TRISC0                 0x01
1504 #define _TRISC1                 0x02
1505 #define _TRISC2                 0x04
1506 #define _TRISC3                 0x08
1507 #define _TRISC4                 0x10
1508 #define _TRISC5                 0x20
1509 #define _TRISC6                 0x40
1510 #define _TRISC7                 0x80
1511 
1512 //==============================================================================
1513 
1514 
1515 //==============================================================================
1516 //        TRISE Bits
1517 
1518 extern __at(0x0090) __sfr TRISE;
1519 
1520 typedef struct
1521   {
1522   unsigned                      : 1;
1523   unsigned                      : 1;
1524   unsigned                      : 1;
1525   unsigned TRISE3               : 1;
1526   unsigned                      : 1;
1527   unsigned                      : 1;
1528   unsigned                      : 1;
1529   unsigned                      : 1;
1530   } __TRISEbits_t;
1531 
1532 extern __at(0x0090) volatile __TRISEbits_t TRISEbits;
1533 
1534 #define _TRISE3                 0x08
1535 
1536 //==============================================================================
1537 
1538 
1539 //==============================================================================
1540 //        PIE1 Bits
1541 
1542 extern __at(0x0091) __sfr PIE1;
1543 
1544 typedef union
1545   {
1546   struct
1547     {
1548     unsigned TMR1IE             : 1;
1549     unsigned TMR2IE             : 1;
1550     unsigned CCP1IE             : 1;
1551     unsigned SSP1IE             : 1;
1552     unsigned TXIE               : 1;
1553     unsigned RCIE               : 1;
1554     unsigned ADIE               : 1;
1555     unsigned TMR1GIE            : 1;
1556     };
1557 
1558   struct
1559     {
1560     unsigned                    : 1;
1561     unsigned                    : 1;
1562     unsigned CCPIE              : 1;
1563     unsigned                    : 1;
1564     unsigned                    : 1;
1565     unsigned                    : 1;
1566     unsigned                    : 1;
1567     unsigned                    : 1;
1568     };
1569   } __PIE1bits_t;
1570 
1571 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
1572 
1573 #define _TMR1IE                 0x01
1574 #define _TMR2IE                 0x02
1575 #define _CCP1IE                 0x04
1576 #define _CCPIE                  0x04
1577 #define _SSP1IE                 0x08
1578 #define _TXIE                   0x10
1579 #define _RCIE                   0x20
1580 #define _ADIE                   0x40
1581 #define _TMR1GIE                0x80
1582 
1583 //==============================================================================
1584 
1585 
1586 //==============================================================================
1587 //        PIE2 Bits
1588 
1589 extern __at(0x0092) __sfr PIE2;
1590 
1591 typedef struct
1592   {
1593   unsigned CCP2IE               : 1;
1594   unsigned C3IE                 : 1;
1595   unsigned C4IE                 : 1;
1596   unsigned BCL1IE               : 1;
1597   unsigned COGIE                : 1;
1598   unsigned C1IE                 : 1;
1599   unsigned C2IE                 : 1;
1600   unsigned OSFIE                : 1;
1601   } __PIE2bits_t;
1602 
1603 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
1604 
1605 #define _CCP2IE                 0x01
1606 #define _C3IE                   0x02
1607 #define _C4IE                   0x04
1608 #define _BCL1IE                 0x08
1609 #define _COGIE                  0x10
1610 #define _C1IE                   0x20
1611 #define _C2IE                   0x40
1612 #define _OSFIE                  0x80
1613 
1614 //==============================================================================
1615 
1616 
1617 //==============================================================================
1618 //        PIE3 Bits
1619 
1620 extern __at(0x0093) __sfr PIE3;
1621 
1622 typedef struct
1623   {
1624   unsigned CLC1IE               : 1;
1625   unsigned CLC2IE               : 1;
1626   unsigned CLC3IE               : 1;
1627   unsigned CLC4IE               : 1;
1628   unsigned ZCDIE                : 1;
1629   unsigned COG2IE               : 1;
1630   unsigned                      : 1;
1631   unsigned                      : 1;
1632   } __PIE3bits_t;
1633 
1634 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
1635 
1636 #define _CLC1IE                 0x01
1637 #define _CLC2IE                 0x02
1638 #define _CLC3IE                 0x04
1639 #define _CLC4IE                 0x08
1640 #define _ZCDIE                  0x10
1641 #define _COG2IE                 0x20
1642 
1643 //==============================================================================
1644 
1645 
1646 //==============================================================================
1647 //        PIE4 Bits
1648 
1649 extern __at(0x0094) __sfr PIE4;
1650 
1651 typedef struct
1652   {
1653   unsigned TMR4IE               : 1;
1654   unsigned TMR6IE               : 1;
1655   unsigned TMR3IE               : 1;
1656   unsigned TMR3GIE              : 1;
1657   unsigned TMR5IE               : 1;
1658   unsigned TMR5GIE              : 1;
1659   unsigned TMR8IE               : 1;
1660   unsigned                      : 1;
1661   } __PIE4bits_t;
1662 
1663 extern __at(0x0094) volatile __PIE4bits_t PIE4bits;
1664 
1665 #define _TMR4IE                 0x01
1666 #define _TMR6IE                 0x02
1667 #define _TMR3IE                 0x04
1668 #define _TMR3GIE                0x08
1669 #define _TMR5IE                 0x10
1670 #define _TMR5GIE                0x20
1671 #define _TMR8IE                 0x40
1672 
1673 //==============================================================================
1674 
1675 
1676 //==============================================================================
1677 //        PIE5 Bits
1678 
1679 extern __at(0x0095) __sfr PIE5;
1680 
1681 typedef struct
1682   {
1683   unsigned C5IE                 : 1;
1684   unsigned C6IE                 : 1;
1685   unsigned                      : 1;
1686   unsigned                      : 1;
1687   unsigned COG3IE               : 1;
1688   unsigned                      : 1;
1689   unsigned CCP7IE               : 1;
1690   unsigned                      : 1;
1691   } __PIE5bits_t;
1692 
1693 extern __at(0x0095) volatile __PIE5bits_t PIE5bits;
1694 
1695 #define _C5IE                   0x01
1696 #define _C6IE                   0x02
1697 #define _COG3IE                 0x10
1698 #define _CCP7IE                 0x40
1699 
1700 //==============================================================================
1701 
1702 
1703 //==============================================================================
1704 //        PIE6 Bits
1705 
1706 extern __at(0x0096) __sfr PIE6;
1707 
1708 typedef struct
1709   {
1710   unsigned PWM5IE               : 1;
1711   unsigned PWM6IE               : 1;
1712   unsigned PWM11IE              : 1;
1713   unsigned                      : 1;
1714   unsigned                      : 1;
1715   unsigned                      : 1;
1716   unsigned                      : 1;
1717   unsigned                      : 1;
1718   } __PIE6bits_t;
1719 
1720 extern __at(0x0096) volatile __PIE6bits_t PIE6bits;
1721 
1722 #define _PWM5IE                 0x01
1723 #define _PWM6IE                 0x02
1724 #define _PWM11IE                0x04
1725 
1726 //==============================================================================
1727 
1728 
1729 //==============================================================================
1730 //        OPTION_REG Bits
1731 
1732 extern __at(0x0097) __sfr OPTION_REG;
1733 
1734 typedef union
1735   {
1736   struct
1737     {
1738     unsigned PS0                : 1;
1739     unsigned PS1                : 1;
1740     unsigned PS2                : 1;
1741     unsigned PSA                : 1;
1742     unsigned TMR0SE             : 1;
1743     unsigned TMR0CS             : 1;
1744     unsigned INTEDG             : 1;
1745     unsigned NOT_WPUEN          : 1;
1746     };
1747 
1748   struct
1749     {
1750     unsigned                    : 1;
1751     unsigned                    : 1;
1752     unsigned                    : 1;
1753     unsigned                    : 1;
1754     unsigned T0SE               : 1;
1755     unsigned T0CS               : 1;
1756     unsigned                    : 1;
1757     unsigned                    : 1;
1758     };
1759 
1760   struct
1761     {
1762     unsigned PS                 : 3;
1763     unsigned                    : 5;
1764     };
1765   } __OPTION_REGbits_t;
1766 
1767 extern __at(0x0097) volatile __OPTION_REGbits_t OPTION_REGbits;
1768 
1769 #define _PS0                    0x01
1770 #define _PS1                    0x02
1771 #define _PS2                    0x04
1772 #define _PSA                    0x08
1773 #define _TMR0SE                 0x10
1774 #define _T0SE                   0x10
1775 #define _TMR0CS                 0x20
1776 #define _T0CS                   0x20
1777 #define _INTEDG                 0x40
1778 #define _NOT_WPUEN              0x80
1779 
1780 //==============================================================================
1781 
1782 
1783 //==============================================================================
1784 //        PCON Bits
1785 
1786 extern __at(0x0098) __sfr PCON;
1787 
1788 typedef struct
1789   {
1790   unsigned NOT_BOR              : 1;
1791   unsigned NOT_POR              : 1;
1792   unsigned NOT_RI               : 1;
1793   unsigned NOT_RMCLR            : 1;
1794   unsigned NOT_RWDT             : 1;
1795   unsigned                      : 1;
1796   unsigned STKUNF               : 1;
1797   unsigned STKOVF               : 1;
1798   } __PCONbits_t;
1799 
1800 extern __at(0x0098) volatile __PCONbits_t PCONbits;
1801 
1802 #define _NOT_BOR                0x01
1803 #define _NOT_POR                0x02
1804 #define _NOT_RI                 0x04
1805 #define _NOT_RMCLR              0x08
1806 #define _NOT_RWDT               0x10
1807 #define _STKUNF                 0x40
1808 #define _STKOVF                 0x80
1809 
1810 //==============================================================================
1811 
1812 
1813 //==============================================================================
1814 //        WDTCON Bits
1815 
1816 extern __at(0x0099) __sfr WDTCON;
1817 
1818 typedef union
1819   {
1820   struct
1821     {
1822     unsigned SWDTEN             : 1;
1823     unsigned WDTPS0             : 1;
1824     unsigned WDTPS1             : 1;
1825     unsigned WDTPS2             : 1;
1826     unsigned WDTPS3             : 1;
1827     unsigned WDTPS4             : 1;
1828     unsigned                    : 1;
1829     unsigned                    : 1;
1830     };
1831 
1832   struct
1833     {
1834     unsigned                    : 1;
1835     unsigned WDTPS              : 5;
1836     unsigned                    : 2;
1837     };
1838   } __WDTCONbits_t;
1839 
1840 extern __at(0x0099) volatile __WDTCONbits_t WDTCONbits;
1841 
1842 #define _SWDTEN                 0x01
1843 #define _WDTPS0                 0x02
1844 #define _WDTPS1                 0x04
1845 #define _WDTPS2                 0x08
1846 #define _WDTPS3                 0x10
1847 #define _WDTPS4                 0x20
1848 
1849 //==============================================================================
1850 
1851 
1852 //==============================================================================
1853 //        OSCTUNE Bits
1854 
1855 extern __at(0x009A) __sfr OSCTUNE;
1856 
1857 typedef union
1858   {
1859   struct
1860     {
1861     unsigned TUN0               : 1;
1862     unsigned TUN1               : 1;
1863     unsigned TUN2               : 1;
1864     unsigned TUN3               : 1;
1865     unsigned TUN4               : 1;
1866     unsigned TUN5               : 1;
1867     unsigned                    : 1;
1868     unsigned                    : 1;
1869     };
1870 
1871   struct
1872     {
1873     unsigned TUN                : 6;
1874     unsigned                    : 2;
1875     };
1876   } __OSCTUNEbits_t;
1877 
1878 extern __at(0x009A) volatile __OSCTUNEbits_t OSCTUNEbits;
1879 
1880 #define _TUN0                   0x01
1881 #define _TUN1                   0x02
1882 #define _TUN2                   0x04
1883 #define _TUN3                   0x08
1884 #define _TUN4                   0x10
1885 #define _TUN5                   0x20
1886 
1887 //==============================================================================
1888 
1889 
1890 //==============================================================================
1891 //        OSCCON Bits
1892 
1893 extern __at(0x009B) __sfr OSCCON;
1894 
1895 typedef union
1896   {
1897   struct
1898     {
1899     unsigned SCS0               : 1;
1900     unsigned SCS1               : 1;
1901     unsigned                    : 1;
1902     unsigned IRCF0              : 1;
1903     unsigned IRCF1              : 1;
1904     unsigned IRCF2              : 1;
1905     unsigned IRCF3              : 1;
1906     unsigned SPLLEN             : 1;
1907     };
1908 
1909   struct
1910     {
1911     unsigned SCS                : 2;
1912     unsigned                    : 6;
1913     };
1914 
1915   struct
1916     {
1917     unsigned                    : 3;
1918     unsigned IRCF               : 4;
1919     unsigned                    : 1;
1920     };
1921   } __OSCCONbits_t;
1922 
1923 extern __at(0x009B) volatile __OSCCONbits_t OSCCONbits;
1924 
1925 #define _SCS0                   0x01
1926 #define _SCS1                   0x02
1927 #define _IRCF0                  0x08
1928 #define _IRCF1                  0x10
1929 #define _IRCF2                  0x20
1930 #define _IRCF3                  0x40
1931 #define _SPLLEN                 0x80
1932 
1933 //==============================================================================
1934 
1935 
1936 //==============================================================================
1937 //        OSCSTAT Bits
1938 
1939 extern __at(0x009C) __sfr OSCSTAT;
1940 
1941 typedef struct
1942   {
1943   unsigned HFIOFS               : 1;
1944   unsigned LFIOFR               : 1;
1945   unsigned MFIOFR               : 1;
1946   unsigned HFIOFL               : 1;
1947   unsigned HFIOFR               : 1;
1948   unsigned OSTS                 : 1;
1949   unsigned PLLR                 : 1;
1950   unsigned SOSCR                : 1;
1951   } __OSCSTATbits_t;
1952 
1953 extern __at(0x009C) volatile __OSCSTATbits_t OSCSTATbits;
1954 
1955 #define _HFIOFS                 0x01
1956 #define _LFIOFR                 0x02
1957 #define _MFIOFR                 0x04
1958 #define _HFIOFL                 0x08
1959 #define _HFIOFR                 0x10
1960 #define _OSTS                   0x20
1961 #define _PLLR                   0x40
1962 #define _SOSCR                  0x80
1963 
1964 //==============================================================================
1965 
1966 
1967 //==============================================================================
1968 //        BORCON Bits
1969 
1970 extern __at(0x009D) __sfr BORCON;
1971 
1972 typedef struct
1973   {
1974   unsigned BORRDY               : 1;
1975   unsigned                      : 1;
1976   unsigned                      : 1;
1977   unsigned                      : 1;
1978   unsigned                      : 1;
1979   unsigned                      : 1;
1980   unsigned BORFS                : 1;
1981   unsigned SBOREN               : 1;
1982   } __BORCONbits_t;
1983 
1984 extern __at(0x009D) volatile __BORCONbits_t BORCONbits;
1985 
1986 #define _BORRDY                 0x01
1987 #define _BORFS                  0x40
1988 #define _SBOREN                 0x80
1989 
1990 //==============================================================================
1991 
1992 
1993 //==============================================================================
1994 //        FVRCON Bits
1995 
1996 extern __at(0x009E) __sfr FVRCON;
1997 
1998 typedef struct
1999   {
2000   unsigned                      : 1;
2001   unsigned                      : 1;
2002   unsigned                      : 1;
2003   unsigned                      : 1;
2004   unsigned TSRNG                : 1;
2005   unsigned TSEN                 : 1;
2006   unsigned FVRRDY               : 1;
2007   unsigned FVREN                : 1;
2008   } __FVRCONbits_t;
2009 
2010 extern __at(0x009E) volatile __FVRCONbits_t FVRCONbits;
2011 
2012 #define _TSRNG                  0x10
2013 #define _TSEN                   0x20
2014 #define _FVRRDY                 0x40
2015 #define _FVREN                  0x80
2016 
2017 //==============================================================================
2018 
2019 
2020 //==============================================================================
2021 //        ZCD1CON Bits
2022 
2023 extern __at(0x009F) __sfr ZCD1CON;
2024 
2025 typedef struct
2026   {
2027   unsigned ZCD1INTN             : 1;
2028   unsigned ZCD1INTP             : 1;
2029   unsigned                      : 1;
2030   unsigned                      : 1;
2031   unsigned ZCD1POL              : 1;
2032   unsigned ZCD1OUT              : 1;
2033   unsigned                      : 1;
2034   unsigned ZCD1EN               : 1;
2035   } __ZCD1CONbits_t;
2036 
2037 extern __at(0x009F) volatile __ZCD1CONbits_t ZCD1CONbits;
2038 
2039 #define _ZCD1INTN               0x01
2040 #define _ZCD1INTP               0x02
2041 #define _ZCD1POL                0x10
2042 #define _ZCD1OUT                0x20
2043 #define _ZCD1EN                 0x80
2044 
2045 //==============================================================================
2046 
2047 
2048 //==============================================================================
2049 //        LATA Bits
2050 
2051 extern __at(0x010C) __sfr LATA;
2052 
2053 typedef struct
2054   {
2055   unsigned LATA0                : 1;
2056   unsigned LATA1                : 1;
2057   unsigned LATA2                : 1;
2058   unsigned LATA3                : 1;
2059   unsigned LATA4                : 1;
2060   unsigned LATA5                : 1;
2061   unsigned LATA6                : 1;
2062   unsigned LATA7                : 1;
2063   } __LATAbits_t;
2064 
2065 extern __at(0x010C) volatile __LATAbits_t LATAbits;
2066 
2067 #define _LATA0                  0x01
2068 #define _LATA1                  0x02
2069 #define _LATA2                  0x04
2070 #define _LATA3                  0x08
2071 #define _LATA4                  0x10
2072 #define _LATA5                  0x20
2073 #define _LATA6                  0x40
2074 #define _LATA7                  0x80
2075 
2076 //==============================================================================
2077 
2078 
2079 //==============================================================================
2080 //        LATB Bits
2081 
2082 extern __at(0x010D) __sfr LATB;
2083 
2084 typedef struct
2085   {
2086   unsigned LATB0                : 1;
2087   unsigned LATB1                : 1;
2088   unsigned LATB2                : 1;
2089   unsigned LATB3                : 1;
2090   unsigned LATB4                : 1;
2091   unsigned LATB5                : 1;
2092   unsigned LATB6                : 1;
2093   unsigned LATB7                : 1;
2094   } __LATBbits_t;
2095 
2096 extern __at(0x010D) volatile __LATBbits_t LATBbits;
2097 
2098 #define _LATB0                  0x01
2099 #define _LATB1                  0x02
2100 #define _LATB2                  0x04
2101 #define _LATB3                  0x08
2102 #define _LATB4                  0x10
2103 #define _LATB5                  0x20
2104 #define _LATB6                  0x40
2105 #define _LATB7                  0x80
2106 
2107 //==============================================================================
2108 
2109 
2110 //==============================================================================
2111 //        LATC Bits
2112 
2113 extern __at(0x010E) __sfr LATC;
2114 
2115 typedef struct
2116   {
2117   unsigned LATC0                : 1;
2118   unsigned LATC1                : 1;
2119   unsigned LATC2                : 1;
2120   unsigned LATC3                : 1;
2121   unsigned LATC4                : 1;
2122   unsigned LATC5                : 1;
2123   unsigned LATC6                : 1;
2124   unsigned LATC7                : 1;
2125   } __LATCbits_t;
2126 
2127 extern __at(0x010E) volatile __LATCbits_t LATCbits;
2128 
2129 #define _LATC0                  0x01
2130 #define _LATC1                  0x02
2131 #define _LATC2                  0x04
2132 #define _LATC3                  0x08
2133 #define _LATC4                  0x10
2134 #define _LATC5                  0x20
2135 #define _LATC6                  0x40
2136 #define _LATC7                  0x80
2137 
2138 //==============================================================================
2139 
2140 
2141 //==============================================================================
2142 //        CMOUT Bits
2143 
2144 extern __at(0x0111) __sfr CMOUT;
2145 
2146 typedef struct
2147   {
2148   unsigned MC1OUT               : 1;
2149   unsigned MC2OUT               : 1;
2150   unsigned MC3OUT               : 1;
2151   unsigned MC4OUT               : 1;
2152   unsigned MC5OUT               : 1;
2153   unsigned MC6OUT               : 1;
2154   unsigned                      : 1;
2155   unsigned                      : 1;
2156   } __CMOUTbits_t;
2157 
2158 extern __at(0x0111) volatile __CMOUTbits_t CMOUTbits;
2159 
2160 #define _MC1OUT                 0x01
2161 #define _MC2OUT                 0x02
2162 #define _MC3OUT                 0x04
2163 #define _MC4OUT                 0x08
2164 #define _MC5OUT                 0x10
2165 #define _MC6OUT                 0x20
2166 
2167 //==============================================================================
2168 
2169 
2170 //==============================================================================
2171 //        CM1CON0 Bits
2172 
2173 extern __at(0x0112) __sfr CM1CON0;
2174 
2175 typedef union
2176   {
2177   struct
2178     {
2179     unsigned SYNC               : 1;
2180     unsigned HYS                : 1;
2181     unsigned Reserved           : 1;
2182     unsigned ZLF                : 1;
2183     unsigned POL                : 1;
2184     unsigned                    : 1;
2185     unsigned OUT                : 1;
2186     unsigned ON                 : 1;
2187     };
2188 
2189   struct
2190     {
2191     unsigned C1SYNC             : 1;
2192     unsigned C1HYS              : 1;
2193     unsigned C1SP               : 1;
2194     unsigned C1ZLF              : 1;
2195     unsigned C1POL              : 1;
2196     unsigned                    : 1;
2197     unsigned C1OUT              : 1;
2198     unsigned C1ON               : 1;
2199     };
2200   } __CM1CON0bits_t;
2201 
2202 extern __at(0x0112) volatile __CM1CON0bits_t CM1CON0bits;
2203 
2204 #define _CM1CON0_SYNC           0x01
2205 #define _CM1CON0_C1SYNC         0x01
2206 #define _CM1CON0_HYS            0x02
2207 #define _CM1CON0_C1HYS          0x02
2208 #define _CM1CON0_Reserved       0x04
2209 #define _CM1CON0_C1SP           0x04
2210 #define _CM1CON0_ZLF            0x08
2211 #define _CM1CON0_C1ZLF          0x08
2212 #define _CM1CON0_POL            0x10
2213 #define _CM1CON0_C1POL          0x10
2214 #define _CM1CON0_OUT            0x40
2215 #define _CM1CON0_C1OUT          0x40
2216 #define _CM1CON0_ON             0x80
2217 #define _CM1CON0_C1ON           0x80
2218 
2219 //==============================================================================
2220 
2221 
2222 //==============================================================================
2223 //        CM1CON1 Bits
2224 
2225 extern __at(0x0113) __sfr CM1CON1;
2226 
2227 typedef union
2228   {
2229   struct
2230     {
2231     unsigned INTN               : 1;
2232     unsigned INTP               : 1;
2233     unsigned                    : 1;
2234     unsigned                    : 1;
2235     unsigned                    : 1;
2236     unsigned                    : 1;
2237     unsigned                    : 1;
2238     unsigned                    : 1;
2239     };
2240 
2241   struct
2242     {
2243     unsigned C1INTN             : 1;
2244     unsigned C1INTP             : 1;
2245     unsigned                    : 1;
2246     unsigned                    : 1;
2247     unsigned                    : 1;
2248     unsigned                    : 1;
2249     unsigned                    : 1;
2250     unsigned                    : 1;
2251     };
2252   } __CM1CON1bits_t;
2253 
2254 extern __at(0x0113) volatile __CM1CON1bits_t CM1CON1bits;
2255 
2256 #define _CM1CON1_INTN           0x01
2257 #define _CM1CON1_C1INTN         0x01
2258 #define _CM1CON1_INTP           0x02
2259 #define _CM1CON1_C1INTP         0x02
2260 
2261 //==============================================================================
2262 
2263 
2264 //==============================================================================
2265 //        CM1NSEL Bits
2266 
2267 extern __at(0x0114) __sfr CM1NSEL;
2268 
2269 typedef union
2270   {
2271   struct
2272     {
2273     unsigned C1NCH0             : 1;
2274     unsigned C1NCH1             : 1;
2275     unsigned C1NCH2             : 1;
2276     unsigned C1NCH3             : 1;
2277     unsigned                    : 1;
2278     unsigned                    : 1;
2279     unsigned                    : 1;
2280     unsigned                    : 1;
2281     };
2282 
2283   struct
2284     {
2285     unsigned C1NCH              : 4;
2286     unsigned                    : 4;
2287     };
2288   } __CM1NSELbits_t;
2289 
2290 extern __at(0x0114) volatile __CM1NSELbits_t CM1NSELbits;
2291 
2292 #define _C1NCH0                 0x01
2293 #define _C1NCH1                 0x02
2294 #define _C1NCH2                 0x04
2295 #define _C1NCH3                 0x08
2296 
2297 //==============================================================================
2298 
2299 
2300 //==============================================================================
2301 //        CM1PSEL Bits
2302 
2303 extern __at(0x0115) __sfr CM1PSEL;
2304 
2305 typedef union
2306   {
2307   struct
2308     {
2309     unsigned PCH0               : 1;
2310     unsigned PCH1               : 1;
2311     unsigned PCH2               : 1;
2312     unsigned PCH3               : 1;
2313     unsigned                    : 1;
2314     unsigned                    : 1;
2315     unsigned                    : 1;
2316     unsigned                    : 1;
2317     };
2318 
2319   struct
2320     {
2321     unsigned C1PCH0             : 1;
2322     unsigned C1PCH1             : 1;
2323     unsigned C1PCH2             : 1;
2324     unsigned C1PCH3             : 1;
2325     unsigned                    : 1;
2326     unsigned                    : 1;
2327     unsigned                    : 1;
2328     unsigned                    : 1;
2329     };
2330 
2331   struct
2332     {
2333     unsigned C1PCH              : 4;
2334     unsigned                    : 4;
2335     };
2336 
2337   struct
2338     {
2339     unsigned PCH                : 4;
2340     unsigned                    : 4;
2341     };
2342   } __CM1PSELbits_t;
2343 
2344 extern __at(0x0115) volatile __CM1PSELbits_t CM1PSELbits;
2345 
2346 #define _PCH0                   0x01
2347 #define _C1PCH0                 0x01
2348 #define _PCH1                   0x02
2349 #define _C1PCH1                 0x02
2350 #define _PCH2                   0x04
2351 #define _C1PCH2                 0x04
2352 #define _PCH3                   0x08
2353 #define _C1PCH3                 0x08
2354 
2355 //==============================================================================
2356 
2357 
2358 //==============================================================================
2359 //        CM2CON0 Bits
2360 
2361 extern __at(0x0116) __sfr CM2CON0;
2362 
2363 typedef union
2364   {
2365   struct
2366     {
2367     unsigned SYNC               : 1;
2368     unsigned HYS                : 1;
2369     unsigned Reserved           : 1;
2370     unsigned ZLF                : 1;
2371     unsigned POL                : 1;
2372     unsigned                    : 1;
2373     unsigned OUT                : 1;
2374     unsigned ON                 : 1;
2375     };
2376 
2377   struct
2378     {
2379     unsigned C2SYNC             : 1;
2380     unsigned C2HYS              : 1;
2381     unsigned C2SP               : 1;
2382     unsigned C2ZLF              : 1;
2383     unsigned C2POL              : 1;
2384     unsigned                    : 1;
2385     unsigned C2OUT              : 1;
2386     unsigned C2ON               : 1;
2387     };
2388   } __CM2CON0bits_t;
2389 
2390 extern __at(0x0116) volatile __CM2CON0bits_t CM2CON0bits;
2391 
2392 #define _CM2CON0_SYNC           0x01
2393 #define _CM2CON0_C2SYNC         0x01
2394 #define _CM2CON0_HYS            0x02
2395 #define _CM2CON0_C2HYS          0x02
2396 #define _CM2CON0_Reserved       0x04
2397 #define _CM2CON0_C2SP           0x04
2398 #define _CM2CON0_ZLF            0x08
2399 #define _CM2CON0_C2ZLF          0x08
2400 #define _CM2CON0_POL            0x10
2401 #define _CM2CON0_C2POL          0x10
2402 #define _CM2CON0_OUT            0x40
2403 #define _CM2CON0_C2OUT          0x40
2404 #define _CM2CON0_ON             0x80
2405 #define _CM2CON0_C2ON           0x80
2406 
2407 //==============================================================================
2408 
2409 
2410 //==============================================================================
2411 //        CM2CON1 Bits
2412 
2413 extern __at(0x0117) __sfr CM2CON1;
2414 
2415 typedef union
2416   {
2417   struct
2418     {
2419     unsigned INTN               : 1;
2420     unsigned INTP               : 1;
2421     unsigned                    : 1;
2422     unsigned                    : 1;
2423     unsigned                    : 1;
2424     unsigned                    : 1;
2425     unsigned                    : 1;
2426     unsigned                    : 1;
2427     };
2428 
2429   struct
2430     {
2431     unsigned C2INTN             : 1;
2432     unsigned C2INTP             : 1;
2433     unsigned                    : 1;
2434     unsigned                    : 1;
2435     unsigned                    : 1;
2436     unsigned                    : 1;
2437     unsigned                    : 1;
2438     unsigned                    : 1;
2439     };
2440   } __CM2CON1bits_t;
2441 
2442 extern __at(0x0117) volatile __CM2CON1bits_t CM2CON1bits;
2443 
2444 #define _CM2CON1_INTN           0x01
2445 #define _CM2CON1_C2INTN         0x01
2446 #define _CM2CON1_INTP           0x02
2447 #define _CM2CON1_C2INTP         0x02
2448 
2449 //==============================================================================
2450 
2451 
2452 //==============================================================================
2453 //        CM2NSEL Bits
2454 
2455 extern __at(0x0118) __sfr CM2NSEL;
2456 
2457 typedef union
2458   {
2459   struct
2460     {
2461     unsigned C2NCH0             : 1;
2462     unsigned C2NCH1             : 1;
2463     unsigned C2NCH2             : 1;
2464     unsigned C2NCH3             : 1;
2465     unsigned                    : 1;
2466     unsigned                    : 1;
2467     unsigned                    : 1;
2468     unsigned                    : 1;
2469     };
2470 
2471   struct
2472     {
2473     unsigned C2NCH              : 4;
2474     unsigned                    : 4;
2475     };
2476   } __CM2NSELbits_t;
2477 
2478 extern __at(0x0118) volatile __CM2NSELbits_t CM2NSELbits;
2479 
2480 #define _C2NCH0                 0x01
2481 #define _C2NCH1                 0x02
2482 #define _C2NCH2                 0x04
2483 #define _C2NCH3                 0x08
2484 
2485 //==============================================================================
2486 
2487 
2488 //==============================================================================
2489 //        CM2PSEL Bits
2490 
2491 extern __at(0x0119) __sfr CM2PSEL;
2492 
2493 typedef union
2494   {
2495   struct
2496     {
2497     unsigned PCH0               : 1;
2498     unsigned PCH1               : 1;
2499     unsigned PCH2               : 1;
2500     unsigned PCH3               : 1;
2501     unsigned                    : 1;
2502     unsigned                    : 1;
2503     unsigned                    : 1;
2504     unsigned                    : 1;
2505     };
2506 
2507   struct
2508     {
2509     unsigned C2PCH0             : 1;
2510     unsigned C2PCH1             : 1;
2511     unsigned C2PCH2             : 1;
2512     unsigned C2PCH3             : 1;
2513     unsigned                    : 1;
2514     unsigned                    : 1;
2515     unsigned                    : 1;
2516     unsigned                    : 1;
2517     };
2518 
2519   struct
2520     {
2521     unsigned C2PCH              : 4;
2522     unsigned                    : 4;
2523     };
2524 
2525   struct
2526     {
2527     unsigned PCH                : 4;
2528     unsigned                    : 4;
2529     };
2530   } __CM2PSELbits_t;
2531 
2532 extern __at(0x0119) volatile __CM2PSELbits_t CM2PSELbits;
2533 
2534 #define _CM2PSEL_PCH0           0x01
2535 #define _CM2PSEL_C2PCH0         0x01
2536 #define _CM2PSEL_PCH1           0x02
2537 #define _CM2PSEL_C2PCH1         0x02
2538 #define _CM2PSEL_PCH2           0x04
2539 #define _CM2PSEL_C2PCH2         0x04
2540 #define _CM2PSEL_PCH3           0x08
2541 #define _CM2PSEL_C2PCH3         0x08
2542 
2543 //==============================================================================
2544 
2545 
2546 //==============================================================================
2547 //        CM3CON0 Bits
2548 
2549 extern __at(0x011A) __sfr CM3CON0;
2550 
2551 typedef union
2552   {
2553   struct
2554     {
2555     unsigned SYNC               : 1;
2556     unsigned HYS                : 1;
2557     unsigned Reserved           : 1;
2558     unsigned ZLF                : 1;
2559     unsigned POL                : 1;
2560     unsigned                    : 1;
2561     unsigned OUT                : 1;
2562     unsigned ON                 : 1;
2563     };
2564 
2565   struct
2566     {
2567     unsigned C3SYNC             : 1;
2568     unsigned C3HYS              : 1;
2569     unsigned C3SP               : 1;
2570     unsigned C3ZLF              : 1;
2571     unsigned C3POL              : 1;
2572     unsigned                    : 1;
2573     unsigned C3OUT              : 1;
2574     unsigned C3ON               : 1;
2575     };
2576   } __CM3CON0bits_t;
2577 
2578 extern __at(0x011A) volatile __CM3CON0bits_t CM3CON0bits;
2579 
2580 #define _CM3CON0_SYNC           0x01
2581 #define _CM3CON0_C3SYNC         0x01
2582 #define _CM3CON0_HYS            0x02
2583 #define _CM3CON0_C3HYS          0x02
2584 #define _CM3CON0_Reserved       0x04
2585 #define _CM3CON0_C3SP           0x04
2586 #define _CM3CON0_ZLF            0x08
2587 #define _CM3CON0_C3ZLF          0x08
2588 #define _CM3CON0_POL            0x10
2589 #define _CM3CON0_C3POL          0x10
2590 #define _CM3CON0_OUT            0x40
2591 #define _CM3CON0_C3OUT          0x40
2592 #define _CM3CON0_ON             0x80
2593 #define _CM3CON0_C3ON           0x80
2594 
2595 //==============================================================================
2596 
2597 
2598 //==============================================================================
2599 //        CM3CON1 Bits
2600 
2601 extern __at(0x011B) __sfr CM3CON1;
2602 
2603 typedef union
2604   {
2605   struct
2606     {
2607     unsigned INTN               : 1;
2608     unsigned INTP               : 1;
2609     unsigned                    : 1;
2610     unsigned                    : 1;
2611     unsigned                    : 1;
2612     unsigned                    : 1;
2613     unsigned                    : 1;
2614     unsigned                    : 1;
2615     };
2616 
2617   struct
2618     {
2619     unsigned C3INTN             : 1;
2620     unsigned C3INTP             : 1;
2621     unsigned                    : 1;
2622     unsigned                    : 1;
2623     unsigned                    : 1;
2624     unsigned                    : 1;
2625     unsigned                    : 1;
2626     unsigned                    : 1;
2627     };
2628   } __CM3CON1bits_t;
2629 
2630 extern __at(0x011B) volatile __CM3CON1bits_t CM3CON1bits;
2631 
2632 #define _CM3CON1_INTN           0x01
2633 #define _CM3CON1_C3INTN         0x01
2634 #define _CM3CON1_INTP           0x02
2635 #define _CM3CON1_C3INTP         0x02
2636 
2637 //==============================================================================
2638 
2639 
2640 //==============================================================================
2641 //        CM3NSEL Bits
2642 
2643 extern __at(0x011C) __sfr CM3NSEL;
2644 
2645 typedef union
2646   {
2647   struct
2648     {
2649     unsigned C3NCH0             : 1;
2650     unsigned C3NCH1             : 1;
2651     unsigned C3NCH2             : 1;
2652     unsigned C3NCH3             : 1;
2653     unsigned                    : 1;
2654     unsigned                    : 1;
2655     unsigned                    : 1;
2656     unsigned                    : 1;
2657     };
2658 
2659   struct
2660     {
2661     unsigned C3NCH              : 4;
2662     unsigned                    : 4;
2663     };
2664   } __CM3NSELbits_t;
2665 
2666 extern __at(0x011C) volatile __CM3NSELbits_t CM3NSELbits;
2667 
2668 #define _C3NCH0                 0x01
2669 #define _C3NCH1                 0x02
2670 #define _C3NCH2                 0x04
2671 #define _C3NCH3                 0x08
2672 
2673 //==============================================================================
2674 
2675 
2676 //==============================================================================
2677 //        CM3PSEL Bits
2678 
2679 extern __at(0x011D) __sfr CM3PSEL;
2680 
2681 typedef union
2682   {
2683   struct
2684     {
2685     unsigned PCH0               : 1;
2686     unsigned PCH1               : 1;
2687     unsigned PCH2               : 1;
2688     unsigned PCH3               : 1;
2689     unsigned                    : 1;
2690     unsigned                    : 1;
2691     unsigned                    : 1;
2692     unsigned                    : 1;
2693     };
2694 
2695   struct
2696     {
2697     unsigned C3PCH0             : 1;
2698     unsigned C3PCH1             : 1;
2699     unsigned C3PCH2             : 1;
2700     unsigned C3PCH3             : 1;
2701     unsigned                    : 1;
2702     unsigned                    : 1;
2703     unsigned                    : 1;
2704     unsigned                    : 1;
2705     };
2706 
2707   struct
2708     {
2709     unsigned PCH                : 4;
2710     unsigned                    : 4;
2711     };
2712 
2713   struct
2714     {
2715     unsigned C3PCH              : 4;
2716     unsigned                    : 4;
2717     };
2718   } __CM3PSELbits_t;
2719 
2720 extern __at(0x011D) volatile __CM3PSELbits_t CM3PSELbits;
2721 
2722 #define _CM3PSEL_PCH0           0x01
2723 #define _CM3PSEL_C3PCH0         0x01
2724 #define _CM3PSEL_PCH1           0x02
2725 #define _CM3PSEL_C3PCH1         0x02
2726 #define _CM3PSEL_PCH2           0x04
2727 #define _CM3PSEL_C3PCH2         0x04
2728 #define _CM3PSEL_PCH3           0x08
2729 #define _CM3PSEL_C3PCH3         0x08
2730 
2731 //==============================================================================
2732 
2733 
2734 //==============================================================================
2735 //        ANSELA Bits
2736 
2737 extern __at(0x018C) __sfr ANSELA;
2738 
2739 typedef union
2740   {
2741   struct
2742     {
2743     unsigned ANSA0              : 1;
2744     unsigned ANSA1              : 1;
2745     unsigned ANSA2              : 1;
2746     unsigned ANSA3              : 1;
2747     unsigned ANSA4              : 1;
2748     unsigned ANSA5              : 1;
2749     unsigned                    : 1;
2750     unsigned                    : 1;
2751     };
2752 
2753   struct
2754     {
2755     unsigned ANSA               : 6;
2756     unsigned                    : 2;
2757     };
2758   } __ANSELAbits_t;
2759 
2760 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2761 
2762 #define _ANSA0                  0x01
2763 #define _ANSA1                  0x02
2764 #define _ANSA2                  0x04
2765 #define _ANSA3                  0x08
2766 #define _ANSA4                  0x10
2767 #define _ANSA5                  0x20
2768 
2769 //==============================================================================
2770 
2771 
2772 //==============================================================================
2773 //        ANSELB Bits
2774 
2775 extern __at(0x018D) __sfr ANSELB;
2776 
2777 typedef union
2778   {
2779   struct
2780     {
2781     unsigned ANSB0              : 1;
2782     unsigned ANSB1              : 1;
2783     unsigned ANSB2              : 1;
2784     unsigned ANSB3              : 1;
2785     unsigned ANSB4              : 1;
2786     unsigned ANSB5              : 1;
2787     unsigned                    : 1;
2788     unsigned                    : 1;
2789     };
2790 
2791   struct
2792     {
2793     unsigned ANSB               : 6;
2794     unsigned                    : 2;
2795     };
2796   } __ANSELBbits_t;
2797 
2798 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2799 
2800 #define _ANSB0                  0x01
2801 #define _ANSB1                  0x02
2802 #define _ANSB2                  0x04
2803 #define _ANSB3                  0x08
2804 #define _ANSB4                  0x10
2805 #define _ANSB5                  0x20
2806 
2807 //==============================================================================
2808 
2809 
2810 //==============================================================================
2811 //        ANSELC Bits
2812 
2813 extern __at(0x018E) __sfr ANSELC;
2814 
2815 typedef struct
2816   {
2817   unsigned                      : 1;
2818   unsigned                      : 1;
2819   unsigned ANSC2                : 1;
2820   unsigned ANSC3                : 1;
2821   unsigned ANSC4                : 1;
2822   unsigned ANSC5                : 1;
2823   unsigned ANSC6                : 1;
2824   unsigned ANSC7                : 1;
2825   } __ANSELCbits_t;
2826 
2827 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2828 
2829 #define _ANSC2                  0x04
2830 #define _ANSC3                  0x08
2831 #define _ANSC4                  0x10
2832 #define _ANSC5                  0x20
2833 #define _ANSC6                  0x40
2834 #define _ANSC7                  0x80
2835 
2836 //==============================================================================
2837 
2838 extern __at(0x0191) __sfr PMADR;
2839 extern __at(0x0191) __sfr PMADRL;
2840 extern __at(0x0192) __sfr PMADRH;
2841 extern __at(0x0193) __sfr PMDAT;
2842 extern __at(0x0193) __sfr PMDATL;
2843 extern __at(0x0194) __sfr PMDATH;
2844 
2845 //==============================================================================
2846 //        PMCON1 Bits
2847 
2848 extern __at(0x0195) __sfr PMCON1;
2849 
2850 typedef struct
2851   {
2852   unsigned RD                   : 1;
2853   unsigned WR                   : 1;
2854   unsigned WREN                 : 1;
2855   unsigned WRERR                : 1;
2856   unsigned FREE                 : 1;
2857   unsigned LWLO                 : 1;
2858   unsigned CFGS                 : 1;
2859   unsigned                      : 1;
2860   } __PMCON1bits_t;
2861 
2862 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
2863 
2864 #define _RD                     0x01
2865 #define _WR                     0x02
2866 #define _WREN                   0x04
2867 #define _WRERR                  0x08
2868 #define _FREE                   0x10
2869 #define _LWLO                   0x20
2870 #define _CFGS                   0x40
2871 
2872 //==============================================================================
2873 
2874 extern __at(0x0196) __sfr PMCON2;
2875 
2876 //==============================================================================
2877 //        VREGCON Bits
2878 
2879 extern __at(0x0197) __sfr VREGCON;
2880 
2881 typedef struct
2882   {
2883   unsigned Reserved             : 1;
2884   unsigned VREGPM               : 1;
2885   unsigned                      : 1;
2886   unsigned                      : 1;
2887   unsigned                      : 1;
2888   unsigned                      : 1;
2889   unsigned                      : 1;
2890   unsigned                      : 1;
2891   } __VREGCONbits_t;
2892 
2893 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
2894 
2895 #define _VREGCON_Reserved       0x01
2896 #define _VREGCON_VREGPM         0x02
2897 
2898 //==============================================================================
2899 
2900 extern __at(0x0199) __sfr RC1REG;
2901 extern __at(0x0199) __sfr RCREG;
2902 extern __at(0x0199) __sfr RCREG1;
2903 extern __at(0x019A) __sfr TX1REG;
2904 extern __at(0x019A) __sfr TXREG;
2905 extern __at(0x019A) __sfr TXREG1;
2906 extern __at(0x019B) __sfr SP1BRG;
2907 extern __at(0x019B) __sfr SP1BRGL;
2908 extern __at(0x019B) __sfr SPBRG;
2909 extern __at(0x019B) __sfr SPBRG1;
2910 extern __at(0x019B) __sfr SPBRGL;
2911 extern __at(0x019C) __sfr SP1BRGH;
2912 extern __at(0x019C) __sfr SPBRGH;
2913 extern __at(0x019C) __sfr SPBRGH1;
2914 
2915 //==============================================================================
2916 //        RC1STA Bits
2917 
2918 extern __at(0x019D) __sfr RC1STA;
2919 
2920 typedef struct
2921   {
2922   unsigned RX9D                 : 1;
2923   unsigned OERR                 : 1;
2924   unsigned FERR                 : 1;
2925   unsigned ADDEN                : 1;
2926   unsigned CREN                 : 1;
2927   unsigned SREN                 : 1;
2928   unsigned RX9                  : 1;
2929   unsigned SPEN                 : 1;
2930   } __RC1STAbits_t;
2931 
2932 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2933 
2934 #define _RX9D                   0x01
2935 #define _OERR                   0x02
2936 #define _FERR                   0x04
2937 #define _ADDEN                  0x08
2938 #define _CREN                   0x10
2939 #define _SREN                   0x20
2940 #define _RX9                    0x40
2941 #define _SPEN                   0x80
2942 
2943 //==============================================================================
2944 
2945 
2946 //==============================================================================
2947 //        RCSTA Bits
2948 
2949 extern __at(0x019D) __sfr RCSTA;
2950 
2951 typedef struct
2952   {
2953   unsigned RX9D                 : 1;
2954   unsigned OERR                 : 1;
2955   unsigned FERR                 : 1;
2956   unsigned ADDEN                : 1;
2957   unsigned CREN                 : 1;
2958   unsigned SREN                 : 1;
2959   unsigned RX9                  : 1;
2960   unsigned SPEN                 : 1;
2961   } __RCSTAbits_t;
2962 
2963 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2964 
2965 #define _RCSTA_RX9D             0x01
2966 #define _RCSTA_OERR             0x02
2967 #define _RCSTA_FERR             0x04
2968 #define _RCSTA_ADDEN            0x08
2969 #define _RCSTA_CREN             0x10
2970 #define _RCSTA_SREN             0x20
2971 #define _RCSTA_RX9              0x40
2972 #define _RCSTA_SPEN             0x80
2973 
2974 //==============================================================================
2975 
2976 
2977 //==============================================================================
2978 //        RCSTA1 Bits
2979 
2980 extern __at(0x019D) __sfr RCSTA1;
2981 
2982 typedef struct
2983   {
2984   unsigned RX9D                 : 1;
2985   unsigned OERR                 : 1;
2986   unsigned FERR                 : 1;
2987   unsigned ADDEN                : 1;
2988   unsigned CREN                 : 1;
2989   unsigned SREN                 : 1;
2990   unsigned RX9                  : 1;
2991   unsigned SPEN                 : 1;
2992   } __RCSTA1bits_t;
2993 
2994 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2995 
2996 #define _RCSTA1_RX9D            0x01
2997 #define _RCSTA1_OERR            0x02
2998 #define _RCSTA1_FERR            0x04
2999 #define _RCSTA1_ADDEN           0x08
3000 #define _RCSTA1_CREN            0x10
3001 #define _RCSTA1_SREN            0x20
3002 #define _RCSTA1_RX9             0x40
3003 #define _RCSTA1_SPEN            0x80
3004 
3005 //==============================================================================
3006 
3007 
3008 //==============================================================================
3009 //        TX1STA Bits
3010 
3011 extern __at(0x019E) __sfr TX1STA;
3012 
3013 typedef struct
3014   {
3015   unsigned TX9D                 : 1;
3016   unsigned TRMT                 : 1;
3017   unsigned BRGH                 : 1;
3018   unsigned SENDB                : 1;
3019   unsigned SYNC                 : 1;
3020   unsigned TXEN                 : 1;
3021   unsigned TX9                  : 1;
3022   unsigned CSRC                 : 1;
3023   } __TX1STAbits_t;
3024 
3025 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
3026 
3027 #define _TX1STA_TX9D            0x01
3028 #define _TX1STA_TRMT            0x02
3029 #define _TX1STA_BRGH            0x04
3030 #define _TX1STA_SENDB           0x08
3031 #define _TX1STA_SYNC            0x10
3032 #define _TX1STA_TXEN            0x20
3033 #define _TX1STA_TX9             0x40
3034 #define _TX1STA_CSRC            0x80
3035 
3036 //==============================================================================
3037 
3038 
3039 //==============================================================================
3040 //        TXSTA Bits
3041 
3042 extern __at(0x019E) __sfr TXSTA;
3043 
3044 typedef struct
3045   {
3046   unsigned TX9D                 : 1;
3047   unsigned TRMT                 : 1;
3048   unsigned BRGH                 : 1;
3049   unsigned SENDB                : 1;
3050   unsigned SYNC                 : 1;
3051   unsigned TXEN                 : 1;
3052   unsigned TX9                  : 1;
3053   unsigned CSRC                 : 1;
3054   } __TXSTAbits_t;
3055 
3056 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
3057 
3058 #define _TXSTA_TX9D             0x01
3059 #define _TXSTA_TRMT             0x02
3060 #define _TXSTA_BRGH             0x04
3061 #define _TXSTA_SENDB            0x08
3062 #define _TXSTA_SYNC             0x10
3063 #define _TXSTA_TXEN             0x20
3064 #define _TXSTA_TX9              0x40
3065 #define _TXSTA_CSRC             0x80
3066 
3067 //==============================================================================
3068 
3069 
3070 //==============================================================================
3071 //        TXSTA1 Bits
3072 
3073 extern __at(0x019E) __sfr TXSTA1;
3074 
3075 typedef struct
3076   {
3077   unsigned TX9D                 : 1;
3078   unsigned TRMT                 : 1;
3079   unsigned BRGH                 : 1;
3080   unsigned SENDB                : 1;
3081   unsigned SYNC                 : 1;
3082   unsigned TXEN                 : 1;
3083   unsigned TX9                  : 1;
3084   unsigned CSRC                 : 1;
3085   } __TXSTA1bits_t;
3086 
3087 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
3088 
3089 #define _TXSTA1_TX9D            0x01
3090 #define _TXSTA1_TRMT            0x02
3091 #define _TXSTA1_BRGH            0x04
3092 #define _TXSTA1_SENDB           0x08
3093 #define _TXSTA1_SYNC            0x10
3094 #define _TXSTA1_TXEN            0x20
3095 #define _TXSTA1_TX9             0x40
3096 #define _TXSTA1_CSRC            0x80
3097 
3098 //==============================================================================
3099 
3100 
3101 //==============================================================================
3102 //        BAUD1CON Bits
3103 
3104 extern __at(0x019F) __sfr BAUD1CON;
3105 
3106 typedef struct
3107   {
3108   unsigned ABDEN                : 1;
3109   unsigned WUE                  : 1;
3110   unsigned                      : 1;
3111   unsigned BRG16                : 1;
3112   unsigned SCKP                 : 1;
3113   unsigned                      : 1;
3114   unsigned RCIDL                : 1;
3115   unsigned ABDOVF               : 1;
3116   } __BAUD1CONbits_t;
3117 
3118 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
3119 
3120 #define _ABDEN                  0x01
3121 #define _WUE                    0x02
3122 #define _BRG16                  0x08
3123 #define _SCKP                   0x10
3124 #define _RCIDL                  0x40
3125 #define _ABDOVF                 0x80
3126 
3127 //==============================================================================
3128 
3129 
3130 //==============================================================================
3131 //        BAUDCON Bits
3132 
3133 extern __at(0x019F) __sfr BAUDCON;
3134 
3135 typedef struct
3136   {
3137   unsigned ABDEN                : 1;
3138   unsigned WUE                  : 1;
3139   unsigned                      : 1;
3140   unsigned BRG16                : 1;
3141   unsigned SCKP                 : 1;
3142   unsigned                      : 1;
3143   unsigned RCIDL                : 1;
3144   unsigned ABDOVF               : 1;
3145   } __BAUDCONbits_t;
3146 
3147 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
3148 
3149 #define _BAUDCON_ABDEN          0x01
3150 #define _BAUDCON_WUE            0x02
3151 #define _BAUDCON_BRG16          0x08
3152 #define _BAUDCON_SCKP           0x10
3153 #define _BAUDCON_RCIDL          0x40
3154 #define _BAUDCON_ABDOVF         0x80
3155 
3156 //==============================================================================
3157 
3158 
3159 //==============================================================================
3160 //        BAUDCON1 Bits
3161 
3162 extern __at(0x019F) __sfr BAUDCON1;
3163 
3164 typedef struct
3165   {
3166   unsigned ABDEN                : 1;
3167   unsigned WUE                  : 1;
3168   unsigned                      : 1;
3169   unsigned BRG16                : 1;
3170   unsigned SCKP                 : 1;
3171   unsigned                      : 1;
3172   unsigned RCIDL                : 1;
3173   unsigned ABDOVF               : 1;
3174   } __BAUDCON1bits_t;
3175 
3176 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
3177 
3178 #define _BAUDCON1_ABDEN         0x01
3179 #define _BAUDCON1_WUE           0x02
3180 #define _BAUDCON1_BRG16         0x08
3181 #define _BAUDCON1_SCKP          0x10
3182 #define _BAUDCON1_RCIDL         0x40
3183 #define _BAUDCON1_ABDOVF        0x80
3184 
3185 //==============================================================================
3186 
3187 
3188 //==============================================================================
3189 //        BAUDCTL Bits
3190 
3191 extern __at(0x019F) __sfr BAUDCTL;
3192 
3193 typedef struct
3194   {
3195   unsigned ABDEN                : 1;
3196   unsigned WUE                  : 1;
3197   unsigned                      : 1;
3198   unsigned BRG16                : 1;
3199   unsigned SCKP                 : 1;
3200   unsigned                      : 1;
3201   unsigned RCIDL                : 1;
3202   unsigned ABDOVF               : 1;
3203   } __BAUDCTLbits_t;
3204 
3205 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
3206 
3207 #define _BAUDCTL_ABDEN          0x01
3208 #define _BAUDCTL_WUE            0x02
3209 #define _BAUDCTL_BRG16          0x08
3210 #define _BAUDCTL_SCKP           0x10
3211 #define _BAUDCTL_RCIDL          0x40
3212 #define _BAUDCTL_ABDOVF         0x80
3213 
3214 //==============================================================================
3215 
3216 
3217 //==============================================================================
3218 //        BAUDCTL1 Bits
3219 
3220 extern __at(0x019F) __sfr BAUDCTL1;
3221 
3222 typedef struct
3223   {
3224   unsigned ABDEN                : 1;
3225   unsigned WUE                  : 1;
3226   unsigned                      : 1;
3227   unsigned BRG16                : 1;
3228   unsigned SCKP                 : 1;
3229   unsigned                      : 1;
3230   unsigned RCIDL                : 1;
3231   unsigned ABDOVF               : 1;
3232   } __BAUDCTL1bits_t;
3233 
3234 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
3235 
3236 #define _BAUDCTL1_ABDEN         0x01
3237 #define _BAUDCTL1_WUE           0x02
3238 #define _BAUDCTL1_BRG16         0x08
3239 #define _BAUDCTL1_SCKP          0x10
3240 #define _BAUDCTL1_RCIDL         0x40
3241 #define _BAUDCTL1_ABDOVF        0x80
3242 
3243 //==============================================================================
3244 
3245 
3246 //==============================================================================
3247 //        WPUA Bits
3248 
3249 extern __at(0x020C) __sfr WPUA;
3250 
3251 typedef struct
3252   {
3253   unsigned WPUA0                : 1;
3254   unsigned WPUA1                : 1;
3255   unsigned WPUA2                : 1;
3256   unsigned WPUA3                : 1;
3257   unsigned WPUA4                : 1;
3258   unsigned WPUA5                : 1;
3259   unsigned WPUA6                : 1;
3260   unsigned WPUA7                : 1;
3261   } __WPUAbits_t;
3262 
3263 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
3264 
3265 #define _WPUA0                  0x01
3266 #define _WPUA1                  0x02
3267 #define _WPUA2                  0x04
3268 #define _WPUA3                  0x08
3269 #define _WPUA4                  0x10
3270 #define _WPUA5                  0x20
3271 #define _WPUA6                  0x40
3272 #define _WPUA7                  0x80
3273 
3274 //==============================================================================
3275 
3276 
3277 //==============================================================================
3278 //        WPUB Bits
3279 
3280 extern __at(0x020D) __sfr WPUB;
3281 
3282 typedef struct
3283   {
3284   unsigned WPUB0                : 1;
3285   unsigned WPUB1                : 1;
3286   unsigned WPUB2                : 1;
3287   unsigned WPUB3                : 1;
3288   unsigned WPUB4                : 1;
3289   unsigned WPUB5                : 1;
3290   unsigned WPUB6                : 1;
3291   unsigned WPUB7                : 1;
3292   } __WPUBbits_t;
3293 
3294 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
3295 
3296 #define _WPUB0                  0x01
3297 #define _WPUB1                  0x02
3298 #define _WPUB2                  0x04
3299 #define _WPUB3                  0x08
3300 #define _WPUB4                  0x10
3301 #define _WPUB5                  0x20
3302 #define _WPUB6                  0x40
3303 #define _WPUB7                  0x80
3304 
3305 //==============================================================================
3306 
3307 
3308 //==============================================================================
3309 //        WPUC Bits
3310 
3311 extern __at(0x020E) __sfr WPUC;
3312 
3313 typedef struct
3314   {
3315   unsigned WPUC0                : 1;
3316   unsigned WPUC1                : 1;
3317   unsigned WPUC2                : 1;
3318   unsigned WPUC3                : 1;
3319   unsigned WPUC4                : 1;
3320   unsigned WPUC5                : 1;
3321   unsigned WPUC6                : 1;
3322   unsigned WPUC7                : 1;
3323   } __WPUCbits_t;
3324 
3325 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
3326 
3327 #define _WPUC0                  0x01
3328 #define _WPUC1                  0x02
3329 #define _WPUC2                  0x04
3330 #define _WPUC3                  0x08
3331 #define _WPUC4                  0x10
3332 #define _WPUC5                  0x20
3333 #define _WPUC6                  0x40
3334 #define _WPUC7                  0x80
3335 
3336 //==============================================================================
3337 
3338 
3339 //==============================================================================
3340 //        WPUE Bits
3341 
3342 extern __at(0x0210) __sfr WPUE;
3343 
3344 typedef struct
3345   {
3346   unsigned                      : 1;
3347   unsigned                      : 1;
3348   unsigned                      : 1;
3349   unsigned WPUE3                : 1;
3350   unsigned                      : 1;
3351   unsigned                      : 1;
3352   unsigned                      : 1;
3353   unsigned                      : 1;
3354   } __WPUEbits_t;
3355 
3356 extern __at(0x0210) volatile __WPUEbits_t WPUEbits;
3357 
3358 #define _WPUE3                  0x08
3359 
3360 //==============================================================================
3361 
3362 
3363 //==============================================================================
3364 //        SSP1BUF Bits
3365 
3366 extern __at(0x0211) __sfr SSP1BUF;
3367 
3368 typedef union
3369   {
3370   struct
3371     {
3372     unsigned SSP1BUF0           : 1;
3373     unsigned SSP1BUF1           : 1;
3374     unsigned SSP1BUF2           : 1;
3375     unsigned SSP1BUF3           : 1;
3376     unsigned SSP1BUF4           : 1;
3377     unsigned SSP1BUF5           : 1;
3378     unsigned SSP1BUF6           : 1;
3379     unsigned SSP1BUF7           : 1;
3380     };
3381 
3382   struct
3383     {
3384     unsigned BUF0               : 1;
3385     unsigned BUF1               : 1;
3386     unsigned BUF2               : 1;
3387     unsigned BUF3               : 1;
3388     unsigned BUF4               : 1;
3389     unsigned BUF5               : 1;
3390     unsigned BUF6               : 1;
3391     unsigned BUF7               : 1;
3392     };
3393   } __SSP1BUFbits_t;
3394 
3395 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
3396 
3397 #define _SSP1BUF0               0x01
3398 #define _BUF0                   0x01
3399 #define _SSP1BUF1               0x02
3400 #define _BUF1                   0x02
3401 #define _SSP1BUF2               0x04
3402 #define _BUF2                   0x04
3403 #define _SSP1BUF3               0x08
3404 #define _BUF3                   0x08
3405 #define _SSP1BUF4               0x10
3406 #define _BUF4                   0x10
3407 #define _SSP1BUF5               0x20
3408 #define _BUF5                   0x20
3409 #define _SSP1BUF6               0x40
3410 #define _BUF6                   0x40
3411 #define _SSP1BUF7               0x80
3412 #define _BUF7                   0x80
3413 
3414 //==============================================================================
3415 
3416 
3417 //==============================================================================
3418 //        SSPBUF Bits
3419 
3420 extern __at(0x0211) __sfr SSPBUF;
3421 
3422 typedef union
3423   {
3424   struct
3425     {
3426     unsigned SSP1BUF0           : 1;
3427     unsigned SSP1BUF1           : 1;
3428     unsigned SSP1BUF2           : 1;
3429     unsigned SSP1BUF3           : 1;
3430     unsigned SSP1BUF4           : 1;
3431     unsigned SSP1BUF5           : 1;
3432     unsigned SSP1BUF6           : 1;
3433     unsigned SSP1BUF7           : 1;
3434     };
3435 
3436   struct
3437     {
3438     unsigned BUF0               : 1;
3439     unsigned BUF1               : 1;
3440     unsigned BUF2               : 1;
3441     unsigned BUF3               : 1;
3442     unsigned BUF4               : 1;
3443     unsigned BUF5               : 1;
3444     unsigned BUF6               : 1;
3445     unsigned BUF7               : 1;
3446     };
3447   } __SSPBUFbits_t;
3448 
3449 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
3450 
3451 #define _SSPBUF_SSP1BUF0        0x01
3452 #define _SSPBUF_BUF0            0x01
3453 #define _SSPBUF_SSP1BUF1        0x02
3454 #define _SSPBUF_BUF1            0x02
3455 #define _SSPBUF_SSP1BUF2        0x04
3456 #define _SSPBUF_BUF2            0x04
3457 #define _SSPBUF_SSP1BUF3        0x08
3458 #define _SSPBUF_BUF3            0x08
3459 #define _SSPBUF_SSP1BUF4        0x10
3460 #define _SSPBUF_BUF4            0x10
3461 #define _SSPBUF_SSP1BUF5        0x20
3462 #define _SSPBUF_BUF5            0x20
3463 #define _SSPBUF_SSP1BUF6        0x40
3464 #define _SSPBUF_BUF6            0x40
3465 #define _SSPBUF_SSP1BUF7        0x80
3466 #define _SSPBUF_BUF7            0x80
3467 
3468 //==============================================================================
3469 
3470 
3471 //==============================================================================
3472 //        SSP1ADD Bits
3473 
3474 extern __at(0x0212) __sfr SSP1ADD;
3475 
3476 typedef union
3477   {
3478   struct
3479     {
3480     unsigned SSP1ADD0           : 1;
3481     unsigned SSP1ADD1           : 1;
3482     unsigned SSP1ADD2           : 1;
3483     unsigned SSP1ADD3           : 1;
3484     unsigned SSP1ADD4           : 1;
3485     unsigned SSP1ADD5           : 1;
3486     unsigned SSP1ADD6           : 1;
3487     unsigned SSP1ADD7           : 1;
3488     };
3489 
3490   struct
3491     {
3492     unsigned ADD0               : 1;
3493     unsigned ADD1               : 1;
3494     unsigned ADD2               : 1;
3495     unsigned ADD3               : 1;
3496     unsigned ADD4               : 1;
3497     unsigned ADD5               : 1;
3498     unsigned ADD6               : 1;
3499     unsigned ADD7               : 1;
3500     };
3501   } __SSP1ADDbits_t;
3502 
3503 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
3504 
3505 #define _SSP1ADD0               0x01
3506 #define _ADD0                   0x01
3507 #define _SSP1ADD1               0x02
3508 #define _ADD1                   0x02
3509 #define _SSP1ADD2               0x04
3510 #define _ADD2                   0x04
3511 #define _SSP1ADD3               0x08
3512 #define _ADD3                   0x08
3513 #define _SSP1ADD4               0x10
3514 #define _ADD4                   0x10
3515 #define _SSP1ADD5               0x20
3516 #define _ADD5                   0x20
3517 #define _SSP1ADD6               0x40
3518 #define _ADD6                   0x40
3519 #define _SSP1ADD7               0x80
3520 #define _ADD7                   0x80
3521 
3522 //==============================================================================
3523 
3524 
3525 //==============================================================================
3526 //        SSPADD Bits
3527 
3528 extern __at(0x0212) __sfr SSPADD;
3529 
3530 typedef union
3531   {
3532   struct
3533     {
3534     unsigned SSP1ADD0           : 1;
3535     unsigned SSP1ADD1           : 1;
3536     unsigned SSP1ADD2           : 1;
3537     unsigned SSP1ADD3           : 1;
3538     unsigned SSP1ADD4           : 1;
3539     unsigned SSP1ADD5           : 1;
3540     unsigned SSP1ADD6           : 1;
3541     unsigned SSP1ADD7           : 1;
3542     };
3543 
3544   struct
3545     {
3546     unsigned ADD0               : 1;
3547     unsigned ADD1               : 1;
3548     unsigned ADD2               : 1;
3549     unsigned ADD3               : 1;
3550     unsigned ADD4               : 1;
3551     unsigned ADD5               : 1;
3552     unsigned ADD6               : 1;
3553     unsigned ADD7               : 1;
3554     };
3555   } __SSPADDbits_t;
3556 
3557 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
3558 
3559 #define _SSPADD_SSP1ADD0        0x01
3560 #define _SSPADD_ADD0            0x01
3561 #define _SSPADD_SSP1ADD1        0x02
3562 #define _SSPADD_ADD1            0x02
3563 #define _SSPADD_SSP1ADD2        0x04
3564 #define _SSPADD_ADD2            0x04
3565 #define _SSPADD_SSP1ADD3        0x08
3566 #define _SSPADD_ADD3            0x08
3567 #define _SSPADD_SSP1ADD4        0x10
3568 #define _SSPADD_ADD4            0x10
3569 #define _SSPADD_SSP1ADD5        0x20
3570 #define _SSPADD_ADD5            0x20
3571 #define _SSPADD_SSP1ADD6        0x40
3572 #define _SSPADD_ADD6            0x40
3573 #define _SSPADD_SSP1ADD7        0x80
3574 #define _SSPADD_ADD7            0x80
3575 
3576 //==============================================================================
3577 
3578 
3579 //==============================================================================
3580 //        SSP1MSK Bits
3581 
3582 extern __at(0x0213) __sfr SSP1MSK;
3583 
3584 typedef union
3585   {
3586   struct
3587     {
3588     unsigned SSP1MSK0           : 1;
3589     unsigned SSP1MSK1           : 1;
3590     unsigned SSP1MSK2           : 1;
3591     unsigned SSP1MSK3           : 1;
3592     unsigned SSP1MSK4           : 1;
3593     unsigned SSP1MSK5           : 1;
3594     unsigned SSP1MSK6           : 1;
3595     unsigned SSP1MSK7           : 1;
3596     };
3597 
3598   struct
3599     {
3600     unsigned MSK0               : 1;
3601     unsigned MSK1               : 1;
3602     unsigned MSK2               : 1;
3603     unsigned MSK3               : 1;
3604     unsigned MSK4               : 1;
3605     unsigned MSK5               : 1;
3606     unsigned MSK6               : 1;
3607     unsigned MSK7               : 1;
3608     };
3609   } __SSP1MSKbits_t;
3610 
3611 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3612 
3613 #define _SSP1MSK0               0x01
3614 #define _MSK0                   0x01
3615 #define _SSP1MSK1               0x02
3616 #define _MSK1                   0x02
3617 #define _SSP1MSK2               0x04
3618 #define _MSK2                   0x04
3619 #define _SSP1MSK3               0x08
3620 #define _MSK3                   0x08
3621 #define _SSP1MSK4               0x10
3622 #define _MSK4                   0x10
3623 #define _SSP1MSK5               0x20
3624 #define _MSK5                   0x20
3625 #define _SSP1MSK6               0x40
3626 #define _MSK6                   0x40
3627 #define _SSP1MSK7               0x80
3628 #define _MSK7                   0x80
3629 
3630 //==============================================================================
3631 
3632 
3633 //==============================================================================
3634 //        SSPMSK Bits
3635 
3636 extern __at(0x0213) __sfr SSPMSK;
3637 
3638 typedef union
3639   {
3640   struct
3641     {
3642     unsigned SSP1MSK0           : 1;
3643     unsigned SSP1MSK1           : 1;
3644     unsigned SSP1MSK2           : 1;
3645     unsigned SSP1MSK3           : 1;
3646     unsigned SSP1MSK4           : 1;
3647     unsigned SSP1MSK5           : 1;
3648     unsigned SSP1MSK6           : 1;
3649     unsigned SSP1MSK7           : 1;
3650     };
3651 
3652   struct
3653     {
3654     unsigned MSK0               : 1;
3655     unsigned MSK1               : 1;
3656     unsigned MSK2               : 1;
3657     unsigned MSK3               : 1;
3658     unsigned MSK4               : 1;
3659     unsigned MSK5               : 1;
3660     unsigned MSK6               : 1;
3661     unsigned MSK7               : 1;
3662     };
3663   } __SSPMSKbits_t;
3664 
3665 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3666 
3667 #define _SSPMSK_SSP1MSK0        0x01
3668 #define _SSPMSK_MSK0            0x01
3669 #define _SSPMSK_SSP1MSK1        0x02
3670 #define _SSPMSK_MSK1            0x02
3671 #define _SSPMSK_SSP1MSK2        0x04
3672 #define _SSPMSK_MSK2            0x04
3673 #define _SSPMSK_SSP1MSK3        0x08
3674 #define _SSPMSK_MSK3            0x08
3675 #define _SSPMSK_SSP1MSK4        0x10
3676 #define _SSPMSK_MSK4            0x10
3677 #define _SSPMSK_SSP1MSK5        0x20
3678 #define _SSPMSK_MSK5            0x20
3679 #define _SSPMSK_SSP1MSK6        0x40
3680 #define _SSPMSK_MSK6            0x40
3681 #define _SSPMSK_SSP1MSK7        0x80
3682 #define _SSPMSK_MSK7            0x80
3683 
3684 //==============================================================================
3685 
3686 
3687 //==============================================================================
3688 //        SSP1STAT Bits
3689 
3690 extern __at(0x0214) __sfr SSP1STAT;
3691 
3692 typedef struct
3693   {
3694   unsigned BF                   : 1;
3695   unsigned UA                   : 1;
3696   unsigned R_NOT_W              : 1;
3697   unsigned S                    : 1;
3698   unsigned P                    : 1;
3699   unsigned D_NOT_A              : 1;
3700   unsigned CKE                  : 1;
3701   unsigned SMP                  : 1;
3702   } __SSP1STATbits_t;
3703 
3704 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3705 
3706 #define _BF                     0x01
3707 #define _UA                     0x02
3708 #define _R_NOT_W                0x04
3709 #define _S                      0x08
3710 #define _P                      0x10
3711 #define _D_NOT_A                0x20
3712 #define _CKE                    0x40
3713 #define _SMP                    0x80
3714 
3715 //==============================================================================
3716 
3717 
3718 //==============================================================================
3719 //        SSPSTAT Bits
3720 
3721 extern __at(0x0214) __sfr SSPSTAT;
3722 
3723 typedef struct
3724   {
3725   unsigned BF                   : 1;
3726   unsigned UA                   : 1;
3727   unsigned R_NOT_W              : 1;
3728   unsigned S                    : 1;
3729   unsigned P                    : 1;
3730   unsigned D_NOT_A              : 1;
3731   unsigned CKE                  : 1;
3732   unsigned SMP                  : 1;
3733   } __SSPSTATbits_t;
3734 
3735 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3736 
3737 #define _SSPSTAT_BF             0x01
3738 #define _SSPSTAT_UA             0x02
3739 #define _SSPSTAT_R_NOT_W        0x04
3740 #define _SSPSTAT_S              0x08
3741 #define _SSPSTAT_P              0x10
3742 #define _SSPSTAT_D_NOT_A        0x20
3743 #define _SSPSTAT_CKE            0x40
3744 #define _SSPSTAT_SMP            0x80
3745 
3746 //==============================================================================
3747 
3748 
3749 //==============================================================================
3750 //        SSP1CON Bits
3751 
3752 extern __at(0x0215) __sfr SSP1CON;
3753 
3754 typedef union
3755   {
3756   struct
3757     {
3758     unsigned SSPM0              : 1;
3759     unsigned SSPM1              : 1;
3760     unsigned SSPM2              : 1;
3761     unsigned SSPM3              : 1;
3762     unsigned CKP                : 1;
3763     unsigned SSPEN              : 1;
3764     unsigned SSPOV              : 1;
3765     unsigned WCOL               : 1;
3766     };
3767 
3768   struct
3769     {
3770     unsigned SSPM               : 4;
3771     unsigned                    : 4;
3772     };
3773   } __SSP1CONbits_t;
3774 
3775 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3776 
3777 #define _SSPM0                  0x01
3778 #define _SSPM1                  0x02
3779 #define _SSPM2                  0x04
3780 #define _SSPM3                  0x08
3781 #define _CKP                    0x10
3782 #define _SSPEN                  0x20
3783 #define _SSPOV                  0x40
3784 #define _WCOL                   0x80
3785 
3786 //==============================================================================
3787 
3788 
3789 //==============================================================================
3790 //        SSP1CON1 Bits
3791 
3792 extern __at(0x0215) __sfr SSP1CON1;
3793 
3794 typedef union
3795   {
3796   struct
3797     {
3798     unsigned SSPM0              : 1;
3799     unsigned SSPM1              : 1;
3800     unsigned SSPM2              : 1;
3801     unsigned SSPM3              : 1;
3802     unsigned CKP                : 1;
3803     unsigned SSPEN              : 1;
3804     unsigned SSPOV              : 1;
3805     unsigned WCOL               : 1;
3806     };
3807 
3808   struct
3809     {
3810     unsigned SSPM               : 4;
3811     unsigned                    : 4;
3812     };
3813   } __SSP1CON1bits_t;
3814 
3815 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3816 
3817 #define _SSP1CON1_SSPM0         0x01
3818 #define _SSP1CON1_SSPM1         0x02
3819 #define _SSP1CON1_SSPM2         0x04
3820 #define _SSP1CON1_SSPM3         0x08
3821 #define _SSP1CON1_CKP           0x10
3822 #define _SSP1CON1_SSPEN         0x20
3823 #define _SSP1CON1_SSPOV         0x40
3824 #define _SSP1CON1_WCOL          0x80
3825 
3826 //==============================================================================
3827 
3828 
3829 //==============================================================================
3830 //        SSPCON Bits
3831 
3832 extern __at(0x0215) __sfr SSPCON;
3833 
3834 typedef union
3835   {
3836   struct
3837     {
3838     unsigned SSPM0              : 1;
3839     unsigned SSPM1              : 1;
3840     unsigned SSPM2              : 1;
3841     unsigned SSPM3              : 1;
3842     unsigned CKP                : 1;
3843     unsigned SSPEN              : 1;
3844     unsigned SSPOV              : 1;
3845     unsigned WCOL               : 1;
3846     };
3847 
3848   struct
3849     {
3850     unsigned SSPM               : 4;
3851     unsigned                    : 4;
3852     };
3853   } __SSPCONbits_t;
3854 
3855 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3856 
3857 #define _SSPCON_SSPM0           0x01
3858 #define _SSPCON_SSPM1           0x02
3859 #define _SSPCON_SSPM2           0x04
3860 #define _SSPCON_SSPM3           0x08
3861 #define _SSPCON_CKP             0x10
3862 #define _SSPCON_SSPEN           0x20
3863 #define _SSPCON_SSPOV           0x40
3864 #define _SSPCON_WCOL            0x80
3865 
3866 //==============================================================================
3867 
3868 
3869 //==============================================================================
3870 //        SSPCON1 Bits
3871 
3872 extern __at(0x0215) __sfr SSPCON1;
3873 
3874 typedef union
3875   {
3876   struct
3877     {
3878     unsigned SSPM0              : 1;
3879     unsigned SSPM1              : 1;
3880     unsigned SSPM2              : 1;
3881     unsigned SSPM3              : 1;
3882     unsigned CKP                : 1;
3883     unsigned SSPEN              : 1;
3884     unsigned SSPOV              : 1;
3885     unsigned WCOL               : 1;
3886     };
3887 
3888   struct
3889     {
3890     unsigned SSPM               : 4;
3891     unsigned                    : 4;
3892     };
3893   } __SSPCON1bits_t;
3894 
3895 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3896 
3897 #define _SSPCON1_SSPM0          0x01
3898 #define _SSPCON1_SSPM1          0x02
3899 #define _SSPCON1_SSPM2          0x04
3900 #define _SSPCON1_SSPM3          0x08
3901 #define _SSPCON1_CKP            0x10
3902 #define _SSPCON1_SSPEN          0x20
3903 #define _SSPCON1_SSPOV          0x40
3904 #define _SSPCON1_WCOL           0x80
3905 
3906 //==============================================================================
3907 
3908 
3909 //==============================================================================
3910 //        SSP1CON2 Bits
3911 
3912 extern __at(0x0216) __sfr SSP1CON2;
3913 
3914 typedef struct
3915   {
3916   unsigned SEN                  : 1;
3917   unsigned RSEN                 : 1;
3918   unsigned PEN                  : 1;
3919   unsigned RCEN                 : 1;
3920   unsigned ACKEN                : 1;
3921   unsigned ACKDT                : 1;
3922   unsigned ACKSTAT              : 1;
3923   unsigned GCEN                 : 1;
3924   } __SSP1CON2bits_t;
3925 
3926 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3927 
3928 #define _SEN                    0x01
3929 #define _RSEN                   0x02
3930 #define _PEN                    0x04
3931 #define _RCEN                   0x08
3932 #define _ACKEN                  0x10
3933 #define _ACKDT                  0x20
3934 #define _ACKSTAT                0x40
3935 #define _GCEN                   0x80
3936 
3937 //==============================================================================
3938 
3939 
3940 //==============================================================================
3941 //        SSPCON2 Bits
3942 
3943 extern __at(0x0216) __sfr SSPCON2;
3944 
3945 typedef struct
3946   {
3947   unsigned SEN                  : 1;
3948   unsigned RSEN                 : 1;
3949   unsigned PEN                  : 1;
3950   unsigned RCEN                 : 1;
3951   unsigned ACKEN                : 1;
3952   unsigned ACKDT                : 1;
3953   unsigned ACKSTAT              : 1;
3954   unsigned GCEN                 : 1;
3955   } __SSPCON2bits_t;
3956 
3957 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3958 
3959 #define _SSPCON2_SEN            0x01
3960 #define _SSPCON2_RSEN           0x02
3961 #define _SSPCON2_PEN            0x04
3962 #define _SSPCON2_RCEN           0x08
3963 #define _SSPCON2_ACKEN          0x10
3964 #define _SSPCON2_ACKDT          0x20
3965 #define _SSPCON2_ACKSTAT        0x40
3966 #define _SSPCON2_GCEN           0x80
3967 
3968 //==============================================================================
3969 
3970 
3971 //==============================================================================
3972 //        SSP1CON3 Bits
3973 
3974 extern __at(0x0217) __sfr SSP1CON3;
3975 
3976 typedef struct
3977   {
3978   unsigned DHEN                 : 1;
3979   unsigned AHEN                 : 1;
3980   unsigned SBCDE                : 1;
3981   unsigned SDAHT                : 1;
3982   unsigned BOEN                 : 1;
3983   unsigned SCIE                 : 1;
3984   unsigned PCIE                 : 1;
3985   unsigned ACKTIM               : 1;
3986   } __SSP1CON3bits_t;
3987 
3988 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3989 
3990 #define _DHEN                   0x01
3991 #define _AHEN                   0x02
3992 #define _SBCDE                  0x04
3993 #define _SDAHT                  0x08
3994 #define _BOEN                   0x10
3995 #define _SCIE                   0x20
3996 #define _PCIE                   0x40
3997 #define _ACKTIM                 0x80
3998 
3999 //==============================================================================
4000 
4001 
4002 //==============================================================================
4003 //        SSPCON3 Bits
4004 
4005 extern __at(0x0217) __sfr SSPCON3;
4006 
4007 typedef struct
4008   {
4009   unsigned DHEN                 : 1;
4010   unsigned AHEN                 : 1;
4011   unsigned SBCDE                : 1;
4012   unsigned SDAHT                : 1;
4013   unsigned BOEN                 : 1;
4014   unsigned SCIE                 : 1;
4015   unsigned PCIE                 : 1;
4016   unsigned ACKTIM               : 1;
4017   } __SSPCON3bits_t;
4018 
4019 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
4020 
4021 #define _SSPCON3_DHEN           0x01
4022 #define _SSPCON3_AHEN           0x02
4023 #define _SSPCON3_SBCDE          0x04
4024 #define _SSPCON3_SDAHT          0x08
4025 #define _SSPCON3_BOEN           0x10
4026 #define _SSPCON3_SCIE           0x20
4027 #define _SSPCON3_PCIE           0x40
4028 #define _SSPCON3_ACKTIM         0x80
4029 
4030 //==============================================================================
4031 
4032 
4033 //==============================================================================
4034 //        MD3CON0 Bits
4035 
4036 extern __at(0x021B) __sfr MD3CON0;
4037 
4038 typedef union
4039   {
4040   struct
4041     {
4042     unsigned BIT                : 1;
4043     unsigned                    : 1;
4044     unsigned                    : 1;
4045     unsigned                    : 1;
4046     unsigned OPOL               : 1;
4047     unsigned OUT                : 1;
4048     unsigned                    : 1;
4049     unsigned EN                 : 1;
4050     };
4051 
4052   struct
4053     {
4054     unsigned MD3BIT             : 1;
4055     unsigned                    : 1;
4056     unsigned                    : 1;
4057     unsigned                    : 1;
4058     unsigned MD3OPOL            : 1;
4059     unsigned MD3OUT             : 1;
4060     unsigned                    : 1;
4061     unsigned MD3EN              : 1;
4062     };
4063   } __MD3CON0bits_t;
4064 
4065 extern __at(0x021B) volatile __MD3CON0bits_t MD3CON0bits;
4066 
4067 #define _MD3CON0_BIT            0x01
4068 #define _MD3CON0_MD3BIT         0x01
4069 #define _MD3CON0_OPOL           0x10
4070 #define _MD3CON0_MD3OPOL        0x10
4071 #define _MD3CON0_OUT            0x20
4072 #define _MD3CON0_MD3OUT         0x20
4073 #define _MD3CON0_EN             0x80
4074 #define _MD3CON0_MD3EN          0x80
4075 
4076 //==============================================================================
4077 
4078 
4079 //==============================================================================
4080 //        MD3CON1 Bits
4081 
4082 extern __at(0x021C) __sfr MD3CON1;
4083 
4084 typedef union
4085   {
4086   struct
4087     {
4088     unsigned CLSYNC             : 1;
4089     unsigned CLPOL              : 1;
4090     unsigned                    : 1;
4091     unsigned                    : 1;
4092     unsigned CHSYNC             : 1;
4093     unsigned CHPOL              : 1;
4094     unsigned                    : 1;
4095     unsigned                    : 1;
4096     };
4097 
4098   struct
4099     {
4100     unsigned MD3CLSYNC          : 1;
4101     unsigned MD3CLPOL           : 1;
4102     unsigned                    : 1;
4103     unsigned                    : 1;
4104     unsigned MD3CHSYNC          : 1;
4105     unsigned MD3CHPOL           : 1;
4106     unsigned                    : 1;
4107     unsigned                    : 1;
4108     };
4109   } __MD3CON1bits_t;
4110 
4111 extern __at(0x021C) volatile __MD3CON1bits_t MD3CON1bits;
4112 
4113 #define _MD3CON1_CLSYNC         0x01
4114 #define _MD3CON1_MD3CLSYNC      0x01
4115 #define _MD3CON1_CLPOL          0x02
4116 #define _MD3CON1_MD3CLPOL       0x02
4117 #define _MD3CON1_CHSYNC         0x10
4118 #define _MD3CON1_MD3CHSYNC      0x10
4119 #define _MD3CON1_CHPOL          0x20
4120 #define _MD3CON1_MD3CHPOL       0x20
4121 
4122 //==============================================================================
4123 
4124 
4125 //==============================================================================
4126 //        MD3SRC Bits
4127 
4128 extern __at(0x021D) __sfr MD3SRC;
4129 
4130 typedef union
4131   {
4132   struct
4133     {
4134     unsigned MS0                : 1;
4135     unsigned MS1                : 1;
4136     unsigned MS2                : 1;
4137     unsigned MS3                : 1;
4138     unsigned MS4                : 1;
4139     unsigned                    : 1;
4140     unsigned                    : 1;
4141     unsigned                    : 1;
4142     };
4143 
4144   struct
4145     {
4146     unsigned MD3MS0             : 1;
4147     unsigned MD3MS1             : 1;
4148     unsigned MD3MS2             : 1;
4149     unsigned MD3MS3             : 1;
4150     unsigned MD3MS4             : 1;
4151     unsigned                    : 1;
4152     unsigned                    : 1;
4153     unsigned                    : 1;
4154     };
4155 
4156   struct
4157     {
4158     unsigned MD3MS              : 5;
4159     unsigned                    : 3;
4160     };
4161 
4162   struct
4163     {
4164     unsigned MS                 : 5;
4165     unsigned                    : 3;
4166     };
4167   } __MD3SRCbits_t;
4168 
4169 extern __at(0x021D) volatile __MD3SRCbits_t MD3SRCbits;
4170 
4171 #define _MD3SRC_MS0             0x01
4172 #define _MD3SRC_MD3MS0          0x01
4173 #define _MD3SRC_MS1             0x02
4174 #define _MD3SRC_MD3MS1          0x02
4175 #define _MD3SRC_MS2             0x04
4176 #define _MD3SRC_MD3MS2          0x04
4177 #define _MD3SRC_MS3             0x08
4178 #define _MD3SRC_MD3MS3          0x08
4179 #define _MD3SRC_MS4             0x10
4180 #define _MD3SRC_MD3MS4          0x10
4181 
4182 //==============================================================================
4183 
4184 
4185 //==============================================================================
4186 //        MD3CARL Bits
4187 
4188 extern __at(0x021E) __sfr MD3CARL;
4189 
4190 typedef union
4191   {
4192   struct
4193     {
4194     unsigned CL0                : 1;
4195     unsigned CL1                : 1;
4196     unsigned CL2                : 1;
4197     unsigned CL3                : 1;
4198     unsigned CL4                : 1;
4199     unsigned                    : 1;
4200     unsigned                    : 1;
4201     unsigned                    : 1;
4202     };
4203 
4204   struct
4205     {
4206     unsigned MD3CL0             : 1;
4207     unsigned MD3CL1             : 1;
4208     unsigned MD3CL2             : 1;
4209     unsigned MD3CL3             : 1;
4210     unsigned                    : 1;
4211     unsigned                    : 1;
4212     unsigned                    : 1;
4213     unsigned                    : 1;
4214     };
4215 
4216   struct
4217     {
4218     unsigned MD3CL              : 4;
4219     unsigned                    : 4;
4220     };
4221 
4222   struct
4223     {
4224     unsigned CL                 : 5;
4225     unsigned                    : 3;
4226     };
4227   } __MD3CARLbits_t;
4228 
4229 extern __at(0x021E) volatile __MD3CARLbits_t MD3CARLbits;
4230 
4231 #define _MD3CARL_CL0            0x01
4232 #define _MD3CARL_MD3CL0         0x01
4233 #define _MD3CARL_CL1            0x02
4234 #define _MD3CARL_MD3CL1         0x02
4235 #define _MD3CARL_CL2            0x04
4236 #define _MD3CARL_MD3CL2         0x04
4237 #define _MD3CARL_CL3            0x08
4238 #define _MD3CARL_MD3CL3         0x08
4239 #define _MD3CARL_CL4            0x10
4240 
4241 //==============================================================================
4242 
4243 
4244 //==============================================================================
4245 //        MD3CARH Bits
4246 
4247 extern __at(0x021F) __sfr MD3CARH;
4248 
4249 typedef union
4250   {
4251   struct
4252     {
4253     unsigned CH0                : 1;
4254     unsigned CH1                : 1;
4255     unsigned CH2                : 1;
4256     unsigned CH3                : 1;
4257     unsigned CH4                : 1;
4258     unsigned                    : 1;
4259     unsigned                    : 1;
4260     unsigned                    : 1;
4261     };
4262 
4263   struct
4264     {
4265     unsigned MD3CH0             : 1;
4266     unsigned MD3CH1             : 1;
4267     unsigned MD3CH2             : 1;
4268     unsigned MD3CH3             : 1;
4269     unsigned                    : 1;
4270     unsigned                    : 1;
4271     unsigned                    : 1;
4272     unsigned                    : 1;
4273     };
4274 
4275   struct
4276     {
4277     unsigned MD3CH              : 4;
4278     unsigned                    : 4;
4279     };
4280 
4281   struct
4282     {
4283     unsigned CH                 : 5;
4284     unsigned                    : 3;
4285     };
4286   } __MD3CARHbits_t;
4287 
4288 extern __at(0x021F) volatile __MD3CARHbits_t MD3CARHbits;
4289 
4290 #define _MD3CARH_CH0            0x01
4291 #define _MD3CARH_MD3CH0         0x01
4292 #define _MD3CARH_CH1            0x02
4293 #define _MD3CARH_MD3CH1         0x02
4294 #define _MD3CARH_CH2            0x04
4295 #define _MD3CARH_MD3CH2         0x04
4296 #define _MD3CARH_CH3            0x08
4297 #define _MD3CARH_MD3CH3         0x08
4298 #define _MD3CARH_CH4            0x10
4299 
4300 //==============================================================================
4301 
4302 
4303 //==============================================================================
4304 //        ODCONA Bits
4305 
4306 extern __at(0x028C) __sfr ODCONA;
4307 
4308 typedef struct
4309   {
4310   unsigned ODA0                 : 1;
4311   unsigned ODA1                 : 1;
4312   unsigned ODA2                 : 1;
4313   unsigned ODA3                 : 1;
4314   unsigned ODA4                 : 1;
4315   unsigned ODA5                 : 1;
4316   unsigned ODA6                 : 1;
4317   unsigned ODA7                 : 1;
4318   } __ODCONAbits_t;
4319 
4320 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
4321 
4322 #define _ODA0                   0x01
4323 #define _ODA1                   0x02
4324 #define _ODA2                   0x04
4325 #define _ODA3                   0x08
4326 #define _ODA4                   0x10
4327 #define _ODA5                   0x20
4328 #define _ODA6                   0x40
4329 #define _ODA7                   0x80
4330 
4331 //==============================================================================
4332 
4333 
4334 //==============================================================================
4335 //        ODCONB Bits
4336 
4337 extern __at(0x028D) __sfr ODCONB;
4338 
4339 typedef union
4340   {
4341   struct
4342     {
4343     unsigned ODA0               : 1;
4344     unsigned ODA1               : 1;
4345     unsigned ODA2               : 1;
4346     unsigned ODA3               : 1;
4347     unsigned ODB4               : 1;
4348     unsigned ODB5               : 1;
4349     unsigned ODB6               : 1;
4350     unsigned ODB7               : 1;
4351     };
4352 
4353   struct
4354     {
4355     unsigned ODA                : 4;
4356     unsigned                    : 4;
4357     };
4358   } __ODCONBbits_t;
4359 
4360 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
4361 
4362 #define _ODCONB_ODA0            0x01
4363 #define _ODCONB_ODA1            0x02
4364 #define _ODCONB_ODA2            0x04
4365 #define _ODCONB_ODA3            0x08
4366 #define _ODCONB_ODB4            0x10
4367 #define _ODCONB_ODB5            0x20
4368 #define _ODCONB_ODB6            0x40
4369 #define _ODCONB_ODB7            0x80
4370 
4371 //==============================================================================
4372 
4373 
4374 //==============================================================================
4375 //        ODCONC Bits
4376 
4377 extern __at(0x028E) __sfr ODCONC;
4378 
4379 typedef struct
4380   {
4381   unsigned ODC0                 : 1;
4382   unsigned ODC1                 : 1;
4383   unsigned ODC2                 : 1;
4384   unsigned ODC3                 : 1;
4385   unsigned ODC4                 : 1;
4386   unsigned ODC5                 : 1;
4387   unsigned ODC6                 : 1;
4388   unsigned ODC7                 : 1;
4389   } __ODCONCbits_t;
4390 
4391 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
4392 
4393 #define _ODC0                   0x01
4394 #define _ODC1                   0x02
4395 #define _ODC2                   0x04
4396 #define _ODC3                   0x08
4397 #define _ODC4                   0x10
4398 #define _ODC5                   0x20
4399 #define _ODC6                   0x40
4400 #define _ODC7                   0x80
4401 
4402 //==============================================================================
4403 
4404 extern __at(0x0291) __sfr CCPR1;
4405 extern __at(0x0291) __sfr CCPR1L;
4406 extern __at(0x0292) __sfr CCPR1H;
4407 
4408 //==============================================================================
4409 //        CCP1CON Bits
4410 
4411 extern __at(0x0293) __sfr CCP1CON;
4412 
4413 typedef union
4414   {
4415   struct
4416     {
4417     unsigned MODE0              : 1;
4418     unsigned MODE1              : 1;
4419     unsigned MODE2              : 1;
4420     unsigned MODE3              : 1;
4421     unsigned FMT                : 1;
4422     unsigned OUT                : 1;
4423     unsigned                    : 1;
4424     unsigned EN                 : 1;
4425     };
4426 
4427   struct
4428     {
4429     unsigned CCP1MODE0          : 1;
4430     unsigned CCP1MODE1          : 1;
4431     unsigned CCP1MODE2          : 1;
4432     unsigned CCP1MODE3          : 1;
4433     unsigned CCP1FMT            : 1;
4434     unsigned CCP1OUT            : 1;
4435     unsigned                    : 1;
4436     unsigned CCP1EN             : 1;
4437     };
4438 
4439   struct
4440     {
4441     unsigned CCP1MODE           : 4;
4442     unsigned                    : 4;
4443     };
4444 
4445   struct
4446     {
4447     unsigned MODE               : 4;
4448     unsigned                    : 4;
4449     };
4450   } __CCP1CONbits_t;
4451 
4452 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
4453 
4454 #define _MODE0                  0x01
4455 #define _CCP1MODE0              0x01
4456 #define _MODE1                  0x02
4457 #define _CCP1MODE1              0x02
4458 #define _MODE2                  0x04
4459 #define _CCP1MODE2              0x04
4460 #define _MODE3                  0x08
4461 #define _CCP1MODE3              0x08
4462 #define _FMT                    0x10
4463 #define _CCP1FMT                0x10
4464 #define _OUT                    0x20
4465 #define _CCP1OUT                0x20
4466 #define _EN                     0x80
4467 #define _CCP1EN                 0x80
4468 
4469 //==============================================================================
4470 
4471 
4472 //==============================================================================
4473 //        CCP1CAP Bits
4474 
4475 extern __at(0x0294) __sfr CCP1CAP;
4476 
4477 typedef union
4478   {
4479   struct
4480     {
4481     unsigned CTS0               : 1;
4482     unsigned CTS1               : 1;
4483     unsigned CTS2               : 1;
4484     unsigned CTS3               : 1;
4485     unsigned                    : 1;
4486     unsigned                    : 1;
4487     unsigned                    : 1;
4488     unsigned                    : 1;
4489     };
4490 
4491   struct
4492     {
4493     unsigned CCP1CTS0           : 1;
4494     unsigned CCP1CTS1           : 1;
4495     unsigned CCP1CTS2           : 1;
4496     unsigned CCP1CTS3           : 1;
4497     unsigned                    : 1;
4498     unsigned                    : 1;
4499     unsigned                    : 1;
4500     unsigned                    : 1;
4501     };
4502 
4503   struct
4504     {
4505     unsigned CCP1CTS            : 4;
4506     unsigned                    : 4;
4507     };
4508 
4509   struct
4510     {
4511     unsigned CTS                : 4;
4512     unsigned                    : 4;
4513     };
4514   } __CCP1CAPbits_t;
4515 
4516 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
4517 
4518 #define _CTS0                   0x01
4519 #define _CCP1CTS0               0x01
4520 #define _CTS1                   0x02
4521 #define _CCP1CTS1               0x02
4522 #define _CTS2                   0x04
4523 #define _CCP1CTS2               0x04
4524 #define _CTS3                   0x08
4525 #define _CCP1CTS3               0x08
4526 
4527 //==============================================================================
4528 
4529 extern __at(0x0295) __sfr CCPR2;
4530 extern __at(0x0295) __sfr CCPR2L;
4531 extern __at(0x0296) __sfr CCPR2H;
4532 
4533 //==============================================================================
4534 //        CCP2CON Bits
4535 
4536 extern __at(0x0297) __sfr CCP2CON;
4537 
4538 typedef union
4539   {
4540   struct
4541     {
4542     unsigned MODE0              : 1;
4543     unsigned MODE1              : 1;
4544     unsigned MODE2              : 1;
4545     unsigned MODE3              : 1;
4546     unsigned FMT                : 1;
4547     unsigned OUT                : 1;
4548     unsigned                    : 1;
4549     unsigned EN                 : 1;
4550     };
4551 
4552   struct
4553     {
4554     unsigned CCP2MODE0          : 1;
4555     unsigned CCP2MODE1          : 1;
4556     unsigned CCP2MODE2          : 1;
4557     unsigned CCP2MODE3          : 1;
4558     unsigned CCP2FMT            : 1;
4559     unsigned CCP2OUT            : 1;
4560     unsigned                    : 1;
4561     unsigned CCP2EN             : 1;
4562     };
4563 
4564   struct
4565     {
4566     unsigned CCP2MODE           : 4;
4567     unsigned                    : 4;
4568     };
4569 
4570   struct
4571     {
4572     unsigned MODE               : 4;
4573     unsigned                    : 4;
4574     };
4575   } __CCP2CONbits_t;
4576 
4577 extern __at(0x0297) volatile __CCP2CONbits_t CCP2CONbits;
4578 
4579 #define _CCP2CON_MODE0          0x01
4580 #define _CCP2CON_CCP2MODE0      0x01
4581 #define _CCP2CON_MODE1          0x02
4582 #define _CCP2CON_CCP2MODE1      0x02
4583 #define _CCP2CON_MODE2          0x04
4584 #define _CCP2CON_CCP2MODE2      0x04
4585 #define _CCP2CON_MODE3          0x08
4586 #define _CCP2CON_CCP2MODE3      0x08
4587 #define _CCP2CON_FMT            0x10
4588 #define _CCP2CON_CCP2FMT        0x10
4589 #define _CCP2CON_OUT            0x20
4590 #define _CCP2CON_CCP2OUT        0x20
4591 #define _CCP2CON_EN             0x80
4592 #define _CCP2CON_CCP2EN         0x80
4593 
4594 //==============================================================================
4595 
4596 
4597 //==============================================================================
4598 //        CCP2CAP Bits
4599 
4600 extern __at(0x0298) __sfr CCP2CAP;
4601 
4602 typedef union
4603   {
4604   struct
4605     {
4606     unsigned CTS0               : 1;
4607     unsigned CTS1               : 1;
4608     unsigned CTS2               : 1;
4609     unsigned CTS3               : 1;
4610     unsigned                    : 1;
4611     unsigned                    : 1;
4612     unsigned                    : 1;
4613     unsigned                    : 1;
4614     };
4615 
4616   struct
4617     {
4618     unsigned CCP2CTS0           : 1;
4619     unsigned CCP2CTS1           : 1;
4620     unsigned CCP2CTS2           : 1;
4621     unsigned CCP2CTS3           : 1;
4622     unsigned                    : 1;
4623     unsigned                    : 1;
4624     unsigned                    : 1;
4625     unsigned                    : 1;
4626     };
4627 
4628   struct
4629     {
4630     unsigned CCP2CTS            : 4;
4631     unsigned                    : 4;
4632     };
4633 
4634   struct
4635     {
4636     unsigned CTS                : 4;
4637     unsigned                    : 4;
4638     };
4639   } __CCP2CAPbits_t;
4640 
4641 extern __at(0x0298) volatile __CCP2CAPbits_t CCP2CAPbits;
4642 
4643 #define _CCP2CAP_CTS0           0x01
4644 #define _CCP2CAP_CCP2CTS0       0x01
4645 #define _CCP2CAP_CTS1           0x02
4646 #define _CCP2CAP_CCP2CTS1       0x02
4647 #define _CCP2CAP_CTS2           0x04
4648 #define _CCP2CAP_CCP2CTS2       0x04
4649 #define _CCP2CAP_CTS3           0x08
4650 #define _CCP2CAP_CCP2CTS3       0x08
4651 
4652 //==============================================================================
4653 
4654 extern __at(0x0299) __sfr CCPR7;
4655 extern __at(0x0299) __sfr CCPR7L;
4656 extern __at(0x029A) __sfr CCPR7H;
4657 
4658 //==============================================================================
4659 //        CCP7CON Bits
4660 
4661 extern __at(0x029B) __sfr CCP7CON;
4662 
4663 typedef union
4664   {
4665   struct
4666     {
4667     unsigned MODE0              : 1;
4668     unsigned MODE1              : 1;
4669     unsigned MODE2              : 1;
4670     unsigned MODE3              : 1;
4671     unsigned FMT                : 1;
4672     unsigned OUT                : 1;
4673     unsigned                    : 1;
4674     unsigned EN                 : 1;
4675     };
4676 
4677   struct
4678     {
4679     unsigned CCP7MODE0          : 1;
4680     unsigned CCP7MODE1          : 1;
4681     unsigned CCP7MODE2          : 1;
4682     unsigned CCP7MODE3          : 1;
4683     unsigned CCP7FMT            : 1;
4684     unsigned CCP7OUT            : 1;
4685     unsigned                    : 1;
4686     unsigned CCP7EN             : 1;
4687     };
4688 
4689   struct
4690     {
4691     unsigned CCP7MODE           : 4;
4692     unsigned                    : 4;
4693     };
4694 
4695   struct
4696     {
4697     unsigned MODE               : 4;
4698     unsigned                    : 4;
4699     };
4700   } __CCP7CONbits_t;
4701 
4702 extern __at(0x029B) volatile __CCP7CONbits_t CCP7CONbits;
4703 
4704 #define _CCP7CON_MODE0          0x01
4705 #define _CCP7CON_CCP7MODE0      0x01
4706 #define _CCP7CON_MODE1          0x02
4707 #define _CCP7CON_CCP7MODE1      0x02
4708 #define _CCP7CON_MODE2          0x04
4709 #define _CCP7CON_CCP7MODE2      0x04
4710 #define _CCP7CON_MODE3          0x08
4711 #define _CCP7CON_CCP7MODE3      0x08
4712 #define _CCP7CON_FMT            0x10
4713 #define _CCP7CON_CCP7FMT        0x10
4714 #define _CCP7CON_OUT            0x20
4715 #define _CCP7CON_CCP7OUT        0x20
4716 #define _CCP7CON_EN             0x80
4717 #define _CCP7CON_CCP7EN         0x80
4718 
4719 //==============================================================================
4720 
4721 
4722 //==============================================================================
4723 //        CCP7CAP Bits
4724 
4725 extern __at(0x029C) __sfr CCP7CAP;
4726 
4727 typedef union
4728   {
4729   struct
4730     {
4731     unsigned CTS0               : 1;
4732     unsigned CTS1               : 1;
4733     unsigned CTS2               : 1;
4734     unsigned CTS3               : 1;
4735     unsigned                    : 1;
4736     unsigned                    : 1;
4737     unsigned                    : 1;
4738     unsigned                    : 1;
4739     };
4740 
4741   struct
4742     {
4743     unsigned CCP7CTS0           : 1;
4744     unsigned CCP7CTS1           : 1;
4745     unsigned CCP7CTS2           : 1;
4746     unsigned CCP7CTS3           : 1;
4747     unsigned                    : 1;
4748     unsigned                    : 1;
4749     unsigned                    : 1;
4750     unsigned                    : 1;
4751     };
4752 
4753   struct
4754     {
4755     unsigned CCP7CTS            : 4;
4756     unsigned                    : 4;
4757     };
4758 
4759   struct
4760     {
4761     unsigned CTS                : 4;
4762     unsigned                    : 4;
4763     };
4764   } __CCP7CAPbits_t;
4765 
4766 extern __at(0x029C) volatile __CCP7CAPbits_t CCP7CAPbits;
4767 
4768 #define _CCP7CAP_CTS0           0x01
4769 #define _CCP7CAP_CCP7CTS0       0x01
4770 #define _CCP7CAP_CTS1           0x02
4771 #define _CCP7CAP_CCP7CTS1       0x02
4772 #define _CCP7CAP_CTS2           0x04
4773 #define _CCP7CAP_CCP7CTS2       0x04
4774 #define _CCP7CAP_CTS3           0x08
4775 #define _CCP7CAP_CCP7CTS3       0x08
4776 
4777 //==============================================================================
4778 
4779 
4780 //==============================================================================
4781 //        CCPTMRS1 Bits
4782 
4783 extern __at(0x029E) __sfr CCPTMRS1;
4784 
4785 typedef union
4786   {
4787   struct
4788     {
4789     unsigned C1TSEL0            : 1;
4790     unsigned C1TSEL1            : 1;
4791     unsigned C2TSEL0            : 1;
4792     unsigned C2TSEL1            : 1;
4793     unsigned C7TSEL0            : 1;
4794     unsigned C7TSEL1            : 1;
4795     unsigned                    : 1;
4796     unsigned                    : 1;
4797     };
4798 
4799   struct
4800     {
4801     unsigned C1TSEL             : 2;
4802     unsigned                    : 6;
4803     };
4804 
4805   struct
4806     {
4807     unsigned                    : 2;
4808     unsigned C2TSEL             : 2;
4809     unsigned                    : 4;
4810     };
4811 
4812   struct
4813     {
4814     unsigned                    : 4;
4815     unsigned C7TSEL             : 2;
4816     unsigned                    : 2;
4817     };
4818   } __CCPTMRS1bits_t;
4819 
4820 extern __at(0x029E) volatile __CCPTMRS1bits_t CCPTMRS1bits;
4821 
4822 #define _C1TSEL0                0x01
4823 #define _C1TSEL1                0x02
4824 #define _C2TSEL0                0x04
4825 #define _C2TSEL1                0x08
4826 #define _C7TSEL0                0x10
4827 #define _C7TSEL1                0x20
4828 
4829 //==============================================================================
4830 
4831 
4832 //==============================================================================
4833 //        CCPTMRS2 Bits
4834 
4835 extern __at(0x029F) __sfr CCPTMRS2;
4836 
4837 typedef union
4838   {
4839   struct
4840     {
4841     unsigned P3TSEL0            : 1;
4842     unsigned P3TSEL1            : 1;
4843     unsigned P4TSEL0            : 1;
4844     unsigned P4TSEL1            : 1;
4845     unsigned P9TSEL0            : 1;
4846     unsigned P9TSEL1            : 1;
4847     unsigned                    : 1;
4848     unsigned                    : 1;
4849     };
4850 
4851   struct
4852     {
4853     unsigned P3TSEL             : 2;
4854     unsigned                    : 6;
4855     };
4856 
4857   struct
4858     {
4859     unsigned                    : 2;
4860     unsigned P4TSEL             : 2;
4861     unsigned                    : 4;
4862     };
4863 
4864   struct
4865     {
4866     unsigned                    : 4;
4867     unsigned P9TSEL             : 2;
4868     unsigned                    : 2;
4869     };
4870   } __CCPTMRS2bits_t;
4871 
4872 extern __at(0x029F) volatile __CCPTMRS2bits_t CCPTMRS2bits;
4873 
4874 #define _P3TSEL0                0x01
4875 #define _P3TSEL1                0x02
4876 #define _P4TSEL0                0x04
4877 #define _P4TSEL1                0x08
4878 #define _P9TSEL0                0x10
4879 #define _P9TSEL1                0x20
4880 
4881 //==============================================================================
4882 
4883 
4884 //==============================================================================
4885 //        SLRCONA Bits
4886 
4887 extern __at(0x030C) __sfr SLRCONA;
4888 
4889 typedef struct
4890   {
4891   unsigned SLRA0                : 1;
4892   unsigned SLRA1                : 1;
4893   unsigned SLRA2                : 1;
4894   unsigned SLRA3                : 1;
4895   unsigned SLRA4                : 1;
4896   unsigned SLRA5                : 1;
4897   unsigned SLRA6                : 1;
4898   unsigned SLRA7                : 1;
4899   } __SLRCONAbits_t;
4900 
4901 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
4902 
4903 #define _SLRA0                  0x01
4904 #define _SLRA1                  0x02
4905 #define _SLRA2                  0x04
4906 #define _SLRA3                  0x08
4907 #define _SLRA4                  0x10
4908 #define _SLRA5                  0x20
4909 #define _SLRA6                  0x40
4910 #define _SLRA7                  0x80
4911 
4912 //==============================================================================
4913 
4914 
4915 //==============================================================================
4916 //        SLRCONB Bits
4917 
4918 extern __at(0x030D) __sfr SLRCONB;
4919 
4920 typedef struct
4921   {
4922   unsigned SLRB0                : 1;
4923   unsigned SLRB1                : 1;
4924   unsigned SLRB2                : 1;
4925   unsigned SLRB3                : 1;
4926   unsigned SLRB4                : 1;
4927   unsigned SLRB5                : 1;
4928   unsigned SLRB6                : 1;
4929   unsigned SLRB7                : 1;
4930   } __SLRCONBbits_t;
4931 
4932 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
4933 
4934 #define _SLRB0                  0x01
4935 #define _SLRB1                  0x02
4936 #define _SLRB2                  0x04
4937 #define _SLRB3                  0x08
4938 #define _SLRB4                  0x10
4939 #define _SLRB5                  0x20
4940 #define _SLRB6                  0x40
4941 #define _SLRB7                  0x80
4942 
4943 //==============================================================================
4944 
4945 
4946 //==============================================================================
4947 //        SLRCONC Bits
4948 
4949 extern __at(0x030E) __sfr SLRCONC;
4950 
4951 typedef struct
4952   {
4953   unsigned SLRC0                : 1;
4954   unsigned SLRC1                : 1;
4955   unsigned SLRC2                : 1;
4956   unsigned SLRC3                : 1;
4957   unsigned SLRC4                : 1;
4958   unsigned SLRC5                : 1;
4959   unsigned SLRC6                : 1;
4960   unsigned SLRC7                : 1;
4961   } __SLRCONCbits_t;
4962 
4963 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
4964 
4965 #define _SLRC0                  0x01
4966 #define _SLRC1                  0x02
4967 #define _SLRC2                  0x04
4968 #define _SLRC3                  0x08
4969 #define _SLRC4                  0x10
4970 #define _SLRC5                  0x20
4971 #define _SLRC6                  0x40
4972 #define _SLRC7                  0x80
4973 
4974 //==============================================================================
4975 
4976 
4977 //==============================================================================
4978 //        MD1CON0 Bits
4979 
4980 extern __at(0x0315) __sfr MD1CON0;
4981 
4982 typedef union
4983   {
4984   struct
4985     {
4986     unsigned BIT                : 1;
4987     unsigned                    : 1;
4988     unsigned                    : 1;
4989     unsigned                    : 1;
4990     unsigned OPOL               : 1;
4991     unsigned OUT                : 1;
4992     unsigned                    : 1;
4993     unsigned EN                 : 1;
4994     };
4995 
4996   struct
4997     {
4998     unsigned MD1BIT             : 1;
4999     unsigned                    : 1;
5000     unsigned                    : 1;
5001     unsigned                    : 1;
5002     unsigned MD1OPOL            : 1;
5003     unsigned MD1OUT             : 1;
5004     unsigned                    : 1;
5005     unsigned MD1EN              : 1;
5006     };
5007   } __MD1CON0bits_t;
5008 
5009 extern __at(0x0315) volatile __MD1CON0bits_t MD1CON0bits;
5010 
5011 #define _MD1CON0_BIT            0x01
5012 #define _MD1CON0_MD1BIT         0x01
5013 #define _MD1CON0_OPOL           0x10
5014 #define _MD1CON0_MD1OPOL        0x10
5015 #define _MD1CON0_OUT            0x20
5016 #define _MD1CON0_MD1OUT         0x20
5017 #define _MD1CON0_EN             0x80
5018 #define _MD1CON0_MD1EN          0x80
5019 
5020 //==============================================================================
5021 
5022 
5023 //==============================================================================
5024 //        MD1CON1 Bits
5025 
5026 extern __at(0x0316) __sfr MD1CON1;
5027 
5028 typedef union
5029   {
5030   struct
5031     {
5032     unsigned CLSYNC             : 1;
5033     unsigned CLPOL              : 1;
5034     unsigned                    : 1;
5035     unsigned                    : 1;
5036     unsigned CHSYNC             : 1;
5037     unsigned CHPOL              : 1;
5038     unsigned                    : 1;
5039     unsigned                    : 1;
5040     };
5041 
5042   struct
5043     {
5044     unsigned MD1CLSYNC          : 1;
5045     unsigned MD1CLPOL           : 1;
5046     unsigned                    : 1;
5047     unsigned                    : 1;
5048     unsigned MD1CHSYNC          : 1;
5049     unsigned MD1CHPOL           : 1;
5050     unsigned                    : 1;
5051     unsigned                    : 1;
5052     };
5053   } __MD1CON1bits_t;
5054 
5055 extern __at(0x0316) volatile __MD1CON1bits_t MD1CON1bits;
5056 
5057 #define _CLSYNC                 0x01
5058 #define _MD1CLSYNC              0x01
5059 #define _CLPOL                  0x02
5060 #define _MD1CLPOL               0x02
5061 #define _CHSYNC                 0x10
5062 #define _MD1CHSYNC              0x10
5063 #define _CHPOL                  0x20
5064 #define _MD1CHPOL               0x20
5065 
5066 //==============================================================================
5067 
5068 
5069 //==============================================================================
5070 //        MD1SRC Bits
5071 
5072 extern __at(0x0317) __sfr MD1SRC;
5073 
5074 typedef union
5075   {
5076   struct
5077     {
5078     unsigned MS0                : 1;
5079     unsigned MS1                : 1;
5080     unsigned MS2                : 1;
5081     unsigned MS3                : 1;
5082     unsigned MS4                : 1;
5083     unsigned                    : 1;
5084     unsigned                    : 1;
5085     unsigned                    : 1;
5086     };
5087 
5088   struct
5089     {
5090     unsigned MD1MS0             : 1;
5091     unsigned MD1MS1             : 1;
5092     unsigned MD1MS2             : 1;
5093     unsigned MD1MS3             : 1;
5094     unsigned MD1MS4             : 1;
5095     unsigned                    : 1;
5096     unsigned                    : 1;
5097     unsigned                    : 1;
5098     };
5099 
5100   struct
5101     {
5102     unsigned MD1MS              : 5;
5103     unsigned                    : 3;
5104     };
5105 
5106   struct
5107     {
5108     unsigned MS                 : 5;
5109     unsigned                    : 3;
5110     };
5111   } __MD1SRCbits_t;
5112 
5113 extern __at(0x0317) volatile __MD1SRCbits_t MD1SRCbits;
5114 
5115 #define _MS0                    0x01
5116 #define _MD1MS0                 0x01
5117 #define _MS1                    0x02
5118 #define _MD1MS1                 0x02
5119 #define _MS2                    0x04
5120 #define _MD1MS2                 0x04
5121 #define _MS3                    0x08
5122 #define _MD1MS3                 0x08
5123 #define _MS4                    0x10
5124 #define _MD1MS4                 0x10
5125 
5126 //==============================================================================
5127 
5128 
5129 //==============================================================================
5130 //        MD1CARL Bits
5131 
5132 extern __at(0x0318) __sfr MD1CARL;
5133 
5134 typedef union
5135   {
5136   struct
5137     {
5138     unsigned CL0                : 1;
5139     unsigned CL1                : 1;
5140     unsigned CL2                : 1;
5141     unsigned CL3                : 1;
5142     unsigned CL4                : 1;
5143     unsigned                    : 1;
5144     unsigned                    : 1;
5145     unsigned                    : 1;
5146     };
5147 
5148   struct
5149     {
5150     unsigned MD1CL0             : 1;
5151     unsigned MD1CL1             : 1;
5152     unsigned MD1CL2             : 1;
5153     unsigned MD1CL3             : 1;
5154     unsigned                    : 1;
5155     unsigned                    : 1;
5156     unsigned                    : 1;
5157     unsigned                    : 1;
5158     };
5159 
5160   struct
5161     {
5162     unsigned MD1CL              : 4;
5163     unsigned                    : 4;
5164     };
5165 
5166   struct
5167     {
5168     unsigned CL                 : 5;
5169     unsigned                    : 3;
5170     };
5171   } __MD1CARLbits_t;
5172 
5173 extern __at(0x0318) volatile __MD1CARLbits_t MD1CARLbits;
5174 
5175 #define _CL0                    0x01
5176 #define _MD1CL0                 0x01
5177 #define _CL1                    0x02
5178 #define _MD1CL1                 0x02
5179 #define _CL2                    0x04
5180 #define _MD1CL2                 0x04
5181 #define _CL3                    0x08
5182 #define _MD1CL3                 0x08
5183 #define _CL4                    0x10
5184 
5185 //==============================================================================
5186 
5187 
5188 //==============================================================================
5189 //        MD1CARH Bits
5190 
5191 extern __at(0x0319) __sfr MD1CARH;
5192 
5193 typedef union
5194   {
5195   struct
5196     {
5197     unsigned CH0                : 1;
5198     unsigned CH1                : 1;
5199     unsigned CH2                : 1;
5200     unsigned CH3                : 1;
5201     unsigned CH4                : 1;
5202     unsigned                    : 1;
5203     unsigned                    : 1;
5204     unsigned                    : 1;
5205     };
5206 
5207   struct
5208     {
5209     unsigned MD1CH0             : 1;
5210     unsigned MD1CH1             : 1;
5211     unsigned MD1CH2             : 1;
5212     unsigned MD1CH3             : 1;
5213     unsigned                    : 1;
5214     unsigned                    : 1;
5215     unsigned                    : 1;
5216     unsigned                    : 1;
5217     };
5218 
5219   struct
5220     {
5221     unsigned MD1CH              : 4;
5222     unsigned                    : 4;
5223     };
5224 
5225   struct
5226     {
5227     unsigned CH                 : 5;
5228     unsigned                    : 3;
5229     };
5230   } __MD1CARHbits_t;
5231 
5232 extern __at(0x0319) volatile __MD1CARHbits_t MD1CARHbits;
5233 
5234 #define _CH0                    0x01
5235 #define _MD1CH0                 0x01
5236 #define _CH1                    0x02
5237 #define _MD1CH1                 0x02
5238 #define _CH2                    0x04
5239 #define _MD1CH2                 0x04
5240 #define _CH3                    0x08
5241 #define _MD1CH3                 0x08
5242 #define _CH4                    0x10
5243 
5244 //==============================================================================
5245 
5246 
5247 //==============================================================================
5248 //        MD2CON0 Bits
5249 
5250 extern __at(0x031B) __sfr MD2CON0;
5251 
5252 typedef union
5253   {
5254   struct
5255     {
5256     unsigned BIT                : 1;
5257     unsigned                    : 1;
5258     unsigned                    : 1;
5259     unsigned                    : 1;
5260     unsigned OPOL               : 1;
5261     unsigned OUT                : 1;
5262     unsigned                    : 1;
5263     unsigned EN                 : 1;
5264     };
5265 
5266   struct
5267     {
5268     unsigned MD2BIT             : 1;
5269     unsigned                    : 1;
5270     unsigned                    : 1;
5271     unsigned                    : 1;
5272     unsigned MD2OPOL            : 1;
5273     unsigned MD2OUT             : 1;
5274     unsigned                    : 1;
5275     unsigned MD2EN              : 1;
5276     };
5277   } __MD2CON0bits_t;
5278 
5279 extern __at(0x031B) volatile __MD2CON0bits_t MD2CON0bits;
5280 
5281 #define _MD2CON0_BIT            0x01
5282 #define _MD2CON0_MD2BIT         0x01
5283 #define _MD2CON0_OPOL           0x10
5284 #define _MD2CON0_MD2OPOL        0x10
5285 #define _MD2CON0_OUT            0x20
5286 #define _MD2CON0_MD2OUT         0x20
5287 #define _MD2CON0_EN             0x80
5288 #define _MD2CON0_MD2EN          0x80
5289 
5290 //==============================================================================
5291 
5292 
5293 //==============================================================================
5294 //        MD2CON1 Bits
5295 
5296 extern __at(0x031C) __sfr MD2CON1;
5297 
5298 typedef union
5299   {
5300   struct
5301     {
5302     unsigned CLSYNC             : 1;
5303     unsigned CLPOL              : 1;
5304     unsigned                    : 1;
5305     unsigned                    : 1;
5306     unsigned CHSYNC             : 1;
5307     unsigned CHPOL              : 1;
5308     unsigned                    : 1;
5309     unsigned                    : 1;
5310     };
5311 
5312   struct
5313     {
5314     unsigned MD2CLSYNC          : 1;
5315     unsigned MD2CLPOL           : 1;
5316     unsigned                    : 1;
5317     unsigned                    : 1;
5318     unsigned MD2CHSYNC          : 1;
5319     unsigned MD2CHPOL           : 1;
5320     unsigned                    : 1;
5321     unsigned                    : 1;
5322     };
5323   } __MD2CON1bits_t;
5324 
5325 extern __at(0x031C) volatile __MD2CON1bits_t MD2CON1bits;
5326 
5327 #define _MD2CON1_CLSYNC         0x01
5328 #define _MD2CON1_MD2CLSYNC      0x01
5329 #define _MD2CON1_CLPOL          0x02
5330 #define _MD2CON1_MD2CLPOL       0x02
5331 #define _MD2CON1_CHSYNC         0x10
5332 #define _MD2CON1_MD2CHSYNC      0x10
5333 #define _MD2CON1_CHPOL          0x20
5334 #define _MD2CON1_MD2CHPOL       0x20
5335 
5336 //==============================================================================
5337 
5338 
5339 //==============================================================================
5340 //        MD2SRC Bits
5341 
5342 extern __at(0x031D) __sfr MD2SRC;
5343 
5344 typedef union
5345   {
5346   struct
5347     {
5348     unsigned MS0                : 1;
5349     unsigned MS1                : 1;
5350     unsigned MS2                : 1;
5351     unsigned MS3                : 1;
5352     unsigned MS4                : 1;
5353     unsigned                    : 1;
5354     unsigned                    : 1;
5355     unsigned                    : 1;
5356     };
5357 
5358   struct
5359     {
5360     unsigned MD2MS0             : 1;
5361     unsigned MD2MS1             : 1;
5362     unsigned MD2MS2             : 1;
5363     unsigned MD2MS3             : 1;
5364     unsigned MD2MS4             : 1;
5365     unsigned                    : 1;
5366     unsigned                    : 1;
5367     unsigned                    : 1;
5368     };
5369 
5370   struct
5371     {
5372     unsigned MD2MS              : 5;
5373     unsigned                    : 3;
5374     };
5375 
5376   struct
5377     {
5378     unsigned MS                 : 5;
5379     unsigned                    : 3;
5380     };
5381   } __MD2SRCbits_t;
5382 
5383 extern __at(0x031D) volatile __MD2SRCbits_t MD2SRCbits;
5384 
5385 #define _MD2SRC_MS0             0x01
5386 #define _MD2SRC_MD2MS0          0x01
5387 #define _MD2SRC_MS1             0x02
5388 #define _MD2SRC_MD2MS1          0x02
5389 #define _MD2SRC_MS2             0x04
5390 #define _MD2SRC_MD2MS2          0x04
5391 #define _MD2SRC_MS3             0x08
5392 #define _MD2SRC_MD2MS3          0x08
5393 #define _MD2SRC_MS4             0x10
5394 #define _MD2SRC_MD2MS4          0x10
5395 
5396 //==============================================================================
5397 
5398 
5399 //==============================================================================
5400 //        MD2CARL Bits
5401 
5402 extern __at(0x031E) __sfr MD2CARL;
5403 
5404 typedef union
5405   {
5406   struct
5407     {
5408     unsigned CL0                : 1;
5409     unsigned CL1                : 1;
5410     unsigned CL2                : 1;
5411     unsigned CL3                : 1;
5412     unsigned CL4                : 1;
5413     unsigned                    : 1;
5414     unsigned                    : 1;
5415     unsigned                    : 1;
5416     };
5417 
5418   struct
5419     {
5420     unsigned MD2CL0             : 1;
5421     unsigned MD2CL1             : 1;
5422     unsigned MD2CL2             : 1;
5423     unsigned MD2CL3             : 1;
5424     unsigned                    : 1;
5425     unsigned                    : 1;
5426     unsigned                    : 1;
5427     unsigned                    : 1;
5428     };
5429 
5430   struct
5431     {
5432     unsigned CL                 : 5;
5433     unsigned                    : 3;
5434     };
5435 
5436   struct
5437     {
5438     unsigned MD2CL              : 4;
5439     unsigned                    : 4;
5440     };
5441   } __MD2CARLbits_t;
5442 
5443 extern __at(0x031E) volatile __MD2CARLbits_t MD2CARLbits;
5444 
5445 #define _MD2CARL_CL0            0x01
5446 #define _MD2CARL_MD2CL0         0x01
5447 #define _MD2CARL_CL1            0x02
5448 #define _MD2CARL_MD2CL1         0x02
5449 #define _MD2CARL_CL2            0x04
5450 #define _MD2CARL_MD2CL2         0x04
5451 #define _MD2CARL_CL3            0x08
5452 #define _MD2CARL_MD2CL3         0x08
5453 #define _MD2CARL_CL4            0x10
5454 
5455 //==============================================================================
5456 
5457 
5458 //==============================================================================
5459 //        MD2CARH Bits
5460 
5461 extern __at(0x031F) __sfr MD2CARH;
5462 
5463 typedef union
5464   {
5465   struct
5466     {
5467     unsigned CH0                : 1;
5468     unsigned CH1                : 1;
5469     unsigned CH2                : 1;
5470     unsigned CH3                : 1;
5471     unsigned CH4                : 1;
5472     unsigned                    : 1;
5473     unsigned                    : 1;
5474     unsigned                    : 1;
5475     };
5476 
5477   struct
5478     {
5479     unsigned MD2CH0             : 1;
5480     unsigned MD2CH1             : 1;
5481     unsigned MD2CH2             : 1;
5482     unsigned MD2CH3             : 1;
5483     unsigned                    : 1;
5484     unsigned                    : 1;
5485     unsigned                    : 1;
5486     unsigned                    : 1;
5487     };
5488 
5489   struct
5490     {
5491     unsigned CH                 : 5;
5492     unsigned                    : 3;
5493     };
5494 
5495   struct
5496     {
5497     unsigned MD2CH              : 4;
5498     unsigned                    : 4;
5499     };
5500   } __MD2CARHbits_t;
5501 
5502 extern __at(0x031F) volatile __MD2CARHbits_t MD2CARHbits;
5503 
5504 #define _MD2CARH_CH0            0x01
5505 #define _MD2CARH_MD2CH0         0x01
5506 #define _MD2CARH_CH1            0x02
5507 #define _MD2CARH_MD2CH1         0x02
5508 #define _MD2CARH_CH2            0x04
5509 #define _MD2CARH_MD2CH2         0x04
5510 #define _MD2CARH_CH3            0x08
5511 #define _MD2CARH_MD2CH3         0x08
5512 #define _MD2CARH_CH4            0x10
5513 
5514 //==============================================================================
5515 
5516 
5517 //==============================================================================
5518 //        INLVLA Bits
5519 
5520 extern __at(0x038C) __sfr INLVLA;
5521 
5522 typedef union
5523   {
5524   struct
5525     {
5526     unsigned INLVLA0            : 1;
5527     unsigned INLVLA1            : 1;
5528     unsigned INLVLA2            : 1;
5529     unsigned INLVLA3            : 1;
5530     unsigned INLVLA4            : 1;
5531     unsigned INLVLA5            : 1;
5532     unsigned INLVA6             : 1;
5533     unsigned INLVA7             : 1;
5534     };
5535 
5536   struct
5537     {
5538     unsigned INLVLA             : 6;
5539     unsigned                    : 2;
5540     };
5541   } __INLVLAbits_t;
5542 
5543 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
5544 
5545 #define _INLVLA0                0x01
5546 #define _INLVLA1                0x02
5547 #define _INLVLA2                0x04
5548 #define _INLVLA3                0x08
5549 #define _INLVLA4                0x10
5550 #define _INLVLA5                0x20
5551 #define _INLVA6                 0x40
5552 #define _INLVA7                 0x80
5553 
5554 //==============================================================================
5555 
5556 
5557 //==============================================================================
5558 //        INLVLB Bits
5559 
5560 extern __at(0x038D) __sfr INLVLB;
5561 
5562 typedef union
5563   {
5564   struct
5565     {
5566     unsigned INLVB0             : 1;
5567     unsigned INLVB1             : 1;
5568     unsigned INLVB2             : 1;
5569     unsigned INLVB3             : 1;
5570     unsigned INLVLB4            : 1;
5571     unsigned INLVLB5            : 1;
5572     unsigned INLVLB6            : 1;
5573     unsigned INLVLB7            : 1;
5574     };
5575 
5576   struct
5577     {
5578     unsigned INLVB              : 4;
5579     unsigned                    : 4;
5580     };
5581   } __INLVLBbits_t;
5582 
5583 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
5584 
5585 #define _INLVB0                 0x01
5586 #define _INLVB1                 0x02
5587 #define _INLVB2                 0x04
5588 #define _INLVB3                 0x08
5589 #define _INLVLB4                0x10
5590 #define _INLVLB5                0x20
5591 #define _INLVLB6                0x40
5592 #define _INLVLB7                0x80
5593 
5594 //==============================================================================
5595 
5596 
5597 //==============================================================================
5598 //        INLVLC Bits
5599 
5600 extern __at(0x038E) __sfr INLVLC;
5601 
5602 typedef struct
5603   {
5604   unsigned INLVLC0              : 1;
5605   unsigned INLVLC1              : 1;
5606   unsigned INLVLC2              : 1;
5607   unsigned INLVLC3              : 1;
5608   unsigned INLVLC4              : 1;
5609   unsigned INLVLC5              : 1;
5610   unsigned INLVLC6              : 1;
5611   unsigned INLVLC7              : 1;
5612   } __INLVLCbits_t;
5613 
5614 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
5615 
5616 #define _INLVLC0                0x01
5617 #define _INLVLC1                0x02
5618 #define _INLVLC2                0x04
5619 #define _INLVLC3                0x08
5620 #define _INLVLC4                0x10
5621 #define _INLVLC5                0x20
5622 #define _INLVLC6                0x40
5623 #define _INLVLC7                0x80
5624 
5625 //==============================================================================
5626 
5627 
5628 //==============================================================================
5629 //        INLVE Bits
5630 
5631 extern __at(0x0390) __sfr INLVE;
5632 
5633 typedef struct
5634   {
5635   unsigned                      : 1;
5636   unsigned                      : 1;
5637   unsigned                      : 1;
5638   unsigned INLVE3               : 1;
5639   unsigned                      : 1;
5640   unsigned                      : 1;
5641   unsigned                      : 1;
5642   unsigned                      : 1;
5643   } __INLVEbits_t;
5644 
5645 extern __at(0x0390) volatile __INLVEbits_t INLVEbits;
5646 
5647 #define _INLVE3                 0x08
5648 
5649 //==============================================================================
5650 
5651 
5652 //==============================================================================
5653 //        IOCAP Bits
5654 
5655 extern __at(0x0391) __sfr IOCAP;
5656 
5657 typedef struct
5658   {
5659   unsigned IOCAP0               : 1;
5660   unsigned IOCAP1               : 1;
5661   unsigned IOCAP2               : 1;
5662   unsigned IOCAP3               : 1;
5663   unsigned IOCAP4               : 1;
5664   unsigned IOCAP5               : 1;
5665   unsigned IOCAP6               : 1;
5666   unsigned IOCAP7               : 1;
5667   } __IOCAPbits_t;
5668 
5669 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
5670 
5671 #define _IOCAP0                 0x01
5672 #define _IOCAP1                 0x02
5673 #define _IOCAP2                 0x04
5674 #define _IOCAP3                 0x08
5675 #define _IOCAP4                 0x10
5676 #define _IOCAP5                 0x20
5677 #define _IOCAP6                 0x40
5678 #define _IOCAP7                 0x80
5679 
5680 //==============================================================================
5681 
5682 
5683 //==============================================================================
5684 //        IOCAN Bits
5685 
5686 extern __at(0x0392) __sfr IOCAN;
5687 
5688 typedef struct
5689   {
5690   unsigned IOCAN0               : 1;
5691   unsigned IOCAN1               : 1;
5692   unsigned IOCAN2               : 1;
5693   unsigned IOCAN3               : 1;
5694   unsigned IOCAN4               : 1;
5695   unsigned IOCAN5               : 1;
5696   unsigned IOCAN6               : 1;
5697   unsigned IOCAN7               : 1;
5698   } __IOCANbits_t;
5699 
5700 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
5701 
5702 #define _IOCAN0                 0x01
5703 #define _IOCAN1                 0x02
5704 #define _IOCAN2                 0x04
5705 #define _IOCAN3                 0x08
5706 #define _IOCAN4                 0x10
5707 #define _IOCAN5                 0x20
5708 #define _IOCAN6                 0x40
5709 #define _IOCAN7                 0x80
5710 
5711 //==============================================================================
5712 
5713 
5714 //==============================================================================
5715 //        IOCAF Bits
5716 
5717 extern __at(0x0393) __sfr IOCAF;
5718 
5719 typedef struct
5720   {
5721   unsigned IOCAF0               : 1;
5722   unsigned IOCAF1               : 1;
5723   unsigned IOCAF2               : 1;
5724   unsigned IOCAF3               : 1;
5725   unsigned IOCAF4               : 1;
5726   unsigned IOCAF5               : 1;
5727   unsigned IOCAF6               : 1;
5728   unsigned IOCAF7               : 1;
5729   } __IOCAFbits_t;
5730 
5731 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
5732 
5733 #define _IOCAF0                 0x01
5734 #define _IOCAF1                 0x02
5735 #define _IOCAF2                 0x04
5736 #define _IOCAF3                 0x08
5737 #define _IOCAF4                 0x10
5738 #define _IOCAF5                 0x20
5739 #define _IOCAF6                 0x40
5740 #define _IOCAF7                 0x80
5741 
5742 //==============================================================================
5743 
5744 
5745 //==============================================================================
5746 //        IOCBP Bits
5747 
5748 extern __at(0x0394) __sfr IOCBP;
5749 
5750 typedef struct
5751   {
5752   unsigned IOCBP0               : 1;
5753   unsigned IOCBP1               : 1;
5754   unsigned IOCBP2               : 1;
5755   unsigned IOCBP3               : 1;
5756   unsigned IOCBP4               : 1;
5757   unsigned IOCBP5               : 1;
5758   unsigned IOCBP6               : 1;
5759   unsigned IOCBP7               : 1;
5760   } __IOCBPbits_t;
5761 
5762 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
5763 
5764 #define _IOCBP0                 0x01
5765 #define _IOCBP1                 0x02
5766 #define _IOCBP2                 0x04
5767 #define _IOCBP3                 0x08
5768 #define _IOCBP4                 0x10
5769 #define _IOCBP5                 0x20
5770 #define _IOCBP6                 0x40
5771 #define _IOCBP7                 0x80
5772 
5773 //==============================================================================
5774 
5775 
5776 //==============================================================================
5777 //        IOCBN Bits
5778 
5779 extern __at(0x0395) __sfr IOCBN;
5780 
5781 typedef struct
5782   {
5783   unsigned IOCBN0               : 1;
5784   unsigned IOCBN1               : 1;
5785   unsigned IOCBN2               : 1;
5786   unsigned IOCBN3               : 1;
5787   unsigned IOCBN4               : 1;
5788   unsigned IOCBN5               : 1;
5789   unsigned IOCBN6               : 1;
5790   unsigned IOCBN7               : 1;
5791   } __IOCBNbits_t;
5792 
5793 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
5794 
5795 #define _IOCBN0                 0x01
5796 #define _IOCBN1                 0x02
5797 #define _IOCBN2                 0x04
5798 #define _IOCBN3                 0x08
5799 #define _IOCBN4                 0x10
5800 #define _IOCBN5                 0x20
5801 #define _IOCBN6                 0x40
5802 #define _IOCBN7                 0x80
5803 
5804 //==============================================================================
5805 
5806 
5807 //==============================================================================
5808 //        IOCBF Bits
5809 
5810 extern __at(0x0396) __sfr IOCBF;
5811 
5812 typedef struct
5813   {
5814   unsigned IOCBF0               : 1;
5815   unsigned IOCBF1               : 1;
5816   unsigned IOCBF2               : 1;
5817   unsigned IOCBF3               : 1;
5818   unsigned IOCBF4               : 1;
5819   unsigned IOCBF5               : 1;
5820   unsigned IOCBF6               : 1;
5821   unsigned IOCBF7               : 1;
5822   } __IOCBFbits_t;
5823 
5824 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
5825 
5826 #define _IOCBF0                 0x01
5827 #define _IOCBF1                 0x02
5828 #define _IOCBF2                 0x04
5829 #define _IOCBF3                 0x08
5830 #define _IOCBF4                 0x10
5831 #define _IOCBF5                 0x20
5832 #define _IOCBF6                 0x40
5833 #define _IOCBF7                 0x80
5834 
5835 //==============================================================================
5836 
5837 
5838 //==============================================================================
5839 //        IOCCP Bits
5840 
5841 extern __at(0x0397) __sfr IOCCP;
5842 
5843 typedef struct
5844   {
5845   unsigned IOCCP0               : 1;
5846   unsigned IOCCP1               : 1;
5847   unsigned IOCCP2               : 1;
5848   unsigned IOCCP3               : 1;
5849   unsigned IOCCP4               : 1;
5850   unsigned IOCCP5               : 1;
5851   unsigned IOCCP6               : 1;
5852   unsigned IOCCP7               : 1;
5853   } __IOCCPbits_t;
5854 
5855 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
5856 
5857 #define _IOCCP0                 0x01
5858 #define _IOCCP1                 0x02
5859 #define _IOCCP2                 0x04
5860 #define _IOCCP3                 0x08
5861 #define _IOCCP4                 0x10
5862 #define _IOCCP5                 0x20
5863 #define _IOCCP6                 0x40
5864 #define _IOCCP7                 0x80
5865 
5866 //==============================================================================
5867 
5868 
5869 //==============================================================================
5870 //        IOCCN Bits
5871 
5872 extern __at(0x0398) __sfr IOCCN;
5873 
5874 typedef struct
5875   {
5876   unsigned IOCCN0               : 1;
5877   unsigned IOCCN1               : 1;
5878   unsigned IOCCN2               : 1;
5879   unsigned IOCCN3               : 1;
5880   unsigned IOCCN4               : 1;
5881   unsigned IOCCN5               : 1;
5882   unsigned IOCCN6               : 1;
5883   unsigned IOCCN7               : 1;
5884   } __IOCCNbits_t;
5885 
5886 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
5887 
5888 #define _IOCCN0                 0x01
5889 #define _IOCCN1                 0x02
5890 #define _IOCCN2                 0x04
5891 #define _IOCCN3                 0x08
5892 #define _IOCCN4                 0x10
5893 #define _IOCCN5                 0x20
5894 #define _IOCCN6                 0x40
5895 #define _IOCCN7                 0x80
5896 
5897 //==============================================================================
5898 
5899 
5900 //==============================================================================
5901 //        IOCCF Bits
5902 
5903 extern __at(0x0399) __sfr IOCCF;
5904 
5905 typedef struct
5906   {
5907   unsigned IOCCF0               : 1;
5908   unsigned IOCCF1               : 1;
5909   unsigned IOCCF2               : 1;
5910   unsigned IOCCF3               : 1;
5911   unsigned IOCCF4               : 1;
5912   unsigned IOCCF5               : 1;
5913   unsigned IOCCF6               : 1;
5914   unsigned IOCCF7               : 1;
5915   } __IOCCFbits_t;
5916 
5917 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
5918 
5919 #define _IOCCF0                 0x01
5920 #define _IOCCF1                 0x02
5921 #define _IOCCF2                 0x04
5922 #define _IOCCF3                 0x08
5923 #define _IOCCF4                 0x10
5924 #define _IOCCF5                 0x20
5925 #define _IOCCF6                 0x40
5926 #define _IOCCF7                 0x80
5927 
5928 //==============================================================================
5929 
5930 
5931 //==============================================================================
5932 //        IOCEP Bits
5933 
5934 extern __at(0x039D) __sfr IOCEP;
5935 
5936 typedef struct
5937   {
5938   unsigned                      : 1;
5939   unsigned                      : 1;
5940   unsigned                      : 1;
5941   unsigned IOCEP3               : 1;
5942   unsigned                      : 1;
5943   unsigned                      : 1;
5944   unsigned                      : 1;
5945   unsigned                      : 1;
5946   } __IOCEPbits_t;
5947 
5948 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits;
5949 
5950 #define _IOCEP3                 0x08
5951 
5952 //==============================================================================
5953 
5954 
5955 //==============================================================================
5956 //        IOCEN Bits
5957 
5958 extern __at(0x039E) __sfr IOCEN;
5959 
5960 typedef struct
5961   {
5962   unsigned                      : 1;
5963   unsigned                      : 1;
5964   unsigned                      : 1;
5965   unsigned IOCEN3               : 1;
5966   unsigned                      : 1;
5967   unsigned                      : 1;
5968   unsigned                      : 1;
5969   unsigned                      : 1;
5970   } __IOCENbits_t;
5971 
5972 extern __at(0x039E) volatile __IOCENbits_t IOCENbits;
5973 
5974 #define _IOCEN3                 0x08
5975 
5976 //==============================================================================
5977 
5978 
5979 //==============================================================================
5980 //        IOCEF Bits
5981 
5982 extern __at(0x039F) __sfr IOCEF;
5983 
5984 typedef struct
5985   {
5986   unsigned                      : 1;
5987   unsigned                      : 1;
5988   unsigned                      : 1;
5989   unsigned IOCEF3               : 1;
5990   unsigned                      : 1;
5991   unsigned                      : 1;
5992   unsigned                      : 1;
5993   unsigned                      : 1;
5994   } __IOCEFbits_t;
5995 
5996 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits;
5997 
5998 #define _IOCEF3                 0x08
5999 
6000 //==============================================================================
6001 
6002 
6003 //==============================================================================
6004 //        HIDRVB Bits
6005 
6006 extern __at(0x040D) __sfr HIDRVB;
6007 
6008 typedef union
6009   {
6010   struct
6011     {
6012     unsigned HIDB0              : 1;
6013     unsigned HIDB1              : 1;
6014     unsigned                    : 1;
6015     unsigned                    : 1;
6016     unsigned                    : 1;
6017     unsigned                    : 1;
6018     unsigned                    : 1;
6019     unsigned                    : 1;
6020     };
6021 
6022   struct
6023     {
6024     unsigned HIDB               : 2;
6025     unsigned                    : 6;
6026     };
6027   } __HIDRVBbits_t;
6028 
6029 extern __at(0x040D) volatile __HIDRVBbits_t HIDRVBbits;
6030 
6031 #define _HIDB0                  0x01
6032 #define _HIDB1                  0x02
6033 
6034 //==============================================================================
6035 
6036 extern __at(0x040F) __sfr TMR5;
6037 extern __at(0x040F) __sfr TMR5L;
6038 extern __at(0x0410) __sfr TMR5H;
6039 
6040 //==============================================================================
6041 //        T5CON Bits
6042 
6043 extern __at(0x0411) __sfr T5CON;
6044 
6045 typedef union
6046   {
6047   struct
6048     {
6049     unsigned ON                 : 1;
6050     unsigned                    : 1;
6051     unsigned NOT_SYNC           : 1;
6052     unsigned OSCEN              : 1;
6053     unsigned CKPS0              : 1;
6054     unsigned CKPS1              : 1;
6055     unsigned CS0                : 1;
6056     unsigned CS1                : 1;
6057     };
6058 
6059   struct
6060     {
6061     unsigned TMRON              : 1;
6062     unsigned                    : 1;
6063     unsigned SYNC               : 1;
6064     unsigned SOSCEN             : 1;
6065     unsigned T5CKPS0            : 1;
6066     unsigned T5CKPS1            : 1;
6067     unsigned T5CS0              : 1;
6068     unsigned T5CS1              : 1;
6069     };
6070 
6071   struct
6072     {
6073     unsigned TMR5ON             : 1;
6074     unsigned                    : 1;
6075     unsigned NOT_T5SYNC         : 1;
6076     unsigned T5OSCEN            : 1;
6077     unsigned                    : 1;
6078     unsigned                    : 1;
6079     unsigned TMR5CS0            : 1;
6080     unsigned TMR5CS1            : 1;
6081     };
6082 
6083   struct
6084     {
6085     unsigned T5ON               : 1;
6086     unsigned                    : 1;
6087     unsigned                    : 1;
6088     unsigned                    : 1;
6089     unsigned                    : 1;
6090     unsigned                    : 1;
6091     unsigned                    : 1;
6092     unsigned                    : 1;
6093     };
6094 
6095   struct
6096     {
6097     unsigned                    : 4;
6098     unsigned T5CKPS             : 2;
6099     unsigned                    : 2;
6100     };
6101 
6102   struct
6103     {
6104     unsigned                    : 4;
6105     unsigned CKPS               : 2;
6106     unsigned                    : 2;
6107     };
6108 
6109   struct
6110     {
6111     unsigned                    : 6;
6112     unsigned T5CS               : 2;
6113     };
6114 
6115   struct
6116     {
6117     unsigned                    : 6;
6118     unsigned TMR5CS             : 2;
6119     };
6120 
6121   struct
6122     {
6123     unsigned                    : 6;
6124     unsigned CS                 : 2;
6125     };
6126   } __T5CONbits_t;
6127 
6128 extern __at(0x0411) volatile __T5CONbits_t T5CONbits;
6129 
6130 #define _T5CON_ON               0x01
6131 #define _T5CON_TMRON            0x01
6132 #define _T5CON_TMR5ON           0x01
6133 #define _T5CON_T5ON             0x01
6134 #define _T5CON_NOT_SYNC         0x04
6135 #define _T5CON_SYNC             0x04
6136 #define _T5CON_NOT_T5SYNC       0x04
6137 #define _T5CON_OSCEN            0x08
6138 #define _T5CON_SOSCEN           0x08
6139 #define _T5CON_T5OSCEN          0x08
6140 #define _T5CON_CKPS0            0x10
6141 #define _T5CON_T5CKPS0          0x10
6142 #define _T5CON_CKPS1            0x20
6143 #define _T5CON_T5CKPS1          0x20
6144 #define _T5CON_CS0              0x40
6145 #define _T5CON_T5CS0            0x40
6146 #define _T5CON_TMR5CS0          0x40
6147 #define _T5CON_CS1              0x80
6148 #define _T5CON_T5CS1            0x80
6149 #define _T5CON_TMR5CS1          0x80
6150 
6151 //==============================================================================
6152 
6153 
6154 //==============================================================================
6155 //        T5GCON Bits
6156 
6157 extern __at(0x0412) __sfr T5GCON;
6158 
6159 typedef union
6160   {
6161   struct
6162     {
6163     unsigned GSS0               : 1;
6164     unsigned GSS1               : 1;
6165     unsigned GVAL               : 1;
6166     unsigned GGO_NOT_DONE       : 1;
6167     unsigned GSPM               : 1;
6168     unsigned GTM                : 1;
6169     unsigned GPOL               : 1;
6170     unsigned GE                 : 1;
6171     };
6172 
6173   struct
6174     {
6175     unsigned T5GSS0             : 1;
6176     unsigned T5GSS1             : 1;
6177     unsigned T5GVAL             : 1;
6178     unsigned T5GGO_NOT_DONE     : 1;
6179     unsigned T5GSPM             : 1;
6180     unsigned T5GTM              : 1;
6181     unsigned T5GPOL             : 1;
6182     unsigned T5GE               : 1;
6183     };
6184 
6185   struct
6186     {
6187     unsigned                    : 1;
6188     unsigned                    : 1;
6189     unsigned                    : 1;
6190     unsigned                    : 1;
6191     unsigned                    : 1;
6192     unsigned                    : 1;
6193     unsigned                    : 1;
6194     unsigned TMR5GE             : 1;
6195     };
6196 
6197   struct
6198     {
6199     unsigned T5GSS              : 2;
6200     unsigned                    : 6;
6201     };
6202 
6203   struct
6204     {
6205     unsigned GSS                : 2;
6206     unsigned                    : 6;
6207     };
6208   } __T5GCONbits_t;
6209 
6210 extern __at(0x0412) volatile __T5GCONbits_t T5GCONbits;
6211 
6212 #define _T5GCON_GSS0            0x01
6213 #define _T5GCON_T5GSS0          0x01
6214 #define _T5GCON_GSS1            0x02
6215 #define _T5GCON_T5GSS1          0x02
6216 #define _T5GCON_GVAL            0x04
6217 #define _T5GCON_T5GVAL          0x04
6218 #define _T5GCON_GGO_NOT_DONE    0x08
6219 #define _T5GCON_T5GGO_NOT_DONE  0x08
6220 #define _T5GCON_GSPM            0x10
6221 #define _T5GCON_T5GSPM          0x10
6222 #define _T5GCON_GTM             0x20
6223 #define _T5GCON_T5GTM           0x20
6224 #define _T5GCON_GPOL            0x40
6225 #define _T5GCON_T5GPOL          0x40
6226 #define _T5GCON_GE              0x80
6227 #define _T5GCON_T5GE            0x80
6228 #define _T5GCON_TMR5GE          0x80
6229 
6230 //==============================================================================
6231 
6232 extern __at(0x0413) __sfr T4TMR;
6233 extern __at(0x0413) __sfr TMR4;
6234 extern __at(0x0414) __sfr PR4;
6235 extern __at(0x0414) __sfr T4PR;
6236 
6237 //==============================================================================
6238 //        T4CON Bits
6239 
6240 extern __at(0x0415) __sfr T4CON;
6241 
6242 typedef union
6243   {
6244   struct
6245     {
6246     unsigned OUTPS0             : 1;
6247     unsigned OUTPS1             : 1;
6248     unsigned OUTPS2             : 1;
6249     unsigned OUTPS3             : 1;
6250     unsigned CKPS0              : 1;
6251     unsigned CKPS1              : 1;
6252     unsigned CKPS2              : 1;
6253     unsigned ON                 : 1;
6254     };
6255 
6256   struct
6257     {
6258     unsigned T4OUTPS0           : 1;
6259     unsigned T4OUTPS1           : 1;
6260     unsigned T4OUTPS2           : 1;
6261     unsigned T4OUTPS3           : 1;
6262     unsigned T4CKPS0            : 1;
6263     unsigned T4CKPS1            : 1;
6264     unsigned T4CKPS2            : 1;
6265     unsigned T4ON               : 1;
6266     };
6267 
6268   struct
6269     {
6270     unsigned                    : 1;
6271     unsigned                    : 1;
6272     unsigned                    : 1;
6273     unsigned                    : 1;
6274     unsigned                    : 1;
6275     unsigned                    : 1;
6276     unsigned                    : 1;
6277     unsigned TMR4ON             : 1;
6278     };
6279 
6280   struct
6281     {
6282     unsigned T4OUTPS            : 4;
6283     unsigned                    : 4;
6284     };
6285 
6286   struct
6287     {
6288     unsigned OUTPS              : 4;
6289     unsigned                    : 4;
6290     };
6291 
6292   struct
6293     {
6294     unsigned                    : 4;
6295     unsigned T4CKPS             : 3;
6296     unsigned                    : 1;
6297     };
6298 
6299   struct
6300     {
6301     unsigned                    : 4;
6302     unsigned CKPS               : 3;
6303     unsigned                    : 1;
6304     };
6305   } __T4CONbits_t;
6306 
6307 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
6308 
6309 #define _T4CON_OUTPS0           0x01
6310 #define _T4CON_T4OUTPS0         0x01
6311 #define _T4CON_OUTPS1           0x02
6312 #define _T4CON_T4OUTPS1         0x02
6313 #define _T4CON_OUTPS2           0x04
6314 #define _T4CON_T4OUTPS2         0x04
6315 #define _T4CON_OUTPS3           0x08
6316 #define _T4CON_T4OUTPS3         0x08
6317 #define _T4CON_CKPS0            0x10
6318 #define _T4CON_T4CKPS0          0x10
6319 #define _T4CON_CKPS1            0x20
6320 #define _T4CON_T4CKPS1          0x20
6321 #define _T4CON_CKPS2            0x40
6322 #define _T4CON_T4CKPS2          0x40
6323 #define _T4CON_ON               0x80
6324 #define _T4CON_T4ON             0x80
6325 #define _T4CON_TMR4ON           0x80
6326 
6327 //==============================================================================
6328 
6329 
6330 //==============================================================================
6331 //        T4HLT Bits
6332 
6333 extern __at(0x0416) __sfr T4HLT;
6334 
6335 typedef union
6336   {
6337   struct
6338     {
6339     unsigned MODE0              : 1;
6340     unsigned MODE1              : 1;
6341     unsigned MODE2              : 1;
6342     unsigned MODE3              : 1;
6343     unsigned MODE4              : 1;
6344     unsigned CKSYNC             : 1;
6345     unsigned CKPOL              : 1;
6346     unsigned PSYNC              : 1;
6347     };
6348 
6349   struct
6350     {
6351     unsigned T4MODE0            : 1;
6352     unsigned T4MODE1            : 1;
6353     unsigned T4MODE2            : 1;
6354     unsigned T4MODE3            : 1;
6355     unsigned T4MODE4            : 1;
6356     unsigned T4CKSYNC           : 1;
6357     unsigned T4CKPOL            : 1;
6358     unsigned T4PSYNC            : 1;
6359     };
6360 
6361   struct
6362     {
6363     unsigned T4MODE             : 5;
6364     unsigned                    : 3;
6365     };
6366 
6367   struct
6368     {
6369     unsigned MODE               : 5;
6370     unsigned                    : 3;
6371     };
6372   } __T4HLTbits_t;
6373 
6374 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
6375 
6376 #define _T4HLT_MODE0            0x01
6377 #define _T4HLT_T4MODE0          0x01
6378 #define _T4HLT_MODE1            0x02
6379 #define _T4HLT_T4MODE1          0x02
6380 #define _T4HLT_MODE2            0x04
6381 #define _T4HLT_T4MODE2          0x04
6382 #define _T4HLT_MODE3            0x08
6383 #define _T4HLT_T4MODE3          0x08
6384 #define _T4HLT_MODE4            0x10
6385 #define _T4HLT_T4MODE4          0x10
6386 #define _T4HLT_CKSYNC           0x20
6387 #define _T4HLT_T4CKSYNC         0x20
6388 #define _T4HLT_CKPOL            0x40
6389 #define _T4HLT_T4CKPOL          0x40
6390 #define _T4HLT_PSYNC            0x80
6391 #define _T4HLT_T4PSYNC          0x80
6392 
6393 //==============================================================================
6394 
6395 
6396 //==============================================================================
6397 //        T4CLKCON Bits
6398 
6399 extern __at(0x0417) __sfr T4CLKCON;
6400 
6401 typedef union
6402   {
6403   struct
6404     {
6405     unsigned CS0                : 1;
6406     unsigned CS1                : 1;
6407     unsigned CS2                : 1;
6408     unsigned CS3                : 1;
6409     unsigned                    : 1;
6410     unsigned                    : 1;
6411     unsigned                    : 1;
6412     unsigned                    : 1;
6413     };
6414 
6415   struct
6416     {
6417     unsigned T4CS0              : 1;
6418     unsigned T4CS1              : 1;
6419     unsigned T4CS2              : 1;
6420     unsigned T4CS3              : 1;
6421     unsigned                    : 1;
6422     unsigned                    : 1;
6423     unsigned                    : 1;
6424     unsigned                    : 1;
6425     };
6426 
6427   struct
6428     {
6429     unsigned T4CS               : 4;
6430     unsigned                    : 4;
6431     };
6432 
6433   struct
6434     {
6435     unsigned CS                 : 4;
6436     unsigned                    : 4;
6437     };
6438   } __T4CLKCONbits_t;
6439 
6440 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
6441 
6442 #define _T4CLKCON_CS0           0x01
6443 #define _T4CLKCON_T4CS0         0x01
6444 #define _T4CLKCON_CS1           0x02
6445 #define _T4CLKCON_T4CS1         0x02
6446 #define _T4CLKCON_CS2           0x04
6447 #define _T4CLKCON_T4CS2         0x04
6448 #define _T4CLKCON_CS3           0x08
6449 #define _T4CLKCON_T4CS3         0x08
6450 
6451 //==============================================================================
6452 
6453 
6454 //==============================================================================
6455 //        T4RST Bits
6456 
6457 extern __at(0x0418) __sfr T4RST;
6458 
6459 typedef union
6460   {
6461   struct
6462     {
6463     unsigned RSEL0              : 1;
6464     unsigned RSEL1              : 1;
6465     unsigned RSEL2              : 1;
6466     unsigned RSEL3              : 1;
6467     unsigned RSEL4              : 1;
6468     unsigned                    : 1;
6469     unsigned                    : 1;
6470     unsigned                    : 1;
6471     };
6472 
6473   struct
6474     {
6475     unsigned T4RSEL0            : 1;
6476     unsigned T4RSEL1            : 1;
6477     unsigned T4RSEL2            : 1;
6478     unsigned T4RSEL3            : 1;
6479     unsigned T4RSEL4            : 1;
6480     unsigned                    : 1;
6481     unsigned                    : 1;
6482     unsigned                    : 1;
6483     };
6484 
6485   struct
6486     {
6487     unsigned RSEL               : 5;
6488     unsigned                    : 3;
6489     };
6490 
6491   struct
6492     {
6493     unsigned T4RSEL             : 5;
6494     unsigned                    : 3;
6495     };
6496   } __T4RSTbits_t;
6497 
6498 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
6499 
6500 #define _T4RST_RSEL0            0x01
6501 #define _T4RST_T4RSEL0          0x01
6502 #define _T4RST_RSEL1            0x02
6503 #define _T4RST_T4RSEL1          0x02
6504 #define _T4RST_RSEL2            0x04
6505 #define _T4RST_T4RSEL2          0x04
6506 #define _T4RST_RSEL3            0x08
6507 #define _T4RST_T4RSEL3          0x08
6508 #define _T4RST_RSEL4            0x10
6509 #define _T4RST_T4RSEL4          0x10
6510 
6511 //==============================================================================
6512 
6513 extern __at(0x041A) __sfr T6TMR;
6514 extern __at(0x041A) __sfr TMR6;
6515 extern __at(0x041B) __sfr PR6;
6516 extern __at(0x041B) __sfr T6PR;
6517 
6518 //==============================================================================
6519 //        T6CON Bits
6520 
6521 extern __at(0x041C) __sfr T6CON;
6522 
6523 typedef union
6524   {
6525   struct
6526     {
6527     unsigned OUTPS0             : 1;
6528     unsigned OUTPS1             : 1;
6529     unsigned OUTPS2             : 1;
6530     unsigned OUTPS3             : 1;
6531     unsigned CKPS0              : 1;
6532     unsigned CKPS1              : 1;
6533     unsigned CKPS2              : 1;
6534     unsigned ON                 : 1;
6535     };
6536 
6537   struct
6538     {
6539     unsigned T6OUTPS0           : 1;
6540     unsigned T6OUTPS1           : 1;
6541     unsigned T6OUTPS2           : 1;
6542     unsigned T6OUTPS3           : 1;
6543     unsigned T6CKPS0            : 1;
6544     unsigned T6CKPS1            : 1;
6545     unsigned T6CKPS2            : 1;
6546     unsigned T6ON               : 1;
6547     };
6548 
6549   struct
6550     {
6551     unsigned                    : 1;
6552     unsigned                    : 1;
6553     unsigned                    : 1;
6554     unsigned                    : 1;
6555     unsigned                    : 1;
6556     unsigned                    : 1;
6557     unsigned                    : 1;
6558     unsigned TMR6ON             : 1;
6559     };
6560 
6561   struct
6562     {
6563     unsigned T6OUTPS            : 4;
6564     unsigned                    : 4;
6565     };
6566 
6567   struct
6568     {
6569     unsigned OUTPS              : 4;
6570     unsigned                    : 4;
6571     };
6572 
6573   struct
6574     {
6575     unsigned                    : 4;
6576     unsigned CKPS               : 3;
6577     unsigned                    : 1;
6578     };
6579 
6580   struct
6581     {
6582     unsigned                    : 4;
6583     unsigned T6CKPS             : 3;
6584     unsigned                    : 1;
6585     };
6586   } __T6CONbits_t;
6587 
6588 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
6589 
6590 #define _T6CON_OUTPS0           0x01
6591 #define _T6CON_T6OUTPS0         0x01
6592 #define _T6CON_OUTPS1           0x02
6593 #define _T6CON_T6OUTPS1         0x02
6594 #define _T6CON_OUTPS2           0x04
6595 #define _T6CON_T6OUTPS2         0x04
6596 #define _T6CON_OUTPS3           0x08
6597 #define _T6CON_T6OUTPS3         0x08
6598 #define _T6CON_CKPS0            0x10
6599 #define _T6CON_T6CKPS0          0x10
6600 #define _T6CON_CKPS1            0x20
6601 #define _T6CON_T6CKPS1          0x20
6602 #define _T6CON_CKPS2            0x40
6603 #define _T6CON_T6CKPS2          0x40
6604 #define _T6CON_ON               0x80
6605 #define _T6CON_T6ON             0x80
6606 #define _T6CON_TMR6ON           0x80
6607 
6608 //==============================================================================
6609 
6610 
6611 //==============================================================================
6612 //        T6HLT Bits
6613 
6614 extern __at(0x041D) __sfr T6HLT;
6615 
6616 typedef union
6617   {
6618   struct
6619     {
6620     unsigned MODE0              : 1;
6621     unsigned MODE1              : 1;
6622     unsigned MODE2              : 1;
6623     unsigned MODE3              : 1;
6624     unsigned MODE4              : 1;
6625     unsigned CKSYNC             : 1;
6626     unsigned CKPOL              : 1;
6627     unsigned PSYNC              : 1;
6628     };
6629 
6630   struct
6631     {
6632     unsigned T6MODE0            : 1;
6633     unsigned T6MODE1            : 1;
6634     unsigned T6MODE2            : 1;
6635     unsigned T6MODE3            : 1;
6636     unsigned T6MODE4            : 1;
6637     unsigned T6CKSYNC           : 1;
6638     unsigned T6CKPOL            : 1;
6639     unsigned T6PSYNC            : 1;
6640     };
6641 
6642   struct
6643     {
6644     unsigned MODE               : 5;
6645     unsigned                    : 3;
6646     };
6647 
6648   struct
6649     {
6650     unsigned T6MODE             : 5;
6651     unsigned                    : 3;
6652     };
6653   } __T6HLTbits_t;
6654 
6655 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
6656 
6657 #define _T6HLT_MODE0            0x01
6658 #define _T6HLT_T6MODE0          0x01
6659 #define _T6HLT_MODE1            0x02
6660 #define _T6HLT_T6MODE1          0x02
6661 #define _T6HLT_MODE2            0x04
6662 #define _T6HLT_T6MODE2          0x04
6663 #define _T6HLT_MODE3            0x08
6664 #define _T6HLT_T6MODE3          0x08
6665 #define _T6HLT_MODE4            0x10
6666 #define _T6HLT_T6MODE4          0x10
6667 #define _T6HLT_CKSYNC           0x20
6668 #define _T6HLT_T6CKSYNC         0x20
6669 #define _T6HLT_CKPOL            0x40
6670 #define _T6HLT_T6CKPOL          0x40
6671 #define _T6HLT_PSYNC            0x80
6672 #define _T6HLT_T6PSYNC          0x80
6673 
6674 //==============================================================================
6675 
6676 
6677 //==============================================================================
6678 //        T6CLKCON Bits
6679 
6680 extern __at(0x041E) __sfr T6CLKCON;
6681 
6682 typedef union
6683   {
6684   struct
6685     {
6686     unsigned CS0                : 1;
6687     unsigned CS1                : 1;
6688     unsigned CS2                : 1;
6689     unsigned CS3                : 1;
6690     unsigned                    : 1;
6691     unsigned                    : 1;
6692     unsigned                    : 1;
6693     unsigned                    : 1;
6694     };
6695 
6696   struct
6697     {
6698     unsigned T6CS0              : 1;
6699     unsigned T6CS1              : 1;
6700     unsigned T6CS2              : 1;
6701     unsigned T6CS3              : 1;
6702     unsigned                    : 1;
6703     unsigned                    : 1;
6704     unsigned                    : 1;
6705     unsigned                    : 1;
6706     };
6707 
6708   struct
6709     {
6710     unsigned CS                 : 4;
6711     unsigned                    : 4;
6712     };
6713 
6714   struct
6715     {
6716     unsigned T6CS               : 4;
6717     unsigned                    : 4;
6718     };
6719   } __T6CLKCONbits_t;
6720 
6721 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
6722 
6723 #define _T6CLKCON_CS0           0x01
6724 #define _T6CLKCON_T6CS0         0x01
6725 #define _T6CLKCON_CS1           0x02
6726 #define _T6CLKCON_T6CS1         0x02
6727 #define _T6CLKCON_CS2           0x04
6728 #define _T6CLKCON_T6CS2         0x04
6729 #define _T6CLKCON_CS3           0x08
6730 #define _T6CLKCON_T6CS3         0x08
6731 
6732 //==============================================================================
6733 
6734 
6735 //==============================================================================
6736 //        T6RST Bits
6737 
6738 extern __at(0x041F) __sfr T6RST;
6739 
6740 typedef union
6741   {
6742   struct
6743     {
6744     unsigned RSEL0              : 1;
6745     unsigned RSEL1              : 1;
6746     unsigned RSEL2              : 1;
6747     unsigned RSEL3              : 1;
6748     unsigned RSEL4              : 1;
6749     unsigned                    : 1;
6750     unsigned                    : 1;
6751     unsigned                    : 1;
6752     };
6753 
6754   struct
6755     {
6756     unsigned T6RSEL0            : 1;
6757     unsigned T6RSEL1            : 1;
6758     unsigned T6RSEL2            : 1;
6759     unsigned T6RSEL3            : 1;
6760     unsigned T6RSEL4            : 1;
6761     unsigned                    : 1;
6762     unsigned                    : 1;
6763     unsigned                    : 1;
6764     };
6765 
6766   struct
6767     {
6768     unsigned T6RSEL             : 5;
6769     unsigned                    : 3;
6770     };
6771 
6772   struct
6773     {
6774     unsigned RSEL               : 5;
6775     unsigned                    : 3;
6776     };
6777   } __T6RSTbits_t;
6778 
6779 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
6780 
6781 #define _T6RST_RSEL0            0x01
6782 #define _T6RST_T6RSEL0          0x01
6783 #define _T6RST_RSEL1            0x02
6784 #define _T6RST_T6RSEL1          0x02
6785 #define _T6RST_RSEL2            0x04
6786 #define _T6RST_T6RSEL2          0x04
6787 #define _T6RST_RSEL3            0x08
6788 #define _T6RST_T6RSEL3          0x08
6789 #define _T6RST_RSEL4            0x10
6790 #define _T6RST_T6RSEL4          0x10
6791 
6792 //==============================================================================
6793 
6794 extern __at(0x048E) __sfr ADRESL;
6795 extern __at(0x048F) __sfr ADRESH;
6796 
6797 //==============================================================================
6798 //        ADCON0 Bits
6799 
6800 extern __at(0x0490) __sfr ADCON0;
6801 
6802 typedef struct
6803   {
6804   unsigned ADON                 : 1;
6805   unsigned GO                   : 1;
6806   unsigned                      : 1;
6807   unsigned                      : 1;
6808   unsigned                      : 1;
6809   unsigned                      : 1;
6810   unsigned                      : 1;
6811   unsigned                      : 1;
6812   } __ADCON0bits_t;
6813 
6814 extern __at(0x0490) volatile __ADCON0bits_t ADCON0bits;
6815 
6816 #define _ADON                   0x01
6817 #define _GO                     0x02
6818 
6819 //==============================================================================
6820 
6821 
6822 //==============================================================================
6823 //        ADCON1 Bits
6824 
6825 extern __at(0x0491) __sfr ADCON1;
6826 
6827 typedef struct
6828   {
6829   unsigned                      : 1;
6830   unsigned                      : 1;
6831   unsigned ADNREF               : 1;
6832   unsigned                      : 1;
6833   unsigned                      : 1;
6834   unsigned                      : 1;
6835   unsigned                      : 1;
6836   unsigned ADFM                 : 1;
6837   } __ADCON1bits_t;
6838 
6839 extern __at(0x0491) volatile __ADCON1bits_t ADCON1bits;
6840 
6841 #define _ADNREF                 0x04
6842 #define _ADFM                   0x80
6843 
6844 //==============================================================================
6845 
6846 extern __at(0x0492) __sfr ADCON2;
6847 extern __at(0x0493) __sfr T2TMR;
6848 extern __at(0x0493) __sfr TMR2;
6849 extern __at(0x0494) __sfr PR2;
6850 extern __at(0x0494) __sfr T2PR;
6851 
6852 //==============================================================================
6853 //        T2CON Bits
6854 
6855 extern __at(0x0495) __sfr T2CON;
6856 
6857 typedef union
6858   {
6859   struct
6860     {
6861     unsigned OUTPS0             : 1;
6862     unsigned OUTPS1             : 1;
6863     unsigned OUTPS2             : 1;
6864     unsigned OUTPS3             : 1;
6865     unsigned CKPS0              : 1;
6866     unsigned CKPS1              : 1;
6867     unsigned CKPS2              : 1;
6868     unsigned ON                 : 1;
6869     };
6870 
6871   struct
6872     {
6873     unsigned T2OUTPS0           : 1;
6874     unsigned T2OUTPS1           : 1;
6875     unsigned T2OUTPS2           : 1;
6876     unsigned T2OUTPS3           : 1;
6877     unsigned T2CKPS0            : 1;
6878     unsigned T2CKPS1            : 1;
6879     unsigned T2CKPS2            : 1;
6880     unsigned T2ON               : 1;
6881     };
6882 
6883   struct
6884     {
6885     unsigned                    : 1;
6886     unsigned                    : 1;
6887     unsigned                    : 1;
6888     unsigned                    : 1;
6889     unsigned                    : 1;
6890     unsigned                    : 1;
6891     unsigned                    : 1;
6892     unsigned TMR2ON             : 1;
6893     };
6894 
6895   struct
6896     {
6897     unsigned OUTPS              : 4;
6898     unsigned                    : 4;
6899     };
6900 
6901   struct
6902     {
6903     unsigned T2OUTPS            : 4;
6904     unsigned                    : 4;
6905     };
6906 
6907   struct
6908     {
6909     unsigned                    : 4;
6910     unsigned T2CKPS             : 3;
6911     unsigned                    : 1;
6912     };
6913 
6914   struct
6915     {
6916     unsigned                    : 4;
6917     unsigned CKPS               : 3;
6918     unsigned                    : 1;
6919     };
6920   } __T2CONbits_t;
6921 
6922 extern __at(0x0495) volatile __T2CONbits_t T2CONbits;
6923 
6924 #define _T2CON_OUTPS0           0x01
6925 #define _T2CON_T2OUTPS0         0x01
6926 #define _T2CON_OUTPS1           0x02
6927 #define _T2CON_T2OUTPS1         0x02
6928 #define _T2CON_OUTPS2           0x04
6929 #define _T2CON_T2OUTPS2         0x04
6930 #define _T2CON_OUTPS3           0x08
6931 #define _T2CON_T2OUTPS3         0x08
6932 #define _T2CON_CKPS0            0x10
6933 #define _T2CON_T2CKPS0          0x10
6934 #define _T2CON_CKPS1            0x20
6935 #define _T2CON_T2CKPS1          0x20
6936 #define _T2CON_CKPS2            0x40
6937 #define _T2CON_T2CKPS2          0x40
6938 #define _T2CON_ON               0x80
6939 #define _T2CON_T2ON             0x80
6940 #define _T2CON_TMR2ON           0x80
6941 
6942 //==============================================================================
6943 
6944 
6945 //==============================================================================
6946 //        T2HLT Bits
6947 
6948 extern __at(0x0496) __sfr T2HLT;
6949 
6950 typedef union
6951   {
6952   struct
6953     {
6954     unsigned MODE0              : 1;
6955     unsigned MODE1              : 1;
6956     unsigned MODE2              : 1;
6957     unsigned MODE3              : 1;
6958     unsigned MODE4              : 1;
6959     unsigned CKSYNC             : 1;
6960     unsigned CKPOL              : 1;
6961     unsigned PSYNC              : 1;
6962     };
6963 
6964   struct
6965     {
6966     unsigned T2MODE0            : 1;
6967     unsigned T2MODE1            : 1;
6968     unsigned T2MODE2            : 1;
6969     unsigned T2MODE3            : 1;
6970     unsigned T2MODE4            : 1;
6971     unsigned T2CKSYNC           : 1;
6972     unsigned T2CKPOL            : 1;
6973     unsigned T2PSYNC            : 1;
6974     };
6975 
6976   struct
6977     {
6978     unsigned T2MODE             : 5;
6979     unsigned                    : 3;
6980     };
6981 
6982   struct
6983     {
6984     unsigned MODE               : 5;
6985     unsigned                    : 3;
6986     };
6987   } __T2HLTbits_t;
6988 
6989 extern __at(0x0496) volatile __T2HLTbits_t T2HLTbits;
6990 
6991 #define _T2HLT_MODE0            0x01
6992 #define _T2HLT_T2MODE0          0x01
6993 #define _T2HLT_MODE1            0x02
6994 #define _T2HLT_T2MODE1          0x02
6995 #define _T2HLT_MODE2            0x04
6996 #define _T2HLT_T2MODE2          0x04
6997 #define _T2HLT_MODE3            0x08
6998 #define _T2HLT_T2MODE3          0x08
6999 #define _T2HLT_MODE4            0x10
7000 #define _T2HLT_T2MODE4          0x10
7001 #define _T2HLT_CKSYNC           0x20
7002 #define _T2HLT_T2CKSYNC         0x20
7003 #define _T2HLT_CKPOL            0x40
7004 #define _T2HLT_T2CKPOL          0x40
7005 #define _T2HLT_PSYNC            0x80
7006 #define _T2HLT_T2PSYNC          0x80
7007 
7008 //==============================================================================
7009 
7010 
7011 //==============================================================================
7012 //        T2CLKCON Bits
7013 
7014 extern __at(0x0497) __sfr T2CLKCON;
7015 
7016 typedef union
7017   {
7018   struct
7019     {
7020     unsigned CS0                : 1;
7021     unsigned CS1                : 1;
7022     unsigned CS2                : 1;
7023     unsigned CS3                : 1;
7024     unsigned                    : 1;
7025     unsigned                    : 1;
7026     unsigned                    : 1;
7027     unsigned                    : 1;
7028     };
7029 
7030   struct
7031     {
7032     unsigned T2CS0              : 1;
7033     unsigned T2CS1              : 1;
7034     unsigned T2CS2              : 1;
7035     unsigned T2CS3              : 1;
7036     unsigned                    : 1;
7037     unsigned                    : 1;
7038     unsigned                    : 1;
7039     unsigned                    : 1;
7040     };
7041 
7042   struct
7043     {
7044     unsigned CS                 : 4;
7045     unsigned                    : 4;
7046     };
7047 
7048   struct
7049     {
7050     unsigned T2CS               : 4;
7051     unsigned                    : 4;
7052     };
7053   } __T2CLKCONbits_t;
7054 
7055 extern __at(0x0497) volatile __T2CLKCONbits_t T2CLKCONbits;
7056 
7057 #define _T2CLKCON_CS0           0x01
7058 #define _T2CLKCON_T2CS0         0x01
7059 #define _T2CLKCON_CS1           0x02
7060 #define _T2CLKCON_T2CS1         0x02
7061 #define _T2CLKCON_CS2           0x04
7062 #define _T2CLKCON_T2CS2         0x04
7063 #define _T2CLKCON_CS3           0x08
7064 #define _T2CLKCON_T2CS3         0x08
7065 
7066 //==============================================================================
7067 
7068 
7069 //==============================================================================
7070 //        T2RST Bits
7071 
7072 extern __at(0x0498) __sfr T2RST;
7073 
7074 typedef union
7075   {
7076   struct
7077     {
7078     unsigned RSEL0              : 1;
7079     unsigned RSEL1              : 1;
7080     unsigned RSEL2              : 1;
7081     unsigned RSEL3              : 1;
7082     unsigned RSEL4              : 1;
7083     unsigned                    : 1;
7084     unsigned                    : 1;
7085     unsigned                    : 1;
7086     };
7087 
7088   struct
7089     {
7090     unsigned T2RSEL0            : 1;
7091     unsigned T2RSEL1            : 1;
7092     unsigned T2RSEL2            : 1;
7093     unsigned T2RSEL3            : 1;
7094     unsigned T2RSEL4            : 1;
7095     unsigned                    : 1;
7096     unsigned                    : 1;
7097     unsigned                    : 1;
7098     };
7099 
7100   struct
7101     {
7102     unsigned T2RSEL             : 5;
7103     unsigned                    : 3;
7104     };
7105 
7106   struct
7107     {
7108     unsigned RSEL               : 5;
7109     unsigned                    : 3;
7110     };
7111   } __T2RSTbits_t;
7112 
7113 extern __at(0x0498) volatile __T2RSTbits_t T2RSTbits;
7114 
7115 #define _RSEL0                  0x01
7116 #define _T2RSEL0                0x01
7117 #define _RSEL1                  0x02
7118 #define _T2RSEL1                0x02
7119 #define _RSEL2                  0x04
7120 #define _T2RSEL2                0x04
7121 #define _RSEL3                  0x08
7122 #define _T2RSEL3                0x08
7123 #define _RSEL4                  0x10
7124 #define _T2RSEL4                0x10
7125 
7126 //==============================================================================
7127 
7128 extern __at(0x049A) __sfr T8TMR;
7129 extern __at(0x049A) __sfr TMR8;
7130 extern __at(0x049B) __sfr PR8;
7131 extern __at(0x049B) __sfr T8PR;
7132 
7133 //==============================================================================
7134 //        T8CON Bits
7135 
7136 extern __at(0x049C) __sfr T8CON;
7137 
7138 typedef union
7139   {
7140   struct
7141     {
7142     unsigned OUTPS0             : 1;
7143     unsigned OUTPS1             : 1;
7144     unsigned OUTPS2             : 1;
7145     unsigned OUTPS3             : 1;
7146     unsigned CKPS0              : 1;
7147     unsigned CKPS1              : 1;
7148     unsigned CKPS2              : 1;
7149     unsigned ON                 : 1;
7150     };
7151 
7152   struct
7153     {
7154     unsigned T8OUTPS0           : 1;
7155     unsigned T8OUTPS1           : 1;
7156     unsigned T8OUTPS2           : 1;
7157     unsigned T8OUTPS3           : 1;
7158     unsigned T8CKPS0            : 1;
7159     unsigned T8CKPS1            : 1;
7160     unsigned T8CKPS2            : 1;
7161     unsigned T8ON               : 1;
7162     };
7163 
7164   struct
7165     {
7166     unsigned                    : 1;
7167     unsigned                    : 1;
7168     unsigned                    : 1;
7169     unsigned                    : 1;
7170     unsigned                    : 1;
7171     unsigned                    : 1;
7172     unsigned                    : 1;
7173     unsigned TMR8ON             : 1;
7174     };
7175 
7176   struct
7177     {
7178     unsigned T8OUTPS            : 4;
7179     unsigned                    : 4;
7180     };
7181 
7182   struct
7183     {
7184     unsigned OUTPS              : 4;
7185     unsigned                    : 4;
7186     };
7187 
7188   struct
7189     {
7190     unsigned                    : 4;
7191     unsigned T8CKPS             : 3;
7192     unsigned                    : 1;
7193     };
7194 
7195   struct
7196     {
7197     unsigned                    : 4;
7198     unsigned CKPS               : 3;
7199     unsigned                    : 1;
7200     };
7201   } __T8CONbits_t;
7202 
7203 extern __at(0x049C) volatile __T8CONbits_t T8CONbits;
7204 
7205 #define _T8CON_OUTPS0           0x01
7206 #define _T8CON_T8OUTPS0         0x01
7207 #define _T8CON_OUTPS1           0x02
7208 #define _T8CON_T8OUTPS1         0x02
7209 #define _T8CON_OUTPS2           0x04
7210 #define _T8CON_T8OUTPS2         0x04
7211 #define _T8CON_OUTPS3           0x08
7212 #define _T8CON_T8OUTPS3         0x08
7213 #define _T8CON_CKPS0            0x10
7214 #define _T8CON_T8CKPS0          0x10
7215 #define _T8CON_CKPS1            0x20
7216 #define _T8CON_T8CKPS1          0x20
7217 #define _T8CON_CKPS2            0x40
7218 #define _T8CON_T8CKPS2          0x40
7219 #define _T8CON_ON               0x80
7220 #define _T8CON_T8ON             0x80
7221 #define _T8CON_TMR8ON           0x80
7222 
7223 //==============================================================================
7224 
7225 
7226 //==============================================================================
7227 //        T8HLT Bits
7228 
7229 extern __at(0x049D) __sfr T8HLT;
7230 
7231 typedef union
7232   {
7233   struct
7234     {
7235     unsigned MODE0              : 1;
7236     unsigned MODE1              : 1;
7237     unsigned MODE2              : 1;
7238     unsigned MODE3              : 1;
7239     unsigned MODE4              : 1;
7240     unsigned CKSYNC             : 1;
7241     unsigned CKPOL              : 1;
7242     unsigned PSYNC              : 1;
7243     };
7244 
7245   struct
7246     {
7247     unsigned T8MODE0            : 1;
7248     unsigned T8MODE1            : 1;
7249     unsigned T8MODE2            : 1;
7250     unsigned T8MODE3            : 1;
7251     unsigned T8MODE4            : 1;
7252     unsigned T8CKSYNC           : 1;
7253     unsigned T8CKPOL            : 1;
7254     unsigned T8PSYNC            : 1;
7255     };
7256 
7257   struct
7258     {
7259     unsigned MODE               : 5;
7260     unsigned                    : 3;
7261     };
7262 
7263   struct
7264     {
7265     unsigned T8MODE             : 5;
7266     unsigned                    : 3;
7267     };
7268   } __T8HLTbits_t;
7269 
7270 extern __at(0x049D) volatile __T8HLTbits_t T8HLTbits;
7271 
7272 #define _T8HLT_MODE0            0x01
7273 #define _T8HLT_T8MODE0          0x01
7274 #define _T8HLT_MODE1            0x02
7275 #define _T8HLT_T8MODE1          0x02
7276 #define _T8HLT_MODE2            0x04
7277 #define _T8HLT_T8MODE2          0x04
7278 #define _T8HLT_MODE3            0x08
7279 #define _T8HLT_T8MODE3          0x08
7280 #define _T8HLT_MODE4            0x10
7281 #define _T8HLT_T8MODE4          0x10
7282 #define _T8HLT_CKSYNC           0x20
7283 #define _T8HLT_T8CKSYNC         0x20
7284 #define _T8HLT_CKPOL            0x40
7285 #define _T8HLT_T8CKPOL          0x40
7286 #define _T8HLT_PSYNC            0x80
7287 #define _T8HLT_T8PSYNC          0x80
7288 
7289 //==============================================================================
7290 
7291 
7292 //==============================================================================
7293 //        T8CLKCON Bits
7294 
7295 extern __at(0x049E) __sfr T8CLKCON;
7296 
7297 typedef union
7298   {
7299   struct
7300     {
7301     unsigned CS0                : 1;
7302     unsigned CS1                : 1;
7303     unsigned CS2                : 1;
7304     unsigned CS3                : 1;
7305     unsigned                    : 1;
7306     unsigned                    : 1;
7307     unsigned                    : 1;
7308     unsigned                    : 1;
7309     };
7310 
7311   struct
7312     {
7313     unsigned T8CS0              : 1;
7314     unsigned T8CS1              : 1;
7315     unsigned T8CS2              : 1;
7316     unsigned T8CS3              : 1;
7317     unsigned                    : 1;
7318     unsigned                    : 1;
7319     unsigned                    : 1;
7320     unsigned                    : 1;
7321     };
7322 
7323   struct
7324     {
7325     unsigned T8CS               : 4;
7326     unsigned                    : 4;
7327     };
7328 
7329   struct
7330     {
7331     unsigned CS                 : 4;
7332     unsigned                    : 4;
7333     };
7334   } __T8CLKCONbits_t;
7335 
7336 extern __at(0x049E) volatile __T8CLKCONbits_t T8CLKCONbits;
7337 
7338 #define _T8CLKCON_CS0           0x01
7339 #define _T8CLKCON_T8CS0         0x01
7340 #define _T8CLKCON_CS1           0x02
7341 #define _T8CLKCON_T8CS1         0x02
7342 #define _T8CLKCON_CS2           0x04
7343 #define _T8CLKCON_T8CS2         0x04
7344 #define _T8CLKCON_CS3           0x08
7345 #define _T8CLKCON_T8CS3         0x08
7346 
7347 //==============================================================================
7348 
7349 
7350 //==============================================================================
7351 //        T8RST Bits
7352 
7353 extern __at(0x049F) __sfr T8RST;
7354 
7355 typedef union
7356   {
7357   struct
7358     {
7359     unsigned RSEL0              : 1;
7360     unsigned RSEL1              : 1;
7361     unsigned RSEL2              : 1;
7362     unsigned RSEL3              : 1;
7363     unsigned RSEL4              : 1;
7364     unsigned                    : 1;
7365     unsigned                    : 1;
7366     unsigned                    : 1;
7367     };
7368 
7369   struct
7370     {
7371     unsigned T8RSEL0            : 1;
7372     unsigned T8RSEL1            : 1;
7373     unsigned T8RSEL2            : 1;
7374     unsigned T8RSEL3            : 1;
7375     unsigned T8RSEL4            : 1;
7376     unsigned                    : 1;
7377     unsigned                    : 1;
7378     unsigned                    : 1;
7379     };
7380 
7381   struct
7382     {
7383     unsigned T8RSEL             : 5;
7384     unsigned                    : 3;
7385     };
7386 
7387   struct
7388     {
7389     unsigned RSEL               : 5;
7390     unsigned                    : 3;
7391     };
7392   } __T8RSTbits_t;
7393 
7394 extern __at(0x049F) volatile __T8RSTbits_t T8RSTbits;
7395 
7396 #define _T8RST_RSEL0            0x01
7397 #define _T8RST_T8RSEL0          0x01
7398 #define _T8RST_RSEL1            0x02
7399 #define _T8RST_T8RSEL1          0x02
7400 #define _T8RST_RSEL2            0x04
7401 #define _T8RST_T8RSEL2          0x04
7402 #define _T8RST_RSEL3            0x08
7403 #define _T8RST_T8RSEL3          0x08
7404 #define _T8RST_RSEL4            0x10
7405 #define _T8RST_T8RSEL4          0x10
7406 
7407 //==============================================================================
7408 
7409 extern __at(0x050F) __sfr OPA1NCHS;
7410 extern __at(0x0510) __sfr OPA1PCHS;
7411 
7412 //==============================================================================
7413 //        OPA1CON Bits
7414 
7415 extern __at(0x0511) __sfr OPA1CON;
7416 
7417 typedef union
7418   {
7419   struct
7420     {
7421     unsigned ORM0               : 1;
7422     unsigned ORM1               : 1;
7423     unsigned ORPOL              : 1;
7424     unsigned                    : 1;
7425     unsigned UG                 : 1;
7426     unsigned                    : 1;
7427     unsigned                    : 1;
7428     unsigned EN                 : 1;
7429     };
7430 
7431   struct
7432     {
7433     unsigned OPA1ORM0           : 1;
7434     unsigned OPA1ORM1           : 1;
7435     unsigned OPA1ORPOL          : 1;
7436     unsigned                    : 1;
7437     unsigned OPA1UG             : 1;
7438     unsigned                    : 1;
7439     unsigned                    : 1;
7440     unsigned OPA1EN             : 1;
7441     };
7442 
7443   struct
7444     {
7445     unsigned ORM                : 2;
7446     unsigned                    : 6;
7447     };
7448 
7449   struct
7450     {
7451     unsigned OPA1ORM            : 2;
7452     unsigned                    : 6;
7453     };
7454   } __OPA1CONbits_t;
7455 
7456 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
7457 
7458 #define _OPA1CON_ORM0           0x01
7459 #define _OPA1CON_OPA1ORM0       0x01
7460 #define _OPA1CON_ORM1           0x02
7461 #define _OPA1CON_OPA1ORM1       0x02
7462 #define _OPA1CON_ORPOL          0x04
7463 #define _OPA1CON_OPA1ORPOL      0x04
7464 #define _OPA1CON_UG             0x10
7465 #define _OPA1CON_OPA1UG         0x10
7466 #define _OPA1CON_EN             0x80
7467 #define _OPA1CON_OPA1EN         0x80
7468 
7469 //==============================================================================
7470 
7471 extern __at(0x0512) __sfr OPA1ORS;
7472 extern __at(0x0513) __sfr OPA2NCHS;
7473 extern __at(0x0514) __sfr OPA2PCHS;
7474 
7475 //==============================================================================
7476 //        OPA2CON Bits
7477 
7478 extern __at(0x0515) __sfr OPA2CON;
7479 
7480 typedef union
7481   {
7482   struct
7483     {
7484     unsigned ORM0               : 1;
7485     unsigned ORM1               : 1;
7486     unsigned ORPOL              : 1;
7487     unsigned                    : 1;
7488     unsigned UG                 : 1;
7489     unsigned                    : 1;
7490     unsigned                    : 1;
7491     unsigned EN                 : 1;
7492     };
7493 
7494   struct
7495     {
7496     unsigned OPA2ORM0           : 1;
7497     unsigned OPA2ORM1           : 1;
7498     unsigned OPA2ORPOL          : 1;
7499     unsigned                    : 1;
7500     unsigned OPA2UG             : 1;
7501     unsigned                    : 1;
7502     unsigned                    : 1;
7503     unsigned OPA2EN             : 1;
7504     };
7505 
7506   struct
7507     {
7508     unsigned ORM                : 2;
7509     unsigned                    : 6;
7510     };
7511 
7512   struct
7513     {
7514     unsigned OPA2ORM            : 2;
7515     unsigned                    : 6;
7516     };
7517   } __OPA2CONbits_t;
7518 
7519 extern __at(0x0515) volatile __OPA2CONbits_t OPA2CONbits;
7520 
7521 #define _OPA2CON_ORM0           0x01
7522 #define _OPA2CON_OPA2ORM0       0x01
7523 #define _OPA2CON_ORM1           0x02
7524 #define _OPA2CON_OPA2ORM1       0x02
7525 #define _OPA2CON_ORPOL          0x04
7526 #define _OPA2CON_OPA2ORPOL      0x04
7527 #define _OPA2CON_UG             0x10
7528 #define _OPA2CON_OPA2UG         0x10
7529 #define _OPA2CON_EN             0x80
7530 #define _OPA2CON_OPA2EN         0x80
7531 
7532 //==============================================================================
7533 
7534 extern __at(0x0516) __sfr OPA2ORS;
7535 extern __at(0x0517) __sfr OPA3NCHS;
7536 extern __at(0x0518) __sfr OPA3PCHS;
7537 
7538 //==============================================================================
7539 //        OPA3CON Bits
7540 
7541 extern __at(0x0519) __sfr OPA3CON;
7542 
7543 typedef union
7544   {
7545   struct
7546     {
7547     unsigned ORM0               : 1;
7548     unsigned ORM1               : 1;
7549     unsigned ORPOL              : 1;
7550     unsigned                    : 1;
7551     unsigned UG                 : 1;
7552     unsigned                    : 1;
7553     unsigned SP                 : 1;
7554     unsigned EN                 : 1;
7555     };
7556 
7557   struct
7558     {
7559     unsigned OPA3ORM0           : 1;
7560     unsigned OPA3ORM1           : 1;
7561     unsigned OPA3ORPOL          : 1;
7562     unsigned                    : 1;
7563     unsigned OPA3UG             : 1;
7564     unsigned                    : 1;
7565     unsigned OPA3SP             : 1;
7566     unsigned OPA3EN             : 1;
7567     };
7568 
7569   struct
7570     {
7571     unsigned OPA3ORM            : 2;
7572     unsigned                    : 6;
7573     };
7574 
7575   struct
7576     {
7577     unsigned ORM                : 2;
7578     unsigned                    : 6;
7579     };
7580   } __OPA3CONbits_t;
7581 
7582 extern __at(0x0519) volatile __OPA3CONbits_t OPA3CONbits;
7583 
7584 #define _OPA3CON_ORM0           0x01
7585 #define _OPA3CON_OPA3ORM0       0x01
7586 #define _OPA3CON_ORM1           0x02
7587 #define _OPA3CON_OPA3ORM1       0x02
7588 #define _OPA3CON_ORPOL          0x04
7589 #define _OPA3CON_OPA3ORPOL      0x04
7590 #define _OPA3CON_UG             0x10
7591 #define _OPA3CON_OPA3UG         0x10
7592 #define _OPA3CON_SP             0x40
7593 #define _OPA3CON_OPA3SP         0x40
7594 #define _OPA3CON_EN             0x80
7595 #define _OPA3CON_OPA3EN         0x80
7596 
7597 //==============================================================================
7598 
7599 extern __at(0x051A) __sfr OPA3ORS;
7600 
7601 //==============================================================================
7602 //        DACLD Bits
7603 
7604 extern __at(0x058D) __sfr DACLD;
7605 
7606 typedef struct
7607   {
7608   unsigned DAC1LD               : 1;
7609   unsigned DAC2LD               : 1;
7610   unsigned                      : 1;
7611   unsigned                      : 1;
7612   unsigned DAC5LD               : 1;
7613   unsigned                      : 1;
7614   unsigned                      : 1;
7615   unsigned                      : 1;
7616   } __DACLDbits_t;
7617 
7618 extern __at(0x058D) volatile __DACLDbits_t DACLDbits;
7619 
7620 #define _DAC1LD                 0x01
7621 #define _DAC2LD                 0x02
7622 #define _DAC5LD                 0x10
7623 
7624 //==============================================================================
7625 
7626 
7627 //==============================================================================
7628 //        DAC1CON0 Bits
7629 
7630 extern __at(0x058E) __sfr DAC1CON0;
7631 
7632 typedef union
7633   {
7634   struct
7635     {
7636     unsigned NSS0               : 1;
7637     unsigned NSS1               : 1;
7638     unsigned PSS0               : 1;
7639     unsigned PSS1               : 1;
7640     unsigned OE2                : 1;
7641     unsigned OE1                : 1;
7642     unsigned FM                 : 1;
7643     unsigned EN                 : 1;
7644     };
7645 
7646   struct
7647     {
7648     unsigned DACNSS0            : 1;
7649     unsigned DACNSS1            : 1;
7650     unsigned DACPSS0            : 1;
7651     unsigned DACPSS1            : 1;
7652     unsigned DACOE2             : 1;
7653     unsigned OE                 : 1;
7654     unsigned DACFM              : 1;
7655     unsigned DACEN              : 1;
7656     };
7657 
7658   struct
7659     {
7660     unsigned DAC1NSS0           : 1;
7661     unsigned DAC1NSS1           : 1;
7662     unsigned DAC1PSS0           : 1;
7663     unsigned DAC1PSS1           : 1;
7664     unsigned DAC1OE2            : 1;
7665     unsigned DACOE1             : 1;
7666     unsigned DAC1FM             : 1;
7667     unsigned DAC1EN             : 1;
7668     };
7669 
7670   struct
7671     {
7672     unsigned                    : 1;
7673     unsigned                    : 1;
7674     unsigned                    : 1;
7675     unsigned                    : 1;
7676     unsigned                    : 1;
7677     unsigned DACOE              : 1;
7678     unsigned                    : 1;
7679     unsigned                    : 1;
7680     };
7681 
7682   struct
7683     {
7684     unsigned                    : 1;
7685     unsigned                    : 1;
7686     unsigned                    : 1;
7687     unsigned                    : 1;
7688     unsigned                    : 1;
7689     unsigned DAC1OE1            : 1;
7690     unsigned                    : 1;
7691     unsigned                    : 1;
7692     };
7693 
7694   struct
7695     {
7696     unsigned DAC1NSS            : 2;
7697     unsigned                    : 6;
7698     };
7699 
7700   struct
7701     {
7702     unsigned DACNSS             : 2;
7703     unsigned                    : 6;
7704     };
7705 
7706   struct
7707     {
7708     unsigned NSS                : 2;
7709     unsigned                    : 6;
7710     };
7711 
7712   struct
7713     {
7714     unsigned                    : 2;
7715     unsigned PSS                : 2;
7716     unsigned                    : 4;
7717     };
7718 
7719   struct
7720     {
7721     unsigned                    : 2;
7722     unsigned DAC1PSS            : 2;
7723     unsigned                    : 4;
7724     };
7725 
7726   struct
7727     {
7728     unsigned                    : 2;
7729     unsigned DACPSS             : 2;
7730     unsigned                    : 4;
7731     };
7732   } __DAC1CON0bits_t;
7733 
7734 extern __at(0x058E) volatile __DAC1CON0bits_t DAC1CON0bits;
7735 
7736 #define _DAC1CON0_NSS0          0x01
7737 #define _DAC1CON0_DACNSS0       0x01
7738 #define _DAC1CON0_DAC1NSS0      0x01
7739 #define _DAC1CON0_NSS1          0x02
7740 #define _DAC1CON0_DACNSS1       0x02
7741 #define _DAC1CON0_DAC1NSS1      0x02
7742 #define _DAC1CON0_PSS0          0x04
7743 #define _DAC1CON0_DACPSS0       0x04
7744 #define _DAC1CON0_DAC1PSS0      0x04
7745 #define _DAC1CON0_PSS1          0x08
7746 #define _DAC1CON0_DACPSS1       0x08
7747 #define _DAC1CON0_DAC1PSS1      0x08
7748 #define _DAC1CON0_OE2           0x10
7749 #define _DAC1CON0_DACOE2        0x10
7750 #define _DAC1CON0_DAC1OE2       0x10
7751 #define _DAC1CON0_OE1           0x20
7752 #define _DAC1CON0_OE            0x20
7753 #define _DAC1CON0_DACOE1        0x20
7754 #define _DAC1CON0_DACOE         0x20
7755 #define _DAC1CON0_DAC1OE1       0x20
7756 #define _DAC1CON0_FM            0x40
7757 #define _DAC1CON0_DACFM         0x40
7758 #define _DAC1CON0_DAC1FM        0x40
7759 #define _DAC1CON0_EN            0x80
7760 #define _DAC1CON0_DACEN         0x80
7761 #define _DAC1CON0_DAC1EN        0x80
7762 
7763 //==============================================================================
7764 
7765 
7766 //==============================================================================
7767 //        DAC1CON1 Bits
7768 
7769 extern __at(0x058F) __sfr DAC1CON1;
7770 
7771 typedef union
7772   {
7773   struct
7774     {
7775     unsigned REF0               : 1;
7776     unsigned REF1               : 1;
7777     unsigned REF2               : 1;
7778     unsigned REF3               : 1;
7779     unsigned REF4               : 1;
7780     unsigned REF5               : 1;
7781     unsigned REF6               : 1;
7782     unsigned REF7               : 1;
7783     };
7784 
7785   struct
7786     {
7787     unsigned DAC1REF0           : 1;
7788     unsigned DAC1REF1           : 1;
7789     unsigned DAC1REF2           : 1;
7790     unsigned DAC1REF3           : 1;
7791     unsigned DAC1REF4           : 1;
7792     unsigned DAC1REF5           : 1;
7793     unsigned DAC1REF6           : 1;
7794     unsigned DAC1REF7           : 1;
7795     };
7796 
7797   struct
7798     {
7799     unsigned R0                 : 1;
7800     unsigned R1                 : 1;
7801     unsigned R2                 : 1;
7802     unsigned R3                 : 1;
7803     unsigned R4                 : 1;
7804     unsigned R5                 : 1;
7805     unsigned R6                 : 1;
7806     unsigned R7                 : 1;
7807     };
7808 
7809   struct
7810     {
7811     unsigned DAC1R0             : 1;
7812     unsigned DAC1R1             : 1;
7813     unsigned DAC1R2             : 1;
7814     unsigned DAC1R3             : 1;
7815     unsigned DAC1R4             : 1;
7816     unsigned DAC1R5             : 1;
7817     unsigned DAC1R6             : 1;
7818     unsigned DAC1R7             : 1;
7819     };
7820   } __DAC1CON1bits_t;
7821 
7822 extern __at(0x058F) volatile __DAC1CON1bits_t DAC1CON1bits;
7823 
7824 #define _REF0                   0x01
7825 #define _DAC1REF0               0x01
7826 #define _R0                     0x01
7827 #define _DAC1R0                 0x01
7828 #define _REF1                   0x02
7829 #define _DAC1REF1               0x02
7830 #define _R1                     0x02
7831 #define _DAC1R1                 0x02
7832 #define _REF2                   0x04
7833 #define _DAC1REF2               0x04
7834 #define _R2                     0x04
7835 #define _DAC1R2                 0x04
7836 #define _REF3                   0x08
7837 #define _DAC1REF3               0x08
7838 #define _R3                     0x08
7839 #define _DAC1R3                 0x08
7840 #define _REF4                   0x10
7841 #define _DAC1REF4               0x10
7842 #define _R4                     0x10
7843 #define _DAC1R4                 0x10
7844 #define _REF5                   0x20
7845 #define _DAC1REF5               0x20
7846 #define _R5                     0x20
7847 #define _DAC1R5                 0x20
7848 #define _REF6                   0x40
7849 #define _DAC1REF6               0x40
7850 #define _R6                     0x40
7851 #define _DAC1R6                 0x40
7852 #define _REF7                   0x80
7853 #define _DAC1REF7               0x80
7854 #define _R7                     0x80
7855 #define _DAC1R7                 0x80
7856 
7857 //==============================================================================
7858 
7859 extern __at(0x058F) __sfr DAC1REF;
7860 
7861 //==============================================================================
7862 //        DAC1REFL Bits
7863 
7864 extern __at(0x058F) __sfr DAC1REFL;
7865 
7866 typedef union
7867   {
7868   struct
7869     {
7870     unsigned REF0               : 1;
7871     unsigned REF1               : 1;
7872     unsigned REF2               : 1;
7873     unsigned REF3               : 1;
7874     unsigned REF4               : 1;
7875     unsigned REF5               : 1;
7876     unsigned REF6               : 1;
7877     unsigned REF7               : 1;
7878     };
7879 
7880   struct
7881     {
7882     unsigned DAC1REF0           : 1;
7883     unsigned DAC1REF1           : 1;
7884     unsigned DAC1REF2           : 1;
7885     unsigned DAC1REF3           : 1;
7886     unsigned DAC1REF4           : 1;
7887     unsigned DAC1REF5           : 1;
7888     unsigned DAC1REF6           : 1;
7889     unsigned DAC1REF7           : 1;
7890     };
7891 
7892   struct
7893     {
7894     unsigned R0                 : 1;
7895     unsigned R1                 : 1;
7896     unsigned R2                 : 1;
7897     unsigned R3                 : 1;
7898     unsigned R4                 : 1;
7899     unsigned R5                 : 1;
7900     unsigned R6                 : 1;
7901     unsigned R7                 : 1;
7902     };
7903 
7904   struct
7905     {
7906     unsigned DAC1R0             : 1;
7907     unsigned DAC1R1             : 1;
7908     unsigned DAC1R2             : 1;
7909     unsigned DAC1R3             : 1;
7910     unsigned DAC1R4             : 1;
7911     unsigned DAC1R5             : 1;
7912     unsigned DAC1R6             : 1;
7913     unsigned DAC1R7             : 1;
7914     };
7915   } __DAC1REFLbits_t;
7916 
7917 extern __at(0x058F) volatile __DAC1REFLbits_t DAC1REFLbits;
7918 
7919 #define _DAC1REFL_REF0          0x01
7920 #define _DAC1REFL_DAC1REF0      0x01
7921 #define _DAC1REFL_R0            0x01
7922 #define _DAC1REFL_DAC1R0        0x01
7923 #define _DAC1REFL_REF1          0x02
7924 #define _DAC1REFL_DAC1REF1      0x02
7925 #define _DAC1REFL_R1            0x02
7926 #define _DAC1REFL_DAC1R1        0x02
7927 #define _DAC1REFL_REF2          0x04
7928 #define _DAC1REFL_DAC1REF2      0x04
7929 #define _DAC1REFL_R2            0x04
7930 #define _DAC1REFL_DAC1R2        0x04
7931 #define _DAC1REFL_REF3          0x08
7932 #define _DAC1REFL_DAC1REF3      0x08
7933 #define _DAC1REFL_R3            0x08
7934 #define _DAC1REFL_DAC1R3        0x08
7935 #define _DAC1REFL_REF4          0x10
7936 #define _DAC1REFL_DAC1REF4      0x10
7937 #define _DAC1REFL_R4            0x10
7938 #define _DAC1REFL_DAC1R4        0x10
7939 #define _DAC1REFL_REF5          0x20
7940 #define _DAC1REFL_DAC1REF5      0x20
7941 #define _DAC1REFL_R5            0x20
7942 #define _DAC1REFL_DAC1R5        0x20
7943 #define _DAC1REFL_REF6          0x40
7944 #define _DAC1REFL_DAC1REF6      0x40
7945 #define _DAC1REFL_R6            0x40
7946 #define _DAC1REFL_DAC1R6        0x40
7947 #define _DAC1REFL_REF7          0x80
7948 #define _DAC1REFL_DAC1REF7      0x80
7949 #define _DAC1REFL_R7            0x80
7950 #define _DAC1REFL_DAC1R7        0x80
7951 
7952 //==============================================================================
7953 
7954 
7955 //==============================================================================
7956 //        DAC1CON2 Bits
7957 
7958 extern __at(0x0590) __sfr DAC1CON2;
7959 
7960 typedef union
7961   {
7962   struct
7963     {
7964     unsigned REF8               : 1;
7965     unsigned REF9               : 1;
7966     unsigned REF10              : 1;
7967     unsigned REF11              : 1;
7968     unsigned REF12              : 1;
7969     unsigned REF13              : 1;
7970     unsigned REF14              : 1;
7971     unsigned REF15              : 1;
7972     };
7973 
7974   struct
7975     {
7976     unsigned DAC1REF8           : 1;
7977     unsigned DAC1REF9           : 1;
7978     unsigned DAC1REF10          : 1;
7979     unsigned DAC1REF11          : 1;
7980     unsigned DAC1REF12          : 1;
7981     unsigned DAC1REF13          : 1;
7982     unsigned DAC1REF14          : 1;
7983     unsigned DAC1REF15          : 1;
7984     };
7985 
7986   struct
7987     {
7988     unsigned R8                 : 1;
7989     unsigned R9                 : 1;
7990     unsigned R10                : 1;
7991     unsigned R11                : 1;
7992     unsigned R12                : 1;
7993     unsigned R13                : 1;
7994     unsigned R14                : 1;
7995     unsigned R15                : 1;
7996     };
7997 
7998   struct
7999     {
8000     unsigned DAC1R8             : 1;
8001     unsigned DAC1R9             : 1;
8002     unsigned DAC1R10            : 1;
8003     unsigned DAC1R11            : 1;
8004     unsigned DAC1R12            : 1;
8005     unsigned DAC1R13            : 1;
8006     unsigned DAC1R14            : 1;
8007     unsigned DAC1R15            : 1;
8008     };
8009   } __DAC1CON2bits_t;
8010 
8011 extern __at(0x0590) volatile __DAC1CON2bits_t DAC1CON2bits;
8012 
8013 #define _REF8                   0x01
8014 #define _DAC1REF8               0x01
8015 #define _R8                     0x01
8016 #define _DAC1R8                 0x01
8017 #define _REF9                   0x02
8018 #define _DAC1REF9               0x02
8019 #define _R9                     0x02
8020 #define _DAC1R9                 0x02
8021 #define _REF10                  0x04
8022 #define _DAC1REF10              0x04
8023 #define _R10                    0x04
8024 #define _DAC1R10                0x04
8025 #define _REF11                  0x08
8026 #define _DAC1REF11              0x08
8027 #define _R11                    0x08
8028 #define _DAC1R11                0x08
8029 #define _REF12                  0x10
8030 #define _DAC1REF12              0x10
8031 #define _R12                    0x10
8032 #define _DAC1R12                0x10
8033 #define _REF13                  0x20
8034 #define _DAC1REF13              0x20
8035 #define _R13                    0x20
8036 #define _DAC1R13                0x20
8037 #define _REF14                  0x40
8038 #define _DAC1REF14              0x40
8039 #define _R14                    0x40
8040 #define _DAC1R14                0x40
8041 #define _REF15                  0x80
8042 #define _DAC1REF15              0x80
8043 #define _R15                    0x80
8044 #define _DAC1R15                0x80
8045 
8046 //==============================================================================
8047 
8048 
8049 //==============================================================================
8050 //        DAC1REFH Bits
8051 
8052 extern __at(0x0590) __sfr DAC1REFH;
8053 
8054 typedef union
8055   {
8056   struct
8057     {
8058     unsigned REF8               : 1;
8059     unsigned REF9               : 1;
8060     unsigned REF10              : 1;
8061     unsigned REF11              : 1;
8062     unsigned REF12              : 1;
8063     unsigned REF13              : 1;
8064     unsigned REF14              : 1;
8065     unsigned REF15              : 1;
8066     };
8067 
8068   struct
8069     {
8070     unsigned DAC1REF8           : 1;
8071     unsigned DAC1REF9           : 1;
8072     unsigned DAC1REF10          : 1;
8073     unsigned DAC1REF11          : 1;
8074     unsigned DAC1REF12          : 1;
8075     unsigned DAC1REF13          : 1;
8076     unsigned DAC1REF14          : 1;
8077     unsigned DAC1REF15          : 1;
8078     };
8079 
8080   struct
8081     {
8082     unsigned R8                 : 1;
8083     unsigned R9                 : 1;
8084     unsigned R10                : 1;
8085     unsigned R11                : 1;
8086     unsigned R12                : 1;
8087     unsigned R13                : 1;
8088     unsigned R14                : 1;
8089     unsigned R15                : 1;
8090     };
8091 
8092   struct
8093     {
8094     unsigned DAC1R8             : 1;
8095     unsigned DAC1R9             : 1;
8096     unsigned DAC1R10            : 1;
8097     unsigned DAC1R11            : 1;
8098     unsigned DAC1R12            : 1;
8099     unsigned DAC1R13            : 1;
8100     unsigned DAC1R14            : 1;
8101     unsigned DAC1R15            : 1;
8102     };
8103   } __DAC1REFHbits_t;
8104 
8105 extern __at(0x0590) volatile __DAC1REFHbits_t DAC1REFHbits;
8106 
8107 #define _DAC1REFH_REF8          0x01
8108 #define _DAC1REFH_DAC1REF8      0x01
8109 #define _DAC1REFH_R8            0x01
8110 #define _DAC1REFH_DAC1R8        0x01
8111 #define _DAC1REFH_REF9          0x02
8112 #define _DAC1REFH_DAC1REF9      0x02
8113 #define _DAC1REFH_R9            0x02
8114 #define _DAC1REFH_DAC1R9        0x02
8115 #define _DAC1REFH_REF10         0x04
8116 #define _DAC1REFH_DAC1REF10     0x04
8117 #define _DAC1REFH_R10           0x04
8118 #define _DAC1REFH_DAC1R10       0x04
8119 #define _DAC1REFH_REF11         0x08
8120 #define _DAC1REFH_DAC1REF11     0x08
8121 #define _DAC1REFH_R11           0x08
8122 #define _DAC1REFH_DAC1R11       0x08
8123 #define _DAC1REFH_REF12         0x10
8124 #define _DAC1REFH_DAC1REF12     0x10
8125 #define _DAC1REFH_R12           0x10
8126 #define _DAC1REFH_DAC1R12       0x10
8127 #define _DAC1REFH_REF13         0x20
8128 #define _DAC1REFH_DAC1REF13     0x20
8129 #define _DAC1REFH_R13           0x20
8130 #define _DAC1REFH_DAC1R13       0x20
8131 #define _DAC1REFH_REF14         0x40
8132 #define _DAC1REFH_DAC1REF14     0x40
8133 #define _DAC1REFH_R14           0x40
8134 #define _DAC1REFH_DAC1R14       0x40
8135 #define _DAC1REFH_REF15         0x80
8136 #define _DAC1REFH_DAC1REF15     0x80
8137 #define _DAC1REFH_R15           0x80
8138 #define _DAC1REFH_DAC1R15       0x80
8139 
8140 //==============================================================================
8141 
8142 
8143 //==============================================================================
8144 //        DAC2CON0 Bits
8145 
8146 extern __at(0x0591) __sfr DAC2CON0;
8147 
8148 typedef union
8149   {
8150   struct
8151     {
8152     unsigned NSS0               : 1;
8153     unsigned NSS1               : 1;
8154     unsigned PSS0               : 1;
8155     unsigned PSS1               : 1;
8156     unsigned OE2                : 1;
8157     unsigned OE1                : 1;
8158     unsigned FM                 : 1;
8159     unsigned EN                 : 1;
8160     };
8161 
8162   struct
8163     {
8164     unsigned DACNSS0            : 1;
8165     unsigned DACNSS1            : 1;
8166     unsigned DACPSS0            : 1;
8167     unsigned DACPSS1            : 1;
8168     unsigned DACOE2             : 1;
8169     unsigned OE                 : 1;
8170     unsigned DACFM              : 1;
8171     unsigned DACEN              : 1;
8172     };
8173 
8174   struct
8175     {
8176     unsigned DAC2NSS0           : 1;
8177     unsigned DAC2NSS1           : 1;
8178     unsigned DAC2PSS0           : 1;
8179     unsigned DAC2PSS1           : 1;
8180     unsigned DAC2OE2            : 1;
8181     unsigned DACOE1             : 1;
8182     unsigned DAC2FM             : 1;
8183     unsigned DAC2EN             : 1;
8184     };
8185 
8186   struct
8187     {
8188     unsigned                    : 1;
8189     unsigned                    : 1;
8190     unsigned                    : 1;
8191     unsigned                    : 1;
8192     unsigned                    : 1;
8193     unsigned DACOE              : 1;
8194     unsigned                    : 1;
8195     unsigned                    : 1;
8196     };
8197 
8198   struct
8199     {
8200     unsigned                    : 1;
8201     unsigned                    : 1;
8202     unsigned                    : 1;
8203     unsigned                    : 1;
8204     unsigned                    : 1;
8205     unsigned DAC2OE1            : 1;
8206     unsigned                    : 1;
8207     unsigned                    : 1;
8208     };
8209 
8210   struct
8211     {
8212     unsigned DAC2NSS            : 2;
8213     unsigned                    : 6;
8214     };
8215 
8216   struct
8217     {
8218     unsigned DACNSS             : 2;
8219     unsigned                    : 6;
8220     };
8221 
8222   struct
8223     {
8224     unsigned NSS                : 2;
8225     unsigned                    : 6;
8226     };
8227 
8228   struct
8229     {
8230     unsigned                    : 2;
8231     unsigned PSS                : 2;
8232     unsigned                    : 4;
8233     };
8234 
8235   struct
8236     {
8237     unsigned                    : 2;
8238     unsigned DAC2PSS            : 2;
8239     unsigned                    : 4;
8240     };
8241 
8242   struct
8243     {
8244     unsigned                    : 2;
8245     unsigned DACPSS             : 2;
8246     unsigned                    : 4;
8247     };
8248   } __DAC2CON0bits_t;
8249 
8250 extern __at(0x0591) volatile __DAC2CON0bits_t DAC2CON0bits;
8251 
8252 #define _DAC2CON0_NSS0          0x01
8253 #define _DAC2CON0_DACNSS0       0x01
8254 #define _DAC2CON0_DAC2NSS0      0x01
8255 #define _DAC2CON0_NSS1          0x02
8256 #define _DAC2CON0_DACNSS1       0x02
8257 #define _DAC2CON0_DAC2NSS1      0x02
8258 #define _DAC2CON0_PSS0          0x04
8259 #define _DAC2CON0_DACPSS0       0x04
8260 #define _DAC2CON0_DAC2PSS0      0x04
8261 #define _DAC2CON0_PSS1          0x08
8262 #define _DAC2CON0_DACPSS1       0x08
8263 #define _DAC2CON0_DAC2PSS1      0x08
8264 #define _DAC2CON0_OE2           0x10
8265 #define _DAC2CON0_DACOE2        0x10
8266 #define _DAC2CON0_DAC2OE2       0x10
8267 #define _DAC2CON0_OE1           0x20
8268 #define _DAC2CON0_OE            0x20
8269 #define _DAC2CON0_DACOE1        0x20
8270 #define _DAC2CON0_DACOE         0x20
8271 #define _DAC2CON0_DAC2OE1       0x20
8272 #define _DAC2CON0_FM            0x40
8273 #define _DAC2CON0_DACFM         0x40
8274 #define _DAC2CON0_DAC2FM        0x40
8275 #define _DAC2CON0_EN            0x80
8276 #define _DAC2CON0_DACEN         0x80
8277 #define _DAC2CON0_DAC2EN        0x80
8278 
8279 //==============================================================================
8280 
8281 
8282 //==============================================================================
8283 //        DAC2CON1 Bits
8284 
8285 extern __at(0x0592) __sfr DAC2CON1;
8286 
8287 typedef union
8288   {
8289   struct
8290     {
8291     unsigned REF0               : 1;
8292     unsigned REF1               : 1;
8293     unsigned REF2               : 1;
8294     unsigned REF3               : 1;
8295     unsigned REF4               : 1;
8296     unsigned REF5               : 1;
8297     unsigned REF6               : 1;
8298     unsigned REF7               : 1;
8299     };
8300 
8301   struct
8302     {
8303     unsigned DAC2REF0           : 1;
8304     unsigned DAC2REF1           : 1;
8305     unsigned DAC2REF2           : 1;
8306     unsigned DAC2REF3           : 1;
8307     unsigned DAC2REF4           : 1;
8308     unsigned DAC2REF5           : 1;
8309     unsigned DAC2REF6           : 1;
8310     unsigned DAC2REF7           : 1;
8311     };
8312 
8313   struct
8314     {
8315     unsigned R0                 : 1;
8316     unsigned R1                 : 1;
8317     unsigned R2                 : 1;
8318     unsigned R3                 : 1;
8319     unsigned R4                 : 1;
8320     unsigned R5                 : 1;
8321     unsigned R6                 : 1;
8322     unsigned R7                 : 1;
8323     };
8324 
8325   struct
8326     {
8327     unsigned DAC2R0             : 1;
8328     unsigned DAC2R1             : 1;
8329     unsigned DAC2R2             : 1;
8330     unsigned DAC2R3             : 1;
8331     unsigned DAC2R4             : 1;
8332     unsigned DAC2R5             : 1;
8333     unsigned DAC2R6             : 1;
8334     unsigned DAC2R7             : 1;
8335     };
8336   } __DAC2CON1bits_t;
8337 
8338 extern __at(0x0592) volatile __DAC2CON1bits_t DAC2CON1bits;
8339 
8340 #define _DAC2CON1_REF0          0x01
8341 #define _DAC2CON1_DAC2REF0      0x01
8342 #define _DAC2CON1_R0            0x01
8343 #define _DAC2CON1_DAC2R0        0x01
8344 #define _DAC2CON1_REF1          0x02
8345 #define _DAC2CON1_DAC2REF1      0x02
8346 #define _DAC2CON1_R1            0x02
8347 #define _DAC2CON1_DAC2R1        0x02
8348 #define _DAC2CON1_REF2          0x04
8349 #define _DAC2CON1_DAC2REF2      0x04
8350 #define _DAC2CON1_R2            0x04
8351 #define _DAC2CON1_DAC2R2        0x04
8352 #define _DAC2CON1_REF3          0x08
8353 #define _DAC2CON1_DAC2REF3      0x08
8354 #define _DAC2CON1_R3            0x08
8355 #define _DAC2CON1_DAC2R3        0x08
8356 #define _DAC2CON1_REF4          0x10
8357 #define _DAC2CON1_DAC2REF4      0x10
8358 #define _DAC2CON1_R4            0x10
8359 #define _DAC2CON1_DAC2R4        0x10
8360 #define _DAC2CON1_REF5          0x20
8361 #define _DAC2CON1_DAC2REF5      0x20
8362 #define _DAC2CON1_R5            0x20
8363 #define _DAC2CON1_DAC2R5        0x20
8364 #define _DAC2CON1_REF6          0x40
8365 #define _DAC2CON1_DAC2REF6      0x40
8366 #define _DAC2CON1_R6            0x40
8367 #define _DAC2CON1_DAC2R6        0x40
8368 #define _DAC2CON1_REF7          0x80
8369 #define _DAC2CON1_DAC2REF7      0x80
8370 #define _DAC2CON1_R7            0x80
8371 #define _DAC2CON1_DAC2R7        0x80
8372 
8373 //==============================================================================
8374 
8375 extern __at(0x0592) __sfr DAC2REF;
8376 
8377 //==============================================================================
8378 //        DAC2REFL Bits
8379 
8380 extern __at(0x0592) __sfr DAC2REFL;
8381 
8382 typedef union
8383   {
8384   struct
8385     {
8386     unsigned REF0               : 1;
8387     unsigned REF1               : 1;
8388     unsigned REF2               : 1;
8389     unsigned REF3               : 1;
8390     unsigned REF4               : 1;
8391     unsigned REF5               : 1;
8392     unsigned REF6               : 1;
8393     unsigned REF7               : 1;
8394     };
8395 
8396   struct
8397     {
8398     unsigned DAC2REF0           : 1;
8399     unsigned DAC2REF1           : 1;
8400     unsigned DAC2REF2           : 1;
8401     unsigned DAC2REF3           : 1;
8402     unsigned DAC2REF4           : 1;
8403     unsigned DAC2REF5           : 1;
8404     unsigned DAC2REF6           : 1;
8405     unsigned DAC2REF7           : 1;
8406     };
8407 
8408   struct
8409     {
8410     unsigned R0                 : 1;
8411     unsigned R1                 : 1;
8412     unsigned R2                 : 1;
8413     unsigned R3                 : 1;
8414     unsigned R4                 : 1;
8415     unsigned R5                 : 1;
8416     unsigned R6                 : 1;
8417     unsigned R7                 : 1;
8418     };
8419 
8420   struct
8421     {
8422     unsigned DAC2R0             : 1;
8423     unsigned DAC2R1             : 1;
8424     unsigned DAC2R2             : 1;
8425     unsigned DAC2R3             : 1;
8426     unsigned DAC2R4             : 1;
8427     unsigned DAC2R5             : 1;
8428     unsigned DAC2R6             : 1;
8429     unsigned DAC2R7             : 1;
8430     };
8431   } __DAC2REFLbits_t;
8432 
8433 extern __at(0x0592) volatile __DAC2REFLbits_t DAC2REFLbits;
8434 
8435 #define _DAC2REFL_REF0          0x01
8436 #define _DAC2REFL_DAC2REF0      0x01
8437 #define _DAC2REFL_R0            0x01
8438 #define _DAC2REFL_DAC2R0        0x01
8439 #define _DAC2REFL_REF1          0x02
8440 #define _DAC2REFL_DAC2REF1      0x02
8441 #define _DAC2REFL_R1            0x02
8442 #define _DAC2REFL_DAC2R1        0x02
8443 #define _DAC2REFL_REF2          0x04
8444 #define _DAC2REFL_DAC2REF2      0x04
8445 #define _DAC2REFL_R2            0x04
8446 #define _DAC2REFL_DAC2R2        0x04
8447 #define _DAC2REFL_REF3          0x08
8448 #define _DAC2REFL_DAC2REF3      0x08
8449 #define _DAC2REFL_R3            0x08
8450 #define _DAC2REFL_DAC2R3        0x08
8451 #define _DAC2REFL_REF4          0x10
8452 #define _DAC2REFL_DAC2REF4      0x10
8453 #define _DAC2REFL_R4            0x10
8454 #define _DAC2REFL_DAC2R4        0x10
8455 #define _DAC2REFL_REF5          0x20
8456 #define _DAC2REFL_DAC2REF5      0x20
8457 #define _DAC2REFL_R5            0x20
8458 #define _DAC2REFL_DAC2R5        0x20
8459 #define _DAC2REFL_REF6          0x40
8460 #define _DAC2REFL_DAC2REF6      0x40
8461 #define _DAC2REFL_R6            0x40
8462 #define _DAC2REFL_DAC2R6        0x40
8463 #define _DAC2REFL_REF7          0x80
8464 #define _DAC2REFL_DAC2REF7      0x80
8465 #define _DAC2REFL_R7            0x80
8466 #define _DAC2REFL_DAC2R7        0x80
8467 
8468 //==============================================================================
8469 
8470 
8471 //==============================================================================
8472 //        DAC2CON2 Bits
8473 
8474 extern __at(0x0593) __sfr DAC2CON2;
8475 
8476 typedef union
8477   {
8478   struct
8479     {
8480     unsigned REF8               : 1;
8481     unsigned REF9               : 1;
8482     unsigned REF10              : 1;
8483     unsigned REF11              : 1;
8484     unsigned REF12              : 1;
8485     unsigned REF13              : 1;
8486     unsigned REF14              : 1;
8487     unsigned REF15              : 1;
8488     };
8489 
8490   struct
8491     {
8492     unsigned DAC2REF8           : 1;
8493     unsigned DAC2REF9           : 1;
8494     unsigned DAC2REF10          : 1;
8495     unsigned DAC2REF11          : 1;
8496     unsigned DAC2REF12          : 1;
8497     unsigned DAC2REF13          : 1;
8498     unsigned DAC2REF14          : 1;
8499     unsigned DAC2REF15          : 1;
8500     };
8501 
8502   struct
8503     {
8504     unsigned R8                 : 1;
8505     unsigned R9                 : 1;
8506     unsigned R10                : 1;
8507     unsigned R11                : 1;
8508     unsigned R12                : 1;
8509     unsigned R13                : 1;
8510     unsigned R14                : 1;
8511     unsigned R15                : 1;
8512     };
8513 
8514   struct
8515     {
8516     unsigned DAC2R8             : 1;
8517     unsigned DAC2R9             : 1;
8518     unsigned DAC2R10            : 1;
8519     unsigned DAC2R11            : 1;
8520     unsigned DAC2R12            : 1;
8521     unsigned DAC2R13            : 1;
8522     unsigned DAC2R14            : 1;
8523     unsigned DAC2R15            : 1;
8524     };
8525   } __DAC2CON2bits_t;
8526 
8527 extern __at(0x0593) volatile __DAC2CON2bits_t DAC2CON2bits;
8528 
8529 #define _DAC2CON2_REF8          0x01
8530 #define _DAC2CON2_DAC2REF8      0x01
8531 #define _DAC2CON2_R8            0x01
8532 #define _DAC2CON2_DAC2R8        0x01
8533 #define _DAC2CON2_REF9          0x02
8534 #define _DAC2CON2_DAC2REF9      0x02
8535 #define _DAC2CON2_R9            0x02
8536 #define _DAC2CON2_DAC2R9        0x02
8537 #define _DAC2CON2_REF10         0x04
8538 #define _DAC2CON2_DAC2REF10     0x04
8539 #define _DAC2CON2_R10           0x04
8540 #define _DAC2CON2_DAC2R10       0x04
8541 #define _DAC2CON2_REF11         0x08
8542 #define _DAC2CON2_DAC2REF11     0x08
8543 #define _DAC2CON2_R11           0x08
8544 #define _DAC2CON2_DAC2R11       0x08
8545 #define _DAC2CON2_REF12         0x10
8546 #define _DAC2CON2_DAC2REF12     0x10
8547 #define _DAC2CON2_R12           0x10
8548 #define _DAC2CON2_DAC2R12       0x10
8549 #define _DAC2CON2_REF13         0x20
8550 #define _DAC2CON2_DAC2REF13     0x20
8551 #define _DAC2CON2_R13           0x20
8552 #define _DAC2CON2_DAC2R13       0x20
8553 #define _DAC2CON2_REF14         0x40
8554 #define _DAC2CON2_DAC2REF14     0x40
8555 #define _DAC2CON2_R14           0x40
8556 #define _DAC2CON2_DAC2R14       0x40
8557 #define _DAC2CON2_REF15         0x80
8558 #define _DAC2CON2_DAC2REF15     0x80
8559 #define _DAC2CON2_R15           0x80
8560 #define _DAC2CON2_DAC2R15       0x80
8561 
8562 //==============================================================================
8563 
8564 
8565 //==============================================================================
8566 //        DAC2REFH Bits
8567 
8568 extern __at(0x0593) __sfr DAC2REFH;
8569 
8570 typedef union
8571   {
8572   struct
8573     {
8574     unsigned REF8               : 1;
8575     unsigned REF9               : 1;
8576     unsigned REF10              : 1;
8577     unsigned REF11              : 1;
8578     unsigned REF12              : 1;
8579     unsigned REF13              : 1;
8580     unsigned REF14              : 1;
8581     unsigned REF15              : 1;
8582     };
8583 
8584   struct
8585     {
8586     unsigned DAC2REF8           : 1;
8587     unsigned DAC2REF9           : 1;
8588     unsigned DAC2REF10          : 1;
8589     unsigned DAC2REF11          : 1;
8590     unsigned DAC2REF12          : 1;
8591     unsigned DAC2REF13          : 1;
8592     unsigned DAC2REF14          : 1;
8593     unsigned DAC2REF15          : 1;
8594     };
8595 
8596   struct
8597     {
8598     unsigned R8                 : 1;
8599     unsigned R9                 : 1;
8600     unsigned R10                : 1;
8601     unsigned R11                : 1;
8602     unsigned R12                : 1;
8603     unsigned R13                : 1;
8604     unsigned R14                : 1;
8605     unsigned R15                : 1;
8606     };
8607 
8608   struct
8609     {
8610     unsigned DAC2R8             : 1;
8611     unsigned DAC2R9             : 1;
8612     unsigned DAC2R10            : 1;
8613     unsigned DAC2R11            : 1;
8614     unsigned DAC2R12            : 1;
8615     unsigned DAC2R13            : 1;
8616     unsigned DAC2R14            : 1;
8617     unsigned DAC2R15            : 1;
8618     };
8619   } __DAC2REFHbits_t;
8620 
8621 extern __at(0x0593) volatile __DAC2REFHbits_t DAC2REFHbits;
8622 
8623 #define _DAC2REFH_REF8          0x01
8624 #define _DAC2REFH_DAC2REF8      0x01
8625 #define _DAC2REFH_R8            0x01
8626 #define _DAC2REFH_DAC2R8        0x01
8627 #define _DAC2REFH_REF9          0x02
8628 #define _DAC2REFH_DAC2REF9      0x02
8629 #define _DAC2REFH_R9            0x02
8630 #define _DAC2REFH_DAC2R9        0x02
8631 #define _DAC2REFH_REF10         0x04
8632 #define _DAC2REFH_DAC2REF10     0x04
8633 #define _DAC2REFH_R10           0x04
8634 #define _DAC2REFH_DAC2R10       0x04
8635 #define _DAC2REFH_REF11         0x08
8636 #define _DAC2REFH_DAC2REF11     0x08
8637 #define _DAC2REFH_R11           0x08
8638 #define _DAC2REFH_DAC2R11       0x08
8639 #define _DAC2REFH_REF12         0x10
8640 #define _DAC2REFH_DAC2REF12     0x10
8641 #define _DAC2REFH_R12           0x10
8642 #define _DAC2REFH_DAC2R12       0x10
8643 #define _DAC2REFH_REF13         0x20
8644 #define _DAC2REFH_DAC2REF13     0x20
8645 #define _DAC2REFH_R13           0x20
8646 #define _DAC2REFH_DAC2R13       0x20
8647 #define _DAC2REFH_REF14         0x40
8648 #define _DAC2REFH_DAC2REF14     0x40
8649 #define _DAC2REFH_R14           0x40
8650 #define _DAC2REFH_DAC2R14       0x40
8651 #define _DAC2REFH_REF15         0x80
8652 #define _DAC2REFH_DAC2REF15     0x80
8653 #define _DAC2REFH_R15           0x80
8654 #define _DAC2REFH_DAC2R15       0x80
8655 
8656 //==============================================================================
8657 
8658 
8659 //==============================================================================
8660 //        DAC3CON0 Bits
8661 
8662 extern __at(0x0594) __sfr DAC3CON0;
8663 
8664 typedef union
8665   {
8666   struct
8667     {
8668     unsigned NSS0               : 1;
8669     unsigned NSS1               : 1;
8670     unsigned PSS0               : 1;
8671     unsigned PSS1               : 1;
8672     unsigned OE2                : 1;
8673     unsigned OE1                : 1;
8674     unsigned                    : 1;
8675     unsigned EN                 : 1;
8676     };
8677 
8678   struct
8679     {
8680     unsigned DACNSS0            : 1;
8681     unsigned DACNSS1            : 1;
8682     unsigned DACPSS0            : 1;
8683     unsigned DACPSS1            : 1;
8684     unsigned DACOE2             : 1;
8685     unsigned DACOE1             : 1;
8686     unsigned                    : 1;
8687     unsigned DACEN              : 1;
8688     };
8689 
8690   struct
8691     {
8692     unsigned DAC3NSS0           : 1;
8693     unsigned DAC3NSS1           : 1;
8694     unsigned DAC3PSS0           : 1;
8695     unsigned DAC3PSS1           : 1;
8696     unsigned DAC3OE2            : 1;
8697     unsigned DAC3OE1            : 1;
8698     unsigned                    : 1;
8699     unsigned DAC3EN             : 1;
8700     };
8701 
8702   struct
8703     {
8704     unsigned DAC3NSS            : 2;
8705     unsigned                    : 6;
8706     };
8707 
8708   struct
8709     {
8710     unsigned DACNSS             : 2;
8711     unsigned                    : 6;
8712     };
8713 
8714   struct
8715     {
8716     unsigned NSS                : 2;
8717     unsigned                    : 6;
8718     };
8719 
8720   struct
8721     {
8722     unsigned                    : 2;
8723     unsigned PSS                : 2;
8724     unsigned                    : 4;
8725     };
8726 
8727   struct
8728     {
8729     unsigned                    : 2;
8730     unsigned DACPSS             : 2;
8731     unsigned                    : 4;
8732     };
8733 
8734   struct
8735     {
8736     unsigned                    : 2;
8737     unsigned DAC3PSS            : 2;
8738     unsigned                    : 4;
8739     };
8740   } __DAC3CON0bits_t;
8741 
8742 extern __at(0x0594) volatile __DAC3CON0bits_t DAC3CON0bits;
8743 
8744 #define _DAC3CON0_NSS0          0x01
8745 #define _DAC3CON0_DACNSS0       0x01
8746 #define _DAC3CON0_DAC3NSS0      0x01
8747 #define _DAC3CON0_NSS1          0x02
8748 #define _DAC3CON0_DACNSS1       0x02
8749 #define _DAC3CON0_DAC3NSS1      0x02
8750 #define _DAC3CON0_PSS0          0x04
8751 #define _DAC3CON0_DACPSS0       0x04
8752 #define _DAC3CON0_DAC3PSS0      0x04
8753 #define _DAC3CON0_PSS1          0x08
8754 #define _DAC3CON0_DACPSS1       0x08
8755 #define _DAC3CON0_DAC3PSS1      0x08
8756 #define _DAC3CON0_OE2           0x10
8757 #define _DAC3CON0_DACOE2        0x10
8758 #define _DAC3CON0_DAC3OE2       0x10
8759 #define _DAC3CON0_OE1           0x20
8760 #define _DAC3CON0_DACOE1        0x20
8761 #define _DAC3CON0_DAC3OE1       0x20
8762 #define _DAC3CON0_EN            0x80
8763 #define _DAC3CON0_DACEN         0x80
8764 #define _DAC3CON0_DAC3EN        0x80
8765 
8766 //==============================================================================
8767 
8768 
8769 //==============================================================================
8770 //        DAC3CON1 Bits
8771 
8772 extern __at(0x0595) __sfr DAC3CON1;
8773 
8774 typedef union
8775   {
8776   struct
8777     {
8778     unsigned DACR0              : 1;
8779     unsigned DACR1              : 1;
8780     unsigned DACR2              : 1;
8781     unsigned DACR3              : 1;
8782     unsigned DACR4              : 1;
8783     unsigned                    : 1;
8784     unsigned                    : 1;
8785     unsigned                    : 1;
8786     };
8787 
8788   struct
8789     {
8790     unsigned R0                 : 1;
8791     unsigned R1                 : 1;
8792     unsigned R2                 : 1;
8793     unsigned R3                 : 1;
8794     unsigned R4                 : 1;
8795     unsigned                    : 1;
8796     unsigned                    : 1;
8797     unsigned                    : 1;
8798     };
8799 
8800   struct
8801     {
8802     unsigned DAC3R0             : 1;
8803     unsigned DAC3R1             : 1;
8804     unsigned DAC3R2             : 1;
8805     unsigned DAC3R3             : 1;
8806     unsigned DAC3R4             : 1;
8807     unsigned                    : 1;
8808     unsigned                    : 1;
8809     unsigned                    : 1;
8810     };
8811 
8812   struct
8813     {
8814     unsigned REF0               : 1;
8815     unsigned REF1               : 1;
8816     unsigned REF2               : 1;
8817     unsigned REF3               : 1;
8818     unsigned REF4               : 1;
8819     unsigned                    : 1;
8820     unsigned                    : 1;
8821     unsigned                    : 1;
8822     };
8823 
8824   struct
8825     {
8826     unsigned DAC3REF0           : 1;
8827     unsigned DAC3REF1           : 1;
8828     unsigned DAC3REF2           : 1;
8829     unsigned DAC3REF3           : 1;
8830     unsigned DAC3REF4           : 1;
8831     unsigned                    : 1;
8832     unsigned                    : 1;
8833     unsigned                    : 1;
8834     };
8835 
8836   struct
8837     {
8838     unsigned DACR               : 5;
8839     unsigned                    : 3;
8840     };
8841 
8842   struct
8843     {
8844     unsigned DAC3REF            : 5;
8845     unsigned                    : 3;
8846     };
8847 
8848   struct
8849     {
8850     unsigned R                  : 5;
8851     unsigned                    : 3;
8852     };
8853 
8854   struct
8855     {
8856     unsigned REF                : 5;
8857     unsigned                    : 3;
8858     };
8859 
8860   struct
8861     {
8862     unsigned DAC3R              : 5;
8863     unsigned                    : 3;
8864     };
8865   } __DAC3CON1bits_t;
8866 
8867 extern __at(0x0595) volatile __DAC3CON1bits_t DAC3CON1bits;
8868 
8869 #define _DAC3CON1_DACR0         0x01
8870 #define _DAC3CON1_R0            0x01
8871 #define _DAC3CON1_DAC3R0        0x01
8872 #define _DAC3CON1_REF0          0x01
8873 #define _DAC3CON1_DAC3REF0      0x01
8874 #define _DAC3CON1_DACR1         0x02
8875 #define _DAC3CON1_R1            0x02
8876 #define _DAC3CON1_DAC3R1        0x02
8877 #define _DAC3CON1_REF1          0x02
8878 #define _DAC3CON1_DAC3REF1      0x02
8879 #define _DAC3CON1_DACR2         0x04
8880 #define _DAC3CON1_R2            0x04
8881 #define _DAC3CON1_DAC3R2        0x04
8882 #define _DAC3CON1_REF2          0x04
8883 #define _DAC3CON1_DAC3REF2      0x04
8884 #define _DAC3CON1_DACR3         0x08
8885 #define _DAC3CON1_R3            0x08
8886 #define _DAC3CON1_DAC3R3        0x08
8887 #define _DAC3CON1_REF3          0x08
8888 #define _DAC3CON1_DAC3REF3      0x08
8889 #define _DAC3CON1_DACR4         0x10
8890 #define _DAC3CON1_R4            0x10
8891 #define _DAC3CON1_DAC3R4        0x10
8892 #define _DAC3CON1_REF4          0x10
8893 #define _DAC3CON1_DAC3REF4      0x10
8894 
8895 //==============================================================================
8896 
8897 
8898 //==============================================================================
8899 //        DAC3REF Bits
8900 
8901 extern __at(0x0595) __sfr DAC3REF;
8902 
8903 typedef union
8904   {
8905   struct
8906     {
8907     unsigned DACR0              : 1;
8908     unsigned DACR1              : 1;
8909     unsigned DACR2              : 1;
8910     unsigned DACR3              : 1;
8911     unsigned DACR4              : 1;
8912     unsigned                    : 1;
8913     unsigned                    : 1;
8914     unsigned                    : 1;
8915     };
8916 
8917   struct
8918     {
8919     unsigned R0                 : 1;
8920     unsigned R1                 : 1;
8921     unsigned R2                 : 1;
8922     unsigned R3                 : 1;
8923     unsigned R4                 : 1;
8924     unsigned                    : 1;
8925     unsigned                    : 1;
8926     unsigned                    : 1;
8927     };
8928 
8929   struct
8930     {
8931     unsigned DAC3R0             : 1;
8932     unsigned DAC3R1             : 1;
8933     unsigned DAC3R2             : 1;
8934     unsigned DAC3R3             : 1;
8935     unsigned DAC3R4             : 1;
8936     unsigned                    : 1;
8937     unsigned                    : 1;
8938     unsigned                    : 1;
8939     };
8940 
8941   struct
8942     {
8943     unsigned REF0               : 1;
8944     unsigned REF1               : 1;
8945     unsigned REF2               : 1;
8946     unsigned REF3               : 1;
8947     unsigned REF4               : 1;
8948     unsigned                    : 1;
8949     unsigned                    : 1;
8950     unsigned                    : 1;
8951     };
8952 
8953   struct
8954     {
8955     unsigned DAC3REF0           : 1;
8956     unsigned DAC3REF1           : 1;
8957     unsigned DAC3REF2           : 1;
8958     unsigned DAC3REF3           : 1;
8959     unsigned DAC3REF4           : 1;
8960     unsigned                    : 1;
8961     unsigned                    : 1;
8962     unsigned                    : 1;
8963     };
8964 
8965   struct
8966     {
8967     unsigned DACR               : 5;
8968     unsigned                    : 3;
8969     };
8970 
8971   struct
8972     {
8973     unsigned DAC3REF            : 5;
8974     unsigned                    : 3;
8975     };
8976 
8977   struct
8978     {
8979     unsigned REF                : 5;
8980     unsigned                    : 3;
8981     };
8982 
8983   struct
8984     {
8985     unsigned R                  : 5;
8986     unsigned                    : 3;
8987     };
8988 
8989   struct
8990     {
8991     unsigned DAC3R              : 5;
8992     unsigned                    : 3;
8993     };
8994   } __DAC3REFbits_t;
8995 
8996 extern __at(0x0595) volatile __DAC3REFbits_t DAC3REFbits;
8997 
8998 #define _DAC3REF_DACR0          0x01
8999 #define _DAC3REF_R0             0x01
9000 #define _DAC3REF_DAC3R0         0x01
9001 #define _DAC3REF_REF0           0x01
9002 #define _DAC3REF_DAC3REF0       0x01
9003 #define _DAC3REF_DACR1          0x02
9004 #define _DAC3REF_R1             0x02
9005 #define _DAC3REF_DAC3R1         0x02
9006 #define _DAC3REF_REF1           0x02
9007 #define _DAC3REF_DAC3REF1       0x02
9008 #define _DAC3REF_DACR2          0x04
9009 #define _DAC3REF_R2             0x04
9010 #define _DAC3REF_DAC3R2         0x04
9011 #define _DAC3REF_REF2           0x04
9012 #define _DAC3REF_DAC3REF2       0x04
9013 #define _DAC3REF_DACR3          0x08
9014 #define _DAC3REF_R3             0x08
9015 #define _DAC3REF_DAC3R3         0x08
9016 #define _DAC3REF_REF3           0x08
9017 #define _DAC3REF_DAC3REF3       0x08
9018 #define _DAC3REF_DACR4          0x10
9019 #define _DAC3REF_R4             0x10
9020 #define _DAC3REF_DAC3R4         0x10
9021 #define _DAC3REF_REF4           0x10
9022 #define _DAC3REF_DAC3REF4       0x10
9023 
9024 //==============================================================================
9025 
9026 
9027 //==============================================================================
9028 //        DAC4CON0 Bits
9029 
9030 extern __at(0x0596) __sfr DAC4CON0;
9031 
9032 typedef union
9033   {
9034   struct
9035     {
9036     unsigned NSS0               : 1;
9037     unsigned NSS1               : 1;
9038     unsigned PSS0               : 1;
9039     unsigned PSS1               : 1;
9040     unsigned OE2                : 1;
9041     unsigned OE1                : 1;
9042     unsigned                    : 1;
9043     unsigned EN                 : 1;
9044     };
9045 
9046   struct
9047     {
9048     unsigned DACNSS0            : 1;
9049     unsigned DACNSS1            : 1;
9050     unsigned DACPSS0            : 1;
9051     unsigned DACPSS1            : 1;
9052     unsigned DACOE2             : 1;
9053     unsigned DACOE1             : 1;
9054     unsigned                    : 1;
9055     unsigned DACEN              : 1;
9056     };
9057 
9058   struct
9059     {
9060     unsigned DAC4NSS0           : 1;
9061     unsigned DAC4NSS1           : 1;
9062     unsigned DAC4PSS0           : 1;
9063     unsigned DAC4PSS1           : 1;
9064     unsigned DAC4OE2            : 1;
9065     unsigned DAC4OE1            : 1;
9066     unsigned                    : 1;
9067     unsigned DAC4EN             : 1;
9068     };
9069 
9070   struct
9071     {
9072     unsigned DACNSS             : 2;
9073     unsigned                    : 6;
9074     };
9075 
9076   struct
9077     {
9078     unsigned NSS                : 2;
9079     unsigned                    : 6;
9080     };
9081 
9082   struct
9083     {
9084     unsigned DAC4NSS            : 2;
9085     unsigned                    : 6;
9086     };
9087 
9088   struct
9089     {
9090     unsigned                    : 2;
9091     unsigned DAC4PSS            : 2;
9092     unsigned                    : 4;
9093     };
9094 
9095   struct
9096     {
9097     unsigned                    : 2;
9098     unsigned DACPSS             : 2;
9099     unsigned                    : 4;
9100     };
9101 
9102   struct
9103     {
9104     unsigned                    : 2;
9105     unsigned PSS                : 2;
9106     unsigned                    : 4;
9107     };
9108   } __DAC4CON0bits_t;
9109 
9110 extern __at(0x0596) volatile __DAC4CON0bits_t DAC4CON0bits;
9111 
9112 #define _DAC4CON0_NSS0          0x01
9113 #define _DAC4CON0_DACNSS0       0x01
9114 #define _DAC4CON0_DAC4NSS0      0x01
9115 #define _DAC4CON0_NSS1          0x02
9116 #define _DAC4CON0_DACNSS1       0x02
9117 #define _DAC4CON0_DAC4NSS1      0x02
9118 #define _DAC4CON0_PSS0          0x04
9119 #define _DAC4CON0_DACPSS0       0x04
9120 #define _DAC4CON0_DAC4PSS0      0x04
9121 #define _DAC4CON0_PSS1          0x08
9122 #define _DAC4CON0_DACPSS1       0x08
9123 #define _DAC4CON0_DAC4PSS1      0x08
9124 #define _DAC4CON0_OE2           0x10
9125 #define _DAC4CON0_DACOE2        0x10
9126 #define _DAC4CON0_DAC4OE2       0x10
9127 #define _DAC4CON0_OE1           0x20
9128 #define _DAC4CON0_DACOE1        0x20
9129 #define _DAC4CON0_DAC4OE1       0x20
9130 #define _DAC4CON0_EN            0x80
9131 #define _DAC4CON0_DACEN         0x80
9132 #define _DAC4CON0_DAC4EN        0x80
9133 
9134 //==============================================================================
9135 
9136 
9137 //==============================================================================
9138 //        DAC4CON1 Bits
9139 
9140 extern __at(0x0597) __sfr DAC4CON1;
9141 
9142 typedef union
9143   {
9144   struct
9145     {
9146     unsigned DACR0              : 1;
9147     unsigned DACR1              : 1;
9148     unsigned DACR2              : 1;
9149     unsigned DACR3              : 1;
9150     unsigned DACR4              : 1;
9151     unsigned                    : 1;
9152     unsigned                    : 1;
9153     unsigned                    : 1;
9154     };
9155 
9156   struct
9157     {
9158     unsigned R0                 : 1;
9159     unsigned R1                 : 1;
9160     unsigned R2                 : 1;
9161     unsigned R3                 : 1;
9162     unsigned R4                 : 1;
9163     unsigned                    : 1;
9164     unsigned                    : 1;
9165     unsigned                    : 1;
9166     };
9167 
9168   struct
9169     {
9170     unsigned DAC4R0             : 1;
9171     unsigned DAC4R1             : 1;
9172     unsigned DAC4R2             : 1;
9173     unsigned DAC4R3             : 1;
9174     unsigned DAC4R4             : 1;
9175     unsigned                    : 1;
9176     unsigned                    : 1;
9177     unsigned                    : 1;
9178     };
9179 
9180   struct
9181     {
9182     unsigned REF0               : 1;
9183     unsigned REF1               : 1;
9184     unsigned REF2               : 1;
9185     unsigned REF3               : 1;
9186     unsigned REF4               : 1;
9187     unsigned                    : 1;
9188     unsigned                    : 1;
9189     unsigned                    : 1;
9190     };
9191 
9192   struct
9193     {
9194     unsigned DAC4REF0           : 1;
9195     unsigned DAC4REF1           : 1;
9196     unsigned DAC4REF2           : 1;
9197     unsigned DAC4REF3           : 1;
9198     unsigned DAC4REF4           : 1;
9199     unsigned                    : 1;
9200     unsigned                    : 1;
9201     unsigned                    : 1;
9202     };
9203 
9204   struct
9205     {
9206     unsigned DAC4REF            : 5;
9207     unsigned                    : 3;
9208     };
9209 
9210   struct
9211     {
9212     unsigned DAC4R              : 5;
9213     unsigned                    : 3;
9214     };
9215 
9216   struct
9217     {
9218     unsigned DACR               : 5;
9219     unsigned                    : 3;
9220     };
9221 
9222   struct
9223     {
9224     unsigned REF                : 5;
9225     unsigned                    : 3;
9226     };
9227 
9228   struct
9229     {
9230     unsigned R                  : 5;
9231     unsigned                    : 3;
9232     };
9233   } __DAC4CON1bits_t;
9234 
9235 extern __at(0x0597) volatile __DAC4CON1bits_t DAC4CON1bits;
9236 
9237 #define _DAC4CON1_DACR0         0x01
9238 #define _DAC4CON1_R0            0x01
9239 #define _DAC4CON1_DAC4R0        0x01
9240 #define _DAC4CON1_REF0          0x01
9241 #define _DAC4CON1_DAC4REF0      0x01
9242 #define _DAC4CON1_DACR1         0x02
9243 #define _DAC4CON1_R1            0x02
9244 #define _DAC4CON1_DAC4R1        0x02
9245 #define _DAC4CON1_REF1          0x02
9246 #define _DAC4CON1_DAC4REF1      0x02
9247 #define _DAC4CON1_DACR2         0x04
9248 #define _DAC4CON1_R2            0x04
9249 #define _DAC4CON1_DAC4R2        0x04
9250 #define _DAC4CON1_REF2          0x04
9251 #define _DAC4CON1_DAC4REF2      0x04
9252 #define _DAC4CON1_DACR3         0x08
9253 #define _DAC4CON1_R3            0x08
9254 #define _DAC4CON1_DAC4R3        0x08
9255 #define _DAC4CON1_REF3          0x08
9256 #define _DAC4CON1_DAC4REF3      0x08
9257 #define _DAC4CON1_DACR4         0x10
9258 #define _DAC4CON1_R4            0x10
9259 #define _DAC4CON1_DAC4R4        0x10
9260 #define _DAC4CON1_REF4          0x10
9261 #define _DAC4CON1_DAC4REF4      0x10
9262 
9263 //==============================================================================
9264 
9265 
9266 //==============================================================================
9267 //        DAC4REF Bits
9268 
9269 extern __at(0x0597) __sfr DAC4REF;
9270 
9271 typedef union
9272   {
9273   struct
9274     {
9275     unsigned DACR0              : 1;
9276     unsigned DACR1              : 1;
9277     unsigned DACR2              : 1;
9278     unsigned DACR3              : 1;
9279     unsigned DACR4              : 1;
9280     unsigned                    : 1;
9281     unsigned                    : 1;
9282     unsigned                    : 1;
9283     };
9284 
9285   struct
9286     {
9287     unsigned R0                 : 1;
9288     unsigned R1                 : 1;
9289     unsigned R2                 : 1;
9290     unsigned R3                 : 1;
9291     unsigned R4                 : 1;
9292     unsigned                    : 1;
9293     unsigned                    : 1;
9294     unsigned                    : 1;
9295     };
9296 
9297   struct
9298     {
9299     unsigned DAC4R0             : 1;
9300     unsigned DAC4R1             : 1;
9301     unsigned DAC4R2             : 1;
9302     unsigned DAC4R3             : 1;
9303     unsigned DAC4R4             : 1;
9304     unsigned                    : 1;
9305     unsigned                    : 1;
9306     unsigned                    : 1;
9307     };
9308 
9309   struct
9310     {
9311     unsigned REF0               : 1;
9312     unsigned REF1               : 1;
9313     unsigned REF2               : 1;
9314     unsigned REF3               : 1;
9315     unsigned REF4               : 1;
9316     unsigned                    : 1;
9317     unsigned                    : 1;
9318     unsigned                    : 1;
9319     };
9320 
9321   struct
9322     {
9323     unsigned DAC4REF0           : 1;
9324     unsigned DAC4REF1           : 1;
9325     unsigned DAC4REF2           : 1;
9326     unsigned DAC4REF3           : 1;
9327     unsigned DAC4REF4           : 1;
9328     unsigned                    : 1;
9329     unsigned                    : 1;
9330     unsigned                    : 1;
9331     };
9332 
9333   struct
9334     {
9335     unsigned R                  : 5;
9336     unsigned                    : 3;
9337     };
9338 
9339   struct
9340     {
9341     unsigned REF                : 5;
9342     unsigned                    : 3;
9343     };
9344 
9345   struct
9346     {
9347     unsigned DAC4REF            : 5;
9348     unsigned                    : 3;
9349     };
9350 
9351   struct
9352     {
9353     unsigned DAC4R              : 5;
9354     unsigned                    : 3;
9355     };
9356 
9357   struct
9358     {
9359     unsigned DACR               : 5;
9360     unsigned                    : 3;
9361     };
9362   } __DAC4REFbits_t;
9363 
9364 extern __at(0x0597) volatile __DAC4REFbits_t DAC4REFbits;
9365 
9366 #define _DAC4REF_DACR0          0x01
9367 #define _DAC4REF_R0             0x01
9368 #define _DAC4REF_DAC4R0         0x01
9369 #define _DAC4REF_REF0           0x01
9370 #define _DAC4REF_DAC4REF0       0x01
9371 #define _DAC4REF_DACR1          0x02
9372 #define _DAC4REF_R1             0x02
9373 #define _DAC4REF_DAC4R1         0x02
9374 #define _DAC4REF_REF1           0x02
9375 #define _DAC4REF_DAC4REF1       0x02
9376 #define _DAC4REF_DACR2          0x04
9377 #define _DAC4REF_R2             0x04
9378 #define _DAC4REF_DAC4R2         0x04
9379 #define _DAC4REF_REF2           0x04
9380 #define _DAC4REF_DAC4REF2       0x04
9381 #define _DAC4REF_DACR3          0x08
9382 #define _DAC4REF_R3             0x08
9383 #define _DAC4REF_DAC4R3         0x08
9384 #define _DAC4REF_REF3           0x08
9385 #define _DAC4REF_DAC4REF3       0x08
9386 #define _DAC4REF_DACR4          0x10
9387 #define _DAC4REF_R4             0x10
9388 #define _DAC4REF_DAC4R4         0x10
9389 #define _DAC4REF_REF4           0x10
9390 #define _DAC4REF_DAC4REF4       0x10
9391 
9392 //==============================================================================
9393 
9394 
9395 //==============================================================================
9396 //        DAC5CON0 Bits
9397 
9398 extern __at(0x0598) __sfr DAC5CON0;
9399 
9400 typedef union
9401   {
9402   struct
9403     {
9404     unsigned NSS0               : 1;
9405     unsigned NSS1               : 1;
9406     unsigned PSS0               : 1;
9407     unsigned PSS1               : 1;
9408     unsigned OE2                : 1;
9409     unsigned OE1                : 1;
9410     unsigned FM                 : 1;
9411     unsigned EN                 : 1;
9412     };
9413 
9414   struct
9415     {
9416     unsigned DACNSS0            : 1;
9417     unsigned DACNSS1            : 1;
9418     unsigned DACPSS0            : 1;
9419     unsigned DACPSS1            : 1;
9420     unsigned DACOE2             : 1;
9421     unsigned OE                 : 1;
9422     unsigned DACFM              : 1;
9423     unsigned DACEN              : 1;
9424     };
9425 
9426   struct
9427     {
9428     unsigned DAC5NSS0           : 1;
9429     unsigned DAC5NSS1           : 1;
9430     unsigned DAC5PSS0           : 1;
9431     unsigned DAC5PSS1           : 1;
9432     unsigned DAC5OE2            : 1;
9433     unsigned DACOE1             : 1;
9434     unsigned DAC5FM             : 1;
9435     unsigned DAC5EN             : 1;
9436     };
9437 
9438   struct
9439     {
9440     unsigned                    : 1;
9441     unsigned                    : 1;
9442     unsigned                    : 1;
9443     unsigned                    : 1;
9444     unsigned                    : 1;
9445     unsigned DACOE              : 1;
9446     unsigned                    : 1;
9447     unsigned                    : 1;
9448     };
9449 
9450   struct
9451     {
9452     unsigned                    : 1;
9453     unsigned                    : 1;
9454     unsigned                    : 1;
9455     unsigned                    : 1;
9456     unsigned                    : 1;
9457     unsigned DAC5OE1            : 1;
9458     unsigned                    : 1;
9459     unsigned                    : 1;
9460     };
9461 
9462   struct
9463     {
9464     unsigned NSS                : 2;
9465     unsigned                    : 6;
9466     };
9467 
9468   struct
9469     {
9470     unsigned DACNSS             : 2;
9471     unsigned                    : 6;
9472     };
9473 
9474   struct
9475     {
9476     unsigned DAC5NSS            : 2;
9477     unsigned                    : 6;
9478     };
9479 
9480   struct
9481     {
9482     unsigned                    : 2;
9483     unsigned DACPSS             : 2;
9484     unsigned                    : 4;
9485     };
9486 
9487   struct
9488     {
9489     unsigned                    : 2;
9490     unsigned DAC5PSS            : 2;
9491     unsigned                    : 4;
9492     };
9493 
9494   struct
9495     {
9496     unsigned                    : 2;
9497     unsigned PSS                : 2;
9498     unsigned                    : 4;
9499     };
9500   } __DAC5CON0bits_t;
9501 
9502 extern __at(0x0598) volatile __DAC5CON0bits_t DAC5CON0bits;
9503 
9504 #define _DAC5CON0_NSS0          0x01
9505 #define _DAC5CON0_DACNSS0       0x01
9506 #define _DAC5CON0_DAC5NSS0      0x01
9507 #define _DAC5CON0_NSS1          0x02
9508 #define _DAC5CON0_DACNSS1       0x02
9509 #define _DAC5CON0_DAC5NSS1      0x02
9510 #define _DAC5CON0_PSS0          0x04
9511 #define _DAC5CON0_DACPSS0       0x04
9512 #define _DAC5CON0_DAC5PSS0      0x04
9513 #define _DAC5CON0_PSS1          0x08
9514 #define _DAC5CON0_DACPSS1       0x08
9515 #define _DAC5CON0_DAC5PSS1      0x08
9516 #define _DAC5CON0_OE2           0x10
9517 #define _DAC5CON0_DACOE2        0x10
9518 #define _DAC5CON0_DAC5OE2       0x10
9519 #define _DAC5CON0_OE1           0x20
9520 #define _DAC5CON0_OE            0x20
9521 #define _DAC5CON0_DACOE1        0x20
9522 #define _DAC5CON0_DACOE         0x20
9523 #define _DAC5CON0_DAC5OE1       0x20
9524 #define _DAC5CON0_FM            0x40
9525 #define _DAC5CON0_DACFM         0x40
9526 #define _DAC5CON0_DAC5FM        0x40
9527 #define _DAC5CON0_EN            0x80
9528 #define _DAC5CON0_DACEN         0x80
9529 #define _DAC5CON0_DAC5EN        0x80
9530 
9531 //==============================================================================
9532 
9533 
9534 //==============================================================================
9535 //        DAC5CON1 Bits
9536 
9537 extern __at(0x0599) __sfr DAC5CON1;
9538 
9539 typedef union
9540   {
9541   struct
9542     {
9543     unsigned REF0               : 1;
9544     unsigned REF1               : 1;
9545     unsigned REF2               : 1;
9546     unsigned REF3               : 1;
9547     unsigned REF4               : 1;
9548     unsigned REF5               : 1;
9549     unsigned REF6               : 1;
9550     unsigned REF7               : 1;
9551     };
9552 
9553   struct
9554     {
9555     unsigned DAC5REF0           : 1;
9556     unsigned DAC5REF1           : 1;
9557     unsigned DAC5REF2           : 1;
9558     unsigned DAC5REF3           : 1;
9559     unsigned DAC5REF4           : 1;
9560     unsigned DAC5REF5           : 1;
9561     unsigned DAC5REF6           : 1;
9562     unsigned DAC5REF7           : 1;
9563     };
9564 
9565   struct
9566     {
9567     unsigned R0                 : 1;
9568     unsigned R1                 : 1;
9569     unsigned R2                 : 1;
9570     unsigned R3                 : 1;
9571     unsigned R4                 : 1;
9572     unsigned R5                 : 1;
9573     unsigned R6                 : 1;
9574     unsigned R7                 : 1;
9575     };
9576 
9577   struct
9578     {
9579     unsigned DAC5R0             : 1;
9580     unsigned DAC5R1             : 1;
9581     unsigned DAC5R2             : 1;
9582     unsigned DAC5R3             : 1;
9583     unsigned DAC5R4             : 1;
9584     unsigned DAC5R5             : 1;
9585     unsigned DAC5R6             : 1;
9586     unsigned DAC5R7             : 1;
9587     };
9588   } __DAC5CON1bits_t;
9589 
9590 extern __at(0x0599) volatile __DAC5CON1bits_t DAC5CON1bits;
9591 
9592 #define _DAC5CON1_REF0          0x01
9593 #define _DAC5CON1_DAC5REF0      0x01
9594 #define _DAC5CON1_R0            0x01
9595 #define _DAC5CON1_DAC5R0        0x01
9596 #define _DAC5CON1_REF1          0x02
9597 #define _DAC5CON1_DAC5REF1      0x02
9598 #define _DAC5CON1_R1            0x02
9599 #define _DAC5CON1_DAC5R1        0x02
9600 #define _DAC5CON1_REF2          0x04
9601 #define _DAC5CON1_DAC5REF2      0x04
9602 #define _DAC5CON1_R2            0x04
9603 #define _DAC5CON1_DAC5R2        0x04
9604 #define _DAC5CON1_REF3          0x08
9605 #define _DAC5CON1_DAC5REF3      0x08
9606 #define _DAC5CON1_R3            0x08
9607 #define _DAC5CON1_DAC5R3        0x08
9608 #define _DAC5CON1_REF4          0x10
9609 #define _DAC5CON1_DAC5REF4      0x10
9610 #define _DAC5CON1_R4            0x10
9611 #define _DAC5CON1_DAC5R4        0x10
9612 #define _DAC5CON1_REF5          0x20
9613 #define _DAC5CON1_DAC5REF5      0x20
9614 #define _DAC5CON1_R5            0x20
9615 #define _DAC5CON1_DAC5R5        0x20
9616 #define _DAC5CON1_REF6          0x40
9617 #define _DAC5CON1_DAC5REF6      0x40
9618 #define _DAC5CON1_R6            0x40
9619 #define _DAC5CON1_DAC5R6        0x40
9620 #define _DAC5CON1_REF7          0x80
9621 #define _DAC5CON1_DAC5REF7      0x80
9622 #define _DAC5CON1_R7            0x80
9623 #define _DAC5CON1_DAC5R7        0x80
9624 
9625 //==============================================================================
9626 
9627 extern __at(0x0599) __sfr DAC5REF;
9628 
9629 //==============================================================================
9630 //        DAC5REFL Bits
9631 
9632 extern __at(0x0599) __sfr DAC5REFL;
9633 
9634 typedef union
9635   {
9636   struct
9637     {
9638     unsigned REF0               : 1;
9639     unsigned REF1               : 1;
9640     unsigned REF2               : 1;
9641     unsigned REF3               : 1;
9642     unsigned REF4               : 1;
9643     unsigned REF5               : 1;
9644     unsigned REF6               : 1;
9645     unsigned REF7               : 1;
9646     };
9647 
9648   struct
9649     {
9650     unsigned DAC5REF0           : 1;
9651     unsigned DAC5REF1           : 1;
9652     unsigned DAC5REF2           : 1;
9653     unsigned DAC5REF3           : 1;
9654     unsigned DAC5REF4           : 1;
9655     unsigned DAC5REF5           : 1;
9656     unsigned DAC5REF6           : 1;
9657     unsigned DAC5REF7           : 1;
9658     };
9659 
9660   struct
9661     {
9662     unsigned R0                 : 1;
9663     unsigned R1                 : 1;
9664     unsigned R2                 : 1;
9665     unsigned R3                 : 1;
9666     unsigned R4                 : 1;
9667     unsigned R5                 : 1;
9668     unsigned R6                 : 1;
9669     unsigned R7                 : 1;
9670     };
9671 
9672   struct
9673     {
9674     unsigned DAC5R0             : 1;
9675     unsigned DAC5R1             : 1;
9676     unsigned DAC5R2             : 1;
9677     unsigned DAC5R3             : 1;
9678     unsigned DAC5R4             : 1;
9679     unsigned DAC5R5             : 1;
9680     unsigned DAC5R6             : 1;
9681     unsigned DAC5R7             : 1;
9682     };
9683   } __DAC5REFLbits_t;
9684 
9685 extern __at(0x0599) volatile __DAC5REFLbits_t DAC5REFLbits;
9686 
9687 #define _DAC5REFL_REF0          0x01
9688 #define _DAC5REFL_DAC5REF0      0x01
9689 #define _DAC5REFL_R0            0x01
9690 #define _DAC5REFL_DAC5R0        0x01
9691 #define _DAC5REFL_REF1          0x02
9692 #define _DAC5REFL_DAC5REF1      0x02
9693 #define _DAC5REFL_R1            0x02
9694 #define _DAC5REFL_DAC5R1        0x02
9695 #define _DAC5REFL_REF2          0x04
9696 #define _DAC5REFL_DAC5REF2      0x04
9697 #define _DAC5REFL_R2            0x04
9698 #define _DAC5REFL_DAC5R2        0x04
9699 #define _DAC5REFL_REF3          0x08
9700 #define _DAC5REFL_DAC5REF3      0x08
9701 #define _DAC5REFL_R3            0x08
9702 #define _DAC5REFL_DAC5R3        0x08
9703 #define _DAC5REFL_REF4          0x10
9704 #define _DAC5REFL_DAC5REF4      0x10
9705 #define _DAC5REFL_R4            0x10
9706 #define _DAC5REFL_DAC5R4        0x10
9707 #define _DAC5REFL_REF5          0x20
9708 #define _DAC5REFL_DAC5REF5      0x20
9709 #define _DAC5REFL_R5            0x20
9710 #define _DAC5REFL_DAC5R5        0x20
9711 #define _DAC5REFL_REF6          0x40
9712 #define _DAC5REFL_DAC5REF6      0x40
9713 #define _DAC5REFL_R6            0x40
9714 #define _DAC5REFL_DAC5R6        0x40
9715 #define _DAC5REFL_REF7          0x80
9716 #define _DAC5REFL_DAC5REF7      0x80
9717 #define _DAC5REFL_R7            0x80
9718 #define _DAC5REFL_DAC5R7        0x80
9719 
9720 //==============================================================================
9721 
9722 
9723 //==============================================================================
9724 //        DAC5CON2 Bits
9725 
9726 extern __at(0x059A) __sfr DAC5CON2;
9727 
9728 typedef union
9729   {
9730   struct
9731     {
9732     unsigned REF8               : 1;
9733     unsigned REF9               : 1;
9734     unsigned REF10              : 1;
9735     unsigned REF11              : 1;
9736     unsigned REF12              : 1;
9737     unsigned REF13              : 1;
9738     unsigned REF14              : 1;
9739     unsigned REF15              : 1;
9740     };
9741 
9742   struct
9743     {
9744     unsigned DAC5REF8           : 1;
9745     unsigned DAC5REF9           : 1;
9746     unsigned DAC5REF10          : 1;
9747     unsigned DAC5REF11          : 1;
9748     unsigned DAC5REF12          : 1;
9749     unsigned DAC5REF13          : 1;
9750     unsigned DAC5REF14          : 1;
9751     unsigned DAC5REF15          : 1;
9752     };
9753 
9754   struct
9755     {
9756     unsigned R8                 : 1;
9757     unsigned R9                 : 1;
9758     unsigned R10                : 1;
9759     unsigned R11                : 1;
9760     unsigned R12                : 1;
9761     unsigned R13                : 1;
9762     unsigned R14                : 1;
9763     unsigned R15                : 1;
9764     };
9765 
9766   struct
9767     {
9768     unsigned DAC5R8             : 1;
9769     unsigned DAC5R9             : 1;
9770     unsigned DAC5R10            : 1;
9771     unsigned DAC5R11            : 1;
9772     unsigned DAC5R12            : 1;
9773     unsigned DAC5R13            : 1;
9774     unsigned DAC5R14            : 1;
9775     unsigned DAC5R15            : 1;
9776     };
9777   } __DAC5CON2bits_t;
9778 
9779 extern __at(0x059A) volatile __DAC5CON2bits_t DAC5CON2bits;
9780 
9781 #define _DAC5CON2_REF8          0x01
9782 #define _DAC5CON2_DAC5REF8      0x01
9783 #define _DAC5CON2_R8            0x01
9784 #define _DAC5CON2_DAC5R8        0x01
9785 #define _DAC5CON2_REF9          0x02
9786 #define _DAC5CON2_DAC5REF9      0x02
9787 #define _DAC5CON2_R9            0x02
9788 #define _DAC5CON2_DAC5R9        0x02
9789 #define _DAC5CON2_REF10         0x04
9790 #define _DAC5CON2_DAC5REF10     0x04
9791 #define _DAC5CON2_R10           0x04
9792 #define _DAC5CON2_DAC5R10       0x04
9793 #define _DAC5CON2_REF11         0x08
9794 #define _DAC5CON2_DAC5REF11     0x08
9795 #define _DAC5CON2_R11           0x08
9796 #define _DAC5CON2_DAC5R11       0x08
9797 #define _DAC5CON2_REF12         0x10
9798 #define _DAC5CON2_DAC5REF12     0x10
9799 #define _DAC5CON2_R12           0x10
9800 #define _DAC5CON2_DAC5R12       0x10
9801 #define _DAC5CON2_REF13         0x20
9802 #define _DAC5CON2_DAC5REF13     0x20
9803 #define _DAC5CON2_R13           0x20
9804 #define _DAC5CON2_DAC5R13       0x20
9805 #define _DAC5CON2_REF14         0x40
9806 #define _DAC5CON2_DAC5REF14     0x40
9807 #define _DAC5CON2_R14           0x40
9808 #define _DAC5CON2_DAC5R14       0x40
9809 #define _DAC5CON2_REF15         0x80
9810 #define _DAC5CON2_DAC5REF15     0x80
9811 #define _DAC5CON2_R15           0x80
9812 #define _DAC5CON2_DAC5R15       0x80
9813 
9814 //==============================================================================
9815 
9816 
9817 //==============================================================================
9818 //        DAC5REFH Bits
9819 
9820 extern __at(0x059A) __sfr DAC5REFH;
9821 
9822 typedef union
9823   {
9824   struct
9825     {
9826     unsigned REF8               : 1;
9827     unsigned REF9               : 1;
9828     unsigned REF10              : 1;
9829     unsigned REF11              : 1;
9830     unsigned REF12              : 1;
9831     unsigned REF13              : 1;
9832     unsigned REF14              : 1;
9833     unsigned REF15              : 1;
9834     };
9835 
9836   struct
9837     {
9838     unsigned DAC5REF8           : 1;
9839     unsigned DAC5REF9           : 1;
9840     unsigned DAC5REF10          : 1;
9841     unsigned DAC5REF11          : 1;
9842     unsigned DAC5REF12          : 1;
9843     unsigned DAC5REF13          : 1;
9844     unsigned DAC5REF14          : 1;
9845     unsigned DAC5REF15          : 1;
9846     };
9847 
9848   struct
9849     {
9850     unsigned R8                 : 1;
9851     unsigned R9                 : 1;
9852     unsigned R10                : 1;
9853     unsigned R11                : 1;
9854     unsigned R12                : 1;
9855     unsigned R13                : 1;
9856     unsigned R14                : 1;
9857     unsigned R15                : 1;
9858     };
9859 
9860   struct
9861     {
9862     unsigned DAC5R8             : 1;
9863     unsigned DAC5R9             : 1;
9864     unsigned DAC5R10            : 1;
9865     unsigned DAC5R11            : 1;
9866     unsigned DAC5R12            : 1;
9867     unsigned DAC5R13            : 1;
9868     unsigned DAC5R14            : 1;
9869     unsigned DAC5R15            : 1;
9870     };
9871   } __DAC5REFHbits_t;
9872 
9873 extern __at(0x059A) volatile __DAC5REFHbits_t DAC5REFHbits;
9874 
9875 #define _DAC5REFH_REF8          0x01
9876 #define _DAC5REFH_DAC5REF8      0x01
9877 #define _DAC5REFH_R8            0x01
9878 #define _DAC5REFH_DAC5R8        0x01
9879 #define _DAC5REFH_REF9          0x02
9880 #define _DAC5REFH_DAC5REF9      0x02
9881 #define _DAC5REFH_R9            0x02
9882 #define _DAC5REFH_DAC5R9        0x02
9883 #define _DAC5REFH_REF10         0x04
9884 #define _DAC5REFH_DAC5REF10     0x04
9885 #define _DAC5REFH_R10           0x04
9886 #define _DAC5REFH_DAC5R10       0x04
9887 #define _DAC5REFH_REF11         0x08
9888 #define _DAC5REFH_DAC5REF11     0x08
9889 #define _DAC5REFH_R11           0x08
9890 #define _DAC5REFH_DAC5R11       0x08
9891 #define _DAC5REFH_REF12         0x10
9892 #define _DAC5REFH_DAC5REF12     0x10
9893 #define _DAC5REFH_R12           0x10
9894 #define _DAC5REFH_DAC5R12       0x10
9895 #define _DAC5REFH_REF13         0x20
9896 #define _DAC5REFH_DAC5REF13     0x20
9897 #define _DAC5REFH_R13           0x20
9898 #define _DAC5REFH_DAC5R13       0x20
9899 #define _DAC5REFH_REF14         0x40
9900 #define _DAC5REFH_DAC5REF14     0x40
9901 #define _DAC5REFH_R14           0x40
9902 #define _DAC5REFH_DAC5R14       0x40
9903 #define _DAC5REFH_REF15         0x80
9904 #define _DAC5REFH_DAC5REF15     0x80
9905 #define _DAC5REFH_R15           0x80
9906 #define _DAC5REFH_DAC5R15       0x80
9907 
9908 //==============================================================================
9909 
9910 
9911 //==============================================================================
9912 //        DAC7CON0 Bits
9913 
9914 extern __at(0x059E) __sfr DAC7CON0;
9915 
9916 typedef union
9917   {
9918   struct
9919     {
9920     unsigned NSS0               : 1;
9921     unsigned NSS1               : 1;
9922     unsigned PSS0               : 1;
9923     unsigned PSS1               : 1;
9924     unsigned OE2                : 1;
9925     unsigned OE1                : 1;
9926     unsigned                    : 1;
9927     unsigned EN                 : 1;
9928     };
9929 
9930   struct
9931     {
9932     unsigned DACNSS0            : 1;
9933     unsigned DACNSS1            : 1;
9934     unsigned DACPSS0            : 1;
9935     unsigned DACPSS1            : 1;
9936     unsigned DACOE2             : 1;
9937     unsigned DACOE1             : 1;
9938     unsigned                    : 1;
9939     unsigned DACEN              : 1;
9940     };
9941 
9942   struct
9943     {
9944     unsigned DAC7NSS0           : 1;
9945     unsigned DAC7NSS1           : 1;
9946     unsigned DAC7PSS0           : 1;
9947     unsigned DAC7PSS1           : 1;
9948     unsigned DAC7OE2            : 1;
9949     unsigned DAC7OE1            : 1;
9950     unsigned                    : 1;
9951     unsigned DAC7EN             : 1;
9952     };
9953 
9954   struct
9955     {
9956     unsigned DAC7NSS            : 2;
9957     unsigned                    : 6;
9958     };
9959 
9960   struct
9961     {
9962     unsigned DACNSS             : 2;
9963     unsigned                    : 6;
9964     };
9965 
9966   struct
9967     {
9968     unsigned NSS                : 2;
9969     unsigned                    : 6;
9970     };
9971 
9972   struct
9973     {
9974     unsigned                    : 2;
9975     unsigned PSS                : 2;
9976     unsigned                    : 4;
9977     };
9978 
9979   struct
9980     {
9981     unsigned                    : 2;
9982     unsigned DACPSS             : 2;
9983     unsigned                    : 4;
9984     };
9985 
9986   struct
9987     {
9988     unsigned                    : 2;
9989     unsigned DAC7PSS            : 2;
9990     unsigned                    : 4;
9991     };
9992   } __DAC7CON0bits_t;
9993 
9994 extern __at(0x059E) volatile __DAC7CON0bits_t DAC7CON0bits;
9995 
9996 #define _DAC7CON0_NSS0          0x01
9997 #define _DAC7CON0_DACNSS0       0x01
9998 #define _DAC7CON0_DAC7NSS0      0x01
9999 #define _DAC7CON0_NSS1          0x02
10000 #define _DAC7CON0_DACNSS1       0x02
10001 #define _DAC7CON0_DAC7NSS1      0x02
10002 #define _DAC7CON0_PSS0          0x04
10003 #define _DAC7CON0_DACPSS0       0x04
10004 #define _DAC7CON0_DAC7PSS0      0x04
10005 #define _DAC7CON0_PSS1          0x08
10006 #define _DAC7CON0_DACPSS1       0x08
10007 #define _DAC7CON0_DAC7PSS1      0x08
10008 #define _DAC7CON0_OE2           0x10
10009 #define _DAC7CON0_DACOE2        0x10
10010 #define _DAC7CON0_DAC7OE2       0x10
10011 #define _DAC7CON0_OE1           0x20
10012 #define _DAC7CON0_DACOE1        0x20
10013 #define _DAC7CON0_DAC7OE1       0x20
10014 #define _DAC7CON0_EN            0x80
10015 #define _DAC7CON0_DACEN         0x80
10016 #define _DAC7CON0_DAC7EN        0x80
10017 
10018 //==============================================================================
10019 
10020 
10021 //==============================================================================
10022 //        DAC7CON1 Bits
10023 
10024 extern __at(0x059F) __sfr DAC7CON1;
10025 
10026 typedef union
10027   {
10028   struct
10029     {
10030     unsigned DACR0              : 1;
10031     unsigned DACR1              : 1;
10032     unsigned DACR2              : 1;
10033     unsigned DACR3              : 1;
10034     unsigned DACR4              : 1;
10035     unsigned                    : 1;
10036     unsigned                    : 1;
10037     unsigned                    : 1;
10038     };
10039 
10040   struct
10041     {
10042     unsigned R0                 : 1;
10043     unsigned R1                 : 1;
10044     unsigned R2                 : 1;
10045     unsigned R3                 : 1;
10046     unsigned R4                 : 1;
10047     unsigned                    : 1;
10048     unsigned                    : 1;
10049     unsigned                    : 1;
10050     };
10051 
10052   struct
10053     {
10054     unsigned DAC7R0             : 1;
10055     unsigned DAC7R1             : 1;
10056     unsigned DAC7R2             : 1;
10057     unsigned DAC7R3             : 1;
10058     unsigned DAC7R4             : 1;
10059     unsigned                    : 1;
10060     unsigned                    : 1;
10061     unsigned                    : 1;
10062     };
10063 
10064   struct
10065     {
10066     unsigned REF0               : 1;
10067     unsigned REF1               : 1;
10068     unsigned REF2               : 1;
10069     unsigned REF3               : 1;
10070     unsigned REF4               : 1;
10071     unsigned                    : 1;
10072     unsigned                    : 1;
10073     unsigned                    : 1;
10074     };
10075 
10076   struct
10077     {
10078     unsigned DAC7REF0           : 1;
10079     unsigned DAC7REF1           : 1;
10080     unsigned DAC7REF2           : 1;
10081     unsigned DAC7REF3           : 1;
10082     unsigned DAC7REF4           : 1;
10083     unsigned                    : 1;
10084     unsigned                    : 1;
10085     unsigned                    : 1;
10086     };
10087 
10088   struct
10089     {
10090     unsigned DAC7R              : 5;
10091     unsigned                    : 3;
10092     };
10093 
10094   struct
10095     {
10096     unsigned REF                : 5;
10097     unsigned                    : 3;
10098     };
10099 
10100   struct
10101     {
10102     unsigned R                  : 5;
10103     unsigned                    : 3;
10104     };
10105 
10106   struct
10107     {
10108     unsigned DAC7REF            : 5;
10109     unsigned                    : 3;
10110     };
10111 
10112   struct
10113     {
10114     unsigned DACR               : 5;
10115     unsigned                    : 3;
10116     };
10117   } __DAC7CON1bits_t;
10118 
10119 extern __at(0x059F) volatile __DAC7CON1bits_t DAC7CON1bits;
10120 
10121 #define _DAC7CON1_DACR0         0x01
10122 #define _DAC7CON1_R0            0x01
10123 #define _DAC7CON1_DAC7R0        0x01
10124 #define _DAC7CON1_REF0          0x01
10125 #define _DAC7CON1_DAC7REF0      0x01
10126 #define _DAC7CON1_DACR1         0x02
10127 #define _DAC7CON1_R1            0x02
10128 #define _DAC7CON1_DAC7R1        0x02
10129 #define _DAC7CON1_REF1          0x02
10130 #define _DAC7CON1_DAC7REF1      0x02
10131 #define _DAC7CON1_DACR2         0x04
10132 #define _DAC7CON1_R2            0x04
10133 #define _DAC7CON1_DAC7R2        0x04
10134 #define _DAC7CON1_REF2          0x04
10135 #define _DAC7CON1_DAC7REF2      0x04
10136 #define _DAC7CON1_DACR3         0x08
10137 #define _DAC7CON1_R3            0x08
10138 #define _DAC7CON1_DAC7R3        0x08
10139 #define _DAC7CON1_REF3          0x08
10140 #define _DAC7CON1_DAC7REF3      0x08
10141 #define _DAC7CON1_DACR4         0x10
10142 #define _DAC7CON1_R4            0x10
10143 #define _DAC7CON1_DAC7R4        0x10
10144 #define _DAC7CON1_REF4          0x10
10145 #define _DAC7CON1_DAC7REF4      0x10
10146 
10147 //==============================================================================
10148 
10149 
10150 //==============================================================================
10151 //        DAC7REF Bits
10152 
10153 extern __at(0x059F) __sfr DAC7REF;
10154 
10155 typedef union
10156   {
10157   struct
10158     {
10159     unsigned DACR0              : 1;
10160     unsigned DACR1              : 1;
10161     unsigned DACR2              : 1;
10162     unsigned DACR3              : 1;
10163     unsigned DACR4              : 1;
10164     unsigned                    : 1;
10165     unsigned                    : 1;
10166     unsigned                    : 1;
10167     };
10168 
10169   struct
10170     {
10171     unsigned R0                 : 1;
10172     unsigned R1                 : 1;
10173     unsigned R2                 : 1;
10174     unsigned R3                 : 1;
10175     unsigned R4                 : 1;
10176     unsigned                    : 1;
10177     unsigned                    : 1;
10178     unsigned                    : 1;
10179     };
10180 
10181   struct
10182     {
10183     unsigned DAC7R0             : 1;
10184     unsigned DAC7R1             : 1;
10185     unsigned DAC7R2             : 1;
10186     unsigned DAC7R3             : 1;
10187     unsigned DAC7R4             : 1;
10188     unsigned                    : 1;
10189     unsigned                    : 1;
10190     unsigned                    : 1;
10191     };
10192 
10193   struct
10194     {
10195     unsigned REF0               : 1;
10196     unsigned REF1               : 1;
10197     unsigned REF2               : 1;
10198     unsigned REF3               : 1;
10199     unsigned REF4               : 1;
10200     unsigned                    : 1;
10201     unsigned                    : 1;
10202     unsigned                    : 1;
10203     };
10204 
10205   struct
10206     {
10207     unsigned DAC7REF0           : 1;
10208     unsigned DAC7REF1           : 1;
10209     unsigned DAC7REF2           : 1;
10210     unsigned DAC7REF3           : 1;
10211     unsigned DAC7REF4           : 1;
10212     unsigned                    : 1;
10213     unsigned                    : 1;
10214     unsigned                    : 1;
10215     };
10216 
10217   struct
10218     {
10219     unsigned DAC7REF            : 5;
10220     unsigned                    : 3;
10221     };
10222 
10223   struct
10224     {
10225     unsigned DACR               : 5;
10226     unsigned                    : 3;
10227     };
10228 
10229   struct
10230     {
10231     unsigned DAC7R              : 5;
10232     unsigned                    : 3;
10233     };
10234 
10235   struct
10236     {
10237     unsigned REF                : 5;
10238     unsigned                    : 3;
10239     };
10240 
10241   struct
10242     {
10243     unsigned R                  : 5;
10244     unsigned                    : 3;
10245     };
10246   } __DAC7REFbits_t;
10247 
10248 extern __at(0x059F) volatile __DAC7REFbits_t DAC7REFbits;
10249 
10250 #define _DAC7REF_DACR0          0x01
10251 #define _DAC7REF_R0             0x01
10252 #define _DAC7REF_DAC7R0         0x01
10253 #define _DAC7REF_REF0           0x01
10254 #define _DAC7REF_DAC7REF0       0x01
10255 #define _DAC7REF_DACR1          0x02
10256 #define _DAC7REF_R1             0x02
10257 #define _DAC7REF_DAC7R1         0x02
10258 #define _DAC7REF_REF1           0x02
10259 #define _DAC7REF_DAC7REF1       0x02
10260 #define _DAC7REF_DACR2          0x04
10261 #define _DAC7REF_R2             0x04
10262 #define _DAC7REF_DAC7R2         0x04
10263 #define _DAC7REF_REF2           0x04
10264 #define _DAC7REF_DAC7REF2       0x04
10265 #define _DAC7REF_DACR3          0x08
10266 #define _DAC7REF_R3             0x08
10267 #define _DAC7REF_DAC7R3         0x08
10268 #define _DAC7REF_REF3           0x08
10269 #define _DAC7REF_DAC7REF3       0x08
10270 #define _DAC7REF_DACR4          0x10
10271 #define _DAC7REF_R4             0x10
10272 #define _DAC7REF_DAC7R4         0x10
10273 #define _DAC7REF_REF4           0x10
10274 #define _DAC7REF_DAC7REF4       0x10
10275 
10276 //==============================================================================
10277 
10278 
10279 //==============================================================================
10280 //        PWM3DCL Bits
10281 
10282 extern __at(0x0614) __sfr PWM3DCL;
10283 
10284 typedef union
10285   {
10286   struct
10287     {
10288     unsigned                    : 1;
10289     unsigned                    : 1;
10290     unsigned                    : 1;
10291     unsigned                    : 1;
10292     unsigned                    : 1;
10293     unsigned                    : 1;
10294     unsigned DC0                : 1;
10295     unsigned DC1                : 1;
10296     };
10297 
10298   struct
10299     {
10300     unsigned                    : 1;
10301     unsigned                    : 1;
10302     unsigned                    : 1;
10303     unsigned                    : 1;
10304     unsigned                    : 1;
10305     unsigned                    : 1;
10306     unsigned PWM3DC0            : 1;
10307     unsigned PWM3DC1            : 1;
10308     };
10309 
10310   struct
10311     {
10312     unsigned                    : 1;
10313     unsigned                    : 1;
10314     unsigned                    : 1;
10315     unsigned                    : 1;
10316     unsigned                    : 1;
10317     unsigned                    : 1;
10318     unsigned PWMPW0             : 1;
10319     unsigned PWMPW1             : 1;
10320     };
10321 
10322   struct
10323     {
10324     unsigned                    : 6;
10325     unsigned PWMPW              : 2;
10326     };
10327 
10328   struct
10329     {
10330     unsigned                    : 6;
10331     unsigned PWM3DC             : 2;
10332     };
10333 
10334   struct
10335     {
10336     unsigned                    : 6;
10337     unsigned DC                 : 2;
10338     };
10339   } __PWM3DCLbits_t;
10340 
10341 extern __at(0x0614) volatile __PWM3DCLbits_t PWM3DCLbits;
10342 
10343 #define _DC0                    0x40
10344 #define _PWM3DC0                0x40
10345 #define _PWMPW0                 0x40
10346 #define _DC1                    0x80
10347 #define _PWM3DC1                0x80
10348 #define _PWMPW1                 0x80
10349 
10350 //==============================================================================
10351 
10352 
10353 //==============================================================================
10354 //        PWM3DCH Bits
10355 
10356 extern __at(0x0615) __sfr PWM3DCH;
10357 
10358 typedef union
10359   {
10360   struct
10361     {
10362     unsigned DC2                : 1;
10363     unsigned DC3                : 1;
10364     unsigned DC4                : 1;
10365     unsigned DC5                : 1;
10366     unsigned DC6                : 1;
10367     unsigned DC7                : 1;
10368     unsigned DC8                : 1;
10369     unsigned DC9                : 1;
10370     };
10371 
10372   struct
10373     {
10374     unsigned PWM3DC2            : 1;
10375     unsigned PWM3DC3            : 1;
10376     unsigned PWM3DC4            : 1;
10377     unsigned PWM3DC5            : 1;
10378     unsigned PWM3DC6            : 1;
10379     unsigned PWM3DC7            : 1;
10380     unsigned PWM3DC8            : 1;
10381     unsigned PWM3DC9            : 1;
10382     };
10383 
10384   struct
10385     {
10386     unsigned PWMPW2             : 1;
10387     unsigned PWMPW3             : 1;
10388     unsigned PWMPW4             : 1;
10389     unsigned PWMPW5             : 1;
10390     unsigned PWMPW6             : 1;
10391     unsigned PWMPW7             : 1;
10392     unsigned PWMPW8             : 1;
10393     unsigned PWMPW9             : 1;
10394     };
10395   } __PWM3DCHbits_t;
10396 
10397 extern __at(0x0615) volatile __PWM3DCHbits_t PWM3DCHbits;
10398 
10399 #define _DC2                    0x01
10400 #define _PWM3DC2                0x01
10401 #define _PWMPW2                 0x01
10402 #define _DC3                    0x02
10403 #define _PWM3DC3                0x02
10404 #define _PWMPW3                 0x02
10405 #define _DC4                    0x04
10406 #define _PWM3DC4                0x04
10407 #define _PWMPW4                 0x04
10408 #define _DC5                    0x08
10409 #define _PWM3DC5                0x08
10410 #define _PWMPW5                 0x08
10411 #define _DC6                    0x10
10412 #define _PWM3DC6                0x10
10413 #define _PWMPW6                 0x10
10414 #define _DC7                    0x20
10415 #define _PWM3DC7                0x20
10416 #define _PWMPW7                 0x20
10417 #define _DC8                    0x40
10418 #define _PWM3DC8                0x40
10419 #define _PWMPW8                 0x40
10420 #define _DC9                    0x80
10421 #define _PWM3DC9                0x80
10422 #define _PWMPW9                 0x80
10423 
10424 //==============================================================================
10425 
10426 
10427 //==============================================================================
10428 //        PWM3CON Bits
10429 
10430 extern __at(0x0616) __sfr PWM3CON;
10431 
10432 typedef union
10433   {
10434   struct
10435     {
10436     unsigned                    : 1;
10437     unsigned                    : 1;
10438     unsigned                    : 1;
10439     unsigned                    : 1;
10440     unsigned POL                : 1;
10441     unsigned OUT                : 1;
10442     unsigned                    : 1;
10443     unsigned EN                 : 1;
10444     };
10445 
10446   struct
10447     {
10448     unsigned                    : 1;
10449     unsigned                    : 1;
10450     unsigned                    : 1;
10451     unsigned                    : 1;
10452     unsigned PWM3POL            : 1;
10453     unsigned PWM3OUT            : 1;
10454     unsigned                    : 1;
10455     unsigned PWM3EN             : 1;
10456     };
10457   } __PWM3CONbits_t;
10458 
10459 extern __at(0x0616) volatile __PWM3CONbits_t PWM3CONbits;
10460 
10461 #define _PWM3CON_POL            0x10
10462 #define _PWM3CON_PWM3POL        0x10
10463 #define _PWM3CON_OUT            0x20
10464 #define _PWM3CON_PWM3OUT        0x20
10465 #define _PWM3CON_EN             0x80
10466 #define _PWM3CON_PWM3EN         0x80
10467 
10468 //==============================================================================
10469 
10470 
10471 //==============================================================================
10472 //        PWM4DCL Bits
10473 
10474 extern __at(0x0617) __sfr PWM4DCL;
10475 
10476 typedef union
10477   {
10478   struct
10479     {
10480     unsigned                    : 1;
10481     unsigned                    : 1;
10482     unsigned                    : 1;
10483     unsigned                    : 1;
10484     unsigned                    : 1;
10485     unsigned                    : 1;
10486     unsigned DC0                : 1;
10487     unsigned DC1                : 1;
10488     };
10489 
10490   struct
10491     {
10492     unsigned                    : 1;
10493     unsigned                    : 1;
10494     unsigned                    : 1;
10495     unsigned                    : 1;
10496     unsigned                    : 1;
10497     unsigned                    : 1;
10498     unsigned PWM4DC0            : 1;
10499     unsigned PWM4DC1            : 1;
10500     };
10501 
10502   struct
10503     {
10504     unsigned                    : 1;
10505     unsigned                    : 1;
10506     unsigned                    : 1;
10507     unsigned                    : 1;
10508     unsigned                    : 1;
10509     unsigned                    : 1;
10510     unsigned PWMPW0             : 1;
10511     unsigned PWMPW1             : 1;
10512     };
10513 
10514   struct
10515     {
10516     unsigned                    : 6;
10517     unsigned PWMPW              : 2;
10518     };
10519 
10520   struct
10521     {
10522     unsigned                    : 6;
10523     unsigned DC                 : 2;
10524     };
10525 
10526   struct
10527     {
10528     unsigned                    : 6;
10529     unsigned PWM4DC             : 2;
10530     };
10531   } __PWM4DCLbits_t;
10532 
10533 extern __at(0x0617) volatile __PWM4DCLbits_t PWM4DCLbits;
10534 
10535 #define _PWM4DCL_DC0            0x40
10536 #define _PWM4DCL_PWM4DC0        0x40
10537 #define _PWM4DCL_PWMPW0         0x40
10538 #define _PWM4DCL_DC1            0x80
10539 #define _PWM4DCL_PWM4DC1        0x80
10540 #define _PWM4DCL_PWMPW1         0x80
10541 
10542 //==============================================================================
10543 
10544 
10545 //==============================================================================
10546 //        PWM4DCH Bits
10547 
10548 extern __at(0x0618) __sfr PWM4DCH;
10549 
10550 typedef union
10551   {
10552   struct
10553     {
10554     unsigned DC2                : 1;
10555     unsigned DC3                : 1;
10556     unsigned DC4                : 1;
10557     unsigned DC5                : 1;
10558     unsigned DC6                : 1;
10559     unsigned DC7                : 1;
10560     unsigned DC8                : 1;
10561     unsigned DC9                : 1;
10562     };
10563 
10564   struct
10565     {
10566     unsigned PWM4DC2            : 1;
10567     unsigned PWM4DC3            : 1;
10568     unsigned PWM4DC4            : 1;
10569     unsigned PWM4DC5            : 1;
10570     unsigned PWM4DC6            : 1;
10571     unsigned PWM4DC7            : 1;
10572     unsigned PWM4DC8            : 1;
10573     unsigned PWM4DC9            : 1;
10574     };
10575 
10576   struct
10577     {
10578     unsigned PWMPW2             : 1;
10579     unsigned PWMPW3             : 1;
10580     unsigned PWMPW4             : 1;
10581     unsigned PWMPW5             : 1;
10582     unsigned PWMPW6             : 1;
10583     unsigned PWMPW7             : 1;
10584     unsigned PWMPW8             : 1;
10585     unsigned PWMPW9             : 1;
10586     };
10587   } __PWM4DCHbits_t;
10588 
10589 extern __at(0x0618) volatile __PWM4DCHbits_t PWM4DCHbits;
10590 
10591 #define _PWM4DCH_DC2            0x01
10592 #define _PWM4DCH_PWM4DC2        0x01
10593 #define _PWM4DCH_PWMPW2         0x01
10594 #define _PWM4DCH_DC3            0x02
10595 #define _PWM4DCH_PWM4DC3        0x02
10596 #define _PWM4DCH_PWMPW3         0x02
10597 #define _PWM4DCH_DC4            0x04
10598 #define _PWM4DCH_PWM4DC4        0x04
10599 #define _PWM4DCH_PWMPW4         0x04
10600 #define _PWM4DCH_DC5            0x08
10601 #define _PWM4DCH_PWM4DC5        0x08
10602 #define _PWM4DCH_PWMPW5         0x08
10603 #define _PWM4DCH_DC6            0x10
10604 #define _PWM4DCH_PWM4DC6        0x10
10605 #define _PWM4DCH_PWMPW6         0x10
10606 #define _PWM4DCH_DC7            0x20
10607 #define _PWM4DCH_PWM4DC7        0x20
10608 #define _PWM4DCH_PWMPW7         0x20
10609 #define _PWM4DCH_DC8            0x40
10610 #define _PWM4DCH_PWM4DC8        0x40
10611 #define _PWM4DCH_PWMPW8         0x40
10612 #define _PWM4DCH_DC9            0x80
10613 #define _PWM4DCH_PWM4DC9        0x80
10614 #define _PWM4DCH_PWMPW9         0x80
10615 
10616 //==============================================================================
10617 
10618 
10619 //==============================================================================
10620 //        PWM4CON Bits
10621 
10622 extern __at(0x0619) __sfr PWM4CON;
10623 
10624 typedef union
10625   {
10626   struct
10627     {
10628     unsigned                    : 1;
10629     unsigned                    : 1;
10630     unsigned                    : 1;
10631     unsigned                    : 1;
10632     unsigned POL                : 1;
10633     unsigned OUT                : 1;
10634     unsigned                    : 1;
10635     unsigned EN                 : 1;
10636     };
10637 
10638   struct
10639     {
10640     unsigned                    : 1;
10641     unsigned                    : 1;
10642     unsigned                    : 1;
10643     unsigned                    : 1;
10644     unsigned PWM4POL            : 1;
10645     unsigned PWM4OUT            : 1;
10646     unsigned                    : 1;
10647     unsigned PWM4EN             : 1;
10648     };
10649   } __PWM4CONbits_t;
10650 
10651 extern __at(0x0619) volatile __PWM4CONbits_t PWM4CONbits;
10652 
10653 #define _PWM4CON_POL            0x10
10654 #define _PWM4CON_PWM4POL        0x10
10655 #define _PWM4CON_OUT            0x20
10656 #define _PWM4CON_PWM4OUT        0x20
10657 #define _PWM4CON_EN             0x80
10658 #define _PWM4CON_PWM4EN         0x80
10659 
10660 //==============================================================================
10661 
10662 
10663 //==============================================================================
10664 //        PWM9DCL Bits
10665 
10666 extern __at(0x061A) __sfr PWM9DCL;
10667 
10668 typedef union
10669   {
10670   struct
10671     {
10672     unsigned                    : 1;
10673     unsigned                    : 1;
10674     unsigned                    : 1;
10675     unsigned                    : 1;
10676     unsigned                    : 1;
10677     unsigned                    : 1;
10678     unsigned DC0                : 1;
10679     unsigned DC1                : 1;
10680     };
10681 
10682   struct
10683     {
10684     unsigned                    : 1;
10685     unsigned                    : 1;
10686     unsigned                    : 1;
10687     unsigned                    : 1;
10688     unsigned                    : 1;
10689     unsigned                    : 1;
10690     unsigned PWM9DC0            : 1;
10691     unsigned PWM9DC1            : 1;
10692     };
10693 
10694   struct
10695     {
10696     unsigned                    : 1;
10697     unsigned                    : 1;
10698     unsigned                    : 1;
10699     unsigned                    : 1;
10700     unsigned                    : 1;
10701     unsigned                    : 1;
10702     unsigned PWMPW0             : 1;
10703     unsigned PWMPW1             : 1;
10704     };
10705 
10706   struct
10707     {
10708     unsigned                    : 6;
10709     unsigned PWMPW              : 2;
10710     };
10711 
10712   struct
10713     {
10714     unsigned                    : 6;
10715     unsigned DC                 : 2;
10716     };
10717 
10718   struct
10719     {
10720     unsigned                    : 6;
10721     unsigned PWM9DC             : 2;
10722     };
10723   } __PWM9DCLbits_t;
10724 
10725 extern __at(0x061A) volatile __PWM9DCLbits_t PWM9DCLbits;
10726 
10727 #define _PWM9DCL_DC0            0x40
10728 #define _PWM9DCL_PWM9DC0        0x40
10729 #define _PWM9DCL_PWMPW0         0x40
10730 #define _PWM9DCL_DC1            0x80
10731 #define _PWM9DCL_PWM9DC1        0x80
10732 #define _PWM9DCL_PWMPW1         0x80
10733 
10734 //==============================================================================
10735 
10736 
10737 //==============================================================================
10738 //        PWM9DCH Bits
10739 
10740 extern __at(0x061B) __sfr PWM9DCH;
10741 
10742 typedef union
10743   {
10744   struct
10745     {
10746     unsigned DC2                : 1;
10747     unsigned DC3                : 1;
10748     unsigned DC4                : 1;
10749     unsigned DC5                : 1;
10750     unsigned DC6                : 1;
10751     unsigned DC7                : 1;
10752     unsigned DC8                : 1;
10753     unsigned DC9                : 1;
10754     };
10755 
10756   struct
10757     {
10758     unsigned PWM9DC2            : 1;
10759     unsigned PWM9DC3            : 1;
10760     unsigned PWM9DC4            : 1;
10761     unsigned PWM9DC5            : 1;
10762     unsigned PWM9DC6            : 1;
10763     unsigned PWM9DC7            : 1;
10764     unsigned PWM9DC8            : 1;
10765     unsigned PWM9DC9            : 1;
10766     };
10767 
10768   struct
10769     {
10770     unsigned PWMPW2             : 1;
10771     unsigned PWMPW3             : 1;
10772     unsigned PWMPW4             : 1;
10773     unsigned PWMPW5             : 1;
10774     unsigned PWMPW6             : 1;
10775     unsigned PWMPW7             : 1;
10776     unsigned PWMPW8             : 1;
10777     unsigned PWMPW9             : 1;
10778     };
10779   } __PWM9DCHbits_t;
10780 
10781 extern __at(0x061B) volatile __PWM9DCHbits_t PWM9DCHbits;
10782 
10783 #define _PWM9DCH_DC2            0x01
10784 #define _PWM9DCH_PWM9DC2        0x01
10785 #define _PWM9DCH_PWMPW2         0x01
10786 #define _PWM9DCH_DC3            0x02
10787 #define _PWM9DCH_PWM9DC3        0x02
10788 #define _PWM9DCH_PWMPW3         0x02
10789 #define _PWM9DCH_DC4            0x04
10790 #define _PWM9DCH_PWM9DC4        0x04
10791 #define _PWM9DCH_PWMPW4         0x04
10792 #define _PWM9DCH_DC5            0x08
10793 #define _PWM9DCH_PWM9DC5        0x08
10794 #define _PWM9DCH_PWMPW5         0x08
10795 #define _PWM9DCH_DC6            0x10
10796 #define _PWM9DCH_PWM9DC6        0x10
10797 #define _PWM9DCH_PWMPW6         0x10
10798 #define _PWM9DCH_DC7            0x20
10799 #define _PWM9DCH_PWM9DC7        0x20
10800 #define _PWM9DCH_PWMPW7         0x20
10801 #define _PWM9DCH_DC8            0x40
10802 #define _PWM9DCH_PWM9DC8        0x40
10803 #define _PWM9DCH_PWMPW8         0x40
10804 #define _PWM9DCH_DC9            0x80
10805 #define _PWM9DCH_PWM9DC9        0x80
10806 #define _PWM9DCH_PWMPW9         0x80
10807 
10808 //==============================================================================
10809 
10810 
10811 //==============================================================================
10812 //        PWM9CON Bits
10813 
10814 extern __at(0x061C) __sfr PWM9CON;
10815 
10816 typedef union
10817   {
10818   struct
10819     {
10820     unsigned                    : 1;
10821     unsigned                    : 1;
10822     unsigned                    : 1;
10823     unsigned                    : 1;
10824     unsigned POL                : 1;
10825     unsigned OUT                : 1;
10826     unsigned                    : 1;
10827     unsigned EN                 : 1;
10828     };
10829 
10830   struct
10831     {
10832     unsigned                    : 1;
10833     unsigned                    : 1;
10834     unsigned                    : 1;
10835     unsigned                    : 1;
10836     unsigned PWM9POL            : 1;
10837     unsigned PWM9OUT            : 1;
10838     unsigned                    : 1;
10839     unsigned PWM9EN             : 1;
10840     };
10841   } __PWM9CONbits_t;
10842 
10843 extern __at(0x061C) volatile __PWM9CONbits_t PWM9CONbits;
10844 
10845 #define _PWM9CON_POL            0x10
10846 #define _PWM9CON_PWM9POL        0x10
10847 #define _PWM9CON_OUT            0x20
10848 #define _PWM9CON_PWM9OUT        0x20
10849 #define _PWM9CON_EN             0x80
10850 #define _PWM9CON_PWM9EN         0x80
10851 
10852 //==============================================================================
10853 
10854 
10855 //==============================================================================
10856 //        COG1PHR Bits
10857 
10858 extern __at(0x068D) __sfr COG1PHR;
10859 
10860 typedef union
10861   {
10862   struct
10863     {
10864     unsigned PHR0               : 1;
10865     unsigned PHR1               : 1;
10866     unsigned PHR2               : 1;
10867     unsigned PHR3               : 1;
10868     unsigned PHR4               : 1;
10869     unsigned PHR5               : 1;
10870     unsigned                    : 1;
10871     unsigned                    : 1;
10872     };
10873 
10874   struct
10875     {
10876     unsigned G1PHR0             : 1;
10877     unsigned G1PHR1             : 1;
10878     unsigned G1PHR2             : 1;
10879     unsigned G1PHR3             : 1;
10880     unsigned G1PHR4             : 1;
10881     unsigned G1PHR5             : 1;
10882     unsigned                    : 1;
10883     unsigned                    : 1;
10884     };
10885 
10886   struct
10887     {
10888     unsigned G1PHR              : 6;
10889     unsigned                    : 2;
10890     };
10891 
10892   struct
10893     {
10894     unsigned PHR                : 6;
10895     unsigned                    : 2;
10896     };
10897   } __COG1PHRbits_t;
10898 
10899 extern __at(0x068D) volatile __COG1PHRbits_t COG1PHRbits;
10900 
10901 #define _PHR0                   0x01
10902 #define _G1PHR0                 0x01
10903 #define _PHR1                   0x02
10904 #define _G1PHR1                 0x02
10905 #define _PHR2                   0x04
10906 #define _G1PHR2                 0x04
10907 #define _PHR3                   0x08
10908 #define _G1PHR3                 0x08
10909 #define _PHR4                   0x10
10910 #define _G1PHR4                 0x10
10911 #define _PHR5                   0x20
10912 #define _G1PHR5                 0x20
10913 
10914 //==============================================================================
10915 
10916 
10917 //==============================================================================
10918 //        COG1PHF Bits
10919 
10920 extern __at(0x068E) __sfr COG1PHF;
10921 
10922 typedef union
10923   {
10924   struct
10925     {
10926     unsigned PHF0               : 1;
10927     unsigned PHF1               : 1;
10928     unsigned PHF2               : 1;
10929     unsigned PHF3               : 1;
10930     unsigned PHF4               : 1;
10931     unsigned PHF5               : 1;
10932     unsigned                    : 1;
10933     unsigned                    : 1;
10934     };
10935 
10936   struct
10937     {
10938     unsigned G1PHF0             : 1;
10939     unsigned G1PHF1             : 1;
10940     unsigned G1PHF2             : 1;
10941     unsigned G1PHF3             : 1;
10942     unsigned G1PHF4             : 1;
10943     unsigned G1PHF5             : 1;
10944     unsigned                    : 1;
10945     unsigned                    : 1;
10946     };
10947 
10948   struct
10949     {
10950     unsigned G1PHF              : 6;
10951     unsigned                    : 2;
10952     };
10953 
10954   struct
10955     {
10956     unsigned PHF                : 6;
10957     unsigned                    : 2;
10958     };
10959   } __COG1PHFbits_t;
10960 
10961 extern __at(0x068E) volatile __COG1PHFbits_t COG1PHFbits;
10962 
10963 #define _PHF0                   0x01
10964 #define _G1PHF0                 0x01
10965 #define _PHF1                   0x02
10966 #define _G1PHF1                 0x02
10967 #define _PHF2                   0x04
10968 #define _G1PHF2                 0x04
10969 #define _PHF3                   0x08
10970 #define _G1PHF3                 0x08
10971 #define _PHF4                   0x10
10972 #define _G1PHF4                 0x10
10973 #define _PHF5                   0x20
10974 #define _G1PHF5                 0x20
10975 
10976 //==============================================================================
10977 
10978 
10979 //==============================================================================
10980 //        COG1BLKR Bits
10981 
10982 extern __at(0x068F) __sfr COG1BLKR;
10983 
10984 typedef union
10985   {
10986   struct
10987     {
10988     unsigned BLKR0              : 1;
10989     unsigned BLKR1              : 1;
10990     unsigned BLKR2              : 1;
10991     unsigned BLKR3              : 1;
10992     unsigned BLKR4              : 1;
10993     unsigned BLKR5              : 1;
10994     unsigned                    : 1;
10995     unsigned                    : 1;
10996     };
10997 
10998   struct
10999     {
11000     unsigned G1BLKR0            : 1;
11001     unsigned G1BLKR1            : 1;
11002     unsigned G1BLKR2            : 1;
11003     unsigned G1BLKR3            : 1;
11004     unsigned G1BLKR4            : 1;
11005     unsigned G1BLKR5            : 1;
11006     unsigned                    : 1;
11007     unsigned                    : 1;
11008     };
11009 
11010   struct
11011     {
11012     unsigned G1BLKR             : 6;
11013     unsigned                    : 2;
11014     };
11015 
11016   struct
11017     {
11018     unsigned BLKR               : 6;
11019     unsigned                    : 2;
11020     };
11021   } __COG1BLKRbits_t;
11022 
11023 extern __at(0x068F) volatile __COG1BLKRbits_t COG1BLKRbits;
11024 
11025 #define _BLKR0                  0x01
11026 #define _G1BLKR0                0x01
11027 #define _BLKR1                  0x02
11028 #define _G1BLKR1                0x02
11029 #define _BLKR2                  0x04
11030 #define _G1BLKR2                0x04
11031 #define _BLKR3                  0x08
11032 #define _G1BLKR3                0x08
11033 #define _BLKR4                  0x10
11034 #define _G1BLKR4                0x10
11035 #define _BLKR5                  0x20
11036 #define _G1BLKR5                0x20
11037 
11038 //==============================================================================
11039 
11040 
11041 //==============================================================================
11042 //        COG1BLKF Bits
11043 
11044 extern __at(0x0690) __sfr COG1BLKF;
11045 
11046 typedef union
11047   {
11048   struct
11049     {
11050     unsigned BLKF0              : 1;
11051     unsigned BLKF1              : 1;
11052     unsigned BLKF2              : 1;
11053     unsigned BLKF3              : 1;
11054     unsigned BLKF4              : 1;
11055     unsigned BLKF5              : 1;
11056     unsigned                    : 1;
11057     unsigned                    : 1;
11058     };
11059 
11060   struct
11061     {
11062     unsigned G1BLKF0            : 1;
11063     unsigned G1BLKF1            : 1;
11064     unsigned G1BLKF2            : 1;
11065     unsigned G1BLKF3            : 1;
11066     unsigned G1BLKF4            : 1;
11067     unsigned G1BLKF5            : 1;
11068     unsigned                    : 1;
11069     unsigned                    : 1;
11070     };
11071 
11072   struct
11073     {
11074     unsigned BLKF               : 6;
11075     unsigned                    : 2;
11076     };
11077 
11078   struct
11079     {
11080     unsigned G1BLKF             : 6;
11081     unsigned                    : 2;
11082     };
11083   } __COG1BLKFbits_t;
11084 
11085 extern __at(0x0690) volatile __COG1BLKFbits_t COG1BLKFbits;
11086 
11087 #define _BLKF0                  0x01
11088 #define _G1BLKF0                0x01
11089 #define _BLKF1                  0x02
11090 #define _G1BLKF1                0x02
11091 #define _BLKF2                  0x04
11092 #define _G1BLKF2                0x04
11093 #define _BLKF3                  0x08
11094 #define _G1BLKF3                0x08
11095 #define _BLKF4                  0x10
11096 #define _G1BLKF4                0x10
11097 #define _BLKF5                  0x20
11098 #define _G1BLKF5                0x20
11099 
11100 //==============================================================================
11101 
11102 
11103 //==============================================================================
11104 //        COG1DBR Bits
11105 
11106 extern __at(0x0691) __sfr COG1DBR;
11107 
11108 typedef union
11109   {
11110   struct
11111     {
11112     unsigned DBR0               : 1;
11113     unsigned DBR1               : 1;
11114     unsigned DBR2               : 1;
11115     unsigned DBR3               : 1;
11116     unsigned DBR4               : 1;
11117     unsigned DBR5               : 1;
11118     unsigned                    : 1;
11119     unsigned                    : 1;
11120     };
11121 
11122   struct
11123     {
11124     unsigned G1DBR0             : 1;
11125     unsigned G1DBR1             : 1;
11126     unsigned G1DBR2             : 1;
11127     unsigned G1DBR3             : 1;
11128     unsigned G1DBR4             : 1;
11129     unsigned G1DBR5             : 1;
11130     unsigned                    : 1;
11131     unsigned                    : 1;
11132     };
11133 
11134   struct
11135     {
11136     unsigned G1DBR              : 6;
11137     unsigned                    : 2;
11138     };
11139 
11140   struct
11141     {
11142     unsigned DBR                : 6;
11143     unsigned                    : 2;
11144     };
11145   } __COG1DBRbits_t;
11146 
11147 extern __at(0x0691) volatile __COG1DBRbits_t COG1DBRbits;
11148 
11149 #define _DBR0                   0x01
11150 #define _G1DBR0                 0x01
11151 #define _DBR1                   0x02
11152 #define _G1DBR1                 0x02
11153 #define _DBR2                   0x04
11154 #define _G1DBR2                 0x04
11155 #define _DBR3                   0x08
11156 #define _G1DBR3                 0x08
11157 #define _DBR4                   0x10
11158 #define _G1DBR4                 0x10
11159 #define _DBR5                   0x20
11160 #define _G1DBR5                 0x20
11161 
11162 //==============================================================================
11163 
11164 
11165 //==============================================================================
11166 //        COG1DBF Bits
11167 
11168 extern __at(0x0692) __sfr COG1DBF;
11169 
11170 typedef union
11171   {
11172   struct
11173     {
11174     unsigned DBF0               : 1;
11175     unsigned DBF1               : 1;
11176     unsigned DBF2               : 1;
11177     unsigned DBF3               : 1;
11178     unsigned DBF4               : 1;
11179     unsigned DBF5               : 1;
11180     unsigned                    : 1;
11181     unsigned                    : 1;
11182     };
11183 
11184   struct
11185     {
11186     unsigned G1DBF0             : 1;
11187     unsigned G1DBF1             : 1;
11188     unsigned G1DBF2             : 1;
11189     unsigned G1DBF3             : 1;
11190     unsigned G1DBF4             : 1;
11191     unsigned G1DBF5             : 1;
11192     unsigned                    : 1;
11193     unsigned                    : 1;
11194     };
11195 
11196   struct
11197     {
11198     unsigned G1DBF              : 6;
11199     unsigned                    : 2;
11200     };
11201 
11202   struct
11203     {
11204     unsigned DBF                : 6;
11205     unsigned                    : 2;
11206     };
11207   } __COG1DBFbits_t;
11208 
11209 extern __at(0x0692) volatile __COG1DBFbits_t COG1DBFbits;
11210 
11211 #define _DBF0                   0x01
11212 #define _G1DBF0                 0x01
11213 #define _DBF1                   0x02
11214 #define _G1DBF1                 0x02
11215 #define _DBF2                   0x04
11216 #define _G1DBF2                 0x04
11217 #define _DBF3                   0x08
11218 #define _G1DBF3                 0x08
11219 #define _DBF4                   0x10
11220 #define _G1DBF4                 0x10
11221 #define _DBF5                   0x20
11222 #define _G1DBF5                 0x20
11223 
11224 //==============================================================================
11225 
11226 
11227 //==============================================================================
11228 //        COG1CON0 Bits
11229 
11230 extern __at(0x0693) __sfr COG1CON0;
11231 
11232 typedef union
11233   {
11234   struct
11235     {
11236     unsigned MD0                : 1;
11237     unsigned MD1                : 1;
11238     unsigned MD2                : 1;
11239     unsigned CS0                : 1;
11240     unsigned CS1                : 1;
11241     unsigned                    : 1;
11242     unsigned LD                 : 1;
11243     unsigned EN                 : 1;
11244     };
11245 
11246   struct
11247     {
11248     unsigned G1MD0              : 1;
11249     unsigned G1MD1              : 1;
11250     unsigned G1MD2              : 1;
11251     unsigned G1CS0              : 1;
11252     unsigned G1CS1              : 1;
11253     unsigned                    : 1;
11254     unsigned G1LD               : 1;
11255     unsigned G1EN               : 1;
11256     };
11257 
11258   struct
11259     {
11260     unsigned MD                 : 3;
11261     unsigned                    : 5;
11262     };
11263 
11264   struct
11265     {
11266     unsigned G1MD               : 3;
11267     unsigned                    : 5;
11268     };
11269 
11270   struct
11271     {
11272     unsigned                    : 3;
11273     unsigned G1CS               : 2;
11274     unsigned                    : 3;
11275     };
11276 
11277   struct
11278     {
11279     unsigned                    : 3;
11280     unsigned CS                 : 2;
11281     unsigned                    : 3;
11282     };
11283   } __COG1CON0bits_t;
11284 
11285 extern __at(0x0693) volatile __COG1CON0bits_t COG1CON0bits;
11286 
11287 #define _COG1CON0_MD0           0x01
11288 #define _COG1CON0_G1MD0         0x01
11289 #define _COG1CON0_MD1           0x02
11290 #define _COG1CON0_G1MD1         0x02
11291 #define _COG1CON0_MD2           0x04
11292 #define _COG1CON0_G1MD2         0x04
11293 #define _COG1CON0_CS0           0x08
11294 #define _COG1CON0_G1CS0         0x08
11295 #define _COG1CON0_CS1           0x10
11296 #define _COG1CON0_G1CS1         0x10
11297 #define _COG1CON0_LD            0x40
11298 #define _COG1CON0_G1LD          0x40
11299 #define _COG1CON0_EN            0x80
11300 #define _COG1CON0_G1EN          0x80
11301 
11302 //==============================================================================
11303 
11304 
11305 //==============================================================================
11306 //        COG1CON1 Bits
11307 
11308 extern __at(0x0694) __sfr COG1CON1;
11309 
11310 typedef union
11311   {
11312   struct
11313     {
11314     unsigned POLA               : 1;
11315     unsigned POLB               : 1;
11316     unsigned POLC               : 1;
11317     unsigned POLD               : 1;
11318     unsigned                    : 1;
11319     unsigned                    : 1;
11320     unsigned FDBS               : 1;
11321     unsigned RDBS               : 1;
11322     };
11323 
11324   struct
11325     {
11326     unsigned G1POLA             : 1;
11327     unsigned G1POLB             : 1;
11328     unsigned G1POLC             : 1;
11329     unsigned G1POLD             : 1;
11330     unsigned                    : 1;
11331     unsigned                    : 1;
11332     unsigned G1FDBS             : 1;
11333     unsigned G1RDBS             : 1;
11334     };
11335   } __COG1CON1bits_t;
11336 
11337 extern __at(0x0694) volatile __COG1CON1bits_t COG1CON1bits;
11338 
11339 #define _POLA                   0x01
11340 #define _G1POLA                 0x01
11341 #define _POLB                   0x02
11342 #define _G1POLB                 0x02
11343 #define _POLC                   0x04
11344 #define _G1POLC                 0x04
11345 #define _POLD                   0x08
11346 #define _G1POLD                 0x08
11347 #define _FDBS                   0x40
11348 #define _G1FDBS                 0x40
11349 #define _RDBS                   0x80
11350 #define _G1RDBS                 0x80
11351 
11352 //==============================================================================
11353 
11354 
11355 //==============================================================================
11356 //        COG1RIS0 Bits
11357 
11358 extern __at(0x0695) __sfr COG1RIS0;
11359 
11360 typedef union
11361   {
11362   struct
11363     {
11364     unsigned RIS0               : 1;
11365     unsigned RIS1               : 1;
11366     unsigned RIS2               : 1;
11367     unsigned RIS3               : 1;
11368     unsigned RIS4               : 1;
11369     unsigned RIS5               : 1;
11370     unsigned RIS6               : 1;
11371     unsigned RIS7               : 1;
11372     };
11373 
11374   struct
11375     {
11376     unsigned G1RIS0             : 1;
11377     unsigned G1RIS1             : 1;
11378     unsigned G1RIS2             : 1;
11379     unsigned G1RIS3             : 1;
11380     unsigned G1RIS4             : 1;
11381     unsigned G1RIS5             : 1;
11382     unsigned G1RIS6             : 1;
11383     unsigned G1RIS7             : 1;
11384     };
11385   } __COG1RIS0bits_t;
11386 
11387 extern __at(0x0695) volatile __COG1RIS0bits_t COG1RIS0bits;
11388 
11389 #define _RIS0                   0x01
11390 #define _G1RIS0                 0x01
11391 #define _RIS1                   0x02
11392 #define _G1RIS1                 0x02
11393 #define _RIS2                   0x04
11394 #define _G1RIS2                 0x04
11395 #define _RIS3                   0x08
11396 #define _G1RIS3                 0x08
11397 #define _RIS4                   0x10
11398 #define _G1RIS4                 0x10
11399 #define _RIS5                   0x20
11400 #define _G1RIS5                 0x20
11401 #define _RIS6                   0x40
11402 #define _G1RIS6                 0x40
11403 #define _RIS7                   0x80
11404 #define _G1RIS7                 0x80
11405 
11406 //==============================================================================
11407 
11408 
11409 //==============================================================================
11410 //        COG1RIS1 Bits
11411 
11412 extern __at(0x0696) __sfr COG1RIS1;
11413 
11414 typedef union
11415   {
11416   struct
11417     {
11418     unsigned RIS8               : 1;
11419     unsigned RIS9               : 1;
11420     unsigned RIS10              : 1;
11421     unsigned RIS11              : 1;
11422     unsigned RIS12              : 1;
11423     unsigned RIS13              : 1;
11424     unsigned RIS14              : 1;
11425     unsigned RIS15              : 1;
11426     };
11427 
11428   struct
11429     {
11430     unsigned G1RIS8             : 1;
11431     unsigned G1RIS9             : 1;
11432     unsigned G1RIS10            : 1;
11433     unsigned G1RIS11            : 1;
11434     unsigned G1RIS12            : 1;
11435     unsigned G1RIS13            : 1;
11436     unsigned G1RIS14            : 1;
11437     unsigned G1RIS15            : 1;
11438     };
11439   } __COG1RIS1bits_t;
11440 
11441 extern __at(0x0696) volatile __COG1RIS1bits_t COG1RIS1bits;
11442 
11443 #define _RIS8                   0x01
11444 #define _G1RIS8                 0x01
11445 #define _RIS9                   0x02
11446 #define _G1RIS9                 0x02
11447 #define _RIS10                  0x04
11448 #define _G1RIS10                0x04
11449 #define _RIS11                  0x08
11450 #define _G1RIS11                0x08
11451 #define _RIS12                  0x10
11452 #define _G1RIS12                0x10
11453 #define _RIS13                  0x20
11454 #define _G1RIS13                0x20
11455 #define _RIS14                  0x40
11456 #define _G1RIS14                0x40
11457 #define _RIS15                  0x80
11458 #define _G1RIS15                0x80
11459 
11460 //==============================================================================
11461 
11462 
11463 //==============================================================================
11464 //        COG1RSIM0 Bits
11465 
11466 extern __at(0x0697) __sfr COG1RSIM0;
11467 
11468 typedef union
11469   {
11470   struct
11471     {
11472     unsigned RSIM0              : 1;
11473     unsigned RSIM1              : 1;
11474     unsigned RSIM2              : 1;
11475     unsigned RSIM3              : 1;
11476     unsigned RSIM4              : 1;
11477     unsigned RSIM5              : 1;
11478     unsigned RSIM6              : 1;
11479     unsigned RSIM7              : 1;
11480     };
11481 
11482   struct
11483     {
11484     unsigned G1RSIM0            : 1;
11485     unsigned G1RSIM1            : 1;
11486     unsigned G1RSIM2            : 1;
11487     unsigned G1RSIM3            : 1;
11488     unsigned G1RSIM4            : 1;
11489     unsigned G1RSIM5            : 1;
11490     unsigned G1RSIM6            : 1;
11491     unsigned G1RSIM7            : 1;
11492     };
11493   } __COG1RSIM0bits_t;
11494 
11495 extern __at(0x0697) volatile __COG1RSIM0bits_t COG1RSIM0bits;
11496 
11497 #define _RSIM0                  0x01
11498 #define _G1RSIM0                0x01
11499 #define _RSIM1                  0x02
11500 #define _G1RSIM1                0x02
11501 #define _RSIM2                  0x04
11502 #define _G1RSIM2                0x04
11503 #define _RSIM3                  0x08
11504 #define _G1RSIM3                0x08
11505 #define _RSIM4                  0x10
11506 #define _G1RSIM4                0x10
11507 #define _RSIM5                  0x20
11508 #define _G1RSIM5                0x20
11509 #define _RSIM6                  0x40
11510 #define _G1RSIM6                0x40
11511 #define _RSIM7                  0x80
11512 #define _G1RSIM7                0x80
11513 
11514 //==============================================================================
11515 
11516 
11517 //==============================================================================
11518 //        COG1RSIM1 Bits
11519 
11520 extern __at(0x0698) __sfr COG1RSIM1;
11521 
11522 typedef union
11523   {
11524   struct
11525     {
11526     unsigned RSIM8              : 1;
11527     unsigned RSIM9              : 1;
11528     unsigned RSIM10             : 1;
11529     unsigned RSIM11             : 1;
11530     unsigned RSIM12             : 1;
11531     unsigned RSIM13             : 1;
11532     unsigned RSIM14             : 1;
11533     unsigned RSIM15             : 1;
11534     };
11535 
11536   struct
11537     {
11538     unsigned G1RSIM8            : 1;
11539     unsigned G1RSIM9            : 1;
11540     unsigned G1RSIM10           : 1;
11541     unsigned G1RSIM11           : 1;
11542     unsigned G1RSIM12           : 1;
11543     unsigned G1RSIM13           : 1;
11544     unsigned G1RSIM14           : 1;
11545     unsigned G1RSIM15           : 1;
11546     };
11547   } __COG1RSIM1bits_t;
11548 
11549 extern __at(0x0698) volatile __COG1RSIM1bits_t COG1RSIM1bits;
11550 
11551 #define _RSIM8                  0x01
11552 #define _G1RSIM8                0x01
11553 #define _RSIM9                  0x02
11554 #define _G1RSIM9                0x02
11555 #define _RSIM10                 0x04
11556 #define _G1RSIM10               0x04
11557 #define _RSIM11                 0x08
11558 #define _G1RSIM11               0x08
11559 #define _RSIM12                 0x10
11560 #define _G1RSIM12               0x10
11561 #define _RSIM13                 0x20
11562 #define _G1RSIM13               0x20
11563 #define _RSIM14                 0x40
11564 #define _G1RSIM14               0x40
11565 #define _RSIM15                 0x80
11566 #define _G1RSIM15               0x80
11567 
11568 //==============================================================================
11569 
11570 
11571 //==============================================================================
11572 //        COG1FIS0 Bits
11573 
11574 extern __at(0x0699) __sfr COG1FIS0;
11575 
11576 typedef union
11577   {
11578   struct
11579     {
11580     unsigned FIS0               : 1;
11581     unsigned FIS1               : 1;
11582     unsigned FIS2               : 1;
11583     unsigned FIS3               : 1;
11584     unsigned FIS4               : 1;
11585     unsigned FIS5               : 1;
11586     unsigned FIS6               : 1;
11587     unsigned FIS7               : 1;
11588     };
11589 
11590   struct
11591     {
11592     unsigned G1FIS0             : 1;
11593     unsigned G1FIS1             : 1;
11594     unsigned G1FIS2             : 1;
11595     unsigned G1FIS3             : 1;
11596     unsigned G1FIS4             : 1;
11597     unsigned G1FIS5             : 1;
11598     unsigned G1FIS6             : 1;
11599     unsigned G1FIS7             : 1;
11600     };
11601   } __COG1FIS0bits_t;
11602 
11603 extern __at(0x0699) volatile __COG1FIS0bits_t COG1FIS0bits;
11604 
11605 #define _FIS0                   0x01
11606 #define _G1FIS0                 0x01
11607 #define _FIS1                   0x02
11608 #define _G1FIS1                 0x02
11609 #define _FIS2                   0x04
11610 #define _G1FIS2                 0x04
11611 #define _FIS3                   0x08
11612 #define _G1FIS3                 0x08
11613 #define _FIS4                   0x10
11614 #define _G1FIS4                 0x10
11615 #define _FIS5                   0x20
11616 #define _G1FIS5                 0x20
11617 #define _FIS6                   0x40
11618 #define _G1FIS6                 0x40
11619 #define _FIS7                   0x80
11620 #define _G1FIS7                 0x80
11621 
11622 //==============================================================================
11623 
11624 
11625 //==============================================================================
11626 //        COG1FIS1 Bits
11627 
11628 extern __at(0x069A) __sfr COG1FIS1;
11629 
11630 typedef union
11631   {
11632   struct
11633     {
11634     unsigned FIS8               : 1;
11635     unsigned FIS9               : 1;
11636     unsigned FIS10              : 1;
11637     unsigned FIS11              : 1;
11638     unsigned FIS12              : 1;
11639     unsigned FIS13              : 1;
11640     unsigned FIS14              : 1;
11641     unsigned FIS15              : 1;
11642     };
11643 
11644   struct
11645     {
11646     unsigned G1FIS8             : 1;
11647     unsigned G1FIS9             : 1;
11648     unsigned G1FIS10            : 1;
11649     unsigned G1FIS11            : 1;
11650     unsigned G1FIS12            : 1;
11651     unsigned G1FIS13            : 1;
11652     unsigned G1FIS14            : 1;
11653     unsigned G1FIS15            : 1;
11654     };
11655   } __COG1FIS1bits_t;
11656 
11657 extern __at(0x069A) volatile __COG1FIS1bits_t COG1FIS1bits;
11658 
11659 #define _FIS8                   0x01
11660 #define _G1FIS8                 0x01
11661 #define _FIS9                   0x02
11662 #define _G1FIS9                 0x02
11663 #define _FIS10                  0x04
11664 #define _G1FIS10                0x04
11665 #define _FIS11                  0x08
11666 #define _G1FIS11                0x08
11667 #define _FIS12                  0x10
11668 #define _G1FIS12                0x10
11669 #define _FIS13                  0x20
11670 #define _G1FIS13                0x20
11671 #define _FIS14                  0x40
11672 #define _G1FIS14                0x40
11673 #define _FIS15                  0x80
11674 #define _G1FIS15                0x80
11675 
11676 //==============================================================================
11677 
11678 
11679 //==============================================================================
11680 //        COG1FSIM0 Bits
11681 
11682 extern __at(0x069B) __sfr COG1FSIM0;
11683 
11684 typedef union
11685   {
11686   struct
11687     {
11688     unsigned FSIM0              : 1;
11689     unsigned FSIM1              : 1;
11690     unsigned FSIM2              : 1;
11691     unsigned FSIM3              : 1;
11692     unsigned FSIM4              : 1;
11693     unsigned FSIM5              : 1;
11694     unsigned FSIM6              : 1;
11695     unsigned FSIM7              : 1;
11696     };
11697 
11698   struct
11699     {
11700     unsigned G1FSIM0            : 1;
11701     unsigned G1FSIM1            : 1;
11702     unsigned G1FSIM2            : 1;
11703     unsigned G1FSIM3            : 1;
11704     unsigned G1FSIM4            : 1;
11705     unsigned G1FSIM5            : 1;
11706     unsigned G1FSIM6            : 1;
11707     unsigned G1FSIM7            : 1;
11708     };
11709   } __COG1FSIM0bits_t;
11710 
11711 extern __at(0x069B) volatile __COG1FSIM0bits_t COG1FSIM0bits;
11712 
11713 #define _FSIM0                  0x01
11714 #define _G1FSIM0                0x01
11715 #define _FSIM1                  0x02
11716 #define _G1FSIM1                0x02
11717 #define _FSIM2                  0x04
11718 #define _G1FSIM2                0x04
11719 #define _FSIM3                  0x08
11720 #define _G1FSIM3                0x08
11721 #define _FSIM4                  0x10
11722 #define _G1FSIM4                0x10
11723 #define _FSIM5                  0x20
11724 #define _G1FSIM5                0x20
11725 #define _FSIM6                  0x40
11726 #define _G1FSIM6                0x40
11727 #define _FSIM7                  0x80
11728 #define _G1FSIM7                0x80
11729 
11730 //==============================================================================
11731 
11732 
11733 //==============================================================================
11734 //        COG1FSIM1 Bits
11735 
11736 extern __at(0x069C) __sfr COG1FSIM1;
11737 
11738 typedef union
11739   {
11740   struct
11741     {
11742     unsigned FSIM8              : 1;
11743     unsigned FSIM9              : 1;
11744     unsigned FSIM10             : 1;
11745     unsigned FSIM11             : 1;
11746     unsigned FSIM12             : 1;
11747     unsigned FSIM13             : 1;
11748     unsigned FSIM14             : 1;
11749     unsigned FSIM15             : 1;
11750     };
11751 
11752   struct
11753     {
11754     unsigned G1FSIM8            : 1;
11755     unsigned G1FSIM9            : 1;
11756     unsigned G1FSIM10           : 1;
11757     unsigned G1FSIM11           : 1;
11758     unsigned G1FSIM12           : 1;
11759     unsigned G1FSIM13           : 1;
11760     unsigned G1FSIM14           : 1;
11761     unsigned G1FSIM15           : 1;
11762     };
11763   } __COG1FSIM1bits_t;
11764 
11765 extern __at(0x069C) volatile __COG1FSIM1bits_t COG1FSIM1bits;
11766 
11767 #define _FSIM8                  0x01
11768 #define _G1FSIM8                0x01
11769 #define _FSIM9                  0x02
11770 #define _G1FSIM9                0x02
11771 #define _FSIM10                 0x04
11772 #define _G1FSIM10               0x04
11773 #define _FSIM11                 0x08
11774 #define _G1FSIM11               0x08
11775 #define _FSIM12                 0x10
11776 #define _G1FSIM12               0x10
11777 #define _FSIM13                 0x20
11778 #define _G1FSIM13               0x20
11779 #define _FSIM14                 0x40
11780 #define _G1FSIM14               0x40
11781 #define _FSIM15                 0x80
11782 #define _G1FSIM15               0x80
11783 
11784 //==============================================================================
11785 
11786 
11787 //==============================================================================
11788 //        COG1ASD0 Bits
11789 
11790 extern __at(0x069D) __sfr COG1ASD0;
11791 
11792 typedef union
11793   {
11794   struct
11795     {
11796     unsigned                    : 1;
11797     unsigned                    : 1;
11798     unsigned ASDAC0             : 1;
11799     unsigned ASDAC1             : 1;
11800     unsigned ASDBD0             : 1;
11801     unsigned ASDBD1             : 1;
11802     unsigned ASREN              : 1;
11803     unsigned ASE                : 1;
11804     };
11805 
11806   struct
11807     {
11808     unsigned                    : 1;
11809     unsigned                    : 1;
11810     unsigned G1ASDAC0           : 1;
11811     unsigned G1ASDAC1           : 1;
11812     unsigned G1ASDBD0           : 1;
11813     unsigned G1ASDBD1           : 1;
11814     unsigned ARSEN              : 1;
11815     unsigned G1ASE              : 1;
11816     };
11817 
11818   struct
11819     {
11820     unsigned                    : 1;
11821     unsigned                    : 1;
11822     unsigned                    : 1;
11823     unsigned                    : 1;
11824     unsigned                    : 1;
11825     unsigned                    : 1;
11826     unsigned G1ARSEN            : 1;
11827     unsigned                    : 1;
11828     };
11829 
11830   struct
11831     {
11832     unsigned                    : 1;
11833     unsigned                    : 1;
11834     unsigned                    : 1;
11835     unsigned                    : 1;
11836     unsigned                    : 1;
11837     unsigned                    : 1;
11838     unsigned G1ASREN            : 1;
11839     unsigned                    : 1;
11840     };
11841 
11842   struct
11843     {
11844     unsigned                    : 2;
11845     unsigned G1ASDAC            : 2;
11846     unsigned                    : 4;
11847     };
11848 
11849   struct
11850     {
11851     unsigned                    : 2;
11852     unsigned ASDAC              : 2;
11853     unsigned                    : 4;
11854     };
11855 
11856   struct
11857     {
11858     unsigned                    : 4;
11859     unsigned ASDBD              : 2;
11860     unsigned                    : 2;
11861     };
11862 
11863   struct
11864     {
11865     unsigned                    : 4;
11866     unsigned G1ASDBD            : 2;
11867     unsigned                    : 2;
11868     };
11869   } __COG1ASD0bits_t;
11870 
11871 extern __at(0x069D) volatile __COG1ASD0bits_t COG1ASD0bits;
11872 
11873 #define _ASDAC0                 0x04
11874 #define _G1ASDAC0               0x04
11875 #define _ASDAC1                 0x08
11876 #define _G1ASDAC1               0x08
11877 #define _ASDBD0                 0x10
11878 #define _G1ASDBD0               0x10
11879 #define _ASDBD1                 0x20
11880 #define _G1ASDBD1               0x20
11881 #define _ASREN                  0x40
11882 #define _ARSEN                  0x40
11883 #define _G1ARSEN                0x40
11884 #define _G1ASREN                0x40
11885 #define _ASE                    0x80
11886 #define _G1ASE                  0x80
11887 
11888 //==============================================================================
11889 
11890 
11891 //==============================================================================
11892 //        COG1ASD1 Bits
11893 
11894 extern __at(0x069E) __sfr COG1ASD1;
11895 
11896 typedef union
11897   {
11898   struct
11899     {
11900     unsigned AS0E               : 1;
11901     unsigned AS1E               : 1;
11902     unsigned AS2E               : 1;
11903     unsigned AS3E               : 1;
11904     unsigned AS4E               : 1;
11905     unsigned AS5E               : 1;
11906     unsigned AS6E               : 1;
11907     unsigned AS7E               : 1;
11908     };
11909 
11910   struct
11911     {
11912     unsigned G1AS0E             : 1;
11913     unsigned G1AS1E             : 1;
11914     unsigned G1AS2E             : 1;
11915     unsigned G1AS3E             : 1;
11916     unsigned G1AS4E             : 1;
11917     unsigned G1AS5E             : 1;
11918     unsigned G1AS6E             : 1;
11919     unsigned G1AS7E             : 1;
11920     };
11921   } __COG1ASD1bits_t;
11922 
11923 extern __at(0x069E) volatile __COG1ASD1bits_t COG1ASD1bits;
11924 
11925 #define _AS0E                   0x01
11926 #define _G1AS0E                 0x01
11927 #define _AS1E                   0x02
11928 #define _G1AS1E                 0x02
11929 #define _AS2E                   0x04
11930 #define _G1AS2E                 0x04
11931 #define _AS3E                   0x08
11932 #define _G1AS3E                 0x08
11933 #define _AS4E                   0x10
11934 #define _G1AS4E                 0x10
11935 #define _AS5E                   0x20
11936 #define _G1AS5E                 0x20
11937 #define _AS6E                   0x40
11938 #define _G1AS6E                 0x40
11939 #define _AS7E                   0x80
11940 #define _G1AS7E                 0x80
11941 
11942 //==============================================================================
11943 
11944 
11945 //==============================================================================
11946 //        COG1STR Bits
11947 
11948 extern __at(0x069F) __sfr COG1STR;
11949 
11950 typedef union
11951   {
11952   struct
11953     {
11954     unsigned STRA               : 1;
11955     unsigned STRB               : 1;
11956     unsigned STRC               : 1;
11957     unsigned STRD               : 1;
11958     unsigned SDATA              : 1;
11959     unsigned SDATB              : 1;
11960     unsigned SDATC              : 1;
11961     unsigned SDATD              : 1;
11962     };
11963 
11964   struct
11965     {
11966     unsigned G1STRA             : 1;
11967     unsigned G1STRB             : 1;
11968     unsigned G1STRC             : 1;
11969     unsigned G1STRD             : 1;
11970     unsigned G1SDATA            : 1;
11971     unsigned G1SDATB            : 1;
11972     unsigned G1SDATC            : 1;
11973     unsigned G1SDATD            : 1;
11974     };
11975   } __COG1STRbits_t;
11976 
11977 extern __at(0x069F) volatile __COG1STRbits_t COG1STRbits;
11978 
11979 #define _STRA                   0x01
11980 #define _G1STRA                 0x01
11981 #define _STRB                   0x02
11982 #define _G1STRB                 0x02
11983 #define _STRC                   0x04
11984 #define _G1STRC                 0x04
11985 #define _STRD                   0x08
11986 #define _G1STRD                 0x08
11987 #define _SDATA                  0x10
11988 #define _G1SDATA                0x10
11989 #define _SDATB                  0x20
11990 #define _G1SDATB                0x20
11991 #define _SDATC                  0x40
11992 #define _G1SDATC                0x40
11993 #define _SDATD                  0x80
11994 #define _G1SDATD                0x80
11995 
11996 //==============================================================================
11997 
11998 
11999 //==============================================================================
12000 //        COG2PHR Bits
12001 
12002 extern __at(0x070D) __sfr COG2PHR;
12003 
12004 typedef union
12005   {
12006   struct
12007     {
12008     unsigned PHR0               : 1;
12009     unsigned PHR1               : 1;
12010     unsigned PHR2               : 1;
12011     unsigned PHR3               : 1;
12012     unsigned PHR4               : 1;
12013     unsigned PHR5               : 1;
12014     unsigned                    : 1;
12015     unsigned                    : 1;
12016     };
12017 
12018   struct
12019     {
12020     unsigned G2PHR0             : 1;
12021     unsigned G2PHR1             : 1;
12022     unsigned G2PHR2             : 1;
12023     unsigned G2PHR3             : 1;
12024     unsigned G2PHR4             : 1;
12025     unsigned G2PHR5             : 1;
12026     unsigned                    : 1;
12027     unsigned                    : 1;
12028     };
12029 
12030   struct
12031     {
12032     unsigned PHR                : 6;
12033     unsigned                    : 2;
12034     };
12035 
12036   struct
12037     {
12038     unsigned G2PHR              : 6;
12039     unsigned                    : 2;
12040     };
12041   } __COG2PHRbits_t;
12042 
12043 extern __at(0x070D) volatile __COG2PHRbits_t COG2PHRbits;
12044 
12045 #define _COG2PHR_PHR0           0x01
12046 #define _COG2PHR_G2PHR0         0x01
12047 #define _COG2PHR_PHR1           0x02
12048 #define _COG2PHR_G2PHR1         0x02
12049 #define _COG2PHR_PHR2           0x04
12050 #define _COG2PHR_G2PHR2         0x04
12051 #define _COG2PHR_PHR3           0x08
12052 #define _COG2PHR_G2PHR3         0x08
12053 #define _COG2PHR_PHR4           0x10
12054 #define _COG2PHR_G2PHR4         0x10
12055 #define _COG2PHR_PHR5           0x20
12056 #define _COG2PHR_G2PHR5         0x20
12057 
12058 //==============================================================================
12059 
12060 
12061 //==============================================================================
12062 //        COG2PHF Bits
12063 
12064 extern __at(0x070E) __sfr COG2PHF;
12065 
12066 typedef union
12067   {
12068   struct
12069     {
12070     unsigned PHF0               : 1;
12071     unsigned PHF1               : 1;
12072     unsigned PHF2               : 1;
12073     unsigned PHF3               : 1;
12074     unsigned PHF4               : 1;
12075     unsigned PHF5               : 1;
12076     unsigned                    : 1;
12077     unsigned                    : 1;
12078     };
12079 
12080   struct
12081     {
12082     unsigned G2PHF0             : 1;
12083     unsigned G2PHF1             : 1;
12084     unsigned G2PHF2             : 1;
12085     unsigned G2PHF3             : 1;
12086     unsigned G2PHF4             : 1;
12087     unsigned G2PHF5             : 1;
12088     unsigned                    : 1;
12089     unsigned                    : 1;
12090     };
12091 
12092   struct
12093     {
12094     unsigned PHF                : 6;
12095     unsigned                    : 2;
12096     };
12097 
12098   struct
12099     {
12100     unsigned G2PHF              : 6;
12101     unsigned                    : 2;
12102     };
12103   } __COG2PHFbits_t;
12104 
12105 extern __at(0x070E) volatile __COG2PHFbits_t COG2PHFbits;
12106 
12107 #define _COG2PHF_PHF0           0x01
12108 #define _COG2PHF_G2PHF0         0x01
12109 #define _COG2PHF_PHF1           0x02
12110 #define _COG2PHF_G2PHF1         0x02
12111 #define _COG2PHF_PHF2           0x04
12112 #define _COG2PHF_G2PHF2         0x04
12113 #define _COG2PHF_PHF3           0x08
12114 #define _COG2PHF_G2PHF3         0x08
12115 #define _COG2PHF_PHF4           0x10
12116 #define _COG2PHF_G2PHF4         0x10
12117 #define _COG2PHF_PHF5           0x20
12118 #define _COG2PHF_G2PHF5         0x20
12119 
12120 //==============================================================================
12121 
12122 
12123 //==============================================================================
12124 //        COG2BLKR Bits
12125 
12126 extern __at(0x070F) __sfr COG2BLKR;
12127 
12128 typedef union
12129   {
12130   struct
12131     {
12132     unsigned BLKR0              : 1;
12133     unsigned BLKR1              : 1;
12134     unsigned BLKR2              : 1;
12135     unsigned BLKR3              : 1;
12136     unsigned BLKR4              : 1;
12137     unsigned BLKR5              : 1;
12138     unsigned                    : 1;
12139     unsigned                    : 1;
12140     };
12141 
12142   struct
12143     {
12144     unsigned G2BLKR0            : 1;
12145     unsigned G2BLKR1            : 1;
12146     unsigned G2BLKR2            : 1;
12147     unsigned G2BLKR3            : 1;
12148     unsigned G2BLKR4            : 1;
12149     unsigned G2BLKR5            : 1;
12150     unsigned                    : 1;
12151     unsigned                    : 1;
12152     };
12153 
12154   struct
12155     {
12156     unsigned BLKR               : 6;
12157     unsigned                    : 2;
12158     };
12159 
12160   struct
12161     {
12162     unsigned G2BLKR             : 6;
12163     unsigned                    : 2;
12164     };
12165   } __COG2BLKRbits_t;
12166 
12167 extern __at(0x070F) volatile __COG2BLKRbits_t COG2BLKRbits;
12168 
12169 #define _COG2BLKR_BLKR0         0x01
12170 #define _COG2BLKR_G2BLKR0       0x01
12171 #define _COG2BLKR_BLKR1         0x02
12172 #define _COG2BLKR_G2BLKR1       0x02
12173 #define _COG2BLKR_BLKR2         0x04
12174 #define _COG2BLKR_G2BLKR2       0x04
12175 #define _COG2BLKR_BLKR3         0x08
12176 #define _COG2BLKR_G2BLKR3       0x08
12177 #define _COG2BLKR_BLKR4         0x10
12178 #define _COG2BLKR_G2BLKR4       0x10
12179 #define _COG2BLKR_BLKR5         0x20
12180 #define _COG2BLKR_G2BLKR5       0x20
12181 
12182 //==============================================================================
12183 
12184 
12185 //==============================================================================
12186 //        COG2BLKF Bits
12187 
12188 extern __at(0x0710) __sfr COG2BLKF;
12189 
12190 typedef union
12191   {
12192   struct
12193     {
12194     unsigned BLKF0              : 1;
12195     unsigned BLKF1              : 1;
12196     unsigned BLKF2              : 1;
12197     unsigned BLKF3              : 1;
12198     unsigned BLKF4              : 1;
12199     unsigned BLKF5              : 1;
12200     unsigned                    : 1;
12201     unsigned                    : 1;
12202     };
12203 
12204   struct
12205     {
12206     unsigned G2BLKF0            : 1;
12207     unsigned G2BLKF1            : 1;
12208     unsigned G2BLKF2            : 1;
12209     unsigned G2BLKF3            : 1;
12210     unsigned G2BLKF4            : 1;
12211     unsigned G2BLKF5            : 1;
12212     unsigned                    : 1;
12213     unsigned                    : 1;
12214     };
12215 
12216   struct
12217     {
12218     unsigned BLKF               : 6;
12219     unsigned                    : 2;
12220     };
12221 
12222   struct
12223     {
12224     unsigned G2BLKF             : 6;
12225     unsigned                    : 2;
12226     };
12227   } __COG2BLKFbits_t;
12228 
12229 extern __at(0x0710) volatile __COG2BLKFbits_t COG2BLKFbits;
12230 
12231 #define _COG2BLKF_BLKF0         0x01
12232 #define _COG2BLKF_G2BLKF0       0x01
12233 #define _COG2BLKF_BLKF1         0x02
12234 #define _COG2BLKF_G2BLKF1       0x02
12235 #define _COG2BLKF_BLKF2         0x04
12236 #define _COG2BLKF_G2BLKF2       0x04
12237 #define _COG2BLKF_BLKF3         0x08
12238 #define _COG2BLKF_G2BLKF3       0x08
12239 #define _COG2BLKF_BLKF4         0x10
12240 #define _COG2BLKF_G2BLKF4       0x10
12241 #define _COG2BLKF_BLKF5         0x20
12242 #define _COG2BLKF_G2BLKF5       0x20
12243 
12244 //==============================================================================
12245 
12246 
12247 //==============================================================================
12248 //        COG2DBR Bits
12249 
12250 extern __at(0x0711) __sfr COG2DBR;
12251 
12252 typedef union
12253   {
12254   struct
12255     {
12256     unsigned DBR0               : 1;
12257     unsigned DBR1               : 1;
12258     unsigned DBR2               : 1;
12259     unsigned DBR3               : 1;
12260     unsigned DBR4               : 1;
12261     unsigned DBR5               : 1;
12262     unsigned                    : 1;
12263     unsigned                    : 1;
12264     };
12265 
12266   struct
12267     {
12268     unsigned G2DBR0             : 1;
12269     unsigned G2DBR1             : 1;
12270     unsigned G2DBR2             : 1;
12271     unsigned G2DBR3             : 1;
12272     unsigned G2DBR4             : 1;
12273     unsigned G2DBR5             : 1;
12274     unsigned                    : 1;
12275     unsigned                    : 1;
12276     };
12277 
12278   struct
12279     {
12280     unsigned G2DBR              : 6;
12281     unsigned                    : 2;
12282     };
12283 
12284   struct
12285     {
12286     unsigned DBR                : 6;
12287     unsigned                    : 2;
12288     };
12289   } __COG2DBRbits_t;
12290 
12291 extern __at(0x0711) volatile __COG2DBRbits_t COG2DBRbits;
12292 
12293 #define _COG2DBR_DBR0           0x01
12294 #define _COG2DBR_G2DBR0         0x01
12295 #define _COG2DBR_DBR1           0x02
12296 #define _COG2DBR_G2DBR1         0x02
12297 #define _COG2DBR_DBR2           0x04
12298 #define _COG2DBR_G2DBR2         0x04
12299 #define _COG2DBR_DBR3           0x08
12300 #define _COG2DBR_G2DBR3         0x08
12301 #define _COG2DBR_DBR4           0x10
12302 #define _COG2DBR_G2DBR4         0x10
12303 #define _COG2DBR_DBR5           0x20
12304 #define _COG2DBR_G2DBR5         0x20
12305 
12306 //==============================================================================
12307 
12308 
12309 //==============================================================================
12310 //        COG2DBF Bits
12311 
12312 extern __at(0x0712) __sfr COG2DBF;
12313 
12314 typedef union
12315   {
12316   struct
12317     {
12318     unsigned DBF0               : 1;
12319     unsigned DBF1               : 1;
12320     unsigned DBF2               : 1;
12321     unsigned DBF3               : 1;
12322     unsigned DBF4               : 1;
12323     unsigned DBF5               : 1;
12324     unsigned                    : 1;
12325     unsigned                    : 1;
12326     };
12327 
12328   struct
12329     {
12330     unsigned G2DBF0             : 1;
12331     unsigned G2DBF1             : 1;
12332     unsigned G2DBF2             : 1;
12333     unsigned G2DBF3             : 1;
12334     unsigned G2DBF4             : 1;
12335     unsigned G2DBF5             : 1;
12336     unsigned                    : 1;
12337     unsigned                    : 1;
12338     };
12339 
12340   struct
12341     {
12342     unsigned DBF                : 6;
12343     unsigned                    : 2;
12344     };
12345 
12346   struct
12347     {
12348     unsigned G2DBF              : 6;
12349     unsigned                    : 2;
12350     };
12351   } __COG2DBFbits_t;
12352 
12353 extern __at(0x0712) volatile __COG2DBFbits_t COG2DBFbits;
12354 
12355 #define _COG2DBF_DBF0           0x01
12356 #define _COG2DBF_G2DBF0         0x01
12357 #define _COG2DBF_DBF1           0x02
12358 #define _COG2DBF_G2DBF1         0x02
12359 #define _COG2DBF_DBF2           0x04
12360 #define _COG2DBF_G2DBF2         0x04
12361 #define _COG2DBF_DBF3           0x08
12362 #define _COG2DBF_G2DBF3         0x08
12363 #define _COG2DBF_DBF4           0x10
12364 #define _COG2DBF_G2DBF4         0x10
12365 #define _COG2DBF_DBF5           0x20
12366 #define _COG2DBF_G2DBF5         0x20
12367 
12368 //==============================================================================
12369 
12370 
12371 //==============================================================================
12372 //        COG2CON0 Bits
12373 
12374 extern __at(0x0713) __sfr COG2CON0;
12375 
12376 typedef union
12377   {
12378   struct
12379     {
12380     unsigned MD0                : 1;
12381     unsigned MD1                : 1;
12382     unsigned MD2                : 1;
12383     unsigned CS0                : 1;
12384     unsigned CS1                : 1;
12385     unsigned                    : 1;
12386     unsigned LD                 : 1;
12387     unsigned EN                 : 1;
12388     };
12389 
12390   struct
12391     {
12392     unsigned G2MD0              : 1;
12393     unsigned G2MD1              : 1;
12394     unsigned G2MD2              : 1;
12395     unsigned G2CS0              : 1;
12396     unsigned G2CS1              : 1;
12397     unsigned                    : 1;
12398     unsigned G2LD               : 1;
12399     unsigned G2EN               : 1;
12400     };
12401 
12402   struct
12403     {
12404     unsigned MD                 : 3;
12405     unsigned                    : 5;
12406     };
12407 
12408   struct
12409     {
12410     unsigned G2MD               : 3;
12411     unsigned                    : 5;
12412     };
12413 
12414   struct
12415     {
12416     unsigned                    : 3;
12417     unsigned G2CS               : 2;
12418     unsigned                    : 3;
12419     };
12420 
12421   struct
12422     {
12423     unsigned                    : 3;
12424     unsigned CS                 : 2;
12425     unsigned                    : 3;
12426     };
12427   } __COG2CON0bits_t;
12428 
12429 extern __at(0x0713) volatile __COG2CON0bits_t COG2CON0bits;
12430 
12431 #define _COG2CON0_MD0           0x01
12432 #define _COG2CON0_G2MD0         0x01
12433 #define _COG2CON0_MD1           0x02
12434 #define _COG2CON0_G2MD1         0x02
12435 #define _COG2CON0_MD2           0x04
12436 #define _COG2CON0_G2MD2         0x04
12437 #define _COG2CON0_CS0           0x08
12438 #define _COG2CON0_G2CS0         0x08
12439 #define _COG2CON0_CS1           0x10
12440 #define _COG2CON0_G2CS1         0x10
12441 #define _COG2CON0_LD            0x40
12442 #define _COG2CON0_G2LD          0x40
12443 #define _COG2CON0_EN            0x80
12444 #define _COG2CON0_G2EN          0x80
12445 
12446 //==============================================================================
12447 
12448 
12449 //==============================================================================
12450 //        COG2CON1 Bits
12451 
12452 extern __at(0x0714) __sfr COG2CON1;
12453 
12454 typedef union
12455   {
12456   struct
12457     {
12458     unsigned POLA               : 1;
12459     unsigned POLB               : 1;
12460     unsigned POLC               : 1;
12461     unsigned POLD               : 1;
12462     unsigned                    : 1;
12463     unsigned                    : 1;
12464     unsigned FDBS               : 1;
12465     unsigned RDBS               : 1;
12466     };
12467 
12468   struct
12469     {
12470     unsigned G2POLA             : 1;
12471     unsigned G2POLB             : 1;
12472     unsigned G2POLC             : 1;
12473     unsigned G2POLD             : 1;
12474     unsigned                    : 1;
12475     unsigned                    : 1;
12476     unsigned G2FDBS             : 1;
12477     unsigned G2RDBS             : 1;
12478     };
12479   } __COG2CON1bits_t;
12480 
12481 extern __at(0x0714) volatile __COG2CON1bits_t COG2CON1bits;
12482 
12483 #define _COG2CON1_POLA          0x01
12484 #define _COG2CON1_G2POLA        0x01
12485 #define _COG2CON1_POLB          0x02
12486 #define _COG2CON1_G2POLB        0x02
12487 #define _COG2CON1_POLC          0x04
12488 #define _COG2CON1_G2POLC        0x04
12489 #define _COG2CON1_POLD          0x08
12490 #define _COG2CON1_G2POLD        0x08
12491 #define _COG2CON1_FDBS          0x40
12492 #define _COG2CON1_G2FDBS        0x40
12493 #define _COG2CON1_RDBS          0x80
12494 #define _COG2CON1_G2RDBS        0x80
12495 
12496 //==============================================================================
12497 
12498 
12499 //==============================================================================
12500 //        COG2RIS0 Bits
12501 
12502 extern __at(0x0715) __sfr COG2RIS0;
12503 
12504 typedef union
12505   {
12506   struct
12507     {
12508     unsigned RIS0               : 1;
12509     unsigned RIS1               : 1;
12510     unsigned RIS2               : 1;
12511     unsigned RIS3               : 1;
12512     unsigned RIS4               : 1;
12513     unsigned RIS5               : 1;
12514     unsigned RIS6               : 1;
12515     unsigned RIS7               : 1;
12516     };
12517 
12518   struct
12519     {
12520     unsigned G2RIS0             : 1;
12521     unsigned G2RIS1             : 1;
12522     unsigned G2RIS2             : 1;
12523     unsigned G2RIS3             : 1;
12524     unsigned G2RIS4             : 1;
12525     unsigned G2RIS5             : 1;
12526     unsigned G2RIS6             : 1;
12527     unsigned G2RIS7             : 1;
12528     };
12529   } __COG2RIS0bits_t;
12530 
12531 extern __at(0x0715) volatile __COG2RIS0bits_t COG2RIS0bits;
12532 
12533 #define _COG2RIS0_RIS0          0x01
12534 #define _COG2RIS0_G2RIS0        0x01
12535 #define _COG2RIS0_RIS1          0x02
12536 #define _COG2RIS0_G2RIS1        0x02
12537 #define _COG2RIS0_RIS2          0x04
12538 #define _COG2RIS0_G2RIS2        0x04
12539 #define _COG2RIS0_RIS3          0x08
12540 #define _COG2RIS0_G2RIS3        0x08
12541 #define _COG2RIS0_RIS4          0x10
12542 #define _COG2RIS0_G2RIS4        0x10
12543 #define _COG2RIS0_RIS5          0x20
12544 #define _COG2RIS0_G2RIS5        0x20
12545 #define _COG2RIS0_RIS6          0x40
12546 #define _COG2RIS0_G2RIS6        0x40
12547 #define _COG2RIS0_RIS7          0x80
12548 #define _COG2RIS0_G2RIS7        0x80
12549 
12550 //==============================================================================
12551 
12552 
12553 //==============================================================================
12554 //        COG2RIS1 Bits
12555 
12556 extern __at(0x0716) __sfr COG2RIS1;
12557 
12558 typedef union
12559   {
12560   struct
12561     {
12562     unsigned RIS8               : 1;
12563     unsigned RIS9               : 1;
12564     unsigned RIS10              : 1;
12565     unsigned RIS11              : 1;
12566     unsigned RIS12              : 1;
12567     unsigned RIS13              : 1;
12568     unsigned RIS14              : 1;
12569     unsigned RIS15              : 1;
12570     };
12571 
12572   struct
12573     {
12574     unsigned G2RIS8             : 1;
12575     unsigned G2RIS9             : 1;
12576     unsigned G2RIS10            : 1;
12577     unsigned G2RIS11            : 1;
12578     unsigned G2RIS12            : 1;
12579     unsigned G2RIS13            : 1;
12580     unsigned G2RIS14            : 1;
12581     unsigned G2RIS15            : 1;
12582     };
12583   } __COG2RIS1bits_t;
12584 
12585 extern __at(0x0716) volatile __COG2RIS1bits_t COG2RIS1bits;
12586 
12587 #define _COG2RIS1_RIS8          0x01
12588 #define _COG2RIS1_G2RIS8        0x01
12589 #define _COG2RIS1_RIS9          0x02
12590 #define _COG2RIS1_G2RIS9        0x02
12591 #define _COG2RIS1_RIS10         0x04
12592 #define _COG2RIS1_G2RIS10       0x04
12593 #define _COG2RIS1_RIS11         0x08
12594 #define _COG2RIS1_G2RIS11       0x08
12595 #define _COG2RIS1_RIS12         0x10
12596 #define _COG2RIS1_G2RIS12       0x10
12597 #define _COG2RIS1_RIS13         0x20
12598 #define _COG2RIS1_G2RIS13       0x20
12599 #define _COG2RIS1_RIS14         0x40
12600 #define _COG2RIS1_G2RIS14       0x40
12601 #define _COG2RIS1_RIS15         0x80
12602 #define _COG2RIS1_G2RIS15       0x80
12603 
12604 //==============================================================================
12605 
12606 
12607 //==============================================================================
12608 //        COG2RSIM0 Bits
12609 
12610 extern __at(0x0717) __sfr COG2RSIM0;
12611 
12612 typedef union
12613   {
12614   struct
12615     {
12616     unsigned RSIM0              : 1;
12617     unsigned RSIM1              : 1;
12618     unsigned RSIM2              : 1;
12619     unsigned RSIM3              : 1;
12620     unsigned RSIM4              : 1;
12621     unsigned RSIM5              : 1;
12622     unsigned RSIM6              : 1;
12623     unsigned RSIM7              : 1;
12624     };
12625 
12626   struct
12627     {
12628     unsigned G2RSIM0            : 1;
12629     unsigned G2RSIM1            : 1;
12630     unsigned G2RSIM2            : 1;
12631     unsigned G2RSIM3            : 1;
12632     unsigned G2RSIM4            : 1;
12633     unsigned G2RSIM5            : 1;
12634     unsigned G2RSIM6            : 1;
12635     unsigned G2RSIM7            : 1;
12636     };
12637   } __COG2RSIM0bits_t;
12638 
12639 extern __at(0x0717) volatile __COG2RSIM0bits_t COG2RSIM0bits;
12640 
12641 #define _COG2RSIM0_RSIM0        0x01
12642 #define _COG2RSIM0_G2RSIM0      0x01
12643 #define _COG2RSIM0_RSIM1        0x02
12644 #define _COG2RSIM0_G2RSIM1      0x02
12645 #define _COG2RSIM0_RSIM2        0x04
12646 #define _COG2RSIM0_G2RSIM2      0x04
12647 #define _COG2RSIM0_RSIM3        0x08
12648 #define _COG2RSIM0_G2RSIM3      0x08
12649 #define _COG2RSIM0_RSIM4        0x10
12650 #define _COG2RSIM0_G2RSIM4      0x10
12651 #define _COG2RSIM0_RSIM5        0x20
12652 #define _COG2RSIM0_G2RSIM5      0x20
12653 #define _COG2RSIM0_RSIM6        0x40
12654 #define _COG2RSIM0_G2RSIM6      0x40
12655 #define _COG2RSIM0_RSIM7        0x80
12656 #define _COG2RSIM0_G2RSIM7      0x80
12657 
12658 //==============================================================================
12659 
12660 
12661 //==============================================================================
12662 //        COG2RSIM1 Bits
12663 
12664 extern __at(0x0718) __sfr COG2RSIM1;
12665 
12666 typedef union
12667   {
12668   struct
12669     {
12670     unsigned RSIM8              : 1;
12671     unsigned RSIM9              : 1;
12672     unsigned RSIM10             : 1;
12673     unsigned RSIM11             : 1;
12674     unsigned RSIM12             : 1;
12675     unsigned RSIM13             : 1;
12676     unsigned RSIM14             : 1;
12677     unsigned RSIM15             : 1;
12678     };
12679 
12680   struct
12681     {
12682     unsigned G2RSIM8            : 1;
12683     unsigned G2RSIM9            : 1;
12684     unsigned G2RSIM10           : 1;
12685     unsigned G2RSIM11           : 1;
12686     unsigned G2RSIM12           : 1;
12687     unsigned G2RSIM13           : 1;
12688     unsigned G2RSIM14           : 1;
12689     unsigned G2RSIM15           : 1;
12690     };
12691   } __COG2RSIM1bits_t;
12692 
12693 extern __at(0x0718) volatile __COG2RSIM1bits_t COG2RSIM1bits;
12694 
12695 #define _COG2RSIM1_RSIM8        0x01
12696 #define _COG2RSIM1_G2RSIM8      0x01
12697 #define _COG2RSIM1_RSIM9        0x02
12698 #define _COG2RSIM1_G2RSIM9      0x02
12699 #define _COG2RSIM1_RSIM10       0x04
12700 #define _COG2RSIM1_G2RSIM10     0x04
12701 #define _COG2RSIM1_RSIM11       0x08
12702 #define _COG2RSIM1_G2RSIM11     0x08
12703 #define _COG2RSIM1_RSIM12       0x10
12704 #define _COG2RSIM1_G2RSIM12     0x10
12705 #define _COG2RSIM1_RSIM13       0x20
12706 #define _COG2RSIM1_G2RSIM13     0x20
12707 #define _COG2RSIM1_RSIM14       0x40
12708 #define _COG2RSIM1_G2RSIM14     0x40
12709 #define _COG2RSIM1_RSIM15       0x80
12710 #define _COG2RSIM1_G2RSIM15     0x80
12711 
12712 //==============================================================================
12713 
12714 
12715 //==============================================================================
12716 //        COG2FIS0 Bits
12717 
12718 extern __at(0x0719) __sfr COG2FIS0;
12719 
12720 typedef union
12721   {
12722   struct
12723     {
12724     unsigned FIS0               : 1;
12725     unsigned FIS1               : 1;
12726     unsigned FIS2               : 1;
12727     unsigned FIS3               : 1;
12728     unsigned FIS4               : 1;
12729     unsigned FIS5               : 1;
12730     unsigned FIS6               : 1;
12731     unsigned FIS7               : 1;
12732     };
12733 
12734   struct
12735     {
12736     unsigned G2FIS0             : 1;
12737     unsigned G2FIS1             : 1;
12738     unsigned G2FIS2             : 1;
12739     unsigned G2FIS3             : 1;
12740     unsigned G2FIS4             : 1;
12741     unsigned G2FIS5             : 1;
12742     unsigned G2FIS6             : 1;
12743     unsigned G2FIS7             : 1;
12744     };
12745   } __COG2FIS0bits_t;
12746 
12747 extern __at(0x0719) volatile __COG2FIS0bits_t COG2FIS0bits;
12748 
12749 #define _COG2FIS0_FIS0          0x01
12750 #define _COG2FIS0_G2FIS0        0x01
12751 #define _COG2FIS0_FIS1          0x02
12752 #define _COG2FIS0_G2FIS1        0x02
12753 #define _COG2FIS0_FIS2          0x04
12754 #define _COG2FIS0_G2FIS2        0x04
12755 #define _COG2FIS0_FIS3          0x08
12756 #define _COG2FIS0_G2FIS3        0x08
12757 #define _COG2FIS0_FIS4          0x10
12758 #define _COG2FIS0_G2FIS4        0x10
12759 #define _COG2FIS0_FIS5          0x20
12760 #define _COG2FIS0_G2FIS5        0x20
12761 #define _COG2FIS0_FIS6          0x40
12762 #define _COG2FIS0_G2FIS6        0x40
12763 #define _COG2FIS0_FIS7          0x80
12764 #define _COG2FIS0_G2FIS7        0x80
12765 
12766 //==============================================================================
12767 
12768 
12769 //==============================================================================
12770 //        COG2FIS1 Bits
12771 
12772 extern __at(0x071A) __sfr COG2FIS1;
12773 
12774 typedef union
12775   {
12776   struct
12777     {
12778     unsigned FIS8               : 1;
12779     unsigned FIS9               : 1;
12780     unsigned FIS10              : 1;
12781     unsigned FIS11              : 1;
12782     unsigned FIS12              : 1;
12783     unsigned FIS13              : 1;
12784     unsigned FIS14              : 1;
12785     unsigned FIS15              : 1;
12786     };
12787 
12788   struct
12789     {
12790     unsigned G2FIS8             : 1;
12791     unsigned G2FIS9             : 1;
12792     unsigned G2FIS10            : 1;
12793     unsigned G2FIS11            : 1;
12794     unsigned G2FIS12            : 1;
12795     unsigned G2FIS13            : 1;
12796     unsigned G2FIS14            : 1;
12797     unsigned G2FIS15            : 1;
12798     };
12799   } __COG2FIS1bits_t;
12800 
12801 extern __at(0x071A) volatile __COG2FIS1bits_t COG2FIS1bits;
12802 
12803 #define _COG2FIS1_FIS8          0x01
12804 #define _COG2FIS1_G2FIS8        0x01
12805 #define _COG2FIS1_FIS9          0x02
12806 #define _COG2FIS1_G2FIS9        0x02
12807 #define _COG2FIS1_FIS10         0x04
12808 #define _COG2FIS1_G2FIS10       0x04
12809 #define _COG2FIS1_FIS11         0x08
12810 #define _COG2FIS1_G2FIS11       0x08
12811 #define _COG2FIS1_FIS12         0x10
12812 #define _COG2FIS1_G2FIS12       0x10
12813 #define _COG2FIS1_FIS13         0x20
12814 #define _COG2FIS1_G2FIS13       0x20
12815 #define _COG2FIS1_FIS14         0x40
12816 #define _COG2FIS1_G2FIS14       0x40
12817 #define _COG2FIS1_FIS15         0x80
12818 #define _COG2FIS1_G2FIS15       0x80
12819 
12820 //==============================================================================
12821 
12822 
12823 //==============================================================================
12824 //        COG2FSIM0 Bits
12825 
12826 extern __at(0x071B) __sfr COG2FSIM0;
12827 
12828 typedef union
12829   {
12830   struct
12831     {
12832     unsigned FSIM0              : 1;
12833     unsigned FSIM1              : 1;
12834     unsigned FSIM2              : 1;
12835     unsigned FSIM3              : 1;
12836     unsigned FSIM4              : 1;
12837     unsigned FSIM5              : 1;
12838     unsigned FSIM6              : 1;
12839     unsigned FSIM7              : 1;
12840     };
12841 
12842   struct
12843     {
12844     unsigned G2FSIM0            : 1;
12845     unsigned G2FSIM1            : 1;
12846     unsigned G2FSIM2            : 1;
12847     unsigned G2FSIM3            : 1;
12848     unsigned G2FSIM4            : 1;
12849     unsigned G2FSIM5            : 1;
12850     unsigned G2FSIM6            : 1;
12851     unsigned G2FSIM7            : 1;
12852     };
12853   } __COG2FSIM0bits_t;
12854 
12855 extern __at(0x071B) volatile __COG2FSIM0bits_t COG2FSIM0bits;
12856 
12857 #define _COG2FSIM0_FSIM0        0x01
12858 #define _COG2FSIM0_G2FSIM0      0x01
12859 #define _COG2FSIM0_FSIM1        0x02
12860 #define _COG2FSIM0_G2FSIM1      0x02
12861 #define _COG2FSIM0_FSIM2        0x04
12862 #define _COG2FSIM0_G2FSIM2      0x04
12863 #define _COG2FSIM0_FSIM3        0x08
12864 #define _COG2FSIM0_G2FSIM3      0x08
12865 #define _COG2FSIM0_FSIM4        0x10
12866 #define _COG2FSIM0_G2FSIM4      0x10
12867 #define _COG2FSIM0_FSIM5        0x20
12868 #define _COG2FSIM0_G2FSIM5      0x20
12869 #define _COG2FSIM0_FSIM6        0x40
12870 #define _COG2FSIM0_G2FSIM6      0x40
12871 #define _COG2FSIM0_FSIM7        0x80
12872 #define _COG2FSIM0_G2FSIM7      0x80
12873 
12874 //==============================================================================
12875 
12876 
12877 //==============================================================================
12878 //        COG2FSIM1 Bits
12879 
12880 extern __at(0x071C) __sfr COG2FSIM1;
12881 
12882 typedef union
12883   {
12884   struct
12885     {
12886     unsigned FSIM8              : 1;
12887     unsigned FSIM9              : 1;
12888     unsigned FSIM10             : 1;
12889     unsigned FSIM11             : 1;
12890     unsigned FSIM12             : 1;
12891     unsigned FSIM13             : 1;
12892     unsigned FSIM14             : 1;
12893     unsigned FSIM15             : 1;
12894     };
12895 
12896   struct
12897     {
12898     unsigned G2FSIM8            : 1;
12899     unsigned G2FSIM9            : 1;
12900     unsigned G2FSIM10           : 1;
12901     unsigned G2FSIM11           : 1;
12902     unsigned G2FSIM12           : 1;
12903     unsigned G2FSIM13           : 1;
12904     unsigned G2FSIM14           : 1;
12905     unsigned G2FSIM15           : 1;
12906     };
12907   } __COG2FSIM1bits_t;
12908 
12909 extern __at(0x071C) volatile __COG2FSIM1bits_t COG2FSIM1bits;
12910 
12911 #define _COG2FSIM1_FSIM8        0x01
12912 #define _COG2FSIM1_G2FSIM8      0x01
12913 #define _COG2FSIM1_FSIM9        0x02
12914 #define _COG2FSIM1_G2FSIM9      0x02
12915 #define _COG2FSIM1_FSIM10       0x04
12916 #define _COG2FSIM1_G2FSIM10     0x04
12917 #define _COG2FSIM1_FSIM11       0x08
12918 #define _COG2FSIM1_G2FSIM11     0x08
12919 #define _COG2FSIM1_FSIM12       0x10
12920 #define _COG2FSIM1_G2FSIM12     0x10
12921 #define _COG2FSIM1_FSIM13       0x20
12922 #define _COG2FSIM1_G2FSIM13     0x20
12923 #define _COG2FSIM1_FSIM14       0x40
12924 #define _COG2FSIM1_G2FSIM14     0x40
12925 #define _COG2FSIM1_FSIM15       0x80
12926 #define _COG2FSIM1_G2FSIM15     0x80
12927 
12928 //==============================================================================
12929 
12930 
12931 //==============================================================================
12932 //        COG2ASD0 Bits
12933 
12934 extern __at(0x071D) __sfr COG2ASD0;
12935 
12936 typedef union
12937   {
12938   struct
12939     {
12940     unsigned                    : 1;
12941     unsigned                    : 1;
12942     unsigned ASDAC0             : 1;
12943     unsigned ASDAC1             : 1;
12944     unsigned ASDBD0             : 1;
12945     unsigned ASDBD1             : 1;
12946     unsigned ASREN              : 1;
12947     unsigned ASE                : 1;
12948     };
12949 
12950   struct
12951     {
12952     unsigned                    : 1;
12953     unsigned                    : 1;
12954     unsigned G2ASDAC0           : 1;
12955     unsigned G2ASDAC1           : 1;
12956     unsigned G2ASDBD0           : 1;
12957     unsigned G2ASDBD1           : 1;
12958     unsigned ARSEN              : 1;
12959     unsigned G2ASE              : 1;
12960     };
12961 
12962   struct
12963     {
12964     unsigned                    : 1;
12965     unsigned                    : 1;
12966     unsigned                    : 1;
12967     unsigned                    : 1;
12968     unsigned                    : 1;
12969     unsigned                    : 1;
12970     unsigned G2ARSEN            : 1;
12971     unsigned                    : 1;
12972     };
12973 
12974   struct
12975     {
12976     unsigned                    : 1;
12977     unsigned                    : 1;
12978     unsigned                    : 1;
12979     unsigned                    : 1;
12980     unsigned                    : 1;
12981     unsigned                    : 1;
12982     unsigned G2ASREN            : 1;
12983     unsigned                    : 1;
12984     };
12985 
12986   struct
12987     {
12988     unsigned                    : 2;
12989     unsigned G2ASDAC            : 2;
12990     unsigned                    : 4;
12991     };
12992 
12993   struct
12994     {
12995     unsigned                    : 2;
12996     unsigned ASDAC              : 2;
12997     unsigned                    : 4;
12998     };
12999 
13000   struct
13001     {
13002     unsigned                    : 4;
13003     unsigned G2ASDBD            : 2;
13004     unsigned                    : 2;
13005     };
13006 
13007   struct
13008     {
13009     unsigned                    : 4;
13010     unsigned ASDBD              : 2;
13011     unsigned                    : 2;
13012     };
13013   } __COG2ASD0bits_t;
13014 
13015 extern __at(0x071D) volatile __COG2ASD0bits_t COG2ASD0bits;
13016 
13017 #define _COG2ASD0_ASDAC0        0x04
13018 #define _COG2ASD0_G2ASDAC0      0x04
13019 #define _COG2ASD0_ASDAC1        0x08
13020 #define _COG2ASD0_G2ASDAC1      0x08
13021 #define _COG2ASD0_ASDBD0        0x10
13022 #define _COG2ASD0_G2ASDBD0      0x10
13023 #define _COG2ASD0_ASDBD1        0x20
13024 #define _COG2ASD0_G2ASDBD1      0x20
13025 #define _COG2ASD0_ASREN         0x40
13026 #define _COG2ASD0_ARSEN         0x40
13027 #define _COG2ASD0_G2ARSEN       0x40
13028 #define _COG2ASD0_G2ASREN       0x40
13029 #define _COG2ASD0_ASE           0x80
13030 #define _COG2ASD0_G2ASE         0x80
13031 
13032 //==============================================================================
13033 
13034 
13035 //==============================================================================
13036 //        COG2ASD1 Bits
13037 
13038 extern __at(0x071E) __sfr COG2ASD1;
13039 
13040 typedef union
13041   {
13042   struct
13043     {
13044     unsigned AS0E               : 1;
13045     unsigned AS1E               : 1;
13046     unsigned AS2E               : 1;
13047     unsigned AS3E               : 1;
13048     unsigned AS4E               : 1;
13049     unsigned AS5E               : 1;
13050     unsigned AS6E               : 1;
13051     unsigned AS7E               : 1;
13052     };
13053 
13054   struct
13055     {
13056     unsigned G2AS0E             : 1;
13057     unsigned G2AS1E             : 1;
13058     unsigned G2AS2E             : 1;
13059     unsigned G2AS3E             : 1;
13060     unsigned G2AS4E             : 1;
13061     unsigned G2AS5E             : 1;
13062     unsigned G2AS6E             : 1;
13063     unsigned G2AS7E             : 1;
13064     };
13065   } __COG2ASD1bits_t;
13066 
13067 extern __at(0x071E) volatile __COG2ASD1bits_t COG2ASD1bits;
13068 
13069 #define _COG2ASD1_AS0E          0x01
13070 #define _COG2ASD1_G2AS0E        0x01
13071 #define _COG2ASD1_AS1E          0x02
13072 #define _COG2ASD1_G2AS1E        0x02
13073 #define _COG2ASD1_AS2E          0x04
13074 #define _COG2ASD1_G2AS2E        0x04
13075 #define _COG2ASD1_AS3E          0x08
13076 #define _COG2ASD1_G2AS3E        0x08
13077 #define _COG2ASD1_AS4E          0x10
13078 #define _COG2ASD1_G2AS4E        0x10
13079 #define _COG2ASD1_AS5E          0x20
13080 #define _COG2ASD1_G2AS5E        0x20
13081 #define _COG2ASD1_AS6E          0x40
13082 #define _COG2ASD1_G2AS6E        0x40
13083 #define _COG2ASD1_AS7E          0x80
13084 #define _COG2ASD1_G2AS7E        0x80
13085 
13086 //==============================================================================
13087 
13088 
13089 //==============================================================================
13090 //        COG2STR Bits
13091 
13092 extern __at(0x071F) __sfr COG2STR;
13093 
13094 typedef union
13095   {
13096   struct
13097     {
13098     unsigned STRA               : 1;
13099     unsigned STRB               : 1;
13100     unsigned STRC               : 1;
13101     unsigned STRD               : 1;
13102     unsigned SDATA              : 1;
13103     unsigned SDATB              : 1;
13104     unsigned SDATC              : 1;
13105     unsigned SDATD              : 1;
13106     };
13107 
13108   struct
13109     {
13110     unsigned G2STRA             : 1;
13111     unsigned G2STRB             : 1;
13112     unsigned G2STRC             : 1;
13113     unsigned G2STRD             : 1;
13114     unsigned G2SDATA            : 1;
13115     unsigned G2SDATB            : 1;
13116     unsigned G2SDATC            : 1;
13117     unsigned G2SDATD            : 1;
13118     };
13119   } __COG2STRbits_t;
13120 
13121 extern __at(0x071F) volatile __COG2STRbits_t COG2STRbits;
13122 
13123 #define _COG2STR_STRA           0x01
13124 #define _COG2STR_G2STRA         0x01
13125 #define _COG2STR_STRB           0x02
13126 #define _COG2STR_G2STRB         0x02
13127 #define _COG2STR_STRC           0x04
13128 #define _COG2STR_G2STRC         0x04
13129 #define _COG2STR_STRD           0x08
13130 #define _COG2STR_G2STRD         0x08
13131 #define _COG2STR_SDATA          0x10
13132 #define _COG2STR_G2SDATA        0x10
13133 #define _COG2STR_SDATB          0x20
13134 #define _COG2STR_G2SDATB        0x20
13135 #define _COG2STR_SDATC          0x40
13136 #define _COG2STR_G2SDATC        0x40
13137 #define _COG2STR_SDATD          0x80
13138 #define _COG2STR_G2SDATD        0x80
13139 
13140 //==============================================================================
13141 
13142 
13143 //==============================================================================
13144 //        PRG1RTSS Bits
13145 
13146 extern __at(0x078E) __sfr PRG1RTSS;
13147 
13148 typedef union
13149   {
13150   struct
13151     {
13152     unsigned RTSS0              : 1;
13153     unsigned RTSS1              : 1;
13154     unsigned RTSS2              : 1;
13155     unsigned RTSS3              : 1;
13156     unsigned                    : 1;
13157     unsigned                    : 1;
13158     unsigned                    : 1;
13159     unsigned                    : 1;
13160     };
13161 
13162   struct
13163     {
13164     unsigned RG1RTSS0           : 1;
13165     unsigned RG1RTSS1           : 1;
13166     unsigned RG1RTSS2           : 1;
13167     unsigned RG1RTSS3           : 1;
13168     unsigned                    : 1;
13169     unsigned                    : 1;
13170     unsigned                    : 1;
13171     unsigned                    : 1;
13172     };
13173 
13174   struct
13175     {
13176     unsigned RG1RTSS            : 4;
13177     unsigned                    : 4;
13178     };
13179 
13180   struct
13181     {
13182     unsigned RTSS               : 4;
13183     unsigned                    : 4;
13184     };
13185   } __PRG1RTSSbits_t;
13186 
13187 extern __at(0x078E) volatile __PRG1RTSSbits_t PRG1RTSSbits;
13188 
13189 #define _RTSS0                  0x01
13190 #define _RG1RTSS0               0x01
13191 #define _RTSS1                  0x02
13192 #define _RG1RTSS1               0x02
13193 #define _RTSS2                  0x04
13194 #define _RG1RTSS2               0x04
13195 #define _RTSS3                  0x08
13196 #define _RG1RTSS3               0x08
13197 
13198 //==============================================================================
13199 
13200 
13201 //==============================================================================
13202 //        PRG1FTSS Bits
13203 
13204 extern __at(0x078F) __sfr PRG1FTSS;
13205 
13206 typedef union
13207   {
13208   struct
13209     {
13210     unsigned FTSS0              : 1;
13211     unsigned FTSS1              : 1;
13212     unsigned FTSS2              : 1;
13213     unsigned FTSS3              : 1;
13214     unsigned                    : 1;
13215     unsigned                    : 1;
13216     unsigned                    : 1;
13217     unsigned                    : 1;
13218     };
13219 
13220   struct
13221     {
13222     unsigned RG1FTSS0           : 1;
13223     unsigned RG1FTSS1           : 1;
13224     unsigned RG1FTSS2           : 1;
13225     unsigned RG1FTSS3           : 1;
13226     unsigned                    : 1;
13227     unsigned                    : 1;
13228     unsigned                    : 1;
13229     unsigned                    : 1;
13230     };
13231 
13232   struct
13233     {
13234     unsigned RG1FTSS            : 4;
13235     unsigned                    : 4;
13236     };
13237 
13238   struct
13239     {
13240     unsigned FTSS               : 4;
13241     unsigned                    : 4;
13242     };
13243   } __PRG1FTSSbits_t;
13244 
13245 extern __at(0x078F) volatile __PRG1FTSSbits_t PRG1FTSSbits;
13246 
13247 #define _FTSS0                  0x01
13248 #define _RG1FTSS0               0x01
13249 #define _FTSS1                  0x02
13250 #define _RG1FTSS1               0x02
13251 #define _FTSS2                  0x04
13252 #define _RG1FTSS2               0x04
13253 #define _FTSS3                  0x08
13254 #define _RG1FTSS3               0x08
13255 
13256 //==============================================================================
13257 
13258 
13259 //==============================================================================
13260 //        PRG1INS Bits
13261 
13262 extern __at(0x0790) __sfr PRG1INS;
13263 
13264 typedef union
13265   {
13266   struct
13267     {
13268     unsigned INS0               : 1;
13269     unsigned INS1               : 1;
13270     unsigned INS2               : 1;
13271     unsigned INS3               : 1;
13272     unsigned                    : 1;
13273     unsigned                    : 1;
13274     unsigned                    : 1;
13275     unsigned                    : 1;
13276     };
13277 
13278   struct
13279     {
13280     unsigned RG1INS0            : 1;
13281     unsigned RG1INS1            : 1;
13282     unsigned RG1INS2            : 1;
13283     unsigned RG1INS3            : 1;
13284     unsigned                    : 1;
13285     unsigned                    : 1;
13286     unsigned                    : 1;
13287     unsigned                    : 1;
13288     };
13289 
13290   struct
13291     {
13292     unsigned RG1INS             : 4;
13293     unsigned                    : 4;
13294     };
13295 
13296   struct
13297     {
13298     unsigned INS                : 4;
13299     unsigned                    : 4;
13300     };
13301   } __PRG1INSbits_t;
13302 
13303 extern __at(0x0790) volatile __PRG1INSbits_t PRG1INSbits;
13304 
13305 #define _INS0                   0x01
13306 #define _RG1INS0                0x01
13307 #define _INS1                   0x02
13308 #define _RG1INS1                0x02
13309 #define _INS2                   0x04
13310 #define _RG1INS2                0x04
13311 #define _INS3                   0x08
13312 #define _RG1INS3                0x08
13313 
13314 //==============================================================================
13315 
13316 
13317 //==============================================================================
13318 //        PRG1CON0 Bits
13319 
13320 extern __at(0x0791) __sfr PRG1CON0;
13321 
13322 typedef union
13323   {
13324   struct
13325     {
13326     unsigned GO                 : 1;
13327     unsigned OS                 : 1;
13328     unsigned MODE0              : 1;
13329     unsigned MODE1              : 1;
13330     unsigned REDG               : 1;
13331     unsigned FEDG               : 1;
13332     unsigned                    : 1;
13333     unsigned EN                 : 1;
13334     };
13335 
13336   struct
13337     {
13338     unsigned RG1GO              : 1;
13339     unsigned RG1OS              : 1;
13340     unsigned RG1MODE0           : 1;
13341     unsigned RG1MODE1           : 1;
13342     unsigned RG1REDG            : 1;
13343     unsigned RG1FEDG            : 1;
13344     unsigned                    : 1;
13345     unsigned RG1EN              : 1;
13346     };
13347 
13348   struct
13349     {
13350     unsigned                    : 2;
13351     unsigned MODE               : 2;
13352     unsigned                    : 4;
13353     };
13354 
13355   struct
13356     {
13357     unsigned                    : 2;
13358     unsigned RG1MODE            : 2;
13359     unsigned                    : 4;
13360     };
13361   } __PRG1CON0bits_t;
13362 
13363 extern __at(0x0791) volatile __PRG1CON0bits_t PRG1CON0bits;
13364 
13365 #define _PRG1CON0_GO            0x01
13366 #define _PRG1CON0_RG1GO         0x01
13367 #define _PRG1CON0_OS            0x02
13368 #define _PRG1CON0_RG1OS         0x02
13369 #define _PRG1CON0_MODE0         0x04
13370 #define _PRG1CON0_RG1MODE0      0x04
13371 #define _PRG1CON0_MODE1         0x08
13372 #define _PRG1CON0_RG1MODE1      0x08
13373 #define _PRG1CON0_REDG          0x10
13374 #define _PRG1CON0_RG1REDG       0x10
13375 #define _PRG1CON0_FEDG          0x20
13376 #define _PRG1CON0_RG1FEDG       0x20
13377 #define _PRG1CON0_EN            0x80
13378 #define _PRG1CON0_RG1EN         0x80
13379 
13380 //==============================================================================
13381 
13382 
13383 //==============================================================================
13384 //        PRG1CON1 Bits
13385 
13386 extern __at(0x0792) __sfr PRG1CON1;
13387 
13388 typedef union
13389   {
13390   struct
13391     {
13392     unsigned RPOL               : 1;
13393     unsigned FPOL               : 1;
13394     unsigned RDY                : 1;
13395     unsigned                    : 1;
13396     unsigned                    : 1;
13397     unsigned                    : 1;
13398     unsigned                    : 1;
13399     unsigned                    : 1;
13400     };
13401 
13402   struct
13403     {
13404     unsigned RG1RPOL            : 1;
13405     unsigned RG1FPOL            : 1;
13406     unsigned RG1RDY             : 1;
13407     unsigned                    : 1;
13408     unsigned                    : 1;
13409     unsigned                    : 1;
13410     unsigned                    : 1;
13411     unsigned                    : 1;
13412     };
13413   } __PRG1CON1bits_t;
13414 
13415 extern __at(0x0792) volatile __PRG1CON1bits_t PRG1CON1bits;
13416 
13417 #define _RPOL                   0x01
13418 #define _RG1RPOL                0x01
13419 #define _FPOL                   0x02
13420 #define _RG1FPOL                0x02
13421 #define _RDY                    0x04
13422 #define _RG1RDY                 0x04
13423 
13424 //==============================================================================
13425 
13426 
13427 //==============================================================================
13428 //        PRG1CON2 Bits
13429 
13430 extern __at(0x0793) __sfr PRG1CON2;
13431 
13432 typedef union
13433   {
13434   struct
13435     {
13436     unsigned ISET0              : 1;
13437     unsigned ISET1              : 1;
13438     unsigned ISET2              : 1;
13439     unsigned ISET3              : 1;
13440     unsigned ISET4              : 1;
13441     unsigned                    : 1;
13442     unsigned                    : 1;
13443     unsigned                    : 1;
13444     };
13445 
13446   struct
13447     {
13448     unsigned RG1ISET0           : 1;
13449     unsigned RG1ISET1           : 1;
13450     unsigned RG1ISET2           : 1;
13451     unsigned RG1ISET3           : 1;
13452     unsigned RG1ISET4           : 1;
13453     unsigned                    : 1;
13454     unsigned                    : 1;
13455     unsigned                    : 1;
13456     };
13457 
13458   struct
13459     {
13460     unsigned ISET               : 5;
13461     unsigned                    : 3;
13462     };
13463 
13464   struct
13465     {
13466     unsigned RG1ISET            : 5;
13467     unsigned                    : 3;
13468     };
13469   } __PRG1CON2bits_t;
13470 
13471 extern __at(0x0793) volatile __PRG1CON2bits_t PRG1CON2bits;
13472 
13473 #define _ISET0                  0x01
13474 #define _RG1ISET0               0x01
13475 #define _ISET1                  0x02
13476 #define _RG1ISET1               0x02
13477 #define _ISET2                  0x04
13478 #define _RG1ISET2               0x04
13479 #define _ISET3                  0x08
13480 #define _RG1ISET3               0x08
13481 #define _ISET4                  0x10
13482 #define _RG1ISET4               0x10
13483 
13484 //==============================================================================
13485 
13486 
13487 //==============================================================================
13488 //        PRG2RTSS Bits
13489 
13490 extern __at(0x0794) __sfr PRG2RTSS;
13491 
13492 typedef union
13493   {
13494   struct
13495     {
13496     unsigned RTSS0              : 1;
13497     unsigned RTSS1              : 1;
13498     unsigned RTSS2              : 1;
13499     unsigned RTSS3              : 1;
13500     unsigned                    : 1;
13501     unsigned                    : 1;
13502     unsigned                    : 1;
13503     unsigned                    : 1;
13504     };
13505 
13506   struct
13507     {
13508     unsigned RG2RTSS0           : 1;
13509     unsigned RG2RTSS1           : 1;
13510     unsigned RG2RTSS2           : 1;
13511     unsigned RG2RTSS3           : 1;
13512     unsigned                    : 1;
13513     unsigned                    : 1;
13514     unsigned                    : 1;
13515     unsigned                    : 1;
13516     };
13517 
13518   struct
13519     {
13520     unsigned RG2RTSS            : 4;
13521     unsigned                    : 4;
13522     };
13523 
13524   struct
13525     {
13526     unsigned RTSS               : 4;
13527     unsigned                    : 4;
13528     };
13529   } __PRG2RTSSbits_t;
13530 
13531 extern __at(0x0794) volatile __PRG2RTSSbits_t PRG2RTSSbits;
13532 
13533 #define _PRG2RTSS_RTSS0         0x01
13534 #define _PRG2RTSS_RG2RTSS0      0x01
13535 #define _PRG2RTSS_RTSS1         0x02
13536 #define _PRG2RTSS_RG2RTSS1      0x02
13537 #define _PRG2RTSS_RTSS2         0x04
13538 #define _PRG2RTSS_RG2RTSS2      0x04
13539 #define _PRG2RTSS_RTSS3         0x08
13540 #define _PRG2RTSS_RG2RTSS3      0x08
13541 
13542 //==============================================================================
13543 
13544 
13545 //==============================================================================
13546 //        PRG2FTSS Bits
13547 
13548 extern __at(0x0795) __sfr PRG2FTSS;
13549 
13550 typedef union
13551   {
13552   struct
13553     {
13554     unsigned FTSS0              : 1;
13555     unsigned FTSS1              : 1;
13556     unsigned FTSS2              : 1;
13557     unsigned FTSS3              : 1;
13558     unsigned                    : 1;
13559     unsigned                    : 1;
13560     unsigned                    : 1;
13561     unsigned                    : 1;
13562     };
13563 
13564   struct
13565     {
13566     unsigned RG2FTSS0           : 1;
13567     unsigned RG2FTSS1           : 1;
13568     unsigned RG2FTSS2           : 1;
13569     unsigned RG2FTSS3           : 1;
13570     unsigned                    : 1;
13571     unsigned                    : 1;
13572     unsigned                    : 1;
13573     unsigned                    : 1;
13574     };
13575 
13576   struct
13577     {
13578     unsigned FTSS               : 4;
13579     unsigned                    : 4;
13580     };
13581 
13582   struct
13583     {
13584     unsigned RG2FTSS            : 4;
13585     unsigned                    : 4;
13586     };
13587   } __PRG2FTSSbits_t;
13588 
13589 extern __at(0x0795) volatile __PRG2FTSSbits_t PRG2FTSSbits;
13590 
13591 #define _PRG2FTSS_FTSS0         0x01
13592 #define _PRG2FTSS_RG2FTSS0      0x01
13593 #define _PRG2FTSS_FTSS1         0x02
13594 #define _PRG2FTSS_RG2FTSS1      0x02
13595 #define _PRG2FTSS_FTSS2         0x04
13596 #define _PRG2FTSS_RG2FTSS2      0x04
13597 #define _PRG2FTSS_FTSS3         0x08
13598 #define _PRG2FTSS_RG2FTSS3      0x08
13599 
13600 //==============================================================================
13601 
13602 
13603 //==============================================================================
13604 //        PRG2INS Bits
13605 
13606 extern __at(0x0796) __sfr PRG2INS;
13607 
13608 typedef union
13609   {
13610   struct
13611     {
13612     unsigned INS0               : 1;
13613     unsigned INS1               : 1;
13614     unsigned INS2               : 1;
13615     unsigned INS3               : 1;
13616     unsigned                    : 1;
13617     unsigned                    : 1;
13618     unsigned                    : 1;
13619     unsigned                    : 1;
13620     };
13621 
13622   struct
13623     {
13624     unsigned RG2INS0            : 1;
13625     unsigned RG2INS1            : 1;
13626     unsigned RG2INS2            : 1;
13627     unsigned RG2INS3            : 1;
13628     unsigned                    : 1;
13629     unsigned                    : 1;
13630     unsigned                    : 1;
13631     unsigned                    : 1;
13632     };
13633 
13634   struct
13635     {
13636     unsigned RG2INS             : 4;
13637     unsigned                    : 4;
13638     };
13639 
13640   struct
13641     {
13642     unsigned INS                : 4;
13643     unsigned                    : 4;
13644     };
13645   } __PRG2INSbits_t;
13646 
13647 extern __at(0x0796) volatile __PRG2INSbits_t PRG2INSbits;
13648 
13649 #define _PRG2INS_INS0           0x01
13650 #define _PRG2INS_RG2INS0        0x01
13651 #define _PRG2INS_INS1           0x02
13652 #define _PRG2INS_RG2INS1        0x02
13653 #define _PRG2INS_INS2           0x04
13654 #define _PRG2INS_RG2INS2        0x04
13655 #define _PRG2INS_INS3           0x08
13656 #define _PRG2INS_RG2INS3        0x08
13657 
13658 //==============================================================================
13659 
13660 
13661 //==============================================================================
13662 //        PRG2CON0 Bits
13663 
13664 extern __at(0x0797) __sfr PRG2CON0;
13665 
13666 typedef union
13667   {
13668   struct
13669     {
13670     unsigned GO                 : 1;
13671     unsigned OS                 : 1;
13672     unsigned MODE0              : 1;
13673     unsigned MODE1              : 1;
13674     unsigned REDG               : 1;
13675     unsigned FEDG               : 1;
13676     unsigned                    : 1;
13677     unsigned EN                 : 1;
13678     };
13679 
13680   struct
13681     {
13682     unsigned RG2GO              : 1;
13683     unsigned RG2OS              : 1;
13684     unsigned RG2MODE0           : 1;
13685     unsigned RG2MODE1           : 1;
13686     unsigned RG2REDG            : 1;
13687     unsigned RG2FEDG            : 1;
13688     unsigned                    : 1;
13689     unsigned RG2EN              : 1;
13690     };
13691 
13692   struct
13693     {
13694     unsigned                    : 2;
13695     unsigned MODE               : 2;
13696     unsigned                    : 4;
13697     };
13698 
13699   struct
13700     {
13701     unsigned                    : 2;
13702     unsigned RG2MODE            : 2;
13703     unsigned                    : 4;
13704     };
13705   } __PRG2CON0bits_t;
13706 
13707 extern __at(0x0797) volatile __PRG2CON0bits_t PRG2CON0bits;
13708 
13709 #define _PRG2CON0_GO            0x01
13710 #define _PRG2CON0_RG2GO         0x01
13711 #define _PRG2CON0_OS            0x02
13712 #define _PRG2CON0_RG2OS         0x02
13713 #define _PRG2CON0_MODE0         0x04
13714 #define _PRG2CON0_RG2MODE0      0x04
13715 #define _PRG2CON0_MODE1         0x08
13716 #define _PRG2CON0_RG2MODE1      0x08
13717 #define _PRG2CON0_REDG          0x10
13718 #define _PRG2CON0_RG2REDG       0x10
13719 #define _PRG2CON0_FEDG          0x20
13720 #define _PRG2CON0_RG2FEDG       0x20
13721 #define _PRG2CON0_EN            0x80
13722 #define _PRG2CON0_RG2EN         0x80
13723 
13724 //==============================================================================
13725 
13726 
13727 //==============================================================================
13728 //        PRG2CON1 Bits
13729 
13730 extern __at(0x0798) __sfr PRG2CON1;
13731 
13732 typedef union
13733   {
13734   struct
13735     {
13736     unsigned RPOL               : 1;
13737     unsigned FPOL               : 1;
13738     unsigned RDY                : 1;
13739     unsigned                    : 1;
13740     unsigned                    : 1;
13741     unsigned                    : 1;
13742     unsigned                    : 1;
13743     unsigned                    : 1;
13744     };
13745 
13746   struct
13747     {
13748     unsigned RG2RPOL            : 1;
13749     unsigned RG2FPOL            : 1;
13750     unsigned RG2RDY             : 1;
13751     unsigned                    : 1;
13752     unsigned                    : 1;
13753     unsigned                    : 1;
13754     unsigned                    : 1;
13755     unsigned                    : 1;
13756     };
13757   } __PRG2CON1bits_t;
13758 
13759 extern __at(0x0798) volatile __PRG2CON1bits_t PRG2CON1bits;
13760 
13761 #define _PRG2CON1_RPOL          0x01
13762 #define _PRG2CON1_RG2RPOL       0x01
13763 #define _PRG2CON1_FPOL          0x02
13764 #define _PRG2CON1_RG2FPOL       0x02
13765 #define _PRG2CON1_RDY           0x04
13766 #define _PRG2CON1_RG2RDY        0x04
13767 
13768 //==============================================================================
13769 
13770 
13771 //==============================================================================
13772 //        PRG2CON2 Bits
13773 
13774 extern __at(0x0799) __sfr PRG2CON2;
13775 
13776 typedef union
13777   {
13778   struct
13779     {
13780     unsigned ISET0              : 1;
13781     unsigned ISET1              : 1;
13782     unsigned ISET2              : 1;
13783     unsigned ISET3              : 1;
13784     unsigned ISET4              : 1;
13785     unsigned                    : 1;
13786     unsigned                    : 1;
13787     unsigned                    : 1;
13788     };
13789 
13790   struct
13791     {
13792     unsigned RG2ISET0           : 1;
13793     unsigned RG2ISET1           : 1;
13794     unsigned RG2ISET2           : 1;
13795     unsigned RG2ISET3           : 1;
13796     unsigned RG2ISET4           : 1;
13797     unsigned                    : 1;
13798     unsigned                    : 1;
13799     unsigned                    : 1;
13800     };
13801 
13802   struct
13803     {
13804     unsigned ISET               : 5;
13805     unsigned                    : 3;
13806     };
13807 
13808   struct
13809     {
13810     unsigned RG2ISET            : 5;
13811     unsigned                    : 3;
13812     };
13813   } __PRG2CON2bits_t;
13814 
13815 extern __at(0x0799) volatile __PRG2CON2bits_t PRG2CON2bits;
13816 
13817 #define _PRG2CON2_ISET0         0x01
13818 #define _PRG2CON2_RG2ISET0      0x01
13819 #define _PRG2CON2_ISET1         0x02
13820 #define _PRG2CON2_RG2ISET1      0x02
13821 #define _PRG2CON2_ISET2         0x04
13822 #define _PRG2CON2_RG2ISET2      0x04
13823 #define _PRG2CON2_ISET3         0x08
13824 #define _PRG2CON2_RG2ISET3      0x08
13825 #define _PRG2CON2_ISET4         0x10
13826 #define _PRG2CON2_RG2ISET4      0x10
13827 
13828 //==============================================================================
13829 
13830 
13831 //==============================================================================
13832 //        PRG3RTSS Bits
13833 
13834 extern __at(0x079A) __sfr PRG3RTSS;
13835 
13836 typedef union
13837   {
13838   struct
13839     {
13840     unsigned RTSS0              : 1;
13841     unsigned RTSS1              : 1;
13842     unsigned RTSS2              : 1;
13843     unsigned RTSS3              : 1;
13844     unsigned                    : 1;
13845     unsigned                    : 1;
13846     unsigned                    : 1;
13847     unsigned                    : 1;
13848     };
13849 
13850   struct
13851     {
13852     unsigned RG3RTSS0           : 1;
13853     unsigned RG3RTSS1           : 1;
13854     unsigned RG3RTSS2           : 1;
13855     unsigned RG3RTSS3           : 1;
13856     unsigned                    : 1;
13857     unsigned                    : 1;
13858     unsigned                    : 1;
13859     unsigned                    : 1;
13860     };
13861 
13862   struct
13863     {
13864     unsigned RTSS               : 4;
13865     unsigned                    : 4;
13866     };
13867 
13868   struct
13869     {
13870     unsigned RG3RTSS            : 4;
13871     unsigned                    : 4;
13872     };
13873   } __PRG3RTSSbits_t;
13874 
13875 extern __at(0x079A) volatile __PRG3RTSSbits_t PRG3RTSSbits;
13876 
13877 #define _PRG3RTSS_RTSS0         0x01
13878 #define _PRG3RTSS_RG3RTSS0      0x01
13879 #define _PRG3RTSS_RTSS1         0x02
13880 #define _PRG3RTSS_RG3RTSS1      0x02
13881 #define _PRG3RTSS_RTSS2         0x04
13882 #define _PRG3RTSS_RG3RTSS2      0x04
13883 #define _PRG3RTSS_RTSS3         0x08
13884 #define _PRG3RTSS_RG3RTSS3      0x08
13885 
13886 //==============================================================================
13887 
13888 
13889 //==============================================================================
13890 //        PRG3FTSS Bits
13891 
13892 extern __at(0x079B) __sfr PRG3FTSS;
13893 
13894 typedef union
13895   {
13896   struct
13897     {
13898     unsigned FTSS0              : 1;
13899     unsigned FTSS1              : 1;
13900     unsigned FTSS2              : 1;
13901     unsigned FTSS3              : 1;
13902     unsigned                    : 1;
13903     unsigned                    : 1;
13904     unsigned                    : 1;
13905     unsigned                    : 1;
13906     };
13907 
13908   struct
13909     {
13910     unsigned RG3FTSS0           : 1;
13911     unsigned RG3FTSS1           : 1;
13912     unsigned RG3FTSS2           : 1;
13913     unsigned RG3FTSS3           : 1;
13914     unsigned                    : 1;
13915     unsigned                    : 1;
13916     unsigned                    : 1;
13917     unsigned                    : 1;
13918     };
13919 
13920   struct
13921     {
13922     unsigned RG3FTSS            : 4;
13923     unsigned                    : 4;
13924     };
13925 
13926   struct
13927     {
13928     unsigned FTSS               : 4;
13929     unsigned                    : 4;
13930     };
13931   } __PRG3FTSSbits_t;
13932 
13933 extern __at(0x079B) volatile __PRG3FTSSbits_t PRG3FTSSbits;
13934 
13935 #define _PRG3FTSS_FTSS0         0x01
13936 #define _PRG3FTSS_RG3FTSS0      0x01
13937 #define _PRG3FTSS_FTSS1         0x02
13938 #define _PRG3FTSS_RG3FTSS1      0x02
13939 #define _PRG3FTSS_FTSS2         0x04
13940 #define _PRG3FTSS_RG3FTSS2      0x04
13941 #define _PRG3FTSS_FTSS3         0x08
13942 #define _PRG3FTSS_RG3FTSS3      0x08
13943 
13944 //==============================================================================
13945 
13946 
13947 //==============================================================================
13948 //        PRG3INS Bits
13949 
13950 extern __at(0x079C) __sfr PRG3INS;
13951 
13952 typedef union
13953   {
13954   struct
13955     {
13956     unsigned INS0               : 1;
13957     unsigned INS1               : 1;
13958     unsigned INS2               : 1;
13959     unsigned INS3               : 1;
13960     unsigned                    : 1;
13961     unsigned                    : 1;
13962     unsigned                    : 1;
13963     unsigned                    : 1;
13964     };
13965 
13966   struct
13967     {
13968     unsigned RG3INS0            : 1;
13969     unsigned RG3INS1            : 1;
13970     unsigned RG3INS2            : 1;
13971     unsigned RG3INS3            : 1;
13972     unsigned                    : 1;
13973     unsigned                    : 1;
13974     unsigned                    : 1;
13975     unsigned                    : 1;
13976     };
13977 
13978   struct
13979     {
13980     unsigned RG3INS             : 4;
13981     unsigned                    : 4;
13982     };
13983 
13984   struct
13985     {
13986     unsigned INS                : 4;
13987     unsigned                    : 4;
13988     };
13989   } __PRG3INSbits_t;
13990 
13991 extern __at(0x079C) volatile __PRG3INSbits_t PRG3INSbits;
13992 
13993 #define _PRG3INS_INS0           0x01
13994 #define _PRG3INS_RG3INS0        0x01
13995 #define _PRG3INS_INS1           0x02
13996 #define _PRG3INS_RG3INS1        0x02
13997 #define _PRG3INS_INS2           0x04
13998 #define _PRG3INS_RG3INS2        0x04
13999 #define _PRG3INS_INS3           0x08
14000 #define _PRG3INS_RG3INS3        0x08
14001 
14002 //==============================================================================
14003 
14004 
14005 //==============================================================================
14006 //        PRG3CON0 Bits
14007 
14008 extern __at(0x079D) __sfr PRG3CON0;
14009 
14010 typedef union
14011   {
14012   struct
14013     {
14014     unsigned GO                 : 1;
14015     unsigned OS                 : 1;
14016     unsigned MODE0              : 1;
14017     unsigned MODE1              : 1;
14018     unsigned REDG               : 1;
14019     unsigned FEDG               : 1;
14020     unsigned                    : 1;
14021     unsigned EN                 : 1;
14022     };
14023 
14024   struct
14025     {
14026     unsigned RG3GO              : 1;
14027     unsigned RG3OS              : 1;
14028     unsigned RG3MODE0           : 1;
14029     unsigned RG3MODE1           : 1;
14030     unsigned RG3REDG            : 1;
14031     unsigned RG3FEDG            : 1;
14032     unsigned                    : 1;
14033     unsigned RG3EN              : 1;
14034     };
14035 
14036   struct
14037     {
14038     unsigned                    : 2;
14039     unsigned RG3MODE            : 2;
14040     unsigned                    : 4;
14041     };
14042 
14043   struct
14044     {
14045     unsigned                    : 2;
14046     unsigned MODE               : 2;
14047     unsigned                    : 4;
14048     };
14049   } __PRG3CON0bits_t;
14050 
14051 extern __at(0x079D) volatile __PRG3CON0bits_t PRG3CON0bits;
14052 
14053 #define _PRG3CON0_GO            0x01
14054 #define _PRG3CON0_RG3GO         0x01
14055 #define _PRG3CON0_OS            0x02
14056 #define _PRG3CON0_RG3OS         0x02
14057 #define _PRG3CON0_MODE0         0x04
14058 #define _PRG3CON0_RG3MODE0      0x04
14059 #define _PRG3CON0_MODE1         0x08
14060 #define _PRG3CON0_RG3MODE1      0x08
14061 #define _PRG3CON0_REDG          0x10
14062 #define _PRG3CON0_RG3REDG       0x10
14063 #define _PRG3CON0_FEDG          0x20
14064 #define _PRG3CON0_RG3FEDG       0x20
14065 #define _PRG3CON0_EN            0x80
14066 #define _PRG3CON0_RG3EN         0x80
14067 
14068 //==============================================================================
14069 
14070 
14071 //==============================================================================
14072 //        PRG3CON1 Bits
14073 
14074 extern __at(0x079E) __sfr PRG3CON1;
14075 
14076 typedef union
14077   {
14078   struct
14079     {
14080     unsigned RPOL               : 1;
14081     unsigned FPOL               : 1;
14082     unsigned RDY                : 1;
14083     unsigned                    : 1;
14084     unsigned                    : 1;
14085     unsigned                    : 1;
14086     unsigned                    : 1;
14087     unsigned                    : 1;
14088     };
14089 
14090   struct
14091     {
14092     unsigned RG3RPOL            : 1;
14093     unsigned RG3FPOL            : 1;
14094     unsigned RG3RDY             : 1;
14095     unsigned                    : 1;
14096     unsigned                    : 1;
14097     unsigned                    : 1;
14098     unsigned                    : 1;
14099     unsigned                    : 1;
14100     };
14101   } __PRG3CON1bits_t;
14102 
14103 extern __at(0x079E) volatile __PRG3CON1bits_t PRG3CON1bits;
14104 
14105 #define _PRG3CON1_RPOL          0x01
14106 #define _PRG3CON1_RG3RPOL       0x01
14107 #define _PRG3CON1_FPOL          0x02
14108 #define _PRG3CON1_RG3FPOL       0x02
14109 #define _PRG3CON1_RDY           0x04
14110 #define _PRG3CON1_RG3RDY        0x04
14111 
14112 //==============================================================================
14113 
14114 
14115 //==============================================================================
14116 //        PRG3CON2 Bits
14117 
14118 extern __at(0x079F) __sfr PRG3CON2;
14119 
14120 typedef union
14121   {
14122   struct
14123     {
14124     unsigned ISET0              : 1;
14125     unsigned ISET1              : 1;
14126     unsigned ISET2              : 1;
14127     unsigned ISET3              : 1;
14128     unsigned ISET4              : 1;
14129     unsigned                    : 1;
14130     unsigned                    : 1;
14131     unsigned                    : 1;
14132     };
14133 
14134   struct
14135     {
14136     unsigned RG3ISET0           : 1;
14137     unsigned RG3ISET1           : 1;
14138     unsigned RG3ISET2           : 1;
14139     unsigned RG3ISET3           : 1;
14140     unsigned RG3ISET4           : 1;
14141     unsigned                    : 1;
14142     unsigned                    : 1;
14143     unsigned                    : 1;
14144     };
14145 
14146   struct
14147     {
14148     unsigned ISET               : 5;
14149     unsigned                    : 3;
14150     };
14151 
14152   struct
14153     {
14154     unsigned RG3ISET            : 5;
14155     unsigned                    : 3;
14156     };
14157   } __PRG3CON2bits_t;
14158 
14159 extern __at(0x079F) volatile __PRG3CON2bits_t PRG3CON2bits;
14160 
14161 #define _PRG3CON2_ISET0         0x01
14162 #define _PRG3CON2_RG3ISET0      0x01
14163 #define _PRG3CON2_ISET1         0x02
14164 #define _PRG3CON2_RG3ISET1      0x02
14165 #define _PRG3CON2_ISET2         0x04
14166 #define _PRG3CON2_RG3ISET2      0x04
14167 #define _PRG3CON2_ISET3         0x08
14168 #define _PRG3CON2_RG3ISET3      0x08
14169 #define _PRG3CON2_ISET4         0x10
14170 #define _PRG3CON2_RG3ISET4      0x10
14171 
14172 //==============================================================================
14173 
14174 
14175 //==============================================================================
14176 //        COG3PHR Bits
14177 
14178 extern __at(0x080D) __sfr COG3PHR;
14179 
14180 typedef union
14181   {
14182   struct
14183     {
14184     unsigned PHR0               : 1;
14185     unsigned PHR1               : 1;
14186     unsigned PHR2               : 1;
14187     unsigned PHR3               : 1;
14188     unsigned PHR4               : 1;
14189     unsigned PHR5               : 1;
14190     unsigned                    : 1;
14191     unsigned                    : 1;
14192     };
14193 
14194   struct
14195     {
14196     unsigned G3PHR0             : 1;
14197     unsigned G3PHR1             : 1;
14198     unsigned G3PHR2             : 1;
14199     unsigned G3PHR3             : 1;
14200     unsigned G3PHR4             : 1;
14201     unsigned G3PHR5             : 1;
14202     unsigned                    : 1;
14203     unsigned                    : 1;
14204     };
14205 
14206   struct
14207     {
14208     unsigned PHR                : 6;
14209     unsigned                    : 2;
14210     };
14211 
14212   struct
14213     {
14214     unsigned G3PHR              : 6;
14215     unsigned                    : 2;
14216     };
14217   } __COG3PHRbits_t;
14218 
14219 extern __at(0x080D) volatile __COG3PHRbits_t COG3PHRbits;
14220 
14221 #define _COG3PHR_PHR0           0x01
14222 #define _COG3PHR_G3PHR0         0x01
14223 #define _COG3PHR_PHR1           0x02
14224 #define _COG3PHR_G3PHR1         0x02
14225 #define _COG3PHR_PHR2           0x04
14226 #define _COG3PHR_G3PHR2         0x04
14227 #define _COG3PHR_PHR3           0x08
14228 #define _COG3PHR_G3PHR3         0x08
14229 #define _COG3PHR_PHR4           0x10
14230 #define _COG3PHR_G3PHR4         0x10
14231 #define _COG3PHR_PHR5           0x20
14232 #define _COG3PHR_G3PHR5         0x20
14233 
14234 //==============================================================================
14235 
14236 
14237 //==============================================================================
14238 //        COG3PHF Bits
14239 
14240 extern __at(0x080E) __sfr COG3PHF;
14241 
14242 typedef union
14243   {
14244   struct
14245     {
14246     unsigned PHF0               : 1;
14247     unsigned PHF1               : 1;
14248     unsigned PHF2               : 1;
14249     unsigned PHF3               : 1;
14250     unsigned PHF4               : 1;
14251     unsigned PHF5               : 1;
14252     unsigned                    : 1;
14253     unsigned                    : 1;
14254     };
14255 
14256   struct
14257     {
14258     unsigned G3PHF0             : 1;
14259     unsigned G3PHF1             : 1;
14260     unsigned G3PHF2             : 1;
14261     unsigned G3PHF3             : 1;
14262     unsigned G3PHF4             : 1;
14263     unsigned G3PHF5             : 1;
14264     unsigned                    : 1;
14265     unsigned                    : 1;
14266     };
14267 
14268   struct
14269     {
14270     unsigned G3PHF              : 6;
14271     unsigned                    : 2;
14272     };
14273 
14274   struct
14275     {
14276     unsigned PHF                : 6;
14277     unsigned                    : 2;
14278     };
14279   } __COG3PHFbits_t;
14280 
14281 extern __at(0x080E) volatile __COG3PHFbits_t COG3PHFbits;
14282 
14283 #define _COG3PHF_PHF0           0x01
14284 #define _COG3PHF_G3PHF0         0x01
14285 #define _COG3PHF_PHF1           0x02
14286 #define _COG3PHF_G3PHF1         0x02
14287 #define _COG3PHF_PHF2           0x04
14288 #define _COG3PHF_G3PHF2         0x04
14289 #define _COG3PHF_PHF3           0x08
14290 #define _COG3PHF_G3PHF3         0x08
14291 #define _COG3PHF_PHF4           0x10
14292 #define _COG3PHF_G3PHF4         0x10
14293 #define _COG3PHF_PHF5           0x20
14294 #define _COG3PHF_G3PHF5         0x20
14295 
14296 //==============================================================================
14297 
14298 
14299 //==============================================================================
14300 //        COG3BLKR Bits
14301 
14302 extern __at(0x080F) __sfr COG3BLKR;
14303 
14304 typedef union
14305   {
14306   struct
14307     {
14308     unsigned BLKR0              : 1;
14309     unsigned BLKR1              : 1;
14310     unsigned BLKR2              : 1;
14311     unsigned BLKR3              : 1;
14312     unsigned BLKR4              : 1;
14313     unsigned BLKR5              : 1;
14314     unsigned                    : 1;
14315     unsigned                    : 1;
14316     };
14317 
14318   struct
14319     {
14320     unsigned G3BLKR0            : 1;
14321     unsigned G3BLKR1            : 1;
14322     unsigned G3BLKR2            : 1;
14323     unsigned G3BLKR3            : 1;
14324     unsigned G3BLKR4            : 1;
14325     unsigned G3BLKR5            : 1;
14326     unsigned                    : 1;
14327     unsigned                    : 1;
14328     };
14329 
14330   struct
14331     {
14332     unsigned BLKR               : 6;
14333     unsigned                    : 2;
14334     };
14335 
14336   struct
14337     {
14338     unsigned G3BLKR             : 6;
14339     unsigned                    : 2;
14340     };
14341   } __COG3BLKRbits_t;
14342 
14343 extern __at(0x080F) volatile __COG3BLKRbits_t COG3BLKRbits;
14344 
14345 #define _COG3BLKR_BLKR0         0x01
14346 #define _COG3BLKR_G3BLKR0       0x01
14347 #define _COG3BLKR_BLKR1         0x02
14348 #define _COG3BLKR_G3BLKR1       0x02
14349 #define _COG3BLKR_BLKR2         0x04
14350 #define _COG3BLKR_G3BLKR2       0x04
14351 #define _COG3BLKR_BLKR3         0x08
14352 #define _COG3BLKR_G3BLKR3       0x08
14353 #define _COG3BLKR_BLKR4         0x10
14354 #define _COG3BLKR_G3BLKR4       0x10
14355 #define _COG3BLKR_BLKR5         0x20
14356 #define _COG3BLKR_G3BLKR5       0x20
14357 
14358 //==============================================================================
14359 
14360 
14361 //==============================================================================
14362 //        COG3BLKF Bits
14363 
14364 extern __at(0x0810) __sfr COG3BLKF;
14365 
14366 typedef union
14367   {
14368   struct
14369     {
14370     unsigned BLKF0              : 1;
14371     unsigned BLKF1              : 1;
14372     unsigned BLKF2              : 1;
14373     unsigned BLKF3              : 1;
14374     unsigned BLKF4              : 1;
14375     unsigned BLKF5              : 1;
14376     unsigned                    : 1;
14377     unsigned                    : 1;
14378     };
14379 
14380   struct
14381     {
14382     unsigned G3BLKF0            : 1;
14383     unsigned G3BLKF1            : 1;
14384     unsigned G3BLKF2            : 1;
14385     unsigned G3BLKF3            : 1;
14386     unsigned G3BLKF4            : 1;
14387     unsigned G3BLKF5            : 1;
14388     unsigned                    : 1;
14389     unsigned                    : 1;
14390     };
14391 
14392   struct
14393     {
14394     unsigned G3BLKF             : 6;
14395     unsigned                    : 2;
14396     };
14397 
14398   struct
14399     {
14400     unsigned BLKF               : 6;
14401     unsigned                    : 2;
14402     };
14403   } __COG3BLKFbits_t;
14404 
14405 extern __at(0x0810) volatile __COG3BLKFbits_t COG3BLKFbits;
14406 
14407 #define _COG3BLKF_BLKF0         0x01
14408 #define _COG3BLKF_G3BLKF0       0x01
14409 #define _COG3BLKF_BLKF1         0x02
14410 #define _COG3BLKF_G3BLKF1       0x02
14411 #define _COG3BLKF_BLKF2         0x04
14412 #define _COG3BLKF_G3BLKF2       0x04
14413 #define _COG3BLKF_BLKF3         0x08
14414 #define _COG3BLKF_G3BLKF3       0x08
14415 #define _COG3BLKF_BLKF4         0x10
14416 #define _COG3BLKF_G3BLKF4       0x10
14417 #define _COG3BLKF_BLKF5         0x20
14418 #define _COG3BLKF_G3BLKF5       0x20
14419 
14420 //==============================================================================
14421 
14422 
14423 //==============================================================================
14424 //        COG3DBR Bits
14425 
14426 extern __at(0x0811) __sfr COG3DBR;
14427 
14428 typedef union
14429   {
14430   struct
14431     {
14432     unsigned DBR0               : 1;
14433     unsigned DBR1               : 1;
14434     unsigned DBR2               : 1;
14435     unsigned DBR3               : 1;
14436     unsigned DBR4               : 1;
14437     unsigned DBR5               : 1;
14438     unsigned                    : 1;
14439     unsigned                    : 1;
14440     };
14441 
14442   struct
14443     {
14444     unsigned G3DBR0             : 1;
14445     unsigned G3DBR1             : 1;
14446     unsigned G3DBR2             : 1;
14447     unsigned G3DBR3             : 1;
14448     unsigned G3DBR4             : 1;
14449     unsigned G3DBR5             : 1;
14450     unsigned                    : 1;
14451     unsigned                    : 1;
14452     };
14453 
14454   struct
14455     {
14456     unsigned DBR                : 6;
14457     unsigned                    : 2;
14458     };
14459 
14460   struct
14461     {
14462     unsigned G3DBR              : 6;
14463     unsigned                    : 2;
14464     };
14465   } __COG3DBRbits_t;
14466 
14467 extern __at(0x0811) volatile __COG3DBRbits_t COG3DBRbits;
14468 
14469 #define _COG3DBR_DBR0           0x01
14470 #define _COG3DBR_G3DBR0         0x01
14471 #define _COG3DBR_DBR1           0x02
14472 #define _COG3DBR_G3DBR1         0x02
14473 #define _COG3DBR_DBR2           0x04
14474 #define _COG3DBR_G3DBR2         0x04
14475 #define _COG3DBR_DBR3           0x08
14476 #define _COG3DBR_G3DBR3         0x08
14477 #define _COG3DBR_DBR4           0x10
14478 #define _COG3DBR_G3DBR4         0x10
14479 #define _COG3DBR_DBR5           0x20
14480 #define _COG3DBR_G3DBR5         0x20
14481 
14482 //==============================================================================
14483 
14484 
14485 //==============================================================================
14486 //        COG3DBF Bits
14487 
14488 extern __at(0x0812) __sfr COG3DBF;
14489 
14490 typedef union
14491   {
14492   struct
14493     {
14494     unsigned DBF0               : 1;
14495     unsigned DBF1               : 1;
14496     unsigned DBF2               : 1;
14497     unsigned DBF3               : 1;
14498     unsigned DBF4               : 1;
14499     unsigned DBF5               : 1;
14500     unsigned                    : 1;
14501     unsigned                    : 1;
14502     };
14503 
14504   struct
14505     {
14506     unsigned G3DBF0             : 1;
14507     unsigned G3DBF1             : 1;
14508     unsigned G3DBF2             : 1;
14509     unsigned G3DBF3             : 1;
14510     unsigned G3DBF4             : 1;
14511     unsigned G3DBF5             : 1;
14512     unsigned                    : 1;
14513     unsigned                    : 1;
14514     };
14515 
14516   struct
14517     {
14518     unsigned DBF                : 6;
14519     unsigned                    : 2;
14520     };
14521 
14522   struct
14523     {
14524     unsigned G3DBF              : 6;
14525     unsigned                    : 2;
14526     };
14527   } __COG3DBFbits_t;
14528 
14529 extern __at(0x0812) volatile __COG3DBFbits_t COG3DBFbits;
14530 
14531 #define _COG3DBF_DBF0           0x01
14532 #define _COG3DBF_G3DBF0         0x01
14533 #define _COG3DBF_DBF1           0x02
14534 #define _COG3DBF_G3DBF1         0x02
14535 #define _COG3DBF_DBF2           0x04
14536 #define _COG3DBF_G3DBF2         0x04
14537 #define _COG3DBF_DBF3           0x08
14538 #define _COG3DBF_G3DBF3         0x08
14539 #define _COG3DBF_DBF4           0x10
14540 #define _COG3DBF_G3DBF4         0x10
14541 #define _COG3DBF_DBF5           0x20
14542 #define _COG3DBF_G3DBF5         0x20
14543 
14544 //==============================================================================
14545 
14546 
14547 //==============================================================================
14548 //        COG3CON0 Bits
14549 
14550 extern __at(0x0813) __sfr COG3CON0;
14551 
14552 typedef union
14553   {
14554   struct
14555     {
14556     unsigned MD0                : 1;
14557     unsigned MD1                : 1;
14558     unsigned MD2                : 1;
14559     unsigned CS0                : 1;
14560     unsigned CS1                : 1;
14561     unsigned                    : 1;
14562     unsigned LD                 : 1;
14563     unsigned EN                 : 1;
14564     };
14565 
14566   struct
14567     {
14568     unsigned G3MD0              : 1;
14569     unsigned G3MD1              : 1;
14570     unsigned G3MD2              : 1;
14571     unsigned G3CS0              : 1;
14572     unsigned G3CS1              : 1;
14573     unsigned                    : 1;
14574     unsigned G3LD               : 1;
14575     unsigned G3EN               : 1;
14576     };
14577 
14578   struct
14579     {
14580     unsigned G3MD               : 3;
14581     unsigned                    : 5;
14582     };
14583 
14584   struct
14585     {
14586     unsigned MD                 : 3;
14587     unsigned                    : 5;
14588     };
14589 
14590   struct
14591     {
14592     unsigned                    : 3;
14593     unsigned G3CS               : 2;
14594     unsigned                    : 3;
14595     };
14596 
14597   struct
14598     {
14599     unsigned                    : 3;
14600     unsigned CS                 : 2;
14601     unsigned                    : 3;
14602     };
14603   } __COG3CON0bits_t;
14604 
14605 extern __at(0x0813) volatile __COG3CON0bits_t COG3CON0bits;
14606 
14607 #define _COG3CON0_MD0           0x01
14608 #define _COG3CON0_G3MD0         0x01
14609 #define _COG3CON0_MD1           0x02
14610 #define _COG3CON0_G3MD1         0x02
14611 #define _COG3CON0_MD2           0x04
14612 #define _COG3CON0_G3MD2         0x04
14613 #define _COG3CON0_CS0           0x08
14614 #define _COG3CON0_G3CS0         0x08
14615 #define _COG3CON0_CS1           0x10
14616 #define _COG3CON0_G3CS1         0x10
14617 #define _COG3CON0_LD            0x40
14618 #define _COG3CON0_G3LD          0x40
14619 #define _COG3CON0_EN            0x80
14620 #define _COG3CON0_G3EN          0x80
14621 
14622 //==============================================================================
14623 
14624 
14625 //==============================================================================
14626 //        COG3CON1 Bits
14627 
14628 extern __at(0x0814) __sfr COG3CON1;
14629 
14630 typedef union
14631   {
14632   struct
14633     {
14634     unsigned POLA               : 1;
14635     unsigned POLB               : 1;
14636     unsigned POLC               : 1;
14637     unsigned POLD               : 1;
14638     unsigned                    : 1;
14639     unsigned                    : 1;
14640     unsigned FDBS               : 1;
14641     unsigned RDBS               : 1;
14642     };
14643 
14644   struct
14645     {
14646     unsigned G3POLA             : 1;
14647     unsigned G3POLB             : 1;
14648     unsigned G3POLC             : 1;
14649     unsigned G3POLD             : 1;
14650     unsigned                    : 1;
14651     unsigned                    : 1;
14652     unsigned G3FDBS             : 1;
14653     unsigned G3RDBS             : 1;
14654     };
14655   } __COG3CON1bits_t;
14656 
14657 extern __at(0x0814) volatile __COG3CON1bits_t COG3CON1bits;
14658 
14659 #define _COG3CON1_POLA          0x01
14660 #define _COG3CON1_G3POLA        0x01
14661 #define _COG3CON1_POLB          0x02
14662 #define _COG3CON1_G3POLB        0x02
14663 #define _COG3CON1_POLC          0x04
14664 #define _COG3CON1_G3POLC        0x04
14665 #define _COG3CON1_POLD          0x08
14666 #define _COG3CON1_G3POLD        0x08
14667 #define _COG3CON1_FDBS          0x40
14668 #define _COG3CON1_G3FDBS        0x40
14669 #define _COG3CON1_RDBS          0x80
14670 #define _COG3CON1_G3RDBS        0x80
14671 
14672 //==============================================================================
14673 
14674 
14675 //==============================================================================
14676 //        COG3RIS0 Bits
14677 
14678 extern __at(0x0815) __sfr COG3RIS0;
14679 
14680 typedef union
14681   {
14682   struct
14683     {
14684     unsigned RIS0               : 1;
14685     unsigned RIS1               : 1;
14686     unsigned RIS2               : 1;
14687     unsigned RIS3               : 1;
14688     unsigned RIS4               : 1;
14689     unsigned RIS5               : 1;
14690     unsigned RIS6               : 1;
14691     unsigned RIS7               : 1;
14692     };
14693 
14694   struct
14695     {
14696     unsigned G3RIS0             : 1;
14697     unsigned G3RIS1             : 1;
14698     unsigned G3RIS2             : 1;
14699     unsigned G3RIS3             : 1;
14700     unsigned G3RIS4             : 1;
14701     unsigned G3RIS5             : 1;
14702     unsigned G3RIS6             : 1;
14703     unsigned G3RIS7             : 1;
14704     };
14705   } __COG3RIS0bits_t;
14706 
14707 extern __at(0x0815) volatile __COG3RIS0bits_t COG3RIS0bits;
14708 
14709 #define _COG3RIS0_RIS0          0x01
14710 #define _COG3RIS0_G3RIS0        0x01
14711 #define _COG3RIS0_RIS1          0x02
14712 #define _COG3RIS0_G3RIS1        0x02
14713 #define _COG3RIS0_RIS2          0x04
14714 #define _COG3RIS0_G3RIS2        0x04
14715 #define _COG3RIS0_RIS3          0x08
14716 #define _COG3RIS0_G3RIS3        0x08
14717 #define _COG3RIS0_RIS4          0x10
14718 #define _COG3RIS0_G3RIS4        0x10
14719 #define _COG3RIS0_RIS5          0x20
14720 #define _COG3RIS0_G3RIS5        0x20
14721 #define _COG3RIS0_RIS6          0x40
14722 #define _COG3RIS0_G3RIS6        0x40
14723 #define _COG3RIS0_RIS7          0x80
14724 #define _COG3RIS0_G3RIS7        0x80
14725 
14726 //==============================================================================
14727 
14728 
14729 //==============================================================================
14730 //        COG3RIS1 Bits
14731 
14732 extern __at(0x0816) __sfr COG3RIS1;
14733 
14734 typedef union
14735   {
14736   struct
14737     {
14738     unsigned                    : 1;
14739     unsigned RIS9               : 1;
14740     unsigned                    : 1;
14741     unsigned RIS11              : 1;
14742     unsigned RIS12              : 1;
14743     unsigned RIS13              : 1;
14744     unsigned RIS14              : 1;
14745     unsigned RIS15              : 1;
14746     };
14747 
14748   struct
14749     {
14750     unsigned                    : 1;
14751     unsigned G3RIS9             : 1;
14752     unsigned                    : 1;
14753     unsigned G3RIS11            : 1;
14754     unsigned G3RIS12            : 1;
14755     unsigned G3RIS13            : 1;
14756     unsigned G3RIS14            : 1;
14757     unsigned G3RIS15            : 1;
14758     };
14759   } __COG3RIS1bits_t;
14760 
14761 extern __at(0x0816) volatile __COG3RIS1bits_t COG3RIS1bits;
14762 
14763 #define _COG3RIS1_RIS9          0x02
14764 #define _COG3RIS1_G3RIS9        0x02
14765 #define _COG3RIS1_RIS11         0x08
14766 #define _COG3RIS1_G3RIS11       0x08
14767 #define _COG3RIS1_RIS12         0x10
14768 #define _COG3RIS1_G3RIS12       0x10
14769 #define _COG3RIS1_RIS13         0x20
14770 #define _COG3RIS1_G3RIS13       0x20
14771 #define _COG3RIS1_RIS14         0x40
14772 #define _COG3RIS1_G3RIS14       0x40
14773 #define _COG3RIS1_RIS15         0x80
14774 #define _COG3RIS1_G3RIS15       0x80
14775 
14776 //==============================================================================
14777 
14778 
14779 //==============================================================================
14780 //        COG3RSIM0 Bits
14781 
14782 extern __at(0x0817) __sfr COG3RSIM0;
14783 
14784 typedef union
14785   {
14786   struct
14787     {
14788     unsigned RSIM0              : 1;
14789     unsigned RSIM1              : 1;
14790     unsigned RSIM2              : 1;
14791     unsigned RSIM3              : 1;
14792     unsigned RSIM4              : 1;
14793     unsigned RSIM5              : 1;
14794     unsigned RSIM6              : 1;
14795     unsigned RSIM7              : 1;
14796     };
14797 
14798   struct
14799     {
14800     unsigned G3RSIM0            : 1;
14801     unsigned G3RSIM1            : 1;
14802     unsigned G3RSIM2            : 1;
14803     unsigned G3RSIM3            : 1;
14804     unsigned G3RSIM4            : 1;
14805     unsigned G3RSIM5            : 1;
14806     unsigned G3RSIM6            : 1;
14807     unsigned G3RSIM7            : 1;
14808     };
14809   } __COG3RSIM0bits_t;
14810 
14811 extern __at(0x0817) volatile __COG3RSIM0bits_t COG3RSIM0bits;
14812 
14813 #define _COG3RSIM0_RSIM0        0x01
14814 #define _COG3RSIM0_G3RSIM0      0x01
14815 #define _COG3RSIM0_RSIM1        0x02
14816 #define _COG3RSIM0_G3RSIM1      0x02
14817 #define _COG3RSIM0_RSIM2        0x04
14818 #define _COG3RSIM0_G3RSIM2      0x04
14819 #define _COG3RSIM0_RSIM3        0x08
14820 #define _COG3RSIM0_G3RSIM3      0x08
14821 #define _COG3RSIM0_RSIM4        0x10
14822 #define _COG3RSIM0_G3RSIM4      0x10
14823 #define _COG3RSIM0_RSIM5        0x20
14824 #define _COG3RSIM0_G3RSIM5      0x20
14825 #define _COG3RSIM0_RSIM6        0x40
14826 #define _COG3RSIM0_G3RSIM6      0x40
14827 #define _COG3RSIM0_RSIM7        0x80
14828 #define _COG3RSIM0_G3RSIM7      0x80
14829 
14830 //==============================================================================
14831 
14832 
14833 //==============================================================================
14834 //        COG3RSIM1 Bits
14835 
14836 extern __at(0x0818) __sfr COG3RSIM1;
14837 
14838 typedef union
14839   {
14840   struct
14841     {
14842     unsigned                    : 1;
14843     unsigned RSIM9              : 1;
14844     unsigned                    : 1;
14845     unsigned RSIM11             : 1;
14846     unsigned RSIM12             : 1;
14847     unsigned RSIM13             : 1;
14848     unsigned RSIM14             : 1;
14849     unsigned RSIM15             : 1;
14850     };
14851 
14852   struct
14853     {
14854     unsigned                    : 1;
14855     unsigned G3RSIM9            : 1;
14856     unsigned                    : 1;
14857     unsigned G3RSIM11           : 1;
14858     unsigned G3RSIM12           : 1;
14859     unsigned G3RSIM13           : 1;
14860     unsigned G3RSIM14           : 1;
14861     unsigned G3RSIM15           : 1;
14862     };
14863   } __COG3RSIM1bits_t;
14864 
14865 extern __at(0x0818) volatile __COG3RSIM1bits_t COG3RSIM1bits;
14866 
14867 #define _COG3RSIM1_RSIM9        0x02
14868 #define _COG3RSIM1_G3RSIM9      0x02
14869 #define _COG3RSIM1_RSIM11       0x08
14870 #define _COG3RSIM1_G3RSIM11     0x08
14871 #define _COG3RSIM1_RSIM12       0x10
14872 #define _COG3RSIM1_G3RSIM12     0x10
14873 #define _COG3RSIM1_RSIM13       0x20
14874 #define _COG3RSIM1_G3RSIM13     0x20
14875 #define _COG3RSIM1_RSIM14       0x40
14876 #define _COG3RSIM1_G3RSIM14     0x40
14877 #define _COG3RSIM1_RSIM15       0x80
14878 #define _COG3RSIM1_G3RSIM15     0x80
14879 
14880 //==============================================================================
14881 
14882 
14883 //==============================================================================
14884 //        COG3FIS0 Bits
14885 
14886 extern __at(0x0819) __sfr COG3FIS0;
14887 
14888 typedef union
14889   {
14890   struct
14891     {
14892     unsigned FIS0               : 1;
14893     unsigned FIS1               : 1;
14894     unsigned FIS2               : 1;
14895     unsigned FIS3               : 1;
14896     unsigned FIS4               : 1;
14897     unsigned FIS5               : 1;
14898     unsigned FIS6               : 1;
14899     unsigned FIS7               : 1;
14900     };
14901 
14902   struct
14903     {
14904     unsigned G3FIS0             : 1;
14905     unsigned G3FIS1             : 1;
14906     unsigned G3FIS2             : 1;
14907     unsigned G3FIS3             : 1;
14908     unsigned G3FIS4             : 1;
14909     unsigned G3FIS5             : 1;
14910     unsigned G3FIS6             : 1;
14911     unsigned G3FIS7             : 1;
14912     };
14913   } __COG3FIS0bits_t;
14914 
14915 extern __at(0x0819) volatile __COG3FIS0bits_t COG3FIS0bits;
14916 
14917 #define _COG3FIS0_FIS0          0x01
14918 #define _COG3FIS0_G3FIS0        0x01
14919 #define _COG3FIS0_FIS1          0x02
14920 #define _COG3FIS0_G3FIS1        0x02
14921 #define _COG3FIS0_FIS2          0x04
14922 #define _COG3FIS0_G3FIS2        0x04
14923 #define _COG3FIS0_FIS3          0x08
14924 #define _COG3FIS0_G3FIS3        0x08
14925 #define _COG3FIS0_FIS4          0x10
14926 #define _COG3FIS0_G3FIS4        0x10
14927 #define _COG3FIS0_FIS5          0x20
14928 #define _COG3FIS0_G3FIS5        0x20
14929 #define _COG3FIS0_FIS6          0x40
14930 #define _COG3FIS0_G3FIS6        0x40
14931 #define _COG3FIS0_FIS7          0x80
14932 #define _COG3FIS0_G3FIS7        0x80
14933 
14934 //==============================================================================
14935 
14936 
14937 //==============================================================================
14938 //        COG3FIS1 Bits
14939 
14940 extern __at(0x081A) __sfr COG3FIS1;
14941 
14942 typedef union
14943   {
14944   struct
14945     {
14946     unsigned                    : 1;
14947     unsigned FIS9               : 1;
14948     unsigned                    : 1;
14949     unsigned FIS11              : 1;
14950     unsigned FIS12              : 1;
14951     unsigned FIS13              : 1;
14952     unsigned FIS14              : 1;
14953     unsigned FIS15              : 1;
14954     };
14955 
14956   struct
14957     {
14958     unsigned                    : 1;
14959     unsigned G3FIS9             : 1;
14960     unsigned                    : 1;
14961     unsigned G3FIS11            : 1;
14962     unsigned G3FIS12            : 1;
14963     unsigned G3FIS13            : 1;
14964     unsigned G3FIS14            : 1;
14965     unsigned G3FIS15            : 1;
14966     };
14967   } __COG3FIS1bits_t;
14968 
14969 extern __at(0x081A) volatile __COG3FIS1bits_t COG3FIS1bits;
14970 
14971 #define _COG3FIS1_FIS9          0x02
14972 #define _COG3FIS1_G3FIS9        0x02
14973 #define _COG3FIS1_FIS11         0x08
14974 #define _COG3FIS1_G3FIS11       0x08
14975 #define _COG3FIS1_FIS12         0x10
14976 #define _COG3FIS1_G3FIS12       0x10
14977 #define _COG3FIS1_FIS13         0x20
14978 #define _COG3FIS1_G3FIS13       0x20
14979 #define _COG3FIS1_FIS14         0x40
14980 #define _COG3FIS1_G3FIS14       0x40
14981 #define _COG3FIS1_FIS15         0x80
14982 #define _COG3FIS1_G3FIS15       0x80
14983 
14984 //==============================================================================
14985 
14986 
14987 //==============================================================================
14988 //        COG3FSIM0 Bits
14989 
14990 extern __at(0x081B) __sfr COG3FSIM0;
14991 
14992 typedef union
14993   {
14994   struct
14995     {
14996     unsigned FSIM0              : 1;
14997     unsigned FSIM1              : 1;
14998     unsigned FSIM2              : 1;
14999     unsigned FSIM3              : 1;
15000     unsigned FSIM4              : 1;
15001     unsigned FSIM5              : 1;
15002     unsigned FSIM6              : 1;
15003     unsigned FSIM7              : 1;
15004     };
15005 
15006   struct
15007     {
15008     unsigned G3FSIM0            : 1;
15009     unsigned G3FSIM1            : 1;
15010     unsigned G3FSIM2            : 1;
15011     unsigned G3FSIM3            : 1;
15012     unsigned G3FSIM4            : 1;
15013     unsigned G3FSIM5            : 1;
15014     unsigned G3FSIM6            : 1;
15015     unsigned G3FSIM7            : 1;
15016     };
15017   } __COG3FSIM0bits_t;
15018 
15019 extern __at(0x081B) volatile __COG3FSIM0bits_t COG3FSIM0bits;
15020 
15021 #define _COG3FSIM0_FSIM0        0x01
15022 #define _COG3FSIM0_G3FSIM0      0x01
15023 #define _COG3FSIM0_FSIM1        0x02
15024 #define _COG3FSIM0_G3FSIM1      0x02
15025 #define _COG3FSIM0_FSIM2        0x04
15026 #define _COG3FSIM0_G3FSIM2      0x04
15027 #define _COG3FSIM0_FSIM3        0x08
15028 #define _COG3FSIM0_G3FSIM3      0x08
15029 #define _COG3FSIM0_FSIM4        0x10
15030 #define _COG3FSIM0_G3FSIM4      0x10
15031 #define _COG3FSIM0_FSIM5        0x20
15032 #define _COG3FSIM0_G3FSIM5      0x20
15033 #define _COG3FSIM0_FSIM6        0x40
15034 #define _COG3FSIM0_G3FSIM6      0x40
15035 #define _COG3FSIM0_FSIM7        0x80
15036 #define _COG3FSIM0_G3FSIM7      0x80
15037 
15038 //==============================================================================
15039 
15040 
15041 //==============================================================================
15042 //        COG3FSIM1 Bits
15043 
15044 extern __at(0x081C) __sfr COG3FSIM1;
15045 
15046 typedef union
15047   {
15048   struct
15049     {
15050     unsigned                    : 1;
15051     unsigned FSIM9              : 1;
15052     unsigned                    : 1;
15053     unsigned FSIM11             : 1;
15054     unsigned FSIM12             : 1;
15055     unsigned FSIM13             : 1;
15056     unsigned FSIM14             : 1;
15057     unsigned FSIM15             : 1;
15058     };
15059 
15060   struct
15061     {
15062     unsigned                    : 1;
15063     unsigned G3FSIM9            : 1;
15064     unsigned                    : 1;
15065     unsigned G3FSIM11           : 1;
15066     unsigned G3FSIM12           : 1;
15067     unsigned G3FSIM13           : 1;
15068     unsigned G3FSIM14           : 1;
15069     unsigned G3FSIM15           : 1;
15070     };
15071   } __COG3FSIM1bits_t;
15072 
15073 extern __at(0x081C) volatile __COG3FSIM1bits_t COG3FSIM1bits;
15074 
15075 #define _COG3FSIM1_FSIM9        0x02
15076 #define _COG3FSIM1_G3FSIM9      0x02
15077 #define _COG3FSIM1_FSIM11       0x08
15078 #define _COG3FSIM1_G3FSIM11     0x08
15079 #define _COG3FSIM1_FSIM12       0x10
15080 #define _COG3FSIM1_G3FSIM12     0x10
15081 #define _COG3FSIM1_FSIM13       0x20
15082 #define _COG3FSIM1_G3FSIM13     0x20
15083 #define _COG3FSIM1_FSIM14       0x40
15084 #define _COG3FSIM1_G3FSIM14     0x40
15085 #define _COG3FSIM1_FSIM15       0x80
15086 #define _COG3FSIM1_G3FSIM15     0x80
15087 
15088 //==============================================================================
15089 
15090 
15091 //==============================================================================
15092 //        COG3ASD0 Bits
15093 
15094 extern __at(0x081D) __sfr COG3ASD0;
15095 
15096 typedef union
15097   {
15098   struct
15099     {
15100     unsigned                    : 1;
15101     unsigned                    : 1;
15102     unsigned ASDAC0             : 1;
15103     unsigned ASDAC1             : 1;
15104     unsigned ASDBD0             : 1;
15105     unsigned ASDBD1             : 1;
15106     unsigned ASREN              : 1;
15107     unsigned ASE                : 1;
15108     };
15109 
15110   struct
15111     {
15112     unsigned                    : 1;
15113     unsigned                    : 1;
15114     unsigned G3ASDAC0           : 1;
15115     unsigned G3ASDAC1           : 1;
15116     unsigned G3ASDBD0           : 1;
15117     unsigned G3ASDBD1           : 1;
15118     unsigned ARSEN              : 1;
15119     unsigned G3ASE              : 1;
15120     };
15121 
15122   struct
15123     {
15124     unsigned                    : 1;
15125     unsigned                    : 1;
15126     unsigned                    : 1;
15127     unsigned                    : 1;
15128     unsigned                    : 1;
15129     unsigned                    : 1;
15130     unsigned G3ARSEN            : 1;
15131     unsigned                    : 1;
15132     };
15133 
15134   struct
15135     {
15136     unsigned                    : 1;
15137     unsigned                    : 1;
15138     unsigned                    : 1;
15139     unsigned                    : 1;
15140     unsigned                    : 1;
15141     unsigned                    : 1;
15142     unsigned G3ASREN            : 1;
15143     unsigned                    : 1;
15144     };
15145 
15146   struct
15147     {
15148     unsigned                    : 2;
15149     unsigned ASDAC              : 2;
15150     unsigned                    : 4;
15151     };
15152 
15153   struct
15154     {
15155     unsigned                    : 2;
15156     unsigned G3ASDAC            : 2;
15157     unsigned                    : 4;
15158     };
15159 
15160   struct
15161     {
15162     unsigned                    : 4;
15163     unsigned ASDBD              : 2;
15164     unsigned                    : 2;
15165     };
15166 
15167   struct
15168     {
15169     unsigned                    : 4;
15170     unsigned G3ASDBD            : 2;
15171     unsigned                    : 2;
15172     };
15173   } __COG3ASD0bits_t;
15174 
15175 extern __at(0x081D) volatile __COG3ASD0bits_t COG3ASD0bits;
15176 
15177 #define _COG3ASD0_ASDAC0        0x04
15178 #define _COG3ASD0_G3ASDAC0      0x04
15179 #define _COG3ASD0_ASDAC1        0x08
15180 #define _COG3ASD0_G3ASDAC1      0x08
15181 #define _COG3ASD0_ASDBD0        0x10
15182 #define _COG3ASD0_G3ASDBD0      0x10
15183 #define _COG3ASD0_ASDBD1        0x20
15184 #define _COG3ASD0_G3ASDBD1      0x20
15185 #define _COG3ASD0_ASREN         0x40
15186 #define _COG3ASD0_ARSEN         0x40
15187 #define _COG3ASD0_G3ARSEN       0x40
15188 #define _COG3ASD0_G3ASREN       0x40
15189 #define _COG3ASD0_ASE           0x80
15190 #define _COG3ASD0_G3ASE         0x80
15191 
15192 //==============================================================================
15193 
15194 
15195 //==============================================================================
15196 //        COG3ASD1 Bits
15197 
15198 extern __at(0x081E) __sfr COG3ASD1;
15199 
15200 typedef union
15201   {
15202   struct
15203     {
15204     unsigned AS0E               : 1;
15205     unsigned AS1E               : 1;
15206     unsigned AS2E               : 1;
15207     unsigned AS3E               : 1;
15208     unsigned AS4E               : 1;
15209     unsigned AS5E               : 1;
15210     unsigned AS6E               : 1;
15211     unsigned AS7E               : 1;
15212     };
15213 
15214   struct
15215     {
15216     unsigned G3AS0E             : 1;
15217     unsigned G3AS1E             : 1;
15218     unsigned G3AS2E             : 1;
15219     unsigned G3AS3E             : 1;
15220     unsigned G3AS4E             : 1;
15221     unsigned G3AS5E             : 1;
15222     unsigned G3AS6E             : 1;
15223     unsigned G3AS7E             : 1;
15224     };
15225   } __COG3ASD1bits_t;
15226 
15227 extern __at(0x081E) volatile __COG3ASD1bits_t COG3ASD1bits;
15228 
15229 #define _COG3ASD1_AS0E          0x01
15230 #define _COG3ASD1_G3AS0E        0x01
15231 #define _COG3ASD1_AS1E          0x02
15232 #define _COG3ASD1_G3AS1E        0x02
15233 #define _COG3ASD1_AS2E          0x04
15234 #define _COG3ASD1_G3AS2E        0x04
15235 #define _COG3ASD1_AS3E          0x08
15236 #define _COG3ASD1_G3AS3E        0x08
15237 #define _COG3ASD1_AS4E          0x10
15238 #define _COG3ASD1_G3AS4E        0x10
15239 #define _COG3ASD1_AS5E          0x20
15240 #define _COG3ASD1_G3AS5E        0x20
15241 #define _COG3ASD1_AS6E          0x40
15242 #define _COG3ASD1_G3AS6E        0x40
15243 #define _COG3ASD1_AS7E          0x80
15244 #define _COG3ASD1_G3AS7E        0x80
15245 
15246 //==============================================================================
15247 
15248 
15249 //==============================================================================
15250 //        COG3STR Bits
15251 
15252 extern __at(0x081F) __sfr COG3STR;
15253 
15254 typedef union
15255   {
15256   struct
15257     {
15258     unsigned STRA               : 1;
15259     unsigned STRB               : 1;
15260     unsigned STRC               : 1;
15261     unsigned STRD               : 1;
15262     unsigned SDATA              : 1;
15263     unsigned SDATB              : 1;
15264     unsigned SDATC              : 1;
15265     unsigned SDATD              : 1;
15266     };
15267 
15268   struct
15269     {
15270     unsigned G3STRA             : 1;
15271     unsigned G3STRB             : 1;
15272     unsigned G3STRC             : 1;
15273     unsigned G3STRD             : 1;
15274     unsigned G3SDATA            : 1;
15275     unsigned G3SDATB            : 1;
15276     unsigned G3SDATC            : 1;
15277     unsigned G3SDATD            : 1;
15278     };
15279   } __COG3STRbits_t;
15280 
15281 extern __at(0x081F) volatile __COG3STRbits_t COG3STRbits;
15282 
15283 #define _COG3STR_STRA           0x01
15284 #define _COG3STR_G3STRA         0x01
15285 #define _COG3STR_STRB           0x02
15286 #define _COG3STR_G3STRB         0x02
15287 #define _COG3STR_STRC           0x04
15288 #define _COG3STR_G3STRC         0x04
15289 #define _COG3STR_STRD           0x08
15290 #define _COG3STR_G3STRD         0x08
15291 #define _COG3STR_SDATA          0x10
15292 #define _COG3STR_G3SDATA        0x10
15293 #define _COG3STR_SDATB          0x20
15294 #define _COG3STR_G3SDATB        0x20
15295 #define _COG3STR_SDATC          0x40
15296 #define _COG3STR_G3SDATC        0x40
15297 #define _COG3STR_SDATD          0x80
15298 #define _COG3STR_G3SDATD        0x80
15299 
15300 //==============================================================================
15301 
15302 
15303 //==============================================================================
15304 //        CM4CON0 Bits
15305 
15306 extern __at(0x090C) __sfr CM4CON0;
15307 
15308 typedef union
15309   {
15310   struct
15311     {
15312     unsigned SYNC               : 1;
15313     unsigned HYS                : 1;
15314     unsigned Reserved           : 1;
15315     unsigned ZLF                : 1;
15316     unsigned POL                : 1;
15317     unsigned                    : 1;
15318     unsigned OUT                : 1;
15319     unsigned ON                 : 1;
15320     };
15321 
15322   struct
15323     {
15324     unsigned C4SYNC             : 1;
15325     unsigned C4HYS              : 1;
15326     unsigned C4SP               : 1;
15327     unsigned C4ZLF              : 1;
15328     unsigned C4POL              : 1;
15329     unsigned                    : 1;
15330     unsigned C4OUT              : 1;
15331     unsigned C4ON               : 1;
15332     };
15333   } __CM4CON0bits_t;
15334 
15335 extern __at(0x090C) volatile __CM4CON0bits_t CM4CON0bits;
15336 
15337 #define _CM4CON0_SYNC           0x01
15338 #define _CM4CON0_C4SYNC         0x01
15339 #define _CM4CON0_HYS            0x02
15340 #define _CM4CON0_C4HYS          0x02
15341 #define _CM4CON0_Reserved       0x04
15342 #define _CM4CON0_C4SP           0x04
15343 #define _CM4CON0_ZLF            0x08
15344 #define _CM4CON0_C4ZLF          0x08
15345 #define _CM4CON0_POL            0x10
15346 #define _CM4CON0_C4POL          0x10
15347 #define _CM4CON0_OUT            0x40
15348 #define _CM4CON0_C4OUT          0x40
15349 #define _CM4CON0_ON             0x80
15350 #define _CM4CON0_C4ON           0x80
15351 
15352 //==============================================================================
15353 
15354 
15355 //==============================================================================
15356 //        CM4CON1 Bits
15357 
15358 extern __at(0x090D) __sfr CM4CON1;
15359 
15360 typedef union
15361   {
15362   struct
15363     {
15364     unsigned INTN               : 1;
15365     unsigned INTP               : 1;
15366     unsigned                    : 1;
15367     unsigned                    : 1;
15368     unsigned                    : 1;
15369     unsigned                    : 1;
15370     unsigned                    : 1;
15371     unsigned                    : 1;
15372     };
15373 
15374   struct
15375     {
15376     unsigned C4INTN             : 1;
15377     unsigned C4INTP             : 1;
15378     unsigned                    : 1;
15379     unsigned                    : 1;
15380     unsigned                    : 1;
15381     unsigned                    : 1;
15382     unsigned                    : 1;
15383     unsigned                    : 1;
15384     };
15385   } __CM4CON1bits_t;
15386 
15387 extern __at(0x090D) volatile __CM4CON1bits_t CM4CON1bits;
15388 
15389 #define _CM4CON1_INTN           0x01
15390 #define _CM4CON1_C4INTN         0x01
15391 #define _CM4CON1_INTP           0x02
15392 #define _CM4CON1_C4INTP         0x02
15393 
15394 //==============================================================================
15395 
15396 
15397 //==============================================================================
15398 //        CM4NSEL Bits
15399 
15400 extern __at(0x090E) __sfr CM4NSEL;
15401 
15402 typedef union
15403   {
15404   struct
15405     {
15406     unsigned C4NCH0             : 1;
15407     unsigned C4NCH1             : 1;
15408     unsigned C4NCH2             : 1;
15409     unsigned C4NCH3             : 1;
15410     unsigned                    : 1;
15411     unsigned                    : 1;
15412     unsigned                    : 1;
15413     unsigned                    : 1;
15414     };
15415 
15416   struct
15417     {
15418     unsigned C4NCH              : 4;
15419     unsigned                    : 4;
15420     };
15421   } __CM4NSELbits_t;
15422 
15423 extern __at(0x090E) volatile __CM4NSELbits_t CM4NSELbits;
15424 
15425 #define _C4NCH0                 0x01
15426 #define _C4NCH1                 0x02
15427 #define _C4NCH2                 0x04
15428 #define _C4NCH3                 0x08
15429 
15430 //==============================================================================
15431 
15432 
15433 //==============================================================================
15434 //        CM4PSEL Bits
15435 
15436 extern __at(0x090F) __sfr CM4PSEL;
15437 
15438 typedef union
15439   {
15440   struct
15441     {
15442     unsigned PCH0               : 1;
15443     unsigned PCH1               : 1;
15444     unsigned PCH2               : 1;
15445     unsigned PCH3               : 1;
15446     unsigned                    : 1;
15447     unsigned                    : 1;
15448     unsigned                    : 1;
15449     unsigned                    : 1;
15450     };
15451 
15452   struct
15453     {
15454     unsigned C4PCH0             : 1;
15455     unsigned C4PCH1             : 1;
15456     unsigned C4PCH2             : 1;
15457     unsigned C4PCH3             : 1;
15458     unsigned                    : 1;
15459     unsigned                    : 1;
15460     unsigned                    : 1;
15461     unsigned                    : 1;
15462     };
15463 
15464   struct
15465     {
15466     unsigned PCH                : 4;
15467     unsigned                    : 4;
15468     };
15469 
15470   struct
15471     {
15472     unsigned C4PCH              : 4;
15473     unsigned                    : 4;
15474     };
15475   } __CM4PSELbits_t;
15476 
15477 extern __at(0x090F) volatile __CM4PSELbits_t CM4PSELbits;
15478 
15479 #define _CM4PSEL_PCH0           0x01
15480 #define _CM4PSEL_C4PCH0         0x01
15481 #define _CM4PSEL_PCH1           0x02
15482 #define _CM4PSEL_C4PCH1         0x02
15483 #define _CM4PSEL_PCH2           0x04
15484 #define _CM4PSEL_C4PCH2         0x04
15485 #define _CM4PSEL_PCH3           0x08
15486 #define _CM4PSEL_C4PCH3         0x08
15487 
15488 //==============================================================================
15489 
15490 
15491 //==============================================================================
15492 //        CM5CON0 Bits
15493 
15494 extern __at(0x0910) __sfr CM5CON0;
15495 
15496 typedef union
15497   {
15498   struct
15499     {
15500     unsigned SYNC               : 1;
15501     unsigned HYS                : 1;
15502     unsigned Reserved           : 1;
15503     unsigned ZLF                : 1;
15504     unsigned POL                : 1;
15505     unsigned                    : 1;
15506     unsigned OUT                : 1;
15507     unsigned ON                 : 1;
15508     };
15509 
15510   struct
15511     {
15512     unsigned C5SYNC             : 1;
15513     unsigned C5HYS              : 1;
15514     unsigned C5SP               : 1;
15515     unsigned C5ZLF              : 1;
15516     unsigned C5POL              : 1;
15517     unsigned                    : 1;
15518     unsigned C5OUT              : 1;
15519     unsigned C5ON               : 1;
15520     };
15521   } __CM5CON0bits_t;
15522 
15523 extern __at(0x0910) volatile __CM5CON0bits_t CM5CON0bits;
15524 
15525 #define _CM5CON0_SYNC           0x01
15526 #define _CM5CON0_C5SYNC         0x01
15527 #define _CM5CON0_HYS            0x02
15528 #define _CM5CON0_C5HYS          0x02
15529 #define _CM5CON0_Reserved       0x04
15530 #define _CM5CON0_C5SP           0x04
15531 #define _CM5CON0_ZLF            0x08
15532 #define _CM5CON0_C5ZLF          0x08
15533 #define _CM5CON0_POL            0x10
15534 #define _CM5CON0_C5POL          0x10
15535 #define _CM5CON0_OUT            0x40
15536 #define _CM5CON0_C5OUT          0x40
15537 #define _CM5CON0_ON             0x80
15538 #define _CM5CON0_C5ON           0x80
15539 
15540 //==============================================================================
15541 
15542 
15543 //==============================================================================
15544 //        CM5CON1 Bits
15545 
15546 extern __at(0x0911) __sfr CM5CON1;
15547 
15548 typedef union
15549   {
15550   struct
15551     {
15552     unsigned INTN               : 1;
15553     unsigned INTP               : 1;
15554     unsigned                    : 1;
15555     unsigned                    : 1;
15556     unsigned                    : 1;
15557     unsigned                    : 1;
15558     unsigned                    : 1;
15559     unsigned                    : 1;
15560     };
15561 
15562   struct
15563     {
15564     unsigned C5INTN             : 1;
15565     unsigned C5INTP             : 1;
15566     unsigned                    : 1;
15567     unsigned                    : 1;
15568     unsigned                    : 1;
15569     unsigned                    : 1;
15570     unsigned                    : 1;
15571     unsigned                    : 1;
15572     };
15573   } __CM5CON1bits_t;
15574 
15575 extern __at(0x0911) volatile __CM5CON1bits_t CM5CON1bits;
15576 
15577 #define _CM5CON1_INTN           0x01
15578 #define _CM5CON1_C5INTN         0x01
15579 #define _CM5CON1_INTP           0x02
15580 #define _CM5CON1_C5INTP         0x02
15581 
15582 //==============================================================================
15583 
15584 
15585 //==============================================================================
15586 //        CM5NSEL Bits
15587 
15588 extern __at(0x0912) __sfr CM5NSEL;
15589 
15590 typedef union
15591   {
15592   struct
15593     {
15594     unsigned C5NCH0             : 1;
15595     unsigned C5NCH1             : 1;
15596     unsigned C5NCH2             : 1;
15597     unsigned C5NCH3             : 1;
15598     unsigned                    : 1;
15599     unsigned                    : 1;
15600     unsigned                    : 1;
15601     unsigned                    : 1;
15602     };
15603 
15604   struct
15605     {
15606     unsigned C5NCH              : 4;
15607     unsigned                    : 4;
15608     };
15609   } __CM5NSELbits_t;
15610 
15611 extern __at(0x0912) volatile __CM5NSELbits_t CM5NSELbits;
15612 
15613 #define _C5NCH0                 0x01
15614 #define _C5NCH1                 0x02
15615 #define _C5NCH2                 0x04
15616 #define _C5NCH3                 0x08
15617 
15618 //==============================================================================
15619 
15620 
15621 //==============================================================================
15622 //        CM5PSEL Bits
15623 
15624 extern __at(0x0913) __sfr CM5PSEL;
15625 
15626 typedef union
15627   {
15628   struct
15629     {
15630     unsigned PCH0               : 1;
15631     unsigned PCH1               : 1;
15632     unsigned PCH2               : 1;
15633     unsigned PCH3               : 1;
15634     unsigned                    : 1;
15635     unsigned                    : 1;
15636     unsigned                    : 1;
15637     unsigned                    : 1;
15638     };
15639 
15640   struct
15641     {
15642     unsigned C5PCH0             : 1;
15643     unsigned C5PCH1             : 1;
15644     unsigned C5PCH2             : 1;
15645     unsigned C5PCH3             : 1;
15646     unsigned                    : 1;
15647     unsigned                    : 1;
15648     unsigned                    : 1;
15649     unsigned                    : 1;
15650     };
15651 
15652   struct
15653     {
15654     unsigned C5PCH              : 4;
15655     unsigned                    : 4;
15656     };
15657 
15658   struct
15659     {
15660     unsigned PCH                : 4;
15661     unsigned                    : 4;
15662     };
15663   } __CM5PSELbits_t;
15664 
15665 extern __at(0x0913) volatile __CM5PSELbits_t CM5PSELbits;
15666 
15667 #define _CM5PSEL_PCH0           0x01
15668 #define _CM5PSEL_C5PCH0         0x01
15669 #define _CM5PSEL_PCH1           0x02
15670 #define _CM5PSEL_C5PCH1         0x02
15671 #define _CM5PSEL_PCH2           0x04
15672 #define _CM5PSEL_C5PCH2         0x04
15673 #define _CM5PSEL_PCH3           0x08
15674 #define _CM5PSEL_C5PCH3         0x08
15675 
15676 //==============================================================================
15677 
15678 
15679 //==============================================================================
15680 //        CM6CON0 Bits
15681 
15682 extern __at(0x0914) __sfr CM6CON0;
15683 
15684 typedef union
15685   {
15686   struct
15687     {
15688     unsigned SYNC               : 1;
15689     unsigned HYS                : 1;
15690     unsigned Reserved           : 1;
15691     unsigned ZLF                : 1;
15692     unsigned POL                : 1;
15693     unsigned                    : 1;
15694     unsigned OUT                : 1;
15695     unsigned ON                 : 1;
15696     };
15697 
15698   struct
15699     {
15700     unsigned C6SYNC             : 1;
15701     unsigned C6HYS              : 1;
15702     unsigned C6SP               : 1;
15703     unsigned C6ZLF              : 1;
15704     unsigned C6POL              : 1;
15705     unsigned                    : 1;
15706     unsigned C6OUT              : 1;
15707     unsigned C6ON               : 1;
15708     };
15709   } __CM6CON0bits_t;
15710 
15711 extern __at(0x0914) volatile __CM6CON0bits_t CM6CON0bits;
15712 
15713 #define _CM6CON0_SYNC           0x01
15714 #define _CM6CON0_C6SYNC         0x01
15715 #define _CM6CON0_HYS            0x02
15716 #define _CM6CON0_C6HYS          0x02
15717 #define _CM6CON0_Reserved       0x04
15718 #define _CM6CON0_C6SP           0x04
15719 #define _CM6CON0_ZLF            0x08
15720 #define _CM6CON0_C6ZLF          0x08
15721 #define _CM6CON0_POL            0x10
15722 #define _CM6CON0_C6POL          0x10
15723 #define _CM6CON0_OUT            0x40
15724 #define _CM6CON0_C6OUT          0x40
15725 #define _CM6CON0_ON             0x80
15726 #define _CM6CON0_C6ON           0x80
15727 
15728 //==============================================================================
15729 
15730 
15731 //==============================================================================
15732 //        CM6CON1 Bits
15733 
15734 extern __at(0x0915) __sfr CM6CON1;
15735 
15736 typedef union
15737   {
15738   struct
15739     {
15740     unsigned INTN               : 1;
15741     unsigned INTP               : 1;
15742     unsigned                    : 1;
15743     unsigned                    : 1;
15744     unsigned                    : 1;
15745     unsigned                    : 1;
15746     unsigned                    : 1;
15747     unsigned                    : 1;
15748     };
15749 
15750   struct
15751     {
15752     unsigned C6INTN             : 1;
15753     unsigned C6INTP             : 1;
15754     unsigned                    : 1;
15755     unsigned                    : 1;
15756     unsigned                    : 1;
15757     unsigned                    : 1;
15758     unsigned                    : 1;
15759     unsigned                    : 1;
15760     };
15761   } __CM6CON1bits_t;
15762 
15763 extern __at(0x0915) volatile __CM6CON1bits_t CM6CON1bits;
15764 
15765 #define _CM6CON1_INTN           0x01
15766 #define _CM6CON1_C6INTN         0x01
15767 #define _CM6CON1_INTP           0x02
15768 #define _CM6CON1_C6INTP         0x02
15769 
15770 //==============================================================================
15771 
15772 
15773 //==============================================================================
15774 //        CM6NSEL Bits
15775 
15776 extern __at(0x0916) __sfr CM6NSEL;
15777 
15778 typedef union
15779   {
15780   struct
15781     {
15782     unsigned C6NCH0             : 1;
15783     unsigned C6NCH1             : 1;
15784     unsigned C6NCH2             : 1;
15785     unsigned C6NCH3             : 1;
15786     unsigned                    : 1;
15787     unsigned                    : 1;
15788     unsigned                    : 1;
15789     unsigned                    : 1;
15790     };
15791 
15792   struct
15793     {
15794     unsigned C6NCH              : 4;
15795     unsigned                    : 4;
15796     };
15797   } __CM6NSELbits_t;
15798 
15799 extern __at(0x0916) volatile __CM6NSELbits_t CM6NSELbits;
15800 
15801 #define _C6NCH0                 0x01
15802 #define _C6NCH1                 0x02
15803 #define _C6NCH2                 0x04
15804 #define _C6NCH3                 0x08
15805 
15806 //==============================================================================
15807 
15808 
15809 //==============================================================================
15810 //        CM6PSEL Bits
15811 
15812 extern __at(0x0917) __sfr CM6PSEL;
15813 
15814 typedef union
15815   {
15816   struct
15817     {
15818     unsigned PCH0               : 1;
15819     unsigned PCH1               : 1;
15820     unsigned PCH2               : 1;
15821     unsigned PCH3               : 1;
15822     unsigned                    : 1;
15823     unsigned                    : 1;
15824     unsigned                    : 1;
15825     unsigned                    : 1;
15826     };
15827 
15828   struct
15829     {
15830     unsigned C6PCH0             : 1;
15831     unsigned C6PCH1             : 1;
15832     unsigned C6PCH2             : 1;
15833     unsigned C6PCH3             : 1;
15834     unsigned                    : 1;
15835     unsigned                    : 1;
15836     unsigned                    : 1;
15837     unsigned                    : 1;
15838     };
15839 
15840   struct
15841     {
15842     unsigned PCH                : 4;
15843     unsigned                    : 4;
15844     };
15845 
15846   struct
15847     {
15848     unsigned C6PCH              : 4;
15849     unsigned                    : 4;
15850     };
15851   } __CM6PSELbits_t;
15852 
15853 extern __at(0x0917) volatile __CM6PSELbits_t CM6PSELbits;
15854 
15855 #define _CM6PSEL_PCH0           0x01
15856 #define _CM6PSEL_C6PCH0         0x01
15857 #define _CM6PSEL_PCH1           0x02
15858 #define _CM6PSEL_C6PCH1         0x02
15859 #define _CM6PSEL_PCH2           0x04
15860 #define _CM6PSEL_C6PCH2         0x04
15861 #define _CM6PSEL_PCH3           0x08
15862 #define _CM6PSEL_C6PCH3         0x08
15863 
15864 //==============================================================================
15865 
15866 
15867 //==============================================================================
15868 //        PWMEN Bits
15869 
15870 extern __at(0x0D8E) __sfr PWMEN;
15871 
15872 typedef struct
15873   {
15874   unsigned MPWM5EN              : 1;
15875   unsigned MPWM6EN              : 1;
15876   unsigned MPWM11EN             : 1;
15877   unsigned                      : 1;
15878   unsigned                      : 1;
15879   unsigned                      : 1;
15880   unsigned                      : 1;
15881   unsigned                      : 1;
15882   } __PWMENbits_t;
15883 
15884 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits;
15885 
15886 #define _MPWM5EN                0x01
15887 #define _MPWM6EN                0x02
15888 #define _MPWM11EN               0x04
15889 
15890 //==============================================================================
15891 
15892 
15893 //==============================================================================
15894 //        PWMLD Bits
15895 
15896 extern __at(0x0D8F) __sfr PWMLD;
15897 
15898 typedef struct
15899   {
15900   unsigned MPWM5LD              : 1;
15901   unsigned MPWM6LD              : 1;
15902   unsigned MPWM11LD             : 1;
15903   unsigned                      : 1;
15904   unsigned                      : 1;
15905   unsigned                      : 1;
15906   unsigned                      : 1;
15907   unsigned                      : 1;
15908   } __PWMLDbits_t;
15909 
15910 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits;
15911 
15912 #define _MPWM5LD                0x01
15913 #define _MPWM6LD                0x02
15914 #define _MPWM11LD               0x04
15915 
15916 //==============================================================================
15917 
15918 
15919 //==============================================================================
15920 //        PWMOUT Bits
15921 
15922 extern __at(0x0D90) __sfr PWMOUT;
15923 
15924 typedef struct
15925   {
15926   unsigned MPWM5OUT             : 1;
15927   unsigned MPWM6OUT             : 1;
15928   unsigned MPWM11OUT            : 1;
15929   unsigned                      : 1;
15930   unsigned                      : 1;
15931   unsigned                      : 1;
15932   unsigned                      : 1;
15933   unsigned                      : 1;
15934   } __PWMOUTbits_t;
15935 
15936 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits;
15937 
15938 #define _MPWM5OUT               0x01
15939 #define _MPWM6OUT               0x02
15940 #define _MPWM11OUT              0x04
15941 
15942 //==============================================================================
15943 
15944 extern __at(0x0D91) __sfr PWM5PH;
15945 
15946 //==============================================================================
15947 //        PWM5PHL Bits
15948 
15949 extern __at(0x0D91) __sfr PWM5PHL;
15950 
15951 typedef struct
15952   {
15953   unsigned PWM5PHL0             : 1;
15954   unsigned PWM5PHL1             : 1;
15955   unsigned PWM5PHL2             : 1;
15956   unsigned PWM5PHL3             : 1;
15957   unsigned PWM5PHL4             : 1;
15958   unsigned PWM5PHL5             : 1;
15959   unsigned PWM5PHL6             : 1;
15960   unsigned PWM5PHL7             : 1;
15961   } __PWM5PHLbits_t;
15962 
15963 extern __at(0x0D91) volatile __PWM5PHLbits_t PWM5PHLbits;
15964 
15965 #define _PWM5PHL0               0x01
15966 #define _PWM5PHL1               0x02
15967 #define _PWM5PHL2               0x04
15968 #define _PWM5PHL3               0x08
15969 #define _PWM5PHL4               0x10
15970 #define _PWM5PHL5               0x20
15971 #define _PWM5PHL6               0x40
15972 #define _PWM5PHL7               0x80
15973 
15974 //==============================================================================
15975 
15976 
15977 //==============================================================================
15978 //        PWM5PHH Bits
15979 
15980 extern __at(0x0D92) __sfr PWM5PHH;
15981 
15982 typedef struct
15983   {
15984   unsigned PWM5PHH0             : 1;
15985   unsigned PWM5PHH1             : 1;
15986   unsigned PWM5PHH2             : 1;
15987   unsigned PWM5PHH3             : 1;
15988   unsigned PWM5PHH4             : 1;
15989   unsigned PWM5PHH5             : 1;
15990   unsigned PWM5PHH6             : 1;
15991   unsigned PWM5PHH7             : 1;
15992   } __PWM5PHHbits_t;
15993 
15994 extern __at(0x0D92) volatile __PWM5PHHbits_t PWM5PHHbits;
15995 
15996 #define _PWM5PHH0               0x01
15997 #define _PWM5PHH1               0x02
15998 #define _PWM5PHH2               0x04
15999 #define _PWM5PHH3               0x08
16000 #define _PWM5PHH4               0x10
16001 #define _PWM5PHH5               0x20
16002 #define _PWM5PHH6               0x40
16003 #define _PWM5PHH7               0x80
16004 
16005 //==============================================================================
16006 
16007 extern __at(0x0D93) __sfr PWM5DC;
16008 
16009 //==============================================================================
16010 //        PWM5DCL Bits
16011 
16012 extern __at(0x0D93) __sfr PWM5DCL;
16013 
16014 typedef struct
16015   {
16016   unsigned PWM5DCL0             : 1;
16017   unsigned PWM5DCL1             : 1;
16018   unsigned PWM5DCL2             : 1;
16019   unsigned PWM5DCL3             : 1;
16020   unsigned PWM5DCL4             : 1;
16021   unsigned PWM5DCL5             : 1;
16022   unsigned PWM5DCL6             : 1;
16023   unsigned PWM5DCL7             : 1;
16024   } __PWM5DCLbits_t;
16025 
16026 extern __at(0x0D93) volatile __PWM5DCLbits_t PWM5DCLbits;
16027 
16028 #define _PWM5DCL0               0x01
16029 #define _PWM5DCL1               0x02
16030 #define _PWM5DCL2               0x04
16031 #define _PWM5DCL3               0x08
16032 #define _PWM5DCL4               0x10
16033 #define _PWM5DCL5               0x20
16034 #define _PWM5DCL6               0x40
16035 #define _PWM5DCL7               0x80
16036 
16037 //==============================================================================
16038 
16039 
16040 //==============================================================================
16041 //        PWM5DCH Bits
16042 
16043 extern __at(0x0D94) __sfr PWM5DCH;
16044 
16045 typedef struct
16046   {
16047   unsigned PWM5DCH0             : 1;
16048   unsigned PWM5DCH1             : 1;
16049   unsigned PWM5DCH2             : 1;
16050   unsigned PWM5DCH3             : 1;
16051   unsigned PWM5DCH4             : 1;
16052   unsigned PWM5DCH5             : 1;
16053   unsigned PWM5DCH6             : 1;
16054   unsigned PWM5DCH7             : 1;
16055   } __PWM5DCHbits_t;
16056 
16057 extern __at(0x0D94) volatile __PWM5DCHbits_t PWM5DCHbits;
16058 
16059 #define _PWM5DCH0               0x01
16060 #define _PWM5DCH1               0x02
16061 #define _PWM5DCH2               0x04
16062 #define _PWM5DCH3               0x08
16063 #define _PWM5DCH4               0x10
16064 #define _PWM5DCH5               0x20
16065 #define _PWM5DCH6               0x40
16066 #define _PWM5DCH7               0x80
16067 
16068 //==============================================================================
16069 
16070 extern __at(0x0D95) __sfr PWM5PR;
16071 
16072 //==============================================================================
16073 //        PWM5PRL Bits
16074 
16075 extern __at(0x0D95) __sfr PWM5PRL;
16076 
16077 typedef struct
16078   {
16079   unsigned PWM5PRL0             : 1;
16080   unsigned PWM5PRL1             : 1;
16081   unsigned PWM5PRL2             : 1;
16082   unsigned PWM5PRL3             : 1;
16083   unsigned PWM5PRL4             : 1;
16084   unsigned PWM5PRL5             : 1;
16085   unsigned PWM5PRL6             : 1;
16086   unsigned PWM5PRL7             : 1;
16087   } __PWM5PRLbits_t;
16088 
16089 extern __at(0x0D95) volatile __PWM5PRLbits_t PWM5PRLbits;
16090 
16091 #define _PWM5PRL0               0x01
16092 #define _PWM5PRL1               0x02
16093 #define _PWM5PRL2               0x04
16094 #define _PWM5PRL3               0x08
16095 #define _PWM5PRL4               0x10
16096 #define _PWM5PRL5               0x20
16097 #define _PWM5PRL6               0x40
16098 #define _PWM5PRL7               0x80
16099 
16100 //==============================================================================
16101 
16102 
16103 //==============================================================================
16104 //        PWM5PRH Bits
16105 
16106 extern __at(0x0D96) __sfr PWM5PRH;
16107 
16108 typedef struct
16109   {
16110   unsigned PWM5PRH0             : 1;
16111   unsigned PWM5PRH1             : 1;
16112   unsigned PWM5PRH2             : 1;
16113   unsigned PWM5PRH3             : 1;
16114   unsigned PWM5PRH4             : 1;
16115   unsigned PWM5PRH5             : 1;
16116   unsigned PWM5PRH6             : 1;
16117   unsigned PWM5PRH7             : 1;
16118   } __PWM5PRHbits_t;
16119 
16120 extern __at(0x0D96) volatile __PWM5PRHbits_t PWM5PRHbits;
16121 
16122 #define _PWM5PRH0               0x01
16123 #define _PWM5PRH1               0x02
16124 #define _PWM5PRH2               0x04
16125 #define _PWM5PRH3               0x08
16126 #define _PWM5PRH4               0x10
16127 #define _PWM5PRH5               0x20
16128 #define _PWM5PRH6               0x40
16129 #define _PWM5PRH7               0x80
16130 
16131 //==============================================================================
16132 
16133 extern __at(0x0D97) __sfr PWM5OF;
16134 
16135 //==============================================================================
16136 //        PWM5OFL Bits
16137 
16138 extern __at(0x0D97) __sfr PWM5OFL;
16139 
16140 typedef struct
16141   {
16142   unsigned PWM5OFL0             : 1;
16143   unsigned PWM5OFL1             : 1;
16144   unsigned PWM5OFL2             : 1;
16145   unsigned PWM5OFL3             : 1;
16146   unsigned PWM5OFL4             : 1;
16147   unsigned PWM5OFL5             : 1;
16148   unsigned PWM5OFL6             : 1;
16149   unsigned PWM5OFL7             : 1;
16150   } __PWM5OFLbits_t;
16151 
16152 extern __at(0x0D97) volatile __PWM5OFLbits_t PWM5OFLbits;
16153 
16154 #define _PWM5OFL0               0x01
16155 #define _PWM5OFL1               0x02
16156 #define _PWM5OFL2               0x04
16157 #define _PWM5OFL3               0x08
16158 #define _PWM5OFL4               0x10
16159 #define _PWM5OFL5               0x20
16160 #define _PWM5OFL6               0x40
16161 #define _PWM5OFL7               0x80
16162 
16163 //==============================================================================
16164 
16165 
16166 //==============================================================================
16167 //        PWM5OFH Bits
16168 
16169 extern __at(0x0D98) __sfr PWM5OFH;
16170 
16171 typedef struct
16172   {
16173   unsigned PWM5OFH0             : 1;
16174   unsigned PWM5OFH1             : 1;
16175   unsigned PWM5OFH2             : 1;
16176   unsigned PWM5OFH3             : 1;
16177   unsigned PWM5OFH4             : 1;
16178   unsigned PWM5OFH5             : 1;
16179   unsigned PWM5OFH6             : 1;
16180   unsigned PWM5OFH7             : 1;
16181   } __PWM5OFHbits_t;
16182 
16183 extern __at(0x0D98) volatile __PWM5OFHbits_t PWM5OFHbits;
16184 
16185 #define _PWM5OFH0               0x01
16186 #define _PWM5OFH1               0x02
16187 #define _PWM5OFH2               0x04
16188 #define _PWM5OFH3               0x08
16189 #define _PWM5OFH4               0x10
16190 #define _PWM5OFH5               0x20
16191 #define _PWM5OFH6               0x40
16192 #define _PWM5OFH7               0x80
16193 
16194 //==============================================================================
16195 
16196 extern __at(0x0D99) __sfr PWM5TMR;
16197 
16198 //==============================================================================
16199 //        PWM5TMRL Bits
16200 
16201 extern __at(0x0D99) __sfr PWM5TMRL;
16202 
16203 typedef struct
16204   {
16205   unsigned PWM5TMRL0            : 1;
16206   unsigned PWM5TMRL1            : 1;
16207   unsigned PWM5TMRL2            : 1;
16208   unsigned PWM5TMRL3            : 1;
16209   unsigned PWM5TMRL4            : 1;
16210   unsigned PWM5TMRL5            : 1;
16211   unsigned PWM5TMRL6            : 1;
16212   unsigned PWM5TMRL7            : 1;
16213   } __PWM5TMRLbits_t;
16214 
16215 extern __at(0x0D99) volatile __PWM5TMRLbits_t PWM5TMRLbits;
16216 
16217 #define _PWM5TMRL0              0x01
16218 #define _PWM5TMRL1              0x02
16219 #define _PWM5TMRL2              0x04
16220 #define _PWM5TMRL3              0x08
16221 #define _PWM5TMRL4              0x10
16222 #define _PWM5TMRL5              0x20
16223 #define _PWM5TMRL6              0x40
16224 #define _PWM5TMRL7              0x80
16225 
16226 //==============================================================================
16227 
16228 
16229 //==============================================================================
16230 //        PWM5TMRH Bits
16231 
16232 extern __at(0x0D9A) __sfr PWM5TMRH;
16233 
16234 typedef struct
16235   {
16236   unsigned PWM5TMRH0            : 1;
16237   unsigned PWM5TMRH1            : 1;
16238   unsigned PWM5TMRH2            : 1;
16239   unsigned PWM5TMRH3            : 1;
16240   unsigned PWM5TMRH4            : 1;
16241   unsigned PWM5TMRH5            : 1;
16242   unsigned PWM5TMRH6            : 1;
16243   unsigned PWM5TMRH7            : 1;
16244   } __PWM5TMRHbits_t;
16245 
16246 extern __at(0x0D9A) volatile __PWM5TMRHbits_t PWM5TMRHbits;
16247 
16248 #define _PWM5TMRH0              0x01
16249 #define _PWM5TMRH1              0x02
16250 #define _PWM5TMRH2              0x04
16251 #define _PWM5TMRH3              0x08
16252 #define _PWM5TMRH4              0x10
16253 #define _PWM5TMRH5              0x20
16254 #define _PWM5TMRH6              0x40
16255 #define _PWM5TMRH7              0x80
16256 
16257 //==============================================================================
16258 
16259 
16260 //==============================================================================
16261 //        PWM5CON Bits
16262 
16263 extern __at(0x0D9B) __sfr PWM5CON;
16264 
16265 typedef union
16266   {
16267   struct
16268     {
16269     unsigned                    : 1;
16270     unsigned                    : 1;
16271     unsigned PWM5MODE0          : 1;
16272     unsigned PWM5MODE1          : 1;
16273     unsigned POL                : 1;
16274     unsigned OUT                : 1;
16275     unsigned                    : 1;
16276     unsigned EN                 : 1;
16277     };
16278 
16279   struct
16280     {
16281     unsigned                    : 1;
16282     unsigned                    : 1;
16283     unsigned MODE0              : 1;
16284     unsigned MODE1              : 1;
16285     unsigned PWM5POL            : 1;
16286     unsigned PWM5OUT            : 1;
16287     unsigned                    : 1;
16288     unsigned PWM5EN             : 1;
16289     };
16290 
16291   struct
16292     {
16293     unsigned                    : 2;
16294     unsigned MODE               : 2;
16295     unsigned                    : 4;
16296     };
16297 
16298   struct
16299     {
16300     unsigned                    : 2;
16301     unsigned PWM5MODE           : 2;
16302     unsigned                    : 4;
16303     };
16304   } __PWM5CONbits_t;
16305 
16306 extern __at(0x0D9B) volatile __PWM5CONbits_t PWM5CONbits;
16307 
16308 #define _PWM5CON_PWM5MODE0      0x04
16309 #define _PWM5CON_MODE0          0x04
16310 #define _PWM5CON_PWM5MODE1      0x08
16311 #define _PWM5CON_MODE1          0x08
16312 #define _PWM5CON_POL            0x10
16313 #define _PWM5CON_PWM5POL        0x10
16314 #define _PWM5CON_OUT            0x20
16315 #define _PWM5CON_PWM5OUT        0x20
16316 #define _PWM5CON_EN             0x80
16317 #define _PWM5CON_PWM5EN         0x80
16318 
16319 //==============================================================================
16320 
16321 
16322 //==============================================================================
16323 //        PWM5INTCON Bits
16324 
16325 extern __at(0x0D9C) __sfr PWM5INTCON;
16326 
16327 typedef union
16328   {
16329   struct
16330     {
16331     unsigned PRIE               : 1;
16332     unsigned DCIE               : 1;
16333     unsigned PHIE               : 1;
16334     unsigned OFIE               : 1;
16335     unsigned                    : 1;
16336     unsigned                    : 1;
16337     unsigned                    : 1;
16338     unsigned                    : 1;
16339     };
16340 
16341   struct
16342     {
16343     unsigned PWM5PRIE           : 1;
16344     unsigned PWM5DCIE           : 1;
16345     unsigned PWM5PHIE           : 1;
16346     unsigned PWM5OFIE           : 1;
16347     unsigned                    : 1;
16348     unsigned                    : 1;
16349     unsigned                    : 1;
16350     unsigned                    : 1;
16351     };
16352   } __PWM5INTCONbits_t;
16353 
16354 extern __at(0x0D9C) volatile __PWM5INTCONbits_t PWM5INTCONbits;
16355 
16356 #define _PRIE                   0x01
16357 #define _PWM5PRIE               0x01
16358 #define _DCIE                   0x02
16359 #define _PWM5DCIE               0x02
16360 #define _PHIE                   0x04
16361 #define _PWM5PHIE               0x04
16362 #define _OFIE                   0x08
16363 #define _PWM5OFIE               0x08
16364 
16365 //==============================================================================
16366 
16367 
16368 //==============================================================================
16369 //        PWM5INTE Bits
16370 
16371 extern __at(0x0D9C) __sfr PWM5INTE;
16372 
16373 typedef union
16374   {
16375   struct
16376     {
16377     unsigned PRIE               : 1;
16378     unsigned DCIE               : 1;
16379     unsigned PHIE               : 1;
16380     unsigned OFIE               : 1;
16381     unsigned                    : 1;
16382     unsigned                    : 1;
16383     unsigned                    : 1;
16384     unsigned                    : 1;
16385     };
16386 
16387   struct
16388     {
16389     unsigned PWM5PRIE           : 1;
16390     unsigned PWM5DCIE           : 1;
16391     unsigned PWM5PHIE           : 1;
16392     unsigned PWM5OFIE           : 1;
16393     unsigned                    : 1;
16394     unsigned                    : 1;
16395     unsigned                    : 1;
16396     unsigned                    : 1;
16397     };
16398   } __PWM5INTEbits_t;
16399 
16400 extern __at(0x0D9C) volatile __PWM5INTEbits_t PWM5INTEbits;
16401 
16402 #define _PWM5INTE_PRIE          0x01
16403 #define _PWM5INTE_PWM5PRIE      0x01
16404 #define _PWM5INTE_DCIE          0x02
16405 #define _PWM5INTE_PWM5DCIE      0x02
16406 #define _PWM5INTE_PHIE          0x04
16407 #define _PWM5INTE_PWM5PHIE      0x04
16408 #define _PWM5INTE_OFIE          0x08
16409 #define _PWM5INTE_PWM5OFIE      0x08
16410 
16411 //==============================================================================
16412 
16413 
16414 //==============================================================================
16415 //        PWM5INTF Bits
16416 
16417 extern __at(0x0D9D) __sfr PWM5INTF;
16418 
16419 typedef union
16420   {
16421   struct
16422     {
16423     unsigned PRIF               : 1;
16424     unsigned DCIF               : 1;
16425     unsigned PHIF               : 1;
16426     unsigned OFIF               : 1;
16427     unsigned                    : 1;
16428     unsigned                    : 1;
16429     unsigned                    : 1;
16430     unsigned                    : 1;
16431     };
16432 
16433   struct
16434     {
16435     unsigned PWM5PRIF           : 1;
16436     unsigned PWM5DCIF           : 1;
16437     unsigned PWM5PHIF           : 1;
16438     unsigned PWM5OFIF           : 1;
16439     unsigned                    : 1;
16440     unsigned                    : 1;
16441     unsigned                    : 1;
16442     unsigned                    : 1;
16443     };
16444   } __PWM5INTFbits_t;
16445 
16446 extern __at(0x0D9D) volatile __PWM5INTFbits_t PWM5INTFbits;
16447 
16448 #define _PRIF                   0x01
16449 #define _PWM5PRIF               0x01
16450 #define _DCIF                   0x02
16451 #define _PWM5DCIF               0x02
16452 #define _PHIF                   0x04
16453 #define _PWM5PHIF               0x04
16454 #define _OFIF                   0x08
16455 #define _PWM5OFIF               0x08
16456 
16457 //==============================================================================
16458 
16459 
16460 //==============================================================================
16461 //        PWM5INTFLG Bits
16462 
16463 extern __at(0x0D9D) __sfr PWM5INTFLG;
16464 
16465 typedef union
16466   {
16467   struct
16468     {
16469     unsigned PRIF               : 1;
16470     unsigned DCIF               : 1;
16471     unsigned PHIF               : 1;
16472     unsigned OFIF               : 1;
16473     unsigned                    : 1;
16474     unsigned                    : 1;
16475     unsigned                    : 1;
16476     unsigned                    : 1;
16477     };
16478 
16479   struct
16480     {
16481     unsigned PWM5PRIF           : 1;
16482     unsigned PWM5DCIF           : 1;
16483     unsigned PWM5PHIF           : 1;
16484     unsigned PWM5OFIF           : 1;
16485     unsigned                    : 1;
16486     unsigned                    : 1;
16487     unsigned                    : 1;
16488     unsigned                    : 1;
16489     };
16490   } __PWM5INTFLGbits_t;
16491 
16492 extern __at(0x0D9D) volatile __PWM5INTFLGbits_t PWM5INTFLGbits;
16493 
16494 #define _PWM5INTFLG_PRIF        0x01
16495 #define _PWM5INTFLG_PWM5PRIF    0x01
16496 #define _PWM5INTFLG_DCIF        0x02
16497 #define _PWM5INTFLG_PWM5DCIF    0x02
16498 #define _PWM5INTFLG_PHIF        0x04
16499 #define _PWM5INTFLG_PWM5PHIF    0x04
16500 #define _PWM5INTFLG_OFIF        0x08
16501 #define _PWM5INTFLG_PWM5OFIF    0x08
16502 
16503 //==============================================================================
16504 
16505 
16506 //==============================================================================
16507 //        PWM5CLKCON Bits
16508 
16509 extern __at(0x0D9E) __sfr PWM5CLKCON;
16510 
16511 typedef union
16512   {
16513   struct
16514     {
16515     unsigned PWM5CS0            : 1;
16516     unsigned PWM5CS1            : 1;
16517     unsigned PWM5CS2            : 1;
16518     unsigned                    : 1;
16519     unsigned PWM5PS0            : 1;
16520     unsigned PWM5PS1            : 1;
16521     unsigned PWM5PS2            : 1;
16522     unsigned                    : 1;
16523     };
16524 
16525   struct
16526     {
16527     unsigned CS0                : 1;
16528     unsigned CS1                : 1;
16529     unsigned CS2                : 1;
16530     unsigned                    : 1;
16531     unsigned PS0                : 1;
16532     unsigned PS1                : 1;
16533     unsigned PS2                : 1;
16534     unsigned                    : 1;
16535     };
16536 
16537   struct
16538     {
16539     unsigned PWM5CS             : 3;
16540     unsigned                    : 5;
16541     };
16542 
16543   struct
16544     {
16545     unsigned CS                 : 3;
16546     unsigned                    : 5;
16547     };
16548 
16549   struct
16550     {
16551     unsigned                    : 4;
16552     unsigned PS                 : 3;
16553     unsigned                    : 1;
16554     };
16555 
16556   struct
16557     {
16558     unsigned                    : 4;
16559     unsigned PWM5PS             : 3;
16560     unsigned                    : 1;
16561     };
16562   } __PWM5CLKCONbits_t;
16563 
16564 extern __at(0x0D9E) volatile __PWM5CLKCONbits_t PWM5CLKCONbits;
16565 
16566 #define _PWM5CLKCON_PWM5CS0     0x01
16567 #define _PWM5CLKCON_CS0         0x01
16568 #define _PWM5CLKCON_PWM5CS1     0x02
16569 #define _PWM5CLKCON_CS1         0x02
16570 #define _PWM5CLKCON_PWM5CS2     0x04
16571 #define _PWM5CLKCON_CS2         0x04
16572 #define _PWM5CLKCON_PWM5PS0     0x10
16573 #define _PWM5CLKCON_PS0         0x10
16574 #define _PWM5CLKCON_PWM5PS1     0x20
16575 #define _PWM5CLKCON_PS1         0x20
16576 #define _PWM5CLKCON_PWM5PS2     0x40
16577 #define _PWM5CLKCON_PS2         0x40
16578 
16579 //==============================================================================
16580 
16581 
16582 //==============================================================================
16583 //        PWM5LDCON Bits
16584 
16585 extern __at(0x0D9F) __sfr PWM5LDCON;
16586 
16587 typedef union
16588   {
16589   struct
16590     {
16591     unsigned PWM5LDS0           : 1;
16592     unsigned PWM5LDS1           : 1;
16593     unsigned                    : 1;
16594     unsigned                    : 1;
16595     unsigned                    : 1;
16596     unsigned                    : 1;
16597     unsigned LDT                : 1;
16598     unsigned LDA                : 1;
16599     };
16600 
16601   struct
16602     {
16603     unsigned LDS0               : 1;
16604     unsigned LDS1               : 1;
16605     unsigned                    : 1;
16606     unsigned                    : 1;
16607     unsigned                    : 1;
16608     unsigned                    : 1;
16609     unsigned PWM5LDM            : 1;
16610     unsigned PWM5LD             : 1;
16611     };
16612 
16613   struct
16614     {
16615     unsigned PWM5LDS            : 2;
16616     unsigned                    : 6;
16617     };
16618 
16619   struct
16620     {
16621     unsigned LDS                : 2;
16622     unsigned                    : 6;
16623     };
16624   } __PWM5LDCONbits_t;
16625 
16626 extern __at(0x0D9F) volatile __PWM5LDCONbits_t PWM5LDCONbits;
16627 
16628 #define _PWM5LDS0               0x01
16629 #define _LDS0                   0x01
16630 #define _PWM5LDS1               0x02
16631 #define _LDS1                   0x02
16632 #define _LDT                    0x40
16633 #define _PWM5LDM                0x40
16634 #define _LDA                    0x80
16635 #define _PWM5LD                 0x80
16636 
16637 //==============================================================================
16638 
16639 
16640 //==============================================================================
16641 //        PWM5OFCON Bits
16642 
16643 extern __at(0x0DA0) __sfr PWM5OFCON;
16644 
16645 typedef union
16646   {
16647   struct
16648     {
16649     unsigned PWM5OFS0           : 1;
16650     unsigned PWM5OFS1           : 1;
16651     unsigned                    : 1;
16652     unsigned                    : 1;
16653     unsigned OFO                : 1;
16654     unsigned PWM5OFM0           : 1;
16655     unsigned PWM5OFM1           : 1;
16656     unsigned                    : 1;
16657     };
16658 
16659   struct
16660     {
16661     unsigned OFS0               : 1;
16662     unsigned OFS1               : 1;
16663     unsigned                    : 1;
16664     unsigned                    : 1;
16665     unsigned PWM5OFMC           : 1;
16666     unsigned OFM0               : 1;
16667     unsigned OFM1               : 1;
16668     unsigned                    : 1;
16669     };
16670 
16671   struct
16672     {
16673     unsigned PWM5OFS            : 2;
16674     unsigned                    : 6;
16675     };
16676 
16677   struct
16678     {
16679     unsigned OFS                : 2;
16680     unsigned                    : 6;
16681     };
16682 
16683   struct
16684     {
16685     unsigned                    : 5;
16686     unsigned OFM                : 2;
16687     unsigned                    : 1;
16688     };
16689 
16690   struct
16691     {
16692     unsigned                    : 5;
16693     unsigned PWM5OFM            : 2;
16694     unsigned                    : 1;
16695     };
16696   } __PWM5OFCONbits_t;
16697 
16698 extern __at(0x0DA0) volatile __PWM5OFCONbits_t PWM5OFCONbits;
16699 
16700 #define _PWM5OFS0               0x01
16701 #define _OFS0                   0x01
16702 #define _PWM5OFS1               0x02
16703 #define _OFS1                   0x02
16704 #define _OFO                    0x10
16705 #define _PWM5OFMC               0x10
16706 #define _PWM5OFM0               0x20
16707 #define _OFM0                   0x20
16708 #define _PWM5OFM1               0x40
16709 #define _OFM1                   0x40
16710 
16711 //==============================================================================
16712 
16713 extern __at(0x0DA1) __sfr PWM6PH;
16714 
16715 //==============================================================================
16716 //        PWM6PHL Bits
16717 
16718 extern __at(0x0DA1) __sfr PWM6PHL;
16719 
16720 typedef struct
16721   {
16722   unsigned PWM6PHL0             : 1;
16723   unsigned PWM6PHL1             : 1;
16724   unsigned PWM6PHL2             : 1;
16725   unsigned PWM6PHL3             : 1;
16726   unsigned PWM6PHL4             : 1;
16727   unsigned PWM6PHL5             : 1;
16728   unsigned PWM6PHL6             : 1;
16729   unsigned PWM6PHL7             : 1;
16730   } __PWM6PHLbits_t;
16731 
16732 extern __at(0x0DA1) volatile __PWM6PHLbits_t PWM6PHLbits;
16733 
16734 #define _PWM6PHL0               0x01
16735 #define _PWM6PHL1               0x02
16736 #define _PWM6PHL2               0x04
16737 #define _PWM6PHL3               0x08
16738 #define _PWM6PHL4               0x10
16739 #define _PWM6PHL5               0x20
16740 #define _PWM6PHL6               0x40
16741 #define _PWM6PHL7               0x80
16742 
16743 //==============================================================================
16744 
16745 
16746 //==============================================================================
16747 //        PWM6PHH Bits
16748 
16749 extern __at(0x0DA2) __sfr PWM6PHH;
16750 
16751 typedef struct
16752   {
16753   unsigned PWM6PHH0             : 1;
16754   unsigned PWM6PHH1             : 1;
16755   unsigned PWM6PHH2             : 1;
16756   unsigned PWM6PHH3             : 1;
16757   unsigned PWM6PHH4             : 1;
16758   unsigned PWM6PHH5             : 1;
16759   unsigned PWM6PHH6             : 1;
16760   unsigned PWM6PHH7             : 1;
16761   } __PWM6PHHbits_t;
16762 
16763 extern __at(0x0DA2) volatile __PWM6PHHbits_t PWM6PHHbits;
16764 
16765 #define _PWM6PHH0               0x01
16766 #define _PWM6PHH1               0x02
16767 #define _PWM6PHH2               0x04
16768 #define _PWM6PHH3               0x08
16769 #define _PWM6PHH4               0x10
16770 #define _PWM6PHH5               0x20
16771 #define _PWM6PHH6               0x40
16772 #define _PWM6PHH7               0x80
16773 
16774 //==============================================================================
16775 
16776 extern __at(0x0DA3) __sfr PWM6DC;
16777 
16778 //==============================================================================
16779 //        PWM6DCL Bits
16780 
16781 extern __at(0x0DA3) __sfr PWM6DCL;
16782 
16783 typedef struct
16784   {
16785   unsigned PWM6DCL0             : 1;
16786   unsigned PWM6DCL1             : 1;
16787   unsigned PWM6DCL2             : 1;
16788   unsigned PWM6DCL3             : 1;
16789   unsigned PWM6DCL4             : 1;
16790   unsigned PWM6DCL5             : 1;
16791   unsigned PWM6DCL6             : 1;
16792   unsigned PWM6DCL7             : 1;
16793   } __PWM6DCLbits_t;
16794 
16795 extern __at(0x0DA3) volatile __PWM6DCLbits_t PWM6DCLbits;
16796 
16797 #define _PWM6DCL0               0x01
16798 #define _PWM6DCL1               0x02
16799 #define _PWM6DCL2               0x04
16800 #define _PWM6DCL3               0x08
16801 #define _PWM6DCL4               0x10
16802 #define _PWM6DCL5               0x20
16803 #define _PWM6DCL6               0x40
16804 #define _PWM6DCL7               0x80
16805 
16806 //==============================================================================
16807 
16808 
16809 //==============================================================================
16810 //        PWM6DCH Bits
16811 
16812 extern __at(0x0DA4) __sfr PWM6DCH;
16813 
16814 typedef struct
16815   {
16816   unsigned PWM6DCH0             : 1;
16817   unsigned PWM6DCH1             : 1;
16818   unsigned PWM6DCH2             : 1;
16819   unsigned PWM6DCH3             : 1;
16820   unsigned PWM6DCH4             : 1;
16821   unsigned PWM6DCH5             : 1;
16822   unsigned PWM6DCH6             : 1;
16823   unsigned PWM6DCH7             : 1;
16824   } __PWM6DCHbits_t;
16825 
16826 extern __at(0x0DA4) volatile __PWM6DCHbits_t PWM6DCHbits;
16827 
16828 #define _PWM6DCH0               0x01
16829 #define _PWM6DCH1               0x02
16830 #define _PWM6DCH2               0x04
16831 #define _PWM6DCH3               0x08
16832 #define _PWM6DCH4               0x10
16833 #define _PWM6DCH5               0x20
16834 #define _PWM6DCH6               0x40
16835 #define _PWM6DCH7               0x80
16836 
16837 //==============================================================================
16838 
16839 extern __at(0x0DA5) __sfr PWM6PR;
16840 
16841 //==============================================================================
16842 //        PWM6PRL Bits
16843 
16844 extern __at(0x0DA5) __sfr PWM6PRL;
16845 
16846 typedef struct
16847   {
16848   unsigned PWM6PRL0             : 1;
16849   unsigned PWM6PRL1             : 1;
16850   unsigned PWM6PRL2             : 1;
16851   unsigned PWM6PRL3             : 1;
16852   unsigned PWM6PRL4             : 1;
16853   unsigned PWM6PRL5             : 1;
16854   unsigned PWM6PRL6             : 1;
16855   unsigned PWM6PRL7             : 1;
16856   } __PWM6PRLbits_t;
16857 
16858 extern __at(0x0DA5) volatile __PWM6PRLbits_t PWM6PRLbits;
16859 
16860 #define _PWM6PRL0               0x01
16861 #define _PWM6PRL1               0x02
16862 #define _PWM6PRL2               0x04
16863 #define _PWM6PRL3               0x08
16864 #define _PWM6PRL4               0x10
16865 #define _PWM6PRL5               0x20
16866 #define _PWM6PRL6               0x40
16867 #define _PWM6PRL7               0x80
16868 
16869 //==============================================================================
16870 
16871 
16872 //==============================================================================
16873 //        PWM6PRH Bits
16874 
16875 extern __at(0x0DA6) __sfr PWM6PRH;
16876 
16877 typedef struct
16878   {
16879   unsigned PWM6PRH0             : 1;
16880   unsigned PWM6PRH1             : 1;
16881   unsigned PWM6PRH2             : 1;
16882   unsigned PWM6PRH3             : 1;
16883   unsigned PWM6PRH4             : 1;
16884   unsigned PWM6PRH5             : 1;
16885   unsigned PWM6PRH6             : 1;
16886   unsigned PWM6PRH7             : 1;
16887   } __PWM6PRHbits_t;
16888 
16889 extern __at(0x0DA6) volatile __PWM6PRHbits_t PWM6PRHbits;
16890 
16891 #define _PWM6PRH0               0x01
16892 #define _PWM6PRH1               0x02
16893 #define _PWM6PRH2               0x04
16894 #define _PWM6PRH3               0x08
16895 #define _PWM6PRH4               0x10
16896 #define _PWM6PRH5               0x20
16897 #define _PWM6PRH6               0x40
16898 #define _PWM6PRH7               0x80
16899 
16900 //==============================================================================
16901 
16902 extern __at(0x0DA7) __sfr PWM6OF;
16903 
16904 //==============================================================================
16905 //        PWM6OFL Bits
16906 
16907 extern __at(0x0DA7) __sfr PWM6OFL;
16908 
16909 typedef struct
16910   {
16911   unsigned PWM6OFL0             : 1;
16912   unsigned PWM6OFL1             : 1;
16913   unsigned PWM6OFL2             : 1;
16914   unsigned PWM6OFL3             : 1;
16915   unsigned PWM6OFL4             : 1;
16916   unsigned PWM6OFL5             : 1;
16917   unsigned PWM6OFL6             : 1;
16918   unsigned PWM6OFL7             : 1;
16919   } __PWM6OFLbits_t;
16920 
16921 extern __at(0x0DA7) volatile __PWM6OFLbits_t PWM6OFLbits;
16922 
16923 #define _PWM6OFL0               0x01
16924 #define _PWM6OFL1               0x02
16925 #define _PWM6OFL2               0x04
16926 #define _PWM6OFL3               0x08
16927 #define _PWM6OFL4               0x10
16928 #define _PWM6OFL5               0x20
16929 #define _PWM6OFL6               0x40
16930 #define _PWM6OFL7               0x80
16931 
16932 //==============================================================================
16933 
16934 
16935 //==============================================================================
16936 //        PWM6OFH Bits
16937 
16938 extern __at(0x0DA8) __sfr PWM6OFH;
16939 
16940 typedef struct
16941   {
16942   unsigned PWM6OFH0             : 1;
16943   unsigned PWM6OFH1             : 1;
16944   unsigned PWM6OFH2             : 1;
16945   unsigned PWM6OFH3             : 1;
16946   unsigned PWM6OFH4             : 1;
16947   unsigned PWM6OFH5             : 1;
16948   unsigned PWM6OFH6             : 1;
16949   unsigned PWM6OFH7             : 1;
16950   } __PWM6OFHbits_t;
16951 
16952 extern __at(0x0DA8) volatile __PWM6OFHbits_t PWM6OFHbits;
16953 
16954 #define _PWM6OFH0               0x01
16955 #define _PWM6OFH1               0x02
16956 #define _PWM6OFH2               0x04
16957 #define _PWM6OFH3               0x08
16958 #define _PWM6OFH4               0x10
16959 #define _PWM6OFH5               0x20
16960 #define _PWM6OFH6               0x40
16961 #define _PWM6OFH7               0x80
16962 
16963 //==============================================================================
16964 
16965 extern __at(0x0DA9) __sfr PWM6TMR;
16966 
16967 //==============================================================================
16968 //        PWM6TMRL Bits
16969 
16970 extern __at(0x0DA9) __sfr PWM6TMRL;
16971 
16972 typedef struct
16973   {
16974   unsigned PWM6TMRL0            : 1;
16975   unsigned PWM6TMRL1            : 1;
16976   unsigned PWM6TMRL2            : 1;
16977   unsigned PWM6TMRL3            : 1;
16978   unsigned PWM6TMRL4            : 1;
16979   unsigned PWM6TMRL5            : 1;
16980   unsigned PWM6TMRL6            : 1;
16981   unsigned PWM6TMRL7            : 1;
16982   } __PWM6TMRLbits_t;
16983 
16984 extern __at(0x0DA9) volatile __PWM6TMRLbits_t PWM6TMRLbits;
16985 
16986 #define _PWM6TMRL0              0x01
16987 #define _PWM6TMRL1              0x02
16988 #define _PWM6TMRL2              0x04
16989 #define _PWM6TMRL3              0x08
16990 #define _PWM6TMRL4              0x10
16991 #define _PWM6TMRL5              0x20
16992 #define _PWM6TMRL6              0x40
16993 #define _PWM6TMRL7              0x80
16994 
16995 //==============================================================================
16996 
16997 
16998 //==============================================================================
16999 //        PWM6TMRH Bits
17000 
17001 extern __at(0x0DAA) __sfr PWM6TMRH;
17002 
17003 typedef struct
17004   {
17005   unsigned PWM6TMRH0            : 1;
17006   unsigned PWM6TMRH1            : 1;
17007   unsigned PWM6TMRH2            : 1;
17008   unsigned PWM6TMRH3            : 1;
17009   unsigned PWM6TMRH4            : 1;
17010   unsigned PWM6TMRH5            : 1;
17011   unsigned PWM6TMRH6            : 1;
17012   unsigned PWM6TMRH7            : 1;
17013   } __PWM6TMRHbits_t;
17014 
17015 extern __at(0x0DAA) volatile __PWM6TMRHbits_t PWM6TMRHbits;
17016 
17017 #define _PWM6TMRH0              0x01
17018 #define _PWM6TMRH1              0x02
17019 #define _PWM6TMRH2              0x04
17020 #define _PWM6TMRH3              0x08
17021 #define _PWM6TMRH4              0x10
17022 #define _PWM6TMRH5              0x20
17023 #define _PWM6TMRH6              0x40
17024 #define _PWM6TMRH7              0x80
17025 
17026 //==============================================================================
17027 
17028 
17029 //==============================================================================
17030 //        PWM6CON Bits
17031 
17032 extern __at(0x0DAB) __sfr PWM6CON;
17033 
17034 typedef union
17035   {
17036   struct
17037     {
17038     unsigned                    : 1;
17039     unsigned                    : 1;
17040     unsigned PWM6MODE0          : 1;
17041     unsigned PWM6MODE1          : 1;
17042     unsigned POL                : 1;
17043     unsigned OUT                : 1;
17044     unsigned                    : 1;
17045     unsigned EN                 : 1;
17046     };
17047 
17048   struct
17049     {
17050     unsigned                    : 1;
17051     unsigned                    : 1;
17052     unsigned MODE0              : 1;
17053     unsigned MODE1              : 1;
17054     unsigned PWM6POL            : 1;
17055     unsigned PWM6OUT            : 1;
17056     unsigned                    : 1;
17057     unsigned PWM6EN             : 1;
17058     };
17059 
17060   struct
17061     {
17062     unsigned                    : 2;
17063     unsigned MODE               : 2;
17064     unsigned                    : 4;
17065     };
17066 
17067   struct
17068     {
17069     unsigned                    : 2;
17070     unsigned PWM6MODE           : 2;
17071     unsigned                    : 4;
17072     };
17073   } __PWM6CONbits_t;
17074 
17075 extern __at(0x0DAB) volatile __PWM6CONbits_t PWM6CONbits;
17076 
17077 #define _PWM6CON_PWM6MODE0      0x04
17078 #define _PWM6CON_MODE0          0x04
17079 #define _PWM6CON_PWM6MODE1      0x08
17080 #define _PWM6CON_MODE1          0x08
17081 #define _PWM6CON_POL            0x10
17082 #define _PWM6CON_PWM6POL        0x10
17083 #define _PWM6CON_OUT            0x20
17084 #define _PWM6CON_PWM6OUT        0x20
17085 #define _PWM6CON_EN             0x80
17086 #define _PWM6CON_PWM6EN         0x80
17087 
17088 //==============================================================================
17089 
17090 
17091 //==============================================================================
17092 //        PWM6INTCON Bits
17093 
17094 extern __at(0x0DAC) __sfr PWM6INTCON;
17095 
17096 typedef union
17097   {
17098   struct
17099     {
17100     unsigned PRIE               : 1;
17101     unsigned DCIE               : 1;
17102     unsigned PHIE               : 1;
17103     unsigned OFIE               : 1;
17104     unsigned                    : 1;
17105     unsigned                    : 1;
17106     unsigned                    : 1;
17107     unsigned                    : 1;
17108     };
17109 
17110   struct
17111     {
17112     unsigned PWM6PRIE           : 1;
17113     unsigned PWM6DCIE           : 1;
17114     unsigned PWM6PHIE           : 1;
17115     unsigned PWM6OFIE           : 1;
17116     unsigned                    : 1;
17117     unsigned                    : 1;
17118     unsigned                    : 1;
17119     unsigned                    : 1;
17120     };
17121   } __PWM6INTCONbits_t;
17122 
17123 extern __at(0x0DAC) volatile __PWM6INTCONbits_t PWM6INTCONbits;
17124 
17125 #define _PWM6INTCON_PRIE        0x01
17126 #define _PWM6INTCON_PWM6PRIE    0x01
17127 #define _PWM6INTCON_DCIE        0x02
17128 #define _PWM6INTCON_PWM6DCIE    0x02
17129 #define _PWM6INTCON_PHIE        0x04
17130 #define _PWM6INTCON_PWM6PHIE    0x04
17131 #define _PWM6INTCON_OFIE        0x08
17132 #define _PWM6INTCON_PWM6OFIE    0x08
17133 
17134 //==============================================================================
17135 
17136 
17137 //==============================================================================
17138 //        PWM6INTE Bits
17139 
17140 extern __at(0x0DAC) __sfr PWM6INTE;
17141 
17142 typedef union
17143   {
17144   struct
17145     {
17146     unsigned PRIE               : 1;
17147     unsigned DCIE               : 1;
17148     unsigned PHIE               : 1;
17149     unsigned OFIE               : 1;
17150     unsigned                    : 1;
17151     unsigned                    : 1;
17152     unsigned                    : 1;
17153     unsigned                    : 1;
17154     };
17155 
17156   struct
17157     {
17158     unsigned PWM6PRIE           : 1;
17159     unsigned PWM6DCIE           : 1;
17160     unsigned PWM6PHIE           : 1;
17161     unsigned PWM6OFIE           : 1;
17162     unsigned                    : 1;
17163     unsigned                    : 1;
17164     unsigned                    : 1;
17165     unsigned                    : 1;
17166     };
17167   } __PWM6INTEbits_t;
17168 
17169 extern __at(0x0DAC) volatile __PWM6INTEbits_t PWM6INTEbits;
17170 
17171 #define _PWM6INTE_PRIE          0x01
17172 #define _PWM6INTE_PWM6PRIE      0x01
17173 #define _PWM6INTE_DCIE          0x02
17174 #define _PWM6INTE_PWM6DCIE      0x02
17175 #define _PWM6INTE_PHIE          0x04
17176 #define _PWM6INTE_PWM6PHIE      0x04
17177 #define _PWM6INTE_OFIE          0x08
17178 #define _PWM6INTE_PWM6OFIE      0x08
17179 
17180 //==============================================================================
17181 
17182 
17183 //==============================================================================
17184 //        PWM6INTF Bits
17185 
17186 extern __at(0x0DAD) __sfr PWM6INTF;
17187 
17188 typedef union
17189   {
17190   struct
17191     {
17192     unsigned PRIF               : 1;
17193     unsigned DCIF               : 1;
17194     unsigned PHIF               : 1;
17195     unsigned OFIF               : 1;
17196     unsigned                    : 1;
17197     unsigned                    : 1;
17198     unsigned                    : 1;
17199     unsigned                    : 1;
17200     };
17201 
17202   struct
17203     {
17204     unsigned PWM6PRIF           : 1;
17205     unsigned PWM6DCIF           : 1;
17206     unsigned PWM6PHIF           : 1;
17207     unsigned PWM6OFIF           : 1;
17208     unsigned                    : 1;
17209     unsigned                    : 1;
17210     unsigned                    : 1;
17211     unsigned                    : 1;
17212     };
17213   } __PWM6INTFbits_t;
17214 
17215 extern __at(0x0DAD) volatile __PWM6INTFbits_t PWM6INTFbits;
17216 
17217 #define _PWM6INTF_PRIF          0x01
17218 #define _PWM6INTF_PWM6PRIF      0x01
17219 #define _PWM6INTF_DCIF          0x02
17220 #define _PWM6INTF_PWM6DCIF      0x02
17221 #define _PWM6INTF_PHIF          0x04
17222 #define _PWM6INTF_PWM6PHIF      0x04
17223 #define _PWM6INTF_OFIF          0x08
17224 #define _PWM6INTF_PWM6OFIF      0x08
17225 
17226 //==============================================================================
17227 
17228 
17229 //==============================================================================
17230 //        PWM6INTFLG Bits
17231 
17232 extern __at(0x0DAD) __sfr PWM6INTFLG;
17233 
17234 typedef union
17235   {
17236   struct
17237     {
17238     unsigned PRIF               : 1;
17239     unsigned DCIF               : 1;
17240     unsigned PHIF               : 1;
17241     unsigned OFIF               : 1;
17242     unsigned                    : 1;
17243     unsigned                    : 1;
17244     unsigned                    : 1;
17245     unsigned                    : 1;
17246     };
17247 
17248   struct
17249     {
17250     unsigned PWM6PRIF           : 1;
17251     unsigned PWM6DCIF           : 1;
17252     unsigned PWM6PHIF           : 1;
17253     unsigned PWM6OFIF           : 1;
17254     unsigned                    : 1;
17255     unsigned                    : 1;
17256     unsigned                    : 1;
17257     unsigned                    : 1;
17258     };
17259   } __PWM6INTFLGbits_t;
17260 
17261 extern __at(0x0DAD) volatile __PWM6INTFLGbits_t PWM6INTFLGbits;
17262 
17263 #define _PWM6INTFLG_PRIF        0x01
17264 #define _PWM6INTFLG_PWM6PRIF    0x01
17265 #define _PWM6INTFLG_DCIF        0x02
17266 #define _PWM6INTFLG_PWM6DCIF    0x02
17267 #define _PWM6INTFLG_PHIF        0x04
17268 #define _PWM6INTFLG_PWM6PHIF    0x04
17269 #define _PWM6INTFLG_OFIF        0x08
17270 #define _PWM6INTFLG_PWM6OFIF    0x08
17271 
17272 //==============================================================================
17273 
17274 
17275 //==============================================================================
17276 //        PWM6CLKCON Bits
17277 
17278 extern __at(0x0DAE) __sfr PWM6CLKCON;
17279 
17280 typedef union
17281   {
17282   struct
17283     {
17284     unsigned PWM6CS0            : 1;
17285     unsigned PWM6CS1            : 1;
17286     unsigned PWM6CS2            : 1;
17287     unsigned                    : 1;
17288     unsigned PWM6PS0            : 1;
17289     unsigned PWM6PS1            : 1;
17290     unsigned PWM6PS2            : 1;
17291     unsigned                    : 1;
17292     };
17293 
17294   struct
17295     {
17296     unsigned CS0                : 1;
17297     unsigned CS1                : 1;
17298     unsigned CS2                : 1;
17299     unsigned                    : 1;
17300     unsigned PS0                : 1;
17301     unsigned PS1                : 1;
17302     unsigned PS2                : 1;
17303     unsigned                    : 1;
17304     };
17305 
17306   struct
17307     {
17308     unsigned PWM6CS             : 3;
17309     unsigned                    : 5;
17310     };
17311 
17312   struct
17313     {
17314     unsigned CS                 : 3;
17315     unsigned                    : 5;
17316     };
17317 
17318   struct
17319     {
17320     unsigned                    : 4;
17321     unsigned PWM6PS             : 3;
17322     unsigned                    : 1;
17323     };
17324 
17325   struct
17326     {
17327     unsigned                    : 4;
17328     unsigned PS                 : 3;
17329     unsigned                    : 1;
17330     };
17331   } __PWM6CLKCONbits_t;
17332 
17333 extern __at(0x0DAE) volatile __PWM6CLKCONbits_t PWM6CLKCONbits;
17334 
17335 #define _PWM6CLKCON_PWM6CS0     0x01
17336 #define _PWM6CLKCON_CS0         0x01
17337 #define _PWM6CLKCON_PWM6CS1     0x02
17338 #define _PWM6CLKCON_CS1         0x02
17339 #define _PWM6CLKCON_PWM6CS2     0x04
17340 #define _PWM6CLKCON_CS2         0x04
17341 #define _PWM6CLKCON_PWM6PS0     0x10
17342 #define _PWM6CLKCON_PS0         0x10
17343 #define _PWM6CLKCON_PWM6PS1     0x20
17344 #define _PWM6CLKCON_PS1         0x20
17345 #define _PWM6CLKCON_PWM6PS2     0x40
17346 #define _PWM6CLKCON_PS2         0x40
17347 
17348 //==============================================================================
17349 
17350 
17351 //==============================================================================
17352 //        PWM6LDCON Bits
17353 
17354 extern __at(0x0DAF) __sfr PWM6LDCON;
17355 
17356 typedef union
17357   {
17358   struct
17359     {
17360     unsigned PWM6LDS0           : 1;
17361     unsigned PWM6LDS1           : 1;
17362     unsigned                    : 1;
17363     unsigned                    : 1;
17364     unsigned                    : 1;
17365     unsigned                    : 1;
17366     unsigned LDT                : 1;
17367     unsigned LDA                : 1;
17368     };
17369 
17370   struct
17371     {
17372     unsigned LDS0               : 1;
17373     unsigned LDS1               : 1;
17374     unsigned                    : 1;
17375     unsigned                    : 1;
17376     unsigned                    : 1;
17377     unsigned                    : 1;
17378     unsigned PWM6LDM            : 1;
17379     unsigned PWM6LD             : 1;
17380     };
17381 
17382   struct
17383     {
17384     unsigned LDS                : 2;
17385     unsigned                    : 6;
17386     };
17387 
17388   struct
17389     {
17390     unsigned PWM6LDS            : 2;
17391     unsigned                    : 6;
17392     };
17393   } __PWM6LDCONbits_t;
17394 
17395 extern __at(0x0DAF) volatile __PWM6LDCONbits_t PWM6LDCONbits;
17396 
17397 #define _PWM6LDCON_PWM6LDS0     0x01
17398 #define _PWM6LDCON_LDS0         0x01
17399 #define _PWM6LDCON_PWM6LDS1     0x02
17400 #define _PWM6LDCON_LDS1         0x02
17401 #define _PWM6LDCON_LDT          0x40
17402 #define _PWM6LDCON_PWM6LDM      0x40
17403 #define _PWM6LDCON_LDA          0x80
17404 #define _PWM6LDCON_PWM6LD       0x80
17405 
17406 //==============================================================================
17407 
17408 
17409 //==============================================================================
17410 //        PWM6OFCON Bits
17411 
17412 extern __at(0x0DB0) __sfr PWM6OFCON;
17413 
17414 typedef union
17415   {
17416   struct
17417     {
17418     unsigned PWM6OFS0           : 1;
17419     unsigned PWM6OFS1           : 1;
17420     unsigned                    : 1;
17421     unsigned                    : 1;
17422     unsigned OFO                : 1;
17423     unsigned PWM6OFM0           : 1;
17424     unsigned PWM6OFM1           : 1;
17425     unsigned                    : 1;
17426     };
17427 
17428   struct
17429     {
17430     unsigned OFS0               : 1;
17431     unsigned OFS1               : 1;
17432     unsigned                    : 1;
17433     unsigned                    : 1;
17434     unsigned PWM6OFMC           : 1;
17435     unsigned OFM0               : 1;
17436     unsigned OFM1               : 1;
17437     unsigned                    : 1;
17438     };
17439 
17440   struct
17441     {
17442     unsigned PWM6OFS            : 2;
17443     unsigned                    : 6;
17444     };
17445 
17446   struct
17447     {
17448     unsigned OFS                : 2;
17449     unsigned                    : 6;
17450     };
17451 
17452   struct
17453     {
17454     unsigned                    : 5;
17455     unsigned OFM                : 2;
17456     unsigned                    : 1;
17457     };
17458 
17459   struct
17460     {
17461     unsigned                    : 5;
17462     unsigned PWM6OFM            : 2;
17463     unsigned                    : 1;
17464     };
17465   } __PWM6OFCONbits_t;
17466 
17467 extern __at(0x0DB0) volatile __PWM6OFCONbits_t PWM6OFCONbits;
17468 
17469 #define _PWM6OFCON_PWM6OFS0     0x01
17470 #define _PWM6OFCON_OFS0         0x01
17471 #define _PWM6OFCON_PWM6OFS1     0x02
17472 #define _PWM6OFCON_OFS1         0x02
17473 #define _PWM6OFCON_OFO          0x10
17474 #define _PWM6OFCON_PWM6OFMC     0x10
17475 #define _PWM6OFCON_PWM6OFM0     0x20
17476 #define _PWM6OFCON_OFM0         0x20
17477 #define _PWM6OFCON_PWM6OFM1     0x40
17478 #define _PWM6OFCON_OFM1         0x40
17479 
17480 //==============================================================================
17481 
17482 extern __at(0x0DB1) __sfr PWM11PH;
17483 
17484 //==============================================================================
17485 //        PWM11PHL Bits
17486 
17487 extern __at(0x0DB1) __sfr PWM11PHL;
17488 
17489 typedef struct
17490   {
17491   unsigned PWM11PHL0            : 1;
17492   unsigned PWM11PHL1            : 1;
17493   unsigned PWM11PHL2            : 1;
17494   unsigned PWM11PHL3            : 1;
17495   unsigned PWM11PHL4            : 1;
17496   unsigned PWM11PHL5            : 1;
17497   unsigned PWM11PHL6            : 1;
17498   unsigned PWM11PHL7            : 1;
17499   } __PWM11PHLbits_t;
17500 
17501 extern __at(0x0DB1) volatile __PWM11PHLbits_t PWM11PHLbits;
17502 
17503 #define _PWM11PHL0              0x01
17504 #define _PWM11PHL1              0x02
17505 #define _PWM11PHL2              0x04
17506 #define _PWM11PHL3              0x08
17507 #define _PWM11PHL4              0x10
17508 #define _PWM11PHL5              0x20
17509 #define _PWM11PHL6              0x40
17510 #define _PWM11PHL7              0x80
17511 
17512 //==============================================================================
17513 
17514 
17515 //==============================================================================
17516 //        PWM11PHH Bits
17517 
17518 extern __at(0x0DB2) __sfr PWM11PHH;
17519 
17520 typedef struct
17521   {
17522   unsigned PWM11PHH0            : 1;
17523   unsigned PWM11PHH1            : 1;
17524   unsigned PWM11PHH2            : 1;
17525   unsigned PWM11PHH3            : 1;
17526   unsigned PWM11PHH4            : 1;
17527   unsigned PWM11PHH5            : 1;
17528   unsigned PWM11PHH6            : 1;
17529   unsigned PWM11PHH7            : 1;
17530   } __PWM11PHHbits_t;
17531 
17532 extern __at(0x0DB2) volatile __PWM11PHHbits_t PWM11PHHbits;
17533 
17534 #define _PWM11PHH0              0x01
17535 #define _PWM11PHH1              0x02
17536 #define _PWM11PHH2              0x04
17537 #define _PWM11PHH3              0x08
17538 #define _PWM11PHH4              0x10
17539 #define _PWM11PHH5              0x20
17540 #define _PWM11PHH6              0x40
17541 #define _PWM11PHH7              0x80
17542 
17543 //==============================================================================
17544 
17545 extern __at(0x0DB3) __sfr PWM11DC;
17546 
17547 //==============================================================================
17548 //        PWM11DCL Bits
17549 
17550 extern __at(0x0DB3) __sfr PWM11DCL;
17551 
17552 typedef struct
17553   {
17554   unsigned PWM11DCL0            : 1;
17555   unsigned PWM11DCL1            : 1;
17556   unsigned PWM11DCL2            : 1;
17557   unsigned PWM11DCL3            : 1;
17558   unsigned PWM11DCL4            : 1;
17559   unsigned PWM11DCL5            : 1;
17560   unsigned PWM11DCL6            : 1;
17561   unsigned PWM11DCL7            : 1;
17562   } __PWM11DCLbits_t;
17563 
17564 extern __at(0x0DB3) volatile __PWM11DCLbits_t PWM11DCLbits;
17565 
17566 #define _PWM11DCL0              0x01
17567 #define _PWM11DCL1              0x02
17568 #define _PWM11DCL2              0x04
17569 #define _PWM11DCL3              0x08
17570 #define _PWM11DCL4              0x10
17571 #define _PWM11DCL5              0x20
17572 #define _PWM11DCL6              0x40
17573 #define _PWM11DCL7              0x80
17574 
17575 //==============================================================================
17576 
17577 
17578 //==============================================================================
17579 //        PWM11DCH Bits
17580 
17581 extern __at(0x0DB4) __sfr PWM11DCH;
17582 
17583 typedef struct
17584   {
17585   unsigned PWM11DCH0            : 1;
17586   unsigned PWM11DCH1            : 1;
17587   unsigned PWM11DCH2            : 1;
17588   unsigned PWM11DCH3            : 1;
17589   unsigned PWM11DCH4            : 1;
17590   unsigned PWM11DCH5            : 1;
17591   unsigned PWM11DCH6            : 1;
17592   unsigned PWM11DCH7            : 1;
17593   } __PWM11DCHbits_t;
17594 
17595 extern __at(0x0DB4) volatile __PWM11DCHbits_t PWM11DCHbits;
17596 
17597 #define _PWM11DCH0              0x01
17598 #define _PWM11DCH1              0x02
17599 #define _PWM11DCH2              0x04
17600 #define _PWM11DCH3              0x08
17601 #define _PWM11DCH4              0x10
17602 #define _PWM11DCH5              0x20
17603 #define _PWM11DCH6              0x40
17604 #define _PWM11DCH7              0x80
17605 
17606 //==============================================================================
17607 
17608 extern __at(0x0DB5) __sfr PWM11PR;
17609 
17610 //==============================================================================
17611 //        PWM11PRL Bits
17612 
17613 extern __at(0x0DB5) __sfr PWM11PRL;
17614 
17615 typedef struct
17616   {
17617   unsigned PWM11PRL0            : 1;
17618   unsigned PWM11PRL1            : 1;
17619   unsigned PWM11PRL2            : 1;
17620   unsigned PWM11PRL3            : 1;
17621   unsigned PWM11PRL4            : 1;
17622   unsigned PWM11PRL5            : 1;
17623   unsigned PWM11PRL6            : 1;
17624   unsigned PWM11PRL7            : 1;
17625   } __PWM11PRLbits_t;
17626 
17627 extern __at(0x0DB5) volatile __PWM11PRLbits_t PWM11PRLbits;
17628 
17629 #define _PWM11PRL0              0x01
17630 #define _PWM11PRL1              0x02
17631 #define _PWM11PRL2              0x04
17632 #define _PWM11PRL3              0x08
17633 #define _PWM11PRL4              0x10
17634 #define _PWM11PRL5              0x20
17635 #define _PWM11PRL6              0x40
17636 #define _PWM11PRL7              0x80
17637 
17638 //==============================================================================
17639 
17640 
17641 //==============================================================================
17642 //        PWM11PRH Bits
17643 
17644 extern __at(0x0DB6) __sfr PWM11PRH;
17645 
17646 typedef struct
17647   {
17648   unsigned PWM11PRH0            : 1;
17649   unsigned PWM11PRH1            : 1;
17650   unsigned PWM11PRH2            : 1;
17651   unsigned PWM11PRH3            : 1;
17652   unsigned PWM11PRH4            : 1;
17653   unsigned PWM11PRH5            : 1;
17654   unsigned PWM11PRH6            : 1;
17655   unsigned PWM11PRH7            : 1;
17656   } __PWM11PRHbits_t;
17657 
17658 extern __at(0x0DB6) volatile __PWM11PRHbits_t PWM11PRHbits;
17659 
17660 #define _PWM11PRH0              0x01
17661 #define _PWM11PRH1              0x02
17662 #define _PWM11PRH2              0x04
17663 #define _PWM11PRH3              0x08
17664 #define _PWM11PRH4              0x10
17665 #define _PWM11PRH5              0x20
17666 #define _PWM11PRH6              0x40
17667 #define _PWM11PRH7              0x80
17668 
17669 //==============================================================================
17670 
17671 extern __at(0x0DB7) __sfr PWM11OF;
17672 
17673 //==============================================================================
17674 //        PWM11OFL Bits
17675 
17676 extern __at(0x0DB7) __sfr PWM11OFL;
17677 
17678 typedef struct
17679   {
17680   unsigned PWM11OFL0            : 1;
17681   unsigned PWM11OFL1            : 1;
17682   unsigned PWM11OFL2            : 1;
17683   unsigned PWM11OFL3            : 1;
17684   unsigned PWM11OFL4            : 1;
17685   unsigned PWM11OFL5            : 1;
17686   unsigned PWM11OFL6            : 1;
17687   unsigned PWM11OFL7            : 1;
17688   } __PWM11OFLbits_t;
17689 
17690 extern __at(0x0DB7) volatile __PWM11OFLbits_t PWM11OFLbits;
17691 
17692 #define _PWM11OFL0              0x01
17693 #define _PWM11OFL1              0x02
17694 #define _PWM11OFL2              0x04
17695 #define _PWM11OFL3              0x08
17696 #define _PWM11OFL4              0x10
17697 #define _PWM11OFL5              0x20
17698 #define _PWM11OFL6              0x40
17699 #define _PWM11OFL7              0x80
17700 
17701 //==============================================================================
17702 
17703 
17704 //==============================================================================
17705 //        PWM11OFH Bits
17706 
17707 extern __at(0x0DB8) __sfr PWM11OFH;
17708 
17709 typedef struct
17710   {
17711   unsigned PWM11OFH0            : 1;
17712   unsigned PWM11OFH1            : 1;
17713   unsigned PWM11OFH2            : 1;
17714   unsigned PWM11OFH3            : 1;
17715   unsigned PWM11OFH4            : 1;
17716   unsigned PWM11OFH5            : 1;
17717   unsigned PWM11OFH6            : 1;
17718   unsigned PWM11OFH7            : 1;
17719   } __PWM11OFHbits_t;
17720 
17721 extern __at(0x0DB8) volatile __PWM11OFHbits_t PWM11OFHbits;
17722 
17723 #define _PWM11OFH0              0x01
17724 #define _PWM11OFH1              0x02
17725 #define _PWM11OFH2              0x04
17726 #define _PWM11OFH3              0x08
17727 #define _PWM11OFH4              0x10
17728 #define _PWM11OFH5              0x20
17729 #define _PWM11OFH6              0x40
17730 #define _PWM11OFH7              0x80
17731 
17732 //==============================================================================
17733 
17734 extern __at(0x0DB9) __sfr PWM11TMR;
17735 
17736 //==============================================================================
17737 //        PWM11TMRL Bits
17738 
17739 extern __at(0x0DB9) __sfr PWM11TMRL;
17740 
17741 typedef struct
17742   {
17743   unsigned PWM11TMRL0           : 1;
17744   unsigned PWM11TMRL1           : 1;
17745   unsigned PWM11TMRL2           : 1;
17746   unsigned PWM11TMRL3           : 1;
17747   unsigned PWM11TMRL4           : 1;
17748   unsigned PWM11TMRL5           : 1;
17749   unsigned PWM11TMRL6           : 1;
17750   unsigned PWM11TMRL7           : 1;
17751   } __PWM11TMRLbits_t;
17752 
17753 extern __at(0x0DB9) volatile __PWM11TMRLbits_t PWM11TMRLbits;
17754 
17755 #define _PWM11TMRL0             0x01
17756 #define _PWM11TMRL1             0x02
17757 #define _PWM11TMRL2             0x04
17758 #define _PWM11TMRL3             0x08
17759 #define _PWM11TMRL4             0x10
17760 #define _PWM11TMRL5             0x20
17761 #define _PWM11TMRL6             0x40
17762 #define _PWM11TMRL7             0x80
17763 
17764 //==============================================================================
17765 
17766 
17767 //==============================================================================
17768 //        PWM11TMRH Bits
17769 
17770 extern __at(0x0DBA) __sfr PWM11TMRH;
17771 
17772 typedef struct
17773   {
17774   unsigned PWM11TMRH0           : 1;
17775   unsigned PWM11TMRH1           : 1;
17776   unsigned PWM11TMRH2           : 1;
17777   unsigned PWM11TMRH3           : 1;
17778   unsigned PWM11TMRH4           : 1;
17779   unsigned PWM11TMRH5           : 1;
17780   unsigned PWM11TMRH6           : 1;
17781   unsigned PWM11TMRH7           : 1;
17782   } __PWM11TMRHbits_t;
17783 
17784 extern __at(0x0DBA) volatile __PWM11TMRHbits_t PWM11TMRHbits;
17785 
17786 #define _PWM11TMRH0             0x01
17787 #define _PWM11TMRH1             0x02
17788 #define _PWM11TMRH2             0x04
17789 #define _PWM11TMRH3             0x08
17790 #define _PWM11TMRH4             0x10
17791 #define _PWM11TMRH5             0x20
17792 #define _PWM11TMRH6             0x40
17793 #define _PWM11TMRH7             0x80
17794 
17795 //==============================================================================
17796 
17797 
17798 //==============================================================================
17799 //        PWM11CON Bits
17800 
17801 extern __at(0x0DBB) __sfr PWM11CON;
17802 
17803 typedef union
17804   {
17805   struct
17806     {
17807     unsigned                    : 1;
17808     unsigned                    : 1;
17809     unsigned PWM11MODE0         : 1;
17810     unsigned PWM11MODE1         : 1;
17811     unsigned POL                : 1;
17812     unsigned OUT                : 1;
17813     unsigned                    : 1;
17814     unsigned EN                 : 1;
17815     };
17816 
17817   struct
17818     {
17819     unsigned                    : 1;
17820     unsigned                    : 1;
17821     unsigned MODE0              : 1;
17822     unsigned MODE1              : 1;
17823     unsigned PWM11POL           : 1;
17824     unsigned PWM11OUT           : 1;
17825     unsigned                    : 1;
17826     unsigned PWM11EN            : 1;
17827     };
17828 
17829   struct
17830     {
17831     unsigned                    : 2;
17832     unsigned PWM11MODE          : 2;
17833     unsigned                    : 4;
17834     };
17835 
17836   struct
17837     {
17838     unsigned                    : 2;
17839     unsigned MODE               : 2;
17840     unsigned                    : 4;
17841     };
17842   } __PWM11CONbits_t;
17843 
17844 extern __at(0x0DBB) volatile __PWM11CONbits_t PWM11CONbits;
17845 
17846 #define _PWM11CON_PWM11MODE0    0x04
17847 #define _PWM11CON_MODE0         0x04
17848 #define _PWM11CON_PWM11MODE1    0x08
17849 #define _PWM11CON_MODE1         0x08
17850 #define _PWM11CON_POL           0x10
17851 #define _PWM11CON_PWM11POL      0x10
17852 #define _PWM11CON_OUT           0x20
17853 #define _PWM11CON_PWM11OUT      0x20
17854 #define _PWM11CON_EN            0x80
17855 #define _PWM11CON_PWM11EN       0x80
17856 
17857 //==============================================================================
17858 
17859 
17860 //==============================================================================
17861 //        PWM11INTCON Bits
17862 
17863 extern __at(0x0DBC) __sfr PWM11INTCON;
17864 
17865 typedef union
17866   {
17867   struct
17868     {
17869     unsigned PRIE               : 1;
17870     unsigned DCIE               : 1;
17871     unsigned PHIE               : 1;
17872     unsigned OFIE               : 1;
17873     unsigned                    : 1;
17874     unsigned                    : 1;
17875     unsigned                    : 1;
17876     unsigned                    : 1;
17877     };
17878 
17879   struct
17880     {
17881     unsigned PWM11PRIE          : 1;
17882     unsigned PWM11DCIE          : 1;
17883     unsigned PWM11PHIE          : 1;
17884     unsigned PWM11OFIE          : 1;
17885     unsigned                    : 1;
17886     unsigned                    : 1;
17887     unsigned                    : 1;
17888     unsigned                    : 1;
17889     };
17890   } __PWM11INTCONbits_t;
17891 
17892 extern __at(0x0DBC) volatile __PWM11INTCONbits_t PWM11INTCONbits;
17893 
17894 #define _PWM11INTCON_PRIE       0x01
17895 #define _PWM11INTCON_PWM11PRIE  0x01
17896 #define _PWM11INTCON_DCIE       0x02
17897 #define _PWM11INTCON_PWM11DCIE  0x02
17898 #define _PWM11INTCON_PHIE       0x04
17899 #define _PWM11INTCON_PWM11PHIE  0x04
17900 #define _PWM11INTCON_OFIE       0x08
17901 #define _PWM11INTCON_PWM11OFIE  0x08
17902 
17903 //==============================================================================
17904 
17905 
17906 //==============================================================================
17907 //        PWM11INTE Bits
17908 
17909 extern __at(0x0DBC) __sfr PWM11INTE;
17910 
17911 typedef union
17912   {
17913   struct
17914     {
17915     unsigned PRIE               : 1;
17916     unsigned DCIE               : 1;
17917     unsigned PHIE               : 1;
17918     unsigned OFIE               : 1;
17919     unsigned                    : 1;
17920     unsigned                    : 1;
17921     unsigned                    : 1;
17922     unsigned                    : 1;
17923     };
17924 
17925   struct
17926     {
17927     unsigned PWM11PRIE          : 1;
17928     unsigned PWM11DCIE          : 1;
17929     unsigned PWM11PHIE          : 1;
17930     unsigned PWM11OFIE          : 1;
17931     unsigned                    : 1;
17932     unsigned                    : 1;
17933     unsigned                    : 1;
17934     unsigned                    : 1;
17935     };
17936   } __PWM11INTEbits_t;
17937 
17938 extern __at(0x0DBC) volatile __PWM11INTEbits_t PWM11INTEbits;
17939 
17940 #define _PWM11INTE_PRIE         0x01
17941 #define _PWM11INTE_PWM11PRIE    0x01
17942 #define _PWM11INTE_DCIE         0x02
17943 #define _PWM11INTE_PWM11DCIE    0x02
17944 #define _PWM11INTE_PHIE         0x04
17945 #define _PWM11INTE_PWM11PHIE    0x04
17946 #define _PWM11INTE_OFIE         0x08
17947 #define _PWM11INTE_PWM11OFIE    0x08
17948 
17949 //==============================================================================
17950 
17951 
17952 //==============================================================================
17953 //        PWM11INTF Bits
17954 
17955 extern __at(0x0DBD) __sfr PWM11INTF;
17956 
17957 typedef union
17958   {
17959   struct
17960     {
17961     unsigned PRIF               : 1;
17962     unsigned DCIF               : 1;
17963     unsigned PHIF               : 1;
17964     unsigned OFIF               : 1;
17965     unsigned                    : 1;
17966     unsigned                    : 1;
17967     unsigned                    : 1;
17968     unsigned                    : 1;
17969     };
17970 
17971   struct
17972     {
17973     unsigned PWM11PRIF          : 1;
17974     unsigned PWM11DCIF          : 1;
17975     unsigned PWM11PHIF          : 1;
17976     unsigned PWM11OFIF          : 1;
17977     unsigned                    : 1;
17978     unsigned                    : 1;
17979     unsigned                    : 1;
17980     unsigned                    : 1;
17981     };
17982   } __PWM11INTFbits_t;
17983 
17984 extern __at(0x0DBD) volatile __PWM11INTFbits_t PWM11INTFbits;
17985 
17986 #define _PWM11INTF_PRIF         0x01
17987 #define _PWM11INTF_PWM11PRIF    0x01
17988 #define _PWM11INTF_DCIF         0x02
17989 #define _PWM11INTF_PWM11DCIF    0x02
17990 #define _PWM11INTF_PHIF         0x04
17991 #define _PWM11INTF_PWM11PHIF    0x04
17992 #define _PWM11INTF_OFIF         0x08
17993 #define _PWM11INTF_PWM11OFIF    0x08
17994 
17995 //==============================================================================
17996 
17997 
17998 //==============================================================================
17999 //        PWM11INTFLG Bits
18000 
18001 extern __at(0x0DBD) __sfr PWM11INTFLG;
18002 
18003 typedef union
18004   {
18005   struct
18006     {
18007     unsigned PRIF               : 1;
18008     unsigned DCIF               : 1;
18009     unsigned PHIF               : 1;
18010     unsigned OFIF               : 1;
18011     unsigned                    : 1;
18012     unsigned                    : 1;
18013     unsigned                    : 1;
18014     unsigned                    : 1;
18015     };
18016 
18017   struct
18018     {
18019     unsigned PWM11PRIF          : 1;
18020     unsigned PWM11DCIF          : 1;
18021     unsigned PWM11PHIF          : 1;
18022     unsigned PWM11OFIF          : 1;
18023     unsigned                    : 1;
18024     unsigned                    : 1;
18025     unsigned                    : 1;
18026     unsigned                    : 1;
18027     };
18028   } __PWM11INTFLGbits_t;
18029 
18030 extern __at(0x0DBD) volatile __PWM11INTFLGbits_t PWM11INTFLGbits;
18031 
18032 #define _PWM11INTFLG_PRIF       0x01
18033 #define _PWM11INTFLG_PWM11PRIF  0x01
18034 #define _PWM11INTFLG_DCIF       0x02
18035 #define _PWM11INTFLG_PWM11DCIF  0x02
18036 #define _PWM11INTFLG_PHIF       0x04
18037 #define _PWM11INTFLG_PWM11PHIF  0x04
18038 #define _PWM11INTFLG_OFIF       0x08
18039 #define _PWM11INTFLG_PWM11OFIF  0x08
18040 
18041 //==============================================================================
18042 
18043 
18044 //==============================================================================
18045 //        PWM11CLKCON Bits
18046 
18047 extern __at(0x0DBE) __sfr PWM11CLKCON;
18048 
18049 typedef union
18050   {
18051   struct
18052     {
18053     unsigned PWM11CS0           : 1;
18054     unsigned PWM11CS1           : 1;
18055     unsigned PWM11CS2           : 1;
18056     unsigned                    : 1;
18057     unsigned PWM11PS0           : 1;
18058     unsigned PWM11PS1           : 1;
18059     unsigned PWM11PS2           : 1;
18060     unsigned                    : 1;
18061     };
18062 
18063   struct
18064     {
18065     unsigned CS0                : 1;
18066     unsigned CS1                : 1;
18067     unsigned CS2                : 1;
18068     unsigned                    : 1;
18069     unsigned PS0                : 1;
18070     unsigned PS1                : 1;
18071     unsigned PS2                : 1;
18072     unsigned                    : 1;
18073     };
18074 
18075   struct
18076     {
18077     unsigned CS                 : 3;
18078     unsigned                    : 5;
18079     };
18080 
18081   struct
18082     {
18083     unsigned PWM11CS            : 3;
18084     unsigned                    : 5;
18085     };
18086 
18087   struct
18088     {
18089     unsigned                    : 4;
18090     unsigned PWM11PS            : 3;
18091     unsigned                    : 1;
18092     };
18093 
18094   struct
18095     {
18096     unsigned                    : 4;
18097     unsigned PS                 : 3;
18098     unsigned                    : 1;
18099     };
18100   } __PWM11CLKCONbits_t;
18101 
18102 extern __at(0x0DBE) volatile __PWM11CLKCONbits_t PWM11CLKCONbits;
18103 
18104 #define _PWM11CLKCON_PWM11CS0   0x01
18105 #define _PWM11CLKCON_CS0        0x01
18106 #define _PWM11CLKCON_PWM11CS1   0x02
18107 #define _PWM11CLKCON_CS1        0x02
18108 #define _PWM11CLKCON_PWM11CS2   0x04
18109 #define _PWM11CLKCON_CS2        0x04
18110 #define _PWM11CLKCON_PWM11PS0   0x10
18111 #define _PWM11CLKCON_PS0        0x10
18112 #define _PWM11CLKCON_PWM11PS1   0x20
18113 #define _PWM11CLKCON_PS1        0x20
18114 #define _PWM11CLKCON_PWM11PS2   0x40
18115 #define _PWM11CLKCON_PS2        0x40
18116 
18117 //==============================================================================
18118 
18119 
18120 //==============================================================================
18121 //        PWM11LDCON Bits
18122 
18123 extern __at(0x0DBF) __sfr PWM11LDCON;
18124 
18125 typedef union
18126   {
18127   struct
18128     {
18129     unsigned PWM11LDS0          : 1;
18130     unsigned PWM11LDS1          : 1;
18131     unsigned                    : 1;
18132     unsigned                    : 1;
18133     unsigned                    : 1;
18134     unsigned                    : 1;
18135     unsigned LDT                : 1;
18136     unsigned LDA                : 1;
18137     };
18138 
18139   struct
18140     {
18141     unsigned LDS0               : 1;
18142     unsigned LDS1               : 1;
18143     unsigned                    : 1;
18144     unsigned                    : 1;
18145     unsigned                    : 1;
18146     unsigned                    : 1;
18147     unsigned PWM11LDM           : 1;
18148     unsigned PWM11LD            : 1;
18149     };
18150 
18151   struct
18152     {
18153     unsigned PWM11LDS           : 2;
18154     unsigned                    : 6;
18155     };
18156 
18157   struct
18158     {
18159     unsigned LDS                : 2;
18160     unsigned                    : 6;
18161     };
18162   } __PWM11LDCONbits_t;
18163 
18164 extern __at(0x0DBF) volatile __PWM11LDCONbits_t PWM11LDCONbits;
18165 
18166 #define _PWM11LDCON_PWM11LDS0   0x01
18167 #define _PWM11LDCON_LDS0        0x01
18168 #define _PWM11LDCON_PWM11LDS1   0x02
18169 #define _PWM11LDCON_LDS1        0x02
18170 #define _PWM11LDCON_LDT         0x40
18171 #define _PWM11LDCON_PWM11LDM    0x40
18172 #define _PWM11LDCON_LDA         0x80
18173 #define _PWM11LDCON_PWM11LD     0x80
18174 
18175 //==============================================================================
18176 
18177 
18178 //==============================================================================
18179 //        PWM11OFCON Bits
18180 
18181 extern __at(0x0DC0) __sfr PWM11OFCON;
18182 
18183 typedef union
18184   {
18185   struct
18186     {
18187     unsigned PWM11OFS0          : 1;
18188     unsigned PWM11OFS1          : 1;
18189     unsigned                    : 1;
18190     unsigned                    : 1;
18191     unsigned OFO                : 1;
18192     unsigned PWM11OFM0          : 1;
18193     unsigned PWM11OFM1          : 1;
18194     unsigned                    : 1;
18195     };
18196 
18197   struct
18198     {
18199     unsigned OFS0               : 1;
18200     unsigned OFS1               : 1;
18201     unsigned                    : 1;
18202     unsigned                    : 1;
18203     unsigned PWM11OFMC          : 1;
18204     unsigned OFM0               : 1;
18205     unsigned OFM1               : 1;
18206     unsigned                    : 1;
18207     };
18208 
18209   struct
18210     {
18211     unsigned PWM11OFS           : 2;
18212     unsigned                    : 6;
18213     };
18214 
18215   struct
18216     {
18217     unsigned OFS                : 2;
18218     unsigned                    : 6;
18219     };
18220 
18221   struct
18222     {
18223     unsigned                    : 5;
18224     unsigned PWM11OFM           : 2;
18225     unsigned                    : 1;
18226     };
18227 
18228   struct
18229     {
18230     unsigned                    : 5;
18231     unsigned OFM                : 2;
18232     unsigned                    : 1;
18233     };
18234   } __PWM11OFCONbits_t;
18235 
18236 extern __at(0x0DC0) volatile __PWM11OFCONbits_t PWM11OFCONbits;
18237 
18238 #define _PWM11OFCON_PWM11OFS0   0x01
18239 #define _PWM11OFCON_OFS0        0x01
18240 #define _PWM11OFCON_PWM11OFS1   0x02
18241 #define _PWM11OFCON_OFS1        0x02
18242 #define _PWM11OFCON_OFO         0x10
18243 #define _PWM11OFCON_PWM11OFMC   0x10
18244 #define _PWM11OFCON_PWM11OFM0   0x20
18245 #define _PWM11OFCON_OFM0        0x20
18246 #define _PWM11OFCON_PWM11OFM1   0x40
18247 #define _PWM11OFCON_OFM1        0x40
18248 
18249 //==============================================================================
18250 
18251 
18252 //==============================================================================
18253 //        PPSLOCK Bits
18254 
18255 extern __at(0x0E0C) __sfr PPSLOCK;
18256 
18257 typedef struct
18258   {
18259   unsigned PPSLOCKED            : 1;
18260   unsigned                      : 1;
18261   unsigned                      : 1;
18262   unsigned                      : 1;
18263   unsigned                      : 1;
18264   unsigned                      : 1;
18265   unsigned                      : 1;
18266   unsigned                      : 1;
18267   } __PPSLOCKbits_t;
18268 
18269 extern __at(0x0E0C) volatile __PPSLOCKbits_t PPSLOCKbits;
18270 
18271 #define _PPSLOCKED              0x01
18272 
18273 //==============================================================================
18274 
18275 extern __at(0x0E0D) __sfr INTPPS;
18276 extern __at(0x0E0E) __sfr T0CKIPPS;
18277 extern __at(0x0E0F) __sfr T1CKIPPS;
18278 extern __at(0x0E10) __sfr T1GPPS;
18279 extern __at(0x0E11) __sfr T3CKIPPS;
18280 extern __at(0x0E12) __sfr T3GPPS;
18281 extern __at(0x0E13) __sfr T5CKIPPS;
18282 extern __at(0x0E14) __sfr T5GPPS;
18283 extern __at(0x0E15) __sfr T2CKIPPS;
18284 extern __at(0x0E16) __sfr T4CKIPPS;
18285 extern __at(0x0E17) __sfr T6CKIPPS;
18286 extern __at(0x0E18) __sfr T8CKIPPS;
18287 extern __at(0x0E19) __sfr CCP1PPS;
18288 extern __at(0x0E1A) __sfr CCP2PPS;
18289 extern __at(0x0E1B) __sfr CCP7PPS;
18290 extern __at(0x0E1D) __sfr COG1INPPS;
18291 extern __at(0x0E1E) __sfr COG2INPPS;
18292 extern __at(0x0E1F) __sfr COG3INPPS;
18293 extern __at(0x0E21) __sfr MD1CLPPS;
18294 extern __at(0x0E22) __sfr MD1CHPPS;
18295 extern __at(0x0E23) __sfr MD1MODPPS;
18296 extern __at(0x0E24) __sfr MD2CLPPS;
18297 extern __at(0x0E25) __sfr MD2CHPPS;
18298 extern __at(0x0E26) __sfr MD2MODPPS;
18299 extern __at(0x0E27) __sfr MD3CLPPS;
18300 extern __at(0x0E28) __sfr MD3CHPPS;
18301 extern __at(0x0E29) __sfr MD3MODPPS;
18302 extern __at(0x0E2D) __sfr PRG1RPPS;
18303 extern __at(0x0E2E) __sfr PRG1FPPS;
18304 extern __at(0x0E2F) __sfr PRG2RPPS;
18305 extern __at(0x0E30) __sfr PRG2FPPS;
18306 extern __at(0x0E31) __sfr PRG3RPPS;
18307 extern __at(0x0E32) __sfr PRG3FPPS;
18308 extern __at(0x0E35) __sfr CLCIN0PPS;
18309 extern __at(0x0E36) __sfr CLCIN1PPS;
18310 extern __at(0x0E37) __sfr CLCIN2PPS;
18311 extern __at(0x0E38) __sfr CLCIN3PPS;
18312 extern __at(0x0E39) __sfr ADCACTPPS;
18313 extern __at(0x0E3A) __sfr SSPCLKPPS;
18314 extern __at(0x0E3B) __sfr SSPDATPPS;
18315 extern __at(0x0E3C) __sfr SSPSSPPS;
18316 extern __at(0x0E3D) __sfr RXPPS;
18317 extern __at(0x0E3E) __sfr CKPPS;
18318 extern __at(0x0E90) __sfr RA0PPS;
18319 extern __at(0x0E91) __sfr RA1PPS;
18320 extern __at(0x0E92) __sfr RA2PPS;
18321 extern __at(0x0E93) __sfr RA3PPS;
18322 extern __at(0x0E94) __sfr RA4PPS;
18323 extern __at(0x0E95) __sfr RA5PPS;
18324 extern __at(0x0E96) __sfr RA6PPS;
18325 extern __at(0x0E97) __sfr RA7PPS;
18326 extern __at(0x0E98) __sfr RB0PPS;
18327 extern __at(0x0E99) __sfr RB1PPS;
18328 extern __at(0x0E9A) __sfr RB2PPS;
18329 extern __at(0x0E9B) __sfr RB3PPS;
18330 extern __at(0x0E9C) __sfr RB4PPS;
18331 extern __at(0x0E9D) __sfr RB5PPS;
18332 extern __at(0x0E9E) __sfr RB6PPS;
18333 extern __at(0x0E9F) __sfr RB7PPS;
18334 extern __at(0x0EA0) __sfr RC0PPS;
18335 extern __at(0x0EA1) __sfr RC1PPS;
18336 extern __at(0x0EA2) __sfr RC2PPS;
18337 extern __at(0x0EA3) __sfr RC3PPS;
18338 extern __at(0x0EA4) __sfr RC4PPS;
18339 extern __at(0x0EA5) __sfr RC5PPS;
18340 extern __at(0x0EA6) __sfr RC6PPS;
18341 extern __at(0x0EA7) __sfr RC7PPS;
18342 
18343 //==============================================================================
18344 //        CLCDATA Bits
18345 
18346 extern __at(0x0F0F) __sfr CLCDATA;
18347 
18348 typedef struct
18349   {
18350   unsigned MCLC1OUT             : 1;
18351   unsigned MCLC2OUT             : 1;
18352   unsigned MCLC3OUT             : 1;
18353   unsigned MLC4OUT              : 1;
18354   unsigned                      : 1;
18355   unsigned                      : 1;
18356   unsigned                      : 1;
18357   unsigned                      : 1;
18358   } __CLCDATAbits_t;
18359 
18360 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
18361 
18362 #define _MCLC1OUT               0x01
18363 #define _MCLC2OUT               0x02
18364 #define _MCLC3OUT               0x04
18365 #define _MLC4OUT                0x08
18366 
18367 //==============================================================================
18368 
18369 
18370 //==============================================================================
18371 //        CLC1CON Bits
18372 
18373 extern __at(0x0F10) __sfr CLC1CON;
18374 
18375 typedef union
18376   {
18377   struct
18378     {
18379     unsigned LC1MODE0           : 1;
18380     unsigned LC1MODE1           : 1;
18381     unsigned LC1MODE2           : 1;
18382     unsigned LC1INTN            : 1;
18383     unsigned LC1INTP            : 1;
18384     unsigned LC1OUT             : 1;
18385     unsigned                    : 1;
18386     unsigned LC1EN              : 1;
18387     };
18388 
18389   struct
18390     {
18391     unsigned MODE0              : 1;
18392     unsigned MODE1              : 1;
18393     unsigned MODE2              : 1;
18394     unsigned INTN               : 1;
18395     unsigned INTP               : 1;
18396     unsigned OUT                : 1;
18397     unsigned                    : 1;
18398     unsigned EN                 : 1;
18399     };
18400 
18401   struct
18402     {
18403     unsigned MODE               : 3;
18404     unsigned                    : 5;
18405     };
18406 
18407   struct
18408     {
18409     unsigned LC1MODE            : 3;
18410     unsigned                    : 5;
18411     };
18412   } __CLC1CONbits_t;
18413 
18414 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
18415 
18416 #define _CLC1CON_LC1MODE0       0x01
18417 #define _CLC1CON_MODE0          0x01
18418 #define _CLC1CON_LC1MODE1       0x02
18419 #define _CLC1CON_MODE1          0x02
18420 #define _CLC1CON_LC1MODE2       0x04
18421 #define _CLC1CON_MODE2          0x04
18422 #define _CLC1CON_LC1INTN        0x08
18423 #define _CLC1CON_INTN           0x08
18424 #define _CLC1CON_LC1INTP        0x10
18425 #define _CLC1CON_INTP           0x10
18426 #define _CLC1CON_LC1OUT         0x20
18427 #define _CLC1CON_OUT            0x20
18428 #define _CLC1CON_LC1EN          0x80
18429 #define _CLC1CON_EN             0x80
18430 
18431 //==============================================================================
18432 
18433 
18434 //==============================================================================
18435 //        CLC1POL Bits
18436 
18437 extern __at(0x0F11) __sfr CLC1POL;
18438 
18439 typedef union
18440   {
18441   struct
18442     {
18443     unsigned LC1G1POL           : 1;
18444     unsigned LC1G2POL           : 1;
18445     unsigned LC1G3POL           : 1;
18446     unsigned LC1G4POL           : 1;
18447     unsigned                    : 1;
18448     unsigned                    : 1;
18449     unsigned                    : 1;
18450     unsigned LC1POL             : 1;
18451     };
18452 
18453   struct
18454     {
18455     unsigned G1POL              : 1;
18456     unsigned G2POL              : 1;
18457     unsigned G3POL              : 1;
18458     unsigned G4POL              : 1;
18459     unsigned                    : 1;
18460     unsigned                    : 1;
18461     unsigned                    : 1;
18462     unsigned POL                : 1;
18463     };
18464   } __CLC1POLbits_t;
18465 
18466 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
18467 
18468 #define _LC1G1POL               0x01
18469 #define _G1POL                  0x01
18470 #define _LC1G2POL               0x02
18471 #define _G2POL                  0x02
18472 #define _LC1G3POL               0x04
18473 #define _G3POL                  0x04
18474 #define _LC1G4POL               0x08
18475 #define _G4POL                  0x08
18476 #define _LC1POL                 0x80
18477 #define _POL                    0x80
18478 
18479 //==============================================================================
18480 
18481 
18482 //==============================================================================
18483 //        CLC1SEL0 Bits
18484 
18485 extern __at(0x0F12) __sfr CLC1SEL0;
18486 
18487 typedef union
18488   {
18489   struct
18490     {
18491     unsigned LC1D1S0            : 1;
18492     unsigned LC1D1S1            : 1;
18493     unsigned LC1D1S2            : 1;
18494     unsigned LC1D1S3            : 1;
18495     unsigned LC1D1S4            : 1;
18496     unsigned LC1D1S5            : 1;
18497     unsigned                    : 1;
18498     unsigned                    : 1;
18499     };
18500 
18501   struct
18502     {
18503     unsigned D1S0               : 1;
18504     unsigned D1S1               : 1;
18505     unsigned D1S2               : 1;
18506     unsigned D1S3               : 1;
18507     unsigned D1S4               : 1;
18508     unsigned D1S5               : 1;
18509     unsigned                    : 1;
18510     unsigned                    : 1;
18511     };
18512 
18513   struct
18514     {
18515     unsigned D1S                : 6;
18516     unsigned                    : 2;
18517     };
18518 
18519   struct
18520     {
18521     unsigned LC1D1S             : 6;
18522     unsigned                    : 2;
18523     };
18524   } __CLC1SEL0bits_t;
18525 
18526 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
18527 
18528 #define _LC1D1S0                0x01
18529 #define _D1S0                   0x01
18530 #define _LC1D1S1                0x02
18531 #define _D1S1                   0x02
18532 #define _LC1D1S2                0x04
18533 #define _D1S2                   0x04
18534 #define _LC1D1S3                0x08
18535 #define _D1S3                   0x08
18536 #define _LC1D1S4                0x10
18537 #define _D1S4                   0x10
18538 #define _LC1D1S5                0x20
18539 #define _D1S5                   0x20
18540 
18541 //==============================================================================
18542 
18543 
18544 //==============================================================================
18545 //        CLC1SEL1 Bits
18546 
18547 extern __at(0x0F13) __sfr CLC1SEL1;
18548 
18549 typedef union
18550   {
18551   struct
18552     {
18553     unsigned LC1D2S0            : 1;
18554     unsigned LC1D2S1            : 1;
18555     unsigned LC1D2S2            : 1;
18556     unsigned LC1D2S3            : 1;
18557     unsigned LC1D2S4            : 1;
18558     unsigned LC1D2S5            : 1;
18559     unsigned                    : 1;
18560     unsigned                    : 1;
18561     };
18562 
18563   struct
18564     {
18565     unsigned D2S0               : 1;
18566     unsigned D2S1               : 1;
18567     unsigned D2S2               : 1;
18568     unsigned D2S3               : 1;
18569     unsigned D2S4               : 1;
18570     unsigned D2S5               : 1;
18571     unsigned                    : 1;
18572     unsigned                    : 1;
18573     };
18574 
18575   struct
18576     {
18577     unsigned LC1D2S             : 6;
18578     unsigned                    : 2;
18579     };
18580 
18581   struct
18582     {
18583     unsigned D2S                : 6;
18584     unsigned                    : 2;
18585     };
18586   } __CLC1SEL1bits_t;
18587 
18588 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
18589 
18590 #define _LC1D2S0                0x01
18591 #define _D2S0                   0x01
18592 #define _LC1D2S1                0x02
18593 #define _D2S1                   0x02
18594 #define _LC1D2S2                0x04
18595 #define _D2S2                   0x04
18596 #define _LC1D2S3                0x08
18597 #define _D2S3                   0x08
18598 #define _LC1D2S4                0x10
18599 #define _D2S4                   0x10
18600 #define _LC1D2S5                0x20
18601 #define _D2S5                   0x20
18602 
18603 //==============================================================================
18604 
18605 
18606 //==============================================================================
18607 //        CLC1SEL2 Bits
18608 
18609 extern __at(0x0F14) __sfr CLC1SEL2;
18610 
18611 typedef union
18612   {
18613   struct
18614     {
18615     unsigned LC1D3S0            : 1;
18616     unsigned LC1D3S1            : 1;
18617     unsigned LC1D3S2            : 1;
18618     unsigned LC1D3S3            : 1;
18619     unsigned LC1D3S4            : 1;
18620     unsigned LC1D3S5            : 1;
18621     unsigned                    : 1;
18622     unsigned                    : 1;
18623     };
18624 
18625   struct
18626     {
18627     unsigned D3S0               : 1;
18628     unsigned D3S1               : 1;
18629     unsigned D3S2               : 1;
18630     unsigned D3S3               : 1;
18631     unsigned D3S4               : 1;
18632     unsigned D3S5               : 1;
18633     unsigned                    : 1;
18634     unsigned                    : 1;
18635     };
18636 
18637   struct
18638     {
18639     unsigned LC1D3S             : 6;
18640     unsigned                    : 2;
18641     };
18642 
18643   struct
18644     {
18645     unsigned D3S                : 6;
18646     unsigned                    : 2;
18647     };
18648   } __CLC1SEL2bits_t;
18649 
18650 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
18651 
18652 #define _LC1D3S0                0x01
18653 #define _D3S0                   0x01
18654 #define _LC1D3S1                0x02
18655 #define _D3S1                   0x02
18656 #define _LC1D3S2                0x04
18657 #define _D3S2                   0x04
18658 #define _LC1D3S3                0x08
18659 #define _D3S3                   0x08
18660 #define _LC1D3S4                0x10
18661 #define _D3S4                   0x10
18662 #define _LC1D3S5                0x20
18663 #define _D3S5                   0x20
18664 
18665 //==============================================================================
18666 
18667 
18668 //==============================================================================
18669 //        CLC1SEL3 Bits
18670 
18671 extern __at(0x0F15) __sfr CLC1SEL3;
18672 
18673 typedef union
18674   {
18675   struct
18676     {
18677     unsigned LC1D4S0            : 1;
18678     unsigned LC1D4S1            : 1;
18679     unsigned LC1D4S2            : 1;
18680     unsigned LC1D4S3            : 1;
18681     unsigned LC1D4S4            : 1;
18682     unsigned LC1D4S5            : 1;
18683     unsigned                    : 1;
18684     unsigned                    : 1;
18685     };
18686 
18687   struct
18688     {
18689     unsigned D4S0               : 1;
18690     unsigned D4S1               : 1;
18691     unsigned D4S2               : 1;
18692     unsigned D4S3               : 1;
18693     unsigned D4S4               : 1;
18694     unsigned D4S5               : 1;
18695     unsigned                    : 1;
18696     unsigned                    : 1;
18697     };
18698 
18699   struct
18700     {
18701     unsigned LC1D4S             : 6;
18702     unsigned                    : 2;
18703     };
18704 
18705   struct
18706     {
18707     unsigned D4S                : 6;
18708     unsigned                    : 2;
18709     };
18710   } __CLC1SEL3bits_t;
18711 
18712 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
18713 
18714 #define _LC1D4S0                0x01
18715 #define _D4S0                   0x01
18716 #define _LC1D4S1                0x02
18717 #define _D4S1                   0x02
18718 #define _LC1D4S2                0x04
18719 #define _D4S2                   0x04
18720 #define _LC1D4S3                0x08
18721 #define _D4S3                   0x08
18722 #define _LC1D4S4                0x10
18723 #define _D4S4                   0x10
18724 #define _LC1D4S5                0x20
18725 #define _D4S5                   0x20
18726 
18727 //==============================================================================
18728 
18729 
18730 //==============================================================================
18731 //        CLC1GLS0 Bits
18732 
18733 extern __at(0x0F16) __sfr CLC1GLS0;
18734 
18735 typedef union
18736   {
18737   struct
18738     {
18739     unsigned LC1G1D1N           : 1;
18740     unsigned LC1G1D1T           : 1;
18741     unsigned LC1G1D2N           : 1;
18742     unsigned LC1G1D2T           : 1;
18743     unsigned LC1G1D3N           : 1;
18744     unsigned LC1G1D3T           : 1;
18745     unsigned LC1G1D4N           : 1;
18746     unsigned LC1G1D4T           : 1;
18747     };
18748 
18749   struct
18750     {
18751     unsigned D1N                : 1;
18752     unsigned D1T                : 1;
18753     unsigned D2N                : 1;
18754     unsigned D2T                : 1;
18755     unsigned D3N                : 1;
18756     unsigned D3T                : 1;
18757     unsigned D4N                : 1;
18758     unsigned D4T                : 1;
18759     };
18760   } __CLC1GLS0bits_t;
18761 
18762 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
18763 
18764 #define _LC1G1D1N               0x01
18765 #define _D1N                    0x01
18766 #define _LC1G1D1T               0x02
18767 #define _D1T                    0x02
18768 #define _LC1G1D2N               0x04
18769 #define _D2N                    0x04
18770 #define _LC1G1D2T               0x08
18771 #define _D2T                    0x08
18772 #define _LC1G1D3N               0x10
18773 #define _D3N                    0x10
18774 #define _LC1G1D3T               0x20
18775 #define _D3T                    0x20
18776 #define _LC1G1D4N               0x40
18777 #define _D4N                    0x40
18778 #define _LC1G1D4T               0x80
18779 #define _D4T                    0x80
18780 
18781 //==============================================================================
18782 
18783 
18784 //==============================================================================
18785 //        CLC1GLS1 Bits
18786 
18787 extern __at(0x0F17) __sfr CLC1GLS1;
18788 
18789 typedef union
18790   {
18791   struct
18792     {
18793     unsigned LC1G2D1N           : 1;
18794     unsigned LC1G2D1T           : 1;
18795     unsigned LC1G2D2N           : 1;
18796     unsigned LC1G2D2T           : 1;
18797     unsigned LC1G2D3N           : 1;
18798     unsigned LC1G2D3T           : 1;
18799     unsigned LC1G2D4N           : 1;
18800     unsigned LC1G2D4T           : 1;
18801     };
18802 
18803   struct
18804     {
18805     unsigned D1N                : 1;
18806     unsigned D1T                : 1;
18807     unsigned D2N                : 1;
18808     unsigned D2T                : 1;
18809     unsigned D3N                : 1;
18810     unsigned D3T                : 1;
18811     unsigned D4N                : 1;
18812     unsigned D4T                : 1;
18813     };
18814   } __CLC1GLS1bits_t;
18815 
18816 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
18817 
18818 #define _CLC1GLS1_LC1G2D1N      0x01
18819 #define _CLC1GLS1_D1N           0x01
18820 #define _CLC1GLS1_LC1G2D1T      0x02
18821 #define _CLC1GLS1_D1T           0x02
18822 #define _CLC1GLS1_LC1G2D2N      0x04
18823 #define _CLC1GLS1_D2N           0x04
18824 #define _CLC1GLS1_LC1G2D2T      0x08
18825 #define _CLC1GLS1_D2T           0x08
18826 #define _CLC1GLS1_LC1G2D3N      0x10
18827 #define _CLC1GLS1_D3N           0x10
18828 #define _CLC1GLS1_LC1G2D3T      0x20
18829 #define _CLC1GLS1_D3T           0x20
18830 #define _CLC1GLS1_LC1G2D4N      0x40
18831 #define _CLC1GLS1_D4N           0x40
18832 #define _CLC1GLS1_LC1G2D4T      0x80
18833 #define _CLC1GLS1_D4T           0x80
18834 
18835 //==============================================================================
18836 
18837 
18838 //==============================================================================
18839 //        CLC1GLS2 Bits
18840 
18841 extern __at(0x0F18) __sfr CLC1GLS2;
18842 
18843 typedef union
18844   {
18845   struct
18846     {
18847     unsigned LC1G3D1N           : 1;
18848     unsigned LC1G3D1T           : 1;
18849     unsigned LC1G3D2N           : 1;
18850     unsigned LC1G3D2T           : 1;
18851     unsigned LC1G3D3N           : 1;
18852     unsigned LC1G3D3T           : 1;
18853     unsigned LC1G3D4N           : 1;
18854     unsigned LC1G3D4T           : 1;
18855     };
18856 
18857   struct
18858     {
18859     unsigned D1N                : 1;
18860     unsigned D1T                : 1;
18861     unsigned D2N                : 1;
18862     unsigned D2T                : 1;
18863     unsigned D3N                : 1;
18864     unsigned D3T                : 1;
18865     unsigned D4N                : 1;
18866     unsigned D4T                : 1;
18867     };
18868   } __CLC1GLS2bits_t;
18869 
18870 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
18871 
18872 #define _CLC1GLS2_LC1G3D1N      0x01
18873 #define _CLC1GLS2_D1N           0x01
18874 #define _CLC1GLS2_LC1G3D1T      0x02
18875 #define _CLC1GLS2_D1T           0x02
18876 #define _CLC1GLS2_LC1G3D2N      0x04
18877 #define _CLC1GLS2_D2N           0x04
18878 #define _CLC1GLS2_LC1G3D2T      0x08
18879 #define _CLC1GLS2_D2T           0x08
18880 #define _CLC1GLS2_LC1G3D3N      0x10
18881 #define _CLC1GLS2_D3N           0x10
18882 #define _CLC1GLS2_LC1G3D3T      0x20
18883 #define _CLC1GLS2_D3T           0x20
18884 #define _CLC1GLS2_LC1G3D4N      0x40
18885 #define _CLC1GLS2_D4N           0x40
18886 #define _CLC1GLS2_LC1G3D4T      0x80
18887 #define _CLC1GLS2_D4T           0x80
18888 
18889 //==============================================================================
18890 
18891 
18892 //==============================================================================
18893 //        CLC1GLS3 Bits
18894 
18895 extern __at(0x0F19) __sfr CLC1GLS3;
18896 
18897 typedef union
18898   {
18899   struct
18900     {
18901     unsigned LC1G4D1N           : 1;
18902     unsigned LC1G4D1T           : 1;
18903     unsigned LC1G4D2N           : 1;
18904     unsigned LC1G4D2T           : 1;
18905     unsigned LC1G4D3N           : 1;
18906     unsigned LC1G4D3T           : 1;
18907     unsigned LC1G4D4N           : 1;
18908     unsigned LC1G4D4T           : 1;
18909     };
18910 
18911   struct
18912     {
18913     unsigned G4D1N              : 1;
18914     unsigned G4D1T              : 1;
18915     unsigned G4D2N              : 1;
18916     unsigned G4D2T              : 1;
18917     unsigned G4D3N              : 1;
18918     unsigned G4D3T              : 1;
18919     unsigned G4D4N              : 1;
18920     unsigned G4D4T              : 1;
18921     };
18922   } __CLC1GLS3bits_t;
18923 
18924 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
18925 
18926 #define _LC1G4D1N               0x01
18927 #define _G4D1N                  0x01
18928 #define _LC1G4D1T               0x02
18929 #define _G4D1T                  0x02
18930 #define _LC1G4D2N               0x04
18931 #define _G4D2N                  0x04
18932 #define _LC1G4D2T               0x08
18933 #define _G4D2T                  0x08
18934 #define _LC1G4D3N               0x10
18935 #define _G4D3N                  0x10
18936 #define _LC1G4D3T               0x20
18937 #define _G4D3T                  0x20
18938 #define _LC1G4D4N               0x40
18939 #define _G4D4N                  0x40
18940 #define _LC1G4D4T               0x80
18941 #define _G4D4T                  0x80
18942 
18943 //==============================================================================
18944 
18945 
18946 //==============================================================================
18947 //        CLC2CON Bits
18948 
18949 extern __at(0x0F1A) __sfr CLC2CON;
18950 
18951 typedef union
18952   {
18953   struct
18954     {
18955     unsigned LC2MODE0           : 1;
18956     unsigned LC2MODE1           : 1;
18957     unsigned LC2MODE2           : 1;
18958     unsigned LC2INTN            : 1;
18959     unsigned LC2INTP            : 1;
18960     unsigned LC2OUT             : 1;
18961     unsigned                    : 1;
18962     unsigned LC2EN              : 1;
18963     };
18964 
18965   struct
18966     {
18967     unsigned MODE0              : 1;
18968     unsigned MODE1              : 1;
18969     unsigned MODE2              : 1;
18970     unsigned INTN               : 1;
18971     unsigned INTP               : 1;
18972     unsigned OUT                : 1;
18973     unsigned                    : 1;
18974     unsigned EN                 : 1;
18975     };
18976 
18977   struct
18978     {
18979     unsigned LC2MODE            : 3;
18980     unsigned                    : 5;
18981     };
18982 
18983   struct
18984     {
18985     unsigned MODE               : 3;
18986     unsigned                    : 5;
18987     };
18988   } __CLC2CONbits_t;
18989 
18990 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
18991 
18992 #define _CLC2CON_LC2MODE0       0x01
18993 #define _CLC2CON_MODE0          0x01
18994 #define _CLC2CON_LC2MODE1       0x02
18995 #define _CLC2CON_MODE1          0x02
18996 #define _CLC2CON_LC2MODE2       0x04
18997 #define _CLC2CON_MODE2          0x04
18998 #define _CLC2CON_LC2INTN        0x08
18999 #define _CLC2CON_INTN           0x08
19000 #define _CLC2CON_LC2INTP        0x10
19001 #define _CLC2CON_INTP           0x10
19002 #define _CLC2CON_LC2OUT         0x20
19003 #define _CLC2CON_OUT            0x20
19004 #define _CLC2CON_LC2EN          0x80
19005 #define _CLC2CON_EN             0x80
19006 
19007 //==============================================================================
19008 
19009 
19010 //==============================================================================
19011 //        CLC2POL Bits
19012 
19013 extern __at(0x0F1B) __sfr CLC2POL;
19014 
19015 typedef union
19016   {
19017   struct
19018     {
19019     unsigned LC2G1POL           : 1;
19020     unsigned LC2G2POL           : 1;
19021     unsigned LC2G3POL           : 1;
19022     unsigned LC2G4POL           : 1;
19023     unsigned                    : 1;
19024     unsigned                    : 1;
19025     unsigned                    : 1;
19026     unsigned LC2POL             : 1;
19027     };
19028 
19029   struct
19030     {
19031     unsigned G1POL              : 1;
19032     unsigned G2POL              : 1;
19033     unsigned G3POL              : 1;
19034     unsigned G4POL              : 1;
19035     unsigned                    : 1;
19036     unsigned                    : 1;
19037     unsigned                    : 1;
19038     unsigned POL                : 1;
19039     };
19040   } __CLC2POLbits_t;
19041 
19042 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
19043 
19044 #define _CLC2POL_LC2G1POL       0x01
19045 #define _CLC2POL_G1POL          0x01
19046 #define _CLC2POL_LC2G2POL       0x02
19047 #define _CLC2POL_G2POL          0x02
19048 #define _CLC2POL_LC2G3POL       0x04
19049 #define _CLC2POL_G3POL          0x04
19050 #define _CLC2POL_LC2G4POL       0x08
19051 #define _CLC2POL_G4POL          0x08
19052 #define _CLC2POL_LC2POL         0x80
19053 #define _CLC2POL_POL            0x80
19054 
19055 //==============================================================================
19056 
19057 
19058 //==============================================================================
19059 //        CLC2SEL0 Bits
19060 
19061 extern __at(0x0F1C) __sfr CLC2SEL0;
19062 
19063 typedef union
19064   {
19065   struct
19066     {
19067     unsigned LC2D1S0            : 1;
19068     unsigned LC2D1S1            : 1;
19069     unsigned LC2D1S2            : 1;
19070     unsigned LC2D1S3            : 1;
19071     unsigned LC2D1S4            : 1;
19072     unsigned LC2D1S5            : 1;
19073     unsigned                    : 1;
19074     unsigned                    : 1;
19075     };
19076 
19077   struct
19078     {
19079     unsigned D1S0               : 1;
19080     unsigned D1S1               : 1;
19081     unsigned D1S2               : 1;
19082     unsigned D1S3               : 1;
19083     unsigned D1S4               : 1;
19084     unsigned D1S5               : 1;
19085     unsigned                    : 1;
19086     unsigned                    : 1;
19087     };
19088 
19089   struct
19090     {
19091     unsigned LC2D1S             : 6;
19092     unsigned                    : 2;
19093     };
19094 
19095   struct
19096     {
19097     unsigned D1S                : 6;
19098     unsigned                    : 2;
19099     };
19100   } __CLC2SEL0bits_t;
19101 
19102 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
19103 
19104 #define _CLC2SEL0_LC2D1S0       0x01
19105 #define _CLC2SEL0_D1S0          0x01
19106 #define _CLC2SEL0_LC2D1S1       0x02
19107 #define _CLC2SEL0_D1S1          0x02
19108 #define _CLC2SEL0_LC2D1S2       0x04
19109 #define _CLC2SEL0_D1S2          0x04
19110 #define _CLC2SEL0_LC2D1S3       0x08
19111 #define _CLC2SEL0_D1S3          0x08
19112 #define _CLC2SEL0_LC2D1S4       0x10
19113 #define _CLC2SEL0_D1S4          0x10
19114 #define _CLC2SEL0_LC2D1S5       0x20
19115 #define _CLC2SEL0_D1S5          0x20
19116 
19117 //==============================================================================
19118 
19119 
19120 //==============================================================================
19121 //        CLC2SEL1 Bits
19122 
19123 extern __at(0x0F1D) __sfr CLC2SEL1;
19124 
19125 typedef union
19126   {
19127   struct
19128     {
19129     unsigned LC2D2S0            : 1;
19130     unsigned LC2D2S1            : 1;
19131     unsigned LC2D2S2            : 1;
19132     unsigned LC2D2S3            : 1;
19133     unsigned LC2D2S4            : 1;
19134     unsigned LC2D2S5            : 1;
19135     unsigned                    : 1;
19136     unsigned                    : 1;
19137     };
19138 
19139   struct
19140     {
19141     unsigned D2S0               : 1;
19142     unsigned D2S1               : 1;
19143     unsigned D2S2               : 1;
19144     unsigned D2S3               : 1;
19145     unsigned D2S4               : 1;
19146     unsigned D2S5               : 1;
19147     unsigned                    : 1;
19148     unsigned                    : 1;
19149     };
19150 
19151   struct
19152     {
19153     unsigned LC2D2S             : 6;
19154     unsigned                    : 2;
19155     };
19156 
19157   struct
19158     {
19159     unsigned D2S                : 6;
19160     unsigned                    : 2;
19161     };
19162   } __CLC2SEL1bits_t;
19163 
19164 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
19165 
19166 #define _CLC2SEL1_LC2D2S0       0x01
19167 #define _CLC2SEL1_D2S0          0x01
19168 #define _CLC2SEL1_LC2D2S1       0x02
19169 #define _CLC2SEL1_D2S1          0x02
19170 #define _CLC2SEL1_LC2D2S2       0x04
19171 #define _CLC2SEL1_D2S2          0x04
19172 #define _CLC2SEL1_LC2D2S3       0x08
19173 #define _CLC2SEL1_D2S3          0x08
19174 #define _CLC2SEL1_LC2D2S4       0x10
19175 #define _CLC2SEL1_D2S4          0x10
19176 #define _CLC2SEL1_LC2D2S5       0x20
19177 #define _CLC2SEL1_D2S5          0x20
19178 
19179 //==============================================================================
19180 
19181 
19182 //==============================================================================
19183 //        CLC2SEL2 Bits
19184 
19185 extern __at(0x0F1E) __sfr CLC2SEL2;
19186 
19187 typedef union
19188   {
19189   struct
19190     {
19191     unsigned LC2D3S0            : 1;
19192     unsigned LC2D3S1            : 1;
19193     unsigned LC2D3S2            : 1;
19194     unsigned LC2D3S3            : 1;
19195     unsigned LC2D3S4            : 1;
19196     unsigned LC2D3S5            : 1;
19197     unsigned                    : 1;
19198     unsigned                    : 1;
19199     };
19200 
19201   struct
19202     {
19203     unsigned D3S0               : 1;
19204     unsigned D3S1               : 1;
19205     unsigned D3S2               : 1;
19206     unsigned D3S3               : 1;
19207     unsigned D3S4               : 1;
19208     unsigned D3S5               : 1;
19209     unsigned                    : 1;
19210     unsigned                    : 1;
19211     };
19212 
19213   struct
19214     {
19215     unsigned LC2D3S             : 6;
19216     unsigned                    : 2;
19217     };
19218 
19219   struct
19220     {
19221     unsigned D3S                : 6;
19222     unsigned                    : 2;
19223     };
19224   } __CLC2SEL2bits_t;
19225 
19226 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
19227 
19228 #define _CLC2SEL2_LC2D3S0       0x01
19229 #define _CLC2SEL2_D3S0          0x01
19230 #define _CLC2SEL2_LC2D3S1       0x02
19231 #define _CLC2SEL2_D3S1          0x02
19232 #define _CLC2SEL2_LC2D3S2       0x04
19233 #define _CLC2SEL2_D3S2          0x04
19234 #define _CLC2SEL2_LC2D3S3       0x08
19235 #define _CLC2SEL2_D3S3          0x08
19236 #define _CLC2SEL2_LC2D3S4       0x10
19237 #define _CLC2SEL2_D3S4          0x10
19238 #define _CLC2SEL2_LC2D3S5       0x20
19239 #define _CLC2SEL2_D3S5          0x20
19240 
19241 //==============================================================================
19242 
19243 
19244 //==============================================================================
19245 //        CLC2SEL3 Bits
19246 
19247 extern __at(0x0F1F) __sfr CLC2SEL3;
19248 
19249 typedef union
19250   {
19251   struct
19252     {
19253     unsigned LC2D4S0            : 1;
19254     unsigned LC2D4S1            : 1;
19255     unsigned LC2D4S2            : 1;
19256     unsigned LC2D4S3            : 1;
19257     unsigned LC2D4S4            : 1;
19258     unsigned LC2D4S5            : 1;
19259     unsigned                    : 1;
19260     unsigned                    : 1;
19261     };
19262 
19263   struct
19264     {
19265     unsigned D4S0               : 1;
19266     unsigned D4S1               : 1;
19267     unsigned D4S2               : 1;
19268     unsigned D4S3               : 1;
19269     unsigned D4S4               : 1;
19270     unsigned D4S5               : 1;
19271     unsigned                    : 1;
19272     unsigned                    : 1;
19273     };
19274 
19275   struct
19276     {
19277     unsigned LC2D4S             : 6;
19278     unsigned                    : 2;
19279     };
19280 
19281   struct
19282     {
19283     unsigned D4S                : 6;
19284     unsigned                    : 2;
19285     };
19286   } __CLC2SEL3bits_t;
19287 
19288 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
19289 
19290 #define _CLC2SEL3_LC2D4S0       0x01
19291 #define _CLC2SEL3_D4S0          0x01
19292 #define _CLC2SEL3_LC2D4S1       0x02
19293 #define _CLC2SEL3_D4S1          0x02
19294 #define _CLC2SEL3_LC2D4S2       0x04
19295 #define _CLC2SEL3_D4S2          0x04
19296 #define _CLC2SEL3_LC2D4S3       0x08
19297 #define _CLC2SEL3_D4S3          0x08
19298 #define _CLC2SEL3_LC2D4S4       0x10
19299 #define _CLC2SEL3_D4S4          0x10
19300 #define _CLC2SEL3_LC2D4S5       0x20
19301 #define _CLC2SEL3_D4S5          0x20
19302 
19303 //==============================================================================
19304 
19305 
19306 //==============================================================================
19307 //        CLC2GLS0 Bits
19308 
19309 extern __at(0x0F20) __sfr CLC2GLS0;
19310 
19311 typedef union
19312   {
19313   struct
19314     {
19315     unsigned LC2G1D1N           : 1;
19316     unsigned LC2G1D1T           : 1;
19317     unsigned LC2G1D2N           : 1;
19318     unsigned LC2G1D2T           : 1;
19319     unsigned LC2G1D3N           : 1;
19320     unsigned LC2G1D3T           : 1;
19321     unsigned LC2G1D4N           : 1;
19322     unsigned LC2G1D4T           : 1;
19323     };
19324 
19325   struct
19326     {
19327     unsigned D1N                : 1;
19328     unsigned D1T                : 1;
19329     unsigned D2N                : 1;
19330     unsigned D2T                : 1;
19331     unsigned D3N                : 1;
19332     unsigned D3T                : 1;
19333     unsigned D4N                : 1;
19334     unsigned D4T                : 1;
19335     };
19336   } __CLC2GLS0bits_t;
19337 
19338 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
19339 
19340 #define _CLC2GLS0_LC2G1D1N      0x01
19341 #define _CLC2GLS0_D1N           0x01
19342 #define _CLC2GLS0_LC2G1D1T      0x02
19343 #define _CLC2GLS0_D1T           0x02
19344 #define _CLC2GLS0_LC2G1D2N      0x04
19345 #define _CLC2GLS0_D2N           0x04
19346 #define _CLC2GLS0_LC2G1D2T      0x08
19347 #define _CLC2GLS0_D2T           0x08
19348 #define _CLC2GLS0_LC2G1D3N      0x10
19349 #define _CLC2GLS0_D3N           0x10
19350 #define _CLC2GLS0_LC2G1D3T      0x20
19351 #define _CLC2GLS0_D3T           0x20
19352 #define _CLC2GLS0_LC2G1D4N      0x40
19353 #define _CLC2GLS0_D4N           0x40
19354 #define _CLC2GLS0_LC2G1D4T      0x80
19355 #define _CLC2GLS0_D4T           0x80
19356 
19357 //==============================================================================
19358 
19359 
19360 //==============================================================================
19361 //        CLC2GLS1 Bits
19362 
19363 extern __at(0x0F21) __sfr CLC2GLS1;
19364 
19365 typedef union
19366   {
19367   struct
19368     {
19369     unsigned LC2G2D1N           : 1;
19370     unsigned LC2G2D1T           : 1;
19371     unsigned LC2G2D2N           : 1;
19372     unsigned LC2G2D2T           : 1;
19373     unsigned LC2G2D3N           : 1;
19374     unsigned LC2G2D3T           : 1;
19375     unsigned LC2G2D4N           : 1;
19376     unsigned LC2G2D4T           : 1;
19377     };
19378 
19379   struct
19380     {
19381     unsigned D1N                : 1;
19382     unsigned D1T                : 1;
19383     unsigned D2N                : 1;
19384     unsigned D2T                : 1;
19385     unsigned D3N                : 1;
19386     unsigned D3T                : 1;
19387     unsigned D4N                : 1;
19388     unsigned D4T                : 1;
19389     };
19390   } __CLC2GLS1bits_t;
19391 
19392 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
19393 
19394 #define _CLC2GLS1_LC2G2D1N      0x01
19395 #define _CLC2GLS1_D1N           0x01
19396 #define _CLC2GLS1_LC2G2D1T      0x02
19397 #define _CLC2GLS1_D1T           0x02
19398 #define _CLC2GLS1_LC2G2D2N      0x04
19399 #define _CLC2GLS1_D2N           0x04
19400 #define _CLC2GLS1_LC2G2D2T      0x08
19401 #define _CLC2GLS1_D2T           0x08
19402 #define _CLC2GLS1_LC2G2D3N      0x10
19403 #define _CLC2GLS1_D3N           0x10
19404 #define _CLC2GLS1_LC2G2D3T      0x20
19405 #define _CLC2GLS1_D3T           0x20
19406 #define _CLC2GLS1_LC2G2D4N      0x40
19407 #define _CLC2GLS1_D4N           0x40
19408 #define _CLC2GLS1_LC2G2D4T      0x80
19409 #define _CLC2GLS1_D4T           0x80
19410 
19411 //==============================================================================
19412 
19413 
19414 //==============================================================================
19415 //        CLC2GLS2 Bits
19416 
19417 extern __at(0x0F22) __sfr CLC2GLS2;
19418 
19419 typedef union
19420   {
19421   struct
19422     {
19423     unsigned LC2G3D1N           : 1;
19424     unsigned LC2G3D1T           : 1;
19425     unsigned LC2G3D2N           : 1;
19426     unsigned LC2G3D2T           : 1;
19427     unsigned LC2G3D3N           : 1;
19428     unsigned LC2G3D3T           : 1;
19429     unsigned LC2G3D4N           : 1;
19430     unsigned LC2G3D4T           : 1;
19431     };
19432 
19433   struct
19434     {
19435     unsigned D1N                : 1;
19436     unsigned D1T                : 1;
19437     unsigned D2N                : 1;
19438     unsigned D2T                : 1;
19439     unsigned D3N                : 1;
19440     unsigned D3T                : 1;
19441     unsigned D4N                : 1;
19442     unsigned D4T                : 1;
19443     };
19444   } __CLC2GLS2bits_t;
19445 
19446 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
19447 
19448 #define _CLC2GLS2_LC2G3D1N      0x01
19449 #define _CLC2GLS2_D1N           0x01
19450 #define _CLC2GLS2_LC2G3D1T      0x02
19451 #define _CLC2GLS2_D1T           0x02
19452 #define _CLC2GLS2_LC2G3D2N      0x04
19453 #define _CLC2GLS2_D2N           0x04
19454 #define _CLC2GLS2_LC2G3D2T      0x08
19455 #define _CLC2GLS2_D2T           0x08
19456 #define _CLC2GLS2_LC2G3D3N      0x10
19457 #define _CLC2GLS2_D3N           0x10
19458 #define _CLC2GLS2_LC2G3D3T      0x20
19459 #define _CLC2GLS2_D3T           0x20
19460 #define _CLC2GLS2_LC2G3D4N      0x40
19461 #define _CLC2GLS2_D4N           0x40
19462 #define _CLC2GLS2_LC2G3D4T      0x80
19463 #define _CLC2GLS2_D4T           0x80
19464 
19465 //==============================================================================
19466 
19467 
19468 //==============================================================================
19469 //        CLC2GLS3 Bits
19470 
19471 extern __at(0x0F23) __sfr CLC2GLS3;
19472 
19473 typedef union
19474   {
19475   struct
19476     {
19477     unsigned LC2G4D1N           : 1;
19478     unsigned LC2G4D1T           : 1;
19479     unsigned LC2G4D2N           : 1;
19480     unsigned LC2G4D2T           : 1;
19481     unsigned LC2G4D3N           : 1;
19482     unsigned LC2G4D3T           : 1;
19483     unsigned LC2G4D4N           : 1;
19484     unsigned LC2G4D4T           : 1;
19485     };
19486 
19487   struct
19488     {
19489     unsigned G4D1N              : 1;
19490     unsigned G4D1T              : 1;
19491     unsigned G4D2N              : 1;
19492     unsigned G4D2T              : 1;
19493     unsigned G4D3N              : 1;
19494     unsigned G4D3T              : 1;
19495     unsigned G4D4N              : 1;
19496     unsigned G4D4T              : 1;
19497     };
19498   } __CLC2GLS3bits_t;
19499 
19500 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
19501 
19502 #define _CLC2GLS3_LC2G4D1N      0x01
19503 #define _CLC2GLS3_G4D1N         0x01
19504 #define _CLC2GLS3_LC2G4D1T      0x02
19505 #define _CLC2GLS3_G4D1T         0x02
19506 #define _CLC2GLS3_LC2G4D2N      0x04
19507 #define _CLC2GLS3_G4D2N         0x04
19508 #define _CLC2GLS3_LC2G4D2T      0x08
19509 #define _CLC2GLS3_G4D2T         0x08
19510 #define _CLC2GLS3_LC2G4D3N      0x10
19511 #define _CLC2GLS3_G4D3N         0x10
19512 #define _CLC2GLS3_LC2G4D3T      0x20
19513 #define _CLC2GLS3_G4D3T         0x20
19514 #define _CLC2GLS3_LC2G4D4N      0x40
19515 #define _CLC2GLS3_G4D4N         0x40
19516 #define _CLC2GLS3_LC2G4D4T      0x80
19517 #define _CLC2GLS3_G4D4T         0x80
19518 
19519 //==============================================================================
19520 
19521 
19522 //==============================================================================
19523 //        CLC3CON Bits
19524 
19525 extern __at(0x0F24) __sfr CLC3CON;
19526 
19527 typedef union
19528   {
19529   struct
19530     {
19531     unsigned LC3MODE0           : 1;
19532     unsigned LC3MODE1           : 1;
19533     unsigned LC3MODE2           : 1;
19534     unsigned LC3INTN            : 1;
19535     unsigned LC3INTP            : 1;
19536     unsigned LC3OUT             : 1;
19537     unsigned                    : 1;
19538     unsigned LC3EN              : 1;
19539     };
19540 
19541   struct
19542     {
19543     unsigned MODE0              : 1;
19544     unsigned MODE1              : 1;
19545     unsigned MODE2              : 1;
19546     unsigned INTN               : 1;
19547     unsigned INTP               : 1;
19548     unsigned OUT                : 1;
19549     unsigned                    : 1;
19550     unsigned EN                 : 1;
19551     };
19552 
19553   struct
19554     {
19555     unsigned LC3MODE            : 3;
19556     unsigned                    : 5;
19557     };
19558 
19559   struct
19560     {
19561     unsigned MODE               : 3;
19562     unsigned                    : 5;
19563     };
19564   } __CLC3CONbits_t;
19565 
19566 extern __at(0x0F24) volatile __CLC3CONbits_t CLC3CONbits;
19567 
19568 #define _CLC3CON_LC3MODE0       0x01
19569 #define _CLC3CON_MODE0          0x01
19570 #define _CLC3CON_LC3MODE1       0x02
19571 #define _CLC3CON_MODE1          0x02
19572 #define _CLC3CON_LC3MODE2       0x04
19573 #define _CLC3CON_MODE2          0x04
19574 #define _CLC3CON_LC3INTN        0x08
19575 #define _CLC3CON_INTN           0x08
19576 #define _CLC3CON_LC3INTP        0x10
19577 #define _CLC3CON_INTP           0x10
19578 #define _CLC3CON_LC3OUT         0x20
19579 #define _CLC3CON_OUT            0x20
19580 #define _CLC3CON_LC3EN          0x80
19581 #define _CLC3CON_EN             0x80
19582 
19583 //==============================================================================
19584 
19585 
19586 //==============================================================================
19587 //        CLC3POL Bits
19588 
19589 extern __at(0x0F25) __sfr CLC3POL;
19590 
19591 typedef union
19592   {
19593   struct
19594     {
19595     unsigned LC3G1POL           : 1;
19596     unsigned LC3G2POL           : 1;
19597     unsigned LC3G3POL           : 1;
19598     unsigned LC3G4POL           : 1;
19599     unsigned                    : 1;
19600     unsigned                    : 1;
19601     unsigned                    : 1;
19602     unsigned LC3POL             : 1;
19603     };
19604 
19605   struct
19606     {
19607     unsigned G1POL              : 1;
19608     unsigned G2POL              : 1;
19609     unsigned G3POL              : 1;
19610     unsigned G4POL              : 1;
19611     unsigned                    : 1;
19612     unsigned                    : 1;
19613     unsigned                    : 1;
19614     unsigned POL                : 1;
19615     };
19616   } __CLC3POLbits_t;
19617 
19618 extern __at(0x0F25) volatile __CLC3POLbits_t CLC3POLbits;
19619 
19620 #define _CLC3POL_LC3G1POL       0x01
19621 #define _CLC3POL_G1POL          0x01
19622 #define _CLC3POL_LC3G2POL       0x02
19623 #define _CLC3POL_G2POL          0x02
19624 #define _CLC3POL_LC3G3POL       0x04
19625 #define _CLC3POL_G3POL          0x04
19626 #define _CLC3POL_LC3G4POL       0x08
19627 #define _CLC3POL_G4POL          0x08
19628 #define _CLC3POL_LC3POL         0x80
19629 #define _CLC3POL_POL            0x80
19630 
19631 //==============================================================================
19632 
19633 
19634 //==============================================================================
19635 //        CLC3SEL0 Bits
19636 
19637 extern __at(0x0F26) __sfr CLC3SEL0;
19638 
19639 typedef union
19640   {
19641   struct
19642     {
19643     unsigned LC3D1S0            : 1;
19644     unsigned LC3D1S1            : 1;
19645     unsigned LC3D1S2            : 1;
19646     unsigned LC3D1S3            : 1;
19647     unsigned LC3D1S4            : 1;
19648     unsigned LC3D1S5            : 1;
19649     unsigned                    : 1;
19650     unsigned                    : 1;
19651     };
19652 
19653   struct
19654     {
19655     unsigned D1S0               : 1;
19656     unsigned D1S1               : 1;
19657     unsigned D1S2               : 1;
19658     unsigned D1S3               : 1;
19659     unsigned D1S4               : 1;
19660     unsigned D1S5               : 1;
19661     unsigned                    : 1;
19662     unsigned                    : 1;
19663     };
19664 
19665   struct
19666     {
19667     unsigned D1S                : 6;
19668     unsigned                    : 2;
19669     };
19670 
19671   struct
19672     {
19673     unsigned LC3D1S             : 6;
19674     unsigned                    : 2;
19675     };
19676   } __CLC3SEL0bits_t;
19677 
19678 extern __at(0x0F26) volatile __CLC3SEL0bits_t CLC3SEL0bits;
19679 
19680 #define _CLC3SEL0_LC3D1S0       0x01
19681 #define _CLC3SEL0_D1S0          0x01
19682 #define _CLC3SEL0_LC3D1S1       0x02
19683 #define _CLC3SEL0_D1S1          0x02
19684 #define _CLC3SEL0_LC3D1S2       0x04
19685 #define _CLC3SEL0_D1S2          0x04
19686 #define _CLC3SEL0_LC3D1S3       0x08
19687 #define _CLC3SEL0_D1S3          0x08
19688 #define _CLC3SEL0_LC3D1S4       0x10
19689 #define _CLC3SEL0_D1S4          0x10
19690 #define _CLC3SEL0_LC3D1S5       0x20
19691 #define _CLC3SEL0_D1S5          0x20
19692 
19693 //==============================================================================
19694 
19695 
19696 //==============================================================================
19697 //        CLC3SEL1 Bits
19698 
19699 extern __at(0x0F27) __sfr CLC3SEL1;
19700 
19701 typedef union
19702   {
19703   struct
19704     {
19705     unsigned LC3D2S0            : 1;
19706     unsigned LC3D2S1            : 1;
19707     unsigned LC3D2S2            : 1;
19708     unsigned LC3D2S3            : 1;
19709     unsigned LC3D2S4            : 1;
19710     unsigned LC3D2S5            : 1;
19711     unsigned                    : 1;
19712     unsigned                    : 1;
19713     };
19714 
19715   struct
19716     {
19717     unsigned D2S0               : 1;
19718     unsigned D2S1               : 1;
19719     unsigned D2S2               : 1;
19720     unsigned D2S3               : 1;
19721     unsigned D2S4               : 1;
19722     unsigned D2S5               : 1;
19723     unsigned                    : 1;
19724     unsigned                    : 1;
19725     };
19726 
19727   struct
19728     {
19729     unsigned LC3D2S             : 6;
19730     unsigned                    : 2;
19731     };
19732 
19733   struct
19734     {
19735     unsigned D2S                : 6;
19736     unsigned                    : 2;
19737     };
19738   } __CLC3SEL1bits_t;
19739 
19740 extern __at(0x0F27) volatile __CLC3SEL1bits_t CLC3SEL1bits;
19741 
19742 #define _CLC3SEL1_LC3D2S0       0x01
19743 #define _CLC3SEL1_D2S0          0x01
19744 #define _CLC3SEL1_LC3D2S1       0x02
19745 #define _CLC3SEL1_D2S1          0x02
19746 #define _CLC3SEL1_LC3D2S2       0x04
19747 #define _CLC3SEL1_D2S2          0x04
19748 #define _CLC3SEL1_LC3D2S3       0x08
19749 #define _CLC3SEL1_D2S3          0x08
19750 #define _CLC3SEL1_LC3D2S4       0x10
19751 #define _CLC3SEL1_D2S4          0x10
19752 #define _CLC3SEL1_LC3D2S5       0x20
19753 #define _CLC3SEL1_D2S5          0x20
19754 
19755 //==============================================================================
19756 
19757 
19758 //==============================================================================
19759 //        CLC3SEL2 Bits
19760 
19761 extern __at(0x0F28) __sfr CLC3SEL2;
19762 
19763 typedef union
19764   {
19765   struct
19766     {
19767     unsigned LC3D3S0            : 1;
19768     unsigned LC3D3S1            : 1;
19769     unsigned LC3D3S2            : 1;
19770     unsigned LC3D3S3            : 1;
19771     unsigned LC3D3S4            : 1;
19772     unsigned LC3D3S5            : 1;
19773     unsigned                    : 1;
19774     unsigned                    : 1;
19775     };
19776 
19777   struct
19778     {
19779     unsigned D3S0               : 1;
19780     unsigned D3S1               : 1;
19781     unsigned D3S2               : 1;
19782     unsigned D3S3               : 1;
19783     unsigned D3S4               : 1;
19784     unsigned D3S5               : 1;
19785     unsigned                    : 1;
19786     unsigned                    : 1;
19787     };
19788 
19789   struct
19790     {
19791     unsigned D3S                : 6;
19792     unsigned                    : 2;
19793     };
19794 
19795   struct
19796     {
19797     unsigned LC3D3S             : 6;
19798     unsigned                    : 2;
19799     };
19800   } __CLC3SEL2bits_t;
19801 
19802 extern __at(0x0F28) volatile __CLC3SEL2bits_t CLC3SEL2bits;
19803 
19804 #define _CLC3SEL2_LC3D3S0       0x01
19805 #define _CLC3SEL2_D3S0          0x01
19806 #define _CLC3SEL2_LC3D3S1       0x02
19807 #define _CLC3SEL2_D3S1          0x02
19808 #define _CLC3SEL2_LC3D3S2       0x04
19809 #define _CLC3SEL2_D3S2          0x04
19810 #define _CLC3SEL2_LC3D3S3       0x08
19811 #define _CLC3SEL2_D3S3          0x08
19812 #define _CLC3SEL2_LC3D3S4       0x10
19813 #define _CLC3SEL2_D3S4          0x10
19814 #define _CLC3SEL2_LC3D3S5       0x20
19815 #define _CLC3SEL2_D3S5          0x20
19816 
19817 //==============================================================================
19818 
19819 
19820 //==============================================================================
19821 //        CLC3SEL3 Bits
19822 
19823 extern __at(0x0F29) __sfr CLC3SEL3;
19824 
19825 typedef union
19826   {
19827   struct
19828     {
19829     unsigned LC3D4S0            : 1;
19830     unsigned LC3D4S1            : 1;
19831     unsigned LC3D4S2            : 1;
19832     unsigned LC3D4S3            : 1;
19833     unsigned LC3D4S4            : 1;
19834     unsigned LC3D4S5            : 1;
19835     unsigned                    : 1;
19836     unsigned                    : 1;
19837     };
19838 
19839   struct
19840     {
19841     unsigned D4S0               : 1;
19842     unsigned D4S1               : 1;
19843     unsigned D4S2               : 1;
19844     unsigned D4S3               : 1;
19845     unsigned D4S4               : 1;
19846     unsigned D4S5               : 1;
19847     unsigned                    : 1;
19848     unsigned                    : 1;
19849     };
19850 
19851   struct
19852     {
19853     unsigned D4S                : 6;
19854     unsigned                    : 2;
19855     };
19856 
19857   struct
19858     {
19859     unsigned LC3D4S             : 6;
19860     unsigned                    : 2;
19861     };
19862   } __CLC3SEL3bits_t;
19863 
19864 extern __at(0x0F29) volatile __CLC3SEL3bits_t CLC3SEL3bits;
19865 
19866 #define _CLC3SEL3_LC3D4S0       0x01
19867 #define _CLC3SEL3_D4S0          0x01
19868 #define _CLC3SEL3_LC3D4S1       0x02
19869 #define _CLC3SEL3_D4S1          0x02
19870 #define _CLC3SEL3_LC3D4S2       0x04
19871 #define _CLC3SEL3_D4S2          0x04
19872 #define _CLC3SEL3_LC3D4S3       0x08
19873 #define _CLC3SEL3_D4S3          0x08
19874 #define _CLC3SEL3_LC3D4S4       0x10
19875 #define _CLC3SEL3_D4S4          0x10
19876 #define _CLC3SEL3_LC3D4S5       0x20
19877 #define _CLC3SEL3_D4S5          0x20
19878 
19879 //==============================================================================
19880 
19881 
19882 //==============================================================================
19883 //        CLC3GLS0 Bits
19884 
19885 extern __at(0x0F2A) __sfr CLC3GLS0;
19886 
19887 typedef union
19888   {
19889   struct
19890     {
19891     unsigned LC3G1D1N           : 1;
19892     unsigned LC3G1D1T           : 1;
19893     unsigned LC3G1D2N           : 1;
19894     unsigned LC3G1D2T           : 1;
19895     unsigned LC3G1D3N           : 1;
19896     unsigned LC3G1D3T           : 1;
19897     unsigned LC3G1D4N           : 1;
19898     unsigned LC3G1D4T           : 1;
19899     };
19900 
19901   struct
19902     {
19903     unsigned D1N                : 1;
19904     unsigned D1T                : 1;
19905     unsigned D2N                : 1;
19906     unsigned D2T                : 1;
19907     unsigned D3N                : 1;
19908     unsigned D3T                : 1;
19909     unsigned D4N                : 1;
19910     unsigned D4T                : 1;
19911     };
19912   } __CLC3GLS0bits_t;
19913 
19914 extern __at(0x0F2A) volatile __CLC3GLS0bits_t CLC3GLS0bits;
19915 
19916 #define _CLC3GLS0_LC3G1D1N      0x01
19917 #define _CLC3GLS0_D1N           0x01
19918 #define _CLC3GLS0_LC3G1D1T      0x02
19919 #define _CLC3GLS0_D1T           0x02
19920 #define _CLC3GLS0_LC3G1D2N      0x04
19921 #define _CLC3GLS0_D2N           0x04
19922 #define _CLC3GLS0_LC3G1D2T      0x08
19923 #define _CLC3GLS0_D2T           0x08
19924 #define _CLC3GLS0_LC3G1D3N      0x10
19925 #define _CLC3GLS0_D3N           0x10
19926 #define _CLC3GLS0_LC3G1D3T      0x20
19927 #define _CLC3GLS0_D3T           0x20
19928 #define _CLC3GLS0_LC3G1D4N      0x40
19929 #define _CLC3GLS0_D4N           0x40
19930 #define _CLC3GLS0_LC3G1D4T      0x80
19931 #define _CLC3GLS0_D4T           0x80
19932 
19933 //==============================================================================
19934 
19935 
19936 //==============================================================================
19937 //        CLC3GLS1 Bits
19938 
19939 extern __at(0x0F2B) __sfr CLC3GLS1;
19940 
19941 typedef union
19942   {
19943   struct
19944     {
19945     unsigned LC3G2D1N           : 1;
19946     unsigned LC3G2D1T           : 1;
19947     unsigned LC3G2D2N           : 1;
19948     unsigned LC3G2D2T           : 1;
19949     unsigned LC3G2D3N           : 1;
19950     unsigned LC3G2D3T           : 1;
19951     unsigned LC3G2D4N           : 1;
19952     unsigned LC3G2D4T           : 1;
19953     };
19954 
19955   struct
19956     {
19957     unsigned D1N                : 1;
19958     unsigned D1T                : 1;
19959     unsigned D2N                : 1;
19960     unsigned D2T                : 1;
19961     unsigned D3N                : 1;
19962     unsigned D3T                : 1;
19963     unsigned D4N                : 1;
19964     unsigned D4T                : 1;
19965     };
19966   } __CLC3GLS1bits_t;
19967 
19968 extern __at(0x0F2B) volatile __CLC3GLS1bits_t CLC3GLS1bits;
19969 
19970 #define _CLC3GLS1_LC3G2D1N      0x01
19971 #define _CLC3GLS1_D1N           0x01
19972 #define _CLC3GLS1_LC3G2D1T      0x02
19973 #define _CLC3GLS1_D1T           0x02
19974 #define _CLC3GLS1_LC3G2D2N      0x04
19975 #define _CLC3GLS1_D2N           0x04
19976 #define _CLC3GLS1_LC3G2D2T      0x08
19977 #define _CLC3GLS1_D2T           0x08
19978 #define _CLC3GLS1_LC3G2D3N      0x10
19979 #define _CLC3GLS1_D3N           0x10
19980 #define _CLC3GLS1_LC3G2D3T      0x20
19981 #define _CLC3GLS1_D3T           0x20
19982 #define _CLC3GLS1_LC3G2D4N      0x40
19983 #define _CLC3GLS1_D4N           0x40
19984 #define _CLC3GLS1_LC3G2D4T      0x80
19985 #define _CLC3GLS1_D4T           0x80
19986 
19987 //==============================================================================
19988 
19989 
19990 //==============================================================================
19991 //        CLC3GLS2 Bits
19992 
19993 extern __at(0x0F2C) __sfr CLC3GLS2;
19994 
19995 typedef union
19996   {
19997   struct
19998     {
19999     unsigned LC3G3D1N           : 1;
20000     unsigned LC3G3D1T           : 1;
20001     unsigned LC3G3D2N           : 1;
20002     unsigned LC3G3D2T           : 1;
20003     unsigned LC3G3D3N           : 1;
20004     unsigned LC3G3D3T           : 1;
20005     unsigned LC3G3D4N           : 1;
20006     unsigned LC3G3D4T           : 1;
20007     };
20008 
20009   struct
20010     {
20011     unsigned D1N                : 1;
20012     unsigned D1T                : 1;
20013     unsigned D2N                : 1;
20014     unsigned D2T                : 1;
20015     unsigned D3N                : 1;
20016     unsigned D3T                : 1;
20017     unsigned D4N                : 1;
20018     unsigned D4T                : 1;
20019     };
20020   } __CLC3GLS2bits_t;
20021 
20022 extern __at(0x0F2C) volatile __CLC3GLS2bits_t CLC3GLS2bits;
20023 
20024 #define _CLC3GLS2_LC3G3D1N      0x01
20025 #define _CLC3GLS2_D1N           0x01
20026 #define _CLC3GLS2_LC3G3D1T      0x02
20027 #define _CLC3GLS2_D1T           0x02
20028 #define _CLC3GLS2_LC3G3D2N      0x04
20029 #define _CLC3GLS2_D2N           0x04
20030 #define _CLC3GLS2_LC3G3D2T      0x08
20031 #define _CLC3GLS2_D2T           0x08
20032 #define _CLC3GLS2_LC3G3D3N      0x10
20033 #define _CLC3GLS2_D3N           0x10
20034 #define _CLC3GLS2_LC3G3D3T      0x20
20035 #define _CLC3GLS2_D3T           0x20
20036 #define _CLC3GLS2_LC3G3D4N      0x40
20037 #define _CLC3GLS2_D4N           0x40
20038 #define _CLC3GLS2_LC3G3D4T      0x80
20039 #define _CLC3GLS2_D4T           0x80
20040 
20041 //==============================================================================
20042 
20043 
20044 //==============================================================================
20045 //        CLC3GLS3 Bits
20046 
20047 extern __at(0x0F2D) __sfr CLC3GLS3;
20048 
20049 typedef union
20050   {
20051   struct
20052     {
20053     unsigned LC3G4D1N           : 1;
20054     unsigned LC3G4D1T           : 1;
20055     unsigned LC3G4D2N           : 1;
20056     unsigned LC3G4D2T           : 1;
20057     unsigned LC3G4D3N           : 1;
20058     unsigned LC3G4D3T           : 1;
20059     unsigned LC3G4D4N           : 1;
20060     unsigned LC3G4D4T           : 1;
20061     };
20062 
20063   struct
20064     {
20065     unsigned G4D1N              : 1;
20066     unsigned G4D1T              : 1;
20067     unsigned G4D2N              : 1;
20068     unsigned G4D2T              : 1;
20069     unsigned G4D3N              : 1;
20070     unsigned G4D3T              : 1;
20071     unsigned G4D4N              : 1;
20072     unsigned G4D4T              : 1;
20073     };
20074   } __CLC3GLS3bits_t;
20075 
20076 extern __at(0x0F2D) volatile __CLC3GLS3bits_t CLC3GLS3bits;
20077 
20078 #define _CLC3GLS3_LC3G4D1N      0x01
20079 #define _CLC3GLS3_G4D1N         0x01
20080 #define _CLC3GLS3_LC3G4D1T      0x02
20081 #define _CLC3GLS3_G4D1T         0x02
20082 #define _CLC3GLS3_LC3G4D2N      0x04
20083 #define _CLC3GLS3_G4D2N         0x04
20084 #define _CLC3GLS3_LC3G4D2T      0x08
20085 #define _CLC3GLS3_G4D2T         0x08
20086 #define _CLC3GLS3_LC3G4D3N      0x10
20087 #define _CLC3GLS3_G4D3N         0x10
20088 #define _CLC3GLS3_LC3G4D3T      0x20
20089 #define _CLC3GLS3_G4D3T         0x20
20090 #define _CLC3GLS3_LC3G4D4N      0x40
20091 #define _CLC3GLS3_G4D4N         0x40
20092 #define _CLC3GLS3_LC3G4D4T      0x80
20093 #define _CLC3GLS3_G4D4T         0x80
20094 
20095 //==============================================================================
20096 
20097 
20098 //==============================================================================
20099 //        CLC4CON Bits
20100 
20101 extern __at(0x0F2E) __sfr CLC4CON;
20102 
20103 typedef union
20104   {
20105   struct
20106     {
20107     unsigned LC4MODE0           : 1;
20108     unsigned LC4MODE1           : 1;
20109     unsigned LC4MODE2           : 1;
20110     unsigned LC4INTN            : 1;
20111     unsigned LC4INTP            : 1;
20112     unsigned LC4OUT             : 1;
20113     unsigned                    : 1;
20114     unsigned LC4EN              : 1;
20115     };
20116 
20117   struct
20118     {
20119     unsigned MODE0              : 1;
20120     unsigned MODE1              : 1;
20121     unsigned MODE2              : 1;
20122     unsigned INTN               : 1;
20123     unsigned INTP               : 1;
20124     unsigned OUT                : 1;
20125     unsigned                    : 1;
20126     unsigned EN                 : 1;
20127     };
20128 
20129   struct
20130     {
20131     unsigned MODE               : 3;
20132     unsigned                    : 5;
20133     };
20134 
20135   struct
20136     {
20137     unsigned LC4MODE            : 3;
20138     unsigned                    : 5;
20139     };
20140   } __CLC4CONbits_t;
20141 
20142 extern __at(0x0F2E) volatile __CLC4CONbits_t CLC4CONbits;
20143 
20144 #define _CLC4CON_LC4MODE0       0x01
20145 #define _CLC4CON_MODE0          0x01
20146 #define _CLC4CON_LC4MODE1       0x02
20147 #define _CLC4CON_MODE1          0x02
20148 #define _CLC4CON_LC4MODE2       0x04
20149 #define _CLC4CON_MODE2          0x04
20150 #define _CLC4CON_LC4INTN        0x08
20151 #define _CLC4CON_INTN           0x08
20152 #define _CLC4CON_LC4INTP        0x10
20153 #define _CLC4CON_INTP           0x10
20154 #define _CLC4CON_LC4OUT         0x20
20155 #define _CLC4CON_OUT            0x20
20156 #define _CLC4CON_LC4EN          0x80
20157 #define _CLC4CON_EN             0x80
20158 
20159 //==============================================================================
20160 
20161 
20162 //==============================================================================
20163 //        CLC4POL Bits
20164 
20165 extern __at(0x0F2F) __sfr CLC4POL;
20166 
20167 typedef union
20168   {
20169   struct
20170     {
20171     unsigned LC4G1POL           : 1;
20172     unsigned LC4G2POL           : 1;
20173     unsigned LC4G3POL           : 1;
20174     unsigned LC4G4POL           : 1;
20175     unsigned                    : 1;
20176     unsigned                    : 1;
20177     unsigned                    : 1;
20178     unsigned LC4POL             : 1;
20179     };
20180 
20181   struct
20182     {
20183     unsigned G1POL              : 1;
20184     unsigned G2POL              : 1;
20185     unsigned G3POL              : 1;
20186     unsigned G4POL              : 1;
20187     unsigned                    : 1;
20188     unsigned                    : 1;
20189     unsigned                    : 1;
20190     unsigned POL                : 1;
20191     };
20192   } __CLC4POLbits_t;
20193 
20194 extern __at(0x0F2F) volatile __CLC4POLbits_t CLC4POLbits;
20195 
20196 #define _CLC4POL_LC4G1POL       0x01
20197 #define _CLC4POL_G1POL          0x01
20198 #define _CLC4POL_LC4G2POL       0x02
20199 #define _CLC4POL_G2POL          0x02
20200 #define _CLC4POL_LC4G3POL       0x04
20201 #define _CLC4POL_G3POL          0x04
20202 #define _CLC4POL_LC4G4POL       0x08
20203 #define _CLC4POL_G4POL          0x08
20204 #define _CLC4POL_LC4POL         0x80
20205 #define _CLC4POL_POL            0x80
20206 
20207 //==============================================================================
20208 
20209 
20210 //==============================================================================
20211 //        CLC4SEL0 Bits
20212 
20213 extern __at(0x0F30) __sfr CLC4SEL0;
20214 
20215 typedef union
20216   {
20217   struct
20218     {
20219     unsigned LC4D1S0            : 1;
20220     unsigned LC4D1S1            : 1;
20221     unsigned LC4D1S2            : 1;
20222     unsigned LC4D1S3            : 1;
20223     unsigned LC4D1S4            : 1;
20224     unsigned LC4D1S5            : 1;
20225     unsigned                    : 1;
20226     unsigned                    : 1;
20227     };
20228 
20229   struct
20230     {
20231     unsigned D1S0               : 1;
20232     unsigned D1S1               : 1;
20233     unsigned D1S2               : 1;
20234     unsigned D1S3               : 1;
20235     unsigned D1S4               : 1;
20236     unsigned D1S5               : 1;
20237     unsigned                    : 1;
20238     unsigned                    : 1;
20239     };
20240 
20241   struct
20242     {
20243     unsigned LC4D1S             : 6;
20244     unsigned                    : 2;
20245     };
20246 
20247   struct
20248     {
20249     unsigned D1S                : 6;
20250     unsigned                    : 2;
20251     };
20252   } __CLC4SEL0bits_t;
20253 
20254 extern __at(0x0F30) volatile __CLC4SEL0bits_t CLC4SEL0bits;
20255 
20256 #define _CLC4SEL0_LC4D1S0       0x01
20257 #define _CLC4SEL0_D1S0          0x01
20258 #define _CLC4SEL0_LC4D1S1       0x02
20259 #define _CLC4SEL0_D1S1          0x02
20260 #define _CLC4SEL0_LC4D1S2       0x04
20261 #define _CLC4SEL0_D1S2          0x04
20262 #define _CLC4SEL0_LC4D1S3       0x08
20263 #define _CLC4SEL0_D1S3          0x08
20264 #define _CLC4SEL0_LC4D1S4       0x10
20265 #define _CLC4SEL0_D1S4          0x10
20266 #define _CLC4SEL0_LC4D1S5       0x20
20267 #define _CLC4SEL0_D1S5          0x20
20268 
20269 //==============================================================================
20270 
20271 
20272 //==============================================================================
20273 //        CLC4SEL1 Bits
20274 
20275 extern __at(0x0F31) __sfr CLC4SEL1;
20276 
20277 typedef union
20278   {
20279   struct
20280     {
20281     unsigned LC4D2S0            : 1;
20282     unsigned LC4D2S1            : 1;
20283     unsigned LC4D2S2            : 1;
20284     unsigned LC4D2S3            : 1;
20285     unsigned LC4D2S4            : 1;
20286     unsigned LC4D2S5            : 1;
20287     unsigned                    : 1;
20288     unsigned                    : 1;
20289     };
20290 
20291   struct
20292     {
20293     unsigned D2S0               : 1;
20294     unsigned D2S1               : 1;
20295     unsigned D2S2               : 1;
20296     unsigned D2S3               : 1;
20297     unsigned D2S4               : 1;
20298     unsigned D2S5               : 1;
20299     unsigned                    : 1;
20300     unsigned                    : 1;
20301     };
20302 
20303   struct
20304     {
20305     unsigned LC4D2S             : 6;
20306     unsigned                    : 2;
20307     };
20308 
20309   struct
20310     {
20311     unsigned D2S                : 6;
20312     unsigned                    : 2;
20313     };
20314   } __CLC4SEL1bits_t;
20315 
20316 extern __at(0x0F31) volatile __CLC4SEL1bits_t CLC4SEL1bits;
20317 
20318 #define _CLC4SEL1_LC4D2S0       0x01
20319 #define _CLC4SEL1_D2S0          0x01
20320 #define _CLC4SEL1_LC4D2S1       0x02
20321 #define _CLC4SEL1_D2S1          0x02
20322 #define _CLC4SEL1_LC4D2S2       0x04
20323 #define _CLC4SEL1_D2S2          0x04
20324 #define _CLC4SEL1_LC4D2S3       0x08
20325 #define _CLC4SEL1_D2S3          0x08
20326 #define _CLC4SEL1_LC4D2S4       0x10
20327 #define _CLC4SEL1_D2S4          0x10
20328 #define _CLC4SEL1_LC4D2S5       0x20
20329 #define _CLC4SEL1_D2S5          0x20
20330 
20331 //==============================================================================
20332 
20333 
20334 //==============================================================================
20335 //        CLC4SEL2 Bits
20336 
20337 extern __at(0x0F32) __sfr CLC4SEL2;
20338 
20339 typedef union
20340   {
20341   struct
20342     {
20343     unsigned LC4D3S0            : 1;
20344     unsigned LC4D3S1            : 1;
20345     unsigned LC4D3S2            : 1;
20346     unsigned LC4D3S3            : 1;
20347     unsigned LC4D3S4            : 1;
20348     unsigned LC4D3S5            : 1;
20349     unsigned                    : 1;
20350     unsigned                    : 1;
20351     };
20352 
20353   struct
20354     {
20355     unsigned D3S0               : 1;
20356     unsigned D3S1               : 1;
20357     unsigned D3S2               : 1;
20358     unsigned D3S3               : 1;
20359     unsigned D3S4               : 1;
20360     unsigned D3S5               : 1;
20361     unsigned                    : 1;
20362     unsigned                    : 1;
20363     };
20364 
20365   struct
20366     {
20367     unsigned D3S                : 6;
20368     unsigned                    : 2;
20369     };
20370 
20371   struct
20372     {
20373     unsigned LC4D3S             : 6;
20374     unsigned                    : 2;
20375     };
20376   } __CLC4SEL2bits_t;
20377 
20378 extern __at(0x0F32) volatile __CLC4SEL2bits_t CLC4SEL2bits;
20379 
20380 #define _CLC4SEL2_LC4D3S0       0x01
20381 #define _CLC4SEL2_D3S0          0x01
20382 #define _CLC4SEL2_LC4D3S1       0x02
20383 #define _CLC4SEL2_D3S1          0x02
20384 #define _CLC4SEL2_LC4D3S2       0x04
20385 #define _CLC4SEL2_D3S2          0x04
20386 #define _CLC4SEL2_LC4D3S3       0x08
20387 #define _CLC4SEL2_D3S3          0x08
20388 #define _CLC4SEL2_LC4D3S4       0x10
20389 #define _CLC4SEL2_D3S4          0x10
20390 #define _CLC4SEL2_LC4D3S5       0x20
20391 #define _CLC4SEL2_D3S5          0x20
20392 
20393 //==============================================================================
20394 
20395 
20396 //==============================================================================
20397 //        CLC4SEL3 Bits
20398 
20399 extern __at(0x0F33) __sfr CLC4SEL3;
20400 
20401 typedef union
20402   {
20403   struct
20404     {
20405     unsigned LC4D4S0            : 1;
20406     unsigned LC4D4S1            : 1;
20407     unsigned LC4D4S2            : 1;
20408     unsigned LC4D4S3            : 1;
20409     unsigned LC4D4S4            : 1;
20410     unsigned LC4D4S5            : 1;
20411     unsigned                    : 1;
20412     unsigned                    : 1;
20413     };
20414 
20415   struct
20416     {
20417     unsigned D4S0               : 1;
20418     unsigned D4S1               : 1;
20419     unsigned D4S2               : 1;
20420     unsigned D4S3               : 1;
20421     unsigned D4S4               : 1;
20422     unsigned D4S5               : 1;
20423     unsigned                    : 1;
20424     unsigned                    : 1;
20425     };
20426 
20427   struct
20428     {
20429     unsigned D4S                : 6;
20430     unsigned                    : 2;
20431     };
20432 
20433   struct
20434     {
20435     unsigned LC4D4S             : 6;
20436     unsigned                    : 2;
20437     };
20438   } __CLC4SEL3bits_t;
20439 
20440 extern __at(0x0F33) volatile __CLC4SEL3bits_t CLC4SEL3bits;
20441 
20442 #define _CLC4SEL3_LC4D4S0       0x01
20443 #define _CLC4SEL3_D4S0          0x01
20444 #define _CLC4SEL3_LC4D4S1       0x02
20445 #define _CLC4SEL3_D4S1          0x02
20446 #define _CLC4SEL3_LC4D4S2       0x04
20447 #define _CLC4SEL3_D4S2          0x04
20448 #define _CLC4SEL3_LC4D4S3       0x08
20449 #define _CLC4SEL3_D4S3          0x08
20450 #define _CLC4SEL3_LC4D4S4       0x10
20451 #define _CLC4SEL3_D4S4          0x10
20452 #define _CLC4SEL3_LC4D4S5       0x20
20453 #define _CLC4SEL3_D4S5          0x20
20454 
20455 //==============================================================================
20456 
20457 
20458 //==============================================================================
20459 //        CLC4GLS0 Bits
20460 
20461 extern __at(0x0F34) __sfr CLC4GLS0;
20462 
20463 typedef union
20464   {
20465   struct
20466     {
20467     unsigned LC4G1D1N           : 1;
20468     unsigned LC4G1D1T           : 1;
20469     unsigned LC4G1D2N           : 1;
20470     unsigned LC4G1D2T           : 1;
20471     unsigned LC4G1D3N           : 1;
20472     unsigned LC4G1D3T           : 1;
20473     unsigned LC4G1D4N           : 1;
20474     unsigned LC4G1D4T           : 1;
20475     };
20476 
20477   struct
20478     {
20479     unsigned D1N                : 1;
20480     unsigned D1T                : 1;
20481     unsigned D2N                : 1;
20482     unsigned D2T                : 1;
20483     unsigned D3N                : 1;
20484     unsigned D3T                : 1;
20485     unsigned D4N                : 1;
20486     unsigned D4T                : 1;
20487     };
20488   } __CLC4GLS0bits_t;
20489 
20490 extern __at(0x0F34) volatile __CLC4GLS0bits_t CLC4GLS0bits;
20491 
20492 #define _CLC4GLS0_LC4G1D1N      0x01
20493 #define _CLC4GLS0_D1N           0x01
20494 #define _CLC4GLS0_LC4G1D1T      0x02
20495 #define _CLC4GLS0_D1T           0x02
20496 #define _CLC4GLS0_LC4G1D2N      0x04
20497 #define _CLC4GLS0_D2N           0x04
20498 #define _CLC4GLS0_LC4G1D2T      0x08
20499 #define _CLC4GLS0_D2T           0x08
20500 #define _CLC4GLS0_LC4G1D3N      0x10
20501 #define _CLC4GLS0_D3N           0x10
20502 #define _CLC4GLS0_LC4G1D3T      0x20
20503 #define _CLC4GLS0_D3T           0x20
20504 #define _CLC4GLS0_LC4G1D4N      0x40
20505 #define _CLC4GLS0_D4N           0x40
20506 #define _CLC4GLS0_LC4G1D4T      0x80
20507 #define _CLC4GLS0_D4T           0x80
20508 
20509 //==============================================================================
20510 
20511 
20512 //==============================================================================
20513 //        CLC4GLS1 Bits
20514 
20515 extern __at(0x0F35) __sfr CLC4GLS1;
20516 
20517 typedef union
20518   {
20519   struct
20520     {
20521     unsigned LC4G2D1N           : 1;
20522     unsigned LC4G2D1T           : 1;
20523     unsigned LC4G2D2N           : 1;
20524     unsigned LC4G2D2T           : 1;
20525     unsigned LC4G2D3N           : 1;
20526     unsigned LC4G2D3T           : 1;
20527     unsigned LC4G2D4N           : 1;
20528     unsigned LC4G2D4T           : 1;
20529     };
20530 
20531   struct
20532     {
20533     unsigned D1N                : 1;
20534     unsigned D1T                : 1;
20535     unsigned D2N                : 1;
20536     unsigned D2T                : 1;
20537     unsigned D3N                : 1;
20538     unsigned D3T                : 1;
20539     unsigned D4N                : 1;
20540     unsigned D4T                : 1;
20541     };
20542   } __CLC4GLS1bits_t;
20543 
20544 extern __at(0x0F35) volatile __CLC4GLS1bits_t CLC4GLS1bits;
20545 
20546 #define _CLC4GLS1_LC4G2D1N      0x01
20547 #define _CLC4GLS1_D1N           0x01
20548 #define _CLC4GLS1_LC4G2D1T      0x02
20549 #define _CLC4GLS1_D1T           0x02
20550 #define _CLC4GLS1_LC4G2D2N      0x04
20551 #define _CLC4GLS1_D2N           0x04
20552 #define _CLC4GLS1_LC4G2D2T      0x08
20553 #define _CLC4GLS1_D2T           0x08
20554 #define _CLC4GLS1_LC4G2D3N      0x10
20555 #define _CLC4GLS1_D3N           0x10
20556 #define _CLC4GLS1_LC4G2D3T      0x20
20557 #define _CLC4GLS1_D3T           0x20
20558 #define _CLC4GLS1_LC4G2D4N      0x40
20559 #define _CLC4GLS1_D4N           0x40
20560 #define _CLC4GLS1_LC4G2D4T      0x80
20561 #define _CLC4GLS1_D4T           0x80
20562 
20563 //==============================================================================
20564 
20565 
20566 //==============================================================================
20567 //        CLC4GLS2 Bits
20568 
20569 extern __at(0x0F36) __sfr CLC4GLS2;
20570 
20571 typedef union
20572   {
20573   struct
20574     {
20575     unsigned LC4G3D1N           : 1;
20576     unsigned LC4G3D1T           : 1;
20577     unsigned LC4G3D2N           : 1;
20578     unsigned LC4G3D2T           : 1;
20579     unsigned LC4G3D3N           : 1;
20580     unsigned LC4G3D3T           : 1;
20581     unsigned LC4G3D4N           : 1;
20582     unsigned LC4G3D4T           : 1;
20583     };
20584 
20585   struct
20586     {
20587     unsigned D1N                : 1;
20588     unsigned D1T                : 1;
20589     unsigned D2N                : 1;
20590     unsigned D2T                : 1;
20591     unsigned D3N                : 1;
20592     unsigned D3T                : 1;
20593     unsigned D4N                : 1;
20594     unsigned D4T                : 1;
20595     };
20596   } __CLC4GLS2bits_t;
20597 
20598 extern __at(0x0F36) volatile __CLC4GLS2bits_t CLC4GLS2bits;
20599 
20600 #define _CLC4GLS2_LC4G3D1N      0x01
20601 #define _CLC4GLS2_D1N           0x01
20602 #define _CLC4GLS2_LC4G3D1T      0x02
20603 #define _CLC4GLS2_D1T           0x02
20604 #define _CLC4GLS2_LC4G3D2N      0x04
20605 #define _CLC4GLS2_D2N           0x04
20606 #define _CLC4GLS2_LC4G3D2T      0x08
20607 #define _CLC4GLS2_D2T           0x08
20608 #define _CLC4GLS2_LC4G3D3N      0x10
20609 #define _CLC4GLS2_D3N           0x10
20610 #define _CLC4GLS2_LC4G3D3T      0x20
20611 #define _CLC4GLS2_D3T           0x20
20612 #define _CLC4GLS2_LC4G3D4N      0x40
20613 #define _CLC4GLS2_D4N           0x40
20614 #define _CLC4GLS2_LC4G3D4T      0x80
20615 #define _CLC4GLS2_D4T           0x80
20616 
20617 //==============================================================================
20618 
20619 
20620 //==============================================================================
20621 //        CLC4GLS3 Bits
20622 
20623 extern __at(0x0F37) __sfr CLC4GLS3;
20624 
20625 typedef union
20626   {
20627   struct
20628     {
20629     unsigned LC4G4D1N           : 1;
20630     unsigned LC4G4D1T           : 1;
20631     unsigned LC4G4D2N           : 1;
20632     unsigned LC4G4D2T           : 1;
20633     unsigned LC4G4D3N           : 1;
20634     unsigned LC4G4D3T           : 1;
20635     unsigned LC4G4D4N           : 1;
20636     unsigned LC4G4D4T           : 1;
20637     };
20638 
20639   struct
20640     {
20641     unsigned G4D1N              : 1;
20642     unsigned G4D1T              : 1;
20643     unsigned G4D2N              : 1;
20644     unsigned G4D2T              : 1;
20645     unsigned G4D3N              : 1;
20646     unsigned G4D3T              : 1;
20647     unsigned G4D4N              : 1;
20648     unsigned G4D4T              : 1;
20649     };
20650   } __CLC4GLS3bits_t;
20651 
20652 extern __at(0x0F37) volatile __CLC4GLS3bits_t CLC4GLS3bits;
20653 
20654 #define _CLC4GLS3_LC4G4D1N      0x01
20655 #define _CLC4GLS3_G4D1N         0x01
20656 #define _CLC4GLS3_LC4G4D1T      0x02
20657 #define _CLC4GLS3_G4D1T         0x02
20658 #define _CLC4GLS3_LC4G4D2N      0x04
20659 #define _CLC4GLS3_G4D2N         0x04
20660 #define _CLC4GLS3_LC4G4D2T      0x08
20661 #define _CLC4GLS3_G4D2T         0x08
20662 #define _CLC4GLS3_LC4G4D3N      0x10
20663 #define _CLC4GLS3_G4D3N         0x10
20664 #define _CLC4GLS3_LC4G4D3T      0x20
20665 #define _CLC4GLS3_G4D3T         0x20
20666 #define _CLC4GLS3_LC4G4D4N      0x40
20667 #define _CLC4GLS3_G4D4N         0x40
20668 #define _CLC4GLS3_LC4G4D4T      0x80
20669 #define _CLC4GLS3_G4D4T         0x80
20670 
20671 //==============================================================================
20672 
20673 
20674 //==============================================================================
20675 //        STATUS_SHAD Bits
20676 
20677 extern __at(0x0FE4) __sfr STATUS_SHAD;
20678 
20679 typedef struct
20680   {
20681   unsigned C_SHAD               : 1;
20682   unsigned DC_SHAD              : 1;
20683   unsigned Z_SHAD               : 1;
20684   unsigned                      : 1;
20685   unsigned                      : 1;
20686   unsigned                      : 1;
20687   unsigned                      : 1;
20688   unsigned                      : 1;
20689   } __STATUS_SHADbits_t;
20690 
20691 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
20692 
20693 #define _C_SHAD                 0x01
20694 #define _DC_SHAD                0x02
20695 #define _Z_SHAD                 0x04
20696 
20697 //==============================================================================
20698 
20699 extern __at(0x0FE5) __sfr WREG_SHAD;
20700 extern __at(0x0FE6) __sfr BSR_SHAD;
20701 extern __at(0x0FE7) __sfr PCLATH_SHAD;
20702 extern __at(0x0FE8) __sfr FSR0L_SHAD;
20703 extern __at(0x0FE9) __sfr FSR0H_SHAD;
20704 extern __at(0x0FEA) __sfr FSR1L_SHAD;
20705 extern __at(0x0FEB) __sfr FSR1H_SHAD;
20706 extern __at(0x0FED) __sfr STKPTR;
20707 extern __at(0x0FEE) __sfr TOSL;
20708 extern __at(0x0FEF) __sfr TOSH;
20709 
20710 //==============================================================================
20711 //
20712 //        Configuration Bits
20713 //
20714 //==============================================================================
20715 
20716 #define _CONFIG1                0x8007
20717 #define _CONFIG2                0x8008
20718 
20719 //----------------------------- CONFIG1 Options -------------------------------
20720 
20721 #define _FOSC_LP                0x3FF8  // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
20722 #define _FOSC_XT                0x3FF9  // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
20723 #define _FOSC_HS                0x3FFA  // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
20724 #define _FOSC_EXTRC             0x3FFB  // EXTRC oscillator: External RC circuit connected to CLKIN pin.
20725 #define _FOSC_INTOSC            0x3FFC  // INTOSC oscillator: I/O function on CLKIN pin.
20726 #define _FOSC_ECL               0x3FFD  // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
20727 #define _FOSC_ECM               0x3FFE  // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
20728 #define _FOSC_ECH               0x3FFF  // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
20729 #define _WDTE_OFF               0x3FE7  // WDT disabled.
20730 #define _WDTE_SWDTEN            0x3FEF  // WDT controlled by the SWDTEN bit in the WDTCON register.
20731 #define _WDTE_NSLEEP            0x3FF7  // WDT enabled while running and disabled in Sleep.
20732 #define _WDTE_ON                0x3FFF  // WDT enabled.
20733 #define _PWRTE_ON               0x3FDF  // PWRT enabled.
20734 #define _PWRTE_OFF              0x3FFF  // PWRT disabled.
20735 #define _MCLRE_OFF              0x3FBF  // MCLR/VPP pin function is digital input.
20736 #define _MCLRE_ON               0x3FFF  // MCLR/VPP pin function is MCLR.
20737 #define _CP_ON                  0x3F7F  // Program memory code protection is enabled.
20738 #define _CP_OFF                 0x3FFF  // Program memory code protection is disabled.
20739 #define _BOREN_OFF              0x39FF  // Brown-out Reset disabled.
20740 #define _BOREN_SBODEN           0x3BFF  // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
20741 #define _BOREN_NSLEEP           0x3DFF  // Brown-out Reset enabled while running and disabled in Sleep.
20742 #define _BOREN_ON               0x3FFF  // Brown-out Reset enabled.
20743 #define _CLKOUTEN_ON            0x37FF  // CLKOUT function is enabled on the CLKOUT pin.
20744 #define _CLKOUTEN_OFF           0x3FFF  // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
20745 #define _IESO_OFF               0x2FFF  // Internal/External Switchover Mode is disabled.
20746 #define _IESO_ON                0x3FFF  // Internal/External Switchover Mode is enabled.
20747 #define _FCMEN_OFF              0x1FFF  // Fail-Safe Clock Monitor is disabled.
20748 #define _FCMEN_ON               0x3FFF  // Fail-Safe Clock Monitor is enabled.
20749 
20750 //----------------------------- CONFIG2 Options -------------------------------
20751 
20752 #define _WRT_ALL                0x3FFC  // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
20753 #define _WRT_HALF               0x3FFD  // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
20754 #define _WRT_BOOT               0x3FFE  // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
20755 #define _WRT_OFF                0x3FFF  // Write protection off.
20756 #define _PPS1WAY_OFF            0x3FFB  // The PPSLOCK bit can be set and cleared repeatedly by software.
20757 #define _PPS1WAY_ON             0x3FFF  // The PPSLOCK bit cannot be cleared once it is set by software.
20758 #define _ZCD_ON                 0x3F7F  // Zero-cross detect circuit is enabled at POR.
20759 #define _ZCD_OFF                0x3FFF  // Zero-cross detect circuit is disabled at POR.
20760 #define _PLLEN_OFF              0x3EFF  // 4x PLL is enabled when software sets the SPLLEN bit.
20761 #define _PLLEN_ON               0x3FFF  // 4x PLL is always enabled.
20762 #define _STVREN_OFF             0x3DFF  // Stack Overflow or Underflow will not cause a Reset.
20763 #define _STVREN_ON              0x3FFF  // Stack Overflow or Underflow will cause a Reset.
20764 #define _BORV_HI                0x3BFF  // Brown-out Reset Voltage (Vbor), high trip point selected.
20765 #define _BORV_LO                0x3FFF  // Brown-out Reset Voltage (Vbor), low trip point selected.
20766 #define _LPBOR_ON               0x37FF  // Low-Power BOR is enabled.
20767 #define _LPBOR_OFF              0x3FFF  // Low-Power BOR is disabled.
20768 #define _DEBUG_ON               0x2FFF  // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
20769 #define _DEBUG_OFF              0x3FFF  // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
20770 #define _LVP_OFF                0x1FFF  // High-voltage on MCLR/VPP must be used for programming.
20771 #define _LVP_ON                 0x3FFF  // Low-voltage programming enabled.
20772 
20773 //==============================================================================
20774 
20775 #define _DEVID1                 0x8006
20776 
20777 #define _IDLOC0                 0x8000
20778 #define _IDLOC1                 0x8001
20779 #define _IDLOC2                 0x8002
20780 #define _IDLOC3                 0x8003
20781 
20782 //==============================================================================
20783 
20784 #ifndef NO_BIT_DEFINES
20785 
20786 #define ADON                    ADCON0bits.ADON                 // bit 0
20787 #define GO                      ADCON0bits.GO                   // bit 1
20788 
20789 #define ADNREF                  ADCON1bits.ADNREF               // bit 2
20790 #define ADFM                    ADCON1bits.ADFM                 // bit 7
20791 
20792 #define ANSA0                   ANSELAbits.ANSA0                // bit 0
20793 #define ANSA1                   ANSELAbits.ANSA1                // bit 1
20794 #define ANSA2                   ANSELAbits.ANSA2                // bit 2
20795 #define ANSA3                   ANSELAbits.ANSA3                // bit 3
20796 #define ANSA4                   ANSELAbits.ANSA4                // bit 4
20797 #define ANSA5                   ANSELAbits.ANSA5                // bit 5
20798 
20799 #define ANSB0                   ANSELBbits.ANSB0                // bit 0
20800 #define ANSB1                   ANSELBbits.ANSB1                // bit 1
20801 #define ANSB2                   ANSELBbits.ANSB2                // bit 2
20802 #define ANSB3                   ANSELBbits.ANSB3                // bit 3
20803 #define ANSB4                   ANSELBbits.ANSB4                // bit 4
20804 #define ANSB5                   ANSELBbits.ANSB5                // bit 5
20805 
20806 #define ANSC2                   ANSELCbits.ANSC2                // bit 2
20807 #define ANSC3                   ANSELCbits.ANSC3                // bit 3
20808 #define ANSC4                   ANSELCbits.ANSC4                // bit 4
20809 #define ANSC5                   ANSELCbits.ANSC5                // bit 5
20810 #define ANSC6                   ANSELCbits.ANSC6                // bit 6
20811 #define ANSC7                   ANSELCbits.ANSC7                // bit 7
20812 
20813 #define ABDEN                   BAUD1CONbits.ABDEN              // bit 0
20814 #define WUE                     BAUD1CONbits.WUE                // bit 1
20815 #define BRG16                   BAUD1CONbits.BRG16              // bit 3
20816 #define SCKP                    BAUD1CONbits.SCKP               // bit 4
20817 #define RCIDL                   BAUD1CONbits.RCIDL              // bit 6
20818 #define ABDOVF                  BAUD1CONbits.ABDOVF             // bit 7
20819 
20820 #define BORRDY                  BORCONbits.BORRDY               // bit 0
20821 #define BORFS                   BORCONbits.BORFS                // bit 6
20822 #define SBOREN                  BORCONbits.SBOREN               // bit 7
20823 
20824 #define BSR0                    BSRbits.BSR0                    // bit 0
20825 #define BSR1                    BSRbits.BSR1                    // bit 1
20826 #define BSR2                    BSRbits.BSR2                    // bit 2
20827 #define BSR3                    BSRbits.BSR3                    // bit 3
20828 #define BSR4                    BSRbits.BSR4                    // bit 4
20829 
20830 #define CTS0                    CCP1CAPbits.CTS0                // bit 0, shadows bit in CCP1CAPbits
20831 #define CCP1CTS0                CCP1CAPbits.CCP1CTS0            // bit 0, shadows bit in CCP1CAPbits
20832 #define CTS1                    CCP1CAPbits.CTS1                // bit 1, shadows bit in CCP1CAPbits
20833 #define CCP1CTS1                CCP1CAPbits.CCP1CTS1            // bit 1, shadows bit in CCP1CAPbits
20834 #define CTS2                    CCP1CAPbits.CTS2                // bit 2, shadows bit in CCP1CAPbits
20835 #define CCP1CTS2                CCP1CAPbits.CCP1CTS2            // bit 2, shadows bit in CCP1CAPbits
20836 #define CTS3                    CCP1CAPbits.CTS3                // bit 3, shadows bit in CCP1CAPbits
20837 #define CCP1CTS3                CCP1CAPbits.CCP1CTS3            // bit 3, shadows bit in CCP1CAPbits
20838 
20839 #define MODE0                   CCP1CONbits.MODE0               // bit 0, shadows bit in CCP1CONbits
20840 #define CCP1MODE0               CCP1CONbits.CCP1MODE0           // bit 0, shadows bit in CCP1CONbits
20841 #define MODE1                   CCP1CONbits.MODE1               // bit 1, shadows bit in CCP1CONbits
20842 #define CCP1MODE1               CCP1CONbits.CCP1MODE1           // bit 1, shadows bit in CCP1CONbits
20843 #define MODE2                   CCP1CONbits.MODE2               // bit 2, shadows bit in CCP1CONbits
20844 #define CCP1MODE2               CCP1CONbits.CCP1MODE2           // bit 2, shadows bit in CCP1CONbits
20845 #define MODE3                   CCP1CONbits.MODE3               // bit 3, shadows bit in CCP1CONbits
20846 #define CCP1MODE3               CCP1CONbits.CCP1MODE3           // bit 3, shadows bit in CCP1CONbits
20847 #define FMT                     CCP1CONbits.FMT                 // bit 4, shadows bit in CCP1CONbits
20848 #define CCP1FMT                 CCP1CONbits.CCP1FMT             // bit 4, shadows bit in CCP1CONbits
20849 #define OUT                     CCP1CONbits.OUT                 // bit 5, shadows bit in CCP1CONbits
20850 #define CCP1OUT                 CCP1CONbits.CCP1OUT             // bit 5, shadows bit in CCP1CONbits
20851 #define EN                      CCP1CONbits.EN                  // bit 7, shadows bit in CCP1CONbits
20852 #define CCP1EN                  CCP1CONbits.CCP1EN              // bit 7, shadows bit in CCP1CONbits
20853 
20854 #define C1TSEL0                 CCPTMRS1bits.C1TSEL0            // bit 0
20855 #define C1TSEL1                 CCPTMRS1bits.C1TSEL1            // bit 1
20856 #define C2TSEL0                 CCPTMRS1bits.C2TSEL0            // bit 2
20857 #define C2TSEL1                 CCPTMRS1bits.C2TSEL1            // bit 3
20858 #define C7TSEL0                 CCPTMRS1bits.C7TSEL0            // bit 4
20859 #define C7TSEL1                 CCPTMRS1bits.C7TSEL1            // bit 5
20860 
20861 #define P3TSEL0                 CCPTMRS2bits.P3TSEL0            // bit 0
20862 #define P3TSEL1                 CCPTMRS2bits.P3TSEL1            // bit 1
20863 #define P4TSEL0                 CCPTMRS2bits.P4TSEL0            // bit 2
20864 #define P4TSEL1                 CCPTMRS2bits.P4TSEL1            // bit 3
20865 #define P9TSEL0                 CCPTMRS2bits.P9TSEL0            // bit 4
20866 #define P9TSEL1                 CCPTMRS2bits.P9TSEL1            // bit 5
20867 
20868 #define LC1G1D1N                CLC1GLS0bits.LC1G1D1N           // bit 0, shadows bit in CLC1GLS0bits
20869 #define D1N                     CLC1GLS0bits.D1N                // bit 0, shadows bit in CLC1GLS0bits
20870 #define LC1G1D1T                CLC1GLS0bits.LC1G1D1T           // bit 1, shadows bit in CLC1GLS0bits
20871 #define D1T                     CLC1GLS0bits.D1T                // bit 1, shadows bit in CLC1GLS0bits
20872 #define LC1G1D2N                CLC1GLS0bits.LC1G1D2N           // bit 2, shadows bit in CLC1GLS0bits
20873 #define D2N                     CLC1GLS0bits.D2N                // bit 2, shadows bit in CLC1GLS0bits
20874 #define LC1G1D2T                CLC1GLS0bits.LC1G1D2T           // bit 3, shadows bit in CLC1GLS0bits
20875 #define D2T                     CLC1GLS0bits.D2T                // bit 3, shadows bit in CLC1GLS0bits
20876 #define LC1G1D3N                CLC1GLS0bits.LC1G1D3N           // bit 4, shadows bit in CLC1GLS0bits
20877 #define D3N                     CLC1GLS0bits.D3N                // bit 4, shadows bit in CLC1GLS0bits
20878 #define LC1G1D3T                CLC1GLS0bits.LC1G1D3T           // bit 5, shadows bit in CLC1GLS0bits
20879 #define D3T                     CLC1GLS0bits.D3T                // bit 5, shadows bit in CLC1GLS0bits
20880 #define LC1G1D4N                CLC1GLS0bits.LC1G1D4N           // bit 6, shadows bit in CLC1GLS0bits
20881 #define D4N                     CLC1GLS0bits.D4N                // bit 6, shadows bit in CLC1GLS0bits
20882 #define LC1G1D4T                CLC1GLS0bits.LC1G1D4T           // bit 7, shadows bit in CLC1GLS0bits
20883 #define D4T                     CLC1GLS0bits.D4T                // bit 7, shadows bit in CLC1GLS0bits
20884 
20885 #define LC1G4D1N                CLC1GLS3bits.LC1G4D1N           // bit 0, shadows bit in CLC1GLS3bits
20886 #define G4D1N                   CLC1GLS3bits.G4D1N              // bit 0, shadows bit in CLC1GLS3bits
20887 #define LC1G4D1T                CLC1GLS3bits.LC1G4D1T           // bit 1, shadows bit in CLC1GLS3bits
20888 #define G4D1T                   CLC1GLS3bits.G4D1T              // bit 1, shadows bit in CLC1GLS3bits
20889 #define LC1G4D2N                CLC1GLS3bits.LC1G4D2N           // bit 2, shadows bit in CLC1GLS3bits
20890 #define G4D2N                   CLC1GLS3bits.G4D2N              // bit 2, shadows bit in CLC1GLS3bits
20891 #define LC1G4D2T                CLC1GLS3bits.LC1G4D2T           // bit 3, shadows bit in CLC1GLS3bits
20892 #define G4D2T                   CLC1GLS3bits.G4D2T              // bit 3, shadows bit in CLC1GLS3bits
20893 #define LC1G4D3N                CLC1GLS3bits.LC1G4D3N           // bit 4, shadows bit in CLC1GLS3bits
20894 #define G4D3N                   CLC1GLS3bits.G4D3N              // bit 4, shadows bit in CLC1GLS3bits
20895 #define LC1G4D3T                CLC1GLS3bits.LC1G4D3T           // bit 5, shadows bit in CLC1GLS3bits
20896 #define G4D3T                   CLC1GLS3bits.G4D3T              // bit 5, shadows bit in CLC1GLS3bits
20897 #define LC1G4D4N                CLC1GLS3bits.LC1G4D4N           // bit 6, shadows bit in CLC1GLS3bits
20898 #define G4D4N                   CLC1GLS3bits.G4D4N              // bit 6, shadows bit in CLC1GLS3bits
20899 #define LC1G4D4T                CLC1GLS3bits.LC1G4D4T           // bit 7, shadows bit in CLC1GLS3bits
20900 #define G4D4T                   CLC1GLS3bits.G4D4T              // bit 7, shadows bit in CLC1GLS3bits
20901 
20902 #define LC1G1POL                CLC1POLbits.LC1G1POL            // bit 0, shadows bit in CLC1POLbits
20903 #define G1POL                   CLC1POLbits.G1POL               // bit 0, shadows bit in CLC1POLbits
20904 #define LC1G2POL                CLC1POLbits.LC1G2POL            // bit 1, shadows bit in CLC1POLbits
20905 #define G2POL                   CLC1POLbits.G2POL               // bit 1, shadows bit in CLC1POLbits
20906 #define LC1G3POL                CLC1POLbits.LC1G3POL            // bit 2, shadows bit in CLC1POLbits
20907 #define G3POL                   CLC1POLbits.G3POL               // bit 2, shadows bit in CLC1POLbits
20908 #define LC1G4POL                CLC1POLbits.LC1G4POL            // bit 3, shadows bit in CLC1POLbits
20909 #define G4POL                   CLC1POLbits.G4POL               // bit 3, shadows bit in CLC1POLbits
20910 #define LC1POL                  CLC1POLbits.LC1POL              // bit 7, shadows bit in CLC1POLbits
20911 #define POL                     CLC1POLbits.POL                 // bit 7, shadows bit in CLC1POLbits
20912 
20913 #define LC1D1S0                 CLC1SEL0bits.LC1D1S0            // bit 0, shadows bit in CLC1SEL0bits
20914 #define D1S0                    CLC1SEL0bits.D1S0               // bit 0, shadows bit in CLC1SEL0bits
20915 #define LC1D1S1                 CLC1SEL0bits.LC1D1S1            // bit 1, shadows bit in CLC1SEL0bits
20916 #define D1S1                    CLC1SEL0bits.D1S1               // bit 1, shadows bit in CLC1SEL0bits
20917 #define LC1D1S2                 CLC1SEL0bits.LC1D1S2            // bit 2, shadows bit in CLC1SEL0bits
20918 #define D1S2                    CLC1SEL0bits.D1S2               // bit 2, shadows bit in CLC1SEL0bits
20919 #define LC1D1S3                 CLC1SEL0bits.LC1D1S3            // bit 3, shadows bit in CLC1SEL0bits
20920 #define D1S3                    CLC1SEL0bits.D1S3               // bit 3, shadows bit in CLC1SEL0bits
20921 #define LC1D1S4                 CLC1SEL0bits.LC1D1S4            // bit 4, shadows bit in CLC1SEL0bits
20922 #define D1S4                    CLC1SEL0bits.D1S4               // bit 4, shadows bit in CLC1SEL0bits
20923 #define LC1D1S5                 CLC1SEL0bits.LC1D1S5            // bit 5, shadows bit in CLC1SEL0bits
20924 #define D1S5                    CLC1SEL0bits.D1S5               // bit 5, shadows bit in CLC1SEL0bits
20925 
20926 #define LC1D2S0                 CLC1SEL1bits.LC1D2S0            // bit 0, shadows bit in CLC1SEL1bits
20927 #define D2S0                    CLC1SEL1bits.D2S0               // bit 0, shadows bit in CLC1SEL1bits
20928 #define LC1D2S1                 CLC1SEL1bits.LC1D2S1            // bit 1, shadows bit in CLC1SEL1bits
20929 #define D2S1                    CLC1SEL1bits.D2S1               // bit 1, shadows bit in CLC1SEL1bits
20930 #define LC1D2S2                 CLC1SEL1bits.LC1D2S2            // bit 2, shadows bit in CLC1SEL1bits
20931 #define D2S2                    CLC1SEL1bits.D2S2               // bit 2, shadows bit in CLC1SEL1bits
20932 #define LC1D2S3                 CLC1SEL1bits.LC1D2S3            // bit 3, shadows bit in CLC1SEL1bits
20933 #define D2S3                    CLC1SEL1bits.D2S3               // bit 3, shadows bit in CLC1SEL1bits
20934 #define LC1D2S4                 CLC1SEL1bits.LC1D2S4            // bit 4, shadows bit in CLC1SEL1bits
20935 #define D2S4                    CLC1SEL1bits.D2S4               // bit 4, shadows bit in CLC1SEL1bits
20936 #define LC1D2S5                 CLC1SEL1bits.LC1D2S5            // bit 5, shadows bit in CLC1SEL1bits
20937 #define D2S5                    CLC1SEL1bits.D2S5               // bit 5, shadows bit in CLC1SEL1bits
20938 
20939 #define LC1D3S0                 CLC1SEL2bits.LC1D3S0            // bit 0, shadows bit in CLC1SEL2bits
20940 #define D3S0                    CLC1SEL2bits.D3S0               // bit 0, shadows bit in CLC1SEL2bits
20941 #define LC1D3S1                 CLC1SEL2bits.LC1D3S1            // bit 1, shadows bit in CLC1SEL2bits
20942 #define D3S1                    CLC1SEL2bits.D3S1               // bit 1, shadows bit in CLC1SEL2bits
20943 #define LC1D3S2                 CLC1SEL2bits.LC1D3S2            // bit 2, shadows bit in CLC1SEL2bits
20944 #define D3S2                    CLC1SEL2bits.D3S2               // bit 2, shadows bit in CLC1SEL2bits
20945 #define LC1D3S3                 CLC1SEL2bits.LC1D3S3            // bit 3, shadows bit in CLC1SEL2bits
20946 #define D3S3                    CLC1SEL2bits.D3S3               // bit 3, shadows bit in CLC1SEL2bits
20947 #define LC1D3S4                 CLC1SEL2bits.LC1D3S4            // bit 4, shadows bit in CLC1SEL2bits
20948 #define D3S4                    CLC1SEL2bits.D3S4               // bit 4, shadows bit in CLC1SEL2bits
20949 #define LC1D3S5                 CLC1SEL2bits.LC1D3S5            // bit 5, shadows bit in CLC1SEL2bits
20950 #define D3S5                    CLC1SEL2bits.D3S5               // bit 5, shadows bit in CLC1SEL2bits
20951 
20952 #define LC1D4S0                 CLC1SEL3bits.LC1D4S0            // bit 0, shadows bit in CLC1SEL3bits
20953 #define D4S0                    CLC1SEL3bits.D4S0               // bit 0, shadows bit in CLC1SEL3bits
20954 #define LC1D4S1                 CLC1SEL3bits.LC1D4S1            // bit 1, shadows bit in CLC1SEL3bits
20955 #define D4S1                    CLC1SEL3bits.D4S1               // bit 1, shadows bit in CLC1SEL3bits
20956 #define LC1D4S2                 CLC1SEL3bits.LC1D4S2            // bit 2, shadows bit in CLC1SEL3bits
20957 #define D4S2                    CLC1SEL3bits.D4S2               // bit 2, shadows bit in CLC1SEL3bits
20958 #define LC1D4S3                 CLC1SEL3bits.LC1D4S3            // bit 3, shadows bit in CLC1SEL3bits
20959 #define D4S3                    CLC1SEL3bits.D4S3               // bit 3, shadows bit in CLC1SEL3bits
20960 #define LC1D4S4                 CLC1SEL3bits.LC1D4S4            // bit 4, shadows bit in CLC1SEL3bits
20961 #define D4S4                    CLC1SEL3bits.D4S4               // bit 4, shadows bit in CLC1SEL3bits
20962 #define LC1D4S5                 CLC1SEL3bits.LC1D4S5            // bit 5, shadows bit in CLC1SEL3bits
20963 #define D4S5                    CLC1SEL3bits.D4S5               // bit 5, shadows bit in CLC1SEL3bits
20964 
20965 #define MCLC1OUT                CLCDATAbits.MCLC1OUT            // bit 0
20966 #define MCLC2OUT                CLCDATAbits.MCLC2OUT            // bit 1
20967 #define MCLC3OUT                CLCDATAbits.MCLC3OUT            // bit 2
20968 #define MLC4OUT                 CLCDATAbits.MLC4OUT             // bit 3
20969 
20970 #define C1NCH0                  CM1NSELbits.C1NCH0              // bit 0
20971 #define C1NCH1                  CM1NSELbits.C1NCH1              // bit 1
20972 #define C1NCH2                  CM1NSELbits.C1NCH2              // bit 2
20973 #define C1NCH3                  CM1NSELbits.C1NCH3              // bit 3
20974 
20975 #define PCH0                    CM1PSELbits.PCH0                // bit 0, shadows bit in CM1PSELbits
20976 #define C1PCH0                  CM1PSELbits.C1PCH0              // bit 0, shadows bit in CM1PSELbits
20977 #define PCH1                    CM1PSELbits.PCH1                // bit 1, shadows bit in CM1PSELbits
20978 #define C1PCH1                  CM1PSELbits.C1PCH1              // bit 1, shadows bit in CM1PSELbits
20979 #define PCH2                    CM1PSELbits.PCH2                // bit 2, shadows bit in CM1PSELbits
20980 #define C1PCH2                  CM1PSELbits.C1PCH2              // bit 2, shadows bit in CM1PSELbits
20981 #define PCH3                    CM1PSELbits.PCH3                // bit 3, shadows bit in CM1PSELbits
20982 #define C1PCH3                  CM1PSELbits.C1PCH3              // bit 3, shadows bit in CM1PSELbits
20983 
20984 #define C2NCH0                  CM2NSELbits.C2NCH0              // bit 0
20985 #define C2NCH1                  CM2NSELbits.C2NCH1              // bit 1
20986 #define C2NCH2                  CM2NSELbits.C2NCH2              // bit 2
20987 #define C2NCH3                  CM2NSELbits.C2NCH3              // bit 3
20988 
20989 #define C3NCH0                  CM3NSELbits.C3NCH0              // bit 0
20990 #define C3NCH1                  CM3NSELbits.C3NCH1              // bit 1
20991 #define C3NCH2                  CM3NSELbits.C3NCH2              // bit 2
20992 #define C3NCH3                  CM3NSELbits.C3NCH3              // bit 3
20993 
20994 #define C4NCH0                  CM4NSELbits.C4NCH0              // bit 0
20995 #define C4NCH1                  CM4NSELbits.C4NCH1              // bit 1
20996 #define C4NCH2                  CM4NSELbits.C4NCH2              // bit 2
20997 #define C4NCH3                  CM4NSELbits.C4NCH3              // bit 3
20998 
20999 #define C5NCH0                  CM5NSELbits.C5NCH0              // bit 0
21000 #define C5NCH1                  CM5NSELbits.C5NCH1              // bit 1
21001 #define C5NCH2                  CM5NSELbits.C5NCH2              // bit 2
21002 #define C5NCH3                  CM5NSELbits.C5NCH3              // bit 3
21003 
21004 #define C6NCH0                  CM6NSELbits.C6NCH0              // bit 0
21005 #define C6NCH1                  CM6NSELbits.C6NCH1              // bit 1
21006 #define C6NCH2                  CM6NSELbits.C6NCH2              // bit 2
21007 #define C6NCH3                  CM6NSELbits.C6NCH3              // bit 3
21008 
21009 #define MC1OUT                  CMOUTbits.MC1OUT                // bit 0
21010 #define MC2OUT                  CMOUTbits.MC2OUT                // bit 1
21011 #define MC3OUT                  CMOUTbits.MC3OUT                // bit 2
21012 #define MC4OUT                  CMOUTbits.MC4OUT                // bit 3
21013 #define MC5OUT                  CMOUTbits.MC5OUT                // bit 4
21014 #define MC6OUT                  CMOUTbits.MC6OUT                // bit 5
21015 
21016 #define ASDAC0                  COG1ASD0bits.ASDAC0             // bit 2, shadows bit in COG1ASD0bits
21017 #define G1ASDAC0                COG1ASD0bits.G1ASDAC0           // bit 2, shadows bit in COG1ASD0bits
21018 #define ASDAC1                  COG1ASD0bits.ASDAC1             // bit 3, shadows bit in COG1ASD0bits
21019 #define G1ASDAC1                COG1ASD0bits.G1ASDAC1           // bit 3, shadows bit in COG1ASD0bits
21020 #define ASDBD0                  COG1ASD0bits.ASDBD0             // bit 4, shadows bit in COG1ASD0bits
21021 #define G1ASDBD0                COG1ASD0bits.G1ASDBD0           // bit 4, shadows bit in COG1ASD0bits
21022 #define ASDBD1                  COG1ASD0bits.ASDBD1             // bit 5, shadows bit in COG1ASD0bits
21023 #define G1ASDBD1                COG1ASD0bits.G1ASDBD1           // bit 5, shadows bit in COG1ASD0bits
21024 #define ASREN                   COG1ASD0bits.ASREN              // bit 6, shadows bit in COG1ASD0bits
21025 #define ARSEN                   COG1ASD0bits.ARSEN              // bit 6, shadows bit in COG1ASD0bits
21026 #define G1ARSEN                 COG1ASD0bits.G1ARSEN            // bit 6, shadows bit in COG1ASD0bits
21027 #define G1ASREN                 COG1ASD0bits.G1ASREN            // bit 6, shadows bit in COG1ASD0bits
21028 #define ASE                     COG1ASD0bits.ASE                // bit 7, shadows bit in COG1ASD0bits
21029 #define G1ASE                   COG1ASD0bits.G1ASE              // bit 7, shadows bit in COG1ASD0bits
21030 
21031 #define AS0E                    COG1ASD1bits.AS0E               // bit 0, shadows bit in COG1ASD1bits
21032 #define G1AS0E                  COG1ASD1bits.G1AS0E             // bit 0, shadows bit in COG1ASD1bits
21033 #define AS1E                    COG1ASD1bits.AS1E               // bit 1, shadows bit in COG1ASD1bits
21034 #define G1AS1E                  COG1ASD1bits.G1AS1E             // bit 1, shadows bit in COG1ASD1bits
21035 #define AS2E                    COG1ASD1bits.AS2E               // bit 2, shadows bit in COG1ASD1bits
21036 #define G1AS2E                  COG1ASD1bits.G1AS2E             // bit 2, shadows bit in COG1ASD1bits
21037 #define AS3E                    COG1ASD1bits.AS3E               // bit 3, shadows bit in COG1ASD1bits
21038 #define G1AS3E                  COG1ASD1bits.G1AS3E             // bit 3, shadows bit in COG1ASD1bits
21039 #define AS4E                    COG1ASD1bits.AS4E               // bit 4, shadows bit in COG1ASD1bits
21040 #define G1AS4E                  COG1ASD1bits.G1AS4E             // bit 4, shadows bit in COG1ASD1bits
21041 #define AS5E                    COG1ASD1bits.AS5E               // bit 5, shadows bit in COG1ASD1bits
21042 #define G1AS5E                  COG1ASD1bits.G1AS5E             // bit 5, shadows bit in COG1ASD1bits
21043 #define AS6E                    COG1ASD1bits.AS6E               // bit 6, shadows bit in COG1ASD1bits
21044 #define G1AS6E                  COG1ASD1bits.G1AS6E             // bit 6, shadows bit in COG1ASD1bits
21045 #define AS7E                    COG1ASD1bits.AS7E               // bit 7, shadows bit in COG1ASD1bits
21046 #define G1AS7E                  COG1ASD1bits.G1AS7E             // bit 7, shadows bit in COG1ASD1bits
21047 
21048 #define BLKF0                   COG1BLKFbits.BLKF0              // bit 0, shadows bit in COG1BLKFbits
21049 #define G1BLKF0                 COG1BLKFbits.G1BLKF0            // bit 0, shadows bit in COG1BLKFbits
21050 #define BLKF1                   COG1BLKFbits.BLKF1              // bit 1, shadows bit in COG1BLKFbits
21051 #define G1BLKF1                 COG1BLKFbits.G1BLKF1            // bit 1, shadows bit in COG1BLKFbits
21052 #define BLKF2                   COG1BLKFbits.BLKF2              // bit 2, shadows bit in COG1BLKFbits
21053 #define G1BLKF2                 COG1BLKFbits.G1BLKF2            // bit 2, shadows bit in COG1BLKFbits
21054 #define BLKF3                   COG1BLKFbits.BLKF3              // bit 3, shadows bit in COG1BLKFbits
21055 #define G1BLKF3                 COG1BLKFbits.G1BLKF3            // bit 3, shadows bit in COG1BLKFbits
21056 #define BLKF4                   COG1BLKFbits.BLKF4              // bit 4, shadows bit in COG1BLKFbits
21057 #define G1BLKF4                 COG1BLKFbits.G1BLKF4            // bit 4, shadows bit in COG1BLKFbits
21058 #define BLKF5                   COG1BLKFbits.BLKF5              // bit 5, shadows bit in COG1BLKFbits
21059 #define G1BLKF5                 COG1BLKFbits.G1BLKF5            // bit 5, shadows bit in COG1BLKFbits
21060 
21061 #define BLKR0                   COG1BLKRbits.BLKR0              // bit 0, shadows bit in COG1BLKRbits
21062 #define G1BLKR0                 COG1BLKRbits.G1BLKR0            // bit 0, shadows bit in COG1BLKRbits
21063 #define BLKR1                   COG1BLKRbits.BLKR1              // bit 1, shadows bit in COG1BLKRbits
21064 #define G1BLKR1                 COG1BLKRbits.G1BLKR1            // bit 1, shadows bit in COG1BLKRbits
21065 #define BLKR2                   COG1BLKRbits.BLKR2              // bit 2, shadows bit in COG1BLKRbits
21066 #define G1BLKR2                 COG1BLKRbits.G1BLKR2            // bit 2, shadows bit in COG1BLKRbits
21067 #define BLKR3                   COG1BLKRbits.BLKR3              // bit 3, shadows bit in COG1BLKRbits
21068 #define G1BLKR3                 COG1BLKRbits.G1BLKR3            // bit 3, shadows bit in COG1BLKRbits
21069 #define BLKR4                   COG1BLKRbits.BLKR4              // bit 4, shadows bit in COG1BLKRbits
21070 #define G1BLKR4                 COG1BLKRbits.G1BLKR4            // bit 4, shadows bit in COG1BLKRbits
21071 #define BLKR5                   COG1BLKRbits.BLKR5              // bit 5, shadows bit in COG1BLKRbits
21072 #define G1BLKR5                 COG1BLKRbits.G1BLKR5            // bit 5, shadows bit in COG1BLKRbits
21073 
21074 #define POLA                    COG1CON1bits.POLA               // bit 0, shadows bit in COG1CON1bits
21075 #define G1POLA                  COG1CON1bits.G1POLA             // bit 0, shadows bit in COG1CON1bits
21076 #define POLB                    COG1CON1bits.POLB               // bit 1, shadows bit in COG1CON1bits
21077 #define G1POLB                  COG1CON1bits.G1POLB             // bit 1, shadows bit in COG1CON1bits
21078 #define POLC                    COG1CON1bits.POLC               // bit 2, shadows bit in COG1CON1bits
21079 #define G1POLC                  COG1CON1bits.G1POLC             // bit 2, shadows bit in COG1CON1bits
21080 #define POLD                    COG1CON1bits.POLD               // bit 3, shadows bit in COG1CON1bits
21081 #define G1POLD                  COG1CON1bits.G1POLD             // bit 3, shadows bit in COG1CON1bits
21082 #define FDBS                    COG1CON1bits.FDBS               // bit 6, shadows bit in COG1CON1bits
21083 #define G1FDBS                  COG1CON1bits.G1FDBS             // bit 6, shadows bit in COG1CON1bits
21084 #define RDBS                    COG1CON1bits.RDBS               // bit 7, shadows bit in COG1CON1bits
21085 #define G1RDBS                  COG1CON1bits.G1RDBS             // bit 7, shadows bit in COG1CON1bits
21086 
21087 #define DBF0                    COG1DBFbits.DBF0                // bit 0, shadows bit in COG1DBFbits
21088 #define G1DBF0                  COG1DBFbits.G1DBF0              // bit 0, shadows bit in COG1DBFbits
21089 #define DBF1                    COG1DBFbits.DBF1                // bit 1, shadows bit in COG1DBFbits
21090 #define G1DBF1                  COG1DBFbits.G1DBF1              // bit 1, shadows bit in COG1DBFbits
21091 #define DBF2                    COG1DBFbits.DBF2                // bit 2, shadows bit in COG1DBFbits
21092 #define G1DBF2                  COG1DBFbits.G1DBF2              // bit 2, shadows bit in COG1DBFbits
21093 #define DBF3                    COG1DBFbits.DBF3                // bit 3, shadows bit in COG1DBFbits
21094 #define G1DBF3                  COG1DBFbits.G1DBF3              // bit 3, shadows bit in COG1DBFbits
21095 #define DBF4                    COG1DBFbits.DBF4                // bit 4, shadows bit in COG1DBFbits
21096 #define G1DBF4                  COG1DBFbits.G1DBF4              // bit 4, shadows bit in COG1DBFbits
21097 #define DBF5                    COG1DBFbits.DBF5                // bit 5, shadows bit in COG1DBFbits
21098 #define G1DBF5                  COG1DBFbits.G1DBF5              // bit 5, shadows bit in COG1DBFbits
21099 
21100 #define DBR0                    COG1DBRbits.DBR0                // bit 0, shadows bit in COG1DBRbits
21101 #define G1DBR0                  COG1DBRbits.G1DBR0              // bit 0, shadows bit in COG1DBRbits
21102 #define DBR1                    COG1DBRbits.DBR1                // bit 1, shadows bit in COG1DBRbits
21103 #define G1DBR1                  COG1DBRbits.G1DBR1              // bit 1, shadows bit in COG1DBRbits
21104 #define DBR2                    COG1DBRbits.DBR2                // bit 2, shadows bit in COG1DBRbits
21105 #define G1DBR2                  COG1DBRbits.G1DBR2              // bit 2, shadows bit in COG1DBRbits
21106 #define DBR3                    COG1DBRbits.DBR3                // bit 3, shadows bit in COG1DBRbits
21107 #define G1DBR3                  COG1DBRbits.G1DBR3              // bit 3, shadows bit in COG1DBRbits
21108 #define DBR4                    COG1DBRbits.DBR4                // bit 4, shadows bit in COG1DBRbits
21109 #define G1DBR4                  COG1DBRbits.G1DBR4              // bit 4, shadows bit in COG1DBRbits
21110 #define DBR5                    COG1DBRbits.DBR5                // bit 5, shadows bit in COG1DBRbits
21111 #define G1DBR5                  COG1DBRbits.G1DBR5              // bit 5, shadows bit in COG1DBRbits
21112 
21113 #define FIS0                    COG1FIS0bits.FIS0               // bit 0, shadows bit in COG1FIS0bits
21114 #define G1FIS0                  COG1FIS0bits.G1FIS0             // bit 0, shadows bit in COG1FIS0bits
21115 #define FIS1                    COG1FIS0bits.FIS1               // bit 1, shadows bit in COG1FIS0bits
21116 #define G1FIS1                  COG1FIS0bits.G1FIS1             // bit 1, shadows bit in COG1FIS0bits
21117 #define FIS2                    COG1FIS0bits.FIS2               // bit 2, shadows bit in COG1FIS0bits
21118 #define G1FIS2                  COG1FIS0bits.G1FIS2             // bit 2, shadows bit in COG1FIS0bits
21119 #define FIS3                    COG1FIS0bits.FIS3               // bit 3, shadows bit in COG1FIS0bits
21120 #define G1FIS3                  COG1FIS0bits.G1FIS3             // bit 3, shadows bit in COG1FIS0bits
21121 #define FIS4                    COG1FIS0bits.FIS4               // bit 4, shadows bit in COG1FIS0bits
21122 #define G1FIS4                  COG1FIS0bits.G1FIS4             // bit 4, shadows bit in COG1FIS0bits
21123 #define FIS5                    COG1FIS0bits.FIS5               // bit 5, shadows bit in COG1FIS0bits
21124 #define G1FIS5                  COG1FIS0bits.G1FIS5             // bit 5, shadows bit in COG1FIS0bits
21125 #define FIS6                    COG1FIS0bits.FIS6               // bit 6, shadows bit in COG1FIS0bits
21126 #define G1FIS6                  COG1FIS0bits.G1FIS6             // bit 6, shadows bit in COG1FIS0bits
21127 #define FIS7                    COG1FIS0bits.FIS7               // bit 7, shadows bit in COG1FIS0bits
21128 #define G1FIS7                  COG1FIS0bits.G1FIS7             // bit 7, shadows bit in COG1FIS0bits
21129 
21130 #define FIS8                    COG1FIS1bits.FIS8               // bit 0, shadows bit in COG1FIS1bits
21131 #define G1FIS8                  COG1FIS1bits.G1FIS8             // bit 0, shadows bit in COG1FIS1bits
21132 #define FIS9                    COG1FIS1bits.FIS9               // bit 1, shadows bit in COG1FIS1bits
21133 #define G1FIS9                  COG1FIS1bits.G1FIS9             // bit 1, shadows bit in COG1FIS1bits
21134 #define FIS10                   COG1FIS1bits.FIS10              // bit 2, shadows bit in COG1FIS1bits
21135 #define G1FIS10                 COG1FIS1bits.G1FIS10            // bit 2, shadows bit in COG1FIS1bits
21136 #define FIS11                   COG1FIS1bits.FIS11              // bit 3, shadows bit in COG1FIS1bits
21137 #define G1FIS11                 COG1FIS1bits.G1FIS11            // bit 3, shadows bit in COG1FIS1bits
21138 #define FIS12                   COG1FIS1bits.FIS12              // bit 4, shadows bit in COG1FIS1bits
21139 #define G1FIS12                 COG1FIS1bits.G1FIS12            // bit 4, shadows bit in COG1FIS1bits
21140 #define FIS13                   COG1FIS1bits.FIS13              // bit 5, shadows bit in COG1FIS1bits
21141 #define G1FIS13                 COG1FIS1bits.G1FIS13            // bit 5, shadows bit in COG1FIS1bits
21142 #define FIS14                   COG1FIS1bits.FIS14              // bit 6, shadows bit in COG1FIS1bits
21143 #define G1FIS14                 COG1FIS1bits.G1FIS14            // bit 6, shadows bit in COG1FIS1bits
21144 #define FIS15                   COG1FIS1bits.FIS15              // bit 7, shadows bit in COG1FIS1bits
21145 #define G1FIS15                 COG1FIS1bits.G1FIS15            // bit 7, shadows bit in COG1FIS1bits
21146 
21147 #define FSIM0                   COG1FSIM0bits.FSIM0             // bit 0, shadows bit in COG1FSIM0bits
21148 #define G1FSIM0                 COG1FSIM0bits.G1FSIM0           // bit 0, shadows bit in COG1FSIM0bits
21149 #define FSIM1                   COG1FSIM0bits.FSIM1             // bit 1, shadows bit in COG1FSIM0bits
21150 #define G1FSIM1                 COG1FSIM0bits.G1FSIM1           // bit 1, shadows bit in COG1FSIM0bits
21151 #define FSIM2                   COG1FSIM0bits.FSIM2             // bit 2, shadows bit in COG1FSIM0bits
21152 #define G1FSIM2                 COG1FSIM0bits.G1FSIM2           // bit 2, shadows bit in COG1FSIM0bits
21153 #define FSIM3                   COG1FSIM0bits.FSIM3             // bit 3, shadows bit in COG1FSIM0bits
21154 #define G1FSIM3                 COG1FSIM0bits.G1FSIM3           // bit 3, shadows bit in COG1FSIM0bits
21155 #define FSIM4                   COG1FSIM0bits.FSIM4             // bit 4, shadows bit in COG1FSIM0bits
21156 #define G1FSIM4                 COG1FSIM0bits.G1FSIM4           // bit 4, shadows bit in COG1FSIM0bits
21157 #define FSIM5                   COG1FSIM0bits.FSIM5             // bit 5, shadows bit in COG1FSIM0bits
21158 #define G1FSIM5                 COG1FSIM0bits.G1FSIM5           // bit 5, shadows bit in COG1FSIM0bits
21159 #define FSIM6                   COG1FSIM0bits.FSIM6             // bit 6, shadows bit in COG1FSIM0bits
21160 #define G1FSIM6                 COG1FSIM0bits.G1FSIM6           // bit 6, shadows bit in COG1FSIM0bits
21161 #define FSIM7                   COG1FSIM0bits.FSIM7             // bit 7, shadows bit in COG1FSIM0bits
21162 #define G1FSIM7                 COG1FSIM0bits.G1FSIM7           // bit 7, shadows bit in COG1FSIM0bits
21163 
21164 #define FSIM8                   COG1FSIM1bits.FSIM8             // bit 0, shadows bit in COG1FSIM1bits
21165 #define G1FSIM8                 COG1FSIM1bits.G1FSIM8           // bit 0, shadows bit in COG1FSIM1bits
21166 #define FSIM9                   COG1FSIM1bits.FSIM9             // bit 1, shadows bit in COG1FSIM1bits
21167 #define G1FSIM9                 COG1FSIM1bits.G1FSIM9           // bit 1, shadows bit in COG1FSIM1bits
21168 #define FSIM10                  COG1FSIM1bits.FSIM10            // bit 2, shadows bit in COG1FSIM1bits
21169 #define G1FSIM10                COG1FSIM1bits.G1FSIM10          // bit 2, shadows bit in COG1FSIM1bits
21170 #define FSIM11                  COG1FSIM1bits.FSIM11            // bit 3, shadows bit in COG1FSIM1bits
21171 #define G1FSIM11                COG1FSIM1bits.G1FSIM11          // bit 3, shadows bit in COG1FSIM1bits
21172 #define FSIM12                  COG1FSIM1bits.FSIM12            // bit 4, shadows bit in COG1FSIM1bits
21173 #define G1FSIM12                COG1FSIM1bits.G1FSIM12          // bit 4, shadows bit in COG1FSIM1bits
21174 #define FSIM13                  COG1FSIM1bits.FSIM13            // bit 5, shadows bit in COG1FSIM1bits
21175 #define G1FSIM13                COG1FSIM1bits.G1FSIM13          // bit 5, shadows bit in COG1FSIM1bits
21176 #define FSIM14                  COG1FSIM1bits.FSIM14            // bit 6, shadows bit in COG1FSIM1bits
21177 #define G1FSIM14                COG1FSIM1bits.G1FSIM14          // bit 6, shadows bit in COG1FSIM1bits
21178 #define FSIM15                  COG1FSIM1bits.FSIM15            // bit 7, shadows bit in COG1FSIM1bits
21179 #define G1FSIM15                COG1FSIM1bits.G1FSIM15          // bit 7, shadows bit in COG1FSIM1bits
21180 
21181 #define PHF0                    COG1PHFbits.PHF0                // bit 0, shadows bit in COG1PHFbits
21182 #define G1PHF0                  COG1PHFbits.G1PHF0              // bit 0, shadows bit in COG1PHFbits
21183 #define PHF1                    COG1PHFbits.PHF1                // bit 1, shadows bit in COG1PHFbits
21184 #define G1PHF1                  COG1PHFbits.G1PHF1              // bit 1, shadows bit in COG1PHFbits
21185 #define PHF2                    COG1PHFbits.PHF2                // bit 2, shadows bit in COG1PHFbits
21186 #define G1PHF2                  COG1PHFbits.G1PHF2              // bit 2, shadows bit in COG1PHFbits
21187 #define PHF3                    COG1PHFbits.PHF3                // bit 3, shadows bit in COG1PHFbits
21188 #define G1PHF3                  COG1PHFbits.G1PHF3              // bit 3, shadows bit in COG1PHFbits
21189 #define PHF4                    COG1PHFbits.PHF4                // bit 4, shadows bit in COG1PHFbits
21190 #define G1PHF4                  COG1PHFbits.G1PHF4              // bit 4, shadows bit in COG1PHFbits
21191 #define PHF5                    COG1PHFbits.PHF5                // bit 5, shadows bit in COG1PHFbits
21192 #define G1PHF5                  COG1PHFbits.G1PHF5              // bit 5, shadows bit in COG1PHFbits
21193 
21194 #define PHR0                    COG1PHRbits.PHR0                // bit 0, shadows bit in COG1PHRbits
21195 #define G1PHR0                  COG1PHRbits.G1PHR0              // bit 0, shadows bit in COG1PHRbits
21196 #define PHR1                    COG1PHRbits.PHR1                // bit 1, shadows bit in COG1PHRbits
21197 #define G1PHR1                  COG1PHRbits.G1PHR1              // bit 1, shadows bit in COG1PHRbits
21198 #define PHR2                    COG1PHRbits.PHR2                // bit 2, shadows bit in COG1PHRbits
21199 #define G1PHR2                  COG1PHRbits.G1PHR2              // bit 2, shadows bit in COG1PHRbits
21200 #define PHR3                    COG1PHRbits.PHR3                // bit 3, shadows bit in COG1PHRbits
21201 #define G1PHR3                  COG1PHRbits.G1PHR3              // bit 3, shadows bit in COG1PHRbits
21202 #define PHR4                    COG1PHRbits.PHR4                // bit 4, shadows bit in COG1PHRbits
21203 #define G1PHR4                  COG1PHRbits.G1PHR4              // bit 4, shadows bit in COG1PHRbits
21204 #define PHR5                    COG1PHRbits.PHR5                // bit 5, shadows bit in COG1PHRbits
21205 #define G1PHR5                  COG1PHRbits.G1PHR5              // bit 5, shadows bit in COG1PHRbits
21206 
21207 #define RIS0                    COG1RIS0bits.RIS0               // bit 0, shadows bit in COG1RIS0bits
21208 #define G1RIS0                  COG1RIS0bits.G1RIS0             // bit 0, shadows bit in COG1RIS0bits
21209 #define RIS1                    COG1RIS0bits.RIS1               // bit 1, shadows bit in COG1RIS0bits
21210 #define G1RIS1                  COG1RIS0bits.G1RIS1             // bit 1, shadows bit in COG1RIS0bits
21211 #define RIS2                    COG1RIS0bits.RIS2               // bit 2, shadows bit in COG1RIS0bits
21212 #define G1RIS2                  COG1RIS0bits.G1RIS2             // bit 2, shadows bit in COG1RIS0bits
21213 #define RIS3                    COG1RIS0bits.RIS3               // bit 3, shadows bit in COG1RIS0bits
21214 #define G1RIS3                  COG1RIS0bits.G1RIS3             // bit 3, shadows bit in COG1RIS0bits
21215 #define RIS4                    COG1RIS0bits.RIS4               // bit 4, shadows bit in COG1RIS0bits
21216 #define G1RIS4                  COG1RIS0bits.G1RIS4             // bit 4, shadows bit in COG1RIS0bits
21217 #define RIS5                    COG1RIS0bits.RIS5               // bit 5, shadows bit in COG1RIS0bits
21218 #define G1RIS5                  COG1RIS0bits.G1RIS5             // bit 5, shadows bit in COG1RIS0bits
21219 #define RIS6                    COG1RIS0bits.RIS6               // bit 6, shadows bit in COG1RIS0bits
21220 #define G1RIS6                  COG1RIS0bits.G1RIS6             // bit 6, shadows bit in COG1RIS0bits
21221 #define RIS7                    COG1RIS0bits.RIS7               // bit 7, shadows bit in COG1RIS0bits
21222 #define G1RIS7                  COG1RIS0bits.G1RIS7             // bit 7, shadows bit in COG1RIS0bits
21223 
21224 #define RIS8                    COG1RIS1bits.RIS8               // bit 0, shadows bit in COG1RIS1bits
21225 #define G1RIS8                  COG1RIS1bits.G1RIS8             // bit 0, shadows bit in COG1RIS1bits
21226 #define RIS9                    COG1RIS1bits.RIS9               // bit 1, shadows bit in COG1RIS1bits
21227 #define G1RIS9                  COG1RIS1bits.G1RIS9             // bit 1, shadows bit in COG1RIS1bits
21228 #define RIS10                   COG1RIS1bits.RIS10              // bit 2, shadows bit in COG1RIS1bits
21229 #define G1RIS10                 COG1RIS1bits.G1RIS10            // bit 2, shadows bit in COG1RIS1bits
21230 #define RIS11                   COG1RIS1bits.RIS11              // bit 3, shadows bit in COG1RIS1bits
21231 #define G1RIS11                 COG1RIS1bits.G1RIS11            // bit 3, shadows bit in COG1RIS1bits
21232 #define RIS12                   COG1RIS1bits.RIS12              // bit 4, shadows bit in COG1RIS1bits
21233 #define G1RIS12                 COG1RIS1bits.G1RIS12            // bit 4, shadows bit in COG1RIS1bits
21234 #define RIS13                   COG1RIS1bits.RIS13              // bit 5, shadows bit in COG1RIS1bits
21235 #define G1RIS13                 COG1RIS1bits.G1RIS13            // bit 5, shadows bit in COG1RIS1bits
21236 #define RIS14                   COG1RIS1bits.RIS14              // bit 6, shadows bit in COG1RIS1bits
21237 #define G1RIS14                 COG1RIS1bits.G1RIS14            // bit 6, shadows bit in COG1RIS1bits
21238 #define RIS15                   COG1RIS1bits.RIS15              // bit 7, shadows bit in COG1RIS1bits
21239 #define G1RIS15                 COG1RIS1bits.G1RIS15            // bit 7, shadows bit in COG1RIS1bits
21240 
21241 #define RSIM0                   COG1RSIM0bits.RSIM0             // bit 0, shadows bit in COG1RSIM0bits
21242 #define G1RSIM0                 COG1RSIM0bits.G1RSIM0           // bit 0, shadows bit in COG1RSIM0bits
21243 #define RSIM1                   COG1RSIM0bits.RSIM1             // bit 1, shadows bit in COG1RSIM0bits
21244 #define G1RSIM1                 COG1RSIM0bits.G1RSIM1           // bit 1, shadows bit in COG1RSIM0bits
21245 #define RSIM2                   COG1RSIM0bits.RSIM2             // bit 2, shadows bit in COG1RSIM0bits
21246 #define G1RSIM2                 COG1RSIM0bits.G1RSIM2           // bit 2, shadows bit in COG1RSIM0bits
21247 #define RSIM3                   COG1RSIM0bits.RSIM3             // bit 3, shadows bit in COG1RSIM0bits
21248 #define G1RSIM3                 COG1RSIM0bits.G1RSIM3           // bit 3, shadows bit in COG1RSIM0bits
21249 #define RSIM4                   COG1RSIM0bits.RSIM4             // bit 4, shadows bit in COG1RSIM0bits
21250 #define G1RSIM4                 COG1RSIM0bits.G1RSIM4           // bit 4, shadows bit in COG1RSIM0bits
21251 #define RSIM5                   COG1RSIM0bits.RSIM5             // bit 5, shadows bit in COG1RSIM0bits
21252 #define G1RSIM5                 COG1RSIM0bits.G1RSIM5           // bit 5, shadows bit in COG1RSIM0bits
21253 #define RSIM6                   COG1RSIM0bits.RSIM6             // bit 6, shadows bit in COG1RSIM0bits
21254 #define G1RSIM6                 COG1RSIM0bits.G1RSIM6           // bit 6, shadows bit in COG1RSIM0bits
21255 #define RSIM7                   COG1RSIM0bits.RSIM7             // bit 7, shadows bit in COG1RSIM0bits
21256 #define G1RSIM7                 COG1RSIM0bits.G1RSIM7           // bit 7, shadows bit in COG1RSIM0bits
21257 
21258 #define RSIM8                   COG1RSIM1bits.RSIM8             // bit 0, shadows bit in COG1RSIM1bits
21259 #define G1RSIM8                 COG1RSIM1bits.G1RSIM8           // bit 0, shadows bit in COG1RSIM1bits
21260 #define RSIM9                   COG1RSIM1bits.RSIM9             // bit 1, shadows bit in COG1RSIM1bits
21261 #define G1RSIM9                 COG1RSIM1bits.G1RSIM9           // bit 1, shadows bit in COG1RSIM1bits
21262 #define RSIM10                  COG1RSIM1bits.RSIM10            // bit 2, shadows bit in COG1RSIM1bits
21263 #define G1RSIM10                COG1RSIM1bits.G1RSIM10          // bit 2, shadows bit in COG1RSIM1bits
21264 #define RSIM11                  COG1RSIM1bits.RSIM11            // bit 3, shadows bit in COG1RSIM1bits
21265 #define G1RSIM11                COG1RSIM1bits.G1RSIM11          // bit 3, shadows bit in COG1RSIM1bits
21266 #define RSIM12                  COG1RSIM1bits.RSIM12            // bit 4, shadows bit in COG1RSIM1bits
21267 #define G1RSIM12                COG1RSIM1bits.G1RSIM12          // bit 4, shadows bit in COG1RSIM1bits
21268 #define RSIM13                  COG1RSIM1bits.RSIM13            // bit 5, shadows bit in COG1RSIM1bits
21269 #define G1RSIM13                COG1RSIM1bits.G1RSIM13          // bit 5, shadows bit in COG1RSIM1bits
21270 #define RSIM14                  COG1RSIM1bits.RSIM14            // bit 6, shadows bit in COG1RSIM1bits
21271 #define G1RSIM14                COG1RSIM1bits.G1RSIM14          // bit 6, shadows bit in COG1RSIM1bits
21272 #define RSIM15                  COG1RSIM1bits.RSIM15            // bit 7, shadows bit in COG1RSIM1bits
21273 #define G1RSIM15                COG1RSIM1bits.G1RSIM15          // bit 7, shadows bit in COG1RSIM1bits
21274 
21275 #define STRA                    COG1STRbits.STRA                // bit 0, shadows bit in COG1STRbits
21276 #define G1STRA                  COG1STRbits.G1STRA              // bit 0, shadows bit in COG1STRbits
21277 #define STRB                    COG1STRbits.STRB                // bit 1, shadows bit in COG1STRbits
21278 #define G1STRB                  COG1STRbits.G1STRB              // bit 1, shadows bit in COG1STRbits
21279 #define STRC                    COG1STRbits.STRC                // bit 2, shadows bit in COG1STRbits
21280 #define G1STRC                  COG1STRbits.G1STRC              // bit 2, shadows bit in COG1STRbits
21281 #define STRD                    COG1STRbits.STRD                // bit 3, shadows bit in COG1STRbits
21282 #define G1STRD                  COG1STRbits.G1STRD              // bit 3, shadows bit in COG1STRbits
21283 #define SDATA                   COG1STRbits.SDATA               // bit 4, shadows bit in COG1STRbits
21284 #define G1SDATA                 COG1STRbits.G1SDATA             // bit 4, shadows bit in COG1STRbits
21285 #define SDATB                   COG1STRbits.SDATB               // bit 5, shadows bit in COG1STRbits
21286 #define G1SDATB                 COG1STRbits.G1SDATB             // bit 5, shadows bit in COG1STRbits
21287 #define SDATC                   COG1STRbits.SDATC               // bit 6, shadows bit in COG1STRbits
21288 #define G1SDATC                 COG1STRbits.G1SDATC             // bit 6, shadows bit in COG1STRbits
21289 #define SDATD                   COG1STRbits.SDATD               // bit 7, shadows bit in COG1STRbits
21290 #define G1SDATD                 COG1STRbits.G1SDATD             // bit 7, shadows bit in COG1STRbits
21291 
21292 #define REF0                    DAC1CON1bits.REF0               // bit 0, shadows bit in DAC1CON1bits
21293 #define DAC1REF0                DAC1CON1bits.DAC1REF0           // bit 0, shadows bit in DAC1CON1bits
21294 #define R0                      DAC1CON1bits.R0                 // bit 0, shadows bit in DAC1CON1bits
21295 #define DAC1R0                  DAC1CON1bits.DAC1R0             // bit 0, shadows bit in DAC1CON1bits
21296 #define REF1                    DAC1CON1bits.REF1               // bit 1, shadows bit in DAC1CON1bits
21297 #define DAC1REF1                DAC1CON1bits.DAC1REF1           // bit 1, shadows bit in DAC1CON1bits
21298 #define R1                      DAC1CON1bits.R1                 // bit 1, shadows bit in DAC1CON1bits
21299 #define DAC1R1                  DAC1CON1bits.DAC1R1             // bit 1, shadows bit in DAC1CON1bits
21300 #define REF2                    DAC1CON1bits.REF2               // bit 2, shadows bit in DAC1CON1bits
21301 #define DAC1REF2                DAC1CON1bits.DAC1REF2           // bit 2, shadows bit in DAC1CON1bits
21302 #define R2                      DAC1CON1bits.R2                 // bit 2, shadows bit in DAC1CON1bits
21303 #define DAC1R2                  DAC1CON1bits.DAC1R2             // bit 2, shadows bit in DAC1CON1bits
21304 #define REF3                    DAC1CON1bits.REF3               // bit 3, shadows bit in DAC1CON1bits
21305 #define DAC1REF3                DAC1CON1bits.DAC1REF3           // bit 3, shadows bit in DAC1CON1bits
21306 #define R3                      DAC1CON1bits.R3                 // bit 3, shadows bit in DAC1CON1bits
21307 #define DAC1R3                  DAC1CON1bits.DAC1R3             // bit 3, shadows bit in DAC1CON1bits
21308 #define REF4                    DAC1CON1bits.REF4               // bit 4, shadows bit in DAC1CON1bits
21309 #define DAC1REF4                DAC1CON1bits.DAC1REF4           // bit 4, shadows bit in DAC1CON1bits
21310 #define R4                      DAC1CON1bits.R4                 // bit 4, shadows bit in DAC1CON1bits
21311 #define DAC1R4                  DAC1CON1bits.DAC1R4             // bit 4, shadows bit in DAC1CON1bits
21312 #define REF5                    DAC1CON1bits.REF5               // bit 5, shadows bit in DAC1CON1bits
21313 #define DAC1REF5                DAC1CON1bits.DAC1REF5           // bit 5, shadows bit in DAC1CON1bits
21314 #define R5                      DAC1CON1bits.R5                 // bit 5, shadows bit in DAC1CON1bits
21315 #define DAC1R5                  DAC1CON1bits.DAC1R5             // bit 5, shadows bit in DAC1CON1bits
21316 #define REF6                    DAC1CON1bits.REF6               // bit 6, shadows bit in DAC1CON1bits
21317 #define DAC1REF6                DAC1CON1bits.DAC1REF6           // bit 6, shadows bit in DAC1CON1bits
21318 #define R6                      DAC1CON1bits.R6                 // bit 6, shadows bit in DAC1CON1bits
21319 #define DAC1R6                  DAC1CON1bits.DAC1R6             // bit 6, shadows bit in DAC1CON1bits
21320 #define REF7                    DAC1CON1bits.REF7               // bit 7, shadows bit in DAC1CON1bits
21321 #define DAC1REF7                DAC1CON1bits.DAC1REF7           // bit 7, shadows bit in DAC1CON1bits
21322 #define R7                      DAC1CON1bits.R7                 // bit 7, shadows bit in DAC1CON1bits
21323 #define DAC1R7                  DAC1CON1bits.DAC1R7             // bit 7, shadows bit in DAC1CON1bits
21324 
21325 #define REF8                    DAC1CON2bits.REF8               // bit 0, shadows bit in DAC1CON2bits
21326 #define DAC1REF8                DAC1CON2bits.DAC1REF8           // bit 0, shadows bit in DAC1CON2bits
21327 #define R8                      DAC1CON2bits.R8                 // bit 0, shadows bit in DAC1CON2bits
21328 #define DAC1R8                  DAC1CON2bits.DAC1R8             // bit 0, shadows bit in DAC1CON2bits
21329 #define REF9                    DAC1CON2bits.REF9               // bit 1, shadows bit in DAC1CON2bits
21330 #define DAC1REF9                DAC1CON2bits.DAC1REF9           // bit 1, shadows bit in DAC1CON2bits
21331 #define R9                      DAC1CON2bits.R9                 // bit 1, shadows bit in DAC1CON2bits
21332 #define DAC1R9                  DAC1CON2bits.DAC1R9             // bit 1, shadows bit in DAC1CON2bits
21333 #define REF10                   DAC1CON2bits.REF10              // bit 2, shadows bit in DAC1CON2bits
21334 #define DAC1REF10               DAC1CON2bits.DAC1REF10          // bit 2, shadows bit in DAC1CON2bits
21335 #define R10                     DAC1CON2bits.R10                // bit 2, shadows bit in DAC1CON2bits
21336 #define DAC1R10                 DAC1CON2bits.DAC1R10            // bit 2, shadows bit in DAC1CON2bits
21337 #define REF11                   DAC1CON2bits.REF11              // bit 3, shadows bit in DAC1CON2bits
21338 #define DAC1REF11               DAC1CON2bits.DAC1REF11          // bit 3, shadows bit in DAC1CON2bits
21339 #define R11                     DAC1CON2bits.R11                // bit 3, shadows bit in DAC1CON2bits
21340 #define DAC1R11                 DAC1CON2bits.DAC1R11            // bit 3, shadows bit in DAC1CON2bits
21341 #define REF12                   DAC1CON2bits.REF12              // bit 4, shadows bit in DAC1CON2bits
21342 #define DAC1REF12               DAC1CON2bits.DAC1REF12          // bit 4, shadows bit in DAC1CON2bits
21343 #define R12                     DAC1CON2bits.R12                // bit 4, shadows bit in DAC1CON2bits
21344 #define DAC1R12                 DAC1CON2bits.DAC1R12            // bit 4, shadows bit in DAC1CON2bits
21345 #define REF13                   DAC1CON2bits.REF13              // bit 5, shadows bit in DAC1CON2bits
21346 #define DAC1REF13               DAC1CON2bits.DAC1REF13          // bit 5, shadows bit in DAC1CON2bits
21347 #define R13                     DAC1CON2bits.R13                // bit 5, shadows bit in DAC1CON2bits
21348 #define DAC1R13                 DAC1CON2bits.DAC1R13            // bit 5, shadows bit in DAC1CON2bits
21349 #define REF14                   DAC1CON2bits.REF14              // bit 6, shadows bit in DAC1CON2bits
21350 #define DAC1REF14               DAC1CON2bits.DAC1REF14          // bit 6, shadows bit in DAC1CON2bits
21351 #define R14                     DAC1CON2bits.R14                // bit 6, shadows bit in DAC1CON2bits
21352 #define DAC1R14                 DAC1CON2bits.DAC1R14            // bit 6, shadows bit in DAC1CON2bits
21353 #define REF15                   DAC1CON2bits.REF15              // bit 7, shadows bit in DAC1CON2bits
21354 #define DAC1REF15               DAC1CON2bits.DAC1REF15          // bit 7, shadows bit in DAC1CON2bits
21355 #define R15                     DAC1CON2bits.R15                // bit 7, shadows bit in DAC1CON2bits
21356 #define DAC1R15                 DAC1CON2bits.DAC1R15            // bit 7, shadows bit in DAC1CON2bits
21357 
21358 #define DAC1LD                  DACLDbits.DAC1LD                // bit 0
21359 #define DAC2LD                  DACLDbits.DAC2LD                // bit 1
21360 #define DAC5LD                  DACLDbits.DAC5LD                // bit 4
21361 
21362 #define TSRNG                   FVRCONbits.TSRNG                // bit 4
21363 #define TSEN                    FVRCONbits.TSEN                 // bit 5
21364 #define FVRRDY                  FVRCONbits.FVRRDY               // bit 6
21365 #define FVREN                   FVRCONbits.FVREN                // bit 7
21366 
21367 #define HIDB0                   HIDRVBbits.HIDB0                // bit 0
21368 #define HIDB1                   HIDRVBbits.HIDB1                // bit 1
21369 
21370 #define INLVE3                  INLVEbits.INLVE3                // bit 3
21371 
21372 #define INLVLA0                 INLVLAbits.INLVLA0              // bit 0
21373 #define INLVLA1                 INLVLAbits.INLVLA1              // bit 1
21374 #define INLVLA2                 INLVLAbits.INLVLA2              // bit 2
21375 #define INLVLA3                 INLVLAbits.INLVLA3              // bit 3
21376 #define INLVLA4                 INLVLAbits.INLVLA4              // bit 4
21377 #define INLVLA5                 INLVLAbits.INLVLA5              // bit 5
21378 #define INLVA6                  INLVLAbits.INLVA6               // bit 6
21379 #define INLVA7                  INLVLAbits.INLVA7               // bit 7
21380 
21381 #define INLVB0                  INLVLBbits.INLVB0               // bit 0
21382 #define INLVB1                  INLVLBbits.INLVB1               // bit 1
21383 #define INLVB2                  INLVLBbits.INLVB2               // bit 2
21384 #define INLVB3                  INLVLBbits.INLVB3               // bit 3
21385 #define INLVLB4                 INLVLBbits.INLVLB4              // bit 4
21386 #define INLVLB5                 INLVLBbits.INLVLB5              // bit 5
21387 #define INLVLB6                 INLVLBbits.INLVLB6              // bit 6
21388 #define INLVLB7                 INLVLBbits.INLVLB7              // bit 7
21389 
21390 #define INLVLC0                 INLVLCbits.INLVLC0              // bit 0
21391 #define INLVLC1                 INLVLCbits.INLVLC1              // bit 1
21392 #define INLVLC2                 INLVLCbits.INLVLC2              // bit 2
21393 #define INLVLC3                 INLVLCbits.INLVLC3              // bit 3
21394 #define INLVLC4                 INLVLCbits.INLVLC4              // bit 4
21395 #define INLVLC5                 INLVLCbits.INLVLC5              // bit 5
21396 #define INLVLC6                 INLVLCbits.INLVLC6              // bit 6
21397 #define INLVLC7                 INLVLCbits.INLVLC7              // bit 7
21398 
21399 #define IOCIF                   INTCONbits.IOCIF                // bit 0
21400 #define INTF                    INTCONbits.INTF                 // bit 1
21401 #define TMR0IF                  INTCONbits.TMR0IF               // bit 2, shadows bit in INTCONbits
21402 #define T0IF                    INTCONbits.T0IF                 // bit 2, shadows bit in INTCONbits
21403 #define IOCIE                   INTCONbits.IOCIE                // bit 3
21404 #define INTE                    INTCONbits.INTE                 // bit 4
21405 #define TMR0IE                  INTCONbits.TMR0IE               // bit 5, shadows bit in INTCONbits
21406 #define T0IE                    INTCONbits.T0IE                 // bit 5, shadows bit in INTCONbits
21407 #define PEIE                    INTCONbits.PEIE                 // bit 6
21408 #define GIE                     INTCONbits.GIE                  // bit 7
21409 
21410 #define IOCAF0                  IOCAFbits.IOCAF0                // bit 0
21411 #define IOCAF1                  IOCAFbits.IOCAF1                // bit 1
21412 #define IOCAF2                  IOCAFbits.IOCAF2                // bit 2
21413 #define IOCAF3                  IOCAFbits.IOCAF3                // bit 3
21414 #define IOCAF4                  IOCAFbits.IOCAF4                // bit 4
21415 #define IOCAF5                  IOCAFbits.IOCAF5                // bit 5
21416 #define IOCAF6                  IOCAFbits.IOCAF6                // bit 6
21417 #define IOCAF7                  IOCAFbits.IOCAF7                // bit 7
21418 
21419 #define IOCAN0                  IOCANbits.IOCAN0                // bit 0
21420 #define IOCAN1                  IOCANbits.IOCAN1                // bit 1
21421 #define IOCAN2                  IOCANbits.IOCAN2                // bit 2
21422 #define IOCAN3                  IOCANbits.IOCAN3                // bit 3
21423 #define IOCAN4                  IOCANbits.IOCAN4                // bit 4
21424 #define IOCAN5                  IOCANbits.IOCAN5                // bit 5
21425 #define IOCAN6                  IOCANbits.IOCAN6                // bit 6
21426 #define IOCAN7                  IOCANbits.IOCAN7                // bit 7
21427 
21428 #define IOCAP0                  IOCAPbits.IOCAP0                // bit 0
21429 #define IOCAP1                  IOCAPbits.IOCAP1                // bit 1
21430 #define IOCAP2                  IOCAPbits.IOCAP2                // bit 2
21431 #define IOCAP3                  IOCAPbits.IOCAP3                // bit 3
21432 #define IOCAP4                  IOCAPbits.IOCAP4                // bit 4
21433 #define IOCAP5                  IOCAPbits.IOCAP5                // bit 5
21434 #define IOCAP6                  IOCAPbits.IOCAP6                // bit 6
21435 #define IOCAP7                  IOCAPbits.IOCAP7                // bit 7
21436 
21437 #define IOCBF0                  IOCBFbits.IOCBF0                // bit 0
21438 #define IOCBF1                  IOCBFbits.IOCBF1                // bit 1
21439 #define IOCBF2                  IOCBFbits.IOCBF2                // bit 2
21440 #define IOCBF3                  IOCBFbits.IOCBF3                // bit 3
21441 #define IOCBF4                  IOCBFbits.IOCBF4                // bit 4
21442 #define IOCBF5                  IOCBFbits.IOCBF5                // bit 5
21443 #define IOCBF6                  IOCBFbits.IOCBF6                // bit 6
21444 #define IOCBF7                  IOCBFbits.IOCBF7                // bit 7
21445 
21446 #define IOCBN0                  IOCBNbits.IOCBN0                // bit 0
21447 #define IOCBN1                  IOCBNbits.IOCBN1                // bit 1
21448 #define IOCBN2                  IOCBNbits.IOCBN2                // bit 2
21449 #define IOCBN3                  IOCBNbits.IOCBN3                // bit 3
21450 #define IOCBN4                  IOCBNbits.IOCBN4                // bit 4
21451 #define IOCBN5                  IOCBNbits.IOCBN5                // bit 5
21452 #define IOCBN6                  IOCBNbits.IOCBN6                // bit 6
21453 #define IOCBN7                  IOCBNbits.IOCBN7                // bit 7
21454 
21455 #define IOCBP0                  IOCBPbits.IOCBP0                // bit 0
21456 #define IOCBP1                  IOCBPbits.IOCBP1                // bit 1
21457 #define IOCBP2                  IOCBPbits.IOCBP2                // bit 2
21458 #define IOCBP3                  IOCBPbits.IOCBP3                // bit 3
21459 #define IOCBP4                  IOCBPbits.IOCBP4                // bit 4
21460 #define IOCBP5                  IOCBPbits.IOCBP5                // bit 5
21461 #define IOCBP6                  IOCBPbits.IOCBP6                // bit 6
21462 #define IOCBP7                  IOCBPbits.IOCBP7                // bit 7
21463 
21464 #define IOCCF0                  IOCCFbits.IOCCF0                // bit 0
21465 #define IOCCF1                  IOCCFbits.IOCCF1                // bit 1
21466 #define IOCCF2                  IOCCFbits.IOCCF2                // bit 2
21467 #define IOCCF3                  IOCCFbits.IOCCF3                // bit 3
21468 #define IOCCF4                  IOCCFbits.IOCCF4                // bit 4
21469 #define IOCCF5                  IOCCFbits.IOCCF5                // bit 5
21470 #define IOCCF6                  IOCCFbits.IOCCF6                // bit 6
21471 #define IOCCF7                  IOCCFbits.IOCCF7                // bit 7
21472 
21473 #define IOCCN0                  IOCCNbits.IOCCN0                // bit 0
21474 #define IOCCN1                  IOCCNbits.IOCCN1                // bit 1
21475 #define IOCCN2                  IOCCNbits.IOCCN2                // bit 2
21476 #define IOCCN3                  IOCCNbits.IOCCN3                // bit 3
21477 #define IOCCN4                  IOCCNbits.IOCCN4                // bit 4
21478 #define IOCCN5                  IOCCNbits.IOCCN5                // bit 5
21479 #define IOCCN6                  IOCCNbits.IOCCN6                // bit 6
21480 #define IOCCN7                  IOCCNbits.IOCCN7                // bit 7
21481 
21482 #define IOCCP0                  IOCCPbits.IOCCP0                // bit 0
21483 #define IOCCP1                  IOCCPbits.IOCCP1                // bit 1
21484 #define IOCCP2                  IOCCPbits.IOCCP2                // bit 2
21485 #define IOCCP3                  IOCCPbits.IOCCP3                // bit 3
21486 #define IOCCP4                  IOCCPbits.IOCCP4                // bit 4
21487 #define IOCCP5                  IOCCPbits.IOCCP5                // bit 5
21488 #define IOCCP6                  IOCCPbits.IOCCP6                // bit 6
21489 #define IOCCP7                  IOCCPbits.IOCCP7                // bit 7
21490 
21491 #define IOCEF3                  IOCEFbits.IOCEF3                // bit 3
21492 
21493 #define IOCEN3                  IOCENbits.IOCEN3                // bit 3
21494 
21495 #define IOCEP3                  IOCEPbits.IOCEP3                // bit 3
21496 
21497 #define LATA0                   LATAbits.LATA0                  // bit 0
21498 #define LATA1                   LATAbits.LATA1                  // bit 1
21499 #define LATA2                   LATAbits.LATA2                  // bit 2
21500 #define LATA3                   LATAbits.LATA3                  // bit 3
21501 #define LATA4                   LATAbits.LATA4                  // bit 4
21502 #define LATA5                   LATAbits.LATA5                  // bit 5
21503 #define LATA6                   LATAbits.LATA6                  // bit 6
21504 #define LATA7                   LATAbits.LATA7                  // bit 7
21505 
21506 #define LATB0                   LATBbits.LATB0                  // bit 0
21507 #define LATB1                   LATBbits.LATB1                  // bit 1
21508 #define LATB2                   LATBbits.LATB2                  // bit 2
21509 #define LATB3                   LATBbits.LATB3                  // bit 3
21510 #define LATB4                   LATBbits.LATB4                  // bit 4
21511 #define LATB5                   LATBbits.LATB5                  // bit 5
21512 #define LATB6                   LATBbits.LATB6                  // bit 6
21513 #define LATB7                   LATBbits.LATB7                  // bit 7
21514 
21515 #define LATC0                   LATCbits.LATC0                  // bit 0
21516 #define LATC1                   LATCbits.LATC1                  // bit 1
21517 #define LATC2                   LATCbits.LATC2                  // bit 2
21518 #define LATC3                   LATCbits.LATC3                  // bit 3
21519 #define LATC4                   LATCbits.LATC4                  // bit 4
21520 #define LATC5                   LATCbits.LATC5                  // bit 5
21521 #define LATC6                   LATCbits.LATC6                  // bit 6
21522 #define LATC7                   LATCbits.LATC7                  // bit 7
21523 
21524 #define CH0                     MD1CARHbits.CH0                 // bit 0, shadows bit in MD1CARHbits
21525 #define MD1CH0                  MD1CARHbits.MD1CH0              // bit 0, shadows bit in MD1CARHbits
21526 #define CH1                     MD1CARHbits.CH1                 // bit 1, shadows bit in MD1CARHbits
21527 #define MD1CH1                  MD1CARHbits.MD1CH1              // bit 1, shadows bit in MD1CARHbits
21528 #define CH2                     MD1CARHbits.CH2                 // bit 2, shadows bit in MD1CARHbits
21529 #define MD1CH2                  MD1CARHbits.MD1CH2              // bit 2, shadows bit in MD1CARHbits
21530 #define CH3                     MD1CARHbits.CH3                 // bit 3, shadows bit in MD1CARHbits
21531 #define MD1CH3                  MD1CARHbits.MD1CH3              // bit 3, shadows bit in MD1CARHbits
21532 #define CH4                     MD1CARHbits.CH4                 // bit 4
21533 
21534 #define CL0                     MD1CARLbits.CL0                 // bit 0, shadows bit in MD1CARLbits
21535 #define MD1CL0                  MD1CARLbits.MD1CL0              // bit 0, shadows bit in MD1CARLbits
21536 #define CL1                     MD1CARLbits.CL1                 // bit 1, shadows bit in MD1CARLbits
21537 #define MD1CL1                  MD1CARLbits.MD1CL1              // bit 1, shadows bit in MD1CARLbits
21538 #define CL2                     MD1CARLbits.CL2                 // bit 2, shadows bit in MD1CARLbits
21539 #define MD1CL2                  MD1CARLbits.MD1CL2              // bit 2, shadows bit in MD1CARLbits
21540 #define CL3                     MD1CARLbits.CL3                 // bit 3, shadows bit in MD1CARLbits
21541 #define MD1CL3                  MD1CARLbits.MD1CL3              // bit 3, shadows bit in MD1CARLbits
21542 #define CL4                     MD1CARLbits.CL4                 // bit 4
21543 
21544 #define CLSYNC                  MD1CON1bits.CLSYNC              // bit 0, shadows bit in MD1CON1bits
21545 #define MD1CLSYNC               MD1CON1bits.MD1CLSYNC           // bit 0, shadows bit in MD1CON1bits
21546 #define CLPOL                   MD1CON1bits.CLPOL               // bit 1, shadows bit in MD1CON1bits
21547 #define MD1CLPOL                MD1CON1bits.MD1CLPOL            // bit 1, shadows bit in MD1CON1bits
21548 #define CHSYNC                  MD1CON1bits.CHSYNC              // bit 4, shadows bit in MD1CON1bits
21549 #define MD1CHSYNC               MD1CON1bits.MD1CHSYNC           // bit 4, shadows bit in MD1CON1bits
21550 #define CHPOL                   MD1CON1bits.CHPOL               // bit 5, shadows bit in MD1CON1bits
21551 #define MD1CHPOL                MD1CON1bits.MD1CHPOL            // bit 5, shadows bit in MD1CON1bits
21552 
21553 #define MS0                     MD1SRCbits.MS0                  // bit 0, shadows bit in MD1SRCbits
21554 #define MD1MS0                  MD1SRCbits.MD1MS0               // bit 0, shadows bit in MD1SRCbits
21555 #define MS1                     MD1SRCbits.MS1                  // bit 1, shadows bit in MD1SRCbits
21556 #define MD1MS1                  MD1SRCbits.MD1MS1               // bit 1, shadows bit in MD1SRCbits
21557 #define MS2                     MD1SRCbits.MS2                  // bit 2, shadows bit in MD1SRCbits
21558 #define MD1MS2                  MD1SRCbits.MD1MS2               // bit 2, shadows bit in MD1SRCbits
21559 #define MS3                     MD1SRCbits.MS3                  // bit 3, shadows bit in MD1SRCbits
21560 #define MD1MS3                  MD1SRCbits.MD1MS3               // bit 3, shadows bit in MD1SRCbits
21561 #define MS4                     MD1SRCbits.MS4                  // bit 4, shadows bit in MD1SRCbits
21562 #define MD1MS4                  MD1SRCbits.MD1MS4               // bit 4, shadows bit in MD1SRCbits
21563 
21564 #define ODA0                    ODCONAbits.ODA0                 // bit 0
21565 #define ODA1                    ODCONAbits.ODA1                 // bit 1
21566 #define ODA2                    ODCONAbits.ODA2                 // bit 2
21567 #define ODA3                    ODCONAbits.ODA3                 // bit 3
21568 #define ODA4                    ODCONAbits.ODA4                 // bit 4
21569 #define ODA5                    ODCONAbits.ODA5                 // bit 5
21570 #define ODA6                    ODCONAbits.ODA6                 // bit 6
21571 #define ODA7                    ODCONAbits.ODA7                 // bit 7
21572 
21573 #define ODC0                    ODCONCbits.ODC0                 // bit 0
21574 #define ODC1                    ODCONCbits.ODC1                 // bit 1
21575 #define ODC2                    ODCONCbits.ODC2                 // bit 2
21576 #define ODC3                    ODCONCbits.ODC3                 // bit 3
21577 #define ODC4                    ODCONCbits.ODC4                 // bit 4
21578 #define ODC5                    ODCONCbits.ODC5                 // bit 5
21579 #define ODC6                    ODCONCbits.ODC6                 // bit 6
21580 #define ODC7                    ODCONCbits.ODC7                 // bit 7
21581 
21582 #define PS0                     OPTION_REGbits.PS0              // bit 0
21583 #define PS1                     OPTION_REGbits.PS1              // bit 1
21584 #define PS2                     OPTION_REGbits.PS2              // bit 2
21585 #define PSA                     OPTION_REGbits.PSA              // bit 3
21586 #define TMR0SE                  OPTION_REGbits.TMR0SE           // bit 4, shadows bit in OPTION_REGbits
21587 #define T0SE                    OPTION_REGbits.T0SE             // bit 4, shadows bit in OPTION_REGbits
21588 #define TMR0CS                  OPTION_REGbits.TMR0CS           // bit 5, shadows bit in OPTION_REGbits
21589 #define T0CS                    OPTION_REGbits.T0CS             // bit 5, shadows bit in OPTION_REGbits
21590 #define INTEDG                  OPTION_REGbits.INTEDG           // bit 6
21591 #define NOT_WPUEN               OPTION_REGbits.NOT_WPUEN        // bit 7
21592 
21593 #define SCS0                    OSCCONbits.SCS0                 // bit 0
21594 #define SCS1                    OSCCONbits.SCS1                 // bit 1
21595 #define IRCF0                   OSCCONbits.IRCF0                // bit 3
21596 #define IRCF1                   OSCCONbits.IRCF1                // bit 4
21597 #define IRCF2                   OSCCONbits.IRCF2                // bit 5
21598 #define IRCF3                   OSCCONbits.IRCF3                // bit 6
21599 #define SPLLEN                  OSCCONbits.SPLLEN               // bit 7
21600 
21601 #define HFIOFS                  OSCSTATbits.HFIOFS              // bit 0
21602 #define LFIOFR                  OSCSTATbits.LFIOFR              // bit 1
21603 #define MFIOFR                  OSCSTATbits.MFIOFR              // bit 2
21604 #define HFIOFL                  OSCSTATbits.HFIOFL              // bit 3
21605 #define HFIOFR                  OSCSTATbits.HFIOFR              // bit 4
21606 #define OSTS                    OSCSTATbits.OSTS                // bit 5
21607 #define PLLR                    OSCSTATbits.PLLR                // bit 6
21608 #define SOSCR                   OSCSTATbits.SOSCR               // bit 7
21609 
21610 #define TUN0                    OSCTUNEbits.TUN0                // bit 0
21611 #define TUN1                    OSCTUNEbits.TUN1                // bit 1
21612 #define TUN2                    OSCTUNEbits.TUN2                // bit 2
21613 #define TUN3                    OSCTUNEbits.TUN3                // bit 3
21614 #define TUN4                    OSCTUNEbits.TUN4                // bit 4
21615 #define TUN5                    OSCTUNEbits.TUN5                // bit 5
21616 
21617 #define NOT_BOR                 PCONbits.NOT_BOR                // bit 0
21618 #define NOT_POR                 PCONbits.NOT_POR                // bit 1
21619 #define NOT_RI                  PCONbits.NOT_RI                 // bit 2
21620 #define NOT_RMCLR               PCONbits.NOT_RMCLR              // bit 3
21621 #define NOT_RWDT                PCONbits.NOT_RWDT               // bit 4
21622 #define STKUNF                  PCONbits.STKUNF                 // bit 6
21623 #define STKOVF                  PCONbits.STKOVF                 // bit 7
21624 
21625 #define TMR1IE                  PIE1bits.TMR1IE                 // bit 0
21626 #define TMR2IE                  PIE1bits.TMR2IE                 // bit 1
21627 #define CCP1IE                  PIE1bits.CCP1IE                 // bit 2, shadows bit in PIE1bits
21628 #define CCPIE                   PIE1bits.CCPIE                  // bit 2, shadows bit in PIE1bits
21629 #define SSP1IE                  PIE1bits.SSP1IE                 // bit 3
21630 #define TXIE                    PIE1bits.TXIE                   // bit 4
21631 #define RCIE                    PIE1bits.RCIE                   // bit 5
21632 #define ADIE                    PIE1bits.ADIE                   // bit 6
21633 #define TMR1GIE                 PIE1bits.TMR1GIE                // bit 7
21634 
21635 #define CCP2IE                  PIE2bits.CCP2IE                 // bit 0
21636 #define C3IE                    PIE2bits.C3IE                   // bit 1
21637 #define C4IE                    PIE2bits.C4IE                   // bit 2
21638 #define BCL1IE                  PIE2bits.BCL1IE                 // bit 3
21639 #define COGIE                   PIE2bits.COGIE                  // bit 4
21640 #define C1IE                    PIE2bits.C1IE                   // bit 5
21641 #define C2IE                    PIE2bits.C2IE                   // bit 6
21642 #define OSFIE                   PIE2bits.OSFIE                  // bit 7
21643 
21644 #define CLC1IE                  PIE3bits.CLC1IE                 // bit 0
21645 #define CLC2IE                  PIE3bits.CLC2IE                 // bit 1
21646 #define CLC3IE                  PIE3bits.CLC3IE                 // bit 2
21647 #define CLC4IE                  PIE3bits.CLC4IE                 // bit 3
21648 #define ZCDIE                   PIE3bits.ZCDIE                  // bit 4
21649 #define COG2IE                  PIE3bits.COG2IE                 // bit 5
21650 
21651 #define TMR4IE                  PIE4bits.TMR4IE                 // bit 0
21652 #define TMR6IE                  PIE4bits.TMR6IE                 // bit 1
21653 #define TMR3IE                  PIE4bits.TMR3IE                 // bit 2
21654 #define TMR3GIE                 PIE4bits.TMR3GIE                // bit 3
21655 #define TMR5IE                  PIE4bits.TMR5IE                 // bit 4
21656 #define TMR5GIE                 PIE4bits.TMR5GIE                // bit 5
21657 #define TMR8IE                  PIE4bits.TMR8IE                 // bit 6
21658 
21659 #define C5IE                    PIE5bits.C5IE                   // bit 0
21660 #define C6IE                    PIE5bits.C6IE                   // bit 1
21661 #define COG3IE                  PIE5bits.COG3IE                 // bit 4
21662 #define CCP7IE                  PIE5bits.CCP7IE                 // bit 6
21663 
21664 #define PWM5IE                  PIE6bits.PWM5IE                 // bit 0
21665 #define PWM6IE                  PIE6bits.PWM6IE                 // bit 1
21666 #define PWM11IE                 PIE6bits.PWM11IE                // bit 2
21667 
21668 #define TMR1IF                  PIR1bits.TMR1IF                 // bit 0
21669 #define TMR2IF                  PIR1bits.TMR2IF                 // bit 1
21670 #define CCP1IF                  PIR1bits.CCP1IF                 // bit 2, shadows bit in PIR1bits
21671 #define CCPIF                   PIR1bits.CCPIF                  // bit 2, shadows bit in PIR1bits
21672 #define SSP1IF                  PIR1bits.SSP1IF                 // bit 3
21673 #define TXIF                    PIR1bits.TXIF                   // bit 4
21674 #define RCIF                    PIR1bits.RCIF                   // bit 5
21675 #define ADIF                    PIR1bits.ADIF                   // bit 6
21676 #define TMR1GIF                 PIR1bits.TMR1GIF                // bit 7
21677 
21678 #define CCP2IF                  PIR2bits.CCP2IF                 // bit 0
21679 #define C3IF                    PIR2bits.C3IF                   // bit 1
21680 #define C4IF                    PIR2bits.C4IF                   // bit 2
21681 #define BCL1IF                  PIR2bits.BCL1IF                 // bit 3
21682 #define COG1IF                  PIR2bits.COG1IF                 // bit 4
21683 #define C1IF                    PIR2bits.C1IF                   // bit 5
21684 #define C2IF                    PIR2bits.C2IF                   // bit 6
21685 #define OSFIF                   PIR2bits.OSFIF                  // bit 7
21686 
21687 #define CLC1IF                  PIR3bits.CLC1IF                 // bit 0
21688 #define CLC2IF                  PIR3bits.CLC2IF                 // bit 1
21689 #define CLC3IF                  PIR3bits.CLC3IF                 // bit 2
21690 #define CLC4IF                  PIR3bits.CLC4IF                 // bit 3
21691 #define ZCDIF                   PIR3bits.ZCDIF                  // bit 4
21692 #define COG2IF                  PIR3bits.COG2IF                 // bit 5
21693 
21694 #define TMR4IF                  PIR4bits.TMR4IF                 // bit 0
21695 #define TMR6IF                  PIR4bits.TMR6IF                 // bit 1
21696 #define TMR3IF                  PIR4bits.TMR3IF                 // bit 2
21697 #define TMR3GIF                 PIR4bits.TMR3GIF                // bit 3
21698 #define TMR5IF                  PIR4bits.TMR5IF                 // bit 4
21699 #define TMR5GIF                 PIR4bits.TMR5GIF                // bit 5
21700 #define TMR8IF                  PIR4bits.TMR8IF                 // bit 6
21701 
21702 #define C5IF                    PIR5bits.C5IF                   // bit 0
21703 #define C6IF                    PIR5bits.C6IF                   // bit 1
21704 #define COG3IF                  PIR5bits.COG3IF                 // bit 4
21705 #define CCP7IF                  PIR5bits.CCP7IF                 // bit 6
21706 
21707 #define PWM5IF                  PIR6bits.PWM5IF                 // bit 0
21708 #define PWM6IF                  PIR6bits.PWM6IF                 // bit 1
21709 #define PWM11IF                 PIR6bits.PWM11IF                // bit 2
21710 
21711 #define RD                      PMCON1bits.RD                   // bit 0
21712 #define WR                      PMCON1bits.WR                   // bit 1
21713 #define WREN                    PMCON1bits.WREN                 // bit 2
21714 #define WRERR                   PMCON1bits.WRERR                // bit 3
21715 #define FREE                    PMCON1bits.FREE                 // bit 4
21716 #define LWLO                    PMCON1bits.LWLO                 // bit 5
21717 #define CFGS                    PMCON1bits.CFGS                 // bit 6
21718 
21719 #define RA0                     PORTAbits.RA0                   // bit 0
21720 #define RA1                     PORTAbits.RA1                   // bit 1
21721 #define RA2                     PORTAbits.RA2                   // bit 2
21722 #define RA3                     PORTAbits.RA3                   // bit 3
21723 #define RA4                     PORTAbits.RA4                   // bit 4
21724 #define RA5                     PORTAbits.RA5                   // bit 5
21725 #define RA6                     PORTAbits.RA6                   // bit 6
21726 #define RA7                     PORTAbits.RA7                   // bit 7
21727 
21728 #define RB0                     PORTBbits.RB0                   // bit 0
21729 #define RB1                     PORTBbits.RB1                   // bit 1
21730 #define RB2                     PORTBbits.RB2                   // bit 2
21731 #define RB3                     PORTBbits.RB3                   // bit 3
21732 #define RB4                     PORTBbits.RB4                   // bit 4
21733 #define RB5                     PORTBbits.RB5                   // bit 5
21734 #define RB6                     PORTBbits.RB6                   // bit 6
21735 #define RB7                     PORTBbits.RB7                   // bit 7
21736 
21737 #define RC0                     PORTCbits.RC0                   // bit 0
21738 #define RC1                     PORTCbits.RC1                   // bit 1
21739 #define RC2                     PORTCbits.RC2                   // bit 2
21740 #define RC3                     PORTCbits.RC3                   // bit 3
21741 #define RC4                     PORTCbits.RC4                   // bit 4
21742 #define RC5                     PORTCbits.RC5                   // bit 5
21743 #define RC6                     PORTCbits.RC6                   // bit 6
21744 #define RC7                     PORTCbits.RC7                   // bit 7
21745 
21746 #define RE3                     PORTEbits.RE3                   // bit 3
21747 
21748 #define PPSLOCKED               PPSLOCKbits.PPSLOCKED           // bit 0
21749 
21750 #define RPOL                    PRG1CON1bits.RPOL               // bit 0, shadows bit in PRG1CON1bits
21751 #define RG1RPOL                 PRG1CON1bits.RG1RPOL            // bit 0, shadows bit in PRG1CON1bits
21752 #define FPOL                    PRG1CON1bits.FPOL               // bit 1, shadows bit in PRG1CON1bits
21753 #define RG1FPOL                 PRG1CON1bits.RG1FPOL            // bit 1, shadows bit in PRG1CON1bits
21754 #define RDY                     PRG1CON1bits.RDY                // bit 2, shadows bit in PRG1CON1bits
21755 #define RG1RDY                  PRG1CON1bits.RG1RDY             // bit 2, shadows bit in PRG1CON1bits
21756 
21757 #define ISET0                   PRG1CON2bits.ISET0              // bit 0, shadows bit in PRG1CON2bits
21758 #define RG1ISET0                PRG1CON2bits.RG1ISET0           // bit 0, shadows bit in PRG1CON2bits
21759 #define ISET1                   PRG1CON2bits.ISET1              // bit 1, shadows bit in PRG1CON2bits
21760 #define RG1ISET1                PRG1CON2bits.RG1ISET1           // bit 1, shadows bit in PRG1CON2bits
21761 #define ISET2                   PRG1CON2bits.ISET2              // bit 2, shadows bit in PRG1CON2bits
21762 #define RG1ISET2                PRG1CON2bits.RG1ISET2           // bit 2, shadows bit in PRG1CON2bits
21763 #define ISET3                   PRG1CON2bits.ISET3              // bit 3, shadows bit in PRG1CON2bits
21764 #define RG1ISET3                PRG1CON2bits.RG1ISET3           // bit 3, shadows bit in PRG1CON2bits
21765 #define ISET4                   PRG1CON2bits.ISET4              // bit 4, shadows bit in PRG1CON2bits
21766 #define RG1ISET4                PRG1CON2bits.RG1ISET4           // bit 4, shadows bit in PRG1CON2bits
21767 
21768 #define FTSS0                   PRG1FTSSbits.FTSS0              // bit 0, shadows bit in PRG1FTSSbits
21769 #define RG1FTSS0                PRG1FTSSbits.RG1FTSS0           // bit 0, shadows bit in PRG1FTSSbits
21770 #define FTSS1                   PRG1FTSSbits.FTSS1              // bit 1, shadows bit in PRG1FTSSbits
21771 #define RG1FTSS1                PRG1FTSSbits.RG1FTSS1           // bit 1, shadows bit in PRG1FTSSbits
21772 #define FTSS2                   PRG1FTSSbits.FTSS2              // bit 2, shadows bit in PRG1FTSSbits
21773 #define RG1FTSS2                PRG1FTSSbits.RG1FTSS2           // bit 2, shadows bit in PRG1FTSSbits
21774 #define FTSS3                   PRG1FTSSbits.FTSS3              // bit 3, shadows bit in PRG1FTSSbits
21775 #define RG1FTSS3                PRG1FTSSbits.RG1FTSS3           // bit 3, shadows bit in PRG1FTSSbits
21776 
21777 #define INS0                    PRG1INSbits.INS0                // bit 0, shadows bit in PRG1INSbits
21778 #define RG1INS0                 PRG1INSbits.RG1INS0             // bit 0, shadows bit in PRG1INSbits
21779 #define INS1                    PRG1INSbits.INS1                // bit 1, shadows bit in PRG1INSbits
21780 #define RG1INS1                 PRG1INSbits.RG1INS1             // bit 1, shadows bit in PRG1INSbits
21781 #define INS2                    PRG1INSbits.INS2                // bit 2, shadows bit in PRG1INSbits
21782 #define RG1INS2                 PRG1INSbits.RG1INS2             // bit 2, shadows bit in PRG1INSbits
21783 #define INS3                    PRG1INSbits.INS3                // bit 3, shadows bit in PRG1INSbits
21784 #define RG1INS3                 PRG1INSbits.RG1INS3             // bit 3, shadows bit in PRG1INSbits
21785 
21786 #define RTSS0                   PRG1RTSSbits.RTSS0              // bit 0, shadows bit in PRG1RTSSbits
21787 #define RG1RTSS0                PRG1RTSSbits.RG1RTSS0           // bit 0, shadows bit in PRG1RTSSbits
21788 #define RTSS1                   PRG1RTSSbits.RTSS1              // bit 1, shadows bit in PRG1RTSSbits
21789 #define RG1RTSS1                PRG1RTSSbits.RG1RTSS1           // bit 1, shadows bit in PRG1RTSSbits
21790 #define RTSS2                   PRG1RTSSbits.RTSS2              // bit 2, shadows bit in PRG1RTSSbits
21791 #define RG1RTSS2                PRG1RTSSbits.RG1RTSS2           // bit 2, shadows bit in PRG1RTSSbits
21792 #define RTSS3                   PRG1RTSSbits.RTSS3              // bit 3, shadows bit in PRG1RTSSbits
21793 #define RG1RTSS3                PRG1RTSSbits.RG1RTSS3           // bit 3, shadows bit in PRG1RTSSbits
21794 
21795 #define DC2                     PWM3DCHbits.DC2                 // bit 0, shadows bit in PWM3DCHbits
21796 #define PWM3DC2                 PWM3DCHbits.PWM3DC2             // bit 0, shadows bit in PWM3DCHbits
21797 #define PWMPW2                  PWM3DCHbits.PWMPW2              // bit 0, shadows bit in PWM3DCHbits
21798 #define DC3                     PWM3DCHbits.DC3                 // bit 1, shadows bit in PWM3DCHbits
21799 #define PWM3DC3                 PWM3DCHbits.PWM3DC3             // bit 1, shadows bit in PWM3DCHbits
21800 #define PWMPW3                  PWM3DCHbits.PWMPW3              // bit 1, shadows bit in PWM3DCHbits
21801 #define DC4                     PWM3DCHbits.DC4                 // bit 2, shadows bit in PWM3DCHbits
21802 #define PWM3DC4                 PWM3DCHbits.PWM3DC4             // bit 2, shadows bit in PWM3DCHbits
21803 #define PWMPW4                  PWM3DCHbits.PWMPW4              // bit 2, shadows bit in PWM3DCHbits
21804 #define DC5                     PWM3DCHbits.DC5                 // bit 3, shadows bit in PWM3DCHbits
21805 #define PWM3DC5                 PWM3DCHbits.PWM3DC5             // bit 3, shadows bit in PWM3DCHbits
21806 #define PWMPW5                  PWM3DCHbits.PWMPW5              // bit 3, shadows bit in PWM3DCHbits
21807 #define DC6                     PWM3DCHbits.DC6                 // bit 4, shadows bit in PWM3DCHbits
21808 #define PWM3DC6                 PWM3DCHbits.PWM3DC6             // bit 4, shadows bit in PWM3DCHbits
21809 #define PWMPW6                  PWM3DCHbits.PWMPW6              // bit 4, shadows bit in PWM3DCHbits
21810 #define DC7                     PWM3DCHbits.DC7                 // bit 5, shadows bit in PWM3DCHbits
21811 #define PWM3DC7                 PWM3DCHbits.PWM3DC7             // bit 5, shadows bit in PWM3DCHbits
21812 #define PWMPW7                  PWM3DCHbits.PWMPW7              // bit 5, shadows bit in PWM3DCHbits
21813 #define DC8                     PWM3DCHbits.DC8                 // bit 6, shadows bit in PWM3DCHbits
21814 #define PWM3DC8                 PWM3DCHbits.PWM3DC8             // bit 6, shadows bit in PWM3DCHbits
21815 #define PWMPW8                  PWM3DCHbits.PWMPW8              // bit 6, shadows bit in PWM3DCHbits
21816 #define DC9                     PWM3DCHbits.DC9                 // bit 7, shadows bit in PWM3DCHbits
21817 #define PWM3DC9                 PWM3DCHbits.PWM3DC9             // bit 7, shadows bit in PWM3DCHbits
21818 #define PWMPW9                  PWM3DCHbits.PWMPW9              // bit 7, shadows bit in PWM3DCHbits
21819 
21820 #define DC0                     PWM3DCLbits.DC0                 // bit 6, shadows bit in PWM3DCLbits
21821 #define PWM3DC0                 PWM3DCLbits.PWM3DC0             // bit 6, shadows bit in PWM3DCLbits
21822 #define PWMPW0                  PWM3DCLbits.PWMPW0              // bit 6, shadows bit in PWM3DCLbits
21823 #define DC1                     PWM3DCLbits.DC1                 // bit 7, shadows bit in PWM3DCLbits
21824 #define PWM3DC1                 PWM3DCLbits.PWM3DC1             // bit 7, shadows bit in PWM3DCLbits
21825 #define PWMPW1                  PWM3DCLbits.PWMPW1              // bit 7, shadows bit in PWM3DCLbits
21826 
21827 #define PWM5DCH0                PWM5DCHbits.PWM5DCH0            // bit 0
21828 #define PWM5DCH1                PWM5DCHbits.PWM5DCH1            // bit 1
21829 #define PWM5DCH2                PWM5DCHbits.PWM5DCH2            // bit 2
21830 #define PWM5DCH3                PWM5DCHbits.PWM5DCH3            // bit 3
21831 #define PWM5DCH4                PWM5DCHbits.PWM5DCH4            // bit 4
21832 #define PWM5DCH5                PWM5DCHbits.PWM5DCH5            // bit 5
21833 #define PWM5DCH6                PWM5DCHbits.PWM5DCH6            // bit 6
21834 #define PWM5DCH7                PWM5DCHbits.PWM5DCH7            // bit 7
21835 
21836 #define PWM5DCL0                PWM5DCLbits.PWM5DCL0            // bit 0
21837 #define PWM5DCL1                PWM5DCLbits.PWM5DCL1            // bit 1
21838 #define PWM5DCL2                PWM5DCLbits.PWM5DCL2            // bit 2
21839 #define PWM5DCL3                PWM5DCLbits.PWM5DCL3            // bit 3
21840 #define PWM5DCL4                PWM5DCLbits.PWM5DCL4            // bit 4
21841 #define PWM5DCL5                PWM5DCLbits.PWM5DCL5            // bit 5
21842 #define PWM5DCL6                PWM5DCLbits.PWM5DCL6            // bit 6
21843 #define PWM5DCL7                PWM5DCLbits.PWM5DCL7            // bit 7
21844 
21845 #define PRIE                    PWM5INTCONbits.PRIE             // bit 0, shadows bit in PWM5INTCONbits
21846 #define PWM5PRIE                PWM5INTCONbits.PWM5PRIE         // bit 0, shadows bit in PWM5INTCONbits
21847 #define DCIE                    PWM5INTCONbits.DCIE             // bit 1, shadows bit in PWM5INTCONbits
21848 #define PWM5DCIE                PWM5INTCONbits.PWM5DCIE         // bit 1, shadows bit in PWM5INTCONbits
21849 #define PHIE                    PWM5INTCONbits.PHIE             // bit 2, shadows bit in PWM5INTCONbits
21850 #define PWM5PHIE                PWM5INTCONbits.PWM5PHIE         // bit 2, shadows bit in PWM5INTCONbits
21851 #define OFIE                    PWM5INTCONbits.OFIE             // bit 3, shadows bit in PWM5INTCONbits
21852 #define PWM5OFIE                PWM5INTCONbits.PWM5OFIE         // bit 3, shadows bit in PWM5INTCONbits
21853 
21854 #define PRIF                    PWM5INTFbits.PRIF               // bit 0, shadows bit in PWM5INTFbits
21855 #define PWM5PRIF                PWM5INTFbits.PWM5PRIF           // bit 0, shadows bit in PWM5INTFbits
21856 #define DCIF                    PWM5INTFbits.DCIF               // bit 1, shadows bit in PWM5INTFbits
21857 #define PWM5DCIF                PWM5INTFbits.PWM5DCIF           // bit 1, shadows bit in PWM5INTFbits
21858 #define PHIF                    PWM5INTFbits.PHIF               // bit 2, shadows bit in PWM5INTFbits
21859 #define PWM5PHIF                PWM5INTFbits.PWM5PHIF           // bit 2, shadows bit in PWM5INTFbits
21860 #define OFIF                    PWM5INTFbits.OFIF               // bit 3, shadows bit in PWM5INTFbits
21861 #define PWM5OFIF                PWM5INTFbits.PWM5OFIF           // bit 3, shadows bit in PWM5INTFbits
21862 
21863 #define PWM5LDS0                PWM5LDCONbits.PWM5LDS0          // bit 0, shadows bit in PWM5LDCONbits
21864 #define LDS0                    PWM5LDCONbits.LDS0              // bit 0, shadows bit in PWM5LDCONbits
21865 #define PWM5LDS1                PWM5LDCONbits.PWM5LDS1          // bit 1, shadows bit in PWM5LDCONbits
21866 #define LDS1                    PWM5LDCONbits.LDS1              // bit 1, shadows bit in PWM5LDCONbits
21867 #define LDT                     PWM5LDCONbits.LDT               // bit 6, shadows bit in PWM5LDCONbits
21868 #define PWM5LDM                 PWM5LDCONbits.PWM5LDM           // bit 6, shadows bit in PWM5LDCONbits
21869 #define LDA                     PWM5LDCONbits.LDA               // bit 7, shadows bit in PWM5LDCONbits
21870 #define PWM5LD                  PWM5LDCONbits.PWM5LD            // bit 7, shadows bit in PWM5LDCONbits
21871 
21872 #define PWM5OFS0                PWM5OFCONbits.PWM5OFS0          // bit 0, shadows bit in PWM5OFCONbits
21873 #define OFS0                    PWM5OFCONbits.OFS0              // bit 0, shadows bit in PWM5OFCONbits
21874 #define PWM5OFS1                PWM5OFCONbits.PWM5OFS1          // bit 1, shadows bit in PWM5OFCONbits
21875 #define OFS1                    PWM5OFCONbits.OFS1              // bit 1, shadows bit in PWM5OFCONbits
21876 #define OFO                     PWM5OFCONbits.OFO               // bit 4, shadows bit in PWM5OFCONbits
21877 #define PWM5OFMC                PWM5OFCONbits.PWM5OFMC          // bit 4, shadows bit in PWM5OFCONbits
21878 #define PWM5OFM0                PWM5OFCONbits.PWM5OFM0          // bit 5, shadows bit in PWM5OFCONbits
21879 #define OFM0                    PWM5OFCONbits.OFM0              // bit 5, shadows bit in PWM5OFCONbits
21880 #define PWM5OFM1                PWM5OFCONbits.PWM5OFM1          // bit 6, shadows bit in PWM5OFCONbits
21881 #define OFM1                    PWM5OFCONbits.OFM1              // bit 6, shadows bit in PWM5OFCONbits
21882 
21883 #define PWM5OFH0                PWM5OFHbits.PWM5OFH0            // bit 0
21884 #define PWM5OFH1                PWM5OFHbits.PWM5OFH1            // bit 1
21885 #define PWM5OFH2                PWM5OFHbits.PWM5OFH2            // bit 2
21886 #define PWM5OFH3                PWM5OFHbits.PWM5OFH3            // bit 3
21887 #define PWM5OFH4                PWM5OFHbits.PWM5OFH4            // bit 4
21888 #define PWM5OFH5                PWM5OFHbits.PWM5OFH5            // bit 5
21889 #define PWM5OFH6                PWM5OFHbits.PWM5OFH6            // bit 6
21890 #define PWM5OFH7                PWM5OFHbits.PWM5OFH7            // bit 7
21891 
21892 #define PWM5OFL0                PWM5OFLbits.PWM5OFL0            // bit 0
21893 #define PWM5OFL1                PWM5OFLbits.PWM5OFL1            // bit 1
21894 #define PWM5OFL2                PWM5OFLbits.PWM5OFL2            // bit 2
21895 #define PWM5OFL3                PWM5OFLbits.PWM5OFL3            // bit 3
21896 #define PWM5OFL4                PWM5OFLbits.PWM5OFL4            // bit 4
21897 #define PWM5OFL5                PWM5OFLbits.PWM5OFL5            // bit 5
21898 #define PWM5OFL6                PWM5OFLbits.PWM5OFL6            // bit 6
21899 #define PWM5OFL7                PWM5OFLbits.PWM5OFL7            // bit 7
21900 
21901 #define PWM5PHH0                PWM5PHHbits.PWM5PHH0            // bit 0
21902 #define PWM5PHH1                PWM5PHHbits.PWM5PHH1            // bit 1
21903 #define PWM5PHH2                PWM5PHHbits.PWM5PHH2            // bit 2
21904 #define PWM5PHH3                PWM5PHHbits.PWM5PHH3            // bit 3
21905 #define PWM5PHH4                PWM5PHHbits.PWM5PHH4            // bit 4
21906 #define PWM5PHH5                PWM5PHHbits.PWM5PHH5            // bit 5
21907 #define PWM5PHH6                PWM5PHHbits.PWM5PHH6            // bit 6
21908 #define PWM5PHH7                PWM5PHHbits.PWM5PHH7            // bit 7
21909 
21910 #define PWM5PHL0                PWM5PHLbits.PWM5PHL0            // bit 0
21911 #define PWM5PHL1                PWM5PHLbits.PWM5PHL1            // bit 1
21912 #define PWM5PHL2                PWM5PHLbits.PWM5PHL2            // bit 2
21913 #define PWM5PHL3                PWM5PHLbits.PWM5PHL3            // bit 3
21914 #define PWM5PHL4                PWM5PHLbits.PWM5PHL4            // bit 4
21915 #define PWM5PHL5                PWM5PHLbits.PWM5PHL5            // bit 5
21916 #define PWM5PHL6                PWM5PHLbits.PWM5PHL6            // bit 6
21917 #define PWM5PHL7                PWM5PHLbits.PWM5PHL7            // bit 7
21918 
21919 #define PWM5PRH0                PWM5PRHbits.PWM5PRH0            // bit 0
21920 #define PWM5PRH1                PWM5PRHbits.PWM5PRH1            // bit 1
21921 #define PWM5PRH2                PWM5PRHbits.PWM5PRH2            // bit 2
21922 #define PWM5PRH3                PWM5PRHbits.PWM5PRH3            // bit 3
21923 #define PWM5PRH4                PWM5PRHbits.PWM5PRH4            // bit 4
21924 #define PWM5PRH5                PWM5PRHbits.PWM5PRH5            // bit 5
21925 #define PWM5PRH6                PWM5PRHbits.PWM5PRH6            // bit 6
21926 #define PWM5PRH7                PWM5PRHbits.PWM5PRH7            // bit 7
21927 
21928 #define PWM5PRL0                PWM5PRLbits.PWM5PRL0            // bit 0
21929 #define PWM5PRL1                PWM5PRLbits.PWM5PRL1            // bit 1
21930 #define PWM5PRL2                PWM5PRLbits.PWM5PRL2            // bit 2
21931 #define PWM5PRL3                PWM5PRLbits.PWM5PRL3            // bit 3
21932 #define PWM5PRL4                PWM5PRLbits.PWM5PRL4            // bit 4
21933 #define PWM5PRL5                PWM5PRLbits.PWM5PRL5            // bit 5
21934 #define PWM5PRL6                PWM5PRLbits.PWM5PRL6            // bit 6
21935 #define PWM5PRL7                PWM5PRLbits.PWM5PRL7            // bit 7
21936 
21937 #define PWM5TMRH0               PWM5TMRHbits.PWM5TMRH0          // bit 0
21938 #define PWM5TMRH1               PWM5TMRHbits.PWM5TMRH1          // bit 1
21939 #define PWM5TMRH2               PWM5TMRHbits.PWM5TMRH2          // bit 2
21940 #define PWM5TMRH3               PWM5TMRHbits.PWM5TMRH3          // bit 3
21941 #define PWM5TMRH4               PWM5TMRHbits.PWM5TMRH4          // bit 4
21942 #define PWM5TMRH5               PWM5TMRHbits.PWM5TMRH5          // bit 5
21943 #define PWM5TMRH6               PWM5TMRHbits.PWM5TMRH6          // bit 6
21944 #define PWM5TMRH7               PWM5TMRHbits.PWM5TMRH7          // bit 7
21945 
21946 #define PWM5TMRL0               PWM5TMRLbits.PWM5TMRL0          // bit 0
21947 #define PWM5TMRL1               PWM5TMRLbits.PWM5TMRL1          // bit 1
21948 #define PWM5TMRL2               PWM5TMRLbits.PWM5TMRL2          // bit 2
21949 #define PWM5TMRL3               PWM5TMRLbits.PWM5TMRL3          // bit 3
21950 #define PWM5TMRL4               PWM5TMRLbits.PWM5TMRL4          // bit 4
21951 #define PWM5TMRL5               PWM5TMRLbits.PWM5TMRL5          // bit 5
21952 #define PWM5TMRL6               PWM5TMRLbits.PWM5TMRL6          // bit 6
21953 #define PWM5TMRL7               PWM5TMRLbits.PWM5TMRL7          // bit 7
21954 
21955 #define PWM6DCH0                PWM6DCHbits.PWM6DCH0            // bit 0
21956 #define PWM6DCH1                PWM6DCHbits.PWM6DCH1            // bit 1
21957 #define PWM6DCH2                PWM6DCHbits.PWM6DCH2            // bit 2
21958 #define PWM6DCH3                PWM6DCHbits.PWM6DCH3            // bit 3
21959 #define PWM6DCH4                PWM6DCHbits.PWM6DCH4            // bit 4
21960 #define PWM6DCH5                PWM6DCHbits.PWM6DCH5            // bit 5
21961 #define PWM6DCH6                PWM6DCHbits.PWM6DCH6            // bit 6
21962 #define PWM6DCH7                PWM6DCHbits.PWM6DCH7            // bit 7
21963 
21964 #define PWM6DCL0                PWM6DCLbits.PWM6DCL0            // bit 0
21965 #define PWM6DCL1                PWM6DCLbits.PWM6DCL1            // bit 1
21966 #define PWM6DCL2                PWM6DCLbits.PWM6DCL2            // bit 2
21967 #define PWM6DCL3                PWM6DCLbits.PWM6DCL3            // bit 3
21968 #define PWM6DCL4                PWM6DCLbits.PWM6DCL4            // bit 4
21969 #define PWM6DCL5                PWM6DCLbits.PWM6DCL5            // bit 5
21970 #define PWM6DCL6                PWM6DCLbits.PWM6DCL6            // bit 6
21971 #define PWM6DCL7                PWM6DCLbits.PWM6DCL7            // bit 7
21972 
21973 #define PWM6OFH0                PWM6OFHbits.PWM6OFH0            // bit 0
21974 #define PWM6OFH1                PWM6OFHbits.PWM6OFH1            // bit 1
21975 #define PWM6OFH2                PWM6OFHbits.PWM6OFH2            // bit 2
21976 #define PWM6OFH3                PWM6OFHbits.PWM6OFH3            // bit 3
21977 #define PWM6OFH4                PWM6OFHbits.PWM6OFH4            // bit 4
21978 #define PWM6OFH5                PWM6OFHbits.PWM6OFH5            // bit 5
21979 #define PWM6OFH6                PWM6OFHbits.PWM6OFH6            // bit 6
21980 #define PWM6OFH7                PWM6OFHbits.PWM6OFH7            // bit 7
21981 
21982 #define PWM6OFL0                PWM6OFLbits.PWM6OFL0            // bit 0
21983 #define PWM6OFL1                PWM6OFLbits.PWM6OFL1            // bit 1
21984 #define PWM6OFL2                PWM6OFLbits.PWM6OFL2            // bit 2
21985 #define PWM6OFL3                PWM6OFLbits.PWM6OFL3            // bit 3
21986 #define PWM6OFL4                PWM6OFLbits.PWM6OFL4            // bit 4
21987 #define PWM6OFL5                PWM6OFLbits.PWM6OFL5            // bit 5
21988 #define PWM6OFL6                PWM6OFLbits.PWM6OFL6            // bit 6
21989 #define PWM6OFL7                PWM6OFLbits.PWM6OFL7            // bit 7
21990 
21991 #define PWM6PHH0                PWM6PHHbits.PWM6PHH0            // bit 0
21992 #define PWM6PHH1                PWM6PHHbits.PWM6PHH1            // bit 1
21993 #define PWM6PHH2                PWM6PHHbits.PWM6PHH2            // bit 2
21994 #define PWM6PHH3                PWM6PHHbits.PWM6PHH3            // bit 3
21995 #define PWM6PHH4                PWM6PHHbits.PWM6PHH4            // bit 4
21996 #define PWM6PHH5                PWM6PHHbits.PWM6PHH5            // bit 5
21997 #define PWM6PHH6                PWM6PHHbits.PWM6PHH6            // bit 6
21998 #define PWM6PHH7                PWM6PHHbits.PWM6PHH7            // bit 7
21999 
22000 #define PWM6PHL0                PWM6PHLbits.PWM6PHL0            // bit 0
22001 #define PWM6PHL1                PWM6PHLbits.PWM6PHL1            // bit 1
22002 #define PWM6PHL2                PWM6PHLbits.PWM6PHL2            // bit 2
22003 #define PWM6PHL3                PWM6PHLbits.PWM6PHL3            // bit 3
22004 #define PWM6PHL4                PWM6PHLbits.PWM6PHL4            // bit 4
22005 #define PWM6PHL5                PWM6PHLbits.PWM6PHL5            // bit 5
22006 #define PWM6PHL6                PWM6PHLbits.PWM6PHL6            // bit 6
22007 #define PWM6PHL7                PWM6PHLbits.PWM6PHL7            // bit 7
22008 
22009 #define PWM6PRH0                PWM6PRHbits.PWM6PRH0            // bit 0
22010 #define PWM6PRH1                PWM6PRHbits.PWM6PRH1            // bit 1
22011 #define PWM6PRH2                PWM6PRHbits.PWM6PRH2            // bit 2
22012 #define PWM6PRH3                PWM6PRHbits.PWM6PRH3            // bit 3
22013 #define PWM6PRH4                PWM6PRHbits.PWM6PRH4            // bit 4
22014 #define PWM6PRH5                PWM6PRHbits.PWM6PRH5            // bit 5
22015 #define PWM6PRH6                PWM6PRHbits.PWM6PRH6            // bit 6
22016 #define PWM6PRH7                PWM6PRHbits.PWM6PRH7            // bit 7
22017 
22018 #define PWM6PRL0                PWM6PRLbits.PWM6PRL0            // bit 0
22019 #define PWM6PRL1                PWM6PRLbits.PWM6PRL1            // bit 1
22020 #define PWM6PRL2                PWM6PRLbits.PWM6PRL2            // bit 2
22021 #define PWM6PRL3                PWM6PRLbits.PWM6PRL3            // bit 3
22022 #define PWM6PRL4                PWM6PRLbits.PWM6PRL4            // bit 4
22023 #define PWM6PRL5                PWM6PRLbits.PWM6PRL5            // bit 5
22024 #define PWM6PRL6                PWM6PRLbits.PWM6PRL6            // bit 6
22025 #define PWM6PRL7                PWM6PRLbits.PWM6PRL7            // bit 7
22026 
22027 #define PWM6TMRH0               PWM6TMRHbits.PWM6TMRH0          // bit 0
22028 #define PWM6TMRH1               PWM6TMRHbits.PWM6TMRH1          // bit 1
22029 #define PWM6TMRH2               PWM6TMRHbits.PWM6TMRH2          // bit 2
22030 #define PWM6TMRH3               PWM6TMRHbits.PWM6TMRH3          // bit 3
22031 #define PWM6TMRH4               PWM6TMRHbits.PWM6TMRH4          // bit 4
22032 #define PWM6TMRH5               PWM6TMRHbits.PWM6TMRH5          // bit 5
22033 #define PWM6TMRH6               PWM6TMRHbits.PWM6TMRH6          // bit 6
22034 #define PWM6TMRH7               PWM6TMRHbits.PWM6TMRH7          // bit 7
22035 
22036 #define PWM6TMRL0               PWM6TMRLbits.PWM6TMRL0          // bit 0
22037 #define PWM6TMRL1               PWM6TMRLbits.PWM6TMRL1          // bit 1
22038 #define PWM6TMRL2               PWM6TMRLbits.PWM6TMRL2          // bit 2
22039 #define PWM6TMRL3               PWM6TMRLbits.PWM6TMRL3          // bit 3
22040 #define PWM6TMRL4               PWM6TMRLbits.PWM6TMRL4          // bit 4
22041 #define PWM6TMRL5               PWM6TMRLbits.PWM6TMRL5          // bit 5
22042 #define PWM6TMRL6               PWM6TMRLbits.PWM6TMRL6          // bit 6
22043 #define PWM6TMRL7               PWM6TMRLbits.PWM6TMRL7          // bit 7
22044 
22045 #define PWM11DCH0               PWM11DCHbits.PWM11DCH0          // bit 0
22046 #define PWM11DCH1               PWM11DCHbits.PWM11DCH1          // bit 1
22047 #define PWM11DCH2               PWM11DCHbits.PWM11DCH2          // bit 2
22048 #define PWM11DCH3               PWM11DCHbits.PWM11DCH3          // bit 3
22049 #define PWM11DCH4               PWM11DCHbits.PWM11DCH4          // bit 4
22050 #define PWM11DCH5               PWM11DCHbits.PWM11DCH5          // bit 5
22051 #define PWM11DCH6               PWM11DCHbits.PWM11DCH6          // bit 6
22052 #define PWM11DCH7               PWM11DCHbits.PWM11DCH7          // bit 7
22053 
22054 #define PWM11DCL0               PWM11DCLbits.PWM11DCL0          // bit 0
22055 #define PWM11DCL1               PWM11DCLbits.PWM11DCL1          // bit 1
22056 #define PWM11DCL2               PWM11DCLbits.PWM11DCL2          // bit 2
22057 #define PWM11DCL3               PWM11DCLbits.PWM11DCL3          // bit 3
22058 #define PWM11DCL4               PWM11DCLbits.PWM11DCL4          // bit 4
22059 #define PWM11DCL5               PWM11DCLbits.PWM11DCL5          // bit 5
22060 #define PWM11DCL6               PWM11DCLbits.PWM11DCL6          // bit 6
22061 #define PWM11DCL7               PWM11DCLbits.PWM11DCL7          // bit 7
22062 
22063 #define PWM11OFH0               PWM11OFHbits.PWM11OFH0          // bit 0
22064 #define PWM11OFH1               PWM11OFHbits.PWM11OFH1          // bit 1
22065 #define PWM11OFH2               PWM11OFHbits.PWM11OFH2          // bit 2
22066 #define PWM11OFH3               PWM11OFHbits.PWM11OFH3          // bit 3
22067 #define PWM11OFH4               PWM11OFHbits.PWM11OFH4          // bit 4
22068 #define PWM11OFH5               PWM11OFHbits.PWM11OFH5          // bit 5
22069 #define PWM11OFH6               PWM11OFHbits.PWM11OFH6          // bit 6
22070 #define PWM11OFH7               PWM11OFHbits.PWM11OFH7          // bit 7
22071 
22072 #define PWM11OFL0               PWM11OFLbits.PWM11OFL0          // bit 0
22073 #define PWM11OFL1               PWM11OFLbits.PWM11OFL1          // bit 1
22074 #define PWM11OFL2               PWM11OFLbits.PWM11OFL2          // bit 2
22075 #define PWM11OFL3               PWM11OFLbits.PWM11OFL3          // bit 3
22076 #define PWM11OFL4               PWM11OFLbits.PWM11OFL4          // bit 4
22077 #define PWM11OFL5               PWM11OFLbits.PWM11OFL5          // bit 5
22078 #define PWM11OFL6               PWM11OFLbits.PWM11OFL6          // bit 6
22079 #define PWM11OFL7               PWM11OFLbits.PWM11OFL7          // bit 7
22080 
22081 #define PWM11PHH0               PWM11PHHbits.PWM11PHH0          // bit 0
22082 #define PWM11PHH1               PWM11PHHbits.PWM11PHH1          // bit 1
22083 #define PWM11PHH2               PWM11PHHbits.PWM11PHH2          // bit 2
22084 #define PWM11PHH3               PWM11PHHbits.PWM11PHH3          // bit 3
22085 #define PWM11PHH4               PWM11PHHbits.PWM11PHH4          // bit 4
22086 #define PWM11PHH5               PWM11PHHbits.PWM11PHH5          // bit 5
22087 #define PWM11PHH6               PWM11PHHbits.PWM11PHH6          // bit 6
22088 #define PWM11PHH7               PWM11PHHbits.PWM11PHH7          // bit 7
22089 
22090 #define PWM11PHL0               PWM11PHLbits.PWM11PHL0          // bit 0
22091 #define PWM11PHL1               PWM11PHLbits.PWM11PHL1          // bit 1
22092 #define PWM11PHL2               PWM11PHLbits.PWM11PHL2          // bit 2
22093 #define PWM11PHL3               PWM11PHLbits.PWM11PHL3          // bit 3
22094 #define PWM11PHL4               PWM11PHLbits.PWM11PHL4          // bit 4
22095 #define PWM11PHL5               PWM11PHLbits.PWM11PHL5          // bit 5
22096 #define PWM11PHL6               PWM11PHLbits.PWM11PHL6          // bit 6
22097 #define PWM11PHL7               PWM11PHLbits.PWM11PHL7          // bit 7
22098 
22099 #define PWM11PRH0               PWM11PRHbits.PWM11PRH0          // bit 0
22100 #define PWM11PRH1               PWM11PRHbits.PWM11PRH1          // bit 1
22101 #define PWM11PRH2               PWM11PRHbits.PWM11PRH2          // bit 2
22102 #define PWM11PRH3               PWM11PRHbits.PWM11PRH3          // bit 3
22103 #define PWM11PRH4               PWM11PRHbits.PWM11PRH4          // bit 4
22104 #define PWM11PRH5               PWM11PRHbits.PWM11PRH5          // bit 5
22105 #define PWM11PRH6               PWM11PRHbits.PWM11PRH6          // bit 6
22106 #define PWM11PRH7               PWM11PRHbits.PWM11PRH7          // bit 7
22107 
22108 #define PWM11PRL0               PWM11PRLbits.PWM11PRL0          // bit 0
22109 #define PWM11PRL1               PWM11PRLbits.PWM11PRL1          // bit 1
22110 #define PWM11PRL2               PWM11PRLbits.PWM11PRL2          // bit 2
22111 #define PWM11PRL3               PWM11PRLbits.PWM11PRL3          // bit 3
22112 #define PWM11PRL4               PWM11PRLbits.PWM11PRL4          // bit 4
22113 #define PWM11PRL5               PWM11PRLbits.PWM11PRL5          // bit 5
22114 #define PWM11PRL6               PWM11PRLbits.PWM11PRL6          // bit 6
22115 #define PWM11PRL7               PWM11PRLbits.PWM11PRL7          // bit 7
22116 
22117 #define PWM11TMRH0              PWM11TMRHbits.PWM11TMRH0        // bit 0
22118 #define PWM11TMRH1              PWM11TMRHbits.PWM11TMRH1        // bit 1
22119 #define PWM11TMRH2              PWM11TMRHbits.PWM11TMRH2        // bit 2
22120 #define PWM11TMRH3              PWM11TMRHbits.PWM11TMRH3        // bit 3
22121 #define PWM11TMRH4              PWM11TMRHbits.PWM11TMRH4        // bit 4
22122 #define PWM11TMRH5              PWM11TMRHbits.PWM11TMRH5        // bit 5
22123 #define PWM11TMRH6              PWM11TMRHbits.PWM11TMRH6        // bit 6
22124 #define PWM11TMRH7              PWM11TMRHbits.PWM11TMRH7        // bit 7
22125 
22126 #define PWM11TMRL0              PWM11TMRLbits.PWM11TMRL0        // bit 0
22127 #define PWM11TMRL1              PWM11TMRLbits.PWM11TMRL1        // bit 1
22128 #define PWM11TMRL2              PWM11TMRLbits.PWM11TMRL2        // bit 2
22129 #define PWM11TMRL3              PWM11TMRLbits.PWM11TMRL3        // bit 3
22130 #define PWM11TMRL4              PWM11TMRLbits.PWM11TMRL4        // bit 4
22131 #define PWM11TMRL5              PWM11TMRLbits.PWM11TMRL5        // bit 5
22132 #define PWM11TMRL6              PWM11TMRLbits.PWM11TMRL6        // bit 6
22133 #define PWM11TMRL7              PWM11TMRLbits.PWM11TMRL7        // bit 7
22134 
22135 #define MPWM5EN                 PWMENbits.MPWM5EN               // bit 0
22136 #define MPWM6EN                 PWMENbits.MPWM6EN               // bit 1
22137 #define MPWM11EN                PWMENbits.MPWM11EN              // bit 2
22138 
22139 #define MPWM5LD                 PWMLDbits.MPWM5LD               // bit 0
22140 #define MPWM6LD                 PWMLDbits.MPWM6LD               // bit 1
22141 #define MPWM11LD                PWMLDbits.MPWM11LD              // bit 2
22142 
22143 #define MPWM5OUT                PWMOUTbits.MPWM5OUT             // bit 0
22144 #define MPWM6OUT                PWMOUTbits.MPWM6OUT             // bit 1
22145 #define MPWM11OUT               PWMOUTbits.MPWM11OUT            // bit 2
22146 
22147 #define RX9D                    RC1STAbits.RX9D                 // bit 0
22148 #define OERR                    RC1STAbits.OERR                 // bit 1
22149 #define FERR                    RC1STAbits.FERR                 // bit 2
22150 #define ADDEN                   RC1STAbits.ADDEN                // bit 3
22151 #define CREN                    RC1STAbits.CREN                 // bit 4
22152 #define SREN                    RC1STAbits.SREN                 // bit 5
22153 #define RX9                     RC1STAbits.RX9                  // bit 6
22154 #define SPEN                    RC1STAbits.SPEN                 // bit 7
22155 
22156 #define SLRA0                   SLRCONAbits.SLRA0               // bit 0
22157 #define SLRA1                   SLRCONAbits.SLRA1               // bit 1
22158 #define SLRA2                   SLRCONAbits.SLRA2               // bit 2
22159 #define SLRA3                   SLRCONAbits.SLRA3               // bit 3
22160 #define SLRA4                   SLRCONAbits.SLRA4               // bit 4
22161 #define SLRA5                   SLRCONAbits.SLRA5               // bit 5
22162 #define SLRA6                   SLRCONAbits.SLRA6               // bit 6
22163 #define SLRA7                   SLRCONAbits.SLRA7               // bit 7
22164 
22165 #define SLRB0                   SLRCONBbits.SLRB0               // bit 0
22166 #define SLRB1                   SLRCONBbits.SLRB1               // bit 1
22167 #define SLRB2                   SLRCONBbits.SLRB2               // bit 2
22168 #define SLRB3                   SLRCONBbits.SLRB3               // bit 3
22169 #define SLRB4                   SLRCONBbits.SLRB4               // bit 4
22170 #define SLRB5                   SLRCONBbits.SLRB5               // bit 5
22171 #define SLRB6                   SLRCONBbits.SLRB6               // bit 6
22172 #define SLRB7                   SLRCONBbits.SLRB7               // bit 7
22173 
22174 #define SLRC0                   SLRCONCbits.SLRC0               // bit 0
22175 #define SLRC1                   SLRCONCbits.SLRC1               // bit 1
22176 #define SLRC2                   SLRCONCbits.SLRC2               // bit 2
22177 #define SLRC3                   SLRCONCbits.SLRC3               // bit 3
22178 #define SLRC4                   SLRCONCbits.SLRC4               // bit 4
22179 #define SLRC5                   SLRCONCbits.SLRC5               // bit 5
22180 #define SLRC6                   SLRCONCbits.SLRC6               // bit 6
22181 #define SLRC7                   SLRCONCbits.SLRC7               // bit 7
22182 
22183 #define SSP1ADD0                SSP1ADDbits.SSP1ADD0            // bit 0, shadows bit in SSP1ADDbits
22184 #define ADD0                    SSP1ADDbits.ADD0                // bit 0, shadows bit in SSP1ADDbits
22185 #define SSP1ADD1                SSP1ADDbits.SSP1ADD1            // bit 1, shadows bit in SSP1ADDbits
22186 #define ADD1                    SSP1ADDbits.ADD1                // bit 1, shadows bit in SSP1ADDbits
22187 #define SSP1ADD2                SSP1ADDbits.SSP1ADD2            // bit 2, shadows bit in SSP1ADDbits
22188 #define ADD2                    SSP1ADDbits.ADD2                // bit 2, shadows bit in SSP1ADDbits
22189 #define SSP1ADD3                SSP1ADDbits.SSP1ADD3            // bit 3, shadows bit in SSP1ADDbits
22190 #define ADD3                    SSP1ADDbits.ADD3                // bit 3, shadows bit in SSP1ADDbits
22191 #define SSP1ADD4                SSP1ADDbits.SSP1ADD4            // bit 4, shadows bit in SSP1ADDbits
22192 #define ADD4                    SSP1ADDbits.ADD4                // bit 4, shadows bit in SSP1ADDbits
22193 #define SSP1ADD5                SSP1ADDbits.SSP1ADD5            // bit 5, shadows bit in SSP1ADDbits
22194 #define ADD5                    SSP1ADDbits.ADD5                // bit 5, shadows bit in SSP1ADDbits
22195 #define SSP1ADD6                SSP1ADDbits.SSP1ADD6            // bit 6, shadows bit in SSP1ADDbits
22196 #define ADD6                    SSP1ADDbits.ADD6                // bit 6, shadows bit in SSP1ADDbits
22197 #define SSP1ADD7                SSP1ADDbits.SSP1ADD7            // bit 7, shadows bit in SSP1ADDbits
22198 #define ADD7                    SSP1ADDbits.ADD7                // bit 7, shadows bit in SSP1ADDbits
22199 
22200 #define SSP1BUF0                SSP1BUFbits.SSP1BUF0            // bit 0, shadows bit in SSP1BUFbits
22201 #define BUF0                    SSP1BUFbits.BUF0                // bit 0, shadows bit in SSP1BUFbits
22202 #define SSP1BUF1                SSP1BUFbits.SSP1BUF1            // bit 1, shadows bit in SSP1BUFbits
22203 #define BUF1                    SSP1BUFbits.BUF1                // bit 1, shadows bit in SSP1BUFbits
22204 #define SSP1BUF2                SSP1BUFbits.SSP1BUF2            // bit 2, shadows bit in SSP1BUFbits
22205 #define BUF2                    SSP1BUFbits.BUF2                // bit 2, shadows bit in SSP1BUFbits
22206 #define SSP1BUF3                SSP1BUFbits.SSP1BUF3            // bit 3, shadows bit in SSP1BUFbits
22207 #define BUF3                    SSP1BUFbits.BUF3                // bit 3, shadows bit in SSP1BUFbits
22208 #define SSP1BUF4                SSP1BUFbits.SSP1BUF4            // bit 4, shadows bit in SSP1BUFbits
22209 #define BUF4                    SSP1BUFbits.BUF4                // bit 4, shadows bit in SSP1BUFbits
22210 #define SSP1BUF5                SSP1BUFbits.SSP1BUF5            // bit 5, shadows bit in SSP1BUFbits
22211 #define BUF5                    SSP1BUFbits.BUF5                // bit 5, shadows bit in SSP1BUFbits
22212 #define SSP1BUF6                SSP1BUFbits.SSP1BUF6            // bit 6, shadows bit in SSP1BUFbits
22213 #define BUF6                    SSP1BUFbits.BUF6                // bit 6, shadows bit in SSP1BUFbits
22214 #define SSP1BUF7                SSP1BUFbits.SSP1BUF7            // bit 7, shadows bit in SSP1BUFbits
22215 #define BUF7                    SSP1BUFbits.BUF7                // bit 7, shadows bit in SSP1BUFbits
22216 
22217 #define SSPM0                   SSP1CONbits.SSPM0               // bit 0
22218 #define SSPM1                   SSP1CONbits.SSPM1               // bit 1
22219 #define SSPM2                   SSP1CONbits.SSPM2               // bit 2
22220 #define SSPM3                   SSP1CONbits.SSPM3               // bit 3
22221 #define CKP                     SSP1CONbits.CKP                 // bit 4
22222 #define SSPEN                   SSP1CONbits.SSPEN               // bit 5
22223 #define SSPOV                   SSP1CONbits.SSPOV               // bit 6
22224 #define WCOL                    SSP1CONbits.WCOL                // bit 7
22225 
22226 #define SEN                     SSP1CON2bits.SEN                // bit 0
22227 #define RSEN                    SSP1CON2bits.RSEN               // bit 1
22228 #define PEN                     SSP1CON2bits.PEN                // bit 2
22229 #define RCEN                    SSP1CON2bits.RCEN               // bit 3
22230 #define ACKEN                   SSP1CON2bits.ACKEN              // bit 4
22231 #define ACKDT                   SSP1CON2bits.ACKDT              // bit 5
22232 #define ACKSTAT                 SSP1CON2bits.ACKSTAT            // bit 6
22233 #define GCEN                    SSP1CON2bits.GCEN               // bit 7
22234 
22235 #define DHEN                    SSP1CON3bits.DHEN               // bit 0
22236 #define AHEN                    SSP1CON3bits.AHEN               // bit 1
22237 #define SBCDE                   SSP1CON3bits.SBCDE              // bit 2
22238 #define SDAHT                   SSP1CON3bits.SDAHT              // bit 3
22239 #define BOEN                    SSP1CON3bits.BOEN               // bit 4
22240 #define SCIE                    SSP1CON3bits.SCIE               // bit 5
22241 #define PCIE                    SSP1CON3bits.PCIE               // bit 6
22242 #define ACKTIM                  SSP1CON3bits.ACKTIM             // bit 7
22243 
22244 #define SSP1MSK0                SSP1MSKbits.SSP1MSK0            // bit 0, shadows bit in SSP1MSKbits
22245 #define MSK0                    SSP1MSKbits.MSK0                // bit 0, shadows bit in SSP1MSKbits
22246 #define SSP1MSK1                SSP1MSKbits.SSP1MSK1            // bit 1, shadows bit in SSP1MSKbits
22247 #define MSK1                    SSP1MSKbits.MSK1                // bit 1, shadows bit in SSP1MSKbits
22248 #define SSP1MSK2                SSP1MSKbits.SSP1MSK2            // bit 2, shadows bit in SSP1MSKbits
22249 #define MSK2                    SSP1MSKbits.MSK2                // bit 2, shadows bit in SSP1MSKbits
22250 #define SSP1MSK3                SSP1MSKbits.SSP1MSK3            // bit 3, shadows bit in SSP1MSKbits
22251 #define MSK3                    SSP1MSKbits.MSK3                // bit 3, shadows bit in SSP1MSKbits
22252 #define SSP1MSK4                SSP1MSKbits.SSP1MSK4            // bit 4, shadows bit in SSP1MSKbits
22253 #define MSK4                    SSP1MSKbits.MSK4                // bit 4, shadows bit in SSP1MSKbits
22254 #define SSP1MSK5                SSP1MSKbits.SSP1MSK5            // bit 5, shadows bit in SSP1MSKbits
22255 #define MSK5                    SSP1MSKbits.MSK5                // bit 5, shadows bit in SSP1MSKbits
22256 #define SSP1MSK6                SSP1MSKbits.SSP1MSK6            // bit 6, shadows bit in SSP1MSKbits
22257 #define MSK6                    SSP1MSKbits.MSK6                // bit 6, shadows bit in SSP1MSKbits
22258 #define SSP1MSK7                SSP1MSKbits.SSP1MSK7            // bit 7, shadows bit in SSP1MSKbits
22259 #define MSK7                    SSP1MSKbits.MSK7                // bit 7, shadows bit in SSP1MSKbits
22260 
22261 #define BF                      SSP1STATbits.BF                 // bit 0
22262 #define UA                      SSP1STATbits.UA                 // bit 1
22263 #define R_NOT_W                 SSP1STATbits.R_NOT_W            // bit 2
22264 #define S                       SSP1STATbits.S                  // bit 3
22265 #define P                       SSP1STATbits.P                  // bit 4
22266 #define D_NOT_A                 SSP1STATbits.D_NOT_A            // bit 5
22267 #define CKE                     SSP1STATbits.CKE                // bit 6
22268 #define SMP                     SSP1STATbits.SMP                // bit 7
22269 
22270 #define C                       STATUSbits.C                    // bit 0
22271 #define DC                      STATUSbits.DC                   // bit 1
22272 #define Z                       STATUSbits.Z                    // bit 2
22273 #define NOT_PD                  STATUSbits.NOT_PD               // bit 3
22274 #define NOT_TO                  STATUSbits.NOT_TO               // bit 4
22275 
22276 #define C_SHAD                  STATUS_SHADbits.C_SHAD          // bit 0
22277 #define DC_SHAD                 STATUS_SHADbits.DC_SHAD         // bit 1
22278 #define Z_SHAD                  STATUS_SHADbits.Z_SHAD          // bit 2
22279 
22280 #define GSS0                    T1GCONbits.GSS0                 // bit 0, shadows bit in T1GCONbits
22281 #define T1GSS0                  T1GCONbits.T1GSS0               // bit 0, shadows bit in T1GCONbits
22282 #define GSS1                    T1GCONbits.GSS1                 // bit 1, shadows bit in T1GCONbits
22283 #define T1GSS1                  T1GCONbits.T1GSS1               // bit 1, shadows bit in T1GCONbits
22284 #define GVAL                    T1GCONbits.GVAL                 // bit 2, shadows bit in T1GCONbits
22285 #define T1GVAL                  T1GCONbits.T1GVAL               // bit 2, shadows bit in T1GCONbits
22286 #define GGO_NOT_DONE            T1GCONbits.GGO_NOT_DONE         // bit 3, shadows bit in T1GCONbits
22287 #define T1GGO_NOT_DONE          T1GCONbits.T1GGO_NOT_DONE       // bit 3, shadows bit in T1GCONbits
22288 #define GSPM                    T1GCONbits.GSPM                 // bit 4, shadows bit in T1GCONbits
22289 #define T1GSPM                  T1GCONbits.T1GSPM               // bit 4, shadows bit in T1GCONbits
22290 #define GTM                     T1GCONbits.GTM                  // bit 5, shadows bit in T1GCONbits
22291 #define T1GTM                   T1GCONbits.T1GTM                // bit 5, shadows bit in T1GCONbits
22292 #define GPOL                    T1GCONbits.GPOL                 // bit 6, shadows bit in T1GCONbits
22293 #define T1GPOL                  T1GCONbits.T1GPOL               // bit 6, shadows bit in T1GCONbits
22294 #define GE                      T1GCONbits.GE                   // bit 7, shadows bit in T1GCONbits
22295 #define T1GE                    T1GCONbits.T1GE                 // bit 7, shadows bit in T1GCONbits
22296 #define TMR1GE                  T1GCONbits.TMR1GE               // bit 7, shadows bit in T1GCONbits
22297 
22298 #define RSEL0                   T2RSTbits.RSEL0                 // bit 0, shadows bit in T2RSTbits
22299 #define T2RSEL0                 T2RSTbits.T2RSEL0               // bit 0, shadows bit in T2RSTbits
22300 #define RSEL1                   T2RSTbits.RSEL1                 // bit 1, shadows bit in T2RSTbits
22301 #define T2RSEL1                 T2RSTbits.T2RSEL1               // bit 1, shadows bit in T2RSTbits
22302 #define RSEL2                   T2RSTbits.RSEL2                 // bit 2, shadows bit in T2RSTbits
22303 #define T2RSEL2                 T2RSTbits.T2RSEL2               // bit 2, shadows bit in T2RSTbits
22304 #define RSEL3                   T2RSTbits.RSEL3                 // bit 3, shadows bit in T2RSTbits
22305 #define T2RSEL3                 T2RSTbits.T2RSEL3               // bit 3, shadows bit in T2RSTbits
22306 #define RSEL4                   T2RSTbits.RSEL4                 // bit 4, shadows bit in T2RSTbits
22307 #define T2RSEL4                 T2RSTbits.T2RSEL4               // bit 4, shadows bit in T2RSTbits
22308 
22309 #define TRISA0                  TRISAbits.TRISA0                // bit 0
22310 #define TRISA1                  TRISAbits.TRISA1                // bit 1
22311 #define TRISA2                  TRISAbits.TRISA2                // bit 2
22312 #define TRISA3                  TRISAbits.TRISA3                // bit 3
22313 #define TRISA4                  TRISAbits.TRISA4                // bit 4
22314 #define TRISA5                  TRISAbits.TRISA5                // bit 5
22315 #define TRISA6                  TRISAbits.TRISA6                // bit 6
22316 #define TRISA7                  TRISAbits.TRISA7                // bit 7
22317 
22318 #define TRISB0                  TRISBbits.TRISB0                // bit 0
22319 #define TRISB1                  TRISBbits.TRISB1                // bit 1
22320 #define TRISB2                  TRISBbits.TRISB2                // bit 2
22321 #define TRISB3                  TRISBbits.TRISB3                // bit 3
22322 #define TRISB4                  TRISBbits.TRISB4                // bit 4
22323 #define TRISB5                  TRISBbits.TRISB5                // bit 5
22324 #define TRISB6                  TRISBbits.TRISB6                // bit 6
22325 #define TRISB7                  TRISBbits.TRISB7                // bit 7
22326 
22327 #define TRISC0                  TRISCbits.TRISC0                // bit 0
22328 #define TRISC1                  TRISCbits.TRISC1                // bit 1
22329 #define TRISC2                  TRISCbits.TRISC2                // bit 2
22330 #define TRISC3                  TRISCbits.TRISC3                // bit 3
22331 #define TRISC4                  TRISCbits.TRISC4                // bit 4
22332 #define TRISC5                  TRISCbits.TRISC5                // bit 5
22333 #define TRISC6                  TRISCbits.TRISC6                // bit 6
22334 #define TRISC7                  TRISCbits.TRISC7                // bit 7
22335 
22336 #define TRISE3                  TRISEbits.TRISE3                // bit 3
22337 
22338 #define SWDTEN                  WDTCONbits.SWDTEN               // bit 0
22339 #define WDTPS0                  WDTCONbits.WDTPS0               // bit 1
22340 #define WDTPS1                  WDTCONbits.WDTPS1               // bit 2
22341 #define WDTPS2                  WDTCONbits.WDTPS2               // bit 3
22342 #define WDTPS3                  WDTCONbits.WDTPS3               // bit 4
22343 #define WDTPS4                  WDTCONbits.WDTPS4               // bit 5
22344 
22345 #define WPUA0                   WPUAbits.WPUA0                  // bit 0
22346 #define WPUA1                   WPUAbits.WPUA1                  // bit 1
22347 #define WPUA2                   WPUAbits.WPUA2                  // bit 2
22348 #define WPUA3                   WPUAbits.WPUA3                  // bit 3
22349 #define WPUA4                   WPUAbits.WPUA4                  // bit 4
22350 #define WPUA5                   WPUAbits.WPUA5                  // bit 5
22351 #define WPUA6                   WPUAbits.WPUA6                  // bit 6
22352 #define WPUA7                   WPUAbits.WPUA7                  // bit 7
22353 
22354 #define WPUB0                   WPUBbits.WPUB0                  // bit 0
22355 #define WPUB1                   WPUBbits.WPUB1                  // bit 1
22356 #define WPUB2                   WPUBbits.WPUB2                  // bit 2
22357 #define WPUB3                   WPUBbits.WPUB3                  // bit 3
22358 #define WPUB4                   WPUBbits.WPUB4                  // bit 4
22359 #define WPUB5                   WPUBbits.WPUB5                  // bit 5
22360 #define WPUB6                   WPUBbits.WPUB6                  // bit 6
22361 #define WPUB7                   WPUBbits.WPUB7                  // bit 7
22362 
22363 #define WPUC0                   WPUCbits.WPUC0                  // bit 0
22364 #define WPUC1                   WPUCbits.WPUC1                  // bit 1
22365 #define WPUC2                   WPUCbits.WPUC2                  // bit 2
22366 #define WPUC3                   WPUCbits.WPUC3                  // bit 3
22367 #define WPUC4                   WPUCbits.WPUC4                  // bit 4
22368 #define WPUC5                   WPUCbits.WPUC5                  // bit 5
22369 #define WPUC6                   WPUCbits.WPUC6                  // bit 6
22370 #define WPUC7                   WPUCbits.WPUC7                  // bit 7
22371 
22372 #define WPUE3                   WPUEbits.WPUE3                  // bit 3
22373 
22374 #define ZCD1INTN                ZCD1CONbits.ZCD1INTN            // bit 0
22375 #define ZCD1INTP                ZCD1CONbits.ZCD1INTP            // bit 1
22376 #define ZCD1POL                 ZCD1CONbits.ZCD1POL             // bit 4
22377 #define ZCD1OUT                 ZCD1CONbits.ZCD1OUT             // bit 5
22378 #define ZCD1EN                  ZCD1CONbits.ZCD1EN              // bit 7
22379 
22380 #endif // #ifndef NO_BIT_DEFINES
22381 
22382 #endif // #ifndef __PIC16F1778_H__
22383