struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16lf1778.h
blob2e1b21a6c5346aa339d1595f21135784ec4f2971
1 /*
2 * This declarations of the PIC16LF1778 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:16 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 __PIC16LF1778_H__
26 #define __PIC16LF1778_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 TMR1CS : 2;
1107 struct
1109 unsigned : 6;
1110 unsigned CS : 2;
1113 struct
1115 unsigned : 6;
1116 unsigned T1CS : 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 CKPS : 2;
1287 unsigned : 2;
1290 struct
1292 unsigned : 4;
1293 unsigned T3CKPS : 2;
1294 unsigned : 2;
1297 struct
1299 unsigned : 6;
1300 unsigned CS : 2;
1303 struct
1305 unsigned : 6;
1306 unsigned TMR3CS : 2;
1309 struct
1311 unsigned : 6;
1312 unsigned T3CS : 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 C2PCH : 4;
2521 unsigned : 4;
2524 struct
2526 unsigned PCH : 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 C3PCH : 4;
2709 unsigned : 4;
2712 struct
2714 unsigned PCH : 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 MD3CH : 4;
4252 unsigned : 4;
4255 struct
4257 unsigned CH : 5;
4258 unsigned : 3;
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 CCP1CTS : 4;
4480 unsigned : 4;
4483 struct
4485 unsigned CTS : 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 CTS : 4;
4605 unsigned : 4;
4608 struct
4610 unsigned CCP2CTS : 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 P4TSEL1 : 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 : 2;
4834 unsigned P4TSEL : 2;
4835 unsigned : 4;
4838 struct
4840 unsigned : 4;
4841 unsigned P9TSEL : 2;
4842 unsigned : 2;
4844 } __CCPTMRS2bits_t;
4846 extern __at(0x029F) volatile __CCPTMRS2bits_t CCPTMRS2bits;
4848 #define _P3TSEL0 0x01
4849 #define _P3TSEL1 0x02
4850 #define _P4TSEL0 0x04
4851 #define _P4TSEL1 0x08
4852 #define _P9TSEL0 0x10
4853 #define _P9TSEL1 0x20
4855 //==============================================================================
4858 //==============================================================================
4859 // SLRCONA Bits
4861 extern __at(0x030C) __sfr SLRCONA;
4863 typedef struct
4865 unsigned SLRA0 : 1;
4866 unsigned SLRA1 : 1;
4867 unsigned SLRA2 : 1;
4868 unsigned SLRA3 : 1;
4869 unsigned SLRA4 : 1;
4870 unsigned SLRA5 : 1;
4871 unsigned SLRA6 : 1;
4872 unsigned SLRA7 : 1;
4873 } __SLRCONAbits_t;
4875 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
4877 #define _SLRA0 0x01
4878 #define _SLRA1 0x02
4879 #define _SLRA2 0x04
4880 #define _SLRA3 0x08
4881 #define _SLRA4 0x10
4882 #define _SLRA5 0x20
4883 #define _SLRA6 0x40
4884 #define _SLRA7 0x80
4886 //==============================================================================
4889 //==============================================================================
4890 // SLRCONB Bits
4892 extern __at(0x030D) __sfr SLRCONB;
4894 typedef struct
4896 unsigned SLRB0 : 1;
4897 unsigned SLRB1 : 1;
4898 unsigned SLRB2 : 1;
4899 unsigned SLRB3 : 1;
4900 unsigned SLRB4 : 1;
4901 unsigned SLRB5 : 1;
4902 unsigned SLRB6 : 1;
4903 unsigned SLRB7 : 1;
4904 } __SLRCONBbits_t;
4906 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
4908 #define _SLRB0 0x01
4909 #define _SLRB1 0x02
4910 #define _SLRB2 0x04
4911 #define _SLRB3 0x08
4912 #define _SLRB4 0x10
4913 #define _SLRB5 0x20
4914 #define _SLRB6 0x40
4915 #define _SLRB7 0x80
4917 //==============================================================================
4920 //==============================================================================
4921 // SLRCONC Bits
4923 extern __at(0x030E) __sfr SLRCONC;
4925 typedef struct
4927 unsigned SLRC0 : 1;
4928 unsigned SLRC1 : 1;
4929 unsigned SLRC2 : 1;
4930 unsigned SLRC3 : 1;
4931 unsigned SLRC4 : 1;
4932 unsigned SLRC5 : 1;
4933 unsigned SLRC6 : 1;
4934 unsigned SLRC7 : 1;
4935 } __SLRCONCbits_t;
4937 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
4939 #define _SLRC0 0x01
4940 #define _SLRC1 0x02
4941 #define _SLRC2 0x04
4942 #define _SLRC3 0x08
4943 #define _SLRC4 0x10
4944 #define _SLRC5 0x20
4945 #define _SLRC6 0x40
4946 #define _SLRC7 0x80
4948 //==============================================================================
4951 //==============================================================================
4952 // MD1CON0 Bits
4954 extern __at(0x0315) __sfr MD1CON0;
4956 typedef union
4958 struct
4960 unsigned BIT : 1;
4961 unsigned : 1;
4962 unsigned : 1;
4963 unsigned : 1;
4964 unsigned OPOL : 1;
4965 unsigned OUT : 1;
4966 unsigned : 1;
4967 unsigned EN : 1;
4970 struct
4972 unsigned MD1BIT : 1;
4973 unsigned : 1;
4974 unsigned : 1;
4975 unsigned : 1;
4976 unsigned MD1OPOL : 1;
4977 unsigned MD1OUT : 1;
4978 unsigned : 1;
4979 unsigned MD1EN : 1;
4981 } __MD1CON0bits_t;
4983 extern __at(0x0315) volatile __MD1CON0bits_t MD1CON0bits;
4985 #define _MD1CON0_BIT 0x01
4986 #define _MD1CON0_MD1BIT 0x01
4987 #define _MD1CON0_OPOL 0x10
4988 #define _MD1CON0_MD1OPOL 0x10
4989 #define _MD1CON0_OUT 0x20
4990 #define _MD1CON0_MD1OUT 0x20
4991 #define _MD1CON0_EN 0x80
4992 #define _MD1CON0_MD1EN 0x80
4994 //==============================================================================
4997 //==============================================================================
4998 // MD1CON1 Bits
5000 extern __at(0x0316) __sfr MD1CON1;
5002 typedef union
5004 struct
5006 unsigned CLSYNC : 1;
5007 unsigned CLPOL : 1;
5008 unsigned : 1;
5009 unsigned : 1;
5010 unsigned CHSYNC : 1;
5011 unsigned CHPOL : 1;
5012 unsigned : 1;
5013 unsigned : 1;
5016 struct
5018 unsigned MD1CLSYNC : 1;
5019 unsigned MD1CLPOL : 1;
5020 unsigned : 1;
5021 unsigned : 1;
5022 unsigned MD1CHSYNC : 1;
5023 unsigned MD1CHPOL : 1;
5024 unsigned : 1;
5025 unsigned : 1;
5027 } __MD1CON1bits_t;
5029 extern __at(0x0316) volatile __MD1CON1bits_t MD1CON1bits;
5031 #define _CLSYNC 0x01
5032 #define _MD1CLSYNC 0x01
5033 #define _CLPOL 0x02
5034 #define _MD1CLPOL 0x02
5035 #define _CHSYNC 0x10
5036 #define _MD1CHSYNC 0x10
5037 #define _CHPOL 0x20
5038 #define _MD1CHPOL 0x20
5040 //==============================================================================
5043 //==============================================================================
5044 // MD1SRC Bits
5046 extern __at(0x0317) __sfr MD1SRC;
5048 typedef union
5050 struct
5052 unsigned MS0 : 1;
5053 unsigned MS1 : 1;
5054 unsigned MS2 : 1;
5055 unsigned MS3 : 1;
5056 unsigned MS4 : 1;
5057 unsigned : 1;
5058 unsigned : 1;
5059 unsigned : 1;
5062 struct
5064 unsigned MD1MS0 : 1;
5065 unsigned MD1MS1 : 1;
5066 unsigned MD1MS2 : 1;
5067 unsigned MD1MS3 : 1;
5068 unsigned MD1MS4 : 1;
5069 unsigned : 1;
5070 unsigned : 1;
5071 unsigned : 1;
5074 struct
5076 unsigned MS : 5;
5077 unsigned : 3;
5080 struct
5082 unsigned MD1MS : 5;
5083 unsigned : 3;
5085 } __MD1SRCbits_t;
5087 extern __at(0x0317) volatile __MD1SRCbits_t MD1SRCbits;
5089 #define _MS0 0x01
5090 #define _MD1MS0 0x01
5091 #define _MS1 0x02
5092 #define _MD1MS1 0x02
5093 #define _MS2 0x04
5094 #define _MD1MS2 0x04
5095 #define _MS3 0x08
5096 #define _MD1MS3 0x08
5097 #define _MS4 0x10
5098 #define _MD1MS4 0x10
5100 //==============================================================================
5103 //==============================================================================
5104 // MD1CARL Bits
5106 extern __at(0x0318) __sfr MD1CARL;
5108 typedef union
5110 struct
5112 unsigned CL0 : 1;
5113 unsigned CL1 : 1;
5114 unsigned CL2 : 1;
5115 unsigned CL3 : 1;
5116 unsigned CL4 : 1;
5117 unsigned : 1;
5118 unsigned : 1;
5119 unsigned : 1;
5122 struct
5124 unsigned MD1CL0 : 1;
5125 unsigned MD1CL1 : 1;
5126 unsigned MD1CL2 : 1;
5127 unsigned MD1CL3 : 1;
5128 unsigned : 1;
5129 unsigned : 1;
5130 unsigned : 1;
5131 unsigned : 1;
5134 struct
5136 unsigned MD1CL : 4;
5137 unsigned : 4;
5140 struct
5142 unsigned CL : 5;
5143 unsigned : 3;
5145 } __MD1CARLbits_t;
5147 extern __at(0x0318) volatile __MD1CARLbits_t MD1CARLbits;
5149 #define _CL0 0x01
5150 #define _MD1CL0 0x01
5151 #define _CL1 0x02
5152 #define _MD1CL1 0x02
5153 #define _CL2 0x04
5154 #define _MD1CL2 0x04
5155 #define _CL3 0x08
5156 #define _MD1CL3 0x08
5157 #define _CL4 0x10
5159 //==============================================================================
5162 //==============================================================================
5163 // MD1CARH Bits
5165 extern __at(0x0319) __sfr MD1CARH;
5167 typedef union
5169 struct
5171 unsigned CH0 : 1;
5172 unsigned CH1 : 1;
5173 unsigned CH2 : 1;
5174 unsigned CH3 : 1;
5175 unsigned CH4 : 1;
5176 unsigned : 1;
5177 unsigned : 1;
5178 unsigned : 1;
5181 struct
5183 unsigned MD1CH0 : 1;
5184 unsigned MD1CH1 : 1;
5185 unsigned MD1CH2 : 1;
5186 unsigned MD1CH3 : 1;
5187 unsigned : 1;
5188 unsigned : 1;
5189 unsigned : 1;
5190 unsigned : 1;
5193 struct
5195 unsigned CH : 5;
5196 unsigned : 3;
5199 struct
5201 unsigned MD1CH : 4;
5202 unsigned : 4;
5204 } __MD1CARHbits_t;
5206 extern __at(0x0319) volatile __MD1CARHbits_t MD1CARHbits;
5208 #define _CH0 0x01
5209 #define _MD1CH0 0x01
5210 #define _CH1 0x02
5211 #define _MD1CH1 0x02
5212 #define _CH2 0x04
5213 #define _MD1CH2 0x04
5214 #define _CH3 0x08
5215 #define _MD1CH3 0x08
5216 #define _CH4 0x10
5218 //==============================================================================
5221 //==============================================================================
5222 // MD2CON0 Bits
5224 extern __at(0x031B) __sfr MD2CON0;
5226 typedef union
5228 struct
5230 unsigned BIT : 1;
5231 unsigned : 1;
5232 unsigned : 1;
5233 unsigned : 1;
5234 unsigned OPOL : 1;
5235 unsigned OUT : 1;
5236 unsigned : 1;
5237 unsigned EN : 1;
5240 struct
5242 unsigned MD2BIT : 1;
5243 unsigned : 1;
5244 unsigned : 1;
5245 unsigned : 1;
5246 unsigned MD2OPOL : 1;
5247 unsigned MD2OUT : 1;
5248 unsigned : 1;
5249 unsigned MD2EN : 1;
5251 } __MD2CON0bits_t;
5253 extern __at(0x031B) volatile __MD2CON0bits_t MD2CON0bits;
5255 #define _MD2CON0_BIT 0x01
5256 #define _MD2CON0_MD2BIT 0x01
5257 #define _MD2CON0_OPOL 0x10
5258 #define _MD2CON0_MD2OPOL 0x10
5259 #define _MD2CON0_OUT 0x20
5260 #define _MD2CON0_MD2OUT 0x20
5261 #define _MD2CON0_EN 0x80
5262 #define _MD2CON0_MD2EN 0x80
5264 //==============================================================================
5267 //==============================================================================
5268 // MD2CON1 Bits
5270 extern __at(0x031C) __sfr MD2CON1;
5272 typedef union
5274 struct
5276 unsigned CLSYNC : 1;
5277 unsigned CLPOL : 1;
5278 unsigned : 1;
5279 unsigned : 1;
5280 unsigned CHSYNC : 1;
5281 unsigned CHPOL : 1;
5282 unsigned : 1;
5283 unsigned : 1;
5286 struct
5288 unsigned MD2CLSYNC : 1;
5289 unsigned MD2CLPOL : 1;
5290 unsigned : 1;
5291 unsigned : 1;
5292 unsigned MD2CHSYNC : 1;
5293 unsigned MD2CHPOL : 1;
5294 unsigned : 1;
5295 unsigned : 1;
5297 } __MD2CON1bits_t;
5299 extern __at(0x031C) volatile __MD2CON1bits_t MD2CON1bits;
5301 #define _MD2CON1_CLSYNC 0x01
5302 #define _MD2CON1_MD2CLSYNC 0x01
5303 #define _MD2CON1_CLPOL 0x02
5304 #define _MD2CON1_MD2CLPOL 0x02
5305 #define _MD2CON1_CHSYNC 0x10
5306 #define _MD2CON1_MD2CHSYNC 0x10
5307 #define _MD2CON1_CHPOL 0x20
5308 #define _MD2CON1_MD2CHPOL 0x20
5310 //==============================================================================
5313 //==============================================================================
5314 // MD2SRC Bits
5316 extern __at(0x031D) __sfr MD2SRC;
5318 typedef union
5320 struct
5322 unsigned MS0 : 1;
5323 unsigned MS1 : 1;
5324 unsigned MS2 : 1;
5325 unsigned MS3 : 1;
5326 unsigned MS4 : 1;
5327 unsigned : 1;
5328 unsigned : 1;
5329 unsigned : 1;
5332 struct
5334 unsigned MD2MS0 : 1;
5335 unsigned MD2MS1 : 1;
5336 unsigned MD2MS2 : 1;
5337 unsigned MD2MS3 : 1;
5338 unsigned MD2MS4 : 1;
5339 unsigned : 1;
5340 unsigned : 1;
5341 unsigned : 1;
5344 struct
5346 unsigned MS : 5;
5347 unsigned : 3;
5350 struct
5352 unsigned MD2MS : 5;
5353 unsigned : 3;
5355 } __MD2SRCbits_t;
5357 extern __at(0x031D) volatile __MD2SRCbits_t MD2SRCbits;
5359 #define _MD2SRC_MS0 0x01
5360 #define _MD2SRC_MD2MS0 0x01
5361 #define _MD2SRC_MS1 0x02
5362 #define _MD2SRC_MD2MS1 0x02
5363 #define _MD2SRC_MS2 0x04
5364 #define _MD2SRC_MD2MS2 0x04
5365 #define _MD2SRC_MS3 0x08
5366 #define _MD2SRC_MD2MS3 0x08
5367 #define _MD2SRC_MS4 0x10
5368 #define _MD2SRC_MD2MS4 0x10
5370 //==============================================================================
5373 //==============================================================================
5374 // MD2CARL Bits
5376 extern __at(0x031E) __sfr MD2CARL;
5378 typedef union
5380 struct
5382 unsigned CL0 : 1;
5383 unsigned CL1 : 1;
5384 unsigned CL2 : 1;
5385 unsigned CL3 : 1;
5386 unsigned CL4 : 1;
5387 unsigned : 1;
5388 unsigned : 1;
5389 unsigned : 1;
5392 struct
5394 unsigned MD2CL0 : 1;
5395 unsigned MD2CL1 : 1;
5396 unsigned MD2CL2 : 1;
5397 unsigned MD2CL3 : 1;
5398 unsigned : 1;
5399 unsigned : 1;
5400 unsigned : 1;
5401 unsigned : 1;
5404 struct
5406 unsigned MD2CL : 4;
5407 unsigned : 4;
5410 struct
5412 unsigned CL : 5;
5413 unsigned : 3;
5415 } __MD2CARLbits_t;
5417 extern __at(0x031E) volatile __MD2CARLbits_t MD2CARLbits;
5419 #define _MD2CARL_CL0 0x01
5420 #define _MD2CARL_MD2CL0 0x01
5421 #define _MD2CARL_CL1 0x02
5422 #define _MD2CARL_MD2CL1 0x02
5423 #define _MD2CARL_CL2 0x04
5424 #define _MD2CARL_MD2CL2 0x04
5425 #define _MD2CARL_CL3 0x08
5426 #define _MD2CARL_MD2CL3 0x08
5427 #define _MD2CARL_CL4 0x10
5429 //==============================================================================
5432 //==============================================================================
5433 // MD2CARH Bits
5435 extern __at(0x031F) __sfr MD2CARH;
5437 typedef union
5439 struct
5441 unsigned CH0 : 1;
5442 unsigned CH1 : 1;
5443 unsigned CH2 : 1;
5444 unsigned CH3 : 1;
5445 unsigned CH4 : 1;
5446 unsigned : 1;
5447 unsigned : 1;
5448 unsigned : 1;
5451 struct
5453 unsigned MD2CH0 : 1;
5454 unsigned MD2CH1 : 1;
5455 unsigned MD2CH2 : 1;
5456 unsigned MD2CH3 : 1;
5457 unsigned : 1;
5458 unsigned : 1;
5459 unsigned : 1;
5460 unsigned : 1;
5463 struct
5465 unsigned MD2CH : 4;
5466 unsigned : 4;
5469 struct
5471 unsigned CH : 5;
5472 unsigned : 3;
5474 } __MD2CARHbits_t;
5476 extern __at(0x031F) volatile __MD2CARHbits_t MD2CARHbits;
5478 #define _MD2CARH_CH0 0x01
5479 #define _MD2CARH_MD2CH0 0x01
5480 #define _MD2CARH_CH1 0x02
5481 #define _MD2CARH_MD2CH1 0x02
5482 #define _MD2CARH_CH2 0x04
5483 #define _MD2CARH_MD2CH2 0x04
5484 #define _MD2CARH_CH3 0x08
5485 #define _MD2CARH_MD2CH3 0x08
5486 #define _MD2CARH_CH4 0x10
5488 //==============================================================================
5491 //==============================================================================
5492 // INLVLA Bits
5494 extern __at(0x038C) __sfr INLVLA;
5496 typedef union
5498 struct
5500 unsigned INLVLA0 : 1;
5501 unsigned INLVLA1 : 1;
5502 unsigned INLVLA2 : 1;
5503 unsigned INLVLA3 : 1;
5504 unsigned INLVLA4 : 1;
5505 unsigned INLVLA5 : 1;
5506 unsigned INLVA6 : 1;
5507 unsigned INLVA7 : 1;
5510 struct
5512 unsigned INLVLA : 6;
5513 unsigned : 2;
5515 } __INLVLAbits_t;
5517 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
5519 #define _INLVLA0 0x01
5520 #define _INLVLA1 0x02
5521 #define _INLVLA2 0x04
5522 #define _INLVLA3 0x08
5523 #define _INLVLA4 0x10
5524 #define _INLVLA5 0x20
5525 #define _INLVA6 0x40
5526 #define _INLVA7 0x80
5528 //==============================================================================
5531 //==============================================================================
5532 // INLVLB Bits
5534 extern __at(0x038D) __sfr INLVLB;
5536 typedef union
5538 struct
5540 unsigned INLVB0 : 1;
5541 unsigned INLVB1 : 1;
5542 unsigned INLVB2 : 1;
5543 unsigned INLVB3 : 1;
5544 unsigned INLVLB4 : 1;
5545 unsigned INLVLB5 : 1;
5546 unsigned INLVLB6 : 1;
5547 unsigned INLVLB7 : 1;
5550 struct
5552 unsigned INLVB : 4;
5553 unsigned : 4;
5555 } __INLVLBbits_t;
5557 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
5559 #define _INLVB0 0x01
5560 #define _INLVB1 0x02
5561 #define _INLVB2 0x04
5562 #define _INLVB3 0x08
5563 #define _INLVLB4 0x10
5564 #define _INLVLB5 0x20
5565 #define _INLVLB6 0x40
5566 #define _INLVLB7 0x80
5568 //==============================================================================
5571 //==============================================================================
5572 // INLVLC Bits
5574 extern __at(0x038E) __sfr INLVLC;
5576 typedef struct
5578 unsigned INLVLC0 : 1;
5579 unsigned INLVLC1 : 1;
5580 unsigned INLVLC2 : 1;
5581 unsigned INLVLC3 : 1;
5582 unsigned INLVLC4 : 1;
5583 unsigned INLVLC5 : 1;
5584 unsigned INLVLC6 : 1;
5585 unsigned INLVLC7 : 1;
5586 } __INLVLCbits_t;
5588 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
5590 #define _INLVLC0 0x01
5591 #define _INLVLC1 0x02
5592 #define _INLVLC2 0x04
5593 #define _INLVLC3 0x08
5594 #define _INLVLC4 0x10
5595 #define _INLVLC5 0x20
5596 #define _INLVLC6 0x40
5597 #define _INLVLC7 0x80
5599 //==============================================================================
5602 //==============================================================================
5603 // INLVE Bits
5605 extern __at(0x0390) __sfr INLVE;
5607 typedef struct
5609 unsigned : 1;
5610 unsigned : 1;
5611 unsigned : 1;
5612 unsigned INLVE3 : 1;
5613 unsigned : 1;
5614 unsigned : 1;
5615 unsigned : 1;
5616 unsigned : 1;
5617 } __INLVEbits_t;
5619 extern __at(0x0390) volatile __INLVEbits_t INLVEbits;
5621 #define _INLVE3 0x08
5623 //==============================================================================
5626 //==============================================================================
5627 // IOCAP Bits
5629 extern __at(0x0391) __sfr IOCAP;
5631 typedef struct
5633 unsigned IOCAP0 : 1;
5634 unsigned IOCAP1 : 1;
5635 unsigned IOCAP2 : 1;
5636 unsigned IOCAP3 : 1;
5637 unsigned IOCAP4 : 1;
5638 unsigned IOCAP5 : 1;
5639 unsigned IOCAP6 : 1;
5640 unsigned IOCAP7 : 1;
5641 } __IOCAPbits_t;
5643 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
5645 #define _IOCAP0 0x01
5646 #define _IOCAP1 0x02
5647 #define _IOCAP2 0x04
5648 #define _IOCAP3 0x08
5649 #define _IOCAP4 0x10
5650 #define _IOCAP5 0x20
5651 #define _IOCAP6 0x40
5652 #define _IOCAP7 0x80
5654 //==============================================================================
5657 //==============================================================================
5658 // IOCAN Bits
5660 extern __at(0x0392) __sfr IOCAN;
5662 typedef struct
5664 unsigned IOCAN0 : 1;
5665 unsigned IOCAN1 : 1;
5666 unsigned IOCAN2 : 1;
5667 unsigned IOCAN3 : 1;
5668 unsigned IOCAN4 : 1;
5669 unsigned IOCAN5 : 1;
5670 unsigned IOCAN6 : 1;
5671 unsigned IOCAN7 : 1;
5672 } __IOCANbits_t;
5674 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
5676 #define _IOCAN0 0x01
5677 #define _IOCAN1 0x02
5678 #define _IOCAN2 0x04
5679 #define _IOCAN3 0x08
5680 #define _IOCAN4 0x10
5681 #define _IOCAN5 0x20
5682 #define _IOCAN6 0x40
5683 #define _IOCAN7 0x80
5685 //==============================================================================
5688 //==============================================================================
5689 // IOCAF Bits
5691 extern __at(0x0393) __sfr IOCAF;
5693 typedef struct
5695 unsigned IOCAF0 : 1;
5696 unsigned IOCAF1 : 1;
5697 unsigned IOCAF2 : 1;
5698 unsigned IOCAF3 : 1;
5699 unsigned IOCAF4 : 1;
5700 unsigned IOCAF5 : 1;
5701 unsigned IOCAF6 : 1;
5702 unsigned IOCAF7 : 1;
5703 } __IOCAFbits_t;
5705 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
5707 #define _IOCAF0 0x01
5708 #define _IOCAF1 0x02
5709 #define _IOCAF2 0x04
5710 #define _IOCAF3 0x08
5711 #define _IOCAF4 0x10
5712 #define _IOCAF5 0x20
5713 #define _IOCAF6 0x40
5714 #define _IOCAF7 0x80
5716 //==============================================================================
5719 //==============================================================================
5720 // IOCBP Bits
5722 extern __at(0x0394) __sfr IOCBP;
5724 typedef struct
5726 unsigned IOCBP0 : 1;
5727 unsigned IOCBP1 : 1;
5728 unsigned IOCBP2 : 1;
5729 unsigned IOCBP3 : 1;
5730 unsigned IOCBP4 : 1;
5731 unsigned IOCBP5 : 1;
5732 unsigned IOCBP6 : 1;
5733 unsigned IOCBP7 : 1;
5734 } __IOCBPbits_t;
5736 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
5738 #define _IOCBP0 0x01
5739 #define _IOCBP1 0x02
5740 #define _IOCBP2 0x04
5741 #define _IOCBP3 0x08
5742 #define _IOCBP4 0x10
5743 #define _IOCBP5 0x20
5744 #define _IOCBP6 0x40
5745 #define _IOCBP7 0x80
5747 //==============================================================================
5750 //==============================================================================
5751 // IOCBN Bits
5753 extern __at(0x0395) __sfr IOCBN;
5755 typedef struct
5757 unsigned IOCBN0 : 1;
5758 unsigned IOCBN1 : 1;
5759 unsigned IOCBN2 : 1;
5760 unsigned IOCBN3 : 1;
5761 unsigned IOCBN4 : 1;
5762 unsigned IOCBN5 : 1;
5763 unsigned IOCBN6 : 1;
5764 unsigned IOCBN7 : 1;
5765 } __IOCBNbits_t;
5767 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
5769 #define _IOCBN0 0x01
5770 #define _IOCBN1 0x02
5771 #define _IOCBN2 0x04
5772 #define _IOCBN3 0x08
5773 #define _IOCBN4 0x10
5774 #define _IOCBN5 0x20
5775 #define _IOCBN6 0x40
5776 #define _IOCBN7 0x80
5778 //==============================================================================
5781 //==============================================================================
5782 // IOCBF Bits
5784 extern __at(0x0396) __sfr IOCBF;
5786 typedef struct
5788 unsigned IOCBF0 : 1;
5789 unsigned IOCBF1 : 1;
5790 unsigned IOCBF2 : 1;
5791 unsigned IOCBF3 : 1;
5792 unsigned IOCBF4 : 1;
5793 unsigned IOCBF5 : 1;
5794 unsigned IOCBF6 : 1;
5795 unsigned IOCBF7 : 1;
5796 } __IOCBFbits_t;
5798 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
5800 #define _IOCBF0 0x01
5801 #define _IOCBF1 0x02
5802 #define _IOCBF2 0x04
5803 #define _IOCBF3 0x08
5804 #define _IOCBF4 0x10
5805 #define _IOCBF5 0x20
5806 #define _IOCBF6 0x40
5807 #define _IOCBF7 0x80
5809 //==============================================================================
5812 //==============================================================================
5813 // IOCCP Bits
5815 extern __at(0x0397) __sfr IOCCP;
5817 typedef struct
5819 unsigned IOCCP0 : 1;
5820 unsigned IOCCP1 : 1;
5821 unsigned IOCCP2 : 1;
5822 unsigned IOCCP3 : 1;
5823 unsigned IOCCP4 : 1;
5824 unsigned IOCCP5 : 1;
5825 unsigned IOCCP6 : 1;
5826 unsigned IOCCP7 : 1;
5827 } __IOCCPbits_t;
5829 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
5831 #define _IOCCP0 0x01
5832 #define _IOCCP1 0x02
5833 #define _IOCCP2 0x04
5834 #define _IOCCP3 0x08
5835 #define _IOCCP4 0x10
5836 #define _IOCCP5 0x20
5837 #define _IOCCP6 0x40
5838 #define _IOCCP7 0x80
5840 //==============================================================================
5843 //==============================================================================
5844 // IOCCN Bits
5846 extern __at(0x0398) __sfr IOCCN;
5848 typedef struct
5850 unsigned IOCCN0 : 1;
5851 unsigned IOCCN1 : 1;
5852 unsigned IOCCN2 : 1;
5853 unsigned IOCCN3 : 1;
5854 unsigned IOCCN4 : 1;
5855 unsigned IOCCN5 : 1;
5856 unsigned IOCCN6 : 1;
5857 unsigned IOCCN7 : 1;
5858 } __IOCCNbits_t;
5860 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
5862 #define _IOCCN0 0x01
5863 #define _IOCCN1 0x02
5864 #define _IOCCN2 0x04
5865 #define _IOCCN3 0x08
5866 #define _IOCCN4 0x10
5867 #define _IOCCN5 0x20
5868 #define _IOCCN6 0x40
5869 #define _IOCCN7 0x80
5871 //==============================================================================
5874 //==============================================================================
5875 // IOCCF Bits
5877 extern __at(0x0399) __sfr IOCCF;
5879 typedef struct
5881 unsigned IOCCF0 : 1;
5882 unsigned IOCCF1 : 1;
5883 unsigned IOCCF2 : 1;
5884 unsigned IOCCF3 : 1;
5885 unsigned IOCCF4 : 1;
5886 unsigned IOCCF5 : 1;
5887 unsigned IOCCF6 : 1;
5888 unsigned IOCCF7 : 1;
5889 } __IOCCFbits_t;
5891 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
5893 #define _IOCCF0 0x01
5894 #define _IOCCF1 0x02
5895 #define _IOCCF2 0x04
5896 #define _IOCCF3 0x08
5897 #define _IOCCF4 0x10
5898 #define _IOCCF5 0x20
5899 #define _IOCCF6 0x40
5900 #define _IOCCF7 0x80
5902 //==============================================================================
5905 //==============================================================================
5906 // IOCEP Bits
5908 extern __at(0x039D) __sfr IOCEP;
5910 typedef struct
5912 unsigned : 1;
5913 unsigned : 1;
5914 unsigned : 1;
5915 unsigned IOCEP3 : 1;
5916 unsigned : 1;
5917 unsigned : 1;
5918 unsigned : 1;
5919 unsigned : 1;
5920 } __IOCEPbits_t;
5922 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits;
5924 #define _IOCEP3 0x08
5926 //==============================================================================
5929 //==============================================================================
5930 // IOCEN Bits
5932 extern __at(0x039E) __sfr IOCEN;
5934 typedef struct
5936 unsigned : 1;
5937 unsigned : 1;
5938 unsigned : 1;
5939 unsigned IOCEN3 : 1;
5940 unsigned : 1;
5941 unsigned : 1;
5942 unsigned : 1;
5943 unsigned : 1;
5944 } __IOCENbits_t;
5946 extern __at(0x039E) volatile __IOCENbits_t IOCENbits;
5948 #define _IOCEN3 0x08
5950 //==============================================================================
5953 //==============================================================================
5954 // IOCEF Bits
5956 extern __at(0x039F) __sfr IOCEF;
5958 typedef struct
5960 unsigned : 1;
5961 unsigned : 1;
5962 unsigned : 1;
5963 unsigned IOCEF3 : 1;
5964 unsigned : 1;
5965 unsigned : 1;
5966 unsigned : 1;
5967 unsigned : 1;
5968 } __IOCEFbits_t;
5970 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits;
5972 #define _IOCEF3 0x08
5974 //==============================================================================
5977 //==============================================================================
5978 // HIDRVB Bits
5980 extern __at(0x040D) __sfr HIDRVB;
5982 typedef union
5984 struct
5986 unsigned HIDB0 : 1;
5987 unsigned HIDB1 : 1;
5988 unsigned : 1;
5989 unsigned : 1;
5990 unsigned : 1;
5991 unsigned : 1;
5992 unsigned : 1;
5993 unsigned : 1;
5996 struct
5998 unsigned HIDB : 2;
5999 unsigned : 6;
6001 } __HIDRVBbits_t;
6003 extern __at(0x040D) volatile __HIDRVBbits_t HIDRVBbits;
6005 #define _HIDB0 0x01
6006 #define _HIDB1 0x02
6008 //==============================================================================
6010 extern __at(0x040F) __sfr TMR5;
6011 extern __at(0x040F) __sfr TMR5L;
6012 extern __at(0x0410) __sfr TMR5H;
6014 //==============================================================================
6015 // T5CON Bits
6017 extern __at(0x0411) __sfr T5CON;
6019 typedef union
6021 struct
6023 unsigned ON : 1;
6024 unsigned : 1;
6025 unsigned NOT_SYNC : 1;
6026 unsigned OSCEN : 1;
6027 unsigned CKPS0 : 1;
6028 unsigned CKPS1 : 1;
6029 unsigned CS0 : 1;
6030 unsigned CS1 : 1;
6033 struct
6035 unsigned TMRON : 1;
6036 unsigned : 1;
6037 unsigned SYNC : 1;
6038 unsigned SOSCEN : 1;
6039 unsigned T5CKPS0 : 1;
6040 unsigned T5CKPS1 : 1;
6041 unsigned T5CS0 : 1;
6042 unsigned T5CS1 : 1;
6045 struct
6047 unsigned TMR5ON : 1;
6048 unsigned : 1;
6049 unsigned NOT_T5SYNC : 1;
6050 unsigned T5OSCEN : 1;
6051 unsigned : 1;
6052 unsigned : 1;
6053 unsigned TMR5CS0 : 1;
6054 unsigned TMR5CS1 : 1;
6057 struct
6059 unsigned T5ON : 1;
6060 unsigned : 1;
6061 unsigned : 1;
6062 unsigned : 1;
6063 unsigned : 1;
6064 unsigned : 1;
6065 unsigned : 1;
6066 unsigned : 1;
6069 struct
6071 unsigned : 4;
6072 unsigned CKPS : 2;
6073 unsigned : 2;
6076 struct
6078 unsigned : 4;
6079 unsigned T5CKPS : 2;
6080 unsigned : 2;
6083 struct
6085 unsigned : 6;
6086 unsigned TMR5CS : 2;
6089 struct
6091 unsigned : 6;
6092 unsigned CS : 2;
6095 struct
6097 unsigned : 6;
6098 unsigned T5CS : 2;
6100 } __T5CONbits_t;
6102 extern __at(0x0411) volatile __T5CONbits_t T5CONbits;
6104 #define _T5CON_ON 0x01
6105 #define _T5CON_TMRON 0x01
6106 #define _T5CON_TMR5ON 0x01
6107 #define _T5CON_T5ON 0x01
6108 #define _T5CON_NOT_SYNC 0x04
6109 #define _T5CON_SYNC 0x04
6110 #define _T5CON_NOT_T5SYNC 0x04
6111 #define _T5CON_OSCEN 0x08
6112 #define _T5CON_SOSCEN 0x08
6113 #define _T5CON_T5OSCEN 0x08
6114 #define _T5CON_CKPS0 0x10
6115 #define _T5CON_T5CKPS0 0x10
6116 #define _T5CON_CKPS1 0x20
6117 #define _T5CON_T5CKPS1 0x20
6118 #define _T5CON_CS0 0x40
6119 #define _T5CON_T5CS0 0x40
6120 #define _T5CON_TMR5CS0 0x40
6121 #define _T5CON_CS1 0x80
6122 #define _T5CON_T5CS1 0x80
6123 #define _T5CON_TMR5CS1 0x80
6125 //==============================================================================
6128 //==============================================================================
6129 // T5GCON Bits
6131 extern __at(0x0412) __sfr T5GCON;
6133 typedef union
6135 struct
6137 unsigned GSS0 : 1;
6138 unsigned GSS1 : 1;
6139 unsigned GVAL : 1;
6140 unsigned GGO_NOT_DONE : 1;
6141 unsigned GSPM : 1;
6142 unsigned GTM : 1;
6143 unsigned GPOL : 1;
6144 unsigned GE : 1;
6147 struct
6149 unsigned T5GSS0 : 1;
6150 unsigned T5GSS1 : 1;
6151 unsigned T5GVAL : 1;
6152 unsigned T5GGO_NOT_DONE : 1;
6153 unsigned T5GSPM : 1;
6154 unsigned T5GTM : 1;
6155 unsigned T5GPOL : 1;
6156 unsigned T5GE : 1;
6159 struct
6161 unsigned : 1;
6162 unsigned : 1;
6163 unsigned : 1;
6164 unsigned : 1;
6165 unsigned : 1;
6166 unsigned : 1;
6167 unsigned : 1;
6168 unsigned TMR5GE : 1;
6171 struct
6173 unsigned T5GSS : 2;
6174 unsigned : 6;
6177 struct
6179 unsigned GSS : 2;
6180 unsigned : 6;
6182 } __T5GCONbits_t;
6184 extern __at(0x0412) volatile __T5GCONbits_t T5GCONbits;
6186 #define _T5GCON_GSS0 0x01
6187 #define _T5GCON_T5GSS0 0x01
6188 #define _T5GCON_GSS1 0x02
6189 #define _T5GCON_T5GSS1 0x02
6190 #define _T5GCON_GVAL 0x04
6191 #define _T5GCON_T5GVAL 0x04
6192 #define _T5GCON_GGO_NOT_DONE 0x08
6193 #define _T5GCON_T5GGO_NOT_DONE 0x08
6194 #define _T5GCON_GSPM 0x10
6195 #define _T5GCON_T5GSPM 0x10
6196 #define _T5GCON_GTM 0x20
6197 #define _T5GCON_T5GTM 0x20
6198 #define _T5GCON_GPOL 0x40
6199 #define _T5GCON_T5GPOL 0x40
6200 #define _T5GCON_GE 0x80
6201 #define _T5GCON_T5GE 0x80
6202 #define _T5GCON_TMR5GE 0x80
6204 //==============================================================================
6206 extern __at(0x0413) __sfr T4TMR;
6207 extern __at(0x0413) __sfr TMR4;
6208 extern __at(0x0414) __sfr PR4;
6209 extern __at(0x0414) __sfr T4PR;
6211 //==============================================================================
6212 // T4CON Bits
6214 extern __at(0x0415) __sfr T4CON;
6216 typedef union
6218 struct
6220 unsigned OUTPS0 : 1;
6221 unsigned OUTPS1 : 1;
6222 unsigned OUTPS2 : 1;
6223 unsigned OUTPS3 : 1;
6224 unsigned CKPS0 : 1;
6225 unsigned CKPS1 : 1;
6226 unsigned CKPS2 : 1;
6227 unsigned ON : 1;
6230 struct
6232 unsigned T4OUTPS0 : 1;
6233 unsigned T4OUTPS1 : 1;
6234 unsigned T4OUTPS2 : 1;
6235 unsigned T4OUTPS3 : 1;
6236 unsigned T4CKPS0 : 1;
6237 unsigned T4CKPS1 : 1;
6238 unsigned T4CKPS2 : 1;
6239 unsigned T4ON : 1;
6242 struct
6244 unsigned : 1;
6245 unsigned : 1;
6246 unsigned : 1;
6247 unsigned : 1;
6248 unsigned : 1;
6249 unsigned : 1;
6250 unsigned : 1;
6251 unsigned TMR4ON : 1;
6254 struct
6256 unsigned T4OUTPS : 4;
6257 unsigned : 4;
6260 struct
6262 unsigned OUTPS : 4;
6263 unsigned : 4;
6266 struct
6268 unsigned : 4;
6269 unsigned CKPS : 3;
6270 unsigned : 1;
6273 struct
6275 unsigned : 4;
6276 unsigned T4CKPS : 3;
6277 unsigned : 1;
6279 } __T4CONbits_t;
6281 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
6283 #define _T4CON_OUTPS0 0x01
6284 #define _T4CON_T4OUTPS0 0x01
6285 #define _T4CON_OUTPS1 0x02
6286 #define _T4CON_T4OUTPS1 0x02
6287 #define _T4CON_OUTPS2 0x04
6288 #define _T4CON_T4OUTPS2 0x04
6289 #define _T4CON_OUTPS3 0x08
6290 #define _T4CON_T4OUTPS3 0x08
6291 #define _T4CON_CKPS0 0x10
6292 #define _T4CON_T4CKPS0 0x10
6293 #define _T4CON_CKPS1 0x20
6294 #define _T4CON_T4CKPS1 0x20
6295 #define _T4CON_CKPS2 0x40
6296 #define _T4CON_T4CKPS2 0x40
6297 #define _T4CON_ON 0x80
6298 #define _T4CON_T4ON 0x80
6299 #define _T4CON_TMR4ON 0x80
6301 //==============================================================================
6304 //==============================================================================
6305 // T4HLT Bits
6307 extern __at(0x0416) __sfr T4HLT;
6309 typedef union
6311 struct
6313 unsigned MODE0 : 1;
6314 unsigned MODE1 : 1;
6315 unsigned MODE2 : 1;
6316 unsigned MODE3 : 1;
6317 unsigned MODE4 : 1;
6318 unsigned CKSYNC : 1;
6319 unsigned CKPOL : 1;
6320 unsigned PSYNC : 1;
6323 struct
6325 unsigned T4MODE0 : 1;
6326 unsigned T4MODE1 : 1;
6327 unsigned T4MODE2 : 1;
6328 unsigned T4MODE3 : 1;
6329 unsigned T4MODE4 : 1;
6330 unsigned T4CKSYNC : 1;
6331 unsigned T4CKPOL : 1;
6332 unsigned T4PSYNC : 1;
6335 struct
6337 unsigned MODE : 5;
6338 unsigned : 3;
6341 struct
6343 unsigned T4MODE : 5;
6344 unsigned : 3;
6346 } __T4HLTbits_t;
6348 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
6350 #define _T4HLT_MODE0 0x01
6351 #define _T4HLT_T4MODE0 0x01
6352 #define _T4HLT_MODE1 0x02
6353 #define _T4HLT_T4MODE1 0x02
6354 #define _T4HLT_MODE2 0x04
6355 #define _T4HLT_T4MODE2 0x04
6356 #define _T4HLT_MODE3 0x08
6357 #define _T4HLT_T4MODE3 0x08
6358 #define _T4HLT_MODE4 0x10
6359 #define _T4HLT_T4MODE4 0x10
6360 #define _T4HLT_CKSYNC 0x20
6361 #define _T4HLT_T4CKSYNC 0x20
6362 #define _T4HLT_CKPOL 0x40
6363 #define _T4HLT_T4CKPOL 0x40
6364 #define _T4HLT_PSYNC 0x80
6365 #define _T4HLT_T4PSYNC 0x80
6367 //==============================================================================
6370 //==============================================================================
6371 // T4CLKCON Bits
6373 extern __at(0x0417) __sfr T4CLKCON;
6375 typedef union
6377 struct
6379 unsigned CS0 : 1;
6380 unsigned CS1 : 1;
6381 unsigned CS2 : 1;
6382 unsigned CS3 : 1;
6383 unsigned : 1;
6384 unsigned : 1;
6385 unsigned : 1;
6386 unsigned : 1;
6389 struct
6391 unsigned T4CS0 : 1;
6392 unsigned T4CS1 : 1;
6393 unsigned T4CS2 : 1;
6394 unsigned T4CS3 : 1;
6395 unsigned : 1;
6396 unsigned : 1;
6397 unsigned : 1;
6398 unsigned : 1;
6401 struct
6403 unsigned T4CS : 4;
6404 unsigned : 4;
6407 struct
6409 unsigned CS : 4;
6410 unsigned : 4;
6412 } __T4CLKCONbits_t;
6414 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
6416 #define _T4CLKCON_CS0 0x01
6417 #define _T4CLKCON_T4CS0 0x01
6418 #define _T4CLKCON_CS1 0x02
6419 #define _T4CLKCON_T4CS1 0x02
6420 #define _T4CLKCON_CS2 0x04
6421 #define _T4CLKCON_T4CS2 0x04
6422 #define _T4CLKCON_CS3 0x08
6423 #define _T4CLKCON_T4CS3 0x08
6425 //==============================================================================
6428 //==============================================================================
6429 // T4RST Bits
6431 extern __at(0x0418) __sfr T4RST;
6433 typedef union
6435 struct
6437 unsigned RSEL0 : 1;
6438 unsigned RSEL1 : 1;
6439 unsigned RSEL2 : 1;
6440 unsigned RSEL3 : 1;
6441 unsigned RSEL4 : 1;
6442 unsigned : 1;
6443 unsigned : 1;
6444 unsigned : 1;
6447 struct
6449 unsigned T4RSEL0 : 1;
6450 unsigned T4RSEL1 : 1;
6451 unsigned T4RSEL2 : 1;
6452 unsigned T4RSEL3 : 1;
6453 unsigned T4RSEL4 : 1;
6454 unsigned : 1;
6455 unsigned : 1;
6456 unsigned : 1;
6459 struct
6461 unsigned T4RSEL : 5;
6462 unsigned : 3;
6465 struct
6467 unsigned RSEL : 5;
6468 unsigned : 3;
6470 } __T4RSTbits_t;
6472 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
6474 #define _T4RST_RSEL0 0x01
6475 #define _T4RST_T4RSEL0 0x01
6476 #define _T4RST_RSEL1 0x02
6477 #define _T4RST_T4RSEL1 0x02
6478 #define _T4RST_RSEL2 0x04
6479 #define _T4RST_T4RSEL2 0x04
6480 #define _T4RST_RSEL3 0x08
6481 #define _T4RST_T4RSEL3 0x08
6482 #define _T4RST_RSEL4 0x10
6483 #define _T4RST_T4RSEL4 0x10
6485 //==============================================================================
6487 extern __at(0x041A) __sfr T6TMR;
6488 extern __at(0x041A) __sfr TMR6;
6489 extern __at(0x041B) __sfr PR6;
6490 extern __at(0x041B) __sfr T6PR;
6492 //==============================================================================
6493 // T6CON Bits
6495 extern __at(0x041C) __sfr T6CON;
6497 typedef union
6499 struct
6501 unsigned OUTPS0 : 1;
6502 unsigned OUTPS1 : 1;
6503 unsigned OUTPS2 : 1;
6504 unsigned OUTPS3 : 1;
6505 unsigned CKPS0 : 1;
6506 unsigned CKPS1 : 1;
6507 unsigned CKPS2 : 1;
6508 unsigned ON : 1;
6511 struct
6513 unsigned T6OUTPS0 : 1;
6514 unsigned T6OUTPS1 : 1;
6515 unsigned T6OUTPS2 : 1;
6516 unsigned T6OUTPS3 : 1;
6517 unsigned T6CKPS0 : 1;
6518 unsigned T6CKPS1 : 1;
6519 unsigned T6CKPS2 : 1;
6520 unsigned T6ON : 1;
6523 struct
6525 unsigned : 1;
6526 unsigned : 1;
6527 unsigned : 1;
6528 unsigned : 1;
6529 unsigned : 1;
6530 unsigned : 1;
6531 unsigned : 1;
6532 unsigned TMR6ON : 1;
6535 struct
6537 unsigned T6OUTPS : 4;
6538 unsigned : 4;
6541 struct
6543 unsigned OUTPS : 4;
6544 unsigned : 4;
6547 struct
6549 unsigned : 4;
6550 unsigned CKPS : 3;
6551 unsigned : 1;
6554 struct
6556 unsigned : 4;
6557 unsigned T6CKPS : 3;
6558 unsigned : 1;
6560 } __T6CONbits_t;
6562 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
6564 #define _T6CON_OUTPS0 0x01
6565 #define _T6CON_T6OUTPS0 0x01
6566 #define _T6CON_OUTPS1 0x02
6567 #define _T6CON_T6OUTPS1 0x02
6568 #define _T6CON_OUTPS2 0x04
6569 #define _T6CON_T6OUTPS2 0x04
6570 #define _T6CON_OUTPS3 0x08
6571 #define _T6CON_T6OUTPS3 0x08
6572 #define _T6CON_CKPS0 0x10
6573 #define _T6CON_T6CKPS0 0x10
6574 #define _T6CON_CKPS1 0x20
6575 #define _T6CON_T6CKPS1 0x20
6576 #define _T6CON_CKPS2 0x40
6577 #define _T6CON_T6CKPS2 0x40
6578 #define _T6CON_ON 0x80
6579 #define _T6CON_T6ON 0x80
6580 #define _T6CON_TMR6ON 0x80
6582 //==============================================================================
6585 //==============================================================================
6586 // T6HLT Bits
6588 extern __at(0x041D) __sfr T6HLT;
6590 typedef union
6592 struct
6594 unsigned MODE0 : 1;
6595 unsigned MODE1 : 1;
6596 unsigned MODE2 : 1;
6597 unsigned MODE3 : 1;
6598 unsigned MODE4 : 1;
6599 unsigned CKSYNC : 1;
6600 unsigned CKPOL : 1;
6601 unsigned PSYNC : 1;
6604 struct
6606 unsigned T6MODE0 : 1;
6607 unsigned T6MODE1 : 1;
6608 unsigned T6MODE2 : 1;
6609 unsigned T6MODE3 : 1;
6610 unsigned T6MODE4 : 1;
6611 unsigned T6CKSYNC : 1;
6612 unsigned T6CKPOL : 1;
6613 unsigned T6PSYNC : 1;
6616 struct
6618 unsigned MODE : 5;
6619 unsigned : 3;
6622 struct
6624 unsigned T6MODE : 5;
6625 unsigned : 3;
6627 } __T6HLTbits_t;
6629 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
6631 #define _T6HLT_MODE0 0x01
6632 #define _T6HLT_T6MODE0 0x01
6633 #define _T6HLT_MODE1 0x02
6634 #define _T6HLT_T6MODE1 0x02
6635 #define _T6HLT_MODE2 0x04
6636 #define _T6HLT_T6MODE2 0x04
6637 #define _T6HLT_MODE3 0x08
6638 #define _T6HLT_T6MODE3 0x08
6639 #define _T6HLT_MODE4 0x10
6640 #define _T6HLT_T6MODE4 0x10
6641 #define _T6HLT_CKSYNC 0x20
6642 #define _T6HLT_T6CKSYNC 0x20
6643 #define _T6HLT_CKPOL 0x40
6644 #define _T6HLT_T6CKPOL 0x40
6645 #define _T6HLT_PSYNC 0x80
6646 #define _T6HLT_T6PSYNC 0x80
6648 //==============================================================================
6651 //==============================================================================
6652 // T6CLKCON Bits
6654 extern __at(0x041E) __sfr T6CLKCON;
6656 typedef union
6658 struct
6660 unsigned CS0 : 1;
6661 unsigned CS1 : 1;
6662 unsigned CS2 : 1;
6663 unsigned CS3 : 1;
6664 unsigned : 1;
6665 unsigned : 1;
6666 unsigned : 1;
6667 unsigned : 1;
6670 struct
6672 unsigned T6CS0 : 1;
6673 unsigned T6CS1 : 1;
6674 unsigned T6CS2 : 1;
6675 unsigned T6CS3 : 1;
6676 unsigned : 1;
6677 unsigned : 1;
6678 unsigned : 1;
6679 unsigned : 1;
6682 struct
6684 unsigned T6CS : 4;
6685 unsigned : 4;
6688 struct
6690 unsigned CS : 4;
6691 unsigned : 4;
6693 } __T6CLKCONbits_t;
6695 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
6697 #define _T6CLKCON_CS0 0x01
6698 #define _T6CLKCON_T6CS0 0x01
6699 #define _T6CLKCON_CS1 0x02
6700 #define _T6CLKCON_T6CS1 0x02
6701 #define _T6CLKCON_CS2 0x04
6702 #define _T6CLKCON_T6CS2 0x04
6703 #define _T6CLKCON_CS3 0x08
6704 #define _T6CLKCON_T6CS3 0x08
6706 //==============================================================================
6709 //==============================================================================
6710 // T6RST Bits
6712 extern __at(0x041F) __sfr T6RST;
6714 typedef union
6716 struct
6718 unsigned RSEL0 : 1;
6719 unsigned RSEL1 : 1;
6720 unsigned RSEL2 : 1;
6721 unsigned RSEL3 : 1;
6722 unsigned RSEL4 : 1;
6723 unsigned : 1;
6724 unsigned : 1;
6725 unsigned : 1;
6728 struct
6730 unsigned T6RSEL0 : 1;
6731 unsigned T6RSEL1 : 1;
6732 unsigned T6RSEL2 : 1;
6733 unsigned T6RSEL3 : 1;
6734 unsigned T6RSEL4 : 1;
6735 unsigned : 1;
6736 unsigned : 1;
6737 unsigned : 1;
6740 struct
6742 unsigned RSEL : 5;
6743 unsigned : 3;
6746 struct
6748 unsigned T6RSEL : 5;
6749 unsigned : 3;
6751 } __T6RSTbits_t;
6753 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
6755 #define _T6RST_RSEL0 0x01
6756 #define _T6RST_T6RSEL0 0x01
6757 #define _T6RST_RSEL1 0x02
6758 #define _T6RST_T6RSEL1 0x02
6759 #define _T6RST_RSEL2 0x04
6760 #define _T6RST_T6RSEL2 0x04
6761 #define _T6RST_RSEL3 0x08
6762 #define _T6RST_T6RSEL3 0x08
6763 #define _T6RST_RSEL4 0x10
6764 #define _T6RST_T6RSEL4 0x10
6766 //==============================================================================
6768 extern __at(0x048E) __sfr ADRESL;
6769 extern __at(0x048F) __sfr ADRESH;
6771 //==============================================================================
6772 // ADCON0 Bits
6774 extern __at(0x0490) __sfr ADCON0;
6776 typedef struct
6778 unsigned ADON : 1;
6779 unsigned GO : 1;
6780 unsigned : 1;
6781 unsigned : 1;
6782 unsigned : 1;
6783 unsigned : 1;
6784 unsigned : 1;
6785 unsigned : 1;
6786 } __ADCON0bits_t;
6788 extern __at(0x0490) volatile __ADCON0bits_t ADCON0bits;
6790 #define _ADON 0x01
6791 #define _GO 0x02
6793 //==============================================================================
6796 //==============================================================================
6797 // ADCON1 Bits
6799 extern __at(0x0491) __sfr ADCON1;
6801 typedef struct
6803 unsigned : 1;
6804 unsigned : 1;
6805 unsigned ADNREF : 1;
6806 unsigned : 1;
6807 unsigned : 1;
6808 unsigned : 1;
6809 unsigned : 1;
6810 unsigned ADFM : 1;
6811 } __ADCON1bits_t;
6813 extern __at(0x0491) volatile __ADCON1bits_t ADCON1bits;
6815 #define _ADNREF 0x04
6816 #define _ADFM 0x80
6818 //==============================================================================
6820 extern __at(0x0492) __sfr ADCON2;
6821 extern __at(0x0493) __sfr T2TMR;
6822 extern __at(0x0493) __sfr TMR2;
6823 extern __at(0x0494) __sfr PR2;
6824 extern __at(0x0494) __sfr T2PR;
6826 //==============================================================================
6827 // T2CON Bits
6829 extern __at(0x0495) __sfr T2CON;
6831 typedef union
6833 struct
6835 unsigned OUTPS0 : 1;
6836 unsigned OUTPS1 : 1;
6837 unsigned OUTPS2 : 1;
6838 unsigned OUTPS3 : 1;
6839 unsigned CKPS0 : 1;
6840 unsigned CKPS1 : 1;
6841 unsigned CKPS2 : 1;
6842 unsigned ON : 1;
6845 struct
6847 unsigned T2OUTPS0 : 1;
6848 unsigned T2OUTPS1 : 1;
6849 unsigned T2OUTPS2 : 1;
6850 unsigned T2OUTPS3 : 1;
6851 unsigned T2CKPS0 : 1;
6852 unsigned T2CKPS1 : 1;
6853 unsigned T2CKPS2 : 1;
6854 unsigned T2ON : 1;
6857 struct
6859 unsigned : 1;
6860 unsigned : 1;
6861 unsigned : 1;
6862 unsigned : 1;
6863 unsigned : 1;
6864 unsigned : 1;
6865 unsigned : 1;
6866 unsigned TMR2ON : 1;
6869 struct
6871 unsigned T2OUTPS : 4;
6872 unsigned : 4;
6875 struct
6877 unsigned OUTPS : 4;
6878 unsigned : 4;
6881 struct
6883 unsigned : 4;
6884 unsigned T2CKPS : 3;
6885 unsigned : 1;
6888 struct
6890 unsigned : 4;
6891 unsigned CKPS : 3;
6892 unsigned : 1;
6894 } __T2CONbits_t;
6896 extern __at(0x0495) volatile __T2CONbits_t T2CONbits;
6898 #define _T2CON_OUTPS0 0x01
6899 #define _T2CON_T2OUTPS0 0x01
6900 #define _T2CON_OUTPS1 0x02
6901 #define _T2CON_T2OUTPS1 0x02
6902 #define _T2CON_OUTPS2 0x04
6903 #define _T2CON_T2OUTPS2 0x04
6904 #define _T2CON_OUTPS3 0x08
6905 #define _T2CON_T2OUTPS3 0x08
6906 #define _T2CON_CKPS0 0x10
6907 #define _T2CON_T2CKPS0 0x10
6908 #define _T2CON_CKPS1 0x20
6909 #define _T2CON_T2CKPS1 0x20
6910 #define _T2CON_CKPS2 0x40
6911 #define _T2CON_T2CKPS2 0x40
6912 #define _T2CON_ON 0x80
6913 #define _T2CON_T2ON 0x80
6914 #define _T2CON_TMR2ON 0x80
6916 //==============================================================================
6919 //==============================================================================
6920 // T2HLT Bits
6922 extern __at(0x0496) __sfr T2HLT;
6924 typedef union
6926 struct
6928 unsigned MODE0 : 1;
6929 unsigned MODE1 : 1;
6930 unsigned MODE2 : 1;
6931 unsigned MODE3 : 1;
6932 unsigned MODE4 : 1;
6933 unsigned CKSYNC : 1;
6934 unsigned CKPOL : 1;
6935 unsigned PSYNC : 1;
6938 struct
6940 unsigned T2MODE0 : 1;
6941 unsigned T2MODE1 : 1;
6942 unsigned T2MODE2 : 1;
6943 unsigned T2MODE3 : 1;
6944 unsigned T2MODE4 : 1;
6945 unsigned T2CKSYNC : 1;
6946 unsigned T2CKPOL : 1;
6947 unsigned T2PSYNC : 1;
6950 struct
6952 unsigned MODE : 5;
6953 unsigned : 3;
6956 struct
6958 unsigned T2MODE : 5;
6959 unsigned : 3;
6961 } __T2HLTbits_t;
6963 extern __at(0x0496) volatile __T2HLTbits_t T2HLTbits;
6965 #define _T2HLT_MODE0 0x01
6966 #define _T2HLT_T2MODE0 0x01
6967 #define _T2HLT_MODE1 0x02
6968 #define _T2HLT_T2MODE1 0x02
6969 #define _T2HLT_MODE2 0x04
6970 #define _T2HLT_T2MODE2 0x04
6971 #define _T2HLT_MODE3 0x08
6972 #define _T2HLT_T2MODE3 0x08
6973 #define _T2HLT_MODE4 0x10
6974 #define _T2HLT_T2MODE4 0x10
6975 #define _T2HLT_CKSYNC 0x20
6976 #define _T2HLT_T2CKSYNC 0x20
6977 #define _T2HLT_CKPOL 0x40
6978 #define _T2HLT_T2CKPOL 0x40
6979 #define _T2HLT_PSYNC 0x80
6980 #define _T2HLT_T2PSYNC 0x80
6982 //==============================================================================
6985 //==============================================================================
6986 // T2CLKCON Bits
6988 extern __at(0x0497) __sfr T2CLKCON;
6990 typedef union
6992 struct
6994 unsigned CS0 : 1;
6995 unsigned CS1 : 1;
6996 unsigned CS2 : 1;
6997 unsigned CS3 : 1;
6998 unsigned : 1;
6999 unsigned : 1;
7000 unsigned : 1;
7001 unsigned : 1;
7004 struct
7006 unsigned T2CS0 : 1;
7007 unsigned T2CS1 : 1;
7008 unsigned T2CS2 : 1;
7009 unsigned T2CS3 : 1;
7010 unsigned : 1;
7011 unsigned : 1;
7012 unsigned : 1;
7013 unsigned : 1;
7016 struct
7018 unsigned T2CS : 4;
7019 unsigned : 4;
7022 struct
7024 unsigned CS : 4;
7025 unsigned : 4;
7027 } __T2CLKCONbits_t;
7029 extern __at(0x0497) volatile __T2CLKCONbits_t T2CLKCONbits;
7031 #define _T2CLKCON_CS0 0x01
7032 #define _T2CLKCON_T2CS0 0x01
7033 #define _T2CLKCON_CS1 0x02
7034 #define _T2CLKCON_T2CS1 0x02
7035 #define _T2CLKCON_CS2 0x04
7036 #define _T2CLKCON_T2CS2 0x04
7037 #define _T2CLKCON_CS3 0x08
7038 #define _T2CLKCON_T2CS3 0x08
7040 //==============================================================================
7043 //==============================================================================
7044 // T2RST Bits
7046 extern __at(0x0498) __sfr T2RST;
7048 typedef union
7050 struct
7052 unsigned RSEL0 : 1;
7053 unsigned RSEL1 : 1;
7054 unsigned RSEL2 : 1;
7055 unsigned RSEL3 : 1;
7056 unsigned RSEL4 : 1;
7057 unsigned : 1;
7058 unsigned : 1;
7059 unsigned : 1;
7062 struct
7064 unsigned T2RSEL0 : 1;
7065 unsigned T2RSEL1 : 1;
7066 unsigned T2RSEL2 : 1;
7067 unsigned T2RSEL3 : 1;
7068 unsigned T2RSEL4 : 1;
7069 unsigned : 1;
7070 unsigned : 1;
7071 unsigned : 1;
7074 struct
7076 unsigned RSEL : 5;
7077 unsigned : 3;
7080 struct
7082 unsigned T2RSEL : 5;
7083 unsigned : 3;
7085 } __T2RSTbits_t;
7087 extern __at(0x0498) volatile __T2RSTbits_t T2RSTbits;
7089 #define _RSEL0 0x01
7090 #define _T2RSEL0 0x01
7091 #define _RSEL1 0x02
7092 #define _T2RSEL1 0x02
7093 #define _RSEL2 0x04
7094 #define _T2RSEL2 0x04
7095 #define _RSEL3 0x08
7096 #define _T2RSEL3 0x08
7097 #define _RSEL4 0x10
7098 #define _T2RSEL4 0x10
7100 //==============================================================================
7102 extern __at(0x049A) __sfr T8TMR;
7103 extern __at(0x049A) __sfr TMR8;
7104 extern __at(0x049B) __sfr PR8;
7105 extern __at(0x049B) __sfr T8PR;
7107 //==============================================================================
7108 // T8CON Bits
7110 extern __at(0x049C) __sfr T8CON;
7112 typedef union
7114 struct
7116 unsigned OUTPS0 : 1;
7117 unsigned OUTPS1 : 1;
7118 unsigned OUTPS2 : 1;
7119 unsigned OUTPS3 : 1;
7120 unsigned CKPS0 : 1;
7121 unsigned CKPS1 : 1;
7122 unsigned CKPS2 : 1;
7123 unsigned ON : 1;
7126 struct
7128 unsigned T8OUTPS0 : 1;
7129 unsigned T8OUTPS1 : 1;
7130 unsigned T8OUTPS2 : 1;
7131 unsigned T8OUTPS3 : 1;
7132 unsigned T8CKPS0 : 1;
7133 unsigned T8CKPS1 : 1;
7134 unsigned T8CKPS2 : 1;
7135 unsigned T8ON : 1;
7138 struct
7140 unsigned : 1;
7141 unsigned : 1;
7142 unsigned : 1;
7143 unsigned : 1;
7144 unsigned : 1;
7145 unsigned : 1;
7146 unsigned : 1;
7147 unsigned TMR8ON : 1;
7150 struct
7152 unsigned OUTPS : 4;
7153 unsigned : 4;
7156 struct
7158 unsigned T8OUTPS : 4;
7159 unsigned : 4;
7162 struct
7164 unsigned : 4;
7165 unsigned T8CKPS : 3;
7166 unsigned : 1;
7169 struct
7171 unsigned : 4;
7172 unsigned CKPS : 3;
7173 unsigned : 1;
7175 } __T8CONbits_t;
7177 extern __at(0x049C) volatile __T8CONbits_t T8CONbits;
7179 #define _T8CON_OUTPS0 0x01
7180 #define _T8CON_T8OUTPS0 0x01
7181 #define _T8CON_OUTPS1 0x02
7182 #define _T8CON_T8OUTPS1 0x02
7183 #define _T8CON_OUTPS2 0x04
7184 #define _T8CON_T8OUTPS2 0x04
7185 #define _T8CON_OUTPS3 0x08
7186 #define _T8CON_T8OUTPS3 0x08
7187 #define _T8CON_CKPS0 0x10
7188 #define _T8CON_T8CKPS0 0x10
7189 #define _T8CON_CKPS1 0x20
7190 #define _T8CON_T8CKPS1 0x20
7191 #define _T8CON_CKPS2 0x40
7192 #define _T8CON_T8CKPS2 0x40
7193 #define _T8CON_ON 0x80
7194 #define _T8CON_T8ON 0x80
7195 #define _T8CON_TMR8ON 0x80
7197 //==============================================================================
7200 //==============================================================================
7201 // T8HLT Bits
7203 extern __at(0x049D) __sfr T8HLT;
7205 typedef union
7207 struct
7209 unsigned MODE0 : 1;
7210 unsigned MODE1 : 1;
7211 unsigned MODE2 : 1;
7212 unsigned MODE3 : 1;
7213 unsigned MODE4 : 1;
7214 unsigned CKSYNC : 1;
7215 unsigned CKPOL : 1;
7216 unsigned PSYNC : 1;
7219 struct
7221 unsigned T8MODE0 : 1;
7222 unsigned T8MODE1 : 1;
7223 unsigned T8MODE2 : 1;
7224 unsigned T8MODE3 : 1;
7225 unsigned T8MODE4 : 1;
7226 unsigned T8CKSYNC : 1;
7227 unsigned T8CKPOL : 1;
7228 unsigned T8PSYNC : 1;
7231 struct
7233 unsigned MODE : 5;
7234 unsigned : 3;
7237 struct
7239 unsigned T8MODE : 5;
7240 unsigned : 3;
7242 } __T8HLTbits_t;
7244 extern __at(0x049D) volatile __T8HLTbits_t T8HLTbits;
7246 #define _T8HLT_MODE0 0x01
7247 #define _T8HLT_T8MODE0 0x01
7248 #define _T8HLT_MODE1 0x02
7249 #define _T8HLT_T8MODE1 0x02
7250 #define _T8HLT_MODE2 0x04
7251 #define _T8HLT_T8MODE2 0x04
7252 #define _T8HLT_MODE3 0x08
7253 #define _T8HLT_T8MODE3 0x08
7254 #define _T8HLT_MODE4 0x10
7255 #define _T8HLT_T8MODE4 0x10
7256 #define _T8HLT_CKSYNC 0x20
7257 #define _T8HLT_T8CKSYNC 0x20
7258 #define _T8HLT_CKPOL 0x40
7259 #define _T8HLT_T8CKPOL 0x40
7260 #define _T8HLT_PSYNC 0x80
7261 #define _T8HLT_T8PSYNC 0x80
7263 //==============================================================================
7266 //==============================================================================
7267 // T8CLKCON Bits
7269 extern __at(0x049E) __sfr T8CLKCON;
7271 typedef union
7273 struct
7275 unsigned CS0 : 1;
7276 unsigned CS1 : 1;
7277 unsigned CS2 : 1;
7278 unsigned CS3 : 1;
7279 unsigned : 1;
7280 unsigned : 1;
7281 unsigned : 1;
7282 unsigned : 1;
7285 struct
7287 unsigned T8CS0 : 1;
7288 unsigned T8CS1 : 1;
7289 unsigned T8CS2 : 1;
7290 unsigned T8CS3 : 1;
7291 unsigned : 1;
7292 unsigned : 1;
7293 unsigned : 1;
7294 unsigned : 1;
7297 struct
7299 unsigned CS : 4;
7300 unsigned : 4;
7303 struct
7305 unsigned T8CS : 4;
7306 unsigned : 4;
7308 } __T8CLKCONbits_t;
7310 extern __at(0x049E) volatile __T8CLKCONbits_t T8CLKCONbits;
7312 #define _T8CLKCON_CS0 0x01
7313 #define _T8CLKCON_T8CS0 0x01
7314 #define _T8CLKCON_CS1 0x02
7315 #define _T8CLKCON_T8CS1 0x02
7316 #define _T8CLKCON_CS2 0x04
7317 #define _T8CLKCON_T8CS2 0x04
7318 #define _T8CLKCON_CS3 0x08
7319 #define _T8CLKCON_T8CS3 0x08
7321 //==============================================================================
7324 //==============================================================================
7325 // T8RST Bits
7327 extern __at(0x049F) __sfr T8RST;
7329 typedef union
7331 struct
7333 unsigned RSEL0 : 1;
7334 unsigned RSEL1 : 1;
7335 unsigned RSEL2 : 1;
7336 unsigned RSEL3 : 1;
7337 unsigned RSEL4 : 1;
7338 unsigned : 1;
7339 unsigned : 1;
7340 unsigned : 1;
7343 struct
7345 unsigned T8RSEL0 : 1;
7346 unsigned T8RSEL1 : 1;
7347 unsigned T8RSEL2 : 1;
7348 unsigned T8RSEL3 : 1;
7349 unsigned T8RSEL4 : 1;
7350 unsigned : 1;
7351 unsigned : 1;
7352 unsigned : 1;
7355 struct
7357 unsigned RSEL : 5;
7358 unsigned : 3;
7361 struct
7363 unsigned T8RSEL : 5;
7364 unsigned : 3;
7366 } __T8RSTbits_t;
7368 extern __at(0x049F) volatile __T8RSTbits_t T8RSTbits;
7370 #define _T8RST_RSEL0 0x01
7371 #define _T8RST_T8RSEL0 0x01
7372 #define _T8RST_RSEL1 0x02
7373 #define _T8RST_T8RSEL1 0x02
7374 #define _T8RST_RSEL2 0x04
7375 #define _T8RST_T8RSEL2 0x04
7376 #define _T8RST_RSEL3 0x08
7377 #define _T8RST_T8RSEL3 0x08
7378 #define _T8RST_RSEL4 0x10
7379 #define _T8RST_T8RSEL4 0x10
7381 //==============================================================================
7383 extern __at(0x050F) __sfr OPA1NCHS;
7384 extern __at(0x0510) __sfr OPA1PCHS;
7386 //==============================================================================
7387 // OPA1CON Bits
7389 extern __at(0x0511) __sfr OPA1CON;
7391 typedef union
7393 struct
7395 unsigned ORM0 : 1;
7396 unsigned ORM1 : 1;
7397 unsigned ORPOL : 1;
7398 unsigned : 1;
7399 unsigned UG : 1;
7400 unsigned : 1;
7401 unsigned : 1;
7402 unsigned EN : 1;
7405 struct
7407 unsigned OPA1ORM0 : 1;
7408 unsigned OPA1ORM1 : 1;
7409 unsigned OPA1ORPOL : 1;
7410 unsigned : 1;
7411 unsigned OPA1UG : 1;
7412 unsigned : 1;
7413 unsigned : 1;
7414 unsigned OPA1EN : 1;
7417 struct
7419 unsigned OPA1ORM : 2;
7420 unsigned : 6;
7423 struct
7425 unsigned ORM : 2;
7426 unsigned : 6;
7428 } __OPA1CONbits_t;
7430 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
7432 #define _OPA1CON_ORM0 0x01
7433 #define _OPA1CON_OPA1ORM0 0x01
7434 #define _OPA1CON_ORM1 0x02
7435 #define _OPA1CON_OPA1ORM1 0x02
7436 #define _OPA1CON_ORPOL 0x04
7437 #define _OPA1CON_OPA1ORPOL 0x04
7438 #define _OPA1CON_UG 0x10
7439 #define _OPA1CON_OPA1UG 0x10
7440 #define _OPA1CON_EN 0x80
7441 #define _OPA1CON_OPA1EN 0x80
7443 //==============================================================================
7445 extern __at(0x0512) __sfr OPA1ORS;
7446 extern __at(0x0513) __sfr OPA2NCHS;
7447 extern __at(0x0514) __sfr OPA2PCHS;
7449 //==============================================================================
7450 // OPA2CON Bits
7452 extern __at(0x0515) __sfr OPA2CON;
7454 typedef union
7456 struct
7458 unsigned ORM0 : 1;
7459 unsigned ORM1 : 1;
7460 unsigned ORPOL : 1;
7461 unsigned : 1;
7462 unsigned UG : 1;
7463 unsigned : 1;
7464 unsigned : 1;
7465 unsigned EN : 1;
7468 struct
7470 unsigned OPA2ORM0 : 1;
7471 unsigned OPA2ORM1 : 1;
7472 unsigned OPA2ORPOL : 1;
7473 unsigned : 1;
7474 unsigned OPA2UG : 1;
7475 unsigned : 1;
7476 unsigned : 1;
7477 unsigned OPA2EN : 1;
7480 struct
7482 unsigned OPA2ORM : 2;
7483 unsigned : 6;
7486 struct
7488 unsigned ORM : 2;
7489 unsigned : 6;
7491 } __OPA2CONbits_t;
7493 extern __at(0x0515) volatile __OPA2CONbits_t OPA2CONbits;
7495 #define _OPA2CON_ORM0 0x01
7496 #define _OPA2CON_OPA2ORM0 0x01
7497 #define _OPA2CON_ORM1 0x02
7498 #define _OPA2CON_OPA2ORM1 0x02
7499 #define _OPA2CON_ORPOL 0x04
7500 #define _OPA2CON_OPA2ORPOL 0x04
7501 #define _OPA2CON_UG 0x10
7502 #define _OPA2CON_OPA2UG 0x10
7503 #define _OPA2CON_EN 0x80
7504 #define _OPA2CON_OPA2EN 0x80
7506 //==============================================================================
7508 extern __at(0x0516) __sfr OPA2ORS;
7509 extern __at(0x0517) __sfr OPA3NCHS;
7510 extern __at(0x0518) __sfr OPA3PCHS;
7512 //==============================================================================
7513 // OPA3CON Bits
7515 extern __at(0x0519) __sfr OPA3CON;
7517 typedef union
7519 struct
7521 unsigned ORM0 : 1;
7522 unsigned ORM1 : 1;
7523 unsigned ORPOL : 1;
7524 unsigned : 1;
7525 unsigned UG : 1;
7526 unsigned : 1;
7527 unsigned SP : 1;
7528 unsigned EN : 1;
7531 struct
7533 unsigned OPA3ORM0 : 1;
7534 unsigned OPA3ORM1 : 1;
7535 unsigned OPA3ORPOL : 1;
7536 unsigned : 1;
7537 unsigned OPA3UG : 1;
7538 unsigned : 1;
7539 unsigned OPA3SP : 1;
7540 unsigned OPA3EN : 1;
7543 struct
7545 unsigned OPA3ORM : 2;
7546 unsigned : 6;
7549 struct
7551 unsigned ORM : 2;
7552 unsigned : 6;
7554 } __OPA3CONbits_t;
7556 extern __at(0x0519) volatile __OPA3CONbits_t OPA3CONbits;
7558 #define _OPA3CON_ORM0 0x01
7559 #define _OPA3CON_OPA3ORM0 0x01
7560 #define _OPA3CON_ORM1 0x02
7561 #define _OPA3CON_OPA3ORM1 0x02
7562 #define _OPA3CON_ORPOL 0x04
7563 #define _OPA3CON_OPA3ORPOL 0x04
7564 #define _OPA3CON_UG 0x10
7565 #define _OPA3CON_OPA3UG 0x10
7566 #define _OPA3CON_SP 0x40
7567 #define _OPA3CON_OPA3SP 0x40
7568 #define _OPA3CON_EN 0x80
7569 #define _OPA3CON_OPA3EN 0x80
7571 //==============================================================================
7573 extern __at(0x051A) __sfr OPA3ORS;
7575 //==============================================================================
7576 // DACLD Bits
7578 extern __at(0x058D) __sfr DACLD;
7580 typedef struct
7582 unsigned DAC1LD : 1;
7583 unsigned DAC2LD : 1;
7584 unsigned : 1;
7585 unsigned : 1;
7586 unsigned DAC5LD : 1;
7587 unsigned : 1;
7588 unsigned : 1;
7589 unsigned : 1;
7590 } __DACLDbits_t;
7592 extern __at(0x058D) volatile __DACLDbits_t DACLDbits;
7594 #define _DAC1LD 0x01
7595 #define _DAC2LD 0x02
7596 #define _DAC5LD 0x10
7598 //==============================================================================
7601 //==============================================================================
7602 // DAC1CON0 Bits
7604 extern __at(0x058E) __sfr DAC1CON0;
7606 typedef union
7608 struct
7610 unsigned NSS0 : 1;
7611 unsigned NSS1 : 1;
7612 unsigned PSS0 : 1;
7613 unsigned PSS1 : 1;
7614 unsigned OE2 : 1;
7615 unsigned OE1 : 1;
7616 unsigned FM : 1;
7617 unsigned EN : 1;
7620 struct
7622 unsigned DACNSS0 : 1;
7623 unsigned DACNSS1 : 1;
7624 unsigned DACPSS0 : 1;
7625 unsigned DACPSS1 : 1;
7626 unsigned DACOE2 : 1;
7627 unsigned OE : 1;
7628 unsigned DACFM : 1;
7629 unsigned DACEN : 1;
7632 struct
7634 unsigned DAC1NSS0 : 1;
7635 unsigned DAC1NSS1 : 1;
7636 unsigned DAC1PSS0 : 1;
7637 unsigned DAC1PSS1 : 1;
7638 unsigned DAC1OE2 : 1;
7639 unsigned DACOE1 : 1;
7640 unsigned DAC1FM : 1;
7641 unsigned DAC1EN : 1;
7644 struct
7646 unsigned : 1;
7647 unsigned : 1;
7648 unsigned : 1;
7649 unsigned : 1;
7650 unsigned : 1;
7651 unsigned DACOE : 1;
7652 unsigned : 1;
7653 unsigned : 1;
7656 struct
7658 unsigned : 1;
7659 unsigned : 1;
7660 unsigned : 1;
7661 unsigned : 1;
7662 unsigned : 1;
7663 unsigned DAC1OE1 : 1;
7664 unsigned : 1;
7665 unsigned : 1;
7668 struct
7670 unsigned DACNSS : 2;
7671 unsigned : 6;
7674 struct
7676 unsigned DAC1NSS : 2;
7677 unsigned : 6;
7680 struct
7682 unsigned NSS : 2;
7683 unsigned : 6;
7686 struct
7688 unsigned : 2;
7689 unsigned DAC1PSS : 2;
7690 unsigned : 4;
7693 struct
7695 unsigned : 2;
7696 unsigned DACPSS : 2;
7697 unsigned : 4;
7700 struct
7702 unsigned : 2;
7703 unsigned PSS : 2;
7704 unsigned : 4;
7706 } __DAC1CON0bits_t;
7708 extern __at(0x058E) volatile __DAC1CON0bits_t DAC1CON0bits;
7710 #define _DAC1CON0_NSS0 0x01
7711 #define _DAC1CON0_DACNSS0 0x01
7712 #define _DAC1CON0_DAC1NSS0 0x01
7713 #define _DAC1CON0_NSS1 0x02
7714 #define _DAC1CON0_DACNSS1 0x02
7715 #define _DAC1CON0_DAC1NSS1 0x02
7716 #define _DAC1CON0_PSS0 0x04
7717 #define _DAC1CON0_DACPSS0 0x04
7718 #define _DAC1CON0_DAC1PSS0 0x04
7719 #define _DAC1CON0_PSS1 0x08
7720 #define _DAC1CON0_DACPSS1 0x08
7721 #define _DAC1CON0_DAC1PSS1 0x08
7722 #define _DAC1CON0_OE2 0x10
7723 #define _DAC1CON0_DACOE2 0x10
7724 #define _DAC1CON0_DAC1OE2 0x10
7725 #define _DAC1CON0_OE1 0x20
7726 #define _DAC1CON0_OE 0x20
7727 #define _DAC1CON0_DACOE1 0x20
7728 #define _DAC1CON0_DACOE 0x20
7729 #define _DAC1CON0_DAC1OE1 0x20
7730 #define _DAC1CON0_FM 0x40
7731 #define _DAC1CON0_DACFM 0x40
7732 #define _DAC1CON0_DAC1FM 0x40
7733 #define _DAC1CON0_EN 0x80
7734 #define _DAC1CON0_DACEN 0x80
7735 #define _DAC1CON0_DAC1EN 0x80
7737 //==============================================================================
7740 //==============================================================================
7741 // DAC1CON1 Bits
7743 extern __at(0x058F) __sfr DAC1CON1;
7745 typedef union
7747 struct
7749 unsigned REF0 : 1;
7750 unsigned REF1 : 1;
7751 unsigned REF2 : 1;
7752 unsigned REF3 : 1;
7753 unsigned REF4 : 1;
7754 unsigned REF5 : 1;
7755 unsigned REF6 : 1;
7756 unsigned REF7 : 1;
7759 struct
7761 unsigned DAC1REF0 : 1;
7762 unsigned DAC1REF1 : 1;
7763 unsigned DAC1REF2 : 1;
7764 unsigned DAC1REF3 : 1;
7765 unsigned DAC1REF4 : 1;
7766 unsigned DAC1REF5 : 1;
7767 unsigned DAC1REF6 : 1;
7768 unsigned DAC1REF7 : 1;
7771 struct
7773 unsigned R0 : 1;
7774 unsigned R1 : 1;
7775 unsigned R2 : 1;
7776 unsigned R3 : 1;
7777 unsigned R4 : 1;
7778 unsigned R5 : 1;
7779 unsigned R6 : 1;
7780 unsigned R7 : 1;
7783 struct
7785 unsigned DAC1R0 : 1;
7786 unsigned DAC1R1 : 1;
7787 unsigned DAC1R2 : 1;
7788 unsigned DAC1R3 : 1;
7789 unsigned DAC1R4 : 1;
7790 unsigned DAC1R5 : 1;
7791 unsigned DAC1R6 : 1;
7792 unsigned DAC1R7 : 1;
7794 } __DAC1CON1bits_t;
7796 extern __at(0x058F) volatile __DAC1CON1bits_t DAC1CON1bits;
7798 #define _REF0 0x01
7799 #define _DAC1REF0 0x01
7800 #define _R0 0x01
7801 #define _DAC1R0 0x01
7802 #define _REF1 0x02
7803 #define _DAC1REF1 0x02
7804 #define _R1 0x02
7805 #define _DAC1R1 0x02
7806 #define _REF2 0x04
7807 #define _DAC1REF2 0x04
7808 #define _R2 0x04
7809 #define _DAC1R2 0x04
7810 #define _REF3 0x08
7811 #define _DAC1REF3 0x08
7812 #define _R3 0x08
7813 #define _DAC1R3 0x08
7814 #define _REF4 0x10
7815 #define _DAC1REF4 0x10
7816 #define _R4 0x10
7817 #define _DAC1R4 0x10
7818 #define _REF5 0x20
7819 #define _DAC1REF5 0x20
7820 #define _R5 0x20
7821 #define _DAC1R5 0x20
7822 #define _REF6 0x40
7823 #define _DAC1REF6 0x40
7824 #define _R6 0x40
7825 #define _DAC1R6 0x40
7826 #define _REF7 0x80
7827 #define _DAC1REF7 0x80
7828 #define _R7 0x80
7829 #define _DAC1R7 0x80
7831 //==============================================================================
7833 extern __at(0x058F) __sfr DAC1REF;
7835 //==============================================================================
7836 // DAC1REFL Bits
7838 extern __at(0x058F) __sfr DAC1REFL;
7840 typedef union
7842 struct
7844 unsigned REF0 : 1;
7845 unsigned REF1 : 1;
7846 unsigned REF2 : 1;
7847 unsigned REF3 : 1;
7848 unsigned REF4 : 1;
7849 unsigned REF5 : 1;
7850 unsigned REF6 : 1;
7851 unsigned REF7 : 1;
7854 struct
7856 unsigned DAC1REF0 : 1;
7857 unsigned DAC1REF1 : 1;
7858 unsigned DAC1REF2 : 1;
7859 unsigned DAC1REF3 : 1;
7860 unsigned DAC1REF4 : 1;
7861 unsigned DAC1REF5 : 1;
7862 unsigned DAC1REF6 : 1;
7863 unsigned DAC1REF7 : 1;
7866 struct
7868 unsigned R0 : 1;
7869 unsigned R1 : 1;
7870 unsigned R2 : 1;
7871 unsigned R3 : 1;
7872 unsigned R4 : 1;
7873 unsigned R5 : 1;
7874 unsigned R6 : 1;
7875 unsigned R7 : 1;
7878 struct
7880 unsigned DAC1R0 : 1;
7881 unsigned DAC1R1 : 1;
7882 unsigned DAC1R2 : 1;
7883 unsigned DAC1R3 : 1;
7884 unsigned DAC1R4 : 1;
7885 unsigned DAC1R5 : 1;
7886 unsigned DAC1R6 : 1;
7887 unsigned DAC1R7 : 1;
7889 } __DAC1REFLbits_t;
7891 extern __at(0x058F) volatile __DAC1REFLbits_t DAC1REFLbits;
7893 #define _DAC1REFL_REF0 0x01
7894 #define _DAC1REFL_DAC1REF0 0x01
7895 #define _DAC1REFL_R0 0x01
7896 #define _DAC1REFL_DAC1R0 0x01
7897 #define _DAC1REFL_REF1 0x02
7898 #define _DAC1REFL_DAC1REF1 0x02
7899 #define _DAC1REFL_R1 0x02
7900 #define _DAC1REFL_DAC1R1 0x02
7901 #define _DAC1REFL_REF2 0x04
7902 #define _DAC1REFL_DAC1REF2 0x04
7903 #define _DAC1REFL_R2 0x04
7904 #define _DAC1REFL_DAC1R2 0x04
7905 #define _DAC1REFL_REF3 0x08
7906 #define _DAC1REFL_DAC1REF3 0x08
7907 #define _DAC1REFL_R3 0x08
7908 #define _DAC1REFL_DAC1R3 0x08
7909 #define _DAC1REFL_REF4 0x10
7910 #define _DAC1REFL_DAC1REF4 0x10
7911 #define _DAC1REFL_R4 0x10
7912 #define _DAC1REFL_DAC1R4 0x10
7913 #define _DAC1REFL_REF5 0x20
7914 #define _DAC1REFL_DAC1REF5 0x20
7915 #define _DAC1REFL_R5 0x20
7916 #define _DAC1REFL_DAC1R5 0x20
7917 #define _DAC1REFL_REF6 0x40
7918 #define _DAC1REFL_DAC1REF6 0x40
7919 #define _DAC1REFL_R6 0x40
7920 #define _DAC1REFL_DAC1R6 0x40
7921 #define _DAC1REFL_REF7 0x80
7922 #define _DAC1REFL_DAC1REF7 0x80
7923 #define _DAC1REFL_R7 0x80
7924 #define _DAC1REFL_DAC1R7 0x80
7926 //==============================================================================
7929 //==============================================================================
7930 // DAC1CON2 Bits
7932 extern __at(0x0590) __sfr DAC1CON2;
7934 typedef union
7936 struct
7938 unsigned REF8 : 1;
7939 unsigned REF9 : 1;
7940 unsigned REF10 : 1;
7941 unsigned REF11 : 1;
7942 unsigned REF12 : 1;
7943 unsigned REF13 : 1;
7944 unsigned REF14 : 1;
7945 unsigned REF15 : 1;
7948 struct
7950 unsigned DAC1REF8 : 1;
7951 unsigned DAC1REF9 : 1;
7952 unsigned DAC1REF10 : 1;
7953 unsigned DAC1REF11 : 1;
7954 unsigned DAC1REF12 : 1;
7955 unsigned DAC1REF13 : 1;
7956 unsigned DAC1REF14 : 1;
7957 unsigned DAC1REF15 : 1;
7960 struct
7962 unsigned R8 : 1;
7963 unsigned R9 : 1;
7964 unsigned R10 : 1;
7965 unsigned R11 : 1;
7966 unsigned R12 : 1;
7967 unsigned R13 : 1;
7968 unsigned R14 : 1;
7969 unsigned R15 : 1;
7972 struct
7974 unsigned DAC1R8 : 1;
7975 unsigned DAC1R9 : 1;
7976 unsigned DAC1R10 : 1;
7977 unsigned DAC1R11 : 1;
7978 unsigned DAC1R12 : 1;
7979 unsigned DAC1R13 : 1;
7980 unsigned DAC1R14 : 1;
7981 unsigned DAC1R15 : 1;
7983 } __DAC1CON2bits_t;
7985 extern __at(0x0590) volatile __DAC1CON2bits_t DAC1CON2bits;
7987 #define _REF8 0x01
7988 #define _DAC1REF8 0x01
7989 #define _R8 0x01
7990 #define _DAC1R8 0x01
7991 #define _REF9 0x02
7992 #define _DAC1REF9 0x02
7993 #define _R9 0x02
7994 #define _DAC1R9 0x02
7995 #define _REF10 0x04
7996 #define _DAC1REF10 0x04
7997 #define _R10 0x04
7998 #define _DAC1R10 0x04
7999 #define _REF11 0x08
8000 #define _DAC1REF11 0x08
8001 #define _R11 0x08
8002 #define _DAC1R11 0x08
8003 #define _REF12 0x10
8004 #define _DAC1REF12 0x10
8005 #define _R12 0x10
8006 #define _DAC1R12 0x10
8007 #define _REF13 0x20
8008 #define _DAC1REF13 0x20
8009 #define _R13 0x20
8010 #define _DAC1R13 0x20
8011 #define _REF14 0x40
8012 #define _DAC1REF14 0x40
8013 #define _R14 0x40
8014 #define _DAC1R14 0x40
8015 #define _REF15 0x80
8016 #define _DAC1REF15 0x80
8017 #define _R15 0x80
8018 #define _DAC1R15 0x80
8020 //==============================================================================
8023 //==============================================================================
8024 // DAC1REFH Bits
8026 extern __at(0x0590) __sfr DAC1REFH;
8028 typedef union
8030 struct
8032 unsigned REF8 : 1;
8033 unsigned REF9 : 1;
8034 unsigned REF10 : 1;
8035 unsigned REF11 : 1;
8036 unsigned REF12 : 1;
8037 unsigned REF13 : 1;
8038 unsigned REF14 : 1;
8039 unsigned REF15 : 1;
8042 struct
8044 unsigned DAC1REF8 : 1;
8045 unsigned DAC1REF9 : 1;
8046 unsigned DAC1REF10 : 1;
8047 unsigned DAC1REF11 : 1;
8048 unsigned DAC1REF12 : 1;
8049 unsigned DAC1REF13 : 1;
8050 unsigned DAC1REF14 : 1;
8051 unsigned DAC1REF15 : 1;
8054 struct
8056 unsigned R8 : 1;
8057 unsigned R9 : 1;
8058 unsigned R10 : 1;
8059 unsigned R11 : 1;
8060 unsigned R12 : 1;
8061 unsigned R13 : 1;
8062 unsigned R14 : 1;
8063 unsigned R15 : 1;
8066 struct
8068 unsigned DAC1R8 : 1;
8069 unsigned DAC1R9 : 1;
8070 unsigned DAC1R10 : 1;
8071 unsigned DAC1R11 : 1;
8072 unsigned DAC1R12 : 1;
8073 unsigned DAC1R13 : 1;
8074 unsigned DAC1R14 : 1;
8075 unsigned DAC1R15 : 1;
8077 } __DAC1REFHbits_t;
8079 extern __at(0x0590) volatile __DAC1REFHbits_t DAC1REFHbits;
8081 #define _DAC1REFH_REF8 0x01
8082 #define _DAC1REFH_DAC1REF8 0x01
8083 #define _DAC1REFH_R8 0x01
8084 #define _DAC1REFH_DAC1R8 0x01
8085 #define _DAC1REFH_REF9 0x02
8086 #define _DAC1REFH_DAC1REF9 0x02
8087 #define _DAC1REFH_R9 0x02
8088 #define _DAC1REFH_DAC1R9 0x02
8089 #define _DAC1REFH_REF10 0x04
8090 #define _DAC1REFH_DAC1REF10 0x04
8091 #define _DAC1REFH_R10 0x04
8092 #define _DAC1REFH_DAC1R10 0x04
8093 #define _DAC1REFH_REF11 0x08
8094 #define _DAC1REFH_DAC1REF11 0x08
8095 #define _DAC1REFH_R11 0x08
8096 #define _DAC1REFH_DAC1R11 0x08
8097 #define _DAC1REFH_REF12 0x10
8098 #define _DAC1REFH_DAC1REF12 0x10
8099 #define _DAC1REFH_R12 0x10
8100 #define _DAC1REFH_DAC1R12 0x10
8101 #define _DAC1REFH_REF13 0x20
8102 #define _DAC1REFH_DAC1REF13 0x20
8103 #define _DAC1REFH_R13 0x20
8104 #define _DAC1REFH_DAC1R13 0x20
8105 #define _DAC1REFH_REF14 0x40
8106 #define _DAC1REFH_DAC1REF14 0x40
8107 #define _DAC1REFH_R14 0x40
8108 #define _DAC1REFH_DAC1R14 0x40
8109 #define _DAC1REFH_REF15 0x80
8110 #define _DAC1REFH_DAC1REF15 0x80
8111 #define _DAC1REFH_R15 0x80
8112 #define _DAC1REFH_DAC1R15 0x80
8114 //==============================================================================
8117 //==============================================================================
8118 // DAC2CON0 Bits
8120 extern __at(0x0591) __sfr DAC2CON0;
8122 typedef union
8124 struct
8126 unsigned NSS0 : 1;
8127 unsigned NSS1 : 1;
8128 unsigned PSS0 : 1;
8129 unsigned PSS1 : 1;
8130 unsigned OE2 : 1;
8131 unsigned OE1 : 1;
8132 unsigned FM : 1;
8133 unsigned EN : 1;
8136 struct
8138 unsigned DACNSS0 : 1;
8139 unsigned DACNSS1 : 1;
8140 unsigned DACPSS0 : 1;
8141 unsigned DACPSS1 : 1;
8142 unsigned DACOE2 : 1;
8143 unsigned OE : 1;
8144 unsigned DACFM : 1;
8145 unsigned DACEN : 1;
8148 struct
8150 unsigned DAC2NSS0 : 1;
8151 unsigned DAC2NSS1 : 1;
8152 unsigned DAC2PSS0 : 1;
8153 unsigned DAC2PSS1 : 1;
8154 unsigned DAC2OE2 : 1;
8155 unsigned DACOE1 : 1;
8156 unsigned DAC2FM : 1;
8157 unsigned DAC2EN : 1;
8160 struct
8162 unsigned : 1;
8163 unsigned : 1;
8164 unsigned : 1;
8165 unsigned : 1;
8166 unsigned : 1;
8167 unsigned DACOE : 1;
8168 unsigned : 1;
8169 unsigned : 1;
8172 struct
8174 unsigned : 1;
8175 unsigned : 1;
8176 unsigned : 1;
8177 unsigned : 1;
8178 unsigned : 1;
8179 unsigned DAC2OE1 : 1;
8180 unsigned : 1;
8181 unsigned : 1;
8184 struct
8186 unsigned DAC2NSS : 2;
8187 unsigned : 6;
8190 struct
8192 unsigned NSS : 2;
8193 unsigned : 6;
8196 struct
8198 unsigned DACNSS : 2;
8199 unsigned : 6;
8202 struct
8204 unsigned : 2;
8205 unsigned PSS : 2;
8206 unsigned : 4;
8209 struct
8211 unsigned : 2;
8212 unsigned DACPSS : 2;
8213 unsigned : 4;
8216 struct
8218 unsigned : 2;
8219 unsigned DAC2PSS : 2;
8220 unsigned : 4;
8222 } __DAC2CON0bits_t;
8224 extern __at(0x0591) volatile __DAC2CON0bits_t DAC2CON0bits;
8226 #define _DAC2CON0_NSS0 0x01
8227 #define _DAC2CON0_DACNSS0 0x01
8228 #define _DAC2CON0_DAC2NSS0 0x01
8229 #define _DAC2CON0_NSS1 0x02
8230 #define _DAC2CON0_DACNSS1 0x02
8231 #define _DAC2CON0_DAC2NSS1 0x02
8232 #define _DAC2CON0_PSS0 0x04
8233 #define _DAC2CON0_DACPSS0 0x04
8234 #define _DAC2CON0_DAC2PSS0 0x04
8235 #define _DAC2CON0_PSS1 0x08
8236 #define _DAC2CON0_DACPSS1 0x08
8237 #define _DAC2CON0_DAC2PSS1 0x08
8238 #define _DAC2CON0_OE2 0x10
8239 #define _DAC2CON0_DACOE2 0x10
8240 #define _DAC2CON0_DAC2OE2 0x10
8241 #define _DAC2CON0_OE1 0x20
8242 #define _DAC2CON0_OE 0x20
8243 #define _DAC2CON0_DACOE1 0x20
8244 #define _DAC2CON0_DACOE 0x20
8245 #define _DAC2CON0_DAC2OE1 0x20
8246 #define _DAC2CON0_FM 0x40
8247 #define _DAC2CON0_DACFM 0x40
8248 #define _DAC2CON0_DAC2FM 0x40
8249 #define _DAC2CON0_EN 0x80
8250 #define _DAC2CON0_DACEN 0x80
8251 #define _DAC2CON0_DAC2EN 0x80
8253 //==============================================================================
8256 //==============================================================================
8257 // DAC2CON1 Bits
8259 extern __at(0x0592) __sfr DAC2CON1;
8261 typedef union
8263 struct
8265 unsigned REF0 : 1;
8266 unsigned REF1 : 1;
8267 unsigned REF2 : 1;
8268 unsigned REF3 : 1;
8269 unsigned REF4 : 1;
8270 unsigned REF5 : 1;
8271 unsigned REF6 : 1;
8272 unsigned REF7 : 1;
8275 struct
8277 unsigned DAC2REF0 : 1;
8278 unsigned DAC2REF1 : 1;
8279 unsigned DAC2REF2 : 1;
8280 unsigned DAC2REF3 : 1;
8281 unsigned DAC2REF4 : 1;
8282 unsigned DAC2REF5 : 1;
8283 unsigned DAC2REF6 : 1;
8284 unsigned DAC2REF7 : 1;
8287 struct
8289 unsigned R0 : 1;
8290 unsigned R1 : 1;
8291 unsigned R2 : 1;
8292 unsigned R3 : 1;
8293 unsigned R4 : 1;
8294 unsigned R5 : 1;
8295 unsigned R6 : 1;
8296 unsigned R7 : 1;
8299 struct
8301 unsigned DAC2R0 : 1;
8302 unsigned DAC2R1 : 1;
8303 unsigned DAC2R2 : 1;
8304 unsigned DAC2R3 : 1;
8305 unsigned DAC2R4 : 1;
8306 unsigned DAC2R5 : 1;
8307 unsigned DAC2R6 : 1;
8308 unsigned DAC2R7 : 1;
8310 } __DAC2CON1bits_t;
8312 extern __at(0x0592) volatile __DAC2CON1bits_t DAC2CON1bits;
8314 #define _DAC2CON1_REF0 0x01
8315 #define _DAC2CON1_DAC2REF0 0x01
8316 #define _DAC2CON1_R0 0x01
8317 #define _DAC2CON1_DAC2R0 0x01
8318 #define _DAC2CON1_REF1 0x02
8319 #define _DAC2CON1_DAC2REF1 0x02
8320 #define _DAC2CON1_R1 0x02
8321 #define _DAC2CON1_DAC2R1 0x02
8322 #define _DAC2CON1_REF2 0x04
8323 #define _DAC2CON1_DAC2REF2 0x04
8324 #define _DAC2CON1_R2 0x04
8325 #define _DAC2CON1_DAC2R2 0x04
8326 #define _DAC2CON1_REF3 0x08
8327 #define _DAC2CON1_DAC2REF3 0x08
8328 #define _DAC2CON1_R3 0x08
8329 #define _DAC2CON1_DAC2R3 0x08
8330 #define _DAC2CON1_REF4 0x10
8331 #define _DAC2CON1_DAC2REF4 0x10
8332 #define _DAC2CON1_R4 0x10
8333 #define _DAC2CON1_DAC2R4 0x10
8334 #define _DAC2CON1_REF5 0x20
8335 #define _DAC2CON1_DAC2REF5 0x20
8336 #define _DAC2CON1_R5 0x20
8337 #define _DAC2CON1_DAC2R5 0x20
8338 #define _DAC2CON1_REF6 0x40
8339 #define _DAC2CON1_DAC2REF6 0x40
8340 #define _DAC2CON1_R6 0x40
8341 #define _DAC2CON1_DAC2R6 0x40
8342 #define _DAC2CON1_REF7 0x80
8343 #define _DAC2CON1_DAC2REF7 0x80
8344 #define _DAC2CON1_R7 0x80
8345 #define _DAC2CON1_DAC2R7 0x80
8347 //==============================================================================
8349 extern __at(0x0592) __sfr DAC2REF;
8351 //==============================================================================
8352 // DAC2REFL Bits
8354 extern __at(0x0592) __sfr DAC2REFL;
8356 typedef union
8358 struct
8360 unsigned REF0 : 1;
8361 unsigned REF1 : 1;
8362 unsigned REF2 : 1;
8363 unsigned REF3 : 1;
8364 unsigned REF4 : 1;
8365 unsigned REF5 : 1;
8366 unsigned REF6 : 1;
8367 unsigned REF7 : 1;
8370 struct
8372 unsigned DAC2REF0 : 1;
8373 unsigned DAC2REF1 : 1;
8374 unsigned DAC2REF2 : 1;
8375 unsigned DAC2REF3 : 1;
8376 unsigned DAC2REF4 : 1;
8377 unsigned DAC2REF5 : 1;
8378 unsigned DAC2REF6 : 1;
8379 unsigned DAC2REF7 : 1;
8382 struct
8384 unsigned R0 : 1;
8385 unsigned R1 : 1;
8386 unsigned R2 : 1;
8387 unsigned R3 : 1;
8388 unsigned R4 : 1;
8389 unsigned R5 : 1;
8390 unsigned R6 : 1;
8391 unsigned R7 : 1;
8394 struct
8396 unsigned DAC2R0 : 1;
8397 unsigned DAC2R1 : 1;
8398 unsigned DAC2R2 : 1;
8399 unsigned DAC2R3 : 1;
8400 unsigned DAC2R4 : 1;
8401 unsigned DAC2R5 : 1;
8402 unsigned DAC2R6 : 1;
8403 unsigned DAC2R7 : 1;
8405 } __DAC2REFLbits_t;
8407 extern __at(0x0592) volatile __DAC2REFLbits_t DAC2REFLbits;
8409 #define _DAC2REFL_REF0 0x01
8410 #define _DAC2REFL_DAC2REF0 0x01
8411 #define _DAC2REFL_R0 0x01
8412 #define _DAC2REFL_DAC2R0 0x01
8413 #define _DAC2REFL_REF1 0x02
8414 #define _DAC2REFL_DAC2REF1 0x02
8415 #define _DAC2REFL_R1 0x02
8416 #define _DAC2REFL_DAC2R1 0x02
8417 #define _DAC2REFL_REF2 0x04
8418 #define _DAC2REFL_DAC2REF2 0x04
8419 #define _DAC2REFL_R2 0x04
8420 #define _DAC2REFL_DAC2R2 0x04
8421 #define _DAC2REFL_REF3 0x08
8422 #define _DAC2REFL_DAC2REF3 0x08
8423 #define _DAC2REFL_R3 0x08
8424 #define _DAC2REFL_DAC2R3 0x08
8425 #define _DAC2REFL_REF4 0x10
8426 #define _DAC2REFL_DAC2REF4 0x10
8427 #define _DAC2REFL_R4 0x10
8428 #define _DAC2REFL_DAC2R4 0x10
8429 #define _DAC2REFL_REF5 0x20
8430 #define _DAC2REFL_DAC2REF5 0x20
8431 #define _DAC2REFL_R5 0x20
8432 #define _DAC2REFL_DAC2R5 0x20
8433 #define _DAC2REFL_REF6 0x40
8434 #define _DAC2REFL_DAC2REF6 0x40
8435 #define _DAC2REFL_R6 0x40
8436 #define _DAC2REFL_DAC2R6 0x40
8437 #define _DAC2REFL_REF7 0x80
8438 #define _DAC2REFL_DAC2REF7 0x80
8439 #define _DAC2REFL_R7 0x80
8440 #define _DAC2REFL_DAC2R7 0x80
8442 //==============================================================================
8445 //==============================================================================
8446 // DAC2CON2 Bits
8448 extern __at(0x0593) __sfr DAC2CON2;
8450 typedef union
8452 struct
8454 unsigned REF8 : 1;
8455 unsigned REF9 : 1;
8456 unsigned REF10 : 1;
8457 unsigned REF11 : 1;
8458 unsigned REF12 : 1;
8459 unsigned REF13 : 1;
8460 unsigned REF14 : 1;
8461 unsigned REF15 : 1;
8464 struct
8466 unsigned DAC2REF8 : 1;
8467 unsigned DAC2REF9 : 1;
8468 unsigned DAC2REF10 : 1;
8469 unsigned DAC2REF11 : 1;
8470 unsigned DAC2REF12 : 1;
8471 unsigned DAC2REF13 : 1;
8472 unsigned DAC2REF14 : 1;
8473 unsigned DAC2REF15 : 1;
8476 struct
8478 unsigned R8 : 1;
8479 unsigned R9 : 1;
8480 unsigned R10 : 1;
8481 unsigned R11 : 1;
8482 unsigned R12 : 1;
8483 unsigned R13 : 1;
8484 unsigned R14 : 1;
8485 unsigned R15 : 1;
8488 struct
8490 unsigned DAC2R8 : 1;
8491 unsigned DAC2R9 : 1;
8492 unsigned DAC2R10 : 1;
8493 unsigned DAC2R11 : 1;
8494 unsigned DAC2R12 : 1;
8495 unsigned DAC2R13 : 1;
8496 unsigned DAC2R14 : 1;
8497 unsigned DAC2R15 : 1;
8499 } __DAC2CON2bits_t;
8501 extern __at(0x0593) volatile __DAC2CON2bits_t DAC2CON2bits;
8503 #define _DAC2CON2_REF8 0x01
8504 #define _DAC2CON2_DAC2REF8 0x01
8505 #define _DAC2CON2_R8 0x01
8506 #define _DAC2CON2_DAC2R8 0x01
8507 #define _DAC2CON2_REF9 0x02
8508 #define _DAC2CON2_DAC2REF9 0x02
8509 #define _DAC2CON2_R9 0x02
8510 #define _DAC2CON2_DAC2R9 0x02
8511 #define _DAC2CON2_REF10 0x04
8512 #define _DAC2CON2_DAC2REF10 0x04
8513 #define _DAC2CON2_R10 0x04
8514 #define _DAC2CON2_DAC2R10 0x04
8515 #define _DAC2CON2_REF11 0x08
8516 #define _DAC2CON2_DAC2REF11 0x08
8517 #define _DAC2CON2_R11 0x08
8518 #define _DAC2CON2_DAC2R11 0x08
8519 #define _DAC2CON2_REF12 0x10
8520 #define _DAC2CON2_DAC2REF12 0x10
8521 #define _DAC2CON2_R12 0x10
8522 #define _DAC2CON2_DAC2R12 0x10
8523 #define _DAC2CON2_REF13 0x20
8524 #define _DAC2CON2_DAC2REF13 0x20
8525 #define _DAC2CON2_R13 0x20
8526 #define _DAC2CON2_DAC2R13 0x20
8527 #define _DAC2CON2_REF14 0x40
8528 #define _DAC2CON2_DAC2REF14 0x40
8529 #define _DAC2CON2_R14 0x40
8530 #define _DAC2CON2_DAC2R14 0x40
8531 #define _DAC2CON2_REF15 0x80
8532 #define _DAC2CON2_DAC2REF15 0x80
8533 #define _DAC2CON2_R15 0x80
8534 #define _DAC2CON2_DAC2R15 0x80
8536 //==============================================================================
8539 //==============================================================================
8540 // DAC2REFH Bits
8542 extern __at(0x0593) __sfr DAC2REFH;
8544 typedef union
8546 struct
8548 unsigned REF8 : 1;
8549 unsigned REF9 : 1;
8550 unsigned REF10 : 1;
8551 unsigned REF11 : 1;
8552 unsigned REF12 : 1;
8553 unsigned REF13 : 1;
8554 unsigned REF14 : 1;
8555 unsigned REF15 : 1;
8558 struct
8560 unsigned DAC2REF8 : 1;
8561 unsigned DAC2REF9 : 1;
8562 unsigned DAC2REF10 : 1;
8563 unsigned DAC2REF11 : 1;
8564 unsigned DAC2REF12 : 1;
8565 unsigned DAC2REF13 : 1;
8566 unsigned DAC2REF14 : 1;
8567 unsigned DAC2REF15 : 1;
8570 struct
8572 unsigned R8 : 1;
8573 unsigned R9 : 1;
8574 unsigned R10 : 1;
8575 unsigned R11 : 1;
8576 unsigned R12 : 1;
8577 unsigned R13 : 1;
8578 unsigned R14 : 1;
8579 unsigned R15 : 1;
8582 struct
8584 unsigned DAC2R8 : 1;
8585 unsigned DAC2R9 : 1;
8586 unsigned DAC2R10 : 1;
8587 unsigned DAC2R11 : 1;
8588 unsigned DAC2R12 : 1;
8589 unsigned DAC2R13 : 1;
8590 unsigned DAC2R14 : 1;
8591 unsigned DAC2R15 : 1;
8593 } __DAC2REFHbits_t;
8595 extern __at(0x0593) volatile __DAC2REFHbits_t DAC2REFHbits;
8597 #define _DAC2REFH_REF8 0x01
8598 #define _DAC2REFH_DAC2REF8 0x01
8599 #define _DAC2REFH_R8 0x01
8600 #define _DAC2REFH_DAC2R8 0x01
8601 #define _DAC2REFH_REF9 0x02
8602 #define _DAC2REFH_DAC2REF9 0x02
8603 #define _DAC2REFH_R9 0x02
8604 #define _DAC2REFH_DAC2R9 0x02
8605 #define _DAC2REFH_REF10 0x04
8606 #define _DAC2REFH_DAC2REF10 0x04
8607 #define _DAC2REFH_R10 0x04
8608 #define _DAC2REFH_DAC2R10 0x04
8609 #define _DAC2REFH_REF11 0x08
8610 #define _DAC2REFH_DAC2REF11 0x08
8611 #define _DAC2REFH_R11 0x08
8612 #define _DAC2REFH_DAC2R11 0x08
8613 #define _DAC2REFH_REF12 0x10
8614 #define _DAC2REFH_DAC2REF12 0x10
8615 #define _DAC2REFH_R12 0x10
8616 #define _DAC2REFH_DAC2R12 0x10
8617 #define _DAC2REFH_REF13 0x20
8618 #define _DAC2REFH_DAC2REF13 0x20
8619 #define _DAC2REFH_R13 0x20
8620 #define _DAC2REFH_DAC2R13 0x20
8621 #define _DAC2REFH_REF14 0x40
8622 #define _DAC2REFH_DAC2REF14 0x40
8623 #define _DAC2REFH_R14 0x40
8624 #define _DAC2REFH_DAC2R14 0x40
8625 #define _DAC2REFH_REF15 0x80
8626 #define _DAC2REFH_DAC2REF15 0x80
8627 #define _DAC2REFH_R15 0x80
8628 #define _DAC2REFH_DAC2R15 0x80
8630 //==============================================================================
8633 //==============================================================================
8634 // DAC3CON0 Bits
8636 extern __at(0x0594) __sfr DAC3CON0;
8638 typedef union
8640 struct
8642 unsigned NSS0 : 1;
8643 unsigned NSS1 : 1;
8644 unsigned PSS0 : 1;
8645 unsigned PSS1 : 1;
8646 unsigned OE2 : 1;
8647 unsigned OE1 : 1;
8648 unsigned : 1;
8649 unsigned EN : 1;
8652 struct
8654 unsigned DACNSS0 : 1;
8655 unsigned DACNSS1 : 1;
8656 unsigned DACPSS0 : 1;
8657 unsigned DACPSS1 : 1;
8658 unsigned DACOE2 : 1;
8659 unsigned DACOE1 : 1;
8660 unsigned : 1;
8661 unsigned DACEN : 1;
8664 struct
8666 unsigned DAC3NSS0 : 1;
8667 unsigned DAC3NSS1 : 1;
8668 unsigned DAC3PSS0 : 1;
8669 unsigned DAC3PSS1 : 1;
8670 unsigned DAC3OE2 : 1;
8671 unsigned DAC3OE1 : 1;
8672 unsigned : 1;
8673 unsigned DAC3EN : 1;
8676 struct
8678 unsigned DACNSS : 2;
8679 unsigned : 6;
8682 struct
8684 unsigned DAC3NSS : 2;
8685 unsigned : 6;
8688 struct
8690 unsigned NSS : 2;
8691 unsigned : 6;
8694 struct
8696 unsigned : 2;
8697 unsigned PSS : 2;
8698 unsigned : 4;
8701 struct
8703 unsigned : 2;
8704 unsigned DACPSS : 2;
8705 unsigned : 4;
8708 struct
8710 unsigned : 2;
8711 unsigned DAC3PSS : 2;
8712 unsigned : 4;
8714 } __DAC3CON0bits_t;
8716 extern __at(0x0594) volatile __DAC3CON0bits_t DAC3CON0bits;
8718 #define _DAC3CON0_NSS0 0x01
8719 #define _DAC3CON0_DACNSS0 0x01
8720 #define _DAC3CON0_DAC3NSS0 0x01
8721 #define _DAC3CON0_NSS1 0x02
8722 #define _DAC3CON0_DACNSS1 0x02
8723 #define _DAC3CON0_DAC3NSS1 0x02
8724 #define _DAC3CON0_PSS0 0x04
8725 #define _DAC3CON0_DACPSS0 0x04
8726 #define _DAC3CON0_DAC3PSS0 0x04
8727 #define _DAC3CON0_PSS1 0x08
8728 #define _DAC3CON0_DACPSS1 0x08
8729 #define _DAC3CON0_DAC3PSS1 0x08
8730 #define _DAC3CON0_OE2 0x10
8731 #define _DAC3CON0_DACOE2 0x10
8732 #define _DAC3CON0_DAC3OE2 0x10
8733 #define _DAC3CON0_OE1 0x20
8734 #define _DAC3CON0_DACOE1 0x20
8735 #define _DAC3CON0_DAC3OE1 0x20
8736 #define _DAC3CON0_EN 0x80
8737 #define _DAC3CON0_DACEN 0x80
8738 #define _DAC3CON0_DAC3EN 0x80
8740 //==============================================================================
8743 //==============================================================================
8744 // DAC3CON1 Bits
8746 extern __at(0x0595) __sfr DAC3CON1;
8748 typedef union
8750 struct
8752 unsigned DACR0 : 1;
8753 unsigned DACR1 : 1;
8754 unsigned DACR2 : 1;
8755 unsigned DACR3 : 1;
8756 unsigned DACR4 : 1;
8757 unsigned : 1;
8758 unsigned : 1;
8759 unsigned : 1;
8762 struct
8764 unsigned R0 : 1;
8765 unsigned R1 : 1;
8766 unsigned R2 : 1;
8767 unsigned R3 : 1;
8768 unsigned R4 : 1;
8769 unsigned : 1;
8770 unsigned : 1;
8771 unsigned : 1;
8774 struct
8776 unsigned DAC3R0 : 1;
8777 unsigned DAC3R1 : 1;
8778 unsigned DAC3R2 : 1;
8779 unsigned DAC3R3 : 1;
8780 unsigned DAC3R4 : 1;
8781 unsigned : 1;
8782 unsigned : 1;
8783 unsigned : 1;
8786 struct
8788 unsigned REF0 : 1;
8789 unsigned REF1 : 1;
8790 unsigned REF2 : 1;
8791 unsigned REF3 : 1;
8792 unsigned REF4 : 1;
8793 unsigned : 1;
8794 unsigned : 1;
8795 unsigned : 1;
8798 struct
8800 unsigned DAC3REF0 : 1;
8801 unsigned DAC3REF1 : 1;
8802 unsigned DAC3REF2 : 1;
8803 unsigned DAC3REF3 : 1;
8804 unsigned DAC3REF4 : 1;
8805 unsigned : 1;
8806 unsigned : 1;
8807 unsigned : 1;
8810 struct
8812 unsigned DAC3R : 5;
8813 unsigned : 3;
8816 struct
8818 unsigned DAC3REF : 5;
8819 unsigned : 3;
8822 struct
8824 unsigned REF : 5;
8825 unsigned : 3;
8828 struct
8830 unsigned R : 5;
8831 unsigned : 3;
8834 struct
8836 unsigned DACR : 5;
8837 unsigned : 3;
8839 } __DAC3CON1bits_t;
8841 extern __at(0x0595) volatile __DAC3CON1bits_t DAC3CON1bits;
8843 #define _DAC3CON1_DACR0 0x01
8844 #define _DAC3CON1_R0 0x01
8845 #define _DAC3CON1_DAC3R0 0x01
8846 #define _DAC3CON1_REF0 0x01
8847 #define _DAC3CON1_DAC3REF0 0x01
8848 #define _DAC3CON1_DACR1 0x02
8849 #define _DAC3CON1_R1 0x02
8850 #define _DAC3CON1_DAC3R1 0x02
8851 #define _DAC3CON1_REF1 0x02
8852 #define _DAC3CON1_DAC3REF1 0x02
8853 #define _DAC3CON1_DACR2 0x04
8854 #define _DAC3CON1_R2 0x04
8855 #define _DAC3CON1_DAC3R2 0x04
8856 #define _DAC3CON1_REF2 0x04
8857 #define _DAC3CON1_DAC3REF2 0x04
8858 #define _DAC3CON1_DACR3 0x08
8859 #define _DAC3CON1_R3 0x08
8860 #define _DAC3CON1_DAC3R3 0x08
8861 #define _DAC3CON1_REF3 0x08
8862 #define _DAC3CON1_DAC3REF3 0x08
8863 #define _DAC3CON1_DACR4 0x10
8864 #define _DAC3CON1_R4 0x10
8865 #define _DAC3CON1_DAC3R4 0x10
8866 #define _DAC3CON1_REF4 0x10
8867 #define _DAC3CON1_DAC3REF4 0x10
8869 //==============================================================================
8872 //==============================================================================
8873 // DAC3REF Bits
8875 extern __at(0x0595) __sfr DAC3REF;
8877 typedef union
8879 struct
8881 unsigned DACR0 : 1;
8882 unsigned DACR1 : 1;
8883 unsigned DACR2 : 1;
8884 unsigned DACR3 : 1;
8885 unsigned DACR4 : 1;
8886 unsigned : 1;
8887 unsigned : 1;
8888 unsigned : 1;
8891 struct
8893 unsigned R0 : 1;
8894 unsigned R1 : 1;
8895 unsigned R2 : 1;
8896 unsigned R3 : 1;
8897 unsigned R4 : 1;
8898 unsigned : 1;
8899 unsigned : 1;
8900 unsigned : 1;
8903 struct
8905 unsigned DAC3R0 : 1;
8906 unsigned DAC3R1 : 1;
8907 unsigned DAC3R2 : 1;
8908 unsigned DAC3R3 : 1;
8909 unsigned DAC3R4 : 1;
8910 unsigned : 1;
8911 unsigned : 1;
8912 unsigned : 1;
8915 struct
8917 unsigned REF0 : 1;
8918 unsigned REF1 : 1;
8919 unsigned REF2 : 1;
8920 unsigned REF3 : 1;
8921 unsigned REF4 : 1;
8922 unsigned : 1;
8923 unsigned : 1;
8924 unsigned : 1;
8927 struct
8929 unsigned DAC3REF0 : 1;
8930 unsigned DAC3REF1 : 1;
8931 unsigned DAC3REF2 : 1;
8932 unsigned DAC3REF3 : 1;
8933 unsigned DAC3REF4 : 1;
8934 unsigned : 1;
8935 unsigned : 1;
8936 unsigned : 1;
8939 struct
8941 unsigned DACR : 5;
8942 unsigned : 3;
8945 struct
8947 unsigned DAC3REF : 5;
8948 unsigned : 3;
8951 struct
8953 unsigned R : 5;
8954 unsigned : 3;
8957 struct
8959 unsigned REF : 5;
8960 unsigned : 3;
8963 struct
8965 unsigned DAC3R : 5;
8966 unsigned : 3;
8968 } __DAC3REFbits_t;
8970 extern __at(0x0595) volatile __DAC3REFbits_t DAC3REFbits;
8972 #define _DAC3REF_DACR0 0x01
8973 #define _DAC3REF_R0 0x01
8974 #define _DAC3REF_DAC3R0 0x01
8975 #define _DAC3REF_REF0 0x01
8976 #define _DAC3REF_DAC3REF0 0x01
8977 #define _DAC3REF_DACR1 0x02
8978 #define _DAC3REF_R1 0x02
8979 #define _DAC3REF_DAC3R1 0x02
8980 #define _DAC3REF_REF1 0x02
8981 #define _DAC3REF_DAC3REF1 0x02
8982 #define _DAC3REF_DACR2 0x04
8983 #define _DAC3REF_R2 0x04
8984 #define _DAC3REF_DAC3R2 0x04
8985 #define _DAC3REF_REF2 0x04
8986 #define _DAC3REF_DAC3REF2 0x04
8987 #define _DAC3REF_DACR3 0x08
8988 #define _DAC3REF_R3 0x08
8989 #define _DAC3REF_DAC3R3 0x08
8990 #define _DAC3REF_REF3 0x08
8991 #define _DAC3REF_DAC3REF3 0x08
8992 #define _DAC3REF_DACR4 0x10
8993 #define _DAC3REF_R4 0x10
8994 #define _DAC3REF_DAC3R4 0x10
8995 #define _DAC3REF_REF4 0x10
8996 #define _DAC3REF_DAC3REF4 0x10
8998 //==============================================================================
9001 //==============================================================================
9002 // DAC4CON0 Bits
9004 extern __at(0x0596) __sfr DAC4CON0;
9006 typedef union
9008 struct
9010 unsigned NSS0 : 1;
9011 unsigned NSS1 : 1;
9012 unsigned PSS0 : 1;
9013 unsigned PSS1 : 1;
9014 unsigned OE2 : 1;
9015 unsigned OE1 : 1;
9016 unsigned : 1;
9017 unsigned EN : 1;
9020 struct
9022 unsigned DACNSS0 : 1;
9023 unsigned DACNSS1 : 1;
9024 unsigned DACPSS0 : 1;
9025 unsigned DACPSS1 : 1;
9026 unsigned DACOE2 : 1;
9027 unsigned DACOE1 : 1;
9028 unsigned : 1;
9029 unsigned DACEN : 1;
9032 struct
9034 unsigned DAC4NSS0 : 1;
9035 unsigned DAC4NSS1 : 1;
9036 unsigned DAC4PSS0 : 1;
9037 unsigned DAC4PSS1 : 1;
9038 unsigned DAC4OE2 : 1;
9039 unsigned DAC4OE1 : 1;
9040 unsigned : 1;
9041 unsigned DAC4EN : 1;
9044 struct
9046 unsigned NSS : 2;
9047 unsigned : 6;
9050 struct
9052 unsigned DACNSS : 2;
9053 unsigned : 6;
9056 struct
9058 unsigned DAC4NSS : 2;
9059 unsigned : 6;
9062 struct
9064 unsigned : 2;
9065 unsigned DAC4PSS : 2;
9066 unsigned : 4;
9069 struct
9071 unsigned : 2;
9072 unsigned PSS : 2;
9073 unsigned : 4;
9076 struct
9078 unsigned : 2;
9079 unsigned DACPSS : 2;
9080 unsigned : 4;
9082 } __DAC4CON0bits_t;
9084 extern __at(0x0596) volatile __DAC4CON0bits_t DAC4CON0bits;
9086 #define _DAC4CON0_NSS0 0x01
9087 #define _DAC4CON0_DACNSS0 0x01
9088 #define _DAC4CON0_DAC4NSS0 0x01
9089 #define _DAC4CON0_NSS1 0x02
9090 #define _DAC4CON0_DACNSS1 0x02
9091 #define _DAC4CON0_DAC4NSS1 0x02
9092 #define _DAC4CON0_PSS0 0x04
9093 #define _DAC4CON0_DACPSS0 0x04
9094 #define _DAC4CON0_DAC4PSS0 0x04
9095 #define _DAC4CON0_PSS1 0x08
9096 #define _DAC4CON0_DACPSS1 0x08
9097 #define _DAC4CON0_DAC4PSS1 0x08
9098 #define _DAC4CON0_OE2 0x10
9099 #define _DAC4CON0_DACOE2 0x10
9100 #define _DAC4CON0_DAC4OE2 0x10
9101 #define _DAC4CON0_OE1 0x20
9102 #define _DAC4CON0_DACOE1 0x20
9103 #define _DAC4CON0_DAC4OE1 0x20
9104 #define _DAC4CON0_EN 0x80
9105 #define _DAC4CON0_DACEN 0x80
9106 #define _DAC4CON0_DAC4EN 0x80
9108 //==============================================================================
9111 //==============================================================================
9112 // DAC4CON1 Bits
9114 extern __at(0x0597) __sfr DAC4CON1;
9116 typedef union
9118 struct
9120 unsigned DACR0 : 1;
9121 unsigned DACR1 : 1;
9122 unsigned DACR2 : 1;
9123 unsigned DACR3 : 1;
9124 unsigned DACR4 : 1;
9125 unsigned : 1;
9126 unsigned : 1;
9127 unsigned : 1;
9130 struct
9132 unsigned R0 : 1;
9133 unsigned R1 : 1;
9134 unsigned R2 : 1;
9135 unsigned R3 : 1;
9136 unsigned R4 : 1;
9137 unsigned : 1;
9138 unsigned : 1;
9139 unsigned : 1;
9142 struct
9144 unsigned DAC4R0 : 1;
9145 unsigned DAC4R1 : 1;
9146 unsigned DAC4R2 : 1;
9147 unsigned DAC4R3 : 1;
9148 unsigned DAC4R4 : 1;
9149 unsigned : 1;
9150 unsigned : 1;
9151 unsigned : 1;
9154 struct
9156 unsigned REF0 : 1;
9157 unsigned REF1 : 1;
9158 unsigned REF2 : 1;
9159 unsigned REF3 : 1;
9160 unsigned REF4 : 1;
9161 unsigned : 1;
9162 unsigned : 1;
9163 unsigned : 1;
9166 struct
9168 unsigned DAC4REF0 : 1;
9169 unsigned DAC4REF1 : 1;
9170 unsigned DAC4REF2 : 1;
9171 unsigned DAC4REF3 : 1;
9172 unsigned DAC4REF4 : 1;
9173 unsigned : 1;
9174 unsigned : 1;
9175 unsigned : 1;
9178 struct
9180 unsigned DAC4REF : 5;
9181 unsigned : 3;
9184 struct
9186 unsigned R : 5;
9187 unsigned : 3;
9190 struct
9192 unsigned REF : 5;
9193 unsigned : 3;
9196 struct
9198 unsigned DACR : 5;
9199 unsigned : 3;
9202 struct
9204 unsigned DAC4R : 5;
9205 unsigned : 3;
9207 } __DAC4CON1bits_t;
9209 extern __at(0x0597) volatile __DAC4CON1bits_t DAC4CON1bits;
9211 #define _DAC4CON1_DACR0 0x01
9212 #define _DAC4CON1_R0 0x01
9213 #define _DAC4CON1_DAC4R0 0x01
9214 #define _DAC4CON1_REF0 0x01
9215 #define _DAC4CON1_DAC4REF0 0x01
9216 #define _DAC4CON1_DACR1 0x02
9217 #define _DAC4CON1_R1 0x02
9218 #define _DAC4CON1_DAC4R1 0x02
9219 #define _DAC4CON1_REF1 0x02
9220 #define _DAC4CON1_DAC4REF1 0x02
9221 #define _DAC4CON1_DACR2 0x04
9222 #define _DAC4CON1_R2 0x04
9223 #define _DAC4CON1_DAC4R2 0x04
9224 #define _DAC4CON1_REF2 0x04
9225 #define _DAC4CON1_DAC4REF2 0x04
9226 #define _DAC4CON1_DACR3 0x08
9227 #define _DAC4CON1_R3 0x08
9228 #define _DAC4CON1_DAC4R3 0x08
9229 #define _DAC4CON1_REF3 0x08
9230 #define _DAC4CON1_DAC4REF3 0x08
9231 #define _DAC4CON1_DACR4 0x10
9232 #define _DAC4CON1_R4 0x10
9233 #define _DAC4CON1_DAC4R4 0x10
9234 #define _DAC4CON1_REF4 0x10
9235 #define _DAC4CON1_DAC4REF4 0x10
9237 //==============================================================================
9240 //==============================================================================
9241 // DAC4REF Bits
9243 extern __at(0x0597) __sfr DAC4REF;
9245 typedef union
9247 struct
9249 unsigned DACR0 : 1;
9250 unsigned DACR1 : 1;
9251 unsigned DACR2 : 1;
9252 unsigned DACR3 : 1;
9253 unsigned DACR4 : 1;
9254 unsigned : 1;
9255 unsigned : 1;
9256 unsigned : 1;
9259 struct
9261 unsigned R0 : 1;
9262 unsigned R1 : 1;
9263 unsigned R2 : 1;
9264 unsigned R3 : 1;
9265 unsigned R4 : 1;
9266 unsigned : 1;
9267 unsigned : 1;
9268 unsigned : 1;
9271 struct
9273 unsigned DAC4R0 : 1;
9274 unsigned DAC4R1 : 1;
9275 unsigned DAC4R2 : 1;
9276 unsigned DAC4R3 : 1;
9277 unsigned DAC4R4 : 1;
9278 unsigned : 1;
9279 unsigned : 1;
9280 unsigned : 1;
9283 struct
9285 unsigned REF0 : 1;
9286 unsigned REF1 : 1;
9287 unsigned REF2 : 1;
9288 unsigned REF3 : 1;
9289 unsigned REF4 : 1;
9290 unsigned : 1;
9291 unsigned : 1;
9292 unsigned : 1;
9295 struct
9297 unsigned DAC4REF0 : 1;
9298 unsigned DAC4REF1 : 1;
9299 unsigned DAC4REF2 : 1;
9300 unsigned DAC4REF3 : 1;
9301 unsigned DAC4REF4 : 1;
9302 unsigned : 1;
9303 unsigned : 1;
9304 unsigned : 1;
9307 struct
9309 unsigned REF : 5;
9310 unsigned : 3;
9313 struct
9315 unsigned DAC4REF : 5;
9316 unsigned : 3;
9319 struct
9321 unsigned R : 5;
9322 unsigned : 3;
9325 struct
9327 unsigned DACR : 5;
9328 unsigned : 3;
9331 struct
9333 unsigned DAC4R : 5;
9334 unsigned : 3;
9336 } __DAC4REFbits_t;
9338 extern __at(0x0597) volatile __DAC4REFbits_t DAC4REFbits;
9340 #define _DAC4REF_DACR0 0x01
9341 #define _DAC4REF_R0 0x01
9342 #define _DAC4REF_DAC4R0 0x01
9343 #define _DAC4REF_REF0 0x01
9344 #define _DAC4REF_DAC4REF0 0x01
9345 #define _DAC4REF_DACR1 0x02
9346 #define _DAC4REF_R1 0x02
9347 #define _DAC4REF_DAC4R1 0x02
9348 #define _DAC4REF_REF1 0x02
9349 #define _DAC4REF_DAC4REF1 0x02
9350 #define _DAC4REF_DACR2 0x04
9351 #define _DAC4REF_R2 0x04
9352 #define _DAC4REF_DAC4R2 0x04
9353 #define _DAC4REF_REF2 0x04
9354 #define _DAC4REF_DAC4REF2 0x04
9355 #define _DAC4REF_DACR3 0x08
9356 #define _DAC4REF_R3 0x08
9357 #define _DAC4REF_DAC4R3 0x08
9358 #define _DAC4REF_REF3 0x08
9359 #define _DAC4REF_DAC4REF3 0x08
9360 #define _DAC4REF_DACR4 0x10
9361 #define _DAC4REF_R4 0x10
9362 #define _DAC4REF_DAC4R4 0x10
9363 #define _DAC4REF_REF4 0x10
9364 #define _DAC4REF_DAC4REF4 0x10
9366 //==============================================================================
9369 //==============================================================================
9370 // DAC5CON0 Bits
9372 extern __at(0x0598) __sfr DAC5CON0;
9374 typedef union
9376 struct
9378 unsigned NSS0 : 1;
9379 unsigned NSS1 : 1;
9380 unsigned PSS0 : 1;
9381 unsigned PSS1 : 1;
9382 unsigned OE2 : 1;
9383 unsigned OE1 : 1;
9384 unsigned FM : 1;
9385 unsigned EN : 1;
9388 struct
9390 unsigned DACNSS0 : 1;
9391 unsigned DACNSS1 : 1;
9392 unsigned DACPSS0 : 1;
9393 unsigned DACPSS1 : 1;
9394 unsigned DACOE2 : 1;
9395 unsigned OE : 1;
9396 unsigned DACFM : 1;
9397 unsigned DACEN : 1;
9400 struct
9402 unsigned DAC5NSS0 : 1;
9403 unsigned DAC5NSS1 : 1;
9404 unsigned DAC5PSS0 : 1;
9405 unsigned DAC5PSS1 : 1;
9406 unsigned DAC5OE2 : 1;
9407 unsigned DACOE1 : 1;
9408 unsigned DAC5FM : 1;
9409 unsigned DAC5EN : 1;
9412 struct
9414 unsigned : 1;
9415 unsigned : 1;
9416 unsigned : 1;
9417 unsigned : 1;
9418 unsigned : 1;
9419 unsigned DACOE : 1;
9420 unsigned : 1;
9421 unsigned : 1;
9424 struct
9426 unsigned : 1;
9427 unsigned : 1;
9428 unsigned : 1;
9429 unsigned : 1;
9430 unsigned : 1;
9431 unsigned DAC5OE1 : 1;
9432 unsigned : 1;
9433 unsigned : 1;
9436 struct
9438 unsigned DACNSS : 2;
9439 unsigned : 6;
9442 struct
9444 unsigned NSS : 2;
9445 unsigned : 6;
9448 struct
9450 unsigned DAC5NSS : 2;
9451 unsigned : 6;
9454 struct
9456 unsigned : 2;
9457 unsigned PSS : 2;
9458 unsigned : 4;
9461 struct
9463 unsigned : 2;
9464 unsigned DACPSS : 2;
9465 unsigned : 4;
9468 struct
9470 unsigned : 2;
9471 unsigned DAC5PSS : 2;
9472 unsigned : 4;
9474 } __DAC5CON0bits_t;
9476 extern __at(0x0598) volatile __DAC5CON0bits_t DAC5CON0bits;
9478 #define _DAC5CON0_NSS0 0x01
9479 #define _DAC5CON0_DACNSS0 0x01
9480 #define _DAC5CON0_DAC5NSS0 0x01
9481 #define _DAC5CON0_NSS1 0x02
9482 #define _DAC5CON0_DACNSS1 0x02
9483 #define _DAC5CON0_DAC5NSS1 0x02
9484 #define _DAC5CON0_PSS0 0x04
9485 #define _DAC5CON0_DACPSS0 0x04
9486 #define _DAC5CON0_DAC5PSS0 0x04
9487 #define _DAC5CON0_PSS1 0x08
9488 #define _DAC5CON0_DACPSS1 0x08
9489 #define _DAC5CON0_DAC5PSS1 0x08
9490 #define _DAC5CON0_OE2 0x10
9491 #define _DAC5CON0_DACOE2 0x10
9492 #define _DAC5CON0_DAC5OE2 0x10
9493 #define _DAC5CON0_OE1 0x20
9494 #define _DAC5CON0_OE 0x20
9495 #define _DAC5CON0_DACOE1 0x20
9496 #define _DAC5CON0_DACOE 0x20
9497 #define _DAC5CON0_DAC5OE1 0x20
9498 #define _DAC5CON0_FM 0x40
9499 #define _DAC5CON0_DACFM 0x40
9500 #define _DAC5CON0_DAC5FM 0x40
9501 #define _DAC5CON0_EN 0x80
9502 #define _DAC5CON0_DACEN 0x80
9503 #define _DAC5CON0_DAC5EN 0x80
9505 //==============================================================================
9508 //==============================================================================
9509 // DAC5CON1 Bits
9511 extern __at(0x0599) __sfr DAC5CON1;
9513 typedef union
9515 struct
9517 unsigned REF0 : 1;
9518 unsigned REF1 : 1;
9519 unsigned REF2 : 1;
9520 unsigned REF3 : 1;
9521 unsigned REF4 : 1;
9522 unsigned REF5 : 1;
9523 unsigned REF6 : 1;
9524 unsigned REF7 : 1;
9527 struct
9529 unsigned DAC5REF0 : 1;
9530 unsigned DAC5REF1 : 1;
9531 unsigned DAC5REF2 : 1;
9532 unsigned DAC5REF3 : 1;
9533 unsigned DAC5REF4 : 1;
9534 unsigned DAC5REF5 : 1;
9535 unsigned DAC5REF6 : 1;
9536 unsigned DAC5REF7 : 1;
9539 struct
9541 unsigned R0 : 1;
9542 unsigned R1 : 1;
9543 unsigned R2 : 1;
9544 unsigned R3 : 1;
9545 unsigned R4 : 1;
9546 unsigned R5 : 1;
9547 unsigned R6 : 1;
9548 unsigned R7 : 1;
9551 struct
9553 unsigned DAC5R0 : 1;
9554 unsigned DAC5R1 : 1;
9555 unsigned DAC5R2 : 1;
9556 unsigned DAC5R3 : 1;
9557 unsigned DAC5R4 : 1;
9558 unsigned DAC5R5 : 1;
9559 unsigned DAC5R6 : 1;
9560 unsigned DAC5R7 : 1;
9562 } __DAC5CON1bits_t;
9564 extern __at(0x0599) volatile __DAC5CON1bits_t DAC5CON1bits;
9566 #define _DAC5CON1_REF0 0x01
9567 #define _DAC5CON1_DAC5REF0 0x01
9568 #define _DAC5CON1_R0 0x01
9569 #define _DAC5CON1_DAC5R0 0x01
9570 #define _DAC5CON1_REF1 0x02
9571 #define _DAC5CON1_DAC5REF1 0x02
9572 #define _DAC5CON1_R1 0x02
9573 #define _DAC5CON1_DAC5R1 0x02
9574 #define _DAC5CON1_REF2 0x04
9575 #define _DAC5CON1_DAC5REF2 0x04
9576 #define _DAC5CON1_R2 0x04
9577 #define _DAC5CON1_DAC5R2 0x04
9578 #define _DAC5CON1_REF3 0x08
9579 #define _DAC5CON1_DAC5REF3 0x08
9580 #define _DAC5CON1_R3 0x08
9581 #define _DAC5CON1_DAC5R3 0x08
9582 #define _DAC5CON1_REF4 0x10
9583 #define _DAC5CON1_DAC5REF4 0x10
9584 #define _DAC5CON1_R4 0x10
9585 #define _DAC5CON1_DAC5R4 0x10
9586 #define _DAC5CON1_REF5 0x20
9587 #define _DAC5CON1_DAC5REF5 0x20
9588 #define _DAC5CON1_R5 0x20
9589 #define _DAC5CON1_DAC5R5 0x20
9590 #define _DAC5CON1_REF6 0x40
9591 #define _DAC5CON1_DAC5REF6 0x40
9592 #define _DAC5CON1_R6 0x40
9593 #define _DAC5CON1_DAC5R6 0x40
9594 #define _DAC5CON1_REF7 0x80
9595 #define _DAC5CON1_DAC5REF7 0x80
9596 #define _DAC5CON1_R7 0x80
9597 #define _DAC5CON1_DAC5R7 0x80
9599 //==============================================================================
9601 extern __at(0x0599) __sfr DAC5REF;
9603 //==============================================================================
9604 // DAC5REFL Bits
9606 extern __at(0x0599) __sfr DAC5REFL;
9608 typedef union
9610 struct
9612 unsigned REF0 : 1;
9613 unsigned REF1 : 1;
9614 unsigned REF2 : 1;
9615 unsigned REF3 : 1;
9616 unsigned REF4 : 1;
9617 unsigned REF5 : 1;
9618 unsigned REF6 : 1;
9619 unsigned REF7 : 1;
9622 struct
9624 unsigned DAC5REF0 : 1;
9625 unsigned DAC5REF1 : 1;
9626 unsigned DAC5REF2 : 1;
9627 unsigned DAC5REF3 : 1;
9628 unsigned DAC5REF4 : 1;
9629 unsigned DAC5REF5 : 1;
9630 unsigned DAC5REF6 : 1;
9631 unsigned DAC5REF7 : 1;
9634 struct
9636 unsigned R0 : 1;
9637 unsigned R1 : 1;
9638 unsigned R2 : 1;
9639 unsigned R3 : 1;
9640 unsigned R4 : 1;
9641 unsigned R5 : 1;
9642 unsigned R6 : 1;
9643 unsigned R7 : 1;
9646 struct
9648 unsigned DAC5R0 : 1;
9649 unsigned DAC5R1 : 1;
9650 unsigned DAC5R2 : 1;
9651 unsigned DAC5R3 : 1;
9652 unsigned DAC5R4 : 1;
9653 unsigned DAC5R5 : 1;
9654 unsigned DAC5R6 : 1;
9655 unsigned DAC5R7 : 1;
9657 } __DAC5REFLbits_t;
9659 extern __at(0x0599) volatile __DAC5REFLbits_t DAC5REFLbits;
9661 #define _DAC5REFL_REF0 0x01
9662 #define _DAC5REFL_DAC5REF0 0x01
9663 #define _DAC5REFL_R0 0x01
9664 #define _DAC5REFL_DAC5R0 0x01
9665 #define _DAC5REFL_REF1 0x02
9666 #define _DAC5REFL_DAC5REF1 0x02
9667 #define _DAC5REFL_R1 0x02
9668 #define _DAC5REFL_DAC5R1 0x02
9669 #define _DAC5REFL_REF2 0x04
9670 #define _DAC5REFL_DAC5REF2 0x04
9671 #define _DAC5REFL_R2 0x04
9672 #define _DAC5REFL_DAC5R2 0x04
9673 #define _DAC5REFL_REF3 0x08
9674 #define _DAC5REFL_DAC5REF3 0x08
9675 #define _DAC5REFL_R3 0x08
9676 #define _DAC5REFL_DAC5R3 0x08
9677 #define _DAC5REFL_REF4 0x10
9678 #define _DAC5REFL_DAC5REF4 0x10
9679 #define _DAC5REFL_R4 0x10
9680 #define _DAC5REFL_DAC5R4 0x10
9681 #define _DAC5REFL_REF5 0x20
9682 #define _DAC5REFL_DAC5REF5 0x20
9683 #define _DAC5REFL_R5 0x20
9684 #define _DAC5REFL_DAC5R5 0x20
9685 #define _DAC5REFL_REF6 0x40
9686 #define _DAC5REFL_DAC5REF6 0x40
9687 #define _DAC5REFL_R6 0x40
9688 #define _DAC5REFL_DAC5R6 0x40
9689 #define _DAC5REFL_REF7 0x80
9690 #define _DAC5REFL_DAC5REF7 0x80
9691 #define _DAC5REFL_R7 0x80
9692 #define _DAC5REFL_DAC5R7 0x80
9694 //==============================================================================
9697 //==============================================================================
9698 // DAC5CON2 Bits
9700 extern __at(0x059A) __sfr DAC5CON2;
9702 typedef union
9704 struct
9706 unsigned REF8 : 1;
9707 unsigned REF9 : 1;
9708 unsigned REF10 : 1;
9709 unsigned REF11 : 1;
9710 unsigned REF12 : 1;
9711 unsigned REF13 : 1;
9712 unsigned REF14 : 1;
9713 unsigned REF15 : 1;
9716 struct
9718 unsigned DAC5REF8 : 1;
9719 unsigned DAC5REF9 : 1;
9720 unsigned DAC5REF10 : 1;
9721 unsigned DAC5REF11 : 1;
9722 unsigned DAC5REF12 : 1;
9723 unsigned DAC5REF13 : 1;
9724 unsigned DAC5REF14 : 1;
9725 unsigned DAC5REF15 : 1;
9728 struct
9730 unsigned R8 : 1;
9731 unsigned R9 : 1;
9732 unsigned R10 : 1;
9733 unsigned R11 : 1;
9734 unsigned R12 : 1;
9735 unsigned R13 : 1;
9736 unsigned R14 : 1;
9737 unsigned R15 : 1;
9740 struct
9742 unsigned DAC5R8 : 1;
9743 unsigned DAC5R9 : 1;
9744 unsigned DAC5R10 : 1;
9745 unsigned DAC5R11 : 1;
9746 unsigned DAC5R12 : 1;
9747 unsigned DAC5R13 : 1;
9748 unsigned DAC5R14 : 1;
9749 unsigned DAC5R15 : 1;
9751 } __DAC5CON2bits_t;
9753 extern __at(0x059A) volatile __DAC5CON2bits_t DAC5CON2bits;
9755 #define _DAC5CON2_REF8 0x01
9756 #define _DAC5CON2_DAC5REF8 0x01
9757 #define _DAC5CON2_R8 0x01
9758 #define _DAC5CON2_DAC5R8 0x01
9759 #define _DAC5CON2_REF9 0x02
9760 #define _DAC5CON2_DAC5REF9 0x02
9761 #define _DAC5CON2_R9 0x02
9762 #define _DAC5CON2_DAC5R9 0x02
9763 #define _DAC5CON2_REF10 0x04
9764 #define _DAC5CON2_DAC5REF10 0x04
9765 #define _DAC5CON2_R10 0x04
9766 #define _DAC5CON2_DAC5R10 0x04
9767 #define _DAC5CON2_REF11 0x08
9768 #define _DAC5CON2_DAC5REF11 0x08
9769 #define _DAC5CON2_R11 0x08
9770 #define _DAC5CON2_DAC5R11 0x08
9771 #define _DAC5CON2_REF12 0x10
9772 #define _DAC5CON2_DAC5REF12 0x10
9773 #define _DAC5CON2_R12 0x10
9774 #define _DAC5CON2_DAC5R12 0x10
9775 #define _DAC5CON2_REF13 0x20
9776 #define _DAC5CON2_DAC5REF13 0x20
9777 #define _DAC5CON2_R13 0x20
9778 #define _DAC5CON2_DAC5R13 0x20
9779 #define _DAC5CON2_REF14 0x40
9780 #define _DAC5CON2_DAC5REF14 0x40
9781 #define _DAC5CON2_R14 0x40
9782 #define _DAC5CON2_DAC5R14 0x40
9783 #define _DAC5CON2_REF15 0x80
9784 #define _DAC5CON2_DAC5REF15 0x80
9785 #define _DAC5CON2_R15 0x80
9786 #define _DAC5CON2_DAC5R15 0x80
9788 //==============================================================================
9791 //==============================================================================
9792 // DAC5REFH Bits
9794 extern __at(0x059A) __sfr DAC5REFH;
9796 typedef union
9798 struct
9800 unsigned REF8 : 1;
9801 unsigned REF9 : 1;
9802 unsigned REF10 : 1;
9803 unsigned REF11 : 1;
9804 unsigned REF12 : 1;
9805 unsigned REF13 : 1;
9806 unsigned REF14 : 1;
9807 unsigned REF15 : 1;
9810 struct
9812 unsigned DAC5REF8 : 1;
9813 unsigned DAC5REF9 : 1;
9814 unsigned DAC5REF10 : 1;
9815 unsigned DAC5REF11 : 1;
9816 unsigned DAC5REF12 : 1;
9817 unsigned DAC5REF13 : 1;
9818 unsigned DAC5REF14 : 1;
9819 unsigned DAC5REF15 : 1;
9822 struct
9824 unsigned R8 : 1;
9825 unsigned R9 : 1;
9826 unsigned R10 : 1;
9827 unsigned R11 : 1;
9828 unsigned R12 : 1;
9829 unsigned R13 : 1;
9830 unsigned R14 : 1;
9831 unsigned R15 : 1;
9834 struct
9836 unsigned DAC5R8 : 1;
9837 unsigned DAC5R9 : 1;
9838 unsigned DAC5R10 : 1;
9839 unsigned DAC5R11 : 1;
9840 unsigned DAC5R12 : 1;
9841 unsigned DAC5R13 : 1;
9842 unsigned DAC5R14 : 1;
9843 unsigned DAC5R15 : 1;
9845 } __DAC5REFHbits_t;
9847 extern __at(0x059A) volatile __DAC5REFHbits_t DAC5REFHbits;
9849 #define _DAC5REFH_REF8 0x01
9850 #define _DAC5REFH_DAC5REF8 0x01
9851 #define _DAC5REFH_R8 0x01
9852 #define _DAC5REFH_DAC5R8 0x01
9853 #define _DAC5REFH_REF9 0x02
9854 #define _DAC5REFH_DAC5REF9 0x02
9855 #define _DAC5REFH_R9 0x02
9856 #define _DAC5REFH_DAC5R9 0x02
9857 #define _DAC5REFH_REF10 0x04
9858 #define _DAC5REFH_DAC5REF10 0x04
9859 #define _DAC5REFH_R10 0x04
9860 #define _DAC5REFH_DAC5R10 0x04
9861 #define _DAC5REFH_REF11 0x08
9862 #define _DAC5REFH_DAC5REF11 0x08
9863 #define _DAC5REFH_R11 0x08
9864 #define _DAC5REFH_DAC5R11 0x08
9865 #define _DAC5REFH_REF12 0x10
9866 #define _DAC5REFH_DAC5REF12 0x10
9867 #define _DAC5REFH_R12 0x10
9868 #define _DAC5REFH_DAC5R12 0x10
9869 #define _DAC5REFH_REF13 0x20
9870 #define _DAC5REFH_DAC5REF13 0x20
9871 #define _DAC5REFH_R13 0x20
9872 #define _DAC5REFH_DAC5R13 0x20
9873 #define _DAC5REFH_REF14 0x40
9874 #define _DAC5REFH_DAC5REF14 0x40
9875 #define _DAC5REFH_R14 0x40
9876 #define _DAC5REFH_DAC5R14 0x40
9877 #define _DAC5REFH_REF15 0x80
9878 #define _DAC5REFH_DAC5REF15 0x80
9879 #define _DAC5REFH_R15 0x80
9880 #define _DAC5REFH_DAC5R15 0x80
9882 //==============================================================================
9885 //==============================================================================
9886 // DAC7CON0 Bits
9888 extern __at(0x059E) __sfr DAC7CON0;
9890 typedef union
9892 struct
9894 unsigned NSS0 : 1;
9895 unsigned NSS1 : 1;
9896 unsigned PSS0 : 1;
9897 unsigned PSS1 : 1;
9898 unsigned OE2 : 1;
9899 unsigned OE1 : 1;
9900 unsigned : 1;
9901 unsigned EN : 1;
9904 struct
9906 unsigned DACNSS0 : 1;
9907 unsigned DACNSS1 : 1;
9908 unsigned DACPSS0 : 1;
9909 unsigned DACPSS1 : 1;
9910 unsigned DACOE2 : 1;
9911 unsigned DACOE1 : 1;
9912 unsigned : 1;
9913 unsigned DACEN : 1;
9916 struct
9918 unsigned DAC7NSS0 : 1;
9919 unsigned DAC7NSS1 : 1;
9920 unsigned DAC7PSS0 : 1;
9921 unsigned DAC7PSS1 : 1;
9922 unsigned DAC7OE2 : 1;
9923 unsigned DAC7OE1 : 1;
9924 unsigned : 1;
9925 unsigned DAC7EN : 1;
9928 struct
9930 unsigned DAC7NSS : 2;
9931 unsigned : 6;
9934 struct
9936 unsigned DACNSS : 2;
9937 unsigned : 6;
9940 struct
9942 unsigned NSS : 2;
9943 unsigned : 6;
9946 struct
9948 unsigned : 2;
9949 unsigned PSS : 2;
9950 unsigned : 4;
9953 struct
9955 unsigned : 2;
9956 unsigned DACPSS : 2;
9957 unsigned : 4;
9960 struct
9962 unsigned : 2;
9963 unsigned DAC7PSS : 2;
9964 unsigned : 4;
9966 } __DAC7CON0bits_t;
9968 extern __at(0x059E) volatile __DAC7CON0bits_t DAC7CON0bits;
9970 #define _DAC7CON0_NSS0 0x01
9971 #define _DAC7CON0_DACNSS0 0x01
9972 #define _DAC7CON0_DAC7NSS0 0x01
9973 #define _DAC7CON0_NSS1 0x02
9974 #define _DAC7CON0_DACNSS1 0x02
9975 #define _DAC7CON0_DAC7NSS1 0x02
9976 #define _DAC7CON0_PSS0 0x04
9977 #define _DAC7CON0_DACPSS0 0x04
9978 #define _DAC7CON0_DAC7PSS0 0x04
9979 #define _DAC7CON0_PSS1 0x08
9980 #define _DAC7CON0_DACPSS1 0x08
9981 #define _DAC7CON0_DAC7PSS1 0x08
9982 #define _DAC7CON0_OE2 0x10
9983 #define _DAC7CON0_DACOE2 0x10
9984 #define _DAC7CON0_DAC7OE2 0x10
9985 #define _DAC7CON0_OE1 0x20
9986 #define _DAC7CON0_DACOE1 0x20
9987 #define _DAC7CON0_DAC7OE1 0x20
9988 #define _DAC7CON0_EN 0x80
9989 #define _DAC7CON0_DACEN 0x80
9990 #define _DAC7CON0_DAC7EN 0x80
9992 //==============================================================================
9995 //==============================================================================
9996 // DAC7CON1 Bits
9998 extern __at(0x059F) __sfr DAC7CON1;
10000 typedef union
10002 struct
10004 unsigned DACR0 : 1;
10005 unsigned DACR1 : 1;
10006 unsigned DACR2 : 1;
10007 unsigned DACR3 : 1;
10008 unsigned DACR4 : 1;
10009 unsigned : 1;
10010 unsigned : 1;
10011 unsigned : 1;
10014 struct
10016 unsigned R0 : 1;
10017 unsigned R1 : 1;
10018 unsigned R2 : 1;
10019 unsigned R3 : 1;
10020 unsigned R4 : 1;
10021 unsigned : 1;
10022 unsigned : 1;
10023 unsigned : 1;
10026 struct
10028 unsigned DAC7R0 : 1;
10029 unsigned DAC7R1 : 1;
10030 unsigned DAC7R2 : 1;
10031 unsigned DAC7R3 : 1;
10032 unsigned DAC7R4 : 1;
10033 unsigned : 1;
10034 unsigned : 1;
10035 unsigned : 1;
10038 struct
10040 unsigned REF0 : 1;
10041 unsigned REF1 : 1;
10042 unsigned REF2 : 1;
10043 unsigned REF3 : 1;
10044 unsigned REF4 : 1;
10045 unsigned : 1;
10046 unsigned : 1;
10047 unsigned : 1;
10050 struct
10052 unsigned DAC7REF0 : 1;
10053 unsigned DAC7REF1 : 1;
10054 unsigned DAC7REF2 : 1;
10055 unsigned DAC7REF3 : 1;
10056 unsigned DAC7REF4 : 1;
10057 unsigned : 1;
10058 unsigned : 1;
10059 unsigned : 1;
10062 struct
10064 unsigned DACR : 5;
10065 unsigned : 3;
10068 struct
10070 unsigned DAC7R : 5;
10071 unsigned : 3;
10074 struct
10076 unsigned DAC7REF : 5;
10077 unsigned : 3;
10080 struct
10082 unsigned R : 5;
10083 unsigned : 3;
10086 struct
10088 unsigned REF : 5;
10089 unsigned : 3;
10091 } __DAC7CON1bits_t;
10093 extern __at(0x059F) volatile __DAC7CON1bits_t DAC7CON1bits;
10095 #define _DAC7CON1_DACR0 0x01
10096 #define _DAC7CON1_R0 0x01
10097 #define _DAC7CON1_DAC7R0 0x01
10098 #define _DAC7CON1_REF0 0x01
10099 #define _DAC7CON1_DAC7REF0 0x01
10100 #define _DAC7CON1_DACR1 0x02
10101 #define _DAC7CON1_R1 0x02
10102 #define _DAC7CON1_DAC7R1 0x02
10103 #define _DAC7CON1_REF1 0x02
10104 #define _DAC7CON1_DAC7REF1 0x02
10105 #define _DAC7CON1_DACR2 0x04
10106 #define _DAC7CON1_R2 0x04
10107 #define _DAC7CON1_DAC7R2 0x04
10108 #define _DAC7CON1_REF2 0x04
10109 #define _DAC7CON1_DAC7REF2 0x04
10110 #define _DAC7CON1_DACR3 0x08
10111 #define _DAC7CON1_R3 0x08
10112 #define _DAC7CON1_DAC7R3 0x08
10113 #define _DAC7CON1_REF3 0x08
10114 #define _DAC7CON1_DAC7REF3 0x08
10115 #define _DAC7CON1_DACR4 0x10
10116 #define _DAC7CON1_R4 0x10
10117 #define _DAC7CON1_DAC7R4 0x10
10118 #define _DAC7CON1_REF4 0x10
10119 #define _DAC7CON1_DAC7REF4 0x10
10121 //==============================================================================
10124 //==============================================================================
10125 // DAC7REF Bits
10127 extern __at(0x059F) __sfr DAC7REF;
10129 typedef union
10131 struct
10133 unsigned DACR0 : 1;
10134 unsigned DACR1 : 1;
10135 unsigned DACR2 : 1;
10136 unsigned DACR3 : 1;
10137 unsigned DACR4 : 1;
10138 unsigned : 1;
10139 unsigned : 1;
10140 unsigned : 1;
10143 struct
10145 unsigned R0 : 1;
10146 unsigned R1 : 1;
10147 unsigned R2 : 1;
10148 unsigned R3 : 1;
10149 unsigned R4 : 1;
10150 unsigned : 1;
10151 unsigned : 1;
10152 unsigned : 1;
10155 struct
10157 unsigned DAC7R0 : 1;
10158 unsigned DAC7R1 : 1;
10159 unsigned DAC7R2 : 1;
10160 unsigned DAC7R3 : 1;
10161 unsigned DAC7R4 : 1;
10162 unsigned : 1;
10163 unsigned : 1;
10164 unsigned : 1;
10167 struct
10169 unsigned REF0 : 1;
10170 unsigned REF1 : 1;
10171 unsigned REF2 : 1;
10172 unsigned REF3 : 1;
10173 unsigned REF4 : 1;
10174 unsigned : 1;
10175 unsigned : 1;
10176 unsigned : 1;
10179 struct
10181 unsigned DAC7REF0 : 1;
10182 unsigned DAC7REF1 : 1;
10183 unsigned DAC7REF2 : 1;
10184 unsigned DAC7REF3 : 1;
10185 unsigned DAC7REF4 : 1;
10186 unsigned : 1;
10187 unsigned : 1;
10188 unsigned : 1;
10191 struct
10193 unsigned DAC7REF : 5;
10194 unsigned : 3;
10197 struct
10199 unsigned DACR : 5;
10200 unsigned : 3;
10203 struct
10205 unsigned DAC7R : 5;
10206 unsigned : 3;
10209 struct
10211 unsigned R : 5;
10212 unsigned : 3;
10215 struct
10217 unsigned REF : 5;
10218 unsigned : 3;
10220 } __DAC7REFbits_t;
10222 extern __at(0x059F) volatile __DAC7REFbits_t DAC7REFbits;
10224 #define _DAC7REF_DACR0 0x01
10225 #define _DAC7REF_R0 0x01
10226 #define _DAC7REF_DAC7R0 0x01
10227 #define _DAC7REF_REF0 0x01
10228 #define _DAC7REF_DAC7REF0 0x01
10229 #define _DAC7REF_DACR1 0x02
10230 #define _DAC7REF_R1 0x02
10231 #define _DAC7REF_DAC7R1 0x02
10232 #define _DAC7REF_REF1 0x02
10233 #define _DAC7REF_DAC7REF1 0x02
10234 #define _DAC7REF_DACR2 0x04
10235 #define _DAC7REF_R2 0x04
10236 #define _DAC7REF_DAC7R2 0x04
10237 #define _DAC7REF_REF2 0x04
10238 #define _DAC7REF_DAC7REF2 0x04
10239 #define _DAC7REF_DACR3 0x08
10240 #define _DAC7REF_R3 0x08
10241 #define _DAC7REF_DAC7R3 0x08
10242 #define _DAC7REF_REF3 0x08
10243 #define _DAC7REF_DAC7REF3 0x08
10244 #define _DAC7REF_DACR4 0x10
10245 #define _DAC7REF_R4 0x10
10246 #define _DAC7REF_DAC7R4 0x10
10247 #define _DAC7REF_REF4 0x10
10248 #define _DAC7REF_DAC7REF4 0x10
10250 //==============================================================================
10253 //==============================================================================
10254 // PWM3DCL Bits
10256 extern __at(0x0614) __sfr PWM3DCL;
10258 typedef union
10260 struct
10262 unsigned : 1;
10263 unsigned : 1;
10264 unsigned : 1;
10265 unsigned : 1;
10266 unsigned : 1;
10267 unsigned : 1;
10268 unsigned DC0 : 1;
10269 unsigned DC1 : 1;
10272 struct
10274 unsigned : 1;
10275 unsigned : 1;
10276 unsigned : 1;
10277 unsigned : 1;
10278 unsigned : 1;
10279 unsigned : 1;
10280 unsigned PWM3DC0 : 1;
10281 unsigned PWM3DC1 : 1;
10284 struct
10286 unsigned : 1;
10287 unsigned : 1;
10288 unsigned : 1;
10289 unsigned : 1;
10290 unsigned : 1;
10291 unsigned : 1;
10292 unsigned PWMPW0 : 1;
10293 unsigned PWMPW1 : 1;
10296 struct
10298 unsigned : 6;
10299 unsigned DC : 2;
10302 struct
10304 unsigned : 6;
10305 unsigned PWM3DC : 2;
10308 struct
10310 unsigned : 6;
10311 unsigned PWMPW : 2;
10313 } __PWM3DCLbits_t;
10315 extern __at(0x0614) volatile __PWM3DCLbits_t PWM3DCLbits;
10317 #define _DC0 0x40
10318 #define _PWM3DC0 0x40
10319 #define _PWMPW0 0x40
10320 #define _DC1 0x80
10321 #define _PWM3DC1 0x80
10322 #define _PWMPW1 0x80
10324 //==============================================================================
10327 //==============================================================================
10328 // PWM3DCH Bits
10330 extern __at(0x0615) __sfr PWM3DCH;
10332 typedef union
10334 struct
10336 unsigned DC2 : 1;
10337 unsigned DC3 : 1;
10338 unsigned DC4 : 1;
10339 unsigned DC5 : 1;
10340 unsigned DC6 : 1;
10341 unsigned DC7 : 1;
10342 unsigned DC8 : 1;
10343 unsigned DC9 : 1;
10346 struct
10348 unsigned PWM3DC2 : 1;
10349 unsigned PWM3DC3 : 1;
10350 unsigned PWM3DC4 : 1;
10351 unsigned PWM3DC5 : 1;
10352 unsigned PWM3DC6 : 1;
10353 unsigned PWM3DC7 : 1;
10354 unsigned PWM3DC8 : 1;
10355 unsigned PWM3DC9 : 1;
10358 struct
10360 unsigned PWMPW2 : 1;
10361 unsigned PWMPW3 : 1;
10362 unsigned PWMPW4 : 1;
10363 unsigned PWMPW5 : 1;
10364 unsigned PWMPW6 : 1;
10365 unsigned PWMPW7 : 1;
10366 unsigned PWMPW8 : 1;
10367 unsigned PWMPW9 : 1;
10369 } __PWM3DCHbits_t;
10371 extern __at(0x0615) volatile __PWM3DCHbits_t PWM3DCHbits;
10373 #define _DC2 0x01
10374 #define _PWM3DC2 0x01
10375 #define _PWMPW2 0x01
10376 #define _DC3 0x02
10377 #define _PWM3DC3 0x02
10378 #define _PWMPW3 0x02
10379 #define _DC4 0x04
10380 #define _PWM3DC4 0x04
10381 #define _PWMPW4 0x04
10382 #define _DC5 0x08
10383 #define _PWM3DC5 0x08
10384 #define _PWMPW5 0x08
10385 #define _DC6 0x10
10386 #define _PWM3DC6 0x10
10387 #define _PWMPW6 0x10
10388 #define _DC7 0x20
10389 #define _PWM3DC7 0x20
10390 #define _PWMPW7 0x20
10391 #define _DC8 0x40
10392 #define _PWM3DC8 0x40
10393 #define _PWMPW8 0x40
10394 #define _DC9 0x80
10395 #define _PWM3DC9 0x80
10396 #define _PWMPW9 0x80
10398 //==============================================================================
10401 //==============================================================================
10402 // PWM3CON Bits
10404 extern __at(0x0616) __sfr PWM3CON;
10406 typedef union
10408 struct
10410 unsigned : 1;
10411 unsigned : 1;
10412 unsigned : 1;
10413 unsigned : 1;
10414 unsigned POL : 1;
10415 unsigned OUT : 1;
10416 unsigned : 1;
10417 unsigned EN : 1;
10420 struct
10422 unsigned : 1;
10423 unsigned : 1;
10424 unsigned : 1;
10425 unsigned : 1;
10426 unsigned PWM3POL : 1;
10427 unsigned PWM3OUT : 1;
10428 unsigned : 1;
10429 unsigned PWM3EN : 1;
10431 } __PWM3CONbits_t;
10433 extern __at(0x0616) volatile __PWM3CONbits_t PWM3CONbits;
10435 #define _PWM3CON_POL 0x10
10436 #define _PWM3CON_PWM3POL 0x10
10437 #define _PWM3CON_OUT 0x20
10438 #define _PWM3CON_PWM3OUT 0x20
10439 #define _PWM3CON_EN 0x80
10440 #define _PWM3CON_PWM3EN 0x80
10442 //==============================================================================
10445 //==============================================================================
10446 // PWM4DCL Bits
10448 extern __at(0x0617) __sfr PWM4DCL;
10450 typedef union
10452 struct
10454 unsigned : 1;
10455 unsigned : 1;
10456 unsigned : 1;
10457 unsigned : 1;
10458 unsigned : 1;
10459 unsigned : 1;
10460 unsigned DC0 : 1;
10461 unsigned DC1 : 1;
10464 struct
10466 unsigned : 1;
10467 unsigned : 1;
10468 unsigned : 1;
10469 unsigned : 1;
10470 unsigned : 1;
10471 unsigned : 1;
10472 unsigned PWM4DC0 : 1;
10473 unsigned PWM4DC1 : 1;
10476 struct
10478 unsigned : 1;
10479 unsigned : 1;
10480 unsigned : 1;
10481 unsigned : 1;
10482 unsigned : 1;
10483 unsigned : 1;
10484 unsigned PWMPW0 : 1;
10485 unsigned PWMPW1 : 1;
10488 struct
10490 unsigned : 6;
10491 unsigned PWMPW : 2;
10494 struct
10496 unsigned : 6;
10497 unsigned PWM4DC : 2;
10500 struct
10502 unsigned : 6;
10503 unsigned DC : 2;
10505 } __PWM4DCLbits_t;
10507 extern __at(0x0617) volatile __PWM4DCLbits_t PWM4DCLbits;
10509 #define _PWM4DCL_DC0 0x40
10510 #define _PWM4DCL_PWM4DC0 0x40
10511 #define _PWM4DCL_PWMPW0 0x40
10512 #define _PWM4DCL_DC1 0x80
10513 #define _PWM4DCL_PWM4DC1 0x80
10514 #define _PWM4DCL_PWMPW1 0x80
10516 //==============================================================================
10519 //==============================================================================
10520 // PWM4DCH Bits
10522 extern __at(0x0618) __sfr PWM4DCH;
10524 typedef union
10526 struct
10528 unsigned DC2 : 1;
10529 unsigned DC3 : 1;
10530 unsigned DC4 : 1;
10531 unsigned DC5 : 1;
10532 unsigned DC6 : 1;
10533 unsigned DC7 : 1;
10534 unsigned DC8 : 1;
10535 unsigned DC9 : 1;
10538 struct
10540 unsigned PWM4DC2 : 1;
10541 unsigned PWM4DC3 : 1;
10542 unsigned PWM4DC4 : 1;
10543 unsigned PWM4DC5 : 1;
10544 unsigned PWM4DC6 : 1;
10545 unsigned PWM4DC7 : 1;
10546 unsigned PWM4DC8 : 1;
10547 unsigned PWM4DC9 : 1;
10550 struct
10552 unsigned PWMPW2 : 1;
10553 unsigned PWMPW3 : 1;
10554 unsigned PWMPW4 : 1;
10555 unsigned PWMPW5 : 1;
10556 unsigned PWMPW6 : 1;
10557 unsigned PWMPW7 : 1;
10558 unsigned PWMPW8 : 1;
10559 unsigned PWMPW9 : 1;
10561 } __PWM4DCHbits_t;
10563 extern __at(0x0618) volatile __PWM4DCHbits_t PWM4DCHbits;
10565 #define _PWM4DCH_DC2 0x01
10566 #define _PWM4DCH_PWM4DC2 0x01
10567 #define _PWM4DCH_PWMPW2 0x01
10568 #define _PWM4DCH_DC3 0x02
10569 #define _PWM4DCH_PWM4DC3 0x02
10570 #define _PWM4DCH_PWMPW3 0x02
10571 #define _PWM4DCH_DC4 0x04
10572 #define _PWM4DCH_PWM4DC4 0x04
10573 #define _PWM4DCH_PWMPW4 0x04
10574 #define _PWM4DCH_DC5 0x08
10575 #define _PWM4DCH_PWM4DC5 0x08
10576 #define _PWM4DCH_PWMPW5 0x08
10577 #define _PWM4DCH_DC6 0x10
10578 #define _PWM4DCH_PWM4DC6 0x10
10579 #define _PWM4DCH_PWMPW6 0x10
10580 #define _PWM4DCH_DC7 0x20
10581 #define _PWM4DCH_PWM4DC7 0x20
10582 #define _PWM4DCH_PWMPW7 0x20
10583 #define _PWM4DCH_DC8 0x40
10584 #define _PWM4DCH_PWM4DC8 0x40
10585 #define _PWM4DCH_PWMPW8 0x40
10586 #define _PWM4DCH_DC9 0x80
10587 #define _PWM4DCH_PWM4DC9 0x80
10588 #define _PWM4DCH_PWMPW9 0x80
10590 //==============================================================================
10593 //==============================================================================
10594 // PWM4CON Bits
10596 extern __at(0x0619) __sfr PWM4CON;
10598 typedef union
10600 struct
10602 unsigned : 1;
10603 unsigned : 1;
10604 unsigned : 1;
10605 unsigned : 1;
10606 unsigned POL : 1;
10607 unsigned OUT : 1;
10608 unsigned : 1;
10609 unsigned EN : 1;
10612 struct
10614 unsigned : 1;
10615 unsigned : 1;
10616 unsigned : 1;
10617 unsigned : 1;
10618 unsigned PWM4POL : 1;
10619 unsigned PWM4OUT : 1;
10620 unsigned : 1;
10621 unsigned PWM4EN : 1;
10623 } __PWM4CONbits_t;
10625 extern __at(0x0619) volatile __PWM4CONbits_t PWM4CONbits;
10627 #define _PWM4CON_POL 0x10
10628 #define _PWM4CON_PWM4POL 0x10
10629 #define _PWM4CON_OUT 0x20
10630 #define _PWM4CON_PWM4OUT 0x20
10631 #define _PWM4CON_EN 0x80
10632 #define _PWM4CON_PWM4EN 0x80
10634 //==============================================================================
10637 //==============================================================================
10638 // PWM9DCL Bits
10640 extern __at(0x061A) __sfr PWM9DCL;
10642 typedef union
10644 struct
10646 unsigned : 1;
10647 unsigned : 1;
10648 unsigned : 1;
10649 unsigned : 1;
10650 unsigned : 1;
10651 unsigned : 1;
10652 unsigned DC0 : 1;
10653 unsigned DC1 : 1;
10656 struct
10658 unsigned : 1;
10659 unsigned : 1;
10660 unsigned : 1;
10661 unsigned : 1;
10662 unsigned : 1;
10663 unsigned : 1;
10664 unsigned PWM9DC0 : 1;
10665 unsigned PWM9DC1 : 1;
10668 struct
10670 unsigned : 1;
10671 unsigned : 1;
10672 unsigned : 1;
10673 unsigned : 1;
10674 unsigned : 1;
10675 unsigned : 1;
10676 unsigned PWMPW0 : 1;
10677 unsigned PWMPW1 : 1;
10680 struct
10682 unsigned : 6;
10683 unsigned PWMPW : 2;
10686 struct
10688 unsigned : 6;
10689 unsigned PWM9DC : 2;
10692 struct
10694 unsigned : 6;
10695 unsigned DC : 2;
10697 } __PWM9DCLbits_t;
10699 extern __at(0x061A) volatile __PWM9DCLbits_t PWM9DCLbits;
10701 #define _PWM9DCL_DC0 0x40
10702 #define _PWM9DCL_PWM9DC0 0x40
10703 #define _PWM9DCL_PWMPW0 0x40
10704 #define _PWM9DCL_DC1 0x80
10705 #define _PWM9DCL_PWM9DC1 0x80
10706 #define _PWM9DCL_PWMPW1 0x80
10708 //==============================================================================
10711 //==============================================================================
10712 // PWM9DCH Bits
10714 extern __at(0x061B) __sfr PWM9DCH;
10716 typedef union
10718 struct
10720 unsigned DC2 : 1;
10721 unsigned DC3 : 1;
10722 unsigned DC4 : 1;
10723 unsigned DC5 : 1;
10724 unsigned DC6 : 1;
10725 unsigned DC7 : 1;
10726 unsigned DC8 : 1;
10727 unsigned DC9 : 1;
10730 struct
10732 unsigned PWM9DC2 : 1;
10733 unsigned PWM9DC3 : 1;
10734 unsigned PWM9DC4 : 1;
10735 unsigned PWM9DC5 : 1;
10736 unsigned PWM9DC6 : 1;
10737 unsigned PWM9DC7 : 1;
10738 unsigned PWM9DC8 : 1;
10739 unsigned PWM9DC9 : 1;
10742 struct
10744 unsigned PWMPW2 : 1;
10745 unsigned PWMPW3 : 1;
10746 unsigned PWMPW4 : 1;
10747 unsigned PWMPW5 : 1;
10748 unsigned PWMPW6 : 1;
10749 unsigned PWMPW7 : 1;
10750 unsigned PWMPW8 : 1;
10751 unsigned PWMPW9 : 1;
10753 } __PWM9DCHbits_t;
10755 extern __at(0x061B) volatile __PWM9DCHbits_t PWM9DCHbits;
10757 #define _PWM9DCH_DC2 0x01
10758 #define _PWM9DCH_PWM9DC2 0x01
10759 #define _PWM9DCH_PWMPW2 0x01
10760 #define _PWM9DCH_DC3 0x02
10761 #define _PWM9DCH_PWM9DC3 0x02
10762 #define _PWM9DCH_PWMPW3 0x02
10763 #define _PWM9DCH_DC4 0x04
10764 #define _PWM9DCH_PWM9DC4 0x04
10765 #define _PWM9DCH_PWMPW4 0x04
10766 #define _PWM9DCH_DC5 0x08
10767 #define _PWM9DCH_PWM9DC5 0x08
10768 #define _PWM9DCH_PWMPW5 0x08
10769 #define _PWM9DCH_DC6 0x10
10770 #define _PWM9DCH_PWM9DC6 0x10
10771 #define _PWM9DCH_PWMPW6 0x10
10772 #define _PWM9DCH_DC7 0x20
10773 #define _PWM9DCH_PWM9DC7 0x20
10774 #define _PWM9DCH_PWMPW7 0x20
10775 #define _PWM9DCH_DC8 0x40
10776 #define _PWM9DCH_PWM9DC8 0x40
10777 #define _PWM9DCH_PWMPW8 0x40
10778 #define _PWM9DCH_DC9 0x80
10779 #define _PWM9DCH_PWM9DC9 0x80
10780 #define _PWM9DCH_PWMPW9 0x80
10782 //==============================================================================
10785 //==============================================================================
10786 // PWM9CON Bits
10788 extern __at(0x061C) __sfr PWM9CON;
10790 typedef union
10792 struct
10794 unsigned : 1;
10795 unsigned : 1;
10796 unsigned : 1;
10797 unsigned : 1;
10798 unsigned POL : 1;
10799 unsigned OUT : 1;
10800 unsigned : 1;
10801 unsigned EN : 1;
10804 struct
10806 unsigned : 1;
10807 unsigned : 1;
10808 unsigned : 1;
10809 unsigned : 1;
10810 unsigned PWM9POL : 1;
10811 unsigned PWM9OUT : 1;
10812 unsigned : 1;
10813 unsigned PWM9EN : 1;
10815 } __PWM9CONbits_t;
10817 extern __at(0x061C) volatile __PWM9CONbits_t PWM9CONbits;
10819 #define _PWM9CON_POL 0x10
10820 #define _PWM9CON_PWM9POL 0x10
10821 #define _PWM9CON_OUT 0x20
10822 #define _PWM9CON_PWM9OUT 0x20
10823 #define _PWM9CON_EN 0x80
10824 #define _PWM9CON_PWM9EN 0x80
10826 //==============================================================================
10829 //==============================================================================
10830 // COG1PHR Bits
10832 extern __at(0x068D) __sfr COG1PHR;
10834 typedef union
10836 struct
10838 unsigned PHR0 : 1;
10839 unsigned PHR1 : 1;
10840 unsigned PHR2 : 1;
10841 unsigned PHR3 : 1;
10842 unsigned PHR4 : 1;
10843 unsigned PHR5 : 1;
10844 unsigned : 1;
10845 unsigned : 1;
10848 struct
10850 unsigned G1PHR0 : 1;
10851 unsigned G1PHR1 : 1;
10852 unsigned G1PHR2 : 1;
10853 unsigned G1PHR3 : 1;
10854 unsigned G1PHR4 : 1;
10855 unsigned G1PHR5 : 1;
10856 unsigned : 1;
10857 unsigned : 1;
10860 struct
10862 unsigned PHR : 6;
10863 unsigned : 2;
10866 struct
10868 unsigned G1PHR : 6;
10869 unsigned : 2;
10871 } __COG1PHRbits_t;
10873 extern __at(0x068D) volatile __COG1PHRbits_t COG1PHRbits;
10875 #define _PHR0 0x01
10876 #define _G1PHR0 0x01
10877 #define _PHR1 0x02
10878 #define _G1PHR1 0x02
10879 #define _PHR2 0x04
10880 #define _G1PHR2 0x04
10881 #define _PHR3 0x08
10882 #define _G1PHR3 0x08
10883 #define _PHR4 0x10
10884 #define _G1PHR4 0x10
10885 #define _PHR5 0x20
10886 #define _G1PHR5 0x20
10888 //==============================================================================
10891 //==============================================================================
10892 // COG1PHF Bits
10894 extern __at(0x068E) __sfr COG1PHF;
10896 typedef union
10898 struct
10900 unsigned PHF0 : 1;
10901 unsigned PHF1 : 1;
10902 unsigned PHF2 : 1;
10903 unsigned PHF3 : 1;
10904 unsigned PHF4 : 1;
10905 unsigned PHF5 : 1;
10906 unsigned : 1;
10907 unsigned : 1;
10910 struct
10912 unsigned G1PHF0 : 1;
10913 unsigned G1PHF1 : 1;
10914 unsigned G1PHF2 : 1;
10915 unsigned G1PHF3 : 1;
10916 unsigned G1PHF4 : 1;
10917 unsigned G1PHF5 : 1;
10918 unsigned : 1;
10919 unsigned : 1;
10922 struct
10924 unsigned PHF : 6;
10925 unsigned : 2;
10928 struct
10930 unsigned G1PHF : 6;
10931 unsigned : 2;
10933 } __COG1PHFbits_t;
10935 extern __at(0x068E) volatile __COG1PHFbits_t COG1PHFbits;
10937 #define _PHF0 0x01
10938 #define _G1PHF0 0x01
10939 #define _PHF1 0x02
10940 #define _G1PHF1 0x02
10941 #define _PHF2 0x04
10942 #define _G1PHF2 0x04
10943 #define _PHF3 0x08
10944 #define _G1PHF3 0x08
10945 #define _PHF4 0x10
10946 #define _G1PHF4 0x10
10947 #define _PHF5 0x20
10948 #define _G1PHF5 0x20
10950 //==============================================================================
10953 //==============================================================================
10954 // COG1BLKR Bits
10956 extern __at(0x068F) __sfr COG1BLKR;
10958 typedef union
10960 struct
10962 unsigned BLKR0 : 1;
10963 unsigned BLKR1 : 1;
10964 unsigned BLKR2 : 1;
10965 unsigned BLKR3 : 1;
10966 unsigned BLKR4 : 1;
10967 unsigned BLKR5 : 1;
10968 unsigned : 1;
10969 unsigned : 1;
10972 struct
10974 unsigned G1BLKR0 : 1;
10975 unsigned G1BLKR1 : 1;
10976 unsigned G1BLKR2 : 1;
10977 unsigned G1BLKR3 : 1;
10978 unsigned G1BLKR4 : 1;
10979 unsigned G1BLKR5 : 1;
10980 unsigned : 1;
10981 unsigned : 1;
10984 struct
10986 unsigned G1BLKR : 6;
10987 unsigned : 2;
10990 struct
10992 unsigned BLKR : 6;
10993 unsigned : 2;
10995 } __COG1BLKRbits_t;
10997 extern __at(0x068F) volatile __COG1BLKRbits_t COG1BLKRbits;
10999 #define _BLKR0 0x01
11000 #define _G1BLKR0 0x01
11001 #define _BLKR1 0x02
11002 #define _G1BLKR1 0x02
11003 #define _BLKR2 0x04
11004 #define _G1BLKR2 0x04
11005 #define _BLKR3 0x08
11006 #define _G1BLKR3 0x08
11007 #define _BLKR4 0x10
11008 #define _G1BLKR4 0x10
11009 #define _BLKR5 0x20
11010 #define _G1BLKR5 0x20
11012 //==============================================================================
11015 //==============================================================================
11016 // COG1BLKF Bits
11018 extern __at(0x0690) __sfr COG1BLKF;
11020 typedef union
11022 struct
11024 unsigned BLKF0 : 1;
11025 unsigned BLKF1 : 1;
11026 unsigned BLKF2 : 1;
11027 unsigned BLKF3 : 1;
11028 unsigned BLKF4 : 1;
11029 unsigned BLKF5 : 1;
11030 unsigned : 1;
11031 unsigned : 1;
11034 struct
11036 unsigned G1BLKF0 : 1;
11037 unsigned G1BLKF1 : 1;
11038 unsigned G1BLKF2 : 1;
11039 unsigned G1BLKF3 : 1;
11040 unsigned G1BLKF4 : 1;
11041 unsigned G1BLKF5 : 1;
11042 unsigned : 1;
11043 unsigned : 1;
11046 struct
11048 unsigned BLKF : 6;
11049 unsigned : 2;
11052 struct
11054 unsigned G1BLKF : 6;
11055 unsigned : 2;
11057 } __COG1BLKFbits_t;
11059 extern __at(0x0690) volatile __COG1BLKFbits_t COG1BLKFbits;
11061 #define _BLKF0 0x01
11062 #define _G1BLKF0 0x01
11063 #define _BLKF1 0x02
11064 #define _G1BLKF1 0x02
11065 #define _BLKF2 0x04
11066 #define _G1BLKF2 0x04
11067 #define _BLKF3 0x08
11068 #define _G1BLKF3 0x08
11069 #define _BLKF4 0x10
11070 #define _G1BLKF4 0x10
11071 #define _BLKF5 0x20
11072 #define _G1BLKF5 0x20
11074 //==============================================================================
11077 //==============================================================================
11078 // COG1DBR Bits
11080 extern __at(0x0691) __sfr COG1DBR;
11082 typedef union
11084 struct
11086 unsigned DBR0 : 1;
11087 unsigned DBR1 : 1;
11088 unsigned DBR2 : 1;
11089 unsigned DBR3 : 1;
11090 unsigned DBR4 : 1;
11091 unsigned DBR5 : 1;
11092 unsigned : 1;
11093 unsigned : 1;
11096 struct
11098 unsigned G1DBR0 : 1;
11099 unsigned G1DBR1 : 1;
11100 unsigned G1DBR2 : 1;
11101 unsigned G1DBR3 : 1;
11102 unsigned G1DBR4 : 1;
11103 unsigned G1DBR5 : 1;
11104 unsigned : 1;
11105 unsigned : 1;
11108 struct
11110 unsigned DBR : 6;
11111 unsigned : 2;
11114 struct
11116 unsigned G1DBR : 6;
11117 unsigned : 2;
11119 } __COG1DBRbits_t;
11121 extern __at(0x0691) volatile __COG1DBRbits_t COG1DBRbits;
11123 #define _DBR0 0x01
11124 #define _G1DBR0 0x01
11125 #define _DBR1 0x02
11126 #define _G1DBR1 0x02
11127 #define _DBR2 0x04
11128 #define _G1DBR2 0x04
11129 #define _DBR3 0x08
11130 #define _G1DBR3 0x08
11131 #define _DBR4 0x10
11132 #define _G1DBR4 0x10
11133 #define _DBR5 0x20
11134 #define _G1DBR5 0x20
11136 //==============================================================================
11139 //==============================================================================
11140 // COG1DBF Bits
11142 extern __at(0x0692) __sfr COG1DBF;
11144 typedef union
11146 struct
11148 unsigned DBF0 : 1;
11149 unsigned DBF1 : 1;
11150 unsigned DBF2 : 1;
11151 unsigned DBF3 : 1;
11152 unsigned DBF4 : 1;
11153 unsigned DBF5 : 1;
11154 unsigned : 1;
11155 unsigned : 1;
11158 struct
11160 unsigned G1DBF0 : 1;
11161 unsigned G1DBF1 : 1;
11162 unsigned G1DBF2 : 1;
11163 unsigned G1DBF3 : 1;
11164 unsigned G1DBF4 : 1;
11165 unsigned G1DBF5 : 1;
11166 unsigned : 1;
11167 unsigned : 1;
11170 struct
11172 unsigned DBF : 6;
11173 unsigned : 2;
11176 struct
11178 unsigned G1DBF : 6;
11179 unsigned : 2;
11181 } __COG1DBFbits_t;
11183 extern __at(0x0692) volatile __COG1DBFbits_t COG1DBFbits;
11185 #define _DBF0 0x01
11186 #define _G1DBF0 0x01
11187 #define _DBF1 0x02
11188 #define _G1DBF1 0x02
11189 #define _DBF2 0x04
11190 #define _G1DBF2 0x04
11191 #define _DBF3 0x08
11192 #define _G1DBF3 0x08
11193 #define _DBF4 0x10
11194 #define _G1DBF4 0x10
11195 #define _DBF5 0x20
11196 #define _G1DBF5 0x20
11198 //==============================================================================
11201 //==============================================================================
11202 // COG1CON0 Bits
11204 extern __at(0x0693) __sfr COG1CON0;
11206 typedef union
11208 struct
11210 unsigned MD0 : 1;
11211 unsigned MD1 : 1;
11212 unsigned MD2 : 1;
11213 unsigned CS0 : 1;
11214 unsigned CS1 : 1;
11215 unsigned : 1;
11216 unsigned LD : 1;
11217 unsigned EN : 1;
11220 struct
11222 unsigned G1MD0 : 1;
11223 unsigned G1MD1 : 1;
11224 unsigned G1MD2 : 1;
11225 unsigned G1CS0 : 1;
11226 unsigned G1CS1 : 1;
11227 unsigned : 1;
11228 unsigned G1LD : 1;
11229 unsigned G1EN : 1;
11232 struct
11234 unsigned G1MD : 3;
11235 unsigned : 5;
11238 struct
11240 unsigned MD : 3;
11241 unsigned : 5;
11244 struct
11246 unsigned : 3;
11247 unsigned G1CS : 2;
11248 unsigned : 3;
11251 struct
11253 unsigned : 3;
11254 unsigned CS : 2;
11255 unsigned : 3;
11257 } __COG1CON0bits_t;
11259 extern __at(0x0693) volatile __COG1CON0bits_t COG1CON0bits;
11261 #define _COG1CON0_MD0 0x01
11262 #define _COG1CON0_G1MD0 0x01
11263 #define _COG1CON0_MD1 0x02
11264 #define _COG1CON0_G1MD1 0x02
11265 #define _COG1CON0_MD2 0x04
11266 #define _COG1CON0_G1MD2 0x04
11267 #define _COG1CON0_CS0 0x08
11268 #define _COG1CON0_G1CS0 0x08
11269 #define _COG1CON0_CS1 0x10
11270 #define _COG1CON0_G1CS1 0x10
11271 #define _COG1CON0_LD 0x40
11272 #define _COG1CON0_G1LD 0x40
11273 #define _COG1CON0_EN 0x80
11274 #define _COG1CON0_G1EN 0x80
11276 //==============================================================================
11279 //==============================================================================
11280 // COG1CON1 Bits
11282 extern __at(0x0694) __sfr COG1CON1;
11284 typedef union
11286 struct
11288 unsigned POLA : 1;
11289 unsigned POLB : 1;
11290 unsigned POLC : 1;
11291 unsigned POLD : 1;
11292 unsigned : 1;
11293 unsigned : 1;
11294 unsigned FDBS : 1;
11295 unsigned RDBS : 1;
11298 struct
11300 unsigned G1POLA : 1;
11301 unsigned G1POLB : 1;
11302 unsigned G1POLC : 1;
11303 unsigned G1POLD : 1;
11304 unsigned : 1;
11305 unsigned : 1;
11306 unsigned G1FDBS : 1;
11307 unsigned G1RDBS : 1;
11309 } __COG1CON1bits_t;
11311 extern __at(0x0694) volatile __COG1CON1bits_t COG1CON1bits;
11313 #define _POLA 0x01
11314 #define _G1POLA 0x01
11315 #define _POLB 0x02
11316 #define _G1POLB 0x02
11317 #define _POLC 0x04
11318 #define _G1POLC 0x04
11319 #define _POLD 0x08
11320 #define _G1POLD 0x08
11321 #define _FDBS 0x40
11322 #define _G1FDBS 0x40
11323 #define _RDBS 0x80
11324 #define _G1RDBS 0x80
11326 //==============================================================================
11329 //==============================================================================
11330 // COG1RIS0 Bits
11332 extern __at(0x0695) __sfr COG1RIS0;
11334 typedef union
11336 struct
11338 unsigned RIS0 : 1;
11339 unsigned RIS1 : 1;
11340 unsigned RIS2 : 1;
11341 unsigned RIS3 : 1;
11342 unsigned RIS4 : 1;
11343 unsigned RIS5 : 1;
11344 unsigned RIS6 : 1;
11345 unsigned RIS7 : 1;
11348 struct
11350 unsigned G1RIS0 : 1;
11351 unsigned G1RIS1 : 1;
11352 unsigned G1RIS2 : 1;
11353 unsigned G1RIS3 : 1;
11354 unsigned G1RIS4 : 1;
11355 unsigned G1RIS5 : 1;
11356 unsigned G1RIS6 : 1;
11357 unsigned G1RIS7 : 1;
11359 } __COG1RIS0bits_t;
11361 extern __at(0x0695) volatile __COG1RIS0bits_t COG1RIS0bits;
11363 #define _RIS0 0x01
11364 #define _G1RIS0 0x01
11365 #define _RIS1 0x02
11366 #define _G1RIS1 0x02
11367 #define _RIS2 0x04
11368 #define _G1RIS2 0x04
11369 #define _RIS3 0x08
11370 #define _G1RIS3 0x08
11371 #define _RIS4 0x10
11372 #define _G1RIS4 0x10
11373 #define _RIS5 0x20
11374 #define _G1RIS5 0x20
11375 #define _RIS6 0x40
11376 #define _G1RIS6 0x40
11377 #define _RIS7 0x80
11378 #define _G1RIS7 0x80
11380 //==============================================================================
11383 //==============================================================================
11384 // COG1RIS1 Bits
11386 extern __at(0x0696) __sfr COG1RIS1;
11388 typedef union
11390 struct
11392 unsigned RIS8 : 1;
11393 unsigned RIS9 : 1;
11394 unsigned RIS10 : 1;
11395 unsigned RIS11 : 1;
11396 unsigned RIS12 : 1;
11397 unsigned RIS13 : 1;
11398 unsigned RIS14 : 1;
11399 unsigned RIS15 : 1;
11402 struct
11404 unsigned G1RIS8 : 1;
11405 unsigned G1RIS9 : 1;
11406 unsigned G1RIS10 : 1;
11407 unsigned G1RIS11 : 1;
11408 unsigned G1RIS12 : 1;
11409 unsigned G1RIS13 : 1;
11410 unsigned G1RIS14 : 1;
11411 unsigned G1RIS15 : 1;
11413 } __COG1RIS1bits_t;
11415 extern __at(0x0696) volatile __COG1RIS1bits_t COG1RIS1bits;
11417 #define _RIS8 0x01
11418 #define _G1RIS8 0x01
11419 #define _RIS9 0x02
11420 #define _G1RIS9 0x02
11421 #define _RIS10 0x04
11422 #define _G1RIS10 0x04
11423 #define _RIS11 0x08
11424 #define _G1RIS11 0x08
11425 #define _RIS12 0x10
11426 #define _G1RIS12 0x10
11427 #define _RIS13 0x20
11428 #define _G1RIS13 0x20
11429 #define _RIS14 0x40
11430 #define _G1RIS14 0x40
11431 #define _RIS15 0x80
11432 #define _G1RIS15 0x80
11434 //==============================================================================
11437 //==============================================================================
11438 // COG1RSIM0 Bits
11440 extern __at(0x0697) __sfr COG1RSIM0;
11442 typedef union
11444 struct
11446 unsigned RSIM0 : 1;
11447 unsigned RSIM1 : 1;
11448 unsigned RSIM2 : 1;
11449 unsigned RSIM3 : 1;
11450 unsigned RSIM4 : 1;
11451 unsigned RSIM5 : 1;
11452 unsigned RSIM6 : 1;
11453 unsigned RSIM7 : 1;
11456 struct
11458 unsigned G1RSIM0 : 1;
11459 unsigned G1RSIM1 : 1;
11460 unsigned G1RSIM2 : 1;
11461 unsigned G1RSIM3 : 1;
11462 unsigned G1RSIM4 : 1;
11463 unsigned G1RSIM5 : 1;
11464 unsigned G1RSIM6 : 1;
11465 unsigned G1RSIM7 : 1;
11467 } __COG1RSIM0bits_t;
11469 extern __at(0x0697) volatile __COG1RSIM0bits_t COG1RSIM0bits;
11471 #define _RSIM0 0x01
11472 #define _G1RSIM0 0x01
11473 #define _RSIM1 0x02
11474 #define _G1RSIM1 0x02
11475 #define _RSIM2 0x04
11476 #define _G1RSIM2 0x04
11477 #define _RSIM3 0x08
11478 #define _G1RSIM3 0x08
11479 #define _RSIM4 0x10
11480 #define _G1RSIM4 0x10
11481 #define _RSIM5 0x20
11482 #define _G1RSIM5 0x20
11483 #define _RSIM6 0x40
11484 #define _G1RSIM6 0x40
11485 #define _RSIM7 0x80
11486 #define _G1RSIM7 0x80
11488 //==============================================================================
11491 //==============================================================================
11492 // COG1RSIM1 Bits
11494 extern __at(0x0698) __sfr COG1RSIM1;
11496 typedef union
11498 struct
11500 unsigned RSIM8 : 1;
11501 unsigned RSIM9 : 1;
11502 unsigned RSIM10 : 1;
11503 unsigned RSIM11 : 1;
11504 unsigned RSIM12 : 1;
11505 unsigned RSIM13 : 1;
11506 unsigned RSIM14 : 1;
11507 unsigned RSIM15 : 1;
11510 struct
11512 unsigned G1RSIM8 : 1;
11513 unsigned G1RSIM9 : 1;
11514 unsigned G1RSIM10 : 1;
11515 unsigned G1RSIM11 : 1;
11516 unsigned G1RSIM12 : 1;
11517 unsigned G1RSIM13 : 1;
11518 unsigned G1RSIM14 : 1;
11519 unsigned G1RSIM15 : 1;
11521 } __COG1RSIM1bits_t;
11523 extern __at(0x0698) volatile __COG1RSIM1bits_t COG1RSIM1bits;
11525 #define _RSIM8 0x01
11526 #define _G1RSIM8 0x01
11527 #define _RSIM9 0x02
11528 #define _G1RSIM9 0x02
11529 #define _RSIM10 0x04
11530 #define _G1RSIM10 0x04
11531 #define _RSIM11 0x08
11532 #define _G1RSIM11 0x08
11533 #define _RSIM12 0x10
11534 #define _G1RSIM12 0x10
11535 #define _RSIM13 0x20
11536 #define _G1RSIM13 0x20
11537 #define _RSIM14 0x40
11538 #define _G1RSIM14 0x40
11539 #define _RSIM15 0x80
11540 #define _G1RSIM15 0x80
11542 //==============================================================================
11545 //==============================================================================
11546 // COG1FIS0 Bits
11548 extern __at(0x0699) __sfr COG1FIS0;
11550 typedef union
11552 struct
11554 unsigned FIS0 : 1;
11555 unsigned FIS1 : 1;
11556 unsigned FIS2 : 1;
11557 unsigned FIS3 : 1;
11558 unsigned FIS4 : 1;
11559 unsigned FIS5 : 1;
11560 unsigned FIS6 : 1;
11561 unsigned FIS7 : 1;
11564 struct
11566 unsigned G1FIS0 : 1;
11567 unsigned G1FIS1 : 1;
11568 unsigned G1FIS2 : 1;
11569 unsigned G1FIS3 : 1;
11570 unsigned G1FIS4 : 1;
11571 unsigned G1FIS5 : 1;
11572 unsigned G1FIS6 : 1;
11573 unsigned G1FIS7 : 1;
11575 } __COG1FIS0bits_t;
11577 extern __at(0x0699) volatile __COG1FIS0bits_t COG1FIS0bits;
11579 #define _FIS0 0x01
11580 #define _G1FIS0 0x01
11581 #define _FIS1 0x02
11582 #define _G1FIS1 0x02
11583 #define _FIS2 0x04
11584 #define _G1FIS2 0x04
11585 #define _FIS3 0x08
11586 #define _G1FIS3 0x08
11587 #define _FIS4 0x10
11588 #define _G1FIS4 0x10
11589 #define _FIS5 0x20
11590 #define _G1FIS5 0x20
11591 #define _FIS6 0x40
11592 #define _G1FIS6 0x40
11593 #define _FIS7 0x80
11594 #define _G1FIS7 0x80
11596 //==============================================================================
11599 //==============================================================================
11600 // COG1FIS1 Bits
11602 extern __at(0x069A) __sfr COG1FIS1;
11604 typedef union
11606 struct
11608 unsigned FIS8 : 1;
11609 unsigned FIS9 : 1;
11610 unsigned FIS10 : 1;
11611 unsigned FIS11 : 1;
11612 unsigned FIS12 : 1;
11613 unsigned FIS13 : 1;
11614 unsigned FIS14 : 1;
11615 unsigned FIS15 : 1;
11618 struct
11620 unsigned G1FIS8 : 1;
11621 unsigned G1FIS9 : 1;
11622 unsigned G1FIS10 : 1;
11623 unsigned G1FIS11 : 1;
11624 unsigned G1FIS12 : 1;
11625 unsigned G1FIS13 : 1;
11626 unsigned G1FIS14 : 1;
11627 unsigned G1FIS15 : 1;
11629 } __COG1FIS1bits_t;
11631 extern __at(0x069A) volatile __COG1FIS1bits_t COG1FIS1bits;
11633 #define _FIS8 0x01
11634 #define _G1FIS8 0x01
11635 #define _FIS9 0x02
11636 #define _G1FIS9 0x02
11637 #define _FIS10 0x04
11638 #define _G1FIS10 0x04
11639 #define _FIS11 0x08
11640 #define _G1FIS11 0x08
11641 #define _FIS12 0x10
11642 #define _G1FIS12 0x10
11643 #define _FIS13 0x20
11644 #define _G1FIS13 0x20
11645 #define _FIS14 0x40
11646 #define _G1FIS14 0x40
11647 #define _FIS15 0x80
11648 #define _G1FIS15 0x80
11650 //==============================================================================
11653 //==============================================================================
11654 // COG1FSIM0 Bits
11656 extern __at(0x069B) __sfr COG1FSIM0;
11658 typedef union
11660 struct
11662 unsigned FSIM0 : 1;
11663 unsigned FSIM1 : 1;
11664 unsigned FSIM2 : 1;
11665 unsigned FSIM3 : 1;
11666 unsigned FSIM4 : 1;
11667 unsigned FSIM5 : 1;
11668 unsigned FSIM6 : 1;
11669 unsigned FSIM7 : 1;
11672 struct
11674 unsigned G1FSIM0 : 1;
11675 unsigned G1FSIM1 : 1;
11676 unsigned G1FSIM2 : 1;
11677 unsigned G1FSIM3 : 1;
11678 unsigned G1FSIM4 : 1;
11679 unsigned G1FSIM5 : 1;
11680 unsigned G1FSIM6 : 1;
11681 unsigned G1FSIM7 : 1;
11683 } __COG1FSIM0bits_t;
11685 extern __at(0x069B) volatile __COG1FSIM0bits_t COG1FSIM0bits;
11687 #define _FSIM0 0x01
11688 #define _G1FSIM0 0x01
11689 #define _FSIM1 0x02
11690 #define _G1FSIM1 0x02
11691 #define _FSIM2 0x04
11692 #define _G1FSIM2 0x04
11693 #define _FSIM3 0x08
11694 #define _G1FSIM3 0x08
11695 #define _FSIM4 0x10
11696 #define _G1FSIM4 0x10
11697 #define _FSIM5 0x20
11698 #define _G1FSIM5 0x20
11699 #define _FSIM6 0x40
11700 #define _G1FSIM6 0x40
11701 #define _FSIM7 0x80
11702 #define _G1FSIM7 0x80
11704 //==============================================================================
11707 //==============================================================================
11708 // COG1FSIM1 Bits
11710 extern __at(0x069C) __sfr COG1FSIM1;
11712 typedef union
11714 struct
11716 unsigned FSIM8 : 1;
11717 unsigned FSIM9 : 1;
11718 unsigned FSIM10 : 1;
11719 unsigned FSIM11 : 1;
11720 unsigned FSIM12 : 1;
11721 unsigned FSIM13 : 1;
11722 unsigned FSIM14 : 1;
11723 unsigned FSIM15 : 1;
11726 struct
11728 unsigned G1FSIM8 : 1;
11729 unsigned G1FSIM9 : 1;
11730 unsigned G1FSIM10 : 1;
11731 unsigned G1FSIM11 : 1;
11732 unsigned G1FSIM12 : 1;
11733 unsigned G1FSIM13 : 1;
11734 unsigned G1FSIM14 : 1;
11735 unsigned G1FSIM15 : 1;
11737 } __COG1FSIM1bits_t;
11739 extern __at(0x069C) volatile __COG1FSIM1bits_t COG1FSIM1bits;
11741 #define _FSIM8 0x01
11742 #define _G1FSIM8 0x01
11743 #define _FSIM9 0x02
11744 #define _G1FSIM9 0x02
11745 #define _FSIM10 0x04
11746 #define _G1FSIM10 0x04
11747 #define _FSIM11 0x08
11748 #define _G1FSIM11 0x08
11749 #define _FSIM12 0x10
11750 #define _G1FSIM12 0x10
11751 #define _FSIM13 0x20
11752 #define _G1FSIM13 0x20
11753 #define _FSIM14 0x40
11754 #define _G1FSIM14 0x40
11755 #define _FSIM15 0x80
11756 #define _G1FSIM15 0x80
11758 //==============================================================================
11761 //==============================================================================
11762 // COG1ASD0 Bits
11764 extern __at(0x069D) __sfr COG1ASD0;
11766 typedef union
11768 struct
11770 unsigned : 1;
11771 unsigned : 1;
11772 unsigned ASDAC0 : 1;
11773 unsigned ASDAC1 : 1;
11774 unsigned ASDBD0 : 1;
11775 unsigned ASDBD1 : 1;
11776 unsigned ASREN : 1;
11777 unsigned ASE : 1;
11780 struct
11782 unsigned : 1;
11783 unsigned : 1;
11784 unsigned G1ASDAC0 : 1;
11785 unsigned G1ASDAC1 : 1;
11786 unsigned G1ASDBD0 : 1;
11787 unsigned G1ASDBD1 : 1;
11788 unsigned ARSEN : 1;
11789 unsigned G1ASE : 1;
11792 struct
11794 unsigned : 1;
11795 unsigned : 1;
11796 unsigned : 1;
11797 unsigned : 1;
11798 unsigned : 1;
11799 unsigned : 1;
11800 unsigned G1ARSEN : 1;
11801 unsigned : 1;
11804 struct
11806 unsigned : 1;
11807 unsigned : 1;
11808 unsigned : 1;
11809 unsigned : 1;
11810 unsigned : 1;
11811 unsigned : 1;
11812 unsigned G1ASREN : 1;
11813 unsigned : 1;
11816 struct
11818 unsigned : 2;
11819 unsigned ASDAC : 2;
11820 unsigned : 4;
11823 struct
11825 unsigned : 2;
11826 unsigned G1ASDAC : 2;
11827 unsigned : 4;
11830 struct
11832 unsigned : 4;
11833 unsigned ASDBD : 2;
11834 unsigned : 2;
11837 struct
11839 unsigned : 4;
11840 unsigned G1ASDBD : 2;
11841 unsigned : 2;
11843 } __COG1ASD0bits_t;
11845 extern __at(0x069D) volatile __COG1ASD0bits_t COG1ASD0bits;
11847 #define _ASDAC0 0x04
11848 #define _G1ASDAC0 0x04
11849 #define _ASDAC1 0x08
11850 #define _G1ASDAC1 0x08
11851 #define _ASDBD0 0x10
11852 #define _G1ASDBD0 0x10
11853 #define _ASDBD1 0x20
11854 #define _G1ASDBD1 0x20
11855 #define _ASREN 0x40
11856 #define _ARSEN 0x40
11857 #define _G1ARSEN 0x40
11858 #define _G1ASREN 0x40
11859 #define _ASE 0x80
11860 #define _G1ASE 0x80
11862 //==============================================================================
11865 //==============================================================================
11866 // COG1ASD1 Bits
11868 extern __at(0x069E) __sfr COG1ASD1;
11870 typedef union
11872 struct
11874 unsigned AS0E : 1;
11875 unsigned AS1E : 1;
11876 unsigned AS2E : 1;
11877 unsigned AS3E : 1;
11878 unsigned AS4E : 1;
11879 unsigned AS5E : 1;
11880 unsigned AS6E : 1;
11881 unsigned AS7E : 1;
11884 struct
11886 unsigned G1AS0E : 1;
11887 unsigned G1AS1E : 1;
11888 unsigned G1AS2E : 1;
11889 unsigned G1AS3E : 1;
11890 unsigned G1AS4E : 1;
11891 unsigned G1AS5E : 1;
11892 unsigned G1AS6E : 1;
11893 unsigned G1AS7E : 1;
11895 } __COG1ASD1bits_t;
11897 extern __at(0x069E) volatile __COG1ASD1bits_t COG1ASD1bits;
11899 #define _AS0E 0x01
11900 #define _G1AS0E 0x01
11901 #define _AS1E 0x02
11902 #define _G1AS1E 0x02
11903 #define _AS2E 0x04
11904 #define _G1AS2E 0x04
11905 #define _AS3E 0x08
11906 #define _G1AS3E 0x08
11907 #define _AS4E 0x10
11908 #define _G1AS4E 0x10
11909 #define _AS5E 0x20
11910 #define _G1AS5E 0x20
11911 #define _AS6E 0x40
11912 #define _G1AS6E 0x40
11913 #define _AS7E 0x80
11914 #define _G1AS7E 0x80
11916 //==============================================================================
11919 //==============================================================================
11920 // COG1STR Bits
11922 extern __at(0x069F) __sfr COG1STR;
11924 typedef union
11926 struct
11928 unsigned STRA : 1;
11929 unsigned STRB : 1;
11930 unsigned STRC : 1;
11931 unsigned STRD : 1;
11932 unsigned SDATA : 1;
11933 unsigned SDATB : 1;
11934 unsigned SDATC : 1;
11935 unsigned SDATD : 1;
11938 struct
11940 unsigned G1STRA : 1;
11941 unsigned G1STRB : 1;
11942 unsigned G1STRC : 1;
11943 unsigned G1STRD : 1;
11944 unsigned G1SDATA : 1;
11945 unsigned G1SDATB : 1;
11946 unsigned G1SDATC : 1;
11947 unsigned G1SDATD : 1;
11949 } __COG1STRbits_t;
11951 extern __at(0x069F) volatile __COG1STRbits_t COG1STRbits;
11953 #define _STRA 0x01
11954 #define _G1STRA 0x01
11955 #define _STRB 0x02
11956 #define _G1STRB 0x02
11957 #define _STRC 0x04
11958 #define _G1STRC 0x04
11959 #define _STRD 0x08
11960 #define _G1STRD 0x08
11961 #define _SDATA 0x10
11962 #define _G1SDATA 0x10
11963 #define _SDATB 0x20
11964 #define _G1SDATB 0x20
11965 #define _SDATC 0x40
11966 #define _G1SDATC 0x40
11967 #define _SDATD 0x80
11968 #define _G1SDATD 0x80
11970 //==============================================================================
11973 //==============================================================================
11974 // COG2PHR Bits
11976 extern __at(0x070D) __sfr COG2PHR;
11978 typedef union
11980 struct
11982 unsigned PHR0 : 1;
11983 unsigned PHR1 : 1;
11984 unsigned PHR2 : 1;
11985 unsigned PHR3 : 1;
11986 unsigned PHR4 : 1;
11987 unsigned PHR5 : 1;
11988 unsigned : 1;
11989 unsigned : 1;
11992 struct
11994 unsigned G2PHR0 : 1;
11995 unsigned G2PHR1 : 1;
11996 unsigned G2PHR2 : 1;
11997 unsigned G2PHR3 : 1;
11998 unsigned G2PHR4 : 1;
11999 unsigned G2PHR5 : 1;
12000 unsigned : 1;
12001 unsigned : 1;
12004 struct
12006 unsigned G2PHR : 6;
12007 unsigned : 2;
12010 struct
12012 unsigned PHR : 6;
12013 unsigned : 2;
12015 } __COG2PHRbits_t;
12017 extern __at(0x070D) volatile __COG2PHRbits_t COG2PHRbits;
12019 #define _COG2PHR_PHR0 0x01
12020 #define _COG2PHR_G2PHR0 0x01
12021 #define _COG2PHR_PHR1 0x02
12022 #define _COG2PHR_G2PHR1 0x02
12023 #define _COG2PHR_PHR2 0x04
12024 #define _COG2PHR_G2PHR2 0x04
12025 #define _COG2PHR_PHR3 0x08
12026 #define _COG2PHR_G2PHR3 0x08
12027 #define _COG2PHR_PHR4 0x10
12028 #define _COG2PHR_G2PHR4 0x10
12029 #define _COG2PHR_PHR5 0x20
12030 #define _COG2PHR_G2PHR5 0x20
12032 //==============================================================================
12035 //==============================================================================
12036 // COG2PHF Bits
12038 extern __at(0x070E) __sfr COG2PHF;
12040 typedef union
12042 struct
12044 unsigned PHF0 : 1;
12045 unsigned PHF1 : 1;
12046 unsigned PHF2 : 1;
12047 unsigned PHF3 : 1;
12048 unsigned PHF4 : 1;
12049 unsigned PHF5 : 1;
12050 unsigned : 1;
12051 unsigned : 1;
12054 struct
12056 unsigned G2PHF0 : 1;
12057 unsigned G2PHF1 : 1;
12058 unsigned G2PHF2 : 1;
12059 unsigned G2PHF3 : 1;
12060 unsigned G2PHF4 : 1;
12061 unsigned G2PHF5 : 1;
12062 unsigned : 1;
12063 unsigned : 1;
12066 struct
12068 unsigned PHF : 6;
12069 unsigned : 2;
12072 struct
12074 unsigned G2PHF : 6;
12075 unsigned : 2;
12077 } __COG2PHFbits_t;
12079 extern __at(0x070E) volatile __COG2PHFbits_t COG2PHFbits;
12081 #define _COG2PHF_PHF0 0x01
12082 #define _COG2PHF_G2PHF0 0x01
12083 #define _COG2PHF_PHF1 0x02
12084 #define _COG2PHF_G2PHF1 0x02
12085 #define _COG2PHF_PHF2 0x04
12086 #define _COG2PHF_G2PHF2 0x04
12087 #define _COG2PHF_PHF3 0x08
12088 #define _COG2PHF_G2PHF3 0x08
12089 #define _COG2PHF_PHF4 0x10
12090 #define _COG2PHF_G2PHF4 0x10
12091 #define _COG2PHF_PHF5 0x20
12092 #define _COG2PHF_G2PHF5 0x20
12094 //==============================================================================
12097 //==============================================================================
12098 // COG2BLKR Bits
12100 extern __at(0x070F) __sfr COG2BLKR;
12102 typedef union
12104 struct
12106 unsigned BLKR0 : 1;
12107 unsigned BLKR1 : 1;
12108 unsigned BLKR2 : 1;
12109 unsigned BLKR3 : 1;
12110 unsigned BLKR4 : 1;
12111 unsigned BLKR5 : 1;
12112 unsigned : 1;
12113 unsigned : 1;
12116 struct
12118 unsigned G2BLKR0 : 1;
12119 unsigned G2BLKR1 : 1;
12120 unsigned G2BLKR2 : 1;
12121 unsigned G2BLKR3 : 1;
12122 unsigned G2BLKR4 : 1;
12123 unsigned G2BLKR5 : 1;
12124 unsigned : 1;
12125 unsigned : 1;
12128 struct
12130 unsigned G2BLKR : 6;
12131 unsigned : 2;
12134 struct
12136 unsigned BLKR : 6;
12137 unsigned : 2;
12139 } __COG2BLKRbits_t;
12141 extern __at(0x070F) volatile __COG2BLKRbits_t COG2BLKRbits;
12143 #define _COG2BLKR_BLKR0 0x01
12144 #define _COG2BLKR_G2BLKR0 0x01
12145 #define _COG2BLKR_BLKR1 0x02
12146 #define _COG2BLKR_G2BLKR1 0x02
12147 #define _COG2BLKR_BLKR2 0x04
12148 #define _COG2BLKR_G2BLKR2 0x04
12149 #define _COG2BLKR_BLKR3 0x08
12150 #define _COG2BLKR_G2BLKR3 0x08
12151 #define _COG2BLKR_BLKR4 0x10
12152 #define _COG2BLKR_G2BLKR4 0x10
12153 #define _COG2BLKR_BLKR5 0x20
12154 #define _COG2BLKR_G2BLKR5 0x20
12156 //==============================================================================
12159 //==============================================================================
12160 // COG2BLKF Bits
12162 extern __at(0x0710) __sfr COG2BLKF;
12164 typedef union
12166 struct
12168 unsigned BLKF0 : 1;
12169 unsigned BLKF1 : 1;
12170 unsigned BLKF2 : 1;
12171 unsigned BLKF3 : 1;
12172 unsigned BLKF4 : 1;
12173 unsigned BLKF5 : 1;
12174 unsigned : 1;
12175 unsigned : 1;
12178 struct
12180 unsigned G2BLKF0 : 1;
12181 unsigned G2BLKF1 : 1;
12182 unsigned G2BLKF2 : 1;
12183 unsigned G2BLKF3 : 1;
12184 unsigned G2BLKF4 : 1;
12185 unsigned G2BLKF5 : 1;
12186 unsigned : 1;
12187 unsigned : 1;
12190 struct
12192 unsigned BLKF : 6;
12193 unsigned : 2;
12196 struct
12198 unsigned G2BLKF : 6;
12199 unsigned : 2;
12201 } __COG2BLKFbits_t;
12203 extern __at(0x0710) volatile __COG2BLKFbits_t COG2BLKFbits;
12205 #define _COG2BLKF_BLKF0 0x01
12206 #define _COG2BLKF_G2BLKF0 0x01
12207 #define _COG2BLKF_BLKF1 0x02
12208 #define _COG2BLKF_G2BLKF1 0x02
12209 #define _COG2BLKF_BLKF2 0x04
12210 #define _COG2BLKF_G2BLKF2 0x04
12211 #define _COG2BLKF_BLKF3 0x08
12212 #define _COG2BLKF_G2BLKF3 0x08
12213 #define _COG2BLKF_BLKF4 0x10
12214 #define _COG2BLKF_G2BLKF4 0x10
12215 #define _COG2BLKF_BLKF5 0x20
12216 #define _COG2BLKF_G2BLKF5 0x20
12218 //==============================================================================
12221 //==============================================================================
12222 // COG2DBR Bits
12224 extern __at(0x0711) __sfr COG2DBR;
12226 typedef union
12228 struct
12230 unsigned DBR0 : 1;
12231 unsigned DBR1 : 1;
12232 unsigned DBR2 : 1;
12233 unsigned DBR3 : 1;
12234 unsigned DBR4 : 1;
12235 unsigned DBR5 : 1;
12236 unsigned : 1;
12237 unsigned : 1;
12240 struct
12242 unsigned G2DBR0 : 1;
12243 unsigned G2DBR1 : 1;
12244 unsigned G2DBR2 : 1;
12245 unsigned G2DBR3 : 1;
12246 unsigned G2DBR4 : 1;
12247 unsigned G2DBR5 : 1;
12248 unsigned : 1;
12249 unsigned : 1;
12252 struct
12254 unsigned G2DBR : 6;
12255 unsigned : 2;
12258 struct
12260 unsigned DBR : 6;
12261 unsigned : 2;
12263 } __COG2DBRbits_t;
12265 extern __at(0x0711) volatile __COG2DBRbits_t COG2DBRbits;
12267 #define _COG2DBR_DBR0 0x01
12268 #define _COG2DBR_G2DBR0 0x01
12269 #define _COG2DBR_DBR1 0x02
12270 #define _COG2DBR_G2DBR1 0x02
12271 #define _COG2DBR_DBR2 0x04
12272 #define _COG2DBR_G2DBR2 0x04
12273 #define _COG2DBR_DBR3 0x08
12274 #define _COG2DBR_G2DBR3 0x08
12275 #define _COG2DBR_DBR4 0x10
12276 #define _COG2DBR_G2DBR4 0x10
12277 #define _COG2DBR_DBR5 0x20
12278 #define _COG2DBR_G2DBR5 0x20
12280 //==============================================================================
12283 //==============================================================================
12284 // COG2DBF Bits
12286 extern __at(0x0712) __sfr COG2DBF;
12288 typedef union
12290 struct
12292 unsigned DBF0 : 1;
12293 unsigned DBF1 : 1;
12294 unsigned DBF2 : 1;
12295 unsigned DBF3 : 1;
12296 unsigned DBF4 : 1;
12297 unsigned DBF5 : 1;
12298 unsigned : 1;
12299 unsigned : 1;
12302 struct
12304 unsigned G2DBF0 : 1;
12305 unsigned G2DBF1 : 1;
12306 unsigned G2DBF2 : 1;
12307 unsigned G2DBF3 : 1;
12308 unsigned G2DBF4 : 1;
12309 unsigned G2DBF5 : 1;
12310 unsigned : 1;
12311 unsigned : 1;
12314 struct
12316 unsigned G2DBF : 6;
12317 unsigned : 2;
12320 struct
12322 unsigned DBF : 6;
12323 unsigned : 2;
12325 } __COG2DBFbits_t;
12327 extern __at(0x0712) volatile __COG2DBFbits_t COG2DBFbits;
12329 #define _COG2DBF_DBF0 0x01
12330 #define _COG2DBF_G2DBF0 0x01
12331 #define _COG2DBF_DBF1 0x02
12332 #define _COG2DBF_G2DBF1 0x02
12333 #define _COG2DBF_DBF2 0x04
12334 #define _COG2DBF_G2DBF2 0x04
12335 #define _COG2DBF_DBF3 0x08
12336 #define _COG2DBF_G2DBF3 0x08
12337 #define _COG2DBF_DBF4 0x10
12338 #define _COG2DBF_G2DBF4 0x10
12339 #define _COG2DBF_DBF5 0x20
12340 #define _COG2DBF_G2DBF5 0x20
12342 //==============================================================================
12345 //==============================================================================
12346 // COG2CON0 Bits
12348 extern __at(0x0713) __sfr COG2CON0;
12350 typedef union
12352 struct
12354 unsigned MD0 : 1;
12355 unsigned MD1 : 1;
12356 unsigned MD2 : 1;
12357 unsigned CS0 : 1;
12358 unsigned CS1 : 1;
12359 unsigned : 1;
12360 unsigned LD : 1;
12361 unsigned EN : 1;
12364 struct
12366 unsigned G2MD0 : 1;
12367 unsigned G2MD1 : 1;
12368 unsigned G2MD2 : 1;
12369 unsigned G2CS0 : 1;
12370 unsigned G2CS1 : 1;
12371 unsigned : 1;
12372 unsigned G2LD : 1;
12373 unsigned G2EN : 1;
12376 struct
12378 unsigned G2MD : 3;
12379 unsigned : 5;
12382 struct
12384 unsigned MD : 3;
12385 unsigned : 5;
12388 struct
12390 unsigned : 3;
12391 unsigned CS : 2;
12392 unsigned : 3;
12395 struct
12397 unsigned : 3;
12398 unsigned G2CS : 2;
12399 unsigned : 3;
12401 } __COG2CON0bits_t;
12403 extern __at(0x0713) volatile __COG2CON0bits_t COG2CON0bits;
12405 #define _COG2CON0_MD0 0x01
12406 #define _COG2CON0_G2MD0 0x01
12407 #define _COG2CON0_MD1 0x02
12408 #define _COG2CON0_G2MD1 0x02
12409 #define _COG2CON0_MD2 0x04
12410 #define _COG2CON0_G2MD2 0x04
12411 #define _COG2CON0_CS0 0x08
12412 #define _COG2CON0_G2CS0 0x08
12413 #define _COG2CON0_CS1 0x10
12414 #define _COG2CON0_G2CS1 0x10
12415 #define _COG2CON0_LD 0x40
12416 #define _COG2CON0_G2LD 0x40
12417 #define _COG2CON0_EN 0x80
12418 #define _COG2CON0_G2EN 0x80
12420 //==============================================================================
12423 //==============================================================================
12424 // COG2CON1 Bits
12426 extern __at(0x0714) __sfr COG2CON1;
12428 typedef union
12430 struct
12432 unsigned POLA : 1;
12433 unsigned POLB : 1;
12434 unsigned POLC : 1;
12435 unsigned POLD : 1;
12436 unsigned : 1;
12437 unsigned : 1;
12438 unsigned FDBS : 1;
12439 unsigned RDBS : 1;
12442 struct
12444 unsigned G2POLA : 1;
12445 unsigned G2POLB : 1;
12446 unsigned G2POLC : 1;
12447 unsigned G2POLD : 1;
12448 unsigned : 1;
12449 unsigned : 1;
12450 unsigned G2FDBS : 1;
12451 unsigned G2RDBS : 1;
12453 } __COG2CON1bits_t;
12455 extern __at(0x0714) volatile __COG2CON1bits_t COG2CON1bits;
12457 #define _COG2CON1_POLA 0x01
12458 #define _COG2CON1_G2POLA 0x01
12459 #define _COG2CON1_POLB 0x02
12460 #define _COG2CON1_G2POLB 0x02
12461 #define _COG2CON1_POLC 0x04
12462 #define _COG2CON1_G2POLC 0x04
12463 #define _COG2CON1_POLD 0x08
12464 #define _COG2CON1_G2POLD 0x08
12465 #define _COG2CON1_FDBS 0x40
12466 #define _COG2CON1_G2FDBS 0x40
12467 #define _COG2CON1_RDBS 0x80
12468 #define _COG2CON1_G2RDBS 0x80
12470 //==============================================================================
12473 //==============================================================================
12474 // COG2RIS0 Bits
12476 extern __at(0x0715) __sfr COG2RIS0;
12478 typedef union
12480 struct
12482 unsigned RIS0 : 1;
12483 unsigned RIS1 : 1;
12484 unsigned RIS2 : 1;
12485 unsigned RIS3 : 1;
12486 unsigned RIS4 : 1;
12487 unsigned RIS5 : 1;
12488 unsigned RIS6 : 1;
12489 unsigned RIS7 : 1;
12492 struct
12494 unsigned G2RIS0 : 1;
12495 unsigned G2RIS1 : 1;
12496 unsigned G2RIS2 : 1;
12497 unsigned G2RIS3 : 1;
12498 unsigned G2RIS4 : 1;
12499 unsigned G2RIS5 : 1;
12500 unsigned G2RIS6 : 1;
12501 unsigned G2RIS7 : 1;
12503 } __COG2RIS0bits_t;
12505 extern __at(0x0715) volatile __COG2RIS0bits_t COG2RIS0bits;
12507 #define _COG2RIS0_RIS0 0x01
12508 #define _COG2RIS0_G2RIS0 0x01
12509 #define _COG2RIS0_RIS1 0x02
12510 #define _COG2RIS0_G2RIS1 0x02
12511 #define _COG2RIS0_RIS2 0x04
12512 #define _COG2RIS0_G2RIS2 0x04
12513 #define _COG2RIS0_RIS3 0x08
12514 #define _COG2RIS0_G2RIS3 0x08
12515 #define _COG2RIS0_RIS4 0x10
12516 #define _COG2RIS0_G2RIS4 0x10
12517 #define _COG2RIS0_RIS5 0x20
12518 #define _COG2RIS0_G2RIS5 0x20
12519 #define _COG2RIS0_RIS6 0x40
12520 #define _COG2RIS0_G2RIS6 0x40
12521 #define _COG2RIS0_RIS7 0x80
12522 #define _COG2RIS0_G2RIS7 0x80
12524 //==============================================================================
12527 //==============================================================================
12528 // COG2RIS1 Bits
12530 extern __at(0x0716) __sfr COG2RIS1;
12532 typedef union
12534 struct
12536 unsigned RIS8 : 1;
12537 unsigned RIS9 : 1;
12538 unsigned RIS10 : 1;
12539 unsigned RIS11 : 1;
12540 unsigned RIS12 : 1;
12541 unsigned RIS13 : 1;
12542 unsigned RIS14 : 1;
12543 unsigned RIS15 : 1;
12546 struct
12548 unsigned G2RIS8 : 1;
12549 unsigned G2RIS9 : 1;
12550 unsigned G2RIS10 : 1;
12551 unsigned G2RIS11 : 1;
12552 unsigned G2RIS12 : 1;
12553 unsigned G2RIS13 : 1;
12554 unsigned G2RIS14 : 1;
12555 unsigned G2RIS15 : 1;
12557 } __COG2RIS1bits_t;
12559 extern __at(0x0716) volatile __COG2RIS1bits_t COG2RIS1bits;
12561 #define _COG2RIS1_RIS8 0x01
12562 #define _COG2RIS1_G2RIS8 0x01
12563 #define _COG2RIS1_RIS9 0x02
12564 #define _COG2RIS1_G2RIS9 0x02
12565 #define _COG2RIS1_RIS10 0x04
12566 #define _COG2RIS1_G2RIS10 0x04
12567 #define _COG2RIS1_RIS11 0x08
12568 #define _COG2RIS1_G2RIS11 0x08
12569 #define _COG2RIS1_RIS12 0x10
12570 #define _COG2RIS1_G2RIS12 0x10
12571 #define _COG2RIS1_RIS13 0x20
12572 #define _COG2RIS1_G2RIS13 0x20
12573 #define _COG2RIS1_RIS14 0x40
12574 #define _COG2RIS1_G2RIS14 0x40
12575 #define _COG2RIS1_RIS15 0x80
12576 #define _COG2RIS1_G2RIS15 0x80
12578 //==============================================================================
12581 //==============================================================================
12582 // COG2RSIM0 Bits
12584 extern __at(0x0717) __sfr COG2RSIM0;
12586 typedef union
12588 struct
12590 unsigned RSIM0 : 1;
12591 unsigned RSIM1 : 1;
12592 unsigned RSIM2 : 1;
12593 unsigned RSIM3 : 1;
12594 unsigned RSIM4 : 1;
12595 unsigned RSIM5 : 1;
12596 unsigned RSIM6 : 1;
12597 unsigned RSIM7 : 1;
12600 struct
12602 unsigned G2RSIM0 : 1;
12603 unsigned G2RSIM1 : 1;
12604 unsigned G2RSIM2 : 1;
12605 unsigned G2RSIM3 : 1;
12606 unsigned G2RSIM4 : 1;
12607 unsigned G2RSIM5 : 1;
12608 unsigned G2RSIM6 : 1;
12609 unsigned G2RSIM7 : 1;
12611 } __COG2RSIM0bits_t;
12613 extern __at(0x0717) volatile __COG2RSIM0bits_t COG2RSIM0bits;
12615 #define _COG2RSIM0_RSIM0 0x01
12616 #define _COG2RSIM0_G2RSIM0 0x01
12617 #define _COG2RSIM0_RSIM1 0x02
12618 #define _COG2RSIM0_G2RSIM1 0x02
12619 #define _COG2RSIM0_RSIM2 0x04
12620 #define _COG2RSIM0_G2RSIM2 0x04
12621 #define _COG2RSIM0_RSIM3 0x08
12622 #define _COG2RSIM0_G2RSIM3 0x08
12623 #define _COG2RSIM0_RSIM4 0x10
12624 #define _COG2RSIM0_G2RSIM4 0x10
12625 #define _COG2RSIM0_RSIM5 0x20
12626 #define _COG2RSIM0_G2RSIM5 0x20
12627 #define _COG2RSIM0_RSIM6 0x40
12628 #define _COG2RSIM0_G2RSIM6 0x40
12629 #define _COG2RSIM0_RSIM7 0x80
12630 #define _COG2RSIM0_G2RSIM7 0x80
12632 //==============================================================================
12635 //==============================================================================
12636 // COG2RSIM1 Bits
12638 extern __at(0x0718) __sfr COG2RSIM1;
12640 typedef union
12642 struct
12644 unsigned RSIM8 : 1;
12645 unsigned RSIM9 : 1;
12646 unsigned RSIM10 : 1;
12647 unsigned RSIM11 : 1;
12648 unsigned RSIM12 : 1;
12649 unsigned RSIM13 : 1;
12650 unsigned RSIM14 : 1;
12651 unsigned RSIM15 : 1;
12654 struct
12656 unsigned G2RSIM8 : 1;
12657 unsigned G2RSIM9 : 1;
12658 unsigned G2RSIM10 : 1;
12659 unsigned G2RSIM11 : 1;
12660 unsigned G2RSIM12 : 1;
12661 unsigned G2RSIM13 : 1;
12662 unsigned G2RSIM14 : 1;
12663 unsigned G2RSIM15 : 1;
12665 } __COG2RSIM1bits_t;
12667 extern __at(0x0718) volatile __COG2RSIM1bits_t COG2RSIM1bits;
12669 #define _COG2RSIM1_RSIM8 0x01
12670 #define _COG2RSIM1_G2RSIM8 0x01
12671 #define _COG2RSIM1_RSIM9 0x02
12672 #define _COG2RSIM1_G2RSIM9 0x02
12673 #define _COG2RSIM1_RSIM10 0x04
12674 #define _COG2RSIM1_G2RSIM10 0x04
12675 #define _COG2RSIM1_RSIM11 0x08
12676 #define _COG2RSIM1_G2RSIM11 0x08
12677 #define _COG2RSIM1_RSIM12 0x10
12678 #define _COG2RSIM1_G2RSIM12 0x10
12679 #define _COG2RSIM1_RSIM13 0x20
12680 #define _COG2RSIM1_G2RSIM13 0x20
12681 #define _COG2RSIM1_RSIM14 0x40
12682 #define _COG2RSIM1_G2RSIM14 0x40
12683 #define _COG2RSIM1_RSIM15 0x80
12684 #define _COG2RSIM1_G2RSIM15 0x80
12686 //==============================================================================
12689 //==============================================================================
12690 // COG2FIS0 Bits
12692 extern __at(0x0719) __sfr COG2FIS0;
12694 typedef union
12696 struct
12698 unsigned FIS0 : 1;
12699 unsigned FIS1 : 1;
12700 unsigned FIS2 : 1;
12701 unsigned FIS3 : 1;
12702 unsigned FIS4 : 1;
12703 unsigned FIS5 : 1;
12704 unsigned FIS6 : 1;
12705 unsigned FIS7 : 1;
12708 struct
12710 unsigned G2FIS0 : 1;
12711 unsigned G2FIS1 : 1;
12712 unsigned G2FIS2 : 1;
12713 unsigned G2FIS3 : 1;
12714 unsigned G2FIS4 : 1;
12715 unsigned G2FIS5 : 1;
12716 unsigned G2FIS6 : 1;
12717 unsigned G2FIS7 : 1;
12719 } __COG2FIS0bits_t;
12721 extern __at(0x0719) volatile __COG2FIS0bits_t COG2FIS0bits;
12723 #define _COG2FIS0_FIS0 0x01
12724 #define _COG2FIS0_G2FIS0 0x01
12725 #define _COG2FIS0_FIS1 0x02
12726 #define _COG2FIS0_G2FIS1 0x02
12727 #define _COG2FIS0_FIS2 0x04
12728 #define _COG2FIS0_G2FIS2 0x04
12729 #define _COG2FIS0_FIS3 0x08
12730 #define _COG2FIS0_G2FIS3 0x08
12731 #define _COG2FIS0_FIS4 0x10
12732 #define _COG2FIS0_G2FIS4 0x10
12733 #define _COG2FIS0_FIS5 0x20
12734 #define _COG2FIS0_G2FIS5 0x20
12735 #define _COG2FIS0_FIS6 0x40
12736 #define _COG2FIS0_G2FIS6 0x40
12737 #define _COG2FIS0_FIS7 0x80
12738 #define _COG2FIS0_G2FIS7 0x80
12740 //==============================================================================
12743 //==============================================================================
12744 // COG2FIS1 Bits
12746 extern __at(0x071A) __sfr COG2FIS1;
12748 typedef union
12750 struct
12752 unsigned FIS8 : 1;
12753 unsigned FIS9 : 1;
12754 unsigned FIS10 : 1;
12755 unsigned FIS11 : 1;
12756 unsigned FIS12 : 1;
12757 unsigned FIS13 : 1;
12758 unsigned FIS14 : 1;
12759 unsigned FIS15 : 1;
12762 struct
12764 unsigned G2FIS8 : 1;
12765 unsigned G2FIS9 : 1;
12766 unsigned G2FIS10 : 1;
12767 unsigned G2FIS11 : 1;
12768 unsigned G2FIS12 : 1;
12769 unsigned G2FIS13 : 1;
12770 unsigned G2FIS14 : 1;
12771 unsigned G2FIS15 : 1;
12773 } __COG2FIS1bits_t;
12775 extern __at(0x071A) volatile __COG2FIS1bits_t COG2FIS1bits;
12777 #define _COG2FIS1_FIS8 0x01
12778 #define _COG2FIS1_G2FIS8 0x01
12779 #define _COG2FIS1_FIS9 0x02
12780 #define _COG2FIS1_G2FIS9 0x02
12781 #define _COG2FIS1_FIS10 0x04
12782 #define _COG2FIS1_G2FIS10 0x04
12783 #define _COG2FIS1_FIS11 0x08
12784 #define _COG2FIS1_G2FIS11 0x08
12785 #define _COG2FIS1_FIS12 0x10
12786 #define _COG2FIS1_G2FIS12 0x10
12787 #define _COG2FIS1_FIS13 0x20
12788 #define _COG2FIS1_G2FIS13 0x20
12789 #define _COG2FIS1_FIS14 0x40
12790 #define _COG2FIS1_G2FIS14 0x40
12791 #define _COG2FIS1_FIS15 0x80
12792 #define _COG2FIS1_G2FIS15 0x80
12794 //==============================================================================
12797 //==============================================================================
12798 // COG2FSIM0 Bits
12800 extern __at(0x071B) __sfr COG2FSIM0;
12802 typedef union
12804 struct
12806 unsigned FSIM0 : 1;
12807 unsigned FSIM1 : 1;
12808 unsigned FSIM2 : 1;
12809 unsigned FSIM3 : 1;
12810 unsigned FSIM4 : 1;
12811 unsigned FSIM5 : 1;
12812 unsigned FSIM6 : 1;
12813 unsigned FSIM7 : 1;
12816 struct
12818 unsigned G2FSIM0 : 1;
12819 unsigned G2FSIM1 : 1;
12820 unsigned G2FSIM2 : 1;
12821 unsigned G2FSIM3 : 1;
12822 unsigned G2FSIM4 : 1;
12823 unsigned G2FSIM5 : 1;
12824 unsigned G2FSIM6 : 1;
12825 unsigned G2FSIM7 : 1;
12827 } __COG2FSIM0bits_t;
12829 extern __at(0x071B) volatile __COG2FSIM0bits_t COG2FSIM0bits;
12831 #define _COG2FSIM0_FSIM0 0x01
12832 #define _COG2FSIM0_G2FSIM0 0x01
12833 #define _COG2FSIM0_FSIM1 0x02
12834 #define _COG2FSIM0_G2FSIM1 0x02
12835 #define _COG2FSIM0_FSIM2 0x04
12836 #define _COG2FSIM0_G2FSIM2 0x04
12837 #define _COG2FSIM0_FSIM3 0x08
12838 #define _COG2FSIM0_G2FSIM3 0x08
12839 #define _COG2FSIM0_FSIM4 0x10
12840 #define _COG2FSIM0_G2FSIM4 0x10
12841 #define _COG2FSIM0_FSIM5 0x20
12842 #define _COG2FSIM0_G2FSIM5 0x20
12843 #define _COG2FSIM0_FSIM6 0x40
12844 #define _COG2FSIM0_G2FSIM6 0x40
12845 #define _COG2FSIM0_FSIM7 0x80
12846 #define _COG2FSIM0_G2FSIM7 0x80
12848 //==============================================================================
12851 //==============================================================================
12852 // COG2FSIM1 Bits
12854 extern __at(0x071C) __sfr COG2FSIM1;
12856 typedef union
12858 struct
12860 unsigned FSIM8 : 1;
12861 unsigned FSIM9 : 1;
12862 unsigned FSIM10 : 1;
12863 unsigned FSIM11 : 1;
12864 unsigned FSIM12 : 1;
12865 unsigned FSIM13 : 1;
12866 unsigned FSIM14 : 1;
12867 unsigned FSIM15 : 1;
12870 struct
12872 unsigned G2FSIM8 : 1;
12873 unsigned G2FSIM9 : 1;
12874 unsigned G2FSIM10 : 1;
12875 unsigned G2FSIM11 : 1;
12876 unsigned G2FSIM12 : 1;
12877 unsigned G2FSIM13 : 1;
12878 unsigned G2FSIM14 : 1;
12879 unsigned G2FSIM15 : 1;
12881 } __COG2FSIM1bits_t;
12883 extern __at(0x071C) volatile __COG2FSIM1bits_t COG2FSIM1bits;
12885 #define _COG2FSIM1_FSIM8 0x01
12886 #define _COG2FSIM1_G2FSIM8 0x01
12887 #define _COG2FSIM1_FSIM9 0x02
12888 #define _COG2FSIM1_G2FSIM9 0x02
12889 #define _COG2FSIM1_FSIM10 0x04
12890 #define _COG2FSIM1_G2FSIM10 0x04
12891 #define _COG2FSIM1_FSIM11 0x08
12892 #define _COG2FSIM1_G2FSIM11 0x08
12893 #define _COG2FSIM1_FSIM12 0x10
12894 #define _COG2FSIM1_G2FSIM12 0x10
12895 #define _COG2FSIM1_FSIM13 0x20
12896 #define _COG2FSIM1_G2FSIM13 0x20
12897 #define _COG2FSIM1_FSIM14 0x40
12898 #define _COG2FSIM1_G2FSIM14 0x40
12899 #define _COG2FSIM1_FSIM15 0x80
12900 #define _COG2FSIM1_G2FSIM15 0x80
12902 //==============================================================================
12905 //==============================================================================
12906 // COG2ASD0 Bits
12908 extern __at(0x071D) __sfr COG2ASD0;
12910 typedef union
12912 struct
12914 unsigned : 1;
12915 unsigned : 1;
12916 unsigned ASDAC0 : 1;
12917 unsigned ASDAC1 : 1;
12918 unsigned ASDBD0 : 1;
12919 unsigned ASDBD1 : 1;
12920 unsigned ASREN : 1;
12921 unsigned ASE : 1;
12924 struct
12926 unsigned : 1;
12927 unsigned : 1;
12928 unsigned G2ASDAC0 : 1;
12929 unsigned G2ASDAC1 : 1;
12930 unsigned G2ASDBD0 : 1;
12931 unsigned G2ASDBD1 : 1;
12932 unsigned ARSEN : 1;
12933 unsigned G2ASE : 1;
12936 struct
12938 unsigned : 1;
12939 unsigned : 1;
12940 unsigned : 1;
12941 unsigned : 1;
12942 unsigned : 1;
12943 unsigned : 1;
12944 unsigned G2ARSEN : 1;
12945 unsigned : 1;
12948 struct
12950 unsigned : 1;
12951 unsigned : 1;
12952 unsigned : 1;
12953 unsigned : 1;
12954 unsigned : 1;
12955 unsigned : 1;
12956 unsigned G2ASREN : 1;
12957 unsigned : 1;
12960 struct
12962 unsigned : 2;
12963 unsigned G2ASDAC : 2;
12964 unsigned : 4;
12967 struct
12969 unsigned : 2;
12970 unsigned ASDAC : 2;
12971 unsigned : 4;
12974 struct
12976 unsigned : 4;
12977 unsigned ASDBD : 2;
12978 unsigned : 2;
12981 struct
12983 unsigned : 4;
12984 unsigned G2ASDBD : 2;
12985 unsigned : 2;
12987 } __COG2ASD0bits_t;
12989 extern __at(0x071D) volatile __COG2ASD0bits_t COG2ASD0bits;
12991 #define _COG2ASD0_ASDAC0 0x04
12992 #define _COG2ASD0_G2ASDAC0 0x04
12993 #define _COG2ASD0_ASDAC1 0x08
12994 #define _COG2ASD0_G2ASDAC1 0x08
12995 #define _COG2ASD0_ASDBD0 0x10
12996 #define _COG2ASD0_G2ASDBD0 0x10
12997 #define _COG2ASD0_ASDBD1 0x20
12998 #define _COG2ASD0_G2ASDBD1 0x20
12999 #define _COG2ASD0_ASREN 0x40
13000 #define _COG2ASD0_ARSEN 0x40
13001 #define _COG2ASD0_G2ARSEN 0x40
13002 #define _COG2ASD0_G2ASREN 0x40
13003 #define _COG2ASD0_ASE 0x80
13004 #define _COG2ASD0_G2ASE 0x80
13006 //==============================================================================
13009 //==============================================================================
13010 // COG2ASD1 Bits
13012 extern __at(0x071E) __sfr COG2ASD1;
13014 typedef union
13016 struct
13018 unsigned AS0E : 1;
13019 unsigned AS1E : 1;
13020 unsigned AS2E : 1;
13021 unsigned AS3E : 1;
13022 unsigned AS4E : 1;
13023 unsigned AS5E : 1;
13024 unsigned AS6E : 1;
13025 unsigned AS7E : 1;
13028 struct
13030 unsigned G2AS0E : 1;
13031 unsigned G2AS1E : 1;
13032 unsigned G2AS2E : 1;
13033 unsigned G2AS3E : 1;
13034 unsigned G2AS4E : 1;
13035 unsigned G2AS5E : 1;
13036 unsigned G2AS6E : 1;
13037 unsigned G2AS7E : 1;
13039 } __COG2ASD1bits_t;
13041 extern __at(0x071E) volatile __COG2ASD1bits_t COG2ASD1bits;
13043 #define _COG2ASD1_AS0E 0x01
13044 #define _COG2ASD1_G2AS0E 0x01
13045 #define _COG2ASD1_AS1E 0x02
13046 #define _COG2ASD1_G2AS1E 0x02
13047 #define _COG2ASD1_AS2E 0x04
13048 #define _COG2ASD1_G2AS2E 0x04
13049 #define _COG2ASD1_AS3E 0x08
13050 #define _COG2ASD1_G2AS3E 0x08
13051 #define _COG2ASD1_AS4E 0x10
13052 #define _COG2ASD1_G2AS4E 0x10
13053 #define _COG2ASD1_AS5E 0x20
13054 #define _COG2ASD1_G2AS5E 0x20
13055 #define _COG2ASD1_AS6E 0x40
13056 #define _COG2ASD1_G2AS6E 0x40
13057 #define _COG2ASD1_AS7E 0x80
13058 #define _COG2ASD1_G2AS7E 0x80
13060 //==============================================================================
13063 //==============================================================================
13064 // COG2STR Bits
13066 extern __at(0x071F) __sfr COG2STR;
13068 typedef union
13070 struct
13072 unsigned STRA : 1;
13073 unsigned STRB : 1;
13074 unsigned STRC : 1;
13075 unsigned STRD : 1;
13076 unsigned SDATA : 1;
13077 unsigned SDATB : 1;
13078 unsigned SDATC : 1;
13079 unsigned SDATD : 1;
13082 struct
13084 unsigned G2STRA : 1;
13085 unsigned G2STRB : 1;
13086 unsigned G2STRC : 1;
13087 unsigned G2STRD : 1;
13088 unsigned G2SDATA : 1;
13089 unsigned G2SDATB : 1;
13090 unsigned G2SDATC : 1;
13091 unsigned G2SDATD : 1;
13093 } __COG2STRbits_t;
13095 extern __at(0x071F) volatile __COG2STRbits_t COG2STRbits;
13097 #define _COG2STR_STRA 0x01
13098 #define _COG2STR_G2STRA 0x01
13099 #define _COG2STR_STRB 0x02
13100 #define _COG2STR_G2STRB 0x02
13101 #define _COG2STR_STRC 0x04
13102 #define _COG2STR_G2STRC 0x04
13103 #define _COG2STR_STRD 0x08
13104 #define _COG2STR_G2STRD 0x08
13105 #define _COG2STR_SDATA 0x10
13106 #define _COG2STR_G2SDATA 0x10
13107 #define _COG2STR_SDATB 0x20
13108 #define _COG2STR_G2SDATB 0x20
13109 #define _COG2STR_SDATC 0x40
13110 #define _COG2STR_G2SDATC 0x40
13111 #define _COG2STR_SDATD 0x80
13112 #define _COG2STR_G2SDATD 0x80
13114 //==============================================================================
13117 //==============================================================================
13118 // PRG1RTSS Bits
13120 extern __at(0x078E) __sfr PRG1RTSS;
13122 typedef union
13124 struct
13126 unsigned RTSS0 : 1;
13127 unsigned RTSS1 : 1;
13128 unsigned RTSS2 : 1;
13129 unsigned RTSS3 : 1;
13130 unsigned : 1;
13131 unsigned : 1;
13132 unsigned : 1;
13133 unsigned : 1;
13136 struct
13138 unsigned RG1RTSS0 : 1;
13139 unsigned RG1RTSS1 : 1;
13140 unsigned RG1RTSS2 : 1;
13141 unsigned RG1RTSS3 : 1;
13142 unsigned : 1;
13143 unsigned : 1;
13144 unsigned : 1;
13145 unsigned : 1;
13148 struct
13150 unsigned RG1RTSS : 4;
13151 unsigned : 4;
13154 struct
13156 unsigned RTSS : 4;
13157 unsigned : 4;
13159 } __PRG1RTSSbits_t;
13161 extern __at(0x078E) volatile __PRG1RTSSbits_t PRG1RTSSbits;
13163 #define _RTSS0 0x01
13164 #define _RG1RTSS0 0x01
13165 #define _RTSS1 0x02
13166 #define _RG1RTSS1 0x02
13167 #define _RTSS2 0x04
13168 #define _RG1RTSS2 0x04
13169 #define _RTSS3 0x08
13170 #define _RG1RTSS3 0x08
13172 //==============================================================================
13175 //==============================================================================
13176 // PRG1FTSS Bits
13178 extern __at(0x078F) __sfr PRG1FTSS;
13180 typedef union
13182 struct
13184 unsigned FTSS0 : 1;
13185 unsigned FTSS1 : 1;
13186 unsigned FTSS2 : 1;
13187 unsigned FTSS3 : 1;
13188 unsigned : 1;
13189 unsigned : 1;
13190 unsigned : 1;
13191 unsigned : 1;
13194 struct
13196 unsigned RG1FTSS0 : 1;
13197 unsigned RG1FTSS1 : 1;
13198 unsigned RG1FTSS2 : 1;
13199 unsigned RG1FTSS3 : 1;
13200 unsigned : 1;
13201 unsigned : 1;
13202 unsigned : 1;
13203 unsigned : 1;
13206 struct
13208 unsigned FTSS : 4;
13209 unsigned : 4;
13212 struct
13214 unsigned RG1FTSS : 4;
13215 unsigned : 4;
13217 } __PRG1FTSSbits_t;
13219 extern __at(0x078F) volatile __PRG1FTSSbits_t PRG1FTSSbits;
13221 #define _FTSS0 0x01
13222 #define _RG1FTSS0 0x01
13223 #define _FTSS1 0x02
13224 #define _RG1FTSS1 0x02
13225 #define _FTSS2 0x04
13226 #define _RG1FTSS2 0x04
13227 #define _FTSS3 0x08
13228 #define _RG1FTSS3 0x08
13230 //==============================================================================
13233 //==============================================================================
13234 // PRG1INS Bits
13236 extern __at(0x0790) __sfr PRG1INS;
13238 typedef union
13240 struct
13242 unsigned INS0 : 1;
13243 unsigned INS1 : 1;
13244 unsigned INS2 : 1;
13245 unsigned INS3 : 1;
13246 unsigned : 1;
13247 unsigned : 1;
13248 unsigned : 1;
13249 unsigned : 1;
13252 struct
13254 unsigned RG1INS0 : 1;
13255 unsigned RG1INS1 : 1;
13256 unsigned RG1INS2 : 1;
13257 unsigned RG1INS3 : 1;
13258 unsigned : 1;
13259 unsigned : 1;
13260 unsigned : 1;
13261 unsigned : 1;
13264 struct
13266 unsigned RG1INS : 4;
13267 unsigned : 4;
13270 struct
13272 unsigned INS : 4;
13273 unsigned : 4;
13275 } __PRG1INSbits_t;
13277 extern __at(0x0790) volatile __PRG1INSbits_t PRG1INSbits;
13279 #define _INS0 0x01
13280 #define _RG1INS0 0x01
13281 #define _INS1 0x02
13282 #define _RG1INS1 0x02
13283 #define _INS2 0x04
13284 #define _RG1INS2 0x04
13285 #define _INS3 0x08
13286 #define _RG1INS3 0x08
13288 //==============================================================================
13291 //==============================================================================
13292 // PRG1CON0 Bits
13294 extern __at(0x0791) __sfr PRG1CON0;
13296 typedef union
13298 struct
13300 unsigned GO : 1;
13301 unsigned OS : 1;
13302 unsigned MODE0 : 1;
13303 unsigned MODE1 : 1;
13304 unsigned REDG : 1;
13305 unsigned FEDG : 1;
13306 unsigned : 1;
13307 unsigned EN : 1;
13310 struct
13312 unsigned RG1GO : 1;
13313 unsigned RG1OS : 1;
13314 unsigned RG1MODE0 : 1;
13315 unsigned RG1MODE1 : 1;
13316 unsigned RG1REDG : 1;
13317 unsigned RG1FEDG : 1;
13318 unsigned : 1;
13319 unsigned RG1EN : 1;
13322 struct
13324 unsigned : 2;
13325 unsigned MODE : 2;
13326 unsigned : 4;
13329 struct
13331 unsigned : 2;
13332 unsigned RG1MODE : 2;
13333 unsigned : 4;
13335 } __PRG1CON0bits_t;
13337 extern __at(0x0791) volatile __PRG1CON0bits_t PRG1CON0bits;
13339 #define _PRG1CON0_GO 0x01
13340 #define _PRG1CON0_RG1GO 0x01
13341 #define _PRG1CON0_OS 0x02
13342 #define _PRG1CON0_RG1OS 0x02
13343 #define _PRG1CON0_MODE0 0x04
13344 #define _PRG1CON0_RG1MODE0 0x04
13345 #define _PRG1CON0_MODE1 0x08
13346 #define _PRG1CON0_RG1MODE1 0x08
13347 #define _PRG1CON0_REDG 0x10
13348 #define _PRG1CON0_RG1REDG 0x10
13349 #define _PRG1CON0_FEDG 0x20
13350 #define _PRG1CON0_RG1FEDG 0x20
13351 #define _PRG1CON0_EN 0x80
13352 #define _PRG1CON0_RG1EN 0x80
13354 //==============================================================================
13357 //==============================================================================
13358 // PRG1CON1 Bits
13360 extern __at(0x0792) __sfr PRG1CON1;
13362 typedef union
13364 struct
13366 unsigned RPOL : 1;
13367 unsigned FPOL : 1;
13368 unsigned RDY : 1;
13369 unsigned : 1;
13370 unsigned : 1;
13371 unsigned : 1;
13372 unsigned : 1;
13373 unsigned : 1;
13376 struct
13378 unsigned RG1RPOL : 1;
13379 unsigned RG1FPOL : 1;
13380 unsigned RG1RDY : 1;
13381 unsigned : 1;
13382 unsigned : 1;
13383 unsigned : 1;
13384 unsigned : 1;
13385 unsigned : 1;
13387 } __PRG1CON1bits_t;
13389 extern __at(0x0792) volatile __PRG1CON1bits_t PRG1CON1bits;
13391 #define _RPOL 0x01
13392 #define _RG1RPOL 0x01
13393 #define _FPOL 0x02
13394 #define _RG1FPOL 0x02
13395 #define _RDY 0x04
13396 #define _RG1RDY 0x04
13398 //==============================================================================
13401 //==============================================================================
13402 // PRG1CON2 Bits
13404 extern __at(0x0793) __sfr PRG1CON2;
13406 typedef union
13408 struct
13410 unsigned ISET0 : 1;
13411 unsigned ISET1 : 1;
13412 unsigned ISET2 : 1;
13413 unsigned ISET3 : 1;
13414 unsigned ISET4 : 1;
13415 unsigned : 1;
13416 unsigned : 1;
13417 unsigned : 1;
13420 struct
13422 unsigned RG1ISET0 : 1;
13423 unsigned RG1ISET1 : 1;
13424 unsigned RG1ISET2 : 1;
13425 unsigned RG1ISET3 : 1;
13426 unsigned RG1ISET4 : 1;
13427 unsigned : 1;
13428 unsigned : 1;
13429 unsigned : 1;
13432 struct
13434 unsigned ISET : 5;
13435 unsigned : 3;
13438 struct
13440 unsigned RG1ISET : 5;
13441 unsigned : 3;
13443 } __PRG1CON2bits_t;
13445 extern __at(0x0793) volatile __PRG1CON2bits_t PRG1CON2bits;
13447 #define _ISET0 0x01
13448 #define _RG1ISET0 0x01
13449 #define _ISET1 0x02
13450 #define _RG1ISET1 0x02
13451 #define _ISET2 0x04
13452 #define _RG1ISET2 0x04
13453 #define _ISET3 0x08
13454 #define _RG1ISET3 0x08
13455 #define _ISET4 0x10
13456 #define _RG1ISET4 0x10
13458 //==============================================================================
13461 //==============================================================================
13462 // PRG2RTSS Bits
13464 extern __at(0x0794) __sfr PRG2RTSS;
13466 typedef union
13468 struct
13470 unsigned RTSS0 : 1;
13471 unsigned RTSS1 : 1;
13472 unsigned RTSS2 : 1;
13473 unsigned RTSS3 : 1;
13474 unsigned : 1;
13475 unsigned : 1;
13476 unsigned : 1;
13477 unsigned : 1;
13480 struct
13482 unsigned RG2RTSS0 : 1;
13483 unsigned RG2RTSS1 : 1;
13484 unsigned RG2RTSS2 : 1;
13485 unsigned RG2RTSS3 : 1;
13486 unsigned : 1;
13487 unsigned : 1;
13488 unsigned : 1;
13489 unsigned : 1;
13492 struct
13494 unsigned RG2RTSS : 4;
13495 unsigned : 4;
13498 struct
13500 unsigned RTSS : 4;
13501 unsigned : 4;
13503 } __PRG2RTSSbits_t;
13505 extern __at(0x0794) volatile __PRG2RTSSbits_t PRG2RTSSbits;
13507 #define _PRG2RTSS_RTSS0 0x01
13508 #define _PRG2RTSS_RG2RTSS0 0x01
13509 #define _PRG2RTSS_RTSS1 0x02
13510 #define _PRG2RTSS_RG2RTSS1 0x02
13511 #define _PRG2RTSS_RTSS2 0x04
13512 #define _PRG2RTSS_RG2RTSS2 0x04
13513 #define _PRG2RTSS_RTSS3 0x08
13514 #define _PRG2RTSS_RG2RTSS3 0x08
13516 //==============================================================================
13519 //==============================================================================
13520 // PRG2FTSS Bits
13522 extern __at(0x0795) __sfr PRG2FTSS;
13524 typedef union
13526 struct
13528 unsigned FTSS0 : 1;
13529 unsigned FTSS1 : 1;
13530 unsigned FTSS2 : 1;
13531 unsigned FTSS3 : 1;
13532 unsigned : 1;
13533 unsigned : 1;
13534 unsigned : 1;
13535 unsigned : 1;
13538 struct
13540 unsigned RG2FTSS0 : 1;
13541 unsigned RG2FTSS1 : 1;
13542 unsigned RG2FTSS2 : 1;
13543 unsigned RG2FTSS3 : 1;
13544 unsigned : 1;
13545 unsigned : 1;
13546 unsigned : 1;
13547 unsigned : 1;
13550 struct
13552 unsigned FTSS : 4;
13553 unsigned : 4;
13556 struct
13558 unsigned RG2FTSS : 4;
13559 unsigned : 4;
13561 } __PRG2FTSSbits_t;
13563 extern __at(0x0795) volatile __PRG2FTSSbits_t PRG2FTSSbits;
13565 #define _PRG2FTSS_FTSS0 0x01
13566 #define _PRG2FTSS_RG2FTSS0 0x01
13567 #define _PRG2FTSS_FTSS1 0x02
13568 #define _PRG2FTSS_RG2FTSS1 0x02
13569 #define _PRG2FTSS_FTSS2 0x04
13570 #define _PRG2FTSS_RG2FTSS2 0x04
13571 #define _PRG2FTSS_FTSS3 0x08
13572 #define _PRG2FTSS_RG2FTSS3 0x08
13574 //==============================================================================
13577 //==============================================================================
13578 // PRG2INS Bits
13580 extern __at(0x0796) __sfr PRG2INS;
13582 typedef union
13584 struct
13586 unsigned INS0 : 1;
13587 unsigned INS1 : 1;
13588 unsigned INS2 : 1;
13589 unsigned INS3 : 1;
13590 unsigned : 1;
13591 unsigned : 1;
13592 unsigned : 1;
13593 unsigned : 1;
13596 struct
13598 unsigned RG2INS0 : 1;
13599 unsigned RG2INS1 : 1;
13600 unsigned RG2INS2 : 1;
13601 unsigned RG2INS3 : 1;
13602 unsigned : 1;
13603 unsigned : 1;
13604 unsigned : 1;
13605 unsigned : 1;
13608 struct
13610 unsigned INS : 4;
13611 unsigned : 4;
13614 struct
13616 unsigned RG2INS : 4;
13617 unsigned : 4;
13619 } __PRG2INSbits_t;
13621 extern __at(0x0796) volatile __PRG2INSbits_t PRG2INSbits;
13623 #define _PRG2INS_INS0 0x01
13624 #define _PRG2INS_RG2INS0 0x01
13625 #define _PRG2INS_INS1 0x02
13626 #define _PRG2INS_RG2INS1 0x02
13627 #define _PRG2INS_INS2 0x04
13628 #define _PRG2INS_RG2INS2 0x04
13629 #define _PRG2INS_INS3 0x08
13630 #define _PRG2INS_RG2INS3 0x08
13632 //==============================================================================
13635 //==============================================================================
13636 // PRG2CON0 Bits
13638 extern __at(0x0797) __sfr PRG2CON0;
13640 typedef union
13642 struct
13644 unsigned GO : 1;
13645 unsigned OS : 1;
13646 unsigned MODE0 : 1;
13647 unsigned MODE1 : 1;
13648 unsigned REDG : 1;
13649 unsigned FEDG : 1;
13650 unsigned : 1;
13651 unsigned EN : 1;
13654 struct
13656 unsigned RG2GO : 1;
13657 unsigned RG2OS : 1;
13658 unsigned RG2MODE0 : 1;
13659 unsigned RG2MODE1 : 1;
13660 unsigned RG2REDG : 1;
13661 unsigned RG2FEDG : 1;
13662 unsigned : 1;
13663 unsigned RG2EN : 1;
13666 struct
13668 unsigned : 2;
13669 unsigned RG2MODE : 2;
13670 unsigned : 4;
13673 struct
13675 unsigned : 2;
13676 unsigned MODE : 2;
13677 unsigned : 4;
13679 } __PRG2CON0bits_t;
13681 extern __at(0x0797) volatile __PRG2CON0bits_t PRG2CON0bits;
13683 #define _PRG2CON0_GO 0x01
13684 #define _PRG2CON0_RG2GO 0x01
13685 #define _PRG2CON0_OS 0x02
13686 #define _PRG2CON0_RG2OS 0x02
13687 #define _PRG2CON0_MODE0 0x04
13688 #define _PRG2CON0_RG2MODE0 0x04
13689 #define _PRG2CON0_MODE1 0x08
13690 #define _PRG2CON0_RG2MODE1 0x08
13691 #define _PRG2CON0_REDG 0x10
13692 #define _PRG2CON0_RG2REDG 0x10
13693 #define _PRG2CON0_FEDG 0x20
13694 #define _PRG2CON0_RG2FEDG 0x20
13695 #define _PRG2CON0_EN 0x80
13696 #define _PRG2CON0_RG2EN 0x80
13698 //==============================================================================
13701 //==============================================================================
13702 // PRG2CON1 Bits
13704 extern __at(0x0798) __sfr PRG2CON1;
13706 typedef union
13708 struct
13710 unsigned RPOL : 1;
13711 unsigned FPOL : 1;
13712 unsigned RDY : 1;
13713 unsigned : 1;
13714 unsigned : 1;
13715 unsigned : 1;
13716 unsigned : 1;
13717 unsigned : 1;
13720 struct
13722 unsigned RG2RPOL : 1;
13723 unsigned RG2FPOL : 1;
13724 unsigned RG2RDY : 1;
13725 unsigned : 1;
13726 unsigned : 1;
13727 unsigned : 1;
13728 unsigned : 1;
13729 unsigned : 1;
13731 } __PRG2CON1bits_t;
13733 extern __at(0x0798) volatile __PRG2CON1bits_t PRG2CON1bits;
13735 #define _PRG2CON1_RPOL 0x01
13736 #define _PRG2CON1_RG2RPOL 0x01
13737 #define _PRG2CON1_FPOL 0x02
13738 #define _PRG2CON1_RG2FPOL 0x02
13739 #define _PRG2CON1_RDY 0x04
13740 #define _PRG2CON1_RG2RDY 0x04
13742 //==============================================================================
13745 //==============================================================================
13746 // PRG2CON2 Bits
13748 extern __at(0x0799) __sfr PRG2CON2;
13750 typedef union
13752 struct
13754 unsigned ISET0 : 1;
13755 unsigned ISET1 : 1;
13756 unsigned ISET2 : 1;
13757 unsigned ISET3 : 1;
13758 unsigned ISET4 : 1;
13759 unsigned : 1;
13760 unsigned : 1;
13761 unsigned : 1;
13764 struct
13766 unsigned RG2ISET0 : 1;
13767 unsigned RG2ISET1 : 1;
13768 unsigned RG2ISET2 : 1;
13769 unsigned RG2ISET3 : 1;
13770 unsigned RG2ISET4 : 1;
13771 unsigned : 1;
13772 unsigned : 1;
13773 unsigned : 1;
13776 struct
13778 unsigned ISET : 5;
13779 unsigned : 3;
13782 struct
13784 unsigned RG2ISET : 5;
13785 unsigned : 3;
13787 } __PRG2CON2bits_t;
13789 extern __at(0x0799) volatile __PRG2CON2bits_t PRG2CON2bits;
13791 #define _PRG2CON2_ISET0 0x01
13792 #define _PRG2CON2_RG2ISET0 0x01
13793 #define _PRG2CON2_ISET1 0x02
13794 #define _PRG2CON2_RG2ISET1 0x02
13795 #define _PRG2CON2_ISET2 0x04
13796 #define _PRG2CON2_RG2ISET2 0x04
13797 #define _PRG2CON2_ISET3 0x08
13798 #define _PRG2CON2_RG2ISET3 0x08
13799 #define _PRG2CON2_ISET4 0x10
13800 #define _PRG2CON2_RG2ISET4 0x10
13802 //==============================================================================
13805 //==============================================================================
13806 // PRG3RTSS Bits
13808 extern __at(0x079A) __sfr PRG3RTSS;
13810 typedef union
13812 struct
13814 unsigned RTSS0 : 1;
13815 unsigned RTSS1 : 1;
13816 unsigned RTSS2 : 1;
13817 unsigned RTSS3 : 1;
13818 unsigned : 1;
13819 unsigned : 1;
13820 unsigned : 1;
13821 unsigned : 1;
13824 struct
13826 unsigned RG3RTSS0 : 1;
13827 unsigned RG3RTSS1 : 1;
13828 unsigned RG3RTSS2 : 1;
13829 unsigned RG3RTSS3 : 1;
13830 unsigned : 1;
13831 unsigned : 1;
13832 unsigned : 1;
13833 unsigned : 1;
13836 struct
13838 unsigned RTSS : 4;
13839 unsigned : 4;
13842 struct
13844 unsigned RG3RTSS : 4;
13845 unsigned : 4;
13847 } __PRG3RTSSbits_t;
13849 extern __at(0x079A) volatile __PRG3RTSSbits_t PRG3RTSSbits;
13851 #define _PRG3RTSS_RTSS0 0x01
13852 #define _PRG3RTSS_RG3RTSS0 0x01
13853 #define _PRG3RTSS_RTSS1 0x02
13854 #define _PRG3RTSS_RG3RTSS1 0x02
13855 #define _PRG3RTSS_RTSS2 0x04
13856 #define _PRG3RTSS_RG3RTSS2 0x04
13857 #define _PRG3RTSS_RTSS3 0x08
13858 #define _PRG3RTSS_RG3RTSS3 0x08
13860 //==============================================================================
13863 //==============================================================================
13864 // PRG3FTSS Bits
13866 extern __at(0x079B) __sfr PRG3FTSS;
13868 typedef union
13870 struct
13872 unsigned FTSS0 : 1;
13873 unsigned FTSS1 : 1;
13874 unsigned FTSS2 : 1;
13875 unsigned FTSS3 : 1;
13876 unsigned : 1;
13877 unsigned : 1;
13878 unsigned : 1;
13879 unsigned : 1;
13882 struct
13884 unsigned RG3FTSS0 : 1;
13885 unsigned RG3FTSS1 : 1;
13886 unsigned RG3FTSS2 : 1;
13887 unsigned RG3FTSS3 : 1;
13888 unsigned : 1;
13889 unsigned : 1;
13890 unsigned : 1;
13891 unsigned : 1;
13894 struct
13896 unsigned RG3FTSS : 4;
13897 unsigned : 4;
13900 struct
13902 unsigned FTSS : 4;
13903 unsigned : 4;
13905 } __PRG3FTSSbits_t;
13907 extern __at(0x079B) volatile __PRG3FTSSbits_t PRG3FTSSbits;
13909 #define _PRG3FTSS_FTSS0 0x01
13910 #define _PRG3FTSS_RG3FTSS0 0x01
13911 #define _PRG3FTSS_FTSS1 0x02
13912 #define _PRG3FTSS_RG3FTSS1 0x02
13913 #define _PRG3FTSS_FTSS2 0x04
13914 #define _PRG3FTSS_RG3FTSS2 0x04
13915 #define _PRG3FTSS_FTSS3 0x08
13916 #define _PRG3FTSS_RG3FTSS3 0x08
13918 //==============================================================================
13921 //==============================================================================
13922 // PRG3INS Bits
13924 extern __at(0x079C) __sfr PRG3INS;
13926 typedef union
13928 struct
13930 unsigned INS0 : 1;
13931 unsigned INS1 : 1;
13932 unsigned INS2 : 1;
13933 unsigned INS3 : 1;
13934 unsigned : 1;
13935 unsigned : 1;
13936 unsigned : 1;
13937 unsigned : 1;
13940 struct
13942 unsigned RG3INS0 : 1;
13943 unsigned RG3INS1 : 1;
13944 unsigned RG3INS2 : 1;
13945 unsigned RG3INS3 : 1;
13946 unsigned : 1;
13947 unsigned : 1;
13948 unsigned : 1;
13949 unsigned : 1;
13952 struct
13954 unsigned RG3INS : 4;
13955 unsigned : 4;
13958 struct
13960 unsigned INS : 4;
13961 unsigned : 4;
13963 } __PRG3INSbits_t;
13965 extern __at(0x079C) volatile __PRG3INSbits_t PRG3INSbits;
13967 #define _PRG3INS_INS0 0x01
13968 #define _PRG3INS_RG3INS0 0x01
13969 #define _PRG3INS_INS1 0x02
13970 #define _PRG3INS_RG3INS1 0x02
13971 #define _PRG3INS_INS2 0x04
13972 #define _PRG3INS_RG3INS2 0x04
13973 #define _PRG3INS_INS3 0x08
13974 #define _PRG3INS_RG3INS3 0x08
13976 //==============================================================================
13979 //==============================================================================
13980 // PRG3CON0 Bits
13982 extern __at(0x079D) __sfr PRG3CON0;
13984 typedef union
13986 struct
13988 unsigned GO : 1;
13989 unsigned OS : 1;
13990 unsigned MODE0 : 1;
13991 unsigned MODE1 : 1;
13992 unsigned REDG : 1;
13993 unsigned FEDG : 1;
13994 unsigned : 1;
13995 unsigned EN : 1;
13998 struct
14000 unsigned RG3GO : 1;
14001 unsigned RG3OS : 1;
14002 unsigned RG3MODE0 : 1;
14003 unsigned RG3MODE1 : 1;
14004 unsigned RG3REDG : 1;
14005 unsigned RG3FEDG : 1;
14006 unsigned : 1;
14007 unsigned RG3EN : 1;
14010 struct
14012 unsigned : 2;
14013 unsigned MODE : 2;
14014 unsigned : 4;
14017 struct
14019 unsigned : 2;
14020 unsigned RG3MODE : 2;
14021 unsigned : 4;
14023 } __PRG3CON0bits_t;
14025 extern __at(0x079D) volatile __PRG3CON0bits_t PRG3CON0bits;
14027 #define _PRG3CON0_GO 0x01
14028 #define _PRG3CON0_RG3GO 0x01
14029 #define _PRG3CON0_OS 0x02
14030 #define _PRG3CON0_RG3OS 0x02
14031 #define _PRG3CON0_MODE0 0x04
14032 #define _PRG3CON0_RG3MODE0 0x04
14033 #define _PRG3CON0_MODE1 0x08
14034 #define _PRG3CON0_RG3MODE1 0x08
14035 #define _PRG3CON0_REDG 0x10
14036 #define _PRG3CON0_RG3REDG 0x10
14037 #define _PRG3CON0_FEDG 0x20
14038 #define _PRG3CON0_RG3FEDG 0x20
14039 #define _PRG3CON0_EN 0x80
14040 #define _PRG3CON0_RG3EN 0x80
14042 //==============================================================================
14045 //==============================================================================
14046 // PRG3CON1 Bits
14048 extern __at(0x079E) __sfr PRG3CON1;
14050 typedef union
14052 struct
14054 unsigned RPOL : 1;
14055 unsigned FPOL : 1;
14056 unsigned RDY : 1;
14057 unsigned : 1;
14058 unsigned : 1;
14059 unsigned : 1;
14060 unsigned : 1;
14061 unsigned : 1;
14064 struct
14066 unsigned RG3RPOL : 1;
14067 unsigned RG3FPOL : 1;
14068 unsigned RG3RDY : 1;
14069 unsigned : 1;
14070 unsigned : 1;
14071 unsigned : 1;
14072 unsigned : 1;
14073 unsigned : 1;
14075 } __PRG3CON1bits_t;
14077 extern __at(0x079E) volatile __PRG3CON1bits_t PRG3CON1bits;
14079 #define _PRG3CON1_RPOL 0x01
14080 #define _PRG3CON1_RG3RPOL 0x01
14081 #define _PRG3CON1_FPOL 0x02
14082 #define _PRG3CON1_RG3FPOL 0x02
14083 #define _PRG3CON1_RDY 0x04
14084 #define _PRG3CON1_RG3RDY 0x04
14086 //==============================================================================
14089 //==============================================================================
14090 // PRG3CON2 Bits
14092 extern __at(0x079F) __sfr PRG3CON2;
14094 typedef union
14096 struct
14098 unsigned ISET0 : 1;
14099 unsigned ISET1 : 1;
14100 unsigned ISET2 : 1;
14101 unsigned ISET3 : 1;
14102 unsigned ISET4 : 1;
14103 unsigned : 1;
14104 unsigned : 1;
14105 unsigned : 1;
14108 struct
14110 unsigned RG3ISET0 : 1;
14111 unsigned RG3ISET1 : 1;
14112 unsigned RG3ISET2 : 1;
14113 unsigned RG3ISET3 : 1;
14114 unsigned RG3ISET4 : 1;
14115 unsigned : 1;
14116 unsigned : 1;
14117 unsigned : 1;
14120 struct
14122 unsigned RG3ISET : 5;
14123 unsigned : 3;
14126 struct
14128 unsigned ISET : 5;
14129 unsigned : 3;
14131 } __PRG3CON2bits_t;
14133 extern __at(0x079F) volatile __PRG3CON2bits_t PRG3CON2bits;
14135 #define _PRG3CON2_ISET0 0x01
14136 #define _PRG3CON2_RG3ISET0 0x01
14137 #define _PRG3CON2_ISET1 0x02
14138 #define _PRG3CON2_RG3ISET1 0x02
14139 #define _PRG3CON2_ISET2 0x04
14140 #define _PRG3CON2_RG3ISET2 0x04
14141 #define _PRG3CON2_ISET3 0x08
14142 #define _PRG3CON2_RG3ISET3 0x08
14143 #define _PRG3CON2_ISET4 0x10
14144 #define _PRG3CON2_RG3ISET4 0x10
14146 //==============================================================================
14149 //==============================================================================
14150 // COG3PHR Bits
14152 extern __at(0x080D) __sfr COG3PHR;
14154 typedef union
14156 struct
14158 unsigned PHR0 : 1;
14159 unsigned PHR1 : 1;
14160 unsigned PHR2 : 1;
14161 unsigned PHR3 : 1;
14162 unsigned PHR4 : 1;
14163 unsigned PHR5 : 1;
14164 unsigned : 1;
14165 unsigned : 1;
14168 struct
14170 unsigned G3PHR0 : 1;
14171 unsigned G3PHR1 : 1;
14172 unsigned G3PHR2 : 1;
14173 unsigned G3PHR3 : 1;
14174 unsigned G3PHR4 : 1;
14175 unsigned G3PHR5 : 1;
14176 unsigned : 1;
14177 unsigned : 1;
14180 struct
14182 unsigned G3PHR : 6;
14183 unsigned : 2;
14186 struct
14188 unsigned PHR : 6;
14189 unsigned : 2;
14191 } __COG3PHRbits_t;
14193 extern __at(0x080D) volatile __COG3PHRbits_t COG3PHRbits;
14195 #define _COG3PHR_PHR0 0x01
14196 #define _COG3PHR_G3PHR0 0x01
14197 #define _COG3PHR_PHR1 0x02
14198 #define _COG3PHR_G3PHR1 0x02
14199 #define _COG3PHR_PHR2 0x04
14200 #define _COG3PHR_G3PHR2 0x04
14201 #define _COG3PHR_PHR3 0x08
14202 #define _COG3PHR_G3PHR3 0x08
14203 #define _COG3PHR_PHR4 0x10
14204 #define _COG3PHR_G3PHR4 0x10
14205 #define _COG3PHR_PHR5 0x20
14206 #define _COG3PHR_G3PHR5 0x20
14208 //==============================================================================
14211 //==============================================================================
14212 // COG3PHF Bits
14214 extern __at(0x080E) __sfr COG3PHF;
14216 typedef union
14218 struct
14220 unsigned PHF0 : 1;
14221 unsigned PHF1 : 1;
14222 unsigned PHF2 : 1;
14223 unsigned PHF3 : 1;
14224 unsigned PHF4 : 1;
14225 unsigned PHF5 : 1;
14226 unsigned : 1;
14227 unsigned : 1;
14230 struct
14232 unsigned G3PHF0 : 1;
14233 unsigned G3PHF1 : 1;
14234 unsigned G3PHF2 : 1;
14235 unsigned G3PHF3 : 1;
14236 unsigned G3PHF4 : 1;
14237 unsigned G3PHF5 : 1;
14238 unsigned : 1;
14239 unsigned : 1;
14242 struct
14244 unsigned G3PHF : 6;
14245 unsigned : 2;
14248 struct
14250 unsigned PHF : 6;
14251 unsigned : 2;
14253 } __COG3PHFbits_t;
14255 extern __at(0x080E) volatile __COG3PHFbits_t COG3PHFbits;
14257 #define _COG3PHF_PHF0 0x01
14258 #define _COG3PHF_G3PHF0 0x01
14259 #define _COG3PHF_PHF1 0x02
14260 #define _COG3PHF_G3PHF1 0x02
14261 #define _COG3PHF_PHF2 0x04
14262 #define _COG3PHF_G3PHF2 0x04
14263 #define _COG3PHF_PHF3 0x08
14264 #define _COG3PHF_G3PHF3 0x08
14265 #define _COG3PHF_PHF4 0x10
14266 #define _COG3PHF_G3PHF4 0x10
14267 #define _COG3PHF_PHF5 0x20
14268 #define _COG3PHF_G3PHF5 0x20
14270 //==============================================================================
14273 //==============================================================================
14274 // COG3BLKR Bits
14276 extern __at(0x080F) __sfr COG3BLKR;
14278 typedef union
14280 struct
14282 unsigned BLKR0 : 1;
14283 unsigned BLKR1 : 1;
14284 unsigned BLKR2 : 1;
14285 unsigned BLKR3 : 1;
14286 unsigned BLKR4 : 1;
14287 unsigned BLKR5 : 1;
14288 unsigned : 1;
14289 unsigned : 1;
14292 struct
14294 unsigned G3BLKR0 : 1;
14295 unsigned G3BLKR1 : 1;
14296 unsigned G3BLKR2 : 1;
14297 unsigned G3BLKR3 : 1;
14298 unsigned G3BLKR4 : 1;
14299 unsigned G3BLKR5 : 1;
14300 unsigned : 1;
14301 unsigned : 1;
14304 struct
14306 unsigned BLKR : 6;
14307 unsigned : 2;
14310 struct
14312 unsigned G3BLKR : 6;
14313 unsigned : 2;
14315 } __COG3BLKRbits_t;
14317 extern __at(0x080F) volatile __COG3BLKRbits_t COG3BLKRbits;
14319 #define _COG3BLKR_BLKR0 0x01
14320 #define _COG3BLKR_G3BLKR0 0x01
14321 #define _COG3BLKR_BLKR1 0x02
14322 #define _COG3BLKR_G3BLKR1 0x02
14323 #define _COG3BLKR_BLKR2 0x04
14324 #define _COG3BLKR_G3BLKR2 0x04
14325 #define _COG3BLKR_BLKR3 0x08
14326 #define _COG3BLKR_G3BLKR3 0x08
14327 #define _COG3BLKR_BLKR4 0x10
14328 #define _COG3BLKR_G3BLKR4 0x10
14329 #define _COG3BLKR_BLKR5 0x20
14330 #define _COG3BLKR_G3BLKR5 0x20
14332 //==============================================================================
14335 //==============================================================================
14336 // COG3BLKF Bits
14338 extern __at(0x0810) __sfr COG3BLKF;
14340 typedef union
14342 struct
14344 unsigned BLKF0 : 1;
14345 unsigned BLKF1 : 1;
14346 unsigned BLKF2 : 1;
14347 unsigned BLKF3 : 1;
14348 unsigned BLKF4 : 1;
14349 unsigned BLKF5 : 1;
14350 unsigned : 1;
14351 unsigned : 1;
14354 struct
14356 unsigned G3BLKF0 : 1;
14357 unsigned G3BLKF1 : 1;
14358 unsigned G3BLKF2 : 1;
14359 unsigned G3BLKF3 : 1;
14360 unsigned G3BLKF4 : 1;
14361 unsigned G3BLKF5 : 1;
14362 unsigned : 1;
14363 unsigned : 1;
14366 struct
14368 unsigned BLKF : 6;
14369 unsigned : 2;
14372 struct
14374 unsigned G3BLKF : 6;
14375 unsigned : 2;
14377 } __COG3BLKFbits_t;
14379 extern __at(0x0810) volatile __COG3BLKFbits_t COG3BLKFbits;
14381 #define _COG3BLKF_BLKF0 0x01
14382 #define _COG3BLKF_G3BLKF0 0x01
14383 #define _COG3BLKF_BLKF1 0x02
14384 #define _COG3BLKF_G3BLKF1 0x02
14385 #define _COG3BLKF_BLKF2 0x04
14386 #define _COG3BLKF_G3BLKF2 0x04
14387 #define _COG3BLKF_BLKF3 0x08
14388 #define _COG3BLKF_G3BLKF3 0x08
14389 #define _COG3BLKF_BLKF4 0x10
14390 #define _COG3BLKF_G3BLKF4 0x10
14391 #define _COG3BLKF_BLKF5 0x20
14392 #define _COG3BLKF_G3BLKF5 0x20
14394 //==============================================================================
14397 //==============================================================================
14398 // COG3DBR Bits
14400 extern __at(0x0811) __sfr COG3DBR;
14402 typedef union
14404 struct
14406 unsigned DBR0 : 1;
14407 unsigned DBR1 : 1;
14408 unsigned DBR2 : 1;
14409 unsigned DBR3 : 1;
14410 unsigned DBR4 : 1;
14411 unsigned DBR5 : 1;
14412 unsigned : 1;
14413 unsigned : 1;
14416 struct
14418 unsigned G3DBR0 : 1;
14419 unsigned G3DBR1 : 1;
14420 unsigned G3DBR2 : 1;
14421 unsigned G3DBR3 : 1;
14422 unsigned G3DBR4 : 1;
14423 unsigned G3DBR5 : 1;
14424 unsigned : 1;
14425 unsigned : 1;
14428 struct
14430 unsigned G3DBR : 6;
14431 unsigned : 2;
14434 struct
14436 unsigned DBR : 6;
14437 unsigned : 2;
14439 } __COG3DBRbits_t;
14441 extern __at(0x0811) volatile __COG3DBRbits_t COG3DBRbits;
14443 #define _COG3DBR_DBR0 0x01
14444 #define _COG3DBR_G3DBR0 0x01
14445 #define _COG3DBR_DBR1 0x02
14446 #define _COG3DBR_G3DBR1 0x02
14447 #define _COG3DBR_DBR2 0x04
14448 #define _COG3DBR_G3DBR2 0x04
14449 #define _COG3DBR_DBR3 0x08
14450 #define _COG3DBR_G3DBR3 0x08
14451 #define _COG3DBR_DBR4 0x10
14452 #define _COG3DBR_G3DBR4 0x10
14453 #define _COG3DBR_DBR5 0x20
14454 #define _COG3DBR_G3DBR5 0x20
14456 //==============================================================================
14459 //==============================================================================
14460 // COG3DBF Bits
14462 extern __at(0x0812) __sfr COG3DBF;
14464 typedef union
14466 struct
14468 unsigned DBF0 : 1;
14469 unsigned DBF1 : 1;
14470 unsigned DBF2 : 1;
14471 unsigned DBF3 : 1;
14472 unsigned DBF4 : 1;
14473 unsigned DBF5 : 1;
14474 unsigned : 1;
14475 unsigned : 1;
14478 struct
14480 unsigned G3DBF0 : 1;
14481 unsigned G3DBF1 : 1;
14482 unsigned G3DBF2 : 1;
14483 unsigned G3DBF3 : 1;
14484 unsigned G3DBF4 : 1;
14485 unsigned G3DBF5 : 1;
14486 unsigned : 1;
14487 unsigned : 1;
14490 struct
14492 unsigned DBF : 6;
14493 unsigned : 2;
14496 struct
14498 unsigned G3DBF : 6;
14499 unsigned : 2;
14501 } __COG3DBFbits_t;
14503 extern __at(0x0812) volatile __COG3DBFbits_t COG3DBFbits;
14505 #define _COG3DBF_DBF0 0x01
14506 #define _COG3DBF_G3DBF0 0x01
14507 #define _COG3DBF_DBF1 0x02
14508 #define _COG3DBF_G3DBF1 0x02
14509 #define _COG3DBF_DBF2 0x04
14510 #define _COG3DBF_G3DBF2 0x04
14511 #define _COG3DBF_DBF3 0x08
14512 #define _COG3DBF_G3DBF3 0x08
14513 #define _COG3DBF_DBF4 0x10
14514 #define _COG3DBF_G3DBF4 0x10
14515 #define _COG3DBF_DBF5 0x20
14516 #define _COG3DBF_G3DBF5 0x20
14518 //==============================================================================
14521 //==============================================================================
14522 // COG3CON0 Bits
14524 extern __at(0x0813) __sfr COG3CON0;
14526 typedef union
14528 struct
14530 unsigned MD0 : 1;
14531 unsigned MD1 : 1;
14532 unsigned MD2 : 1;
14533 unsigned CS0 : 1;
14534 unsigned CS1 : 1;
14535 unsigned : 1;
14536 unsigned LD : 1;
14537 unsigned EN : 1;
14540 struct
14542 unsigned G3MD0 : 1;
14543 unsigned G3MD1 : 1;
14544 unsigned G3MD2 : 1;
14545 unsigned G3CS0 : 1;
14546 unsigned G3CS1 : 1;
14547 unsigned : 1;
14548 unsigned G3LD : 1;
14549 unsigned G3EN : 1;
14552 struct
14554 unsigned MD : 3;
14555 unsigned : 5;
14558 struct
14560 unsigned G3MD : 3;
14561 unsigned : 5;
14564 struct
14566 unsigned : 3;
14567 unsigned CS : 2;
14568 unsigned : 3;
14571 struct
14573 unsigned : 3;
14574 unsigned G3CS : 2;
14575 unsigned : 3;
14577 } __COG3CON0bits_t;
14579 extern __at(0x0813) volatile __COG3CON0bits_t COG3CON0bits;
14581 #define _COG3CON0_MD0 0x01
14582 #define _COG3CON0_G3MD0 0x01
14583 #define _COG3CON0_MD1 0x02
14584 #define _COG3CON0_G3MD1 0x02
14585 #define _COG3CON0_MD2 0x04
14586 #define _COG3CON0_G3MD2 0x04
14587 #define _COG3CON0_CS0 0x08
14588 #define _COG3CON0_G3CS0 0x08
14589 #define _COG3CON0_CS1 0x10
14590 #define _COG3CON0_G3CS1 0x10
14591 #define _COG3CON0_LD 0x40
14592 #define _COG3CON0_G3LD 0x40
14593 #define _COG3CON0_EN 0x80
14594 #define _COG3CON0_G3EN 0x80
14596 //==============================================================================
14599 //==============================================================================
14600 // COG3CON1 Bits
14602 extern __at(0x0814) __sfr COG3CON1;
14604 typedef union
14606 struct
14608 unsigned POLA : 1;
14609 unsigned POLB : 1;
14610 unsigned POLC : 1;
14611 unsigned POLD : 1;
14612 unsigned : 1;
14613 unsigned : 1;
14614 unsigned FDBS : 1;
14615 unsigned RDBS : 1;
14618 struct
14620 unsigned G3POLA : 1;
14621 unsigned G3POLB : 1;
14622 unsigned G3POLC : 1;
14623 unsigned G3POLD : 1;
14624 unsigned : 1;
14625 unsigned : 1;
14626 unsigned G3FDBS : 1;
14627 unsigned G3RDBS : 1;
14629 } __COG3CON1bits_t;
14631 extern __at(0x0814) volatile __COG3CON1bits_t COG3CON1bits;
14633 #define _COG3CON1_POLA 0x01
14634 #define _COG3CON1_G3POLA 0x01
14635 #define _COG3CON1_POLB 0x02
14636 #define _COG3CON1_G3POLB 0x02
14637 #define _COG3CON1_POLC 0x04
14638 #define _COG3CON1_G3POLC 0x04
14639 #define _COG3CON1_POLD 0x08
14640 #define _COG3CON1_G3POLD 0x08
14641 #define _COG3CON1_FDBS 0x40
14642 #define _COG3CON1_G3FDBS 0x40
14643 #define _COG3CON1_RDBS 0x80
14644 #define _COG3CON1_G3RDBS 0x80
14646 //==============================================================================
14649 //==============================================================================
14650 // COG3RIS0 Bits
14652 extern __at(0x0815) __sfr COG3RIS0;
14654 typedef union
14656 struct
14658 unsigned RIS0 : 1;
14659 unsigned RIS1 : 1;
14660 unsigned RIS2 : 1;
14661 unsigned RIS3 : 1;
14662 unsigned RIS4 : 1;
14663 unsigned RIS5 : 1;
14664 unsigned RIS6 : 1;
14665 unsigned RIS7 : 1;
14668 struct
14670 unsigned G3RIS0 : 1;
14671 unsigned G3RIS1 : 1;
14672 unsigned G3RIS2 : 1;
14673 unsigned G3RIS3 : 1;
14674 unsigned G3RIS4 : 1;
14675 unsigned G3RIS5 : 1;
14676 unsigned G3RIS6 : 1;
14677 unsigned G3RIS7 : 1;
14679 } __COG3RIS0bits_t;
14681 extern __at(0x0815) volatile __COG3RIS0bits_t COG3RIS0bits;
14683 #define _COG3RIS0_RIS0 0x01
14684 #define _COG3RIS0_G3RIS0 0x01
14685 #define _COG3RIS0_RIS1 0x02
14686 #define _COG3RIS0_G3RIS1 0x02
14687 #define _COG3RIS0_RIS2 0x04
14688 #define _COG3RIS0_G3RIS2 0x04
14689 #define _COG3RIS0_RIS3 0x08
14690 #define _COG3RIS0_G3RIS3 0x08
14691 #define _COG3RIS0_RIS4 0x10
14692 #define _COG3RIS0_G3RIS4 0x10
14693 #define _COG3RIS0_RIS5 0x20
14694 #define _COG3RIS0_G3RIS5 0x20
14695 #define _COG3RIS0_RIS6 0x40
14696 #define _COG3RIS0_G3RIS6 0x40
14697 #define _COG3RIS0_RIS7 0x80
14698 #define _COG3RIS0_G3RIS7 0x80
14700 //==============================================================================
14703 //==============================================================================
14704 // COG3RIS1 Bits
14706 extern __at(0x0816) __sfr COG3RIS1;
14708 typedef union
14710 struct
14712 unsigned : 1;
14713 unsigned RIS9 : 1;
14714 unsigned : 1;
14715 unsigned RIS11 : 1;
14716 unsigned RIS12 : 1;
14717 unsigned RIS13 : 1;
14718 unsigned RIS14 : 1;
14719 unsigned RIS15 : 1;
14722 struct
14724 unsigned : 1;
14725 unsigned G3RIS9 : 1;
14726 unsigned : 1;
14727 unsigned G3RIS11 : 1;
14728 unsigned G3RIS12 : 1;
14729 unsigned G3RIS13 : 1;
14730 unsigned G3RIS14 : 1;
14731 unsigned G3RIS15 : 1;
14733 } __COG3RIS1bits_t;
14735 extern __at(0x0816) volatile __COG3RIS1bits_t COG3RIS1bits;
14737 #define _COG3RIS1_RIS9 0x02
14738 #define _COG3RIS1_G3RIS9 0x02
14739 #define _COG3RIS1_RIS11 0x08
14740 #define _COG3RIS1_G3RIS11 0x08
14741 #define _COG3RIS1_RIS12 0x10
14742 #define _COG3RIS1_G3RIS12 0x10
14743 #define _COG3RIS1_RIS13 0x20
14744 #define _COG3RIS1_G3RIS13 0x20
14745 #define _COG3RIS1_RIS14 0x40
14746 #define _COG3RIS1_G3RIS14 0x40
14747 #define _COG3RIS1_RIS15 0x80
14748 #define _COG3RIS1_G3RIS15 0x80
14750 //==============================================================================
14753 //==============================================================================
14754 // COG3RSIM0 Bits
14756 extern __at(0x0817) __sfr COG3RSIM0;
14758 typedef union
14760 struct
14762 unsigned RSIM0 : 1;
14763 unsigned RSIM1 : 1;
14764 unsigned RSIM2 : 1;
14765 unsigned RSIM3 : 1;
14766 unsigned RSIM4 : 1;
14767 unsigned RSIM5 : 1;
14768 unsigned RSIM6 : 1;
14769 unsigned RSIM7 : 1;
14772 struct
14774 unsigned G3RSIM0 : 1;
14775 unsigned G3RSIM1 : 1;
14776 unsigned G3RSIM2 : 1;
14777 unsigned G3RSIM3 : 1;
14778 unsigned G3RSIM4 : 1;
14779 unsigned G3RSIM5 : 1;
14780 unsigned G3RSIM6 : 1;
14781 unsigned G3RSIM7 : 1;
14783 } __COG3RSIM0bits_t;
14785 extern __at(0x0817) volatile __COG3RSIM0bits_t COG3RSIM0bits;
14787 #define _COG3RSIM0_RSIM0 0x01
14788 #define _COG3RSIM0_G3RSIM0 0x01
14789 #define _COG3RSIM0_RSIM1 0x02
14790 #define _COG3RSIM0_G3RSIM1 0x02
14791 #define _COG3RSIM0_RSIM2 0x04
14792 #define _COG3RSIM0_G3RSIM2 0x04
14793 #define _COG3RSIM0_RSIM3 0x08
14794 #define _COG3RSIM0_G3RSIM3 0x08
14795 #define _COG3RSIM0_RSIM4 0x10
14796 #define _COG3RSIM0_G3RSIM4 0x10
14797 #define _COG3RSIM0_RSIM5 0x20
14798 #define _COG3RSIM0_G3RSIM5 0x20
14799 #define _COG3RSIM0_RSIM6 0x40
14800 #define _COG3RSIM0_G3RSIM6 0x40
14801 #define _COG3RSIM0_RSIM7 0x80
14802 #define _COG3RSIM0_G3RSIM7 0x80
14804 //==============================================================================
14807 //==============================================================================
14808 // COG3RSIM1 Bits
14810 extern __at(0x0818) __sfr COG3RSIM1;
14812 typedef union
14814 struct
14816 unsigned : 1;
14817 unsigned RSIM9 : 1;
14818 unsigned : 1;
14819 unsigned RSIM11 : 1;
14820 unsigned RSIM12 : 1;
14821 unsigned RSIM13 : 1;
14822 unsigned RSIM14 : 1;
14823 unsigned RSIM15 : 1;
14826 struct
14828 unsigned : 1;
14829 unsigned G3RSIM9 : 1;
14830 unsigned : 1;
14831 unsigned G3RSIM11 : 1;
14832 unsigned G3RSIM12 : 1;
14833 unsigned G3RSIM13 : 1;
14834 unsigned G3RSIM14 : 1;
14835 unsigned G3RSIM15 : 1;
14837 } __COG3RSIM1bits_t;
14839 extern __at(0x0818) volatile __COG3RSIM1bits_t COG3RSIM1bits;
14841 #define _COG3RSIM1_RSIM9 0x02
14842 #define _COG3RSIM1_G3RSIM9 0x02
14843 #define _COG3RSIM1_RSIM11 0x08
14844 #define _COG3RSIM1_G3RSIM11 0x08
14845 #define _COG3RSIM1_RSIM12 0x10
14846 #define _COG3RSIM1_G3RSIM12 0x10
14847 #define _COG3RSIM1_RSIM13 0x20
14848 #define _COG3RSIM1_G3RSIM13 0x20
14849 #define _COG3RSIM1_RSIM14 0x40
14850 #define _COG3RSIM1_G3RSIM14 0x40
14851 #define _COG3RSIM1_RSIM15 0x80
14852 #define _COG3RSIM1_G3RSIM15 0x80
14854 //==============================================================================
14857 //==============================================================================
14858 // COG3FIS0 Bits
14860 extern __at(0x0819) __sfr COG3FIS0;
14862 typedef union
14864 struct
14866 unsigned FIS0 : 1;
14867 unsigned FIS1 : 1;
14868 unsigned FIS2 : 1;
14869 unsigned FIS3 : 1;
14870 unsigned FIS4 : 1;
14871 unsigned FIS5 : 1;
14872 unsigned FIS6 : 1;
14873 unsigned FIS7 : 1;
14876 struct
14878 unsigned G3FIS0 : 1;
14879 unsigned G3FIS1 : 1;
14880 unsigned G3FIS2 : 1;
14881 unsigned G3FIS3 : 1;
14882 unsigned G3FIS4 : 1;
14883 unsigned G3FIS5 : 1;
14884 unsigned G3FIS6 : 1;
14885 unsigned G3FIS7 : 1;
14887 } __COG3FIS0bits_t;
14889 extern __at(0x0819) volatile __COG3FIS0bits_t COG3FIS0bits;
14891 #define _COG3FIS0_FIS0 0x01
14892 #define _COG3FIS0_G3FIS0 0x01
14893 #define _COG3FIS0_FIS1 0x02
14894 #define _COG3FIS0_G3FIS1 0x02
14895 #define _COG3FIS0_FIS2 0x04
14896 #define _COG3FIS0_G3FIS2 0x04
14897 #define _COG3FIS0_FIS3 0x08
14898 #define _COG3FIS0_G3FIS3 0x08
14899 #define _COG3FIS0_FIS4 0x10
14900 #define _COG3FIS0_G3FIS4 0x10
14901 #define _COG3FIS0_FIS5 0x20
14902 #define _COG3FIS0_G3FIS5 0x20
14903 #define _COG3FIS0_FIS6 0x40
14904 #define _COG3FIS0_G3FIS6 0x40
14905 #define _COG3FIS0_FIS7 0x80
14906 #define _COG3FIS0_G3FIS7 0x80
14908 //==============================================================================
14911 //==============================================================================
14912 // COG3FIS1 Bits
14914 extern __at(0x081A) __sfr COG3FIS1;
14916 typedef union
14918 struct
14920 unsigned : 1;
14921 unsigned FIS9 : 1;
14922 unsigned : 1;
14923 unsigned FIS11 : 1;
14924 unsigned FIS12 : 1;
14925 unsigned FIS13 : 1;
14926 unsigned FIS14 : 1;
14927 unsigned FIS15 : 1;
14930 struct
14932 unsigned : 1;
14933 unsigned G3FIS9 : 1;
14934 unsigned : 1;
14935 unsigned G3FIS11 : 1;
14936 unsigned G3FIS12 : 1;
14937 unsigned G3FIS13 : 1;
14938 unsigned G3FIS14 : 1;
14939 unsigned G3FIS15 : 1;
14941 } __COG3FIS1bits_t;
14943 extern __at(0x081A) volatile __COG3FIS1bits_t COG3FIS1bits;
14945 #define _COG3FIS1_FIS9 0x02
14946 #define _COG3FIS1_G3FIS9 0x02
14947 #define _COG3FIS1_FIS11 0x08
14948 #define _COG3FIS1_G3FIS11 0x08
14949 #define _COG3FIS1_FIS12 0x10
14950 #define _COG3FIS1_G3FIS12 0x10
14951 #define _COG3FIS1_FIS13 0x20
14952 #define _COG3FIS1_G3FIS13 0x20
14953 #define _COG3FIS1_FIS14 0x40
14954 #define _COG3FIS1_G3FIS14 0x40
14955 #define _COG3FIS1_FIS15 0x80
14956 #define _COG3FIS1_G3FIS15 0x80
14958 //==============================================================================
14961 //==============================================================================
14962 // COG3FSIM0 Bits
14964 extern __at(0x081B) __sfr COG3FSIM0;
14966 typedef union
14968 struct
14970 unsigned FSIM0 : 1;
14971 unsigned FSIM1 : 1;
14972 unsigned FSIM2 : 1;
14973 unsigned FSIM3 : 1;
14974 unsigned FSIM4 : 1;
14975 unsigned FSIM5 : 1;
14976 unsigned FSIM6 : 1;
14977 unsigned FSIM7 : 1;
14980 struct
14982 unsigned G3FSIM0 : 1;
14983 unsigned G3FSIM1 : 1;
14984 unsigned G3FSIM2 : 1;
14985 unsigned G3FSIM3 : 1;
14986 unsigned G3FSIM4 : 1;
14987 unsigned G3FSIM5 : 1;
14988 unsigned G3FSIM6 : 1;
14989 unsigned G3FSIM7 : 1;
14991 } __COG3FSIM0bits_t;
14993 extern __at(0x081B) volatile __COG3FSIM0bits_t COG3FSIM0bits;
14995 #define _COG3FSIM0_FSIM0 0x01
14996 #define _COG3FSIM0_G3FSIM0 0x01
14997 #define _COG3FSIM0_FSIM1 0x02
14998 #define _COG3FSIM0_G3FSIM1 0x02
14999 #define _COG3FSIM0_FSIM2 0x04
15000 #define _COG3FSIM0_G3FSIM2 0x04
15001 #define _COG3FSIM0_FSIM3 0x08
15002 #define _COG3FSIM0_G3FSIM3 0x08
15003 #define _COG3FSIM0_FSIM4 0x10
15004 #define _COG3FSIM0_G3FSIM4 0x10
15005 #define _COG3FSIM0_FSIM5 0x20
15006 #define _COG3FSIM0_G3FSIM5 0x20
15007 #define _COG3FSIM0_FSIM6 0x40
15008 #define _COG3FSIM0_G3FSIM6 0x40
15009 #define _COG3FSIM0_FSIM7 0x80
15010 #define _COG3FSIM0_G3FSIM7 0x80
15012 //==============================================================================
15015 //==============================================================================
15016 // COG3FSIM1 Bits
15018 extern __at(0x081C) __sfr COG3FSIM1;
15020 typedef union
15022 struct
15024 unsigned : 1;
15025 unsigned FSIM9 : 1;
15026 unsigned : 1;
15027 unsigned FSIM11 : 1;
15028 unsigned FSIM12 : 1;
15029 unsigned FSIM13 : 1;
15030 unsigned FSIM14 : 1;
15031 unsigned FSIM15 : 1;
15034 struct
15036 unsigned : 1;
15037 unsigned G3FSIM9 : 1;
15038 unsigned : 1;
15039 unsigned G3FSIM11 : 1;
15040 unsigned G3FSIM12 : 1;
15041 unsigned G3FSIM13 : 1;
15042 unsigned G3FSIM14 : 1;
15043 unsigned G3FSIM15 : 1;
15045 } __COG3FSIM1bits_t;
15047 extern __at(0x081C) volatile __COG3FSIM1bits_t COG3FSIM1bits;
15049 #define _COG3FSIM1_FSIM9 0x02
15050 #define _COG3FSIM1_G3FSIM9 0x02
15051 #define _COG3FSIM1_FSIM11 0x08
15052 #define _COG3FSIM1_G3FSIM11 0x08
15053 #define _COG3FSIM1_FSIM12 0x10
15054 #define _COG3FSIM1_G3FSIM12 0x10
15055 #define _COG3FSIM1_FSIM13 0x20
15056 #define _COG3FSIM1_G3FSIM13 0x20
15057 #define _COG3FSIM1_FSIM14 0x40
15058 #define _COG3FSIM1_G3FSIM14 0x40
15059 #define _COG3FSIM1_FSIM15 0x80
15060 #define _COG3FSIM1_G3FSIM15 0x80
15062 //==============================================================================
15065 //==============================================================================
15066 // COG3ASD0 Bits
15068 extern __at(0x081D) __sfr COG3ASD0;
15070 typedef union
15072 struct
15074 unsigned : 1;
15075 unsigned : 1;
15076 unsigned ASDAC0 : 1;
15077 unsigned ASDAC1 : 1;
15078 unsigned ASDBD0 : 1;
15079 unsigned ASDBD1 : 1;
15080 unsigned ASREN : 1;
15081 unsigned ASE : 1;
15084 struct
15086 unsigned : 1;
15087 unsigned : 1;
15088 unsigned G3ASDAC0 : 1;
15089 unsigned G3ASDAC1 : 1;
15090 unsigned G3ASDBD0 : 1;
15091 unsigned G3ASDBD1 : 1;
15092 unsigned ARSEN : 1;
15093 unsigned G3ASE : 1;
15096 struct
15098 unsigned : 1;
15099 unsigned : 1;
15100 unsigned : 1;
15101 unsigned : 1;
15102 unsigned : 1;
15103 unsigned : 1;
15104 unsigned G3ARSEN : 1;
15105 unsigned : 1;
15108 struct
15110 unsigned : 1;
15111 unsigned : 1;
15112 unsigned : 1;
15113 unsigned : 1;
15114 unsigned : 1;
15115 unsigned : 1;
15116 unsigned G3ASREN : 1;
15117 unsigned : 1;
15120 struct
15122 unsigned : 2;
15123 unsigned G3ASDAC : 2;
15124 unsigned : 4;
15127 struct
15129 unsigned : 2;
15130 unsigned ASDAC : 2;
15131 unsigned : 4;
15134 struct
15136 unsigned : 4;
15137 unsigned ASDBD : 2;
15138 unsigned : 2;
15141 struct
15143 unsigned : 4;
15144 unsigned G3ASDBD : 2;
15145 unsigned : 2;
15147 } __COG3ASD0bits_t;
15149 extern __at(0x081D) volatile __COG3ASD0bits_t COG3ASD0bits;
15151 #define _COG3ASD0_ASDAC0 0x04
15152 #define _COG3ASD0_G3ASDAC0 0x04
15153 #define _COG3ASD0_ASDAC1 0x08
15154 #define _COG3ASD0_G3ASDAC1 0x08
15155 #define _COG3ASD0_ASDBD0 0x10
15156 #define _COG3ASD0_G3ASDBD0 0x10
15157 #define _COG3ASD0_ASDBD1 0x20
15158 #define _COG3ASD0_G3ASDBD1 0x20
15159 #define _COG3ASD0_ASREN 0x40
15160 #define _COG3ASD0_ARSEN 0x40
15161 #define _COG3ASD0_G3ARSEN 0x40
15162 #define _COG3ASD0_G3ASREN 0x40
15163 #define _COG3ASD0_ASE 0x80
15164 #define _COG3ASD0_G3ASE 0x80
15166 //==============================================================================
15169 //==============================================================================
15170 // COG3ASD1 Bits
15172 extern __at(0x081E) __sfr COG3ASD1;
15174 typedef union
15176 struct
15178 unsigned AS0E : 1;
15179 unsigned AS1E : 1;
15180 unsigned AS2E : 1;
15181 unsigned AS3E : 1;
15182 unsigned AS4E : 1;
15183 unsigned AS5E : 1;
15184 unsigned AS6E : 1;
15185 unsigned AS7E : 1;
15188 struct
15190 unsigned G3AS0E : 1;
15191 unsigned G3AS1E : 1;
15192 unsigned G3AS2E : 1;
15193 unsigned G3AS3E : 1;
15194 unsigned G3AS4E : 1;
15195 unsigned G3AS5E : 1;
15196 unsigned G3AS6E : 1;
15197 unsigned G3AS7E : 1;
15199 } __COG3ASD1bits_t;
15201 extern __at(0x081E) volatile __COG3ASD1bits_t COG3ASD1bits;
15203 #define _COG3ASD1_AS0E 0x01
15204 #define _COG3ASD1_G3AS0E 0x01
15205 #define _COG3ASD1_AS1E 0x02
15206 #define _COG3ASD1_G3AS1E 0x02
15207 #define _COG3ASD1_AS2E 0x04
15208 #define _COG3ASD1_G3AS2E 0x04
15209 #define _COG3ASD1_AS3E 0x08
15210 #define _COG3ASD1_G3AS3E 0x08
15211 #define _COG3ASD1_AS4E 0x10
15212 #define _COG3ASD1_G3AS4E 0x10
15213 #define _COG3ASD1_AS5E 0x20
15214 #define _COG3ASD1_G3AS5E 0x20
15215 #define _COG3ASD1_AS6E 0x40
15216 #define _COG3ASD1_G3AS6E 0x40
15217 #define _COG3ASD1_AS7E 0x80
15218 #define _COG3ASD1_G3AS7E 0x80
15220 //==============================================================================
15223 //==============================================================================
15224 // COG3STR Bits
15226 extern __at(0x081F) __sfr COG3STR;
15228 typedef union
15230 struct
15232 unsigned STRA : 1;
15233 unsigned STRB : 1;
15234 unsigned STRC : 1;
15235 unsigned STRD : 1;
15236 unsigned SDATA : 1;
15237 unsigned SDATB : 1;
15238 unsigned SDATC : 1;
15239 unsigned SDATD : 1;
15242 struct
15244 unsigned G3STRA : 1;
15245 unsigned G3STRB : 1;
15246 unsigned G3STRC : 1;
15247 unsigned G3STRD : 1;
15248 unsigned G3SDATA : 1;
15249 unsigned G3SDATB : 1;
15250 unsigned G3SDATC : 1;
15251 unsigned G3SDATD : 1;
15253 } __COG3STRbits_t;
15255 extern __at(0x081F) volatile __COG3STRbits_t COG3STRbits;
15257 #define _COG3STR_STRA 0x01
15258 #define _COG3STR_G3STRA 0x01
15259 #define _COG3STR_STRB 0x02
15260 #define _COG3STR_G3STRB 0x02
15261 #define _COG3STR_STRC 0x04
15262 #define _COG3STR_G3STRC 0x04
15263 #define _COG3STR_STRD 0x08
15264 #define _COG3STR_G3STRD 0x08
15265 #define _COG3STR_SDATA 0x10
15266 #define _COG3STR_G3SDATA 0x10
15267 #define _COG3STR_SDATB 0x20
15268 #define _COG3STR_G3SDATB 0x20
15269 #define _COG3STR_SDATC 0x40
15270 #define _COG3STR_G3SDATC 0x40
15271 #define _COG3STR_SDATD 0x80
15272 #define _COG3STR_G3SDATD 0x80
15274 //==============================================================================
15277 //==============================================================================
15278 // CM4CON0 Bits
15280 extern __at(0x090C) __sfr CM4CON0;
15282 typedef union
15284 struct
15286 unsigned SYNC : 1;
15287 unsigned HYS : 1;
15288 unsigned Reserved : 1;
15289 unsigned ZLF : 1;
15290 unsigned POL : 1;
15291 unsigned : 1;
15292 unsigned OUT : 1;
15293 unsigned ON : 1;
15296 struct
15298 unsigned C4SYNC : 1;
15299 unsigned C4HYS : 1;
15300 unsigned C4SP : 1;
15301 unsigned C4ZLF : 1;
15302 unsigned C4POL : 1;
15303 unsigned : 1;
15304 unsigned C4OUT : 1;
15305 unsigned C4ON : 1;
15307 } __CM4CON0bits_t;
15309 extern __at(0x090C) volatile __CM4CON0bits_t CM4CON0bits;
15311 #define _CM4CON0_SYNC 0x01
15312 #define _CM4CON0_C4SYNC 0x01
15313 #define _CM4CON0_HYS 0x02
15314 #define _CM4CON0_C4HYS 0x02
15315 #define _CM4CON0_Reserved 0x04
15316 #define _CM4CON0_C4SP 0x04
15317 #define _CM4CON0_ZLF 0x08
15318 #define _CM4CON0_C4ZLF 0x08
15319 #define _CM4CON0_POL 0x10
15320 #define _CM4CON0_C4POL 0x10
15321 #define _CM4CON0_OUT 0x40
15322 #define _CM4CON0_C4OUT 0x40
15323 #define _CM4CON0_ON 0x80
15324 #define _CM4CON0_C4ON 0x80
15326 //==============================================================================
15329 //==============================================================================
15330 // CM4CON1 Bits
15332 extern __at(0x090D) __sfr CM4CON1;
15334 typedef union
15336 struct
15338 unsigned INTN : 1;
15339 unsigned INTP : 1;
15340 unsigned : 1;
15341 unsigned : 1;
15342 unsigned : 1;
15343 unsigned : 1;
15344 unsigned : 1;
15345 unsigned : 1;
15348 struct
15350 unsigned C4INTN : 1;
15351 unsigned C4INTP : 1;
15352 unsigned : 1;
15353 unsigned : 1;
15354 unsigned : 1;
15355 unsigned : 1;
15356 unsigned : 1;
15357 unsigned : 1;
15359 } __CM4CON1bits_t;
15361 extern __at(0x090D) volatile __CM4CON1bits_t CM4CON1bits;
15363 #define _CM4CON1_INTN 0x01
15364 #define _CM4CON1_C4INTN 0x01
15365 #define _CM4CON1_INTP 0x02
15366 #define _CM4CON1_C4INTP 0x02
15368 //==============================================================================
15371 //==============================================================================
15372 // CM4NSEL Bits
15374 extern __at(0x090E) __sfr CM4NSEL;
15376 typedef union
15378 struct
15380 unsigned C4NCH0 : 1;
15381 unsigned C4NCH1 : 1;
15382 unsigned C4NCH2 : 1;
15383 unsigned C4NCH3 : 1;
15384 unsigned : 1;
15385 unsigned : 1;
15386 unsigned : 1;
15387 unsigned : 1;
15390 struct
15392 unsigned C4NCH : 4;
15393 unsigned : 4;
15395 } __CM4NSELbits_t;
15397 extern __at(0x090E) volatile __CM4NSELbits_t CM4NSELbits;
15399 #define _C4NCH0 0x01
15400 #define _C4NCH1 0x02
15401 #define _C4NCH2 0x04
15402 #define _C4NCH3 0x08
15404 //==============================================================================
15407 //==============================================================================
15408 // CM4PSEL Bits
15410 extern __at(0x090F) __sfr CM4PSEL;
15412 typedef union
15414 struct
15416 unsigned PCH0 : 1;
15417 unsigned PCH1 : 1;
15418 unsigned PCH2 : 1;
15419 unsigned PCH3 : 1;
15420 unsigned : 1;
15421 unsigned : 1;
15422 unsigned : 1;
15423 unsigned : 1;
15426 struct
15428 unsigned C4PCH0 : 1;
15429 unsigned C4PCH1 : 1;
15430 unsigned C4PCH2 : 1;
15431 unsigned C4PCH3 : 1;
15432 unsigned : 1;
15433 unsigned : 1;
15434 unsigned : 1;
15435 unsigned : 1;
15438 struct
15440 unsigned C4PCH : 4;
15441 unsigned : 4;
15444 struct
15446 unsigned PCH : 4;
15447 unsigned : 4;
15449 } __CM4PSELbits_t;
15451 extern __at(0x090F) volatile __CM4PSELbits_t CM4PSELbits;
15453 #define _CM4PSEL_PCH0 0x01
15454 #define _CM4PSEL_C4PCH0 0x01
15455 #define _CM4PSEL_PCH1 0x02
15456 #define _CM4PSEL_C4PCH1 0x02
15457 #define _CM4PSEL_PCH2 0x04
15458 #define _CM4PSEL_C4PCH2 0x04
15459 #define _CM4PSEL_PCH3 0x08
15460 #define _CM4PSEL_C4PCH3 0x08
15462 //==============================================================================
15465 //==============================================================================
15466 // CM5CON0 Bits
15468 extern __at(0x0910) __sfr CM5CON0;
15470 typedef union
15472 struct
15474 unsigned SYNC : 1;
15475 unsigned HYS : 1;
15476 unsigned Reserved : 1;
15477 unsigned ZLF : 1;
15478 unsigned POL : 1;
15479 unsigned : 1;
15480 unsigned OUT : 1;
15481 unsigned ON : 1;
15484 struct
15486 unsigned C5SYNC : 1;
15487 unsigned C5HYS : 1;
15488 unsigned C5SP : 1;
15489 unsigned C5ZLF : 1;
15490 unsigned C5POL : 1;
15491 unsigned : 1;
15492 unsigned C5OUT : 1;
15493 unsigned C5ON : 1;
15495 } __CM5CON0bits_t;
15497 extern __at(0x0910) volatile __CM5CON0bits_t CM5CON0bits;
15499 #define _CM5CON0_SYNC 0x01
15500 #define _CM5CON0_C5SYNC 0x01
15501 #define _CM5CON0_HYS 0x02
15502 #define _CM5CON0_C5HYS 0x02
15503 #define _CM5CON0_Reserved 0x04
15504 #define _CM5CON0_C5SP 0x04
15505 #define _CM5CON0_ZLF 0x08
15506 #define _CM5CON0_C5ZLF 0x08
15507 #define _CM5CON0_POL 0x10
15508 #define _CM5CON0_C5POL 0x10
15509 #define _CM5CON0_OUT 0x40
15510 #define _CM5CON0_C5OUT 0x40
15511 #define _CM5CON0_ON 0x80
15512 #define _CM5CON0_C5ON 0x80
15514 //==============================================================================
15517 //==============================================================================
15518 // CM5CON1 Bits
15520 extern __at(0x0911) __sfr CM5CON1;
15522 typedef union
15524 struct
15526 unsigned INTN : 1;
15527 unsigned INTP : 1;
15528 unsigned : 1;
15529 unsigned : 1;
15530 unsigned : 1;
15531 unsigned : 1;
15532 unsigned : 1;
15533 unsigned : 1;
15536 struct
15538 unsigned C5INTN : 1;
15539 unsigned C5INTP : 1;
15540 unsigned : 1;
15541 unsigned : 1;
15542 unsigned : 1;
15543 unsigned : 1;
15544 unsigned : 1;
15545 unsigned : 1;
15547 } __CM5CON1bits_t;
15549 extern __at(0x0911) volatile __CM5CON1bits_t CM5CON1bits;
15551 #define _CM5CON1_INTN 0x01
15552 #define _CM5CON1_C5INTN 0x01
15553 #define _CM5CON1_INTP 0x02
15554 #define _CM5CON1_C5INTP 0x02
15556 //==============================================================================
15559 //==============================================================================
15560 // CM5NSEL Bits
15562 extern __at(0x0912) __sfr CM5NSEL;
15564 typedef union
15566 struct
15568 unsigned C5NCH0 : 1;
15569 unsigned C5NCH1 : 1;
15570 unsigned C5NCH2 : 1;
15571 unsigned C5NCH3 : 1;
15572 unsigned : 1;
15573 unsigned : 1;
15574 unsigned : 1;
15575 unsigned : 1;
15578 struct
15580 unsigned C5NCH : 4;
15581 unsigned : 4;
15583 } __CM5NSELbits_t;
15585 extern __at(0x0912) volatile __CM5NSELbits_t CM5NSELbits;
15587 #define _C5NCH0 0x01
15588 #define _C5NCH1 0x02
15589 #define _C5NCH2 0x04
15590 #define _C5NCH3 0x08
15592 //==============================================================================
15595 //==============================================================================
15596 // CM5PSEL Bits
15598 extern __at(0x0913) __sfr CM5PSEL;
15600 typedef union
15602 struct
15604 unsigned PCH0 : 1;
15605 unsigned PCH1 : 1;
15606 unsigned PCH2 : 1;
15607 unsigned PCH3 : 1;
15608 unsigned : 1;
15609 unsigned : 1;
15610 unsigned : 1;
15611 unsigned : 1;
15614 struct
15616 unsigned C5PCH0 : 1;
15617 unsigned C5PCH1 : 1;
15618 unsigned C5PCH2 : 1;
15619 unsigned C5PCH3 : 1;
15620 unsigned : 1;
15621 unsigned : 1;
15622 unsigned : 1;
15623 unsigned : 1;
15626 struct
15628 unsigned C5PCH : 4;
15629 unsigned : 4;
15632 struct
15634 unsigned PCH : 4;
15635 unsigned : 4;
15637 } __CM5PSELbits_t;
15639 extern __at(0x0913) volatile __CM5PSELbits_t CM5PSELbits;
15641 #define _CM5PSEL_PCH0 0x01
15642 #define _CM5PSEL_C5PCH0 0x01
15643 #define _CM5PSEL_PCH1 0x02
15644 #define _CM5PSEL_C5PCH1 0x02
15645 #define _CM5PSEL_PCH2 0x04
15646 #define _CM5PSEL_C5PCH2 0x04
15647 #define _CM5PSEL_PCH3 0x08
15648 #define _CM5PSEL_C5PCH3 0x08
15650 //==============================================================================
15653 //==============================================================================
15654 // CM6CON0 Bits
15656 extern __at(0x0914) __sfr CM6CON0;
15658 typedef union
15660 struct
15662 unsigned SYNC : 1;
15663 unsigned HYS : 1;
15664 unsigned Reserved : 1;
15665 unsigned ZLF : 1;
15666 unsigned POL : 1;
15667 unsigned : 1;
15668 unsigned OUT : 1;
15669 unsigned ON : 1;
15672 struct
15674 unsigned C6SYNC : 1;
15675 unsigned C6HYS : 1;
15676 unsigned C6SP : 1;
15677 unsigned C6ZLF : 1;
15678 unsigned C6POL : 1;
15679 unsigned : 1;
15680 unsigned C6OUT : 1;
15681 unsigned C6ON : 1;
15683 } __CM6CON0bits_t;
15685 extern __at(0x0914) volatile __CM6CON0bits_t CM6CON0bits;
15687 #define _CM6CON0_SYNC 0x01
15688 #define _CM6CON0_C6SYNC 0x01
15689 #define _CM6CON0_HYS 0x02
15690 #define _CM6CON0_C6HYS 0x02
15691 #define _CM6CON0_Reserved 0x04
15692 #define _CM6CON0_C6SP 0x04
15693 #define _CM6CON0_ZLF 0x08
15694 #define _CM6CON0_C6ZLF 0x08
15695 #define _CM6CON0_POL 0x10
15696 #define _CM6CON0_C6POL 0x10
15697 #define _CM6CON0_OUT 0x40
15698 #define _CM6CON0_C6OUT 0x40
15699 #define _CM6CON0_ON 0x80
15700 #define _CM6CON0_C6ON 0x80
15702 //==============================================================================
15705 //==============================================================================
15706 // CM6CON1 Bits
15708 extern __at(0x0915) __sfr CM6CON1;
15710 typedef union
15712 struct
15714 unsigned INTN : 1;
15715 unsigned INTP : 1;
15716 unsigned : 1;
15717 unsigned : 1;
15718 unsigned : 1;
15719 unsigned : 1;
15720 unsigned : 1;
15721 unsigned : 1;
15724 struct
15726 unsigned C6INTN : 1;
15727 unsigned C6INTP : 1;
15728 unsigned : 1;
15729 unsigned : 1;
15730 unsigned : 1;
15731 unsigned : 1;
15732 unsigned : 1;
15733 unsigned : 1;
15735 } __CM6CON1bits_t;
15737 extern __at(0x0915) volatile __CM6CON1bits_t CM6CON1bits;
15739 #define _CM6CON1_INTN 0x01
15740 #define _CM6CON1_C6INTN 0x01
15741 #define _CM6CON1_INTP 0x02
15742 #define _CM6CON1_C6INTP 0x02
15744 //==============================================================================
15747 //==============================================================================
15748 // CM6NSEL Bits
15750 extern __at(0x0916) __sfr CM6NSEL;
15752 typedef union
15754 struct
15756 unsigned C6NCH0 : 1;
15757 unsigned C6NCH1 : 1;
15758 unsigned C6NCH2 : 1;
15759 unsigned C6NCH3 : 1;
15760 unsigned : 1;
15761 unsigned : 1;
15762 unsigned : 1;
15763 unsigned : 1;
15766 struct
15768 unsigned C6NCH : 4;
15769 unsigned : 4;
15771 } __CM6NSELbits_t;
15773 extern __at(0x0916) volatile __CM6NSELbits_t CM6NSELbits;
15775 #define _C6NCH0 0x01
15776 #define _C6NCH1 0x02
15777 #define _C6NCH2 0x04
15778 #define _C6NCH3 0x08
15780 //==============================================================================
15783 //==============================================================================
15784 // CM6PSEL Bits
15786 extern __at(0x0917) __sfr CM6PSEL;
15788 typedef union
15790 struct
15792 unsigned PCH0 : 1;
15793 unsigned PCH1 : 1;
15794 unsigned PCH2 : 1;
15795 unsigned PCH3 : 1;
15796 unsigned : 1;
15797 unsigned : 1;
15798 unsigned : 1;
15799 unsigned : 1;
15802 struct
15804 unsigned C6PCH0 : 1;
15805 unsigned C6PCH1 : 1;
15806 unsigned C6PCH2 : 1;
15807 unsigned C6PCH3 : 1;
15808 unsigned : 1;
15809 unsigned : 1;
15810 unsigned : 1;
15811 unsigned : 1;
15814 struct
15816 unsigned PCH : 4;
15817 unsigned : 4;
15820 struct
15822 unsigned C6PCH : 4;
15823 unsigned : 4;
15825 } __CM6PSELbits_t;
15827 extern __at(0x0917) volatile __CM6PSELbits_t CM6PSELbits;
15829 #define _CM6PSEL_PCH0 0x01
15830 #define _CM6PSEL_C6PCH0 0x01
15831 #define _CM6PSEL_PCH1 0x02
15832 #define _CM6PSEL_C6PCH1 0x02
15833 #define _CM6PSEL_PCH2 0x04
15834 #define _CM6PSEL_C6PCH2 0x04
15835 #define _CM6PSEL_PCH3 0x08
15836 #define _CM6PSEL_C6PCH3 0x08
15838 //==============================================================================
15841 //==============================================================================
15842 // PWMEN Bits
15844 extern __at(0x0D8E) __sfr PWMEN;
15846 typedef struct
15848 unsigned MPWM5EN : 1;
15849 unsigned MPWM6EN : 1;
15850 unsigned MPWM11EN : 1;
15851 unsigned : 1;
15852 unsigned : 1;
15853 unsigned : 1;
15854 unsigned : 1;
15855 unsigned : 1;
15856 } __PWMENbits_t;
15858 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits;
15860 #define _MPWM5EN 0x01
15861 #define _MPWM6EN 0x02
15862 #define _MPWM11EN 0x04
15864 //==============================================================================
15867 //==============================================================================
15868 // PWMLD Bits
15870 extern __at(0x0D8F) __sfr PWMLD;
15872 typedef struct
15874 unsigned MPWM5LD : 1;
15875 unsigned MPWM6LD : 1;
15876 unsigned MPWM11LD : 1;
15877 unsigned : 1;
15878 unsigned : 1;
15879 unsigned : 1;
15880 unsigned : 1;
15881 unsigned : 1;
15882 } __PWMLDbits_t;
15884 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits;
15886 #define _MPWM5LD 0x01
15887 #define _MPWM6LD 0x02
15888 #define _MPWM11LD 0x04
15890 //==============================================================================
15893 //==============================================================================
15894 // PWMOUT Bits
15896 extern __at(0x0D90) __sfr PWMOUT;
15898 typedef struct
15900 unsigned MPWM5OUT : 1;
15901 unsigned MPWM6OUT : 1;
15902 unsigned MPWM11OUT : 1;
15903 unsigned : 1;
15904 unsigned : 1;
15905 unsigned : 1;
15906 unsigned : 1;
15907 unsigned : 1;
15908 } __PWMOUTbits_t;
15910 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits;
15912 #define _MPWM5OUT 0x01
15913 #define _MPWM6OUT 0x02
15914 #define _MPWM11OUT 0x04
15916 //==============================================================================
15918 extern __at(0x0D91) __sfr PWM5PH;
15920 //==============================================================================
15921 // PWM5PHL Bits
15923 extern __at(0x0D91) __sfr PWM5PHL;
15925 typedef struct
15927 unsigned PWM5PHL0 : 1;
15928 unsigned PWM5PHL1 : 1;
15929 unsigned PWM5PHL2 : 1;
15930 unsigned PWM5PHL3 : 1;
15931 unsigned PWM5PHL4 : 1;
15932 unsigned PWM5PHL5 : 1;
15933 unsigned PWM5PHL6 : 1;
15934 unsigned PWM5PHL7 : 1;
15935 } __PWM5PHLbits_t;
15937 extern __at(0x0D91) volatile __PWM5PHLbits_t PWM5PHLbits;
15939 #define _PWM5PHL0 0x01
15940 #define _PWM5PHL1 0x02
15941 #define _PWM5PHL2 0x04
15942 #define _PWM5PHL3 0x08
15943 #define _PWM5PHL4 0x10
15944 #define _PWM5PHL5 0x20
15945 #define _PWM5PHL6 0x40
15946 #define _PWM5PHL7 0x80
15948 //==============================================================================
15951 //==============================================================================
15952 // PWM5PHH Bits
15954 extern __at(0x0D92) __sfr PWM5PHH;
15956 typedef struct
15958 unsigned PWM5PHH0 : 1;
15959 unsigned PWM5PHH1 : 1;
15960 unsigned PWM5PHH2 : 1;
15961 unsigned PWM5PHH3 : 1;
15962 unsigned PWM5PHH4 : 1;
15963 unsigned PWM5PHH5 : 1;
15964 unsigned PWM5PHH6 : 1;
15965 unsigned PWM5PHH7 : 1;
15966 } __PWM5PHHbits_t;
15968 extern __at(0x0D92) volatile __PWM5PHHbits_t PWM5PHHbits;
15970 #define _PWM5PHH0 0x01
15971 #define _PWM5PHH1 0x02
15972 #define _PWM5PHH2 0x04
15973 #define _PWM5PHH3 0x08
15974 #define _PWM5PHH4 0x10
15975 #define _PWM5PHH5 0x20
15976 #define _PWM5PHH6 0x40
15977 #define _PWM5PHH7 0x80
15979 //==============================================================================
15981 extern __at(0x0D93) __sfr PWM5DC;
15983 //==============================================================================
15984 // PWM5DCL Bits
15986 extern __at(0x0D93) __sfr PWM5DCL;
15988 typedef struct
15990 unsigned PWM5DCL0 : 1;
15991 unsigned PWM5DCL1 : 1;
15992 unsigned PWM5DCL2 : 1;
15993 unsigned PWM5DCL3 : 1;
15994 unsigned PWM5DCL4 : 1;
15995 unsigned PWM5DCL5 : 1;
15996 unsigned PWM5DCL6 : 1;
15997 unsigned PWM5DCL7 : 1;
15998 } __PWM5DCLbits_t;
16000 extern __at(0x0D93) volatile __PWM5DCLbits_t PWM5DCLbits;
16002 #define _PWM5DCL0 0x01
16003 #define _PWM5DCL1 0x02
16004 #define _PWM5DCL2 0x04
16005 #define _PWM5DCL3 0x08
16006 #define _PWM5DCL4 0x10
16007 #define _PWM5DCL5 0x20
16008 #define _PWM5DCL6 0x40
16009 #define _PWM5DCL7 0x80
16011 //==============================================================================
16014 //==============================================================================
16015 // PWM5DCH Bits
16017 extern __at(0x0D94) __sfr PWM5DCH;
16019 typedef struct
16021 unsigned PWM5DCH0 : 1;
16022 unsigned PWM5DCH1 : 1;
16023 unsigned PWM5DCH2 : 1;
16024 unsigned PWM5DCH3 : 1;
16025 unsigned PWM5DCH4 : 1;
16026 unsigned PWM5DCH5 : 1;
16027 unsigned PWM5DCH6 : 1;
16028 unsigned PWM5DCH7 : 1;
16029 } __PWM5DCHbits_t;
16031 extern __at(0x0D94) volatile __PWM5DCHbits_t PWM5DCHbits;
16033 #define _PWM5DCH0 0x01
16034 #define _PWM5DCH1 0x02
16035 #define _PWM5DCH2 0x04
16036 #define _PWM5DCH3 0x08
16037 #define _PWM5DCH4 0x10
16038 #define _PWM5DCH5 0x20
16039 #define _PWM5DCH6 0x40
16040 #define _PWM5DCH7 0x80
16042 //==============================================================================
16044 extern __at(0x0D95) __sfr PWM5PR;
16046 //==============================================================================
16047 // PWM5PRL Bits
16049 extern __at(0x0D95) __sfr PWM5PRL;
16051 typedef struct
16053 unsigned PWM5PRL0 : 1;
16054 unsigned PWM5PRL1 : 1;
16055 unsigned PWM5PRL2 : 1;
16056 unsigned PWM5PRL3 : 1;
16057 unsigned PWM5PRL4 : 1;
16058 unsigned PWM5PRL5 : 1;
16059 unsigned PWM5PRL6 : 1;
16060 unsigned PWM5PRL7 : 1;
16061 } __PWM5PRLbits_t;
16063 extern __at(0x0D95) volatile __PWM5PRLbits_t PWM5PRLbits;
16065 #define _PWM5PRL0 0x01
16066 #define _PWM5PRL1 0x02
16067 #define _PWM5PRL2 0x04
16068 #define _PWM5PRL3 0x08
16069 #define _PWM5PRL4 0x10
16070 #define _PWM5PRL5 0x20
16071 #define _PWM5PRL6 0x40
16072 #define _PWM5PRL7 0x80
16074 //==============================================================================
16077 //==============================================================================
16078 // PWM5PRH Bits
16080 extern __at(0x0D96) __sfr PWM5PRH;
16082 typedef struct
16084 unsigned PWM5PRH0 : 1;
16085 unsigned PWM5PRH1 : 1;
16086 unsigned PWM5PRH2 : 1;
16087 unsigned PWM5PRH3 : 1;
16088 unsigned PWM5PRH4 : 1;
16089 unsigned PWM5PRH5 : 1;
16090 unsigned PWM5PRH6 : 1;
16091 unsigned PWM5PRH7 : 1;
16092 } __PWM5PRHbits_t;
16094 extern __at(0x0D96) volatile __PWM5PRHbits_t PWM5PRHbits;
16096 #define _PWM5PRH0 0x01
16097 #define _PWM5PRH1 0x02
16098 #define _PWM5PRH2 0x04
16099 #define _PWM5PRH3 0x08
16100 #define _PWM5PRH4 0x10
16101 #define _PWM5PRH5 0x20
16102 #define _PWM5PRH6 0x40
16103 #define _PWM5PRH7 0x80
16105 //==============================================================================
16107 extern __at(0x0D97) __sfr PWM5OF;
16109 //==============================================================================
16110 // PWM5OFL Bits
16112 extern __at(0x0D97) __sfr PWM5OFL;
16114 typedef struct
16116 unsigned PWM5OFL0 : 1;
16117 unsigned PWM5OFL1 : 1;
16118 unsigned PWM5OFL2 : 1;
16119 unsigned PWM5OFL3 : 1;
16120 unsigned PWM5OFL4 : 1;
16121 unsigned PWM5OFL5 : 1;
16122 unsigned PWM5OFL6 : 1;
16123 unsigned PWM5OFL7 : 1;
16124 } __PWM5OFLbits_t;
16126 extern __at(0x0D97) volatile __PWM5OFLbits_t PWM5OFLbits;
16128 #define _PWM5OFL0 0x01
16129 #define _PWM5OFL1 0x02
16130 #define _PWM5OFL2 0x04
16131 #define _PWM5OFL3 0x08
16132 #define _PWM5OFL4 0x10
16133 #define _PWM5OFL5 0x20
16134 #define _PWM5OFL6 0x40
16135 #define _PWM5OFL7 0x80
16137 //==============================================================================
16140 //==============================================================================
16141 // PWM5OFH Bits
16143 extern __at(0x0D98) __sfr PWM5OFH;
16145 typedef struct
16147 unsigned PWM5OFH0 : 1;
16148 unsigned PWM5OFH1 : 1;
16149 unsigned PWM5OFH2 : 1;
16150 unsigned PWM5OFH3 : 1;
16151 unsigned PWM5OFH4 : 1;
16152 unsigned PWM5OFH5 : 1;
16153 unsigned PWM5OFH6 : 1;
16154 unsigned PWM5OFH7 : 1;
16155 } __PWM5OFHbits_t;
16157 extern __at(0x0D98) volatile __PWM5OFHbits_t PWM5OFHbits;
16159 #define _PWM5OFH0 0x01
16160 #define _PWM5OFH1 0x02
16161 #define _PWM5OFH2 0x04
16162 #define _PWM5OFH3 0x08
16163 #define _PWM5OFH4 0x10
16164 #define _PWM5OFH5 0x20
16165 #define _PWM5OFH6 0x40
16166 #define _PWM5OFH7 0x80
16168 //==============================================================================
16170 extern __at(0x0D99) __sfr PWM5TMR;
16172 //==============================================================================
16173 // PWM5TMRL Bits
16175 extern __at(0x0D99) __sfr PWM5TMRL;
16177 typedef struct
16179 unsigned PWM5TMRL0 : 1;
16180 unsigned PWM5TMRL1 : 1;
16181 unsigned PWM5TMRL2 : 1;
16182 unsigned PWM5TMRL3 : 1;
16183 unsigned PWM5TMRL4 : 1;
16184 unsigned PWM5TMRL5 : 1;
16185 unsigned PWM5TMRL6 : 1;
16186 unsigned PWM5TMRL7 : 1;
16187 } __PWM5TMRLbits_t;
16189 extern __at(0x0D99) volatile __PWM5TMRLbits_t PWM5TMRLbits;
16191 #define _PWM5TMRL0 0x01
16192 #define _PWM5TMRL1 0x02
16193 #define _PWM5TMRL2 0x04
16194 #define _PWM5TMRL3 0x08
16195 #define _PWM5TMRL4 0x10
16196 #define _PWM5TMRL5 0x20
16197 #define _PWM5TMRL6 0x40
16198 #define _PWM5TMRL7 0x80
16200 //==============================================================================
16203 //==============================================================================
16204 // PWM5TMRH Bits
16206 extern __at(0x0D9A) __sfr PWM5TMRH;
16208 typedef struct
16210 unsigned PWM5TMRH0 : 1;
16211 unsigned PWM5TMRH1 : 1;
16212 unsigned PWM5TMRH2 : 1;
16213 unsigned PWM5TMRH3 : 1;
16214 unsigned PWM5TMRH4 : 1;
16215 unsigned PWM5TMRH5 : 1;
16216 unsigned PWM5TMRH6 : 1;
16217 unsigned PWM5TMRH7 : 1;
16218 } __PWM5TMRHbits_t;
16220 extern __at(0x0D9A) volatile __PWM5TMRHbits_t PWM5TMRHbits;
16222 #define _PWM5TMRH0 0x01
16223 #define _PWM5TMRH1 0x02
16224 #define _PWM5TMRH2 0x04
16225 #define _PWM5TMRH3 0x08
16226 #define _PWM5TMRH4 0x10
16227 #define _PWM5TMRH5 0x20
16228 #define _PWM5TMRH6 0x40
16229 #define _PWM5TMRH7 0x80
16231 //==============================================================================
16234 //==============================================================================
16235 // PWM5CON Bits
16237 extern __at(0x0D9B) __sfr PWM5CON;
16239 typedef union
16241 struct
16243 unsigned : 1;
16244 unsigned : 1;
16245 unsigned PWM5MODE0 : 1;
16246 unsigned PWM5MODE1 : 1;
16247 unsigned POL : 1;
16248 unsigned OUT : 1;
16249 unsigned : 1;
16250 unsigned EN : 1;
16253 struct
16255 unsigned : 1;
16256 unsigned : 1;
16257 unsigned MODE0 : 1;
16258 unsigned MODE1 : 1;
16259 unsigned PWM5POL : 1;
16260 unsigned PWM5OUT : 1;
16261 unsigned : 1;
16262 unsigned PWM5EN : 1;
16265 struct
16267 unsigned : 2;
16268 unsigned PWM5MODE : 2;
16269 unsigned : 4;
16272 struct
16274 unsigned : 2;
16275 unsigned MODE : 2;
16276 unsigned : 4;
16278 } __PWM5CONbits_t;
16280 extern __at(0x0D9B) volatile __PWM5CONbits_t PWM5CONbits;
16282 #define _PWM5CON_PWM5MODE0 0x04
16283 #define _PWM5CON_MODE0 0x04
16284 #define _PWM5CON_PWM5MODE1 0x08
16285 #define _PWM5CON_MODE1 0x08
16286 #define _PWM5CON_POL 0x10
16287 #define _PWM5CON_PWM5POL 0x10
16288 #define _PWM5CON_OUT 0x20
16289 #define _PWM5CON_PWM5OUT 0x20
16290 #define _PWM5CON_EN 0x80
16291 #define _PWM5CON_PWM5EN 0x80
16293 //==============================================================================
16296 //==============================================================================
16297 // PWM5INTCON Bits
16299 extern __at(0x0D9C) __sfr PWM5INTCON;
16301 typedef union
16303 struct
16305 unsigned PRIE : 1;
16306 unsigned DCIE : 1;
16307 unsigned PHIE : 1;
16308 unsigned OFIE : 1;
16309 unsigned : 1;
16310 unsigned : 1;
16311 unsigned : 1;
16312 unsigned : 1;
16315 struct
16317 unsigned PWM5PRIE : 1;
16318 unsigned PWM5DCIE : 1;
16319 unsigned PWM5PHIE : 1;
16320 unsigned PWM5OFIE : 1;
16321 unsigned : 1;
16322 unsigned : 1;
16323 unsigned : 1;
16324 unsigned : 1;
16326 } __PWM5INTCONbits_t;
16328 extern __at(0x0D9C) volatile __PWM5INTCONbits_t PWM5INTCONbits;
16330 #define _PRIE 0x01
16331 #define _PWM5PRIE 0x01
16332 #define _DCIE 0x02
16333 #define _PWM5DCIE 0x02
16334 #define _PHIE 0x04
16335 #define _PWM5PHIE 0x04
16336 #define _OFIE 0x08
16337 #define _PWM5OFIE 0x08
16339 //==============================================================================
16342 //==============================================================================
16343 // PWM5INTE Bits
16345 extern __at(0x0D9C) __sfr PWM5INTE;
16347 typedef union
16349 struct
16351 unsigned PRIE : 1;
16352 unsigned DCIE : 1;
16353 unsigned PHIE : 1;
16354 unsigned OFIE : 1;
16355 unsigned : 1;
16356 unsigned : 1;
16357 unsigned : 1;
16358 unsigned : 1;
16361 struct
16363 unsigned PWM5PRIE : 1;
16364 unsigned PWM5DCIE : 1;
16365 unsigned PWM5PHIE : 1;
16366 unsigned PWM5OFIE : 1;
16367 unsigned : 1;
16368 unsigned : 1;
16369 unsigned : 1;
16370 unsigned : 1;
16372 } __PWM5INTEbits_t;
16374 extern __at(0x0D9C) volatile __PWM5INTEbits_t PWM5INTEbits;
16376 #define _PWM5INTE_PRIE 0x01
16377 #define _PWM5INTE_PWM5PRIE 0x01
16378 #define _PWM5INTE_DCIE 0x02
16379 #define _PWM5INTE_PWM5DCIE 0x02
16380 #define _PWM5INTE_PHIE 0x04
16381 #define _PWM5INTE_PWM5PHIE 0x04
16382 #define _PWM5INTE_OFIE 0x08
16383 #define _PWM5INTE_PWM5OFIE 0x08
16385 //==============================================================================
16388 //==============================================================================
16389 // PWM5INTF Bits
16391 extern __at(0x0D9D) __sfr PWM5INTF;
16393 typedef union
16395 struct
16397 unsigned PRIF : 1;
16398 unsigned DCIF : 1;
16399 unsigned PHIF : 1;
16400 unsigned OFIF : 1;
16401 unsigned : 1;
16402 unsigned : 1;
16403 unsigned : 1;
16404 unsigned : 1;
16407 struct
16409 unsigned PWM5PRIF : 1;
16410 unsigned PWM5DCIF : 1;
16411 unsigned PWM5PHIF : 1;
16412 unsigned PWM5OFIF : 1;
16413 unsigned : 1;
16414 unsigned : 1;
16415 unsigned : 1;
16416 unsigned : 1;
16418 } __PWM5INTFbits_t;
16420 extern __at(0x0D9D) volatile __PWM5INTFbits_t PWM5INTFbits;
16422 #define _PRIF 0x01
16423 #define _PWM5PRIF 0x01
16424 #define _DCIF 0x02
16425 #define _PWM5DCIF 0x02
16426 #define _PHIF 0x04
16427 #define _PWM5PHIF 0x04
16428 #define _OFIF 0x08
16429 #define _PWM5OFIF 0x08
16431 //==============================================================================
16434 //==============================================================================
16435 // PWM5INTFLG Bits
16437 extern __at(0x0D9D) __sfr PWM5INTFLG;
16439 typedef union
16441 struct
16443 unsigned PRIF : 1;
16444 unsigned DCIF : 1;
16445 unsigned PHIF : 1;
16446 unsigned OFIF : 1;
16447 unsigned : 1;
16448 unsigned : 1;
16449 unsigned : 1;
16450 unsigned : 1;
16453 struct
16455 unsigned PWM5PRIF : 1;
16456 unsigned PWM5DCIF : 1;
16457 unsigned PWM5PHIF : 1;
16458 unsigned PWM5OFIF : 1;
16459 unsigned : 1;
16460 unsigned : 1;
16461 unsigned : 1;
16462 unsigned : 1;
16464 } __PWM5INTFLGbits_t;
16466 extern __at(0x0D9D) volatile __PWM5INTFLGbits_t PWM5INTFLGbits;
16468 #define _PWM5INTFLG_PRIF 0x01
16469 #define _PWM5INTFLG_PWM5PRIF 0x01
16470 #define _PWM5INTFLG_DCIF 0x02
16471 #define _PWM5INTFLG_PWM5DCIF 0x02
16472 #define _PWM5INTFLG_PHIF 0x04
16473 #define _PWM5INTFLG_PWM5PHIF 0x04
16474 #define _PWM5INTFLG_OFIF 0x08
16475 #define _PWM5INTFLG_PWM5OFIF 0x08
16477 //==============================================================================
16480 //==============================================================================
16481 // PWM5CLKCON Bits
16483 extern __at(0x0D9E) __sfr PWM5CLKCON;
16485 typedef union
16487 struct
16489 unsigned PWM5CS0 : 1;
16490 unsigned PWM5CS1 : 1;
16491 unsigned PWM5CS2 : 1;
16492 unsigned : 1;
16493 unsigned PWM5PS0 : 1;
16494 unsigned PWM5PS1 : 1;
16495 unsigned PWM5PS2 : 1;
16496 unsigned : 1;
16499 struct
16501 unsigned CS0 : 1;
16502 unsigned CS1 : 1;
16503 unsigned CS2 : 1;
16504 unsigned : 1;
16505 unsigned PS0 : 1;
16506 unsigned PS1 : 1;
16507 unsigned PS2 : 1;
16508 unsigned : 1;
16511 struct
16513 unsigned CS : 3;
16514 unsigned : 5;
16517 struct
16519 unsigned PWM5CS : 3;
16520 unsigned : 5;
16523 struct
16525 unsigned : 4;
16526 unsigned PWM5PS : 3;
16527 unsigned : 1;
16530 struct
16532 unsigned : 4;
16533 unsigned PS : 3;
16534 unsigned : 1;
16536 } __PWM5CLKCONbits_t;
16538 extern __at(0x0D9E) volatile __PWM5CLKCONbits_t PWM5CLKCONbits;
16540 #define _PWM5CLKCON_PWM5CS0 0x01
16541 #define _PWM5CLKCON_CS0 0x01
16542 #define _PWM5CLKCON_PWM5CS1 0x02
16543 #define _PWM5CLKCON_CS1 0x02
16544 #define _PWM5CLKCON_PWM5CS2 0x04
16545 #define _PWM5CLKCON_CS2 0x04
16546 #define _PWM5CLKCON_PWM5PS0 0x10
16547 #define _PWM5CLKCON_PS0 0x10
16548 #define _PWM5CLKCON_PWM5PS1 0x20
16549 #define _PWM5CLKCON_PS1 0x20
16550 #define _PWM5CLKCON_PWM5PS2 0x40
16551 #define _PWM5CLKCON_PS2 0x40
16553 //==============================================================================
16556 //==============================================================================
16557 // PWM5LDCON Bits
16559 extern __at(0x0D9F) __sfr PWM5LDCON;
16561 typedef union
16563 struct
16565 unsigned PWM5LDS0 : 1;
16566 unsigned PWM5LDS1 : 1;
16567 unsigned : 1;
16568 unsigned : 1;
16569 unsigned : 1;
16570 unsigned : 1;
16571 unsigned LDT : 1;
16572 unsigned LDA : 1;
16575 struct
16577 unsigned LDS0 : 1;
16578 unsigned LDS1 : 1;
16579 unsigned : 1;
16580 unsigned : 1;
16581 unsigned : 1;
16582 unsigned : 1;
16583 unsigned PWM5LDM : 1;
16584 unsigned PWM5LD : 1;
16587 struct
16589 unsigned LDS : 2;
16590 unsigned : 6;
16593 struct
16595 unsigned PWM5LDS : 2;
16596 unsigned : 6;
16598 } __PWM5LDCONbits_t;
16600 extern __at(0x0D9F) volatile __PWM5LDCONbits_t PWM5LDCONbits;
16602 #define _PWM5LDS0 0x01
16603 #define _LDS0 0x01
16604 #define _PWM5LDS1 0x02
16605 #define _LDS1 0x02
16606 #define _LDT 0x40
16607 #define _PWM5LDM 0x40
16608 #define _LDA 0x80
16609 #define _PWM5LD 0x80
16611 //==============================================================================
16614 //==============================================================================
16615 // PWM5OFCON Bits
16617 extern __at(0x0DA0) __sfr PWM5OFCON;
16619 typedef union
16621 struct
16623 unsigned PWM5OFS0 : 1;
16624 unsigned PWM5OFS1 : 1;
16625 unsigned : 1;
16626 unsigned : 1;
16627 unsigned OFO : 1;
16628 unsigned PWM5OFM0 : 1;
16629 unsigned PWM5OFM1 : 1;
16630 unsigned : 1;
16633 struct
16635 unsigned OFS0 : 1;
16636 unsigned OFS1 : 1;
16637 unsigned : 1;
16638 unsigned : 1;
16639 unsigned PWM5OFMC : 1;
16640 unsigned OFM0 : 1;
16641 unsigned OFM1 : 1;
16642 unsigned : 1;
16645 struct
16647 unsigned PWM5OFS : 2;
16648 unsigned : 6;
16651 struct
16653 unsigned OFS : 2;
16654 unsigned : 6;
16657 struct
16659 unsigned : 5;
16660 unsigned OFM : 2;
16661 unsigned : 1;
16664 struct
16666 unsigned : 5;
16667 unsigned PWM5OFM : 2;
16668 unsigned : 1;
16670 } __PWM5OFCONbits_t;
16672 extern __at(0x0DA0) volatile __PWM5OFCONbits_t PWM5OFCONbits;
16674 #define _PWM5OFS0 0x01
16675 #define _OFS0 0x01
16676 #define _PWM5OFS1 0x02
16677 #define _OFS1 0x02
16678 #define _OFO 0x10
16679 #define _PWM5OFMC 0x10
16680 #define _PWM5OFM0 0x20
16681 #define _OFM0 0x20
16682 #define _PWM5OFM1 0x40
16683 #define _OFM1 0x40
16685 //==============================================================================
16687 extern __at(0x0DA1) __sfr PWM6PH;
16689 //==============================================================================
16690 // PWM6PHL Bits
16692 extern __at(0x0DA1) __sfr PWM6PHL;
16694 typedef struct
16696 unsigned PWM6PHL0 : 1;
16697 unsigned PWM6PHL1 : 1;
16698 unsigned PWM6PHL2 : 1;
16699 unsigned PWM6PHL3 : 1;
16700 unsigned PWM6PHL4 : 1;
16701 unsigned PWM6PHL5 : 1;
16702 unsigned PWM6PHL6 : 1;
16703 unsigned PWM6PHL7 : 1;
16704 } __PWM6PHLbits_t;
16706 extern __at(0x0DA1) volatile __PWM6PHLbits_t PWM6PHLbits;
16708 #define _PWM6PHL0 0x01
16709 #define _PWM6PHL1 0x02
16710 #define _PWM6PHL2 0x04
16711 #define _PWM6PHL3 0x08
16712 #define _PWM6PHL4 0x10
16713 #define _PWM6PHL5 0x20
16714 #define _PWM6PHL6 0x40
16715 #define _PWM6PHL7 0x80
16717 //==============================================================================
16720 //==============================================================================
16721 // PWM6PHH Bits
16723 extern __at(0x0DA2) __sfr PWM6PHH;
16725 typedef struct
16727 unsigned PWM6PHH0 : 1;
16728 unsigned PWM6PHH1 : 1;
16729 unsigned PWM6PHH2 : 1;
16730 unsigned PWM6PHH3 : 1;
16731 unsigned PWM6PHH4 : 1;
16732 unsigned PWM6PHH5 : 1;
16733 unsigned PWM6PHH6 : 1;
16734 unsigned PWM6PHH7 : 1;
16735 } __PWM6PHHbits_t;
16737 extern __at(0x0DA2) volatile __PWM6PHHbits_t PWM6PHHbits;
16739 #define _PWM6PHH0 0x01
16740 #define _PWM6PHH1 0x02
16741 #define _PWM6PHH2 0x04
16742 #define _PWM6PHH3 0x08
16743 #define _PWM6PHH4 0x10
16744 #define _PWM6PHH5 0x20
16745 #define _PWM6PHH6 0x40
16746 #define _PWM6PHH7 0x80
16748 //==============================================================================
16750 extern __at(0x0DA3) __sfr PWM6DC;
16752 //==============================================================================
16753 // PWM6DCL Bits
16755 extern __at(0x0DA3) __sfr PWM6DCL;
16757 typedef struct
16759 unsigned PWM6DCL0 : 1;
16760 unsigned PWM6DCL1 : 1;
16761 unsigned PWM6DCL2 : 1;
16762 unsigned PWM6DCL3 : 1;
16763 unsigned PWM6DCL4 : 1;
16764 unsigned PWM6DCL5 : 1;
16765 unsigned PWM6DCL6 : 1;
16766 unsigned PWM6DCL7 : 1;
16767 } __PWM6DCLbits_t;
16769 extern __at(0x0DA3) volatile __PWM6DCLbits_t PWM6DCLbits;
16771 #define _PWM6DCL0 0x01
16772 #define _PWM6DCL1 0x02
16773 #define _PWM6DCL2 0x04
16774 #define _PWM6DCL3 0x08
16775 #define _PWM6DCL4 0x10
16776 #define _PWM6DCL5 0x20
16777 #define _PWM6DCL6 0x40
16778 #define _PWM6DCL7 0x80
16780 //==============================================================================
16783 //==============================================================================
16784 // PWM6DCH Bits
16786 extern __at(0x0DA4) __sfr PWM6DCH;
16788 typedef struct
16790 unsigned PWM6DCH0 : 1;
16791 unsigned PWM6DCH1 : 1;
16792 unsigned PWM6DCH2 : 1;
16793 unsigned PWM6DCH3 : 1;
16794 unsigned PWM6DCH4 : 1;
16795 unsigned PWM6DCH5 : 1;
16796 unsigned PWM6DCH6 : 1;
16797 unsigned PWM6DCH7 : 1;
16798 } __PWM6DCHbits_t;
16800 extern __at(0x0DA4) volatile __PWM6DCHbits_t PWM6DCHbits;
16802 #define _PWM6DCH0 0x01
16803 #define _PWM6DCH1 0x02
16804 #define _PWM6DCH2 0x04
16805 #define _PWM6DCH3 0x08
16806 #define _PWM6DCH4 0x10
16807 #define _PWM6DCH5 0x20
16808 #define _PWM6DCH6 0x40
16809 #define _PWM6DCH7 0x80
16811 //==============================================================================
16813 extern __at(0x0DA5) __sfr PWM6PR;
16815 //==============================================================================
16816 // PWM6PRL Bits
16818 extern __at(0x0DA5) __sfr PWM6PRL;
16820 typedef struct
16822 unsigned PWM6PRL0 : 1;
16823 unsigned PWM6PRL1 : 1;
16824 unsigned PWM6PRL2 : 1;
16825 unsigned PWM6PRL3 : 1;
16826 unsigned PWM6PRL4 : 1;
16827 unsigned PWM6PRL5 : 1;
16828 unsigned PWM6PRL6 : 1;
16829 unsigned PWM6PRL7 : 1;
16830 } __PWM6PRLbits_t;
16832 extern __at(0x0DA5) volatile __PWM6PRLbits_t PWM6PRLbits;
16834 #define _PWM6PRL0 0x01
16835 #define _PWM6PRL1 0x02
16836 #define _PWM6PRL2 0x04
16837 #define _PWM6PRL3 0x08
16838 #define _PWM6PRL4 0x10
16839 #define _PWM6PRL5 0x20
16840 #define _PWM6PRL6 0x40
16841 #define _PWM6PRL7 0x80
16843 //==============================================================================
16846 //==============================================================================
16847 // PWM6PRH Bits
16849 extern __at(0x0DA6) __sfr PWM6PRH;
16851 typedef struct
16853 unsigned PWM6PRH0 : 1;
16854 unsigned PWM6PRH1 : 1;
16855 unsigned PWM6PRH2 : 1;
16856 unsigned PWM6PRH3 : 1;
16857 unsigned PWM6PRH4 : 1;
16858 unsigned PWM6PRH5 : 1;
16859 unsigned PWM6PRH6 : 1;
16860 unsigned PWM6PRH7 : 1;
16861 } __PWM6PRHbits_t;
16863 extern __at(0x0DA6) volatile __PWM6PRHbits_t PWM6PRHbits;
16865 #define _PWM6PRH0 0x01
16866 #define _PWM6PRH1 0x02
16867 #define _PWM6PRH2 0x04
16868 #define _PWM6PRH3 0x08
16869 #define _PWM6PRH4 0x10
16870 #define _PWM6PRH5 0x20
16871 #define _PWM6PRH6 0x40
16872 #define _PWM6PRH7 0x80
16874 //==============================================================================
16876 extern __at(0x0DA7) __sfr PWM6OF;
16878 //==============================================================================
16879 // PWM6OFL Bits
16881 extern __at(0x0DA7) __sfr PWM6OFL;
16883 typedef struct
16885 unsigned PWM6OFL0 : 1;
16886 unsigned PWM6OFL1 : 1;
16887 unsigned PWM6OFL2 : 1;
16888 unsigned PWM6OFL3 : 1;
16889 unsigned PWM6OFL4 : 1;
16890 unsigned PWM6OFL5 : 1;
16891 unsigned PWM6OFL6 : 1;
16892 unsigned PWM6OFL7 : 1;
16893 } __PWM6OFLbits_t;
16895 extern __at(0x0DA7) volatile __PWM6OFLbits_t PWM6OFLbits;
16897 #define _PWM6OFL0 0x01
16898 #define _PWM6OFL1 0x02
16899 #define _PWM6OFL2 0x04
16900 #define _PWM6OFL3 0x08
16901 #define _PWM6OFL4 0x10
16902 #define _PWM6OFL5 0x20
16903 #define _PWM6OFL6 0x40
16904 #define _PWM6OFL7 0x80
16906 //==============================================================================
16909 //==============================================================================
16910 // PWM6OFH Bits
16912 extern __at(0x0DA8) __sfr PWM6OFH;
16914 typedef struct
16916 unsigned PWM6OFH0 : 1;
16917 unsigned PWM6OFH1 : 1;
16918 unsigned PWM6OFH2 : 1;
16919 unsigned PWM6OFH3 : 1;
16920 unsigned PWM6OFH4 : 1;
16921 unsigned PWM6OFH5 : 1;
16922 unsigned PWM6OFH6 : 1;
16923 unsigned PWM6OFH7 : 1;
16924 } __PWM6OFHbits_t;
16926 extern __at(0x0DA8) volatile __PWM6OFHbits_t PWM6OFHbits;
16928 #define _PWM6OFH0 0x01
16929 #define _PWM6OFH1 0x02
16930 #define _PWM6OFH2 0x04
16931 #define _PWM6OFH3 0x08
16932 #define _PWM6OFH4 0x10
16933 #define _PWM6OFH5 0x20
16934 #define _PWM6OFH6 0x40
16935 #define _PWM6OFH7 0x80
16937 //==============================================================================
16939 extern __at(0x0DA9) __sfr PWM6TMR;
16941 //==============================================================================
16942 // PWM6TMRL Bits
16944 extern __at(0x0DA9) __sfr PWM6TMRL;
16946 typedef struct
16948 unsigned PWM6TMRL0 : 1;
16949 unsigned PWM6TMRL1 : 1;
16950 unsigned PWM6TMRL2 : 1;
16951 unsigned PWM6TMRL3 : 1;
16952 unsigned PWM6TMRL4 : 1;
16953 unsigned PWM6TMRL5 : 1;
16954 unsigned PWM6TMRL6 : 1;
16955 unsigned PWM6TMRL7 : 1;
16956 } __PWM6TMRLbits_t;
16958 extern __at(0x0DA9) volatile __PWM6TMRLbits_t PWM6TMRLbits;
16960 #define _PWM6TMRL0 0x01
16961 #define _PWM6TMRL1 0x02
16962 #define _PWM6TMRL2 0x04
16963 #define _PWM6TMRL3 0x08
16964 #define _PWM6TMRL4 0x10
16965 #define _PWM6TMRL5 0x20
16966 #define _PWM6TMRL6 0x40
16967 #define _PWM6TMRL7 0x80
16969 //==============================================================================
16972 //==============================================================================
16973 // PWM6TMRH Bits
16975 extern __at(0x0DAA) __sfr PWM6TMRH;
16977 typedef struct
16979 unsigned PWM6TMRH0 : 1;
16980 unsigned PWM6TMRH1 : 1;
16981 unsigned PWM6TMRH2 : 1;
16982 unsigned PWM6TMRH3 : 1;
16983 unsigned PWM6TMRH4 : 1;
16984 unsigned PWM6TMRH5 : 1;
16985 unsigned PWM6TMRH6 : 1;
16986 unsigned PWM6TMRH7 : 1;
16987 } __PWM6TMRHbits_t;
16989 extern __at(0x0DAA) volatile __PWM6TMRHbits_t PWM6TMRHbits;
16991 #define _PWM6TMRH0 0x01
16992 #define _PWM6TMRH1 0x02
16993 #define _PWM6TMRH2 0x04
16994 #define _PWM6TMRH3 0x08
16995 #define _PWM6TMRH4 0x10
16996 #define _PWM6TMRH5 0x20
16997 #define _PWM6TMRH6 0x40
16998 #define _PWM6TMRH7 0x80
17000 //==============================================================================
17003 //==============================================================================
17004 // PWM6CON Bits
17006 extern __at(0x0DAB) __sfr PWM6CON;
17008 typedef union
17010 struct
17012 unsigned : 1;
17013 unsigned : 1;
17014 unsigned PWM6MODE0 : 1;
17015 unsigned PWM6MODE1 : 1;
17016 unsigned POL : 1;
17017 unsigned OUT : 1;
17018 unsigned : 1;
17019 unsigned EN : 1;
17022 struct
17024 unsigned : 1;
17025 unsigned : 1;
17026 unsigned MODE0 : 1;
17027 unsigned MODE1 : 1;
17028 unsigned PWM6POL : 1;
17029 unsigned PWM6OUT : 1;
17030 unsigned : 1;
17031 unsigned PWM6EN : 1;
17034 struct
17036 unsigned : 2;
17037 unsigned MODE : 2;
17038 unsigned : 4;
17041 struct
17043 unsigned : 2;
17044 unsigned PWM6MODE : 2;
17045 unsigned : 4;
17047 } __PWM6CONbits_t;
17049 extern __at(0x0DAB) volatile __PWM6CONbits_t PWM6CONbits;
17051 #define _PWM6CON_PWM6MODE0 0x04
17052 #define _PWM6CON_MODE0 0x04
17053 #define _PWM6CON_PWM6MODE1 0x08
17054 #define _PWM6CON_MODE1 0x08
17055 #define _PWM6CON_POL 0x10
17056 #define _PWM6CON_PWM6POL 0x10
17057 #define _PWM6CON_OUT 0x20
17058 #define _PWM6CON_PWM6OUT 0x20
17059 #define _PWM6CON_EN 0x80
17060 #define _PWM6CON_PWM6EN 0x80
17062 //==============================================================================
17065 //==============================================================================
17066 // PWM6INTCON Bits
17068 extern __at(0x0DAC) __sfr PWM6INTCON;
17070 typedef union
17072 struct
17074 unsigned PRIE : 1;
17075 unsigned DCIE : 1;
17076 unsigned PHIE : 1;
17077 unsigned OFIE : 1;
17078 unsigned : 1;
17079 unsigned : 1;
17080 unsigned : 1;
17081 unsigned : 1;
17084 struct
17086 unsigned PWM6PRIE : 1;
17087 unsigned PWM6DCIE : 1;
17088 unsigned PWM6PHIE : 1;
17089 unsigned PWM6OFIE : 1;
17090 unsigned : 1;
17091 unsigned : 1;
17092 unsigned : 1;
17093 unsigned : 1;
17095 } __PWM6INTCONbits_t;
17097 extern __at(0x0DAC) volatile __PWM6INTCONbits_t PWM6INTCONbits;
17099 #define _PWM6INTCON_PRIE 0x01
17100 #define _PWM6INTCON_PWM6PRIE 0x01
17101 #define _PWM6INTCON_DCIE 0x02
17102 #define _PWM6INTCON_PWM6DCIE 0x02
17103 #define _PWM6INTCON_PHIE 0x04
17104 #define _PWM6INTCON_PWM6PHIE 0x04
17105 #define _PWM6INTCON_OFIE 0x08
17106 #define _PWM6INTCON_PWM6OFIE 0x08
17108 //==============================================================================
17111 //==============================================================================
17112 // PWM6INTE Bits
17114 extern __at(0x0DAC) __sfr PWM6INTE;
17116 typedef union
17118 struct
17120 unsigned PRIE : 1;
17121 unsigned DCIE : 1;
17122 unsigned PHIE : 1;
17123 unsigned OFIE : 1;
17124 unsigned : 1;
17125 unsigned : 1;
17126 unsigned : 1;
17127 unsigned : 1;
17130 struct
17132 unsigned PWM6PRIE : 1;
17133 unsigned PWM6DCIE : 1;
17134 unsigned PWM6PHIE : 1;
17135 unsigned PWM6OFIE : 1;
17136 unsigned : 1;
17137 unsigned : 1;
17138 unsigned : 1;
17139 unsigned : 1;
17141 } __PWM6INTEbits_t;
17143 extern __at(0x0DAC) volatile __PWM6INTEbits_t PWM6INTEbits;
17145 #define _PWM6INTE_PRIE 0x01
17146 #define _PWM6INTE_PWM6PRIE 0x01
17147 #define _PWM6INTE_DCIE 0x02
17148 #define _PWM6INTE_PWM6DCIE 0x02
17149 #define _PWM6INTE_PHIE 0x04
17150 #define _PWM6INTE_PWM6PHIE 0x04
17151 #define _PWM6INTE_OFIE 0x08
17152 #define _PWM6INTE_PWM6OFIE 0x08
17154 //==============================================================================
17157 //==============================================================================
17158 // PWM6INTF Bits
17160 extern __at(0x0DAD) __sfr PWM6INTF;
17162 typedef union
17164 struct
17166 unsigned PRIF : 1;
17167 unsigned DCIF : 1;
17168 unsigned PHIF : 1;
17169 unsigned OFIF : 1;
17170 unsigned : 1;
17171 unsigned : 1;
17172 unsigned : 1;
17173 unsigned : 1;
17176 struct
17178 unsigned PWM6PRIF : 1;
17179 unsigned PWM6DCIF : 1;
17180 unsigned PWM6PHIF : 1;
17181 unsigned PWM6OFIF : 1;
17182 unsigned : 1;
17183 unsigned : 1;
17184 unsigned : 1;
17185 unsigned : 1;
17187 } __PWM6INTFbits_t;
17189 extern __at(0x0DAD) volatile __PWM6INTFbits_t PWM6INTFbits;
17191 #define _PWM6INTF_PRIF 0x01
17192 #define _PWM6INTF_PWM6PRIF 0x01
17193 #define _PWM6INTF_DCIF 0x02
17194 #define _PWM6INTF_PWM6DCIF 0x02
17195 #define _PWM6INTF_PHIF 0x04
17196 #define _PWM6INTF_PWM6PHIF 0x04
17197 #define _PWM6INTF_OFIF 0x08
17198 #define _PWM6INTF_PWM6OFIF 0x08
17200 //==============================================================================
17203 //==============================================================================
17204 // PWM6INTFLG Bits
17206 extern __at(0x0DAD) __sfr PWM6INTFLG;
17208 typedef union
17210 struct
17212 unsigned PRIF : 1;
17213 unsigned DCIF : 1;
17214 unsigned PHIF : 1;
17215 unsigned OFIF : 1;
17216 unsigned : 1;
17217 unsigned : 1;
17218 unsigned : 1;
17219 unsigned : 1;
17222 struct
17224 unsigned PWM6PRIF : 1;
17225 unsigned PWM6DCIF : 1;
17226 unsigned PWM6PHIF : 1;
17227 unsigned PWM6OFIF : 1;
17228 unsigned : 1;
17229 unsigned : 1;
17230 unsigned : 1;
17231 unsigned : 1;
17233 } __PWM6INTFLGbits_t;
17235 extern __at(0x0DAD) volatile __PWM6INTFLGbits_t PWM6INTFLGbits;
17237 #define _PWM6INTFLG_PRIF 0x01
17238 #define _PWM6INTFLG_PWM6PRIF 0x01
17239 #define _PWM6INTFLG_DCIF 0x02
17240 #define _PWM6INTFLG_PWM6DCIF 0x02
17241 #define _PWM6INTFLG_PHIF 0x04
17242 #define _PWM6INTFLG_PWM6PHIF 0x04
17243 #define _PWM6INTFLG_OFIF 0x08
17244 #define _PWM6INTFLG_PWM6OFIF 0x08
17246 //==============================================================================
17249 //==============================================================================
17250 // PWM6CLKCON Bits
17252 extern __at(0x0DAE) __sfr PWM6CLKCON;
17254 typedef union
17256 struct
17258 unsigned PWM6CS0 : 1;
17259 unsigned PWM6CS1 : 1;
17260 unsigned PWM6CS2 : 1;
17261 unsigned : 1;
17262 unsigned PWM6PS0 : 1;
17263 unsigned PWM6PS1 : 1;
17264 unsigned PWM6PS2 : 1;
17265 unsigned : 1;
17268 struct
17270 unsigned CS0 : 1;
17271 unsigned CS1 : 1;
17272 unsigned CS2 : 1;
17273 unsigned : 1;
17274 unsigned PS0 : 1;
17275 unsigned PS1 : 1;
17276 unsigned PS2 : 1;
17277 unsigned : 1;
17280 struct
17282 unsigned CS : 3;
17283 unsigned : 5;
17286 struct
17288 unsigned PWM6CS : 3;
17289 unsigned : 5;
17292 struct
17294 unsigned : 4;
17295 unsigned PWM6PS : 3;
17296 unsigned : 1;
17299 struct
17301 unsigned : 4;
17302 unsigned PS : 3;
17303 unsigned : 1;
17305 } __PWM6CLKCONbits_t;
17307 extern __at(0x0DAE) volatile __PWM6CLKCONbits_t PWM6CLKCONbits;
17309 #define _PWM6CLKCON_PWM6CS0 0x01
17310 #define _PWM6CLKCON_CS0 0x01
17311 #define _PWM6CLKCON_PWM6CS1 0x02
17312 #define _PWM6CLKCON_CS1 0x02
17313 #define _PWM6CLKCON_PWM6CS2 0x04
17314 #define _PWM6CLKCON_CS2 0x04
17315 #define _PWM6CLKCON_PWM6PS0 0x10
17316 #define _PWM6CLKCON_PS0 0x10
17317 #define _PWM6CLKCON_PWM6PS1 0x20
17318 #define _PWM6CLKCON_PS1 0x20
17319 #define _PWM6CLKCON_PWM6PS2 0x40
17320 #define _PWM6CLKCON_PS2 0x40
17322 //==============================================================================
17325 //==============================================================================
17326 // PWM6LDCON Bits
17328 extern __at(0x0DAF) __sfr PWM6LDCON;
17330 typedef union
17332 struct
17334 unsigned PWM6LDS0 : 1;
17335 unsigned PWM6LDS1 : 1;
17336 unsigned : 1;
17337 unsigned : 1;
17338 unsigned : 1;
17339 unsigned : 1;
17340 unsigned LDT : 1;
17341 unsigned LDA : 1;
17344 struct
17346 unsigned LDS0 : 1;
17347 unsigned LDS1 : 1;
17348 unsigned : 1;
17349 unsigned : 1;
17350 unsigned : 1;
17351 unsigned : 1;
17352 unsigned PWM6LDM : 1;
17353 unsigned PWM6LD : 1;
17356 struct
17358 unsigned LDS : 2;
17359 unsigned : 6;
17362 struct
17364 unsigned PWM6LDS : 2;
17365 unsigned : 6;
17367 } __PWM6LDCONbits_t;
17369 extern __at(0x0DAF) volatile __PWM6LDCONbits_t PWM6LDCONbits;
17371 #define _PWM6LDCON_PWM6LDS0 0x01
17372 #define _PWM6LDCON_LDS0 0x01
17373 #define _PWM6LDCON_PWM6LDS1 0x02
17374 #define _PWM6LDCON_LDS1 0x02
17375 #define _PWM6LDCON_LDT 0x40
17376 #define _PWM6LDCON_PWM6LDM 0x40
17377 #define _PWM6LDCON_LDA 0x80
17378 #define _PWM6LDCON_PWM6LD 0x80
17380 //==============================================================================
17383 //==============================================================================
17384 // PWM6OFCON Bits
17386 extern __at(0x0DB0) __sfr PWM6OFCON;
17388 typedef union
17390 struct
17392 unsigned PWM6OFS0 : 1;
17393 unsigned PWM6OFS1 : 1;
17394 unsigned : 1;
17395 unsigned : 1;
17396 unsigned OFO : 1;
17397 unsigned PWM6OFM0 : 1;
17398 unsigned PWM6OFM1 : 1;
17399 unsigned : 1;
17402 struct
17404 unsigned OFS0 : 1;
17405 unsigned OFS1 : 1;
17406 unsigned : 1;
17407 unsigned : 1;
17408 unsigned PWM6OFMC : 1;
17409 unsigned OFM0 : 1;
17410 unsigned OFM1 : 1;
17411 unsigned : 1;
17414 struct
17416 unsigned OFS : 2;
17417 unsigned : 6;
17420 struct
17422 unsigned PWM6OFS : 2;
17423 unsigned : 6;
17426 struct
17428 unsigned : 5;
17429 unsigned PWM6OFM : 2;
17430 unsigned : 1;
17433 struct
17435 unsigned : 5;
17436 unsigned OFM : 2;
17437 unsigned : 1;
17439 } __PWM6OFCONbits_t;
17441 extern __at(0x0DB0) volatile __PWM6OFCONbits_t PWM6OFCONbits;
17443 #define _PWM6OFCON_PWM6OFS0 0x01
17444 #define _PWM6OFCON_OFS0 0x01
17445 #define _PWM6OFCON_PWM6OFS1 0x02
17446 #define _PWM6OFCON_OFS1 0x02
17447 #define _PWM6OFCON_OFO 0x10
17448 #define _PWM6OFCON_PWM6OFMC 0x10
17449 #define _PWM6OFCON_PWM6OFM0 0x20
17450 #define _PWM6OFCON_OFM0 0x20
17451 #define _PWM6OFCON_PWM6OFM1 0x40
17452 #define _PWM6OFCON_OFM1 0x40
17454 //==============================================================================
17456 extern __at(0x0DB1) __sfr PWM11PH;
17458 //==============================================================================
17459 // PWM11PHL Bits
17461 extern __at(0x0DB1) __sfr PWM11PHL;
17463 typedef struct
17465 unsigned PWM11PHL0 : 1;
17466 unsigned PWM11PHL1 : 1;
17467 unsigned PWM11PHL2 : 1;
17468 unsigned PWM11PHL3 : 1;
17469 unsigned PWM11PHL4 : 1;
17470 unsigned PWM11PHL5 : 1;
17471 unsigned PWM11PHL6 : 1;
17472 unsigned PWM11PHL7 : 1;
17473 } __PWM11PHLbits_t;
17475 extern __at(0x0DB1) volatile __PWM11PHLbits_t PWM11PHLbits;
17477 #define _PWM11PHL0 0x01
17478 #define _PWM11PHL1 0x02
17479 #define _PWM11PHL2 0x04
17480 #define _PWM11PHL3 0x08
17481 #define _PWM11PHL4 0x10
17482 #define _PWM11PHL5 0x20
17483 #define _PWM11PHL6 0x40
17484 #define _PWM11PHL7 0x80
17486 //==============================================================================
17489 //==============================================================================
17490 // PWM11PHH Bits
17492 extern __at(0x0DB2) __sfr PWM11PHH;
17494 typedef struct
17496 unsigned PWM11PHH0 : 1;
17497 unsigned PWM11PHH1 : 1;
17498 unsigned PWM11PHH2 : 1;
17499 unsigned PWM11PHH3 : 1;
17500 unsigned PWM11PHH4 : 1;
17501 unsigned PWM11PHH5 : 1;
17502 unsigned PWM11PHH6 : 1;
17503 unsigned PWM11PHH7 : 1;
17504 } __PWM11PHHbits_t;
17506 extern __at(0x0DB2) volatile __PWM11PHHbits_t PWM11PHHbits;
17508 #define _PWM11PHH0 0x01
17509 #define _PWM11PHH1 0x02
17510 #define _PWM11PHH2 0x04
17511 #define _PWM11PHH3 0x08
17512 #define _PWM11PHH4 0x10
17513 #define _PWM11PHH5 0x20
17514 #define _PWM11PHH6 0x40
17515 #define _PWM11PHH7 0x80
17517 //==============================================================================
17519 extern __at(0x0DB3) __sfr PWM11DC;
17521 //==============================================================================
17522 // PWM11DCL Bits
17524 extern __at(0x0DB3) __sfr PWM11DCL;
17526 typedef struct
17528 unsigned PWM11DCL0 : 1;
17529 unsigned PWM11DCL1 : 1;
17530 unsigned PWM11DCL2 : 1;
17531 unsigned PWM11DCL3 : 1;
17532 unsigned PWM11DCL4 : 1;
17533 unsigned PWM11DCL5 : 1;
17534 unsigned PWM11DCL6 : 1;
17535 unsigned PWM11DCL7 : 1;
17536 } __PWM11DCLbits_t;
17538 extern __at(0x0DB3) volatile __PWM11DCLbits_t PWM11DCLbits;
17540 #define _PWM11DCL0 0x01
17541 #define _PWM11DCL1 0x02
17542 #define _PWM11DCL2 0x04
17543 #define _PWM11DCL3 0x08
17544 #define _PWM11DCL4 0x10
17545 #define _PWM11DCL5 0x20
17546 #define _PWM11DCL6 0x40
17547 #define _PWM11DCL7 0x80
17549 //==============================================================================
17552 //==============================================================================
17553 // PWM11DCH Bits
17555 extern __at(0x0DB4) __sfr PWM11DCH;
17557 typedef struct
17559 unsigned PWM11DCH0 : 1;
17560 unsigned PWM11DCH1 : 1;
17561 unsigned PWM11DCH2 : 1;
17562 unsigned PWM11DCH3 : 1;
17563 unsigned PWM11DCH4 : 1;
17564 unsigned PWM11DCH5 : 1;
17565 unsigned PWM11DCH6 : 1;
17566 unsigned PWM11DCH7 : 1;
17567 } __PWM11DCHbits_t;
17569 extern __at(0x0DB4) volatile __PWM11DCHbits_t PWM11DCHbits;
17571 #define _PWM11DCH0 0x01
17572 #define _PWM11DCH1 0x02
17573 #define _PWM11DCH2 0x04
17574 #define _PWM11DCH3 0x08
17575 #define _PWM11DCH4 0x10
17576 #define _PWM11DCH5 0x20
17577 #define _PWM11DCH6 0x40
17578 #define _PWM11DCH7 0x80
17580 //==============================================================================
17582 extern __at(0x0DB5) __sfr PWM11PR;
17584 //==============================================================================
17585 // PWM11PRL Bits
17587 extern __at(0x0DB5) __sfr PWM11PRL;
17589 typedef struct
17591 unsigned PWM11PRL0 : 1;
17592 unsigned PWM11PRL1 : 1;
17593 unsigned PWM11PRL2 : 1;
17594 unsigned PWM11PRL3 : 1;
17595 unsigned PWM11PRL4 : 1;
17596 unsigned PWM11PRL5 : 1;
17597 unsigned PWM11PRL6 : 1;
17598 unsigned PWM11PRL7 : 1;
17599 } __PWM11PRLbits_t;
17601 extern __at(0x0DB5) volatile __PWM11PRLbits_t PWM11PRLbits;
17603 #define _PWM11PRL0 0x01
17604 #define _PWM11PRL1 0x02
17605 #define _PWM11PRL2 0x04
17606 #define _PWM11PRL3 0x08
17607 #define _PWM11PRL4 0x10
17608 #define _PWM11PRL5 0x20
17609 #define _PWM11PRL6 0x40
17610 #define _PWM11PRL7 0x80
17612 //==============================================================================
17615 //==============================================================================
17616 // PWM11PRH Bits
17618 extern __at(0x0DB6) __sfr PWM11PRH;
17620 typedef struct
17622 unsigned PWM11PRH0 : 1;
17623 unsigned PWM11PRH1 : 1;
17624 unsigned PWM11PRH2 : 1;
17625 unsigned PWM11PRH3 : 1;
17626 unsigned PWM11PRH4 : 1;
17627 unsigned PWM11PRH5 : 1;
17628 unsigned PWM11PRH6 : 1;
17629 unsigned PWM11PRH7 : 1;
17630 } __PWM11PRHbits_t;
17632 extern __at(0x0DB6) volatile __PWM11PRHbits_t PWM11PRHbits;
17634 #define _PWM11PRH0 0x01
17635 #define _PWM11PRH1 0x02
17636 #define _PWM11PRH2 0x04
17637 #define _PWM11PRH3 0x08
17638 #define _PWM11PRH4 0x10
17639 #define _PWM11PRH5 0x20
17640 #define _PWM11PRH6 0x40
17641 #define _PWM11PRH7 0x80
17643 //==============================================================================
17645 extern __at(0x0DB7) __sfr PWM11OF;
17647 //==============================================================================
17648 // PWM11OFL Bits
17650 extern __at(0x0DB7) __sfr PWM11OFL;
17652 typedef struct
17654 unsigned PWM11OFL0 : 1;
17655 unsigned PWM11OFL1 : 1;
17656 unsigned PWM11OFL2 : 1;
17657 unsigned PWM11OFL3 : 1;
17658 unsigned PWM11OFL4 : 1;
17659 unsigned PWM11OFL5 : 1;
17660 unsigned PWM11OFL6 : 1;
17661 unsigned PWM11OFL7 : 1;
17662 } __PWM11OFLbits_t;
17664 extern __at(0x0DB7) volatile __PWM11OFLbits_t PWM11OFLbits;
17666 #define _PWM11OFL0 0x01
17667 #define _PWM11OFL1 0x02
17668 #define _PWM11OFL2 0x04
17669 #define _PWM11OFL3 0x08
17670 #define _PWM11OFL4 0x10
17671 #define _PWM11OFL5 0x20
17672 #define _PWM11OFL6 0x40
17673 #define _PWM11OFL7 0x80
17675 //==============================================================================
17678 //==============================================================================
17679 // PWM11OFH Bits
17681 extern __at(0x0DB8) __sfr PWM11OFH;
17683 typedef struct
17685 unsigned PWM11OFH0 : 1;
17686 unsigned PWM11OFH1 : 1;
17687 unsigned PWM11OFH2 : 1;
17688 unsigned PWM11OFH3 : 1;
17689 unsigned PWM11OFH4 : 1;
17690 unsigned PWM11OFH5 : 1;
17691 unsigned PWM11OFH6 : 1;
17692 unsigned PWM11OFH7 : 1;
17693 } __PWM11OFHbits_t;
17695 extern __at(0x0DB8) volatile __PWM11OFHbits_t PWM11OFHbits;
17697 #define _PWM11OFH0 0x01
17698 #define _PWM11OFH1 0x02
17699 #define _PWM11OFH2 0x04
17700 #define _PWM11OFH3 0x08
17701 #define _PWM11OFH4 0x10
17702 #define _PWM11OFH5 0x20
17703 #define _PWM11OFH6 0x40
17704 #define _PWM11OFH7 0x80
17706 //==============================================================================
17708 extern __at(0x0DB9) __sfr PWM11TMR;
17710 //==============================================================================
17711 // PWM11TMRL Bits
17713 extern __at(0x0DB9) __sfr PWM11TMRL;
17715 typedef struct
17717 unsigned PWM11TMRL0 : 1;
17718 unsigned PWM11TMRL1 : 1;
17719 unsigned PWM11TMRL2 : 1;
17720 unsigned PWM11TMRL3 : 1;
17721 unsigned PWM11TMRL4 : 1;
17722 unsigned PWM11TMRL5 : 1;
17723 unsigned PWM11TMRL6 : 1;
17724 unsigned PWM11TMRL7 : 1;
17725 } __PWM11TMRLbits_t;
17727 extern __at(0x0DB9) volatile __PWM11TMRLbits_t PWM11TMRLbits;
17729 #define _PWM11TMRL0 0x01
17730 #define _PWM11TMRL1 0x02
17731 #define _PWM11TMRL2 0x04
17732 #define _PWM11TMRL3 0x08
17733 #define _PWM11TMRL4 0x10
17734 #define _PWM11TMRL5 0x20
17735 #define _PWM11TMRL6 0x40
17736 #define _PWM11TMRL7 0x80
17738 //==============================================================================
17741 //==============================================================================
17742 // PWM11TMRH Bits
17744 extern __at(0x0DBA) __sfr PWM11TMRH;
17746 typedef struct
17748 unsigned PWM11TMRH0 : 1;
17749 unsigned PWM11TMRH1 : 1;
17750 unsigned PWM11TMRH2 : 1;
17751 unsigned PWM11TMRH3 : 1;
17752 unsigned PWM11TMRH4 : 1;
17753 unsigned PWM11TMRH5 : 1;
17754 unsigned PWM11TMRH6 : 1;
17755 unsigned PWM11TMRH7 : 1;
17756 } __PWM11TMRHbits_t;
17758 extern __at(0x0DBA) volatile __PWM11TMRHbits_t PWM11TMRHbits;
17760 #define _PWM11TMRH0 0x01
17761 #define _PWM11TMRH1 0x02
17762 #define _PWM11TMRH2 0x04
17763 #define _PWM11TMRH3 0x08
17764 #define _PWM11TMRH4 0x10
17765 #define _PWM11TMRH5 0x20
17766 #define _PWM11TMRH6 0x40
17767 #define _PWM11TMRH7 0x80
17769 //==============================================================================
17772 //==============================================================================
17773 // PWM11CON Bits
17775 extern __at(0x0DBB) __sfr PWM11CON;
17777 typedef union
17779 struct
17781 unsigned : 1;
17782 unsigned : 1;
17783 unsigned PWM11MODE0 : 1;
17784 unsigned PWM11MODE1 : 1;
17785 unsigned POL : 1;
17786 unsigned OUT : 1;
17787 unsigned : 1;
17788 unsigned EN : 1;
17791 struct
17793 unsigned : 1;
17794 unsigned : 1;
17795 unsigned MODE0 : 1;
17796 unsigned MODE1 : 1;
17797 unsigned PWM11POL : 1;
17798 unsigned PWM11OUT : 1;
17799 unsigned : 1;
17800 unsigned PWM11EN : 1;
17803 struct
17805 unsigned : 2;
17806 unsigned PWM11MODE : 2;
17807 unsigned : 4;
17810 struct
17812 unsigned : 2;
17813 unsigned MODE : 2;
17814 unsigned : 4;
17816 } __PWM11CONbits_t;
17818 extern __at(0x0DBB) volatile __PWM11CONbits_t PWM11CONbits;
17820 #define _PWM11CON_PWM11MODE0 0x04
17821 #define _PWM11CON_MODE0 0x04
17822 #define _PWM11CON_PWM11MODE1 0x08
17823 #define _PWM11CON_MODE1 0x08
17824 #define _PWM11CON_POL 0x10
17825 #define _PWM11CON_PWM11POL 0x10
17826 #define _PWM11CON_OUT 0x20
17827 #define _PWM11CON_PWM11OUT 0x20
17828 #define _PWM11CON_EN 0x80
17829 #define _PWM11CON_PWM11EN 0x80
17831 //==============================================================================
17834 //==============================================================================
17835 // PWM11INTCON Bits
17837 extern __at(0x0DBC) __sfr PWM11INTCON;
17839 typedef union
17841 struct
17843 unsigned PRIE : 1;
17844 unsigned DCIE : 1;
17845 unsigned PHIE : 1;
17846 unsigned OFIE : 1;
17847 unsigned : 1;
17848 unsigned : 1;
17849 unsigned : 1;
17850 unsigned : 1;
17853 struct
17855 unsigned PWM11PRIE : 1;
17856 unsigned PWM11DCIE : 1;
17857 unsigned PWM11PHIE : 1;
17858 unsigned PWM11OFIE : 1;
17859 unsigned : 1;
17860 unsigned : 1;
17861 unsigned : 1;
17862 unsigned : 1;
17864 } __PWM11INTCONbits_t;
17866 extern __at(0x0DBC) volatile __PWM11INTCONbits_t PWM11INTCONbits;
17868 #define _PWM11INTCON_PRIE 0x01
17869 #define _PWM11INTCON_PWM11PRIE 0x01
17870 #define _PWM11INTCON_DCIE 0x02
17871 #define _PWM11INTCON_PWM11DCIE 0x02
17872 #define _PWM11INTCON_PHIE 0x04
17873 #define _PWM11INTCON_PWM11PHIE 0x04
17874 #define _PWM11INTCON_OFIE 0x08
17875 #define _PWM11INTCON_PWM11OFIE 0x08
17877 //==============================================================================
17880 //==============================================================================
17881 // PWM11INTE Bits
17883 extern __at(0x0DBC) __sfr PWM11INTE;
17885 typedef union
17887 struct
17889 unsigned PRIE : 1;
17890 unsigned DCIE : 1;
17891 unsigned PHIE : 1;
17892 unsigned OFIE : 1;
17893 unsigned : 1;
17894 unsigned : 1;
17895 unsigned : 1;
17896 unsigned : 1;
17899 struct
17901 unsigned PWM11PRIE : 1;
17902 unsigned PWM11DCIE : 1;
17903 unsigned PWM11PHIE : 1;
17904 unsigned PWM11OFIE : 1;
17905 unsigned : 1;
17906 unsigned : 1;
17907 unsigned : 1;
17908 unsigned : 1;
17910 } __PWM11INTEbits_t;
17912 extern __at(0x0DBC) volatile __PWM11INTEbits_t PWM11INTEbits;
17914 #define _PWM11INTE_PRIE 0x01
17915 #define _PWM11INTE_PWM11PRIE 0x01
17916 #define _PWM11INTE_DCIE 0x02
17917 #define _PWM11INTE_PWM11DCIE 0x02
17918 #define _PWM11INTE_PHIE 0x04
17919 #define _PWM11INTE_PWM11PHIE 0x04
17920 #define _PWM11INTE_OFIE 0x08
17921 #define _PWM11INTE_PWM11OFIE 0x08
17923 //==============================================================================
17926 //==============================================================================
17927 // PWM11INTF Bits
17929 extern __at(0x0DBD) __sfr PWM11INTF;
17931 typedef union
17933 struct
17935 unsigned PRIF : 1;
17936 unsigned DCIF : 1;
17937 unsigned PHIF : 1;
17938 unsigned OFIF : 1;
17939 unsigned : 1;
17940 unsigned : 1;
17941 unsigned : 1;
17942 unsigned : 1;
17945 struct
17947 unsigned PWM11PRIF : 1;
17948 unsigned PWM11DCIF : 1;
17949 unsigned PWM11PHIF : 1;
17950 unsigned PWM11OFIF : 1;
17951 unsigned : 1;
17952 unsigned : 1;
17953 unsigned : 1;
17954 unsigned : 1;
17956 } __PWM11INTFbits_t;
17958 extern __at(0x0DBD) volatile __PWM11INTFbits_t PWM11INTFbits;
17960 #define _PWM11INTF_PRIF 0x01
17961 #define _PWM11INTF_PWM11PRIF 0x01
17962 #define _PWM11INTF_DCIF 0x02
17963 #define _PWM11INTF_PWM11DCIF 0x02
17964 #define _PWM11INTF_PHIF 0x04
17965 #define _PWM11INTF_PWM11PHIF 0x04
17966 #define _PWM11INTF_OFIF 0x08
17967 #define _PWM11INTF_PWM11OFIF 0x08
17969 //==============================================================================
17972 //==============================================================================
17973 // PWM11INTFLG Bits
17975 extern __at(0x0DBD) __sfr PWM11INTFLG;
17977 typedef union
17979 struct
17981 unsigned PRIF : 1;
17982 unsigned DCIF : 1;
17983 unsigned PHIF : 1;
17984 unsigned OFIF : 1;
17985 unsigned : 1;
17986 unsigned : 1;
17987 unsigned : 1;
17988 unsigned : 1;
17991 struct
17993 unsigned PWM11PRIF : 1;
17994 unsigned PWM11DCIF : 1;
17995 unsigned PWM11PHIF : 1;
17996 unsigned PWM11OFIF : 1;
17997 unsigned : 1;
17998 unsigned : 1;
17999 unsigned : 1;
18000 unsigned : 1;
18002 } __PWM11INTFLGbits_t;
18004 extern __at(0x0DBD) volatile __PWM11INTFLGbits_t PWM11INTFLGbits;
18006 #define _PWM11INTFLG_PRIF 0x01
18007 #define _PWM11INTFLG_PWM11PRIF 0x01
18008 #define _PWM11INTFLG_DCIF 0x02
18009 #define _PWM11INTFLG_PWM11DCIF 0x02
18010 #define _PWM11INTFLG_PHIF 0x04
18011 #define _PWM11INTFLG_PWM11PHIF 0x04
18012 #define _PWM11INTFLG_OFIF 0x08
18013 #define _PWM11INTFLG_PWM11OFIF 0x08
18015 //==============================================================================
18018 //==============================================================================
18019 // PWM11CLKCON Bits
18021 extern __at(0x0DBE) __sfr PWM11CLKCON;
18023 typedef union
18025 struct
18027 unsigned PWM11CS0 : 1;
18028 unsigned PWM11CS1 : 1;
18029 unsigned PWM11CS2 : 1;
18030 unsigned : 1;
18031 unsigned PWM11PS0 : 1;
18032 unsigned PWM11PS1 : 1;
18033 unsigned PWM11PS2 : 1;
18034 unsigned : 1;
18037 struct
18039 unsigned CS0 : 1;
18040 unsigned CS1 : 1;
18041 unsigned CS2 : 1;
18042 unsigned : 1;
18043 unsigned PS0 : 1;
18044 unsigned PS1 : 1;
18045 unsigned PS2 : 1;
18046 unsigned : 1;
18049 struct
18051 unsigned PWM11CS : 3;
18052 unsigned : 5;
18055 struct
18057 unsigned CS : 3;
18058 unsigned : 5;
18061 struct
18063 unsigned : 4;
18064 unsigned PWM11PS : 3;
18065 unsigned : 1;
18068 struct
18070 unsigned : 4;
18071 unsigned PS : 3;
18072 unsigned : 1;
18074 } __PWM11CLKCONbits_t;
18076 extern __at(0x0DBE) volatile __PWM11CLKCONbits_t PWM11CLKCONbits;
18078 #define _PWM11CLKCON_PWM11CS0 0x01
18079 #define _PWM11CLKCON_CS0 0x01
18080 #define _PWM11CLKCON_PWM11CS1 0x02
18081 #define _PWM11CLKCON_CS1 0x02
18082 #define _PWM11CLKCON_PWM11CS2 0x04
18083 #define _PWM11CLKCON_CS2 0x04
18084 #define _PWM11CLKCON_PWM11PS0 0x10
18085 #define _PWM11CLKCON_PS0 0x10
18086 #define _PWM11CLKCON_PWM11PS1 0x20
18087 #define _PWM11CLKCON_PS1 0x20
18088 #define _PWM11CLKCON_PWM11PS2 0x40
18089 #define _PWM11CLKCON_PS2 0x40
18091 //==============================================================================
18094 //==============================================================================
18095 // PWM11LDCON Bits
18097 extern __at(0x0DBF) __sfr PWM11LDCON;
18099 typedef union
18101 struct
18103 unsigned PWM11LDS0 : 1;
18104 unsigned PWM11LDS1 : 1;
18105 unsigned : 1;
18106 unsigned : 1;
18107 unsigned : 1;
18108 unsigned : 1;
18109 unsigned LDT : 1;
18110 unsigned LDA : 1;
18113 struct
18115 unsigned LDS0 : 1;
18116 unsigned LDS1 : 1;
18117 unsigned : 1;
18118 unsigned : 1;
18119 unsigned : 1;
18120 unsigned : 1;
18121 unsigned PWM11LDM : 1;
18122 unsigned PWM11LD : 1;
18125 struct
18127 unsigned LDS : 2;
18128 unsigned : 6;
18131 struct
18133 unsigned PWM11LDS : 2;
18134 unsigned : 6;
18136 } __PWM11LDCONbits_t;
18138 extern __at(0x0DBF) volatile __PWM11LDCONbits_t PWM11LDCONbits;
18140 #define _PWM11LDCON_PWM11LDS0 0x01
18141 #define _PWM11LDCON_LDS0 0x01
18142 #define _PWM11LDCON_PWM11LDS1 0x02
18143 #define _PWM11LDCON_LDS1 0x02
18144 #define _PWM11LDCON_LDT 0x40
18145 #define _PWM11LDCON_PWM11LDM 0x40
18146 #define _PWM11LDCON_LDA 0x80
18147 #define _PWM11LDCON_PWM11LD 0x80
18149 //==============================================================================
18152 //==============================================================================
18153 // PWM11OFCON Bits
18155 extern __at(0x0DC0) __sfr PWM11OFCON;
18157 typedef union
18159 struct
18161 unsigned PWM11OFS0 : 1;
18162 unsigned PWM11OFS1 : 1;
18163 unsigned : 1;
18164 unsigned : 1;
18165 unsigned OFO : 1;
18166 unsigned PWM11OFM0 : 1;
18167 unsigned PWM11OFM1 : 1;
18168 unsigned : 1;
18171 struct
18173 unsigned OFS0 : 1;
18174 unsigned OFS1 : 1;
18175 unsigned : 1;
18176 unsigned : 1;
18177 unsigned PWM11OFMC : 1;
18178 unsigned OFM0 : 1;
18179 unsigned OFM1 : 1;
18180 unsigned : 1;
18183 struct
18185 unsigned OFS : 2;
18186 unsigned : 6;
18189 struct
18191 unsigned PWM11OFS : 2;
18192 unsigned : 6;
18195 struct
18197 unsigned : 5;
18198 unsigned OFM : 2;
18199 unsigned : 1;
18202 struct
18204 unsigned : 5;
18205 unsigned PWM11OFM : 2;
18206 unsigned : 1;
18208 } __PWM11OFCONbits_t;
18210 extern __at(0x0DC0) volatile __PWM11OFCONbits_t PWM11OFCONbits;
18212 #define _PWM11OFCON_PWM11OFS0 0x01
18213 #define _PWM11OFCON_OFS0 0x01
18214 #define _PWM11OFCON_PWM11OFS1 0x02
18215 #define _PWM11OFCON_OFS1 0x02
18216 #define _PWM11OFCON_OFO 0x10
18217 #define _PWM11OFCON_PWM11OFMC 0x10
18218 #define _PWM11OFCON_PWM11OFM0 0x20
18219 #define _PWM11OFCON_OFM0 0x20
18220 #define _PWM11OFCON_PWM11OFM1 0x40
18221 #define _PWM11OFCON_OFM1 0x40
18223 //==============================================================================
18226 //==============================================================================
18227 // PPSLOCK Bits
18229 extern __at(0x0E0C) __sfr PPSLOCK;
18231 typedef struct
18233 unsigned PPSLOCKED : 1;
18234 unsigned : 1;
18235 unsigned : 1;
18236 unsigned : 1;
18237 unsigned : 1;
18238 unsigned : 1;
18239 unsigned : 1;
18240 unsigned : 1;
18241 } __PPSLOCKbits_t;
18243 extern __at(0x0E0C) volatile __PPSLOCKbits_t PPSLOCKbits;
18245 #define _PPSLOCKED 0x01
18247 //==============================================================================
18249 extern __at(0x0E0D) __sfr INTPPS;
18250 extern __at(0x0E0E) __sfr T0CKIPPS;
18251 extern __at(0x0E0F) __sfr T1CKIPPS;
18252 extern __at(0x0E10) __sfr T1GPPS;
18253 extern __at(0x0E11) __sfr T3CKIPPS;
18254 extern __at(0x0E12) __sfr T3GPPS;
18255 extern __at(0x0E13) __sfr T5CKIPPS;
18256 extern __at(0x0E14) __sfr T5GPPS;
18257 extern __at(0x0E15) __sfr T2CKIPPS;
18258 extern __at(0x0E16) __sfr T4CKIPPS;
18259 extern __at(0x0E17) __sfr T6CKIPPS;
18260 extern __at(0x0E18) __sfr T8CKIPPS;
18261 extern __at(0x0E19) __sfr CCP1PPS;
18262 extern __at(0x0E1A) __sfr CCP2PPS;
18263 extern __at(0x0E1B) __sfr CCP7PPS;
18264 extern __at(0x0E1D) __sfr COG1INPPS;
18265 extern __at(0x0E1E) __sfr COG2INPPS;
18266 extern __at(0x0E1F) __sfr COG3INPPS;
18267 extern __at(0x0E21) __sfr MD1CLPPS;
18268 extern __at(0x0E22) __sfr MD1CHPPS;
18269 extern __at(0x0E23) __sfr MD1MODPPS;
18270 extern __at(0x0E24) __sfr MD2CLPPS;
18271 extern __at(0x0E25) __sfr MD2CHPPS;
18272 extern __at(0x0E26) __sfr MD2MODPPS;
18273 extern __at(0x0E27) __sfr MD3CLPPS;
18274 extern __at(0x0E28) __sfr MD3CHPPS;
18275 extern __at(0x0E29) __sfr MD3MODPPS;
18276 extern __at(0x0E2D) __sfr PRG1RPPS;
18277 extern __at(0x0E2E) __sfr PRG1FPPS;
18278 extern __at(0x0E2F) __sfr PRG2RPPS;
18279 extern __at(0x0E30) __sfr PRG2FPPS;
18280 extern __at(0x0E31) __sfr PRG3RPPS;
18281 extern __at(0x0E32) __sfr PRG3FPPS;
18282 extern __at(0x0E35) __sfr CLCIN0PPS;
18283 extern __at(0x0E36) __sfr CLCIN1PPS;
18284 extern __at(0x0E37) __sfr CLCIN2PPS;
18285 extern __at(0x0E38) __sfr CLCIN3PPS;
18286 extern __at(0x0E39) __sfr ADCACTPPS;
18287 extern __at(0x0E3A) __sfr SSPCLKPPS;
18288 extern __at(0x0E3B) __sfr SSPDATPPS;
18289 extern __at(0x0E3C) __sfr SSPSSPPS;
18290 extern __at(0x0E3D) __sfr RXPPS;
18291 extern __at(0x0E3E) __sfr CKPPS;
18292 extern __at(0x0E90) __sfr RA0PPS;
18293 extern __at(0x0E91) __sfr RA1PPS;
18294 extern __at(0x0E92) __sfr RA2PPS;
18295 extern __at(0x0E93) __sfr RA3PPS;
18296 extern __at(0x0E94) __sfr RA4PPS;
18297 extern __at(0x0E95) __sfr RA5PPS;
18298 extern __at(0x0E96) __sfr RA6PPS;
18299 extern __at(0x0E97) __sfr RA7PPS;
18300 extern __at(0x0E98) __sfr RB0PPS;
18301 extern __at(0x0E99) __sfr RB1PPS;
18302 extern __at(0x0E9A) __sfr RB2PPS;
18303 extern __at(0x0E9B) __sfr RB3PPS;
18304 extern __at(0x0E9C) __sfr RB4PPS;
18305 extern __at(0x0E9D) __sfr RB5PPS;
18306 extern __at(0x0E9E) __sfr RB6PPS;
18307 extern __at(0x0E9F) __sfr RB7PPS;
18308 extern __at(0x0EA0) __sfr RC0PPS;
18309 extern __at(0x0EA1) __sfr RC1PPS;
18310 extern __at(0x0EA2) __sfr RC2PPS;
18311 extern __at(0x0EA3) __sfr RC3PPS;
18312 extern __at(0x0EA4) __sfr RC4PPS;
18313 extern __at(0x0EA5) __sfr RC5PPS;
18314 extern __at(0x0EA6) __sfr RC6PPS;
18315 extern __at(0x0EA7) __sfr RC7PPS;
18317 //==============================================================================
18318 // CLCDATA Bits
18320 extern __at(0x0F0F) __sfr CLCDATA;
18322 typedef struct
18324 unsigned MCLC1OUT : 1;
18325 unsigned MCLC2OUT : 1;
18326 unsigned MCLC3OUT : 1;
18327 unsigned MLC4OUT : 1;
18328 unsigned : 1;
18329 unsigned : 1;
18330 unsigned : 1;
18331 unsigned : 1;
18332 } __CLCDATAbits_t;
18334 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
18336 #define _MCLC1OUT 0x01
18337 #define _MCLC2OUT 0x02
18338 #define _MCLC3OUT 0x04
18339 #define _MLC4OUT 0x08
18341 //==============================================================================
18344 //==============================================================================
18345 // CLC1CON Bits
18347 extern __at(0x0F10) __sfr CLC1CON;
18349 typedef union
18351 struct
18353 unsigned LC1MODE0 : 1;
18354 unsigned LC1MODE1 : 1;
18355 unsigned LC1MODE2 : 1;
18356 unsigned LC1INTN : 1;
18357 unsigned LC1INTP : 1;
18358 unsigned LC1OUT : 1;
18359 unsigned : 1;
18360 unsigned LC1EN : 1;
18363 struct
18365 unsigned MODE0 : 1;
18366 unsigned MODE1 : 1;
18367 unsigned MODE2 : 1;
18368 unsigned INTN : 1;
18369 unsigned INTP : 1;
18370 unsigned OUT : 1;
18371 unsigned : 1;
18372 unsigned EN : 1;
18375 struct
18377 unsigned LC1MODE : 3;
18378 unsigned : 5;
18381 struct
18383 unsigned MODE : 3;
18384 unsigned : 5;
18386 } __CLC1CONbits_t;
18388 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
18390 #define _CLC1CON_LC1MODE0 0x01
18391 #define _CLC1CON_MODE0 0x01
18392 #define _CLC1CON_LC1MODE1 0x02
18393 #define _CLC1CON_MODE1 0x02
18394 #define _CLC1CON_LC1MODE2 0x04
18395 #define _CLC1CON_MODE2 0x04
18396 #define _CLC1CON_LC1INTN 0x08
18397 #define _CLC1CON_INTN 0x08
18398 #define _CLC1CON_LC1INTP 0x10
18399 #define _CLC1CON_INTP 0x10
18400 #define _CLC1CON_LC1OUT 0x20
18401 #define _CLC1CON_OUT 0x20
18402 #define _CLC1CON_LC1EN 0x80
18403 #define _CLC1CON_EN 0x80
18405 //==============================================================================
18408 //==============================================================================
18409 // CLC1POL Bits
18411 extern __at(0x0F11) __sfr CLC1POL;
18413 typedef union
18415 struct
18417 unsigned LC1G1POL : 1;
18418 unsigned LC1G2POL : 1;
18419 unsigned LC1G3POL : 1;
18420 unsigned LC1G4POL : 1;
18421 unsigned : 1;
18422 unsigned : 1;
18423 unsigned : 1;
18424 unsigned LC1POL : 1;
18427 struct
18429 unsigned G1POL : 1;
18430 unsigned G2POL : 1;
18431 unsigned G3POL : 1;
18432 unsigned G4POL : 1;
18433 unsigned : 1;
18434 unsigned : 1;
18435 unsigned : 1;
18436 unsigned POL : 1;
18438 } __CLC1POLbits_t;
18440 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
18442 #define _LC1G1POL 0x01
18443 #define _G1POL 0x01
18444 #define _LC1G2POL 0x02
18445 #define _G2POL 0x02
18446 #define _LC1G3POL 0x04
18447 #define _G3POL 0x04
18448 #define _LC1G4POL 0x08
18449 #define _G4POL 0x08
18450 #define _LC1POL 0x80
18451 #define _POL 0x80
18453 //==============================================================================
18456 //==============================================================================
18457 // CLC1SEL0 Bits
18459 extern __at(0x0F12) __sfr CLC1SEL0;
18461 typedef union
18463 struct
18465 unsigned LC1D1S0 : 1;
18466 unsigned LC1D1S1 : 1;
18467 unsigned LC1D1S2 : 1;
18468 unsigned LC1D1S3 : 1;
18469 unsigned LC1D1S4 : 1;
18470 unsigned LC1D1S5 : 1;
18471 unsigned : 1;
18472 unsigned : 1;
18475 struct
18477 unsigned D1S0 : 1;
18478 unsigned D1S1 : 1;
18479 unsigned D1S2 : 1;
18480 unsigned D1S3 : 1;
18481 unsigned D1S4 : 1;
18482 unsigned D1S5 : 1;
18483 unsigned : 1;
18484 unsigned : 1;
18487 struct
18489 unsigned LC1D1S : 6;
18490 unsigned : 2;
18493 struct
18495 unsigned D1S : 6;
18496 unsigned : 2;
18498 } __CLC1SEL0bits_t;
18500 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
18502 #define _LC1D1S0 0x01
18503 #define _D1S0 0x01
18504 #define _LC1D1S1 0x02
18505 #define _D1S1 0x02
18506 #define _LC1D1S2 0x04
18507 #define _D1S2 0x04
18508 #define _LC1D1S3 0x08
18509 #define _D1S3 0x08
18510 #define _LC1D1S4 0x10
18511 #define _D1S4 0x10
18512 #define _LC1D1S5 0x20
18513 #define _D1S5 0x20
18515 //==============================================================================
18518 //==============================================================================
18519 // CLC1SEL1 Bits
18521 extern __at(0x0F13) __sfr CLC1SEL1;
18523 typedef union
18525 struct
18527 unsigned LC1D2S0 : 1;
18528 unsigned LC1D2S1 : 1;
18529 unsigned LC1D2S2 : 1;
18530 unsigned LC1D2S3 : 1;
18531 unsigned LC1D2S4 : 1;
18532 unsigned LC1D2S5 : 1;
18533 unsigned : 1;
18534 unsigned : 1;
18537 struct
18539 unsigned D2S0 : 1;
18540 unsigned D2S1 : 1;
18541 unsigned D2S2 : 1;
18542 unsigned D2S3 : 1;
18543 unsigned D2S4 : 1;
18544 unsigned D2S5 : 1;
18545 unsigned : 1;
18546 unsigned : 1;
18549 struct
18551 unsigned D2S : 6;
18552 unsigned : 2;
18555 struct
18557 unsigned LC1D2S : 6;
18558 unsigned : 2;
18560 } __CLC1SEL1bits_t;
18562 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
18564 #define _LC1D2S0 0x01
18565 #define _D2S0 0x01
18566 #define _LC1D2S1 0x02
18567 #define _D2S1 0x02
18568 #define _LC1D2S2 0x04
18569 #define _D2S2 0x04
18570 #define _LC1D2S3 0x08
18571 #define _D2S3 0x08
18572 #define _LC1D2S4 0x10
18573 #define _D2S4 0x10
18574 #define _LC1D2S5 0x20
18575 #define _D2S5 0x20
18577 //==============================================================================
18580 //==============================================================================
18581 // CLC1SEL2 Bits
18583 extern __at(0x0F14) __sfr CLC1SEL2;
18585 typedef union
18587 struct
18589 unsigned LC1D3S0 : 1;
18590 unsigned LC1D3S1 : 1;
18591 unsigned LC1D3S2 : 1;
18592 unsigned LC1D3S3 : 1;
18593 unsigned LC1D3S4 : 1;
18594 unsigned LC1D3S5 : 1;
18595 unsigned : 1;
18596 unsigned : 1;
18599 struct
18601 unsigned D3S0 : 1;
18602 unsigned D3S1 : 1;
18603 unsigned D3S2 : 1;
18604 unsigned D3S3 : 1;
18605 unsigned D3S4 : 1;
18606 unsigned D3S5 : 1;
18607 unsigned : 1;
18608 unsigned : 1;
18611 struct
18613 unsigned LC1D3S : 6;
18614 unsigned : 2;
18617 struct
18619 unsigned D3S : 6;
18620 unsigned : 2;
18622 } __CLC1SEL2bits_t;
18624 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
18626 #define _LC1D3S0 0x01
18627 #define _D3S0 0x01
18628 #define _LC1D3S1 0x02
18629 #define _D3S1 0x02
18630 #define _LC1D3S2 0x04
18631 #define _D3S2 0x04
18632 #define _LC1D3S3 0x08
18633 #define _D3S3 0x08
18634 #define _LC1D3S4 0x10
18635 #define _D3S4 0x10
18636 #define _LC1D3S5 0x20
18637 #define _D3S5 0x20
18639 //==============================================================================
18642 //==============================================================================
18643 // CLC1SEL3 Bits
18645 extern __at(0x0F15) __sfr CLC1SEL3;
18647 typedef union
18649 struct
18651 unsigned LC1D4S0 : 1;
18652 unsigned LC1D4S1 : 1;
18653 unsigned LC1D4S2 : 1;
18654 unsigned LC1D4S3 : 1;
18655 unsigned LC1D4S4 : 1;
18656 unsigned LC1D4S5 : 1;
18657 unsigned : 1;
18658 unsigned : 1;
18661 struct
18663 unsigned D4S0 : 1;
18664 unsigned D4S1 : 1;
18665 unsigned D4S2 : 1;
18666 unsigned D4S3 : 1;
18667 unsigned D4S4 : 1;
18668 unsigned D4S5 : 1;
18669 unsigned : 1;
18670 unsigned : 1;
18673 struct
18675 unsigned D4S : 6;
18676 unsigned : 2;
18679 struct
18681 unsigned LC1D4S : 6;
18682 unsigned : 2;
18684 } __CLC1SEL3bits_t;
18686 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
18688 #define _LC1D4S0 0x01
18689 #define _D4S0 0x01
18690 #define _LC1D4S1 0x02
18691 #define _D4S1 0x02
18692 #define _LC1D4S2 0x04
18693 #define _D4S2 0x04
18694 #define _LC1D4S3 0x08
18695 #define _D4S3 0x08
18696 #define _LC1D4S4 0x10
18697 #define _D4S4 0x10
18698 #define _LC1D4S5 0x20
18699 #define _D4S5 0x20
18701 //==============================================================================
18704 //==============================================================================
18705 // CLC1GLS0 Bits
18707 extern __at(0x0F16) __sfr CLC1GLS0;
18709 typedef union
18711 struct
18713 unsigned LC1G1D1N : 1;
18714 unsigned LC1G1D1T : 1;
18715 unsigned LC1G1D2N : 1;
18716 unsigned LC1G1D2T : 1;
18717 unsigned LC1G1D3N : 1;
18718 unsigned LC1G1D3T : 1;
18719 unsigned LC1G1D4N : 1;
18720 unsigned LC1G1D4T : 1;
18723 struct
18725 unsigned D1N : 1;
18726 unsigned D1T : 1;
18727 unsigned D2N : 1;
18728 unsigned D2T : 1;
18729 unsigned D3N : 1;
18730 unsigned D3T : 1;
18731 unsigned D4N : 1;
18732 unsigned D4T : 1;
18734 } __CLC1GLS0bits_t;
18736 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
18738 #define _LC1G1D1N 0x01
18739 #define _D1N 0x01
18740 #define _LC1G1D1T 0x02
18741 #define _D1T 0x02
18742 #define _LC1G1D2N 0x04
18743 #define _D2N 0x04
18744 #define _LC1G1D2T 0x08
18745 #define _D2T 0x08
18746 #define _LC1G1D3N 0x10
18747 #define _D3N 0x10
18748 #define _LC1G1D3T 0x20
18749 #define _D3T 0x20
18750 #define _LC1G1D4N 0x40
18751 #define _D4N 0x40
18752 #define _LC1G1D4T 0x80
18753 #define _D4T 0x80
18755 //==============================================================================
18758 //==============================================================================
18759 // CLC1GLS1 Bits
18761 extern __at(0x0F17) __sfr CLC1GLS1;
18763 typedef union
18765 struct
18767 unsigned LC1G2D1N : 1;
18768 unsigned LC1G2D1T : 1;
18769 unsigned LC1G2D2N : 1;
18770 unsigned LC1G2D2T : 1;
18771 unsigned LC1G2D3N : 1;
18772 unsigned LC1G2D3T : 1;
18773 unsigned LC1G2D4N : 1;
18774 unsigned LC1G2D4T : 1;
18777 struct
18779 unsigned D1N : 1;
18780 unsigned D1T : 1;
18781 unsigned D2N : 1;
18782 unsigned D2T : 1;
18783 unsigned D3N : 1;
18784 unsigned D3T : 1;
18785 unsigned D4N : 1;
18786 unsigned D4T : 1;
18788 } __CLC1GLS1bits_t;
18790 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
18792 #define _CLC1GLS1_LC1G2D1N 0x01
18793 #define _CLC1GLS1_D1N 0x01
18794 #define _CLC1GLS1_LC1G2D1T 0x02
18795 #define _CLC1GLS1_D1T 0x02
18796 #define _CLC1GLS1_LC1G2D2N 0x04
18797 #define _CLC1GLS1_D2N 0x04
18798 #define _CLC1GLS1_LC1G2D2T 0x08
18799 #define _CLC1GLS1_D2T 0x08
18800 #define _CLC1GLS1_LC1G2D3N 0x10
18801 #define _CLC1GLS1_D3N 0x10
18802 #define _CLC1GLS1_LC1G2D3T 0x20
18803 #define _CLC1GLS1_D3T 0x20
18804 #define _CLC1GLS1_LC1G2D4N 0x40
18805 #define _CLC1GLS1_D4N 0x40
18806 #define _CLC1GLS1_LC1G2D4T 0x80
18807 #define _CLC1GLS1_D4T 0x80
18809 //==============================================================================
18812 //==============================================================================
18813 // CLC1GLS2 Bits
18815 extern __at(0x0F18) __sfr CLC1GLS2;
18817 typedef union
18819 struct
18821 unsigned LC1G3D1N : 1;
18822 unsigned LC1G3D1T : 1;
18823 unsigned LC1G3D2N : 1;
18824 unsigned LC1G3D2T : 1;
18825 unsigned LC1G3D3N : 1;
18826 unsigned LC1G3D3T : 1;
18827 unsigned LC1G3D4N : 1;
18828 unsigned LC1G3D4T : 1;
18831 struct
18833 unsigned D1N : 1;
18834 unsigned D1T : 1;
18835 unsigned D2N : 1;
18836 unsigned D2T : 1;
18837 unsigned D3N : 1;
18838 unsigned D3T : 1;
18839 unsigned D4N : 1;
18840 unsigned D4T : 1;
18842 } __CLC1GLS2bits_t;
18844 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
18846 #define _CLC1GLS2_LC1G3D1N 0x01
18847 #define _CLC1GLS2_D1N 0x01
18848 #define _CLC1GLS2_LC1G3D1T 0x02
18849 #define _CLC1GLS2_D1T 0x02
18850 #define _CLC1GLS2_LC1G3D2N 0x04
18851 #define _CLC1GLS2_D2N 0x04
18852 #define _CLC1GLS2_LC1G3D2T 0x08
18853 #define _CLC1GLS2_D2T 0x08
18854 #define _CLC1GLS2_LC1G3D3N 0x10
18855 #define _CLC1GLS2_D3N 0x10
18856 #define _CLC1GLS2_LC1G3D3T 0x20
18857 #define _CLC1GLS2_D3T 0x20
18858 #define _CLC1GLS2_LC1G3D4N 0x40
18859 #define _CLC1GLS2_D4N 0x40
18860 #define _CLC1GLS2_LC1G3D4T 0x80
18861 #define _CLC1GLS2_D4T 0x80
18863 //==============================================================================
18866 //==============================================================================
18867 // CLC1GLS3 Bits
18869 extern __at(0x0F19) __sfr CLC1GLS3;
18871 typedef union
18873 struct
18875 unsigned LC1G4D1N : 1;
18876 unsigned LC1G4D1T : 1;
18877 unsigned LC1G4D2N : 1;
18878 unsigned LC1G4D2T : 1;
18879 unsigned LC1G4D3N : 1;
18880 unsigned LC1G4D3T : 1;
18881 unsigned LC1G4D4N : 1;
18882 unsigned LC1G4D4T : 1;
18885 struct
18887 unsigned G4D1N : 1;
18888 unsigned G4D1T : 1;
18889 unsigned G4D2N : 1;
18890 unsigned G4D2T : 1;
18891 unsigned G4D3N : 1;
18892 unsigned G4D3T : 1;
18893 unsigned G4D4N : 1;
18894 unsigned G4D4T : 1;
18896 } __CLC1GLS3bits_t;
18898 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
18900 #define _LC1G4D1N 0x01
18901 #define _G4D1N 0x01
18902 #define _LC1G4D1T 0x02
18903 #define _G4D1T 0x02
18904 #define _LC1G4D2N 0x04
18905 #define _G4D2N 0x04
18906 #define _LC1G4D2T 0x08
18907 #define _G4D2T 0x08
18908 #define _LC1G4D3N 0x10
18909 #define _G4D3N 0x10
18910 #define _LC1G4D3T 0x20
18911 #define _G4D3T 0x20
18912 #define _LC1G4D4N 0x40
18913 #define _G4D4N 0x40
18914 #define _LC1G4D4T 0x80
18915 #define _G4D4T 0x80
18917 //==============================================================================
18920 //==============================================================================
18921 // CLC2CON Bits
18923 extern __at(0x0F1A) __sfr CLC2CON;
18925 typedef union
18927 struct
18929 unsigned LC2MODE0 : 1;
18930 unsigned LC2MODE1 : 1;
18931 unsigned LC2MODE2 : 1;
18932 unsigned LC2INTN : 1;
18933 unsigned LC2INTP : 1;
18934 unsigned LC2OUT : 1;
18935 unsigned : 1;
18936 unsigned LC2EN : 1;
18939 struct
18941 unsigned MODE0 : 1;
18942 unsigned MODE1 : 1;
18943 unsigned MODE2 : 1;
18944 unsigned INTN : 1;
18945 unsigned INTP : 1;
18946 unsigned OUT : 1;
18947 unsigned : 1;
18948 unsigned EN : 1;
18951 struct
18953 unsigned LC2MODE : 3;
18954 unsigned : 5;
18957 struct
18959 unsigned MODE : 3;
18960 unsigned : 5;
18962 } __CLC2CONbits_t;
18964 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
18966 #define _CLC2CON_LC2MODE0 0x01
18967 #define _CLC2CON_MODE0 0x01
18968 #define _CLC2CON_LC2MODE1 0x02
18969 #define _CLC2CON_MODE1 0x02
18970 #define _CLC2CON_LC2MODE2 0x04
18971 #define _CLC2CON_MODE2 0x04
18972 #define _CLC2CON_LC2INTN 0x08
18973 #define _CLC2CON_INTN 0x08
18974 #define _CLC2CON_LC2INTP 0x10
18975 #define _CLC2CON_INTP 0x10
18976 #define _CLC2CON_LC2OUT 0x20
18977 #define _CLC2CON_OUT 0x20
18978 #define _CLC2CON_LC2EN 0x80
18979 #define _CLC2CON_EN 0x80
18981 //==============================================================================
18984 //==============================================================================
18985 // CLC2POL Bits
18987 extern __at(0x0F1B) __sfr CLC2POL;
18989 typedef union
18991 struct
18993 unsigned LC2G1POL : 1;
18994 unsigned LC2G2POL : 1;
18995 unsigned LC2G3POL : 1;
18996 unsigned LC2G4POL : 1;
18997 unsigned : 1;
18998 unsigned : 1;
18999 unsigned : 1;
19000 unsigned LC2POL : 1;
19003 struct
19005 unsigned G1POL : 1;
19006 unsigned G2POL : 1;
19007 unsigned G3POL : 1;
19008 unsigned G4POL : 1;
19009 unsigned : 1;
19010 unsigned : 1;
19011 unsigned : 1;
19012 unsigned POL : 1;
19014 } __CLC2POLbits_t;
19016 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
19018 #define _CLC2POL_LC2G1POL 0x01
19019 #define _CLC2POL_G1POL 0x01
19020 #define _CLC2POL_LC2G2POL 0x02
19021 #define _CLC2POL_G2POL 0x02
19022 #define _CLC2POL_LC2G3POL 0x04
19023 #define _CLC2POL_G3POL 0x04
19024 #define _CLC2POL_LC2G4POL 0x08
19025 #define _CLC2POL_G4POL 0x08
19026 #define _CLC2POL_LC2POL 0x80
19027 #define _CLC2POL_POL 0x80
19029 //==============================================================================
19032 //==============================================================================
19033 // CLC2SEL0 Bits
19035 extern __at(0x0F1C) __sfr CLC2SEL0;
19037 typedef union
19039 struct
19041 unsigned LC2D1S0 : 1;
19042 unsigned LC2D1S1 : 1;
19043 unsigned LC2D1S2 : 1;
19044 unsigned LC2D1S3 : 1;
19045 unsigned LC2D1S4 : 1;
19046 unsigned LC2D1S5 : 1;
19047 unsigned : 1;
19048 unsigned : 1;
19051 struct
19053 unsigned D1S0 : 1;
19054 unsigned D1S1 : 1;
19055 unsigned D1S2 : 1;
19056 unsigned D1S3 : 1;
19057 unsigned D1S4 : 1;
19058 unsigned D1S5 : 1;
19059 unsigned : 1;
19060 unsigned : 1;
19063 struct
19065 unsigned LC2D1S : 6;
19066 unsigned : 2;
19069 struct
19071 unsigned D1S : 6;
19072 unsigned : 2;
19074 } __CLC2SEL0bits_t;
19076 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
19078 #define _CLC2SEL0_LC2D1S0 0x01
19079 #define _CLC2SEL0_D1S0 0x01
19080 #define _CLC2SEL0_LC2D1S1 0x02
19081 #define _CLC2SEL0_D1S1 0x02
19082 #define _CLC2SEL0_LC2D1S2 0x04
19083 #define _CLC2SEL0_D1S2 0x04
19084 #define _CLC2SEL0_LC2D1S3 0x08
19085 #define _CLC2SEL0_D1S3 0x08
19086 #define _CLC2SEL0_LC2D1S4 0x10
19087 #define _CLC2SEL0_D1S4 0x10
19088 #define _CLC2SEL0_LC2D1S5 0x20
19089 #define _CLC2SEL0_D1S5 0x20
19091 //==============================================================================
19094 //==============================================================================
19095 // CLC2SEL1 Bits
19097 extern __at(0x0F1D) __sfr CLC2SEL1;
19099 typedef union
19101 struct
19103 unsigned LC2D2S0 : 1;
19104 unsigned LC2D2S1 : 1;
19105 unsigned LC2D2S2 : 1;
19106 unsigned LC2D2S3 : 1;
19107 unsigned LC2D2S4 : 1;
19108 unsigned LC2D2S5 : 1;
19109 unsigned : 1;
19110 unsigned : 1;
19113 struct
19115 unsigned D2S0 : 1;
19116 unsigned D2S1 : 1;
19117 unsigned D2S2 : 1;
19118 unsigned D2S3 : 1;
19119 unsigned D2S4 : 1;
19120 unsigned D2S5 : 1;
19121 unsigned : 1;
19122 unsigned : 1;
19125 struct
19127 unsigned LC2D2S : 6;
19128 unsigned : 2;
19131 struct
19133 unsigned D2S : 6;
19134 unsigned : 2;
19136 } __CLC2SEL1bits_t;
19138 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
19140 #define _CLC2SEL1_LC2D2S0 0x01
19141 #define _CLC2SEL1_D2S0 0x01
19142 #define _CLC2SEL1_LC2D2S1 0x02
19143 #define _CLC2SEL1_D2S1 0x02
19144 #define _CLC2SEL1_LC2D2S2 0x04
19145 #define _CLC2SEL1_D2S2 0x04
19146 #define _CLC2SEL1_LC2D2S3 0x08
19147 #define _CLC2SEL1_D2S3 0x08
19148 #define _CLC2SEL1_LC2D2S4 0x10
19149 #define _CLC2SEL1_D2S4 0x10
19150 #define _CLC2SEL1_LC2D2S5 0x20
19151 #define _CLC2SEL1_D2S5 0x20
19153 //==============================================================================
19156 //==============================================================================
19157 // CLC2SEL2 Bits
19159 extern __at(0x0F1E) __sfr CLC2SEL2;
19161 typedef union
19163 struct
19165 unsigned LC2D3S0 : 1;
19166 unsigned LC2D3S1 : 1;
19167 unsigned LC2D3S2 : 1;
19168 unsigned LC2D3S3 : 1;
19169 unsigned LC2D3S4 : 1;
19170 unsigned LC2D3S5 : 1;
19171 unsigned : 1;
19172 unsigned : 1;
19175 struct
19177 unsigned D3S0 : 1;
19178 unsigned D3S1 : 1;
19179 unsigned D3S2 : 1;
19180 unsigned D3S3 : 1;
19181 unsigned D3S4 : 1;
19182 unsigned D3S5 : 1;
19183 unsigned : 1;
19184 unsigned : 1;
19187 struct
19189 unsigned LC2D3S : 6;
19190 unsigned : 2;
19193 struct
19195 unsigned D3S : 6;
19196 unsigned : 2;
19198 } __CLC2SEL2bits_t;
19200 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
19202 #define _CLC2SEL2_LC2D3S0 0x01
19203 #define _CLC2SEL2_D3S0 0x01
19204 #define _CLC2SEL2_LC2D3S1 0x02
19205 #define _CLC2SEL2_D3S1 0x02
19206 #define _CLC2SEL2_LC2D3S2 0x04
19207 #define _CLC2SEL2_D3S2 0x04
19208 #define _CLC2SEL2_LC2D3S3 0x08
19209 #define _CLC2SEL2_D3S3 0x08
19210 #define _CLC2SEL2_LC2D3S4 0x10
19211 #define _CLC2SEL2_D3S4 0x10
19212 #define _CLC2SEL2_LC2D3S5 0x20
19213 #define _CLC2SEL2_D3S5 0x20
19215 //==============================================================================
19218 //==============================================================================
19219 // CLC2SEL3 Bits
19221 extern __at(0x0F1F) __sfr CLC2SEL3;
19223 typedef union
19225 struct
19227 unsigned LC2D4S0 : 1;
19228 unsigned LC2D4S1 : 1;
19229 unsigned LC2D4S2 : 1;
19230 unsigned LC2D4S3 : 1;
19231 unsigned LC2D4S4 : 1;
19232 unsigned LC2D4S5 : 1;
19233 unsigned : 1;
19234 unsigned : 1;
19237 struct
19239 unsigned D4S0 : 1;
19240 unsigned D4S1 : 1;
19241 unsigned D4S2 : 1;
19242 unsigned D4S3 : 1;
19243 unsigned D4S4 : 1;
19244 unsigned D4S5 : 1;
19245 unsigned : 1;
19246 unsigned : 1;
19249 struct
19251 unsigned D4S : 6;
19252 unsigned : 2;
19255 struct
19257 unsigned LC2D4S : 6;
19258 unsigned : 2;
19260 } __CLC2SEL3bits_t;
19262 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
19264 #define _CLC2SEL3_LC2D4S0 0x01
19265 #define _CLC2SEL3_D4S0 0x01
19266 #define _CLC2SEL3_LC2D4S1 0x02
19267 #define _CLC2SEL3_D4S1 0x02
19268 #define _CLC2SEL3_LC2D4S2 0x04
19269 #define _CLC2SEL3_D4S2 0x04
19270 #define _CLC2SEL3_LC2D4S3 0x08
19271 #define _CLC2SEL3_D4S3 0x08
19272 #define _CLC2SEL3_LC2D4S4 0x10
19273 #define _CLC2SEL3_D4S4 0x10
19274 #define _CLC2SEL3_LC2D4S5 0x20
19275 #define _CLC2SEL3_D4S5 0x20
19277 //==============================================================================
19280 //==============================================================================
19281 // CLC2GLS0 Bits
19283 extern __at(0x0F20) __sfr CLC2GLS0;
19285 typedef union
19287 struct
19289 unsigned LC2G1D1N : 1;
19290 unsigned LC2G1D1T : 1;
19291 unsigned LC2G1D2N : 1;
19292 unsigned LC2G1D2T : 1;
19293 unsigned LC2G1D3N : 1;
19294 unsigned LC2G1D3T : 1;
19295 unsigned LC2G1D4N : 1;
19296 unsigned LC2G1D4T : 1;
19299 struct
19301 unsigned D1N : 1;
19302 unsigned D1T : 1;
19303 unsigned D2N : 1;
19304 unsigned D2T : 1;
19305 unsigned D3N : 1;
19306 unsigned D3T : 1;
19307 unsigned D4N : 1;
19308 unsigned D4T : 1;
19310 } __CLC2GLS0bits_t;
19312 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
19314 #define _CLC2GLS0_LC2G1D1N 0x01
19315 #define _CLC2GLS0_D1N 0x01
19316 #define _CLC2GLS0_LC2G1D1T 0x02
19317 #define _CLC2GLS0_D1T 0x02
19318 #define _CLC2GLS0_LC2G1D2N 0x04
19319 #define _CLC2GLS0_D2N 0x04
19320 #define _CLC2GLS0_LC2G1D2T 0x08
19321 #define _CLC2GLS0_D2T 0x08
19322 #define _CLC2GLS0_LC2G1D3N 0x10
19323 #define _CLC2GLS0_D3N 0x10
19324 #define _CLC2GLS0_LC2G1D3T 0x20
19325 #define _CLC2GLS0_D3T 0x20
19326 #define _CLC2GLS0_LC2G1D4N 0x40
19327 #define _CLC2GLS0_D4N 0x40
19328 #define _CLC2GLS0_LC2G1D4T 0x80
19329 #define _CLC2GLS0_D4T 0x80
19331 //==============================================================================
19334 //==============================================================================
19335 // CLC2GLS1 Bits
19337 extern __at(0x0F21) __sfr CLC2GLS1;
19339 typedef union
19341 struct
19343 unsigned LC2G2D1N : 1;
19344 unsigned LC2G2D1T : 1;
19345 unsigned LC2G2D2N : 1;
19346 unsigned LC2G2D2T : 1;
19347 unsigned LC2G2D3N : 1;
19348 unsigned LC2G2D3T : 1;
19349 unsigned LC2G2D4N : 1;
19350 unsigned LC2G2D4T : 1;
19353 struct
19355 unsigned D1N : 1;
19356 unsigned D1T : 1;
19357 unsigned D2N : 1;
19358 unsigned D2T : 1;
19359 unsigned D3N : 1;
19360 unsigned D3T : 1;
19361 unsigned D4N : 1;
19362 unsigned D4T : 1;
19364 } __CLC2GLS1bits_t;
19366 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
19368 #define _CLC2GLS1_LC2G2D1N 0x01
19369 #define _CLC2GLS1_D1N 0x01
19370 #define _CLC2GLS1_LC2G2D1T 0x02
19371 #define _CLC2GLS1_D1T 0x02
19372 #define _CLC2GLS1_LC2G2D2N 0x04
19373 #define _CLC2GLS1_D2N 0x04
19374 #define _CLC2GLS1_LC2G2D2T 0x08
19375 #define _CLC2GLS1_D2T 0x08
19376 #define _CLC2GLS1_LC2G2D3N 0x10
19377 #define _CLC2GLS1_D3N 0x10
19378 #define _CLC2GLS1_LC2G2D3T 0x20
19379 #define _CLC2GLS1_D3T 0x20
19380 #define _CLC2GLS1_LC2G2D4N 0x40
19381 #define _CLC2GLS1_D4N 0x40
19382 #define _CLC2GLS1_LC2G2D4T 0x80
19383 #define _CLC2GLS1_D4T 0x80
19385 //==============================================================================
19388 //==============================================================================
19389 // CLC2GLS2 Bits
19391 extern __at(0x0F22) __sfr CLC2GLS2;
19393 typedef union
19395 struct
19397 unsigned LC2G3D1N : 1;
19398 unsigned LC2G3D1T : 1;
19399 unsigned LC2G3D2N : 1;
19400 unsigned LC2G3D2T : 1;
19401 unsigned LC2G3D3N : 1;
19402 unsigned LC2G3D3T : 1;
19403 unsigned LC2G3D4N : 1;
19404 unsigned LC2G3D4T : 1;
19407 struct
19409 unsigned D1N : 1;
19410 unsigned D1T : 1;
19411 unsigned D2N : 1;
19412 unsigned D2T : 1;
19413 unsigned D3N : 1;
19414 unsigned D3T : 1;
19415 unsigned D4N : 1;
19416 unsigned D4T : 1;
19418 } __CLC2GLS2bits_t;
19420 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
19422 #define _CLC2GLS2_LC2G3D1N 0x01
19423 #define _CLC2GLS2_D1N 0x01
19424 #define _CLC2GLS2_LC2G3D1T 0x02
19425 #define _CLC2GLS2_D1T 0x02
19426 #define _CLC2GLS2_LC2G3D2N 0x04
19427 #define _CLC2GLS2_D2N 0x04
19428 #define _CLC2GLS2_LC2G3D2T 0x08
19429 #define _CLC2GLS2_D2T 0x08
19430 #define _CLC2GLS2_LC2G3D3N 0x10
19431 #define _CLC2GLS2_D3N 0x10
19432 #define _CLC2GLS2_LC2G3D3T 0x20
19433 #define _CLC2GLS2_D3T 0x20
19434 #define _CLC2GLS2_LC2G3D4N 0x40
19435 #define _CLC2GLS2_D4N 0x40
19436 #define _CLC2GLS2_LC2G3D4T 0x80
19437 #define _CLC2GLS2_D4T 0x80
19439 //==============================================================================
19442 //==============================================================================
19443 // CLC2GLS3 Bits
19445 extern __at(0x0F23) __sfr CLC2GLS3;
19447 typedef union
19449 struct
19451 unsigned LC2G4D1N : 1;
19452 unsigned LC2G4D1T : 1;
19453 unsigned LC2G4D2N : 1;
19454 unsigned LC2G4D2T : 1;
19455 unsigned LC2G4D3N : 1;
19456 unsigned LC2G4D3T : 1;
19457 unsigned LC2G4D4N : 1;
19458 unsigned LC2G4D4T : 1;
19461 struct
19463 unsigned G4D1N : 1;
19464 unsigned G4D1T : 1;
19465 unsigned G4D2N : 1;
19466 unsigned G4D2T : 1;
19467 unsigned G4D3N : 1;
19468 unsigned G4D3T : 1;
19469 unsigned G4D4N : 1;
19470 unsigned G4D4T : 1;
19472 } __CLC2GLS3bits_t;
19474 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
19476 #define _CLC2GLS3_LC2G4D1N 0x01
19477 #define _CLC2GLS3_G4D1N 0x01
19478 #define _CLC2GLS3_LC2G4D1T 0x02
19479 #define _CLC2GLS3_G4D1T 0x02
19480 #define _CLC2GLS3_LC2G4D2N 0x04
19481 #define _CLC2GLS3_G4D2N 0x04
19482 #define _CLC2GLS3_LC2G4D2T 0x08
19483 #define _CLC2GLS3_G4D2T 0x08
19484 #define _CLC2GLS3_LC2G4D3N 0x10
19485 #define _CLC2GLS3_G4D3N 0x10
19486 #define _CLC2GLS3_LC2G4D3T 0x20
19487 #define _CLC2GLS3_G4D3T 0x20
19488 #define _CLC2GLS3_LC2G4D4N 0x40
19489 #define _CLC2GLS3_G4D4N 0x40
19490 #define _CLC2GLS3_LC2G4D4T 0x80
19491 #define _CLC2GLS3_G4D4T 0x80
19493 //==============================================================================
19496 //==============================================================================
19497 // CLC3CON Bits
19499 extern __at(0x0F24) __sfr CLC3CON;
19501 typedef union
19503 struct
19505 unsigned LC3MODE0 : 1;
19506 unsigned LC3MODE1 : 1;
19507 unsigned LC3MODE2 : 1;
19508 unsigned LC3INTN : 1;
19509 unsigned LC3INTP : 1;
19510 unsigned LC3OUT : 1;
19511 unsigned : 1;
19512 unsigned LC3EN : 1;
19515 struct
19517 unsigned MODE0 : 1;
19518 unsigned MODE1 : 1;
19519 unsigned MODE2 : 1;
19520 unsigned INTN : 1;
19521 unsigned INTP : 1;
19522 unsigned OUT : 1;
19523 unsigned : 1;
19524 unsigned EN : 1;
19527 struct
19529 unsigned LC3MODE : 3;
19530 unsigned : 5;
19533 struct
19535 unsigned MODE : 3;
19536 unsigned : 5;
19538 } __CLC3CONbits_t;
19540 extern __at(0x0F24) volatile __CLC3CONbits_t CLC3CONbits;
19542 #define _CLC3CON_LC3MODE0 0x01
19543 #define _CLC3CON_MODE0 0x01
19544 #define _CLC3CON_LC3MODE1 0x02
19545 #define _CLC3CON_MODE1 0x02
19546 #define _CLC3CON_LC3MODE2 0x04
19547 #define _CLC3CON_MODE2 0x04
19548 #define _CLC3CON_LC3INTN 0x08
19549 #define _CLC3CON_INTN 0x08
19550 #define _CLC3CON_LC3INTP 0x10
19551 #define _CLC3CON_INTP 0x10
19552 #define _CLC3CON_LC3OUT 0x20
19553 #define _CLC3CON_OUT 0x20
19554 #define _CLC3CON_LC3EN 0x80
19555 #define _CLC3CON_EN 0x80
19557 //==============================================================================
19560 //==============================================================================
19561 // CLC3POL Bits
19563 extern __at(0x0F25) __sfr CLC3POL;
19565 typedef union
19567 struct
19569 unsigned LC3G1POL : 1;
19570 unsigned LC3G2POL : 1;
19571 unsigned LC3G3POL : 1;
19572 unsigned LC3G4POL : 1;
19573 unsigned : 1;
19574 unsigned : 1;
19575 unsigned : 1;
19576 unsigned LC3POL : 1;
19579 struct
19581 unsigned G1POL : 1;
19582 unsigned G2POL : 1;
19583 unsigned G3POL : 1;
19584 unsigned G4POL : 1;
19585 unsigned : 1;
19586 unsigned : 1;
19587 unsigned : 1;
19588 unsigned POL : 1;
19590 } __CLC3POLbits_t;
19592 extern __at(0x0F25) volatile __CLC3POLbits_t CLC3POLbits;
19594 #define _CLC3POL_LC3G1POL 0x01
19595 #define _CLC3POL_G1POL 0x01
19596 #define _CLC3POL_LC3G2POL 0x02
19597 #define _CLC3POL_G2POL 0x02
19598 #define _CLC3POL_LC3G3POL 0x04
19599 #define _CLC3POL_G3POL 0x04
19600 #define _CLC3POL_LC3G4POL 0x08
19601 #define _CLC3POL_G4POL 0x08
19602 #define _CLC3POL_LC3POL 0x80
19603 #define _CLC3POL_POL 0x80
19605 //==============================================================================
19608 //==============================================================================
19609 // CLC3SEL0 Bits
19611 extern __at(0x0F26) __sfr CLC3SEL0;
19613 typedef union
19615 struct
19617 unsigned LC3D1S0 : 1;
19618 unsigned LC3D1S1 : 1;
19619 unsigned LC3D1S2 : 1;
19620 unsigned LC3D1S3 : 1;
19621 unsigned LC3D1S4 : 1;
19622 unsigned LC3D1S5 : 1;
19623 unsigned : 1;
19624 unsigned : 1;
19627 struct
19629 unsigned D1S0 : 1;
19630 unsigned D1S1 : 1;
19631 unsigned D1S2 : 1;
19632 unsigned D1S3 : 1;
19633 unsigned D1S4 : 1;
19634 unsigned D1S5 : 1;
19635 unsigned : 1;
19636 unsigned : 1;
19639 struct
19641 unsigned LC3D1S : 6;
19642 unsigned : 2;
19645 struct
19647 unsigned D1S : 6;
19648 unsigned : 2;
19650 } __CLC3SEL0bits_t;
19652 extern __at(0x0F26) volatile __CLC3SEL0bits_t CLC3SEL0bits;
19654 #define _CLC3SEL0_LC3D1S0 0x01
19655 #define _CLC3SEL0_D1S0 0x01
19656 #define _CLC3SEL0_LC3D1S1 0x02
19657 #define _CLC3SEL0_D1S1 0x02
19658 #define _CLC3SEL0_LC3D1S2 0x04
19659 #define _CLC3SEL0_D1S2 0x04
19660 #define _CLC3SEL0_LC3D1S3 0x08
19661 #define _CLC3SEL0_D1S3 0x08
19662 #define _CLC3SEL0_LC3D1S4 0x10
19663 #define _CLC3SEL0_D1S4 0x10
19664 #define _CLC3SEL0_LC3D1S5 0x20
19665 #define _CLC3SEL0_D1S5 0x20
19667 //==============================================================================
19670 //==============================================================================
19671 // CLC3SEL1 Bits
19673 extern __at(0x0F27) __sfr CLC3SEL1;
19675 typedef union
19677 struct
19679 unsigned LC3D2S0 : 1;
19680 unsigned LC3D2S1 : 1;
19681 unsigned LC3D2S2 : 1;
19682 unsigned LC3D2S3 : 1;
19683 unsigned LC3D2S4 : 1;
19684 unsigned LC3D2S5 : 1;
19685 unsigned : 1;
19686 unsigned : 1;
19689 struct
19691 unsigned D2S0 : 1;
19692 unsigned D2S1 : 1;
19693 unsigned D2S2 : 1;
19694 unsigned D2S3 : 1;
19695 unsigned D2S4 : 1;
19696 unsigned D2S5 : 1;
19697 unsigned : 1;
19698 unsigned : 1;
19701 struct
19703 unsigned LC3D2S : 6;
19704 unsigned : 2;
19707 struct
19709 unsigned D2S : 6;
19710 unsigned : 2;
19712 } __CLC3SEL1bits_t;
19714 extern __at(0x0F27) volatile __CLC3SEL1bits_t CLC3SEL1bits;
19716 #define _CLC3SEL1_LC3D2S0 0x01
19717 #define _CLC3SEL1_D2S0 0x01
19718 #define _CLC3SEL1_LC3D2S1 0x02
19719 #define _CLC3SEL1_D2S1 0x02
19720 #define _CLC3SEL1_LC3D2S2 0x04
19721 #define _CLC3SEL1_D2S2 0x04
19722 #define _CLC3SEL1_LC3D2S3 0x08
19723 #define _CLC3SEL1_D2S3 0x08
19724 #define _CLC3SEL1_LC3D2S4 0x10
19725 #define _CLC3SEL1_D2S4 0x10
19726 #define _CLC3SEL1_LC3D2S5 0x20
19727 #define _CLC3SEL1_D2S5 0x20
19729 //==============================================================================
19732 //==============================================================================
19733 // CLC3SEL2 Bits
19735 extern __at(0x0F28) __sfr CLC3SEL2;
19737 typedef union
19739 struct
19741 unsigned LC3D3S0 : 1;
19742 unsigned LC3D3S1 : 1;
19743 unsigned LC3D3S2 : 1;
19744 unsigned LC3D3S3 : 1;
19745 unsigned LC3D3S4 : 1;
19746 unsigned LC3D3S5 : 1;
19747 unsigned : 1;
19748 unsigned : 1;
19751 struct
19753 unsigned D3S0 : 1;
19754 unsigned D3S1 : 1;
19755 unsigned D3S2 : 1;
19756 unsigned D3S3 : 1;
19757 unsigned D3S4 : 1;
19758 unsigned D3S5 : 1;
19759 unsigned : 1;
19760 unsigned : 1;
19763 struct
19765 unsigned D3S : 6;
19766 unsigned : 2;
19769 struct
19771 unsigned LC3D3S : 6;
19772 unsigned : 2;
19774 } __CLC3SEL2bits_t;
19776 extern __at(0x0F28) volatile __CLC3SEL2bits_t CLC3SEL2bits;
19778 #define _CLC3SEL2_LC3D3S0 0x01
19779 #define _CLC3SEL2_D3S0 0x01
19780 #define _CLC3SEL2_LC3D3S1 0x02
19781 #define _CLC3SEL2_D3S1 0x02
19782 #define _CLC3SEL2_LC3D3S2 0x04
19783 #define _CLC3SEL2_D3S2 0x04
19784 #define _CLC3SEL2_LC3D3S3 0x08
19785 #define _CLC3SEL2_D3S3 0x08
19786 #define _CLC3SEL2_LC3D3S4 0x10
19787 #define _CLC3SEL2_D3S4 0x10
19788 #define _CLC3SEL2_LC3D3S5 0x20
19789 #define _CLC3SEL2_D3S5 0x20
19791 //==============================================================================
19794 //==============================================================================
19795 // CLC3SEL3 Bits
19797 extern __at(0x0F29) __sfr CLC3SEL3;
19799 typedef union
19801 struct
19803 unsigned LC3D4S0 : 1;
19804 unsigned LC3D4S1 : 1;
19805 unsigned LC3D4S2 : 1;
19806 unsigned LC3D4S3 : 1;
19807 unsigned LC3D4S4 : 1;
19808 unsigned LC3D4S5 : 1;
19809 unsigned : 1;
19810 unsigned : 1;
19813 struct
19815 unsigned D4S0 : 1;
19816 unsigned D4S1 : 1;
19817 unsigned D4S2 : 1;
19818 unsigned D4S3 : 1;
19819 unsigned D4S4 : 1;
19820 unsigned D4S5 : 1;
19821 unsigned : 1;
19822 unsigned : 1;
19825 struct
19827 unsigned LC3D4S : 6;
19828 unsigned : 2;
19831 struct
19833 unsigned D4S : 6;
19834 unsigned : 2;
19836 } __CLC3SEL3bits_t;
19838 extern __at(0x0F29) volatile __CLC3SEL3bits_t CLC3SEL3bits;
19840 #define _CLC3SEL3_LC3D4S0 0x01
19841 #define _CLC3SEL3_D4S0 0x01
19842 #define _CLC3SEL3_LC3D4S1 0x02
19843 #define _CLC3SEL3_D4S1 0x02
19844 #define _CLC3SEL3_LC3D4S2 0x04
19845 #define _CLC3SEL3_D4S2 0x04
19846 #define _CLC3SEL3_LC3D4S3 0x08
19847 #define _CLC3SEL3_D4S3 0x08
19848 #define _CLC3SEL3_LC3D4S4 0x10
19849 #define _CLC3SEL3_D4S4 0x10
19850 #define _CLC3SEL3_LC3D4S5 0x20
19851 #define _CLC3SEL3_D4S5 0x20
19853 //==============================================================================
19856 //==============================================================================
19857 // CLC3GLS0 Bits
19859 extern __at(0x0F2A) __sfr CLC3GLS0;
19861 typedef union
19863 struct
19865 unsigned LC3G1D1N : 1;
19866 unsigned LC3G1D1T : 1;
19867 unsigned LC3G1D2N : 1;
19868 unsigned LC3G1D2T : 1;
19869 unsigned LC3G1D3N : 1;
19870 unsigned LC3G1D3T : 1;
19871 unsigned LC3G1D4N : 1;
19872 unsigned LC3G1D4T : 1;
19875 struct
19877 unsigned D1N : 1;
19878 unsigned D1T : 1;
19879 unsigned D2N : 1;
19880 unsigned D2T : 1;
19881 unsigned D3N : 1;
19882 unsigned D3T : 1;
19883 unsigned D4N : 1;
19884 unsigned D4T : 1;
19886 } __CLC3GLS0bits_t;
19888 extern __at(0x0F2A) volatile __CLC3GLS0bits_t CLC3GLS0bits;
19890 #define _CLC3GLS0_LC3G1D1N 0x01
19891 #define _CLC3GLS0_D1N 0x01
19892 #define _CLC3GLS0_LC3G1D1T 0x02
19893 #define _CLC3GLS0_D1T 0x02
19894 #define _CLC3GLS0_LC3G1D2N 0x04
19895 #define _CLC3GLS0_D2N 0x04
19896 #define _CLC3GLS0_LC3G1D2T 0x08
19897 #define _CLC3GLS0_D2T 0x08
19898 #define _CLC3GLS0_LC3G1D3N 0x10
19899 #define _CLC3GLS0_D3N 0x10
19900 #define _CLC3GLS0_LC3G1D3T 0x20
19901 #define _CLC3GLS0_D3T 0x20
19902 #define _CLC3GLS0_LC3G1D4N 0x40
19903 #define _CLC3GLS0_D4N 0x40
19904 #define _CLC3GLS0_LC3G1D4T 0x80
19905 #define _CLC3GLS0_D4T 0x80
19907 //==============================================================================
19910 //==============================================================================
19911 // CLC3GLS1 Bits
19913 extern __at(0x0F2B) __sfr CLC3GLS1;
19915 typedef union
19917 struct
19919 unsigned LC3G2D1N : 1;
19920 unsigned LC3G2D1T : 1;
19921 unsigned LC3G2D2N : 1;
19922 unsigned LC3G2D2T : 1;
19923 unsigned LC3G2D3N : 1;
19924 unsigned LC3G2D3T : 1;
19925 unsigned LC3G2D4N : 1;
19926 unsigned LC3G2D4T : 1;
19929 struct
19931 unsigned D1N : 1;
19932 unsigned D1T : 1;
19933 unsigned D2N : 1;
19934 unsigned D2T : 1;
19935 unsigned D3N : 1;
19936 unsigned D3T : 1;
19937 unsigned D4N : 1;
19938 unsigned D4T : 1;
19940 } __CLC3GLS1bits_t;
19942 extern __at(0x0F2B) volatile __CLC3GLS1bits_t CLC3GLS1bits;
19944 #define _CLC3GLS1_LC3G2D1N 0x01
19945 #define _CLC3GLS1_D1N 0x01
19946 #define _CLC3GLS1_LC3G2D1T 0x02
19947 #define _CLC3GLS1_D1T 0x02
19948 #define _CLC3GLS1_LC3G2D2N 0x04
19949 #define _CLC3GLS1_D2N 0x04
19950 #define _CLC3GLS1_LC3G2D2T 0x08
19951 #define _CLC3GLS1_D2T 0x08
19952 #define _CLC3GLS1_LC3G2D3N 0x10
19953 #define _CLC3GLS1_D3N 0x10
19954 #define _CLC3GLS1_LC3G2D3T 0x20
19955 #define _CLC3GLS1_D3T 0x20
19956 #define _CLC3GLS1_LC3G2D4N 0x40
19957 #define _CLC3GLS1_D4N 0x40
19958 #define _CLC3GLS1_LC3G2D4T 0x80
19959 #define _CLC3GLS1_D4T 0x80
19961 //==============================================================================
19964 //==============================================================================
19965 // CLC3GLS2 Bits
19967 extern __at(0x0F2C) __sfr CLC3GLS2;
19969 typedef union
19971 struct
19973 unsigned LC3G3D1N : 1;
19974 unsigned LC3G3D1T : 1;
19975 unsigned LC3G3D2N : 1;
19976 unsigned LC3G3D2T : 1;
19977 unsigned LC3G3D3N : 1;
19978 unsigned LC3G3D3T : 1;
19979 unsigned LC3G3D4N : 1;
19980 unsigned LC3G3D4T : 1;
19983 struct
19985 unsigned D1N : 1;
19986 unsigned D1T : 1;
19987 unsigned D2N : 1;
19988 unsigned D2T : 1;
19989 unsigned D3N : 1;
19990 unsigned D3T : 1;
19991 unsigned D4N : 1;
19992 unsigned D4T : 1;
19994 } __CLC3GLS2bits_t;
19996 extern __at(0x0F2C) volatile __CLC3GLS2bits_t CLC3GLS2bits;
19998 #define _CLC3GLS2_LC3G3D1N 0x01
19999 #define _CLC3GLS2_D1N 0x01
20000 #define _CLC3GLS2_LC3G3D1T 0x02
20001 #define _CLC3GLS2_D1T 0x02
20002 #define _CLC3GLS2_LC3G3D2N 0x04
20003 #define _CLC3GLS2_D2N 0x04
20004 #define _CLC3GLS2_LC3G3D2T 0x08
20005 #define _CLC3GLS2_D2T 0x08
20006 #define _CLC3GLS2_LC3G3D3N 0x10
20007 #define _CLC3GLS2_D3N 0x10
20008 #define _CLC3GLS2_LC3G3D3T 0x20
20009 #define _CLC3GLS2_D3T 0x20
20010 #define _CLC3GLS2_LC3G3D4N 0x40
20011 #define _CLC3GLS2_D4N 0x40
20012 #define _CLC3GLS2_LC3G3D4T 0x80
20013 #define _CLC3GLS2_D4T 0x80
20015 //==============================================================================
20018 //==============================================================================
20019 // CLC3GLS3 Bits
20021 extern __at(0x0F2D) __sfr CLC3GLS3;
20023 typedef union
20025 struct
20027 unsigned LC3G4D1N : 1;
20028 unsigned LC3G4D1T : 1;
20029 unsigned LC3G4D2N : 1;
20030 unsigned LC3G4D2T : 1;
20031 unsigned LC3G4D3N : 1;
20032 unsigned LC3G4D3T : 1;
20033 unsigned LC3G4D4N : 1;
20034 unsigned LC3G4D4T : 1;
20037 struct
20039 unsigned G4D1N : 1;
20040 unsigned G4D1T : 1;
20041 unsigned G4D2N : 1;
20042 unsigned G4D2T : 1;
20043 unsigned G4D3N : 1;
20044 unsigned G4D3T : 1;
20045 unsigned G4D4N : 1;
20046 unsigned G4D4T : 1;
20048 } __CLC3GLS3bits_t;
20050 extern __at(0x0F2D) volatile __CLC3GLS3bits_t CLC3GLS3bits;
20052 #define _CLC3GLS3_LC3G4D1N 0x01
20053 #define _CLC3GLS3_G4D1N 0x01
20054 #define _CLC3GLS3_LC3G4D1T 0x02
20055 #define _CLC3GLS3_G4D1T 0x02
20056 #define _CLC3GLS3_LC3G4D2N 0x04
20057 #define _CLC3GLS3_G4D2N 0x04
20058 #define _CLC3GLS3_LC3G4D2T 0x08
20059 #define _CLC3GLS3_G4D2T 0x08
20060 #define _CLC3GLS3_LC3G4D3N 0x10
20061 #define _CLC3GLS3_G4D3N 0x10
20062 #define _CLC3GLS3_LC3G4D3T 0x20
20063 #define _CLC3GLS3_G4D3T 0x20
20064 #define _CLC3GLS3_LC3G4D4N 0x40
20065 #define _CLC3GLS3_G4D4N 0x40
20066 #define _CLC3GLS3_LC3G4D4T 0x80
20067 #define _CLC3GLS3_G4D4T 0x80
20069 //==============================================================================
20072 //==============================================================================
20073 // CLC4CON Bits
20075 extern __at(0x0F2E) __sfr CLC4CON;
20077 typedef union
20079 struct
20081 unsigned LC4MODE0 : 1;
20082 unsigned LC4MODE1 : 1;
20083 unsigned LC4MODE2 : 1;
20084 unsigned LC4INTN : 1;
20085 unsigned LC4INTP : 1;
20086 unsigned LC4OUT : 1;
20087 unsigned : 1;
20088 unsigned LC4EN : 1;
20091 struct
20093 unsigned MODE0 : 1;
20094 unsigned MODE1 : 1;
20095 unsigned MODE2 : 1;
20096 unsigned INTN : 1;
20097 unsigned INTP : 1;
20098 unsigned OUT : 1;
20099 unsigned : 1;
20100 unsigned EN : 1;
20103 struct
20105 unsigned MODE : 3;
20106 unsigned : 5;
20109 struct
20111 unsigned LC4MODE : 3;
20112 unsigned : 5;
20114 } __CLC4CONbits_t;
20116 extern __at(0x0F2E) volatile __CLC4CONbits_t CLC4CONbits;
20118 #define _CLC4CON_LC4MODE0 0x01
20119 #define _CLC4CON_MODE0 0x01
20120 #define _CLC4CON_LC4MODE1 0x02
20121 #define _CLC4CON_MODE1 0x02
20122 #define _CLC4CON_LC4MODE2 0x04
20123 #define _CLC4CON_MODE2 0x04
20124 #define _CLC4CON_LC4INTN 0x08
20125 #define _CLC4CON_INTN 0x08
20126 #define _CLC4CON_LC4INTP 0x10
20127 #define _CLC4CON_INTP 0x10
20128 #define _CLC4CON_LC4OUT 0x20
20129 #define _CLC4CON_OUT 0x20
20130 #define _CLC4CON_LC4EN 0x80
20131 #define _CLC4CON_EN 0x80
20133 //==============================================================================
20136 //==============================================================================
20137 // CLC4POL Bits
20139 extern __at(0x0F2F) __sfr CLC4POL;
20141 typedef union
20143 struct
20145 unsigned LC4G1POL : 1;
20146 unsigned LC4G2POL : 1;
20147 unsigned LC4G3POL : 1;
20148 unsigned LC4G4POL : 1;
20149 unsigned : 1;
20150 unsigned : 1;
20151 unsigned : 1;
20152 unsigned LC4POL : 1;
20155 struct
20157 unsigned G1POL : 1;
20158 unsigned G2POL : 1;
20159 unsigned G3POL : 1;
20160 unsigned G4POL : 1;
20161 unsigned : 1;
20162 unsigned : 1;
20163 unsigned : 1;
20164 unsigned POL : 1;
20166 } __CLC4POLbits_t;
20168 extern __at(0x0F2F) volatile __CLC4POLbits_t CLC4POLbits;
20170 #define _CLC4POL_LC4G1POL 0x01
20171 #define _CLC4POL_G1POL 0x01
20172 #define _CLC4POL_LC4G2POL 0x02
20173 #define _CLC4POL_G2POL 0x02
20174 #define _CLC4POL_LC4G3POL 0x04
20175 #define _CLC4POL_G3POL 0x04
20176 #define _CLC4POL_LC4G4POL 0x08
20177 #define _CLC4POL_G4POL 0x08
20178 #define _CLC4POL_LC4POL 0x80
20179 #define _CLC4POL_POL 0x80
20181 //==============================================================================
20184 //==============================================================================
20185 // CLC4SEL0 Bits
20187 extern __at(0x0F30) __sfr CLC4SEL0;
20189 typedef union
20191 struct
20193 unsigned LC4D1S0 : 1;
20194 unsigned LC4D1S1 : 1;
20195 unsigned LC4D1S2 : 1;
20196 unsigned LC4D1S3 : 1;
20197 unsigned LC4D1S4 : 1;
20198 unsigned LC4D1S5 : 1;
20199 unsigned : 1;
20200 unsigned : 1;
20203 struct
20205 unsigned D1S0 : 1;
20206 unsigned D1S1 : 1;
20207 unsigned D1S2 : 1;
20208 unsigned D1S3 : 1;
20209 unsigned D1S4 : 1;
20210 unsigned D1S5 : 1;
20211 unsigned : 1;
20212 unsigned : 1;
20215 struct
20217 unsigned LC4D1S : 6;
20218 unsigned : 2;
20221 struct
20223 unsigned D1S : 6;
20224 unsigned : 2;
20226 } __CLC4SEL0bits_t;
20228 extern __at(0x0F30) volatile __CLC4SEL0bits_t CLC4SEL0bits;
20230 #define _CLC4SEL0_LC4D1S0 0x01
20231 #define _CLC4SEL0_D1S0 0x01
20232 #define _CLC4SEL0_LC4D1S1 0x02
20233 #define _CLC4SEL0_D1S1 0x02
20234 #define _CLC4SEL0_LC4D1S2 0x04
20235 #define _CLC4SEL0_D1S2 0x04
20236 #define _CLC4SEL0_LC4D1S3 0x08
20237 #define _CLC4SEL0_D1S3 0x08
20238 #define _CLC4SEL0_LC4D1S4 0x10
20239 #define _CLC4SEL0_D1S4 0x10
20240 #define _CLC4SEL0_LC4D1S5 0x20
20241 #define _CLC4SEL0_D1S5 0x20
20243 //==============================================================================
20246 //==============================================================================
20247 // CLC4SEL1 Bits
20249 extern __at(0x0F31) __sfr CLC4SEL1;
20251 typedef union
20253 struct
20255 unsigned LC4D2S0 : 1;
20256 unsigned LC4D2S1 : 1;
20257 unsigned LC4D2S2 : 1;
20258 unsigned LC4D2S3 : 1;
20259 unsigned LC4D2S4 : 1;
20260 unsigned LC4D2S5 : 1;
20261 unsigned : 1;
20262 unsigned : 1;
20265 struct
20267 unsigned D2S0 : 1;
20268 unsigned D2S1 : 1;
20269 unsigned D2S2 : 1;
20270 unsigned D2S3 : 1;
20271 unsigned D2S4 : 1;
20272 unsigned D2S5 : 1;
20273 unsigned : 1;
20274 unsigned : 1;
20277 struct
20279 unsigned LC4D2S : 6;
20280 unsigned : 2;
20283 struct
20285 unsigned D2S : 6;
20286 unsigned : 2;
20288 } __CLC4SEL1bits_t;
20290 extern __at(0x0F31) volatile __CLC4SEL1bits_t CLC4SEL1bits;
20292 #define _CLC4SEL1_LC4D2S0 0x01
20293 #define _CLC4SEL1_D2S0 0x01
20294 #define _CLC4SEL1_LC4D2S1 0x02
20295 #define _CLC4SEL1_D2S1 0x02
20296 #define _CLC4SEL1_LC4D2S2 0x04
20297 #define _CLC4SEL1_D2S2 0x04
20298 #define _CLC4SEL1_LC4D2S3 0x08
20299 #define _CLC4SEL1_D2S3 0x08
20300 #define _CLC4SEL1_LC4D2S4 0x10
20301 #define _CLC4SEL1_D2S4 0x10
20302 #define _CLC4SEL1_LC4D2S5 0x20
20303 #define _CLC4SEL1_D2S5 0x20
20305 //==============================================================================
20308 //==============================================================================
20309 // CLC4SEL2 Bits
20311 extern __at(0x0F32) __sfr CLC4SEL2;
20313 typedef union
20315 struct
20317 unsigned LC4D3S0 : 1;
20318 unsigned LC4D3S1 : 1;
20319 unsigned LC4D3S2 : 1;
20320 unsigned LC4D3S3 : 1;
20321 unsigned LC4D3S4 : 1;
20322 unsigned LC4D3S5 : 1;
20323 unsigned : 1;
20324 unsigned : 1;
20327 struct
20329 unsigned D3S0 : 1;
20330 unsigned D3S1 : 1;
20331 unsigned D3S2 : 1;
20332 unsigned D3S3 : 1;
20333 unsigned D3S4 : 1;
20334 unsigned D3S5 : 1;
20335 unsigned : 1;
20336 unsigned : 1;
20339 struct
20341 unsigned LC4D3S : 6;
20342 unsigned : 2;
20345 struct
20347 unsigned D3S : 6;
20348 unsigned : 2;
20350 } __CLC4SEL2bits_t;
20352 extern __at(0x0F32) volatile __CLC4SEL2bits_t CLC4SEL2bits;
20354 #define _CLC4SEL2_LC4D3S0 0x01
20355 #define _CLC4SEL2_D3S0 0x01
20356 #define _CLC4SEL2_LC4D3S1 0x02
20357 #define _CLC4SEL2_D3S1 0x02
20358 #define _CLC4SEL2_LC4D3S2 0x04
20359 #define _CLC4SEL2_D3S2 0x04
20360 #define _CLC4SEL2_LC4D3S3 0x08
20361 #define _CLC4SEL2_D3S3 0x08
20362 #define _CLC4SEL2_LC4D3S4 0x10
20363 #define _CLC4SEL2_D3S4 0x10
20364 #define _CLC4SEL2_LC4D3S5 0x20
20365 #define _CLC4SEL2_D3S5 0x20
20367 //==============================================================================
20370 //==============================================================================
20371 // CLC4SEL3 Bits
20373 extern __at(0x0F33) __sfr CLC4SEL3;
20375 typedef union
20377 struct
20379 unsigned LC4D4S0 : 1;
20380 unsigned LC4D4S1 : 1;
20381 unsigned LC4D4S2 : 1;
20382 unsigned LC4D4S3 : 1;
20383 unsigned LC4D4S4 : 1;
20384 unsigned LC4D4S5 : 1;
20385 unsigned : 1;
20386 unsigned : 1;
20389 struct
20391 unsigned D4S0 : 1;
20392 unsigned D4S1 : 1;
20393 unsigned D4S2 : 1;
20394 unsigned D4S3 : 1;
20395 unsigned D4S4 : 1;
20396 unsigned D4S5 : 1;
20397 unsigned : 1;
20398 unsigned : 1;
20401 struct
20403 unsigned LC4D4S : 6;
20404 unsigned : 2;
20407 struct
20409 unsigned D4S : 6;
20410 unsigned : 2;
20412 } __CLC4SEL3bits_t;
20414 extern __at(0x0F33) volatile __CLC4SEL3bits_t CLC4SEL3bits;
20416 #define _CLC4SEL3_LC4D4S0 0x01
20417 #define _CLC4SEL3_D4S0 0x01
20418 #define _CLC4SEL3_LC4D4S1 0x02
20419 #define _CLC4SEL3_D4S1 0x02
20420 #define _CLC4SEL3_LC4D4S2 0x04
20421 #define _CLC4SEL3_D4S2 0x04
20422 #define _CLC4SEL3_LC4D4S3 0x08
20423 #define _CLC4SEL3_D4S3 0x08
20424 #define _CLC4SEL3_LC4D4S4 0x10
20425 #define _CLC4SEL3_D4S4 0x10
20426 #define _CLC4SEL3_LC4D4S5 0x20
20427 #define _CLC4SEL3_D4S5 0x20
20429 //==============================================================================
20432 //==============================================================================
20433 // CLC4GLS0 Bits
20435 extern __at(0x0F34) __sfr CLC4GLS0;
20437 typedef union
20439 struct
20441 unsigned LC4G1D1N : 1;
20442 unsigned LC4G1D1T : 1;
20443 unsigned LC4G1D2N : 1;
20444 unsigned LC4G1D2T : 1;
20445 unsigned LC4G1D3N : 1;
20446 unsigned LC4G1D3T : 1;
20447 unsigned LC4G1D4N : 1;
20448 unsigned LC4G1D4T : 1;
20451 struct
20453 unsigned D1N : 1;
20454 unsigned D1T : 1;
20455 unsigned D2N : 1;
20456 unsigned D2T : 1;
20457 unsigned D3N : 1;
20458 unsigned D3T : 1;
20459 unsigned D4N : 1;
20460 unsigned D4T : 1;
20462 } __CLC4GLS0bits_t;
20464 extern __at(0x0F34) volatile __CLC4GLS0bits_t CLC4GLS0bits;
20466 #define _CLC4GLS0_LC4G1D1N 0x01
20467 #define _CLC4GLS0_D1N 0x01
20468 #define _CLC4GLS0_LC4G1D1T 0x02
20469 #define _CLC4GLS0_D1T 0x02
20470 #define _CLC4GLS0_LC4G1D2N 0x04
20471 #define _CLC4GLS0_D2N 0x04
20472 #define _CLC4GLS0_LC4G1D2T 0x08
20473 #define _CLC4GLS0_D2T 0x08
20474 #define _CLC4GLS0_LC4G1D3N 0x10
20475 #define _CLC4GLS0_D3N 0x10
20476 #define _CLC4GLS0_LC4G1D3T 0x20
20477 #define _CLC4GLS0_D3T 0x20
20478 #define _CLC4GLS0_LC4G1D4N 0x40
20479 #define _CLC4GLS0_D4N 0x40
20480 #define _CLC4GLS0_LC4G1D4T 0x80
20481 #define _CLC4GLS0_D4T 0x80
20483 //==============================================================================
20486 //==============================================================================
20487 // CLC4GLS1 Bits
20489 extern __at(0x0F35) __sfr CLC4GLS1;
20491 typedef union
20493 struct
20495 unsigned LC4G2D1N : 1;
20496 unsigned LC4G2D1T : 1;
20497 unsigned LC4G2D2N : 1;
20498 unsigned LC4G2D2T : 1;
20499 unsigned LC4G2D3N : 1;
20500 unsigned LC4G2D3T : 1;
20501 unsigned LC4G2D4N : 1;
20502 unsigned LC4G2D4T : 1;
20505 struct
20507 unsigned D1N : 1;
20508 unsigned D1T : 1;
20509 unsigned D2N : 1;
20510 unsigned D2T : 1;
20511 unsigned D3N : 1;
20512 unsigned D3T : 1;
20513 unsigned D4N : 1;
20514 unsigned D4T : 1;
20516 } __CLC4GLS1bits_t;
20518 extern __at(0x0F35) volatile __CLC4GLS1bits_t CLC4GLS1bits;
20520 #define _CLC4GLS1_LC4G2D1N 0x01
20521 #define _CLC4GLS1_D1N 0x01
20522 #define _CLC4GLS1_LC4G2D1T 0x02
20523 #define _CLC4GLS1_D1T 0x02
20524 #define _CLC4GLS1_LC4G2D2N 0x04
20525 #define _CLC4GLS1_D2N 0x04
20526 #define _CLC4GLS1_LC4G2D2T 0x08
20527 #define _CLC4GLS1_D2T 0x08
20528 #define _CLC4GLS1_LC4G2D3N 0x10
20529 #define _CLC4GLS1_D3N 0x10
20530 #define _CLC4GLS1_LC4G2D3T 0x20
20531 #define _CLC4GLS1_D3T 0x20
20532 #define _CLC4GLS1_LC4G2D4N 0x40
20533 #define _CLC4GLS1_D4N 0x40
20534 #define _CLC4GLS1_LC4G2D4T 0x80
20535 #define _CLC4GLS1_D4T 0x80
20537 //==============================================================================
20540 //==============================================================================
20541 // CLC4GLS2 Bits
20543 extern __at(0x0F36) __sfr CLC4GLS2;
20545 typedef union
20547 struct
20549 unsigned LC4G3D1N : 1;
20550 unsigned LC4G3D1T : 1;
20551 unsigned LC4G3D2N : 1;
20552 unsigned LC4G3D2T : 1;
20553 unsigned LC4G3D3N : 1;
20554 unsigned LC4G3D3T : 1;
20555 unsigned LC4G3D4N : 1;
20556 unsigned LC4G3D4T : 1;
20559 struct
20561 unsigned D1N : 1;
20562 unsigned D1T : 1;
20563 unsigned D2N : 1;
20564 unsigned D2T : 1;
20565 unsigned D3N : 1;
20566 unsigned D3T : 1;
20567 unsigned D4N : 1;
20568 unsigned D4T : 1;
20570 } __CLC4GLS2bits_t;
20572 extern __at(0x0F36) volatile __CLC4GLS2bits_t CLC4GLS2bits;
20574 #define _CLC4GLS2_LC4G3D1N 0x01
20575 #define _CLC4GLS2_D1N 0x01
20576 #define _CLC4GLS2_LC4G3D1T 0x02
20577 #define _CLC4GLS2_D1T 0x02
20578 #define _CLC4GLS2_LC4G3D2N 0x04
20579 #define _CLC4GLS2_D2N 0x04
20580 #define _CLC4GLS2_LC4G3D2T 0x08
20581 #define _CLC4GLS2_D2T 0x08
20582 #define _CLC4GLS2_LC4G3D3N 0x10
20583 #define _CLC4GLS2_D3N 0x10
20584 #define _CLC4GLS2_LC4G3D3T 0x20
20585 #define _CLC4GLS2_D3T 0x20
20586 #define _CLC4GLS2_LC4G3D4N 0x40
20587 #define _CLC4GLS2_D4N 0x40
20588 #define _CLC4GLS2_LC4G3D4T 0x80
20589 #define _CLC4GLS2_D4T 0x80
20591 //==============================================================================
20594 //==============================================================================
20595 // CLC4GLS3 Bits
20597 extern __at(0x0F37) __sfr CLC4GLS3;
20599 typedef union
20601 struct
20603 unsigned LC4G4D1N : 1;
20604 unsigned LC4G4D1T : 1;
20605 unsigned LC4G4D2N : 1;
20606 unsigned LC4G4D2T : 1;
20607 unsigned LC4G4D3N : 1;
20608 unsigned LC4G4D3T : 1;
20609 unsigned LC4G4D4N : 1;
20610 unsigned LC4G4D4T : 1;
20613 struct
20615 unsigned G4D1N : 1;
20616 unsigned G4D1T : 1;
20617 unsigned G4D2N : 1;
20618 unsigned G4D2T : 1;
20619 unsigned G4D3N : 1;
20620 unsigned G4D3T : 1;
20621 unsigned G4D4N : 1;
20622 unsigned G4D4T : 1;
20624 } __CLC4GLS3bits_t;
20626 extern __at(0x0F37) volatile __CLC4GLS3bits_t CLC4GLS3bits;
20628 #define _CLC4GLS3_LC4G4D1N 0x01
20629 #define _CLC4GLS3_G4D1N 0x01
20630 #define _CLC4GLS3_LC4G4D1T 0x02
20631 #define _CLC4GLS3_G4D1T 0x02
20632 #define _CLC4GLS3_LC4G4D2N 0x04
20633 #define _CLC4GLS3_G4D2N 0x04
20634 #define _CLC4GLS3_LC4G4D2T 0x08
20635 #define _CLC4GLS3_G4D2T 0x08
20636 #define _CLC4GLS3_LC4G4D3N 0x10
20637 #define _CLC4GLS3_G4D3N 0x10
20638 #define _CLC4GLS3_LC4G4D3T 0x20
20639 #define _CLC4GLS3_G4D3T 0x20
20640 #define _CLC4GLS3_LC4G4D4N 0x40
20641 #define _CLC4GLS3_G4D4N 0x40
20642 #define _CLC4GLS3_LC4G4D4T 0x80
20643 #define _CLC4GLS3_G4D4T 0x80
20645 //==============================================================================
20648 //==============================================================================
20649 // STATUS_SHAD Bits
20651 extern __at(0x0FE4) __sfr STATUS_SHAD;
20653 typedef struct
20655 unsigned C_SHAD : 1;
20656 unsigned DC_SHAD : 1;
20657 unsigned Z_SHAD : 1;
20658 unsigned : 1;
20659 unsigned : 1;
20660 unsigned : 1;
20661 unsigned : 1;
20662 unsigned : 1;
20663 } __STATUS_SHADbits_t;
20665 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
20667 #define _C_SHAD 0x01
20668 #define _DC_SHAD 0x02
20669 #define _Z_SHAD 0x04
20671 //==============================================================================
20673 extern __at(0x0FE5) __sfr WREG_SHAD;
20674 extern __at(0x0FE6) __sfr BSR_SHAD;
20675 extern __at(0x0FE7) __sfr PCLATH_SHAD;
20676 extern __at(0x0FE8) __sfr FSR0L_SHAD;
20677 extern __at(0x0FE9) __sfr FSR0H_SHAD;
20678 extern __at(0x0FEA) __sfr FSR1L_SHAD;
20679 extern __at(0x0FEB) __sfr FSR1H_SHAD;
20680 extern __at(0x0FED) __sfr STKPTR;
20681 extern __at(0x0FEE) __sfr TOSL;
20682 extern __at(0x0FEF) __sfr TOSH;
20684 //==============================================================================
20686 // Configuration Bits
20688 //==============================================================================
20690 #define _CONFIG1 0x8007
20691 #define _CONFIG2 0x8008
20693 //----------------------------- CONFIG1 Options -------------------------------
20695 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
20696 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
20697 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
20698 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
20699 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
20700 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
20701 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
20702 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
20703 #define _WDTE_OFF 0x3FE7 // WDT disabled.
20704 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
20705 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
20706 #define _WDTE_ON 0x3FFF // WDT enabled.
20707 #define _PWRTE_ON 0x3FDF // PWRT enabled.
20708 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
20709 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
20710 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
20711 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
20712 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
20713 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
20714 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
20715 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
20716 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
20717 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
20718 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
20719 #define _IESO_OFF 0x2FFF // Internal/External Switchover Mode is disabled.
20720 #define _IESO_ON 0x3FFF // Internal/External Switchover Mode is enabled.
20721 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
20722 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
20724 //----------------------------- CONFIG2 Options -------------------------------
20726 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
20727 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
20728 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
20729 #define _WRT_OFF 0x3FFF // Write protection off.
20730 #define _PPS1WAY_OFF 0x3FFB // The PPSLOCK bit can be set and cleared repeatedly by software.
20731 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit cannot be cleared once it is set by software.
20732 #define _ZCD_ON 0x3F7F // Zero-cross detect circuit is enabled at POR.
20733 #define _ZCD_OFF 0x3FFF // Zero-cross detect circuit is disabled at POR.
20734 #define _PLLEN_OFF 0x3EFF // 4x PLL is enabled when software sets the SPLLEN bit.
20735 #define _PLLEN_ON 0x3FFF // 4x PLL is always enabled.
20736 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
20737 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
20738 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
20739 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
20740 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
20741 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
20742 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
20743 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
20744 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
20745 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
20747 //==============================================================================
20749 #define _DEVID1 0x8006
20751 #define _IDLOC0 0x8000
20752 #define _IDLOC1 0x8001
20753 #define _IDLOC2 0x8002
20754 #define _IDLOC3 0x8003
20756 //==============================================================================
20758 #ifndef NO_BIT_DEFINES
20760 #define ADON ADCON0bits.ADON // bit 0
20761 #define GO ADCON0bits.GO // bit 1
20763 #define ADNREF ADCON1bits.ADNREF // bit 2
20764 #define ADFM ADCON1bits.ADFM // bit 7
20766 #define ANSA0 ANSELAbits.ANSA0 // bit 0
20767 #define ANSA1 ANSELAbits.ANSA1 // bit 1
20768 #define ANSA2 ANSELAbits.ANSA2 // bit 2
20769 #define ANSA3 ANSELAbits.ANSA3 // bit 3
20770 #define ANSA4 ANSELAbits.ANSA4 // bit 4
20771 #define ANSA5 ANSELAbits.ANSA5 // bit 5
20773 #define ANSB0 ANSELBbits.ANSB0 // bit 0
20774 #define ANSB1 ANSELBbits.ANSB1 // bit 1
20775 #define ANSB2 ANSELBbits.ANSB2 // bit 2
20776 #define ANSB3 ANSELBbits.ANSB3 // bit 3
20777 #define ANSB4 ANSELBbits.ANSB4 // bit 4
20778 #define ANSB5 ANSELBbits.ANSB5 // bit 5
20780 #define ANSC2 ANSELCbits.ANSC2 // bit 2
20781 #define ANSC3 ANSELCbits.ANSC3 // bit 3
20782 #define ANSC4 ANSELCbits.ANSC4 // bit 4
20783 #define ANSC5 ANSELCbits.ANSC5 // bit 5
20784 #define ANSC6 ANSELCbits.ANSC6 // bit 6
20785 #define ANSC7 ANSELCbits.ANSC7 // bit 7
20787 #define ABDEN BAUD1CONbits.ABDEN // bit 0
20788 #define WUE BAUD1CONbits.WUE // bit 1
20789 #define BRG16 BAUD1CONbits.BRG16 // bit 3
20790 #define SCKP BAUD1CONbits.SCKP // bit 4
20791 #define RCIDL BAUD1CONbits.RCIDL // bit 6
20792 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
20794 #define BORRDY BORCONbits.BORRDY // bit 0
20795 #define BORFS BORCONbits.BORFS // bit 6
20796 #define SBOREN BORCONbits.SBOREN // bit 7
20798 #define BSR0 BSRbits.BSR0 // bit 0
20799 #define BSR1 BSRbits.BSR1 // bit 1
20800 #define BSR2 BSRbits.BSR2 // bit 2
20801 #define BSR3 BSRbits.BSR3 // bit 3
20802 #define BSR4 BSRbits.BSR4 // bit 4
20804 #define CTS0 CCP1CAPbits.CTS0 // bit 0, shadows bit in CCP1CAPbits
20805 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0, shadows bit in CCP1CAPbits
20806 #define CTS1 CCP1CAPbits.CTS1 // bit 1, shadows bit in CCP1CAPbits
20807 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1, shadows bit in CCP1CAPbits
20808 #define CTS2 CCP1CAPbits.CTS2 // bit 2, shadows bit in CCP1CAPbits
20809 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2, shadows bit in CCP1CAPbits
20810 #define CTS3 CCP1CAPbits.CTS3 // bit 3, shadows bit in CCP1CAPbits
20811 #define CCP1CTS3 CCP1CAPbits.CCP1CTS3 // bit 3, shadows bit in CCP1CAPbits
20813 #define MODE0 CCP1CONbits.MODE0 // bit 0, shadows bit in CCP1CONbits
20814 #define CCP1MODE0 CCP1CONbits.CCP1MODE0 // bit 0, shadows bit in CCP1CONbits
20815 #define MODE1 CCP1CONbits.MODE1 // bit 1, shadows bit in CCP1CONbits
20816 #define CCP1MODE1 CCP1CONbits.CCP1MODE1 // bit 1, shadows bit in CCP1CONbits
20817 #define MODE2 CCP1CONbits.MODE2 // bit 2, shadows bit in CCP1CONbits
20818 #define CCP1MODE2 CCP1CONbits.CCP1MODE2 // bit 2, shadows bit in CCP1CONbits
20819 #define MODE3 CCP1CONbits.MODE3 // bit 3, shadows bit in CCP1CONbits
20820 #define CCP1MODE3 CCP1CONbits.CCP1MODE3 // bit 3, shadows bit in CCP1CONbits
20821 #define FMT CCP1CONbits.FMT // bit 4, shadows bit in CCP1CONbits
20822 #define CCP1FMT CCP1CONbits.CCP1FMT // bit 4, shadows bit in CCP1CONbits
20823 #define OUT CCP1CONbits.OUT // bit 5, shadows bit in CCP1CONbits
20824 #define CCP1OUT CCP1CONbits.CCP1OUT // bit 5, shadows bit in CCP1CONbits
20825 #define EN CCP1CONbits.EN // bit 7, shadows bit in CCP1CONbits
20826 #define CCP1EN CCP1CONbits.CCP1EN // bit 7, shadows bit in CCP1CONbits
20828 #define C1TSEL0 CCPTMRS1bits.C1TSEL0 // bit 0
20829 #define C1TSEL1 CCPTMRS1bits.C1TSEL1 // bit 1
20830 #define C2TSEL0 CCPTMRS1bits.C2TSEL0 // bit 2
20831 #define C2TSEL1 CCPTMRS1bits.C2TSEL1 // bit 3
20832 #define C7TSEL0 CCPTMRS1bits.C7TSEL0 // bit 4
20833 #define C7TSEL1 CCPTMRS1bits.C7TSEL1 // bit 5
20835 #define P3TSEL0 CCPTMRS2bits.P3TSEL0 // bit 0
20836 #define P3TSEL1 CCPTMRS2bits.P3TSEL1 // bit 1
20837 #define P4TSEL0 CCPTMRS2bits.P4TSEL0 // bit 2
20838 #define P4TSEL1 CCPTMRS2bits.P4TSEL1 // bit 3
20839 #define P9TSEL0 CCPTMRS2bits.P9TSEL0 // bit 4
20840 #define P9TSEL1 CCPTMRS2bits.P9TSEL1 // bit 5
20842 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
20843 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
20844 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
20845 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
20846 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
20847 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
20848 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
20849 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
20850 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
20851 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
20852 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
20853 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
20854 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
20855 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
20856 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
20857 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
20859 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
20860 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
20861 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
20862 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
20863 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
20864 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
20865 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
20866 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
20867 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
20868 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
20869 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
20870 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
20871 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
20872 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
20873 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
20874 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
20876 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
20877 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
20878 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
20879 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
20880 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
20881 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
20882 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
20883 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
20884 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
20885 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
20887 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
20888 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
20889 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
20890 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
20891 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
20892 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
20893 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
20894 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
20895 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
20896 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
20897 #define LC1D1S5 CLC1SEL0bits.LC1D1S5 // bit 5, shadows bit in CLC1SEL0bits
20898 #define D1S5 CLC1SEL0bits.D1S5 // bit 5, shadows bit in CLC1SEL0bits
20900 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
20901 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
20902 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
20903 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
20904 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
20905 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
20906 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
20907 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
20908 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
20909 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
20910 #define LC1D2S5 CLC1SEL1bits.LC1D2S5 // bit 5, shadows bit in CLC1SEL1bits
20911 #define D2S5 CLC1SEL1bits.D2S5 // bit 5, shadows bit in CLC1SEL1bits
20913 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
20914 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
20915 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
20916 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
20917 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
20918 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
20919 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
20920 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
20921 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
20922 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
20923 #define LC1D3S5 CLC1SEL2bits.LC1D3S5 // bit 5, shadows bit in CLC1SEL2bits
20924 #define D3S5 CLC1SEL2bits.D3S5 // bit 5, shadows bit in CLC1SEL2bits
20926 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
20927 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
20928 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
20929 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
20930 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
20931 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
20932 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
20933 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
20934 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
20935 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
20936 #define LC1D4S5 CLC1SEL3bits.LC1D4S5 // bit 5, shadows bit in CLC1SEL3bits
20937 #define D4S5 CLC1SEL3bits.D4S5 // bit 5, shadows bit in CLC1SEL3bits
20939 #define MCLC1OUT CLCDATAbits.MCLC1OUT // bit 0
20940 #define MCLC2OUT CLCDATAbits.MCLC2OUT // bit 1
20941 #define MCLC3OUT CLCDATAbits.MCLC3OUT // bit 2
20942 #define MLC4OUT CLCDATAbits.MLC4OUT // bit 3
20944 #define C1NCH0 CM1NSELbits.C1NCH0 // bit 0
20945 #define C1NCH1 CM1NSELbits.C1NCH1 // bit 1
20946 #define C1NCH2 CM1NSELbits.C1NCH2 // bit 2
20947 #define C1NCH3 CM1NSELbits.C1NCH3 // bit 3
20949 #define PCH0 CM1PSELbits.PCH0 // bit 0, shadows bit in CM1PSELbits
20950 #define C1PCH0 CM1PSELbits.C1PCH0 // bit 0, shadows bit in CM1PSELbits
20951 #define PCH1 CM1PSELbits.PCH1 // bit 1, shadows bit in CM1PSELbits
20952 #define C1PCH1 CM1PSELbits.C1PCH1 // bit 1, shadows bit in CM1PSELbits
20953 #define PCH2 CM1PSELbits.PCH2 // bit 2, shadows bit in CM1PSELbits
20954 #define C1PCH2 CM1PSELbits.C1PCH2 // bit 2, shadows bit in CM1PSELbits
20955 #define PCH3 CM1PSELbits.PCH3 // bit 3, shadows bit in CM1PSELbits
20956 #define C1PCH3 CM1PSELbits.C1PCH3 // bit 3, shadows bit in CM1PSELbits
20958 #define C2NCH0 CM2NSELbits.C2NCH0 // bit 0
20959 #define C2NCH1 CM2NSELbits.C2NCH1 // bit 1
20960 #define C2NCH2 CM2NSELbits.C2NCH2 // bit 2
20961 #define C2NCH3 CM2NSELbits.C2NCH3 // bit 3
20963 #define C3NCH0 CM3NSELbits.C3NCH0 // bit 0
20964 #define C3NCH1 CM3NSELbits.C3NCH1 // bit 1
20965 #define C3NCH2 CM3NSELbits.C3NCH2 // bit 2
20966 #define C3NCH3 CM3NSELbits.C3NCH3 // bit 3
20968 #define C4NCH0 CM4NSELbits.C4NCH0 // bit 0
20969 #define C4NCH1 CM4NSELbits.C4NCH1 // bit 1
20970 #define C4NCH2 CM4NSELbits.C4NCH2 // bit 2
20971 #define C4NCH3 CM4NSELbits.C4NCH3 // bit 3
20973 #define C5NCH0 CM5NSELbits.C5NCH0 // bit 0
20974 #define C5NCH1 CM5NSELbits.C5NCH1 // bit 1
20975 #define C5NCH2 CM5NSELbits.C5NCH2 // bit 2
20976 #define C5NCH3 CM5NSELbits.C5NCH3 // bit 3
20978 #define C6NCH0 CM6NSELbits.C6NCH0 // bit 0
20979 #define C6NCH1 CM6NSELbits.C6NCH1 // bit 1
20980 #define C6NCH2 CM6NSELbits.C6NCH2 // bit 2
20981 #define C6NCH3 CM6NSELbits.C6NCH3 // bit 3
20983 #define MC1OUT CMOUTbits.MC1OUT // bit 0
20984 #define MC2OUT CMOUTbits.MC2OUT // bit 1
20985 #define MC3OUT CMOUTbits.MC3OUT // bit 2
20986 #define MC4OUT CMOUTbits.MC4OUT // bit 3
20987 #define MC5OUT CMOUTbits.MC5OUT // bit 4
20988 #define MC6OUT CMOUTbits.MC6OUT // bit 5
20990 #define ASDAC0 COG1ASD0bits.ASDAC0 // bit 2, shadows bit in COG1ASD0bits
20991 #define G1ASDAC0 COG1ASD0bits.G1ASDAC0 // bit 2, shadows bit in COG1ASD0bits
20992 #define ASDAC1 COG1ASD0bits.ASDAC1 // bit 3, shadows bit in COG1ASD0bits
20993 #define G1ASDAC1 COG1ASD0bits.G1ASDAC1 // bit 3, shadows bit in COG1ASD0bits
20994 #define ASDBD0 COG1ASD0bits.ASDBD0 // bit 4, shadows bit in COG1ASD0bits
20995 #define G1ASDBD0 COG1ASD0bits.G1ASDBD0 // bit 4, shadows bit in COG1ASD0bits
20996 #define ASDBD1 COG1ASD0bits.ASDBD1 // bit 5, shadows bit in COG1ASD0bits
20997 #define G1ASDBD1 COG1ASD0bits.G1ASDBD1 // bit 5, shadows bit in COG1ASD0bits
20998 #define ASREN COG1ASD0bits.ASREN // bit 6, shadows bit in COG1ASD0bits
20999 #define ARSEN COG1ASD0bits.ARSEN // bit 6, shadows bit in COG1ASD0bits
21000 #define G1ARSEN COG1ASD0bits.G1ARSEN // bit 6, shadows bit in COG1ASD0bits
21001 #define G1ASREN COG1ASD0bits.G1ASREN // bit 6, shadows bit in COG1ASD0bits
21002 #define ASE COG1ASD0bits.ASE // bit 7, shadows bit in COG1ASD0bits
21003 #define G1ASE COG1ASD0bits.G1ASE // bit 7, shadows bit in COG1ASD0bits
21005 #define AS0E COG1ASD1bits.AS0E // bit 0, shadows bit in COG1ASD1bits
21006 #define G1AS0E COG1ASD1bits.G1AS0E // bit 0, shadows bit in COG1ASD1bits
21007 #define AS1E COG1ASD1bits.AS1E // bit 1, shadows bit in COG1ASD1bits
21008 #define G1AS1E COG1ASD1bits.G1AS1E // bit 1, shadows bit in COG1ASD1bits
21009 #define AS2E COG1ASD1bits.AS2E // bit 2, shadows bit in COG1ASD1bits
21010 #define G1AS2E COG1ASD1bits.G1AS2E // bit 2, shadows bit in COG1ASD1bits
21011 #define AS3E COG1ASD1bits.AS3E // bit 3, shadows bit in COG1ASD1bits
21012 #define G1AS3E COG1ASD1bits.G1AS3E // bit 3, shadows bit in COG1ASD1bits
21013 #define AS4E COG1ASD1bits.AS4E // bit 4, shadows bit in COG1ASD1bits
21014 #define G1AS4E COG1ASD1bits.G1AS4E // bit 4, shadows bit in COG1ASD1bits
21015 #define AS5E COG1ASD1bits.AS5E // bit 5, shadows bit in COG1ASD1bits
21016 #define G1AS5E COG1ASD1bits.G1AS5E // bit 5, shadows bit in COG1ASD1bits
21017 #define AS6E COG1ASD1bits.AS6E // bit 6, shadows bit in COG1ASD1bits
21018 #define G1AS6E COG1ASD1bits.G1AS6E // bit 6, shadows bit in COG1ASD1bits
21019 #define AS7E COG1ASD1bits.AS7E // bit 7, shadows bit in COG1ASD1bits
21020 #define G1AS7E COG1ASD1bits.G1AS7E // bit 7, shadows bit in COG1ASD1bits
21022 #define BLKF0 COG1BLKFbits.BLKF0 // bit 0, shadows bit in COG1BLKFbits
21023 #define G1BLKF0 COG1BLKFbits.G1BLKF0 // bit 0, shadows bit in COG1BLKFbits
21024 #define BLKF1 COG1BLKFbits.BLKF1 // bit 1, shadows bit in COG1BLKFbits
21025 #define G1BLKF1 COG1BLKFbits.G1BLKF1 // bit 1, shadows bit in COG1BLKFbits
21026 #define BLKF2 COG1BLKFbits.BLKF2 // bit 2, shadows bit in COG1BLKFbits
21027 #define G1BLKF2 COG1BLKFbits.G1BLKF2 // bit 2, shadows bit in COG1BLKFbits
21028 #define BLKF3 COG1BLKFbits.BLKF3 // bit 3, shadows bit in COG1BLKFbits
21029 #define G1BLKF3 COG1BLKFbits.G1BLKF3 // bit 3, shadows bit in COG1BLKFbits
21030 #define BLKF4 COG1BLKFbits.BLKF4 // bit 4, shadows bit in COG1BLKFbits
21031 #define G1BLKF4 COG1BLKFbits.G1BLKF4 // bit 4, shadows bit in COG1BLKFbits
21032 #define BLKF5 COG1BLKFbits.BLKF5 // bit 5, shadows bit in COG1BLKFbits
21033 #define G1BLKF5 COG1BLKFbits.G1BLKF5 // bit 5, shadows bit in COG1BLKFbits
21035 #define BLKR0 COG1BLKRbits.BLKR0 // bit 0, shadows bit in COG1BLKRbits
21036 #define G1BLKR0 COG1BLKRbits.G1BLKR0 // bit 0, shadows bit in COG1BLKRbits
21037 #define BLKR1 COG1BLKRbits.BLKR1 // bit 1, shadows bit in COG1BLKRbits
21038 #define G1BLKR1 COG1BLKRbits.G1BLKR1 // bit 1, shadows bit in COG1BLKRbits
21039 #define BLKR2 COG1BLKRbits.BLKR2 // bit 2, shadows bit in COG1BLKRbits
21040 #define G1BLKR2 COG1BLKRbits.G1BLKR2 // bit 2, shadows bit in COG1BLKRbits
21041 #define BLKR3 COG1BLKRbits.BLKR3 // bit 3, shadows bit in COG1BLKRbits
21042 #define G1BLKR3 COG1BLKRbits.G1BLKR3 // bit 3, shadows bit in COG1BLKRbits
21043 #define BLKR4 COG1BLKRbits.BLKR4 // bit 4, shadows bit in COG1BLKRbits
21044 #define G1BLKR4 COG1BLKRbits.G1BLKR4 // bit 4, shadows bit in COG1BLKRbits
21045 #define BLKR5 COG1BLKRbits.BLKR5 // bit 5, shadows bit in COG1BLKRbits
21046 #define G1BLKR5 COG1BLKRbits.G1BLKR5 // bit 5, shadows bit in COG1BLKRbits
21048 #define POLA COG1CON1bits.POLA // bit 0, shadows bit in COG1CON1bits
21049 #define G1POLA COG1CON1bits.G1POLA // bit 0, shadows bit in COG1CON1bits
21050 #define POLB COG1CON1bits.POLB // bit 1, shadows bit in COG1CON1bits
21051 #define G1POLB COG1CON1bits.G1POLB // bit 1, shadows bit in COG1CON1bits
21052 #define POLC COG1CON1bits.POLC // bit 2, shadows bit in COG1CON1bits
21053 #define G1POLC COG1CON1bits.G1POLC // bit 2, shadows bit in COG1CON1bits
21054 #define POLD COG1CON1bits.POLD // bit 3, shadows bit in COG1CON1bits
21055 #define G1POLD COG1CON1bits.G1POLD // bit 3, shadows bit in COG1CON1bits
21056 #define FDBS COG1CON1bits.FDBS // bit 6, shadows bit in COG1CON1bits
21057 #define G1FDBS COG1CON1bits.G1FDBS // bit 6, shadows bit in COG1CON1bits
21058 #define RDBS COG1CON1bits.RDBS // bit 7, shadows bit in COG1CON1bits
21059 #define G1RDBS COG1CON1bits.G1RDBS // bit 7, shadows bit in COG1CON1bits
21061 #define DBF0 COG1DBFbits.DBF0 // bit 0, shadows bit in COG1DBFbits
21062 #define G1DBF0 COG1DBFbits.G1DBF0 // bit 0, shadows bit in COG1DBFbits
21063 #define DBF1 COG1DBFbits.DBF1 // bit 1, shadows bit in COG1DBFbits
21064 #define G1DBF1 COG1DBFbits.G1DBF1 // bit 1, shadows bit in COG1DBFbits
21065 #define DBF2 COG1DBFbits.DBF2 // bit 2, shadows bit in COG1DBFbits
21066 #define G1DBF2 COG1DBFbits.G1DBF2 // bit 2, shadows bit in COG1DBFbits
21067 #define DBF3 COG1DBFbits.DBF3 // bit 3, shadows bit in COG1DBFbits
21068 #define G1DBF3 COG1DBFbits.G1DBF3 // bit 3, shadows bit in COG1DBFbits
21069 #define DBF4 COG1DBFbits.DBF4 // bit 4, shadows bit in COG1DBFbits
21070 #define G1DBF4 COG1DBFbits.G1DBF4 // bit 4, shadows bit in COG1DBFbits
21071 #define DBF5 COG1DBFbits.DBF5 // bit 5, shadows bit in COG1DBFbits
21072 #define G1DBF5 COG1DBFbits.G1DBF5 // bit 5, shadows bit in COG1DBFbits
21074 #define DBR0 COG1DBRbits.DBR0 // bit 0, shadows bit in COG1DBRbits
21075 #define G1DBR0 COG1DBRbits.G1DBR0 // bit 0, shadows bit in COG1DBRbits
21076 #define DBR1 COG1DBRbits.DBR1 // bit 1, shadows bit in COG1DBRbits
21077 #define G1DBR1 COG1DBRbits.G1DBR1 // bit 1, shadows bit in COG1DBRbits
21078 #define DBR2 COG1DBRbits.DBR2 // bit 2, shadows bit in COG1DBRbits
21079 #define G1DBR2 COG1DBRbits.G1DBR2 // bit 2, shadows bit in COG1DBRbits
21080 #define DBR3 COG1DBRbits.DBR3 // bit 3, shadows bit in COG1DBRbits
21081 #define G1DBR3 COG1DBRbits.G1DBR3 // bit 3, shadows bit in COG1DBRbits
21082 #define DBR4 COG1DBRbits.DBR4 // bit 4, shadows bit in COG1DBRbits
21083 #define G1DBR4 COG1DBRbits.G1DBR4 // bit 4, shadows bit in COG1DBRbits
21084 #define DBR5 COG1DBRbits.DBR5 // bit 5, shadows bit in COG1DBRbits
21085 #define G1DBR5 COG1DBRbits.G1DBR5 // bit 5, shadows bit in COG1DBRbits
21087 #define FIS0 COG1FIS0bits.FIS0 // bit 0, shadows bit in COG1FIS0bits
21088 #define G1FIS0 COG1FIS0bits.G1FIS0 // bit 0, shadows bit in COG1FIS0bits
21089 #define FIS1 COG1FIS0bits.FIS1 // bit 1, shadows bit in COG1FIS0bits
21090 #define G1FIS1 COG1FIS0bits.G1FIS1 // bit 1, shadows bit in COG1FIS0bits
21091 #define FIS2 COG1FIS0bits.FIS2 // bit 2, shadows bit in COG1FIS0bits
21092 #define G1FIS2 COG1FIS0bits.G1FIS2 // bit 2, shadows bit in COG1FIS0bits
21093 #define FIS3 COG1FIS0bits.FIS3 // bit 3, shadows bit in COG1FIS0bits
21094 #define G1FIS3 COG1FIS0bits.G1FIS3 // bit 3, shadows bit in COG1FIS0bits
21095 #define FIS4 COG1FIS0bits.FIS4 // bit 4, shadows bit in COG1FIS0bits
21096 #define G1FIS4 COG1FIS0bits.G1FIS4 // bit 4, shadows bit in COG1FIS0bits
21097 #define FIS5 COG1FIS0bits.FIS5 // bit 5, shadows bit in COG1FIS0bits
21098 #define G1FIS5 COG1FIS0bits.G1FIS5 // bit 5, shadows bit in COG1FIS0bits
21099 #define FIS6 COG1FIS0bits.FIS6 // bit 6, shadows bit in COG1FIS0bits
21100 #define G1FIS6 COG1FIS0bits.G1FIS6 // bit 6, shadows bit in COG1FIS0bits
21101 #define FIS7 COG1FIS0bits.FIS7 // bit 7, shadows bit in COG1FIS0bits
21102 #define G1FIS7 COG1FIS0bits.G1FIS7 // bit 7, shadows bit in COG1FIS0bits
21104 #define FIS8 COG1FIS1bits.FIS8 // bit 0, shadows bit in COG1FIS1bits
21105 #define G1FIS8 COG1FIS1bits.G1FIS8 // bit 0, shadows bit in COG1FIS1bits
21106 #define FIS9 COG1FIS1bits.FIS9 // bit 1, shadows bit in COG1FIS1bits
21107 #define G1FIS9 COG1FIS1bits.G1FIS9 // bit 1, shadows bit in COG1FIS1bits
21108 #define FIS10 COG1FIS1bits.FIS10 // bit 2, shadows bit in COG1FIS1bits
21109 #define G1FIS10 COG1FIS1bits.G1FIS10 // bit 2, shadows bit in COG1FIS1bits
21110 #define FIS11 COG1FIS1bits.FIS11 // bit 3, shadows bit in COG1FIS1bits
21111 #define G1FIS11 COG1FIS1bits.G1FIS11 // bit 3, shadows bit in COG1FIS1bits
21112 #define FIS12 COG1FIS1bits.FIS12 // bit 4, shadows bit in COG1FIS1bits
21113 #define G1FIS12 COG1FIS1bits.G1FIS12 // bit 4, shadows bit in COG1FIS1bits
21114 #define FIS13 COG1FIS1bits.FIS13 // bit 5, shadows bit in COG1FIS1bits
21115 #define G1FIS13 COG1FIS1bits.G1FIS13 // bit 5, shadows bit in COG1FIS1bits
21116 #define FIS14 COG1FIS1bits.FIS14 // bit 6, shadows bit in COG1FIS1bits
21117 #define G1FIS14 COG1FIS1bits.G1FIS14 // bit 6, shadows bit in COG1FIS1bits
21118 #define FIS15 COG1FIS1bits.FIS15 // bit 7, shadows bit in COG1FIS1bits
21119 #define G1FIS15 COG1FIS1bits.G1FIS15 // bit 7, shadows bit in COG1FIS1bits
21121 #define FSIM0 COG1FSIM0bits.FSIM0 // bit 0, shadows bit in COG1FSIM0bits
21122 #define G1FSIM0 COG1FSIM0bits.G1FSIM0 // bit 0, shadows bit in COG1FSIM0bits
21123 #define FSIM1 COG1FSIM0bits.FSIM1 // bit 1, shadows bit in COG1FSIM0bits
21124 #define G1FSIM1 COG1FSIM0bits.G1FSIM1 // bit 1, shadows bit in COG1FSIM0bits
21125 #define FSIM2 COG1FSIM0bits.FSIM2 // bit 2, shadows bit in COG1FSIM0bits
21126 #define G1FSIM2 COG1FSIM0bits.G1FSIM2 // bit 2, shadows bit in COG1FSIM0bits
21127 #define FSIM3 COG1FSIM0bits.FSIM3 // bit 3, shadows bit in COG1FSIM0bits
21128 #define G1FSIM3 COG1FSIM0bits.G1FSIM3 // bit 3, shadows bit in COG1FSIM0bits
21129 #define FSIM4 COG1FSIM0bits.FSIM4 // bit 4, shadows bit in COG1FSIM0bits
21130 #define G1FSIM4 COG1FSIM0bits.G1FSIM4 // bit 4, shadows bit in COG1FSIM0bits
21131 #define FSIM5 COG1FSIM0bits.FSIM5 // bit 5, shadows bit in COG1FSIM0bits
21132 #define G1FSIM5 COG1FSIM0bits.G1FSIM5 // bit 5, shadows bit in COG1FSIM0bits
21133 #define FSIM6 COG1FSIM0bits.FSIM6 // bit 6, shadows bit in COG1FSIM0bits
21134 #define G1FSIM6 COG1FSIM0bits.G1FSIM6 // bit 6, shadows bit in COG1FSIM0bits
21135 #define FSIM7 COG1FSIM0bits.FSIM7 // bit 7, shadows bit in COG1FSIM0bits
21136 #define G1FSIM7 COG1FSIM0bits.G1FSIM7 // bit 7, shadows bit in COG1FSIM0bits
21138 #define FSIM8 COG1FSIM1bits.FSIM8 // bit 0, shadows bit in COG1FSIM1bits
21139 #define G1FSIM8 COG1FSIM1bits.G1FSIM8 // bit 0, shadows bit in COG1FSIM1bits
21140 #define FSIM9 COG1FSIM1bits.FSIM9 // bit 1, shadows bit in COG1FSIM1bits
21141 #define G1FSIM9 COG1FSIM1bits.G1FSIM9 // bit 1, shadows bit in COG1FSIM1bits
21142 #define FSIM10 COG1FSIM1bits.FSIM10 // bit 2, shadows bit in COG1FSIM1bits
21143 #define G1FSIM10 COG1FSIM1bits.G1FSIM10 // bit 2, shadows bit in COG1FSIM1bits
21144 #define FSIM11 COG1FSIM1bits.FSIM11 // bit 3, shadows bit in COG1FSIM1bits
21145 #define G1FSIM11 COG1FSIM1bits.G1FSIM11 // bit 3, shadows bit in COG1FSIM1bits
21146 #define FSIM12 COG1FSIM1bits.FSIM12 // bit 4, shadows bit in COG1FSIM1bits
21147 #define G1FSIM12 COG1FSIM1bits.G1FSIM12 // bit 4, shadows bit in COG1FSIM1bits
21148 #define FSIM13 COG1FSIM1bits.FSIM13 // bit 5, shadows bit in COG1FSIM1bits
21149 #define G1FSIM13 COG1FSIM1bits.G1FSIM13 // bit 5, shadows bit in COG1FSIM1bits
21150 #define FSIM14 COG1FSIM1bits.FSIM14 // bit 6, shadows bit in COG1FSIM1bits
21151 #define G1FSIM14 COG1FSIM1bits.G1FSIM14 // bit 6, shadows bit in COG1FSIM1bits
21152 #define FSIM15 COG1FSIM1bits.FSIM15 // bit 7, shadows bit in COG1FSIM1bits
21153 #define G1FSIM15 COG1FSIM1bits.G1FSIM15 // bit 7, shadows bit in COG1FSIM1bits
21155 #define PHF0 COG1PHFbits.PHF0 // bit 0, shadows bit in COG1PHFbits
21156 #define G1PHF0 COG1PHFbits.G1PHF0 // bit 0, shadows bit in COG1PHFbits
21157 #define PHF1 COG1PHFbits.PHF1 // bit 1, shadows bit in COG1PHFbits
21158 #define G1PHF1 COG1PHFbits.G1PHF1 // bit 1, shadows bit in COG1PHFbits
21159 #define PHF2 COG1PHFbits.PHF2 // bit 2, shadows bit in COG1PHFbits
21160 #define G1PHF2 COG1PHFbits.G1PHF2 // bit 2, shadows bit in COG1PHFbits
21161 #define PHF3 COG1PHFbits.PHF3 // bit 3, shadows bit in COG1PHFbits
21162 #define G1PHF3 COG1PHFbits.G1PHF3 // bit 3, shadows bit in COG1PHFbits
21163 #define PHF4 COG1PHFbits.PHF4 // bit 4, shadows bit in COG1PHFbits
21164 #define G1PHF4 COG1PHFbits.G1PHF4 // bit 4, shadows bit in COG1PHFbits
21165 #define PHF5 COG1PHFbits.PHF5 // bit 5, shadows bit in COG1PHFbits
21166 #define G1PHF5 COG1PHFbits.G1PHF5 // bit 5, shadows bit in COG1PHFbits
21168 #define PHR0 COG1PHRbits.PHR0 // bit 0, shadows bit in COG1PHRbits
21169 #define G1PHR0 COG1PHRbits.G1PHR0 // bit 0, shadows bit in COG1PHRbits
21170 #define PHR1 COG1PHRbits.PHR1 // bit 1, shadows bit in COG1PHRbits
21171 #define G1PHR1 COG1PHRbits.G1PHR1 // bit 1, shadows bit in COG1PHRbits
21172 #define PHR2 COG1PHRbits.PHR2 // bit 2, shadows bit in COG1PHRbits
21173 #define G1PHR2 COG1PHRbits.G1PHR2 // bit 2, shadows bit in COG1PHRbits
21174 #define PHR3 COG1PHRbits.PHR3 // bit 3, shadows bit in COG1PHRbits
21175 #define G1PHR3 COG1PHRbits.G1PHR3 // bit 3, shadows bit in COG1PHRbits
21176 #define PHR4 COG1PHRbits.PHR4 // bit 4, shadows bit in COG1PHRbits
21177 #define G1PHR4 COG1PHRbits.G1PHR4 // bit 4, shadows bit in COG1PHRbits
21178 #define PHR5 COG1PHRbits.PHR5 // bit 5, shadows bit in COG1PHRbits
21179 #define G1PHR5 COG1PHRbits.G1PHR5 // bit 5, shadows bit in COG1PHRbits
21181 #define RIS0 COG1RIS0bits.RIS0 // bit 0, shadows bit in COG1RIS0bits
21182 #define G1RIS0 COG1RIS0bits.G1RIS0 // bit 0, shadows bit in COG1RIS0bits
21183 #define RIS1 COG1RIS0bits.RIS1 // bit 1, shadows bit in COG1RIS0bits
21184 #define G1RIS1 COG1RIS0bits.G1RIS1 // bit 1, shadows bit in COG1RIS0bits
21185 #define RIS2 COG1RIS0bits.RIS2 // bit 2, shadows bit in COG1RIS0bits
21186 #define G1RIS2 COG1RIS0bits.G1RIS2 // bit 2, shadows bit in COG1RIS0bits
21187 #define RIS3 COG1RIS0bits.RIS3 // bit 3, shadows bit in COG1RIS0bits
21188 #define G1RIS3 COG1RIS0bits.G1RIS3 // bit 3, shadows bit in COG1RIS0bits
21189 #define RIS4 COG1RIS0bits.RIS4 // bit 4, shadows bit in COG1RIS0bits
21190 #define G1RIS4 COG1RIS0bits.G1RIS4 // bit 4, shadows bit in COG1RIS0bits
21191 #define RIS5 COG1RIS0bits.RIS5 // bit 5, shadows bit in COG1RIS0bits
21192 #define G1RIS5 COG1RIS0bits.G1RIS5 // bit 5, shadows bit in COG1RIS0bits
21193 #define RIS6 COG1RIS0bits.RIS6 // bit 6, shadows bit in COG1RIS0bits
21194 #define G1RIS6 COG1RIS0bits.G1RIS6 // bit 6, shadows bit in COG1RIS0bits
21195 #define RIS7 COG1RIS0bits.RIS7 // bit 7, shadows bit in COG1RIS0bits
21196 #define G1RIS7 COG1RIS0bits.G1RIS7 // bit 7, shadows bit in COG1RIS0bits
21198 #define RIS8 COG1RIS1bits.RIS8 // bit 0, shadows bit in COG1RIS1bits
21199 #define G1RIS8 COG1RIS1bits.G1RIS8 // bit 0, shadows bit in COG1RIS1bits
21200 #define RIS9 COG1RIS1bits.RIS9 // bit 1, shadows bit in COG1RIS1bits
21201 #define G1RIS9 COG1RIS1bits.G1RIS9 // bit 1, shadows bit in COG1RIS1bits
21202 #define RIS10 COG1RIS1bits.RIS10 // bit 2, shadows bit in COG1RIS1bits
21203 #define G1RIS10 COG1RIS1bits.G1RIS10 // bit 2, shadows bit in COG1RIS1bits
21204 #define RIS11 COG1RIS1bits.RIS11 // bit 3, shadows bit in COG1RIS1bits
21205 #define G1RIS11 COG1RIS1bits.G1RIS11 // bit 3, shadows bit in COG1RIS1bits
21206 #define RIS12 COG1RIS1bits.RIS12 // bit 4, shadows bit in COG1RIS1bits
21207 #define G1RIS12 COG1RIS1bits.G1RIS12 // bit 4, shadows bit in COG1RIS1bits
21208 #define RIS13 COG1RIS1bits.RIS13 // bit 5, shadows bit in COG1RIS1bits
21209 #define G1RIS13 COG1RIS1bits.G1RIS13 // bit 5, shadows bit in COG1RIS1bits
21210 #define RIS14 COG1RIS1bits.RIS14 // bit 6, shadows bit in COG1RIS1bits
21211 #define G1RIS14 COG1RIS1bits.G1RIS14 // bit 6, shadows bit in COG1RIS1bits
21212 #define RIS15 COG1RIS1bits.RIS15 // bit 7, shadows bit in COG1RIS1bits
21213 #define G1RIS15 COG1RIS1bits.G1RIS15 // bit 7, shadows bit in COG1RIS1bits
21215 #define RSIM0 COG1RSIM0bits.RSIM0 // bit 0, shadows bit in COG1RSIM0bits
21216 #define G1RSIM0 COG1RSIM0bits.G1RSIM0 // bit 0, shadows bit in COG1RSIM0bits
21217 #define RSIM1 COG1RSIM0bits.RSIM1 // bit 1, shadows bit in COG1RSIM0bits
21218 #define G1RSIM1 COG1RSIM0bits.G1RSIM1 // bit 1, shadows bit in COG1RSIM0bits
21219 #define RSIM2 COG1RSIM0bits.RSIM2 // bit 2, shadows bit in COG1RSIM0bits
21220 #define G1RSIM2 COG1RSIM0bits.G1RSIM2 // bit 2, shadows bit in COG1RSIM0bits
21221 #define RSIM3 COG1RSIM0bits.RSIM3 // bit 3, shadows bit in COG1RSIM0bits
21222 #define G1RSIM3 COG1RSIM0bits.G1RSIM3 // bit 3, shadows bit in COG1RSIM0bits
21223 #define RSIM4 COG1RSIM0bits.RSIM4 // bit 4, shadows bit in COG1RSIM0bits
21224 #define G1RSIM4 COG1RSIM0bits.G1RSIM4 // bit 4, shadows bit in COG1RSIM0bits
21225 #define RSIM5 COG1RSIM0bits.RSIM5 // bit 5, shadows bit in COG1RSIM0bits
21226 #define G1RSIM5 COG1RSIM0bits.G1RSIM5 // bit 5, shadows bit in COG1RSIM0bits
21227 #define RSIM6 COG1RSIM0bits.RSIM6 // bit 6, shadows bit in COG1RSIM0bits
21228 #define G1RSIM6 COG1RSIM0bits.G1RSIM6 // bit 6, shadows bit in COG1RSIM0bits
21229 #define RSIM7 COG1RSIM0bits.RSIM7 // bit 7, shadows bit in COG1RSIM0bits
21230 #define G1RSIM7 COG1RSIM0bits.G1RSIM7 // bit 7, shadows bit in COG1RSIM0bits
21232 #define RSIM8 COG1RSIM1bits.RSIM8 // bit 0, shadows bit in COG1RSIM1bits
21233 #define G1RSIM8 COG1RSIM1bits.G1RSIM8 // bit 0, shadows bit in COG1RSIM1bits
21234 #define RSIM9 COG1RSIM1bits.RSIM9 // bit 1, shadows bit in COG1RSIM1bits
21235 #define G1RSIM9 COG1RSIM1bits.G1RSIM9 // bit 1, shadows bit in COG1RSIM1bits
21236 #define RSIM10 COG1RSIM1bits.RSIM10 // bit 2, shadows bit in COG1RSIM1bits
21237 #define G1RSIM10 COG1RSIM1bits.G1RSIM10 // bit 2, shadows bit in COG1RSIM1bits
21238 #define RSIM11 COG1RSIM1bits.RSIM11 // bit 3, shadows bit in COG1RSIM1bits
21239 #define G1RSIM11 COG1RSIM1bits.G1RSIM11 // bit 3, shadows bit in COG1RSIM1bits
21240 #define RSIM12 COG1RSIM1bits.RSIM12 // bit 4, shadows bit in COG1RSIM1bits
21241 #define G1RSIM12 COG1RSIM1bits.G1RSIM12 // bit 4, shadows bit in COG1RSIM1bits
21242 #define RSIM13 COG1RSIM1bits.RSIM13 // bit 5, shadows bit in COG1RSIM1bits
21243 #define G1RSIM13 COG1RSIM1bits.G1RSIM13 // bit 5, shadows bit in COG1RSIM1bits
21244 #define RSIM14 COG1RSIM1bits.RSIM14 // bit 6, shadows bit in COG1RSIM1bits
21245 #define G1RSIM14 COG1RSIM1bits.G1RSIM14 // bit 6, shadows bit in COG1RSIM1bits
21246 #define RSIM15 COG1RSIM1bits.RSIM15 // bit 7, shadows bit in COG1RSIM1bits
21247 #define G1RSIM15 COG1RSIM1bits.G1RSIM15 // bit 7, shadows bit in COG1RSIM1bits
21249 #define STRA COG1STRbits.STRA // bit 0, shadows bit in COG1STRbits
21250 #define G1STRA COG1STRbits.G1STRA // bit 0, shadows bit in COG1STRbits
21251 #define STRB COG1STRbits.STRB // bit 1, shadows bit in COG1STRbits
21252 #define G1STRB COG1STRbits.G1STRB // bit 1, shadows bit in COG1STRbits
21253 #define STRC COG1STRbits.STRC // bit 2, shadows bit in COG1STRbits
21254 #define G1STRC COG1STRbits.G1STRC // bit 2, shadows bit in COG1STRbits
21255 #define STRD COG1STRbits.STRD // bit 3, shadows bit in COG1STRbits
21256 #define G1STRD COG1STRbits.G1STRD // bit 3, shadows bit in COG1STRbits
21257 #define SDATA COG1STRbits.SDATA // bit 4, shadows bit in COG1STRbits
21258 #define G1SDATA COG1STRbits.G1SDATA // bit 4, shadows bit in COG1STRbits
21259 #define SDATB COG1STRbits.SDATB // bit 5, shadows bit in COG1STRbits
21260 #define G1SDATB COG1STRbits.G1SDATB // bit 5, shadows bit in COG1STRbits
21261 #define SDATC COG1STRbits.SDATC // bit 6, shadows bit in COG1STRbits
21262 #define G1SDATC COG1STRbits.G1SDATC // bit 6, shadows bit in COG1STRbits
21263 #define SDATD COG1STRbits.SDATD // bit 7, shadows bit in COG1STRbits
21264 #define G1SDATD COG1STRbits.G1SDATD // bit 7, shadows bit in COG1STRbits
21266 #define REF0 DAC1CON1bits.REF0 // bit 0, shadows bit in DAC1CON1bits
21267 #define DAC1REF0 DAC1CON1bits.DAC1REF0 // bit 0, shadows bit in DAC1CON1bits
21268 #define R0 DAC1CON1bits.R0 // bit 0, shadows bit in DAC1CON1bits
21269 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0, shadows bit in DAC1CON1bits
21270 #define REF1 DAC1CON1bits.REF1 // bit 1, shadows bit in DAC1CON1bits
21271 #define DAC1REF1 DAC1CON1bits.DAC1REF1 // bit 1, shadows bit in DAC1CON1bits
21272 #define R1 DAC1CON1bits.R1 // bit 1, shadows bit in DAC1CON1bits
21273 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1, shadows bit in DAC1CON1bits
21274 #define REF2 DAC1CON1bits.REF2 // bit 2, shadows bit in DAC1CON1bits
21275 #define DAC1REF2 DAC1CON1bits.DAC1REF2 // bit 2, shadows bit in DAC1CON1bits
21276 #define R2 DAC1CON1bits.R2 // bit 2, shadows bit in DAC1CON1bits
21277 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2, shadows bit in DAC1CON1bits
21278 #define REF3 DAC1CON1bits.REF3 // bit 3, shadows bit in DAC1CON1bits
21279 #define DAC1REF3 DAC1CON1bits.DAC1REF3 // bit 3, shadows bit in DAC1CON1bits
21280 #define R3 DAC1CON1bits.R3 // bit 3, shadows bit in DAC1CON1bits
21281 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3, shadows bit in DAC1CON1bits
21282 #define REF4 DAC1CON1bits.REF4 // bit 4, shadows bit in DAC1CON1bits
21283 #define DAC1REF4 DAC1CON1bits.DAC1REF4 // bit 4, shadows bit in DAC1CON1bits
21284 #define R4 DAC1CON1bits.R4 // bit 4, shadows bit in DAC1CON1bits
21285 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4, shadows bit in DAC1CON1bits
21286 #define REF5 DAC1CON1bits.REF5 // bit 5, shadows bit in DAC1CON1bits
21287 #define DAC1REF5 DAC1CON1bits.DAC1REF5 // bit 5, shadows bit in DAC1CON1bits
21288 #define R5 DAC1CON1bits.R5 // bit 5, shadows bit in DAC1CON1bits
21289 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5, shadows bit in DAC1CON1bits
21290 #define REF6 DAC1CON1bits.REF6 // bit 6, shadows bit in DAC1CON1bits
21291 #define DAC1REF6 DAC1CON1bits.DAC1REF6 // bit 6, shadows bit in DAC1CON1bits
21292 #define R6 DAC1CON1bits.R6 // bit 6, shadows bit in DAC1CON1bits
21293 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6, shadows bit in DAC1CON1bits
21294 #define REF7 DAC1CON1bits.REF7 // bit 7, shadows bit in DAC1CON1bits
21295 #define DAC1REF7 DAC1CON1bits.DAC1REF7 // bit 7, shadows bit in DAC1CON1bits
21296 #define R7 DAC1CON1bits.R7 // bit 7, shadows bit in DAC1CON1bits
21297 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7, shadows bit in DAC1CON1bits
21299 #define REF8 DAC1CON2bits.REF8 // bit 0, shadows bit in DAC1CON2bits
21300 #define DAC1REF8 DAC1CON2bits.DAC1REF8 // bit 0, shadows bit in DAC1CON2bits
21301 #define R8 DAC1CON2bits.R8 // bit 0, shadows bit in DAC1CON2bits
21302 #define DAC1R8 DAC1CON2bits.DAC1R8 // bit 0, shadows bit in DAC1CON2bits
21303 #define REF9 DAC1CON2bits.REF9 // bit 1, shadows bit in DAC1CON2bits
21304 #define DAC1REF9 DAC1CON2bits.DAC1REF9 // bit 1, shadows bit in DAC1CON2bits
21305 #define R9 DAC1CON2bits.R9 // bit 1, shadows bit in DAC1CON2bits
21306 #define DAC1R9 DAC1CON2bits.DAC1R9 // bit 1, shadows bit in DAC1CON2bits
21307 #define REF10 DAC1CON2bits.REF10 // bit 2, shadows bit in DAC1CON2bits
21308 #define DAC1REF10 DAC1CON2bits.DAC1REF10 // bit 2, shadows bit in DAC1CON2bits
21309 #define R10 DAC1CON2bits.R10 // bit 2, shadows bit in DAC1CON2bits
21310 #define DAC1R10 DAC1CON2bits.DAC1R10 // bit 2, shadows bit in DAC1CON2bits
21311 #define REF11 DAC1CON2bits.REF11 // bit 3, shadows bit in DAC1CON2bits
21312 #define DAC1REF11 DAC1CON2bits.DAC1REF11 // bit 3, shadows bit in DAC1CON2bits
21313 #define R11 DAC1CON2bits.R11 // bit 3, shadows bit in DAC1CON2bits
21314 #define DAC1R11 DAC1CON2bits.DAC1R11 // bit 3, shadows bit in DAC1CON2bits
21315 #define REF12 DAC1CON2bits.REF12 // bit 4, shadows bit in DAC1CON2bits
21316 #define DAC1REF12 DAC1CON2bits.DAC1REF12 // bit 4, shadows bit in DAC1CON2bits
21317 #define R12 DAC1CON2bits.R12 // bit 4, shadows bit in DAC1CON2bits
21318 #define DAC1R12 DAC1CON2bits.DAC1R12 // bit 4, shadows bit in DAC1CON2bits
21319 #define REF13 DAC1CON2bits.REF13 // bit 5, shadows bit in DAC1CON2bits
21320 #define DAC1REF13 DAC1CON2bits.DAC1REF13 // bit 5, shadows bit in DAC1CON2bits
21321 #define R13 DAC1CON2bits.R13 // bit 5, shadows bit in DAC1CON2bits
21322 #define DAC1R13 DAC1CON2bits.DAC1R13 // bit 5, shadows bit in DAC1CON2bits
21323 #define REF14 DAC1CON2bits.REF14 // bit 6, shadows bit in DAC1CON2bits
21324 #define DAC1REF14 DAC1CON2bits.DAC1REF14 // bit 6, shadows bit in DAC1CON2bits
21325 #define R14 DAC1CON2bits.R14 // bit 6, shadows bit in DAC1CON2bits
21326 #define DAC1R14 DAC1CON2bits.DAC1R14 // bit 6, shadows bit in DAC1CON2bits
21327 #define REF15 DAC1CON2bits.REF15 // bit 7, shadows bit in DAC1CON2bits
21328 #define DAC1REF15 DAC1CON2bits.DAC1REF15 // bit 7, shadows bit in DAC1CON2bits
21329 #define R15 DAC1CON2bits.R15 // bit 7, shadows bit in DAC1CON2bits
21330 #define DAC1R15 DAC1CON2bits.DAC1R15 // bit 7, shadows bit in DAC1CON2bits
21332 #define DAC1LD DACLDbits.DAC1LD // bit 0
21333 #define DAC2LD DACLDbits.DAC2LD // bit 1
21334 #define DAC5LD DACLDbits.DAC5LD // bit 4
21336 #define TSRNG FVRCONbits.TSRNG // bit 4
21337 #define TSEN FVRCONbits.TSEN // bit 5
21338 #define FVRRDY FVRCONbits.FVRRDY // bit 6
21339 #define FVREN FVRCONbits.FVREN // bit 7
21341 #define HIDB0 HIDRVBbits.HIDB0 // bit 0
21342 #define HIDB1 HIDRVBbits.HIDB1 // bit 1
21344 #define INLVE3 INLVEbits.INLVE3 // bit 3
21346 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
21347 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
21348 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
21349 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
21350 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
21351 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
21352 #define INLVA6 INLVLAbits.INLVA6 // bit 6
21353 #define INLVA7 INLVLAbits.INLVA7 // bit 7
21355 #define INLVB0 INLVLBbits.INLVB0 // bit 0
21356 #define INLVB1 INLVLBbits.INLVB1 // bit 1
21357 #define INLVB2 INLVLBbits.INLVB2 // bit 2
21358 #define INLVB3 INLVLBbits.INLVB3 // bit 3
21359 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
21360 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
21361 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
21362 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
21364 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
21365 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
21366 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
21367 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
21368 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
21369 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
21370 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
21371 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
21373 #define IOCIF INTCONbits.IOCIF // bit 0
21374 #define INTF INTCONbits.INTF // bit 1
21375 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
21376 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
21377 #define IOCIE INTCONbits.IOCIE // bit 3
21378 #define INTE INTCONbits.INTE // bit 4
21379 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
21380 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
21381 #define PEIE INTCONbits.PEIE // bit 6
21382 #define GIE INTCONbits.GIE // bit 7
21384 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
21385 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
21386 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
21387 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
21388 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
21389 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
21390 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
21391 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
21393 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
21394 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
21395 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
21396 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
21397 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
21398 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
21399 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
21400 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
21402 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
21403 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
21404 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
21405 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
21406 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
21407 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
21408 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
21409 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
21411 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
21412 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
21413 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
21414 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
21415 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
21416 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
21417 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
21418 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
21420 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
21421 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
21422 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
21423 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
21424 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
21425 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
21426 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
21427 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
21429 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
21430 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
21431 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
21432 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
21433 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
21434 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
21435 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
21436 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
21438 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
21439 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
21440 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
21441 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
21442 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
21443 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
21444 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
21445 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
21447 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
21448 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
21449 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
21450 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
21451 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
21452 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
21453 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
21454 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
21456 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
21457 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
21458 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
21459 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
21460 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
21461 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
21462 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
21463 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
21465 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
21467 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
21469 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
21471 #define LATA0 LATAbits.LATA0 // bit 0
21472 #define LATA1 LATAbits.LATA1 // bit 1
21473 #define LATA2 LATAbits.LATA2 // bit 2
21474 #define LATA3 LATAbits.LATA3 // bit 3
21475 #define LATA4 LATAbits.LATA4 // bit 4
21476 #define LATA5 LATAbits.LATA5 // bit 5
21477 #define LATA6 LATAbits.LATA6 // bit 6
21478 #define LATA7 LATAbits.LATA7 // bit 7
21480 #define LATB0 LATBbits.LATB0 // bit 0
21481 #define LATB1 LATBbits.LATB1 // bit 1
21482 #define LATB2 LATBbits.LATB2 // bit 2
21483 #define LATB3 LATBbits.LATB3 // bit 3
21484 #define LATB4 LATBbits.LATB4 // bit 4
21485 #define LATB5 LATBbits.LATB5 // bit 5
21486 #define LATB6 LATBbits.LATB6 // bit 6
21487 #define LATB7 LATBbits.LATB7 // bit 7
21489 #define LATC0 LATCbits.LATC0 // bit 0
21490 #define LATC1 LATCbits.LATC1 // bit 1
21491 #define LATC2 LATCbits.LATC2 // bit 2
21492 #define LATC3 LATCbits.LATC3 // bit 3
21493 #define LATC4 LATCbits.LATC4 // bit 4
21494 #define LATC5 LATCbits.LATC5 // bit 5
21495 #define LATC6 LATCbits.LATC6 // bit 6
21496 #define LATC7 LATCbits.LATC7 // bit 7
21498 #define CH0 MD1CARHbits.CH0 // bit 0, shadows bit in MD1CARHbits
21499 #define MD1CH0 MD1CARHbits.MD1CH0 // bit 0, shadows bit in MD1CARHbits
21500 #define CH1 MD1CARHbits.CH1 // bit 1, shadows bit in MD1CARHbits
21501 #define MD1CH1 MD1CARHbits.MD1CH1 // bit 1, shadows bit in MD1CARHbits
21502 #define CH2 MD1CARHbits.CH2 // bit 2, shadows bit in MD1CARHbits
21503 #define MD1CH2 MD1CARHbits.MD1CH2 // bit 2, shadows bit in MD1CARHbits
21504 #define CH3 MD1CARHbits.CH3 // bit 3, shadows bit in MD1CARHbits
21505 #define MD1CH3 MD1CARHbits.MD1CH3 // bit 3, shadows bit in MD1CARHbits
21506 #define CH4 MD1CARHbits.CH4 // bit 4
21508 #define CL0 MD1CARLbits.CL0 // bit 0, shadows bit in MD1CARLbits
21509 #define MD1CL0 MD1CARLbits.MD1CL0 // bit 0, shadows bit in MD1CARLbits
21510 #define CL1 MD1CARLbits.CL1 // bit 1, shadows bit in MD1CARLbits
21511 #define MD1CL1 MD1CARLbits.MD1CL1 // bit 1, shadows bit in MD1CARLbits
21512 #define CL2 MD1CARLbits.CL2 // bit 2, shadows bit in MD1CARLbits
21513 #define MD1CL2 MD1CARLbits.MD1CL2 // bit 2, shadows bit in MD1CARLbits
21514 #define CL3 MD1CARLbits.CL3 // bit 3, shadows bit in MD1CARLbits
21515 #define MD1CL3 MD1CARLbits.MD1CL3 // bit 3, shadows bit in MD1CARLbits
21516 #define CL4 MD1CARLbits.CL4 // bit 4
21518 #define CLSYNC MD1CON1bits.CLSYNC // bit 0, shadows bit in MD1CON1bits
21519 #define MD1CLSYNC MD1CON1bits.MD1CLSYNC // bit 0, shadows bit in MD1CON1bits
21520 #define CLPOL MD1CON1bits.CLPOL // bit 1, shadows bit in MD1CON1bits
21521 #define MD1CLPOL MD1CON1bits.MD1CLPOL // bit 1, shadows bit in MD1CON1bits
21522 #define CHSYNC MD1CON1bits.CHSYNC // bit 4, shadows bit in MD1CON1bits
21523 #define MD1CHSYNC MD1CON1bits.MD1CHSYNC // bit 4, shadows bit in MD1CON1bits
21524 #define CHPOL MD1CON1bits.CHPOL // bit 5, shadows bit in MD1CON1bits
21525 #define MD1CHPOL MD1CON1bits.MD1CHPOL // bit 5, shadows bit in MD1CON1bits
21527 #define MS0 MD1SRCbits.MS0 // bit 0, shadows bit in MD1SRCbits
21528 #define MD1MS0 MD1SRCbits.MD1MS0 // bit 0, shadows bit in MD1SRCbits
21529 #define MS1 MD1SRCbits.MS1 // bit 1, shadows bit in MD1SRCbits
21530 #define MD1MS1 MD1SRCbits.MD1MS1 // bit 1, shadows bit in MD1SRCbits
21531 #define MS2 MD1SRCbits.MS2 // bit 2, shadows bit in MD1SRCbits
21532 #define MD1MS2 MD1SRCbits.MD1MS2 // bit 2, shadows bit in MD1SRCbits
21533 #define MS3 MD1SRCbits.MS3 // bit 3, shadows bit in MD1SRCbits
21534 #define MD1MS3 MD1SRCbits.MD1MS3 // bit 3, shadows bit in MD1SRCbits
21535 #define MS4 MD1SRCbits.MS4 // bit 4, shadows bit in MD1SRCbits
21536 #define MD1MS4 MD1SRCbits.MD1MS4 // bit 4, shadows bit in MD1SRCbits
21538 #define ODA0 ODCONAbits.ODA0 // bit 0
21539 #define ODA1 ODCONAbits.ODA1 // bit 1
21540 #define ODA2 ODCONAbits.ODA2 // bit 2
21541 #define ODA3 ODCONAbits.ODA3 // bit 3
21542 #define ODA4 ODCONAbits.ODA4 // bit 4
21543 #define ODA5 ODCONAbits.ODA5 // bit 5
21544 #define ODA6 ODCONAbits.ODA6 // bit 6
21545 #define ODA7 ODCONAbits.ODA7 // bit 7
21547 #define ODC0 ODCONCbits.ODC0 // bit 0
21548 #define ODC1 ODCONCbits.ODC1 // bit 1
21549 #define ODC2 ODCONCbits.ODC2 // bit 2
21550 #define ODC3 ODCONCbits.ODC3 // bit 3
21551 #define ODC4 ODCONCbits.ODC4 // bit 4
21552 #define ODC5 ODCONCbits.ODC5 // bit 5
21553 #define ODC6 ODCONCbits.ODC6 // bit 6
21554 #define ODC7 ODCONCbits.ODC7 // bit 7
21556 #define PS0 OPTION_REGbits.PS0 // bit 0
21557 #define PS1 OPTION_REGbits.PS1 // bit 1
21558 #define PS2 OPTION_REGbits.PS2 // bit 2
21559 #define PSA OPTION_REGbits.PSA // bit 3
21560 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
21561 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
21562 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
21563 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
21564 #define INTEDG OPTION_REGbits.INTEDG // bit 6
21565 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
21567 #define SCS0 OSCCONbits.SCS0 // bit 0
21568 #define SCS1 OSCCONbits.SCS1 // bit 1
21569 #define IRCF0 OSCCONbits.IRCF0 // bit 3
21570 #define IRCF1 OSCCONbits.IRCF1 // bit 4
21571 #define IRCF2 OSCCONbits.IRCF2 // bit 5
21572 #define IRCF3 OSCCONbits.IRCF3 // bit 6
21573 #define SPLLEN OSCCONbits.SPLLEN // bit 7
21575 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
21576 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
21577 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
21578 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
21579 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
21580 #define OSTS OSCSTATbits.OSTS // bit 5
21581 #define PLLR OSCSTATbits.PLLR // bit 6
21582 #define SOSCR OSCSTATbits.SOSCR // bit 7
21584 #define TUN0 OSCTUNEbits.TUN0 // bit 0
21585 #define TUN1 OSCTUNEbits.TUN1 // bit 1
21586 #define TUN2 OSCTUNEbits.TUN2 // bit 2
21587 #define TUN3 OSCTUNEbits.TUN3 // bit 3
21588 #define TUN4 OSCTUNEbits.TUN4 // bit 4
21589 #define TUN5 OSCTUNEbits.TUN5 // bit 5
21591 #define NOT_BOR PCONbits.NOT_BOR // bit 0
21592 #define NOT_POR PCONbits.NOT_POR // bit 1
21593 #define NOT_RI PCONbits.NOT_RI // bit 2
21594 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
21595 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
21596 #define STKUNF PCONbits.STKUNF // bit 6
21597 #define STKOVF PCONbits.STKOVF // bit 7
21599 #define TMR1IE PIE1bits.TMR1IE // bit 0
21600 #define TMR2IE PIE1bits.TMR2IE // bit 1
21601 #define CCP1IE PIE1bits.CCP1IE // bit 2, shadows bit in PIE1bits
21602 #define CCPIE PIE1bits.CCPIE // bit 2, shadows bit in PIE1bits
21603 #define SSP1IE PIE1bits.SSP1IE // bit 3
21604 #define TXIE PIE1bits.TXIE // bit 4
21605 #define RCIE PIE1bits.RCIE // bit 5
21606 #define ADIE PIE1bits.ADIE // bit 6
21607 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
21609 #define CCP2IE PIE2bits.CCP2IE // bit 0
21610 #define C3IE PIE2bits.C3IE // bit 1
21611 #define C4IE PIE2bits.C4IE // bit 2
21612 #define BCL1IE PIE2bits.BCL1IE // bit 3
21613 #define COGIE PIE2bits.COGIE // bit 4
21614 #define C1IE PIE2bits.C1IE // bit 5
21615 #define C2IE PIE2bits.C2IE // bit 6
21616 #define OSFIE PIE2bits.OSFIE // bit 7
21618 #define CLC1IE PIE3bits.CLC1IE // bit 0
21619 #define CLC2IE PIE3bits.CLC2IE // bit 1
21620 #define CLC3IE PIE3bits.CLC3IE // bit 2
21621 #define CLC4IE PIE3bits.CLC4IE // bit 3
21622 #define ZCDIE PIE3bits.ZCDIE // bit 4
21623 #define COG2IE PIE3bits.COG2IE // bit 5
21625 #define TMR4IE PIE4bits.TMR4IE // bit 0
21626 #define TMR6IE PIE4bits.TMR6IE // bit 1
21627 #define TMR3IE PIE4bits.TMR3IE // bit 2
21628 #define TMR3GIE PIE4bits.TMR3GIE // bit 3
21629 #define TMR5IE PIE4bits.TMR5IE // bit 4
21630 #define TMR5GIE PIE4bits.TMR5GIE // bit 5
21631 #define TMR8IE PIE4bits.TMR8IE // bit 6
21633 #define C5IE PIE5bits.C5IE // bit 0
21634 #define C6IE PIE5bits.C6IE // bit 1
21635 #define COG3IE PIE5bits.COG3IE // bit 4
21636 #define CCP7IE PIE5bits.CCP7IE // bit 6
21638 #define PWM5IE PIE6bits.PWM5IE // bit 0
21639 #define PWM6IE PIE6bits.PWM6IE // bit 1
21640 #define PWM11IE PIE6bits.PWM11IE // bit 2
21642 #define TMR1IF PIR1bits.TMR1IF // bit 0
21643 #define TMR2IF PIR1bits.TMR2IF // bit 1
21644 #define CCP1IF PIR1bits.CCP1IF // bit 2, shadows bit in PIR1bits
21645 #define CCPIF PIR1bits.CCPIF // bit 2, shadows bit in PIR1bits
21646 #define SSP1IF PIR1bits.SSP1IF // bit 3
21647 #define TXIF PIR1bits.TXIF // bit 4
21648 #define RCIF PIR1bits.RCIF // bit 5
21649 #define ADIF PIR1bits.ADIF // bit 6
21650 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
21652 #define CCP2IF PIR2bits.CCP2IF // bit 0
21653 #define C3IF PIR2bits.C3IF // bit 1
21654 #define C4IF PIR2bits.C4IF // bit 2
21655 #define BCL1IF PIR2bits.BCL1IF // bit 3
21656 #define COG1IF PIR2bits.COG1IF // bit 4
21657 #define C1IF PIR2bits.C1IF // bit 5
21658 #define C2IF PIR2bits.C2IF // bit 6
21659 #define OSFIF PIR2bits.OSFIF // bit 7
21661 #define CLC1IF PIR3bits.CLC1IF // bit 0
21662 #define CLC2IF PIR3bits.CLC2IF // bit 1
21663 #define CLC3IF PIR3bits.CLC3IF // bit 2
21664 #define CLC4IF PIR3bits.CLC4IF // bit 3
21665 #define ZCDIF PIR3bits.ZCDIF // bit 4
21666 #define COG2IF PIR3bits.COG2IF // bit 5
21668 #define TMR4IF PIR4bits.TMR4IF // bit 0
21669 #define TMR6IF PIR4bits.TMR6IF // bit 1
21670 #define TMR3IF PIR4bits.TMR3IF // bit 2
21671 #define TMR3GIF PIR4bits.TMR3GIF // bit 3
21672 #define TMR5IF PIR4bits.TMR5IF // bit 4
21673 #define TMR5GIF PIR4bits.TMR5GIF // bit 5
21674 #define TMR8IF PIR4bits.TMR8IF // bit 6
21676 #define C5IF PIR5bits.C5IF // bit 0
21677 #define C6IF PIR5bits.C6IF // bit 1
21678 #define COG3IF PIR5bits.COG3IF // bit 4
21679 #define CCP7IF PIR5bits.CCP7IF // bit 6
21681 #define PWM5IF PIR6bits.PWM5IF // bit 0
21682 #define PWM6IF PIR6bits.PWM6IF // bit 1
21683 #define PWM11IF PIR6bits.PWM11IF // bit 2
21685 #define RD PMCON1bits.RD // bit 0
21686 #define WR PMCON1bits.WR // bit 1
21687 #define WREN PMCON1bits.WREN // bit 2
21688 #define WRERR PMCON1bits.WRERR // bit 3
21689 #define FREE PMCON1bits.FREE // bit 4
21690 #define LWLO PMCON1bits.LWLO // bit 5
21691 #define CFGS PMCON1bits.CFGS // bit 6
21693 #define RA0 PORTAbits.RA0 // bit 0
21694 #define RA1 PORTAbits.RA1 // bit 1
21695 #define RA2 PORTAbits.RA2 // bit 2
21696 #define RA3 PORTAbits.RA3 // bit 3
21697 #define RA4 PORTAbits.RA4 // bit 4
21698 #define RA5 PORTAbits.RA5 // bit 5
21699 #define RA6 PORTAbits.RA6 // bit 6
21700 #define RA7 PORTAbits.RA7 // bit 7
21702 #define RB0 PORTBbits.RB0 // bit 0
21703 #define RB1 PORTBbits.RB1 // bit 1
21704 #define RB2 PORTBbits.RB2 // bit 2
21705 #define RB3 PORTBbits.RB3 // bit 3
21706 #define RB4 PORTBbits.RB4 // bit 4
21707 #define RB5 PORTBbits.RB5 // bit 5
21708 #define RB6 PORTBbits.RB6 // bit 6
21709 #define RB7 PORTBbits.RB7 // bit 7
21711 #define RC0 PORTCbits.RC0 // bit 0
21712 #define RC1 PORTCbits.RC1 // bit 1
21713 #define RC2 PORTCbits.RC2 // bit 2
21714 #define RC3 PORTCbits.RC3 // bit 3
21715 #define RC4 PORTCbits.RC4 // bit 4
21716 #define RC5 PORTCbits.RC5 // bit 5
21717 #define RC6 PORTCbits.RC6 // bit 6
21718 #define RC7 PORTCbits.RC7 // bit 7
21720 #define RE3 PORTEbits.RE3 // bit 3
21722 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
21724 #define RPOL PRG1CON1bits.RPOL // bit 0, shadows bit in PRG1CON1bits
21725 #define RG1RPOL PRG1CON1bits.RG1RPOL // bit 0, shadows bit in PRG1CON1bits
21726 #define FPOL PRG1CON1bits.FPOL // bit 1, shadows bit in PRG1CON1bits
21727 #define RG1FPOL PRG1CON1bits.RG1FPOL // bit 1, shadows bit in PRG1CON1bits
21728 #define RDY PRG1CON1bits.RDY // bit 2, shadows bit in PRG1CON1bits
21729 #define RG1RDY PRG1CON1bits.RG1RDY // bit 2, shadows bit in PRG1CON1bits
21731 #define ISET0 PRG1CON2bits.ISET0 // bit 0, shadows bit in PRG1CON2bits
21732 #define RG1ISET0 PRG1CON2bits.RG1ISET0 // bit 0, shadows bit in PRG1CON2bits
21733 #define ISET1 PRG1CON2bits.ISET1 // bit 1, shadows bit in PRG1CON2bits
21734 #define RG1ISET1 PRG1CON2bits.RG1ISET1 // bit 1, shadows bit in PRG1CON2bits
21735 #define ISET2 PRG1CON2bits.ISET2 // bit 2, shadows bit in PRG1CON2bits
21736 #define RG1ISET2 PRG1CON2bits.RG1ISET2 // bit 2, shadows bit in PRG1CON2bits
21737 #define ISET3 PRG1CON2bits.ISET3 // bit 3, shadows bit in PRG1CON2bits
21738 #define RG1ISET3 PRG1CON2bits.RG1ISET3 // bit 3, shadows bit in PRG1CON2bits
21739 #define ISET4 PRG1CON2bits.ISET4 // bit 4, shadows bit in PRG1CON2bits
21740 #define RG1ISET4 PRG1CON2bits.RG1ISET4 // bit 4, shadows bit in PRG1CON2bits
21742 #define FTSS0 PRG1FTSSbits.FTSS0 // bit 0, shadows bit in PRG1FTSSbits
21743 #define RG1FTSS0 PRG1FTSSbits.RG1FTSS0 // bit 0, shadows bit in PRG1FTSSbits
21744 #define FTSS1 PRG1FTSSbits.FTSS1 // bit 1, shadows bit in PRG1FTSSbits
21745 #define RG1FTSS1 PRG1FTSSbits.RG1FTSS1 // bit 1, shadows bit in PRG1FTSSbits
21746 #define FTSS2 PRG1FTSSbits.FTSS2 // bit 2, shadows bit in PRG1FTSSbits
21747 #define RG1FTSS2 PRG1FTSSbits.RG1FTSS2 // bit 2, shadows bit in PRG1FTSSbits
21748 #define FTSS3 PRG1FTSSbits.FTSS3 // bit 3, shadows bit in PRG1FTSSbits
21749 #define RG1FTSS3 PRG1FTSSbits.RG1FTSS3 // bit 3, shadows bit in PRG1FTSSbits
21751 #define INS0 PRG1INSbits.INS0 // bit 0, shadows bit in PRG1INSbits
21752 #define RG1INS0 PRG1INSbits.RG1INS0 // bit 0, shadows bit in PRG1INSbits
21753 #define INS1 PRG1INSbits.INS1 // bit 1, shadows bit in PRG1INSbits
21754 #define RG1INS1 PRG1INSbits.RG1INS1 // bit 1, shadows bit in PRG1INSbits
21755 #define INS2 PRG1INSbits.INS2 // bit 2, shadows bit in PRG1INSbits
21756 #define RG1INS2 PRG1INSbits.RG1INS2 // bit 2, shadows bit in PRG1INSbits
21757 #define INS3 PRG1INSbits.INS3 // bit 3, shadows bit in PRG1INSbits
21758 #define RG1INS3 PRG1INSbits.RG1INS3 // bit 3, shadows bit in PRG1INSbits
21760 #define RTSS0 PRG1RTSSbits.RTSS0 // bit 0, shadows bit in PRG1RTSSbits
21761 #define RG1RTSS0 PRG1RTSSbits.RG1RTSS0 // bit 0, shadows bit in PRG1RTSSbits
21762 #define RTSS1 PRG1RTSSbits.RTSS1 // bit 1, shadows bit in PRG1RTSSbits
21763 #define RG1RTSS1 PRG1RTSSbits.RG1RTSS1 // bit 1, shadows bit in PRG1RTSSbits
21764 #define RTSS2 PRG1RTSSbits.RTSS2 // bit 2, shadows bit in PRG1RTSSbits
21765 #define RG1RTSS2 PRG1RTSSbits.RG1RTSS2 // bit 2, shadows bit in PRG1RTSSbits
21766 #define RTSS3 PRG1RTSSbits.RTSS3 // bit 3, shadows bit in PRG1RTSSbits
21767 #define RG1RTSS3 PRG1RTSSbits.RG1RTSS3 // bit 3, shadows bit in PRG1RTSSbits
21769 #define DC2 PWM3DCHbits.DC2 // bit 0, shadows bit in PWM3DCHbits
21770 #define PWM3DC2 PWM3DCHbits.PWM3DC2 // bit 0, shadows bit in PWM3DCHbits
21771 #define PWMPW2 PWM3DCHbits.PWMPW2 // bit 0, shadows bit in PWM3DCHbits
21772 #define DC3 PWM3DCHbits.DC3 // bit 1, shadows bit in PWM3DCHbits
21773 #define PWM3DC3 PWM3DCHbits.PWM3DC3 // bit 1, shadows bit in PWM3DCHbits
21774 #define PWMPW3 PWM3DCHbits.PWMPW3 // bit 1, shadows bit in PWM3DCHbits
21775 #define DC4 PWM3DCHbits.DC4 // bit 2, shadows bit in PWM3DCHbits
21776 #define PWM3DC4 PWM3DCHbits.PWM3DC4 // bit 2, shadows bit in PWM3DCHbits
21777 #define PWMPW4 PWM3DCHbits.PWMPW4 // bit 2, shadows bit in PWM3DCHbits
21778 #define DC5 PWM3DCHbits.DC5 // bit 3, shadows bit in PWM3DCHbits
21779 #define PWM3DC5 PWM3DCHbits.PWM3DC5 // bit 3, shadows bit in PWM3DCHbits
21780 #define PWMPW5 PWM3DCHbits.PWMPW5 // bit 3, shadows bit in PWM3DCHbits
21781 #define DC6 PWM3DCHbits.DC6 // bit 4, shadows bit in PWM3DCHbits
21782 #define PWM3DC6 PWM3DCHbits.PWM3DC6 // bit 4, shadows bit in PWM3DCHbits
21783 #define PWMPW6 PWM3DCHbits.PWMPW6 // bit 4, shadows bit in PWM3DCHbits
21784 #define DC7 PWM3DCHbits.DC7 // bit 5, shadows bit in PWM3DCHbits
21785 #define PWM3DC7 PWM3DCHbits.PWM3DC7 // bit 5, shadows bit in PWM3DCHbits
21786 #define PWMPW7 PWM3DCHbits.PWMPW7 // bit 5, shadows bit in PWM3DCHbits
21787 #define DC8 PWM3DCHbits.DC8 // bit 6, shadows bit in PWM3DCHbits
21788 #define PWM3DC8 PWM3DCHbits.PWM3DC8 // bit 6, shadows bit in PWM3DCHbits
21789 #define PWMPW8 PWM3DCHbits.PWMPW8 // bit 6, shadows bit in PWM3DCHbits
21790 #define DC9 PWM3DCHbits.DC9 // bit 7, shadows bit in PWM3DCHbits
21791 #define PWM3DC9 PWM3DCHbits.PWM3DC9 // bit 7, shadows bit in PWM3DCHbits
21792 #define PWMPW9 PWM3DCHbits.PWMPW9 // bit 7, shadows bit in PWM3DCHbits
21794 #define DC0 PWM3DCLbits.DC0 // bit 6, shadows bit in PWM3DCLbits
21795 #define PWM3DC0 PWM3DCLbits.PWM3DC0 // bit 6, shadows bit in PWM3DCLbits
21796 #define PWMPW0 PWM3DCLbits.PWMPW0 // bit 6, shadows bit in PWM3DCLbits
21797 #define DC1 PWM3DCLbits.DC1 // bit 7, shadows bit in PWM3DCLbits
21798 #define PWM3DC1 PWM3DCLbits.PWM3DC1 // bit 7, shadows bit in PWM3DCLbits
21799 #define PWMPW1 PWM3DCLbits.PWMPW1 // bit 7, shadows bit in PWM3DCLbits
21801 #define PWM5DCH0 PWM5DCHbits.PWM5DCH0 // bit 0
21802 #define PWM5DCH1 PWM5DCHbits.PWM5DCH1 // bit 1
21803 #define PWM5DCH2 PWM5DCHbits.PWM5DCH2 // bit 2
21804 #define PWM5DCH3 PWM5DCHbits.PWM5DCH3 // bit 3
21805 #define PWM5DCH4 PWM5DCHbits.PWM5DCH4 // bit 4
21806 #define PWM5DCH5 PWM5DCHbits.PWM5DCH5 // bit 5
21807 #define PWM5DCH6 PWM5DCHbits.PWM5DCH6 // bit 6
21808 #define PWM5DCH7 PWM5DCHbits.PWM5DCH7 // bit 7
21810 #define PWM5DCL0 PWM5DCLbits.PWM5DCL0 // bit 0
21811 #define PWM5DCL1 PWM5DCLbits.PWM5DCL1 // bit 1
21812 #define PWM5DCL2 PWM5DCLbits.PWM5DCL2 // bit 2
21813 #define PWM5DCL3 PWM5DCLbits.PWM5DCL3 // bit 3
21814 #define PWM5DCL4 PWM5DCLbits.PWM5DCL4 // bit 4
21815 #define PWM5DCL5 PWM5DCLbits.PWM5DCL5 // bit 5
21816 #define PWM5DCL6 PWM5DCLbits.PWM5DCL6 // bit 6
21817 #define PWM5DCL7 PWM5DCLbits.PWM5DCL7 // bit 7
21819 #define PRIE PWM5INTCONbits.PRIE // bit 0, shadows bit in PWM5INTCONbits
21820 #define PWM5PRIE PWM5INTCONbits.PWM5PRIE // bit 0, shadows bit in PWM5INTCONbits
21821 #define DCIE PWM5INTCONbits.DCIE // bit 1, shadows bit in PWM5INTCONbits
21822 #define PWM5DCIE PWM5INTCONbits.PWM5DCIE // bit 1, shadows bit in PWM5INTCONbits
21823 #define PHIE PWM5INTCONbits.PHIE // bit 2, shadows bit in PWM5INTCONbits
21824 #define PWM5PHIE PWM5INTCONbits.PWM5PHIE // bit 2, shadows bit in PWM5INTCONbits
21825 #define OFIE PWM5INTCONbits.OFIE // bit 3, shadows bit in PWM5INTCONbits
21826 #define PWM5OFIE PWM5INTCONbits.PWM5OFIE // bit 3, shadows bit in PWM5INTCONbits
21828 #define PRIF PWM5INTFbits.PRIF // bit 0, shadows bit in PWM5INTFbits
21829 #define PWM5PRIF PWM5INTFbits.PWM5PRIF // bit 0, shadows bit in PWM5INTFbits
21830 #define DCIF PWM5INTFbits.DCIF // bit 1, shadows bit in PWM5INTFbits
21831 #define PWM5DCIF PWM5INTFbits.PWM5DCIF // bit 1, shadows bit in PWM5INTFbits
21832 #define PHIF PWM5INTFbits.PHIF // bit 2, shadows bit in PWM5INTFbits
21833 #define PWM5PHIF PWM5INTFbits.PWM5PHIF // bit 2, shadows bit in PWM5INTFbits
21834 #define OFIF PWM5INTFbits.OFIF // bit 3, shadows bit in PWM5INTFbits
21835 #define PWM5OFIF PWM5INTFbits.PWM5OFIF // bit 3, shadows bit in PWM5INTFbits
21837 #define PWM5LDS0 PWM5LDCONbits.PWM5LDS0 // bit 0, shadows bit in PWM5LDCONbits
21838 #define LDS0 PWM5LDCONbits.LDS0 // bit 0, shadows bit in PWM5LDCONbits
21839 #define PWM5LDS1 PWM5LDCONbits.PWM5LDS1 // bit 1, shadows bit in PWM5LDCONbits
21840 #define LDS1 PWM5LDCONbits.LDS1 // bit 1, shadows bit in PWM5LDCONbits
21841 #define LDT PWM5LDCONbits.LDT // bit 6, shadows bit in PWM5LDCONbits
21842 #define PWM5LDM PWM5LDCONbits.PWM5LDM // bit 6, shadows bit in PWM5LDCONbits
21843 #define LDA PWM5LDCONbits.LDA // bit 7, shadows bit in PWM5LDCONbits
21844 #define PWM5LD PWM5LDCONbits.PWM5LD // bit 7, shadows bit in PWM5LDCONbits
21846 #define PWM5OFS0 PWM5OFCONbits.PWM5OFS0 // bit 0, shadows bit in PWM5OFCONbits
21847 #define OFS0 PWM5OFCONbits.OFS0 // bit 0, shadows bit in PWM5OFCONbits
21848 #define PWM5OFS1 PWM5OFCONbits.PWM5OFS1 // bit 1, shadows bit in PWM5OFCONbits
21849 #define OFS1 PWM5OFCONbits.OFS1 // bit 1, shadows bit in PWM5OFCONbits
21850 #define OFO PWM5OFCONbits.OFO // bit 4, shadows bit in PWM5OFCONbits
21851 #define PWM5OFMC PWM5OFCONbits.PWM5OFMC // bit 4, shadows bit in PWM5OFCONbits
21852 #define PWM5OFM0 PWM5OFCONbits.PWM5OFM0 // bit 5, shadows bit in PWM5OFCONbits
21853 #define OFM0 PWM5OFCONbits.OFM0 // bit 5, shadows bit in PWM5OFCONbits
21854 #define PWM5OFM1 PWM5OFCONbits.PWM5OFM1 // bit 6, shadows bit in PWM5OFCONbits
21855 #define OFM1 PWM5OFCONbits.OFM1 // bit 6, shadows bit in PWM5OFCONbits
21857 #define PWM5OFH0 PWM5OFHbits.PWM5OFH0 // bit 0
21858 #define PWM5OFH1 PWM5OFHbits.PWM5OFH1 // bit 1
21859 #define PWM5OFH2 PWM5OFHbits.PWM5OFH2 // bit 2
21860 #define PWM5OFH3 PWM5OFHbits.PWM5OFH3 // bit 3
21861 #define PWM5OFH4 PWM5OFHbits.PWM5OFH4 // bit 4
21862 #define PWM5OFH5 PWM5OFHbits.PWM5OFH5 // bit 5
21863 #define PWM5OFH6 PWM5OFHbits.PWM5OFH6 // bit 6
21864 #define PWM5OFH7 PWM5OFHbits.PWM5OFH7 // bit 7
21866 #define PWM5OFL0 PWM5OFLbits.PWM5OFL0 // bit 0
21867 #define PWM5OFL1 PWM5OFLbits.PWM5OFL1 // bit 1
21868 #define PWM5OFL2 PWM5OFLbits.PWM5OFL2 // bit 2
21869 #define PWM5OFL3 PWM5OFLbits.PWM5OFL3 // bit 3
21870 #define PWM5OFL4 PWM5OFLbits.PWM5OFL4 // bit 4
21871 #define PWM5OFL5 PWM5OFLbits.PWM5OFL5 // bit 5
21872 #define PWM5OFL6 PWM5OFLbits.PWM5OFL6 // bit 6
21873 #define PWM5OFL7 PWM5OFLbits.PWM5OFL7 // bit 7
21875 #define PWM5PHH0 PWM5PHHbits.PWM5PHH0 // bit 0
21876 #define PWM5PHH1 PWM5PHHbits.PWM5PHH1 // bit 1
21877 #define PWM5PHH2 PWM5PHHbits.PWM5PHH2 // bit 2
21878 #define PWM5PHH3 PWM5PHHbits.PWM5PHH3 // bit 3
21879 #define PWM5PHH4 PWM5PHHbits.PWM5PHH4 // bit 4
21880 #define PWM5PHH5 PWM5PHHbits.PWM5PHH5 // bit 5
21881 #define PWM5PHH6 PWM5PHHbits.PWM5PHH6 // bit 6
21882 #define PWM5PHH7 PWM5PHHbits.PWM5PHH7 // bit 7
21884 #define PWM5PHL0 PWM5PHLbits.PWM5PHL0 // bit 0
21885 #define PWM5PHL1 PWM5PHLbits.PWM5PHL1 // bit 1
21886 #define PWM5PHL2 PWM5PHLbits.PWM5PHL2 // bit 2
21887 #define PWM5PHL3 PWM5PHLbits.PWM5PHL3 // bit 3
21888 #define PWM5PHL4 PWM5PHLbits.PWM5PHL4 // bit 4
21889 #define PWM5PHL5 PWM5PHLbits.PWM5PHL5 // bit 5
21890 #define PWM5PHL6 PWM5PHLbits.PWM5PHL6 // bit 6
21891 #define PWM5PHL7 PWM5PHLbits.PWM5PHL7 // bit 7
21893 #define PWM5PRH0 PWM5PRHbits.PWM5PRH0 // bit 0
21894 #define PWM5PRH1 PWM5PRHbits.PWM5PRH1 // bit 1
21895 #define PWM5PRH2 PWM5PRHbits.PWM5PRH2 // bit 2
21896 #define PWM5PRH3 PWM5PRHbits.PWM5PRH3 // bit 3
21897 #define PWM5PRH4 PWM5PRHbits.PWM5PRH4 // bit 4
21898 #define PWM5PRH5 PWM5PRHbits.PWM5PRH5 // bit 5
21899 #define PWM5PRH6 PWM5PRHbits.PWM5PRH6 // bit 6
21900 #define PWM5PRH7 PWM5PRHbits.PWM5PRH7 // bit 7
21902 #define PWM5PRL0 PWM5PRLbits.PWM5PRL0 // bit 0
21903 #define PWM5PRL1 PWM5PRLbits.PWM5PRL1 // bit 1
21904 #define PWM5PRL2 PWM5PRLbits.PWM5PRL2 // bit 2
21905 #define PWM5PRL3 PWM5PRLbits.PWM5PRL3 // bit 3
21906 #define PWM5PRL4 PWM5PRLbits.PWM5PRL4 // bit 4
21907 #define PWM5PRL5 PWM5PRLbits.PWM5PRL5 // bit 5
21908 #define PWM5PRL6 PWM5PRLbits.PWM5PRL6 // bit 6
21909 #define PWM5PRL7 PWM5PRLbits.PWM5PRL7 // bit 7
21911 #define PWM5TMRH0 PWM5TMRHbits.PWM5TMRH0 // bit 0
21912 #define PWM5TMRH1 PWM5TMRHbits.PWM5TMRH1 // bit 1
21913 #define PWM5TMRH2 PWM5TMRHbits.PWM5TMRH2 // bit 2
21914 #define PWM5TMRH3 PWM5TMRHbits.PWM5TMRH3 // bit 3
21915 #define PWM5TMRH4 PWM5TMRHbits.PWM5TMRH4 // bit 4
21916 #define PWM5TMRH5 PWM5TMRHbits.PWM5TMRH5 // bit 5
21917 #define PWM5TMRH6 PWM5TMRHbits.PWM5TMRH6 // bit 6
21918 #define PWM5TMRH7 PWM5TMRHbits.PWM5TMRH7 // bit 7
21920 #define PWM5TMRL0 PWM5TMRLbits.PWM5TMRL0 // bit 0
21921 #define PWM5TMRL1 PWM5TMRLbits.PWM5TMRL1 // bit 1
21922 #define PWM5TMRL2 PWM5TMRLbits.PWM5TMRL2 // bit 2
21923 #define PWM5TMRL3 PWM5TMRLbits.PWM5TMRL3 // bit 3
21924 #define PWM5TMRL4 PWM5TMRLbits.PWM5TMRL4 // bit 4
21925 #define PWM5TMRL5 PWM5TMRLbits.PWM5TMRL5 // bit 5
21926 #define PWM5TMRL6 PWM5TMRLbits.PWM5TMRL6 // bit 6
21927 #define PWM5TMRL7 PWM5TMRLbits.PWM5TMRL7 // bit 7
21929 #define PWM6DCH0 PWM6DCHbits.PWM6DCH0 // bit 0
21930 #define PWM6DCH1 PWM6DCHbits.PWM6DCH1 // bit 1
21931 #define PWM6DCH2 PWM6DCHbits.PWM6DCH2 // bit 2
21932 #define PWM6DCH3 PWM6DCHbits.PWM6DCH3 // bit 3
21933 #define PWM6DCH4 PWM6DCHbits.PWM6DCH4 // bit 4
21934 #define PWM6DCH5 PWM6DCHbits.PWM6DCH5 // bit 5
21935 #define PWM6DCH6 PWM6DCHbits.PWM6DCH6 // bit 6
21936 #define PWM6DCH7 PWM6DCHbits.PWM6DCH7 // bit 7
21938 #define PWM6DCL0 PWM6DCLbits.PWM6DCL0 // bit 0
21939 #define PWM6DCL1 PWM6DCLbits.PWM6DCL1 // bit 1
21940 #define PWM6DCL2 PWM6DCLbits.PWM6DCL2 // bit 2
21941 #define PWM6DCL3 PWM6DCLbits.PWM6DCL3 // bit 3
21942 #define PWM6DCL4 PWM6DCLbits.PWM6DCL4 // bit 4
21943 #define PWM6DCL5 PWM6DCLbits.PWM6DCL5 // bit 5
21944 #define PWM6DCL6 PWM6DCLbits.PWM6DCL6 // bit 6
21945 #define PWM6DCL7 PWM6DCLbits.PWM6DCL7 // bit 7
21947 #define PWM6OFH0 PWM6OFHbits.PWM6OFH0 // bit 0
21948 #define PWM6OFH1 PWM6OFHbits.PWM6OFH1 // bit 1
21949 #define PWM6OFH2 PWM6OFHbits.PWM6OFH2 // bit 2
21950 #define PWM6OFH3 PWM6OFHbits.PWM6OFH3 // bit 3
21951 #define PWM6OFH4 PWM6OFHbits.PWM6OFH4 // bit 4
21952 #define PWM6OFH5 PWM6OFHbits.PWM6OFH5 // bit 5
21953 #define PWM6OFH6 PWM6OFHbits.PWM6OFH6 // bit 6
21954 #define PWM6OFH7 PWM6OFHbits.PWM6OFH7 // bit 7
21956 #define PWM6OFL0 PWM6OFLbits.PWM6OFL0 // bit 0
21957 #define PWM6OFL1 PWM6OFLbits.PWM6OFL1 // bit 1
21958 #define PWM6OFL2 PWM6OFLbits.PWM6OFL2 // bit 2
21959 #define PWM6OFL3 PWM6OFLbits.PWM6OFL3 // bit 3
21960 #define PWM6OFL4 PWM6OFLbits.PWM6OFL4 // bit 4
21961 #define PWM6OFL5 PWM6OFLbits.PWM6OFL5 // bit 5
21962 #define PWM6OFL6 PWM6OFLbits.PWM6OFL6 // bit 6
21963 #define PWM6OFL7 PWM6OFLbits.PWM6OFL7 // bit 7
21965 #define PWM6PHH0 PWM6PHHbits.PWM6PHH0 // bit 0
21966 #define PWM6PHH1 PWM6PHHbits.PWM6PHH1 // bit 1
21967 #define PWM6PHH2 PWM6PHHbits.PWM6PHH2 // bit 2
21968 #define PWM6PHH3 PWM6PHHbits.PWM6PHH3 // bit 3
21969 #define PWM6PHH4 PWM6PHHbits.PWM6PHH4 // bit 4
21970 #define PWM6PHH5 PWM6PHHbits.PWM6PHH5 // bit 5
21971 #define PWM6PHH6 PWM6PHHbits.PWM6PHH6 // bit 6
21972 #define PWM6PHH7 PWM6PHHbits.PWM6PHH7 // bit 7
21974 #define PWM6PHL0 PWM6PHLbits.PWM6PHL0 // bit 0
21975 #define PWM6PHL1 PWM6PHLbits.PWM6PHL1 // bit 1
21976 #define PWM6PHL2 PWM6PHLbits.PWM6PHL2 // bit 2
21977 #define PWM6PHL3 PWM6PHLbits.PWM6PHL3 // bit 3
21978 #define PWM6PHL4 PWM6PHLbits.PWM6PHL4 // bit 4
21979 #define PWM6PHL5 PWM6PHLbits.PWM6PHL5 // bit 5
21980 #define PWM6PHL6 PWM6PHLbits.PWM6PHL6 // bit 6
21981 #define PWM6PHL7 PWM6PHLbits.PWM6PHL7 // bit 7
21983 #define PWM6PRH0 PWM6PRHbits.PWM6PRH0 // bit 0
21984 #define PWM6PRH1 PWM6PRHbits.PWM6PRH1 // bit 1
21985 #define PWM6PRH2 PWM6PRHbits.PWM6PRH2 // bit 2
21986 #define PWM6PRH3 PWM6PRHbits.PWM6PRH3 // bit 3
21987 #define PWM6PRH4 PWM6PRHbits.PWM6PRH4 // bit 4
21988 #define PWM6PRH5 PWM6PRHbits.PWM6PRH5 // bit 5
21989 #define PWM6PRH6 PWM6PRHbits.PWM6PRH6 // bit 6
21990 #define PWM6PRH7 PWM6PRHbits.PWM6PRH7 // bit 7
21992 #define PWM6PRL0 PWM6PRLbits.PWM6PRL0 // bit 0
21993 #define PWM6PRL1 PWM6PRLbits.PWM6PRL1 // bit 1
21994 #define PWM6PRL2 PWM6PRLbits.PWM6PRL2 // bit 2
21995 #define PWM6PRL3 PWM6PRLbits.PWM6PRL3 // bit 3
21996 #define PWM6PRL4 PWM6PRLbits.PWM6PRL4 // bit 4
21997 #define PWM6PRL5 PWM6PRLbits.PWM6PRL5 // bit 5
21998 #define PWM6PRL6 PWM6PRLbits.PWM6PRL6 // bit 6
21999 #define PWM6PRL7 PWM6PRLbits.PWM6PRL7 // bit 7
22001 #define PWM6TMRH0 PWM6TMRHbits.PWM6TMRH0 // bit 0
22002 #define PWM6TMRH1 PWM6TMRHbits.PWM6TMRH1 // bit 1
22003 #define PWM6TMRH2 PWM6TMRHbits.PWM6TMRH2 // bit 2
22004 #define PWM6TMRH3 PWM6TMRHbits.PWM6TMRH3 // bit 3
22005 #define PWM6TMRH4 PWM6TMRHbits.PWM6TMRH4 // bit 4
22006 #define PWM6TMRH5 PWM6TMRHbits.PWM6TMRH5 // bit 5
22007 #define PWM6TMRH6 PWM6TMRHbits.PWM6TMRH6 // bit 6
22008 #define PWM6TMRH7 PWM6TMRHbits.PWM6TMRH7 // bit 7
22010 #define PWM6TMRL0 PWM6TMRLbits.PWM6TMRL0 // bit 0
22011 #define PWM6TMRL1 PWM6TMRLbits.PWM6TMRL1 // bit 1
22012 #define PWM6TMRL2 PWM6TMRLbits.PWM6TMRL2 // bit 2
22013 #define PWM6TMRL3 PWM6TMRLbits.PWM6TMRL3 // bit 3
22014 #define PWM6TMRL4 PWM6TMRLbits.PWM6TMRL4 // bit 4
22015 #define PWM6TMRL5 PWM6TMRLbits.PWM6TMRL5 // bit 5
22016 #define PWM6TMRL6 PWM6TMRLbits.PWM6TMRL6 // bit 6
22017 #define PWM6TMRL7 PWM6TMRLbits.PWM6TMRL7 // bit 7
22019 #define PWM11DCH0 PWM11DCHbits.PWM11DCH0 // bit 0
22020 #define PWM11DCH1 PWM11DCHbits.PWM11DCH1 // bit 1
22021 #define PWM11DCH2 PWM11DCHbits.PWM11DCH2 // bit 2
22022 #define PWM11DCH3 PWM11DCHbits.PWM11DCH3 // bit 3
22023 #define PWM11DCH4 PWM11DCHbits.PWM11DCH4 // bit 4
22024 #define PWM11DCH5 PWM11DCHbits.PWM11DCH5 // bit 5
22025 #define PWM11DCH6 PWM11DCHbits.PWM11DCH6 // bit 6
22026 #define PWM11DCH7 PWM11DCHbits.PWM11DCH7 // bit 7
22028 #define PWM11DCL0 PWM11DCLbits.PWM11DCL0 // bit 0
22029 #define PWM11DCL1 PWM11DCLbits.PWM11DCL1 // bit 1
22030 #define PWM11DCL2 PWM11DCLbits.PWM11DCL2 // bit 2
22031 #define PWM11DCL3 PWM11DCLbits.PWM11DCL3 // bit 3
22032 #define PWM11DCL4 PWM11DCLbits.PWM11DCL4 // bit 4
22033 #define PWM11DCL5 PWM11DCLbits.PWM11DCL5 // bit 5
22034 #define PWM11DCL6 PWM11DCLbits.PWM11DCL6 // bit 6
22035 #define PWM11DCL7 PWM11DCLbits.PWM11DCL7 // bit 7
22037 #define PWM11OFH0 PWM11OFHbits.PWM11OFH0 // bit 0
22038 #define PWM11OFH1 PWM11OFHbits.PWM11OFH1 // bit 1
22039 #define PWM11OFH2 PWM11OFHbits.PWM11OFH2 // bit 2
22040 #define PWM11OFH3 PWM11OFHbits.PWM11OFH3 // bit 3
22041 #define PWM11OFH4 PWM11OFHbits.PWM11OFH4 // bit 4
22042 #define PWM11OFH5 PWM11OFHbits.PWM11OFH5 // bit 5
22043 #define PWM11OFH6 PWM11OFHbits.PWM11OFH6 // bit 6
22044 #define PWM11OFH7 PWM11OFHbits.PWM11OFH7 // bit 7
22046 #define PWM11OFL0 PWM11OFLbits.PWM11OFL0 // bit 0
22047 #define PWM11OFL1 PWM11OFLbits.PWM11OFL1 // bit 1
22048 #define PWM11OFL2 PWM11OFLbits.PWM11OFL2 // bit 2
22049 #define PWM11OFL3 PWM11OFLbits.PWM11OFL3 // bit 3
22050 #define PWM11OFL4 PWM11OFLbits.PWM11OFL4 // bit 4
22051 #define PWM11OFL5 PWM11OFLbits.PWM11OFL5 // bit 5
22052 #define PWM11OFL6 PWM11OFLbits.PWM11OFL6 // bit 6
22053 #define PWM11OFL7 PWM11OFLbits.PWM11OFL7 // bit 7
22055 #define PWM11PHH0 PWM11PHHbits.PWM11PHH0 // bit 0
22056 #define PWM11PHH1 PWM11PHHbits.PWM11PHH1 // bit 1
22057 #define PWM11PHH2 PWM11PHHbits.PWM11PHH2 // bit 2
22058 #define PWM11PHH3 PWM11PHHbits.PWM11PHH3 // bit 3
22059 #define PWM11PHH4 PWM11PHHbits.PWM11PHH4 // bit 4
22060 #define PWM11PHH5 PWM11PHHbits.PWM11PHH5 // bit 5
22061 #define PWM11PHH6 PWM11PHHbits.PWM11PHH6 // bit 6
22062 #define PWM11PHH7 PWM11PHHbits.PWM11PHH7 // bit 7
22064 #define PWM11PHL0 PWM11PHLbits.PWM11PHL0 // bit 0
22065 #define PWM11PHL1 PWM11PHLbits.PWM11PHL1 // bit 1
22066 #define PWM11PHL2 PWM11PHLbits.PWM11PHL2 // bit 2
22067 #define PWM11PHL3 PWM11PHLbits.PWM11PHL3 // bit 3
22068 #define PWM11PHL4 PWM11PHLbits.PWM11PHL4 // bit 4
22069 #define PWM11PHL5 PWM11PHLbits.PWM11PHL5 // bit 5
22070 #define PWM11PHL6 PWM11PHLbits.PWM11PHL6 // bit 6
22071 #define PWM11PHL7 PWM11PHLbits.PWM11PHL7 // bit 7
22073 #define PWM11PRH0 PWM11PRHbits.PWM11PRH0 // bit 0
22074 #define PWM11PRH1 PWM11PRHbits.PWM11PRH1 // bit 1
22075 #define PWM11PRH2 PWM11PRHbits.PWM11PRH2 // bit 2
22076 #define PWM11PRH3 PWM11PRHbits.PWM11PRH3 // bit 3
22077 #define PWM11PRH4 PWM11PRHbits.PWM11PRH4 // bit 4
22078 #define PWM11PRH5 PWM11PRHbits.PWM11PRH5 // bit 5
22079 #define PWM11PRH6 PWM11PRHbits.PWM11PRH6 // bit 6
22080 #define PWM11PRH7 PWM11PRHbits.PWM11PRH7 // bit 7
22082 #define PWM11PRL0 PWM11PRLbits.PWM11PRL0 // bit 0
22083 #define PWM11PRL1 PWM11PRLbits.PWM11PRL1 // bit 1
22084 #define PWM11PRL2 PWM11PRLbits.PWM11PRL2 // bit 2
22085 #define PWM11PRL3 PWM11PRLbits.PWM11PRL3 // bit 3
22086 #define PWM11PRL4 PWM11PRLbits.PWM11PRL4 // bit 4
22087 #define PWM11PRL5 PWM11PRLbits.PWM11PRL5 // bit 5
22088 #define PWM11PRL6 PWM11PRLbits.PWM11PRL6 // bit 6
22089 #define PWM11PRL7 PWM11PRLbits.PWM11PRL7 // bit 7
22091 #define PWM11TMRH0 PWM11TMRHbits.PWM11TMRH0 // bit 0
22092 #define PWM11TMRH1 PWM11TMRHbits.PWM11TMRH1 // bit 1
22093 #define PWM11TMRH2 PWM11TMRHbits.PWM11TMRH2 // bit 2
22094 #define PWM11TMRH3 PWM11TMRHbits.PWM11TMRH3 // bit 3
22095 #define PWM11TMRH4 PWM11TMRHbits.PWM11TMRH4 // bit 4
22096 #define PWM11TMRH5 PWM11TMRHbits.PWM11TMRH5 // bit 5
22097 #define PWM11TMRH6 PWM11TMRHbits.PWM11TMRH6 // bit 6
22098 #define PWM11TMRH7 PWM11TMRHbits.PWM11TMRH7 // bit 7
22100 #define PWM11TMRL0 PWM11TMRLbits.PWM11TMRL0 // bit 0
22101 #define PWM11TMRL1 PWM11TMRLbits.PWM11TMRL1 // bit 1
22102 #define PWM11TMRL2 PWM11TMRLbits.PWM11TMRL2 // bit 2
22103 #define PWM11TMRL3 PWM11TMRLbits.PWM11TMRL3 // bit 3
22104 #define PWM11TMRL4 PWM11TMRLbits.PWM11TMRL4 // bit 4
22105 #define PWM11TMRL5 PWM11TMRLbits.PWM11TMRL5 // bit 5
22106 #define PWM11TMRL6 PWM11TMRLbits.PWM11TMRL6 // bit 6
22107 #define PWM11TMRL7 PWM11TMRLbits.PWM11TMRL7 // bit 7
22109 #define MPWM5EN PWMENbits.MPWM5EN // bit 0
22110 #define MPWM6EN PWMENbits.MPWM6EN // bit 1
22111 #define MPWM11EN PWMENbits.MPWM11EN // bit 2
22113 #define MPWM5LD PWMLDbits.MPWM5LD // bit 0
22114 #define MPWM6LD PWMLDbits.MPWM6LD // bit 1
22115 #define MPWM11LD PWMLDbits.MPWM11LD // bit 2
22117 #define MPWM5OUT PWMOUTbits.MPWM5OUT // bit 0
22118 #define MPWM6OUT PWMOUTbits.MPWM6OUT // bit 1
22119 #define MPWM11OUT PWMOUTbits.MPWM11OUT // bit 2
22121 #define RX9D RC1STAbits.RX9D // bit 0
22122 #define OERR RC1STAbits.OERR // bit 1
22123 #define FERR RC1STAbits.FERR // bit 2
22124 #define ADDEN RC1STAbits.ADDEN // bit 3
22125 #define CREN RC1STAbits.CREN // bit 4
22126 #define SREN RC1STAbits.SREN // bit 5
22127 #define RX9 RC1STAbits.RX9 // bit 6
22128 #define SPEN RC1STAbits.SPEN // bit 7
22130 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
22131 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
22132 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
22133 #define SLRA3 SLRCONAbits.SLRA3 // bit 3
22134 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
22135 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
22136 #define SLRA6 SLRCONAbits.SLRA6 // bit 6
22137 #define SLRA7 SLRCONAbits.SLRA7 // bit 7
22139 #define SLRB0 SLRCONBbits.SLRB0 // bit 0
22140 #define SLRB1 SLRCONBbits.SLRB1 // bit 1
22141 #define SLRB2 SLRCONBbits.SLRB2 // bit 2
22142 #define SLRB3 SLRCONBbits.SLRB3 // bit 3
22143 #define SLRB4 SLRCONBbits.SLRB4 // bit 4
22144 #define SLRB5 SLRCONBbits.SLRB5 // bit 5
22145 #define SLRB6 SLRCONBbits.SLRB6 // bit 6
22146 #define SLRB7 SLRCONBbits.SLRB7 // bit 7
22148 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
22149 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
22150 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
22151 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
22152 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
22153 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
22154 #define SLRC6 SLRCONCbits.SLRC6 // bit 6
22155 #define SLRC7 SLRCONCbits.SLRC7 // bit 7
22157 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
22158 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
22159 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
22160 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
22161 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
22162 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
22163 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
22164 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
22165 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
22166 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
22167 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
22168 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
22169 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
22170 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
22171 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
22172 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
22174 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
22175 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
22176 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
22177 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
22178 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
22179 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
22180 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
22181 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
22182 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
22183 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
22184 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
22185 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
22186 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
22187 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
22188 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
22189 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
22191 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
22192 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
22193 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
22194 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
22195 #define CKP SSP1CONbits.CKP // bit 4
22196 #define SSPEN SSP1CONbits.SSPEN // bit 5
22197 #define SSPOV SSP1CONbits.SSPOV // bit 6
22198 #define WCOL SSP1CONbits.WCOL // bit 7
22200 #define SEN SSP1CON2bits.SEN // bit 0
22201 #define RSEN SSP1CON2bits.RSEN // bit 1
22202 #define PEN SSP1CON2bits.PEN // bit 2
22203 #define RCEN SSP1CON2bits.RCEN // bit 3
22204 #define ACKEN SSP1CON2bits.ACKEN // bit 4
22205 #define ACKDT SSP1CON2bits.ACKDT // bit 5
22206 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
22207 #define GCEN SSP1CON2bits.GCEN // bit 7
22209 #define DHEN SSP1CON3bits.DHEN // bit 0
22210 #define AHEN SSP1CON3bits.AHEN // bit 1
22211 #define SBCDE SSP1CON3bits.SBCDE // bit 2
22212 #define SDAHT SSP1CON3bits.SDAHT // bit 3
22213 #define BOEN SSP1CON3bits.BOEN // bit 4
22214 #define SCIE SSP1CON3bits.SCIE // bit 5
22215 #define PCIE SSP1CON3bits.PCIE // bit 6
22216 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
22218 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
22219 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
22220 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
22221 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
22222 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
22223 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
22224 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
22225 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
22226 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
22227 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
22228 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
22229 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
22230 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
22231 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
22232 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
22233 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
22235 #define BF SSP1STATbits.BF // bit 0
22236 #define UA SSP1STATbits.UA // bit 1
22237 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
22238 #define S SSP1STATbits.S // bit 3
22239 #define P SSP1STATbits.P // bit 4
22240 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
22241 #define CKE SSP1STATbits.CKE // bit 6
22242 #define SMP SSP1STATbits.SMP // bit 7
22244 #define C STATUSbits.C // bit 0
22245 #define DC STATUSbits.DC // bit 1
22246 #define Z STATUSbits.Z // bit 2
22247 #define NOT_PD STATUSbits.NOT_PD // bit 3
22248 #define NOT_TO STATUSbits.NOT_TO // bit 4
22250 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
22251 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
22252 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
22254 #define GSS0 T1GCONbits.GSS0 // bit 0, shadows bit in T1GCONbits
22255 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0, shadows bit in T1GCONbits
22256 #define GSS1 T1GCONbits.GSS1 // bit 1, shadows bit in T1GCONbits
22257 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1, shadows bit in T1GCONbits
22258 #define GVAL T1GCONbits.GVAL // bit 2, shadows bit in T1GCONbits
22259 #define T1GVAL T1GCONbits.T1GVAL // bit 2, shadows bit in T1GCONbits
22260 #define GGO_NOT_DONE T1GCONbits.GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
22261 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
22262 #define GSPM T1GCONbits.GSPM // bit 4, shadows bit in T1GCONbits
22263 #define T1GSPM T1GCONbits.T1GSPM // bit 4, shadows bit in T1GCONbits
22264 #define GTM T1GCONbits.GTM // bit 5, shadows bit in T1GCONbits
22265 #define T1GTM T1GCONbits.T1GTM // bit 5, shadows bit in T1GCONbits
22266 #define GPOL T1GCONbits.GPOL // bit 6, shadows bit in T1GCONbits
22267 #define T1GPOL T1GCONbits.T1GPOL // bit 6, shadows bit in T1GCONbits
22268 #define GE T1GCONbits.GE // bit 7, shadows bit in T1GCONbits
22269 #define T1GE T1GCONbits.T1GE // bit 7, shadows bit in T1GCONbits
22270 #define TMR1GE T1GCONbits.TMR1GE // bit 7, shadows bit in T1GCONbits
22272 #define RSEL0 T2RSTbits.RSEL0 // bit 0, shadows bit in T2RSTbits
22273 #define T2RSEL0 T2RSTbits.T2RSEL0 // bit 0, shadows bit in T2RSTbits
22274 #define RSEL1 T2RSTbits.RSEL1 // bit 1, shadows bit in T2RSTbits
22275 #define T2RSEL1 T2RSTbits.T2RSEL1 // bit 1, shadows bit in T2RSTbits
22276 #define RSEL2 T2RSTbits.RSEL2 // bit 2, shadows bit in T2RSTbits
22277 #define T2RSEL2 T2RSTbits.T2RSEL2 // bit 2, shadows bit in T2RSTbits
22278 #define RSEL3 T2RSTbits.RSEL3 // bit 3, shadows bit in T2RSTbits
22279 #define T2RSEL3 T2RSTbits.T2RSEL3 // bit 3, shadows bit in T2RSTbits
22280 #define RSEL4 T2RSTbits.RSEL4 // bit 4, shadows bit in T2RSTbits
22281 #define T2RSEL4 T2RSTbits.T2RSEL4 // bit 4, shadows bit in T2RSTbits
22283 #define TRISA0 TRISAbits.TRISA0 // bit 0
22284 #define TRISA1 TRISAbits.TRISA1 // bit 1
22285 #define TRISA2 TRISAbits.TRISA2 // bit 2
22286 #define TRISA3 TRISAbits.TRISA3 // bit 3
22287 #define TRISA4 TRISAbits.TRISA4 // bit 4
22288 #define TRISA5 TRISAbits.TRISA5 // bit 5
22289 #define TRISA6 TRISAbits.TRISA6 // bit 6
22290 #define TRISA7 TRISAbits.TRISA7 // bit 7
22292 #define TRISB0 TRISBbits.TRISB0 // bit 0
22293 #define TRISB1 TRISBbits.TRISB1 // bit 1
22294 #define TRISB2 TRISBbits.TRISB2 // bit 2
22295 #define TRISB3 TRISBbits.TRISB3 // bit 3
22296 #define TRISB4 TRISBbits.TRISB4 // bit 4
22297 #define TRISB5 TRISBbits.TRISB5 // bit 5
22298 #define TRISB6 TRISBbits.TRISB6 // bit 6
22299 #define TRISB7 TRISBbits.TRISB7 // bit 7
22301 #define TRISC0 TRISCbits.TRISC0 // bit 0
22302 #define TRISC1 TRISCbits.TRISC1 // bit 1
22303 #define TRISC2 TRISCbits.TRISC2 // bit 2
22304 #define TRISC3 TRISCbits.TRISC3 // bit 3
22305 #define TRISC4 TRISCbits.TRISC4 // bit 4
22306 #define TRISC5 TRISCbits.TRISC5 // bit 5
22307 #define TRISC6 TRISCbits.TRISC6 // bit 6
22308 #define TRISC7 TRISCbits.TRISC7 // bit 7
22310 #define TRISE3 TRISEbits.TRISE3 // bit 3
22312 #define SWDTEN WDTCONbits.SWDTEN // bit 0
22313 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
22314 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
22315 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
22316 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
22317 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
22319 #define WPUA0 WPUAbits.WPUA0 // bit 0
22320 #define WPUA1 WPUAbits.WPUA1 // bit 1
22321 #define WPUA2 WPUAbits.WPUA2 // bit 2
22322 #define WPUA3 WPUAbits.WPUA3 // bit 3
22323 #define WPUA4 WPUAbits.WPUA4 // bit 4
22324 #define WPUA5 WPUAbits.WPUA5 // bit 5
22325 #define WPUA6 WPUAbits.WPUA6 // bit 6
22326 #define WPUA7 WPUAbits.WPUA7 // bit 7
22328 #define WPUB0 WPUBbits.WPUB0 // bit 0
22329 #define WPUB1 WPUBbits.WPUB1 // bit 1
22330 #define WPUB2 WPUBbits.WPUB2 // bit 2
22331 #define WPUB3 WPUBbits.WPUB3 // bit 3
22332 #define WPUB4 WPUBbits.WPUB4 // bit 4
22333 #define WPUB5 WPUBbits.WPUB5 // bit 5
22334 #define WPUB6 WPUBbits.WPUB6 // bit 6
22335 #define WPUB7 WPUBbits.WPUB7 // bit 7
22337 #define WPUC0 WPUCbits.WPUC0 // bit 0
22338 #define WPUC1 WPUCbits.WPUC1 // bit 1
22339 #define WPUC2 WPUCbits.WPUC2 // bit 2
22340 #define WPUC3 WPUCbits.WPUC3 // bit 3
22341 #define WPUC4 WPUCbits.WPUC4 // bit 4
22342 #define WPUC5 WPUCbits.WPUC5 // bit 5
22343 #define WPUC6 WPUCbits.WPUC6 // bit 6
22344 #define WPUC7 WPUCbits.WPUC7 // bit 7
22346 #define WPUE3 WPUEbits.WPUE3 // bit 3
22348 #define ZCD1INTN ZCD1CONbits.ZCD1INTN // bit 0
22349 #define ZCD1INTP ZCD1CONbits.ZCD1INTP // bit 1
22350 #define ZCD1POL ZCD1CONbits.ZCD1POL // bit 4
22351 #define ZCD1OUT ZCD1CONbits.ZCD1OUT // bit 5
22352 #define ZCD1EN ZCD1CONbits.ZCD1EN // bit 7
22354 #endif // #ifndef NO_BIT_DEFINES
22356 #endif // #ifndef __PIC16LF1778_H__