1 /*
2  * This declarations of the PIC16LF1618 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:10 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 __PIC16LF1618_H__
26 #define __PIC16LF1618_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 PIR1_ADDR               0x0010
54 #define PIR2_ADDR               0x0011
55 #define PIR3_ADDR               0x0012
56 #define PIR4_ADDR               0x0013
57 #define PIR5_ADDR               0x0014
58 #define TMR0_ADDR               0x0015
59 #define TMR1_ADDR               0x0016
60 #define TMR1L_ADDR              0x0016
61 #define TMR1H_ADDR              0x0017
62 #define T1CON_ADDR              0x0018
63 #define T1GCON_ADDR             0x0019
64 #define T2TMR_ADDR              0x001A
65 #define TMR2_ADDR               0x001A
66 #define PR2_ADDR                0x001B
67 #define T2PR_ADDR               0x001B
68 #define T2CON_ADDR              0x001C
69 #define T2HLT_ADDR              0x001D
70 #define T2CLKCON_ADDR           0x001E
71 #define T2RST_ADDR              0x001F
72 #define TRISA_ADDR              0x008C
73 #define TRISB_ADDR              0x008D
74 #define TRISC_ADDR              0x008E
75 #define PIE1_ADDR               0x0090
76 #define PIE2_ADDR               0x0091
77 #define PIE3_ADDR               0x0092
78 #define PIE4_ADDR               0x0093
79 #define PIE5_ADDR               0x0094
80 #define OPTION_REG_ADDR         0x0095
81 #define PCON_ADDR               0x0096
82 #define OSCTUNE_ADDR            0x0098
83 #define OSCCON_ADDR             0x0099
84 #define OSCSTAT_ADDR            0x009A
85 #define ADRES_ADDR              0x009B
86 #define ADRESL_ADDR             0x009B
87 #define ADRESH_ADDR             0x009C
88 #define ADCON0_ADDR             0x009D
89 #define ADCON1_ADDR             0x009E
90 #define ADCON2_ADDR             0x009F
91 #define LATA_ADDR               0x010C
92 #define LATB_ADDR               0x010D
93 #define LATC_ADDR               0x010E
94 #define CM1CON0_ADDR            0x0111
95 #define CM1CON1_ADDR            0x0112
96 #define CM2CON0_ADDR            0x0113
97 #define CM2CON1_ADDR            0x0114
98 #define CMOUT_ADDR              0x0115
99 #define BORCON_ADDR             0x0116
100 #define FVRCON_ADDR             0x0117
101 #define DAC1CON0_ADDR           0x0118
102 #define DAC1CON1_ADDR           0x0119
103 #define ZCD1CON_ADDR            0x011C
104 #define ANSELA_ADDR             0x018C
105 #define ANSELB_ADDR             0x018D
106 #define ANSELC_ADDR             0x018E
107 #define PMADR_ADDR              0x0191
108 #define PMADRL_ADDR             0x0191
109 #define PMADRH_ADDR             0x0192
110 #define PMDAT_ADDR              0x0193
111 #define PMDATL_ADDR             0x0193
112 #define PMDATH_ADDR             0x0194
113 #define PMCON1_ADDR             0x0195
114 #define PMCON2_ADDR             0x0196
115 #define RC1REG_ADDR             0x0199
116 #define RCREG_ADDR              0x0199
117 #define RCREG1_ADDR             0x0199
118 #define TX1REG_ADDR             0x019A
119 #define TXREG_ADDR              0x019A
120 #define TXREG1_ADDR             0x019A
121 #define SP1BRG_ADDR             0x019B
122 #define SP1BRGL_ADDR            0x019B
123 #define SPBRG_ADDR              0x019B
124 #define SPBRG1_ADDR             0x019B
125 #define SPBRGL_ADDR             0x019B
126 #define SP1BRGH_ADDR            0x019C
127 #define SPBRGH_ADDR             0x019C
128 #define SPBRGH1_ADDR            0x019C
129 #define RC1STA_ADDR             0x019D
130 #define RCSTA_ADDR              0x019D
131 #define RCSTA1_ADDR             0x019D
132 #define TX1STA_ADDR             0x019E
133 #define TXSTA_ADDR              0x019E
134 #define TXSTA1_ADDR             0x019E
135 #define BAUD1CON_ADDR           0x019F
136 #define BAUDCON_ADDR            0x019F
137 #define BAUDCON1_ADDR           0x019F
138 #define BAUDCTL_ADDR            0x019F
139 #define BAUDCTL1_ADDR           0x019F
140 #define WPUA_ADDR               0x020C
141 #define WPUB_ADDR               0x020D
142 #define WPUC_ADDR               0x020E
143 #define SSP1BUF_ADDR            0x0211
144 #define SSPBUF_ADDR             0x0211
145 #define SSP1ADD_ADDR            0x0212
146 #define SSPADD_ADDR             0x0212
147 #define SSP1MSK_ADDR            0x0213
148 #define SSPMSK_ADDR             0x0213
149 #define SSP1STAT_ADDR           0x0214
150 #define SSPSTAT_ADDR            0x0214
151 #define SSP1CON_ADDR            0x0215
152 #define SSP1CON1_ADDR           0x0215
153 #define SSPCON_ADDR             0x0215
154 #define SSPCON1_ADDR            0x0215
155 #define SSP1CON2_ADDR           0x0216
156 #define SSPCON2_ADDR            0x0216
157 #define SSP1CON3_ADDR           0x0217
158 #define SSPCON3_ADDR            0x0217
159 #define ODCONA_ADDR             0x028C
160 #define ODCONB_ADDR             0x028D
161 #define ODCONC_ADDR             0x028E
162 #define CCPR1_ADDR              0x0291
163 #define CCPR1L_ADDR             0x0291
164 #define CCPR1H_ADDR             0x0292
165 #define CCP1CON_ADDR            0x0293
166 #define CCP1CAP_ADDR            0x0294
167 #define CCPR2_ADDR              0x0298
168 #define CCPR2L_ADDR             0x0298
169 #define CCPR2H_ADDR             0x0299
170 #define CCP2CON_ADDR            0x029A
171 #define CCP2CAP_ADDR            0x029B
172 #define CCPTMRS_ADDR            0x029E
173 #define SLRCONA_ADDR            0x030C
174 #define SLRCONB_ADDR            0x030D
175 #define SLRCONC_ADDR            0x030E
176 #define INLVLA_ADDR             0x038C
177 #define INLVLB_ADDR             0x038D
178 #define INLVLC_ADDR             0x038E
179 #define IOCAP_ADDR              0x0391
180 #define IOCAN_ADDR              0x0392
181 #define IOCAF_ADDR              0x0393
182 #define IOCBP_ADDR              0x0394
183 #define IOCBN_ADDR              0x0395
184 #define IOCBF_ADDR              0x0396
185 #define IOCCP_ADDR              0x0397
186 #define IOCCN_ADDR              0x0398
187 #define IOCCF_ADDR              0x0399
188 #define HDRVC_ADDR              0x040E
189 #define T4TMR_ADDR              0x0413
190 #define TMR4_ADDR               0x0413
191 #define PR4_ADDR                0x0414
192 #define T4PR_ADDR               0x0414
193 #define T4CON_ADDR              0x0415
194 #define T4HLT_ADDR              0x0416
195 #define T4CLKCON_ADDR           0x0417
196 #define T4RST_ADDR              0x0418
197 #define T6TMR_ADDR              0x041A
198 #define TMR6_ADDR               0x041A
199 #define PR6_ADDR                0x041B
200 #define T6PR_ADDR               0x041B
201 #define T6CON_ADDR              0x041C
202 #define T6HLT_ADDR              0x041D
203 #define T6CLKCON_ADDR           0x041E
204 #define T6RST_ADDR              0x041F
205 #define TMR3L_ADDR              0x0493
206 #define TMR3H_ADDR              0x0494
207 #define T3CON_ADDR              0x0495
208 #define T3GCON_ADDR             0x0496
209 #define TMR5L_ADDR              0x049A
210 #define TMR5H_ADDR              0x049B
211 #define T5CON_ADDR              0x049C
212 #define T5GCON_ADDR             0x049D
213 #define PID1SET_ADDR            0x058C
214 #define PID1SETL_ADDR           0x058C
215 #define PID1SETH_ADDR           0x058D
216 #define PID1IN_ADDR             0x058E
217 #define PID1INL_ADDR            0x058E
218 #define PID1INH_ADDR            0x058F
219 #define PID1K1_ADDR             0x0590
220 #define PID1K1L_ADDR            0x0590
221 #define PID1K1H_ADDR            0x0591
222 #define PID1K2_ADDR             0x0592
223 #define PID1K2L_ADDR            0x0592
224 #define PID1K2H_ADDR            0x0593
225 #define PID1K3_ADDR             0x0594
226 #define PID1K3L_ADDR            0x0594
227 #define PID1K3H_ADDR            0x0595
228 #define PID1OUT_ADDR            0x0596
229 #define PID1OUTLL_ADDR          0x0596
230 #define PID1OUTLH_ADDR          0x0597
231 #define PID1OUTHL_ADDR          0x0598
232 #define PID1OUTHH_ADDR          0x0599
233 #define PID1OUTU_ADDR           0x059A
234 #define PID1Z1_ADDR             0x059B
235 #define PID1Z1L_ADDR            0x059B
236 #define PID1Z1H_ADDR            0x059C
237 #define PID1Z1U_ADDR            0x059D
238 #define PID1Z2_ADDR             0x060C
239 #define PID1Z2L_ADDR            0x060C
240 #define PID1Z2H_ADDR            0x060D
241 #define PID1Z2U_ADDR            0x060E
242 #define PID1ACC_ADDR            0x060F
243 #define PID1ACCLL_ADDR          0x060F
244 #define PID1ACCLH_ADDR          0x0610
245 #define PID1ACCHL_ADDR          0x0611
246 #define PID1ACCHH_ADDR          0x0612
247 #define PID1ACCU_ADDR           0x0613
248 #define PID1CON_ADDR            0x0614
249 #define PWM3DCL_ADDR            0x0617
250 #define PWM3DCH_ADDR            0x0618
251 #define PWM3CON_ADDR            0x0619
252 #define PWM4DCL_ADDR            0x061A
253 #define PWM4DCH_ADDR            0x061B
254 #define PWM4CON_ADDR            0x061C
255 #define CWG1DBR_ADDR            0x0691
256 #define CWG1DBF_ADDR            0x0692
257 #define CWG1AS0_ADDR            0x0693
258 #define CWG1AS1_ADDR            0x0694
259 #define CWG1OCON0_ADDR          0x0695
260 #define CWG1CON0_ADDR           0x0696
261 #define CWG1CON1_ADDR           0x0697
262 #define CWG1CLKCON_ADDR         0x0699
263 #define CWG1ISM_ADDR            0x069A
264 #define WDTCON0_ADDR            0x0711
265 #define WDTCON1_ADDR            0x0712
266 #define WDTPSL_ADDR             0x0713
267 #define WDTPSH_ADDR             0x0714
268 #define WDTTMR_ADDR             0x0715
269 #define SCANLADR_ADDR           0x0718
270 #define SCANLADRL_ADDR          0x0718
271 #define SCANLADRH_ADDR          0x0719
272 #define SCANHADR_ADDR           0x071A
273 #define SCANHADRL_ADDR          0x071A
274 #define SCANHADRH_ADDR          0x071B
275 #define SCANCON0_ADDR           0x071C
276 #define SCANTRIG_ADDR           0x071D
277 #define CRCDAT_ADDR             0x0791
278 #define CRCDATL_ADDR            0x0791
279 #define CRCDATH_ADDR            0x0792
280 #define CRCACC_ADDR             0x0793
281 #define CRCACCL_ADDR            0x0793
282 #define CRCACCH_ADDR            0x0794
283 #define CRCSHIFT_ADDR           0x0795
284 #define CRCSHIFTL_ADDR          0x0795
285 #define CRCSHIFTH_ADDR          0x0796
286 #define CRCXOR_ADDR             0x0797
287 #define CRCXORL_ADDR            0x0797
288 #define CRCXORH_ADDR            0x0798
289 #define CRCCON0_ADDR            0x0799
290 #define CRCCON1_ADDR            0x079A
291 #define AT1RES_ADDR             0x080C
292 #define AT1RESL_ADDR            0x080C
293 #define AT1RESH_ADDR            0x080D
294 #define AT1MISS_ADDR            0x080E
295 #define AT1MISSL_ADDR           0x080E
296 #define AT1MISSH_ADDR           0x080F
297 #define AT1PER_ADDR             0x0810
298 #define AT1PERL_ADDR            0x0810
299 #define AT1PERH_ADDR            0x0811
300 #define AT1PHS_ADDR             0x0812
301 #define AT1PHSL_ADDR            0x0812
302 #define AT1PHSH_ADDR            0x0813
303 #define AT1CON0_ADDR            0x0814
304 #define AT1CON1_ADDR            0x0815
305 #define AT1IR0_ADDR             0x0816
306 #define AT1IE0_ADDR             0x0817
307 #define AT1IR1_ADDR             0x0818
308 #define AT1IE1_ADDR             0x0819
309 #define AT1STPT_ADDR            0x081A
310 #define AT1STPTL_ADDR           0x081A
311 #define AT1STPTH_ADDR           0x081B
312 #define AT1ERR_ADDR             0x081C
313 #define AT1ERRL_ADDR            0x081C
314 #define AT1ERRH_ADDR            0x081D
315 #define AT1CLK_ADDR             0x088C
316 #define AT1SIG_ADDR             0x088D
317 #define AT1CSEL1_ADDR           0x088E
318 #define AT1CC1_ADDR             0x088F
319 #define AT1CC1L_ADDR            0x088F
320 #define AT1CC1H_ADDR            0x0890
321 #define AT1CCON1_ADDR           0x0891
322 #define AT1CSEL2_ADDR           0x0892
323 #define AT1CC2_ADDR             0x0893
324 #define AT1CC2L_ADDR            0x0893
325 #define AT1CC2H_ADDR            0x0894
326 #define AT1CCON2_ADDR           0x0895
327 #define AT1CSEL3_ADDR           0x0896
328 #define AT1CC3_ADDR             0x0897
329 #define AT1CC3L_ADDR            0x0897
330 #define AT1CC3H_ADDR            0x0898
331 #define AT1CCON3_ADDR           0x0899
332 #define SMT1TMR_ADDR            0x0D8C
333 #define SMT1TMRL_ADDR           0x0D8C
334 #define SMT1TMRH_ADDR           0x0D8D
335 #define SMT1TMRU_ADDR           0x0D8E
336 #define SMT1CPR_ADDR            0x0D8F
337 #define SMT1CPRL_ADDR           0x0D8F
338 #define SMT1CPRH_ADDR           0x0D90
339 #define SMT1CPRU_ADDR           0x0D91
340 #define SMT1CPW_ADDR            0x0D92
341 #define SMT1CPWL_ADDR           0x0D92
342 #define SMT1CPWH_ADDR           0x0D93
343 #define SMT1CPWU_ADDR           0x0D94
344 #define SMT1PR_ADDR             0x0D95
345 #define SMT1PRL_ADDR            0x0D95
346 #define SMT1PRH_ADDR            0x0D96
347 #define SMT1PRU_ADDR            0x0D97
348 #define SMT1CON0_ADDR           0x0D98
349 #define SMT1CON1_ADDR           0x0D99
350 #define SMT1STAT_ADDR           0x0D9A
351 #define SMT1CLK_ADDR            0x0D9B
352 #define SMT1SIG_ADDR            0x0D9C
353 #define SMT1WIN_ADDR            0x0D9D
354 #define SMT2TMR_ADDR            0x0D9E
355 #define SMT2TMRL_ADDR           0x0D9E
356 #define SMT2TMRH_ADDR           0x0D9F
357 #define SMT2TMRU_ADDR           0x0DA0
358 #define SMT2CPR_ADDR            0x0DA1
359 #define SMT2CPRL_ADDR           0x0DA1
360 #define SMT2CPRH_ADDR           0x0DA2
361 #define SMT2CPRU_ADDR           0x0DA3
362 #define SMT2CPW_ADDR            0x0DA4
363 #define SMT2CPWL_ADDR           0x0DA4
364 #define SMT2CPWH_ADDR           0x0DA5
365 #define SMT2CPWU_ADDR           0x0DA6
366 #define SMT2PR_ADDR             0x0DA7
367 #define SMT2PRL_ADDR            0x0DA7
368 #define SMT2PRH_ADDR            0x0DA8
369 #define SMT2PRU_ADDR            0x0DA9
370 #define SMT2CON0_ADDR           0x0DAA
371 #define SMT2CON1_ADDR           0x0DAB
372 #define SMT2STAT_ADDR           0x0DAC
373 #define SMT2CLK_ADDR            0x0DAD
374 #define SMT2SIG_ADDR            0x0DAE
375 #define SMT2WIN_ADDR            0x0DAF
376 #define PPSLOCK_ADDR            0x0E0F
377 #define INTPPS_ADDR             0x0E10
378 #define T0CKIPPS_ADDR           0x0E11
379 #define T1CKIPPS_ADDR           0x0E12
380 #define T1GPPS_ADDR             0x0E13
381 #define CCP1PPS_ADDR            0x0E14
382 #define CCP2PPS_ADDR            0x0E15
383 #define ATINPPS_ADDR            0x0E16
384 #define CWGINPPS_ADDR           0x0E17
385 #define T2PPS_ADDR              0x0E18
386 #define T3CKIPPS_ADDR           0x0E19
387 #define T3GPPS_ADDR             0x0E1A
388 #define T4PPS_ADDR              0x0E1B
389 #define T5CKIPPS_ADDR           0x0E1C
390 #define T5GPPS_ADDR             0x0E1D
391 #define T6PPS_ADDR              0x0E1E
392 #define ATCC1PPS_ADDR           0x0E1F
393 #define SSPCLKPPS_ADDR          0x0E20
394 #define SSPDATPPS_ADDR          0x0E21
395 #define SSPSSPPS_ADDR           0x0E22
396 #define ATCC2PPS_ADDR           0x0E23
397 #define RXPPS_ADDR              0x0E24
398 #define CKPPS_ADDR              0x0E25
399 #define SMT1SIGPPS_ADDR         0x0E26
400 #define SMT1WINPPS_ADDR         0x0E27
401 #define CLCIN0PPS_ADDR          0x0E28
402 #define CLCIN1PPS_ADDR          0x0E29
403 #define CLCIN2PPS_ADDR          0x0E2A
404 #define CLCIN3PPS_ADDR          0x0E2B
405 #define SMT2SIGPPS_ADDR         0x0E2C
406 #define SMT2WINPPS_ADDR         0x0E2D
407 #define ATCC3PPS_ADDR           0x0E2E
408 #define RA0PPS_ADDR             0x0E90
409 #define RA1PPS_ADDR             0x0E91
410 #define RA2PPS_ADDR             0x0E92
411 #define RA4PPS_ADDR             0x0E94
412 #define RA5PPS_ADDR             0x0E95
413 #define RB4PPS_ADDR             0x0E9C
414 #define RB5PPS_ADDR             0x0E9D
415 #define RB6PPS_ADDR             0x0E9E
416 #define RB7PPS_ADDR             0x0E9F
417 #define RC0PPS_ADDR             0x0EA0
418 #define RC1PPS_ADDR             0x0EA1
419 #define RC2PPS_ADDR             0x0EA2
420 #define RC3PPS_ADDR             0x0EA3
421 #define RC4PPS_ADDR             0x0EA4
422 #define RC5PPS_ADDR             0x0EA5
423 #define RC6PPS_ADDR             0x0EA6
424 #define RC7PPS_ADDR             0x0EA7
425 #define CLCDATA_ADDR            0x0F0F
426 #define CLC1CON_ADDR            0x0F10
427 #define CLC1POL_ADDR            0x0F11
428 #define CLC1SEL0_ADDR           0x0F12
429 #define CLC1SEL1_ADDR           0x0F13
430 #define CLC1SEL2_ADDR           0x0F14
431 #define CLC1SEL3_ADDR           0x0F15
432 #define CLC1GLS0_ADDR           0x0F16
433 #define CLC1GLS1_ADDR           0x0F17
434 #define CLC1GLS2_ADDR           0x0F18
435 #define CLC1GLS3_ADDR           0x0F19
436 #define CLC2CON_ADDR            0x0F1A
437 #define CLC2POL_ADDR            0x0F1B
438 #define CLC2SEL0_ADDR           0x0F1C
439 #define CLC2SEL1_ADDR           0x0F1D
440 #define CLC2SEL2_ADDR           0x0F1E
441 #define CLC2SEL3_ADDR           0x0F1F
442 #define CLC2GLS0_ADDR           0x0F20
443 #define CLC2GLS1_ADDR           0x0F21
444 #define CLC2GLS2_ADDR           0x0F22
445 #define CLC2GLS3_ADDR           0x0F23
446 #define STATUS_SHAD_ADDR        0x0FE4
447 #define WREG_SHAD_ADDR          0x0FE5
448 #define BSR_SHAD_ADDR           0x0FE6
449 #define PCLATH_SHAD_ADDR        0x0FE7
450 #define FSR0L_SHAD_ADDR         0x0FE8
451 #define FSR0H_SHAD_ADDR         0x0FE9
452 #define FSR1L_SHAD_ADDR         0x0FEA
453 #define FSR1H_SHAD_ADDR         0x0FEB
454 #define STKPTR_ADDR             0x0FED
455 #define TOSL_ADDR               0x0FEE
456 #define TOSH_ADDR               0x0FEF
457 
458 #endif // #ifndef NO_ADDR_DEFINES
459 
460 //==============================================================================
461 //
462 //	Register Definitions
463 //
464 //==============================================================================
465 
466 extern __at(0x0000) __sfr INDF0;
467 extern __at(0x0001) __sfr INDF1;
468 extern __at(0x0002) __sfr PCL;
469 
470 //==============================================================================
471 //        STATUS Bits
472 
473 extern __at(0x0003) __sfr STATUS;
474 
475 typedef struct
476   {
477   unsigned C                    : 1;
478   unsigned DC                   : 1;
479   unsigned Z                    : 1;
480   unsigned NOT_PD               : 1;
481   unsigned NOT_TO               : 1;
482   unsigned                      : 1;
483   unsigned                      : 1;
484   unsigned                      : 1;
485   } __STATUSbits_t;
486 
487 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
488 
489 #define _C                      0x01
490 #define _DC                     0x02
491 #define _Z                      0x04
492 #define _NOT_PD                 0x08
493 #define _NOT_TO                 0x10
494 
495 //==============================================================================
496 
497 extern __at(0x0004) __sfr FSR0;
498 extern __at(0x0004) __sfr FSR0L;
499 extern __at(0x0005) __sfr FSR0H;
500 extern __at(0x0006) __sfr FSR1;
501 extern __at(0x0006) __sfr FSR1L;
502 extern __at(0x0007) __sfr FSR1H;
503 
504 //==============================================================================
505 //        BSR Bits
506 
507 extern __at(0x0008) __sfr BSR;
508 
509 typedef union
510   {
511   struct
512     {
513     unsigned BSR0               : 1;
514     unsigned BSR1               : 1;
515     unsigned BSR2               : 1;
516     unsigned BSR3               : 1;
517     unsigned BSR4               : 1;
518     unsigned                    : 1;
519     unsigned                    : 1;
520     unsigned                    : 1;
521     };
522 
523   struct
524     {
525     unsigned BSR                : 5;
526     unsigned                    : 3;
527     };
528   } __BSRbits_t;
529 
530 extern __at(0x0008) volatile __BSRbits_t BSRbits;
531 
532 #define _BSR0                   0x01
533 #define _BSR1                   0x02
534 #define _BSR2                   0x04
535 #define _BSR3                   0x08
536 #define _BSR4                   0x10
537 
538 //==============================================================================
539 
540 extern __at(0x0009) __sfr WREG;
541 extern __at(0x000A) __sfr PCLATH;
542 
543 //==============================================================================
544 //        INTCON Bits
545 
546 extern __at(0x000B) __sfr INTCON;
547 
548 typedef union
549   {
550   struct
551     {
552     unsigned IOCIF              : 1;
553     unsigned INTF               : 1;
554     unsigned TMR0IF             : 1;
555     unsigned IOCIE              : 1;
556     unsigned INTE               : 1;
557     unsigned TMR0IE             : 1;
558     unsigned PEIE               : 1;
559     unsigned GIE                : 1;
560     };
561 
562   struct
563     {
564     unsigned                    : 1;
565     unsigned                    : 1;
566     unsigned T0IF               : 1;
567     unsigned                    : 1;
568     unsigned                    : 1;
569     unsigned T0IE               : 1;
570     unsigned                    : 1;
571     unsigned                    : 1;
572     };
573   } __INTCONbits_t;
574 
575 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
576 
577 #define _IOCIF                  0x01
578 #define _INTF                   0x02
579 #define _TMR0IF                 0x04
580 #define _T0IF                   0x04
581 #define _IOCIE                  0x08
582 #define _INTE                   0x10
583 #define _TMR0IE                 0x20
584 #define _T0IE                   0x20
585 #define _PEIE                   0x40
586 #define _GIE                    0x80
587 
588 //==============================================================================
589 
590 
591 //==============================================================================
592 //        PORTA Bits
593 
594 extern __at(0x000C) __sfr PORTA;
595 
596 typedef union
597   {
598   struct
599     {
600     unsigned RA0                : 1;
601     unsigned RA1                : 1;
602     unsigned RA2                : 1;
603     unsigned RA3                : 1;
604     unsigned RA4                : 1;
605     unsigned RA5                : 1;
606     unsigned                    : 1;
607     unsigned                    : 1;
608     };
609 
610   struct
611     {
612     unsigned RA                 : 6;
613     unsigned                    : 2;
614     };
615   } __PORTAbits_t;
616 
617 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
618 
619 #define _RA0                    0x01
620 #define _RA1                    0x02
621 #define _RA2                    0x04
622 #define _RA3                    0x08
623 #define _RA4                    0x10
624 #define _RA5                    0x20
625 
626 //==============================================================================
627 
628 
629 //==============================================================================
630 //        PORTB Bits
631 
632 extern __at(0x000D) __sfr PORTB;
633 
634 typedef struct
635   {
636   unsigned                      : 1;
637   unsigned                      : 1;
638   unsigned                      : 1;
639   unsigned                      : 1;
640   unsigned RB4                  : 1;
641   unsigned RB5                  : 1;
642   unsigned RB6                  : 1;
643   unsigned RB7                  : 1;
644   } __PORTBbits_t;
645 
646 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
647 
648 #define _RB4                    0x10
649 #define _RB5                    0x20
650 #define _RB6                    0x40
651 #define _RB7                    0x80
652 
653 //==============================================================================
654 
655 
656 //==============================================================================
657 //        PORTC Bits
658 
659 extern __at(0x000E) __sfr PORTC;
660 
661 typedef struct
662   {
663   unsigned RC0                  : 1;
664   unsigned RC1                  : 1;
665   unsigned RC2                  : 1;
666   unsigned RC3                  : 1;
667   unsigned RC4                  : 1;
668   unsigned RC5                  : 1;
669   unsigned RC6                  : 1;
670   unsigned RC7                  : 1;
671   } __PORTCbits_t;
672 
673 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
674 
675 #define _RC0                    0x01
676 #define _RC1                    0x02
677 #define _RC2                    0x04
678 #define _RC3                    0x08
679 #define _RC4                    0x10
680 #define _RC5                    0x20
681 #define _RC6                    0x40
682 #define _RC7                    0x80
683 
684 //==============================================================================
685 
686 
687 //==============================================================================
688 //        PIR1 Bits
689 
690 extern __at(0x0010) __sfr PIR1;
691 
692 typedef struct
693   {
694   unsigned TMR1IF               : 1;
695   unsigned TMR2IF               : 1;
696   unsigned CCP1IF               : 1;
697   unsigned SSP1IF               : 1;
698   unsigned TXIF                 : 1;
699   unsigned RCIF                 : 1;
700   unsigned ADIF                 : 1;
701   unsigned TMR1GIF              : 1;
702   } __PIR1bits_t;
703 
704 extern __at(0x0010) volatile __PIR1bits_t PIR1bits;
705 
706 #define _TMR1IF                 0x01
707 #define _TMR2IF                 0x02
708 #define _CCP1IF                 0x04
709 #define _SSP1IF                 0x08
710 #define _TXIF                   0x10
711 #define _RCIF                   0x20
712 #define _ADIF                   0x40
713 #define _TMR1GIF                0x80
714 
715 //==============================================================================
716 
717 
718 //==============================================================================
719 //        PIR2 Bits
720 
721 extern __at(0x0011) __sfr PIR2;
722 
723 typedef struct
724   {
725   unsigned CCP2IF               : 1;
726   unsigned TMR4IF               : 1;
727   unsigned TMR6IF               : 1;
728   unsigned BCL1IF               : 1;
729   unsigned                      : 1;
730   unsigned C1IF                 : 1;
731   unsigned C2IF                 : 1;
732   unsigned                      : 1;
733   } __PIR2bits_t;
734 
735 extern __at(0x0011) volatile __PIR2bits_t PIR2bits;
736 
737 #define _CCP2IF                 0x01
738 #define _TMR4IF                 0x02
739 #define _TMR6IF                 0x04
740 #define _BCL1IF                 0x08
741 #define _C1IF                   0x20
742 #define _C2IF                   0x40
743 
744 //==============================================================================
745 
746 
747 //==============================================================================
748 //        PIR3 Bits
749 
750 extern __at(0x0012) __sfr PIR3;
751 
752 typedef struct
753   {
754   unsigned CLC1IF               : 1;
755   unsigned CLC2IF               : 1;
756   unsigned                      : 1;
757   unsigned                      : 1;
758   unsigned ZCDIF                : 1;
759   unsigned CWGIF                : 1;
760   unsigned                      : 1;
761   unsigned                      : 1;
762   } __PIR3bits_t;
763 
764 extern __at(0x0012) volatile __PIR3bits_t PIR3bits;
765 
766 #define _CLC1IF                 0x01
767 #define _CLC2IF                 0x02
768 #define _ZCDIF                  0x10
769 #define _CWGIF                  0x20
770 
771 //==============================================================================
772 
773 
774 //==============================================================================
775 //        PIR4 Bits
776 
777 extern __at(0x0013) __sfr PIR4;
778 
779 typedef struct
780   {
781   unsigned SMT1IF               : 1;
782   unsigned SMT1PRAIF            : 1;
783   unsigned SMT1PWAIF            : 1;
784   unsigned SMT2IF               : 1;
785   unsigned SMT2PRAIF            : 1;
786   unsigned SMT2PWAIF            : 1;
787   unsigned CRCIF                : 1;
788   unsigned SCANIF               : 1;
789   } __PIR4bits_t;
790 
791 extern __at(0x0013) volatile __PIR4bits_t PIR4bits;
792 
793 #define _SMT1IF                 0x01
794 #define _SMT1PRAIF              0x02
795 #define _SMT1PWAIF              0x04
796 #define _SMT2IF                 0x08
797 #define _SMT2PRAIF              0x10
798 #define _SMT2PWAIF              0x20
799 #define _CRCIF                  0x40
800 #define _SCANIF                 0x80
801 
802 //==============================================================================
803 
804 
805 //==============================================================================
806 //        PIR5 Bits
807 
808 extern __at(0x0014) __sfr PIR5;
809 
810 typedef struct
811   {
812   unsigned PID1DIF              : 1;
813   unsigned PID1EIF              : 1;
814   unsigned AT1IF                : 1;
815   unsigned                      : 1;
816   unsigned TMR5IF               : 1;
817   unsigned TMR5GIF              : 1;
818   unsigned TMR3IF               : 1;
819   unsigned TMR3GIF              : 1;
820   } __PIR5bits_t;
821 
822 extern __at(0x0014) volatile __PIR5bits_t PIR5bits;
823 
824 #define _PID1DIF                0x01
825 #define _PID1EIF                0x02
826 #define _AT1IF                  0x04
827 #define _TMR5IF                 0x10
828 #define _TMR5GIF                0x20
829 #define _TMR3IF                 0x40
830 #define _TMR3GIF                0x80
831 
832 //==============================================================================
833 
834 extern __at(0x0015) __sfr TMR0;
835 extern __at(0x0016) __sfr TMR1;
836 extern __at(0x0016) __sfr TMR1L;
837 extern __at(0x0017) __sfr TMR1H;
838 
839 //==============================================================================
840 //        T1CON Bits
841 
842 extern __at(0x0018) __sfr T1CON;
843 
844 typedef union
845   {
846   struct
847     {
848     unsigned TMR1ON             : 1;
849     unsigned                    : 1;
850     unsigned NOT_T1SYNC         : 1;
851     unsigned                    : 1;
852     unsigned T1CKPS0            : 1;
853     unsigned T1CKPS1            : 1;
854     unsigned TMR1CS0            : 1;
855     unsigned TMR1CS1            : 1;
856     };
857 
858   struct
859     {
860     unsigned                    : 4;
861     unsigned T1CKPS             : 2;
862     unsigned                    : 2;
863     };
864 
865   struct
866     {
867     unsigned                    : 6;
868     unsigned TMR1CS             : 2;
869     };
870   } __T1CONbits_t;
871 
872 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
873 
874 #define _TMR1ON                 0x01
875 #define _NOT_T1SYNC             0x04
876 #define _T1CKPS0                0x10
877 #define _T1CKPS1                0x20
878 #define _TMR1CS0                0x40
879 #define _TMR1CS1                0x80
880 
881 //==============================================================================
882 
883 
884 //==============================================================================
885 //        T1GCON Bits
886 
887 extern __at(0x0019) __sfr T1GCON;
888 
889 typedef union
890   {
891   struct
892     {
893     unsigned T1GSS0             : 1;
894     unsigned T1GSS1             : 1;
895     unsigned T1GVAL             : 1;
896     unsigned T1GGO_NOT_DONE     : 1;
897     unsigned T1GSPM             : 1;
898     unsigned T1GTM              : 1;
899     unsigned T1GPOL             : 1;
900     unsigned TMR1GE             : 1;
901     };
902 
903   struct
904     {
905     unsigned T1GSS              : 2;
906     unsigned                    : 6;
907     };
908   } __T1GCONbits_t;
909 
910 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
911 
912 #define _T1GSS0                 0x01
913 #define _T1GSS1                 0x02
914 #define _T1GVAL                 0x04
915 #define _T1GGO_NOT_DONE         0x08
916 #define _T1GSPM                 0x10
917 #define _T1GTM                  0x20
918 #define _T1GPOL                 0x40
919 #define _TMR1GE                 0x80
920 
921 //==============================================================================
922 
923 extern __at(0x001A) __sfr T2TMR;
924 extern __at(0x001A) __sfr TMR2;
925 extern __at(0x001B) __sfr PR2;
926 extern __at(0x001B) __sfr T2PR;
927 
928 //==============================================================================
929 //        T2CON Bits
930 
931 extern __at(0x001C) __sfr T2CON;
932 
933 typedef union
934   {
935   struct
936     {
937     unsigned OUTPS0             : 1;
938     unsigned OUTPS1             : 1;
939     unsigned OUTPS2             : 1;
940     unsigned OUTPS3             : 1;
941     unsigned CKPS0              : 1;
942     unsigned CKPS1              : 1;
943     unsigned CKPS2              : 1;
944     unsigned ON                 : 1;
945     };
946 
947   struct
948     {
949     unsigned T2OUTPS0           : 1;
950     unsigned T2OUTPS1           : 1;
951     unsigned T2OUTPS2           : 1;
952     unsigned T2OUTPS3           : 1;
953     unsigned T2CKPS0            : 1;
954     unsigned T2CKPS1            : 1;
955     unsigned T2CKPS2            : 1;
956     unsigned T2ON               : 1;
957     };
958 
959   struct
960     {
961     unsigned                    : 1;
962     unsigned                    : 1;
963     unsigned                    : 1;
964     unsigned                    : 1;
965     unsigned                    : 1;
966     unsigned                    : 1;
967     unsigned                    : 1;
968     unsigned TMR2ON             : 1;
969     };
970 
971   struct
972     {
973     unsigned OUTPS              : 4;
974     unsigned                    : 4;
975     };
976 
977   struct
978     {
979     unsigned T2OUTPS            : 4;
980     unsigned                    : 4;
981     };
982 
983   struct
984     {
985     unsigned                    : 4;
986     unsigned T2CKPS             : 3;
987     unsigned                    : 1;
988     };
989 
990   struct
991     {
992     unsigned                    : 4;
993     unsigned CKPS               : 3;
994     unsigned                    : 1;
995     };
996   } __T2CONbits_t;
997 
998 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
999 
1000 #define _OUTPS0                 0x01
1001 #define _T2OUTPS0               0x01
1002 #define _OUTPS1                 0x02
1003 #define _T2OUTPS1               0x02
1004 #define _OUTPS2                 0x04
1005 #define _T2OUTPS2               0x04
1006 #define _OUTPS3                 0x08
1007 #define _T2OUTPS3               0x08
1008 #define _CKPS0                  0x10
1009 #define _T2CKPS0                0x10
1010 #define _CKPS1                  0x20
1011 #define _T2CKPS1                0x20
1012 #define _CKPS2                  0x40
1013 #define _T2CKPS2                0x40
1014 #define _ON                     0x80
1015 #define _T2ON                   0x80
1016 #define _TMR2ON                 0x80
1017 
1018 //==============================================================================
1019 
1020 
1021 //==============================================================================
1022 //        T2HLT Bits
1023 
1024 extern __at(0x001D) __sfr T2HLT;
1025 
1026 typedef union
1027   {
1028   struct
1029     {
1030     unsigned MODE0              : 1;
1031     unsigned MODE1              : 1;
1032     unsigned MODE2              : 1;
1033     unsigned MODE3              : 1;
1034     unsigned MODE4              : 1;
1035     unsigned CKSYNC             : 1;
1036     unsigned CKPOL              : 1;
1037     unsigned PSYNC              : 1;
1038     };
1039 
1040   struct
1041     {
1042     unsigned T2MODE0            : 1;
1043     unsigned T2MODE1            : 1;
1044     unsigned T2MODE2            : 1;
1045     unsigned T2MODE3            : 1;
1046     unsigned T2MODE4            : 1;
1047     unsigned T2CKSYNC           : 1;
1048     unsigned T2CKPOL            : 1;
1049     unsigned T2PSYNC            : 1;
1050     };
1051 
1052   struct
1053     {
1054     unsigned T2MODE             : 5;
1055     unsigned                    : 3;
1056     };
1057 
1058   struct
1059     {
1060     unsigned MODE               : 5;
1061     unsigned                    : 3;
1062     };
1063   } __T2HLTbits_t;
1064 
1065 extern __at(0x001D) volatile __T2HLTbits_t T2HLTbits;
1066 
1067 #define _T2HLT_MODE0            0x01
1068 #define _T2HLT_T2MODE0          0x01
1069 #define _T2HLT_MODE1            0x02
1070 #define _T2HLT_T2MODE1          0x02
1071 #define _T2HLT_MODE2            0x04
1072 #define _T2HLT_T2MODE2          0x04
1073 #define _T2HLT_MODE3            0x08
1074 #define _T2HLT_T2MODE3          0x08
1075 #define _T2HLT_MODE4            0x10
1076 #define _T2HLT_T2MODE4          0x10
1077 #define _T2HLT_CKSYNC           0x20
1078 #define _T2HLT_T2CKSYNC         0x20
1079 #define _T2HLT_CKPOL            0x40
1080 #define _T2HLT_T2CKPOL          0x40
1081 #define _T2HLT_PSYNC            0x80
1082 #define _T2HLT_T2PSYNC          0x80
1083 
1084 //==============================================================================
1085 
1086 
1087 //==============================================================================
1088 //        T2CLKCON Bits
1089 
1090 extern __at(0x001E) __sfr T2CLKCON;
1091 
1092 typedef union
1093   {
1094   struct
1095     {
1096     unsigned CS0                : 1;
1097     unsigned CS1                : 1;
1098     unsigned CS2                : 1;
1099     unsigned CS3                : 1;
1100     unsigned                    : 1;
1101     unsigned                    : 1;
1102     unsigned                    : 1;
1103     unsigned                    : 1;
1104     };
1105 
1106   struct
1107     {
1108     unsigned T2CS0              : 1;
1109     unsigned T2CS1              : 1;
1110     unsigned T2CS2              : 1;
1111     unsigned T2CS3              : 1;
1112     unsigned                    : 1;
1113     unsigned                    : 1;
1114     unsigned                    : 1;
1115     unsigned                    : 1;
1116     };
1117 
1118   struct
1119     {
1120     unsigned T2CS               : 4;
1121     unsigned                    : 4;
1122     };
1123 
1124   struct
1125     {
1126     unsigned CS                 : 4;
1127     unsigned                    : 4;
1128     };
1129   } __T2CLKCONbits_t;
1130 
1131 extern __at(0x001E) volatile __T2CLKCONbits_t T2CLKCONbits;
1132 
1133 #define _T2CLKCON_CS0           0x01
1134 #define _T2CLKCON_T2CS0         0x01
1135 #define _T2CLKCON_CS1           0x02
1136 #define _T2CLKCON_T2CS1         0x02
1137 #define _T2CLKCON_CS2           0x04
1138 #define _T2CLKCON_T2CS2         0x04
1139 #define _T2CLKCON_CS3           0x08
1140 #define _T2CLKCON_T2CS3         0x08
1141 
1142 //==============================================================================
1143 
1144 
1145 //==============================================================================
1146 //        T2RST Bits
1147 
1148 extern __at(0x001F) __sfr T2RST;
1149 
1150 typedef union
1151   {
1152   struct
1153     {
1154     unsigned RSEL0              : 1;
1155     unsigned RSEL1              : 1;
1156     unsigned RSEL2              : 1;
1157     unsigned RSEL3              : 1;
1158     unsigned                    : 1;
1159     unsigned                    : 1;
1160     unsigned                    : 1;
1161     unsigned                    : 1;
1162     };
1163 
1164   struct
1165     {
1166     unsigned T2RSEL0            : 1;
1167     unsigned T2RSEL1            : 1;
1168     unsigned T2RSEL2            : 1;
1169     unsigned T2RSEL3            : 1;
1170     unsigned                    : 1;
1171     unsigned                    : 1;
1172     unsigned                    : 1;
1173     unsigned                    : 1;
1174     };
1175 
1176   struct
1177     {
1178     unsigned RSEL               : 4;
1179     unsigned                    : 4;
1180     };
1181 
1182   struct
1183     {
1184     unsigned T2RSEL             : 4;
1185     unsigned                    : 4;
1186     };
1187   } __T2RSTbits_t;
1188 
1189 extern __at(0x001F) volatile __T2RSTbits_t T2RSTbits;
1190 
1191 #define _RSEL0                  0x01
1192 #define _T2RSEL0                0x01
1193 #define _RSEL1                  0x02
1194 #define _T2RSEL1                0x02
1195 #define _RSEL2                  0x04
1196 #define _T2RSEL2                0x04
1197 #define _RSEL3                  0x08
1198 #define _T2RSEL3                0x08
1199 
1200 //==============================================================================
1201 
1202 
1203 //==============================================================================
1204 //        TRISA Bits
1205 
1206 extern __at(0x008C) __sfr TRISA;
1207 
1208 typedef union
1209   {
1210   struct
1211     {
1212     unsigned TRISA0             : 1;
1213     unsigned TRISA1             : 1;
1214     unsigned TRISA2             : 1;
1215     unsigned TRISA3             : 1;
1216     unsigned TRISA4             : 1;
1217     unsigned TRISA5             : 1;
1218     unsigned                    : 1;
1219     unsigned                    : 1;
1220     };
1221 
1222   struct
1223     {
1224     unsigned TRISA              : 6;
1225     unsigned                    : 2;
1226     };
1227   } __TRISAbits_t;
1228 
1229 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
1230 
1231 #define _TRISA0                 0x01
1232 #define _TRISA1                 0x02
1233 #define _TRISA2                 0x04
1234 #define _TRISA3                 0x08
1235 #define _TRISA4                 0x10
1236 #define _TRISA5                 0x20
1237 
1238 //==============================================================================
1239 
1240 
1241 //==============================================================================
1242 //        TRISB Bits
1243 
1244 extern __at(0x008D) __sfr TRISB;
1245 
1246 typedef struct
1247   {
1248   unsigned                      : 1;
1249   unsigned                      : 1;
1250   unsigned                      : 1;
1251   unsigned                      : 1;
1252   unsigned TRISB4               : 1;
1253   unsigned TRISB5               : 1;
1254   unsigned TRISB6               : 1;
1255   unsigned TRISB7               : 1;
1256   } __TRISBbits_t;
1257 
1258 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
1259 
1260 #define _TRISB4                 0x10
1261 #define _TRISB5                 0x20
1262 #define _TRISB6                 0x40
1263 #define _TRISB7                 0x80
1264 
1265 //==============================================================================
1266 
1267 
1268 //==============================================================================
1269 //        TRISC Bits
1270 
1271 extern __at(0x008E) __sfr TRISC;
1272 
1273 typedef struct
1274   {
1275   unsigned TRISC0               : 1;
1276   unsigned TRISC1               : 1;
1277   unsigned TRISC2               : 1;
1278   unsigned TRISC3               : 1;
1279   unsigned TRISC4               : 1;
1280   unsigned TRISC5               : 1;
1281   unsigned TRISC6               : 1;
1282   unsigned TRISC7               : 1;
1283   } __TRISCbits_t;
1284 
1285 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1286 
1287 #define _TRISC0                 0x01
1288 #define _TRISC1                 0x02
1289 #define _TRISC2                 0x04
1290 #define _TRISC3                 0x08
1291 #define _TRISC4                 0x10
1292 #define _TRISC5                 0x20
1293 #define _TRISC6                 0x40
1294 #define _TRISC7                 0x80
1295 
1296 //==============================================================================
1297 
1298 
1299 //==============================================================================
1300 //        PIE1 Bits
1301 
1302 extern __at(0x0090) __sfr PIE1;
1303 
1304 typedef struct
1305   {
1306   unsigned TMR1IE               : 1;
1307   unsigned TMR2IE               : 1;
1308   unsigned CCP1IE               : 1;
1309   unsigned SSP1IE               : 1;
1310   unsigned TXIE                 : 1;
1311   unsigned RCIE                 : 1;
1312   unsigned ADIE                 : 1;
1313   unsigned TMR1GIE              : 1;
1314   } __PIE1bits_t;
1315 
1316 extern __at(0x0090) volatile __PIE1bits_t PIE1bits;
1317 
1318 #define _TMR1IE                 0x01
1319 #define _TMR2IE                 0x02
1320 #define _CCP1IE                 0x04
1321 #define _SSP1IE                 0x08
1322 #define _TXIE                   0x10
1323 #define _RCIE                   0x20
1324 #define _ADIE                   0x40
1325 #define _TMR1GIE                0x80
1326 
1327 //==============================================================================
1328 
1329 
1330 //==============================================================================
1331 //        PIE2 Bits
1332 
1333 extern __at(0x0091) __sfr PIE2;
1334 
1335 typedef struct
1336   {
1337   unsigned CCP2IE               : 1;
1338   unsigned TMR4IE               : 1;
1339   unsigned TMR6IE               : 1;
1340   unsigned BCL1IE               : 1;
1341   unsigned                      : 1;
1342   unsigned C1IE                 : 1;
1343   unsigned C2IE                 : 1;
1344   unsigned                      : 1;
1345   } __PIE2bits_t;
1346 
1347 extern __at(0x0091) volatile __PIE2bits_t PIE2bits;
1348 
1349 #define _CCP2IE                 0x01
1350 #define _TMR4IE                 0x02
1351 #define _TMR6IE                 0x04
1352 #define _BCL1IE                 0x08
1353 #define _C1IE                   0x20
1354 #define _C2IE                   0x40
1355 
1356 //==============================================================================
1357 
1358 
1359 //==============================================================================
1360 //        PIE3 Bits
1361 
1362 extern __at(0x0092) __sfr PIE3;
1363 
1364 typedef struct
1365   {
1366   unsigned CLC1IE               : 1;
1367   unsigned CLC2IE               : 1;
1368   unsigned                      : 1;
1369   unsigned                      : 1;
1370   unsigned ZCDIE                : 1;
1371   unsigned CWGIE                : 1;
1372   unsigned                      : 1;
1373   unsigned                      : 1;
1374   } __PIE3bits_t;
1375 
1376 extern __at(0x0092) volatile __PIE3bits_t PIE3bits;
1377 
1378 #define _CLC1IE                 0x01
1379 #define _CLC2IE                 0x02
1380 #define _ZCDIE                  0x10
1381 #define _CWGIE                  0x20
1382 
1383 //==============================================================================
1384 
1385 
1386 //==============================================================================
1387 //        PIE4 Bits
1388 
1389 extern __at(0x0093) __sfr PIE4;
1390 
1391 typedef struct
1392   {
1393   unsigned SMT1IE               : 1;
1394   unsigned SMT1PRAIE            : 1;
1395   unsigned SMT1PWAIE            : 1;
1396   unsigned SMT2IE               : 1;
1397   unsigned SMT2PRAIE            : 1;
1398   unsigned SMT2PWAIE            : 1;
1399   unsigned CRCIE                : 1;
1400   unsigned SCANIE               : 1;
1401   } __PIE4bits_t;
1402 
1403 extern __at(0x0093) volatile __PIE4bits_t PIE4bits;
1404 
1405 #define _SMT1IE                 0x01
1406 #define _SMT1PRAIE              0x02
1407 #define _SMT1PWAIE              0x04
1408 #define _SMT2IE                 0x08
1409 #define _SMT2PRAIE              0x10
1410 #define _SMT2PWAIE              0x20
1411 #define _CRCIE                  0x40
1412 #define _SCANIE                 0x80
1413 
1414 //==============================================================================
1415 
1416 
1417 //==============================================================================
1418 //        PIE5 Bits
1419 
1420 extern __at(0x0094) __sfr PIE5;
1421 
1422 typedef struct
1423   {
1424   unsigned PID1DIE              : 1;
1425   unsigned PID1EIE              : 1;
1426   unsigned AT1IE                : 1;
1427   unsigned                      : 1;
1428   unsigned TMR5IE               : 1;
1429   unsigned TMR5GIE              : 1;
1430   unsigned TMR3IE               : 1;
1431   unsigned TMR3GIE              : 1;
1432   } __PIE5bits_t;
1433 
1434 extern __at(0x0094) volatile __PIE5bits_t PIE5bits;
1435 
1436 #define _PID1DIE                0x01
1437 #define _PID1EIE                0x02
1438 #define _AT1IE                  0x04
1439 #define _TMR5IE                 0x10
1440 #define _TMR5GIE                0x20
1441 #define _TMR3IE                 0x40
1442 #define _TMR3GIE                0x80
1443 
1444 //==============================================================================
1445 
1446 
1447 //==============================================================================
1448 //        OPTION_REG Bits
1449 
1450 extern __at(0x0095) __sfr OPTION_REG;
1451 
1452 typedef union
1453   {
1454   struct
1455     {
1456     unsigned PS0                : 1;
1457     unsigned PS1                : 1;
1458     unsigned PS2                : 1;
1459     unsigned PSA                : 1;
1460     unsigned TMR0SE             : 1;
1461     unsigned TMR0CS             : 1;
1462     unsigned INTEDG             : 1;
1463     unsigned NOT_WPUEN          : 1;
1464     };
1465 
1466   struct
1467     {
1468     unsigned                    : 1;
1469     unsigned                    : 1;
1470     unsigned                    : 1;
1471     unsigned                    : 1;
1472     unsigned T0SE               : 1;
1473     unsigned T0CS               : 1;
1474     unsigned                    : 1;
1475     unsigned                    : 1;
1476     };
1477 
1478   struct
1479     {
1480     unsigned PS                 : 3;
1481     unsigned                    : 5;
1482     };
1483   } __OPTION_REGbits_t;
1484 
1485 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1486 
1487 #define _OPTION_REG_PS0         0x01
1488 #define _OPTION_REG_PS1         0x02
1489 #define _OPTION_REG_PS2         0x04
1490 #define _OPTION_REG_PSA         0x08
1491 #define _OPTION_REG_TMR0SE      0x10
1492 #define _OPTION_REG_T0SE        0x10
1493 #define _OPTION_REG_TMR0CS      0x20
1494 #define _OPTION_REG_T0CS        0x20
1495 #define _OPTION_REG_INTEDG      0x40
1496 #define _OPTION_REG_NOT_WPUEN   0x80
1497 
1498 //==============================================================================
1499 
1500 
1501 //==============================================================================
1502 //        PCON Bits
1503 
1504 extern __at(0x0096) __sfr PCON;
1505 
1506 typedef struct
1507   {
1508   unsigned NOT_BOR              : 1;
1509   unsigned NOT_POR              : 1;
1510   unsigned NOT_RI               : 1;
1511   unsigned NOT_RMCLR            : 1;
1512   unsigned NOT_RWDT             : 1;
1513   unsigned NOT_WDTWV            : 1;
1514   unsigned STKUNF               : 1;
1515   unsigned STKOVF               : 1;
1516   } __PCONbits_t;
1517 
1518 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1519 
1520 #define _NOT_BOR                0x01
1521 #define _NOT_POR                0x02
1522 #define _NOT_RI                 0x04
1523 #define _NOT_RMCLR              0x08
1524 #define _NOT_RWDT               0x10
1525 #define _NOT_WDTWV              0x20
1526 #define _STKUNF                 0x40
1527 #define _STKOVF                 0x80
1528 
1529 //==============================================================================
1530 
1531 
1532 //==============================================================================
1533 //        OSCTUNE Bits
1534 
1535 extern __at(0x0098) __sfr OSCTUNE;
1536 
1537 typedef union
1538   {
1539   struct
1540     {
1541     unsigned TUN0               : 1;
1542     unsigned TUN1               : 1;
1543     unsigned TUN2               : 1;
1544     unsigned TUN3               : 1;
1545     unsigned TUN4               : 1;
1546     unsigned TUN5               : 1;
1547     unsigned                    : 1;
1548     unsigned                    : 1;
1549     };
1550 
1551   struct
1552     {
1553     unsigned TUN                : 6;
1554     unsigned                    : 2;
1555     };
1556   } __OSCTUNEbits_t;
1557 
1558 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1559 
1560 #define _TUN0                   0x01
1561 #define _TUN1                   0x02
1562 #define _TUN2                   0x04
1563 #define _TUN3                   0x08
1564 #define _TUN4                   0x10
1565 #define _TUN5                   0x20
1566 
1567 //==============================================================================
1568 
1569 
1570 //==============================================================================
1571 //        OSCCON Bits
1572 
1573 extern __at(0x0099) __sfr OSCCON;
1574 
1575 typedef union
1576   {
1577   struct
1578     {
1579     unsigned SCS0               : 1;
1580     unsigned SCS1               : 1;
1581     unsigned                    : 1;
1582     unsigned IRCF0              : 1;
1583     unsigned IRCF1              : 1;
1584     unsigned IRCF2              : 1;
1585     unsigned IRCF3              : 1;
1586     unsigned SPLLEN             : 1;
1587     };
1588 
1589   struct
1590     {
1591     unsigned SCS                : 2;
1592     unsigned                    : 6;
1593     };
1594 
1595   struct
1596     {
1597     unsigned                    : 3;
1598     unsigned IRCF               : 4;
1599     unsigned                    : 1;
1600     };
1601   } __OSCCONbits_t;
1602 
1603 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1604 
1605 #define _SCS0                   0x01
1606 #define _SCS1                   0x02
1607 #define _IRCF0                  0x08
1608 #define _IRCF1                  0x10
1609 #define _IRCF2                  0x20
1610 #define _IRCF3                  0x40
1611 #define _SPLLEN                 0x80
1612 
1613 //==============================================================================
1614 
1615 
1616 //==============================================================================
1617 //        OSCSTAT Bits
1618 
1619 extern __at(0x009A) __sfr OSCSTAT;
1620 
1621 typedef struct
1622   {
1623   unsigned HFIOFS               : 1;
1624   unsigned LFIOFR               : 1;
1625   unsigned MFIOFR               : 1;
1626   unsigned HFIOFL               : 1;
1627   unsigned HFIOFR               : 1;
1628   unsigned                      : 1;
1629   unsigned PLLR                 : 1;
1630   unsigned                      : 1;
1631   } __OSCSTATbits_t;
1632 
1633 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1634 
1635 #define _HFIOFS                 0x01
1636 #define _LFIOFR                 0x02
1637 #define _MFIOFR                 0x04
1638 #define _HFIOFL                 0x08
1639 #define _HFIOFR                 0x10
1640 #define _PLLR                   0x40
1641 
1642 //==============================================================================
1643 
1644 extern __at(0x009B) __sfr ADRES;
1645 extern __at(0x009B) __sfr ADRESL;
1646 extern __at(0x009C) __sfr ADRESH;
1647 
1648 //==============================================================================
1649 //        ADCON0 Bits
1650 
1651 extern __at(0x009D) __sfr ADCON0;
1652 
1653 typedef union
1654   {
1655   struct
1656     {
1657     unsigned ADON               : 1;
1658     unsigned GO_NOT_DONE        : 1;
1659     unsigned CHS0               : 1;
1660     unsigned CHS1               : 1;
1661     unsigned CHS2               : 1;
1662     unsigned CHS3               : 1;
1663     unsigned CHS4               : 1;
1664     unsigned                    : 1;
1665     };
1666 
1667   struct
1668     {
1669     unsigned                    : 1;
1670     unsigned ADGO               : 1;
1671     unsigned                    : 1;
1672     unsigned                    : 1;
1673     unsigned                    : 1;
1674     unsigned                    : 1;
1675     unsigned                    : 1;
1676     unsigned                    : 1;
1677     };
1678 
1679   struct
1680     {
1681     unsigned                    : 1;
1682     unsigned GO                 : 1;
1683     unsigned                    : 1;
1684     unsigned                    : 1;
1685     unsigned                    : 1;
1686     unsigned                    : 1;
1687     unsigned                    : 1;
1688     unsigned                    : 1;
1689     };
1690 
1691   struct
1692     {
1693     unsigned                    : 2;
1694     unsigned CHS                : 5;
1695     unsigned                    : 1;
1696     };
1697   } __ADCON0bits_t;
1698 
1699 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1700 
1701 #define _ADON                   0x01
1702 #define _GO_NOT_DONE            0x02
1703 #define _ADGO                   0x02
1704 #define _GO                     0x02
1705 #define _CHS0                   0x04
1706 #define _CHS1                   0x08
1707 #define _CHS2                   0x10
1708 #define _CHS3                   0x20
1709 #define _CHS4                   0x40
1710 
1711 //==============================================================================
1712 
1713 
1714 //==============================================================================
1715 //        ADCON1 Bits
1716 
1717 extern __at(0x009E) __sfr ADCON1;
1718 
1719 typedef union
1720   {
1721   struct
1722     {
1723     unsigned ADPREF0            : 1;
1724     unsigned ADPREF1            : 1;
1725     unsigned                    : 1;
1726     unsigned                    : 1;
1727     unsigned ADCS0              : 1;
1728     unsigned ADCS1              : 1;
1729     unsigned ADCS2              : 1;
1730     unsigned ADFM               : 1;
1731     };
1732 
1733   struct
1734     {
1735     unsigned ADPREF             : 2;
1736     unsigned                    : 6;
1737     };
1738 
1739   struct
1740     {
1741     unsigned                    : 4;
1742     unsigned ADCS               : 3;
1743     unsigned                    : 1;
1744     };
1745   } __ADCON1bits_t;
1746 
1747 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1748 
1749 #define _ADPREF0                0x01
1750 #define _ADPREF1                0x02
1751 #define _ADCS0                  0x10
1752 #define _ADCS1                  0x20
1753 #define _ADCS2                  0x40
1754 #define _ADFM                   0x80
1755 
1756 //==============================================================================
1757 
1758 
1759 //==============================================================================
1760 //        ADCON2 Bits
1761 
1762 extern __at(0x009F) __sfr ADCON2;
1763 
1764 typedef union
1765   {
1766   struct
1767     {
1768     unsigned                    : 1;
1769     unsigned                    : 1;
1770     unsigned                    : 1;
1771     unsigned                    : 1;
1772     unsigned TRIGSEL0           : 1;
1773     unsigned TRIGSEL1           : 1;
1774     unsigned TRIGSEL2           : 1;
1775     unsigned TRIGSEL3           : 1;
1776     };
1777 
1778   struct
1779     {
1780     unsigned                    : 4;
1781     unsigned TRIGSEL            : 4;
1782     };
1783   } __ADCON2bits_t;
1784 
1785 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1786 
1787 #define _TRIGSEL0               0x10
1788 #define _TRIGSEL1               0x20
1789 #define _TRIGSEL2               0x40
1790 #define _TRIGSEL3               0x80
1791 
1792 //==============================================================================
1793 
1794 
1795 //==============================================================================
1796 //        LATA Bits
1797 
1798 extern __at(0x010C) __sfr LATA;
1799 
1800 typedef union
1801   {
1802   struct
1803     {
1804     unsigned LATA0              : 1;
1805     unsigned LATA1              : 1;
1806     unsigned LATA2              : 1;
1807     unsigned LATA3              : 1;
1808     unsigned LATA4              : 1;
1809     unsigned LATA5              : 1;
1810     unsigned                    : 1;
1811     unsigned                    : 1;
1812     };
1813 
1814   struct
1815     {
1816     unsigned LATA               : 6;
1817     unsigned                    : 2;
1818     };
1819   } __LATAbits_t;
1820 
1821 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1822 
1823 #define _LATA0                  0x01
1824 #define _LATA1                  0x02
1825 #define _LATA2                  0x04
1826 #define _LATA3                  0x08
1827 #define _LATA4                  0x10
1828 #define _LATA5                  0x20
1829 
1830 //==============================================================================
1831 
1832 
1833 //==============================================================================
1834 //        LATB Bits
1835 
1836 extern __at(0x010D) __sfr LATB;
1837 
1838 typedef struct
1839   {
1840   unsigned                      : 1;
1841   unsigned                      : 1;
1842   unsigned                      : 1;
1843   unsigned                      : 1;
1844   unsigned LATB4                : 1;
1845   unsigned LATB5                : 1;
1846   unsigned LATB6                : 1;
1847   unsigned LATB7                : 1;
1848   } __LATBbits_t;
1849 
1850 extern __at(0x010D) volatile __LATBbits_t LATBbits;
1851 
1852 #define _LATB4                  0x10
1853 #define _LATB5                  0x20
1854 #define _LATB6                  0x40
1855 #define _LATB7                  0x80
1856 
1857 //==============================================================================
1858 
1859 
1860 //==============================================================================
1861 //        LATC Bits
1862 
1863 extern __at(0x010E) __sfr LATC;
1864 
1865 typedef struct
1866   {
1867   unsigned LATC0                : 1;
1868   unsigned LATC1                : 1;
1869   unsigned LATC2                : 1;
1870   unsigned LATC3                : 1;
1871   unsigned LATC4                : 1;
1872   unsigned LATC5                : 1;
1873   unsigned LATC6                : 1;
1874   unsigned LATC7                : 1;
1875   } __LATCbits_t;
1876 
1877 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1878 
1879 #define _LATC0                  0x01
1880 #define _LATC1                  0x02
1881 #define _LATC2                  0x04
1882 #define _LATC3                  0x08
1883 #define _LATC4                  0x10
1884 #define _LATC5                  0x20
1885 #define _LATC6                  0x40
1886 #define _LATC7                  0x80
1887 
1888 //==============================================================================
1889 
1890 
1891 //==============================================================================
1892 //        CM1CON0 Bits
1893 
1894 extern __at(0x0111) __sfr CM1CON0;
1895 
1896 typedef struct
1897   {
1898   unsigned C1SYNC               : 1;
1899   unsigned C1HYS                : 1;
1900   unsigned C1SP                 : 1;
1901   unsigned                      : 1;
1902   unsigned C1POL                : 1;
1903   unsigned                      : 1;
1904   unsigned C1OUT                : 1;
1905   unsigned C1ON                 : 1;
1906   } __CM1CON0bits_t;
1907 
1908 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1909 
1910 #define _C1SYNC                 0x01
1911 #define _C1HYS                  0x02
1912 #define _C1SP                   0x04
1913 #define _C1POL                  0x10
1914 #define _C1OUT                  0x40
1915 #define _C1ON                   0x80
1916 
1917 //==============================================================================
1918 
1919 
1920 //==============================================================================
1921 //        CM1CON1 Bits
1922 
1923 extern __at(0x0112) __sfr CM1CON1;
1924 
1925 typedef union
1926   {
1927   struct
1928     {
1929     unsigned C1NCH0             : 1;
1930     unsigned C1NCH1             : 1;
1931     unsigned C1NCH2             : 1;
1932     unsigned                    : 1;
1933     unsigned C1PCH0             : 1;
1934     unsigned C1PCH1             : 1;
1935     unsigned C1INTN             : 1;
1936     unsigned C1INTP             : 1;
1937     };
1938 
1939   struct
1940     {
1941     unsigned C1NCH              : 3;
1942     unsigned                    : 5;
1943     };
1944 
1945   struct
1946     {
1947     unsigned                    : 4;
1948     unsigned C1PCH              : 2;
1949     unsigned                    : 2;
1950     };
1951   } __CM1CON1bits_t;
1952 
1953 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1954 
1955 #define _C1NCH0                 0x01
1956 #define _C1NCH1                 0x02
1957 #define _C1NCH2                 0x04
1958 #define _C1PCH0                 0x10
1959 #define _C1PCH1                 0x20
1960 #define _C1INTN                 0x40
1961 #define _C1INTP                 0x80
1962 
1963 //==============================================================================
1964 
1965 
1966 //==============================================================================
1967 //        CM2CON0 Bits
1968 
1969 extern __at(0x0113) __sfr CM2CON0;
1970 
1971 typedef struct
1972   {
1973   unsigned C2SYNC               : 1;
1974   unsigned C2HYS                : 1;
1975   unsigned C2SP                 : 1;
1976   unsigned                      : 1;
1977   unsigned C2POL                : 1;
1978   unsigned                      : 1;
1979   unsigned C2OUT                : 1;
1980   unsigned C2ON                 : 1;
1981   } __CM2CON0bits_t;
1982 
1983 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
1984 
1985 #define _C2SYNC                 0x01
1986 #define _C2HYS                  0x02
1987 #define _C2SP                   0x04
1988 #define _C2POL                  0x10
1989 #define _C2OUT                  0x40
1990 #define _C2ON                   0x80
1991 
1992 //==============================================================================
1993 
1994 
1995 //==============================================================================
1996 //        CM2CON1 Bits
1997 
1998 extern __at(0x0114) __sfr CM2CON1;
1999 
2000 typedef union
2001   {
2002   struct
2003     {
2004     unsigned C2NCH0             : 1;
2005     unsigned C2NCH1             : 1;
2006     unsigned C2NCH2             : 1;
2007     unsigned                    : 1;
2008     unsigned C2PCH0             : 1;
2009     unsigned C2PCH1             : 1;
2010     unsigned C2INTN             : 1;
2011     unsigned C2INTP             : 1;
2012     };
2013 
2014   struct
2015     {
2016     unsigned C2NCH              : 3;
2017     unsigned                    : 5;
2018     };
2019 
2020   struct
2021     {
2022     unsigned                    : 4;
2023     unsigned C2PCH              : 2;
2024     unsigned                    : 2;
2025     };
2026   } __CM2CON1bits_t;
2027 
2028 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
2029 
2030 #define _C2NCH0                 0x01
2031 #define _C2NCH1                 0x02
2032 #define _C2NCH2                 0x04
2033 #define _C2PCH0                 0x10
2034 #define _C2PCH1                 0x20
2035 #define _C2INTN                 0x40
2036 #define _C2INTP                 0x80
2037 
2038 //==============================================================================
2039 
2040 
2041 //==============================================================================
2042 //        CMOUT Bits
2043 
2044 extern __at(0x0115) __sfr CMOUT;
2045 
2046 typedef struct
2047   {
2048   unsigned MC1OUT               : 1;
2049   unsigned MC2OUT               : 1;
2050   unsigned                      : 1;
2051   unsigned                      : 1;
2052   unsigned                      : 1;
2053   unsigned                      : 1;
2054   unsigned                      : 1;
2055   unsigned                      : 1;
2056   } __CMOUTbits_t;
2057 
2058 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
2059 
2060 #define _MC1OUT                 0x01
2061 #define _MC2OUT                 0x02
2062 
2063 //==============================================================================
2064 
2065 
2066 //==============================================================================
2067 //        BORCON Bits
2068 
2069 extern __at(0x0116) __sfr BORCON;
2070 
2071 typedef struct
2072   {
2073   unsigned BORRDY               : 1;
2074   unsigned                      : 1;
2075   unsigned                      : 1;
2076   unsigned                      : 1;
2077   unsigned                      : 1;
2078   unsigned                      : 1;
2079   unsigned BORFS                : 1;
2080   unsigned SBOREN               : 1;
2081   } __BORCONbits_t;
2082 
2083 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
2084 
2085 #define _BORRDY                 0x01
2086 #define _BORFS                  0x40
2087 #define _SBOREN                 0x80
2088 
2089 //==============================================================================
2090 
2091 
2092 //==============================================================================
2093 //        FVRCON Bits
2094 
2095 extern __at(0x0117) __sfr FVRCON;
2096 
2097 typedef union
2098   {
2099   struct
2100     {
2101     unsigned ADFVR0             : 1;
2102     unsigned ADFVR1             : 1;
2103     unsigned CDAFVR0            : 1;
2104     unsigned CDAFVR1            : 1;
2105     unsigned TSRNG              : 1;
2106     unsigned TSEN               : 1;
2107     unsigned FVRRDY             : 1;
2108     unsigned FVREN              : 1;
2109     };
2110 
2111   struct
2112     {
2113     unsigned ADFVR              : 2;
2114     unsigned                    : 6;
2115     };
2116 
2117   struct
2118     {
2119     unsigned                    : 2;
2120     unsigned CDAFVR             : 2;
2121     unsigned                    : 4;
2122     };
2123   } __FVRCONbits_t;
2124 
2125 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
2126 
2127 #define _ADFVR0                 0x01
2128 #define _ADFVR1                 0x02
2129 #define _CDAFVR0                0x04
2130 #define _CDAFVR1                0x08
2131 #define _TSRNG                  0x10
2132 #define _TSEN                   0x20
2133 #define _FVRRDY                 0x40
2134 #define _FVREN                  0x80
2135 
2136 //==============================================================================
2137 
2138 
2139 //==============================================================================
2140 //        DAC1CON0 Bits
2141 
2142 extern __at(0x0118) __sfr DAC1CON0;
2143 
2144 typedef union
2145   {
2146   struct
2147     {
2148     unsigned                    : 1;
2149     unsigned                    : 1;
2150     unsigned D1PSS0             : 1;
2151     unsigned D1PSS1             : 1;
2152     unsigned                    : 1;
2153     unsigned DAC1OE             : 1;
2154     unsigned                    : 1;
2155     unsigned DAC1EN             : 1;
2156     };
2157 
2158   struct
2159     {
2160     unsigned                    : 2;
2161     unsigned D1PSS              : 2;
2162     unsigned                    : 4;
2163     };
2164   } __DAC1CON0bits_t;
2165 
2166 extern __at(0x0118) volatile __DAC1CON0bits_t DAC1CON0bits;
2167 
2168 #define _D1PSS0                 0x04
2169 #define _D1PSS1                 0x08
2170 #define _DAC1OE                 0x20
2171 #define _DAC1EN                 0x80
2172 
2173 //==============================================================================
2174 
2175 
2176 //==============================================================================
2177 //        DAC1CON1 Bits
2178 
2179 extern __at(0x0119) __sfr DAC1CON1;
2180 
2181 typedef struct
2182   {
2183   unsigned DAC1R0               : 1;
2184   unsigned DAC1R1               : 1;
2185   unsigned DAC1R2               : 1;
2186   unsigned DAC1R3               : 1;
2187   unsigned DAC1R4               : 1;
2188   unsigned DAC1R5               : 1;
2189   unsigned DAC1R6               : 1;
2190   unsigned DAC1R7               : 1;
2191   } __DAC1CON1bits_t;
2192 
2193 extern __at(0x0119) volatile __DAC1CON1bits_t DAC1CON1bits;
2194 
2195 #define _DAC1R0                 0x01
2196 #define _DAC1R1                 0x02
2197 #define _DAC1R2                 0x04
2198 #define _DAC1R3                 0x08
2199 #define _DAC1R4                 0x10
2200 #define _DAC1R5                 0x20
2201 #define _DAC1R6                 0x40
2202 #define _DAC1R7                 0x80
2203 
2204 //==============================================================================
2205 
2206 
2207 //==============================================================================
2208 //        ZCD1CON Bits
2209 
2210 extern __at(0x011C) __sfr ZCD1CON;
2211 
2212 typedef struct
2213   {
2214   unsigned ZCD1INTN             : 1;
2215   unsigned ZCD1INTP             : 1;
2216   unsigned                      : 1;
2217   unsigned                      : 1;
2218   unsigned ZCD1POL              : 1;
2219   unsigned ZCD1OUT              : 1;
2220   unsigned                      : 1;
2221   unsigned ZCD1EN               : 1;
2222   } __ZCD1CONbits_t;
2223 
2224 extern __at(0x011C) volatile __ZCD1CONbits_t ZCD1CONbits;
2225 
2226 #define _ZCD1INTN               0x01
2227 #define _ZCD1INTP               0x02
2228 #define _ZCD1POL                0x10
2229 #define _ZCD1OUT                0x20
2230 #define _ZCD1EN                 0x80
2231 
2232 //==============================================================================
2233 
2234 
2235 //==============================================================================
2236 //        ANSELA Bits
2237 
2238 extern __at(0x018C) __sfr ANSELA;
2239 
2240 typedef struct
2241   {
2242   unsigned ANSA0                : 1;
2243   unsigned ANSA1                : 1;
2244   unsigned ANSA2                : 1;
2245   unsigned                      : 1;
2246   unsigned ANSA4                : 1;
2247   unsigned                      : 1;
2248   unsigned                      : 1;
2249   unsigned                      : 1;
2250   } __ANSELAbits_t;
2251 
2252 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2253 
2254 #define _ANSA0                  0x01
2255 #define _ANSA1                  0x02
2256 #define _ANSA2                  0x04
2257 #define _ANSA4                  0x10
2258 
2259 //==============================================================================
2260 
2261 
2262 //==============================================================================
2263 //        ANSELB Bits
2264 
2265 extern __at(0x018D) __sfr ANSELB;
2266 
2267 typedef struct
2268   {
2269   unsigned                      : 1;
2270   unsigned                      : 1;
2271   unsigned                      : 1;
2272   unsigned                      : 1;
2273   unsigned ANSB4                : 1;
2274   unsigned ANSB5                : 1;
2275   unsigned ANSB6                : 1;
2276   unsigned ANSB7                : 1;
2277   } __ANSELBbits_t;
2278 
2279 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2280 
2281 #define _ANSB4                  0x10
2282 #define _ANSB5                  0x20
2283 #define _ANSB6                  0x40
2284 #define _ANSB7                  0x80
2285 
2286 //==============================================================================
2287 
2288 
2289 //==============================================================================
2290 //        ANSELC Bits
2291 
2292 extern __at(0x018E) __sfr ANSELC;
2293 
2294 typedef struct
2295   {
2296   unsigned ANSC0                : 1;
2297   unsigned ANSC1                : 1;
2298   unsigned ANSC2                : 1;
2299   unsigned ANSC3                : 1;
2300   unsigned                      : 1;
2301   unsigned                      : 1;
2302   unsigned ANSC6                : 1;
2303   unsigned ANSC7                : 1;
2304   } __ANSELCbits_t;
2305 
2306 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2307 
2308 #define _ANSC0                  0x01
2309 #define _ANSC1                  0x02
2310 #define _ANSC2                  0x04
2311 #define _ANSC3                  0x08
2312 #define _ANSC6                  0x40
2313 #define _ANSC7                  0x80
2314 
2315 //==============================================================================
2316 
2317 extern __at(0x0191) __sfr PMADR;
2318 extern __at(0x0191) __sfr PMADRL;
2319 extern __at(0x0192) __sfr PMADRH;
2320 extern __at(0x0193) __sfr PMDAT;
2321 extern __at(0x0193) __sfr PMDATL;
2322 extern __at(0x0194) __sfr PMDATH;
2323 
2324 //==============================================================================
2325 //        PMCON1 Bits
2326 
2327 extern __at(0x0195) __sfr PMCON1;
2328 
2329 typedef struct
2330   {
2331   unsigned RD                   : 1;
2332   unsigned WR                   : 1;
2333   unsigned WREN                 : 1;
2334   unsigned WRERR                : 1;
2335   unsigned FREE                 : 1;
2336   unsigned LWLO                 : 1;
2337   unsigned CFGS                 : 1;
2338   unsigned                      : 1;
2339   } __PMCON1bits_t;
2340 
2341 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
2342 
2343 #define _RD                     0x01
2344 #define _WR                     0x02
2345 #define _WREN                   0x04
2346 #define _WRERR                  0x08
2347 #define _FREE                   0x10
2348 #define _LWLO                   0x20
2349 #define _CFGS                   0x40
2350 
2351 //==============================================================================
2352 
2353 extern __at(0x0196) __sfr PMCON2;
2354 extern __at(0x0199) __sfr RC1REG;
2355 extern __at(0x0199) __sfr RCREG;
2356 extern __at(0x0199) __sfr RCREG1;
2357 extern __at(0x019A) __sfr TX1REG;
2358 extern __at(0x019A) __sfr TXREG;
2359 extern __at(0x019A) __sfr TXREG1;
2360 extern __at(0x019B) __sfr SP1BRG;
2361 extern __at(0x019B) __sfr SP1BRGL;
2362 extern __at(0x019B) __sfr SPBRG;
2363 extern __at(0x019B) __sfr SPBRG1;
2364 extern __at(0x019B) __sfr SPBRGL;
2365 extern __at(0x019C) __sfr SP1BRGH;
2366 extern __at(0x019C) __sfr SPBRGH;
2367 extern __at(0x019C) __sfr SPBRGH1;
2368 
2369 //==============================================================================
2370 //        RC1STA Bits
2371 
2372 extern __at(0x019D) __sfr RC1STA;
2373 
2374 typedef struct
2375   {
2376   unsigned RX9D                 : 1;
2377   unsigned OERR                 : 1;
2378   unsigned FERR                 : 1;
2379   unsigned ADDEN                : 1;
2380   unsigned CREN                 : 1;
2381   unsigned SREN                 : 1;
2382   unsigned RX9                  : 1;
2383   unsigned SPEN                 : 1;
2384   } __RC1STAbits_t;
2385 
2386 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2387 
2388 #define _RX9D                   0x01
2389 #define _OERR                   0x02
2390 #define _FERR                   0x04
2391 #define _ADDEN                  0x08
2392 #define _CREN                   0x10
2393 #define _SREN                   0x20
2394 #define _RX9                    0x40
2395 #define _SPEN                   0x80
2396 
2397 //==============================================================================
2398 
2399 
2400 //==============================================================================
2401 //        RCSTA Bits
2402 
2403 extern __at(0x019D) __sfr RCSTA;
2404 
2405 typedef struct
2406   {
2407   unsigned RX9D                 : 1;
2408   unsigned OERR                 : 1;
2409   unsigned FERR                 : 1;
2410   unsigned ADDEN                : 1;
2411   unsigned CREN                 : 1;
2412   unsigned SREN                 : 1;
2413   unsigned RX9                  : 1;
2414   unsigned SPEN                 : 1;
2415   } __RCSTAbits_t;
2416 
2417 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2418 
2419 #define _RCSTA_RX9D             0x01
2420 #define _RCSTA_OERR             0x02
2421 #define _RCSTA_FERR             0x04
2422 #define _RCSTA_ADDEN            0x08
2423 #define _RCSTA_CREN             0x10
2424 #define _RCSTA_SREN             0x20
2425 #define _RCSTA_RX9              0x40
2426 #define _RCSTA_SPEN             0x80
2427 
2428 //==============================================================================
2429 
2430 
2431 //==============================================================================
2432 //        RCSTA1 Bits
2433 
2434 extern __at(0x019D) __sfr RCSTA1;
2435 
2436 typedef struct
2437   {
2438   unsigned RX9D                 : 1;
2439   unsigned OERR                 : 1;
2440   unsigned FERR                 : 1;
2441   unsigned ADDEN                : 1;
2442   unsigned CREN                 : 1;
2443   unsigned SREN                 : 1;
2444   unsigned RX9                  : 1;
2445   unsigned SPEN                 : 1;
2446   } __RCSTA1bits_t;
2447 
2448 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2449 
2450 #define _RCSTA1_RX9D            0x01
2451 #define _RCSTA1_OERR            0x02
2452 #define _RCSTA1_FERR            0x04
2453 #define _RCSTA1_ADDEN           0x08
2454 #define _RCSTA1_CREN            0x10
2455 #define _RCSTA1_SREN            0x20
2456 #define _RCSTA1_RX9             0x40
2457 #define _RCSTA1_SPEN            0x80
2458 
2459 //==============================================================================
2460 
2461 
2462 //==============================================================================
2463 //        TX1STA Bits
2464 
2465 extern __at(0x019E) __sfr TX1STA;
2466 
2467 typedef struct
2468   {
2469   unsigned TX9D                 : 1;
2470   unsigned TRMT                 : 1;
2471   unsigned BRGH                 : 1;
2472   unsigned SENDB                : 1;
2473   unsigned SYNC                 : 1;
2474   unsigned TXEN                 : 1;
2475   unsigned TX9                  : 1;
2476   unsigned CSRC                 : 1;
2477   } __TX1STAbits_t;
2478 
2479 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
2480 
2481 #define _TX9D                   0x01
2482 #define _TRMT                   0x02
2483 #define _BRGH                   0x04
2484 #define _SENDB                  0x08
2485 #define _SYNC                   0x10
2486 #define _TXEN                   0x20
2487 #define _TX9                    0x40
2488 #define _CSRC                   0x80
2489 
2490 //==============================================================================
2491 
2492 
2493 //==============================================================================
2494 //        TXSTA Bits
2495 
2496 extern __at(0x019E) __sfr TXSTA;
2497 
2498 typedef struct
2499   {
2500   unsigned TX9D                 : 1;
2501   unsigned TRMT                 : 1;
2502   unsigned BRGH                 : 1;
2503   unsigned SENDB                : 1;
2504   unsigned SYNC                 : 1;
2505   unsigned TXEN                 : 1;
2506   unsigned TX9                  : 1;
2507   unsigned CSRC                 : 1;
2508   } __TXSTAbits_t;
2509 
2510 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
2511 
2512 #define _TXSTA_TX9D             0x01
2513 #define _TXSTA_TRMT             0x02
2514 #define _TXSTA_BRGH             0x04
2515 #define _TXSTA_SENDB            0x08
2516 #define _TXSTA_SYNC             0x10
2517 #define _TXSTA_TXEN             0x20
2518 #define _TXSTA_TX9              0x40
2519 #define _TXSTA_CSRC             0x80
2520 
2521 //==============================================================================
2522 
2523 
2524 //==============================================================================
2525 //        TXSTA1 Bits
2526 
2527 extern __at(0x019E) __sfr TXSTA1;
2528 
2529 typedef struct
2530   {
2531   unsigned TX9D                 : 1;
2532   unsigned TRMT                 : 1;
2533   unsigned BRGH                 : 1;
2534   unsigned SENDB                : 1;
2535   unsigned SYNC                 : 1;
2536   unsigned TXEN                 : 1;
2537   unsigned TX9                  : 1;
2538   unsigned CSRC                 : 1;
2539   } __TXSTA1bits_t;
2540 
2541 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
2542 
2543 #define _TXSTA1_TX9D            0x01
2544 #define _TXSTA1_TRMT            0x02
2545 #define _TXSTA1_BRGH            0x04
2546 #define _TXSTA1_SENDB           0x08
2547 #define _TXSTA1_SYNC            0x10
2548 #define _TXSTA1_TXEN            0x20
2549 #define _TXSTA1_TX9             0x40
2550 #define _TXSTA1_CSRC            0x80
2551 
2552 //==============================================================================
2553 
2554 
2555 //==============================================================================
2556 //        BAUD1CON Bits
2557 
2558 extern __at(0x019F) __sfr BAUD1CON;
2559 
2560 typedef struct
2561   {
2562   unsigned ABDEN                : 1;
2563   unsigned WUE                  : 1;
2564   unsigned                      : 1;
2565   unsigned BRG16                : 1;
2566   unsigned SCKP                 : 1;
2567   unsigned                      : 1;
2568   unsigned RCIDL                : 1;
2569   unsigned ABDOVF               : 1;
2570   } __BAUD1CONbits_t;
2571 
2572 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
2573 
2574 #define _ABDEN                  0x01
2575 #define _WUE                    0x02
2576 #define _BRG16                  0x08
2577 #define _SCKP                   0x10
2578 #define _RCIDL                  0x40
2579 #define _ABDOVF                 0x80
2580 
2581 //==============================================================================
2582 
2583 
2584 //==============================================================================
2585 //        BAUDCON Bits
2586 
2587 extern __at(0x019F) __sfr BAUDCON;
2588 
2589 typedef struct
2590   {
2591   unsigned ABDEN                : 1;
2592   unsigned WUE                  : 1;
2593   unsigned                      : 1;
2594   unsigned BRG16                : 1;
2595   unsigned SCKP                 : 1;
2596   unsigned                      : 1;
2597   unsigned RCIDL                : 1;
2598   unsigned ABDOVF               : 1;
2599   } __BAUDCONbits_t;
2600 
2601 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
2602 
2603 #define _BAUDCON_ABDEN          0x01
2604 #define _BAUDCON_WUE            0x02
2605 #define _BAUDCON_BRG16          0x08
2606 #define _BAUDCON_SCKP           0x10
2607 #define _BAUDCON_RCIDL          0x40
2608 #define _BAUDCON_ABDOVF         0x80
2609 
2610 //==============================================================================
2611 
2612 
2613 //==============================================================================
2614 //        BAUDCON1 Bits
2615 
2616 extern __at(0x019F) __sfr BAUDCON1;
2617 
2618 typedef struct
2619   {
2620   unsigned ABDEN                : 1;
2621   unsigned WUE                  : 1;
2622   unsigned                      : 1;
2623   unsigned BRG16                : 1;
2624   unsigned SCKP                 : 1;
2625   unsigned                      : 1;
2626   unsigned RCIDL                : 1;
2627   unsigned ABDOVF               : 1;
2628   } __BAUDCON1bits_t;
2629 
2630 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
2631 
2632 #define _BAUDCON1_ABDEN         0x01
2633 #define _BAUDCON1_WUE           0x02
2634 #define _BAUDCON1_BRG16         0x08
2635 #define _BAUDCON1_SCKP          0x10
2636 #define _BAUDCON1_RCIDL         0x40
2637 #define _BAUDCON1_ABDOVF        0x80
2638 
2639 //==============================================================================
2640 
2641 
2642 //==============================================================================
2643 //        BAUDCTL Bits
2644 
2645 extern __at(0x019F) __sfr BAUDCTL;
2646 
2647 typedef struct
2648   {
2649   unsigned ABDEN                : 1;
2650   unsigned WUE                  : 1;
2651   unsigned                      : 1;
2652   unsigned BRG16                : 1;
2653   unsigned SCKP                 : 1;
2654   unsigned                      : 1;
2655   unsigned RCIDL                : 1;
2656   unsigned ABDOVF               : 1;
2657   } __BAUDCTLbits_t;
2658 
2659 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
2660 
2661 #define _BAUDCTL_ABDEN          0x01
2662 #define _BAUDCTL_WUE            0x02
2663 #define _BAUDCTL_BRG16          0x08
2664 #define _BAUDCTL_SCKP           0x10
2665 #define _BAUDCTL_RCIDL          0x40
2666 #define _BAUDCTL_ABDOVF         0x80
2667 
2668 //==============================================================================
2669 
2670 
2671 //==============================================================================
2672 //        BAUDCTL1 Bits
2673 
2674 extern __at(0x019F) __sfr BAUDCTL1;
2675 
2676 typedef struct
2677   {
2678   unsigned ABDEN                : 1;
2679   unsigned WUE                  : 1;
2680   unsigned                      : 1;
2681   unsigned BRG16                : 1;
2682   unsigned SCKP                 : 1;
2683   unsigned                      : 1;
2684   unsigned RCIDL                : 1;
2685   unsigned ABDOVF               : 1;
2686   } __BAUDCTL1bits_t;
2687 
2688 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
2689 
2690 #define _BAUDCTL1_ABDEN         0x01
2691 #define _BAUDCTL1_WUE           0x02
2692 #define _BAUDCTL1_BRG16         0x08
2693 #define _BAUDCTL1_SCKP          0x10
2694 #define _BAUDCTL1_RCIDL         0x40
2695 #define _BAUDCTL1_ABDOVF        0x80
2696 
2697 //==============================================================================
2698 
2699 
2700 //==============================================================================
2701 //        WPUA Bits
2702 
2703 extern __at(0x020C) __sfr WPUA;
2704 
2705 typedef union
2706   {
2707   struct
2708     {
2709     unsigned WPUA0              : 1;
2710     unsigned WPUA1              : 1;
2711     unsigned WPUA2              : 1;
2712     unsigned WPUA3              : 1;
2713     unsigned WPUA4              : 1;
2714     unsigned WPUA5              : 1;
2715     unsigned                    : 1;
2716     unsigned                    : 1;
2717     };
2718 
2719   struct
2720     {
2721     unsigned WPUA               : 6;
2722     unsigned                    : 2;
2723     };
2724   } __WPUAbits_t;
2725 
2726 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
2727 
2728 #define _WPUA0                  0x01
2729 #define _WPUA1                  0x02
2730 #define _WPUA2                  0x04
2731 #define _WPUA3                  0x08
2732 #define _WPUA4                  0x10
2733 #define _WPUA5                  0x20
2734 
2735 //==============================================================================
2736 
2737 
2738 //==============================================================================
2739 //        WPUB Bits
2740 
2741 extern __at(0x020D) __sfr WPUB;
2742 
2743 typedef struct
2744   {
2745   unsigned                      : 1;
2746   unsigned                      : 1;
2747   unsigned                      : 1;
2748   unsigned                      : 1;
2749   unsigned WPUB4                : 1;
2750   unsigned WPUB5                : 1;
2751   unsigned WPUB6                : 1;
2752   unsigned WPUB7                : 1;
2753   } __WPUBbits_t;
2754 
2755 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
2756 
2757 #define _WPUB4                  0x10
2758 #define _WPUB5                  0x20
2759 #define _WPUB6                  0x40
2760 #define _WPUB7                  0x80
2761 
2762 //==============================================================================
2763 
2764 
2765 //==============================================================================
2766 //        WPUC Bits
2767 
2768 extern __at(0x020E) __sfr WPUC;
2769 
2770 typedef struct
2771   {
2772   unsigned WPUC0                : 1;
2773   unsigned WPUC1                : 1;
2774   unsigned WPUC2                : 1;
2775   unsigned WPUC3                : 1;
2776   unsigned WPUC4                : 1;
2777   unsigned WPUC5                : 1;
2778   unsigned WPUC6                : 1;
2779   unsigned WPUC7                : 1;
2780   } __WPUCbits_t;
2781 
2782 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
2783 
2784 #define _WPUC0                  0x01
2785 #define _WPUC1                  0x02
2786 #define _WPUC2                  0x04
2787 #define _WPUC3                  0x08
2788 #define _WPUC4                  0x10
2789 #define _WPUC5                  0x20
2790 #define _WPUC6                  0x40
2791 #define _WPUC7                  0x80
2792 
2793 //==============================================================================
2794 
2795 
2796 //==============================================================================
2797 //        SSP1BUF Bits
2798 
2799 extern __at(0x0211) __sfr SSP1BUF;
2800 
2801 typedef union
2802   {
2803   struct
2804     {
2805     unsigned SSP1BUF0           : 1;
2806     unsigned SSP1BUF1           : 1;
2807     unsigned SSP1BUF2           : 1;
2808     unsigned SSP1BUF3           : 1;
2809     unsigned SSP1BUF4           : 1;
2810     unsigned SSP1BUF5           : 1;
2811     unsigned SSP1BUF6           : 1;
2812     unsigned SSP1BUF7           : 1;
2813     };
2814 
2815   struct
2816     {
2817     unsigned BUF0               : 1;
2818     unsigned BUF1               : 1;
2819     unsigned BUF2               : 1;
2820     unsigned BUF3               : 1;
2821     unsigned BUF4               : 1;
2822     unsigned BUF5               : 1;
2823     unsigned BUF6               : 1;
2824     unsigned BUF7               : 1;
2825     };
2826   } __SSP1BUFbits_t;
2827 
2828 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
2829 
2830 #define _SSP1BUF0               0x01
2831 #define _BUF0                   0x01
2832 #define _SSP1BUF1               0x02
2833 #define _BUF1                   0x02
2834 #define _SSP1BUF2               0x04
2835 #define _BUF2                   0x04
2836 #define _SSP1BUF3               0x08
2837 #define _BUF3                   0x08
2838 #define _SSP1BUF4               0x10
2839 #define _BUF4                   0x10
2840 #define _SSP1BUF5               0x20
2841 #define _BUF5                   0x20
2842 #define _SSP1BUF6               0x40
2843 #define _BUF6                   0x40
2844 #define _SSP1BUF7               0x80
2845 #define _BUF7                   0x80
2846 
2847 //==============================================================================
2848 
2849 
2850 //==============================================================================
2851 //        SSPBUF Bits
2852 
2853 extern __at(0x0211) __sfr SSPBUF;
2854 
2855 typedef union
2856   {
2857   struct
2858     {
2859     unsigned SSP1BUF0           : 1;
2860     unsigned SSP1BUF1           : 1;
2861     unsigned SSP1BUF2           : 1;
2862     unsigned SSP1BUF3           : 1;
2863     unsigned SSP1BUF4           : 1;
2864     unsigned SSP1BUF5           : 1;
2865     unsigned SSP1BUF6           : 1;
2866     unsigned SSP1BUF7           : 1;
2867     };
2868 
2869   struct
2870     {
2871     unsigned BUF0               : 1;
2872     unsigned BUF1               : 1;
2873     unsigned BUF2               : 1;
2874     unsigned BUF3               : 1;
2875     unsigned BUF4               : 1;
2876     unsigned BUF5               : 1;
2877     unsigned BUF6               : 1;
2878     unsigned BUF7               : 1;
2879     };
2880   } __SSPBUFbits_t;
2881 
2882 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
2883 
2884 #define _SSPBUF_SSP1BUF0        0x01
2885 #define _SSPBUF_BUF0            0x01
2886 #define _SSPBUF_SSP1BUF1        0x02
2887 #define _SSPBUF_BUF1            0x02
2888 #define _SSPBUF_SSP1BUF2        0x04
2889 #define _SSPBUF_BUF2            0x04
2890 #define _SSPBUF_SSP1BUF3        0x08
2891 #define _SSPBUF_BUF3            0x08
2892 #define _SSPBUF_SSP1BUF4        0x10
2893 #define _SSPBUF_BUF4            0x10
2894 #define _SSPBUF_SSP1BUF5        0x20
2895 #define _SSPBUF_BUF5            0x20
2896 #define _SSPBUF_SSP1BUF6        0x40
2897 #define _SSPBUF_BUF6            0x40
2898 #define _SSPBUF_SSP1BUF7        0x80
2899 #define _SSPBUF_BUF7            0x80
2900 
2901 //==============================================================================
2902 
2903 
2904 //==============================================================================
2905 //        SSP1ADD Bits
2906 
2907 extern __at(0x0212) __sfr SSP1ADD;
2908 
2909 typedef union
2910   {
2911   struct
2912     {
2913     unsigned SSP1ADD0           : 1;
2914     unsigned SSP1ADD1           : 1;
2915     unsigned SSP1ADD2           : 1;
2916     unsigned SSP1ADD3           : 1;
2917     unsigned SSP1ADD4           : 1;
2918     unsigned SSP1ADD5           : 1;
2919     unsigned SSP1ADD6           : 1;
2920     unsigned SSP1ADD7           : 1;
2921     };
2922 
2923   struct
2924     {
2925     unsigned ADD0               : 1;
2926     unsigned ADD1               : 1;
2927     unsigned ADD2               : 1;
2928     unsigned ADD3               : 1;
2929     unsigned ADD4               : 1;
2930     unsigned ADD5               : 1;
2931     unsigned ADD6               : 1;
2932     unsigned ADD7               : 1;
2933     };
2934   } __SSP1ADDbits_t;
2935 
2936 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
2937 
2938 #define _SSP1ADD0               0x01
2939 #define _ADD0                   0x01
2940 #define _SSP1ADD1               0x02
2941 #define _ADD1                   0x02
2942 #define _SSP1ADD2               0x04
2943 #define _ADD2                   0x04
2944 #define _SSP1ADD3               0x08
2945 #define _ADD3                   0x08
2946 #define _SSP1ADD4               0x10
2947 #define _ADD4                   0x10
2948 #define _SSP1ADD5               0x20
2949 #define _ADD5                   0x20
2950 #define _SSP1ADD6               0x40
2951 #define _ADD6                   0x40
2952 #define _SSP1ADD7               0x80
2953 #define _ADD7                   0x80
2954 
2955 //==============================================================================
2956 
2957 
2958 //==============================================================================
2959 //        SSPADD Bits
2960 
2961 extern __at(0x0212) __sfr SSPADD;
2962 
2963 typedef union
2964   {
2965   struct
2966     {
2967     unsigned SSP1ADD0           : 1;
2968     unsigned SSP1ADD1           : 1;
2969     unsigned SSP1ADD2           : 1;
2970     unsigned SSP1ADD3           : 1;
2971     unsigned SSP1ADD4           : 1;
2972     unsigned SSP1ADD5           : 1;
2973     unsigned SSP1ADD6           : 1;
2974     unsigned SSP1ADD7           : 1;
2975     };
2976 
2977   struct
2978     {
2979     unsigned ADD0               : 1;
2980     unsigned ADD1               : 1;
2981     unsigned ADD2               : 1;
2982     unsigned ADD3               : 1;
2983     unsigned ADD4               : 1;
2984     unsigned ADD5               : 1;
2985     unsigned ADD6               : 1;
2986     unsigned ADD7               : 1;
2987     };
2988   } __SSPADDbits_t;
2989 
2990 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
2991 
2992 #define _SSPADD_SSP1ADD0        0x01
2993 #define _SSPADD_ADD0            0x01
2994 #define _SSPADD_SSP1ADD1        0x02
2995 #define _SSPADD_ADD1            0x02
2996 #define _SSPADD_SSP1ADD2        0x04
2997 #define _SSPADD_ADD2            0x04
2998 #define _SSPADD_SSP1ADD3        0x08
2999 #define _SSPADD_ADD3            0x08
3000 #define _SSPADD_SSP1ADD4        0x10
3001 #define _SSPADD_ADD4            0x10
3002 #define _SSPADD_SSP1ADD5        0x20
3003 #define _SSPADD_ADD5            0x20
3004 #define _SSPADD_SSP1ADD6        0x40
3005 #define _SSPADD_ADD6            0x40
3006 #define _SSPADD_SSP1ADD7        0x80
3007 #define _SSPADD_ADD7            0x80
3008 
3009 //==============================================================================
3010 
3011 
3012 //==============================================================================
3013 //        SSP1MSK Bits
3014 
3015 extern __at(0x0213) __sfr SSP1MSK;
3016 
3017 typedef union
3018   {
3019   struct
3020     {
3021     unsigned SSP1MSK0           : 1;
3022     unsigned SSP1MSK1           : 1;
3023     unsigned SSP1MSK2           : 1;
3024     unsigned SSP1MSK3           : 1;
3025     unsigned SSP1MSK4           : 1;
3026     unsigned SSP1MSK5           : 1;
3027     unsigned SSP1MSK6           : 1;
3028     unsigned SSP1MSK7           : 1;
3029     };
3030 
3031   struct
3032     {
3033     unsigned MSK0               : 1;
3034     unsigned MSK1               : 1;
3035     unsigned MSK2               : 1;
3036     unsigned MSK3               : 1;
3037     unsigned MSK4               : 1;
3038     unsigned MSK5               : 1;
3039     unsigned MSK6               : 1;
3040     unsigned MSK7               : 1;
3041     };
3042   } __SSP1MSKbits_t;
3043 
3044 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3045 
3046 #define _SSP1MSK0               0x01
3047 #define _MSK0                   0x01
3048 #define _SSP1MSK1               0x02
3049 #define _MSK1                   0x02
3050 #define _SSP1MSK2               0x04
3051 #define _MSK2                   0x04
3052 #define _SSP1MSK3               0x08
3053 #define _MSK3                   0x08
3054 #define _SSP1MSK4               0x10
3055 #define _MSK4                   0x10
3056 #define _SSP1MSK5               0x20
3057 #define _MSK5                   0x20
3058 #define _SSP1MSK6               0x40
3059 #define _MSK6                   0x40
3060 #define _SSP1MSK7               0x80
3061 #define _MSK7                   0x80
3062 
3063 //==============================================================================
3064 
3065 
3066 //==============================================================================
3067 //        SSPMSK Bits
3068 
3069 extern __at(0x0213) __sfr SSPMSK;
3070 
3071 typedef union
3072   {
3073   struct
3074     {
3075     unsigned SSP1MSK0           : 1;
3076     unsigned SSP1MSK1           : 1;
3077     unsigned SSP1MSK2           : 1;
3078     unsigned SSP1MSK3           : 1;
3079     unsigned SSP1MSK4           : 1;
3080     unsigned SSP1MSK5           : 1;
3081     unsigned SSP1MSK6           : 1;
3082     unsigned SSP1MSK7           : 1;
3083     };
3084 
3085   struct
3086     {
3087     unsigned MSK0               : 1;
3088     unsigned MSK1               : 1;
3089     unsigned MSK2               : 1;
3090     unsigned MSK3               : 1;
3091     unsigned MSK4               : 1;
3092     unsigned MSK5               : 1;
3093     unsigned MSK6               : 1;
3094     unsigned MSK7               : 1;
3095     };
3096   } __SSPMSKbits_t;
3097 
3098 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3099 
3100 #define _SSPMSK_SSP1MSK0        0x01
3101 #define _SSPMSK_MSK0            0x01
3102 #define _SSPMSK_SSP1MSK1        0x02
3103 #define _SSPMSK_MSK1            0x02
3104 #define _SSPMSK_SSP1MSK2        0x04
3105 #define _SSPMSK_MSK2            0x04
3106 #define _SSPMSK_SSP1MSK3        0x08
3107 #define _SSPMSK_MSK3            0x08
3108 #define _SSPMSK_SSP1MSK4        0x10
3109 #define _SSPMSK_MSK4            0x10
3110 #define _SSPMSK_SSP1MSK5        0x20
3111 #define _SSPMSK_MSK5            0x20
3112 #define _SSPMSK_SSP1MSK6        0x40
3113 #define _SSPMSK_MSK6            0x40
3114 #define _SSPMSK_SSP1MSK7        0x80
3115 #define _SSPMSK_MSK7            0x80
3116 
3117 //==============================================================================
3118 
3119 
3120 //==============================================================================
3121 //        SSP1STAT Bits
3122 
3123 extern __at(0x0214) __sfr SSP1STAT;
3124 
3125 typedef struct
3126   {
3127   unsigned BF                   : 1;
3128   unsigned UA                   : 1;
3129   unsigned R_NOT_W              : 1;
3130   unsigned S                    : 1;
3131   unsigned P                    : 1;
3132   unsigned D_NOT_A              : 1;
3133   unsigned CKE                  : 1;
3134   unsigned SMP                  : 1;
3135   } __SSP1STATbits_t;
3136 
3137 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3138 
3139 #define _BF                     0x01
3140 #define _UA                     0x02
3141 #define _R_NOT_W                0x04
3142 #define _S                      0x08
3143 #define _P                      0x10
3144 #define _D_NOT_A                0x20
3145 #define _CKE                    0x40
3146 #define _SMP                    0x80
3147 
3148 //==============================================================================
3149 
3150 
3151 //==============================================================================
3152 //        SSPSTAT Bits
3153 
3154 extern __at(0x0214) __sfr SSPSTAT;
3155 
3156 typedef struct
3157   {
3158   unsigned BF                   : 1;
3159   unsigned UA                   : 1;
3160   unsigned R_NOT_W              : 1;
3161   unsigned S                    : 1;
3162   unsigned P                    : 1;
3163   unsigned D_NOT_A              : 1;
3164   unsigned CKE                  : 1;
3165   unsigned SMP                  : 1;
3166   } __SSPSTATbits_t;
3167 
3168 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3169 
3170 #define _SSPSTAT_BF             0x01
3171 #define _SSPSTAT_UA             0x02
3172 #define _SSPSTAT_R_NOT_W        0x04
3173 #define _SSPSTAT_S              0x08
3174 #define _SSPSTAT_P              0x10
3175 #define _SSPSTAT_D_NOT_A        0x20
3176 #define _SSPSTAT_CKE            0x40
3177 #define _SSPSTAT_SMP            0x80
3178 
3179 //==============================================================================
3180 
3181 
3182 //==============================================================================
3183 //        SSP1CON Bits
3184 
3185 extern __at(0x0215) __sfr SSP1CON;
3186 
3187 typedef union
3188   {
3189   struct
3190     {
3191     unsigned SSPM0              : 1;
3192     unsigned SSPM1              : 1;
3193     unsigned SSPM2              : 1;
3194     unsigned SSPM3              : 1;
3195     unsigned CKP                : 1;
3196     unsigned SSPEN              : 1;
3197     unsigned SSPOV              : 1;
3198     unsigned WCOL               : 1;
3199     };
3200 
3201   struct
3202     {
3203     unsigned SSPM               : 4;
3204     unsigned                    : 4;
3205     };
3206   } __SSP1CONbits_t;
3207 
3208 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3209 
3210 #define _SSPM0                  0x01
3211 #define _SSPM1                  0x02
3212 #define _SSPM2                  0x04
3213 #define _SSPM3                  0x08
3214 #define _CKP                    0x10
3215 #define _SSPEN                  0x20
3216 #define _SSPOV                  0x40
3217 #define _WCOL                   0x80
3218 
3219 //==============================================================================
3220 
3221 
3222 //==============================================================================
3223 //        SSP1CON1 Bits
3224 
3225 extern __at(0x0215) __sfr SSP1CON1;
3226 
3227 typedef union
3228   {
3229   struct
3230     {
3231     unsigned SSPM0              : 1;
3232     unsigned SSPM1              : 1;
3233     unsigned SSPM2              : 1;
3234     unsigned SSPM3              : 1;
3235     unsigned CKP                : 1;
3236     unsigned SSPEN              : 1;
3237     unsigned SSPOV              : 1;
3238     unsigned WCOL               : 1;
3239     };
3240 
3241   struct
3242     {
3243     unsigned SSPM               : 4;
3244     unsigned                    : 4;
3245     };
3246   } __SSP1CON1bits_t;
3247 
3248 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3249 
3250 #define _SSP1CON1_SSPM0         0x01
3251 #define _SSP1CON1_SSPM1         0x02
3252 #define _SSP1CON1_SSPM2         0x04
3253 #define _SSP1CON1_SSPM3         0x08
3254 #define _SSP1CON1_CKP           0x10
3255 #define _SSP1CON1_SSPEN         0x20
3256 #define _SSP1CON1_SSPOV         0x40
3257 #define _SSP1CON1_WCOL          0x80
3258 
3259 //==============================================================================
3260 
3261 
3262 //==============================================================================
3263 //        SSPCON Bits
3264 
3265 extern __at(0x0215) __sfr SSPCON;
3266 
3267 typedef union
3268   {
3269   struct
3270     {
3271     unsigned SSPM0              : 1;
3272     unsigned SSPM1              : 1;
3273     unsigned SSPM2              : 1;
3274     unsigned SSPM3              : 1;
3275     unsigned CKP                : 1;
3276     unsigned SSPEN              : 1;
3277     unsigned SSPOV              : 1;
3278     unsigned WCOL               : 1;
3279     };
3280 
3281   struct
3282     {
3283     unsigned SSPM               : 4;
3284     unsigned                    : 4;
3285     };
3286   } __SSPCONbits_t;
3287 
3288 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3289 
3290 #define _SSPCON_SSPM0           0x01
3291 #define _SSPCON_SSPM1           0x02
3292 #define _SSPCON_SSPM2           0x04
3293 #define _SSPCON_SSPM3           0x08
3294 #define _SSPCON_CKP             0x10
3295 #define _SSPCON_SSPEN           0x20
3296 #define _SSPCON_SSPOV           0x40
3297 #define _SSPCON_WCOL            0x80
3298 
3299 //==============================================================================
3300 
3301 
3302 //==============================================================================
3303 //        SSPCON1 Bits
3304 
3305 extern __at(0x0215) __sfr SSPCON1;
3306 
3307 typedef union
3308   {
3309   struct
3310     {
3311     unsigned SSPM0              : 1;
3312     unsigned SSPM1              : 1;
3313     unsigned SSPM2              : 1;
3314     unsigned SSPM3              : 1;
3315     unsigned CKP                : 1;
3316     unsigned SSPEN              : 1;
3317     unsigned SSPOV              : 1;
3318     unsigned WCOL               : 1;
3319     };
3320 
3321   struct
3322     {
3323     unsigned SSPM               : 4;
3324     unsigned                    : 4;
3325     };
3326   } __SSPCON1bits_t;
3327 
3328 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3329 
3330 #define _SSPCON1_SSPM0          0x01
3331 #define _SSPCON1_SSPM1          0x02
3332 #define _SSPCON1_SSPM2          0x04
3333 #define _SSPCON1_SSPM3          0x08
3334 #define _SSPCON1_CKP            0x10
3335 #define _SSPCON1_SSPEN          0x20
3336 #define _SSPCON1_SSPOV          0x40
3337 #define _SSPCON1_WCOL           0x80
3338 
3339 //==============================================================================
3340 
3341 
3342 //==============================================================================
3343 //        SSP1CON2 Bits
3344 
3345 extern __at(0x0216) __sfr SSP1CON2;
3346 
3347 typedef struct
3348   {
3349   unsigned SEN                  : 1;
3350   unsigned RSEN                 : 1;
3351   unsigned PEN                  : 1;
3352   unsigned RCEN                 : 1;
3353   unsigned ACKEN                : 1;
3354   unsigned ACKDT                : 1;
3355   unsigned ACKSTAT              : 1;
3356   unsigned GCEN                 : 1;
3357   } __SSP1CON2bits_t;
3358 
3359 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3360 
3361 #define _SEN                    0x01
3362 #define _RSEN                   0x02
3363 #define _PEN                    0x04
3364 #define _RCEN                   0x08
3365 #define _ACKEN                  0x10
3366 #define _ACKDT                  0x20
3367 #define _ACKSTAT                0x40
3368 #define _GCEN                   0x80
3369 
3370 //==============================================================================
3371 
3372 
3373 //==============================================================================
3374 //        SSPCON2 Bits
3375 
3376 extern __at(0x0216) __sfr SSPCON2;
3377 
3378 typedef struct
3379   {
3380   unsigned SEN                  : 1;
3381   unsigned RSEN                 : 1;
3382   unsigned PEN                  : 1;
3383   unsigned RCEN                 : 1;
3384   unsigned ACKEN                : 1;
3385   unsigned ACKDT                : 1;
3386   unsigned ACKSTAT              : 1;
3387   unsigned GCEN                 : 1;
3388   } __SSPCON2bits_t;
3389 
3390 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3391 
3392 #define _SSPCON2_SEN            0x01
3393 #define _SSPCON2_RSEN           0x02
3394 #define _SSPCON2_PEN            0x04
3395 #define _SSPCON2_RCEN           0x08
3396 #define _SSPCON2_ACKEN          0x10
3397 #define _SSPCON2_ACKDT          0x20
3398 #define _SSPCON2_ACKSTAT        0x40
3399 #define _SSPCON2_GCEN           0x80
3400 
3401 //==============================================================================
3402 
3403 
3404 //==============================================================================
3405 //        SSP1CON3 Bits
3406 
3407 extern __at(0x0217) __sfr SSP1CON3;
3408 
3409 typedef struct
3410   {
3411   unsigned DHEN                 : 1;
3412   unsigned AHEN                 : 1;
3413   unsigned SBCDE                : 1;
3414   unsigned SDAHT                : 1;
3415   unsigned BOEN                 : 1;
3416   unsigned SCIE                 : 1;
3417   unsigned PCIE                 : 1;
3418   unsigned ACKTIM               : 1;
3419   } __SSP1CON3bits_t;
3420 
3421 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3422 
3423 #define _DHEN                   0x01
3424 #define _AHEN                   0x02
3425 #define _SBCDE                  0x04
3426 #define _SDAHT                  0x08
3427 #define _BOEN                   0x10
3428 #define _SCIE                   0x20
3429 #define _PCIE                   0x40
3430 #define _ACKTIM                 0x80
3431 
3432 //==============================================================================
3433 
3434 
3435 //==============================================================================
3436 //        SSPCON3 Bits
3437 
3438 extern __at(0x0217) __sfr SSPCON3;
3439 
3440 typedef struct
3441   {
3442   unsigned DHEN                 : 1;
3443   unsigned AHEN                 : 1;
3444   unsigned SBCDE                : 1;
3445   unsigned SDAHT                : 1;
3446   unsigned BOEN                 : 1;
3447   unsigned SCIE                 : 1;
3448   unsigned PCIE                 : 1;
3449   unsigned ACKTIM               : 1;
3450   } __SSPCON3bits_t;
3451 
3452 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3453 
3454 #define _SSPCON3_DHEN           0x01
3455 #define _SSPCON3_AHEN           0x02
3456 #define _SSPCON3_SBCDE          0x04
3457 #define _SSPCON3_SDAHT          0x08
3458 #define _SSPCON3_BOEN           0x10
3459 #define _SSPCON3_SCIE           0x20
3460 #define _SSPCON3_PCIE           0x40
3461 #define _SSPCON3_ACKTIM         0x80
3462 
3463 //==============================================================================
3464 
3465 
3466 //==============================================================================
3467 //        ODCONA Bits
3468 
3469 extern __at(0x028C) __sfr ODCONA;
3470 
3471 typedef struct
3472   {
3473   unsigned ODA0                 : 1;
3474   unsigned ODA1                 : 1;
3475   unsigned ODA2                 : 1;
3476   unsigned                      : 1;
3477   unsigned ODA4                 : 1;
3478   unsigned ODA5                 : 1;
3479   unsigned                      : 1;
3480   unsigned                      : 1;
3481   } __ODCONAbits_t;
3482 
3483 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
3484 
3485 #define _ODA0                   0x01
3486 #define _ODA1                   0x02
3487 #define _ODA2                   0x04
3488 #define _ODA4                   0x10
3489 #define _ODA5                   0x20
3490 
3491 //==============================================================================
3492 
3493 
3494 //==============================================================================
3495 //        ODCONB Bits
3496 
3497 extern __at(0x028D) __sfr ODCONB;
3498 
3499 typedef struct
3500   {
3501   unsigned                      : 1;
3502   unsigned                      : 1;
3503   unsigned                      : 1;
3504   unsigned                      : 1;
3505   unsigned ODB4                 : 1;
3506   unsigned ODB5                 : 1;
3507   unsigned ODB6                 : 1;
3508   unsigned ODB7                 : 1;
3509   } __ODCONBbits_t;
3510 
3511 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
3512 
3513 #define _ODB4                   0x10
3514 #define _ODB5                   0x20
3515 #define _ODB6                   0x40
3516 #define _ODB7                   0x80
3517 
3518 //==============================================================================
3519 
3520 
3521 //==============================================================================
3522 //        ODCONC Bits
3523 
3524 extern __at(0x028E) __sfr ODCONC;
3525 
3526 typedef struct
3527   {
3528   unsigned ODC0                 : 1;
3529   unsigned ODC1                 : 1;
3530   unsigned ODC2                 : 1;
3531   unsigned ODC3                 : 1;
3532   unsigned ODC4                 : 1;
3533   unsigned ODC5                 : 1;
3534   unsigned ODC6                 : 1;
3535   unsigned ODC7                 : 1;
3536   } __ODCONCbits_t;
3537 
3538 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
3539 
3540 #define _ODC0                   0x01
3541 #define _ODC1                   0x02
3542 #define _ODC2                   0x04
3543 #define _ODC3                   0x08
3544 #define _ODC4                   0x10
3545 #define _ODC5                   0x20
3546 #define _ODC6                   0x40
3547 #define _ODC7                   0x80
3548 
3549 //==============================================================================
3550 
3551 extern __at(0x0291) __sfr CCPR1;
3552 extern __at(0x0291) __sfr CCPR1L;
3553 extern __at(0x0292) __sfr CCPR1H;
3554 
3555 //==============================================================================
3556 //        CCP1CON Bits
3557 
3558 extern __at(0x0293) __sfr CCP1CON;
3559 
3560 typedef union
3561   {
3562   struct
3563     {
3564     unsigned MODE0              : 1;
3565     unsigned MODE1              : 1;
3566     unsigned MODE2              : 1;
3567     unsigned MODE3              : 1;
3568     unsigned FMT                : 1;
3569     unsigned OUT                : 1;
3570     unsigned                    : 1;
3571     unsigned EN                 : 1;
3572     };
3573 
3574   struct
3575     {
3576     unsigned CCP1MODE0          : 1;
3577     unsigned CCP1MODE1          : 1;
3578     unsigned CCP1MODE2          : 1;
3579     unsigned CCP1MODE3          : 1;
3580     unsigned CCP1FMT            : 1;
3581     unsigned CCP1OUT            : 1;
3582     unsigned                    : 1;
3583     unsigned CCP1EN             : 1;
3584     };
3585 
3586   struct
3587     {
3588     unsigned MODE               : 4;
3589     unsigned                    : 4;
3590     };
3591 
3592   struct
3593     {
3594     unsigned CCP1MODE           : 4;
3595     unsigned                    : 4;
3596     };
3597   } __CCP1CONbits_t;
3598 
3599 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
3600 
3601 #define _CCP1CON_MODE0          0x01
3602 #define _CCP1CON_CCP1MODE0      0x01
3603 #define _CCP1CON_MODE1          0x02
3604 #define _CCP1CON_CCP1MODE1      0x02
3605 #define _CCP1CON_MODE2          0x04
3606 #define _CCP1CON_CCP1MODE2      0x04
3607 #define _CCP1CON_MODE3          0x08
3608 #define _CCP1CON_CCP1MODE3      0x08
3609 #define _CCP1CON_FMT            0x10
3610 #define _CCP1CON_CCP1FMT        0x10
3611 #define _CCP1CON_OUT            0x20
3612 #define _CCP1CON_CCP1OUT        0x20
3613 #define _CCP1CON_EN             0x80
3614 #define _CCP1CON_CCP1EN         0x80
3615 
3616 //==============================================================================
3617 
3618 
3619 //==============================================================================
3620 //        CCP1CAP Bits
3621 
3622 extern __at(0x0294) __sfr CCP1CAP;
3623 
3624 typedef union
3625   {
3626   struct
3627     {
3628     unsigned CTS0               : 1;
3629     unsigned CTS1               : 1;
3630     unsigned CTS2               : 1;
3631     unsigned                    : 1;
3632     unsigned                    : 1;
3633     unsigned                    : 1;
3634     unsigned                    : 1;
3635     unsigned                    : 1;
3636     };
3637 
3638   struct
3639     {
3640     unsigned CCP1CTS0           : 1;
3641     unsigned CCP1CTS1           : 1;
3642     unsigned CCP1CTS2           : 1;
3643     unsigned                    : 1;
3644     unsigned                    : 1;
3645     unsigned                    : 1;
3646     unsigned                    : 1;
3647     unsigned                    : 1;
3648     };
3649 
3650   struct
3651     {
3652     unsigned CTS                : 3;
3653     unsigned                    : 5;
3654     };
3655 
3656   struct
3657     {
3658     unsigned CCP1CTS            : 3;
3659     unsigned                    : 5;
3660     };
3661   } __CCP1CAPbits_t;
3662 
3663 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
3664 
3665 #define _CTS0                   0x01
3666 #define _CCP1CTS0               0x01
3667 #define _CTS1                   0x02
3668 #define _CCP1CTS1               0x02
3669 #define _CTS2                   0x04
3670 #define _CCP1CTS2               0x04
3671 
3672 //==============================================================================
3673 
3674 extern __at(0x0298) __sfr CCPR2;
3675 extern __at(0x0298) __sfr CCPR2L;
3676 extern __at(0x0299) __sfr CCPR2H;
3677 
3678 //==============================================================================
3679 //        CCP2CON Bits
3680 
3681 extern __at(0x029A) __sfr CCP2CON;
3682 
3683 typedef union
3684   {
3685   struct
3686     {
3687     unsigned MODE0              : 1;
3688     unsigned MODE1              : 1;
3689     unsigned MODE2              : 1;
3690     unsigned MODE3              : 1;
3691     unsigned FMT                : 1;
3692     unsigned OUT                : 1;
3693     unsigned                    : 1;
3694     unsigned EN                 : 1;
3695     };
3696 
3697   struct
3698     {
3699     unsigned CCP2MODE0          : 1;
3700     unsigned CCP2MODE1          : 1;
3701     unsigned CCP2MODE2          : 1;
3702     unsigned CCP2MODE3          : 1;
3703     unsigned CCP2FMT            : 1;
3704     unsigned CCP2OUT            : 1;
3705     unsigned                    : 1;
3706     unsigned CCP2EN             : 1;
3707     };
3708 
3709   struct
3710     {
3711     unsigned CCP2MODE           : 4;
3712     unsigned                    : 4;
3713     };
3714 
3715   struct
3716     {
3717     unsigned MODE               : 4;
3718     unsigned                    : 4;
3719     };
3720   } __CCP2CONbits_t;
3721 
3722 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
3723 
3724 #define _CCP2CON_MODE0          0x01
3725 #define _CCP2CON_CCP2MODE0      0x01
3726 #define _CCP2CON_MODE1          0x02
3727 #define _CCP2CON_CCP2MODE1      0x02
3728 #define _CCP2CON_MODE2          0x04
3729 #define _CCP2CON_CCP2MODE2      0x04
3730 #define _CCP2CON_MODE3          0x08
3731 #define _CCP2CON_CCP2MODE3      0x08
3732 #define _CCP2CON_FMT            0x10
3733 #define _CCP2CON_CCP2FMT        0x10
3734 #define _CCP2CON_OUT            0x20
3735 #define _CCP2CON_CCP2OUT        0x20
3736 #define _CCP2CON_EN             0x80
3737 #define _CCP2CON_CCP2EN         0x80
3738 
3739 //==============================================================================
3740 
3741 
3742 //==============================================================================
3743 //        CCP2CAP Bits
3744 
3745 extern __at(0x029B) __sfr CCP2CAP;
3746 
3747 typedef union
3748   {
3749   struct
3750     {
3751     unsigned CTS0               : 1;
3752     unsigned CTS1               : 1;
3753     unsigned CTS2               : 1;
3754     unsigned                    : 1;
3755     unsigned                    : 1;
3756     unsigned                    : 1;
3757     unsigned                    : 1;
3758     unsigned                    : 1;
3759     };
3760 
3761   struct
3762     {
3763     unsigned CCP2CTS0           : 1;
3764     unsigned CCP2CTS1           : 1;
3765     unsigned CCP2CTS2           : 1;
3766     unsigned                    : 1;
3767     unsigned                    : 1;
3768     unsigned                    : 1;
3769     unsigned                    : 1;
3770     unsigned                    : 1;
3771     };
3772 
3773   struct
3774     {
3775     unsigned CCP2CTS            : 3;
3776     unsigned                    : 5;
3777     };
3778 
3779   struct
3780     {
3781     unsigned CTS                : 3;
3782     unsigned                    : 5;
3783     };
3784   } __CCP2CAPbits_t;
3785 
3786 extern __at(0x029B) volatile __CCP2CAPbits_t CCP2CAPbits;
3787 
3788 #define _CCP2CAP_CTS0           0x01
3789 #define _CCP2CAP_CCP2CTS0       0x01
3790 #define _CCP2CAP_CTS1           0x02
3791 #define _CCP2CAP_CCP2CTS1       0x02
3792 #define _CCP2CAP_CTS2           0x04
3793 #define _CCP2CAP_CCP2CTS2       0x04
3794 
3795 //==============================================================================
3796 
3797 
3798 //==============================================================================
3799 //        CCPTMRS Bits
3800 
3801 extern __at(0x029E) __sfr CCPTMRS;
3802 
3803 typedef union
3804   {
3805   struct
3806     {
3807     unsigned CCP1TSEL0          : 1;
3808     unsigned CCP1TSEL1          : 1;
3809     unsigned CCP2TSEL0          : 1;
3810     unsigned CCP2TSEL1          : 1;
3811     unsigned P3TSEL0            : 1;
3812     unsigned P3TSEL1            : 1;
3813     unsigned P4TSEL0            : 1;
3814     unsigned P4TSEL1            : 1;
3815     };
3816 
3817   struct
3818     {
3819     unsigned CCP1TSEL           : 2;
3820     unsigned                    : 6;
3821     };
3822 
3823   struct
3824     {
3825     unsigned                    : 2;
3826     unsigned CCP2TSEL           : 2;
3827     unsigned                    : 4;
3828     };
3829 
3830   struct
3831     {
3832     unsigned                    : 4;
3833     unsigned P3TSEL             : 2;
3834     unsigned                    : 2;
3835     };
3836 
3837   struct
3838     {
3839     unsigned                    : 6;
3840     unsigned P4TSEL             : 2;
3841     };
3842   } __CCPTMRSbits_t;
3843 
3844 extern __at(0x029E) volatile __CCPTMRSbits_t CCPTMRSbits;
3845 
3846 #define _CCP1TSEL0              0x01
3847 #define _CCP1TSEL1              0x02
3848 #define _CCP2TSEL0              0x04
3849 #define _CCP2TSEL1              0x08
3850 #define _P3TSEL0                0x10
3851 #define _P3TSEL1                0x20
3852 #define _P4TSEL0                0x40
3853 #define _P4TSEL1                0x80
3854 
3855 //==============================================================================
3856 
3857 
3858 //==============================================================================
3859 //        SLRCONA Bits
3860 
3861 extern __at(0x030C) __sfr SLRCONA;
3862 
3863 typedef struct
3864   {
3865   unsigned SLRA0                : 1;
3866   unsigned SLRA1                : 1;
3867   unsigned SLRA2                : 1;
3868   unsigned                      : 1;
3869   unsigned SLRA4                : 1;
3870   unsigned SLRA5                : 1;
3871   unsigned                      : 1;
3872   unsigned                      : 1;
3873   } __SLRCONAbits_t;
3874 
3875 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
3876 
3877 #define _SLRA0                  0x01
3878 #define _SLRA1                  0x02
3879 #define _SLRA2                  0x04
3880 #define _SLRA4                  0x10
3881 #define _SLRA5                  0x20
3882 
3883 //==============================================================================
3884 
3885 
3886 //==============================================================================
3887 //        SLRCONB Bits
3888 
3889 extern __at(0x030D) __sfr SLRCONB;
3890 
3891 typedef struct
3892   {
3893   unsigned                      : 1;
3894   unsigned                      : 1;
3895   unsigned                      : 1;
3896   unsigned                      : 1;
3897   unsigned SLRB4                : 1;
3898   unsigned SLRB5                : 1;
3899   unsigned SLRB6                : 1;
3900   unsigned SLRB7                : 1;
3901   } __SLRCONBbits_t;
3902 
3903 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
3904 
3905 #define _SLRB4                  0x10
3906 #define _SLRB5                  0x20
3907 #define _SLRB6                  0x40
3908 #define _SLRB7                  0x80
3909 
3910 //==============================================================================
3911 
3912 
3913 //==============================================================================
3914 //        SLRCONC Bits
3915 
3916 extern __at(0x030E) __sfr SLRCONC;
3917 
3918 typedef struct
3919   {
3920   unsigned SLRC0                : 1;
3921   unsigned SLRC1                : 1;
3922   unsigned SLRC2                : 1;
3923   unsigned SLRC3                : 1;
3924   unsigned SLRC4                : 1;
3925   unsigned SLRC5                : 1;
3926   unsigned SLRC6                : 1;
3927   unsigned SLRC7                : 1;
3928   } __SLRCONCbits_t;
3929 
3930 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
3931 
3932 #define _SLRC0                  0x01
3933 #define _SLRC1                  0x02
3934 #define _SLRC2                  0x04
3935 #define _SLRC3                  0x08
3936 #define _SLRC4                  0x10
3937 #define _SLRC5                  0x20
3938 #define _SLRC6                  0x40
3939 #define _SLRC7                  0x80
3940 
3941 //==============================================================================
3942 
3943 
3944 //==============================================================================
3945 //        INLVLA Bits
3946 
3947 extern __at(0x038C) __sfr INLVLA;
3948 
3949 typedef union
3950   {
3951   struct
3952     {
3953     unsigned INLVLA0            : 1;
3954     unsigned INLVLA1            : 1;
3955     unsigned INLVLA2            : 1;
3956     unsigned INLVLA3            : 1;
3957     unsigned INLVLA4            : 1;
3958     unsigned INLVLA5            : 1;
3959     unsigned                    : 1;
3960     unsigned                    : 1;
3961     };
3962 
3963   struct
3964     {
3965     unsigned INLVLA             : 6;
3966     unsigned                    : 2;
3967     };
3968   } __INLVLAbits_t;
3969 
3970 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
3971 
3972 #define _INLVLA0                0x01
3973 #define _INLVLA1                0x02
3974 #define _INLVLA2                0x04
3975 #define _INLVLA3                0x08
3976 #define _INLVLA4                0x10
3977 #define _INLVLA5                0x20
3978 
3979 //==============================================================================
3980 
3981 
3982 //==============================================================================
3983 //        INLVLB Bits
3984 
3985 extern __at(0x038D) __sfr INLVLB;
3986 
3987 typedef struct
3988   {
3989   unsigned                      : 1;
3990   unsigned                      : 1;
3991   unsigned                      : 1;
3992   unsigned                      : 1;
3993   unsigned INLVLB4              : 1;
3994   unsigned INLVLB5              : 1;
3995   unsigned INLVLB6              : 1;
3996   unsigned INLVLB7              : 1;
3997   } __INLVLBbits_t;
3998 
3999 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
4000 
4001 #define _INLVLB4                0x10
4002 #define _INLVLB5                0x20
4003 #define _INLVLB6                0x40
4004 #define _INLVLB7                0x80
4005 
4006 //==============================================================================
4007 
4008 
4009 //==============================================================================
4010 //        INLVLC Bits
4011 
4012 extern __at(0x038E) __sfr INLVLC;
4013 
4014 typedef struct
4015   {
4016   unsigned INLVLC0              : 1;
4017   unsigned INLVLC1              : 1;
4018   unsigned INLVLC2              : 1;
4019   unsigned INLVLC3              : 1;
4020   unsigned INLVLC4              : 1;
4021   unsigned INLVLC5              : 1;
4022   unsigned INLVLC6              : 1;
4023   unsigned INLVLC7              : 1;
4024   } __INLVLCbits_t;
4025 
4026 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
4027 
4028 #define _INLVLC0                0x01
4029 #define _INLVLC1                0x02
4030 #define _INLVLC2                0x04
4031 #define _INLVLC3                0x08
4032 #define _INLVLC4                0x10
4033 #define _INLVLC5                0x20
4034 #define _INLVLC6                0x40
4035 #define _INLVLC7                0x80
4036 
4037 //==============================================================================
4038 
4039 
4040 //==============================================================================
4041 //        IOCAP Bits
4042 
4043 extern __at(0x0391) __sfr IOCAP;
4044 
4045 typedef union
4046   {
4047   struct
4048     {
4049     unsigned IOCAP0             : 1;
4050     unsigned IOCAP1             : 1;
4051     unsigned IOCAP2             : 1;
4052     unsigned IOCAP3             : 1;
4053     unsigned IOCAP4             : 1;
4054     unsigned IOCAP5             : 1;
4055     unsigned                    : 1;
4056     unsigned                    : 1;
4057     };
4058 
4059   struct
4060     {
4061     unsigned IOCAP              : 6;
4062     unsigned                    : 2;
4063     };
4064   } __IOCAPbits_t;
4065 
4066 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
4067 
4068 #define _IOCAP0                 0x01
4069 #define _IOCAP1                 0x02
4070 #define _IOCAP2                 0x04
4071 #define _IOCAP3                 0x08
4072 #define _IOCAP4                 0x10
4073 #define _IOCAP5                 0x20
4074 
4075 //==============================================================================
4076 
4077 
4078 //==============================================================================
4079 //        IOCAN Bits
4080 
4081 extern __at(0x0392) __sfr IOCAN;
4082 
4083 typedef union
4084   {
4085   struct
4086     {
4087     unsigned IOCAN0             : 1;
4088     unsigned IOCAN1             : 1;
4089     unsigned IOCAN2             : 1;
4090     unsigned IOCAN3             : 1;
4091     unsigned IOCAN4             : 1;
4092     unsigned IOCAN5             : 1;
4093     unsigned                    : 1;
4094     unsigned                    : 1;
4095     };
4096 
4097   struct
4098     {
4099     unsigned IOCAN              : 6;
4100     unsigned                    : 2;
4101     };
4102   } __IOCANbits_t;
4103 
4104 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
4105 
4106 #define _IOCAN0                 0x01
4107 #define _IOCAN1                 0x02
4108 #define _IOCAN2                 0x04
4109 #define _IOCAN3                 0x08
4110 #define _IOCAN4                 0x10
4111 #define _IOCAN5                 0x20
4112 
4113 //==============================================================================
4114 
4115 
4116 //==============================================================================
4117 //        IOCAF Bits
4118 
4119 extern __at(0x0393) __sfr IOCAF;
4120 
4121 typedef union
4122   {
4123   struct
4124     {
4125     unsigned IOCAF0             : 1;
4126     unsigned IOCAF1             : 1;
4127     unsigned IOCAF2             : 1;
4128     unsigned IOCAF3             : 1;
4129     unsigned IOCAF4             : 1;
4130     unsigned IOCAF5             : 1;
4131     unsigned                    : 1;
4132     unsigned                    : 1;
4133     };
4134 
4135   struct
4136     {
4137     unsigned IOCAF              : 6;
4138     unsigned                    : 2;
4139     };
4140   } __IOCAFbits_t;
4141 
4142 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
4143 
4144 #define _IOCAF0                 0x01
4145 #define _IOCAF1                 0x02
4146 #define _IOCAF2                 0x04
4147 #define _IOCAF3                 0x08
4148 #define _IOCAF4                 0x10
4149 #define _IOCAF5                 0x20
4150 
4151 //==============================================================================
4152 
4153 
4154 //==============================================================================
4155 //        IOCBP Bits
4156 
4157 extern __at(0x0394) __sfr IOCBP;
4158 
4159 typedef struct
4160   {
4161   unsigned                      : 1;
4162   unsigned                      : 1;
4163   unsigned                      : 1;
4164   unsigned                      : 1;
4165   unsigned IOCBP4               : 1;
4166   unsigned IOCBP5               : 1;
4167   unsigned IOCBP6               : 1;
4168   unsigned IOCBP7               : 1;
4169   } __IOCBPbits_t;
4170 
4171 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
4172 
4173 #define _IOCBP4                 0x10
4174 #define _IOCBP5                 0x20
4175 #define _IOCBP6                 0x40
4176 #define _IOCBP7                 0x80
4177 
4178 //==============================================================================
4179 
4180 
4181 //==============================================================================
4182 //        IOCBN Bits
4183 
4184 extern __at(0x0395) __sfr IOCBN;
4185 
4186 typedef struct
4187   {
4188   unsigned                      : 1;
4189   unsigned                      : 1;
4190   unsigned                      : 1;
4191   unsigned                      : 1;
4192   unsigned IOCBN4               : 1;
4193   unsigned IOCBN5               : 1;
4194   unsigned IOCBN6               : 1;
4195   unsigned IOCBN7               : 1;
4196   } __IOCBNbits_t;
4197 
4198 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
4199 
4200 #define _IOCBN4                 0x10
4201 #define _IOCBN5                 0x20
4202 #define _IOCBN6                 0x40
4203 #define _IOCBN7                 0x80
4204 
4205 //==============================================================================
4206 
4207 
4208 //==============================================================================
4209 //        IOCBF Bits
4210 
4211 extern __at(0x0396) __sfr IOCBF;
4212 
4213 typedef struct
4214   {
4215   unsigned                      : 1;
4216   unsigned                      : 1;
4217   unsigned                      : 1;
4218   unsigned                      : 1;
4219   unsigned IOCBF4               : 1;
4220   unsigned IOCBF5               : 1;
4221   unsigned IOCBF6               : 1;
4222   unsigned IOCBF7               : 1;
4223   } __IOCBFbits_t;
4224 
4225 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
4226 
4227 #define _IOCBF4                 0x10
4228 #define _IOCBF5                 0x20
4229 #define _IOCBF6                 0x40
4230 #define _IOCBF7                 0x80
4231 
4232 //==============================================================================
4233 
4234 
4235 //==============================================================================
4236 //        IOCCP Bits
4237 
4238 extern __at(0x0397) __sfr IOCCP;
4239 
4240 typedef struct
4241   {
4242   unsigned IOCCP0               : 1;
4243   unsigned IOCCP1               : 1;
4244   unsigned IOCCP2               : 1;
4245   unsigned IOCCP3               : 1;
4246   unsigned IOCCP4               : 1;
4247   unsigned IOCCP5               : 1;
4248   unsigned IOCCP6               : 1;
4249   unsigned IOCCP7               : 1;
4250   } __IOCCPbits_t;
4251 
4252 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
4253 
4254 #define _IOCCP0                 0x01
4255 #define _IOCCP1                 0x02
4256 #define _IOCCP2                 0x04
4257 #define _IOCCP3                 0x08
4258 #define _IOCCP4                 0x10
4259 #define _IOCCP5                 0x20
4260 #define _IOCCP6                 0x40
4261 #define _IOCCP7                 0x80
4262 
4263 //==============================================================================
4264 
4265 
4266 //==============================================================================
4267 //        IOCCN Bits
4268 
4269 extern __at(0x0398) __sfr IOCCN;
4270 
4271 typedef struct
4272   {
4273   unsigned IOCCN0               : 1;
4274   unsigned IOCCN1               : 1;
4275   unsigned IOCCN2               : 1;
4276   unsigned IOCCN3               : 1;
4277   unsigned IOCCN4               : 1;
4278   unsigned IOCCN5               : 1;
4279   unsigned IOCCN6               : 1;
4280   unsigned IOCCN7               : 1;
4281   } __IOCCNbits_t;
4282 
4283 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
4284 
4285 #define _IOCCN0                 0x01
4286 #define _IOCCN1                 0x02
4287 #define _IOCCN2                 0x04
4288 #define _IOCCN3                 0x08
4289 #define _IOCCN4                 0x10
4290 #define _IOCCN5                 0x20
4291 #define _IOCCN6                 0x40
4292 #define _IOCCN7                 0x80
4293 
4294 //==============================================================================
4295 
4296 
4297 //==============================================================================
4298 //        IOCCF Bits
4299 
4300 extern __at(0x0399) __sfr IOCCF;
4301 
4302 typedef struct
4303   {
4304   unsigned IOCCF0               : 1;
4305   unsigned IOCCF1               : 1;
4306   unsigned IOCCF2               : 1;
4307   unsigned IOCCF3               : 1;
4308   unsigned IOCCF4               : 1;
4309   unsigned IOCCF5               : 1;
4310   unsigned IOCCF6               : 1;
4311   unsigned IOCCF7               : 1;
4312   } __IOCCFbits_t;
4313 
4314 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
4315 
4316 #define _IOCCF0                 0x01
4317 #define _IOCCF1                 0x02
4318 #define _IOCCF2                 0x04
4319 #define _IOCCF3                 0x08
4320 #define _IOCCF4                 0x10
4321 #define _IOCCF5                 0x20
4322 #define _IOCCF6                 0x40
4323 #define _IOCCF7                 0x80
4324 
4325 //==============================================================================
4326 
4327 
4328 //==============================================================================
4329 //        HDRVC Bits
4330 
4331 extern __at(0x040E) __sfr HDRVC;
4332 
4333 typedef struct
4334   {
4335   unsigned                      : 1;
4336   unsigned                      : 1;
4337   unsigned                      : 1;
4338   unsigned                      : 1;
4339   unsigned HIDC4                : 1;
4340   unsigned HIDC5                : 1;
4341   unsigned                      : 1;
4342   unsigned                      : 1;
4343   } __HDRVCbits_t;
4344 
4345 extern __at(0x040E) volatile __HDRVCbits_t HDRVCbits;
4346 
4347 #define _HIDC4                  0x10
4348 #define _HIDC5                  0x20
4349 
4350 //==============================================================================
4351 
4352 extern __at(0x0413) __sfr T4TMR;
4353 extern __at(0x0413) __sfr TMR4;
4354 extern __at(0x0414) __sfr PR4;
4355 extern __at(0x0414) __sfr T4PR;
4356 
4357 //==============================================================================
4358 //        T4CON Bits
4359 
4360 extern __at(0x0415) __sfr T4CON;
4361 
4362 typedef union
4363   {
4364   struct
4365     {
4366     unsigned OUTPS0             : 1;
4367     unsigned OUTPS1             : 1;
4368     unsigned OUTPS2             : 1;
4369     unsigned OUTPS3             : 1;
4370     unsigned CKPS0              : 1;
4371     unsigned CKPS1              : 1;
4372     unsigned CKPS2              : 1;
4373     unsigned ON                 : 1;
4374     };
4375 
4376   struct
4377     {
4378     unsigned T4OUTPS0           : 1;
4379     unsigned T4OUTPS1           : 1;
4380     unsigned T4OUTPS2           : 1;
4381     unsigned T4OUTPS3           : 1;
4382     unsigned T4CKPS0            : 1;
4383     unsigned T4CKPS1            : 1;
4384     unsigned T4CKPS2            : 1;
4385     unsigned T4ON               : 1;
4386     };
4387 
4388   struct
4389     {
4390     unsigned                    : 1;
4391     unsigned                    : 1;
4392     unsigned                    : 1;
4393     unsigned                    : 1;
4394     unsigned                    : 1;
4395     unsigned                    : 1;
4396     unsigned                    : 1;
4397     unsigned TMR4ON             : 1;
4398     };
4399 
4400   struct
4401     {
4402     unsigned OUTPS              : 4;
4403     unsigned                    : 4;
4404     };
4405 
4406   struct
4407     {
4408     unsigned T4OUTPS            : 4;
4409     unsigned                    : 4;
4410     };
4411 
4412   struct
4413     {
4414     unsigned                    : 4;
4415     unsigned CKPS               : 3;
4416     unsigned                    : 1;
4417     };
4418 
4419   struct
4420     {
4421     unsigned                    : 4;
4422     unsigned T4CKPS             : 3;
4423     unsigned                    : 1;
4424     };
4425   } __T4CONbits_t;
4426 
4427 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
4428 
4429 #define _T4CON_OUTPS0           0x01
4430 #define _T4CON_T4OUTPS0         0x01
4431 #define _T4CON_OUTPS1           0x02
4432 #define _T4CON_T4OUTPS1         0x02
4433 #define _T4CON_OUTPS2           0x04
4434 #define _T4CON_T4OUTPS2         0x04
4435 #define _T4CON_OUTPS3           0x08
4436 #define _T4CON_T4OUTPS3         0x08
4437 #define _T4CON_CKPS0            0x10
4438 #define _T4CON_T4CKPS0          0x10
4439 #define _T4CON_CKPS1            0x20
4440 #define _T4CON_T4CKPS1          0x20
4441 #define _T4CON_CKPS2            0x40
4442 #define _T4CON_T4CKPS2          0x40
4443 #define _T4CON_ON               0x80
4444 #define _T4CON_T4ON             0x80
4445 #define _T4CON_TMR4ON           0x80
4446 
4447 //==============================================================================
4448 
4449 
4450 //==============================================================================
4451 //        T4HLT Bits
4452 
4453 extern __at(0x0416) __sfr T4HLT;
4454 
4455 typedef union
4456   {
4457   struct
4458     {
4459     unsigned MODE0              : 1;
4460     unsigned MODE1              : 1;
4461     unsigned MODE2              : 1;
4462     unsigned MODE3              : 1;
4463     unsigned MODE4              : 1;
4464     unsigned CKSYNC             : 1;
4465     unsigned CKPOL              : 1;
4466     unsigned PSYNC              : 1;
4467     };
4468 
4469   struct
4470     {
4471     unsigned T4MODE0            : 1;
4472     unsigned T4MODE1            : 1;
4473     unsigned T4MODE2            : 1;
4474     unsigned T4MODE3            : 1;
4475     unsigned T4MODE4            : 1;
4476     unsigned T4CKSYNC           : 1;
4477     unsigned T4CKPOL            : 1;
4478     unsigned T4PSYNC            : 1;
4479     };
4480 
4481   struct
4482     {
4483     unsigned MODE               : 5;
4484     unsigned                    : 3;
4485     };
4486 
4487   struct
4488     {
4489     unsigned T4MODE             : 5;
4490     unsigned                    : 3;
4491     };
4492   } __T4HLTbits_t;
4493 
4494 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
4495 
4496 #define _T4HLT_MODE0            0x01
4497 #define _T4HLT_T4MODE0          0x01
4498 #define _T4HLT_MODE1            0x02
4499 #define _T4HLT_T4MODE1          0x02
4500 #define _T4HLT_MODE2            0x04
4501 #define _T4HLT_T4MODE2          0x04
4502 #define _T4HLT_MODE3            0x08
4503 #define _T4HLT_T4MODE3          0x08
4504 #define _T4HLT_MODE4            0x10
4505 #define _T4HLT_T4MODE4          0x10
4506 #define _T4HLT_CKSYNC           0x20
4507 #define _T4HLT_T4CKSYNC         0x20
4508 #define _T4HLT_CKPOL            0x40
4509 #define _T4HLT_T4CKPOL          0x40
4510 #define _T4HLT_PSYNC            0x80
4511 #define _T4HLT_T4PSYNC          0x80
4512 
4513 //==============================================================================
4514 
4515 
4516 //==============================================================================
4517 //        T4CLKCON Bits
4518 
4519 extern __at(0x0417) __sfr T4CLKCON;
4520 
4521 typedef union
4522   {
4523   struct
4524     {
4525     unsigned CS0                : 1;
4526     unsigned CS1                : 1;
4527     unsigned CS2                : 1;
4528     unsigned CS3                : 1;
4529     unsigned                    : 1;
4530     unsigned                    : 1;
4531     unsigned                    : 1;
4532     unsigned                    : 1;
4533     };
4534 
4535   struct
4536     {
4537     unsigned T4CS0              : 1;
4538     unsigned T4CS1              : 1;
4539     unsigned T4CS2              : 1;
4540     unsigned T4CS3              : 1;
4541     unsigned                    : 1;
4542     unsigned                    : 1;
4543     unsigned                    : 1;
4544     unsigned                    : 1;
4545     };
4546 
4547   struct
4548     {
4549     unsigned T4CS               : 4;
4550     unsigned                    : 4;
4551     };
4552 
4553   struct
4554     {
4555     unsigned CS                 : 4;
4556     unsigned                    : 4;
4557     };
4558   } __T4CLKCONbits_t;
4559 
4560 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
4561 
4562 #define _T4CLKCON_CS0           0x01
4563 #define _T4CLKCON_T4CS0         0x01
4564 #define _T4CLKCON_CS1           0x02
4565 #define _T4CLKCON_T4CS1         0x02
4566 #define _T4CLKCON_CS2           0x04
4567 #define _T4CLKCON_T4CS2         0x04
4568 #define _T4CLKCON_CS3           0x08
4569 #define _T4CLKCON_T4CS3         0x08
4570 
4571 //==============================================================================
4572 
4573 
4574 //==============================================================================
4575 //        T4RST Bits
4576 
4577 extern __at(0x0418) __sfr T4RST;
4578 
4579 typedef union
4580   {
4581   struct
4582     {
4583     unsigned RSEL0              : 1;
4584     unsigned RSEL1              : 1;
4585     unsigned RSEL2              : 1;
4586     unsigned RSEL3              : 1;
4587     unsigned                    : 1;
4588     unsigned                    : 1;
4589     unsigned                    : 1;
4590     unsigned                    : 1;
4591     };
4592 
4593   struct
4594     {
4595     unsigned T4RSEL0            : 1;
4596     unsigned T4RSEL1            : 1;
4597     unsigned T4RSEL2            : 1;
4598     unsigned T4RSEL3            : 1;
4599     unsigned                    : 1;
4600     unsigned                    : 1;
4601     unsigned                    : 1;
4602     unsigned                    : 1;
4603     };
4604 
4605   struct
4606     {
4607     unsigned RSEL               : 4;
4608     unsigned                    : 4;
4609     };
4610 
4611   struct
4612     {
4613     unsigned T4RSEL             : 4;
4614     unsigned                    : 4;
4615     };
4616   } __T4RSTbits_t;
4617 
4618 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
4619 
4620 #define _T4RST_RSEL0            0x01
4621 #define _T4RST_T4RSEL0          0x01
4622 #define _T4RST_RSEL1            0x02
4623 #define _T4RST_T4RSEL1          0x02
4624 #define _T4RST_RSEL2            0x04
4625 #define _T4RST_T4RSEL2          0x04
4626 #define _T4RST_RSEL3            0x08
4627 #define _T4RST_T4RSEL3          0x08
4628 
4629 //==============================================================================
4630 
4631 extern __at(0x041A) __sfr T6TMR;
4632 extern __at(0x041A) __sfr TMR6;
4633 extern __at(0x041B) __sfr PR6;
4634 extern __at(0x041B) __sfr T6PR;
4635 
4636 //==============================================================================
4637 //        T6CON Bits
4638 
4639 extern __at(0x041C) __sfr T6CON;
4640 
4641 typedef union
4642   {
4643   struct
4644     {
4645     unsigned OUTPS0             : 1;
4646     unsigned OUTPS1             : 1;
4647     unsigned OUTPS2             : 1;
4648     unsigned OUTPS3             : 1;
4649     unsigned CKPS0              : 1;
4650     unsigned CKPS1              : 1;
4651     unsigned CKPS2              : 1;
4652     unsigned ON                 : 1;
4653     };
4654 
4655   struct
4656     {
4657     unsigned T6OUTPS0           : 1;
4658     unsigned T6OUTPS1           : 1;
4659     unsigned T6OUTPS2           : 1;
4660     unsigned T6OUTPS3           : 1;
4661     unsigned T6CKPS0            : 1;
4662     unsigned T6CKPS1            : 1;
4663     unsigned T6CKPS2            : 1;
4664     unsigned T6ON               : 1;
4665     };
4666 
4667   struct
4668     {
4669     unsigned                    : 1;
4670     unsigned                    : 1;
4671     unsigned                    : 1;
4672     unsigned                    : 1;
4673     unsigned                    : 1;
4674     unsigned                    : 1;
4675     unsigned                    : 1;
4676     unsigned TMR6ON             : 1;
4677     };
4678 
4679   struct
4680     {
4681     unsigned OUTPS              : 4;
4682     unsigned                    : 4;
4683     };
4684 
4685   struct
4686     {
4687     unsigned T6OUTPS            : 4;
4688     unsigned                    : 4;
4689     };
4690 
4691   struct
4692     {
4693     unsigned                    : 4;
4694     unsigned CKPS               : 3;
4695     unsigned                    : 1;
4696     };
4697 
4698   struct
4699     {
4700     unsigned                    : 4;
4701     unsigned T6CKPS             : 3;
4702     unsigned                    : 1;
4703     };
4704   } __T6CONbits_t;
4705 
4706 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
4707 
4708 #define _T6CON_OUTPS0           0x01
4709 #define _T6CON_T6OUTPS0         0x01
4710 #define _T6CON_OUTPS1           0x02
4711 #define _T6CON_T6OUTPS1         0x02
4712 #define _T6CON_OUTPS2           0x04
4713 #define _T6CON_T6OUTPS2         0x04
4714 #define _T6CON_OUTPS3           0x08
4715 #define _T6CON_T6OUTPS3         0x08
4716 #define _T6CON_CKPS0            0x10
4717 #define _T6CON_T6CKPS0          0x10
4718 #define _T6CON_CKPS1            0x20
4719 #define _T6CON_T6CKPS1          0x20
4720 #define _T6CON_CKPS2            0x40
4721 #define _T6CON_T6CKPS2          0x40
4722 #define _T6CON_ON               0x80
4723 #define _T6CON_T6ON             0x80
4724 #define _T6CON_TMR6ON           0x80
4725 
4726 //==============================================================================
4727 
4728 
4729 //==============================================================================
4730 //        T6HLT Bits
4731 
4732 extern __at(0x041D) __sfr T6HLT;
4733 
4734 typedef union
4735   {
4736   struct
4737     {
4738     unsigned MODE0              : 1;
4739     unsigned MODE1              : 1;
4740     unsigned MODE2              : 1;
4741     unsigned MODE3              : 1;
4742     unsigned MODE4              : 1;
4743     unsigned CKSYNC             : 1;
4744     unsigned CKPOL              : 1;
4745     unsigned PSYNC              : 1;
4746     };
4747 
4748   struct
4749     {
4750     unsigned T6MODE0            : 1;
4751     unsigned T6MODE1            : 1;
4752     unsigned T6MODE2            : 1;
4753     unsigned T6MODE3            : 1;
4754     unsigned T6MODE4            : 1;
4755     unsigned T6CKSYNC           : 1;
4756     unsigned T6CKPOL            : 1;
4757     unsigned T6PSYNC            : 1;
4758     };
4759 
4760   struct
4761     {
4762     unsigned T6MODE             : 5;
4763     unsigned                    : 3;
4764     };
4765 
4766   struct
4767     {
4768     unsigned MODE               : 5;
4769     unsigned                    : 3;
4770     };
4771   } __T6HLTbits_t;
4772 
4773 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
4774 
4775 #define _T6HLT_MODE0            0x01
4776 #define _T6HLT_T6MODE0          0x01
4777 #define _T6HLT_MODE1            0x02
4778 #define _T6HLT_T6MODE1          0x02
4779 #define _T6HLT_MODE2            0x04
4780 #define _T6HLT_T6MODE2          0x04
4781 #define _T6HLT_MODE3            0x08
4782 #define _T6HLT_T6MODE3          0x08
4783 #define _T6HLT_MODE4            0x10
4784 #define _T6HLT_T6MODE4          0x10
4785 #define _T6HLT_CKSYNC           0x20
4786 #define _T6HLT_T6CKSYNC         0x20
4787 #define _T6HLT_CKPOL            0x40
4788 #define _T6HLT_T6CKPOL          0x40
4789 #define _T6HLT_PSYNC            0x80
4790 #define _T6HLT_T6PSYNC          0x80
4791 
4792 //==============================================================================
4793 
4794 
4795 //==============================================================================
4796 //        T6CLKCON Bits
4797 
4798 extern __at(0x041E) __sfr T6CLKCON;
4799 
4800 typedef union
4801   {
4802   struct
4803     {
4804     unsigned CS0                : 1;
4805     unsigned CS1                : 1;
4806     unsigned CS2                : 1;
4807     unsigned CS3                : 1;
4808     unsigned                    : 1;
4809     unsigned                    : 1;
4810     unsigned                    : 1;
4811     unsigned                    : 1;
4812     };
4813 
4814   struct
4815     {
4816     unsigned T6CS0              : 1;
4817     unsigned T6CS1              : 1;
4818     unsigned T6CS2              : 1;
4819     unsigned T6CS3              : 1;
4820     unsigned                    : 1;
4821     unsigned                    : 1;
4822     unsigned                    : 1;
4823     unsigned                    : 1;
4824     };
4825 
4826   struct
4827     {
4828     unsigned T6CS               : 4;
4829     unsigned                    : 4;
4830     };
4831 
4832   struct
4833     {
4834     unsigned CS                 : 4;
4835     unsigned                    : 4;
4836     };
4837   } __T6CLKCONbits_t;
4838 
4839 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
4840 
4841 #define _T6CLKCON_CS0           0x01
4842 #define _T6CLKCON_T6CS0         0x01
4843 #define _T6CLKCON_CS1           0x02
4844 #define _T6CLKCON_T6CS1         0x02
4845 #define _T6CLKCON_CS2           0x04
4846 #define _T6CLKCON_T6CS2         0x04
4847 #define _T6CLKCON_CS3           0x08
4848 #define _T6CLKCON_T6CS3         0x08
4849 
4850 //==============================================================================
4851 
4852 
4853 //==============================================================================
4854 //        T6RST Bits
4855 
4856 extern __at(0x041F) __sfr T6RST;
4857 
4858 typedef union
4859   {
4860   struct
4861     {
4862     unsigned RSEL0              : 1;
4863     unsigned RSEL1              : 1;
4864     unsigned RSEL2              : 1;
4865     unsigned RSEL3              : 1;
4866     unsigned                    : 1;
4867     unsigned                    : 1;
4868     unsigned                    : 1;
4869     unsigned                    : 1;
4870     };
4871 
4872   struct
4873     {
4874     unsigned T6RSEL0            : 1;
4875     unsigned T6RSEL1            : 1;
4876     unsigned T6RSEL2            : 1;
4877     unsigned T6RSEL3            : 1;
4878     unsigned                    : 1;
4879     unsigned                    : 1;
4880     unsigned                    : 1;
4881     unsigned                    : 1;
4882     };
4883 
4884   struct
4885     {
4886     unsigned T6RSEL             : 4;
4887     unsigned                    : 4;
4888     };
4889 
4890   struct
4891     {
4892     unsigned RSEL               : 4;
4893     unsigned                    : 4;
4894     };
4895   } __T6RSTbits_t;
4896 
4897 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
4898 
4899 #define _T6RST_RSEL0            0x01
4900 #define _T6RST_T6RSEL0          0x01
4901 #define _T6RST_RSEL1            0x02
4902 #define _T6RST_T6RSEL1          0x02
4903 #define _T6RST_RSEL2            0x04
4904 #define _T6RST_T6RSEL2          0x04
4905 #define _T6RST_RSEL3            0x08
4906 #define _T6RST_T6RSEL3          0x08
4907 
4908 //==============================================================================
4909 
4910 extern __at(0x0493) __sfr TMR3L;
4911 extern __at(0x0494) __sfr TMR3H;
4912 
4913 //==============================================================================
4914 //        T3CON Bits
4915 
4916 extern __at(0x0495) __sfr T3CON;
4917 
4918 typedef union
4919   {
4920   struct
4921     {
4922     unsigned TMR3ON             : 1;
4923     unsigned                    : 1;
4924     unsigned T3SYNC             : 1;
4925     unsigned                    : 1;
4926     unsigned T3CKPS0            : 1;
4927     unsigned T3CKPS1            : 1;
4928     unsigned TMR3CS0            : 1;
4929     unsigned TMR3CS1            : 1;
4930     };
4931 
4932   struct
4933     {
4934     unsigned                    : 4;
4935     unsigned T3CKPS             : 2;
4936     unsigned                    : 2;
4937     };
4938 
4939   struct
4940     {
4941     unsigned                    : 6;
4942     unsigned TMR3CS             : 2;
4943     };
4944   } __T3CONbits_t;
4945 
4946 extern __at(0x0495) volatile __T3CONbits_t T3CONbits;
4947 
4948 #define _TMR3ON                 0x01
4949 #define _T3SYNC                 0x04
4950 #define _T3CKPS0                0x10
4951 #define _T3CKPS1                0x20
4952 #define _TMR3CS0                0x40
4953 #define _TMR3CS1                0x80
4954 
4955 //==============================================================================
4956 
4957 
4958 //==============================================================================
4959 //        T3GCON Bits
4960 
4961 extern __at(0x0496) __sfr T3GCON;
4962 
4963 typedef union
4964   {
4965   struct
4966     {
4967     unsigned T3GSS0             : 1;
4968     unsigned T3GSS1             : 1;
4969     unsigned T3GVAL             : 1;
4970     unsigned T3GGO_NOT_DONE     : 1;
4971     unsigned T3GSPM             : 1;
4972     unsigned T3GTM              : 1;
4973     unsigned T3GPOL             : 1;
4974     unsigned TMR3GE             : 1;
4975     };
4976 
4977   struct
4978     {
4979     unsigned T3GSS              : 2;
4980     unsigned                    : 6;
4981     };
4982   } __T3GCONbits_t;
4983 
4984 extern __at(0x0496) volatile __T3GCONbits_t T3GCONbits;
4985 
4986 #define _T3GSS0                 0x01
4987 #define _T3GSS1                 0x02
4988 #define _T3GVAL                 0x04
4989 #define _T3GGO_NOT_DONE         0x08
4990 #define _T3GSPM                 0x10
4991 #define _T3GTM                  0x20
4992 #define _T3GPOL                 0x40
4993 #define _TMR3GE                 0x80
4994 
4995 //==============================================================================
4996 
4997 extern __at(0x049A) __sfr TMR5L;
4998 extern __at(0x049B) __sfr TMR5H;
4999 
5000 //==============================================================================
5001 //        T5CON Bits
5002 
5003 extern __at(0x049C) __sfr T5CON;
5004 
5005 typedef union
5006   {
5007   struct
5008     {
5009     unsigned TMR5ON             : 1;
5010     unsigned                    : 1;
5011     unsigned T5SYNC             : 1;
5012     unsigned                    : 1;
5013     unsigned T5CKPS0            : 1;
5014     unsigned T5CKPS1            : 1;
5015     unsigned TMR5CS0            : 1;
5016     unsigned TMR5CS1            : 1;
5017     };
5018 
5019   struct
5020     {
5021     unsigned                    : 4;
5022     unsigned T5CKPS             : 2;
5023     unsigned                    : 2;
5024     };
5025 
5026   struct
5027     {
5028     unsigned                    : 6;
5029     unsigned TMR5CS             : 2;
5030     };
5031   } __T5CONbits_t;
5032 
5033 extern __at(0x049C) volatile __T5CONbits_t T5CONbits;
5034 
5035 #define _TMR5ON                 0x01
5036 #define _T5SYNC                 0x04
5037 #define _T5CKPS0                0x10
5038 #define _T5CKPS1                0x20
5039 #define _TMR5CS0                0x40
5040 #define _TMR5CS1                0x80
5041 
5042 //==============================================================================
5043 
5044 
5045 //==============================================================================
5046 //        T5GCON Bits
5047 
5048 extern __at(0x049D) __sfr T5GCON;
5049 
5050 typedef union
5051   {
5052   struct
5053     {
5054     unsigned T5GSS0             : 1;
5055     unsigned T5GSS1             : 1;
5056     unsigned T5GVAL             : 1;
5057     unsigned T5GGO_NOT_DONE     : 1;
5058     unsigned T5GSPM             : 1;
5059     unsigned T5GTM              : 1;
5060     unsigned T5GPOL             : 1;
5061     unsigned TMR5GE             : 1;
5062     };
5063 
5064   struct
5065     {
5066     unsigned T5GSS              : 2;
5067     unsigned                    : 6;
5068     };
5069   } __T5GCONbits_t;
5070 
5071 extern __at(0x049D) volatile __T5GCONbits_t T5GCONbits;
5072 
5073 #define _T5GSS0                 0x01
5074 #define _T5GSS1                 0x02
5075 #define _T5GVAL                 0x04
5076 #define _T5GGO_NOT_DONE         0x08
5077 #define _T5GSPM                 0x10
5078 #define _T5GTM                  0x20
5079 #define _T5GPOL                 0x40
5080 #define _TMR5GE                 0x80
5081 
5082 //==============================================================================
5083 
5084 extern __at(0x058C) __sfr PID1SET;
5085 
5086 //==============================================================================
5087 //        PID1SETL Bits
5088 
5089 extern __at(0x058C) __sfr PID1SETL;
5090 
5091 typedef union
5092   {
5093   struct
5094     {
5095     unsigned PID1SET0           : 1;
5096     unsigned PID1SET1           : 1;
5097     unsigned PID1SET2           : 1;
5098     unsigned PID1SET3           : 1;
5099     unsigned PID1SET4           : 1;
5100     unsigned PID1SET5           : 1;
5101     unsigned PID1SET6           : 1;
5102     unsigned PID1SET7           : 1;
5103     };
5104 
5105   struct
5106     {
5107     unsigned SET0               : 1;
5108     unsigned SET1               : 1;
5109     unsigned SET2               : 1;
5110     unsigned SET3               : 1;
5111     unsigned SET4               : 1;
5112     unsigned SET5               : 1;
5113     unsigned SET6               : 1;
5114     unsigned SET7               : 1;
5115     };
5116   } __PID1SETLbits_t;
5117 
5118 extern __at(0x058C) volatile __PID1SETLbits_t PID1SETLbits;
5119 
5120 #define _PID1SET0               0x01
5121 #define _SET0                   0x01
5122 #define _PID1SET1               0x02
5123 #define _SET1                   0x02
5124 #define _PID1SET2               0x04
5125 #define _SET2                   0x04
5126 #define _PID1SET3               0x08
5127 #define _SET3                   0x08
5128 #define _PID1SET4               0x10
5129 #define _SET4                   0x10
5130 #define _PID1SET5               0x20
5131 #define _SET5                   0x20
5132 #define _PID1SET6               0x40
5133 #define _SET6                   0x40
5134 #define _PID1SET7               0x80
5135 #define _SET7                   0x80
5136 
5137 //==============================================================================
5138 
5139 
5140 //==============================================================================
5141 //        PID1SETH Bits
5142 
5143 extern __at(0x058D) __sfr PID1SETH;
5144 
5145 typedef union
5146   {
5147   struct
5148     {
5149     unsigned PID1SET8           : 1;
5150     unsigned PID1SET9           : 1;
5151     unsigned PID1SET10          : 1;
5152     unsigned PID1SET11          : 1;
5153     unsigned PID1SET12          : 1;
5154     unsigned PID1SET13          : 1;
5155     unsigned PID1SET14          : 1;
5156     unsigned PID1SET15          : 1;
5157     };
5158 
5159   struct
5160     {
5161     unsigned SET8               : 1;
5162     unsigned SET9               : 1;
5163     unsigned SET10              : 1;
5164     unsigned SET11              : 1;
5165     unsigned SET12              : 1;
5166     unsigned SET13              : 1;
5167     unsigned SET14              : 1;
5168     unsigned SET15              : 1;
5169     };
5170   } __PID1SETHbits_t;
5171 
5172 extern __at(0x058D) volatile __PID1SETHbits_t PID1SETHbits;
5173 
5174 #define _PID1SET8               0x01
5175 #define _SET8                   0x01
5176 #define _PID1SET9               0x02
5177 #define _SET9                   0x02
5178 #define _PID1SET10              0x04
5179 #define _SET10                  0x04
5180 #define _PID1SET11              0x08
5181 #define _SET11                  0x08
5182 #define _PID1SET12              0x10
5183 #define _SET12                  0x10
5184 #define _PID1SET13              0x20
5185 #define _SET13                  0x20
5186 #define _PID1SET14              0x40
5187 #define _SET14                  0x40
5188 #define _PID1SET15              0x80
5189 #define _SET15                  0x80
5190 
5191 //==============================================================================
5192 
5193 extern __at(0x058E) __sfr PID1IN;
5194 
5195 //==============================================================================
5196 //        PID1INL Bits
5197 
5198 extern __at(0x058E) __sfr PID1INL;
5199 
5200 typedef union
5201   {
5202   struct
5203     {
5204     unsigned PID1IN0            : 1;
5205     unsigned PID1IN1            : 1;
5206     unsigned PID1IN2            : 1;
5207     unsigned PID1IN3            : 1;
5208     unsigned PID1IN4            : 1;
5209     unsigned PID1IN5            : 1;
5210     unsigned PID1IN6            : 1;
5211     unsigned PID1IN7            : 1;
5212     };
5213 
5214   struct
5215     {
5216     unsigned IN0                : 1;
5217     unsigned IN1                : 1;
5218     unsigned IN2                : 1;
5219     unsigned IN3                : 1;
5220     unsigned IN4                : 1;
5221     unsigned IN5                : 1;
5222     unsigned IN6                : 1;
5223     unsigned IN7                : 1;
5224     };
5225   } __PID1INLbits_t;
5226 
5227 extern __at(0x058E) volatile __PID1INLbits_t PID1INLbits;
5228 
5229 #define _PID1IN0                0x01
5230 #define _IN0                    0x01
5231 #define _PID1IN1                0x02
5232 #define _IN1                    0x02
5233 #define _PID1IN2                0x04
5234 #define _IN2                    0x04
5235 #define _PID1IN3                0x08
5236 #define _IN3                    0x08
5237 #define _PID1IN4                0x10
5238 #define _IN4                    0x10
5239 #define _PID1IN5                0x20
5240 #define _IN5                    0x20
5241 #define _PID1IN6                0x40
5242 #define _IN6                    0x40
5243 #define _PID1IN7                0x80
5244 #define _IN7                    0x80
5245 
5246 //==============================================================================
5247 
5248 
5249 //==============================================================================
5250 //        PID1INH Bits
5251 
5252 extern __at(0x058F) __sfr PID1INH;
5253 
5254 typedef union
5255   {
5256   struct
5257     {
5258     unsigned PID1IN8            : 1;
5259     unsigned PID1IN9            : 1;
5260     unsigned PID1IN10           : 1;
5261     unsigned PID1IN11           : 1;
5262     unsigned PID1IN12           : 1;
5263     unsigned PID1IN13           : 1;
5264     unsigned PID1IN14           : 1;
5265     unsigned PID1IN15           : 1;
5266     };
5267 
5268   struct
5269     {
5270     unsigned IN8                : 1;
5271     unsigned IN9                : 1;
5272     unsigned IN10               : 1;
5273     unsigned IN11               : 1;
5274     unsigned IN12               : 1;
5275     unsigned IN13               : 1;
5276     unsigned IN14               : 1;
5277     unsigned IN15               : 1;
5278     };
5279   } __PID1INHbits_t;
5280 
5281 extern __at(0x058F) volatile __PID1INHbits_t PID1INHbits;
5282 
5283 #define _PID1IN8                0x01
5284 #define _IN8                    0x01
5285 #define _PID1IN9                0x02
5286 #define _IN9                    0x02
5287 #define _PID1IN10               0x04
5288 #define _IN10                   0x04
5289 #define _PID1IN11               0x08
5290 #define _IN11                   0x08
5291 #define _PID1IN12               0x10
5292 #define _IN12                   0x10
5293 #define _PID1IN13               0x20
5294 #define _IN13                   0x20
5295 #define _PID1IN14               0x40
5296 #define _IN14                   0x40
5297 #define _PID1IN15               0x80
5298 #define _IN15                   0x80
5299 
5300 //==============================================================================
5301 
5302 extern __at(0x0590) __sfr PID1K1;
5303 
5304 //==============================================================================
5305 //        PID1K1L Bits
5306 
5307 extern __at(0x0590) __sfr PID1K1L;
5308 
5309 typedef union
5310   {
5311   struct
5312     {
5313     unsigned PID1K10            : 1;
5314     unsigned PID1K11            : 1;
5315     unsigned PID1K12            : 1;
5316     unsigned PID1K13            : 1;
5317     unsigned PID1K14            : 1;
5318     unsigned PID1K15            : 1;
5319     unsigned PID1K16            : 1;
5320     unsigned PID1K17            : 1;
5321     };
5322 
5323   struct
5324     {
5325     unsigned K10                : 1;
5326     unsigned K11                : 1;
5327     unsigned K12                : 1;
5328     unsigned K13                : 1;
5329     unsigned K14                : 1;
5330     unsigned K15                : 1;
5331     unsigned K16                : 1;
5332     unsigned K17                : 1;
5333     };
5334   } __PID1K1Lbits_t;
5335 
5336 extern __at(0x0590) volatile __PID1K1Lbits_t PID1K1Lbits;
5337 
5338 #define _PID1K10                0x01
5339 #define _K10                    0x01
5340 #define _PID1K11                0x02
5341 #define _K11                    0x02
5342 #define _PID1K12                0x04
5343 #define _K12                    0x04
5344 #define _PID1K13                0x08
5345 #define _K13                    0x08
5346 #define _PID1K14                0x10
5347 #define _K14                    0x10
5348 #define _PID1K15                0x20
5349 #define _K15                    0x20
5350 #define _PID1K16                0x40
5351 #define _K16                    0x40
5352 #define _PID1K17                0x80
5353 #define _K17                    0x80
5354 
5355 //==============================================================================
5356 
5357 
5358 //==============================================================================
5359 //        PID1K1H Bits
5360 
5361 extern __at(0x0591) __sfr PID1K1H;
5362 
5363 typedef union
5364   {
5365   struct
5366     {
5367     unsigned PID1K18            : 1;
5368     unsigned PID1K19            : 1;
5369     unsigned PID1K110           : 1;
5370     unsigned PID1K111           : 1;
5371     unsigned PID1K112           : 1;
5372     unsigned PID1K113           : 1;
5373     unsigned PID1K114           : 1;
5374     unsigned PID1K115           : 1;
5375     };
5376 
5377   struct
5378     {
5379     unsigned K18                : 1;
5380     unsigned K19                : 1;
5381     unsigned K110               : 1;
5382     unsigned K111               : 1;
5383     unsigned K112               : 1;
5384     unsigned K113               : 1;
5385     unsigned K114               : 1;
5386     unsigned K115               : 1;
5387     };
5388   } __PID1K1Hbits_t;
5389 
5390 extern __at(0x0591) volatile __PID1K1Hbits_t PID1K1Hbits;
5391 
5392 #define _PID1K18                0x01
5393 #define _K18                    0x01
5394 #define _PID1K19                0x02
5395 #define _K19                    0x02
5396 #define _PID1K110               0x04
5397 #define _K110                   0x04
5398 #define _PID1K111               0x08
5399 #define _K111                   0x08
5400 #define _PID1K112               0x10
5401 #define _K112                   0x10
5402 #define _PID1K113               0x20
5403 #define _K113                   0x20
5404 #define _PID1K114               0x40
5405 #define _K114                   0x40
5406 #define _PID1K115               0x80
5407 #define _K115                   0x80
5408 
5409 //==============================================================================
5410 
5411 extern __at(0x0592) __sfr PID1K2;
5412 
5413 //==============================================================================
5414 //        PID1K2L Bits
5415 
5416 extern __at(0x0592) __sfr PID1K2L;
5417 
5418 typedef union
5419   {
5420   struct
5421     {
5422     unsigned PID1K20            : 1;
5423     unsigned PID1K21            : 1;
5424     unsigned PID1K22            : 1;
5425     unsigned PID1K23            : 1;
5426     unsigned PID1K24            : 1;
5427     unsigned PID1K25            : 1;
5428     unsigned PID1K26            : 1;
5429     unsigned PID1K27            : 1;
5430     };
5431 
5432   struct
5433     {
5434     unsigned K20                : 1;
5435     unsigned K21                : 1;
5436     unsigned K22                : 1;
5437     unsigned K23                : 1;
5438     unsigned K24                : 1;
5439     unsigned K25                : 1;
5440     unsigned K26                : 1;
5441     unsigned K27                : 1;
5442     };
5443   } __PID1K2Lbits_t;
5444 
5445 extern __at(0x0592) volatile __PID1K2Lbits_t PID1K2Lbits;
5446 
5447 #define _PID1K20                0x01
5448 #define _K20                    0x01
5449 #define _PID1K21                0x02
5450 #define _K21                    0x02
5451 #define _PID1K22                0x04
5452 #define _K22                    0x04
5453 #define _PID1K23                0x08
5454 #define _K23                    0x08
5455 #define _PID1K24                0x10
5456 #define _K24                    0x10
5457 #define _PID1K25                0x20
5458 #define _K25                    0x20
5459 #define _PID1K26                0x40
5460 #define _K26                    0x40
5461 #define _PID1K27                0x80
5462 #define _K27                    0x80
5463 
5464 //==============================================================================
5465 
5466 
5467 //==============================================================================
5468 //        PID1K2H Bits
5469 
5470 extern __at(0x0593) __sfr PID1K2H;
5471 
5472 typedef union
5473   {
5474   struct
5475     {
5476     unsigned PID1K28            : 1;
5477     unsigned PID1K29            : 1;
5478     unsigned PID1K210           : 1;
5479     unsigned PID1K211           : 1;
5480     unsigned PID1K212           : 1;
5481     unsigned PID1K213           : 1;
5482     unsigned PID1K214           : 1;
5483     unsigned PID1K215           : 1;
5484     };
5485 
5486   struct
5487     {
5488     unsigned K28                : 1;
5489     unsigned K29                : 1;
5490     unsigned K210               : 1;
5491     unsigned K211               : 1;
5492     unsigned K212               : 1;
5493     unsigned K213               : 1;
5494     unsigned K214               : 1;
5495     unsigned K215               : 1;
5496     };
5497   } __PID1K2Hbits_t;
5498 
5499 extern __at(0x0593) volatile __PID1K2Hbits_t PID1K2Hbits;
5500 
5501 #define _PID1K28                0x01
5502 #define _K28                    0x01
5503 #define _PID1K29                0x02
5504 #define _K29                    0x02
5505 #define _PID1K210               0x04
5506 #define _K210                   0x04
5507 #define _PID1K211               0x08
5508 #define _K211                   0x08
5509 #define _PID1K212               0x10
5510 #define _K212                   0x10
5511 #define _PID1K213               0x20
5512 #define _K213                   0x20
5513 #define _PID1K214               0x40
5514 #define _K214                   0x40
5515 #define _PID1K215               0x80
5516 #define _K215                   0x80
5517 
5518 //==============================================================================
5519 
5520 extern __at(0x0594) __sfr PID1K3;
5521 
5522 //==============================================================================
5523 //        PID1K3L Bits
5524 
5525 extern __at(0x0594) __sfr PID1K3L;
5526 
5527 typedef union
5528   {
5529   struct
5530     {
5531     unsigned PID1K30            : 1;
5532     unsigned PID1K31            : 1;
5533     unsigned PID1K32            : 1;
5534     unsigned PID1K33            : 1;
5535     unsigned PID1K34            : 1;
5536     unsigned PID1K35            : 1;
5537     unsigned PID1K36            : 1;
5538     unsigned PID1K37            : 1;
5539     };
5540 
5541   struct
5542     {
5543     unsigned K30                : 1;
5544     unsigned K31                : 1;
5545     unsigned K32                : 1;
5546     unsigned K33                : 1;
5547     unsigned K34                : 1;
5548     unsigned K35                : 1;
5549     unsigned K36                : 1;
5550     unsigned K37                : 1;
5551     };
5552   } __PID1K3Lbits_t;
5553 
5554 extern __at(0x0594) volatile __PID1K3Lbits_t PID1K3Lbits;
5555 
5556 #define _PID1K30                0x01
5557 #define _K30                    0x01
5558 #define _PID1K31                0x02
5559 #define _K31                    0x02
5560 #define _PID1K32                0x04
5561 #define _K32                    0x04
5562 #define _PID1K33                0x08
5563 #define _K33                    0x08
5564 #define _PID1K34                0x10
5565 #define _K34                    0x10
5566 #define _PID1K35                0x20
5567 #define _K35                    0x20
5568 #define _PID1K36                0x40
5569 #define _K36                    0x40
5570 #define _PID1K37                0x80
5571 #define _K37                    0x80
5572 
5573 //==============================================================================
5574 
5575 
5576 //==============================================================================
5577 //        PID1K3H Bits
5578 
5579 extern __at(0x0595) __sfr PID1K3H;
5580 
5581 typedef union
5582   {
5583   struct
5584     {
5585     unsigned PID1K38            : 1;
5586     unsigned PID1K39            : 1;
5587     unsigned PID1K310           : 1;
5588     unsigned PID1K311           : 1;
5589     unsigned PID1K312           : 1;
5590     unsigned PID1K313           : 1;
5591     unsigned PID1K314           : 1;
5592     unsigned PID1K315           : 1;
5593     };
5594 
5595   struct
5596     {
5597     unsigned K38                : 1;
5598     unsigned K39                : 1;
5599     unsigned K310               : 1;
5600     unsigned K311               : 1;
5601     unsigned K312               : 1;
5602     unsigned K313               : 1;
5603     unsigned K314               : 1;
5604     unsigned K315               : 1;
5605     };
5606   } __PID1K3Hbits_t;
5607 
5608 extern __at(0x0595) volatile __PID1K3Hbits_t PID1K3Hbits;
5609 
5610 #define _PID1K38                0x01
5611 #define _K38                    0x01
5612 #define _PID1K39                0x02
5613 #define _K39                    0x02
5614 #define _PID1K310               0x04
5615 #define _K310                   0x04
5616 #define _PID1K311               0x08
5617 #define _K311                   0x08
5618 #define _PID1K312               0x10
5619 #define _K312                   0x10
5620 #define _PID1K313               0x20
5621 #define _K313                   0x20
5622 #define _PID1K314               0x40
5623 #define _K314                   0x40
5624 #define _PID1K315               0x80
5625 #define _K315                   0x80
5626 
5627 //==============================================================================
5628 
5629 extern __at(0x0596) __sfr PID1OUT;
5630 
5631 //==============================================================================
5632 //        PID1OUTLL Bits
5633 
5634 extern __at(0x0596) __sfr PID1OUTLL;
5635 
5636 typedef union
5637   {
5638   struct
5639     {
5640     unsigned PID1OUT0           : 1;
5641     unsigned PID1OUT1           : 1;
5642     unsigned PID1OUT2           : 1;
5643     unsigned PID1OUT3           : 1;
5644     unsigned PID1OUT4           : 1;
5645     unsigned PID1OUT5           : 1;
5646     unsigned PID1OUT6           : 1;
5647     unsigned PID1OUT7           : 1;
5648     };
5649 
5650   struct
5651     {
5652     unsigned OUT0               : 1;
5653     unsigned OUT1               : 1;
5654     unsigned OUT2               : 1;
5655     unsigned OUT3               : 1;
5656     unsigned OUT4               : 1;
5657     unsigned OUT5               : 1;
5658     unsigned OUT6               : 1;
5659     unsigned OUT7               : 1;
5660     };
5661   } __PID1OUTLLbits_t;
5662 
5663 extern __at(0x0596) volatile __PID1OUTLLbits_t PID1OUTLLbits;
5664 
5665 #define _PID1OUT0               0x01
5666 #define _OUT0                   0x01
5667 #define _PID1OUT1               0x02
5668 #define _OUT1                   0x02
5669 #define _PID1OUT2               0x04
5670 #define _OUT2                   0x04
5671 #define _PID1OUT3               0x08
5672 #define _OUT3                   0x08
5673 #define _PID1OUT4               0x10
5674 #define _OUT4                   0x10
5675 #define _PID1OUT5               0x20
5676 #define _OUT5                   0x20
5677 #define _PID1OUT6               0x40
5678 #define _OUT6                   0x40
5679 #define _PID1OUT7               0x80
5680 #define _OUT7                   0x80
5681 
5682 //==============================================================================
5683 
5684 
5685 //==============================================================================
5686 //        PID1OUTLH Bits
5687 
5688 extern __at(0x0597) __sfr PID1OUTLH;
5689 
5690 typedef union
5691   {
5692   struct
5693     {
5694     unsigned PID1OUT8           : 1;
5695     unsigned PID1OUT9           : 1;
5696     unsigned PID1OUT10          : 1;
5697     unsigned PID1OUT11          : 1;
5698     unsigned PID1OUT12          : 1;
5699     unsigned PID1OUT13          : 1;
5700     unsigned PID1OUT14          : 1;
5701     unsigned PID1OUT15          : 1;
5702     };
5703 
5704   struct
5705     {
5706     unsigned OUT8               : 1;
5707     unsigned OUT9               : 1;
5708     unsigned OUT10              : 1;
5709     unsigned OUT11              : 1;
5710     unsigned OUT12              : 1;
5711     unsigned OUT13              : 1;
5712     unsigned OUT14              : 1;
5713     unsigned OUT15              : 1;
5714     };
5715   } __PID1OUTLHbits_t;
5716 
5717 extern __at(0x0597) volatile __PID1OUTLHbits_t PID1OUTLHbits;
5718 
5719 #define _PID1OUT8               0x01
5720 #define _OUT8                   0x01
5721 #define _PID1OUT9               0x02
5722 #define _OUT9                   0x02
5723 #define _PID1OUT10              0x04
5724 #define _OUT10                  0x04
5725 #define _PID1OUT11              0x08
5726 #define _OUT11                  0x08
5727 #define _PID1OUT12              0x10
5728 #define _OUT12                  0x10
5729 #define _PID1OUT13              0x20
5730 #define _OUT13                  0x20
5731 #define _PID1OUT14              0x40
5732 #define _OUT14                  0x40
5733 #define _PID1OUT15              0x80
5734 #define _OUT15                  0x80
5735 
5736 //==============================================================================
5737 
5738 
5739 //==============================================================================
5740 //        PID1OUTHL Bits
5741 
5742 extern __at(0x0598) __sfr PID1OUTHL;
5743 
5744 typedef union
5745   {
5746   struct
5747     {
5748     unsigned PID1OUT16          : 1;
5749     unsigned PID1OUT17          : 1;
5750     unsigned PID1OUT18          : 1;
5751     unsigned PID1OUT19          : 1;
5752     unsigned PID1OUT20          : 1;
5753     unsigned PID1OUT21          : 1;
5754     unsigned PID1OUT22          : 1;
5755     unsigned PID1OUT23          : 1;
5756     };
5757 
5758   struct
5759     {
5760     unsigned OUT16              : 1;
5761     unsigned OUT17              : 1;
5762     unsigned OUT18              : 1;
5763     unsigned OUT19              : 1;
5764     unsigned OUT20              : 1;
5765     unsigned OUT21              : 1;
5766     unsigned OUT22              : 1;
5767     unsigned OUT23              : 1;
5768     };
5769   } __PID1OUTHLbits_t;
5770 
5771 extern __at(0x0598) volatile __PID1OUTHLbits_t PID1OUTHLbits;
5772 
5773 #define _PID1OUT16              0x01
5774 #define _OUT16                  0x01
5775 #define _PID1OUT17              0x02
5776 #define _OUT17                  0x02
5777 #define _PID1OUT18              0x04
5778 #define _OUT18                  0x04
5779 #define _PID1OUT19              0x08
5780 #define _OUT19                  0x08
5781 #define _PID1OUT20              0x10
5782 #define _OUT20                  0x10
5783 #define _PID1OUT21              0x20
5784 #define _OUT21                  0x20
5785 #define _PID1OUT22              0x40
5786 #define _OUT22                  0x40
5787 #define _PID1OUT23              0x80
5788 #define _OUT23                  0x80
5789 
5790 //==============================================================================
5791 
5792 
5793 //==============================================================================
5794 //        PID1OUTHH Bits
5795 
5796 extern __at(0x0599) __sfr PID1OUTHH;
5797 
5798 typedef union
5799   {
5800   struct
5801     {
5802     unsigned PID1OUT24          : 1;
5803     unsigned PID1OUT25          : 1;
5804     unsigned PID1OUT26          : 1;
5805     unsigned PID1OUT27          : 1;
5806     unsigned PID1OUT28          : 1;
5807     unsigned PID1OUT29          : 1;
5808     unsigned PID1OUT30          : 1;
5809     unsigned PID1OUT31          : 1;
5810     };
5811 
5812   struct
5813     {
5814     unsigned OUT24              : 1;
5815     unsigned OUT25              : 1;
5816     unsigned OUT26              : 1;
5817     unsigned OUT27              : 1;
5818     unsigned OUT28              : 1;
5819     unsigned OUT29              : 1;
5820     unsigned OUT30              : 1;
5821     unsigned OUT31              : 1;
5822     };
5823   } __PID1OUTHHbits_t;
5824 
5825 extern __at(0x0599) volatile __PID1OUTHHbits_t PID1OUTHHbits;
5826 
5827 #define _PID1OUT24              0x01
5828 #define _OUT24                  0x01
5829 #define _PID1OUT25              0x02
5830 #define _OUT25                  0x02
5831 #define _PID1OUT26              0x04
5832 #define _OUT26                  0x04
5833 #define _PID1OUT27              0x08
5834 #define _OUT27                  0x08
5835 #define _PID1OUT28              0x10
5836 #define _OUT28                  0x10
5837 #define _PID1OUT29              0x20
5838 #define _OUT29                  0x20
5839 #define _PID1OUT30              0x40
5840 #define _OUT30                  0x40
5841 #define _PID1OUT31              0x80
5842 #define _OUT31                  0x80
5843 
5844 //==============================================================================
5845 
5846 
5847 //==============================================================================
5848 //        PID1OUTU Bits
5849 
5850 extern __at(0x059A) __sfr PID1OUTU;
5851 
5852 typedef union
5853   {
5854   struct
5855     {
5856     unsigned PID1OUT32          : 1;
5857     unsigned PID1OUT33          : 1;
5858     unsigned PID1OUT34          : 1;
5859     unsigned PID1OUT35          : 1;
5860     unsigned                    : 1;
5861     unsigned                    : 1;
5862     unsigned                    : 1;
5863     unsigned                    : 1;
5864     };
5865 
5866   struct
5867     {
5868     unsigned OUT32              : 1;
5869     unsigned OUT33              : 1;
5870     unsigned OUT34              : 1;
5871     unsigned OUT35              : 1;
5872     unsigned                    : 1;
5873     unsigned                    : 1;
5874     unsigned                    : 1;
5875     unsigned                    : 1;
5876     };
5877   } __PID1OUTUbits_t;
5878 
5879 extern __at(0x059A) volatile __PID1OUTUbits_t PID1OUTUbits;
5880 
5881 #define _PID1OUT32              0x01
5882 #define _OUT32                  0x01
5883 #define _PID1OUT33              0x02
5884 #define _OUT33                  0x02
5885 #define _PID1OUT34              0x04
5886 #define _OUT34                  0x04
5887 #define _PID1OUT35              0x08
5888 #define _OUT35                  0x08
5889 
5890 //==============================================================================
5891 
5892 extern __at(0x059B) __sfr PID1Z1;
5893 
5894 //==============================================================================
5895 //        PID1Z1L Bits
5896 
5897 extern __at(0x059B) __sfr PID1Z1L;
5898 
5899 typedef union
5900   {
5901   struct
5902     {
5903     unsigned PID1Z10            : 1;
5904     unsigned PID1Z11            : 1;
5905     unsigned PID1Z12            : 1;
5906     unsigned PID1Z13            : 1;
5907     unsigned PID1Z14            : 1;
5908     unsigned PID1Z15            : 1;
5909     unsigned PID1Z16            : 1;
5910     unsigned PID1Z17            : 1;
5911     };
5912 
5913   struct
5914     {
5915     unsigned Z10                : 1;
5916     unsigned Z11                : 1;
5917     unsigned Z12                : 1;
5918     unsigned Z13                : 1;
5919     unsigned Z14                : 1;
5920     unsigned Z15                : 1;
5921     unsigned Z16                : 1;
5922     unsigned Z17                : 1;
5923     };
5924   } __PID1Z1Lbits_t;
5925 
5926 extern __at(0x059B) volatile __PID1Z1Lbits_t PID1Z1Lbits;
5927 
5928 #define _PID1Z10                0x01
5929 #define _Z10                    0x01
5930 #define _PID1Z11                0x02
5931 #define _Z11                    0x02
5932 #define _PID1Z12                0x04
5933 #define _Z12                    0x04
5934 #define _PID1Z13                0x08
5935 #define _Z13                    0x08
5936 #define _PID1Z14                0x10
5937 #define _Z14                    0x10
5938 #define _PID1Z15                0x20
5939 #define _Z15                    0x20
5940 #define _PID1Z16                0x40
5941 #define _Z16                    0x40
5942 #define _PID1Z17                0x80
5943 #define _Z17                    0x80
5944 
5945 //==============================================================================
5946 
5947 
5948 //==============================================================================
5949 //        PID1Z1H Bits
5950 
5951 extern __at(0x059C) __sfr PID1Z1H;
5952 
5953 typedef union
5954   {
5955   struct
5956     {
5957     unsigned PID1Z18            : 1;
5958     unsigned PID1Z19            : 1;
5959     unsigned PID1Z110           : 1;
5960     unsigned PID1Z111           : 1;
5961     unsigned PID1Z112           : 1;
5962     unsigned PID1Z113           : 1;
5963     unsigned PID1Z114           : 1;
5964     unsigned PID1Z115           : 1;
5965     };
5966 
5967   struct
5968     {
5969     unsigned Z18                : 1;
5970     unsigned Z19                : 1;
5971     unsigned Z110               : 1;
5972     unsigned Z111               : 1;
5973     unsigned Z112               : 1;
5974     unsigned Z113               : 1;
5975     unsigned Z114               : 1;
5976     unsigned Z115               : 1;
5977     };
5978   } __PID1Z1Hbits_t;
5979 
5980 extern __at(0x059C) volatile __PID1Z1Hbits_t PID1Z1Hbits;
5981 
5982 #define _PID1Z18                0x01
5983 #define _Z18                    0x01
5984 #define _PID1Z19                0x02
5985 #define _Z19                    0x02
5986 #define _PID1Z110               0x04
5987 #define _Z110                   0x04
5988 #define _PID1Z111               0x08
5989 #define _Z111                   0x08
5990 #define _PID1Z112               0x10
5991 #define _Z112                   0x10
5992 #define _PID1Z113               0x20
5993 #define _Z113                   0x20
5994 #define _PID1Z114               0x40
5995 #define _Z114                   0x40
5996 #define _PID1Z115               0x80
5997 #define _Z115                   0x80
5998 
5999 //==============================================================================
6000 
6001 
6002 //==============================================================================
6003 //        PID1Z1U Bits
6004 
6005 extern __at(0x059D) __sfr PID1Z1U;
6006 
6007 typedef union
6008   {
6009   struct
6010     {
6011     unsigned PID1Z116           : 1;
6012     unsigned                    : 1;
6013     unsigned                    : 1;
6014     unsigned                    : 1;
6015     unsigned                    : 1;
6016     unsigned                    : 1;
6017     unsigned                    : 1;
6018     unsigned                    : 1;
6019     };
6020 
6021   struct
6022     {
6023     unsigned Z116               : 1;
6024     unsigned                    : 1;
6025     unsigned                    : 1;
6026     unsigned                    : 1;
6027     unsigned                    : 1;
6028     unsigned                    : 1;
6029     unsigned                    : 1;
6030     unsigned                    : 1;
6031     };
6032   } __PID1Z1Ubits_t;
6033 
6034 extern __at(0x059D) volatile __PID1Z1Ubits_t PID1Z1Ubits;
6035 
6036 #define _PID1Z116               0x01
6037 #define _Z116                   0x01
6038 
6039 //==============================================================================
6040 
6041 extern __at(0x060C) __sfr PID1Z2;
6042 
6043 //==============================================================================
6044 //        PID1Z2L Bits
6045 
6046 extern __at(0x060C) __sfr PID1Z2L;
6047 
6048 typedef union
6049   {
6050   struct
6051     {
6052     unsigned PID1Z20            : 1;
6053     unsigned PID1Z21            : 1;
6054     unsigned PID1Z22            : 1;
6055     unsigned PID1Z23            : 1;
6056     unsigned PID1Z24            : 1;
6057     unsigned PID1Z25            : 1;
6058     unsigned PID1Z26            : 1;
6059     unsigned PID1Z27            : 1;
6060     };
6061 
6062   struct
6063     {
6064     unsigned Z20                : 1;
6065     unsigned Z21                : 1;
6066     unsigned Z22                : 1;
6067     unsigned Z23                : 1;
6068     unsigned Z24                : 1;
6069     unsigned Z25                : 1;
6070     unsigned Z26                : 1;
6071     unsigned Z27                : 1;
6072     };
6073   } __PID1Z2Lbits_t;
6074 
6075 extern __at(0x060C) volatile __PID1Z2Lbits_t PID1Z2Lbits;
6076 
6077 #define _PID1Z20                0x01
6078 #define _Z20                    0x01
6079 #define _PID1Z21                0x02
6080 #define _Z21                    0x02
6081 #define _PID1Z22                0x04
6082 #define _Z22                    0x04
6083 #define _PID1Z23                0x08
6084 #define _Z23                    0x08
6085 #define _PID1Z24                0x10
6086 #define _Z24                    0x10
6087 #define _PID1Z25                0x20
6088 #define _Z25                    0x20
6089 #define _PID1Z26                0x40
6090 #define _Z26                    0x40
6091 #define _PID1Z27                0x80
6092 #define _Z27                    0x80
6093 
6094 //==============================================================================
6095 
6096 
6097 //==============================================================================
6098 //        PID1Z2H Bits
6099 
6100 extern __at(0x060D) __sfr PID1Z2H;
6101 
6102 typedef union
6103   {
6104   struct
6105     {
6106     unsigned PID1Z28            : 1;
6107     unsigned PID1Z29            : 1;
6108     unsigned PID1Z210           : 1;
6109     unsigned PID1Z211           : 1;
6110     unsigned PID1Z212           : 1;
6111     unsigned PID1Z213           : 1;
6112     unsigned PID1Z214           : 1;
6113     unsigned PID1Z215           : 1;
6114     };
6115 
6116   struct
6117     {
6118     unsigned Z28                : 1;
6119     unsigned Z29                : 1;
6120     unsigned Z210               : 1;
6121     unsigned Z211               : 1;
6122     unsigned Z212               : 1;
6123     unsigned Z213               : 1;
6124     unsigned Z214               : 1;
6125     unsigned Z215               : 1;
6126     };
6127   } __PID1Z2Hbits_t;
6128 
6129 extern __at(0x060D) volatile __PID1Z2Hbits_t PID1Z2Hbits;
6130 
6131 #define _PID1Z28                0x01
6132 #define _Z28                    0x01
6133 #define _PID1Z29                0x02
6134 #define _Z29                    0x02
6135 #define _PID1Z210               0x04
6136 #define _Z210                   0x04
6137 #define _PID1Z211               0x08
6138 #define _Z211                   0x08
6139 #define _PID1Z212               0x10
6140 #define _Z212                   0x10
6141 #define _PID1Z213               0x20
6142 #define _Z213                   0x20
6143 #define _PID1Z214               0x40
6144 #define _Z214                   0x40
6145 #define _PID1Z215               0x80
6146 #define _Z215                   0x80
6147 
6148 //==============================================================================
6149 
6150 
6151 //==============================================================================
6152 //        PID1Z2U Bits
6153 
6154 extern __at(0x060E) __sfr PID1Z2U;
6155 
6156 typedef union
6157   {
6158   struct
6159     {
6160     unsigned PID1Z216           : 1;
6161     unsigned                    : 1;
6162     unsigned                    : 1;
6163     unsigned                    : 1;
6164     unsigned                    : 1;
6165     unsigned                    : 1;
6166     unsigned                    : 1;
6167     unsigned                    : 1;
6168     };
6169 
6170   struct
6171     {
6172     unsigned Z216               : 1;
6173     unsigned                    : 1;
6174     unsigned                    : 1;
6175     unsigned                    : 1;
6176     unsigned                    : 1;
6177     unsigned                    : 1;
6178     unsigned                    : 1;
6179     unsigned                    : 1;
6180     };
6181   } __PID1Z2Ubits_t;
6182 
6183 extern __at(0x060E) volatile __PID1Z2Ubits_t PID1Z2Ubits;
6184 
6185 #define _PID1Z216               0x01
6186 #define _Z216                   0x01
6187 
6188 //==============================================================================
6189 
6190 extern __at(0x060F) __sfr PID1ACC;
6191 
6192 //==============================================================================
6193 //        PID1ACCLL Bits
6194 
6195 extern __at(0x060F) __sfr PID1ACCLL;
6196 
6197 typedef union
6198   {
6199   struct
6200     {
6201     unsigned PID1ACC0           : 1;
6202     unsigned PID1ACC1           : 1;
6203     unsigned PID1ACC2           : 1;
6204     unsigned PID1ACC3           : 1;
6205     unsigned PID1ACC4           : 1;
6206     unsigned PID1ACC5           : 1;
6207     unsigned PID1ACC6           : 1;
6208     unsigned PID1ACC7           : 1;
6209     };
6210 
6211   struct
6212     {
6213     unsigned ACC0               : 1;
6214     unsigned ACC1               : 1;
6215     unsigned ACC2               : 1;
6216     unsigned ACC3               : 1;
6217     unsigned ACC4               : 1;
6218     unsigned ACC5               : 1;
6219     unsigned ACC6               : 1;
6220     unsigned ACC7               : 1;
6221     };
6222   } __PID1ACCLLbits_t;
6223 
6224 extern __at(0x060F) volatile __PID1ACCLLbits_t PID1ACCLLbits;
6225 
6226 #define _PID1ACCLL_PID1ACC0     0x01
6227 #define _PID1ACCLL_ACC0         0x01
6228 #define _PID1ACCLL_PID1ACC1     0x02
6229 #define _PID1ACCLL_ACC1         0x02
6230 #define _PID1ACCLL_PID1ACC2     0x04
6231 #define _PID1ACCLL_ACC2         0x04
6232 #define _PID1ACCLL_PID1ACC3     0x08
6233 #define _PID1ACCLL_ACC3         0x08
6234 #define _PID1ACCLL_PID1ACC4     0x10
6235 #define _PID1ACCLL_ACC4         0x10
6236 #define _PID1ACCLL_PID1ACC5     0x20
6237 #define _PID1ACCLL_ACC5         0x20
6238 #define _PID1ACCLL_PID1ACC6     0x40
6239 #define _PID1ACCLL_ACC6         0x40
6240 #define _PID1ACCLL_PID1ACC7     0x80
6241 #define _PID1ACCLL_ACC7         0x80
6242 
6243 //==============================================================================
6244 
6245 
6246 //==============================================================================
6247 //        PID1ACCLH Bits
6248 
6249 extern __at(0x0610) __sfr PID1ACCLH;
6250 
6251 typedef union
6252   {
6253   struct
6254     {
6255     unsigned PID1ACC8           : 1;
6256     unsigned PID1ACC9           : 1;
6257     unsigned PID1ACC10          : 1;
6258     unsigned PID1ACC11          : 1;
6259     unsigned PID1ACC12          : 1;
6260     unsigned PID1ACC13          : 1;
6261     unsigned PID1ACC14          : 1;
6262     unsigned PID1ACC15          : 1;
6263     };
6264 
6265   struct
6266     {
6267     unsigned ACC8               : 1;
6268     unsigned ACC9               : 1;
6269     unsigned ACC10              : 1;
6270     unsigned ACC11              : 1;
6271     unsigned ACC12              : 1;
6272     unsigned ACC13              : 1;
6273     unsigned ACC14              : 1;
6274     unsigned ACC15              : 1;
6275     };
6276   } __PID1ACCLHbits_t;
6277 
6278 extern __at(0x0610) volatile __PID1ACCLHbits_t PID1ACCLHbits;
6279 
6280 #define _PID1ACCLH_PID1ACC8     0x01
6281 #define _PID1ACCLH_ACC8         0x01
6282 #define _PID1ACCLH_PID1ACC9     0x02
6283 #define _PID1ACCLH_ACC9         0x02
6284 #define _PID1ACCLH_PID1ACC10    0x04
6285 #define _PID1ACCLH_ACC10        0x04
6286 #define _PID1ACCLH_PID1ACC11    0x08
6287 #define _PID1ACCLH_ACC11        0x08
6288 #define _PID1ACCLH_PID1ACC12    0x10
6289 #define _PID1ACCLH_ACC12        0x10
6290 #define _PID1ACCLH_PID1ACC13    0x20
6291 #define _PID1ACCLH_ACC13        0x20
6292 #define _PID1ACCLH_PID1ACC14    0x40
6293 #define _PID1ACCLH_ACC14        0x40
6294 #define _PID1ACCLH_PID1ACC15    0x80
6295 #define _PID1ACCLH_ACC15        0x80
6296 
6297 //==============================================================================
6298 
6299 
6300 //==============================================================================
6301 //        PID1ACCHL Bits
6302 
6303 extern __at(0x0611) __sfr PID1ACCHL;
6304 
6305 typedef union
6306   {
6307   struct
6308     {
6309     unsigned PID1ACC16          : 1;
6310     unsigned PID1ACC17          : 1;
6311     unsigned PID1ACC18          : 1;
6312     unsigned PID1ACC19          : 1;
6313     unsigned PID1ACC20          : 1;
6314     unsigned PID1ACC21          : 1;
6315     unsigned PID1ACC22          : 1;
6316     unsigned PID1ACC23          : 1;
6317     };
6318 
6319   struct
6320     {
6321     unsigned ACC16              : 1;
6322     unsigned ACC17              : 1;
6323     unsigned ACC18              : 1;
6324     unsigned ACC19              : 1;
6325     unsigned ACC20              : 1;
6326     unsigned ACC21              : 1;
6327     unsigned ACC22              : 1;
6328     unsigned ACC23              : 1;
6329     };
6330   } __PID1ACCHLbits_t;
6331 
6332 extern __at(0x0611) volatile __PID1ACCHLbits_t PID1ACCHLbits;
6333 
6334 #define _PID1ACC16              0x01
6335 #define _ACC16                  0x01
6336 #define _PID1ACC17              0x02
6337 #define _ACC17                  0x02
6338 #define _PID1ACC18              0x04
6339 #define _ACC18                  0x04
6340 #define _PID1ACC19              0x08
6341 #define _ACC19                  0x08
6342 #define _PID1ACC20              0x10
6343 #define _ACC20                  0x10
6344 #define _PID1ACC21              0x20
6345 #define _ACC21                  0x20
6346 #define _PID1ACC22              0x40
6347 #define _ACC22                  0x40
6348 #define _PID1ACC23              0x80
6349 #define _ACC23                  0x80
6350 
6351 //==============================================================================
6352 
6353 
6354 //==============================================================================
6355 //        PID1ACCHH Bits
6356 
6357 extern __at(0x0612) __sfr PID1ACCHH;
6358 
6359 typedef union
6360   {
6361   struct
6362     {
6363     unsigned PID1ACC24          : 1;
6364     unsigned PID1ACC25          : 1;
6365     unsigned PID1ACC26          : 1;
6366     unsigned PID1ACC27          : 1;
6367     unsigned PID1ACC28          : 1;
6368     unsigned PID1ACC29          : 1;
6369     unsigned PID1ACC30          : 1;
6370     unsigned PID1ACC31          : 1;
6371     };
6372 
6373   struct
6374     {
6375     unsigned ACC24              : 1;
6376     unsigned ACC25              : 1;
6377     unsigned ACC26              : 1;
6378     unsigned ACC27              : 1;
6379     unsigned ACC28              : 1;
6380     unsigned ACC29              : 1;
6381     unsigned ACC30              : 1;
6382     unsigned ACC31              : 1;
6383     };
6384   } __PID1ACCHHbits_t;
6385 
6386 extern __at(0x0612) volatile __PID1ACCHHbits_t PID1ACCHHbits;
6387 
6388 #define _PID1ACC24              0x01
6389 #define _ACC24                  0x01
6390 #define _PID1ACC25              0x02
6391 #define _ACC25                  0x02
6392 #define _PID1ACC26              0x04
6393 #define _ACC26                  0x04
6394 #define _PID1ACC27              0x08
6395 #define _ACC27                  0x08
6396 #define _PID1ACC28              0x10
6397 #define _ACC28                  0x10
6398 #define _PID1ACC29              0x20
6399 #define _ACC29                  0x20
6400 #define _PID1ACC30              0x40
6401 #define _ACC30                  0x40
6402 #define _PID1ACC31              0x80
6403 #define _ACC31                  0x80
6404 
6405 //==============================================================================
6406 
6407 
6408 //==============================================================================
6409 //        PID1ACCU Bits
6410 
6411 extern __at(0x0613) __sfr PID1ACCU;
6412 
6413 typedef union
6414   {
6415   struct
6416     {
6417     unsigned PID1ACC32          : 1;
6418     unsigned PID1ACC33          : 1;
6419     unsigned PID1ACC34          : 1;
6420     unsigned                    : 1;
6421     unsigned                    : 1;
6422     unsigned                    : 1;
6423     unsigned                    : 1;
6424     unsigned                    : 1;
6425     };
6426 
6427   struct
6428     {
6429     unsigned ACC32              : 1;
6430     unsigned ACC33              : 1;
6431     unsigned ACC34              : 1;
6432     unsigned                    : 1;
6433     unsigned                    : 1;
6434     unsigned                    : 1;
6435     unsigned                    : 1;
6436     unsigned                    : 1;
6437     };
6438   } __PID1ACCUbits_t;
6439 
6440 extern __at(0x0613) volatile __PID1ACCUbits_t PID1ACCUbits;
6441 
6442 #define _PID1ACC32              0x01
6443 #define _ACC32                  0x01
6444 #define _PID1ACC33              0x02
6445 #define _ACC33                  0x02
6446 #define _PID1ACC34              0x04
6447 #define _ACC34                  0x04
6448 
6449 //==============================================================================
6450 
6451 
6452 //==============================================================================
6453 //        PID1CON Bits
6454 
6455 extern __at(0x0614) __sfr PID1CON;
6456 
6457 typedef union
6458   {
6459   struct
6460     {
6461     unsigned MODE0              : 1;
6462     unsigned MODE1              : 1;
6463     unsigned MODE2              : 1;
6464     unsigned                    : 1;
6465     unsigned                    : 1;
6466     unsigned                    : 1;
6467     unsigned PID1BUSY           : 1;
6468     unsigned PID1EN             : 1;
6469     };
6470 
6471   struct
6472     {
6473     unsigned PID1MODE0          : 1;
6474     unsigned PID1MODE1          : 1;
6475     unsigned PID1MODE2          : 1;
6476     unsigned                    : 1;
6477     unsigned                    : 1;
6478     unsigned                    : 1;
6479     unsigned BUSY               : 1;
6480     unsigned EN                 : 1;
6481     };
6482 
6483   struct
6484     {
6485     unsigned PID1MODE           : 3;
6486     unsigned                    : 5;
6487     };
6488 
6489   struct
6490     {
6491     unsigned MODE               : 3;
6492     unsigned                    : 5;
6493     };
6494   } __PID1CONbits_t;
6495 
6496 extern __at(0x0614) volatile __PID1CONbits_t PID1CONbits;
6497 
6498 #define _PID1CON_MODE0          0x01
6499 #define _PID1CON_PID1MODE0      0x01
6500 #define _PID1CON_MODE1          0x02
6501 #define _PID1CON_PID1MODE1      0x02
6502 #define _PID1CON_MODE2          0x04
6503 #define _PID1CON_PID1MODE2      0x04
6504 #define _PID1CON_PID1BUSY       0x40
6505 #define _PID1CON_BUSY           0x40
6506 #define _PID1CON_PID1EN         0x80
6507 #define _PID1CON_EN             0x80
6508 
6509 //==============================================================================
6510 
6511 
6512 //==============================================================================
6513 //        PWM3DCL Bits
6514 
6515 extern __at(0x0617) __sfr PWM3DCL;
6516 
6517 typedef union
6518   {
6519   struct
6520     {
6521     unsigned                    : 1;
6522     unsigned                    : 1;
6523     unsigned                    : 1;
6524     unsigned                    : 1;
6525     unsigned                    : 1;
6526     unsigned                    : 1;
6527     unsigned DC0                : 1;
6528     unsigned DC1                : 1;
6529     };
6530 
6531   struct
6532     {
6533     unsigned                    : 1;
6534     unsigned                    : 1;
6535     unsigned                    : 1;
6536     unsigned                    : 1;
6537     unsigned                    : 1;
6538     unsigned                    : 1;
6539     unsigned PWM3DC0            : 1;
6540     unsigned PWM3DC1            : 1;
6541     };
6542 
6543   struct
6544     {
6545     unsigned                    : 1;
6546     unsigned                    : 1;
6547     unsigned                    : 1;
6548     unsigned                    : 1;
6549     unsigned                    : 1;
6550     unsigned                    : 1;
6551     unsigned PWMPW0             : 1;
6552     unsigned PWMPW1             : 1;
6553     };
6554 
6555   struct
6556     {
6557     unsigned                    : 6;
6558     unsigned PWMPW              : 2;
6559     };
6560 
6561   struct
6562     {
6563     unsigned                    : 6;
6564     unsigned DC                 : 2;
6565     };
6566 
6567   struct
6568     {
6569     unsigned                    : 6;
6570     unsigned PWM3DC             : 2;
6571     };
6572   } __PWM3DCLbits_t;
6573 
6574 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits;
6575 
6576 #define _DC0                    0x40
6577 #define _PWM3DC0                0x40
6578 #define _PWMPW0                 0x40
6579 #define _DC1                    0x80
6580 #define _PWM3DC1                0x80
6581 #define _PWMPW1                 0x80
6582 
6583 //==============================================================================
6584 
6585 
6586 //==============================================================================
6587 //        PWM3DCH Bits
6588 
6589 extern __at(0x0618) __sfr PWM3DCH;
6590 
6591 typedef union
6592   {
6593   struct
6594     {
6595     unsigned DC2                : 1;
6596     unsigned DC3                : 1;
6597     unsigned DC4                : 1;
6598     unsigned DC5                : 1;
6599     unsigned DC6                : 1;
6600     unsigned DC7                : 1;
6601     unsigned DC8                : 1;
6602     unsigned DC9                : 1;
6603     };
6604 
6605   struct
6606     {
6607     unsigned PWM3DC2            : 1;
6608     unsigned PWM3DC3            : 1;
6609     unsigned PWM3DC4            : 1;
6610     unsigned PWM3DC5            : 1;
6611     unsigned PWM3DC6            : 1;
6612     unsigned PWM3DC7            : 1;
6613     unsigned PWM3DC8            : 1;
6614     unsigned PWM3DC9            : 1;
6615     };
6616 
6617   struct
6618     {
6619     unsigned PWMPW2             : 1;
6620     unsigned PWMPW3             : 1;
6621     unsigned PWMPW4             : 1;
6622     unsigned PWMPW5             : 1;
6623     unsigned PWMPW6             : 1;
6624     unsigned PWMPW7             : 1;
6625     unsigned PWMPW8             : 1;
6626     unsigned PWMPW9             : 1;
6627     };
6628   } __PWM3DCHbits_t;
6629 
6630 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits;
6631 
6632 #define _DC2                    0x01
6633 #define _PWM3DC2                0x01
6634 #define _PWMPW2                 0x01
6635 #define _DC3                    0x02
6636 #define _PWM3DC3                0x02
6637 #define _PWMPW3                 0x02
6638 #define _DC4                    0x04
6639 #define _PWM3DC4                0x04
6640 #define _PWMPW4                 0x04
6641 #define _DC5                    0x08
6642 #define _PWM3DC5                0x08
6643 #define _PWMPW5                 0x08
6644 #define _DC6                    0x10
6645 #define _PWM3DC6                0x10
6646 #define _PWMPW6                 0x10
6647 #define _DC7                    0x20
6648 #define _PWM3DC7                0x20
6649 #define _PWMPW7                 0x20
6650 #define _DC8                    0x40
6651 #define _PWM3DC8                0x40
6652 #define _PWMPW8                 0x40
6653 #define _DC9                    0x80
6654 #define _PWM3DC9                0x80
6655 #define _PWMPW9                 0x80
6656 
6657 //==============================================================================
6658 
6659 
6660 //==============================================================================
6661 //        PWM3CON Bits
6662 
6663 extern __at(0x0619) __sfr PWM3CON;
6664 
6665 typedef union
6666   {
6667   struct
6668     {
6669     unsigned                    : 1;
6670     unsigned                    : 1;
6671     unsigned                    : 1;
6672     unsigned                    : 1;
6673     unsigned POL                : 1;
6674     unsigned OUT                : 1;
6675     unsigned                    : 1;
6676     unsigned EN                 : 1;
6677     };
6678 
6679   struct
6680     {
6681     unsigned                    : 1;
6682     unsigned                    : 1;
6683     unsigned                    : 1;
6684     unsigned                    : 1;
6685     unsigned PWM3POL            : 1;
6686     unsigned PWM3OUT            : 1;
6687     unsigned                    : 1;
6688     unsigned PWM3EN             : 1;
6689     };
6690   } __PWM3CONbits_t;
6691 
6692 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits;
6693 
6694 #define _PWM3CON_POL            0x10
6695 #define _PWM3CON_PWM3POL        0x10
6696 #define _PWM3CON_OUT            0x20
6697 #define _PWM3CON_PWM3OUT        0x20
6698 #define _PWM3CON_EN             0x80
6699 #define _PWM3CON_PWM3EN         0x80
6700 
6701 //==============================================================================
6702 
6703 
6704 //==============================================================================
6705 //        PWM4DCL Bits
6706 
6707 extern __at(0x061A) __sfr PWM4DCL;
6708 
6709 typedef union
6710   {
6711   struct
6712     {
6713     unsigned                    : 1;
6714     unsigned                    : 1;
6715     unsigned                    : 1;
6716     unsigned                    : 1;
6717     unsigned                    : 1;
6718     unsigned                    : 1;
6719     unsigned DC0                : 1;
6720     unsigned DC1                : 1;
6721     };
6722 
6723   struct
6724     {
6725     unsigned                    : 1;
6726     unsigned                    : 1;
6727     unsigned                    : 1;
6728     unsigned                    : 1;
6729     unsigned                    : 1;
6730     unsigned                    : 1;
6731     unsigned PWM4DC0            : 1;
6732     unsigned PWM4DC1            : 1;
6733     };
6734 
6735   struct
6736     {
6737     unsigned                    : 1;
6738     unsigned                    : 1;
6739     unsigned                    : 1;
6740     unsigned                    : 1;
6741     unsigned                    : 1;
6742     unsigned                    : 1;
6743     unsigned PWMPW0             : 1;
6744     unsigned PWMPW1             : 1;
6745     };
6746 
6747   struct
6748     {
6749     unsigned                    : 6;
6750     unsigned PWM4DC             : 2;
6751     };
6752 
6753   struct
6754     {
6755     unsigned                    : 6;
6756     unsigned PWMPW              : 2;
6757     };
6758 
6759   struct
6760     {
6761     unsigned                    : 6;
6762     unsigned DC                 : 2;
6763     };
6764   } __PWM4DCLbits_t;
6765 
6766 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits;
6767 
6768 #define _PWM4DCL_DC0            0x40
6769 #define _PWM4DCL_PWM4DC0        0x40
6770 #define _PWM4DCL_PWMPW0         0x40
6771 #define _PWM4DCL_DC1            0x80
6772 #define _PWM4DCL_PWM4DC1        0x80
6773 #define _PWM4DCL_PWMPW1         0x80
6774 
6775 //==============================================================================
6776 
6777 
6778 //==============================================================================
6779 //        PWM4DCH Bits
6780 
6781 extern __at(0x061B) __sfr PWM4DCH;
6782 
6783 typedef union
6784   {
6785   struct
6786     {
6787     unsigned DC2                : 1;
6788     unsigned DC3                : 1;
6789     unsigned DC4                : 1;
6790     unsigned DC5                : 1;
6791     unsigned DC6                : 1;
6792     unsigned DC7                : 1;
6793     unsigned DC8                : 1;
6794     unsigned DC9                : 1;
6795     };
6796 
6797   struct
6798     {
6799     unsigned PWM4DC2            : 1;
6800     unsigned PWM4DC3            : 1;
6801     unsigned PWM4DC4            : 1;
6802     unsigned PWM4DC5            : 1;
6803     unsigned PWM4DC6            : 1;
6804     unsigned PWM4DC7            : 1;
6805     unsigned PWM4DC8            : 1;
6806     unsigned PWM4DC9            : 1;
6807     };
6808 
6809   struct
6810     {
6811     unsigned PWMPW2             : 1;
6812     unsigned PWMPW3             : 1;
6813     unsigned PWMPW4             : 1;
6814     unsigned PWMPW5             : 1;
6815     unsigned PWMPW6             : 1;
6816     unsigned PWMPW7             : 1;
6817     unsigned PWMPW8             : 1;
6818     unsigned PWMPW9             : 1;
6819     };
6820   } __PWM4DCHbits_t;
6821 
6822 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits;
6823 
6824 #define _PWM4DCH_DC2            0x01
6825 #define _PWM4DCH_PWM4DC2        0x01
6826 #define _PWM4DCH_PWMPW2         0x01
6827 #define _PWM4DCH_DC3            0x02
6828 #define _PWM4DCH_PWM4DC3        0x02
6829 #define _PWM4DCH_PWMPW3         0x02
6830 #define _PWM4DCH_DC4            0x04
6831 #define _PWM4DCH_PWM4DC4        0x04
6832 #define _PWM4DCH_PWMPW4         0x04
6833 #define _PWM4DCH_DC5            0x08
6834 #define _PWM4DCH_PWM4DC5        0x08
6835 #define _PWM4DCH_PWMPW5         0x08
6836 #define _PWM4DCH_DC6            0x10
6837 #define _PWM4DCH_PWM4DC6        0x10
6838 #define _PWM4DCH_PWMPW6         0x10
6839 #define _PWM4DCH_DC7            0x20
6840 #define _PWM4DCH_PWM4DC7        0x20
6841 #define _PWM4DCH_PWMPW7         0x20
6842 #define _PWM4DCH_DC8            0x40
6843 #define _PWM4DCH_PWM4DC8        0x40
6844 #define _PWM4DCH_PWMPW8         0x40
6845 #define _PWM4DCH_DC9            0x80
6846 #define _PWM4DCH_PWM4DC9        0x80
6847 #define _PWM4DCH_PWMPW9         0x80
6848 
6849 //==============================================================================
6850 
6851 
6852 //==============================================================================
6853 //        PWM4CON Bits
6854 
6855 extern __at(0x061C) __sfr PWM4CON;
6856 
6857 typedef union
6858   {
6859   struct
6860     {
6861     unsigned                    : 1;
6862     unsigned                    : 1;
6863     unsigned                    : 1;
6864     unsigned                    : 1;
6865     unsigned POL                : 1;
6866     unsigned OUT                : 1;
6867     unsigned                    : 1;
6868     unsigned EN                 : 1;
6869     };
6870 
6871   struct
6872     {
6873     unsigned                    : 1;
6874     unsigned                    : 1;
6875     unsigned                    : 1;
6876     unsigned                    : 1;
6877     unsigned PWM4POL            : 1;
6878     unsigned PWM4OUT            : 1;
6879     unsigned                    : 1;
6880     unsigned PWM4EN             : 1;
6881     };
6882   } __PWM4CONbits_t;
6883 
6884 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits;
6885 
6886 #define _PWM4CON_POL            0x10
6887 #define _PWM4CON_PWM4POL        0x10
6888 #define _PWM4CON_OUT            0x20
6889 #define _PWM4CON_PWM4OUT        0x20
6890 #define _PWM4CON_EN             0x80
6891 #define _PWM4CON_PWM4EN         0x80
6892 
6893 //==============================================================================
6894 
6895 
6896 //==============================================================================
6897 //        CWG1DBR Bits
6898 
6899 extern __at(0x0691) __sfr CWG1DBR;
6900 
6901 typedef union
6902   {
6903   struct
6904     {
6905     unsigned DBR0               : 1;
6906     unsigned DBR1               : 1;
6907     unsigned DBR2               : 1;
6908     unsigned DBR3               : 1;
6909     unsigned DBR4               : 1;
6910     unsigned DBR5               : 1;
6911     unsigned                    : 1;
6912     unsigned                    : 1;
6913     };
6914 
6915   struct
6916     {
6917     unsigned CWG1DBR0           : 1;
6918     unsigned CWG1DBR1           : 1;
6919     unsigned CWG1DBR2           : 1;
6920     unsigned CWG1DBR3           : 1;
6921     unsigned CWG1DBR4           : 1;
6922     unsigned CWG1DBR5           : 1;
6923     unsigned                    : 1;
6924     unsigned                    : 1;
6925     };
6926 
6927   struct
6928     {
6929     unsigned CWG1DBR            : 6;
6930     unsigned                    : 2;
6931     };
6932 
6933   struct
6934     {
6935     unsigned DBR                : 6;
6936     unsigned                    : 2;
6937     };
6938   } __CWG1DBRbits_t;
6939 
6940 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits;
6941 
6942 #define _DBR0                   0x01
6943 #define _CWG1DBR0               0x01
6944 #define _DBR1                   0x02
6945 #define _CWG1DBR1               0x02
6946 #define _DBR2                   0x04
6947 #define _CWG1DBR2               0x04
6948 #define _DBR3                   0x08
6949 #define _CWG1DBR3               0x08
6950 #define _DBR4                   0x10
6951 #define _CWG1DBR4               0x10
6952 #define _DBR5                   0x20
6953 #define _CWG1DBR5               0x20
6954 
6955 //==============================================================================
6956 
6957 
6958 //==============================================================================
6959 //        CWG1DBF Bits
6960 
6961 extern __at(0x0692) __sfr CWG1DBF;
6962 
6963 typedef union
6964   {
6965   struct
6966     {
6967     unsigned DBF0               : 1;
6968     unsigned DBF1               : 1;
6969     unsigned DBF2               : 1;
6970     unsigned DBF3               : 1;
6971     unsigned DBF4               : 1;
6972     unsigned DBF5               : 1;
6973     unsigned                    : 1;
6974     unsigned                    : 1;
6975     };
6976 
6977   struct
6978     {
6979     unsigned CWG1DBF0           : 1;
6980     unsigned CWG1DBF1           : 1;
6981     unsigned CWG1DBF2           : 1;
6982     unsigned CWG1DBF3           : 1;
6983     unsigned CWG1DBF4           : 1;
6984     unsigned CWG1DBF5           : 1;
6985     unsigned                    : 1;
6986     unsigned                    : 1;
6987     };
6988 
6989   struct
6990     {
6991     unsigned CWG1DBF            : 6;
6992     unsigned                    : 2;
6993     };
6994 
6995   struct
6996     {
6997     unsigned DBF                : 6;
6998     unsigned                    : 2;
6999     };
7000   } __CWG1DBFbits_t;
7001 
7002 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits;
7003 
7004 #define _DBF0                   0x01
7005 #define _CWG1DBF0               0x01
7006 #define _DBF1                   0x02
7007 #define _CWG1DBF1               0x02
7008 #define _DBF2                   0x04
7009 #define _CWG1DBF2               0x04
7010 #define _DBF3                   0x08
7011 #define _CWG1DBF3               0x08
7012 #define _DBF4                   0x10
7013 #define _CWG1DBF4               0x10
7014 #define _DBF5                   0x20
7015 #define _CWG1DBF5               0x20
7016 
7017 //==============================================================================
7018 
7019 
7020 //==============================================================================
7021 //        CWG1AS0 Bits
7022 
7023 extern __at(0x0693) __sfr CWG1AS0;
7024 
7025 typedef union
7026   {
7027   struct
7028     {
7029     unsigned                    : 1;
7030     unsigned                    : 1;
7031     unsigned LSAC0              : 1;
7032     unsigned LSAC1              : 1;
7033     unsigned LSBD0              : 1;
7034     unsigned LSBD1              : 1;
7035     unsigned REN                : 1;
7036     unsigned SHUTDOWN           : 1;
7037     };
7038 
7039   struct
7040     {
7041     unsigned                    : 1;
7042     unsigned                    : 1;
7043     unsigned CWG1LSAC0          : 1;
7044     unsigned CWG1LSAC1          : 1;
7045     unsigned CWG1LSBD0          : 1;
7046     unsigned CWG1LSBD1          : 1;
7047     unsigned CWG1REN            : 1;
7048     unsigned CWG1SHUTDOWN       : 1;
7049     };
7050 
7051   struct
7052     {
7053     unsigned                    : 2;
7054     unsigned CWG1LSAC           : 2;
7055     unsigned                    : 4;
7056     };
7057 
7058   struct
7059     {
7060     unsigned                    : 2;
7061     unsigned LSAC               : 2;
7062     unsigned                    : 4;
7063     };
7064 
7065   struct
7066     {
7067     unsigned                    : 4;
7068     unsigned CWG1LSBD           : 2;
7069     unsigned                    : 2;
7070     };
7071 
7072   struct
7073     {
7074     unsigned                    : 4;
7075     unsigned LSBD               : 2;
7076     unsigned                    : 2;
7077     };
7078   } __CWG1AS0bits_t;
7079 
7080 extern __at(0x0693) volatile __CWG1AS0bits_t CWG1AS0bits;
7081 
7082 #define _LSAC0                  0x04
7083 #define _CWG1LSAC0              0x04
7084 #define _LSAC1                  0x08
7085 #define _CWG1LSAC1              0x08
7086 #define _LSBD0                  0x10
7087 #define _CWG1LSBD0              0x10
7088 #define _LSBD1                  0x20
7089 #define _CWG1LSBD1              0x20
7090 #define _REN                    0x40
7091 #define _CWG1REN                0x40
7092 #define _SHUTDOWN               0x80
7093 #define _CWG1SHUTDOWN           0x80
7094 
7095 //==============================================================================
7096 
7097 
7098 //==============================================================================
7099 //        CWG1AS1 Bits
7100 
7101 extern __at(0x0694) __sfr CWG1AS1;
7102 
7103 typedef union
7104   {
7105   struct
7106     {
7107     unsigned INAS               : 1;
7108     unsigned C1AS               : 1;
7109     unsigned C2AS               : 1;
7110     unsigned                    : 1;
7111     unsigned TMR2AS             : 1;
7112     unsigned TMR4AS             : 1;
7113     unsigned TMR6AS             : 1;
7114     unsigned                    : 1;
7115     };
7116 
7117   struct
7118     {
7119     unsigned CWG1INAS           : 1;
7120     unsigned CWG1C1AS           : 1;
7121     unsigned CWG1C2AS           : 1;
7122     unsigned                    : 1;
7123     unsigned CWG1TMR2AS         : 1;
7124     unsigned CWG1TMR4AS         : 1;
7125     unsigned CWG1TMR6AS         : 1;
7126     unsigned                    : 1;
7127     };
7128   } __CWG1AS1bits_t;
7129 
7130 extern __at(0x0694) volatile __CWG1AS1bits_t CWG1AS1bits;
7131 
7132 #define _INAS                   0x01
7133 #define _CWG1INAS               0x01
7134 #define _C1AS                   0x02
7135 #define _CWG1C1AS               0x02
7136 #define _C2AS                   0x04
7137 #define _CWG1C2AS               0x04
7138 #define _TMR2AS                 0x10
7139 #define _CWG1TMR2AS             0x10
7140 #define _TMR4AS                 0x20
7141 #define _CWG1TMR4AS             0x20
7142 #define _TMR6AS                 0x40
7143 #define _CWG1TMR6AS             0x40
7144 
7145 //==============================================================================
7146 
7147 
7148 //==============================================================================
7149 //        CWG1OCON0 Bits
7150 
7151 extern __at(0x0695) __sfr CWG1OCON0;
7152 
7153 typedef union
7154   {
7155   struct
7156     {
7157     unsigned STRA               : 1;
7158     unsigned STRB               : 1;
7159     unsigned STRC               : 1;
7160     unsigned STRD               : 1;
7161     unsigned OVRA               : 1;
7162     unsigned OVRB               : 1;
7163     unsigned OVRC               : 1;
7164     unsigned OVRD               : 1;
7165     };
7166 
7167   struct
7168     {
7169     unsigned CWG1STRA           : 1;
7170     unsigned CWG1STRB           : 1;
7171     unsigned CWG1STRC           : 1;
7172     unsigned CWG1STRD           : 1;
7173     unsigned CWG1OVRA           : 1;
7174     unsigned CWG1OVRB           : 1;
7175     unsigned CWG1OVRC           : 1;
7176     unsigned CWG1OVRD           : 1;
7177     };
7178   } __CWG1OCON0bits_t;
7179 
7180 extern __at(0x0695) volatile __CWG1OCON0bits_t CWG1OCON0bits;
7181 
7182 #define _STRA                   0x01
7183 #define _CWG1STRA               0x01
7184 #define _STRB                   0x02
7185 #define _CWG1STRB               0x02
7186 #define _STRC                   0x04
7187 #define _CWG1STRC               0x04
7188 #define _STRD                   0x08
7189 #define _CWG1STRD               0x08
7190 #define _OVRA                   0x10
7191 #define _CWG1OVRA               0x10
7192 #define _OVRB                   0x20
7193 #define _CWG1OVRB               0x20
7194 #define _OVRC                   0x40
7195 #define _CWG1OVRC               0x40
7196 #define _OVRD                   0x80
7197 #define _CWG1OVRD               0x80
7198 
7199 //==============================================================================
7200 
7201 
7202 //==============================================================================
7203 //        CWG1CON0 Bits
7204 
7205 extern __at(0x0696) __sfr CWG1CON0;
7206 
7207 typedef union
7208   {
7209   struct
7210     {
7211     unsigned MODE0              : 1;
7212     unsigned MODE1              : 1;
7213     unsigned MODE2              : 1;
7214     unsigned                    : 1;
7215     unsigned                    : 1;
7216     unsigned                    : 1;
7217     unsigned LD                 : 1;
7218     unsigned EN                 : 1;
7219     };
7220 
7221   struct
7222     {
7223     unsigned CWG1MODE0          : 1;
7224     unsigned CWG1MODE1          : 1;
7225     unsigned CWG1MODE2          : 1;
7226     unsigned                    : 1;
7227     unsigned                    : 1;
7228     unsigned                    : 1;
7229     unsigned CWG1LD             : 1;
7230     unsigned G1EN               : 1;
7231     };
7232 
7233   struct
7234     {
7235     unsigned                    : 1;
7236     unsigned                    : 1;
7237     unsigned                    : 1;
7238     unsigned                    : 1;
7239     unsigned                    : 1;
7240     unsigned                    : 1;
7241     unsigned                    : 1;
7242     unsigned CWG1EN             : 1;
7243     };
7244 
7245   struct
7246     {
7247     unsigned MODE               : 3;
7248     unsigned                    : 5;
7249     };
7250 
7251   struct
7252     {
7253     unsigned CWG1MODE           : 3;
7254     unsigned                    : 5;
7255     };
7256   } __CWG1CON0bits_t;
7257 
7258 extern __at(0x0696) volatile __CWG1CON0bits_t CWG1CON0bits;
7259 
7260 #define _CWG1CON0_MODE0         0x01
7261 #define _CWG1CON0_CWG1MODE0     0x01
7262 #define _CWG1CON0_MODE1         0x02
7263 #define _CWG1CON0_CWG1MODE1     0x02
7264 #define _CWG1CON0_MODE2         0x04
7265 #define _CWG1CON0_CWG1MODE2     0x04
7266 #define _CWG1CON0_LD            0x40
7267 #define _CWG1CON0_CWG1LD        0x40
7268 #define _CWG1CON0_EN            0x80
7269 #define _CWG1CON0_G1EN          0x80
7270 #define _CWG1CON0_CWG1EN        0x80
7271 
7272 //==============================================================================
7273 
7274 
7275 //==============================================================================
7276 //        CWG1CON1 Bits
7277 
7278 extern __at(0x0697) __sfr CWG1CON1;
7279 
7280 typedef union
7281   {
7282   struct
7283     {
7284     unsigned POLA               : 1;
7285     unsigned POLB               : 1;
7286     unsigned POLC               : 1;
7287     unsigned POLD               : 1;
7288     unsigned                    : 1;
7289     unsigned IN                 : 1;
7290     unsigned                    : 1;
7291     unsigned                    : 1;
7292     };
7293 
7294   struct
7295     {
7296     unsigned CWG1POLA           : 1;
7297     unsigned CWG1POLB           : 1;
7298     unsigned CWG1POLC           : 1;
7299     unsigned CWG1POLD           : 1;
7300     unsigned                    : 1;
7301     unsigned CWG1IN             : 1;
7302     unsigned                    : 1;
7303     unsigned                    : 1;
7304     };
7305   } __CWG1CON1bits_t;
7306 
7307 extern __at(0x0697) volatile __CWG1CON1bits_t CWG1CON1bits;
7308 
7309 #define _POLA                   0x01
7310 #define _CWG1POLA               0x01
7311 #define _POLB                   0x02
7312 #define _CWG1POLB               0x02
7313 #define _POLC                   0x04
7314 #define _CWG1POLC               0x04
7315 #define _POLD                   0x08
7316 #define _CWG1POLD               0x08
7317 #define _IN                     0x20
7318 #define _CWG1IN                 0x20
7319 
7320 //==============================================================================
7321 
7322 
7323 //==============================================================================
7324 //        CWG1CLKCON Bits
7325 
7326 extern __at(0x0699) __sfr CWG1CLKCON;
7327 
7328 typedef union
7329   {
7330   struct
7331     {
7332     unsigned CS                 : 1;
7333     unsigned                    : 1;
7334     unsigned                    : 1;
7335     unsigned                    : 1;
7336     unsigned                    : 1;
7337     unsigned                    : 1;
7338     unsigned                    : 1;
7339     unsigned                    : 1;
7340     };
7341 
7342   struct
7343     {
7344     unsigned CWG1CS             : 1;
7345     unsigned                    : 1;
7346     unsigned                    : 1;
7347     unsigned                    : 1;
7348     unsigned                    : 1;
7349     unsigned                    : 1;
7350     unsigned                    : 1;
7351     unsigned                    : 1;
7352     };
7353   } __CWG1CLKCONbits_t;
7354 
7355 extern __at(0x0699) volatile __CWG1CLKCONbits_t CWG1CLKCONbits;
7356 
7357 #define _CWG1CLKCON_CS          0x01
7358 #define _CWG1CLKCON_CWG1CS      0x01
7359 
7360 //==============================================================================
7361 
7362 
7363 //==============================================================================
7364 //        CWG1ISM Bits
7365 
7366 extern __at(0x069A) __sfr CWG1ISM;
7367 
7368 typedef union
7369   {
7370   struct
7371     {
7372     unsigned IS0                : 1;
7373     unsigned IS1                : 1;
7374     unsigned IS2                : 1;
7375     unsigned IS3                : 1;
7376     unsigned                    : 1;
7377     unsigned                    : 1;
7378     unsigned                    : 1;
7379     unsigned                    : 1;
7380     };
7381 
7382   struct
7383     {
7384     unsigned CWG1IS0            : 1;
7385     unsigned CWG1IS1            : 1;
7386     unsigned CWG1IS2            : 1;
7387     unsigned CWG1IS3            : 1;
7388     unsigned                    : 1;
7389     unsigned                    : 1;
7390     unsigned                    : 1;
7391     unsigned                    : 1;
7392     };
7393 
7394   struct
7395     {
7396     unsigned IS                 : 4;
7397     unsigned                    : 4;
7398     };
7399 
7400   struct
7401     {
7402     unsigned CWG1IS             : 4;
7403     unsigned                    : 4;
7404     };
7405   } __CWG1ISMbits_t;
7406 
7407 extern __at(0x069A) volatile __CWG1ISMbits_t CWG1ISMbits;
7408 
7409 #define _IS0                    0x01
7410 #define _CWG1IS0                0x01
7411 #define _IS1                    0x02
7412 #define _CWG1IS1                0x02
7413 #define _IS2                    0x04
7414 #define _CWG1IS2                0x04
7415 #define _IS3                    0x08
7416 #define _CWG1IS3                0x08
7417 
7418 //==============================================================================
7419 
7420 
7421 //==============================================================================
7422 //        WDTCON0 Bits
7423 
7424 extern __at(0x0711) __sfr WDTCON0;
7425 
7426 typedef union
7427   {
7428   struct
7429     {
7430     unsigned SEN                : 1;
7431     unsigned WDTPS0             : 1;
7432     unsigned WDTPS1             : 1;
7433     unsigned WDTPS2             : 1;
7434     unsigned WDTPS3             : 1;
7435     unsigned WDTPS4             : 1;
7436     unsigned                    : 1;
7437     unsigned                    : 1;
7438     };
7439 
7440   struct
7441     {
7442     unsigned SWDTEN             : 1;
7443     unsigned                    : 1;
7444     unsigned                    : 1;
7445     unsigned                    : 1;
7446     unsigned                    : 1;
7447     unsigned                    : 1;
7448     unsigned                    : 1;
7449     unsigned                    : 1;
7450     };
7451 
7452   struct
7453     {
7454     unsigned WDTSEN             : 1;
7455     unsigned                    : 1;
7456     unsigned                    : 1;
7457     unsigned                    : 1;
7458     unsigned                    : 1;
7459     unsigned                    : 1;
7460     unsigned                    : 1;
7461     unsigned                    : 1;
7462     };
7463 
7464   struct
7465     {
7466     unsigned                    : 1;
7467     unsigned WDTPS              : 5;
7468     unsigned                    : 2;
7469     };
7470   } __WDTCON0bits_t;
7471 
7472 extern __at(0x0711) volatile __WDTCON0bits_t WDTCON0bits;
7473 
7474 #define _WDTCON0_SEN            0x01
7475 #define _WDTCON0_SWDTEN         0x01
7476 #define _WDTCON0_WDTSEN         0x01
7477 #define _WDTCON0_WDTPS0         0x02
7478 #define _WDTCON0_WDTPS1         0x04
7479 #define _WDTCON0_WDTPS2         0x08
7480 #define _WDTCON0_WDTPS3         0x10
7481 #define _WDTCON0_WDTPS4         0x20
7482 
7483 //==============================================================================
7484 
7485 
7486 //==============================================================================
7487 //        WDTCON1 Bits
7488 
7489 extern __at(0x0712) __sfr WDTCON1;
7490 
7491 typedef union
7492   {
7493   struct
7494     {
7495     unsigned WINDOW0            : 1;
7496     unsigned WINDOW1            : 1;
7497     unsigned WINDOW2            : 1;
7498     unsigned                    : 1;
7499     unsigned WDTCS0             : 1;
7500     unsigned WDTCS1             : 1;
7501     unsigned WDTCS2             : 1;
7502     unsigned                    : 1;
7503     };
7504 
7505   struct
7506     {
7507     unsigned WDTWINDOW0         : 1;
7508     unsigned WDTWINDOW1         : 1;
7509     unsigned WDTWINDOW2         : 1;
7510     unsigned                    : 1;
7511     unsigned                    : 1;
7512     unsigned                    : 1;
7513     unsigned                    : 1;
7514     unsigned                    : 1;
7515     };
7516 
7517   struct
7518     {
7519     unsigned WINDOW             : 3;
7520     unsigned                    : 5;
7521     };
7522 
7523   struct
7524     {
7525     unsigned WDTWINDOW          : 3;
7526     unsigned                    : 5;
7527     };
7528 
7529   struct
7530     {
7531     unsigned                    : 4;
7532     unsigned WDTCS              : 3;
7533     unsigned                    : 1;
7534     };
7535   } __WDTCON1bits_t;
7536 
7537 extern __at(0x0712) volatile __WDTCON1bits_t WDTCON1bits;
7538 
7539 #define _WINDOW0                0x01
7540 #define _WDTWINDOW0             0x01
7541 #define _WINDOW1                0x02
7542 #define _WDTWINDOW1             0x02
7543 #define _WINDOW2                0x04
7544 #define _WDTWINDOW2             0x04
7545 #define _WDTCS0                 0x10
7546 #define _WDTCS1                 0x20
7547 #define _WDTCS2                 0x40
7548 
7549 //==============================================================================
7550 
7551 
7552 //==============================================================================
7553 //        WDTPSL Bits
7554 
7555 extern __at(0x0713) __sfr WDTPSL;
7556 
7557 typedef union
7558   {
7559   struct
7560     {
7561     unsigned PSCNT0             : 1;
7562     unsigned PSCNT1             : 1;
7563     unsigned PSCNT2             : 1;
7564     unsigned PSCNT3             : 1;
7565     unsigned PSCNT4             : 1;
7566     unsigned PSCNT5             : 1;
7567     unsigned PSCNT6             : 1;
7568     unsigned PSCNT7             : 1;
7569     };
7570 
7571   struct
7572     {
7573     unsigned WDTPSCNT0          : 1;
7574     unsigned WDTPSCNT1          : 1;
7575     unsigned WDTPSCNT2          : 1;
7576     unsigned WDTPSCNT3          : 1;
7577     unsigned WDTPSCNT4          : 1;
7578     unsigned WDTPSCNT5          : 1;
7579     unsigned WDTPSCNT6          : 1;
7580     unsigned WDTPSCNT7          : 1;
7581     };
7582   } __WDTPSLbits_t;
7583 
7584 extern __at(0x0713) volatile __WDTPSLbits_t WDTPSLbits;
7585 
7586 #define _PSCNT0                 0x01
7587 #define _WDTPSCNT0              0x01
7588 #define _PSCNT1                 0x02
7589 #define _WDTPSCNT1              0x02
7590 #define _PSCNT2                 0x04
7591 #define _WDTPSCNT2              0x04
7592 #define _PSCNT3                 0x08
7593 #define _WDTPSCNT3              0x08
7594 #define _PSCNT4                 0x10
7595 #define _WDTPSCNT4              0x10
7596 #define _PSCNT5                 0x20
7597 #define _WDTPSCNT5              0x20
7598 #define _PSCNT6                 0x40
7599 #define _WDTPSCNT6              0x40
7600 #define _PSCNT7                 0x80
7601 #define _WDTPSCNT7              0x80
7602 
7603 //==============================================================================
7604 
7605 
7606 //==============================================================================
7607 //        WDTPSH Bits
7608 
7609 extern __at(0x0714) __sfr WDTPSH;
7610 
7611 typedef union
7612   {
7613   struct
7614     {
7615     unsigned PSCNT8             : 1;
7616     unsigned PSCNT9             : 1;
7617     unsigned PSCNT10            : 1;
7618     unsigned PSCNT11            : 1;
7619     unsigned PSCNT12            : 1;
7620     unsigned PSCNT13            : 1;
7621     unsigned PSCNT14            : 1;
7622     unsigned PSCNT15            : 1;
7623     };
7624 
7625   struct
7626     {
7627     unsigned WDTPSCNT8          : 1;
7628     unsigned WDTPSCNT9          : 1;
7629     unsigned WDTPSCNT10         : 1;
7630     unsigned WDTPSCNT11         : 1;
7631     unsigned WDTPSCNT12         : 1;
7632     unsigned WDTPSCNT13         : 1;
7633     unsigned WDTPSCNT14         : 1;
7634     unsigned WDTPSCNT15         : 1;
7635     };
7636   } __WDTPSHbits_t;
7637 
7638 extern __at(0x0714) volatile __WDTPSHbits_t WDTPSHbits;
7639 
7640 #define _PSCNT8                 0x01
7641 #define _WDTPSCNT8              0x01
7642 #define _PSCNT9                 0x02
7643 #define _WDTPSCNT9              0x02
7644 #define _PSCNT10                0x04
7645 #define _WDTPSCNT10             0x04
7646 #define _PSCNT11                0x08
7647 #define _WDTPSCNT11             0x08
7648 #define _PSCNT12                0x10
7649 #define _WDTPSCNT12             0x10
7650 #define _PSCNT13                0x20
7651 #define _WDTPSCNT13             0x20
7652 #define _PSCNT14                0x40
7653 #define _WDTPSCNT14             0x40
7654 #define _PSCNT15                0x80
7655 #define _WDTPSCNT15             0x80
7656 
7657 //==============================================================================
7658 
7659 
7660 //==============================================================================
7661 //        WDTTMR Bits
7662 
7663 extern __at(0x0715) __sfr WDTTMR;
7664 
7665 typedef union
7666   {
7667   struct
7668     {
7669     unsigned PSCNT16            : 1;
7670     unsigned PSCNT17            : 1;
7671     unsigned STATE              : 1;
7672     unsigned WDTTMR0            : 1;
7673     unsigned WDTTMR1            : 1;
7674     unsigned WDTTMR2            : 1;
7675     unsigned WDTTMR3            : 1;
7676     unsigned WDTTMR4            : 1;
7677     };
7678 
7679   struct
7680     {
7681     unsigned WDTPSCNT16         : 1;
7682     unsigned WDTPSCNT17         : 1;
7683     unsigned WDTSTATE           : 1;
7684     unsigned                    : 1;
7685     unsigned                    : 1;
7686     unsigned                    : 1;
7687     unsigned                    : 1;
7688     unsigned                    : 1;
7689     };
7690 
7691   struct
7692     {
7693     unsigned                    : 3;
7694     unsigned WDTTMR             : 5;
7695     };
7696   } __WDTTMRbits_t;
7697 
7698 extern __at(0x0715) volatile __WDTTMRbits_t WDTTMRbits;
7699 
7700 #define _PSCNT16                0x01
7701 #define _WDTPSCNT16             0x01
7702 #define _PSCNT17                0x02
7703 #define _WDTPSCNT17             0x02
7704 #define _STATE                  0x04
7705 #define _WDTSTATE               0x04
7706 #define _WDTTMR0                0x08
7707 #define _WDTTMR1                0x10
7708 #define _WDTTMR2                0x20
7709 #define _WDTTMR3                0x40
7710 #define _WDTTMR4                0x80
7711 
7712 //==============================================================================
7713 
7714 extern __at(0x0718) __sfr SCANLADR;
7715 
7716 //==============================================================================
7717 //        SCANLADRL Bits
7718 
7719 extern __at(0x0718) __sfr SCANLADRL;
7720 
7721 typedef union
7722   {
7723   struct
7724     {
7725     unsigned LDAR0              : 1;
7726     unsigned LDAR1              : 1;
7727     unsigned LADR2              : 1;
7728     unsigned LADR3              : 1;
7729     unsigned LADR4              : 1;
7730     unsigned LADR5              : 1;
7731     unsigned LADR6              : 1;
7732     unsigned LADR7              : 1;
7733     };
7734 
7735   struct
7736     {
7737     unsigned SCANLADR0          : 1;
7738     unsigned SCANLADR1          : 1;
7739     unsigned SCANLADR2          : 1;
7740     unsigned SCANLADR3          : 1;
7741     unsigned SCANLADR4          : 1;
7742     unsigned SCANLADR5          : 1;
7743     unsigned SCANLADR6          : 1;
7744     unsigned SCANLADR7          : 1;
7745     };
7746 
7747   struct
7748     {
7749     unsigned LDAR               : 2;
7750     unsigned                    : 6;
7751     };
7752   } __SCANLADRLbits_t;
7753 
7754 extern __at(0x0718) volatile __SCANLADRLbits_t SCANLADRLbits;
7755 
7756 #define _LDAR0                  0x01
7757 #define _SCANLADR0              0x01
7758 #define _LDAR1                  0x02
7759 #define _SCANLADR1              0x02
7760 #define _LADR2                  0x04
7761 #define _SCANLADR2              0x04
7762 #define _LADR3                  0x08
7763 #define _SCANLADR3              0x08
7764 #define _LADR4                  0x10
7765 #define _SCANLADR4              0x10
7766 #define _LADR5                  0x20
7767 #define _SCANLADR5              0x20
7768 #define _LADR6                  0x40
7769 #define _SCANLADR6              0x40
7770 #define _LADR7                  0x80
7771 #define _SCANLADR7              0x80
7772 
7773 //==============================================================================
7774 
7775 
7776 //==============================================================================
7777 //        SCANLADRH Bits
7778 
7779 extern __at(0x0719) __sfr SCANLADRH;
7780 
7781 typedef union
7782   {
7783   struct
7784     {
7785     unsigned LADR8              : 1;
7786     unsigned LADR9              : 1;
7787     unsigned LADR10             : 1;
7788     unsigned LADR11             : 1;
7789     unsigned LADR12             : 1;
7790     unsigned LADR13             : 1;
7791     unsigned LADR14             : 1;
7792     unsigned LADR15             : 1;
7793     };
7794 
7795   struct
7796     {
7797     unsigned SCANLADR8          : 1;
7798     unsigned SCANLADR9          : 1;
7799     unsigned SCANLADR10         : 1;
7800     unsigned SCANLADR11         : 1;
7801     unsigned SCANLADR12         : 1;
7802     unsigned SCANLADR13         : 1;
7803     unsigned SCANLADR14         : 1;
7804     unsigned SCANLADR15         : 1;
7805     };
7806   } __SCANLADRHbits_t;
7807 
7808 extern __at(0x0719) volatile __SCANLADRHbits_t SCANLADRHbits;
7809 
7810 #define _LADR8                  0x01
7811 #define _SCANLADR8              0x01
7812 #define _LADR9                  0x02
7813 #define _SCANLADR9              0x02
7814 #define _LADR10                 0x04
7815 #define _SCANLADR10             0x04
7816 #define _LADR11                 0x08
7817 #define _SCANLADR11             0x08
7818 #define _LADR12                 0x10
7819 #define _SCANLADR12             0x10
7820 #define _LADR13                 0x20
7821 #define _SCANLADR13             0x20
7822 #define _LADR14                 0x40
7823 #define _SCANLADR14             0x40
7824 #define _LADR15                 0x80
7825 #define _SCANLADR15             0x80
7826 
7827 //==============================================================================
7828 
7829 extern __at(0x071A) __sfr SCANHADR;
7830 
7831 //==============================================================================
7832 //        SCANHADRL Bits
7833 
7834 extern __at(0x071A) __sfr SCANHADRL;
7835 
7836 typedef union
7837   {
7838   struct
7839     {
7840     unsigned HADR0              : 1;
7841     unsigned HADR1              : 1;
7842     unsigned HARD2              : 1;
7843     unsigned HADR3              : 1;
7844     unsigned HADR4              : 1;
7845     unsigned HADR5              : 1;
7846     unsigned HADR6              : 1;
7847     unsigned HADR7              : 1;
7848     };
7849 
7850   struct
7851     {
7852     unsigned SCANHADR0          : 1;
7853     unsigned SCANHADR1          : 1;
7854     unsigned SCANHADR2          : 1;
7855     unsigned SCANHADR3          : 1;
7856     unsigned SCANHADR4          : 1;
7857     unsigned SCANHADR5          : 1;
7858     unsigned SCANHADR6          : 1;
7859     unsigned SCANHADR7          : 1;
7860     };
7861   } __SCANHADRLbits_t;
7862 
7863 extern __at(0x071A) volatile __SCANHADRLbits_t SCANHADRLbits;
7864 
7865 #define _HADR0                  0x01
7866 #define _SCANHADR0              0x01
7867 #define _HADR1                  0x02
7868 #define _SCANHADR1              0x02
7869 #define _HARD2                  0x04
7870 #define _SCANHADR2              0x04
7871 #define _HADR3                  0x08
7872 #define _SCANHADR3              0x08
7873 #define _HADR4                  0x10
7874 #define _SCANHADR4              0x10
7875 #define _HADR5                  0x20
7876 #define _SCANHADR5              0x20
7877 #define _HADR6                  0x40
7878 #define _SCANHADR6              0x40
7879 #define _HADR7                  0x80
7880 #define _SCANHADR7              0x80
7881 
7882 //==============================================================================
7883 
7884 
7885 //==============================================================================
7886 //        SCANHADRH Bits
7887 
7888 extern __at(0x071B) __sfr SCANHADRH;
7889 
7890 typedef union
7891   {
7892   struct
7893     {
7894     unsigned HADR8              : 1;
7895     unsigned HADR9              : 1;
7896     unsigned HADR10             : 1;
7897     unsigned HADR11             : 1;
7898     unsigned HADR12             : 1;
7899     unsigned HADR13             : 1;
7900     unsigned HADR14             : 1;
7901     unsigned HADR15             : 1;
7902     };
7903 
7904   struct
7905     {
7906     unsigned SCANHADR8          : 1;
7907     unsigned SCANHADR9          : 1;
7908     unsigned SCANHADR10         : 1;
7909     unsigned SCANHADR11         : 1;
7910     unsigned SCANHADR12         : 1;
7911     unsigned SCANHADR13         : 1;
7912     unsigned SCANHADR14         : 1;
7913     unsigned SCANHADR15         : 1;
7914     };
7915   } __SCANHADRHbits_t;
7916 
7917 extern __at(0x071B) volatile __SCANHADRHbits_t SCANHADRHbits;
7918 
7919 #define _HADR8                  0x01
7920 #define _SCANHADR8              0x01
7921 #define _HADR9                  0x02
7922 #define _SCANHADR9              0x02
7923 #define _HADR10                 0x04
7924 #define _SCANHADR10             0x04
7925 #define _HADR11                 0x08
7926 #define _SCANHADR11             0x08
7927 #define _HADR12                 0x10
7928 #define _SCANHADR12             0x10
7929 #define _HADR13                 0x20
7930 #define _SCANHADR13             0x20
7931 #define _HADR14                 0x40
7932 #define _SCANHADR14             0x40
7933 #define _HADR15                 0x80
7934 #define _SCANHADR15             0x80
7935 
7936 //==============================================================================
7937 
7938 
7939 //==============================================================================
7940 //        SCANCON0 Bits
7941 
7942 extern __at(0x071C) __sfr SCANCON0;
7943 
7944 typedef union
7945   {
7946   struct
7947     {
7948     unsigned MODE0              : 1;
7949     unsigned MODE1              : 1;
7950     unsigned                    : 1;
7951     unsigned INTM               : 1;
7952     unsigned INVALID            : 1;
7953     unsigned BUSY               : 1;
7954     unsigned SCANGO             : 1;
7955     unsigned EN                 : 1;
7956     };
7957 
7958   struct
7959     {
7960     unsigned SCANMODE0          : 1;
7961     unsigned SCANMODE1          : 1;
7962     unsigned                    : 1;
7963     unsigned SCANINTM           : 1;
7964     unsigned SCANINVALID        : 1;
7965     unsigned SCANBUSY           : 1;
7966     unsigned                    : 1;
7967     unsigned SCANEN             : 1;
7968     };
7969 
7970   struct
7971     {
7972     unsigned MODE               : 2;
7973     unsigned                    : 6;
7974     };
7975 
7976   struct
7977     {
7978     unsigned SCANMODE           : 2;
7979     unsigned                    : 6;
7980     };
7981   } __SCANCON0bits_t;
7982 
7983 extern __at(0x071C) volatile __SCANCON0bits_t SCANCON0bits;
7984 
7985 #define _SCANCON0_MODE0         0x01
7986 #define _SCANCON0_SCANMODE0     0x01
7987 #define _SCANCON0_MODE1         0x02
7988 #define _SCANCON0_SCANMODE1     0x02
7989 #define _SCANCON0_INTM          0x08
7990 #define _SCANCON0_SCANINTM      0x08
7991 #define _SCANCON0_INVALID       0x10
7992 #define _SCANCON0_SCANINVALID   0x10
7993 #define _SCANCON0_BUSY          0x20
7994 #define _SCANCON0_SCANBUSY      0x20
7995 #define _SCANCON0_SCANGO        0x40
7996 #define _SCANCON0_EN            0x80
7997 #define _SCANCON0_SCANEN        0x80
7998 
7999 //==============================================================================
8000 
8001 
8002 //==============================================================================
8003 //        SCANTRIG Bits
8004 
8005 extern __at(0x071D) __sfr SCANTRIG;
8006 
8007 typedef union
8008   {
8009   struct
8010     {
8011     unsigned TSEL0              : 1;
8012     unsigned TSEL1              : 1;
8013     unsigned TSEL2              : 1;
8014     unsigned TSEL3              : 1;
8015     unsigned                    : 1;
8016     unsigned                    : 1;
8017     unsigned                    : 1;
8018     unsigned                    : 1;
8019     };
8020 
8021   struct
8022     {
8023     unsigned SCANTSEL0          : 1;
8024     unsigned SCANTSEL1          : 1;
8025     unsigned SCANTSEL2          : 1;
8026     unsigned SCANTSEL3          : 1;
8027     unsigned                    : 1;
8028     unsigned                    : 1;
8029     unsigned                    : 1;
8030     unsigned                    : 1;
8031     };
8032 
8033   struct
8034     {
8035     unsigned SCANTSEL           : 4;
8036     unsigned                    : 4;
8037     };
8038 
8039   struct
8040     {
8041     unsigned TSEL               : 4;
8042     unsigned                    : 4;
8043     };
8044   } __SCANTRIGbits_t;
8045 
8046 extern __at(0x071D) volatile __SCANTRIGbits_t SCANTRIGbits;
8047 
8048 #define _TSEL0                  0x01
8049 #define _SCANTSEL0              0x01
8050 #define _TSEL1                  0x02
8051 #define _SCANTSEL1              0x02
8052 #define _TSEL2                  0x04
8053 #define _SCANTSEL2              0x04
8054 #define _TSEL3                  0x08
8055 #define _SCANTSEL3              0x08
8056 
8057 //==============================================================================
8058 
8059 extern __at(0x0791) __sfr CRCDAT;
8060 
8061 //==============================================================================
8062 //        CRCDATL Bits
8063 
8064 extern __at(0x0791) __sfr CRCDATL;
8065 
8066 typedef union
8067   {
8068   struct
8069     {
8070     unsigned DAT0               : 1;
8071     unsigned DAT1               : 1;
8072     unsigned DAT2               : 1;
8073     unsigned DAT3               : 1;
8074     unsigned DAT4               : 1;
8075     unsigned DAT5               : 1;
8076     unsigned DAT6               : 1;
8077     unsigned DAT7               : 1;
8078     };
8079 
8080   struct
8081     {
8082     unsigned CRCDAT0            : 1;
8083     unsigned CRCDAT1            : 1;
8084     unsigned CRCDAT2            : 1;
8085     unsigned CRCDAT3            : 1;
8086     unsigned CRCDAT4            : 1;
8087     unsigned CRCDAT5            : 1;
8088     unsigned CRCDAT6            : 1;
8089     unsigned CRDCDAT7           : 1;
8090     };
8091 
8092   struct
8093     {
8094     unsigned CRCDAT             : 7;
8095     unsigned                    : 1;
8096     };
8097   } __CRCDATLbits_t;
8098 
8099 extern __at(0x0791) volatile __CRCDATLbits_t CRCDATLbits;
8100 
8101 #define _DAT0                   0x01
8102 #define _CRCDAT0                0x01
8103 #define _DAT1                   0x02
8104 #define _CRCDAT1                0x02
8105 #define _DAT2                   0x04
8106 #define _CRCDAT2                0x04
8107 #define _DAT3                   0x08
8108 #define _CRCDAT3                0x08
8109 #define _DAT4                   0x10
8110 #define _CRCDAT4                0x10
8111 #define _DAT5                   0x20
8112 #define _CRCDAT5                0x20
8113 #define _DAT6                   0x40
8114 #define _CRCDAT6                0x40
8115 #define _DAT7                   0x80
8116 #define _CRDCDAT7               0x80
8117 
8118 //==============================================================================
8119 
8120 
8121 //==============================================================================
8122 //        CRCDATH Bits
8123 
8124 extern __at(0x0792) __sfr CRCDATH;
8125 
8126 typedef union
8127   {
8128   struct
8129     {
8130     unsigned DAT8               : 1;
8131     unsigned DAT9               : 1;
8132     unsigned DAT10              : 1;
8133     unsigned DAT11              : 1;
8134     unsigned DAT12              : 1;
8135     unsigned DAT13              : 1;
8136     unsigned DAT14              : 1;
8137     unsigned DAT15              : 1;
8138     };
8139 
8140   struct
8141     {
8142     unsigned CRCDAT8            : 1;
8143     unsigned CRCDAT9            : 1;
8144     unsigned CRCDAT10           : 1;
8145     unsigned CRCDAT11           : 1;
8146     unsigned CRCDAT12           : 1;
8147     unsigned CRCDAT13           : 1;
8148     unsigned CRCDAT14           : 1;
8149     unsigned CRCDAT15           : 1;
8150     };
8151   } __CRCDATHbits_t;
8152 
8153 extern __at(0x0792) volatile __CRCDATHbits_t CRCDATHbits;
8154 
8155 #define _DAT8                   0x01
8156 #define _CRCDAT8                0x01
8157 #define _DAT9                   0x02
8158 #define _CRCDAT9                0x02
8159 #define _DAT10                  0x04
8160 #define _CRCDAT10               0x04
8161 #define _DAT11                  0x08
8162 #define _CRCDAT11               0x08
8163 #define _DAT12                  0x10
8164 #define _CRCDAT12               0x10
8165 #define _DAT13                  0x20
8166 #define _CRCDAT13               0x20
8167 #define _DAT14                  0x40
8168 #define _CRCDAT14               0x40
8169 #define _DAT15                  0x80
8170 #define _CRCDAT15               0x80
8171 
8172 //==============================================================================
8173 
8174 extern __at(0x0793) __sfr CRCACC;
8175 
8176 //==============================================================================
8177 //        CRCACCL Bits
8178 
8179 extern __at(0x0793) __sfr CRCACCL;
8180 
8181 typedef union
8182   {
8183   struct
8184     {
8185     unsigned ACC0               : 1;
8186     unsigned ACC1               : 1;
8187     unsigned ACC2               : 1;
8188     unsigned ACC3               : 1;
8189     unsigned ACC4               : 1;
8190     unsigned ACC5               : 1;
8191     unsigned ACC6               : 1;
8192     unsigned ACC7               : 1;
8193     };
8194 
8195   struct
8196     {
8197     unsigned CRCACC0            : 1;
8198     unsigned CRCACC1            : 1;
8199     unsigned CRCACC2            : 1;
8200     unsigned CRCACC3            : 1;
8201     unsigned CRCACC4            : 1;
8202     unsigned CRCACC5            : 1;
8203     unsigned CRCACC6            : 1;
8204     unsigned CRCACC7            : 1;
8205     };
8206   } __CRCACCLbits_t;
8207 
8208 extern __at(0x0793) volatile __CRCACCLbits_t CRCACCLbits;
8209 
8210 #define _ACC0                   0x01
8211 #define _CRCACC0                0x01
8212 #define _ACC1                   0x02
8213 #define _CRCACC1                0x02
8214 #define _ACC2                   0x04
8215 #define _CRCACC2                0x04
8216 #define _ACC3                   0x08
8217 #define _CRCACC3                0x08
8218 #define _ACC4                   0x10
8219 #define _CRCACC4                0x10
8220 #define _ACC5                   0x20
8221 #define _CRCACC5                0x20
8222 #define _ACC6                   0x40
8223 #define _CRCACC6                0x40
8224 #define _ACC7                   0x80
8225 #define _CRCACC7                0x80
8226 
8227 //==============================================================================
8228 
8229 
8230 //==============================================================================
8231 //        CRCACCH Bits
8232 
8233 extern __at(0x0794) __sfr CRCACCH;
8234 
8235 typedef union
8236   {
8237   struct
8238     {
8239     unsigned ACC8               : 1;
8240     unsigned ACC9               : 1;
8241     unsigned ACC10              : 1;
8242     unsigned ACC11              : 1;
8243     unsigned ACC12              : 1;
8244     unsigned ACC13              : 1;
8245     unsigned ACC14              : 1;
8246     unsigned ACC15              : 1;
8247     };
8248 
8249   struct
8250     {
8251     unsigned CRCACC8            : 1;
8252     unsigned CRCACC9            : 1;
8253     unsigned CRCACC10           : 1;
8254     unsigned CRCACC11           : 1;
8255     unsigned CRCACC12           : 1;
8256     unsigned CRCACC13           : 1;
8257     unsigned CRCACC14           : 1;
8258     unsigned CRCACC15           : 1;
8259     };
8260   } __CRCACCHbits_t;
8261 
8262 extern __at(0x0794) volatile __CRCACCHbits_t CRCACCHbits;
8263 
8264 #define _ACC8                   0x01
8265 #define _CRCACC8                0x01
8266 #define _ACC9                   0x02
8267 #define _CRCACC9                0x02
8268 #define _ACC10                  0x04
8269 #define _CRCACC10               0x04
8270 #define _ACC11                  0x08
8271 #define _CRCACC11               0x08
8272 #define _ACC12                  0x10
8273 #define _CRCACC12               0x10
8274 #define _ACC13                  0x20
8275 #define _CRCACC13               0x20
8276 #define _ACC14                  0x40
8277 #define _CRCACC14               0x40
8278 #define _ACC15                  0x80
8279 #define _CRCACC15               0x80
8280 
8281 //==============================================================================
8282 
8283 extern __at(0x0795) __sfr CRCSHIFT;
8284 
8285 //==============================================================================
8286 //        CRCSHIFTL Bits
8287 
8288 extern __at(0x0795) __sfr CRCSHIFTL;
8289 
8290 typedef union
8291   {
8292   struct
8293     {
8294     unsigned SHIFT0             : 1;
8295     unsigned SHIFT1             : 1;
8296     unsigned SHIFT2             : 1;
8297     unsigned SHIFT3             : 1;
8298     unsigned SHIFT4             : 1;
8299     unsigned SHIFT5             : 1;
8300     unsigned SHIFT6             : 1;
8301     unsigned SHIFT7             : 1;
8302     };
8303 
8304   struct
8305     {
8306     unsigned CRCSHIFT0          : 1;
8307     unsigned CRCSHIFT1          : 1;
8308     unsigned CRCSHIFT2          : 1;
8309     unsigned CRCSHIFT3          : 1;
8310     unsigned CRCSHIFT4          : 1;
8311     unsigned CRCSHIFT5          : 1;
8312     unsigned CRCSHIFT6          : 1;
8313     unsigned CRCSHIFT7          : 1;
8314     };
8315   } __CRCSHIFTLbits_t;
8316 
8317 extern __at(0x0795) volatile __CRCSHIFTLbits_t CRCSHIFTLbits;
8318 
8319 #define _SHIFT0                 0x01
8320 #define _CRCSHIFT0              0x01
8321 #define _SHIFT1                 0x02
8322 #define _CRCSHIFT1              0x02
8323 #define _SHIFT2                 0x04
8324 #define _CRCSHIFT2              0x04
8325 #define _SHIFT3                 0x08
8326 #define _CRCSHIFT3              0x08
8327 #define _SHIFT4                 0x10
8328 #define _CRCSHIFT4              0x10
8329 #define _SHIFT5                 0x20
8330 #define _CRCSHIFT5              0x20
8331 #define _SHIFT6                 0x40
8332 #define _CRCSHIFT6              0x40
8333 #define _SHIFT7                 0x80
8334 #define _CRCSHIFT7              0x80
8335 
8336 //==============================================================================
8337 
8338 
8339 //==============================================================================
8340 //        CRCSHIFTH Bits
8341 
8342 extern __at(0x0796) __sfr CRCSHIFTH;
8343 
8344 typedef union
8345   {
8346   struct
8347     {
8348     unsigned SHIFT8             : 1;
8349     unsigned SHIFT9             : 1;
8350     unsigned SHIFT10            : 1;
8351     unsigned SHIFT11            : 1;
8352     unsigned SHIFT12            : 1;
8353     unsigned SHIFT13            : 1;
8354     unsigned SHIFT14            : 1;
8355     unsigned SHIFT15            : 1;
8356     };
8357 
8358   struct
8359     {
8360     unsigned CRCSHIFT8          : 1;
8361     unsigned CRCSHIFT9          : 1;
8362     unsigned CRCSHIFT10         : 1;
8363     unsigned CRCSHIFT11         : 1;
8364     unsigned CRCSHIFT12         : 1;
8365     unsigned CRCSHIFT13         : 1;
8366     unsigned CRCSHIFT14         : 1;
8367     unsigned CRCSHIFT15         : 1;
8368     };
8369   } __CRCSHIFTHbits_t;
8370 
8371 extern __at(0x0796) volatile __CRCSHIFTHbits_t CRCSHIFTHbits;
8372 
8373 #define _SHIFT8                 0x01
8374 #define _CRCSHIFT8              0x01
8375 #define _SHIFT9                 0x02
8376 #define _CRCSHIFT9              0x02
8377 #define _SHIFT10                0x04
8378 #define _CRCSHIFT10             0x04
8379 #define _SHIFT11                0x08
8380 #define _CRCSHIFT11             0x08
8381 #define _SHIFT12                0x10
8382 #define _CRCSHIFT12             0x10
8383 #define _SHIFT13                0x20
8384 #define _CRCSHIFT13             0x20
8385 #define _SHIFT14                0x40
8386 #define _CRCSHIFT14             0x40
8387 #define _SHIFT15                0x80
8388 #define _CRCSHIFT15             0x80
8389 
8390 //==============================================================================
8391 
8392 extern __at(0x0797) __sfr CRCXOR;
8393 
8394 //==============================================================================
8395 //        CRCXORL Bits
8396 
8397 extern __at(0x0797) __sfr CRCXORL;
8398 
8399 typedef union
8400   {
8401   struct
8402     {
8403     unsigned                    : 1;
8404     unsigned XOR1               : 1;
8405     unsigned XOR2               : 1;
8406     unsigned XOR3               : 1;
8407     unsigned XOR4               : 1;
8408     unsigned XOR5               : 1;
8409     unsigned XOR6               : 1;
8410     unsigned XOR7               : 1;
8411     };
8412 
8413   struct
8414     {
8415     unsigned                    : 1;
8416     unsigned CRCXOR1            : 1;
8417     unsigned CRCXOR2            : 1;
8418     unsigned CRCXOR3            : 1;
8419     unsigned CRCXOR4            : 1;
8420     unsigned CRCXOR5            : 1;
8421     unsigned CRCXOR6            : 1;
8422     unsigned CRCXOR7            : 1;
8423     };
8424   } __CRCXORLbits_t;
8425 
8426 extern __at(0x0797) volatile __CRCXORLbits_t CRCXORLbits;
8427 
8428 #define _XOR1                   0x02
8429 #define _CRCXOR1                0x02
8430 #define _XOR2                   0x04
8431 #define _CRCXOR2                0x04
8432 #define _XOR3                   0x08
8433 #define _CRCXOR3                0x08
8434 #define _XOR4                   0x10
8435 #define _CRCXOR4                0x10
8436 #define _XOR5                   0x20
8437 #define _CRCXOR5                0x20
8438 #define _XOR6                   0x40
8439 #define _CRCXOR6                0x40
8440 #define _XOR7                   0x80
8441 #define _CRCXOR7                0x80
8442 
8443 //==============================================================================
8444 
8445 
8446 //==============================================================================
8447 //        CRCXORH Bits
8448 
8449 extern __at(0x0798) __sfr CRCXORH;
8450 
8451 typedef union
8452   {
8453   struct
8454     {
8455     unsigned XOR8               : 1;
8456     unsigned XOR9               : 1;
8457     unsigned XOR10              : 1;
8458     unsigned XOR11              : 1;
8459     unsigned XOR12              : 1;
8460     unsigned XOR13              : 1;
8461     unsigned XOR14              : 1;
8462     unsigned XOR15              : 1;
8463     };
8464 
8465   struct
8466     {
8467     unsigned CRCXOR8            : 1;
8468     unsigned CRCXOR9            : 1;
8469     unsigned CRCXOR10           : 1;
8470     unsigned CRCXOR11           : 1;
8471     unsigned CRCXOR12           : 1;
8472     unsigned CRCXOR13           : 1;
8473     unsigned CRCXOR14           : 1;
8474     unsigned CRCXOR15           : 1;
8475     };
8476   } __CRCXORHbits_t;
8477 
8478 extern __at(0x0798) volatile __CRCXORHbits_t CRCXORHbits;
8479 
8480 #define _XOR8                   0x01
8481 #define _CRCXOR8                0x01
8482 #define _XOR9                   0x02
8483 #define _CRCXOR9                0x02
8484 #define _XOR10                  0x04
8485 #define _CRCXOR10               0x04
8486 #define _XOR11                  0x08
8487 #define _CRCXOR11               0x08
8488 #define _XOR12                  0x10
8489 #define _CRCXOR12               0x10
8490 #define _XOR13                  0x20
8491 #define _CRCXOR13               0x20
8492 #define _XOR14                  0x40
8493 #define _CRCXOR14               0x40
8494 #define _XOR15                  0x80
8495 #define _CRCXOR15               0x80
8496 
8497 //==============================================================================
8498 
8499 
8500 //==============================================================================
8501 //        CRCCON0 Bits
8502 
8503 extern __at(0x0799) __sfr CRCCON0;
8504 
8505 typedef union
8506   {
8507   struct
8508     {
8509     unsigned FULL               : 1;
8510     unsigned SHIFTM             : 1;
8511     unsigned                    : 1;
8512     unsigned                    : 1;
8513     unsigned ACCM               : 1;
8514     unsigned BUSY               : 1;
8515     unsigned CRCGO              : 1;
8516     unsigned EN                 : 1;
8517     };
8518 
8519   struct
8520     {
8521     unsigned CRCFULL            : 1;
8522     unsigned CRCSHIFTM          : 1;
8523     unsigned                    : 1;
8524     unsigned                    : 1;
8525     unsigned CRCACCM            : 1;
8526     unsigned CRCBUSY            : 1;
8527     unsigned                    : 1;
8528     unsigned CRCEN              : 1;
8529     };
8530   } __CRCCON0bits_t;
8531 
8532 extern __at(0x0799) volatile __CRCCON0bits_t CRCCON0bits;
8533 
8534 #define _CRCCON0_FULL           0x01
8535 #define _CRCCON0_CRCFULL        0x01
8536 #define _CRCCON0_SHIFTM         0x02
8537 #define _CRCCON0_CRCSHIFTM      0x02
8538 #define _CRCCON0_ACCM           0x10
8539 #define _CRCCON0_CRCACCM        0x10
8540 #define _CRCCON0_BUSY           0x20
8541 #define _CRCCON0_CRCBUSY        0x20
8542 #define _CRCCON0_CRCGO          0x40
8543 #define _CRCCON0_EN             0x80
8544 #define _CRCCON0_CRCEN          0x80
8545 
8546 //==============================================================================
8547 
8548 
8549 //==============================================================================
8550 //        CRCCON1 Bits
8551 
8552 extern __at(0x079A) __sfr CRCCON1;
8553 
8554 typedef union
8555   {
8556   struct
8557     {
8558     unsigned PLEN0              : 1;
8559     unsigned PLEN1              : 1;
8560     unsigned PLEN2              : 1;
8561     unsigned PLEN3              : 1;
8562     unsigned DLEN0              : 1;
8563     unsigned DLEN1              : 1;
8564     unsigned DLEN2              : 1;
8565     unsigned DLEN3              : 1;
8566     };
8567 
8568   struct
8569     {
8570     unsigned CRCPLEN0           : 1;
8571     unsigned CRCPLEN1           : 1;
8572     unsigned CRCPLEN2           : 1;
8573     unsigned CRCPLEN3           : 1;
8574     unsigned CRCDLEN0           : 1;
8575     unsigned CRCDLEN1           : 1;
8576     unsigned CRCDLEN2           : 1;
8577     unsigned CRCDLEN3           : 1;
8578     };
8579 
8580   struct
8581     {
8582     unsigned PLEN               : 4;
8583     unsigned                    : 4;
8584     };
8585 
8586   struct
8587     {
8588     unsigned CRCPLEN            : 4;
8589     unsigned                    : 4;
8590     };
8591 
8592   struct
8593     {
8594     unsigned                    : 4;
8595     unsigned DLEN               : 4;
8596     };
8597 
8598   struct
8599     {
8600     unsigned                    : 4;
8601     unsigned CRCDLEN            : 4;
8602     };
8603   } __CRCCON1bits_t;
8604 
8605 extern __at(0x079A) volatile __CRCCON1bits_t CRCCON1bits;
8606 
8607 #define _PLEN0                  0x01
8608 #define _CRCPLEN0               0x01
8609 #define _PLEN1                  0x02
8610 #define _CRCPLEN1               0x02
8611 #define _PLEN2                  0x04
8612 #define _CRCPLEN2               0x04
8613 #define _PLEN3                  0x08
8614 #define _CRCPLEN3               0x08
8615 #define _DLEN0                  0x10
8616 #define _CRCDLEN0               0x10
8617 #define _DLEN1                  0x20
8618 #define _CRCDLEN1               0x20
8619 #define _DLEN2                  0x40
8620 #define _CRCDLEN2               0x40
8621 #define _DLEN3                  0x80
8622 #define _CRCDLEN3               0x80
8623 
8624 //==============================================================================
8625 
8626 extern __at(0x080C) __sfr AT1RES;
8627 
8628 //==============================================================================
8629 //        AT1RESL Bits
8630 
8631 extern __at(0x080C) __sfr AT1RESL;
8632 
8633 typedef union
8634   {
8635   struct
8636     {
8637     unsigned AT1RES0            : 1;
8638     unsigned AT1RES1            : 1;
8639     unsigned AT1RES2            : 1;
8640     unsigned AT1RES3            : 1;
8641     unsigned AT1RES4            : 1;
8642     unsigned AT1RES5            : 1;
8643     unsigned AT1RES6            : 1;
8644     unsigned AT1RES7            : 1;
8645     };
8646 
8647   struct
8648     {
8649     unsigned RES0               : 1;
8650     unsigned RES1               : 1;
8651     unsigned RES2               : 1;
8652     unsigned RES3               : 1;
8653     unsigned RES4               : 1;
8654     unsigned RES5               : 1;
8655     unsigned RES6               : 1;
8656     unsigned RES7               : 1;
8657     };
8658   } __AT1RESLbits_t;
8659 
8660 extern __at(0x080C) volatile __AT1RESLbits_t AT1RESLbits;
8661 
8662 #define _AT1RES0                0x01
8663 #define _RES0                   0x01
8664 #define _AT1RES1                0x02
8665 #define _RES1                   0x02
8666 #define _AT1RES2                0x04
8667 #define _RES2                   0x04
8668 #define _AT1RES3                0x08
8669 #define _RES3                   0x08
8670 #define _AT1RES4                0x10
8671 #define _RES4                   0x10
8672 #define _AT1RES5                0x20
8673 #define _RES5                   0x20
8674 #define _AT1RES6                0x40
8675 #define _RES6                   0x40
8676 #define _AT1RES7                0x80
8677 #define _RES7                   0x80
8678 
8679 //==============================================================================
8680 
8681 
8682 //==============================================================================
8683 //        AT1RESH Bits
8684 
8685 extern __at(0x080D) __sfr AT1RESH;
8686 
8687 typedef union
8688   {
8689   struct
8690     {
8691     unsigned AT1RES8            : 1;
8692     unsigned AT1RES9            : 1;
8693     unsigned                    : 1;
8694     unsigned                    : 1;
8695     unsigned                    : 1;
8696     unsigned                    : 1;
8697     unsigned                    : 1;
8698     unsigned                    : 1;
8699     };
8700 
8701   struct
8702     {
8703     unsigned RES8               : 1;
8704     unsigned RES9               : 1;
8705     unsigned                    : 1;
8706     unsigned                    : 1;
8707     unsigned                    : 1;
8708     unsigned                    : 1;
8709     unsigned                    : 1;
8710     unsigned                    : 1;
8711     };
8712   } __AT1RESHbits_t;
8713 
8714 extern __at(0x080D) volatile __AT1RESHbits_t AT1RESHbits;
8715 
8716 #define _AT1RES8                0x01
8717 #define _RES8                   0x01
8718 #define _AT1RES9                0x02
8719 #define _RES9                   0x02
8720 
8721 //==============================================================================
8722 
8723 extern __at(0x080E) __sfr AT1MISS;
8724 
8725 //==============================================================================
8726 //        AT1MISSL Bits
8727 
8728 extern __at(0x080E) __sfr AT1MISSL;
8729 
8730 typedef union
8731   {
8732   struct
8733     {
8734     unsigned AT1MISS0           : 1;
8735     unsigned AT1MISS1           : 1;
8736     unsigned AT1MISS2           : 1;
8737     unsigned AT1MISS3           : 1;
8738     unsigned AT1MISS4           : 1;
8739     unsigned AT1MISS5           : 1;
8740     unsigned AT1MISS6           : 1;
8741     unsigned AT1MISS7           : 1;
8742     };
8743 
8744   struct
8745     {
8746     unsigned MISS0              : 1;
8747     unsigned MISS1              : 1;
8748     unsigned MISS2              : 1;
8749     unsigned MISS3              : 1;
8750     unsigned MISS4              : 1;
8751     unsigned MISS5              : 1;
8752     unsigned MISS6              : 1;
8753     unsigned MISS7              : 1;
8754     };
8755   } __AT1MISSLbits_t;
8756 
8757 extern __at(0x080E) volatile __AT1MISSLbits_t AT1MISSLbits;
8758 
8759 #define _AT1MISS0               0x01
8760 #define _MISS0                  0x01
8761 #define _AT1MISS1               0x02
8762 #define _MISS1                  0x02
8763 #define _AT1MISS2               0x04
8764 #define _MISS2                  0x04
8765 #define _AT1MISS3               0x08
8766 #define _MISS3                  0x08
8767 #define _AT1MISS4               0x10
8768 #define _MISS4                  0x10
8769 #define _AT1MISS5               0x20
8770 #define _MISS5                  0x20
8771 #define _AT1MISS6               0x40
8772 #define _MISS6                  0x40
8773 #define _AT1MISS7               0x80
8774 #define _MISS7                  0x80
8775 
8776 //==============================================================================
8777 
8778 
8779 //==============================================================================
8780 //        AT1MISSH Bits
8781 
8782 extern __at(0x080F) __sfr AT1MISSH;
8783 
8784 typedef union
8785   {
8786   struct
8787     {
8788     unsigned AT1MISS8           : 1;
8789     unsigned AT1MISS9           : 1;
8790     unsigned AT1MISS10          : 1;
8791     unsigned AT1MISS11          : 1;
8792     unsigned AT1MISS12          : 1;
8793     unsigned AT1MISS13          : 1;
8794     unsigned AT1MISS14          : 1;
8795     unsigned AT1MISS15          : 1;
8796     };
8797 
8798   struct
8799     {
8800     unsigned MISS8              : 1;
8801     unsigned MISS9              : 1;
8802     unsigned MISS10             : 1;
8803     unsigned MISS11             : 1;
8804     unsigned MISS12             : 1;
8805     unsigned MISS13             : 1;
8806     unsigned MISS14             : 1;
8807     unsigned MISS15             : 1;
8808     };
8809   } __AT1MISSHbits_t;
8810 
8811 extern __at(0x080F) volatile __AT1MISSHbits_t AT1MISSHbits;
8812 
8813 #define _AT1MISS8               0x01
8814 #define _MISS8                  0x01
8815 #define _AT1MISS9               0x02
8816 #define _MISS9                  0x02
8817 #define _AT1MISS10              0x04
8818 #define _MISS10                 0x04
8819 #define _AT1MISS11              0x08
8820 #define _MISS11                 0x08
8821 #define _AT1MISS12              0x10
8822 #define _MISS12                 0x10
8823 #define _AT1MISS13              0x20
8824 #define _MISS13                 0x20
8825 #define _AT1MISS14              0x40
8826 #define _MISS14                 0x40
8827 #define _AT1MISS15              0x80
8828 #define _MISS15                 0x80
8829 
8830 //==============================================================================
8831 
8832 extern __at(0x0810) __sfr AT1PER;
8833 
8834 //==============================================================================
8835 //        AT1PERL Bits
8836 
8837 extern __at(0x0810) __sfr AT1PERL;
8838 
8839 typedef union
8840   {
8841   struct
8842     {
8843     unsigned AT1PER0            : 1;
8844     unsigned AT1PER1            : 1;
8845     unsigned AT1PER2            : 1;
8846     unsigned AT1PER3            : 1;
8847     unsigned AT1PER4            : 1;
8848     unsigned AT1PER5            : 1;
8849     unsigned AT1PER6            : 1;
8850     unsigned AT1PER7            : 1;
8851     };
8852 
8853   struct
8854     {
8855     unsigned PER0               : 1;
8856     unsigned PER1               : 1;
8857     unsigned PER2               : 1;
8858     unsigned PER3               : 1;
8859     unsigned PER4               : 1;
8860     unsigned PER5               : 1;
8861     unsigned PER6               : 1;
8862     unsigned PER7               : 1;
8863     };
8864 
8865   struct
8866     {
8867     unsigned PERL0              : 1;
8868     unsigned PERL1              : 1;
8869     unsigned PERL2              : 1;
8870     unsigned PERL3              : 1;
8871     unsigned PERL4              : 1;
8872     unsigned PERL5              : 1;
8873     unsigned PERL6              : 1;
8874     unsigned PERL7              : 1;
8875     };
8876   } __AT1PERLbits_t;
8877 
8878 extern __at(0x0810) volatile __AT1PERLbits_t AT1PERLbits;
8879 
8880 #define _AT1PER0                0x01
8881 #define _PER0                   0x01
8882 #define _PERL0                  0x01
8883 #define _AT1PER1                0x02
8884 #define _PER1                   0x02
8885 #define _PERL1                  0x02
8886 #define _AT1PER2                0x04
8887 #define _PER2                   0x04
8888 #define _PERL2                  0x04
8889 #define _AT1PER3                0x08
8890 #define _PER3                   0x08
8891 #define _PERL3                  0x08
8892 #define _AT1PER4                0x10
8893 #define _PER4                   0x10
8894 #define _PERL4                  0x10
8895 #define _AT1PER5                0x20
8896 #define _PER5                   0x20
8897 #define _PERL5                  0x20
8898 #define _AT1PER6                0x40
8899 #define _PER6                   0x40
8900 #define _PERL6                  0x40
8901 #define _AT1PER7                0x80
8902 #define _PER7                   0x80
8903 #define _PERL7                  0x80
8904 
8905 //==============================================================================
8906 
8907 
8908 //==============================================================================
8909 //        AT1PERH Bits
8910 
8911 extern __at(0x0811) __sfr AT1PERH;
8912 
8913 typedef union
8914   {
8915   struct
8916     {
8917     unsigned AT1PER8            : 1;
8918     unsigned AT1PER9            : 1;
8919     unsigned AT1PER10           : 1;
8920     unsigned AT1PER11           : 1;
8921     unsigned AT1PER12           : 1;
8922     unsigned AT1PER13           : 1;
8923     unsigned AT1PER14           : 1;
8924     unsigned AT1POV             : 1;
8925     };
8926 
8927   struct
8928     {
8929     unsigned PER8               : 1;
8930     unsigned PER9               : 1;
8931     unsigned PER10              : 1;
8932     unsigned PER11              : 1;
8933     unsigned PER12              : 1;
8934     unsigned PER13              : 1;
8935     unsigned PER14              : 1;
8936     unsigned PER15              : 1;
8937     };
8938 
8939   struct
8940     {
8941     unsigned PERH0              : 1;
8942     unsigned PERH1              : 1;
8943     unsigned PERH2              : 1;
8944     unsigned PERH3              : 1;
8945     unsigned PERH4              : 1;
8946     unsigned PERH5              : 1;
8947     unsigned PERH6              : 1;
8948     unsigned PERH7              : 1;
8949     };
8950   } __AT1PERHbits_t;
8951 
8952 extern __at(0x0811) volatile __AT1PERHbits_t AT1PERHbits;
8953 
8954 #define _AT1PER8                0x01
8955 #define _PER8                   0x01
8956 #define _PERH0                  0x01
8957 #define _AT1PER9                0x02
8958 #define _PER9                   0x02
8959 #define _PERH1                  0x02
8960 #define _AT1PER10               0x04
8961 #define _PER10                  0x04
8962 #define _PERH2                  0x04
8963 #define _AT1PER11               0x08
8964 #define _PER11                  0x08
8965 #define _PERH3                  0x08
8966 #define _AT1PER12               0x10
8967 #define _PER12                  0x10
8968 #define _PERH4                  0x10
8969 #define _AT1PER13               0x20
8970 #define _PER13                  0x20
8971 #define _PERH5                  0x20
8972 #define _AT1PER14               0x40
8973 #define _PER14                  0x40
8974 #define _PERH6                  0x40
8975 #define _AT1POV                 0x80
8976 #define _PER15                  0x80
8977 #define _PERH7                  0x80
8978 
8979 //==============================================================================
8980 
8981 extern __at(0x0812) __sfr AT1PHS;
8982 
8983 //==============================================================================
8984 //        AT1PHSL Bits
8985 
8986 extern __at(0x0812) __sfr AT1PHSL;
8987 
8988 typedef union
8989   {
8990   struct
8991     {
8992     unsigned AT1PHS0            : 1;
8993     unsigned AT1PHS1            : 1;
8994     unsigned AT1PHS2            : 1;
8995     unsigned AT1PHS3            : 1;
8996     unsigned AT1PHS4            : 1;
8997     unsigned AT1PHS5            : 1;
8998     unsigned AT1PHS6            : 1;
8999     unsigned AT1PHS7            : 1;
9000     };
9001 
9002   struct
9003     {
9004     unsigned PHS0               : 1;
9005     unsigned PHS1               : 1;
9006     unsigned PHS2               : 1;
9007     unsigned PHS3               : 1;
9008     unsigned PHS4               : 1;
9009     unsigned PHS5               : 1;
9010     unsigned PHS6               : 1;
9011     unsigned PHS7               : 1;
9012     };
9013   } __AT1PHSLbits_t;
9014 
9015 extern __at(0x0812) volatile __AT1PHSLbits_t AT1PHSLbits;
9016 
9017 #define _AT1PHS0                0x01
9018 #define _PHS0                   0x01
9019 #define _AT1PHS1                0x02
9020 #define _PHS1                   0x02
9021 #define _AT1PHS2                0x04
9022 #define _PHS2                   0x04
9023 #define _AT1PHS3                0x08
9024 #define _PHS3                   0x08
9025 #define _AT1PHS4                0x10
9026 #define _PHS4                   0x10
9027 #define _AT1PHS5                0x20
9028 #define _PHS5                   0x20
9029 #define _AT1PHS6                0x40
9030 #define _PHS6                   0x40
9031 #define _AT1PHS7                0x80
9032 #define _PHS7                   0x80
9033 
9034 //==============================================================================
9035 
9036 
9037 //==============================================================================
9038 //        AT1PHSH Bits
9039 
9040 extern __at(0x0813) __sfr AT1PHSH;
9041 
9042 typedef union
9043   {
9044   struct
9045     {
9046     unsigned AT1PHS8            : 1;
9047     unsigned AT1PHS9            : 1;
9048     unsigned                    : 1;
9049     unsigned                    : 1;
9050     unsigned                    : 1;
9051     unsigned                    : 1;
9052     unsigned                    : 1;
9053     unsigned                    : 1;
9054     };
9055 
9056   struct
9057     {
9058     unsigned PHS8               : 1;
9059     unsigned PHS9               : 1;
9060     unsigned                    : 1;
9061     unsigned                    : 1;
9062     unsigned                    : 1;
9063     unsigned                    : 1;
9064     unsigned                    : 1;
9065     unsigned                    : 1;
9066     };
9067 
9068   struct
9069     {
9070     unsigned PHSL8              : 1;
9071     unsigned PHSL9              : 1;
9072     unsigned                    : 1;
9073     unsigned                    : 1;
9074     unsigned                    : 1;
9075     unsigned                    : 1;
9076     unsigned                    : 1;
9077     unsigned                    : 1;
9078     };
9079   } __AT1PHSHbits_t;
9080 
9081 extern __at(0x0813) volatile __AT1PHSHbits_t AT1PHSHbits;
9082 
9083 #define _AT1PHS8                0x01
9084 #define _PHS8                   0x01
9085 #define _PHSL8                  0x01
9086 #define _AT1PHS9                0x02
9087 #define _PHS9                   0x02
9088 #define _PHSL9                  0x02
9089 
9090 //==============================================================================
9091 
9092 
9093 //==============================================================================
9094 //        AT1CON0 Bits
9095 
9096 extern __at(0x0814) __sfr AT1CON0;
9097 
9098 typedef union
9099   {
9100   struct
9101     {
9102     unsigned MODE               : 1;
9103     unsigned APMOD              : 1;
9104     unsigned                    : 1;
9105     unsigned POL                : 1;
9106     unsigned PS0                : 1;
9107     unsigned PS1                : 1;
9108     unsigned PREC               : 1;
9109     unsigned EN                 : 1;
9110     };
9111 
9112   struct
9113     {
9114     unsigned AT1MODE            : 1;
9115     unsigned AT1APMOD           : 1;
9116     unsigned                    : 1;
9117     unsigned AT1POL             : 1;
9118     unsigned AT1PS0             : 1;
9119     unsigned AT1PS1             : 1;
9120     unsigned AT1PREC            : 1;
9121     unsigned AT1EN              : 1;
9122     };
9123 
9124   struct
9125     {
9126     unsigned                    : 4;
9127     unsigned AT1PS              : 2;
9128     unsigned                    : 2;
9129     };
9130 
9131   struct
9132     {
9133     unsigned                    : 4;
9134     unsigned PS                 : 2;
9135     unsigned                    : 2;
9136     };
9137   } __AT1CON0bits_t;
9138 
9139 extern __at(0x0814) volatile __AT1CON0bits_t AT1CON0bits;
9140 
9141 #define _MODE                   0x01
9142 #define _AT1MODE                0x01
9143 #define _APMOD                  0x02
9144 #define _AT1APMOD               0x02
9145 #define _POL                    0x08
9146 #define _AT1POL                 0x08
9147 #define _PS0                    0x10
9148 #define _AT1PS0                 0x10
9149 #define _PS1                    0x20
9150 #define _AT1PS1                 0x20
9151 #define _PREC                   0x40
9152 #define _AT1PREC                0x40
9153 #define _EN                     0x80
9154 #define _AT1EN                  0x80
9155 
9156 //==============================================================================
9157 
9158 
9159 //==============================================================================
9160 //        AT1CON1 Bits
9161 
9162 extern __at(0x0815) __sfr AT1CON1;
9163 
9164 typedef union
9165   {
9166   struct
9167     {
9168     unsigned VALID              : 1;
9169     unsigned ACCS               : 1;
9170     unsigned MPP                : 1;
9171     unsigned                    : 1;
9172     unsigned PRP                : 1;
9173     unsigned                    : 1;
9174     unsigned PHP                : 1;
9175     unsigned                    : 1;
9176     };
9177 
9178   struct
9179     {
9180     unsigned AT1VALID           : 1;
9181     unsigned AT1ACCS            : 1;
9182     unsigned AT1MPP             : 1;
9183     unsigned                    : 1;
9184     unsigned AT1PRP             : 1;
9185     unsigned                    : 1;
9186     unsigned AT1PHP             : 1;
9187     unsigned                    : 1;
9188     };
9189   } __AT1CON1bits_t;
9190 
9191 extern __at(0x0815) volatile __AT1CON1bits_t AT1CON1bits;
9192 
9193 #define _VALID                  0x01
9194 #define _AT1VALID               0x01
9195 #define _ACCS                   0x02
9196 #define _AT1ACCS                0x02
9197 #define _MPP                    0x04
9198 #define _AT1MPP                 0x04
9199 #define _PRP                    0x10
9200 #define _AT1PRP                 0x10
9201 #define _PHP                    0x40
9202 #define _AT1PHP                 0x40
9203 
9204 //==============================================================================
9205 
9206 
9207 //==============================================================================
9208 //        AT1IR0 Bits
9209 
9210 extern __at(0x0816) __sfr AT1IR0;
9211 
9212 typedef struct
9213   {
9214   unsigned AT1PERIF             : 1;
9215   unsigned AT1MISSIF            : 1;
9216   unsigned AT1PHSIF             : 1;
9217   unsigned                      : 1;
9218   unsigned                      : 1;
9219   unsigned                      : 1;
9220   unsigned                      : 1;
9221   unsigned                      : 1;
9222   } __AT1IR0bits_t;
9223 
9224 extern __at(0x0816) volatile __AT1IR0bits_t AT1IR0bits;
9225 
9226 #define _AT1PERIF               0x01
9227 #define _AT1MISSIF              0x02
9228 #define _AT1PHSIF               0x04
9229 
9230 //==============================================================================
9231 
9232 
9233 //==============================================================================
9234 //        AT1IE0 Bits
9235 
9236 extern __at(0x0817) __sfr AT1IE0;
9237 
9238 typedef struct
9239   {
9240   unsigned AT1PERIE             : 1;
9241   unsigned AT1MISSIE            : 1;
9242   unsigned AT1PHSIE             : 1;
9243   unsigned                      : 1;
9244   unsigned                      : 1;
9245   unsigned                      : 1;
9246   unsigned                      : 1;
9247   unsigned                      : 1;
9248   } __AT1IE0bits_t;
9249 
9250 extern __at(0x0817) volatile __AT1IE0bits_t AT1IE0bits;
9251 
9252 #define _AT1PERIE               0x01
9253 #define _AT1MISSIE              0x02
9254 #define _AT1PHSIE               0x04
9255 
9256 //==============================================================================
9257 
9258 
9259 //==============================================================================
9260 //        AT1IR1 Bits
9261 
9262 extern __at(0x0818) __sfr AT1IR1;
9263 
9264 typedef struct
9265   {
9266   unsigned AT1CC1IF             : 1;
9267   unsigned AT1CC2IF             : 1;
9268   unsigned AT1CC3IF             : 1;
9269   unsigned                      : 1;
9270   unsigned                      : 1;
9271   unsigned                      : 1;
9272   unsigned                      : 1;
9273   unsigned                      : 1;
9274   } __AT1IR1bits_t;
9275 
9276 extern __at(0x0818) volatile __AT1IR1bits_t AT1IR1bits;
9277 
9278 #define _AT1CC1IF               0x01
9279 #define _AT1CC2IF               0x02
9280 #define _AT1CC3IF               0x04
9281 
9282 //==============================================================================
9283 
9284 
9285 //==============================================================================
9286 //        AT1IE1 Bits
9287 
9288 extern __at(0x0819) __sfr AT1IE1;
9289 
9290 typedef struct
9291   {
9292   unsigned AT1CC1IE             : 1;
9293   unsigned AT1CC2IE             : 1;
9294   unsigned AT1CC3IE             : 1;
9295   unsigned                      : 1;
9296   unsigned                      : 1;
9297   unsigned                      : 1;
9298   unsigned                      : 1;
9299   unsigned                      : 1;
9300   } __AT1IE1bits_t;
9301 
9302 extern __at(0x0819) volatile __AT1IE1bits_t AT1IE1bits;
9303 
9304 #define _AT1CC1IE               0x01
9305 #define _AT1CC2IE               0x02
9306 #define _AT1CC3IE               0x04
9307 
9308 //==============================================================================
9309 
9310 extern __at(0x081A) __sfr AT1STPT;
9311 
9312 //==============================================================================
9313 //        AT1STPTL Bits
9314 
9315 extern __at(0x081A) __sfr AT1STPTL;
9316 
9317 typedef union
9318   {
9319   struct
9320     {
9321     unsigned AT1STPT0           : 1;
9322     unsigned AT1STPT1           : 1;
9323     unsigned AT1STPT2           : 1;
9324     unsigned AT1STPT3           : 1;
9325     unsigned AT1STPT4           : 1;
9326     unsigned AT1STPT5           : 1;
9327     unsigned AT1STPT6           : 1;
9328     unsigned AT1STPT7           : 1;
9329     };
9330 
9331   struct
9332     {
9333     unsigned STPT0              : 1;
9334     unsigned STPT1              : 1;
9335     unsigned STPT2              : 1;
9336     unsigned STPT3              : 1;
9337     unsigned STPT4              : 1;
9338     unsigned STPT5              : 1;
9339     unsigned STPT6              : 1;
9340     unsigned STPT7              : 1;
9341     };
9342   } __AT1STPTLbits_t;
9343 
9344 extern __at(0x081A) volatile __AT1STPTLbits_t AT1STPTLbits;
9345 
9346 #define _AT1STPT0               0x01
9347 #define _STPT0                  0x01
9348 #define _AT1STPT1               0x02
9349 #define _STPT1                  0x02
9350 #define _AT1STPT2               0x04
9351 #define _STPT2                  0x04
9352 #define _AT1STPT3               0x08
9353 #define _STPT3                  0x08
9354 #define _AT1STPT4               0x10
9355 #define _STPT4                  0x10
9356 #define _AT1STPT5               0x20
9357 #define _STPT5                  0x20
9358 #define _AT1STPT6               0x40
9359 #define _STPT6                  0x40
9360 #define _AT1STPT7               0x80
9361 #define _STPT7                  0x80
9362 
9363 //==============================================================================
9364 
9365 
9366 //==============================================================================
9367 //        AT1STPTH Bits
9368 
9369 extern __at(0x081B) __sfr AT1STPTH;
9370 
9371 typedef union
9372   {
9373   struct
9374     {
9375     unsigned AT1STPT8           : 1;
9376     unsigned AT1STPT9           : 1;
9377     unsigned AT1STPT10          : 1;
9378     unsigned AT1STPT11          : 1;
9379     unsigned AT1STPT12          : 1;
9380     unsigned AT1STPT13          : 1;
9381     unsigned AT1STPT14          : 1;
9382     unsigned                    : 1;
9383     };
9384 
9385   struct
9386     {
9387     unsigned STPT8              : 1;
9388     unsigned STPT9              : 1;
9389     unsigned STPT10             : 1;
9390     unsigned STPT11             : 1;
9391     unsigned STPT12             : 1;
9392     unsigned STPT13             : 1;
9393     unsigned STPT14             : 1;
9394     unsigned                    : 1;
9395     };
9396   } __AT1STPTHbits_t;
9397 
9398 extern __at(0x081B) volatile __AT1STPTHbits_t AT1STPTHbits;
9399 
9400 #define _AT1STPT8               0x01
9401 #define _STPT8                  0x01
9402 #define _AT1STPT9               0x02
9403 #define _STPT9                  0x02
9404 #define _AT1STPT10              0x04
9405 #define _STPT10                 0x04
9406 #define _AT1STPT11              0x08
9407 #define _STPT11                 0x08
9408 #define _AT1STPT12              0x10
9409 #define _STPT12                 0x10
9410 #define _AT1STPT13              0x20
9411 #define _STPT13                 0x20
9412 #define _AT1STPT14              0x40
9413 #define _STPT14                 0x40
9414 
9415 //==============================================================================
9416 
9417 extern __at(0x081C) __sfr AT1ERR;
9418 
9419 //==============================================================================
9420 //        AT1ERRL Bits
9421 
9422 extern __at(0x081C) __sfr AT1ERRL;
9423 
9424 typedef union
9425   {
9426   struct
9427     {
9428     unsigned AT1ERR0            : 1;
9429     unsigned AT1ERR1            : 1;
9430     unsigned AT1ERR2            : 1;
9431     unsigned AT1ERR3            : 1;
9432     unsigned AT1ERR4            : 1;
9433     unsigned AT1ERR5            : 1;
9434     unsigned AT1ERR6            : 1;
9435     unsigned AT1ERR7            : 1;
9436     };
9437 
9438   struct
9439     {
9440     unsigned ERR0               : 1;
9441     unsigned ERR1               : 1;
9442     unsigned ERR2               : 1;
9443     unsigned ERR3               : 1;
9444     unsigned ERR4               : 1;
9445     unsigned ERR5               : 1;
9446     unsigned ERR6               : 1;
9447     unsigned ERR7               : 1;
9448     };
9449 
9450   struct
9451     {
9452     unsigned ERRL0              : 1;
9453     unsigned ERRL1              : 1;
9454     unsigned ERRL2              : 1;
9455     unsigned ERRL3              : 1;
9456     unsigned ERRL4              : 1;
9457     unsigned ERRL5              : 1;
9458     unsigned ERRL6              : 1;
9459     unsigned ERRL7              : 1;
9460     };
9461   } __AT1ERRLbits_t;
9462 
9463 extern __at(0x081C) volatile __AT1ERRLbits_t AT1ERRLbits;
9464 
9465 #define _AT1ERR0                0x01
9466 #define _ERR0                   0x01
9467 #define _ERRL0                  0x01
9468 #define _AT1ERR1                0x02
9469 #define _ERR1                   0x02
9470 #define _ERRL1                  0x02
9471 #define _AT1ERR2                0x04
9472 #define _ERR2                   0x04
9473 #define _ERRL2                  0x04
9474 #define _AT1ERR3                0x08
9475 #define _ERR3                   0x08
9476 #define _ERRL3                  0x08
9477 #define _AT1ERR4                0x10
9478 #define _ERR4                   0x10
9479 #define _ERRL4                  0x10
9480 #define _AT1ERR5                0x20
9481 #define _ERR5                   0x20
9482 #define _ERRL5                  0x20
9483 #define _AT1ERR6                0x40
9484 #define _ERR6                   0x40
9485 #define _ERRL6                  0x40
9486 #define _AT1ERR7                0x80
9487 #define _ERR7                   0x80
9488 #define _ERRL7                  0x80
9489 
9490 //==============================================================================
9491 
9492 
9493 //==============================================================================
9494 //        AT1ERRH Bits
9495 
9496 extern __at(0x081D) __sfr AT1ERRH;
9497 
9498 typedef union
9499   {
9500   struct
9501     {
9502     unsigned AT1ERR8            : 1;
9503     unsigned AT1ERR9            : 1;
9504     unsigned AT1ERR10           : 1;
9505     unsigned AT1ERR11           : 1;
9506     unsigned AT1ERR12           : 1;
9507     unsigned AT1ERR13           : 1;
9508     unsigned AT1ERR14           : 1;
9509     unsigned AT1ERR15           : 1;
9510     };
9511 
9512   struct
9513     {
9514     unsigned ERR8               : 1;
9515     unsigned ERR9               : 1;
9516     unsigned ERR10              : 1;
9517     unsigned ERR11              : 1;
9518     unsigned ERR12              : 1;
9519     unsigned ERR13              : 1;
9520     unsigned ERR14              : 1;
9521     unsigned ERR15              : 1;
9522     };
9523 
9524   struct
9525     {
9526     unsigned ERRH0              : 1;
9527     unsigned ERRH1              : 1;
9528     unsigned ERRH2              : 1;
9529     unsigned ERRH3              : 1;
9530     unsigned ERRH4              : 1;
9531     unsigned ERRH5              : 1;
9532     unsigned ERRH6              : 1;
9533     unsigned ERRH7              : 1;
9534     };
9535   } __AT1ERRHbits_t;
9536 
9537 extern __at(0x081D) volatile __AT1ERRHbits_t AT1ERRHbits;
9538 
9539 #define _AT1ERR8                0x01
9540 #define _ERR8                   0x01
9541 #define _ERRH0                  0x01
9542 #define _AT1ERR9                0x02
9543 #define _ERR9                   0x02
9544 #define _ERRH1                  0x02
9545 #define _AT1ERR10               0x04
9546 #define _ERR10                  0x04
9547 #define _ERRH2                  0x04
9548 #define _AT1ERR11               0x08
9549 #define _ERR11                  0x08
9550 #define _ERRH3                  0x08
9551 #define _AT1ERR12               0x10
9552 #define _ERR12                  0x10
9553 #define _ERRH4                  0x10
9554 #define _AT1ERR13               0x20
9555 #define _ERR13                  0x20
9556 #define _ERRH5                  0x20
9557 #define _AT1ERR14               0x40
9558 #define _ERR14                  0x40
9559 #define _ERRH6                  0x40
9560 #define _AT1ERR15               0x80
9561 #define _ERR15                  0x80
9562 #define _ERRH7                  0x80
9563 
9564 //==============================================================================
9565 
9566 
9567 //==============================================================================
9568 //        AT1CLK Bits
9569 
9570 extern __at(0x088C) __sfr AT1CLK;
9571 
9572 typedef union
9573   {
9574   struct
9575     {
9576     unsigned CS                 : 1;
9577     unsigned                    : 1;
9578     unsigned                    : 1;
9579     unsigned                    : 1;
9580     unsigned                    : 1;
9581     unsigned                    : 1;
9582     unsigned                    : 1;
9583     unsigned                    : 1;
9584     };
9585 
9586   struct
9587     {
9588     unsigned AT1CS              : 1;
9589     unsigned                    : 1;
9590     unsigned                    : 1;
9591     unsigned                    : 1;
9592     unsigned                    : 1;
9593     unsigned                    : 1;
9594     unsigned                    : 1;
9595     unsigned                    : 1;
9596     };
9597 
9598   struct
9599     {
9600     unsigned CS0                : 1;
9601     unsigned                    : 1;
9602     unsigned                    : 1;
9603     unsigned                    : 1;
9604     unsigned                    : 1;
9605     unsigned                    : 1;
9606     unsigned                    : 1;
9607     unsigned                    : 1;
9608     };
9609 
9610   struct
9611     {
9612     unsigned AT1CS0             : 1;
9613     unsigned                    : 1;
9614     unsigned                    : 1;
9615     unsigned                    : 1;
9616     unsigned                    : 1;
9617     unsigned                    : 1;
9618     unsigned                    : 1;
9619     unsigned                    : 1;
9620     };
9621   } __AT1CLKbits_t;
9622 
9623 extern __at(0x088C) volatile __AT1CLKbits_t AT1CLKbits;
9624 
9625 #define _CS                     0x01
9626 #define _AT1CS                  0x01
9627 #define _CS0                    0x01
9628 #define _AT1CS0                 0x01
9629 
9630 //==============================================================================
9631 
9632 
9633 //==============================================================================
9634 //        AT1SIG Bits
9635 
9636 extern __at(0x088D) __sfr AT1SIG;
9637 
9638 typedef union
9639   {
9640   struct
9641     {
9642     unsigned AT1SSEL0           : 1;
9643     unsigned AT1SSEL1           : 1;
9644     unsigned AT1SSEL2           : 1;
9645     unsigned                    : 1;
9646     unsigned                    : 1;
9647     unsigned                    : 1;
9648     unsigned                    : 1;
9649     unsigned                    : 1;
9650     };
9651 
9652   struct
9653     {
9654     unsigned SSEL0              : 1;
9655     unsigned SSEL1              : 1;
9656     unsigned SSEL2              : 1;
9657     unsigned                    : 1;
9658     unsigned                    : 1;
9659     unsigned                    : 1;
9660     unsigned                    : 1;
9661     unsigned                    : 1;
9662     };
9663 
9664   struct
9665     {
9666     unsigned SSEL               : 3;
9667     unsigned                    : 5;
9668     };
9669 
9670   struct
9671     {
9672     unsigned AT1SSEL            : 3;
9673     unsigned                    : 5;
9674     };
9675   } __AT1SIGbits_t;
9676 
9677 extern __at(0x088D) volatile __AT1SIGbits_t AT1SIGbits;
9678 
9679 #define _AT1SSEL0               0x01
9680 #define _SSEL0                  0x01
9681 #define _AT1SSEL1               0x02
9682 #define _SSEL1                  0x02
9683 #define _AT1SSEL2               0x04
9684 #define _SSEL2                  0x04
9685 
9686 //==============================================================================
9687 
9688 
9689 //==============================================================================
9690 //        AT1CSEL1 Bits
9691 
9692 extern __at(0x088E) __sfr AT1CSEL1;
9693 
9694 typedef union
9695   {
9696   struct
9697     {
9698     unsigned AT1CP1S0           : 1;
9699     unsigned AT1CP1S1           : 1;
9700     unsigned AT1CP1S2           : 1;
9701     unsigned                    : 1;
9702     unsigned                    : 1;
9703     unsigned                    : 1;
9704     unsigned                    : 1;
9705     unsigned                    : 1;
9706     };
9707 
9708   struct
9709     {
9710     unsigned CP1S0              : 1;
9711     unsigned CP1S1              : 1;
9712     unsigned CP1S2              : 1;
9713     unsigned                    : 1;
9714     unsigned                    : 1;
9715     unsigned                    : 1;
9716     unsigned                    : 1;
9717     unsigned                    : 1;
9718     };
9719 
9720   struct
9721     {
9722     unsigned CP1S               : 3;
9723     unsigned                    : 5;
9724     };
9725 
9726   struct
9727     {
9728     unsigned AT1CP1S            : 3;
9729     unsigned                    : 5;
9730     };
9731   } __AT1CSEL1bits_t;
9732 
9733 extern __at(0x088E) volatile __AT1CSEL1bits_t AT1CSEL1bits;
9734 
9735 #define _AT1CP1S0               0x01
9736 #define _CP1S0                  0x01
9737 #define _AT1CP1S1               0x02
9738 #define _CP1S1                  0x02
9739 #define _AT1CP1S2               0x04
9740 #define _CP1S2                  0x04
9741 
9742 //==============================================================================
9743 
9744 extern __at(0x088F) __sfr AT1CC1;
9745 
9746 //==============================================================================
9747 //        AT1CC1L Bits
9748 
9749 extern __at(0x088F) __sfr AT1CC1L;
9750 
9751 typedef union
9752   {
9753   struct
9754     {
9755     unsigned AT1CC10            : 1;
9756     unsigned AT1CC11            : 1;
9757     unsigned AT1CC12            : 1;
9758     unsigned AT1CC13            : 1;
9759     unsigned AT1CC14            : 1;
9760     unsigned AT1CC15            : 1;
9761     unsigned AT1CC16            : 1;
9762     unsigned AT1CC17            : 1;
9763     };
9764 
9765   struct
9766     {
9767     unsigned CC10               : 1;
9768     unsigned CC11               : 1;
9769     unsigned CC12               : 1;
9770     unsigned CC13               : 1;
9771     unsigned CC14               : 1;
9772     unsigned CC15               : 1;
9773     unsigned CC16               : 1;
9774     unsigned CC17               : 1;
9775     };
9776   } __AT1CC1Lbits_t;
9777 
9778 extern __at(0x088F) volatile __AT1CC1Lbits_t AT1CC1Lbits;
9779 
9780 #define _AT1CC10                0x01
9781 #define _CC10                   0x01
9782 #define _AT1CC11                0x02
9783 #define _CC11                   0x02
9784 #define _AT1CC12                0x04
9785 #define _CC12                   0x04
9786 #define _AT1CC13                0x08
9787 #define _CC13                   0x08
9788 #define _AT1CC14                0x10
9789 #define _CC14                   0x10
9790 #define _AT1CC15                0x20
9791 #define _CC15                   0x20
9792 #define _AT1CC16                0x40
9793 #define _CC16                   0x40
9794 #define _AT1CC17                0x80
9795 #define _CC17                   0x80
9796 
9797 //==============================================================================
9798 
9799 
9800 //==============================================================================
9801 //        AT1CC1H Bits
9802 
9803 extern __at(0x0890) __sfr AT1CC1H;
9804 
9805 typedef union
9806   {
9807   struct
9808     {
9809     unsigned AT1CC18            : 1;
9810     unsigned AT1CC19            : 1;
9811     unsigned                    : 1;
9812     unsigned                    : 1;
9813     unsigned                    : 1;
9814     unsigned                    : 1;
9815     unsigned                    : 1;
9816     unsigned                    : 1;
9817     };
9818 
9819   struct
9820     {
9821     unsigned CC18               : 1;
9822     unsigned CC19               : 1;
9823     unsigned                    : 1;
9824     unsigned                    : 1;
9825     unsigned                    : 1;
9826     unsigned                    : 1;
9827     unsigned                    : 1;
9828     unsigned                    : 1;
9829     };
9830   } __AT1CC1Hbits_t;
9831 
9832 extern __at(0x0890) volatile __AT1CC1Hbits_t AT1CC1Hbits;
9833 
9834 #define _AT1CC18                0x01
9835 #define _CC18                   0x01
9836 #define _AT1CC19                0x02
9837 #define _CC19                   0x02
9838 
9839 //==============================================================================
9840 
9841 
9842 //==============================================================================
9843 //        AT1CCON1 Bits
9844 
9845 extern __at(0x0891) __sfr AT1CCON1;
9846 
9847 typedef union
9848   {
9849   struct
9850     {
9851     unsigned AT1CC1MODE         : 1;
9852     unsigned                    : 1;
9853     unsigned                    : 1;
9854     unsigned AT1CAP1P           : 1;
9855     unsigned AT1CC1POL          : 1;
9856     unsigned                    : 1;
9857     unsigned                    : 1;
9858     unsigned AT1CC1EN           : 1;
9859     };
9860 
9861   struct
9862     {
9863     unsigned CC1MODE            : 1;
9864     unsigned                    : 1;
9865     unsigned                    : 1;
9866     unsigned CAP1P              : 1;
9867     unsigned CC1POL             : 1;
9868     unsigned                    : 1;
9869     unsigned                    : 1;
9870     unsigned CC1EN              : 1;
9871     };
9872   } __AT1CCON1bits_t;
9873 
9874 extern __at(0x0891) volatile __AT1CCON1bits_t AT1CCON1bits;
9875 
9876 #define _AT1CC1MODE             0x01
9877 #define _CC1MODE                0x01
9878 #define _AT1CAP1P               0x08
9879 #define _CAP1P                  0x08
9880 #define _AT1CC1POL              0x10
9881 #define _CC1POL                 0x10
9882 #define _AT1CC1EN               0x80
9883 #define _CC1EN                  0x80
9884 
9885 //==============================================================================
9886 
9887 
9888 //==============================================================================
9889 //        AT1CSEL2 Bits
9890 
9891 extern __at(0x0892) __sfr AT1CSEL2;
9892 
9893 typedef union
9894   {
9895   struct
9896     {
9897     unsigned AT1CP2S0           : 1;
9898     unsigned AT1CP2S1           : 1;
9899     unsigned AT1CP2S2           : 1;
9900     unsigned                    : 1;
9901     unsigned                    : 1;
9902     unsigned                    : 1;
9903     unsigned                    : 1;
9904     unsigned                    : 1;
9905     };
9906 
9907   struct
9908     {
9909     unsigned CP2S0              : 1;
9910     unsigned CP2S1              : 1;
9911     unsigned CP2S2              : 1;
9912     unsigned                    : 1;
9913     unsigned                    : 1;
9914     unsigned                    : 1;
9915     unsigned                    : 1;
9916     unsigned                    : 1;
9917     };
9918 
9919   struct
9920     {
9921     unsigned AT1CP2S            : 3;
9922     unsigned                    : 5;
9923     };
9924 
9925   struct
9926     {
9927     unsigned CP2S               : 3;
9928     unsigned                    : 5;
9929     };
9930   } __AT1CSEL2bits_t;
9931 
9932 extern __at(0x0892) volatile __AT1CSEL2bits_t AT1CSEL2bits;
9933 
9934 #define _AT1CP2S0               0x01
9935 #define _CP2S0                  0x01
9936 #define _AT1CP2S1               0x02
9937 #define _CP2S1                  0x02
9938 #define _AT1CP2S2               0x04
9939 #define _CP2S2                  0x04
9940 
9941 //==============================================================================
9942 
9943 extern __at(0x0893) __sfr AT1CC2;
9944 
9945 //==============================================================================
9946 //        AT1CC2L Bits
9947 
9948 extern __at(0x0893) __sfr AT1CC2L;
9949 
9950 typedef union
9951   {
9952   struct
9953     {
9954     unsigned AT1CC20            : 1;
9955     unsigned AT1CC21            : 1;
9956     unsigned AT1CC22            : 1;
9957     unsigned AT1CC23            : 1;
9958     unsigned AT1CC24            : 1;
9959     unsigned AT1CC25            : 1;
9960     unsigned AT1CC26            : 1;
9961     unsigned AT1CC27            : 1;
9962     };
9963 
9964   struct
9965     {
9966     unsigned CC20               : 1;
9967     unsigned CC21               : 1;
9968     unsigned CC22               : 1;
9969     unsigned CC13               : 1;
9970     unsigned CC24               : 1;
9971     unsigned CCW5               : 1;
9972     unsigned CC26               : 1;
9973     unsigned CC27               : 1;
9974     };
9975   } __AT1CC2Lbits_t;
9976 
9977 extern __at(0x0893) volatile __AT1CC2Lbits_t AT1CC2Lbits;
9978 
9979 #define _AT1CC2L_AT1CC20        0x01
9980 #define _AT1CC2L_CC20           0x01
9981 #define _AT1CC2L_AT1CC21        0x02
9982 #define _AT1CC2L_CC21           0x02
9983 #define _AT1CC2L_AT1CC22        0x04
9984 #define _AT1CC2L_CC22           0x04
9985 #define _AT1CC2L_AT1CC23        0x08
9986 #define _AT1CC2L_CC13           0x08
9987 #define _AT1CC2L_AT1CC24        0x10
9988 #define _AT1CC2L_CC24           0x10
9989 #define _AT1CC2L_AT1CC25        0x20
9990 #define _AT1CC2L_CCW5           0x20
9991 #define _AT1CC2L_AT1CC26        0x40
9992 #define _AT1CC2L_CC26           0x40
9993 #define _AT1CC2L_AT1CC27        0x80
9994 #define _AT1CC2L_CC27           0x80
9995 
9996 //==============================================================================
9997 
9998 
9999 //==============================================================================
10000 //        AT1CC2H Bits
10001 
10002 extern __at(0x0894) __sfr AT1CC2H;
10003 
10004 typedef union
10005   {
10006   struct
10007     {
10008     unsigned AT1CC28            : 1;
10009     unsigned AT1CC29            : 1;
10010     unsigned                    : 1;
10011     unsigned                    : 1;
10012     unsigned                    : 1;
10013     unsigned                    : 1;
10014     unsigned                    : 1;
10015     unsigned                    : 1;
10016     };
10017 
10018   struct
10019     {
10020     unsigned CC28               : 1;
10021     unsigned CC29               : 1;
10022     unsigned                    : 1;
10023     unsigned                    : 1;
10024     unsigned                    : 1;
10025     unsigned                    : 1;
10026     unsigned                    : 1;
10027     unsigned                    : 1;
10028     };
10029   } __AT1CC2Hbits_t;
10030 
10031 extern __at(0x0894) volatile __AT1CC2Hbits_t AT1CC2Hbits;
10032 
10033 #define _AT1CC28                0x01
10034 #define _CC28                   0x01
10035 #define _AT1CC29                0x02
10036 #define _CC29                   0x02
10037 
10038 //==============================================================================
10039 
10040 
10041 //==============================================================================
10042 //        AT1CCON2 Bits
10043 
10044 extern __at(0x0895) __sfr AT1CCON2;
10045 
10046 typedef union
10047   {
10048   struct
10049     {
10050     unsigned AT1CC2MODE         : 1;
10051     unsigned                    : 1;
10052     unsigned                    : 1;
10053     unsigned AT1CAP2P           : 1;
10054     unsigned AT1CC2POL          : 1;
10055     unsigned                    : 1;
10056     unsigned                    : 1;
10057     unsigned AT1CC2EN           : 1;
10058     };
10059 
10060   struct
10061     {
10062     unsigned CC2MODE            : 1;
10063     unsigned                    : 1;
10064     unsigned                    : 1;
10065     unsigned CAP2P              : 1;
10066     unsigned CC2POL             : 1;
10067     unsigned                    : 1;
10068     unsigned                    : 1;
10069     unsigned CC2EN              : 1;
10070     };
10071   } __AT1CCON2bits_t;
10072 
10073 extern __at(0x0895) volatile __AT1CCON2bits_t AT1CCON2bits;
10074 
10075 #define _AT1CC2MODE             0x01
10076 #define _CC2MODE                0x01
10077 #define _AT1CAP2P               0x08
10078 #define _CAP2P                  0x08
10079 #define _AT1CC2POL              0x10
10080 #define _CC2POL                 0x10
10081 #define _AT1CC2EN               0x80
10082 #define _CC2EN                  0x80
10083 
10084 //==============================================================================
10085 
10086 
10087 //==============================================================================
10088 //        AT1CSEL3 Bits
10089 
10090 extern __at(0x0896) __sfr AT1CSEL3;
10091 
10092 typedef union
10093   {
10094   struct
10095     {
10096     unsigned AT1CP3S0           : 1;
10097     unsigned AT1CP3S1           : 1;
10098     unsigned AT1CP3S2           : 1;
10099     unsigned                    : 1;
10100     unsigned                    : 1;
10101     unsigned                    : 1;
10102     unsigned                    : 1;
10103     unsigned                    : 1;
10104     };
10105 
10106   struct
10107     {
10108     unsigned CP3S0              : 1;
10109     unsigned CP3S1              : 1;
10110     unsigned CP3S2              : 1;
10111     unsigned                    : 1;
10112     unsigned                    : 1;
10113     unsigned                    : 1;
10114     unsigned                    : 1;
10115     unsigned                    : 1;
10116     };
10117 
10118   struct
10119     {
10120     unsigned CP3S               : 3;
10121     unsigned                    : 5;
10122     };
10123 
10124   struct
10125     {
10126     unsigned AT1CP3S            : 3;
10127     unsigned                    : 5;
10128     };
10129   } __AT1CSEL3bits_t;
10130 
10131 extern __at(0x0896) volatile __AT1CSEL3bits_t AT1CSEL3bits;
10132 
10133 #define _AT1CP3S0               0x01
10134 #define _CP3S0                  0x01
10135 #define _AT1CP3S1               0x02
10136 #define _CP3S1                  0x02
10137 #define _AT1CP3S2               0x04
10138 #define _CP3S2                  0x04
10139 
10140 //==============================================================================
10141 
10142 extern __at(0x0897) __sfr AT1CC3;
10143 
10144 //==============================================================================
10145 //        AT1CC3L Bits
10146 
10147 extern __at(0x0897) __sfr AT1CC3L;
10148 
10149 typedef union
10150   {
10151   struct
10152     {
10153     unsigned AT1CC30            : 1;
10154     unsigned AT1CC31            : 1;
10155     unsigned AT1CC32            : 1;
10156     unsigned AT1CC33            : 1;
10157     unsigned AT1CC34            : 1;
10158     unsigned AT1CC35            : 1;
10159     unsigned AT1CC36            : 1;
10160     unsigned AT1CC37            : 1;
10161     };
10162 
10163   struct
10164     {
10165     unsigned CC30               : 1;
10166     unsigned CC31               : 1;
10167     unsigned CC32               : 1;
10168     unsigned CC33               : 1;
10169     unsigned CC34               : 1;
10170     unsigned CC35               : 1;
10171     unsigned CC36               : 1;
10172     unsigned CC37               : 1;
10173     };
10174   } __AT1CC3Lbits_t;
10175 
10176 extern __at(0x0897) volatile __AT1CC3Lbits_t AT1CC3Lbits;
10177 
10178 #define _AT1CC30                0x01
10179 #define _CC30                   0x01
10180 #define _AT1CC31                0x02
10181 #define _CC31                   0x02
10182 #define _AT1CC32                0x04
10183 #define _CC32                   0x04
10184 #define _AT1CC33                0x08
10185 #define _CC33                   0x08
10186 #define _AT1CC34                0x10
10187 #define _CC34                   0x10
10188 #define _AT1CC35                0x20
10189 #define _CC35                   0x20
10190 #define _AT1CC36                0x40
10191 #define _CC36                   0x40
10192 #define _AT1CC37                0x80
10193 #define _CC37                   0x80
10194 
10195 //==============================================================================
10196 
10197 
10198 //==============================================================================
10199 //        AT1CC3H Bits
10200 
10201 extern __at(0x0898) __sfr AT1CC3H;
10202 
10203 typedef union
10204   {
10205   struct
10206     {
10207     unsigned AT1CC38            : 1;
10208     unsigned AT1CC39            : 1;
10209     unsigned                    : 1;
10210     unsigned                    : 1;
10211     unsigned                    : 1;
10212     unsigned                    : 1;
10213     unsigned                    : 1;
10214     unsigned                    : 1;
10215     };
10216 
10217   struct
10218     {
10219     unsigned CC38               : 1;
10220     unsigned CC39               : 1;
10221     unsigned                    : 1;
10222     unsigned                    : 1;
10223     unsigned                    : 1;
10224     unsigned                    : 1;
10225     unsigned                    : 1;
10226     unsigned                    : 1;
10227     };
10228   } __AT1CC3Hbits_t;
10229 
10230 extern __at(0x0898) volatile __AT1CC3Hbits_t AT1CC3Hbits;
10231 
10232 #define _AT1CC38                0x01
10233 #define _CC38                   0x01
10234 #define _AT1CC39                0x02
10235 #define _CC39                   0x02
10236 
10237 //==============================================================================
10238 
10239 
10240 //==============================================================================
10241 //        AT1CCON3 Bits
10242 
10243 extern __at(0x0899) __sfr AT1CCON3;
10244 
10245 typedef union
10246   {
10247   struct
10248     {
10249     unsigned AT1CC3MODE         : 1;
10250     unsigned                    : 1;
10251     unsigned                    : 1;
10252     unsigned AT1CAP3P           : 1;
10253     unsigned AT1CC3POL          : 1;
10254     unsigned                    : 1;
10255     unsigned                    : 1;
10256     unsigned AT1CC3EN           : 1;
10257     };
10258 
10259   struct
10260     {
10261     unsigned CC3MODE            : 1;
10262     unsigned                    : 1;
10263     unsigned                    : 1;
10264     unsigned CAP3P              : 1;
10265     unsigned CC3POL             : 1;
10266     unsigned                    : 1;
10267     unsigned                    : 1;
10268     unsigned CC3EN              : 1;
10269     };
10270   } __AT1CCON3bits_t;
10271 
10272 extern __at(0x0899) volatile __AT1CCON3bits_t AT1CCON3bits;
10273 
10274 #define _AT1CC3MODE             0x01
10275 #define _CC3MODE                0x01
10276 #define _AT1CAP3P               0x08
10277 #define _CAP3P                  0x08
10278 #define _AT1CC3POL              0x10
10279 #define _CC3POL                 0x10
10280 #define _AT1CC3EN               0x80
10281 #define _CC3EN                  0x80
10282 
10283 //==============================================================================
10284 
10285 extern __at(0x0D8C) __sfr SMT1TMR;
10286 
10287 //==============================================================================
10288 //        SMT1TMRL Bits
10289 
10290 extern __at(0x0D8C) __sfr SMT1TMRL;
10291 
10292 typedef struct
10293   {
10294   unsigned SMT1TMR0             : 1;
10295   unsigned SMT1TMR1             : 1;
10296   unsigned SMT1TMR2             : 1;
10297   unsigned SMT1TMR3             : 1;
10298   unsigned SMT1TMR4             : 1;
10299   unsigned SMT1TMR5             : 1;
10300   unsigned SMT1TMR6             : 1;
10301   unsigned SMT1TMR7             : 1;
10302   } __SMT1TMRLbits_t;
10303 
10304 extern __at(0x0D8C) volatile __SMT1TMRLbits_t SMT1TMRLbits;
10305 
10306 #define _SMT1TMR0               0x01
10307 #define _SMT1TMR1               0x02
10308 #define _SMT1TMR2               0x04
10309 #define _SMT1TMR3               0x08
10310 #define _SMT1TMR4               0x10
10311 #define _SMT1TMR5               0x20
10312 #define _SMT1TMR6               0x40
10313 #define _SMT1TMR7               0x80
10314 
10315 //==============================================================================
10316 
10317 
10318 //==============================================================================
10319 //        SMT1TMRH Bits
10320 
10321 extern __at(0x0D8D) __sfr SMT1TMRH;
10322 
10323 typedef struct
10324   {
10325   unsigned SMT1TMR8             : 1;
10326   unsigned SMT1TMR9             : 1;
10327   unsigned SMT1TMR10            : 1;
10328   unsigned SMT1TMR11            : 1;
10329   unsigned SMT1TMR12            : 1;
10330   unsigned SMT1TMR13            : 1;
10331   unsigned SMT1TMR14            : 1;
10332   unsigned SMT1TMR15            : 1;
10333   } __SMT1TMRHbits_t;
10334 
10335 extern __at(0x0D8D) volatile __SMT1TMRHbits_t SMT1TMRHbits;
10336 
10337 #define _SMT1TMR8               0x01
10338 #define _SMT1TMR9               0x02
10339 #define _SMT1TMR10              0x04
10340 #define _SMT1TMR11              0x08
10341 #define _SMT1TMR12              0x10
10342 #define _SMT1TMR13              0x20
10343 #define _SMT1TMR14              0x40
10344 #define _SMT1TMR15              0x80
10345 
10346 //==============================================================================
10347 
10348 
10349 //==============================================================================
10350 //        SMT1TMRU Bits
10351 
10352 extern __at(0x0D8E) __sfr SMT1TMRU;
10353 
10354 typedef struct
10355   {
10356   unsigned SMT1TMR16            : 1;
10357   unsigned SMT1TMR17            : 1;
10358   unsigned SMT1TMR18            : 1;
10359   unsigned SMT1TMR19            : 1;
10360   unsigned SMT1TMR20            : 1;
10361   unsigned SMT1TMR21            : 1;
10362   unsigned SMT1TMR22            : 1;
10363   unsigned SMT1TMR23            : 1;
10364   } __SMT1TMRUbits_t;
10365 
10366 extern __at(0x0D8E) volatile __SMT1TMRUbits_t SMT1TMRUbits;
10367 
10368 #define _SMT1TMR16              0x01
10369 #define _SMT1TMR17              0x02
10370 #define _SMT1TMR18              0x04
10371 #define _SMT1TMR19              0x08
10372 #define _SMT1TMR20              0x10
10373 #define _SMT1TMR21              0x20
10374 #define _SMT1TMR22              0x40
10375 #define _SMT1TMR23              0x80
10376 
10377 //==============================================================================
10378 
10379 extern __at(0x0D8F) __sfr SMT1CPR;
10380 
10381 //==============================================================================
10382 //        SMT1CPRL Bits
10383 
10384 extern __at(0x0D8F) __sfr SMT1CPRL;
10385 
10386 typedef struct
10387   {
10388   unsigned SMT1CPR0             : 1;
10389   unsigned SMT1CPR1             : 1;
10390   unsigned SMT1CPR2             : 1;
10391   unsigned SMT1CPR3             : 1;
10392   unsigned SMT1CPR4             : 1;
10393   unsigned SMT1CPR5             : 1;
10394   unsigned SMT1CPR6             : 1;
10395   unsigned SMT1CPR7             : 1;
10396   } __SMT1CPRLbits_t;
10397 
10398 extern __at(0x0D8F) volatile __SMT1CPRLbits_t SMT1CPRLbits;
10399 
10400 #define _SMT1CPR0               0x01
10401 #define _SMT1CPR1               0x02
10402 #define _SMT1CPR2               0x04
10403 #define _SMT1CPR3               0x08
10404 #define _SMT1CPR4               0x10
10405 #define _SMT1CPR5               0x20
10406 #define _SMT1CPR6               0x40
10407 #define _SMT1CPR7               0x80
10408 
10409 //==============================================================================
10410 
10411 
10412 //==============================================================================
10413 //        SMT1CPRH Bits
10414 
10415 extern __at(0x0D90) __sfr SMT1CPRH;
10416 
10417 typedef struct
10418   {
10419   unsigned SMT1CPR8             : 1;
10420   unsigned SMT1CPR9             : 1;
10421   unsigned SMT1CPR10            : 1;
10422   unsigned SMT1CPR11            : 1;
10423   unsigned SMT1CPR12            : 1;
10424   unsigned SMT1CPR13            : 1;
10425   unsigned SMT1CPR14            : 1;
10426   unsigned SMT1CPR15            : 1;
10427   } __SMT1CPRHbits_t;
10428 
10429 extern __at(0x0D90) volatile __SMT1CPRHbits_t SMT1CPRHbits;
10430 
10431 #define _SMT1CPR8               0x01
10432 #define _SMT1CPR9               0x02
10433 #define _SMT1CPR10              0x04
10434 #define _SMT1CPR11              0x08
10435 #define _SMT1CPR12              0x10
10436 #define _SMT1CPR13              0x20
10437 #define _SMT1CPR14              0x40
10438 #define _SMT1CPR15              0x80
10439 
10440 //==============================================================================
10441 
10442 
10443 //==============================================================================
10444 //        SMT1CPRU Bits
10445 
10446 extern __at(0x0D91) __sfr SMT1CPRU;
10447 
10448 typedef struct
10449   {
10450   unsigned SMT1CPR16            : 1;
10451   unsigned SMT1CPR17            : 1;
10452   unsigned SMT1CPR18            : 1;
10453   unsigned SMT1CPR19            : 1;
10454   unsigned SMT1CPR20            : 1;
10455   unsigned SMT1CPR21            : 1;
10456   unsigned SMT1CPR22            : 1;
10457   unsigned SMT1CPR23            : 1;
10458   } __SMT1CPRUbits_t;
10459 
10460 extern __at(0x0D91) volatile __SMT1CPRUbits_t SMT1CPRUbits;
10461 
10462 #define _SMT1CPR16              0x01
10463 #define _SMT1CPR17              0x02
10464 #define _SMT1CPR18              0x04
10465 #define _SMT1CPR19              0x08
10466 #define _SMT1CPR20              0x10
10467 #define _SMT1CPR21              0x20
10468 #define _SMT1CPR22              0x40
10469 #define _SMT1CPR23              0x80
10470 
10471 //==============================================================================
10472 
10473 extern __at(0x0D92) __sfr SMT1CPW;
10474 
10475 //==============================================================================
10476 //        SMT1CPWL Bits
10477 
10478 extern __at(0x0D92) __sfr SMT1CPWL;
10479 
10480 typedef struct
10481   {
10482   unsigned SMT1CPW0             : 1;
10483   unsigned SMT1CPW1             : 1;
10484   unsigned SMT1CPW2             : 1;
10485   unsigned SMT1CPW3             : 1;
10486   unsigned SMT1CPW4             : 1;
10487   unsigned SMT1CPW5             : 1;
10488   unsigned SMT1CPW6             : 1;
10489   unsigned SMT1CPW7             : 1;
10490   } __SMT1CPWLbits_t;
10491 
10492 extern __at(0x0D92) volatile __SMT1CPWLbits_t SMT1CPWLbits;
10493 
10494 #define _SMT1CPW0               0x01
10495 #define _SMT1CPW1               0x02
10496 #define _SMT1CPW2               0x04
10497 #define _SMT1CPW3               0x08
10498 #define _SMT1CPW4               0x10
10499 #define _SMT1CPW5               0x20
10500 #define _SMT1CPW6               0x40
10501 #define _SMT1CPW7               0x80
10502 
10503 //==============================================================================
10504 
10505 
10506 //==============================================================================
10507 //        SMT1CPWH Bits
10508 
10509 extern __at(0x0D93) __sfr SMT1CPWH;
10510 
10511 typedef struct
10512   {
10513   unsigned SMT1CPW8             : 1;
10514   unsigned SMT1CPW9             : 1;
10515   unsigned SMT1CPW10            : 1;
10516   unsigned SMT1CPW11            : 1;
10517   unsigned SMT1CPW12            : 1;
10518   unsigned SMT1CPW13            : 1;
10519   unsigned SMT1CPW14            : 1;
10520   unsigned SMT1CPW15            : 1;
10521   } __SMT1CPWHbits_t;
10522 
10523 extern __at(0x0D93) volatile __SMT1CPWHbits_t SMT1CPWHbits;
10524 
10525 #define _SMT1CPW8               0x01
10526 #define _SMT1CPW9               0x02
10527 #define _SMT1CPW10              0x04
10528 #define _SMT1CPW11              0x08
10529 #define _SMT1CPW12              0x10
10530 #define _SMT1CPW13              0x20
10531 #define _SMT1CPW14              0x40
10532 #define _SMT1CPW15              0x80
10533 
10534 //==============================================================================
10535 
10536 
10537 //==============================================================================
10538 //        SMT1CPWU Bits
10539 
10540 extern __at(0x0D94) __sfr SMT1CPWU;
10541 
10542 typedef struct
10543   {
10544   unsigned SMT1CPW16            : 1;
10545   unsigned SMT1CPW17            : 1;
10546   unsigned SMT1CPW18            : 1;
10547   unsigned SMT1CPW19            : 1;
10548   unsigned SMT1CPW20            : 1;
10549   unsigned SMT1CPW21            : 1;
10550   unsigned SMT1CPW22            : 1;
10551   unsigned SMT1CPW23            : 1;
10552   } __SMT1CPWUbits_t;
10553 
10554 extern __at(0x0D94) volatile __SMT1CPWUbits_t SMT1CPWUbits;
10555 
10556 #define _SMT1CPW16              0x01
10557 #define _SMT1CPW17              0x02
10558 #define _SMT1CPW18              0x04
10559 #define _SMT1CPW19              0x08
10560 #define _SMT1CPW20              0x10
10561 #define _SMT1CPW21              0x20
10562 #define _SMT1CPW22              0x40
10563 #define _SMT1CPW23              0x80
10564 
10565 //==============================================================================
10566 
10567 extern __at(0x0D95) __sfr SMT1PR;
10568 
10569 //==============================================================================
10570 //        SMT1PRL Bits
10571 
10572 extern __at(0x0D95) __sfr SMT1PRL;
10573 
10574 typedef struct
10575   {
10576   unsigned SMT1PR0              : 1;
10577   unsigned SMT1PR1              : 1;
10578   unsigned SMT1PR2              : 1;
10579   unsigned SMT1PR3              : 1;
10580   unsigned SMT1PR4              : 1;
10581   unsigned SMT1PR5              : 1;
10582   unsigned SMT1PR6              : 1;
10583   unsigned SMT1PR7              : 1;
10584   } __SMT1PRLbits_t;
10585 
10586 extern __at(0x0D95) volatile __SMT1PRLbits_t SMT1PRLbits;
10587 
10588 #define _SMT1PR0                0x01
10589 #define _SMT1PR1                0x02
10590 #define _SMT1PR2                0x04
10591 #define _SMT1PR3                0x08
10592 #define _SMT1PR4                0x10
10593 #define _SMT1PR5                0x20
10594 #define _SMT1PR6                0x40
10595 #define _SMT1PR7                0x80
10596 
10597 //==============================================================================
10598 
10599 
10600 //==============================================================================
10601 //        SMT1PRH Bits
10602 
10603 extern __at(0x0D96) __sfr SMT1PRH;
10604 
10605 typedef struct
10606   {
10607   unsigned SMT1PR8              : 1;
10608   unsigned SMT1PR9              : 1;
10609   unsigned SMT1PR10             : 1;
10610   unsigned SMT1PR11             : 1;
10611   unsigned SMT1PR12             : 1;
10612   unsigned SMT1PR13             : 1;
10613   unsigned SMT1PR14             : 1;
10614   unsigned SMT1PR15             : 1;
10615   } __SMT1PRHbits_t;
10616 
10617 extern __at(0x0D96) volatile __SMT1PRHbits_t SMT1PRHbits;
10618 
10619 #define _SMT1PR8                0x01
10620 #define _SMT1PR9                0x02
10621 #define _SMT1PR10               0x04
10622 #define _SMT1PR11               0x08
10623 #define _SMT1PR12               0x10
10624 #define _SMT1PR13               0x20
10625 #define _SMT1PR14               0x40
10626 #define _SMT1PR15               0x80
10627 
10628 //==============================================================================
10629 
10630 
10631 //==============================================================================
10632 //        SMT1PRU Bits
10633 
10634 extern __at(0x0D97) __sfr SMT1PRU;
10635 
10636 typedef struct
10637   {
10638   unsigned SMT1PR16             : 1;
10639   unsigned SMT1PR17             : 1;
10640   unsigned SMT1PR18             : 1;
10641   unsigned SMT1PR19             : 1;
10642   unsigned SMT1PR20             : 1;
10643   unsigned SMT1PR21             : 1;
10644   unsigned SMT1PR22             : 1;
10645   unsigned SMT1PR23             : 1;
10646   } __SMT1PRUbits_t;
10647 
10648 extern __at(0x0D97) volatile __SMT1PRUbits_t SMT1PRUbits;
10649 
10650 #define _SMT1PR16               0x01
10651 #define _SMT1PR17               0x02
10652 #define _SMT1PR18               0x04
10653 #define _SMT1PR19               0x08
10654 #define _SMT1PR20               0x10
10655 #define _SMT1PR21               0x20
10656 #define _SMT1PR22               0x40
10657 #define _SMT1PR23               0x80
10658 
10659 //==============================================================================
10660 
10661 
10662 //==============================================================================
10663 //        SMT1CON0 Bits
10664 
10665 extern __at(0x0D98) __sfr SMT1CON0;
10666 
10667 typedef union
10668   {
10669   struct
10670     {
10671     unsigned SMT1PS0            : 1;
10672     unsigned SMT1PS1            : 1;
10673     unsigned CPOL               : 1;
10674     unsigned SPOL               : 1;
10675     unsigned WPOL               : 1;
10676     unsigned STP                : 1;
10677     unsigned                    : 1;
10678     unsigned EN                 : 1;
10679     };
10680 
10681   struct
10682     {
10683     unsigned SMT1PS             : 2;
10684     unsigned                    : 6;
10685     };
10686   } __SMT1CON0bits_t;
10687 
10688 extern __at(0x0D98) volatile __SMT1CON0bits_t SMT1CON0bits;
10689 
10690 #define _SMT1CON0_SMT1PS0       0x01
10691 #define _SMT1CON0_SMT1PS1       0x02
10692 #define _SMT1CON0_CPOL          0x04
10693 #define _SMT1CON0_SPOL          0x08
10694 #define _SMT1CON0_WPOL          0x10
10695 #define _SMT1CON0_STP           0x20
10696 #define _SMT1CON0_EN            0x80
10697 
10698 //==============================================================================
10699 
10700 
10701 //==============================================================================
10702 //        SMT1CON1 Bits
10703 
10704 extern __at(0x0D99) __sfr SMT1CON1;
10705 
10706 typedef union
10707   {
10708   struct
10709     {
10710     unsigned MODE0              : 1;
10711     unsigned MODE1              : 1;
10712     unsigned MODE2              : 1;
10713     unsigned MODE3              : 1;
10714     unsigned                    : 1;
10715     unsigned                    : 1;
10716     unsigned REPEAT             : 1;
10717     unsigned SMT1GO             : 1;
10718     };
10719 
10720   struct
10721     {
10722     unsigned SMT1MODE0          : 1;
10723     unsigned SMT1MODE1          : 1;
10724     unsigned SMT1MODE2          : 1;
10725     unsigned SMT1MODE3          : 1;
10726     unsigned                    : 1;
10727     unsigned                    : 1;
10728     unsigned SMT1REPEAT         : 1;
10729     unsigned                    : 1;
10730     };
10731 
10732   struct
10733     {
10734     unsigned SMT1MODE           : 4;
10735     unsigned                    : 4;
10736     };
10737 
10738   struct
10739     {
10740     unsigned MODE               : 4;
10741     unsigned                    : 4;
10742     };
10743   } __SMT1CON1bits_t;
10744 
10745 extern __at(0x0D99) volatile __SMT1CON1bits_t SMT1CON1bits;
10746 
10747 #define _SMT1CON1_MODE0         0x01
10748 #define _SMT1CON1_SMT1MODE0     0x01
10749 #define _SMT1CON1_MODE1         0x02
10750 #define _SMT1CON1_SMT1MODE1     0x02
10751 #define _SMT1CON1_MODE2         0x04
10752 #define _SMT1CON1_SMT1MODE2     0x04
10753 #define _SMT1CON1_MODE3         0x08
10754 #define _SMT1CON1_SMT1MODE3     0x08
10755 #define _SMT1CON1_REPEAT        0x40
10756 #define _SMT1CON1_SMT1REPEAT    0x40
10757 #define _SMT1CON1_SMT1GO        0x80
10758 
10759 //==============================================================================
10760 
10761 
10762 //==============================================================================
10763 //        SMT1STAT Bits
10764 
10765 extern __at(0x0D9A) __sfr SMT1STAT;
10766 
10767 typedef union
10768   {
10769   struct
10770     {
10771     unsigned AS                 : 1;
10772     unsigned WS                 : 1;
10773     unsigned TS                 : 1;
10774     unsigned                    : 1;
10775     unsigned                    : 1;
10776     unsigned RST                : 1;
10777     unsigned CPWUP              : 1;
10778     unsigned CPRUP              : 1;
10779     };
10780 
10781   struct
10782     {
10783     unsigned SMT1AS             : 1;
10784     unsigned SMT1WS             : 1;
10785     unsigned SMT1TS             : 1;
10786     unsigned                    : 1;
10787     unsigned                    : 1;
10788     unsigned SMT1RESET          : 1;
10789     unsigned SMT1CPWUP          : 1;
10790     unsigned SMT1CPRUP          : 1;
10791     };
10792   } __SMT1STATbits_t;
10793 
10794 extern __at(0x0D9A) volatile __SMT1STATbits_t SMT1STATbits;
10795 
10796 #define _AS                     0x01
10797 #define _SMT1AS                 0x01
10798 #define _WS                     0x02
10799 #define _SMT1WS                 0x02
10800 #define _TS                     0x04
10801 #define _SMT1TS                 0x04
10802 #define _RST                    0x20
10803 #define _SMT1RESET              0x20
10804 #define _CPWUP                  0x40
10805 #define _SMT1CPWUP              0x40
10806 #define _CPRUP                  0x80
10807 #define _SMT1CPRUP              0x80
10808 
10809 //==============================================================================
10810 
10811 
10812 //==============================================================================
10813 //        SMT1CLK Bits
10814 
10815 extern __at(0x0D9B) __sfr SMT1CLK;
10816 
10817 typedef union
10818   {
10819   struct
10820     {
10821     unsigned CSEL0              : 1;
10822     unsigned CSEL1              : 1;
10823     unsigned CSEL2              : 1;
10824     unsigned                    : 1;
10825     unsigned                    : 1;
10826     unsigned                    : 1;
10827     unsigned                    : 1;
10828     unsigned                    : 1;
10829     };
10830 
10831   struct
10832     {
10833     unsigned SMT1CSEL0          : 1;
10834     unsigned SMT1CSEL1          : 1;
10835     unsigned SMT1CSEL2          : 1;
10836     unsigned                    : 1;
10837     unsigned                    : 1;
10838     unsigned                    : 1;
10839     unsigned                    : 1;
10840     unsigned                    : 1;
10841     };
10842 
10843   struct
10844     {
10845     unsigned CSEL               : 3;
10846     unsigned                    : 5;
10847     };
10848 
10849   struct
10850     {
10851     unsigned SMT1CSEL           : 3;
10852     unsigned                    : 5;
10853     };
10854   } __SMT1CLKbits_t;
10855 
10856 extern __at(0x0D9B) volatile __SMT1CLKbits_t SMT1CLKbits;
10857 
10858 #define _CSEL0                  0x01
10859 #define _SMT1CSEL0              0x01
10860 #define _CSEL1                  0x02
10861 #define _SMT1CSEL1              0x02
10862 #define _CSEL2                  0x04
10863 #define _SMT1CSEL2              0x04
10864 
10865 //==============================================================================
10866 
10867 
10868 //==============================================================================
10869 //        SMT1SIG Bits
10870 
10871 extern __at(0x0D9C) __sfr SMT1SIG;
10872 
10873 typedef union
10874   {
10875   struct
10876     {
10877     unsigned SSEL0              : 1;
10878     unsigned SSEL1              : 1;
10879     unsigned SSEL2              : 1;
10880     unsigned SSEL3              : 1;
10881     unsigned SSEL4              : 1;
10882     unsigned                    : 1;
10883     unsigned                    : 1;
10884     unsigned                    : 1;
10885     };
10886 
10887   struct
10888     {
10889     unsigned SMT1SSEL0          : 1;
10890     unsigned SMT1SSEL1          : 1;
10891     unsigned SMT1SSEL2          : 1;
10892     unsigned SMT1SSEL3          : 1;
10893     unsigned SMT1SSEL4          : 1;
10894     unsigned                    : 1;
10895     unsigned                    : 1;
10896     unsigned                    : 1;
10897     };
10898 
10899   struct
10900     {
10901     unsigned SSEL               : 5;
10902     unsigned                    : 3;
10903     };
10904 
10905   struct
10906     {
10907     unsigned SMT1SSEL           : 5;
10908     unsigned                    : 3;
10909     };
10910   } __SMT1SIGbits_t;
10911 
10912 extern __at(0x0D9C) volatile __SMT1SIGbits_t SMT1SIGbits;
10913 
10914 #define _SMT1SIG_SSEL0          0x01
10915 #define _SMT1SIG_SMT1SSEL0      0x01
10916 #define _SMT1SIG_SSEL1          0x02
10917 #define _SMT1SIG_SMT1SSEL1      0x02
10918 #define _SMT1SIG_SSEL2          0x04
10919 #define _SMT1SIG_SMT1SSEL2      0x04
10920 #define _SMT1SIG_SSEL3          0x08
10921 #define _SMT1SIG_SMT1SSEL3      0x08
10922 #define _SMT1SIG_SSEL4          0x10
10923 #define _SMT1SIG_SMT1SSEL4      0x10
10924 
10925 //==============================================================================
10926 
10927 
10928 //==============================================================================
10929 //        SMT1WIN Bits
10930 
10931 extern __at(0x0D9D) __sfr SMT1WIN;
10932 
10933 typedef union
10934   {
10935   struct
10936     {
10937     unsigned WSEL0              : 1;
10938     unsigned WSEL1              : 1;
10939     unsigned WSEL2              : 1;
10940     unsigned WSEL3              : 1;
10941     unsigned WSEL4              : 1;
10942     unsigned                    : 1;
10943     unsigned                    : 1;
10944     unsigned                    : 1;
10945     };
10946 
10947   struct
10948     {
10949     unsigned SMT1WSEL0          : 1;
10950     unsigned SMT1WSEL1          : 1;
10951     unsigned SMT1WSEL2          : 1;
10952     unsigned SMT1WSEL3          : 1;
10953     unsigned SMT1WSEL4          : 1;
10954     unsigned                    : 1;
10955     unsigned                    : 1;
10956     unsigned                    : 1;
10957     };
10958 
10959   struct
10960     {
10961     unsigned SMT1WSEL           : 5;
10962     unsigned                    : 3;
10963     };
10964 
10965   struct
10966     {
10967     unsigned WSEL               : 5;
10968     unsigned                    : 3;
10969     };
10970   } __SMT1WINbits_t;
10971 
10972 extern __at(0x0D9D) volatile __SMT1WINbits_t SMT1WINbits;
10973 
10974 #define _WSEL0                  0x01
10975 #define _SMT1WSEL0              0x01
10976 #define _WSEL1                  0x02
10977 #define _SMT1WSEL1              0x02
10978 #define _WSEL2                  0x04
10979 #define _SMT1WSEL2              0x04
10980 #define _WSEL3                  0x08
10981 #define _SMT1WSEL3              0x08
10982 #define _WSEL4                  0x10
10983 #define _SMT1WSEL4              0x10
10984 
10985 //==============================================================================
10986 
10987 extern __at(0x0D9E) __sfr SMT2TMR;
10988 
10989 //==============================================================================
10990 //        SMT2TMRL Bits
10991 
10992 extern __at(0x0D9E) __sfr SMT2TMRL;
10993 
10994 typedef struct
10995   {
10996   unsigned SMT2TMR0             : 1;
10997   unsigned SMT2TMR1             : 1;
10998   unsigned SMT2TMR2             : 1;
10999   unsigned SMT2TMR3             : 1;
11000   unsigned SMT2TMR4             : 1;
11001   unsigned SMT2TMR5             : 1;
11002   unsigned SMT2TMR6             : 1;
11003   unsigned SMT2TMR7             : 1;
11004   } __SMT2TMRLbits_t;
11005 
11006 extern __at(0x0D9E) volatile __SMT2TMRLbits_t SMT2TMRLbits;
11007 
11008 #define _SMT2TMR0               0x01
11009 #define _SMT2TMR1               0x02
11010 #define _SMT2TMR2               0x04
11011 #define _SMT2TMR3               0x08
11012 #define _SMT2TMR4               0x10
11013 #define _SMT2TMR5               0x20
11014 #define _SMT2TMR6               0x40
11015 #define _SMT2TMR7               0x80
11016 
11017 //==============================================================================
11018 
11019 
11020 //==============================================================================
11021 //        SMT2TMRH Bits
11022 
11023 extern __at(0x0D9F) __sfr SMT2TMRH;
11024 
11025 typedef struct
11026   {
11027   unsigned SMT2TMR8             : 1;
11028   unsigned SMT2TMR9             : 1;
11029   unsigned SMT2TMR10            : 1;
11030   unsigned SMT2TMR11            : 1;
11031   unsigned SMT2TMR12            : 1;
11032   unsigned SMT2TMR13            : 1;
11033   unsigned SMT2TMR14            : 1;
11034   unsigned SMT2TMR15            : 1;
11035   } __SMT2TMRHbits_t;
11036 
11037 extern __at(0x0D9F) volatile __SMT2TMRHbits_t SMT2TMRHbits;
11038 
11039 #define _SMT2TMR8               0x01
11040 #define _SMT2TMR9               0x02
11041 #define _SMT2TMR10              0x04
11042 #define _SMT2TMR11              0x08
11043 #define _SMT2TMR12              0x10
11044 #define _SMT2TMR13              0x20
11045 #define _SMT2TMR14              0x40
11046 #define _SMT2TMR15              0x80
11047 
11048 //==============================================================================
11049 
11050 
11051 //==============================================================================
11052 //        SMT2TMRU Bits
11053 
11054 extern __at(0x0DA0) __sfr SMT2TMRU;
11055 
11056 typedef struct
11057   {
11058   unsigned SMT2TMR16            : 1;
11059   unsigned SMT2TMR17            : 1;
11060   unsigned SMT2TMR18            : 1;
11061   unsigned SMT2TMR19            : 1;
11062   unsigned SMT2TMR20            : 1;
11063   unsigned SMT2TMR21            : 1;
11064   unsigned SMT2TMR22            : 1;
11065   unsigned SMT2TMR23            : 1;
11066   } __SMT2TMRUbits_t;
11067 
11068 extern __at(0x0DA0) volatile __SMT2TMRUbits_t SMT2TMRUbits;
11069 
11070 #define _SMT2TMR16              0x01
11071 #define _SMT2TMR17              0x02
11072 #define _SMT2TMR18              0x04
11073 #define _SMT2TMR19              0x08
11074 #define _SMT2TMR20              0x10
11075 #define _SMT2TMR21              0x20
11076 #define _SMT2TMR22              0x40
11077 #define _SMT2TMR23              0x80
11078 
11079 //==============================================================================
11080 
11081 extern __at(0x0DA1) __sfr SMT2CPR;
11082 
11083 //==============================================================================
11084 //        SMT2CPRL Bits
11085 
11086 extern __at(0x0DA1) __sfr SMT2CPRL;
11087 
11088 typedef struct
11089   {
11090   unsigned SMT2CPR0             : 1;
11091   unsigned SMT2CPR1             : 1;
11092   unsigned SMT2CPR2             : 1;
11093   unsigned SMT2CPR3             : 1;
11094   unsigned SMT2CPR4             : 1;
11095   unsigned SMT2CPR5             : 1;
11096   unsigned SMT2CPR6             : 1;
11097   unsigned SMT2CPR7             : 1;
11098   } __SMT2CPRLbits_t;
11099 
11100 extern __at(0x0DA1) volatile __SMT2CPRLbits_t SMT2CPRLbits;
11101 
11102 #define _SMT2CPR0               0x01
11103 #define _SMT2CPR1               0x02
11104 #define _SMT2CPR2               0x04
11105 #define _SMT2CPR3               0x08
11106 #define _SMT2CPR4               0x10
11107 #define _SMT2CPR5               0x20
11108 #define _SMT2CPR6               0x40
11109 #define _SMT2CPR7               0x80
11110 
11111 //==============================================================================
11112 
11113 
11114 //==============================================================================
11115 //        SMT2CPRH Bits
11116 
11117 extern __at(0x0DA2) __sfr SMT2CPRH;
11118 
11119 typedef struct
11120   {
11121   unsigned SMT2CPR8             : 1;
11122   unsigned SMT2CPR9             : 1;
11123   unsigned SMT2CPR10            : 1;
11124   unsigned SMT2CPR11            : 1;
11125   unsigned SMT2CPR12            : 1;
11126   unsigned SMT2CPR13            : 1;
11127   unsigned SMT2CPR14            : 1;
11128   unsigned SMT2CPR15            : 1;
11129   } __SMT2CPRHbits_t;
11130 
11131 extern __at(0x0DA2) volatile __SMT2CPRHbits_t SMT2CPRHbits;
11132 
11133 #define _SMT2CPR8               0x01
11134 #define _SMT2CPR9               0x02
11135 #define _SMT2CPR10              0x04
11136 #define _SMT2CPR11              0x08
11137 #define _SMT2CPR12              0x10
11138 #define _SMT2CPR13              0x20
11139 #define _SMT2CPR14              0x40
11140 #define _SMT2CPR15              0x80
11141 
11142 //==============================================================================
11143 
11144 
11145 //==============================================================================
11146 //        SMT2CPRU Bits
11147 
11148 extern __at(0x0DA3) __sfr SMT2CPRU;
11149 
11150 typedef struct
11151   {
11152   unsigned SMT2CPR16            : 1;
11153   unsigned SMT2CPR17            : 1;
11154   unsigned SMT2CPR18            : 1;
11155   unsigned SMT2CPR19            : 1;
11156   unsigned SMT2CPR20            : 1;
11157   unsigned SMT2CPR21            : 1;
11158   unsigned SMT2CPR22            : 1;
11159   unsigned SMT2CPR23            : 1;
11160   } __SMT2CPRUbits_t;
11161 
11162 extern __at(0x0DA3) volatile __SMT2CPRUbits_t SMT2CPRUbits;
11163 
11164 #define _SMT2CPR16              0x01
11165 #define _SMT2CPR17              0x02
11166 #define _SMT2CPR18              0x04
11167 #define _SMT2CPR19              0x08
11168 #define _SMT2CPR20              0x10
11169 #define _SMT2CPR21              0x20
11170 #define _SMT2CPR22              0x40
11171 #define _SMT2CPR23              0x80
11172 
11173 //==============================================================================
11174 
11175 extern __at(0x0DA4) __sfr SMT2CPW;
11176 
11177 //==============================================================================
11178 //        SMT2CPWL Bits
11179 
11180 extern __at(0x0DA4) __sfr SMT2CPWL;
11181 
11182 typedef struct
11183   {
11184   unsigned SMT2CPW0             : 1;
11185   unsigned SMT2CPW1             : 1;
11186   unsigned SMT2CPW2             : 1;
11187   unsigned SMT2CPW3             : 1;
11188   unsigned SMT2CPW4             : 1;
11189   unsigned SMT2CPW5             : 1;
11190   unsigned SMT2CPW6             : 1;
11191   unsigned SMT2CPW7             : 1;
11192   } __SMT2CPWLbits_t;
11193 
11194 extern __at(0x0DA4) volatile __SMT2CPWLbits_t SMT2CPWLbits;
11195 
11196 #define _SMT2CPW0               0x01
11197 #define _SMT2CPW1               0x02
11198 #define _SMT2CPW2               0x04
11199 #define _SMT2CPW3               0x08
11200 #define _SMT2CPW4               0x10
11201 #define _SMT2CPW5               0x20
11202 #define _SMT2CPW6               0x40
11203 #define _SMT2CPW7               0x80
11204 
11205 //==============================================================================
11206 
11207 
11208 //==============================================================================
11209 //        SMT2CPWH Bits
11210 
11211 extern __at(0x0DA5) __sfr SMT2CPWH;
11212 
11213 typedef struct
11214   {
11215   unsigned SMT2CPW8             : 1;
11216   unsigned SMT2CPW9             : 1;
11217   unsigned SMT2CPW10            : 1;
11218   unsigned SMT2CPW11            : 1;
11219   unsigned SMT2CPW12            : 1;
11220   unsigned SMT2CPW13            : 1;
11221   unsigned SMT2CPW14            : 1;
11222   unsigned SMT2CPW15            : 1;
11223   } __SMT2CPWHbits_t;
11224 
11225 extern __at(0x0DA5) volatile __SMT2CPWHbits_t SMT2CPWHbits;
11226 
11227 #define _SMT2CPW8               0x01
11228 #define _SMT2CPW9               0x02
11229 #define _SMT2CPW10              0x04
11230 #define _SMT2CPW11              0x08
11231 #define _SMT2CPW12              0x10
11232 #define _SMT2CPW13              0x20
11233 #define _SMT2CPW14              0x40
11234 #define _SMT2CPW15              0x80
11235 
11236 //==============================================================================
11237 
11238 
11239 //==============================================================================
11240 //        SMT2CPWU Bits
11241 
11242 extern __at(0x0DA6) __sfr SMT2CPWU;
11243 
11244 typedef struct
11245   {
11246   unsigned SMT2CPW16            : 1;
11247   unsigned SMT2CPW17            : 1;
11248   unsigned SMT2CPW18            : 1;
11249   unsigned SMT2CPW19            : 1;
11250   unsigned SMT2CPW20            : 1;
11251   unsigned SMT2CPW21            : 1;
11252   unsigned SMT2CPW22            : 1;
11253   unsigned SMT2CPW23            : 1;
11254   } __SMT2CPWUbits_t;
11255 
11256 extern __at(0x0DA6) volatile __SMT2CPWUbits_t SMT2CPWUbits;
11257 
11258 #define _SMT2CPW16              0x01
11259 #define _SMT2CPW17              0x02
11260 #define _SMT2CPW18              0x04
11261 #define _SMT2CPW19              0x08
11262 #define _SMT2CPW20              0x10
11263 #define _SMT2CPW21              0x20
11264 #define _SMT2CPW22              0x40
11265 #define _SMT2CPW23              0x80
11266 
11267 //==============================================================================
11268 
11269 extern __at(0x0DA7) __sfr SMT2PR;
11270 
11271 //==============================================================================
11272 //        SMT2PRL Bits
11273 
11274 extern __at(0x0DA7) __sfr SMT2PRL;
11275 
11276 typedef struct
11277   {
11278   unsigned SMT2PR0              : 1;
11279   unsigned SMT2PR1              : 1;
11280   unsigned SMT2PR2              : 1;
11281   unsigned SMT2PR3              : 1;
11282   unsigned SMT2PR4              : 1;
11283   unsigned SMT2PR5              : 1;
11284   unsigned SMT2PR6              : 1;
11285   unsigned SMT2PR7              : 1;
11286   } __SMT2PRLbits_t;
11287 
11288 extern __at(0x0DA7) volatile __SMT2PRLbits_t SMT2PRLbits;
11289 
11290 #define _SMT2PR0                0x01
11291 #define _SMT2PR1                0x02
11292 #define _SMT2PR2                0x04
11293 #define _SMT2PR3                0x08
11294 #define _SMT2PR4                0x10
11295 #define _SMT2PR5                0x20
11296 #define _SMT2PR6                0x40
11297 #define _SMT2PR7                0x80
11298 
11299 //==============================================================================
11300 
11301 
11302 //==============================================================================
11303 //        SMT2PRH Bits
11304 
11305 extern __at(0x0DA8) __sfr SMT2PRH;
11306 
11307 typedef struct
11308   {
11309   unsigned SMT2PR8              : 1;
11310   unsigned SMT2PR9              : 1;
11311   unsigned SMT2PR10             : 1;
11312   unsigned SMT2PR11             : 1;
11313   unsigned SMT2PR12             : 1;
11314   unsigned SMT2PR13             : 1;
11315   unsigned SMT2PR14             : 1;
11316   unsigned SMT2PR15             : 1;
11317   } __SMT2PRHbits_t;
11318 
11319 extern __at(0x0DA8) volatile __SMT2PRHbits_t SMT2PRHbits;
11320 
11321 #define _SMT2PR8                0x01
11322 #define _SMT2PR9                0x02
11323 #define _SMT2PR10               0x04
11324 #define _SMT2PR11               0x08
11325 #define _SMT2PR12               0x10
11326 #define _SMT2PR13               0x20
11327 #define _SMT2PR14               0x40
11328 #define _SMT2PR15               0x80
11329 
11330 //==============================================================================
11331 
11332 
11333 //==============================================================================
11334 //        SMT2PRU Bits
11335 
11336 extern __at(0x0DA9) __sfr SMT2PRU;
11337 
11338 typedef struct
11339   {
11340   unsigned SMT2PR16             : 1;
11341   unsigned SMT2PR17             : 1;
11342   unsigned SMT2PR18             : 1;
11343   unsigned SMT2PR19             : 1;
11344   unsigned SMT2PR20             : 1;
11345   unsigned SMT2PR21             : 1;
11346   unsigned SMT2PR22             : 1;
11347   unsigned SMT2PR23             : 1;
11348   } __SMT2PRUbits_t;
11349 
11350 extern __at(0x0DA9) volatile __SMT2PRUbits_t SMT2PRUbits;
11351 
11352 #define _SMT2PR16               0x01
11353 #define _SMT2PR17               0x02
11354 #define _SMT2PR18               0x04
11355 #define _SMT2PR19               0x08
11356 #define _SMT2PR20               0x10
11357 #define _SMT2PR21               0x20
11358 #define _SMT2PR22               0x40
11359 #define _SMT2PR23               0x80
11360 
11361 //==============================================================================
11362 
11363 
11364 //==============================================================================
11365 //        SMT2CON0 Bits
11366 
11367 extern __at(0x0DAA) __sfr SMT2CON0;
11368 
11369 typedef union
11370   {
11371   struct
11372     {
11373     unsigned SMT2PS0            : 1;
11374     unsigned SMT2PS1            : 1;
11375     unsigned CPOL               : 1;
11376     unsigned SPOL               : 1;
11377     unsigned WPOL               : 1;
11378     unsigned STP                : 1;
11379     unsigned                    : 1;
11380     unsigned EN                 : 1;
11381     };
11382 
11383   struct
11384     {
11385     unsigned SMT2PS             : 2;
11386     unsigned                    : 6;
11387     };
11388   } __SMT2CON0bits_t;
11389 
11390 extern __at(0x0DAA) volatile __SMT2CON0bits_t SMT2CON0bits;
11391 
11392 #define _SMT2CON0_SMT2PS0       0x01
11393 #define _SMT2CON0_SMT2PS1       0x02
11394 #define _SMT2CON0_CPOL          0x04
11395 #define _SMT2CON0_SPOL          0x08
11396 #define _SMT2CON0_WPOL          0x10
11397 #define _SMT2CON0_STP           0x20
11398 #define _SMT2CON0_EN            0x80
11399 
11400 //==============================================================================
11401 
11402 
11403 //==============================================================================
11404 //        SMT2CON1 Bits
11405 
11406 extern __at(0x0DAB) __sfr SMT2CON1;
11407 
11408 typedef union
11409   {
11410   struct
11411     {
11412     unsigned MODE0              : 1;
11413     unsigned MODE1              : 1;
11414     unsigned MODE2              : 1;
11415     unsigned MODE3              : 1;
11416     unsigned                    : 1;
11417     unsigned                    : 1;
11418     unsigned REPEAT             : 1;
11419     unsigned SMT2GO             : 1;
11420     };
11421 
11422   struct
11423     {
11424     unsigned SMT2MODE0          : 1;
11425     unsigned SMT2MODE1          : 1;
11426     unsigned SMT2MODE2          : 1;
11427     unsigned SMT2MODE3          : 1;
11428     unsigned                    : 1;
11429     unsigned                    : 1;
11430     unsigned SMT2REPEAT         : 1;
11431     unsigned                    : 1;
11432     };
11433 
11434   struct
11435     {
11436     unsigned MODE               : 4;
11437     unsigned                    : 4;
11438     };
11439 
11440   struct
11441     {
11442     unsigned SMT2MODE           : 4;
11443     unsigned                    : 4;
11444     };
11445   } __SMT2CON1bits_t;
11446 
11447 extern __at(0x0DAB) volatile __SMT2CON1bits_t SMT2CON1bits;
11448 
11449 #define _SMT2CON1_MODE0         0x01
11450 #define _SMT2CON1_SMT2MODE0     0x01
11451 #define _SMT2CON1_MODE1         0x02
11452 #define _SMT2CON1_SMT2MODE1     0x02
11453 #define _SMT2CON1_MODE2         0x04
11454 #define _SMT2CON1_SMT2MODE2     0x04
11455 #define _SMT2CON1_MODE3         0x08
11456 #define _SMT2CON1_SMT2MODE3     0x08
11457 #define _SMT2CON1_REPEAT        0x40
11458 #define _SMT2CON1_SMT2REPEAT    0x40
11459 #define _SMT2CON1_SMT2GO        0x80
11460 
11461 //==============================================================================
11462 
11463 
11464 //==============================================================================
11465 //        SMT2STAT Bits
11466 
11467 extern __at(0x0DAC) __sfr SMT2STAT;
11468 
11469 typedef union
11470   {
11471   struct
11472     {
11473     unsigned AS                 : 1;
11474     unsigned WS                 : 1;
11475     unsigned TS                 : 1;
11476     unsigned                    : 1;
11477     unsigned                    : 1;
11478     unsigned RST                : 1;
11479     unsigned CPWUP              : 1;
11480     unsigned CPRUP              : 1;
11481     };
11482 
11483   struct
11484     {
11485     unsigned SMT2AS             : 1;
11486     unsigned SMT2WS             : 1;
11487     unsigned SMT2TS             : 1;
11488     unsigned                    : 1;
11489     unsigned                    : 1;
11490     unsigned SMT2RESET          : 1;
11491     unsigned SMT2CPWUP          : 1;
11492     unsigned SMT2CPRUP          : 1;
11493     };
11494   } __SMT2STATbits_t;
11495 
11496 extern __at(0x0DAC) volatile __SMT2STATbits_t SMT2STATbits;
11497 
11498 #define _SMT2STAT_AS            0x01
11499 #define _SMT2STAT_SMT2AS        0x01
11500 #define _SMT2STAT_WS            0x02
11501 #define _SMT2STAT_SMT2WS        0x02
11502 #define _SMT2STAT_TS            0x04
11503 #define _SMT2STAT_SMT2TS        0x04
11504 #define _SMT2STAT_RST           0x20
11505 #define _SMT2STAT_SMT2RESET     0x20
11506 #define _SMT2STAT_CPWUP         0x40
11507 #define _SMT2STAT_SMT2CPWUP     0x40
11508 #define _SMT2STAT_CPRUP         0x80
11509 #define _SMT2STAT_SMT2CPRUP     0x80
11510 
11511 //==============================================================================
11512 
11513 
11514 //==============================================================================
11515 //        SMT2CLK Bits
11516 
11517 extern __at(0x0DAD) __sfr SMT2CLK;
11518 
11519 typedef union
11520   {
11521   struct
11522     {
11523     unsigned CSEL0              : 1;
11524     unsigned CSEL1              : 1;
11525     unsigned CSEL2              : 1;
11526     unsigned                    : 1;
11527     unsigned                    : 1;
11528     unsigned                    : 1;
11529     unsigned                    : 1;
11530     unsigned                    : 1;
11531     };
11532 
11533   struct
11534     {
11535     unsigned SMT2CSEL0          : 1;
11536     unsigned SMT2CSEL1          : 1;
11537     unsigned SMT2CSEL2          : 1;
11538     unsigned                    : 1;
11539     unsigned                    : 1;
11540     unsigned                    : 1;
11541     unsigned                    : 1;
11542     unsigned                    : 1;
11543     };
11544 
11545   struct
11546     {
11547     unsigned CSEL               : 3;
11548     unsigned                    : 5;
11549     };
11550 
11551   struct
11552     {
11553     unsigned SMT2CSEL           : 3;
11554     unsigned                    : 5;
11555     };
11556   } __SMT2CLKbits_t;
11557 
11558 extern __at(0x0DAD) volatile __SMT2CLKbits_t SMT2CLKbits;
11559 
11560 #define _SMT2CLK_CSEL0          0x01
11561 #define _SMT2CLK_SMT2CSEL0      0x01
11562 #define _SMT2CLK_CSEL1          0x02
11563 #define _SMT2CLK_SMT2CSEL1      0x02
11564 #define _SMT2CLK_CSEL2          0x04
11565 #define _SMT2CLK_SMT2CSEL2      0x04
11566 
11567 //==============================================================================
11568 
11569 
11570 //==============================================================================
11571 //        SMT2SIG Bits
11572 
11573 extern __at(0x0DAE) __sfr SMT2SIG;
11574 
11575 typedef union
11576   {
11577   struct
11578     {
11579     unsigned SSEL0              : 1;
11580     unsigned SSEL1              : 1;
11581     unsigned SSEL2              : 1;
11582     unsigned SSEL3              : 1;
11583     unsigned SSEL4              : 1;
11584     unsigned                    : 1;
11585     unsigned                    : 1;
11586     unsigned                    : 1;
11587     };
11588 
11589   struct
11590     {
11591     unsigned SMT2SSEL0          : 1;
11592     unsigned SMT2SSEL1          : 1;
11593     unsigned SMT2SSEL2          : 1;
11594     unsigned SMT2SSEL3          : 1;
11595     unsigned SMT2SSEL4          : 1;
11596     unsigned                    : 1;
11597     unsigned                    : 1;
11598     unsigned                    : 1;
11599     };
11600 
11601   struct
11602     {
11603     unsigned SSEL               : 5;
11604     unsigned                    : 3;
11605     };
11606 
11607   struct
11608     {
11609     unsigned SMT2SSEL           : 5;
11610     unsigned                    : 3;
11611     };
11612   } __SMT2SIGbits_t;
11613 
11614 extern __at(0x0DAE) volatile __SMT2SIGbits_t SMT2SIGbits;
11615 
11616 #define _SMT2SIG_SSEL0          0x01
11617 #define _SMT2SIG_SMT2SSEL0      0x01
11618 #define _SMT2SIG_SSEL1          0x02
11619 #define _SMT2SIG_SMT2SSEL1      0x02
11620 #define _SMT2SIG_SSEL2          0x04
11621 #define _SMT2SIG_SMT2SSEL2      0x04
11622 #define _SMT2SIG_SSEL3          0x08
11623 #define _SMT2SIG_SMT2SSEL3      0x08
11624 #define _SMT2SIG_SSEL4          0x10
11625 #define _SMT2SIG_SMT2SSEL4      0x10
11626 
11627 //==============================================================================
11628 
11629 
11630 //==============================================================================
11631 //        SMT2WIN Bits
11632 
11633 extern __at(0x0DAF) __sfr SMT2WIN;
11634 
11635 typedef union
11636   {
11637   struct
11638     {
11639     unsigned WSEL0              : 1;
11640     unsigned WSEL1              : 1;
11641     unsigned WSEL2              : 1;
11642     unsigned WSEL3              : 1;
11643     unsigned WSEL4              : 1;
11644     unsigned                    : 1;
11645     unsigned                    : 1;
11646     unsigned                    : 1;
11647     };
11648 
11649   struct
11650     {
11651     unsigned SMT2WSEL0          : 1;
11652     unsigned SMT2WSEL1          : 1;
11653     unsigned SMT2WSEL2          : 1;
11654     unsigned SMT2WSEL3          : 1;
11655     unsigned SMT2WSEL4          : 1;
11656     unsigned                    : 1;
11657     unsigned                    : 1;
11658     unsigned                    : 1;
11659     };
11660 
11661   struct
11662     {
11663     unsigned WSEL               : 5;
11664     unsigned                    : 3;
11665     };
11666 
11667   struct
11668     {
11669     unsigned SMT2WSEL           : 5;
11670     unsigned                    : 3;
11671     };
11672   } __SMT2WINbits_t;
11673 
11674 extern __at(0x0DAF) volatile __SMT2WINbits_t SMT2WINbits;
11675 
11676 #define _SMT2WIN_WSEL0          0x01
11677 #define _SMT2WIN_SMT2WSEL0      0x01
11678 #define _SMT2WIN_WSEL1          0x02
11679 #define _SMT2WIN_SMT2WSEL1      0x02
11680 #define _SMT2WIN_WSEL2          0x04
11681 #define _SMT2WIN_SMT2WSEL2      0x04
11682 #define _SMT2WIN_WSEL3          0x08
11683 #define _SMT2WIN_SMT2WSEL3      0x08
11684 #define _SMT2WIN_WSEL4          0x10
11685 #define _SMT2WIN_SMT2WSEL4      0x10
11686 
11687 //==============================================================================
11688 
11689 
11690 //==============================================================================
11691 //        PPSLOCK Bits
11692 
11693 extern __at(0x0E0F) __sfr PPSLOCK;
11694 
11695 typedef struct
11696   {
11697   unsigned PPSLOCKED            : 1;
11698   unsigned                      : 1;
11699   unsigned                      : 1;
11700   unsigned                      : 1;
11701   unsigned                      : 1;
11702   unsigned                      : 1;
11703   unsigned                      : 1;
11704   unsigned                      : 1;
11705   } __PPSLOCKbits_t;
11706 
11707 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
11708 
11709 #define _PPSLOCKED              0x01
11710 
11711 //==============================================================================
11712 
11713 
11714 //==============================================================================
11715 //        INTPPS Bits
11716 
11717 extern __at(0x0E10) __sfr INTPPS;
11718 
11719 typedef union
11720   {
11721   struct
11722     {
11723     unsigned INTPPS0            : 1;
11724     unsigned INTPPS1            : 1;
11725     unsigned INTPPS2            : 1;
11726     unsigned INTPPS3            : 1;
11727     unsigned INTPPS4            : 1;
11728     unsigned                    : 1;
11729     unsigned                    : 1;
11730     unsigned                    : 1;
11731     };
11732 
11733   struct
11734     {
11735     unsigned INTPPS             : 5;
11736     unsigned                    : 3;
11737     };
11738   } __INTPPSbits_t;
11739 
11740 extern __at(0x0E10) volatile __INTPPSbits_t INTPPSbits;
11741 
11742 #define _INTPPS0                0x01
11743 #define _INTPPS1                0x02
11744 #define _INTPPS2                0x04
11745 #define _INTPPS3                0x08
11746 #define _INTPPS4                0x10
11747 
11748 //==============================================================================
11749 
11750 
11751 //==============================================================================
11752 //        T0CKIPPS Bits
11753 
11754 extern __at(0x0E11) __sfr T0CKIPPS;
11755 
11756 typedef union
11757   {
11758   struct
11759     {
11760     unsigned T0CKIPPS0          : 1;
11761     unsigned T0CKIPPS1          : 1;
11762     unsigned T0CKIPPS2          : 1;
11763     unsigned T0CKIPPS3          : 1;
11764     unsigned T0CKIPPS4          : 1;
11765     unsigned                    : 1;
11766     unsigned                    : 1;
11767     unsigned                    : 1;
11768     };
11769 
11770   struct
11771     {
11772     unsigned T0CKIPPS           : 5;
11773     unsigned                    : 3;
11774     };
11775   } __T0CKIPPSbits_t;
11776 
11777 extern __at(0x0E11) volatile __T0CKIPPSbits_t T0CKIPPSbits;
11778 
11779 #define _T0CKIPPS0              0x01
11780 #define _T0CKIPPS1              0x02
11781 #define _T0CKIPPS2              0x04
11782 #define _T0CKIPPS3              0x08
11783 #define _T0CKIPPS4              0x10
11784 
11785 //==============================================================================
11786 
11787 
11788 //==============================================================================
11789 //        T1CKIPPS Bits
11790 
11791 extern __at(0x0E12) __sfr T1CKIPPS;
11792 
11793 typedef union
11794   {
11795   struct
11796     {
11797     unsigned T1CKIPPS0          : 1;
11798     unsigned T1CKIPPS1          : 1;
11799     unsigned T1CKIPPS2          : 1;
11800     unsigned T1CKIPPS3          : 1;
11801     unsigned T1CKIPPS4          : 1;
11802     unsigned                    : 1;
11803     unsigned                    : 1;
11804     unsigned                    : 1;
11805     };
11806 
11807   struct
11808     {
11809     unsigned T1CKIPPS           : 5;
11810     unsigned                    : 3;
11811     };
11812   } __T1CKIPPSbits_t;
11813 
11814 extern __at(0x0E12) volatile __T1CKIPPSbits_t T1CKIPPSbits;
11815 
11816 #define _T1CKIPPS0              0x01
11817 #define _T1CKIPPS1              0x02
11818 #define _T1CKIPPS2              0x04
11819 #define _T1CKIPPS3              0x08
11820 #define _T1CKIPPS4              0x10
11821 
11822 //==============================================================================
11823 
11824 
11825 //==============================================================================
11826 //        T1GPPS Bits
11827 
11828 extern __at(0x0E13) __sfr T1GPPS;
11829 
11830 typedef union
11831   {
11832   struct
11833     {
11834     unsigned T1GPPS0            : 1;
11835     unsigned T1GPPS1            : 1;
11836     unsigned T1GPPS2            : 1;
11837     unsigned T1GPPS3            : 1;
11838     unsigned T1GPPS4            : 1;
11839     unsigned                    : 1;
11840     unsigned                    : 1;
11841     unsigned                    : 1;
11842     };
11843 
11844   struct
11845     {
11846     unsigned T1GPPS             : 5;
11847     unsigned                    : 3;
11848     };
11849   } __T1GPPSbits_t;
11850 
11851 extern __at(0x0E13) volatile __T1GPPSbits_t T1GPPSbits;
11852 
11853 #define _T1GPPS0                0x01
11854 #define _T1GPPS1                0x02
11855 #define _T1GPPS2                0x04
11856 #define _T1GPPS3                0x08
11857 #define _T1GPPS4                0x10
11858 
11859 //==============================================================================
11860 
11861 
11862 //==============================================================================
11863 //        CCP1PPS Bits
11864 
11865 extern __at(0x0E14) __sfr CCP1PPS;
11866 
11867 typedef union
11868   {
11869   struct
11870     {
11871     unsigned CCP1PPS0           : 1;
11872     unsigned CCP1PPS1           : 1;
11873     unsigned CCP1PPS2           : 1;
11874     unsigned CCP1PPS3           : 1;
11875     unsigned CCP1PPS4           : 1;
11876     unsigned                    : 1;
11877     unsigned                    : 1;
11878     unsigned                    : 1;
11879     };
11880 
11881   struct
11882     {
11883     unsigned CCP1PPS            : 5;
11884     unsigned                    : 3;
11885     };
11886   } __CCP1PPSbits_t;
11887 
11888 extern __at(0x0E14) volatile __CCP1PPSbits_t CCP1PPSbits;
11889 
11890 #define _CCP1PPS0               0x01
11891 #define _CCP1PPS1               0x02
11892 #define _CCP1PPS2               0x04
11893 #define _CCP1PPS3               0x08
11894 #define _CCP1PPS4               0x10
11895 
11896 //==============================================================================
11897 
11898 
11899 //==============================================================================
11900 //        CCP2PPS Bits
11901 
11902 extern __at(0x0E15) __sfr CCP2PPS;
11903 
11904 typedef union
11905   {
11906   struct
11907     {
11908     unsigned CCP2PPS0           : 1;
11909     unsigned CCP2PPS1           : 1;
11910     unsigned CCP2PPS2           : 1;
11911     unsigned CCP2PPS3           : 1;
11912     unsigned CCP2PPS4           : 1;
11913     unsigned                    : 1;
11914     unsigned                    : 1;
11915     unsigned                    : 1;
11916     };
11917 
11918   struct
11919     {
11920     unsigned CCP2PPS            : 5;
11921     unsigned                    : 3;
11922     };
11923   } __CCP2PPSbits_t;
11924 
11925 extern __at(0x0E15) volatile __CCP2PPSbits_t CCP2PPSbits;
11926 
11927 #define _CCP2PPS0               0x01
11928 #define _CCP2PPS1               0x02
11929 #define _CCP2PPS2               0x04
11930 #define _CCP2PPS3               0x08
11931 #define _CCP2PPS4               0x10
11932 
11933 //==============================================================================
11934 
11935 
11936 //==============================================================================
11937 //        ATINPPS Bits
11938 
11939 extern __at(0x0E16) __sfr ATINPPS;
11940 
11941 typedef union
11942   {
11943   struct
11944     {
11945     unsigned ATINPPS0           : 1;
11946     unsigned ATINPPS1           : 1;
11947     unsigned ATINPPS2           : 1;
11948     unsigned ATINPPS3           : 1;
11949     unsigned ATINPPS4           : 1;
11950     unsigned                    : 1;
11951     unsigned                    : 1;
11952     unsigned                    : 1;
11953     };
11954 
11955   struct
11956     {
11957     unsigned ATINPPS            : 5;
11958     unsigned                    : 3;
11959     };
11960   } __ATINPPSbits_t;
11961 
11962 extern __at(0x0E16) volatile __ATINPPSbits_t ATINPPSbits;
11963 
11964 #define _ATINPPS0               0x01
11965 #define _ATINPPS1               0x02
11966 #define _ATINPPS2               0x04
11967 #define _ATINPPS3               0x08
11968 #define _ATINPPS4               0x10
11969 
11970 //==============================================================================
11971 
11972 
11973 //==============================================================================
11974 //        CWGINPPS Bits
11975 
11976 extern __at(0x0E17) __sfr CWGINPPS;
11977 
11978 typedef union
11979   {
11980   struct
11981     {
11982     unsigned CWGINPPS0          : 1;
11983     unsigned CWGINPPS1          : 1;
11984     unsigned CWGINPPS2          : 1;
11985     unsigned CWGINPPS3          : 1;
11986     unsigned CWGINPPS4          : 1;
11987     unsigned                    : 1;
11988     unsigned                    : 1;
11989     unsigned                    : 1;
11990     };
11991 
11992   struct
11993     {
11994     unsigned CWGINPPS           : 5;
11995     unsigned                    : 3;
11996     };
11997   } __CWGINPPSbits_t;
11998 
11999 extern __at(0x0E17) volatile __CWGINPPSbits_t CWGINPPSbits;
12000 
12001 #define _CWGINPPS0              0x01
12002 #define _CWGINPPS1              0x02
12003 #define _CWGINPPS2              0x04
12004 #define _CWGINPPS3              0x08
12005 #define _CWGINPPS4              0x10
12006 
12007 //==============================================================================
12008 
12009 
12010 //==============================================================================
12011 //        T2PPS Bits
12012 
12013 extern __at(0x0E18) __sfr T2PPS;
12014 
12015 typedef union
12016   {
12017   struct
12018     {
12019     unsigned T2PPS0             : 1;
12020     unsigned T2PPS1             : 1;
12021     unsigned T2PPS2             : 1;
12022     unsigned T2PPS3             : 1;
12023     unsigned T2PPS4             : 1;
12024     unsigned                    : 1;
12025     unsigned                    : 1;
12026     unsigned                    : 1;
12027     };
12028 
12029   struct
12030     {
12031     unsigned T2PPS              : 5;
12032     unsigned                    : 3;
12033     };
12034   } __T2PPSbits_t;
12035 
12036 extern __at(0x0E18) volatile __T2PPSbits_t T2PPSbits;
12037 
12038 #define _T2PPS0                 0x01
12039 #define _T2PPS1                 0x02
12040 #define _T2PPS2                 0x04
12041 #define _T2PPS3                 0x08
12042 #define _T2PPS4                 0x10
12043 
12044 //==============================================================================
12045 
12046 
12047 //==============================================================================
12048 //        T3CKIPPS Bits
12049 
12050 extern __at(0x0E19) __sfr T3CKIPPS;
12051 
12052 typedef union
12053   {
12054   struct
12055     {
12056     unsigned T3CKIPPS0          : 1;
12057     unsigned T3CKIPPS1          : 1;
12058     unsigned T3CKIPPS2          : 1;
12059     unsigned T3CKIPPS3          : 1;
12060     unsigned T3CKIPPS4          : 1;
12061     unsigned                    : 1;
12062     unsigned                    : 1;
12063     unsigned                    : 1;
12064     };
12065 
12066   struct
12067     {
12068     unsigned T3CKIPPS           : 5;
12069     unsigned                    : 3;
12070     };
12071   } __T3CKIPPSbits_t;
12072 
12073 extern __at(0x0E19) volatile __T3CKIPPSbits_t T3CKIPPSbits;
12074 
12075 #define _T3CKIPPS0              0x01
12076 #define _T3CKIPPS1              0x02
12077 #define _T3CKIPPS2              0x04
12078 #define _T3CKIPPS3              0x08
12079 #define _T3CKIPPS4              0x10
12080 
12081 //==============================================================================
12082 
12083 
12084 //==============================================================================
12085 //        T3GPPS Bits
12086 
12087 extern __at(0x0E1A) __sfr T3GPPS;
12088 
12089 typedef union
12090   {
12091   struct
12092     {
12093     unsigned T3GPPS0            : 1;
12094     unsigned T3GPPS1            : 1;
12095     unsigned T3GPPS2            : 1;
12096     unsigned T3GPPS3            : 1;
12097     unsigned T3GPPS4            : 1;
12098     unsigned                    : 1;
12099     unsigned                    : 1;
12100     unsigned                    : 1;
12101     };
12102 
12103   struct
12104     {
12105     unsigned T3GPPS             : 5;
12106     unsigned                    : 3;
12107     };
12108   } __T3GPPSbits_t;
12109 
12110 extern __at(0x0E1A) volatile __T3GPPSbits_t T3GPPSbits;
12111 
12112 #define _T3GPPS0                0x01
12113 #define _T3GPPS1                0x02
12114 #define _T3GPPS2                0x04
12115 #define _T3GPPS3                0x08
12116 #define _T3GPPS4                0x10
12117 
12118 //==============================================================================
12119 
12120 
12121 //==============================================================================
12122 //        T4PPS Bits
12123 
12124 extern __at(0x0E1B) __sfr T4PPS;
12125 
12126 typedef union
12127   {
12128   struct
12129     {
12130     unsigned T4PPS0             : 1;
12131     unsigned T4PPS1             : 1;
12132     unsigned T4PPS2             : 1;
12133     unsigned T4PPS3             : 1;
12134     unsigned T4PPS4             : 1;
12135     unsigned                    : 1;
12136     unsigned                    : 1;
12137     unsigned                    : 1;
12138     };
12139 
12140   struct
12141     {
12142     unsigned T4PPS              : 5;
12143     unsigned                    : 3;
12144     };
12145   } __T4PPSbits_t;
12146 
12147 extern __at(0x0E1B) volatile __T4PPSbits_t T4PPSbits;
12148 
12149 #define _T4PPS0                 0x01
12150 #define _T4PPS1                 0x02
12151 #define _T4PPS2                 0x04
12152 #define _T4PPS3                 0x08
12153 #define _T4PPS4                 0x10
12154 
12155 //==============================================================================
12156 
12157 
12158 //==============================================================================
12159 //        T5CKIPPS Bits
12160 
12161 extern __at(0x0E1C) __sfr T5CKIPPS;
12162 
12163 typedef union
12164   {
12165   struct
12166     {
12167     unsigned T5CKIPPS0          : 1;
12168     unsigned T5CKIPPS1          : 1;
12169     unsigned T5CKIPPS2          : 1;
12170     unsigned T5CKIPPS3          : 1;
12171     unsigned T5CKIPPS4          : 1;
12172     unsigned                    : 1;
12173     unsigned                    : 1;
12174     unsigned                    : 1;
12175     };
12176 
12177   struct
12178     {
12179     unsigned T5CKIPPS           : 5;
12180     unsigned                    : 3;
12181     };
12182   } __T5CKIPPSbits_t;
12183 
12184 extern __at(0x0E1C) volatile __T5CKIPPSbits_t T5CKIPPSbits;
12185 
12186 #define _T5CKIPPS0              0x01
12187 #define _T5CKIPPS1              0x02
12188 #define _T5CKIPPS2              0x04
12189 #define _T5CKIPPS3              0x08
12190 #define _T5CKIPPS4              0x10
12191 
12192 //==============================================================================
12193 
12194 
12195 //==============================================================================
12196 //        T5GPPS Bits
12197 
12198 extern __at(0x0E1D) __sfr T5GPPS;
12199 
12200 typedef union
12201   {
12202   struct
12203     {
12204     unsigned T5GPPS0            : 1;
12205     unsigned T5GPPS1            : 1;
12206     unsigned T5GPPS2            : 1;
12207     unsigned T5GPPS3            : 1;
12208     unsigned T5GPPS4            : 1;
12209     unsigned                    : 1;
12210     unsigned                    : 1;
12211     unsigned                    : 1;
12212     };
12213 
12214   struct
12215     {
12216     unsigned T5GPPS             : 5;
12217     unsigned                    : 3;
12218     };
12219   } __T5GPPSbits_t;
12220 
12221 extern __at(0x0E1D) volatile __T5GPPSbits_t T5GPPSbits;
12222 
12223 #define _T5GPPS0                0x01
12224 #define _T5GPPS1                0x02
12225 #define _T5GPPS2                0x04
12226 #define _T5GPPS3                0x08
12227 #define _T5GPPS4                0x10
12228 
12229 //==============================================================================
12230 
12231 
12232 //==============================================================================
12233 //        T6PPS Bits
12234 
12235 extern __at(0x0E1E) __sfr T6PPS;
12236 
12237 typedef union
12238   {
12239   struct
12240     {
12241     unsigned T6PPS0             : 1;
12242     unsigned T6PPS1             : 1;
12243     unsigned T6PPS2             : 1;
12244     unsigned T6PPS3             : 1;
12245     unsigned T6PPS4             : 1;
12246     unsigned                    : 1;
12247     unsigned                    : 1;
12248     unsigned                    : 1;
12249     };
12250 
12251   struct
12252     {
12253     unsigned T6PPS              : 5;
12254     unsigned                    : 3;
12255     };
12256   } __T6PPSbits_t;
12257 
12258 extern __at(0x0E1E) volatile __T6PPSbits_t T6PPSbits;
12259 
12260 #define _T6PPS0                 0x01
12261 #define _T6PPS1                 0x02
12262 #define _T6PPS2                 0x04
12263 #define _T6PPS3                 0x08
12264 #define _T6PPS4                 0x10
12265 
12266 //==============================================================================
12267 
12268 
12269 //==============================================================================
12270 //        ATCC1PPS Bits
12271 
12272 extern __at(0x0E1F) __sfr ATCC1PPS;
12273 
12274 typedef union
12275   {
12276   struct
12277     {
12278     unsigned ATCC1PPS0          : 1;
12279     unsigned ATCC1PPS1          : 1;
12280     unsigned ATCC1PPS2          : 1;
12281     unsigned ATCC1PPS3          : 1;
12282     unsigned ATCC1PPS4          : 1;
12283     unsigned                    : 1;
12284     unsigned                    : 1;
12285     unsigned                    : 1;
12286     };
12287 
12288   struct
12289     {
12290     unsigned ATCC1PPS           : 5;
12291     unsigned                    : 3;
12292     };
12293   } __ATCC1PPSbits_t;
12294 
12295 extern __at(0x0E1F) volatile __ATCC1PPSbits_t ATCC1PPSbits;
12296 
12297 #define _ATCC1PPS0              0x01
12298 #define _ATCC1PPS1              0x02
12299 #define _ATCC1PPS2              0x04
12300 #define _ATCC1PPS3              0x08
12301 #define _ATCC1PPS4              0x10
12302 
12303 //==============================================================================
12304 
12305 
12306 //==============================================================================
12307 //        SSPCLKPPS Bits
12308 
12309 extern __at(0x0E20) __sfr SSPCLKPPS;
12310 
12311 typedef union
12312   {
12313   struct
12314     {
12315     unsigned SSPCLKPPS0         : 1;
12316     unsigned SSPCLKPPS1         : 1;
12317     unsigned SSPCLKPPS2         : 1;
12318     unsigned SSPCLKPPS3         : 1;
12319     unsigned SSPCLKPPS4         : 1;
12320     unsigned                    : 1;
12321     unsigned                    : 1;
12322     unsigned                    : 1;
12323     };
12324 
12325   struct
12326     {
12327     unsigned SSPCLKPPS          : 5;
12328     unsigned                    : 3;
12329     };
12330   } __SSPCLKPPSbits_t;
12331 
12332 extern __at(0x0E20) volatile __SSPCLKPPSbits_t SSPCLKPPSbits;
12333 
12334 #define _SSPCLKPPS0             0x01
12335 #define _SSPCLKPPS1             0x02
12336 #define _SSPCLKPPS2             0x04
12337 #define _SSPCLKPPS3             0x08
12338 #define _SSPCLKPPS4             0x10
12339 
12340 //==============================================================================
12341 
12342 
12343 //==============================================================================
12344 //        SSPDATPPS Bits
12345 
12346 extern __at(0x0E21) __sfr SSPDATPPS;
12347 
12348 typedef union
12349   {
12350   struct
12351     {
12352     unsigned SSPDATPPS0         : 1;
12353     unsigned SSPDATPPS1         : 1;
12354     unsigned SSPDATPPS2         : 1;
12355     unsigned SSPDATPPS3         : 1;
12356     unsigned SSPDATPPS4         : 1;
12357     unsigned                    : 1;
12358     unsigned                    : 1;
12359     unsigned                    : 1;
12360     };
12361 
12362   struct
12363     {
12364     unsigned SSPDATPPS          : 5;
12365     unsigned                    : 3;
12366     };
12367   } __SSPDATPPSbits_t;
12368 
12369 extern __at(0x0E21) volatile __SSPDATPPSbits_t SSPDATPPSbits;
12370 
12371 #define _SSPDATPPS0             0x01
12372 #define _SSPDATPPS1             0x02
12373 #define _SSPDATPPS2             0x04
12374 #define _SSPDATPPS3             0x08
12375 #define _SSPDATPPS4             0x10
12376 
12377 //==============================================================================
12378 
12379 
12380 //==============================================================================
12381 //        SSPSSPPS Bits
12382 
12383 extern __at(0x0E22) __sfr SSPSSPPS;
12384 
12385 typedef union
12386   {
12387   struct
12388     {
12389     unsigned SSPSSPPS0          : 1;
12390     unsigned SSPSSPPS1          : 1;
12391     unsigned SSPSSPPS2          : 1;
12392     unsigned SSPSSPPS3          : 1;
12393     unsigned SSPSSPPS4          : 1;
12394     unsigned                    : 1;
12395     unsigned                    : 1;
12396     unsigned                    : 1;
12397     };
12398 
12399   struct
12400     {
12401     unsigned SSPSSPPS           : 5;
12402     unsigned                    : 3;
12403     };
12404   } __SSPSSPPSbits_t;
12405 
12406 extern __at(0x0E22) volatile __SSPSSPPSbits_t SSPSSPPSbits;
12407 
12408 #define _SSPSSPPS0              0x01
12409 #define _SSPSSPPS1              0x02
12410 #define _SSPSSPPS2              0x04
12411 #define _SSPSSPPS3              0x08
12412 #define _SSPSSPPS4              0x10
12413 
12414 //==============================================================================
12415 
12416 
12417 //==============================================================================
12418 //        ATCC2PPS Bits
12419 
12420 extern __at(0x0E23) __sfr ATCC2PPS;
12421 
12422 typedef union
12423   {
12424   struct
12425     {
12426     unsigned ATCC2PPS0          : 1;
12427     unsigned ATCC2PPS1          : 1;
12428     unsigned ATCC2PPS2          : 1;
12429     unsigned ATCC2PPS3          : 1;
12430     unsigned ATCC2PPS4          : 1;
12431     unsigned                    : 1;
12432     unsigned                    : 1;
12433     unsigned                    : 1;
12434     };
12435 
12436   struct
12437     {
12438     unsigned ATCC2PPS           : 5;
12439     unsigned                    : 3;
12440     };
12441   } __ATCC2PPSbits_t;
12442 
12443 extern __at(0x0E23) volatile __ATCC2PPSbits_t ATCC2PPSbits;
12444 
12445 #define _ATCC2PPS0              0x01
12446 #define _ATCC2PPS1              0x02
12447 #define _ATCC2PPS2              0x04
12448 #define _ATCC2PPS3              0x08
12449 #define _ATCC2PPS4              0x10
12450 
12451 //==============================================================================
12452 
12453 
12454 //==============================================================================
12455 //        RXPPS Bits
12456 
12457 extern __at(0x0E24) __sfr RXPPS;
12458 
12459 typedef union
12460   {
12461   struct
12462     {
12463     unsigned RXPPS0             : 1;
12464     unsigned RXPPS1             : 1;
12465     unsigned RXPPS2             : 1;
12466     unsigned RXPPS3             : 1;
12467     unsigned RXPPS4             : 1;
12468     unsigned                    : 1;
12469     unsigned                    : 1;
12470     unsigned                    : 1;
12471     };
12472 
12473   struct
12474     {
12475     unsigned RXPPS              : 5;
12476     unsigned                    : 3;
12477     };
12478   } __RXPPSbits_t;
12479 
12480 extern __at(0x0E24) volatile __RXPPSbits_t RXPPSbits;
12481 
12482 #define _RXPPS0                 0x01
12483 #define _RXPPS1                 0x02
12484 #define _RXPPS2                 0x04
12485 #define _RXPPS3                 0x08
12486 #define _RXPPS4                 0x10
12487 
12488 //==============================================================================
12489 
12490 
12491 //==============================================================================
12492 //        CKPPS Bits
12493 
12494 extern __at(0x0E25) __sfr CKPPS;
12495 
12496 typedef union
12497   {
12498   struct
12499     {
12500     unsigned CKPPS0             : 1;
12501     unsigned CKPPS1             : 1;
12502     unsigned CKPPS2             : 1;
12503     unsigned CKPPS3             : 1;
12504     unsigned CKPPS4             : 1;
12505     unsigned                    : 1;
12506     unsigned                    : 1;
12507     unsigned                    : 1;
12508     };
12509 
12510   struct
12511     {
12512     unsigned CKPPS              : 5;
12513     unsigned                    : 3;
12514     };
12515   } __CKPPSbits_t;
12516 
12517 extern __at(0x0E25) volatile __CKPPSbits_t CKPPSbits;
12518 
12519 #define _CKPPS0                 0x01
12520 #define _CKPPS1                 0x02
12521 #define _CKPPS2                 0x04
12522 #define _CKPPS3                 0x08
12523 #define _CKPPS4                 0x10
12524 
12525 //==============================================================================
12526 
12527 
12528 //==============================================================================
12529 //        SMT1SIGPPS Bits
12530 
12531 extern __at(0x0E26) __sfr SMT1SIGPPS;
12532 
12533 typedef union
12534   {
12535   struct
12536     {
12537     unsigned SMT1SIGPPS0        : 1;
12538     unsigned SMT1SIGPPS1        : 1;
12539     unsigned SMT1SIGPPS2        : 1;
12540     unsigned SMT1SIGPPS3        : 1;
12541     unsigned SMT1SIGPPS4        : 1;
12542     unsigned                    : 1;
12543     unsigned                    : 1;
12544     unsigned                    : 1;
12545     };
12546 
12547   struct
12548     {
12549     unsigned SMT1SIGPPS         : 5;
12550     unsigned                    : 3;
12551     };
12552   } __SMT1SIGPPSbits_t;
12553 
12554 extern __at(0x0E26) volatile __SMT1SIGPPSbits_t SMT1SIGPPSbits;
12555 
12556 #define _SMT1SIGPPS0            0x01
12557 #define _SMT1SIGPPS1            0x02
12558 #define _SMT1SIGPPS2            0x04
12559 #define _SMT1SIGPPS3            0x08
12560 #define _SMT1SIGPPS4            0x10
12561 
12562 //==============================================================================
12563 
12564 
12565 //==============================================================================
12566 //        SMT1WINPPS Bits
12567 
12568 extern __at(0x0E27) __sfr SMT1WINPPS;
12569 
12570 typedef union
12571   {
12572   struct
12573     {
12574     unsigned SMTWINPPS0         : 1;
12575     unsigned SMTWINPPS1         : 1;
12576     unsigned SMTWINPPS2         : 1;
12577     unsigned SMTWINPPS3         : 1;
12578     unsigned SMTWINPPS4         : 1;
12579     unsigned                    : 1;
12580     unsigned                    : 1;
12581     unsigned                    : 1;
12582     };
12583 
12584   struct
12585     {
12586     unsigned SMTWINPPS          : 5;
12587     unsigned                    : 3;
12588     };
12589   } __SMT1WINPPSbits_t;
12590 
12591 extern __at(0x0E27) volatile __SMT1WINPPSbits_t SMT1WINPPSbits;
12592 
12593 #define _SMTWINPPS0             0x01
12594 #define _SMTWINPPS1             0x02
12595 #define _SMTWINPPS2             0x04
12596 #define _SMTWINPPS3             0x08
12597 #define _SMTWINPPS4             0x10
12598 
12599 //==============================================================================
12600 
12601 
12602 //==============================================================================
12603 //        CLCIN0PPS Bits
12604 
12605 extern __at(0x0E28) __sfr CLCIN0PPS;
12606 
12607 typedef union
12608   {
12609   struct
12610     {
12611     unsigned CLCIN0PPS0         : 1;
12612     unsigned CLCIN0PPS1         : 1;
12613     unsigned CLCIN0PPS2         : 1;
12614     unsigned CLCIN0PPS3         : 1;
12615     unsigned CLCIN0PPS4         : 1;
12616     unsigned                    : 1;
12617     unsigned                    : 1;
12618     unsigned                    : 1;
12619     };
12620 
12621   struct
12622     {
12623     unsigned CLCIN0PPS          : 5;
12624     unsigned                    : 3;
12625     };
12626   } __CLCIN0PPSbits_t;
12627 
12628 extern __at(0x0E28) volatile __CLCIN0PPSbits_t CLCIN0PPSbits;
12629 
12630 #define _CLCIN0PPS0             0x01
12631 #define _CLCIN0PPS1             0x02
12632 #define _CLCIN0PPS2             0x04
12633 #define _CLCIN0PPS3             0x08
12634 #define _CLCIN0PPS4             0x10
12635 
12636 //==============================================================================
12637 
12638 
12639 //==============================================================================
12640 //        CLCIN1PPS Bits
12641 
12642 extern __at(0x0E29) __sfr CLCIN1PPS;
12643 
12644 typedef union
12645   {
12646   struct
12647     {
12648     unsigned CLCIN1PPS0         : 1;
12649     unsigned CLCIN1PPS1         : 1;
12650     unsigned CLCIN1PPS2         : 1;
12651     unsigned CLCIN1PPS3         : 1;
12652     unsigned CLCIN1PPS4         : 1;
12653     unsigned                    : 1;
12654     unsigned                    : 1;
12655     unsigned                    : 1;
12656     };
12657 
12658   struct
12659     {
12660     unsigned CLCIN1PPS          : 5;
12661     unsigned                    : 3;
12662     };
12663   } __CLCIN1PPSbits_t;
12664 
12665 extern __at(0x0E29) volatile __CLCIN1PPSbits_t CLCIN1PPSbits;
12666 
12667 #define _CLCIN1PPS0             0x01
12668 #define _CLCIN1PPS1             0x02
12669 #define _CLCIN1PPS2             0x04
12670 #define _CLCIN1PPS3             0x08
12671 #define _CLCIN1PPS4             0x10
12672 
12673 //==============================================================================
12674 
12675 
12676 //==============================================================================
12677 //        CLCIN2PPS Bits
12678 
12679 extern __at(0x0E2A) __sfr CLCIN2PPS;
12680 
12681 typedef union
12682   {
12683   struct
12684     {
12685     unsigned CLCIN2PPS0         : 1;
12686     unsigned CLCIN2PPS1         : 1;
12687     unsigned CLCIN2PPS2         : 1;
12688     unsigned CLCIN2PPS3         : 1;
12689     unsigned CLCIN2PPS4         : 1;
12690     unsigned                    : 1;
12691     unsigned                    : 1;
12692     unsigned                    : 1;
12693     };
12694 
12695   struct
12696     {
12697     unsigned CLCIN2PPS          : 5;
12698     unsigned                    : 3;
12699     };
12700   } __CLCIN2PPSbits_t;
12701 
12702 extern __at(0x0E2A) volatile __CLCIN2PPSbits_t CLCIN2PPSbits;
12703 
12704 #define _CLCIN2PPS0             0x01
12705 #define _CLCIN2PPS1             0x02
12706 #define _CLCIN2PPS2             0x04
12707 #define _CLCIN2PPS3             0x08
12708 #define _CLCIN2PPS4             0x10
12709 
12710 //==============================================================================
12711 
12712 
12713 //==============================================================================
12714 //        CLCIN3PPS Bits
12715 
12716 extern __at(0x0E2B) __sfr CLCIN3PPS;
12717 
12718 typedef union
12719   {
12720   struct
12721     {
12722     unsigned CLCIN3PPS0         : 1;
12723     unsigned CLCIN3PPS1         : 1;
12724     unsigned CLCIN3PPS2         : 1;
12725     unsigned CLCIN3PPS3         : 1;
12726     unsigned CLCIN3PPS4         : 1;
12727     unsigned                    : 1;
12728     unsigned                    : 1;
12729     unsigned                    : 1;
12730     };
12731 
12732   struct
12733     {
12734     unsigned CLCIN3PPS          : 5;
12735     unsigned                    : 3;
12736     };
12737   } __CLCIN3PPSbits_t;
12738 
12739 extern __at(0x0E2B) volatile __CLCIN3PPSbits_t CLCIN3PPSbits;
12740 
12741 #define _CLCIN3PPS0             0x01
12742 #define _CLCIN3PPS1             0x02
12743 #define _CLCIN3PPS2             0x04
12744 #define _CLCIN3PPS3             0x08
12745 #define _CLCIN3PPS4             0x10
12746 
12747 //==============================================================================
12748 
12749 
12750 //==============================================================================
12751 //        SMT2SIGPPS Bits
12752 
12753 extern __at(0x0E2C) __sfr SMT2SIGPPS;
12754 
12755 typedef union
12756   {
12757   struct
12758     {
12759     unsigned SMT2SIGPPS0        : 1;
12760     unsigned SMT2SIGPPS1        : 1;
12761     unsigned SMT2SIGPPS2        : 1;
12762     unsigned SMT2SIGPPS3        : 1;
12763     unsigned SMT2SIGPPS4        : 1;
12764     unsigned                    : 1;
12765     unsigned                    : 1;
12766     unsigned                    : 1;
12767     };
12768 
12769   struct
12770     {
12771     unsigned SMT2SIGPPS         : 5;
12772     unsigned                    : 3;
12773     };
12774   } __SMT2SIGPPSbits_t;
12775 
12776 extern __at(0x0E2C) volatile __SMT2SIGPPSbits_t SMT2SIGPPSbits;
12777 
12778 #define _SMT2SIGPPS0            0x01
12779 #define _SMT2SIGPPS1            0x02
12780 #define _SMT2SIGPPS2            0x04
12781 #define _SMT2SIGPPS3            0x08
12782 #define _SMT2SIGPPS4            0x10
12783 
12784 //==============================================================================
12785 
12786 
12787 //==============================================================================
12788 //        SMT2WINPPS Bits
12789 
12790 extern __at(0x0E2D) __sfr SMT2WINPPS;
12791 
12792 typedef union
12793   {
12794   struct
12795     {
12796     unsigned SMT2WINPPS0        : 1;
12797     unsigned SMT2WINPPS1        : 1;
12798     unsigned SMT2WINPPS2        : 1;
12799     unsigned SMT2WINPPS3        : 1;
12800     unsigned SMT2WINPPS4        : 1;
12801     unsigned                    : 1;
12802     unsigned                    : 1;
12803     unsigned                    : 1;
12804     };
12805 
12806   struct
12807     {
12808     unsigned SMT2WINPPS         : 5;
12809     unsigned                    : 3;
12810     };
12811   } __SMT2WINPPSbits_t;
12812 
12813 extern __at(0x0E2D) volatile __SMT2WINPPSbits_t SMT2WINPPSbits;
12814 
12815 #define _SMT2WINPPS0            0x01
12816 #define _SMT2WINPPS1            0x02
12817 #define _SMT2WINPPS2            0x04
12818 #define _SMT2WINPPS3            0x08
12819 #define _SMT2WINPPS4            0x10
12820 
12821 //==============================================================================
12822 
12823 
12824 //==============================================================================
12825 //        ATCC3PPS Bits
12826 
12827 extern __at(0x0E2E) __sfr ATCC3PPS;
12828 
12829 typedef union
12830   {
12831   struct
12832     {
12833     unsigned ATCC3PPS0          : 1;
12834     unsigned ATCC3PPS1          : 1;
12835     unsigned ATCC3PPS2          : 1;
12836     unsigned ATCC3PPS3          : 1;
12837     unsigned ATCC3PPS4          : 1;
12838     unsigned                    : 1;
12839     unsigned                    : 1;
12840     unsigned                    : 1;
12841     };
12842 
12843   struct
12844     {
12845     unsigned ATCC3PPS           : 5;
12846     unsigned                    : 3;
12847     };
12848   } __ATCC3PPSbits_t;
12849 
12850 extern __at(0x0E2E) volatile __ATCC3PPSbits_t ATCC3PPSbits;
12851 
12852 #define _ATCC3PPS0              0x01
12853 #define _ATCC3PPS1              0x02
12854 #define _ATCC3PPS2              0x04
12855 #define _ATCC3PPS3              0x08
12856 #define _ATCC3PPS4              0x10
12857 
12858 //==============================================================================
12859 
12860 
12861 //==============================================================================
12862 //        RA0PPS Bits
12863 
12864 extern __at(0x0E90) __sfr RA0PPS;
12865 
12866 typedef union
12867   {
12868   struct
12869     {
12870     unsigned RA0PPS0            : 1;
12871     unsigned RA0PPS1            : 1;
12872     unsigned RA0PPS2            : 1;
12873     unsigned RA0PPS3            : 1;
12874     unsigned RA0PPS4            : 1;
12875     unsigned                    : 1;
12876     unsigned                    : 1;
12877     unsigned                    : 1;
12878     };
12879 
12880   struct
12881     {
12882     unsigned RA0PPS             : 5;
12883     unsigned                    : 3;
12884     };
12885   } __RA0PPSbits_t;
12886 
12887 extern __at(0x0E90) volatile __RA0PPSbits_t RA0PPSbits;
12888 
12889 #define _RA0PPS0                0x01
12890 #define _RA0PPS1                0x02
12891 #define _RA0PPS2                0x04
12892 #define _RA0PPS3                0x08
12893 #define _RA0PPS4                0x10
12894 
12895 //==============================================================================
12896 
12897 
12898 //==============================================================================
12899 //        RA1PPS Bits
12900 
12901 extern __at(0x0E91) __sfr RA1PPS;
12902 
12903 typedef union
12904   {
12905   struct
12906     {
12907     unsigned RA1PPS0            : 1;
12908     unsigned RA1PPS1            : 1;
12909     unsigned RA1PPS2            : 1;
12910     unsigned RA1PPS3            : 1;
12911     unsigned RA1PPS4            : 1;
12912     unsigned                    : 1;
12913     unsigned                    : 1;
12914     unsigned                    : 1;
12915     };
12916 
12917   struct
12918     {
12919     unsigned RA1PPS             : 5;
12920     unsigned                    : 3;
12921     };
12922   } __RA1PPSbits_t;
12923 
12924 extern __at(0x0E91) volatile __RA1PPSbits_t RA1PPSbits;
12925 
12926 #define _RA1PPS0                0x01
12927 #define _RA1PPS1                0x02
12928 #define _RA1PPS2                0x04
12929 #define _RA1PPS3                0x08
12930 #define _RA1PPS4                0x10
12931 
12932 //==============================================================================
12933 
12934 
12935 //==============================================================================
12936 //        RA2PPS Bits
12937 
12938 extern __at(0x0E92) __sfr RA2PPS;
12939 
12940 typedef union
12941   {
12942   struct
12943     {
12944     unsigned RA2PPS0            : 1;
12945     unsigned RA2PPS1            : 1;
12946     unsigned RA2PPS2            : 1;
12947     unsigned RA2PPS3            : 1;
12948     unsigned RA2PPS4            : 1;
12949     unsigned                    : 1;
12950     unsigned                    : 1;
12951     unsigned                    : 1;
12952     };
12953 
12954   struct
12955     {
12956     unsigned RA2PPS             : 5;
12957     unsigned                    : 3;
12958     };
12959   } __RA2PPSbits_t;
12960 
12961 extern __at(0x0E92) volatile __RA2PPSbits_t RA2PPSbits;
12962 
12963 #define _RA2PPS0                0x01
12964 #define _RA2PPS1                0x02
12965 #define _RA2PPS2                0x04
12966 #define _RA2PPS3                0x08
12967 #define _RA2PPS4                0x10
12968 
12969 //==============================================================================
12970 
12971 
12972 //==============================================================================
12973 //        RA4PPS Bits
12974 
12975 extern __at(0x0E94) __sfr RA4PPS;
12976 
12977 typedef union
12978   {
12979   struct
12980     {
12981     unsigned RA4PPS0            : 1;
12982     unsigned RA4PPS1            : 1;
12983     unsigned RA4PPS2            : 1;
12984     unsigned RA4PPS3            : 1;
12985     unsigned RA4PPS4            : 1;
12986     unsigned                    : 1;
12987     unsigned                    : 1;
12988     unsigned                    : 1;
12989     };
12990 
12991   struct
12992     {
12993     unsigned RA4PPS             : 5;
12994     unsigned                    : 3;
12995     };
12996   } __RA4PPSbits_t;
12997 
12998 extern __at(0x0E94) volatile __RA4PPSbits_t RA4PPSbits;
12999 
13000 #define _RA4PPS0                0x01
13001 #define _RA4PPS1                0x02
13002 #define _RA4PPS2                0x04
13003 #define _RA4PPS3                0x08
13004 #define _RA4PPS4                0x10
13005 
13006 //==============================================================================
13007 
13008 
13009 //==============================================================================
13010 //        RA5PPS Bits
13011 
13012 extern __at(0x0E95) __sfr RA5PPS;
13013 
13014 typedef union
13015   {
13016   struct
13017     {
13018     unsigned RA5PPS0            : 1;
13019     unsigned RA5PPS1            : 1;
13020     unsigned RA5PPS2            : 1;
13021     unsigned RA5PPS3            : 1;
13022     unsigned RA5PPS4            : 1;
13023     unsigned                    : 1;
13024     unsigned                    : 1;
13025     unsigned                    : 1;
13026     };
13027 
13028   struct
13029     {
13030     unsigned RA5PPS             : 5;
13031     unsigned                    : 3;
13032     };
13033   } __RA5PPSbits_t;
13034 
13035 extern __at(0x0E95) volatile __RA5PPSbits_t RA5PPSbits;
13036 
13037 #define _RA5PPS0                0x01
13038 #define _RA5PPS1                0x02
13039 #define _RA5PPS2                0x04
13040 #define _RA5PPS3                0x08
13041 #define _RA5PPS4                0x10
13042 
13043 //==============================================================================
13044 
13045 
13046 //==============================================================================
13047 //        RB4PPS Bits
13048 
13049 extern __at(0x0E9C) __sfr RB4PPS;
13050 
13051 typedef union
13052   {
13053   struct
13054     {
13055     unsigned RB4PPS0            : 1;
13056     unsigned RB4PPS1            : 1;
13057     unsigned RB4PPS2            : 1;
13058     unsigned RB4PPS3            : 1;
13059     unsigned RB4PPS4            : 1;
13060     unsigned                    : 1;
13061     unsigned                    : 1;
13062     unsigned                    : 1;
13063     };
13064 
13065   struct
13066     {
13067     unsigned RB4PPS             : 5;
13068     unsigned                    : 3;
13069     };
13070   } __RB4PPSbits_t;
13071 
13072 extern __at(0x0E9C) volatile __RB4PPSbits_t RB4PPSbits;
13073 
13074 #define _RB4PPS0                0x01
13075 #define _RB4PPS1                0x02
13076 #define _RB4PPS2                0x04
13077 #define _RB4PPS3                0x08
13078 #define _RB4PPS4                0x10
13079 
13080 //==============================================================================
13081 
13082 
13083 //==============================================================================
13084 //        RB5PPS Bits
13085 
13086 extern __at(0x0E9D) __sfr RB5PPS;
13087 
13088 typedef union
13089   {
13090   struct
13091     {
13092     unsigned RB5PPS0            : 1;
13093     unsigned RB5PPS1            : 1;
13094     unsigned RB5PPS2            : 1;
13095     unsigned RB5PPS3            : 1;
13096     unsigned RB5PPS4            : 1;
13097     unsigned                    : 1;
13098     unsigned                    : 1;
13099     unsigned                    : 1;
13100     };
13101 
13102   struct
13103     {
13104     unsigned RB5PPS             : 5;
13105     unsigned                    : 3;
13106     };
13107   } __RB5PPSbits_t;
13108 
13109 extern __at(0x0E9D) volatile __RB5PPSbits_t RB5PPSbits;
13110 
13111 #define _RB5PPS0                0x01
13112 #define _RB5PPS1                0x02
13113 #define _RB5PPS2                0x04
13114 #define _RB5PPS3                0x08
13115 #define _RB5PPS4                0x10
13116 
13117 //==============================================================================
13118 
13119 
13120 //==============================================================================
13121 //        RB6PPS Bits
13122 
13123 extern __at(0x0E9E) __sfr RB6PPS;
13124 
13125 typedef union
13126   {
13127   struct
13128     {
13129     unsigned RB6PPS0            : 1;
13130     unsigned RB6PPS1            : 1;
13131     unsigned RB6PPS2            : 1;
13132     unsigned RB6PPS3            : 1;
13133     unsigned RB6PPS4            : 1;
13134     unsigned                    : 1;
13135     unsigned                    : 1;
13136     unsigned                    : 1;
13137     };
13138 
13139   struct
13140     {
13141     unsigned RB6PPS             : 5;
13142     unsigned                    : 3;
13143     };
13144   } __RB6PPSbits_t;
13145 
13146 extern __at(0x0E9E) volatile __RB6PPSbits_t RB6PPSbits;
13147 
13148 #define _RB6PPS0                0x01
13149 #define _RB6PPS1                0x02
13150 #define _RB6PPS2                0x04
13151 #define _RB6PPS3                0x08
13152 #define _RB6PPS4                0x10
13153 
13154 //==============================================================================
13155 
13156 
13157 //==============================================================================
13158 //        RB7PPS Bits
13159 
13160 extern __at(0x0E9F) __sfr RB7PPS;
13161 
13162 typedef union
13163   {
13164   struct
13165     {
13166     unsigned RB7PPS0            : 1;
13167     unsigned RB7PPS1            : 1;
13168     unsigned RB7PPS2            : 1;
13169     unsigned RB7PPS3            : 1;
13170     unsigned RB7PPS4            : 1;
13171     unsigned                    : 1;
13172     unsigned                    : 1;
13173     unsigned                    : 1;
13174     };
13175 
13176   struct
13177     {
13178     unsigned RB7PPS             : 5;
13179     unsigned                    : 3;
13180     };
13181   } __RB7PPSbits_t;
13182 
13183 extern __at(0x0E9F) volatile __RB7PPSbits_t RB7PPSbits;
13184 
13185 #define _RB7PPS0                0x01
13186 #define _RB7PPS1                0x02
13187 #define _RB7PPS2                0x04
13188 #define _RB7PPS3                0x08
13189 #define _RB7PPS4                0x10
13190 
13191 //==============================================================================
13192 
13193 
13194 //==============================================================================
13195 //        RC0PPS Bits
13196 
13197 extern __at(0x0EA0) __sfr RC0PPS;
13198 
13199 typedef union
13200   {
13201   struct
13202     {
13203     unsigned RC0PPS0            : 1;
13204     unsigned RC0PPS1            : 1;
13205     unsigned RC0PPS2            : 1;
13206     unsigned RC0PPS3            : 1;
13207     unsigned RC0PPS4            : 1;
13208     unsigned                    : 1;
13209     unsigned                    : 1;
13210     unsigned                    : 1;
13211     };
13212 
13213   struct
13214     {
13215     unsigned RC0PPS             : 5;
13216     unsigned                    : 3;
13217     };
13218   } __RC0PPSbits_t;
13219 
13220 extern __at(0x0EA0) volatile __RC0PPSbits_t RC0PPSbits;
13221 
13222 #define _RC0PPS0                0x01
13223 #define _RC0PPS1                0x02
13224 #define _RC0PPS2                0x04
13225 #define _RC0PPS3                0x08
13226 #define _RC0PPS4                0x10
13227 
13228 //==============================================================================
13229 
13230 
13231 //==============================================================================
13232 //        RC1PPS Bits
13233 
13234 extern __at(0x0EA1) __sfr RC1PPS;
13235 
13236 typedef union
13237   {
13238   struct
13239     {
13240     unsigned RC1PPS0            : 1;
13241     unsigned RC1PPS1            : 1;
13242     unsigned RC1PPS2            : 1;
13243     unsigned RC1PPS3            : 1;
13244     unsigned RC1PPS4            : 1;
13245     unsigned                    : 1;
13246     unsigned                    : 1;
13247     unsigned                    : 1;
13248     };
13249 
13250   struct
13251     {
13252     unsigned RC1PPS             : 5;
13253     unsigned                    : 3;
13254     };
13255   } __RC1PPSbits_t;
13256 
13257 extern __at(0x0EA1) volatile __RC1PPSbits_t RC1PPSbits;
13258 
13259 #define _RC1PPS0                0x01
13260 #define _RC1PPS1                0x02
13261 #define _RC1PPS2                0x04
13262 #define _RC1PPS3                0x08
13263 #define _RC1PPS4                0x10
13264 
13265 //==============================================================================
13266 
13267 
13268 //==============================================================================
13269 //        RC2PPS Bits
13270 
13271 extern __at(0x0EA2) __sfr RC2PPS;
13272 
13273 typedef union
13274   {
13275   struct
13276     {
13277     unsigned RC2PPS0            : 1;
13278     unsigned RC2PPS1            : 1;
13279     unsigned RC2PPS2            : 1;
13280     unsigned RC2PPS3            : 1;
13281     unsigned RC2PPS4            : 1;
13282     unsigned                    : 1;
13283     unsigned                    : 1;
13284     unsigned                    : 1;
13285     };
13286 
13287   struct
13288     {
13289     unsigned RC2PPS             : 5;
13290     unsigned                    : 3;
13291     };
13292   } __RC2PPSbits_t;
13293 
13294 extern __at(0x0EA2) volatile __RC2PPSbits_t RC2PPSbits;
13295 
13296 #define _RC2PPS0                0x01
13297 #define _RC2PPS1                0x02
13298 #define _RC2PPS2                0x04
13299 #define _RC2PPS3                0x08
13300 #define _RC2PPS4                0x10
13301 
13302 //==============================================================================
13303 
13304 
13305 //==============================================================================
13306 //        RC3PPS Bits
13307 
13308 extern __at(0x0EA3) __sfr RC3PPS;
13309 
13310 typedef union
13311   {
13312   struct
13313     {
13314     unsigned RC3PPS0            : 1;
13315     unsigned RC3PPS1            : 1;
13316     unsigned RC3PPS2            : 1;
13317     unsigned RC3PPS3            : 1;
13318     unsigned RC3PPS4            : 1;
13319     unsigned                    : 1;
13320     unsigned                    : 1;
13321     unsigned                    : 1;
13322     };
13323 
13324   struct
13325     {
13326     unsigned RC3PPS             : 5;
13327     unsigned                    : 3;
13328     };
13329   } __RC3PPSbits_t;
13330 
13331 extern __at(0x0EA3) volatile __RC3PPSbits_t RC3PPSbits;
13332 
13333 #define _RC3PPS0                0x01
13334 #define _RC3PPS1                0x02
13335 #define _RC3PPS2                0x04
13336 #define _RC3PPS3                0x08
13337 #define _RC3PPS4                0x10
13338 
13339 //==============================================================================
13340 
13341 
13342 //==============================================================================
13343 //        RC4PPS Bits
13344 
13345 extern __at(0x0EA4) __sfr RC4PPS;
13346 
13347 typedef union
13348   {
13349   struct
13350     {
13351     unsigned RC4PPS0            : 1;
13352     unsigned RC4PPS1            : 1;
13353     unsigned RC4PPS2            : 1;
13354     unsigned RC4PPS3            : 1;
13355     unsigned RC4PPS4            : 1;
13356     unsigned                    : 1;
13357     unsigned                    : 1;
13358     unsigned                    : 1;
13359     };
13360 
13361   struct
13362     {
13363     unsigned RC4PPS             : 5;
13364     unsigned                    : 3;
13365     };
13366   } __RC4PPSbits_t;
13367 
13368 extern __at(0x0EA4) volatile __RC4PPSbits_t RC4PPSbits;
13369 
13370 #define _RC4PPS0                0x01
13371 #define _RC4PPS1                0x02
13372 #define _RC4PPS2                0x04
13373 #define _RC4PPS3                0x08
13374 #define _RC4PPS4                0x10
13375 
13376 //==============================================================================
13377 
13378 
13379 //==============================================================================
13380 //        RC5PPS Bits
13381 
13382 extern __at(0x0EA5) __sfr RC5PPS;
13383 
13384 typedef union
13385   {
13386   struct
13387     {
13388     unsigned RC5PPS0            : 1;
13389     unsigned RC5PPS1            : 1;
13390     unsigned RC5PPS2            : 1;
13391     unsigned RC5PPS3            : 1;
13392     unsigned RC5PPS4            : 1;
13393     unsigned                    : 1;
13394     unsigned                    : 1;
13395     unsigned                    : 1;
13396     };
13397 
13398   struct
13399     {
13400     unsigned RC5PPS             : 5;
13401     unsigned                    : 3;
13402     };
13403   } __RC5PPSbits_t;
13404 
13405 extern __at(0x0EA5) volatile __RC5PPSbits_t RC5PPSbits;
13406 
13407 #define _RC5PPS0                0x01
13408 #define _RC5PPS1                0x02
13409 #define _RC5PPS2                0x04
13410 #define _RC5PPS3                0x08
13411 #define _RC5PPS4                0x10
13412 
13413 //==============================================================================
13414 
13415 
13416 //==============================================================================
13417 //        RC6PPS Bits
13418 
13419 extern __at(0x0EA6) __sfr RC6PPS;
13420 
13421 typedef union
13422   {
13423   struct
13424     {
13425     unsigned RC6PPS0            : 1;
13426     unsigned RC6PPS1            : 1;
13427     unsigned RC6PPS2            : 1;
13428     unsigned RC6PPS3            : 1;
13429     unsigned RC6PPS4            : 1;
13430     unsigned                    : 1;
13431     unsigned                    : 1;
13432     unsigned                    : 1;
13433     };
13434 
13435   struct
13436     {
13437     unsigned RC6PPS             : 5;
13438     unsigned                    : 3;
13439     };
13440   } __RC6PPSbits_t;
13441 
13442 extern __at(0x0EA6) volatile __RC6PPSbits_t RC6PPSbits;
13443 
13444 #define _RC6PPS0                0x01
13445 #define _RC6PPS1                0x02
13446 #define _RC6PPS2                0x04
13447 #define _RC6PPS3                0x08
13448 #define _RC6PPS4                0x10
13449 
13450 //==============================================================================
13451 
13452 
13453 //==============================================================================
13454 //        RC7PPS Bits
13455 
13456 extern __at(0x0EA7) __sfr RC7PPS;
13457 
13458 typedef union
13459   {
13460   struct
13461     {
13462     unsigned RC7PPS0            : 1;
13463     unsigned RC7PPS1            : 1;
13464     unsigned RC7PPS2            : 1;
13465     unsigned RC7PPS3            : 1;
13466     unsigned RC7PPS4            : 1;
13467     unsigned                    : 1;
13468     unsigned                    : 1;
13469     unsigned                    : 1;
13470     };
13471 
13472   struct
13473     {
13474     unsigned RC7PPS             : 5;
13475     unsigned                    : 3;
13476     };
13477   } __RC7PPSbits_t;
13478 
13479 extern __at(0x0EA7) volatile __RC7PPSbits_t RC7PPSbits;
13480 
13481 #define _RC7PPS0                0x01
13482 #define _RC7PPS1                0x02
13483 #define _RC7PPS2                0x04
13484 #define _RC7PPS3                0x08
13485 #define _RC7PPS4                0x10
13486 
13487 //==============================================================================
13488 
13489 
13490 //==============================================================================
13491 //        CLCDATA Bits
13492 
13493 extern __at(0x0F0F) __sfr CLCDATA;
13494 
13495 typedef struct
13496   {
13497   unsigned MLC1OUT              : 1;
13498   unsigned MLC2OUT              : 1;
13499   unsigned                      : 1;
13500   unsigned                      : 1;
13501   unsigned                      : 1;
13502   unsigned                      : 1;
13503   unsigned                      : 1;
13504   unsigned                      : 1;
13505   } __CLCDATAbits_t;
13506 
13507 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
13508 
13509 #define _MLC1OUT                0x01
13510 #define _MLC2OUT                0x02
13511 
13512 //==============================================================================
13513 
13514 
13515 //==============================================================================
13516 //        CLC1CON Bits
13517 
13518 extern __at(0x0F10) __sfr CLC1CON;
13519 
13520 typedef union
13521   {
13522   struct
13523     {
13524     unsigned LC1MODE0           : 1;
13525     unsigned LC1MODE1           : 1;
13526     unsigned LC1MODE2           : 1;
13527     unsigned LC1INTN            : 1;
13528     unsigned LC1INTP            : 1;
13529     unsigned LC1OUT             : 1;
13530     unsigned                    : 1;
13531     unsigned LC1EN              : 1;
13532     };
13533 
13534   struct
13535     {
13536     unsigned MODE0              : 1;
13537     unsigned MODE1              : 1;
13538     unsigned MODE2              : 1;
13539     unsigned INTN               : 1;
13540     unsigned INTP               : 1;
13541     unsigned OUT                : 1;
13542     unsigned                    : 1;
13543     unsigned EN                 : 1;
13544     };
13545 
13546   struct
13547     {
13548     unsigned LC1MODE            : 3;
13549     unsigned                    : 5;
13550     };
13551 
13552   struct
13553     {
13554     unsigned MODE               : 3;
13555     unsigned                    : 5;
13556     };
13557   } __CLC1CONbits_t;
13558 
13559 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
13560 
13561 #define _CLC1CON_LC1MODE0       0x01
13562 #define _CLC1CON_MODE0          0x01
13563 #define _CLC1CON_LC1MODE1       0x02
13564 #define _CLC1CON_MODE1          0x02
13565 #define _CLC1CON_LC1MODE2       0x04
13566 #define _CLC1CON_MODE2          0x04
13567 #define _CLC1CON_LC1INTN        0x08
13568 #define _CLC1CON_INTN           0x08
13569 #define _CLC1CON_LC1INTP        0x10
13570 #define _CLC1CON_INTP           0x10
13571 #define _CLC1CON_LC1OUT         0x20
13572 #define _CLC1CON_OUT            0x20
13573 #define _CLC1CON_LC1EN          0x80
13574 #define _CLC1CON_EN             0x80
13575 
13576 //==============================================================================
13577 
13578 
13579 //==============================================================================
13580 //        CLC1POL Bits
13581 
13582 extern __at(0x0F11) __sfr CLC1POL;
13583 
13584 typedef union
13585   {
13586   struct
13587     {
13588     unsigned LC1G1POL           : 1;
13589     unsigned LC1G2POL           : 1;
13590     unsigned LC1G3POL           : 1;
13591     unsigned LC1G4POL           : 1;
13592     unsigned                    : 1;
13593     unsigned                    : 1;
13594     unsigned                    : 1;
13595     unsigned LC1POL             : 1;
13596     };
13597 
13598   struct
13599     {
13600     unsigned G1POL              : 1;
13601     unsigned G2POL              : 1;
13602     unsigned G3POL              : 1;
13603     unsigned G4POL              : 1;
13604     unsigned                    : 1;
13605     unsigned                    : 1;
13606     unsigned                    : 1;
13607     unsigned POL                : 1;
13608     };
13609   } __CLC1POLbits_t;
13610 
13611 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
13612 
13613 #define _CLC1POL_LC1G1POL       0x01
13614 #define _CLC1POL_G1POL          0x01
13615 #define _CLC1POL_LC1G2POL       0x02
13616 #define _CLC1POL_G2POL          0x02
13617 #define _CLC1POL_LC1G3POL       0x04
13618 #define _CLC1POL_G3POL          0x04
13619 #define _CLC1POL_LC1G4POL       0x08
13620 #define _CLC1POL_G4POL          0x08
13621 #define _CLC1POL_LC1POL         0x80
13622 #define _CLC1POL_POL            0x80
13623 
13624 //==============================================================================
13625 
13626 
13627 //==============================================================================
13628 //        CLC1SEL0 Bits
13629 
13630 extern __at(0x0F12) __sfr CLC1SEL0;
13631 
13632 typedef union
13633   {
13634   struct
13635     {
13636     unsigned LC1D1S0            : 1;
13637     unsigned LC1D1S1            : 1;
13638     unsigned LC1D1S2            : 1;
13639     unsigned LC1D1S3            : 1;
13640     unsigned LC1D1S4            : 1;
13641     unsigned LC1D1S5            : 1;
13642     unsigned                    : 1;
13643     unsigned                    : 1;
13644     };
13645 
13646   struct
13647     {
13648     unsigned D1S0               : 1;
13649     unsigned D1S1               : 1;
13650     unsigned D1S2               : 1;
13651     unsigned D1S3               : 1;
13652     unsigned D1S4               : 1;
13653     unsigned D1S5               : 1;
13654     unsigned                    : 1;
13655     unsigned                    : 1;
13656     };
13657 
13658   struct
13659     {
13660     unsigned LC1D1S             : 6;
13661     unsigned                    : 2;
13662     };
13663 
13664   struct
13665     {
13666     unsigned D1S                : 6;
13667     unsigned                    : 2;
13668     };
13669   } __CLC1SEL0bits_t;
13670 
13671 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
13672 
13673 #define _LC1D1S0                0x01
13674 #define _D1S0                   0x01
13675 #define _LC1D1S1                0x02
13676 #define _D1S1                   0x02
13677 #define _LC1D1S2                0x04
13678 #define _D1S2                   0x04
13679 #define _LC1D1S3                0x08
13680 #define _D1S3                   0x08
13681 #define _LC1D1S4                0x10
13682 #define _D1S4                   0x10
13683 #define _LC1D1S5                0x20
13684 #define _D1S5                   0x20
13685 
13686 //==============================================================================
13687 
13688 
13689 //==============================================================================
13690 //        CLC1SEL1 Bits
13691 
13692 extern __at(0x0F13) __sfr CLC1SEL1;
13693 
13694 typedef union
13695   {
13696   struct
13697     {
13698     unsigned LC1D2S0            : 1;
13699     unsigned LC1D2S1            : 1;
13700     unsigned LC1D2S2            : 1;
13701     unsigned LC1D2S3            : 1;
13702     unsigned LC1D2S4            : 1;
13703     unsigned LC1D2S5            : 1;
13704     unsigned                    : 1;
13705     unsigned                    : 1;
13706     };
13707 
13708   struct
13709     {
13710     unsigned D2S0               : 1;
13711     unsigned D2S1               : 1;
13712     unsigned D2S2               : 1;
13713     unsigned D2S3               : 1;
13714     unsigned D2S4               : 1;
13715     unsigned D2S5               : 1;
13716     unsigned                    : 1;
13717     unsigned                    : 1;
13718     };
13719 
13720   struct
13721     {
13722     unsigned LC1D2S             : 6;
13723     unsigned                    : 2;
13724     };
13725 
13726   struct
13727     {
13728     unsigned D2S                : 6;
13729     unsigned                    : 2;
13730     };
13731   } __CLC1SEL1bits_t;
13732 
13733 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
13734 
13735 #define _LC1D2S0                0x01
13736 #define _D2S0                   0x01
13737 #define _LC1D2S1                0x02
13738 #define _D2S1                   0x02
13739 #define _LC1D2S2                0x04
13740 #define _D2S2                   0x04
13741 #define _LC1D2S3                0x08
13742 #define _D2S3                   0x08
13743 #define _LC1D2S4                0x10
13744 #define _D2S4                   0x10
13745 #define _LC1D2S5                0x20
13746 #define _D2S5                   0x20
13747 
13748 //==============================================================================
13749 
13750 
13751 //==============================================================================
13752 //        CLC1SEL2 Bits
13753 
13754 extern __at(0x0F14) __sfr CLC1SEL2;
13755 
13756 typedef union
13757   {
13758   struct
13759     {
13760     unsigned LC1D3S0            : 1;
13761     unsigned LC1D3S1            : 1;
13762     unsigned LC1D3S2            : 1;
13763     unsigned LC1D3S3            : 1;
13764     unsigned LC1D3S4            : 1;
13765     unsigned LC1D3S5            : 1;
13766     unsigned                    : 1;
13767     unsigned                    : 1;
13768     };
13769 
13770   struct
13771     {
13772     unsigned D3S0               : 1;
13773     unsigned D3S1               : 1;
13774     unsigned D3S2               : 1;
13775     unsigned D3S3               : 1;
13776     unsigned D3S4               : 1;
13777     unsigned D3S5               : 1;
13778     unsigned                    : 1;
13779     unsigned                    : 1;
13780     };
13781 
13782   struct
13783     {
13784     unsigned D3S                : 6;
13785     unsigned                    : 2;
13786     };
13787 
13788   struct
13789     {
13790     unsigned LC1D3S             : 6;
13791     unsigned                    : 2;
13792     };
13793   } __CLC1SEL2bits_t;
13794 
13795 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
13796 
13797 #define _LC1D3S0                0x01
13798 #define _D3S0                   0x01
13799 #define _LC1D3S1                0x02
13800 #define _D3S1                   0x02
13801 #define _LC1D3S2                0x04
13802 #define _D3S2                   0x04
13803 #define _LC1D3S3                0x08
13804 #define _D3S3                   0x08
13805 #define _LC1D3S4                0x10
13806 #define _D3S4                   0x10
13807 #define _LC1D3S5                0x20
13808 #define _D3S5                   0x20
13809 
13810 //==============================================================================
13811 
13812 
13813 //==============================================================================
13814 //        CLC1SEL3 Bits
13815 
13816 extern __at(0x0F15) __sfr CLC1SEL3;
13817 
13818 typedef union
13819   {
13820   struct
13821     {
13822     unsigned LC1D4S0            : 1;
13823     unsigned LC1D4S1            : 1;
13824     unsigned LC1D4S2            : 1;
13825     unsigned LC1D4S3            : 1;
13826     unsigned LC1D4S4            : 1;
13827     unsigned LC1D4S5            : 1;
13828     unsigned                    : 1;
13829     unsigned                    : 1;
13830     };
13831 
13832   struct
13833     {
13834     unsigned D4S0               : 1;
13835     unsigned D4S1               : 1;
13836     unsigned D4S2               : 1;
13837     unsigned D4S3               : 1;
13838     unsigned D4S4               : 1;
13839     unsigned D4S5               : 1;
13840     unsigned                    : 1;
13841     unsigned                    : 1;
13842     };
13843 
13844   struct
13845     {
13846     unsigned D4S                : 6;
13847     unsigned                    : 2;
13848     };
13849 
13850   struct
13851     {
13852     unsigned LC1D4S             : 6;
13853     unsigned                    : 2;
13854     };
13855   } __CLC1SEL3bits_t;
13856 
13857 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
13858 
13859 #define _LC1D4S0                0x01
13860 #define _D4S0                   0x01
13861 #define _LC1D4S1                0x02
13862 #define _D4S1                   0x02
13863 #define _LC1D4S2                0x04
13864 #define _D4S2                   0x04
13865 #define _LC1D4S3                0x08
13866 #define _D4S3                   0x08
13867 #define _LC1D4S4                0x10
13868 #define _D4S4                   0x10
13869 #define _LC1D4S5                0x20
13870 #define _D4S5                   0x20
13871 
13872 //==============================================================================
13873 
13874 
13875 //==============================================================================
13876 //        CLC1GLS0 Bits
13877 
13878 extern __at(0x0F16) __sfr CLC1GLS0;
13879 
13880 typedef union
13881   {
13882   struct
13883     {
13884     unsigned LC1G1D1N           : 1;
13885     unsigned LC1G1D1T           : 1;
13886     unsigned LC1G1D2N           : 1;
13887     unsigned LC1G1D2T           : 1;
13888     unsigned LC1G1D3N           : 1;
13889     unsigned LC1G1D3T           : 1;
13890     unsigned LC1G1D4N           : 1;
13891     unsigned LC1G1D4T           : 1;
13892     };
13893 
13894   struct
13895     {
13896     unsigned D1N                : 1;
13897     unsigned D1T                : 1;
13898     unsigned D2N                : 1;
13899     unsigned D2T                : 1;
13900     unsigned D3N                : 1;
13901     unsigned D3T                : 1;
13902     unsigned D4N                : 1;
13903     unsigned D4T                : 1;
13904     };
13905   } __CLC1GLS0bits_t;
13906 
13907 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
13908 
13909 #define _LC1G1D1N               0x01
13910 #define _D1N                    0x01
13911 #define _LC1G1D1T               0x02
13912 #define _D1T                    0x02
13913 #define _LC1G1D2N               0x04
13914 #define _D2N                    0x04
13915 #define _LC1G1D2T               0x08
13916 #define _D2T                    0x08
13917 #define _LC1G1D3N               0x10
13918 #define _D3N                    0x10
13919 #define _LC1G1D3T               0x20
13920 #define _D3T                    0x20
13921 #define _LC1G1D4N               0x40
13922 #define _D4N                    0x40
13923 #define _LC1G1D4T               0x80
13924 #define _D4T                    0x80
13925 
13926 //==============================================================================
13927 
13928 
13929 //==============================================================================
13930 //        CLC1GLS1 Bits
13931 
13932 extern __at(0x0F17) __sfr CLC1GLS1;
13933 
13934 typedef union
13935   {
13936   struct
13937     {
13938     unsigned LC1G2D1N           : 1;
13939     unsigned LC1G2D1T           : 1;
13940     unsigned LC1G2D2N           : 1;
13941     unsigned LC1G2D2T           : 1;
13942     unsigned LC1G2D3N           : 1;
13943     unsigned LC1G2D3T           : 1;
13944     unsigned LC1G2D4N           : 1;
13945     unsigned LC1G2D4T           : 1;
13946     };
13947 
13948   struct
13949     {
13950     unsigned D1N                : 1;
13951     unsigned D1T                : 1;
13952     unsigned D2N                : 1;
13953     unsigned D2T                : 1;
13954     unsigned D3N                : 1;
13955     unsigned D3T                : 1;
13956     unsigned D4N                : 1;
13957     unsigned D4T                : 1;
13958     };
13959   } __CLC1GLS1bits_t;
13960 
13961 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
13962 
13963 #define _CLC1GLS1_LC1G2D1N      0x01
13964 #define _CLC1GLS1_D1N           0x01
13965 #define _CLC1GLS1_LC1G2D1T      0x02
13966 #define _CLC1GLS1_D1T           0x02
13967 #define _CLC1GLS1_LC1G2D2N      0x04
13968 #define _CLC1GLS1_D2N           0x04
13969 #define _CLC1GLS1_LC1G2D2T      0x08
13970 #define _CLC1GLS1_D2T           0x08
13971 #define _CLC1GLS1_LC1G2D3N      0x10
13972 #define _CLC1GLS1_D3N           0x10
13973 #define _CLC1GLS1_LC1G2D3T      0x20
13974 #define _CLC1GLS1_D3T           0x20
13975 #define _CLC1GLS1_LC1G2D4N      0x40
13976 #define _CLC1GLS1_D4N           0x40
13977 #define _CLC1GLS1_LC1G2D4T      0x80
13978 #define _CLC1GLS1_D4T           0x80
13979 
13980 //==============================================================================
13981 
13982 
13983 //==============================================================================
13984 //        CLC1GLS2 Bits
13985 
13986 extern __at(0x0F18) __sfr CLC1GLS2;
13987 
13988 typedef union
13989   {
13990   struct
13991     {
13992     unsigned LC1G3D1N           : 1;
13993     unsigned LC1G3D1T           : 1;
13994     unsigned LC1G3D2N           : 1;
13995     unsigned LC1G3D2T           : 1;
13996     unsigned LC1G3D3N           : 1;
13997     unsigned LC1G3D3T           : 1;
13998     unsigned LC1G3D4N           : 1;
13999     unsigned LC1G3D4T           : 1;
14000     };
14001 
14002   struct
14003     {
14004     unsigned D1N                : 1;
14005     unsigned D1T                : 1;
14006     unsigned D2N                : 1;
14007     unsigned D2T                : 1;
14008     unsigned D3N                : 1;
14009     unsigned D3T                : 1;
14010     unsigned D4N                : 1;
14011     unsigned D4T                : 1;
14012     };
14013   } __CLC1GLS2bits_t;
14014 
14015 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
14016 
14017 #define _CLC1GLS2_LC1G3D1N      0x01
14018 #define _CLC1GLS2_D1N           0x01
14019 #define _CLC1GLS2_LC1G3D1T      0x02
14020 #define _CLC1GLS2_D1T           0x02
14021 #define _CLC1GLS2_LC1G3D2N      0x04
14022 #define _CLC1GLS2_D2N           0x04
14023 #define _CLC1GLS2_LC1G3D2T      0x08
14024 #define _CLC1GLS2_D2T           0x08
14025 #define _CLC1GLS2_LC1G3D3N      0x10
14026 #define _CLC1GLS2_D3N           0x10
14027 #define _CLC1GLS2_LC1G3D3T      0x20
14028 #define _CLC1GLS2_D3T           0x20
14029 #define _CLC1GLS2_LC1G3D4N      0x40
14030 #define _CLC1GLS2_D4N           0x40
14031 #define _CLC1GLS2_LC1G3D4T      0x80
14032 #define _CLC1GLS2_D4T           0x80
14033 
14034 //==============================================================================
14035 
14036 
14037 //==============================================================================
14038 //        CLC1GLS3 Bits
14039 
14040 extern __at(0x0F19) __sfr CLC1GLS3;
14041 
14042 typedef union
14043   {
14044   struct
14045     {
14046     unsigned LC1G4D1N           : 1;
14047     unsigned LC1G4D1T           : 1;
14048     unsigned LC1G4D2N           : 1;
14049     unsigned LC1G4D2T           : 1;
14050     unsigned LC1G4D3N           : 1;
14051     unsigned LC1G4D3T           : 1;
14052     unsigned LC1G4D4N           : 1;
14053     unsigned LC1G4D4T           : 1;
14054     };
14055 
14056   struct
14057     {
14058     unsigned G4D1N              : 1;
14059     unsigned G4D1T              : 1;
14060     unsigned G4D2N              : 1;
14061     unsigned G4D2T              : 1;
14062     unsigned G4D3N              : 1;
14063     unsigned G4D3T              : 1;
14064     unsigned G4D4N              : 1;
14065     unsigned G4D4T              : 1;
14066     };
14067   } __CLC1GLS3bits_t;
14068 
14069 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
14070 
14071 #define _LC1G4D1N               0x01
14072 #define _G4D1N                  0x01
14073 #define _LC1G4D1T               0x02
14074 #define _G4D1T                  0x02
14075 #define _LC1G4D2N               0x04
14076 #define _G4D2N                  0x04
14077 #define _LC1G4D2T               0x08
14078 #define _G4D2T                  0x08
14079 #define _LC1G4D3N               0x10
14080 #define _G4D3N                  0x10
14081 #define _LC1G4D3T               0x20
14082 #define _G4D3T                  0x20
14083 #define _LC1G4D4N               0x40
14084 #define _G4D4N                  0x40
14085 #define _LC1G4D4T               0x80
14086 #define _G4D4T                  0x80
14087 
14088 //==============================================================================
14089 
14090 
14091 //==============================================================================
14092 //        CLC2CON Bits
14093 
14094 extern __at(0x0F1A) __sfr CLC2CON;
14095 
14096 typedef union
14097   {
14098   struct
14099     {
14100     unsigned LC2MODE0           : 1;
14101     unsigned LC2MODE1           : 1;
14102     unsigned LC2MODE2           : 1;
14103     unsigned LC2INTN            : 1;
14104     unsigned LC2INTP            : 1;
14105     unsigned LC2OUT             : 1;
14106     unsigned                    : 1;
14107     unsigned LC2EN              : 1;
14108     };
14109 
14110   struct
14111     {
14112     unsigned MODE0              : 1;
14113     unsigned MODE1              : 1;
14114     unsigned MODE2              : 1;
14115     unsigned INTN               : 1;
14116     unsigned INTP               : 1;
14117     unsigned OUT                : 1;
14118     unsigned                    : 1;
14119     unsigned EN                 : 1;
14120     };
14121 
14122   struct
14123     {
14124     unsigned MODE               : 3;
14125     unsigned                    : 5;
14126     };
14127 
14128   struct
14129     {
14130     unsigned LC2MODE            : 3;
14131     unsigned                    : 5;
14132     };
14133   } __CLC2CONbits_t;
14134 
14135 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
14136 
14137 #define _CLC2CON_LC2MODE0       0x01
14138 #define _CLC2CON_MODE0          0x01
14139 #define _CLC2CON_LC2MODE1       0x02
14140 #define _CLC2CON_MODE1          0x02
14141 #define _CLC2CON_LC2MODE2       0x04
14142 #define _CLC2CON_MODE2          0x04
14143 #define _CLC2CON_LC2INTN        0x08
14144 #define _CLC2CON_INTN           0x08
14145 #define _CLC2CON_LC2INTP        0x10
14146 #define _CLC2CON_INTP           0x10
14147 #define _CLC2CON_LC2OUT         0x20
14148 #define _CLC2CON_OUT            0x20
14149 #define _CLC2CON_LC2EN          0x80
14150 #define _CLC2CON_EN             0x80
14151 
14152 //==============================================================================
14153 
14154 
14155 //==============================================================================
14156 //        CLC2POL Bits
14157 
14158 extern __at(0x0F1B) __sfr CLC2POL;
14159 
14160 typedef union
14161   {
14162   struct
14163     {
14164     unsigned LC2G1POL           : 1;
14165     unsigned LC2G2POL           : 1;
14166     unsigned LC2G3POL           : 1;
14167     unsigned LC2G4POL           : 1;
14168     unsigned                    : 1;
14169     unsigned                    : 1;
14170     unsigned                    : 1;
14171     unsigned LC2POL             : 1;
14172     };
14173 
14174   struct
14175     {
14176     unsigned G1POL              : 1;
14177     unsigned G2POL              : 1;
14178     unsigned G3POL              : 1;
14179     unsigned G4POL              : 1;
14180     unsigned                    : 1;
14181     unsigned                    : 1;
14182     unsigned                    : 1;
14183     unsigned POL                : 1;
14184     };
14185   } __CLC2POLbits_t;
14186 
14187 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
14188 
14189 #define _CLC2POL_LC2G1POL       0x01
14190 #define _CLC2POL_G1POL          0x01
14191 #define _CLC2POL_LC2G2POL       0x02
14192 #define _CLC2POL_G2POL          0x02
14193 #define _CLC2POL_LC2G3POL       0x04
14194 #define _CLC2POL_G3POL          0x04
14195 #define _CLC2POL_LC2G4POL       0x08
14196 #define _CLC2POL_G4POL          0x08
14197 #define _CLC2POL_LC2POL         0x80
14198 #define _CLC2POL_POL            0x80
14199 
14200 //==============================================================================
14201 
14202 
14203 //==============================================================================
14204 //        CLC2SEL0 Bits
14205 
14206 extern __at(0x0F1C) __sfr CLC2SEL0;
14207 
14208 typedef union
14209   {
14210   struct
14211     {
14212     unsigned LC2D1S0            : 1;
14213     unsigned LC2D1S1            : 1;
14214     unsigned LC2D1S2            : 1;
14215     unsigned LC2D1S3            : 1;
14216     unsigned LC2D1S4            : 1;
14217     unsigned LC2D1S5            : 1;
14218     unsigned                    : 1;
14219     unsigned                    : 1;
14220     };
14221 
14222   struct
14223     {
14224     unsigned D1S0               : 1;
14225     unsigned D1S1               : 1;
14226     unsigned D1S2               : 1;
14227     unsigned D1S3               : 1;
14228     unsigned D1S4               : 1;
14229     unsigned D1S5               : 1;
14230     unsigned                    : 1;
14231     unsigned                    : 1;
14232     };
14233 
14234   struct
14235     {
14236     unsigned D1S                : 6;
14237     unsigned                    : 2;
14238     };
14239 
14240   struct
14241     {
14242     unsigned LC2D1S             : 6;
14243     unsigned                    : 2;
14244     };
14245   } __CLC2SEL0bits_t;
14246 
14247 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
14248 
14249 #define _CLC2SEL0_LC2D1S0       0x01
14250 #define _CLC2SEL0_D1S0          0x01
14251 #define _CLC2SEL0_LC2D1S1       0x02
14252 #define _CLC2SEL0_D1S1          0x02
14253 #define _CLC2SEL0_LC2D1S2       0x04
14254 #define _CLC2SEL0_D1S2          0x04
14255 #define _CLC2SEL0_LC2D1S3       0x08
14256 #define _CLC2SEL0_D1S3          0x08
14257 #define _CLC2SEL0_LC2D1S4       0x10
14258 #define _CLC2SEL0_D1S4          0x10
14259 #define _CLC2SEL0_LC2D1S5       0x20
14260 #define _CLC2SEL0_D1S5          0x20
14261 
14262 //==============================================================================
14263 
14264 
14265 //==============================================================================
14266 //        CLC2SEL1 Bits
14267 
14268 extern __at(0x0F1D) __sfr CLC2SEL1;
14269 
14270 typedef union
14271   {
14272   struct
14273     {
14274     unsigned LC2D2S0            : 1;
14275     unsigned LC2D2S1            : 1;
14276     unsigned LC2D2S2            : 1;
14277     unsigned LC2D2S3            : 1;
14278     unsigned LC2D2S4            : 1;
14279     unsigned LC2D2S5            : 1;
14280     unsigned                    : 1;
14281     unsigned                    : 1;
14282     };
14283 
14284   struct
14285     {
14286     unsigned D2S0               : 1;
14287     unsigned D2S1               : 1;
14288     unsigned D2S2               : 1;
14289     unsigned D2S3               : 1;
14290     unsigned D2S4               : 1;
14291     unsigned D2S5               : 1;
14292     unsigned                    : 1;
14293     unsigned                    : 1;
14294     };
14295 
14296   struct
14297     {
14298     unsigned LC2D2S             : 6;
14299     unsigned                    : 2;
14300     };
14301 
14302   struct
14303     {
14304     unsigned D2S                : 6;
14305     unsigned                    : 2;
14306     };
14307   } __CLC2SEL1bits_t;
14308 
14309 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
14310 
14311 #define _CLC2SEL1_LC2D2S0       0x01
14312 #define _CLC2SEL1_D2S0          0x01
14313 #define _CLC2SEL1_LC2D2S1       0x02
14314 #define _CLC2SEL1_D2S1          0x02
14315 #define _CLC2SEL1_LC2D2S2       0x04
14316 #define _CLC2SEL1_D2S2          0x04
14317 #define _CLC2SEL1_LC2D2S3       0x08
14318 #define _CLC2SEL1_D2S3          0x08
14319 #define _CLC2SEL1_LC2D2S4       0x10
14320 #define _CLC2SEL1_D2S4          0x10
14321 #define _CLC2SEL1_LC2D2S5       0x20
14322 #define _CLC2SEL1_D2S5          0x20
14323 
14324 //==============================================================================
14325 
14326 
14327 //==============================================================================
14328 //        CLC2SEL2 Bits
14329 
14330 extern __at(0x0F1E) __sfr CLC2SEL2;
14331 
14332 typedef union
14333   {
14334   struct
14335     {
14336     unsigned LC2D3S0            : 1;
14337     unsigned LC2D3S1            : 1;
14338     unsigned LC2D3S2            : 1;
14339     unsigned LC2D3S3            : 1;
14340     unsigned LC2D3S4            : 1;
14341     unsigned LC2D3S5            : 1;
14342     unsigned                    : 1;
14343     unsigned                    : 1;
14344     };
14345 
14346   struct
14347     {
14348     unsigned D3S0               : 1;
14349     unsigned D3S1               : 1;
14350     unsigned D3S2               : 1;
14351     unsigned D3S3               : 1;
14352     unsigned D3S4               : 1;
14353     unsigned D3S5               : 1;
14354     unsigned                    : 1;
14355     unsigned                    : 1;
14356     };
14357 
14358   struct
14359     {
14360     unsigned D3S                : 6;
14361     unsigned                    : 2;
14362     };
14363 
14364   struct
14365     {
14366     unsigned LC2D3S             : 6;
14367     unsigned                    : 2;
14368     };
14369   } __CLC2SEL2bits_t;
14370 
14371 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
14372 
14373 #define _CLC2SEL2_LC2D3S0       0x01
14374 #define _CLC2SEL2_D3S0          0x01
14375 #define _CLC2SEL2_LC2D3S1       0x02
14376 #define _CLC2SEL2_D3S1          0x02
14377 #define _CLC2SEL2_LC2D3S2       0x04
14378 #define _CLC2SEL2_D3S2          0x04
14379 #define _CLC2SEL2_LC2D3S3       0x08
14380 #define _CLC2SEL2_D3S3          0x08
14381 #define _CLC2SEL2_LC2D3S4       0x10
14382 #define _CLC2SEL2_D3S4          0x10
14383 #define _CLC2SEL2_LC2D3S5       0x20
14384 #define _CLC2SEL2_D3S5          0x20
14385 
14386 //==============================================================================
14387 
14388 
14389 //==============================================================================
14390 //        CLC2SEL3 Bits
14391 
14392 extern __at(0x0F1F) __sfr CLC2SEL3;
14393 
14394 typedef union
14395   {
14396   struct
14397     {
14398     unsigned LC2D4S0            : 1;
14399     unsigned LC2D4S1            : 1;
14400     unsigned LC2D4S2            : 1;
14401     unsigned LC2D4S3            : 1;
14402     unsigned LC2D4S4            : 1;
14403     unsigned LC2D4S5            : 1;
14404     unsigned                    : 1;
14405     unsigned                    : 1;
14406     };
14407 
14408   struct
14409     {
14410     unsigned D4S0               : 1;
14411     unsigned D4S1               : 1;
14412     unsigned D4S2               : 1;
14413     unsigned D4S3               : 1;
14414     unsigned D4S4               : 1;
14415     unsigned D4S5               : 1;
14416     unsigned                    : 1;
14417     unsigned                    : 1;
14418     };
14419 
14420   struct
14421     {
14422     unsigned LC2D4S             : 6;
14423     unsigned                    : 2;
14424     };
14425 
14426   struct
14427     {
14428     unsigned D4S                : 6;
14429     unsigned                    : 2;
14430     };
14431   } __CLC2SEL3bits_t;
14432 
14433 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
14434 
14435 #define _CLC2SEL3_LC2D4S0       0x01
14436 #define _CLC2SEL3_D4S0          0x01
14437 #define _CLC2SEL3_LC2D4S1       0x02
14438 #define _CLC2SEL3_D4S1          0x02
14439 #define _CLC2SEL3_LC2D4S2       0x04
14440 #define _CLC2SEL3_D4S2          0x04
14441 #define _CLC2SEL3_LC2D4S3       0x08
14442 #define _CLC2SEL3_D4S3          0x08
14443 #define _CLC2SEL3_LC2D4S4       0x10
14444 #define _CLC2SEL3_D4S4          0x10
14445 #define _CLC2SEL3_LC2D4S5       0x20
14446 #define _CLC2SEL3_D4S5          0x20
14447 
14448 //==============================================================================
14449 
14450 
14451 //==============================================================================
14452 //        CLC2GLS0 Bits
14453 
14454 extern __at(0x0F20) __sfr CLC2GLS0;
14455 
14456 typedef union
14457   {
14458   struct
14459     {
14460     unsigned LC2G1D1N           : 1;
14461     unsigned LC2G1D1T           : 1;
14462     unsigned LC2G1D2N           : 1;
14463     unsigned LC2G1D2T           : 1;
14464     unsigned LC2G1D3N           : 1;
14465     unsigned LC2G1D3T           : 1;
14466     unsigned LC2G1D4N           : 1;
14467     unsigned LC2G1D4T           : 1;
14468     };
14469 
14470   struct
14471     {
14472     unsigned D1N                : 1;
14473     unsigned D1T                : 1;
14474     unsigned D2N                : 1;
14475     unsigned D2T                : 1;
14476     unsigned D3N                : 1;
14477     unsigned D3T                : 1;
14478     unsigned D4N                : 1;
14479     unsigned D4T                : 1;
14480     };
14481   } __CLC2GLS0bits_t;
14482 
14483 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
14484 
14485 #define _CLC2GLS0_LC2G1D1N      0x01
14486 #define _CLC2GLS0_D1N           0x01
14487 #define _CLC2GLS0_LC2G1D1T      0x02
14488 #define _CLC2GLS0_D1T           0x02
14489 #define _CLC2GLS0_LC2G1D2N      0x04
14490 #define _CLC2GLS0_D2N           0x04
14491 #define _CLC2GLS0_LC2G1D2T      0x08
14492 #define _CLC2GLS0_D2T           0x08
14493 #define _CLC2GLS0_LC2G1D3N      0x10
14494 #define _CLC2GLS0_D3N           0x10
14495 #define _CLC2GLS0_LC2G1D3T      0x20
14496 #define _CLC2GLS0_D3T           0x20
14497 #define _CLC2GLS0_LC2G1D4N      0x40
14498 #define _CLC2GLS0_D4N           0x40
14499 #define _CLC2GLS0_LC2G1D4T      0x80
14500 #define _CLC2GLS0_D4T           0x80
14501 
14502 //==============================================================================
14503 
14504 
14505 //==============================================================================
14506 //        CLC2GLS1 Bits
14507 
14508 extern __at(0x0F21) __sfr CLC2GLS1;
14509 
14510 typedef union
14511   {
14512   struct
14513     {
14514     unsigned LC2G2D1N           : 1;
14515     unsigned LC2G2D1T           : 1;
14516     unsigned LC2G2D2N           : 1;
14517     unsigned LC2G2D2T           : 1;
14518     unsigned LC2G2D3N           : 1;
14519     unsigned LC2G2D3T           : 1;
14520     unsigned LC2G2D4N           : 1;
14521     unsigned LC2G2D4T           : 1;
14522     };
14523 
14524   struct
14525     {
14526     unsigned D1N                : 1;
14527     unsigned D1T                : 1;
14528     unsigned D2N                : 1;
14529     unsigned D2T                : 1;
14530     unsigned D3N                : 1;
14531     unsigned D3T                : 1;
14532     unsigned D4N                : 1;
14533     unsigned D4T                : 1;
14534     };
14535   } __CLC2GLS1bits_t;
14536 
14537 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
14538 
14539 #define _CLC2GLS1_LC2G2D1N      0x01
14540 #define _CLC2GLS1_D1N           0x01
14541 #define _CLC2GLS1_LC2G2D1T      0x02
14542 #define _CLC2GLS1_D1T           0x02
14543 #define _CLC2GLS1_LC2G2D2N      0x04
14544 #define _CLC2GLS1_D2N           0x04
14545 #define _CLC2GLS1_LC2G2D2T      0x08
14546 #define _CLC2GLS1_D2T           0x08
14547 #define _CLC2GLS1_LC2G2D3N      0x10
14548 #define _CLC2GLS1_D3N           0x10
14549 #define _CLC2GLS1_LC2G2D3T      0x20
14550 #define _CLC2GLS1_D3T           0x20
14551 #define _CLC2GLS1_LC2G2D4N      0x40
14552 #define _CLC2GLS1_D4N           0x40
14553 #define _CLC2GLS1_LC2G2D4T      0x80
14554 #define _CLC2GLS1_D4T           0x80
14555 
14556 //==============================================================================
14557 
14558 
14559 //==============================================================================
14560 //        CLC2GLS2 Bits
14561 
14562 extern __at(0x0F22) __sfr CLC2GLS2;
14563 
14564 typedef union
14565   {
14566   struct
14567     {
14568     unsigned LC2G3D1N           : 1;
14569     unsigned LC2G3D1T           : 1;
14570     unsigned LC2G3D2N           : 1;
14571     unsigned LC2G3D2T           : 1;
14572     unsigned LC2G3D3N           : 1;
14573     unsigned LC2G3D3T           : 1;
14574     unsigned LC2G3D4N           : 1;
14575     unsigned LC2G3D4T           : 1;
14576     };
14577 
14578   struct
14579     {
14580     unsigned D1N                : 1;
14581     unsigned D1T                : 1;
14582     unsigned D2N                : 1;
14583     unsigned D2T                : 1;
14584     unsigned D3N                : 1;
14585     unsigned D3T                : 1;
14586     unsigned D4N                : 1;
14587     unsigned D4T                : 1;
14588     };
14589   } __CLC2GLS2bits_t;
14590 
14591 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
14592 
14593 #define _CLC2GLS2_LC2G3D1N      0x01
14594 #define _CLC2GLS2_D1N           0x01
14595 #define _CLC2GLS2_LC2G3D1T      0x02
14596 #define _CLC2GLS2_D1T           0x02
14597 #define _CLC2GLS2_LC2G3D2N      0x04
14598 #define _CLC2GLS2_D2N           0x04
14599 #define _CLC2GLS2_LC2G3D2T      0x08
14600 #define _CLC2GLS2_D2T           0x08
14601 #define _CLC2GLS2_LC2G3D3N      0x10
14602 #define _CLC2GLS2_D3N           0x10
14603 #define _CLC2GLS2_LC2G3D3T      0x20
14604 #define _CLC2GLS2_D3T           0x20
14605 #define _CLC2GLS2_LC2G3D4N      0x40
14606 #define _CLC2GLS2_D4N           0x40
14607 #define _CLC2GLS2_LC2G3D4T      0x80
14608 #define _CLC2GLS2_D4T           0x80
14609 
14610 //==============================================================================
14611 
14612 
14613 //==============================================================================
14614 //        CLC2GLS3 Bits
14615 
14616 extern __at(0x0F23) __sfr CLC2GLS3;
14617 
14618 typedef union
14619   {
14620   struct
14621     {
14622     unsigned LC2G4D1N           : 1;
14623     unsigned LC2G4D1T           : 1;
14624     unsigned LC2G4D2N           : 1;
14625     unsigned LC2G4D2T           : 1;
14626     unsigned LC2G4D3N           : 1;
14627     unsigned LC2G4D3T           : 1;
14628     unsigned LC2G4D4N           : 1;
14629     unsigned LC2G4D4T           : 1;
14630     };
14631 
14632   struct
14633     {
14634     unsigned G4D1N              : 1;
14635     unsigned G4D1T              : 1;
14636     unsigned G4D2N              : 1;
14637     unsigned G4D2T              : 1;
14638     unsigned G4D3N              : 1;
14639     unsigned G4D3T              : 1;
14640     unsigned G4D4N              : 1;
14641     unsigned G4D4T              : 1;
14642     };
14643   } __CLC2GLS3bits_t;
14644 
14645 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
14646 
14647 #define _CLC2GLS3_LC2G4D1N      0x01
14648 #define _CLC2GLS3_G4D1N         0x01
14649 #define _CLC2GLS3_LC2G4D1T      0x02
14650 #define _CLC2GLS3_G4D1T         0x02
14651 #define _CLC2GLS3_LC2G4D2N      0x04
14652 #define _CLC2GLS3_G4D2N         0x04
14653 #define _CLC2GLS3_LC2G4D2T      0x08
14654 #define _CLC2GLS3_G4D2T         0x08
14655 #define _CLC2GLS3_LC2G4D3N      0x10
14656 #define _CLC2GLS3_G4D3N         0x10
14657 #define _CLC2GLS3_LC2G4D3T      0x20
14658 #define _CLC2GLS3_G4D3T         0x20
14659 #define _CLC2GLS3_LC2G4D4N      0x40
14660 #define _CLC2GLS3_G4D4N         0x40
14661 #define _CLC2GLS3_LC2G4D4T      0x80
14662 #define _CLC2GLS3_G4D4T         0x80
14663 
14664 //==============================================================================
14665 
14666 
14667 //==============================================================================
14668 //        STATUS_SHAD Bits
14669 
14670 extern __at(0x0FE4) __sfr STATUS_SHAD;
14671 
14672 typedef struct
14673   {
14674   unsigned C_SHAD               : 1;
14675   unsigned DC_SHAD              : 1;
14676   unsigned Z_SHAD               : 1;
14677   unsigned                      : 1;
14678   unsigned                      : 1;
14679   unsigned                      : 1;
14680   unsigned                      : 1;
14681   unsigned                      : 1;
14682   } __STATUS_SHADbits_t;
14683 
14684 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
14685 
14686 #define _C_SHAD                 0x01
14687 #define _DC_SHAD                0x02
14688 #define _Z_SHAD                 0x04
14689 
14690 //==============================================================================
14691 
14692 extern __at(0x0FE5) __sfr WREG_SHAD;
14693 extern __at(0x0FE6) __sfr BSR_SHAD;
14694 extern __at(0x0FE7) __sfr PCLATH_SHAD;
14695 extern __at(0x0FE8) __sfr FSR0L_SHAD;
14696 extern __at(0x0FE9) __sfr FSR0H_SHAD;
14697 extern __at(0x0FEA) __sfr FSR1L_SHAD;
14698 extern __at(0x0FEB) __sfr FSR1H_SHAD;
14699 extern __at(0x0FED) __sfr STKPTR;
14700 extern __at(0x0FEE) __sfr TOSL;
14701 extern __at(0x0FEF) __sfr TOSH;
14702 
14703 //==============================================================================
14704 //
14705 //        Configuration Bits
14706 //
14707 //==============================================================================
14708 
14709 #define _CONFIG1                0x8007
14710 #define _CONFIG2                0x8008
14711 #define _CONFIG3                0x8009
14712 
14713 //----------------------------- CONFIG1 Options -------------------------------
14714 
14715 #define _FOSC_INTOSC            0x3FFC  // INTOSC oscillator: I/O function on CLKIN pin.
14716 #define _FOSC_ECL               0x3FFD  // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
14717 #define _FOSC_ECM               0x3FFE  // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
14718 #define _FOSC_ECH               0x3FFF  // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
14719 #define _PWRTE_ON               0x3FDF  // PWRT enabled.
14720 #define _PWRTE_OFF              0x3FFF  // PWRT disabled.
14721 #define _MCLRE_OFF              0x3FBF  // MCLR/VPP pin function is digital input.
14722 #define _MCLRE_ON               0x3FFF  // MCLR/VPP pin function is MCLR.
14723 #define _CP_ON                  0x3F7F  // Program memory code protection is enabled.
14724 #define _CP_OFF                 0x3FFF  // Program memory code protection is disabled.
14725 #define _BOREN_OFF              0x39FF  // Brown-out Reset disabled.
14726 #define _BOREN_SBODEN           0x3BFF  // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
14727 #define _BOREN_NSLEEP           0x3DFF  // Brown-out Reset enabled while running and disabled in Sleep.
14728 #define _BOREN_ON               0x3FFF  // Brown-out Reset enabled.
14729 #define _CLKOUTEN_ON            0x37FF  // CLKOUT function is enabled on the CLKOUT pin.
14730 #define _CLKOUTEN_OFF           0x3FFF  // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
14731 
14732 //----------------------------- CONFIG2 Options -------------------------------
14733 
14734 #define _WRT_ALL                0x3FFC  // 000h to 1FFFh write protected, no addresses may be modified by PMCON control.
14735 #define _WRT_HALF               0x3FFD  // 000h to FFFh write protected, 1000h to 1FFFh may be modified by PMCON control.
14736 #define _WRT_BOOT               0x3FFE  // 000h to 1FFh write protected, 200h to 1FFFh may be modified by PMCON control.
14737 #define _WRT_OFF                0x3FFF  // Write protection off.
14738 #define _PPS1WAY_OFF            0x3FFB  // The PPSLOCK bit can be set and cleared repeatedly by software.
14739 #define _PPS1WAY_ON             0x3FFF  // The PPSLOCK bit cannot be cleared once it is set by software.
14740 #define _ZCD_ON                 0x3F7F  // ZCD always enabled.
14741 #define _ZCD_OFF                0x3FFF  // ZCD disable.  ZCD can be enabled by setting the ZCDSEN bit of ZCDCON.
14742 #define _PLLEN_OFF              0x3EFF  // 4x PLL is enabled when software sets the SPLLEN bit.
14743 #define _PLLEN_ON               0x3FFF  // 4x PLL is always enabled.
14744 #define _STVREN_OFF             0x3DFF  // Stack Overflow or Underflow will not cause a Reset.
14745 #define _STVREN_ON              0x3FFF  // Stack Overflow or Underflow will cause a Reset.
14746 #define _BORV_HI                0x3BFF  // Brown-out Reset Voltage (Vbor), high trip point selected.
14747 #define _BORV_LO                0x3FFF  // Brown-out Reset Voltage (Vbor), low trip point selected.
14748 #define _LPBOR_ON               0x37FF  // Low-Power BOR is enabled.
14749 #define _LPBOR_OFF              0x3FFF  // Low-Power BOR is disabled.
14750 #define _DEBUG_ON               0x2FFF  // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
14751 #define _DEBUG_OFF              0x3FFF  // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
14752 #define _LVP_OFF                0x1FFF  // High-voltage on MCLR/VPP must be used for programming.
14753 #define _LVP_ON                 0x3FFF  // Low-voltage programming enabled.
14754 
14755 //----------------------------- CONFIG3 Options -------------------------------
14756 
14757 #define _WDTCPS_WDTCPS0         0x3FE0  // 1:32 (1 ms period).
14758 #define _WDTCPS_WDTCPS1         0x3FE1  // 1:64 (2 ms period).
14759 #define _WDTCPS_WDTCPS2         0x3FE2  // 1:128 (4 ms period).
14760 #define _WDTCPS_WDTCPS3         0x3FE3  // 1:256 (8 ms period).
14761 #define _WDTCPS_WDTCPS4         0x3FE4  // 1:512 (16 ms period).
14762 #define _WDTCPS_WDTCPS5         0x3FE5  // 1:1024 (32 ms period).
14763 #define _WDTCPS_WDTCPS6         0x3FE6  // 1:2048 (64 ms period).
14764 #define _WDTCPS_WDTCPS7         0x3FE7  // 1:4096 (128 ms period).
14765 #define _WDTCPS_WDTCPS8         0x3FE8  // 1:8192 (256 ms period).
14766 #define _WDTCPS_WDTCPS9         0x3FE9  // 1:16384 (512 ms period).
14767 #define _WDTCPS_WDTCPSA         0x3FEA  // 1:32768 (1 s period).
14768 #define _WDTCPS_WDTCPSB         0x3FEB  // 1:65536 (2 s period).
14769 #define _WDTCPS_WDTCPSC         0x3FEC  // 1:131072 (4 s period).
14770 #define _WDTCPS_WDTCPSD         0x3FED  // 1:262144 (8 s period).
14771 #define _WDTCPS_WDTCPSE         0x3FEE  // 1:524299 (16 s period).
14772 #define _WDTCPS_WDTCPSF         0x3FEF  // 1:1048576 (32 s period).
14773 #define _WDTCPS_WDTCPS10        0x3FF0  // 1:2097152 (64 s period).
14774 #define _WDTCPS_WDTCPS11        0x3FF1  // 1:4194304 (128 s period).
14775 #define _WDTCPS_WDTCPS12        0x3FF2  // 1:8388608 (256 s period).
14776 #define _WDTCPS_WDTCPS1F        0x3FFF  // Software Control (WDTPS).
14777 #define _WDTE_OFF               0x3F9F  // WDT disabled.
14778 #define _WDTE_SWDTEN            0x3FBF  // WDT controlled by the SWDTEN bit in the WDTCON register.
14779 #define _WDTE_NSLEEP            0x3FDF  // WDT enabled while running and disabled in Sleep.
14780 #define _WDTE_ON                0x3FFF  // WDT enabled.
14781 #define _WDTCWS_WDTCWS125       0x38FF  // 12.5 percent window open time.
14782 #define _WDTCWS_WDTCWS25        0x39FF  // 25 percent window open time.
14783 #define _WDTCWS_WDTCWS375       0x3AFF  // 37.5 percent window open time.
14784 #define _WDTCWS_WDTCWS50        0x3BFF  // 50 percent window open time.
14785 #define _WDTCWS_WDTCWS625       0x3CFF  // 62.5 percent window open time.
14786 #define _WDTCWS_WDTCWS75        0x3DFF  // 75 percent window open time.
14787 #define _WDTCWS_WDTCWS100       0x3EFF  // 100 percent window open time (Legacy WDT).
14788 #define _WDTCWS_WDTCWSSW        0x3FFF  // Software WDT window size control (WDTWS bits).
14789 #define _WDTCCS_LFINTOSC        0x07FF  // 31.0kHz LFINTOSC.
14790 #define _WDTCCS_MFINTOSC        0x0FFF  // 31.25 kHz HFINTOSC (MFINTOSC).
14791 #define _WDTCCS_SWC             0x3FFF  // Software control, controlled by WDTCS bits.
14792 
14793 //==============================================================================
14794 
14795 #define _DEVID1                 0x8006
14796 
14797 #define _IDLOC0                 0x8000
14798 #define _IDLOC1                 0x8001
14799 #define _IDLOC2                 0x8002
14800 #define _IDLOC3                 0x8003
14801 
14802 //==============================================================================
14803 
14804 #ifndef NO_BIT_DEFINES
14805 
14806 #define ADON                    ADCON0bits.ADON                 // bit 0
14807 #define GO_NOT_DONE             ADCON0bits.GO_NOT_DONE          // bit 1, shadows bit in ADCON0bits
14808 #define ADGO                    ADCON0bits.ADGO                 // bit 1, shadows bit in ADCON0bits
14809 #define GO                      ADCON0bits.GO                   // bit 1, shadows bit in ADCON0bits
14810 #define CHS0                    ADCON0bits.CHS0                 // bit 2
14811 #define CHS1                    ADCON0bits.CHS1                 // bit 3
14812 #define CHS2                    ADCON0bits.CHS2                 // bit 4
14813 #define CHS3                    ADCON0bits.CHS3                 // bit 5
14814 #define CHS4                    ADCON0bits.CHS4                 // bit 6
14815 
14816 #define ADPREF0                 ADCON1bits.ADPREF0              // bit 0
14817 #define ADPREF1                 ADCON1bits.ADPREF1              // bit 1
14818 #define ADCS0                   ADCON1bits.ADCS0                // bit 4
14819 #define ADCS1                   ADCON1bits.ADCS1                // bit 5
14820 #define ADCS2                   ADCON1bits.ADCS2                // bit 6
14821 #define ADFM                    ADCON1bits.ADFM                 // bit 7
14822 
14823 #define TRIGSEL0                ADCON2bits.TRIGSEL0             // bit 4
14824 #define TRIGSEL1                ADCON2bits.TRIGSEL1             // bit 5
14825 #define TRIGSEL2                ADCON2bits.TRIGSEL2             // bit 6
14826 #define TRIGSEL3                ADCON2bits.TRIGSEL3             // bit 7
14827 
14828 #define ANSA0                   ANSELAbits.ANSA0                // bit 0
14829 #define ANSA1                   ANSELAbits.ANSA1                // bit 1
14830 #define ANSA2                   ANSELAbits.ANSA2                // bit 2
14831 #define ANSA4                   ANSELAbits.ANSA4                // bit 4
14832 
14833 #define ANSB4                   ANSELBbits.ANSB4                // bit 4
14834 #define ANSB5                   ANSELBbits.ANSB5                // bit 5
14835 #define ANSB6                   ANSELBbits.ANSB6                // bit 6
14836 #define ANSB7                   ANSELBbits.ANSB7                // bit 7
14837 
14838 #define ANSC0                   ANSELCbits.ANSC0                // bit 0
14839 #define ANSC1                   ANSELCbits.ANSC1                // bit 1
14840 #define ANSC2                   ANSELCbits.ANSC2                // bit 2
14841 #define ANSC3                   ANSELCbits.ANSC3                // bit 3
14842 #define ANSC6                   ANSELCbits.ANSC6                // bit 6
14843 #define ANSC7                   ANSELCbits.ANSC7                // bit 7
14844 
14845 #define AT1CC18                 AT1CC1Hbits.AT1CC18             // bit 0, shadows bit in AT1CC1Hbits
14846 #define CC18                    AT1CC1Hbits.CC18                // bit 0, shadows bit in AT1CC1Hbits
14847 #define AT1CC19                 AT1CC1Hbits.AT1CC19             // bit 1, shadows bit in AT1CC1Hbits
14848 #define CC19                    AT1CC1Hbits.CC19                // bit 1, shadows bit in AT1CC1Hbits
14849 
14850 #define AT1CC10                 AT1CC1Lbits.AT1CC10             // bit 0, shadows bit in AT1CC1Lbits
14851 #define CC10                    AT1CC1Lbits.CC10                // bit 0, shadows bit in AT1CC1Lbits
14852 #define AT1CC11                 AT1CC1Lbits.AT1CC11             // bit 1, shadows bit in AT1CC1Lbits
14853 #define CC11                    AT1CC1Lbits.CC11                // bit 1, shadows bit in AT1CC1Lbits
14854 #define AT1CC12                 AT1CC1Lbits.AT1CC12             // bit 2, shadows bit in AT1CC1Lbits
14855 #define CC12                    AT1CC1Lbits.CC12                // bit 2, shadows bit in AT1CC1Lbits
14856 #define AT1CC13                 AT1CC1Lbits.AT1CC13             // bit 3, shadows bit in AT1CC1Lbits
14857 #define CC13                    AT1CC1Lbits.CC13                // bit 3, shadows bit in AT1CC1Lbits
14858 #define AT1CC14                 AT1CC1Lbits.AT1CC14             // bit 4, shadows bit in AT1CC1Lbits
14859 #define CC14                    AT1CC1Lbits.CC14                // bit 4, shadows bit in AT1CC1Lbits
14860 #define AT1CC15                 AT1CC1Lbits.AT1CC15             // bit 5, shadows bit in AT1CC1Lbits
14861 #define CC15                    AT1CC1Lbits.CC15                // bit 5, shadows bit in AT1CC1Lbits
14862 #define AT1CC16                 AT1CC1Lbits.AT1CC16             // bit 6, shadows bit in AT1CC1Lbits
14863 #define CC16                    AT1CC1Lbits.CC16                // bit 6, shadows bit in AT1CC1Lbits
14864 #define AT1CC17                 AT1CC1Lbits.AT1CC17             // bit 7, shadows bit in AT1CC1Lbits
14865 #define CC17                    AT1CC1Lbits.CC17                // bit 7, shadows bit in AT1CC1Lbits
14866 
14867 #define AT1CC28                 AT1CC2Hbits.AT1CC28             // bit 0, shadows bit in AT1CC2Hbits
14868 #define CC28                    AT1CC2Hbits.CC28                // bit 0, shadows bit in AT1CC2Hbits
14869 #define AT1CC29                 AT1CC2Hbits.AT1CC29             // bit 1, shadows bit in AT1CC2Hbits
14870 #define CC29                    AT1CC2Hbits.CC29                // bit 1, shadows bit in AT1CC2Hbits
14871 
14872 #define AT1CC38                 AT1CC3Hbits.AT1CC38             // bit 0, shadows bit in AT1CC3Hbits
14873 #define CC38                    AT1CC3Hbits.CC38                // bit 0, shadows bit in AT1CC3Hbits
14874 #define AT1CC39                 AT1CC3Hbits.AT1CC39             // bit 1, shadows bit in AT1CC3Hbits
14875 #define CC39                    AT1CC3Hbits.CC39                // bit 1, shadows bit in AT1CC3Hbits
14876 
14877 #define AT1CC30                 AT1CC3Lbits.AT1CC30             // bit 0, shadows bit in AT1CC3Lbits
14878 #define CC30                    AT1CC3Lbits.CC30                // bit 0, shadows bit in AT1CC3Lbits
14879 #define AT1CC31                 AT1CC3Lbits.AT1CC31             // bit 1, shadows bit in AT1CC3Lbits
14880 #define CC31                    AT1CC3Lbits.CC31                // bit 1, shadows bit in AT1CC3Lbits
14881 #define AT1CC32                 AT1CC3Lbits.AT1CC32             // bit 2, shadows bit in AT1CC3Lbits
14882 #define CC32                    AT1CC3Lbits.CC32                // bit 2, shadows bit in AT1CC3Lbits
14883 #define AT1CC33                 AT1CC3Lbits.AT1CC33             // bit 3, shadows bit in AT1CC3Lbits
14884 #define CC33                    AT1CC3Lbits.CC33                // bit 3, shadows bit in AT1CC3Lbits
14885 #define AT1CC34                 AT1CC3Lbits.AT1CC34             // bit 4, shadows bit in AT1CC3Lbits
14886 #define CC34                    AT1CC3Lbits.CC34                // bit 4, shadows bit in AT1CC3Lbits
14887 #define AT1CC35                 AT1CC3Lbits.AT1CC35             // bit 5, shadows bit in AT1CC3Lbits
14888 #define CC35                    AT1CC3Lbits.CC35                // bit 5, shadows bit in AT1CC3Lbits
14889 #define AT1CC36                 AT1CC3Lbits.AT1CC36             // bit 6, shadows bit in AT1CC3Lbits
14890 #define CC36                    AT1CC3Lbits.CC36                // bit 6, shadows bit in AT1CC3Lbits
14891 #define AT1CC37                 AT1CC3Lbits.AT1CC37             // bit 7, shadows bit in AT1CC3Lbits
14892 #define CC37                    AT1CC3Lbits.CC37                // bit 7, shadows bit in AT1CC3Lbits
14893 
14894 #define AT1CC1MODE              AT1CCON1bits.AT1CC1MODE         // bit 0, shadows bit in AT1CCON1bits
14895 #define CC1MODE                 AT1CCON1bits.CC1MODE            // bit 0, shadows bit in AT1CCON1bits
14896 #define AT1CAP1P                AT1CCON1bits.AT1CAP1P           // bit 3, shadows bit in AT1CCON1bits
14897 #define CAP1P                   AT1CCON1bits.CAP1P              // bit 3, shadows bit in AT1CCON1bits
14898 #define AT1CC1POL               AT1CCON1bits.AT1CC1POL          // bit 4, shadows bit in AT1CCON1bits
14899 #define CC1POL                  AT1CCON1bits.CC1POL             // bit 4, shadows bit in AT1CCON1bits
14900 #define AT1CC1EN                AT1CCON1bits.AT1CC1EN           // bit 7, shadows bit in AT1CCON1bits
14901 #define CC1EN                   AT1CCON1bits.CC1EN              // bit 7, shadows bit in AT1CCON1bits
14902 
14903 #define AT1CC2MODE              AT1CCON2bits.AT1CC2MODE         // bit 0, shadows bit in AT1CCON2bits
14904 #define CC2MODE                 AT1CCON2bits.CC2MODE            // bit 0, shadows bit in AT1CCON2bits
14905 #define AT1CAP2P                AT1CCON2bits.AT1CAP2P           // bit 3, shadows bit in AT1CCON2bits
14906 #define CAP2P                   AT1CCON2bits.CAP2P              // bit 3, shadows bit in AT1CCON2bits
14907 #define AT1CC2POL               AT1CCON2bits.AT1CC2POL          // bit 4, shadows bit in AT1CCON2bits
14908 #define CC2POL                  AT1CCON2bits.CC2POL             // bit 4, shadows bit in AT1CCON2bits
14909 #define AT1CC2EN                AT1CCON2bits.AT1CC2EN           // bit 7, shadows bit in AT1CCON2bits
14910 #define CC2EN                   AT1CCON2bits.CC2EN              // bit 7, shadows bit in AT1CCON2bits
14911 
14912 #define AT1CC3MODE              AT1CCON3bits.AT1CC3MODE         // bit 0, shadows bit in AT1CCON3bits
14913 #define CC3MODE                 AT1CCON3bits.CC3MODE            // bit 0, shadows bit in AT1CCON3bits
14914 #define AT1CAP3P                AT1CCON3bits.AT1CAP3P           // bit 3, shadows bit in AT1CCON3bits
14915 #define CAP3P                   AT1CCON3bits.CAP3P              // bit 3, shadows bit in AT1CCON3bits
14916 #define AT1CC3POL               AT1CCON3bits.AT1CC3POL          // bit 4, shadows bit in AT1CCON3bits
14917 #define CC3POL                  AT1CCON3bits.CC3POL             // bit 4, shadows bit in AT1CCON3bits
14918 #define AT1CC3EN                AT1CCON3bits.AT1CC3EN           // bit 7, shadows bit in AT1CCON3bits
14919 #define CC3EN                   AT1CCON3bits.CC3EN              // bit 7, shadows bit in AT1CCON3bits
14920 
14921 #define CS                      AT1CLKbits.CS                   // bit 0, shadows bit in AT1CLKbits
14922 #define AT1CS                   AT1CLKbits.AT1CS                // bit 0, shadows bit in AT1CLKbits
14923 #define CS0                     AT1CLKbits.CS0                  // bit 0, shadows bit in AT1CLKbits
14924 #define AT1CS0                  AT1CLKbits.AT1CS0               // bit 0, shadows bit in AT1CLKbits
14925 
14926 #define MODE                    AT1CON0bits.MODE                // bit 0, shadows bit in AT1CON0bits
14927 #define AT1MODE                 AT1CON0bits.AT1MODE             // bit 0, shadows bit in AT1CON0bits
14928 #define APMOD                   AT1CON0bits.APMOD               // bit 1, shadows bit in AT1CON0bits
14929 #define AT1APMOD                AT1CON0bits.AT1APMOD            // bit 1, shadows bit in AT1CON0bits
14930 #define POL                     AT1CON0bits.POL                 // bit 3, shadows bit in AT1CON0bits
14931 #define AT1POL                  AT1CON0bits.AT1POL              // bit 3, shadows bit in AT1CON0bits
14932 #define PS0                     AT1CON0bits.PS0                 // bit 4, shadows bit in AT1CON0bits
14933 #define AT1PS0                  AT1CON0bits.AT1PS0              // bit 4, shadows bit in AT1CON0bits
14934 #define PS1                     AT1CON0bits.PS1                 // bit 5, shadows bit in AT1CON0bits
14935 #define AT1PS1                  AT1CON0bits.AT1PS1              // bit 5, shadows bit in AT1CON0bits
14936 #define PREC                    AT1CON0bits.PREC                // bit 6, shadows bit in AT1CON0bits
14937 #define AT1PREC                 AT1CON0bits.AT1PREC             // bit 6, shadows bit in AT1CON0bits
14938 #define EN                      AT1CON0bits.EN                  // bit 7, shadows bit in AT1CON0bits
14939 #define AT1EN                   AT1CON0bits.AT1EN               // bit 7, shadows bit in AT1CON0bits
14940 
14941 #define VALID                   AT1CON1bits.VALID               // bit 0, shadows bit in AT1CON1bits
14942 #define AT1VALID                AT1CON1bits.AT1VALID            // bit 0, shadows bit in AT1CON1bits
14943 #define ACCS                    AT1CON1bits.ACCS                // bit 1, shadows bit in AT1CON1bits
14944 #define AT1ACCS                 AT1CON1bits.AT1ACCS             // bit 1, shadows bit in AT1CON1bits
14945 #define MPP                     AT1CON1bits.MPP                 // bit 2, shadows bit in AT1CON1bits
14946 #define AT1MPP                  AT1CON1bits.AT1MPP              // bit 2, shadows bit in AT1CON1bits
14947 #define PRP                     AT1CON1bits.PRP                 // bit 4, shadows bit in AT1CON1bits
14948 #define AT1PRP                  AT1CON1bits.AT1PRP              // bit 4, shadows bit in AT1CON1bits
14949 #define PHP                     AT1CON1bits.PHP                 // bit 6, shadows bit in AT1CON1bits
14950 #define AT1PHP                  AT1CON1bits.AT1PHP              // bit 6, shadows bit in AT1CON1bits
14951 
14952 #define AT1CP1S0                AT1CSEL1bits.AT1CP1S0           // bit 0, shadows bit in AT1CSEL1bits
14953 #define CP1S0                   AT1CSEL1bits.CP1S0              // bit 0, shadows bit in AT1CSEL1bits
14954 #define AT1CP1S1                AT1CSEL1bits.AT1CP1S1           // bit 1, shadows bit in AT1CSEL1bits
14955 #define CP1S1                   AT1CSEL1bits.CP1S1              // bit 1, shadows bit in AT1CSEL1bits
14956 #define AT1CP1S2                AT1CSEL1bits.AT1CP1S2           // bit 2, shadows bit in AT1CSEL1bits
14957 #define CP1S2                   AT1CSEL1bits.CP1S2              // bit 2, shadows bit in AT1CSEL1bits
14958 
14959 #define AT1CP2S0                AT1CSEL2bits.AT1CP2S0           // bit 0, shadows bit in AT1CSEL2bits
14960 #define CP2S0                   AT1CSEL2bits.CP2S0              // bit 0, shadows bit in AT1CSEL2bits
14961 #define AT1CP2S1                AT1CSEL2bits.AT1CP2S1           // bit 1, shadows bit in AT1CSEL2bits
14962 #define CP2S1                   AT1CSEL2bits.CP2S1              // bit 1, shadows bit in AT1CSEL2bits
14963 #define AT1CP2S2                AT1CSEL2bits.AT1CP2S2           // bit 2, shadows bit in AT1CSEL2bits
14964 #define CP2S2                   AT1CSEL2bits.CP2S2              // bit 2, shadows bit in AT1CSEL2bits
14965 
14966 #define AT1CP3S0                AT1CSEL3bits.AT1CP3S0           // bit 0, shadows bit in AT1CSEL3bits
14967 #define CP3S0                   AT1CSEL3bits.CP3S0              // bit 0, shadows bit in AT1CSEL3bits
14968 #define AT1CP3S1                AT1CSEL3bits.AT1CP3S1           // bit 1, shadows bit in AT1CSEL3bits
14969 #define CP3S1                   AT1CSEL3bits.CP3S1              // bit 1, shadows bit in AT1CSEL3bits
14970 #define AT1CP3S2                AT1CSEL3bits.AT1CP3S2           // bit 2, shadows bit in AT1CSEL3bits
14971 #define CP3S2                   AT1CSEL3bits.CP3S2              // bit 2, shadows bit in AT1CSEL3bits
14972 
14973 #define AT1ERR8                 AT1ERRHbits.AT1ERR8             // bit 0, shadows bit in AT1ERRHbits
14974 #define ERR8                    AT1ERRHbits.ERR8                // bit 0, shadows bit in AT1ERRHbits
14975 #define ERRH0                   AT1ERRHbits.ERRH0               // bit 0, shadows bit in AT1ERRHbits
14976 #define AT1ERR9                 AT1ERRHbits.AT1ERR9             // bit 1, shadows bit in AT1ERRHbits
14977 #define ERR9                    AT1ERRHbits.ERR9                // bit 1, shadows bit in AT1ERRHbits
14978 #define ERRH1                   AT1ERRHbits.ERRH1               // bit 1, shadows bit in AT1ERRHbits
14979 #define AT1ERR10                AT1ERRHbits.AT1ERR10            // bit 2, shadows bit in AT1ERRHbits
14980 #define ERR10                   AT1ERRHbits.ERR10               // bit 2, shadows bit in AT1ERRHbits
14981 #define ERRH2                   AT1ERRHbits.ERRH2               // bit 2, shadows bit in AT1ERRHbits
14982 #define AT1ERR11                AT1ERRHbits.AT1ERR11            // bit 3, shadows bit in AT1ERRHbits
14983 #define ERR11                   AT1ERRHbits.ERR11               // bit 3, shadows bit in AT1ERRHbits
14984 #define ERRH3                   AT1ERRHbits.ERRH3               // bit 3, shadows bit in AT1ERRHbits
14985 #define AT1ERR12                AT1ERRHbits.AT1ERR12            // bit 4, shadows bit in AT1ERRHbits
14986 #define ERR12                   AT1ERRHbits.ERR12               // bit 4, shadows bit in AT1ERRHbits
14987 #define ERRH4                   AT1ERRHbits.ERRH4               // bit 4, shadows bit in AT1ERRHbits
14988 #define AT1ERR13                AT1ERRHbits.AT1ERR13            // bit 5, shadows bit in AT1ERRHbits
14989 #define ERR13                   AT1ERRHbits.ERR13               // bit 5, shadows bit in AT1ERRHbits
14990 #define ERRH5                   AT1ERRHbits.ERRH5               // bit 5, shadows bit in AT1ERRHbits
14991 #define AT1ERR14                AT1ERRHbits.AT1ERR14            // bit 6, shadows bit in AT1ERRHbits
14992 #define ERR14                   AT1ERRHbits.ERR14               // bit 6, shadows bit in AT1ERRHbits
14993 #define ERRH6                   AT1ERRHbits.ERRH6               // bit 6, shadows bit in AT1ERRHbits
14994 #define AT1ERR15                AT1ERRHbits.AT1ERR15            // bit 7, shadows bit in AT1ERRHbits
14995 #define ERR15                   AT1ERRHbits.ERR15               // bit 7, shadows bit in AT1ERRHbits
14996 #define ERRH7                   AT1ERRHbits.ERRH7               // bit 7, shadows bit in AT1ERRHbits
14997 
14998 #define AT1ERR0                 AT1ERRLbits.AT1ERR0             // bit 0, shadows bit in AT1ERRLbits
14999 #define ERR0                    AT1ERRLbits.ERR0                // bit 0, shadows bit in AT1ERRLbits
15000 #define ERRL0                   AT1ERRLbits.ERRL0               // bit 0, shadows bit in AT1ERRLbits
15001 #define AT1ERR1                 AT1ERRLbits.AT1ERR1             // bit 1, shadows bit in AT1ERRLbits
15002 #define ERR1                    AT1ERRLbits.ERR1                // bit 1, shadows bit in AT1ERRLbits
15003 #define ERRL1                   AT1ERRLbits.ERRL1               // bit 1, shadows bit in AT1ERRLbits
15004 #define AT1ERR2                 AT1ERRLbits.AT1ERR2             // bit 2, shadows bit in AT1ERRLbits
15005 #define ERR2                    AT1ERRLbits.ERR2                // bit 2, shadows bit in AT1ERRLbits
15006 #define ERRL2                   AT1ERRLbits.ERRL2               // bit 2, shadows bit in AT1ERRLbits
15007 #define AT1ERR3                 AT1ERRLbits.AT1ERR3             // bit 3, shadows bit in AT1ERRLbits
15008 #define ERR3                    AT1ERRLbits.ERR3                // bit 3, shadows bit in AT1ERRLbits
15009 #define ERRL3                   AT1ERRLbits.ERRL3               // bit 3, shadows bit in AT1ERRLbits
15010 #define AT1ERR4                 AT1ERRLbits.AT1ERR4             // bit 4, shadows bit in AT1ERRLbits
15011 #define ERR4                    AT1ERRLbits.ERR4                // bit 4, shadows bit in AT1ERRLbits
15012 #define ERRL4                   AT1ERRLbits.ERRL4               // bit 4, shadows bit in AT1ERRLbits
15013 #define AT1ERR5                 AT1ERRLbits.AT1ERR5             // bit 5, shadows bit in AT1ERRLbits
15014 #define ERR5                    AT1ERRLbits.ERR5                // bit 5, shadows bit in AT1ERRLbits
15015 #define ERRL5                   AT1ERRLbits.ERRL5               // bit 5, shadows bit in AT1ERRLbits
15016 #define AT1ERR6                 AT1ERRLbits.AT1ERR6             // bit 6, shadows bit in AT1ERRLbits
15017 #define ERR6                    AT1ERRLbits.ERR6                // bit 6, shadows bit in AT1ERRLbits
15018 #define ERRL6                   AT1ERRLbits.ERRL6               // bit 6, shadows bit in AT1ERRLbits
15019 #define AT1ERR7                 AT1ERRLbits.AT1ERR7             // bit 7, shadows bit in AT1ERRLbits
15020 #define ERR7                    AT1ERRLbits.ERR7                // bit 7, shadows bit in AT1ERRLbits
15021 #define ERRL7                   AT1ERRLbits.ERRL7               // bit 7, shadows bit in AT1ERRLbits
15022 
15023 #define AT1PERIE                AT1IE0bits.AT1PERIE             // bit 0
15024 #define AT1MISSIE               AT1IE0bits.AT1MISSIE            // bit 1
15025 #define AT1PHSIE                AT1IE0bits.AT1PHSIE             // bit 2
15026 
15027 #define AT1CC1IE                AT1IE1bits.AT1CC1IE             // bit 0
15028 #define AT1CC2IE                AT1IE1bits.AT1CC2IE             // bit 1
15029 #define AT1CC3IE                AT1IE1bits.AT1CC3IE             // bit 2
15030 
15031 #define AT1PERIF                AT1IR0bits.AT1PERIF             // bit 0
15032 #define AT1MISSIF               AT1IR0bits.AT1MISSIF            // bit 1
15033 #define AT1PHSIF                AT1IR0bits.AT1PHSIF             // bit 2
15034 
15035 #define AT1CC1IF                AT1IR1bits.AT1CC1IF             // bit 0
15036 #define AT1CC2IF                AT1IR1bits.AT1CC2IF             // bit 1
15037 #define AT1CC3IF                AT1IR1bits.AT1CC3IF             // bit 2
15038 
15039 #define AT1MISS8                AT1MISSHbits.AT1MISS8           // bit 0, shadows bit in AT1MISSHbits
15040 #define MISS8                   AT1MISSHbits.MISS8              // bit 0, shadows bit in AT1MISSHbits
15041 #define AT1MISS9                AT1MISSHbits.AT1MISS9           // bit 1, shadows bit in AT1MISSHbits
15042 #define MISS9                   AT1MISSHbits.MISS9              // bit 1, shadows bit in AT1MISSHbits
15043 #define AT1MISS10               AT1MISSHbits.AT1MISS10          // bit 2, shadows bit in AT1MISSHbits
15044 #define MISS10                  AT1MISSHbits.MISS10             // bit 2, shadows bit in AT1MISSHbits
15045 #define AT1MISS11               AT1MISSHbits.AT1MISS11          // bit 3, shadows bit in AT1MISSHbits
15046 #define MISS11                  AT1MISSHbits.MISS11             // bit 3, shadows bit in AT1MISSHbits
15047 #define AT1MISS12               AT1MISSHbits.AT1MISS12          // bit 4, shadows bit in AT1MISSHbits
15048 #define MISS12                  AT1MISSHbits.MISS12             // bit 4, shadows bit in AT1MISSHbits
15049 #define AT1MISS13               AT1MISSHbits.AT1MISS13          // bit 5, shadows bit in AT1MISSHbits
15050 #define MISS13                  AT1MISSHbits.MISS13             // bit 5, shadows bit in AT1MISSHbits
15051 #define AT1MISS14               AT1MISSHbits.AT1MISS14          // bit 6, shadows bit in AT1MISSHbits
15052 #define MISS14                  AT1MISSHbits.MISS14             // bit 6, shadows bit in AT1MISSHbits
15053 #define AT1MISS15               AT1MISSHbits.AT1MISS15          // bit 7, shadows bit in AT1MISSHbits
15054 #define MISS15                  AT1MISSHbits.MISS15             // bit 7, shadows bit in AT1MISSHbits
15055 
15056 #define AT1MISS0                AT1MISSLbits.AT1MISS0           // bit 0, shadows bit in AT1MISSLbits
15057 #define MISS0                   AT1MISSLbits.MISS0              // bit 0, shadows bit in AT1MISSLbits
15058 #define AT1MISS1                AT1MISSLbits.AT1MISS1           // bit 1, shadows bit in AT1MISSLbits
15059 #define MISS1                   AT1MISSLbits.MISS1              // bit 1, shadows bit in AT1MISSLbits
15060 #define AT1MISS2                AT1MISSLbits.AT1MISS2           // bit 2, shadows bit in AT1MISSLbits
15061 #define MISS2                   AT1MISSLbits.MISS2              // bit 2, shadows bit in AT1MISSLbits
15062 #define AT1MISS3                AT1MISSLbits.AT1MISS3           // bit 3, shadows bit in AT1MISSLbits
15063 #define MISS3                   AT1MISSLbits.MISS3              // bit 3, shadows bit in AT1MISSLbits
15064 #define AT1MISS4                AT1MISSLbits.AT1MISS4           // bit 4, shadows bit in AT1MISSLbits
15065 #define MISS4                   AT1MISSLbits.MISS4              // bit 4, shadows bit in AT1MISSLbits
15066 #define AT1MISS5                AT1MISSLbits.AT1MISS5           // bit 5, shadows bit in AT1MISSLbits
15067 #define MISS5                   AT1MISSLbits.MISS5              // bit 5, shadows bit in AT1MISSLbits
15068 #define AT1MISS6                AT1MISSLbits.AT1MISS6           // bit 6, shadows bit in AT1MISSLbits
15069 #define MISS6                   AT1MISSLbits.MISS6              // bit 6, shadows bit in AT1MISSLbits
15070 #define AT1MISS7                AT1MISSLbits.AT1MISS7           // bit 7, shadows bit in AT1MISSLbits
15071 #define MISS7                   AT1MISSLbits.MISS7              // bit 7, shadows bit in AT1MISSLbits
15072 
15073 #define AT1PER8                 AT1PERHbits.AT1PER8             // bit 0, shadows bit in AT1PERHbits
15074 #define PER8                    AT1PERHbits.PER8                // bit 0, shadows bit in AT1PERHbits
15075 #define PERH0                   AT1PERHbits.PERH0               // bit 0, shadows bit in AT1PERHbits
15076 #define AT1PER9                 AT1PERHbits.AT1PER9             // bit 1, shadows bit in AT1PERHbits
15077 #define PER9                    AT1PERHbits.PER9                // bit 1, shadows bit in AT1PERHbits
15078 #define PERH1                   AT1PERHbits.PERH1               // bit 1, shadows bit in AT1PERHbits
15079 #define AT1PER10                AT1PERHbits.AT1PER10            // bit 2, shadows bit in AT1PERHbits
15080 #define PER10                   AT1PERHbits.PER10               // bit 2, shadows bit in AT1PERHbits
15081 #define PERH2                   AT1PERHbits.PERH2               // bit 2, shadows bit in AT1PERHbits
15082 #define AT1PER11                AT1PERHbits.AT1PER11            // bit 3, shadows bit in AT1PERHbits
15083 #define PER11                   AT1PERHbits.PER11               // bit 3, shadows bit in AT1PERHbits
15084 #define PERH3                   AT1PERHbits.PERH3               // bit 3, shadows bit in AT1PERHbits
15085 #define AT1PER12                AT1PERHbits.AT1PER12            // bit 4, shadows bit in AT1PERHbits
15086 #define PER12                   AT1PERHbits.PER12               // bit 4, shadows bit in AT1PERHbits
15087 #define PERH4                   AT1PERHbits.PERH4               // bit 4, shadows bit in AT1PERHbits
15088 #define AT1PER13                AT1PERHbits.AT1PER13            // bit 5, shadows bit in AT1PERHbits
15089 #define PER13                   AT1PERHbits.PER13               // bit 5, shadows bit in AT1PERHbits
15090 #define PERH5                   AT1PERHbits.PERH5               // bit 5, shadows bit in AT1PERHbits
15091 #define AT1PER14                AT1PERHbits.AT1PER14            // bit 6, shadows bit in AT1PERHbits
15092 #define PER14                   AT1PERHbits.PER14               // bit 6, shadows bit in AT1PERHbits
15093 #define PERH6                   AT1PERHbits.PERH6               // bit 6, shadows bit in AT1PERHbits
15094 #define AT1POV                  AT1PERHbits.AT1POV              // bit 7, shadows bit in AT1PERHbits
15095 #define PER15                   AT1PERHbits.PER15               // bit 7, shadows bit in AT1PERHbits
15096 #define PERH7                   AT1PERHbits.PERH7               // bit 7, shadows bit in AT1PERHbits
15097 
15098 #define AT1PER0                 AT1PERLbits.AT1PER0             // bit 0, shadows bit in AT1PERLbits
15099 #define PER0                    AT1PERLbits.PER0                // bit 0, shadows bit in AT1PERLbits
15100 #define PERL0                   AT1PERLbits.PERL0               // bit 0, shadows bit in AT1PERLbits
15101 #define AT1PER1                 AT1PERLbits.AT1PER1             // bit 1, shadows bit in AT1PERLbits
15102 #define PER1                    AT1PERLbits.PER1                // bit 1, shadows bit in AT1PERLbits
15103 #define PERL1                   AT1PERLbits.PERL1               // bit 1, shadows bit in AT1PERLbits
15104 #define AT1PER2                 AT1PERLbits.AT1PER2             // bit 2, shadows bit in AT1PERLbits
15105 #define PER2                    AT1PERLbits.PER2                // bit 2, shadows bit in AT1PERLbits
15106 #define PERL2                   AT1PERLbits.PERL2               // bit 2, shadows bit in AT1PERLbits
15107 #define AT1PER3                 AT1PERLbits.AT1PER3             // bit 3, shadows bit in AT1PERLbits
15108 #define PER3                    AT1PERLbits.PER3                // bit 3, shadows bit in AT1PERLbits
15109 #define PERL3                   AT1PERLbits.PERL3               // bit 3, shadows bit in AT1PERLbits
15110 #define AT1PER4                 AT1PERLbits.AT1PER4             // bit 4, shadows bit in AT1PERLbits
15111 #define PER4                    AT1PERLbits.PER4                // bit 4, shadows bit in AT1PERLbits
15112 #define PERL4                   AT1PERLbits.PERL4               // bit 4, shadows bit in AT1PERLbits
15113 #define AT1PER5                 AT1PERLbits.AT1PER5             // bit 5, shadows bit in AT1PERLbits
15114 #define PER5                    AT1PERLbits.PER5                // bit 5, shadows bit in AT1PERLbits
15115 #define PERL5                   AT1PERLbits.PERL5               // bit 5, shadows bit in AT1PERLbits
15116 #define AT1PER6                 AT1PERLbits.AT1PER6             // bit 6, shadows bit in AT1PERLbits
15117 #define PER6                    AT1PERLbits.PER6                // bit 6, shadows bit in AT1PERLbits
15118 #define PERL6                   AT1PERLbits.PERL6               // bit 6, shadows bit in AT1PERLbits
15119 #define AT1PER7                 AT1PERLbits.AT1PER7             // bit 7, shadows bit in AT1PERLbits
15120 #define PER7                    AT1PERLbits.PER7                // bit 7, shadows bit in AT1PERLbits
15121 #define PERL7                   AT1PERLbits.PERL7               // bit 7, shadows bit in AT1PERLbits
15122 
15123 #define AT1PHS8                 AT1PHSHbits.AT1PHS8             // bit 0, shadows bit in AT1PHSHbits
15124 #define PHS8                    AT1PHSHbits.PHS8                // bit 0, shadows bit in AT1PHSHbits
15125 #define PHSL8                   AT1PHSHbits.PHSL8               // bit 0, shadows bit in AT1PHSHbits
15126 #define AT1PHS9                 AT1PHSHbits.AT1PHS9             // bit 1, shadows bit in AT1PHSHbits
15127 #define PHS9                    AT1PHSHbits.PHS9                // bit 1, shadows bit in AT1PHSHbits
15128 #define PHSL9                   AT1PHSHbits.PHSL9               // bit 1, shadows bit in AT1PHSHbits
15129 
15130 #define AT1PHS0                 AT1PHSLbits.AT1PHS0             // bit 0, shadows bit in AT1PHSLbits
15131 #define PHS0                    AT1PHSLbits.PHS0                // bit 0, shadows bit in AT1PHSLbits
15132 #define AT1PHS1                 AT1PHSLbits.AT1PHS1             // bit 1, shadows bit in AT1PHSLbits
15133 #define PHS1                    AT1PHSLbits.PHS1                // bit 1, shadows bit in AT1PHSLbits
15134 #define AT1PHS2                 AT1PHSLbits.AT1PHS2             // bit 2, shadows bit in AT1PHSLbits
15135 #define PHS2                    AT1PHSLbits.PHS2                // bit 2, shadows bit in AT1PHSLbits
15136 #define AT1PHS3                 AT1PHSLbits.AT1PHS3             // bit 3, shadows bit in AT1PHSLbits
15137 #define PHS3                    AT1PHSLbits.PHS3                // bit 3, shadows bit in AT1PHSLbits
15138 #define AT1PHS4                 AT1PHSLbits.AT1PHS4             // bit 4, shadows bit in AT1PHSLbits
15139 #define PHS4                    AT1PHSLbits.PHS4                // bit 4, shadows bit in AT1PHSLbits
15140 #define AT1PHS5                 AT1PHSLbits.AT1PHS5             // bit 5, shadows bit in AT1PHSLbits
15141 #define PHS5                    AT1PHSLbits.PHS5                // bit 5, shadows bit in AT1PHSLbits
15142 #define AT1PHS6                 AT1PHSLbits.AT1PHS6             // bit 6, shadows bit in AT1PHSLbits
15143 #define PHS6                    AT1PHSLbits.PHS6                // bit 6, shadows bit in AT1PHSLbits
15144 #define AT1PHS7                 AT1PHSLbits.AT1PHS7             // bit 7, shadows bit in AT1PHSLbits
15145 #define PHS7                    AT1PHSLbits.PHS7                // bit 7, shadows bit in AT1PHSLbits
15146 
15147 #define AT1RES8                 AT1RESHbits.AT1RES8             // bit 0, shadows bit in AT1RESHbits
15148 #define RES8                    AT1RESHbits.RES8                // bit 0, shadows bit in AT1RESHbits
15149 #define AT1RES9                 AT1RESHbits.AT1RES9             // bit 1, shadows bit in AT1RESHbits
15150 #define RES9                    AT1RESHbits.RES9                // bit 1, shadows bit in AT1RESHbits
15151 
15152 #define AT1RES0                 AT1RESLbits.AT1RES0             // bit 0, shadows bit in AT1RESLbits
15153 #define RES0                    AT1RESLbits.RES0                // bit 0, shadows bit in AT1RESLbits
15154 #define AT1RES1                 AT1RESLbits.AT1RES1             // bit 1, shadows bit in AT1RESLbits
15155 #define RES1                    AT1RESLbits.RES1                // bit 1, shadows bit in AT1RESLbits
15156 #define AT1RES2                 AT1RESLbits.AT1RES2             // bit 2, shadows bit in AT1RESLbits
15157 #define RES2                    AT1RESLbits.RES2                // bit 2, shadows bit in AT1RESLbits
15158 #define AT1RES3                 AT1RESLbits.AT1RES3             // bit 3, shadows bit in AT1RESLbits
15159 #define RES3                    AT1RESLbits.RES3                // bit 3, shadows bit in AT1RESLbits
15160 #define AT1RES4                 AT1RESLbits.AT1RES4             // bit 4, shadows bit in AT1RESLbits
15161 #define RES4                    AT1RESLbits.RES4                // bit 4, shadows bit in AT1RESLbits
15162 #define AT1RES5                 AT1RESLbits.AT1RES5             // bit 5, shadows bit in AT1RESLbits
15163 #define RES5                    AT1RESLbits.RES5                // bit 5, shadows bit in AT1RESLbits
15164 #define AT1RES6                 AT1RESLbits.AT1RES6             // bit 6, shadows bit in AT1RESLbits
15165 #define RES6                    AT1RESLbits.RES6                // bit 6, shadows bit in AT1RESLbits
15166 #define AT1RES7                 AT1RESLbits.AT1RES7             // bit 7, shadows bit in AT1RESLbits
15167 #define RES7                    AT1RESLbits.RES7                // bit 7, shadows bit in AT1RESLbits
15168 
15169 #define AT1SSEL0                AT1SIGbits.AT1SSEL0             // bit 0, shadows bit in AT1SIGbits
15170 #define SSEL0                   AT1SIGbits.SSEL0                // bit 0, shadows bit in AT1SIGbits
15171 #define AT1SSEL1                AT1SIGbits.AT1SSEL1             // bit 1, shadows bit in AT1SIGbits
15172 #define SSEL1                   AT1SIGbits.SSEL1                // bit 1, shadows bit in AT1SIGbits
15173 #define AT1SSEL2                AT1SIGbits.AT1SSEL2             // bit 2, shadows bit in AT1SIGbits
15174 #define SSEL2                   AT1SIGbits.SSEL2                // bit 2, shadows bit in AT1SIGbits
15175 
15176 #define AT1STPT8                AT1STPTHbits.AT1STPT8           // bit 0, shadows bit in AT1STPTHbits
15177 #define STPT8                   AT1STPTHbits.STPT8              // bit 0, shadows bit in AT1STPTHbits
15178 #define AT1STPT9                AT1STPTHbits.AT1STPT9           // bit 1, shadows bit in AT1STPTHbits
15179 #define STPT9                   AT1STPTHbits.STPT9              // bit 1, shadows bit in AT1STPTHbits
15180 #define AT1STPT10               AT1STPTHbits.AT1STPT10          // bit 2, shadows bit in AT1STPTHbits
15181 #define STPT10                  AT1STPTHbits.STPT10             // bit 2, shadows bit in AT1STPTHbits
15182 #define AT1STPT11               AT1STPTHbits.AT1STPT11          // bit 3, shadows bit in AT1STPTHbits
15183 #define STPT11                  AT1STPTHbits.STPT11             // bit 3, shadows bit in AT1STPTHbits
15184 #define AT1STPT12               AT1STPTHbits.AT1STPT12          // bit 4, shadows bit in AT1STPTHbits
15185 #define STPT12                  AT1STPTHbits.STPT12             // bit 4, shadows bit in AT1STPTHbits
15186 #define AT1STPT13               AT1STPTHbits.AT1STPT13          // bit 5, shadows bit in AT1STPTHbits
15187 #define STPT13                  AT1STPTHbits.STPT13             // bit 5, shadows bit in AT1STPTHbits
15188 #define AT1STPT14               AT1STPTHbits.AT1STPT14          // bit 6, shadows bit in AT1STPTHbits
15189 #define STPT14                  AT1STPTHbits.STPT14             // bit 6, shadows bit in AT1STPTHbits
15190 
15191 #define AT1STPT0                AT1STPTLbits.AT1STPT0           // bit 0, shadows bit in AT1STPTLbits
15192 #define STPT0                   AT1STPTLbits.STPT0              // bit 0, shadows bit in AT1STPTLbits
15193 #define AT1STPT1                AT1STPTLbits.AT1STPT1           // bit 1, shadows bit in AT1STPTLbits
15194 #define STPT1                   AT1STPTLbits.STPT1              // bit 1, shadows bit in AT1STPTLbits
15195 #define AT1STPT2                AT1STPTLbits.AT1STPT2           // bit 2, shadows bit in AT1STPTLbits
15196 #define STPT2                   AT1STPTLbits.STPT2              // bit 2, shadows bit in AT1STPTLbits
15197 #define AT1STPT3                AT1STPTLbits.AT1STPT3           // bit 3, shadows bit in AT1STPTLbits
15198 #define STPT3                   AT1STPTLbits.STPT3              // bit 3, shadows bit in AT1STPTLbits
15199 #define AT1STPT4                AT1STPTLbits.AT1STPT4           // bit 4, shadows bit in AT1STPTLbits
15200 #define STPT4                   AT1STPTLbits.STPT4              // bit 4, shadows bit in AT1STPTLbits
15201 #define AT1STPT5                AT1STPTLbits.AT1STPT5           // bit 5, shadows bit in AT1STPTLbits
15202 #define STPT5                   AT1STPTLbits.STPT5              // bit 5, shadows bit in AT1STPTLbits
15203 #define AT1STPT6                AT1STPTLbits.AT1STPT6           // bit 6, shadows bit in AT1STPTLbits
15204 #define STPT6                   AT1STPTLbits.STPT6              // bit 6, shadows bit in AT1STPTLbits
15205 #define AT1STPT7                AT1STPTLbits.AT1STPT7           // bit 7, shadows bit in AT1STPTLbits
15206 #define STPT7                   AT1STPTLbits.STPT7              // bit 7, shadows bit in AT1STPTLbits
15207 
15208 #define ATCC1PPS0               ATCC1PPSbits.ATCC1PPS0          // bit 0
15209 #define ATCC1PPS1               ATCC1PPSbits.ATCC1PPS1          // bit 1
15210 #define ATCC1PPS2               ATCC1PPSbits.ATCC1PPS2          // bit 2
15211 #define ATCC1PPS3               ATCC1PPSbits.ATCC1PPS3          // bit 3
15212 #define ATCC1PPS4               ATCC1PPSbits.ATCC1PPS4          // bit 4
15213 
15214 #define ATCC2PPS0               ATCC2PPSbits.ATCC2PPS0          // bit 0
15215 #define ATCC2PPS1               ATCC2PPSbits.ATCC2PPS1          // bit 1
15216 #define ATCC2PPS2               ATCC2PPSbits.ATCC2PPS2          // bit 2
15217 #define ATCC2PPS3               ATCC2PPSbits.ATCC2PPS3          // bit 3
15218 #define ATCC2PPS4               ATCC2PPSbits.ATCC2PPS4          // bit 4
15219 
15220 #define ATCC3PPS0               ATCC3PPSbits.ATCC3PPS0          // bit 0
15221 #define ATCC3PPS1               ATCC3PPSbits.ATCC3PPS1          // bit 1
15222 #define ATCC3PPS2               ATCC3PPSbits.ATCC3PPS2          // bit 2
15223 #define ATCC3PPS3               ATCC3PPSbits.ATCC3PPS3          // bit 3
15224 #define ATCC3PPS4               ATCC3PPSbits.ATCC3PPS4          // bit 4
15225 
15226 #define ATINPPS0                ATINPPSbits.ATINPPS0            // bit 0
15227 #define ATINPPS1                ATINPPSbits.ATINPPS1            // bit 1
15228 #define ATINPPS2                ATINPPSbits.ATINPPS2            // bit 2
15229 #define ATINPPS3                ATINPPSbits.ATINPPS3            // bit 3
15230 #define ATINPPS4                ATINPPSbits.ATINPPS4            // bit 4
15231 
15232 #define ABDEN                   BAUD1CONbits.ABDEN              // bit 0
15233 #define WUE                     BAUD1CONbits.WUE                // bit 1
15234 #define BRG16                   BAUD1CONbits.BRG16              // bit 3
15235 #define SCKP                    BAUD1CONbits.SCKP               // bit 4
15236 #define RCIDL                   BAUD1CONbits.RCIDL              // bit 6
15237 #define ABDOVF                  BAUD1CONbits.ABDOVF             // bit 7
15238 
15239 #define BORRDY                  BORCONbits.BORRDY               // bit 0
15240 #define BORFS                   BORCONbits.BORFS                // bit 6
15241 #define SBOREN                  BORCONbits.SBOREN               // bit 7
15242 
15243 #define BSR0                    BSRbits.BSR0                    // bit 0
15244 #define BSR1                    BSRbits.BSR1                    // bit 1
15245 #define BSR2                    BSRbits.BSR2                    // bit 2
15246 #define BSR3                    BSRbits.BSR3                    // bit 3
15247 #define BSR4                    BSRbits.BSR4                    // bit 4
15248 
15249 #define CTS0                    CCP1CAPbits.CTS0                // bit 0, shadows bit in CCP1CAPbits
15250 #define CCP1CTS0                CCP1CAPbits.CCP1CTS0            // bit 0, shadows bit in CCP1CAPbits
15251 #define CTS1                    CCP1CAPbits.CTS1                // bit 1, shadows bit in CCP1CAPbits
15252 #define CCP1CTS1                CCP1CAPbits.CCP1CTS1            // bit 1, shadows bit in CCP1CAPbits
15253 #define CTS2                    CCP1CAPbits.CTS2                // bit 2, shadows bit in CCP1CAPbits
15254 #define CCP1CTS2                CCP1CAPbits.CCP1CTS2            // bit 2, shadows bit in CCP1CAPbits
15255 
15256 #define CCP1PPS0                CCP1PPSbits.CCP1PPS0            // bit 0
15257 #define CCP1PPS1                CCP1PPSbits.CCP1PPS1            // bit 1
15258 #define CCP1PPS2                CCP1PPSbits.CCP1PPS2            // bit 2
15259 #define CCP1PPS3                CCP1PPSbits.CCP1PPS3            // bit 3
15260 #define CCP1PPS4                CCP1PPSbits.CCP1PPS4            // bit 4
15261 
15262 #define CCP2PPS0                CCP2PPSbits.CCP2PPS0            // bit 0
15263 #define CCP2PPS1                CCP2PPSbits.CCP2PPS1            // bit 1
15264 #define CCP2PPS2                CCP2PPSbits.CCP2PPS2            // bit 2
15265 #define CCP2PPS3                CCP2PPSbits.CCP2PPS3            // bit 3
15266 #define CCP2PPS4                CCP2PPSbits.CCP2PPS4            // bit 4
15267 
15268 #define CCP1TSEL0               CCPTMRSbits.CCP1TSEL0           // bit 0
15269 #define CCP1TSEL1               CCPTMRSbits.CCP1TSEL1           // bit 1
15270 #define CCP2TSEL0               CCPTMRSbits.CCP2TSEL0           // bit 2
15271 #define CCP2TSEL1               CCPTMRSbits.CCP2TSEL1           // bit 3
15272 #define P3TSEL0                 CCPTMRSbits.P3TSEL0             // bit 4
15273 #define P3TSEL1                 CCPTMRSbits.P3TSEL1             // bit 5
15274 #define P4TSEL0                 CCPTMRSbits.P4TSEL0             // bit 6
15275 #define P4TSEL1                 CCPTMRSbits.P4TSEL1             // bit 7
15276 
15277 #define CKPPS0                  CKPPSbits.CKPPS0                // bit 0
15278 #define CKPPS1                  CKPPSbits.CKPPS1                // bit 1
15279 #define CKPPS2                  CKPPSbits.CKPPS2                // bit 2
15280 #define CKPPS3                  CKPPSbits.CKPPS3                // bit 3
15281 #define CKPPS4                  CKPPSbits.CKPPS4                // bit 4
15282 
15283 #define LC1G1D1N                CLC1GLS0bits.LC1G1D1N           // bit 0, shadows bit in CLC1GLS0bits
15284 #define D1N                     CLC1GLS0bits.D1N                // bit 0, shadows bit in CLC1GLS0bits
15285 #define LC1G1D1T                CLC1GLS0bits.LC1G1D1T           // bit 1, shadows bit in CLC1GLS0bits
15286 #define D1T                     CLC1GLS0bits.D1T                // bit 1, shadows bit in CLC1GLS0bits
15287 #define LC1G1D2N                CLC1GLS0bits.LC1G1D2N           // bit 2, shadows bit in CLC1GLS0bits
15288 #define D2N                     CLC1GLS0bits.D2N                // bit 2, shadows bit in CLC1GLS0bits
15289 #define LC1G1D2T                CLC1GLS0bits.LC1G1D2T           // bit 3, shadows bit in CLC1GLS0bits
15290 #define D2T                     CLC1GLS0bits.D2T                // bit 3, shadows bit in CLC1GLS0bits
15291 #define LC1G1D3N                CLC1GLS0bits.LC1G1D3N           // bit 4, shadows bit in CLC1GLS0bits
15292 #define D3N                     CLC1GLS0bits.D3N                // bit 4, shadows bit in CLC1GLS0bits
15293 #define LC1G1D3T                CLC1GLS0bits.LC1G1D3T           // bit 5, shadows bit in CLC1GLS0bits
15294 #define D3T                     CLC1GLS0bits.D3T                // bit 5, shadows bit in CLC1GLS0bits
15295 #define LC1G1D4N                CLC1GLS0bits.LC1G1D4N           // bit 6, shadows bit in CLC1GLS0bits
15296 #define D4N                     CLC1GLS0bits.D4N                // bit 6, shadows bit in CLC1GLS0bits
15297 #define LC1G1D4T                CLC1GLS0bits.LC1G1D4T           // bit 7, shadows bit in CLC1GLS0bits
15298 #define D4T                     CLC1GLS0bits.D4T                // bit 7, shadows bit in CLC1GLS0bits
15299 
15300 #define LC1G4D1N                CLC1GLS3bits.LC1G4D1N           // bit 0, shadows bit in CLC1GLS3bits
15301 #define G4D1N                   CLC1GLS3bits.G4D1N              // bit 0, shadows bit in CLC1GLS3bits
15302 #define LC1G4D1T                CLC1GLS3bits.LC1G4D1T           // bit 1, shadows bit in CLC1GLS3bits
15303 #define G4D1T                   CLC1GLS3bits.G4D1T              // bit 1, shadows bit in CLC1GLS3bits
15304 #define LC1G4D2N                CLC1GLS3bits.LC1G4D2N           // bit 2, shadows bit in CLC1GLS3bits
15305 #define G4D2N                   CLC1GLS3bits.G4D2N              // bit 2, shadows bit in CLC1GLS3bits
15306 #define LC1G4D2T                CLC1GLS3bits.LC1G4D2T           // bit 3, shadows bit in CLC1GLS3bits
15307 #define G4D2T                   CLC1GLS3bits.G4D2T              // bit 3, shadows bit in CLC1GLS3bits
15308 #define LC1G4D3N                CLC1GLS3bits.LC1G4D3N           // bit 4, shadows bit in CLC1GLS3bits
15309 #define G4D3N                   CLC1GLS3bits.G4D3N              // bit 4, shadows bit in CLC1GLS3bits
15310 #define LC1G4D3T                CLC1GLS3bits.LC1G4D3T           // bit 5, shadows bit in CLC1GLS3bits
15311 #define G4D3T                   CLC1GLS3bits.G4D3T              // bit 5, shadows bit in CLC1GLS3bits
15312 #define LC1G4D4N                CLC1GLS3bits.LC1G4D4N           // bit 6, shadows bit in CLC1GLS3bits
15313 #define G4D4N                   CLC1GLS3bits.G4D4N              // bit 6, shadows bit in CLC1GLS3bits
15314 #define LC1G4D4T                CLC1GLS3bits.LC1G4D4T           // bit 7, shadows bit in CLC1GLS3bits
15315 #define G4D4T                   CLC1GLS3bits.G4D4T              // bit 7, shadows bit in CLC1GLS3bits
15316 
15317 #define LC1D1S0                 CLC1SEL0bits.LC1D1S0            // bit 0, shadows bit in CLC1SEL0bits
15318 #define D1S0                    CLC1SEL0bits.D1S0               // bit 0, shadows bit in CLC1SEL0bits
15319 #define LC1D1S1                 CLC1SEL0bits.LC1D1S1            // bit 1, shadows bit in CLC1SEL0bits
15320 #define D1S1                    CLC1SEL0bits.D1S1               // bit 1, shadows bit in CLC1SEL0bits
15321 #define LC1D1S2                 CLC1SEL0bits.LC1D1S2            // bit 2, shadows bit in CLC1SEL0bits
15322 #define D1S2                    CLC1SEL0bits.D1S2               // bit 2, shadows bit in CLC1SEL0bits
15323 #define LC1D1S3                 CLC1SEL0bits.LC1D1S3            // bit 3, shadows bit in CLC1SEL0bits
15324 #define D1S3                    CLC1SEL0bits.D1S3               // bit 3, shadows bit in CLC1SEL0bits
15325 #define LC1D1S4                 CLC1SEL0bits.LC1D1S4            // bit 4, shadows bit in CLC1SEL0bits
15326 #define D1S4                    CLC1SEL0bits.D1S4               // bit 4, shadows bit in CLC1SEL0bits
15327 #define LC1D1S5                 CLC1SEL0bits.LC1D1S5            // bit 5, shadows bit in CLC1SEL0bits
15328 #define D1S5                    CLC1SEL0bits.D1S5               // bit 5, shadows bit in CLC1SEL0bits
15329 
15330 #define LC1D2S0                 CLC1SEL1bits.LC1D2S0            // bit 0, shadows bit in CLC1SEL1bits
15331 #define D2S0                    CLC1SEL1bits.D2S0               // bit 0, shadows bit in CLC1SEL1bits
15332 #define LC1D2S1                 CLC1SEL1bits.LC1D2S1            // bit 1, shadows bit in CLC1SEL1bits
15333 #define D2S1                    CLC1SEL1bits.D2S1               // bit 1, shadows bit in CLC1SEL1bits
15334 #define LC1D2S2                 CLC1SEL1bits.LC1D2S2            // bit 2, shadows bit in CLC1SEL1bits
15335 #define D2S2                    CLC1SEL1bits.D2S2               // bit 2, shadows bit in CLC1SEL1bits
15336 #define LC1D2S3                 CLC1SEL1bits.LC1D2S3            // bit 3, shadows bit in CLC1SEL1bits
15337 #define D2S3                    CLC1SEL1bits.D2S3               // bit 3, shadows bit in CLC1SEL1bits
15338 #define LC1D2S4                 CLC1SEL1bits.LC1D2S4            // bit 4, shadows bit in CLC1SEL1bits
15339 #define D2S4                    CLC1SEL1bits.D2S4               // bit 4, shadows bit in CLC1SEL1bits
15340 #define LC1D2S5                 CLC1SEL1bits.LC1D2S5            // bit 5, shadows bit in CLC1SEL1bits
15341 #define D2S5                    CLC1SEL1bits.D2S5               // bit 5, shadows bit in CLC1SEL1bits
15342 
15343 #define LC1D3S0                 CLC1SEL2bits.LC1D3S0            // bit 0, shadows bit in CLC1SEL2bits
15344 #define D3S0                    CLC1SEL2bits.D3S0               // bit 0, shadows bit in CLC1SEL2bits
15345 #define LC1D3S1                 CLC1SEL2bits.LC1D3S1            // bit 1, shadows bit in CLC1SEL2bits
15346 #define D3S1                    CLC1SEL2bits.D3S1               // bit 1, shadows bit in CLC1SEL2bits
15347 #define LC1D3S2                 CLC1SEL2bits.LC1D3S2            // bit 2, shadows bit in CLC1SEL2bits
15348 #define D3S2                    CLC1SEL2bits.D3S2               // bit 2, shadows bit in CLC1SEL2bits
15349 #define LC1D3S3                 CLC1SEL2bits.LC1D3S3            // bit 3, shadows bit in CLC1SEL2bits
15350 #define D3S3                    CLC1SEL2bits.D3S3               // bit 3, shadows bit in CLC1SEL2bits
15351 #define LC1D3S4                 CLC1SEL2bits.LC1D3S4            // bit 4, shadows bit in CLC1SEL2bits
15352 #define D3S4                    CLC1SEL2bits.D3S4               // bit 4, shadows bit in CLC1SEL2bits
15353 #define LC1D3S5                 CLC1SEL2bits.LC1D3S5            // bit 5, shadows bit in CLC1SEL2bits
15354 #define D3S5                    CLC1SEL2bits.D3S5               // bit 5, shadows bit in CLC1SEL2bits
15355 
15356 #define LC1D4S0                 CLC1SEL3bits.LC1D4S0            // bit 0, shadows bit in CLC1SEL3bits
15357 #define D4S0                    CLC1SEL3bits.D4S0               // bit 0, shadows bit in CLC1SEL3bits
15358 #define LC1D4S1                 CLC1SEL3bits.LC1D4S1            // bit 1, shadows bit in CLC1SEL3bits
15359 #define D4S1                    CLC1SEL3bits.D4S1               // bit 1, shadows bit in CLC1SEL3bits
15360 #define LC1D4S2                 CLC1SEL3bits.LC1D4S2            // bit 2, shadows bit in CLC1SEL3bits
15361 #define D4S2                    CLC1SEL3bits.D4S2               // bit 2, shadows bit in CLC1SEL3bits
15362 #define LC1D4S3                 CLC1SEL3bits.LC1D4S3            // bit 3, shadows bit in CLC1SEL3bits
15363 #define D4S3                    CLC1SEL3bits.D4S3               // bit 3, shadows bit in CLC1SEL3bits
15364 #define LC1D4S4                 CLC1SEL3bits.LC1D4S4            // bit 4, shadows bit in CLC1SEL3bits
15365 #define D4S4                    CLC1SEL3bits.D4S4               // bit 4, shadows bit in CLC1SEL3bits
15366 #define LC1D4S5                 CLC1SEL3bits.LC1D4S5            // bit 5, shadows bit in CLC1SEL3bits
15367 #define D4S5                    CLC1SEL3bits.D4S5               // bit 5, shadows bit in CLC1SEL3bits
15368 
15369 #define MLC1OUT                 CLCDATAbits.MLC1OUT             // bit 0
15370 #define MLC2OUT                 CLCDATAbits.MLC2OUT             // bit 1
15371 
15372 #define CLCIN0PPS0              CLCIN0PPSbits.CLCIN0PPS0        // bit 0
15373 #define CLCIN0PPS1              CLCIN0PPSbits.CLCIN0PPS1        // bit 1
15374 #define CLCIN0PPS2              CLCIN0PPSbits.CLCIN0PPS2        // bit 2
15375 #define CLCIN0PPS3              CLCIN0PPSbits.CLCIN0PPS3        // bit 3
15376 #define CLCIN0PPS4              CLCIN0PPSbits.CLCIN0PPS4        // bit 4
15377 
15378 #define CLCIN1PPS0              CLCIN1PPSbits.CLCIN1PPS0        // bit 0
15379 #define CLCIN1PPS1              CLCIN1PPSbits.CLCIN1PPS1        // bit 1
15380 #define CLCIN1PPS2              CLCIN1PPSbits.CLCIN1PPS2        // bit 2
15381 #define CLCIN1PPS3              CLCIN1PPSbits.CLCIN1PPS3        // bit 3
15382 #define CLCIN1PPS4              CLCIN1PPSbits.CLCIN1PPS4        // bit 4
15383 
15384 #define CLCIN2PPS0              CLCIN2PPSbits.CLCIN2PPS0        // bit 0
15385 #define CLCIN2PPS1              CLCIN2PPSbits.CLCIN2PPS1        // bit 1
15386 #define CLCIN2PPS2              CLCIN2PPSbits.CLCIN2PPS2        // bit 2
15387 #define CLCIN2PPS3              CLCIN2PPSbits.CLCIN2PPS3        // bit 3
15388 #define CLCIN2PPS4              CLCIN2PPSbits.CLCIN2PPS4        // bit 4
15389 
15390 #define CLCIN3PPS0              CLCIN3PPSbits.CLCIN3PPS0        // bit 0
15391 #define CLCIN3PPS1              CLCIN3PPSbits.CLCIN3PPS1        // bit 1
15392 #define CLCIN3PPS2              CLCIN3PPSbits.CLCIN3PPS2        // bit 2
15393 #define CLCIN3PPS3              CLCIN3PPSbits.CLCIN3PPS3        // bit 3
15394 #define CLCIN3PPS4              CLCIN3PPSbits.CLCIN3PPS4        // bit 4
15395 
15396 #define C1SYNC                  CM1CON0bits.C1SYNC              // bit 0
15397 #define C1HYS                   CM1CON0bits.C1HYS               // bit 1
15398 #define C1SP                    CM1CON0bits.C1SP                // bit 2
15399 #define C1POL                   CM1CON0bits.C1POL               // bit 4
15400 #define C1OUT                   CM1CON0bits.C1OUT               // bit 6
15401 #define C1ON                    CM1CON0bits.C1ON                // bit 7
15402 
15403 #define C1NCH0                  CM1CON1bits.C1NCH0              // bit 0
15404 #define C1NCH1                  CM1CON1bits.C1NCH1              // bit 1
15405 #define C1NCH2                  CM1CON1bits.C1NCH2              // bit 2
15406 #define C1PCH0                  CM1CON1bits.C1PCH0              // bit 4
15407 #define C1PCH1                  CM1CON1bits.C1PCH1              // bit 5
15408 #define C1INTN                  CM1CON1bits.C1INTN              // bit 6
15409 #define C1INTP                  CM1CON1bits.C1INTP              // bit 7
15410 
15411 #define C2SYNC                  CM2CON0bits.C2SYNC              // bit 0
15412 #define C2HYS                   CM2CON0bits.C2HYS               // bit 1
15413 #define C2SP                    CM2CON0bits.C2SP                // bit 2
15414 #define C2POL                   CM2CON0bits.C2POL               // bit 4
15415 #define C2OUT                   CM2CON0bits.C2OUT               // bit 6
15416 #define C2ON                    CM2CON0bits.C2ON                // bit 7
15417 
15418 #define C2NCH0                  CM2CON1bits.C2NCH0              // bit 0
15419 #define C2NCH1                  CM2CON1bits.C2NCH1              // bit 1
15420 #define C2NCH2                  CM2CON1bits.C2NCH2              // bit 2
15421 #define C2PCH0                  CM2CON1bits.C2PCH0              // bit 4
15422 #define C2PCH1                  CM2CON1bits.C2PCH1              // bit 5
15423 #define C2INTN                  CM2CON1bits.C2INTN              // bit 6
15424 #define C2INTP                  CM2CON1bits.C2INTP              // bit 7
15425 
15426 #define MC1OUT                  CMOUTbits.MC1OUT                // bit 0
15427 #define MC2OUT                  CMOUTbits.MC2OUT                // bit 1
15428 
15429 #define ACC8                    CRCACCHbits.ACC8                // bit 0, shadows bit in CRCACCHbits
15430 #define CRCACC8                 CRCACCHbits.CRCACC8             // bit 0, shadows bit in CRCACCHbits
15431 #define ACC9                    CRCACCHbits.ACC9                // bit 1, shadows bit in CRCACCHbits
15432 #define CRCACC9                 CRCACCHbits.CRCACC9             // bit 1, shadows bit in CRCACCHbits
15433 #define ACC10                   CRCACCHbits.ACC10               // bit 2, shadows bit in CRCACCHbits
15434 #define CRCACC10                CRCACCHbits.CRCACC10            // bit 2, shadows bit in CRCACCHbits
15435 #define ACC11                   CRCACCHbits.ACC11               // bit 3, shadows bit in CRCACCHbits
15436 #define CRCACC11                CRCACCHbits.CRCACC11            // bit 3, shadows bit in CRCACCHbits
15437 #define ACC12                   CRCACCHbits.ACC12               // bit 4, shadows bit in CRCACCHbits
15438 #define CRCACC12                CRCACCHbits.CRCACC12            // bit 4, shadows bit in CRCACCHbits
15439 #define ACC13                   CRCACCHbits.ACC13               // bit 5, shadows bit in CRCACCHbits
15440 #define CRCACC13                CRCACCHbits.CRCACC13            // bit 5, shadows bit in CRCACCHbits
15441 #define ACC14                   CRCACCHbits.ACC14               // bit 6, shadows bit in CRCACCHbits
15442 #define CRCACC14                CRCACCHbits.CRCACC14            // bit 6, shadows bit in CRCACCHbits
15443 #define ACC15                   CRCACCHbits.ACC15               // bit 7, shadows bit in CRCACCHbits
15444 #define CRCACC15                CRCACCHbits.CRCACC15            // bit 7, shadows bit in CRCACCHbits
15445 
15446 #define ACC0                    CRCACCLbits.ACC0                // bit 0, shadows bit in CRCACCLbits
15447 #define CRCACC0                 CRCACCLbits.CRCACC0             // bit 0, shadows bit in CRCACCLbits
15448 #define ACC1                    CRCACCLbits.ACC1                // bit 1, shadows bit in CRCACCLbits
15449 #define CRCACC1                 CRCACCLbits.CRCACC1             // bit 1, shadows bit in CRCACCLbits
15450 #define ACC2                    CRCACCLbits.ACC2                // bit 2, shadows bit in CRCACCLbits
15451 #define CRCACC2                 CRCACCLbits.CRCACC2             // bit 2, shadows bit in CRCACCLbits
15452 #define ACC3                    CRCACCLbits.ACC3                // bit 3, shadows bit in CRCACCLbits
15453 #define CRCACC3                 CRCACCLbits.CRCACC3             // bit 3, shadows bit in CRCACCLbits
15454 #define ACC4                    CRCACCLbits.ACC4                // bit 4, shadows bit in CRCACCLbits
15455 #define CRCACC4                 CRCACCLbits.CRCACC4             // bit 4, shadows bit in CRCACCLbits
15456 #define ACC5                    CRCACCLbits.ACC5                // bit 5, shadows bit in CRCACCLbits
15457 #define CRCACC5                 CRCACCLbits.CRCACC5             // bit 5, shadows bit in CRCACCLbits
15458 #define ACC6                    CRCACCLbits.ACC6                // bit 6, shadows bit in CRCACCLbits
15459 #define CRCACC6                 CRCACCLbits.CRCACC6             // bit 6, shadows bit in CRCACCLbits
15460 #define ACC7                    CRCACCLbits.ACC7                // bit 7, shadows bit in CRCACCLbits
15461 #define CRCACC7                 CRCACCLbits.CRCACC7             // bit 7, shadows bit in CRCACCLbits
15462 
15463 #define PLEN0                   CRCCON1bits.PLEN0               // bit 0, shadows bit in CRCCON1bits
15464 #define CRCPLEN0                CRCCON1bits.CRCPLEN0            // bit 0, shadows bit in CRCCON1bits
15465 #define PLEN1                   CRCCON1bits.PLEN1               // bit 1, shadows bit in CRCCON1bits
15466 #define CRCPLEN1                CRCCON1bits.CRCPLEN1            // bit 1, shadows bit in CRCCON1bits
15467 #define PLEN2                   CRCCON1bits.PLEN2               // bit 2, shadows bit in CRCCON1bits
15468 #define CRCPLEN2                CRCCON1bits.CRCPLEN2            // bit 2, shadows bit in CRCCON1bits
15469 #define PLEN3                   CRCCON1bits.PLEN3               // bit 3, shadows bit in CRCCON1bits
15470 #define CRCPLEN3                CRCCON1bits.CRCPLEN3            // bit 3, shadows bit in CRCCON1bits
15471 #define DLEN0                   CRCCON1bits.DLEN0               // bit 4, shadows bit in CRCCON1bits
15472 #define CRCDLEN0                CRCCON1bits.CRCDLEN0            // bit 4, shadows bit in CRCCON1bits
15473 #define DLEN1                   CRCCON1bits.DLEN1               // bit 5, shadows bit in CRCCON1bits
15474 #define CRCDLEN1                CRCCON1bits.CRCDLEN1            // bit 5, shadows bit in CRCCON1bits
15475 #define DLEN2                   CRCCON1bits.DLEN2               // bit 6, shadows bit in CRCCON1bits
15476 #define CRCDLEN2                CRCCON1bits.CRCDLEN2            // bit 6, shadows bit in CRCCON1bits
15477 #define DLEN3                   CRCCON1bits.DLEN3               // bit 7, shadows bit in CRCCON1bits
15478 #define CRCDLEN3                CRCCON1bits.CRCDLEN3            // bit 7, shadows bit in CRCCON1bits
15479 
15480 #define DAT8                    CRCDATHbits.DAT8                // bit 0, shadows bit in CRCDATHbits
15481 #define CRCDAT8                 CRCDATHbits.CRCDAT8             // bit 0, shadows bit in CRCDATHbits
15482 #define DAT9                    CRCDATHbits.DAT9                // bit 1, shadows bit in CRCDATHbits
15483 #define CRCDAT9                 CRCDATHbits.CRCDAT9             // bit 1, shadows bit in CRCDATHbits
15484 #define DAT10                   CRCDATHbits.DAT10               // bit 2, shadows bit in CRCDATHbits
15485 #define CRCDAT10                CRCDATHbits.CRCDAT10            // bit 2, shadows bit in CRCDATHbits
15486 #define DAT11                   CRCDATHbits.DAT11               // bit 3, shadows bit in CRCDATHbits
15487 #define CRCDAT11                CRCDATHbits.CRCDAT11            // bit 3, shadows bit in CRCDATHbits
15488 #define DAT12                   CRCDATHbits.DAT12               // bit 4, shadows bit in CRCDATHbits
15489 #define CRCDAT12                CRCDATHbits.CRCDAT12            // bit 4, shadows bit in CRCDATHbits
15490 #define DAT13                   CRCDATHbits.DAT13               // bit 5, shadows bit in CRCDATHbits
15491 #define CRCDAT13                CRCDATHbits.CRCDAT13            // bit 5, shadows bit in CRCDATHbits
15492 #define DAT14                   CRCDATHbits.DAT14               // bit 6, shadows bit in CRCDATHbits
15493 #define CRCDAT14                CRCDATHbits.CRCDAT14            // bit 6, shadows bit in CRCDATHbits
15494 #define DAT15                   CRCDATHbits.DAT15               // bit 7, shadows bit in CRCDATHbits
15495 #define CRCDAT15                CRCDATHbits.CRCDAT15            // bit 7, shadows bit in CRCDATHbits
15496 
15497 #define DAT0                    CRCDATLbits.DAT0                // bit 0, shadows bit in CRCDATLbits
15498 #define CRCDAT0                 CRCDATLbits.CRCDAT0             // bit 0, shadows bit in CRCDATLbits
15499 #define DAT1                    CRCDATLbits.DAT1                // bit 1, shadows bit in CRCDATLbits
15500 #define CRCDAT1                 CRCDATLbits.CRCDAT1             // bit 1, shadows bit in CRCDATLbits
15501 #define DAT2                    CRCDATLbits.DAT2                // bit 2, shadows bit in CRCDATLbits
15502 #define CRCDAT2                 CRCDATLbits.CRCDAT2             // bit 2, shadows bit in CRCDATLbits
15503 #define DAT3                    CRCDATLbits.DAT3                // bit 3, shadows bit in CRCDATLbits
15504 #define CRCDAT3                 CRCDATLbits.CRCDAT3             // bit 3, shadows bit in CRCDATLbits
15505 #define DAT4                    CRCDATLbits.DAT4                // bit 4, shadows bit in CRCDATLbits
15506 #define CRCDAT4                 CRCDATLbits.CRCDAT4             // bit 4, shadows bit in CRCDATLbits
15507 #define DAT5                    CRCDATLbits.DAT5                // bit 5, shadows bit in CRCDATLbits
15508 #define CRCDAT5                 CRCDATLbits.CRCDAT5             // bit 5, shadows bit in CRCDATLbits
15509 #define DAT6                    CRCDATLbits.DAT6                // bit 6, shadows bit in CRCDATLbits
15510 #define CRCDAT6                 CRCDATLbits.CRCDAT6             // bit 6, shadows bit in CRCDATLbits
15511 #define DAT7                    CRCDATLbits.DAT7                // bit 7, shadows bit in CRCDATLbits
15512 #define CRDCDAT7                CRCDATLbits.CRDCDAT7            // bit 7, shadows bit in CRCDATLbits
15513 
15514 #define SHIFT8                  CRCSHIFTHbits.SHIFT8            // bit 0, shadows bit in CRCSHIFTHbits
15515 #define CRCSHIFT8               CRCSHIFTHbits.CRCSHIFT8         // bit 0, shadows bit in CRCSHIFTHbits
15516 #define SHIFT9                  CRCSHIFTHbits.SHIFT9            // bit 1, shadows bit in CRCSHIFTHbits
15517 #define CRCSHIFT9               CRCSHIFTHbits.CRCSHIFT9         // bit 1, shadows bit in CRCSHIFTHbits
15518 #define SHIFT10                 CRCSHIFTHbits.SHIFT10           // bit 2, shadows bit in CRCSHIFTHbits
15519 #define CRCSHIFT10              CRCSHIFTHbits.CRCSHIFT10        // bit 2, shadows bit in CRCSHIFTHbits
15520 #define SHIFT11                 CRCSHIFTHbits.SHIFT11           // bit 3, shadows bit in CRCSHIFTHbits
15521 #define CRCSHIFT11              CRCSHIFTHbits.CRCSHIFT11        // bit 3, shadows bit in CRCSHIFTHbits
15522 #define SHIFT12                 CRCSHIFTHbits.SHIFT12           // bit 4, shadows bit in CRCSHIFTHbits
15523 #define CRCSHIFT12              CRCSHIFTHbits.CRCSHIFT12        // bit 4, shadows bit in CRCSHIFTHbits
15524 #define SHIFT13                 CRCSHIFTHbits.SHIFT13           // bit 5, shadows bit in CRCSHIFTHbits
15525 #define CRCSHIFT13              CRCSHIFTHbits.CRCSHIFT13        // bit 5, shadows bit in CRCSHIFTHbits
15526 #define SHIFT14                 CRCSHIFTHbits.SHIFT14           // bit 6, shadows bit in CRCSHIFTHbits
15527 #define CRCSHIFT14              CRCSHIFTHbits.CRCSHIFT14        // bit 6, shadows bit in CRCSHIFTHbits
15528 #define SHIFT15                 CRCSHIFTHbits.SHIFT15           // bit 7, shadows bit in CRCSHIFTHbits
15529 #define CRCSHIFT15              CRCSHIFTHbits.CRCSHIFT15        // bit 7, shadows bit in CRCSHIFTHbits
15530 
15531 #define SHIFT0                  CRCSHIFTLbits.SHIFT0            // bit 0, shadows bit in CRCSHIFTLbits
15532 #define CRCSHIFT0               CRCSHIFTLbits.CRCSHIFT0         // bit 0, shadows bit in CRCSHIFTLbits
15533 #define SHIFT1                  CRCSHIFTLbits.SHIFT1            // bit 1, shadows bit in CRCSHIFTLbits
15534 #define CRCSHIFT1               CRCSHIFTLbits.CRCSHIFT1         // bit 1, shadows bit in CRCSHIFTLbits
15535 #define SHIFT2                  CRCSHIFTLbits.SHIFT2            // bit 2, shadows bit in CRCSHIFTLbits
15536 #define CRCSHIFT2               CRCSHIFTLbits.CRCSHIFT2         // bit 2, shadows bit in CRCSHIFTLbits
15537 #define SHIFT3                  CRCSHIFTLbits.SHIFT3            // bit 3, shadows bit in CRCSHIFTLbits
15538 #define CRCSHIFT3               CRCSHIFTLbits.CRCSHIFT3         // bit 3, shadows bit in CRCSHIFTLbits
15539 #define SHIFT4                  CRCSHIFTLbits.SHIFT4            // bit 4, shadows bit in CRCSHIFTLbits
15540 #define CRCSHIFT4               CRCSHIFTLbits.CRCSHIFT4         // bit 4, shadows bit in CRCSHIFTLbits
15541 #define SHIFT5                  CRCSHIFTLbits.SHIFT5            // bit 5, shadows bit in CRCSHIFTLbits
15542 #define CRCSHIFT5               CRCSHIFTLbits.CRCSHIFT5         // bit 5, shadows bit in CRCSHIFTLbits
15543 #define SHIFT6                  CRCSHIFTLbits.SHIFT6            // bit 6, shadows bit in CRCSHIFTLbits
15544 #define CRCSHIFT6               CRCSHIFTLbits.CRCSHIFT6         // bit 6, shadows bit in CRCSHIFTLbits
15545 #define SHIFT7                  CRCSHIFTLbits.SHIFT7            // bit 7, shadows bit in CRCSHIFTLbits
15546 #define CRCSHIFT7               CRCSHIFTLbits.CRCSHIFT7         // bit 7, shadows bit in CRCSHIFTLbits
15547 
15548 #define XOR8                    CRCXORHbits.XOR8                // bit 0, shadows bit in CRCXORHbits
15549 #define CRCXOR8                 CRCXORHbits.CRCXOR8             // bit 0, shadows bit in CRCXORHbits
15550 #define XOR9                    CRCXORHbits.XOR9                // bit 1, shadows bit in CRCXORHbits
15551 #define CRCXOR9                 CRCXORHbits.CRCXOR9             // bit 1, shadows bit in CRCXORHbits
15552 #define XOR10                   CRCXORHbits.XOR10               // bit 2, shadows bit in CRCXORHbits
15553 #define CRCXOR10                CRCXORHbits.CRCXOR10            // bit 2, shadows bit in CRCXORHbits
15554 #define XOR11                   CRCXORHbits.XOR11               // bit 3, shadows bit in CRCXORHbits
15555 #define CRCXOR11                CRCXORHbits.CRCXOR11            // bit 3, shadows bit in CRCXORHbits
15556 #define XOR12                   CRCXORHbits.XOR12               // bit 4, shadows bit in CRCXORHbits
15557 #define CRCXOR12                CRCXORHbits.CRCXOR12            // bit 4, shadows bit in CRCXORHbits
15558 #define XOR13                   CRCXORHbits.XOR13               // bit 5, shadows bit in CRCXORHbits
15559 #define CRCXOR13                CRCXORHbits.CRCXOR13            // bit 5, shadows bit in CRCXORHbits
15560 #define XOR14                   CRCXORHbits.XOR14               // bit 6, shadows bit in CRCXORHbits
15561 #define CRCXOR14                CRCXORHbits.CRCXOR14            // bit 6, shadows bit in CRCXORHbits
15562 #define XOR15                   CRCXORHbits.XOR15               // bit 7, shadows bit in CRCXORHbits
15563 #define CRCXOR15                CRCXORHbits.CRCXOR15            // bit 7, shadows bit in CRCXORHbits
15564 
15565 #define XOR1                    CRCXORLbits.XOR1                // bit 1, shadows bit in CRCXORLbits
15566 #define CRCXOR1                 CRCXORLbits.CRCXOR1             // bit 1, shadows bit in CRCXORLbits
15567 #define XOR2                    CRCXORLbits.XOR2                // bit 2, shadows bit in CRCXORLbits
15568 #define CRCXOR2                 CRCXORLbits.CRCXOR2             // bit 2, shadows bit in CRCXORLbits
15569 #define XOR3                    CRCXORLbits.XOR3                // bit 3, shadows bit in CRCXORLbits
15570 #define CRCXOR3                 CRCXORLbits.CRCXOR3             // bit 3, shadows bit in CRCXORLbits
15571 #define XOR4                    CRCXORLbits.XOR4                // bit 4, shadows bit in CRCXORLbits
15572 #define CRCXOR4                 CRCXORLbits.CRCXOR4             // bit 4, shadows bit in CRCXORLbits
15573 #define XOR5                    CRCXORLbits.XOR5                // bit 5, shadows bit in CRCXORLbits
15574 #define CRCXOR5                 CRCXORLbits.CRCXOR5             // bit 5, shadows bit in CRCXORLbits
15575 #define XOR6                    CRCXORLbits.XOR6                // bit 6, shadows bit in CRCXORLbits
15576 #define CRCXOR6                 CRCXORLbits.CRCXOR6             // bit 6, shadows bit in CRCXORLbits
15577 #define XOR7                    CRCXORLbits.XOR7                // bit 7, shadows bit in CRCXORLbits
15578 #define CRCXOR7                 CRCXORLbits.CRCXOR7             // bit 7, shadows bit in CRCXORLbits
15579 
15580 #define LSAC0                   CWG1AS0bits.LSAC0               // bit 2, shadows bit in CWG1AS0bits
15581 #define CWG1LSAC0               CWG1AS0bits.CWG1LSAC0           // bit 2, shadows bit in CWG1AS0bits
15582 #define LSAC1                   CWG1AS0bits.LSAC1               // bit 3, shadows bit in CWG1AS0bits
15583 #define CWG1LSAC1               CWG1AS0bits.CWG1LSAC1           // bit 3, shadows bit in CWG1AS0bits
15584 #define LSBD0                   CWG1AS0bits.LSBD0               // bit 4, shadows bit in CWG1AS0bits
15585 #define CWG1LSBD0               CWG1AS0bits.CWG1LSBD0           // bit 4, shadows bit in CWG1AS0bits
15586 #define LSBD1                   CWG1AS0bits.LSBD1               // bit 5, shadows bit in CWG1AS0bits
15587 #define CWG1LSBD1               CWG1AS0bits.CWG1LSBD1           // bit 5, shadows bit in CWG1AS0bits
15588 #define REN                     CWG1AS0bits.REN                 // bit 6, shadows bit in CWG1AS0bits
15589 #define CWG1REN                 CWG1AS0bits.CWG1REN             // bit 6, shadows bit in CWG1AS0bits
15590 #define SHUTDOWN                CWG1AS0bits.SHUTDOWN            // bit 7, shadows bit in CWG1AS0bits
15591 #define CWG1SHUTDOWN            CWG1AS0bits.CWG1SHUTDOWN        // bit 7, shadows bit in CWG1AS0bits
15592 
15593 #define INAS                    CWG1AS1bits.INAS                // bit 0, shadows bit in CWG1AS1bits
15594 #define CWG1INAS                CWG1AS1bits.CWG1INAS            // bit 0, shadows bit in CWG1AS1bits
15595 #define C1AS                    CWG1AS1bits.C1AS                // bit 1, shadows bit in CWG1AS1bits
15596 #define CWG1C1AS                CWG1AS1bits.CWG1C1AS            // bit 1, shadows bit in CWG1AS1bits
15597 #define C2AS                    CWG1AS1bits.C2AS                // bit 2, shadows bit in CWG1AS1bits
15598 #define CWG1C2AS                CWG1AS1bits.CWG1C2AS            // bit 2, shadows bit in CWG1AS1bits
15599 #define TMR2AS                  CWG1AS1bits.TMR2AS              // bit 4, shadows bit in CWG1AS1bits
15600 #define CWG1TMR2AS              CWG1AS1bits.CWG1TMR2AS          // bit 4, shadows bit in CWG1AS1bits
15601 #define TMR4AS                  CWG1AS1bits.TMR4AS              // bit 5, shadows bit in CWG1AS1bits
15602 #define CWG1TMR4AS              CWG1AS1bits.CWG1TMR4AS          // bit 5, shadows bit in CWG1AS1bits
15603 #define TMR6AS                  CWG1AS1bits.TMR6AS              // bit 6, shadows bit in CWG1AS1bits
15604 #define CWG1TMR6AS              CWG1AS1bits.CWG1TMR6AS          // bit 6, shadows bit in CWG1AS1bits
15605 
15606 #define POLA                    CWG1CON1bits.POLA               // bit 0, shadows bit in CWG1CON1bits
15607 #define CWG1POLA                CWG1CON1bits.CWG1POLA           // bit 0, shadows bit in CWG1CON1bits
15608 #define POLB                    CWG1CON1bits.POLB               // bit 1, shadows bit in CWG1CON1bits
15609 #define CWG1POLB                CWG1CON1bits.CWG1POLB           // bit 1, shadows bit in CWG1CON1bits
15610 #define POLC                    CWG1CON1bits.POLC               // bit 2, shadows bit in CWG1CON1bits
15611 #define CWG1POLC                CWG1CON1bits.CWG1POLC           // bit 2, shadows bit in CWG1CON1bits
15612 #define POLD                    CWG1CON1bits.POLD               // bit 3, shadows bit in CWG1CON1bits
15613 #define CWG1POLD                CWG1CON1bits.CWG1POLD           // bit 3, shadows bit in CWG1CON1bits
15614 #define IN                      CWG1CON1bits.IN                 // bit 5, shadows bit in CWG1CON1bits
15615 #define CWG1IN                  CWG1CON1bits.CWG1IN             // bit 5, shadows bit in CWG1CON1bits
15616 
15617 #define DBF0                    CWG1DBFbits.DBF0                // bit 0, shadows bit in CWG1DBFbits
15618 #define CWG1DBF0                CWG1DBFbits.CWG1DBF0            // bit 0, shadows bit in CWG1DBFbits
15619 #define DBF1                    CWG1DBFbits.DBF1                // bit 1, shadows bit in CWG1DBFbits
15620 #define CWG1DBF1                CWG1DBFbits.CWG1DBF1            // bit 1, shadows bit in CWG1DBFbits
15621 #define DBF2                    CWG1DBFbits.DBF2                // bit 2, shadows bit in CWG1DBFbits
15622 #define CWG1DBF2                CWG1DBFbits.CWG1DBF2            // bit 2, shadows bit in CWG1DBFbits
15623 #define DBF3                    CWG1DBFbits.DBF3                // bit 3, shadows bit in CWG1DBFbits
15624 #define CWG1DBF3                CWG1DBFbits.CWG1DBF3            // bit 3, shadows bit in CWG1DBFbits
15625 #define DBF4                    CWG1DBFbits.DBF4                // bit 4, shadows bit in CWG1DBFbits
15626 #define CWG1DBF4                CWG1DBFbits.CWG1DBF4            // bit 4, shadows bit in CWG1DBFbits
15627 #define DBF5                    CWG1DBFbits.DBF5                // bit 5, shadows bit in CWG1DBFbits
15628 #define CWG1DBF5                CWG1DBFbits.CWG1DBF5            // bit 5, shadows bit in CWG1DBFbits
15629 
15630 #define DBR0                    CWG1DBRbits.DBR0                // bit 0, shadows bit in CWG1DBRbits
15631 #define CWG1DBR0                CWG1DBRbits.CWG1DBR0            // bit 0, shadows bit in CWG1DBRbits
15632 #define DBR1                    CWG1DBRbits.DBR1                // bit 1, shadows bit in CWG1DBRbits
15633 #define CWG1DBR1                CWG1DBRbits.CWG1DBR1            // bit 1, shadows bit in CWG1DBRbits
15634 #define DBR2                    CWG1DBRbits.DBR2                // bit 2, shadows bit in CWG1DBRbits
15635 #define CWG1DBR2                CWG1DBRbits.CWG1DBR2            // bit 2, shadows bit in CWG1DBRbits
15636 #define DBR3                    CWG1DBRbits.DBR3                // bit 3, shadows bit in CWG1DBRbits
15637 #define CWG1DBR3                CWG1DBRbits.CWG1DBR3            // bit 3, shadows bit in CWG1DBRbits
15638 #define DBR4                    CWG1DBRbits.DBR4                // bit 4, shadows bit in CWG1DBRbits
15639 #define CWG1DBR4                CWG1DBRbits.CWG1DBR4            // bit 4, shadows bit in CWG1DBRbits
15640 #define DBR5                    CWG1DBRbits.DBR5                // bit 5, shadows bit in CWG1DBRbits
15641 #define CWG1DBR5                CWG1DBRbits.CWG1DBR5            // bit 5, shadows bit in CWG1DBRbits
15642 
15643 #define IS0                     CWG1ISMbits.IS0                 // bit 0, shadows bit in CWG1ISMbits
15644 #define CWG1IS0                 CWG1ISMbits.CWG1IS0             // bit 0, shadows bit in CWG1ISMbits
15645 #define IS1                     CWG1ISMbits.IS1                 // bit 1, shadows bit in CWG1ISMbits
15646 #define CWG1IS1                 CWG1ISMbits.CWG1IS1             // bit 1, shadows bit in CWG1ISMbits
15647 #define IS2                     CWG1ISMbits.IS2                 // bit 2, shadows bit in CWG1ISMbits
15648 #define CWG1IS2                 CWG1ISMbits.CWG1IS2             // bit 2, shadows bit in CWG1ISMbits
15649 #define IS3                     CWG1ISMbits.IS3                 // bit 3, shadows bit in CWG1ISMbits
15650 #define CWG1IS3                 CWG1ISMbits.CWG1IS3             // bit 3, shadows bit in CWG1ISMbits
15651 
15652 #define STRA                    CWG1OCON0bits.STRA              // bit 0, shadows bit in CWG1OCON0bits
15653 #define CWG1STRA                CWG1OCON0bits.CWG1STRA          // bit 0, shadows bit in CWG1OCON0bits
15654 #define STRB                    CWG1OCON0bits.STRB              // bit 1, shadows bit in CWG1OCON0bits
15655 #define CWG1STRB                CWG1OCON0bits.CWG1STRB          // bit 1, shadows bit in CWG1OCON0bits
15656 #define STRC                    CWG1OCON0bits.STRC              // bit 2, shadows bit in CWG1OCON0bits
15657 #define CWG1STRC                CWG1OCON0bits.CWG1STRC          // bit 2, shadows bit in CWG1OCON0bits
15658 #define STRD                    CWG1OCON0bits.STRD              // bit 3, shadows bit in CWG1OCON0bits
15659 #define CWG1STRD                CWG1OCON0bits.CWG1STRD          // bit 3, shadows bit in CWG1OCON0bits
15660 #define OVRA                    CWG1OCON0bits.OVRA              // bit 4, shadows bit in CWG1OCON0bits
15661 #define CWG1OVRA                CWG1OCON0bits.CWG1OVRA          // bit 4, shadows bit in CWG1OCON0bits
15662 #define OVRB                    CWG1OCON0bits.OVRB              // bit 5, shadows bit in CWG1OCON0bits
15663 #define CWG1OVRB                CWG1OCON0bits.CWG1OVRB          // bit 5, shadows bit in CWG1OCON0bits
15664 #define OVRC                    CWG1OCON0bits.OVRC              // bit 6, shadows bit in CWG1OCON0bits
15665 #define CWG1OVRC                CWG1OCON0bits.CWG1OVRC          // bit 6, shadows bit in CWG1OCON0bits
15666 #define OVRD                    CWG1OCON0bits.OVRD              // bit 7, shadows bit in CWG1OCON0bits
15667 #define CWG1OVRD                CWG1OCON0bits.CWG1OVRD          // bit 7, shadows bit in CWG1OCON0bits
15668 
15669 #define CWGINPPS0               CWGINPPSbits.CWGINPPS0          // bit 0
15670 #define CWGINPPS1               CWGINPPSbits.CWGINPPS1          // bit 1
15671 #define CWGINPPS2               CWGINPPSbits.CWGINPPS2          // bit 2
15672 #define CWGINPPS3               CWGINPPSbits.CWGINPPS3          // bit 3
15673 #define CWGINPPS4               CWGINPPSbits.CWGINPPS4          // bit 4
15674 
15675 #define D1PSS0                  DAC1CON0bits.D1PSS0             // bit 2
15676 #define D1PSS1                  DAC1CON0bits.D1PSS1             // bit 3
15677 #define DAC1OE                  DAC1CON0bits.DAC1OE             // bit 5
15678 #define DAC1EN                  DAC1CON0bits.DAC1EN             // bit 7
15679 
15680 #define DAC1R0                  DAC1CON1bits.DAC1R0             // bit 0
15681 #define DAC1R1                  DAC1CON1bits.DAC1R1             // bit 1
15682 #define DAC1R2                  DAC1CON1bits.DAC1R2             // bit 2
15683 #define DAC1R3                  DAC1CON1bits.DAC1R3             // bit 3
15684 #define DAC1R4                  DAC1CON1bits.DAC1R4             // bit 4
15685 #define DAC1R5                  DAC1CON1bits.DAC1R5             // bit 5
15686 #define DAC1R6                  DAC1CON1bits.DAC1R6             // bit 6
15687 #define DAC1R7                  DAC1CON1bits.DAC1R7             // bit 7
15688 
15689 #define ADFVR0                  FVRCONbits.ADFVR0               // bit 0
15690 #define ADFVR1                  FVRCONbits.ADFVR1               // bit 1
15691 #define CDAFVR0                 FVRCONbits.CDAFVR0              // bit 2
15692 #define CDAFVR1                 FVRCONbits.CDAFVR1              // bit 3
15693 #define TSRNG                   FVRCONbits.TSRNG                // bit 4
15694 #define TSEN                    FVRCONbits.TSEN                 // bit 5
15695 #define FVRRDY                  FVRCONbits.FVRRDY               // bit 6
15696 #define FVREN                   FVRCONbits.FVREN                // bit 7
15697 
15698 #define HIDC4                   HDRVCbits.HIDC4                 // bit 4
15699 #define HIDC5                   HDRVCbits.HIDC5                 // bit 5
15700 
15701 #define INLVLA0                 INLVLAbits.INLVLA0              // bit 0
15702 #define INLVLA1                 INLVLAbits.INLVLA1              // bit 1
15703 #define INLVLA2                 INLVLAbits.INLVLA2              // bit 2
15704 #define INLVLA3                 INLVLAbits.INLVLA3              // bit 3
15705 #define INLVLA4                 INLVLAbits.INLVLA4              // bit 4
15706 #define INLVLA5                 INLVLAbits.INLVLA5              // bit 5
15707 
15708 #define INLVLB4                 INLVLBbits.INLVLB4              // bit 4
15709 #define INLVLB5                 INLVLBbits.INLVLB5              // bit 5
15710 #define INLVLB6                 INLVLBbits.INLVLB6              // bit 6
15711 #define INLVLB7                 INLVLBbits.INLVLB7              // bit 7
15712 
15713 #define INLVLC0                 INLVLCbits.INLVLC0              // bit 0
15714 #define INLVLC1                 INLVLCbits.INLVLC1              // bit 1
15715 #define INLVLC2                 INLVLCbits.INLVLC2              // bit 2
15716 #define INLVLC3                 INLVLCbits.INLVLC3              // bit 3
15717 #define INLVLC4                 INLVLCbits.INLVLC4              // bit 4
15718 #define INLVLC5                 INLVLCbits.INLVLC5              // bit 5
15719 #define INLVLC6                 INLVLCbits.INLVLC6              // bit 6
15720 #define INLVLC7                 INLVLCbits.INLVLC7              // bit 7
15721 
15722 #define IOCIF                   INTCONbits.IOCIF                // bit 0
15723 #define INTF                    INTCONbits.INTF                 // bit 1
15724 #define TMR0IF                  INTCONbits.TMR0IF               // bit 2, shadows bit in INTCONbits
15725 #define T0IF                    INTCONbits.T0IF                 // bit 2, shadows bit in INTCONbits
15726 #define IOCIE                   INTCONbits.IOCIE                // bit 3
15727 #define INTE                    INTCONbits.INTE                 // bit 4
15728 #define TMR0IE                  INTCONbits.TMR0IE               // bit 5, shadows bit in INTCONbits
15729 #define T0IE                    INTCONbits.T0IE                 // bit 5, shadows bit in INTCONbits
15730 #define PEIE                    INTCONbits.PEIE                 // bit 6
15731 #define GIE                     INTCONbits.GIE                  // bit 7
15732 
15733 #define INTPPS0                 INTPPSbits.INTPPS0              // bit 0
15734 #define INTPPS1                 INTPPSbits.INTPPS1              // bit 1
15735 #define INTPPS2                 INTPPSbits.INTPPS2              // bit 2
15736 #define INTPPS3                 INTPPSbits.INTPPS3              // bit 3
15737 #define INTPPS4                 INTPPSbits.INTPPS4              // bit 4
15738 
15739 #define IOCAF0                  IOCAFbits.IOCAF0                // bit 0
15740 #define IOCAF1                  IOCAFbits.IOCAF1                // bit 1
15741 #define IOCAF2                  IOCAFbits.IOCAF2                // bit 2
15742 #define IOCAF3                  IOCAFbits.IOCAF3                // bit 3
15743 #define IOCAF4                  IOCAFbits.IOCAF4                // bit 4
15744 #define IOCAF5                  IOCAFbits.IOCAF5                // bit 5
15745 
15746 #define IOCAN0                  IOCANbits.IOCAN0                // bit 0
15747 #define IOCAN1                  IOCANbits.IOCAN1                // bit 1
15748 #define IOCAN2                  IOCANbits.IOCAN2                // bit 2
15749 #define IOCAN3                  IOCANbits.IOCAN3                // bit 3
15750 #define IOCAN4                  IOCANbits.IOCAN4                // bit 4
15751 #define IOCAN5                  IOCANbits.IOCAN5                // bit 5
15752 
15753 #define IOCAP0                  IOCAPbits.IOCAP0                // bit 0
15754 #define IOCAP1                  IOCAPbits.IOCAP1                // bit 1
15755 #define IOCAP2                  IOCAPbits.IOCAP2                // bit 2
15756 #define IOCAP3                  IOCAPbits.IOCAP3                // bit 3
15757 #define IOCAP4                  IOCAPbits.IOCAP4                // bit 4
15758 #define IOCAP5                  IOCAPbits.IOCAP5                // bit 5
15759 
15760 #define IOCBF4                  IOCBFbits.IOCBF4                // bit 4
15761 #define IOCBF5                  IOCBFbits.IOCBF5                // bit 5
15762 #define IOCBF6                  IOCBFbits.IOCBF6                // bit 6
15763 #define IOCBF7                  IOCBFbits.IOCBF7                // bit 7
15764 
15765 #define IOCBN4                  IOCBNbits.IOCBN4                // bit 4
15766 #define IOCBN5                  IOCBNbits.IOCBN5                // bit 5
15767 #define IOCBN6                  IOCBNbits.IOCBN6                // bit 6
15768 #define IOCBN7                  IOCBNbits.IOCBN7                // bit 7
15769 
15770 #define IOCBP4                  IOCBPbits.IOCBP4                // bit 4
15771 #define IOCBP5                  IOCBPbits.IOCBP5                // bit 5
15772 #define IOCBP6                  IOCBPbits.IOCBP6                // bit 6
15773 #define IOCBP7                  IOCBPbits.IOCBP7                // bit 7
15774 
15775 #define IOCCF0                  IOCCFbits.IOCCF0                // bit 0
15776 #define IOCCF1                  IOCCFbits.IOCCF1                // bit 1
15777 #define IOCCF2                  IOCCFbits.IOCCF2                // bit 2
15778 #define IOCCF3                  IOCCFbits.IOCCF3                // bit 3
15779 #define IOCCF4                  IOCCFbits.IOCCF4                // bit 4
15780 #define IOCCF5                  IOCCFbits.IOCCF5                // bit 5
15781 #define IOCCF6                  IOCCFbits.IOCCF6                // bit 6
15782 #define IOCCF7                  IOCCFbits.IOCCF7                // bit 7
15783 
15784 #define IOCCN0                  IOCCNbits.IOCCN0                // bit 0
15785 #define IOCCN1                  IOCCNbits.IOCCN1                // bit 1
15786 #define IOCCN2                  IOCCNbits.IOCCN2                // bit 2
15787 #define IOCCN3                  IOCCNbits.IOCCN3                // bit 3
15788 #define IOCCN4                  IOCCNbits.IOCCN4                // bit 4
15789 #define IOCCN5                  IOCCNbits.IOCCN5                // bit 5
15790 #define IOCCN6                  IOCCNbits.IOCCN6                // bit 6
15791 #define IOCCN7                  IOCCNbits.IOCCN7                // bit 7
15792 
15793 #define IOCCP0                  IOCCPbits.IOCCP0                // bit 0
15794 #define IOCCP1                  IOCCPbits.IOCCP1                // bit 1
15795 #define IOCCP2                  IOCCPbits.IOCCP2                // bit 2
15796 #define IOCCP3                  IOCCPbits.IOCCP3                // bit 3
15797 #define IOCCP4                  IOCCPbits.IOCCP4                // bit 4
15798 #define IOCCP5                  IOCCPbits.IOCCP5                // bit 5
15799 #define IOCCP6                  IOCCPbits.IOCCP6                // bit 6
15800 #define IOCCP7                  IOCCPbits.IOCCP7                // bit 7
15801 
15802 #define LATA0                   LATAbits.LATA0                  // bit 0
15803 #define LATA1                   LATAbits.LATA1                  // bit 1
15804 #define LATA2                   LATAbits.LATA2                  // bit 2
15805 #define LATA3                   LATAbits.LATA3                  // bit 3
15806 #define LATA4                   LATAbits.LATA4                  // bit 4
15807 #define LATA5                   LATAbits.LATA5                  // bit 5
15808 
15809 #define LATB4                   LATBbits.LATB4                  // bit 4
15810 #define LATB5                   LATBbits.LATB5                  // bit 5
15811 #define LATB6                   LATBbits.LATB6                  // bit 6
15812 #define LATB7                   LATBbits.LATB7                  // bit 7
15813 
15814 #define LATC0                   LATCbits.LATC0                  // bit 0
15815 #define LATC1                   LATCbits.LATC1                  // bit 1
15816 #define LATC2                   LATCbits.LATC2                  // bit 2
15817 #define LATC3                   LATCbits.LATC3                  // bit 3
15818 #define LATC4                   LATCbits.LATC4                  // bit 4
15819 #define LATC5                   LATCbits.LATC5                  // bit 5
15820 #define LATC6                   LATCbits.LATC6                  // bit 6
15821 #define LATC7                   LATCbits.LATC7                  // bit 7
15822 
15823 #define ODA0                    ODCONAbits.ODA0                 // bit 0
15824 #define ODA1                    ODCONAbits.ODA1                 // bit 1
15825 #define ODA2                    ODCONAbits.ODA2                 // bit 2
15826 #define ODA4                    ODCONAbits.ODA4                 // bit 4
15827 #define ODA5                    ODCONAbits.ODA5                 // bit 5
15828 
15829 #define ODB4                    ODCONBbits.ODB4                 // bit 4
15830 #define ODB5                    ODCONBbits.ODB5                 // bit 5
15831 #define ODB6                    ODCONBbits.ODB6                 // bit 6
15832 #define ODB7                    ODCONBbits.ODB7                 // bit 7
15833 
15834 #define ODC0                    ODCONCbits.ODC0                 // bit 0
15835 #define ODC1                    ODCONCbits.ODC1                 // bit 1
15836 #define ODC2                    ODCONCbits.ODC2                 // bit 2
15837 #define ODC3                    ODCONCbits.ODC3                 // bit 3
15838 #define ODC4                    ODCONCbits.ODC4                 // bit 4
15839 #define ODC5                    ODCONCbits.ODC5                 // bit 5
15840 #define ODC6                    ODCONCbits.ODC6                 // bit 6
15841 #define ODC7                    ODCONCbits.ODC7                 // bit 7
15842 
15843 #define SCS0                    OSCCONbits.SCS0                 // bit 0
15844 #define SCS1                    OSCCONbits.SCS1                 // bit 1
15845 #define IRCF0                   OSCCONbits.IRCF0                // bit 3
15846 #define IRCF1                   OSCCONbits.IRCF1                // bit 4
15847 #define IRCF2                   OSCCONbits.IRCF2                // bit 5
15848 #define IRCF3                   OSCCONbits.IRCF3                // bit 6
15849 #define SPLLEN                  OSCCONbits.SPLLEN               // bit 7
15850 
15851 #define HFIOFS                  OSCSTATbits.HFIOFS              // bit 0
15852 #define LFIOFR                  OSCSTATbits.LFIOFR              // bit 1
15853 #define MFIOFR                  OSCSTATbits.MFIOFR              // bit 2
15854 #define HFIOFL                  OSCSTATbits.HFIOFL              // bit 3
15855 #define HFIOFR                  OSCSTATbits.HFIOFR              // bit 4
15856 #define PLLR                    OSCSTATbits.PLLR                // bit 6
15857 
15858 #define TUN0                    OSCTUNEbits.TUN0                // bit 0
15859 #define TUN1                    OSCTUNEbits.TUN1                // bit 1
15860 #define TUN2                    OSCTUNEbits.TUN2                // bit 2
15861 #define TUN3                    OSCTUNEbits.TUN3                // bit 3
15862 #define TUN4                    OSCTUNEbits.TUN4                // bit 4
15863 #define TUN5                    OSCTUNEbits.TUN5                // bit 5
15864 
15865 #define NOT_BOR                 PCONbits.NOT_BOR                // bit 0
15866 #define NOT_POR                 PCONbits.NOT_POR                // bit 1
15867 #define NOT_RI                  PCONbits.NOT_RI                 // bit 2
15868 #define NOT_RMCLR               PCONbits.NOT_RMCLR              // bit 3
15869 #define NOT_RWDT                PCONbits.NOT_RWDT               // bit 4
15870 #define NOT_WDTWV               PCONbits.NOT_WDTWV              // bit 5
15871 #define STKUNF                  PCONbits.STKUNF                 // bit 6
15872 #define STKOVF                  PCONbits.STKOVF                 // bit 7
15873 
15874 #define PID1ACC24               PID1ACCHHbits.PID1ACC24         // bit 0, shadows bit in PID1ACCHHbits
15875 #define ACC24                   PID1ACCHHbits.ACC24             // bit 0, shadows bit in PID1ACCHHbits
15876 #define PID1ACC25               PID1ACCHHbits.PID1ACC25         // bit 1, shadows bit in PID1ACCHHbits
15877 #define ACC25                   PID1ACCHHbits.ACC25             // bit 1, shadows bit in PID1ACCHHbits
15878 #define PID1ACC26               PID1ACCHHbits.PID1ACC26         // bit 2, shadows bit in PID1ACCHHbits
15879 #define ACC26                   PID1ACCHHbits.ACC26             // bit 2, shadows bit in PID1ACCHHbits
15880 #define PID1ACC27               PID1ACCHHbits.PID1ACC27         // bit 3, shadows bit in PID1ACCHHbits
15881 #define ACC27                   PID1ACCHHbits.ACC27             // bit 3, shadows bit in PID1ACCHHbits
15882 #define PID1ACC28               PID1ACCHHbits.PID1ACC28         // bit 4, shadows bit in PID1ACCHHbits
15883 #define ACC28                   PID1ACCHHbits.ACC28             // bit 4, shadows bit in PID1ACCHHbits
15884 #define PID1ACC29               PID1ACCHHbits.PID1ACC29         // bit 5, shadows bit in PID1ACCHHbits
15885 #define ACC29                   PID1ACCHHbits.ACC29             // bit 5, shadows bit in PID1ACCHHbits
15886 #define PID1ACC30               PID1ACCHHbits.PID1ACC30         // bit 6, shadows bit in PID1ACCHHbits
15887 #define ACC30                   PID1ACCHHbits.ACC30             // bit 6, shadows bit in PID1ACCHHbits
15888 #define PID1ACC31               PID1ACCHHbits.PID1ACC31         // bit 7, shadows bit in PID1ACCHHbits
15889 #define ACC31                   PID1ACCHHbits.ACC31             // bit 7, shadows bit in PID1ACCHHbits
15890 
15891 #define PID1ACC16               PID1ACCHLbits.PID1ACC16         // bit 0, shadows bit in PID1ACCHLbits
15892 #define ACC16                   PID1ACCHLbits.ACC16             // bit 0, shadows bit in PID1ACCHLbits
15893 #define PID1ACC17               PID1ACCHLbits.PID1ACC17         // bit 1, shadows bit in PID1ACCHLbits
15894 #define ACC17                   PID1ACCHLbits.ACC17             // bit 1, shadows bit in PID1ACCHLbits
15895 #define PID1ACC18               PID1ACCHLbits.PID1ACC18         // bit 2, shadows bit in PID1ACCHLbits
15896 #define ACC18                   PID1ACCHLbits.ACC18             // bit 2, shadows bit in PID1ACCHLbits
15897 #define PID1ACC19               PID1ACCHLbits.PID1ACC19         // bit 3, shadows bit in PID1ACCHLbits
15898 #define ACC19                   PID1ACCHLbits.ACC19             // bit 3, shadows bit in PID1ACCHLbits
15899 #define PID1ACC20               PID1ACCHLbits.PID1ACC20         // bit 4, shadows bit in PID1ACCHLbits
15900 #define ACC20                   PID1ACCHLbits.ACC20             // bit 4, shadows bit in PID1ACCHLbits
15901 #define PID1ACC21               PID1ACCHLbits.PID1ACC21         // bit 5, shadows bit in PID1ACCHLbits
15902 #define ACC21                   PID1ACCHLbits.ACC21             // bit 5, shadows bit in PID1ACCHLbits
15903 #define PID1ACC22               PID1ACCHLbits.PID1ACC22         // bit 6, shadows bit in PID1ACCHLbits
15904 #define ACC22                   PID1ACCHLbits.ACC22             // bit 6, shadows bit in PID1ACCHLbits
15905 #define PID1ACC23               PID1ACCHLbits.PID1ACC23         // bit 7, shadows bit in PID1ACCHLbits
15906 #define ACC23                   PID1ACCHLbits.ACC23             // bit 7, shadows bit in PID1ACCHLbits
15907 
15908 #define PID1ACC32               PID1ACCUbits.PID1ACC32          // bit 0, shadows bit in PID1ACCUbits
15909 #define ACC32                   PID1ACCUbits.ACC32              // bit 0, shadows bit in PID1ACCUbits
15910 #define PID1ACC33               PID1ACCUbits.PID1ACC33          // bit 1, shadows bit in PID1ACCUbits
15911 #define ACC33                   PID1ACCUbits.ACC33              // bit 1, shadows bit in PID1ACCUbits
15912 #define PID1ACC34               PID1ACCUbits.PID1ACC34          // bit 2, shadows bit in PID1ACCUbits
15913 #define ACC34                   PID1ACCUbits.ACC34              // bit 2, shadows bit in PID1ACCUbits
15914 
15915 #define PID1IN8                 PID1INHbits.PID1IN8             // bit 0, shadows bit in PID1INHbits
15916 #define IN8                     PID1INHbits.IN8                 // bit 0, shadows bit in PID1INHbits
15917 #define PID1IN9                 PID1INHbits.PID1IN9             // bit 1, shadows bit in PID1INHbits
15918 #define IN9                     PID1INHbits.IN9                 // bit 1, shadows bit in PID1INHbits
15919 #define PID1IN10                PID1INHbits.PID1IN10            // bit 2, shadows bit in PID1INHbits
15920 #define IN10                    PID1INHbits.IN10                // bit 2, shadows bit in PID1INHbits
15921 #define PID1IN11                PID1INHbits.PID1IN11            // bit 3, shadows bit in PID1INHbits
15922 #define IN11                    PID1INHbits.IN11                // bit 3, shadows bit in PID1INHbits
15923 #define PID1IN12                PID1INHbits.PID1IN12            // bit 4, shadows bit in PID1INHbits
15924 #define IN12                    PID1INHbits.IN12                // bit 4, shadows bit in PID1INHbits
15925 #define PID1IN13                PID1INHbits.PID1IN13            // bit 5, shadows bit in PID1INHbits
15926 #define IN13                    PID1INHbits.IN13                // bit 5, shadows bit in PID1INHbits
15927 #define PID1IN14                PID1INHbits.PID1IN14            // bit 6, shadows bit in PID1INHbits
15928 #define IN14                    PID1INHbits.IN14                // bit 6, shadows bit in PID1INHbits
15929 #define PID1IN15                PID1INHbits.PID1IN15            // bit 7, shadows bit in PID1INHbits
15930 #define IN15                    PID1INHbits.IN15                // bit 7, shadows bit in PID1INHbits
15931 
15932 #define PID1IN0                 PID1INLbits.PID1IN0             // bit 0, shadows bit in PID1INLbits
15933 #define IN0                     PID1INLbits.IN0                 // bit 0, shadows bit in PID1INLbits
15934 #define PID1IN1                 PID1INLbits.PID1IN1             // bit 1, shadows bit in PID1INLbits
15935 #define IN1                     PID1INLbits.IN1                 // bit 1, shadows bit in PID1INLbits
15936 #define PID1IN2                 PID1INLbits.PID1IN2             // bit 2, shadows bit in PID1INLbits
15937 #define IN2                     PID1INLbits.IN2                 // bit 2, shadows bit in PID1INLbits
15938 #define PID1IN3                 PID1INLbits.PID1IN3             // bit 3, shadows bit in PID1INLbits
15939 #define IN3                     PID1INLbits.IN3                 // bit 3, shadows bit in PID1INLbits
15940 #define PID1IN4                 PID1INLbits.PID1IN4             // bit 4, shadows bit in PID1INLbits
15941 #define IN4                     PID1INLbits.IN4                 // bit 4, shadows bit in PID1INLbits
15942 #define PID1IN5                 PID1INLbits.PID1IN5             // bit 5, shadows bit in PID1INLbits
15943 #define IN5                     PID1INLbits.IN5                 // bit 5, shadows bit in PID1INLbits
15944 #define PID1IN6                 PID1INLbits.PID1IN6             // bit 6, shadows bit in PID1INLbits
15945 #define IN6                     PID1INLbits.IN6                 // bit 6, shadows bit in PID1INLbits
15946 #define PID1IN7                 PID1INLbits.PID1IN7             // bit 7, shadows bit in PID1INLbits
15947 #define IN7                     PID1INLbits.IN7                 // bit 7, shadows bit in PID1INLbits
15948 
15949 #define PID1K18                 PID1K1Hbits.PID1K18             // bit 0, shadows bit in PID1K1Hbits
15950 #define K18                     PID1K1Hbits.K18                 // bit 0, shadows bit in PID1K1Hbits
15951 #define PID1K19                 PID1K1Hbits.PID1K19             // bit 1, shadows bit in PID1K1Hbits
15952 #define K19                     PID1K1Hbits.K19                 // bit 1, shadows bit in PID1K1Hbits
15953 #define PID1K110                PID1K1Hbits.PID1K110            // bit 2, shadows bit in PID1K1Hbits
15954 #define K110                    PID1K1Hbits.K110                // bit 2, shadows bit in PID1K1Hbits
15955 #define PID1K111                PID1K1Hbits.PID1K111            // bit 3, shadows bit in PID1K1Hbits
15956 #define K111                    PID1K1Hbits.K111                // bit 3, shadows bit in PID1K1Hbits
15957 #define PID1K112                PID1K1Hbits.PID1K112            // bit 4, shadows bit in PID1K1Hbits
15958 #define K112                    PID1K1Hbits.K112                // bit 4, shadows bit in PID1K1Hbits
15959 #define PID1K113                PID1K1Hbits.PID1K113            // bit 5, shadows bit in PID1K1Hbits
15960 #define K113                    PID1K1Hbits.K113                // bit 5, shadows bit in PID1K1Hbits
15961 #define PID1K114                PID1K1Hbits.PID1K114            // bit 6, shadows bit in PID1K1Hbits
15962 #define K114                    PID1K1Hbits.K114                // bit 6, shadows bit in PID1K1Hbits
15963 #define PID1K115                PID1K1Hbits.PID1K115            // bit 7, shadows bit in PID1K1Hbits
15964 #define K115                    PID1K1Hbits.K115                // bit 7, shadows bit in PID1K1Hbits
15965 
15966 #define PID1K10                 PID1K1Lbits.PID1K10             // bit 0, shadows bit in PID1K1Lbits
15967 #define K10                     PID1K1Lbits.K10                 // bit 0, shadows bit in PID1K1Lbits
15968 #define PID1K11                 PID1K1Lbits.PID1K11             // bit 1, shadows bit in PID1K1Lbits
15969 #define K11                     PID1K1Lbits.K11                 // bit 1, shadows bit in PID1K1Lbits
15970 #define PID1K12                 PID1K1Lbits.PID1K12             // bit 2, shadows bit in PID1K1Lbits
15971 #define K12                     PID1K1Lbits.K12                 // bit 2, shadows bit in PID1K1Lbits
15972 #define PID1K13                 PID1K1Lbits.PID1K13             // bit 3, shadows bit in PID1K1Lbits
15973 #define K13                     PID1K1Lbits.K13                 // bit 3, shadows bit in PID1K1Lbits
15974 #define PID1K14                 PID1K1Lbits.PID1K14             // bit 4, shadows bit in PID1K1Lbits
15975 #define K14                     PID1K1Lbits.K14                 // bit 4, shadows bit in PID1K1Lbits
15976 #define PID1K15                 PID1K1Lbits.PID1K15             // bit 5, shadows bit in PID1K1Lbits
15977 #define K15                     PID1K1Lbits.K15                 // bit 5, shadows bit in PID1K1Lbits
15978 #define PID1K16                 PID1K1Lbits.PID1K16             // bit 6, shadows bit in PID1K1Lbits
15979 #define K16                     PID1K1Lbits.K16                 // bit 6, shadows bit in PID1K1Lbits
15980 #define PID1K17                 PID1K1Lbits.PID1K17             // bit 7, shadows bit in PID1K1Lbits
15981 #define K17                     PID1K1Lbits.K17                 // bit 7, shadows bit in PID1K1Lbits
15982 
15983 #define PID1K28                 PID1K2Hbits.PID1K28             // bit 0, shadows bit in PID1K2Hbits
15984 #define K28                     PID1K2Hbits.K28                 // bit 0, shadows bit in PID1K2Hbits
15985 #define PID1K29                 PID1K2Hbits.PID1K29             // bit 1, shadows bit in PID1K2Hbits
15986 #define K29                     PID1K2Hbits.K29                 // bit 1, shadows bit in PID1K2Hbits
15987 #define PID1K210                PID1K2Hbits.PID1K210            // bit 2, shadows bit in PID1K2Hbits
15988 #define K210                    PID1K2Hbits.K210                // bit 2, shadows bit in PID1K2Hbits
15989 #define PID1K211                PID1K2Hbits.PID1K211            // bit 3, shadows bit in PID1K2Hbits
15990 #define K211                    PID1K2Hbits.K211                // bit 3, shadows bit in PID1K2Hbits
15991 #define PID1K212                PID1K2Hbits.PID1K212            // bit 4, shadows bit in PID1K2Hbits
15992 #define K212                    PID1K2Hbits.K212                // bit 4, shadows bit in PID1K2Hbits
15993 #define PID1K213                PID1K2Hbits.PID1K213            // bit 5, shadows bit in PID1K2Hbits
15994 #define K213                    PID1K2Hbits.K213                // bit 5, shadows bit in PID1K2Hbits
15995 #define PID1K214                PID1K2Hbits.PID1K214            // bit 6, shadows bit in PID1K2Hbits
15996 #define K214                    PID1K2Hbits.K214                // bit 6, shadows bit in PID1K2Hbits
15997 #define PID1K215                PID1K2Hbits.PID1K215            // bit 7, shadows bit in PID1K2Hbits
15998 #define K215                    PID1K2Hbits.K215                // bit 7, shadows bit in PID1K2Hbits
15999 
16000 #define PID1K20                 PID1K2Lbits.PID1K20             // bit 0, shadows bit in PID1K2Lbits
16001 #define K20                     PID1K2Lbits.K20                 // bit 0, shadows bit in PID1K2Lbits
16002 #define PID1K21                 PID1K2Lbits.PID1K21             // bit 1, shadows bit in PID1K2Lbits
16003 #define K21                     PID1K2Lbits.K21                 // bit 1, shadows bit in PID1K2Lbits
16004 #define PID1K22                 PID1K2Lbits.PID1K22             // bit 2, shadows bit in PID1K2Lbits
16005 #define K22                     PID1K2Lbits.K22                 // bit 2, shadows bit in PID1K2Lbits
16006 #define PID1K23                 PID1K2Lbits.PID1K23             // bit 3, shadows bit in PID1K2Lbits
16007 #define K23                     PID1K2Lbits.K23                 // bit 3, shadows bit in PID1K2Lbits
16008 #define PID1K24                 PID1K2Lbits.PID1K24             // bit 4, shadows bit in PID1K2Lbits
16009 #define K24                     PID1K2Lbits.K24                 // bit 4, shadows bit in PID1K2Lbits
16010 #define PID1K25                 PID1K2Lbits.PID1K25             // bit 5, shadows bit in PID1K2Lbits
16011 #define K25                     PID1K2Lbits.K25                 // bit 5, shadows bit in PID1K2Lbits
16012 #define PID1K26                 PID1K2Lbits.PID1K26             // bit 6, shadows bit in PID1K2Lbits
16013 #define K26                     PID1K2Lbits.K26                 // bit 6, shadows bit in PID1K2Lbits
16014 #define PID1K27                 PID1K2Lbits.PID1K27             // bit 7, shadows bit in PID1K2Lbits
16015 #define K27                     PID1K2Lbits.K27                 // bit 7, shadows bit in PID1K2Lbits
16016 
16017 #define PID1K38                 PID1K3Hbits.PID1K38             // bit 0, shadows bit in PID1K3Hbits
16018 #define K38                     PID1K3Hbits.K38                 // bit 0, shadows bit in PID1K3Hbits
16019 #define PID1K39                 PID1K3Hbits.PID1K39             // bit 1, shadows bit in PID1K3Hbits
16020 #define K39                     PID1K3Hbits.K39                 // bit 1, shadows bit in PID1K3Hbits
16021 #define PID1K310                PID1K3Hbits.PID1K310            // bit 2, shadows bit in PID1K3Hbits
16022 #define K310                    PID1K3Hbits.K310                // bit 2, shadows bit in PID1K3Hbits
16023 #define PID1K311                PID1K3Hbits.PID1K311            // bit 3, shadows bit in PID1K3Hbits
16024 #define K311                    PID1K3Hbits.K311                // bit 3, shadows bit in PID1K3Hbits
16025 #define PID1K312                PID1K3Hbits.PID1K312            // bit 4, shadows bit in PID1K3Hbits
16026 #define K312                    PID1K3Hbits.K312                // bit 4, shadows bit in PID1K3Hbits
16027 #define PID1K313                PID1K3Hbits.PID1K313            // bit 5, shadows bit in PID1K3Hbits
16028 #define K313                    PID1K3Hbits.K313                // bit 5, shadows bit in PID1K3Hbits
16029 #define PID1K314                PID1K3Hbits.PID1K314            // bit 6, shadows bit in PID1K3Hbits
16030 #define K314                    PID1K3Hbits.K314                // bit 6, shadows bit in PID1K3Hbits
16031 #define PID1K315                PID1K3Hbits.PID1K315            // bit 7, shadows bit in PID1K3Hbits
16032 #define K315                    PID1K3Hbits.K315                // bit 7, shadows bit in PID1K3Hbits
16033 
16034 #define PID1K30                 PID1K3Lbits.PID1K30             // bit 0, shadows bit in PID1K3Lbits
16035 #define K30                     PID1K3Lbits.K30                 // bit 0, shadows bit in PID1K3Lbits
16036 #define PID1K31                 PID1K3Lbits.PID1K31             // bit 1, shadows bit in PID1K3Lbits
16037 #define K31                     PID1K3Lbits.K31                 // bit 1, shadows bit in PID1K3Lbits
16038 #define PID1K32                 PID1K3Lbits.PID1K32             // bit 2, shadows bit in PID1K3Lbits
16039 #define K32                     PID1K3Lbits.K32                 // bit 2, shadows bit in PID1K3Lbits
16040 #define PID1K33                 PID1K3Lbits.PID1K33             // bit 3, shadows bit in PID1K3Lbits
16041 #define K33                     PID1K3Lbits.K33                 // bit 3, shadows bit in PID1K3Lbits
16042 #define PID1K34                 PID1K3Lbits.PID1K34             // bit 4, shadows bit in PID1K3Lbits
16043 #define K34                     PID1K3Lbits.K34                 // bit 4, shadows bit in PID1K3Lbits
16044 #define PID1K35                 PID1K3Lbits.PID1K35             // bit 5, shadows bit in PID1K3Lbits
16045 #define K35                     PID1K3Lbits.K35                 // bit 5, shadows bit in PID1K3Lbits
16046 #define PID1K36                 PID1K3Lbits.PID1K36             // bit 6, shadows bit in PID1K3Lbits
16047 #define K36                     PID1K3Lbits.K36                 // bit 6, shadows bit in PID1K3Lbits
16048 #define PID1K37                 PID1K3Lbits.PID1K37             // bit 7, shadows bit in PID1K3Lbits
16049 #define K37                     PID1K3Lbits.K37                 // bit 7, shadows bit in PID1K3Lbits
16050 
16051 #define PID1OUT24               PID1OUTHHbits.PID1OUT24         // bit 0, shadows bit in PID1OUTHHbits
16052 #define OUT24                   PID1OUTHHbits.OUT24             // bit 0, shadows bit in PID1OUTHHbits
16053 #define PID1OUT25               PID1OUTHHbits.PID1OUT25         // bit 1, shadows bit in PID1OUTHHbits
16054 #define OUT25                   PID1OUTHHbits.OUT25             // bit 1, shadows bit in PID1OUTHHbits
16055 #define PID1OUT26               PID1OUTHHbits.PID1OUT26         // bit 2, shadows bit in PID1OUTHHbits
16056 #define OUT26                   PID1OUTHHbits.OUT26             // bit 2, shadows bit in PID1OUTHHbits
16057 #define PID1OUT27               PID1OUTHHbits.PID1OUT27         // bit 3, shadows bit in PID1OUTHHbits
16058 #define OUT27                   PID1OUTHHbits.OUT27             // bit 3, shadows bit in PID1OUTHHbits
16059 #define PID1OUT28               PID1OUTHHbits.PID1OUT28         // bit 4, shadows bit in PID1OUTHHbits
16060 #define OUT28                   PID1OUTHHbits.OUT28             // bit 4, shadows bit in PID1OUTHHbits
16061 #define PID1OUT29               PID1OUTHHbits.PID1OUT29         // bit 5, shadows bit in PID1OUTHHbits
16062 #define OUT29                   PID1OUTHHbits.OUT29             // bit 5, shadows bit in PID1OUTHHbits
16063 #define PID1OUT30               PID1OUTHHbits.PID1OUT30         // bit 6, shadows bit in PID1OUTHHbits
16064 #define OUT30                   PID1OUTHHbits.OUT30             // bit 6, shadows bit in PID1OUTHHbits
16065 #define PID1OUT31               PID1OUTHHbits.PID1OUT31         // bit 7, shadows bit in PID1OUTHHbits
16066 #define OUT31                   PID1OUTHHbits.OUT31             // bit 7, shadows bit in PID1OUTHHbits
16067 
16068 #define PID1OUT16               PID1OUTHLbits.PID1OUT16         // bit 0, shadows bit in PID1OUTHLbits
16069 #define OUT16                   PID1OUTHLbits.OUT16             // bit 0, shadows bit in PID1OUTHLbits
16070 #define PID1OUT17               PID1OUTHLbits.PID1OUT17         // bit 1, shadows bit in PID1OUTHLbits
16071 #define OUT17                   PID1OUTHLbits.OUT17             // bit 1, shadows bit in PID1OUTHLbits
16072 #define PID1OUT18               PID1OUTHLbits.PID1OUT18         // bit 2, shadows bit in PID1OUTHLbits
16073 #define OUT18                   PID1OUTHLbits.OUT18             // bit 2, shadows bit in PID1OUTHLbits
16074 #define PID1OUT19               PID1OUTHLbits.PID1OUT19         // bit 3, shadows bit in PID1OUTHLbits
16075 #define OUT19                   PID1OUTHLbits.OUT19             // bit 3, shadows bit in PID1OUTHLbits
16076 #define PID1OUT20               PID1OUTHLbits.PID1OUT20         // bit 4, shadows bit in PID1OUTHLbits
16077 #define OUT20                   PID1OUTHLbits.OUT20             // bit 4, shadows bit in PID1OUTHLbits
16078 #define PID1OUT21               PID1OUTHLbits.PID1OUT21         // bit 5, shadows bit in PID1OUTHLbits
16079 #define OUT21                   PID1OUTHLbits.OUT21             // bit 5, shadows bit in PID1OUTHLbits
16080 #define PID1OUT22               PID1OUTHLbits.PID1OUT22         // bit 6, shadows bit in PID1OUTHLbits
16081 #define OUT22                   PID1OUTHLbits.OUT22             // bit 6, shadows bit in PID1OUTHLbits
16082 #define PID1OUT23               PID1OUTHLbits.PID1OUT23         // bit 7, shadows bit in PID1OUTHLbits
16083 #define OUT23                   PID1OUTHLbits.OUT23             // bit 7, shadows bit in PID1OUTHLbits
16084 
16085 #define PID1OUT8                PID1OUTLHbits.PID1OUT8          // bit 0, shadows bit in PID1OUTLHbits
16086 #define OUT8                    PID1OUTLHbits.OUT8              // bit 0, shadows bit in PID1OUTLHbits
16087 #define PID1OUT9                PID1OUTLHbits.PID1OUT9          // bit 1, shadows bit in PID1OUTLHbits
16088 #define OUT9                    PID1OUTLHbits.OUT9              // bit 1, shadows bit in PID1OUTLHbits
16089 #define PID1OUT10               PID1OUTLHbits.PID1OUT10         // bit 2, shadows bit in PID1OUTLHbits
16090 #define OUT10                   PID1OUTLHbits.OUT10             // bit 2, shadows bit in PID1OUTLHbits
16091 #define PID1OUT11               PID1OUTLHbits.PID1OUT11         // bit 3, shadows bit in PID1OUTLHbits
16092 #define OUT11                   PID1OUTLHbits.OUT11             // bit 3, shadows bit in PID1OUTLHbits
16093 #define PID1OUT12               PID1OUTLHbits.PID1OUT12         // bit 4, shadows bit in PID1OUTLHbits
16094 #define OUT12                   PID1OUTLHbits.OUT12             // bit 4, shadows bit in PID1OUTLHbits
16095 #define PID1OUT13               PID1OUTLHbits.PID1OUT13         // bit 5, shadows bit in PID1OUTLHbits
16096 #define OUT13                   PID1OUTLHbits.OUT13             // bit 5, shadows bit in PID1OUTLHbits
16097 #define PID1OUT14               PID1OUTLHbits.PID1OUT14         // bit 6, shadows bit in PID1OUTLHbits
16098 #define OUT14                   PID1OUTLHbits.OUT14             // bit 6, shadows bit in PID1OUTLHbits
16099 #define PID1OUT15               PID1OUTLHbits.PID1OUT15         // bit 7, shadows bit in PID1OUTLHbits
16100 #define OUT15                   PID1OUTLHbits.OUT15             // bit 7, shadows bit in PID1OUTLHbits
16101 
16102 #define PID1OUT0                PID1OUTLLbits.PID1OUT0          // bit 0, shadows bit in PID1OUTLLbits
16103 #define OUT0                    PID1OUTLLbits.OUT0              // bit 0, shadows bit in PID1OUTLLbits
16104 #define PID1OUT1                PID1OUTLLbits.PID1OUT1          // bit 1, shadows bit in PID1OUTLLbits
16105 #define OUT1                    PID1OUTLLbits.OUT1              // bit 1, shadows bit in PID1OUTLLbits
16106 #define PID1OUT2                PID1OUTLLbits.PID1OUT2          // bit 2, shadows bit in PID1OUTLLbits
16107 #define OUT2                    PID1OUTLLbits.OUT2              // bit 2, shadows bit in PID1OUTLLbits
16108 #define PID1OUT3                PID1OUTLLbits.PID1OUT3          // bit 3, shadows bit in PID1OUTLLbits
16109 #define OUT3                    PID1OUTLLbits.OUT3              // bit 3, shadows bit in PID1OUTLLbits
16110 #define PID1OUT4                PID1OUTLLbits.PID1OUT4          // bit 4, shadows bit in PID1OUTLLbits
16111 #define OUT4                    PID1OUTLLbits.OUT4              // bit 4, shadows bit in PID1OUTLLbits
16112 #define PID1OUT5                PID1OUTLLbits.PID1OUT5          // bit 5, shadows bit in PID1OUTLLbits
16113 #define OUT5                    PID1OUTLLbits.OUT5              // bit 5, shadows bit in PID1OUTLLbits
16114 #define PID1OUT6                PID1OUTLLbits.PID1OUT6          // bit 6, shadows bit in PID1OUTLLbits
16115 #define OUT6                    PID1OUTLLbits.OUT6              // bit 6, shadows bit in PID1OUTLLbits
16116 #define PID1OUT7                PID1OUTLLbits.PID1OUT7          // bit 7, shadows bit in PID1OUTLLbits
16117 #define OUT7                    PID1OUTLLbits.OUT7              // bit 7, shadows bit in PID1OUTLLbits
16118 
16119 #define PID1OUT32               PID1OUTUbits.PID1OUT32          // bit 0, shadows bit in PID1OUTUbits
16120 #define OUT32                   PID1OUTUbits.OUT32              // bit 0, shadows bit in PID1OUTUbits
16121 #define PID1OUT33               PID1OUTUbits.PID1OUT33          // bit 1, shadows bit in PID1OUTUbits
16122 #define OUT33                   PID1OUTUbits.OUT33              // bit 1, shadows bit in PID1OUTUbits
16123 #define PID1OUT34               PID1OUTUbits.PID1OUT34          // bit 2, shadows bit in PID1OUTUbits
16124 #define OUT34                   PID1OUTUbits.OUT34              // bit 2, shadows bit in PID1OUTUbits
16125 #define PID1OUT35               PID1OUTUbits.PID1OUT35          // bit 3, shadows bit in PID1OUTUbits
16126 #define OUT35                   PID1OUTUbits.OUT35              // bit 3, shadows bit in PID1OUTUbits
16127 
16128 #define PID1SET8                PID1SETHbits.PID1SET8           // bit 0, shadows bit in PID1SETHbits
16129 #define SET8                    PID1SETHbits.SET8               // bit 0, shadows bit in PID1SETHbits
16130 #define PID1SET9                PID1SETHbits.PID1SET9           // bit 1, shadows bit in PID1SETHbits
16131 #define SET9                    PID1SETHbits.SET9               // bit 1, shadows bit in PID1SETHbits
16132 #define PID1SET10               PID1SETHbits.PID1SET10          // bit 2, shadows bit in PID1SETHbits
16133 #define SET10                   PID1SETHbits.SET10              // bit 2, shadows bit in PID1SETHbits
16134 #define PID1SET11               PID1SETHbits.PID1SET11          // bit 3, shadows bit in PID1SETHbits
16135 #define SET11                   PID1SETHbits.SET11              // bit 3, shadows bit in PID1SETHbits
16136 #define PID1SET12               PID1SETHbits.PID1SET12          // bit 4, shadows bit in PID1SETHbits
16137 #define SET12                   PID1SETHbits.SET12              // bit 4, shadows bit in PID1SETHbits
16138 #define PID1SET13               PID1SETHbits.PID1SET13          // bit 5, shadows bit in PID1SETHbits
16139 #define SET13                   PID1SETHbits.SET13              // bit 5, shadows bit in PID1SETHbits
16140 #define PID1SET14               PID1SETHbits.PID1SET14          // bit 6, shadows bit in PID1SETHbits
16141 #define SET14                   PID1SETHbits.SET14              // bit 6, shadows bit in PID1SETHbits
16142 #define PID1SET15               PID1SETHbits.PID1SET15          // bit 7, shadows bit in PID1SETHbits
16143 #define SET15                   PID1SETHbits.SET15              // bit 7, shadows bit in PID1SETHbits
16144 
16145 #define PID1SET0                PID1SETLbits.PID1SET0           // bit 0, shadows bit in PID1SETLbits
16146 #define SET0                    PID1SETLbits.SET0               // bit 0, shadows bit in PID1SETLbits
16147 #define PID1SET1                PID1SETLbits.PID1SET1           // bit 1, shadows bit in PID1SETLbits
16148 #define SET1                    PID1SETLbits.SET1               // bit 1, shadows bit in PID1SETLbits
16149 #define PID1SET2                PID1SETLbits.PID1SET2           // bit 2, shadows bit in PID1SETLbits
16150 #define SET2                    PID1SETLbits.SET2               // bit 2, shadows bit in PID1SETLbits
16151 #define PID1SET3                PID1SETLbits.PID1SET3           // bit 3, shadows bit in PID1SETLbits
16152 #define SET3                    PID1SETLbits.SET3               // bit 3, shadows bit in PID1SETLbits
16153 #define PID1SET4                PID1SETLbits.PID1SET4           // bit 4, shadows bit in PID1SETLbits
16154 #define SET4                    PID1SETLbits.SET4               // bit 4, shadows bit in PID1SETLbits
16155 #define PID1SET5                PID1SETLbits.PID1SET5           // bit 5, shadows bit in PID1SETLbits
16156 #define SET5                    PID1SETLbits.SET5               // bit 5, shadows bit in PID1SETLbits
16157 #define PID1SET6                PID1SETLbits.PID1SET6           // bit 6, shadows bit in PID1SETLbits
16158 #define SET6                    PID1SETLbits.SET6               // bit 6, shadows bit in PID1SETLbits
16159 #define PID1SET7                PID1SETLbits.PID1SET7           // bit 7, shadows bit in PID1SETLbits
16160 #define SET7                    PID1SETLbits.SET7               // bit 7, shadows bit in PID1SETLbits
16161 
16162 #define PID1Z18                 PID1Z1Hbits.PID1Z18             // bit 0, shadows bit in PID1Z1Hbits
16163 #define Z18                     PID1Z1Hbits.Z18                 // bit 0, shadows bit in PID1Z1Hbits
16164 #define PID1Z19                 PID1Z1Hbits.PID1Z19             // bit 1, shadows bit in PID1Z1Hbits
16165 #define Z19                     PID1Z1Hbits.Z19                 // bit 1, shadows bit in PID1Z1Hbits
16166 #define PID1Z110                PID1Z1Hbits.PID1Z110            // bit 2, shadows bit in PID1Z1Hbits
16167 #define Z110                    PID1Z1Hbits.Z110                // bit 2, shadows bit in PID1Z1Hbits
16168 #define PID1Z111                PID1Z1Hbits.PID1Z111            // bit 3, shadows bit in PID1Z1Hbits
16169 #define Z111                    PID1Z1Hbits.Z111                // bit 3, shadows bit in PID1Z1Hbits
16170 #define PID1Z112                PID1Z1Hbits.PID1Z112            // bit 4, shadows bit in PID1Z1Hbits
16171 #define Z112                    PID1Z1Hbits.Z112                // bit 4, shadows bit in PID1Z1Hbits
16172 #define PID1Z113                PID1Z1Hbits.PID1Z113            // bit 5, shadows bit in PID1Z1Hbits
16173 #define Z113                    PID1Z1Hbits.Z113                // bit 5, shadows bit in PID1Z1Hbits
16174 #define PID1Z114                PID1Z1Hbits.PID1Z114            // bit 6, shadows bit in PID1Z1Hbits
16175 #define Z114                    PID1Z1Hbits.Z114                // bit 6, shadows bit in PID1Z1Hbits
16176 #define PID1Z115                PID1Z1Hbits.PID1Z115            // bit 7, shadows bit in PID1Z1Hbits
16177 #define Z115                    PID1Z1Hbits.Z115                // bit 7, shadows bit in PID1Z1Hbits
16178 
16179 #define PID1Z10                 PID1Z1Lbits.PID1Z10             // bit 0, shadows bit in PID1Z1Lbits
16180 #define Z10                     PID1Z1Lbits.Z10                 // bit 0, shadows bit in PID1Z1Lbits
16181 #define PID1Z11                 PID1Z1Lbits.PID1Z11             // bit 1, shadows bit in PID1Z1Lbits
16182 #define Z11                     PID1Z1Lbits.Z11                 // bit 1, shadows bit in PID1Z1Lbits
16183 #define PID1Z12                 PID1Z1Lbits.PID1Z12             // bit 2, shadows bit in PID1Z1Lbits
16184 #define Z12                     PID1Z1Lbits.Z12                 // bit 2, shadows bit in PID1Z1Lbits
16185 #define PID1Z13                 PID1Z1Lbits.PID1Z13             // bit 3, shadows bit in PID1Z1Lbits
16186 #define Z13                     PID1Z1Lbits.Z13                 // bit 3, shadows bit in PID1Z1Lbits
16187 #define PID1Z14                 PID1Z1Lbits.PID1Z14             // bit 4, shadows bit in PID1Z1Lbits
16188 #define Z14                     PID1Z1Lbits.Z14                 // bit 4, shadows bit in PID1Z1Lbits
16189 #define PID1Z15                 PID1Z1Lbits.PID1Z15             // bit 5, shadows bit in PID1Z1Lbits
16190 #define Z15                     PID1Z1Lbits.Z15                 // bit 5, shadows bit in PID1Z1Lbits
16191 #define PID1Z16                 PID1Z1Lbits.PID1Z16             // bit 6, shadows bit in PID1Z1Lbits
16192 #define Z16                     PID1Z1Lbits.Z16                 // bit 6, shadows bit in PID1Z1Lbits
16193 #define PID1Z17                 PID1Z1Lbits.PID1Z17             // bit 7, shadows bit in PID1Z1Lbits
16194 #define Z17                     PID1Z1Lbits.Z17                 // bit 7, shadows bit in PID1Z1Lbits
16195 
16196 #define PID1Z116                PID1Z1Ubits.PID1Z116            // bit 0, shadows bit in PID1Z1Ubits
16197 #define Z116                    PID1Z1Ubits.Z116                // bit 0, shadows bit in PID1Z1Ubits
16198 
16199 #define PID1Z28                 PID1Z2Hbits.PID1Z28             // bit 0, shadows bit in PID1Z2Hbits
16200 #define Z28                     PID1Z2Hbits.Z28                 // bit 0, shadows bit in PID1Z2Hbits
16201 #define PID1Z29                 PID1Z2Hbits.PID1Z29             // bit 1, shadows bit in PID1Z2Hbits
16202 #define Z29                     PID1Z2Hbits.Z29                 // bit 1, shadows bit in PID1Z2Hbits
16203 #define PID1Z210                PID1Z2Hbits.PID1Z210            // bit 2, shadows bit in PID1Z2Hbits
16204 #define Z210                    PID1Z2Hbits.Z210                // bit 2, shadows bit in PID1Z2Hbits
16205 #define PID1Z211                PID1Z2Hbits.PID1Z211            // bit 3, shadows bit in PID1Z2Hbits
16206 #define Z211                    PID1Z2Hbits.Z211                // bit 3, shadows bit in PID1Z2Hbits
16207 #define PID1Z212                PID1Z2Hbits.PID1Z212            // bit 4, shadows bit in PID1Z2Hbits
16208 #define Z212                    PID1Z2Hbits.Z212                // bit 4, shadows bit in PID1Z2Hbits
16209 #define PID1Z213                PID1Z2Hbits.PID1Z213            // bit 5, shadows bit in PID1Z2Hbits
16210 #define Z213                    PID1Z2Hbits.Z213                // bit 5, shadows bit in PID1Z2Hbits
16211 #define PID1Z214                PID1Z2Hbits.PID1Z214            // bit 6, shadows bit in PID1Z2Hbits
16212 #define Z214                    PID1Z2Hbits.Z214                // bit 6, shadows bit in PID1Z2Hbits
16213 #define PID1Z215                PID1Z2Hbits.PID1Z215            // bit 7, shadows bit in PID1Z2Hbits
16214 #define Z215                    PID1Z2Hbits.Z215                // bit 7, shadows bit in PID1Z2Hbits
16215 
16216 #define PID1Z20                 PID1Z2Lbits.PID1Z20             // bit 0, shadows bit in PID1Z2Lbits
16217 #define Z20                     PID1Z2Lbits.Z20                 // bit 0, shadows bit in PID1Z2Lbits
16218 #define PID1Z21                 PID1Z2Lbits.PID1Z21             // bit 1, shadows bit in PID1Z2Lbits
16219 #define Z21                     PID1Z2Lbits.Z21                 // bit 1, shadows bit in PID1Z2Lbits
16220 #define PID1Z22                 PID1Z2Lbits.PID1Z22             // bit 2, shadows bit in PID1Z2Lbits
16221 #define Z22                     PID1Z2Lbits.Z22                 // bit 2, shadows bit in PID1Z2Lbits
16222 #define PID1Z23                 PID1Z2Lbits.PID1Z23             // bit 3, shadows bit in PID1Z2Lbits
16223 #define Z23                     PID1Z2Lbits.Z23                 // bit 3, shadows bit in PID1Z2Lbits
16224 #define PID1Z24                 PID1Z2Lbits.PID1Z24             // bit 4, shadows bit in PID1Z2Lbits
16225 #define Z24                     PID1Z2Lbits.Z24                 // bit 4, shadows bit in PID1Z2Lbits
16226 #define PID1Z25                 PID1Z2Lbits.PID1Z25             // bit 5, shadows bit in PID1Z2Lbits
16227 #define Z25                     PID1Z2Lbits.Z25                 // bit 5, shadows bit in PID1Z2Lbits
16228 #define PID1Z26                 PID1Z2Lbits.PID1Z26             // bit 6, shadows bit in PID1Z2Lbits
16229 #define Z26                     PID1Z2Lbits.Z26                 // bit 6, shadows bit in PID1Z2Lbits
16230 #define PID1Z27                 PID1Z2Lbits.PID1Z27             // bit 7, shadows bit in PID1Z2Lbits
16231 #define Z27                     PID1Z2Lbits.Z27                 // bit 7, shadows bit in PID1Z2Lbits
16232 
16233 #define PID1Z216                PID1Z2Ubits.PID1Z216            // bit 0, shadows bit in PID1Z2Ubits
16234 #define Z216                    PID1Z2Ubits.Z216                // bit 0, shadows bit in PID1Z2Ubits
16235 
16236 #define TMR1IE                  PIE1bits.TMR1IE                 // bit 0
16237 #define TMR2IE                  PIE1bits.TMR2IE                 // bit 1
16238 #define CCP1IE                  PIE1bits.CCP1IE                 // bit 2
16239 #define SSP1IE                  PIE1bits.SSP1IE                 // bit 3
16240 #define TXIE                    PIE1bits.TXIE                   // bit 4
16241 #define RCIE                    PIE1bits.RCIE                   // bit 5
16242 #define ADIE                    PIE1bits.ADIE                   // bit 6
16243 #define TMR1GIE                 PIE1bits.TMR1GIE                // bit 7
16244 
16245 #define CCP2IE                  PIE2bits.CCP2IE                 // bit 0
16246 #define TMR4IE                  PIE2bits.TMR4IE                 // bit 1
16247 #define TMR6IE                  PIE2bits.TMR6IE                 // bit 2
16248 #define BCL1IE                  PIE2bits.BCL1IE                 // bit 3
16249 #define C1IE                    PIE2bits.C1IE                   // bit 5
16250 #define C2IE                    PIE2bits.C2IE                   // bit 6
16251 
16252 #define CLC1IE                  PIE3bits.CLC1IE                 // bit 0
16253 #define CLC2IE                  PIE3bits.CLC2IE                 // bit 1
16254 #define ZCDIE                   PIE3bits.ZCDIE                  // bit 4
16255 #define CWGIE                   PIE3bits.CWGIE                  // bit 5
16256 
16257 #define SMT1IE                  PIE4bits.SMT1IE                 // bit 0
16258 #define SMT1PRAIE               PIE4bits.SMT1PRAIE              // bit 1
16259 #define SMT1PWAIE               PIE4bits.SMT1PWAIE              // bit 2
16260 #define SMT2IE                  PIE4bits.SMT2IE                 // bit 3
16261 #define SMT2PRAIE               PIE4bits.SMT2PRAIE              // bit 4
16262 #define SMT2PWAIE               PIE4bits.SMT2PWAIE              // bit 5
16263 #define CRCIE                   PIE4bits.CRCIE                  // bit 6
16264 #define SCANIE                  PIE4bits.SCANIE                 // bit 7
16265 
16266 #define PID1DIE                 PIE5bits.PID1DIE                // bit 0
16267 #define PID1EIE                 PIE5bits.PID1EIE                // bit 1
16268 #define AT1IE                   PIE5bits.AT1IE                  // bit 2
16269 #define TMR5IE                  PIE5bits.TMR5IE                 // bit 4
16270 #define TMR5GIE                 PIE5bits.TMR5GIE                // bit 5
16271 #define TMR3IE                  PIE5bits.TMR3IE                 // bit 6
16272 #define TMR3GIE                 PIE5bits.TMR3GIE                // bit 7
16273 
16274 #define TMR1IF                  PIR1bits.TMR1IF                 // bit 0
16275 #define TMR2IF                  PIR1bits.TMR2IF                 // bit 1
16276 #define CCP1IF                  PIR1bits.CCP1IF                 // bit 2
16277 #define SSP1IF                  PIR1bits.SSP1IF                 // bit 3
16278 #define TXIF                    PIR1bits.TXIF                   // bit 4
16279 #define RCIF                    PIR1bits.RCIF                   // bit 5
16280 #define ADIF                    PIR1bits.ADIF                   // bit 6
16281 #define TMR1GIF                 PIR1bits.TMR1GIF                // bit 7
16282 
16283 #define CCP2IF                  PIR2bits.CCP2IF                 // bit 0
16284 #define TMR4IF                  PIR2bits.TMR4IF                 // bit 1
16285 #define TMR6IF                  PIR2bits.TMR6IF                 // bit 2
16286 #define BCL1IF                  PIR2bits.BCL1IF                 // bit 3
16287 #define C1IF                    PIR2bits.C1IF                   // bit 5
16288 #define C2IF                    PIR2bits.C2IF                   // bit 6
16289 
16290 #define CLC1IF                  PIR3bits.CLC1IF                 // bit 0
16291 #define CLC2IF                  PIR3bits.CLC2IF                 // bit 1
16292 #define ZCDIF                   PIR3bits.ZCDIF                  // bit 4
16293 #define CWGIF                   PIR3bits.CWGIF                  // bit 5
16294 
16295 #define SMT1IF                  PIR4bits.SMT1IF                 // bit 0
16296 #define SMT1PRAIF               PIR4bits.SMT1PRAIF              // bit 1
16297 #define SMT1PWAIF               PIR4bits.SMT1PWAIF              // bit 2
16298 #define SMT2IF                  PIR4bits.SMT2IF                 // bit 3
16299 #define SMT2PRAIF               PIR4bits.SMT2PRAIF              // bit 4
16300 #define SMT2PWAIF               PIR4bits.SMT2PWAIF              // bit 5
16301 #define CRCIF                   PIR4bits.CRCIF                  // bit 6
16302 #define SCANIF                  PIR4bits.SCANIF                 // bit 7
16303 
16304 #define PID1DIF                 PIR5bits.PID1DIF                // bit 0
16305 #define PID1EIF                 PIR5bits.PID1EIF                // bit 1
16306 #define AT1IF                   PIR5bits.AT1IF                  // bit 2
16307 #define TMR5IF                  PIR5bits.TMR5IF                 // bit 4
16308 #define TMR5GIF                 PIR5bits.TMR5GIF                // bit 5
16309 #define TMR3IF                  PIR5bits.TMR3IF                 // bit 6
16310 #define TMR3GIF                 PIR5bits.TMR3GIF                // bit 7
16311 
16312 #define RD                      PMCON1bits.RD                   // bit 0
16313 #define WR                      PMCON1bits.WR                   // bit 1
16314 #define WREN                    PMCON1bits.WREN                 // bit 2
16315 #define WRERR                   PMCON1bits.WRERR                // bit 3
16316 #define FREE                    PMCON1bits.FREE                 // bit 4
16317 #define LWLO                    PMCON1bits.LWLO                 // bit 5
16318 #define CFGS                    PMCON1bits.CFGS                 // bit 6
16319 
16320 #define RA0                     PORTAbits.RA0                   // bit 0
16321 #define RA1                     PORTAbits.RA1                   // bit 1
16322 #define RA2                     PORTAbits.RA2                   // bit 2
16323 #define RA3                     PORTAbits.RA3                   // bit 3
16324 #define RA4                     PORTAbits.RA4                   // bit 4
16325 #define RA5                     PORTAbits.RA5                   // bit 5
16326 
16327 #define RB4                     PORTBbits.RB4                   // bit 4
16328 #define RB5                     PORTBbits.RB5                   // bit 5
16329 #define RB6                     PORTBbits.RB6                   // bit 6
16330 #define RB7                     PORTBbits.RB7                   // bit 7
16331 
16332 #define RC0                     PORTCbits.RC0                   // bit 0
16333 #define RC1                     PORTCbits.RC1                   // bit 1
16334 #define RC2                     PORTCbits.RC2                   // bit 2
16335 #define RC3                     PORTCbits.RC3                   // bit 3
16336 #define RC4                     PORTCbits.RC4                   // bit 4
16337 #define RC5                     PORTCbits.RC5                   // bit 5
16338 #define RC6                     PORTCbits.RC6                   // bit 6
16339 #define RC7                     PORTCbits.RC7                   // bit 7
16340 
16341 #define PPSLOCKED               PPSLOCKbits.PPSLOCKED           // bit 0
16342 
16343 #define DC2                     PWM3DCHbits.DC2                 // bit 0, shadows bit in PWM3DCHbits
16344 #define PWM3DC2                 PWM3DCHbits.PWM3DC2             // bit 0, shadows bit in PWM3DCHbits
16345 #define PWMPW2                  PWM3DCHbits.PWMPW2              // bit 0, shadows bit in PWM3DCHbits
16346 #define DC3                     PWM3DCHbits.DC3                 // bit 1, shadows bit in PWM3DCHbits
16347 #define PWM3DC3                 PWM3DCHbits.PWM3DC3             // bit 1, shadows bit in PWM3DCHbits
16348 #define PWMPW3                  PWM3DCHbits.PWMPW3              // bit 1, shadows bit in PWM3DCHbits
16349 #define DC4                     PWM3DCHbits.DC4                 // bit 2, shadows bit in PWM3DCHbits
16350 #define PWM3DC4                 PWM3DCHbits.PWM3DC4             // bit 2, shadows bit in PWM3DCHbits
16351 #define PWMPW4                  PWM3DCHbits.PWMPW4              // bit 2, shadows bit in PWM3DCHbits
16352 #define DC5                     PWM3DCHbits.DC5                 // bit 3, shadows bit in PWM3DCHbits
16353 #define PWM3DC5                 PWM3DCHbits.PWM3DC5             // bit 3, shadows bit in PWM3DCHbits
16354 #define PWMPW5                  PWM3DCHbits.PWMPW5              // bit 3, shadows bit in PWM3DCHbits
16355 #define DC6                     PWM3DCHbits.DC6                 // bit 4, shadows bit in PWM3DCHbits
16356 #define PWM3DC6                 PWM3DCHbits.PWM3DC6             // bit 4, shadows bit in PWM3DCHbits
16357 #define PWMPW6                  PWM3DCHbits.PWMPW6              // bit 4, shadows bit in PWM3DCHbits
16358 #define DC7                     PWM3DCHbits.DC7                 // bit 5, shadows bit in PWM3DCHbits
16359 #define PWM3DC7                 PWM3DCHbits.PWM3DC7             // bit 5, shadows bit in PWM3DCHbits
16360 #define PWMPW7                  PWM3DCHbits.PWMPW7              // bit 5, shadows bit in PWM3DCHbits
16361 #define DC8                     PWM3DCHbits.DC8                 // bit 6, shadows bit in PWM3DCHbits
16362 #define PWM3DC8                 PWM3DCHbits.PWM3DC8             // bit 6, shadows bit in PWM3DCHbits
16363 #define PWMPW8                  PWM3DCHbits.PWMPW8              // bit 6, shadows bit in PWM3DCHbits
16364 #define DC9                     PWM3DCHbits.DC9                 // bit 7, shadows bit in PWM3DCHbits
16365 #define PWM3DC9                 PWM3DCHbits.PWM3DC9             // bit 7, shadows bit in PWM3DCHbits
16366 #define PWMPW9                  PWM3DCHbits.PWMPW9              // bit 7, shadows bit in PWM3DCHbits
16367 
16368 #define DC0                     PWM3DCLbits.DC0                 // bit 6, shadows bit in PWM3DCLbits
16369 #define PWM3DC0                 PWM3DCLbits.PWM3DC0             // bit 6, shadows bit in PWM3DCLbits
16370 #define PWMPW0                  PWM3DCLbits.PWMPW0              // bit 6, shadows bit in PWM3DCLbits
16371 #define DC1                     PWM3DCLbits.DC1                 // bit 7, shadows bit in PWM3DCLbits
16372 #define PWM3DC1                 PWM3DCLbits.PWM3DC1             // bit 7, shadows bit in PWM3DCLbits
16373 #define PWMPW1                  PWM3DCLbits.PWMPW1              // bit 7, shadows bit in PWM3DCLbits
16374 
16375 #define RA0PPS0                 RA0PPSbits.RA0PPS0              // bit 0
16376 #define RA0PPS1                 RA0PPSbits.RA0PPS1              // bit 1
16377 #define RA0PPS2                 RA0PPSbits.RA0PPS2              // bit 2
16378 #define RA0PPS3                 RA0PPSbits.RA0PPS3              // bit 3
16379 #define RA0PPS4                 RA0PPSbits.RA0PPS4              // bit 4
16380 
16381 #define RA1PPS0                 RA1PPSbits.RA1PPS0              // bit 0
16382 #define RA1PPS1                 RA1PPSbits.RA1PPS1              // bit 1
16383 #define RA1PPS2                 RA1PPSbits.RA1PPS2              // bit 2
16384 #define RA1PPS3                 RA1PPSbits.RA1PPS3              // bit 3
16385 #define RA1PPS4                 RA1PPSbits.RA1PPS4              // bit 4
16386 
16387 #define RA2PPS0                 RA2PPSbits.RA2PPS0              // bit 0
16388 #define RA2PPS1                 RA2PPSbits.RA2PPS1              // bit 1
16389 #define RA2PPS2                 RA2PPSbits.RA2PPS2              // bit 2
16390 #define RA2PPS3                 RA2PPSbits.RA2PPS3              // bit 3
16391 #define RA2PPS4                 RA2PPSbits.RA2PPS4              // bit 4
16392 
16393 #define RA4PPS0                 RA4PPSbits.RA4PPS0              // bit 0
16394 #define RA4PPS1                 RA4PPSbits.RA4PPS1              // bit 1
16395 #define RA4PPS2                 RA4PPSbits.RA4PPS2              // bit 2
16396 #define RA4PPS3                 RA4PPSbits.RA4PPS3              // bit 3
16397 #define RA4PPS4                 RA4PPSbits.RA4PPS4              // bit 4
16398 
16399 #define RA5PPS0                 RA5PPSbits.RA5PPS0              // bit 0
16400 #define RA5PPS1                 RA5PPSbits.RA5PPS1              // bit 1
16401 #define RA5PPS2                 RA5PPSbits.RA5PPS2              // bit 2
16402 #define RA5PPS3                 RA5PPSbits.RA5PPS3              // bit 3
16403 #define RA5PPS4                 RA5PPSbits.RA5PPS4              // bit 4
16404 
16405 #define RB4PPS0                 RB4PPSbits.RB4PPS0              // bit 0
16406 #define RB4PPS1                 RB4PPSbits.RB4PPS1              // bit 1
16407 #define RB4PPS2                 RB4PPSbits.RB4PPS2              // bit 2
16408 #define RB4PPS3                 RB4PPSbits.RB4PPS3              // bit 3
16409 #define RB4PPS4                 RB4PPSbits.RB4PPS4              // bit 4
16410 
16411 #define RB5PPS0                 RB5PPSbits.RB5PPS0              // bit 0
16412 #define RB5PPS1                 RB5PPSbits.RB5PPS1              // bit 1
16413 #define RB5PPS2                 RB5PPSbits.RB5PPS2              // bit 2
16414 #define RB5PPS3                 RB5PPSbits.RB5PPS3              // bit 3
16415 #define RB5PPS4                 RB5PPSbits.RB5PPS4              // bit 4
16416 
16417 #define RB6PPS0                 RB6PPSbits.RB6PPS0              // bit 0
16418 #define RB6PPS1                 RB6PPSbits.RB6PPS1              // bit 1
16419 #define RB6PPS2                 RB6PPSbits.RB6PPS2              // bit 2
16420 #define RB6PPS3                 RB6PPSbits.RB6PPS3              // bit 3
16421 #define RB6PPS4                 RB6PPSbits.RB6PPS4              // bit 4
16422 
16423 #define RB7PPS0                 RB7PPSbits.RB7PPS0              // bit 0
16424 #define RB7PPS1                 RB7PPSbits.RB7PPS1              // bit 1
16425 #define RB7PPS2                 RB7PPSbits.RB7PPS2              // bit 2
16426 #define RB7PPS3                 RB7PPSbits.RB7PPS3              // bit 3
16427 #define RB7PPS4                 RB7PPSbits.RB7PPS4              // bit 4
16428 
16429 #define RC0PPS0                 RC0PPSbits.RC0PPS0              // bit 0
16430 #define RC0PPS1                 RC0PPSbits.RC0PPS1              // bit 1
16431 #define RC0PPS2                 RC0PPSbits.RC0PPS2              // bit 2
16432 #define RC0PPS3                 RC0PPSbits.RC0PPS3              // bit 3
16433 #define RC0PPS4                 RC0PPSbits.RC0PPS4              // bit 4
16434 
16435 #define RC1PPS0                 RC1PPSbits.RC1PPS0              // bit 0
16436 #define RC1PPS1                 RC1PPSbits.RC1PPS1              // bit 1
16437 #define RC1PPS2                 RC1PPSbits.RC1PPS2              // bit 2
16438 #define RC1PPS3                 RC1PPSbits.RC1PPS3              // bit 3
16439 #define RC1PPS4                 RC1PPSbits.RC1PPS4              // bit 4
16440 
16441 #define RX9D                    RC1STAbits.RX9D                 // bit 0
16442 #define OERR                    RC1STAbits.OERR                 // bit 1
16443 #define FERR                    RC1STAbits.FERR                 // bit 2
16444 #define ADDEN                   RC1STAbits.ADDEN                // bit 3
16445 #define CREN                    RC1STAbits.CREN                 // bit 4
16446 #define SREN                    RC1STAbits.SREN                 // bit 5
16447 #define RX9                     RC1STAbits.RX9                  // bit 6
16448 #define SPEN                    RC1STAbits.SPEN                 // bit 7
16449 
16450 #define RC2PPS0                 RC2PPSbits.RC2PPS0              // bit 0
16451 #define RC2PPS1                 RC2PPSbits.RC2PPS1              // bit 1
16452 #define RC2PPS2                 RC2PPSbits.RC2PPS2              // bit 2
16453 #define RC2PPS3                 RC2PPSbits.RC2PPS3              // bit 3
16454 #define RC2PPS4                 RC2PPSbits.RC2PPS4              // bit 4
16455 
16456 #define RC3PPS0                 RC3PPSbits.RC3PPS0              // bit 0
16457 #define RC3PPS1                 RC3PPSbits.RC3PPS1              // bit 1
16458 #define RC3PPS2                 RC3PPSbits.RC3PPS2              // bit 2
16459 #define RC3PPS3                 RC3PPSbits.RC3PPS3              // bit 3
16460 #define RC3PPS4                 RC3PPSbits.RC3PPS4              // bit 4
16461 
16462 #define RC4PPS0                 RC4PPSbits.RC4PPS0              // bit 0
16463 #define RC4PPS1                 RC4PPSbits.RC4PPS1              // bit 1
16464 #define RC4PPS2                 RC4PPSbits.RC4PPS2              // bit 2
16465 #define RC4PPS3                 RC4PPSbits.RC4PPS3              // bit 3
16466 #define RC4PPS4                 RC4PPSbits.RC4PPS4              // bit 4
16467 
16468 #define RC5PPS0                 RC5PPSbits.RC5PPS0              // bit 0
16469 #define RC5PPS1                 RC5PPSbits.RC5PPS1              // bit 1
16470 #define RC5PPS2                 RC5PPSbits.RC5PPS2              // bit 2
16471 #define RC5PPS3                 RC5PPSbits.RC5PPS3              // bit 3
16472 #define RC5PPS4                 RC5PPSbits.RC5PPS4              // bit 4
16473 
16474 #define RC6PPS0                 RC6PPSbits.RC6PPS0              // bit 0
16475 #define RC6PPS1                 RC6PPSbits.RC6PPS1              // bit 1
16476 #define RC6PPS2                 RC6PPSbits.RC6PPS2              // bit 2
16477 #define RC6PPS3                 RC6PPSbits.RC6PPS3              // bit 3
16478 #define RC6PPS4                 RC6PPSbits.RC6PPS4              // bit 4
16479 
16480 #define RC7PPS0                 RC7PPSbits.RC7PPS0              // bit 0
16481 #define RC7PPS1                 RC7PPSbits.RC7PPS1              // bit 1
16482 #define RC7PPS2                 RC7PPSbits.RC7PPS2              // bit 2
16483 #define RC7PPS3                 RC7PPSbits.RC7PPS3              // bit 3
16484 #define RC7PPS4                 RC7PPSbits.RC7PPS4              // bit 4
16485 
16486 #define RXPPS0                  RXPPSbits.RXPPS0                // bit 0
16487 #define RXPPS1                  RXPPSbits.RXPPS1                // bit 1
16488 #define RXPPS2                  RXPPSbits.RXPPS2                // bit 2
16489 #define RXPPS3                  RXPPSbits.RXPPS3                // bit 3
16490 #define RXPPS4                  RXPPSbits.RXPPS4                // bit 4
16491 
16492 #define HADR8                   SCANHADRHbits.HADR8             // bit 0, shadows bit in SCANHADRHbits
16493 #define SCANHADR8               SCANHADRHbits.SCANHADR8         // bit 0, shadows bit in SCANHADRHbits
16494 #define HADR9                   SCANHADRHbits.HADR9             // bit 1, shadows bit in SCANHADRHbits
16495 #define SCANHADR9               SCANHADRHbits.SCANHADR9         // bit 1, shadows bit in SCANHADRHbits
16496 #define HADR10                  SCANHADRHbits.HADR10            // bit 2, shadows bit in SCANHADRHbits
16497 #define SCANHADR10              SCANHADRHbits.SCANHADR10        // bit 2, shadows bit in SCANHADRHbits
16498 #define HADR11                  SCANHADRHbits.HADR11            // bit 3, shadows bit in SCANHADRHbits
16499 #define SCANHADR11              SCANHADRHbits.SCANHADR11        // bit 3, shadows bit in SCANHADRHbits
16500 #define HADR12                  SCANHADRHbits.HADR12            // bit 4, shadows bit in SCANHADRHbits
16501 #define SCANHADR12              SCANHADRHbits.SCANHADR12        // bit 4, shadows bit in SCANHADRHbits
16502 #define HADR13                  SCANHADRHbits.HADR13            // bit 5, shadows bit in SCANHADRHbits
16503 #define SCANHADR13              SCANHADRHbits.SCANHADR13        // bit 5, shadows bit in SCANHADRHbits
16504 #define HADR14                  SCANHADRHbits.HADR14            // bit 6, shadows bit in SCANHADRHbits
16505 #define SCANHADR14              SCANHADRHbits.SCANHADR14        // bit 6, shadows bit in SCANHADRHbits
16506 #define HADR15                  SCANHADRHbits.HADR15            // bit 7, shadows bit in SCANHADRHbits
16507 #define SCANHADR15              SCANHADRHbits.SCANHADR15        // bit 7, shadows bit in SCANHADRHbits
16508 
16509 #define HADR0                   SCANHADRLbits.HADR0             // bit 0, shadows bit in SCANHADRLbits
16510 #define SCANHADR0               SCANHADRLbits.SCANHADR0         // bit 0, shadows bit in SCANHADRLbits
16511 #define HADR1                   SCANHADRLbits.HADR1             // bit 1, shadows bit in SCANHADRLbits
16512 #define SCANHADR1               SCANHADRLbits.SCANHADR1         // bit 1, shadows bit in SCANHADRLbits
16513 #define HARD2                   SCANHADRLbits.HARD2             // bit 2, shadows bit in SCANHADRLbits
16514 #define SCANHADR2               SCANHADRLbits.SCANHADR2         // bit 2, shadows bit in SCANHADRLbits
16515 #define HADR3                   SCANHADRLbits.HADR3             // bit 3, shadows bit in SCANHADRLbits
16516 #define SCANHADR3               SCANHADRLbits.SCANHADR3         // bit 3, shadows bit in SCANHADRLbits
16517 #define HADR4                   SCANHADRLbits.HADR4             // bit 4, shadows bit in SCANHADRLbits
16518 #define SCANHADR4               SCANHADRLbits.SCANHADR4         // bit 4, shadows bit in SCANHADRLbits
16519 #define HADR5                   SCANHADRLbits.HADR5             // bit 5, shadows bit in SCANHADRLbits
16520 #define SCANHADR5               SCANHADRLbits.SCANHADR5         // bit 5, shadows bit in SCANHADRLbits
16521 #define HADR6                   SCANHADRLbits.HADR6             // bit 6, shadows bit in SCANHADRLbits
16522 #define SCANHADR6               SCANHADRLbits.SCANHADR6         // bit 6, shadows bit in SCANHADRLbits
16523 #define HADR7                   SCANHADRLbits.HADR7             // bit 7, shadows bit in SCANHADRLbits
16524 #define SCANHADR7               SCANHADRLbits.SCANHADR7         // bit 7, shadows bit in SCANHADRLbits
16525 
16526 #define LADR8                   SCANLADRHbits.LADR8             // bit 0, shadows bit in SCANLADRHbits
16527 #define SCANLADR8               SCANLADRHbits.SCANLADR8         // bit 0, shadows bit in SCANLADRHbits
16528 #define LADR9                   SCANLADRHbits.LADR9             // bit 1, shadows bit in SCANLADRHbits
16529 #define SCANLADR9               SCANLADRHbits.SCANLADR9         // bit 1, shadows bit in SCANLADRHbits
16530 #define LADR10                  SCANLADRHbits.LADR10            // bit 2, shadows bit in SCANLADRHbits
16531 #define SCANLADR10              SCANLADRHbits.SCANLADR10        // bit 2, shadows bit in SCANLADRHbits
16532 #define LADR11                  SCANLADRHbits.LADR11            // bit 3, shadows bit in SCANLADRHbits
16533 #define SCANLADR11              SCANLADRHbits.SCANLADR11        // bit 3, shadows bit in SCANLADRHbits
16534 #define LADR12                  SCANLADRHbits.LADR12            // bit 4, shadows bit in SCANLADRHbits
16535 #define SCANLADR12              SCANLADRHbits.SCANLADR12        // bit 4, shadows bit in SCANLADRHbits
16536 #define LADR13                  SCANLADRHbits.LADR13            // bit 5, shadows bit in SCANLADRHbits
16537 #define SCANLADR13              SCANLADRHbits.SCANLADR13        // bit 5, shadows bit in SCANLADRHbits
16538 #define LADR14                  SCANLADRHbits.LADR14            // bit 6, shadows bit in SCANLADRHbits
16539 #define SCANLADR14              SCANLADRHbits.SCANLADR14        // bit 6, shadows bit in SCANLADRHbits
16540 #define LADR15                  SCANLADRHbits.LADR15            // bit 7, shadows bit in SCANLADRHbits
16541 #define SCANLADR15              SCANLADRHbits.SCANLADR15        // bit 7, shadows bit in SCANLADRHbits
16542 
16543 #define LDAR0                   SCANLADRLbits.LDAR0             // bit 0, shadows bit in SCANLADRLbits
16544 #define SCANLADR0               SCANLADRLbits.SCANLADR0         // bit 0, shadows bit in SCANLADRLbits
16545 #define LDAR1                   SCANLADRLbits.LDAR1             // bit 1, shadows bit in SCANLADRLbits
16546 #define SCANLADR1               SCANLADRLbits.SCANLADR1         // bit 1, shadows bit in SCANLADRLbits
16547 #define LADR2                   SCANLADRLbits.LADR2             // bit 2, shadows bit in SCANLADRLbits
16548 #define SCANLADR2               SCANLADRLbits.SCANLADR2         // bit 2, shadows bit in SCANLADRLbits
16549 #define LADR3                   SCANLADRLbits.LADR3             // bit 3, shadows bit in SCANLADRLbits
16550 #define SCANLADR3               SCANLADRLbits.SCANLADR3         // bit 3, shadows bit in SCANLADRLbits
16551 #define LADR4                   SCANLADRLbits.LADR4             // bit 4, shadows bit in SCANLADRLbits
16552 #define SCANLADR4               SCANLADRLbits.SCANLADR4         // bit 4, shadows bit in SCANLADRLbits
16553 #define LADR5                   SCANLADRLbits.LADR5             // bit 5, shadows bit in SCANLADRLbits
16554 #define SCANLADR5               SCANLADRLbits.SCANLADR5         // bit 5, shadows bit in SCANLADRLbits
16555 #define LADR6                   SCANLADRLbits.LADR6             // bit 6, shadows bit in SCANLADRLbits
16556 #define SCANLADR6               SCANLADRLbits.SCANLADR6         // bit 6, shadows bit in SCANLADRLbits
16557 #define LADR7                   SCANLADRLbits.LADR7             // bit 7, shadows bit in SCANLADRLbits
16558 #define SCANLADR7               SCANLADRLbits.SCANLADR7         // bit 7, shadows bit in SCANLADRLbits
16559 
16560 #define TSEL0                   SCANTRIGbits.TSEL0              // bit 0, shadows bit in SCANTRIGbits
16561 #define SCANTSEL0               SCANTRIGbits.SCANTSEL0          // bit 0, shadows bit in SCANTRIGbits
16562 #define TSEL1                   SCANTRIGbits.TSEL1              // bit 1, shadows bit in SCANTRIGbits
16563 #define SCANTSEL1               SCANTRIGbits.SCANTSEL1          // bit 1, shadows bit in SCANTRIGbits
16564 #define TSEL2                   SCANTRIGbits.TSEL2              // bit 2, shadows bit in SCANTRIGbits
16565 #define SCANTSEL2               SCANTRIGbits.SCANTSEL2          // bit 2, shadows bit in SCANTRIGbits
16566 #define TSEL3                   SCANTRIGbits.TSEL3              // bit 3, shadows bit in SCANTRIGbits
16567 #define SCANTSEL3               SCANTRIGbits.SCANTSEL3          // bit 3, shadows bit in SCANTRIGbits
16568 
16569 #define SLRA0                   SLRCONAbits.SLRA0               // bit 0
16570 #define SLRA1                   SLRCONAbits.SLRA1               // bit 1
16571 #define SLRA2                   SLRCONAbits.SLRA2               // bit 2
16572 #define SLRA4                   SLRCONAbits.SLRA4               // bit 4
16573 #define SLRA5                   SLRCONAbits.SLRA5               // bit 5
16574 
16575 #define SLRB4                   SLRCONBbits.SLRB4               // bit 4
16576 #define SLRB5                   SLRCONBbits.SLRB5               // bit 5
16577 #define SLRB6                   SLRCONBbits.SLRB6               // bit 6
16578 #define SLRB7                   SLRCONBbits.SLRB7               // bit 7
16579 
16580 #define SLRC0                   SLRCONCbits.SLRC0               // bit 0
16581 #define SLRC1                   SLRCONCbits.SLRC1               // bit 1
16582 #define SLRC2                   SLRCONCbits.SLRC2               // bit 2
16583 #define SLRC3                   SLRCONCbits.SLRC3               // bit 3
16584 #define SLRC4                   SLRCONCbits.SLRC4               // bit 4
16585 #define SLRC5                   SLRCONCbits.SLRC5               // bit 5
16586 #define SLRC6                   SLRCONCbits.SLRC6               // bit 6
16587 #define SLRC7                   SLRCONCbits.SLRC7               // bit 7
16588 
16589 #define CSEL0                   SMT1CLKbits.CSEL0               // bit 0, shadows bit in SMT1CLKbits
16590 #define SMT1CSEL0               SMT1CLKbits.SMT1CSEL0           // bit 0, shadows bit in SMT1CLKbits
16591 #define CSEL1                   SMT1CLKbits.CSEL1               // bit 1, shadows bit in SMT1CLKbits
16592 #define SMT1CSEL1               SMT1CLKbits.SMT1CSEL1           // bit 1, shadows bit in SMT1CLKbits
16593 #define CSEL2                   SMT1CLKbits.CSEL2               // bit 2, shadows bit in SMT1CLKbits
16594 #define SMT1CSEL2               SMT1CLKbits.SMT1CSEL2           // bit 2, shadows bit in SMT1CLKbits
16595 
16596 #define SMT1CPR8                SMT1CPRHbits.SMT1CPR8           // bit 0
16597 #define SMT1CPR9                SMT1CPRHbits.SMT1CPR9           // bit 1
16598 #define SMT1CPR10               SMT1CPRHbits.SMT1CPR10          // bit 2
16599 #define SMT1CPR11               SMT1CPRHbits.SMT1CPR11          // bit 3
16600 #define SMT1CPR12               SMT1CPRHbits.SMT1CPR12          // bit 4
16601 #define SMT1CPR13               SMT1CPRHbits.SMT1CPR13          // bit 5
16602 #define SMT1CPR14               SMT1CPRHbits.SMT1CPR14          // bit 6
16603 #define SMT1CPR15               SMT1CPRHbits.SMT1CPR15          // bit 7
16604 
16605 #define SMT1CPR0                SMT1CPRLbits.SMT1CPR0           // bit 0
16606 #define SMT1CPR1                SMT1CPRLbits.SMT1CPR1           // bit 1
16607 #define SMT1CPR2                SMT1CPRLbits.SMT1CPR2           // bit 2
16608 #define SMT1CPR3                SMT1CPRLbits.SMT1CPR3           // bit 3
16609 #define SMT1CPR4                SMT1CPRLbits.SMT1CPR4           // bit 4
16610 #define SMT1CPR5                SMT1CPRLbits.SMT1CPR5           // bit 5
16611 #define SMT1CPR6                SMT1CPRLbits.SMT1CPR6           // bit 6
16612 #define SMT1CPR7                SMT1CPRLbits.SMT1CPR7           // bit 7
16613 
16614 #define SMT1CPR16               SMT1CPRUbits.SMT1CPR16          // bit 0
16615 #define SMT1CPR17               SMT1CPRUbits.SMT1CPR17          // bit 1
16616 #define SMT1CPR18               SMT1CPRUbits.SMT1CPR18          // bit 2
16617 #define SMT1CPR19               SMT1CPRUbits.SMT1CPR19          // bit 3
16618 #define SMT1CPR20               SMT1CPRUbits.SMT1CPR20          // bit 4
16619 #define SMT1CPR21               SMT1CPRUbits.SMT1CPR21          // bit 5
16620 #define SMT1CPR22               SMT1CPRUbits.SMT1CPR22          // bit 6
16621 #define SMT1CPR23               SMT1CPRUbits.SMT1CPR23          // bit 7
16622 
16623 #define SMT1CPW8                SMT1CPWHbits.SMT1CPW8           // bit 0
16624 #define SMT1CPW9                SMT1CPWHbits.SMT1CPW9           // bit 1
16625 #define SMT1CPW10               SMT1CPWHbits.SMT1CPW10          // bit 2
16626 #define SMT1CPW11               SMT1CPWHbits.SMT1CPW11          // bit 3
16627 #define SMT1CPW12               SMT1CPWHbits.SMT1CPW12          // bit 4
16628 #define SMT1CPW13               SMT1CPWHbits.SMT1CPW13          // bit 5
16629 #define SMT1CPW14               SMT1CPWHbits.SMT1CPW14          // bit 6
16630 #define SMT1CPW15               SMT1CPWHbits.SMT1CPW15          // bit 7
16631 
16632 #define SMT1CPW0                SMT1CPWLbits.SMT1CPW0           // bit 0
16633 #define SMT1CPW1                SMT1CPWLbits.SMT1CPW1           // bit 1
16634 #define SMT1CPW2                SMT1CPWLbits.SMT1CPW2           // bit 2
16635 #define SMT1CPW3                SMT1CPWLbits.SMT1CPW3           // bit 3
16636 #define SMT1CPW4                SMT1CPWLbits.SMT1CPW4           // bit 4
16637 #define SMT1CPW5                SMT1CPWLbits.SMT1CPW5           // bit 5
16638 #define SMT1CPW6                SMT1CPWLbits.SMT1CPW6           // bit 6
16639 #define SMT1CPW7                SMT1CPWLbits.SMT1CPW7           // bit 7
16640 
16641 #define SMT1CPW16               SMT1CPWUbits.SMT1CPW16          // bit 0
16642 #define SMT1CPW17               SMT1CPWUbits.SMT1CPW17          // bit 1
16643 #define SMT1CPW18               SMT1CPWUbits.SMT1CPW18          // bit 2
16644 #define SMT1CPW19               SMT1CPWUbits.SMT1CPW19          // bit 3
16645 #define SMT1CPW20               SMT1CPWUbits.SMT1CPW20          // bit 4
16646 #define SMT1CPW21               SMT1CPWUbits.SMT1CPW21          // bit 5
16647 #define SMT1CPW22               SMT1CPWUbits.SMT1CPW22          // bit 6
16648 #define SMT1CPW23               SMT1CPWUbits.SMT1CPW23          // bit 7
16649 
16650 #define SMT1PR8                 SMT1PRHbits.SMT1PR8             // bit 0
16651 #define SMT1PR9                 SMT1PRHbits.SMT1PR9             // bit 1
16652 #define SMT1PR10                SMT1PRHbits.SMT1PR10            // bit 2
16653 #define SMT1PR11                SMT1PRHbits.SMT1PR11            // bit 3
16654 #define SMT1PR12                SMT1PRHbits.SMT1PR12            // bit 4
16655 #define SMT1PR13                SMT1PRHbits.SMT1PR13            // bit 5
16656 #define SMT1PR14                SMT1PRHbits.SMT1PR14            // bit 6
16657 #define SMT1PR15                SMT1PRHbits.SMT1PR15            // bit 7
16658 
16659 #define SMT1PR0                 SMT1PRLbits.SMT1PR0             // bit 0
16660 #define SMT1PR1                 SMT1PRLbits.SMT1PR1             // bit 1
16661 #define SMT1PR2                 SMT1PRLbits.SMT1PR2             // bit 2
16662 #define SMT1PR3                 SMT1PRLbits.SMT1PR3             // bit 3
16663 #define SMT1PR4                 SMT1PRLbits.SMT1PR4             // bit 4
16664 #define SMT1PR5                 SMT1PRLbits.SMT1PR5             // bit 5
16665 #define SMT1PR6                 SMT1PRLbits.SMT1PR6             // bit 6
16666 #define SMT1PR7                 SMT1PRLbits.SMT1PR7             // bit 7
16667 
16668 #define SMT1PR16                SMT1PRUbits.SMT1PR16            // bit 0
16669 #define SMT1PR17                SMT1PRUbits.SMT1PR17            // bit 1
16670 #define SMT1PR18                SMT1PRUbits.SMT1PR18            // bit 2
16671 #define SMT1PR19                SMT1PRUbits.SMT1PR19            // bit 3
16672 #define SMT1PR20                SMT1PRUbits.SMT1PR20            // bit 4
16673 #define SMT1PR21                SMT1PRUbits.SMT1PR21            // bit 5
16674 #define SMT1PR22                SMT1PRUbits.SMT1PR22            // bit 6
16675 #define SMT1PR23                SMT1PRUbits.SMT1PR23            // bit 7
16676 
16677 #define SMT1SIGPPS0             SMT1SIGPPSbits.SMT1SIGPPS0      // bit 0
16678 #define SMT1SIGPPS1             SMT1SIGPPSbits.SMT1SIGPPS1      // bit 1
16679 #define SMT1SIGPPS2             SMT1SIGPPSbits.SMT1SIGPPS2      // bit 2
16680 #define SMT1SIGPPS3             SMT1SIGPPSbits.SMT1SIGPPS3      // bit 3
16681 #define SMT1SIGPPS4             SMT1SIGPPSbits.SMT1SIGPPS4      // bit 4
16682 
16683 #define AS                      SMT1STATbits.AS                 // bit 0, shadows bit in SMT1STATbits
16684 #define SMT1AS                  SMT1STATbits.SMT1AS             // bit 0, shadows bit in SMT1STATbits
16685 #define WS                      SMT1STATbits.WS                 // bit 1, shadows bit in SMT1STATbits
16686 #define SMT1WS                  SMT1STATbits.SMT1WS             // bit 1, shadows bit in SMT1STATbits
16687 #define TS                      SMT1STATbits.TS                 // bit 2, shadows bit in SMT1STATbits
16688 #define SMT1TS                  SMT1STATbits.SMT1TS             // bit 2, shadows bit in SMT1STATbits
16689 #define RST                     SMT1STATbits.RST                // bit 5, shadows bit in SMT1STATbits
16690 #define SMT1RESET               SMT1STATbits.SMT1RESET          // bit 5, shadows bit in SMT1STATbits
16691 #define CPWUP                   SMT1STATbits.CPWUP              // bit 6, shadows bit in SMT1STATbits
16692 #define SMT1CPWUP               SMT1STATbits.SMT1CPWUP          // bit 6, shadows bit in SMT1STATbits
16693 #define CPRUP                   SMT1STATbits.CPRUP              // bit 7, shadows bit in SMT1STATbits
16694 #define SMT1CPRUP               SMT1STATbits.SMT1CPRUP          // bit 7, shadows bit in SMT1STATbits
16695 
16696 #define SMT1TMR8                SMT1TMRHbits.SMT1TMR8           // bit 0
16697 #define SMT1TMR9                SMT1TMRHbits.SMT1TMR9           // bit 1
16698 #define SMT1TMR10               SMT1TMRHbits.SMT1TMR10          // bit 2
16699 #define SMT1TMR11               SMT1TMRHbits.SMT1TMR11          // bit 3
16700 #define SMT1TMR12               SMT1TMRHbits.SMT1TMR12          // bit 4
16701 #define SMT1TMR13               SMT1TMRHbits.SMT1TMR13          // bit 5
16702 #define SMT1TMR14               SMT1TMRHbits.SMT1TMR14          // bit 6
16703 #define SMT1TMR15               SMT1TMRHbits.SMT1TMR15          // bit 7
16704 
16705 #define SMT1TMR0                SMT1TMRLbits.SMT1TMR0           // bit 0
16706 #define SMT1TMR1                SMT1TMRLbits.SMT1TMR1           // bit 1
16707 #define SMT1TMR2                SMT1TMRLbits.SMT1TMR2           // bit 2
16708 #define SMT1TMR3                SMT1TMRLbits.SMT1TMR3           // bit 3
16709 #define SMT1TMR4                SMT1TMRLbits.SMT1TMR4           // bit 4
16710 #define SMT1TMR5                SMT1TMRLbits.SMT1TMR5           // bit 5
16711 #define SMT1TMR6                SMT1TMRLbits.SMT1TMR6           // bit 6
16712 #define SMT1TMR7                SMT1TMRLbits.SMT1TMR7           // bit 7
16713 
16714 #define SMT1TMR16               SMT1TMRUbits.SMT1TMR16          // bit 0
16715 #define SMT1TMR17               SMT1TMRUbits.SMT1TMR17          // bit 1
16716 #define SMT1TMR18               SMT1TMRUbits.SMT1TMR18          // bit 2
16717 #define SMT1TMR19               SMT1TMRUbits.SMT1TMR19          // bit 3
16718 #define SMT1TMR20               SMT1TMRUbits.SMT1TMR20          // bit 4
16719 #define SMT1TMR21               SMT1TMRUbits.SMT1TMR21          // bit 5
16720 #define SMT1TMR22               SMT1TMRUbits.SMT1TMR22          // bit 6
16721 #define SMT1TMR23               SMT1TMRUbits.SMT1TMR23          // bit 7
16722 
16723 #define WSEL0                   SMT1WINbits.WSEL0               // bit 0, shadows bit in SMT1WINbits
16724 #define SMT1WSEL0               SMT1WINbits.SMT1WSEL0           // bit 0, shadows bit in SMT1WINbits
16725 #define WSEL1                   SMT1WINbits.WSEL1               // bit 1, shadows bit in SMT1WINbits
16726 #define SMT1WSEL1               SMT1WINbits.SMT1WSEL1           // bit 1, shadows bit in SMT1WINbits
16727 #define WSEL2                   SMT1WINbits.WSEL2               // bit 2, shadows bit in SMT1WINbits
16728 #define SMT1WSEL2               SMT1WINbits.SMT1WSEL2           // bit 2, shadows bit in SMT1WINbits
16729 #define WSEL3                   SMT1WINbits.WSEL3               // bit 3, shadows bit in SMT1WINbits
16730 #define SMT1WSEL3               SMT1WINbits.SMT1WSEL3           // bit 3, shadows bit in SMT1WINbits
16731 #define WSEL4                   SMT1WINbits.WSEL4               // bit 4, shadows bit in SMT1WINbits
16732 #define SMT1WSEL4               SMT1WINbits.SMT1WSEL4           // bit 4, shadows bit in SMT1WINbits
16733 
16734 #define SMTWINPPS0              SMT1WINPPSbits.SMTWINPPS0       // bit 0
16735 #define SMTWINPPS1              SMT1WINPPSbits.SMTWINPPS1       // bit 1
16736 #define SMTWINPPS2              SMT1WINPPSbits.SMTWINPPS2       // bit 2
16737 #define SMTWINPPS3              SMT1WINPPSbits.SMTWINPPS3       // bit 3
16738 #define SMTWINPPS4              SMT1WINPPSbits.SMTWINPPS4       // bit 4
16739 
16740 #define SMT2CPR8                SMT2CPRHbits.SMT2CPR8           // bit 0
16741 #define SMT2CPR9                SMT2CPRHbits.SMT2CPR9           // bit 1
16742 #define SMT2CPR10               SMT2CPRHbits.SMT2CPR10          // bit 2
16743 #define SMT2CPR11               SMT2CPRHbits.SMT2CPR11          // bit 3
16744 #define SMT2CPR12               SMT2CPRHbits.SMT2CPR12          // bit 4
16745 #define SMT2CPR13               SMT2CPRHbits.SMT2CPR13          // bit 5
16746 #define SMT2CPR14               SMT2CPRHbits.SMT2CPR14          // bit 6
16747 #define SMT2CPR15               SMT2CPRHbits.SMT2CPR15          // bit 7
16748 
16749 #define SMT2CPR0                SMT2CPRLbits.SMT2CPR0           // bit 0
16750 #define SMT2CPR1                SMT2CPRLbits.SMT2CPR1           // bit 1
16751 #define SMT2CPR2                SMT2CPRLbits.SMT2CPR2           // bit 2
16752 #define SMT2CPR3                SMT2CPRLbits.SMT2CPR3           // bit 3
16753 #define SMT2CPR4                SMT2CPRLbits.SMT2CPR4           // bit 4
16754 #define SMT2CPR5                SMT2CPRLbits.SMT2CPR5           // bit 5
16755 #define SMT2CPR6                SMT2CPRLbits.SMT2CPR6           // bit 6
16756 #define SMT2CPR7                SMT2CPRLbits.SMT2CPR7           // bit 7
16757 
16758 #define SMT2CPR16               SMT2CPRUbits.SMT2CPR16          // bit 0
16759 #define SMT2CPR17               SMT2CPRUbits.SMT2CPR17          // bit 1
16760 #define SMT2CPR18               SMT2CPRUbits.SMT2CPR18          // bit 2
16761 #define SMT2CPR19               SMT2CPRUbits.SMT2CPR19          // bit 3
16762 #define SMT2CPR20               SMT2CPRUbits.SMT2CPR20          // bit 4
16763 #define SMT2CPR21               SMT2CPRUbits.SMT2CPR21          // bit 5
16764 #define SMT2CPR22               SMT2CPRUbits.SMT2CPR22          // bit 6
16765 #define SMT2CPR23               SMT2CPRUbits.SMT2CPR23          // bit 7
16766 
16767 #define SMT2CPW8                SMT2CPWHbits.SMT2CPW8           // bit 0
16768 #define SMT2CPW9                SMT2CPWHbits.SMT2CPW9           // bit 1
16769 #define SMT2CPW10               SMT2CPWHbits.SMT2CPW10          // bit 2
16770 #define SMT2CPW11               SMT2CPWHbits.SMT2CPW11          // bit 3
16771 #define SMT2CPW12               SMT2CPWHbits.SMT2CPW12          // bit 4
16772 #define SMT2CPW13               SMT2CPWHbits.SMT2CPW13          // bit 5
16773 #define SMT2CPW14               SMT2CPWHbits.SMT2CPW14          // bit 6
16774 #define SMT2CPW15               SMT2CPWHbits.SMT2CPW15          // bit 7
16775 
16776 #define SMT2CPW0                SMT2CPWLbits.SMT2CPW0           // bit 0
16777 #define SMT2CPW1                SMT2CPWLbits.SMT2CPW1           // bit 1
16778 #define SMT2CPW2                SMT2CPWLbits.SMT2CPW2           // bit 2
16779 #define SMT2CPW3                SMT2CPWLbits.SMT2CPW3           // bit 3
16780 #define SMT2CPW4                SMT2CPWLbits.SMT2CPW4           // bit 4
16781 #define SMT2CPW5                SMT2CPWLbits.SMT2CPW5           // bit 5
16782 #define SMT2CPW6                SMT2CPWLbits.SMT2CPW6           // bit 6
16783 #define SMT2CPW7                SMT2CPWLbits.SMT2CPW7           // bit 7
16784 
16785 #define SMT2CPW16               SMT2CPWUbits.SMT2CPW16          // bit 0
16786 #define SMT2CPW17               SMT2CPWUbits.SMT2CPW17          // bit 1
16787 #define SMT2CPW18               SMT2CPWUbits.SMT2CPW18          // bit 2
16788 #define SMT2CPW19               SMT2CPWUbits.SMT2CPW19          // bit 3
16789 #define SMT2CPW20               SMT2CPWUbits.SMT2CPW20          // bit 4
16790 #define SMT2CPW21               SMT2CPWUbits.SMT2CPW21          // bit 5
16791 #define SMT2CPW22               SMT2CPWUbits.SMT2CPW22          // bit 6
16792 #define SMT2CPW23               SMT2CPWUbits.SMT2CPW23          // bit 7
16793 
16794 #define SMT2PR8                 SMT2PRHbits.SMT2PR8             // bit 0
16795 #define SMT2PR9                 SMT2PRHbits.SMT2PR9             // bit 1
16796 #define SMT2PR10                SMT2PRHbits.SMT2PR10            // bit 2
16797 #define SMT2PR11                SMT2PRHbits.SMT2PR11            // bit 3
16798 #define SMT2PR12                SMT2PRHbits.SMT2PR12            // bit 4
16799 #define SMT2PR13                SMT2PRHbits.SMT2PR13            // bit 5
16800 #define SMT2PR14                SMT2PRHbits.SMT2PR14            // bit 6
16801 #define SMT2PR15                SMT2PRHbits.SMT2PR15            // bit 7
16802 
16803 #define SMT2PR0                 SMT2PRLbits.SMT2PR0             // bit 0
16804 #define SMT2PR1                 SMT2PRLbits.SMT2PR1             // bit 1
16805 #define SMT2PR2                 SMT2PRLbits.SMT2PR2             // bit 2
16806 #define SMT2PR3                 SMT2PRLbits.SMT2PR3             // bit 3
16807 #define SMT2PR4                 SMT2PRLbits.SMT2PR4             // bit 4
16808 #define SMT2PR5                 SMT2PRLbits.SMT2PR5             // bit 5
16809 #define SMT2PR6                 SMT2PRLbits.SMT2PR6             // bit 6
16810 #define SMT2PR7                 SMT2PRLbits.SMT2PR7             // bit 7
16811 
16812 #define SMT2PR16                SMT2PRUbits.SMT2PR16            // bit 0
16813 #define SMT2PR17                SMT2PRUbits.SMT2PR17            // bit 1
16814 #define SMT2PR18                SMT2PRUbits.SMT2PR18            // bit 2
16815 #define SMT2PR19                SMT2PRUbits.SMT2PR19            // bit 3
16816 #define SMT2PR20                SMT2PRUbits.SMT2PR20            // bit 4
16817 #define SMT2PR21                SMT2PRUbits.SMT2PR21            // bit 5
16818 #define SMT2PR22                SMT2PRUbits.SMT2PR22            // bit 6
16819 #define SMT2PR23                SMT2PRUbits.SMT2PR23            // bit 7
16820 
16821 #define SMT2SIGPPS0             SMT2SIGPPSbits.SMT2SIGPPS0      // bit 0
16822 #define SMT2SIGPPS1             SMT2SIGPPSbits.SMT2SIGPPS1      // bit 1
16823 #define SMT2SIGPPS2             SMT2SIGPPSbits.SMT2SIGPPS2      // bit 2
16824 #define SMT2SIGPPS3             SMT2SIGPPSbits.SMT2SIGPPS3      // bit 3
16825 #define SMT2SIGPPS4             SMT2SIGPPSbits.SMT2SIGPPS4      // bit 4
16826 
16827 #define SMT2TMR8                SMT2TMRHbits.SMT2TMR8           // bit 0
16828 #define SMT2TMR9                SMT2TMRHbits.SMT2TMR9           // bit 1
16829 #define SMT2TMR10               SMT2TMRHbits.SMT2TMR10          // bit 2
16830 #define SMT2TMR11               SMT2TMRHbits.SMT2TMR11          // bit 3
16831 #define SMT2TMR12               SMT2TMRHbits.SMT2TMR12          // bit 4
16832 #define SMT2TMR13               SMT2TMRHbits.SMT2TMR13          // bit 5
16833 #define SMT2TMR14               SMT2TMRHbits.SMT2TMR14          // bit 6
16834 #define SMT2TMR15               SMT2TMRHbits.SMT2TMR15          // bit 7
16835 
16836 #define SMT2TMR0                SMT2TMRLbits.SMT2TMR0           // bit 0
16837 #define SMT2TMR1                SMT2TMRLbits.SMT2TMR1           // bit 1
16838 #define SMT2TMR2                SMT2TMRLbits.SMT2TMR2           // bit 2
16839 #define SMT2TMR3                SMT2TMRLbits.SMT2TMR3           // bit 3
16840 #define SMT2TMR4                SMT2TMRLbits.SMT2TMR4           // bit 4
16841 #define SMT2TMR5                SMT2TMRLbits.SMT2TMR5           // bit 5
16842 #define SMT2TMR6                SMT2TMRLbits.SMT2TMR6           // bit 6
16843 #define SMT2TMR7                SMT2TMRLbits.SMT2TMR7           // bit 7
16844 
16845 #define SMT2TMR16               SMT2TMRUbits.SMT2TMR16          // bit 0
16846 #define SMT2TMR17               SMT2TMRUbits.SMT2TMR17          // bit 1
16847 #define SMT2TMR18               SMT2TMRUbits.SMT2TMR18          // bit 2
16848 #define SMT2TMR19               SMT2TMRUbits.SMT2TMR19          // bit 3
16849 #define SMT2TMR20               SMT2TMRUbits.SMT2TMR20          // bit 4
16850 #define SMT2TMR21               SMT2TMRUbits.SMT2TMR21          // bit 5
16851 #define SMT2TMR22               SMT2TMRUbits.SMT2TMR22          // bit 6
16852 #define SMT2TMR23               SMT2TMRUbits.SMT2TMR23          // bit 7
16853 
16854 #define SMT2WINPPS0             SMT2WINPPSbits.SMT2WINPPS0      // bit 0
16855 #define SMT2WINPPS1             SMT2WINPPSbits.SMT2WINPPS1      // bit 1
16856 #define SMT2WINPPS2             SMT2WINPPSbits.SMT2WINPPS2      // bit 2
16857 #define SMT2WINPPS3             SMT2WINPPSbits.SMT2WINPPS3      // bit 3
16858 #define SMT2WINPPS4             SMT2WINPPSbits.SMT2WINPPS4      // bit 4
16859 
16860 #define SSP1ADD0                SSP1ADDbits.SSP1ADD0            // bit 0, shadows bit in SSP1ADDbits
16861 #define ADD0                    SSP1ADDbits.ADD0                // bit 0, shadows bit in SSP1ADDbits
16862 #define SSP1ADD1                SSP1ADDbits.SSP1ADD1            // bit 1, shadows bit in SSP1ADDbits
16863 #define ADD1                    SSP1ADDbits.ADD1                // bit 1, shadows bit in SSP1ADDbits
16864 #define SSP1ADD2                SSP1ADDbits.SSP1ADD2            // bit 2, shadows bit in SSP1ADDbits
16865 #define ADD2                    SSP1ADDbits.ADD2                // bit 2, shadows bit in SSP1ADDbits
16866 #define SSP1ADD3                SSP1ADDbits.SSP1ADD3            // bit 3, shadows bit in SSP1ADDbits
16867 #define ADD3                    SSP1ADDbits.ADD3                // bit 3, shadows bit in SSP1ADDbits
16868 #define SSP1ADD4                SSP1ADDbits.SSP1ADD4            // bit 4, shadows bit in SSP1ADDbits
16869 #define ADD4                    SSP1ADDbits.ADD4                // bit 4, shadows bit in SSP1ADDbits
16870 #define SSP1ADD5                SSP1ADDbits.SSP1ADD5            // bit 5, shadows bit in SSP1ADDbits
16871 #define ADD5                    SSP1ADDbits.ADD5                // bit 5, shadows bit in SSP1ADDbits
16872 #define SSP1ADD6                SSP1ADDbits.SSP1ADD6            // bit 6, shadows bit in SSP1ADDbits
16873 #define ADD6                    SSP1ADDbits.ADD6                // bit 6, shadows bit in SSP1ADDbits
16874 #define SSP1ADD7                SSP1ADDbits.SSP1ADD7            // bit 7, shadows bit in SSP1ADDbits
16875 #define ADD7                    SSP1ADDbits.ADD7                // bit 7, shadows bit in SSP1ADDbits
16876 
16877 #define SSP1BUF0                SSP1BUFbits.SSP1BUF0            // bit 0, shadows bit in SSP1BUFbits
16878 #define BUF0                    SSP1BUFbits.BUF0                // bit 0, shadows bit in SSP1BUFbits
16879 #define SSP1BUF1                SSP1BUFbits.SSP1BUF1            // bit 1, shadows bit in SSP1BUFbits
16880 #define BUF1                    SSP1BUFbits.BUF1                // bit 1, shadows bit in SSP1BUFbits
16881 #define SSP1BUF2                SSP1BUFbits.SSP1BUF2            // bit 2, shadows bit in SSP1BUFbits
16882 #define BUF2                    SSP1BUFbits.BUF2                // bit 2, shadows bit in SSP1BUFbits
16883 #define SSP1BUF3                SSP1BUFbits.SSP1BUF3            // bit 3, shadows bit in SSP1BUFbits
16884 #define BUF3                    SSP1BUFbits.BUF3                // bit 3, shadows bit in SSP1BUFbits
16885 #define SSP1BUF4                SSP1BUFbits.SSP1BUF4            // bit 4, shadows bit in SSP1BUFbits
16886 #define BUF4                    SSP1BUFbits.BUF4                // bit 4, shadows bit in SSP1BUFbits
16887 #define SSP1BUF5                SSP1BUFbits.SSP1BUF5            // bit 5, shadows bit in SSP1BUFbits
16888 #define BUF5                    SSP1BUFbits.BUF5                // bit 5, shadows bit in SSP1BUFbits
16889 #define SSP1BUF6                SSP1BUFbits.SSP1BUF6            // bit 6, shadows bit in SSP1BUFbits
16890 #define BUF6                    SSP1BUFbits.BUF6                // bit 6, shadows bit in SSP1BUFbits
16891 #define SSP1BUF7                SSP1BUFbits.SSP1BUF7            // bit 7, shadows bit in SSP1BUFbits
16892 #define BUF7                    SSP1BUFbits.BUF7                // bit 7, shadows bit in SSP1BUFbits
16893 
16894 #define SSPM0                   SSP1CONbits.SSPM0               // bit 0
16895 #define SSPM1                   SSP1CONbits.SSPM1               // bit 1
16896 #define SSPM2                   SSP1CONbits.SSPM2               // bit 2
16897 #define SSPM3                   SSP1CONbits.SSPM3               // bit 3
16898 #define CKP                     SSP1CONbits.CKP                 // bit 4
16899 #define SSPEN                   SSP1CONbits.SSPEN               // bit 5
16900 #define SSPOV                   SSP1CONbits.SSPOV               // bit 6
16901 #define WCOL                    SSP1CONbits.WCOL                // bit 7
16902 
16903 #define SEN                     SSP1CON2bits.SEN                // bit 0
16904 #define RSEN                    SSP1CON2bits.RSEN               // bit 1
16905 #define PEN                     SSP1CON2bits.PEN                // bit 2
16906 #define RCEN                    SSP1CON2bits.RCEN               // bit 3
16907 #define ACKEN                   SSP1CON2bits.ACKEN              // bit 4
16908 #define ACKDT                   SSP1CON2bits.ACKDT              // bit 5
16909 #define ACKSTAT                 SSP1CON2bits.ACKSTAT            // bit 6
16910 #define GCEN                    SSP1CON2bits.GCEN               // bit 7
16911 
16912 #define DHEN                    SSP1CON3bits.DHEN               // bit 0
16913 #define AHEN                    SSP1CON3bits.AHEN               // bit 1
16914 #define SBCDE                   SSP1CON3bits.SBCDE              // bit 2
16915 #define SDAHT                   SSP1CON3bits.SDAHT              // bit 3
16916 #define BOEN                    SSP1CON3bits.BOEN               // bit 4
16917 #define SCIE                    SSP1CON3bits.SCIE               // bit 5
16918 #define PCIE                    SSP1CON3bits.PCIE               // bit 6
16919 #define ACKTIM                  SSP1CON3bits.ACKTIM             // bit 7
16920 
16921 #define SSP1MSK0                SSP1MSKbits.SSP1MSK0            // bit 0, shadows bit in SSP1MSKbits
16922 #define MSK0                    SSP1MSKbits.MSK0                // bit 0, shadows bit in SSP1MSKbits
16923 #define SSP1MSK1                SSP1MSKbits.SSP1MSK1            // bit 1, shadows bit in SSP1MSKbits
16924 #define MSK1                    SSP1MSKbits.MSK1                // bit 1, shadows bit in SSP1MSKbits
16925 #define SSP1MSK2                SSP1MSKbits.SSP1MSK2            // bit 2, shadows bit in SSP1MSKbits
16926 #define MSK2                    SSP1MSKbits.MSK2                // bit 2, shadows bit in SSP1MSKbits
16927 #define SSP1MSK3                SSP1MSKbits.SSP1MSK3            // bit 3, shadows bit in SSP1MSKbits
16928 #define MSK3                    SSP1MSKbits.MSK3                // bit 3, shadows bit in SSP1MSKbits
16929 #define SSP1MSK4                SSP1MSKbits.SSP1MSK4            // bit 4, shadows bit in SSP1MSKbits
16930 #define MSK4                    SSP1MSKbits.MSK4                // bit 4, shadows bit in SSP1MSKbits
16931 #define SSP1MSK5                SSP1MSKbits.SSP1MSK5            // bit 5, shadows bit in SSP1MSKbits
16932 #define MSK5                    SSP1MSKbits.MSK5                // bit 5, shadows bit in SSP1MSKbits
16933 #define SSP1MSK6                SSP1MSKbits.SSP1MSK6            // bit 6, shadows bit in SSP1MSKbits
16934 #define MSK6                    SSP1MSKbits.MSK6                // bit 6, shadows bit in SSP1MSKbits
16935 #define SSP1MSK7                SSP1MSKbits.SSP1MSK7            // bit 7, shadows bit in SSP1MSKbits
16936 #define MSK7                    SSP1MSKbits.MSK7                // bit 7, shadows bit in SSP1MSKbits
16937 
16938 #define BF                      SSP1STATbits.BF                 // bit 0
16939 #define UA                      SSP1STATbits.UA                 // bit 1
16940 #define R_NOT_W                 SSP1STATbits.R_NOT_W            // bit 2
16941 #define S                       SSP1STATbits.S                  // bit 3
16942 #define P                       SSP1STATbits.P                  // bit 4
16943 #define D_NOT_A                 SSP1STATbits.D_NOT_A            // bit 5
16944 #define CKE                     SSP1STATbits.CKE                // bit 6
16945 #define SMP                     SSP1STATbits.SMP                // bit 7
16946 
16947 #define SSPCLKPPS0              SSPCLKPPSbits.SSPCLKPPS0        // bit 0
16948 #define SSPCLKPPS1              SSPCLKPPSbits.SSPCLKPPS1        // bit 1
16949 #define SSPCLKPPS2              SSPCLKPPSbits.SSPCLKPPS2        // bit 2
16950 #define SSPCLKPPS3              SSPCLKPPSbits.SSPCLKPPS3        // bit 3
16951 #define SSPCLKPPS4              SSPCLKPPSbits.SSPCLKPPS4        // bit 4
16952 
16953 #define SSPDATPPS0              SSPDATPPSbits.SSPDATPPS0        // bit 0
16954 #define SSPDATPPS1              SSPDATPPSbits.SSPDATPPS1        // bit 1
16955 #define SSPDATPPS2              SSPDATPPSbits.SSPDATPPS2        // bit 2
16956 #define SSPDATPPS3              SSPDATPPSbits.SSPDATPPS3        // bit 3
16957 #define SSPDATPPS4              SSPDATPPSbits.SSPDATPPS4        // bit 4
16958 
16959 #define SSPSSPPS0               SSPSSPPSbits.SSPSSPPS0          // bit 0
16960 #define SSPSSPPS1               SSPSSPPSbits.SSPSSPPS1          // bit 1
16961 #define SSPSSPPS2               SSPSSPPSbits.SSPSSPPS2          // bit 2
16962 #define SSPSSPPS3               SSPSSPPSbits.SSPSSPPS3          // bit 3
16963 #define SSPSSPPS4               SSPSSPPSbits.SSPSSPPS4          // bit 4
16964 
16965 #define C                       STATUSbits.C                    // bit 0
16966 #define DC                      STATUSbits.DC                   // bit 1
16967 #define Z                       STATUSbits.Z                    // bit 2
16968 #define NOT_PD                  STATUSbits.NOT_PD               // bit 3
16969 #define NOT_TO                  STATUSbits.NOT_TO               // bit 4
16970 
16971 #define C_SHAD                  STATUS_SHADbits.C_SHAD          // bit 0
16972 #define DC_SHAD                 STATUS_SHADbits.DC_SHAD         // bit 1
16973 #define Z_SHAD                  STATUS_SHADbits.Z_SHAD          // bit 2
16974 
16975 #define T0CKIPPS0               T0CKIPPSbits.T0CKIPPS0          // bit 0
16976 #define T0CKIPPS1               T0CKIPPSbits.T0CKIPPS1          // bit 1
16977 #define T0CKIPPS2               T0CKIPPSbits.T0CKIPPS2          // bit 2
16978 #define T0CKIPPS3               T0CKIPPSbits.T0CKIPPS3          // bit 3
16979 #define T0CKIPPS4               T0CKIPPSbits.T0CKIPPS4          // bit 4
16980 
16981 #define T1CKIPPS0               T1CKIPPSbits.T1CKIPPS0          // bit 0
16982 #define T1CKIPPS1               T1CKIPPSbits.T1CKIPPS1          // bit 1
16983 #define T1CKIPPS2               T1CKIPPSbits.T1CKIPPS2          // bit 2
16984 #define T1CKIPPS3               T1CKIPPSbits.T1CKIPPS3          // bit 3
16985 #define T1CKIPPS4               T1CKIPPSbits.T1CKIPPS4          // bit 4
16986 
16987 #define TMR1ON                  T1CONbits.TMR1ON                // bit 0
16988 #define NOT_T1SYNC              T1CONbits.NOT_T1SYNC            // bit 2
16989 #define T1CKPS0                 T1CONbits.T1CKPS0               // bit 4
16990 #define T1CKPS1                 T1CONbits.T1CKPS1               // bit 5
16991 #define TMR1CS0                 T1CONbits.TMR1CS0               // bit 6
16992 #define TMR1CS1                 T1CONbits.TMR1CS1               // bit 7
16993 
16994 #define T1GSS0                  T1GCONbits.T1GSS0               // bit 0
16995 #define T1GSS1                  T1GCONbits.T1GSS1               // bit 1
16996 #define T1GVAL                  T1GCONbits.T1GVAL               // bit 2
16997 #define T1GGO_NOT_DONE          T1GCONbits.T1GGO_NOT_DONE       // bit 3
16998 #define T1GSPM                  T1GCONbits.T1GSPM               // bit 4
16999 #define T1GTM                   T1GCONbits.T1GTM                // bit 5
17000 #define T1GPOL                  T1GCONbits.T1GPOL               // bit 6
17001 #define TMR1GE                  T1GCONbits.TMR1GE               // bit 7
17002 
17003 #define T1GPPS0                 T1GPPSbits.T1GPPS0              // bit 0
17004 #define T1GPPS1                 T1GPPSbits.T1GPPS1              // bit 1
17005 #define T1GPPS2                 T1GPPSbits.T1GPPS2              // bit 2
17006 #define T1GPPS3                 T1GPPSbits.T1GPPS3              // bit 3
17007 #define T1GPPS4                 T1GPPSbits.T1GPPS4              // bit 4
17008 
17009 #define OUTPS0                  T2CONbits.OUTPS0                // bit 0, shadows bit in T2CONbits
17010 #define T2OUTPS0                T2CONbits.T2OUTPS0              // bit 0, shadows bit in T2CONbits
17011 #define OUTPS1                  T2CONbits.OUTPS1                // bit 1, shadows bit in T2CONbits
17012 #define T2OUTPS1                T2CONbits.T2OUTPS1              // bit 1, shadows bit in T2CONbits
17013 #define OUTPS2                  T2CONbits.OUTPS2                // bit 2, shadows bit in T2CONbits
17014 #define T2OUTPS2                T2CONbits.T2OUTPS2              // bit 2, shadows bit in T2CONbits
17015 #define OUTPS3                  T2CONbits.OUTPS3                // bit 3, shadows bit in T2CONbits
17016 #define T2OUTPS3                T2CONbits.T2OUTPS3              // bit 3, shadows bit in T2CONbits
17017 #define CKPS0                   T2CONbits.CKPS0                 // bit 4, shadows bit in T2CONbits
17018 #define T2CKPS0                 T2CONbits.T2CKPS0               // bit 4, shadows bit in T2CONbits
17019 #define CKPS1                   T2CONbits.CKPS1                 // bit 5, shadows bit in T2CONbits
17020 #define T2CKPS1                 T2CONbits.T2CKPS1               // bit 5, shadows bit in T2CONbits
17021 #define CKPS2                   T2CONbits.CKPS2                 // bit 6, shadows bit in T2CONbits
17022 #define T2CKPS2                 T2CONbits.T2CKPS2               // bit 6, shadows bit in T2CONbits
17023 #define ON                      T2CONbits.ON                    // bit 7, shadows bit in T2CONbits
17024 #define T2ON                    T2CONbits.T2ON                  // bit 7, shadows bit in T2CONbits
17025 #define TMR2ON                  T2CONbits.TMR2ON                // bit 7, shadows bit in T2CONbits
17026 
17027 #define T2PPS0                  T2PPSbits.T2PPS0                // bit 0
17028 #define T2PPS1                  T2PPSbits.T2PPS1                // bit 1
17029 #define T2PPS2                  T2PPSbits.T2PPS2                // bit 2
17030 #define T2PPS3                  T2PPSbits.T2PPS3                // bit 3
17031 #define T2PPS4                  T2PPSbits.T2PPS4                // bit 4
17032 
17033 #define RSEL0                   T2RSTbits.RSEL0                 // bit 0, shadows bit in T2RSTbits
17034 #define T2RSEL0                 T2RSTbits.T2RSEL0               // bit 0, shadows bit in T2RSTbits
17035 #define RSEL1                   T2RSTbits.RSEL1                 // bit 1, shadows bit in T2RSTbits
17036 #define T2RSEL1                 T2RSTbits.T2RSEL1               // bit 1, shadows bit in T2RSTbits
17037 #define RSEL2                   T2RSTbits.RSEL2                 // bit 2, shadows bit in T2RSTbits
17038 #define T2RSEL2                 T2RSTbits.T2RSEL2               // bit 2, shadows bit in T2RSTbits
17039 #define RSEL3                   T2RSTbits.RSEL3                 // bit 3, shadows bit in T2RSTbits
17040 #define T2RSEL3                 T2RSTbits.T2RSEL3               // bit 3, shadows bit in T2RSTbits
17041 
17042 #define T3CKIPPS0               T3CKIPPSbits.T3CKIPPS0          // bit 0
17043 #define T3CKIPPS1               T3CKIPPSbits.T3CKIPPS1          // bit 1
17044 #define T3CKIPPS2               T3CKIPPSbits.T3CKIPPS2          // bit 2
17045 #define T3CKIPPS3               T3CKIPPSbits.T3CKIPPS3          // bit 3
17046 #define T3CKIPPS4               T3CKIPPSbits.T3CKIPPS4          // bit 4
17047 
17048 #define TMR3ON                  T3CONbits.TMR3ON                // bit 0
17049 #define T3SYNC                  T3CONbits.T3SYNC                // bit 2
17050 #define T3CKPS0                 T3CONbits.T3CKPS0               // bit 4
17051 #define T3CKPS1                 T3CONbits.T3CKPS1               // bit 5
17052 #define TMR3CS0                 T3CONbits.TMR3CS0               // bit 6
17053 #define TMR3CS1                 T3CONbits.TMR3CS1               // bit 7
17054 
17055 #define T3GSS0                  T3GCONbits.T3GSS0               // bit 0
17056 #define T3GSS1                  T3GCONbits.T3GSS1               // bit 1
17057 #define T3GVAL                  T3GCONbits.T3GVAL               // bit 2
17058 #define T3GGO_NOT_DONE          T3GCONbits.T3GGO_NOT_DONE       // bit 3
17059 #define T3GSPM                  T3GCONbits.T3GSPM               // bit 4
17060 #define T3GTM                   T3GCONbits.T3GTM                // bit 5
17061 #define T3GPOL                  T3GCONbits.T3GPOL               // bit 6
17062 #define TMR3GE                  T3GCONbits.TMR3GE               // bit 7
17063 
17064 #define T3GPPS0                 T3GPPSbits.T3GPPS0              // bit 0
17065 #define T3GPPS1                 T3GPPSbits.T3GPPS1              // bit 1
17066 #define T3GPPS2                 T3GPPSbits.T3GPPS2              // bit 2
17067 #define T3GPPS3                 T3GPPSbits.T3GPPS3              // bit 3
17068 #define T3GPPS4                 T3GPPSbits.T3GPPS4              // bit 4
17069 
17070 #define T4PPS0                  T4PPSbits.T4PPS0                // bit 0
17071 #define T4PPS1                  T4PPSbits.T4PPS1                // bit 1
17072 #define T4PPS2                  T4PPSbits.T4PPS2                // bit 2
17073 #define T4PPS3                  T4PPSbits.T4PPS3                // bit 3
17074 #define T4PPS4                  T4PPSbits.T4PPS4                // bit 4
17075 
17076 #define T5CKIPPS0               T5CKIPPSbits.T5CKIPPS0          // bit 0
17077 #define T5CKIPPS1               T5CKIPPSbits.T5CKIPPS1          // bit 1
17078 #define T5CKIPPS2               T5CKIPPSbits.T5CKIPPS2          // bit 2
17079 #define T5CKIPPS3               T5CKIPPSbits.T5CKIPPS3          // bit 3
17080 #define T5CKIPPS4               T5CKIPPSbits.T5CKIPPS4          // bit 4
17081 
17082 #define TMR5ON                  T5CONbits.TMR5ON                // bit 0
17083 #define T5SYNC                  T5CONbits.T5SYNC                // bit 2
17084 #define T5CKPS0                 T5CONbits.T5CKPS0               // bit 4
17085 #define T5CKPS1                 T5CONbits.T5CKPS1               // bit 5
17086 #define TMR5CS0                 T5CONbits.TMR5CS0               // bit 6
17087 #define TMR5CS1                 T5CONbits.TMR5CS1               // bit 7
17088 
17089 #define T5GSS0                  T5GCONbits.T5GSS0               // bit 0
17090 #define T5GSS1                  T5GCONbits.T5GSS1               // bit 1
17091 #define T5GVAL                  T5GCONbits.T5GVAL               // bit 2
17092 #define T5GGO_NOT_DONE          T5GCONbits.T5GGO_NOT_DONE       // bit 3
17093 #define T5GSPM                  T5GCONbits.T5GSPM               // bit 4
17094 #define T5GTM                   T5GCONbits.T5GTM                // bit 5
17095 #define T5GPOL                  T5GCONbits.T5GPOL               // bit 6
17096 #define TMR5GE                  T5GCONbits.TMR5GE               // bit 7
17097 
17098 #define T5GPPS0                 T5GPPSbits.T5GPPS0              // bit 0
17099 #define T5GPPS1                 T5GPPSbits.T5GPPS1              // bit 1
17100 #define T5GPPS2                 T5GPPSbits.T5GPPS2              // bit 2
17101 #define T5GPPS3                 T5GPPSbits.T5GPPS3              // bit 3
17102 #define T5GPPS4                 T5GPPSbits.T5GPPS4              // bit 4
17103 
17104 #define T6PPS0                  T6PPSbits.T6PPS0                // bit 0
17105 #define T6PPS1                  T6PPSbits.T6PPS1                // bit 1
17106 #define T6PPS2                  T6PPSbits.T6PPS2                // bit 2
17107 #define T6PPS3                  T6PPSbits.T6PPS3                // bit 3
17108 #define T6PPS4                  T6PPSbits.T6PPS4                // bit 4
17109 
17110 #define TRISA0                  TRISAbits.TRISA0                // bit 0
17111 #define TRISA1                  TRISAbits.TRISA1                // bit 1
17112 #define TRISA2                  TRISAbits.TRISA2                // bit 2
17113 #define TRISA3                  TRISAbits.TRISA3                // bit 3
17114 #define TRISA4                  TRISAbits.TRISA4                // bit 4
17115 #define TRISA5                  TRISAbits.TRISA5                // bit 5
17116 
17117 #define TRISB4                  TRISBbits.TRISB4                // bit 4
17118 #define TRISB5                  TRISBbits.TRISB5                // bit 5
17119 #define TRISB6                  TRISBbits.TRISB6                // bit 6
17120 #define TRISB7                  TRISBbits.TRISB7                // bit 7
17121 
17122 #define TRISC0                  TRISCbits.TRISC0                // bit 0
17123 #define TRISC1                  TRISCbits.TRISC1                // bit 1
17124 #define TRISC2                  TRISCbits.TRISC2                // bit 2
17125 #define TRISC3                  TRISCbits.TRISC3                // bit 3
17126 #define TRISC4                  TRISCbits.TRISC4                // bit 4
17127 #define TRISC5                  TRISCbits.TRISC5                // bit 5
17128 #define TRISC6                  TRISCbits.TRISC6                // bit 6
17129 #define TRISC7                  TRISCbits.TRISC7                // bit 7
17130 
17131 #define TX9D                    TX1STAbits.TX9D                 // bit 0
17132 #define TRMT                    TX1STAbits.TRMT                 // bit 1
17133 #define BRGH                    TX1STAbits.BRGH                 // bit 2
17134 #define SENDB                   TX1STAbits.SENDB                // bit 3
17135 #define SYNC                    TX1STAbits.SYNC                 // bit 4
17136 #define TXEN                    TX1STAbits.TXEN                 // bit 5
17137 #define TX9                     TX1STAbits.TX9                  // bit 6
17138 #define CSRC                    TX1STAbits.CSRC                 // bit 7
17139 
17140 #define WINDOW0                 WDTCON1bits.WINDOW0             // bit 0, shadows bit in WDTCON1bits
17141 #define WDTWINDOW0              WDTCON1bits.WDTWINDOW0          // bit 0, shadows bit in WDTCON1bits
17142 #define WINDOW1                 WDTCON1bits.WINDOW1             // bit 1, shadows bit in WDTCON1bits
17143 #define WDTWINDOW1              WDTCON1bits.WDTWINDOW1          // bit 1, shadows bit in WDTCON1bits
17144 #define WINDOW2                 WDTCON1bits.WINDOW2             // bit 2, shadows bit in WDTCON1bits
17145 #define WDTWINDOW2              WDTCON1bits.WDTWINDOW2          // bit 2, shadows bit in WDTCON1bits
17146 #define WDTCS0                  WDTCON1bits.WDTCS0              // bit 4
17147 #define WDTCS1                  WDTCON1bits.WDTCS1              // bit 5
17148 #define WDTCS2                  WDTCON1bits.WDTCS2              // bit 6
17149 
17150 #define PSCNT8                  WDTPSHbits.PSCNT8               // bit 0, shadows bit in WDTPSHbits
17151 #define WDTPSCNT8               WDTPSHbits.WDTPSCNT8            // bit 0, shadows bit in WDTPSHbits
17152 #define PSCNT9                  WDTPSHbits.PSCNT9               // bit 1, shadows bit in WDTPSHbits
17153 #define WDTPSCNT9               WDTPSHbits.WDTPSCNT9            // bit 1, shadows bit in WDTPSHbits
17154 #define PSCNT10                 WDTPSHbits.PSCNT10              // bit 2, shadows bit in WDTPSHbits
17155 #define WDTPSCNT10              WDTPSHbits.WDTPSCNT10           // bit 2, shadows bit in WDTPSHbits
17156 #define PSCNT11                 WDTPSHbits.PSCNT11              // bit 3, shadows bit in WDTPSHbits
17157 #define WDTPSCNT11              WDTPSHbits.WDTPSCNT11           // bit 3, shadows bit in WDTPSHbits
17158 #define PSCNT12                 WDTPSHbits.PSCNT12              // bit 4, shadows bit in WDTPSHbits
17159 #define WDTPSCNT12              WDTPSHbits.WDTPSCNT12           // bit 4, shadows bit in WDTPSHbits
17160 #define PSCNT13                 WDTPSHbits.PSCNT13              // bit 5, shadows bit in WDTPSHbits
17161 #define WDTPSCNT13              WDTPSHbits.WDTPSCNT13           // bit 5, shadows bit in WDTPSHbits
17162 #define PSCNT14                 WDTPSHbits.PSCNT14              // bit 6, shadows bit in WDTPSHbits
17163 #define WDTPSCNT14              WDTPSHbits.WDTPSCNT14           // bit 6, shadows bit in WDTPSHbits
17164 #define PSCNT15                 WDTPSHbits.PSCNT15              // bit 7, shadows bit in WDTPSHbits
17165 #define WDTPSCNT15              WDTPSHbits.WDTPSCNT15           // bit 7, shadows bit in WDTPSHbits
17166 
17167 #define PSCNT0                  WDTPSLbits.PSCNT0               // bit 0, shadows bit in WDTPSLbits
17168 #define WDTPSCNT0               WDTPSLbits.WDTPSCNT0            // bit 0, shadows bit in WDTPSLbits
17169 #define PSCNT1                  WDTPSLbits.PSCNT1               // bit 1, shadows bit in WDTPSLbits
17170 #define WDTPSCNT1               WDTPSLbits.WDTPSCNT1            // bit 1, shadows bit in WDTPSLbits
17171 #define PSCNT2                  WDTPSLbits.PSCNT2               // bit 2, shadows bit in WDTPSLbits
17172 #define WDTPSCNT2               WDTPSLbits.WDTPSCNT2            // bit 2, shadows bit in WDTPSLbits
17173 #define PSCNT3                  WDTPSLbits.PSCNT3               // bit 3, shadows bit in WDTPSLbits
17174 #define WDTPSCNT3               WDTPSLbits.WDTPSCNT3            // bit 3, shadows bit in WDTPSLbits
17175 #define PSCNT4                  WDTPSLbits.PSCNT4               // bit 4, shadows bit in WDTPSLbits
17176 #define WDTPSCNT4               WDTPSLbits.WDTPSCNT4            // bit 4, shadows bit in WDTPSLbits
17177 #define PSCNT5                  WDTPSLbits.PSCNT5               // bit 5, shadows bit in WDTPSLbits
17178 #define WDTPSCNT5               WDTPSLbits.WDTPSCNT5            // bit 5, shadows bit in WDTPSLbits
17179 #define PSCNT6                  WDTPSLbits.PSCNT6               // bit 6, shadows bit in WDTPSLbits
17180 #define WDTPSCNT6               WDTPSLbits.WDTPSCNT6            // bit 6, shadows bit in WDTPSLbits
17181 #define PSCNT7                  WDTPSLbits.PSCNT7               // bit 7, shadows bit in WDTPSLbits
17182 #define WDTPSCNT7               WDTPSLbits.WDTPSCNT7            // bit 7, shadows bit in WDTPSLbits
17183 
17184 #define PSCNT16                 WDTTMRbits.PSCNT16              // bit 0, shadows bit in WDTTMRbits
17185 #define WDTPSCNT16              WDTTMRbits.WDTPSCNT16           // bit 0, shadows bit in WDTTMRbits
17186 #define PSCNT17                 WDTTMRbits.PSCNT17              // bit 1, shadows bit in WDTTMRbits
17187 #define WDTPSCNT17              WDTTMRbits.WDTPSCNT17           // bit 1, shadows bit in WDTTMRbits
17188 #define STATE                   WDTTMRbits.STATE                // bit 2, shadows bit in WDTTMRbits
17189 #define WDTSTATE                WDTTMRbits.WDTSTATE             // bit 2, shadows bit in WDTTMRbits
17190 #define WDTTMR0                 WDTTMRbits.WDTTMR0              // bit 3
17191 #define WDTTMR1                 WDTTMRbits.WDTTMR1              // bit 4
17192 #define WDTTMR2                 WDTTMRbits.WDTTMR2              // bit 5
17193 #define WDTTMR3                 WDTTMRbits.WDTTMR3              // bit 6
17194 #define WDTTMR4                 WDTTMRbits.WDTTMR4              // bit 7
17195 
17196 #define WPUA0                   WPUAbits.WPUA0                  // bit 0
17197 #define WPUA1                   WPUAbits.WPUA1                  // bit 1
17198 #define WPUA2                   WPUAbits.WPUA2                  // bit 2
17199 #define WPUA3                   WPUAbits.WPUA3                  // bit 3
17200 #define WPUA4                   WPUAbits.WPUA4                  // bit 4
17201 #define WPUA5                   WPUAbits.WPUA5                  // bit 5
17202 
17203 #define WPUB4                   WPUBbits.WPUB4                  // bit 4
17204 #define WPUB5                   WPUBbits.WPUB5                  // bit 5
17205 #define WPUB6                   WPUBbits.WPUB6                  // bit 6
17206 #define WPUB7                   WPUBbits.WPUB7                  // bit 7
17207 
17208 #define WPUC0                   WPUCbits.WPUC0                  // bit 0
17209 #define WPUC1                   WPUCbits.WPUC1                  // bit 1
17210 #define WPUC2                   WPUCbits.WPUC2                  // bit 2
17211 #define WPUC3                   WPUCbits.WPUC3                  // bit 3
17212 #define WPUC4                   WPUCbits.WPUC4                  // bit 4
17213 #define WPUC5                   WPUCbits.WPUC5                  // bit 5
17214 #define WPUC6                   WPUCbits.WPUC6                  // bit 6
17215 #define WPUC7                   WPUCbits.WPUC7                  // bit 7
17216 
17217 #define ZCD1INTN                ZCD1CONbits.ZCD1INTN            // bit 0
17218 #define ZCD1INTP                ZCD1CONbits.ZCD1INTP            // bit 1
17219 #define ZCD1POL                 ZCD1CONbits.ZCD1POL             // bit 4
17220 #define ZCD1OUT                 ZCD1CONbits.ZCD1OUT             // bit 5
17221 #define ZCD1EN                  ZCD1CONbits.ZCD1EN              // bit 7
17222 
17223 #endif // #ifndef NO_BIT_DEFINES
17224 
17225 #endif // #ifndef __PIC16LF1618_H__
17226