Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16lf1773.h
blob0e3778bf8b5c318fd91cf84d12cf0a3dd65e1844
1 /*
2 * This declarations of the PIC16LF1773 MCU.
4 * This file is part of the GNU PIC library for SDCC, originally
5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:15 UTC.
9 * SDCC is licensed under the GNU Public license (GPL) v2. Note that
10 * this license covers the code to the compiler and other executables,
11 * but explicitly does not cover any code or objects generated by sdcc.
13 * For pic device libraries and header files which are derived from
14 * Microchip header (.inc) and linker script (.lkr) files Microchip
15 * requires that "The header files should state that they are only to be
16 * used with authentic Microchip devices" which makes them incompatible
17 * with the GPL. Pic device libraries and header files are located at
18 * non-free/lib and non-free/include directories respectively.
19 * Sdcc should be run with the --use-non-free command line option in
20 * order to include non-free header files and libraries.
22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
25 #ifndef __PIC16LF1773_H__
26 #define __PIC16LF1773_H__
28 //==============================================================================
30 // Register Addresses
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF0_ADDR 0x0000
37 #define INDF1_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR0_ADDR 0x0004
41 #define FSR0L_ADDR 0x0004
42 #define FSR0H_ADDR 0x0005
43 #define FSR1_ADDR 0x0006
44 #define FSR1L_ADDR 0x0006
45 #define FSR1H_ADDR 0x0007
46 #define BSR_ADDR 0x0008
47 #define WREG_ADDR 0x0009
48 #define PCLATH_ADDR 0x000A
49 #define INTCON_ADDR 0x000B
50 #define PORTA_ADDR 0x000C
51 #define PORTB_ADDR 0x000D
52 #define PORTC_ADDR 0x000E
53 #define PORTE_ADDR 0x0010
54 #define PIR1_ADDR 0x0011
55 #define PIR2_ADDR 0x0012
56 #define PIR3_ADDR 0x0013
57 #define PIR4_ADDR 0x0014
58 #define PIR5_ADDR 0x0015
59 #define PIR6_ADDR 0x0016
60 #define TMR0_ADDR 0x0017
61 #define TMR1_ADDR 0x0018
62 #define TMR1L_ADDR 0x0018
63 #define TMR1H_ADDR 0x0019
64 #define T1CON_ADDR 0x001A
65 #define T1GCON_ADDR 0x001B
66 #define TMR3_ADDR 0x001C
67 #define TMR3L_ADDR 0x001C
68 #define TMR3H_ADDR 0x001D
69 #define T3CON_ADDR 0x001E
70 #define T3GCON_ADDR 0x001F
71 #define TRISA_ADDR 0x008C
72 #define TRISB_ADDR 0x008D
73 #define TRISC_ADDR 0x008E
74 #define TRISE_ADDR 0x0090
75 #define PIE1_ADDR 0x0091
76 #define PIE2_ADDR 0x0092
77 #define PIE3_ADDR 0x0093
78 #define PIE4_ADDR 0x0094
79 #define PIE5_ADDR 0x0095
80 #define PIE6_ADDR 0x0096
81 #define OPTION_REG_ADDR 0x0097
82 #define PCON_ADDR 0x0098
83 #define WDTCON_ADDR 0x0099
84 #define OSCTUNE_ADDR 0x009A
85 #define OSCCON_ADDR 0x009B
86 #define OSCSTAT_ADDR 0x009C
87 #define BORCON_ADDR 0x009D
88 #define FVRCON_ADDR 0x009E
89 #define ZCD1CON_ADDR 0x009F
90 #define LATA_ADDR 0x010C
91 #define LATB_ADDR 0x010D
92 #define LATC_ADDR 0x010E
93 #define CMOUT_ADDR 0x0111
94 #define CM1CON0_ADDR 0x0112
95 #define CM1CON1_ADDR 0x0113
96 #define CM1NSEL_ADDR 0x0114
97 #define CM1PSEL_ADDR 0x0115
98 #define CM2CON0_ADDR 0x0116
99 #define CM2CON1_ADDR 0x0117
100 #define CM2NSEL_ADDR 0x0118
101 #define CM2PSEL_ADDR 0x0119
102 #define CM3CON0_ADDR 0x011A
103 #define CM3CON1_ADDR 0x011B
104 #define CM3NSEL_ADDR 0x011C
105 #define CM3PSEL_ADDR 0x011D
106 #define ANSELA_ADDR 0x018C
107 #define ANSELB_ADDR 0x018D
108 #define ANSELC_ADDR 0x018E
109 #define PMADR_ADDR 0x0191
110 #define PMADRL_ADDR 0x0191
111 #define PMADRH_ADDR 0x0192
112 #define PMDAT_ADDR 0x0193
113 #define PMDATL_ADDR 0x0193
114 #define PMDATH_ADDR 0x0194
115 #define PMCON1_ADDR 0x0195
116 #define PMCON2_ADDR 0x0196
117 #define RC1REG_ADDR 0x0199
118 #define RCREG_ADDR 0x0199
119 #define RCREG1_ADDR 0x0199
120 #define TX1REG_ADDR 0x019A
121 #define TXREG_ADDR 0x019A
122 #define TXREG1_ADDR 0x019A
123 #define SP1BRG_ADDR 0x019B
124 #define SP1BRGL_ADDR 0x019B
125 #define SPBRG_ADDR 0x019B
126 #define SPBRG1_ADDR 0x019B
127 #define SPBRGL_ADDR 0x019B
128 #define SP1BRGH_ADDR 0x019C
129 #define SPBRGH_ADDR 0x019C
130 #define SPBRGH1_ADDR 0x019C
131 #define RC1STA_ADDR 0x019D
132 #define RCSTA_ADDR 0x019D
133 #define RCSTA1_ADDR 0x019D
134 #define TX1STA_ADDR 0x019E
135 #define TXSTA_ADDR 0x019E
136 #define TXSTA1_ADDR 0x019E
137 #define BAUD1CON_ADDR 0x019F
138 #define BAUDCON_ADDR 0x019F
139 #define BAUDCON1_ADDR 0x019F
140 #define BAUDCTL_ADDR 0x019F
141 #define BAUDCTL1_ADDR 0x019F
142 #define WPUA_ADDR 0x020C
143 #define WPUB_ADDR 0x020D
144 #define WPUC_ADDR 0x020E
145 #define WPUE_ADDR 0x0210
146 #define SSP1BUF_ADDR 0x0211
147 #define SSPBUF_ADDR 0x0211
148 #define SSP1ADD_ADDR 0x0212
149 #define SSPADD_ADDR 0x0212
150 #define SSP1MSK_ADDR 0x0213
151 #define SSPMSK_ADDR 0x0213
152 #define SSP1STAT_ADDR 0x0214
153 #define SSPSTAT_ADDR 0x0214
154 #define SSP1CON_ADDR 0x0215
155 #define SSP1CON1_ADDR 0x0215
156 #define SSPCON_ADDR 0x0215
157 #define SSPCON1_ADDR 0x0215
158 #define SSP1CON2_ADDR 0x0216
159 #define SSPCON2_ADDR 0x0216
160 #define SSP1CON3_ADDR 0x0217
161 #define SSPCON3_ADDR 0x0217
162 #define MD3CON0_ADDR 0x021B
163 #define MD3CON1_ADDR 0x021C
164 #define MD3SRC_ADDR 0x021D
165 #define MD3CARL_ADDR 0x021E
166 #define MD3CARH_ADDR 0x021F
167 #define ODCONA_ADDR 0x028C
168 #define ODCONB_ADDR 0x028D
169 #define ODCONC_ADDR 0x028E
170 #define CCPR1_ADDR 0x0291
171 #define CCPR1L_ADDR 0x0291
172 #define CCPR1H_ADDR 0x0292
173 #define CCP1CON_ADDR 0x0293
174 #define CCP1CAP_ADDR 0x0294
175 #define CCPR2_ADDR 0x0295
176 #define CCPR2L_ADDR 0x0295
177 #define CCPR2H_ADDR 0x0296
178 #define CCP2CON_ADDR 0x0297
179 #define CCP2CAP_ADDR 0x0298
180 #define CCPR7_ADDR 0x0299
181 #define CCPR7L_ADDR 0x0299
182 #define CCPR7H_ADDR 0x029A
183 #define CCP7CON_ADDR 0x029B
184 #define CCP7CAP_ADDR 0x029C
185 #define CCPTMRS1_ADDR 0x029E
186 #define CCPTMRS2_ADDR 0x029F
187 #define SLRCONA_ADDR 0x030C
188 #define SLRCONB_ADDR 0x030D
189 #define SLRCONC_ADDR 0x030E
190 #define MD1CON0_ADDR 0x0315
191 #define MD1CON1_ADDR 0x0316
192 #define MD1SRC_ADDR 0x0317
193 #define MD1CARL_ADDR 0x0318
194 #define MD1CARH_ADDR 0x0319
195 #define MD2CON0_ADDR 0x031B
196 #define MD2CON1_ADDR 0x031C
197 #define MD2SRC_ADDR 0x031D
198 #define MD2CARL_ADDR 0x031E
199 #define MD2CARH_ADDR 0x031F
200 #define INLVLA_ADDR 0x038C
201 #define INLVLB_ADDR 0x038D
202 #define INLVLC_ADDR 0x038E
203 #define INLVE_ADDR 0x0390
204 #define IOCAP_ADDR 0x0391
205 #define IOCAN_ADDR 0x0392
206 #define IOCAF_ADDR 0x0393
207 #define IOCBP_ADDR 0x0394
208 #define IOCBN_ADDR 0x0395
209 #define IOCBF_ADDR 0x0396
210 #define IOCCP_ADDR 0x0397
211 #define IOCCN_ADDR 0x0398
212 #define IOCCF_ADDR 0x0399
213 #define IOCEP_ADDR 0x039D
214 #define IOCEN_ADDR 0x039E
215 #define IOCEF_ADDR 0x039F
216 #define HIDRVB_ADDR 0x040D
217 #define TMR5_ADDR 0x040F
218 #define TMR5L_ADDR 0x040F
219 #define TMR5H_ADDR 0x0410
220 #define T5CON_ADDR 0x0411
221 #define T5GCON_ADDR 0x0412
222 #define T4TMR_ADDR 0x0413
223 #define TMR4_ADDR 0x0413
224 #define PR4_ADDR 0x0414
225 #define T4PR_ADDR 0x0414
226 #define T4CON_ADDR 0x0415
227 #define T4HLT_ADDR 0x0416
228 #define T4CLKCON_ADDR 0x0417
229 #define T4RST_ADDR 0x0418
230 #define T6TMR_ADDR 0x041A
231 #define TMR6_ADDR 0x041A
232 #define PR6_ADDR 0x041B
233 #define T6PR_ADDR 0x041B
234 #define T6CON_ADDR 0x041C
235 #define T6HLT_ADDR 0x041D
236 #define T6CLKCON_ADDR 0x041E
237 #define T6RST_ADDR 0x041F
238 #define ADRESL_ADDR 0x048E
239 #define ADRESH_ADDR 0x048F
240 #define ADCON0_ADDR 0x0490
241 #define ADCON1_ADDR 0x0491
242 #define ADCON2_ADDR 0x0492
243 #define T2TMR_ADDR 0x0493
244 #define TMR2_ADDR 0x0493
245 #define PR2_ADDR 0x0494
246 #define T2PR_ADDR 0x0494
247 #define T2CON_ADDR 0x0495
248 #define T2HLT_ADDR 0x0496
249 #define T2CLKCON_ADDR 0x0497
250 #define T2RST_ADDR 0x0498
251 #define T8TMR_ADDR 0x049A
252 #define TMR8_ADDR 0x049A
253 #define PR8_ADDR 0x049B
254 #define T8PR_ADDR 0x049B
255 #define T8CON_ADDR 0x049C
256 #define T8HLT_ADDR 0x049D
257 #define T8CLKCON_ADDR 0x049E
258 #define T8RST_ADDR 0x049F
259 #define OPA1NCHS_ADDR 0x050F
260 #define OPA1PCHS_ADDR 0x0510
261 #define OPA1CON_ADDR 0x0511
262 #define OPA1ORS_ADDR 0x0512
263 #define OPA2NCHS_ADDR 0x0513
264 #define OPA2PCHS_ADDR 0x0514
265 #define OPA2CON_ADDR 0x0515
266 #define OPA2ORS_ADDR 0x0516
267 #define OPA3NCHS_ADDR 0x0517
268 #define OPA3PCHS_ADDR 0x0518
269 #define OPA3CON_ADDR 0x0519
270 #define OPA3ORS_ADDR 0x051A
271 #define DACLD_ADDR 0x058D
272 #define DAC1CON0_ADDR 0x058E
273 #define DAC1CON1_ADDR 0x058F
274 #define DAC1REF_ADDR 0x058F
275 #define DAC1REFL_ADDR 0x058F
276 #define DAC1CON2_ADDR 0x0590
277 #define DAC1REFH_ADDR 0x0590
278 #define DAC2CON0_ADDR 0x0591
279 #define DAC2CON1_ADDR 0x0592
280 #define DAC2REF_ADDR 0x0592
281 #define DAC2REFL_ADDR 0x0592
282 #define DAC2CON2_ADDR 0x0593
283 #define DAC2REFH_ADDR 0x0593
284 #define DAC3CON0_ADDR 0x0594
285 #define DAC3CON1_ADDR 0x0595
286 #define DAC3REF_ADDR 0x0595
287 #define DAC4CON0_ADDR 0x0596
288 #define DAC4CON1_ADDR 0x0597
289 #define DAC4REF_ADDR 0x0597
290 #define DAC5CON0_ADDR 0x0598
291 #define DAC5CON1_ADDR 0x0599
292 #define DAC5REF_ADDR 0x0599
293 #define DAC5REFL_ADDR 0x0599
294 #define DAC5CON2_ADDR 0x059A
295 #define DAC5REFH_ADDR 0x059A
296 #define DAC7CON0_ADDR 0x059E
297 #define DAC7CON1_ADDR 0x059F
298 #define DAC7REF_ADDR 0x059F
299 #define PWM3DCL_ADDR 0x0614
300 #define PWM3DCH_ADDR 0x0615
301 #define PWM3CON_ADDR 0x0616
302 #define PWM4DCL_ADDR 0x0617
303 #define PWM4DCH_ADDR 0x0618
304 #define PWM4CON_ADDR 0x0619
305 #define PWM9DCL_ADDR 0x061A
306 #define PWM9DCH_ADDR 0x061B
307 #define PWM9CON_ADDR 0x061C
308 #define COG1PHR_ADDR 0x068D
309 #define COG1PHF_ADDR 0x068E
310 #define COG1BLKR_ADDR 0x068F
311 #define COG1BLKF_ADDR 0x0690
312 #define COG1DBR_ADDR 0x0691
313 #define COG1DBF_ADDR 0x0692
314 #define COG1CON0_ADDR 0x0693
315 #define COG1CON1_ADDR 0x0694
316 #define COG1RIS0_ADDR 0x0695
317 #define COG1RIS1_ADDR 0x0696
318 #define COG1RSIM0_ADDR 0x0697
319 #define COG1RSIM1_ADDR 0x0698
320 #define COG1FIS0_ADDR 0x0699
321 #define COG1FIS1_ADDR 0x069A
322 #define COG1FSIM0_ADDR 0x069B
323 #define COG1FSIM1_ADDR 0x069C
324 #define COG1ASD0_ADDR 0x069D
325 #define COG1ASD1_ADDR 0x069E
326 #define COG1STR_ADDR 0x069F
327 #define COG2PHR_ADDR 0x070D
328 #define COG2PHF_ADDR 0x070E
329 #define COG2BLKR_ADDR 0x070F
330 #define COG2BLKF_ADDR 0x0710
331 #define COG2DBR_ADDR 0x0711
332 #define COG2DBF_ADDR 0x0712
333 #define COG2CON0_ADDR 0x0713
334 #define COG2CON1_ADDR 0x0714
335 #define COG2RIS0_ADDR 0x0715
336 #define COG2RIS1_ADDR 0x0716
337 #define COG2RSIM0_ADDR 0x0717
338 #define COG2RSIM1_ADDR 0x0718
339 #define COG2FIS0_ADDR 0x0719
340 #define COG2FIS1_ADDR 0x071A
341 #define COG2FSIM0_ADDR 0x071B
342 #define COG2FSIM1_ADDR 0x071C
343 #define COG2ASD0_ADDR 0x071D
344 #define COG2ASD1_ADDR 0x071E
345 #define COG2STR_ADDR 0x071F
346 #define PRG1RTSS_ADDR 0x078E
347 #define PRG1FTSS_ADDR 0x078F
348 #define PRG1INS_ADDR 0x0790
349 #define PRG1CON0_ADDR 0x0791
350 #define PRG1CON1_ADDR 0x0792
351 #define PRG1CON2_ADDR 0x0793
352 #define PRG2RTSS_ADDR 0x0794
353 #define PRG2FTSS_ADDR 0x0795
354 #define PRG2INS_ADDR 0x0796
355 #define PRG2CON0_ADDR 0x0797
356 #define PRG2CON1_ADDR 0x0798
357 #define PRG2CON2_ADDR 0x0799
358 #define PRG3RTSS_ADDR 0x079A
359 #define PRG3FTSS_ADDR 0x079B
360 #define PRG3INS_ADDR 0x079C
361 #define PRG3CON0_ADDR 0x079D
362 #define PRG3CON1_ADDR 0x079E
363 #define PRG3CON2_ADDR 0x079F
364 #define COG3PHR_ADDR 0x080D
365 #define COG3PHF_ADDR 0x080E
366 #define COG3BLKR_ADDR 0x080F
367 #define COG3BLKF_ADDR 0x0810
368 #define COG3DBR_ADDR 0x0811
369 #define COG3DBF_ADDR 0x0812
370 #define COG3CON0_ADDR 0x0813
371 #define COG3CON1_ADDR 0x0814
372 #define COG3RIS0_ADDR 0x0815
373 #define COG3RIS1_ADDR 0x0816
374 #define COG3RSIM0_ADDR 0x0817
375 #define COG3RSIM1_ADDR 0x0818
376 #define COG3FIS0_ADDR 0x0819
377 #define COG3FIS1_ADDR 0x081A
378 #define COG3FSIM0_ADDR 0x081B
379 #define COG3FSIM1_ADDR 0x081C
380 #define COG3ASD0_ADDR 0x081D
381 #define COG3ASD1_ADDR 0x081E
382 #define COG3STR_ADDR 0x081F
383 #define CM4CON0_ADDR 0x090C
384 #define CM4CON1_ADDR 0x090D
385 #define CM4NSEL_ADDR 0x090E
386 #define CM4PSEL_ADDR 0x090F
387 #define CM5CON0_ADDR 0x0910
388 #define CM5CON1_ADDR 0x0911
389 #define CM5NSEL_ADDR 0x0912
390 #define CM5PSEL_ADDR 0x0913
391 #define CM6CON0_ADDR 0x0914
392 #define CM6CON1_ADDR 0x0915
393 #define CM6NSEL_ADDR 0x0916
394 #define CM6PSEL_ADDR 0x0917
395 #define PWMEN_ADDR 0x0D8E
396 #define PWMLD_ADDR 0x0D8F
397 #define PWMOUT_ADDR 0x0D90
398 #define PWM5PH_ADDR 0x0D91
399 #define PWM5PHL_ADDR 0x0D91
400 #define PWM5PHH_ADDR 0x0D92
401 #define PWM5DC_ADDR 0x0D93
402 #define PWM5DCL_ADDR 0x0D93
403 #define PWM5DCH_ADDR 0x0D94
404 #define PWM5PR_ADDR 0x0D95
405 #define PWM5PRL_ADDR 0x0D95
406 #define PWM5PRH_ADDR 0x0D96
407 #define PWM5OF_ADDR 0x0D97
408 #define PWM5OFL_ADDR 0x0D97
409 #define PWM5OFH_ADDR 0x0D98
410 #define PWM5TMR_ADDR 0x0D99
411 #define PWM5TMRL_ADDR 0x0D99
412 #define PWM5TMRH_ADDR 0x0D9A
413 #define PWM5CON_ADDR 0x0D9B
414 #define PWM5INTCON_ADDR 0x0D9C
415 #define PWM5INTE_ADDR 0x0D9C
416 #define PWM5INTF_ADDR 0x0D9D
417 #define PWM5INTFLG_ADDR 0x0D9D
418 #define PWM5CLKCON_ADDR 0x0D9E
419 #define PWM5LDCON_ADDR 0x0D9F
420 #define PWM5OFCON_ADDR 0x0DA0
421 #define PWM6PH_ADDR 0x0DA1
422 #define PWM6PHL_ADDR 0x0DA1
423 #define PWM6PHH_ADDR 0x0DA2
424 #define PWM6DC_ADDR 0x0DA3
425 #define PWM6DCL_ADDR 0x0DA3
426 #define PWM6DCH_ADDR 0x0DA4
427 #define PWM6PR_ADDR 0x0DA5
428 #define PWM6PRL_ADDR 0x0DA5
429 #define PWM6PRH_ADDR 0x0DA6
430 #define PWM6OF_ADDR 0x0DA7
431 #define PWM6OFL_ADDR 0x0DA7
432 #define PWM6OFH_ADDR 0x0DA8
433 #define PWM6TMR_ADDR 0x0DA9
434 #define PWM6TMRL_ADDR 0x0DA9
435 #define PWM6TMRH_ADDR 0x0DAA
436 #define PWM6CON_ADDR 0x0DAB
437 #define PWM6INTCON_ADDR 0x0DAC
438 #define PWM6INTE_ADDR 0x0DAC
439 #define PWM6INTF_ADDR 0x0DAD
440 #define PWM6INTFLG_ADDR 0x0DAD
441 #define PWM6CLKCON_ADDR 0x0DAE
442 #define PWM6LDCON_ADDR 0x0DAF
443 #define PWM6OFCON_ADDR 0x0DB0
444 #define PWM11PH_ADDR 0x0DB1
445 #define PWM11PHL_ADDR 0x0DB1
446 #define PWM11PHH_ADDR 0x0DB2
447 #define PWM11DC_ADDR 0x0DB3
448 #define PWM11DCL_ADDR 0x0DB3
449 #define PWM11DCH_ADDR 0x0DB4
450 #define PWM11PR_ADDR 0x0DB5
451 #define PWM11PRL_ADDR 0x0DB5
452 #define PWM11PRH_ADDR 0x0DB6
453 #define PWM11OF_ADDR 0x0DB7
454 #define PWM11OFL_ADDR 0x0DB7
455 #define PWM11OFH_ADDR 0x0DB8
456 #define PWM11TMR_ADDR 0x0DB9
457 #define PWM11TMRL_ADDR 0x0DB9
458 #define PWM11TMRH_ADDR 0x0DBA
459 #define PWM11CON_ADDR 0x0DBB
460 #define PWM11INTCON_ADDR 0x0DBC
461 #define PWM11INTE_ADDR 0x0DBC
462 #define PWM11INTF_ADDR 0x0DBD
463 #define PWM11INTFLG_ADDR 0x0DBD
464 #define PWM11CLKCON_ADDR 0x0DBE
465 #define PWM11LDCON_ADDR 0x0DBF
466 #define PWM11OFCON_ADDR 0x0DC0
467 #define PPSLOCK_ADDR 0x0E0C
468 #define INTPPS_ADDR 0x0E0D
469 #define T0CKIPPS_ADDR 0x0E0E
470 #define T1CKIPPS_ADDR 0x0E0F
471 #define T1GPPS_ADDR 0x0E10
472 #define T3CKIPPS_ADDR 0x0E11
473 #define T3GPPS_ADDR 0x0E12
474 #define T5CKIPPS_ADDR 0x0E13
475 #define T5GPPS_ADDR 0x0E14
476 #define T2CKIPPS_ADDR 0x0E15
477 #define T4CKIPPS_ADDR 0x0E16
478 #define T6CKIPPS_ADDR 0x0E17
479 #define T8CKIPPS_ADDR 0x0E18
480 #define CCP1PPS_ADDR 0x0E19
481 #define CCP2PPS_ADDR 0x0E1A
482 #define CCP7PPS_ADDR 0x0E1B
483 #define COG1INPPS_ADDR 0x0E1D
484 #define COG2INPPS_ADDR 0x0E1E
485 #define COG3INPPS_ADDR 0x0E1F
486 #define MD1CLPPS_ADDR 0x0E21
487 #define MD1CHPPS_ADDR 0x0E22
488 #define MD1MODPPS_ADDR 0x0E23
489 #define MD2CLPPS_ADDR 0x0E24
490 #define MD2CHPPS_ADDR 0x0E25
491 #define MD2MODPPS_ADDR 0x0E26
492 #define MD3CLPPS_ADDR 0x0E27
493 #define MD3CHPPS_ADDR 0x0E28
494 #define MD3MODPPS_ADDR 0x0E29
495 #define PRG1RPPS_ADDR 0x0E2D
496 #define PRG1FPPS_ADDR 0x0E2E
497 #define PRG2RPPS_ADDR 0x0E2F
498 #define PRG2FPPS_ADDR 0x0E30
499 #define PRG3RPPS_ADDR 0x0E31
500 #define PRG3FPPS_ADDR 0x0E32
501 #define CLCIN0PPS_ADDR 0x0E35
502 #define CLCIN1PPS_ADDR 0x0E36
503 #define CLCIN2PPS_ADDR 0x0E37
504 #define CLCIN3PPS_ADDR 0x0E38
505 #define ADCACTPPS_ADDR 0x0E39
506 #define SSPCLKPPS_ADDR 0x0E3A
507 #define SSPDATPPS_ADDR 0x0E3B
508 #define SSPSSPPS_ADDR 0x0E3C
509 #define RXPPS_ADDR 0x0E3D
510 #define CKPPS_ADDR 0x0E3E
511 #define RA0PPS_ADDR 0x0E90
512 #define RA1PPS_ADDR 0x0E91
513 #define RA2PPS_ADDR 0x0E92
514 #define RA3PPS_ADDR 0x0E93
515 #define RA4PPS_ADDR 0x0E94
516 #define RA5PPS_ADDR 0x0E95
517 #define RA6PPS_ADDR 0x0E96
518 #define RA7PPS_ADDR 0x0E97
519 #define RB0PPS_ADDR 0x0E98
520 #define RB1PPS_ADDR 0x0E99
521 #define RB2PPS_ADDR 0x0E9A
522 #define RB3PPS_ADDR 0x0E9B
523 #define RB4PPS_ADDR 0x0E9C
524 #define RB5PPS_ADDR 0x0E9D
525 #define RB6PPS_ADDR 0x0E9E
526 #define RB7PPS_ADDR 0x0E9F
527 #define RC0PPS_ADDR 0x0EA0
528 #define RC1PPS_ADDR 0x0EA1
529 #define RC2PPS_ADDR 0x0EA2
530 #define RC3PPS_ADDR 0x0EA3
531 #define RC4PPS_ADDR 0x0EA4
532 #define RC5PPS_ADDR 0x0EA5
533 #define RC6PPS_ADDR 0x0EA6
534 #define RC7PPS_ADDR 0x0EA7
535 #define CLCDATA_ADDR 0x0F0F
536 #define CLC1CON_ADDR 0x0F10
537 #define CLC1POL_ADDR 0x0F11
538 #define CLC1SEL0_ADDR 0x0F12
539 #define CLC1SEL1_ADDR 0x0F13
540 #define CLC1SEL2_ADDR 0x0F14
541 #define CLC1SEL3_ADDR 0x0F15
542 #define CLC1GLS0_ADDR 0x0F16
543 #define CLC1GLS1_ADDR 0x0F17
544 #define CLC1GLS2_ADDR 0x0F18
545 #define CLC1GLS3_ADDR 0x0F19
546 #define CLC2CON_ADDR 0x0F1A
547 #define CLC2POL_ADDR 0x0F1B
548 #define CLC2SEL0_ADDR 0x0F1C
549 #define CLC2SEL1_ADDR 0x0F1D
550 #define CLC2SEL2_ADDR 0x0F1E
551 #define CLC2SEL3_ADDR 0x0F1F
552 #define CLC2GLS0_ADDR 0x0F20
553 #define CLC2GLS1_ADDR 0x0F21
554 #define CLC2GLS2_ADDR 0x0F22
555 #define CLC2GLS3_ADDR 0x0F23
556 #define CLC3CON_ADDR 0x0F24
557 #define CLC3POL_ADDR 0x0F25
558 #define CLC3SEL0_ADDR 0x0F26
559 #define CLC3SEL1_ADDR 0x0F27
560 #define CLC3SEL2_ADDR 0x0F28
561 #define CLC3SEL3_ADDR 0x0F29
562 #define CLC3GLS0_ADDR 0x0F2A
563 #define CLC3GLS1_ADDR 0x0F2B
564 #define CLC3GLS2_ADDR 0x0F2C
565 #define CLC3GLS3_ADDR 0x0F2D
566 #define CLC4CON_ADDR 0x0F2E
567 #define CLC4POL_ADDR 0x0F2F
568 #define CLC4SEL0_ADDR 0x0F30
569 #define CLC4SEL1_ADDR 0x0F31
570 #define CLC4SEL2_ADDR 0x0F32
571 #define CLC4SEL3_ADDR 0x0F33
572 #define CLC4GLS0_ADDR 0x0F34
573 #define CLC4GLS1_ADDR 0x0F35
574 #define CLC4GLS2_ADDR 0x0F36
575 #define CLC4GLS3_ADDR 0x0F37
576 #define STATUS_SHAD_ADDR 0x0FE4
577 #define WREG_SHAD_ADDR 0x0FE5
578 #define BSR_SHAD_ADDR 0x0FE6
579 #define PCLATH_SHAD_ADDR 0x0FE7
580 #define FSR0L_SHAD_ADDR 0x0FE8
581 #define FSR0H_SHAD_ADDR 0x0FE9
582 #define FSR1L_SHAD_ADDR 0x0FEA
583 #define FSR1H_SHAD_ADDR 0x0FEB
584 #define STKPTR_ADDR 0x0FED
585 #define TOSL_ADDR 0x0FEE
586 #define TOSH_ADDR 0x0FEF
588 #endif // #ifndef NO_ADDR_DEFINES
590 //==============================================================================
592 // Register Definitions
594 //==============================================================================
596 extern __at(0x0000) __sfr INDF0;
597 extern __at(0x0001) __sfr INDF1;
598 extern __at(0x0002) __sfr PCL;
600 //==============================================================================
601 // STATUS Bits
603 extern __at(0x0003) __sfr STATUS;
605 typedef struct
607 unsigned C : 1;
608 unsigned DC : 1;
609 unsigned Z : 1;
610 unsigned NOT_PD : 1;
611 unsigned NOT_TO : 1;
612 unsigned : 1;
613 unsigned : 1;
614 unsigned : 1;
615 } __STATUSbits_t;
617 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
619 #define _C 0x01
620 #define _DC 0x02
621 #define _Z 0x04
622 #define _NOT_PD 0x08
623 #define _NOT_TO 0x10
625 //==============================================================================
627 extern __at(0x0004) __sfr FSR0;
628 extern __at(0x0004) __sfr FSR0L;
629 extern __at(0x0005) __sfr FSR0H;
630 extern __at(0x0006) __sfr FSR1;
631 extern __at(0x0006) __sfr FSR1L;
632 extern __at(0x0007) __sfr FSR1H;
634 //==============================================================================
635 // BSR Bits
637 extern __at(0x0008) __sfr BSR;
639 typedef union
641 struct
643 unsigned BSR0 : 1;
644 unsigned BSR1 : 1;
645 unsigned BSR2 : 1;
646 unsigned BSR3 : 1;
647 unsigned BSR4 : 1;
648 unsigned : 1;
649 unsigned : 1;
650 unsigned : 1;
653 struct
655 unsigned BSR : 5;
656 unsigned : 3;
658 } __BSRbits_t;
660 extern __at(0x0008) volatile __BSRbits_t BSRbits;
662 #define _BSR0 0x01
663 #define _BSR1 0x02
664 #define _BSR2 0x04
665 #define _BSR3 0x08
666 #define _BSR4 0x10
668 //==============================================================================
670 extern __at(0x0009) __sfr WREG;
671 extern __at(0x000A) __sfr PCLATH;
673 //==============================================================================
674 // INTCON Bits
676 extern __at(0x000B) __sfr INTCON;
678 typedef union
680 struct
682 unsigned IOCIF : 1;
683 unsigned INTF : 1;
684 unsigned TMR0IF : 1;
685 unsigned IOCIE : 1;
686 unsigned INTE : 1;
687 unsigned TMR0IE : 1;
688 unsigned PEIE : 1;
689 unsigned GIE : 1;
692 struct
694 unsigned : 1;
695 unsigned : 1;
696 unsigned T0IF : 1;
697 unsigned : 1;
698 unsigned : 1;
699 unsigned T0IE : 1;
700 unsigned : 1;
701 unsigned : 1;
703 } __INTCONbits_t;
705 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
707 #define _IOCIF 0x01
708 #define _INTF 0x02
709 #define _TMR0IF 0x04
710 #define _T0IF 0x04
711 #define _IOCIE 0x08
712 #define _INTE 0x10
713 #define _TMR0IE 0x20
714 #define _T0IE 0x20
715 #define _PEIE 0x40
716 #define _GIE 0x80
718 //==============================================================================
721 //==============================================================================
722 // PORTA Bits
724 extern __at(0x000C) __sfr PORTA;
726 typedef struct
728 unsigned RA0 : 1;
729 unsigned RA1 : 1;
730 unsigned RA2 : 1;
731 unsigned RA3 : 1;
732 unsigned RA4 : 1;
733 unsigned RA5 : 1;
734 unsigned RA6 : 1;
735 unsigned RA7 : 1;
736 } __PORTAbits_t;
738 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
740 #define _RA0 0x01
741 #define _RA1 0x02
742 #define _RA2 0x04
743 #define _RA3 0x08
744 #define _RA4 0x10
745 #define _RA5 0x20
746 #define _RA6 0x40
747 #define _RA7 0x80
749 //==============================================================================
752 //==============================================================================
753 // PORTB Bits
755 extern __at(0x000D) __sfr PORTB;
757 typedef struct
759 unsigned RB0 : 1;
760 unsigned RB1 : 1;
761 unsigned RB2 : 1;
762 unsigned RB3 : 1;
763 unsigned RB4 : 1;
764 unsigned RB5 : 1;
765 unsigned RB6 : 1;
766 unsigned RB7 : 1;
767 } __PORTBbits_t;
769 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
771 #define _RB0 0x01
772 #define _RB1 0x02
773 #define _RB2 0x04
774 #define _RB3 0x08
775 #define _RB4 0x10
776 #define _RB5 0x20
777 #define _RB6 0x40
778 #define _RB7 0x80
780 //==============================================================================
783 //==============================================================================
784 // PORTC Bits
786 extern __at(0x000E) __sfr PORTC;
788 typedef struct
790 unsigned RC0 : 1;
791 unsigned RC1 : 1;
792 unsigned RC2 : 1;
793 unsigned RC3 : 1;
794 unsigned RC4 : 1;
795 unsigned RC5 : 1;
796 unsigned RC6 : 1;
797 unsigned RC7 : 1;
798 } __PORTCbits_t;
800 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
802 #define _RC0 0x01
803 #define _RC1 0x02
804 #define _RC2 0x04
805 #define _RC3 0x08
806 #define _RC4 0x10
807 #define _RC5 0x20
808 #define _RC6 0x40
809 #define _RC7 0x80
811 //==============================================================================
814 //==============================================================================
815 // PORTE Bits
817 extern __at(0x0010) __sfr PORTE;
819 typedef struct
821 unsigned : 1;
822 unsigned : 1;
823 unsigned : 1;
824 unsigned RE3 : 1;
825 unsigned : 1;
826 unsigned : 1;
827 unsigned : 1;
828 unsigned : 1;
829 } __PORTEbits_t;
831 extern __at(0x0010) volatile __PORTEbits_t PORTEbits;
833 #define _RE3 0x08
835 //==============================================================================
838 //==============================================================================
839 // PIR1 Bits
841 extern __at(0x0011) __sfr PIR1;
843 typedef union
845 struct
847 unsigned TMR1IF : 1;
848 unsigned TMR2IF : 1;
849 unsigned CCP1IF : 1;
850 unsigned SSP1IF : 1;
851 unsigned TXIF : 1;
852 unsigned RCIF : 1;
853 unsigned ADIF : 1;
854 unsigned TMR1GIF : 1;
857 struct
859 unsigned : 1;
860 unsigned : 1;
861 unsigned CCPIF : 1;
862 unsigned : 1;
863 unsigned : 1;
864 unsigned : 1;
865 unsigned : 1;
866 unsigned : 1;
868 } __PIR1bits_t;
870 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
872 #define _TMR1IF 0x01
873 #define _TMR2IF 0x02
874 #define _CCP1IF 0x04
875 #define _CCPIF 0x04
876 #define _SSP1IF 0x08
877 #define _TXIF 0x10
878 #define _RCIF 0x20
879 #define _ADIF 0x40
880 #define _TMR1GIF 0x80
882 //==============================================================================
885 //==============================================================================
886 // PIR2 Bits
888 extern __at(0x0012) __sfr PIR2;
890 typedef struct
892 unsigned CCP2IF : 1;
893 unsigned C3IF : 1;
894 unsigned C4IF : 1;
895 unsigned BCL1IF : 1;
896 unsigned COG1IF : 1;
897 unsigned C1IF : 1;
898 unsigned C2IF : 1;
899 unsigned OSFIF : 1;
900 } __PIR2bits_t;
902 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
904 #define _CCP2IF 0x01
905 #define _C3IF 0x02
906 #define _C4IF 0x04
907 #define _BCL1IF 0x08
908 #define _COG1IF 0x10
909 #define _C1IF 0x20
910 #define _C2IF 0x40
911 #define _OSFIF 0x80
913 //==============================================================================
916 //==============================================================================
917 // PIR3 Bits
919 extern __at(0x0013) __sfr PIR3;
921 typedef struct
923 unsigned CLC1IF : 1;
924 unsigned CLC2IF : 1;
925 unsigned CLC3IF : 1;
926 unsigned CLC4IF : 1;
927 unsigned ZCDIF : 1;
928 unsigned COG2IF : 1;
929 unsigned : 1;
930 unsigned : 1;
931 } __PIR3bits_t;
933 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
935 #define _CLC1IF 0x01
936 #define _CLC2IF 0x02
937 #define _CLC3IF 0x04
938 #define _CLC4IF 0x08
939 #define _ZCDIF 0x10
940 #define _COG2IF 0x20
942 //==============================================================================
945 //==============================================================================
946 // PIR4 Bits
948 extern __at(0x0014) __sfr PIR4;
950 typedef struct
952 unsigned TMR4IF : 1;
953 unsigned TMR6IF : 1;
954 unsigned TMR3IF : 1;
955 unsigned TMR3GIF : 1;
956 unsigned TMR5IF : 1;
957 unsigned TMR5GIF : 1;
958 unsigned TMR8IF : 1;
959 unsigned : 1;
960 } __PIR4bits_t;
962 extern __at(0x0014) volatile __PIR4bits_t PIR4bits;
964 #define _TMR4IF 0x01
965 #define _TMR6IF 0x02
966 #define _TMR3IF 0x04
967 #define _TMR3GIF 0x08
968 #define _TMR5IF 0x10
969 #define _TMR5GIF 0x20
970 #define _TMR8IF 0x40
972 //==============================================================================
975 //==============================================================================
976 // PIR5 Bits
978 extern __at(0x0015) __sfr PIR5;
980 typedef struct
982 unsigned C5IF : 1;
983 unsigned C6IF : 1;
984 unsigned : 1;
985 unsigned : 1;
986 unsigned COG3IF : 1;
987 unsigned : 1;
988 unsigned CCP7IF : 1;
989 unsigned : 1;
990 } __PIR5bits_t;
992 extern __at(0x0015) volatile __PIR5bits_t PIR5bits;
994 #define _C5IF 0x01
995 #define _C6IF 0x02
996 #define _COG3IF 0x10
997 #define _CCP7IF 0x40
999 //==============================================================================
1002 //==============================================================================
1003 // PIR6 Bits
1005 extern __at(0x0016) __sfr PIR6;
1007 typedef struct
1009 unsigned PWM5IF : 1;
1010 unsigned PWM6IF : 1;
1011 unsigned PWM11IF : 1;
1012 unsigned : 1;
1013 unsigned : 1;
1014 unsigned : 1;
1015 unsigned : 1;
1016 unsigned : 1;
1017 } __PIR6bits_t;
1019 extern __at(0x0016) volatile __PIR6bits_t PIR6bits;
1021 #define _PWM5IF 0x01
1022 #define _PWM6IF 0x02
1023 #define _PWM11IF 0x04
1025 //==============================================================================
1027 extern __at(0x0017) __sfr TMR0;
1028 extern __at(0x0018) __sfr TMR1;
1029 extern __at(0x0018) __sfr TMR1L;
1030 extern __at(0x0019) __sfr TMR1H;
1032 //==============================================================================
1033 // T1CON Bits
1035 extern __at(0x001A) __sfr T1CON;
1037 typedef union
1039 struct
1041 unsigned ON : 1;
1042 unsigned : 1;
1043 unsigned NOT_SYNC : 1;
1044 unsigned OSCEN : 1;
1045 unsigned CKPS0 : 1;
1046 unsigned CKPS1 : 1;
1047 unsigned CS0 : 1;
1048 unsigned CS1 : 1;
1051 struct
1053 unsigned TMRON : 1;
1054 unsigned : 1;
1055 unsigned SYNC : 1;
1056 unsigned SOSCEN : 1;
1057 unsigned T1CKPS0 : 1;
1058 unsigned T1CKPS1 : 1;
1059 unsigned T1CS0 : 1;
1060 unsigned T1CS1 : 1;
1063 struct
1065 unsigned TMR1ON : 1;
1066 unsigned : 1;
1067 unsigned NOT_T1SYNC : 1;
1068 unsigned T1OSCEN : 1;
1069 unsigned : 1;
1070 unsigned : 1;
1071 unsigned TMR1CS0 : 1;
1072 unsigned TMR1CS1 : 1;
1075 struct
1077 unsigned T1ON : 1;
1078 unsigned : 1;
1079 unsigned : 1;
1080 unsigned : 1;
1081 unsigned : 1;
1082 unsigned : 1;
1083 unsigned : 1;
1084 unsigned : 1;
1087 struct
1089 unsigned : 4;
1090 unsigned T1CKPS : 2;
1091 unsigned : 2;
1094 struct
1096 unsigned : 4;
1097 unsigned CKPS : 2;
1098 unsigned : 2;
1101 struct
1103 unsigned : 6;
1104 unsigned CS : 2;
1107 struct
1109 unsigned : 6;
1110 unsigned T1CS : 2;
1113 struct
1115 unsigned : 6;
1116 unsigned TMR1CS : 2;
1118 } __T1CONbits_t;
1120 extern __at(0x001A) volatile __T1CONbits_t T1CONbits;
1122 #define _T1CON_ON 0x01
1123 #define _T1CON_TMRON 0x01
1124 #define _T1CON_TMR1ON 0x01
1125 #define _T1CON_T1ON 0x01
1126 #define _T1CON_NOT_SYNC 0x04
1127 #define _T1CON_SYNC 0x04
1128 #define _T1CON_NOT_T1SYNC 0x04
1129 #define _T1CON_OSCEN 0x08
1130 #define _T1CON_SOSCEN 0x08
1131 #define _T1CON_T1OSCEN 0x08
1132 #define _T1CON_CKPS0 0x10
1133 #define _T1CON_T1CKPS0 0x10
1134 #define _T1CON_CKPS1 0x20
1135 #define _T1CON_T1CKPS1 0x20
1136 #define _T1CON_CS0 0x40
1137 #define _T1CON_T1CS0 0x40
1138 #define _T1CON_TMR1CS0 0x40
1139 #define _T1CON_CS1 0x80
1140 #define _T1CON_T1CS1 0x80
1141 #define _T1CON_TMR1CS1 0x80
1143 //==============================================================================
1146 //==============================================================================
1147 // T1GCON Bits
1149 extern __at(0x001B) __sfr T1GCON;
1151 typedef union
1153 struct
1155 unsigned GSS0 : 1;
1156 unsigned GSS1 : 1;
1157 unsigned GVAL : 1;
1158 unsigned GGO_NOT_DONE : 1;
1159 unsigned GSPM : 1;
1160 unsigned GTM : 1;
1161 unsigned GPOL : 1;
1162 unsigned GE : 1;
1165 struct
1167 unsigned T1GSS0 : 1;
1168 unsigned T1GSS1 : 1;
1169 unsigned T1GVAL : 1;
1170 unsigned T1GGO_NOT_DONE : 1;
1171 unsigned T1GSPM : 1;
1172 unsigned T1GTM : 1;
1173 unsigned T1GPOL : 1;
1174 unsigned T1GE : 1;
1177 struct
1179 unsigned : 1;
1180 unsigned : 1;
1181 unsigned : 1;
1182 unsigned : 1;
1183 unsigned : 1;
1184 unsigned : 1;
1185 unsigned : 1;
1186 unsigned TMR1GE : 1;
1189 struct
1191 unsigned T1GSS : 2;
1192 unsigned : 6;
1195 struct
1197 unsigned GSS : 2;
1198 unsigned : 6;
1200 } __T1GCONbits_t;
1202 extern __at(0x001B) volatile __T1GCONbits_t T1GCONbits;
1204 #define _GSS0 0x01
1205 #define _T1GSS0 0x01
1206 #define _GSS1 0x02
1207 #define _T1GSS1 0x02
1208 #define _GVAL 0x04
1209 #define _T1GVAL 0x04
1210 #define _GGO_NOT_DONE 0x08
1211 #define _T1GGO_NOT_DONE 0x08
1212 #define _GSPM 0x10
1213 #define _T1GSPM 0x10
1214 #define _GTM 0x20
1215 #define _T1GTM 0x20
1216 #define _GPOL 0x40
1217 #define _T1GPOL 0x40
1218 #define _GE 0x80
1219 #define _T1GE 0x80
1220 #define _TMR1GE 0x80
1222 //==============================================================================
1224 extern __at(0x001C) __sfr TMR3;
1225 extern __at(0x001C) __sfr TMR3L;
1226 extern __at(0x001D) __sfr TMR3H;
1228 //==============================================================================
1229 // T3CON Bits
1231 extern __at(0x001E) __sfr T3CON;
1233 typedef union
1235 struct
1237 unsigned ON : 1;
1238 unsigned : 1;
1239 unsigned NOT_SYNC : 1;
1240 unsigned OSCEN : 1;
1241 unsigned CKPS0 : 1;
1242 unsigned CKPS1 : 1;
1243 unsigned CS0 : 1;
1244 unsigned CS1 : 1;
1247 struct
1249 unsigned TMRON : 1;
1250 unsigned : 1;
1251 unsigned SYNC : 1;
1252 unsigned SOSCEN : 1;
1253 unsigned T3CKPS0 : 1;
1254 unsigned T3CKPS1 : 1;
1255 unsigned T3CS0 : 1;
1256 unsigned T3CS1 : 1;
1259 struct
1261 unsigned TMR3ON : 1;
1262 unsigned : 1;
1263 unsigned NOT_T3SYNC : 1;
1264 unsigned T3OSCEN : 1;
1265 unsigned : 1;
1266 unsigned : 1;
1267 unsigned TMR3CS0 : 1;
1268 unsigned TMR3CS1 : 1;
1271 struct
1273 unsigned T3ON : 1;
1274 unsigned : 1;
1275 unsigned : 1;
1276 unsigned : 1;
1277 unsigned : 1;
1278 unsigned : 1;
1279 unsigned : 1;
1280 unsigned : 1;
1283 struct
1285 unsigned : 4;
1286 unsigned T3CKPS : 2;
1287 unsigned : 2;
1290 struct
1292 unsigned : 4;
1293 unsigned CKPS : 2;
1294 unsigned : 2;
1297 struct
1299 unsigned : 6;
1300 unsigned TMR3CS : 2;
1303 struct
1305 unsigned : 6;
1306 unsigned T3CS : 2;
1309 struct
1311 unsigned : 6;
1312 unsigned CS : 2;
1314 } __T3CONbits_t;
1316 extern __at(0x001E) volatile __T3CONbits_t T3CONbits;
1318 #define _T3CON_ON 0x01
1319 #define _T3CON_TMRON 0x01
1320 #define _T3CON_TMR3ON 0x01
1321 #define _T3CON_T3ON 0x01
1322 #define _T3CON_NOT_SYNC 0x04
1323 #define _T3CON_SYNC 0x04
1324 #define _T3CON_NOT_T3SYNC 0x04
1325 #define _T3CON_OSCEN 0x08
1326 #define _T3CON_SOSCEN 0x08
1327 #define _T3CON_T3OSCEN 0x08
1328 #define _T3CON_CKPS0 0x10
1329 #define _T3CON_T3CKPS0 0x10
1330 #define _T3CON_CKPS1 0x20
1331 #define _T3CON_T3CKPS1 0x20
1332 #define _T3CON_CS0 0x40
1333 #define _T3CON_T3CS0 0x40
1334 #define _T3CON_TMR3CS0 0x40
1335 #define _T3CON_CS1 0x80
1336 #define _T3CON_T3CS1 0x80
1337 #define _T3CON_TMR3CS1 0x80
1339 //==============================================================================
1342 //==============================================================================
1343 // T3GCON Bits
1345 extern __at(0x001F) __sfr T3GCON;
1347 typedef union
1349 struct
1351 unsigned GSS0 : 1;
1352 unsigned GSS1 : 1;
1353 unsigned GVAL : 1;
1354 unsigned GGO_NOT_DONE : 1;
1355 unsigned GSPM : 1;
1356 unsigned GTM : 1;
1357 unsigned GPOL : 1;
1358 unsigned GE : 1;
1361 struct
1363 unsigned T3GSS0 : 1;
1364 unsigned T3GSS1 : 1;
1365 unsigned T3GVAL : 1;
1366 unsigned T3GGO_NOT_DONE : 1;
1367 unsigned T3GSPM : 1;
1368 unsigned T3GTM : 1;
1369 unsigned T3GPOL : 1;
1370 unsigned T3GE : 1;
1373 struct
1375 unsigned : 1;
1376 unsigned : 1;
1377 unsigned : 1;
1378 unsigned : 1;
1379 unsigned : 1;
1380 unsigned : 1;
1381 unsigned : 1;
1382 unsigned TMR3GE : 1;
1385 struct
1387 unsigned T3GSS : 2;
1388 unsigned : 6;
1391 struct
1393 unsigned GSS : 2;
1394 unsigned : 6;
1396 } __T3GCONbits_t;
1398 extern __at(0x001F) volatile __T3GCONbits_t T3GCONbits;
1400 #define _T3GCON_GSS0 0x01
1401 #define _T3GCON_T3GSS0 0x01
1402 #define _T3GCON_GSS1 0x02
1403 #define _T3GCON_T3GSS1 0x02
1404 #define _T3GCON_GVAL 0x04
1405 #define _T3GCON_T3GVAL 0x04
1406 #define _T3GCON_GGO_NOT_DONE 0x08
1407 #define _T3GCON_T3GGO_NOT_DONE 0x08
1408 #define _T3GCON_GSPM 0x10
1409 #define _T3GCON_T3GSPM 0x10
1410 #define _T3GCON_GTM 0x20
1411 #define _T3GCON_T3GTM 0x20
1412 #define _T3GCON_GPOL 0x40
1413 #define _T3GCON_T3GPOL 0x40
1414 #define _T3GCON_GE 0x80
1415 #define _T3GCON_T3GE 0x80
1416 #define _T3GCON_TMR3GE 0x80
1418 //==============================================================================
1421 //==============================================================================
1422 // TRISA Bits
1424 extern __at(0x008C) __sfr TRISA;
1426 typedef struct
1428 unsigned TRISA0 : 1;
1429 unsigned TRISA1 : 1;
1430 unsigned TRISA2 : 1;
1431 unsigned TRISA3 : 1;
1432 unsigned TRISA4 : 1;
1433 unsigned TRISA5 : 1;
1434 unsigned TRISA6 : 1;
1435 unsigned TRISA7 : 1;
1436 } __TRISAbits_t;
1438 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
1440 #define _TRISA0 0x01
1441 #define _TRISA1 0x02
1442 #define _TRISA2 0x04
1443 #define _TRISA3 0x08
1444 #define _TRISA4 0x10
1445 #define _TRISA5 0x20
1446 #define _TRISA6 0x40
1447 #define _TRISA7 0x80
1449 //==============================================================================
1452 //==============================================================================
1453 // TRISB Bits
1455 extern __at(0x008D) __sfr TRISB;
1457 typedef struct
1459 unsigned TRISB0 : 1;
1460 unsigned TRISB1 : 1;
1461 unsigned TRISB2 : 1;
1462 unsigned TRISB3 : 1;
1463 unsigned TRISB4 : 1;
1464 unsigned TRISB5 : 1;
1465 unsigned TRISB6 : 1;
1466 unsigned TRISB7 : 1;
1467 } __TRISBbits_t;
1469 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
1471 #define _TRISB0 0x01
1472 #define _TRISB1 0x02
1473 #define _TRISB2 0x04
1474 #define _TRISB3 0x08
1475 #define _TRISB4 0x10
1476 #define _TRISB5 0x20
1477 #define _TRISB6 0x40
1478 #define _TRISB7 0x80
1480 //==============================================================================
1483 //==============================================================================
1484 // TRISC Bits
1486 extern __at(0x008E) __sfr TRISC;
1488 typedef struct
1490 unsigned TRISC0 : 1;
1491 unsigned TRISC1 : 1;
1492 unsigned TRISC2 : 1;
1493 unsigned TRISC3 : 1;
1494 unsigned TRISC4 : 1;
1495 unsigned TRISC5 : 1;
1496 unsigned TRISC6 : 1;
1497 unsigned TRISC7 : 1;
1498 } __TRISCbits_t;
1500 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1502 #define _TRISC0 0x01
1503 #define _TRISC1 0x02
1504 #define _TRISC2 0x04
1505 #define _TRISC3 0x08
1506 #define _TRISC4 0x10
1507 #define _TRISC5 0x20
1508 #define _TRISC6 0x40
1509 #define _TRISC7 0x80
1511 //==============================================================================
1514 //==============================================================================
1515 // TRISE Bits
1517 extern __at(0x0090) __sfr TRISE;
1519 typedef struct
1521 unsigned : 1;
1522 unsigned : 1;
1523 unsigned : 1;
1524 unsigned TRISE3 : 1;
1525 unsigned : 1;
1526 unsigned : 1;
1527 unsigned : 1;
1528 unsigned : 1;
1529 } __TRISEbits_t;
1531 extern __at(0x0090) volatile __TRISEbits_t TRISEbits;
1533 #define _TRISE3 0x08
1535 //==============================================================================
1538 //==============================================================================
1539 // PIE1 Bits
1541 extern __at(0x0091) __sfr PIE1;
1543 typedef union
1545 struct
1547 unsigned TMR1IE : 1;
1548 unsigned TMR2IE : 1;
1549 unsigned CCP1IE : 1;
1550 unsigned SSP1IE : 1;
1551 unsigned TXIE : 1;
1552 unsigned RCIE : 1;
1553 unsigned ADIE : 1;
1554 unsigned TMR1GIE : 1;
1557 struct
1559 unsigned : 1;
1560 unsigned : 1;
1561 unsigned CCPIE : 1;
1562 unsigned : 1;
1563 unsigned : 1;
1564 unsigned : 1;
1565 unsigned : 1;
1566 unsigned : 1;
1568 } __PIE1bits_t;
1570 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
1572 #define _TMR1IE 0x01
1573 #define _TMR2IE 0x02
1574 #define _CCP1IE 0x04
1575 #define _CCPIE 0x04
1576 #define _SSP1IE 0x08
1577 #define _TXIE 0x10
1578 #define _RCIE 0x20
1579 #define _ADIE 0x40
1580 #define _TMR1GIE 0x80
1582 //==============================================================================
1585 //==============================================================================
1586 // PIE2 Bits
1588 extern __at(0x0092) __sfr PIE2;
1590 typedef struct
1592 unsigned CCP2IE : 1;
1593 unsigned C3IE : 1;
1594 unsigned C4IE : 1;
1595 unsigned BCL1IE : 1;
1596 unsigned COGIE : 1;
1597 unsigned C1IE : 1;
1598 unsigned C2IE : 1;
1599 unsigned OSFIE : 1;
1600 } __PIE2bits_t;
1602 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
1604 #define _CCP2IE 0x01
1605 #define _C3IE 0x02
1606 #define _C4IE 0x04
1607 #define _BCL1IE 0x08
1608 #define _COGIE 0x10
1609 #define _C1IE 0x20
1610 #define _C2IE 0x40
1611 #define _OSFIE 0x80
1613 //==============================================================================
1616 //==============================================================================
1617 // PIE3 Bits
1619 extern __at(0x0093) __sfr PIE3;
1621 typedef struct
1623 unsigned CLC1IE : 1;
1624 unsigned CLC2IE : 1;
1625 unsigned CLC3IE : 1;
1626 unsigned CLC4IE : 1;
1627 unsigned ZCDIE : 1;
1628 unsigned COG2IE : 1;
1629 unsigned : 1;
1630 unsigned : 1;
1631 } __PIE3bits_t;
1633 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
1635 #define _CLC1IE 0x01
1636 #define _CLC2IE 0x02
1637 #define _CLC3IE 0x04
1638 #define _CLC4IE 0x08
1639 #define _ZCDIE 0x10
1640 #define _COG2IE 0x20
1642 //==============================================================================
1645 //==============================================================================
1646 // PIE4 Bits
1648 extern __at(0x0094) __sfr PIE4;
1650 typedef struct
1652 unsigned TMR4IE : 1;
1653 unsigned TMR6IE : 1;
1654 unsigned TMR3IE : 1;
1655 unsigned TMR3GIE : 1;
1656 unsigned TMR5IE : 1;
1657 unsigned TMR5GIE : 1;
1658 unsigned TMR8IE : 1;
1659 unsigned : 1;
1660 } __PIE4bits_t;
1662 extern __at(0x0094) volatile __PIE4bits_t PIE4bits;
1664 #define _TMR4IE 0x01
1665 #define _TMR6IE 0x02
1666 #define _TMR3IE 0x04
1667 #define _TMR3GIE 0x08
1668 #define _TMR5IE 0x10
1669 #define _TMR5GIE 0x20
1670 #define _TMR8IE 0x40
1672 //==============================================================================
1675 //==============================================================================
1676 // PIE5 Bits
1678 extern __at(0x0095) __sfr PIE5;
1680 typedef struct
1682 unsigned C5IE : 1;
1683 unsigned C6IE : 1;
1684 unsigned : 1;
1685 unsigned : 1;
1686 unsigned COG3IE : 1;
1687 unsigned : 1;
1688 unsigned CCP7IE : 1;
1689 unsigned : 1;
1690 } __PIE5bits_t;
1692 extern __at(0x0095) volatile __PIE5bits_t PIE5bits;
1694 #define _C5IE 0x01
1695 #define _C6IE 0x02
1696 #define _COG3IE 0x10
1697 #define _CCP7IE 0x40
1699 //==============================================================================
1702 //==============================================================================
1703 // PIE6 Bits
1705 extern __at(0x0096) __sfr PIE6;
1707 typedef struct
1709 unsigned PWM5IE : 1;
1710 unsigned PWM6IE : 1;
1711 unsigned PWM11IE : 1;
1712 unsigned : 1;
1713 unsigned : 1;
1714 unsigned : 1;
1715 unsigned : 1;
1716 unsigned : 1;
1717 } __PIE6bits_t;
1719 extern __at(0x0096) volatile __PIE6bits_t PIE6bits;
1721 #define _PWM5IE 0x01
1722 #define _PWM6IE 0x02
1723 #define _PWM11IE 0x04
1725 //==============================================================================
1728 //==============================================================================
1729 // OPTION_REG Bits
1731 extern __at(0x0097) __sfr OPTION_REG;
1733 typedef union
1735 struct
1737 unsigned PS0 : 1;
1738 unsigned PS1 : 1;
1739 unsigned PS2 : 1;
1740 unsigned PSA : 1;
1741 unsigned TMR0SE : 1;
1742 unsigned TMR0CS : 1;
1743 unsigned INTEDG : 1;
1744 unsigned NOT_WPUEN : 1;
1747 struct
1749 unsigned : 1;
1750 unsigned : 1;
1751 unsigned : 1;
1752 unsigned : 1;
1753 unsigned T0SE : 1;
1754 unsigned T0CS : 1;
1755 unsigned : 1;
1756 unsigned : 1;
1759 struct
1761 unsigned PS : 3;
1762 unsigned : 5;
1764 } __OPTION_REGbits_t;
1766 extern __at(0x0097) volatile __OPTION_REGbits_t OPTION_REGbits;
1768 #define _PS0 0x01
1769 #define _PS1 0x02
1770 #define _PS2 0x04
1771 #define _PSA 0x08
1772 #define _TMR0SE 0x10
1773 #define _T0SE 0x10
1774 #define _TMR0CS 0x20
1775 #define _T0CS 0x20
1776 #define _INTEDG 0x40
1777 #define _NOT_WPUEN 0x80
1779 //==============================================================================
1782 //==============================================================================
1783 // PCON Bits
1785 extern __at(0x0098) __sfr PCON;
1787 typedef struct
1789 unsigned NOT_BOR : 1;
1790 unsigned NOT_POR : 1;
1791 unsigned NOT_RI : 1;
1792 unsigned NOT_RMCLR : 1;
1793 unsigned NOT_RWDT : 1;
1794 unsigned : 1;
1795 unsigned STKUNF : 1;
1796 unsigned STKOVF : 1;
1797 } __PCONbits_t;
1799 extern __at(0x0098) volatile __PCONbits_t PCONbits;
1801 #define _NOT_BOR 0x01
1802 #define _NOT_POR 0x02
1803 #define _NOT_RI 0x04
1804 #define _NOT_RMCLR 0x08
1805 #define _NOT_RWDT 0x10
1806 #define _STKUNF 0x40
1807 #define _STKOVF 0x80
1809 //==============================================================================
1812 //==============================================================================
1813 // WDTCON Bits
1815 extern __at(0x0099) __sfr WDTCON;
1817 typedef union
1819 struct
1821 unsigned SWDTEN : 1;
1822 unsigned WDTPS0 : 1;
1823 unsigned WDTPS1 : 1;
1824 unsigned WDTPS2 : 1;
1825 unsigned WDTPS3 : 1;
1826 unsigned WDTPS4 : 1;
1827 unsigned : 1;
1828 unsigned : 1;
1831 struct
1833 unsigned : 1;
1834 unsigned WDTPS : 5;
1835 unsigned : 2;
1837 } __WDTCONbits_t;
1839 extern __at(0x0099) volatile __WDTCONbits_t WDTCONbits;
1841 #define _SWDTEN 0x01
1842 #define _WDTPS0 0x02
1843 #define _WDTPS1 0x04
1844 #define _WDTPS2 0x08
1845 #define _WDTPS3 0x10
1846 #define _WDTPS4 0x20
1848 //==============================================================================
1851 //==============================================================================
1852 // OSCTUNE Bits
1854 extern __at(0x009A) __sfr OSCTUNE;
1856 typedef union
1858 struct
1860 unsigned TUN0 : 1;
1861 unsigned TUN1 : 1;
1862 unsigned TUN2 : 1;
1863 unsigned TUN3 : 1;
1864 unsigned TUN4 : 1;
1865 unsigned TUN5 : 1;
1866 unsigned : 1;
1867 unsigned : 1;
1870 struct
1872 unsigned TUN : 6;
1873 unsigned : 2;
1875 } __OSCTUNEbits_t;
1877 extern __at(0x009A) volatile __OSCTUNEbits_t OSCTUNEbits;
1879 #define _TUN0 0x01
1880 #define _TUN1 0x02
1881 #define _TUN2 0x04
1882 #define _TUN3 0x08
1883 #define _TUN4 0x10
1884 #define _TUN5 0x20
1886 //==============================================================================
1889 //==============================================================================
1890 // OSCCON Bits
1892 extern __at(0x009B) __sfr OSCCON;
1894 typedef union
1896 struct
1898 unsigned SCS0 : 1;
1899 unsigned SCS1 : 1;
1900 unsigned : 1;
1901 unsigned IRCF0 : 1;
1902 unsigned IRCF1 : 1;
1903 unsigned IRCF2 : 1;
1904 unsigned IRCF3 : 1;
1905 unsigned SPLLEN : 1;
1908 struct
1910 unsigned SCS : 2;
1911 unsigned : 6;
1914 struct
1916 unsigned : 3;
1917 unsigned IRCF : 4;
1918 unsigned : 1;
1920 } __OSCCONbits_t;
1922 extern __at(0x009B) volatile __OSCCONbits_t OSCCONbits;
1924 #define _SCS0 0x01
1925 #define _SCS1 0x02
1926 #define _IRCF0 0x08
1927 #define _IRCF1 0x10
1928 #define _IRCF2 0x20
1929 #define _IRCF3 0x40
1930 #define _SPLLEN 0x80
1932 //==============================================================================
1935 //==============================================================================
1936 // OSCSTAT Bits
1938 extern __at(0x009C) __sfr OSCSTAT;
1940 typedef struct
1942 unsigned HFIOFS : 1;
1943 unsigned LFIOFR : 1;
1944 unsigned MFIOFR : 1;
1945 unsigned HFIOFL : 1;
1946 unsigned HFIOFR : 1;
1947 unsigned OSTS : 1;
1948 unsigned PLLR : 1;
1949 unsigned SOSCR : 1;
1950 } __OSCSTATbits_t;
1952 extern __at(0x009C) volatile __OSCSTATbits_t OSCSTATbits;
1954 #define _HFIOFS 0x01
1955 #define _LFIOFR 0x02
1956 #define _MFIOFR 0x04
1957 #define _HFIOFL 0x08
1958 #define _HFIOFR 0x10
1959 #define _OSTS 0x20
1960 #define _PLLR 0x40
1961 #define _SOSCR 0x80
1963 //==============================================================================
1966 //==============================================================================
1967 // BORCON Bits
1969 extern __at(0x009D) __sfr BORCON;
1971 typedef struct
1973 unsigned BORRDY : 1;
1974 unsigned : 1;
1975 unsigned : 1;
1976 unsigned : 1;
1977 unsigned : 1;
1978 unsigned : 1;
1979 unsigned BORFS : 1;
1980 unsigned SBOREN : 1;
1981 } __BORCONbits_t;
1983 extern __at(0x009D) volatile __BORCONbits_t BORCONbits;
1985 #define _BORRDY 0x01
1986 #define _BORFS 0x40
1987 #define _SBOREN 0x80
1989 //==============================================================================
1992 //==============================================================================
1993 // FVRCON Bits
1995 extern __at(0x009E) __sfr FVRCON;
1997 typedef struct
1999 unsigned : 1;
2000 unsigned : 1;
2001 unsigned : 1;
2002 unsigned : 1;
2003 unsigned TSRNG : 1;
2004 unsigned TSEN : 1;
2005 unsigned FVRRDY : 1;
2006 unsigned FVREN : 1;
2007 } __FVRCONbits_t;
2009 extern __at(0x009E) volatile __FVRCONbits_t FVRCONbits;
2011 #define _TSRNG 0x10
2012 #define _TSEN 0x20
2013 #define _FVRRDY 0x40
2014 #define _FVREN 0x80
2016 //==============================================================================
2019 //==============================================================================
2020 // ZCD1CON Bits
2022 extern __at(0x009F) __sfr ZCD1CON;
2024 typedef struct
2026 unsigned ZCD1INTN : 1;
2027 unsigned ZCD1INTP : 1;
2028 unsigned : 1;
2029 unsigned : 1;
2030 unsigned ZCD1POL : 1;
2031 unsigned ZCD1OUT : 1;
2032 unsigned : 1;
2033 unsigned ZCD1EN : 1;
2034 } __ZCD1CONbits_t;
2036 extern __at(0x009F) volatile __ZCD1CONbits_t ZCD1CONbits;
2038 #define _ZCD1INTN 0x01
2039 #define _ZCD1INTP 0x02
2040 #define _ZCD1POL 0x10
2041 #define _ZCD1OUT 0x20
2042 #define _ZCD1EN 0x80
2044 //==============================================================================
2047 //==============================================================================
2048 // LATA Bits
2050 extern __at(0x010C) __sfr LATA;
2052 typedef struct
2054 unsigned LATA0 : 1;
2055 unsigned LATA1 : 1;
2056 unsigned LATA2 : 1;
2057 unsigned LATA3 : 1;
2058 unsigned LATA4 : 1;
2059 unsigned LATA5 : 1;
2060 unsigned LATA6 : 1;
2061 unsigned LATA7 : 1;
2062 } __LATAbits_t;
2064 extern __at(0x010C) volatile __LATAbits_t LATAbits;
2066 #define _LATA0 0x01
2067 #define _LATA1 0x02
2068 #define _LATA2 0x04
2069 #define _LATA3 0x08
2070 #define _LATA4 0x10
2071 #define _LATA5 0x20
2072 #define _LATA6 0x40
2073 #define _LATA7 0x80
2075 //==============================================================================
2078 //==============================================================================
2079 // LATB Bits
2081 extern __at(0x010D) __sfr LATB;
2083 typedef struct
2085 unsigned LATB0 : 1;
2086 unsigned LATB1 : 1;
2087 unsigned LATB2 : 1;
2088 unsigned LATB3 : 1;
2089 unsigned LATB4 : 1;
2090 unsigned LATB5 : 1;
2091 unsigned LATB6 : 1;
2092 unsigned LATB7 : 1;
2093 } __LATBbits_t;
2095 extern __at(0x010D) volatile __LATBbits_t LATBbits;
2097 #define _LATB0 0x01
2098 #define _LATB1 0x02
2099 #define _LATB2 0x04
2100 #define _LATB3 0x08
2101 #define _LATB4 0x10
2102 #define _LATB5 0x20
2103 #define _LATB6 0x40
2104 #define _LATB7 0x80
2106 //==============================================================================
2109 //==============================================================================
2110 // LATC Bits
2112 extern __at(0x010E) __sfr LATC;
2114 typedef struct
2116 unsigned LATC0 : 1;
2117 unsigned LATC1 : 1;
2118 unsigned LATC2 : 1;
2119 unsigned LATC3 : 1;
2120 unsigned LATC4 : 1;
2121 unsigned LATC5 : 1;
2122 unsigned LATC6 : 1;
2123 unsigned LATC7 : 1;
2124 } __LATCbits_t;
2126 extern __at(0x010E) volatile __LATCbits_t LATCbits;
2128 #define _LATC0 0x01
2129 #define _LATC1 0x02
2130 #define _LATC2 0x04
2131 #define _LATC3 0x08
2132 #define _LATC4 0x10
2133 #define _LATC5 0x20
2134 #define _LATC6 0x40
2135 #define _LATC7 0x80
2137 //==============================================================================
2140 //==============================================================================
2141 // CMOUT Bits
2143 extern __at(0x0111) __sfr CMOUT;
2145 typedef struct
2147 unsigned MC1OUT : 1;
2148 unsigned MC2OUT : 1;
2149 unsigned MC3OUT : 1;
2150 unsigned MC4OUT : 1;
2151 unsigned MC5OUT : 1;
2152 unsigned MC6OUT : 1;
2153 unsigned : 1;
2154 unsigned : 1;
2155 } __CMOUTbits_t;
2157 extern __at(0x0111) volatile __CMOUTbits_t CMOUTbits;
2159 #define _MC1OUT 0x01
2160 #define _MC2OUT 0x02
2161 #define _MC3OUT 0x04
2162 #define _MC4OUT 0x08
2163 #define _MC5OUT 0x10
2164 #define _MC6OUT 0x20
2166 //==============================================================================
2169 //==============================================================================
2170 // CM1CON0 Bits
2172 extern __at(0x0112) __sfr CM1CON0;
2174 typedef union
2176 struct
2178 unsigned SYNC : 1;
2179 unsigned HYS : 1;
2180 unsigned Reserved : 1;
2181 unsigned ZLF : 1;
2182 unsigned POL : 1;
2183 unsigned : 1;
2184 unsigned OUT : 1;
2185 unsigned ON : 1;
2188 struct
2190 unsigned C1SYNC : 1;
2191 unsigned C1HYS : 1;
2192 unsigned C1SP : 1;
2193 unsigned C1ZLF : 1;
2194 unsigned C1POL : 1;
2195 unsigned : 1;
2196 unsigned C1OUT : 1;
2197 unsigned C1ON : 1;
2199 } __CM1CON0bits_t;
2201 extern __at(0x0112) volatile __CM1CON0bits_t CM1CON0bits;
2203 #define _CM1CON0_SYNC 0x01
2204 #define _CM1CON0_C1SYNC 0x01
2205 #define _CM1CON0_HYS 0x02
2206 #define _CM1CON0_C1HYS 0x02
2207 #define _CM1CON0_Reserved 0x04
2208 #define _CM1CON0_C1SP 0x04
2209 #define _CM1CON0_ZLF 0x08
2210 #define _CM1CON0_C1ZLF 0x08
2211 #define _CM1CON0_POL 0x10
2212 #define _CM1CON0_C1POL 0x10
2213 #define _CM1CON0_OUT 0x40
2214 #define _CM1CON0_C1OUT 0x40
2215 #define _CM1CON0_ON 0x80
2216 #define _CM1CON0_C1ON 0x80
2218 //==============================================================================
2221 //==============================================================================
2222 // CM1CON1 Bits
2224 extern __at(0x0113) __sfr CM1CON1;
2226 typedef union
2228 struct
2230 unsigned INTN : 1;
2231 unsigned INTP : 1;
2232 unsigned : 1;
2233 unsigned : 1;
2234 unsigned : 1;
2235 unsigned : 1;
2236 unsigned : 1;
2237 unsigned : 1;
2240 struct
2242 unsigned C1INTN : 1;
2243 unsigned C1INTP : 1;
2244 unsigned : 1;
2245 unsigned : 1;
2246 unsigned : 1;
2247 unsigned : 1;
2248 unsigned : 1;
2249 unsigned : 1;
2251 } __CM1CON1bits_t;
2253 extern __at(0x0113) volatile __CM1CON1bits_t CM1CON1bits;
2255 #define _CM1CON1_INTN 0x01
2256 #define _CM1CON1_C1INTN 0x01
2257 #define _CM1CON1_INTP 0x02
2258 #define _CM1CON1_C1INTP 0x02
2260 //==============================================================================
2263 //==============================================================================
2264 // CM1NSEL Bits
2266 extern __at(0x0114) __sfr CM1NSEL;
2268 typedef union
2270 struct
2272 unsigned C1NCH0 : 1;
2273 unsigned C1NCH1 : 1;
2274 unsigned C1NCH2 : 1;
2275 unsigned C1NCH3 : 1;
2276 unsigned : 1;
2277 unsigned : 1;
2278 unsigned : 1;
2279 unsigned : 1;
2282 struct
2284 unsigned C1NCH : 4;
2285 unsigned : 4;
2287 } __CM1NSELbits_t;
2289 extern __at(0x0114) volatile __CM1NSELbits_t CM1NSELbits;
2291 #define _C1NCH0 0x01
2292 #define _C1NCH1 0x02
2293 #define _C1NCH2 0x04
2294 #define _C1NCH3 0x08
2296 //==============================================================================
2299 //==============================================================================
2300 // CM1PSEL Bits
2302 extern __at(0x0115) __sfr CM1PSEL;
2304 typedef union
2306 struct
2308 unsigned PCH0 : 1;
2309 unsigned PCH1 : 1;
2310 unsigned PCH2 : 1;
2311 unsigned PCH3 : 1;
2312 unsigned : 1;
2313 unsigned : 1;
2314 unsigned : 1;
2315 unsigned : 1;
2318 struct
2320 unsigned C1PCH0 : 1;
2321 unsigned C1PCH1 : 1;
2322 unsigned C1PCH2 : 1;
2323 unsigned C1PCH3 : 1;
2324 unsigned : 1;
2325 unsigned : 1;
2326 unsigned : 1;
2327 unsigned : 1;
2330 struct
2332 unsigned C1PCH : 4;
2333 unsigned : 4;
2336 struct
2338 unsigned PCH : 4;
2339 unsigned : 4;
2341 } __CM1PSELbits_t;
2343 extern __at(0x0115) volatile __CM1PSELbits_t CM1PSELbits;
2345 #define _PCH0 0x01
2346 #define _C1PCH0 0x01
2347 #define _PCH1 0x02
2348 #define _C1PCH1 0x02
2349 #define _PCH2 0x04
2350 #define _C1PCH2 0x04
2351 #define _PCH3 0x08
2352 #define _C1PCH3 0x08
2354 //==============================================================================
2357 //==============================================================================
2358 // CM2CON0 Bits
2360 extern __at(0x0116) __sfr CM2CON0;
2362 typedef union
2364 struct
2366 unsigned SYNC : 1;
2367 unsigned HYS : 1;
2368 unsigned Reserved : 1;
2369 unsigned ZLF : 1;
2370 unsigned POL : 1;
2371 unsigned : 1;
2372 unsigned OUT : 1;
2373 unsigned ON : 1;
2376 struct
2378 unsigned C2SYNC : 1;
2379 unsigned C2HYS : 1;
2380 unsigned C2SP : 1;
2381 unsigned C2ZLF : 1;
2382 unsigned C2POL : 1;
2383 unsigned : 1;
2384 unsigned C2OUT : 1;
2385 unsigned C2ON : 1;
2387 } __CM2CON0bits_t;
2389 extern __at(0x0116) volatile __CM2CON0bits_t CM2CON0bits;
2391 #define _CM2CON0_SYNC 0x01
2392 #define _CM2CON0_C2SYNC 0x01
2393 #define _CM2CON0_HYS 0x02
2394 #define _CM2CON0_C2HYS 0x02
2395 #define _CM2CON0_Reserved 0x04
2396 #define _CM2CON0_C2SP 0x04
2397 #define _CM2CON0_ZLF 0x08
2398 #define _CM2CON0_C2ZLF 0x08
2399 #define _CM2CON0_POL 0x10
2400 #define _CM2CON0_C2POL 0x10
2401 #define _CM2CON0_OUT 0x40
2402 #define _CM2CON0_C2OUT 0x40
2403 #define _CM2CON0_ON 0x80
2404 #define _CM2CON0_C2ON 0x80
2406 //==============================================================================
2409 //==============================================================================
2410 // CM2CON1 Bits
2412 extern __at(0x0117) __sfr CM2CON1;
2414 typedef union
2416 struct
2418 unsigned INTN : 1;
2419 unsigned INTP : 1;
2420 unsigned : 1;
2421 unsigned : 1;
2422 unsigned : 1;
2423 unsigned : 1;
2424 unsigned : 1;
2425 unsigned : 1;
2428 struct
2430 unsigned C2INTN : 1;
2431 unsigned C2INTP : 1;
2432 unsigned : 1;
2433 unsigned : 1;
2434 unsigned : 1;
2435 unsigned : 1;
2436 unsigned : 1;
2437 unsigned : 1;
2439 } __CM2CON1bits_t;
2441 extern __at(0x0117) volatile __CM2CON1bits_t CM2CON1bits;
2443 #define _CM2CON1_INTN 0x01
2444 #define _CM2CON1_C2INTN 0x01
2445 #define _CM2CON1_INTP 0x02
2446 #define _CM2CON1_C2INTP 0x02
2448 //==============================================================================
2451 //==============================================================================
2452 // CM2NSEL Bits
2454 extern __at(0x0118) __sfr CM2NSEL;
2456 typedef union
2458 struct
2460 unsigned C2NCH0 : 1;
2461 unsigned C2NCH1 : 1;
2462 unsigned C2NCH2 : 1;
2463 unsigned C2NCH3 : 1;
2464 unsigned : 1;
2465 unsigned : 1;
2466 unsigned : 1;
2467 unsigned : 1;
2470 struct
2472 unsigned C2NCH : 4;
2473 unsigned : 4;
2475 } __CM2NSELbits_t;
2477 extern __at(0x0118) volatile __CM2NSELbits_t CM2NSELbits;
2479 #define _C2NCH0 0x01
2480 #define _C2NCH1 0x02
2481 #define _C2NCH2 0x04
2482 #define _C2NCH3 0x08
2484 //==============================================================================
2487 //==============================================================================
2488 // CM2PSEL Bits
2490 extern __at(0x0119) __sfr CM2PSEL;
2492 typedef union
2494 struct
2496 unsigned PCH0 : 1;
2497 unsigned PCH1 : 1;
2498 unsigned PCH2 : 1;
2499 unsigned PCH3 : 1;
2500 unsigned : 1;
2501 unsigned : 1;
2502 unsigned : 1;
2503 unsigned : 1;
2506 struct
2508 unsigned C2PCH0 : 1;
2509 unsigned C2PCH1 : 1;
2510 unsigned C2PCH2 : 1;
2511 unsigned C2PCH3 : 1;
2512 unsigned : 1;
2513 unsigned : 1;
2514 unsigned : 1;
2515 unsigned : 1;
2518 struct
2520 unsigned PCH : 4;
2521 unsigned : 4;
2524 struct
2526 unsigned C2PCH : 4;
2527 unsigned : 4;
2529 } __CM2PSELbits_t;
2531 extern __at(0x0119) volatile __CM2PSELbits_t CM2PSELbits;
2533 #define _CM2PSEL_PCH0 0x01
2534 #define _CM2PSEL_C2PCH0 0x01
2535 #define _CM2PSEL_PCH1 0x02
2536 #define _CM2PSEL_C2PCH1 0x02
2537 #define _CM2PSEL_PCH2 0x04
2538 #define _CM2PSEL_C2PCH2 0x04
2539 #define _CM2PSEL_PCH3 0x08
2540 #define _CM2PSEL_C2PCH3 0x08
2542 //==============================================================================
2545 //==============================================================================
2546 // CM3CON0 Bits
2548 extern __at(0x011A) __sfr CM3CON0;
2550 typedef union
2552 struct
2554 unsigned SYNC : 1;
2555 unsigned HYS : 1;
2556 unsigned Reserved : 1;
2557 unsigned ZLF : 1;
2558 unsigned POL : 1;
2559 unsigned : 1;
2560 unsigned OUT : 1;
2561 unsigned ON : 1;
2564 struct
2566 unsigned C3SYNC : 1;
2567 unsigned C3HYS : 1;
2568 unsigned C3SP : 1;
2569 unsigned C3ZLF : 1;
2570 unsigned C3POL : 1;
2571 unsigned : 1;
2572 unsigned C3OUT : 1;
2573 unsigned C3ON : 1;
2575 } __CM3CON0bits_t;
2577 extern __at(0x011A) volatile __CM3CON0bits_t CM3CON0bits;
2579 #define _CM3CON0_SYNC 0x01
2580 #define _CM3CON0_C3SYNC 0x01
2581 #define _CM3CON0_HYS 0x02
2582 #define _CM3CON0_C3HYS 0x02
2583 #define _CM3CON0_Reserved 0x04
2584 #define _CM3CON0_C3SP 0x04
2585 #define _CM3CON0_ZLF 0x08
2586 #define _CM3CON0_C3ZLF 0x08
2587 #define _CM3CON0_POL 0x10
2588 #define _CM3CON0_C3POL 0x10
2589 #define _CM3CON0_OUT 0x40
2590 #define _CM3CON0_C3OUT 0x40
2591 #define _CM3CON0_ON 0x80
2592 #define _CM3CON0_C3ON 0x80
2594 //==============================================================================
2597 //==============================================================================
2598 // CM3CON1 Bits
2600 extern __at(0x011B) __sfr CM3CON1;
2602 typedef union
2604 struct
2606 unsigned INTN : 1;
2607 unsigned INTP : 1;
2608 unsigned : 1;
2609 unsigned : 1;
2610 unsigned : 1;
2611 unsigned : 1;
2612 unsigned : 1;
2613 unsigned : 1;
2616 struct
2618 unsigned C3INTN : 1;
2619 unsigned C3INTP : 1;
2620 unsigned : 1;
2621 unsigned : 1;
2622 unsigned : 1;
2623 unsigned : 1;
2624 unsigned : 1;
2625 unsigned : 1;
2627 } __CM3CON1bits_t;
2629 extern __at(0x011B) volatile __CM3CON1bits_t CM3CON1bits;
2631 #define _CM3CON1_INTN 0x01
2632 #define _CM3CON1_C3INTN 0x01
2633 #define _CM3CON1_INTP 0x02
2634 #define _CM3CON1_C3INTP 0x02
2636 //==============================================================================
2639 //==============================================================================
2640 // CM3NSEL Bits
2642 extern __at(0x011C) __sfr CM3NSEL;
2644 typedef union
2646 struct
2648 unsigned C3NCH0 : 1;
2649 unsigned C3NCH1 : 1;
2650 unsigned C3NCH2 : 1;
2651 unsigned C3NCH3 : 1;
2652 unsigned : 1;
2653 unsigned : 1;
2654 unsigned : 1;
2655 unsigned : 1;
2658 struct
2660 unsigned C3NCH : 4;
2661 unsigned : 4;
2663 } __CM3NSELbits_t;
2665 extern __at(0x011C) volatile __CM3NSELbits_t CM3NSELbits;
2667 #define _C3NCH0 0x01
2668 #define _C3NCH1 0x02
2669 #define _C3NCH2 0x04
2670 #define _C3NCH3 0x08
2672 //==============================================================================
2675 //==============================================================================
2676 // CM3PSEL Bits
2678 extern __at(0x011D) __sfr CM3PSEL;
2680 typedef union
2682 struct
2684 unsigned PCH0 : 1;
2685 unsigned PCH1 : 1;
2686 unsigned PCH2 : 1;
2687 unsigned PCH3 : 1;
2688 unsigned : 1;
2689 unsigned : 1;
2690 unsigned : 1;
2691 unsigned : 1;
2694 struct
2696 unsigned C3PCH0 : 1;
2697 unsigned C3PCH1 : 1;
2698 unsigned C3PCH2 : 1;
2699 unsigned C3PCH3 : 1;
2700 unsigned : 1;
2701 unsigned : 1;
2702 unsigned : 1;
2703 unsigned : 1;
2706 struct
2708 unsigned PCH : 4;
2709 unsigned : 4;
2712 struct
2714 unsigned C3PCH : 4;
2715 unsigned : 4;
2717 } __CM3PSELbits_t;
2719 extern __at(0x011D) volatile __CM3PSELbits_t CM3PSELbits;
2721 #define _CM3PSEL_PCH0 0x01
2722 #define _CM3PSEL_C3PCH0 0x01
2723 #define _CM3PSEL_PCH1 0x02
2724 #define _CM3PSEL_C3PCH1 0x02
2725 #define _CM3PSEL_PCH2 0x04
2726 #define _CM3PSEL_C3PCH2 0x04
2727 #define _CM3PSEL_PCH3 0x08
2728 #define _CM3PSEL_C3PCH3 0x08
2730 //==============================================================================
2733 //==============================================================================
2734 // ANSELA Bits
2736 extern __at(0x018C) __sfr ANSELA;
2738 typedef union
2740 struct
2742 unsigned ANSA0 : 1;
2743 unsigned ANSA1 : 1;
2744 unsigned ANSA2 : 1;
2745 unsigned ANSA3 : 1;
2746 unsigned ANSA4 : 1;
2747 unsigned ANSA5 : 1;
2748 unsigned : 1;
2749 unsigned : 1;
2752 struct
2754 unsigned ANSA : 6;
2755 unsigned : 2;
2757 } __ANSELAbits_t;
2759 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2761 #define _ANSA0 0x01
2762 #define _ANSA1 0x02
2763 #define _ANSA2 0x04
2764 #define _ANSA3 0x08
2765 #define _ANSA4 0x10
2766 #define _ANSA5 0x20
2768 //==============================================================================
2771 //==============================================================================
2772 // ANSELB Bits
2774 extern __at(0x018D) __sfr ANSELB;
2776 typedef union
2778 struct
2780 unsigned ANSB0 : 1;
2781 unsigned ANSB1 : 1;
2782 unsigned ANSB2 : 1;
2783 unsigned ANSB3 : 1;
2784 unsigned ANSB4 : 1;
2785 unsigned ANSB5 : 1;
2786 unsigned : 1;
2787 unsigned : 1;
2790 struct
2792 unsigned ANSB : 6;
2793 unsigned : 2;
2795 } __ANSELBbits_t;
2797 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2799 #define _ANSB0 0x01
2800 #define _ANSB1 0x02
2801 #define _ANSB2 0x04
2802 #define _ANSB3 0x08
2803 #define _ANSB4 0x10
2804 #define _ANSB5 0x20
2806 //==============================================================================
2809 //==============================================================================
2810 // ANSELC Bits
2812 extern __at(0x018E) __sfr ANSELC;
2814 typedef struct
2816 unsigned : 1;
2817 unsigned : 1;
2818 unsigned ANSC2 : 1;
2819 unsigned ANSC3 : 1;
2820 unsigned ANSC4 : 1;
2821 unsigned ANSC5 : 1;
2822 unsigned ANSC6 : 1;
2823 unsigned ANSC7 : 1;
2824 } __ANSELCbits_t;
2826 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2828 #define _ANSC2 0x04
2829 #define _ANSC3 0x08
2830 #define _ANSC4 0x10
2831 #define _ANSC5 0x20
2832 #define _ANSC6 0x40
2833 #define _ANSC7 0x80
2835 //==============================================================================
2837 extern __at(0x0191) __sfr PMADR;
2838 extern __at(0x0191) __sfr PMADRL;
2839 extern __at(0x0192) __sfr PMADRH;
2840 extern __at(0x0193) __sfr PMDAT;
2841 extern __at(0x0193) __sfr PMDATL;
2842 extern __at(0x0194) __sfr PMDATH;
2844 //==============================================================================
2845 // PMCON1 Bits
2847 extern __at(0x0195) __sfr PMCON1;
2849 typedef struct
2851 unsigned RD : 1;
2852 unsigned WR : 1;
2853 unsigned WREN : 1;
2854 unsigned WRERR : 1;
2855 unsigned FREE : 1;
2856 unsigned LWLO : 1;
2857 unsigned CFGS : 1;
2858 unsigned : 1;
2859 } __PMCON1bits_t;
2861 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
2863 #define _RD 0x01
2864 #define _WR 0x02
2865 #define _WREN 0x04
2866 #define _WRERR 0x08
2867 #define _FREE 0x10
2868 #define _LWLO 0x20
2869 #define _CFGS 0x40
2871 //==============================================================================
2873 extern __at(0x0196) __sfr PMCON2;
2874 extern __at(0x0199) __sfr RC1REG;
2875 extern __at(0x0199) __sfr RCREG;
2876 extern __at(0x0199) __sfr RCREG1;
2877 extern __at(0x019A) __sfr TX1REG;
2878 extern __at(0x019A) __sfr TXREG;
2879 extern __at(0x019A) __sfr TXREG1;
2880 extern __at(0x019B) __sfr SP1BRG;
2881 extern __at(0x019B) __sfr SP1BRGL;
2882 extern __at(0x019B) __sfr SPBRG;
2883 extern __at(0x019B) __sfr SPBRG1;
2884 extern __at(0x019B) __sfr SPBRGL;
2885 extern __at(0x019C) __sfr SP1BRGH;
2886 extern __at(0x019C) __sfr SPBRGH;
2887 extern __at(0x019C) __sfr SPBRGH1;
2889 //==============================================================================
2890 // RC1STA Bits
2892 extern __at(0x019D) __sfr RC1STA;
2894 typedef struct
2896 unsigned RX9D : 1;
2897 unsigned OERR : 1;
2898 unsigned FERR : 1;
2899 unsigned ADDEN : 1;
2900 unsigned CREN : 1;
2901 unsigned SREN : 1;
2902 unsigned RX9 : 1;
2903 unsigned SPEN : 1;
2904 } __RC1STAbits_t;
2906 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2908 #define _RX9D 0x01
2909 #define _OERR 0x02
2910 #define _FERR 0x04
2911 #define _ADDEN 0x08
2912 #define _CREN 0x10
2913 #define _SREN 0x20
2914 #define _RX9 0x40
2915 #define _SPEN 0x80
2917 //==============================================================================
2920 //==============================================================================
2921 // RCSTA Bits
2923 extern __at(0x019D) __sfr RCSTA;
2925 typedef struct
2927 unsigned RX9D : 1;
2928 unsigned OERR : 1;
2929 unsigned FERR : 1;
2930 unsigned ADDEN : 1;
2931 unsigned CREN : 1;
2932 unsigned SREN : 1;
2933 unsigned RX9 : 1;
2934 unsigned SPEN : 1;
2935 } __RCSTAbits_t;
2937 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2939 #define _RCSTA_RX9D 0x01
2940 #define _RCSTA_OERR 0x02
2941 #define _RCSTA_FERR 0x04
2942 #define _RCSTA_ADDEN 0x08
2943 #define _RCSTA_CREN 0x10
2944 #define _RCSTA_SREN 0x20
2945 #define _RCSTA_RX9 0x40
2946 #define _RCSTA_SPEN 0x80
2948 //==============================================================================
2951 //==============================================================================
2952 // RCSTA1 Bits
2954 extern __at(0x019D) __sfr RCSTA1;
2956 typedef struct
2958 unsigned RX9D : 1;
2959 unsigned OERR : 1;
2960 unsigned FERR : 1;
2961 unsigned ADDEN : 1;
2962 unsigned CREN : 1;
2963 unsigned SREN : 1;
2964 unsigned RX9 : 1;
2965 unsigned SPEN : 1;
2966 } __RCSTA1bits_t;
2968 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2970 #define _RCSTA1_RX9D 0x01
2971 #define _RCSTA1_OERR 0x02
2972 #define _RCSTA1_FERR 0x04
2973 #define _RCSTA1_ADDEN 0x08
2974 #define _RCSTA1_CREN 0x10
2975 #define _RCSTA1_SREN 0x20
2976 #define _RCSTA1_RX9 0x40
2977 #define _RCSTA1_SPEN 0x80
2979 //==============================================================================
2982 //==============================================================================
2983 // TX1STA Bits
2985 extern __at(0x019E) __sfr TX1STA;
2987 typedef struct
2989 unsigned TX9D : 1;
2990 unsigned TRMT : 1;
2991 unsigned BRGH : 1;
2992 unsigned SENDB : 1;
2993 unsigned SYNC : 1;
2994 unsigned TXEN : 1;
2995 unsigned TX9 : 1;
2996 unsigned CSRC : 1;
2997 } __TX1STAbits_t;
2999 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
3001 #define _TX1STA_TX9D 0x01
3002 #define _TX1STA_TRMT 0x02
3003 #define _TX1STA_BRGH 0x04
3004 #define _TX1STA_SENDB 0x08
3005 #define _TX1STA_SYNC 0x10
3006 #define _TX1STA_TXEN 0x20
3007 #define _TX1STA_TX9 0x40
3008 #define _TX1STA_CSRC 0x80
3010 //==============================================================================
3013 //==============================================================================
3014 // TXSTA Bits
3016 extern __at(0x019E) __sfr TXSTA;
3018 typedef struct
3020 unsigned TX9D : 1;
3021 unsigned TRMT : 1;
3022 unsigned BRGH : 1;
3023 unsigned SENDB : 1;
3024 unsigned SYNC : 1;
3025 unsigned TXEN : 1;
3026 unsigned TX9 : 1;
3027 unsigned CSRC : 1;
3028 } __TXSTAbits_t;
3030 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
3032 #define _TXSTA_TX9D 0x01
3033 #define _TXSTA_TRMT 0x02
3034 #define _TXSTA_BRGH 0x04
3035 #define _TXSTA_SENDB 0x08
3036 #define _TXSTA_SYNC 0x10
3037 #define _TXSTA_TXEN 0x20
3038 #define _TXSTA_TX9 0x40
3039 #define _TXSTA_CSRC 0x80
3041 //==============================================================================
3044 //==============================================================================
3045 // TXSTA1 Bits
3047 extern __at(0x019E) __sfr TXSTA1;
3049 typedef struct
3051 unsigned TX9D : 1;
3052 unsigned TRMT : 1;
3053 unsigned BRGH : 1;
3054 unsigned SENDB : 1;
3055 unsigned SYNC : 1;
3056 unsigned TXEN : 1;
3057 unsigned TX9 : 1;
3058 unsigned CSRC : 1;
3059 } __TXSTA1bits_t;
3061 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
3063 #define _TXSTA1_TX9D 0x01
3064 #define _TXSTA1_TRMT 0x02
3065 #define _TXSTA1_BRGH 0x04
3066 #define _TXSTA1_SENDB 0x08
3067 #define _TXSTA1_SYNC 0x10
3068 #define _TXSTA1_TXEN 0x20
3069 #define _TXSTA1_TX9 0x40
3070 #define _TXSTA1_CSRC 0x80
3072 //==============================================================================
3075 //==============================================================================
3076 // BAUD1CON Bits
3078 extern __at(0x019F) __sfr BAUD1CON;
3080 typedef struct
3082 unsigned ABDEN : 1;
3083 unsigned WUE : 1;
3084 unsigned : 1;
3085 unsigned BRG16 : 1;
3086 unsigned SCKP : 1;
3087 unsigned : 1;
3088 unsigned RCIDL : 1;
3089 unsigned ABDOVF : 1;
3090 } __BAUD1CONbits_t;
3092 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
3094 #define _ABDEN 0x01
3095 #define _WUE 0x02
3096 #define _BRG16 0x08
3097 #define _SCKP 0x10
3098 #define _RCIDL 0x40
3099 #define _ABDOVF 0x80
3101 //==============================================================================
3104 //==============================================================================
3105 // BAUDCON Bits
3107 extern __at(0x019F) __sfr BAUDCON;
3109 typedef struct
3111 unsigned ABDEN : 1;
3112 unsigned WUE : 1;
3113 unsigned : 1;
3114 unsigned BRG16 : 1;
3115 unsigned SCKP : 1;
3116 unsigned : 1;
3117 unsigned RCIDL : 1;
3118 unsigned ABDOVF : 1;
3119 } __BAUDCONbits_t;
3121 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
3123 #define _BAUDCON_ABDEN 0x01
3124 #define _BAUDCON_WUE 0x02
3125 #define _BAUDCON_BRG16 0x08
3126 #define _BAUDCON_SCKP 0x10
3127 #define _BAUDCON_RCIDL 0x40
3128 #define _BAUDCON_ABDOVF 0x80
3130 //==============================================================================
3133 //==============================================================================
3134 // BAUDCON1 Bits
3136 extern __at(0x019F) __sfr BAUDCON1;
3138 typedef struct
3140 unsigned ABDEN : 1;
3141 unsigned WUE : 1;
3142 unsigned : 1;
3143 unsigned BRG16 : 1;
3144 unsigned SCKP : 1;
3145 unsigned : 1;
3146 unsigned RCIDL : 1;
3147 unsigned ABDOVF : 1;
3148 } __BAUDCON1bits_t;
3150 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
3152 #define _BAUDCON1_ABDEN 0x01
3153 #define _BAUDCON1_WUE 0x02
3154 #define _BAUDCON1_BRG16 0x08
3155 #define _BAUDCON1_SCKP 0x10
3156 #define _BAUDCON1_RCIDL 0x40
3157 #define _BAUDCON1_ABDOVF 0x80
3159 //==============================================================================
3162 //==============================================================================
3163 // BAUDCTL Bits
3165 extern __at(0x019F) __sfr BAUDCTL;
3167 typedef struct
3169 unsigned ABDEN : 1;
3170 unsigned WUE : 1;
3171 unsigned : 1;
3172 unsigned BRG16 : 1;
3173 unsigned SCKP : 1;
3174 unsigned : 1;
3175 unsigned RCIDL : 1;
3176 unsigned ABDOVF : 1;
3177 } __BAUDCTLbits_t;
3179 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
3181 #define _BAUDCTL_ABDEN 0x01
3182 #define _BAUDCTL_WUE 0x02
3183 #define _BAUDCTL_BRG16 0x08
3184 #define _BAUDCTL_SCKP 0x10
3185 #define _BAUDCTL_RCIDL 0x40
3186 #define _BAUDCTL_ABDOVF 0x80
3188 //==============================================================================
3191 //==============================================================================
3192 // BAUDCTL1 Bits
3194 extern __at(0x019F) __sfr BAUDCTL1;
3196 typedef struct
3198 unsigned ABDEN : 1;
3199 unsigned WUE : 1;
3200 unsigned : 1;
3201 unsigned BRG16 : 1;
3202 unsigned SCKP : 1;
3203 unsigned : 1;
3204 unsigned RCIDL : 1;
3205 unsigned ABDOVF : 1;
3206 } __BAUDCTL1bits_t;
3208 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
3210 #define _BAUDCTL1_ABDEN 0x01
3211 #define _BAUDCTL1_WUE 0x02
3212 #define _BAUDCTL1_BRG16 0x08
3213 #define _BAUDCTL1_SCKP 0x10
3214 #define _BAUDCTL1_RCIDL 0x40
3215 #define _BAUDCTL1_ABDOVF 0x80
3217 //==============================================================================
3220 //==============================================================================
3221 // WPUA Bits
3223 extern __at(0x020C) __sfr WPUA;
3225 typedef struct
3227 unsigned WPUA0 : 1;
3228 unsigned WPUA1 : 1;
3229 unsigned WPUA2 : 1;
3230 unsigned WPUA3 : 1;
3231 unsigned WPUA4 : 1;
3232 unsigned WPUA5 : 1;
3233 unsigned WPUA6 : 1;
3234 unsigned WPUA7 : 1;
3235 } __WPUAbits_t;
3237 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
3239 #define _WPUA0 0x01
3240 #define _WPUA1 0x02
3241 #define _WPUA2 0x04
3242 #define _WPUA3 0x08
3243 #define _WPUA4 0x10
3244 #define _WPUA5 0x20
3245 #define _WPUA6 0x40
3246 #define _WPUA7 0x80
3248 //==============================================================================
3251 //==============================================================================
3252 // WPUB Bits
3254 extern __at(0x020D) __sfr WPUB;
3256 typedef struct
3258 unsigned WPUB0 : 1;
3259 unsigned WPUB1 : 1;
3260 unsigned WPUB2 : 1;
3261 unsigned WPUB3 : 1;
3262 unsigned WPUB4 : 1;
3263 unsigned WPUB5 : 1;
3264 unsigned WPUB6 : 1;
3265 unsigned WPUB7 : 1;
3266 } __WPUBbits_t;
3268 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
3270 #define _WPUB0 0x01
3271 #define _WPUB1 0x02
3272 #define _WPUB2 0x04
3273 #define _WPUB3 0x08
3274 #define _WPUB4 0x10
3275 #define _WPUB5 0x20
3276 #define _WPUB6 0x40
3277 #define _WPUB7 0x80
3279 //==============================================================================
3282 //==============================================================================
3283 // WPUC Bits
3285 extern __at(0x020E) __sfr WPUC;
3287 typedef struct
3289 unsigned WPUC0 : 1;
3290 unsigned WPUC1 : 1;
3291 unsigned WPUC2 : 1;
3292 unsigned WPUC3 : 1;
3293 unsigned WPUC4 : 1;
3294 unsigned WPUC5 : 1;
3295 unsigned WPUC6 : 1;
3296 unsigned WPUC7 : 1;
3297 } __WPUCbits_t;
3299 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
3301 #define _WPUC0 0x01
3302 #define _WPUC1 0x02
3303 #define _WPUC2 0x04
3304 #define _WPUC3 0x08
3305 #define _WPUC4 0x10
3306 #define _WPUC5 0x20
3307 #define _WPUC6 0x40
3308 #define _WPUC7 0x80
3310 //==============================================================================
3313 //==============================================================================
3314 // WPUE Bits
3316 extern __at(0x0210) __sfr WPUE;
3318 typedef struct
3320 unsigned : 1;
3321 unsigned : 1;
3322 unsigned : 1;
3323 unsigned WPUE3 : 1;
3324 unsigned : 1;
3325 unsigned : 1;
3326 unsigned : 1;
3327 unsigned : 1;
3328 } __WPUEbits_t;
3330 extern __at(0x0210) volatile __WPUEbits_t WPUEbits;
3332 #define _WPUE3 0x08
3334 //==============================================================================
3337 //==============================================================================
3338 // SSP1BUF Bits
3340 extern __at(0x0211) __sfr SSP1BUF;
3342 typedef union
3344 struct
3346 unsigned SSP1BUF0 : 1;
3347 unsigned SSP1BUF1 : 1;
3348 unsigned SSP1BUF2 : 1;
3349 unsigned SSP1BUF3 : 1;
3350 unsigned SSP1BUF4 : 1;
3351 unsigned SSP1BUF5 : 1;
3352 unsigned SSP1BUF6 : 1;
3353 unsigned SSP1BUF7 : 1;
3356 struct
3358 unsigned BUF0 : 1;
3359 unsigned BUF1 : 1;
3360 unsigned BUF2 : 1;
3361 unsigned BUF3 : 1;
3362 unsigned BUF4 : 1;
3363 unsigned BUF5 : 1;
3364 unsigned BUF6 : 1;
3365 unsigned BUF7 : 1;
3367 } __SSP1BUFbits_t;
3369 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
3371 #define _SSP1BUF0 0x01
3372 #define _BUF0 0x01
3373 #define _SSP1BUF1 0x02
3374 #define _BUF1 0x02
3375 #define _SSP1BUF2 0x04
3376 #define _BUF2 0x04
3377 #define _SSP1BUF3 0x08
3378 #define _BUF3 0x08
3379 #define _SSP1BUF4 0x10
3380 #define _BUF4 0x10
3381 #define _SSP1BUF5 0x20
3382 #define _BUF5 0x20
3383 #define _SSP1BUF6 0x40
3384 #define _BUF6 0x40
3385 #define _SSP1BUF7 0x80
3386 #define _BUF7 0x80
3388 //==============================================================================
3391 //==============================================================================
3392 // SSPBUF Bits
3394 extern __at(0x0211) __sfr SSPBUF;
3396 typedef union
3398 struct
3400 unsigned SSP1BUF0 : 1;
3401 unsigned SSP1BUF1 : 1;
3402 unsigned SSP1BUF2 : 1;
3403 unsigned SSP1BUF3 : 1;
3404 unsigned SSP1BUF4 : 1;
3405 unsigned SSP1BUF5 : 1;
3406 unsigned SSP1BUF6 : 1;
3407 unsigned SSP1BUF7 : 1;
3410 struct
3412 unsigned BUF0 : 1;
3413 unsigned BUF1 : 1;
3414 unsigned BUF2 : 1;
3415 unsigned BUF3 : 1;
3416 unsigned BUF4 : 1;
3417 unsigned BUF5 : 1;
3418 unsigned BUF6 : 1;
3419 unsigned BUF7 : 1;
3421 } __SSPBUFbits_t;
3423 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
3425 #define _SSPBUF_SSP1BUF0 0x01
3426 #define _SSPBUF_BUF0 0x01
3427 #define _SSPBUF_SSP1BUF1 0x02
3428 #define _SSPBUF_BUF1 0x02
3429 #define _SSPBUF_SSP1BUF2 0x04
3430 #define _SSPBUF_BUF2 0x04
3431 #define _SSPBUF_SSP1BUF3 0x08
3432 #define _SSPBUF_BUF3 0x08
3433 #define _SSPBUF_SSP1BUF4 0x10
3434 #define _SSPBUF_BUF4 0x10
3435 #define _SSPBUF_SSP1BUF5 0x20
3436 #define _SSPBUF_BUF5 0x20
3437 #define _SSPBUF_SSP1BUF6 0x40
3438 #define _SSPBUF_BUF6 0x40
3439 #define _SSPBUF_SSP1BUF7 0x80
3440 #define _SSPBUF_BUF7 0x80
3442 //==============================================================================
3445 //==============================================================================
3446 // SSP1ADD Bits
3448 extern __at(0x0212) __sfr SSP1ADD;
3450 typedef union
3452 struct
3454 unsigned SSP1ADD0 : 1;
3455 unsigned SSP1ADD1 : 1;
3456 unsigned SSP1ADD2 : 1;
3457 unsigned SSP1ADD3 : 1;
3458 unsigned SSP1ADD4 : 1;
3459 unsigned SSP1ADD5 : 1;
3460 unsigned SSP1ADD6 : 1;
3461 unsigned SSP1ADD7 : 1;
3464 struct
3466 unsigned ADD0 : 1;
3467 unsigned ADD1 : 1;
3468 unsigned ADD2 : 1;
3469 unsigned ADD3 : 1;
3470 unsigned ADD4 : 1;
3471 unsigned ADD5 : 1;
3472 unsigned ADD6 : 1;
3473 unsigned ADD7 : 1;
3475 } __SSP1ADDbits_t;
3477 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
3479 #define _SSP1ADD0 0x01
3480 #define _ADD0 0x01
3481 #define _SSP1ADD1 0x02
3482 #define _ADD1 0x02
3483 #define _SSP1ADD2 0x04
3484 #define _ADD2 0x04
3485 #define _SSP1ADD3 0x08
3486 #define _ADD3 0x08
3487 #define _SSP1ADD4 0x10
3488 #define _ADD4 0x10
3489 #define _SSP1ADD5 0x20
3490 #define _ADD5 0x20
3491 #define _SSP1ADD6 0x40
3492 #define _ADD6 0x40
3493 #define _SSP1ADD7 0x80
3494 #define _ADD7 0x80
3496 //==============================================================================
3499 //==============================================================================
3500 // SSPADD Bits
3502 extern __at(0x0212) __sfr SSPADD;
3504 typedef union
3506 struct
3508 unsigned SSP1ADD0 : 1;
3509 unsigned SSP1ADD1 : 1;
3510 unsigned SSP1ADD2 : 1;
3511 unsigned SSP1ADD3 : 1;
3512 unsigned SSP1ADD4 : 1;
3513 unsigned SSP1ADD5 : 1;
3514 unsigned SSP1ADD6 : 1;
3515 unsigned SSP1ADD7 : 1;
3518 struct
3520 unsigned ADD0 : 1;
3521 unsigned ADD1 : 1;
3522 unsigned ADD2 : 1;
3523 unsigned ADD3 : 1;
3524 unsigned ADD4 : 1;
3525 unsigned ADD5 : 1;
3526 unsigned ADD6 : 1;
3527 unsigned ADD7 : 1;
3529 } __SSPADDbits_t;
3531 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
3533 #define _SSPADD_SSP1ADD0 0x01
3534 #define _SSPADD_ADD0 0x01
3535 #define _SSPADD_SSP1ADD1 0x02
3536 #define _SSPADD_ADD1 0x02
3537 #define _SSPADD_SSP1ADD2 0x04
3538 #define _SSPADD_ADD2 0x04
3539 #define _SSPADD_SSP1ADD3 0x08
3540 #define _SSPADD_ADD3 0x08
3541 #define _SSPADD_SSP1ADD4 0x10
3542 #define _SSPADD_ADD4 0x10
3543 #define _SSPADD_SSP1ADD5 0x20
3544 #define _SSPADD_ADD5 0x20
3545 #define _SSPADD_SSP1ADD6 0x40
3546 #define _SSPADD_ADD6 0x40
3547 #define _SSPADD_SSP1ADD7 0x80
3548 #define _SSPADD_ADD7 0x80
3550 //==============================================================================
3553 //==============================================================================
3554 // SSP1MSK Bits
3556 extern __at(0x0213) __sfr SSP1MSK;
3558 typedef union
3560 struct
3562 unsigned SSP1MSK0 : 1;
3563 unsigned SSP1MSK1 : 1;
3564 unsigned SSP1MSK2 : 1;
3565 unsigned SSP1MSK3 : 1;
3566 unsigned SSP1MSK4 : 1;
3567 unsigned SSP1MSK5 : 1;
3568 unsigned SSP1MSK6 : 1;
3569 unsigned SSP1MSK7 : 1;
3572 struct
3574 unsigned MSK0 : 1;
3575 unsigned MSK1 : 1;
3576 unsigned MSK2 : 1;
3577 unsigned MSK3 : 1;
3578 unsigned MSK4 : 1;
3579 unsigned MSK5 : 1;
3580 unsigned MSK6 : 1;
3581 unsigned MSK7 : 1;
3583 } __SSP1MSKbits_t;
3585 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3587 #define _SSP1MSK0 0x01
3588 #define _MSK0 0x01
3589 #define _SSP1MSK1 0x02
3590 #define _MSK1 0x02
3591 #define _SSP1MSK2 0x04
3592 #define _MSK2 0x04
3593 #define _SSP1MSK3 0x08
3594 #define _MSK3 0x08
3595 #define _SSP1MSK4 0x10
3596 #define _MSK4 0x10
3597 #define _SSP1MSK5 0x20
3598 #define _MSK5 0x20
3599 #define _SSP1MSK6 0x40
3600 #define _MSK6 0x40
3601 #define _SSP1MSK7 0x80
3602 #define _MSK7 0x80
3604 //==============================================================================
3607 //==============================================================================
3608 // SSPMSK Bits
3610 extern __at(0x0213) __sfr SSPMSK;
3612 typedef union
3614 struct
3616 unsigned SSP1MSK0 : 1;
3617 unsigned SSP1MSK1 : 1;
3618 unsigned SSP1MSK2 : 1;
3619 unsigned SSP1MSK3 : 1;
3620 unsigned SSP1MSK4 : 1;
3621 unsigned SSP1MSK5 : 1;
3622 unsigned SSP1MSK6 : 1;
3623 unsigned SSP1MSK7 : 1;
3626 struct
3628 unsigned MSK0 : 1;
3629 unsigned MSK1 : 1;
3630 unsigned MSK2 : 1;
3631 unsigned MSK3 : 1;
3632 unsigned MSK4 : 1;
3633 unsigned MSK5 : 1;
3634 unsigned MSK6 : 1;
3635 unsigned MSK7 : 1;
3637 } __SSPMSKbits_t;
3639 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3641 #define _SSPMSK_SSP1MSK0 0x01
3642 #define _SSPMSK_MSK0 0x01
3643 #define _SSPMSK_SSP1MSK1 0x02
3644 #define _SSPMSK_MSK1 0x02
3645 #define _SSPMSK_SSP1MSK2 0x04
3646 #define _SSPMSK_MSK2 0x04
3647 #define _SSPMSK_SSP1MSK3 0x08
3648 #define _SSPMSK_MSK3 0x08
3649 #define _SSPMSK_SSP1MSK4 0x10
3650 #define _SSPMSK_MSK4 0x10
3651 #define _SSPMSK_SSP1MSK5 0x20
3652 #define _SSPMSK_MSK5 0x20
3653 #define _SSPMSK_SSP1MSK6 0x40
3654 #define _SSPMSK_MSK6 0x40
3655 #define _SSPMSK_SSP1MSK7 0x80
3656 #define _SSPMSK_MSK7 0x80
3658 //==============================================================================
3661 //==============================================================================
3662 // SSP1STAT Bits
3664 extern __at(0x0214) __sfr SSP1STAT;
3666 typedef struct
3668 unsigned BF : 1;
3669 unsigned UA : 1;
3670 unsigned R_NOT_W : 1;
3671 unsigned S : 1;
3672 unsigned P : 1;
3673 unsigned D_NOT_A : 1;
3674 unsigned CKE : 1;
3675 unsigned SMP : 1;
3676 } __SSP1STATbits_t;
3678 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3680 #define _BF 0x01
3681 #define _UA 0x02
3682 #define _R_NOT_W 0x04
3683 #define _S 0x08
3684 #define _P 0x10
3685 #define _D_NOT_A 0x20
3686 #define _CKE 0x40
3687 #define _SMP 0x80
3689 //==============================================================================
3692 //==============================================================================
3693 // SSPSTAT Bits
3695 extern __at(0x0214) __sfr SSPSTAT;
3697 typedef struct
3699 unsigned BF : 1;
3700 unsigned UA : 1;
3701 unsigned R_NOT_W : 1;
3702 unsigned S : 1;
3703 unsigned P : 1;
3704 unsigned D_NOT_A : 1;
3705 unsigned CKE : 1;
3706 unsigned SMP : 1;
3707 } __SSPSTATbits_t;
3709 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3711 #define _SSPSTAT_BF 0x01
3712 #define _SSPSTAT_UA 0x02
3713 #define _SSPSTAT_R_NOT_W 0x04
3714 #define _SSPSTAT_S 0x08
3715 #define _SSPSTAT_P 0x10
3716 #define _SSPSTAT_D_NOT_A 0x20
3717 #define _SSPSTAT_CKE 0x40
3718 #define _SSPSTAT_SMP 0x80
3720 //==============================================================================
3723 //==============================================================================
3724 // SSP1CON Bits
3726 extern __at(0x0215) __sfr SSP1CON;
3728 typedef union
3730 struct
3732 unsigned SSPM0 : 1;
3733 unsigned SSPM1 : 1;
3734 unsigned SSPM2 : 1;
3735 unsigned SSPM3 : 1;
3736 unsigned CKP : 1;
3737 unsigned SSPEN : 1;
3738 unsigned SSPOV : 1;
3739 unsigned WCOL : 1;
3742 struct
3744 unsigned SSPM : 4;
3745 unsigned : 4;
3747 } __SSP1CONbits_t;
3749 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3751 #define _SSPM0 0x01
3752 #define _SSPM1 0x02
3753 #define _SSPM2 0x04
3754 #define _SSPM3 0x08
3755 #define _CKP 0x10
3756 #define _SSPEN 0x20
3757 #define _SSPOV 0x40
3758 #define _WCOL 0x80
3760 //==============================================================================
3763 //==============================================================================
3764 // SSP1CON1 Bits
3766 extern __at(0x0215) __sfr SSP1CON1;
3768 typedef union
3770 struct
3772 unsigned SSPM0 : 1;
3773 unsigned SSPM1 : 1;
3774 unsigned SSPM2 : 1;
3775 unsigned SSPM3 : 1;
3776 unsigned CKP : 1;
3777 unsigned SSPEN : 1;
3778 unsigned SSPOV : 1;
3779 unsigned WCOL : 1;
3782 struct
3784 unsigned SSPM : 4;
3785 unsigned : 4;
3787 } __SSP1CON1bits_t;
3789 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3791 #define _SSP1CON1_SSPM0 0x01
3792 #define _SSP1CON1_SSPM1 0x02
3793 #define _SSP1CON1_SSPM2 0x04
3794 #define _SSP1CON1_SSPM3 0x08
3795 #define _SSP1CON1_CKP 0x10
3796 #define _SSP1CON1_SSPEN 0x20
3797 #define _SSP1CON1_SSPOV 0x40
3798 #define _SSP1CON1_WCOL 0x80
3800 //==============================================================================
3803 //==============================================================================
3804 // SSPCON Bits
3806 extern __at(0x0215) __sfr SSPCON;
3808 typedef union
3810 struct
3812 unsigned SSPM0 : 1;
3813 unsigned SSPM1 : 1;
3814 unsigned SSPM2 : 1;
3815 unsigned SSPM3 : 1;
3816 unsigned CKP : 1;
3817 unsigned SSPEN : 1;
3818 unsigned SSPOV : 1;
3819 unsigned WCOL : 1;
3822 struct
3824 unsigned SSPM : 4;
3825 unsigned : 4;
3827 } __SSPCONbits_t;
3829 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3831 #define _SSPCON_SSPM0 0x01
3832 #define _SSPCON_SSPM1 0x02
3833 #define _SSPCON_SSPM2 0x04
3834 #define _SSPCON_SSPM3 0x08
3835 #define _SSPCON_CKP 0x10
3836 #define _SSPCON_SSPEN 0x20
3837 #define _SSPCON_SSPOV 0x40
3838 #define _SSPCON_WCOL 0x80
3840 //==============================================================================
3843 //==============================================================================
3844 // SSPCON1 Bits
3846 extern __at(0x0215) __sfr SSPCON1;
3848 typedef union
3850 struct
3852 unsigned SSPM0 : 1;
3853 unsigned SSPM1 : 1;
3854 unsigned SSPM2 : 1;
3855 unsigned SSPM3 : 1;
3856 unsigned CKP : 1;
3857 unsigned SSPEN : 1;
3858 unsigned SSPOV : 1;
3859 unsigned WCOL : 1;
3862 struct
3864 unsigned SSPM : 4;
3865 unsigned : 4;
3867 } __SSPCON1bits_t;
3869 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3871 #define _SSPCON1_SSPM0 0x01
3872 #define _SSPCON1_SSPM1 0x02
3873 #define _SSPCON1_SSPM2 0x04
3874 #define _SSPCON1_SSPM3 0x08
3875 #define _SSPCON1_CKP 0x10
3876 #define _SSPCON1_SSPEN 0x20
3877 #define _SSPCON1_SSPOV 0x40
3878 #define _SSPCON1_WCOL 0x80
3880 //==============================================================================
3883 //==============================================================================
3884 // SSP1CON2 Bits
3886 extern __at(0x0216) __sfr SSP1CON2;
3888 typedef struct
3890 unsigned SEN : 1;
3891 unsigned RSEN : 1;
3892 unsigned PEN : 1;
3893 unsigned RCEN : 1;
3894 unsigned ACKEN : 1;
3895 unsigned ACKDT : 1;
3896 unsigned ACKSTAT : 1;
3897 unsigned GCEN : 1;
3898 } __SSP1CON2bits_t;
3900 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3902 #define _SEN 0x01
3903 #define _RSEN 0x02
3904 #define _PEN 0x04
3905 #define _RCEN 0x08
3906 #define _ACKEN 0x10
3907 #define _ACKDT 0x20
3908 #define _ACKSTAT 0x40
3909 #define _GCEN 0x80
3911 //==============================================================================
3914 //==============================================================================
3915 // SSPCON2 Bits
3917 extern __at(0x0216) __sfr SSPCON2;
3919 typedef struct
3921 unsigned SEN : 1;
3922 unsigned RSEN : 1;
3923 unsigned PEN : 1;
3924 unsigned RCEN : 1;
3925 unsigned ACKEN : 1;
3926 unsigned ACKDT : 1;
3927 unsigned ACKSTAT : 1;
3928 unsigned GCEN : 1;
3929 } __SSPCON2bits_t;
3931 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3933 #define _SSPCON2_SEN 0x01
3934 #define _SSPCON2_RSEN 0x02
3935 #define _SSPCON2_PEN 0x04
3936 #define _SSPCON2_RCEN 0x08
3937 #define _SSPCON2_ACKEN 0x10
3938 #define _SSPCON2_ACKDT 0x20
3939 #define _SSPCON2_ACKSTAT 0x40
3940 #define _SSPCON2_GCEN 0x80
3942 //==============================================================================
3945 //==============================================================================
3946 // SSP1CON3 Bits
3948 extern __at(0x0217) __sfr SSP1CON3;
3950 typedef struct
3952 unsigned DHEN : 1;
3953 unsigned AHEN : 1;
3954 unsigned SBCDE : 1;
3955 unsigned SDAHT : 1;
3956 unsigned BOEN : 1;
3957 unsigned SCIE : 1;
3958 unsigned PCIE : 1;
3959 unsigned ACKTIM : 1;
3960 } __SSP1CON3bits_t;
3962 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3964 #define _DHEN 0x01
3965 #define _AHEN 0x02
3966 #define _SBCDE 0x04
3967 #define _SDAHT 0x08
3968 #define _BOEN 0x10
3969 #define _SCIE 0x20
3970 #define _PCIE 0x40
3971 #define _ACKTIM 0x80
3973 //==============================================================================
3976 //==============================================================================
3977 // SSPCON3 Bits
3979 extern __at(0x0217) __sfr SSPCON3;
3981 typedef struct
3983 unsigned DHEN : 1;
3984 unsigned AHEN : 1;
3985 unsigned SBCDE : 1;
3986 unsigned SDAHT : 1;
3987 unsigned BOEN : 1;
3988 unsigned SCIE : 1;
3989 unsigned PCIE : 1;
3990 unsigned ACKTIM : 1;
3991 } __SSPCON3bits_t;
3993 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3995 #define _SSPCON3_DHEN 0x01
3996 #define _SSPCON3_AHEN 0x02
3997 #define _SSPCON3_SBCDE 0x04
3998 #define _SSPCON3_SDAHT 0x08
3999 #define _SSPCON3_BOEN 0x10
4000 #define _SSPCON3_SCIE 0x20
4001 #define _SSPCON3_PCIE 0x40
4002 #define _SSPCON3_ACKTIM 0x80
4004 //==============================================================================
4007 //==============================================================================
4008 // MD3CON0 Bits
4010 extern __at(0x021B) __sfr MD3CON0;
4012 typedef union
4014 struct
4016 unsigned BIT : 1;
4017 unsigned : 1;
4018 unsigned : 1;
4019 unsigned : 1;
4020 unsigned OPOL : 1;
4021 unsigned OUT : 1;
4022 unsigned : 1;
4023 unsigned EN : 1;
4026 struct
4028 unsigned MD3BIT : 1;
4029 unsigned : 1;
4030 unsigned : 1;
4031 unsigned : 1;
4032 unsigned MD3OPOL : 1;
4033 unsigned MD3OUT : 1;
4034 unsigned : 1;
4035 unsigned MD3EN : 1;
4037 } __MD3CON0bits_t;
4039 extern __at(0x021B) volatile __MD3CON0bits_t MD3CON0bits;
4041 #define _MD3CON0_BIT 0x01
4042 #define _MD3CON0_MD3BIT 0x01
4043 #define _MD3CON0_OPOL 0x10
4044 #define _MD3CON0_MD3OPOL 0x10
4045 #define _MD3CON0_OUT 0x20
4046 #define _MD3CON0_MD3OUT 0x20
4047 #define _MD3CON0_EN 0x80
4048 #define _MD3CON0_MD3EN 0x80
4050 //==============================================================================
4053 //==============================================================================
4054 // MD3CON1 Bits
4056 extern __at(0x021C) __sfr MD3CON1;
4058 typedef union
4060 struct
4062 unsigned CLSYNC : 1;
4063 unsigned CLPOL : 1;
4064 unsigned : 1;
4065 unsigned : 1;
4066 unsigned CHSYNC : 1;
4067 unsigned CHPOL : 1;
4068 unsigned : 1;
4069 unsigned : 1;
4072 struct
4074 unsigned MD3CLSYNC : 1;
4075 unsigned MD3CLPOL : 1;
4076 unsigned : 1;
4077 unsigned : 1;
4078 unsigned MD3CHSYNC : 1;
4079 unsigned MD3CHPOL : 1;
4080 unsigned : 1;
4081 unsigned : 1;
4083 } __MD3CON1bits_t;
4085 extern __at(0x021C) volatile __MD3CON1bits_t MD3CON1bits;
4087 #define _MD3CON1_CLSYNC 0x01
4088 #define _MD3CON1_MD3CLSYNC 0x01
4089 #define _MD3CON1_CLPOL 0x02
4090 #define _MD3CON1_MD3CLPOL 0x02
4091 #define _MD3CON1_CHSYNC 0x10
4092 #define _MD3CON1_MD3CHSYNC 0x10
4093 #define _MD3CON1_CHPOL 0x20
4094 #define _MD3CON1_MD3CHPOL 0x20
4096 //==============================================================================
4099 //==============================================================================
4100 // MD3SRC Bits
4102 extern __at(0x021D) __sfr MD3SRC;
4104 typedef union
4106 struct
4108 unsigned MS0 : 1;
4109 unsigned MS1 : 1;
4110 unsigned MS2 : 1;
4111 unsigned MS3 : 1;
4112 unsigned MS4 : 1;
4113 unsigned : 1;
4114 unsigned : 1;
4115 unsigned : 1;
4118 struct
4120 unsigned MD3MS0 : 1;
4121 unsigned MD3MS1 : 1;
4122 unsigned MD3MS2 : 1;
4123 unsigned MD3MS3 : 1;
4124 unsigned MD3MS4 : 1;
4125 unsigned : 1;
4126 unsigned : 1;
4127 unsigned : 1;
4130 struct
4132 unsigned MD3MS : 5;
4133 unsigned : 3;
4136 struct
4138 unsigned MS : 5;
4139 unsigned : 3;
4141 } __MD3SRCbits_t;
4143 extern __at(0x021D) volatile __MD3SRCbits_t MD3SRCbits;
4145 #define _MD3SRC_MS0 0x01
4146 #define _MD3SRC_MD3MS0 0x01
4147 #define _MD3SRC_MS1 0x02
4148 #define _MD3SRC_MD3MS1 0x02
4149 #define _MD3SRC_MS2 0x04
4150 #define _MD3SRC_MD3MS2 0x04
4151 #define _MD3SRC_MS3 0x08
4152 #define _MD3SRC_MD3MS3 0x08
4153 #define _MD3SRC_MS4 0x10
4154 #define _MD3SRC_MD3MS4 0x10
4156 //==============================================================================
4159 //==============================================================================
4160 // MD3CARL Bits
4162 extern __at(0x021E) __sfr MD3CARL;
4164 typedef union
4166 struct
4168 unsigned CL0 : 1;
4169 unsigned CL1 : 1;
4170 unsigned CL2 : 1;
4171 unsigned CL3 : 1;
4172 unsigned CL4 : 1;
4173 unsigned : 1;
4174 unsigned : 1;
4175 unsigned : 1;
4178 struct
4180 unsigned MD3CL0 : 1;
4181 unsigned MD3CL1 : 1;
4182 unsigned MD3CL2 : 1;
4183 unsigned MD3CL3 : 1;
4184 unsigned : 1;
4185 unsigned : 1;
4186 unsigned : 1;
4187 unsigned : 1;
4190 struct
4192 unsigned CL : 5;
4193 unsigned : 3;
4196 struct
4198 unsigned MD3CL : 4;
4199 unsigned : 4;
4201 } __MD3CARLbits_t;
4203 extern __at(0x021E) volatile __MD3CARLbits_t MD3CARLbits;
4205 #define _MD3CARL_CL0 0x01
4206 #define _MD3CARL_MD3CL0 0x01
4207 #define _MD3CARL_CL1 0x02
4208 #define _MD3CARL_MD3CL1 0x02
4209 #define _MD3CARL_CL2 0x04
4210 #define _MD3CARL_MD3CL2 0x04
4211 #define _MD3CARL_CL3 0x08
4212 #define _MD3CARL_MD3CL3 0x08
4213 #define _MD3CARL_CL4 0x10
4215 //==============================================================================
4218 //==============================================================================
4219 // MD3CARH Bits
4221 extern __at(0x021F) __sfr MD3CARH;
4223 typedef union
4225 struct
4227 unsigned CH0 : 1;
4228 unsigned CH1 : 1;
4229 unsigned CH2 : 1;
4230 unsigned CH3 : 1;
4231 unsigned CH4 : 1;
4232 unsigned : 1;
4233 unsigned : 1;
4234 unsigned : 1;
4237 struct
4239 unsigned MD3CH0 : 1;
4240 unsigned MD3CH1 : 1;
4241 unsigned MD3CH2 : 1;
4242 unsigned MD3CH3 : 1;
4243 unsigned : 1;
4244 unsigned : 1;
4245 unsigned : 1;
4246 unsigned : 1;
4249 struct
4251 unsigned CH : 5;
4252 unsigned : 3;
4255 struct
4257 unsigned MD3CH : 4;
4258 unsigned : 4;
4260 } __MD3CARHbits_t;
4262 extern __at(0x021F) volatile __MD3CARHbits_t MD3CARHbits;
4264 #define _MD3CARH_CH0 0x01
4265 #define _MD3CARH_MD3CH0 0x01
4266 #define _MD3CARH_CH1 0x02
4267 #define _MD3CARH_MD3CH1 0x02
4268 #define _MD3CARH_CH2 0x04
4269 #define _MD3CARH_MD3CH2 0x04
4270 #define _MD3CARH_CH3 0x08
4271 #define _MD3CARH_MD3CH3 0x08
4272 #define _MD3CARH_CH4 0x10
4274 //==============================================================================
4277 //==============================================================================
4278 // ODCONA Bits
4280 extern __at(0x028C) __sfr ODCONA;
4282 typedef struct
4284 unsigned ODA0 : 1;
4285 unsigned ODA1 : 1;
4286 unsigned ODA2 : 1;
4287 unsigned ODA3 : 1;
4288 unsigned ODA4 : 1;
4289 unsigned ODA5 : 1;
4290 unsigned ODA6 : 1;
4291 unsigned ODA7 : 1;
4292 } __ODCONAbits_t;
4294 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
4296 #define _ODA0 0x01
4297 #define _ODA1 0x02
4298 #define _ODA2 0x04
4299 #define _ODA3 0x08
4300 #define _ODA4 0x10
4301 #define _ODA5 0x20
4302 #define _ODA6 0x40
4303 #define _ODA7 0x80
4305 //==============================================================================
4308 //==============================================================================
4309 // ODCONB Bits
4311 extern __at(0x028D) __sfr ODCONB;
4313 typedef union
4315 struct
4317 unsigned ODA0 : 1;
4318 unsigned ODA1 : 1;
4319 unsigned ODA2 : 1;
4320 unsigned ODA3 : 1;
4321 unsigned ODB4 : 1;
4322 unsigned ODB5 : 1;
4323 unsigned ODB6 : 1;
4324 unsigned ODB7 : 1;
4327 struct
4329 unsigned ODA : 4;
4330 unsigned : 4;
4332 } __ODCONBbits_t;
4334 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
4336 #define _ODCONB_ODA0 0x01
4337 #define _ODCONB_ODA1 0x02
4338 #define _ODCONB_ODA2 0x04
4339 #define _ODCONB_ODA3 0x08
4340 #define _ODCONB_ODB4 0x10
4341 #define _ODCONB_ODB5 0x20
4342 #define _ODCONB_ODB6 0x40
4343 #define _ODCONB_ODB7 0x80
4345 //==============================================================================
4348 //==============================================================================
4349 // ODCONC Bits
4351 extern __at(0x028E) __sfr ODCONC;
4353 typedef struct
4355 unsigned ODC0 : 1;
4356 unsigned ODC1 : 1;
4357 unsigned ODC2 : 1;
4358 unsigned ODC3 : 1;
4359 unsigned ODC4 : 1;
4360 unsigned ODC5 : 1;
4361 unsigned ODC6 : 1;
4362 unsigned ODC7 : 1;
4363 } __ODCONCbits_t;
4365 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
4367 #define _ODC0 0x01
4368 #define _ODC1 0x02
4369 #define _ODC2 0x04
4370 #define _ODC3 0x08
4371 #define _ODC4 0x10
4372 #define _ODC5 0x20
4373 #define _ODC6 0x40
4374 #define _ODC7 0x80
4376 //==============================================================================
4378 extern __at(0x0291) __sfr CCPR1;
4379 extern __at(0x0291) __sfr CCPR1L;
4380 extern __at(0x0292) __sfr CCPR1H;
4382 //==============================================================================
4383 // CCP1CON Bits
4385 extern __at(0x0293) __sfr CCP1CON;
4387 typedef union
4389 struct
4391 unsigned MODE0 : 1;
4392 unsigned MODE1 : 1;
4393 unsigned MODE2 : 1;
4394 unsigned MODE3 : 1;
4395 unsigned FMT : 1;
4396 unsigned OUT : 1;
4397 unsigned : 1;
4398 unsigned EN : 1;
4401 struct
4403 unsigned CCP1MODE0 : 1;
4404 unsigned CCP1MODE1 : 1;
4405 unsigned CCP1MODE2 : 1;
4406 unsigned CCP1MODE3 : 1;
4407 unsigned CCP1FMT : 1;
4408 unsigned CCP1OUT : 1;
4409 unsigned : 1;
4410 unsigned CCP1EN : 1;
4413 struct
4415 unsigned CCP1MODE : 4;
4416 unsigned : 4;
4419 struct
4421 unsigned MODE : 4;
4422 unsigned : 4;
4424 } __CCP1CONbits_t;
4426 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
4428 #define _MODE0 0x01
4429 #define _CCP1MODE0 0x01
4430 #define _MODE1 0x02
4431 #define _CCP1MODE1 0x02
4432 #define _MODE2 0x04
4433 #define _CCP1MODE2 0x04
4434 #define _MODE3 0x08
4435 #define _CCP1MODE3 0x08
4436 #define _FMT 0x10
4437 #define _CCP1FMT 0x10
4438 #define _OUT 0x20
4439 #define _CCP1OUT 0x20
4440 #define _EN 0x80
4441 #define _CCP1EN 0x80
4443 //==============================================================================
4446 //==============================================================================
4447 // CCP1CAP Bits
4449 extern __at(0x0294) __sfr CCP1CAP;
4451 typedef union
4453 struct
4455 unsigned CTS0 : 1;
4456 unsigned CTS1 : 1;
4457 unsigned CTS2 : 1;
4458 unsigned CTS3 : 1;
4459 unsigned : 1;
4460 unsigned : 1;
4461 unsigned : 1;
4462 unsigned : 1;
4465 struct
4467 unsigned CCP1CTS0 : 1;
4468 unsigned CCP1CTS1 : 1;
4469 unsigned CCP1CTS2 : 1;
4470 unsigned CCP1CTS3 : 1;
4471 unsigned : 1;
4472 unsigned : 1;
4473 unsigned : 1;
4474 unsigned : 1;
4477 struct
4479 unsigned CTS : 4;
4480 unsigned : 4;
4483 struct
4485 unsigned CCP1CTS : 4;
4486 unsigned : 4;
4488 } __CCP1CAPbits_t;
4490 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
4492 #define _CTS0 0x01
4493 #define _CCP1CTS0 0x01
4494 #define _CTS1 0x02
4495 #define _CCP1CTS1 0x02
4496 #define _CTS2 0x04
4497 #define _CCP1CTS2 0x04
4498 #define _CTS3 0x08
4499 #define _CCP1CTS3 0x08
4501 //==============================================================================
4503 extern __at(0x0295) __sfr CCPR2;
4504 extern __at(0x0295) __sfr CCPR2L;
4505 extern __at(0x0296) __sfr CCPR2H;
4507 //==============================================================================
4508 // CCP2CON Bits
4510 extern __at(0x0297) __sfr CCP2CON;
4512 typedef union
4514 struct
4516 unsigned MODE0 : 1;
4517 unsigned MODE1 : 1;
4518 unsigned MODE2 : 1;
4519 unsigned MODE3 : 1;
4520 unsigned FMT : 1;
4521 unsigned OUT : 1;
4522 unsigned : 1;
4523 unsigned EN : 1;
4526 struct
4528 unsigned CCP2MODE0 : 1;
4529 unsigned CCP2MODE1 : 1;
4530 unsigned CCP2MODE2 : 1;
4531 unsigned CCP2MODE3 : 1;
4532 unsigned CCP2FMT : 1;
4533 unsigned CCP2OUT : 1;
4534 unsigned : 1;
4535 unsigned CCP2EN : 1;
4538 struct
4540 unsigned MODE : 4;
4541 unsigned : 4;
4544 struct
4546 unsigned CCP2MODE : 4;
4547 unsigned : 4;
4549 } __CCP2CONbits_t;
4551 extern __at(0x0297) volatile __CCP2CONbits_t CCP2CONbits;
4553 #define _CCP2CON_MODE0 0x01
4554 #define _CCP2CON_CCP2MODE0 0x01
4555 #define _CCP2CON_MODE1 0x02
4556 #define _CCP2CON_CCP2MODE1 0x02
4557 #define _CCP2CON_MODE2 0x04
4558 #define _CCP2CON_CCP2MODE2 0x04
4559 #define _CCP2CON_MODE3 0x08
4560 #define _CCP2CON_CCP2MODE3 0x08
4561 #define _CCP2CON_FMT 0x10
4562 #define _CCP2CON_CCP2FMT 0x10
4563 #define _CCP2CON_OUT 0x20
4564 #define _CCP2CON_CCP2OUT 0x20
4565 #define _CCP2CON_EN 0x80
4566 #define _CCP2CON_CCP2EN 0x80
4568 //==============================================================================
4571 //==============================================================================
4572 // CCP2CAP Bits
4574 extern __at(0x0298) __sfr CCP2CAP;
4576 typedef union
4578 struct
4580 unsigned CTS0 : 1;
4581 unsigned CTS1 : 1;
4582 unsigned CTS2 : 1;
4583 unsigned CTS3 : 1;
4584 unsigned : 1;
4585 unsigned : 1;
4586 unsigned : 1;
4587 unsigned : 1;
4590 struct
4592 unsigned CCP2CTS0 : 1;
4593 unsigned CCP2CTS1 : 1;
4594 unsigned CCP2CTS2 : 1;
4595 unsigned CCP2CTS3 : 1;
4596 unsigned : 1;
4597 unsigned : 1;
4598 unsigned : 1;
4599 unsigned : 1;
4602 struct
4604 unsigned CCP2CTS : 4;
4605 unsigned : 4;
4608 struct
4610 unsigned CTS : 4;
4611 unsigned : 4;
4613 } __CCP2CAPbits_t;
4615 extern __at(0x0298) volatile __CCP2CAPbits_t CCP2CAPbits;
4617 #define _CCP2CAP_CTS0 0x01
4618 #define _CCP2CAP_CCP2CTS0 0x01
4619 #define _CCP2CAP_CTS1 0x02
4620 #define _CCP2CAP_CCP2CTS1 0x02
4621 #define _CCP2CAP_CTS2 0x04
4622 #define _CCP2CAP_CCP2CTS2 0x04
4623 #define _CCP2CAP_CTS3 0x08
4624 #define _CCP2CAP_CCP2CTS3 0x08
4626 //==============================================================================
4628 extern __at(0x0299) __sfr CCPR7;
4629 extern __at(0x0299) __sfr CCPR7L;
4630 extern __at(0x029A) __sfr CCPR7H;
4632 //==============================================================================
4633 // CCP7CON Bits
4635 extern __at(0x029B) __sfr CCP7CON;
4637 typedef union
4639 struct
4641 unsigned MODE0 : 1;
4642 unsigned MODE1 : 1;
4643 unsigned MODE2 : 1;
4644 unsigned MODE3 : 1;
4645 unsigned FMT : 1;
4646 unsigned OUT : 1;
4647 unsigned : 1;
4648 unsigned EN : 1;
4651 struct
4653 unsigned CCP7MODE0 : 1;
4654 unsigned CCP7MODE1 : 1;
4655 unsigned CCP7MODE2 : 1;
4656 unsigned CCP7MODE3 : 1;
4657 unsigned CCP7FMT : 1;
4658 unsigned CCP7OUT : 1;
4659 unsigned : 1;
4660 unsigned CCP7EN : 1;
4663 struct
4665 unsigned MODE : 4;
4666 unsigned : 4;
4669 struct
4671 unsigned CCP7MODE : 4;
4672 unsigned : 4;
4674 } __CCP7CONbits_t;
4676 extern __at(0x029B) volatile __CCP7CONbits_t CCP7CONbits;
4678 #define _CCP7CON_MODE0 0x01
4679 #define _CCP7CON_CCP7MODE0 0x01
4680 #define _CCP7CON_MODE1 0x02
4681 #define _CCP7CON_CCP7MODE1 0x02
4682 #define _CCP7CON_MODE2 0x04
4683 #define _CCP7CON_CCP7MODE2 0x04
4684 #define _CCP7CON_MODE3 0x08
4685 #define _CCP7CON_CCP7MODE3 0x08
4686 #define _CCP7CON_FMT 0x10
4687 #define _CCP7CON_CCP7FMT 0x10
4688 #define _CCP7CON_OUT 0x20
4689 #define _CCP7CON_CCP7OUT 0x20
4690 #define _CCP7CON_EN 0x80
4691 #define _CCP7CON_CCP7EN 0x80
4693 //==============================================================================
4696 //==============================================================================
4697 // CCP7CAP Bits
4699 extern __at(0x029C) __sfr CCP7CAP;
4701 typedef union
4703 struct
4705 unsigned CTS0 : 1;
4706 unsigned CTS1 : 1;
4707 unsigned CTS2 : 1;
4708 unsigned CTS3 : 1;
4709 unsigned : 1;
4710 unsigned : 1;
4711 unsigned : 1;
4712 unsigned : 1;
4715 struct
4717 unsigned CCP7CTS0 : 1;
4718 unsigned CCP7CTS1 : 1;
4719 unsigned CCP7CTS2 : 1;
4720 unsigned CCP7CTS3 : 1;
4721 unsigned : 1;
4722 unsigned : 1;
4723 unsigned : 1;
4724 unsigned : 1;
4727 struct
4729 unsigned CTS : 4;
4730 unsigned : 4;
4733 struct
4735 unsigned CCP7CTS : 4;
4736 unsigned : 4;
4738 } __CCP7CAPbits_t;
4740 extern __at(0x029C) volatile __CCP7CAPbits_t CCP7CAPbits;
4742 #define _CCP7CAP_CTS0 0x01
4743 #define _CCP7CAP_CCP7CTS0 0x01
4744 #define _CCP7CAP_CTS1 0x02
4745 #define _CCP7CAP_CCP7CTS1 0x02
4746 #define _CCP7CAP_CTS2 0x04
4747 #define _CCP7CAP_CCP7CTS2 0x04
4748 #define _CCP7CAP_CTS3 0x08
4749 #define _CCP7CAP_CCP7CTS3 0x08
4751 //==============================================================================
4754 //==============================================================================
4755 // CCPTMRS1 Bits
4757 extern __at(0x029E) __sfr CCPTMRS1;
4759 typedef union
4761 struct
4763 unsigned C1TSEL0 : 1;
4764 unsigned C1TSEL1 : 1;
4765 unsigned C2TSEL0 : 1;
4766 unsigned C2TSEL1 : 1;
4767 unsigned C7TSEL0 : 1;
4768 unsigned C7TSEL1 : 1;
4769 unsigned : 1;
4770 unsigned : 1;
4773 struct
4775 unsigned C1TSEL : 2;
4776 unsigned : 6;
4779 struct
4781 unsigned : 2;
4782 unsigned C2TSEL : 2;
4783 unsigned : 4;
4786 struct
4788 unsigned : 4;
4789 unsigned C7TSEL : 2;
4790 unsigned : 2;
4792 } __CCPTMRS1bits_t;
4794 extern __at(0x029E) volatile __CCPTMRS1bits_t CCPTMRS1bits;
4796 #define _C1TSEL0 0x01
4797 #define _C1TSEL1 0x02
4798 #define _C2TSEL0 0x04
4799 #define _C2TSEL1 0x08
4800 #define _C7TSEL0 0x10
4801 #define _C7TSEL1 0x20
4803 //==============================================================================
4806 //==============================================================================
4807 // CCPTMRS2 Bits
4809 extern __at(0x029F) __sfr CCPTMRS2;
4811 typedef union
4813 struct
4815 unsigned P3TSEL0 : 1;
4816 unsigned P3TSEL1 : 1;
4817 unsigned P4TSEL0 : 1;
4818 unsigned P5TSEL1 : 1;
4819 unsigned P9TSEL0 : 1;
4820 unsigned P9TSEL1 : 1;
4821 unsigned : 1;
4822 unsigned : 1;
4825 struct
4827 unsigned P3TSEL : 2;
4828 unsigned : 6;
4831 struct
4833 unsigned : 4;
4834 unsigned P9TSEL : 2;
4835 unsigned : 2;
4837 } __CCPTMRS2bits_t;
4839 extern __at(0x029F) volatile __CCPTMRS2bits_t CCPTMRS2bits;
4841 #define _P3TSEL0 0x01
4842 #define _P3TSEL1 0x02
4843 #define _P4TSEL0 0x04
4844 #define _P5TSEL1 0x08
4845 #define _P9TSEL0 0x10
4846 #define _P9TSEL1 0x20
4848 //==============================================================================
4851 //==============================================================================
4852 // SLRCONA Bits
4854 extern __at(0x030C) __sfr SLRCONA;
4856 typedef struct
4858 unsigned SLRA0 : 1;
4859 unsigned SLRA1 : 1;
4860 unsigned SLRA2 : 1;
4861 unsigned SLRA3 : 1;
4862 unsigned SLRA4 : 1;
4863 unsigned SLRA5 : 1;
4864 unsigned SLRA6 : 1;
4865 unsigned SLRA7 : 1;
4866 } __SLRCONAbits_t;
4868 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
4870 #define _SLRA0 0x01
4871 #define _SLRA1 0x02
4872 #define _SLRA2 0x04
4873 #define _SLRA3 0x08
4874 #define _SLRA4 0x10
4875 #define _SLRA5 0x20
4876 #define _SLRA6 0x40
4877 #define _SLRA7 0x80
4879 //==============================================================================
4882 //==============================================================================
4883 // SLRCONB Bits
4885 extern __at(0x030D) __sfr SLRCONB;
4887 typedef struct
4889 unsigned SLRB0 : 1;
4890 unsigned SLRB1 : 1;
4891 unsigned SLRB2 : 1;
4892 unsigned SLRB3 : 1;
4893 unsigned SLRB4 : 1;
4894 unsigned SLRB5 : 1;
4895 unsigned SLRB6 : 1;
4896 unsigned SLRB7 : 1;
4897 } __SLRCONBbits_t;
4899 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
4901 #define _SLRB0 0x01
4902 #define _SLRB1 0x02
4903 #define _SLRB2 0x04
4904 #define _SLRB3 0x08
4905 #define _SLRB4 0x10
4906 #define _SLRB5 0x20
4907 #define _SLRB6 0x40
4908 #define _SLRB7 0x80
4910 //==============================================================================
4913 //==============================================================================
4914 // SLRCONC Bits
4916 extern __at(0x030E) __sfr SLRCONC;
4918 typedef struct
4920 unsigned SLRC0 : 1;
4921 unsigned SLRC1 : 1;
4922 unsigned SLRC2 : 1;
4923 unsigned SLRC3 : 1;
4924 unsigned SLRC4 : 1;
4925 unsigned SLRC5 : 1;
4926 unsigned SLRC6 : 1;
4927 unsigned SLRC7 : 1;
4928 } __SLRCONCbits_t;
4930 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
4932 #define _SLRC0 0x01
4933 #define _SLRC1 0x02
4934 #define _SLRC2 0x04
4935 #define _SLRC3 0x08
4936 #define _SLRC4 0x10
4937 #define _SLRC5 0x20
4938 #define _SLRC6 0x40
4939 #define _SLRC7 0x80
4941 //==============================================================================
4944 //==============================================================================
4945 // MD1CON0 Bits
4947 extern __at(0x0315) __sfr MD1CON0;
4949 typedef union
4951 struct
4953 unsigned BIT : 1;
4954 unsigned : 1;
4955 unsigned : 1;
4956 unsigned : 1;
4957 unsigned OPOL : 1;
4958 unsigned OUT : 1;
4959 unsigned : 1;
4960 unsigned EN : 1;
4963 struct
4965 unsigned MD1BIT : 1;
4966 unsigned : 1;
4967 unsigned : 1;
4968 unsigned : 1;
4969 unsigned MD1OPOL : 1;
4970 unsigned MD1OUT : 1;
4971 unsigned : 1;
4972 unsigned MD1EN : 1;
4974 } __MD1CON0bits_t;
4976 extern __at(0x0315) volatile __MD1CON0bits_t MD1CON0bits;
4978 #define _MD1CON0_BIT 0x01
4979 #define _MD1CON0_MD1BIT 0x01
4980 #define _MD1CON0_OPOL 0x10
4981 #define _MD1CON0_MD1OPOL 0x10
4982 #define _MD1CON0_OUT 0x20
4983 #define _MD1CON0_MD1OUT 0x20
4984 #define _MD1CON0_EN 0x80
4985 #define _MD1CON0_MD1EN 0x80
4987 //==============================================================================
4990 //==============================================================================
4991 // MD1CON1 Bits
4993 extern __at(0x0316) __sfr MD1CON1;
4995 typedef union
4997 struct
4999 unsigned CLSYNC : 1;
5000 unsigned CLPOL : 1;
5001 unsigned : 1;
5002 unsigned : 1;
5003 unsigned CHSYNC : 1;
5004 unsigned CHPOL : 1;
5005 unsigned : 1;
5006 unsigned : 1;
5009 struct
5011 unsigned MD1CLSYNC : 1;
5012 unsigned MD1CLPOL : 1;
5013 unsigned : 1;
5014 unsigned : 1;
5015 unsigned MD1CHSYNC : 1;
5016 unsigned MD1CHPOL : 1;
5017 unsigned : 1;
5018 unsigned : 1;
5020 } __MD1CON1bits_t;
5022 extern __at(0x0316) volatile __MD1CON1bits_t MD1CON1bits;
5024 #define _CLSYNC 0x01
5025 #define _MD1CLSYNC 0x01
5026 #define _CLPOL 0x02
5027 #define _MD1CLPOL 0x02
5028 #define _CHSYNC 0x10
5029 #define _MD1CHSYNC 0x10
5030 #define _CHPOL 0x20
5031 #define _MD1CHPOL 0x20
5033 //==============================================================================
5036 //==============================================================================
5037 // MD1SRC Bits
5039 extern __at(0x0317) __sfr MD1SRC;
5041 typedef union
5043 struct
5045 unsigned MS0 : 1;
5046 unsigned MS1 : 1;
5047 unsigned MS2 : 1;
5048 unsigned MS3 : 1;
5049 unsigned MS4 : 1;
5050 unsigned : 1;
5051 unsigned : 1;
5052 unsigned : 1;
5055 struct
5057 unsigned MD1MS0 : 1;
5058 unsigned MD1MS1 : 1;
5059 unsigned MD1MS2 : 1;
5060 unsigned MD1MS3 : 1;
5061 unsigned MD1MS4 : 1;
5062 unsigned : 1;
5063 unsigned : 1;
5064 unsigned : 1;
5067 struct
5069 unsigned MS : 5;
5070 unsigned : 3;
5073 struct
5075 unsigned MD1MS : 5;
5076 unsigned : 3;
5078 } __MD1SRCbits_t;
5080 extern __at(0x0317) volatile __MD1SRCbits_t MD1SRCbits;
5082 #define _MS0 0x01
5083 #define _MD1MS0 0x01
5084 #define _MS1 0x02
5085 #define _MD1MS1 0x02
5086 #define _MS2 0x04
5087 #define _MD1MS2 0x04
5088 #define _MS3 0x08
5089 #define _MD1MS3 0x08
5090 #define _MS4 0x10
5091 #define _MD1MS4 0x10
5093 //==============================================================================
5096 //==============================================================================
5097 // MD1CARL Bits
5099 extern __at(0x0318) __sfr MD1CARL;
5101 typedef union
5103 struct
5105 unsigned CL0 : 1;
5106 unsigned CL1 : 1;
5107 unsigned CL2 : 1;
5108 unsigned CL3 : 1;
5109 unsigned CL4 : 1;
5110 unsigned : 1;
5111 unsigned : 1;
5112 unsigned : 1;
5115 struct
5117 unsigned MD1CL0 : 1;
5118 unsigned MD1CL1 : 1;
5119 unsigned MD1CL2 : 1;
5120 unsigned MD1CL3 : 1;
5121 unsigned : 1;
5122 unsigned : 1;
5123 unsigned : 1;
5124 unsigned : 1;
5127 struct
5129 unsigned MD1CL : 4;
5130 unsigned : 4;
5133 struct
5135 unsigned CL : 5;
5136 unsigned : 3;
5138 } __MD1CARLbits_t;
5140 extern __at(0x0318) volatile __MD1CARLbits_t MD1CARLbits;
5142 #define _CL0 0x01
5143 #define _MD1CL0 0x01
5144 #define _CL1 0x02
5145 #define _MD1CL1 0x02
5146 #define _CL2 0x04
5147 #define _MD1CL2 0x04
5148 #define _CL3 0x08
5149 #define _MD1CL3 0x08
5150 #define _CL4 0x10
5152 //==============================================================================
5155 //==============================================================================
5156 // MD1CARH Bits
5158 extern __at(0x0319) __sfr MD1CARH;
5160 typedef union
5162 struct
5164 unsigned CH0 : 1;
5165 unsigned CH1 : 1;
5166 unsigned CH2 : 1;
5167 unsigned CH3 : 1;
5168 unsigned CH4 : 1;
5169 unsigned : 1;
5170 unsigned : 1;
5171 unsigned : 1;
5174 struct
5176 unsigned MD1CH0 : 1;
5177 unsigned MD1CH1 : 1;
5178 unsigned MD1CH2 : 1;
5179 unsigned MD1CH3 : 1;
5180 unsigned : 1;
5181 unsigned : 1;
5182 unsigned : 1;
5183 unsigned : 1;
5186 struct
5188 unsigned MD1CH : 4;
5189 unsigned : 4;
5192 struct
5194 unsigned CH : 5;
5195 unsigned : 3;
5197 } __MD1CARHbits_t;
5199 extern __at(0x0319) volatile __MD1CARHbits_t MD1CARHbits;
5201 #define _CH0 0x01
5202 #define _MD1CH0 0x01
5203 #define _CH1 0x02
5204 #define _MD1CH1 0x02
5205 #define _CH2 0x04
5206 #define _MD1CH2 0x04
5207 #define _CH3 0x08
5208 #define _MD1CH3 0x08
5209 #define _CH4 0x10
5211 //==============================================================================
5214 //==============================================================================
5215 // MD2CON0 Bits
5217 extern __at(0x031B) __sfr MD2CON0;
5219 typedef union
5221 struct
5223 unsigned BIT : 1;
5224 unsigned : 1;
5225 unsigned : 1;
5226 unsigned : 1;
5227 unsigned OPOL : 1;
5228 unsigned OUT : 1;
5229 unsigned : 1;
5230 unsigned EN : 1;
5233 struct
5235 unsigned MD2BIT : 1;
5236 unsigned : 1;
5237 unsigned : 1;
5238 unsigned : 1;
5239 unsigned MD2OPOL : 1;
5240 unsigned MD2OUT : 1;
5241 unsigned : 1;
5242 unsigned MD2EN : 1;
5244 } __MD2CON0bits_t;
5246 extern __at(0x031B) volatile __MD2CON0bits_t MD2CON0bits;
5248 #define _MD2CON0_BIT 0x01
5249 #define _MD2CON0_MD2BIT 0x01
5250 #define _MD2CON0_OPOL 0x10
5251 #define _MD2CON0_MD2OPOL 0x10
5252 #define _MD2CON0_OUT 0x20
5253 #define _MD2CON0_MD2OUT 0x20
5254 #define _MD2CON0_EN 0x80
5255 #define _MD2CON0_MD2EN 0x80
5257 //==============================================================================
5260 //==============================================================================
5261 // MD2CON1 Bits
5263 extern __at(0x031C) __sfr MD2CON1;
5265 typedef union
5267 struct
5269 unsigned CLSYNC : 1;
5270 unsigned CLPOL : 1;
5271 unsigned : 1;
5272 unsigned : 1;
5273 unsigned CHSYNC : 1;
5274 unsigned CHPOL : 1;
5275 unsigned : 1;
5276 unsigned : 1;
5279 struct
5281 unsigned MD2CLSYNC : 1;
5282 unsigned MD2CLPOL : 1;
5283 unsigned : 1;
5284 unsigned : 1;
5285 unsigned MD2CHSYNC : 1;
5286 unsigned MD2CHPOL : 1;
5287 unsigned : 1;
5288 unsigned : 1;
5290 } __MD2CON1bits_t;
5292 extern __at(0x031C) volatile __MD2CON1bits_t MD2CON1bits;
5294 #define _MD2CON1_CLSYNC 0x01
5295 #define _MD2CON1_MD2CLSYNC 0x01
5296 #define _MD2CON1_CLPOL 0x02
5297 #define _MD2CON1_MD2CLPOL 0x02
5298 #define _MD2CON1_CHSYNC 0x10
5299 #define _MD2CON1_MD2CHSYNC 0x10
5300 #define _MD2CON1_CHPOL 0x20
5301 #define _MD2CON1_MD2CHPOL 0x20
5303 //==============================================================================
5306 //==============================================================================
5307 // MD2SRC Bits
5309 extern __at(0x031D) __sfr MD2SRC;
5311 typedef union
5313 struct
5315 unsigned MS0 : 1;
5316 unsigned MS1 : 1;
5317 unsigned MS2 : 1;
5318 unsigned MS3 : 1;
5319 unsigned MS4 : 1;
5320 unsigned : 1;
5321 unsigned : 1;
5322 unsigned : 1;
5325 struct
5327 unsigned MD2MS0 : 1;
5328 unsigned MD2MS1 : 1;
5329 unsigned MD2MS2 : 1;
5330 unsigned MD2MS3 : 1;
5331 unsigned MD2MS4 : 1;
5332 unsigned : 1;
5333 unsigned : 1;
5334 unsigned : 1;
5337 struct
5339 unsigned MS : 5;
5340 unsigned : 3;
5343 struct
5345 unsigned MD2MS : 5;
5346 unsigned : 3;
5348 } __MD2SRCbits_t;
5350 extern __at(0x031D) volatile __MD2SRCbits_t MD2SRCbits;
5352 #define _MD2SRC_MS0 0x01
5353 #define _MD2SRC_MD2MS0 0x01
5354 #define _MD2SRC_MS1 0x02
5355 #define _MD2SRC_MD2MS1 0x02
5356 #define _MD2SRC_MS2 0x04
5357 #define _MD2SRC_MD2MS2 0x04
5358 #define _MD2SRC_MS3 0x08
5359 #define _MD2SRC_MD2MS3 0x08
5360 #define _MD2SRC_MS4 0x10
5361 #define _MD2SRC_MD2MS4 0x10
5363 //==============================================================================
5366 //==============================================================================
5367 // MD2CARL Bits
5369 extern __at(0x031E) __sfr MD2CARL;
5371 typedef union
5373 struct
5375 unsigned CL0 : 1;
5376 unsigned CL1 : 1;
5377 unsigned CL2 : 1;
5378 unsigned CL3 : 1;
5379 unsigned CL4 : 1;
5380 unsigned : 1;
5381 unsigned : 1;
5382 unsigned : 1;
5385 struct
5387 unsigned MD2CL0 : 1;
5388 unsigned MD2CL1 : 1;
5389 unsigned MD2CL2 : 1;
5390 unsigned MD2CL3 : 1;
5391 unsigned : 1;
5392 unsigned : 1;
5393 unsigned : 1;
5394 unsigned : 1;
5397 struct
5399 unsigned MD2CL : 4;
5400 unsigned : 4;
5403 struct
5405 unsigned CL : 5;
5406 unsigned : 3;
5408 } __MD2CARLbits_t;
5410 extern __at(0x031E) volatile __MD2CARLbits_t MD2CARLbits;
5412 #define _MD2CARL_CL0 0x01
5413 #define _MD2CARL_MD2CL0 0x01
5414 #define _MD2CARL_CL1 0x02
5415 #define _MD2CARL_MD2CL1 0x02
5416 #define _MD2CARL_CL2 0x04
5417 #define _MD2CARL_MD2CL2 0x04
5418 #define _MD2CARL_CL3 0x08
5419 #define _MD2CARL_MD2CL3 0x08
5420 #define _MD2CARL_CL4 0x10
5422 //==============================================================================
5425 //==============================================================================
5426 // MD2CARH Bits
5428 extern __at(0x031F) __sfr MD2CARH;
5430 typedef union
5432 struct
5434 unsigned CH0 : 1;
5435 unsigned CH1 : 1;
5436 unsigned CH2 : 1;
5437 unsigned CH3 : 1;
5438 unsigned CH4 : 1;
5439 unsigned : 1;
5440 unsigned : 1;
5441 unsigned : 1;
5444 struct
5446 unsigned MD2CH0 : 1;
5447 unsigned MD2CH1 : 1;
5448 unsigned MD2CH2 : 1;
5449 unsigned MD2CH3 : 1;
5450 unsigned : 1;
5451 unsigned : 1;
5452 unsigned : 1;
5453 unsigned : 1;
5456 struct
5458 unsigned CH : 5;
5459 unsigned : 3;
5462 struct
5464 unsigned MD2CH : 4;
5465 unsigned : 4;
5467 } __MD2CARHbits_t;
5469 extern __at(0x031F) volatile __MD2CARHbits_t MD2CARHbits;
5471 #define _MD2CARH_CH0 0x01
5472 #define _MD2CARH_MD2CH0 0x01
5473 #define _MD2CARH_CH1 0x02
5474 #define _MD2CARH_MD2CH1 0x02
5475 #define _MD2CARH_CH2 0x04
5476 #define _MD2CARH_MD2CH2 0x04
5477 #define _MD2CARH_CH3 0x08
5478 #define _MD2CARH_MD2CH3 0x08
5479 #define _MD2CARH_CH4 0x10
5481 //==============================================================================
5484 //==============================================================================
5485 // INLVLA Bits
5487 extern __at(0x038C) __sfr INLVLA;
5489 typedef union
5491 struct
5493 unsigned INLVLA0 : 1;
5494 unsigned INLVLA1 : 1;
5495 unsigned INLVLA2 : 1;
5496 unsigned INLVLA3 : 1;
5497 unsigned INLVLA4 : 1;
5498 unsigned INLVLA5 : 1;
5499 unsigned INLVA6 : 1;
5500 unsigned INLVA7 : 1;
5503 struct
5505 unsigned INLVLA : 6;
5506 unsigned : 2;
5508 } __INLVLAbits_t;
5510 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
5512 #define _INLVLA0 0x01
5513 #define _INLVLA1 0x02
5514 #define _INLVLA2 0x04
5515 #define _INLVLA3 0x08
5516 #define _INLVLA4 0x10
5517 #define _INLVLA5 0x20
5518 #define _INLVA6 0x40
5519 #define _INLVA7 0x80
5521 //==============================================================================
5524 //==============================================================================
5525 // INLVLB Bits
5527 extern __at(0x038D) __sfr INLVLB;
5529 typedef union
5531 struct
5533 unsigned INLVB0 : 1;
5534 unsigned INLVB1 : 1;
5535 unsigned INLVB2 : 1;
5536 unsigned INLVB3 : 1;
5537 unsigned INLVLB4 : 1;
5538 unsigned INLVLB5 : 1;
5539 unsigned INLVLB6 : 1;
5540 unsigned INLVLB7 : 1;
5543 struct
5545 unsigned INLVB : 4;
5546 unsigned : 4;
5548 } __INLVLBbits_t;
5550 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
5552 #define _INLVB0 0x01
5553 #define _INLVB1 0x02
5554 #define _INLVB2 0x04
5555 #define _INLVB3 0x08
5556 #define _INLVLB4 0x10
5557 #define _INLVLB5 0x20
5558 #define _INLVLB6 0x40
5559 #define _INLVLB7 0x80
5561 //==============================================================================
5564 //==============================================================================
5565 // INLVLC Bits
5567 extern __at(0x038E) __sfr INLVLC;
5569 typedef struct
5571 unsigned INLVLC0 : 1;
5572 unsigned INLVLC1 : 1;
5573 unsigned INLVLC2 : 1;
5574 unsigned INLVLC3 : 1;
5575 unsigned INLVLC4 : 1;
5576 unsigned INLVLC5 : 1;
5577 unsigned INLVLC6 : 1;
5578 unsigned INLVLC7 : 1;
5579 } __INLVLCbits_t;
5581 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
5583 #define _INLVLC0 0x01
5584 #define _INLVLC1 0x02
5585 #define _INLVLC2 0x04
5586 #define _INLVLC3 0x08
5587 #define _INLVLC4 0x10
5588 #define _INLVLC5 0x20
5589 #define _INLVLC6 0x40
5590 #define _INLVLC7 0x80
5592 //==============================================================================
5595 //==============================================================================
5596 // INLVE Bits
5598 extern __at(0x0390) __sfr INLVE;
5600 typedef struct
5602 unsigned : 1;
5603 unsigned : 1;
5604 unsigned : 1;
5605 unsigned INLVE3 : 1;
5606 unsigned : 1;
5607 unsigned : 1;
5608 unsigned : 1;
5609 unsigned : 1;
5610 } __INLVEbits_t;
5612 extern __at(0x0390) volatile __INLVEbits_t INLVEbits;
5614 #define _INLVE3 0x08
5616 //==============================================================================
5619 //==============================================================================
5620 // IOCAP Bits
5622 extern __at(0x0391) __sfr IOCAP;
5624 typedef struct
5626 unsigned IOCAP0 : 1;
5627 unsigned IOCAP1 : 1;
5628 unsigned IOCAP2 : 1;
5629 unsigned IOCAP3 : 1;
5630 unsigned IOCAP4 : 1;
5631 unsigned IOCAP5 : 1;
5632 unsigned IOCAP6 : 1;
5633 unsigned IOCAP7 : 1;
5634 } __IOCAPbits_t;
5636 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
5638 #define _IOCAP0 0x01
5639 #define _IOCAP1 0x02
5640 #define _IOCAP2 0x04
5641 #define _IOCAP3 0x08
5642 #define _IOCAP4 0x10
5643 #define _IOCAP5 0x20
5644 #define _IOCAP6 0x40
5645 #define _IOCAP7 0x80
5647 //==============================================================================
5650 //==============================================================================
5651 // IOCAN Bits
5653 extern __at(0x0392) __sfr IOCAN;
5655 typedef struct
5657 unsigned IOCAN0 : 1;
5658 unsigned IOCAN1 : 1;
5659 unsigned IOCAN2 : 1;
5660 unsigned IOCAN3 : 1;
5661 unsigned IOCAN4 : 1;
5662 unsigned IOCAN5 : 1;
5663 unsigned IOCAN6 : 1;
5664 unsigned IOCAN7 : 1;
5665 } __IOCANbits_t;
5667 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
5669 #define _IOCAN0 0x01
5670 #define _IOCAN1 0x02
5671 #define _IOCAN2 0x04
5672 #define _IOCAN3 0x08
5673 #define _IOCAN4 0x10
5674 #define _IOCAN5 0x20
5675 #define _IOCAN6 0x40
5676 #define _IOCAN7 0x80
5678 //==============================================================================
5681 //==============================================================================
5682 // IOCAF Bits
5684 extern __at(0x0393) __sfr IOCAF;
5686 typedef struct
5688 unsigned IOCAF0 : 1;
5689 unsigned IOCAF1 : 1;
5690 unsigned IOCAF2 : 1;
5691 unsigned IOCAF3 : 1;
5692 unsigned IOCAF4 : 1;
5693 unsigned IOCAF5 : 1;
5694 unsigned IOCAF6 : 1;
5695 unsigned IOCAF7 : 1;
5696 } __IOCAFbits_t;
5698 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
5700 #define _IOCAF0 0x01
5701 #define _IOCAF1 0x02
5702 #define _IOCAF2 0x04
5703 #define _IOCAF3 0x08
5704 #define _IOCAF4 0x10
5705 #define _IOCAF5 0x20
5706 #define _IOCAF6 0x40
5707 #define _IOCAF7 0x80
5709 //==============================================================================
5712 //==============================================================================
5713 // IOCBP Bits
5715 extern __at(0x0394) __sfr IOCBP;
5717 typedef struct
5719 unsigned IOCBP0 : 1;
5720 unsigned IOCBP1 : 1;
5721 unsigned IOCBP2 : 1;
5722 unsigned IOCBP3 : 1;
5723 unsigned IOCBP4 : 1;
5724 unsigned IOCBP5 : 1;
5725 unsigned IOCBP6 : 1;
5726 unsigned IOCBP7 : 1;
5727 } __IOCBPbits_t;
5729 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
5731 #define _IOCBP0 0x01
5732 #define _IOCBP1 0x02
5733 #define _IOCBP2 0x04
5734 #define _IOCBP3 0x08
5735 #define _IOCBP4 0x10
5736 #define _IOCBP5 0x20
5737 #define _IOCBP6 0x40
5738 #define _IOCBP7 0x80
5740 //==============================================================================
5743 //==============================================================================
5744 // IOCBN Bits
5746 extern __at(0x0395) __sfr IOCBN;
5748 typedef struct
5750 unsigned IOCBN0 : 1;
5751 unsigned IOCBN1 : 1;
5752 unsigned IOCBN2 : 1;
5753 unsigned IOCBN3 : 1;
5754 unsigned IOCBN4 : 1;
5755 unsigned IOCBN5 : 1;
5756 unsigned IOCBN6 : 1;
5757 unsigned IOCBN7 : 1;
5758 } __IOCBNbits_t;
5760 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
5762 #define _IOCBN0 0x01
5763 #define _IOCBN1 0x02
5764 #define _IOCBN2 0x04
5765 #define _IOCBN3 0x08
5766 #define _IOCBN4 0x10
5767 #define _IOCBN5 0x20
5768 #define _IOCBN6 0x40
5769 #define _IOCBN7 0x80
5771 //==============================================================================
5774 //==============================================================================
5775 // IOCBF Bits
5777 extern __at(0x0396) __sfr IOCBF;
5779 typedef struct
5781 unsigned IOCBF0 : 1;
5782 unsigned IOCBF1 : 1;
5783 unsigned IOCBF2 : 1;
5784 unsigned IOCBF3 : 1;
5785 unsigned IOCBF4 : 1;
5786 unsigned IOCBF5 : 1;
5787 unsigned IOCBF6 : 1;
5788 unsigned IOCBF7 : 1;
5789 } __IOCBFbits_t;
5791 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
5793 #define _IOCBF0 0x01
5794 #define _IOCBF1 0x02
5795 #define _IOCBF2 0x04
5796 #define _IOCBF3 0x08
5797 #define _IOCBF4 0x10
5798 #define _IOCBF5 0x20
5799 #define _IOCBF6 0x40
5800 #define _IOCBF7 0x80
5802 //==============================================================================
5805 //==============================================================================
5806 // IOCCP Bits
5808 extern __at(0x0397) __sfr IOCCP;
5810 typedef struct
5812 unsigned IOCCP0 : 1;
5813 unsigned IOCCP1 : 1;
5814 unsigned IOCCP2 : 1;
5815 unsigned IOCCP3 : 1;
5816 unsigned IOCCP4 : 1;
5817 unsigned IOCCP5 : 1;
5818 unsigned IOCCP6 : 1;
5819 unsigned IOCCP7 : 1;
5820 } __IOCCPbits_t;
5822 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
5824 #define _IOCCP0 0x01
5825 #define _IOCCP1 0x02
5826 #define _IOCCP2 0x04
5827 #define _IOCCP3 0x08
5828 #define _IOCCP4 0x10
5829 #define _IOCCP5 0x20
5830 #define _IOCCP6 0x40
5831 #define _IOCCP7 0x80
5833 //==============================================================================
5836 //==============================================================================
5837 // IOCCN Bits
5839 extern __at(0x0398) __sfr IOCCN;
5841 typedef struct
5843 unsigned IOCCN0 : 1;
5844 unsigned IOCCN1 : 1;
5845 unsigned IOCCN2 : 1;
5846 unsigned IOCCN3 : 1;
5847 unsigned IOCCN4 : 1;
5848 unsigned IOCCN5 : 1;
5849 unsigned IOCCN6 : 1;
5850 unsigned IOCCN7 : 1;
5851 } __IOCCNbits_t;
5853 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
5855 #define _IOCCN0 0x01
5856 #define _IOCCN1 0x02
5857 #define _IOCCN2 0x04
5858 #define _IOCCN3 0x08
5859 #define _IOCCN4 0x10
5860 #define _IOCCN5 0x20
5861 #define _IOCCN6 0x40
5862 #define _IOCCN7 0x80
5864 //==============================================================================
5867 //==============================================================================
5868 // IOCCF Bits
5870 extern __at(0x0399) __sfr IOCCF;
5872 typedef struct
5874 unsigned IOCCF0 : 1;
5875 unsigned IOCCF1 : 1;
5876 unsigned IOCCF2 : 1;
5877 unsigned IOCCF3 : 1;
5878 unsigned IOCCF4 : 1;
5879 unsigned IOCCF5 : 1;
5880 unsigned IOCCF6 : 1;
5881 unsigned IOCCF7 : 1;
5882 } __IOCCFbits_t;
5884 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
5886 #define _IOCCF0 0x01
5887 #define _IOCCF1 0x02
5888 #define _IOCCF2 0x04
5889 #define _IOCCF3 0x08
5890 #define _IOCCF4 0x10
5891 #define _IOCCF5 0x20
5892 #define _IOCCF6 0x40
5893 #define _IOCCF7 0x80
5895 //==============================================================================
5898 //==============================================================================
5899 // IOCEP Bits
5901 extern __at(0x039D) __sfr IOCEP;
5903 typedef struct
5905 unsigned : 1;
5906 unsigned : 1;
5907 unsigned : 1;
5908 unsigned IOCEP3 : 1;
5909 unsigned : 1;
5910 unsigned : 1;
5911 unsigned : 1;
5912 unsigned : 1;
5913 } __IOCEPbits_t;
5915 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits;
5917 #define _IOCEP3 0x08
5919 //==============================================================================
5922 //==============================================================================
5923 // IOCEN Bits
5925 extern __at(0x039E) __sfr IOCEN;
5927 typedef struct
5929 unsigned : 1;
5930 unsigned : 1;
5931 unsigned : 1;
5932 unsigned IOCEN3 : 1;
5933 unsigned : 1;
5934 unsigned : 1;
5935 unsigned : 1;
5936 unsigned : 1;
5937 } __IOCENbits_t;
5939 extern __at(0x039E) volatile __IOCENbits_t IOCENbits;
5941 #define _IOCEN3 0x08
5943 //==============================================================================
5946 //==============================================================================
5947 // IOCEF Bits
5949 extern __at(0x039F) __sfr IOCEF;
5951 typedef struct
5953 unsigned : 1;
5954 unsigned : 1;
5955 unsigned : 1;
5956 unsigned IOCEF3 : 1;
5957 unsigned : 1;
5958 unsigned : 1;
5959 unsigned : 1;
5960 unsigned : 1;
5961 } __IOCEFbits_t;
5963 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits;
5965 #define _IOCEF3 0x08
5967 //==============================================================================
5970 //==============================================================================
5971 // HIDRVB Bits
5973 extern __at(0x040D) __sfr HIDRVB;
5975 typedef union
5977 struct
5979 unsigned HIDB0 : 1;
5980 unsigned HIDB1 : 1;
5981 unsigned : 1;
5982 unsigned : 1;
5983 unsigned : 1;
5984 unsigned : 1;
5985 unsigned : 1;
5986 unsigned : 1;
5989 struct
5991 unsigned HIDB : 2;
5992 unsigned : 6;
5994 } __HIDRVBbits_t;
5996 extern __at(0x040D) volatile __HIDRVBbits_t HIDRVBbits;
5998 #define _HIDB0 0x01
5999 #define _HIDB1 0x02
6001 //==============================================================================
6003 extern __at(0x040F) __sfr TMR5;
6004 extern __at(0x040F) __sfr TMR5L;
6005 extern __at(0x0410) __sfr TMR5H;
6007 //==============================================================================
6008 // T5CON Bits
6010 extern __at(0x0411) __sfr T5CON;
6012 typedef union
6014 struct
6016 unsigned ON : 1;
6017 unsigned : 1;
6018 unsigned NOT_SYNC : 1;
6019 unsigned OSCEN : 1;
6020 unsigned CKPS0 : 1;
6021 unsigned CKPS1 : 1;
6022 unsigned CS0 : 1;
6023 unsigned CS1 : 1;
6026 struct
6028 unsigned TMRON : 1;
6029 unsigned : 1;
6030 unsigned SYNC : 1;
6031 unsigned SOSCEN : 1;
6032 unsigned T5CKPS0 : 1;
6033 unsigned T5CKPS1 : 1;
6034 unsigned T5CS0 : 1;
6035 unsigned T5CS1 : 1;
6038 struct
6040 unsigned TMR5ON : 1;
6041 unsigned : 1;
6042 unsigned NOT_T5SYNC : 1;
6043 unsigned T5OSCEN : 1;
6044 unsigned : 1;
6045 unsigned : 1;
6046 unsigned TMR5CS0 : 1;
6047 unsigned TMR5CS1 : 1;
6050 struct
6052 unsigned T5ON : 1;
6053 unsigned : 1;
6054 unsigned : 1;
6055 unsigned : 1;
6056 unsigned : 1;
6057 unsigned : 1;
6058 unsigned : 1;
6059 unsigned : 1;
6062 struct
6064 unsigned : 4;
6065 unsigned CKPS : 2;
6066 unsigned : 2;
6069 struct
6071 unsigned : 4;
6072 unsigned T5CKPS : 2;
6073 unsigned : 2;
6076 struct
6078 unsigned : 6;
6079 unsigned TMR5CS : 2;
6082 struct
6084 unsigned : 6;
6085 unsigned CS : 2;
6088 struct
6090 unsigned : 6;
6091 unsigned T5CS : 2;
6093 } __T5CONbits_t;
6095 extern __at(0x0411) volatile __T5CONbits_t T5CONbits;
6097 #define _T5CON_ON 0x01
6098 #define _T5CON_TMRON 0x01
6099 #define _T5CON_TMR5ON 0x01
6100 #define _T5CON_T5ON 0x01
6101 #define _T5CON_NOT_SYNC 0x04
6102 #define _T5CON_SYNC 0x04
6103 #define _T5CON_NOT_T5SYNC 0x04
6104 #define _T5CON_OSCEN 0x08
6105 #define _T5CON_SOSCEN 0x08
6106 #define _T5CON_T5OSCEN 0x08
6107 #define _T5CON_CKPS0 0x10
6108 #define _T5CON_T5CKPS0 0x10
6109 #define _T5CON_CKPS1 0x20
6110 #define _T5CON_T5CKPS1 0x20
6111 #define _T5CON_CS0 0x40
6112 #define _T5CON_T5CS0 0x40
6113 #define _T5CON_TMR5CS0 0x40
6114 #define _T5CON_CS1 0x80
6115 #define _T5CON_T5CS1 0x80
6116 #define _T5CON_TMR5CS1 0x80
6118 //==============================================================================
6121 //==============================================================================
6122 // T5GCON Bits
6124 extern __at(0x0412) __sfr T5GCON;
6126 typedef union
6128 struct
6130 unsigned GSS0 : 1;
6131 unsigned GSS1 : 1;
6132 unsigned GVAL : 1;
6133 unsigned GGO_NOT_DONE : 1;
6134 unsigned GSPM : 1;
6135 unsigned GTM : 1;
6136 unsigned GPOL : 1;
6137 unsigned GE : 1;
6140 struct
6142 unsigned T5GSS0 : 1;
6143 unsigned T5GSS1 : 1;
6144 unsigned T5GVAL : 1;
6145 unsigned T5GGO_NOT_DONE : 1;
6146 unsigned T5GSPM : 1;
6147 unsigned T5GTM : 1;
6148 unsigned T5GPOL : 1;
6149 unsigned T5GE : 1;
6152 struct
6154 unsigned : 1;
6155 unsigned : 1;
6156 unsigned : 1;
6157 unsigned : 1;
6158 unsigned : 1;
6159 unsigned : 1;
6160 unsigned : 1;
6161 unsigned TMR5GE : 1;
6164 struct
6166 unsigned T5GSS : 2;
6167 unsigned : 6;
6170 struct
6172 unsigned GSS : 2;
6173 unsigned : 6;
6175 } __T5GCONbits_t;
6177 extern __at(0x0412) volatile __T5GCONbits_t T5GCONbits;
6179 #define _T5GCON_GSS0 0x01
6180 #define _T5GCON_T5GSS0 0x01
6181 #define _T5GCON_GSS1 0x02
6182 #define _T5GCON_T5GSS1 0x02
6183 #define _T5GCON_GVAL 0x04
6184 #define _T5GCON_T5GVAL 0x04
6185 #define _T5GCON_GGO_NOT_DONE 0x08
6186 #define _T5GCON_T5GGO_NOT_DONE 0x08
6187 #define _T5GCON_GSPM 0x10
6188 #define _T5GCON_T5GSPM 0x10
6189 #define _T5GCON_GTM 0x20
6190 #define _T5GCON_T5GTM 0x20
6191 #define _T5GCON_GPOL 0x40
6192 #define _T5GCON_T5GPOL 0x40
6193 #define _T5GCON_GE 0x80
6194 #define _T5GCON_T5GE 0x80
6195 #define _T5GCON_TMR5GE 0x80
6197 //==============================================================================
6199 extern __at(0x0413) __sfr T4TMR;
6200 extern __at(0x0413) __sfr TMR4;
6201 extern __at(0x0414) __sfr PR4;
6202 extern __at(0x0414) __sfr T4PR;
6204 //==============================================================================
6205 // T4CON Bits
6207 extern __at(0x0415) __sfr T4CON;
6209 typedef union
6211 struct
6213 unsigned OUTPS0 : 1;
6214 unsigned OUTPS1 : 1;
6215 unsigned OUTPS2 : 1;
6216 unsigned OUTPS3 : 1;
6217 unsigned CKPS0 : 1;
6218 unsigned CKPS1 : 1;
6219 unsigned CKPS2 : 1;
6220 unsigned ON : 1;
6223 struct
6225 unsigned T4OUTPS0 : 1;
6226 unsigned T4OUTPS1 : 1;
6227 unsigned T4OUTPS2 : 1;
6228 unsigned T4OUTPS3 : 1;
6229 unsigned T4CKPS0 : 1;
6230 unsigned T4CKPS1 : 1;
6231 unsigned T4CKPS2 : 1;
6232 unsigned T4ON : 1;
6235 struct
6237 unsigned : 1;
6238 unsigned : 1;
6239 unsigned : 1;
6240 unsigned : 1;
6241 unsigned : 1;
6242 unsigned : 1;
6243 unsigned : 1;
6244 unsigned TMR4ON : 1;
6247 struct
6249 unsigned T4OUTPS : 4;
6250 unsigned : 4;
6253 struct
6255 unsigned OUTPS : 4;
6256 unsigned : 4;
6259 struct
6261 unsigned : 4;
6262 unsigned CKPS : 3;
6263 unsigned : 1;
6266 struct
6268 unsigned : 4;
6269 unsigned T4CKPS : 3;
6270 unsigned : 1;
6272 } __T4CONbits_t;
6274 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
6276 #define _T4CON_OUTPS0 0x01
6277 #define _T4CON_T4OUTPS0 0x01
6278 #define _T4CON_OUTPS1 0x02
6279 #define _T4CON_T4OUTPS1 0x02
6280 #define _T4CON_OUTPS2 0x04
6281 #define _T4CON_T4OUTPS2 0x04
6282 #define _T4CON_OUTPS3 0x08
6283 #define _T4CON_T4OUTPS3 0x08
6284 #define _T4CON_CKPS0 0x10
6285 #define _T4CON_T4CKPS0 0x10
6286 #define _T4CON_CKPS1 0x20
6287 #define _T4CON_T4CKPS1 0x20
6288 #define _T4CON_CKPS2 0x40
6289 #define _T4CON_T4CKPS2 0x40
6290 #define _T4CON_ON 0x80
6291 #define _T4CON_T4ON 0x80
6292 #define _T4CON_TMR4ON 0x80
6294 //==============================================================================
6297 //==============================================================================
6298 // T4HLT Bits
6300 extern __at(0x0416) __sfr T4HLT;
6302 typedef union
6304 struct
6306 unsigned MODE0 : 1;
6307 unsigned MODE1 : 1;
6308 unsigned MODE2 : 1;
6309 unsigned MODE3 : 1;
6310 unsigned MODE4 : 1;
6311 unsigned CKSYNC : 1;
6312 unsigned CKPOL : 1;
6313 unsigned PSYNC : 1;
6316 struct
6318 unsigned T4MODE0 : 1;
6319 unsigned T4MODE1 : 1;
6320 unsigned T4MODE2 : 1;
6321 unsigned T4MODE3 : 1;
6322 unsigned T4MODE4 : 1;
6323 unsigned T4CKSYNC : 1;
6324 unsigned T4CKPOL : 1;
6325 unsigned T4PSYNC : 1;
6328 struct
6330 unsigned MODE : 5;
6331 unsigned : 3;
6334 struct
6336 unsigned T4MODE : 5;
6337 unsigned : 3;
6339 } __T4HLTbits_t;
6341 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
6343 #define _T4HLT_MODE0 0x01
6344 #define _T4HLT_T4MODE0 0x01
6345 #define _T4HLT_MODE1 0x02
6346 #define _T4HLT_T4MODE1 0x02
6347 #define _T4HLT_MODE2 0x04
6348 #define _T4HLT_T4MODE2 0x04
6349 #define _T4HLT_MODE3 0x08
6350 #define _T4HLT_T4MODE3 0x08
6351 #define _T4HLT_MODE4 0x10
6352 #define _T4HLT_T4MODE4 0x10
6353 #define _T4HLT_CKSYNC 0x20
6354 #define _T4HLT_T4CKSYNC 0x20
6355 #define _T4HLT_CKPOL 0x40
6356 #define _T4HLT_T4CKPOL 0x40
6357 #define _T4HLT_PSYNC 0x80
6358 #define _T4HLT_T4PSYNC 0x80
6360 //==============================================================================
6363 //==============================================================================
6364 // T4CLKCON Bits
6366 extern __at(0x0417) __sfr T4CLKCON;
6368 typedef union
6370 struct
6372 unsigned CS0 : 1;
6373 unsigned CS1 : 1;
6374 unsigned CS2 : 1;
6375 unsigned CS3 : 1;
6376 unsigned : 1;
6377 unsigned : 1;
6378 unsigned : 1;
6379 unsigned : 1;
6382 struct
6384 unsigned T4CS0 : 1;
6385 unsigned T4CS1 : 1;
6386 unsigned T4CS2 : 1;
6387 unsigned T4CS3 : 1;
6388 unsigned : 1;
6389 unsigned : 1;
6390 unsigned : 1;
6391 unsigned : 1;
6394 struct
6396 unsigned CS : 4;
6397 unsigned : 4;
6400 struct
6402 unsigned T4CS : 4;
6403 unsigned : 4;
6405 } __T4CLKCONbits_t;
6407 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
6409 #define _T4CLKCON_CS0 0x01
6410 #define _T4CLKCON_T4CS0 0x01
6411 #define _T4CLKCON_CS1 0x02
6412 #define _T4CLKCON_T4CS1 0x02
6413 #define _T4CLKCON_CS2 0x04
6414 #define _T4CLKCON_T4CS2 0x04
6415 #define _T4CLKCON_CS3 0x08
6416 #define _T4CLKCON_T4CS3 0x08
6418 //==============================================================================
6421 //==============================================================================
6422 // T4RST Bits
6424 extern __at(0x0418) __sfr T4RST;
6426 typedef union
6428 struct
6430 unsigned RSEL0 : 1;
6431 unsigned RSEL1 : 1;
6432 unsigned RSEL2 : 1;
6433 unsigned RSEL3 : 1;
6434 unsigned RSEL4 : 1;
6435 unsigned : 1;
6436 unsigned : 1;
6437 unsigned : 1;
6440 struct
6442 unsigned T4RSEL0 : 1;
6443 unsigned T4RSEL1 : 1;
6444 unsigned T4RSEL2 : 1;
6445 unsigned T4RSEL3 : 1;
6446 unsigned T4RSEL4 : 1;
6447 unsigned : 1;
6448 unsigned : 1;
6449 unsigned : 1;
6452 struct
6454 unsigned RSEL : 5;
6455 unsigned : 3;
6458 struct
6460 unsigned T4RSEL : 5;
6461 unsigned : 3;
6463 } __T4RSTbits_t;
6465 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
6467 #define _T4RST_RSEL0 0x01
6468 #define _T4RST_T4RSEL0 0x01
6469 #define _T4RST_RSEL1 0x02
6470 #define _T4RST_T4RSEL1 0x02
6471 #define _T4RST_RSEL2 0x04
6472 #define _T4RST_T4RSEL2 0x04
6473 #define _T4RST_RSEL3 0x08
6474 #define _T4RST_T4RSEL3 0x08
6475 #define _T4RST_RSEL4 0x10
6476 #define _T4RST_T4RSEL4 0x10
6478 //==============================================================================
6480 extern __at(0x041A) __sfr T6TMR;
6481 extern __at(0x041A) __sfr TMR6;
6482 extern __at(0x041B) __sfr PR6;
6483 extern __at(0x041B) __sfr T6PR;
6485 //==============================================================================
6486 // T6CON Bits
6488 extern __at(0x041C) __sfr T6CON;
6490 typedef union
6492 struct
6494 unsigned OUTPS0 : 1;
6495 unsigned OUTPS1 : 1;
6496 unsigned OUTPS2 : 1;
6497 unsigned OUTPS3 : 1;
6498 unsigned CKPS0 : 1;
6499 unsigned CKPS1 : 1;
6500 unsigned CKPS2 : 1;
6501 unsigned ON : 1;
6504 struct
6506 unsigned T6OUTPS0 : 1;
6507 unsigned T6OUTPS1 : 1;
6508 unsigned T6OUTPS2 : 1;
6509 unsigned T6OUTPS3 : 1;
6510 unsigned T6CKPS0 : 1;
6511 unsigned T6CKPS1 : 1;
6512 unsigned T6CKPS2 : 1;
6513 unsigned T6ON : 1;
6516 struct
6518 unsigned : 1;
6519 unsigned : 1;
6520 unsigned : 1;
6521 unsigned : 1;
6522 unsigned : 1;
6523 unsigned : 1;
6524 unsigned : 1;
6525 unsigned TMR6ON : 1;
6528 struct
6530 unsigned T6OUTPS : 4;
6531 unsigned : 4;
6534 struct
6536 unsigned OUTPS : 4;
6537 unsigned : 4;
6540 struct
6542 unsigned : 4;
6543 unsigned CKPS : 3;
6544 unsigned : 1;
6547 struct
6549 unsigned : 4;
6550 unsigned T6CKPS : 3;
6551 unsigned : 1;
6553 } __T6CONbits_t;
6555 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
6557 #define _T6CON_OUTPS0 0x01
6558 #define _T6CON_T6OUTPS0 0x01
6559 #define _T6CON_OUTPS1 0x02
6560 #define _T6CON_T6OUTPS1 0x02
6561 #define _T6CON_OUTPS2 0x04
6562 #define _T6CON_T6OUTPS2 0x04
6563 #define _T6CON_OUTPS3 0x08
6564 #define _T6CON_T6OUTPS3 0x08
6565 #define _T6CON_CKPS0 0x10
6566 #define _T6CON_T6CKPS0 0x10
6567 #define _T6CON_CKPS1 0x20
6568 #define _T6CON_T6CKPS1 0x20
6569 #define _T6CON_CKPS2 0x40
6570 #define _T6CON_T6CKPS2 0x40
6571 #define _T6CON_ON 0x80
6572 #define _T6CON_T6ON 0x80
6573 #define _T6CON_TMR6ON 0x80
6575 //==============================================================================
6578 //==============================================================================
6579 // T6HLT Bits
6581 extern __at(0x041D) __sfr T6HLT;
6583 typedef union
6585 struct
6587 unsigned MODE0 : 1;
6588 unsigned MODE1 : 1;
6589 unsigned MODE2 : 1;
6590 unsigned MODE3 : 1;
6591 unsigned MODE4 : 1;
6592 unsigned CKSYNC : 1;
6593 unsigned CKPOL : 1;
6594 unsigned PSYNC : 1;
6597 struct
6599 unsigned T6MODE0 : 1;
6600 unsigned T6MODE1 : 1;
6601 unsigned T6MODE2 : 1;
6602 unsigned T6MODE3 : 1;
6603 unsigned T6MODE4 : 1;
6604 unsigned T6CKSYNC : 1;
6605 unsigned T6CKPOL : 1;
6606 unsigned T6PSYNC : 1;
6609 struct
6611 unsigned T6MODE : 5;
6612 unsigned : 3;
6615 struct
6617 unsigned MODE : 5;
6618 unsigned : 3;
6620 } __T6HLTbits_t;
6622 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
6624 #define _T6HLT_MODE0 0x01
6625 #define _T6HLT_T6MODE0 0x01
6626 #define _T6HLT_MODE1 0x02
6627 #define _T6HLT_T6MODE1 0x02
6628 #define _T6HLT_MODE2 0x04
6629 #define _T6HLT_T6MODE2 0x04
6630 #define _T6HLT_MODE3 0x08
6631 #define _T6HLT_T6MODE3 0x08
6632 #define _T6HLT_MODE4 0x10
6633 #define _T6HLT_T6MODE4 0x10
6634 #define _T6HLT_CKSYNC 0x20
6635 #define _T6HLT_T6CKSYNC 0x20
6636 #define _T6HLT_CKPOL 0x40
6637 #define _T6HLT_T6CKPOL 0x40
6638 #define _T6HLT_PSYNC 0x80
6639 #define _T6HLT_T6PSYNC 0x80
6641 //==============================================================================
6644 //==============================================================================
6645 // T6CLKCON Bits
6647 extern __at(0x041E) __sfr T6CLKCON;
6649 typedef union
6651 struct
6653 unsigned CS0 : 1;
6654 unsigned CS1 : 1;
6655 unsigned CS2 : 1;
6656 unsigned CS3 : 1;
6657 unsigned : 1;
6658 unsigned : 1;
6659 unsigned : 1;
6660 unsigned : 1;
6663 struct
6665 unsigned T6CS0 : 1;
6666 unsigned T6CS1 : 1;
6667 unsigned T6CS2 : 1;
6668 unsigned T6CS3 : 1;
6669 unsigned : 1;
6670 unsigned : 1;
6671 unsigned : 1;
6672 unsigned : 1;
6675 struct
6677 unsigned CS : 4;
6678 unsigned : 4;
6681 struct
6683 unsigned T6CS : 4;
6684 unsigned : 4;
6686 } __T6CLKCONbits_t;
6688 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
6690 #define _T6CLKCON_CS0 0x01
6691 #define _T6CLKCON_T6CS0 0x01
6692 #define _T6CLKCON_CS1 0x02
6693 #define _T6CLKCON_T6CS1 0x02
6694 #define _T6CLKCON_CS2 0x04
6695 #define _T6CLKCON_T6CS2 0x04
6696 #define _T6CLKCON_CS3 0x08
6697 #define _T6CLKCON_T6CS3 0x08
6699 //==============================================================================
6702 //==============================================================================
6703 // T6RST Bits
6705 extern __at(0x041F) __sfr T6RST;
6707 typedef union
6709 struct
6711 unsigned RSEL0 : 1;
6712 unsigned RSEL1 : 1;
6713 unsigned RSEL2 : 1;
6714 unsigned RSEL3 : 1;
6715 unsigned RSEL4 : 1;
6716 unsigned : 1;
6717 unsigned : 1;
6718 unsigned : 1;
6721 struct
6723 unsigned T6RSEL0 : 1;
6724 unsigned T6RSEL1 : 1;
6725 unsigned T6RSEL2 : 1;
6726 unsigned T6RSEL3 : 1;
6727 unsigned T6RSEL4 : 1;
6728 unsigned : 1;
6729 unsigned : 1;
6730 unsigned : 1;
6733 struct
6735 unsigned T6RSEL : 5;
6736 unsigned : 3;
6739 struct
6741 unsigned RSEL : 5;
6742 unsigned : 3;
6744 } __T6RSTbits_t;
6746 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
6748 #define _T6RST_RSEL0 0x01
6749 #define _T6RST_T6RSEL0 0x01
6750 #define _T6RST_RSEL1 0x02
6751 #define _T6RST_T6RSEL1 0x02
6752 #define _T6RST_RSEL2 0x04
6753 #define _T6RST_T6RSEL2 0x04
6754 #define _T6RST_RSEL3 0x08
6755 #define _T6RST_T6RSEL3 0x08
6756 #define _T6RST_RSEL4 0x10
6757 #define _T6RST_T6RSEL4 0x10
6759 //==============================================================================
6761 extern __at(0x048E) __sfr ADRESL;
6762 extern __at(0x048F) __sfr ADRESH;
6764 //==============================================================================
6765 // ADCON0 Bits
6767 extern __at(0x0490) __sfr ADCON0;
6769 typedef struct
6771 unsigned ADON : 1;
6772 unsigned GO : 1;
6773 unsigned : 1;
6774 unsigned : 1;
6775 unsigned : 1;
6776 unsigned : 1;
6777 unsigned : 1;
6778 unsigned : 1;
6779 } __ADCON0bits_t;
6781 extern __at(0x0490) volatile __ADCON0bits_t ADCON0bits;
6783 #define _ADON 0x01
6784 #define _GO 0x02
6786 //==============================================================================
6789 //==============================================================================
6790 // ADCON1 Bits
6792 extern __at(0x0491) __sfr ADCON1;
6794 typedef struct
6796 unsigned : 1;
6797 unsigned : 1;
6798 unsigned ADNREF : 1;
6799 unsigned : 1;
6800 unsigned : 1;
6801 unsigned : 1;
6802 unsigned : 1;
6803 unsigned ADFM : 1;
6804 } __ADCON1bits_t;
6806 extern __at(0x0491) volatile __ADCON1bits_t ADCON1bits;
6808 #define _ADNREF 0x04
6809 #define _ADFM 0x80
6811 //==============================================================================
6813 extern __at(0x0492) __sfr ADCON2;
6814 extern __at(0x0493) __sfr T2TMR;
6815 extern __at(0x0493) __sfr TMR2;
6816 extern __at(0x0494) __sfr PR2;
6817 extern __at(0x0494) __sfr T2PR;
6819 //==============================================================================
6820 // T2CON Bits
6822 extern __at(0x0495) __sfr T2CON;
6824 typedef union
6826 struct
6828 unsigned OUTPS0 : 1;
6829 unsigned OUTPS1 : 1;
6830 unsigned OUTPS2 : 1;
6831 unsigned OUTPS3 : 1;
6832 unsigned CKPS0 : 1;
6833 unsigned CKPS1 : 1;
6834 unsigned CKPS2 : 1;
6835 unsigned ON : 1;
6838 struct
6840 unsigned T2OUTPS0 : 1;
6841 unsigned T2OUTPS1 : 1;
6842 unsigned T2OUTPS2 : 1;
6843 unsigned T2OUTPS3 : 1;
6844 unsigned T2CKPS0 : 1;
6845 unsigned T2CKPS1 : 1;
6846 unsigned T2CKPS2 : 1;
6847 unsigned T2ON : 1;
6850 struct
6852 unsigned : 1;
6853 unsigned : 1;
6854 unsigned : 1;
6855 unsigned : 1;
6856 unsigned : 1;
6857 unsigned : 1;
6858 unsigned : 1;
6859 unsigned TMR2ON : 1;
6862 struct
6864 unsigned OUTPS : 4;
6865 unsigned : 4;
6868 struct
6870 unsigned T2OUTPS : 4;
6871 unsigned : 4;
6874 struct
6876 unsigned : 4;
6877 unsigned T2CKPS : 3;
6878 unsigned : 1;
6881 struct
6883 unsigned : 4;
6884 unsigned CKPS : 3;
6885 unsigned : 1;
6887 } __T2CONbits_t;
6889 extern __at(0x0495) volatile __T2CONbits_t T2CONbits;
6891 #define _T2CON_OUTPS0 0x01
6892 #define _T2CON_T2OUTPS0 0x01
6893 #define _T2CON_OUTPS1 0x02
6894 #define _T2CON_T2OUTPS1 0x02
6895 #define _T2CON_OUTPS2 0x04
6896 #define _T2CON_T2OUTPS2 0x04
6897 #define _T2CON_OUTPS3 0x08
6898 #define _T2CON_T2OUTPS3 0x08
6899 #define _T2CON_CKPS0 0x10
6900 #define _T2CON_T2CKPS0 0x10
6901 #define _T2CON_CKPS1 0x20
6902 #define _T2CON_T2CKPS1 0x20
6903 #define _T2CON_CKPS2 0x40
6904 #define _T2CON_T2CKPS2 0x40
6905 #define _T2CON_ON 0x80
6906 #define _T2CON_T2ON 0x80
6907 #define _T2CON_TMR2ON 0x80
6909 //==============================================================================
6912 //==============================================================================
6913 // T2HLT Bits
6915 extern __at(0x0496) __sfr T2HLT;
6917 typedef union
6919 struct
6921 unsigned MODE0 : 1;
6922 unsigned MODE1 : 1;
6923 unsigned MODE2 : 1;
6924 unsigned MODE3 : 1;
6925 unsigned MODE4 : 1;
6926 unsigned CKSYNC : 1;
6927 unsigned CKPOL : 1;
6928 unsigned PSYNC : 1;
6931 struct
6933 unsigned T2MODE0 : 1;
6934 unsigned T2MODE1 : 1;
6935 unsigned T2MODE2 : 1;
6936 unsigned T2MODE3 : 1;
6937 unsigned T2MODE4 : 1;
6938 unsigned T2CKSYNC : 1;
6939 unsigned T2CKPOL : 1;
6940 unsigned T2PSYNC : 1;
6943 struct
6945 unsigned T2MODE : 5;
6946 unsigned : 3;
6949 struct
6951 unsigned MODE : 5;
6952 unsigned : 3;
6954 } __T2HLTbits_t;
6956 extern __at(0x0496) volatile __T2HLTbits_t T2HLTbits;
6958 #define _T2HLT_MODE0 0x01
6959 #define _T2HLT_T2MODE0 0x01
6960 #define _T2HLT_MODE1 0x02
6961 #define _T2HLT_T2MODE1 0x02
6962 #define _T2HLT_MODE2 0x04
6963 #define _T2HLT_T2MODE2 0x04
6964 #define _T2HLT_MODE3 0x08
6965 #define _T2HLT_T2MODE3 0x08
6966 #define _T2HLT_MODE4 0x10
6967 #define _T2HLT_T2MODE4 0x10
6968 #define _T2HLT_CKSYNC 0x20
6969 #define _T2HLT_T2CKSYNC 0x20
6970 #define _T2HLT_CKPOL 0x40
6971 #define _T2HLT_T2CKPOL 0x40
6972 #define _T2HLT_PSYNC 0x80
6973 #define _T2HLT_T2PSYNC 0x80
6975 //==============================================================================
6978 //==============================================================================
6979 // T2CLKCON Bits
6981 extern __at(0x0497) __sfr T2CLKCON;
6983 typedef union
6985 struct
6987 unsigned CS0 : 1;
6988 unsigned CS1 : 1;
6989 unsigned CS2 : 1;
6990 unsigned CS3 : 1;
6991 unsigned : 1;
6992 unsigned : 1;
6993 unsigned : 1;
6994 unsigned : 1;
6997 struct
6999 unsigned T2CS0 : 1;
7000 unsigned T2CS1 : 1;
7001 unsigned T2CS2 : 1;
7002 unsigned T2CS3 : 1;
7003 unsigned : 1;
7004 unsigned : 1;
7005 unsigned : 1;
7006 unsigned : 1;
7009 struct
7011 unsigned CS : 4;
7012 unsigned : 4;
7015 struct
7017 unsigned T2CS : 4;
7018 unsigned : 4;
7020 } __T2CLKCONbits_t;
7022 extern __at(0x0497) volatile __T2CLKCONbits_t T2CLKCONbits;
7024 #define _T2CLKCON_CS0 0x01
7025 #define _T2CLKCON_T2CS0 0x01
7026 #define _T2CLKCON_CS1 0x02
7027 #define _T2CLKCON_T2CS1 0x02
7028 #define _T2CLKCON_CS2 0x04
7029 #define _T2CLKCON_T2CS2 0x04
7030 #define _T2CLKCON_CS3 0x08
7031 #define _T2CLKCON_T2CS3 0x08
7033 //==============================================================================
7036 //==============================================================================
7037 // T2RST Bits
7039 extern __at(0x0498) __sfr T2RST;
7041 typedef union
7043 struct
7045 unsigned RSEL0 : 1;
7046 unsigned RSEL1 : 1;
7047 unsigned RSEL2 : 1;
7048 unsigned RSEL3 : 1;
7049 unsigned RSEL4 : 1;
7050 unsigned : 1;
7051 unsigned : 1;
7052 unsigned : 1;
7055 struct
7057 unsigned T2RSEL0 : 1;
7058 unsigned T2RSEL1 : 1;
7059 unsigned T2RSEL2 : 1;
7060 unsigned T2RSEL3 : 1;
7061 unsigned T2RSEL4 : 1;
7062 unsigned : 1;
7063 unsigned : 1;
7064 unsigned : 1;
7067 struct
7069 unsigned T2RSEL : 5;
7070 unsigned : 3;
7073 struct
7075 unsigned RSEL : 5;
7076 unsigned : 3;
7078 } __T2RSTbits_t;
7080 extern __at(0x0498) volatile __T2RSTbits_t T2RSTbits;
7082 #define _RSEL0 0x01
7083 #define _T2RSEL0 0x01
7084 #define _RSEL1 0x02
7085 #define _T2RSEL1 0x02
7086 #define _RSEL2 0x04
7087 #define _T2RSEL2 0x04
7088 #define _RSEL3 0x08
7089 #define _T2RSEL3 0x08
7090 #define _RSEL4 0x10
7091 #define _T2RSEL4 0x10
7093 //==============================================================================
7095 extern __at(0x049A) __sfr T8TMR;
7096 extern __at(0x049A) __sfr TMR8;
7097 extern __at(0x049B) __sfr PR8;
7098 extern __at(0x049B) __sfr T8PR;
7100 //==============================================================================
7101 // T8CON Bits
7103 extern __at(0x049C) __sfr T8CON;
7105 typedef union
7107 struct
7109 unsigned OUTPS0 : 1;
7110 unsigned OUTPS1 : 1;
7111 unsigned OUTPS2 : 1;
7112 unsigned OUTPS3 : 1;
7113 unsigned CKPS0 : 1;
7114 unsigned CKPS1 : 1;
7115 unsigned CKPS2 : 1;
7116 unsigned ON : 1;
7119 struct
7121 unsigned T8OUTPS0 : 1;
7122 unsigned T8OUTPS1 : 1;
7123 unsigned T8OUTPS2 : 1;
7124 unsigned T8OUTPS3 : 1;
7125 unsigned T8CKPS0 : 1;
7126 unsigned T8CKPS1 : 1;
7127 unsigned T8CKPS2 : 1;
7128 unsigned T8ON : 1;
7131 struct
7133 unsigned : 1;
7134 unsigned : 1;
7135 unsigned : 1;
7136 unsigned : 1;
7137 unsigned : 1;
7138 unsigned : 1;
7139 unsigned : 1;
7140 unsigned TMR8ON : 1;
7143 struct
7145 unsigned OUTPS : 4;
7146 unsigned : 4;
7149 struct
7151 unsigned T8OUTPS : 4;
7152 unsigned : 4;
7155 struct
7157 unsigned : 4;
7158 unsigned T8CKPS : 3;
7159 unsigned : 1;
7162 struct
7164 unsigned : 4;
7165 unsigned CKPS : 3;
7166 unsigned : 1;
7168 } __T8CONbits_t;
7170 extern __at(0x049C) volatile __T8CONbits_t T8CONbits;
7172 #define _T8CON_OUTPS0 0x01
7173 #define _T8CON_T8OUTPS0 0x01
7174 #define _T8CON_OUTPS1 0x02
7175 #define _T8CON_T8OUTPS1 0x02
7176 #define _T8CON_OUTPS2 0x04
7177 #define _T8CON_T8OUTPS2 0x04
7178 #define _T8CON_OUTPS3 0x08
7179 #define _T8CON_T8OUTPS3 0x08
7180 #define _T8CON_CKPS0 0x10
7181 #define _T8CON_T8CKPS0 0x10
7182 #define _T8CON_CKPS1 0x20
7183 #define _T8CON_T8CKPS1 0x20
7184 #define _T8CON_CKPS2 0x40
7185 #define _T8CON_T8CKPS2 0x40
7186 #define _T8CON_ON 0x80
7187 #define _T8CON_T8ON 0x80
7188 #define _T8CON_TMR8ON 0x80
7190 //==============================================================================
7193 //==============================================================================
7194 // T8HLT Bits
7196 extern __at(0x049D) __sfr T8HLT;
7198 typedef union
7200 struct
7202 unsigned MODE0 : 1;
7203 unsigned MODE1 : 1;
7204 unsigned MODE2 : 1;
7205 unsigned MODE3 : 1;
7206 unsigned MODE4 : 1;
7207 unsigned CKSYNC : 1;
7208 unsigned CKPOL : 1;
7209 unsigned PSYNC : 1;
7212 struct
7214 unsigned T8MODE0 : 1;
7215 unsigned T8MODE1 : 1;
7216 unsigned T8MODE2 : 1;
7217 unsigned T8MODE3 : 1;
7218 unsigned T8MODE4 : 1;
7219 unsigned T8CKSYNC : 1;
7220 unsigned T8CKPOL : 1;
7221 unsigned T8PSYNC : 1;
7224 struct
7226 unsigned T8MODE : 5;
7227 unsigned : 3;
7230 struct
7232 unsigned MODE : 5;
7233 unsigned : 3;
7235 } __T8HLTbits_t;
7237 extern __at(0x049D) volatile __T8HLTbits_t T8HLTbits;
7239 #define _T8HLT_MODE0 0x01
7240 #define _T8HLT_T8MODE0 0x01
7241 #define _T8HLT_MODE1 0x02
7242 #define _T8HLT_T8MODE1 0x02
7243 #define _T8HLT_MODE2 0x04
7244 #define _T8HLT_T8MODE2 0x04
7245 #define _T8HLT_MODE3 0x08
7246 #define _T8HLT_T8MODE3 0x08
7247 #define _T8HLT_MODE4 0x10
7248 #define _T8HLT_T8MODE4 0x10
7249 #define _T8HLT_CKSYNC 0x20
7250 #define _T8HLT_T8CKSYNC 0x20
7251 #define _T8HLT_CKPOL 0x40
7252 #define _T8HLT_T8CKPOL 0x40
7253 #define _T8HLT_PSYNC 0x80
7254 #define _T8HLT_T8PSYNC 0x80
7256 //==============================================================================
7259 //==============================================================================
7260 // T8CLKCON Bits
7262 extern __at(0x049E) __sfr T8CLKCON;
7264 typedef union
7266 struct
7268 unsigned CS0 : 1;
7269 unsigned CS1 : 1;
7270 unsigned CS2 : 1;
7271 unsigned CS3 : 1;
7272 unsigned : 1;
7273 unsigned : 1;
7274 unsigned : 1;
7275 unsigned : 1;
7278 struct
7280 unsigned T8CS0 : 1;
7281 unsigned T8CS1 : 1;
7282 unsigned T8CS2 : 1;
7283 unsigned T8CS3 : 1;
7284 unsigned : 1;
7285 unsigned : 1;
7286 unsigned : 1;
7287 unsigned : 1;
7290 struct
7292 unsigned CS : 4;
7293 unsigned : 4;
7296 struct
7298 unsigned T8CS : 4;
7299 unsigned : 4;
7301 } __T8CLKCONbits_t;
7303 extern __at(0x049E) volatile __T8CLKCONbits_t T8CLKCONbits;
7305 #define _T8CLKCON_CS0 0x01
7306 #define _T8CLKCON_T8CS0 0x01
7307 #define _T8CLKCON_CS1 0x02
7308 #define _T8CLKCON_T8CS1 0x02
7309 #define _T8CLKCON_CS2 0x04
7310 #define _T8CLKCON_T8CS2 0x04
7311 #define _T8CLKCON_CS3 0x08
7312 #define _T8CLKCON_T8CS3 0x08
7314 //==============================================================================
7317 //==============================================================================
7318 // T8RST Bits
7320 extern __at(0x049F) __sfr T8RST;
7322 typedef union
7324 struct
7326 unsigned RSEL0 : 1;
7327 unsigned RSEL1 : 1;
7328 unsigned RSEL2 : 1;
7329 unsigned RSEL3 : 1;
7330 unsigned RSEL4 : 1;
7331 unsigned : 1;
7332 unsigned : 1;
7333 unsigned : 1;
7336 struct
7338 unsigned T8RSEL0 : 1;
7339 unsigned T8RSEL1 : 1;
7340 unsigned T8RSEL2 : 1;
7341 unsigned T8RSEL3 : 1;
7342 unsigned T8RSEL4 : 1;
7343 unsigned : 1;
7344 unsigned : 1;
7345 unsigned : 1;
7348 struct
7350 unsigned RSEL : 5;
7351 unsigned : 3;
7354 struct
7356 unsigned T8RSEL : 5;
7357 unsigned : 3;
7359 } __T8RSTbits_t;
7361 extern __at(0x049F) volatile __T8RSTbits_t T8RSTbits;
7363 #define _T8RST_RSEL0 0x01
7364 #define _T8RST_T8RSEL0 0x01
7365 #define _T8RST_RSEL1 0x02
7366 #define _T8RST_T8RSEL1 0x02
7367 #define _T8RST_RSEL2 0x04
7368 #define _T8RST_T8RSEL2 0x04
7369 #define _T8RST_RSEL3 0x08
7370 #define _T8RST_T8RSEL3 0x08
7371 #define _T8RST_RSEL4 0x10
7372 #define _T8RST_T8RSEL4 0x10
7374 //==============================================================================
7376 extern __at(0x050F) __sfr OPA1NCHS;
7377 extern __at(0x0510) __sfr OPA1PCHS;
7379 //==============================================================================
7380 // OPA1CON Bits
7382 extern __at(0x0511) __sfr OPA1CON;
7384 typedef union
7386 struct
7388 unsigned ORM0 : 1;
7389 unsigned ORM1 : 1;
7390 unsigned ORPOL : 1;
7391 unsigned : 1;
7392 unsigned UG : 1;
7393 unsigned : 1;
7394 unsigned : 1;
7395 unsigned EN : 1;
7398 struct
7400 unsigned OPA1ORM0 : 1;
7401 unsigned OPA1ORM1 : 1;
7402 unsigned OPA1ORPOL : 1;
7403 unsigned : 1;
7404 unsigned OPA1UG : 1;
7405 unsigned : 1;
7406 unsigned : 1;
7407 unsigned OPA1EN : 1;
7410 struct
7412 unsigned OPA1ORM : 2;
7413 unsigned : 6;
7416 struct
7418 unsigned ORM : 2;
7419 unsigned : 6;
7421 } __OPA1CONbits_t;
7423 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
7425 #define _OPA1CON_ORM0 0x01
7426 #define _OPA1CON_OPA1ORM0 0x01
7427 #define _OPA1CON_ORM1 0x02
7428 #define _OPA1CON_OPA1ORM1 0x02
7429 #define _OPA1CON_ORPOL 0x04
7430 #define _OPA1CON_OPA1ORPOL 0x04
7431 #define _OPA1CON_UG 0x10
7432 #define _OPA1CON_OPA1UG 0x10
7433 #define _OPA1CON_EN 0x80
7434 #define _OPA1CON_OPA1EN 0x80
7436 //==============================================================================
7438 extern __at(0x0512) __sfr OPA1ORS;
7439 extern __at(0x0513) __sfr OPA2NCHS;
7440 extern __at(0x0514) __sfr OPA2PCHS;
7442 //==============================================================================
7443 // OPA2CON Bits
7445 extern __at(0x0515) __sfr OPA2CON;
7447 typedef union
7449 struct
7451 unsigned ORM0 : 1;
7452 unsigned ORM1 : 1;
7453 unsigned ORPOL : 1;
7454 unsigned : 1;
7455 unsigned UG : 1;
7456 unsigned : 1;
7457 unsigned : 1;
7458 unsigned EN : 1;
7461 struct
7463 unsigned OPA2ORM0 : 1;
7464 unsigned OPA2ORM1 : 1;
7465 unsigned OPA2ORPOL : 1;
7466 unsigned : 1;
7467 unsigned OPA2UG : 1;
7468 unsigned : 1;
7469 unsigned : 1;
7470 unsigned OPA2EN : 1;
7473 struct
7475 unsigned OPA2ORM : 2;
7476 unsigned : 6;
7479 struct
7481 unsigned ORM : 2;
7482 unsigned : 6;
7484 } __OPA2CONbits_t;
7486 extern __at(0x0515) volatile __OPA2CONbits_t OPA2CONbits;
7488 #define _OPA2CON_ORM0 0x01
7489 #define _OPA2CON_OPA2ORM0 0x01
7490 #define _OPA2CON_ORM1 0x02
7491 #define _OPA2CON_OPA2ORM1 0x02
7492 #define _OPA2CON_ORPOL 0x04
7493 #define _OPA2CON_OPA2ORPOL 0x04
7494 #define _OPA2CON_UG 0x10
7495 #define _OPA2CON_OPA2UG 0x10
7496 #define _OPA2CON_EN 0x80
7497 #define _OPA2CON_OPA2EN 0x80
7499 //==============================================================================
7501 extern __at(0x0516) __sfr OPA2ORS;
7502 extern __at(0x0517) __sfr OPA3NCHS;
7503 extern __at(0x0518) __sfr OPA3PCHS;
7505 //==============================================================================
7506 // OPA3CON Bits
7508 extern __at(0x0519) __sfr OPA3CON;
7510 typedef union
7512 struct
7514 unsigned ORM0 : 1;
7515 unsigned ORM1 : 1;
7516 unsigned ORPOL : 1;
7517 unsigned : 1;
7518 unsigned UG : 1;
7519 unsigned : 1;
7520 unsigned SP : 1;
7521 unsigned EN : 1;
7524 struct
7526 unsigned OPA3ORM0 : 1;
7527 unsigned OPA3ORM1 : 1;
7528 unsigned OPA3ORPOL : 1;
7529 unsigned : 1;
7530 unsigned OPA3UG : 1;
7531 unsigned : 1;
7532 unsigned OPA3SP : 1;
7533 unsigned OPA3EN : 1;
7536 struct
7538 unsigned ORM : 2;
7539 unsigned : 6;
7542 struct
7544 unsigned OPA3ORM : 2;
7545 unsigned : 6;
7547 } __OPA3CONbits_t;
7549 extern __at(0x0519) volatile __OPA3CONbits_t OPA3CONbits;
7551 #define _OPA3CON_ORM0 0x01
7552 #define _OPA3CON_OPA3ORM0 0x01
7553 #define _OPA3CON_ORM1 0x02
7554 #define _OPA3CON_OPA3ORM1 0x02
7555 #define _OPA3CON_ORPOL 0x04
7556 #define _OPA3CON_OPA3ORPOL 0x04
7557 #define _OPA3CON_UG 0x10
7558 #define _OPA3CON_OPA3UG 0x10
7559 #define _OPA3CON_SP 0x40
7560 #define _OPA3CON_OPA3SP 0x40
7561 #define _OPA3CON_EN 0x80
7562 #define _OPA3CON_OPA3EN 0x80
7564 //==============================================================================
7566 extern __at(0x051A) __sfr OPA3ORS;
7568 //==============================================================================
7569 // DACLD Bits
7571 extern __at(0x058D) __sfr DACLD;
7573 typedef struct
7575 unsigned DAC1LD : 1;
7576 unsigned DAC2LD : 1;
7577 unsigned : 1;
7578 unsigned : 1;
7579 unsigned DAC5LD : 1;
7580 unsigned : 1;
7581 unsigned : 1;
7582 unsigned : 1;
7583 } __DACLDbits_t;
7585 extern __at(0x058D) volatile __DACLDbits_t DACLDbits;
7587 #define _DAC1LD 0x01
7588 #define _DAC2LD 0x02
7589 #define _DAC5LD 0x10
7591 //==============================================================================
7594 //==============================================================================
7595 // DAC1CON0 Bits
7597 extern __at(0x058E) __sfr DAC1CON0;
7599 typedef union
7601 struct
7603 unsigned NSS0 : 1;
7604 unsigned NSS1 : 1;
7605 unsigned PSS0 : 1;
7606 unsigned PSS1 : 1;
7607 unsigned OE2 : 1;
7608 unsigned OE1 : 1;
7609 unsigned FM : 1;
7610 unsigned EN : 1;
7613 struct
7615 unsigned DACNSS0 : 1;
7616 unsigned DACNSS1 : 1;
7617 unsigned DACPSS0 : 1;
7618 unsigned DACPSS1 : 1;
7619 unsigned DACOE2 : 1;
7620 unsigned OE : 1;
7621 unsigned DACFM : 1;
7622 unsigned DACEN : 1;
7625 struct
7627 unsigned DAC1NSS0 : 1;
7628 unsigned DAC1NSS1 : 1;
7629 unsigned DAC1PSS0 : 1;
7630 unsigned DAC1PSS1 : 1;
7631 unsigned DAC1OE2 : 1;
7632 unsigned DACOE1 : 1;
7633 unsigned DAC1FM : 1;
7634 unsigned DAC1EN : 1;
7637 struct
7639 unsigned : 1;
7640 unsigned : 1;
7641 unsigned : 1;
7642 unsigned : 1;
7643 unsigned : 1;
7644 unsigned DACOE : 1;
7645 unsigned : 1;
7646 unsigned : 1;
7649 struct
7651 unsigned : 1;
7652 unsigned : 1;
7653 unsigned : 1;
7654 unsigned : 1;
7655 unsigned : 1;
7656 unsigned DAC1OE1 : 1;
7657 unsigned : 1;
7658 unsigned : 1;
7661 struct
7663 unsigned NSS : 2;
7664 unsigned : 6;
7667 struct
7669 unsigned DACNSS : 2;
7670 unsigned : 6;
7673 struct
7675 unsigned DAC1NSS : 2;
7676 unsigned : 6;
7679 struct
7681 unsigned : 2;
7682 unsigned DACPSS : 2;
7683 unsigned : 4;
7686 struct
7688 unsigned : 2;
7689 unsigned PSS : 2;
7690 unsigned : 4;
7693 struct
7695 unsigned : 2;
7696 unsigned DAC1PSS : 2;
7697 unsigned : 4;
7699 } __DAC1CON0bits_t;
7701 extern __at(0x058E) volatile __DAC1CON0bits_t DAC1CON0bits;
7703 #define _DAC1CON0_NSS0 0x01
7704 #define _DAC1CON0_DACNSS0 0x01
7705 #define _DAC1CON0_DAC1NSS0 0x01
7706 #define _DAC1CON0_NSS1 0x02
7707 #define _DAC1CON0_DACNSS1 0x02
7708 #define _DAC1CON0_DAC1NSS1 0x02
7709 #define _DAC1CON0_PSS0 0x04
7710 #define _DAC1CON0_DACPSS0 0x04
7711 #define _DAC1CON0_DAC1PSS0 0x04
7712 #define _DAC1CON0_PSS1 0x08
7713 #define _DAC1CON0_DACPSS1 0x08
7714 #define _DAC1CON0_DAC1PSS1 0x08
7715 #define _DAC1CON0_OE2 0x10
7716 #define _DAC1CON0_DACOE2 0x10
7717 #define _DAC1CON0_DAC1OE2 0x10
7718 #define _DAC1CON0_OE1 0x20
7719 #define _DAC1CON0_OE 0x20
7720 #define _DAC1CON0_DACOE1 0x20
7721 #define _DAC1CON0_DACOE 0x20
7722 #define _DAC1CON0_DAC1OE1 0x20
7723 #define _DAC1CON0_FM 0x40
7724 #define _DAC1CON0_DACFM 0x40
7725 #define _DAC1CON0_DAC1FM 0x40
7726 #define _DAC1CON0_EN 0x80
7727 #define _DAC1CON0_DACEN 0x80
7728 #define _DAC1CON0_DAC1EN 0x80
7730 //==============================================================================
7733 //==============================================================================
7734 // DAC1CON1 Bits
7736 extern __at(0x058F) __sfr DAC1CON1;
7738 typedef union
7740 struct
7742 unsigned REF0 : 1;
7743 unsigned REF1 : 1;
7744 unsigned REF2 : 1;
7745 unsigned REF3 : 1;
7746 unsigned REF4 : 1;
7747 unsigned REF5 : 1;
7748 unsigned REF6 : 1;
7749 unsigned REF7 : 1;
7752 struct
7754 unsigned DAC1REF0 : 1;
7755 unsigned DAC1REF1 : 1;
7756 unsigned DAC1REF2 : 1;
7757 unsigned DAC1REF3 : 1;
7758 unsigned DAC1REF4 : 1;
7759 unsigned DAC1REF5 : 1;
7760 unsigned DAC1REF6 : 1;
7761 unsigned DAC1REF7 : 1;
7764 struct
7766 unsigned R0 : 1;
7767 unsigned R1 : 1;
7768 unsigned R2 : 1;
7769 unsigned R3 : 1;
7770 unsigned R4 : 1;
7771 unsigned R5 : 1;
7772 unsigned R6 : 1;
7773 unsigned R7 : 1;
7776 struct
7778 unsigned DAC1R0 : 1;
7779 unsigned DAC1R1 : 1;
7780 unsigned DAC1R2 : 1;
7781 unsigned DAC1R3 : 1;
7782 unsigned DAC1R4 : 1;
7783 unsigned DAC1R5 : 1;
7784 unsigned DAC1R6 : 1;
7785 unsigned DAC1R7 : 1;
7787 } __DAC1CON1bits_t;
7789 extern __at(0x058F) volatile __DAC1CON1bits_t DAC1CON1bits;
7791 #define _REF0 0x01
7792 #define _DAC1REF0 0x01
7793 #define _R0 0x01
7794 #define _DAC1R0 0x01
7795 #define _REF1 0x02
7796 #define _DAC1REF1 0x02
7797 #define _R1 0x02
7798 #define _DAC1R1 0x02
7799 #define _REF2 0x04
7800 #define _DAC1REF2 0x04
7801 #define _R2 0x04
7802 #define _DAC1R2 0x04
7803 #define _REF3 0x08
7804 #define _DAC1REF3 0x08
7805 #define _R3 0x08
7806 #define _DAC1R3 0x08
7807 #define _REF4 0x10
7808 #define _DAC1REF4 0x10
7809 #define _R4 0x10
7810 #define _DAC1R4 0x10
7811 #define _REF5 0x20
7812 #define _DAC1REF5 0x20
7813 #define _R5 0x20
7814 #define _DAC1R5 0x20
7815 #define _REF6 0x40
7816 #define _DAC1REF6 0x40
7817 #define _R6 0x40
7818 #define _DAC1R6 0x40
7819 #define _REF7 0x80
7820 #define _DAC1REF7 0x80
7821 #define _R7 0x80
7822 #define _DAC1R7 0x80
7824 //==============================================================================
7826 extern __at(0x058F) __sfr DAC1REF;
7828 //==============================================================================
7829 // DAC1REFL Bits
7831 extern __at(0x058F) __sfr DAC1REFL;
7833 typedef union
7835 struct
7837 unsigned REF0 : 1;
7838 unsigned REF1 : 1;
7839 unsigned REF2 : 1;
7840 unsigned REF3 : 1;
7841 unsigned REF4 : 1;
7842 unsigned REF5 : 1;
7843 unsigned REF6 : 1;
7844 unsigned REF7 : 1;
7847 struct
7849 unsigned DAC1REF0 : 1;
7850 unsigned DAC1REF1 : 1;
7851 unsigned DAC1REF2 : 1;
7852 unsigned DAC1REF3 : 1;
7853 unsigned DAC1REF4 : 1;
7854 unsigned DAC1REF5 : 1;
7855 unsigned DAC1REF6 : 1;
7856 unsigned DAC1REF7 : 1;
7859 struct
7861 unsigned R0 : 1;
7862 unsigned R1 : 1;
7863 unsigned R2 : 1;
7864 unsigned R3 : 1;
7865 unsigned R4 : 1;
7866 unsigned R5 : 1;
7867 unsigned R6 : 1;
7868 unsigned R7 : 1;
7871 struct
7873 unsigned DAC1R0 : 1;
7874 unsigned DAC1R1 : 1;
7875 unsigned DAC1R2 : 1;
7876 unsigned DAC1R3 : 1;
7877 unsigned DAC1R4 : 1;
7878 unsigned DAC1R5 : 1;
7879 unsigned DAC1R6 : 1;
7880 unsigned DAC1R7 : 1;
7882 } __DAC1REFLbits_t;
7884 extern __at(0x058F) volatile __DAC1REFLbits_t DAC1REFLbits;
7886 #define _DAC1REFL_REF0 0x01
7887 #define _DAC1REFL_DAC1REF0 0x01
7888 #define _DAC1REFL_R0 0x01
7889 #define _DAC1REFL_DAC1R0 0x01
7890 #define _DAC1REFL_REF1 0x02
7891 #define _DAC1REFL_DAC1REF1 0x02
7892 #define _DAC1REFL_R1 0x02
7893 #define _DAC1REFL_DAC1R1 0x02
7894 #define _DAC1REFL_REF2 0x04
7895 #define _DAC1REFL_DAC1REF2 0x04
7896 #define _DAC1REFL_R2 0x04
7897 #define _DAC1REFL_DAC1R2 0x04
7898 #define _DAC1REFL_REF3 0x08
7899 #define _DAC1REFL_DAC1REF3 0x08
7900 #define _DAC1REFL_R3 0x08
7901 #define _DAC1REFL_DAC1R3 0x08
7902 #define _DAC1REFL_REF4 0x10
7903 #define _DAC1REFL_DAC1REF4 0x10
7904 #define _DAC1REFL_R4 0x10
7905 #define _DAC1REFL_DAC1R4 0x10
7906 #define _DAC1REFL_REF5 0x20
7907 #define _DAC1REFL_DAC1REF5 0x20
7908 #define _DAC1REFL_R5 0x20
7909 #define _DAC1REFL_DAC1R5 0x20
7910 #define _DAC1REFL_REF6 0x40
7911 #define _DAC1REFL_DAC1REF6 0x40
7912 #define _DAC1REFL_R6 0x40
7913 #define _DAC1REFL_DAC1R6 0x40
7914 #define _DAC1REFL_REF7 0x80
7915 #define _DAC1REFL_DAC1REF7 0x80
7916 #define _DAC1REFL_R7 0x80
7917 #define _DAC1REFL_DAC1R7 0x80
7919 //==============================================================================
7922 //==============================================================================
7923 // DAC1CON2 Bits
7925 extern __at(0x0590) __sfr DAC1CON2;
7927 typedef union
7929 struct
7931 unsigned REF8 : 1;
7932 unsigned REF9 : 1;
7933 unsigned REF10 : 1;
7934 unsigned REF11 : 1;
7935 unsigned REF12 : 1;
7936 unsigned REF13 : 1;
7937 unsigned REF14 : 1;
7938 unsigned REF15 : 1;
7941 struct
7943 unsigned DAC1REF8 : 1;
7944 unsigned DAC1REF9 : 1;
7945 unsigned DAC1REF10 : 1;
7946 unsigned DAC1REF11 : 1;
7947 unsigned DAC1REF12 : 1;
7948 unsigned DAC1REF13 : 1;
7949 unsigned DAC1REF14 : 1;
7950 unsigned DAC1REF15 : 1;
7953 struct
7955 unsigned R8 : 1;
7956 unsigned R9 : 1;
7957 unsigned R10 : 1;
7958 unsigned R11 : 1;
7959 unsigned R12 : 1;
7960 unsigned R13 : 1;
7961 unsigned R14 : 1;
7962 unsigned R15 : 1;
7965 struct
7967 unsigned DAC1R8 : 1;
7968 unsigned DAC1R9 : 1;
7969 unsigned DAC1R10 : 1;
7970 unsigned DAC1R11 : 1;
7971 unsigned DAC1R12 : 1;
7972 unsigned DAC1R13 : 1;
7973 unsigned DAC1R14 : 1;
7974 unsigned DAC1R15 : 1;
7976 } __DAC1CON2bits_t;
7978 extern __at(0x0590) volatile __DAC1CON2bits_t DAC1CON2bits;
7980 #define _REF8 0x01
7981 #define _DAC1REF8 0x01
7982 #define _R8 0x01
7983 #define _DAC1R8 0x01
7984 #define _REF9 0x02
7985 #define _DAC1REF9 0x02
7986 #define _R9 0x02
7987 #define _DAC1R9 0x02
7988 #define _REF10 0x04
7989 #define _DAC1REF10 0x04
7990 #define _R10 0x04
7991 #define _DAC1R10 0x04
7992 #define _REF11 0x08
7993 #define _DAC1REF11 0x08
7994 #define _R11 0x08
7995 #define _DAC1R11 0x08
7996 #define _REF12 0x10
7997 #define _DAC1REF12 0x10
7998 #define _R12 0x10
7999 #define _DAC1R12 0x10
8000 #define _REF13 0x20
8001 #define _DAC1REF13 0x20
8002 #define _R13 0x20
8003 #define _DAC1R13 0x20
8004 #define _REF14 0x40
8005 #define _DAC1REF14 0x40
8006 #define _R14 0x40
8007 #define _DAC1R14 0x40
8008 #define _REF15 0x80
8009 #define _DAC1REF15 0x80
8010 #define _R15 0x80
8011 #define _DAC1R15 0x80
8013 //==============================================================================
8016 //==============================================================================
8017 // DAC1REFH Bits
8019 extern __at(0x0590) __sfr DAC1REFH;
8021 typedef union
8023 struct
8025 unsigned REF8 : 1;
8026 unsigned REF9 : 1;
8027 unsigned REF10 : 1;
8028 unsigned REF11 : 1;
8029 unsigned REF12 : 1;
8030 unsigned REF13 : 1;
8031 unsigned REF14 : 1;
8032 unsigned REF15 : 1;
8035 struct
8037 unsigned DAC1REF8 : 1;
8038 unsigned DAC1REF9 : 1;
8039 unsigned DAC1REF10 : 1;
8040 unsigned DAC1REF11 : 1;
8041 unsigned DAC1REF12 : 1;
8042 unsigned DAC1REF13 : 1;
8043 unsigned DAC1REF14 : 1;
8044 unsigned DAC1REF15 : 1;
8047 struct
8049 unsigned R8 : 1;
8050 unsigned R9 : 1;
8051 unsigned R10 : 1;
8052 unsigned R11 : 1;
8053 unsigned R12 : 1;
8054 unsigned R13 : 1;
8055 unsigned R14 : 1;
8056 unsigned R15 : 1;
8059 struct
8061 unsigned DAC1R8 : 1;
8062 unsigned DAC1R9 : 1;
8063 unsigned DAC1R10 : 1;
8064 unsigned DAC1R11 : 1;
8065 unsigned DAC1R12 : 1;
8066 unsigned DAC1R13 : 1;
8067 unsigned DAC1R14 : 1;
8068 unsigned DAC1R15 : 1;
8070 } __DAC1REFHbits_t;
8072 extern __at(0x0590) volatile __DAC1REFHbits_t DAC1REFHbits;
8074 #define _DAC1REFH_REF8 0x01
8075 #define _DAC1REFH_DAC1REF8 0x01
8076 #define _DAC1REFH_R8 0x01
8077 #define _DAC1REFH_DAC1R8 0x01
8078 #define _DAC1REFH_REF9 0x02
8079 #define _DAC1REFH_DAC1REF9 0x02
8080 #define _DAC1REFH_R9 0x02
8081 #define _DAC1REFH_DAC1R9 0x02
8082 #define _DAC1REFH_REF10 0x04
8083 #define _DAC1REFH_DAC1REF10 0x04
8084 #define _DAC1REFH_R10 0x04
8085 #define _DAC1REFH_DAC1R10 0x04
8086 #define _DAC1REFH_REF11 0x08
8087 #define _DAC1REFH_DAC1REF11 0x08
8088 #define _DAC1REFH_R11 0x08
8089 #define _DAC1REFH_DAC1R11 0x08
8090 #define _DAC1REFH_REF12 0x10
8091 #define _DAC1REFH_DAC1REF12 0x10
8092 #define _DAC1REFH_R12 0x10
8093 #define _DAC1REFH_DAC1R12 0x10
8094 #define _DAC1REFH_REF13 0x20
8095 #define _DAC1REFH_DAC1REF13 0x20
8096 #define _DAC1REFH_R13 0x20
8097 #define _DAC1REFH_DAC1R13 0x20
8098 #define _DAC1REFH_REF14 0x40
8099 #define _DAC1REFH_DAC1REF14 0x40
8100 #define _DAC1REFH_R14 0x40
8101 #define _DAC1REFH_DAC1R14 0x40
8102 #define _DAC1REFH_REF15 0x80
8103 #define _DAC1REFH_DAC1REF15 0x80
8104 #define _DAC1REFH_R15 0x80
8105 #define _DAC1REFH_DAC1R15 0x80
8107 //==============================================================================
8110 //==============================================================================
8111 // DAC2CON0 Bits
8113 extern __at(0x0591) __sfr DAC2CON0;
8115 typedef union
8117 struct
8119 unsigned NSS0 : 1;
8120 unsigned NSS1 : 1;
8121 unsigned PSS0 : 1;
8122 unsigned PSS1 : 1;
8123 unsigned OE2 : 1;
8124 unsigned OE1 : 1;
8125 unsigned FM : 1;
8126 unsigned EN : 1;
8129 struct
8131 unsigned DACNSS0 : 1;
8132 unsigned DACNSS1 : 1;
8133 unsigned DACPSS0 : 1;
8134 unsigned DACPSS1 : 1;
8135 unsigned DACOE2 : 1;
8136 unsigned OE : 1;
8137 unsigned DACFM : 1;
8138 unsigned DACEN : 1;
8141 struct
8143 unsigned DAC2NSS0 : 1;
8144 unsigned DAC2NSS1 : 1;
8145 unsigned DAC2PSS0 : 1;
8146 unsigned DAC2PSS1 : 1;
8147 unsigned DAC2OE2 : 1;
8148 unsigned DACOE1 : 1;
8149 unsigned DAC2FM : 1;
8150 unsigned DAC2EN : 1;
8153 struct
8155 unsigned : 1;
8156 unsigned : 1;
8157 unsigned : 1;
8158 unsigned : 1;
8159 unsigned : 1;
8160 unsigned DACOE : 1;
8161 unsigned : 1;
8162 unsigned : 1;
8165 struct
8167 unsigned : 1;
8168 unsigned : 1;
8169 unsigned : 1;
8170 unsigned : 1;
8171 unsigned : 1;
8172 unsigned DAC2OE1 : 1;
8173 unsigned : 1;
8174 unsigned : 1;
8177 struct
8179 unsigned NSS : 2;
8180 unsigned : 6;
8183 struct
8185 unsigned DACNSS : 2;
8186 unsigned : 6;
8189 struct
8191 unsigned DAC2NSS : 2;
8192 unsigned : 6;
8195 struct
8197 unsigned : 2;
8198 unsigned DACPSS : 2;
8199 unsigned : 4;
8202 struct
8204 unsigned : 2;
8205 unsigned PSS : 2;
8206 unsigned : 4;
8209 struct
8211 unsigned : 2;
8212 unsigned DAC2PSS : 2;
8213 unsigned : 4;
8215 } __DAC2CON0bits_t;
8217 extern __at(0x0591) volatile __DAC2CON0bits_t DAC2CON0bits;
8219 #define _DAC2CON0_NSS0 0x01
8220 #define _DAC2CON0_DACNSS0 0x01
8221 #define _DAC2CON0_DAC2NSS0 0x01
8222 #define _DAC2CON0_NSS1 0x02
8223 #define _DAC2CON0_DACNSS1 0x02
8224 #define _DAC2CON0_DAC2NSS1 0x02
8225 #define _DAC2CON0_PSS0 0x04
8226 #define _DAC2CON0_DACPSS0 0x04
8227 #define _DAC2CON0_DAC2PSS0 0x04
8228 #define _DAC2CON0_PSS1 0x08
8229 #define _DAC2CON0_DACPSS1 0x08
8230 #define _DAC2CON0_DAC2PSS1 0x08
8231 #define _DAC2CON0_OE2 0x10
8232 #define _DAC2CON0_DACOE2 0x10
8233 #define _DAC2CON0_DAC2OE2 0x10
8234 #define _DAC2CON0_OE1 0x20
8235 #define _DAC2CON0_OE 0x20
8236 #define _DAC2CON0_DACOE1 0x20
8237 #define _DAC2CON0_DACOE 0x20
8238 #define _DAC2CON0_DAC2OE1 0x20
8239 #define _DAC2CON0_FM 0x40
8240 #define _DAC2CON0_DACFM 0x40
8241 #define _DAC2CON0_DAC2FM 0x40
8242 #define _DAC2CON0_EN 0x80
8243 #define _DAC2CON0_DACEN 0x80
8244 #define _DAC2CON0_DAC2EN 0x80
8246 //==============================================================================
8249 //==============================================================================
8250 // DAC2CON1 Bits
8252 extern __at(0x0592) __sfr DAC2CON1;
8254 typedef union
8256 struct
8258 unsigned REF0 : 1;
8259 unsigned REF1 : 1;
8260 unsigned REF2 : 1;
8261 unsigned REF3 : 1;
8262 unsigned REF4 : 1;
8263 unsigned REF5 : 1;
8264 unsigned REF6 : 1;
8265 unsigned REF7 : 1;
8268 struct
8270 unsigned DAC2REF0 : 1;
8271 unsigned DAC2REF1 : 1;
8272 unsigned DAC2REF2 : 1;
8273 unsigned DAC2REF3 : 1;
8274 unsigned DAC2REF4 : 1;
8275 unsigned DAC2REF5 : 1;
8276 unsigned DAC2REF6 : 1;
8277 unsigned DAC2REF7 : 1;
8280 struct
8282 unsigned R0 : 1;
8283 unsigned R1 : 1;
8284 unsigned R2 : 1;
8285 unsigned R3 : 1;
8286 unsigned R4 : 1;
8287 unsigned R5 : 1;
8288 unsigned R6 : 1;
8289 unsigned R7 : 1;
8292 struct
8294 unsigned DAC2R0 : 1;
8295 unsigned DAC2R1 : 1;
8296 unsigned DAC2R2 : 1;
8297 unsigned DAC2R3 : 1;
8298 unsigned DAC2R4 : 1;
8299 unsigned DAC2R5 : 1;
8300 unsigned DAC2R6 : 1;
8301 unsigned DAC2R7 : 1;
8303 } __DAC2CON1bits_t;
8305 extern __at(0x0592) volatile __DAC2CON1bits_t DAC2CON1bits;
8307 #define _DAC2CON1_REF0 0x01
8308 #define _DAC2CON1_DAC2REF0 0x01
8309 #define _DAC2CON1_R0 0x01
8310 #define _DAC2CON1_DAC2R0 0x01
8311 #define _DAC2CON1_REF1 0x02
8312 #define _DAC2CON1_DAC2REF1 0x02
8313 #define _DAC2CON1_R1 0x02
8314 #define _DAC2CON1_DAC2R1 0x02
8315 #define _DAC2CON1_REF2 0x04
8316 #define _DAC2CON1_DAC2REF2 0x04
8317 #define _DAC2CON1_R2 0x04
8318 #define _DAC2CON1_DAC2R2 0x04
8319 #define _DAC2CON1_REF3 0x08
8320 #define _DAC2CON1_DAC2REF3 0x08
8321 #define _DAC2CON1_R3 0x08
8322 #define _DAC2CON1_DAC2R3 0x08
8323 #define _DAC2CON1_REF4 0x10
8324 #define _DAC2CON1_DAC2REF4 0x10
8325 #define _DAC2CON1_R4 0x10
8326 #define _DAC2CON1_DAC2R4 0x10
8327 #define _DAC2CON1_REF5 0x20
8328 #define _DAC2CON1_DAC2REF5 0x20
8329 #define _DAC2CON1_R5 0x20
8330 #define _DAC2CON1_DAC2R5 0x20
8331 #define _DAC2CON1_REF6 0x40
8332 #define _DAC2CON1_DAC2REF6 0x40
8333 #define _DAC2CON1_R6 0x40
8334 #define _DAC2CON1_DAC2R6 0x40
8335 #define _DAC2CON1_REF7 0x80
8336 #define _DAC2CON1_DAC2REF7 0x80
8337 #define _DAC2CON1_R7 0x80
8338 #define _DAC2CON1_DAC2R7 0x80
8340 //==============================================================================
8342 extern __at(0x0592) __sfr DAC2REF;
8344 //==============================================================================
8345 // DAC2REFL Bits
8347 extern __at(0x0592) __sfr DAC2REFL;
8349 typedef union
8351 struct
8353 unsigned REF0 : 1;
8354 unsigned REF1 : 1;
8355 unsigned REF2 : 1;
8356 unsigned REF3 : 1;
8357 unsigned REF4 : 1;
8358 unsigned REF5 : 1;
8359 unsigned REF6 : 1;
8360 unsigned REF7 : 1;
8363 struct
8365 unsigned DAC2REF0 : 1;
8366 unsigned DAC2REF1 : 1;
8367 unsigned DAC2REF2 : 1;
8368 unsigned DAC2REF3 : 1;
8369 unsigned DAC2REF4 : 1;
8370 unsigned DAC2REF5 : 1;
8371 unsigned DAC2REF6 : 1;
8372 unsigned DAC2REF7 : 1;
8375 struct
8377 unsigned R0 : 1;
8378 unsigned R1 : 1;
8379 unsigned R2 : 1;
8380 unsigned R3 : 1;
8381 unsigned R4 : 1;
8382 unsigned R5 : 1;
8383 unsigned R6 : 1;
8384 unsigned R7 : 1;
8387 struct
8389 unsigned DAC2R0 : 1;
8390 unsigned DAC2R1 : 1;
8391 unsigned DAC2R2 : 1;
8392 unsigned DAC2R3 : 1;
8393 unsigned DAC2R4 : 1;
8394 unsigned DAC2R5 : 1;
8395 unsigned DAC2R6 : 1;
8396 unsigned DAC2R7 : 1;
8398 } __DAC2REFLbits_t;
8400 extern __at(0x0592) volatile __DAC2REFLbits_t DAC2REFLbits;
8402 #define _DAC2REFL_REF0 0x01
8403 #define _DAC2REFL_DAC2REF0 0x01
8404 #define _DAC2REFL_R0 0x01
8405 #define _DAC2REFL_DAC2R0 0x01
8406 #define _DAC2REFL_REF1 0x02
8407 #define _DAC2REFL_DAC2REF1 0x02
8408 #define _DAC2REFL_R1 0x02
8409 #define _DAC2REFL_DAC2R1 0x02
8410 #define _DAC2REFL_REF2 0x04
8411 #define _DAC2REFL_DAC2REF2 0x04
8412 #define _DAC2REFL_R2 0x04
8413 #define _DAC2REFL_DAC2R2 0x04
8414 #define _DAC2REFL_REF3 0x08
8415 #define _DAC2REFL_DAC2REF3 0x08
8416 #define _DAC2REFL_R3 0x08
8417 #define _DAC2REFL_DAC2R3 0x08
8418 #define _DAC2REFL_REF4 0x10
8419 #define _DAC2REFL_DAC2REF4 0x10
8420 #define _DAC2REFL_R4 0x10
8421 #define _DAC2REFL_DAC2R4 0x10
8422 #define _DAC2REFL_REF5 0x20
8423 #define _DAC2REFL_DAC2REF5 0x20
8424 #define _DAC2REFL_R5 0x20
8425 #define _DAC2REFL_DAC2R5 0x20
8426 #define _DAC2REFL_REF6 0x40
8427 #define _DAC2REFL_DAC2REF6 0x40
8428 #define _DAC2REFL_R6 0x40
8429 #define _DAC2REFL_DAC2R6 0x40
8430 #define _DAC2REFL_REF7 0x80
8431 #define _DAC2REFL_DAC2REF7 0x80
8432 #define _DAC2REFL_R7 0x80
8433 #define _DAC2REFL_DAC2R7 0x80
8435 //==============================================================================
8438 //==============================================================================
8439 // DAC2CON2 Bits
8441 extern __at(0x0593) __sfr DAC2CON2;
8443 typedef union
8445 struct
8447 unsigned REF8 : 1;
8448 unsigned REF9 : 1;
8449 unsigned REF10 : 1;
8450 unsigned REF11 : 1;
8451 unsigned REF12 : 1;
8452 unsigned REF13 : 1;
8453 unsigned REF14 : 1;
8454 unsigned REF15 : 1;
8457 struct
8459 unsigned DAC2REF8 : 1;
8460 unsigned DAC2REF9 : 1;
8461 unsigned DAC2REF10 : 1;
8462 unsigned DAC2REF11 : 1;
8463 unsigned DAC2REF12 : 1;
8464 unsigned DAC2REF13 : 1;
8465 unsigned DAC2REF14 : 1;
8466 unsigned DAC2REF15 : 1;
8469 struct
8471 unsigned R8 : 1;
8472 unsigned R9 : 1;
8473 unsigned R10 : 1;
8474 unsigned R11 : 1;
8475 unsigned R12 : 1;
8476 unsigned R13 : 1;
8477 unsigned R14 : 1;
8478 unsigned R15 : 1;
8481 struct
8483 unsigned DAC2R8 : 1;
8484 unsigned DAC2R9 : 1;
8485 unsigned DAC2R10 : 1;
8486 unsigned DAC2R11 : 1;
8487 unsigned DAC2R12 : 1;
8488 unsigned DAC2R13 : 1;
8489 unsigned DAC2R14 : 1;
8490 unsigned DAC2R15 : 1;
8492 } __DAC2CON2bits_t;
8494 extern __at(0x0593) volatile __DAC2CON2bits_t DAC2CON2bits;
8496 #define _DAC2CON2_REF8 0x01
8497 #define _DAC2CON2_DAC2REF8 0x01
8498 #define _DAC2CON2_R8 0x01
8499 #define _DAC2CON2_DAC2R8 0x01
8500 #define _DAC2CON2_REF9 0x02
8501 #define _DAC2CON2_DAC2REF9 0x02
8502 #define _DAC2CON2_R9 0x02
8503 #define _DAC2CON2_DAC2R9 0x02
8504 #define _DAC2CON2_REF10 0x04
8505 #define _DAC2CON2_DAC2REF10 0x04
8506 #define _DAC2CON2_R10 0x04
8507 #define _DAC2CON2_DAC2R10 0x04
8508 #define _DAC2CON2_REF11 0x08
8509 #define _DAC2CON2_DAC2REF11 0x08
8510 #define _DAC2CON2_R11 0x08
8511 #define _DAC2CON2_DAC2R11 0x08
8512 #define _DAC2CON2_REF12 0x10
8513 #define _DAC2CON2_DAC2REF12 0x10
8514 #define _DAC2CON2_R12 0x10
8515 #define _DAC2CON2_DAC2R12 0x10
8516 #define _DAC2CON2_REF13 0x20
8517 #define _DAC2CON2_DAC2REF13 0x20
8518 #define _DAC2CON2_R13 0x20
8519 #define _DAC2CON2_DAC2R13 0x20
8520 #define _DAC2CON2_REF14 0x40
8521 #define _DAC2CON2_DAC2REF14 0x40
8522 #define _DAC2CON2_R14 0x40
8523 #define _DAC2CON2_DAC2R14 0x40
8524 #define _DAC2CON2_REF15 0x80
8525 #define _DAC2CON2_DAC2REF15 0x80
8526 #define _DAC2CON2_R15 0x80
8527 #define _DAC2CON2_DAC2R15 0x80
8529 //==============================================================================
8532 //==============================================================================
8533 // DAC2REFH Bits
8535 extern __at(0x0593) __sfr DAC2REFH;
8537 typedef union
8539 struct
8541 unsigned REF8 : 1;
8542 unsigned REF9 : 1;
8543 unsigned REF10 : 1;
8544 unsigned REF11 : 1;
8545 unsigned REF12 : 1;
8546 unsigned REF13 : 1;
8547 unsigned REF14 : 1;
8548 unsigned REF15 : 1;
8551 struct
8553 unsigned DAC2REF8 : 1;
8554 unsigned DAC2REF9 : 1;
8555 unsigned DAC2REF10 : 1;
8556 unsigned DAC2REF11 : 1;
8557 unsigned DAC2REF12 : 1;
8558 unsigned DAC2REF13 : 1;
8559 unsigned DAC2REF14 : 1;
8560 unsigned DAC2REF15 : 1;
8563 struct
8565 unsigned R8 : 1;
8566 unsigned R9 : 1;
8567 unsigned R10 : 1;
8568 unsigned R11 : 1;
8569 unsigned R12 : 1;
8570 unsigned R13 : 1;
8571 unsigned R14 : 1;
8572 unsigned R15 : 1;
8575 struct
8577 unsigned DAC2R8 : 1;
8578 unsigned DAC2R9 : 1;
8579 unsigned DAC2R10 : 1;
8580 unsigned DAC2R11 : 1;
8581 unsigned DAC2R12 : 1;
8582 unsigned DAC2R13 : 1;
8583 unsigned DAC2R14 : 1;
8584 unsigned DAC2R15 : 1;
8586 } __DAC2REFHbits_t;
8588 extern __at(0x0593) volatile __DAC2REFHbits_t DAC2REFHbits;
8590 #define _DAC2REFH_REF8 0x01
8591 #define _DAC2REFH_DAC2REF8 0x01
8592 #define _DAC2REFH_R8 0x01
8593 #define _DAC2REFH_DAC2R8 0x01
8594 #define _DAC2REFH_REF9 0x02
8595 #define _DAC2REFH_DAC2REF9 0x02
8596 #define _DAC2REFH_R9 0x02
8597 #define _DAC2REFH_DAC2R9 0x02
8598 #define _DAC2REFH_REF10 0x04
8599 #define _DAC2REFH_DAC2REF10 0x04
8600 #define _DAC2REFH_R10 0x04
8601 #define _DAC2REFH_DAC2R10 0x04
8602 #define _DAC2REFH_REF11 0x08
8603 #define _DAC2REFH_DAC2REF11 0x08
8604 #define _DAC2REFH_R11 0x08
8605 #define _DAC2REFH_DAC2R11 0x08
8606 #define _DAC2REFH_REF12 0x10
8607 #define _DAC2REFH_DAC2REF12 0x10
8608 #define _DAC2REFH_R12 0x10
8609 #define _DAC2REFH_DAC2R12 0x10
8610 #define _DAC2REFH_REF13 0x20
8611 #define _DAC2REFH_DAC2REF13 0x20
8612 #define _DAC2REFH_R13 0x20
8613 #define _DAC2REFH_DAC2R13 0x20
8614 #define _DAC2REFH_REF14 0x40
8615 #define _DAC2REFH_DAC2REF14 0x40
8616 #define _DAC2REFH_R14 0x40
8617 #define _DAC2REFH_DAC2R14 0x40
8618 #define _DAC2REFH_REF15 0x80
8619 #define _DAC2REFH_DAC2REF15 0x80
8620 #define _DAC2REFH_R15 0x80
8621 #define _DAC2REFH_DAC2R15 0x80
8623 //==============================================================================
8626 //==============================================================================
8627 // DAC3CON0 Bits
8629 extern __at(0x0594) __sfr DAC3CON0;
8631 typedef union
8633 struct
8635 unsigned NSS0 : 1;
8636 unsigned NSS1 : 1;
8637 unsigned PSS0 : 1;
8638 unsigned PSS1 : 1;
8639 unsigned OE2 : 1;
8640 unsigned OE1 : 1;
8641 unsigned : 1;
8642 unsigned EN : 1;
8645 struct
8647 unsigned DACNSS0 : 1;
8648 unsigned DACNSS1 : 1;
8649 unsigned DACPSS0 : 1;
8650 unsigned DACPSS1 : 1;
8651 unsigned DACOE2 : 1;
8652 unsigned DACOE1 : 1;
8653 unsigned : 1;
8654 unsigned DACEN : 1;
8657 struct
8659 unsigned DAC3NSS0 : 1;
8660 unsigned DAC3NSS1 : 1;
8661 unsigned DAC3PSS0 : 1;
8662 unsigned DAC3PSS1 : 1;
8663 unsigned DAC3OE2 : 1;
8664 unsigned DAC3OE1 : 1;
8665 unsigned : 1;
8666 unsigned DAC3EN : 1;
8669 struct
8671 unsigned NSS : 2;
8672 unsigned : 6;
8675 struct
8677 unsigned DACNSS : 2;
8678 unsigned : 6;
8681 struct
8683 unsigned DAC3NSS : 2;
8684 unsigned : 6;
8687 struct
8689 unsigned : 2;
8690 unsigned DACPSS : 2;
8691 unsigned : 4;
8694 struct
8696 unsigned : 2;
8697 unsigned DAC3PSS : 2;
8698 unsigned : 4;
8701 struct
8703 unsigned : 2;
8704 unsigned PSS : 2;
8705 unsigned : 4;
8707 } __DAC3CON0bits_t;
8709 extern __at(0x0594) volatile __DAC3CON0bits_t DAC3CON0bits;
8711 #define _DAC3CON0_NSS0 0x01
8712 #define _DAC3CON0_DACNSS0 0x01
8713 #define _DAC3CON0_DAC3NSS0 0x01
8714 #define _DAC3CON0_NSS1 0x02
8715 #define _DAC3CON0_DACNSS1 0x02
8716 #define _DAC3CON0_DAC3NSS1 0x02
8717 #define _DAC3CON0_PSS0 0x04
8718 #define _DAC3CON0_DACPSS0 0x04
8719 #define _DAC3CON0_DAC3PSS0 0x04
8720 #define _DAC3CON0_PSS1 0x08
8721 #define _DAC3CON0_DACPSS1 0x08
8722 #define _DAC3CON0_DAC3PSS1 0x08
8723 #define _DAC3CON0_OE2 0x10
8724 #define _DAC3CON0_DACOE2 0x10
8725 #define _DAC3CON0_DAC3OE2 0x10
8726 #define _DAC3CON0_OE1 0x20
8727 #define _DAC3CON0_DACOE1 0x20
8728 #define _DAC3CON0_DAC3OE1 0x20
8729 #define _DAC3CON0_EN 0x80
8730 #define _DAC3CON0_DACEN 0x80
8731 #define _DAC3CON0_DAC3EN 0x80
8733 //==============================================================================
8736 //==============================================================================
8737 // DAC3CON1 Bits
8739 extern __at(0x0595) __sfr DAC3CON1;
8741 typedef union
8743 struct
8745 unsigned DACR0 : 1;
8746 unsigned DACR1 : 1;
8747 unsigned DACR2 : 1;
8748 unsigned DACR3 : 1;
8749 unsigned DACR4 : 1;
8750 unsigned : 1;
8751 unsigned : 1;
8752 unsigned : 1;
8755 struct
8757 unsigned R0 : 1;
8758 unsigned R1 : 1;
8759 unsigned R2 : 1;
8760 unsigned R3 : 1;
8761 unsigned R4 : 1;
8762 unsigned : 1;
8763 unsigned : 1;
8764 unsigned : 1;
8767 struct
8769 unsigned DAC3R0 : 1;
8770 unsigned DAC3R1 : 1;
8771 unsigned DAC3R2 : 1;
8772 unsigned DAC3R3 : 1;
8773 unsigned DAC3R4 : 1;
8774 unsigned : 1;
8775 unsigned : 1;
8776 unsigned : 1;
8779 struct
8781 unsigned REF0 : 1;
8782 unsigned REF1 : 1;
8783 unsigned REF2 : 1;
8784 unsigned REF3 : 1;
8785 unsigned REF4 : 1;
8786 unsigned : 1;
8787 unsigned : 1;
8788 unsigned : 1;
8791 struct
8793 unsigned DAC3REF0 : 1;
8794 unsigned DAC3REF1 : 1;
8795 unsigned DAC3REF2 : 1;
8796 unsigned DAC3REF3 : 1;
8797 unsigned DAC3REF4 : 1;
8798 unsigned : 1;
8799 unsigned : 1;
8800 unsigned : 1;
8803 struct
8805 unsigned REF : 5;
8806 unsigned : 3;
8809 struct
8811 unsigned R : 5;
8812 unsigned : 3;
8815 struct
8817 unsigned DACR : 5;
8818 unsigned : 3;
8821 struct
8823 unsigned DAC3REF : 5;
8824 unsigned : 3;
8827 struct
8829 unsigned DAC3R : 5;
8830 unsigned : 3;
8832 } __DAC3CON1bits_t;
8834 extern __at(0x0595) volatile __DAC3CON1bits_t DAC3CON1bits;
8836 #define _DAC3CON1_DACR0 0x01
8837 #define _DAC3CON1_R0 0x01
8838 #define _DAC3CON1_DAC3R0 0x01
8839 #define _DAC3CON1_REF0 0x01
8840 #define _DAC3CON1_DAC3REF0 0x01
8841 #define _DAC3CON1_DACR1 0x02
8842 #define _DAC3CON1_R1 0x02
8843 #define _DAC3CON1_DAC3R1 0x02
8844 #define _DAC3CON1_REF1 0x02
8845 #define _DAC3CON1_DAC3REF1 0x02
8846 #define _DAC3CON1_DACR2 0x04
8847 #define _DAC3CON1_R2 0x04
8848 #define _DAC3CON1_DAC3R2 0x04
8849 #define _DAC3CON1_REF2 0x04
8850 #define _DAC3CON1_DAC3REF2 0x04
8851 #define _DAC3CON1_DACR3 0x08
8852 #define _DAC3CON1_R3 0x08
8853 #define _DAC3CON1_DAC3R3 0x08
8854 #define _DAC3CON1_REF3 0x08
8855 #define _DAC3CON1_DAC3REF3 0x08
8856 #define _DAC3CON1_DACR4 0x10
8857 #define _DAC3CON1_R4 0x10
8858 #define _DAC3CON1_DAC3R4 0x10
8859 #define _DAC3CON1_REF4 0x10
8860 #define _DAC3CON1_DAC3REF4 0x10
8862 //==============================================================================
8865 //==============================================================================
8866 // DAC3REF Bits
8868 extern __at(0x0595) __sfr DAC3REF;
8870 typedef union
8872 struct
8874 unsigned DACR0 : 1;
8875 unsigned DACR1 : 1;
8876 unsigned DACR2 : 1;
8877 unsigned DACR3 : 1;
8878 unsigned DACR4 : 1;
8879 unsigned : 1;
8880 unsigned : 1;
8881 unsigned : 1;
8884 struct
8886 unsigned R0 : 1;
8887 unsigned R1 : 1;
8888 unsigned R2 : 1;
8889 unsigned R3 : 1;
8890 unsigned R4 : 1;
8891 unsigned : 1;
8892 unsigned : 1;
8893 unsigned : 1;
8896 struct
8898 unsigned DAC3R0 : 1;
8899 unsigned DAC3R1 : 1;
8900 unsigned DAC3R2 : 1;
8901 unsigned DAC3R3 : 1;
8902 unsigned DAC3R4 : 1;
8903 unsigned : 1;
8904 unsigned : 1;
8905 unsigned : 1;
8908 struct
8910 unsigned REF0 : 1;
8911 unsigned REF1 : 1;
8912 unsigned REF2 : 1;
8913 unsigned REF3 : 1;
8914 unsigned REF4 : 1;
8915 unsigned : 1;
8916 unsigned : 1;
8917 unsigned : 1;
8920 struct
8922 unsigned DAC3REF0 : 1;
8923 unsigned DAC3REF1 : 1;
8924 unsigned DAC3REF2 : 1;
8925 unsigned DAC3REF3 : 1;
8926 unsigned DAC3REF4 : 1;
8927 unsigned : 1;
8928 unsigned : 1;
8929 unsigned : 1;
8932 struct
8934 unsigned DACR : 5;
8935 unsigned : 3;
8938 struct
8940 unsigned REF : 5;
8941 unsigned : 3;
8944 struct
8946 unsigned R : 5;
8947 unsigned : 3;
8950 struct
8952 unsigned DAC3REF : 5;
8953 unsigned : 3;
8956 struct
8958 unsigned DAC3R : 5;
8959 unsigned : 3;
8961 } __DAC3REFbits_t;
8963 extern __at(0x0595) volatile __DAC3REFbits_t DAC3REFbits;
8965 #define _DAC3REF_DACR0 0x01
8966 #define _DAC3REF_R0 0x01
8967 #define _DAC3REF_DAC3R0 0x01
8968 #define _DAC3REF_REF0 0x01
8969 #define _DAC3REF_DAC3REF0 0x01
8970 #define _DAC3REF_DACR1 0x02
8971 #define _DAC3REF_R1 0x02
8972 #define _DAC3REF_DAC3R1 0x02
8973 #define _DAC3REF_REF1 0x02
8974 #define _DAC3REF_DAC3REF1 0x02
8975 #define _DAC3REF_DACR2 0x04
8976 #define _DAC3REF_R2 0x04
8977 #define _DAC3REF_DAC3R2 0x04
8978 #define _DAC3REF_REF2 0x04
8979 #define _DAC3REF_DAC3REF2 0x04
8980 #define _DAC3REF_DACR3 0x08
8981 #define _DAC3REF_R3 0x08
8982 #define _DAC3REF_DAC3R3 0x08
8983 #define _DAC3REF_REF3 0x08
8984 #define _DAC3REF_DAC3REF3 0x08
8985 #define _DAC3REF_DACR4 0x10
8986 #define _DAC3REF_R4 0x10
8987 #define _DAC3REF_DAC3R4 0x10
8988 #define _DAC3REF_REF4 0x10
8989 #define _DAC3REF_DAC3REF4 0x10
8991 //==============================================================================
8994 //==============================================================================
8995 // DAC4CON0 Bits
8997 extern __at(0x0596) __sfr DAC4CON0;
8999 typedef union
9001 struct
9003 unsigned NSS0 : 1;
9004 unsigned NSS1 : 1;
9005 unsigned PSS0 : 1;
9006 unsigned PSS1 : 1;
9007 unsigned OE2 : 1;
9008 unsigned OE1 : 1;
9009 unsigned : 1;
9010 unsigned EN : 1;
9013 struct
9015 unsigned DACNSS0 : 1;
9016 unsigned DACNSS1 : 1;
9017 unsigned DACPSS0 : 1;
9018 unsigned DACPSS1 : 1;
9019 unsigned DACOE2 : 1;
9020 unsigned DACOE1 : 1;
9021 unsigned : 1;
9022 unsigned DACEN : 1;
9025 struct
9027 unsigned DAC4NSS0 : 1;
9028 unsigned DAC4NSS1 : 1;
9029 unsigned DAC4PSS0 : 1;
9030 unsigned DAC4PSS1 : 1;
9031 unsigned DAC4OE2 : 1;
9032 unsigned DAC4OE1 : 1;
9033 unsigned : 1;
9034 unsigned DAC4EN : 1;
9037 struct
9039 unsigned DACNSS : 2;
9040 unsigned : 6;
9043 struct
9045 unsigned NSS : 2;
9046 unsigned : 6;
9049 struct
9051 unsigned DAC4NSS : 2;
9052 unsigned : 6;
9055 struct
9057 unsigned : 2;
9058 unsigned DAC4PSS : 2;
9059 unsigned : 4;
9062 struct
9064 unsigned : 2;
9065 unsigned DACPSS : 2;
9066 unsigned : 4;
9069 struct
9071 unsigned : 2;
9072 unsigned PSS : 2;
9073 unsigned : 4;
9075 } __DAC4CON0bits_t;
9077 extern __at(0x0596) volatile __DAC4CON0bits_t DAC4CON0bits;
9079 #define _DAC4CON0_NSS0 0x01
9080 #define _DAC4CON0_DACNSS0 0x01
9081 #define _DAC4CON0_DAC4NSS0 0x01
9082 #define _DAC4CON0_NSS1 0x02
9083 #define _DAC4CON0_DACNSS1 0x02
9084 #define _DAC4CON0_DAC4NSS1 0x02
9085 #define _DAC4CON0_PSS0 0x04
9086 #define _DAC4CON0_DACPSS0 0x04
9087 #define _DAC4CON0_DAC4PSS0 0x04
9088 #define _DAC4CON0_PSS1 0x08
9089 #define _DAC4CON0_DACPSS1 0x08
9090 #define _DAC4CON0_DAC4PSS1 0x08
9091 #define _DAC4CON0_OE2 0x10
9092 #define _DAC4CON0_DACOE2 0x10
9093 #define _DAC4CON0_DAC4OE2 0x10
9094 #define _DAC4CON0_OE1 0x20
9095 #define _DAC4CON0_DACOE1 0x20
9096 #define _DAC4CON0_DAC4OE1 0x20
9097 #define _DAC4CON0_EN 0x80
9098 #define _DAC4CON0_DACEN 0x80
9099 #define _DAC4CON0_DAC4EN 0x80
9101 //==============================================================================
9104 //==============================================================================
9105 // DAC4CON1 Bits
9107 extern __at(0x0597) __sfr DAC4CON1;
9109 typedef union
9111 struct
9113 unsigned DACR0 : 1;
9114 unsigned DACR1 : 1;
9115 unsigned DACR2 : 1;
9116 unsigned DACR3 : 1;
9117 unsigned DACR4 : 1;
9118 unsigned : 1;
9119 unsigned : 1;
9120 unsigned : 1;
9123 struct
9125 unsigned R0 : 1;
9126 unsigned R1 : 1;
9127 unsigned R2 : 1;
9128 unsigned R3 : 1;
9129 unsigned R4 : 1;
9130 unsigned : 1;
9131 unsigned : 1;
9132 unsigned : 1;
9135 struct
9137 unsigned DAC4R0 : 1;
9138 unsigned DAC4R1 : 1;
9139 unsigned DAC4R2 : 1;
9140 unsigned DAC4R3 : 1;
9141 unsigned DAC4R4 : 1;
9142 unsigned : 1;
9143 unsigned : 1;
9144 unsigned : 1;
9147 struct
9149 unsigned REF0 : 1;
9150 unsigned REF1 : 1;
9151 unsigned REF2 : 1;
9152 unsigned REF3 : 1;
9153 unsigned REF4 : 1;
9154 unsigned : 1;
9155 unsigned : 1;
9156 unsigned : 1;
9159 struct
9161 unsigned DAC4REF0 : 1;
9162 unsigned DAC4REF1 : 1;
9163 unsigned DAC4REF2 : 1;
9164 unsigned DAC4REF3 : 1;
9165 unsigned DAC4REF4 : 1;
9166 unsigned : 1;
9167 unsigned : 1;
9168 unsigned : 1;
9171 struct
9173 unsigned DAC4R : 5;
9174 unsigned : 3;
9177 struct
9179 unsigned DAC4REF : 5;
9180 unsigned : 3;
9183 struct
9185 unsigned R : 5;
9186 unsigned : 3;
9189 struct
9191 unsigned REF : 5;
9192 unsigned : 3;
9195 struct
9197 unsigned DACR : 5;
9198 unsigned : 3;
9200 } __DAC4CON1bits_t;
9202 extern __at(0x0597) volatile __DAC4CON1bits_t DAC4CON1bits;
9204 #define _DAC4CON1_DACR0 0x01
9205 #define _DAC4CON1_R0 0x01
9206 #define _DAC4CON1_DAC4R0 0x01
9207 #define _DAC4CON1_REF0 0x01
9208 #define _DAC4CON1_DAC4REF0 0x01
9209 #define _DAC4CON1_DACR1 0x02
9210 #define _DAC4CON1_R1 0x02
9211 #define _DAC4CON1_DAC4R1 0x02
9212 #define _DAC4CON1_REF1 0x02
9213 #define _DAC4CON1_DAC4REF1 0x02
9214 #define _DAC4CON1_DACR2 0x04
9215 #define _DAC4CON1_R2 0x04
9216 #define _DAC4CON1_DAC4R2 0x04
9217 #define _DAC4CON1_REF2 0x04
9218 #define _DAC4CON1_DAC4REF2 0x04
9219 #define _DAC4CON1_DACR3 0x08
9220 #define _DAC4CON1_R3 0x08
9221 #define _DAC4CON1_DAC4R3 0x08
9222 #define _DAC4CON1_REF3 0x08
9223 #define _DAC4CON1_DAC4REF3 0x08
9224 #define _DAC4CON1_DACR4 0x10
9225 #define _DAC4CON1_R4 0x10
9226 #define _DAC4CON1_DAC4R4 0x10
9227 #define _DAC4CON1_REF4 0x10
9228 #define _DAC4CON1_DAC4REF4 0x10
9230 //==============================================================================
9233 //==============================================================================
9234 // DAC4REF Bits
9236 extern __at(0x0597) __sfr DAC4REF;
9238 typedef union
9240 struct
9242 unsigned DACR0 : 1;
9243 unsigned DACR1 : 1;
9244 unsigned DACR2 : 1;
9245 unsigned DACR3 : 1;
9246 unsigned DACR4 : 1;
9247 unsigned : 1;
9248 unsigned : 1;
9249 unsigned : 1;
9252 struct
9254 unsigned R0 : 1;
9255 unsigned R1 : 1;
9256 unsigned R2 : 1;
9257 unsigned R3 : 1;
9258 unsigned R4 : 1;
9259 unsigned : 1;
9260 unsigned : 1;
9261 unsigned : 1;
9264 struct
9266 unsigned DAC4R0 : 1;
9267 unsigned DAC4R1 : 1;
9268 unsigned DAC4R2 : 1;
9269 unsigned DAC4R3 : 1;
9270 unsigned DAC4R4 : 1;
9271 unsigned : 1;
9272 unsigned : 1;
9273 unsigned : 1;
9276 struct
9278 unsigned REF0 : 1;
9279 unsigned REF1 : 1;
9280 unsigned REF2 : 1;
9281 unsigned REF3 : 1;
9282 unsigned REF4 : 1;
9283 unsigned : 1;
9284 unsigned : 1;
9285 unsigned : 1;
9288 struct
9290 unsigned DAC4REF0 : 1;
9291 unsigned DAC4REF1 : 1;
9292 unsigned DAC4REF2 : 1;
9293 unsigned DAC4REF3 : 1;
9294 unsigned DAC4REF4 : 1;
9295 unsigned : 1;
9296 unsigned : 1;
9297 unsigned : 1;
9300 struct
9302 unsigned R : 5;
9303 unsigned : 3;
9306 struct
9308 unsigned REF : 5;
9309 unsigned : 3;
9312 struct
9314 unsigned DACR : 5;
9315 unsigned : 3;
9318 struct
9320 unsigned DAC4R : 5;
9321 unsigned : 3;
9324 struct
9326 unsigned DAC4REF : 5;
9327 unsigned : 3;
9329 } __DAC4REFbits_t;
9331 extern __at(0x0597) volatile __DAC4REFbits_t DAC4REFbits;
9333 #define _DAC4REF_DACR0 0x01
9334 #define _DAC4REF_R0 0x01
9335 #define _DAC4REF_DAC4R0 0x01
9336 #define _DAC4REF_REF0 0x01
9337 #define _DAC4REF_DAC4REF0 0x01
9338 #define _DAC4REF_DACR1 0x02
9339 #define _DAC4REF_R1 0x02
9340 #define _DAC4REF_DAC4R1 0x02
9341 #define _DAC4REF_REF1 0x02
9342 #define _DAC4REF_DAC4REF1 0x02
9343 #define _DAC4REF_DACR2 0x04
9344 #define _DAC4REF_R2 0x04
9345 #define _DAC4REF_DAC4R2 0x04
9346 #define _DAC4REF_REF2 0x04
9347 #define _DAC4REF_DAC4REF2 0x04
9348 #define _DAC4REF_DACR3 0x08
9349 #define _DAC4REF_R3 0x08
9350 #define _DAC4REF_DAC4R3 0x08
9351 #define _DAC4REF_REF3 0x08
9352 #define _DAC4REF_DAC4REF3 0x08
9353 #define _DAC4REF_DACR4 0x10
9354 #define _DAC4REF_R4 0x10
9355 #define _DAC4REF_DAC4R4 0x10
9356 #define _DAC4REF_REF4 0x10
9357 #define _DAC4REF_DAC4REF4 0x10
9359 //==============================================================================
9362 //==============================================================================
9363 // DAC5CON0 Bits
9365 extern __at(0x0598) __sfr DAC5CON0;
9367 typedef union
9369 struct
9371 unsigned NSS0 : 1;
9372 unsigned NSS1 : 1;
9373 unsigned PSS0 : 1;
9374 unsigned PSS1 : 1;
9375 unsigned OE2 : 1;
9376 unsigned OE1 : 1;
9377 unsigned FM : 1;
9378 unsigned EN : 1;
9381 struct
9383 unsigned DACNSS0 : 1;
9384 unsigned DACNSS1 : 1;
9385 unsigned DACPSS0 : 1;
9386 unsigned DACPSS1 : 1;
9387 unsigned DACOE2 : 1;
9388 unsigned OE : 1;
9389 unsigned DACFM : 1;
9390 unsigned DACEN : 1;
9393 struct
9395 unsigned DAC5NSS0 : 1;
9396 unsigned DAC5NSS1 : 1;
9397 unsigned DAC5PSS0 : 1;
9398 unsigned DAC5PSS1 : 1;
9399 unsigned DAC5OE2 : 1;
9400 unsigned DACOE1 : 1;
9401 unsigned DAC5FM : 1;
9402 unsigned DAC5EN : 1;
9405 struct
9407 unsigned : 1;
9408 unsigned : 1;
9409 unsigned : 1;
9410 unsigned : 1;
9411 unsigned : 1;
9412 unsigned DACOE : 1;
9413 unsigned : 1;
9414 unsigned : 1;
9417 struct
9419 unsigned : 1;
9420 unsigned : 1;
9421 unsigned : 1;
9422 unsigned : 1;
9423 unsigned : 1;
9424 unsigned DAC5OE1 : 1;
9425 unsigned : 1;
9426 unsigned : 1;
9429 struct
9431 unsigned DAC5NSS : 2;
9432 unsigned : 6;
9435 struct
9437 unsigned NSS : 2;
9438 unsigned : 6;
9441 struct
9443 unsigned DACNSS : 2;
9444 unsigned : 6;
9447 struct
9449 unsigned : 2;
9450 unsigned DACPSS : 2;
9451 unsigned : 4;
9454 struct
9456 unsigned : 2;
9457 unsigned DAC5PSS : 2;
9458 unsigned : 4;
9461 struct
9463 unsigned : 2;
9464 unsigned PSS : 2;
9465 unsigned : 4;
9467 } __DAC5CON0bits_t;
9469 extern __at(0x0598) volatile __DAC5CON0bits_t DAC5CON0bits;
9471 #define _DAC5CON0_NSS0 0x01
9472 #define _DAC5CON0_DACNSS0 0x01
9473 #define _DAC5CON0_DAC5NSS0 0x01
9474 #define _DAC5CON0_NSS1 0x02
9475 #define _DAC5CON0_DACNSS1 0x02
9476 #define _DAC5CON0_DAC5NSS1 0x02
9477 #define _DAC5CON0_PSS0 0x04
9478 #define _DAC5CON0_DACPSS0 0x04
9479 #define _DAC5CON0_DAC5PSS0 0x04
9480 #define _DAC5CON0_PSS1 0x08
9481 #define _DAC5CON0_DACPSS1 0x08
9482 #define _DAC5CON0_DAC5PSS1 0x08
9483 #define _DAC5CON0_OE2 0x10
9484 #define _DAC5CON0_DACOE2 0x10
9485 #define _DAC5CON0_DAC5OE2 0x10
9486 #define _DAC5CON0_OE1 0x20
9487 #define _DAC5CON0_OE 0x20
9488 #define _DAC5CON0_DACOE1 0x20
9489 #define _DAC5CON0_DACOE 0x20
9490 #define _DAC5CON0_DAC5OE1 0x20
9491 #define _DAC5CON0_FM 0x40
9492 #define _DAC5CON0_DACFM 0x40
9493 #define _DAC5CON0_DAC5FM 0x40
9494 #define _DAC5CON0_EN 0x80
9495 #define _DAC5CON0_DACEN 0x80
9496 #define _DAC5CON0_DAC5EN 0x80
9498 //==============================================================================
9501 //==============================================================================
9502 // DAC5CON1 Bits
9504 extern __at(0x0599) __sfr DAC5CON1;
9506 typedef union
9508 struct
9510 unsigned REF0 : 1;
9511 unsigned REF1 : 1;
9512 unsigned REF2 : 1;
9513 unsigned REF3 : 1;
9514 unsigned REF4 : 1;
9515 unsigned REF5 : 1;
9516 unsigned REF6 : 1;
9517 unsigned REF7 : 1;
9520 struct
9522 unsigned DAC5REF0 : 1;
9523 unsigned DAC5REF1 : 1;
9524 unsigned DAC5REF2 : 1;
9525 unsigned DAC5REF3 : 1;
9526 unsigned DAC5REF4 : 1;
9527 unsigned DAC5REF5 : 1;
9528 unsigned DAC5REF6 : 1;
9529 unsigned DAC5REF7 : 1;
9532 struct
9534 unsigned R0 : 1;
9535 unsigned R1 : 1;
9536 unsigned R2 : 1;
9537 unsigned R3 : 1;
9538 unsigned R4 : 1;
9539 unsigned R5 : 1;
9540 unsigned R6 : 1;
9541 unsigned R7 : 1;
9544 struct
9546 unsigned DAC5R0 : 1;
9547 unsigned DAC5R1 : 1;
9548 unsigned DAC5R2 : 1;
9549 unsigned DAC5R3 : 1;
9550 unsigned DAC5R4 : 1;
9551 unsigned DAC5R5 : 1;
9552 unsigned DAC5R6 : 1;
9553 unsigned DAC5R7 : 1;
9555 } __DAC5CON1bits_t;
9557 extern __at(0x0599) volatile __DAC5CON1bits_t DAC5CON1bits;
9559 #define _DAC5CON1_REF0 0x01
9560 #define _DAC5CON1_DAC5REF0 0x01
9561 #define _DAC5CON1_R0 0x01
9562 #define _DAC5CON1_DAC5R0 0x01
9563 #define _DAC5CON1_REF1 0x02
9564 #define _DAC5CON1_DAC5REF1 0x02
9565 #define _DAC5CON1_R1 0x02
9566 #define _DAC5CON1_DAC5R1 0x02
9567 #define _DAC5CON1_REF2 0x04
9568 #define _DAC5CON1_DAC5REF2 0x04
9569 #define _DAC5CON1_R2 0x04
9570 #define _DAC5CON1_DAC5R2 0x04
9571 #define _DAC5CON1_REF3 0x08
9572 #define _DAC5CON1_DAC5REF3 0x08
9573 #define _DAC5CON1_R3 0x08
9574 #define _DAC5CON1_DAC5R3 0x08
9575 #define _DAC5CON1_REF4 0x10
9576 #define _DAC5CON1_DAC5REF4 0x10
9577 #define _DAC5CON1_R4 0x10
9578 #define _DAC5CON1_DAC5R4 0x10
9579 #define _DAC5CON1_REF5 0x20
9580 #define _DAC5CON1_DAC5REF5 0x20
9581 #define _DAC5CON1_R5 0x20
9582 #define _DAC5CON1_DAC5R5 0x20
9583 #define _DAC5CON1_REF6 0x40
9584 #define _DAC5CON1_DAC5REF6 0x40
9585 #define _DAC5CON1_R6 0x40
9586 #define _DAC5CON1_DAC5R6 0x40
9587 #define _DAC5CON1_REF7 0x80
9588 #define _DAC5CON1_DAC5REF7 0x80
9589 #define _DAC5CON1_R7 0x80
9590 #define _DAC5CON1_DAC5R7 0x80
9592 //==============================================================================
9594 extern __at(0x0599) __sfr DAC5REF;
9596 //==============================================================================
9597 // DAC5REFL Bits
9599 extern __at(0x0599) __sfr DAC5REFL;
9601 typedef union
9603 struct
9605 unsigned REF0 : 1;
9606 unsigned REF1 : 1;
9607 unsigned REF2 : 1;
9608 unsigned REF3 : 1;
9609 unsigned REF4 : 1;
9610 unsigned REF5 : 1;
9611 unsigned REF6 : 1;
9612 unsigned REF7 : 1;
9615 struct
9617 unsigned DAC5REF0 : 1;
9618 unsigned DAC5REF1 : 1;
9619 unsigned DAC5REF2 : 1;
9620 unsigned DAC5REF3 : 1;
9621 unsigned DAC5REF4 : 1;
9622 unsigned DAC5REF5 : 1;
9623 unsigned DAC5REF6 : 1;
9624 unsigned DAC5REF7 : 1;
9627 struct
9629 unsigned R0 : 1;
9630 unsigned R1 : 1;
9631 unsigned R2 : 1;
9632 unsigned R3 : 1;
9633 unsigned R4 : 1;
9634 unsigned R5 : 1;
9635 unsigned R6 : 1;
9636 unsigned R7 : 1;
9639 struct
9641 unsigned DAC5R0 : 1;
9642 unsigned DAC5R1 : 1;
9643 unsigned DAC5R2 : 1;
9644 unsigned DAC5R3 : 1;
9645 unsigned DAC5R4 : 1;
9646 unsigned DAC5R5 : 1;
9647 unsigned DAC5R6 : 1;
9648 unsigned DAC5R7 : 1;
9650 } __DAC5REFLbits_t;
9652 extern __at(0x0599) volatile __DAC5REFLbits_t DAC5REFLbits;
9654 #define _DAC5REFL_REF0 0x01
9655 #define _DAC5REFL_DAC5REF0 0x01
9656 #define _DAC5REFL_R0 0x01
9657 #define _DAC5REFL_DAC5R0 0x01
9658 #define _DAC5REFL_REF1 0x02
9659 #define _DAC5REFL_DAC5REF1 0x02
9660 #define _DAC5REFL_R1 0x02
9661 #define _DAC5REFL_DAC5R1 0x02
9662 #define _DAC5REFL_REF2 0x04
9663 #define _DAC5REFL_DAC5REF2 0x04
9664 #define _DAC5REFL_R2 0x04
9665 #define _DAC5REFL_DAC5R2 0x04
9666 #define _DAC5REFL_REF3 0x08
9667 #define _DAC5REFL_DAC5REF3 0x08
9668 #define _DAC5REFL_R3 0x08
9669 #define _DAC5REFL_DAC5R3 0x08
9670 #define _DAC5REFL_REF4 0x10
9671 #define _DAC5REFL_DAC5REF4 0x10
9672 #define _DAC5REFL_R4 0x10
9673 #define _DAC5REFL_DAC5R4 0x10
9674 #define _DAC5REFL_REF5 0x20
9675 #define _DAC5REFL_DAC5REF5 0x20
9676 #define _DAC5REFL_R5 0x20
9677 #define _DAC5REFL_DAC5R5 0x20
9678 #define _DAC5REFL_REF6 0x40
9679 #define _DAC5REFL_DAC5REF6 0x40
9680 #define _DAC5REFL_R6 0x40
9681 #define _DAC5REFL_DAC5R6 0x40
9682 #define _DAC5REFL_REF7 0x80
9683 #define _DAC5REFL_DAC5REF7 0x80
9684 #define _DAC5REFL_R7 0x80
9685 #define _DAC5REFL_DAC5R7 0x80
9687 //==============================================================================
9690 //==============================================================================
9691 // DAC5CON2 Bits
9693 extern __at(0x059A) __sfr DAC5CON2;
9695 typedef union
9697 struct
9699 unsigned REF8 : 1;
9700 unsigned REF9 : 1;
9701 unsigned REF10 : 1;
9702 unsigned REF11 : 1;
9703 unsigned REF12 : 1;
9704 unsigned REF13 : 1;
9705 unsigned REF14 : 1;
9706 unsigned REF15 : 1;
9709 struct
9711 unsigned DAC5REF8 : 1;
9712 unsigned DAC5REF9 : 1;
9713 unsigned DAC5REF10 : 1;
9714 unsigned DAC5REF11 : 1;
9715 unsigned DAC5REF12 : 1;
9716 unsigned DAC5REF13 : 1;
9717 unsigned DAC5REF14 : 1;
9718 unsigned DAC5REF15 : 1;
9721 struct
9723 unsigned R8 : 1;
9724 unsigned R9 : 1;
9725 unsigned R10 : 1;
9726 unsigned R11 : 1;
9727 unsigned R12 : 1;
9728 unsigned R13 : 1;
9729 unsigned R14 : 1;
9730 unsigned R15 : 1;
9733 struct
9735 unsigned DAC5R8 : 1;
9736 unsigned DAC5R9 : 1;
9737 unsigned DAC5R10 : 1;
9738 unsigned DAC5R11 : 1;
9739 unsigned DAC5R12 : 1;
9740 unsigned DAC5R13 : 1;
9741 unsigned DAC5R14 : 1;
9742 unsigned DAC5R15 : 1;
9744 } __DAC5CON2bits_t;
9746 extern __at(0x059A) volatile __DAC5CON2bits_t DAC5CON2bits;
9748 #define _DAC5CON2_REF8 0x01
9749 #define _DAC5CON2_DAC5REF8 0x01
9750 #define _DAC5CON2_R8 0x01
9751 #define _DAC5CON2_DAC5R8 0x01
9752 #define _DAC5CON2_REF9 0x02
9753 #define _DAC5CON2_DAC5REF9 0x02
9754 #define _DAC5CON2_R9 0x02
9755 #define _DAC5CON2_DAC5R9 0x02
9756 #define _DAC5CON2_REF10 0x04
9757 #define _DAC5CON2_DAC5REF10 0x04
9758 #define _DAC5CON2_R10 0x04
9759 #define _DAC5CON2_DAC5R10 0x04
9760 #define _DAC5CON2_REF11 0x08
9761 #define _DAC5CON2_DAC5REF11 0x08
9762 #define _DAC5CON2_R11 0x08
9763 #define _DAC5CON2_DAC5R11 0x08
9764 #define _DAC5CON2_REF12 0x10
9765 #define _DAC5CON2_DAC5REF12 0x10
9766 #define _DAC5CON2_R12 0x10
9767 #define _DAC5CON2_DAC5R12 0x10
9768 #define _DAC5CON2_REF13 0x20
9769 #define _DAC5CON2_DAC5REF13 0x20
9770 #define _DAC5CON2_R13 0x20
9771 #define _DAC5CON2_DAC5R13 0x20
9772 #define _DAC5CON2_REF14 0x40
9773 #define _DAC5CON2_DAC5REF14 0x40
9774 #define _DAC5CON2_R14 0x40
9775 #define _DAC5CON2_DAC5R14 0x40
9776 #define _DAC5CON2_REF15 0x80
9777 #define _DAC5CON2_DAC5REF15 0x80
9778 #define _DAC5CON2_R15 0x80
9779 #define _DAC5CON2_DAC5R15 0x80
9781 //==============================================================================
9784 //==============================================================================
9785 // DAC5REFH Bits
9787 extern __at(0x059A) __sfr DAC5REFH;
9789 typedef union
9791 struct
9793 unsigned REF8 : 1;
9794 unsigned REF9 : 1;
9795 unsigned REF10 : 1;
9796 unsigned REF11 : 1;
9797 unsigned REF12 : 1;
9798 unsigned REF13 : 1;
9799 unsigned REF14 : 1;
9800 unsigned REF15 : 1;
9803 struct
9805 unsigned DAC5REF8 : 1;
9806 unsigned DAC5REF9 : 1;
9807 unsigned DAC5REF10 : 1;
9808 unsigned DAC5REF11 : 1;
9809 unsigned DAC5REF12 : 1;
9810 unsigned DAC5REF13 : 1;
9811 unsigned DAC5REF14 : 1;
9812 unsigned DAC5REF15 : 1;
9815 struct
9817 unsigned R8 : 1;
9818 unsigned R9 : 1;
9819 unsigned R10 : 1;
9820 unsigned R11 : 1;
9821 unsigned R12 : 1;
9822 unsigned R13 : 1;
9823 unsigned R14 : 1;
9824 unsigned R15 : 1;
9827 struct
9829 unsigned DAC5R8 : 1;
9830 unsigned DAC5R9 : 1;
9831 unsigned DAC5R10 : 1;
9832 unsigned DAC5R11 : 1;
9833 unsigned DAC5R12 : 1;
9834 unsigned DAC5R13 : 1;
9835 unsigned DAC5R14 : 1;
9836 unsigned DAC5R15 : 1;
9838 } __DAC5REFHbits_t;
9840 extern __at(0x059A) volatile __DAC5REFHbits_t DAC5REFHbits;
9842 #define _DAC5REFH_REF8 0x01
9843 #define _DAC5REFH_DAC5REF8 0x01
9844 #define _DAC5REFH_R8 0x01
9845 #define _DAC5REFH_DAC5R8 0x01
9846 #define _DAC5REFH_REF9 0x02
9847 #define _DAC5REFH_DAC5REF9 0x02
9848 #define _DAC5REFH_R9 0x02
9849 #define _DAC5REFH_DAC5R9 0x02
9850 #define _DAC5REFH_REF10 0x04
9851 #define _DAC5REFH_DAC5REF10 0x04
9852 #define _DAC5REFH_R10 0x04
9853 #define _DAC5REFH_DAC5R10 0x04
9854 #define _DAC5REFH_REF11 0x08
9855 #define _DAC5REFH_DAC5REF11 0x08
9856 #define _DAC5REFH_R11 0x08
9857 #define _DAC5REFH_DAC5R11 0x08
9858 #define _DAC5REFH_REF12 0x10
9859 #define _DAC5REFH_DAC5REF12 0x10
9860 #define _DAC5REFH_R12 0x10
9861 #define _DAC5REFH_DAC5R12 0x10
9862 #define _DAC5REFH_REF13 0x20
9863 #define _DAC5REFH_DAC5REF13 0x20
9864 #define _DAC5REFH_R13 0x20
9865 #define _DAC5REFH_DAC5R13 0x20
9866 #define _DAC5REFH_REF14 0x40
9867 #define _DAC5REFH_DAC5REF14 0x40
9868 #define _DAC5REFH_R14 0x40
9869 #define _DAC5REFH_DAC5R14 0x40
9870 #define _DAC5REFH_REF15 0x80
9871 #define _DAC5REFH_DAC5REF15 0x80
9872 #define _DAC5REFH_R15 0x80
9873 #define _DAC5REFH_DAC5R15 0x80
9875 //==============================================================================
9878 //==============================================================================
9879 // DAC7CON0 Bits
9881 extern __at(0x059E) __sfr DAC7CON0;
9883 typedef union
9885 struct
9887 unsigned NSS0 : 1;
9888 unsigned NSS1 : 1;
9889 unsigned PSS0 : 1;
9890 unsigned PSS1 : 1;
9891 unsigned OE2 : 1;
9892 unsigned OE1 : 1;
9893 unsigned : 1;
9894 unsigned EN : 1;
9897 struct
9899 unsigned DACNSS0 : 1;
9900 unsigned DACNSS1 : 1;
9901 unsigned DACPSS0 : 1;
9902 unsigned DACPSS1 : 1;
9903 unsigned DACOE2 : 1;
9904 unsigned DACOE1 : 1;
9905 unsigned : 1;
9906 unsigned DACEN : 1;
9909 struct
9911 unsigned DAC7NSS0 : 1;
9912 unsigned DAC7NSS1 : 1;
9913 unsigned DAC7PSS0 : 1;
9914 unsigned DAC7PSS1 : 1;
9915 unsigned DAC7OE2 : 1;
9916 unsigned DAC7OE1 : 1;
9917 unsigned : 1;
9918 unsigned DAC7EN : 1;
9921 struct
9923 unsigned DAC7NSS : 2;
9924 unsigned : 6;
9927 struct
9929 unsigned DACNSS : 2;
9930 unsigned : 6;
9933 struct
9935 unsigned NSS : 2;
9936 unsigned : 6;
9939 struct
9941 unsigned : 2;
9942 unsigned PSS : 2;
9943 unsigned : 4;
9946 struct
9948 unsigned : 2;
9949 unsigned DACPSS : 2;
9950 unsigned : 4;
9953 struct
9955 unsigned : 2;
9956 unsigned DAC7PSS : 2;
9957 unsigned : 4;
9959 } __DAC7CON0bits_t;
9961 extern __at(0x059E) volatile __DAC7CON0bits_t DAC7CON0bits;
9963 #define _DAC7CON0_NSS0 0x01
9964 #define _DAC7CON0_DACNSS0 0x01
9965 #define _DAC7CON0_DAC7NSS0 0x01
9966 #define _DAC7CON0_NSS1 0x02
9967 #define _DAC7CON0_DACNSS1 0x02
9968 #define _DAC7CON0_DAC7NSS1 0x02
9969 #define _DAC7CON0_PSS0 0x04
9970 #define _DAC7CON0_DACPSS0 0x04
9971 #define _DAC7CON0_DAC7PSS0 0x04
9972 #define _DAC7CON0_PSS1 0x08
9973 #define _DAC7CON0_DACPSS1 0x08
9974 #define _DAC7CON0_DAC7PSS1 0x08
9975 #define _DAC7CON0_OE2 0x10
9976 #define _DAC7CON0_DACOE2 0x10
9977 #define _DAC7CON0_DAC7OE2 0x10
9978 #define _DAC7CON0_OE1 0x20
9979 #define _DAC7CON0_DACOE1 0x20
9980 #define _DAC7CON0_DAC7OE1 0x20
9981 #define _DAC7CON0_EN 0x80
9982 #define _DAC7CON0_DACEN 0x80
9983 #define _DAC7CON0_DAC7EN 0x80
9985 //==============================================================================
9988 //==============================================================================
9989 // DAC7CON1 Bits
9991 extern __at(0x059F) __sfr DAC7CON1;
9993 typedef union
9995 struct
9997 unsigned DACR0 : 1;
9998 unsigned DACR1 : 1;
9999 unsigned DACR2 : 1;
10000 unsigned DACR3 : 1;
10001 unsigned DACR4 : 1;
10002 unsigned : 1;
10003 unsigned : 1;
10004 unsigned : 1;
10007 struct
10009 unsigned R0 : 1;
10010 unsigned R1 : 1;
10011 unsigned R2 : 1;
10012 unsigned R3 : 1;
10013 unsigned R4 : 1;
10014 unsigned : 1;
10015 unsigned : 1;
10016 unsigned : 1;
10019 struct
10021 unsigned DAC7R0 : 1;
10022 unsigned DAC7R1 : 1;
10023 unsigned DAC7R2 : 1;
10024 unsigned DAC7R3 : 1;
10025 unsigned DAC7R4 : 1;
10026 unsigned : 1;
10027 unsigned : 1;
10028 unsigned : 1;
10031 struct
10033 unsigned REF0 : 1;
10034 unsigned REF1 : 1;
10035 unsigned REF2 : 1;
10036 unsigned REF3 : 1;
10037 unsigned REF4 : 1;
10038 unsigned : 1;
10039 unsigned : 1;
10040 unsigned : 1;
10043 struct
10045 unsigned DAC7REF0 : 1;
10046 unsigned DAC7REF1 : 1;
10047 unsigned DAC7REF2 : 1;
10048 unsigned DAC7REF3 : 1;
10049 unsigned DAC7REF4 : 1;
10050 unsigned : 1;
10051 unsigned : 1;
10052 unsigned : 1;
10055 struct
10057 unsigned DACR : 5;
10058 unsigned : 3;
10061 struct
10063 unsigned REF : 5;
10064 unsigned : 3;
10067 struct
10069 unsigned R : 5;
10070 unsigned : 3;
10073 struct
10075 unsigned DAC7REF : 5;
10076 unsigned : 3;
10079 struct
10081 unsigned DAC7R : 5;
10082 unsigned : 3;
10084 } __DAC7CON1bits_t;
10086 extern __at(0x059F) volatile __DAC7CON1bits_t DAC7CON1bits;
10088 #define _DAC7CON1_DACR0 0x01
10089 #define _DAC7CON1_R0 0x01
10090 #define _DAC7CON1_DAC7R0 0x01
10091 #define _DAC7CON1_REF0 0x01
10092 #define _DAC7CON1_DAC7REF0 0x01
10093 #define _DAC7CON1_DACR1 0x02
10094 #define _DAC7CON1_R1 0x02
10095 #define _DAC7CON1_DAC7R1 0x02
10096 #define _DAC7CON1_REF1 0x02
10097 #define _DAC7CON1_DAC7REF1 0x02
10098 #define _DAC7CON1_DACR2 0x04
10099 #define _DAC7CON1_R2 0x04
10100 #define _DAC7CON1_DAC7R2 0x04
10101 #define _DAC7CON1_REF2 0x04
10102 #define _DAC7CON1_DAC7REF2 0x04
10103 #define _DAC7CON1_DACR3 0x08
10104 #define _DAC7CON1_R3 0x08
10105 #define _DAC7CON1_DAC7R3 0x08
10106 #define _DAC7CON1_REF3 0x08
10107 #define _DAC7CON1_DAC7REF3 0x08
10108 #define _DAC7CON1_DACR4 0x10
10109 #define _DAC7CON1_R4 0x10
10110 #define _DAC7CON1_DAC7R4 0x10
10111 #define _DAC7CON1_REF4 0x10
10112 #define _DAC7CON1_DAC7REF4 0x10
10114 //==============================================================================
10117 //==============================================================================
10118 // DAC7REF Bits
10120 extern __at(0x059F) __sfr DAC7REF;
10122 typedef union
10124 struct
10126 unsigned DACR0 : 1;
10127 unsigned DACR1 : 1;
10128 unsigned DACR2 : 1;
10129 unsigned DACR3 : 1;
10130 unsigned DACR4 : 1;
10131 unsigned : 1;
10132 unsigned : 1;
10133 unsigned : 1;
10136 struct
10138 unsigned R0 : 1;
10139 unsigned R1 : 1;
10140 unsigned R2 : 1;
10141 unsigned R3 : 1;
10142 unsigned R4 : 1;
10143 unsigned : 1;
10144 unsigned : 1;
10145 unsigned : 1;
10148 struct
10150 unsigned DAC7R0 : 1;
10151 unsigned DAC7R1 : 1;
10152 unsigned DAC7R2 : 1;
10153 unsigned DAC7R3 : 1;
10154 unsigned DAC7R4 : 1;
10155 unsigned : 1;
10156 unsigned : 1;
10157 unsigned : 1;
10160 struct
10162 unsigned REF0 : 1;
10163 unsigned REF1 : 1;
10164 unsigned REF2 : 1;
10165 unsigned REF3 : 1;
10166 unsigned REF4 : 1;
10167 unsigned : 1;
10168 unsigned : 1;
10169 unsigned : 1;
10172 struct
10174 unsigned DAC7REF0 : 1;
10175 unsigned DAC7REF1 : 1;
10176 unsigned DAC7REF2 : 1;
10177 unsigned DAC7REF3 : 1;
10178 unsigned DAC7REF4 : 1;
10179 unsigned : 1;
10180 unsigned : 1;
10181 unsigned : 1;
10184 struct
10186 unsigned DAC7R : 5;
10187 unsigned : 3;
10190 struct
10192 unsigned DAC7REF : 5;
10193 unsigned : 3;
10196 struct
10198 unsigned R : 5;
10199 unsigned : 3;
10202 struct
10204 unsigned REF : 5;
10205 unsigned : 3;
10208 struct
10210 unsigned DACR : 5;
10211 unsigned : 3;
10213 } __DAC7REFbits_t;
10215 extern __at(0x059F) volatile __DAC7REFbits_t DAC7REFbits;
10217 #define _DAC7REF_DACR0 0x01
10218 #define _DAC7REF_R0 0x01
10219 #define _DAC7REF_DAC7R0 0x01
10220 #define _DAC7REF_REF0 0x01
10221 #define _DAC7REF_DAC7REF0 0x01
10222 #define _DAC7REF_DACR1 0x02
10223 #define _DAC7REF_R1 0x02
10224 #define _DAC7REF_DAC7R1 0x02
10225 #define _DAC7REF_REF1 0x02
10226 #define _DAC7REF_DAC7REF1 0x02
10227 #define _DAC7REF_DACR2 0x04
10228 #define _DAC7REF_R2 0x04
10229 #define _DAC7REF_DAC7R2 0x04
10230 #define _DAC7REF_REF2 0x04
10231 #define _DAC7REF_DAC7REF2 0x04
10232 #define _DAC7REF_DACR3 0x08
10233 #define _DAC7REF_R3 0x08
10234 #define _DAC7REF_DAC7R3 0x08
10235 #define _DAC7REF_REF3 0x08
10236 #define _DAC7REF_DAC7REF3 0x08
10237 #define _DAC7REF_DACR4 0x10
10238 #define _DAC7REF_R4 0x10
10239 #define _DAC7REF_DAC7R4 0x10
10240 #define _DAC7REF_REF4 0x10
10241 #define _DAC7REF_DAC7REF4 0x10
10243 //==============================================================================
10246 //==============================================================================
10247 // PWM3DCL Bits
10249 extern __at(0x0614) __sfr PWM3DCL;
10251 typedef union
10253 struct
10255 unsigned : 1;
10256 unsigned : 1;
10257 unsigned : 1;
10258 unsigned : 1;
10259 unsigned : 1;
10260 unsigned : 1;
10261 unsigned DC0 : 1;
10262 unsigned DC1 : 1;
10265 struct
10267 unsigned : 1;
10268 unsigned : 1;
10269 unsigned : 1;
10270 unsigned : 1;
10271 unsigned : 1;
10272 unsigned : 1;
10273 unsigned PWM3DC0 : 1;
10274 unsigned PWM3DC1 : 1;
10277 struct
10279 unsigned : 1;
10280 unsigned : 1;
10281 unsigned : 1;
10282 unsigned : 1;
10283 unsigned : 1;
10284 unsigned : 1;
10285 unsigned PWMPW0 : 1;
10286 unsigned PWMPW1 : 1;
10289 struct
10291 unsigned : 6;
10292 unsigned DC : 2;
10295 struct
10297 unsigned : 6;
10298 unsigned PWMPW : 2;
10301 struct
10303 unsigned : 6;
10304 unsigned PWM3DC : 2;
10306 } __PWM3DCLbits_t;
10308 extern __at(0x0614) volatile __PWM3DCLbits_t PWM3DCLbits;
10310 #define _DC0 0x40
10311 #define _PWM3DC0 0x40
10312 #define _PWMPW0 0x40
10313 #define _DC1 0x80
10314 #define _PWM3DC1 0x80
10315 #define _PWMPW1 0x80
10317 //==============================================================================
10320 //==============================================================================
10321 // PWM3DCH Bits
10323 extern __at(0x0615) __sfr PWM3DCH;
10325 typedef union
10327 struct
10329 unsigned DC2 : 1;
10330 unsigned DC3 : 1;
10331 unsigned DC4 : 1;
10332 unsigned DC5 : 1;
10333 unsigned DC6 : 1;
10334 unsigned DC7 : 1;
10335 unsigned DC8 : 1;
10336 unsigned DC9 : 1;
10339 struct
10341 unsigned PWM3DC2 : 1;
10342 unsigned PWM3DC3 : 1;
10343 unsigned PWM3DC4 : 1;
10344 unsigned PWM3DC5 : 1;
10345 unsigned PWM3DC6 : 1;
10346 unsigned PWM3DC7 : 1;
10347 unsigned PWM3DC8 : 1;
10348 unsigned PWM3DC9 : 1;
10351 struct
10353 unsigned PWMPW2 : 1;
10354 unsigned PWMPW3 : 1;
10355 unsigned PWMPW4 : 1;
10356 unsigned PWMPW5 : 1;
10357 unsigned PWMPW6 : 1;
10358 unsigned PWMPW7 : 1;
10359 unsigned PWMPW8 : 1;
10360 unsigned PWMPW9 : 1;
10362 } __PWM3DCHbits_t;
10364 extern __at(0x0615) volatile __PWM3DCHbits_t PWM3DCHbits;
10366 #define _DC2 0x01
10367 #define _PWM3DC2 0x01
10368 #define _PWMPW2 0x01
10369 #define _DC3 0x02
10370 #define _PWM3DC3 0x02
10371 #define _PWMPW3 0x02
10372 #define _DC4 0x04
10373 #define _PWM3DC4 0x04
10374 #define _PWMPW4 0x04
10375 #define _DC5 0x08
10376 #define _PWM3DC5 0x08
10377 #define _PWMPW5 0x08
10378 #define _DC6 0x10
10379 #define _PWM3DC6 0x10
10380 #define _PWMPW6 0x10
10381 #define _DC7 0x20
10382 #define _PWM3DC7 0x20
10383 #define _PWMPW7 0x20
10384 #define _DC8 0x40
10385 #define _PWM3DC8 0x40
10386 #define _PWMPW8 0x40
10387 #define _DC9 0x80
10388 #define _PWM3DC9 0x80
10389 #define _PWMPW9 0x80
10391 //==============================================================================
10394 //==============================================================================
10395 // PWM3CON Bits
10397 extern __at(0x0616) __sfr PWM3CON;
10399 typedef union
10401 struct
10403 unsigned : 1;
10404 unsigned : 1;
10405 unsigned : 1;
10406 unsigned : 1;
10407 unsigned POL : 1;
10408 unsigned OUT : 1;
10409 unsigned : 1;
10410 unsigned EN : 1;
10413 struct
10415 unsigned : 1;
10416 unsigned : 1;
10417 unsigned : 1;
10418 unsigned : 1;
10419 unsigned PWM3POL : 1;
10420 unsigned PWM3OUT : 1;
10421 unsigned : 1;
10422 unsigned PWM3EN : 1;
10424 } __PWM3CONbits_t;
10426 extern __at(0x0616) volatile __PWM3CONbits_t PWM3CONbits;
10428 #define _PWM3CON_POL 0x10
10429 #define _PWM3CON_PWM3POL 0x10
10430 #define _PWM3CON_OUT 0x20
10431 #define _PWM3CON_PWM3OUT 0x20
10432 #define _PWM3CON_EN 0x80
10433 #define _PWM3CON_PWM3EN 0x80
10435 //==============================================================================
10438 //==============================================================================
10439 // PWM4DCL Bits
10441 extern __at(0x0617) __sfr PWM4DCL;
10443 typedef union
10445 struct
10447 unsigned : 1;
10448 unsigned : 1;
10449 unsigned : 1;
10450 unsigned : 1;
10451 unsigned : 1;
10452 unsigned : 1;
10453 unsigned DC0 : 1;
10454 unsigned DC1 : 1;
10457 struct
10459 unsigned : 1;
10460 unsigned : 1;
10461 unsigned : 1;
10462 unsigned : 1;
10463 unsigned : 1;
10464 unsigned : 1;
10465 unsigned PWM4DC0 : 1;
10466 unsigned PWM4DC1 : 1;
10469 struct
10471 unsigned : 1;
10472 unsigned : 1;
10473 unsigned : 1;
10474 unsigned : 1;
10475 unsigned : 1;
10476 unsigned : 1;
10477 unsigned PWMPW0 : 1;
10478 unsigned PWMPW1 : 1;
10481 struct
10483 unsigned : 6;
10484 unsigned DC : 2;
10487 struct
10489 unsigned : 6;
10490 unsigned PWMPW : 2;
10493 struct
10495 unsigned : 6;
10496 unsigned PWM4DC : 2;
10498 } __PWM4DCLbits_t;
10500 extern __at(0x0617) volatile __PWM4DCLbits_t PWM4DCLbits;
10502 #define _PWM4DCL_DC0 0x40
10503 #define _PWM4DCL_PWM4DC0 0x40
10504 #define _PWM4DCL_PWMPW0 0x40
10505 #define _PWM4DCL_DC1 0x80
10506 #define _PWM4DCL_PWM4DC1 0x80
10507 #define _PWM4DCL_PWMPW1 0x80
10509 //==============================================================================
10512 //==============================================================================
10513 // PWM4DCH Bits
10515 extern __at(0x0618) __sfr PWM4DCH;
10517 typedef union
10519 struct
10521 unsigned DC2 : 1;
10522 unsigned DC3 : 1;
10523 unsigned DC4 : 1;
10524 unsigned DC5 : 1;
10525 unsigned DC6 : 1;
10526 unsigned DC7 : 1;
10527 unsigned DC8 : 1;
10528 unsigned DC9 : 1;
10531 struct
10533 unsigned PWM4DC2 : 1;
10534 unsigned PWM4DC3 : 1;
10535 unsigned PWM4DC4 : 1;
10536 unsigned PWM4DC5 : 1;
10537 unsigned PWM4DC6 : 1;
10538 unsigned PWM4DC7 : 1;
10539 unsigned PWM4DC8 : 1;
10540 unsigned PWM4DC9 : 1;
10543 struct
10545 unsigned PWMPW2 : 1;
10546 unsigned PWMPW3 : 1;
10547 unsigned PWMPW4 : 1;
10548 unsigned PWMPW5 : 1;
10549 unsigned PWMPW6 : 1;
10550 unsigned PWMPW7 : 1;
10551 unsigned PWMPW8 : 1;
10552 unsigned PWMPW9 : 1;
10554 } __PWM4DCHbits_t;
10556 extern __at(0x0618) volatile __PWM4DCHbits_t PWM4DCHbits;
10558 #define _PWM4DCH_DC2 0x01
10559 #define _PWM4DCH_PWM4DC2 0x01
10560 #define _PWM4DCH_PWMPW2 0x01
10561 #define _PWM4DCH_DC3 0x02
10562 #define _PWM4DCH_PWM4DC3 0x02
10563 #define _PWM4DCH_PWMPW3 0x02
10564 #define _PWM4DCH_DC4 0x04
10565 #define _PWM4DCH_PWM4DC4 0x04
10566 #define _PWM4DCH_PWMPW4 0x04
10567 #define _PWM4DCH_DC5 0x08
10568 #define _PWM4DCH_PWM4DC5 0x08
10569 #define _PWM4DCH_PWMPW5 0x08
10570 #define _PWM4DCH_DC6 0x10
10571 #define _PWM4DCH_PWM4DC6 0x10
10572 #define _PWM4DCH_PWMPW6 0x10
10573 #define _PWM4DCH_DC7 0x20
10574 #define _PWM4DCH_PWM4DC7 0x20
10575 #define _PWM4DCH_PWMPW7 0x20
10576 #define _PWM4DCH_DC8 0x40
10577 #define _PWM4DCH_PWM4DC8 0x40
10578 #define _PWM4DCH_PWMPW8 0x40
10579 #define _PWM4DCH_DC9 0x80
10580 #define _PWM4DCH_PWM4DC9 0x80
10581 #define _PWM4DCH_PWMPW9 0x80
10583 //==============================================================================
10586 //==============================================================================
10587 // PWM4CON Bits
10589 extern __at(0x0619) __sfr PWM4CON;
10591 typedef union
10593 struct
10595 unsigned : 1;
10596 unsigned : 1;
10597 unsigned : 1;
10598 unsigned : 1;
10599 unsigned POL : 1;
10600 unsigned OUT : 1;
10601 unsigned : 1;
10602 unsigned EN : 1;
10605 struct
10607 unsigned : 1;
10608 unsigned : 1;
10609 unsigned : 1;
10610 unsigned : 1;
10611 unsigned PWM4POL : 1;
10612 unsigned PWM4OUT : 1;
10613 unsigned : 1;
10614 unsigned PWM4EN : 1;
10616 } __PWM4CONbits_t;
10618 extern __at(0x0619) volatile __PWM4CONbits_t PWM4CONbits;
10620 #define _PWM4CON_POL 0x10
10621 #define _PWM4CON_PWM4POL 0x10
10622 #define _PWM4CON_OUT 0x20
10623 #define _PWM4CON_PWM4OUT 0x20
10624 #define _PWM4CON_EN 0x80
10625 #define _PWM4CON_PWM4EN 0x80
10627 //==============================================================================
10630 //==============================================================================
10631 // PWM9DCL Bits
10633 extern __at(0x061A) __sfr PWM9DCL;
10635 typedef union
10637 struct
10639 unsigned : 1;
10640 unsigned : 1;
10641 unsigned : 1;
10642 unsigned : 1;
10643 unsigned : 1;
10644 unsigned : 1;
10645 unsigned DC0 : 1;
10646 unsigned DC1 : 1;
10649 struct
10651 unsigned : 1;
10652 unsigned : 1;
10653 unsigned : 1;
10654 unsigned : 1;
10655 unsigned : 1;
10656 unsigned : 1;
10657 unsigned PWM9DC0 : 1;
10658 unsigned PWM9DC1 : 1;
10661 struct
10663 unsigned : 1;
10664 unsigned : 1;
10665 unsigned : 1;
10666 unsigned : 1;
10667 unsigned : 1;
10668 unsigned : 1;
10669 unsigned PWMPW0 : 1;
10670 unsigned PWMPW1 : 1;
10673 struct
10675 unsigned : 6;
10676 unsigned PWM9DC : 2;
10679 struct
10681 unsigned : 6;
10682 unsigned PWMPW : 2;
10685 struct
10687 unsigned : 6;
10688 unsigned DC : 2;
10690 } __PWM9DCLbits_t;
10692 extern __at(0x061A) volatile __PWM9DCLbits_t PWM9DCLbits;
10694 #define _PWM9DCL_DC0 0x40
10695 #define _PWM9DCL_PWM9DC0 0x40
10696 #define _PWM9DCL_PWMPW0 0x40
10697 #define _PWM9DCL_DC1 0x80
10698 #define _PWM9DCL_PWM9DC1 0x80
10699 #define _PWM9DCL_PWMPW1 0x80
10701 //==============================================================================
10704 //==============================================================================
10705 // PWM9DCH Bits
10707 extern __at(0x061B) __sfr PWM9DCH;
10709 typedef union
10711 struct
10713 unsigned DC2 : 1;
10714 unsigned DC3 : 1;
10715 unsigned DC4 : 1;
10716 unsigned DC5 : 1;
10717 unsigned DC6 : 1;
10718 unsigned DC7 : 1;
10719 unsigned DC8 : 1;
10720 unsigned DC9 : 1;
10723 struct
10725 unsigned PWM9DC2 : 1;
10726 unsigned PWM9DC3 : 1;
10727 unsigned PWM9DC4 : 1;
10728 unsigned PWM9DC5 : 1;
10729 unsigned PWM9DC6 : 1;
10730 unsigned PWM9DC7 : 1;
10731 unsigned PWM9DC8 : 1;
10732 unsigned PWM9DC9 : 1;
10735 struct
10737 unsigned PWMPW2 : 1;
10738 unsigned PWMPW3 : 1;
10739 unsigned PWMPW4 : 1;
10740 unsigned PWMPW5 : 1;
10741 unsigned PWMPW6 : 1;
10742 unsigned PWMPW7 : 1;
10743 unsigned PWMPW8 : 1;
10744 unsigned PWMPW9 : 1;
10746 } __PWM9DCHbits_t;
10748 extern __at(0x061B) volatile __PWM9DCHbits_t PWM9DCHbits;
10750 #define _PWM9DCH_DC2 0x01
10751 #define _PWM9DCH_PWM9DC2 0x01
10752 #define _PWM9DCH_PWMPW2 0x01
10753 #define _PWM9DCH_DC3 0x02
10754 #define _PWM9DCH_PWM9DC3 0x02
10755 #define _PWM9DCH_PWMPW3 0x02
10756 #define _PWM9DCH_DC4 0x04
10757 #define _PWM9DCH_PWM9DC4 0x04
10758 #define _PWM9DCH_PWMPW4 0x04
10759 #define _PWM9DCH_DC5 0x08
10760 #define _PWM9DCH_PWM9DC5 0x08
10761 #define _PWM9DCH_PWMPW5 0x08
10762 #define _PWM9DCH_DC6 0x10
10763 #define _PWM9DCH_PWM9DC6 0x10
10764 #define _PWM9DCH_PWMPW6 0x10
10765 #define _PWM9DCH_DC7 0x20
10766 #define _PWM9DCH_PWM9DC7 0x20
10767 #define _PWM9DCH_PWMPW7 0x20
10768 #define _PWM9DCH_DC8 0x40
10769 #define _PWM9DCH_PWM9DC8 0x40
10770 #define _PWM9DCH_PWMPW8 0x40
10771 #define _PWM9DCH_DC9 0x80
10772 #define _PWM9DCH_PWM9DC9 0x80
10773 #define _PWM9DCH_PWMPW9 0x80
10775 //==============================================================================
10778 //==============================================================================
10779 // PWM9CON Bits
10781 extern __at(0x061C) __sfr PWM9CON;
10783 typedef union
10785 struct
10787 unsigned : 1;
10788 unsigned : 1;
10789 unsigned : 1;
10790 unsigned : 1;
10791 unsigned POL : 1;
10792 unsigned OUT : 1;
10793 unsigned OE : 1;
10794 unsigned EN : 1;
10797 struct
10799 unsigned : 1;
10800 unsigned : 1;
10801 unsigned : 1;
10802 unsigned : 1;
10803 unsigned PWM9POL : 1;
10804 unsigned PWM9OUT : 1;
10805 unsigned PWM9OE : 1;
10806 unsigned PWM9EN : 1;
10808 } __PWM9CONbits_t;
10810 extern __at(0x061C) volatile __PWM9CONbits_t PWM9CONbits;
10812 #define _PWM9CON_POL 0x10
10813 #define _PWM9CON_PWM9POL 0x10
10814 #define _PWM9CON_OUT 0x20
10815 #define _PWM9CON_PWM9OUT 0x20
10816 #define _PWM9CON_OE 0x40
10817 #define _PWM9CON_PWM9OE 0x40
10818 #define _PWM9CON_EN 0x80
10819 #define _PWM9CON_PWM9EN 0x80
10821 //==============================================================================
10824 //==============================================================================
10825 // COG1PHR Bits
10827 extern __at(0x068D) __sfr COG1PHR;
10829 typedef union
10831 struct
10833 unsigned PHR0 : 1;
10834 unsigned PHR1 : 1;
10835 unsigned PHR2 : 1;
10836 unsigned PHR3 : 1;
10837 unsigned PHR4 : 1;
10838 unsigned PHR5 : 1;
10839 unsigned : 1;
10840 unsigned : 1;
10843 struct
10845 unsigned G1PHR0 : 1;
10846 unsigned G1PHR1 : 1;
10847 unsigned G1PHR2 : 1;
10848 unsigned G1PHR3 : 1;
10849 unsigned G1PHR4 : 1;
10850 unsigned G1PHR5 : 1;
10851 unsigned : 1;
10852 unsigned : 1;
10855 struct
10857 unsigned G1PHR : 6;
10858 unsigned : 2;
10861 struct
10863 unsigned PHR : 6;
10864 unsigned : 2;
10866 } __COG1PHRbits_t;
10868 extern __at(0x068D) volatile __COG1PHRbits_t COG1PHRbits;
10870 #define _PHR0 0x01
10871 #define _G1PHR0 0x01
10872 #define _PHR1 0x02
10873 #define _G1PHR1 0x02
10874 #define _PHR2 0x04
10875 #define _G1PHR2 0x04
10876 #define _PHR3 0x08
10877 #define _G1PHR3 0x08
10878 #define _PHR4 0x10
10879 #define _G1PHR4 0x10
10880 #define _PHR5 0x20
10881 #define _G1PHR5 0x20
10883 //==============================================================================
10886 //==============================================================================
10887 // COG1PHF Bits
10889 extern __at(0x068E) __sfr COG1PHF;
10891 typedef union
10893 struct
10895 unsigned PHF0 : 1;
10896 unsigned PHF1 : 1;
10897 unsigned PHF2 : 1;
10898 unsigned PHF3 : 1;
10899 unsigned PHF4 : 1;
10900 unsigned PHF5 : 1;
10901 unsigned : 1;
10902 unsigned : 1;
10905 struct
10907 unsigned G1PHF0 : 1;
10908 unsigned G1PHF1 : 1;
10909 unsigned G1PHF2 : 1;
10910 unsigned G1PHF3 : 1;
10911 unsigned G1PHF4 : 1;
10912 unsigned G1PHF5 : 1;
10913 unsigned : 1;
10914 unsigned : 1;
10917 struct
10919 unsigned G1PHF : 6;
10920 unsigned : 2;
10923 struct
10925 unsigned PHF : 6;
10926 unsigned : 2;
10928 } __COG1PHFbits_t;
10930 extern __at(0x068E) volatile __COG1PHFbits_t COG1PHFbits;
10932 #define _PHF0 0x01
10933 #define _G1PHF0 0x01
10934 #define _PHF1 0x02
10935 #define _G1PHF1 0x02
10936 #define _PHF2 0x04
10937 #define _G1PHF2 0x04
10938 #define _PHF3 0x08
10939 #define _G1PHF3 0x08
10940 #define _PHF4 0x10
10941 #define _G1PHF4 0x10
10942 #define _PHF5 0x20
10943 #define _G1PHF5 0x20
10945 //==============================================================================
10948 //==============================================================================
10949 // COG1BLKR Bits
10951 extern __at(0x068F) __sfr COG1BLKR;
10953 typedef union
10955 struct
10957 unsigned BLKR0 : 1;
10958 unsigned BLKR1 : 1;
10959 unsigned BLKR2 : 1;
10960 unsigned BLKR3 : 1;
10961 unsigned BLKR4 : 1;
10962 unsigned BLKR5 : 1;
10963 unsigned : 1;
10964 unsigned : 1;
10967 struct
10969 unsigned G1BLKR0 : 1;
10970 unsigned G1BLKR1 : 1;
10971 unsigned G1BLKR2 : 1;
10972 unsigned G1BLKR3 : 1;
10973 unsigned G1BLKR4 : 1;
10974 unsigned G1BLKR5 : 1;
10975 unsigned : 1;
10976 unsigned : 1;
10979 struct
10981 unsigned G1BLKR : 6;
10982 unsigned : 2;
10985 struct
10987 unsigned BLKR : 6;
10988 unsigned : 2;
10990 } __COG1BLKRbits_t;
10992 extern __at(0x068F) volatile __COG1BLKRbits_t COG1BLKRbits;
10994 #define _BLKR0 0x01
10995 #define _G1BLKR0 0x01
10996 #define _BLKR1 0x02
10997 #define _G1BLKR1 0x02
10998 #define _BLKR2 0x04
10999 #define _G1BLKR2 0x04
11000 #define _BLKR3 0x08
11001 #define _G1BLKR3 0x08
11002 #define _BLKR4 0x10
11003 #define _G1BLKR4 0x10
11004 #define _BLKR5 0x20
11005 #define _G1BLKR5 0x20
11007 //==============================================================================
11010 //==============================================================================
11011 // COG1BLKF Bits
11013 extern __at(0x0690) __sfr COG1BLKF;
11015 typedef union
11017 struct
11019 unsigned BLKF0 : 1;
11020 unsigned BLKF1 : 1;
11021 unsigned BLKF2 : 1;
11022 unsigned BLKF3 : 1;
11023 unsigned BLKF4 : 1;
11024 unsigned BLKF5 : 1;
11025 unsigned : 1;
11026 unsigned : 1;
11029 struct
11031 unsigned G1BLKF0 : 1;
11032 unsigned G1BLKF1 : 1;
11033 unsigned G1BLKF2 : 1;
11034 unsigned G1BLKF3 : 1;
11035 unsigned G1BLKF4 : 1;
11036 unsigned G1BLKF5 : 1;
11037 unsigned : 1;
11038 unsigned : 1;
11041 struct
11043 unsigned G1BLKF : 6;
11044 unsigned : 2;
11047 struct
11049 unsigned BLKF : 6;
11050 unsigned : 2;
11052 } __COG1BLKFbits_t;
11054 extern __at(0x0690) volatile __COG1BLKFbits_t COG1BLKFbits;
11056 #define _BLKF0 0x01
11057 #define _G1BLKF0 0x01
11058 #define _BLKF1 0x02
11059 #define _G1BLKF1 0x02
11060 #define _BLKF2 0x04
11061 #define _G1BLKF2 0x04
11062 #define _BLKF3 0x08
11063 #define _G1BLKF3 0x08
11064 #define _BLKF4 0x10
11065 #define _G1BLKF4 0x10
11066 #define _BLKF5 0x20
11067 #define _G1BLKF5 0x20
11069 //==============================================================================
11072 //==============================================================================
11073 // COG1DBR Bits
11075 extern __at(0x0691) __sfr COG1DBR;
11077 typedef union
11079 struct
11081 unsigned DBR0 : 1;
11082 unsigned DBR1 : 1;
11083 unsigned DBR2 : 1;
11084 unsigned DBR3 : 1;
11085 unsigned DBR4 : 1;
11086 unsigned DBR5 : 1;
11087 unsigned : 1;
11088 unsigned : 1;
11091 struct
11093 unsigned G1DBR0 : 1;
11094 unsigned G1DBR1 : 1;
11095 unsigned G1DBR2 : 1;
11096 unsigned G1DBR3 : 1;
11097 unsigned G1DBR4 : 1;
11098 unsigned G1DBR5 : 1;
11099 unsigned : 1;
11100 unsigned : 1;
11103 struct
11105 unsigned G1DBR : 6;
11106 unsigned : 2;
11109 struct
11111 unsigned DBR : 6;
11112 unsigned : 2;
11114 } __COG1DBRbits_t;
11116 extern __at(0x0691) volatile __COG1DBRbits_t COG1DBRbits;
11118 #define _DBR0 0x01
11119 #define _G1DBR0 0x01
11120 #define _DBR1 0x02
11121 #define _G1DBR1 0x02
11122 #define _DBR2 0x04
11123 #define _G1DBR2 0x04
11124 #define _DBR3 0x08
11125 #define _G1DBR3 0x08
11126 #define _DBR4 0x10
11127 #define _G1DBR4 0x10
11128 #define _DBR5 0x20
11129 #define _G1DBR5 0x20
11131 //==============================================================================
11134 //==============================================================================
11135 // COG1DBF Bits
11137 extern __at(0x0692) __sfr COG1DBF;
11139 typedef union
11141 struct
11143 unsigned DBF0 : 1;
11144 unsigned DBF1 : 1;
11145 unsigned DBF2 : 1;
11146 unsigned DBF3 : 1;
11147 unsigned DBF4 : 1;
11148 unsigned DBF5 : 1;
11149 unsigned : 1;
11150 unsigned : 1;
11153 struct
11155 unsigned G1DBF0 : 1;
11156 unsigned G1DBF1 : 1;
11157 unsigned G1DBF2 : 1;
11158 unsigned G1DBF3 : 1;
11159 unsigned G1DBF4 : 1;
11160 unsigned G1DBF5 : 1;
11161 unsigned : 1;
11162 unsigned : 1;
11165 struct
11167 unsigned G1DBF : 6;
11168 unsigned : 2;
11171 struct
11173 unsigned DBF : 6;
11174 unsigned : 2;
11176 } __COG1DBFbits_t;
11178 extern __at(0x0692) volatile __COG1DBFbits_t COG1DBFbits;
11180 #define _DBF0 0x01
11181 #define _G1DBF0 0x01
11182 #define _DBF1 0x02
11183 #define _G1DBF1 0x02
11184 #define _DBF2 0x04
11185 #define _G1DBF2 0x04
11186 #define _DBF3 0x08
11187 #define _G1DBF3 0x08
11188 #define _DBF4 0x10
11189 #define _G1DBF4 0x10
11190 #define _DBF5 0x20
11191 #define _G1DBF5 0x20
11193 //==============================================================================
11196 //==============================================================================
11197 // COG1CON0 Bits
11199 extern __at(0x0693) __sfr COG1CON0;
11201 typedef union
11203 struct
11205 unsigned MD0 : 1;
11206 unsigned MD1 : 1;
11207 unsigned MD2 : 1;
11208 unsigned CS0 : 1;
11209 unsigned CS1 : 1;
11210 unsigned : 1;
11211 unsigned LD : 1;
11212 unsigned EN : 1;
11215 struct
11217 unsigned G1MD0 : 1;
11218 unsigned G1MD1 : 1;
11219 unsigned G1MD2 : 1;
11220 unsigned G1CS0 : 1;
11221 unsigned G1CS1 : 1;
11222 unsigned : 1;
11223 unsigned G1LD : 1;
11224 unsigned G1EN : 1;
11227 struct
11229 unsigned MD : 3;
11230 unsigned : 5;
11233 struct
11235 unsigned G1MD : 3;
11236 unsigned : 5;
11239 struct
11241 unsigned : 3;
11242 unsigned CS : 2;
11243 unsigned : 3;
11246 struct
11248 unsigned : 3;
11249 unsigned G1CS : 2;
11250 unsigned : 3;
11252 } __COG1CON0bits_t;
11254 extern __at(0x0693) volatile __COG1CON0bits_t COG1CON0bits;
11256 #define _COG1CON0_MD0 0x01
11257 #define _COG1CON0_G1MD0 0x01
11258 #define _COG1CON0_MD1 0x02
11259 #define _COG1CON0_G1MD1 0x02
11260 #define _COG1CON0_MD2 0x04
11261 #define _COG1CON0_G1MD2 0x04
11262 #define _COG1CON0_CS0 0x08
11263 #define _COG1CON0_G1CS0 0x08
11264 #define _COG1CON0_CS1 0x10
11265 #define _COG1CON0_G1CS1 0x10
11266 #define _COG1CON0_LD 0x40
11267 #define _COG1CON0_G1LD 0x40
11268 #define _COG1CON0_EN 0x80
11269 #define _COG1CON0_G1EN 0x80
11271 //==============================================================================
11274 //==============================================================================
11275 // COG1CON1 Bits
11277 extern __at(0x0694) __sfr COG1CON1;
11279 typedef union
11281 struct
11283 unsigned POLA : 1;
11284 unsigned POLB : 1;
11285 unsigned POLC : 1;
11286 unsigned POLD : 1;
11287 unsigned : 1;
11288 unsigned : 1;
11289 unsigned FDBS : 1;
11290 unsigned RDBS : 1;
11293 struct
11295 unsigned G1POLA : 1;
11296 unsigned G1POLB : 1;
11297 unsigned G1POLC : 1;
11298 unsigned G1POLD : 1;
11299 unsigned : 1;
11300 unsigned : 1;
11301 unsigned G1FDBS : 1;
11302 unsigned G1RDBS : 1;
11304 } __COG1CON1bits_t;
11306 extern __at(0x0694) volatile __COG1CON1bits_t COG1CON1bits;
11308 #define _POLA 0x01
11309 #define _G1POLA 0x01
11310 #define _POLB 0x02
11311 #define _G1POLB 0x02
11312 #define _POLC 0x04
11313 #define _G1POLC 0x04
11314 #define _POLD 0x08
11315 #define _G1POLD 0x08
11316 #define _FDBS 0x40
11317 #define _G1FDBS 0x40
11318 #define _RDBS 0x80
11319 #define _G1RDBS 0x80
11321 //==============================================================================
11324 //==============================================================================
11325 // COG1RIS0 Bits
11327 extern __at(0x0695) __sfr COG1RIS0;
11329 typedef union
11331 struct
11333 unsigned RIS0 : 1;
11334 unsigned RIS1 : 1;
11335 unsigned RIS2 : 1;
11336 unsigned RIS3 : 1;
11337 unsigned RIS4 : 1;
11338 unsigned RIS5 : 1;
11339 unsigned RIS6 : 1;
11340 unsigned RIS7 : 1;
11343 struct
11345 unsigned G1RIS0 : 1;
11346 unsigned G1RIS1 : 1;
11347 unsigned G1RIS2 : 1;
11348 unsigned G1RIS3 : 1;
11349 unsigned G1RIS4 : 1;
11350 unsigned G1RIS5 : 1;
11351 unsigned G1RIS6 : 1;
11352 unsigned G1RIS7 : 1;
11354 } __COG1RIS0bits_t;
11356 extern __at(0x0695) volatile __COG1RIS0bits_t COG1RIS0bits;
11358 #define _RIS0 0x01
11359 #define _G1RIS0 0x01
11360 #define _RIS1 0x02
11361 #define _G1RIS1 0x02
11362 #define _RIS2 0x04
11363 #define _G1RIS2 0x04
11364 #define _RIS3 0x08
11365 #define _G1RIS3 0x08
11366 #define _RIS4 0x10
11367 #define _G1RIS4 0x10
11368 #define _RIS5 0x20
11369 #define _G1RIS5 0x20
11370 #define _RIS6 0x40
11371 #define _G1RIS6 0x40
11372 #define _RIS7 0x80
11373 #define _G1RIS7 0x80
11375 //==============================================================================
11378 //==============================================================================
11379 // COG1RIS1 Bits
11381 extern __at(0x0696) __sfr COG1RIS1;
11383 typedef union
11385 struct
11387 unsigned RIS8 : 1;
11388 unsigned RIS9 : 1;
11389 unsigned RIS10 : 1;
11390 unsigned RIS11 : 1;
11391 unsigned RIS12 : 1;
11392 unsigned RIS13 : 1;
11393 unsigned RIS14 : 1;
11394 unsigned RIS15 : 1;
11397 struct
11399 unsigned G1RIS8 : 1;
11400 unsigned G1RIS9 : 1;
11401 unsigned G1RIS10 : 1;
11402 unsigned G1RIS11 : 1;
11403 unsigned G1RIS12 : 1;
11404 unsigned G1RIS13 : 1;
11405 unsigned G1RIS14 : 1;
11406 unsigned G1RIS15 : 1;
11408 } __COG1RIS1bits_t;
11410 extern __at(0x0696) volatile __COG1RIS1bits_t COG1RIS1bits;
11412 #define _RIS8 0x01
11413 #define _G1RIS8 0x01
11414 #define _RIS9 0x02
11415 #define _G1RIS9 0x02
11416 #define _RIS10 0x04
11417 #define _G1RIS10 0x04
11418 #define _RIS11 0x08
11419 #define _G1RIS11 0x08
11420 #define _RIS12 0x10
11421 #define _G1RIS12 0x10
11422 #define _RIS13 0x20
11423 #define _G1RIS13 0x20
11424 #define _RIS14 0x40
11425 #define _G1RIS14 0x40
11426 #define _RIS15 0x80
11427 #define _G1RIS15 0x80
11429 //==============================================================================
11432 //==============================================================================
11433 // COG1RSIM0 Bits
11435 extern __at(0x0697) __sfr COG1RSIM0;
11437 typedef union
11439 struct
11441 unsigned RSIM0 : 1;
11442 unsigned RSIM1 : 1;
11443 unsigned RSIM2 : 1;
11444 unsigned RSIM3 : 1;
11445 unsigned RSIM4 : 1;
11446 unsigned RSIM5 : 1;
11447 unsigned RSIM6 : 1;
11448 unsigned RSIM7 : 1;
11451 struct
11453 unsigned G1RSIM0 : 1;
11454 unsigned G1RSIM1 : 1;
11455 unsigned G1RSIM2 : 1;
11456 unsigned G1RSIM3 : 1;
11457 unsigned G1RSIM4 : 1;
11458 unsigned G1RSIM5 : 1;
11459 unsigned G1RSIM6 : 1;
11460 unsigned G1RSIM7 : 1;
11462 } __COG1RSIM0bits_t;
11464 extern __at(0x0697) volatile __COG1RSIM0bits_t COG1RSIM0bits;
11466 #define _RSIM0 0x01
11467 #define _G1RSIM0 0x01
11468 #define _RSIM1 0x02
11469 #define _G1RSIM1 0x02
11470 #define _RSIM2 0x04
11471 #define _G1RSIM2 0x04
11472 #define _RSIM3 0x08
11473 #define _G1RSIM3 0x08
11474 #define _RSIM4 0x10
11475 #define _G1RSIM4 0x10
11476 #define _RSIM5 0x20
11477 #define _G1RSIM5 0x20
11478 #define _RSIM6 0x40
11479 #define _G1RSIM6 0x40
11480 #define _RSIM7 0x80
11481 #define _G1RSIM7 0x80
11483 //==============================================================================
11486 //==============================================================================
11487 // COG1RSIM1 Bits
11489 extern __at(0x0698) __sfr COG1RSIM1;
11491 typedef union
11493 struct
11495 unsigned RSIM8 : 1;
11496 unsigned RSIM9 : 1;
11497 unsigned RSIM10 : 1;
11498 unsigned RSIM11 : 1;
11499 unsigned RSIM12 : 1;
11500 unsigned RSIM13 : 1;
11501 unsigned RSIM14 : 1;
11502 unsigned RSIM15 : 1;
11505 struct
11507 unsigned G1RSIM8 : 1;
11508 unsigned G1RSIM9 : 1;
11509 unsigned G1RSIM10 : 1;
11510 unsigned G1RSIM11 : 1;
11511 unsigned G1RSIM12 : 1;
11512 unsigned G1RSIM13 : 1;
11513 unsigned G1RSIM14 : 1;
11514 unsigned G1RSIM15 : 1;
11516 } __COG1RSIM1bits_t;
11518 extern __at(0x0698) volatile __COG1RSIM1bits_t COG1RSIM1bits;
11520 #define _RSIM8 0x01
11521 #define _G1RSIM8 0x01
11522 #define _RSIM9 0x02
11523 #define _G1RSIM9 0x02
11524 #define _RSIM10 0x04
11525 #define _G1RSIM10 0x04
11526 #define _RSIM11 0x08
11527 #define _G1RSIM11 0x08
11528 #define _RSIM12 0x10
11529 #define _G1RSIM12 0x10
11530 #define _RSIM13 0x20
11531 #define _G1RSIM13 0x20
11532 #define _RSIM14 0x40
11533 #define _G1RSIM14 0x40
11534 #define _RSIM15 0x80
11535 #define _G1RSIM15 0x80
11537 //==============================================================================
11540 //==============================================================================
11541 // COG1FIS0 Bits
11543 extern __at(0x0699) __sfr COG1FIS0;
11545 typedef union
11547 struct
11549 unsigned FIS0 : 1;
11550 unsigned FIS1 : 1;
11551 unsigned FIS2 : 1;
11552 unsigned FIS3 : 1;
11553 unsigned FIS4 : 1;
11554 unsigned FIS5 : 1;
11555 unsigned FIS6 : 1;
11556 unsigned FIS7 : 1;
11559 struct
11561 unsigned G1FIS0 : 1;
11562 unsigned G1FIS1 : 1;
11563 unsigned G1FIS2 : 1;
11564 unsigned G1FIS3 : 1;
11565 unsigned G1FIS4 : 1;
11566 unsigned G1FIS5 : 1;
11567 unsigned G1FIS6 : 1;
11568 unsigned G1FIS7 : 1;
11570 } __COG1FIS0bits_t;
11572 extern __at(0x0699) volatile __COG1FIS0bits_t COG1FIS0bits;
11574 #define _FIS0 0x01
11575 #define _G1FIS0 0x01
11576 #define _FIS1 0x02
11577 #define _G1FIS1 0x02
11578 #define _FIS2 0x04
11579 #define _G1FIS2 0x04
11580 #define _FIS3 0x08
11581 #define _G1FIS3 0x08
11582 #define _FIS4 0x10
11583 #define _G1FIS4 0x10
11584 #define _FIS5 0x20
11585 #define _G1FIS5 0x20
11586 #define _FIS6 0x40
11587 #define _G1FIS6 0x40
11588 #define _FIS7 0x80
11589 #define _G1FIS7 0x80
11591 //==============================================================================
11594 //==============================================================================
11595 // COG1FIS1 Bits
11597 extern __at(0x069A) __sfr COG1FIS1;
11599 typedef union
11601 struct
11603 unsigned FIS8 : 1;
11604 unsigned FIS9 : 1;
11605 unsigned FIS10 : 1;
11606 unsigned FIS11 : 1;
11607 unsigned FIS12 : 1;
11608 unsigned FIS13 : 1;
11609 unsigned FIS14 : 1;
11610 unsigned FIS15 : 1;
11613 struct
11615 unsigned G1FIS8 : 1;
11616 unsigned G1FIS9 : 1;
11617 unsigned G1FIS10 : 1;
11618 unsigned G1FIS11 : 1;
11619 unsigned G1FIS12 : 1;
11620 unsigned G1FIS13 : 1;
11621 unsigned G1FIS14 : 1;
11622 unsigned G1FIS15 : 1;
11624 } __COG1FIS1bits_t;
11626 extern __at(0x069A) volatile __COG1FIS1bits_t COG1FIS1bits;
11628 #define _FIS8 0x01
11629 #define _G1FIS8 0x01
11630 #define _FIS9 0x02
11631 #define _G1FIS9 0x02
11632 #define _FIS10 0x04
11633 #define _G1FIS10 0x04
11634 #define _FIS11 0x08
11635 #define _G1FIS11 0x08
11636 #define _FIS12 0x10
11637 #define _G1FIS12 0x10
11638 #define _FIS13 0x20
11639 #define _G1FIS13 0x20
11640 #define _FIS14 0x40
11641 #define _G1FIS14 0x40
11642 #define _FIS15 0x80
11643 #define _G1FIS15 0x80
11645 //==============================================================================
11648 //==============================================================================
11649 // COG1FSIM0 Bits
11651 extern __at(0x069B) __sfr COG1FSIM0;
11653 typedef union
11655 struct
11657 unsigned FSIM0 : 1;
11658 unsigned FSIM1 : 1;
11659 unsigned FSIM2 : 1;
11660 unsigned FSIM3 : 1;
11661 unsigned FSIM4 : 1;
11662 unsigned FSIM5 : 1;
11663 unsigned FSIM6 : 1;
11664 unsigned FSIM7 : 1;
11667 struct
11669 unsigned G1FSIM0 : 1;
11670 unsigned G1FSIM1 : 1;
11671 unsigned G1FSIM2 : 1;
11672 unsigned G1FSIM3 : 1;
11673 unsigned G1FSIM4 : 1;
11674 unsigned G1FSIM5 : 1;
11675 unsigned G1FSIM6 : 1;
11676 unsigned G1FSIM7 : 1;
11678 } __COG1FSIM0bits_t;
11680 extern __at(0x069B) volatile __COG1FSIM0bits_t COG1FSIM0bits;
11682 #define _FSIM0 0x01
11683 #define _G1FSIM0 0x01
11684 #define _FSIM1 0x02
11685 #define _G1FSIM1 0x02
11686 #define _FSIM2 0x04
11687 #define _G1FSIM2 0x04
11688 #define _FSIM3 0x08
11689 #define _G1FSIM3 0x08
11690 #define _FSIM4 0x10
11691 #define _G1FSIM4 0x10
11692 #define _FSIM5 0x20
11693 #define _G1FSIM5 0x20
11694 #define _FSIM6 0x40
11695 #define _G1FSIM6 0x40
11696 #define _FSIM7 0x80
11697 #define _G1FSIM7 0x80
11699 //==============================================================================
11702 //==============================================================================
11703 // COG1FSIM1 Bits
11705 extern __at(0x069C) __sfr COG1FSIM1;
11707 typedef union
11709 struct
11711 unsigned FSIM8 : 1;
11712 unsigned FSIM9 : 1;
11713 unsigned FSIM10 : 1;
11714 unsigned FSIM11 : 1;
11715 unsigned FSIM12 : 1;
11716 unsigned FSIM13 : 1;
11717 unsigned FSIM14 : 1;
11718 unsigned FSIM15 : 1;
11721 struct
11723 unsigned G1FSIM8 : 1;
11724 unsigned G1FSIM9 : 1;
11725 unsigned G1FSIM10 : 1;
11726 unsigned G1FSIM11 : 1;
11727 unsigned G1FSIM12 : 1;
11728 unsigned G1FSIM13 : 1;
11729 unsigned G1FSIM14 : 1;
11730 unsigned G1FSIM15 : 1;
11732 } __COG1FSIM1bits_t;
11734 extern __at(0x069C) volatile __COG1FSIM1bits_t COG1FSIM1bits;
11736 #define _FSIM8 0x01
11737 #define _G1FSIM8 0x01
11738 #define _FSIM9 0x02
11739 #define _G1FSIM9 0x02
11740 #define _FSIM10 0x04
11741 #define _G1FSIM10 0x04
11742 #define _FSIM11 0x08
11743 #define _G1FSIM11 0x08
11744 #define _FSIM12 0x10
11745 #define _G1FSIM12 0x10
11746 #define _FSIM13 0x20
11747 #define _G1FSIM13 0x20
11748 #define _FSIM14 0x40
11749 #define _G1FSIM14 0x40
11750 #define _FSIM15 0x80
11751 #define _G1FSIM15 0x80
11753 //==============================================================================
11756 //==============================================================================
11757 // COG1ASD0 Bits
11759 extern __at(0x069D) __sfr COG1ASD0;
11761 typedef union
11763 struct
11765 unsigned : 1;
11766 unsigned : 1;
11767 unsigned ASDAC0 : 1;
11768 unsigned ASDAC1 : 1;
11769 unsigned ASDBD0 : 1;
11770 unsigned ASDBD1 : 1;
11771 unsigned ASREN : 1;
11772 unsigned ASE : 1;
11775 struct
11777 unsigned : 1;
11778 unsigned : 1;
11779 unsigned G1ASDAC0 : 1;
11780 unsigned G1ASDAC1 : 1;
11781 unsigned G1ASDBD0 : 1;
11782 unsigned G1ASDBD1 : 1;
11783 unsigned ARSEN : 1;
11784 unsigned G1ASE : 1;
11787 struct
11789 unsigned : 1;
11790 unsigned : 1;
11791 unsigned : 1;
11792 unsigned : 1;
11793 unsigned : 1;
11794 unsigned : 1;
11795 unsigned G1ARSEN : 1;
11796 unsigned : 1;
11799 struct
11801 unsigned : 1;
11802 unsigned : 1;
11803 unsigned : 1;
11804 unsigned : 1;
11805 unsigned : 1;
11806 unsigned : 1;
11807 unsigned G1ASREN : 1;
11808 unsigned : 1;
11811 struct
11813 unsigned : 2;
11814 unsigned G1ASDAC : 2;
11815 unsigned : 4;
11818 struct
11820 unsigned : 2;
11821 unsigned ASDAC : 2;
11822 unsigned : 4;
11825 struct
11827 unsigned : 4;
11828 unsigned G1ASDBD : 2;
11829 unsigned : 2;
11832 struct
11834 unsigned : 4;
11835 unsigned ASDBD : 2;
11836 unsigned : 2;
11838 } __COG1ASD0bits_t;
11840 extern __at(0x069D) volatile __COG1ASD0bits_t COG1ASD0bits;
11842 #define _ASDAC0 0x04
11843 #define _G1ASDAC0 0x04
11844 #define _ASDAC1 0x08
11845 #define _G1ASDAC1 0x08
11846 #define _ASDBD0 0x10
11847 #define _G1ASDBD0 0x10
11848 #define _ASDBD1 0x20
11849 #define _G1ASDBD1 0x20
11850 #define _ASREN 0x40
11851 #define _ARSEN 0x40
11852 #define _G1ARSEN 0x40
11853 #define _G1ASREN 0x40
11854 #define _ASE 0x80
11855 #define _G1ASE 0x80
11857 //==============================================================================
11860 //==============================================================================
11861 // COG1ASD1 Bits
11863 extern __at(0x069E) __sfr COG1ASD1;
11865 typedef union
11867 struct
11869 unsigned AS0E : 1;
11870 unsigned AS1E : 1;
11871 unsigned AS2E : 1;
11872 unsigned AS3E : 1;
11873 unsigned AS4E : 1;
11874 unsigned AS5E : 1;
11875 unsigned AS6E : 1;
11876 unsigned AS7E : 1;
11879 struct
11881 unsigned G1AS0E : 1;
11882 unsigned G1AS1E : 1;
11883 unsigned G1AS2E : 1;
11884 unsigned G1AS3E : 1;
11885 unsigned G1AS4E : 1;
11886 unsigned G1AS5E : 1;
11887 unsigned G1AS6E : 1;
11888 unsigned G1AS7E : 1;
11890 } __COG1ASD1bits_t;
11892 extern __at(0x069E) volatile __COG1ASD1bits_t COG1ASD1bits;
11894 #define _AS0E 0x01
11895 #define _G1AS0E 0x01
11896 #define _AS1E 0x02
11897 #define _G1AS1E 0x02
11898 #define _AS2E 0x04
11899 #define _G1AS2E 0x04
11900 #define _AS3E 0x08
11901 #define _G1AS3E 0x08
11902 #define _AS4E 0x10
11903 #define _G1AS4E 0x10
11904 #define _AS5E 0x20
11905 #define _G1AS5E 0x20
11906 #define _AS6E 0x40
11907 #define _G1AS6E 0x40
11908 #define _AS7E 0x80
11909 #define _G1AS7E 0x80
11911 //==============================================================================
11914 //==============================================================================
11915 // COG1STR Bits
11917 extern __at(0x069F) __sfr COG1STR;
11919 typedef union
11921 struct
11923 unsigned STRA : 1;
11924 unsigned STRB : 1;
11925 unsigned STRC : 1;
11926 unsigned STRD : 1;
11927 unsigned SDATA : 1;
11928 unsigned SDATB : 1;
11929 unsigned SDATC : 1;
11930 unsigned SDATD : 1;
11933 struct
11935 unsigned G1STRA : 1;
11936 unsigned G1STRB : 1;
11937 unsigned G1STRC : 1;
11938 unsigned G1STRD : 1;
11939 unsigned G1SDATA : 1;
11940 unsigned G1SDATB : 1;
11941 unsigned G1SDATC : 1;
11942 unsigned G1SDATD : 1;
11944 } __COG1STRbits_t;
11946 extern __at(0x069F) volatile __COG1STRbits_t COG1STRbits;
11948 #define _STRA 0x01
11949 #define _G1STRA 0x01
11950 #define _STRB 0x02
11951 #define _G1STRB 0x02
11952 #define _STRC 0x04
11953 #define _G1STRC 0x04
11954 #define _STRD 0x08
11955 #define _G1STRD 0x08
11956 #define _SDATA 0x10
11957 #define _G1SDATA 0x10
11958 #define _SDATB 0x20
11959 #define _G1SDATB 0x20
11960 #define _SDATC 0x40
11961 #define _G1SDATC 0x40
11962 #define _SDATD 0x80
11963 #define _G1SDATD 0x80
11965 //==============================================================================
11968 //==============================================================================
11969 // COG2PHR Bits
11971 extern __at(0x070D) __sfr COG2PHR;
11973 typedef union
11975 struct
11977 unsigned PHR0 : 1;
11978 unsigned PHR1 : 1;
11979 unsigned PHR2 : 1;
11980 unsigned PHR3 : 1;
11981 unsigned PHR4 : 1;
11982 unsigned PHR5 : 1;
11983 unsigned : 1;
11984 unsigned : 1;
11987 struct
11989 unsigned G2PHR0 : 1;
11990 unsigned G2PHR1 : 1;
11991 unsigned G2PHR2 : 1;
11992 unsigned G2PHR3 : 1;
11993 unsigned G2PHR4 : 1;
11994 unsigned G2PHR5 : 1;
11995 unsigned : 1;
11996 unsigned : 1;
11999 struct
12001 unsigned PHR : 6;
12002 unsigned : 2;
12005 struct
12007 unsigned G2PHR : 6;
12008 unsigned : 2;
12010 } __COG2PHRbits_t;
12012 extern __at(0x070D) volatile __COG2PHRbits_t COG2PHRbits;
12014 #define _COG2PHR_PHR0 0x01
12015 #define _COG2PHR_G2PHR0 0x01
12016 #define _COG2PHR_PHR1 0x02
12017 #define _COG2PHR_G2PHR1 0x02
12018 #define _COG2PHR_PHR2 0x04
12019 #define _COG2PHR_G2PHR2 0x04
12020 #define _COG2PHR_PHR3 0x08
12021 #define _COG2PHR_G2PHR3 0x08
12022 #define _COG2PHR_PHR4 0x10
12023 #define _COG2PHR_G2PHR4 0x10
12024 #define _COG2PHR_PHR5 0x20
12025 #define _COG2PHR_G2PHR5 0x20
12027 //==============================================================================
12030 //==============================================================================
12031 // COG2PHF Bits
12033 extern __at(0x070E) __sfr COG2PHF;
12035 typedef union
12037 struct
12039 unsigned PHF0 : 1;
12040 unsigned PHF1 : 1;
12041 unsigned PHF2 : 1;
12042 unsigned PHF3 : 1;
12043 unsigned PHF4 : 1;
12044 unsigned PHF5 : 1;
12045 unsigned : 1;
12046 unsigned : 1;
12049 struct
12051 unsigned G2PHF0 : 1;
12052 unsigned G2PHF1 : 1;
12053 unsigned G2PHF2 : 1;
12054 unsigned G2PHF3 : 1;
12055 unsigned G2PHF4 : 1;
12056 unsigned G2PHF5 : 1;
12057 unsigned : 1;
12058 unsigned : 1;
12061 struct
12063 unsigned PHF : 6;
12064 unsigned : 2;
12067 struct
12069 unsigned G2PHF : 6;
12070 unsigned : 2;
12072 } __COG2PHFbits_t;
12074 extern __at(0x070E) volatile __COG2PHFbits_t COG2PHFbits;
12076 #define _COG2PHF_PHF0 0x01
12077 #define _COG2PHF_G2PHF0 0x01
12078 #define _COG2PHF_PHF1 0x02
12079 #define _COG2PHF_G2PHF1 0x02
12080 #define _COG2PHF_PHF2 0x04
12081 #define _COG2PHF_G2PHF2 0x04
12082 #define _COG2PHF_PHF3 0x08
12083 #define _COG2PHF_G2PHF3 0x08
12084 #define _COG2PHF_PHF4 0x10
12085 #define _COG2PHF_G2PHF4 0x10
12086 #define _COG2PHF_PHF5 0x20
12087 #define _COG2PHF_G2PHF5 0x20
12089 //==============================================================================
12092 //==============================================================================
12093 // COG2BLKR Bits
12095 extern __at(0x070F) __sfr COG2BLKR;
12097 typedef union
12099 struct
12101 unsigned BLKR0 : 1;
12102 unsigned BLKR1 : 1;
12103 unsigned BLKR2 : 1;
12104 unsigned BLKR3 : 1;
12105 unsigned BLKR4 : 1;
12106 unsigned BLKR5 : 1;
12107 unsigned : 1;
12108 unsigned : 1;
12111 struct
12113 unsigned G2BLKR0 : 1;
12114 unsigned G2BLKR1 : 1;
12115 unsigned G2BLKR2 : 1;
12116 unsigned G2BLKR3 : 1;
12117 unsigned G2BLKR4 : 1;
12118 unsigned G2BLKR5 : 1;
12119 unsigned : 1;
12120 unsigned : 1;
12123 struct
12125 unsigned G2BLKR : 6;
12126 unsigned : 2;
12129 struct
12131 unsigned BLKR : 6;
12132 unsigned : 2;
12134 } __COG2BLKRbits_t;
12136 extern __at(0x070F) volatile __COG2BLKRbits_t COG2BLKRbits;
12138 #define _COG2BLKR_BLKR0 0x01
12139 #define _COG2BLKR_G2BLKR0 0x01
12140 #define _COG2BLKR_BLKR1 0x02
12141 #define _COG2BLKR_G2BLKR1 0x02
12142 #define _COG2BLKR_BLKR2 0x04
12143 #define _COG2BLKR_G2BLKR2 0x04
12144 #define _COG2BLKR_BLKR3 0x08
12145 #define _COG2BLKR_G2BLKR3 0x08
12146 #define _COG2BLKR_BLKR4 0x10
12147 #define _COG2BLKR_G2BLKR4 0x10
12148 #define _COG2BLKR_BLKR5 0x20
12149 #define _COG2BLKR_G2BLKR5 0x20
12151 //==============================================================================
12154 //==============================================================================
12155 // COG2BLKF Bits
12157 extern __at(0x0710) __sfr COG2BLKF;
12159 typedef union
12161 struct
12163 unsigned BLKF0 : 1;
12164 unsigned BLKF1 : 1;
12165 unsigned BLKF2 : 1;
12166 unsigned BLKF3 : 1;
12167 unsigned BLKF4 : 1;
12168 unsigned BLKF5 : 1;
12169 unsigned : 1;
12170 unsigned : 1;
12173 struct
12175 unsigned G2BLKF0 : 1;
12176 unsigned G2BLKF1 : 1;
12177 unsigned G2BLKF2 : 1;
12178 unsigned G2BLKF3 : 1;
12179 unsigned G2BLKF4 : 1;
12180 unsigned G2BLKF5 : 1;
12181 unsigned : 1;
12182 unsigned : 1;
12185 struct
12187 unsigned BLKF : 6;
12188 unsigned : 2;
12191 struct
12193 unsigned G2BLKF : 6;
12194 unsigned : 2;
12196 } __COG2BLKFbits_t;
12198 extern __at(0x0710) volatile __COG2BLKFbits_t COG2BLKFbits;
12200 #define _COG2BLKF_BLKF0 0x01
12201 #define _COG2BLKF_G2BLKF0 0x01
12202 #define _COG2BLKF_BLKF1 0x02
12203 #define _COG2BLKF_G2BLKF1 0x02
12204 #define _COG2BLKF_BLKF2 0x04
12205 #define _COG2BLKF_G2BLKF2 0x04
12206 #define _COG2BLKF_BLKF3 0x08
12207 #define _COG2BLKF_G2BLKF3 0x08
12208 #define _COG2BLKF_BLKF4 0x10
12209 #define _COG2BLKF_G2BLKF4 0x10
12210 #define _COG2BLKF_BLKF5 0x20
12211 #define _COG2BLKF_G2BLKF5 0x20
12213 //==============================================================================
12216 //==============================================================================
12217 // COG2DBR Bits
12219 extern __at(0x0711) __sfr COG2DBR;
12221 typedef union
12223 struct
12225 unsigned DBR0 : 1;
12226 unsigned DBR1 : 1;
12227 unsigned DBR2 : 1;
12228 unsigned DBR3 : 1;
12229 unsigned DBR4 : 1;
12230 unsigned DBR5 : 1;
12231 unsigned : 1;
12232 unsigned : 1;
12235 struct
12237 unsigned G2DBR0 : 1;
12238 unsigned G2DBR1 : 1;
12239 unsigned G2DBR2 : 1;
12240 unsigned G2DBR3 : 1;
12241 unsigned G2DBR4 : 1;
12242 unsigned G2DBR5 : 1;
12243 unsigned : 1;
12244 unsigned : 1;
12247 struct
12249 unsigned G2DBR : 6;
12250 unsigned : 2;
12253 struct
12255 unsigned DBR : 6;
12256 unsigned : 2;
12258 } __COG2DBRbits_t;
12260 extern __at(0x0711) volatile __COG2DBRbits_t COG2DBRbits;
12262 #define _COG2DBR_DBR0 0x01
12263 #define _COG2DBR_G2DBR0 0x01
12264 #define _COG2DBR_DBR1 0x02
12265 #define _COG2DBR_G2DBR1 0x02
12266 #define _COG2DBR_DBR2 0x04
12267 #define _COG2DBR_G2DBR2 0x04
12268 #define _COG2DBR_DBR3 0x08
12269 #define _COG2DBR_G2DBR3 0x08
12270 #define _COG2DBR_DBR4 0x10
12271 #define _COG2DBR_G2DBR4 0x10
12272 #define _COG2DBR_DBR5 0x20
12273 #define _COG2DBR_G2DBR5 0x20
12275 //==============================================================================
12278 //==============================================================================
12279 // COG2DBF Bits
12281 extern __at(0x0712) __sfr COG2DBF;
12283 typedef union
12285 struct
12287 unsigned DBF0 : 1;
12288 unsigned DBF1 : 1;
12289 unsigned DBF2 : 1;
12290 unsigned DBF3 : 1;
12291 unsigned DBF4 : 1;
12292 unsigned DBF5 : 1;
12293 unsigned : 1;
12294 unsigned : 1;
12297 struct
12299 unsigned G2DBF0 : 1;
12300 unsigned G2DBF1 : 1;
12301 unsigned G2DBF2 : 1;
12302 unsigned G2DBF3 : 1;
12303 unsigned G2DBF4 : 1;
12304 unsigned G2DBF5 : 1;
12305 unsigned : 1;
12306 unsigned : 1;
12309 struct
12311 unsigned DBF : 6;
12312 unsigned : 2;
12315 struct
12317 unsigned G2DBF : 6;
12318 unsigned : 2;
12320 } __COG2DBFbits_t;
12322 extern __at(0x0712) volatile __COG2DBFbits_t COG2DBFbits;
12324 #define _COG2DBF_DBF0 0x01
12325 #define _COG2DBF_G2DBF0 0x01
12326 #define _COG2DBF_DBF1 0x02
12327 #define _COG2DBF_G2DBF1 0x02
12328 #define _COG2DBF_DBF2 0x04
12329 #define _COG2DBF_G2DBF2 0x04
12330 #define _COG2DBF_DBF3 0x08
12331 #define _COG2DBF_G2DBF3 0x08
12332 #define _COG2DBF_DBF4 0x10
12333 #define _COG2DBF_G2DBF4 0x10
12334 #define _COG2DBF_DBF5 0x20
12335 #define _COG2DBF_G2DBF5 0x20
12337 //==============================================================================
12340 //==============================================================================
12341 // COG2CON0 Bits
12343 extern __at(0x0713) __sfr COG2CON0;
12345 typedef union
12347 struct
12349 unsigned MD0 : 1;
12350 unsigned MD1 : 1;
12351 unsigned MD2 : 1;
12352 unsigned CS0 : 1;
12353 unsigned CS1 : 1;
12354 unsigned : 1;
12355 unsigned LD : 1;
12356 unsigned EN : 1;
12359 struct
12361 unsigned G2MD0 : 1;
12362 unsigned G2MD1 : 1;
12363 unsigned G2MD2 : 1;
12364 unsigned G2CS0 : 1;
12365 unsigned G2CS1 : 1;
12366 unsigned : 1;
12367 unsigned G2LD : 1;
12368 unsigned G2EN : 1;
12371 struct
12373 unsigned G2MD : 3;
12374 unsigned : 5;
12377 struct
12379 unsigned MD : 3;
12380 unsigned : 5;
12383 struct
12385 unsigned : 3;
12386 unsigned CS : 2;
12387 unsigned : 3;
12390 struct
12392 unsigned : 3;
12393 unsigned G2CS : 2;
12394 unsigned : 3;
12396 } __COG2CON0bits_t;
12398 extern __at(0x0713) volatile __COG2CON0bits_t COG2CON0bits;
12400 #define _COG2CON0_MD0 0x01
12401 #define _COG2CON0_G2MD0 0x01
12402 #define _COG2CON0_MD1 0x02
12403 #define _COG2CON0_G2MD1 0x02
12404 #define _COG2CON0_MD2 0x04
12405 #define _COG2CON0_G2MD2 0x04
12406 #define _COG2CON0_CS0 0x08
12407 #define _COG2CON0_G2CS0 0x08
12408 #define _COG2CON0_CS1 0x10
12409 #define _COG2CON0_G2CS1 0x10
12410 #define _COG2CON0_LD 0x40
12411 #define _COG2CON0_G2LD 0x40
12412 #define _COG2CON0_EN 0x80
12413 #define _COG2CON0_G2EN 0x80
12415 //==============================================================================
12418 //==============================================================================
12419 // COG2CON1 Bits
12421 extern __at(0x0714) __sfr COG2CON1;
12423 typedef union
12425 struct
12427 unsigned POLA : 1;
12428 unsigned POLB : 1;
12429 unsigned POLC : 1;
12430 unsigned POLD : 1;
12431 unsigned : 1;
12432 unsigned : 1;
12433 unsigned FDBS : 1;
12434 unsigned RDBS : 1;
12437 struct
12439 unsigned G2POLA : 1;
12440 unsigned G2POLB : 1;
12441 unsigned G2POLC : 1;
12442 unsigned G2POLD : 1;
12443 unsigned : 1;
12444 unsigned : 1;
12445 unsigned G2FDBS : 1;
12446 unsigned G2RDBS : 1;
12448 } __COG2CON1bits_t;
12450 extern __at(0x0714) volatile __COG2CON1bits_t COG2CON1bits;
12452 #define _COG2CON1_POLA 0x01
12453 #define _COG2CON1_G2POLA 0x01
12454 #define _COG2CON1_POLB 0x02
12455 #define _COG2CON1_G2POLB 0x02
12456 #define _COG2CON1_POLC 0x04
12457 #define _COG2CON1_G2POLC 0x04
12458 #define _COG2CON1_POLD 0x08
12459 #define _COG2CON1_G2POLD 0x08
12460 #define _COG2CON1_FDBS 0x40
12461 #define _COG2CON1_G2FDBS 0x40
12462 #define _COG2CON1_RDBS 0x80
12463 #define _COG2CON1_G2RDBS 0x80
12465 //==============================================================================
12468 //==============================================================================
12469 // COG2RIS0 Bits
12471 extern __at(0x0715) __sfr COG2RIS0;
12473 typedef union
12475 struct
12477 unsigned RIS0 : 1;
12478 unsigned RIS1 : 1;
12479 unsigned RIS2 : 1;
12480 unsigned RIS3 : 1;
12481 unsigned RIS4 : 1;
12482 unsigned RIS5 : 1;
12483 unsigned RIS6 : 1;
12484 unsigned RIS7 : 1;
12487 struct
12489 unsigned G2RIS0 : 1;
12490 unsigned G2RIS1 : 1;
12491 unsigned G2RIS2 : 1;
12492 unsigned G2RIS3 : 1;
12493 unsigned G2RIS4 : 1;
12494 unsigned G2RIS5 : 1;
12495 unsigned G2RIS6 : 1;
12496 unsigned G2RIS7 : 1;
12498 } __COG2RIS0bits_t;
12500 extern __at(0x0715) volatile __COG2RIS0bits_t COG2RIS0bits;
12502 #define _COG2RIS0_RIS0 0x01
12503 #define _COG2RIS0_G2RIS0 0x01
12504 #define _COG2RIS0_RIS1 0x02
12505 #define _COG2RIS0_G2RIS1 0x02
12506 #define _COG2RIS0_RIS2 0x04
12507 #define _COG2RIS0_G2RIS2 0x04
12508 #define _COG2RIS0_RIS3 0x08
12509 #define _COG2RIS0_G2RIS3 0x08
12510 #define _COG2RIS0_RIS4 0x10
12511 #define _COG2RIS0_G2RIS4 0x10
12512 #define _COG2RIS0_RIS5 0x20
12513 #define _COG2RIS0_G2RIS5 0x20
12514 #define _COG2RIS0_RIS6 0x40
12515 #define _COG2RIS0_G2RIS6 0x40
12516 #define _COG2RIS0_RIS7 0x80
12517 #define _COG2RIS0_G2RIS7 0x80
12519 //==============================================================================
12522 //==============================================================================
12523 // COG2RIS1 Bits
12525 extern __at(0x0716) __sfr COG2RIS1;
12527 typedef union
12529 struct
12531 unsigned RIS8 : 1;
12532 unsigned RIS9 : 1;
12533 unsigned RIS10 : 1;
12534 unsigned RIS11 : 1;
12535 unsigned RIS12 : 1;
12536 unsigned RIS13 : 1;
12537 unsigned RIS14 : 1;
12538 unsigned RIS15 : 1;
12541 struct
12543 unsigned G2RIS8 : 1;
12544 unsigned G2RIS9 : 1;
12545 unsigned G2RIS10 : 1;
12546 unsigned G2RIS11 : 1;
12547 unsigned G2RIS12 : 1;
12548 unsigned G2RIS13 : 1;
12549 unsigned G2RIS14 : 1;
12550 unsigned G2RIS15 : 1;
12552 } __COG2RIS1bits_t;
12554 extern __at(0x0716) volatile __COG2RIS1bits_t COG2RIS1bits;
12556 #define _COG2RIS1_RIS8 0x01
12557 #define _COG2RIS1_G2RIS8 0x01
12558 #define _COG2RIS1_RIS9 0x02
12559 #define _COG2RIS1_G2RIS9 0x02
12560 #define _COG2RIS1_RIS10 0x04
12561 #define _COG2RIS1_G2RIS10 0x04
12562 #define _COG2RIS1_RIS11 0x08
12563 #define _COG2RIS1_G2RIS11 0x08
12564 #define _COG2RIS1_RIS12 0x10
12565 #define _COG2RIS1_G2RIS12 0x10
12566 #define _COG2RIS1_RIS13 0x20
12567 #define _COG2RIS1_G2RIS13 0x20
12568 #define _COG2RIS1_RIS14 0x40
12569 #define _COG2RIS1_G2RIS14 0x40
12570 #define _COG2RIS1_RIS15 0x80
12571 #define _COG2RIS1_G2RIS15 0x80
12573 //==============================================================================
12576 //==============================================================================
12577 // COG2RSIM0 Bits
12579 extern __at(0x0717) __sfr COG2RSIM0;
12581 typedef union
12583 struct
12585 unsigned RSIM0 : 1;
12586 unsigned RSIM1 : 1;
12587 unsigned RSIM2 : 1;
12588 unsigned RSIM3 : 1;
12589 unsigned RSIM4 : 1;
12590 unsigned RSIM5 : 1;
12591 unsigned RSIM6 : 1;
12592 unsigned RSIM7 : 1;
12595 struct
12597 unsigned G2RSIM0 : 1;
12598 unsigned G2RSIM1 : 1;
12599 unsigned G2RSIM2 : 1;
12600 unsigned G2RSIM3 : 1;
12601 unsigned G2RSIM4 : 1;
12602 unsigned G2RSIM5 : 1;
12603 unsigned G2RSIM6 : 1;
12604 unsigned G2RSIM7 : 1;
12606 } __COG2RSIM0bits_t;
12608 extern __at(0x0717) volatile __COG2RSIM0bits_t COG2RSIM0bits;
12610 #define _COG2RSIM0_RSIM0 0x01
12611 #define _COG2RSIM0_G2RSIM0 0x01
12612 #define _COG2RSIM0_RSIM1 0x02
12613 #define _COG2RSIM0_G2RSIM1 0x02
12614 #define _COG2RSIM0_RSIM2 0x04
12615 #define _COG2RSIM0_G2RSIM2 0x04
12616 #define _COG2RSIM0_RSIM3 0x08
12617 #define _COG2RSIM0_G2RSIM3 0x08
12618 #define _COG2RSIM0_RSIM4 0x10
12619 #define _COG2RSIM0_G2RSIM4 0x10
12620 #define _COG2RSIM0_RSIM5 0x20
12621 #define _COG2RSIM0_G2RSIM5 0x20
12622 #define _COG2RSIM0_RSIM6 0x40
12623 #define _COG2RSIM0_G2RSIM6 0x40
12624 #define _COG2RSIM0_RSIM7 0x80
12625 #define _COG2RSIM0_G2RSIM7 0x80
12627 //==============================================================================
12630 //==============================================================================
12631 // COG2RSIM1 Bits
12633 extern __at(0x0718) __sfr COG2RSIM1;
12635 typedef union
12637 struct
12639 unsigned RSIM8 : 1;
12640 unsigned RSIM9 : 1;
12641 unsigned RSIM10 : 1;
12642 unsigned RSIM11 : 1;
12643 unsigned RSIM12 : 1;
12644 unsigned RSIM13 : 1;
12645 unsigned RSIM14 : 1;
12646 unsigned RSIM15 : 1;
12649 struct
12651 unsigned G2RSIM8 : 1;
12652 unsigned G2RSIM9 : 1;
12653 unsigned G2RSIM10 : 1;
12654 unsigned G2RSIM11 : 1;
12655 unsigned G2RSIM12 : 1;
12656 unsigned G2RSIM13 : 1;
12657 unsigned G2RSIM14 : 1;
12658 unsigned G2RSIM15 : 1;
12660 } __COG2RSIM1bits_t;
12662 extern __at(0x0718) volatile __COG2RSIM1bits_t COG2RSIM1bits;
12664 #define _COG2RSIM1_RSIM8 0x01
12665 #define _COG2RSIM1_G2RSIM8 0x01
12666 #define _COG2RSIM1_RSIM9 0x02
12667 #define _COG2RSIM1_G2RSIM9 0x02
12668 #define _COG2RSIM1_RSIM10 0x04
12669 #define _COG2RSIM1_G2RSIM10 0x04
12670 #define _COG2RSIM1_RSIM11 0x08
12671 #define _COG2RSIM1_G2RSIM11 0x08
12672 #define _COG2RSIM1_RSIM12 0x10
12673 #define _COG2RSIM1_G2RSIM12 0x10
12674 #define _COG2RSIM1_RSIM13 0x20
12675 #define _COG2RSIM1_G2RSIM13 0x20
12676 #define _COG2RSIM1_RSIM14 0x40
12677 #define _COG2RSIM1_G2RSIM14 0x40
12678 #define _COG2RSIM1_RSIM15 0x80
12679 #define _COG2RSIM1_G2RSIM15 0x80
12681 //==============================================================================
12684 //==============================================================================
12685 // COG2FIS0 Bits
12687 extern __at(0x0719) __sfr COG2FIS0;
12689 typedef union
12691 struct
12693 unsigned FIS0 : 1;
12694 unsigned FIS1 : 1;
12695 unsigned FIS2 : 1;
12696 unsigned FIS3 : 1;
12697 unsigned FIS4 : 1;
12698 unsigned FIS5 : 1;
12699 unsigned FIS6 : 1;
12700 unsigned FIS7 : 1;
12703 struct
12705 unsigned G2FIS0 : 1;
12706 unsigned G2FIS1 : 1;
12707 unsigned G2FIS2 : 1;
12708 unsigned G2FIS3 : 1;
12709 unsigned G2FIS4 : 1;
12710 unsigned G2FIS5 : 1;
12711 unsigned G2FIS6 : 1;
12712 unsigned G2FIS7 : 1;
12714 } __COG2FIS0bits_t;
12716 extern __at(0x0719) volatile __COG2FIS0bits_t COG2FIS0bits;
12718 #define _COG2FIS0_FIS0 0x01
12719 #define _COG2FIS0_G2FIS0 0x01
12720 #define _COG2FIS0_FIS1 0x02
12721 #define _COG2FIS0_G2FIS1 0x02
12722 #define _COG2FIS0_FIS2 0x04
12723 #define _COG2FIS0_G2FIS2 0x04
12724 #define _COG2FIS0_FIS3 0x08
12725 #define _COG2FIS0_G2FIS3 0x08
12726 #define _COG2FIS0_FIS4 0x10
12727 #define _COG2FIS0_G2FIS4 0x10
12728 #define _COG2FIS0_FIS5 0x20
12729 #define _COG2FIS0_G2FIS5 0x20
12730 #define _COG2FIS0_FIS6 0x40
12731 #define _COG2FIS0_G2FIS6 0x40
12732 #define _COG2FIS0_FIS7 0x80
12733 #define _COG2FIS0_G2FIS7 0x80
12735 //==============================================================================
12738 //==============================================================================
12739 // COG2FIS1 Bits
12741 extern __at(0x071A) __sfr COG2FIS1;
12743 typedef union
12745 struct
12747 unsigned FIS8 : 1;
12748 unsigned FIS9 : 1;
12749 unsigned FIS10 : 1;
12750 unsigned FIS11 : 1;
12751 unsigned FIS12 : 1;
12752 unsigned FIS13 : 1;
12753 unsigned FIS14 : 1;
12754 unsigned FIS15 : 1;
12757 struct
12759 unsigned G2FIS8 : 1;
12760 unsigned G2FIS9 : 1;
12761 unsigned G2FIS10 : 1;
12762 unsigned G2FIS11 : 1;
12763 unsigned G2FIS12 : 1;
12764 unsigned G2FIS13 : 1;
12765 unsigned G2FIS14 : 1;
12766 unsigned G2FIS15 : 1;
12768 } __COG2FIS1bits_t;
12770 extern __at(0x071A) volatile __COG2FIS1bits_t COG2FIS1bits;
12772 #define _COG2FIS1_FIS8 0x01
12773 #define _COG2FIS1_G2FIS8 0x01
12774 #define _COG2FIS1_FIS9 0x02
12775 #define _COG2FIS1_G2FIS9 0x02
12776 #define _COG2FIS1_FIS10 0x04
12777 #define _COG2FIS1_G2FIS10 0x04
12778 #define _COG2FIS1_FIS11 0x08
12779 #define _COG2FIS1_G2FIS11 0x08
12780 #define _COG2FIS1_FIS12 0x10
12781 #define _COG2FIS1_G2FIS12 0x10
12782 #define _COG2FIS1_FIS13 0x20
12783 #define _COG2FIS1_G2FIS13 0x20
12784 #define _COG2FIS1_FIS14 0x40
12785 #define _COG2FIS1_G2FIS14 0x40
12786 #define _COG2FIS1_FIS15 0x80
12787 #define _COG2FIS1_G2FIS15 0x80
12789 //==============================================================================
12792 //==============================================================================
12793 // COG2FSIM0 Bits
12795 extern __at(0x071B) __sfr COG2FSIM0;
12797 typedef union
12799 struct
12801 unsigned FSIM0 : 1;
12802 unsigned FSIM1 : 1;
12803 unsigned FSIM2 : 1;
12804 unsigned FSIM3 : 1;
12805 unsigned FSIM4 : 1;
12806 unsigned FSIM5 : 1;
12807 unsigned FSIM6 : 1;
12808 unsigned FSIM7 : 1;
12811 struct
12813 unsigned G2FSIM0 : 1;
12814 unsigned G2FSIM1 : 1;
12815 unsigned G2FSIM2 : 1;
12816 unsigned G2FSIM3 : 1;
12817 unsigned G2FSIM4 : 1;
12818 unsigned G2FSIM5 : 1;
12819 unsigned G2FSIM6 : 1;
12820 unsigned G2FSIM7 : 1;
12822 } __COG2FSIM0bits_t;
12824 extern __at(0x071B) volatile __COG2FSIM0bits_t COG2FSIM0bits;
12826 #define _COG2FSIM0_FSIM0 0x01
12827 #define _COG2FSIM0_G2FSIM0 0x01
12828 #define _COG2FSIM0_FSIM1 0x02
12829 #define _COG2FSIM0_G2FSIM1 0x02
12830 #define _COG2FSIM0_FSIM2 0x04
12831 #define _COG2FSIM0_G2FSIM2 0x04
12832 #define _COG2FSIM0_FSIM3 0x08
12833 #define _COG2FSIM0_G2FSIM3 0x08
12834 #define _COG2FSIM0_FSIM4 0x10
12835 #define _COG2FSIM0_G2FSIM4 0x10
12836 #define _COG2FSIM0_FSIM5 0x20
12837 #define _COG2FSIM0_G2FSIM5 0x20
12838 #define _COG2FSIM0_FSIM6 0x40
12839 #define _COG2FSIM0_G2FSIM6 0x40
12840 #define _COG2FSIM0_FSIM7 0x80
12841 #define _COG2FSIM0_G2FSIM7 0x80
12843 //==============================================================================
12846 //==============================================================================
12847 // COG2FSIM1 Bits
12849 extern __at(0x071C) __sfr COG2FSIM1;
12851 typedef union
12853 struct
12855 unsigned FSIM8 : 1;
12856 unsigned FSIM9 : 1;
12857 unsigned FSIM10 : 1;
12858 unsigned FSIM11 : 1;
12859 unsigned FSIM12 : 1;
12860 unsigned FSIM13 : 1;
12861 unsigned FSIM14 : 1;
12862 unsigned FSIM15 : 1;
12865 struct
12867 unsigned G2FSIM8 : 1;
12868 unsigned G2FSIM9 : 1;
12869 unsigned G2FSIM10 : 1;
12870 unsigned G2FSIM11 : 1;
12871 unsigned G2FSIM12 : 1;
12872 unsigned G2FSIM13 : 1;
12873 unsigned G2FSIM14 : 1;
12874 unsigned G2FSIM15 : 1;
12876 } __COG2FSIM1bits_t;
12878 extern __at(0x071C) volatile __COG2FSIM1bits_t COG2FSIM1bits;
12880 #define _COG2FSIM1_FSIM8 0x01
12881 #define _COG2FSIM1_G2FSIM8 0x01
12882 #define _COG2FSIM1_FSIM9 0x02
12883 #define _COG2FSIM1_G2FSIM9 0x02
12884 #define _COG2FSIM1_FSIM10 0x04
12885 #define _COG2FSIM1_G2FSIM10 0x04
12886 #define _COG2FSIM1_FSIM11 0x08
12887 #define _COG2FSIM1_G2FSIM11 0x08
12888 #define _COG2FSIM1_FSIM12 0x10
12889 #define _COG2FSIM1_G2FSIM12 0x10
12890 #define _COG2FSIM1_FSIM13 0x20
12891 #define _COG2FSIM1_G2FSIM13 0x20
12892 #define _COG2FSIM1_FSIM14 0x40
12893 #define _COG2FSIM1_G2FSIM14 0x40
12894 #define _COG2FSIM1_FSIM15 0x80
12895 #define _COG2FSIM1_G2FSIM15 0x80
12897 //==============================================================================
12900 //==============================================================================
12901 // COG2ASD0 Bits
12903 extern __at(0x071D) __sfr COG2ASD0;
12905 typedef union
12907 struct
12909 unsigned : 1;
12910 unsigned : 1;
12911 unsigned ASDAC0 : 1;
12912 unsigned ASDAC1 : 1;
12913 unsigned ASDBD0 : 1;
12914 unsigned ASDBD1 : 1;
12915 unsigned ASREN : 1;
12916 unsigned ASE : 1;
12919 struct
12921 unsigned : 1;
12922 unsigned : 1;
12923 unsigned G2ASDAC0 : 1;
12924 unsigned G2ASDAC1 : 1;
12925 unsigned G2ASDBD0 : 1;
12926 unsigned G2ASDBD1 : 1;
12927 unsigned ARSEN : 1;
12928 unsigned G2ASE : 1;
12931 struct
12933 unsigned : 1;
12934 unsigned : 1;
12935 unsigned : 1;
12936 unsigned : 1;
12937 unsigned : 1;
12938 unsigned : 1;
12939 unsigned G2ARSEN : 1;
12940 unsigned : 1;
12943 struct
12945 unsigned : 1;
12946 unsigned : 1;
12947 unsigned : 1;
12948 unsigned : 1;
12949 unsigned : 1;
12950 unsigned : 1;
12951 unsigned G2ASREN : 1;
12952 unsigned : 1;
12955 struct
12957 unsigned : 2;
12958 unsigned G2ASDAC : 2;
12959 unsigned : 4;
12962 struct
12964 unsigned : 2;
12965 unsigned ASDAC : 2;
12966 unsigned : 4;
12969 struct
12971 unsigned : 4;
12972 unsigned G2ASDBD : 2;
12973 unsigned : 2;
12976 struct
12978 unsigned : 4;
12979 unsigned ASDBD : 2;
12980 unsigned : 2;
12982 } __COG2ASD0bits_t;
12984 extern __at(0x071D) volatile __COG2ASD0bits_t COG2ASD0bits;
12986 #define _COG2ASD0_ASDAC0 0x04
12987 #define _COG2ASD0_G2ASDAC0 0x04
12988 #define _COG2ASD0_ASDAC1 0x08
12989 #define _COG2ASD0_G2ASDAC1 0x08
12990 #define _COG2ASD0_ASDBD0 0x10
12991 #define _COG2ASD0_G2ASDBD0 0x10
12992 #define _COG2ASD0_ASDBD1 0x20
12993 #define _COG2ASD0_G2ASDBD1 0x20
12994 #define _COG2ASD0_ASREN 0x40
12995 #define _COG2ASD0_ARSEN 0x40
12996 #define _COG2ASD0_G2ARSEN 0x40
12997 #define _COG2ASD0_G2ASREN 0x40
12998 #define _COG2ASD0_ASE 0x80
12999 #define _COG2ASD0_G2ASE 0x80
13001 //==============================================================================
13004 //==============================================================================
13005 // COG2ASD1 Bits
13007 extern __at(0x071E) __sfr COG2ASD1;
13009 typedef union
13011 struct
13013 unsigned AS0E : 1;
13014 unsigned AS1E : 1;
13015 unsigned AS2E : 1;
13016 unsigned AS3E : 1;
13017 unsigned AS4E : 1;
13018 unsigned AS5E : 1;
13019 unsigned AS6E : 1;
13020 unsigned AS7E : 1;
13023 struct
13025 unsigned G2AS0E : 1;
13026 unsigned G2AS1E : 1;
13027 unsigned G2AS2E : 1;
13028 unsigned G2AS3E : 1;
13029 unsigned G2AS4E : 1;
13030 unsigned G2AS5E : 1;
13031 unsigned G2AS6E : 1;
13032 unsigned G2AS7E : 1;
13034 } __COG2ASD1bits_t;
13036 extern __at(0x071E) volatile __COG2ASD1bits_t COG2ASD1bits;
13038 #define _COG2ASD1_AS0E 0x01
13039 #define _COG2ASD1_G2AS0E 0x01
13040 #define _COG2ASD1_AS1E 0x02
13041 #define _COG2ASD1_G2AS1E 0x02
13042 #define _COG2ASD1_AS2E 0x04
13043 #define _COG2ASD1_G2AS2E 0x04
13044 #define _COG2ASD1_AS3E 0x08
13045 #define _COG2ASD1_G2AS3E 0x08
13046 #define _COG2ASD1_AS4E 0x10
13047 #define _COG2ASD1_G2AS4E 0x10
13048 #define _COG2ASD1_AS5E 0x20
13049 #define _COG2ASD1_G2AS5E 0x20
13050 #define _COG2ASD1_AS6E 0x40
13051 #define _COG2ASD1_G2AS6E 0x40
13052 #define _COG2ASD1_AS7E 0x80
13053 #define _COG2ASD1_G2AS7E 0x80
13055 //==============================================================================
13058 //==============================================================================
13059 // COG2STR Bits
13061 extern __at(0x071F) __sfr COG2STR;
13063 typedef union
13065 struct
13067 unsigned STRA : 1;
13068 unsigned STRB : 1;
13069 unsigned STRC : 1;
13070 unsigned STRD : 1;
13071 unsigned SDATA : 1;
13072 unsigned SDATB : 1;
13073 unsigned SDATC : 1;
13074 unsigned SDATD : 1;
13077 struct
13079 unsigned G2STRA : 1;
13080 unsigned G2STRB : 1;
13081 unsigned G2STRC : 1;
13082 unsigned G2STRD : 1;
13083 unsigned G2SDATA : 1;
13084 unsigned G2SDATB : 1;
13085 unsigned G2SDATC : 1;
13086 unsigned G2SDATD : 1;
13088 } __COG2STRbits_t;
13090 extern __at(0x071F) volatile __COG2STRbits_t COG2STRbits;
13092 #define _COG2STR_STRA 0x01
13093 #define _COG2STR_G2STRA 0x01
13094 #define _COG2STR_STRB 0x02
13095 #define _COG2STR_G2STRB 0x02
13096 #define _COG2STR_STRC 0x04
13097 #define _COG2STR_G2STRC 0x04
13098 #define _COG2STR_STRD 0x08
13099 #define _COG2STR_G2STRD 0x08
13100 #define _COG2STR_SDATA 0x10
13101 #define _COG2STR_G2SDATA 0x10
13102 #define _COG2STR_SDATB 0x20
13103 #define _COG2STR_G2SDATB 0x20
13104 #define _COG2STR_SDATC 0x40
13105 #define _COG2STR_G2SDATC 0x40
13106 #define _COG2STR_SDATD 0x80
13107 #define _COG2STR_G2SDATD 0x80
13109 //==============================================================================
13112 //==============================================================================
13113 // PRG1RTSS Bits
13115 extern __at(0x078E) __sfr PRG1RTSS;
13117 typedef union
13119 struct
13121 unsigned RTSS0 : 1;
13122 unsigned RTSS1 : 1;
13123 unsigned RTSS2 : 1;
13124 unsigned RTSS3 : 1;
13125 unsigned : 1;
13126 unsigned : 1;
13127 unsigned : 1;
13128 unsigned : 1;
13131 struct
13133 unsigned RG1RTSS0 : 1;
13134 unsigned RG1RTSS1 : 1;
13135 unsigned RG1RTSS2 : 1;
13136 unsigned RG1RTSS3 : 1;
13137 unsigned : 1;
13138 unsigned : 1;
13139 unsigned : 1;
13140 unsigned : 1;
13143 struct
13145 unsigned RTSS : 4;
13146 unsigned : 4;
13149 struct
13151 unsigned RG1RTSS : 4;
13152 unsigned : 4;
13154 } __PRG1RTSSbits_t;
13156 extern __at(0x078E) volatile __PRG1RTSSbits_t PRG1RTSSbits;
13158 #define _RTSS0 0x01
13159 #define _RG1RTSS0 0x01
13160 #define _RTSS1 0x02
13161 #define _RG1RTSS1 0x02
13162 #define _RTSS2 0x04
13163 #define _RG1RTSS2 0x04
13164 #define _RTSS3 0x08
13165 #define _RG1RTSS3 0x08
13167 //==============================================================================
13170 //==============================================================================
13171 // PRG1FTSS Bits
13173 extern __at(0x078F) __sfr PRG1FTSS;
13175 typedef union
13177 struct
13179 unsigned FTSS0 : 1;
13180 unsigned FTSS1 : 1;
13181 unsigned FTSS2 : 1;
13182 unsigned FTSS3 : 1;
13183 unsigned : 1;
13184 unsigned : 1;
13185 unsigned : 1;
13186 unsigned : 1;
13189 struct
13191 unsigned RG1FTSS0 : 1;
13192 unsigned RG1FTSS1 : 1;
13193 unsigned RG1FTSS2 : 1;
13194 unsigned RG1FTSS3 : 1;
13195 unsigned : 1;
13196 unsigned : 1;
13197 unsigned : 1;
13198 unsigned : 1;
13201 struct
13203 unsigned FTSS : 4;
13204 unsigned : 4;
13207 struct
13209 unsigned RG1FTSS : 4;
13210 unsigned : 4;
13212 } __PRG1FTSSbits_t;
13214 extern __at(0x078F) volatile __PRG1FTSSbits_t PRG1FTSSbits;
13216 #define _FTSS0 0x01
13217 #define _RG1FTSS0 0x01
13218 #define _FTSS1 0x02
13219 #define _RG1FTSS1 0x02
13220 #define _FTSS2 0x04
13221 #define _RG1FTSS2 0x04
13222 #define _FTSS3 0x08
13223 #define _RG1FTSS3 0x08
13225 //==============================================================================
13228 //==============================================================================
13229 // PRG1INS Bits
13231 extern __at(0x0790) __sfr PRG1INS;
13233 typedef union
13235 struct
13237 unsigned INS0 : 1;
13238 unsigned INS1 : 1;
13239 unsigned INS2 : 1;
13240 unsigned INS3 : 1;
13241 unsigned : 1;
13242 unsigned : 1;
13243 unsigned : 1;
13244 unsigned : 1;
13247 struct
13249 unsigned RG1INS0 : 1;
13250 unsigned RG1INS1 : 1;
13251 unsigned RG1INS2 : 1;
13252 unsigned RG1INS3 : 1;
13253 unsigned : 1;
13254 unsigned : 1;
13255 unsigned : 1;
13256 unsigned : 1;
13259 struct
13261 unsigned INS : 4;
13262 unsigned : 4;
13265 struct
13267 unsigned RG1INS : 4;
13268 unsigned : 4;
13270 } __PRG1INSbits_t;
13272 extern __at(0x0790) volatile __PRG1INSbits_t PRG1INSbits;
13274 #define _INS0 0x01
13275 #define _RG1INS0 0x01
13276 #define _INS1 0x02
13277 #define _RG1INS1 0x02
13278 #define _INS2 0x04
13279 #define _RG1INS2 0x04
13280 #define _INS3 0x08
13281 #define _RG1INS3 0x08
13283 //==============================================================================
13286 //==============================================================================
13287 // PRG1CON0 Bits
13289 extern __at(0x0791) __sfr PRG1CON0;
13291 typedef union
13293 struct
13295 unsigned GO : 1;
13296 unsigned OS : 1;
13297 unsigned MODE0 : 1;
13298 unsigned MODE1 : 1;
13299 unsigned REDG : 1;
13300 unsigned FEDG : 1;
13301 unsigned : 1;
13302 unsigned EN : 1;
13305 struct
13307 unsigned RG1GO : 1;
13308 unsigned RG1OS : 1;
13309 unsigned RG1MODE0 : 1;
13310 unsigned RG1MODE1 : 1;
13311 unsigned RG1REDG : 1;
13312 unsigned RG1FEDG : 1;
13313 unsigned : 1;
13314 unsigned RG1EN : 1;
13317 struct
13319 unsigned : 2;
13320 unsigned RG1MODE : 2;
13321 unsigned : 4;
13324 struct
13326 unsigned : 2;
13327 unsigned MODE : 2;
13328 unsigned : 4;
13330 } __PRG1CON0bits_t;
13332 extern __at(0x0791) volatile __PRG1CON0bits_t PRG1CON0bits;
13334 #define _PRG1CON0_GO 0x01
13335 #define _PRG1CON0_RG1GO 0x01
13336 #define _PRG1CON0_OS 0x02
13337 #define _PRG1CON0_RG1OS 0x02
13338 #define _PRG1CON0_MODE0 0x04
13339 #define _PRG1CON0_RG1MODE0 0x04
13340 #define _PRG1CON0_MODE1 0x08
13341 #define _PRG1CON0_RG1MODE1 0x08
13342 #define _PRG1CON0_REDG 0x10
13343 #define _PRG1CON0_RG1REDG 0x10
13344 #define _PRG1CON0_FEDG 0x20
13345 #define _PRG1CON0_RG1FEDG 0x20
13346 #define _PRG1CON0_EN 0x80
13347 #define _PRG1CON0_RG1EN 0x80
13349 //==============================================================================
13352 //==============================================================================
13353 // PRG1CON1 Bits
13355 extern __at(0x0792) __sfr PRG1CON1;
13357 typedef union
13359 struct
13361 unsigned RPOL : 1;
13362 unsigned FPOL : 1;
13363 unsigned RDY : 1;
13364 unsigned : 1;
13365 unsigned : 1;
13366 unsigned : 1;
13367 unsigned : 1;
13368 unsigned : 1;
13371 struct
13373 unsigned RG1RPOL : 1;
13374 unsigned RG1FPOL : 1;
13375 unsigned RG1RDY : 1;
13376 unsigned : 1;
13377 unsigned : 1;
13378 unsigned : 1;
13379 unsigned : 1;
13380 unsigned : 1;
13382 } __PRG1CON1bits_t;
13384 extern __at(0x0792) volatile __PRG1CON1bits_t PRG1CON1bits;
13386 #define _RPOL 0x01
13387 #define _RG1RPOL 0x01
13388 #define _FPOL 0x02
13389 #define _RG1FPOL 0x02
13390 #define _RDY 0x04
13391 #define _RG1RDY 0x04
13393 //==============================================================================
13396 //==============================================================================
13397 // PRG1CON2 Bits
13399 extern __at(0x0793) __sfr PRG1CON2;
13401 typedef union
13403 struct
13405 unsigned ISET0 : 1;
13406 unsigned ISET1 : 1;
13407 unsigned ISET2 : 1;
13408 unsigned ISET3 : 1;
13409 unsigned ISET4 : 1;
13410 unsigned : 1;
13411 unsigned : 1;
13412 unsigned : 1;
13415 struct
13417 unsigned RG1ISET0 : 1;
13418 unsigned RG1ISET1 : 1;
13419 unsigned RG1ISET2 : 1;
13420 unsigned RG1ISET3 : 1;
13421 unsigned RG1ISET4 : 1;
13422 unsigned : 1;
13423 unsigned : 1;
13424 unsigned : 1;
13427 struct
13429 unsigned RG1ISET : 5;
13430 unsigned : 3;
13433 struct
13435 unsigned ISET : 5;
13436 unsigned : 3;
13438 } __PRG1CON2bits_t;
13440 extern __at(0x0793) volatile __PRG1CON2bits_t PRG1CON2bits;
13442 #define _ISET0 0x01
13443 #define _RG1ISET0 0x01
13444 #define _ISET1 0x02
13445 #define _RG1ISET1 0x02
13446 #define _ISET2 0x04
13447 #define _RG1ISET2 0x04
13448 #define _ISET3 0x08
13449 #define _RG1ISET3 0x08
13450 #define _ISET4 0x10
13451 #define _RG1ISET4 0x10
13453 //==============================================================================
13456 //==============================================================================
13457 // PRG2RTSS Bits
13459 extern __at(0x0794) __sfr PRG2RTSS;
13461 typedef union
13463 struct
13465 unsigned RTSS0 : 1;
13466 unsigned RTSS1 : 1;
13467 unsigned RTSS2 : 1;
13468 unsigned RTSS3 : 1;
13469 unsigned : 1;
13470 unsigned : 1;
13471 unsigned : 1;
13472 unsigned : 1;
13475 struct
13477 unsigned RG2RTSS0 : 1;
13478 unsigned RG2RTSS1 : 1;
13479 unsigned RG2RTSS2 : 1;
13480 unsigned RG2RTSS3 : 1;
13481 unsigned : 1;
13482 unsigned : 1;
13483 unsigned : 1;
13484 unsigned : 1;
13487 struct
13489 unsigned RG2RTSS : 4;
13490 unsigned : 4;
13493 struct
13495 unsigned RTSS : 4;
13496 unsigned : 4;
13498 } __PRG2RTSSbits_t;
13500 extern __at(0x0794) volatile __PRG2RTSSbits_t PRG2RTSSbits;
13502 #define _PRG2RTSS_RTSS0 0x01
13503 #define _PRG2RTSS_RG2RTSS0 0x01
13504 #define _PRG2RTSS_RTSS1 0x02
13505 #define _PRG2RTSS_RG2RTSS1 0x02
13506 #define _PRG2RTSS_RTSS2 0x04
13507 #define _PRG2RTSS_RG2RTSS2 0x04
13508 #define _PRG2RTSS_RTSS3 0x08
13509 #define _PRG2RTSS_RG2RTSS3 0x08
13511 //==============================================================================
13514 //==============================================================================
13515 // PRG2FTSS Bits
13517 extern __at(0x0795) __sfr PRG2FTSS;
13519 typedef union
13521 struct
13523 unsigned FTSS0 : 1;
13524 unsigned FTSS1 : 1;
13525 unsigned FTSS2 : 1;
13526 unsigned FTSS3 : 1;
13527 unsigned : 1;
13528 unsigned : 1;
13529 unsigned : 1;
13530 unsigned : 1;
13533 struct
13535 unsigned RG2FTSS0 : 1;
13536 unsigned RG2FTSS1 : 1;
13537 unsigned RG2FTSS2 : 1;
13538 unsigned RG2FTSS3 : 1;
13539 unsigned : 1;
13540 unsigned : 1;
13541 unsigned : 1;
13542 unsigned : 1;
13545 struct
13547 unsigned FTSS : 4;
13548 unsigned : 4;
13551 struct
13553 unsigned RG2FTSS : 4;
13554 unsigned : 4;
13556 } __PRG2FTSSbits_t;
13558 extern __at(0x0795) volatile __PRG2FTSSbits_t PRG2FTSSbits;
13560 #define _PRG2FTSS_FTSS0 0x01
13561 #define _PRG2FTSS_RG2FTSS0 0x01
13562 #define _PRG2FTSS_FTSS1 0x02
13563 #define _PRG2FTSS_RG2FTSS1 0x02
13564 #define _PRG2FTSS_FTSS2 0x04
13565 #define _PRG2FTSS_RG2FTSS2 0x04
13566 #define _PRG2FTSS_FTSS3 0x08
13567 #define _PRG2FTSS_RG2FTSS3 0x08
13569 //==============================================================================
13572 //==============================================================================
13573 // PRG2INS Bits
13575 extern __at(0x0796) __sfr PRG2INS;
13577 typedef union
13579 struct
13581 unsigned INS0 : 1;
13582 unsigned INS1 : 1;
13583 unsigned INS2 : 1;
13584 unsigned INS3 : 1;
13585 unsigned : 1;
13586 unsigned : 1;
13587 unsigned : 1;
13588 unsigned : 1;
13591 struct
13593 unsigned RG2INS0 : 1;
13594 unsigned RG2INS1 : 1;
13595 unsigned RG2INS2 : 1;
13596 unsigned RG2INS3 : 1;
13597 unsigned : 1;
13598 unsigned : 1;
13599 unsigned : 1;
13600 unsigned : 1;
13603 struct
13605 unsigned RG2INS : 4;
13606 unsigned : 4;
13609 struct
13611 unsigned INS : 4;
13612 unsigned : 4;
13614 } __PRG2INSbits_t;
13616 extern __at(0x0796) volatile __PRG2INSbits_t PRG2INSbits;
13618 #define _PRG2INS_INS0 0x01
13619 #define _PRG2INS_RG2INS0 0x01
13620 #define _PRG2INS_INS1 0x02
13621 #define _PRG2INS_RG2INS1 0x02
13622 #define _PRG2INS_INS2 0x04
13623 #define _PRG2INS_RG2INS2 0x04
13624 #define _PRG2INS_INS3 0x08
13625 #define _PRG2INS_RG2INS3 0x08
13627 //==============================================================================
13630 //==============================================================================
13631 // PRG2CON0 Bits
13633 extern __at(0x0797) __sfr PRG2CON0;
13635 typedef union
13637 struct
13639 unsigned GO : 1;
13640 unsigned OS : 1;
13641 unsigned MODE0 : 1;
13642 unsigned MODE1 : 1;
13643 unsigned REDG : 1;
13644 unsigned FEDG : 1;
13645 unsigned : 1;
13646 unsigned EN : 1;
13649 struct
13651 unsigned RG2GO : 1;
13652 unsigned RG2OS : 1;
13653 unsigned RG2MODE0 : 1;
13654 unsigned RG2MODE1 : 1;
13655 unsigned RG2REDG : 1;
13656 unsigned RG2FEDG : 1;
13657 unsigned : 1;
13658 unsigned RG2EN : 1;
13661 struct
13663 unsigned : 2;
13664 unsigned RG2MODE : 2;
13665 unsigned : 4;
13668 struct
13670 unsigned : 2;
13671 unsigned MODE : 2;
13672 unsigned : 4;
13674 } __PRG2CON0bits_t;
13676 extern __at(0x0797) volatile __PRG2CON0bits_t PRG2CON0bits;
13678 #define _PRG2CON0_GO 0x01
13679 #define _PRG2CON0_RG2GO 0x01
13680 #define _PRG2CON0_OS 0x02
13681 #define _PRG2CON0_RG2OS 0x02
13682 #define _PRG2CON0_MODE0 0x04
13683 #define _PRG2CON0_RG2MODE0 0x04
13684 #define _PRG2CON0_MODE1 0x08
13685 #define _PRG2CON0_RG2MODE1 0x08
13686 #define _PRG2CON0_REDG 0x10
13687 #define _PRG2CON0_RG2REDG 0x10
13688 #define _PRG2CON0_FEDG 0x20
13689 #define _PRG2CON0_RG2FEDG 0x20
13690 #define _PRG2CON0_EN 0x80
13691 #define _PRG2CON0_RG2EN 0x80
13693 //==============================================================================
13696 //==============================================================================
13697 // PRG2CON1 Bits
13699 extern __at(0x0798) __sfr PRG2CON1;
13701 typedef union
13703 struct
13705 unsigned RPOL : 1;
13706 unsigned FPOL : 1;
13707 unsigned RDY : 1;
13708 unsigned : 1;
13709 unsigned : 1;
13710 unsigned : 1;
13711 unsigned : 1;
13712 unsigned : 1;
13715 struct
13717 unsigned RG2RPOL : 1;
13718 unsigned RG2FPOL : 1;
13719 unsigned RG2RDY : 1;
13720 unsigned : 1;
13721 unsigned : 1;
13722 unsigned : 1;
13723 unsigned : 1;
13724 unsigned : 1;
13726 } __PRG2CON1bits_t;
13728 extern __at(0x0798) volatile __PRG2CON1bits_t PRG2CON1bits;
13730 #define _PRG2CON1_RPOL 0x01
13731 #define _PRG2CON1_RG2RPOL 0x01
13732 #define _PRG2CON1_FPOL 0x02
13733 #define _PRG2CON1_RG2FPOL 0x02
13734 #define _PRG2CON1_RDY 0x04
13735 #define _PRG2CON1_RG2RDY 0x04
13737 //==============================================================================
13740 //==============================================================================
13741 // PRG2CON2 Bits
13743 extern __at(0x0799) __sfr PRG2CON2;
13745 typedef union
13747 struct
13749 unsigned ISET0 : 1;
13750 unsigned ISET1 : 1;
13751 unsigned ISET2 : 1;
13752 unsigned ISET3 : 1;
13753 unsigned ISET4 : 1;
13754 unsigned : 1;
13755 unsigned : 1;
13756 unsigned : 1;
13759 struct
13761 unsigned RG2ISET0 : 1;
13762 unsigned RG2ISET1 : 1;
13763 unsigned RG2ISET2 : 1;
13764 unsigned RG2ISET3 : 1;
13765 unsigned RG2ISET4 : 1;
13766 unsigned : 1;
13767 unsigned : 1;
13768 unsigned : 1;
13771 struct
13773 unsigned ISET : 5;
13774 unsigned : 3;
13777 struct
13779 unsigned RG2ISET : 5;
13780 unsigned : 3;
13782 } __PRG2CON2bits_t;
13784 extern __at(0x0799) volatile __PRG2CON2bits_t PRG2CON2bits;
13786 #define _PRG2CON2_ISET0 0x01
13787 #define _PRG2CON2_RG2ISET0 0x01
13788 #define _PRG2CON2_ISET1 0x02
13789 #define _PRG2CON2_RG2ISET1 0x02
13790 #define _PRG2CON2_ISET2 0x04
13791 #define _PRG2CON2_RG2ISET2 0x04
13792 #define _PRG2CON2_ISET3 0x08
13793 #define _PRG2CON2_RG2ISET3 0x08
13794 #define _PRG2CON2_ISET4 0x10
13795 #define _PRG2CON2_RG2ISET4 0x10
13797 //==============================================================================
13800 //==============================================================================
13801 // PRG3RTSS Bits
13803 extern __at(0x079A) __sfr PRG3RTSS;
13805 typedef union
13807 struct
13809 unsigned RTSS0 : 1;
13810 unsigned RTSS1 : 1;
13811 unsigned RTSS2 : 1;
13812 unsigned RTSS3 : 1;
13813 unsigned : 1;
13814 unsigned : 1;
13815 unsigned : 1;
13816 unsigned : 1;
13819 struct
13821 unsigned RG3RTSS0 : 1;
13822 unsigned RG3RTSS1 : 1;
13823 unsigned RG3RTSS2 : 1;
13824 unsigned RG3RTSS3 : 1;
13825 unsigned : 1;
13826 unsigned : 1;
13827 unsigned : 1;
13828 unsigned : 1;
13831 struct
13833 unsigned RG3RTSS : 4;
13834 unsigned : 4;
13837 struct
13839 unsigned RTSS : 4;
13840 unsigned : 4;
13842 } __PRG3RTSSbits_t;
13844 extern __at(0x079A) volatile __PRG3RTSSbits_t PRG3RTSSbits;
13846 #define _PRG3RTSS_RTSS0 0x01
13847 #define _PRG3RTSS_RG3RTSS0 0x01
13848 #define _PRG3RTSS_RTSS1 0x02
13849 #define _PRG3RTSS_RG3RTSS1 0x02
13850 #define _PRG3RTSS_RTSS2 0x04
13851 #define _PRG3RTSS_RG3RTSS2 0x04
13852 #define _PRG3RTSS_RTSS3 0x08
13853 #define _PRG3RTSS_RG3RTSS3 0x08
13855 //==============================================================================
13858 //==============================================================================
13859 // PRG3FTSS Bits
13861 extern __at(0x079B) __sfr PRG3FTSS;
13863 typedef union
13865 struct
13867 unsigned FTSS0 : 1;
13868 unsigned FTSS1 : 1;
13869 unsigned FTSS2 : 1;
13870 unsigned FTSS3 : 1;
13871 unsigned : 1;
13872 unsigned : 1;
13873 unsigned : 1;
13874 unsigned : 1;
13877 struct
13879 unsigned RG3FTSS0 : 1;
13880 unsigned RG3FTSS1 : 1;
13881 unsigned RG3FTSS2 : 1;
13882 unsigned RG3FTSS3 : 1;
13883 unsigned : 1;
13884 unsigned : 1;
13885 unsigned : 1;
13886 unsigned : 1;
13889 struct
13891 unsigned RG3FTSS : 4;
13892 unsigned : 4;
13895 struct
13897 unsigned FTSS : 4;
13898 unsigned : 4;
13900 } __PRG3FTSSbits_t;
13902 extern __at(0x079B) volatile __PRG3FTSSbits_t PRG3FTSSbits;
13904 #define _PRG3FTSS_FTSS0 0x01
13905 #define _PRG3FTSS_RG3FTSS0 0x01
13906 #define _PRG3FTSS_FTSS1 0x02
13907 #define _PRG3FTSS_RG3FTSS1 0x02
13908 #define _PRG3FTSS_FTSS2 0x04
13909 #define _PRG3FTSS_RG3FTSS2 0x04
13910 #define _PRG3FTSS_FTSS3 0x08
13911 #define _PRG3FTSS_RG3FTSS3 0x08
13913 //==============================================================================
13916 //==============================================================================
13917 // PRG3INS Bits
13919 extern __at(0x079C) __sfr PRG3INS;
13921 typedef union
13923 struct
13925 unsigned INS0 : 1;
13926 unsigned INS1 : 1;
13927 unsigned INS2 : 1;
13928 unsigned INS3 : 1;
13929 unsigned : 1;
13930 unsigned : 1;
13931 unsigned : 1;
13932 unsigned : 1;
13935 struct
13937 unsigned RG3INS0 : 1;
13938 unsigned RG3INS1 : 1;
13939 unsigned RG3INS2 : 1;
13940 unsigned RG3INS3 : 1;
13941 unsigned : 1;
13942 unsigned : 1;
13943 unsigned : 1;
13944 unsigned : 1;
13947 struct
13949 unsigned RG3INS : 4;
13950 unsigned : 4;
13953 struct
13955 unsigned INS : 4;
13956 unsigned : 4;
13958 } __PRG3INSbits_t;
13960 extern __at(0x079C) volatile __PRG3INSbits_t PRG3INSbits;
13962 #define _PRG3INS_INS0 0x01
13963 #define _PRG3INS_RG3INS0 0x01
13964 #define _PRG3INS_INS1 0x02
13965 #define _PRG3INS_RG3INS1 0x02
13966 #define _PRG3INS_INS2 0x04
13967 #define _PRG3INS_RG3INS2 0x04
13968 #define _PRG3INS_INS3 0x08
13969 #define _PRG3INS_RG3INS3 0x08
13971 //==============================================================================
13974 //==============================================================================
13975 // PRG3CON0 Bits
13977 extern __at(0x079D) __sfr PRG3CON0;
13979 typedef union
13981 struct
13983 unsigned GO : 1;
13984 unsigned OS : 1;
13985 unsigned MODE0 : 1;
13986 unsigned MODE1 : 1;
13987 unsigned REDG : 1;
13988 unsigned FEDG : 1;
13989 unsigned : 1;
13990 unsigned EN : 1;
13993 struct
13995 unsigned RG3GO : 1;
13996 unsigned RG3OS : 1;
13997 unsigned RG3MODE0 : 1;
13998 unsigned RG3MODE1 : 1;
13999 unsigned RG3REDG : 1;
14000 unsigned RG3FEDG : 1;
14001 unsigned : 1;
14002 unsigned RG3EN : 1;
14005 struct
14007 unsigned : 2;
14008 unsigned RG3MODE : 2;
14009 unsigned : 4;
14012 struct
14014 unsigned : 2;
14015 unsigned MODE : 2;
14016 unsigned : 4;
14018 } __PRG3CON0bits_t;
14020 extern __at(0x079D) volatile __PRG3CON0bits_t PRG3CON0bits;
14022 #define _PRG3CON0_GO 0x01
14023 #define _PRG3CON0_RG3GO 0x01
14024 #define _PRG3CON0_OS 0x02
14025 #define _PRG3CON0_RG3OS 0x02
14026 #define _PRG3CON0_MODE0 0x04
14027 #define _PRG3CON0_RG3MODE0 0x04
14028 #define _PRG3CON0_MODE1 0x08
14029 #define _PRG3CON0_RG3MODE1 0x08
14030 #define _PRG3CON0_REDG 0x10
14031 #define _PRG3CON0_RG3REDG 0x10
14032 #define _PRG3CON0_FEDG 0x20
14033 #define _PRG3CON0_RG3FEDG 0x20
14034 #define _PRG3CON0_EN 0x80
14035 #define _PRG3CON0_RG3EN 0x80
14037 //==============================================================================
14040 //==============================================================================
14041 // PRG3CON1 Bits
14043 extern __at(0x079E) __sfr PRG3CON1;
14045 typedef union
14047 struct
14049 unsigned RPOL : 1;
14050 unsigned FPOL : 1;
14051 unsigned RDY : 1;
14052 unsigned : 1;
14053 unsigned : 1;
14054 unsigned : 1;
14055 unsigned : 1;
14056 unsigned : 1;
14059 struct
14061 unsigned RG3RPOL : 1;
14062 unsigned RG3FPOL : 1;
14063 unsigned RG3RDY : 1;
14064 unsigned : 1;
14065 unsigned : 1;
14066 unsigned : 1;
14067 unsigned : 1;
14068 unsigned : 1;
14070 } __PRG3CON1bits_t;
14072 extern __at(0x079E) volatile __PRG3CON1bits_t PRG3CON1bits;
14074 #define _PRG3CON1_RPOL 0x01
14075 #define _PRG3CON1_RG3RPOL 0x01
14076 #define _PRG3CON1_FPOL 0x02
14077 #define _PRG3CON1_RG3FPOL 0x02
14078 #define _PRG3CON1_RDY 0x04
14079 #define _PRG3CON1_RG3RDY 0x04
14081 //==============================================================================
14084 //==============================================================================
14085 // PRG3CON2 Bits
14087 extern __at(0x079F) __sfr PRG3CON2;
14089 typedef union
14091 struct
14093 unsigned ISET0 : 1;
14094 unsigned ISET1 : 1;
14095 unsigned ISET2 : 1;
14096 unsigned ISET3 : 1;
14097 unsigned ISET4 : 1;
14098 unsigned : 1;
14099 unsigned : 1;
14100 unsigned : 1;
14103 struct
14105 unsigned RG3ISET0 : 1;
14106 unsigned RG3ISET1 : 1;
14107 unsigned RG3ISET2 : 1;
14108 unsigned RG3ISET3 : 1;
14109 unsigned RG3ISET4 : 1;
14110 unsigned : 1;
14111 unsigned : 1;
14112 unsigned : 1;
14115 struct
14117 unsigned RG3ISET : 5;
14118 unsigned : 3;
14121 struct
14123 unsigned ISET : 5;
14124 unsigned : 3;
14126 } __PRG3CON2bits_t;
14128 extern __at(0x079F) volatile __PRG3CON2bits_t PRG3CON2bits;
14130 #define _PRG3CON2_ISET0 0x01
14131 #define _PRG3CON2_RG3ISET0 0x01
14132 #define _PRG3CON2_ISET1 0x02
14133 #define _PRG3CON2_RG3ISET1 0x02
14134 #define _PRG3CON2_ISET2 0x04
14135 #define _PRG3CON2_RG3ISET2 0x04
14136 #define _PRG3CON2_ISET3 0x08
14137 #define _PRG3CON2_RG3ISET3 0x08
14138 #define _PRG3CON2_ISET4 0x10
14139 #define _PRG3CON2_RG3ISET4 0x10
14141 //==============================================================================
14144 //==============================================================================
14145 // COG3PHR Bits
14147 extern __at(0x080D) __sfr COG3PHR;
14149 typedef union
14151 struct
14153 unsigned PHR0 : 1;
14154 unsigned PHR1 : 1;
14155 unsigned PHR2 : 1;
14156 unsigned PHR3 : 1;
14157 unsigned PHR4 : 1;
14158 unsigned PHR5 : 1;
14159 unsigned : 1;
14160 unsigned : 1;
14163 struct
14165 unsigned G3PHR0 : 1;
14166 unsigned G3PHR1 : 1;
14167 unsigned G3PHR2 : 1;
14168 unsigned G3PHR3 : 1;
14169 unsigned G3PHR4 : 1;
14170 unsigned G3PHR5 : 1;
14171 unsigned : 1;
14172 unsigned : 1;
14175 struct
14177 unsigned PHR : 6;
14178 unsigned : 2;
14181 struct
14183 unsigned G3PHR : 6;
14184 unsigned : 2;
14186 } __COG3PHRbits_t;
14188 extern __at(0x080D) volatile __COG3PHRbits_t COG3PHRbits;
14190 #define _COG3PHR_PHR0 0x01
14191 #define _COG3PHR_G3PHR0 0x01
14192 #define _COG3PHR_PHR1 0x02
14193 #define _COG3PHR_G3PHR1 0x02
14194 #define _COG3PHR_PHR2 0x04
14195 #define _COG3PHR_G3PHR2 0x04
14196 #define _COG3PHR_PHR3 0x08
14197 #define _COG3PHR_G3PHR3 0x08
14198 #define _COG3PHR_PHR4 0x10
14199 #define _COG3PHR_G3PHR4 0x10
14200 #define _COG3PHR_PHR5 0x20
14201 #define _COG3PHR_G3PHR5 0x20
14203 //==============================================================================
14206 //==============================================================================
14207 // COG3PHF Bits
14209 extern __at(0x080E) __sfr COG3PHF;
14211 typedef union
14213 struct
14215 unsigned PHF0 : 1;
14216 unsigned PHF1 : 1;
14217 unsigned PHF2 : 1;
14218 unsigned PHF3 : 1;
14219 unsigned PHF4 : 1;
14220 unsigned PHF5 : 1;
14221 unsigned : 1;
14222 unsigned : 1;
14225 struct
14227 unsigned G3PHF0 : 1;
14228 unsigned G3PHF1 : 1;
14229 unsigned G3PHF2 : 1;
14230 unsigned G3PHF3 : 1;
14231 unsigned G3PHF4 : 1;
14232 unsigned G3PHF5 : 1;
14233 unsigned : 1;
14234 unsigned : 1;
14237 struct
14239 unsigned PHF : 6;
14240 unsigned : 2;
14243 struct
14245 unsigned G3PHF : 6;
14246 unsigned : 2;
14248 } __COG3PHFbits_t;
14250 extern __at(0x080E) volatile __COG3PHFbits_t COG3PHFbits;
14252 #define _COG3PHF_PHF0 0x01
14253 #define _COG3PHF_G3PHF0 0x01
14254 #define _COG3PHF_PHF1 0x02
14255 #define _COG3PHF_G3PHF1 0x02
14256 #define _COG3PHF_PHF2 0x04
14257 #define _COG3PHF_G3PHF2 0x04
14258 #define _COG3PHF_PHF3 0x08
14259 #define _COG3PHF_G3PHF3 0x08
14260 #define _COG3PHF_PHF4 0x10
14261 #define _COG3PHF_G3PHF4 0x10
14262 #define _COG3PHF_PHF5 0x20
14263 #define _COG3PHF_G3PHF5 0x20
14265 //==============================================================================
14268 //==============================================================================
14269 // COG3BLKR Bits
14271 extern __at(0x080F) __sfr COG3BLKR;
14273 typedef union
14275 struct
14277 unsigned BLKR0 : 1;
14278 unsigned BLKR1 : 1;
14279 unsigned BLKR2 : 1;
14280 unsigned BLKR3 : 1;
14281 unsigned BLKR4 : 1;
14282 unsigned BLKR5 : 1;
14283 unsigned : 1;
14284 unsigned : 1;
14287 struct
14289 unsigned G3BLKR0 : 1;
14290 unsigned G3BLKR1 : 1;
14291 unsigned G3BLKR2 : 1;
14292 unsigned G3BLKR3 : 1;
14293 unsigned G3BLKR4 : 1;
14294 unsigned G3BLKR5 : 1;
14295 unsigned : 1;
14296 unsigned : 1;
14299 struct
14301 unsigned G3BLKR : 6;
14302 unsigned : 2;
14305 struct
14307 unsigned BLKR : 6;
14308 unsigned : 2;
14310 } __COG3BLKRbits_t;
14312 extern __at(0x080F) volatile __COG3BLKRbits_t COG3BLKRbits;
14314 #define _COG3BLKR_BLKR0 0x01
14315 #define _COG3BLKR_G3BLKR0 0x01
14316 #define _COG3BLKR_BLKR1 0x02
14317 #define _COG3BLKR_G3BLKR1 0x02
14318 #define _COG3BLKR_BLKR2 0x04
14319 #define _COG3BLKR_G3BLKR2 0x04
14320 #define _COG3BLKR_BLKR3 0x08
14321 #define _COG3BLKR_G3BLKR3 0x08
14322 #define _COG3BLKR_BLKR4 0x10
14323 #define _COG3BLKR_G3BLKR4 0x10
14324 #define _COG3BLKR_BLKR5 0x20
14325 #define _COG3BLKR_G3BLKR5 0x20
14327 //==============================================================================
14330 //==============================================================================
14331 // COG3BLKF Bits
14333 extern __at(0x0810) __sfr COG3BLKF;
14335 typedef union
14337 struct
14339 unsigned BLKF0 : 1;
14340 unsigned BLKF1 : 1;
14341 unsigned BLKF2 : 1;
14342 unsigned BLKF3 : 1;
14343 unsigned BLKF4 : 1;
14344 unsigned BLKF5 : 1;
14345 unsigned : 1;
14346 unsigned : 1;
14349 struct
14351 unsigned G3BLKF0 : 1;
14352 unsigned G3BLKF1 : 1;
14353 unsigned G3BLKF2 : 1;
14354 unsigned G3BLKF3 : 1;
14355 unsigned G3BLKF4 : 1;
14356 unsigned G3BLKF5 : 1;
14357 unsigned : 1;
14358 unsigned : 1;
14361 struct
14363 unsigned BLKF : 6;
14364 unsigned : 2;
14367 struct
14369 unsigned G3BLKF : 6;
14370 unsigned : 2;
14372 } __COG3BLKFbits_t;
14374 extern __at(0x0810) volatile __COG3BLKFbits_t COG3BLKFbits;
14376 #define _COG3BLKF_BLKF0 0x01
14377 #define _COG3BLKF_G3BLKF0 0x01
14378 #define _COG3BLKF_BLKF1 0x02
14379 #define _COG3BLKF_G3BLKF1 0x02
14380 #define _COG3BLKF_BLKF2 0x04
14381 #define _COG3BLKF_G3BLKF2 0x04
14382 #define _COG3BLKF_BLKF3 0x08
14383 #define _COG3BLKF_G3BLKF3 0x08
14384 #define _COG3BLKF_BLKF4 0x10
14385 #define _COG3BLKF_G3BLKF4 0x10
14386 #define _COG3BLKF_BLKF5 0x20
14387 #define _COG3BLKF_G3BLKF5 0x20
14389 //==============================================================================
14392 //==============================================================================
14393 // COG3DBR Bits
14395 extern __at(0x0811) __sfr COG3DBR;
14397 typedef union
14399 struct
14401 unsigned DBR0 : 1;
14402 unsigned DBR1 : 1;
14403 unsigned DBR2 : 1;
14404 unsigned DBR3 : 1;
14405 unsigned DBR4 : 1;
14406 unsigned DBR5 : 1;
14407 unsigned : 1;
14408 unsigned : 1;
14411 struct
14413 unsigned G3DBR0 : 1;
14414 unsigned G3DBR1 : 1;
14415 unsigned G3DBR2 : 1;
14416 unsigned G3DBR3 : 1;
14417 unsigned G3DBR4 : 1;
14418 unsigned G3DBR5 : 1;
14419 unsigned : 1;
14420 unsigned : 1;
14423 struct
14425 unsigned G3DBR : 6;
14426 unsigned : 2;
14429 struct
14431 unsigned DBR : 6;
14432 unsigned : 2;
14434 } __COG3DBRbits_t;
14436 extern __at(0x0811) volatile __COG3DBRbits_t COG3DBRbits;
14438 #define _COG3DBR_DBR0 0x01
14439 #define _COG3DBR_G3DBR0 0x01
14440 #define _COG3DBR_DBR1 0x02
14441 #define _COG3DBR_G3DBR1 0x02
14442 #define _COG3DBR_DBR2 0x04
14443 #define _COG3DBR_G3DBR2 0x04
14444 #define _COG3DBR_DBR3 0x08
14445 #define _COG3DBR_G3DBR3 0x08
14446 #define _COG3DBR_DBR4 0x10
14447 #define _COG3DBR_G3DBR4 0x10
14448 #define _COG3DBR_DBR5 0x20
14449 #define _COG3DBR_G3DBR5 0x20
14451 //==============================================================================
14454 //==============================================================================
14455 // COG3DBF Bits
14457 extern __at(0x0812) __sfr COG3DBF;
14459 typedef union
14461 struct
14463 unsigned DBF0 : 1;
14464 unsigned DBF1 : 1;
14465 unsigned DBF2 : 1;
14466 unsigned DBF3 : 1;
14467 unsigned DBF4 : 1;
14468 unsigned DBF5 : 1;
14469 unsigned : 1;
14470 unsigned : 1;
14473 struct
14475 unsigned G3DBF0 : 1;
14476 unsigned G3DBF1 : 1;
14477 unsigned G3DBF2 : 1;
14478 unsigned G3DBF3 : 1;
14479 unsigned G3DBF4 : 1;
14480 unsigned G3DBF5 : 1;
14481 unsigned : 1;
14482 unsigned : 1;
14485 struct
14487 unsigned G3DBF : 6;
14488 unsigned : 2;
14491 struct
14493 unsigned DBF : 6;
14494 unsigned : 2;
14496 } __COG3DBFbits_t;
14498 extern __at(0x0812) volatile __COG3DBFbits_t COG3DBFbits;
14500 #define _COG3DBF_DBF0 0x01
14501 #define _COG3DBF_G3DBF0 0x01
14502 #define _COG3DBF_DBF1 0x02
14503 #define _COG3DBF_G3DBF1 0x02
14504 #define _COG3DBF_DBF2 0x04
14505 #define _COG3DBF_G3DBF2 0x04
14506 #define _COG3DBF_DBF3 0x08
14507 #define _COG3DBF_G3DBF3 0x08
14508 #define _COG3DBF_DBF4 0x10
14509 #define _COG3DBF_G3DBF4 0x10
14510 #define _COG3DBF_DBF5 0x20
14511 #define _COG3DBF_G3DBF5 0x20
14513 //==============================================================================
14516 //==============================================================================
14517 // COG3CON0 Bits
14519 extern __at(0x0813) __sfr COG3CON0;
14521 typedef union
14523 struct
14525 unsigned MD0 : 1;
14526 unsigned MD1 : 1;
14527 unsigned MD2 : 1;
14528 unsigned CS0 : 1;
14529 unsigned CS1 : 1;
14530 unsigned : 1;
14531 unsigned LD : 1;
14532 unsigned EN : 1;
14535 struct
14537 unsigned G3MD0 : 1;
14538 unsigned G3MD1 : 1;
14539 unsigned G3MD2 : 1;
14540 unsigned G3CS0 : 1;
14541 unsigned G3CS1 : 1;
14542 unsigned : 1;
14543 unsigned G3LD : 1;
14544 unsigned G3EN : 1;
14547 struct
14549 unsigned MD : 3;
14550 unsigned : 5;
14553 struct
14555 unsigned G3MD : 3;
14556 unsigned : 5;
14559 struct
14561 unsigned : 3;
14562 unsigned CS : 2;
14563 unsigned : 3;
14566 struct
14568 unsigned : 3;
14569 unsigned G3CS : 2;
14570 unsigned : 3;
14572 } __COG3CON0bits_t;
14574 extern __at(0x0813) volatile __COG3CON0bits_t COG3CON0bits;
14576 #define _COG3CON0_MD0 0x01
14577 #define _COG3CON0_G3MD0 0x01
14578 #define _COG3CON0_MD1 0x02
14579 #define _COG3CON0_G3MD1 0x02
14580 #define _COG3CON0_MD2 0x04
14581 #define _COG3CON0_G3MD2 0x04
14582 #define _COG3CON0_CS0 0x08
14583 #define _COG3CON0_G3CS0 0x08
14584 #define _COG3CON0_CS1 0x10
14585 #define _COG3CON0_G3CS1 0x10
14586 #define _COG3CON0_LD 0x40
14587 #define _COG3CON0_G3LD 0x40
14588 #define _COG3CON0_EN 0x80
14589 #define _COG3CON0_G3EN 0x80
14591 //==============================================================================
14594 //==============================================================================
14595 // COG3CON1 Bits
14597 extern __at(0x0814) __sfr COG3CON1;
14599 typedef union
14601 struct
14603 unsigned POLA : 1;
14604 unsigned POLB : 1;
14605 unsigned POLC : 1;
14606 unsigned POLD : 1;
14607 unsigned : 1;
14608 unsigned : 1;
14609 unsigned FDBS : 1;
14610 unsigned RDBS : 1;
14613 struct
14615 unsigned G3POLA : 1;
14616 unsigned G3POLB : 1;
14617 unsigned G3POLC : 1;
14618 unsigned G3POLD : 1;
14619 unsigned : 1;
14620 unsigned : 1;
14621 unsigned G3FDBS : 1;
14622 unsigned G3RDBS : 1;
14624 } __COG3CON1bits_t;
14626 extern __at(0x0814) volatile __COG3CON1bits_t COG3CON1bits;
14628 #define _COG3CON1_POLA 0x01
14629 #define _COG3CON1_G3POLA 0x01
14630 #define _COG3CON1_POLB 0x02
14631 #define _COG3CON1_G3POLB 0x02
14632 #define _COG3CON1_POLC 0x04
14633 #define _COG3CON1_G3POLC 0x04
14634 #define _COG3CON1_POLD 0x08
14635 #define _COG3CON1_G3POLD 0x08
14636 #define _COG3CON1_FDBS 0x40
14637 #define _COG3CON1_G3FDBS 0x40
14638 #define _COG3CON1_RDBS 0x80
14639 #define _COG3CON1_G3RDBS 0x80
14641 //==============================================================================
14644 //==============================================================================
14645 // COG3RIS0 Bits
14647 extern __at(0x0815) __sfr COG3RIS0;
14649 typedef union
14651 struct
14653 unsigned RIS0 : 1;
14654 unsigned RIS1 : 1;
14655 unsigned RIS2 : 1;
14656 unsigned RIS3 : 1;
14657 unsigned RIS4 : 1;
14658 unsigned RIS5 : 1;
14659 unsigned RIS6 : 1;
14660 unsigned RIS7 : 1;
14663 struct
14665 unsigned G3RIS0 : 1;
14666 unsigned G3RIS1 : 1;
14667 unsigned G3RIS2 : 1;
14668 unsigned G3RIS3 : 1;
14669 unsigned G3RIS4 : 1;
14670 unsigned G3RIS5 : 1;
14671 unsigned G3RIS6 : 1;
14672 unsigned G3RIS7 : 1;
14674 } __COG3RIS0bits_t;
14676 extern __at(0x0815) volatile __COG3RIS0bits_t COG3RIS0bits;
14678 #define _COG3RIS0_RIS0 0x01
14679 #define _COG3RIS0_G3RIS0 0x01
14680 #define _COG3RIS0_RIS1 0x02
14681 #define _COG3RIS0_G3RIS1 0x02
14682 #define _COG3RIS0_RIS2 0x04
14683 #define _COG3RIS0_G3RIS2 0x04
14684 #define _COG3RIS0_RIS3 0x08
14685 #define _COG3RIS0_G3RIS3 0x08
14686 #define _COG3RIS0_RIS4 0x10
14687 #define _COG3RIS0_G3RIS4 0x10
14688 #define _COG3RIS0_RIS5 0x20
14689 #define _COG3RIS0_G3RIS5 0x20
14690 #define _COG3RIS0_RIS6 0x40
14691 #define _COG3RIS0_G3RIS6 0x40
14692 #define _COG3RIS0_RIS7 0x80
14693 #define _COG3RIS0_G3RIS7 0x80
14695 //==============================================================================
14698 //==============================================================================
14699 // COG3RIS1 Bits
14701 extern __at(0x0816) __sfr COG3RIS1;
14703 typedef union
14705 struct
14707 unsigned : 1;
14708 unsigned RIS9 : 1;
14709 unsigned : 1;
14710 unsigned RIS11 : 1;
14711 unsigned RIS12 : 1;
14712 unsigned RIS13 : 1;
14713 unsigned RIS14 : 1;
14714 unsigned RIS15 : 1;
14717 struct
14719 unsigned : 1;
14720 unsigned G3RIS9 : 1;
14721 unsigned : 1;
14722 unsigned G3RIS11 : 1;
14723 unsigned G3RIS12 : 1;
14724 unsigned G3RIS13 : 1;
14725 unsigned G3RIS14 : 1;
14726 unsigned G3RIS15 : 1;
14728 } __COG3RIS1bits_t;
14730 extern __at(0x0816) volatile __COG3RIS1bits_t COG3RIS1bits;
14732 #define _COG3RIS1_RIS9 0x02
14733 #define _COG3RIS1_G3RIS9 0x02
14734 #define _COG3RIS1_RIS11 0x08
14735 #define _COG3RIS1_G3RIS11 0x08
14736 #define _COG3RIS1_RIS12 0x10
14737 #define _COG3RIS1_G3RIS12 0x10
14738 #define _COG3RIS1_RIS13 0x20
14739 #define _COG3RIS1_G3RIS13 0x20
14740 #define _COG3RIS1_RIS14 0x40
14741 #define _COG3RIS1_G3RIS14 0x40
14742 #define _COG3RIS1_RIS15 0x80
14743 #define _COG3RIS1_G3RIS15 0x80
14745 //==============================================================================
14748 //==============================================================================
14749 // COG3RSIM0 Bits
14751 extern __at(0x0817) __sfr COG3RSIM0;
14753 typedef union
14755 struct
14757 unsigned RSIM0 : 1;
14758 unsigned RSIM1 : 1;
14759 unsigned RSIM2 : 1;
14760 unsigned RSIM3 : 1;
14761 unsigned RSIM4 : 1;
14762 unsigned RSIM5 : 1;
14763 unsigned RSIM6 : 1;
14764 unsigned RSIM7 : 1;
14767 struct
14769 unsigned G3RSIM0 : 1;
14770 unsigned G3RSIM1 : 1;
14771 unsigned G3RSIM2 : 1;
14772 unsigned G3RSIM3 : 1;
14773 unsigned G3RSIM4 : 1;
14774 unsigned G3RSIM5 : 1;
14775 unsigned G3RSIM6 : 1;
14776 unsigned G3RSIM7 : 1;
14778 } __COG3RSIM0bits_t;
14780 extern __at(0x0817) volatile __COG3RSIM0bits_t COG3RSIM0bits;
14782 #define _COG3RSIM0_RSIM0 0x01
14783 #define _COG3RSIM0_G3RSIM0 0x01
14784 #define _COG3RSIM0_RSIM1 0x02
14785 #define _COG3RSIM0_G3RSIM1 0x02
14786 #define _COG3RSIM0_RSIM2 0x04
14787 #define _COG3RSIM0_G3RSIM2 0x04
14788 #define _COG3RSIM0_RSIM3 0x08
14789 #define _COG3RSIM0_G3RSIM3 0x08
14790 #define _COG3RSIM0_RSIM4 0x10
14791 #define _COG3RSIM0_G3RSIM4 0x10
14792 #define _COG3RSIM0_RSIM5 0x20
14793 #define _COG3RSIM0_G3RSIM5 0x20
14794 #define _COG3RSIM0_RSIM6 0x40
14795 #define _COG3RSIM0_G3RSIM6 0x40
14796 #define _COG3RSIM0_RSIM7 0x80
14797 #define _COG3RSIM0_G3RSIM7 0x80
14799 //==============================================================================
14802 //==============================================================================
14803 // COG3RSIM1 Bits
14805 extern __at(0x0818) __sfr COG3RSIM1;
14807 typedef union
14809 struct
14811 unsigned : 1;
14812 unsigned RSIM9 : 1;
14813 unsigned : 1;
14814 unsigned RSIM11 : 1;
14815 unsigned RSIM12 : 1;
14816 unsigned RSIM13 : 1;
14817 unsigned RSIM14 : 1;
14818 unsigned RSIM15 : 1;
14821 struct
14823 unsigned : 1;
14824 unsigned G3RSIM9 : 1;
14825 unsigned : 1;
14826 unsigned G3RSIM11 : 1;
14827 unsigned G3RSIM12 : 1;
14828 unsigned G3RSIM13 : 1;
14829 unsigned G3RSIM14 : 1;
14830 unsigned G3RSIM15 : 1;
14832 } __COG3RSIM1bits_t;
14834 extern __at(0x0818) volatile __COG3RSIM1bits_t COG3RSIM1bits;
14836 #define _COG3RSIM1_RSIM9 0x02
14837 #define _COG3RSIM1_G3RSIM9 0x02
14838 #define _COG3RSIM1_RSIM11 0x08
14839 #define _COG3RSIM1_G3RSIM11 0x08
14840 #define _COG3RSIM1_RSIM12 0x10
14841 #define _COG3RSIM1_G3RSIM12 0x10
14842 #define _COG3RSIM1_RSIM13 0x20
14843 #define _COG3RSIM1_G3RSIM13 0x20
14844 #define _COG3RSIM1_RSIM14 0x40
14845 #define _COG3RSIM1_G3RSIM14 0x40
14846 #define _COG3RSIM1_RSIM15 0x80
14847 #define _COG3RSIM1_G3RSIM15 0x80
14849 //==============================================================================
14852 //==============================================================================
14853 // COG3FIS0 Bits
14855 extern __at(0x0819) __sfr COG3FIS0;
14857 typedef union
14859 struct
14861 unsigned FIS0 : 1;
14862 unsigned FIS1 : 1;
14863 unsigned FIS2 : 1;
14864 unsigned FIS3 : 1;
14865 unsigned FIS4 : 1;
14866 unsigned FIS5 : 1;
14867 unsigned FIS6 : 1;
14868 unsigned FIS7 : 1;
14871 struct
14873 unsigned G3FIS0 : 1;
14874 unsigned G3FIS1 : 1;
14875 unsigned G3FIS2 : 1;
14876 unsigned G3FIS3 : 1;
14877 unsigned G3FIS4 : 1;
14878 unsigned G3FIS5 : 1;
14879 unsigned G3FIS6 : 1;
14880 unsigned G3FIS7 : 1;
14882 } __COG3FIS0bits_t;
14884 extern __at(0x0819) volatile __COG3FIS0bits_t COG3FIS0bits;
14886 #define _COG3FIS0_FIS0 0x01
14887 #define _COG3FIS0_G3FIS0 0x01
14888 #define _COG3FIS0_FIS1 0x02
14889 #define _COG3FIS0_G3FIS1 0x02
14890 #define _COG3FIS0_FIS2 0x04
14891 #define _COG3FIS0_G3FIS2 0x04
14892 #define _COG3FIS0_FIS3 0x08
14893 #define _COG3FIS0_G3FIS3 0x08
14894 #define _COG3FIS0_FIS4 0x10
14895 #define _COG3FIS0_G3FIS4 0x10
14896 #define _COG3FIS0_FIS5 0x20
14897 #define _COG3FIS0_G3FIS5 0x20
14898 #define _COG3FIS0_FIS6 0x40
14899 #define _COG3FIS0_G3FIS6 0x40
14900 #define _COG3FIS0_FIS7 0x80
14901 #define _COG3FIS0_G3FIS7 0x80
14903 //==============================================================================
14906 //==============================================================================
14907 // COG3FIS1 Bits
14909 extern __at(0x081A) __sfr COG3FIS1;
14911 typedef union
14913 struct
14915 unsigned : 1;
14916 unsigned FIS9 : 1;
14917 unsigned : 1;
14918 unsigned FIS11 : 1;
14919 unsigned FIS12 : 1;
14920 unsigned FIS13 : 1;
14921 unsigned FIS14 : 1;
14922 unsigned FIS15 : 1;
14925 struct
14927 unsigned : 1;
14928 unsigned G3FIS9 : 1;
14929 unsigned : 1;
14930 unsigned G3FIS11 : 1;
14931 unsigned G3FIS12 : 1;
14932 unsigned G3FIS13 : 1;
14933 unsigned G3FIS14 : 1;
14934 unsigned G3FIS15 : 1;
14936 } __COG3FIS1bits_t;
14938 extern __at(0x081A) volatile __COG3FIS1bits_t COG3FIS1bits;
14940 #define _COG3FIS1_FIS9 0x02
14941 #define _COG3FIS1_G3FIS9 0x02
14942 #define _COG3FIS1_FIS11 0x08
14943 #define _COG3FIS1_G3FIS11 0x08
14944 #define _COG3FIS1_FIS12 0x10
14945 #define _COG3FIS1_G3FIS12 0x10
14946 #define _COG3FIS1_FIS13 0x20
14947 #define _COG3FIS1_G3FIS13 0x20
14948 #define _COG3FIS1_FIS14 0x40
14949 #define _COG3FIS1_G3FIS14 0x40
14950 #define _COG3FIS1_FIS15 0x80
14951 #define _COG3FIS1_G3FIS15 0x80
14953 //==============================================================================
14956 //==============================================================================
14957 // COG3FSIM0 Bits
14959 extern __at(0x081B) __sfr COG3FSIM0;
14961 typedef union
14963 struct
14965 unsigned FSIM0 : 1;
14966 unsigned FSIM1 : 1;
14967 unsigned FSIM2 : 1;
14968 unsigned FSIM3 : 1;
14969 unsigned FSIM4 : 1;
14970 unsigned FSIM5 : 1;
14971 unsigned FSIM6 : 1;
14972 unsigned FSIM7 : 1;
14975 struct
14977 unsigned G3FSIM0 : 1;
14978 unsigned G3FSIM1 : 1;
14979 unsigned G3FSIM2 : 1;
14980 unsigned G3FSIM3 : 1;
14981 unsigned G3FSIM4 : 1;
14982 unsigned G3FSIM5 : 1;
14983 unsigned G3FSIM6 : 1;
14984 unsigned G3FSIM7 : 1;
14986 } __COG3FSIM0bits_t;
14988 extern __at(0x081B) volatile __COG3FSIM0bits_t COG3FSIM0bits;
14990 #define _COG3FSIM0_FSIM0 0x01
14991 #define _COG3FSIM0_G3FSIM0 0x01
14992 #define _COG3FSIM0_FSIM1 0x02
14993 #define _COG3FSIM0_G3FSIM1 0x02
14994 #define _COG3FSIM0_FSIM2 0x04
14995 #define _COG3FSIM0_G3FSIM2 0x04
14996 #define _COG3FSIM0_FSIM3 0x08
14997 #define _COG3FSIM0_G3FSIM3 0x08
14998 #define _COG3FSIM0_FSIM4 0x10
14999 #define _COG3FSIM0_G3FSIM4 0x10
15000 #define _COG3FSIM0_FSIM5 0x20
15001 #define _COG3FSIM0_G3FSIM5 0x20
15002 #define _COG3FSIM0_FSIM6 0x40
15003 #define _COG3FSIM0_G3FSIM6 0x40
15004 #define _COG3FSIM0_FSIM7 0x80
15005 #define _COG3FSIM0_G3FSIM7 0x80
15007 //==============================================================================
15010 //==============================================================================
15011 // COG3FSIM1 Bits
15013 extern __at(0x081C) __sfr COG3FSIM1;
15015 typedef union
15017 struct
15019 unsigned : 1;
15020 unsigned FSIM9 : 1;
15021 unsigned : 1;
15022 unsigned FSIM11 : 1;
15023 unsigned FSIM12 : 1;
15024 unsigned FSIM13 : 1;
15025 unsigned FSIM14 : 1;
15026 unsigned FSIM15 : 1;
15029 struct
15031 unsigned : 1;
15032 unsigned G3FSIM9 : 1;
15033 unsigned : 1;
15034 unsigned G3FSIM11 : 1;
15035 unsigned G3FSIM12 : 1;
15036 unsigned G3FSIM13 : 1;
15037 unsigned G3FSIM14 : 1;
15038 unsigned G3FSIM15 : 1;
15040 } __COG3FSIM1bits_t;
15042 extern __at(0x081C) volatile __COG3FSIM1bits_t COG3FSIM1bits;
15044 #define _COG3FSIM1_FSIM9 0x02
15045 #define _COG3FSIM1_G3FSIM9 0x02
15046 #define _COG3FSIM1_FSIM11 0x08
15047 #define _COG3FSIM1_G3FSIM11 0x08
15048 #define _COG3FSIM1_FSIM12 0x10
15049 #define _COG3FSIM1_G3FSIM12 0x10
15050 #define _COG3FSIM1_FSIM13 0x20
15051 #define _COG3FSIM1_G3FSIM13 0x20
15052 #define _COG3FSIM1_FSIM14 0x40
15053 #define _COG3FSIM1_G3FSIM14 0x40
15054 #define _COG3FSIM1_FSIM15 0x80
15055 #define _COG3FSIM1_G3FSIM15 0x80
15057 //==============================================================================
15060 //==============================================================================
15061 // COG3ASD0 Bits
15063 extern __at(0x081D) __sfr COG3ASD0;
15065 typedef union
15067 struct
15069 unsigned : 1;
15070 unsigned : 1;
15071 unsigned ASDAC0 : 1;
15072 unsigned ASDAC1 : 1;
15073 unsigned ASDBD0 : 1;
15074 unsigned ASDBD1 : 1;
15075 unsigned ASREN : 1;
15076 unsigned ASE : 1;
15079 struct
15081 unsigned : 1;
15082 unsigned : 1;
15083 unsigned G3ASDAC0 : 1;
15084 unsigned G3ASDAC1 : 1;
15085 unsigned G3ASDBD0 : 1;
15086 unsigned G3ASDBD1 : 1;
15087 unsigned ARSEN : 1;
15088 unsigned G3ASE : 1;
15091 struct
15093 unsigned : 1;
15094 unsigned : 1;
15095 unsigned : 1;
15096 unsigned : 1;
15097 unsigned : 1;
15098 unsigned : 1;
15099 unsigned G3ARSEN : 1;
15100 unsigned : 1;
15103 struct
15105 unsigned : 1;
15106 unsigned : 1;
15107 unsigned : 1;
15108 unsigned : 1;
15109 unsigned : 1;
15110 unsigned : 1;
15111 unsigned G3ASREN : 1;
15112 unsigned : 1;
15115 struct
15117 unsigned : 2;
15118 unsigned ASDAC : 2;
15119 unsigned : 4;
15122 struct
15124 unsigned : 2;
15125 unsigned G3ASDAC : 2;
15126 unsigned : 4;
15129 struct
15131 unsigned : 4;
15132 unsigned G3ASDBD : 2;
15133 unsigned : 2;
15136 struct
15138 unsigned : 4;
15139 unsigned ASDBD : 2;
15140 unsigned : 2;
15142 } __COG3ASD0bits_t;
15144 extern __at(0x081D) volatile __COG3ASD0bits_t COG3ASD0bits;
15146 #define _COG3ASD0_ASDAC0 0x04
15147 #define _COG3ASD0_G3ASDAC0 0x04
15148 #define _COG3ASD0_ASDAC1 0x08
15149 #define _COG3ASD0_G3ASDAC1 0x08
15150 #define _COG3ASD0_ASDBD0 0x10
15151 #define _COG3ASD0_G3ASDBD0 0x10
15152 #define _COG3ASD0_ASDBD1 0x20
15153 #define _COG3ASD0_G3ASDBD1 0x20
15154 #define _COG3ASD0_ASREN 0x40
15155 #define _COG3ASD0_ARSEN 0x40
15156 #define _COG3ASD0_G3ARSEN 0x40
15157 #define _COG3ASD0_G3ASREN 0x40
15158 #define _COG3ASD0_ASE 0x80
15159 #define _COG3ASD0_G3ASE 0x80
15161 //==============================================================================
15164 //==============================================================================
15165 // COG3ASD1 Bits
15167 extern __at(0x081E) __sfr COG3ASD1;
15169 typedef union
15171 struct
15173 unsigned AS0E : 1;
15174 unsigned AS1E : 1;
15175 unsigned AS2E : 1;
15176 unsigned AS3E : 1;
15177 unsigned AS4E : 1;
15178 unsigned AS5E : 1;
15179 unsigned AS6E : 1;
15180 unsigned AS7E : 1;
15183 struct
15185 unsigned G3AS0E : 1;
15186 unsigned G3AS1E : 1;
15187 unsigned G3AS2E : 1;
15188 unsigned G3AS3E : 1;
15189 unsigned G3AS4E : 1;
15190 unsigned G3AS5E : 1;
15191 unsigned G3AS6E : 1;
15192 unsigned G3AS7E : 1;
15194 } __COG3ASD1bits_t;
15196 extern __at(0x081E) volatile __COG3ASD1bits_t COG3ASD1bits;
15198 #define _COG3ASD1_AS0E 0x01
15199 #define _COG3ASD1_G3AS0E 0x01
15200 #define _COG3ASD1_AS1E 0x02
15201 #define _COG3ASD1_G3AS1E 0x02
15202 #define _COG3ASD1_AS2E 0x04
15203 #define _COG3ASD1_G3AS2E 0x04
15204 #define _COG3ASD1_AS3E 0x08
15205 #define _COG3ASD1_G3AS3E 0x08
15206 #define _COG3ASD1_AS4E 0x10
15207 #define _COG3ASD1_G3AS4E 0x10
15208 #define _COG3ASD1_AS5E 0x20
15209 #define _COG3ASD1_G3AS5E 0x20
15210 #define _COG3ASD1_AS6E 0x40
15211 #define _COG3ASD1_G3AS6E 0x40
15212 #define _COG3ASD1_AS7E 0x80
15213 #define _COG3ASD1_G3AS7E 0x80
15215 //==============================================================================
15218 //==============================================================================
15219 // COG3STR Bits
15221 extern __at(0x081F) __sfr COG3STR;
15223 typedef union
15225 struct
15227 unsigned STRA : 1;
15228 unsigned STRB : 1;
15229 unsigned STRC : 1;
15230 unsigned STRD : 1;
15231 unsigned SDATA : 1;
15232 unsigned SDATB : 1;
15233 unsigned SDATC : 1;
15234 unsigned SDATD : 1;
15237 struct
15239 unsigned G3STRA : 1;
15240 unsigned G3STRB : 1;
15241 unsigned G3STRC : 1;
15242 unsigned G3STRD : 1;
15243 unsigned G3SDATA : 1;
15244 unsigned G3SDATB : 1;
15245 unsigned G3SDATC : 1;
15246 unsigned G3SDATD : 1;
15248 } __COG3STRbits_t;
15250 extern __at(0x081F) volatile __COG3STRbits_t COG3STRbits;
15252 #define _COG3STR_STRA 0x01
15253 #define _COG3STR_G3STRA 0x01
15254 #define _COG3STR_STRB 0x02
15255 #define _COG3STR_G3STRB 0x02
15256 #define _COG3STR_STRC 0x04
15257 #define _COG3STR_G3STRC 0x04
15258 #define _COG3STR_STRD 0x08
15259 #define _COG3STR_G3STRD 0x08
15260 #define _COG3STR_SDATA 0x10
15261 #define _COG3STR_G3SDATA 0x10
15262 #define _COG3STR_SDATB 0x20
15263 #define _COG3STR_G3SDATB 0x20
15264 #define _COG3STR_SDATC 0x40
15265 #define _COG3STR_G3SDATC 0x40
15266 #define _COG3STR_SDATD 0x80
15267 #define _COG3STR_G3SDATD 0x80
15269 //==============================================================================
15272 //==============================================================================
15273 // CM4CON0 Bits
15275 extern __at(0x090C) __sfr CM4CON0;
15277 typedef union
15279 struct
15281 unsigned SYNC : 1;
15282 unsigned HYS : 1;
15283 unsigned Reserved : 1;
15284 unsigned ZLF : 1;
15285 unsigned POL : 1;
15286 unsigned : 1;
15287 unsigned OUT : 1;
15288 unsigned ON : 1;
15291 struct
15293 unsigned C4SYNC : 1;
15294 unsigned C4HYS : 1;
15295 unsigned C4SP : 1;
15296 unsigned C4ZLF : 1;
15297 unsigned C4POL : 1;
15298 unsigned : 1;
15299 unsigned C4OUT : 1;
15300 unsigned C4ON : 1;
15302 } __CM4CON0bits_t;
15304 extern __at(0x090C) volatile __CM4CON0bits_t CM4CON0bits;
15306 #define _CM4CON0_SYNC 0x01
15307 #define _CM4CON0_C4SYNC 0x01
15308 #define _CM4CON0_HYS 0x02
15309 #define _CM4CON0_C4HYS 0x02
15310 #define _CM4CON0_Reserved 0x04
15311 #define _CM4CON0_C4SP 0x04
15312 #define _CM4CON0_ZLF 0x08
15313 #define _CM4CON0_C4ZLF 0x08
15314 #define _CM4CON0_POL 0x10
15315 #define _CM4CON0_C4POL 0x10
15316 #define _CM4CON0_OUT 0x40
15317 #define _CM4CON0_C4OUT 0x40
15318 #define _CM4CON0_ON 0x80
15319 #define _CM4CON0_C4ON 0x80
15321 //==============================================================================
15324 //==============================================================================
15325 // CM4CON1 Bits
15327 extern __at(0x090D) __sfr CM4CON1;
15329 typedef union
15331 struct
15333 unsigned INTN : 1;
15334 unsigned INTP : 1;
15335 unsigned : 1;
15336 unsigned : 1;
15337 unsigned : 1;
15338 unsigned : 1;
15339 unsigned : 1;
15340 unsigned : 1;
15343 struct
15345 unsigned C4INTN : 1;
15346 unsigned C4INTP : 1;
15347 unsigned : 1;
15348 unsigned : 1;
15349 unsigned : 1;
15350 unsigned : 1;
15351 unsigned : 1;
15352 unsigned : 1;
15354 } __CM4CON1bits_t;
15356 extern __at(0x090D) volatile __CM4CON1bits_t CM4CON1bits;
15358 #define _CM4CON1_INTN 0x01
15359 #define _CM4CON1_C4INTN 0x01
15360 #define _CM4CON1_INTP 0x02
15361 #define _CM4CON1_C4INTP 0x02
15363 //==============================================================================
15366 //==============================================================================
15367 // CM4NSEL Bits
15369 extern __at(0x090E) __sfr CM4NSEL;
15371 typedef union
15373 struct
15375 unsigned C4NCH0 : 1;
15376 unsigned C4NCH1 : 1;
15377 unsigned C4NCH2 : 1;
15378 unsigned C4NCH3 : 1;
15379 unsigned : 1;
15380 unsigned : 1;
15381 unsigned : 1;
15382 unsigned : 1;
15385 struct
15387 unsigned C4NCH : 4;
15388 unsigned : 4;
15390 } __CM4NSELbits_t;
15392 extern __at(0x090E) volatile __CM4NSELbits_t CM4NSELbits;
15394 #define _C4NCH0 0x01
15395 #define _C4NCH1 0x02
15396 #define _C4NCH2 0x04
15397 #define _C4NCH3 0x08
15399 //==============================================================================
15402 //==============================================================================
15403 // CM4PSEL Bits
15405 extern __at(0x090F) __sfr CM4PSEL;
15407 typedef union
15409 struct
15411 unsigned PCH0 : 1;
15412 unsigned PCH1 : 1;
15413 unsigned PCH2 : 1;
15414 unsigned PCH3 : 1;
15415 unsigned : 1;
15416 unsigned : 1;
15417 unsigned : 1;
15418 unsigned : 1;
15421 struct
15423 unsigned C4PCH0 : 1;
15424 unsigned C4PCH1 : 1;
15425 unsigned C4PCH2 : 1;
15426 unsigned C4PCH3 : 1;
15427 unsigned : 1;
15428 unsigned : 1;
15429 unsigned : 1;
15430 unsigned : 1;
15433 struct
15435 unsigned PCH : 4;
15436 unsigned : 4;
15439 struct
15441 unsigned C4PCH : 4;
15442 unsigned : 4;
15444 } __CM4PSELbits_t;
15446 extern __at(0x090F) volatile __CM4PSELbits_t CM4PSELbits;
15448 #define _CM4PSEL_PCH0 0x01
15449 #define _CM4PSEL_C4PCH0 0x01
15450 #define _CM4PSEL_PCH1 0x02
15451 #define _CM4PSEL_C4PCH1 0x02
15452 #define _CM4PSEL_PCH2 0x04
15453 #define _CM4PSEL_C4PCH2 0x04
15454 #define _CM4PSEL_PCH3 0x08
15455 #define _CM4PSEL_C4PCH3 0x08
15457 //==============================================================================
15460 //==============================================================================
15461 // CM5CON0 Bits
15463 extern __at(0x0910) __sfr CM5CON0;
15465 typedef union
15467 struct
15469 unsigned SYNC : 1;
15470 unsigned HYS : 1;
15471 unsigned Reserved : 1;
15472 unsigned ZLF : 1;
15473 unsigned POL : 1;
15474 unsigned : 1;
15475 unsigned OUT : 1;
15476 unsigned ON : 1;
15479 struct
15481 unsigned C5SYNC : 1;
15482 unsigned C5HYS : 1;
15483 unsigned C5SP : 1;
15484 unsigned C5ZLF : 1;
15485 unsigned C5POL : 1;
15486 unsigned : 1;
15487 unsigned C5OUT : 1;
15488 unsigned C5ON : 1;
15490 } __CM5CON0bits_t;
15492 extern __at(0x0910) volatile __CM5CON0bits_t CM5CON0bits;
15494 #define _CM5CON0_SYNC 0x01
15495 #define _CM5CON0_C5SYNC 0x01
15496 #define _CM5CON0_HYS 0x02
15497 #define _CM5CON0_C5HYS 0x02
15498 #define _CM5CON0_Reserved 0x04
15499 #define _CM5CON0_C5SP 0x04
15500 #define _CM5CON0_ZLF 0x08
15501 #define _CM5CON0_C5ZLF 0x08
15502 #define _CM5CON0_POL 0x10
15503 #define _CM5CON0_C5POL 0x10
15504 #define _CM5CON0_OUT 0x40
15505 #define _CM5CON0_C5OUT 0x40
15506 #define _CM5CON0_ON 0x80
15507 #define _CM5CON0_C5ON 0x80
15509 //==============================================================================
15512 //==============================================================================
15513 // CM5CON1 Bits
15515 extern __at(0x0911) __sfr CM5CON1;
15517 typedef union
15519 struct
15521 unsigned INTN : 1;
15522 unsigned INTP : 1;
15523 unsigned : 1;
15524 unsigned : 1;
15525 unsigned : 1;
15526 unsigned : 1;
15527 unsigned : 1;
15528 unsigned : 1;
15531 struct
15533 unsigned C5INTN : 1;
15534 unsigned C5INTP : 1;
15535 unsigned : 1;
15536 unsigned : 1;
15537 unsigned : 1;
15538 unsigned : 1;
15539 unsigned : 1;
15540 unsigned : 1;
15542 } __CM5CON1bits_t;
15544 extern __at(0x0911) volatile __CM5CON1bits_t CM5CON1bits;
15546 #define _CM5CON1_INTN 0x01
15547 #define _CM5CON1_C5INTN 0x01
15548 #define _CM5CON1_INTP 0x02
15549 #define _CM5CON1_C5INTP 0x02
15551 //==============================================================================
15554 //==============================================================================
15555 // CM5NSEL Bits
15557 extern __at(0x0912) __sfr CM5NSEL;
15559 typedef union
15561 struct
15563 unsigned C5NCH0 : 1;
15564 unsigned C5NCH1 : 1;
15565 unsigned C5NCH2 : 1;
15566 unsigned C5NCH3 : 1;
15567 unsigned : 1;
15568 unsigned : 1;
15569 unsigned : 1;
15570 unsigned : 1;
15573 struct
15575 unsigned C5NCH : 4;
15576 unsigned : 4;
15578 } __CM5NSELbits_t;
15580 extern __at(0x0912) volatile __CM5NSELbits_t CM5NSELbits;
15582 #define _C5NCH0 0x01
15583 #define _C5NCH1 0x02
15584 #define _C5NCH2 0x04
15585 #define _C5NCH3 0x08
15587 //==============================================================================
15590 //==============================================================================
15591 // CM5PSEL Bits
15593 extern __at(0x0913) __sfr CM5PSEL;
15595 typedef union
15597 struct
15599 unsigned PCH0 : 1;
15600 unsigned PCH1 : 1;
15601 unsigned PCH2 : 1;
15602 unsigned PCH3 : 1;
15603 unsigned : 1;
15604 unsigned : 1;
15605 unsigned : 1;
15606 unsigned : 1;
15609 struct
15611 unsigned C5PCH0 : 1;
15612 unsigned C5PCH1 : 1;
15613 unsigned C5PCH2 : 1;
15614 unsigned C5PCH3 : 1;
15615 unsigned : 1;
15616 unsigned : 1;
15617 unsigned : 1;
15618 unsigned : 1;
15621 struct
15623 unsigned C5PCH : 4;
15624 unsigned : 4;
15627 struct
15629 unsigned PCH : 4;
15630 unsigned : 4;
15632 } __CM5PSELbits_t;
15634 extern __at(0x0913) volatile __CM5PSELbits_t CM5PSELbits;
15636 #define _CM5PSEL_PCH0 0x01
15637 #define _CM5PSEL_C5PCH0 0x01
15638 #define _CM5PSEL_PCH1 0x02
15639 #define _CM5PSEL_C5PCH1 0x02
15640 #define _CM5PSEL_PCH2 0x04
15641 #define _CM5PSEL_C5PCH2 0x04
15642 #define _CM5PSEL_PCH3 0x08
15643 #define _CM5PSEL_C5PCH3 0x08
15645 //==============================================================================
15648 //==============================================================================
15649 // CM6CON0 Bits
15651 extern __at(0x0914) __sfr CM6CON0;
15653 typedef union
15655 struct
15657 unsigned SYNC : 1;
15658 unsigned HYS : 1;
15659 unsigned Reserved : 1;
15660 unsigned ZLF : 1;
15661 unsigned POL : 1;
15662 unsigned : 1;
15663 unsigned OUT : 1;
15664 unsigned ON : 1;
15667 struct
15669 unsigned C6SYNC : 1;
15670 unsigned C6HYS : 1;
15671 unsigned C6SP : 1;
15672 unsigned C6ZLF : 1;
15673 unsigned C6POL : 1;
15674 unsigned : 1;
15675 unsigned C6OUT : 1;
15676 unsigned C6ON : 1;
15678 } __CM6CON0bits_t;
15680 extern __at(0x0914) volatile __CM6CON0bits_t CM6CON0bits;
15682 #define _CM6CON0_SYNC 0x01
15683 #define _CM6CON0_C6SYNC 0x01
15684 #define _CM6CON0_HYS 0x02
15685 #define _CM6CON0_C6HYS 0x02
15686 #define _CM6CON0_Reserved 0x04
15687 #define _CM6CON0_C6SP 0x04
15688 #define _CM6CON0_ZLF 0x08
15689 #define _CM6CON0_C6ZLF 0x08
15690 #define _CM6CON0_POL 0x10
15691 #define _CM6CON0_C6POL 0x10
15692 #define _CM6CON0_OUT 0x40
15693 #define _CM6CON0_C6OUT 0x40
15694 #define _CM6CON0_ON 0x80
15695 #define _CM6CON0_C6ON 0x80
15697 //==============================================================================
15700 //==============================================================================
15701 // CM6CON1 Bits
15703 extern __at(0x0915) __sfr CM6CON1;
15705 typedef union
15707 struct
15709 unsigned INTN : 1;
15710 unsigned INTP : 1;
15711 unsigned : 1;
15712 unsigned : 1;
15713 unsigned : 1;
15714 unsigned : 1;
15715 unsigned : 1;
15716 unsigned : 1;
15719 struct
15721 unsigned C6INTN : 1;
15722 unsigned C6INTP : 1;
15723 unsigned : 1;
15724 unsigned : 1;
15725 unsigned : 1;
15726 unsigned : 1;
15727 unsigned : 1;
15728 unsigned : 1;
15730 } __CM6CON1bits_t;
15732 extern __at(0x0915) volatile __CM6CON1bits_t CM6CON1bits;
15734 #define _CM6CON1_INTN 0x01
15735 #define _CM6CON1_C6INTN 0x01
15736 #define _CM6CON1_INTP 0x02
15737 #define _CM6CON1_C6INTP 0x02
15739 //==============================================================================
15742 //==============================================================================
15743 // CM6NSEL Bits
15745 extern __at(0x0916) __sfr CM6NSEL;
15747 typedef union
15749 struct
15751 unsigned C6NCH0 : 1;
15752 unsigned C6NCH1 : 1;
15753 unsigned C6NCH2 : 1;
15754 unsigned C6NCH3 : 1;
15755 unsigned : 1;
15756 unsigned : 1;
15757 unsigned : 1;
15758 unsigned : 1;
15761 struct
15763 unsigned C6NCH : 4;
15764 unsigned : 4;
15766 } __CM6NSELbits_t;
15768 extern __at(0x0916) volatile __CM6NSELbits_t CM6NSELbits;
15770 #define _C6NCH0 0x01
15771 #define _C6NCH1 0x02
15772 #define _C6NCH2 0x04
15773 #define _C6NCH3 0x08
15775 //==============================================================================
15778 //==============================================================================
15779 // CM6PSEL Bits
15781 extern __at(0x0917) __sfr CM6PSEL;
15783 typedef union
15785 struct
15787 unsigned PCH0 : 1;
15788 unsigned PCH1 : 1;
15789 unsigned PCH2 : 1;
15790 unsigned PCH3 : 1;
15791 unsigned : 1;
15792 unsigned : 1;
15793 unsigned : 1;
15794 unsigned : 1;
15797 struct
15799 unsigned C6PCH0 : 1;
15800 unsigned C6PCH1 : 1;
15801 unsigned C6PCH2 : 1;
15802 unsigned C6PCH3 : 1;
15803 unsigned : 1;
15804 unsigned : 1;
15805 unsigned : 1;
15806 unsigned : 1;
15809 struct
15811 unsigned C6PCH : 4;
15812 unsigned : 4;
15815 struct
15817 unsigned PCH : 4;
15818 unsigned : 4;
15820 } __CM6PSELbits_t;
15822 extern __at(0x0917) volatile __CM6PSELbits_t CM6PSELbits;
15824 #define _CM6PSEL_PCH0 0x01
15825 #define _CM6PSEL_C6PCH0 0x01
15826 #define _CM6PSEL_PCH1 0x02
15827 #define _CM6PSEL_C6PCH1 0x02
15828 #define _CM6PSEL_PCH2 0x04
15829 #define _CM6PSEL_C6PCH2 0x04
15830 #define _CM6PSEL_PCH3 0x08
15831 #define _CM6PSEL_C6PCH3 0x08
15833 //==============================================================================
15836 //==============================================================================
15837 // PWMEN Bits
15839 extern __at(0x0D8E) __sfr PWMEN;
15841 typedef struct
15843 unsigned MPWM5EN : 1;
15844 unsigned MPWM6EN : 1;
15845 unsigned MPWM11EN : 1;
15846 unsigned : 1;
15847 unsigned : 1;
15848 unsigned : 1;
15849 unsigned : 1;
15850 unsigned : 1;
15851 } __PWMENbits_t;
15853 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits;
15855 #define _MPWM5EN 0x01
15856 #define _MPWM6EN 0x02
15857 #define _MPWM11EN 0x04
15859 //==============================================================================
15862 //==============================================================================
15863 // PWMLD Bits
15865 extern __at(0x0D8F) __sfr PWMLD;
15867 typedef struct
15869 unsigned MPWM5LD : 1;
15870 unsigned MPWM6LD : 1;
15871 unsigned MPWM11LD : 1;
15872 unsigned : 1;
15873 unsigned : 1;
15874 unsigned : 1;
15875 unsigned : 1;
15876 unsigned : 1;
15877 } __PWMLDbits_t;
15879 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits;
15881 #define _MPWM5LD 0x01
15882 #define _MPWM6LD 0x02
15883 #define _MPWM11LD 0x04
15885 //==============================================================================
15888 //==============================================================================
15889 // PWMOUT Bits
15891 extern __at(0x0D90) __sfr PWMOUT;
15893 typedef struct
15895 unsigned MPWM5OUT : 1;
15896 unsigned MPWM6OUT : 1;
15897 unsigned MPWM11OUT : 1;
15898 unsigned : 1;
15899 unsigned : 1;
15900 unsigned : 1;
15901 unsigned : 1;
15902 unsigned : 1;
15903 } __PWMOUTbits_t;
15905 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits;
15907 #define _MPWM5OUT 0x01
15908 #define _MPWM6OUT 0x02
15909 #define _MPWM11OUT 0x04
15911 //==============================================================================
15913 extern __at(0x0D91) __sfr PWM5PH;
15915 //==============================================================================
15916 // PWM5PHL Bits
15918 extern __at(0x0D91) __sfr PWM5PHL;
15920 typedef struct
15922 unsigned PWM5PHL0 : 1;
15923 unsigned PWM5PHL1 : 1;
15924 unsigned PWM5PHL2 : 1;
15925 unsigned PWM5PHL3 : 1;
15926 unsigned PWM5PHL4 : 1;
15927 unsigned PWM5PHL5 : 1;
15928 unsigned PWM5PHL6 : 1;
15929 unsigned PWM5PHL7 : 1;
15930 } __PWM5PHLbits_t;
15932 extern __at(0x0D91) volatile __PWM5PHLbits_t PWM5PHLbits;
15934 #define _PWM5PHL0 0x01
15935 #define _PWM5PHL1 0x02
15936 #define _PWM5PHL2 0x04
15937 #define _PWM5PHL3 0x08
15938 #define _PWM5PHL4 0x10
15939 #define _PWM5PHL5 0x20
15940 #define _PWM5PHL6 0x40
15941 #define _PWM5PHL7 0x80
15943 //==============================================================================
15946 //==============================================================================
15947 // PWM5PHH Bits
15949 extern __at(0x0D92) __sfr PWM5PHH;
15951 typedef struct
15953 unsigned PWM5PHH0 : 1;
15954 unsigned PWM5PHH1 : 1;
15955 unsigned PWM5PHH2 : 1;
15956 unsigned PWM5PHH3 : 1;
15957 unsigned PWM5PHH4 : 1;
15958 unsigned PWM5PHH5 : 1;
15959 unsigned PWM5PHH6 : 1;
15960 unsigned PWM5PHH7 : 1;
15961 } __PWM5PHHbits_t;
15963 extern __at(0x0D92) volatile __PWM5PHHbits_t PWM5PHHbits;
15965 #define _PWM5PHH0 0x01
15966 #define _PWM5PHH1 0x02
15967 #define _PWM5PHH2 0x04
15968 #define _PWM5PHH3 0x08
15969 #define _PWM5PHH4 0x10
15970 #define _PWM5PHH5 0x20
15971 #define _PWM5PHH6 0x40
15972 #define _PWM5PHH7 0x80
15974 //==============================================================================
15976 extern __at(0x0D93) __sfr PWM5DC;
15978 //==============================================================================
15979 // PWM5DCL Bits
15981 extern __at(0x0D93) __sfr PWM5DCL;
15983 typedef struct
15985 unsigned PWM5DCL0 : 1;
15986 unsigned PWM5DCL1 : 1;
15987 unsigned PWM5DCL2 : 1;
15988 unsigned PWM5DCL3 : 1;
15989 unsigned PWM5DCL4 : 1;
15990 unsigned PWM5DCL5 : 1;
15991 unsigned PWM5DCL6 : 1;
15992 unsigned PWM5DCL7 : 1;
15993 } __PWM5DCLbits_t;
15995 extern __at(0x0D93) volatile __PWM5DCLbits_t PWM5DCLbits;
15997 #define _PWM5DCL0 0x01
15998 #define _PWM5DCL1 0x02
15999 #define _PWM5DCL2 0x04
16000 #define _PWM5DCL3 0x08
16001 #define _PWM5DCL4 0x10
16002 #define _PWM5DCL5 0x20
16003 #define _PWM5DCL6 0x40
16004 #define _PWM5DCL7 0x80
16006 //==============================================================================
16009 //==============================================================================
16010 // PWM5DCH Bits
16012 extern __at(0x0D94) __sfr PWM5DCH;
16014 typedef struct
16016 unsigned PWM5DCH0 : 1;
16017 unsigned PWM5DCH1 : 1;
16018 unsigned PWM5DCH2 : 1;
16019 unsigned PWM5DCH3 : 1;
16020 unsigned PWM5DCH4 : 1;
16021 unsigned PWM5DCH5 : 1;
16022 unsigned PWM5DCH6 : 1;
16023 unsigned PWM5DCH7 : 1;
16024 } __PWM5DCHbits_t;
16026 extern __at(0x0D94) volatile __PWM5DCHbits_t PWM5DCHbits;
16028 #define _PWM5DCH0 0x01
16029 #define _PWM5DCH1 0x02
16030 #define _PWM5DCH2 0x04
16031 #define _PWM5DCH3 0x08
16032 #define _PWM5DCH4 0x10
16033 #define _PWM5DCH5 0x20
16034 #define _PWM5DCH6 0x40
16035 #define _PWM5DCH7 0x80
16037 //==============================================================================
16039 extern __at(0x0D95) __sfr PWM5PR;
16041 //==============================================================================
16042 // PWM5PRL Bits
16044 extern __at(0x0D95) __sfr PWM5PRL;
16046 typedef struct
16048 unsigned PWM5PRL0 : 1;
16049 unsigned PWM5PRL1 : 1;
16050 unsigned PWM5PRL2 : 1;
16051 unsigned PWM5PRL3 : 1;
16052 unsigned PWM5PRL4 : 1;
16053 unsigned PWM5PRL5 : 1;
16054 unsigned PWM5PRL6 : 1;
16055 unsigned PWM5PRL7 : 1;
16056 } __PWM5PRLbits_t;
16058 extern __at(0x0D95) volatile __PWM5PRLbits_t PWM5PRLbits;
16060 #define _PWM5PRL0 0x01
16061 #define _PWM5PRL1 0x02
16062 #define _PWM5PRL2 0x04
16063 #define _PWM5PRL3 0x08
16064 #define _PWM5PRL4 0x10
16065 #define _PWM5PRL5 0x20
16066 #define _PWM5PRL6 0x40
16067 #define _PWM5PRL7 0x80
16069 //==============================================================================
16072 //==============================================================================
16073 // PWM5PRH Bits
16075 extern __at(0x0D96) __sfr PWM5PRH;
16077 typedef struct
16079 unsigned PWM5PRH0 : 1;
16080 unsigned PWM5PRH1 : 1;
16081 unsigned PWM5PRH2 : 1;
16082 unsigned PWM5PRH3 : 1;
16083 unsigned PWM5PRH4 : 1;
16084 unsigned PWM5PRH5 : 1;
16085 unsigned PWM5PRH6 : 1;
16086 unsigned PWM5PRH7 : 1;
16087 } __PWM5PRHbits_t;
16089 extern __at(0x0D96) volatile __PWM5PRHbits_t PWM5PRHbits;
16091 #define _PWM5PRH0 0x01
16092 #define _PWM5PRH1 0x02
16093 #define _PWM5PRH2 0x04
16094 #define _PWM5PRH3 0x08
16095 #define _PWM5PRH4 0x10
16096 #define _PWM5PRH5 0x20
16097 #define _PWM5PRH6 0x40
16098 #define _PWM5PRH7 0x80
16100 //==============================================================================
16102 extern __at(0x0D97) __sfr PWM5OF;
16104 //==============================================================================
16105 // PWM5OFL Bits
16107 extern __at(0x0D97) __sfr PWM5OFL;
16109 typedef struct
16111 unsigned PWM5OFL0 : 1;
16112 unsigned PWM5OFL1 : 1;
16113 unsigned PWM5OFL2 : 1;
16114 unsigned PWM5OFL3 : 1;
16115 unsigned PWM5OFL4 : 1;
16116 unsigned PWM5OFL5 : 1;
16117 unsigned PWM5OFL6 : 1;
16118 unsigned PWM5OFL7 : 1;
16119 } __PWM5OFLbits_t;
16121 extern __at(0x0D97) volatile __PWM5OFLbits_t PWM5OFLbits;
16123 #define _PWM5OFL0 0x01
16124 #define _PWM5OFL1 0x02
16125 #define _PWM5OFL2 0x04
16126 #define _PWM5OFL3 0x08
16127 #define _PWM5OFL4 0x10
16128 #define _PWM5OFL5 0x20
16129 #define _PWM5OFL6 0x40
16130 #define _PWM5OFL7 0x80
16132 //==============================================================================
16135 //==============================================================================
16136 // PWM5OFH Bits
16138 extern __at(0x0D98) __sfr PWM5OFH;
16140 typedef struct
16142 unsigned PWM5OFH0 : 1;
16143 unsigned PWM5OFH1 : 1;
16144 unsigned PWM5OFH2 : 1;
16145 unsigned PWM5OFH3 : 1;
16146 unsigned PWM5OFH4 : 1;
16147 unsigned PWM5OFH5 : 1;
16148 unsigned PWM5OFH6 : 1;
16149 unsigned PWM5OFH7 : 1;
16150 } __PWM5OFHbits_t;
16152 extern __at(0x0D98) volatile __PWM5OFHbits_t PWM5OFHbits;
16154 #define _PWM5OFH0 0x01
16155 #define _PWM5OFH1 0x02
16156 #define _PWM5OFH2 0x04
16157 #define _PWM5OFH3 0x08
16158 #define _PWM5OFH4 0x10
16159 #define _PWM5OFH5 0x20
16160 #define _PWM5OFH6 0x40
16161 #define _PWM5OFH7 0x80
16163 //==============================================================================
16165 extern __at(0x0D99) __sfr PWM5TMR;
16167 //==============================================================================
16168 // PWM5TMRL Bits
16170 extern __at(0x0D99) __sfr PWM5TMRL;
16172 typedef struct
16174 unsigned PWM5TMRL0 : 1;
16175 unsigned PWM5TMRL1 : 1;
16176 unsigned PWM5TMRL2 : 1;
16177 unsigned PWM5TMRL3 : 1;
16178 unsigned PWM5TMRL4 : 1;
16179 unsigned PWM5TMRL5 : 1;
16180 unsigned PWM5TMRL6 : 1;
16181 unsigned PWM5TMRL7 : 1;
16182 } __PWM5TMRLbits_t;
16184 extern __at(0x0D99) volatile __PWM5TMRLbits_t PWM5TMRLbits;
16186 #define _PWM5TMRL0 0x01
16187 #define _PWM5TMRL1 0x02
16188 #define _PWM5TMRL2 0x04
16189 #define _PWM5TMRL3 0x08
16190 #define _PWM5TMRL4 0x10
16191 #define _PWM5TMRL5 0x20
16192 #define _PWM5TMRL6 0x40
16193 #define _PWM5TMRL7 0x80
16195 //==============================================================================
16198 //==============================================================================
16199 // PWM5TMRH Bits
16201 extern __at(0x0D9A) __sfr PWM5TMRH;
16203 typedef struct
16205 unsigned PWM5TMRH0 : 1;
16206 unsigned PWM5TMRH1 : 1;
16207 unsigned PWM5TMRH2 : 1;
16208 unsigned PWM5TMRH3 : 1;
16209 unsigned PWM5TMRH4 : 1;
16210 unsigned PWM5TMRH5 : 1;
16211 unsigned PWM5TMRH6 : 1;
16212 unsigned PWM5TMRH7 : 1;
16213 } __PWM5TMRHbits_t;
16215 extern __at(0x0D9A) volatile __PWM5TMRHbits_t PWM5TMRHbits;
16217 #define _PWM5TMRH0 0x01
16218 #define _PWM5TMRH1 0x02
16219 #define _PWM5TMRH2 0x04
16220 #define _PWM5TMRH3 0x08
16221 #define _PWM5TMRH4 0x10
16222 #define _PWM5TMRH5 0x20
16223 #define _PWM5TMRH6 0x40
16224 #define _PWM5TMRH7 0x80
16226 //==============================================================================
16229 //==============================================================================
16230 // PWM5CON Bits
16232 extern __at(0x0D9B) __sfr PWM5CON;
16234 typedef union
16236 struct
16238 unsigned : 1;
16239 unsigned : 1;
16240 unsigned PWM5MODE0 : 1;
16241 unsigned PWM5MODE1 : 1;
16242 unsigned POL : 1;
16243 unsigned OUT : 1;
16244 unsigned : 1;
16245 unsigned EN : 1;
16248 struct
16250 unsigned : 1;
16251 unsigned : 1;
16252 unsigned MODE0 : 1;
16253 unsigned MODE1 : 1;
16254 unsigned PWM5POL : 1;
16255 unsigned PWM5OUT : 1;
16256 unsigned : 1;
16257 unsigned PWM5EN : 1;
16260 struct
16262 unsigned : 2;
16263 unsigned MODE : 2;
16264 unsigned : 4;
16267 struct
16269 unsigned : 2;
16270 unsigned PWM5MODE : 2;
16271 unsigned : 4;
16273 } __PWM5CONbits_t;
16275 extern __at(0x0D9B) volatile __PWM5CONbits_t PWM5CONbits;
16277 #define _PWM5CON_PWM5MODE0 0x04
16278 #define _PWM5CON_MODE0 0x04
16279 #define _PWM5CON_PWM5MODE1 0x08
16280 #define _PWM5CON_MODE1 0x08
16281 #define _PWM5CON_POL 0x10
16282 #define _PWM5CON_PWM5POL 0x10
16283 #define _PWM5CON_OUT 0x20
16284 #define _PWM5CON_PWM5OUT 0x20
16285 #define _PWM5CON_EN 0x80
16286 #define _PWM5CON_PWM5EN 0x80
16288 //==============================================================================
16291 //==============================================================================
16292 // PWM5INTCON Bits
16294 extern __at(0x0D9C) __sfr PWM5INTCON;
16296 typedef union
16298 struct
16300 unsigned PRIE : 1;
16301 unsigned DCIE : 1;
16302 unsigned PHIE : 1;
16303 unsigned OFIE : 1;
16304 unsigned : 1;
16305 unsigned : 1;
16306 unsigned : 1;
16307 unsigned : 1;
16310 struct
16312 unsigned PWM5PRIE : 1;
16313 unsigned PWM5DCIE : 1;
16314 unsigned PWM5PHIE : 1;
16315 unsigned PWM5OFIE : 1;
16316 unsigned : 1;
16317 unsigned : 1;
16318 unsigned : 1;
16319 unsigned : 1;
16321 } __PWM5INTCONbits_t;
16323 extern __at(0x0D9C) volatile __PWM5INTCONbits_t PWM5INTCONbits;
16325 #define _PRIE 0x01
16326 #define _PWM5PRIE 0x01
16327 #define _DCIE 0x02
16328 #define _PWM5DCIE 0x02
16329 #define _PHIE 0x04
16330 #define _PWM5PHIE 0x04
16331 #define _OFIE 0x08
16332 #define _PWM5OFIE 0x08
16334 //==============================================================================
16337 //==============================================================================
16338 // PWM5INTE Bits
16340 extern __at(0x0D9C) __sfr PWM5INTE;
16342 typedef union
16344 struct
16346 unsigned PRIE : 1;
16347 unsigned DCIE : 1;
16348 unsigned PHIE : 1;
16349 unsigned OFIE : 1;
16350 unsigned : 1;
16351 unsigned : 1;
16352 unsigned : 1;
16353 unsigned : 1;
16356 struct
16358 unsigned PWM5PRIE : 1;
16359 unsigned PWM5DCIE : 1;
16360 unsigned PWM5PHIE : 1;
16361 unsigned PWM5OFIE : 1;
16362 unsigned : 1;
16363 unsigned : 1;
16364 unsigned : 1;
16365 unsigned : 1;
16367 } __PWM5INTEbits_t;
16369 extern __at(0x0D9C) volatile __PWM5INTEbits_t PWM5INTEbits;
16371 #define _PWM5INTE_PRIE 0x01
16372 #define _PWM5INTE_PWM5PRIE 0x01
16373 #define _PWM5INTE_DCIE 0x02
16374 #define _PWM5INTE_PWM5DCIE 0x02
16375 #define _PWM5INTE_PHIE 0x04
16376 #define _PWM5INTE_PWM5PHIE 0x04
16377 #define _PWM5INTE_OFIE 0x08
16378 #define _PWM5INTE_PWM5OFIE 0x08
16380 //==============================================================================
16383 //==============================================================================
16384 // PWM5INTF Bits
16386 extern __at(0x0D9D) __sfr PWM5INTF;
16388 typedef union
16390 struct
16392 unsigned PRIF : 1;
16393 unsigned DCIF : 1;
16394 unsigned PHIF : 1;
16395 unsigned OFIF : 1;
16396 unsigned : 1;
16397 unsigned : 1;
16398 unsigned : 1;
16399 unsigned : 1;
16402 struct
16404 unsigned PWM5PRIF : 1;
16405 unsigned PWM5DCIF : 1;
16406 unsigned PWM5PHIF : 1;
16407 unsigned PWM5OFIF : 1;
16408 unsigned : 1;
16409 unsigned : 1;
16410 unsigned : 1;
16411 unsigned : 1;
16413 } __PWM5INTFbits_t;
16415 extern __at(0x0D9D) volatile __PWM5INTFbits_t PWM5INTFbits;
16417 #define _PRIF 0x01
16418 #define _PWM5PRIF 0x01
16419 #define _DCIF 0x02
16420 #define _PWM5DCIF 0x02
16421 #define _PHIF 0x04
16422 #define _PWM5PHIF 0x04
16423 #define _OFIF 0x08
16424 #define _PWM5OFIF 0x08
16426 //==============================================================================
16429 //==============================================================================
16430 // PWM5INTFLG Bits
16432 extern __at(0x0D9D) __sfr PWM5INTFLG;
16434 typedef union
16436 struct
16438 unsigned PRIF : 1;
16439 unsigned DCIF : 1;
16440 unsigned PHIF : 1;
16441 unsigned OFIF : 1;
16442 unsigned : 1;
16443 unsigned : 1;
16444 unsigned : 1;
16445 unsigned : 1;
16448 struct
16450 unsigned PWM5PRIF : 1;
16451 unsigned PWM5DCIF : 1;
16452 unsigned PWM5PHIF : 1;
16453 unsigned PWM5OFIF : 1;
16454 unsigned : 1;
16455 unsigned : 1;
16456 unsigned : 1;
16457 unsigned : 1;
16459 } __PWM5INTFLGbits_t;
16461 extern __at(0x0D9D) volatile __PWM5INTFLGbits_t PWM5INTFLGbits;
16463 #define _PWM5INTFLG_PRIF 0x01
16464 #define _PWM5INTFLG_PWM5PRIF 0x01
16465 #define _PWM5INTFLG_DCIF 0x02
16466 #define _PWM5INTFLG_PWM5DCIF 0x02
16467 #define _PWM5INTFLG_PHIF 0x04
16468 #define _PWM5INTFLG_PWM5PHIF 0x04
16469 #define _PWM5INTFLG_OFIF 0x08
16470 #define _PWM5INTFLG_PWM5OFIF 0x08
16472 //==============================================================================
16475 //==============================================================================
16476 // PWM5CLKCON Bits
16478 extern __at(0x0D9E) __sfr PWM5CLKCON;
16480 typedef union
16482 struct
16484 unsigned PWM5CS0 : 1;
16485 unsigned PWM5CS1 : 1;
16486 unsigned PWM5CS2 : 1;
16487 unsigned : 1;
16488 unsigned PWM5PS0 : 1;
16489 unsigned PWM5PS1 : 1;
16490 unsigned PWM5PS2 : 1;
16491 unsigned : 1;
16494 struct
16496 unsigned CS0 : 1;
16497 unsigned CS1 : 1;
16498 unsigned CS2 : 1;
16499 unsigned : 1;
16500 unsigned PS0 : 1;
16501 unsigned PS1 : 1;
16502 unsigned PS2 : 1;
16503 unsigned : 1;
16506 struct
16508 unsigned PWM5CS : 3;
16509 unsigned : 5;
16512 struct
16514 unsigned CS : 3;
16515 unsigned : 5;
16518 struct
16520 unsigned : 4;
16521 unsigned PS : 3;
16522 unsigned : 1;
16525 struct
16527 unsigned : 4;
16528 unsigned PWM5PS : 3;
16529 unsigned : 1;
16531 } __PWM5CLKCONbits_t;
16533 extern __at(0x0D9E) volatile __PWM5CLKCONbits_t PWM5CLKCONbits;
16535 #define _PWM5CLKCON_PWM5CS0 0x01
16536 #define _PWM5CLKCON_CS0 0x01
16537 #define _PWM5CLKCON_PWM5CS1 0x02
16538 #define _PWM5CLKCON_CS1 0x02
16539 #define _PWM5CLKCON_PWM5CS2 0x04
16540 #define _PWM5CLKCON_CS2 0x04
16541 #define _PWM5CLKCON_PWM5PS0 0x10
16542 #define _PWM5CLKCON_PS0 0x10
16543 #define _PWM5CLKCON_PWM5PS1 0x20
16544 #define _PWM5CLKCON_PS1 0x20
16545 #define _PWM5CLKCON_PWM5PS2 0x40
16546 #define _PWM5CLKCON_PS2 0x40
16548 //==============================================================================
16551 //==============================================================================
16552 // PWM5LDCON Bits
16554 extern __at(0x0D9F) __sfr PWM5LDCON;
16556 typedef union
16558 struct
16560 unsigned PWM5LDS0 : 1;
16561 unsigned PWM5LDS1 : 1;
16562 unsigned : 1;
16563 unsigned : 1;
16564 unsigned : 1;
16565 unsigned : 1;
16566 unsigned LDT : 1;
16567 unsigned LDA : 1;
16570 struct
16572 unsigned LDS0 : 1;
16573 unsigned LDS1 : 1;
16574 unsigned : 1;
16575 unsigned : 1;
16576 unsigned : 1;
16577 unsigned : 1;
16578 unsigned PWM5LDM : 1;
16579 unsigned PWM5LD : 1;
16582 struct
16584 unsigned LDS : 2;
16585 unsigned : 6;
16588 struct
16590 unsigned PWM5LDS : 2;
16591 unsigned : 6;
16593 } __PWM5LDCONbits_t;
16595 extern __at(0x0D9F) volatile __PWM5LDCONbits_t PWM5LDCONbits;
16597 #define _PWM5LDS0 0x01
16598 #define _LDS0 0x01
16599 #define _PWM5LDS1 0x02
16600 #define _LDS1 0x02
16601 #define _LDT 0x40
16602 #define _PWM5LDM 0x40
16603 #define _LDA 0x80
16604 #define _PWM5LD 0x80
16606 //==============================================================================
16609 //==============================================================================
16610 // PWM5OFCON Bits
16612 extern __at(0x0DA0) __sfr PWM5OFCON;
16614 typedef union
16616 struct
16618 unsigned PWM5OFS0 : 1;
16619 unsigned PWM5OFS1 : 1;
16620 unsigned : 1;
16621 unsigned : 1;
16622 unsigned OFO : 1;
16623 unsigned PWM5OFM0 : 1;
16624 unsigned PWM5OFM1 : 1;
16625 unsigned : 1;
16628 struct
16630 unsigned OFS0 : 1;
16631 unsigned OFS1 : 1;
16632 unsigned : 1;
16633 unsigned : 1;
16634 unsigned PWM5OFMC : 1;
16635 unsigned OFM0 : 1;
16636 unsigned OFM1 : 1;
16637 unsigned : 1;
16640 struct
16642 unsigned PWM5OFS : 2;
16643 unsigned : 6;
16646 struct
16648 unsigned OFS : 2;
16649 unsigned : 6;
16652 struct
16654 unsigned : 5;
16655 unsigned OFM : 2;
16656 unsigned : 1;
16659 struct
16661 unsigned : 5;
16662 unsigned PWM5OFM : 2;
16663 unsigned : 1;
16665 } __PWM5OFCONbits_t;
16667 extern __at(0x0DA0) volatile __PWM5OFCONbits_t PWM5OFCONbits;
16669 #define _PWM5OFS0 0x01
16670 #define _OFS0 0x01
16671 #define _PWM5OFS1 0x02
16672 #define _OFS1 0x02
16673 #define _OFO 0x10
16674 #define _PWM5OFMC 0x10
16675 #define _PWM5OFM0 0x20
16676 #define _OFM0 0x20
16677 #define _PWM5OFM1 0x40
16678 #define _OFM1 0x40
16680 //==============================================================================
16682 extern __at(0x0DA1) __sfr PWM6PH;
16684 //==============================================================================
16685 // PWM6PHL Bits
16687 extern __at(0x0DA1) __sfr PWM6PHL;
16689 typedef struct
16691 unsigned PWM6PHL0 : 1;
16692 unsigned PWM6PHL1 : 1;
16693 unsigned PWM6PHL2 : 1;
16694 unsigned PWM6PHL3 : 1;
16695 unsigned PWM6PHL4 : 1;
16696 unsigned PWM6PHL5 : 1;
16697 unsigned PWM6PHL6 : 1;
16698 unsigned PWM6PHL7 : 1;
16699 } __PWM6PHLbits_t;
16701 extern __at(0x0DA1) volatile __PWM6PHLbits_t PWM6PHLbits;
16703 #define _PWM6PHL0 0x01
16704 #define _PWM6PHL1 0x02
16705 #define _PWM6PHL2 0x04
16706 #define _PWM6PHL3 0x08
16707 #define _PWM6PHL4 0x10
16708 #define _PWM6PHL5 0x20
16709 #define _PWM6PHL6 0x40
16710 #define _PWM6PHL7 0x80
16712 //==============================================================================
16715 //==============================================================================
16716 // PWM6PHH Bits
16718 extern __at(0x0DA2) __sfr PWM6PHH;
16720 typedef struct
16722 unsigned PWM6PHH0 : 1;
16723 unsigned PWM6PHH1 : 1;
16724 unsigned PWM6PHH2 : 1;
16725 unsigned PWM6PHH3 : 1;
16726 unsigned PWM6PHH4 : 1;
16727 unsigned PWM6PHH5 : 1;
16728 unsigned PWM6PHH6 : 1;
16729 unsigned PWM6PHH7 : 1;
16730 } __PWM6PHHbits_t;
16732 extern __at(0x0DA2) volatile __PWM6PHHbits_t PWM6PHHbits;
16734 #define _PWM6PHH0 0x01
16735 #define _PWM6PHH1 0x02
16736 #define _PWM6PHH2 0x04
16737 #define _PWM6PHH3 0x08
16738 #define _PWM6PHH4 0x10
16739 #define _PWM6PHH5 0x20
16740 #define _PWM6PHH6 0x40
16741 #define _PWM6PHH7 0x80
16743 //==============================================================================
16745 extern __at(0x0DA3) __sfr PWM6DC;
16747 //==============================================================================
16748 // PWM6DCL Bits
16750 extern __at(0x0DA3) __sfr PWM6DCL;
16752 typedef struct
16754 unsigned PWM6DCL0 : 1;
16755 unsigned PWM6DCL1 : 1;
16756 unsigned PWM6DCL2 : 1;
16757 unsigned PWM6DCL3 : 1;
16758 unsigned PWM6DCL4 : 1;
16759 unsigned PWM6DCL5 : 1;
16760 unsigned PWM6DCL6 : 1;
16761 unsigned PWM6DCL7 : 1;
16762 } __PWM6DCLbits_t;
16764 extern __at(0x0DA3) volatile __PWM6DCLbits_t PWM6DCLbits;
16766 #define _PWM6DCL0 0x01
16767 #define _PWM6DCL1 0x02
16768 #define _PWM6DCL2 0x04
16769 #define _PWM6DCL3 0x08
16770 #define _PWM6DCL4 0x10
16771 #define _PWM6DCL5 0x20
16772 #define _PWM6DCL6 0x40
16773 #define _PWM6DCL7 0x80
16775 //==============================================================================
16778 //==============================================================================
16779 // PWM6DCH Bits
16781 extern __at(0x0DA4) __sfr PWM6DCH;
16783 typedef struct
16785 unsigned PWM6DCH0 : 1;
16786 unsigned PWM6DCH1 : 1;
16787 unsigned PWM6DCH2 : 1;
16788 unsigned PWM6DCH3 : 1;
16789 unsigned PWM6DCH4 : 1;
16790 unsigned PWM6DCH5 : 1;
16791 unsigned PWM6DCH6 : 1;
16792 unsigned PWM6DCH7 : 1;
16793 } __PWM6DCHbits_t;
16795 extern __at(0x0DA4) volatile __PWM6DCHbits_t PWM6DCHbits;
16797 #define _PWM6DCH0 0x01
16798 #define _PWM6DCH1 0x02
16799 #define _PWM6DCH2 0x04
16800 #define _PWM6DCH3 0x08
16801 #define _PWM6DCH4 0x10
16802 #define _PWM6DCH5 0x20
16803 #define _PWM6DCH6 0x40
16804 #define _PWM6DCH7 0x80
16806 //==============================================================================
16808 extern __at(0x0DA5) __sfr PWM6PR;
16810 //==============================================================================
16811 // PWM6PRL Bits
16813 extern __at(0x0DA5) __sfr PWM6PRL;
16815 typedef struct
16817 unsigned PWM6PRL0 : 1;
16818 unsigned PWM6PRL1 : 1;
16819 unsigned PWM6PRL2 : 1;
16820 unsigned PWM6PRL3 : 1;
16821 unsigned PWM6PRL4 : 1;
16822 unsigned PWM6PRL5 : 1;
16823 unsigned PWM6PRL6 : 1;
16824 unsigned PWM6PRL7 : 1;
16825 } __PWM6PRLbits_t;
16827 extern __at(0x0DA5) volatile __PWM6PRLbits_t PWM6PRLbits;
16829 #define _PWM6PRL0 0x01
16830 #define _PWM6PRL1 0x02
16831 #define _PWM6PRL2 0x04
16832 #define _PWM6PRL3 0x08
16833 #define _PWM6PRL4 0x10
16834 #define _PWM6PRL5 0x20
16835 #define _PWM6PRL6 0x40
16836 #define _PWM6PRL7 0x80
16838 //==============================================================================
16841 //==============================================================================
16842 // PWM6PRH Bits
16844 extern __at(0x0DA6) __sfr PWM6PRH;
16846 typedef struct
16848 unsigned PWM6PRH0 : 1;
16849 unsigned PWM6PRH1 : 1;
16850 unsigned PWM6PRH2 : 1;
16851 unsigned PWM6PRH3 : 1;
16852 unsigned PWM6PRH4 : 1;
16853 unsigned PWM6PRH5 : 1;
16854 unsigned PWM6PRH6 : 1;
16855 unsigned PWM6PRH7 : 1;
16856 } __PWM6PRHbits_t;
16858 extern __at(0x0DA6) volatile __PWM6PRHbits_t PWM6PRHbits;
16860 #define _PWM6PRH0 0x01
16861 #define _PWM6PRH1 0x02
16862 #define _PWM6PRH2 0x04
16863 #define _PWM6PRH3 0x08
16864 #define _PWM6PRH4 0x10
16865 #define _PWM6PRH5 0x20
16866 #define _PWM6PRH6 0x40
16867 #define _PWM6PRH7 0x80
16869 //==============================================================================
16871 extern __at(0x0DA7) __sfr PWM6OF;
16873 //==============================================================================
16874 // PWM6OFL Bits
16876 extern __at(0x0DA7) __sfr PWM6OFL;
16878 typedef struct
16880 unsigned PWM6OFL0 : 1;
16881 unsigned PWM6OFL1 : 1;
16882 unsigned PWM6OFL2 : 1;
16883 unsigned PWM6OFL3 : 1;
16884 unsigned PWM6OFL4 : 1;
16885 unsigned PWM6OFL5 : 1;
16886 unsigned PWM6OFL6 : 1;
16887 unsigned PWM6OFL7 : 1;
16888 } __PWM6OFLbits_t;
16890 extern __at(0x0DA7) volatile __PWM6OFLbits_t PWM6OFLbits;
16892 #define _PWM6OFL0 0x01
16893 #define _PWM6OFL1 0x02
16894 #define _PWM6OFL2 0x04
16895 #define _PWM6OFL3 0x08
16896 #define _PWM6OFL4 0x10
16897 #define _PWM6OFL5 0x20
16898 #define _PWM6OFL6 0x40
16899 #define _PWM6OFL7 0x80
16901 //==============================================================================
16904 //==============================================================================
16905 // PWM6OFH Bits
16907 extern __at(0x0DA8) __sfr PWM6OFH;
16909 typedef struct
16911 unsigned PWM6OFH0 : 1;
16912 unsigned PWM6OFH1 : 1;
16913 unsigned PWM6OFH2 : 1;
16914 unsigned PWM6OFH3 : 1;
16915 unsigned PWM6OFH4 : 1;
16916 unsigned PWM6OFH5 : 1;
16917 unsigned PWM6OFH6 : 1;
16918 unsigned PWM6OFH7 : 1;
16919 } __PWM6OFHbits_t;
16921 extern __at(0x0DA8) volatile __PWM6OFHbits_t PWM6OFHbits;
16923 #define _PWM6OFH0 0x01
16924 #define _PWM6OFH1 0x02
16925 #define _PWM6OFH2 0x04
16926 #define _PWM6OFH3 0x08
16927 #define _PWM6OFH4 0x10
16928 #define _PWM6OFH5 0x20
16929 #define _PWM6OFH6 0x40
16930 #define _PWM6OFH7 0x80
16932 //==============================================================================
16934 extern __at(0x0DA9) __sfr PWM6TMR;
16936 //==============================================================================
16937 // PWM6TMRL Bits
16939 extern __at(0x0DA9) __sfr PWM6TMRL;
16941 typedef struct
16943 unsigned PWM6TMRL0 : 1;
16944 unsigned PWM6TMRL1 : 1;
16945 unsigned PWM6TMRL2 : 1;
16946 unsigned PWM6TMRL3 : 1;
16947 unsigned PWM6TMRL4 : 1;
16948 unsigned PWM6TMRL5 : 1;
16949 unsigned PWM6TMRL6 : 1;
16950 unsigned PWM6TMRL7 : 1;
16951 } __PWM6TMRLbits_t;
16953 extern __at(0x0DA9) volatile __PWM6TMRLbits_t PWM6TMRLbits;
16955 #define _PWM6TMRL0 0x01
16956 #define _PWM6TMRL1 0x02
16957 #define _PWM6TMRL2 0x04
16958 #define _PWM6TMRL3 0x08
16959 #define _PWM6TMRL4 0x10
16960 #define _PWM6TMRL5 0x20
16961 #define _PWM6TMRL6 0x40
16962 #define _PWM6TMRL7 0x80
16964 //==============================================================================
16967 //==============================================================================
16968 // PWM6TMRH Bits
16970 extern __at(0x0DAA) __sfr PWM6TMRH;
16972 typedef struct
16974 unsigned PWM6TMRH0 : 1;
16975 unsigned PWM6TMRH1 : 1;
16976 unsigned PWM6TMRH2 : 1;
16977 unsigned PWM6TMRH3 : 1;
16978 unsigned PWM6TMRH4 : 1;
16979 unsigned PWM6TMRH5 : 1;
16980 unsigned PWM6TMRH6 : 1;
16981 unsigned PWM6TMRH7 : 1;
16982 } __PWM6TMRHbits_t;
16984 extern __at(0x0DAA) volatile __PWM6TMRHbits_t PWM6TMRHbits;
16986 #define _PWM6TMRH0 0x01
16987 #define _PWM6TMRH1 0x02
16988 #define _PWM6TMRH2 0x04
16989 #define _PWM6TMRH3 0x08
16990 #define _PWM6TMRH4 0x10
16991 #define _PWM6TMRH5 0x20
16992 #define _PWM6TMRH6 0x40
16993 #define _PWM6TMRH7 0x80
16995 //==============================================================================
16998 //==============================================================================
16999 // PWM6CON Bits
17001 extern __at(0x0DAB) __sfr PWM6CON;
17003 typedef union
17005 struct
17007 unsigned : 1;
17008 unsigned : 1;
17009 unsigned PWM6MODE0 : 1;
17010 unsigned PWM6MODE1 : 1;
17011 unsigned POL : 1;
17012 unsigned OUT : 1;
17013 unsigned : 1;
17014 unsigned EN : 1;
17017 struct
17019 unsigned : 1;
17020 unsigned : 1;
17021 unsigned MODE0 : 1;
17022 unsigned MODE1 : 1;
17023 unsigned PWM6POL : 1;
17024 unsigned PWM6OUT : 1;
17025 unsigned : 1;
17026 unsigned PWM6EN : 1;
17029 struct
17031 unsigned : 2;
17032 unsigned PWM6MODE : 2;
17033 unsigned : 4;
17036 struct
17038 unsigned : 2;
17039 unsigned MODE : 2;
17040 unsigned : 4;
17042 } __PWM6CONbits_t;
17044 extern __at(0x0DAB) volatile __PWM6CONbits_t PWM6CONbits;
17046 #define _PWM6CON_PWM6MODE0 0x04
17047 #define _PWM6CON_MODE0 0x04
17048 #define _PWM6CON_PWM6MODE1 0x08
17049 #define _PWM6CON_MODE1 0x08
17050 #define _PWM6CON_POL 0x10
17051 #define _PWM6CON_PWM6POL 0x10
17052 #define _PWM6CON_OUT 0x20
17053 #define _PWM6CON_PWM6OUT 0x20
17054 #define _PWM6CON_EN 0x80
17055 #define _PWM6CON_PWM6EN 0x80
17057 //==============================================================================
17060 //==============================================================================
17061 // PWM6INTCON Bits
17063 extern __at(0x0DAC) __sfr PWM6INTCON;
17065 typedef union
17067 struct
17069 unsigned PRIE : 1;
17070 unsigned DCIE : 1;
17071 unsigned PHIE : 1;
17072 unsigned OFIE : 1;
17073 unsigned : 1;
17074 unsigned : 1;
17075 unsigned : 1;
17076 unsigned : 1;
17079 struct
17081 unsigned PWM6PRIE : 1;
17082 unsigned PWM6DCIE : 1;
17083 unsigned PWM6PHIE : 1;
17084 unsigned PWM6OFIE : 1;
17085 unsigned : 1;
17086 unsigned : 1;
17087 unsigned : 1;
17088 unsigned : 1;
17090 } __PWM6INTCONbits_t;
17092 extern __at(0x0DAC) volatile __PWM6INTCONbits_t PWM6INTCONbits;
17094 #define _PWM6INTCON_PRIE 0x01
17095 #define _PWM6INTCON_PWM6PRIE 0x01
17096 #define _PWM6INTCON_DCIE 0x02
17097 #define _PWM6INTCON_PWM6DCIE 0x02
17098 #define _PWM6INTCON_PHIE 0x04
17099 #define _PWM6INTCON_PWM6PHIE 0x04
17100 #define _PWM6INTCON_OFIE 0x08
17101 #define _PWM6INTCON_PWM6OFIE 0x08
17103 //==============================================================================
17106 //==============================================================================
17107 // PWM6INTE Bits
17109 extern __at(0x0DAC) __sfr PWM6INTE;
17111 typedef union
17113 struct
17115 unsigned PRIE : 1;
17116 unsigned DCIE : 1;
17117 unsigned PHIE : 1;
17118 unsigned OFIE : 1;
17119 unsigned : 1;
17120 unsigned : 1;
17121 unsigned : 1;
17122 unsigned : 1;
17125 struct
17127 unsigned PWM6PRIE : 1;
17128 unsigned PWM6DCIE : 1;
17129 unsigned PWM6PHIE : 1;
17130 unsigned PWM6OFIE : 1;
17131 unsigned : 1;
17132 unsigned : 1;
17133 unsigned : 1;
17134 unsigned : 1;
17136 } __PWM6INTEbits_t;
17138 extern __at(0x0DAC) volatile __PWM6INTEbits_t PWM6INTEbits;
17140 #define _PWM6INTE_PRIE 0x01
17141 #define _PWM6INTE_PWM6PRIE 0x01
17142 #define _PWM6INTE_DCIE 0x02
17143 #define _PWM6INTE_PWM6DCIE 0x02
17144 #define _PWM6INTE_PHIE 0x04
17145 #define _PWM6INTE_PWM6PHIE 0x04
17146 #define _PWM6INTE_OFIE 0x08
17147 #define _PWM6INTE_PWM6OFIE 0x08
17149 //==============================================================================
17152 //==============================================================================
17153 // PWM6INTF Bits
17155 extern __at(0x0DAD) __sfr PWM6INTF;
17157 typedef union
17159 struct
17161 unsigned PRIF : 1;
17162 unsigned DCIF : 1;
17163 unsigned PHIF : 1;
17164 unsigned OFIF : 1;
17165 unsigned : 1;
17166 unsigned : 1;
17167 unsigned : 1;
17168 unsigned : 1;
17171 struct
17173 unsigned PWM6PRIF : 1;
17174 unsigned PWM6DCIF : 1;
17175 unsigned PWM6PHIF : 1;
17176 unsigned PWM6OFIF : 1;
17177 unsigned : 1;
17178 unsigned : 1;
17179 unsigned : 1;
17180 unsigned : 1;
17182 } __PWM6INTFbits_t;
17184 extern __at(0x0DAD) volatile __PWM6INTFbits_t PWM6INTFbits;
17186 #define _PWM6INTF_PRIF 0x01
17187 #define _PWM6INTF_PWM6PRIF 0x01
17188 #define _PWM6INTF_DCIF 0x02
17189 #define _PWM6INTF_PWM6DCIF 0x02
17190 #define _PWM6INTF_PHIF 0x04
17191 #define _PWM6INTF_PWM6PHIF 0x04
17192 #define _PWM6INTF_OFIF 0x08
17193 #define _PWM6INTF_PWM6OFIF 0x08
17195 //==============================================================================
17198 //==============================================================================
17199 // PWM6INTFLG Bits
17201 extern __at(0x0DAD) __sfr PWM6INTFLG;
17203 typedef union
17205 struct
17207 unsigned PRIF : 1;
17208 unsigned DCIF : 1;
17209 unsigned PHIF : 1;
17210 unsigned OFIF : 1;
17211 unsigned : 1;
17212 unsigned : 1;
17213 unsigned : 1;
17214 unsigned : 1;
17217 struct
17219 unsigned PWM6PRIF : 1;
17220 unsigned PWM6DCIF : 1;
17221 unsigned PWM6PHIF : 1;
17222 unsigned PWM6OFIF : 1;
17223 unsigned : 1;
17224 unsigned : 1;
17225 unsigned : 1;
17226 unsigned : 1;
17228 } __PWM6INTFLGbits_t;
17230 extern __at(0x0DAD) volatile __PWM6INTFLGbits_t PWM6INTFLGbits;
17232 #define _PWM6INTFLG_PRIF 0x01
17233 #define _PWM6INTFLG_PWM6PRIF 0x01
17234 #define _PWM6INTFLG_DCIF 0x02
17235 #define _PWM6INTFLG_PWM6DCIF 0x02
17236 #define _PWM6INTFLG_PHIF 0x04
17237 #define _PWM6INTFLG_PWM6PHIF 0x04
17238 #define _PWM6INTFLG_OFIF 0x08
17239 #define _PWM6INTFLG_PWM6OFIF 0x08
17241 //==============================================================================
17244 //==============================================================================
17245 // PWM6CLKCON Bits
17247 extern __at(0x0DAE) __sfr PWM6CLKCON;
17249 typedef union
17251 struct
17253 unsigned PWM6CS0 : 1;
17254 unsigned PWM6CS1 : 1;
17255 unsigned PWM6CS2 : 1;
17256 unsigned : 1;
17257 unsigned PWM6PS0 : 1;
17258 unsigned PWM6PS1 : 1;
17259 unsigned PWM6PS2 : 1;
17260 unsigned : 1;
17263 struct
17265 unsigned CS0 : 1;
17266 unsigned CS1 : 1;
17267 unsigned CS2 : 1;
17268 unsigned : 1;
17269 unsigned PS0 : 1;
17270 unsigned PS1 : 1;
17271 unsigned PS2 : 1;
17272 unsigned : 1;
17275 struct
17277 unsigned PWM6CS : 3;
17278 unsigned : 5;
17281 struct
17283 unsigned CS : 3;
17284 unsigned : 5;
17287 struct
17289 unsigned : 4;
17290 unsigned PS : 3;
17291 unsigned : 1;
17294 struct
17296 unsigned : 4;
17297 unsigned PWM6PS : 3;
17298 unsigned : 1;
17300 } __PWM6CLKCONbits_t;
17302 extern __at(0x0DAE) volatile __PWM6CLKCONbits_t PWM6CLKCONbits;
17304 #define _PWM6CLKCON_PWM6CS0 0x01
17305 #define _PWM6CLKCON_CS0 0x01
17306 #define _PWM6CLKCON_PWM6CS1 0x02
17307 #define _PWM6CLKCON_CS1 0x02
17308 #define _PWM6CLKCON_PWM6CS2 0x04
17309 #define _PWM6CLKCON_CS2 0x04
17310 #define _PWM6CLKCON_PWM6PS0 0x10
17311 #define _PWM6CLKCON_PS0 0x10
17312 #define _PWM6CLKCON_PWM6PS1 0x20
17313 #define _PWM6CLKCON_PS1 0x20
17314 #define _PWM6CLKCON_PWM6PS2 0x40
17315 #define _PWM6CLKCON_PS2 0x40
17317 //==============================================================================
17320 //==============================================================================
17321 // PWM6LDCON Bits
17323 extern __at(0x0DAF) __sfr PWM6LDCON;
17325 typedef union
17327 struct
17329 unsigned PWM6LDS0 : 1;
17330 unsigned PWM6LDS1 : 1;
17331 unsigned : 1;
17332 unsigned : 1;
17333 unsigned : 1;
17334 unsigned : 1;
17335 unsigned LDT : 1;
17336 unsigned LDA : 1;
17339 struct
17341 unsigned LDS0 : 1;
17342 unsigned LDS1 : 1;
17343 unsigned : 1;
17344 unsigned : 1;
17345 unsigned : 1;
17346 unsigned : 1;
17347 unsigned PWM6LDM : 1;
17348 unsigned PWM6LD : 1;
17351 struct
17353 unsigned PWM6LDS : 2;
17354 unsigned : 6;
17357 struct
17359 unsigned LDS : 2;
17360 unsigned : 6;
17362 } __PWM6LDCONbits_t;
17364 extern __at(0x0DAF) volatile __PWM6LDCONbits_t PWM6LDCONbits;
17366 #define _PWM6LDCON_PWM6LDS0 0x01
17367 #define _PWM6LDCON_LDS0 0x01
17368 #define _PWM6LDCON_PWM6LDS1 0x02
17369 #define _PWM6LDCON_LDS1 0x02
17370 #define _PWM6LDCON_LDT 0x40
17371 #define _PWM6LDCON_PWM6LDM 0x40
17372 #define _PWM6LDCON_LDA 0x80
17373 #define _PWM6LDCON_PWM6LD 0x80
17375 //==============================================================================
17378 //==============================================================================
17379 // PWM6OFCON Bits
17381 extern __at(0x0DB0) __sfr PWM6OFCON;
17383 typedef union
17385 struct
17387 unsigned PWM6OFS0 : 1;
17388 unsigned PWM6OFS1 : 1;
17389 unsigned : 1;
17390 unsigned : 1;
17391 unsigned OFO : 1;
17392 unsigned PWM6OFM0 : 1;
17393 unsigned PWM6OFM1 : 1;
17394 unsigned : 1;
17397 struct
17399 unsigned OFS0 : 1;
17400 unsigned OFS1 : 1;
17401 unsigned : 1;
17402 unsigned : 1;
17403 unsigned PWM6OFMC : 1;
17404 unsigned OFM0 : 1;
17405 unsigned OFM1 : 1;
17406 unsigned : 1;
17409 struct
17411 unsigned PWM6OFS : 2;
17412 unsigned : 6;
17415 struct
17417 unsigned OFS : 2;
17418 unsigned : 6;
17421 struct
17423 unsigned : 5;
17424 unsigned OFM : 2;
17425 unsigned : 1;
17428 struct
17430 unsigned : 5;
17431 unsigned PWM6OFM : 2;
17432 unsigned : 1;
17434 } __PWM6OFCONbits_t;
17436 extern __at(0x0DB0) volatile __PWM6OFCONbits_t PWM6OFCONbits;
17438 #define _PWM6OFCON_PWM6OFS0 0x01
17439 #define _PWM6OFCON_OFS0 0x01
17440 #define _PWM6OFCON_PWM6OFS1 0x02
17441 #define _PWM6OFCON_OFS1 0x02
17442 #define _PWM6OFCON_OFO 0x10
17443 #define _PWM6OFCON_PWM6OFMC 0x10
17444 #define _PWM6OFCON_PWM6OFM0 0x20
17445 #define _PWM6OFCON_OFM0 0x20
17446 #define _PWM6OFCON_PWM6OFM1 0x40
17447 #define _PWM6OFCON_OFM1 0x40
17449 //==============================================================================
17451 extern __at(0x0DB1) __sfr PWM11PH;
17453 //==============================================================================
17454 // PWM11PHL Bits
17456 extern __at(0x0DB1) __sfr PWM11PHL;
17458 typedef struct
17460 unsigned PWM11PHL0 : 1;
17461 unsigned PWM11PHL1 : 1;
17462 unsigned PWM11PHL2 : 1;
17463 unsigned PWM11PHL3 : 1;
17464 unsigned PWM11PHL4 : 1;
17465 unsigned PWM11PHL5 : 1;
17466 unsigned PWM11PHL6 : 1;
17467 unsigned PWM11PHL7 : 1;
17468 } __PWM11PHLbits_t;
17470 extern __at(0x0DB1) volatile __PWM11PHLbits_t PWM11PHLbits;
17472 #define _PWM11PHL0 0x01
17473 #define _PWM11PHL1 0x02
17474 #define _PWM11PHL2 0x04
17475 #define _PWM11PHL3 0x08
17476 #define _PWM11PHL4 0x10
17477 #define _PWM11PHL5 0x20
17478 #define _PWM11PHL6 0x40
17479 #define _PWM11PHL7 0x80
17481 //==============================================================================
17484 //==============================================================================
17485 // PWM11PHH Bits
17487 extern __at(0x0DB2) __sfr PWM11PHH;
17489 typedef struct
17491 unsigned PWM11PHH0 : 1;
17492 unsigned PWM11PHH1 : 1;
17493 unsigned PWM11PHH2 : 1;
17494 unsigned PWM11PHH3 : 1;
17495 unsigned PWM11PHH4 : 1;
17496 unsigned PWM11PHH5 : 1;
17497 unsigned PWM11PHH6 : 1;
17498 unsigned PWM11PHH7 : 1;
17499 } __PWM11PHHbits_t;
17501 extern __at(0x0DB2) volatile __PWM11PHHbits_t PWM11PHHbits;
17503 #define _PWM11PHH0 0x01
17504 #define _PWM11PHH1 0x02
17505 #define _PWM11PHH2 0x04
17506 #define _PWM11PHH3 0x08
17507 #define _PWM11PHH4 0x10
17508 #define _PWM11PHH5 0x20
17509 #define _PWM11PHH6 0x40
17510 #define _PWM11PHH7 0x80
17512 //==============================================================================
17514 extern __at(0x0DB3) __sfr PWM11DC;
17516 //==============================================================================
17517 // PWM11DCL Bits
17519 extern __at(0x0DB3) __sfr PWM11DCL;
17521 typedef struct
17523 unsigned PWM11DCL0 : 1;
17524 unsigned PWM11DCL1 : 1;
17525 unsigned PWM11DCL2 : 1;
17526 unsigned PWM11DCL3 : 1;
17527 unsigned PWM11DCL4 : 1;
17528 unsigned PWM11DCL5 : 1;
17529 unsigned PWM11DCL6 : 1;
17530 unsigned PWM11DCL7 : 1;
17531 } __PWM11DCLbits_t;
17533 extern __at(0x0DB3) volatile __PWM11DCLbits_t PWM11DCLbits;
17535 #define _PWM11DCL0 0x01
17536 #define _PWM11DCL1 0x02
17537 #define _PWM11DCL2 0x04
17538 #define _PWM11DCL3 0x08
17539 #define _PWM11DCL4 0x10
17540 #define _PWM11DCL5 0x20
17541 #define _PWM11DCL6 0x40
17542 #define _PWM11DCL7 0x80
17544 //==============================================================================
17547 //==============================================================================
17548 // PWM11DCH Bits
17550 extern __at(0x0DB4) __sfr PWM11DCH;
17552 typedef struct
17554 unsigned PWM11DCH0 : 1;
17555 unsigned PWM11DCH1 : 1;
17556 unsigned PWM11DCH2 : 1;
17557 unsigned PWM11DCH3 : 1;
17558 unsigned PWM11DCH4 : 1;
17559 unsigned PWM11DCH5 : 1;
17560 unsigned PWM11DCH6 : 1;
17561 unsigned PWM11DCH7 : 1;
17562 } __PWM11DCHbits_t;
17564 extern __at(0x0DB4) volatile __PWM11DCHbits_t PWM11DCHbits;
17566 #define _PWM11DCH0 0x01
17567 #define _PWM11DCH1 0x02
17568 #define _PWM11DCH2 0x04
17569 #define _PWM11DCH3 0x08
17570 #define _PWM11DCH4 0x10
17571 #define _PWM11DCH5 0x20
17572 #define _PWM11DCH6 0x40
17573 #define _PWM11DCH7 0x80
17575 //==============================================================================
17577 extern __at(0x0DB5) __sfr PWM11PR;
17579 //==============================================================================
17580 // PWM11PRL Bits
17582 extern __at(0x0DB5) __sfr PWM11PRL;
17584 typedef struct
17586 unsigned PWM11PRL0 : 1;
17587 unsigned PWM11PRL1 : 1;
17588 unsigned PWM11PRL2 : 1;
17589 unsigned PWM11PRL3 : 1;
17590 unsigned PWM11PRL4 : 1;
17591 unsigned PWM11PRL5 : 1;
17592 unsigned PWM11PRL6 : 1;
17593 unsigned PWM11PRL7 : 1;
17594 } __PWM11PRLbits_t;
17596 extern __at(0x0DB5) volatile __PWM11PRLbits_t PWM11PRLbits;
17598 #define _PWM11PRL0 0x01
17599 #define _PWM11PRL1 0x02
17600 #define _PWM11PRL2 0x04
17601 #define _PWM11PRL3 0x08
17602 #define _PWM11PRL4 0x10
17603 #define _PWM11PRL5 0x20
17604 #define _PWM11PRL6 0x40
17605 #define _PWM11PRL7 0x80
17607 //==============================================================================
17610 //==============================================================================
17611 // PWM11PRH Bits
17613 extern __at(0x0DB6) __sfr PWM11PRH;
17615 typedef struct
17617 unsigned PWM11PRH0 : 1;
17618 unsigned PWM11PRH1 : 1;
17619 unsigned PWM11PRH2 : 1;
17620 unsigned PWM11PRH3 : 1;
17621 unsigned PWM11PRH4 : 1;
17622 unsigned PWM11PRH5 : 1;
17623 unsigned PWM11PRH6 : 1;
17624 unsigned PWM11PRH7 : 1;
17625 } __PWM11PRHbits_t;
17627 extern __at(0x0DB6) volatile __PWM11PRHbits_t PWM11PRHbits;
17629 #define _PWM11PRH0 0x01
17630 #define _PWM11PRH1 0x02
17631 #define _PWM11PRH2 0x04
17632 #define _PWM11PRH3 0x08
17633 #define _PWM11PRH4 0x10
17634 #define _PWM11PRH5 0x20
17635 #define _PWM11PRH6 0x40
17636 #define _PWM11PRH7 0x80
17638 //==============================================================================
17640 extern __at(0x0DB7) __sfr PWM11OF;
17642 //==============================================================================
17643 // PWM11OFL Bits
17645 extern __at(0x0DB7) __sfr PWM11OFL;
17647 typedef struct
17649 unsigned PWM11OFL0 : 1;
17650 unsigned PWM11OFL1 : 1;
17651 unsigned PWM11OFL2 : 1;
17652 unsigned PWM11OFL3 : 1;
17653 unsigned PWM11OFL4 : 1;
17654 unsigned PWM11OFL5 : 1;
17655 unsigned PWM11OFL6 : 1;
17656 unsigned PWM11OFL7 : 1;
17657 } __PWM11OFLbits_t;
17659 extern __at(0x0DB7) volatile __PWM11OFLbits_t PWM11OFLbits;
17661 #define _PWM11OFL0 0x01
17662 #define _PWM11OFL1 0x02
17663 #define _PWM11OFL2 0x04
17664 #define _PWM11OFL3 0x08
17665 #define _PWM11OFL4 0x10
17666 #define _PWM11OFL5 0x20
17667 #define _PWM11OFL6 0x40
17668 #define _PWM11OFL7 0x80
17670 //==============================================================================
17673 //==============================================================================
17674 // PWM11OFH Bits
17676 extern __at(0x0DB8) __sfr PWM11OFH;
17678 typedef struct
17680 unsigned PWM11OFH0 : 1;
17681 unsigned PWM11OFH1 : 1;
17682 unsigned PWM11OFH2 : 1;
17683 unsigned PWM11OFH3 : 1;
17684 unsigned PWM11OFH4 : 1;
17685 unsigned PWM11OFH5 : 1;
17686 unsigned PWM11OFH6 : 1;
17687 unsigned PWM11OFH7 : 1;
17688 } __PWM11OFHbits_t;
17690 extern __at(0x0DB8) volatile __PWM11OFHbits_t PWM11OFHbits;
17692 #define _PWM11OFH0 0x01
17693 #define _PWM11OFH1 0x02
17694 #define _PWM11OFH2 0x04
17695 #define _PWM11OFH3 0x08
17696 #define _PWM11OFH4 0x10
17697 #define _PWM11OFH5 0x20
17698 #define _PWM11OFH6 0x40
17699 #define _PWM11OFH7 0x80
17701 //==============================================================================
17703 extern __at(0x0DB9) __sfr PWM11TMR;
17705 //==============================================================================
17706 // PWM11TMRL Bits
17708 extern __at(0x0DB9) __sfr PWM11TMRL;
17710 typedef struct
17712 unsigned PWM11TMRL0 : 1;
17713 unsigned PWM11TMRL1 : 1;
17714 unsigned PWM11TMRL2 : 1;
17715 unsigned PWM11TMRL3 : 1;
17716 unsigned PWM11TMRL4 : 1;
17717 unsigned PWM11TMRL5 : 1;
17718 unsigned PWM11TMRL6 : 1;
17719 unsigned PWM11TMRL7 : 1;
17720 } __PWM11TMRLbits_t;
17722 extern __at(0x0DB9) volatile __PWM11TMRLbits_t PWM11TMRLbits;
17724 #define _PWM11TMRL0 0x01
17725 #define _PWM11TMRL1 0x02
17726 #define _PWM11TMRL2 0x04
17727 #define _PWM11TMRL3 0x08
17728 #define _PWM11TMRL4 0x10
17729 #define _PWM11TMRL5 0x20
17730 #define _PWM11TMRL6 0x40
17731 #define _PWM11TMRL7 0x80
17733 //==============================================================================
17736 //==============================================================================
17737 // PWM11TMRH Bits
17739 extern __at(0x0DBA) __sfr PWM11TMRH;
17741 typedef struct
17743 unsigned PWM11TMRH0 : 1;
17744 unsigned PWM11TMRH1 : 1;
17745 unsigned PWM11TMRH2 : 1;
17746 unsigned PWM11TMRH3 : 1;
17747 unsigned PWM11TMRH4 : 1;
17748 unsigned PWM11TMRH5 : 1;
17749 unsigned PWM11TMRH6 : 1;
17750 unsigned PWM11TMRH7 : 1;
17751 } __PWM11TMRHbits_t;
17753 extern __at(0x0DBA) volatile __PWM11TMRHbits_t PWM11TMRHbits;
17755 #define _PWM11TMRH0 0x01
17756 #define _PWM11TMRH1 0x02
17757 #define _PWM11TMRH2 0x04
17758 #define _PWM11TMRH3 0x08
17759 #define _PWM11TMRH4 0x10
17760 #define _PWM11TMRH5 0x20
17761 #define _PWM11TMRH6 0x40
17762 #define _PWM11TMRH7 0x80
17764 //==============================================================================
17767 //==============================================================================
17768 // PWM11CON Bits
17770 extern __at(0x0DBB) __sfr PWM11CON;
17772 typedef union
17774 struct
17776 unsigned : 1;
17777 unsigned : 1;
17778 unsigned PWM11MODE0 : 1;
17779 unsigned PWM11MODE1 : 1;
17780 unsigned POL : 1;
17781 unsigned OUT : 1;
17782 unsigned : 1;
17783 unsigned EN : 1;
17786 struct
17788 unsigned : 1;
17789 unsigned : 1;
17790 unsigned MODE0 : 1;
17791 unsigned MODE1 : 1;
17792 unsigned PWM11POL : 1;
17793 unsigned PWM11OUT : 1;
17794 unsigned : 1;
17795 unsigned PWM11EN : 1;
17798 struct
17800 unsigned : 2;
17801 unsigned PWM11MODE : 2;
17802 unsigned : 4;
17805 struct
17807 unsigned : 2;
17808 unsigned MODE : 2;
17809 unsigned : 4;
17811 } __PWM11CONbits_t;
17813 extern __at(0x0DBB) volatile __PWM11CONbits_t PWM11CONbits;
17815 #define _PWM11CON_PWM11MODE0 0x04
17816 #define _PWM11CON_MODE0 0x04
17817 #define _PWM11CON_PWM11MODE1 0x08
17818 #define _PWM11CON_MODE1 0x08
17819 #define _PWM11CON_POL 0x10
17820 #define _PWM11CON_PWM11POL 0x10
17821 #define _PWM11CON_OUT 0x20
17822 #define _PWM11CON_PWM11OUT 0x20
17823 #define _PWM11CON_EN 0x80
17824 #define _PWM11CON_PWM11EN 0x80
17826 //==============================================================================
17829 //==============================================================================
17830 // PWM11INTCON Bits
17832 extern __at(0x0DBC) __sfr PWM11INTCON;
17834 typedef union
17836 struct
17838 unsigned PRIE : 1;
17839 unsigned DCIE : 1;
17840 unsigned PHIE : 1;
17841 unsigned OFIE : 1;
17842 unsigned : 1;
17843 unsigned : 1;
17844 unsigned : 1;
17845 unsigned : 1;
17848 struct
17850 unsigned PWM11PRIE : 1;
17851 unsigned PWM11DCIE : 1;
17852 unsigned PWM11PHIE : 1;
17853 unsigned PWM11OFIE : 1;
17854 unsigned : 1;
17855 unsigned : 1;
17856 unsigned : 1;
17857 unsigned : 1;
17859 } __PWM11INTCONbits_t;
17861 extern __at(0x0DBC) volatile __PWM11INTCONbits_t PWM11INTCONbits;
17863 #define _PWM11INTCON_PRIE 0x01
17864 #define _PWM11INTCON_PWM11PRIE 0x01
17865 #define _PWM11INTCON_DCIE 0x02
17866 #define _PWM11INTCON_PWM11DCIE 0x02
17867 #define _PWM11INTCON_PHIE 0x04
17868 #define _PWM11INTCON_PWM11PHIE 0x04
17869 #define _PWM11INTCON_OFIE 0x08
17870 #define _PWM11INTCON_PWM11OFIE 0x08
17872 //==============================================================================
17875 //==============================================================================
17876 // PWM11INTE Bits
17878 extern __at(0x0DBC) __sfr PWM11INTE;
17880 typedef union
17882 struct
17884 unsigned PRIE : 1;
17885 unsigned DCIE : 1;
17886 unsigned PHIE : 1;
17887 unsigned OFIE : 1;
17888 unsigned : 1;
17889 unsigned : 1;
17890 unsigned : 1;
17891 unsigned : 1;
17894 struct
17896 unsigned PWM11PRIE : 1;
17897 unsigned PWM11DCIE : 1;
17898 unsigned PWM11PHIE : 1;
17899 unsigned PWM11OFIE : 1;
17900 unsigned : 1;
17901 unsigned : 1;
17902 unsigned : 1;
17903 unsigned : 1;
17905 } __PWM11INTEbits_t;
17907 extern __at(0x0DBC) volatile __PWM11INTEbits_t PWM11INTEbits;
17909 #define _PWM11INTE_PRIE 0x01
17910 #define _PWM11INTE_PWM11PRIE 0x01
17911 #define _PWM11INTE_DCIE 0x02
17912 #define _PWM11INTE_PWM11DCIE 0x02
17913 #define _PWM11INTE_PHIE 0x04
17914 #define _PWM11INTE_PWM11PHIE 0x04
17915 #define _PWM11INTE_OFIE 0x08
17916 #define _PWM11INTE_PWM11OFIE 0x08
17918 //==============================================================================
17921 //==============================================================================
17922 // PWM11INTF Bits
17924 extern __at(0x0DBD) __sfr PWM11INTF;
17926 typedef union
17928 struct
17930 unsigned PRIF : 1;
17931 unsigned DCIF : 1;
17932 unsigned PHIF : 1;
17933 unsigned OFIF : 1;
17934 unsigned : 1;
17935 unsigned : 1;
17936 unsigned : 1;
17937 unsigned : 1;
17940 struct
17942 unsigned PWM11PRIF : 1;
17943 unsigned PWM11DCIF : 1;
17944 unsigned PWM11PHIF : 1;
17945 unsigned PWM11OFIF : 1;
17946 unsigned : 1;
17947 unsigned : 1;
17948 unsigned : 1;
17949 unsigned : 1;
17951 } __PWM11INTFbits_t;
17953 extern __at(0x0DBD) volatile __PWM11INTFbits_t PWM11INTFbits;
17955 #define _PWM11INTF_PRIF 0x01
17956 #define _PWM11INTF_PWM11PRIF 0x01
17957 #define _PWM11INTF_DCIF 0x02
17958 #define _PWM11INTF_PWM11DCIF 0x02
17959 #define _PWM11INTF_PHIF 0x04
17960 #define _PWM11INTF_PWM11PHIF 0x04
17961 #define _PWM11INTF_OFIF 0x08
17962 #define _PWM11INTF_PWM11OFIF 0x08
17964 //==============================================================================
17967 //==============================================================================
17968 // PWM11INTFLG Bits
17970 extern __at(0x0DBD) __sfr PWM11INTFLG;
17972 typedef union
17974 struct
17976 unsigned PRIF : 1;
17977 unsigned DCIF : 1;
17978 unsigned PHIF : 1;
17979 unsigned OFIF : 1;
17980 unsigned : 1;
17981 unsigned : 1;
17982 unsigned : 1;
17983 unsigned : 1;
17986 struct
17988 unsigned PWM11PRIF : 1;
17989 unsigned PWM11DCIF : 1;
17990 unsigned PWM11PHIF : 1;
17991 unsigned PWM11OFIF : 1;
17992 unsigned : 1;
17993 unsigned : 1;
17994 unsigned : 1;
17995 unsigned : 1;
17997 } __PWM11INTFLGbits_t;
17999 extern __at(0x0DBD) volatile __PWM11INTFLGbits_t PWM11INTFLGbits;
18001 #define _PWM11INTFLG_PRIF 0x01
18002 #define _PWM11INTFLG_PWM11PRIF 0x01
18003 #define _PWM11INTFLG_DCIF 0x02
18004 #define _PWM11INTFLG_PWM11DCIF 0x02
18005 #define _PWM11INTFLG_PHIF 0x04
18006 #define _PWM11INTFLG_PWM11PHIF 0x04
18007 #define _PWM11INTFLG_OFIF 0x08
18008 #define _PWM11INTFLG_PWM11OFIF 0x08
18010 //==============================================================================
18013 //==============================================================================
18014 // PWM11CLKCON Bits
18016 extern __at(0x0DBE) __sfr PWM11CLKCON;
18018 typedef union
18020 struct
18022 unsigned PWM11CS0 : 1;
18023 unsigned PWM11CS1 : 1;
18024 unsigned PWM11CS2 : 1;
18025 unsigned : 1;
18026 unsigned PWM11PS0 : 1;
18027 unsigned PWM11PS1 : 1;
18028 unsigned PWM11PS2 : 1;
18029 unsigned : 1;
18032 struct
18034 unsigned CS0 : 1;
18035 unsigned CS1 : 1;
18036 unsigned CS2 : 1;
18037 unsigned : 1;
18038 unsigned PS0 : 1;
18039 unsigned PS1 : 1;
18040 unsigned PS2 : 1;
18041 unsigned : 1;
18044 struct
18046 unsigned PWM11CS : 3;
18047 unsigned : 5;
18050 struct
18052 unsigned CS : 3;
18053 unsigned : 5;
18056 struct
18058 unsigned : 4;
18059 unsigned PS : 3;
18060 unsigned : 1;
18063 struct
18065 unsigned : 4;
18066 unsigned PWM11PS : 3;
18067 unsigned : 1;
18069 } __PWM11CLKCONbits_t;
18071 extern __at(0x0DBE) volatile __PWM11CLKCONbits_t PWM11CLKCONbits;
18073 #define _PWM11CLKCON_PWM11CS0 0x01
18074 #define _PWM11CLKCON_CS0 0x01
18075 #define _PWM11CLKCON_PWM11CS1 0x02
18076 #define _PWM11CLKCON_CS1 0x02
18077 #define _PWM11CLKCON_PWM11CS2 0x04
18078 #define _PWM11CLKCON_CS2 0x04
18079 #define _PWM11CLKCON_PWM11PS0 0x10
18080 #define _PWM11CLKCON_PS0 0x10
18081 #define _PWM11CLKCON_PWM11PS1 0x20
18082 #define _PWM11CLKCON_PS1 0x20
18083 #define _PWM11CLKCON_PWM11PS2 0x40
18084 #define _PWM11CLKCON_PS2 0x40
18086 //==============================================================================
18089 //==============================================================================
18090 // PWM11LDCON Bits
18092 extern __at(0x0DBF) __sfr PWM11LDCON;
18094 typedef union
18096 struct
18098 unsigned PWM11LDS0 : 1;
18099 unsigned PWM11LDS1 : 1;
18100 unsigned : 1;
18101 unsigned : 1;
18102 unsigned : 1;
18103 unsigned : 1;
18104 unsigned LDT : 1;
18105 unsigned LDA : 1;
18108 struct
18110 unsigned LDS0 : 1;
18111 unsigned LDS1 : 1;
18112 unsigned : 1;
18113 unsigned : 1;
18114 unsigned : 1;
18115 unsigned : 1;
18116 unsigned PWM11LDM : 1;
18117 unsigned PWM11LD : 1;
18120 struct
18122 unsigned PWM11LDS : 2;
18123 unsigned : 6;
18126 struct
18128 unsigned LDS : 2;
18129 unsigned : 6;
18131 } __PWM11LDCONbits_t;
18133 extern __at(0x0DBF) volatile __PWM11LDCONbits_t PWM11LDCONbits;
18135 #define _PWM11LDCON_PWM11LDS0 0x01
18136 #define _PWM11LDCON_LDS0 0x01
18137 #define _PWM11LDCON_PWM11LDS1 0x02
18138 #define _PWM11LDCON_LDS1 0x02
18139 #define _PWM11LDCON_LDT 0x40
18140 #define _PWM11LDCON_PWM11LDM 0x40
18141 #define _PWM11LDCON_LDA 0x80
18142 #define _PWM11LDCON_PWM11LD 0x80
18144 //==============================================================================
18147 //==============================================================================
18148 // PWM11OFCON Bits
18150 extern __at(0x0DC0) __sfr PWM11OFCON;
18152 typedef union
18154 struct
18156 unsigned PWM11OFS0 : 1;
18157 unsigned PWM11OFS1 : 1;
18158 unsigned : 1;
18159 unsigned : 1;
18160 unsigned OFO : 1;
18161 unsigned PWM11OFM0 : 1;
18162 unsigned PWM11OFM1 : 1;
18163 unsigned : 1;
18166 struct
18168 unsigned OFS0 : 1;
18169 unsigned OFS1 : 1;
18170 unsigned : 1;
18171 unsigned : 1;
18172 unsigned PWM11OFMC : 1;
18173 unsigned OFM0 : 1;
18174 unsigned OFM1 : 1;
18175 unsigned : 1;
18178 struct
18180 unsigned OFS : 2;
18181 unsigned : 6;
18184 struct
18186 unsigned PWM11OFS : 2;
18187 unsigned : 6;
18190 struct
18192 unsigned : 5;
18193 unsigned OFM : 2;
18194 unsigned : 1;
18197 struct
18199 unsigned : 5;
18200 unsigned PWM11OFM : 2;
18201 unsigned : 1;
18203 } __PWM11OFCONbits_t;
18205 extern __at(0x0DC0) volatile __PWM11OFCONbits_t PWM11OFCONbits;
18207 #define _PWM11OFCON_PWM11OFS0 0x01
18208 #define _PWM11OFCON_OFS0 0x01
18209 #define _PWM11OFCON_PWM11OFS1 0x02
18210 #define _PWM11OFCON_OFS1 0x02
18211 #define _PWM11OFCON_OFO 0x10
18212 #define _PWM11OFCON_PWM11OFMC 0x10
18213 #define _PWM11OFCON_PWM11OFM0 0x20
18214 #define _PWM11OFCON_OFM0 0x20
18215 #define _PWM11OFCON_PWM11OFM1 0x40
18216 #define _PWM11OFCON_OFM1 0x40
18218 //==============================================================================
18221 //==============================================================================
18222 // PPSLOCK Bits
18224 extern __at(0x0E0C) __sfr PPSLOCK;
18226 typedef struct
18228 unsigned PPSLOCKED : 1;
18229 unsigned : 1;
18230 unsigned : 1;
18231 unsigned : 1;
18232 unsigned : 1;
18233 unsigned : 1;
18234 unsigned : 1;
18235 unsigned : 1;
18236 } __PPSLOCKbits_t;
18238 extern __at(0x0E0C) volatile __PPSLOCKbits_t PPSLOCKbits;
18240 #define _PPSLOCKED 0x01
18242 //==============================================================================
18244 extern __at(0x0E0D) __sfr INTPPS;
18245 extern __at(0x0E0E) __sfr T0CKIPPS;
18246 extern __at(0x0E0F) __sfr T1CKIPPS;
18247 extern __at(0x0E10) __sfr T1GPPS;
18248 extern __at(0x0E11) __sfr T3CKIPPS;
18249 extern __at(0x0E12) __sfr T3GPPS;
18250 extern __at(0x0E13) __sfr T5CKIPPS;
18251 extern __at(0x0E14) __sfr T5GPPS;
18252 extern __at(0x0E15) __sfr T2CKIPPS;
18253 extern __at(0x0E16) __sfr T4CKIPPS;
18254 extern __at(0x0E17) __sfr T6CKIPPS;
18255 extern __at(0x0E18) __sfr T8CKIPPS;
18256 extern __at(0x0E19) __sfr CCP1PPS;
18257 extern __at(0x0E1A) __sfr CCP2PPS;
18258 extern __at(0x0E1B) __sfr CCP7PPS;
18259 extern __at(0x0E1D) __sfr COG1INPPS;
18260 extern __at(0x0E1E) __sfr COG2INPPS;
18261 extern __at(0x0E1F) __sfr COG3INPPS;
18262 extern __at(0x0E21) __sfr MD1CLPPS;
18263 extern __at(0x0E22) __sfr MD1CHPPS;
18264 extern __at(0x0E23) __sfr MD1MODPPS;
18265 extern __at(0x0E24) __sfr MD2CLPPS;
18266 extern __at(0x0E25) __sfr MD2CHPPS;
18267 extern __at(0x0E26) __sfr MD2MODPPS;
18268 extern __at(0x0E27) __sfr MD3CLPPS;
18269 extern __at(0x0E28) __sfr MD3CHPPS;
18270 extern __at(0x0E29) __sfr MD3MODPPS;
18271 extern __at(0x0E2D) __sfr PRG1RPPS;
18272 extern __at(0x0E2E) __sfr PRG1FPPS;
18273 extern __at(0x0E2F) __sfr PRG2RPPS;
18274 extern __at(0x0E30) __sfr PRG2FPPS;
18275 extern __at(0x0E31) __sfr PRG3RPPS;
18276 extern __at(0x0E32) __sfr PRG3FPPS;
18277 extern __at(0x0E35) __sfr CLCIN0PPS;
18278 extern __at(0x0E36) __sfr CLCIN1PPS;
18279 extern __at(0x0E37) __sfr CLCIN2PPS;
18280 extern __at(0x0E38) __sfr CLCIN3PPS;
18281 extern __at(0x0E39) __sfr ADCACTPPS;
18282 extern __at(0x0E3A) __sfr SSPCLKPPS;
18283 extern __at(0x0E3B) __sfr SSPDATPPS;
18284 extern __at(0x0E3C) __sfr SSPSSPPS;
18285 extern __at(0x0E3D) __sfr RXPPS;
18286 extern __at(0x0E3E) __sfr CKPPS;
18287 extern __at(0x0E90) __sfr RA0PPS;
18288 extern __at(0x0E91) __sfr RA1PPS;
18289 extern __at(0x0E92) __sfr RA2PPS;
18290 extern __at(0x0E93) __sfr RA3PPS;
18291 extern __at(0x0E94) __sfr RA4PPS;
18292 extern __at(0x0E95) __sfr RA5PPS;
18293 extern __at(0x0E96) __sfr RA6PPS;
18294 extern __at(0x0E97) __sfr RA7PPS;
18295 extern __at(0x0E98) __sfr RB0PPS;
18296 extern __at(0x0E99) __sfr RB1PPS;
18297 extern __at(0x0E9A) __sfr RB2PPS;
18298 extern __at(0x0E9B) __sfr RB3PPS;
18299 extern __at(0x0E9C) __sfr RB4PPS;
18300 extern __at(0x0E9D) __sfr RB5PPS;
18301 extern __at(0x0E9E) __sfr RB6PPS;
18302 extern __at(0x0E9F) __sfr RB7PPS;
18303 extern __at(0x0EA0) __sfr RC0PPS;
18304 extern __at(0x0EA1) __sfr RC1PPS;
18305 extern __at(0x0EA2) __sfr RC2PPS;
18306 extern __at(0x0EA3) __sfr RC3PPS;
18307 extern __at(0x0EA4) __sfr RC4PPS;
18308 extern __at(0x0EA5) __sfr RC5PPS;
18309 extern __at(0x0EA6) __sfr RC6PPS;
18310 extern __at(0x0EA7) __sfr RC7PPS;
18312 //==============================================================================
18313 // CLCDATA Bits
18315 extern __at(0x0F0F) __sfr CLCDATA;
18317 typedef struct
18319 unsigned MCLC1OUT : 1;
18320 unsigned MCLC2OUT : 1;
18321 unsigned MCLC3OUT : 1;
18322 unsigned MLC4OUT : 1;
18323 unsigned : 1;
18324 unsigned : 1;
18325 unsigned : 1;
18326 unsigned : 1;
18327 } __CLCDATAbits_t;
18329 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
18331 #define _MCLC1OUT 0x01
18332 #define _MCLC2OUT 0x02
18333 #define _MCLC3OUT 0x04
18334 #define _MLC4OUT 0x08
18336 //==============================================================================
18339 //==============================================================================
18340 // CLC1CON Bits
18342 extern __at(0x0F10) __sfr CLC1CON;
18344 typedef union
18346 struct
18348 unsigned LC1MODE0 : 1;
18349 unsigned LC1MODE1 : 1;
18350 unsigned LC1MODE2 : 1;
18351 unsigned LC1INTN : 1;
18352 unsigned LC1INTP : 1;
18353 unsigned LC1OUT : 1;
18354 unsigned : 1;
18355 unsigned LC1EN : 1;
18358 struct
18360 unsigned MODE0 : 1;
18361 unsigned MODE1 : 1;
18362 unsigned MODE2 : 1;
18363 unsigned INTN : 1;
18364 unsigned INTP : 1;
18365 unsigned OUT : 1;
18366 unsigned : 1;
18367 unsigned EN : 1;
18370 struct
18372 unsigned MODE : 3;
18373 unsigned : 5;
18376 struct
18378 unsigned LC1MODE : 3;
18379 unsigned : 5;
18381 } __CLC1CONbits_t;
18383 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
18385 #define _CLC1CON_LC1MODE0 0x01
18386 #define _CLC1CON_MODE0 0x01
18387 #define _CLC1CON_LC1MODE1 0x02
18388 #define _CLC1CON_MODE1 0x02
18389 #define _CLC1CON_LC1MODE2 0x04
18390 #define _CLC1CON_MODE2 0x04
18391 #define _CLC1CON_LC1INTN 0x08
18392 #define _CLC1CON_INTN 0x08
18393 #define _CLC1CON_LC1INTP 0x10
18394 #define _CLC1CON_INTP 0x10
18395 #define _CLC1CON_LC1OUT 0x20
18396 #define _CLC1CON_OUT 0x20
18397 #define _CLC1CON_LC1EN 0x80
18398 #define _CLC1CON_EN 0x80
18400 //==============================================================================
18403 //==============================================================================
18404 // CLC1POL Bits
18406 extern __at(0x0F11) __sfr CLC1POL;
18408 typedef union
18410 struct
18412 unsigned LC1G1POL : 1;
18413 unsigned LC1G2POL : 1;
18414 unsigned LC1G3POL : 1;
18415 unsigned LC1G4POL : 1;
18416 unsigned : 1;
18417 unsigned : 1;
18418 unsigned : 1;
18419 unsigned LC1POL : 1;
18422 struct
18424 unsigned G1POL : 1;
18425 unsigned G2POL : 1;
18426 unsigned G3POL : 1;
18427 unsigned G4POL : 1;
18428 unsigned : 1;
18429 unsigned : 1;
18430 unsigned : 1;
18431 unsigned POL : 1;
18433 } __CLC1POLbits_t;
18435 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
18437 #define _LC1G1POL 0x01
18438 #define _G1POL 0x01
18439 #define _LC1G2POL 0x02
18440 #define _G2POL 0x02
18441 #define _LC1G3POL 0x04
18442 #define _G3POL 0x04
18443 #define _LC1G4POL 0x08
18444 #define _G4POL 0x08
18445 #define _LC1POL 0x80
18446 #define _POL 0x80
18448 //==============================================================================
18451 //==============================================================================
18452 // CLC1SEL0 Bits
18454 extern __at(0x0F12) __sfr CLC1SEL0;
18456 typedef union
18458 struct
18460 unsigned LC1D1S0 : 1;
18461 unsigned LC1D1S1 : 1;
18462 unsigned LC1D1S2 : 1;
18463 unsigned LC1D1S3 : 1;
18464 unsigned LC1D1S4 : 1;
18465 unsigned LC1D1S5 : 1;
18466 unsigned : 1;
18467 unsigned : 1;
18470 struct
18472 unsigned D1S0 : 1;
18473 unsigned D1S1 : 1;
18474 unsigned D1S2 : 1;
18475 unsigned D1S3 : 1;
18476 unsigned D1S4 : 1;
18477 unsigned D1S5 : 1;
18478 unsigned : 1;
18479 unsigned : 1;
18482 struct
18484 unsigned LC1D1S : 6;
18485 unsigned : 2;
18488 struct
18490 unsigned D1S : 6;
18491 unsigned : 2;
18493 } __CLC1SEL0bits_t;
18495 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
18497 #define _LC1D1S0 0x01
18498 #define _D1S0 0x01
18499 #define _LC1D1S1 0x02
18500 #define _D1S1 0x02
18501 #define _LC1D1S2 0x04
18502 #define _D1S2 0x04
18503 #define _LC1D1S3 0x08
18504 #define _D1S3 0x08
18505 #define _LC1D1S4 0x10
18506 #define _D1S4 0x10
18507 #define _LC1D1S5 0x20
18508 #define _D1S5 0x20
18510 //==============================================================================
18513 //==============================================================================
18514 // CLC1SEL1 Bits
18516 extern __at(0x0F13) __sfr CLC1SEL1;
18518 typedef union
18520 struct
18522 unsigned LC1D2S0 : 1;
18523 unsigned LC1D2S1 : 1;
18524 unsigned LC1D2S2 : 1;
18525 unsigned LC1D2S3 : 1;
18526 unsigned LC1D2S4 : 1;
18527 unsigned LC1D2S5 : 1;
18528 unsigned : 1;
18529 unsigned : 1;
18532 struct
18534 unsigned D2S0 : 1;
18535 unsigned D2S1 : 1;
18536 unsigned D2S2 : 1;
18537 unsigned D2S3 : 1;
18538 unsigned D2S4 : 1;
18539 unsigned D2S5 : 1;
18540 unsigned : 1;
18541 unsigned : 1;
18544 struct
18546 unsigned LC1D2S : 6;
18547 unsigned : 2;
18550 struct
18552 unsigned D2S : 6;
18553 unsigned : 2;
18555 } __CLC1SEL1bits_t;
18557 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
18559 #define _LC1D2S0 0x01
18560 #define _D2S0 0x01
18561 #define _LC1D2S1 0x02
18562 #define _D2S1 0x02
18563 #define _LC1D2S2 0x04
18564 #define _D2S2 0x04
18565 #define _LC1D2S3 0x08
18566 #define _D2S3 0x08
18567 #define _LC1D2S4 0x10
18568 #define _D2S4 0x10
18569 #define _LC1D2S5 0x20
18570 #define _D2S5 0x20
18572 //==============================================================================
18575 //==============================================================================
18576 // CLC1SEL2 Bits
18578 extern __at(0x0F14) __sfr CLC1SEL2;
18580 typedef union
18582 struct
18584 unsigned LC1D3S0 : 1;
18585 unsigned LC1D3S1 : 1;
18586 unsigned LC1D3S2 : 1;
18587 unsigned LC1D3S3 : 1;
18588 unsigned LC1D3S4 : 1;
18589 unsigned LC1D3S5 : 1;
18590 unsigned : 1;
18591 unsigned : 1;
18594 struct
18596 unsigned D3S0 : 1;
18597 unsigned D3S1 : 1;
18598 unsigned D3S2 : 1;
18599 unsigned D3S3 : 1;
18600 unsigned D3S4 : 1;
18601 unsigned D3S5 : 1;
18602 unsigned : 1;
18603 unsigned : 1;
18606 struct
18608 unsigned D3S : 6;
18609 unsigned : 2;
18612 struct
18614 unsigned LC1D3S : 6;
18615 unsigned : 2;
18617 } __CLC1SEL2bits_t;
18619 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
18621 #define _LC1D3S0 0x01
18622 #define _D3S0 0x01
18623 #define _LC1D3S1 0x02
18624 #define _D3S1 0x02
18625 #define _LC1D3S2 0x04
18626 #define _D3S2 0x04
18627 #define _LC1D3S3 0x08
18628 #define _D3S3 0x08
18629 #define _LC1D3S4 0x10
18630 #define _D3S4 0x10
18631 #define _LC1D3S5 0x20
18632 #define _D3S5 0x20
18634 //==============================================================================
18637 //==============================================================================
18638 // CLC1SEL3 Bits
18640 extern __at(0x0F15) __sfr CLC1SEL3;
18642 typedef union
18644 struct
18646 unsigned LC1D4S0 : 1;
18647 unsigned LC1D4S1 : 1;
18648 unsigned LC1D4S2 : 1;
18649 unsigned LC1D4S3 : 1;
18650 unsigned LC1D4S4 : 1;
18651 unsigned LC1D4S5 : 1;
18652 unsigned : 1;
18653 unsigned : 1;
18656 struct
18658 unsigned D4S0 : 1;
18659 unsigned D4S1 : 1;
18660 unsigned D4S2 : 1;
18661 unsigned D4S3 : 1;
18662 unsigned D4S4 : 1;
18663 unsigned D4S5 : 1;
18664 unsigned : 1;
18665 unsigned : 1;
18668 struct
18670 unsigned LC1D4S : 6;
18671 unsigned : 2;
18674 struct
18676 unsigned D4S : 6;
18677 unsigned : 2;
18679 } __CLC1SEL3bits_t;
18681 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
18683 #define _LC1D4S0 0x01
18684 #define _D4S0 0x01
18685 #define _LC1D4S1 0x02
18686 #define _D4S1 0x02
18687 #define _LC1D4S2 0x04
18688 #define _D4S2 0x04
18689 #define _LC1D4S3 0x08
18690 #define _D4S3 0x08
18691 #define _LC1D4S4 0x10
18692 #define _D4S4 0x10
18693 #define _LC1D4S5 0x20
18694 #define _D4S5 0x20
18696 //==============================================================================
18699 //==============================================================================
18700 // CLC1GLS0 Bits
18702 extern __at(0x0F16) __sfr CLC1GLS0;
18704 typedef union
18706 struct
18708 unsigned LC1G1D1N : 1;
18709 unsigned LC1G1D1T : 1;
18710 unsigned LC1G1D2N : 1;
18711 unsigned LC1G1D2T : 1;
18712 unsigned LC1G1D3N : 1;
18713 unsigned LC1G1D3T : 1;
18714 unsigned LC1G1D4N : 1;
18715 unsigned LC1G1D4T : 1;
18718 struct
18720 unsigned D1N : 1;
18721 unsigned D1T : 1;
18722 unsigned D2N : 1;
18723 unsigned D2T : 1;
18724 unsigned D3N : 1;
18725 unsigned D3T : 1;
18726 unsigned D4N : 1;
18727 unsigned D4T : 1;
18729 } __CLC1GLS0bits_t;
18731 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
18733 #define _LC1G1D1N 0x01
18734 #define _D1N 0x01
18735 #define _LC1G1D1T 0x02
18736 #define _D1T 0x02
18737 #define _LC1G1D2N 0x04
18738 #define _D2N 0x04
18739 #define _LC1G1D2T 0x08
18740 #define _D2T 0x08
18741 #define _LC1G1D3N 0x10
18742 #define _D3N 0x10
18743 #define _LC1G1D3T 0x20
18744 #define _D3T 0x20
18745 #define _LC1G1D4N 0x40
18746 #define _D4N 0x40
18747 #define _LC1G1D4T 0x80
18748 #define _D4T 0x80
18750 //==============================================================================
18753 //==============================================================================
18754 // CLC1GLS1 Bits
18756 extern __at(0x0F17) __sfr CLC1GLS1;
18758 typedef union
18760 struct
18762 unsigned LC1G2D1N : 1;
18763 unsigned LC1G2D1T : 1;
18764 unsigned LC1G2D2N : 1;
18765 unsigned LC1G2D2T : 1;
18766 unsigned LC1G2D3N : 1;
18767 unsigned LC1G2D3T : 1;
18768 unsigned LC1G2D4N : 1;
18769 unsigned LC1G2D4T : 1;
18772 struct
18774 unsigned D1N : 1;
18775 unsigned D1T : 1;
18776 unsigned D2N : 1;
18777 unsigned D2T : 1;
18778 unsigned D3N : 1;
18779 unsigned D3T : 1;
18780 unsigned D4N : 1;
18781 unsigned D4T : 1;
18783 } __CLC1GLS1bits_t;
18785 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
18787 #define _CLC1GLS1_LC1G2D1N 0x01
18788 #define _CLC1GLS1_D1N 0x01
18789 #define _CLC1GLS1_LC1G2D1T 0x02
18790 #define _CLC1GLS1_D1T 0x02
18791 #define _CLC1GLS1_LC1G2D2N 0x04
18792 #define _CLC1GLS1_D2N 0x04
18793 #define _CLC1GLS1_LC1G2D2T 0x08
18794 #define _CLC1GLS1_D2T 0x08
18795 #define _CLC1GLS1_LC1G2D3N 0x10
18796 #define _CLC1GLS1_D3N 0x10
18797 #define _CLC1GLS1_LC1G2D3T 0x20
18798 #define _CLC1GLS1_D3T 0x20
18799 #define _CLC1GLS1_LC1G2D4N 0x40
18800 #define _CLC1GLS1_D4N 0x40
18801 #define _CLC1GLS1_LC1G2D4T 0x80
18802 #define _CLC1GLS1_D4T 0x80
18804 //==============================================================================
18807 //==============================================================================
18808 // CLC1GLS2 Bits
18810 extern __at(0x0F18) __sfr CLC1GLS2;
18812 typedef union
18814 struct
18816 unsigned LC1G3D1N : 1;
18817 unsigned LC1G3D1T : 1;
18818 unsigned LC1G3D2N : 1;
18819 unsigned LC1G3D2T : 1;
18820 unsigned LC1G3D3N : 1;
18821 unsigned LC1G3D3T : 1;
18822 unsigned LC1G3D4N : 1;
18823 unsigned LC1G3D4T : 1;
18826 struct
18828 unsigned D1N : 1;
18829 unsigned D1T : 1;
18830 unsigned D2N : 1;
18831 unsigned D2T : 1;
18832 unsigned D3N : 1;
18833 unsigned D3T : 1;
18834 unsigned D4N : 1;
18835 unsigned D4T : 1;
18837 } __CLC1GLS2bits_t;
18839 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
18841 #define _CLC1GLS2_LC1G3D1N 0x01
18842 #define _CLC1GLS2_D1N 0x01
18843 #define _CLC1GLS2_LC1G3D1T 0x02
18844 #define _CLC1GLS2_D1T 0x02
18845 #define _CLC1GLS2_LC1G3D2N 0x04
18846 #define _CLC1GLS2_D2N 0x04
18847 #define _CLC1GLS2_LC1G3D2T 0x08
18848 #define _CLC1GLS2_D2T 0x08
18849 #define _CLC1GLS2_LC1G3D3N 0x10
18850 #define _CLC1GLS2_D3N 0x10
18851 #define _CLC1GLS2_LC1G3D3T 0x20
18852 #define _CLC1GLS2_D3T 0x20
18853 #define _CLC1GLS2_LC1G3D4N 0x40
18854 #define _CLC1GLS2_D4N 0x40
18855 #define _CLC1GLS2_LC1G3D4T 0x80
18856 #define _CLC1GLS2_D4T 0x80
18858 //==============================================================================
18861 //==============================================================================
18862 // CLC1GLS3 Bits
18864 extern __at(0x0F19) __sfr CLC1GLS3;
18866 typedef union
18868 struct
18870 unsigned LC1G4D1N : 1;
18871 unsigned LC1G4D1T : 1;
18872 unsigned LC1G4D2N : 1;
18873 unsigned LC1G4D2T : 1;
18874 unsigned LC1G4D3N : 1;
18875 unsigned LC1G4D3T : 1;
18876 unsigned LC1G4D4N : 1;
18877 unsigned LC1G4D4T : 1;
18880 struct
18882 unsigned G4D1N : 1;
18883 unsigned G4D1T : 1;
18884 unsigned G4D2N : 1;
18885 unsigned G4D2T : 1;
18886 unsigned G4D3N : 1;
18887 unsigned G4D3T : 1;
18888 unsigned G4D4N : 1;
18889 unsigned G4D4T : 1;
18891 } __CLC1GLS3bits_t;
18893 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
18895 #define _LC1G4D1N 0x01
18896 #define _G4D1N 0x01
18897 #define _LC1G4D1T 0x02
18898 #define _G4D1T 0x02
18899 #define _LC1G4D2N 0x04
18900 #define _G4D2N 0x04
18901 #define _LC1G4D2T 0x08
18902 #define _G4D2T 0x08
18903 #define _LC1G4D3N 0x10
18904 #define _G4D3N 0x10
18905 #define _LC1G4D3T 0x20
18906 #define _G4D3T 0x20
18907 #define _LC1G4D4N 0x40
18908 #define _G4D4N 0x40
18909 #define _LC1G4D4T 0x80
18910 #define _G4D4T 0x80
18912 //==============================================================================
18915 //==============================================================================
18916 // CLC2CON Bits
18918 extern __at(0x0F1A) __sfr CLC2CON;
18920 typedef union
18922 struct
18924 unsigned LC2MODE0 : 1;
18925 unsigned LC2MODE1 : 1;
18926 unsigned LC2MODE2 : 1;
18927 unsigned LC2INTN : 1;
18928 unsigned LC2INTP : 1;
18929 unsigned LC2OUT : 1;
18930 unsigned : 1;
18931 unsigned LC2EN : 1;
18934 struct
18936 unsigned MODE0 : 1;
18937 unsigned MODE1 : 1;
18938 unsigned MODE2 : 1;
18939 unsigned INTN : 1;
18940 unsigned INTP : 1;
18941 unsigned OUT : 1;
18942 unsigned : 1;
18943 unsigned EN : 1;
18946 struct
18948 unsigned LC2MODE : 3;
18949 unsigned : 5;
18952 struct
18954 unsigned MODE : 3;
18955 unsigned : 5;
18957 } __CLC2CONbits_t;
18959 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
18961 #define _CLC2CON_LC2MODE0 0x01
18962 #define _CLC2CON_MODE0 0x01
18963 #define _CLC2CON_LC2MODE1 0x02
18964 #define _CLC2CON_MODE1 0x02
18965 #define _CLC2CON_LC2MODE2 0x04
18966 #define _CLC2CON_MODE2 0x04
18967 #define _CLC2CON_LC2INTN 0x08
18968 #define _CLC2CON_INTN 0x08
18969 #define _CLC2CON_LC2INTP 0x10
18970 #define _CLC2CON_INTP 0x10
18971 #define _CLC2CON_LC2OUT 0x20
18972 #define _CLC2CON_OUT 0x20
18973 #define _CLC2CON_LC2EN 0x80
18974 #define _CLC2CON_EN 0x80
18976 //==============================================================================
18979 //==============================================================================
18980 // CLC2POL Bits
18982 extern __at(0x0F1B) __sfr CLC2POL;
18984 typedef union
18986 struct
18988 unsigned LC2G1POL : 1;
18989 unsigned LC2G2POL : 1;
18990 unsigned LC2G3POL : 1;
18991 unsigned LC2G4POL : 1;
18992 unsigned : 1;
18993 unsigned : 1;
18994 unsigned : 1;
18995 unsigned LC2POL : 1;
18998 struct
19000 unsigned G1POL : 1;
19001 unsigned G2POL : 1;
19002 unsigned G3POL : 1;
19003 unsigned G4POL : 1;
19004 unsigned : 1;
19005 unsigned : 1;
19006 unsigned : 1;
19007 unsigned POL : 1;
19009 } __CLC2POLbits_t;
19011 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
19013 #define _CLC2POL_LC2G1POL 0x01
19014 #define _CLC2POL_G1POL 0x01
19015 #define _CLC2POL_LC2G2POL 0x02
19016 #define _CLC2POL_G2POL 0x02
19017 #define _CLC2POL_LC2G3POL 0x04
19018 #define _CLC2POL_G3POL 0x04
19019 #define _CLC2POL_LC2G4POL 0x08
19020 #define _CLC2POL_G4POL 0x08
19021 #define _CLC2POL_LC2POL 0x80
19022 #define _CLC2POL_POL 0x80
19024 //==============================================================================
19027 //==============================================================================
19028 // CLC2SEL0 Bits
19030 extern __at(0x0F1C) __sfr CLC2SEL0;
19032 typedef union
19034 struct
19036 unsigned LC2D1S0 : 1;
19037 unsigned LC2D1S1 : 1;
19038 unsigned LC2D1S2 : 1;
19039 unsigned LC2D1S3 : 1;
19040 unsigned LC2D1S4 : 1;
19041 unsigned LC2D1S5 : 1;
19042 unsigned : 1;
19043 unsigned : 1;
19046 struct
19048 unsigned D1S0 : 1;
19049 unsigned D1S1 : 1;
19050 unsigned D1S2 : 1;
19051 unsigned D1S3 : 1;
19052 unsigned D1S4 : 1;
19053 unsigned D1S5 : 1;
19054 unsigned : 1;
19055 unsigned : 1;
19058 struct
19060 unsigned LC2D1S : 6;
19061 unsigned : 2;
19064 struct
19066 unsigned D1S : 6;
19067 unsigned : 2;
19069 } __CLC2SEL0bits_t;
19071 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
19073 #define _CLC2SEL0_LC2D1S0 0x01
19074 #define _CLC2SEL0_D1S0 0x01
19075 #define _CLC2SEL0_LC2D1S1 0x02
19076 #define _CLC2SEL0_D1S1 0x02
19077 #define _CLC2SEL0_LC2D1S2 0x04
19078 #define _CLC2SEL0_D1S2 0x04
19079 #define _CLC2SEL0_LC2D1S3 0x08
19080 #define _CLC2SEL0_D1S3 0x08
19081 #define _CLC2SEL0_LC2D1S4 0x10
19082 #define _CLC2SEL0_D1S4 0x10
19083 #define _CLC2SEL0_LC2D1S5 0x20
19084 #define _CLC2SEL0_D1S5 0x20
19086 //==============================================================================
19089 //==============================================================================
19090 // CLC2SEL1 Bits
19092 extern __at(0x0F1D) __sfr CLC2SEL1;
19094 typedef union
19096 struct
19098 unsigned LC2D2S0 : 1;
19099 unsigned LC2D2S1 : 1;
19100 unsigned LC2D2S2 : 1;
19101 unsigned LC2D2S3 : 1;
19102 unsigned LC2D2S4 : 1;
19103 unsigned LC2D2S5 : 1;
19104 unsigned : 1;
19105 unsigned : 1;
19108 struct
19110 unsigned D2S0 : 1;
19111 unsigned D2S1 : 1;
19112 unsigned D2S2 : 1;
19113 unsigned D2S3 : 1;
19114 unsigned D2S4 : 1;
19115 unsigned D2S5 : 1;
19116 unsigned : 1;
19117 unsigned : 1;
19120 struct
19122 unsigned D2S : 6;
19123 unsigned : 2;
19126 struct
19128 unsigned LC2D2S : 6;
19129 unsigned : 2;
19131 } __CLC2SEL1bits_t;
19133 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
19135 #define _CLC2SEL1_LC2D2S0 0x01
19136 #define _CLC2SEL1_D2S0 0x01
19137 #define _CLC2SEL1_LC2D2S1 0x02
19138 #define _CLC2SEL1_D2S1 0x02
19139 #define _CLC2SEL1_LC2D2S2 0x04
19140 #define _CLC2SEL1_D2S2 0x04
19141 #define _CLC2SEL1_LC2D2S3 0x08
19142 #define _CLC2SEL1_D2S3 0x08
19143 #define _CLC2SEL1_LC2D2S4 0x10
19144 #define _CLC2SEL1_D2S4 0x10
19145 #define _CLC2SEL1_LC2D2S5 0x20
19146 #define _CLC2SEL1_D2S5 0x20
19148 //==============================================================================
19151 //==============================================================================
19152 // CLC2SEL2 Bits
19154 extern __at(0x0F1E) __sfr CLC2SEL2;
19156 typedef union
19158 struct
19160 unsigned LC2D3S0 : 1;
19161 unsigned LC2D3S1 : 1;
19162 unsigned LC2D3S2 : 1;
19163 unsigned LC2D3S3 : 1;
19164 unsigned LC2D3S4 : 1;
19165 unsigned LC2D3S5 : 1;
19166 unsigned : 1;
19167 unsigned : 1;
19170 struct
19172 unsigned D3S0 : 1;
19173 unsigned D3S1 : 1;
19174 unsigned D3S2 : 1;
19175 unsigned D3S3 : 1;
19176 unsigned D3S4 : 1;
19177 unsigned D3S5 : 1;
19178 unsigned : 1;
19179 unsigned : 1;
19182 struct
19184 unsigned D3S : 6;
19185 unsigned : 2;
19188 struct
19190 unsigned LC2D3S : 6;
19191 unsigned : 2;
19193 } __CLC2SEL2bits_t;
19195 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
19197 #define _CLC2SEL2_LC2D3S0 0x01
19198 #define _CLC2SEL2_D3S0 0x01
19199 #define _CLC2SEL2_LC2D3S1 0x02
19200 #define _CLC2SEL2_D3S1 0x02
19201 #define _CLC2SEL2_LC2D3S2 0x04
19202 #define _CLC2SEL2_D3S2 0x04
19203 #define _CLC2SEL2_LC2D3S3 0x08
19204 #define _CLC2SEL2_D3S3 0x08
19205 #define _CLC2SEL2_LC2D3S4 0x10
19206 #define _CLC2SEL2_D3S4 0x10
19207 #define _CLC2SEL2_LC2D3S5 0x20
19208 #define _CLC2SEL2_D3S5 0x20
19210 //==============================================================================
19213 //==============================================================================
19214 // CLC2SEL3 Bits
19216 extern __at(0x0F1F) __sfr CLC2SEL3;
19218 typedef union
19220 struct
19222 unsigned LC2D4S0 : 1;
19223 unsigned LC2D4S1 : 1;
19224 unsigned LC2D4S2 : 1;
19225 unsigned LC2D4S3 : 1;
19226 unsigned LC2D4S4 : 1;
19227 unsigned LC2D4S5 : 1;
19228 unsigned : 1;
19229 unsigned : 1;
19232 struct
19234 unsigned D4S0 : 1;
19235 unsigned D4S1 : 1;
19236 unsigned D4S2 : 1;
19237 unsigned D4S3 : 1;
19238 unsigned D4S4 : 1;
19239 unsigned D4S5 : 1;
19240 unsigned : 1;
19241 unsigned : 1;
19244 struct
19246 unsigned D4S : 6;
19247 unsigned : 2;
19250 struct
19252 unsigned LC2D4S : 6;
19253 unsigned : 2;
19255 } __CLC2SEL3bits_t;
19257 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
19259 #define _CLC2SEL3_LC2D4S0 0x01
19260 #define _CLC2SEL3_D4S0 0x01
19261 #define _CLC2SEL3_LC2D4S1 0x02
19262 #define _CLC2SEL3_D4S1 0x02
19263 #define _CLC2SEL3_LC2D4S2 0x04
19264 #define _CLC2SEL3_D4S2 0x04
19265 #define _CLC2SEL3_LC2D4S3 0x08
19266 #define _CLC2SEL3_D4S3 0x08
19267 #define _CLC2SEL3_LC2D4S4 0x10
19268 #define _CLC2SEL3_D4S4 0x10
19269 #define _CLC2SEL3_LC2D4S5 0x20
19270 #define _CLC2SEL3_D4S5 0x20
19272 //==============================================================================
19275 //==============================================================================
19276 // CLC2GLS0 Bits
19278 extern __at(0x0F20) __sfr CLC2GLS0;
19280 typedef union
19282 struct
19284 unsigned LC2G1D1N : 1;
19285 unsigned LC2G1D1T : 1;
19286 unsigned LC2G1D2N : 1;
19287 unsigned LC2G1D2T : 1;
19288 unsigned LC2G1D3N : 1;
19289 unsigned LC2G1D3T : 1;
19290 unsigned LC2G1D4N : 1;
19291 unsigned LC2G1D4T : 1;
19294 struct
19296 unsigned D1N : 1;
19297 unsigned D1T : 1;
19298 unsigned D2N : 1;
19299 unsigned D2T : 1;
19300 unsigned D3N : 1;
19301 unsigned D3T : 1;
19302 unsigned D4N : 1;
19303 unsigned D4T : 1;
19305 } __CLC2GLS0bits_t;
19307 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
19309 #define _CLC2GLS0_LC2G1D1N 0x01
19310 #define _CLC2GLS0_D1N 0x01
19311 #define _CLC2GLS0_LC2G1D1T 0x02
19312 #define _CLC2GLS0_D1T 0x02
19313 #define _CLC2GLS0_LC2G1D2N 0x04
19314 #define _CLC2GLS0_D2N 0x04
19315 #define _CLC2GLS0_LC2G1D2T 0x08
19316 #define _CLC2GLS0_D2T 0x08
19317 #define _CLC2GLS0_LC2G1D3N 0x10
19318 #define _CLC2GLS0_D3N 0x10
19319 #define _CLC2GLS0_LC2G1D3T 0x20
19320 #define _CLC2GLS0_D3T 0x20
19321 #define _CLC2GLS0_LC2G1D4N 0x40
19322 #define _CLC2GLS0_D4N 0x40
19323 #define _CLC2GLS0_LC2G1D4T 0x80
19324 #define _CLC2GLS0_D4T 0x80
19326 //==============================================================================
19329 //==============================================================================
19330 // CLC2GLS1 Bits
19332 extern __at(0x0F21) __sfr CLC2GLS1;
19334 typedef union
19336 struct
19338 unsigned LC2G2D1N : 1;
19339 unsigned LC2G2D1T : 1;
19340 unsigned LC2G2D2N : 1;
19341 unsigned LC2G2D2T : 1;
19342 unsigned LC2G2D3N : 1;
19343 unsigned LC2G2D3T : 1;
19344 unsigned LC2G2D4N : 1;
19345 unsigned LC2G2D4T : 1;
19348 struct
19350 unsigned D1N : 1;
19351 unsigned D1T : 1;
19352 unsigned D2N : 1;
19353 unsigned D2T : 1;
19354 unsigned D3N : 1;
19355 unsigned D3T : 1;
19356 unsigned D4N : 1;
19357 unsigned D4T : 1;
19359 } __CLC2GLS1bits_t;
19361 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
19363 #define _CLC2GLS1_LC2G2D1N 0x01
19364 #define _CLC2GLS1_D1N 0x01
19365 #define _CLC2GLS1_LC2G2D1T 0x02
19366 #define _CLC2GLS1_D1T 0x02
19367 #define _CLC2GLS1_LC2G2D2N 0x04
19368 #define _CLC2GLS1_D2N 0x04
19369 #define _CLC2GLS1_LC2G2D2T 0x08
19370 #define _CLC2GLS1_D2T 0x08
19371 #define _CLC2GLS1_LC2G2D3N 0x10
19372 #define _CLC2GLS1_D3N 0x10
19373 #define _CLC2GLS1_LC2G2D3T 0x20
19374 #define _CLC2GLS1_D3T 0x20
19375 #define _CLC2GLS1_LC2G2D4N 0x40
19376 #define _CLC2GLS1_D4N 0x40
19377 #define _CLC2GLS1_LC2G2D4T 0x80
19378 #define _CLC2GLS1_D4T 0x80
19380 //==============================================================================
19383 //==============================================================================
19384 // CLC2GLS2 Bits
19386 extern __at(0x0F22) __sfr CLC2GLS2;
19388 typedef union
19390 struct
19392 unsigned LC2G3D1N : 1;
19393 unsigned LC2G3D1T : 1;
19394 unsigned LC2G3D2N : 1;
19395 unsigned LC2G3D2T : 1;
19396 unsigned LC2G3D3N : 1;
19397 unsigned LC2G3D3T : 1;
19398 unsigned LC2G3D4N : 1;
19399 unsigned LC2G3D4T : 1;
19402 struct
19404 unsigned D1N : 1;
19405 unsigned D1T : 1;
19406 unsigned D2N : 1;
19407 unsigned D2T : 1;
19408 unsigned D3N : 1;
19409 unsigned D3T : 1;
19410 unsigned D4N : 1;
19411 unsigned D4T : 1;
19413 } __CLC2GLS2bits_t;
19415 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
19417 #define _CLC2GLS2_LC2G3D1N 0x01
19418 #define _CLC2GLS2_D1N 0x01
19419 #define _CLC2GLS2_LC2G3D1T 0x02
19420 #define _CLC2GLS2_D1T 0x02
19421 #define _CLC2GLS2_LC2G3D2N 0x04
19422 #define _CLC2GLS2_D2N 0x04
19423 #define _CLC2GLS2_LC2G3D2T 0x08
19424 #define _CLC2GLS2_D2T 0x08
19425 #define _CLC2GLS2_LC2G3D3N 0x10
19426 #define _CLC2GLS2_D3N 0x10
19427 #define _CLC2GLS2_LC2G3D3T 0x20
19428 #define _CLC2GLS2_D3T 0x20
19429 #define _CLC2GLS2_LC2G3D4N 0x40
19430 #define _CLC2GLS2_D4N 0x40
19431 #define _CLC2GLS2_LC2G3D4T 0x80
19432 #define _CLC2GLS2_D4T 0x80
19434 //==============================================================================
19437 //==============================================================================
19438 // CLC2GLS3 Bits
19440 extern __at(0x0F23) __sfr CLC2GLS3;
19442 typedef union
19444 struct
19446 unsigned LC2G4D1N : 1;
19447 unsigned LC2G4D1T : 1;
19448 unsigned LC2G4D2N : 1;
19449 unsigned LC2G4D2T : 1;
19450 unsigned LC2G4D3N : 1;
19451 unsigned LC2G4D3T : 1;
19452 unsigned LC2G4D4N : 1;
19453 unsigned LC2G4D4T : 1;
19456 struct
19458 unsigned G4D1N : 1;
19459 unsigned G4D1T : 1;
19460 unsigned G4D2N : 1;
19461 unsigned G4D2T : 1;
19462 unsigned G4D3N : 1;
19463 unsigned G4D3T : 1;
19464 unsigned G4D4N : 1;
19465 unsigned G4D4T : 1;
19467 } __CLC2GLS3bits_t;
19469 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
19471 #define _CLC2GLS3_LC2G4D1N 0x01
19472 #define _CLC2GLS3_G4D1N 0x01
19473 #define _CLC2GLS3_LC2G4D1T 0x02
19474 #define _CLC2GLS3_G4D1T 0x02
19475 #define _CLC2GLS3_LC2G4D2N 0x04
19476 #define _CLC2GLS3_G4D2N 0x04
19477 #define _CLC2GLS3_LC2G4D2T 0x08
19478 #define _CLC2GLS3_G4D2T 0x08
19479 #define _CLC2GLS3_LC2G4D3N 0x10
19480 #define _CLC2GLS3_G4D3N 0x10
19481 #define _CLC2GLS3_LC2G4D3T 0x20
19482 #define _CLC2GLS3_G4D3T 0x20
19483 #define _CLC2GLS3_LC2G4D4N 0x40
19484 #define _CLC2GLS3_G4D4N 0x40
19485 #define _CLC2GLS3_LC2G4D4T 0x80
19486 #define _CLC2GLS3_G4D4T 0x80
19488 //==============================================================================
19491 //==============================================================================
19492 // CLC3CON Bits
19494 extern __at(0x0F24) __sfr CLC3CON;
19496 typedef union
19498 struct
19500 unsigned LC3MODE0 : 1;
19501 unsigned LC3MODE1 : 1;
19502 unsigned LC3MODE2 : 1;
19503 unsigned LC3INTN : 1;
19504 unsigned LC3INTP : 1;
19505 unsigned LC3OUT : 1;
19506 unsigned : 1;
19507 unsigned LC3EN : 1;
19510 struct
19512 unsigned MODE0 : 1;
19513 unsigned MODE1 : 1;
19514 unsigned MODE2 : 1;
19515 unsigned INTN : 1;
19516 unsigned INTP : 1;
19517 unsigned OUT : 1;
19518 unsigned : 1;
19519 unsigned EN : 1;
19522 struct
19524 unsigned LC3MODE : 3;
19525 unsigned : 5;
19528 struct
19530 unsigned MODE : 3;
19531 unsigned : 5;
19533 } __CLC3CONbits_t;
19535 extern __at(0x0F24) volatile __CLC3CONbits_t CLC3CONbits;
19537 #define _CLC3CON_LC3MODE0 0x01
19538 #define _CLC3CON_MODE0 0x01
19539 #define _CLC3CON_LC3MODE1 0x02
19540 #define _CLC3CON_MODE1 0x02
19541 #define _CLC3CON_LC3MODE2 0x04
19542 #define _CLC3CON_MODE2 0x04
19543 #define _CLC3CON_LC3INTN 0x08
19544 #define _CLC3CON_INTN 0x08
19545 #define _CLC3CON_LC3INTP 0x10
19546 #define _CLC3CON_INTP 0x10
19547 #define _CLC3CON_LC3OUT 0x20
19548 #define _CLC3CON_OUT 0x20
19549 #define _CLC3CON_LC3EN 0x80
19550 #define _CLC3CON_EN 0x80
19552 //==============================================================================
19555 //==============================================================================
19556 // CLC3POL Bits
19558 extern __at(0x0F25) __sfr CLC3POL;
19560 typedef union
19562 struct
19564 unsigned LC3G1POL : 1;
19565 unsigned LC3G2POL : 1;
19566 unsigned LC3G3POL : 1;
19567 unsigned LC3G4POL : 1;
19568 unsigned : 1;
19569 unsigned : 1;
19570 unsigned : 1;
19571 unsigned LC3POL : 1;
19574 struct
19576 unsigned G1POL : 1;
19577 unsigned G2POL : 1;
19578 unsigned G3POL : 1;
19579 unsigned G4POL : 1;
19580 unsigned : 1;
19581 unsigned : 1;
19582 unsigned : 1;
19583 unsigned POL : 1;
19585 } __CLC3POLbits_t;
19587 extern __at(0x0F25) volatile __CLC3POLbits_t CLC3POLbits;
19589 #define _CLC3POL_LC3G1POL 0x01
19590 #define _CLC3POL_G1POL 0x01
19591 #define _CLC3POL_LC3G2POL 0x02
19592 #define _CLC3POL_G2POL 0x02
19593 #define _CLC3POL_LC3G3POL 0x04
19594 #define _CLC3POL_G3POL 0x04
19595 #define _CLC3POL_LC3G4POL 0x08
19596 #define _CLC3POL_G4POL 0x08
19597 #define _CLC3POL_LC3POL 0x80
19598 #define _CLC3POL_POL 0x80
19600 //==============================================================================
19603 //==============================================================================
19604 // CLC3SEL0 Bits
19606 extern __at(0x0F26) __sfr CLC3SEL0;
19608 typedef union
19610 struct
19612 unsigned LC3D1S0 : 1;
19613 unsigned LC3D1S1 : 1;
19614 unsigned LC3D1S2 : 1;
19615 unsigned LC3D1S3 : 1;
19616 unsigned LC3D1S4 : 1;
19617 unsigned LC3D1S5 : 1;
19618 unsigned : 1;
19619 unsigned : 1;
19622 struct
19624 unsigned D1S0 : 1;
19625 unsigned D1S1 : 1;
19626 unsigned D1S2 : 1;
19627 unsigned D1S3 : 1;
19628 unsigned D1S4 : 1;
19629 unsigned D1S5 : 1;
19630 unsigned : 1;
19631 unsigned : 1;
19634 struct
19636 unsigned D1S : 6;
19637 unsigned : 2;
19640 struct
19642 unsigned LC3D1S : 6;
19643 unsigned : 2;
19645 } __CLC3SEL0bits_t;
19647 extern __at(0x0F26) volatile __CLC3SEL0bits_t CLC3SEL0bits;
19649 #define _CLC3SEL0_LC3D1S0 0x01
19650 #define _CLC3SEL0_D1S0 0x01
19651 #define _CLC3SEL0_LC3D1S1 0x02
19652 #define _CLC3SEL0_D1S1 0x02
19653 #define _CLC3SEL0_LC3D1S2 0x04
19654 #define _CLC3SEL0_D1S2 0x04
19655 #define _CLC3SEL0_LC3D1S3 0x08
19656 #define _CLC3SEL0_D1S3 0x08
19657 #define _CLC3SEL0_LC3D1S4 0x10
19658 #define _CLC3SEL0_D1S4 0x10
19659 #define _CLC3SEL0_LC3D1S5 0x20
19660 #define _CLC3SEL0_D1S5 0x20
19662 //==============================================================================
19665 //==============================================================================
19666 // CLC3SEL1 Bits
19668 extern __at(0x0F27) __sfr CLC3SEL1;
19670 typedef union
19672 struct
19674 unsigned LC3D2S0 : 1;
19675 unsigned LC3D2S1 : 1;
19676 unsigned LC3D2S2 : 1;
19677 unsigned LC3D2S3 : 1;
19678 unsigned LC3D2S4 : 1;
19679 unsigned LC3D2S5 : 1;
19680 unsigned : 1;
19681 unsigned : 1;
19684 struct
19686 unsigned D2S0 : 1;
19687 unsigned D2S1 : 1;
19688 unsigned D2S2 : 1;
19689 unsigned D2S3 : 1;
19690 unsigned D2S4 : 1;
19691 unsigned D2S5 : 1;
19692 unsigned : 1;
19693 unsigned : 1;
19696 struct
19698 unsigned LC3D2S : 6;
19699 unsigned : 2;
19702 struct
19704 unsigned D2S : 6;
19705 unsigned : 2;
19707 } __CLC3SEL1bits_t;
19709 extern __at(0x0F27) volatile __CLC3SEL1bits_t CLC3SEL1bits;
19711 #define _CLC3SEL1_LC3D2S0 0x01
19712 #define _CLC3SEL1_D2S0 0x01
19713 #define _CLC3SEL1_LC3D2S1 0x02
19714 #define _CLC3SEL1_D2S1 0x02
19715 #define _CLC3SEL1_LC3D2S2 0x04
19716 #define _CLC3SEL1_D2S2 0x04
19717 #define _CLC3SEL1_LC3D2S3 0x08
19718 #define _CLC3SEL1_D2S3 0x08
19719 #define _CLC3SEL1_LC3D2S4 0x10
19720 #define _CLC3SEL1_D2S4 0x10
19721 #define _CLC3SEL1_LC3D2S5 0x20
19722 #define _CLC3SEL1_D2S5 0x20
19724 //==============================================================================
19727 //==============================================================================
19728 // CLC3SEL2 Bits
19730 extern __at(0x0F28) __sfr CLC3SEL2;
19732 typedef union
19734 struct
19736 unsigned LC3D3S0 : 1;
19737 unsigned LC3D3S1 : 1;
19738 unsigned LC3D3S2 : 1;
19739 unsigned LC3D3S3 : 1;
19740 unsigned LC3D3S4 : 1;
19741 unsigned LC3D3S5 : 1;
19742 unsigned : 1;
19743 unsigned : 1;
19746 struct
19748 unsigned D3S0 : 1;
19749 unsigned D3S1 : 1;
19750 unsigned D3S2 : 1;
19751 unsigned D3S3 : 1;
19752 unsigned D3S4 : 1;
19753 unsigned D3S5 : 1;
19754 unsigned : 1;
19755 unsigned : 1;
19758 struct
19760 unsigned LC3D3S : 6;
19761 unsigned : 2;
19764 struct
19766 unsigned D3S : 6;
19767 unsigned : 2;
19769 } __CLC3SEL2bits_t;
19771 extern __at(0x0F28) volatile __CLC3SEL2bits_t CLC3SEL2bits;
19773 #define _CLC3SEL2_LC3D3S0 0x01
19774 #define _CLC3SEL2_D3S0 0x01
19775 #define _CLC3SEL2_LC3D3S1 0x02
19776 #define _CLC3SEL2_D3S1 0x02
19777 #define _CLC3SEL2_LC3D3S2 0x04
19778 #define _CLC3SEL2_D3S2 0x04
19779 #define _CLC3SEL2_LC3D3S3 0x08
19780 #define _CLC3SEL2_D3S3 0x08
19781 #define _CLC3SEL2_LC3D3S4 0x10
19782 #define _CLC3SEL2_D3S4 0x10
19783 #define _CLC3SEL2_LC3D3S5 0x20
19784 #define _CLC3SEL2_D3S5 0x20
19786 //==============================================================================
19789 //==============================================================================
19790 // CLC3SEL3 Bits
19792 extern __at(0x0F29) __sfr CLC3SEL3;
19794 typedef union
19796 struct
19798 unsigned LC3D4S0 : 1;
19799 unsigned LC3D4S1 : 1;
19800 unsigned LC3D4S2 : 1;
19801 unsigned LC3D4S3 : 1;
19802 unsigned LC3D4S4 : 1;
19803 unsigned LC3D4S5 : 1;
19804 unsigned : 1;
19805 unsigned : 1;
19808 struct
19810 unsigned D4S0 : 1;
19811 unsigned D4S1 : 1;
19812 unsigned D4S2 : 1;
19813 unsigned D4S3 : 1;
19814 unsigned D4S4 : 1;
19815 unsigned D4S5 : 1;
19816 unsigned : 1;
19817 unsigned : 1;
19820 struct
19822 unsigned D4S : 6;
19823 unsigned : 2;
19826 struct
19828 unsigned LC3D4S : 6;
19829 unsigned : 2;
19831 } __CLC3SEL3bits_t;
19833 extern __at(0x0F29) volatile __CLC3SEL3bits_t CLC3SEL3bits;
19835 #define _CLC3SEL3_LC3D4S0 0x01
19836 #define _CLC3SEL3_D4S0 0x01
19837 #define _CLC3SEL3_LC3D4S1 0x02
19838 #define _CLC3SEL3_D4S1 0x02
19839 #define _CLC3SEL3_LC3D4S2 0x04
19840 #define _CLC3SEL3_D4S2 0x04
19841 #define _CLC3SEL3_LC3D4S3 0x08
19842 #define _CLC3SEL3_D4S3 0x08
19843 #define _CLC3SEL3_LC3D4S4 0x10
19844 #define _CLC3SEL3_D4S4 0x10
19845 #define _CLC3SEL3_LC3D4S5 0x20
19846 #define _CLC3SEL3_D4S5 0x20
19848 //==============================================================================
19851 //==============================================================================
19852 // CLC3GLS0 Bits
19854 extern __at(0x0F2A) __sfr CLC3GLS0;
19856 typedef union
19858 struct
19860 unsigned LC3G1D1N : 1;
19861 unsigned LC3G1D1T : 1;
19862 unsigned LC3G1D2N : 1;
19863 unsigned LC3G1D2T : 1;
19864 unsigned LC3G1D3N : 1;
19865 unsigned LC3G1D3T : 1;
19866 unsigned LC3G1D4N : 1;
19867 unsigned LC3G1D4T : 1;
19870 struct
19872 unsigned D1N : 1;
19873 unsigned D1T : 1;
19874 unsigned D2N : 1;
19875 unsigned D2T : 1;
19876 unsigned D3N : 1;
19877 unsigned D3T : 1;
19878 unsigned D4N : 1;
19879 unsigned D4T : 1;
19881 } __CLC3GLS0bits_t;
19883 extern __at(0x0F2A) volatile __CLC3GLS0bits_t CLC3GLS0bits;
19885 #define _CLC3GLS0_LC3G1D1N 0x01
19886 #define _CLC3GLS0_D1N 0x01
19887 #define _CLC3GLS0_LC3G1D1T 0x02
19888 #define _CLC3GLS0_D1T 0x02
19889 #define _CLC3GLS0_LC3G1D2N 0x04
19890 #define _CLC3GLS0_D2N 0x04
19891 #define _CLC3GLS0_LC3G1D2T 0x08
19892 #define _CLC3GLS0_D2T 0x08
19893 #define _CLC3GLS0_LC3G1D3N 0x10
19894 #define _CLC3GLS0_D3N 0x10
19895 #define _CLC3GLS0_LC3G1D3T 0x20
19896 #define _CLC3GLS0_D3T 0x20
19897 #define _CLC3GLS0_LC3G1D4N 0x40
19898 #define _CLC3GLS0_D4N 0x40
19899 #define _CLC3GLS0_LC3G1D4T 0x80
19900 #define _CLC3GLS0_D4T 0x80
19902 //==============================================================================
19905 //==============================================================================
19906 // CLC3GLS1 Bits
19908 extern __at(0x0F2B) __sfr CLC3GLS1;
19910 typedef union
19912 struct
19914 unsigned LC3G2D1N : 1;
19915 unsigned LC3G2D1T : 1;
19916 unsigned LC3G2D2N : 1;
19917 unsigned LC3G2D2T : 1;
19918 unsigned LC3G2D3N : 1;
19919 unsigned LC3G2D3T : 1;
19920 unsigned LC3G2D4N : 1;
19921 unsigned LC3G2D4T : 1;
19924 struct
19926 unsigned D1N : 1;
19927 unsigned D1T : 1;
19928 unsigned D2N : 1;
19929 unsigned D2T : 1;
19930 unsigned D3N : 1;
19931 unsigned D3T : 1;
19932 unsigned D4N : 1;
19933 unsigned D4T : 1;
19935 } __CLC3GLS1bits_t;
19937 extern __at(0x0F2B) volatile __CLC3GLS1bits_t CLC3GLS1bits;
19939 #define _CLC3GLS1_LC3G2D1N 0x01
19940 #define _CLC3GLS1_D1N 0x01
19941 #define _CLC3GLS1_LC3G2D1T 0x02
19942 #define _CLC3GLS1_D1T 0x02
19943 #define _CLC3GLS1_LC3G2D2N 0x04
19944 #define _CLC3GLS1_D2N 0x04
19945 #define _CLC3GLS1_LC3G2D2T 0x08
19946 #define _CLC3GLS1_D2T 0x08
19947 #define _CLC3GLS1_LC3G2D3N 0x10
19948 #define _CLC3GLS1_D3N 0x10
19949 #define _CLC3GLS1_LC3G2D3T 0x20
19950 #define _CLC3GLS1_D3T 0x20
19951 #define _CLC3GLS1_LC3G2D4N 0x40
19952 #define _CLC3GLS1_D4N 0x40
19953 #define _CLC3GLS1_LC3G2D4T 0x80
19954 #define _CLC3GLS1_D4T 0x80
19956 //==============================================================================
19959 //==============================================================================
19960 // CLC3GLS2 Bits
19962 extern __at(0x0F2C) __sfr CLC3GLS2;
19964 typedef union
19966 struct
19968 unsigned LC3G3D1N : 1;
19969 unsigned LC3G3D1T : 1;
19970 unsigned LC3G3D2N : 1;
19971 unsigned LC3G3D2T : 1;
19972 unsigned LC3G3D3N : 1;
19973 unsigned LC3G3D3T : 1;
19974 unsigned LC3G3D4N : 1;
19975 unsigned LC3G3D4T : 1;
19978 struct
19980 unsigned D1N : 1;
19981 unsigned D1T : 1;
19982 unsigned D2N : 1;
19983 unsigned D2T : 1;
19984 unsigned D3N : 1;
19985 unsigned D3T : 1;
19986 unsigned D4N : 1;
19987 unsigned D4T : 1;
19989 } __CLC3GLS2bits_t;
19991 extern __at(0x0F2C) volatile __CLC3GLS2bits_t CLC3GLS2bits;
19993 #define _CLC3GLS2_LC3G3D1N 0x01
19994 #define _CLC3GLS2_D1N 0x01
19995 #define _CLC3GLS2_LC3G3D1T 0x02
19996 #define _CLC3GLS2_D1T 0x02
19997 #define _CLC3GLS2_LC3G3D2N 0x04
19998 #define _CLC3GLS2_D2N 0x04
19999 #define _CLC3GLS2_LC3G3D2T 0x08
20000 #define _CLC3GLS2_D2T 0x08
20001 #define _CLC3GLS2_LC3G3D3N 0x10
20002 #define _CLC3GLS2_D3N 0x10
20003 #define _CLC3GLS2_LC3G3D3T 0x20
20004 #define _CLC3GLS2_D3T 0x20
20005 #define _CLC3GLS2_LC3G3D4N 0x40
20006 #define _CLC3GLS2_D4N 0x40
20007 #define _CLC3GLS2_LC3G3D4T 0x80
20008 #define _CLC3GLS2_D4T 0x80
20010 //==============================================================================
20013 //==============================================================================
20014 // CLC3GLS3 Bits
20016 extern __at(0x0F2D) __sfr CLC3GLS3;
20018 typedef union
20020 struct
20022 unsigned LC3G4D1N : 1;
20023 unsigned LC3G4D1T : 1;
20024 unsigned LC3G4D2N : 1;
20025 unsigned LC3G4D2T : 1;
20026 unsigned LC3G4D3N : 1;
20027 unsigned LC3G4D3T : 1;
20028 unsigned LC3G4D4N : 1;
20029 unsigned LC3G4D4T : 1;
20032 struct
20034 unsigned G4D1N : 1;
20035 unsigned G4D1T : 1;
20036 unsigned G4D2N : 1;
20037 unsigned G4D2T : 1;
20038 unsigned G4D3N : 1;
20039 unsigned G4D3T : 1;
20040 unsigned G4D4N : 1;
20041 unsigned G4D4T : 1;
20043 } __CLC3GLS3bits_t;
20045 extern __at(0x0F2D) volatile __CLC3GLS3bits_t CLC3GLS3bits;
20047 #define _CLC3GLS3_LC3G4D1N 0x01
20048 #define _CLC3GLS3_G4D1N 0x01
20049 #define _CLC3GLS3_LC3G4D1T 0x02
20050 #define _CLC3GLS3_G4D1T 0x02
20051 #define _CLC3GLS3_LC3G4D2N 0x04
20052 #define _CLC3GLS3_G4D2N 0x04
20053 #define _CLC3GLS3_LC3G4D2T 0x08
20054 #define _CLC3GLS3_G4D2T 0x08
20055 #define _CLC3GLS3_LC3G4D3N 0x10
20056 #define _CLC3GLS3_G4D3N 0x10
20057 #define _CLC3GLS3_LC3G4D3T 0x20
20058 #define _CLC3GLS3_G4D3T 0x20
20059 #define _CLC3GLS3_LC3G4D4N 0x40
20060 #define _CLC3GLS3_G4D4N 0x40
20061 #define _CLC3GLS3_LC3G4D4T 0x80
20062 #define _CLC3GLS3_G4D4T 0x80
20064 //==============================================================================
20067 //==============================================================================
20068 // CLC4CON Bits
20070 extern __at(0x0F2E) __sfr CLC4CON;
20072 typedef union
20074 struct
20076 unsigned LC4MODE0 : 1;
20077 unsigned LC4MODE1 : 1;
20078 unsigned LC4MODE2 : 1;
20079 unsigned LC4INTN : 1;
20080 unsigned LC4INTP : 1;
20081 unsigned LC4OUT : 1;
20082 unsigned : 1;
20083 unsigned LC4EN : 1;
20086 struct
20088 unsigned MODE0 : 1;
20089 unsigned MODE1 : 1;
20090 unsigned MODE2 : 1;
20091 unsigned INTN : 1;
20092 unsigned INTP : 1;
20093 unsigned OUT : 1;
20094 unsigned : 1;
20095 unsigned EN : 1;
20098 struct
20100 unsigned LC4MODE : 3;
20101 unsigned : 5;
20104 struct
20106 unsigned MODE : 3;
20107 unsigned : 5;
20109 } __CLC4CONbits_t;
20111 extern __at(0x0F2E) volatile __CLC4CONbits_t CLC4CONbits;
20113 #define _CLC4CON_LC4MODE0 0x01
20114 #define _CLC4CON_MODE0 0x01
20115 #define _CLC4CON_LC4MODE1 0x02
20116 #define _CLC4CON_MODE1 0x02
20117 #define _CLC4CON_LC4MODE2 0x04
20118 #define _CLC4CON_MODE2 0x04
20119 #define _CLC4CON_LC4INTN 0x08
20120 #define _CLC4CON_INTN 0x08
20121 #define _CLC4CON_LC4INTP 0x10
20122 #define _CLC4CON_INTP 0x10
20123 #define _CLC4CON_LC4OUT 0x20
20124 #define _CLC4CON_OUT 0x20
20125 #define _CLC4CON_LC4EN 0x80
20126 #define _CLC4CON_EN 0x80
20128 //==============================================================================
20131 //==============================================================================
20132 // CLC4POL Bits
20134 extern __at(0x0F2F) __sfr CLC4POL;
20136 typedef union
20138 struct
20140 unsigned LC4G1POL : 1;
20141 unsigned LC4G2POL : 1;
20142 unsigned LC4G3POL : 1;
20143 unsigned LC4G4POL : 1;
20144 unsigned : 1;
20145 unsigned : 1;
20146 unsigned : 1;
20147 unsigned LC4POL : 1;
20150 struct
20152 unsigned G1POL : 1;
20153 unsigned G2POL : 1;
20154 unsigned G3POL : 1;
20155 unsigned G4POL : 1;
20156 unsigned : 1;
20157 unsigned : 1;
20158 unsigned : 1;
20159 unsigned POL : 1;
20161 } __CLC4POLbits_t;
20163 extern __at(0x0F2F) volatile __CLC4POLbits_t CLC4POLbits;
20165 #define _CLC4POL_LC4G1POL 0x01
20166 #define _CLC4POL_G1POL 0x01
20167 #define _CLC4POL_LC4G2POL 0x02
20168 #define _CLC4POL_G2POL 0x02
20169 #define _CLC4POL_LC4G3POL 0x04
20170 #define _CLC4POL_G3POL 0x04
20171 #define _CLC4POL_LC4G4POL 0x08
20172 #define _CLC4POL_G4POL 0x08
20173 #define _CLC4POL_LC4POL 0x80
20174 #define _CLC4POL_POL 0x80
20176 //==============================================================================
20179 //==============================================================================
20180 // CLC4SEL0 Bits
20182 extern __at(0x0F30) __sfr CLC4SEL0;
20184 typedef union
20186 struct
20188 unsigned LC4D1S0 : 1;
20189 unsigned LC4D1S1 : 1;
20190 unsigned LC4D1S2 : 1;
20191 unsigned LC4D1S3 : 1;
20192 unsigned LC4D1S4 : 1;
20193 unsigned LC4D1S5 : 1;
20194 unsigned : 1;
20195 unsigned : 1;
20198 struct
20200 unsigned D1S0 : 1;
20201 unsigned D1S1 : 1;
20202 unsigned D1S2 : 1;
20203 unsigned D1S3 : 1;
20204 unsigned D1S4 : 1;
20205 unsigned D1S5 : 1;
20206 unsigned : 1;
20207 unsigned : 1;
20210 struct
20212 unsigned D1S : 6;
20213 unsigned : 2;
20216 struct
20218 unsigned LC4D1S : 6;
20219 unsigned : 2;
20221 } __CLC4SEL0bits_t;
20223 extern __at(0x0F30) volatile __CLC4SEL0bits_t CLC4SEL0bits;
20225 #define _CLC4SEL0_LC4D1S0 0x01
20226 #define _CLC4SEL0_D1S0 0x01
20227 #define _CLC4SEL0_LC4D1S1 0x02
20228 #define _CLC4SEL0_D1S1 0x02
20229 #define _CLC4SEL0_LC4D1S2 0x04
20230 #define _CLC4SEL0_D1S2 0x04
20231 #define _CLC4SEL0_LC4D1S3 0x08
20232 #define _CLC4SEL0_D1S3 0x08
20233 #define _CLC4SEL0_LC4D1S4 0x10
20234 #define _CLC4SEL0_D1S4 0x10
20235 #define _CLC4SEL0_LC4D1S5 0x20
20236 #define _CLC4SEL0_D1S5 0x20
20238 //==============================================================================
20241 //==============================================================================
20242 // CLC4SEL1 Bits
20244 extern __at(0x0F31) __sfr CLC4SEL1;
20246 typedef union
20248 struct
20250 unsigned LC4D2S0 : 1;
20251 unsigned LC4D2S1 : 1;
20252 unsigned LC4D2S2 : 1;
20253 unsigned LC4D2S3 : 1;
20254 unsigned LC4D2S4 : 1;
20255 unsigned LC4D2S5 : 1;
20256 unsigned : 1;
20257 unsigned : 1;
20260 struct
20262 unsigned D2S0 : 1;
20263 unsigned D2S1 : 1;
20264 unsigned D2S2 : 1;
20265 unsigned D2S3 : 1;
20266 unsigned D2S4 : 1;
20267 unsigned D2S5 : 1;
20268 unsigned : 1;
20269 unsigned : 1;
20272 struct
20274 unsigned LC4D2S : 6;
20275 unsigned : 2;
20278 struct
20280 unsigned D2S : 6;
20281 unsigned : 2;
20283 } __CLC4SEL1bits_t;
20285 extern __at(0x0F31) volatile __CLC4SEL1bits_t CLC4SEL1bits;
20287 #define _CLC4SEL1_LC4D2S0 0x01
20288 #define _CLC4SEL1_D2S0 0x01
20289 #define _CLC4SEL1_LC4D2S1 0x02
20290 #define _CLC4SEL1_D2S1 0x02
20291 #define _CLC4SEL1_LC4D2S2 0x04
20292 #define _CLC4SEL1_D2S2 0x04
20293 #define _CLC4SEL1_LC4D2S3 0x08
20294 #define _CLC4SEL1_D2S3 0x08
20295 #define _CLC4SEL1_LC4D2S4 0x10
20296 #define _CLC4SEL1_D2S4 0x10
20297 #define _CLC4SEL1_LC4D2S5 0x20
20298 #define _CLC4SEL1_D2S5 0x20
20300 //==============================================================================
20303 //==============================================================================
20304 // CLC4SEL2 Bits
20306 extern __at(0x0F32) __sfr CLC4SEL2;
20308 typedef union
20310 struct
20312 unsigned LC4D3S0 : 1;
20313 unsigned LC4D3S1 : 1;
20314 unsigned LC4D3S2 : 1;
20315 unsigned LC4D3S3 : 1;
20316 unsigned LC4D3S4 : 1;
20317 unsigned LC4D3S5 : 1;
20318 unsigned : 1;
20319 unsigned : 1;
20322 struct
20324 unsigned D3S0 : 1;
20325 unsigned D3S1 : 1;
20326 unsigned D3S2 : 1;
20327 unsigned D3S3 : 1;
20328 unsigned D3S4 : 1;
20329 unsigned D3S5 : 1;
20330 unsigned : 1;
20331 unsigned : 1;
20334 struct
20336 unsigned D3S : 6;
20337 unsigned : 2;
20340 struct
20342 unsigned LC4D3S : 6;
20343 unsigned : 2;
20345 } __CLC4SEL2bits_t;
20347 extern __at(0x0F32) volatile __CLC4SEL2bits_t CLC4SEL2bits;
20349 #define _CLC4SEL2_LC4D3S0 0x01
20350 #define _CLC4SEL2_D3S0 0x01
20351 #define _CLC4SEL2_LC4D3S1 0x02
20352 #define _CLC4SEL2_D3S1 0x02
20353 #define _CLC4SEL2_LC4D3S2 0x04
20354 #define _CLC4SEL2_D3S2 0x04
20355 #define _CLC4SEL2_LC4D3S3 0x08
20356 #define _CLC4SEL2_D3S3 0x08
20357 #define _CLC4SEL2_LC4D3S4 0x10
20358 #define _CLC4SEL2_D3S4 0x10
20359 #define _CLC4SEL2_LC4D3S5 0x20
20360 #define _CLC4SEL2_D3S5 0x20
20362 //==============================================================================
20365 //==============================================================================
20366 // CLC4SEL3 Bits
20368 extern __at(0x0F33) __sfr CLC4SEL3;
20370 typedef union
20372 struct
20374 unsigned LC4D4S0 : 1;
20375 unsigned LC4D4S1 : 1;
20376 unsigned LC4D4S2 : 1;
20377 unsigned LC4D4S3 : 1;
20378 unsigned LC4D4S4 : 1;
20379 unsigned LC4D4S5 : 1;
20380 unsigned : 1;
20381 unsigned : 1;
20384 struct
20386 unsigned D4S0 : 1;
20387 unsigned D4S1 : 1;
20388 unsigned D4S2 : 1;
20389 unsigned D4S3 : 1;
20390 unsigned D4S4 : 1;
20391 unsigned D4S5 : 1;
20392 unsigned : 1;
20393 unsigned : 1;
20396 struct
20398 unsigned D4S : 6;
20399 unsigned : 2;
20402 struct
20404 unsigned LC4D4S : 6;
20405 unsigned : 2;
20407 } __CLC4SEL3bits_t;
20409 extern __at(0x0F33) volatile __CLC4SEL3bits_t CLC4SEL3bits;
20411 #define _CLC4SEL3_LC4D4S0 0x01
20412 #define _CLC4SEL3_D4S0 0x01
20413 #define _CLC4SEL3_LC4D4S1 0x02
20414 #define _CLC4SEL3_D4S1 0x02
20415 #define _CLC4SEL3_LC4D4S2 0x04
20416 #define _CLC4SEL3_D4S2 0x04
20417 #define _CLC4SEL3_LC4D4S3 0x08
20418 #define _CLC4SEL3_D4S3 0x08
20419 #define _CLC4SEL3_LC4D4S4 0x10
20420 #define _CLC4SEL3_D4S4 0x10
20421 #define _CLC4SEL3_LC4D4S5 0x20
20422 #define _CLC4SEL3_D4S5 0x20
20424 //==============================================================================
20427 //==============================================================================
20428 // CLC4GLS0 Bits
20430 extern __at(0x0F34) __sfr CLC4GLS0;
20432 typedef union
20434 struct
20436 unsigned LC4G1D1N : 1;
20437 unsigned LC4G1D1T : 1;
20438 unsigned LC4G1D2N : 1;
20439 unsigned LC4G1D2T : 1;
20440 unsigned LC4G1D3N : 1;
20441 unsigned LC4G1D3T : 1;
20442 unsigned LC4G1D4N : 1;
20443 unsigned LC4G1D4T : 1;
20446 struct
20448 unsigned D1N : 1;
20449 unsigned D1T : 1;
20450 unsigned D2N : 1;
20451 unsigned D2T : 1;
20452 unsigned D3N : 1;
20453 unsigned D3T : 1;
20454 unsigned D4N : 1;
20455 unsigned D4T : 1;
20457 } __CLC4GLS0bits_t;
20459 extern __at(0x0F34) volatile __CLC4GLS0bits_t CLC4GLS0bits;
20461 #define _CLC4GLS0_LC4G1D1N 0x01
20462 #define _CLC4GLS0_D1N 0x01
20463 #define _CLC4GLS0_LC4G1D1T 0x02
20464 #define _CLC4GLS0_D1T 0x02
20465 #define _CLC4GLS0_LC4G1D2N 0x04
20466 #define _CLC4GLS0_D2N 0x04
20467 #define _CLC4GLS0_LC4G1D2T 0x08
20468 #define _CLC4GLS0_D2T 0x08
20469 #define _CLC4GLS0_LC4G1D3N 0x10
20470 #define _CLC4GLS0_D3N 0x10
20471 #define _CLC4GLS0_LC4G1D3T 0x20
20472 #define _CLC4GLS0_D3T 0x20
20473 #define _CLC4GLS0_LC4G1D4N 0x40
20474 #define _CLC4GLS0_D4N 0x40
20475 #define _CLC4GLS0_LC4G1D4T 0x80
20476 #define _CLC4GLS0_D4T 0x80
20478 //==============================================================================
20481 //==============================================================================
20482 // CLC4GLS1 Bits
20484 extern __at(0x0F35) __sfr CLC4GLS1;
20486 typedef union
20488 struct
20490 unsigned LC4G2D1N : 1;
20491 unsigned LC4G2D1T : 1;
20492 unsigned LC4G2D2N : 1;
20493 unsigned LC4G2D2T : 1;
20494 unsigned LC4G2D3N : 1;
20495 unsigned LC4G2D3T : 1;
20496 unsigned LC4G2D4N : 1;
20497 unsigned LC4G2D4T : 1;
20500 struct
20502 unsigned D1N : 1;
20503 unsigned D1T : 1;
20504 unsigned D2N : 1;
20505 unsigned D2T : 1;
20506 unsigned D3N : 1;
20507 unsigned D3T : 1;
20508 unsigned D4N : 1;
20509 unsigned D4T : 1;
20511 } __CLC4GLS1bits_t;
20513 extern __at(0x0F35) volatile __CLC4GLS1bits_t CLC4GLS1bits;
20515 #define _CLC4GLS1_LC4G2D1N 0x01
20516 #define _CLC4GLS1_D1N 0x01
20517 #define _CLC4GLS1_LC4G2D1T 0x02
20518 #define _CLC4GLS1_D1T 0x02
20519 #define _CLC4GLS1_LC4G2D2N 0x04
20520 #define _CLC4GLS1_D2N 0x04
20521 #define _CLC4GLS1_LC4G2D2T 0x08
20522 #define _CLC4GLS1_D2T 0x08
20523 #define _CLC4GLS1_LC4G2D3N 0x10
20524 #define _CLC4GLS1_D3N 0x10
20525 #define _CLC4GLS1_LC4G2D3T 0x20
20526 #define _CLC4GLS1_D3T 0x20
20527 #define _CLC4GLS1_LC4G2D4N 0x40
20528 #define _CLC4GLS1_D4N 0x40
20529 #define _CLC4GLS1_LC4G2D4T 0x80
20530 #define _CLC4GLS1_D4T 0x80
20532 //==============================================================================
20535 //==============================================================================
20536 // CLC4GLS2 Bits
20538 extern __at(0x0F36) __sfr CLC4GLS2;
20540 typedef union
20542 struct
20544 unsigned LC4G3D1N : 1;
20545 unsigned LC4G3D1T : 1;
20546 unsigned LC4G3D2N : 1;
20547 unsigned LC4G3D2T : 1;
20548 unsigned LC4G3D3N : 1;
20549 unsigned LC4G3D3T : 1;
20550 unsigned LC4G3D4N : 1;
20551 unsigned LC4G3D4T : 1;
20554 struct
20556 unsigned D1N : 1;
20557 unsigned D1T : 1;
20558 unsigned D2N : 1;
20559 unsigned D2T : 1;
20560 unsigned D3N : 1;
20561 unsigned D3T : 1;
20562 unsigned D4N : 1;
20563 unsigned D4T : 1;
20565 } __CLC4GLS2bits_t;
20567 extern __at(0x0F36) volatile __CLC4GLS2bits_t CLC4GLS2bits;
20569 #define _CLC4GLS2_LC4G3D1N 0x01
20570 #define _CLC4GLS2_D1N 0x01
20571 #define _CLC4GLS2_LC4G3D1T 0x02
20572 #define _CLC4GLS2_D1T 0x02
20573 #define _CLC4GLS2_LC4G3D2N 0x04
20574 #define _CLC4GLS2_D2N 0x04
20575 #define _CLC4GLS2_LC4G3D2T 0x08
20576 #define _CLC4GLS2_D2T 0x08
20577 #define _CLC4GLS2_LC4G3D3N 0x10
20578 #define _CLC4GLS2_D3N 0x10
20579 #define _CLC4GLS2_LC4G3D3T 0x20
20580 #define _CLC4GLS2_D3T 0x20
20581 #define _CLC4GLS2_LC4G3D4N 0x40
20582 #define _CLC4GLS2_D4N 0x40
20583 #define _CLC4GLS2_LC4G3D4T 0x80
20584 #define _CLC4GLS2_D4T 0x80
20586 //==============================================================================
20589 //==============================================================================
20590 // CLC4GLS3 Bits
20592 extern __at(0x0F37) __sfr CLC4GLS3;
20594 typedef union
20596 struct
20598 unsigned LC4G4D1N : 1;
20599 unsigned LC4G4D1T : 1;
20600 unsigned LC4G4D2N : 1;
20601 unsigned LC4G4D2T : 1;
20602 unsigned LC4G4D3N : 1;
20603 unsigned LC4G4D3T : 1;
20604 unsigned LC4G4D4N : 1;
20605 unsigned LC4G4D4T : 1;
20608 struct
20610 unsigned G4D1N : 1;
20611 unsigned G4D1T : 1;
20612 unsigned G4D2N : 1;
20613 unsigned G4D2T : 1;
20614 unsigned G4D3N : 1;
20615 unsigned G4D3T : 1;
20616 unsigned G4D4N : 1;
20617 unsigned G4D4T : 1;
20619 } __CLC4GLS3bits_t;
20621 extern __at(0x0F37) volatile __CLC4GLS3bits_t CLC4GLS3bits;
20623 #define _CLC4GLS3_LC4G4D1N 0x01
20624 #define _CLC4GLS3_G4D1N 0x01
20625 #define _CLC4GLS3_LC4G4D1T 0x02
20626 #define _CLC4GLS3_G4D1T 0x02
20627 #define _CLC4GLS3_LC4G4D2N 0x04
20628 #define _CLC4GLS3_G4D2N 0x04
20629 #define _CLC4GLS3_LC4G4D2T 0x08
20630 #define _CLC4GLS3_G4D2T 0x08
20631 #define _CLC4GLS3_LC4G4D3N 0x10
20632 #define _CLC4GLS3_G4D3N 0x10
20633 #define _CLC4GLS3_LC4G4D3T 0x20
20634 #define _CLC4GLS3_G4D3T 0x20
20635 #define _CLC4GLS3_LC4G4D4N 0x40
20636 #define _CLC4GLS3_G4D4N 0x40
20637 #define _CLC4GLS3_LC4G4D4T 0x80
20638 #define _CLC4GLS3_G4D4T 0x80
20640 //==============================================================================
20643 //==============================================================================
20644 // STATUS_SHAD Bits
20646 extern __at(0x0FE4) __sfr STATUS_SHAD;
20648 typedef struct
20650 unsigned C_SHAD : 1;
20651 unsigned DC_SHAD : 1;
20652 unsigned Z_SHAD : 1;
20653 unsigned : 1;
20654 unsigned : 1;
20655 unsigned : 1;
20656 unsigned : 1;
20657 unsigned : 1;
20658 } __STATUS_SHADbits_t;
20660 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
20662 #define _C_SHAD 0x01
20663 #define _DC_SHAD 0x02
20664 #define _Z_SHAD 0x04
20666 //==============================================================================
20668 extern __at(0x0FE5) __sfr WREG_SHAD;
20669 extern __at(0x0FE6) __sfr BSR_SHAD;
20670 extern __at(0x0FE7) __sfr PCLATH_SHAD;
20671 extern __at(0x0FE8) __sfr FSR0L_SHAD;
20672 extern __at(0x0FE9) __sfr FSR0H_SHAD;
20673 extern __at(0x0FEA) __sfr FSR1L_SHAD;
20674 extern __at(0x0FEB) __sfr FSR1H_SHAD;
20675 extern __at(0x0FED) __sfr STKPTR;
20676 extern __at(0x0FEE) __sfr TOSL;
20677 extern __at(0x0FEF) __sfr TOSH;
20679 //==============================================================================
20681 // Configuration Bits
20683 //==============================================================================
20685 #define _CONFIG1 0x8007
20686 #define _CONFIG2 0x8008
20688 //----------------------------- CONFIG1 Options -------------------------------
20690 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
20691 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
20692 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
20693 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
20694 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
20695 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
20696 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
20697 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
20698 #define _WDTE_OFF 0x3FE7 // WDT disabled.
20699 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
20700 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
20701 #define _WDTE_ON 0x3FFF // WDT enabled.
20702 #define _PWRTE_ON 0x3FDF // PWRT enabled.
20703 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
20704 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
20705 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
20706 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
20707 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
20708 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
20709 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
20710 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
20711 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
20712 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
20713 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
20714 #define _IESO_OFF 0x2FFF // Internal/External Switchover Mode is disabled.
20715 #define _IESO_ON 0x3FFF // Internal/External Switchover Mode is enabled.
20716 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
20717 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
20719 //----------------------------- CONFIG2 Options -------------------------------
20721 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
20722 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
20723 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
20724 #define _WRT_OFF 0x3FFF // Write protection off.
20725 #define _PPS1WAY_OFF 0x3FFB // The PPSLOCK bit can be set and cleared repeatedly by software.
20726 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit cannot be cleared once it is set by software.
20727 #define _ZCD_ON 0x3F7F // Zero-cross detect circuit is enabled at POR.
20728 #define _ZCD_OFF 0x3FFF // Zero-cross detect circuit is disabled at POR.
20729 #define _PLLEN_OFF 0x3EFF // 4x PLL is enabled when software sets the SPLLEN bit.
20730 #define _PLLEN_ON 0x3FFF // 4x PLL is always enabled.
20731 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
20732 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
20733 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
20734 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
20735 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
20736 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
20737 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
20738 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
20739 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
20740 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
20742 //==============================================================================
20744 #define _DEVID1 0x8006
20746 #define _IDLOC0 0x8000
20747 #define _IDLOC1 0x8001
20748 #define _IDLOC2 0x8002
20749 #define _IDLOC3 0x8003
20751 //==============================================================================
20753 #ifndef NO_BIT_DEFINES
20755 #define ADON ADCON0bits.ADON // bit 0
20756 #define GO ADCON0bits.GO // bit 1
20758 #define ADNREF ADCON1bits.ADNREF // bit 2
20759 #define ADFM ADCON1bits.ADFM // bit 7
20761 #define ANSA0 ANSELAbits.ANSA0 // bit 0
20762 #define ANSA1 ANSELAbits.ANSA1 // bit 1
20763 #define ANSA2 ANSELAbits.ANSA2 // bit 2
20764 #define ANSA3 ANSELAbits.ANSA3 // bit 3
20765 #define ANSA4 ANSELAbits.ANSA4 // bit 4
20766 #define ANSA5 ANSELAbits.ANSA5 // bit 5
20768 #define ANSB0 ANSELBbits.ANSB0 // bit 0
20769 #define ANSB1 ANSELBbits.ANSB1 // bit 1
20770 #define ANSB2 ANSELBbits.ANSB2 // bit 2
20771 #define ANSB3 ANSELBbits.ANSB3 // bit 3
20772 #define ANSB4 ANSELBbits.ANSB4 // bit 4
20773 #define ANSB5 ANSELBbits.ANSB5 // bit 5
20775 #define ANSC2 ANSELCbits.ANSC2 // bit 2
20776 #define ANSC3 ANSELCbits.ANSC3 // bit 3
20777 #define ANSC4 ANSELCbits.ANSC4 // bit 4
20778 #define ANSC5 ANSELCbits.ANSC5 // bit 5
20779 #define ANSC6 ANSELCbits.ANSC6 // bit 6
20780 #define ANSC7 ANSELCbits.ANSC7 // bit 7
20782 #define ABDEN BAUD1CONbits.ABDEN // bit 0
20783 #define WUE BAUD1CONbits.WUE // bit 1
20784 #define BRG16 BAUD1CONbits.BRG16 // bit 3
20785 #define SCKP BAUD1CONbits.SCKP // bit 4
20786 #define RCIDL BAUD1CONbits.RCIDL // bit 6
20787 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
20789 #define BORRDY BORCONbits.BORRDY // bit 0
20790 #define BORFS BORCONbits.BORFS // bit 6
20791 #define SBOREN BORCONbits.SBOREN // bit 7
20793 #define BSR0 BSRbits.BSR0 // bit 0
20794 #define BSR1 BSRbits.BSR1 // bit 1
20795 #define BSR2 BSRbits.BSR2 // bit 2
20796 #define BSR3 BSRbits.BSR3 // bit 3
20797 #define BSR4 BSRbits.BSR4 // bit 4
20799 #define CTS0 CCP1CAPbits.CTS0 // bit 0, shadows bit in CCP1CAPbits
20800 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0, shadows bit in CCP1CAPbits
20801 #define CTS1 CCP1CAPbits.CTS1 // bit 1, shadows bit in CCP1CAPbits
20802 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1, shadows bit in CCP1CAPbits
20803 #define CTS2 CCP1CAPbits.CTS2 // bit 2, shadows bit in CCP1CAPbits
20804 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2, shadows bit in CCP1CAPbits
20805 #define CTS3 CCP1CAPbits.CTS3 // bit 3, shadows bit in CCP1CAPbits
20806 #define CCP1CTS3 CCP1CAPbits.CCP1CTS3 // bit 3, shadows bit in CCP1CAPbits
20808 #define MODE0 CCP1CONbits.MODE0 // bit 0, shadows bit in CCP1CONbits
20809 #define CCP1MODE0 CCP1CONbits.CCP1MODE0 // bit 0, shadows bit in CCP1CONbits
20810 #define MODE1 CCP1CONbits.MODE1 // bit 1, shadows bit in CCP1CONbits
20811 #define CCP1MODE1 CCP1CONbits.CCP1MODE1 // bit 1, shadows bit in CCP1CONbits
20812 #define MODE2 CCP1CONbits.MODE2 // bit 2, shadows bit in CCP1CONbits
20813 #define CCP1MODE2 CCP1CONbits.CCP1MODE2 // bit 2, shadows bit in CCP1CONbits
20814 #define MODE3 CCP1CONbits.MODE3 // bit 3, shadows bit in CCP1CONbits
20815 #define CCP1MODE3 CCP1CONbits.CCP1MODE3 // bit 3, shadows bit in CCP1CONbits
20816 #define FMT CCP1CONbits.FMT // bit 4, shadows bit in CCP1CONbits
20817 #define CCP1FMT CCP1CONbits.CCP1FMT // bit 4, shadows bit in CCP1CONbits
20818 #define OUT CCP1CONbits.OUT // bit 5, shadows bit in CCP1CONbits
20819 #define CCP1OUT CCP1CONbits.CCP1OUT // bit 5, shadows bit in CCP1CONbits
20820 #define EN CCP1CONbits.EN // bit 7, shadows bit in CCP1CONbits
20821 #define CCP1EN CCP1CONbits.CCP1EN // bit 7, shadows bit in CCP1CONbits
20823 #define C1TSEL0 CCPTMRS1bits.C1TSEL0 // bit 0
20824 #define C1TSEL1 CCPTMRS1bits.C1TSEL1 // bit 1
20825 #define C2TSEL0 CCPTMRS1bits.C2TSEL0 // bit 2
20826 #define C2TSEL1 CCPTMRS1bits.C2TSEL1 // bit 3
20827 #define C7TSEL0 CCPTMRS1bits.C7TSEL0 // bit 4
20828 #define C7TSEL1 CCPTMRS1bits.C7TSEL1 // bit 5
20830 #define P3TSEL0 CCPTMRS2bits.P3TSEL0 // bit 0
20831 #define P3TSEL1 CCPTMRS2bits.P3TSEL1 // bit 1
20832 #define P4TSEL0 CCPTMRS2bits.P4TSEL0 // bit 2
20833 #define P5TSEL1 CCPTMRS2bits.P5TSEL1 // bit 3
20834 #define P9TSEL0 CCPTMRS2bits.P9TSEL0 // bit 4
20835 #define P9TSEL1 CCPTMRS2bits.P9TSEL1 // bit 5
20837 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
20838 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
20839 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
20840 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
20841 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
20842 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
20843 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
20844 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
20845 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
20846 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
20847 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
20848 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
20849 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
20850 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
20851 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
20852 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
20854 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
20855 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
20856 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
20857 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
20858 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
20859 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
20860 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
20861 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
20862 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
20863 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
20864 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
20865 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
20866 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
20867 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
20868 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
20869 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
20871 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
20872 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
20873 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
20874 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
20875 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
20876 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
20877 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
20878 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
20879 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
20880 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
20882 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
20883 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
20884 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
20885 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
20886 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
20887 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
20888 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
20889 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
20890 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
20891 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
20892 #define LC1D1S5 CLC1SEL0bits.LC1D1S5 // bit 5, shadows bit in CLC1SEL0bits
20893 #define D1S5 CLC1SEL0bits.D1S5 // bit 5, shadows bit in CLC1SEL0bits
20895 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
20896 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
20897 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
20898 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
20899 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
20900 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
20901 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
20902 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
20903 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
20904 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
20905 #define LC1D2S5 CLC1SEL1bits.LC1D2S5 // bit 5, shadows bit in CLC1SEL1bits
20906 #define D2S5 CLC1SEL1bits.D2S5 // bit 5, shadows bit in CLC1SEL1bits
20908 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
20909 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
20910 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
20911 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
20912 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
20913 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
20914 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
20915 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
20916 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
20917 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
20918 #define LC1D3S5 CLC1SEL2bits.LC1D3S5 // bit 5, shadows bit in CLC1SEL2bits
20919 #define D3S5 CLC1SEL2bits.D3S5 // bit 5, shadows bit in CLC1SEL2bits
20921 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
20922 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
20923 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
20924 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
20925 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
20926 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
20927 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
20928 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
20929 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
20930 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
20931 #define LC1D4S5 CLC1SEL3bits.LC1D4S5 // bit 5, shadows bit in CLC1SEL3bits
20932 #define D4S5 CLC1SEL3bits.D4S5 // bit 5, shadows bit in CLC1SEL3bits
20934 #define MCLC1OUT CLCDATAbits.MCLC1OUT // bit 0
20935 #define MCLC2OUT CLCDATAbits.MCLC2OUT // bit 1
20936 #define MCLC3OUT CLCDATAbits.MCLC3OUT // bit 2
20937 #define MLC4OUT CLCDATAbits.MLC4OUT // bit 3
20939 #define C1NCH0 CM1NSELbits.C1NCH0 // bit 0
20940 #define C1NCH1 CM1NSELbits.C1NCH1 // bit 1
20941 #define C1NCH2 CM1NSELbits.C1NCH2 // bit 2
20942 #define C1NCH3 CM1NSELbits.C1NCH3 // bit 3
20944 #define PCH0 CM1PSELbits.PCH0 // bit 0, shadows bit in CM1PSELbits
20945 #define C1PCH0 CM1PSELbits.C1PCH0 // bit 0, shadows bit in CM1PSELbits
20946 #define PCH1 CM1PSELbits.PCH1 // bit 1, shadows bit in CM1PSELbits
20947 #define C1PCH1 CM1PSELbits.C1PCH1 // bit 1, shadows bit in CM1PSELbits
20948 #define PCH2 CM1PSELbits.PCH2 // bit 2, shadows bit in CM1PSELbits
20949 #define C1PCH2 CM1PSELbits.C1PCH2 // bit 2, shadows bit in CM1PSELbits
20950 #define PCH3 CM1PSELbits.PCH3 // bit 3, shadows bit in CM1PSELbits
20951 #define C1PCH3 CM1PSELbits.C1PCH3 // bit 3, shadows bit in CM1PSELbits
20953 #define C2NCH0 CM2NSELbits.C2NCH0 // bit 0
20954 #define C2NCH1 CM2NSELbits.C2NCH1 // bit 1
20955 #define C2NCH2 CM2NSELbits.C2NCH2 // bit 2
20956 #define C2NCH3 CM2NSELbits.C2NCH3 // bit 3
20958 #define C3NCH0 CM3NSELbits.C3NCH0 // bit 0
20959 #define C3NCH1 CM3NSELbits.C3NCH1 // bit 1
20960 #define C3NCH2 CM3NSELbits.C3NCH2 // bit 2
20961 #define C3NCH3 CM3NSELbits.C3NCH3 // bit 3
20963 #define C4NCH0 CM4NSELbits.C4NCH0 // bit 0
20964 #define C4NCH1 CM4NSELbits.C4NCH1 // bit 1
20965 #define C4NCH2 CM4NSELbits.C4NCH2 // bit 2
20966 #define C4NCH3 CM4NSELbits.C4NCH3 // bit 3
20968 #define C5NCH0 CM5NSELbits.C5NCH0 // bit 0
20969 #define C5NCH1 CM5NSELbits.C5NCH1 // bit 1
20970 #define C5NCH2 CM5NSELbits.C5NCH2 // bit 2
20971 #define C5NCH3 CM5NSELbits.C5NCH3 // bit 3
20973 #define C6NCH0 CM6NSELbits.C6NCH0 // bit 0
20974 #define C6NCH1 CM6NSELbits.C6NCH1 // bit 1
20975 #define C6NCH2 CM6NSELbits.C6NCH2 // bit 2
20976 #define C6NCH3 CM6NSELbits.C6NCH3 // bit 3
20978 #define MC1OUT CMOUTbits.MC1OUT // bit 0
20979 #define MC2OUT CMOUTbits.MC2OUT // bit 1
20980 #define MC3OUT CMOUTbits.MC3OUT // bit 2
20981 #define MC4OUT CMOUTbits.MC4OUT // bit 3
20982 #define MC5OUT CMOUTbits.MC5OUT // bit 4
20983 #define MC6OUT CMOUTbits.MC6OUT // bit 5
20985 #define ASDAC0 COG1ASD0bits.ASDAC0 // bit 2, shadows bit in COG1ASD0bits
20986 #define G1ASDAC0 COG1ASD0bits.G1ASDAC0 // bit 2, shadows bit in COG1ASD0bits
20987 #define ASDAC1 COG1ASD0bits.ASDAC1 // bit 3, shadows bit in COG1ASD0bits
20988 #define G1ASDAC1 COG1ASD0bits.G1ASDAC1 // bit 3, shadows bit in COG1ASD0bits
20989 #define ASDBD0 COG1ASD0bits.ASDBD0 // bit 4, shadows bit in COG1ASD0bits
20990 #define G1ASDBD0 COG1ASD0bits.G1ASDBD0 // bit 4, shadows bit in COG1ASD0bits
20991 #define ASDBD1 COG1ASD0bits.ASDBD1 // bit 5, shadows bit in COG1ASD0bits
20992 #define G1ASDBD1 COG1ASD0bits.G1ASDBD1 // bit 5, shadows bit in COG1ASD0bits
20993 #define ASREN COG1ASD0bits.ASREN // bit 6, shadows bit in COG1ASD0bits
20994 #define ARSEN COG1ASD0bits.ARSEN // bit 6, shadows bit in COG1ASD0bits
20995 #define G1ARSEN COG1ASD0bits.G1ARSEN // bit 6, shadows bit in COG1ASD0bits
20996 #define G1ASREN COG1ASD0bits.G1ASREN // bit 6, shadows bit in COG1ASD0bits
20997 #define ASE COG1ASD0bits.ASE // bit 7, shadows bit in COG1ASD0bits
20998 #define G1ASE COG1ASD0bits.G1ASE // bit 7, shadows bit in COG1ASD0bits
21000 #define AS0E COG1ASD1bits.AS0E // bit 0, shadows bit in COG1ASD1bits
21001 #define G1AS0E COG1ASD1bits.G1AS0E // bit 0, shadows bit in COG1ASD1bits
21002 #define AS1E COG1ASD1bits.AS1E // bit 1, shadows bit in COG1ASD1bits
21003 #define G1AS1E COG1ASD1bits.G1AS1E // bit 1, shadows bit in COG1ASD1bits
21004 #define AS2E COG1ASD1bits.AS2E // bit 2, shadows bit in COG1ASD1bits
21005 #define G1AS2E COG1ASD1bits.G1AS2E // bit 2, shadows bit in COG1ASD1bits
21006 #define AS3E COG1ASD1bits.AS3E // bit 3, shadows bit in COG1ASD1bits
21007 #define G1AS3E COG1ASD1bits.G1AS3E // bit 3, shadows bit in COG1ASD1bits
21008 #define AS4E COG1ASD1bits.AS4E // bit 4, shadows bit in COG1ASD1bits
21009 #define G1AS4E COG1ASD1bits.G1AS4E // bit 4, shadows bit in COG1ASD1bits
21010 #define AS5E COG1ASD1bits.AS5E // bit 5, shadows bit in COG1ASD1bits
21011 #define G1AS5E COG1ASD1bits.G1AS5E // bit 5, shadows bit in COG1ASD1bits
21012 #define AS6E COG1ASD1bits.AS6E // bit 6, shadows bit in COG1ASD1bits
21013 #define G1AS6E COG1ASD1bits.G1AS6E // bit 6, shadows bit in COG1ASD1bits
21014 #define AS7E COG1ASD1bits.AS7E // bit 7, shadows bit in COG1ASD1bits
21015 #define G1AS7E COG1ASD1bits.G1AS7E // bit 7, shadows bit in COG1ASD1bits
21017 #define BLKF0 COG1BLKFbits.BLKF0 // bit 0, shadows bit in COG1BLKFbits
21018 #define G1BLKF0 COG1BLKFbits.G1BLKF0 // bit 0, shadows bit in COG1BLKFbits
21019 #define BLKF1 COG1BLKFbits.BLKF1 // bit 1, shadows bit in COG1BLKFbits
21020 #define G1BLKF1 COG1BLKFbits.G1BLKF1 // bit 1, shadows bit in COG1BLKFbits
21021 #define BLKF2 COG1BLKFbits.BLKF2 // bit 2, shadows bit in COG1BLKFbits
21022 #define G1BLKF2 COG1BLKFbits.G1BLKF2 // bit 2, shadows bit in COG1BLKFbits
21023 #define BLKF3 COG1BLKFbits.BLKF3 // bit 3, shadows bit in COG1BLKFbits
21024 #define G1BLKF3 COG1BLKFbits.G1BLKF3 // bit 3, shadows bit in COG1BLKFbits
21025 #define BLKF4 COG1BLKFbits.BLKF4 // bit 4, shadows bit in COG1BLKFbits
21026 #define G1BLKF4 COG1BLKFbits.G1BLKF4 // bit 4, shadows bit in COG1BLKFbits
21027 #define BLKF5 COG1BLKFbits.BLKF5 // bit 5, shadows bit in COG1BLKFbits
21028 #define G1BLKF5 COG1BLKFbits.G1BLKF5 // bit 5, shadows bit in COG1BLKFbits
21030 #define BLKR0 COG1BLKRbits.BLKR0 // bit 0, shadows bit in COG1BLKRbits
21031 #define G1BLKR0 COG1BLKRbits.G1BLKR0 // bit 0, shadows bit in COG1BLKRbits
21032 #define BLKR1 COG1BLKRbits.BLKR1 // bit 1, shadows bit in COG1BLKRbits
21033 #define G1BLKR1 COG1BLKRbits.G1BLKR1 // bit 1, shadows bit in COG1BLKRbits
21034 #define BLKR2 COG1BLKRbits.BLKR2 // bit 2, shadows bit in COG1BLKRbits
21035 #define G1BLKR2 COG1BLKRbits.G1BLKR2 // bit 2, shadows bit in COG1BLKRbits
21036 #define BLKR3 COG1BLKRbits.BLKR3 // bit 3, shadows bit in COG1BLKRbits
21037 #define G1BLKR3 COG1BLKRbits.G1BLKR3 // bit 3, shadows bit in COG1BLKRbits
21038 #define BLKR4 COG1BLKRbits.BLKR4 // bit 4, shadows bit in COG1BLKRbits
21039 #define G1BLKR4 COG1BLKRbits.G1BLKR4 // bit 4, shadows bit in COG1BLKRbits
21040 #define BLKR5 COG1BLKRbits.BLKR5 // bit 5, shadows bit in COG1BLKRbits
21041 #define G1BLKR5 COG1BLKRbits.G1BLKR5 // bit 5, shadows bit in COG1BLKRbits
21043 #define POLA COG1CON1bits.POLA // bit 0, shadows bit in COG1CON1bits
21044 #define G1POLA COG1CON1bits.G1POLA // bit 0, shadows bit in COG1CON1bits
21045 #define POLB COG1CON1bits.POLB // bit 1, shadows bit in COG1CON1bits
21046 #define G1POLB COG1CON1bits.G1POLB // bit 1, shadows bit in COG1CON1bits
21047 #define POLC COG1CON1bits.POLC // bit 2, shadows bit in COG1CON1bits
21048 #define G1POLC COG1CON1bits.G1POLC // bit 2, shadows bit in COG1CON1bits
21049 #define POLD COG1CON1bits.POLD // bit 3, shadows bit in COG1CON1bits
21050 #define G1POLD COG1CON1bits.G1POLD // bit 3, shadows bit in COG1CON1bits
21051 #define FDBS COG1CON1bits.FDBS // bit 6, shadows bit in COG1CON1bits
21052 #define G1FDBS COG1CON1bits.G1FDBS // bit 6, shadows bit in COG1CON1bits
21053 #define RDBS COG1CON1bits.RDBS // bit 7, shadows bit in COG1CON1bits
21054 #define G1RDBS COG1CON1bits.G1RDBS // bit 7, shadows bit in COG1CON1bits
21056 #define DBF0 COG1DBFbits.DBF0 // bit 0, shadows bit in COG1DBFbits
21057 #define G1DBF0 COG1DBFbits.G1DBF0 // bit 0, shadows bit in COG1DBFbits
21058 #define DBF1 COG1DBFbits.DBF1 // bit 1, shadows bit in COG1DBFbits
21059 #define G1DBF1 COG1DBFbits.G1DBF1 // bit 1, shadows bit in COG1DBFbits
21060 #define DBF2 COG1DBFbits.DBF2 // bit 2, shadows bit in COG1DBFbits
21061 #define G1DBF2 COG1DBFbits.G1DBF2 // bit 2, shadows bit in COG1DBFbits
21062 #define DBF3 COG1DBFbits.DBF3 // bit 3, shadows bit in COG1DBFbits
21063 #define G1DBF3 COG1DBFbits.G1DBF3 // bit 3, shadows bit in COG1DBFbits
21064 #define DBF4 COG1DBFbits.DBF4 // bit 4, shadows bit in COG1DBFbits
21065 #define G1DBF4 COG1DBFbits.G1DBF4 // bit 4, shadows bit in COG1DBFbits
21066 #define DBF5 COG1DBFbits.DBF5 // bit 5, shadows bit in COG1DBFbits
21067 #define G1DBF5 COG1DBFbits.G1DBF5 // bit 5, shadows bit in COG1DBFbits
21069 #define DBR0 COG1DBRbits.DBR0 // bit 0, shadows bit in COG1DBRbits
21070 #define G1DBR0 COG1DBRbits.G1DBR0 // bit 0, shadows bit in COG1DBRbits
21071 #define DBR1 COG1DBRbits.DBR1 // bit 1, shadows bit in COG1DBRbits
21072 #define G1DBR1 COG1DBRbits.G1DBR1 // bit 1, shadows bit in COG1DBRbits
21073 #define DBR2 COG1DBRbits.DBR2 // bit 2, shadows bit in COG1DBRbits
21074 #define G1DBR2 COG1DBRbits.G1DBR2 // bit 2, shadows bit in COG1DBRbits
21075 #define DBR3 COG1DBRbits.DBR3 // bit 3, shadows bit in COG1DBRbits
21076 #define G1DBR3 COG1DBRbits.G1DBR3 // bit 3, shadows bit in COG1DBRbits
21077 #define DBR4 COG1DBRbits.DBR4 // bit 4, shadows bit in COG1DBRbits
21078 #define G1DBR4 COG1DBRbits.G1DBR4 // bit 4, shadows bit in COG1DBRbits
21079 #define DBR5 COG1DBRbits.DBR5 // bit 5, shadows bit in COG1DBRbits
21080 #define G1DBR5 COG1DBRbits.G1DBR5 // bit 5, shadows bit in COG1DBRbits
21082 #define FIS0 COG1FIS0bits.FIS0 // bit 0, shadows bit in COG1FIS0bits
21083 #define G1FIS0 COG1FIS0bits.G1FIS0 // bit 0, shadows bit in COG1FIS0bits
21084 #define FIS1 COG1FIS0bits.FIS1 // bit 1, shadows bit in COG1FIS0bits
21085 #define G1FIS1 COG1FIS0bits.G1FIS1 // bit 1, shadows bit in COG1FIS0bits
21086 #define FIS2 COG1FIS0bits.FIS2 // bit 2, shadows bit in COG1FIS0bits
21087 #define G1FIS2 COG1FIS0bits.G1FIS2 // bit 2, shadows bit in COG1FIS0bits
21088 #define FIS3 COG1FIS0bits.FIS3 // bit 3, shadows bit in COG1FIS0bits
21089 #define G1FIS3 COG1FIS0bits.G1FIS3 // bit 3, shadows bit in COG1FIS0bits
21090 #define FIS4 COG1FIS0bits.FIS4 // bit 4, shadows bit in COG1FIS0bits
21091 #define G1FIS4 COG1FIS0bits.G1FIS4 // bit 4, shadows bit in COG1FIS0bits
21092 #define FIS5 COG1FIS0bits.FIS5 // bit 5, shadows bit in COG1FIS0bits
21093 #define G1FIS5 COG1FIS0bits.G1FIS5 // bit 5, shadows bit in COG1FIS0bits
21094 #define FIS6 COG1FIS0bits.FIS6 // bit 6, shadows bit in COG1FIS0bits
21095 #define G1FIS6 COG1FIS0bits.G1FIS6 // bit 6, shadows bit in COG1FIS0bits
21096 #define FIS7 COG1FIS0bits.FIS7 // bit 7, shadows bit in COG1FIS0bits
21097 #define G1FIS7 COG1FIS0bits.G1FIS7 // bit 7, shadows bit in COG1FIS0bits
21099 #define FIS8 COG1FIS1bits.FIS8 // bit 0, shadows bit in COG1FIS1bits
21100 #define G1FIS8 COG1FIS1bits.G1FIS8 // bit 0, shadows bit in COG1FIS1bits
21101 #define FIS9 COG1FIS1bits.FIS9 // bit 1, shadows bit in COG1FIS1bits
21102 #define G1FIS9 COG1FIS1bits.G1FIS9 // bit 1, shadows bit in COG1FIS1bits
21103 #define FIS10 COG1FIS1bits.FIS10 // bit 2, shadows bit in COG1FIS1bits
21104 #define G1FIS10 COG1FIS1bits.G1FIS10 // bit 2, shadows bit in COG1FIS1bits
21105 #define FIS11 COG1FIS1bits.FIS11 // bit 3, shadows bit in COG1FIS1bits
21106 #define G1FIS11 COG1FIS1bits.G1FIS11 // bit 3, shadows bit in COG1FIS1bits
21107 #define FIS12 COG1FIS1bits.FIS12 // bit 4, shadows bit in COG1FIS1bits
21108 #define G1FIS12 COG1FIS1bits.G1FIS12 // bit 4, shadows bit in COG1FIS1bits
21109 #define FIS13 COG1FIS1bits.FIS13 // bit 5, shadows bit in COG1FIS1bits
21110 #define G1FIS13 COG1FIS1bits.G1FIS13 // bit 5, shadows bit in COG1FIS1bits
21111 #define FIS14 COG1FIS1bits.FIS14 // bit 6, shadows bit in COG1FIS1bits
21112 #define G1FIS14 COG1FIS1bits.G1FIS14 // bit 6, shadows bit in COG1FIS1bits
21113 #define FIS15 COG1FIS1bits.FIS15 // bit 7, shadows bit in COG1FIS1bits
21114 #define G1FIS15 COG1FIS1bits.G1FIS15 // bit 7, shadows bit in COG1FIS1bits
21116 #define FSIM0 COG1FSIM0bits.FSIM0 // bit 0, shadows bit in COG1FSIM0bits
21117 #define G1FSIM0 COG1FSIM0bits.G1FSIM0 // bit 0, shadows bit in COG1FSIM0bits
21118 #define FSIM1 COG1FSIM0bits.FSIM1 // bit 1, shadows bit in COG1FSIM0bits
21119 #define G1FSIM1 COG1FSIM0bits.G1FSIM1 // bit 1, shadows bit in COG1FSIM0bits
21120 #define FSIM2 COG1FSIM0bits.FSIM2 // bit 2, shadows bit in COG1FSIM0bits
21121 #define G1FSIM2 COG1FSIM0bits.G1FSIM2 // bit 2, shadows bit in COG1FSIM0bits
21122 #define FSIM3 COG1FSIM0bits.FSIM3 // bit 3, shadows bit in COG1FSIM0bits
21123 #define G1FSIM3 COG1FSIM0bits.G1FSIM3 // bit 3, shadows bit in COG1FSIM0bits
21124 #define FSIM4 COG1FSIM0bits.FSIM4 // bit 4, shadows bit in COG1FSIM0bits
21125 #define G1FSIM4 COG1FSIM0bits.G1FSIM4 // bit 4, shadows bit in COG1FSIM0bits
21126 #define FSIM5 COG1FSIM0bits.FSIM5 // bit 5, shadows bit in COG1FSIM0bits
21127 #define G1FSIM5 COG1FSIM0bits.G1FSIM5 // bit 5, shadows bit in COG1FSIM0bits
21128 #define FSIM6 COG1FSIM0bits.FSIM6 // bit 6, shadows bit in COG1FSIM0bits
21129 #define G1FSIM6 COG1FSIM0bits.G1FSIM6 // bit 6, shadows bit in COG1FSIM0bits
21130 #define FSIM7 COG1FSIM0bits.FSIM7 // bit 7, shadows bit in COG1FSIM0bits
21131 #define G1FSIM7 COG1FSIM0bits.G1FSIM7 // bit 7, shadows bit in COG1FSIM0bits
21133 #define FSIM8 COG1FSIM1bits.FSIM8 // bit 0, shadows bit in COG1FSIM1bits
21134 #define G1FSIM8 COG1FSIM1bits.G1FSIM8 // bit 0, shadows bit in COG1FSIM1bits
21135 #define FSIM9 COG1FSIM1bits.FSIM9 // bit 1, shadows bit in COG1FSIM1bits
21136 #define G1FSIM9 COG1FSIM1bits.G1FSIM9 // bit 1, shadows bit in COG1FSIM1bits
21137 #define FSIM10 COG1FSIM1bits.FSIM10 // bit 2, shadows bit in COG1FSIM1bits
21138 #define G1FSIM10 COG1FSIM1bits.G1FSIM10 // bit 2, shadows bit in COG1FSIM1bits
21139 #define FSIM11 COG1FSIM1bits.FSIM11 // bit 3, shadows bit in COG1FSIM1bits
21140 #define G1FSIM11 COG1FSIM1bits.G1FSIM11 // bit 3, shadows bit in COG1FSIM1bits
21141 #define FSIM12 COG1FSIM1bits.FSIM12 // bit 4, shadows bit in COG1FSIM1bits
21142 #define G1FSIM12 COG1FSIM1bits.G1FSIM12 // bit 4, shadows bit in COG1FSIM1bits
21143 #define FSIM13 COG1FSIM1bits.FSIM13 // bit 5, shadows bit in COG1FSIM1bits
21144 #define G1FSIM13 COG1FSIM1bits.G1FSIM13 // bit 5, shadows bit in COG1FSIM1bits
21145 #define FSIM14 COG1FSIM1bits.FSIM14 // bit 6, shadows bit in COG1FSIM1bits
21146 #define G1FSIM14 COG1FSIM1bits.G1FSIM14 // bit 6, shadows bit in COG1FSIM1bits
21147 #define FSIM15 COG1FSIM1bits.FSIM15 // bit 7, shadows bit in COG1FSIM1bits
21148 #define G1FSIM15 COG1FSIM1bits.G1FSIM15 // bit 7, shadows bit in COG1FSIM1bits
21150 #define PHF0 COG1PHFbits.PHF0 // bit 0, shadows bit in COG1PHFbits
21151 #define G1PHF0 COG1PHFbits.G1PHF0 // bit 0, shadows bit in COG1PHFbits
21152 #define PHF1 COG1PHFbits.PHF1 // bit 1, shadows bit in COG1PHFbits
21153 #define G1PHF1 COG1PHFbits.G1PHF1 // bit 1, shadows bit in COG1PHFbits
21154 #define PHF2 COG1PHFbits.PHF2 // bit 2, shadows bit in COG1PHFbits
21155 #define G1PHF2 COG1PHFbits.G1PHF2 // bit 2, shadows bit in COG1PHFbits
21156 #define PHF3 COG1PHFbits.PHF3 // bit 3, shadows bit in COG1PHFbits
21157 #define G1PHF3 COG1PHFbits.G1PHF3 // bit 3, shadows bit in COG1PHFbits
21158 #define PHF4 COG1PHFbits.PHF4 // bit 4, shadows bit in COG1PHFbits
21159 #define G1PHF4 COG1PHFbits.G1PHF4 // bit 4, shadows bit in COG1PHFbits
21160 #define PHF5 COG1PHFbits.PHF5 // bit 5, shadows bit in COG1PHFbits
21161 #define G1PHF5 COG1PHFbits.G1PHF5 // bit 5, shadows bit in COG1PHFbits
21163 #define PHR0 COG1PHRbits.PHR0 // bit 0, shadows bit in COG1PHRbits
21164 #define G1PHR0 COG1PHRbits.G1PHR0 // bit 0, shadows bit in COG1PHRbits
21165 #define PHR1 COG1PHRbits.PHR1 // bit 1, shadows bit in COG1PHRbits
21166 #define G1PHR1 COG1PHRbits.G1PHR1 // bit 1, shadows bit in COG1PHRbits
21167 #define PHR2 COG1PHRbits.PHR2 // bit 2, shadows bit in COG1PHRbits
21168 #define G1PHR2 COG1PHRbits.G1PHR2 // bit 2, shadows bit in COG1PHRbits
21169 #define PHR3 COG1PHRbits.PHR3 // bit 3, shadows bit in COG1PHRbits
21170 #define G1PHR3 COG1PHRbits.G1PHR3 // bit 3, shadows bit in COG1PHRbits
21171 #define PHR4 COG1PHRbits.PHR4 // bit 4, shadows bit in COG1PHRbits
21172 #define G1PHR4 COG1PHRbits.G1PHR4 // bit 4, shadows bit in COG1PHRbits
21173 #define PHR5 COG1PHRbits.PHR5 // bit 5, shadows bit in COG1PHRbits
21174 #define G1PHR5 COG1PHRbits.G1PHR5 // bit 5, shadows bit in COG1PHRbits
21176 #define RIS0 COG1RIS0bits.RIS0 // bit 0, shadows bit in COG1RIS0bits
21177 #define G1RIS0 COG1RIS0bits.G1RIS0 // bit 0, shadows bit in COG1RIS0bits
21178 #define RIS1 COG1RIS0bits.RIS1 // bit 1, shadows bit in COG1RIS0bits
21179 #define G1RIS1 COG1RIS0bits.G1RIS1 // bit 1, shadows bit in COG1RIS0bits
21180 #define RIS2 COG1RIS0bits.RIS2 // bit 2, shadows bit in COG1RIS0bits
21181 #define G1RIS2 COG1RIS0bits.G1RIS2 // bit 2, shadows bit in COG1RIS0bits
21182 #define RIS3 COG1RIS0bits.RIS3 // bit 3, shadows bit in COG1RIS0bits
21183 #define G1RIS3 COG1RIS0bits.G1RIS3 // bit 3, shadows bit in COG1RIS0bits
21184 #define RIS4 COG1RIS0bits.RIS4 // bit 4, shadows bit in COG1RIS0bits
21185 #define G1RIS4 COG1RIS0bits.G1RIS4 // bit 4, shadows bit in COG1RIS0bits
21186 #define RIS5 COG1RIS0bits.RIS5 // bit 5, shadows bit in COG1RIS0bits
21187 #define G1RIS5 COG1RIS0bits.G1RIS5 // bit 5, shadows bit in COG1RIS0bits
21188 #define RIS6 COG1RIS0bits.RIS6 // bit 6, shadows bit in COG1RIS0bits
21189 #define G1RIS6 COG1RIS0bits.G1RIS6 // bit 6, shadows bit in COG1RIS0bits
21190 #define RIS7 COG1RIS0bits.RIS7 // bit 7, shadows bit in COG1RIS0bits
21191 #define G1RIS7 COG1RIS0bits.G1RIS7 // bit 7, shadows bit in COG1RIS0bits
21193 #define RIS8 COG1RIS1bits.RIS8 // bit 0, shadows bit in COG1RIS1bits
21194 #define G1RIS8 COG1RIS1bits.G1RIS8 // bit 0, shadows bit in COG1RIS1bits
21195 #define RIS9 COG1RIS1bits.RIS9 // bit 1, shadows bit in COG1RIS1bits
21196 #define G1RIS9 COG1RIS1bits.G1RIS9 // bit 1, shadows bit in COG1RIS1bits
21197 #define RIS10 COG1RIS1bits.RIS10 // bit 2, shadows bit in COG1RIS1bits
21198 #define G1RIS10 COG1RIS1bits.G1RIS10 // bit 2, shadows bit in COG1RIS1bits
21199 #define RIS11 COG1RIS1bits.RIS11 // bit 3, shadows bit in COG1RIS1bits
21200 #define G1RIS11 COG1RIS1bits.G1RIS11 // bit 3, shadows bit in COG1RIS1bits
21201 #define RIS12 COG1RIS1bits.RIS12 // bit 4, shadows bit in COG1RIS1bits
21202 #define G1RIS12 COG1RIS1bits.G1RIS12 // bit 4, shadows bit in COG1RIS1bits
21203 #define RIS13 COG1RIS1bits.RIS13 // bit 5, shadows bit in COG1RIS1bits
21204 #define G1RIS13 COG1RIS1bits.G1RIS13 // bit 5, shadows bit in COG1RIS1bits
21205 #define RIS14 COG1RIS1bits.RIS14 // bit 6, shadows bit in COG1RIS1bits
21206 #define G1RIS14 COG1RIS1bits.G1RIS14 // bit 6, shadows bit in COG1RIS1bits
21207 #define RIS15 COG1RIS1bits.RIS15 // bit 7, shadows bit in COG1RIS1bits
21208 #define G1RIS15 COG1RIS1bits.G1RIS15 // bit 7, shadows bit in COG1RIS1bits
21210 #define RSIM0 COG1RSIM0bits.RSIM0 // bit 0, shadows bit in COG1RSIM0bits
21211 #define G1RSIM0 COG1RSIM0bits.G1RSIM0 // bit 0, shadows bit in COG1RSIM0bits
21212 #define RSIM1 COG1RSIM0bits.RSIM1 // bit 1, shadows bit in COG1RSIM0bits
21213 #define G1RSIM1 COG1RSIM0bits.G1RSIM1 // bit 1, shadows bit in COG1RSIM0bits
21214 #define RSIM2 COG1RSIM0bits.RSIM2 // bit 2, shadows bit in COG1RSIM0bits
21215 #define G1RSIM2 COG1RSIM0bits.G1RSIM2 // bit 2, shadows bit in COG1RSIM0bits
21216 #define RSIM3 COG1RSIM0bits.RSIM3 // bit 3, shadows bit in COG1RSIM0bits
21217 #define G1RSIM3 COG1RSIM0bits.G1RSIM3 // bit 3, shadows bit in COG1RSIM0bits
21218 #define RSIM4 COG1RSIM0bits.RSIM4 // bit 4, shadows bit in COG1RSIM0bits
21219 #define G1RSIM4 COG1RSIM0bits.G1RSIM4 // bit 4, shadows bit in COG1RSIM0bits
21220 #define RSIM5 COG1RSIM0bits.RSIM5 // bit 5, shadows bit in COG1RSIM0bits
21221 #define G1RSIM5 COG1RSIM0bits.G1RSIM5 // bit 5, shadows bit in COG1RSIM0bits
21222 #define RSIM6 COG1RSIM0bits.RSIM6 // bit 6, shadows bit in COG1RSIM0bits
21223 #define G1RSIM6 COG1RSIM0bits.G1RSIM6 // bit 6, shadows bit in COG1RSIM0bits
21224 #define RSIM7 COG1RSIM0bits.RSIM7 // bit 7, shadows bit in COG1RSIM0bits
21225 #define G1RSIM7 COG1RSIM0bits.G1RSIM7 // bit 7, shadows bit in COG1RSIM0bits
21227 #define RSIM8 COG1RSIM1bits.RSIM8 // bit 0, shadows bit in COG1RSIM1bits
21228 #define G1RSIM8 COG1RSIM1bits.G1RSIM8 // bit 0, shadows bit in COG1RSIM1bits
21229 #define RSIM9 COG1RSIM1bits.RSIM9 // bit 1, shadows bit in COG1RSIM1bits
21230 #define G1RSIM9 COG1RSIM1bits.G1RSIM9 // bit 1, shadows bit in COG1RSIM1bits
21231 #define RSIM10 COG1RSIM1bits.RSIM10 // bit 2, shadows bit in COG1RSIM1bits
21232 #define G1RSIM10 COG1RSIM1bits.G1RSIM10 // bit 2, shadows bit in COG1RSIM1bits
21233 #define RSIM11 COG1RSIM1bits.RSIM11 // bit 3, shadows bit in COG1RSIM1bits
21234 #define G1RSIM11 COG1RSIM1bits.G1RSIM11 // bit 3, shadows bit in COG1RSIM1bits
21235 #define RSIM12 COG1RSIM1bits.RSIM12 // bit 4, shadows bit in COG1RSIM1bits
21236 #define G1RSIM12 COG1RSIM1bits.G1RSIM12 // bit 4, shadows bit in COG1RSIM1bits
21237 #define RSIM13 COG1RSIM1bits.RSIM13 // bit 5, shadows bit in COG1RSIM1bits
21238 #define G1RSIM13 COG1RSIM1bits.G1RSIM13 // bit 5, shadows bit in COG1RSIM1bits
21239 #define RSIM14 COG1RSIM1bits.RSIM14 // bit 6, shadows bit in COG1RSIM1bits
21240 #define G1RSIM14 COG1RSIM1bits.G1RSIM14 // bit 6, shadows bit in COG1RSIM1bits
21241 #define RSIM15 COG1RSIM1bits.RSIM15 // bit 7, shadows bit in COG1RSIM1bits
21242 #define G1RSIM15 COG1RSIM1bits.G1RSIM15 // bit 7, shadows bit in COG1RSIM1bits
21244 #define STRA COG1STRbits.STRA // bit 0, shadows bit in COG1STRbits
21245 #define G1STRA COG1STRbits.G1STRA // bit 0, shadows bit in COG1STRbits
21246 #define STRB COG1STRbits.STRB // bit 1, shadows bit in COG1STRbits
21247 #define G1STRB COG1STRbits.G1STRB // bit 1, shadows bit in COG1STRbits
21248 #define STRC COG1STRbits.STRC // bit 2, shadows bit in COG1STRbits
21249 #define G1STRC COG1STRbits.G1STRC // bit 2, shadows bit in COG1STRbits
21250 #define STRD COG1STRbits.STRD // bit 3, shadows bit in COG1STRbits
21251 #define G1STRD COG1STRbits.G1STRD // bit 3, shadows bit in COG1STRbits
21252 #define SDATA COG1STRbits.SDATA // bit 4, shadows bit in COG1STRbits
21253 #define G1SDATA COG1STRbits.G1SDATA // bit 4, shadows bit in COG1STRbits
21254 #define SDATB COG1STRbits.SDATB // bit 5, shadows bit in COG1STRbits
21255 #define G1SDATB COG1STRbits.G1SDATB // bit 5, shadows bit in COG1STRbits
21256 #define SDATC COG1STRbits.SDATC // bit 6, shadows bit in COG1STRbits
21257 #define G1SDATC COG1STRbits.G1SDATC // bit 6, shadows bit in COG1STRbits
21258 #define SDATD COG1STRbits.SDATD // bit 7, shadows bit in COG1STRbits
21259 #define G1SDATD COG1STRbits.G1SDATD // bit 7, shadows bit in COG1STRbits
21261 #define REF0 DAC1CON1bits.REF0 // bit 0, shadows bit in DAC1CON1bits
21262 #define DAC1REF0 DAC1CON1bits.DAC1REF0 // bit 0, shadows bit in DAC1CON1bits
21263 #define R0 DAC1CON1bits.R0 // bit 0, shadows bit in DAC1CON1bits
21264 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0, shadows bit in DAC1CON1bits
21265 #define REF1 DAC1CON1bits.REF1 // bit 1, shadows bit in DAC1CON1bits
21266 #define DAC1REF1 DAC1CON1bits.DAC1REF1 // bit 1, shadows bit in DAC1CON1bits
21267 #define R1 DAC1CON1bits.R1 // bit 1, shadows bit in DAC1CON1bits
21268 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1, shadows bit in DAC1CON1bits
21269 #define REF2 DAC1CON1bits.REF2 // bit 2, shadows bit in DAC1CON1bits
21270 #define DAC1REF2 DAC1CON1bits.DAC1REF2 // bit 2, shadows bit in DAC1CON1bits
21271 #define R2 DAC1CON1bits.R2 // bit 2, shadows bit in DAC1CON1bits
21272 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2, shadows bit in DAC1CON1bits
21273 #define REF3 DAC1CON1bits.REF3 // bit 3, shadows bit in DAC1CON1bits
21274 #define DAC1REF3 DAC1CON1bits.DAC1REF3 // bit 3, shadows bit in DAC1CON1bits
21275 #define R3 DAC1CON1bits.R3 // bit 3, shadows bit in DAC1CON1bits
21276 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3, shadows bit in DAC1CON1bits
21277 #define REF4 DAC1CON1bits.REF4 // bit 4, shadows bit in DAC1CON1bits
21278 #define DAC1REF4 DAC1CON1bits.DAC1REF4 // bit 4, shadows bit in DAC1CON1bits
21279 #define R4 DAC1CON1bits.R4 // bit 4, shadows bit in DAC1CON1bits
21280 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4, shadows bit in DAC1CON1bits
21281 #define REF5 DAC1CON1bits.REF5 // bit 5, shadows bit in DAC1CON1bits
21282 #define DAC1REF5 DAC1CON1bits.DAC1REF5 // bit 5, shadows bit in DAC1CON1bits
21283 #define R5 DAC1CON1bits.R5 // bit 5, shadows bit in DAC1CON1bits
21284 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5, shadows bit in DAC1CON1bits
21285 #define REF6 DAC1CON1bits.REF6 // bit 6, shadows bit in DAC1CON1bits
21286 #define DAC1REF6 DAC1CON1bits.DAC1REF6 // bit 6, shadows bit in DAC1CON1bits
21287 #define R6 DAC1CON1bits.R6 // bit 6, shadows bit in DAC1CON1bits
21288 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6, shadows bit in DAC1CON1bits
21289 #define REF7 DAC1CON1bits.REF7 // bit 7, shadows bit in DAC1CON1bits
21290 #define DAC1REF7 DAC1CON1bits.DAC1REF7 // bit 7, shadows bit in DAC1CON1bits
21291 #define R7 DAC1CON1bits.R7 // bit 7, shadows bit in DAC1CON1bits
21292 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7, shadows bit in DAC1CON1bits
21294 #define REF8 DAC1CON2bits.REF8 // bit 0, shadows bit in DAC1CON2bits
21295 #define DAC1REF8 DAC1CON2bits.DAC1REF8 // bit 0, shadows bit in DAC1CON2bits
21296 #define R8 DAC1CON2bits.R8 // bit 0, shadows bit in DAC1CON2bits
21297 #define DAC1R8 DAC1CON2bits.DAC1R8 // bit 0, shadows bit in DAC1CON2bits
21298 #define REF9 DAC1CON2bits.REF9 // bit 1, shadows bit in DAC1CON2bits
21299 #define DAC1REF9 DAC1CON2bits.DAC1REF9 // bit 1, shadows bit in DAC1CON2bits
21300 #define R9 DAC1CON2bits.R9 // bit 1, shadows bit in DAC1CON2bits
21301 #define DAC1R9 DAC1CON2bits.DAC1R9 // bit 1, shadows bit in DAC1CON2bits
21302 #define REF10 DAC1CON2bits.REF10 // bit 2, shadows bit in DAC1CON2bits
21303 #define DAC1REF10 DAC1CON2bits.DAC1REF10 // bit 2, shadows bit in DAC1CON2bits
21304 #define R10 DAC1CON2bits.R10 // bit 2, shadows bit in DAC1CON2bits
21305 #define DAC1R10 DAC1CON2bits.DAC1R10 // bit 2, shadows bit in DAC1CON2bits
21306 #define REF11 DAC1CON2bits.REF11 // bit 3, shadows bit in DAC1CON2bits
21307 #define DAC1REF11 DAC1CON2bits.DAC1REF11 // bit 3, shadows bit in DAC1CON2bits
21308 #define R11 DAC1CON2bits.R11 // bit 3, shadows bit in DAC1CON2bits
21309 #define DAC1R11 DAC1CON2bits.DAC1R11 // bit 3, shadows bit in DAC1CON2bits
21310 #define REF12 DAC1CON2bits.REF12 // bit 4, shadows bit in DAC1CON2bits
21311 #define DAC1REF12 DAC1CON2bits.DAC1REF12 // bit 4, shadows bit in DAC1CON2bits
21312 #define R12 DAC1CON2bits.R12 // bit 4, shadows bit in DAC1CON2bits
21313 #define DAC1R12 DAC1CON2bits.DAC1R12 // bit 4, shadows bit in DAC1CON2bits
21314 #define REF13 DAC1CON2bits.REF13 // bit 5, shadows bit in DAC1CON2bits
21315 #define DAC1REF13 DAC1CON2bits.DAC1REF13 // bit 5, shadows bit in DAC1CON2bits
21316 #define R13 DAC1CON2bits.R13 // bit 5, shadows bit in DAC1CON2bits
21317 #define DAC1R13 DAC1CON2bits.DAC1R13 // bit 5, shadows bit in DAC1CON2bits
21318 #define REF14 DAC1CON2bits.REF14 // bit 6, shadows bit in DAC1CON2bits
21319 #define DAC1REF14 DAC1CON2bits.DAC1REF14 // bit 6, shadows bit in DAC1CON2bits
21320 #define R14 DAC1CON2bits.R14 // bit 6, shadows bit in DAC1CON2bits
21321 #define DAC1R14 DAC1CON2bits.DAC1R14 // bit 6, shadows bit in DAC1CON2bits
21322 #define REF15 DAC1CON2bits.REF15 // bit 7, shadows bit in DAC1CON2bits
21323 #define DAC1REF15 DAC1CON2bits.DAC1REF15 // bit 7, shadows bit in DAC1CON2bits
21324 #define R15 DAC1CON2bits.R15 // bit 7, shadows bit in DAC1CON2bits
21325 #define DAC1R15 DAC1CON2bits.DAC1R15 // bit 7, shadows bit in DAC1CON2bits
21327 #define DAC1LD DACLDbits.DAC1LD // bit 0
21328 #define DAC2LD DACLDbits.DAC2LD // bit 1
21329 #define DAC5LD DACLDbits.DAC5LD // bit 4
21331 #define TSRNG FVRCONbits.TSRNG // bit 4
21332 #define TSEN FVRCONbits.TSEN // bit 5
21333 #define FVRRDY FVRCONbits.FVRRDY // bit 6
21334 #define FVREN FVRCONbits.FVREN // bit 7
21336 #define HIDB0 HIDRVBbits.HIDB0 // bit 0
21337 #define HIDB1 HIDRVBbits.HIDB1 // bit 1
21339 #define INLVE3 INLVEbits.INLVE3 // bit 3
21341 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
21342 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
21343 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
21344 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
21345 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
21346 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
21347 #define INLVA6 INLVLAbits.INLVA6 // bit 6
21348 #define INLVA7 INLVLAbits.INLVA7 // bit 7
21350 #define INLVB0 INLVLBbits.INLVB0 // bit 0
21351 #define INLVB1 INLVLBbits.INLVB1 // bit 1
21352 #define INLVB2 INLVLBbits.INLVB2 // bit 2
21353 #define INLVB3 INLVLBbits.INLVB3 // bit 3
21354 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
21355 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
21356 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
21357 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
21359 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
21360 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
21361 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
21362 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
21363 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
21364 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
21365 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
21366 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
21368 #define IOCIF INTCONbits.IOCIF // bit 0
21369 #define INTF INTCONbits.INTF // bit 1
21370 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
21371 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
21372 #define IOCIE INTCONbits.IOCIE // bit 3
21373 #define INTE INTCONbits.INTE // bit 4
21374 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
21375 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
21376 #define PEIE INTCONbits.PEIE // bit 6
21377 #define GIE INTCONbits.GIE // bit 7
21379 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
21380 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
21381 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
21382 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
21383 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
21384 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
21385 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
21386 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
21388 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
21389 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
21390 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
21391 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
21392 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
21393 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
21394 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
21395 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
21397 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
21398 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
21399 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
21400 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
21401 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
21402 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
21403 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
21404 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
21406 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
21407 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
21408 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
21409 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
21410 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
21411 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
21412 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
21413 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
21415 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
21416 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
21417 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
21418 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
21419 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
21420 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
21421 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
21422 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
21424 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
21425 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
21426 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
21427 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
21428 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
21429 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
21430 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
21431 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
21433 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
21434 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
21435 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
21436 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
21437 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
21438 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
21439 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
21440 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
21442 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
21443 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
21444 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
21445 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
21446 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
21447 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
21448 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
21449 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
21451 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
21452 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
21453 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
21454 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
21455 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
21456 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
21457 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
21458 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
21460 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
21462 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
21464 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
21466 #define LATA0 LATAbits.LATA0 // bit 0
21467 #define LATA1 LATAbits.LATA1 // bit 1
21468 #define LATA2 LATAbits.LATA2 // bit 2
21469 #define LATA3 LATAbits.LATA3 // bit 3
21470 #define LATA4 LATAbits.LATA4 // bit 4
21471 #define LATA5 LATAbits.LATA5 // bit 5
21472 #define LATA6 LATAbits.LATA6 // bit 6
21473 #define LATA7 LATAbits.LATA7 // bit 7
21475 #define LATB0 LATBbits.LATB0 // bit 0
21476 #define LATB1 LATBbits.LATB1 // bit 1
21477 #define LATB2 LATBbits.LATB2 // bit 2
21478 #define LATB3 LATBbits.LATB3 // bit 3
21479 #define LATB4 LATBbits.LATB4 // bit 4
21480 #define LATB5 LATBbits.LATB5 // bit 5
21481 #define LATB6 LATBbits.LATB6 // bit 6
21482 #define LATB7 LATBbits.LATB7 // bit 7
21484 #define LATC0 LATCbits.LATC0 // bit 0
21485 #define LATC1 LATCbits.LATC1 // bit 1
21486 #define LATC2 LATCbits.LATC2 // bit 2
21487 #define LATC3 LATCbits.LATC3 // bit 3
21488 #define LATC4 LATCbits.LATC4 // bit 4
21489 #define LATC5 LATCbits.LATC5 // bit 5
21490 #define LATC6 LATCbits.LATC6 // bit 6
21491 #define LATC7 LATCbits.LATC7 // bit 7
21493 #define CH0 MD1CARHbits.CH0 // bit 0, shadows bit in MD1CARHbits
21494 #define MD1CH0 MD1CARHbits.MD1CH0 // bit 0, shadows bit in MD1CARHbits
21495 #define CH1 MD1CARHbits.CH1 // bit 1, shadows bit in MD1CARHbits
21496 #define MD1CH1 MD1CARHbits.MD1CH1 // bit 1, shadows bit in MD1CARHbits
21497 #define CH2 MD1CARHbits.CH2 // bit 2, shadows bit in MD1CARHbits
21498 #define MD1CH2 MD1CARHbits.MD1CH2 // bit 2, shadows bit in MD1CARHbits
21499 #define CH3 MD1CARHbits.CH3 // bit 3, shadows bit in MD1CARHbits
21500 #define MD1CH3 MD1CARHbits.MD1CH3 // bit 3, shadows bit in MD1CARHbits
21501 #define CH4 MD1CARHbits.CH4 // bit 4
21503 #define CL0 MD1CARLbits.CL0 // bit 0, shadows bit in MD1CARLbits
21504 #define MD1CL0 MD1CARLbits.MD1CL0 // bit 0, shadows bit in MD1CARLbits
21505 #define CL1 MD1CARLbits.CL1 // bit 1, shadows bit in MD1CARLbits
21506 #define MD1CL1 MD1CARLbits.MD1CL1 // bit 1, shadows bit in MD1CARLbits
21507 #define CL2 MD1CARLbits.CL2 // bit 2, shadows bit in MD1CARLbits
21508 #define MD1CL2 MD1CARLbits.MD1CL2 // bit 2, shadows bit in MD1CARLbits
21509 #define CL3 MD1CARLbits.CL3 // bit 3, shadows bit in MD1CARLbits
21510 #define MD1CL3 MD1CARLbits.MD1CL3 // bit 3, shadows bit in MD1CARLbits
21511 #define CL4 MD1CARLbits.CL4 // bit 4
21513 #define CLSYNC MD1CON1bits.CLSYNC // bit 0, shadows bit in MD1CON1bits
21514 #define MD1CLSYNC MD1CON1bits.MD1CLSYNC // bit 0, shadows bit in MD1CON1bits
21515 #define CLPOL MD1CON1bits.CLPOL // bit 1, shadows bit in MD1CON1bits
21516 #define MD1CLPOL MD1CON1bits.MD1CLPOL // bit 1, shadows bit in MD1CON1bits
21517 #define CHSYNC MD1CON1bits.CHSYNC // bit 4, shadows bit in MD1CON1bits
21518 #define MD1CHSYNC MD1CON1bits.MD1CHSYNC // bit 4, shadows bit in MD1CON1bits
21519 #define CHPOL MD1CON1bits.CHPOL // bit 5, shadows bit in MD1CON1bits
21520 #define MD1CHPOL MD1CON1bits.MD1CHPOL // bit 5, shadows bit in MD1CON1bits
21522 #define MS0 MD1SRCbits.MS0 // bit 0, shadows bit in MD1SRCbits
21523 #define MD1MS0 MD1SRCbits.MD1MS0 // bit 0, shadows bit in MD1SRCbits
21524 #define MS1 MD1SRCbits.MS1 // bit 1, shadows bit in MD1SRCbits
21525 #define MD1MS1 MD1SRCbits.MD1MS1 // bit 1, shadows bit in MD1SRCbits
21526 #define MS2 MD1SRCbits.MS2 // bit 2, shadows bit in MD1SRCbits
21527 #define MD1MS2 MD1SRCbits.MD1MS2 // bit 2, shadows bit in MD1SRCbits
21528 #define MS3 MD1SRCbits.MS3 // bit 3, shadows bit in MD1SRCbits
21529 #define MD1MS3 MD1SRCbits.MD1MS3 // bit 3, shadows bit in MD1SRCbits
21530 #define MS4 MD1SRCbits.MS4 // bit 4, shadows bit in MD1SRCbits
21531 #define MD1MS4 MD1SRCbits.MD1MS4 // bit 4, shadows bit in MD1SRCbits
21533 #define ODA0 ODCONAbits.ODA0 // bit 0
21534 #define ODA1 ODCONAbits.ODA1 // bit 1
21535 #define ODA2 ODCONAbits.ODA2 // bit 2
21536 #define ODA3 ODCONAbits.ODA3 // bit 3
21537 #define ODA4 ODCONAbits.ODA4 // bit 4
21538 #define ODA5 ODCONAbits.ODA5 // bit 5
21539 #define ODA6 ODCONAbits.ODA6 // bit 6
21540 #define ODA7 ODCONAbits.ODA7 // bit 7
21542 #define ODC0 ODCONCbits.ODC0 // bit 0
21543 #define ODC1 ODCONCbits.ODC1 // bit 1
21544 #define ODC2 ODCONCbits.ODC2 // bit 2
21545 #define ODC3 ODCONCbits.ODC3 // bit 3
21546 #define ODC4 ODCONCbits.ODC4 // bit 4
21547 #define ODC5 ODCONCbits.ODC5 // bit 5
21548 #define ODC6 ODCONCbits.ODC6 // bit 6
21549 #define ODC7 ODCONCbits.ODC7 // bit 7
21551 #define PS0 OPTION_REGbits.PS0 // bit 0
21552 #define PS1 OPTION_REGbits.PS1 // bit 1
21553 #define PS2 OPTION_REGbits.PS2 // bit 2
21554 #define PSA OPTION_REGbits.PSA // bit 3
21555 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
21556 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
21557 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
21558 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
21559 #define INTEDG OPTION_REGbits.INTEDG // bit 6
21560 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
21562 #define SCS0 OSCCONbits.SCS0 // bit 0
21563 #define SCS1 OSCCONbits.SCS1 // bit 1
21564 #define IRCF0 OSCCONbits.IRCF0 // bit 3
21565 #define IRCF1 OSCCONbits.IRCF1 // bit 4
21566 #define IRCF2 OSCCONbits.IRCF2 // bit 5
21567 #define IRCF3 OSCCONbits.IRCF3 // bit 6
21568 #define SPLLEN OSCCONbits.SPLLEN // bit 7
21570 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
21571 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
21572 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
21573 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
21574 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
21575 #define OSTS OSCSTATbits.OSTS // bit 5
21576 #define PLLR OSCSTATbits.PLLR // bit 6
21577 #define SOSCR OSCSTATbits.SOSCR // bit 7
21579 #define TUN0 OSCTUNEbits.TUN0 // bit 0
21580 #define TUN1 OSCTUNEbits.TUN1 // bit 1
21581 #define TUN2 OSCTUNEbits.TUN2 // bit 2
21582 #define TUN3 OSCTUNEbits.TUN3 // bit 3
21583 #define TUN4 OSCTUNEbits.TUN4 // bit 4
21584 #define TUN5 OSCTUNEbits.TUN5 // bit 5
21586 #define NOT_BOR PCONbits.NOT_BOR // bit 0
21587 #define NOT_POR PCONbits.NOT_POR // bit 1
21588 #define NOT_RI PCONbits.NOT_RI // bit 2
21589 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
21590 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
21591 #define STKUNF PCONbits.STKUNF // bit 6
21592 #define STKOVF PCONbits.STKOVF // bit 7
21594 #define TMR1IE PIE1bits.TMR1IE // bit 0
21595 #define TMR2IE PIE1bits.TMR2IE // bit 1
21596 #define CCP1IE PIE1bits.CCP1IE // bit 2, shadows bit in PIE1bits
21597 #define CCPIE PIE1bits.CCPIE // bit 2, shadows bit in PIE1bits
21598 #define SSP1IE PIE1bits.SSP1IE // bit 3
21599 #define TXIE PIE1bits.TXIE // bit 4
21600 #define RCIE PIE1bits.RCIE // bit 5
21601 #define ADIE PIE1bits.ADIE // bit 6
21602 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
21604 #define CCP2IE PIE2bits.CCP2IE // bit 0
21605 #define C3IE PIE2bits.C3IE // bit 1
21606 #define C4IE PIE2bits.C4IE // bit 2
21607 #define BCL1IE PIE2bits.BCL1IE // bit 3
21608 #define COGIE PIE2bits.COGIE // bit 4
21609 #define C1IE PIE2bits.C1IE // bit 5
21610 #define C2IE PIE2bits.C2IE // bit 6
21611 #define OSFIE PIE2bits.OSFIE // bit 7
21613 #define CLC1IE PIE3bits.CLC1IE // bit 0
21614 #define CLC2IE PIE3bits.CLC2IE // bit 1
21615 #define CLC3IE PIE3bits.CLC3IE // bit 2
21616 #define CLC4IE PIE3bits.CLC4IE // bit 3
21617 #define ZCDIE PIE3bits.ZCDIE // bit 4
21618 #define COG2IE PIE3bits.COG2IE // bit 5
21620 #define TMR4IE PIE4bits.TMR4IE // bit 0
21621 #define TMR6IE PIE4bits.TMR6IE // bit 1
21622 #define TMR3IE PIE4bits.TMR3IE // bit 2
21623 #define TMR3GIE PIE4bits.TMR3GIE // bit 3
21624 #define TMR5IE PIE4bits.TMR5IE // bit 4
21625 #define TMR5GIE PIE4bits.TMR5GIE // bit 5
21626 #define TMR8IE PIE4bits.TMR8IE // bit 6
21628 #define C5IE PIE5bits.C5IE // bit 0
21629 #define C6IE PIE5bits.C6IE // bit 1
21630 #define COG3IE PIE5bits.COG3IE // bit 4
21631 #define CCP7IE PIE5bits.CCP7IE // bit 6
21633 #define PWM5IE PIE6bits.PWM5IE // bit 0
21634 #define PWM6IE PIE6bits.PWM6IE // bit 1
21635 #define PWM11IE PIE6bits.PWM11IE // bit 2
21637 #define TMR1IF PIR1bits.TMR1IF // bit 0
21638 #define TMR2IF PIR1bits.TMR2IF // bit 1
21639 #define CCP1IF PIR1bits.CCP1IF // bit 2, shadows bit in PIR1bits
21640 #define CCPIF PIR1bits.CCPIF // bit 2, shadows bit in PIR1bits
21641 #define SSP1IF PIR1bits.SSP1IF // bit 3
21642 #define TXIF PIR1bits.TXIF // bit 4
21643 #define RCIF PIR1bits.RCIF // bit 5
21644 #define ADIF PIR1bits.ADIF // bit 6
21645 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
21647 #define CCP2IF PIR2bits.CCP2IF // bit 0
21648 #define C3IF PIR2bits.C3IF // bit 1
21649 #define C4IF PIR2bits.C4IF // bit 2
21650 #define BCL1IF PIR2bits.BCL1IF // bit 3
21651 #define COG1IF PIR2bits.COG1IF // bit 4
21652 #define C1IF PIR2bits.C1IF // bit 5
21653 #define C2IF PIR2bits.C2IF // bit 6
21654 #define OSFIF PIR2bits.OSFIF // bit 7
21656 #define CLC1IF PIR3bits.CLC1IF // bit 0
21657 #define CLC2IF PIR3bits.CLC2IF // bit 1
21658 #define CLC3IF PIR3bits.CLC3IF // bit 2
21659 #define CLC4IF PIR3bits.CLC4IF // bit 3
21660 #define ZCDIF PIR3bits.ZCDIF // bit 4
21661 #define COG2IF PIR3bits.COG2IF // bit 5
21663 #define TMR4IF PIR4bits.TMR4IF // bit 0
21664 #define TMR6IF PIR4bits.TMR6IF // bit 1
21665 #define TMR3IF PIR4bits.TMR3IF // bit 2
21666 #define TMR3GIF PIR4bits.TMR3GIF // bit 3
21667 #define TMR5IF PIR4bits.TMR5IF // bit 4
21668 #define TMR5GIF PIR4bits.TMR5GIF // bit 5
21669 #define TMR8IF PIR4bits.TMR8IF // bit 6
21671 #define C5IF PIR5bits.C5IF // bit 0
21672 #define C6IF PIR5bits.C6IF // bit 1
21673 #define COG3IF PIR5bits.COG3IF // bit 4
21674 #define CCP7IF PIR5bits.CCP7IF // bit 6
21676 #define PWM5IF PIR6bits.PWM5IF // bit 0
21677 #define PWM6IF PIR6bits.PWM6IF // bit 1
21678 #define PWM11IF PIR6bits.PWM11IF // bit 2
21680 #define RD PMCON1bits.RD // bit 0
21681 #define WR PMCON1bits.WR // bit 1
21682 #define WREN PMCON1bits.WREN // bit 2
21683 #define WRERR PMCON1bits.WRERR // bit 3
21684 #define FREE PMCON1bits.FREE // bit 4
21685 #define LWLO PMCON1bits.LWLO // bit 5
21686 #define CFGS PMCON1bits.CFGS // bit 6
21688 #define RA0 PORTAbits.RA0 // bit 0
21689 #define RA1 PORTAbits.RA1 // bit 1
21690 #define RA2 PORTAbits.RA2 // bit 2
21691 #define RA3 PORTAbits.RA3 // bit 3
21692 #define RA4 PORTAbits.RA4 // bit 4
21693 #define RA5 PORTAbits.RA5 // bit 5
21694 #define RA6 PORTAbits.RA6 // bit 6
21695 #define RA7 PORTAbits.RA7 // bit 7
21697 #define RB0 PORTBbits.RB0 // bit 0
21698 #define RB1 PORTBbits.RB1 // bit 1
21699 #define RB2 PORTBbits.RB2 // bit 2
21700 #define RB3 PORTBbits.RB3 // bit 3
21701 #define RB4 PORTBbits.RB4 // bit 4
21702 #define RB5 PORTBbits.RB5 // bit 5
21703 #define RB6 PORTBbits.RB6 // bit 6
21704 #define RB7 PORTBbits.RB7 // bit 7
21706 #define RC0 PORTCbits.RC0 // bit 0
21707 #define RC1 PORTCbits.RC1 // bit 1
21708 #define RC2 PORTCbits.RC2 // bit 2
21709 #define RC3 PORTCbits.RC3 // bit 3
21710 #define RC4 PORTCbits.RC4 // bit 4
21711 #define RC5 PORTCbits.RC5 // bit 5
21712 #define RC6 PORTCbits.RC6 // bit 6
21713 #define RC7 PORTCbits.RC7 // bit 7
21715 #define RE3 PORTEbits.RE3 // bit 3
21717 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
21719 #define RPOL PRG1CON1bits.RPOL // bit 0, shadows bit in PRG1CON1bits
21720 #define RG1RPOL PRG1CON1bits.RG1RPOL // bit 0, shadows bit in PRG1CON1bits
21721 #define FPOL PRG1CON1bits.FPOL // bit 1, shadows bit in PRG1CON1bits
21722 #define RG1FPOL PRG1CON1bits.RG1FPOL // bit 1, shadows bit in PRG1CON1bits
21723 #define RDY PRG1CON1bits.RDY // bit 2, shadows bit in PRG1CON1bits
21724 #define RG1RDY PRG1CON1bits.RG1RDY // bit 2, shadows bit in PRG1CON1bits
21726 #define ISET0 PRG1CON2bits.ISET0 // bit 0, shadows bit in PRG1CON2bits
21727 #define RG1ISET0 PRG1CON2bits.RG1ISET0 // bit 0, shadows bit in PRG1CON2bits
21728 #define ISET1 PRG1CON2bits.ISET1 // bit 1, shadows bit in PRG1CON2bits
21729 #define RG1ISET1 PRG1CON2bits.RG1ISET1 // bit 1, shadows bit in PRG1CON2bits
21730 #define ISET2 PRG1CON2bits.ISET2 // bit 2, shadows bit in PRG1CON2bits
21731 #define RG1ISET2 PRG1CON2bits.RG1ISET2 // bit 2, shadows bit in PRG1CON2bits
21732 #define ISET3 PRG1CON2bits.ISET3 // bit 3, shadows bit in PRG1CON2bits
21733 #define RG1ISET3 PRG1CON2bits.RG1ISET3 // bit 3, shadows bit in PRG1CON2bits
21734 #define ISET4 PRG1CON2bits.ISET4 // bit 4, shadows bit in PRG1CON2bits
21735 #define RG1ISET4 PRG1CON2bits.RG1ISET4 // bit 4, shadows bit in PRG1CON2bits
21737 #define FTSS0 PRG1FTSSbits.FTSS0 // bit 0, shadows bit in PRG1FTSSbits
21738 #define RG1FTSS0 PRG1FTSSbits.RG1FTSS0 // bit 0, shadows bit in PRG1FTSSbits
21739 #define FTSS1 PRG1FTSSbits.FTSS1 // bit 1, shadows bit in PRG1FTSSbits
21740 #define RG1FTSS1 PRG1FTSSbits.RG1FTSS1 // bit 1, shadows bit in PRG1FTSSbits
21741 #define FTSS2 PRG1FTSSbits.FTSS2 // bit 2, shadows bit in PRG1FTSSbits
21742 #define RG1FTSS2 PRG1FTSSbits.RG1FTSS2 // bit 2, shadows bit in PRG1FTSSbits
21743 #define FTSS3 PRG1FTSSbits.FTSS3 // bit 3, shadows bit in PRG1FTSSbits
21744 #define RG1FTSS3 PRG1FTSSbits.RG1FTSS3 // bit 3, shadows bit in PRG1FTSSbits
21746 #define INS0 PRG1INSbits.INS0 // bit 0, shadows bit in PRG1INSbits
21747 #define RG1INS0 PRG1INSbits.RG1INS0 // bit 0, shadows bit in PRG1INSbits
21748 #define INS1 PRG1INSbits.INS1 // bit 1, shadows bit in PRG1INSbits
21749 #define RG1INS1 PRG1INSbits.RG1INS1 // bit 1, shadows bit in PRG1INSbits
21750 #define INS2 PRG1INSbits.INS2 // bit 2, shadows bit in PRG1INSbits
21751 #define RG1INS2 PRG1INSbits.RG1INS2 // bit 2, shadows bit in PRG1INSbits
21752 #define INS3 PRG1INSbits.INS3 // bit 3, shadows bit in PRG1INSbits
21753 #define RG1INS3 PRG1INSbits.RG1INS3 // bit 3, shadows bit in PRG1INSbits
21755 #define RTSS0 PRG1RTSSbits.RTSS0 // bit 0, shadows bit in PRG1RTSSbits
21756 #define RG1RTSS0 PRG1RTSSbits.RG1RTSS0 // bit 0, shadows bit in PRG1RTSSbits
21757 #define RTSS1 PRG1RTSSbits.RTSS1 // bit 1, shadows bit in PRG1RTSSbits
21758 #define RG1RTSS1 PRG1RTSSbits.RG1RTSS1 // bit 1, shadows bit in PRG1RTSSbits
21759 #define RTSS2 PRG1RTSSbits.RTSS2 // bit 2, shadows bit in PRG1RTSSbits
21760 #define RG1RTSS2 PRG1RTSSbits.RG1RTSS2 // bit 2, shadows bit in PRG1RTSSbits
21761 #define RTSS3 PRG1RTSSbits.RTSS3 // bit 3, shadows bit in PRG1RTSSbits
21762 #define RG1RTSS3 PRG1RTSSbits.RG1RTSS3 // bit 3, shadows bit in PRG1RTSSbits
21764 #define DC2 PWM3DCHbits.DC2 // bit 0, shadows bit in PWM3DCHbits
21765 #define PWM3DC2 PWM3DCHbits.PWM3DC2 // bit 0, shadows bit in PWM3DCHbits
21766 #define PWMPW2 PWM3DCHbits.PWMPW2 // bit 0, shadows bit in PWM3DCHbits
21767 #define DC3 PWM3DCHbits.DC3 // bit 1, shadows bit in PWM3DCHbits
21768 #define PWM3DC3 PWM3DCHbits.PWM3DC3 // bit 1, shadows bit in PWM3DCHbits
21769 #define PWMPW3 PWM3DCHbits.PWMPW3 // bit 1, shadows bit in PWM3DCHbits
21770 #define DC4 PWM3DCHbits.DC4 // bit 2, shadows bit in PWM3DCHbits
21771 #define PWM3DC4 PWM3DCHbits.PWM3DC4 // bit 2, shadows bit in PWM3DCHbits
21772 #define PWMPW4 PWM3DCHbits.PWMPW4 // bit 2, shadows bit in PWM3DCHbits
21773 #define DC5 PWM3DCHbits.DC5 // bit 3, shadows bit in PWM3DCHbits
21774 #define PWM3DC5 PWM3DCHbits.PWM3DC5 // bit 3, shadows bit in PWM3DCHbits
21775 #define PWMPW5 PWM3DCHbits.PWMPW5 // bit 3, shadows bit in PWM3DCHbits
21776 #define DC6 PWM3DCHbits.DC6 // bit 4, shadows bit in PWM3DCHbits
21777 #define PWM3DC6 PWM3DCHbits.PWM3DC6 // bit 4, shadows bit in PWM3DCHbits
21778 #define PWMPW6 PWM3DCHbits.PWMPW6 // bit 4, shadows bit in PWM3DCHbits
21779 #define DC7 PWM3DCHbits.DC7 // bit 5, shadows bit in PWM3DCHbits
21780 #define PWM3DC7 PWM3DCHbits.PWM3DC7 // bit 5, shadows bit in PWM3DCHbits
21781 #define PWMPW7 PWM3DCHbits.PWMPW7 // bit 5, shadows bit in PWM3DCHbits
21782 #define DC8 PWM3DCHbits.DC8 // bit 6, shadows bit in PWM3DCHbits
21783 #define PWM3DC8 PWM3DCHbits.PWM3DC8 // bit 6, shadows bit in PWM3DCHbits
21784 #define PWMPW8 PWM3DCHbits.PWMPW8 // bit 6, shadows bit in PWM3DCHbits
21785 #define DC9 PWM3DCHbits.DC9 // bit 7, shadows bit in PWM3DCHbits
21786 #define PWM3DC9 PWM3DCHbits.PWM3DC9 // bit 7, shadows bit in PWM3DCHbits
21787 #define PWMPW9 PWM3DCHbits.PWMPW9 // bit 7, shadows bit in PWM3DCHbits
21789 #define DC0 PWM3DCLbits.DC0 // bit 6, shadows bit in PWM3DCLbits
21790 #define PWM3DC0 PWM3DCLbits.PWM3DC0 // bit 6, shadows bit in PWM3DCLbits
21791 #define PWMPW0 PWM3DCLbits.PWMPW0 // bit 6, shadows bit in PWM3DCLbits
21792 #define DC1 PWM3DCLbits.DC1 // bit 7, shadows bit in PWM3DCLbits
21793 #define PWM3DC1 PWM3DCLbits.PWM3DC1 // bit 7, shadows bit in PWM3DCLbits
21794 #define PWMPW1 PWM3DCLbits.PWMPW1 // bit 7, shadows bit in PWM3DCLbits
21796 #define PWM5DCH0 PWM5DCHbits.PWM5DCH0 // bit 0
21797 #define PWM5DCH1 PWM5DCHbits.PWM5DCH1 // bit 1
21798 #define PWM5DCH2 PWM5DCHbits.PWM5DCH2 // bit 2
21799 #define PWM5DCH3 PWM5DCHbits.PWM5DCH3 // bit 3
21800 #define PWM5DCH4 PWM5DCHbits.PWM5DCH4 // bit 4
21801 #define PWM5DCH5 PWM5DCHbits.PWM5DCH5 // bit 5
21802 #define PWM5DCH6 PWM5DCHbits.PWM5DCH6 // bit 6
21803 #define PWM5DCH7 PWM5DCHbits.PWM5DCH7 // bit 7
21805 #define PWM5DCL0 PWM5DCLbits.PWM5DCL0 // bit 0
21806 #define PWM5DCL1 PWM5DCLbits.PWM5DCL1 // bit 1
21807 #define PWM5DCL2 PWM5DCLbits.PWM5DCL2 // bit 2
21808 #define PWM5DCL3 PWM5DCLbits.PWM5DCL3 // bit 3
21809 #define PWM5DCL4 PWM5DCLbits.PWM5DCL4 // bit 4
21810 #define PWM5DCL5 PWM5DCLbits.PWM5DCL5 // bit 5
21811 #define PWM5DCL6 PWM5DCLbits.PWM5DCL6 // bit 6
21812 #define PWM5DCL7 PWM5DCLbits.PWM5DCL7 // bit 7
21814 #define PRIE PWM5INTCONbits.PRIE // bit 0, shadows bit in PWM5INTCONbits
21815 #define PWM5PRIE PWM5INTCONbits.PWM5PRIE // bit 0, shadows bit in PWM5INTCONbits
21816 #define DCIE PWM5INTCONbits.DCIE // bit 1, shadows bit in PWM5INTCONbits
21817 #define PWM5DCIE PWM5INTCONbits.PWM5DCIE // bit 1, shadows bit in PWM5INTCONbits
21818 #define PHIE PWM5INTCONbits.PHIE // bit 2, shadows bit in PWM5INTCONbits
21819 #define PWM5PHIE PWM5INTCONbits.PWM5PHIE // bit 2, shadows bit in PWM5INTCONbits
21820 #define OFIE PWM5INTCONbits.OFIE // bit 3, shadows bit in PWM5INTCONbits
21821 #define PWM5OFIE PWM5INTCONbits.PWM5OFIE // bit 3, shadows bit in PWM5INTCONbits
21823 #define PRIF PWM5INTFbits.PRIF // bit 0, shadows bit in PWM5INTFbits
21824 #define PWM5PRIF PWM5INTFbits.PWM5PRIF // bit 0, shadows bit in PWM5INTFbits
21825 #define DCIF PWM5INTFbits.DCIF // bit 1, shadows bit in PWM5INTFbits
21826 #define PWM5DCIF PWM5INTFbits.PWM5DCIF // bit 1, shadows bit in PWM5INTFbits
21827 #define PHIF PWM5INTFbits.PHIF // bit 2, shadows bit in PWM5INTFbits
21828 #define PWM5PHIF PWM5INTFbits.PWM5PHIF // bit 2, shadows bit in PWM5INTFbits
21829 #define OFIF PWM5INTFbits.OFIF // bit 3, shadows bit in PWM5INTFbits
21830 #define PWM5OFIF PWM5INTFbits.PWM5OFIF // bit 3, shadows bit in PWM5INTFbits
21832 #define PWM5LDS0 PWM5LDCONbits.PWM5LDS0 // bit 0, shadows bit in PWM5LDCONbits
21833 #define LDS0 PWM5LDCONbits.LDS0 // bit 0, shadows bit in PWM5LDCONbits
21834 #define PWM5LDS1 PWM5LDCONbits.PWM5LDS1 // bit 1, shadows bit in PWM5LDCONbits
21835 #define LDS1 PWM5LDCONbits.LDS1 // bit 1, shadows bit in PWM5LDCONbits
21836 #define LDT PWM5LDCONbits.LDT // bit 6, shadows bit in PWM5LDCONbits
21837 #define PWM5LDM PWM5LDCONbits.PWM5LDM // bit 6, shadows bit in PWM5LDCONbits
21838 #define LDA PWM5LDCONbits.LDA // bit 7, shadows bit in PWM5LDCONbits
21839 #define PWM5LD PWM5LDCONbits.PWM5LD // bit 7, shadows bit in PWM5LDCONbits
21841 #define PWM5OFS0 PWM5OFCONbits.PWM5OFS0 // bit 0, shadows bit in PWM5OFCONbits
21842 #define OFS0 PWM5OFCONbits.OFS0 // bit 0, shadows bit in PWM5OFCONbits
21843 #define PWM5OFS1 PWM5OFCONbits.PWM5OFS1 // bit 1, shadows bit in PWM5OFCONbits
21844 #define OFS1 PWM5OFCONbits.OFS1 // bit 1, shadows bit in PWM5OFCONbits
21845 #define OFO PWM5OFCONbits.OFO // bit 4, shadows bit in PWM5OFCONbits
21846 #define PWM5OFMC PWM5OFCONbits.PWM5OFMC // bit 4, shadows bit in PWM5OFCONbits
21847 #define PWM5OFM0 PWM5OFCONbits.PWM5OFM0 // bit 5, shadows bit in PWM5OFCONbits
21848 #define OFM0 PWM5OFCONbits.OFM0 // bit 5, shadows bit in PWM5OFCONbits
21849 #define PWM5OFM1 PWM5OFCONbits.PWM5OFM1 // bit 6, shadows bit in PWM5OFCONbits
21850 #define OFM1 PWM5OFCONbits.OFM1 // bit 6, shadows bit in PWM5OFCONbits
21852 #define PWM5OFH0 PWM5OFHbits.PWM5OFH0 // bit 0
21853 #define PWM5OFH1 PWM5OFHbits.PWM5OFH1 // bit 1
21854 #define PWM5OFH2 PWM5OFHbits.PWM5OFH2 // bit 2
21855 #define PWM5OFH3 PWM5OFHbits.PWM5OFH3 // bit 3
21856 #define PWM5OFH4 PWM5OFHbits.PWM5OFH4 // bit 4
21857 #define PWM5OFH5 PWM5OFHbits.PWM5OFH5 // bit 5
21858 #define PWM5OFH6 PWM5OFHbits.PWM5OFH6 // bit 6
21859 #define PWM5OFH7 PWM5OFHbits.PWM5OFH7 // bit 7
21861 #define PWM5OFL0 PWM5OFLbits.PWM5OFL0 // bit 0
21862 #define PWM5OFL1 PWM5OFLbits.PWM5OFL1 // bit 1
21863 #define PWM5OFL2 PWM5OFLbits.PWM5OFL2 // bit 2
21864 #define PWM5OFL3 PWM5OFLbits.PWM5OFL3 // bit 3
21865 #define PWM5OFL4 PWM5OFLbits.PWM5OFL4 // bit 4
21866 #define PWM5OFL5 PWM5OFLbits.PWM5OFL5 // bit 5
21867 #define PWM5OFL6 PWM5OFLbits.PWM5OFL6 // bit 6
21868 #define PWM5OFL7 PWM5OFLbits.PWM5OFL7 // bit 7
21870 #define PWM5PHH0 PWM5PHHbits.PWM5PHH0 // bit 0
21871 #define PWM5PHH1 PWM5PHHbits.PWM5PHH1 // bit 1
21872 #define PWM5PHH2 PWM5PHHbits.PWM5PHH2 // bit 2
21873 #define PWM5PHH3 PWM5PHHbits.PWM5PHH3 // bit 3
21874 #define PWM5PHH4 PWM5PHHbits.PWM5PHH4 // bit 4
21875 #define PWM5PHH5 PWM5PHHbits.PWM5PHH5 // bit 5
21876 #define PWM5PHH6 PWM5PHHbits.PWM5PHH6 // bit 6
21877 #define PWM5PHH7 PWM5PHHbits.PWM5PHH7 // bit 7
21879 #define PWM5PHL0 PWM5PHLbits.PWM5PHL0 // bit 0
21880 #define PWM5PHL1 PWM5PHLbits.PWM5PHL1 // bit 1
21881 #define PWM5PHL2 PWM5PHLbits.PWM5PHL2 // bit 2
21882 #define PWM5PHL3 PWM5PHLbits.PWM5PHL3 // bit 3
21883 #define PWM5PHL4 PWM5PHLbits.PWM5PHL4 // bit 4
21884 #define PWM5PHL5 PWM5PHLbits.PWM5PHL5 // bit 5
21885 #define PWM5PHL6 PWM5PHLbits.PWM5PHL6 // bit 6
21886 #define PWM5PHL7 PWM5PHLbits.PWM5PHL7 // bit 7
21888 #define PWM5PRH0 PWM5PRHbits.PWM5PRH0 // bit 0
21889 #define PWM5PRH1 PWM5PRHbits.PWM5PRH1 // bit 1
21890 #define PWM5PRH2 PWM5PRHbits.PWM5PRH2 // bit 2
21891 #define PWM5PRH3 PWM5PRHbits.PWM5PRH3 // bit 3
21892 #define PWM5PRH4 PWM5PRHbits.PWM5PRH4 // bit 4
21893 #define PWM5PRH5 PWM5PRHbits.PWM5PRH5 // bit 5
21894 #define PWM5PRH6 PWM5PRHbits.PWM5PRH6 // bit 6
21895 #define PWM5PRH7 PWM5PRHbits.PWM5PRH7 // bit 7
21897 #define PWM5PRL0 PWM5PRLbits.PWM5PRL0 // bit 0
21898 #define PWM5PRL1 PWM5PRLbits.PWM5PRL1 // bit 1
21899 #define PWM5PRL2 PWM5PRLbits.PWM5PRL2 // bit 2
21900 #define PWM5PRL3 PWM5PRLbits.PWM5PRL3 // bit 3
21901 #define PWM5PRL4 PWM5PRLbits.PWM5PRL4 // bit 4
21902 #define PWM5PRL5 PWM5PRLbits.PWM5PRL5 // bit 5
21903 #define PWM5PRL6 PWM5PRLbits.PWM5PRL6 // bit 6
21904 #define PWM5PRL7 PWM5PRLbits.PWM5PRL7 // bit 7
21906 #define PWM5TMRH0 PWM5TMRHbits.PWM5TMRH0 // bit 0
21907 #define PWM5TMRH1 PWM5TMRHbits.PWM5TMRH1 // bit 1
21908 #define PWM5TMRH2 PWM5TMRHbits.PWM5TMRH2 // bit 2
21909 #define PWM5TMRH3 PWM5TMRHbits.PWM5TMRH3 // bit 3
21910 #define PWM5TMRH4 PWM5TMRHbits.PWM5TMRH4 // bit 4
21911 #define PWM5TMRH5 PWM5TMRHbits.PWM5TMRH5 // bit 5
21912 #define PWM5TMRH6 PWM5TMRHbits.PWM5TMRH6 // bit 6
21913 #define PWM5TMRH7 PWM5TMRHbits.PWM5TMRH7 // bit 7
21915 #define PWM5TMRL0 PWM5TMRLbits.PWM5TMRL0 // bit 0
21916 #define PWM5TMRL1 PWM5TMRLbits.PWM5TMRL1 // bit 1
21917 #define PWM5TMRL2 PWM5TMRLbits.PWM5TMRL2 // bit 2
21918 #define PWM5TMRL3 PWM5TMRLbits.PWM5TMRL3 // bit 3
21919 #define PWM5TMRL4 PWM5TMRLbits.PWM5TMRL4 // bit 4
21920 #define PWM5TMRL5 PWM5TMRLbits.PWM5TMRL5 // bit 5
21921 #define PWM5TMRL6 PWM5TMRLbits.PWM5TMRL6 // bit 6
21922 #define PWM5TMRL7 PWM5TMRLbits.PWM5TMRL7 // bit 7
21924 #define PWM6DCH0 PWM6DCHbits.PWM6DCH0 // bit 0
21925 #define PWM6DCH1 PWM6DCHbits.PWM6DCH1 // bit 1
21926 #define PWM6DCH2 PWM6DCHbits.PWM6DCH2 // bit 2
21927 #define PWM6DCH3 PWM6DCHbits.PWM6DCH3 // bit 3
21928 #define PWM6DCH4 PWM6DCHbits.PWM6DCH4 // bit 4
21929 #define PWM6DCH5 PWM6DCHbits.PWM6DCH5 // bit 5
21930 #define PWM6DCH6 PWM6DCHbits.PWM6DCH6 // bit 6
21931 #define PWM6DCH7 PWM6DCHbits.PWM6DCH7 // bit 7
21933 #define PWM6DCL0 PWM6DCLbits.PWM6DCL0 // bit 0
21934 #define PWM6DCL1 PWM6DCLbits.PWM6DCL1 // bit 1
21935 #define PWM6DCL2 PWM6DCLbits.PWM6DCL2 // bit 2
21936 #define PWM6DCL3 PWM6DCLbits.PWM6DCL3 // bit 3
21937 #define PWM6DCL4 PWM6DCLbits.PWM6DCL4 // bit 4
21938 #define PWM6DCL5 PWM6DCLbits.PWM6DCL5 // bit 5
21939 #define PWM6DCL6 PWM6DCLbits.PWM6DCL6 // bit 6
21940 #define PWM6DCL7 PWM6DCLbits.PWM6DCL7 // bit 7
21942 #define PWM6OFH0 PWM6OFHbits.PWM6OFH0 // bit 0
21943 #define PWM6OFH1 PWM6OFHbits.PWM6OFH1 // bit 1
21944 #define PWM6OFH2 PWM6OFHbits.PWM6OFH2 // bit 2
21945 #define PWM6OFH3 PWM6OFHbits.PWM6OFH3 // bit 3
21946 #define PWM6OFH4 PWM6OFHbits.PWM6OFH4 // bit 4
21947 #define PWM6OFH5 PWM6OFHbits.PWM6OFH5 // bit 5
21948 #define PWM6OFH6 PWM6OFHbits.PWM6OFH6 // bit 6
21949 #define PWM6OFH7 PWM6OFHbits.PWM6OFH7 // bit 7
21951 #define PWM6OFL0 PWM6OFLbits.PWM6OFL0 // bit 0
21952 #define PWM6OFL1 PWM6OFLbits.PWM6OFL1 // bit 1
21953 #define PWM6OFL2 PWM6OFLbits.PWM6OFL2 // bit 2
21954 #define PWM6OFL3 PWM6OFLbits.PWM6OFL3 // bit 3
21955 #define PWM6OFL4 PWM6OFLbits.PWM6OFL4 // bit 4
21956 #define PWM6OFL5 PWM6OFLbits.PWM6OFL5 // bit 5
21957 #define PWM6OFL6 PWM6OFLbits.PWM6OFL6 // bit 6
21958 #define PWM6OFL7 PWM6OFLbits.PWM6OFL7 // bit 7
21960 #define PWM6PHH0 PWM6PHHbits.PWM6PHH0 // bit 0
21961 #define PWM6PHH1 PWM6PHHbits.PWM6PHH1 // bit 1
21962 #define PWM6PHH2 PWM6PHHbits.PWM6PHH2 // bit 2
21963 #define PWM6PHH3 PWM6PHHbits.PWM6PHH3 // bit 3
21964 #define PWM6PHH4 PWM6PHHbits.PWM6PHH4 // bit 4
21965 #define PWM6PHH5 PWM6PHHbits.PWM6PHH5 // bit 5
21966 #define PWM6PHH6 PWM6PHHbits.PWM6PHH6 // bit 6
21967 #define PWM6PHH7 PWM6PHHbits.PWM6PHH7 // bit 7
21969 #define PWM6PHL0 PWM6PHLbits.PWM6PHL0 // bit 0
21970 #define PWM6PHL1 PWM6PHLbits.PWM6PHL1 // bit 1
21971 #define PWM6PHL2 PWM6PHLbits.PWM6PHL2 // bit 2
21972 #define PWM6PHL3 PWM6PHLbits.PWM6PHL3 // bit 3
21973 #define PWM6PHL4 PWM6PHLbits.PWM6PHL4 // bit 4
21974 #define PWM6PHL5 PWM6PHLbits.PWM6PHL5 // bit 5
21975 #define PWM6PHL6 PWM6PHLbits.PWM6PHL6 // bit 6
21976 #define PWM6PHL7 PWM6PHLbits.PWM6PHL7 // bit 7
21978 #define PWM6PRH0 PWM6PRHbits.PWM6PRH0 // bit 0
21979 #define PWM6PRH1 PWM6PRHbits.PWM6PRH1 // bit 1
21980 #define PWM6PRH2 PWM6PRHbits.PWM6PRH2 // bit 2
21981 #define PWM6PRH3 PWM6PRHbits.PWM6PRH3 // bit 3
21982 #define PWM6PRH4 PWM6PRHbits.PWM6PRH4 // bit 4
21983 #define PWM6PRH5 PWM6PRHbits.PWM6PRH5 // bit 5
21984 #define PWM6PRH6 PWM6PRHbits.PWM6PRH6 // bit 6
21985 #define PWM6PRH7 PWM6PRHbits.PWM6PRH7 // bit 7
21987 #define PWM6PRL0 PWM6PRLbits.PWM6PRL0 // bit 0
21988 #define PWM6PRL1 PWM6PRLbits.PWM6PRL1 // bit 1
21989 #define PWM6PRL2 PWM6PRLbits.PWM6PRL2 // bit 2
21990 #define PWM6PRL3 PWM6PRLbits.PWM6PRL3 // bit 3
21991 #define PWM6PRL4 PWM6PRLbits.PWM6PRL4 // bit 4
21992 #define PWM6PRL5 PWM6PRLbits.PWM6PRL5 // bit 5
21993 #define PWM6PRL6 PWM6PRLbits.PWM6PRL6 // bit 6
21994 #define PWM6PRL7 PWM6PRLbits.PWM6PRL7 // bit 7
21996 #define PWM6TMRH0 PWM6TMRHbits.PWM6TMRH0 // bit 0
21997 #define PWM6TMRH1 PWM6TMRHbits.PWM6TMRH1 // bit 1
21998 #define PWM6TMRH2 PWM6TMRHbits.PWM6TMRH2 // bit 2
21999 #define PWM6TMRH3 PWM6TMRHbits.PWM6TMRH3 // bit 3
22000 #define PWM6TMRH4 PWM6TMRHbits.PWM6TMRH4 // bit 4
22001 #define PWM6TMRH5 PWM6TMRHbits.PWM6TMRH5 // bit 5
22002 #define PWM6TMRH6 PWM6TMRHbits.PWM6TMRH6 // bit 6
22003 #define PWM6TMRH7 PWM6TMRHbits.PWM6TMRH7 // bit 7
22005 #define PWM6TMRL0 PWM6TMRLbits.PWM6TMRL0 // bit 0
22006 #define PWM6TMRL1 PWM6TMRLbits.PWM6TMRL1 // bit 1
22007 #define PWM6TMRL2 PWM6TMRLbits.PWM6TMRL2 // bit 2
22008 #define PWM6TMRL3 PWM6TMRLbits.PWM6TMRL3 // bit 3
22009 #define PWM6TMRL4 PWM6TMRLbits.PWM6TMRL4 // bit 4
22010 #define PWM6TMRL5 PWM6TMRLbits.PWM6TMRL5 // bit 5
22011 #define PWM6TMRL6 PWM6TMRLbits.PWM6TMRL6 // bit 6
22012 #define PWM6TMRL7 PWM6TMRLbits.PWM6TMRL7 // bit 7
22014 #define PWM11DCH0 PWM11DCHbits.PWM11DCH0 // bit 0
22015 #define PWM11DCH1 PWM11DCHbits.PWM11DCH1 // bit 1
22016 #define PWM11DCH2 PWM11DCHbits.PWM11DCH2 // bit 2
22017 #define PWM11DCH3 PWM11DCHbits.PWM11DCH3 // bit 3
22018 #define PWM11DCH4 PWM11DCHbits.PWM11DCH4 // bit 4
22019 #define PWM11DCH5 PWM11DCHbits.PWM11DCH5 // bit 5
22020 #define PWM11DCH6 PWM11DCHbits.PWM11DCH6 // bit 6
22021 #define PWM11DCH7 PWM11DCHbits.PWM11DCH7 // bit 7
22023 #define PWM11DCL0 PWM11DCLbits.PWM11DCL0 // bit 0
22024 #define PWM11DCL1 PWM11DCLbits.PWM11DCL1 // bit 1
22025 #define PWM11DCL2 PWM11DCLbits.PWM11DCL2 // bit 2
22026 #define PWM11DCL3 PWM11DCLbits.PWM11DCL3 // bit 3
22027 #define PWM11DCL4 PWM11DCLbits.PWM11DCL4 // bit 4
22028 #define PWM11DCL5 PWM11DCLbits.PWM11DCL5 // bit 5
22029 #define PWM11DCL6 PWM11DCLbits.PWM11DCL6 // bit 6
22030 #define PWM11DCL7 PWM11DCLbits.PWM11DCL7 // bit 7
22032 #define PWM11OFH0 PWM11OFHbits.PWM11OFH0 // bit 0
22033 #define PWM11OFH1 PWM11OFHbits.PWM11OFH1 // bit 1
22034 #define PWM11OFH2 PWM11OFHbits.PWM11OFH2 // bit 2
22035 #define PWM11OFH3 PWM11OFHbits.PWM11OFH3 // bit 3
22036 #define PWM11OFH4 PWM11OFHbits.PWM11OFH4 // bit 4
22037 #define PWM11OFH5 PWM11OFHbits.PWM11OFH5 // bit 5
22038 #define PWM11OFH6 PWM11OFHbits.PWM11OFH6 // bit 6
22039 #define PWM11OFH7 PWM11OFHbits.PWM11OFH7 // bit 7
22041 #define PWM11OFL0 PWM11OFLbits.PWM11OFL0 // bit 0
22042 #define PWM11OFL1 PWM11OFLbits.PWM11OFL1 // bit 1
22043 #define PWM11OFL2 PWM11OFLbits.PWM11OFL2 // bit 2
22044 #define PWM11OFL3 PWM11OFLbits.PWM11OFL3 // bit 3
22045 #define PWM11OFL4 PWM11OFLbits.PWM11OFL4 // bit 4
22046 #define PWM11OFL5 PWM11OFLbits.PWM11OFL5 // bit 5
22047 #define PWM11OFL6 PWM11OFLbits.PWM11OFL6 // bit 6
22048 #define PWM11OFL7 PWM11OFLbits.PWM11OFL7 // bit 7
22050 #define PWM11PHH0 PWM11PHHbits.PWM11PHH0 // bit 0
22051 #define PWM11PHH1 PWM11PHHbits.PWM11PHH1 // bit 1
22052 #define PWM11PHH2 PWM11PHHbits.PWM11PHH2 // bit 2
22053 #define PWM11PHH3 PWM11PHHbits.PWM11PHH3 // bit 3
22054 #define PWM11PHH4 PWM11PHHbits.PWM11PHH4 // bit 4
22055 #define PWM11PHH5 PWM11PHHbits.PWM11PHH5 // bit 5
22056 #define PWM11PHH6 PWM11PHHbits.PWM11PHH6 // bit 6
22057 #define PWM11PHH7 PWM11PHHbits.PWM11PHH7 // bit 7
22059 #define PWM11PHL0 PWM11PHLbits.PWM11PHL0 // bit 0
22060 #define PWM11PHL1 PWM11PHLbits.PWM11PHL1 // bit 1
22061 #define PWM11PHL2 PWM11PHLbits.PWM11PHL2 // bit 2
22062 #define PWM11PHL3 PWM11PHLbits.PWM11PHL3 // bit 3
22063 #define PWM11PHL4 PWM11PHLbits.PWM11PHL4 // bit 4
22064 #define PWM11PHL5 PWM11PHLbits.PWM11PHL5 // bit 5
22065 #define PWM11PHL6 PWM11PHLbits.PWM11PHL6 // bit 6
22066 #define PWM11PHL7 PWM11PHLbits.PWM11PHL7 // bit 7
22068 #define PWM11PRH0 PWM11PRHbits.PWM11PRH0 // bit 0
22069 #define PWM11PRH1 PWM11PRHbits.PWM11PRH1 // bit 1
22070 #define PWM11PRH2 PWM11PRHbits.PWM11PRH2 // bit 2
22071 #define PWM11PRH3 PWM11PRHbits.PWM11PRH3 // bit 3
22072 #define PWM11PRH4 PWM11PRHbits.PWM11PRH4 // bit 4
22073 #define PWM11PRH5 PWM11PRHbits.PWM11PRH5 // bit 5
22074 #define PWM11PRH6 PWM11PRHbits.PWM11PRH6 // bit 6
22075 #define PWM11PRH7 PWM11PRHbits.PWM11PRH7 // bit 7
22077 #define PWM11PRL0 PWM11PRLbits.PWM11PRL0 // bit 0
22078 #define PWM11PRL1 PWM11PRLbits.PWM11PRL1 // bit 1
22079 #define PWM11PRL2 PWM11PRLbits.PWM11PRL2 // bit 2
22080 #define PWM11PRL3 PWM11PRLbits.PWM11PRL3 // bit 3
22081 #define PWM11PRL4 PWM11PRLbits.PWM11PRL4 // bit 4
22082 #define PWM11PRL5 PWM11PRLbits.PWM11PRL5 // bit 5
22083 #define PWM11PRL6 PWM11PRLbits.PWM11PRL6 // bit 6
22084 #define PWM11PRL7 PWM11PRLbits.PWM11PRL7 // bit 7
22086 #define PWM11TMRH0 PWM11TMRHbits.PWM11TMRH0 // bit 0
22087 #define PWM11TMRH1 PWM11TMRHbits.PWM11TMRH1 // bit 1
22088 #define PWM11TMRH2 PWM11TMRHbits.PWM11TMRH2 // bit 2
22089 #define PWM11TMRH3 PWM11TMRHbits.PWM11TMRH3 // bit 3
22090 #define PWM11TMRH4 PWM11TMRHbits.PWM11TMRH4 // bit 4
22091 #define PWM11TMRH5 PWM11TMRHbits.PWM11TMRH5 // bit 5
22092 #define PWM11TMRH6 PWM11TMRHbits.PWM11TMRH6 // bit 6
22093 #define PWM11TMRH7 PWM11TMRHbits.PWM11TMRH7 // bit 7
22095 #define PWM11TMRL0 PWM11TMRLbits.PWM11TMRL0 // bit 0
22096 #define PWM11TMRL1 PWM11TMRLbits.PWM11TMRL1 // bit 1
22097 #define PWM11TMRL2 PWM11TMRLbits.PWM11TMRL2 // bit 2
22098 #define PWM11TMRL3 PWM11TMRLbits.PWM11TMRL3 // bit 3
22099 #define PWM11TMRL4 PWM11TMRLbits.PWM11TMRL4 // bit 4
22100 #define PWM11TMRL5 PWM11TMRLbits.PWM11TMRL5 // bit 5
22101 #define PWM11TMRL6 PWM11TMRLbits.PWM11TMRL6 // bit 6
22102 #define PWM11TMRL7 PWM11TMRLbits.PWM11TMRL7 // bit 7
22104 #define MPWM5EN PWMENbits.MPWM5EN // bit 0
22105 #define MPWM6EN PWMENbits.MPWM6EN // bit 1
22106 #define MPWM11EN PWMENbits.MPWM11EN // bit 2
22108 #define MPWM5LD PWMLDbits.MPWM5LD // bit 0
22109 #define MPWM6LD PWMLDbits.MPWM6LD // bit 1
22110 #define MPWM11LD PWMLDbits.MPWM11LD // bit 2
22112 #define MPWM5OUT PWMOUTbits.MPWM5OUT // bit 0
22113 #define MPWM6OUT PWMOUTbits.MPWM6OUT // bit 1
22114 #define MPWM11OUT PWMOUTbits.MPWM11OUT // bit 2
22116 #define RX9D RC1STAbits.RX9D // bit 0
22117 #define OERR RC1STAbits.OERR // bit 1
22118 #define FERR RC1STAbits.FERR // bit 2
22119 #define ADDEN RC1STAbits.ADDEN // bit 3
22120 #define CREN RC1STAbits.CREN // bit 4
22121 #define SREN RC1STAbits.SREN // bit 5
22122 #define RX9 RC1STAbits.RX9 // bit 6
22123 #define SPEN RC1STAbits.SPEN // bit 7
22125 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
22126 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
22127 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
22128 #define SLRA3 SLRCONAbits.SLRA3 // bit 3
22129 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
22130 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
22131 #define SLRA6 SLRCONAbits.SLRA6 // bit 6
22132 #define SLRA7 SLRCONAbits.SLRA7 // bit 7
22134 #define SLRB0 SLRCONBbits.SLRB0 // bit 0
22135 #define SLRB1 SLRCONBbits.SLRB1 // bit 1
22136 #define SLRB2 SLRCONBbits.SLRB2 // bit 2
22137 #define SLRB3 SLRCONBbits.SLRB3 // bit 3
22138 #define SLRB4 SLRCONBbits.SLRB4 // bit 4
22139 #define SLRB5 SLRCONBbits.SLRB5 // bit 5
22140 #define SLRB6 SLRCONBbits.SLRB6 // bit 6
22141 #define SLRB7 SLRCONBbits.SLRB7 // bit 7
22143 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
22144 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
22145 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
22146 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
22147 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
22148 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
22149 #define SLRC6 SLRCONCbits.SLRC6 // bit 6
22150 #define SLRC7 SLRCONCbits.SLRC7 // bit 7
22152 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
22153 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
22154 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
22155 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
22156 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
22157 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
22158 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
22159 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
22160 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
22161 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
22162 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
22163 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
22164 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
22165 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
22166 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
22167 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
22169 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
22170 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
22171 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
22172 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
22173 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
22174 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
22175 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
22176 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
22177 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
22178 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
22179 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
22180 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
22181 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
22182 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
22183 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
22184 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
22186 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
22187 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
22188 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
22189 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
22190 #define CKP SSP1CONbits.CKP // bit 4
22191 #define SSPEN SSP1CONbits.SSPEN // bit 5
22192 #define SSPOV SSP1CONbits.SSPOV // bit 6
22193 #define WCOL SSP1CONbits.WCOL // bit 7
22195 #define SEN SSP1CON2bits.SEN // bit 0
22196 #define RSEN SSP1CON2bits.RSEN // bit 1
22197 #define PEN SSP1CON2bits.PEN // bit 2
22198 #define RCEN SSP1CON2bits.RCEN // bit 3
22199 #define ACKEN SSP1CON2bits.ACKEN // bit 4
22200 #define ACKDT SSP1CON2bits.ACKDT // bit 5
22201 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
22202 #define GCEN SSP1CON2bits.GCEN // bit 7
22204 #define DHEN SSP1CON3bits.DHEN // bit 0
22205 #define AHEN SSP1CON3bits.AHEN // bit 1
22206 #define SBCDE SSP1CON3bits.SBCDE // bit 2
22207 #define SDAHT SSP1CON3bits.SDAHT // bit 3
22208 #define BOEN SSP1CON3bits.BOEN // bit 4
22209 #define SCIE SSP1CON3bits.SCIE // bit 5
22210 #define PCIE SSP1CON3bits.PCIE // bit 6
22211 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
22213 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
22214 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
22215 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
22216 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
22217 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
22218 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
22219 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
22220 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
22221 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
22222 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
22223 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
22224 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
22225 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
22226 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
22227 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
22228 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
22230 #define BF SSP1STATbits.BF // bit 0
22231 #define UA SSP1STATbits.UA // bit 1
22232 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
22233 #define S SSP1STATbits.S // bit 3
22234 #define P SSP1STATbits.P // bit 4
22235 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
22236 #define CKE SSP1STATbits.CKE // bit 6
22237 #define SMP SSP1STATbits.SMP // bit 7
22239 #define C STATUSbits.C // bit 0
22240 #define DC STATUSbits.DC // bit 1
22241 #define Z STATUSbits.Z // bit 2
22242 #define NOT_PD STATUSbits.NOT_PD // bit 3
22243 #define NOT_TO STATUSbits.NOT_TO // bit 4
22245 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
22246 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
22247 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
22249 #define GSS0 T1GCONbits.GSS0 // bit 0, shadows bit in T1GCONbits
22250 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0, shadows bit in T1GCONbits
22251 #define GSS1 T1GCONbits.GSS1 // bit 1, shadows bit in T1GCONbits
22252 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1, shadows bit in T1GCONbits
22253 #define GVAL T1GCONbits.GVAL // bit 2, shadows bit in T1GCONbits
22254 #define T1GVAL T1GCONbits.T1GVAL // bit 2, shadows bit in T1GCONbits
22255 #define GGO_NOT_DONE T1GCONbits.GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
22256 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
22257 #define GSPM T1GCONbits.GSPM // bit 4, shadows bit in T1GCONbits
22258 #define T1GSPM T1GCONbits.T1GSPM // bit 4, shadows bit in T1GCONbits
22259 #define GTM T1GCONbits.GTM // bit 5, shadows bit in T1GCONbits
22260 #define T1GTM T1GCONbits.T1GTM // bit 5, shadows bit in T1GCONbits
22261 #define GPOL T1GCONbits.GPOL // bit 6, shadows bit in T1GCONbits
22262 #define T1GPOL T1GCONbits.T1GPOL // bit 6, shadows bit in T1GCONbits
22263 #define GE T1GCONbits.GE // bit 7, shadows bit in T1GCONbits
22264 #define T1GE T1GCONbits.T1GE // bit 7, shadows bit in T1GCONbits
22265 #define TMR1GE T1GCONbits.TMR1GE // bit 7, shadows bit in T1GCONbits
22267 #define RSEL0 T2RSTbits.RSEL0 // bit 0, shadows bit in T2RSTbits
22268 #define T2RSEL0 T2RSTbits.T2RSEL0 // bit 0, shadows bit in T2RSTbits
22269 #define RSEL1 T2RSTbits.RSEL1 // bit 1, shadows bit in T2RSTbits
22270 #define T2RSEL1 T2RSTbits.T2RSEL1 // bit 1, shadows bit in T2RSTbits
22271 #define RSEL2 T2RSTbits.RSEL2 // bit 2, shadows bit in T2RSTbits
22272 #define T2RSEL2 T2RSTbits.T2RSEL2 // bit 2, shadows bit in T2RSTbits
22273 #define RSEL3 T2RSTbits.RSEL3 // bit 3, shadows bit in T2RSTbits
22274 #define T2RSEL3 T2RSTbits.T2RSEL3 // bit 3, shadows bit in T2RSTbits
22275 #define RSEL4 T2RSTbits.RSEL4 // bit 4, shadows bit in T2RSTbits
22276 #define T2RSEL4 T2RSTbits.T2RSEL4 // bit 4, shadows bit in T2RSTbits
22278 #define TRISA0 TRISAbits.TRISA0 // bit 0
22279 #define TRISA1 TRISAbits.TRISA1 // bit 1
22280 #define TRISA2 TRISAbits.TRISA2 // bit 2
22281 #define TRISA3 TRISAbits.TRISA3 // bit 3
22282 #define TRISA4 TRISAbits.TRISA4 // bit 4
22283 #define TRISA5 TRISAbits.TRISA5 // bit 5
22284 #define TRISA6 TRISAbits.TRISA6 // bit 6
22285 #define TRISA7 TRISAbits.TRISA7 // bit 7
22287 #define TRISB0 TRISBbits.TRISB0 // bit 0
22288 #define TRISB1 TRISBbits.TRISB1 // bit 1
22289 #define TRISB2 TRISBbits.TRISB2 // bit 2
22290 #define TRISB3 TRISBbits.TRISB3 // bit 3
22291 #define TRISB4 TRISBbits.TRISB4 // bit 4
22292 #define TRISB5 TRISBbits.TRISB5 // bit 5
22293 #define TRISB6 TRISBbits.TRISB6 // bit 6
22294 #define TRISB7 TRISBbits.TRISB7 // bit 7
22296 #define TRISC0 TRISCbits.TRISC0 // bit 0
22297 #define TRISC1 TRISCbits.TRISC1 // bit 1
22298 #define TRISC2 TRISCbits.TRISC2 // bit 2
22299 #define TRISC3 TRISCbits.TRISC3 // bit 3
22300 #define TRISC4 TRISCbits.TRISC4 // bit 4
22301 #define TRISC5 TRISCbits.TRISC5 // bit 5
22302 #define TRISC6 TRISCbits.TRISC6 // bit 6
22303 #define TRISC7 TRISCbits.TRISC7 // bit 7
22305 #define TRISE3 TRISEbits.TRISE3 // bit 3
22307 #define SWDTEN WDTCONbits.SWDTEN // bit 0
22308 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
22309 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
22310 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
22311 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
22312 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
22314 #define WPUA0 WPUAbits.WPUA0 // bit 0
22315 #define WPUA1 WPUAbits.WPUA1 // bit 1
22316 #define WPUA2 WPUAbits.WPUA2 // bit 2
22317 #define WPUA3 WPUAbits.WPUA3 // bit 3
22318 #define WPUA4 WPUAbits.WPUA4 // bit 4
22319 #define WPUA5 WPUAbits.WPUA5 // bit 5
22320 #define WPUA6 WPUAbits.WPUA6 // bit 6
22321 #define WPUA7 WPUAbits.WPUA7 // bit 7
22323 #define WPUB0 WPUBbits.WPUB0 // bit 0
22324 #define WPUB1 WPUBbits.WPUB1 // bit 1
22325 #define WPUB2 WPUBbits.WPUB2 // bit 2
22326 #define WPUB3 WPUBbits.WPUB3 // bit 3
22327 #define WPUB4 WPUBbits.WPUB4 // bit 4
22328 #define WPUB5 WPUBbits.WPUB5 // bit 5
22329 #define WPUB6 WPUBbits.WPUB6 // bit 6
22330 #define WPUB7 WPUBbits.WPUB7 // bit 7
22332 #define WPUC0 WPUCbits.WPUC0 // bit 0
22333 #define WPUC1 WPUCbits.WPUC1 // bit 1
22334 #define WPUC2 WPUCbits.WPUC2 // bit 2
22335 #define WPUC3 WPUCbits.WPUC3 // bit 3
22336 #define WPUC4 WPUCbits.WPUC4 // bit 4
22337 #define WPUC5 WPUCbits.WPUC5 // bit 5
22338 #define WPUC6 WPUCbits.WPUC6 // bit 6
22339 #define WPUC7 WPUCbits.WPUC7 // bit 7
22341 #define WPUE3 WPUEbits.WPUE3 // bit 3
22343 #define ZCD1INTN ZCD1CONbits.ZCD1INTN // bit 0
22344 #define ZCD1INTP ZCD1CONbits.ZCD1INTP // bit 1
22345 #define ZCD1POL ZCD1CONbits.ZCD1POL // bit 4
22346 #define ZCD1OUT ZCD1CONbits.ZCD1OUT // bit 5
22347 #define ZCD1EN ZCD1CONbits.ZCD1EN // bit 7
22349 #endif // #ifndef NO_BIT_DEFINES
22351 #endif // #ifndef __PIC16LF1773_H__