Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16f1769.h
blob58169e231387adf9f34c7f63f1a285d06d7a6acb
1 /*
2 * This declarations of the PIC16F1769 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:14 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 __PIC16F1769_H__
26 #define __PIC16F1769_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 PIR1_ADDR 0x0011
54 #define PIR2_ADDR 0x0012
55 #define PIR3_ADDR 0x0013
56 #define PIR4_ADDR 0x0014
57 #define TMR0_ADDR 0x0015
58 #define TMR1_ADDR 0x0016
59 #define TMR1L_ADDR 0x0016
60 #define TMR1H_ADDR 0x0017
61 #define T1CON_ADDR 0x0018
62 #define T1GCON_ADDR 0x0019
63 #define T2TMR_ADDR 0x001A
64 #define TMR2_ADDR 0x001A
65 #define PR2_ADDR 0x001B
66 #define T2PR_ADDR 0x001B
67 #define T2CON_ADDR 0x001C
68 #define T2HLT_ADDR 0x001D
69 #define T2CLKCON_ADDR 0x001E
70 #define T2RST_ADDR 0x001F
71 #define TRISA_ADDR 0x008C
72 #define TRISB_ADDR 0x008D
73 #define TRISC_ADDR 0x008E
74 #define PIE1_ADDR 0x0091
75 #define PIE2_ADDR 0x0092
76 #define PIE3_ADDR 0x0093
77 #define PIE4_ADDR 0x0094
78 #define OPTION_REG_ADDR 0x0095
79 #define PCON_ADDR 0x0096
80 #define WDTCON_ADDR 0x0097
81 #define OSCTUNE_ADDR 0x0098
82 #define OSCCON_ADDR 0x0099
83 #define OSCSTAT_ADDR 0x009A
84 #define ADRES_ADDR 0x009B
85 #define ADRESL_ADDR 0x009B
86 #define ADRESH_ADDR 0x009C
87 #define ADCON0_ADDR 0x009D
88 #define ADCON1_ADDR 0x009E
89 #define ADCON2_ADDR 0x009F
90 #define LATA_ADDR 0x010C
91 #define LATB_ADDR 0x010D
92 #define LATC_ADDR 0x010E
93 #define CMOUT_ADDR 0x010F
94 #define CM1CON0_ADDR 0x0110
95 #define CM1CON1_ADDR 0x0111
96 #define CM1NSEL_ADDR 0x0112
97 #define CM1PSEL_ADDR 0x0113
98 #define CM2CON0_ADDR 0x0114
99 #define CM2CON1_ADDR 0x0115
100 #define CM2NSEL_ADDR 0x0116
101 #define CM2PSEL_ADDR 0x0117
102 #define CM3CON0_ADDR 0x0118
103 #define CM3CON1_ADDR 0x0119
104 #define CM3NSEL_ADDR 0x011A
105 #define CM3PSEL_ADDR 0x011B
106 #define CM4CON0_ADDR 0x011C
107 #define CM4CON1_ADDR 0x011D
108 #define CM4NSEL_ADDR 0x011E
109 #define CM4PSEL_ADDR 0x011F
110 #define ANSELA_ADDR 0x018C
111 #define ANSELB_ADDR 0x018D
112 #define ANSELC_ADDR 0x018E
113 #define PMADR_ADDR 0x0191
114 #define PMADRL_ADDR 0x0191
115 #define PMADRH_ADDR 0x0192
116 #define PMDAT_ADDR 0x0193
117 #define PMDATL_ADDR 0x0193
118 #define PMDATH_ADDR 0x0194
119 #define PMCON1_ADDR 0x0195
120 #define PMCON2_ADDR 0x0196
121 #define VREGCON_ADDR 0x0197
122 #define RC1REG_ADDR 0x0199
123 #define RCREG_ADDR 0x0199
124 #define RCREG1_ADDR 0x0199
125 #define TX1REG_ADDR 0x019A
126 #define TXREG_ADDR 0x019A
127 #define TXREG1_ADDR 0x019A
128 #define SP1BRG_ADDR 0x019B
129 #define SP1BRGL_ADDR 0x019B
130 #define SPBRG_ADDR 0x019B
131 #define SPBRG1_ADDR 0x019B
132 #define SPBRGL_ADDR 0x019B
133 #define SP1BRGH_ADDR 0x019C
134 #define SPBRGH_ADDR 0x019C
135 #define SPBRGH1_ADDR 0x019C
136 #define RC1STA_ADDR 0x019D
137 #define RCSTA_ADDR 0x019D
138 #define RCSTA1_ADDR 0x019D
139 #define TX1STA_ADDR 0x019E
140 #define TXSTA_ADDR 0x019E
141 #define TXSTA1_ADDR 0x019E
142 #define BAUD1CON_ADDR 0x019F
143 #define BAUDCON_ADDR 0x019F
144 #define BAUDCON1_ADDR 0x019F
145 #define BAUDCTL_ADDR 0x019F
146 #define BAUDCTL1_ADDR 0x019F
147 #define WPUA_ADDR 0x020C
148 #define WPUB_ADDR 0x020D
149 #define WPUC_ADDR 0x020E
150 #define SSP1BUF_ADDR 0x0211
151 #define SSPBUF_ADDR 0x0211
152 #define SSP1ADD_ADDR 0x0212
153 #define SSPADD_ADDR 0x0212
154 #define SSP1MSK_ADDR 0x0213
155 #define SSPMSK_ADDR 0x0213
156 #define SSP1STAT_ADDR 0x0214
157 #define SSPSTAT_ADDR 0x0214
158 #define SSP1CON_ADDR 0x0215
159 #define SSP1CON1_ADDR 0x0215
160 #define SSPCON_ADDR 0x0215
161 #define SSPCON1_ADDR 0x0215
162 #define SSP1CON2_ADDR 0x0216
163 #define SSPCON2_ADDR 0x0216
164 #define SSP1CON3_ADDR 0x0217
165 #define SSPCON3_ADDR 0x0217
166 #define BORCON_ADDR 0x021D
167 #define FVRCON_ADDR 0x021E
168 #define ZCD1CON_ADDR 0x021F
169 #define ODCONA_ADDR 0x028C
170 #define ODCONB_ADDR 0x028D
171 #define ODCONC_ADDR 0x028E
172 #define CCPR1_ADDR 0x0291
173 #define CCPR1L_ADDR 0x0291
174 #define CCPR1H_ADDR 0x0292
175 #define CCP1CON_ADDR 0x0293
176 #define CCP1CAP_ADDR 0x0294
177 #define CCPR2_ADDR 0x0298
178 #define CCPR2L_ADDR 0x0298
179 #define CCPR2H_ADDR 0x0299
180 #define CCP2CON_ADDR 0x029A
181 #define CCP2CAP_ADDR 0x029B
182 #define CCPTMRS_ADDR 0x029E
183 #define SLRCONA_ADDR 0x030C
184 #define SLRCONB_ADDR 0x030D
185 #define SLRCONC_ADDR 0x030E
186 #define MD2CON0_ADDR 0x031B
187 #define MD2CON1_ADDR 0x031C
188 #define MD2SRC_ADDR 0x031D
189 #define MD2CARL_ADDR 0x031E
190 #define MD2CARH_ADDR 0x031F
191 #define INLVLA_ADDR 0x038C
192 #define INLVLB_ADDR 0x038D
193 #define INLVLC_ADDR 0x038E
194 #define IOCAP_ADDR 0x0391
195 #define IOCAN_ADDR 0x0392
196 #define IOCAF_ADDR 0x0393
197 #define IOCBP_ADDR 0x0394
198 #define IOCBN_ADDR 0x0395
199 #define IOCBF_ADDR 0x0396
200 #define IOCCP_ADDR 0x0397
201 #define IOCCN_ADDR 0x0398
202 #define IOCCF_ADDR 0x0399
203 #define MD1CON0_ADDR 0x039B
204 #define MD1CON1_ADDR 0x039C
205 #define MD1SRC_ADDR 0x039D
206 #define MD1CARL_ADDR 0x039E
207 #define MD1CARH_ADDR 0x039F
208 #define HIDRVC_ADDR 0x040E
209 #define T4TMR_ADDR 0x0413
210 #define TMR4_ADDR 0x0413
211 #define PR4_ADDR 0x0414
212 #define T4PR_ADDR 0x0414
213 #define T4CON_ADDR 0x0415
214 #define T4HLT_ADDR 0x0416
215 #define T4CLKCON_ADDR 0x0417
216 #define T4RST_ADDR 0x0418
217 #define T6TMR_ADDR 0x041A
218 #define TMR6_ADDR 0x041A
219 #define PR6_ADDR 0x041B
220 #define T6PR_ADDR 0x041B
221 #define T6CON_ADDR 0x041C
222 #define T6HLT_ADDR 0x041D
223 #define T6CLKCON_ADDR 0x041E
224 #define T6RST_ADDR 0x041F
225 #define TMR3_ADDR 0x0493
226 #define TMR3L_ADDR 0x0493
227 #define TMR3H_ADDR 0x0494
228 #define T3CON_ADDR 0x0495
229 #define T3GCON_ADDR 0x0496
230 #define TMR5_ADDR 0x049A
231 #define TMR5L_ADDR 0x049A
232 #define TMR5H_ADDR 0x049B
233 #define T5CON_ADDR 0x049C
234 #define T5GCON_ADDR 0x049D
235 #define OPA1NCHS_ADDR 0x050F
236 #define OPA1PCHS_ADDR 0x0510
237 #define OPA1CON_ADDR 0x0511
238 #define OPA1ORS_ADDR 0x0512
239 #define OPA2NCHS_ADDR 0x0513
240 #define OPA2PCHS_ADDR 0x0514
241 #define OPA2CON_ADDR 0x0515
242 #define OPA2ORS_ADDR 0x0516
243 #define DACLD_ADDR 0x0590
244 #define DAC1CON0_ADDR 0x0591
245 #define DAC1CON1_ADDR 0x0592
246 #define DAC1REF_ADDR 0x0592
247 #define DAC1REFL_ADDR 0x0592
248 #define DAC1CON2_ADDR 0x0593
249 #define DAC1REFH_ADDR 0x0593
250 #define DAC2CON0_ADDR 0x0594
251 #define DAC2CON1_ADDR 0x0595
252 #define DAC2REF_ADDR 0x0595
253 #define DAC2REFL_ADDR 0x0595
254 #define DAC2CON2_ADDR 0x0596
255 #define DAC2REFH_ADDR 0x0596
256 #define DAC3CON0_ADDR 0x0597
257 #define DAC3CON1_ADDR 0x0598
258 #define DAC3REF_ADDR 0x0598
259 #define DAC4CON0_ADDR 0x0599
260 #define DAC4CON1_ADDR 0x059A
261 #define DAC4REF_ADDR 0x059A
262 #define PWM3DCL_ADDR 0x0617
263 #define PWM3DCH_ADDR 0x0618
264 #define PWM3CON_ADDR 0x0619
265 #define PWM4DCL_ADDR 0x061A
266 #define PWM4DCH_ADDR 0x061B
267 #define PWM4CON_ADDR 0x061C
268 #define COG1PHR_ADDR 0x068D
269 #define COG1PHF_ADDR 0x068E
270 #define COG1BLKR_ADDR 0x068F
271 #define COG1BLKF_ADDR 0x0690
272 #define COG1DBR_ADDR 0x0691
273 #define COG1DBF_ADDR 0x0692
274 #define COG1CON0_ADDR 0x0693
275 #define COG1CON1_ADDR 0x0694
276 #define COG1RIS0_ADDR 0x0695
277 #define COG1RIS1_ADDR 0x0696
278 #define COG1RSIM0_ADDR 0x0697
279 #define COG1RSIM1_ADDR 0x0698
280 #define COG1FIS0_ADDR 0x0699
281 #define COG1FIS1_ADDR 0x069A
282 #define COG1FSIM0_ADDR 0x069B
283 #define COG1FSIM1_ADDR 0x069C
284 #define COG1ASD0_ADDR 0x069D
285 #define COG1ASD1_ADDR 0x069E
286 #define COG1STR_ADDR 0x069F
287 #define COG2PHR_ADDR 0x070D
288 #define COG2PHF_ADDR 0x070E
289 #define COG2BLKR_ADDR 0x070F
290 #define COG2BLKF_ADDR 0x0710
291 #define COG2DBR_ADDR 0x0711
292 #define COG2DBF_ADDR 0x0712
293 #define COG2CON0_ADDR 0x0713
294 #define COG2CON1_ADDR 0x0714
295 #define COG2RIS0_ADDR 0x0715
296 #define COG2RIS1_ADDR 0x0716
297 #define COG2RSIM0_ADDR 0x0717
298 #define COG2RSIM1_ADDR 0x0718
299 #define COG2FIS0_ADDR 0x0719
300 #define COG2FIS1_ADDR 0x071A
301 #define COG2FSIM0_ADDR 0x071B
302 #define COG2FSIM1_ADDR 0x071C
303 #define COG2ASD0_ADDR 0x071D
304 #define COG2ASD1_ADDR 0x071E
305 #define COG2STR_ADDR 0x071F
306 #define PRG1RTSS_ADDR 0x0794
307 #define PRG1FTSS_ADDR 0x0795
308 #define PRG1INS_ADDR 0x0796
309 #define PRG1CON0_ADDR 0x0797
310 #define PRG1CON1_ADDR 0x0798
311 #define PRG1CON2_ADDR 0x0799
312 #define PRG2RTSS_ADDR 0x079A
313 #define PRG2FTSS_ADDR 0x079B
314 #define PRG2INS_ADDR 0x079C
315 #define PRG2CON0_ADDR 0x079D
316 #define PRG2CON1_ADDR 0x079E
317 #define PRG2CON2_ADDR 0x079F
318 #define PWMEN_ADDR 0x0D8E
319 #define PWMLD_ADDR 0x0D8F
320 #define PWMOUT_ADDR 0x0D90
321 #define PWM5PH_ADDR 0x0D91
322 #define PWM5PHL_ADDR 0x0D91
323 #define PWM5PHH_ADDR 0x0D92
324 #define PWM5DC_ADDR 0x0D93
325 #define PWM5DCL_ADDR 0x0D93
326 #define PWM5DCH_ADDR 0x0D94
327 #define PWM5PR_ADDR 0x0D95
328 #define PWM5PRL_ADDR 0x0D95
329 #define PWM5PRH_ADDR 0x0D96
330 #define PWM5OF_ADDR 0x0D97
331 #define PWM5OFL_ADDR 0x0D97
332 #define PWM5OFH_ADDR 0x0D98
333 #define PWM5TMR_ADDR 0x0D99
334 #define PWM5TMRL_ADDR 0x0D99
335 #define PWM5TMRH_ADDR 0x0D9A
336 #define PWM5CON_ADDR 0x0D9B
337 #define PWM5INTCON_ADDR 0x0D9C
338 #define PWM5INTE_ADDR 0x0D9C
339 #define PWM5INTF_ADDR 0x0D9D
340 #define PWM5INTFLG_ADDR 0x0D9D
341 #define PWM5CLKCON_ADDR 0x0D9E
342 #define PWM5LDCON_ADDR 0x0D9F
343 #define PWM5OFCON_ADDR 0x0DA0
344 #define PWM6PH_ADDR 0x0DA1
345 #define PWM6PHL_ADDR 0x0DA1
346 #define PWM6PHH_ADDR 0x0DA2
347 #define PWM6DC_ADDR 0x0DA3
348 #define PWM6DCL_ADDR 0x0DA3
349 #define PWM6DCH_ADDR 0x0DA4
350 #define PWM6PR_ADDR 0x0DA5
351 #define PWM6PRL_ADDR 0x0DA5
352 #define PWM6PRH_ADDR 0x0DA6
353 #define PWM6OF_ADDR 0x0DA7
354 #define PWM6OFL_ADDR 0x0DA7
355 #define PWM6OFH_ADDR 0x0DA8
356 #define PWM6TMR_ADDR 0x0DA9
357 #define PWM6TMRL_ADDR 0x0DA9
358 #define PWM6TMRH_ADDR 0x0DAA
359 #define PWM6CON_ADDR 0x0DAB
360 #define PWM6INTCON_ADDR 0x0DAC
361 #define PWM6INTE_ADDR 0x0DAC
362 #define PWM6INTF_ADDR 0x0DAD
363 #define PWM6INTFLG_ADDR 0x0DAD
364 #define PWM6CLKCON_ADDR 0x0DAE
365 #define PWM6LDCON_ADDR 0x0DAF
366 #define PWM6OFCON_ADDR 0x0DB0
367 #define PPSLOCK_ADDR 0x0E0F
368 #define INTPPS_ADDR 0x0E10
369 #define T0CKIPPS_ADDR 0x0E11
370 #define T1CKIPPS_ADDR 0x0E12
371 #define T1GPPS_ADDR 0x0E13
372 #define CCP1PPS_ADDR 0x0E14
373 #define CCP2PPS_ADDR 0x0E15
374 #define COG1INPPS_ADDR 0x0E16
375 #define COG2INPPS_ADDR 0x0E17
376 #define T2CKIPPS_ADDR 0x0E19
377 #define T3CKIPPS_ADDR 0x0E1A
378 #define T3GPPS_ADDR 0x0E1B
379 #define T4CKIPPS_ADDR 0x0E1C
380 #define T5CKIPPS_ADDR 0x0E1D
381 #define T5GPPS_ADDR 0x0E1E
382 #define T6CKIPPS_ADDR 0x0E1F
383 #define SSPCLKPPS_ADDR 0x0E20
384 #define SSPDATPPS_ADDR 0x0E21
385 #define SSPSSPPS_ADDR 0x0E22
386 #define RXPPS_ADDR 0x0E24
387 #define CKPPS_ADDR 0x0E25
388 #define CLCIN0PPS_ADDR 0x0E28
389 #define CLCIN1PPS_ADDR 0x0E29
390 #define CLCIN2PPS_ADDR 0x0E2A
391 #define CLCIN3PPS_ADDR 0x0E2B
392 #define PRG1RPPS_ADDR 0x0E2C
393 #define PRG1FPPS_ADDR 0x0E2D
394 #define PRG2RPPS_ADDR 0x0E2E
395 #define PRG2FPPS_ADDR 0x0E2F
396 #define MD1CHPPS_ADDR 0x0E30
397 #define MD1CLPPS_ADDR 0x0E31
398 #define MD1MODPPS_ADDR 0x0E32
399 #define MD2CHPPS_ADDR 0x0E33
400 #define MD2CLPPS_ADDR 0x0E34
401 #define MD2MODPPS_ADDR 0x0E35
402 #define RA0PPS_ADDR 0x0E90
403 #define RA1PPS_ADDR 0x0E91
404 #define RA2PPS_ADDR 0x0E92
405 #define RA4PPS_ADDR 0x0E94
406 #define RA5PPS_ADDR 0x0E95
407 #define RB4PPS_ADDR 0x0E9C
408 #define RB5PPS_ADDR 0x0E9D
409 #define RB6PPS_ADDR 0x0E9E
410 #define RB7PPS_ADDR 0x0E9F
411 #define RC0PPS_ADDR 0x0EA0
412 #define RC1PPS_ADDR 0x0EA1
413 #define RC2PPS_ADDR 0x0EA2
414 #define RC3PPS_ADDR 0x0EA3
415 #define RC4PPS_ADDR 0x0EA4
416 #define RC5PPS_ADDR 0x0EA5
417 #define RC6PPS_ADDR 0x0EA6
418 #define RC7PPS_ADDR 0x0EA7
419 #define CLCDATA_ADDR 0x0F0F
420 #define CLC1CON_ADDR 0x0F10
421 #define CLC1POL_ADDR 0x0F11
422 #define CLC1SEL0_ADDR 0x0F12
423 #define CLC1SEL1_ADDR 0x0F13
424 #define CLC1SEL2_ADDR 0x0F14
425 #define CLC1SEL3_ADDR 0x0F15
426 #define CLC1GLS0_ADDR 0x0F16
427 #define CLC1GLS1_ADDR 0x0F17
428 #define CLC1GLS2_ADDR 0x0F18
429 #define CLC1GLS3_ADDR 0x0F19
430 #define CLC2CON_ADDR 0x0F1A
431 #define CLC2POL_ADDR 0x0F1B
432 #define CLC2SEL0_ADDR 0x0F1C
433 #define CLC2SEL1_ADDR 0x0F1D
434 #define CLC2SEL2_ADDR 0x0F1E
435 #define CLC2SEL3_ADDR 0x0F1F
436 #define CLC2GLS0_ADDR 0x0F20
437 #define CLC2GLS1_ADDR 0x0F21
438 #define CLC2GLS2_ADDR 0x0F22
439 #define CLC2GLS3_ADDR 0x0F23
440 #define CLC3CON_ADDR 0x0F24
441 #define CLC3POL_ADDR 0x0F25
442 #define CLC3SEL0_ADDR 0x0F26
443 #define CLC3SEL1_ADDR 0x0F27
444 #define CLC3SEL2_ADDR 0x0F28
445 #define CLC3SEL3_ADDR 0x0F29
446 #define CLC3GLS0_ADDR 0x0F2A
447 #define CLC3GLS1_ADDR 0x0F2B
448 #define CLC3GLS2_ADDR 0x0F2C
449 #define CLC3GLS3_ADDR 0x0F2D
450 #define STATUS_SHAD_ADDR 0x0FE4
451 #define WREG_SHAD_ADDR 0x0FE5
452 #define BSR_SHAD_ADDR 0x0FE6
453 #define PCLATH_SHAD_ADDR 0x0FE7
454 #define FSR0L_SHAD_ADDR 0x0FE8
455 #define FSR0H_SHAD_ADDR 0x0FE9
456 #define FSR1L_SHAD_ADDR 0x0FEA
457 #define FSR1H_SHAD_ADDR 0x0FEB
458 #define STKPTR_ADDR 0x0FED
459 #define TOSL_ADDR 0x0FEE
460 #define TOSH_ADDR 0x0FEF
462 #endif // #ifndef NO_ADDR_DEFINES
464 //==============================================================================
466 // Register Definitions
468 //==============================================================================
470 extern __at(0x0000) __sfr INDF0;
471 extern __at(0x0001) __sfr INDF1;
472 extern __at(0x0002) __sfr PCL;
474 //==============================================================================
475 // STATUS Bits
477 extern __at(0x0003) __sfr STATUS;
479 typedef struct
481 unsigned C : 1;
482 unsigned DC : 1;
483 unsigned Z : 1;
484 unsigned NOT_PD : 1;
485 unsigned NOT_TO : 1;
486 unsigned : 1;
487 unsigned : 1;
488 unsigned : 1;
489 } __STATUSbits_t;
491 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
493 #define _C 0x01
494 #define _DC 0x02
495 #define _Z 0x04
496 #define _NOT_PD 0x08
497 #define _NOT_TO 0x10
499 //==============================================================================
501 extern __at(0x0004) __sfr FSR0;
502 extern __at(0x0004) __sfr FSR0L;
503 extern __at(0x0005) __sfr FSR0H;
504 extern __at(0x0006) __sfr FSR1;
505 extern __at(0x0006) __sfr FSR1L;
506 extern __at(0x0007) __sfr FSR1H;
508 //==============================================================================
509 // BSR Bits
511 extern __at(0x0008) __sfr BSR;
513 typedef union
515 struct
517 unsigned BSR0 : 1;
518 unsigned BSR1 : 1;
519 unsigned BSR2 : 1;
520 unsigned BSR3 : 1;
521 unsigned BSR4 : 1;
522 unsigned : 1;
523 unsigned : 1;
524 unsigned : 1;
527 struct
529 unsigned BSR : 5;
530 unsigned : 3;
532 } __BSRbits_t;
534 extern __at(0x0008) volatile __BSRbits_t BSRbits;
536 #define _BSR0 0x01
537 #define _BSR1 0x02
538 #define _BSR2 0x04
539 #define _BSR3 0x08
540 #define _BSR4 0x10
542 //==============================================================================
544 extern __at(0x0009) __sfr WREG;
545 extern __at(0x000A) __sfr PCLATH;
547 //==============================================================================
548 // INTCON Bits
550 extern __at(0x000B) __sfr INTCON;
552 typedef union
554 struct
556 unsigned IOCIF : 1;
557 unsigned INTF : 1;
558 unsigned TMR0IF : 1;
559 unsigned IOCIE : 1;
560 unsigned INTE : 1;
561 unsigned TMR0IE : 1;
562 unsigned PEIE : 1;
563 unsigned GIE : 1;
566 struct
568 unsigned : 1;
569 unsigned : 1;
570 unsigned T0IF : 1;
571 unsigned : 1;
572 unsigned : 1;
573 unsigned T0IE : 1;
574 unsigned : 1;
575 unsigned : 1;
577 } __INTCONbits_t;
579 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
581 #define _IOCIF 0x01
582 #define _INTF 0x02
583 #define _TMR0IF 0x04
584 #define _T0IF 0x04
585 #define _IOCIE 0x08
586 #define _INTE 0x10
587 #define _TMR0IE 0x20
588 #define _T0IE 0x20
589 #define _PEIE 0x40
590 #define _GIE 0x80
592 //==============================================================================
595 //==============================================================================
596 // PORTA Bits
598 extern __at(0x000C) __sfr PORTA;
600 typedef union
602 struct
604 unsigned RA0 : 1;
605 unsigned RA1 : 1;
606 unsigned RA2 : 1;
607 unsigned RA3 : 1;
608 unsigned RA4 : 1;
609 unsigned RA5 : 1;
610 unsigned : 1;
611 unsigned : 1;
614 struct
616 unsigned RA : 6;
617 unsigned : 2;
619 } __PORTAbits_t;
621 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
623 #define _RA0 0x01
624 #define _RA1 0x02
625 #define _RA2 0x04
626 #define _RA3 0x08
627 #define _RA4 0x10
628 #define _RA5 0x20
630 //==============================================================================
633 //==============================================================================
634 // PORTB Bits
636 extern __at(0x000D) __sfr PORTB;
638 typedef struct
640 unsigned : 1;
641 unsigned : 1;
642 unsigned : 1;
643 unsigned : 1;
644 unsigned RB4 : 1;
645 unsigned RB5 : 1;
646 unsigned RB6 : 1;
647 unsigned RB7 : 1;
648 } __PORTBbits_t;
650 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
652 #define _RB4 0x10
653 #define _RB5 0x20
654 #define _RB6 0x40
655 #define _RB7 0x80
657 //==============================================================================
660 //==============================================================================
661 // PORTC Bits
663 extern __at(0x000E) __sfr PORTC;
665 typedef struct
667 unsigned RC0 : 1;
668 unsigned RC1 : 1;
669 unsigned RC2 : 1;
670 unsigned RC3 : 1;
671 unsigned RC4 : 1;
672 unsigned RC5 : 1;
673 unsigned RC6 : 1;
674 unsigned RC7 : 1;
675 } __PORTCbits_t;
677 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
679 #define _RC0 0x01
680 #define _RC1 0x02
681 #define _RC2 0x04
682 #define _RC3 0x08
683 #define _RC4 0x10
684 #define _RC5 0x20
685 #define _RC6 0x40
686 #define _RC7 0x80
688 //==============================================================================
691 //==============================================================================
692 // PIR1 Bits
694 extern __at(0x0011) __sfr PIR1;
696 typedef union
698 struct
700 unsigned TMR1IF : 1;
701 unsigned TMR2IF : 1;
702 unsigned CCP1IF : 1;
703 unsigned SSP1IF : 1;
704 unsigned TXIF : 1;
705 unsigned RCIF : 1;
706 unsigned ADIF : 1;
707 unsigned TMR1GIF : 1;
710 struct
712 unsigned : 1;
713 unsigned : 1;
714 unsigned CCPIF : 1;
715 unsigned : 1;
716 unsigned : 1;
717 unsigned : 1;
718 unsigned : 1;
719 unsigned : 1;
721 } __PIR1bits_t;
723 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
725 #define _TMR1IF 0x01
726 #define _TMR2IF 0x02
727 #define _CCP1IF 0x04
728 #define _CCPIF 0x04
729 #define _SSP1IF 0x08
730 #define _TXIF 0x10
731 #define _RCIF 0x20
732 #define _ADIF 0x40
733 #define _TMR1GIF 0x80
735 //==============================================================================
738 //==============================================================================
739 // PIR2 Bits
741 extern __at(0x0012) __sfr PIR2;
743 typedef struct
745 unsigned CCP2IF : 1;
746 unsigned C3IF : 1;
747 unsigned C4IF : 1;
748 unsigned BCL1IF : 1;
749 unsigned : 1;
750 unsigned C1IF : 1;
751 unsigned C2IF : 1;
752 unsigned OSFIF : 1;
753 } __PIR2bits_t;
755 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
757 #define _CCP2IF 0x01
758 #define _C3IF 0x02
759 #define _C4IF 0x04
760 #define _BCL1IF 0x08
761 #define _C1IF 0x20
762 #define _C2IF 0x40
763 #define _OSFIF 0x80
765 //==============================================================================
768 //==============================================================================
769 // PIR3 Bits
771 extern __at(0x0013) __sfr PIR3;
773 typedef struct
775 unsigned CLC1IF : 1;
776 unsigned CLC2IF : 1;
777 unsigned CLC3IF : 1;
778 unsigned COG2IF : 1;
779 unsigned ZCDIF : 1;
780 unsigned COG1IF : 1;
781 unsigned PWM5IF : 1;
782 unsigned PWM6IF : 1;
783 } __PIR3bits_t;
785 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
787 #define _CLC1IF 0x01
788 #define _CLC2IF 0x02
789 #define _CLC3IF 0x04
790 #define _COG2IF 0x08
791 #define _ZCDIF 0x10
792 #define _COG1IF 0x20
793 #define _PWM5IF 0x40
794 #define _PWM6IF 0x80
796 //==============================================================================
799 //==============================================================================
800 // PIR4 Bits
802 extern __at(0x0014) __sfr PIR4;
804 typedef struct
806 unsigned TMR4IF : 1;
807 unsigned TMR6IF : 1;
808 unsigned TMR3IF : 1;
809 unsigned TMR3GIF : 1;
810 unsigned TMR5IF : 1;
811 unsigned TMR5GIF : 1;
812 unsigned : 1;
813 unsigned : 1;
814 } __PIR4bits_t;
816 extern __at(0x0014) volatile __PIR4bits_t PIR4bits;
818 #define _TMR4IF 0x01
819 #define _TMR6IF 0x02
820 #define _TMR3IF 0x04
821 #define _TMR3GIF 0x08
822 #define _TMR5IF 0x10
823 #define _TMR5GIF 0x20
825 //==============================================================================
827 extern __at(0x0015) __sfr TMR0;
828 extern __at(0x0016) __sfr TMR1;
829 extern __at(0x0016) __sfr TMR1L;
830 extern __at(0x0017) __sfr TMR1H;
832 //==============================================================================
833 // T1CON Bits
835 extern __at(0x0018) __sfr T1CON;
837 typedef union
839 struct
841 unsigned ON : 1;
842 unsigned : 1;
843 unsigned NOT_SYNC : 1;
844 unsigned OSCEN : 1;
845 unsigned CKPS0 : 1;
846 unsigned CKPS1 : 1;
847 unsigned CS0 : 1;
848 unsigned CS1 : 1;
851 struct
853 unsigned TMRON : 1;
854 unsigned : 1;
855 unsigned SYNC : 1;
856 unsigned SOSCEN : 1;
857 unsigned T1CKPS0 : 1;
858 unsigned T1CKPS1 : 1;
859 unsigned T1CS0 : 1;
860 unsigned T1CS1 : 1;
863 struct
865 unsigned TMR1ON : 1;
866 unsigned : 1;
867 unsigned NOT_T1SYNC : 1;
868 unsigned T1OSCEN : 1;
869 unsigned : 1;
870 unsigned : 1;
871 unsigned TMR1CS0 : 1;
872 unsigned TMR1CS1 : 1;
875 struct
877 unsigned T1ON : 1;
878 unsigned : 1;
879 unsigned : 1;
880 unsigned : 1;
881 unsigned : 1;
882 unsigned : 1;
883 unsigned : 1;
884 unsigned : 1;
887 struct
889 unsigned : 4;
890 unsigned CKPS : 2;
891 unsigned : 2;
894 struct
896 unsigned : 4;
897 unsigned T1CKPS : 2;
898 unsigned : 2;
901 struct
903 unsigned : 6;
904 unsigned T1CS : 2;
907 struct
909 unsigned : 6;
910 unsigned TMR1CS : 2;
913 struct
915 unsigned : 6;
916 unsigned CS : 2;
918 } __T1CONbits_t;
920 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
922 #define _T1CON_ON 0x01
923 #define _T1CON_TMRON 0x01
924 #define _T1CON_TMR1ON 0x01
925 #define _T1CON_T1ON 0x01
926 #define _T1CON_NOT_SYNC 0x04
927 #define _T1CON_SYNC 0x04
928 #define _T1CON_NOT_T1SYNC 0x04
929 #define _T1CON_OSCEN 0x08
930 #define _T1CON_SOSCEN 0x08
931 #define _T1CON_T1OSCEN 0x08
932 #define _T1CON_CKPS0 0x10
933 #define _T1CON_T1CKPS0 0x10
934 #define _T1CON_CKPS1 0x20
935 #define _T1CON_T1CKPS1 0x20
936 #define _T1CON_CS0 0x40
937 #define _T1CON_T1CS0 0x40
938 #define _T1CON_TMR1CS0 0x40
939 #define _T1CON_CS1 0x80
940 #define _T1CON_T1CS1 0x80
941 #define _T1CON_TMR1CS1 0x80
943 //==============================================================================
946 //==============================================================================
947 // T1GCON Bits
949 extern __at(0x0019) __sfr T1GCON;
951 typedef union
953 struct
955 unsigned GSS0 : 1;
956 unsigned GSS1 : 1;
957 unsigned GVAL : 1;
958 unsigned GGO_NOT_DONE : 1;
959 unsigned GSPM : 1;
960 unsigned GTM : 1;
961 unsigned GPOL : 1;
962 unsigned GE : 1;
965 struct
967 unsigned T1GSS0 : 1;
968 unsigned T1GSS1 : 1;
969 unsigned T1GVAL : 1;
970 unsigned T1GGO_NOT_DONE : 1;
971 unsigned T1GSPM : 1;
972 unsigned T1GTM : 1;
973 unsigned T1GPOL : 1;
974 unsigned T1GE : 1;
977 struct
979 unsigned : 1;
980 unsigned : 1;
981 unsigned : 1;
982 unsigned : 1;
983 unsigned : 1;
984 unsigned : 1;
985 unsigned : 1;
986 unsigned TMR1GE : 1;
989 struct
991 unsigned T1GSS : 2;
992 unsigned : 6;
995 struct
997 unsigned GSS : 2;
998 unsigned : 6;
1000 } __T1GCONbits_t;
1002 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
1004 #define _GSS0 0x01
1005 #define _T1GSS0 0x01
1006 #define _GSS1 0x02
1007 #define _T1GSS1 0x02
1008 #define _GVAL 0x04
1009 #define _T1GVAL 0x04
1010 #define _GGO_NOT_DONE 0x08
1011 #define _T1GGO_NOT_DONE 0x08
1012 #define _GSPM 0x10
1013 #define _T1GSPM 0x10
1014 #define _GTM 0x20
1015 #define _T1GTM 0x20
1016 #define _GPOL 0x40
1017 #define _T1GPOL 0x40
1018 #define _GE 0x80
1019 #define _T1GE 0x80
1020 #define _TMR1GE 0x80
1022 //==============================================================================
1024 extern __at(0x001A) __sfr T2TMR;
1025 extern __at(0x001A) __sfr TMR2;
1026 extern __at(0x001B) __sfr PR2;
1027 extern __at(0x001B) __sfr T2PR;
1029 //==============================================================================
1030 // T2CON Bits
1032 extern __at(0x001C) __sfr T2CON;
1034 typedef union
1036 struct
1038 unsigned OUTPS0 : 1;
1039 unsigned OUTPS1 : 1;
1040 unsigned OUTPS2 : 1;
1041 unsigned OUTPS3 : 1;
1042 unsigned CKPS0 : 1;
1043 unsigned CKPS1 : 1;
1044 unsigned CKPS2 : 1;
1045 unsigned ON : 1;
1048 struct
1050 unsigned T2OUTPS0 : 1;
1051 unsigned T2OUTPS1 : 1;
1052 unsigned T2OUTPS2 : 1;
1053 unsigned T2OUTPS3 : 1;
1054 unsigned T2CKPS0 : 1;
1055 unsigned T2CKPS1 : 1;
1056 unsigned T2CKPS2 : 1;
1057 unsigned T2ON : 1;
1060 struct
1062 unsigned : 1;
1063 unsigned : 1;
1064 unsigned : 1;
1065 unsigned : 1;
1066 unsigned : 1;
1067 unsigned : 1;
1068 unsigned : 1;
1069 unsigned TMR2ON : 1;
1072 struct
1074 unsigned T2OUTPS : 4;
1075 unsigned : 4;
1078 struct
1080 unsigned OUTPS : 4;
1081 unsigned : 4;
1084 struct
1086 unsigned : 4;
1087 unsigned T2CKPS : 3;
1088 unsigned : 1;
1091 struct
1093 unsigned : 4;
1094 unsigned CKPS : 3;
1095 unsigned : 1;
1097 } __T2CONbits_t;
1099 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
1101 #define _T2CON_OUTPS0 0x01
1102 #define _T2CON_T2OUTPS0 0x01
1103 #define _T2CON_OUTPS1 0x02
1104 #define _T2CON_T2OUTPS1 0x02
1105 #define _T2CON_OUTPS2 0x04
1106 #define _T2CON_T2OUTPS2 0x04
1107 #define _T2CON_OUTPS3 0x08
1108 #define _T2CON_T2OUTPS3 0x08
1109 #define _T2CON_CKPS0 0x10
1110 #define _T2CON_T2CKPS0 0x10
1111 #define _T2CON_CKPS1 0x20
1112 #define _T2CON_T2CKPS1 0x20
1113 #define _T2CON_CKPS2 0x40
1114 #define _T2CON_T2CKPS2 0x40
1115 #define _T2CON_ON 0x80
1116 #define _T2CON_T2ON 0x80
1117 #define _T2CON_TMR2ON 0x80
1119 //==============================================================================
1122 //==============================================================================
1123 // T2HLT Bits
1125 extern __at(0x001D) __sfr T2HLT;
1127 typedef union
1129 struct
1131 unsigned MODE0 : 1;
1132 unsigned MODE1 : 1;
1133 unsigned MODE2 : 1;
1134 unsigned MODE3 : 1;
1135 unsigned MODE4 : 1;
1136 unsigned CKSYNC : 1;
1137 unsigned CKPOL : 1;
1138 unsigned PSYNC : 1;
1141 struct
1143 unsigned T2MODE0 : 1;
1144 unsigned T2MODE1 : 1;
1145 unsigned T2MODE2 : 1;
1146 unsigned T2MODE3 : 1;
1147 unsigned T2MODE4 : 1;
1148 unsigned T2CKSYNC : 1;
1149 unsigned T2CKPOL : 1;
1150 unsigned T2PSYNC : 1;
1153 struct
1155 unsigned T2MODE : 5;
1156 unsigned : 3;
1159 struct
1161 unsigned MODE : 5;
1162 unsigned : 3;
1164 } __T2HLTbits_t;
1166 extern __at(0x001D) volatile __T2HLTbits_t T2HLTbits;
1168 #define _T2HLT_MODE0 0x01
1169 #define _T2HLT_T2MODE0 0x01
1170 #define _T2HLT_MODE1 0x02
1171 #define _T2HLT_T2MODE1 0x02
1172 #define _T2HLT_MODE2 0x04
1173 #define _T2HLT_T2MODE2 0x04
1174 #define _T2HLT_MODE3 0x08
1175 #define _T2HLT_T2MODE3 0x08
1176 #define _T2HLT_MODE4 0x10
1177 #define _T2HLT_T2MODE4 0x10
1178 #define _T2HLT_CKSYNC 0x20
1179 #define _T2HLT_T2CKSYNC 0x20
1180 #define _T2HLT_CKPOL 0x40
1181 #define _T2HLT_T2CKPOL 0x40
1182 #define _T2HLT_PSYNC 0x80
1183 #define _T2HLT_T2PSYNC 0x80
1185 //==============================================================================
1188 //==============================================================================
1189 // T2CLKCON Bits
1191 extern __at(0x001E) __sfr T2CLKCON;
1193 typedef union
1195 struct
1197 unsigned CS0 : 1;
1198 unsigned CS1 : 1;
1199 unsigned CS2 : 1;
1200 unsigned CS3 : 1;
1201 unsigned : 1;
1202 unsigned : 1;
1203 unsigned : 1;
1204 unsigned : 1;
1207 struct
1209 unsigned T2CS0 : 1;
1210 unsigned T2CS1 : 1;
1211 unsigned T2CS2 : 1;
1212 unsigned T2CS3 : 1;
1213 unsigned : 1;
1214 unsigned : 1;
1215 unsigned : 1;
1216 unsigned : 1;
1219 struct
1221 unsigned CS : 4;
1222 unsigned : 4;
1225 struct
1227 unsigned T2CS : 4;
1228 unsigned : 4;
1230 } __T2CLKCONbits_t;
1232 extern __at(0x001E) volatile __T2CLKCONbits_t T2CLKCONbits;
1234 #define _T2CLKCON_CS0 0x01
1235 #define _T2CLKCON_T2CS0 0x01
1236 #define _T2CLKCON_CS1 0x02
1237 #define _T2CLKCON_T2CS1 0x02
1238 #define _T2CLKCON_CS2 0x04
1239 #define _T2CLKCON_T2CS2 0x04
1240 #define _T2CLKCON_CS3 0x08
1241 #define _T2CLKCON_T2CS3 0x08
1243 //==============================================================================
1246 //==============================================================================
1247 // T2RST Bits
1249 extern __at(0x001F) __sfr T2RST;
1251 typedef union
1253 struct
1255 unsigned RSEL0 : 1;
1256 unsigned RSEL1 : 1;
1257 unsigned RSEL2 : 1;
1258 unsigned RSEL3 : 1;
1259 unsigned : 1;
1260 unsigned : 1;
1261 unsigned : 1;
1262 unsigned : 1;
1265 struct
1267 unsigned T2RSEL0 : 1;
1268 unsigned T2RSEL1 : 1;
1269 unsigned T2RSEL2 : 1;
1270 unsigned T2RSEL3 : 1;
1271 unsigned : 1;
1272 unsigned : 1;
1273 unsigned : 1;
1274 unsigned : 1;
1277 struct
1279 unsigned T2RSEL : 4;
1280 unsigned : 4;
1283 struct
1285 unsigned RSEL : 4;
1286 unsigned : 4;
1288 } __T2RSTbits_t;
1290 extern __at(0x001F) volatile __T2RSTbits_t T2RSTbits;
1292 #define _RSEL0 0x01
1293 #define _T2RSEL0 0x01
1294 #define _RSEL1 0x02
1295 #define _T2RSEL1 0x02
1296 #define _RSEL2 0x04
1297 #define _T2RSEL2 0x04
1298 #define _RSEL3 0x08
1299 #define _T2RSEL3 0x08
1301 //==============================================================================
1304 //==============================================================================
1305 // TRISA Bits
1307 extern __at(0x008C) __sfr TRISA;
1309 typedef struct
1311 unsigned TRISA0 : 1;
1312 unsigned TRISA1 : 1;
1313 unsigned TRISA2 : 1;
1314 unsigned : 1;
1315 unsigned TRISA4 : 1;
1316 unsigned TRISA5 : 1;
1317 unsigned : 1;
1318 unsigned : 1;
1319 } __TRISAbits_t;
1321 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
1323 #define _TRISA0 0x01
1324 #define _TRISA1 0x02
1325 #define _TRISA2 0x04
1326 #define _TRISA4 0x10
1327 #define _TRISA5 0x20
1329 //==============================================================================
1332 //==============================================================================
1333 // TRISB Bits
1335 extern __at(0x008D) __sfr TRISB;
1337 typedef struct
1339 unsigned : 1;
1340 unsigned : 1;
1341 unsigned : 1;
1342 unsigned : 1;
1343 unsigned TRISB4 : 1;
1344 unsigned TRISB5 : 1;
1345 unsigned TRISB6 : 1;
1346 unsigned TRISB7 : 1;
1347 } __TRISBbits_t;
1349 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
1351 #define _TRISB4 0x10
1352 #define _TRISB5 0x20
1353 #define _TRISB6 0x40
1354 #define _TRISB7 0x80
1356 //==============================================================================
1359 //==============================================================================
1360 // TRISC Bits
1362 extern __at(0x008E) __sfr TRISC;
1364 typedef struct
1366 unsigned TRISC0 : 1;
1367 unsigned TRISC1 : 1;
1368 unsigned TRISC2 : 1;
1369 unsigned TRISC3 : 1;
1370 unsigned TRISC4 : 1;
1371 unsigned TRISC5 : 1;
1372 unsigned TRISC6 : 1;
1373 unsigned TRISC7 : 1;
1374 } __TRISCbits_t;
1376 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1378 #define _TRISC0 0x01
1379 #define _TRISC1 0x02
1380 #define _TRISC2 0x04
1381 #define _TRISC3 0x08
1382 #define _TRISC4 0x10
1383 #define _TRISC5 0x20
1384 #define _TRISC6 0x40
1385 #define _TRISC7 0x80
1387 //==============================================================================
1390 //==============================================================================
1391 // PIE1 Bits
1393 extern __at(0x0091) __sfr PIE1;
1395 typedef union
1397 struct
1399 unsigned TMR1IE : 1;
1400 unsigned TMR2IE : 1;
1401 unsigned CCP1IE : 1;
1402 unsigned SSP1IE : 1;
1403 unsigned TXIE : 1;
1404 unsigned RCIE : 1;
1405 unsigned ADIE : 1;
1406 unsigned TMR1GIE : 1;
1409 struct
1411 unsigned : 1;
1412 unsigned : 1;
1413 unsigned CCPIE : 1;
1414 unsigned : 1;
1415 unsigned : 1;
1416 unsigned : 1;
1417 unsigned : 1;
1418 unsigned : 1;
1420 } __PIE1bits_t;
1422 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
1424 #define _TMR1IE 0x01
1425 #define _TMR2IE 0x02
1426 #define _CCP1IE 0x04
1427 #define _CCPIE 0x04
1428 #define _SSP1IE 0x08
1429 #define _TXIE 0x10
1430 #define _RCIE 0x20
1431 #define _ADIE 0x40
1432 #define _TMR1GIE 0x80
1434 //==============================================================================
1437 //==============================================================================
1438 // PIE2 Bits
1440 extern __at(0x0092) __sfr PIE2;
1442 typedef struct
1444 unsigned CCP2IE : 1;
1445 unsigned C3IE : 1;
1446 unsigned C4IE : 1;
1447 unsigned BCL1IE : 1;
1448 unsigned : 1;
1449 unsigned C1IE : 1;
1450 unsigned C2IE : 1;
1451 unsigned OSFIE : 1;
1452 } __PIE2bits_t;
1454 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
1456 #define _CCP2IE 0x01
1457 #define _C3IE 0x02
1458 #define _C4IE 0x04
1459 #define _BCL1IE 0x08
1460 #define _C1IE 0x20
1461 #define _C2IE 0x40
1462 #define _OSFIE 0x80
1464 //==============================================================================
1467 //==============================================================================
1468 // PIE3 Bits
1470 extern __at(0x0093) __sfr PIE3;
1472 typedef struct
1474 unsigned CLC1IE : 1;
1475 unsigned CLC2IE : 1;
1476 unsigned CLC3IE : 1;
1477 unsigned COG2IE : 1;
1478 unsigned ZCDIE : 1;
1479 unsigned COGIE : 1;
1480 unsigned PWM5IE : 1;
1481 unsigned PWM6IE : 1;
1482 } __PIE3bits_t;
1484 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
1486 #define _CLC1IE 0x01
1487 #define _CLC2IE 0x02
1488 #define _CLC3IE 0x04
1489 #define _COG2IE 0x08
1490 #define _ZCDIE 0x10
1491 #define _COGIE 0x20
1492 #define _PWM5IE 0x40
1493 #define _PWM6IE 0x80
1495 //==============================================================================
1498 //==============================================================================
1499 // PIE4 Bits
1501 extern __at(0x0094) __sfr PIE4;
1503 typedef struct
1505 unsigned TMR4IE : 1;
1506 unsigned TMR6IE : 1;
1507 unsigned TMR3IE : 1;
1508 unsigned TMR3GIE : 1;
1509 unsigned TMR5IE : 1;
1510 unsigned TMR5GIE : 1;
1511 unsigned : 1;
1512 unsigned : 1;
1513 } __PIE4bits_t;
1515 extern __at(0x0094) volatile __PIE4bits_t PIE4bits;
1517 #define _TMR4IE 0x01
1518 #define _TMR6IE 0x02
1519 #define _TMR3IE 0x04
1520 #define _TMR3GIE 0x08
1521 #define _TMR5IE 0x10
1522 #define _TMR5GIE 0x20
1524 //==============================================================================
1527 //==============================================================================
1528 // OPTION_REG Bits
1530 extern __at(0x0095) __sfr OPTION_REG;
1532 typedef union
1534 struct
1536 unsigned PS0 : 1;
1537 unsigned PS1 : 1;
1538 unsigned PS2 : 1;
1539 unsigned PSA : 1;
1540 unsigned TMR0SE : 1;
1541 unsigned TMR0CS : 1;
1542 unsigned INTEDG : 1;
1543 unsigned NOT_WPUEN : 1;
1546 struct
1548 unsigned : 1;
1549 unsigned : 1;
1550 unsigned : 1;
1551 unsigned : 1;
1552 unsigned T0SE : 1;
1553 unsigned T0CS : 1;
1554 unsigned : 1;
1555 unsigned : 1;
1558 struct
1560 unsigned PS : 3;
1561 unsigned : 5;
1563 } __OPTION_REGbits_t;
1565 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1567 #define _PS0 0x01
1568 #define _PS1 0x02
1569 #define _PS2 0x04
1570 #define _PSA 0x08
1571 #define _TMR0SE 0x10
1572 #define _T0SE 0x10
1573 #define _TMR0CS 0x20
1574 #define _T0CS 0x20
1575 #define _INTEDG 0x40
1576 #define _NOT_WPUEN 0x80
1578 //==============================================================================
1581 //==============================================================================
1582 // PCON Bits
1584 extern __at(0x0096) __sfr PCON;
1586 typedef struct
1588 unsigned NOT_BOR : 1;
1589 unsigned NOT_POR : 1;
1590 unsigned NOT_RI : 1;
1591 unsigned NOT_RMCLR : 1;
1592 unsigned NOT_RWDT : 1;
1593 unsigned : 1;
1594 unsigned STKUNF : 1;
1595 unsigned STKOVF : 1;
1596 } __PCONbits_t;
1598 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1600 #define _NOT_BOR 0x01
1601 #define _NOT_POR 0x02
1602 #define _NOT_RI 0x04
1603 #define _NOT_RMCLR 0x08
1604 #define _NOT_RWDT 0x10
1605 #define _STKUNF 0x40
1606 #define _STKOVF 0x80
1608 //==============================================================================
1611 //==============================================================================
1612 // WDTCON Bits
1614 extern __at(0x0097) __sfr WDTCON;
1616 typedef union
1618 struct
1620 unsigned SWDTEN : 1;
1621 unsigned WDTPS0 : 1;
1622 unsigned WDTPS1 : 1;
1623 unsigned WDTPS2 : 1;
1624 unsigned WDTPS3 : 1;
1625 unsigned WDTPS4 : 1;
1626 unsigned : 1;
1627 unsigned : 1;
1630 struct
1632 unsigned : 1;
1633 unsigned WDTPS : 5;
1634 unsigned : 2;
1636 } __WDTCONbits_t;
1638 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
1640 #define _SWDTEN 0x01
1641 #define _WDTPS0 0x02
1642 #define _WDTPS1 0x04
1643 #define _WDTPS2 0x08
1644 #define _WDTPS3 0x10
1645 #define _WDTPS4 0x20
1647 //==============================================================================
1650 //==============================================================================
1651 // OSCTUNE Bits
1653 extern __at(0x0098) __sfr OSCTUNE;
1655 typedef union
1657 struct
1659 unsigned TUN0 : 1;
1660 unsigned TUN1 : 1;
1661 unsigned TUN2 : 1;
1662 unsigned TUN3 : 1;
1663 unsigned TUN4 : 1;
1664 unsigned TUN5 : 1;
1665 unsigned : 1;
1666 unsigned : 1;
1669 struct
1671 unsigned TUN : 6;
1672 unsigned : 2;
1674 } __OSCTUNEbits_t;
1676 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1678 #define _TUN0 0x01
1679 #define _TUN1 0x02
1680 #define _TUN2 0x04
1681 #define _TUN3 0x08
1682 #define _TUN4 0x10
1683 #define _TUN5 0x20
1685 //==============================================================================
1688 //==============================================================================
1689 // OSCCON Bits
1691 extern __at(0x0099) __sfr OSCCON;
1693 typedef union
1695 struct
1697 unsigned SCS0 : 1;
1698 unsigned SCS1 : 1;
1699 unsigned : 1;
1700 unsigned IRCF0 : 1;
1701 unsigned IRCF1 : 1;
1702 unsigned IRCF2 : 1;
1703 unsigned IRCF3 : 1;
1704 unsigned SPLLEN : 1;
1707 struct
1709 unsigned SCS : 2;
1710 unsigned : 6;
1713 struct
1715 unsigned : 3;
1716 unsigned IRCF : 4;
1717 unsigned : 1;
1719 } __OSCCONbits_t;
1721 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1723 #define _SCS0 0x01
1724 #define _SCS1 0x02
1725 #define _IRCF0 0x08
1726 #define _IRCF1 0x10
1727 #define _IRCF2 0x20
1728 #define _IRCF3 0x40
1729 #define _SPLLEN 0x80
1731 //==============================================================================
1734 //==============================================================================
1735 // OSCSTAT Bits
1737 extern __at(0x009A) __sfr OSCSTAT;
1739 typedef struct
1741 unsigned HFIOFS : 1;
1742 unsigned LFIOFR : 1;
1743 unsigned MFIOFR : 1;
1744 unsigned HFIOFL : 1;
1745 unsigned HFIOFR : 1;
1746 unsigned OSTS : 1;
1747 unsigned PLLR : 1;
1748 unsigned SOSCR : 1;
1749 } __OSCSTATbits_t;
1751 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1753 #define _HFIOFS 0x01
1754 #define _LFIOFR 0x02
1755 #define _MFIOFR 0x04
1756 #define _HFIOFL 0x08
1757 #define _HFIOFR 0x10
1758 #define _OSTS 0x20
1759 #define _PLLR 0x40
1760 #define _SOSCR 0x80
1762 //==============================================================================
1764 extern __at(0x009B) __sfr ADRES;
1765 extern __at(0x009B) __sfr ADRESL;
1766 extern __at(0x009C) __sfr ADRESH;
1768 //==============================================================================
1769 // ADCON0 Bits
1771 extern __at(0x009D) __sfr ADCON0;
1773 typedef union
1775 struct
1777 unsigned ADON : 1;
1778 unsigned GO_NOT_DONE : 1;
1779 unsigned CHS0 : 1;
1780 unsigned CHS1 : 1;
1781 unsigned CHS2 : 1;
1782 unsigned CHS3 : 1;
1783 unsigned CHS4 : 1;
1784 unsigned : 1;
1787 struct
1789 unsigned : 1;
1790 unsigned ADGO : 1;
1791 unsigned : 1;
1792 unsigned : 1;
1793 unsigned : 1;
1794 unsigned : 1;
1795 unsigned : 1;
1796 unsigned : 1;
1799 struct
1801 unsigned : 1;
1802 unsigned GO : 1;
1803 unsigned : 1;
1804 unsigned : 1;
1805 unsigned : 1;
1806 unsigned : 1;
1807 unsigned : 1;
1808 unsigned : 1;
1811 struct
1813 unsigned : 2;
1814 unsigned CHS : 5;
1815 unsigned : 1;
1817 } __ADCON0bits_t;
1819 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1821 #define _ADON 0x01
1822 #define _GO_NOT_DONE 0x02
1823 #define _ADGO 0x02
1824 #define _GO 0x02
1825 #define _CHS0 0x04
1826 #define _CHS1 0x08
1827 #define _CHS2 0x10
1828 #define _CHS3 0x20
1829 #define _CHS4 0x40
1831 //==============================================================================
1834 //==============================================================================
1835 // ADCON1 Bits
1837 extern __at(0x009E) __sfr ADCON1;
1839 typedef union
1841 struct
1843 unsigned ADPREF0 : 1;
1844 unsigned ADPREF1 : 1;
1845 unsigned ADNREF : 1;
1846 unsigned : 1;
1847 unsigned : 1;
1848 unsigned : 1;
1849 unsigned : 1;
1850 unsigned ADFM : 1;
1853 struct
1855 unsigned ADPREF : 2;
1856 unsigned : 6;
1858 } __ADCON1bits_t;
1860 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1862 #define _ADPREF0 0x01
1863 #define _ADPREF1 0x02
1864 #define _ADNREF 0x04
1865 #define _ADFM 0x80
1867 //==============================================================================
1870 //==============================================================================
1871 // ADCON2 Bits
1873 extern __at(0x009F) __sfr ADCON2;
1875 typedef union
1877 struct
1879 unsigned : 1;
1880 unsigned : 1;
1881 unsigned : 1;
1882 unsigned TRIGSEL0 : 1;
1883 unsigned TRIGSEL1 : 1;
1884 unsigned TRIGSEL2 : 1;
1885 unsigned TRIGSEL3 : 1;
1886 unsigned TRIGSEL4 : 1;
1889 struct
1891 unsigned : 3;
1892 unsigned TRIGSEL : 5;
1894 } __ADCON2bits_t;
1896 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1898 #define _TRIGSEL0 0x08
1899 #define _TRIGSEL1 0x10
1900 #define _TRIGSEL2 0x20
1901 #define _TRIGSEL3 0x40
1902 #define _TRIGSEL4 0x80
1904 //==============================================================================
1907 //==============================================================================
1908 // LATA Bits
1910 extern __at(0x010C) __sfr LATA;
1912 typedef struct
1914 unsigned LATA0 : 1;
1915 unsigned LATA1 : 1;
1916 unsigned LATA2 : 1;
1917 unsigned : 1;
1918 unsigned LATA4 : 1;
1919 unsigned LATA5 : 1;
1920 unsigned : 1;
1921 unsigned : 1;
1922 } __LATAbits_t;
1924 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1926 #define _LATA0 0x01
1927 #define _LATA1 0x02
1928 #define _LATA2 0x04
1929 #define _LATA4 0x10
1930 #define _LATA5 0x20
1932 //==============================================================================
1935 //==============================================================================
1936 // LATB Bits
1938 extern __at(0x010D) __sfr LATB;
1940 typedef struct
1942 unsigned : 1;
1943 unsigned : 1;
1944 unsigned : 1;
1945 unsigned : 1;
1946 unsigned LATB4 : 1;
1947 unsigned LATB5 : 1;
1948 unsigned LATB6 : 1;
1949 unsigned LATB7 : 1;
1950 } __LATBbits_t;
1952 extern __at(0x010D) volatile __LATBbits_t LATBbits;
1954 #define _LATB4 0x10
1955 #define _LATB5 0x20
1956 #define _LATB6 0x40
1957 #define _LATB7 0x80
1959 //==============================================================================
1962 //==============================================================================
1963 // LATC Bits
1965 extern __at(0x010E) __sfr LATC;
1967 typedef struct
1969 unsigned LATC0 : 1;
1970 unsigned LATC1 : 1;
1971 unsigned LATC2 : 1;
1972 unsigned LATC3 : 1;
1973 unsigned LATC4 : 1;
1974 unsigned LATC5 : 1;
1975 unsigned LATC6 : 1;
1976 unsigned LATC7 : 1;
1977 } __LATCbits_t;
1979 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1981 #define _LATC0 0x01
1982 #define _LATC1 0x02
1983 #define _LATC2 0x04
1984 #define _LATC3 0x08
1985 #define _LATC4 0x10
1986 #define _LATC5 0x20
1987 #define _LATC6 0x40
1988 #define _LATC7 0x80
1990 //==============================================================================
1993 //==============================================================================
1994 // CMOUT Bits
1996 extern __at(0x010F) __sfr CMOUT;
1998 typedef struct
2000 unsigned MC1OUT : 1;
2001 unsigned MC2OUT : 1;
2002 unsigned MC3OUT : 1;
2003 unsigned MC4OUT : 1;
2004 unsigned : 1;
2005 unsigned : 1;
2006 unsigned : 1;
2007 unsigned : 1;
2008 } __CMOUTbits_t;
2010 extern __at(0x010F) volatile __CMOUTbits_t CMOUTbits;
2012 #define _MC1OUT 0x01
2013 #define _MC2OUT 0x02
2014 #define _MC3OUT 0x04
2015 #define _MC4OUT 0x08
2017 //==============================================================================
2020 //==============================================================================
2021 // CM1CON0 Bits
2023 extern __at(0x0110) __sfr CM1CON0;
2025 typedef union
2027 struct
2029 unsigned SYNC : 1;
2030 unsigned HYS : 1;
2031 unsigned Reserved : 1;
2032 unsigned ZLF : 1;
2033 unsigned POL : 1;
2034 unsigned : 1;
2035 unsigned OUT : 1;
2036 unsigned ON : 1;
2039 struct
2041 unsigned C1SYNC : 1;
2042 unsigned C1HYS : 1;
2043 unsigned C1SP : 1;
2044 unsigned C1ZLF : 1;
2045 unsigned C1POL : 1;
2046 unsigned : 1;
2047 unsigned C1OUT : 1;
2048 unsigned C1ON : 1;
2050 } __CM1CON0bits_t;
2052 extern __at(0x0110) volatile __CM1CON0bits_t CM1CON0bits;
2054 #define _CM1CON0_SYNC 0x01
2055 #define _CM1CON0_C1SYNC 0x01
2056 #define _CM1CON0_HYS 0x02
2057 #define _CM1CON0_C1HYS 0x02
2058 #define _CM1CON0_Reserved 0x04
2059 #define _CM1CON0_C1SP 0x04
2060 #define _CM1CON0_ZLF 0x08
2061 #define _CM1CON0_C1ZLF 0x08
2062 #define _CM1CON0_POL 0x10
2063 #define _CM1CON0_C1POL 0x10
2064 #define _CM1CON0_OUT 0x40
2065 #define _CM1CON0_C1OUT 0x40
2066 #define _CM1CON0_ON 0x80
2067 #define _CM1CON0_C1ON 0x80
2069 //==============================================================================
2072 //==============================================================================
2073 // CM1CON1 Bits
2075 extern __at(0x0111) __sfr CM1CON1;
2077 typedef union
2079 struct
2081 unsigned INTN : 1;
2082 unsigned INTP : 1;
2083 unsigned : 1;
2084 unsigned : 1;
2085 unsigned : 1;
2086 unsigned : 1;
2087 unsigned : 1;
2088 unsigned : 1;
2091 struct
2093 unsigned C1INTN : 1;
2094 unsigned C1INTP : 1;
2095 unsigned : 1;
2096 unsigned : 1;
2097 unsigned : 1;
2098 unsigned : 1;
2099 unsigned : 1;
2100 unsigned : 1;
2102 } __CM1CON1bits_t;
2104 extern __at(0x0111) volatile __CM1CON1bits_t CM1CON1bits;
2106 #define _CM1CON1_INTN 0x01
2107 #define _CM1CON1_C1INTN 0x01
2108 #define _CM1CON1_INTP 0x02
2109 #define _CM1CON1_C1INTP 0x02
2111 //==============================================================================
2114 //==============================================================================
2115 // CM1NSEL Bits
2117 extern __at(0x0112) __sfr CM1NSEL;
2119 typedef union
2121 struct
2123 unsigned NCH0 : 1;
2124 unsigned NCH1 : 1;
2125 unsigned NCH2 : 1;
2126 unsigned : 1;
2127 unsigned : 1;
2128 unsigned : 1;
2129 unsigned : 1;
2130 unsigned : 1;
2133 struct
2135 unsigned C1NCH0 : 1;
2136 unsigned C1NCH1 : 1;
2137 unsigned C1NCH2 : 1;
2138 unsigned : 1;
2139 unsigned : 1;
2140 unsigned : 1;
2141 unsigned : 1;
2142 unsigned : 1;
2145 struct
2147 unsigned C1NCH : 3;
2148 unsigned : 5;
2151 struct
2153 unsigned NCH : 3;
2154 unsigned : 5;
2156 } __CM1NSELbits_t;
2158 extern __at(0x0112) volatile __CM1NSELbits_t CM1NSELbits;
2160 #define _NCH0 0x01
2161 #define _C1NCH0 0x01
2162 #define _NCH1 0x02
2163 #define _C1NCH1 0x02
2164 #define _NCH2 0x04
2165 #define _C1NCH2 0x04
2167 //==============================================================================
2170 //==============================================================================
2171 // CM1PSEL Bits
2173 extern __at(0x0113) __sfr CM1PSEL;
2175 typedef union
2177 struct
2179 unsigned PCH0 : 1;
2180 unsigned PCH1 : 1;
2181 unsigned PCH2 : 1;
2182 unsigned PCH3 : 1;
2183 unsigned : 1;
2184 unsigned : 1;
2185 unsigned : 1;
2186 unsigned : 1;
2189 struct
2191 unsigned C1PCH0 : 1;
2192 unsigned C1PCH1 : 1;
2193 unsigned C1PCH2 : 1;
2194 unsigned C1PCH3 : 1;
2195 unsigned : 1;
2196 unsigned : 1;
2197 unsigned : 1;
2198 unsigned : 1;
2201 struct
2203 unsigned C1PCH : 4;
2204 unsigned : 4;
2207 struct
2209 unsigned PCH : 4;
2210 unsigned : 4;
2212 } __CM1PSELbits_t;
2214 extern __at(0x0113) volatile __CM1PSELbits_t CM1PSELbits;
2216 #define _PCH0 0x01
2217 #define _C1PCH0 0x01
2218 #define _PCH1 0x02
2219 #define _C1PCH1 0x02
2220 #define _PCH2 0x04
2221 #define _C1PCH2 0x04
2222 #define _PCH3 0x08
2223 #define _C1PCH3 0x08
2225 //==============================================================================
2228 //==============================================================================
2229 // CM2CON0 Bits
2231 extern __at(0x0114) __sfr CM2CON0;
2233 typedef union
2235 struct
2237 unsigned SYNC : 1;
2238 unsigned HYS : 1;
2239 unsigned Reserved : 1;
2240 unsigned ZLF : 1;
2241 unsigned POL : 1;
2242 unsigned : 1;
2243 unsigned OUT : 1;
2244 unsigned ON : 1;
2247 struct
2249 unsigned C2SYNC : 1;
2250 unsigned C2HYS : 1;
2251 unsigned C2SP : 1;
2252 unsigned C2ZLF : 1;
2253 unsigned C2POL : 1;
2254 unsigned : 1;
2255 unsigned C2OUT : 1;
2256 unsigned C2ON : 1;
2258 } __CM2CON0bits_t;
2260 extern __at(0x0114) volatile __CM2CON0bits_t CM2CON0bits;
2262 #define _CM2CON0_SYNC 0x01
2263 #define _CM2CON0_C2SYNC 0x01
2264 #define _CM2CON0_HYS 0x02
2265 #define _CM2CON0_C2HYS 0x02
2266 #define _CM2CON0_Reserved 0x04
2267 #define _CM2CON0_C2SP 0x04
2268 #define _CM2CON0_ZLF 0x08
2269 #define _CM2CON0_C2ZLF 0x08
2270 #define _CM2CON0_POL 0x10
2271 #define _CM2CON0_C2POL 0x10
2272 #define _CM2CON0_OUT 0x40
2273 #define _CM2CON0_C2OUT 0x40
2274 #define _CM2CON0_ON 0x80
2275 #define _CM2CON0_C2ON 0x80
2277 //==============================================================================
2280 //==============================================================================
2281 // CM2CON1 Bits
2283 extern __at(0x0115) __sfr CM2CON1;
2285 typedef union
2287 struct
2289 unsigned INTN : 1;
2290 unsigned INTP : 1;
2291 unsigned : 1;
2292 unsigned : 1;
2293 unsigned : 1;
2294 unsigned : 1;
2295 unsigned : 1;
2296 unsigned : 1;
2299 struct
2301 unsigned C2INTN : 1;
2302 unsigned C2INTP : 1;
2303 unsigned : 1;
2304 unsigned : 1;
2305 unsigned : 1;
2306 unsigned : 1;
2307 unsigned : 1;
2308 unsigned : 1;
2310 } __CM2CON1bits_t;
2312 extern __at(0x0115) volatile __CM2CON1bits_t CM2CON1bits;
2314 #define _CM2CON1_INTN 0x01
2315 #define _CM2CON1_C2INTN 0x01
2316 #define _CM2CON1_INTP 0x02
2317 #define _CM2CON1_C2INTP 0x02
2319 //==============================================================================
2322 //==============================================================================
2323 // CM2NSEL Bits
2325 extern __at(0x0116) __sfr CM2NSEL;
2327 typedef union
2329 struct
2331 unsigned NCH0 : 1;
2332 unsigned NCH1 : 1;
2333 unsigned NCH2 : 1;
2334 unsigned : 1;
2335 unsigned : 1;
2336 unsigned : 1;
2337 unsigned : 1;
2338 unsigned : 1;
2341 struct
2343 unsigned C2NCH0 : 1;
2344 unsigned C2NCH1 : 1;
2345 unsigned C2NCH2 : 1;
2346 unsigned : 1;
2347 unsigned : 1;
2348 unsigned : 1;
2349 unsigned : 1;
2350 unsigned : 1;
2353 struct
2355 unsigned C2NCH : 3;
2356 unsigned : 5;
2359 struct
2361 unsigned NCH : 3;
2362 unsigned : 5;
2364 } __CM2NSELbits_t;
2366 extern __at(0x0116) volatile __CM2NSELbits_t CM2NSELbits;
2368 #define _CM2NSEL_NCH0 0x01
2369 #define _CM2NSEL_C2NCH0 0x01
2370 #define _CM2NSEL_NCH1 0x02
2371 #define _CM2NSEL_C2NCH1 0x02
2372 #define _CM2NSEL_NCH2 0x04
2373 #define _CM2NSEL_C2NCH2 0x04
2375 //==============================================================================
2378 //==============================================================================
2379 // CM2PSEL Bits
2381 extern __at(0x0117) __sfr CM2PSEL;
2383 typedef union
2385 struct
2387 unsigned PCH0 : 1;
2388 unsigned PCH1 : 1;
2389 unsigned PCH2 : 1;
2390 unsigned PCH3 : 1;
2391 unsigned : 1;
2392 unsigned : 1;
2393 unsigned : 1;
2394 unsigned : 1;
2397 struct
2399 unsigned C2PCH0 : 1;
2400 unsigned C2PCH1 : 1;
2401 unsigned C2PCH2 : 1;
2402 unsigned C2PCH3 : 1;
2403 unsigned : 1;
2404 unsigned : 1;
2405 unsigned : 1;
2406 unsigned : 1;
2409 struct
2411 unsigned C2PCH : 4;
2412 unsigned : 4;
2415 struct
2417 unsigned PCH : 4;
2418 unsigned : 4;
2420 } __CM2PSELbits_t;
2422 extern __at(0x0117) volatile __CM2PSELbits_t CM2PSELbits;
2424 #define _CM2PSEL_PCH0 0x01
2425 #define _CM2PSEL_C2PCH0 0x01
2426 #define _CM2PSEL_PCH1 0x02
2427 #define _CM2PSEL_C2PCH1 0x02
2428 #define _CM2PSEL_PCH2 0x04
2429 #define _CM2PSEL_C2PCH2 0x04
2430 #define _CM2PSEL_PCH3 0x08
2431 #define _CM2PSEL_C2PCH3 0x08
2433 //==============================================================================
2436 //==============================================================================
2437 // CM3CON0 Bits
2439 extern __at(0x0118) __sfr CM3CON0;
2441 typedef union
2443 struct
2445 unsigned SYNC : 1;
2446 unsigned HYS : 1;
2447 unsigned Reserved : 1;
2448 unsigned ZLF : 1;
2449 unsigned POL : 1;
2450 unsigned : 1;
2451 unsigned OUT : 1;
2452 unsigned ON : 1;
2455 struct
2457 unsigned C3SYNC : 1;
2458 unsigned C3HYS : 1;
2459 unsigned C3SP : 1;
2460 unsigned C3ZLF : 1;
2461 unsigned C3POL : 1;
2462 unsigned : 1;
2463 unsigned C3OUT : 1;
2464 unsigned C3ON : 1;
2466 } __CM3CON0bits_t;
2468 extern __at(0x0118) volatile __CM3CON0bits_t CM3CON0bits;
2470 #define _CM3CON0_SYNC 0x01
2471 #define _CM3CON0_C3SYNC 0x01
2472 #define _CM3CON0_HYS 0x02
2473 #define _CM3CON0_C3HYS 0x02
2474 #define _CM3CON0_Reserved 0x04
2475 #define _CM3CON0_C3SP 0x04
2476 #define _CM3CON0_ZLF 0x08
2477 #define _CM3CON0_C3ZLF 0x08
2478 #define _CM3CON0_POL 0x10
2479 #define _CM3CON0_C3POL 0x10
2480 #define _CM3CON0_OUT 0x40
2481 #define _CM3CON0_C3OUT 0x40
2482 #define _CM3CON0_ON 0x80
2483 #define _CM3CON0_C3ON 0x80
2485 //==============================================================================
2488 //==============================================================================
2489 // CM3CON1 Bits
2491 extern __at(0x0119) __sfr CM3CON1;
2493 typedef union
2495 struct
2497 unsigned INTN : 1;
2498 unsigned INTP : 1;
2499 unsigned : 1;
2500 unsigned : 1;
2501 unsigned : 1;
2502 unsigned : 1;
2503 unsigned : 1;
2504 unsigned : 1;
2507 struct
2509 unsigned C3INTN : 1;
2510 unsigned C3INTP : 1;
2511 unsigned : 1;
2512 unsigned : 1;
2513 unsigned : 1;
2514 unsigned : 1;
2515 unsigned : 1;
2516 unsigned : 1;
2518 } __CM3CON1bits_t;
2520 extern __at(0x0119) volatile __CM3CON1bits_t CM3CON1bits;
2522 #define _CM3CON1_INTN 0x01
2523 #define _CM3CON1_C3INTN 0x01
2524 #define _CM3CON1_INTP 0x02
2525 #define _CM3CON1_C3INTP 0x02
2527 //==============================================================================
2530 //==============================================================================
2531 // CM3NSEL Bits
2533 extern __at(0x011A) __sfr CM3NSEL;
2535 typedef union
2537 struct
2539 unsigned NCH0 : 1;
2540 unsigned NCH1 : 1;
2541 unsigned NCH2 : 1;
2542 unsigned : 1;
2543 unsigned : 1;
2544 unsigned : 1;
2545 unsigned : 1;
2546 unsigned : 1;
2549 struct
2551 unsigned C3NCH0 : 1;
2552 unsigned C3NCH1 : 1;
2553 unsigned C3NCH2 : 1;
2554 unsigned : 1;
2555 unsigned : 1;
2556 unsigned : 1;
2557 unsigned : 1;
2558 unsigned : 1;
2561 struct
2563 unsigned C3NCH : 3;
2564 unsigned : 5;
2567 struct
2569 unsigned NCH : 3;
2570 unsigned : 5;
2572 } __CM3NSELbits_t;
2574 extern __at(0x011A) volatile __CM3NSELbits_t CM3NSELbits;
2576 #define _CM3NSEL_NCH0 0x01
2577 #define _CM3NSEL_C3NCH0 0x01
2578 #define _CM3NSEL_NCH1 0x02
2579 #define _CM3NSEL_C3NCH1 0x02
2580 #define _CM3NSEL_NCH2 0x04
2581 #define _CM3NSEL_C3NCH2 0x04
2583 //==============================================================================
2586 //==============================================================================
2587 // CM3PSEL Bits
2589 extern __at(0x011B) __sfr CM3PSEL;
2591 typedef union
2593 struct
2595 unsigned PCH0 : 1;
2596 unsigned PCH1 : 1;
2597 unsigned PCH2 : 1;
2598 unsigned PCH3 : 1;
2599 unsigned : 1;
2600 unsigned : 1;
2601 unsigned : 1;
2602 unsigned : 1;
2605 struct
2607 unsigned C3PCH0 : 1;
2608 unsigned C3PCH1 : 1;
2609 unsigned C3PCH2 : 1;
2610 unsigned C3PCH3 : 1;
2611 unsigned : 1;
2612 unsigned : 1;
2613 unsigned : 1;
2614 unsigned : 1;
2617 struct
2619 unsigned PCH : 4;
2620 unsigned : 4;
2623 struct
2625 unsigned C3PCH : 4;
2626 unsigned : 4;
2628 } __CM3PSELbits_t;
2630 extern __at(0x011B) volatile __CM3PSELbits_t CM3PSELbits;
2632 #define _CM3PSEL_PCH0 0x01
2633 #define _CM3PSEL_C3PCH0 0x01
2634 #define _CM3PSEL_PCH1 0x02
2635 #define _CM3PSEL_C3PCH1 0x02
2636 #define _CM3PSEL_PCH2 0x04
2637 #define _CM3PSEL_C3PCH2 0x04
2638 #define _CM3PSEL_PCH3 0x08
2639 #define _CM3PSEL_C3PCH3 0x08
2641 //==============================================================================
2644 //==============================================================================
2645 // CM4CON0 Bits
2647 extern __at(0x011C) __sfr CM4CON0;
2649 typedef union
2651 struct
2653 unsigned SYNC : 1;
2654 unsigned HYS : 1;
2655 unsigned Reserved : 1;
2656 unsigned ZLF : 1;
2657 unsigned POL : 1;
2658 unsigned : 1;
2659 unsigned OUT : 1;
2660 unsigned ON : 1;
2663 struct
2665 unsigned C4SYNC : 1;
2666 unsigned C4HYS : 1;
2667 unsigned C4SP : 1;
2668 unsigned C4ZLF : 1;
2669 unsigned C4POL : 1;
2670 unsigned : 1;
2671 unsigned C4OUT : 1;
2672 unsigned C4ON : 1;
2674 } __CM4CON0bits_t;
2676 extern __at(0x011C) volatile __CM4CON0bits_t CM4CON0bits;
2678 #define _CM4CON0_SYNC 0x01
2679 #define _CM4CON0_C4SYNC 0x01
2680 #define _CM4CON0_HYS 0x02
2681 #define _CM4CON0_C4HYS 0x02
2682 #define _CM4CON0_Reserved 0x04
2683 #define _CM4CON0_C4SP 0x04
2684 #define _CM4CON0_ZLF 0x08
2685 #define _CM4CON0_C4ZLF 0x08
2686 #define _CM4CON0_POL 0x10
2687 #define _CM4CON0_C4POL 0x10
2688 #define _CM4CON0_OUT 0x40
2689 #define _CM4CON0_C4OUT 0x40
2690 #define _CM4CON0_ON 0x80
2691 #define _CM4CON0_C4ON 0x80
2693 //==============================================================================
2696 //==============================================================================
2697 // CM4CON1 Bits
2699 extern __at(0x011D) __sfr CM4CON1;
2701 typedef union
2703 struct
2705 unsigned INTN : 1;
2706 unsigned INTP : 1;
2707 unsigned : 1;
2708 unsigned : 1;
2709 unsigned : 1;
2710 unsigned : 1;
2711 unsigned : 1;
2712 unsigned : 1;
2715 struct
2717 unsigned C4INTN : 1;
2718 unsigned C4INTP : 1;
2719 unsigned : 1;
2720 unsigned : 1;
2721 unsigned : 1;
2722 unsigned : 1;
2723 unsigned : 1;
2724 unsigned : 1;
2726 } __CM4CON1bits_t;
2728 extern __at(0x011D) volatile __CM4CON1bits_t CM4CON1bits;
2730 #define _CM4CON1_INTN 0x01
2731 #define _CM4CON1_C4INTN 0x01
2732 #define _CM4CON1_INTP 0x02
2733 #define _CM4CON1_C4INTP 0x02
2735 //==============================================================================
2738 //==============================================================================
2739 // CM4NSEL Bits
2741 extern __at(0x011E) __sfr CM4NSEL;
2743 typedef union
2745 struct
2747 unsigned NCH0 : 1;
2748 unsigned NCH1 : 1;
2749 unsigned NCH2 : 1;
2750 unsigned : 1;
2751 unsigned : 1;
2752 unsigned : 1;
2753 unsigned : 1;
2754 unsigned : 1;
2757 struct
2759 unsigned C4NCH0 : 1;
2760 unsigned C4NCH1 : 1;
2761 unsigned C4NCH2 : 1;
2762 unsigned : 1;
2763 unsigned : 1;
2764 unsigned : 1;
2765 unsigned : 1;
2766 unsigned : 1;
2769 struct
2771 unsigned NCH : 3;
2772 unsigned : 5;
2775 struct
2777 unsigned C4NCH : 3;
2778 unsigned : 5;
2780 } __CM4NSELbits_t;
2782 extern __at(0x011E) volatile __CM4NSELbits_t CM4NSELbits;
2784 #define _CM4NSEL_NCH0 0x01
2785 #define _CM4NSEL_C4NCH0 0x01
2786 #define _CM4NSEL_NCH1 0x02
2787 #define _CM4NSEL_C4NCH1 0x02
2788 #define _CM4NSEL_NCH2 0x04
2789 #define _CM4NSEL_C4NCH2 0x04
2791 //==============================================================================
2794 //==============================================================================
2795 // CM4PSEL Bits
2797 extern __at(0x011F) __sfr CM4PSEL;
2799 typedef union
2801 struct
2803 unsigned PCH0 : 1;
2804 unsigned PCH1 : 1;
2805 unsigned PCH2 : 1;
2806 unsigned PCH3 : 1;
2807 unsigned : 1;
2808 unsigned : 1;
2809 unsigned : 1;
2810 unsigned : 1;
2813 struct
2815 unsigned C4PCH0 : 1;
2816 unsigned C4PCH1 : 1;
2817 unsigned C4PCH2 : 1;
2818 unsigned C4PCH3 : 1;
2819 unsigned : 1;
2820 unsigned : 1;
2821 unsigned : 1;
2822 unsigned : 1;
2825 struct
2827 unsigned C4PCH : 4;
2828 unsigned : 4;
2831 struct
2833 unsigned PCH : 4;
2834 unsigned : 4;
2836 } __CM4PSELbits_t;
2838 extern __at(0x011F) volatile __CM4PSELbits_t CM4PSELbits;
2840 #define _CM4PSEL_PCH0 0x01
2841 #define _CM4PSEL_C4PCH0 0x01
2842 #define _CM4PSEL_PCH1 0x02
2843 #define _CM4PSEL_C4PCH1 0x02
2844 #define _CM4PSEL_PCH2 0x04
2845 #define _CM4PSEL_C4PCH2 0x04
2846 #define _CM4PSEL_PCH3 0x08
2847 #define _CM4PSEL_C4PCH3 0x08
2849 //==============================================================================
2852 //==============================================================================
2853 // ANSELA Bits
2855 extern __at(0x018C) __sfr ANSELA;
2857 typedef struct
2859 unsigned ANSA0 : 1;
2860 unsigned ANSA1 : 1;
2861 unsigned ANSA2 : 1;
2862 unsigned : 1;
2863 unsigned ANSA4 : 1;
2864 unsigned : 1;
2865 unsigned : 1;
2866 unsigned : 1;
2867 } __ANSELAbits_t;
2869 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2871 #define _ANSA0 0x01
2872 #define _ANSA1 0x02
2873 #define _ANSA2 0x04
2874 #define _ANSA4 0x10
2876 //==============================================================================
2879 //==============================================================================
2880 // ANSELB Bits
2882 extern __at(0x018D) __sfr ANSELB;
2884 typedef struct
2886 unsigned : 1;
2887 unsigned : 1;
2888 unsigned : 1;
2889 unsigned : 1;
2890 unsigned ANSB4 : 1;
2891 unsigned ANSB5 : 1;
2892 unsigned ANSB6 : 1;
2893 unsigned ANSB7 : 1;
2894 } __ANSELBbits_t;
2896 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2898 #define _ANSB4 0x10
2899 #define _ANSB5 0x20
2900 #define _ANSB6 0x40
2901 #define _ANSB7 0x80
2903 //==============================================================================
2906 //==============================================================================
2907 // ANSELC Bits
2909 extern __at(0x018E) __sfr ANSELC;
2911 typedef struct
2913 unsigned ANSC0 : 1;
2914 unsigned ANSC1 : 1;
2915 unsigned ANSC2 : 1;
2916 unsigned ANSC3 : 1;
2917 unsigned : 1;
2918 unsigned : 1;
2919 unsigned ANSC6 : 1;
2920 unsigned ANSC7 : 1;
2921 } __ANSELCbits_t;
2923 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2925 #define _ANSC0 0x01
2926 #define _ANSC1 0x02
2927 #define _ANSC2 0x04
2928 #define _ANSC3 0x08
2929 #define _ANSC6 0x40
2930 #define _ANSC7 0x80
2932 //==============================================================================
2934 extern __at(0x0191) __sfr PMADR;
2935 extern __at(0x0191) __sfr PMADRL;
2936 extern __at(0x0192) __sfr PMADRH;
2937 extern __at(0x0193) __sfr PMDAT;
2938 extern __at(0x0193) __sfr PMDATL;
2939 extern __at(0x0194) __sfr PMDATH;
2941 //==============================================================================
2942 // PMCON1 Bits
2944 extern __at(0x0195) __sfr PMCON1;
2946 typedef struct
2948 unsigned RD : 1;
2949 unsigned WR : 1;
2950 unsigned WREN : 1;
2951 unsigned WRERR : 1;
2952 unsigned FREE : 1;
2953 unsigned LWLO : 1;
2954 unsigned CFGS : 1;
2955 unsigned : 1;
2956 } __PMCON1bits_t;
2958 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
2960 #define _RD 0x01
2961 #define _WR 0x02
2962 #define _WREN 0x04
2963 #define _WRERR 0x08
2964 #define _FREE 0x10
2965 #define _LWLO 0x20
2966 #define _CFGS 0x40
2968 //==============================================================================
2970 extern __at(0x0196) __sfr PMCON2;
2972 //==============================================================================
2973 // VREGCON Bits
2975 extern __at(0x0197) __sfr VREGCON;
2977 typedef struct
2979 unsigned Reserved : 1;
2980 unsigned VREGPM : 1;
2981 unsigned : 1;
2982 unsigned : 1;
2983 unsigned : 1;
2984 unsigned : 1;
2985 unsigned : 1;
2986 unsigned : 1;
2987 } __VREGCONbits_t;
2989 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
2991 #define _VREGCON_Reserved 0x01
2992 #define _VREGCON_VREGPM 0x02
2994 //==============================================================================
2996 extern __at(0x0199) __sfr RC1REG;
2997 extern __at(0x0199) __sfr RCREG;
2998 extern __at(0x0199) __sfr RCREG1;
2999 extern __at(0x019A) __sfr TX1REG;
3000 extern __at(0x019A) __sfr TXREG;
3001 extern __at(0x019A) __sfr TXREG1;
3002 extern __at(0x019B) __sfr SP1BRG;
3003 extern __at(0x019B) __sfr SP1BRGL;
3004 extern __at(0x019B) __sfr SPBRG;
3005 extern __at(0x019B) __sfr SPBRG1;
3006 extern __at(0x019B) __sfr SPBRGL;
3007 extern __at(0x019C) __sfr SP1BRGH;
3008 extern __at(0x019C) __sfr SPBRGH;
3009 extern __at(0x019C) __sfr SPBRGH1;
3011 //==============================================================================
3012 // RC1STA Bits
3014 extern __at(0x019D) __sfr RC1STA;
3016 typedef struct
3018 unsigned RX9D : 1;
3019 unsigned OERR : 1;
3020 unsigned FERR : 1;
3021 unsigned ADDEN : 1;
3022 unsigned CREN : 1;
3023 unsigned SREN : 1;
3024 unsigned RX9 : 1;
3025 unsigned SPEN : 1;
3026 } __RC1STAbits_t;
3028 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
3030 #define _RX9D 0x01
3031 #define _OERR 0x02
3032 #define _FERR 0x04
3033 #define _ADDEN 0x08
3034 #define _CREN 0x10
3035 #define _SREN 0x20
3036 #define _RX9 0x40
3037 #define _SPEN 0x80
3039 //==============================================================================
3042 //==============================================================================
3043 // RCSTA Bits
3045 extern __at(0x019D) __sfr RCSTA;
3047 typedef struct
3049 unsigned RX9D : 1;
3050 unsigned OERR : 1;
3051 unsigned FERR : 1;
3052 unsigned ADDEN : 1;
3053 unsigned CREN : 1;
3054 unsigned SREN : 1;
3055 unsigned RX9 : 1;
3056 unsigned SPEN : 1;
3057 } __RCSTAbits_t;
3059 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
3061 #define _RCSTA_RX9D 0x01
3062 #define _RCSTA_OERR 0x02
3063 #define _RCSTA_FERR 0x04
3064 #define _RCSTA_ADDEN 0x08
3065 #define _RCSTA_CREN 0x10
3066 #define _RCSTA_SREN 0x20
3067 #define _RCSTA_RX9 0x40
3068 #define _RCSTA_SPEN 0x80
3070 //==============================================================================
3073 //==============================================================================
3074 // RCSTA1 Bits
3076 extern __at(0x019D) __sfr RCSTA1;
3078 typedef struct
3080 unsigned RX9D : 1;
3081 unsigned OERR : 1;
3082 unsigned FERR : 1;
3083 unsigned ADDEN : 1;
3084 unsigned CREN : 1;
3085 unsigned SREN : 1;
3086 unsigned RX9 : 1;
3087 unsigned SPEN : 1;
3088 } __RCSTA1bits_t;
3090 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
3092 #define _RCSTA1_RX9D 0x01
3093 #define _RCSTA1_OERR 0x02
3094 #define _RCSTA1_FERR 0x04
3095 #define _RCSTA1_ADDEN 0x08
3096 #define _RCSTA1_CREN 0x10
3097 #define _RCSTA1_SREN 0x20
3098 #define _RCSTA1_RX9 0x40
3099 #define _RCSTA1_SPEN 0x80
3101 //==============================================================================
3104 //==============================================================================
3105 // TX1STA Bits
3107 extern __at(0x019E) __sfr TX1STA;
3109 typedef struct
3111 unsigned TX9D : 1;
3112 unsigned TRMT : 1;
3113 unsigned BRGH : 1;
3114 unsigned SENDB : 1;
3115 unsigned SYNC : 1;
3116 unsigned TXEN : 1;
3117 unsigned TX9 : 1;
3118 unsigned CSRC : 1;
3119 } __TX1STAbits_t;
3121 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
3123 #define _TX1STA_TX9D 0x01
3124 #define _TX1STA_TRMT 0x02
3125 #define _TX1STA_BRGH 0x04
3126 #define _TX1STA_SENDB 0x08
3127 #define _TX1STA_SYNC 0x10
3128 #define _TX1STA_TXEN 0x20
3129 #define _TX1STA_TX9 0x40
3130 #define _TX1STA_CSRC 0x80
3132 //==============================================================================
3135 //==============================================================================
3136 // TXSTA Bits
3138 extern __at(0x019E) __sfr TXSTA;
3140 typedef struct
3142 unsigned TX9D : 1;
3143 unsigned TRMT : 1;
3144 unsigned BRGH : 1;
3145 unsigned SENDB : 1;
3146 unsigned SYNC : 1;
3147 unsigned TXEN : 1;
3148 unsigned TX9 : 1;
3149 unsigned CSRC : 1;
3150 } __TXSTAbits_t;
3152 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
3154 #define _TXSTA_TX9D 0x01
3155 #define _TXSTA_TRMT 0x02
3156 #define _TXSTA_BRGH 0x04
3157 #define _TXSTA_SENDB 0x08
3158 #define _TXSTA_SYNC 0x10
3159 #define _TXSTA_TXEN 0x20
3160 #define _TXSTA_TX9 0x40
3161 #define _TXSTA_CSRC 0x80
3163 //==============================================================================
3166 //==============================================================================
3167 // TXSTA1 Bits
3169 extern __at(0x019E) __sfr TXSTA1;
3171 typedef struct
3173 unsigned TX9D : 1;
3174 unsigned TRMT : 1;
3175 unsigned BRGH : 1;
3176 unsigned SENDB : 1;
3177 unsigned SYNC : 1;
3178 unsigned TXEN : 1;
3179 unsigned TX9 : 1;
3180 unsigned CSRC : 1;
3181 } __TXSTA1bits_t;
3183 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
3185 #define _TXSTA1_TX9D 0x01
3186 #define _TXSTA1_TRMT 0x02
3187 #define _TXSTA1_BRGH 0x04
3188 #define _TXSTA1_SENDB 0x08
3189 #define _TXSTA1_SYNC 0x10
3190 #define _TXSTA1_TXEN 0x20
3191 #define _TXSTA1_TX9 0x40
3192 #define _TXSTA1_CSRC 0x80
3194 //==============================================================================
3197 //==============================================================================
3198 // BAUD1CON Bits
3200 extern __at(0x019F) __sfr BAUD1CON;
3202 typedef struct
3204 unsigned ABDEN : 1;
3205 unsigned WUE : 1;
3206 unsigned : 1;
3207 unsigned BRG16 : 1;
3208 unsigned SCKP : 1;
3209 unsigned : 1;
3210 unsigned RCIDL : 1;
3211 unsigned ABDOVF : 1;
3212 } __BAUD1CONbits_t;
3214 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
3216 #define _ABDEN 0x01
3217 #define _WUE 0x02
3218 #define _BRG16 0x08
3219 #define _SCKP 0x10
3220 #define _RCIDL 0x40
3221 #define _ABDOVF 0x80
3223 //==============================================================================
3226 //==============================================================================
3227 // BAUDCON Bits
3229 extern __at(0x019F) __sfr BAUDCON;
3231 typedef struct
3233 unsigned ABDEN : 1;
3234 unsigned WUE : 1;
3235 unsigned : 1;
3236 unsigned BRG16 : 1;
3237 unsigned SCKP : 1;
3238 unsigned : 1;
3239 unsigned RCIDL : 1;
3240 unsigned ABDOVF : 1;
3241 } __BAUDCONbits_t;
3243 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
3245 #define _BAUDCON_ABDEN 0x01
3246 #define _BAUDCON_WUE 0x02
3247 #define _BAUDCON_BRG16 0x08
3248 #define _BAUDCON_SCKP 0x10
3249 #define _BAUDCON_RCIDL 0x40
3250 #define _BAUDCON_ABDOVF 0x80
3252 //==============================================================================
3255 //==============================================================================
3256 // BAUDCON1 Bits
3258 extern __at(0x019F) __sfr BAUDCON1;
3260 typedef struct
3262 unsigned ABDEN : 1;
3263 unsigned WUE : 1;
3264 unsigned : 1;
3265 unsigned BRG16 : 1;
3266 unsigned SCKP : 1;
3267 unsigned : 1;
3268 unsigned RCIDL : 1;
3269 unsigned ABDOVF : 1;
3270 } __BAUDCON1bits_t;
3272 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
3274 #define _BAUDCON1_ABDEN 0x01
3275 #define _BAUDCON1_WUE 0x02
3276 #define _BAUDCON1_BRG16 0x08
3277 #define _BAUDCON1_SCKP 0x10
3278 #define _BAUDCON1_RCIDL 0x40
3279 #define _BAUDCON1_ABDOVF 0x80
3281 //==============================================================================
3284 //==============================================================================
3285 // BAUDCTL Bits
3287 extern __at(0x019F) __sfr BAUDCTL;
3289 typedef struct
3291 unsigned ABDEN : 1;
3292 unsigned WUE : 1;
3293 unsigned : 1;
3294 unsigned BRG16 : 1;
3295 unsigned SCKP : 1;
3296 unsigned : 1;
3297 unsigned RCIDL : 1;
3298 unsigned ABDOVF : 1;
3299 } __BAUDCTLbits_t;
3301 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
3303 #define _BAUDCTL_ABDEN 0x01
3304 #define _BAUDCTL_WUE 0x02
3305 #define _BAUDCTL_BRG16 0x08
3306 #define _BAUDCTL_SCKP 0x10
3307 #define _BAUDCTL_RCIDL 0x40
3308 #define _BAUDCTL_ABDOVF 0x80
3310 //==============================================================================
3313 //==============================================================================
3314 // BAUDCTL1 Bits
3316 extern __at(0x019F) __sfr BAUDCTL1;
3318 typedef struct
3320 unsigned ABDEN : 1;
3321 unsigned WUE : 1;
3322 unsigned : 1;
3323 unsigned BRG16 : 1;
3324 unsigned SCKP : 1;
3325 unsigned : 1;
3326 unsigned RCIDL : 1;
3327 unsigned ABDOVF : 1;
3328 } __BAUDCTL1bits_t;
3330 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
3332 #define _BAUDCTL1_ABDEN 0x01
3333 #define _BAUDCTL1_WUE 0x02
3334 #define _BAUDCTL1_BRG16 0x08
3335 #define _BAUDCTL1_SCKP 0x10
3336 #define _BAUDCTL1_RCIDL 0x40
3337 #define _BAUDCTL1_ABDOVF 0x80
3339 //==============================================================================
3342 //==============================================================================
3343 // WPUA Bits
3345 extern __at(0x020C) __sfr WPUA;
3347 typedef union
3349 struct
3351 unsigned WPUA0 : 1;
3352 unsigned WPUA1 : 1;
3353 unsigned WPUA2 : 1;
3354 unsigned WPUA3 : 1;
3355 unsigned WPUA4 : 1;
3356 unsigned WPUA5 : 1;
3357 unsigned : 1;
3358 unsigned : 1;
3361 struct
3363 unsigned WPUA : 6;
3364 unsigned : 2;
3366 } __WPUAbits_t;
3368 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
3370 #define _WPUA0 0x01
3371 #define _WPUA1 0x02
3372 #define _WPUA2 0x04
3373 #define _WPUA3 0x08
3374 #define _WPUA4 0x10
3375 #define _WPUA5 0x20
3377 //==============================================================================
3380 //==============================================================================
3381 // WPUB Bits
3383 extern __at(0x020D) __sfr WPUB;
3385 typedef struct
3387 unsigned : 1;
3388 unsigned : 1;
3389 unsigned : 1;
3390 unsigned : 1;
3391 unsigned WPUB4 : 1;
3392 unsigned WPUB5 : 1;
3393 unsigned WPUB6 : 1;
3394 unsigned WPUB7 : 1;
3395 } __WPUBbits_t;
3397 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
3399 #define _WPUB4 0x10
3400 #define _WPUB5 0x20
3401 #define _WPUB6 0x40
3402 #define _WPUB7 0x80
3404 //==============================================================================
3407 //==============================================================================
3408 // WPUC Bits
3410 extern __at(0x020E) __sfr WPUC;
3412 typedef struct
3414 unsigned WPUC0 : 1;
3415 unsigned WPUC1 : 1;
3416 unsigned WPUC2 : 1;
3417 unsigned WPUC3 : 1;
3418 unsigned WPUC4 : 1;
3419 unsigned WPUC5 : 1;
3420 unsigned WPUC6 : 1;
3421 unsigned WPUC7 : 1;
3422 } __WPUCbits_t;
3424 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
3426 #define _WPUC0 0x01
3427 #define _WPUC1 0x02
3428 #define _WPUC2 0x04
3429 #define _WPUC3 0x08
3430 #define _WPUC4 0x10
3431 #define _WPUC5 0x20
3432 #define _WPUC6 0x40
3433 #define _WPUC7 0x80
3435 //==============================================================================
3438 //==============================================================================
3439 // SSP1BUF Bits
3441 extern __at(0x0211) __sfr SSP1BUF;
3443 typedef union
3445 struct
3447 unsigned SSP1BUF0 : 1;
3448 unsigned SSP1BUF1 : 1;
3449 unsigned SSP1BUF2 : 1;
3450 unsigned SSP1BUF3 : 1;
3451 unsigned SSP1BUF4 : 1;
3452 unsigned SSP1BUF5 : 1;
3453 unsigned SSP1BUF6 : 1;
3454 unsigned SSP1BUF7 : 1;
3457 struct
3459 unsigned BUF0 : 1;
3460 unsigned BUF1 : 1;
3461 unsigned BUF2 : 1;
3462 unsigned BUF3 : 1;
3463 unsigned BUF4 : 1;
3464 unsigned BUF5 : 1;
3465 unsigned BUF6 : 1;
3466 unsigned BUF7 : 1;
3468 } __SSP1BUFbits_t;
3470 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
3472 #define _SSP1BUF0 0x01
3473 #define _BUF0 0x01
3474 #define _SSP1BUF1 0x02
3475 #define _BUF1 0x02
3476 #define _SSP1BUF2 0x04
3477 #define _BUF2 0x04
3478 #define _SSP1BUF3 0x08
3479 #define _BUF3 0x08
3480 #define _SSP1BUF4 0x10
3481 #define _BUF4 0x10
3482 #define _SSP1BUF5 0x20
3483 #define _BUF5 0x20
3484 #define _SSP1BUF6 0x40
3485 #define _BUF6 0x40
3486 #define _SSP1BUF7 0x80
3487 #define _BUF7 0x80
3489 //==============================================================================
3492 //==============================================================================
3493 // SSPBUF Bits
3495 extern __at(0x0211) __sfr SSPBUF;
3497 typedef union
3499 struct
3501 unsigned SSP1BUF0 : 1;
3502 unsigned SSP1BUF1 : 1;
3503 unsigned SSP1BUF2 : 1;
3504 unsigned SSP1BUF3 : 1;
3505 unsigned SSP1BUF4 : 1;
3506 unsigned SSP1BUF5 : 1;
3507 unsigned SSP1BUF6 : 1;
3508 unsigned SSP1BUF7 : 1;
3511 struct
3513 unsigned BUF0 : 1;
3514 unsigned BUF1 : 1;
3515 unsigned BUF2 : 1;
3516 unsigned BUF3 : 1;
3517 unsigned BUF4 : 1;
3518 unsigned BUF5 : 1;
3519 unsigned BUF6 : 1;
3520 unsigned BUF7 : 1;
3522 } __SSPBUFbits_t;
3524 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
3526 #define _SSPBUF_SSP1BUF0 0x01
3527 #define _SSPBUF_BUF0 0x01
3528 #define _SSPBUF_SSP1BUF1 0x02
3529 #define _SSPBUF_BUF1 0x02
3530 #define _SSPBUF_SSP1BUF2 0x04
3531 #define _SSPBUF_BUF2 0x04
3532 #define _SSPBUF_SSP1BUF3 0x08
3533 #define _SSPBUF_BUF3 0x08
3534 #define _SSPBUF_SSP1BUF4 0x10
3535 #define _SSPBUF_BUF4 0x10
3536 #define _SSPBUF_SSP1BUF5 0x20
3537 #define _SSPBUF_BUF5 0x20
3538 #define _SSPBUF_SSP1BUF6 0x40
3539 #define _SSPBUF_BUF6 0x40
3540 #define _SSPBUF_SSP1BUF7 0x80
3541 #define _SSPBUF_BUF7 0x80
3543 //==============================================================================
3546 //==============================================================================
3547 // SSP1ADD Bits
3549 extern __at(0x0212) __sfr SSP1ADD;
3551 typedef union
3553 struct
3555 unsigned SSP1ADD0 : 1;
3556 unsigned SSP1ADD1 : 1;
3557 unsigned SSP1ADD2 : 1;
3558 unsigned SSP1ADD3 : 1;
3559 unsigned SSP1ADD4 : 1;
3560 unsigned SSP1ADD5 : 1;
3561 unsigned SSP1ADD6 : 1;
3562 unsigned SSP1ADD7 : 1;
3565 struct
3567 unsigned ADD0 : 1;
3568 unsigned ADD1 : 1;
3569 unsigned ADD2 : 1;
3570 unsigned ADD3 : 1;
3571 unsigned ADD4 : 1;
3572 unsigned ADD5 : 1;
3573 unsigned ADD6 : 1;
3574 unsigned ADD7 : 1;
3576 } __SSP1ADDbits_t;
3578 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
3580 #define _SSP1ADD0 0x01
3581 #define _ADD0 0x01
3582 #define _SSP1ADD1 0x02
3583 #define _ADD1 0x02
3584 #define _SSP1ADD2 0x04
3585 #define _ADD2 0x04
3586 #define _SSP1ADD3 0x08
3587 #define _ADD3 0x08
3588 #define _SSP1ADD4 0x10
3589 #define _ADD4 0x10
3590 #define _SSP1ADD5 0x20
3591 #define _ADD5 0x20
3592 #define _SSP1ADD6 0x40
3593 #define _ADD6 0x40
3594 #define _SSP1ADD7 0x80
3595 #define _ADD7 0x80
3597 //==============================================================================
3600 //==============================================================================
3601 // SSPADD Bits
3603 extern __at(0x0212) __sfr SSPADD;
3605 typedef union
3607 struct
3609 unsigned SSP1ADD0 : 1;
3610 unsigned SSP1ADD1 : 1;
3611 unsigned SSP1ADD2 : 1;
3612 unsigned SSP1ADD3 : 1;
3613 unsigned SSP1ADD4 : 1;
3614 unsigned SSP1ADD5 : 1;
3615 unsigned SSP1ADD6 : 1;
3616 unsigned SSP1ADD7 : 1;
3619 struct
3621 unsigned ADD0 : 1;
3622 unsigned ADD1 : 1;
3623 unsigned ADD2 : 1;
3624 unsigned ADD3 : 1;
3625 unsigned ADD4 : 1;
3626 unsigned ADD5 : 1;
3627 unsigned ADD6 : 1;
3628 unsigned ADD7 : 1;
3630 } __SSPADDbits_t;
3632 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
3634 #define _SSPADD_SSP1ADD0 0x01
3635 #define _SSPADD_ADD0 0x01
3636 #define _SSPADD_SSP1ADD1 0x02
3637 #define _SSPADD_ADD1 0x02
3638 #define _SSPADD_SSP1ADD2 0x04
3639 #define _SSPADD_ADD2 0x04
3640 #define _SSPADD_SSP1ADD3 0x08
3641 #define _SSPADD_ADD3 0x08
3642 #define _SSPADD_SSP1ADD4 0x10
3643 #define _SSPADD_ADD4 0x10
3644 #define _SSPADD_SSP1ADD5 0x20
3645 #define _SSPADD_ADD5 0x20
3646 #define _SSPADD_SSP1ADD6 0x40
3647 #define _SSPADD_ADD6 0x40
3648 #define _SSPADD_SSP1ADD7 0x80
3649 #define _SSPADD_ADD7 0x80
3651 //==============================================================================
3654 //==============================================================================
3655 // SSP1MSK Bits
3657 extern __at(0x0213) __sfr SSP1MSK;
3659 typedef union
3661 struct
3663 unsigned SSP1MSK0 : 1;
3664 unsigned SSP1MSK1 : 1;
3665 unsigned SSP1MSK2 : 1;
3666 unsigned SSP1MSK3 : 1;
3667 unsigned SSP1MSK4 : 1;
3668 unsigned SSP1MSK5 : 1;
3669 unsigned SSP1MSK6 : 1;
3670 unsigned SSP1MSK7 : 1;
3673 struct
3675 unsigned MSK0 : 1;
3676 unsigned MSK1 : 1;
3677 unsigned MSK2 : 1;
3678 unsigned MSK3 : 1;
3679 unsigned MSK4 : 1;
3680 unsigned MSK5 : 1;
3681 unsigned MSK6 : 1;
3682 unsigned MSK7 : 1;
3684 } __SSP1MSKbits_t;
3686 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3688 #define _SSP1MSK0 0x01
3689 #define _MSK0 0x01
3690 #define _SSP1MSK1 0x02
3691 #define _MSK1 0x02
3692 #define _SSP1MSK2 0x04
3693 #define _MSK2 0x04
3694 #define _SSP1MSK3 0x08
3695 #define _MSK3 0x08
3696 #define _SSP1MSK4 0x10
3697 #define _MSK4 0x10
3698 #define _SSP1MSK5 0x20
3699 #define _MSK5 0x20
3700 #define _SSP1MSK6 0x40
3701 #define _MSK6 0x40
3702 #define _SSP1MSK7 0x80
3703 #define _MSK7 0x80
3705 //==============================================================================
3708 //==============================================================================
3709 // SSPMSK Bits
3711 extern __at(0x0213) __sfr SSPMSK;
3713 typedef union
3715 struct
3717 unsigned SSP1MSK0 : 1;
3718 unsigned SSP1MSK1 : 1;
3719 unsigned SSP1MSK2 : 1;
3720 unsigned SSP1MSK3 : 1;
3721 unsigned SSP1MSK4 : 1;
3722 unsigned SSP1MSK5 : 1;
3723 unsigned SSP1MSK6 : 1;
3724 unsigned SSP1MSK7 : 1;
3727 struct
3729 unsigned MSK0 : 1;
3730 unsigned MSK1 : 1;
3731 unsigned MSK2 : 1;
3732 unsigned MSK3 : 1;
3733 unsigned MSK4 : 1;
3734 unsigned MSK5 : 1;
3735 unsigned MSK6 : 1;
3736 unsigned MSK7 : 1;
3738 } __SSPMSKbits_t;
3740 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3742 #define _SSPMSK_SSP1MSK0 0x01
3743 #define _SSPMSK_MSK0 0x01
3744 #define _SSPMSK_SSP1MSK1 0x02
3745 #define _SSPMSK_MSK1 0x02
3746 #define _SSPMSK_SSP1MSK2 0x04
3747 #define _SSPMSK_MSK2 0x04
3748 #define _SSPMSK_SSP1MSK3 0x08
3749 #define _SSPMSK_MSK3 0x08
3750 #define _SSPMSK_SSP1MSK4 0x10
3751 #define _SSPMSK_MSK4 0x10
3752 #define _SSPMSK_SSP1MSK5 0x20
3753 #define _SSPMSK_MSK5 0x20
3754 #define _SSPMSK_SSP1MSK6 0x40
3755 #define _SSPMSK_MSK6 0x40
3756 #define _SSPMSK_SSP1MSK7 0x80
3757 #define _SSPMSK_MSK7 0x80
3759 //==============================================================================
3762 //==============================================================================
3763 // SSP1STAT Bits
3765 extern __at(0x0214) __sfr SSP1STAT;
3767 typedef struct
3769 unsigned BF : 1;
3770 unsigned UA : 1;
3771 unsigned R_NOT_W : 1;
3772 unsigned S : 1;
3773 unsigned P : 1;
3774 unsigned D_NOT_A : 1;
3775 unsigned CKE : 1;
3776 unsigned SMP : 1;
3777 } __SSP1STATbits_t;
3779 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3781 #define _BF 0x01
3782 #define _UA 0x02
3783 #define _R_NOT_W 0x04
3784 #define _S 0x08
3785 #define _P 0x10
3786 #define _D_NOT_A 0x20
3787 #define _CKE 0x40
3788 #define _SMP 0x80
3790 //==============================================================================
3793 //==============================================================================
3794 // SSPSTAT Bits
3796 extern __at(0x0214) __sfr SSPSTAT;
3798 typedef struct
3800 unsigned BF : 1;
3801 unsigned UA : 1;
3802 unsigned R_NOT_W : 1;
3803 unsigned S : 1;
3804 unsigned P : 1;
3805 unsigned D_NOT_A : 1;
3806 unsigned CKE : 1;
3807 unsigned SMP : 1;
3808 } __SSPSTATbits_t;
3810 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3812 #define _SSPSTAT_BF 0x01
3813 #define _SSPSTAT_UA 0x02
3814 #define _SSPSTAT_R_NOT_W 0x04
3815 #define _SSPSTAT_S 0x08
3816 #define _SSPSTAT_P 0x10
3817 #define _SSPSTAT_D_NOT_A 0x20
3818 #define _SSPSTAT_CKE 0x40
3819 #define _SSPSTAT_SMP 0x80
3821 //==============================================================================
3824 //==============================================================================
3825 // SSP1CON Bits
3827 extern __at(0x0215) __sfr SSP1CON;
3829 typedef union
3831 struct
3833 unsigned SSPM0 : 1;
3834 unsigned SSPM1 : 1;
3835 unsigned SSPM2 : 1;
3836 unsigned SSPM3 : 1;
3837 unsigned CKP : 1;
3838 unsigned SSPEN : 1;
3839 unsigned SSPOV : 1;
3840 unsigned WCOL : 1;
3843 struct
3845 unsigned SSPM : 4;
3846 unsigned : 4;
3848 } __SSP1CONbits_t;
3850 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3852 #define _SSPM0 0x01
3853 #define _SSPM1 0x02
3854 #define _SSPM2 0x04
3855 #define _SSPM3 0x08
3856 #define _CKP 0x10
3857 #define _SSPEN 0x20
3858 #define _SSPOV 0x40
3859 #define _WCOL 0x80
3861 //==============================================================================
3864 //==============================================================================
3865 // SSP1CON1 Bits
3867 extern __at(0x0215) __sfr SSP1CON1;
3869 typedef union
3871 struct
3873 unsigned SSPM0 : 1;
3874 unsigned SSPM1 : 1;
3875 unsigned SSPM2 : 1;
3876 unsigned SSPM3 : 1;
3877 unsigned CKP : 1;
3878 unsigned SSPEN : 1;
3879 unsigned SSPOV : 1;
3880 unsigned WCOL : 1;
3883 struct
3885 unsigned SSPM : 4;
3886 unsigned : 4;
3888 } __SSP1CON1bits_t;
3890 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3892 #define _SSP1CON1_SSPM0 0x01
3893 #define _SSP1CON1_SSPM1 0x02
3894 #define _SSP1CON1_SSPM2 0x04
3895 #define _SSP1CON1_SSPM3 0x08
3896 #define _SSP1CON1_CKP 0x10
3897 #define _SSP1CON1_SSPEN 0x20
3898 #define _SSP1CON1_SSPOV 0x40
3899 #define _SSP1CON1_WCOL 0x80
3901 //==============================================================================
3904 //==============================================================================
3905 // SSPCON Bits
3907 extern __at(0x0215) __sfr SSPCON;
3909 typedef union
3911 struct
3913 unsigned SSPM0 : 1;
3914 unsigned SSPM1 : 1;
3915 unsigned SSPM2 : 1;
3916 unsigned SSPM3 : 1;
3917 unsigned CKP : 1;
3918 unsigned SSPEN : 1;
3919 unsigned SSPOV : 1;
3920 unsigned WCOL : 1;
3923 struct
3925 unsigned SSPM : 4;
3926 unsigned : 4;
3928 } __SSPCONbits_t;
3930 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3932 #define _SSPCON_SSPM0 0x01
3933 #define _SSPCON_SSPM1 0x02
3934 #define _SSPCON_SSPM2 0x04
3935 #define _SSPCON_SSPM3 0x08
3936 #define _SSPCON_CKP 0x10
3937 #define _SSPCON_SSPEN 0x20
3938 #define _SSPCON_SSPOV 0x40
3939 #define _SSPCON_WCOL 0x80
3941 //==============================================================================
3944 //==============================================================================
3945 // SSPCON1 Bits
3947 extern __at(0x0215) __sfr SSPCON1;
3949 typedef union
3951 struct
3953 unsigned SSPM0 : 1;
3954 unsigned SSPM1 : 1;
3955 unsigned SSPM2 : 1;
3956 unsigned SSPM3 : 1;
3957 unsigned CKP : 1;
3958 unsigned SSPEN : 1;
3959 unsigned SSPOV : 1;
3960 unsigned WCOL : 1;
3963 struct
3965 unsigned SSPM : 4;
3966 unsigned : 4;
3968 } __SSPCON1bits_t;
3970 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3972 #define _SSPCON1_SSPM0 0x01
3973 #define _SSPCON1_SSPM1 0x02
3974 #define _SSPCON1_SSPM2 0x04
3975 #define _SSPCON1_SSPM3 0x08
3976 #define _SSPCON1_CKP 0x10
3977 #define _SSPCON1_SSPEN 0x20
3978 #define _SSPCON1_SSPOV 0x40
3979 #define _SSPCON1_WCOL 0x80
3981 //==============================================================================
3984 //==============================================================================
3985 // SSP1CON2 Bits
3987 extern __at(0x0216) __sfr SSP1CON2;
3989 typedef struct
3991 unsigned SEN : 1;
3992 unsigned RSEN : 1;
3993 unsigned PEN : 1;
3994 unsigned RCEN : 1;
3995 unsigned ACKEN : 1;
3996 unsigned ACKDT : 1;
3997 unsigned ACKSTAT : 1;
3998 unsigned GCEN : 1;
3999 } __SSP1CON2bits_t;
4001 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
4003 #define _SEN 0x01
4004 #define _RSEN 0x02
4005 #define _PEN 0x04
4006 #define _RCEN 0x08
4007 #define _ACKEN 0x10
4008 #define _ACKDT 0x20
4009 #define _ACKSTAT 0x40
4010 #define _GCEN 0x80
4012 //==============================================================================
4015 //==============================================================================
4016 // SSPCON2 Bits
4018 extern __at(0x0216) __sfr SSPCON2;
4020 typedef struct
4022 unsigned SEN : 1;
4023 unsigned RSEN : 1;
4024 unsigned PEN : 1;
4025 unsigned RCEN : 1;
4026 unsigned ACKEN : 1;
4027 unsigned ACKDT : 1;
4028 unsigned ACKSTAT : 1;
4029 unsigned GCEN : 1;
4030 } __SSPCON2bits_t;
4032 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
4034 #define _SSPCON2_SEN 0x01
4035 #define _SSPCON2_RSEN 0x02
4036 #define _SSPCON2_PEN 0x04
4037 #define _SSPCON2_RCEN 0x08
4038 #define _SSPCON2_ACKEN 0x10
4039 #define _SSPCON2_ACKDT 0x20
4040 #define _SSPCON2_ACKSTAT 0x40
4041 #define _SSPCON2_GCEN 0x80
4043 //==============================================================================
4046 //==============================================================================
4047 // SSP1CON3 Bits
4049 extern __at(0x0217) __sfr SSP1CON3;
4051 typedef struct
4053 unsigned DHEN : 1;
4054 unsigned AHEN : 1;
4055 unsigned SBCDE : 1;
4056 unsigned SDAHT : 1;
4057 unsigned BOEN : 1;
4058 unsigned SCIE : 1;
4059 unsigned PCIE : 1;
4060 unsigned ACKTIM : 1;
4061 } __SSP1CON3bits_t;
4063 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
4065 #define _DHEN 0x01
4066 #define _AHEN 0x02
4067 #define _SBCDE 0x04
4068 #define _SDAHT 0x08
4069 #define _BOEN 0x10
4070 #define _SCIE 0x20
4071 #define _PCIE 0x40
4072 #define _ACKTIM 0x80
4074 //==============================================================================
4077 //==============================================================================
4078 // SSPCON3 Bits
4080 extern __at(0x0217) __sfr SSPCON3;
4082 typedef struct
4084 unsigned DHEN : 1;
4085 unsigned AHEN : 1;
4086 unsigned SBCDE : 1;
4087 unsigned SDAHT : 1;
4088 unsigned BOEN : 1;
4089 unsigned SCIE : 1;
4090 unsigned PCIE : 1;
4091 unsigned ACKTIM : 1;
4092 } __SSPCON3bits_t;
4094 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
4096 #define _SSPCON3_DHEN 0x01
4097 #define _SSPCON3_AHEN 0x02
4098 #define _SSPCON3_SBCDE 0x04
4099 #define _SSPCON3_SDAHT 0x08
4100 #define _SSPCON3_BOEN 0x10
4101 #define _SSPCON3_SCIE 0x20
4102 #define _SSPCON3_PCIE 0x40
4103 #define _SSPCON3_ACKTIM 0x80
4105 //==============================================================================
4108 //==============================================================================
4109 // BORCON Bits
4111 extern __at(0x021D) __sfr BORCON;
4113 typedef struct
4115 unsigned BORRDY : 1;
4116 unsigned : 1;
4117 unsigned : 1;
4118 unsigned : 1;
4119 unsigned : 1;
4120 unsigned : 1;
4121 unsigned BORFS : 1;
4122 unsigned SBOREN : 1;
4123 } __BORCONbits_t;
4125 extern __at(0x021D) volatile __BORCONbits_t BORCONbits;
4127 #define _BORRDY 0x01
4128 #define _BORFS 0x40
4129 #define _SBOREN 0x80
4131 //==============================================================================
4134 //==============================================================================
4135 // FVRCON Bits
4137 extern __at(0x021E) __sfr FVRCON;
4139 typedef struct
4141 unsigned : 1;
4142 unsigned : 1;
4143 unsigned : 1;
4144 unsigned : 1;
4145 unsigned TSRNG : 1;
4146 unsigned TSEN : 1;
4147 unsigned FVRRDY : 1;
4148 unsigned FVREN : 1;
4149 } __FVRCONbits_t;
4151 extern __at(0x021E) volatile __FVRCONbits_t FVRCONbits;
4153 #define _TSRNG 0x10
4154 #define _TSEN 0x20
4155 #define _FVRRDY 0x40
4156 #define _FVREN 0x80
4158 //==============================================================================
4161 //==============================================================================
4162 // ZCD1CON Bits
4164 extern __at(0x021F) __sfr ZCD1CON;
4166 typedef struct
4168 unsigned ZCD1INTN : 1;
4169 unsigned ZCD1INTP : 1;
4170 unsigned : 1;
4171 unsigned : 1;
4172 unsigned ZCD1POL : 1;
4173 unsigned ZCD1OUT : 1;
4174 unsigned : 1;
4175 unsigned ZCD1EN : 1;
4176 } __ZCD1CONbits_t;
4178 extern __at(0x021F) volatile __ZCD1CONbits_t ZCD1CONbits;
4180 #define _ZCD1INTN 0x01
4181 #define _ZCD1INTP 0x02
4182 #define _ZCD1POL 0x10
4183 #define _ZCD1OUT 0x20
4184 #define _ZCD1EN 0x80
4186 //==============================================================================
4189 //==============================================================================
4190 // ODCONA Bits
4192 extern __at(0x028C) __sfr ODCONA;
4194 typedef struct
4196 unsigned ODA0 : 1;
4197 unsigned ODA1 : 1;
4198 unsigned ODA2 : 1;
4199 unsigned : 1;
4200 unsigned ODA4 : 1;
4201 unsigned ODA5 : 1;
4202 unsigned : 1;
4203 unsigned : 1;
4204 } __ODCONAbits_t;
4206 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
4208 #define _ODA0 0x01
4209 #define _ODA1 0x02
4210 #define _ODA2 0x04
4211 #define _ODA4 0x10
4212 #define _ODA5 0x20
4214 //==============================================================================
4217 //==============================================================================
4218 // ODCONB Bits
4220 extern __at(0x028D) __sfr ODCONB;
4222 typedef struct
4224 unsigned : 1;
4225 unsigned : 1;
4226 unsigned : 1;
4227 unsigned : 1;
4228 unsigned ODB4 : 1;
4229 unsigned ODB5 : 1;
4230 unsigned ODB6 : 1;
4231 unsigned ODB7 : 1;
4232 } __ODCONBbits_t;
4234 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
4236 #define _ODB4 0x10
4237 #define _ODB5 0x20
4238 #define _ODB6 0x40
4239 #define _ODB7 0x80
4241 //==============================================================================
4244 //==============================================================================
4245 // ODCONC Bits
4247 extern __at(0x028E) __sfr ODCONC;
4249 typedef struct
4251 unsigned ODC0 : 1;
4252 unsigned ODC1 : 1;
4253 unsigned ODC2 : 1;
4254 unsigned ODC3 : 1;
4255 unsigned ODC4 : 1;
4256 unsigned ODC5 : 1;
4257 unsigned ODC6 : 1;
4258 unsigned ODC7 : 1;
4259 } __ODCONCbits_t;
4261 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
4263 #define _ODC0 0x01
4264 #define _ODC1 0x02
4265 #define _ODC2 0x04
4266 #define _ODC3 0x08
4267 #define _ODC4 0x10
4268 #define _ODC5 0x20
4269 #define _ODC6 0x40
4270 #define _ODC7 0x80
4272 //==============================================================================
4274 extern __at(0x0291) __sfr CCPR1;
4275 extern __at(0x0291) __sfr CCPR1L;
4276 extern __at(0x0292) __sfr CCPR1H;
4278 //==============================================================================
4279 // CCP1CON Bits
4281 extern __at(0x0293) __sfr CCP1CON;
4283 typedef union
4285 struct
4287 unsigned MODE0 : 1;
4288 unsigned MODE1 : 1;
4289 unsigned MODE2 : 1;
4290 unsigned MODE3 : 1;
4291 unsigned FMT : 1;
4292 unsigned OUT : 1;
4293 unsigned : 1;
4294 unsigned EN : 1;
4297 struct
4299 unsigned CCP1MODE0 : 1;
4300 unsigned CCP1MODE1 : 1;
4301 unsigned CCP1MODE2 : 1;
4302 unsigned CCP1MODE3 : 1;
4303 unsigned CCP1FMT : 1;
4304 unsigned CCP1OUT : 1;
4305 unsigned : 1;
4306 unsigned CCP1EN : 1;
4309 struct
4311 unsigned CCP1MODE : 4;
4312 unsigned : 4;
4315 struct
4317 unsigned MODE : 4;
4318 unsigned : 4;
4320 } __CCP1CONbits_t;
4322 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
4324 #define _MODE0 0x01
4325 #define _CCP1MODE0 0x01
4326 #define _MODE1 0x02
4327 #define _CCP1MODE1 0x02
4328 #define _MODE2 0x04
4329 #define _CCP1MODE2 0x04
4330 #define _MODE3 0x08
4331 #define _CCP1MODE3 0x08
4332 #define _FMT 0x10
4333 #define _CCP1FMT 0x10
4334 #define _OUT 0x20
4335 #define _CCP1OUT 0x20
4336 #define _EN 0x80
4337 #define _CCP1EN 0x80
4339 //==============================================================================
4342 //==============================================================================
4343 // CCP1CAP Bits
4345 extern __at(0x0294) __sfr CCP1CAP;
4347 typedef union
4349 struct
4351 unsigned CTS0 : 1;
4352 unsigned CTS1 : 1;
4353 unsigned CTS2 : 1;
4354 unsigned : 1;
4355 unsigned : 1;
4356 unsigned : 1;
4357 unsigned : 1;
4358 unsigned : 1;
4361 struct
4363 unsigned CCP1CTS0 : 1;
4364 unsigned CCP1CTS1 : 1;
4365 unsigned CCP1CTS2 : 1;
4366 unsigned : 1;
4367 unsigned : 1;
4368 unsigned : 1;
4369 unsigned : 1;
4370 unsigned : 1;
4373 struct
4375 unsigned CCP1CTS : 3;
4376 unsigned : 5;
4379 struct
4381 unsigned CTS : 3;
4382 unsigned : 5;
4384 } __CCP1CAPbits_t;
4386 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
4388 #define _CTS0 0x01
4389 #define _CCP1CTS0 0x01
4390 #define _CTS1 0x02
4391 #define _CCP1CTS1 0x02
4392 #define _CTS2 0x04
4393 #define _CCP1CTS2 0x04
4395 //==============================================================================
4397 extern __at(0x0298) __sfr CCPR2;
4398 extern __at(0x0298) __sfr CCPR2L;
4399 extern __at(0x0299) __sfr CCPR2H;
4401 //==============================================================================
4402 // CCP2CON Bits
4404 extern __at(0x029A) __sfr CCP2CON;
4406 typedef union
4408 struct
4410 unsigned MODE0 : 1;
4411 unsigned MODE1 : 1;
4412 unsigned MODE2 : 1;
4413 unsigned MODE3 : 1;
4414 unsigned FMT : 1;
4415 unsigned OUT : 1;
4416 unsigned : 1;
4417 unsigned EN : 1;
4420 struct
4422 unsigned CCP2MODE0 : 1;
4423 unsigned CCP2MODE1 : 1;
4424 unsigned CCP2MODE2 : 1;
4425 unsigned CCP2MODE3 : 1;
4426 unsigned CCP2FMT : 1;
4427 unsigned CCP2OUT : 1;
4428 unsigned : 1;
4429 unsigned CCP2EN : 1;
4432 struct
4434 unsigned MODE : 4;
4435 unsigned : 4;
4438 struct
4440 unsigned CCP2MODE : 4;
4441 unsigned : 4;
4443 } __CCP2CONbits_t;
4445 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
4447 #define _CCP2CON_MODE0 0x01
4448 #define _CCP2CON_CCP2MODE0 0x01
4449 #define _CCP2CON_MODE1 0x02
4450 #define _CCP2CON_CCP2MODE1 0x02
4451 #define _CCP2CON_MODE2 0x04
4452 #define _CCP2CON_CCP2MODE2 0x04
4453 #define _CCP2CON_MODE3 0x08
4454 #define _CCP2CON_CCP2MODE3 0x08
4455 #define _CCP2CON_FMT 0x10
4456 #define _CCP2CON_CCP2FMT 0x10
4457 #define _CCP2CON_OUT 0x20
4458 #define _CCP2CON_CCP2OUT 0x20
4459 #define _CCP2CON_EN 0x80
4460 #define _CCP2CON_CCP2EN 0x80
4462 //==============================================================================
4465 //==============================================================================
4466 // CCP2CAP Bits
4468 extern __at(0x029B) __sfr CCP2CAP;
4470 typedef union
4472 struct
4474 unsigned CTS0 : 1;
4475 unsigned CTS1 : 1;
4476 unsigned CTS2 : 1;
4477 unsigned : 1;
4478 unsigned : 1;
4479 unsigned : 1;
4480 unsigned : 1;
4481 unsigned : 1;
4484 struct
4486 unsigned CCP2CTS0 : 1;
4487 unsigned CCP2CTS1 : 1;
4488 unsigned CCP2CTS2 : 1;
4489 unsigned : 1;
4490 unsigned : 1;
4491 unsigned : 1;
4492 unsigned : 1;
4493 unsigned : 1;
4496 struct
4498 unsigned CCP2CTS : 3;
4499 unsigned : 5;
4502 struct
4504 unsigned CTS : 3;
4505 unsigned : 5;
4507 } __CCP2CAPbits_t;
4509 extern __at(0x029B) volatile __CCP2CAPbits_t CCP2CAPbits;
4511 #define _CCP2CAP_CTS0 0x01
4512 #define _CCP2CAP_CCP2CTS0 0x01
4513 #define _CCP2CAP_CTS1 0x02
4514 #define _CCP2CAP_CCP2CTS1 0x02
4515 #define _CCP2CAP_CTS2 0x04
4516 #define _CCP2CAP_CCP2CTS2 0x04
4518 //==============================================================================
4521 //==============================================================================
4522 // CCPTMRS Bits
4524 extern __at(0x029E) __sfr CCPTMRS;
4526 typedef union
4528 struct
4530 unsigned C1TSEL0 : 1;
4531 unsigned C1TSEL1 : 1;
4532 unsigned C2TSEL0 : 1;
4533 unsigned C2TSEL1 : 1;
4534 unsigned P3TSEL0 : 1;
4535 unsigned P3TSEL1 : 1;
4536 unsigned P4TSEL0 : 1;
4537 unsigned P4TSEL1 : 1;
4540 struct
4542 unsigned C1TSEL : 2;
4543 unsigned : 6;
4546 struct
4548 unsigned : 2;
4549 unsigned C2TSEL : 2;
4550 unsigned : 4;
4553 struct
4555 unsigned : 4;
4556 unsigned P3TSEL : 2;
4557 unsigned : 2;
4560 struct
4562 unsigned : 6;
4563 unsigned P4TSEL : 2;
4565 } __CCPTMRSbits_t;
4567 extern __at(0x029E) volatile __CCPTMRSbits_t CCPTMRSbits;
4569 #define _C1TSEL0 0x01
4570 #define _C1TSEL1 0x02
4571 #define _C2TSEL0 0x04
4572 #define _C2TSEL1 0x08
4573 #define _P3TSEL0 0x10
4574 #define _P3TSEL1 0x20
4575 #define _P4TSEL0 0x40
4576 #define _P4TSEL1 0x80
4578 //==============================================================================
4581 //==============================================================================
4582 // SLRCONA Bits
4584 extern __at(0x030C) __sfr SLRCONA;
4586 typedef struct
4588 unsigned SLRA0 : 1;
4589 unsigned SLRA1 : 1;
4590 unsigned SLRA2 : 1;
4591 unsigned : 1;
4592 unsigned SLRA4 : 1;
4593 unsigned SLRA5 : 1;
4594 unsigned : 1;
4595 unsigned : 1;
4596 } __SLRCONAbits_t;
4598 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
4600 #define _SLRA0 0x01
4601 #define _SLRA1 0x02
4602 #define _SLRA2 0x04
4603 #define _SLRA4 0x10
4604 #define _SLRA5 0x20
4606 //==============================================================================
4609 //==============================================================================
4610 // SLRCONB Bits
4612 extern __at(0x030D) __sfr SLRCONB;
4614 typedef struct
4616 unsigned : 1;
4617 unsigned : 1;
4618 unsigned : 1;
4619 unsigned : 1;
4620 unsigned SLRB4 : 1;
4621 unsigned SLRB5 : 1;
4622 unsigned SLRB6 : 1;
4623 unsigned SLRB7 : 1;
4624 } __SLRCONBbits_t;
4626 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
4628 #define _SLRB4 0x10
4629 #define _SLRB5 0x20
4630 #define _SLRB6 0x40
4631 #define _SLRB7 0x80
4633 //==============================================================================
4636 //==============================================================================
4637 // SLRCONC Bits
4639 extern __at(0x030E) __sfr SLRCONC;
4641 typedef struct
4643 unsigned SLRC0 : 1;
4644 unsigned SLRC1 : 1;
4645 unsigned SLRC2 : 1;
4646 unsigned SLRC3 : 1;
4647 unsigned SLRC4 : 1;
4648 unsigned SLRC5 : 1;
4649 unsigned SLRC6 : 1;
4650 unsigned SLRC7 : 1;
4651 } __SLRCONCbits_t;
4653 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
4655 #define _SLRC0 0x01
4656 #define _SLRC1 0x02
4657 #define _SLRC2 0x04
4658 #define _SLRC3 0x08
4659 #define _SLRC4 0x10
4660 #define _SLRC5 0x20
4661 #define _SLRC6 0x40
4662 #define _SLRC7 0x80
4664 //==============================================================================
4667 //==============================================================================
4668 // MD2CON0 Bits
4670 extern __at(0x031B) __sfr MD2CON0;
4672 typedef union
4674 struct
4676 unsigned BIT : 1;
4677 unsigned : 1;
4678 unsigned : 1;
4679 unsigned : 1;
4680 unsigned OPOL : 1;
4681 unsigned OUT : 1;
4682 unsigned : 1;
4683 unsigned EN : 1;
4686 struct
4688 unsigned MD2BIT : 1;
4689 unsigned : 1;
4690 unsigned : 1;
4691 unsigned : 1;
4692 unsigned MD2OPOL : 1;
4693 unsigned MD2OUT : 1;
4694 unsigned : 1;
4695 unsigned MD2EN : 1;
4697 } __MD2CON0bits_t;
4699 extern __at(0x031B) volatile __MD2CON0bits_t MD2CON0bits;
4701 #define _MD2CON0_BIT 0x01
4702 #define _MD2CON0_MD2BIT 0x01
4703 #define _MD2CON0_OPOL 0x10
4704 #define _MD2CON0_MD2OPOL 0x10
4705 #define _MD2CON0_OUT 0x20
4706 #define _MD2CON0_MD2OUT 0x20
4707 #define _MD2CON0_EN 0x80
4708 #define _MD2CON0_MD2EN 0x80
4710 //==============================================================================
4713 //==============================================================================
4714 // MD2CON1 Bits
4716 extern __at(0x031C) __sfr MD2CON1;
4718 typedef union
4720 struct
4722 unsigned CLSYNC : 1;
4723 unsigned CLPOL : 1;
4724 unsigned : 1;
4725 unsigned : 1;
4726 unsigned CHSYNC : 1;
4727 unsigned CHPOL : 1;
4728 unsigned : 1;
4729 unsigned : 1;
4732 struct
4734 unsigned MD2CLSYNC : 1;
4735 unsigned MD2CLPOL : 1;
4736 unsigned : 1;
4737 unsigned : 1;
4738 unsigned MD2CHSYNC : 1;
4739 unsigned MD2CHPOL : 1;
4740 unsigned : 1;
4741 unsigned : 1;
4743 } __MD2CON1bits_t;
4745 extern __at(0x031C) volatile __MD2CON1bits_t MD2CON1bits;
4747 #define _MD2CON1_CLSYNC 0x01
4748 #define _MD2CON1_MD2CLSYNC 0x01
4749 #define _MD2CON1_CLPOL 0x02
4750 #define _MD2CON1_MD2CLPOL 0x02
4751 #define _MD2CON1_CHSYNC 0x10
4752 #define _MD2CON1_MD2CHSYNC 0x10
4753 #define _MD2CON1_CHPOL 0x20
4754 #define _MD2CON1_MD2CHPOL 0x20
4756 //==============================================================================
4759 //==============================================================================
4760 // MD2SRC Bits
4762 extern __at(0x031D) __sfr MD2SRC;
4764 typedef union
4766 struct
4768 unsigned MS0 : 1;
4769 unsigned MS1 : 1;
4770 unsigned MS2 : 1;
4771 unsigned MS3 : 1;
4772 unsigned MS4 : 1;
4773 unsigned : 1;
4774 unsigned : 1;
4775 unsigned : 1;
4778 struct
4780 unsigned MD2MS0 : 1;
4781 unsigned MD2MS1 : 1;
4782 unsigned MD2MS2 : 1;
4783 unsigned MD2MS3 : 1;
4784 unsigned MD2MS4 : 1;
4785 unsigned : 1;
4786 unsigned : 1;
4787 unsigned : 1;
4790 struct
4792 unsigned MD2MS : 5;
4793 unsigned : 3;
4796 struct
4798 unsigned MS : 5;
4799 unsigned : 3;
4801 } __MD2SRCbits_t;
4803 extern __at(0x031D) volatile __MD2SRCbits_t MD2SRCbits;
4805 #define _MD2SRC_MS0 0x01
4806 #define _MD2SRC_MD2MS0 0x01
4807 #define _MD2SRC_MS1 0x02
4808 #define _MD2SRC_MD2MS1 0x02
4809 #define _MD2SRC_MS2 0x04
4810 #define _MD2SRC_MD2MS2 0x04
4811 #define _MD2SRC_MS3 0x08
4812 #define _MD2SRC_MD2MS3 0x08
4813 #define _MD2SRC_MS4 0x10
4814 #define _MD2SRC_MD2MS4 0x10
4816 //==============================================================================
4819 //==============================================================================
4820 // MD2CARL Bits
4822 extern __at(0x031E) __sfr MD2CARL;
4824 typedef union
4826 struct
4828 unsigned CL0 : 1;
4829 unsigned CL1 : 1;
4830 unsigned CL2 : 1;
4831 unsigned CL3 : 1;
4832 unsigned : 1;
4833 unsigned : 1;
4834 unsigned : 1;
4835 unsigned : 1;
4838 struct
4840 unsigned MD2CL0 : 1;
4841 unsigned MD2CL1 : 1;
4842 unsigned MD2CL2 : 1;
4843 unsigned MD2CL3 : 1;
4844 unsigned : 1;
4845 unsigned : 1;
4846 unsigned : 1;
4847 unsigned : 1;
4850 struct
4852 unsigned MD2CL : 4;
4853 unsigned : 4;
4856 struct
4858 unsigned CL : 4;
4859 unsigned : 4;
4861 } __MD2CARLbits_t;
4863 extern __at(0x031E) volatile __MD2CARLbits_t MD2CARLbits;
4865 #define _MD2CARL_CL0 0x01
4866 #define _MD2CARL_MD2CL0 0x01
4867 #define _MD2CARL_CL1 0x02
4868 #define _MD2CARL_MD2CL1 0x02
4869 #define _MD2CARL_CL2 0x04
4870 #define _MD2CARL_MD2CL2 0x04
4871 #define _MD2CARL_CL3 0x08
4872 #define _MD2CARL_MD2CL3 0x08
4874 //==============================================================================
4877 //==============================================================================
4878 // MD2CARH Bits
4880 extern __at(0x031F) __sfr MD2CARH;
4882 typedef union
4884 struct
4886 unsigned CH0 : 1;
4887 unsigned CH1 : 1;
4888 unsigned CH2 : 1;
4889 unsigned CH3 : 1;
4890 unsigned : 1;
4891 unsigned : 1;
4892 unsigned : 1;
4893 unsigned : 1;
4896 struct
4898 unsigned MD2CH0 : 1;
4899 unsigned MD2CH1 : 1;
4900 unsigned MD2CH2 : 1;
4901 unsigned MD2CH3 : 1;
4902 unsigned : 1;
4903 unsigned : 1;
4904 unsigned : 1;
4905 unsigned : 1;
4908 struct
4910 unsigned CH : 4;
4911 unsigned : 4;
4914 struct
4916 unsigned MD2CH : 4;
4917 unsigned : 4;
4919 } __MD2CARHbits_t;
4921 extern __at(0x031F) volatile __MD2CARHbits_t MD2CARHbits;
4923 #define _MD2CARH_CH0 0x01
4924 #define _MD2CARH_MD2CH0 0x01
4925 #define _MD2CARH_CH1 0x02
4926 #define _MD2CARH_MD2CH1 0x02
4927 #define _MD2CARH_CH2 0x04
4928 #define _MD2CARH_MD2CH2 0x04
4929 #define _MD2CARH_CH3 0x08
4930 #define _MD2CARH_MD2CH3 0x08
4932 //==============================================================================
4935 //==============================================================================
4936 // INLVLA Bits
4938 extern __at(0x038C) __sfr INLVLA;
4940 typedef union
4942 struct
4944 unsigned INLVLA0 : 1;
4945 unsigned INLVLA1 : 1;
4946 unsigned INLVLA2 : 1;
4947 unsigned INLVLA3 : 1;
4948 unsigned INLVLA4 : 1;
4949 unsigned INLVLA5 : 1;
4950 unsigned : 1;
4951 unsigned : 1;
4954 struct
4956 unsigned INLVLA : 6;
4957 unsigned : 2;
4959 } __INLVLAbits_t;
4961 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
4963 #define _INLVLA0 0x01
4964 #define _INLVLA1 0x02
4965 #define _INLVLA2 0x04
4966 #define _INLVLA3 0x08
4967 #define _INLVLA4 0x10
4968 #define _INLVLA5 0x20
4970 //==============================================================================
4973 //==============================================================================
4974 // INLVLB Bits
4976 extern __at(0x038D) __sfr INLVLB;
4978 typedef struct
4980 unsigned : 1;
4981 unsigned : 1;
4982 unsigned : 1;
4983 unsigned : 1;
4984 unsigned INLVLB4 : 1;
4985 unsigned INLVLB5 : 1;
4986 unsigned INLVLB6 : 1;
4987 unsigned INLVLB7 : 1;
4988 } __INLVLBbits_t;
4990 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
4992 #define _INLVLB4 0x10
4993 #define _INLVLB5 0x20
4994 #define _INLVLB6 0x40
4995 #define _INLVLB7 0x80
4997 //==============================================================================
5000 //==============================================================================
5001 // INLVLC Bits
5003 extern __at(0x038E) __sfr INLVLC;
5005 typedef struct
5007 unsigned INLVLC0 : 1;
5008 unsigned INLVLC1 : 1;
5009 unsigned INLVLC2 : 1;
5010 unsigned INLVLC3 : 1;
5011 unsigned INLVLC4 : 1;
5012 unsigned INLVLC5 : 1;
5013 unsigned INLVLC6 : 1;
5014 unsigned INLVLC7 : 1;
5015 } __INLVLCbits_t;
5017 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
5019 #define _INLVLC0 0x01
5020 #define _INLVLC1 0x02
5021 #define _INLVLC2 0x04
5022 #define _INLVLC3 0x08
5023 #define _INLVLC4 0x10
5024 #define _INLVLC5 0x20
5025 #define _INLVLC6 0x40
5026 #define _INLVLC7 0x80
5028 //==============================================================================
5031 //==============================================================================
5032 // IOCAP Bits
5034 extern __at(0x0391) __sfr IOCAP;
5036 typedef union
5038 struct
5040 unsigned IOCAP0 : 1;
5041 unsigned IOCAP1 : 1;
5042 unsigned IOCAP2 : 1;
5043 unsigned IOCAP3 : 1;
5044 unsigned IOCAP4 : 1;
5045 unsigned IOCAP5 : 1;
5046 unsigned : 1;
5047 unsigned : 1;
5050 struct
5052 unsigned IOCAP : 6;
5053 unsigned : 2;
5055 } __IOCAPbits_t;
5057 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
5059 #define _IOCAP0 0x01
5060 #define _IOCAP1 0x02
5061 #define _IOCAP2 0x04
5062 #define _IOCAP3 0x08
5063 #define _IOCAP4 0x10
5064 #define _IOCAP5 0x20
5066 //==============================================================================
5069 //==============================================================================
5070 // IOCAN Bits
5072 extern __at(0x0392) __sfr IOCAN;
5074 typedef union
5076 struct
5078 unsigned IOCAN0 : 1;
5079 unsigned IOCAN1 : 1;
5080 unsigned IOCAN2 : 1;
5081 unsigned IOCAN3 : 1;
5082 unsigned IOCAN4 : 1;
5083 unsigned IOCAN5 : 1;
5084 unsigned : 1;
5085 unsigned : 1;
5088 struct
5090 unsigned IOCAN : 6;
5091 unsigned : 2;
5093 } __IOCANbits_t;
5095 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
5097 #define _IOCAN0 0x01
5098 #define _IOCAN1 0x02
5099 #define _IOCAN2 0x04
5100 #define _IOCAN3 0x08
5101 #define _IOCAN4 0x10
5102 #define _IOCAN5 0x20
5104 //==============================================================================
5107 //==============================================================================
5108 // IOCAF Bits
5110 extern __at(0x0393) __sfr IOCAF;
5112 typedef union
5114 struct
5116 unsigned IOCAF0 : 1;
5117 unsigned IOCAF1 : 1;
5118 unsigned IOCAF2 : 1;
5119 unsigned IOCAF3 : 1;
5120 unsigned IOCAF4 : 1;
5121 unsigned IOCAF5 : 1;
5122 unsigned : 1;
5123 unsigned : 1;
5126 struct
5128 unsigned IOCAF : 6;
5129 unsigned : 2;
5131 } __IOCAFbits_t;
5133 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
5135 #define _IOCAF0 0x01
5136 #define _IOCAF1 0x02
5137 #define _IOCAF2 0x04
5138 #define _IOCAF3 0x08
5139 #define _IOCAF4 0x10
5140 #define _IOCAF5 0x20
5142 //==============================================================================
5145 //==============================================================================
5146 // IOCBP Bits
5148 extern __at(0x0394) __sfr IOCBP;
5150 typedef struct
5152 unsigned : 1;
5153 unsigned : 1;
5154 unsigned : 1;
5155 unsigned : 1;
5156 unsigned IOCBP4 : 1;
5157 unsigned IOCBP5 : 1;
5158 unsigned IOCBP6 : 1;
5159 unsigned IOCBP7 : 1;
5160 } __IOCBPbits_t;
5162 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
5164 #define _IOCBP4 0x10
5165 #define _IOCBP5 0x20
5166 #define _IOCBP6 0x40
5167 #define _IOCBP7 0x80
5169 //==============================================================================
5172 //==============================================================================
5173 // IOCBN Bits
5175 extern __at(0x0395) __sfr IOCBN;
5177 typedef struct
5179 unsigned : 1;
5180 unsigned : 1;
5181 unsigned : 1;
5182 unsigned : 1;
5183 unsigned IOCBN4 : 1;
5184 unsigned IOCBN5 : 1;
5185 unsigned IOCBN6 : 1;
5186 unsigned IOCBN7 : 1;
5187 } __IOCBNbits_t;
5189 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
5191 #define _IOCBN4 0x10
5192 #define _IOCBN5 0x20
5193 #define _IOCBN6 0x40
5194 #define _IOCBN7 0x80
5196 //==============================================================================
5199 //==============================================================================
5200 // IOCBF Bits
5202 extern __at(0x0396) __sfr IOCBF;
5204 typedef struct
5206 unsigned : 1;
5207 unsigned : 1;
5208 unsigned : 1;
5209 unsigned : 1;
5210 unsigned IOCBF4 : 1;
5211 unsigned IOCBF5 : 1;
5212 unsigned IOCBF6 : 1;
5213 unsigned IOCBF7 : 1;
5214 } __IOCBFbits_t;
5216 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
5218 #define _IOCBF4 0x10
5219 #define _IOCBF5 0x20
5220 #define _IOCBF6 0x40
5221 #define _IOCBF7 0x80
5223 //==============================================================================
5226 //==============================================================================
5227 // IOCCP Bits
5229 extern __at(0x0397) __sfr IOCCP;
5231 typedef struct
5233 unsigned IOCCP0 : 1;
5234 unsigned IOCCP1 : 1;
5235 unsigned IOCCP2 : 1;
5236 unsigned IOCCP3 : 1;
5237 unsigned IOCCP4 : 1;
5238 unsigned IOCCP5 : 1;
5239 unsigned IOCCP6 : 1;
5240 unsigned IOCCP7 : 1;
5241 } __IOCCPbits_t;
5243 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
5245 #define _IOCCP0 0x01
5246 #define _IOCCP1 0x02
5247 #define _IOCCP2 0x04
5248 #define _IOCCP3 0x08
5249 #define _IOCCP4 0x10
5250 #define _IOCCP5 0x20
5251 #define _IOCCP6 0x40
5252 #define _IOCCP7 0x80
5254 //==============================================================================
5257 //==============================================================================
5258 // IOCCN Bits
5260 extern __at(0x0398) __sfr IOCCN;
5262 typedef struct
5264 unsigned IOCCN0 : 1;
5265 unsigned IOCCN1 : 1;
5266 unsigned IOCCN2 : 1;
5267 unsigned IOCCN3 : 1;
5268 unsigned IOCCN4 : 1;
5269 unsigned IOCCN5 : 1;
5270 unsigned IOCCN6 : 1;
5271 unsigned IOCCN7 : 1;
5272 } __IOCCNbits_t;
5274 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
5276 #define _IOCCN0 0x01
5277 #define _IOCCN1 0x02
5278 #define _IOCCN2 0x04
5279 #define _IOCCN3 0x08
5280 #define _IOCCN4 0x10
5281 #define _IOCCN5 0x20
5282 #define _IOCCN6 0x40
5283 #define _IOCCN7 0x80
5285 //==============================================================================
5288 //==============================================================================
5289 // IOCCF Bits
5291 extern __at(0x0399) __sfr IOCCF;
5293 typedef struct
5295 unsigned IOCCF0 : 1;
5296 unsigned IOCCF1 : 1;
5297 unsigned IOCCF2 : 1;
5298 unsigned IOCCF3 : 1;
5299 unsigned IOCCF4 : 1;
5300 unsigned IOCCF5 : 1;
5301 unsigned IOCCF6 : 1;
5302 unsigned IOCCF7 : 1;
5303 } __IOCCFbits_t;
5305 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
5307 #define _IOCCF0 0x01
5308 #define _IOCCF1 0x02
5309 #define _IOCCF2 0x04
5310 #define _IOCCF3 0x08
5311 #define _IOCCF4 0x10
5312 #define _IOCCF5 0x20
5313 #define _IOCCF6 0x40
5314 #define _IOCCF7 0x80
5316 //==============================================================================
5319 //==============================================================================
5320 // MD1CON0 Bits
5322 extern __at(0x039B) __sfr MD1CON0;
5324 typedef union
5326 struct
5328 unsigned BIT : 1;
5329 unsigned : 1;
5330 unsigned : 1;
5331 unsigned : 1;
5332 unsigned OPOL : 1;
5333 unsigned OUT : 1;
5334 unsigned : 1;
5335 unsigned EN : 1;
5338 struct
5340 unsigned MD1BIT : 1;
5341 unsigned : 1;
5342 unsigned : 1;
5343 unsigned : 1;
5344 unsigned MD1OPOL : 1;
5345 unsigned MD1OUT : 1;
5346 unsigned : 1;
5347 unsigned MD1EN : 1;
5349 } __MD1CON0bits_t;
5351 extern __at(0x039B) volatile __MD1CON0bits_t MD1CON0bits;
5353 #define _MD1CON0_BIT 0x01
5354 #define _MD1CON0_MD1BIT 0x01
5355 #define _MD1CON0_OPOL 0x10
5356 #define _MD1CON0_MD1OPOL 0x10
5357 #define _MD1CON0_OUT 0x20
5358 #define _MD1CON0_MD1OUT 0x20
5359 #define _MD1CON0_EN 0x80
5360 #define _MD1CON0_MD1EN 0x80
5362 //==============================================================================
5365 //==============================================================================
5366 // MD1CON1 Bits
5368 extern __at(0x039C) __sfr MD1CON1;
5370 typedef union
5372 struct
5374 unsigned CLSYNC : 1;
5375 unsigned CLPOL : 1;
5376 unsigned : 1;
5377 unsigned : 1;
5378 unsigned CHSYNC : 1;
5379 unsigned CHPOL : 1;
5380 unsigned : 1;
5381 unsigned : 1;
5384 struct
5386 unsigned MD1CLSYNC : 1;
5387 unsigned MD1CLPOL : 1;
5388 unsigned : 1;
5389 unsigned : 1;
5390 unsigned MD1CHSYNC : 1;
5391 unsigned MD1CHPOL : 1;
5392 unsigned : 1;
5393 unsigned : 1;
5395 } __MD1CON1bits_t;
5397 extern __at(0x039C) volatile __MD1CON1bits_t MD1CON1bits;
5399 #define _CLSYNC 0x01
5400 #define _MD1CLSYNC 0x01
5401 #define _CLPOL 0x02
5402 #define _MD1CLPOL 0x02
5403 #define _CHSYNC 0x10
5404 #define _MD1CHSYNC 0x10
5405 #define _CHPOL 0x20
5406 #define _MD1CHPOL 0x20
5408 //==============================================================================
5411 //==============================================================================
5412 // MD1SRC Bits
5414 extern __at(0x039D) __sfr MD1SRC;
5416 typedef union
5418 struct
5420 unsigned MS0 : 1;
5421 unsigned MS1 : 1;
5422 unsigned MS2 : 1;
5423 unsigned MS3 : 1;
5424 unsigned MS4 : 1;
5425 unsigned : 1;
5426 unsigned : 1;
5427 unsigned : 1;
5430 struct
5432 unsigned MD1MS0 : 1;
5433 unsigned MD1MS1 : 1;
5434 unsigned MD1MS2 : 1;
5435 unsigned MD1MS3 : 1;
5436 unsigned MD1MS4 : 1;
5437 unsigned : 1;
5438 unsigned : 1;
5439 unsigned : 1;
5442 struct
5444 unsigned MS : 5;
5445 unsigned : 3;
5448 struct
5450 unsigned MD1MS : 5;
5451 unsigned : 3;
5453 } __MD1SRCbits_t;
5455 extern __at(0x039D) volatile __MD1SRCbits_t MD1SRCbits;
5457 #define _MS0 0x01
5458 #define _MD1MS0 0x01
5459 #define _MS1 0x02
5460 #define _MD1MS1 0x02
5461 #define _MS2 0x04
5462 #define _MD1MS2 0x04
5463 #define _MS3 0x08
5464 #define _MD1MS3 0x08
5465 #define _MS4 0x10
5466 #define _MD1MS4 0x10
5468 //==============================================================================
5471 //==============================================================================
5472 // MD1CARL Bits
5474 extern __at(0x039E) __sfr MD1CARL;
5476 typedef union
5478 struct
5480 unsigned CL0 : 1;
5481 unsigned CL1 : 1;
5482 unsigned CL2 : 1;
5483 unsigned CL3 : 1;
5484 unsigned : 1;
5485 unsigned : 1;
5486 unsigned : 1;
5487 unsigned : 1;
5490 struct
5492 unsigned MD1CL0 : 1;
5493 unsigned MD1CL1 : 1;
5494 unsigned MD1CL2 : 1;
5495 unsigned MD1CL3 : 1;
5496 unsigned : 1;
5497 unsigned : 1;
5498 unsigned : 1;
5499 unsigned : 1;
5502 struct
5504 unsigned CL : 4;
5505 unsigned : 4;
5508 struct
5510 unsigned MD1CL : 4;
5511 unsigned : 4;
5513 } __MD1CARLbits_t;
5515 extern __at(0x039E) volatile __MD1CARLbits_t MD1CARLbits;
5517 #define _CL0 0x01
5518 #define _MD1CL0 0x01
5519 #define _CL1 0x02
5520 #define _MD1CL1 0x02
5521 #define _CL2 0x04
5522 #define _MD1CL2 0x04
5523 #define _CL3 0x08
5524 #define _MD1CL3 0x08
5526 //==============================================================================
5529 //==============================================================================
5530 // MD1CARH Bits
5532 extern __at(0x039F) __sfr MD1CARH;
5534 typedef union
5536 struct
5538 unsigned CH0 : 1;
5539 unsigned CH1 : 1;
5540 unsigned CH2 : 1;
5541 unsigned CH3 : 1;
5542 unsigned : 1;
5543 unsigned : 1;
5544 unsigned : 1;
5545 unsigned : 1;
5548 struct
5550 unsigned MD1CH0 : 1;
5551 unsigned MD1CH1 : 1;
5552 unsigned MD1CH2 : 1;
5553 unsigned MD1CH3 : 1;
5554 unsigned : 1;
5555 unsigned : 1;
5556 unsigned : 1;
5557 unsigned : 1;
5560 struct
5562 unsigned CH : 4;
5563 unsigned : 4;
5566 struct
5568 unsigned MD1CH : 4;
5569 unsigned : 4;
5571 } __MD1CARHbits_t;
5573 extern __at(0x039F) volatile __MD1CARHbits_t MD1CARHbits;
5575 #define _CH0 0x01
5576 #define _MD1CH0 0x01
5577 #define _CH1 0x02
5578 #define _MD1CH1 0x02
5579 #define _CH2 0x04
5580 #define _MD1CH2 0x04
5581 #define _CH3 0x08
5582 #define _MD1CH3 0x08
5584 //==============================================================================
5587 //==============================================================================
5588 // HIDRVC Bits
5590 extern __at(0x040E) __sfr HIDRVC;
5592 typedef struct
5594 unsigned : 1;
5595 unsigned : 1;
5596 unsigned : 1;
5597 unsigned : 1;
5598 unsigned HIDC4 : 1;
5599 unsigned HIDC5 : 1;
5600 unsigned : 1;
5601 unsigned : 1;
5602 } __HIDRVCbits_t;
5604 extern __at(0x040E) volatile __HIDRVCbits_t HIDRVCbits;
5606 #define _HIDC4 0x10
5607 #define _HIDC5 0x20
5609 //==============================================================================
5611 extern __at(0x0413) __sfr T4TMR;
5612 extern __at(0x0413) __sfr TMR4;
5613 extern __at(0x0414) __sfr PR4;
5614 extern __at(0x0414) __sfr T4PR;
5616 //==============================================================================
5617 // T4CON Bits
5619 extern __at(0x0415) __sfr T4CON;
5621 typedef union
5623 struct
5625 unsigned OUTPS0 : 1;
5626 unsigned OUTPS1 : 1;
5627 unsigned OUTPS2 : 1;
5628 unsigned OUTPS3 : 1;
5629 unsigned CKPS0 : 1;
5630 unsigned CKPS1 : 1;
5631 unsigned CKPS2 : 1;
5632 unsigned ON : 1;
5635 struct
5637 unsigned T4OUTPS0 : 1;
5638 unsigned T4OUTPS1 : 1;
5639 unsigned T4OUTPS2 : 1;
5640 unsigned T4OUTPS3 : 1;
5641 unsigned T4CKPS0 : 1;
5642 unsigned T4CKPS1 : 1;
5643 unsigned T4CKPS2 : 1;
5644 unsigned T4ON : 1;
5647 struct
5649 unsigned : 1;
5650 unsigned : 1;
5651 unsigned : 1;
5652 unsigned : 1;
5653 unsigned : 1;
5654 unsigned : 1;
5655 unsigned : 1;
5656 unsigned TMR4ON : 1;
5659 struct
5661 unsigned OUTPS : 4;
5662 unsigned : 4;
5665 struct
5667 unsigned T4OUTPS : 4;
5668 unsigned : 4;
5671 struct
5673 unsigned : 4;
5674 unsigned T4CKPS : 3;
5675 unsigned : 1;
5678 struct
5680 unsigned : 4;
5681 unsigned CKPS : 3;
5682 unsigned : 1;
5684 } __T4CONbits_t;
5686 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
5688 #define _T4CON_OUTPS0 0x01
5689 #define _T4CON_T4OUTPS0 0x01
5690 #define _T4CON_OUTPS1 0x02
5691 #define _T4CON_T4OUTPS1 0x02
5692 #define _T4CON_OUTPS2 0x04
5693 #define _T4CON_T4OUTPS2 0x04
5694 #define _T4CON_OUTPS3 0x08
5695 #define _T4CON_T4OUTPS3 0x08
5696 #define _T4CON_CKPS0 0x10
5697 #define _T4CON_T4CKPS0 0x10
5698 #define _T4CON_CKPS1 0x20
5699 #define _T4CON_T4CKPS1 0x20
5700 #define _T4CON_CKPS2 0x40
5701 #define _T4CON_T4CKPS2 0x40
5702 #define _T4CON_ON 0x80
5703 #define _T4CON_T4ON 0x80
5704 #define _T4CON_TMR4ON 0x80
5706 //==============================================================================
5709 //==============================================================================
5710 // T4HLT Bits
5712 extern __at(0x0416) __sfr T4HLT;
5714 typedef union
5716 struct
5718 unsigned MODE0 : 1;
5719 unsigned MODE1 : 1;
5720 unsigned MODE2 : 1;
5721 unsigned MODE3 : 1;
5722 unsigned MODE4 : 1;
5723 unsigned CKSYNC : 1;
5724 unsigned CKPOL : 1;
5725 unsigned PSYNC : 1;
5728 struct
5730 unsigned T4MODE0 : 1;
5731 unsigned T4MODE1 : 1;
5732 unsigned T4MODE2 : 1;
5733 unsigned T4MODE3 : 1;
5734 unsigned T4MODE4 : 1;
5735 unsigned T4CKSYNC : 1;
5736 unsigned T4CKPOL : 1;
5737 unsigned T4PSYNC : 1;
5740 struct
5742 unsigned MODE : 5;
5743 unsigned : 3;
5746 struct
5748 unsigned T4MODE : 5;
5749 unsigned : 3;
5751 } __T4HLTbits_t;
5753 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
5755 #define _T4HLT_MODE0 0x01
5756 #define _T4HLT_T4MODE0 0x01
5757 #define _T4HLT_MODE1 0x02
5758 #define _T4HLT_T4MODE1 0x02
5759 #define _T4HLT_MODE2 0x04
5760 #define _T4HLT_T4MODE2 0x04
5761 #define _T4HLT_MODE3 0x08
5762 #define _T4HLT_T4MODE3 0x08
5763 #define _T4HLT_MODE4 0x10
5764 #define _T4HLT_T4MODE4 0x10
5765 #define _T4HLT_CKSYNC 0x20
5766 #define _T4HLT_T4CKSYNC 0x20
5767 #define _T4HLT_CKPOL 0x40
5768 #define _T4HLT_T4CKPOL 0x40
5769 #define _T4HLT_PSYNC 0x80
5770 #define _T4HLT_T4PSYNC 0x80
5772 //==============================================================================
5775 //==============================================================================
5776 // T4CLKCON Bits
5778 extern __at(0x0417) __sfr T4CLKCON;
5780 typedef union
5782 struct
5784 unsigned CS0 : 1;
5785 unsigned CS1 : 1;
5786 unsigned CS2 : 1;
5787 unsigned CS3 : 1;
5788 unsigned : 1;
5789 unsigned : 1;
5790 unsigned : 1;
5791 unsigned : 1;
5794 struct
5796 unsigned T4CS0 : 1;
5797 unsigned T4CS1 : 1;
5798 unsigned T4CS2 : 1;
5799 unsigned T4CS3 : 1;
5800 unsigned : 1;
5801 unsigned : 1;
5802 unsigned : 1;
5803 unsigned : 1;
5806 struct
5808 unsigned CS : 4;
5809 unsigned : 4;
5812 struct
5814 unsigned T4CS : 4;
5815 unsigned : 4;
5817 } __T4CLKCONbits_t;
5819 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
5821 #define _T4CLKCON_CS0 0x01
5822 #define _T4CLKCON_T4CS0 0x01
5823 #define _T4CLKCON_CS1 0x02
5824 #define _T4CLKCON_T4CS1 0x02
5825 #define _T4CLKCON_CS2 0x04
5826 #define _T4CLKCON_T4CS2 0x04
5827 #define _T4CLKCON_CS3 0x08
5828 #define _T4CLKCON_T4CS3 0x08
5830 //==============================================================================
5833 //==============================================================================
5834 // T4RST Bits
5836 extern __at(0x0418) __sfr T4RST;
5838 typedef union
5840 struct
5842 unsigned RSEL0 : 1;
5843 unsigned RSEL1 : 1;
5844 unsigned RSEL2 : 1;
5845 unsigned RSEL3 : 1;
5846 unsigned : 1;
5847 unsigned : 1;
5848 unsigned : 1;
5849 unsigned : 1;
5852 struct
5854 unsigned T4RSEL0 : 1;
5855 unsigned T4RSEL1 : 1;
5856 unsigned T4RSEL2 : 1;
5857 unsigned T4RSEL3 : 1;
5858 unsigned : 1;
5859 unsigned : 1;
5860 unsigned : 1;
5861 unsigned : 1;
5864 struct
5866 unsigned RSEL : 4;
5867 unsigned : 4;
5870 struct
5872 unsigned T4RSEL : 4;
5873 unsigned : 4;
5875 } __T4RSTbits_t;
5877 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
5879 #define _T4RST_RSEL0 0x01
5880 #define _T4RST_T4RSEL0 0x01
5881 #define _T4RST_RSEL1 0x02
5882 #define _T4RST_T4RSEL1 0x02
5883 #define _T4RST_RSEL2 0x04
5884 #define _T4RST_T4RSEL2 0x04
5885 #define _T4RST_RSEL3 0x08
5886 #define _T4RST_T4RSEL3 0x08
5888 //==============================================================================
5890 extern __at(0x041A) __sfr T6TMR;
5891 extern __at(0x041A) __sfr TMR6;
5892 extern __at(0x041B) __sfr PR6;
5893 extern __at(0x041B) __sfr T6PR;
5895 //==============================================================================
5896 // T6CON Bits
5898 extern __at(0x041C) __sfr T6CON;
5900 typedef union
5902 struct
5904 unsigned OUTPS0 : 1;
5905 unsigned OUTPS1 : 1;
5906 unsigned OUTPS2 : 1;
5907 unsigned OUTPS3 : 1;
5908 unsigned CKPS0 : 1;
5909 unsigned CKPS1 : 1;
5910 unsigned CKPS2 : 1;
5911 unsigned ON : 1;
5914 struct
5916 unsigned T6OUTPS0 : 1;
5917 unsigned T6OUTPS1 : 1;
5918 unsigned T6OUTPS2 : 1;
5919 unsigned T6OUTPS3 : 1;
5920 unsigned T6CKPS0 : 1;
5921 unsigned T6CKPS1 : 1;
5922 unsigned T6CKPS2 : 1;
5923 unsigned T6ON : 1;
5926 struct
5928 unsigned : 1;
5929 unsigned : 1;
5930 unsigned : 1;
5931 unsigned : 1;
5932 unsigned : 1;
5933 unsigned : 1;
5934 unsigned : 1;
5935 unsigned TMR6ON : 1;
5938 struct
5940 unsigned OUTPS : 4;
5941 unsigned : 4;
5944 struct
5946 unsigned T6OUTPS : 4;
5947 unsigned : 4;
5950 struct
5952 unsigned : 4;
5953 unsigned CKPS : 3;
5954 unsigned : 1;
5957 struct
5959 unsigned : 4;
5960 unsigned T6CKPS : 3;
5961 unsigned : 1;
5963 } __T6CONbits_t;
5965 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
5967 #define _T6CON_OUTPS0 0x01
5968 #define _T6CON_T6OUTPS0 0x01
5969 #define _T6CON_OUTPS1 0x02
5970 #define _T6CON_T6OUTPS1 0x02
5971 #define _T6CON_OUTPS2 0x04
5972 #define _T6CON_T6OUTPS2 0x04
5973 #define _T6CON_OUTPS3 0x08
5974 #define _T6CON_T6OUTPS3 0x08
5975 #define _T6CON_CKPS0 0x10
5976 #define _T6CON_T6CKPS0 0x10
5977 #define _T6CON_CKPS1 0x20
5978 #define _T6CON_T6CKPS1 0x20
5979 #define _T6CON_CKPS2 0x40
5980 #define _T6CON_T6CKPS2 0x40
5981 #define _T6CON_ON 0x80
5982 #define _T6CON_T6ON 0x80
5983 #define _T6CON_TMR6ON 0x80
5985 //==============================================================================
5988 //==============================================================================
5989 // T6HLT Bits
5991 extern __at(0x041D) __sfr T6HLT;
5993 typedef union
5995 struct
5997 unsigned MODE0 : 1;
5998 unsigned MODE1 : 1;
5999 unsigned MODE2 : 1;
6000 unsigned MODE3 : 1;
6001 unsigned MODE4 : 1;
6002 unsigned CKSYNC : 1;
6003 unsigned CKPOL : 1;
6004 unsigned PSYNC : 1;
6007 struct
6009 unsigned T6MODE0 : 1;
6010 unsigned T6MODE1 : 1;
6011 unsigned T6MODE2 : 1;
6012 unsigned T6MODE3 : 1;
6013 unsigned T6MODE4 : 1;
6014 unsigned T6CKSYNC : 1;
6015 unsigned T6CKPOL : 1;
6016 unsigned T6PSYNC : 1;
6019 struct
6021 unsigned MODE : 5;
6022 unsigned : 3;
6025 struct
6027 unsigned T6MODE : 5;
6028 unsigned : 3;
6030 } __T6HLTbits_t;
6032 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
6034 #define _T6HLT_MODE0 0x01
6035 #define _T6HLT_T6MODE0 0x01
6036 #define _T6HLT_MODE1 0x02
6037 #define _T6HLT_T6MODE1 0x02
6038 #define _T6HLT_MODE2 0x04
6039 #define _T6HLT_T6MODE2 0x04
6040 #define _T6HLT_MODE3 0x08
6041 #define _T6HLT_T6MODE3 0x08
6042 #define _T6HLT_MODE4 0x10
6043 #define _T6HLT_T6MODE4 0x10
6044 #define _T6HLT_CKSYNC 0x20
6045 #define _T6HLT_T6CKSYNC 0x20
6046 #define _T6HLT_CKPOL 0x40
6047 #define _T6HLT_T6CKPOL 0x40
6048 #define _T6HLT_PSYNC 0x80
6049 #define _T6HLT_T6PSYNC 0x80
6051 //==============================================================================
6054 //==============================================================================
6055 // T6CLKCON Bits
6057 extern __at(0x041E) __sfr T6CLKCON;
6059 typedef union
6061 struct
6063 unsigned CS0 : 1;
6064 unsigned CS1 : 1;
6065 unsigned CS2 : 1;
6066 unsigned CS3 : 1;
6067 unsigned : 1;
6068 unsigned : 1;
6069 unsigned : 1;
6070 unsigned : 1;
6073 struct
6075 unsigned T6CS0 : 1;
6076 unsigned T6CS1 : 1;
6077 unsigned T6CS2 : 1;
6078 unsigned T6CS3 : 1;
6079 unsigned : 1;
6080 unsigned : 1;
6081 unsigned : 1;
6082 unsigned : 1;
6085 struct
6087 unsigned T6CS : 4;
6088 unsigned : 4;
6091 struct
6093 unsigned CS : 4;
6094 unsigned : 4;
6096 } __T6CLKCONbits_t;
6098 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
6100 #define _T6CLKCON_CS0 0x01
6101 #define _T6CLKCON_T6CS0 0x01
6102 #define _T6CLKCON_CS1 0x02
6103 #define _T6CLKCON_T6CS1 0x02
6104 #define _T6CLKCON_CS2 0x04
6105 #define _T6CLKCON_T6CS2 0x04
6106 #define _T6CLKCON_CS3 0x08
6107 #define _T6CLKCON_T6CS3 0x08
6109 //==============================================================================
6112 //==============================================================================
6113 // T6RST Bits
6115 extern __at(0x041F) __sfr T6RST;
6117 typedef union
6119 struct
6121 unsigned RSEL0 : 1;
6122 unsigned RSEL1 : 1;
6123 unsigned RSEL2 : 1;
6124 unsigned RSEL3 : 1;
6125 unsigned : 1;
6126 unsigned : 1;
6127 unsigned : 1;
6128 unsigned : 1;
6131 struct
6133 unsigned T6RSEL0 : 1;
6134 unsigned T6RSEL1 : 1;
6135 unsigned T6RSEL2 : 1;
6136 unsigned T6RSEL3 : 1;
6137 unsigned : 1;
6138 unsigned : 1;
6139 unsigned : 1;
6140 unsigned : 1;
6143 struct
6145 unsigned RSEL : 4;
6146 unsigned : 4;
6149 struct
6151 unsigned T6RSEL : 4;
6152 unsigned : 4;
6154 } __T6RSTbits_t;
6156 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
6158 #define _T6RST_RSEL0 0x01
6159 #define _T6RST_T6RSEL0 0x01
6160 #define _T6RST_RSEL1 0x02
6161 #define _T6RST_T6RSEL1 0x02
6162 #define _T6RST_RSEL2 0x04
6163 #define _T6RST_T6RSEL2 0x04
6164 #define _T6RST_RSEL3 0x08
6165 #define _T6RST_T6RSEL3 0x08
6167 //==============================================================================
6169 extern __at(0x0493) __sfr TMR3;
6170 extern __at(0x0493) __sfr TMR3L;
6171 extern __at(0x0494) __sfr TMR3H;
6173 //==============================================================================
6174 // T3CON Bits
6176 extern __at(0x0495) __sfr T3CON;
6178 typedef union
6180 struct
6182 unsigned ON : 1;
6183 unsigned : 1;
6184 unsigned NOT_SYNC : 1;
6185 unsigned : 1;
6186 unsigned CKPS0 : 1;
6187 unsigned CKPS1 : 1;
6188 unsigned CS0 : 1;
6189 unsigned CS1 : 1;
6192 struct
6194 unsigned TMRON : 1;
6195 unsigned : 1;
6196 unsigned SYNC : 1;
6197 unsigned : 1;
6198 unsigned T3CKPS0 : 1;
6199 unsigned T3CKPS1 : 1;
6200 unsigned T3CS0 : 1;
6201 unsigned T3CS1 : 1;
6204 struct
6206 unsigned TMR3ON : 1;
6207 unsigned : 1;
6208 unsigned NOT_T3SYNC : 1;
6209 unsigned : 1;
6210 unsigned : 1;
6211 unsigned : 1;
6212 unsigned TMR3CS0 : 1;
6213 unsigned TMR3CS1 : 1;
6216 struct
6218 unsigned T3ON : 1;
6219 unsigned : 1;
6220 unsigned : 1;
6221 unsigned : 1;
6222 unsigned : 1;
6223 unsigned : 1;
6224 unsigned : 1;
6225 unsigned : 1;
6228 struct
6230 unsigned : 4;
6231 unsigned CKPS : 2;
6232 unsigned : 2;
6235 struct
6237 unsigned : 4;
6238 unsigned T3CKPS : 2;
6239 unsigned : 2;
6242 struct
6244 unsigned : 6;
6245 unsigned TMR3CS : 2;
6248 struct
6250 unsigned : 6;
6251 unsigned CS : 2;
6254 struct
6256 unsigned : 6;
6257 unsigned T3CS : 2;
6259 } __T3CONbits_t;
6261 extern __at(0x0495) volatile __T3CONbits_t T3CONbits;
6263 #define _T3CON_ON 0x01
6264 #define _T3CON_TMRON 0x01
6265 #define _T3CON_TMR3ON 0x01
6266 #define _T3CON_T3ON 0x01
6267 #define _T3CON_NOT_SYNC 0x04
6268 #define _T3CON_SYNC 0x04
6269 #define _T3CON_NOT_T3SYNC 0x04
6270 #define _T3CON_CKPS0 0x10
6271 #define _T3CON_T3CKPS0 0x10
6272 #define _T3CON_CKPS1 0x20
6273 #define _T3CON_T3CKPS1 0x20
6274 #define _T3CON_CS0 0x40
6275 #define _T3CON_T3CS0 0x40
6276 #define _T3CON_TMR3CS0 0x40
6277 #define _T3CON_CS1 0x80
6278 #define _T3CON_T3CS1 0x80
6279 #define _T3CON_TMR3CS1 0x80
6281 //==============================================================================
6284 //==============================================================================
6285 // T3GCON Bits
6287 extern __at(0x0496) __sfr T3GCON;
6289 typedef union
6291 struct
6293 unsigned GSS0 : 1;
6294 unsigned GSS1 : 1;
6295 unsigned GVAL : 1;
6296 unsigned GGO_NOT_DONE : 1;
6297 unsigned GSPM : 1;
6298 unsigned GTM : 1;
6299 unsigned GPOL : 1;
6300 unsigned GE : 1;
6303 struct
6305 unsigned T3GSS0 : 1;
6306 unsigned T3GSS1 : 1;
6307 unsigned T3GVAL : 1;
6308 unsigned T3GGO_NOT_DONE : 1;
6309 unsigned T3GSPM : 1;
6310 unsigned T3GTM : 1;
6311 unsigned T3GPOL : 1;
6312 unsigned T3GE : 1;
6315 struct
6317 unsigned : 1;
6318 unsigned : 1;
6319 unsigned : 1;
6320 unsigned : 1;
6321 unsigned : 1;
6322 unsigned : 1;
6323 unsigned : 1;
6324 unsigned TMR3GE : 1;
6327 struct
6329 unsigned GSS : 2;
6330 unsigned : 6;
6333 struct
6335 unsigned T3GSS : 2;
6336 unsigned : 6;
6338 } __T3GCONbits_t;
6340 extern __at(0x0496) volatile __T3GCONbits_t T3GCONbits;
6342 #define _T3GCON_GSS0 0x01
6343 #define _T3GCON_T3GSS0 0x01
6344 #define _T3GCON_GSS1 0x02
6345 #define _T3GCON_T3GSS1 0x02
6346 #define _T3GCON_GVAL 0x04
6347 #define _T3GCON_T3GVAL 0x04
6348 #define _T3GCON_GGO_NOT_DONE 0x08
6349 #define _T3GCON_T3GGO_NOT_DONE 0x08
6350 #define _T3GCON_GSPM 0x10
6351 #define _T3GCON_T3GSPM 0x10
6352 #define _T3GCON_GTM 0x20
6353 #define _T3GCON_T3GTM 0x20
6354 #define _T3GCON_GPOL 0x40
6355 #define _T3GCON_T3GPOL 0x40
6356 #define _T3GCON_GE 0x80
6357 #define _T3GCON_T3GE 0x80
6358 #define _T3GCON_TMR3GE 0x80
6360 //==============================================================================
6362 extern __at(0x049A) __sfr TMR5;
6363 extern __at(0x049A) __sfr TMR5L;
6364 extern __at(0x049B) __sfr TMR5H;
6366 //==============================================================================
6367 // T5CON Bits
6369 extern __at(0x049C) __sfr T5CON;
6371 typedef union
6373 struct
6375 unsigned ON : 1;
6376 unsigned : 1;
6377 unsigned NOT_SYNC : 1;
6378 unsigned : 1;
6379 unsigned CKPS0 : 1;
6380 unsigned CKPS1 : 1;
6381 unsigned CS0 : 1;
6382 unsigned CS1 : 1;
6385 struct
6387 unsigned TMRON : 1;
6388 unsigned : 1;
6389 unsigned SYNC : 1;
6390 unsigned : 1;
6391 unsigned T5CKPS0 : 1;
6392 unsigned T5CKPS1 : 1;
6393 unsigned T5CS0 : 1;
6394 unsigned T5CS1 : 1;
6397 struct
6399 unsigned TMR5ON : 1;
6400 unsigned : 1;
6401 unsigned NOT_T5SYNC : 1;
6402 unsigned : 1;
6403 unsigned : 1;
6404 unsigned : 1;
6405 unsigned TMR5CS0 : 1;
6406 unsigned TMR5CS1 : 1;
6409 struct
6411 unsigned T5ON : 1;
6412 unsigned : 1;
6413 unsigned : 1;
6414 unsigned : 1;
6415 unsigned : 1;
6416 unsigned : 1;
6417 unsigned : 1;
6418 unsigned : 1;
6421 struct
6423 unsigned : 4;
6424 unsigned T5CKPS : 2;
6425 unsigned : 2;
6428 struct
6430 unsigned : 4;
6431 unsigned CKPS : 2;
6432 unsigned : 2;
6435 struct
6437 unsigned : 6;
6438 unsigned CS : 2;
6441 struct
6443 unsigned : 6;
6444 unsigned TMR5CS : 2;
6447 struct
6449 unsigned : 6;
6450 unsigned T5CS : 2;
6452 } __T5CONbits_t;
6454 extern __at(0x049C) volatile __T5CONbits_t T5CONbits;
6456 #define _T5CON_ON 0x01
6457 #define _T5CON_TMRON 0x01
6458 #define _T5CON_TMR5ON 0x01
6459 #define _T5CON_T5ON 0x01
6460 #define _T5CON_NOT_SYNC 0x04
6461 #define _T5CON_SYNC 0x04
6462 #define _T5CON_NOT_T5SYNC 0x04
6463 #define _T5CON_CKPS0 0x10
6464 #define _T5CON_T5CKPS0 0x10
6465 #define _T5CON_CKPS1 0x20
6466 #define _T5CON_T5CKPS1 0x20
6467 #define _T5CON_CS0 0x40
6468 #define _T5CON_T5CS0 0x40
6469 #define _T5CON_TMR5CS0 0x40
6470 #define _T5CON_CS1 0x80
6471 #define _T5CON_T5CS1 0x80
6472 #define _T5CON_TMR5CS1 0x80
6474 //==============================================================================
6477 //==============================================================================
6478 // T5GCON Bits
6480 extern __at(0x049D) __sfr T5GCON;
6482 typedef union
6484 struct
6486 unsigned GSS0 : 1;
6487 unsigned GSS1 : 1;
6488 unsigned GVAL : 1;
6489 unsigned GGO_NOT_DONE : 1;
6490 unsigned GSPM : 1;
6491 unsigned GTM : 1;
6492 unsigned GPOL : 1;
6493 unsigned GE : 1;
6496 struct
6498 unsigned T5GSS0 : 1;
6499 unsigned T5GSS1 : 1;
6500 unsigned T5GVAL : 1;
6501 unsigned T5GGO_NOT_DONE : 1;
6502 unsigned T5GSPM : 1;
6503 unsigned T5GTM : 1;
6504 unsigned T5GPOL : 1;
6505 unsigned T5GE : 1;
6508 struct
6510 unsigned : 1;
6511 unsigned : 1;
6512 unsigned : 1;
6513 unsigned : 1;
6514 unsigned : 1;
6515 unsigned : 1;
6516 unsigned : 1;
6517 unsigned TMR5GE : 1;
6520 struct
6522 unsigned GSS : 2;
6523 unsigned : 6;
6526 struct
6528 unsigned T5GSS : 2;
6529 unsigned : 6;
6531 } __T5GCONbits_t;
6533 extern __at(0x049D) volatile __T5GCONbits_t T5GCONbits;
6535 #define _T5GCON_GSS0 0x01
6536 #define _T5GCON_T5GSS0 0x01
6537 #define _T5GCON_GSS1 0x02
6538 #define _T5GCON_T5GSS1 0x02
6539 #define _T5GCON_GVAL 0x04
6540 #define _T5GCON_T5GVAL 0x04
6541 #define _T5GCON_GGO_NOT_DONE 0x08
6542 #define _T5GCON_T5GGO_NOT_DONE 0x08
6543 #define _T5GCON_GSPM 0x10
6544 #define _T5GCON_T5GSPM 0x10
6545 #define _T5GCON_GTM 0x20
6546 #define _T5GCON_T5GTM 0x20
6547 #define _T5GCON_GPOL 0x40
6548 #define _T5GCON_T5GPOL 0x40
6549 #define _T5GCON_GE 0x80
6550 #define _T5GCON_T5GE 0x80
6551 #define _T5GCON_TMR5GE 0x80
6553 //==============================================================================
6555 extern __at(0x050F) __sfr OPA1NCHS;
6556 extern __at(0x0510) __sfr OPA1PCHS;
6558 //==============================================================================
6559 // OPA1CON Bits
6561 extern __at(0x0511) __sfr OPA1CON;
6563 typedef union
6565 struct
6567 unsigned ORM0 : 1;
6568 unsigned ORM1 : 1;
6569 unsigned ORPOL : 1;
6570 unsigned : 1;
6571 unsigned UG : 1;
6572 unsigned : 1;
6573 unsigned : 1;
6574 unsigned EN : 1;
6577 struct
6579 unsigned OPA1ORM0 : 1;
6580 unsigned OPA1ORM1 : 1;
6581 unsigned OPA1ORPOL : 1;
6582 unsigned : 1;
6583 unsigned OPA1UG : 1;
6584 unsigned : 1;
6585 unsigned : 1;
6586 unsigned OPA1EN : 1;
6589 struct
6591 unsigned ORM : 2;
6592 unsigned : 6;
6595 struct
6597 unsigned OPA1ORM : 2;
6598 unsigned : 6;
6600 } __OPA1CONbits_t;
6602 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
6604 #define _OPA1CON_ORM0 0x01
6605 #define _OPA1CON_OPA1ORM0 0x01
6606 #define _OPA1CON_ORM1 0x02
6607 #define _OPA1CON_OPA1ORM1 0x02
6608 #define _OPA1CON_ORPOL 0x04
6609 #define _OPA1CON_OPA1ORPOL 0x04
6610 #define _OPA1CON_UG 0x10
6611 #define _OPA1CON_OPA1UG 0x10
6612 #define _OPA1CON_EN 0x80
6613 #define _OPA1CON_OPA1EN 0x80
6615 //==============================================================================
6617 extern __at(0x0512) __sfr OPA1ORS;
6618 extern __at(0x0513) __sfr OPA2NCHS;
6619 extern __at(0x0514) __sfr OPA2PCHS;
6621 //==============================================================================
6622 // OPA2CON Bits
6624 extern __at(0x0515) __sfr OPA2CON;
6626 typedef union
6628 struct
6630 unsigned ORM0 : 1;
6631 unsigned ORM1 : 1;
6632 unsigned ORPOL : 1;
6633 unsigned : 1;
6634 unsigned UG : 1;
6635 unsigned : 1;
6636 unsigned : 1;
6637 unsigned EN : 1;
6640 struct
6642 unsigned OPA2ORM0 : 1;
6643 unsigned OPA2ORM1 : 1;
6644 unsigned OPA2ORPOL : 1;
6645 unsigned : 1;
6646 unsigned OPA2UG : 1;
6647 unsigned : 1;
6648 unsigned : 1;
6649 unsigned OPA2EN : 1;
6652 struct
6654 unsigned OPA2ORM : 2;
6655 unsigned : 6;
6658 struct
6660 unsigned ORM : 2;
6661 unsigned : 6;
6663 } __OPA2CONbits_t;
6665 extern __at(0x0515) volatile __OPA2CONbits_t OPA2CONbits;
6667 #define _OPA2CON_ORM0 0x01
6668 #define _OPA2CON_OPA2ORM0 0x01
6669 #define _OPA2CON_ORM1 0x02
6670 #define _OPA2CON_OPA2ORM1 0x02
6671 #define _OPA2CON_ORPOL 0x04
6672 #define _OPA2CON_OPA2ORPOL 0x04
6673 #define _OPA2CON_UG 0x10
6674 #define _OPA2CON_OPA2UG 0x10
6675 #define _OPA2CON_EN 0x80
6676 #define _OPA2CON_OPA2EN 0x80
6678 //==============================================================================
6680 extern __at(0x0516) __sfr OPA2ORS;
6682 //==============================================================================
6683 // DACLD Bits
6685 extern __at(0x0590) __sfr DACLD;
6687 typedef struct
6689 unsigned DAC1LD : 1;
6690 unsigned DAC2LD : 1;
6691 unsigned : 1;
6692 unsigned : 1;
6693 unsigned : 1;
6694 unsigned : 1;
6695 unsigned : 1;
6696 unsigned : 1;
6697 } __DACLDbits_t;
6699 extern __at(0x0590) volatile __DACLDbits_t DACLDbits;
6701 #define _DAC1LD 0x01
6702 #define _DAC2LD 0x02
6704 //==============================================================================
6707 //==============================================================================
6708 // DAC1CON0 Bits
6710 extern __at(0x0591) __sfr DAC1CON0;
6712 typedef union
6714 struct
6716 unsigned NSS0 : 1;
6717 unsigned : 1;
6718 unsigned PSS0 : 1;
6719 unsigned PSS1 : 1;
6720 unsigned : 1;
6721 unsigned OE1 : 1;
6722 unsigned FM : 1;
6723 unsigned EN : 1;
6726 struct
6728 unsigned DACNSS0 : 1;
6729 unsigned : 1;
6730 unsigned DACPSS0 : 1;
6731 unsigned DACPSS1 : 1;
6732 unsigned : 1;
6733 unsigned OE : 1;
6734 unsigned DACFM : 1;
6735 unsigned DACEN : 1;
6738 struct
6740 unsigned DAC1NSS0 : 1;
6741 unsigned : 1;
6742 unsigned DAC1PSS0 : 1;
6743 unsigned DAC1PSS1 : 1;
6744 unsigned : 1;
6745 unsigned DACOE1 : 1;
6746 unsigned DAC1FM : 1;
6747 unsigned DAC1EN : 1;
6750 struct
6752 unsigned : 1;
6753 unsigned : 1;
6754 unsigned : 1;
6755 unsigned : 1;
6756 unsigned : 1;
6757 unsigned DACOE : 1;
6758 unsigned : 1;
6759 unsigned : 1;
6762 struct
6764 unsigned : 1;
6765 unsigned : 1;
6766 unsigned : 1;
6767 unsigned : 1;
6768 unsigned : 1;
6769 unsigned DAC1OE1 : 1;
6770 unsigned : 1;
6771 unsigned : 1;
6774 struct
6776 unsigned : 2;
6777 unsigned DAC1PSS : 2;
6778 unsigned : 4;
6781 struct
6783 unsigned : 2;
6784 unsigned PSS : 2;
6785 unsigned : 4;
6788 struct
6790 unsigned : 2;
6791 unsigned DACPSS : 2;
6792 unsigned : 4;
6794 } __DAC1CON0bits_t;
6796 extern __at(0x0591) volatile __DAC1CON0bits_t DAC1CON0bits;
6798 #define _DAC1CON0_NSS0 0x01
6799 #define _DAC1CON0_DACNSS0 0x01
6800 #define _DAC1CON0_DAC1NSS0 0x01
6801 #define _DAC1CON0_PSS0 0x04
6802 #define _DAC1CON0_DACPSS0 0x04
6803 #define _DAC1CON0_DAC1PSS0 0x04
6804 #define _DAC1CON0_PSS1 0x08
6805 #define _DAC1CON0_DACPSS1 0x08
6806 #define _DAC1CON0_DAC1PSS1 0x08
6807 #define _DAC1CON0_OE1 0x20
6808 #define _DAC1CON0_OE 0x20
6809 #define _DAC1CON0_DACOE1 0x20
6810 #define _DAC1CON0_DACOE 0x20
6811 #define _DAC1CON0_DAC1OE1 0x20
6812 #define _DAC1CON0_FM 0x40
6813 #define _DAC1CON0_DACFM 0x40
6814 #define _DAC1CON0_DAC1FM 0x40
6815 #define _DAC1CON0_EN 0x80
6816 #define _DAC1CON0_DACEN 0x80
6817 #define _DAC1CON0_DAC1EN 0x80
6819 //==============================================================================
6822 //==============================================================================
6823 // DAC1CON1 Bits
6825 extern __at(0x0592) __sfr DAC1CON1;
6827 typedef union
6829 struct
6831 unsigned REF0 : 1;
6832 unsigned REF1 : 1;
6833 unsigned REF2 : 1;
6834 unsigned REF3 : 1;
6835 unsigned REF4 : 1;
6836 unsigned REF5 : 1;
6837 unsigned REF6 : 1;
6838 unsigned REF7 : 1;
6841 struct
6843 unsigned DAC1REF0 : 1;
6844 unsigned DAC1REF1 : 1;
6845 unsigned DAC1REF2 : 1;
6846 unsigned DAC1REF3 : 1;
6847 unsigned DAC1REF4 : 1;
6848 unsigned DAC1REF5 : 1;
6849 unsigned DAC1REF6 : 1;
6850 unsigned DAC1REF7 : 1;
6853 struct
6855 unsigned R0 : 1;
6856 unsigned R1 : 1;
6857 unsigned R2 : 1;
6858 unsigned R3 : 1;
6859 unsigned R4 : 1;
6860 unsigned R5 : 1;
6861 unsigned R6 : 1;
6862 unsigned R7 : 1;
6865 struct
6867 unsigned DAC1R0 : 1;
6868 unsigned DAC1R1 : 1;
6869 unsigned DAC1R2 : 1;
6870 unsigned DAC1R3 : 1;
6871 unsigned DAC1R4 : 1;
6872 unsigned DAC1R5 : 1;
6873 unsigned DAC1R6 : 1;
6874 unsigned DAC1R7 : 1;
6876 } __DAC1CON1bits_t;
6878 extern __at(0x0592) volatile __DAC1CON1bits_t DAC1CON1bits;
6880 #define _REF0 0x01
6881 #define _DAC1REF0 0x01
6882 #define _R0 0x01
6883 #define _DAC1R0 0x01
6884 #define _REF1 0x02
6885 #define _DAC1REF1 0x02
6886 #define _R1 0x02
6887 #define _DAC1R1 0x02
6888 #define _REF2 0x04
6889 #define _DAC1REF2 0x04
6890 #define _R2 0x04
6891 #define _DAC1R2 0x04
6892 #define _REF3 0x08
6893 #define _DAC1REF3 0x08
6894 #define _R3 0x08
6895 #define _DAC1R3 0x08
6896 #define _REF4 0x10
6897 #define _DAC1REF4 0x10
6898 #define _R4 0x10
6899 #define _DAC1R4 0x10
6900 #define _REF5 0x20
6901 #define _DAC1REF5 0x20
6902 #define _R5 0x20
6903 #define _DAC1R5 0x20
6904 #define _REF6 0x40
6905 #define _DAC1REF6 0x40
6906 #define _R6 0x40
6907 #define _DAC1R6 0x40
6908 #define _REF7 0x80
6909 #define _DAC1REF7 0x80
6910 #define _R7 0x80
6911 #define _DAC1R7 0x80
6913 //==============================================================================
6915 extern __at(0x0592) __sfr DAC1REF;
6917 //==============================================================================
6918 // DAC1REFL Bits
6920 extern __at(0x0592) __sfr DAC1REFL;
6922 typedef union
6924 struct
6926 unsigned REF0 : 1;
6927 unsigned REF1 : 1;
6928 unsigned REF2 : 1;
6929 unsigned REF3 : 1;
6930 unsigned REF4 : 1;
6931 unsigned REF5 : 1;
6932 unsigned REF6 : 1;
6933 unsigned REF7 : 1;
6936 struct
6938 unsigned DAC1REF0 : 1;
6939 unsigned DAC1REF1 : 1;
6940 unsigned DAC1REF2 : 1;
6941 unsigned DAC1REF3 : 1;
6942 unsigned DAC1REF4 : 1;
6943 unsigned DAC1REF5 : 1;
6944 unsigned DAC1REF6 : 1;
6945 unsigned DAC1REF7 : 1;
6948 struct
6950 unsigned R0 : 1;
6951 unsigned R1 : 1;
6952 unsigned R2 : 1;
6953 unsigned R3 : 1;
6954 unsigned R4 : 1;
6955 unsigned R5 : 1;
6956 unsigned R6 : 1;
6957 unsigned R7 : 1;
6960 struct
6962 unsigned DAC1R0 : 1;
6963 unsigned DAC1R1 : 1;
6964 unsigned DAC1R2 : 1;
6965 unsigned DAC1R3 : 1;
6966 unsigned DAC1R4 : 1;
6967 unsigned DAC1R5 : 1;
6968 unsigned DAC1R6 : 1;
6969 unsigned DAC1R7 : 1;
6971 } __DAC1REFLbits_t;
6973 extern __at(0x0592) volatile __DAC1REFLbits_t DAC1REFLbits;
6975 #define _DAC1REFL_REF0 0x01
6976 #define _DAC1REFL_DAC1REF0 0x01
6977 #define _DAC1REFL_R0 0x01
6978 #define _DAC1REFL_DAC1R0 0x01
6979 #define _DAC1REFL_REF1 0x02
6980 #define _DAC1REFL_DAC1REF1 0x02
6981 #define _DAC1REFL_R1 0x02
6982 #define _DAC1REFL_DAC1R1 0x02
6983 #define _DAC1REFL_REF2 0x04
6984 #define _DAC1REFL_DAC1REF2 0x04
6985 #define _DAC1REFL_R2 0x04
6986 #define _DAC1REFL_DAC1R2 0x04
6987 #define _DAC1REFL_REF3 0x08
6988 #define _DAC1REFL_DAC1REF3 0x08
6989 #define _DAC1REFL_R3 0x08
6990 #define _DAC1REFL_DAC1R3 0x08
6991 #define _DAC1REFL_REF4 0x10
6992 #define _DAC1REFL_DAC1REF4 0x10
6993 #define _DAC1REFL_R4 0x10
6994 #define _DAC1REFL_DAC1R4 0x10
6995 #define _DAC1REFL_REF5 0x20
6996 #define _DAC1REFL_DAC1REF5 0x20
6997 #define _DAC1REFL_R5 0x20
6998 #define _DAC1REFL_DAC1R5 0x20
6999 #define _DAC1REFL_REF6 0x40
7000 #define _DAC1REFL_DAC1REF6 0x40
7001 #define _DAC1REFL_R6 0x40
7002 #define _DAC1REFL_DAC1R6 0x40
7003 #define _DAC1REFL_REF7 0x80
7004 #define _DAC1REFL_DAC1REF7 0x80
7005 #define _DAC1REFL_R7 0x80
7006 #define _DAC1REFL_DAC1R7 0x80
7008 //==============================================================================
7011 //==============================================================================
7012 // DAC1CON2 Bits
7014 extern __at(0x0593) __sfr DAC1CON2;
7016 typedef union
7018 struct
7020 unsigned REF8 : 1;
7021 unsigned REF9 : 1;
7022 unsigned REF10 : 1;
7023 unsigned REF11 : 1;
7024 unsigned REF12 : 1;
7025 unsigned REF13 : 1;
7026 unsigned REF14 : 1;
7027 unsigned REF15 : 1;
7030 struct
7032 unsigned DAC1REF8 : 1;
7033 unsigned DAC1REF9 : 1;
7034 unsigned DAC1REF10 : 1;
7035 unsigned DAC1REF11 : 1;
7036 unsigned DAC1REF12 : 1;
7037 unsigned DAC1REF13 : 1;
7038 unsigned DAC1REF14 : 1;
7039 unsigned DAC1REF15 : 1;
7042 struct
7044 unsigned R8 : 1;
7045 unsigned R9 : 1;
7046 unsigned R10 : 1;
7047 unsigned R11 : 1;
7048 unsigned R12 : 1;
7049 unsigned R13 : 1;
7050 unsigned R14 : 1;
7051 unsigned R15 : 1;
7054 struct
7056 unsigned DAC1R8 : 1;
7057 unsigned DAC1R9 : 1;
7058 unsigned DAC1R10 : 1;
7059 unsigned DAC1R11 : 1;
7060 unsigned DAC1R12 : 1;
7061 unsigned DAC1R13 : 1;
7062 unsigned DAC1R14 : 1;
7063 unsigned DAC1R15 : 1;
7065 } __DAC1CON2bits_t;
7067 extern __at(0x0593) volatile __DAC1CON2bits_t DAC1CON2bits;
7069 #define _REF8 0x01
7070 #define _DAC1REF8 0x01
7071 #define _R8 0x01
7072 #define _DAC1R8 0x01
7073 #define _REF9 0x02
7074 #define _DAC1REF9 0x02
7075 #define _R9 0x02
7076 #define _DAC1R9 0x02
7077 #define _REF10 0x04
7078 #define _DAC1REF10 0x04
7079 #define _R10 0x04
7080 #define _DAC1R10 0x04
7081 #define _REF11 0x08
7082 #define _DAC1REF11 0x08
7083 #define _R11 0x08
7084 #define _DAC1R11 0x08
7085 #define _REF12 0x10
7086 #define _DAC1REF12 0x10
7087 #define _R12 0x10
7088 #define _DAC1R12 0x10
7089 #define _REF13 0x20
7090 #define _DAC1REF13 0x20
7091 #define _R13 0x20
7092 #define _DAC1R13 0x20
7093 #define _REF14 0x40
7094 #define _DAC1REF14 0x40
7095 #define _R14 0x40
7096 #define _DAC1R14 0x40
7097 #define _REF15 0x80
7098 #define _DAC1REF15 0x80
7099 #define _R15 0x80
7100 #define _DAC1R15 0x80
7102 //==============================================================================
7105 //==============================================================================
7106 // DAC1REFH Bits
7108 extern __at(0x0593) __sfr DAC1REFH;
7110 typedef union
7112 struct
7114 unsigned REF8 : 1;
7115 unsigned REF9 : 1;
7116 unsigned REF10 : 1;
7117 unsigned REF11 : 1;
7118 unsigned REF12 : 1;
7119 unsigned REF13 : 1;
7120 unsigned REF14 : 1;
7121 unsigned REF15 : 1;
7124 struct
7126 unsigned DAC1REF8 : 1;
7127 unsigned DAC1REF9 : 1;
7128 unsigned DAC1REF10 : 1;
7129 unsigned DAC1REF11 : 1;
7130 unsigned DAC1REF12 : 1;
7131 unsigned DAC1REF13 : 1;
7132 unsigned DAC1REF14 : 1;
7133 unsigned DAC1REF15 : 1;
7136 struct
7138 unsigned R8 : 1;
7139 unsigned R9 : 1;
7140 unsigned R10 : 1;
7141 unsigned R11 : 1;
7142 unsigned R12 : 1;
7143 unsigned R13 : 1;
7144 unsigned R14 : 1;
7145 unsigned R15 : 1;
7148 struct
7150 unsigned DAC1R8 : 1;
7151 unsigned DAC1R9 : 1;
7152 unsigned DAC1R10 : 1;
7153 unsigned DAC1R11 : 1;
7154 unsigned DAC1R12 : 1;
7155 unsigned DAC1R13 : 1;
7156 unsigned DAC1R14 : 1;
7157 unsigned DAC1R15 : 1;
7159 } __DAC1REFHbits_t;
7161 extern __at(0x0593) volatile __DAC1REFHbits_t DAC1REFHbits;
7163 #define _DAC1REFH_REF8 0x01
7164 #define _DAC1REFH_DAC1REF8 0x01
7165 #define _DAC1REFH_R8 0x01
7166 #define _DAC1REFH_DAC1R8 0x01
7167 #define _DAC1REFH_REF9 0x02
7168 #define _DAC1REFH_DAC1REF9 0x02
7169 #define _DAC1REFH_R9 0x02
7170 #define _DAC1REFH_DAC1R9 0x02
7171 #define _DAC1REFH_REF10 0x04
7172 #define _DAC1REFH_DAC1REF10 0x04
7173 #define _DAC1REFH_R10 0x04
7174 #define _DAC1REFH_DAC1R10 0x04
7175 #define _DAC1REFH_REF11 0x08
7176 #define _DAC1REFH_DAC1REF11 0x08
7177 #define _DAC1REFH_R11 0x08
7178 #define _DAC1REFH_DAC1R11 0x08
7179 #define _DAC1REFH_REF12 0x10
7180 #define _DAC1REFH_DAC1REF12 0x10
7181 #define _DAC1REFH_R12 0x10
7182 #define _DAC1REFH_DAC1R12 0x10
7183 #define _DAC1REFH_REF13 0x20
7184 #define _DAC1REFH_DAC1REF13 0x20
7185 #define _DAC1REFH_R13 0x20
7186 #define _DAC1REFH_DAC1R13 0x20
7187 #define _DAC1REFH_REF14 0x40
7188 #define _DAC1REFH_DAC1REF14 0x40
7189 #define _DAC1REFH_R14 0x40
7190 #define _DAC1REFH_DAC1R14 0x40
7191 #define _DAC1REFH_REF15 0x80
7192 #define _DAC1REFH_DAC1REF15 0x80
7193 #define _DAC1REFH_R15 0x80
7194 #define _DAC1REFH_DAC1R15 0x80
7196 //==============================================================================
7199 //==============================================================================
7200 // DAC2CON0 Bits
7202 extern __at(0x0594) __sfr DAC2CON0;
7204 typedef union
7206 struct
7208 unsigned NSS0 : 1;
7209 unsigned : 1;
7210 unsigned PSS0 : 1;
7211 unsigned PSS1 : 1;
7212 unsigned : 1;
7213 unsigned OE1 : 1;
7214 unsigned FM : 1;
7215 unsigned EN : 1;
7218 struct
7220 unsigned DACNSS0 : 1;
7221 unsigned : 1;
7222 unsigned DACPSS0 : 1;
7223 unsigned DACPSS1 : 1;
7224 unsigned : 1;
7225 unsigned OE : 1;
7226 unsigned DACFM : 1;
7227 unsigned DACEN : 1;
7230 struct
7232 unsigned DAC2NSS0 : 1;
7233 unsigned : 1;
7234 unsigned DAC2PSS0 : 1;
7235 unsigned DAC2PSS1 : 1;
7236 unsigned : 1;
7237 unsigned DACOE1 : 1;
7238 unsigned DAC2FM : 1;
7239 unsigned DAC2EN : 1;
7242 struct
7244 unsigned : 1;
7245 unsigned : 1;
7246 unsigned : 1;
7247 unsigned : 1;
7248 unsigned : 1;
7249 unsigned DACOE : 1;
7250 unsigned : 1;
7251 unsigned : 1;
7254 struct
7256 unsigned : 1;
7257 unsigned : 1;
7258 unsigned : 1;
7259 unsigned : 1;
7260 unsigned : 1;
7261 unsigned DAC2OE1 : 1;
7262 unsigned : 1;
7263 unsigned : 1;
7266 struct
7268 unsigned : 2;
7269 unsigned DACPSS : 2;
7270 unsigned : 4;
7273 struct
7275 unsigned : 2;
7276 unsigned PSS : 2;
7277 unsigned : 4;
7280 struct
7282 unsigned : 2;
7283 unsigned DAC2PSS : 2;
7284 unsigned : 4;
7286 } __DAC2CON0bits_t;
7288 extern __at(0x0594) volatile __DAC2CON0bits_t DAC2CON0bits;
7290 #define _DAC2CON0_NSS0 0x01
7291 #define _DAC2CON0_DACNSS0 0x01
7292 #define _DAC2CON0_DAC2NSS0 0x01
7293 #define _DAC2CON0_PSS0 0x04
7294 #define _DAC2CON0_DACPSS0 0x04
7295 #define _DAC2CON0_DAC2PSS0 0x04
7296 #define _DAC2CON0_PSS1 0x08
7297 #define _DAC2CON0_DACPSS1 0x08
7298 #define _DAC2CON0_DAC2PSS1 0x08
7299 #define _DAC2CON0_OE1 0x20
7300 #define _DAC2CON0_OE 0x20
7301 #define _DAC2CON0_DACOE1 0x20
7302 #define _DAC2CON0_DACOE 0x20
7303 #define _DAC2CON0_DAC2OE1 0x20
7304 #define _DAC2CON0_FM 0x40
7305 #define _DAC2CON0_DACFM 0x40
7306 #define _DAC2CON0_DAC2FM 0x40
7307 #define _DAC2CON0_EN 0x80
7308 #define _DAC2CON0_DACEN 0x80
7309 #define _DAC2CON0_DAC2EN 0x80
7311 //==============================================================================
7314 //==============================================================================
7315 // DAC2CON1 Bits
7317 extern __at(0x0595) __sfr DAC2CON1;
7319 typedef union
7321 struct
7323 unsigned REF0 : 1;
7324 unsigned REF1 : 1;
7325 unsigned REF2 : 1;
7326 unsigned REF3 : 1;
7327 unsigned REF4 : 1;
7328 unsigned REF5 : 1;
7329 unsigned REF6 : 1;
7330 unsigned REF7 : 1;
7333 struct
7335 unsigned DAC2REF0 : 1;
7336 unsigned DAC2REF1 : 1;
7337 unsigned DAC2REF2 : 1;
7338 unsigned DAC2REF3 : 1;
7339 unsigned DAC2REF4 : 1;
7340 unsigned DAC2REF5 : 1;
7341 unsigned DAC2REF6 : 1;
7342 unsigned DAC2REF7 : 1;
7345 struct
7347 unsigned R0 : 1;
7348 unsigned R1 : 1;
7349 unsigned R2 : 1;
7350 unsigned R3 : 1;
7351 unsigned R4 : 1;
7352 unsigned R5 : 1;
7353 unsigned R6 : 1;
7354 unsigned R7 : 1;
7357 struct
7359 unsigned DAC2R0 : 1;
7360 unsigned DAC2R1 : 1;
7361 unsigned DAC2R2 : 1;
7362 unsigned DAC2R3 : 1;
7363 unsigned DAC2R4 : 1;
7364 unsigned DAC2R5 : 1;
7365 unsigned DAC2R6 : 1;
7366 unsigned DAC2R7 : 1;
7368 } __DAC2CON1bits_t;
7370 extern __at(0x0595) volatile __DAC2CON1bits_t DAC2CON1bits;
7372 #define _DAC2CON1_REF0 0x01
7373 #define _DAC2CON1_DAC2REF0 0x01
7374 #define _DAC2CON1_R0 0x01
7375 #define _DAC2CON1_DAC2R0 0x01
7376 #define _DAC2CON1_REF1 0x02
7377 #define _DAC2CON1_DAC2REF1 0x02
7378 #define _DAC2CON1_R1 0x02
7379 #define _DAC2CON1_DAC2R1 0x02
7380 #define _DAC2CON1_REF2 0x04
7381 #define _DAC2CON1_DAC2REF2 0x04
7382 #define _DAC2CON1_R2 0x04
7383 #define _DAC2CON1_DAC2R2 0x04
7384 #define _DAC2CON1_REF3 0x08
7385 #define _DAC2CON1_DAC2REF3 0x08
7386 #define _DAC2CON1_R3 0x08
7387 #define _DAC2CON1_DAC2R3 0x08
7388 #define _DAC2CON1_REF4 0x10
7389 #define _DAC2CON1_DAC2REF4 0x10
7390 #define _DAC2CON1_R4 0x10
7391 #define _DAC2CON1_DAC2R4 0x10
7392 #define _DAC2CON1_REF5 0x20
7393 #define _DAC2CON1_DAC2REF5 0x20
7394 #define _DAC2CON1_R5 0x20
7395 #define _DAC2CON1_DAC2R5 0x20
7396 #define _DAC2CON1_REF6 0x40
7397 #define _DAC2CON1_DAC2REF6 0x40
7398 #define _DAC2CON1_R6 0x40
7399 #define _DAC2CON1_DAC2R6 0x40
7400 #define _DAC2CON1_REF7 0x80
7401 #define _DAC2CON1_DAC2REF7 0x80
7402 #define _DAC2CON1_R7 0x80
7403 #define _DAC2CON1_DAC2R7 0x80
7405 //==============================================================================
7407 extern __at(0x0595) __sfr DAC2REF;
7409 //==============================================================================
7410 // DAC2REFL Bits
7412 extern __at(0x0595) __sfr DAC2REFL;
7414 typedef union
7416 struct
7418 unsigned REF0 : 1;
7419 unsigned REF1 : 1;
7420 unsigned REF2 : 1;
7421 unsigned REF3 : 1;
7422 unsigned REF4 : 1;
7423 unsigned REF5 : 1;
7424 unsigned REF6 : 1;
7425 unsigned REF7 : 1;
7428 struct
7430 unsigned DAC2REF0 : 1;
7431 unsigned DAC2REF1 : 1;
7432 unsigned DAC2REF2 : 1;
7433 unsigned DAC2REF3 : 1;
7434 unsigned DAC2REF4 : 1;
7435 unsigned DAC2REF5 : 1;
7436 unsigned DAC2REF6 : 1;
7437 unsigned DAC2REF7 : 1;
7440 struct
7442 unsigned R0 : 1;
7443 unsigned R1 : 1;
7444 unsigned R2 : 1;
7445 unsigned R3 : 1;
7446 unsigned R4 : 1;
7447 unsigned R5 : 1;
7448 unsigned R6 : 1;
7449 unsigned R7 : 1;
7452 struct
7454 unsigned DAC2R0 : 1;
7455 unsigned DAC2R1 : 1;
7456 unsigned DAC2R2 : 1;
7457 unsigned DAC2R3 : 1;
7458 unsigned DAC2R4 : 1;
7459 unsigned DAC2R5 : 1;
7460 unsigned DAC2R6 : 1;
7461 unsigned DAC2R7 : 1;
7463 } __DAC2REFLbits_t;
7465 extern __at(0x0595) volatile __DAC2REFLbits_t DAC2REFLbits;
7467 #define _DAC2REFL_REF0 0x01
7468 #define _DAC2REFL_DAC2REF0 0x01
7469 #define _DAC2REFL_R0 0x01
7470 #define _DAC2REFL_DAC2R0 0x01
7471 #define _DAC2REFL_REF1 0x02
7472 #define _DAC2REFL_DAC2REF1 0x02
7473 #define _DAC2REFL_R1 0x02
7474 #define _DAC2REFL_DAC2R1 0x02
7475 #define _DAC2REFL_REF2 0x04
7476 #define _DAC2REFL_DAC2REF2 0x04
7477 #define _DAC2REFL_R2 0x04
7478 #define _DAC2REFL_DAC2R2 0x04
7479 #define _DAC2REFL_REF3 0x08
7480 #define _DAC2REFL_DAC2REF3 0x08
7481 #define _DAC2REFL_R3 0x08
7482 #define _DAC2REFL_DAC2R3 0x08
7483 #define _DAC2REFL_REF4 0x10
7484 #define _DAC2REFL_DAC2REF4 0x10
7485 #define _DAC2REFL_R4 0x10
7486 #define _DAC2REFL_DAC2R4 0x10
7487 #define _DAC2REFL_REF5 0x20
7488 #define _DAC2REFL_DAC2REF5 0x20
7489 #define _DAC2REFL_R5 0x20
7490 #define _DAC2REFL_DAC2R5 0x20
7491 #define _DAC2REFL_REF6 0x40
7492 #define _DAC2REFL_DAC2REF6 0x40
7493 #define _DAC2REFL_R6 0x40
7494 #define _DAC2REFL_DAC2R6 0x40
7495 #define _DAC2REFL_REF7 0x80
7496 #define _DAC2REFL_DAC2REF7 0x80
7497 #define _DAC2REFL_R7 0x80
7498 #define _DAC2REFL_DAC2R7 0x80
7500 //==============================================================================
7503 //==============================================================================
7504 // DAC2CON2 Bits
7506 extern __at(0x0596) __sfr DAC2CON2;
7508 typedef union
7510 struct
7512 unsigned REF8 : 1;
7513 unsigned REF9 : 1;
7514 unsigned REF10 : 1;
7515 unsigned REF11 : 1;
7516 unsigned REF12 : 1;
7517 unsigned REF13 : 1;
7518 unsigned REF14 : 1;
7519 unsigned REF15 : 1;
7522 struct
7524 unsigned DAC2REF8 : 1;
7525 unsigned DAC2REF9 : 1;
7526 unsigned DAC2REF10 : 1;
7527 unsigned DAC2REF11 : 1;
7528 unsigned DAC2REF12 : 1;
7529 unsigned DAC2REF13 : 1;
7530 unsigned DAC2REF14 : 1;
7531 unsigned DAC2REF15 : 1;
7534 struct
7536 unsigned R8 : 1;
7537 unsigned R9 : 1;
7538 unsigned R10 : 1;
7539 unsigned R11 : 1;
7540 unsigned R12 : 1;
7541 unsigned R13 : 1;
7542 unsigned R14 : 1;
7543 unsigned R15 : 1;
7546 struct
7548 unsigned DAC2R8 : 1;
7549 unsigned DAC2R9 : 1;
7550 unsigned DAC2R10 : 1;
7551 unsigned DAC2R11 : 1;
7552 unsigned DAC2R12 : 1;
7553 unsigned DAC2R13 : 1;
7554 unsigned DAC2R14 : 1;
7555 unsigned DAC2R15 : 1;
7557 } __DAC2CON2bits_t;
7559 extern __at(0x0596) volatile __DAC2CON2bits_t DAC2CON2bits;
7561 #define _DAC2CON2_REF8 0x01
7562 #define _DAC2CON2_DAC2REF8 0x01
7563 #define _DAC2CON2_R8 0x01
7564 #define _DAC2CON2_DAC2R8 0x01
7565 #define _DAC2CON2_REF9 0x02
7566 #define _DAC2CON2_DAC2REF9 0x02
7567 #define _DAC2CON2_R9 0x02
7568 #define _DAC2CON2_DAC2R9 0x02
7569 #define _DAC2CON2_REF10 0x04
7570 #define _DAC2CON2_DAC2REF10 0x04
7571 #define _DAC2CON2_R10 0x04
7572 #define _DAC2CON2_DAC2R10 0x04
7573 #define _DAC2CON2_REF11 0x08
7574 #define _DAC2CON2_DAC2REF11 0x08
7575 #define _DAC2CON2_R11 0x08
7576 #define _DAC2CON2_DAC2R11 0x08
7577 #define _DAC2CON2_REF12 0x10
7578 #define _DAC2CON2_DAC2REF12 0x10
7579 #define _DAC2CON2_R12 0x10
7580 #define _DAC2CON2_DAC2R12 0x10
7581 #define _DAC2CON2_REF13 0x20
7582 #define _DAC2CON2_DAC2REF13 0x20
7583 #define _DAC2CON2_R13 0x20
7584 #define _DAC2CON2_DAC2R13 0x20
7585 #define _DAC2CON2_REF14 0x40
7586 #define _DAC2CON2_DAC2REF14 0x40
7587 #define _DAC2CON2_R14 0x40
7588 #define _DAC2CON2_DAC2R14 0x40
7589 #define _DAC2CON2_REF15 0x80
7590 #define _DAC2CON2_DAC2REF15 0x80
7591 #define _DAC2CON2_R15 0x80
7592 #define _DAC2CON2_DAC2R15 0x80
7594 //==============================================================================
7597 //==============================================================================
7598 // DAC2REFH Bits
7600 extern __at(0x0596) __sfr DAC2REFH;
7602 typedef union
7604 struct
7606 unsigned REF8 : 1;
7607 unsigned REF9 : 1;
7608 unsigned REF10 : 1;
7609 unsigned REF11 : 1;
7610 unsigned REF12 : 1;
7611 unsigned REF13 : 1;
7612 unsigned REF14 : 1;
7613 unsigned REF15 : 1;
7616 struct
7618 unsigned DAC2REF8 : 1;
7619 unsigned DAC2REF9 : 1;
7620 unsigned DAC2REF10 : 1;
7621 unsigned DAC2REF11 : 1;
7622 unsigned DAC2REF12 : 1;
7623 unsigned DAC2REF13 : 1;
7624 unsigned DAC2REF14 : 1;
7625 unsigned DAC2REF15 : 1;
7628 struct
7630 unsigned R8 : 1;
7631 unsigned R9 : 1;
7632 unsigned R10 : 1;
7633 unsigned R11 : 1;
7634 unsigned R12 : 1;
7635 unsigned R13 : 1;
7636 unsigned R14 : 1;
7637 unsigned R15 : 1;
7640 struct
7642 unsigned DAC2R8 : 1;
7643 unsigned DAC2R9 : 1;
7644 unsigned DAC2R10 : 1;
7645 unsigned DAC2R11 : 1;
7646 unsigned DAC2R12 : 1;
7647 unsigned DAC2R13 : 1;
7648 unsigned DAC2R14 : 1;
7649 unsigned DAC2R15 : 1;
7651 } __DAC2REFHbits_t;
7653 extern __at(0x0596) volatile __DAC2REFHbits_t DAC2REFHbits;
7655 #define _DAC2REFH_REF8 0x01
7656 #define _DAC2REFH_DAC2REF8 0x01
7657 #define _DAC2REFH_R8 0x01
7658 #define _DAC2REFH_DAC2R8 0x01
7659 #define _DAC2REFH_REF9 0x02
7660 #define _DAC2REFH_DAC2REF9 0x02
7661 #define _DAC2REFH_R9 0x02
7662 #define _DAC2REFH_DAC2R9 0x02
7663 #define _DAC2REFH_REF10 0x04
7664 #define _DAC2REFH_DAC2REF10 0x04
7665 #define _DAC2REFH_R10 0x04
7666 #define _DAC2REFH_DAC2R10 0x04
7667 #define _DAC2REFH_REF11 0x08
7668 #define _DAC2REFH_DAC2REF11 0x08
7669 #define _DAC2REFH_R11 0x08
7670 #define _DAC2REFH_DAC2R11 0x08
7671 #define _DAC2REFH_REF12 0x10
7672 #define _DAC2REFH_DAC2REF12 0x10
7673 #define _DAC2REFH_R12 0x10
7674 #define _DAC2REFH_DAC2R12 0x10
7675 #define _DAC2REFH_REF13 0x20
7676 #define _DAC2REFH_DAC2REF13 0x20
7677 #define _DAC2REFH_R13 0x20
7678 #define _DAC2REFH_DAC2R13 0x20
7679 #define _DAC2REFH_REF14 0x40
7680 #define _DAC2REFH_DAC2REF14 0x40
7681 #define _DAC2REFH_R14 0x40
7682 #define _DAC2REFH_DAC2R14 0x40
7683 #define _DAC2REFH_REF15 0x80
7684 #define _DAC2REFH_DAC2REF15 0x80
7685 #define _DAC2REFH_R15 0x80
7686 #define _DAC2REFH_DAC2R15 0x80
7688 //==============================================================================
7691 //==============================================================================
7692 // DAC3CON0 Bits
7694 extern __at(0x0597) __sfr DAC3CON0;
7696 typedef union
7698 struct
7700 unsigned NSS : 1;
7701 unsigned : 1;
7702 unsigned PSS0 : 1;
7703 unsigned PSS1 : 1;
7704 unsigned : 1;
7705 unsigned OE1 : 1;
7706 unsigned : 1;
7707 unsigned EN : 1;
7710 struct
7712 unsigned DACNSS : 1;
7713 unsigned : 1;
7714 unsigned DACPSS0 : 1;
7715 unsigned DACPSS1 : 1;
7716 unsigned : 1;
7717 unsigned DACOE1 : 1;
7718 unsigned : 1;
7719 unsigned DACEN : 1;
7722 struct
7724 unsigned DAC3NSS : 1;
7725 unsigned : 1;
7726 unsigned DAC3PSS0 : 1;
7727 unsigned DAC3PSS1 : 1;
7728 unsigned : 1;
7729 unsigned DAC3OE1 : 1;
7730 unsigned : 1;
7731 unsigned DAC3EN : 1;
7734 struct
7736 unsigned : 2;
7737 unsigned PSS : 2;
7738 unsigned : 4;
7741 struct
7743 unsigned : 2;
7744 unsigned DACPSS : 2;
7745 unsigned : 4;
7748 struct
7750 unsigned : 2;
7751 unsigned DAC3PSS : 2;
7752 unsigned : 4;
7754 } __DAC3CON0bits_t;
7756 extern __at(0x0597) volatile __DAC3CON0bits_t DAC3CON0bits;
7758 #define _DAC3CON0_NSS 0x01
7759 #define _DAC3CON0_DACNSS 0x01
7760 #define _DAC3CON0_DAC3NSS 0x01
7761 #define _DAC3CON0_PSS0 0x04
7762 #define _DAC3CON0_DACPSS0 0x04
7763 #define _DAC3CON0_DAC3PSS0 0x04
7764 #define _DAC3CON0_PSS1 0x08
7765 #define _DAC3CON0_DACPSS1 0x08
7766 #define _DAC3CON0_DAC3PSS1 0x08
7767 #define _DAC3CON0_OE1 0x20
7768 #define _DAC3CON0_DACOE1 0x20
7769 #define _DAC3CON0_DAC3OE1 0x20
7770 #define _DAC3CON0_EN 0x80
7771 #define _DAC3CON0_DACEN 0x80
7772 #define _DAC3CON0_DAC3EN 0x80
7774 //==============================================================================
7777 //==============================================================================
7778 // DAC3CON1 Bits
7780 extern __at(0x0598) __sfr DAC3CON1;
7782 typedef union
7784 struct
7786 unsigned DACR0 : 1;
7787 unsigned DACR1 : 1;
7788 unsigned DACR2 : 1;
7789 unsigned DACR3 : 1;
7790 unsigned DACR4 : 1;
7791 unsigned REF5 : 1;
7792 unsigned : 1;
7793 unsigned : 1;
7796 struct
7798 unsigned R0 : 1;
7799 unsigned R1 : 1;
7800 unsigned R2 : 1;
7801 unsigned R3 : 1;
7802 unsigned R4 : 1;
7803 unsigned DAC3REF5 : 1;
7804 unsigned : 1;
7805 unsigned : 1;
7808 struct
7810 unsigned DAC3R0 : 1;
7811 unsigned DAC3R1 : 1;
7812 unsigned DAC3R2 : 1;
7813 unsigned DAC3R3 : 1;
7814 unsigned DAC3R4 : 1;
7815 unsigned : 1;
7816 unsigned : 1;
7817 unsigned : 1;
7820 struct
7822 unsigned REF0 : 1;
7823 unsigned REF1 : 1;
7824 unsigned REF2 : 1;
7825 unsigned REF3 : 1;
7826 unsigned REF4 : 1;
7827 unsigned : 1;
7828 unsigned : 1;
7829 unsigned : 1;
7832 struct
7834 unsigned DAC3REF0 : 1;
7835 unsigned DAC3REF1 : 1;
7836 unsigned DAC3REF2 : 1;
7837 unsigned DAC3REF3 : 1;
7838 unsigned DAC3REF4 : 1;
7839 unsigned : 1;
7840 unsigned : 1;
7841 unsigned : 1;
7844 struct
7846 unsigned REF : 6;
7847 unsigned : 2;
7850 struct
7852 unsigned DAC3REF : 6;
7853 unsigned : 2;
7856 struct
7858 unsigned R : 5;
7859 unsigned : 3;
7862 struct
7864 unsigned DAC3R : 5;
7865 unsigned : 3;
7868 struct
7870 unsigned DACR : 5;
7871 unsigned : 3;
7873 } __DAC3CON1bits_t;
7875 extern __at(0x0598) volatile __DAC3CON1bits_t DAC3CON1bits;
7877 #define _DAC3CON1_DACR0 0x01
7878 #define _DAC3CON1_R0 0x01
7879 #define _DAC3CON1_DAC3R0 0x01
7880 #define _DAC3CON1_REF0 0x01
7881 #define _DAC3CON1_DAC3REF0 0x01
7882 #define _DAC3CON1_DACR1 0x02
7883 #define _DAC3CON1_R1 0x02
7884 #define _DAC3CON1_DAC3R1 0x02
7885 #define _DAC3CON1_REF1 0x02
7886 #define _DAC3CON1_DAC3REF1 0x02
7887 #define _DAC3CON1_DACR2 0x04
7888 #define _DAC3CON1_R2 0x04
7889 #define _DAC3CON1_DAC3R2 0x04
7890 #define _DAC3CON1_REF2 0x04
7891 #define _DAC3CON1_DAC3REF2 0x04
7892 #define _DAC3CON1_DACR3 0x08
7893 #define _DAC3CON1_R3 0x08
7894 #define _DAC3CON1_DAC3R3 0x08
7895 #define _DAC3CON1_REF3 0x08
7896 #define _DAC3CON1_DAC3REF3 0x08
7897 #define _DAC3CON1_DACR4 0x10
7898 #define _DAC3CON1_R4 0x10
7899 #define _DAC3CON1_DAC3R4 0x10
7900 #define _DAC3CON1_REF4 0x10
7901 #define _DAC3CON1_DAC3REF4 0x10
7902 #define _DAC3CON1_REF5 0x20
7903 #define _DAC3CON1_DAC3REF5 0x20
7905 //==============================================================================
7908 //==============================================================================
7909 // DAC3REF Bits
7911 extern __at(0x0598) __sfr DAC3REF;
7913 typedef union
7915 struct
7917 unsigned DACR0 : 1;
7918 unsigned DACR1 : 1;
7919 unsigned DACR2 : 1;
7920 unsigned DACR3 : 1;
7921 unsigned DACR4 : 1;
7922 unsigned REF5 : 1;
7923 unsigned : 1;
7924 unsigned : 1;
7927 struct
7929 unsigned R0 : 1;
7930 unsigned R1 : 1;
7931 unsigned R2 : 1;
7932 unsigned R3 : 1;
7933 unsigned R4 : 1;
7934 unsigned DAC3REF5 : 1;
7935 unsigned : 1;
7936 unsigned : 1;
7939 struct
7941 unsigned DAC3R0 : 1;
7942 unsigned DAC3R1 : 1;
7943 unsigned DAC3R2 : 1;
7944 unsigned DAC3R3 : 1;
7945 unsigned DAC3R4 : 1;
7946 unsigned : 1;
7947 unsigned : 1;
7948 unsigned : 1;
7951 struct
7953 unsigned REF0 : 1;
7954 unsigned REF1 : 1;
7955 unsigned REF2 : 1;
7956 unsigned REF3 : 1;
7957 unsigned REF4 : 1;
7958 unsigned : 1;
7959 unsigned : 1;
7960 unsigned : 1;
7963 struct
7965 unsigned DAC3REF0 : 1;
7966 unsigned DAC3REF1 : 1;
7967 unsigned DAC3REF2 : 1;
7968 unsigned DAC3REF3 : 1;
7969 unsigned DAC3REF4 : 1;
7970 unsigned : 1;
7971 unsigned : 1;
7972 unsigned : 1;
7975 struct
7977 unsigned DACR : 5;
7978 unsigned : 3;
7981 struct
7983 unsigned DAC3REF : 6;
7984 unsigned : 2;
7987 struct
7989 unsigned REF : 6;
7990 unsigned : 2;
7993 struct
7995 unsigned DAC3R : 5;
7996 unsigned : 3;
7999 struct
8001 unsigned R : 5;
8002 unsigned : 3;
8004 } __DAC3REFbits_t;
8006 extern __at(0x0598) volatile __DAC3REFbits_t DAC3REFbits;
8008 #define _DAC3REF_DACR0 0x01
8009 #define _DAC3REF_R0 0x01
8010 #define _DAC3REF_DAC3R0 0x01
8011 #define _DAC3REF_REF0 0x01
8012 #define _DAC3REF_DAC3REF0 0x01
8013 #define _DAC3REF_DACR1 0x02
8014 #define _DAC3REF_R1 0x02
8015 #define _DAC3REF_DAC3R1 0x02
8016 #define _DAC3REF_REF1 0x02
8017 #define _DAC3REF_DAC3REF1 0x02
8018 #define _DAC3REF_DACR2 0x04
8019 #define _DAC3REF_R2 0x04
8020 #define _DAC3REF_DAC3R2 0x04
8021 #define _DAC3REF_REF2 0x04
8022 #define _DAC3REF_DAC3REF2 0x04
8023 #define _DAC3REF_DACR3 0x08
8024 #define _DAC3REF_R3 0x08
8025 #define _DAC3REF_DAC3R3 0x08
8026 #define _DAC3REF_REF3 0x08
8027 #define _DAC3REF_DAC3REF3 0x08
8028 #define _DAC3REF_DACR4 0x10
8029 #define _DAC3REF_R4 0x10
8030 #define _DAC3REF_DAC3R4 0x10
8031 #define _DAC3REF_REF4 0x10
8032 #define _DAC3REF_DAC3REF4 0x10
8033 #define _DAC3REF_REF5 0x20
8034 #define _DAC3REF_DAC3REF5 0x20
8036 //==============================================================================
8039 //==============================================================================
8040 // DAC4CON0 Bits
8042 extern __at(0x0599) __sfr DAC4CON0;
8044 typedef union
8046 struct
8048 unsigned NSS : 1;
8049 unsigned : 1;
8050 unsigned PSS0 : 1;
8051 unsigned PSS1 : 1;
8052 unsigned : 1;
8053 unsigned OE1 : 1;
8054 unsigned : 1;
8055 unsigned EN : 1;
8058 struct
8060 unsigned DACNSS : 1;
8061 unsigned : 1;
8062 unsigned DACPSS0 : 1;
8063 unsigned DACPSS1 : 1;
8064 unsigned : 1;
8065 unsigned DACOE1 : 1;
8066 unsigned : 1;
8067 unsigned DACEN : 1;
8070 struct
8072 unsigned DAC4NSS : 1;
8073 unsigned : 1;
8074 unsigned DAC4PSS0 : 1;
8075 unsigned DAC4PSS1 : 1;
8076 unsigned : 1;
8077 unsigned DAC4OE1 : 1;
8078 unsigned : 1;
8079 unsigned DAC4EN : 1;
8082 struct
8084 unsigned : 2;
8085 unsigned DACPSS : 2;
8086 unsigned : 4;
8089 struct
8091 unsigned : 2;
8092 unsigned DAC4PSS : 2;
8093 unsigned : 4;
8096 struct
8098 unsigned : 2;
8099 unsigned PSS : 2;
8100 unsigned : 4;
8102 } __DAC4CON0bits_t;
8104 extern __at(0x0599) volatile __DAC4CON0bits_t DAC4CON0bits;
8106 #define _DAC4CON0_NSS 0x01
8107 #define _DAC4CON0_DACNSS 0x01
8108 #define _DAC4CON0_DAC4NSS 0x01
8109 #define _DAC4CON0_PSS0 0x04
8110 #define _DAC4CON0_DACPSS0 0x04
8111 #define _DAC4CON0_DAC4PSS0 0x04
8112 #define _DAC4CON0_PSS1 0x08
8113 #define _DAC4CON0_DACPSS1 0x08
8114 #define _DAC4CON0_DAC4PSS1 0x08
8115 #define _DAC4CON0_OE1 0x20
8116 #define _DAC4CON0_DACOE1 0x20
8117 #define _DAC4CON0_DAC4OE1 0x20
8118 #define _DAC4CON0_EN 0x80
8119 #define _DAC4CON0_DACEN 0x80
8120 #define _DAC4CON0_DAC4EN 0x80
8122 //==============================================================================
8125 //==============================================================================
8126 // DAC4CON1 Bits
8128 extern __at(0x059A) __sfr DAC4CON1;
8130 typedef union
8132 struct
8134 unsigned DACR0 : 1;
8135 unsigned DACR1 : 1;
8136 unsigned DACR2 : 1;
8137 unsigned DACR3 : 1;
8138 unsigned DACR4 : 1;
8139 unsigned REF5 : 1;
8140 unsigned : 1;
8141 unsigned : 1;
8144 struct
8146 unsigned R0 : 1;
8147 unsigned R1 : 1;
8148 unsigned R2 : 1;
8149 unsigned R3 : 1;
8150 unsigned R4 : 1;
8151 unsigned DAC4REF5 : 1;
8152 unsigned : 1;
8153 unsigned : 1;
8156 struct
8158 unsigned DAC4R0 : 1;
8159 unsigned DAC4R1 : 1;
8160 unsigned DAC4R2 : 1;
8161 unsigned DAC4R3 : 1;
8162 unsigned DAC4R4 : 1;
8163 unsigned : 1;
8164 unsigned : 1;
8165 unsigned : 1;
8168 struct
8170 unsigned REF0 : 1;
8171 unsigned REF1 : 1;
8172 unsigned REF2 : 1;
8173 unsigned REF3 : 1;
8174 unsigned REF4 : 1;
8175 unsigned : 1;
8176 unsigned : 1;
8177 unsigned : 1;
8180 struct
8182 unsigned DAC4REF0 : 1;
8183 unsigned DAC4REF1 : 1;
8184 unsigned DAC4REF2 : 1;
8185 unsigned DAC4REF3 : 1;
8186 unsigned DAC4REF4 : 1;
8187 unsigned : 1;
8188 unsigned : 1;
8189 unsigned : 1;
8192 struct
8194 unsigned DACR : 5;
8195 unsigned : 3;
8198 struct
8200 unsigned DAC4R : 5;
8201 unsigned : 3;
8204 struct
8206 unsigned DAC4REF : 6;
8207 unsigned : 2;
8210 struct
8212 unsigned R : 5;
8213 unsigned : 3;
8216 struct
8218 unsigned REF : 6;
8219 unsigned : 2;
8221 } __DAC4CON1bits_t;
8223 extern __at(0x059A) volatile __DAC4CON1bits_t DAC4CON1bits;
8225 #define _DAC4CON1_DACR0 0x01
8226 #define _DAC4CON1_R0 0x01
8227 #define _DAC4CON1_DAC4R0 0x01
8228 #define _DAC4CON1_REF0 0x01
8229 #define _DAC4CON1_DAC4REF0 0x01
8230 #define _DAC4CON1_DACR1 0x02
8231 #define _DAC4CON1_R1 0x02
8232 #define _DAC4CON1_DAC4R1 0x02
8233 #define _DAC4CON1_REF1 0x02
8234 #define _DAC4CON1_DAC4REF1 0x02
8235 #define _DAC4CON1_DACR2 0x04
8236 #define _DAC4CON1_R2 0x04
8237 #define _DAC4CON1_DAC4R2 0x04
8238 #define _DAC4CON1_REF2 0x04
8239 #define _DAC4CON1_DAC4REF2 0x04
8240 #define _DAC4CON1_DACR3 0x08
8241 #define _DAC4CON1_R3 0x08
8242 #define _DAC4CON1_DAC4R3 0x08
8243 #define _DAC4CON1_REF3 0x08
8244 #define _DAC4CON1_DAC4REF3 0x08
8245 #define _DAC4CON1_DACR4 0x10
8246 #define _DAC4CON1_R4 0x10
8247 #define _DAC4CON1_DAC4R4 0x10
8248 #define _DAC4CON1_REF4 0x10
8249 #define _DAC4CON1_DAC4REF4 0x10
8250 #define _DAC4CON1_REF5 0x20
8251 #define _DAC4CON1_DAC4REF5 0x20
8253 //==============================================================================
8256 //==============================================================================
8257 // DAC4REF Bits
8259 extern __at(0x059A) __sfr DAC4REF;
8261 typedef union
8263 struct
8265 unsigned DACR0 : 1;
8266 unsigned DACR1 : 1;
8267 unsigned DACR2 : 1;
8268 unsigned DACR3 : 1;
8269 unsigned DACR4 : 1;
8270 unsigned REF5 : 1;
8271 unsigned : 1;
8272 unsigned : 1;
8275 struct
8277 unsigned R0 : 1;
8278 unsigned R1 : 1;
8279 unsigned R2 : 1;
8280 unsigned R3 : 1;
8281 unsigned R4 : 1;
8282 unsigned DAC4REF5 : 1;
8283 unsigned : 1;
8284 unsigned : 1;
8287 struct
8289 unsigned DAC4R0 : 1;
8290 unsigned DAC4R1 : 1;
8291 unsigned DAC4R2 : 1;
8292 unsigned DAC4R3 : 1;
8293 unsigned DAC4R4 : 1;
8294 unsigned : 1;
8295 unsigned : 1;
8296 unsigned : 1;
8299 struct
8301 unsigned REF0 : 1;
8302 unsigned REF1 : 1;
8303 unsigned REF2 : 1;
8304 unsigned REF3 : 1;
8305 unsigned REF4 : 1;
8306 unsigned : 1;
8307 unsigned : 1;
8308 unsigned : 1;
8311 struct
8313 unsigned DAC4REF0 : 1;
8314 unsigned DAC4REF1 : 1;
8315 unsigned DAC4REF2 : 1;
8316 unsigned DAC4REF3 : 1;
8317 unsigned DAC4REF4 : 1;
8318 unsigned : 1;
8319 unsigned : 1;
8320 unsigned : 1;
8323 struct
8325 unsigned R : 5;
8326 unsigned : 3;
8329 struct
8331 unsigned REF : 6;
8332 unsigned : 2;
8335 struct
8337 unsigned DAC4R : 5;
8338 unsigned : 3;
8341 struct
8343 unsigned DACR : 5;
8344 unsigned : 3;
8347 struct
8349 unsigned DAC4REF : 6;
8350 unsigned : 2;
8352 } __DAC4REFbits_t;
8354 extern __at(0x059A) volatile __DAC4REFbits_t DAC4REFbits;
8356 #define _DAC4REF_DACR0 0x01
8357 #define _DAC4REF_R0 0x01
8358 #define _DAC4REF_DAC4R0 0x01
8359 #define _DAC4REF_REF0 0x01
8360 #define _DAC4REF_DAC4REF0 0x01
8361 #define _DAC4REF_DACR1 0x02
8362 #define _DAC4REF_R1 0x02
8363 #define _DAC4REF_DAC4R1 0x02
8364 #define _DAC4REF_REF1 0x02
8365 #define _DAC4REF_DAC4REF1 0x02
8366 #define _DAC4REF_DACR2 0x04
8367 #define _DAC4REF_R2 0x04
8368 #define _DAC4REF_DAC4R2 0x04
8369 #define _DAC4REF_REF2 0x04
8370 #define _DAC4REF_DAC4REF2 0x04
8371 #define _DAC4REF_DACR3 0x08
8372 #define _DAC4REF_R3 0x08
8373 #define _DAC4REF_DAC4R3 0x08
8374 #define _DAC4REF_REF3 0x08
8375 #define _DAC4REF_DAC4REF3 0x08
8376 #define _DAC4REF_DACR4 0x10
8377 #define _DAC4REF_R4 0x10
8378 #define _DAC4REF_DAC4R4 0x10
8379 #define _DAC4REF_REF4 0x10
8380 #define _DAC4REF_DAC4REF4 0x10
8381 #define _DAC4REF_REF5 0x20
8382 #define _DAC4REF_DAC4REF5 0x20
8384 //==============================================================================
8387 //==============================================================================
8388 // PWM3DCL Bits
8390 extern __at(0x0617) __sfr PWM3DCL;
8392 typedef union
8394 struct
8396 unsigned : 1;
8397 unsigned : 1;
8398 unsigned : 1;
8399 unsigned : 1;
8400 unsigned : 1;
8401 unsigned : 1;
8402 unsigned DC0 : 1;
8403 unsigned DC1 : 1;
8406 struct
8408 unsigned : 1;
8409 unsigned : 1;
8410 unsigned : 1;
8411 unsigned : 1;
8412 unsigned : 1;
8413 unsigned : 1;
8414 unsigned PWM3DC0 : 1;
8415 unsigned PWM3DC1 : 1;
8418 struct
8420 unsigned : 1;
8421 unsigned : 1;
8422 unsigned : 1;
8423 unsigned : 1;
8424 unsigned : 1;
8425 unsigned : 1;
8426 unsigned PWMPW0 : 1;
8427 unsigned PWMPW1 : 1;
8430 struct
8432 unsigned : 6;
8433 unsigned PWM3DC : 2;
8436 struct
8438 unsigned : 6;
8439 unsigned PWMPW : 2;
8442 struct
8444 unsigned : 6;
8445 unsigned DC : 2;
8447 } __PWM3DCLbits_t;
8449 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits;
8451 #define _DC0 0x40
8452 #define _PWM3DC0 0x40
8453 #define _PWMPW0 0x40
8454 #define _DC1 0x80
8455 #define _PWM3DC1 0x80
8456 #define _PWMPW1 0x80
8458 //==============================================================================
8461 //==============================================================================
8462 // PWM3DCH Bits
8464 extern __at(0x0618) __sfr PWM3DCH;
8466 typedef union
8468 struct
8470 unsigned DC2 : 1;
8471 unsigned DC3 : 1;
8472 unsigned DC4 : 1;
8473 unsigned DC5 : 1;
8474 unsigned DC6 : 1;
8475 unsigned DC7 : 1;
8476 unsigned DC8 : 1;
8477 unsigned DC9 : 1;
8480 struct
8482 unsigned PWM3DC2 : 1;
8483 unsigned PWM3DC3 : 1;
8484 unsigned PWM3DC4 : 1;
8485 unsigned PWM3DC5 : 1;
8486 unsigned PWM3DC6 : 1;
8487 unsigned PWM3DC7 : 1;
8488 unsigned PWM3DC8 : 1;
8489 unsigned PWM3DC9 : 1;
8492 struct
8494 unsigned PWMPW2 : 1;
8495 unsigned PWMPW3 : 1;
8496 unsigned PWMPW4 : 1;
8497 unsigned PWMPW5 : 1;
8498 unsigned PWMPW6 : 1;
8499 unsigned PWMPW7 : 1;
8500 unsigned PWMPW8 : 1;
8501 unsigned PWMPW9 : 1;
8503 } __PWM3DCHbits_t;
8505 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits;
8507 #define _DC2 0x01
8508 #define _PWM3DC2 0x01
8509 #define _PWMPW2 0x01
8510 #define _DC3 0x02
8511 #define _PWM3DC3 0x02
8512 #define _PWMPW3 0x02
8513 #define _DC4 0x04
8514 #define _PWM3DC4 0x04
8515 #define _PWMPW4 0x04
8516 #define _DC5 0x08
8517 #define _PWM3DC5 0x08
8518 #define _PWMPW5 0x08
8519 #define _DC6 0x10
8520 #define _PWM3DC6 0x10
8521 #define _PWMPW6 0x10
8522 #define _DC7 0x20
8523 #define _PWM3DC7 0x20
8524 #define _PWMPW7 0x20
8525 #define _DC8 0x40
8526 #define _PWM3DC8 0x40
8527 #define _PWMPW8 0x40
8528 #define _DC9 0x80
8529 #define _PWM3DC9 0x80
8530 #define _PWMPW9 0x80
8532 //==============================================================================
8535 //==============================================================================
8536 // PWM3CON Bits
8538 extern __at(0x0619) __sfr PWM3CON;
8540 typedef union
8542 struct
8544 unsigned : 1;
8545 unsigned : 1;
8546 unsigned : 1;
8547 unsigned : 1;
8548 unsigned POL : 1;
8549 unsigned OUT : 1;
8550 unsigned : 1;
8551 unsigned EN : 1;
8554 struct
8556 unsigned : 1;
8557 unsigned : 1;
8558 unsigned : 1;
8559 unsigned : 1;
8560 unsigned PWM3POL : 1;
8561 unsigned PWM3OUT : 1;
8562 unsigned : 1;
8563 unsigned PWM3EN : 1;
8565 } __PWM3CONbits_t;
8567 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits;
8569 #define _PWM3CON_POL 0x10
8570 #define _PWM3CON_PWM3POL 0x10
8571 #define _PWM3CON_OUT 0x20
8572 #define _PWM3CON_PWM3OUT 0x20
8573 #define _PWM3CON_EN 0x80
8574 #define _PWM3CON_PWM3EN 0x80
8576 //==============================================================================
8579 //==============================================================================
8580 // PWM4DCL Bits
8582 extern __at(0x061A) __sfr PWM4DCL;
8584 typedef union
8586 struct
8588 unsigned : 1;
8589 unsigned : 1;
8590 unsigned : 1;
8591 unsigned : 1;
8592 unsigned : 1;
8593 unsigned : 1;
8594 unsigned DC0 : 1;
8595 unsigned DC1 : 1;
8598 struct
8600 unsigned : 1;
8601 unsigned : 1;
8602 unsigned : 1;
8603 unsigned : 1;
8604 unsigned : 1;
8605 unsigned : 1;
8606 unsigned PWM4DC0 : 1;
8607 unsigned PWM4DC1 : 1;
8610 struct
8612 unsigned : 1;
8613 unsigned : 1;
8614 unsigned : 1;
8615 unsigned : 1;
8616 unsigned : 1;
8617 unsigned : 1;
8618 unsigned PWMPW0 : 1;
8619 unsigned PWMPW1 : 1;
8622 struct
8624 unsigned : 6;
8625 unsigned PWM4DC : 2;
8628 struct
8630 unsigned : 6;
8631 unsigned PWMPW : 2;
8634 struct
8636 unsigned : 6;
8637 unsigned DC : 2;
8639 } __PWM4DCLbits_t;
8641 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits;
8643 #define _PWM4DCL_DC0 0x40
8644 #define _PWM4DCL_PWM4DC0 0x40
8645 #define _PWM4DCL_PWMPW0 0x40
8646 #define _PWM4DCL_DC1 0x80
8647 #define _PWM4DCL_PWM4DC1 0x80
8648 #define _PWM4DCL_PWMPW1 0x80
8650 //==============================================================================
8653 //==============================================================================
8654 // PWM4DCH Bits
8656 extern __at(0x061B) __sfr PWM4DCH;
8658 typedef union
8660 struct
8662 unsigned DC2 : 1;
8663 unsigned DC3 : 1;
8664 unsigned DC4 : 1;
8665 unsigned DC5 : 1;
8666 unsigned DC6 : 1;
8667 unsigned DC7 : 1;
8668 unsigned DC8 : 1;
8669 unsigned DC9 : 1;
8672 struct
8674 unsigned PWM4DC2 : 1;
8675 unsigned PWM4DC3 : 1;
8676 unsigned PWM4DC4 : 1;
8677 unsigned PWM4DC5 : 1;
8678 unsigned PWM4DC6 : 1;
8679 unsigned PWM4DC7 : 1;
8680 unsigned PWM4DC8 : 1;
8681 unsigned PWM4DC9 : 1;
8684 struct
8686 unsigned PWMPW2 : 1;
8687 unsigned PWMPW3 : 1;
8688 unsigned PWMPW4 : 1;
8689 unsigned PWMPW5 : 1;
8690 unsigned PWMPW6 : 1;
8691 unsigned PWMPW7 : 1;
8692 unsigned PWMPW8 : 1;
8693 unsigned PWMPW9 : 1;
8695 } __PWM4DCHbits_t;
8697 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits;
8699 #define _PWM4DCH_DC2 0x01
8700 #define _PWM4DCH_PWM4DC2 0x01
8701 #define _PWM4DCH_PWMPW2 0x01
8702 #define _PWM4DCH_DC3 0x02
8703 #define _PWM4DCH_PWM4DC3 0x02
8704 #define _PWM4DCH_PWMPW3 0x02
8705 #define _PWM4DCH_DC4 0x04
8706 #define _PWM4DCH_PWM4DC4 0x04
8707 #define _PWM4DCH_PWMPW4 0x04
8708 #define _PWM4DCH_DC5 0x08
8709 #define _PWM4DCH_PWM4DC5 0x08
8710 #define _PWM4DCH_PWMPW5 0x08
8711 #define _PWM4DCH_DC6 0x10
8712 #define _PWM4DCH_PWM4DC6 0x10
8713 #define _PWM4DCH_PWMPW6 0x10
8714 #define _PWM4DCH_DC7 0x20
8715 #define _PWM4DCH_PWM4DC7 0x20
8716 #define _PWM4DCH_PWMPW7 0x20
8717 #define _PWM4DCH_DC8 0x40
8718 #define _PWM4DCH_PWM4DC8 0x40
8719 #define _PWM4DCH_PWMPW8 0x40
8720 #define _PWM4DCH_DC9 0x80
8721 #define _PWM4DCH_PWM4DC9 0x80
8722 #define _PWM4DCH_PWMPW9 0x80
8724 //==============================================================================
8727 //==============================================================================
8728 // PWM4CON Bits
8730 extern __at(0x061C) __sfr PWM4CON;
8732 typedef union
8734 struct
8736 unsigned : 1;
8737 unsigned : 1;
8738 unsigned : 1;
8739 unsigned : 1;
8740 unsigned POL : 1;
8741 unsigned OUT : 1;
8742 unsigned : 1;
8743 unsigned EN : 1;
8746 struct
8748 unsigned : 1;
8749 unsigned : 1;
8750 unsigned : 1;
8751 unsigned : 1;
8752 unsigned PWM4POL : 1;
8753 unsigned PWM4OUT : 1;
8754 unsigned : 1;
8755 unsigned PWM4EN : 1;
8757 } __PWM4CONbits_t;
8759 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits;
8761 #define _PWM4CON_POL 0x10
8762 #define _PWM4CON_PWM4POL 0x10
8763 #define _PWM4CON_OUT 0x20
8764 #define _PWM4CON_PWM4OUT 0x20
8765 #define _PWM4CON_EN 0x80
8766 #define _PWM4CON_PWM4EN 0x80
8768 //==============================================================================
8771 //==============================================================================
8772 // COG1PHR Bits
8774 extern __at(0x068D) __sfr COG1PHR;
8776 typedef union
8778 struct
8780 unsigned PHR0 : 1;
8781 unsigned PHR1 : 1;
8782 unsigned PHR2 : 1;
8783 unsigned PHR3 : 1;
8784 unsigned PHR4 : 1;
8785 unsigned PHR5 : 1;
8786 unsigned : 1;
8787 unsigned : 1;
8790 struct
8792 unsigned G1PHR0 : 1;
8793 unsigned G1PHR1 : 1;
8794 unsigned G1PHR2 : 1;
8795 unsigned G1PHR3 : 1;
8796 unsigned G1PHR4 : 1;
8797 unsigned G1PHR5 : 1;
8798 unsigned : 1;
8799 unsigned : 1;
8802 struct
8804 unsigned G1PHR : 6;
8805 unsigned : 2;
8808 struct
8810 unsigned PHR : 6;
8811 unsigned : 2;
8813 } __COG1PHRbits_t;
8815 extern __at(0x068D) volatile __COG1PHRbits_t COG1PHRbits;
8817 #define _PHR0 0x01
8818 #define _G1PHR0 0x01
8819 #define _PHR1 0x02
8820 #define _G1PHR1 0x02
8821 #define _PHR2 0x04
8822 #define _G1PHR2 0x04
8823 #define _PHR3 0x08
8824 #define _G1PHR3 0x08
8825 #define _PHR4 0x10
8826 #define _G1PHR4 0x10
8827 #define _PHR5 0x20
8828 #define _G1PHR5 0x20
8830 //==============================================================================
8833 //==============================================================================
8834 // COG1PHF Bits
8836 extern __at(0x068E) __sfr COG1PHF;
8838 typedef union
8840 struct
8842 unsigned PHF0 : 1;
8843 unsigned PHF1 : 1;
8844 unsigned PHF2 : 1;
8845 unsigned PHF3 : 1;
8846 unsigned PHF4 : 1;
8847 unsigned PHF5 : 1;
8848 unsigned : 1;
8849 unsigned : 1;
8852 struct
8854 unsigned G1PHF0 : 1;
8855 unsigned G1PHF1 : 1;
8856 unsigned G1PHF2 : 1;
8857 unsigned G1PHF3 : 1;
8858 unsigned G1PHF4 : 1;
8859 unsigned G1PHF5 : 1;
8860 unsigned : 1;
8861 unsigned : 1;
8864 struct
8866 unsigned G1PHF : 6;
8867 unsigned : 2;
8870 struct
8872 unsigned PHF : 6;
8873 unsigned : 2;
8875 } __COG1PHFbits_t;
8877 extern __at(0x068E) volatile __COG1PHFbits_t COG1PHFbits;
8879 #define _PHF0 0x01
8880 #define _G1PHF0 0x01
8881 #define _PHF1 0x02
8882 #define _G1PHF1 0x02
8883 #define _PHF2 0x04
8884 #define _G1PHF2 0x04
8885 #define _PHF3 0x08
8886 #define _G1PHF3 0x08
8887 #define _PHF4 0x10
8888 #define _G1PHF4 0x10
8889 #define _PHF5 0x20
8890 #define _G1PHF5 0x20
8892 //==============================================================================
8895 //==============================================================================
8896 // COG1BLKR Bits
8898 extern __at(0x068F) __sfr COG1BLKR;
8900 typedef union
8902 struct
8904 unsigned BLKR0 : 1;
8905 unsigned BLKR1 : 1;
8906 unsigned BLKR2 : 1;
8907 unsigned BLKR3 : 1;
8908 unsigned BLKR4 : 1;
8909 unsigned BLKR5 : 1;
8910 unsigned : 1;
8911 unsigned : 1;
8914 struct
8916 unsigned G1BLKR0 : 1;
8917 unsigned G1BLKR1 : 1;
8918 unsigned G1BLKR2 : 1;
8919 unsigned G1BLKR3 : 1;
8920 unsigned G1BLKR4 : 1;
8921 unsigned G1BLKR5 : 1;
8922 unsigned : 1;
8923 unsigned : 1;
8926 struct
8928 unsigned G1BLKR : 6;
8929 unsigned : 2;
8932 struct
8934 unsigned BLKR : 6;
8935 unsigned : 2;
8937 } __COG1BLKRbits_t;
8939 extern __at(0x068F) volatile __COG1BLKRbits_t COG1BLKRbits;
8941 #define _BLKR0 0x01
8942 #define _G1BLKR0 0x01
8943 #define _BLKR1 0x02
8944 #define _G1BLKR1 0x02
8945 #define _BLKR2 0x04
8946 #define _G1BLKR2 0x04
8947 #define _BLKR3 0x08
8948 #define _G1BLKR3 0x08
8949 #define _BLKR4 0x10
8950 #define _G1BLKR4 0x10
8951 #define _BLKR5 0x20
8952 #define _G1BLKR5 0x20
8954 //==============================================================================
8957 //==============================================================================
8958 // COG1BLKF Bits
8960 extern __at(0x0690) __sfr COG1BLKF;
8962 typedef union
8964 struct
8966 unsigned BLKF0 : 1;
8967 unsigned BLKF1 : 1;
8968 unsigned BLKF2 : 1;
8969 unsigned BLKF3 : 1;
8970 unsigned BLKF4 : 1;
8971 unsigned BLKF5 : 1;
8972 unsigned : 1;
8973 unsigned : 1;
8976 struct
8978 unsigned G1BLKF0 : 1;
8979 unsigned G1BLKF1 : 1;
8980 unsigned G1BLKF2 : 1;
8981 unsigned G1BLKF3 : 1;
8982 unsigned G1BLKF4 : 1;
8983 unsigned G1BLKF5 : 1;
8984 unsigned : 1;
8985 unsigned : 1;
8988 struct
8990 unsigned BLKF : 6;
8991 unsigned : 2;
8994 struct
8996 unsigned G1BLKF : 6;
8997 unsigned : 2;
8999 } __COG1BLKFbits_t;
9001 extern __at(0x0690) volatile __COG1BLKFbits_t COG1BLKFbits;
9003 #define _BLKF0 0x01
9004 #define _G1BLKF0 0x01
9005 #define _BLKF1 0x02
9006 #define _G1BLKF1 0x02
9007 #define _BLKF2 0x04
9008 #define _G1BLKF2 0x04
9009 #define _BLKF3 0x08
9010 #define _G1BLKF3 0x08
9011 #define _BLKF4 0x10
9012 #define _G1BLKF4 0x10
9013 #define _BLKF5 0x20
9014 #define _G1BLKF5 0x20
9016 //==============================================================================
9019 //==============================================================================
9020 // COG1DBR Bits
9022 extern __at(0x0691) __sfr COG1DBR;
9024 typedef union
9026 struct
9028 unsigned DBR0 : 1;
9029 unsigned DBR1 : 1;
9030 unsigned DBR2 : 1;
9031 unsigned DBR3 : 1;
9032 unsigned DBR4 : 1;
9033 unsigned DBR5 : 1;
9034 unsigned : 1;
9035 unsigned : 1;
9038 struct
9040 unsigned G1DBR0 : 1;
9041 unsigned G1DBR1 : 1;
9042 unsigned G1DBR2 : 1;
9043 unsigned G1DBR3 : 1;
9044 unsigned G1DBR4 : 1;
9045 unsigned G1DBR5 : 1;
9046 unsigned : 1;
9047 unsigned : 1;
9050 struct
9052 unsigned G1DBR : 6;
9053 unsigned : 2;
9056 struct
9058 unsigned DBR : 6;
9059 unsigned : 2;
9061 } __COG1DBRbits_t;
9063 extern __at(0x0691) volatile __COG1DBRbits_t COG1DBRbits;
9065 #define _DBR0 0x01
9066 #define _G1DBR0 0x01
9067 #define _DBR1 0x02
9068 #define _G1DBR1 0x02
9069 #define _DBR2 0x04
9070 #define _G1DBR2 0x04
9071 #define _DBR3 0x08
9072 #define _G1DBR3 0x08
9073 #define _DBR4 0x10
9074 #define _G1DBR4 0x10
9075 #define _DBR5 0x20
9076 #define _G1DBR5 0x20
9078 //==============================================================================
9081 //==============================================================================
9082 // COG1DBF Bits
9084 extern __at(0x0692) __sfr COG1DBF;
9086 typedef union
9088 struct
9090 unsigned DBF0 : 1;
9091 unsigned DBF1 : 1;
9092 unsigned DBF2 : 1;
9093 unsigned DBF3 : 1;
9094 unsigned DBF4 : 1;
9095 unsigned DBF5 : 1;
9096 unsigned : 1;
9097 unsigned : 1;
9100 struct
9102 unsigned G1DBF0 : 1;
9103 unsigned G1DBF1 : 1;
9104 unsigned G1DBF2 : 1;
9105 unsigned G1DBF3 : 1;
9106 unsigned G1DBF4 : 1;
9107 unsigned G1DBF5 : 1;
9108 unsigned : 1;
9109 unsigned : 1;
9112 struct
9114 unsigned G1DBF : 6;
9115 unsigned : 2;
9118 struct
9120 unsigned DBF : 6;
9121 unsigned : 2;
9123 } __COG1DBFbits_t;
9125 extern __at(0x0692) volatile __COG1DBFbits_t COG1DBFbits;
9127 #define _DBF0 0x01
9128 #define _G1DBF0 0x01
9129 #define _DBF1 0x02
9130 #define _G1DBF1 0x02
9131 #define _DBF2 0x04
9132 #define _G1DBF2 0x04
9133 #define _DBF3 0x08
9134 #define _G1DBF3 0x08
9135 #define _DBF4 0x10
9136 #define _G1DBF4 0x10
9137 #define _DBF5 0x20
9138 #define _G1DBF5 0x20
9140 //==============================================================================
9143 //==============================================================================
9144 // COG1CON0 Bits
9146 extern __at(0x0693) __sfr COG1CON0;
9148 typedef union
9150 struct
9152 unsigned MD0 : 1;
9153 unsigned MD1 : 1;
9154 unsigned MD2 : 1;
9155 unsigned CS0 : 1;
9156 unsigned CS1 : 1;
9157 unsigned : 1;
9158 unsigned LD : 1;
9159 unsigned EN : 1;
9162 struct
9164 unsigned G1MD0 : 1;
9165 unsigned G1MD1 : 1;
9166 unsigned G1MD2 : 1;
9167 unsigned G1CS0 : 1;
9168 unsigned G1CS1 : 1;
9169 unsigned : 1;
9170 unsigned G1LD : 1;
9171 unsigned G1EN : 1;
9174 struct
9176 unsigned G1MD : 3;
9177 unsigned : 5;
9180 struct
9182 unsigned MD : 3;
9183 unsigned : 5;
9186 struct
9188 unsigned : 3;
9189 unsigned G1CS : 2;
9190 unsigned : 3;
9193 struct
9195 unsigned : 3;
9196 unsigned CS : 2;
9197 unsigned : 3;
9199 } __COG1CON0bits_t;
9201 extern __at(0x0693) volatile __COG1CON0bits_t COG1CON0bits;
9203 #define _COG1CON0_MD0 0x01
9204 #define _COG1CON0_G1MD0 0x01
9205 #define _COG1CON0_MD1 0x02
9206 #define _COG1CON0_G1MD1 0x02
9207 #define _COG1CON0_MD2 0x04
9208 #define _COG1CON0_G1MD2 0x04
9209 #define _COG1CON0_CS0 0x08
9210 #define _COG1CON0_G1CS0 0x08
9211 #define _COG1CON0_CS1 0x10
9212 #define _COG1CON0_G1CS1 0x10
9213 #define _COG1CON0_LD 0x40
9214 #define _COG1CON0_G1LD 0x40
9215 #define _COG1CON0_EN 0x80
9216 #define _COG1CON0_G1EN 0x80
9218 //==============================================================================
9221 //==============================================================================
9222 // COG1CON1 Bits
9224 extern __at(0x0694) __sfr COG1CON1;
9226 typedef union
9228 struct
9230 unsigned POLA : 1;
9231 unsigned POLB : 1;
9232 unsigned POLC : 1;
9233 unsigned POLD : 1;
9234 unsigned : 1;
9235 unsigned : 1;
9236 unsigned FDBS : 1;
9237 unsigned RDBS : 1;
9240 struct
9242 unsigned G1POLA : 1;
9243 unsigned G1POLB : 1;
9244 unsigned G1POLC : 1;
9245 unsigned G1POLD : 1;
9246 unsigned : 1;
9247 unsigned : 1;
9248 unsigned G1FDBS : 1;
9249 unsigned G1RDBS : 1;
9251 } __COG1CON1bits_t;
9253 extern __at(0x0694) volatile __COG1CON1bits_t COG1CON1bits;
9255 #define _POLA 0x01
9256 #define _G1POLA 0x01
9257 #define _POLB 0x02
9258 #define _G1POLB 0x02
9259 #define _POLC 0x04
9260 #define _G1POLC 0x04
9261 #define _POLD 0x08
9262 #define _G1POLD 0x08
9263 #define _FDBS 0x40
9264 #define _G1FDBS 0x40
9265 #define _RDBS 0x80
9266 #define _G1RDBS 0x80
9268 //==============================================================================
9271 //==============================================================================
9272 // COG1RIS0 Bits
9274 extern __at(0x0695) __sfr COG1RIS0;
9276 typedef union
9278 struct
9280 unsigned RIS0 : 1;
9281 unsigned RIS1 : 1;
9282 unsigned RIS2 : 1;
9283 unsigned RIS3 : 1;
9284 unsigned RIS4 : 1;
9285 unsigned RIS5 : 1;
9286 unsigned RIS6 : 1;
9287 unsigned RIS7 : 1;
9290 struct
9292 unsigned G1RIS0 : 1;
9293 unsigned G1RIS1 : 1;
9294 unsigned G1RIS2 : 1;
9295 unsigned G1RIS3 : 1;
9296 unsigned G1RIS4 : 1;
9297 unsigned G1RIS5 : 1;
9298 unsigned G1RIS6 : 1;
9299 unsigned G1RIS7 : 1;
9301 } __COG1RIS0bits_t;
9303 extern __at(0x0695) volatile __COG1RIS0bits_t COG1RIS0bits;
9305 #define _RIS0 0x01
9306 #define _G1RIS0 0x01
9307 #define _RIS1 0x02
9308 #define _G1RIS1 0x02
9309 #define _RIS2 0x04
9310 #define _G1RIS2 0x04
9311 #define _RIS3 0x08
9312 #define _G1RIS3 0x08
9313 #define _RIS4 0x10
9314 #define _G1RIS4 0x10
9315 #define _RIS5 0x20
9316 #define _G1RIS5 0x20
9317 #define _RIS6 0x40
9318 #define _G1RIS6 0x40
9319 #define _RIS7 0x80
9320 #define _G1RIS7 0x80
9322 //==============================================================================
9325 //==============================================================================
9326 // COG1RIS1 Bits
9328 extern __at(0x0696) __sfr COG1RIS1;
9330 typedef union
9332 struct
9334 unsigned RIS8 : 1;
9335 unsigned RIS9 : 1;
9336 unsigned RIS10 : 1;
9337 unsigned RIS11 : 1;
9338 unsigned RIS12 : 1;
9339 unsigned RIS13 : 1;
9340 unsigned RIS14 : 1;
9341 unsigned RIS15 : 1;
9344 struct
9346 unsigned G1RIS8 : 1;
9347 unsigned G1RIS9 : 1;
9348 unsigned G1RIS10 : 1;
9349 unsigned G1RIS11 : 1;
9350 unsigned G1RIS12 : 1;
9351 unsigned G1RIS13 : 1;
9352 unsigned G1RIS14 : 1;
9353 unsigned G1RIS15 : 1;
9355 } __COG1RIS1bits_t;
9357 extern __at(0x0696) volatile __COG1RIS1bits_t COG1RIS1bits;
9359 #define _RIS8 0x01
9360 #define _G1RIS8 0x01
9361 #define _RIS9 0x02
9362 #define _G1RIS9 0x02
9363 #define _RIS10 0x04
9364 #define _G1RIS10 0x04
9365 #define _RIS11 0x08
9366 #define _G1RIS11 0x08
9367 #define _RIS12 0x10
9368 #define _G1RIS12 0x10
9369 #define _RIS13 0x20
9370 #define _G1RIS13 0x20
9371 #define _RIS14 0x40
9372 #define _G1RIS14 0x40
9373 #define _RIS15 0x80
9374 #define _G1RIS15 0x80
9376 //==============================================================================
9379 //==============================================================================
9380 // COG1RSIM0 Bits
9382 extern __at(0x0697) __sfr COG1RSIM0;
9384 typedef union
9386 struct
9388 unsigned RSIM0 : 1;
9389 unsigned RSIM1 : 1;
9390 unsigned RSIM2 : 1;
9391 unsigned RSIM3 : 1;
9392 unsigned RSIM4 : 1;
9393 unsigned RSIM5 : 1;
9394 unsigned RSIM6 : 1;
9395 unsigned RSIM7 : 1;
9398 struct
9400 unsigned G1RSIM0 : 1;
9401 unsigned G1RSIM1 : 1;
9402 unsigned G1RSIM2 : 1;
9403 unsigned G1RSIM3 : 1;
9404 unsigned G1RSIM4 : 1;
9405 unsigned G1RSIM5 : 1;
9406 unsigned G1RSIM6 : 1;
9407 unsigned G1RSIM7 : 1;
9409 } __COG1RSIM0bits_t;
9411 extern __at(0x0697) volatile __COG1RSIM0bits_t COG1RSIM0bits;
9413 #define _RSIM0 0x01
9414 #define _G1RSIM0 0x01
9415 #define _RSIM1 0x02
9416 #define _G1RSIM1 0x02
9417 #define _RSIM2 0x04
9418 #define _G1RSIM2 0x04
9419 #define _RSIM3 0x08
9420 #define _G1RSIM3 0x08
9421 #define _RSIM4 0x10
9422 #define _G1RSIM4 0x10
9423 #define _RSIM5 0x20
9424 #define _G1RSIM5 0x20
9425 #define _RSIM6 0x40
9426 #define _G1RSIM6 0x40
9427 #define _RSIM7 0x80
9428 #define _G1RSIM7 0x80
9430 //==============================================================================
9433 //==============================================================================
9434 // COG1RSIM1 Bits
9436 extern __at(0x0698) __sfr COG1RSIM1;
9438 typedef union
9440 struct
9442 unsigned RSIM8 : 1;
9443 unsigned RSIM9 : 1;
9444 unsigned RSIM10 : 1;
9445 unsigned RSIM11 : 1;
9446 unsigned RSIM12 : 1;
9447 unsigned RSIM13 : 1;
9448 unsigned RSIM14 : 1;
9449 unsigned RSIM15 : 1;
9452 struct
9454 unsigned G1RSIM8 : 1;
9455 unsigned G1RSIM9 : 1;
9456 unsigned G1RSIM10 : 1;
9457 unsigned G1RSIM11 : 1;
9458 unsigned G1RSIM12 : 1;
9459 unsigned G1RSIM13 : 1;
9460 unsigned G1RSIM14 : 1;
9461 unsigned G1RSIM15 : 1;
9463 } __COG1RSIM1bits_t;
9465 extern __at(0x0698) volatile __COG1RSIM1bits_t COG1RSIM1bits;
9467 #define _RSIM8 0x01
9468 #define _G1RSIM8 0x01
9469 #define _RSIM9 0x02
9470 #define _G1RSIM9 0x02
9471 #define _RSIM10 0x04
9472 #define _G1RSIM10 0x04
9473 #define _RSIM11 0x08
9474 #define _G1RSIM11 0x08
9475 #define _RSIM12 0x10
9476 #define _G1RSIM12 0x10
9477 #define _RSIM13 0x20
9478 #define _G1RSIM13 0x20
9479 #define _RSIM14 0x40
9480 #define _G1RSIM14 0x40
9481 #define _RSIM15 0x80
9482 #define _G1RSIM15 0x80
9484 //==============================================================================
9487 //==============================================================================
9488 // COG1FIS0 Bits
9490 extern __at(0x0699) __sfr COG1FIS0;
9492 typedef union
9494 struct
9496 unsigned FIS0 : 1;
9497 unsigned FIS1 : 1;
9498 unsigned FIS2 : 1;
9499 unsigned FIS3 : 1;
9500 unsigned FIS4 : 1;
9501 unsigned FIS5 : 1;
9502 unsigned FIS6 : 1;
9503 unsigned FIS7 : 1;
9506 struct
9508 unsigned G1FIS0 : 1;
9509 unsigned G1FIS1 : 1;
9510 unsigned G1FIS2 : 1;
9511 unsigned G1FIS3 : 1;
9512 unsigned G1FIS4 : 1;
9513 unsigned G1FIS5 : 1;
9514 unsigned G1FIS6 : 1;
9515 unsigned G1FIS7 : 1;
9517 } __COG1FIS0bits_t;
9519 extern __at(0x0699) volatile __COG1FIS0bits_t COG1FIS0bits;
9521 #define _FIS0 0x01
9522 #define _G1FIS0 0x01
9523 #define _FIS1 0x02
9524 #define _G1FIS1 0x02
9525 #define _FIS2 0x04
9526 #define _G1FIS2 0x04
9527 #define _FIS3 0x08
9528 #define _G1FIS3 0x08
9529 #define _FIS4 0x10
9530 #define _G1FIS4 0x10
9531 #define _FIS5 0x20
9532 #define _G1FIS5 0x20
9533 #define _FIS6 0x40
9534 #define _G1FIS6 0x40
9535 #define _FIS7 0x80
9536 #define _G1FIS7 0x80
9538 //==============================================================================
9541 //==============================================================================
9542 // COG1FIS1 Bits
9544 extern __at(0x069A) __sfr COG1FIS1;
9546 typedef union
9548 struct
9550 unsigned FIS8 : 1;
9551 unsigned FIS9 : 1;
9552 unsigned FIS10 : 1;
9553 unsigned FIS11 : 1;
9554 unsigned FIS12 : 1;
9555 unsigned FIS13 : 1;
9556 unsigned FIS14 : 1;
9557 unsigned FIS15 : 1;
9560 struct
9562 unsigned G1FIS8 : 1;
9563 unsigned G1FIS9 : 1;
9564 unsigned G1FIS10 : 1;
9565 unsigned G1FIS11 : 1;
9566 unsigned G1FIS12 : 1;
9567 unsigned G1FIS13 : 1;
9568 unsigned G1FIS14 : 1;
9569 unsigned G1FIS15 : 1;
9571 } __COG1FIS1bits_t;
9573 extern __at(0x069A) volatile __COG1FIS1bits_t COG1FIS1bits;
9575 #define _FIS8 0x01
9576 #define _G1FIS8 0x01
9577 #define _FIS9 0x02
9578 #define _G1FIS9 0x02
9579 #define _FIS10 0x04
9580 #define _G1FIS10 0x04
9581 #define _FIS11 0x08
9582 #define _G1FIS11 0x08
9583 #define _FIS12 0x10
9584 #define _G1FIS12 0x10
9585 #define _FIS13 0x20
9586 #define _G1FIS13 0x20
9587 #define _FIS14 0x40
9588 #define _G1FIS14 0x40
9589 #define _FIS15 0x80
9590 #define _G1FIS15 0x80
9592 //==============================================================================
9595 //==============================================================================
9596 // COG1FSIM0 Bits
9598 extern __at(0x069B) __sfr COG1FSIM0;
9600 typedef union
9602 struct
9604 unsigned FSIM0 : 1;
9605 unsigned FSIM1 : 1;
9606 unsigned FSIM2 : 1;
9607 unsigned FSIM3 : 1;
9608 unsigned FSIM4 : 1;
9609 unsigned FSIM5 : 1;
9610 unsigned FSIM6 : 1;
9611 unsigned FSIM7 : 1;
9614 struct
9616 unsigned G1FSIM0 : 1;
9617 unsigned G1FSIM1 : 1;
9618 unsigned G1FSIM2 : 1;
9619 unsigned G1FSIM3 : 1;
9620 unsigned G1FSIM4 : 1;
9621 unsigned G1FSIM5 : 1;
9622 unsigned G1FSIM6 : 1;
9623 unsigned G1FSIM7 : 1;
9625 } __COG1FSIM0bits_t;
9627 extern __at(0x069B) volatile __COG1FSIM0bits_t COG1FSIM0bits;
9629 #define _FSIM0 0x01
9630 #define _G1FSIM0 0x01
9631 #define _FSIM1 0x02
9632 #define _G1FSIM1 0x02
9633 #define _FSIM2 0x04
9634 #define _G1FSIM2 0x04
9635 #define _FSIM3 0x08
9636 #define _G1FSIM3 0x08
9637 #define _FSIM4 0x10
9638 #define _G1FSIM4 0x10
9639 #define _FSIM5 0x20
9640 #define _G1FSIM5 0x20
9641 #define _FSIM6 0x40
9642 #define _G1FSIM6 0x40
9643 #define _FSIM7 0x80
9644 #define _G1FSIM7 0x80
9646 //==============================================================================
9649 //==============================================================================
9650 // COG1FSIM1 Bits
9652 extern __at(0x069C) __sfr COG1FSIM1;
9654 typedef union
9656 struct
9658 unsigned FSIM8 : 1;
9659 unsigned FSIM9 : 1;
9660 unsigned FSIM10 : 1;
9661 unsigned FSIM11 : 1;
9662 unsigned FSIM12 : 1;
9663 unsigned FSIM13 : 1;
9664 unsigned FSIM14 : 1;
9665 unsigned FSIM15 : 1;
9668 struct
9670 unsigned G1FSIM8 : 1;
9671 unsigned G1FSIM9 : 1;
9672 unsigned G1FSIM10 : 1;
9673 unsigned G1FSIM11 : 1;
9674 unsigned G1FSIM12 : 1;
9675 unsigned G1FSIM13 : 1;
9676 unsigned G1FSIM14 : 1;
9677 unsigned G1FSIM15 : 1;
9679 } __COG1FSIM1bits_t;
9681 extern __at(0x069C) volatile __COG1FSIM1bits_t COG1FSIM1bits;
9683 #define _FSIM8 0x01
9684 #define _G1FSIM8 0x01
9685 #define _FSIM9 0x02
9686 #define _G1FSIM9 0x02
9687 #define _FSIM10 0x04
9688 #define _G1FSIM10 0x04
9689 #define _FSIM11 0x08
9690 #define _G1FSIM11 0x08
9691 #define _FSIM12 0x10
9692 #define _G1FSIM12 0x10
9693 #define _FSIM13 0x20
9694 #define _G1FSIM13 0x20
9695 #define _FSIM14 0x40
9696 #define _G1FSIM14 0x40
9697 #define _FSIM15 0x80
9698 #define _G1FSIM15 0x80
9700 //==============================================================================
9703 //==============================================================================
9704 // COG1ASD0 Bits
9706 extern __at(0x069D) __sfr COG1ASD0;
9708 typedef union
9710 struct
9712 unsigned : 1;
9713 unsigned : 1;
9714 unsigned ASDAC0 : 1;
9715 unsigned ASDAC1 : 1;
9716 unsigned ASDBD0 : 1;
9717 unsigned ASDBD1 : 1;
9718 unsigned ASREN : 1;
9719 unsigned ASE : 1;
9722 struct
9724 unsigned : 1;
9725 unsigned : 1;
9726 unsigned G1ASDAC0 : 1;
9727 unsigned G1ASDAC1 : 1;
9728 unsigned G1ASDBD0 : 1;
9729 unsigned G1ASDBD1 : 1;
9730 unsigned ARSEN : 1;
9731 unsigned G1ASE : 1;
9734 struct
9736 unsigned : 1;
9737 unsigned : 1;
9738 unsigned : 1;
9739 unsigned : 1;
9740 unsigned : 1;
9741 unsigned : 1;
9742 unsigned G1ARSEN : 1;
9743 unsigned : 1;
9746 struct
9748 unsigned : 1;
9749 unsigned : 1;
9750 unsigned : 1;
9751 unsigned : 1;
9752 unsigned : 1;
9753 unsigned : 1;
9754 unsigned G1ASREN : 1;
9755 unsigned : 1;
9758 struct
9760 unsigned : 2;
9761 unsigned G1ASDAC : 2;
9762 unsigned : 4;
9765 struct
9767 unsigned : 2;
9768 unsigned ASDAC : 2;
9769 unsigned : 4;
9772 struct
9774 unsigned : 4;
9775 unsigned ASDBD : 2;
9776 unsigned : 2;
9779 struct
9781 unsigned : 4;
9782 unsigned G1ASDBD : 2;
9783 unsigned : 2;
9785 } __COG1ASD0bits_t;
9787 extern __at(0x069D) volatile __COG1ASD0bits_t COG1ASD0bits;
9789 #define _ASDAC0 0x04
9790 #define _G1ASDAC0 0x04
9791 #define _ASDAC1 0x08
9792 #define _G1ASDAC1 0x08
9793 #define _ASDBD0 0x10
9794 #define _G1ASDBD0 0x10
9795 #define _ASDBD1 0x20
9796 #define _G1ASDBD1 0x20
9797 #define _ASREN 0x40
9798 #define _ARSEN 0x40
9799 #define _G1ARSEN 0x40
9800 #define _G1ASREN 0x40
9801 #define _ASE 0x80
9802 #define _G1ASE 0x80
9804 //==============================================================================
9807 //==============================================================================
9808 // COG1ASD1 Bits
9810 extern __at(0x069E) __sfr COG1ASD1;
9812 typedef union
9814 struct
9816 unsigned AS0E : 1;
9817 unsigned AS1E : 1;
9818 unsigned AS2E : 1;
9819 unsigned AS3E : 1;
9820 unsigned AS4E : 1;
9821 unsigned AS5E : 1;
9822 unsigned AS6E : 1;
9823 unsigned AS7E : 1;
9826 struct
9828 unsigned G1AS0E : 1;
9829 unsigned G1AS1E : 1;
9830 unsigned G1AS2E : 1;
9831 unsigned G1AS3E : 1;
9832 unsigned G1AS4E : 1;
9833 unsigned G1AS5E : 1;
9834 unsigned G1AS6E : 1;
9835 unsigned G1AS7E : 1;
9837 } __COG1ASD1bits_t;
9839 extern __at(0x069E) volatile __COG1ASD1bits_t COG1ASD1bits;
9841 #define _AS0E 0x01
9842 #define _G1AS0E 0x01
9843 #define _AS1E 0x02
9844 #define _G1AS1E 0x02
9845 #define _AS2E 0x04
9846 #define _G1AS2E 0x04
9847 #define _AS3E 0x08
9848 #define _G1AS3E 0x08
9849 #define _AS4E 0x10
9850 #define _G1AS4E 0x10
9851 #define _AS5E 0x20
9852 #define _G1AS5E 0x20
9853 #define _AS6E 0x40
9854 #define _G1AS6E 0x40
9855 #define _AS7E 0x80
9856 #define _G1AS7E 0x80
9858 //==============================================================================
9861 //==============================================================================
9862 // COG1STR Bits
9864 extern __at(0x069F) __sfr COG1STR;
9866 typedef union
9868 struct
9870 unsigned STRA : 1;
9871 unsigned STRB : 1;
9872 unsigned STRC : 1;
9873 unsigned STRD : 1;
9874 unsigned SDATA : 1;
9875 unsigned SDATB : 1;
9876 unsigned SDATC : 1;
9877 unsigned SDATD : 1;
9880 struct
9882 unsigned G1STRA : 1;
9883 unsigned G1STRB : 1;
9884 unsigned G1STRC : 1;
9885 unsigned G1STRD : 1;
9886 unsigned G1SDATA : 1;
9887 unsigned G1SDATB : 1;
9888 unsigned G1SDATC : 1;
9889 unsigned G1SDATD : 1;
9891 } __COG1STRbits_t;
9893 extern __at(0x069F) volatile __COG1STRbits_t COG1STRbits;
9895 #define _STRA 0x01
9896 #define _G1STRA 0x01
9897 #define _STRB 0x02
9898 #define _G1STRB 0x02
9899 #define _STRC 0x04
9900 #define _G1STRC 0x04
9901 #define _STRD 0x08
9902 #define _G1STRD 0x08
9903 #define _SDATA 0x10
9904 #define _G1SDATA 0x10
9905 #define _SDATB 0x20
9906 #define _G1SDATB 0x20
9907 #define _SDATC 0x40
9908 #define _G1SDATC 0x40
9909 #define _SDATD 0x80
9910 #define _G1SDATD 0x80
9912 //==============================================================================
9915 //==============================================================================
9916 // COG2PHR Bits
9918 extern __at(0x070D) __sfr COG2PHR;
9920 typedef union
9922 struct
9924 unsigned PHR0 : 1;
9925 unsigned PHR1 : 1;
9926 unsigned PHR2 : 1;
9927 unsigned PHR3 : 1;
9928 unsigned PHR4 : 1;
9929 unsigned PHR5 : 1;
9930 unsigned : 1;
9931 unsigned : 1;
9934 struct
9936 unsigned G2PHR0 : 1;
9937 unsigned G2PHR1 : 1;
9938 unsigned G2PHR2 : 1;
9939 unsigned G2PHR3 : 1;
9940 unsigned G2PHR4 : 1;
9941 unsigned G2PHR5 : 1;
9942 unsigned : 1;
9943 unsigned : 1;
9946 struct
9948 unsigned G2PHR : 6;
9949 unsigned : 2;
9952 struct
9954 unsigned PHR : 6;
9955 unsigned : 2;
9957 } __COG2PHRbits_t;
9959 extern __at(0x070D) volatile __COG2PHRbits_t COG2PHRbits;
9961 #define _COG2PHR_PHR0 0x01
9962 #define _COG2PHR_G2PHR0 0x01
9963 #define _COG2PHR_PHR1 0x02
9964 #define _COG2PHR_G2PHR1 0x02
9965 #define _COG2PHR_PHR2 0x04
9966 #define _COG2PHR_G2PHR2 0x04
9967 #define _COG2PHR_PHR3 0x08
9968 #define _COG2PHR_G2PHR3 0x08
9969 #define _COG2PHR_PHR4 0x10
9970 #define _COG2PHR_G2PHR4 0x10
9971 #define _COG2PHR_PHR5 0x20
9972 #define _COG2PHR_G2PHR5 0x20
9974 //==============================================================================
9977 //==============================================================================
9978 // COG2PHF Bits
9980 extern __at(0x070E) __sfr COG2PHF;
9982 typedef union
9984 struct
9986 unsigned PHF0 : 1;
9987 unsigned PHF1 : 1;
9988 unsigned PHF2 : 1;
9989 unsigned PHF3 : 1;
9990 unsigned PHF4 : 1;
9991 unsigned PHF5 : 1;
9992 unsigned : 1;
9993 unsigned : 1;
9996 struct
9998 unsigned G2PHF0 : 1;
9999 unsigned G2PHF1 : 1;
10000 unsigned G2PHF2 : 1;
10001 unsigned G2PHF3 : 1;
10002 unsigned G2PHF4 : 1;
10003 unsigned G2PHF5 : 1;
10004 unsigned : 1;
10005 unsigned : 1;
10008 struct
10010 unsigned G2PHF : 6;
10011 unsigned : 2;
10014 struct
10016 unsigned PHF : 6;
10017 unsigned : 2;
10019 } __COG2PHFbits_t;
10021 extern __at(0x070E) volatile __COG2PHFbits_t COG2PHFbits;
10023 #define _COG2PHF_PHF0 0x01
10024 #define _COG2PHF_G2PHF0 0x01
10025 #define _COG2PHF_PHF1 0x02
10026 #define _COG2PHF_G2PHF1 0x02
10027 #define _COG2PHF_PHF2 0x04
10028 #define _COG2PHF_G2PHF2 0x04
10029 #define _COG2PHF_PHF3 0x08
10030 #define _COG2PHF_G2PHF3 0x08
10031 #define _COG2PHF_PHF4 0x10
10032 #define _COG2PHF_G2PHF4 0x10
10033 #define _COG2PHF_PHF5 0x20
10034 #define _COG2PHF_G2PHF5 0x20
10036 //==============================================================================
10039 //==============================================================================
10040 // COG2BLKR Bits
10042 extern __at(0x070F) __sfr COG2BLKR;
10044 typedef union
10046 struct
10048 unsigned BLKR0 : 1;
10049 unsigned BLKR1 : 1;
10050 unsigned BLKR2 : 1;
10051 unsigned BLKR3 : 1;
10052 unsigned BLKR4 : 1;
10053 unsigned BLKR5 : 1;
10054 unsigned : 1;
10055 unsigned : 1;
10058 struct
10060 unsigned G2BLKR0 : 1;
10061 unsigned G2BLKR1 : 1;
10062 unsigned G2BLKR2 : 1;
10063 unsigned G2BLKR3 : 1;
10064 unsigned G2BLKR4 : 1;
10065 unsigned G2BLKR5 : 1;
10066 unsigned : 1;
10067 unsigned : 1;
10070 struct
10072 unsigned G2BLKR : 6;
10073 unsigned : 2;
10076 struct
10078 unsigned BLKR : 6;
10079 unsigned : 2;
10081 } __COG2BLKRbits_t;
10083 extern __at(0x070F) volatile __COG2BLKRbits_t COG2BLKRbits;
10085 #define _COG2BLKR_BLKR0 0x01
10086 #define _COG2BLKR_G2BLKR0 0x01
10087 #define _COG2BLKR_BLKR1 0x02
10088 #define _COG2BLKR_G2BLKR1 0x02
10089 #define _COG2BLKR_BLKR2 0x04
10090 #define _COG2BLKR_G2BLKR2 0x04
10091 #define _COG2BLKR_BLKR3 0x08
10092 #define _COG2BLKR_G2BLKR3 0x08
10093 #define _COG2BLKR_BLKR4 0x10
10094 #define _COG2BLKR_G2BLKR4 0x10
10095 #define _COG2BLKR_BLKR5 0x20
10096 #define _COG2BLKR_G2BLKR5 0x20
10098 //==============================================================================
10101 //==============================================================================
10102 // COG2BLKF Bits
10104 extern __at(0x0710) __sfr COG2BLKF;
10106 typedef union
10108 struct
10110 unsigned BLKF0 : 1;
10111 unsigned BLKF1 : 1;
10112 unsigned BLKF2 : 1;
10113 unsigned BLKF3 : 1;
10114 unsigned BLKF4 : 1;
10115 unsigned BLKF5 : 1;
10116 unsigned : 1;
10117 unsigned : 1;
10120 struct
10122 unsigned G2BLKF0 : 1;
10123 unsigned G2BLKF1 : 1;
10124 unsigned G2BLKF2 : 1;
10125 unsigned G2BLKF3 : 1;
10126 unsigned G2BLKF4 : 1;
10127 unsigned G2BLKF5 : 1;
10128 unsigned : 1;
10129 unsigned : 1;
10132 struct
10134 unsigned G2BLKF : 6;
10135 unsigned : 2;
10138 struct
10140 unsigned BLKF : 6;
10141 unsigned : 2;
10143 } __COG2BLKFbits_t;
10145 extern __at(0x0710) volatile __COG2BLKFbits_t COG2BLKFbits;
10147 #define _COG2BLKF_BLKF0 0x01
10148 #define _COG2BLKF_G2BLKF0 0x01
10149 #define _COG2BLKF_BLKF1 0x02
10150 #define _COG2BLKF_G2BLKF1 0x02
10151 #define _COG2BLKF_BLKF2 0x04
10152 #define _COG2BLKF_G2BLKF2 0x04
10153 #define _COG2BLKF_BLKF3 0x08
10154 #define _COG2BLKF_G2BLKF3 0x08
10155 #define _COG2BLKF_BLKF4 0x10
10156 #define _COG2BLKF_G2BLKF4 0x10
10157 #define _COG2BLKF_BLKF5 0x20
10158 #define _COG2BLKF_G2BLKF5 0x20
10160 //==============================================================================
10163 //==============================================================================
10164 // COG2DBR Bits
10166 extern __at(0x0711) __sfr COG2DBR;
10168 typedef union
10170 struct
10172 unsigned DBR0 : 1;
10173 unsigned DBR1 : 1;
10174 unsigned DBR2 : 1;
10175 unsigned DBR3 : 1;
10176 unsigned DBR4 : 1;
10177 unsigned DBR5 : 1;
10178 unsigned : 1;
10179 unsigned : 1;
10182 struct
10184 unsigned G2DBR0 : 1;
10185 unsigned G2DBR1 : 1;
10186 unsigned G2DBR2 : 1;
10187 unsigned G2DBR3 : 1;
10188 unsigned G2DBR4 : 1;
10189 unsigned G2DBR5 : 1;
10190 unsigned : 1;
10191 unsigned : 1;
10194 struct
10196 unsigned DBR : 6;
10197 unsigned : 2;
10200 struct
10202 unsigned G2DBR : 6;
10203 unsigned : 2;
10205 } __COG2DBRbits_t;
10207 extern __at(0x0711) volatile __COG2DBRbits_t COG2DBRbits;
10209 #define _COG2DBR_DBR0 0x01
10210 #define _COG2DBR_G2DBR0 0x01
10211 #define _COG2DBR_DBR1 0x02
10212 #define _COG2DBR_G2DBR1 0x02
10213 #define _COG2DBR_DBR2 0x04
10214 #define _COG2DBR_G2DBR2 0x04
10215 #define _COG2DBR_DBR3 0x08
10216 #define _COG2DBR_G2DBR3 0x08
10217 #define _COG2DBR_DBR4 0x10
10218 #define _COG2DBR_G2DBR4 0x10
10219 #define _COG2DBR_DBR5 0x20
10220 #define _COG2DBR_G2DBR5 0x20
10222 //==============================================================================
10225 //==============================================================================
10226 // COG2DBF Bits
10228 extern __at(0x0712) __sfr COG2DBF;
10230 typedef union
10232 struct
10234 unsigned DBF0 : 1;
10235 unsigned DBF1 : 1;
10236 unsigned DBF2 : 1;
10237 unsigned DBF3 : 1;
10238 unsigned DBF4 : 1;
10239 unsigned DBF5 : 1;
10240 unsigned : 1;
10241 unsigned : 1;
10244 struct
10246 unsigned G2DBF0 : 1;
10247 unsigned G2DBF1 : 1;
10248 unsigned G2DBF2 : 1;
10249 unsigned G2DBF3 : 1;
10250 unsigned G2DBF4 : 1;
10251 unsigned G2DBF5 : 1;
10252 unsigned : 1;
10253 unsigned : 1;
10256 struct
10258 unsigned G2DBF : 6;
10259 unsigned : 2;
10262 struct
10264 unsigned DBF : 6;
10265 unsigned : 2;
10267 } __COG2DBFbits_t;
10269 extern __at(0x0712) volatile __COG2DBFbits_t COG2DBFbits;
10271 #define _COG2DBF_DBF0 0x01
10272 #define _COG2DBF_G2DBF0 0x01
10273 #define _COG2DBF_DBF1 0x02
10274 #define _COG2DBF_G2DBF1 0x02
10275 #define _COG2DBF_DBF2 0x04
10276 #define _COG2DBF_G2DBF2 0x04
10277 #define _COG2DBF_DBF3 0x08
10278 #define _COG2DBF_G2DBF3 0x08
10279 #define _COG2DBF_DBF4 0x10
10280 #define _COG2DBF_G2DBF4 0x10
10281 #define _COG2DBF_DBF5 0x20
10282 #define _COG2DBF_G2DBF5 0x20
10284 //==============================================================================
10287 //==============================================================================
10288 // COG2CON0 Bits
10290 extern __at(0x0713) __sfr COG2CON0;
10292 typedef union
10294 struct
10296 unsigned MD0 : 1;
10297 unsigned MD1 : 1;
10298 unsigned MD2 : 1;
10299 unsigned CS0 : 1;
10300 unsigned CS1 : 1;
10301 unsigned : 1;
10302 unsigned LD : 1;
10303 unsigned EN : 1;
10306 struct
10308 unsigned G2MD0 : 1;
10309 unsigned G2MD1 : 1;
10310 unsigned G2MD2 : 1;
10311 unsigned G2CS0 : 1;
10312 unsigned G2CS1 : 1;
10313 unsigned : 1;
10314 unsigned G2LD : 1;
10315 unsigned G2EN : 1;
10318 struct
10320 unsigned G2MD : 3;
10321 unsigned : 5;
10324 struct
10326 unsigned MD : 3;
10327 unsigned : 5;
10330 struct
10332 unsigned : 3;
10333 unsigned G2CS : 2;
10334 unsigned : 3;
10337 struct
10339 unsigned : 3;
10340 unsigned CS : 2;
10341 unsigned : 3;
10343 } __COG2CON0bits_t;
10345 extern __at(0x0713) volatile __COG2CON0bits_t COG2CON0bits;
10347 #define _COG2CON0_MD0 0x01
10348 #define _COG2CON0_G2MD0 0x01
10349 #define _COG2CON0_MD1 0x02
10350 #define _COG2CON0_G2MD1 0x02
10351 #define _COG2CON0_MD2 0x04
10352 #define _COG2CON0_G2MD2 0x04
10353 #define _COG2CON0_CS0 0x08
10354 #define _COG2CON0_G2CS0 0x08
10355 #define _COG2CON0_CS1 0x10
10356 #define _COG2CON0_G2CS1 0x10
10357 #define _COG2CON0_LD 0x40
10358 #define _COG2CON0_G2LD 0x40
10359 #define _COG2CON0_EN 0x80
10360 #define _COG2CON0_G2EN 0x80
10362 //==============================================================================
10365 //==============================================================================
10366 // COG2CON1 Bits
10368 extern __at(0x0714) __sfr COG2CON1;
10370 typedef union
10372 struct
10374 unsigned POLA : 1;
10375 unsigned POLB : 1;
10376 unsigned POLC : 1;
10377 unsigned POLD : 1;
10378 unsigned : 1;
10379 unsigned : 1;
10380 unsigned FDBS : 1;
10381 unsigned RDBS : 1;
10384 struct
10386 unsigned G2POLA : 1;
10387 unsigned G2POLB : 1;
10388 unsigned G2POLC : 1;
10389 unsigned G2POLD : 1;
10390 unsigned : 1;
10391 unsigned : 1;
10392 unsigned G2FDBS : 1;
10393 unsigned G2RDBS : 1;
10395 } __COG2CON1bits_t;
10397 extern __at(0x0714) volatile __COG2CON1bits_t COG2CON1bits;
10399 #define _COG2CON1_POLA 0x01
10400 #define _COG2CON1_G2POLA 0x01
10401 #define _COG2CON1_POLB 0x02
10402 #define _COG2CON1_G2POLB 0x02
10403 #define _COG2CON1_POLC 0x04
10404 #define _COG2CON1_G2POLC 0x04
10405 #define _COG2CON1_POLD 0x08
10406 #define _COG2CON1_G2POLD 0x08
10407 #define _COG2CON1_FDBS 0x40
10408 #define _COG2CON1_G2FDBS 0x40
10409 #define _COG2CON1_RDBS 0x80
10410 #define _COG2CON1_G2RDBS 0x80
10412 //==============================================================================
10415 //==============================================================================
10416 // COG2RIS0 Bits
10418 extern __at(0x0715) __sfr COG2RIS0;
10420 typedef union
10422 struct
10424 unsigned RIS0 : 1;
10425 unsigned RIS1 : 1;
10426 unsigned RIS2 : 1;
10427 unsigned RIS3 : 1;
10428 unsigned RIS4 : 1;
10429 unsigned RIS5 : 1;
10430 unsigned RIS6 : 1;
10431 unsigned RIS7 : 1;
10434 struct
10436 unsigned G2RIS0 : 1;
10437 unsigned G2RIS1 : 1;
10438 unsigned G2RIS2 : 1;
10439 unsigned G2RIS3 : 1;
10440 unsigned G2RIS4 : 1;
10441 unsigned G2RIS5 : 1;
10442 unsigned G2RIS6 : 1;
10443 unsigned G2RIS7 : 1;
10445 } __COG2RIS0bits_t;
10447 extern __at(0x0715) volatile __COG2RIS0bits_t COG2RIS0bits;
10449 #define _COG2RIS0_RIS0 0x01
10450 #define _COG2RIS0_G2RIS0 0x01
10451 #define _COG2RIS0_RIS1 0x02
10452 #define _COG2RIS0_G2RIS1 0x02
10453 #define _COG2RIS0_RIS2 0x04
10454 #define _COG2RIS0_G2RIS2 0x04
10455 #define _COG2RIS0_RIS3 0x08
10456 #define _COG2RIS0_G2RIS3 0x08
10457 #define _COG2RIS0_RIS4 0x10
10458 #define _COG2RIS0_G2RIS4 0x10
10459 #define _COG2RIS0_RIS5 0x20
10460 #define _COG2RIS0_G2RIS5 0x20
10461 #define _COG2RIS0_RIS6 0x40
10462 #define _COG2RIS0_G2RIS6 0x40
10463 #define _COG2RIS0_RIS7 0x80
10464 #define _COG2RIS0_G2RIS7 0x80
10466 //==============================================================================
10469 //==============================================================================
10470 // COG2RIS1 Bits
10472 extern __at(0x0716) __sfr COG2RIS1;
10474 typedef union
10476 struct
10478 unsigned RIS8 : 1;
10479 unsigned RIS9 : 1;
10480 unsigned RIS10 : 1;
10481 unsigned RIS11 : 1;
10482 unsigned RIS12 : 1;
10483 unsigned RIS13 : 1;
10484 unsigned : 1;
10485 unsigned : 1;
10488 struct
10490 unsigned G2RIS8 : 1;
10491 unsigned G2RIS9 : 1;
10492 unsigned G2RIS10 : 1;
10493 unsigned G2RIS11 : 1;
10494 unsigned G2RIS12 : 1;
10495 unsigned G2RIS13 : 1;
10496 unsigned : 1;
10497 unsigned : 1;
10499 } __COG2RIS1bits_t;
10501 extern __at(0x0716) volatile __COG2RIS1bits_t COG2RIS1bits;
10503 #define _COG2RIS1_RIS8 0x01
10504 #define _COG2RIS1_G2RIS8 0x01
10505 #define _COG2RIS1_RIS9 0x02
10506 #define _COG2RIS1_G2RIS9 0x02
10507 #define _COG2RIS1_RIS10 0x04
10508 #define _COG2RIS1_G2RIS10 0x04
10509 #define _COG2RIS1_RIS11 0x08
10510 #define _COG2RIS1_G2RIS11 0x08
10511 #define _COG2RIS1_RIS12 0x10
10512 #define _COG2RIS1_G2RIS12 0x10
10513 #define _COG2RIS1_RIS13 0x20
10514 #define _COG2RIS1_G2RIS13 0x20
10516 //==============================================================================
10519 //==============================================================================
10520 // COG2RSIM0 Bits
10522 extern __at(0x0717) __sfr COG2RSIM0;
10524 typedef union
10526 struct
10528 unsigned RSIM0 : 1;
10529 unsigned RSIM1 : 1;
10530 unsigned RSIM2 : 1;
10531 unsigned RSIM3 : 1;
10532 unsigned RSIM4 : 1;
10533 unsigned RSIM5 : 1;
10534 unsigned RSIM6 : 1;
10535 unsigned RSIM7 : 1;
10538 struct
10540 unsigned G2RSIM0 : 1;
10541 unsigned G2RSIM1 : 1;
10542 unsigned G2RSIM2 : 1;
10543 unsigned G2RSIM3 : 1;
10544 unsigned G2RSIM4 : 1;
10545 unsigned G2RSIM5 : 1;
10546 unsigned G2RSIM6 : 1;
10547 unsigned G2RSIM7 : 1;
10549 } __COG2RSIM0bits_t;
10551 extern __at(0x0717) volatile __COG2RSIM0bits_t COG2RSIM0bits;
10553 #define _COG2RSIM0_RSIM0 0x01
10554 #define _COG2RSIM0_G2RSIM0 0x01
10555 #define _COG2RSIM0_RSIM1 0x02
10556 #define _COG2RSIM0_G2RSIM1 0x02
10557 #define _COG2RSIM0_RSIM2 0x04
10558 #define _COG2RSIM0_G2RSIM2 0x04
10559 #define _COG2RSIM0_RSIM3 0x08
10560 #define _COG2RSIM0_G2RSIM3 0x08
10561 #define _COG2RSIM0_RSIM4 0x10
10562 #define _COG2RSIM0_G2RSIM4 0x10
10563 #define _COG2RSIM0_RSIM5 0x20
10564 #define _COG2RSIM0_G2RSIM5 0x20
10565 #define _COG2RSIM0_RSIM6 0x40
10566 #define _COG2RSIM0_G2RSIM6 0x40
10567 #define _COG2RSIM0_RSIM7 0x80
10568 #define _COG2RSIM0_G2RSIM7 0x80
10570 //==============================================================================
10573 //==============================================================================
10574 // COG2RSIM1 Bits
10576 extern __at(0x0718) __sfr COG2RSIM1;
10578 typedef union
10580 struct
10582 unsigned RSIM8 : 1;
10583 unsigned RSIM9 : 1;
10584 unsigned RSIM10 : 1;
10585 unsigned RSIM11 : 1;
10586 unsigned RSIM12 : 1;
10587 unsigned RSIM13 : 1;
10588 unsigned : 1;
10589 unsigned : 1;
10592 struct
10594 unsigned G2RSIM8 : 1;
10595 unsigned G2RSIM9 : 1;
10596 unsigned G2RSIM10 : 1;
10597 unsigned G2RSIM11 : 1;
10598 unsigned G2RSIM12 : 1;
10599 unsigned G2RSIM13 : 1;
10600 unsigned : 1;
10601 unsigned : 1;
10603 } __COG2RSIM1bits_t;
10605 extern __at(0x0718) volatile __COG2RSIM1bits_t COG2RSIM1bits;
10607 #define _COG2RSIM1_RSIM8 0x01
10608 #define _COG2RSIM1_G2RSIM8 0x01
10609 #define _COG2RSIM1_RSIM9 0x02
10610 #define _COG2RSIM1_G2RSIM9 0x02
10611 #define _COG2RSIM1_RSIM10 0x04
10612 #define _COG2RSIM1_G2RSIM10 0x04
10613 #define _COG2RSIM1_RSIM11 0x08
10614 #define _COG2RSIM1_G2RSIM11 0x08
10615 #define _COG2RSIM1_RSIM12 0x10
10616 #define _COG2RSIM1_G2RSIM12 0x10
10617 #define _COG2RSIM1_RSIM13 0x20
10618 #define _COG2RSIM1_G2RSIM13 0x20
10620 //==============================================================================
10623 //==============================================================================
10624 // COG2FIS0 Bits
10626 extern __at(0x0719) __sfr COG2FIS0;
10628 typedef union
10630 struct
10632 unsigned FIS0 : 1;
10633 unsigned FIS1 : 1;
10634 unsigned FIS2 : 1;
10635 unsigned FIS3 : 1;
10636 unsigned FIS4 : 1;
10637 unsigned FIS5 : 1;
10638 unsigned FIS6 : 1;
10639 unsigned FIS7 : 1;
10642 struct
10644 unsigned G2FIS0 : 1;
10645 unsigned G2FIS1 : 1;
10646 unsigned G2FIS2 : 1;
10647 unsigned G2FIS3 : 1;
10648 unsigned G2FIS4 : 1;
10649 unsigned G2FIS5 : 1;
10650 unsigned G2FIS6 : 1;
10651 unsigned G2FIS7 : 1;
10653 } __COG2FIS0bits_t;
10655 extern __at(0x0719) volatile __COG2FIS0bits_t COG2FIS0bits;
10657 #define _COG2FIS0_FIS0 0x01
10658 #define _COG2FIS0_G2FIS0 0x01
10659 #define _COG2FIS0_FIS1 0x02
10660 #define _COG2FIS0_G2FIS1 0x02
10661 #define _COG2FIS0_FIS2 0x04
10662 #define _COG2FIS0_G2FIS2 0x04
10663 #define _COG2FIS0_FIS3 0x08
10664 #define _COG2FIS0_G2FIS3 0x08
10665 #define _COG2FIS0_FIS4 0x10
10666 #define _COG2FIS0_G2FIS4 0x10
10667 #define _COG2FIS0_FIS5 0x20
10668 #define _COG2FIS0_G2FIS5 0x20
10669 #define _COG2FIS0_FIS6 0x40
10670 #define _COG2FIS0_G2FIS6 0x40
10671 #define _COG2FIS0_FIS7 0x80
10672 #define _COG2FIS0_G2FIS7 0x80
10674 //==============================================================================
10677 //==============================================================================
10678 // COG2FIS1 Bits
10680 extern __at(0x071A) __sfr COG2FIS1;
10682 typedef union
10684 struct
10686 unsigned FIS8 : 1;
10687 unsigned FIS9 : 1;
10688 unsigned FIS10 : 1;
10689 unsigned FIS11 : 1;
10690 unsigned FIS12 : 1;
10691 unsigned FIS13 : 1;
10692 unsigned : 1;
10693 unsigned : 1;
10696 struct
10698 unsigned G2FIS8 : 1;
10699 unsigned G2FIS9 : 1;
10700 unsigned G2FIS10 : 1;
10701 unsigned G2FIS11 : 1;
10702 unsigned G2FIS12 : 1;
10703 unsigned G2FIS13 : 1;
10704 unsigned : 1;
10705 unsigned : 1;
10707 } __COG2FIS1bits_t;
10709 extern __at(0x071A) volatile __COG2FIS1bits_t COG2FIS1bits;
10711 #define _COG2FIS1_FIS8 0x01
10712 #define _COG2FIS1_G2FIS8 0x01
10713 #define _COG2FIS1_FIS9 0x02
10714 #define _COG2FIS1_G2FIS9 0x02
10715 #define _COG2FIS1_FIS10 0x04
10716 #define _COG2FIS1_G2FIS10 0x04
10717 #define _COG2FIS1_FIS11 0x08
10718 #define _COG2FIS1_G2FIS11 0x08
10719 #define _COG2FIS1_FIS12 0x10
10720 #define _COG2FIS1_G2FIS12 0x10
10721 #define _COG2FIS1_FIS13 0x20
10722 #define _COG2FIS1_G2FIS13 0x20
10724 //==============================================================================
10727 //==============================================================================
10728 // COG2FSIM0 Bits
10730 extern __at(0x071B) __sfr COG2FSIM0;
10732 typedef union
10734 struct
10736 unsigned FSIM0 : 1;
10737 unsigned FSIM1 : 1;
10738 unsigned FSIM2 : 1;
10739 unsigned FSIM3 : 1;
10740 unsigned FSIM4 : 1;
10741 unsigned FSIM5 : 1;
10742 unsigned FSIM6 : 1;
10743 unsigned FSIM7 : 1;
10746 struct
10748 unsigned G2FSIM0 : 1;
10749 unsigned G2FSIM1 : 1;
10750 unsigned G2FSIM2 : 1;
10751 unsigned G2FSIM3 : 1;
10752 unsigned G2FSIM4 : 1;
10753 unsigned G2FSIM5 : 1;
10754 unsigned G2FSIM6 : 1;
10755 unsigned G2FSIM7 : 1;
10757 } __COG2FSIM0bits_t;
10759 extern __at(0x071B) volatile __COG2FSIM0bits_t COG2FSIM0bits;
10761 #define _COG2FSIM0_FSIM0 0x01
10762 #define _COG2FSIM0_G2FSIM0 0x01
10763 #define _COG2FSIM0_FSIM1 0x02
10764 #define _COG2FSIM0_G2FSIM1 0x02
10765 #define _COG2FSIM0_FSIM2 0x04
10766 #define _COG2FSIM0_G2FSIM2 0x04
10767 #define _COG2FSIM0_FSIM3 0x08
10768 #define _COG2FSIM0_G2FSIM3 0x08
10769 #define _COG2FSIM0_FSIM4 0x10
10770 #define _COG2FSIM0_G2FSIM4 0x10
10771 #define _COG2FSIM0_FSIM5 0x20
10772 #define _COG2FSIM0_G2FSIM5 0x20
10773 #define _COG2FSIM0_FSIM6 0x40
10774 #define _COG2FSIM0_G2FSIM6 0x40
10775 #define _COG2FSIM0_FSIM7 0x80
10776 #define _COG2FSIM0_G2FSIM7 0x80
10778 //==============================================================================
10781 //==============================================================================
10782 // COG2FSIM1 Bits
10784 extern __at(0x071C) __sfr COG2FSIM1;
10786 typedef union
10788 struct
10790 unsigned FSIM8 : 1;
10791 unsigned FSIM9 : 1;
10792 unsigned FSIM10 : 1;
10793 unsigned FSIM11 : 1;
10794 unsigned FSIM12 : 1;
10795 unsigned FSIM13 : 1;
10796 unsigned : 1;
10797 unsigned : 1;
10800 struct
10802 unsigned G2FSIM8 : 1;
10803 unsigned G2FSIM9 : 1;
10804 unsigned G2FSIM10 : 1;
10805 unsigned G2FSIM11 : 1;
10806 unsigned G2FSIM12 : 1;
10807 unsigned G2FSIM13 : 1;
10808 unsigned : 1;
10809 unsigned : 1;
10811 } __COG2FSIM1bits_t;
10813 extern __at(0x071C) volatile __COG2FSIM1bits_t COG2FSIM1bits;
10815 #define _COG2FSIM1_FSIM8 0x01
10816 #define _COG2FSIM1_G2FSIM8 0x01
10817 #define _COG2FSIM1_FSIM9 0x02
10818 #define _COG2FSIM1_G2FSIM9 0x02
10819 #define _COG2FSIM1_FSIM10 0x04
10820 #define _COG2FSIM1_G2FSIM10 0x04
10821 #define _COG2FSIM1_FSIM11 0x08
10822 #define _COG2FSIM1_G2FSIM11 0x08
10823 #define _COG2FSIM1_FSIM12 0x10
10824 #define _COG2FSIM1_G2FSIM12 0x10
10825 #define _COG2FSIM1_FSIM13 0x20
10826 #define _COG2FSIM1_G2FSIM13 0x20
10828 //==============================================================================
10831 //==============================================================================
10832 // COG2ASD0 Bits
10834 extern __at(0x071D) __sfr COG2ASD0;
10836 typedef union
10838 struct
10840 unsigned : 1;
10841 unsigned : 1;
10842 unsigned ASDAC0 : 1;
10843 unsigned ASDAC1 : 1;
10844 unsigned ASDBD0 : 1;
10845 unsigned ASDBD1 : 1;
10846 unsigned ASREN : 1;
10847 unsigned ASE : 1;
10850 struct
10852 unsigned : 1;
10853 unsigned : 1;
10854 unsigned G2ASDAC0 : 1;
10855 unsigned G2ASDAC1 : 1;
10856 unsigned G2ASDBD0 : 1;
10857 unsigned G2ASDBD1 : 1;
10858 unsigned ARSEN : 1;
10859 unsigned G2ASE : 1;
10862 struct
10864 unsigned : 1;
10865 unsigned : 1;
10866 unsigned : 1;
10867 unsigned : 1;
10868 unsigned : 1;
10869 unsigned : 1;
10870 unsigned G2ARSEN : 1;
10871 unsigned : 1;
10874 struct
10876 unsigned : 1;
10877 unsigned : 1;
10878 unsigned : 1;
10879 unsigned : 1;
10880 unsigned : 1;
10881 unsigned : 1;
10882 unsigned G2ASREN : 1;
10883 unsigned : 1;
10886 struct
10888 unsigned : 2;
10889 unsigned ASDAC : 2;
10890 unsigned : 4;
10893 struct
10895 unsigned : 2;
10896 unsigned G2ASDAC : 2;
10897 unsigned : 4;
10900 struct
10902 unsigned : 4;
10903 unsigned G2ASDBD : 2;
10904 unsigned : 2;
10907 struct
10909 unsigned : 4;
10910 unsigned ASDBD : 2;
10911 unsigned : 2;
10913 } __COG2ASD0bits_t;
10915 extern __at(0x071D) volatile __COG2ASD0bits_t COG2ASD0bits;
10917 #define _COG2ASD0_ASDAC0 0x04
10918 #define _COG2ASD0_G2ASDAC0 0x04
10919 #define _COG2ASD0_ASDAC1 0x08
10920 #define _COG2ASD0_G2ASDAC1 0x08
10921 #define _COG2ASD0_ASDBD0 0x10
10922 #define _COG2ASD0_G2ASDBD0 0x10
10923 #define _COG2ASD0_ASDBD1 0x20
10924 #define _COG2ASD0_G2ASDBD1 0x20
10925 #define _COG2ASD0_ASREN 0x40
10926 #define _COG2ASD0_ARSEN 0x40
10927 #define _COG2ASD0_G2ARSEN 0x40
10928 #define _COG2ASD0_G2ASREN 0x40
10929 #define _COG2ASD0_ASE 0x80
10930 #define _COG2ASD0_G2ASE 0x80
10932 //==============================================================================
10935 //==============================================================================
10936 // COG2ASD1 Bits
10938 extern __at(0x071E) __sfr COG2ASD1;
10940 typedef union
10942 struct
10944 unsigned AS0E : 1;
10945 unsigned AS1E : 1;
10946 unsigned AS2E : 1;
10947 unsigned AS3E : 1;
10948 unsigned AS4E : 1;
10949 unsigned AS5E : 1;
10950 unsigned AS6E : 1;
10951 unsigned AS7E : 1;
10954 struct
10956 unsigned G2AS0E : 1;
10957 unsigned G2AS1E : 1;
10958 unsigned G2AS2E : 1;
10959 unsigned G2AS3E : 1;
10960 unsigned G2AS4E : 1;
10961 unsigned G2AS5E : 1;
10962 unsigned G2AS6E : 1;
10963 unsigned G2AS7E : 1;
10965 } __COG2ASD1bits_t;
10967 extern __at(0x071E) volatile __COG2ASD1bits_t COG2ASD1bits;
10969 #define _COG2ASD1_AS0E 0x01
10970 #define _COG2ASD1_G2AS0E 0x01
10971 #define _COG2ASD1_AS1E 0x02
10972 #define _COG2ASD1_G2AS1E 0x02
10973 #define _COG2ASD1_AS2E 0x04
10974 #define _COG2ASD1_G2AS2E 0x04
10975 #define _COG2ASD1_AS3E 0x08
10976 #define _COG2ASD1_G2AS3E 0x08
10977 #define _COG2ASD1_AS4E 0x10
10978 #define _COG2ASD1_G2AS4E 0x10
10979 #define _COG2ASD1_AS5E 0x20
10980 #define _COG2ASD1_G2AS5E 0x20
10981 #define _COG2ASD1_AS6E 0x40
10982 #define _COG2ASD1_G2AS6E 0x40
10983 #define _COG2ASD1_AS7E 0x80
10984 #define _COG2ASD1_G2AS7E 0x80
10986 //==============================================================================
10989 //==============================================================================
10990 // COG2STR Bits
10992 extern __at(0x071F) __sfr COG2STR;
10994 typedef union
10996 struct
10998 unsigned STRA : 1;
10999 unsigned STRB : 1;
11000 unsigned STRC : 1;
11001 unsigned STRD : 1;
11002 unsigned SDATA : 1;
11003 unsigned SDATB : 1;
11004 unsigned SDATC : 1;
11005 unsigned SDATD : 1;
11008 struct
11010 unsigned G2STRA : 1;
11011 unsigned G2STRB : 1;
11012 unsigned G2STRC : 1;
11013 unsigned G2STRD : 1;
11014 unsigned G2SDATA : 1;
11015 unsigned G2SDATB : 1;
11016 unsigned G2SDATC : 1;
11017 unsigned G2SDATD : 1;
11019 } __COG2STRbits_t;
11021 extern __at(0x071F) volatile __COG2STRbits_t COG2STRbits;
11023 #define _COG2STR_STRA 0x01
11024 #define _COG2STR_G2STRA 0x01
11025 #define _COG2STR_STRB 0x02
11026 #define _COG2STR_G2STRB 0x02
11027 #define _COG2STR_STRC 0x04
11028 #define _COG2STR_G2STRC 0x04
11029 #define _COG2STR_STRD 0x08
11030 #define _COG2STR_G2STRD 0x08
11031 #define _COG2STR_SDATA 0x10
11032 #define _COG2STR_G2SDATA 0x10
11033 #define _COG2STR_SDATB 0x20
11034 #define _COG2STR_G2SDATB 0x20
11035 #define _COG2STR_SDATC 0x40
11036 #define _COG2STR_G2SDATC 0x40
11037 #define _COG2STR_SDATD 0x80
11038 #define _COG2STR_G2SDATD 0x80
11040 //==============================================================================
11043 //==============================================================================
11044 // PRG1RTSS Bits
11046 extern __at(0x0794) __sfr PRG1RTSS;
11048 typedef union
11050 struct
11052 unsigned RTSS0 : 1;
11053 unsigned RTSS1 : 1;
11054 unsigned RTSS2 : 1;
11055 unsigned RTSS3 : 1;
11056 unsigned : 1;
11057 unsigned : 1;
11058 unsigned : 1;
11059 unsigned : 1;
11062 struct
11064 unsigned RG1RTSS0 : 1;
11065 unsigned RG1RTSS1 : 1;
11066 unsigned RG1RTSS2 : 1;
11067 unsigned RG1RTSS3 : 1;
11068 unsigned : 1;
11069 unsigned : 1;
11070 unsigned : 1;
11071 unsigned : 1;
11074 struct
11076 unsigned RTSS : 4;
11077 unsigned : 4;
11080 struct
11082 unsigned RG1RTSS : 4;
11083 unsigned : 4;
11085 } __PRG1RTSSbits_t;
11087 extern __at(0x0794) volatile __PRG1RTSSbits_t PRG1RTSSbits;
11089 #define _RTSS0 0x01
11090 #define _RG1RTSS0 0x01
11091 #define _RTSS1 0x02
11092 #define _RG1RTSS1 0x02
11093 #define _RTSS2 0x04
11094 #define _RG1RTSS2 0x04
11095 #define _RTSS3 0x08
11096 #define _RG1RTSS3 0x08
11098 //==============================================================================
11101 //==============================================================================
11102 // PRG1FTSS Bits
11104 extern __at(0x0795) __sfr PRG1FTSS;
11106 typedef union
11108 struct
11110 unsigned FTSS0 : 1;
11111 unsigned FTSS1 : 1;
11112 unsigned FTSS2 : 1;
11113 unsigned FTSS3 : 1;
11114 unsigned : 1;
11115 unsigned : 1;
11116 unsigned : 1;
11117 unsigned : 1;
11120 struct
11122 unsigned RG1FTSS0 : 1;
11123 unsigned RG1FTSS1 : 1;
11124 unsigned RG1FTSS2 : 1;
11125 unsigned RG1FTSS3 : 1;
11126 unsigned : 1;
11127 unsigned : 1;
11128 unsigned : 1;
11129 unsigned : 1;
11132 struct
11134 unsigned FTSS : 4;
11135 unsigned : 4;
11138 struct
11140 unsigned RG1FTSS : 4;
11141 unsigned : 4;
11143 } __PRG1FTSSbits_t;
11145 extern __at(0x0795) volatile __PRG1FTSSbits_t PRG1FTSSbits;
11147 #define _FTSS0 0x01
11148 #define _RG1FTSS0 0x01
11149 #define _FTSS1 0x02
11150 #define _RG1FTSS1 0x02
11151 #define _FTSS2 0x04
11152 #define _RG1FTSS2 0x04
11153 #define _FTSS3 0x08
11154 #define _RG1FTSS3 0x08
11156 //==============================================================================
11159 //==============================================================================
11160 // PRG1INS Bits
11162 extern __at(0x0796) __sfr PRG1INS;
11164 typedef union
11166 struct
11168 unsigned INS0 : 1;
11169 unsigned INS1 : 1;
11170 unsigned INS2 : 1;
11171 unsigned INS3 : 1;
11172 unsigned : 1;
11173 unsigned : 1;
11174 unsigned : 1;
11175 unsigned : 1;
11178 struct
11180 unsigned RG1INS0 : 1;
11181 unsigned RG1INS1 : 1;
11182 unsigned RG1INS2 : 1;
11183 unsigned RG1INS3 : 1;
11184 unsigned : 1;
11185 unsigned : 1;
11186 unsigned : 1;
11187 unsigned : 1;
11190 struct
11192 unsigned RG1INS : 4;
11193 unsigned : 4;
11196 struct
11198 unsigned INS : 4;
11199 unsigned : 4;
11201 } __PRG1INSbits_t;
11203 extern __at(0x0796) volatile __PRG1INSbits_t PRG1INSbits;
11205 #define _INS0 0x01
11206 #define _RG1INS0 0x01
11207 #define _INS1 0x02
11208 #define _RG1INS1 0x02
11209 #define _INS2 0x04
11210 #define _RG1INS2 0x04
11211 #define _INS3 0x08
11212 #define _RG1INS3 0x08
11214 //==============================================================================
11217 //==============================================================================
11218 // PRG1CON0 Bits
11220 extern __at(0x0797) __sfr PRG1CON0;
11222 typedef union
11224 struct
11226 unsigned GO : 1;
11227 unsigned OS : 1;
11228 unsigned MODE0 : 1;
11229 unsigned MODE1 : 1;
11230 unsigned REDG : 1;
11231 unsigned FEDG : 1;
11232 unsigned : 1;
11233 unsigned EN : 1;
11236 struct
11238 unsigned RG1GO : 1;
11239 unsigned RG1OS : 1;
11240 unsigned RG1MODE0 : 1;
11241 unsigned RG1MODE1 : 1;
11242 unsigned RG1REDG : 1;
11243 unsigned RG1FEDG : 1;
11244 unsigned : 1;
11245 unsigned RG1EN : 1;
11248 struct
11250 unsigned : 2;
11251 unsigned RG1MODE : 2;
11252 unsigned : 4;
11255 struct
11257 unsigned : 2;
11258 unsigned MODE : 2;
11259 unsigned : 4;
11261 } __PRG1CON0bits_t;
11263 extern __at(0x0797) volatile __PRG1CON0bits_t PRG1CON0bits;
11265 #define _PRG1CON0_GO 0x01
11266 #define _PRG1CON0_RG1GO 0x01
11267 #define _PRG1CON0_OS 0x02
11268 #define _PRG1CON0_RG1OS 0x02
11269 #define _PRG1CON0_MODE0 0x04
11270 #define _PRG1CON0_RG1MODE0 0x04
11271 #define _PRG1CON0_MODE1 0x08
11272 #define _PRG1CON0_RG1MODE1 0x08
11273 #define _PRG1CON0_REDG 0x10
11274 #define _PRG1CON0_RG1REDG 0x10
11275 #define _PRG1CON0_FEDG 0x20
11276 #define _PRG1CON0_RG1FEDG 0x20
11277 #define _PRG1CON0_EN 0x80
11278 #define _PRG1CON0_RG1EN 0x80
11280 //==============================================================================
11283 //==============================================================================
11284 // PRG1CON1 Bits
11286 extern __at(0x0798) __sfr PRG1CON1;
11288 typedef union
11290 struct
11292 unsigned RPOL : 1;
11293 unsigned FPOL : 1;
11294 unsigned RDY : 1;
11295 unsigned : 1;
11296 unsigned : 1;
11297 unsigned : 1;
11298 unsigned : 1;
11299 unsigned : 1;
11302 struct
11304 unsigned RG1RPOL : 1;
11305 unsigned RG1FPOL : 1;
11306 unsigned RG1RDY : 1;
11307 unsigned : 1;
11308 unsigned : 1;
11309 unsigned : 1;
11310 unsigned : 1;
11311 unsigned : 1;
11313 } __PRG1CON1bits_t;
11315 extern __at(0x0798) volatile __PRG1CON1bits_t PRG1CON1bits;
11317 #define _RPOL 0x01
11318 #define _RG1RPOL 0x01
11319 #define _FPOL 0x02
11320 #define _RG1FPOL 0x02
11321 #define _RDY 0x04
11322 #define _RG1RDY 0x04
11324 //==============================================================================
11327 //==============================================================================
11328 // PRG1CON2 Bits
11330 extern __at(0x0799) __sfr PRG1CON2;
11332 typedef union
11334 struct
11336 unsigned ISET0 : 1;
11337 unsigned ISET1 : 1;
11338 unsigned ISET2 : 1;
11339 unsigned ISET3 : 1;
11340 unsigned ISET4 : 1;
11341 unsigned : 1;
11342 unsigned : 1;
11343 unsigned : 1;
11346 struct
11348 unsigned RG1ISET0 : 1;
11349 unsigned RG1ISET1 : 1;
11350 unsigned RG1ISET2 : 1;
11351 unsigned RG1ISET3 : 1;
11352 unsigned RG1ISET4 : 1;
11353 unsigned : 1;
11354 unsigned : 1;
11355 unsigned : 1;
11358 struct
11360 unsigned RG1ISET : 5;
11361 unsigned : 3;
11364 struct
11366 unsigned ISET : 5;
11367 unsigned : 3;
11369 } __PRG1CON2bits_t;
11371 extern __at(0x0799) volatile __PRG1CON2bits_t PRG1CON2bits;
11373 #define _ISET0 0x01
11374 #define _RG1ISET0 0x01
11375 #define _ISET1 0x02
11376 #define _RG1ISET1 0x02
11377 #define _ISET2 0x04
11378 #define _RG1ISET2 0x04
11379 #define _ISET3 0x08
11380 #define _RG1ISET3 0x08
11381 #define _ISET4 0x10
11382 #define _RG1ISET4 0x10
11384 //==============================================================================
11387 //==============================================================================
11388 // PRG2RTSS Bits
11390 extern __at(0x079A) __sfr PRG2RTSS;
11392 typedef union
11394 struct
11396 unsigned RTSS0 : 1;
11397 unsigned RTSS1 : 1;
11398 unsigned RTSS2 : 1;
11399 unsigned RTSS3 : 1;
11400 unsigned : 1;
11401 unsigned : 1;
11402 unsigned : 1;
11403 unsigned : 1;
11406 struct
11408 unsigned RG2RTSS0 : 1;
11409 unsigned RG2RTSS1 : 1;
11410 unsigned RG2RTSS2 : 1;
11411 unsigned RG2RTSS3 : 1;
11412 unsigned : 1;
11413 unsigned : 1;
11414 unsigned : 1;
11415 unsigned : 1;
11418 struct
11420 unsigned RTSS : 4;
11421 unsigned : 4;
11424 struct
11426 unsigned RG2RTSS : 4;
11427 unsigned : 4;
11429 } __PRG2RTSSbits_t;
11431 extern __at(0x079A) volatile __PRG2RTSSbits_t PRG2RTSSbits;
11433 #define _PRG2RTSS_RTSS0 0x01
11434 #define _PRG2RTSS_RG2RTSS0 0x01
11435 #define _PRG2RTSS_RTSS1 0x02
11436 #define _PRG2RTSS_RG2RTSS1 0x02
11437 #define _PRG2RTSS_RTSS2 0x04
11438 #define _PRG2RTSS_RG2RTSS2 0x04
11439 #define _PRG2RTSS_RTSS3 0x08
11440 #define _PRG2RTSS_RG2RTSS3 0x08
11442 //==============================================================================
11445 //==============================================================================
11446 // PRG2FTSS Bits
11448 extern __at(0x079B) __sfr PRG2FTSS;
11450 typedef union
11452 struct
11454 unsigned FTSS0 : 1;
11455 unsigned FTSS1 : 1;
11456 unsigned FTSS2 : 1;
11457 unsigned FTSS3 : 1;
11458 unsigned : 1;
11459 unsigned : 1;
11460 unsigned : 1;
11461 unsigned : 1;
11464 struct
11466 unsigned RG2FTSS0 : 1;
11467 unsigned RG2FTSS1 : 1;
11468 unsigned RG2FTSS2 : 1;
11469 unsigned RG2FTSS3 : 1;
11470 unsigned : 1;
11471 unsigned : 1;
11472 unsigned : 1;
11473 unsigned : 1;
11476 struct
11478 unsigned FTSS : 4;
11479 unsigned : 4;
11482 struct
11484 unsigned RG2FTSS : 4;
11485 unsigned : 4;
11487 } __PRG2FTSSbits_t;
11489 extern __at(0x079B) volatile __PRG2FTSSbits_t PRG2FTSSbits;
11491 #define _PRG2FTSS_FTSS0 0x01
11492 #define _PRG2FTSS_RG2FTSS0 0x01
11493 #define _PRG2FTSS_FTSS1 0x02
11494 #define _PRG2FTSS_RG2FTSS1 0x02
11495 #define _PRG2FTSS_FTSS2 0x04
11496 #define _PRG2FTSS_RG2FTSS2 0x04
11497 #define _PRG2FTSS_FTSS3 0x08
11498 #define _PRG2FTSS_RG2FTSS3 0x08
11500 //==============================================================================
11503 //==============================================================================
11504 // PRG2INS Bits
11506 extern __at(0x079C) __sfr PRG2INS;
11508 typedef union
11510 struct
11512 unsigned INS0 : 1;
11513 unsigned INS1 : 1;
11514 unsigned INS2 : 1;
11515 unsigned INS3 : 1;
11516 unsigned : 1;
11517 unsigned : 1;
11518 unsigned : 1;
11519 unsigned : 1;
11522 struct
11524 unsigned RG2INS0 : 1;
11525 unsigned RG2INS1 : 1;
11526 unsigned RG2INS2 : 1;
11527 unsigned RG2INS3 : 1;
11528 unsigned : 1;
11529 unsigned : 1;
11530 unsigned : 1;
11531 unsigned : 1;
11534 struct
11536 unsigned RG2INS : 4;
11537 unsigned : 4;
11540 struct
11542 unsigned INS : 4;
11543 unsigned : 4;
11545 } __PRG2INSbits_t;
11547 extern __at(0x079C) volatile __PRG2INSbits_t PRG2INSbits;
11549 #define _PRG2INS_INS0 0x01
11550 #define _PRG2INS_RG2INS0 0x01
11551 #define _PRG2INS_INS1 0x02
11552 #define _PRG2INS_RG2INS1 0x02
11553 #define _PRG2INS_INS2 0x04
11554 #define _PRG2INS_RG2INS2 0x04
11555 #define _PRG2INS_INS3 0x08
11556 #define _PRG2INS_RG2INS3 0x08
11558 //==============================================================================
11561 //==============================================================================
11562 // PRG2CON0 Bits
11564 extern __at(0x079D) __sfr PRG2CON0;
11566 typedef union
11568 struct
11570 unsigned GO : 1;
11571 unsigned OS : 1;
11572 unsigned MODE0 : 1;
11573 unsigned MODE1 : 1;
11574 unsigned REDG : 1;
11575 unsigned FEDG : 1;
11576 unsigned : 1;
11577 unsigned EN : 1;
11580 struct
11582 unsigned RG2GO : 1;
11583 unsigned RG2OS : 1;
11584 unsigned RG2MODE0 : 1;
11585 unsigned RG2MODE1 : 1;
11586 unsigned RG2REDG : 1;
11587 unsigned RG2FEDG : 1;
11588 unsigned : 1;
11589 unsigned RG2EN : 1;
11592 struct
11594 unsigned : 2;
11595 unsigned MODE : 2;
11596 unsigned : 4;
11599 struct
11601 unsigned : 2;
11602 unsigned RG2MODE : 2;
11603 unsigned : 4;
11605 } __PRG2CON0bits_t;
11607 extern __at(0x079D) volatile __PRG2CON0bits_t PRG2CON0bits;
11609 #define _PRG2CON0_GO 0x01
11610 #define _PRG2CON0_RG2GO 0x01
11611 #define _PRG2CON0_OS 0x02
11612 #define _PRG2CON0_RG2OS 0x02
11613 #define _PRG2CON0_MODE0 0x04
11614 #define _PRG2CON0_RG2MODE0 0x04
11615 #define _PRG2CON0_MODE1 0x08
11616 #define _PRG2CON0_RG2MODE1 0x08
11617 #define _PRG2CON0_REDG 0x10
11618 #define _PRG2CON0_RG2REDG 0x10
11619 #define _PRG2CON0_FEDG 0x20
11620 #define _PRG2CON0_RG2FEDG 0x20
11621 #define _PRG2CON0_EN 0x80
11622 #define _PRG2CON0_RG2EN 0x80
11624 //==============================================================================
11627 //==============================================================================
11628 // PRG2CON1 Bits
11630 extern __at(0x079E) __sfr PRG2CON1;
11632 typedef union
11634 struct
11636 unsigned RPOL : 1;
11637 unsigned FPOL : 1;
11638 unsigned RDY : 1;
11639 unsigned : 1;
11640 unsigned : 1;
11641 unsigned : 1;
11642 unsigned : 1;
11643 unsigned : 1;
11646 struct
11648 unsigned RG2RPOL : 1;
11649 unsigned RG2FPOL : 1;
11650 unsigned RG2RDY : 1;
11651 unsigned : 1;
11652 unsigned : 1;
11653 unsigned : 1;
11654 unsigned : 1;
11655 unsigned : 1;
11657 } __PRG2CON1bits_t;
11659 extern __at(0x079E) volatile __PRG2CON1bits_t PRG2CON1bits;
11661 #define _PRG2CON1_RPOL 0x01
11662 #define _PRG2CON1_RG2RPOL 0x01
11663 #define _PRG2CON1_FPOL 0x02
11664 #define _PRG2CON1_RG2FPOL 0x02
11665 #define _PRG2CON1_RDY 0x04
11666 #define _PRG2CON1_RG2RDY 0x04
11668 //==============================================================================
11671 //==============================================================================
11672 // PRG2CON2 Bits
11674 extern __at(0x079F) __sfr PRG2CON2;
11676 typedef union
11678 struct
11680 unsigned ISET0 : 1;
11681 unsigned ISET1 : 1;
11682 unsigned ISET2 : 1;
11683 unsigned ISET3 : 1;
11684 unsigned ISET4 : 1;
11685 unsigned : 1;
11686 unsigned : 1;
11687 unsigned : 1;
11690 struct
11692 unsigned RG2ISET0 : 1;
11693 unsigned RG2ISET1 : 1;
11694 unsigned RG2ISET2 : 1;
11695 unsigned RG2ISET3 : 1;
11696 unsigned RG2ISET4 : 1;
11697 unsigned : 1;
11698 unsigned : 1;
11699 unsigned : 1;
11702 struct
11704 unsigned ISET : 5;
11705 unsigned : 3;
11708 struct
11710 unsigned RG2ISET : 5;
11711 unsigned : 3;
11713 } __PRG2CON2bits_t;
11715 extern __at(0x079F) volatile __PRG2CON2bits_t PRG2CON2bits;
11717 #define _PRG2CON2_ISET0 0x01
11718 #define _PRG2CON2_RG2ISET0 0x01
11719 #define _PRG2CON2_ISET1 0x02
11720 #define _PRG2CON2_RG2ISET1 0x02
11721 #define _PRG2CON2_ISET2 0x04
11722 #define _PRG2CON2_RG2ISET2 0x04
11723 #define _PRG2CON2_ISET3 0x08
11724 #define _PRG2CON2_RG2ISET3 0x08
11725 #define _PRG2CON2_ISET4 0x10
11726 #define _PRG2CON2_RG2ISET4 0x10
11728 //==============================================================================
11731 //==============================================================================
11732 // PWMEN Bits
11734 extern __at(0x0D8E) __sfr PWMEN;
11736 typedef struct
11738 unsigned : 1;
11739 unsigned : 1;
11740 unsigned : 1;
11741 unsigned : 1;
11742 unsigned MPWM5EN : 1;
11743 unsigned MPWM6EN : 1;
11744 unsigned : 1;
11745 unsigned : 1;
11746 } __PWMENbits_t;
11748 extern __at(0x0D8E) volatile __PWMENbits_t PWMENbits;
11750 #define _MPWM5EN 0x10
11751 #define _MPWM6EN 0x20
11753 //==============================================================================
11756 //==============================================================================
11757 // PWMLD Bits
11759 extern __at(0x0D8F) __sfr PWMLD;
11761 typedef struct
11763 unsigned : 1;
11764 unsigned : 1;
11765 unsigned : 1;
11766 unsigned : 1;
11767 unsigned MPWM5LD : 1;
11768 unsigned MPWM6LD : 1;
11769 unsigned : 1;
11770 unsigned : 1;
11771 } __PWMLDbits_t;
11773 extern __at(0x0D8F) volatile __PWMLDbits_t PWMLDbits;
11775 #define _MPWM5LD 0x10
11776 #define _MPWM6LD 0x20
11778 //==============================================================================
11781 //==============================================================================
11782 // PWMOUT Bits
11784 extern __at(0x0D90) __sfr PWMOUT;
11786 typedef struct
11788 unsigned : 1;
11789 unsigned : 1;
11790 unsigned : 1;
11791 unsigned : 1;
11792 unsigned MPWM5OUT : 1;
11793 unsigned MPWM6OUT : 1;
11794 unsigned : 1;
11795 unsigned : 1;
11796 } __PWMOUTbits_t;
11798 extern __at(0x0D90) volatile __PWMOUTbits_t PWMOUTbits;
11800 #define _MPWM5OUT 0x10
11801 #define _MPWM6OUT 0x20
11803 //==============================================================================
11805 extern __at(0x0D91) __sfr PWM5PH;
11807 //==============================================================================
11808 // PWM5PHL Bits
11810 extern __at(0x0D91) __sfr PWM5PHL;
11812 typedef struct
11814 unsigned PWM5PHL0 : 1;
11815 unsigned PWM5PHL1 : 1;
11816 unsigned PWM5PHL2 : 1;
11817 unsigned PWM5PHL3 : 1;
11818 unsigned PWM5PHL4 : 1;
11819 unsigned PWM5PHL5 : 1;
11820 unsigned PWM5PHL6 : 1;
11821 unsigned PWM5PHL7 : 1;
11822 } __PWM5PHLbits_t;
11824 extern __at(0x0D91) volatile __PWM5PHLbits_t PWM5PHLbits;
11826 #define _PWM5PHL0 0x01
11827 #define _PWM5PHL1 0x02
11828 #define _PWM5PHL2 0x04
11829 #define _PWM5PHL3 0x08
11830 #define _PWM5PHL4 0x10
11831 #define _PWM5PHL5 0x20
11832 #define _PWM5PHL6 0x40
11833 #define _PWM5PHL7 0x80
11835 //==============================================================================
11838 //==============================================================================
11839 // PWM5PHH Bits
11841 extern __at(0x0D92) __sfr PWM5PHH;
11843 typedef struct
11845 unsigned PWM5PHH0 : 1;
11846 unsigned PWM5PHH1 : 1;
11847 unsigned PWM5PHH2 : 1;
11848 unsigned PWM5PHH3 : 1;
11849 unsigned PWM5PHH4 : 1;
11850 unsigned PWM5PHH5 : 1;
11851 unsigned PWM5PHH6 : 1;
11852 unsigned PWM5PHH7 : 1;
11853 } __PWM5PHHbits_t;
11855 extern __at(0x0D92) volatile __PWM5PHHbits_t PWM5PHHbits;
11857 #define _PWM5PHH0 0x01
11858 #define _PWM5PHH1 0x02
11859 #define _PWM5PHH2 0x04
11860 #define _PWM5PHH3 0x08
11861 #define _PWM5PHH4 0x10
11862 #define _PWM5PHH5 0x20
11863 #define _PWM5PHH6 0x40
11864 #define _PWM5PHH7 0x80
11866 //==============================================================================
11868 extern __at(0x0D93) __sfr PWM5DC;
11870 //==============================================================================
11871 // PWM5DCL Bits
11873 extern __at(0x0D93) __sfr PWM5DCL;
11875 typedef struct
11877 unsigned PWM5DCL0 : 1;
11878 unsigned PWM5DCL1 : 1;
11879 unsigned PWM5DCL2 : 1;
11880 unsigned PWM5DCL3 : 1;
11881 unsigned PWM5DCL4 : 1;
11882 unsigned PWM5DCL5 : 1;
11883 unsigned PWM5DCL6 : 1;
11884 unsigned PWM5DCL7 : 1;
11885 } __PWM5DCLbits_t;
11887 extern __at(0x0D93) volatile __PWM5DCLbits_t PWM5DCLbits;
11889 #define _PWM5DCL0 0x01
11890 #define _PWM5DCL1 0x02
11891 #define _PWM5DCL2 0x04
11892 #define _PWM5DCL3 0x08
11893 #define _PWM5DCL4 0x10
11894 #define _PWM5DCL5 0x20
11895 #define _PWM5DCL6 0x40
11896 #define _PWM5DCL7 0x80
11898 //==============================================================================
11901 //==============================================================================
11902 // PWM5DCH Bits
11904 extern __at(0x0D94) __sfr PWM5DCH;
11906 typedef struct
11908 unsigned PWM5DCH0 : 1;
11909 unsigned PWM5DCH1 : 1;
11910 unsigned PWM5DCH2 : 1;
11911 unsigned PWM5DCH3 : 1;
11912 unsigned PWM5DCH4 : 1;
11913 unsigned PWM5DCH5 : 1;
11914 unsigned PWM5DCH6 : 1;
11915 unsigned PWM5DCH7 : 1;
11916 } __PWM5DCHbits_t;
11918 extern __at(0x0D94) volatile __PWM5DCHbits_t PWM5DCHbits;
11920 #define _PWM5DCH0 0x01
11921 #define _PWM5DCH1 0x02
11922 #define _PWM5DCH2 0x04
11923 #define _PWM5DCH3 0x08
11924 #define _PWM5DCH4 0x10
11925 #define _PWM5DCH5 0x20
11926 #define _PWM5DCH6 0x40
11927 #define _PWM5DCH7 0x80
11929 //==============================================================================
11931 extern __at(0x0D95) __sfr PWM5PR;
11933 //==============================================================================
11934 // PWM5PRL Bits
11936 extern __at(0x0D95) __sfr PWM5PRL;
11938 typedef struct
11940 unsigned PWM5PRL0 : 1;
11941 unsigned PWM5PRL1 : 1;
11942 unsigned PWM5PRL2 : 1;
11943 unsigned PWM5PRL3 : 1;
11944 unsigned PWM5PRL4 : 1;
11945 unsigned PWM5PRL5 : 1;
11946 unsigned PWM5PRL6 : 1;
11947 unsigned PWM5PRL7 : 1;
11948 } __PWM5PRLbits_t;
11950 extern __at(0x0D95) volatile __PWM5PRLbits_t PWM5PRLbits;
11952 #define _PWM5PRL0 0x01
11953 #define _PWM5PRL1 0x02
11954 #define _PWM5PRL2 0x04
11955 #define _PWM5PRL3 0x08
11956 #define _PWM5PRL4 0x10
11957 #define _PWM5PRL5 0x20
11958 #define _PWM5PRL6 0x40
11959 #define _PWM5PRL7 0x80
11961 //==============================================================================
11964 //==============================================================================
11965 // PWM5PRH Bits
11967 extern __at(0x0D96) __sfr PWM5PRH;
11969 typedef struct
11971 unsigned PWM5PRH0 : 1;
11972 unsigned PWM5PRH1 : 1;
11973 unsigned PWM5PRH2 : 1;
11974 unsigned PWM5PRH3 : 1;
11975 unsigned PWM5PRH4 : 1;
11976 unsigned PWM5PRH5 : 1;
11977 unsigned PWM5PRH6 : 1;
11978 unsigned PWM5PRH7 : 1;
11979 } __PWM5PRHbits_t;
11981 extern __at(0x0D96) volatile __PWM5PRHbits_t PWM5PRHbits;
11983 #define _PWM5PRH0 0x01
11984 #define _PWM5PRH1 0x02
11985 #define _PWM5PRH2 0x04
11986 #define _PWM5PRH3 0x08
11987 #define _PWM5PRH4 0x10
11988 #define _PWM5PRH5 0x20
11989 #define _PWM5PRH6 0x40
11990 #define _PWM5PRH7 0x80
11992 //==============================================================================
11994 extern __at(0x0D97) __sfr PWM5OF;
11996 //==============================================================================
11997 // PWM5OFL Bits
11999 extern __at(0x0D97) __sfr PWM5OFL;
12001 typedef struct
12003 unsigned PWM5OFL0 : 1;
12004 unsigned PWM5OFL1 : 1;
12005 unsigned PWM5OFL2 : 1;
12006 unsigned PWM5OFL3 : 1;
12007 unsigned PWM5OFL4 : 1;
12008 unsigned PWM5OFL5 : 1;
12009 unsigned PWM5OFL6 : 1;
12010 unsigned PWM5OFL7 : 1;
12011 } __PWM5OFLbits_t;
12013 extern __at(0x0D97) volatile __PWM5OFLbits_t PWM5OFLbits;
12015 #define _PWM5OFL0 0x01
12016 #define _PWM5OFL1 0x02
12017 #define _PWM5OFL2 0x04
12018 #define _PWM5OFL3 0x08
12019 #define _PWM5OFL4 0x10
12020 #define _PWM5OFL5 0x20
12021 #define _PWM5OFL6 0x40
12022 #define _PWM5OFL7 0x80
12024 //==============================================================================
12027 //==============================================================================
12028 // PWM5OFH Bits
12030 extern __at(0x0D98) __sfr PWM5OFH;
12032 typedef struct
12034 unsigned PWM5OFH0 : 1;
12035 unsigned PWM5OFH1 : 1;
12036 unsigned PWM5OFH2 : 1;
12037 unsigned PWM5OFH3 : 1;
12038 unsigned PWM5OFH4 : 1;
12039 unsigned PWM5OFH5 : 1;
12040 unsigned PWM5OFH6 : 1;
12041 unsigned PWM5OFH7 : 1;
12042 } __PWM5OFHbits_t;
12044 extern __at(0x0D98) volatile __PWM5OFHbits_t PWM5OFHbits;
12046 #define _PWM5OFH0 0x01
12047 #define _PWM5OFH1 0x02
12048 #define _PWM5OFH2 0x04
12049 #define _PWM5OFH3 0x08
12050 #define _PWM5OFH4 0x10
12051 #define _PWM5OFH5 0x20
12052 #define _PWM5OFH6 0x40
12053 #define _PWM5OFH7 0x80
12055 //==============================================================================
12057 extern __at(0x0D99) __sfr PWM5TMR;
12059 //==============================================================================
12060 // PWM5TMRL Bits
12062 extern __at(0x0D99) __sfr PWM5TMRL;
12064 typedef struct
12066 unsigned PWM5TMRL0 : 1;
12067 unsigned PWM5TMRL1 : 1;
12068 unsigned PWM5TMRL2 : 1;
12069 unsigned PWM5TMRL3 : 1;
12070 unsigned PWM5TMRL4 : 1;
12071 unsigned PWM5TMRL5 : 1;
12072 unsigned PWM5TMRL6 : 1;
12073 unsigned PWM5TMRL7 : 1;
12074 } __PWM5TMRLbits_t;
12076 extern __at(0x0D99) volatile __PWM5TMRLbits_t PWM5TMRLbits;
12078 #define _PWM5TMRL0 0x01
12079 #define _PWM5TMRL1 0x02
12080 #define _PWM5TMRL2 0x04
12081 #define _PWM5TMRL3 0x08
12082 #define _PWM5TMRL4 0x10
12083 #define _PWM5TMRL5 0x20
12084 #define _PWM5TMRL6 0x40
12085 #define _PWM5TMRL7 0x80
12087 //==============================================================================
12090 //==============================================================================
12091 // PWM5TMRH Bits
12093 extern __at(0x0D9A) __sfr PWM5TMRH;
12095 typedef struct
12097 unsigned PWM5TMRH0 : 1;
12098 unsigned PWM5TMRH1 : 1;
12099 unsigned PWM5TMRH2 : 1;
12100 unsigned PWM5TMRH3 : 1;
12101 unsigned PWM5TMRH4 : 1;
12102 unsigned PWM5TMRH5 : 1;
12103 unsigned PWM5TMRH6 : 1;
12104 unsigned PWM5TMRH7 : 1;
12105 } __PWM5TMRHbits_t;
12107 extern __at(0x0D9A) volatile __PWM5TMRHbits_t PWM5TMRHbits;
12109 #define _PWM5TMRH0 0x01
12110 #define _PWM5TMRH1 0x02
12111 #define _PWM5TMRH2 0x04
12112 #define _PWM5TMRH3 0x08
12113 #define _PWM5TMRH4 0x10
12114 #define _PWM5TMRH5 0x20
12115 #define _PWM5TMRH6 0x40
12116 #define _PWM5TMRH7 0x80
12118 //==============================================================================
12121 //==============================================================================
12122 // PWM5CON Bits
12124 extern __at(0x0D9B) __sfr PWM5CON;
12126 typedef union
12128 struct
12130 unsigned : 1;
12131 unsigned : 1;
12132 unsigned PWM5MODE0 : 1;
12133 unsigned PWM5MODE1 : 1;
12134 unsigned POL : 1;
12135 unsigned OUT : 1;
12136 unsigned : 1;
12137 unsigned EN : 1;
12140 struct
12142 unsigned : 1;
12143 unsigned : 1;
12144 unsigned MODE0 : 1;
12145 unsigned MODE1 : 1;
12146 unsigned PWM5POL : 1;
12147 unsigned PWM5OUT : 1;
12148 unsigned : 1;
12149 unsigned PWM5EN : 1;
12152 struct
12154 unsigned : 2;
12155 unsigned PWM5MODE : 2;
12156 unsigned : 4;
12159 struct
12161 unsigned : 2;
12162 unsigned MODE : 2;
12163 unsigned : 4;
12165 } __PWM5CONbits_t;
12167 extern __at(0x0D9B) volatile __PWM5CONbits_t PWM5CONbits;
12169 #define _PWM5CON_PWM5MODE0 0x04
12170 #define _PWM5CON_MODE0 0x04
12171 #define _PWM5CON_PWM5MODE1 0x08
12172 #define _PWM5CON_MODE1 0x08
12173 #define _PWM5CON_POL 0x10
12174 #define _PWM5CON_PWM5POL 0x10
12175 #define _PWM5CON_OUT 0x20
12176 #define _PWM5CON_PWM5OUT 0x20
12177 #define _PWM5CON_EN 0x80
12178 #define _PWM5CON_PWM5EN 0x80
12180 //==============================================================================
12183 //==============================================================================
12184 // PWM5INTCON Bits
12186 extern __at(0x0D9C) __sfr PWM5INTCON;
12188 typedef union
12190 struct
12192 unsigned PRIE : 1;
12193 unsigned DCIE : 1;
12194 unsigned PHIE : 1;
12195 unsigned OFIE : 1;
12196 unsigned : 1;
12197 unsigned : 1;
12198 unsigned : 1;
12199 unsigned : 1;
12202 struct
12204 unsigned PWM5PRIE : 1;
12205 unsigned PWM5DCIE : 1;
12206 unsigned PWM5PHIE : 1;
12207 unsigned PWM5OFIE : 1;
12208 unsigned : 1;
12209 unsigned : 1;
12210 unsigned : 1;
12211 unsigned : 1;
12213 } __PWM5INTCONbits_t;
12215 extern __at(0x0D9C) volatile __PWM5INTCONbits_t PWM5INTCONbits;
12217 #define _PRIE 0x01
12218 #define _PWM5PRIE 0x01
12219 #define _DCIE 0x02
12220 #define _PWM5DCIE 0x02
12221 #define _PHIE 0x04
12222 #define _PWM5PHIE 0x04
12223 #define _OFIE 0x08
12224 #define _PWM5OFIE 0x08
12226 //==============================================================================
12229 //==============================================================================
12230 // PWM5INTE Bits
12232 extern __at(0x0D9C) __sfr PWM5INTE;
12234 typedef union
12236 struct
12238 unsigned PRIE : 1;
12239 unsigned DCIE : 1;
12240 unsigned PHIE : 1;
12241 unsigned OFIE : 1;
12242 unsigned : 1;
12243 unsigned : 1;
12244 unsigned : 1;
12245 unsigned : 1;
12248 struct
12250 unsigned PWM5PRIE : 1;
12251 unsigned PWM5DCIE : 1;
12252 unsigned PWM5PHIE : 1;
12253 unsigned PWM5OFIE : 1;
12254 unsigned : 1;
12255 unsigned : 1;
12256 unsigned : 1;
12257 unsigned : 1;
12259 } __PWM5INTEbits_t;
12261 extern __at(0x0D9C) volatile __PWM5INTEbits_t PWM5INTEbits;
12263 #define _PWM5INTE_PRIE 0x01
12264 #define _PWM5INTE_PWM5PRIE 0x01
12265 #define _PWM5INTE_DCIE 0x02
12266 #define _PWM5INTE_PWM5DCIE 0x02
12267 #define _PWM5INTE_PHIE 0x04
12268 #define _PWM5INTE_PWM5PHIE 0x04
12269 #define _PWM5INTE_OFIE 0x08
12270 #define _PWM5INTE_PWM5OFIE 0x08
12272 //==============================================================================
12275 //==============================================================================
12276 // PWM5INTF Bits
12278 extern __at(0x0D9D) __sfr PWM5INTF;
12280 typedef union
12282 struct
12284 unsigned PRIF : 1;
12285 unsigned DCIF : 1;
12286 unsigned PHIF : 1;
12287 unsigned OFIF : 1;
12288 unsigned : 1;
12289 unsigned : 1;
12290 unsigned : 1;
12291 unsigned : 1;
12294 struct
12296 unsigned PWM5PRIF : 1;
12297 unsigned PWM5DCIF : 1;
12298 unsigned PWM5PHIF : 1;
12299 unsigned PWM5OFIF : 1;
12300 unsigned : 1;
12301 unsigned : 1;
12302 unsigned : 1;
12303 unsigned : 1;
12305 } __PWM5INTFbits_t;
12307 extern __at(0x0D9D) volatile __PWM5INTFbits_t PWM5INTFbits;
12309 #define _PRIF 0x01
12310 #define _PWM5PRIF 0x01
12311 #define _DCIF 0x02
12312 #define _PWM5DCIF 0x02
12313 #define _PHIF 0x04
12314 #define _PWM5PHIF 0x04
12315 #define _OFIF 0x08
12316 #define _PWM5OFIF 0x08
12318 //==============================================================================
12321 //==============================================================================
12322 // PWM5INTFLG Bits
12324 extern __at(0x0D9D) __sfr PWM5INTFLG;
12326 typedef union
12328 struct
12330 unsigned PRIF : 1;
12331 unsigned DCIF : 1;
12332 unsigned PHIF : 1;
12333 unsigned OFIF : 1;
12334 unsigned : 1;
12335 unsigned : 1;
12336 unsigned : 1;
12337 unsigned : 1;
12340 struct
12342 unsigned PWM5PRIF : 1;
12343 unsigned PWM5DCIF : 1;
12344 unsigned PWM5PHIF : 1;
12345 unsigned PWM5OFIF : 1;
12346 unsigned : 1;
12347 unsigned : 1;
12348 unsigned : 1;
12349 unsigned : 1;
12351 } __PWM5INTFLGbits_t;
12353 extern __at(0x0D9D) volatile __PWM5INTFLGbits_t PWM5INTFLGbits;
12355 #define _PWM5INTFLG_PRIF 0x01
12356 #define _PWM5INTFLG_PWM5PRIF 0x01
12357 #define _PWM5INTFLG_DCIF 0x02
12358 #define _PWM5INTFLG_PWM5DCIF 0x02
12359 #define _PWM5INTFLG_PHIF 0x04
12360 #define _PWM5INTFLG_PWM5PHIF 0x04
12361 #define _PWM5INTFLG_OFIF 0x08
12362 #define _PWM5INTFLG_PWM5OFIF 0x08
12364 //==============================================================================
12367 //==============================================================================
12368 // PWM5CLKCON Bits
12370 extern __at(0x0D9E) __sfr PWM5CLKCON;
12372 typedef union
12374 struct
12376 unsigned PWM5CS0 : 1;
12377 unsigned PWM5CS1 : 1;
12378 unsigned PWM5CS2 : 1;
12379 unsigned : 1;
12380 unsigned PWM5PS0 : 1;
12381 unsigned PWM5PS1 : 1;
12382 unsigned PWM5PS2 : 1;
12383 unsigned : 1;
12386 struct
12388 unsigned CS0 : 1;
12389 unsigned CS1 : 1;
12390 unsigned CS2 : 1;
12391 unsigned : 1;
12392 unsigned PS0 : 1;
12393 unsigned PS1 : 1;
12394 unsigned PS2 : 1;
12395 unsigned : 1;
12398 struct
12400 unsigned PWM5CS : 3;
12401 unsigned : 5;
12404 struct
12406 unsigned CS : 3;
12407 unsigned : 5;
12410 struct
12412 unsigned : 4;
12413 unsigned PS : 3;
12414 unsigned : 1;
12417 struct
12419 unsigned : 4;
12420 unsigned PWM5PS : 3;
12421 unsigned : 1;
12423 } __PWM5CLKCONbits_t;
12425 extern __at(0x0D9E) volatile __PWM5CLKCONbits_t PWM5CLKCONbits;
12427 #define _PWM5CLKCON_PWM5CS0 0x01
12428 #define _PWM5CLKCON_CS0 0x01
12429 #define _PWM5CLKCON_PWM5CS1 0x02
12430 #define _PWM5CLKCON_CS1 0x02
12431 #define _PWM5CLKCON_PWM5CS2 0x04
12432 #define _PWM5CLKCON_CS2 0x04
12433 #define _PWM5CLKCON_PWM5PS0 0x10
12434 #define _PWM5CLKCON_PS0 0x10
12435 #define _PWM5CLKCON_PWM5PS1 0x20
12436 #define _PWM5CLKCON_PS1 0x20
12437 #define _PWM5CLKCON_PWM5PS2 0x40
12438 #define _PWM5CLKCON_PS2 0x40
12440 //==============================================================================
12443 //==============================================================================
12444 // PWM5LDCON Bits
12446 extern __at(0x0D9F) __sfr PWM5LDCON;
12448 typedef union
12450 struct
12452 unsigned PWM5LDS0 : 1;
12453 unsigned : 1;
12454 unsigned : 1;
12455 unsigned : 1;
12456 unsigned : 1;
12457 unsigned : 1;
12458 unsigned LDT : 1;
12459 unsigned LDA : 1;
12462 struct
12464 unsigned LDS0 : 1;
12465 unsigned : 1;
12466 unsigned : 1;
12467 unsigned : 1;
12468 unsigned : 1;
12469 unsigned : 1;
12470 unsigned PWM5LDM : 1;
12471 unsigned PWM5LD : 1;
12473 } __PWM5LDCONbits_t;
12475 extern __at(0x0D9F) volatile __PWM5LDCONbits_t PWM5LDCONbits;
12477 #define _PWM5LDS0 0x01
12478 #define _LDS0 0x01
12479 #define _LDT 0x40
12480 #define _PWM5LDM 0x40
12481 #define _LDA 0x80
12482 #define _PWM5LD 0x80
12484 //==============================================================================
12487 //==============================================================================
12488 // PWM5OFCON Bits
12490 extern __at(0x0DA0) __sfr PWM5OFCON;
12492 typedef union
12494 struct
12496 unsigned PWM5OFS0 : 1;
12497 unsigned : 1;
12498 unsigned : 1;
12499 unsigned : 1;
12500 unsigned OFO : 1;
12501 unsigned PWM5OFM0 : 1;
12502 unsigned PWM5OFM1 : 1;
12503 unsigned : 1;
12506 struct
12508 unsigned OFS0 : 1;
12509 unsigned : 1;
12510 unsigned : 1;
12511 unsigned : 1;
12512 unsigned PWM5OFMC : 1;
12513 unsigned OFM0 : 1;
12514 unsigned OFM1 : 1;
12515 unsigned : 1;
12518 struct
12520 unsigned : 5;
12521 unsigned PWM5OFM : 2;
12522 unsigned : 1;
12525 struct
12527 unsigned : 5;
12528 unsigned OFM : 2;
12529 unsigned : 1;
12531 } __PWM5OFCONbits_t;
12533 extern __at(0x0DA0) volatile __PWM5OFCONbits_t PWM5OFCONbits;
12535 #define _PWM5OFS0 0x01
12536 #define _OFS0 0x01
12537 #define _OFO 0x10
12538 #define _PWM5OFMC 0x10
12539 #define _PWM5OFM0 0x20
12540 #define _OFM0 0x20
12541 #define _PWM5OFM1 0x40
12542 #define _OFM1 0x40
12544 //==============================================================================
12546 extern __at(0x0DA1) __sfr PWM6PH;
12548 //==============================================================================
12549 // PWM6PHL Bits
12551 extern __at(0x0DA1) __sfr PWM6PHL;
12553 typedef struct
12555 unsigned PWM6PHL0 : 1;
12556 unsigned PWM6PHL1 : 1;
12557 unsigned PWM6PHL2 : 1;
12558 unsigned PWM6PHL3 : 1;
12559 unsigned PWM6PHL4 : 1;
12560 unsigned PWM6PHL5 : 1;
12561 unsigned PWM6PHL6 : 1;
12562 unsigned PWM6PHL7 : 1;
12563 } __PWM6PHLbits_t;
12565 extern __at(0x0DA1) volatile __PWM6PHLbits_t PWM6PHLbits;
12567 #define _PWM6PHL0 0x01
12568 #define _PWM6PHL1 0x02
12569 #define _PWM6PHL2 0x04
12570 #define _PWM6PHL3 0x08
12571 #define _PWM6PHL4 0x10
12572 #define _PWM6PHL5 0x20
12573 #define _PWM6PHL6 0x40
12574 #define _PWM6PHL7 0x80
12576 //==============================================================================
12579 //==============================================================================
12580 // PWM6PHH Bits
12582 extern __at(0x0DA2) __sfr PWM6PHH;
12584 typedef struct
12586 unsigned PWM6PHH0 : 1;
12587 unsigned PWM6PHH1 : 1;
12588 unsigned PWM6PHH2 : 1;
12589 unsigned PWM6PHH3 : 1;
12590 unsigned PWM6PHH4 : 1;
12591 unsigned PWM6PHH5 : 1;
12592 unsigned PWM6PHH6 : 1;
12593 unsigned PWM6PHH7 : 1;
12594 } __PWM6PHHbits_t;
12596 extern __at(0x0DA2) volatile __PWM6PHHbits_t PWM6PHHbits;
12598 #define _PWM6PHH0 0x01
12599 #define _PWM6PHH1 0x02
12600 #define _PWM6PHH2 0x04
12601 #define _PWM6PHH3 0x08
12602 #define _PWM6PHH4 0x10
12603 #define _PWM6PHH5 0x20
12604 #define _PWM6PHH6 0x40
12605 #define _PWM6PHH7 0x80
12607 //==============================================================================
12609 extern __at(0x0DA3) __sfr PWM6DC;
12611 //==============================================================================
12612 // PWM6DCL Bits
12614 extern __at(0x0DA3) __sfr PWM6DCL;
12616 typedef struct
12618 unsigned PWM6DCL0 : 1;
12619 unsigned PWM6DCL1 : 1;
12620 unsigned PWM6DCL2 : 1;
12621 unsigned PWM6DCL3 : 1;
12622 unsigned PWM6DCL4 : 1;
12623 unsigned PWM6DCL5 : 1;
12624 unsigned PWM6DCL6 : 1;
12625 unsigned PWM6DCL7 : 1;
12626 } __PWM6DCLbits_t;
12628 extern __at(0x0DA3) volatile __PWM6DCLbits_t PWM6DCLbits;
12630 #define _PWM6DCL0 0x01
12631 #define _PWM6DCL1 0x02
12632 #define _PWM6DCL2 0x04
12633 #define _PWM6DCL3 0x08
12634 #define _PWM6DCL4 0x10
12635 #define _PWM6DCL5 0x20
12636 #define _PWM6DCL6 0x40
12637 #define _PWM6DCL7 0x80
12639 //==============================================================================
12642 //==============================================================================
12643 // PWM6DCH Bits
12645 extern __at(0x0DA4) __sfr PWM6DCH;
12647 typedef struct
12649 unsigned PWM6DCH0 : 1;
12650 unsigned PWM6DCH1 : 1;
12651 unsigned PWM6DCH2 : 1;
12652 unsigned PWM6DCH3 : 1;
12653 unsigned PWM6DCH4 : 1;
12654 unsigned PWM6DCH5 : 1;
12655 unsigned PWM6DCH6 : 1;
12656 unsigned PWM6DCH7 : 1;
12657 } __PWM6DCHbits_t;
12659 extern __at(0x0DA4) volatile __PWM6DCHbits_t PWM6DCHbits;
12661 #define _PWM6DCH0 0x01
12662 #define _PWM6DCH1 0x02
12663 #define _PWM6DCH2 0x04
12664 #define _PWM6DCH3 0x08
12665 #define _PWM6DCH4 0x10
12666 #define _PWM6DCH5 0x20
12667 #define _PWM6DCH6 0x40
12668 #define _PWM6DCH7 0x80
12670 //==============================================================================
12672 extern __at(0x0DA5) __sfr PWM6PR;
12674 //==============================================================================
12675 // PWM6PRL Bits
12677 extern __at(0x0DA5) __sfr PWM6PRL;
12679 typedef struct
12681 unsigned PWM6PRL0 : 1;
12682 unsigned PWM6PRL1 : 1;
12683 unsigned PWM6PRL2 : 1;
12684 unsigned PWM6PRL3 : 1;
12685 unsigned PWM6PRL4 : 1;
12686 unsigned PWM6PRL5 : 1;
12687 unsigned PWM6PRL6 : 1;
12688 unsigned PWM6PRL7 : 1;
12689 } __PWM6PRLbits_t;
12691 extern __at(0x0DA5) volatile __PWM6PRLbits_t PWM6PRLbits;
12693 #define _PWM6PRL0 0x01
12694 #define _PWM6PRL1 0x02
12695 #define _PWM6PRL2 0x04
12696 #define _PWM6PRL3 0x08
12697 #define _PWM6PRL4 0x10
12698 #define _PWM6PRL5 0x20
12699 #define _PWM6PRL6 0x40
12700 #define _PWM6PRL7 0x80
12702 //==============================================================================
12705 //==============================================================================
12706 // PWM6PRH Bits
12708 extern __at(0x0DA6) __sfr PWM6PRH;
12710 typedef struct
12712 unsigned PWM6PRH0 : 1;
12713 unsigned PWM6PRH1 : 1;
12714 unsigned PWM6PRH2 : 1;
12715 unsigned PWM6PRH3 : 1;
12716 unsigned PWM6PRH4 : 1;
12717 unsigned PWM6PRH5 : 1;
12718 unsigned PWM6PRH6 : 1;
12719 unsigned PWM6PRH7 : 1;
12720 } __PWM6PRHbits_t;
12722 extern __at(0x0DA6) volatile __PWM6PRHbits_t PWM6PRHbits;
12724 #define _PWM6PRH0 0x01
12725 #define _PWM6PRH1 0x02
12726 #define _PWM6PRH2 0x04
12727 #define _PWM6PRH3 0x08
12728 #define _PWM6PRH4 0x10
12729 #define _PWM6PRH5 0x20
12730 #define _PWM6PRH6 0x40
12731 #define _PWM6PRH7 0x80
12733 //==============================================================================
12735 extern __at(0x0DA7) __sfr PWM6OF;
12737 //==============================================================================
12738 // PWM6OFL Bits
12740 extern __at(0x0DA7) __sfr PWM6OFL;
12742 typedef struct
12744 unsigned PWM6OFL0 : 1;
12745 unsigned PWM6OFL1 : 1;
12746 unsigned PWM6OFL2 : 1;
12747 unsigned PWM6OFL3 : 1;
12748 unsigned PWM6OFL4 : 1;
12749 unsigned PWM6OFL5 : 1;
12750 unsigned PWM6OFL6 : 1;
12751 unsigned PWM6OFL7 : 1;
12752 } __PWM6OFLbits_t;
12754 extern __at(0x0DA7) volatile __PWM6OFLbits_t PWM6OFLbits;
12756 #define _PWM6OFL0 0x01
12757 #define _PWM6OFL1 0x02
12758 #define _PWM6OFL2 0x04
12759 #define _PWM6OFL3 0x08
12760 #define _PWM6OFL4 0x10
12761 #define _PWM6OFL5 0x20
12762 #define _PWM6OFL6 0x40
12763 #define _PWM6OFL7 0x80
12765 //==============================================================================
12768 //==============================================================================
12769 // PWM6OFH Bits
12771 extern __at(0x0DA8) __sfr PWM6OFH;
12773 typedef struct
12775 unsigned PWM6OFH0 : 1;
12776 unsigned PWM6OFH1 : 1;
12777 unsigned PWM6OFH2 : 1;
12778 unsigned PWM6OFH3 : 1;
12779 unsigned PWM6OFH4 : 1;
12780 unsigned PWM6OFH5 : 1;
12781 unsigned PWM6OFH6 : 1;
12782 unsigned PWM6OFH7 : 1;
12783 } __PWM6OFHbits_t;
12785 extern __at(0x0DA8) volatile __PWM6OFHbits_t PWM6OFHbits;
12787 #define _PWM6OFH0 0x01
12788 #define _PWM6OFH1 0x02
12789 #define _PWM6OFH2 0x04
12790 #define _PWM6OFH3 0x08
12791 #define _PWM6OFH4 0x10
12792 #define _PWM6OFH5 0x20
12793 #define _PWM6OFH6 0x40
12794 #define _PWM6OFH7 0x80
12796 //==============================================================================
12798 extern __at(0x0DA9) __sfr PWM6TMR;
12800 //==============================================================================
12801 // PWM6TMRL Bits
12803 extern __at(0x0DA9) __sfr PWM6TMRL;
12805 typedef struct
12807 unsigned PWM6TMRL0 : 1;
12808 unsigned PWM6TMRL1 : 1;
12809 unsigned PWM6TMRL2 : 1;
12810 unsigned PWM6TMRL3 : 1;
12811 unsigned PWM6TMRL4 : 1;
12812 unsigned PWM6TMRL5 : 1;
12813 unsigned PWM6TMRL6 : 1;
12814 unsigned PWM6TMRL7 : 1;
12815 } __PWM6TMRLbits_t;
12817 extern __at(0x0DA9) volatile __PWM6TMRLbits_t PWM6TMRLbits;
12819 #define _PWM6TMRL0 0x01
12820 #define _PWM6TMRL1 0x02
12821 #define _PWM6TMRL2 0x04
12822 #define _PWM6TMRL3 0x08
12823 #define _PWM6TMRL4 0x10
12824 #define _PWM6TMRL5 0x20
12825 #define _PWM6TMRL6 0x40
12826 #define _PWM6TMRL7 0x80
12828 //==============================================================================
12831 //==============================================================================
12832 // PWM6TMRH Bits
12834 extern __at(0x0DAA) __sfr PWM6TMRH;
12836 typedef struct
12838 unsigned PWM6TMRH0 : 1;
12839 unsigned PWM6TMRH1 : 1;
12840 unsigned PWM6TMRH2 : 1;
12841 unsigned PWM6TMRH3 : 1;
12842 unsigned PWM6TMRH4 : 1;
12843 unsigned PWM6TMRH5 : 1;
12844 unsigned PWM6TMRH6 : 1;
12845 unsigned PWM6TMRH7 : 1;
12846 } __PWM6TMRHbits_t;
12848 extern __at(0x0DAA) volatile __PWM6TMRHbits_t PWM6TMRHbits;
12850 #define _PWM6TMRH0 0x01
12851 #define _PWM6TMRH1 0x02
12852 #define _PWM6TMRH2 0x04
12853 #define _PWM6TMRH3 0x08
12854 #define _PWM6TMRH4 0x10
12855 #define _PWM6TMRH5 0x20
12856 #define _PWM6TMRH6 0x40
12857 #define _PWM6TMRH7 0x80
12859 //==============================================================================
12862 //==============================================================================
12863 // PWM6CON Bits
12865 extern __at(0x0DAB) __sfr PWM6CON;
12867 typedef union
12869 struct
12871 unsigned : 1;
12872 unsigned : 1;
12873 unsigned PWM6MODE0 : 1;
12874 unsigned PWM6MODE1 : 1;
12875 unsigned POL : 1;
12876 unsigned OUT : 1;
12877 unsigned : 1;
12878 unsigned EN : 1;
12881 struct
12883 unsigned : 1;
12884 unsigned : 1;
12885 unsigned MODE0 : 1;
12886 unsigned MODE1 : 1;
12887 unsigned PWM6POL : 1;
12888 unsigned PWM6OUT : 1;
12889 unsigned : 1;
12890 unsigned PWM6EN : 1;
12893 struct
12895 unsigned : 2;
12896 unsigned MODE : 2;
12897 unsigned : 4;
12900 struct
12902 unsigned : 2;
12903 unsigned PWM6MODE : 2;
12904 unsigned : 4;
12906 } __PWM6CONbits_t;
12908 extern __at(0x0DAB) volatile __PWM6CONbits_t PWM6CONbits;
12910 #define _PWM6CON_PWM6MODE0 0x04
12911 #define _PWM6CON_MODE0 0x04
12912 #define _PWM6CON_PWM6MODE1 0x08
12913 #define _PWM6CON_MODE1 0x08
12914 #define _PWM6CON_POL 0x10
12915 #define _PWM6CON_PWM6POL 0x10
12916 #define _PWM6CON_OUT 0x20
12917 #define _PWM6CON_PWM6OUT 0x20
12918 #define _PWM6CON_EN 0x80
12919 #define _PWM6CON_PWM6EN 0x80
12921 //==============================================================================
12924 //==============================================================================
12925 // PWM6INTCON Bits
12927 extern __at(0x0DAC) __sfr PWM6INTCON;
12929 typedef union
12931 struct
12933 unsigned PRIE : 1;
12934 unsigned DCIE : 1;
12935 unsigned PHIE : 1;
12936 unsigned OFIE : 1;
12937 unsigned : 1;
12938 unsigned : 1;
12939 unsigned : 1;
12940 unsigned : 1;
12943 struct
12945 unsigned PWM6PRIE : 1;
12946 unsigned PWM6DCIE : 1;
12947 unsigned PWM6PHIE : 1;
12948 unsigned PWM6OFIE : 1;
12949 unsigned : 1;
12950 unsigned : 1;
12951 unsigned : 1;
12952 unsigned : 1;
12954 } __PWM6INTCONbits_t;
12956 extern __at(0x0DAC) volatile __PWM6INTCONbits_t PWM6INTCONbits;
12958 #define _PWM6INTCON_PRIE 0x01
12959 #define _PWM6INTCON_PWM6PRIE 0x01
12960 #define _PWM6INTCON_DCIE 0x02
12961 #define _PWM6INTCON_PWM6DCIE 0x02
12962 #define _PWM6INTCON_PHIE 0x04
12963 #define _PWM6INTCON_PWM6PHIE 0x04
12964 #define _PWM6INTCON_OFIE 0x08
12965 #define _PWM6INTCON_PWM6OFIE 0x08
12967 //==============================================================================
12970 //==============================================================================
12971 // PWM6INTE Bits
12973 extern __at(0x0DAC) __sfr PWM6INTE;
12975 typedef union
12977 struct
12979 unsigned PRIE : 1;
12980 unsigned DCIE : 1;
12981 unsigned PHIE : 1;
12982 unsigned OFIE : 1;
12983 unsigned : 1;
12984 unsigned : 1;
12985 unsigned : 1;
12986 unsigned : 1;
12989 struct
12991 unsigned PWM6PRIE : 1;
12992 unsigned PWM6DCIE : 1;
12993 unsigned PWM6PHIE : 1;
12994 unsigned PWM6OFIE : 1;
12995 unsigned : 1;
12996 unsigned : 1;
12997 unsigned : 1;
12998 unsigned : 1;
13000 } __PWM6INTEbits_t;
13002 extern __at(0x0DAC) volatile __PWM6INTEbits_t PWM6INTEbits;
13004 #define _PWM6INTE_PRIE 0x01
13005 #define _PWM6INTE_PWM6PRIE 0x01
13006 #define _PWM6INTE_DCIE 0x02
13007 #define _PWM6INTE_PWM6DCIE 0x02
13008 #define _PWM6INTE_PHIE 0x04
13009 #define _PWM6INTE_PWM6PHIE 0x04
13010 #define _PWM6INTE_OFIE 0x08
13011 #define _PWM6INTE_PWM6OFIE 0x08
13013 //==============================================================================
13016 //==============================================================================
13017 // PWM6INTF Bits
13019 extern __at(0x0DAD) __sfr PWM6INTF;
13021 typedef union
13023 struct
13025 unsigned PRIF : 1;
13026 unsigned DCIF : 1;
13027 unsigned PHIF : 1;
13028 unsigned OFIF : 1;
13029 unsigned : 1;
13030 unsigned : 1;
13031 unsigned : 1;
13032 unsigned : 1;
13035 struct
13037 unsigned PWM6PRIF : 1;
13038 unsigned PWM6DCIF : 1;
13039 unsigned PWM6PHIF : 1;
13040 unsigned PWM6OFIF : 1;
13041 unsigned : 1;
13042 unsigned : 1;
13043 unsigned : 1;
13044 unsigned : 1;
13046 } __PWM6INTFbits_t;
13048 extern __at(0x0DAD) volatile __PWM6INTFbits_t PWM6INTFbits;
13050 #define _PWM6INTF_PRIF 0x01
13051 #define _PWM6INTF_PWM6PRIF 0x01
13052 #define _PWM6INTF_DCIF 0x02
13053 #define _PWM6INTF_PWM6DCIF 0x02
13054 #define _PWM6INTF_PHIF 0x04
13055 #define _PWM6INTF_PWM6PHIF 0x04
13056 #define _PWM6INTF_OFIF 0x08
13057 #define _PWM6INTF_PWM6OFIF 0x08
13059 //==============================================================================
13062 //==============================================================================
13063 // PWM6INTFLG Bits
13065 extern __at(0x0DAD) __sfr PWM6INTFLG;
13067 typedef union
13069 struct
13071 unsigned PRIF : 1;
13072 unsigned DCIF : 1;
13073 unsigned PHIF : 1;
13074 unsigned OFIF : 1;
13075 unsigned : 1;
13076 unsigned : 1;
13077 unsigned : 1;
13078 unsigned : 1;
13081 struct
13083 unsigned PWM6PRIF : 1;
13084 unsigned PWM6DCIF : 1;
13085 unsigned PWM6PHIF : 1;
13086 unsigned PWM6OFIF : 1;
13087 unsigned : 1;
13088 unsigned : 1;
13089 unsigned : 1;
13090 unsigned : 1;
13092 } __PWM6INTFLGbits_t;
13094 extern __at(0x0DAD) volatile __PWM6INTFLGbits_t PWM6INTFLGbits;
13096 #define _PWM6INTFLG_PRIF 0x01
13097 #define _PWM6INTFLG_PWM6PRIF 0x01
13098 #define _PWM6INTFLG_DCIF 0x02
13099 #define _PWM6INTFLG_PWM6DCIF 0x02
13100 #define _PWM6INTFLG_PHIF 0x04
13101 #define _PWM6INTFLG_PWM6PHIF 0x04
13102 #define _PWM6INTFLG_OFIF 0x08
13103 #define _PWM6INTFLG_PWM6OFIF 0x08
13105 //==============================================================================
13108 //==============================================================================
13109 // PWM6CLKCON Bits
13111 extern __at(0x0DAE) __sfr PWM6CLKCON;
13113 typedef union
13115 struct
13117 unsigned PWM6CS0 : 1;
13118 unsigned PWM6CS1 : 1;
13119 unsigned PWM6CS2 : 1;
13120 unsigned : 1;
13121 unsigned PWM6PS0 : 1;
13122 unsigned PWM6PS1 : 1;
13123 unsigned PWM6PS2 : 1;
13124 unsigned : 1;
13127 struct
13129 unsigned CS0 : 1;
13130 unsigned CS1 : 1;
13131 unsigned CS2 : 1;
13132 unsigned : 1;
13133 unsigned PS0 : 1;
13134 unsigned PS1 : 1;
13135 unsigned PS2 : 1;
13136 unsigned : 1;
13139 struct
13141 unsigned PWM6CS : 3;
13142 unsigned : 5;
13145 struct
13147 unsigned CS : 3;
13148 unsigned : 5;
13151 struct
13153 unsigned : 4;
13154 unsigned PS : 3;
13155 unsigned : 1;
13158 struct
13160 unsigned : 4;
13161 unsigned PWM6PS : 3;
13162 unsigned : 1;
13164 } __PWM6CLKCONbits_t;
13166 extern __at(0x0DAE) volatile __PWM6CLKCONbits_t PWM6CLKCONbits;
13168 #define _PWM6CLKCON_PWM6CS0 0x01
13169 #define _PWM6CLKCON_CS0 0x01
13170 #define _PWM6CLKCON_PWM6CS1 0x02
13171 #define _PWM6CLKCON_CS1 0x02
13172 #define _PWM6CLKCON_PWM6CS2 0x04
13173 #define _PWM6CLKCON_CS2 0x04
13174 #define _PWM6CLKCON_PWM6PS0 0x10
13175 #define _PWM6CLKCON_PS0 0x10
13176 #define _PWM6CLKCON_PWM6PS1 0x20
13177 #define _PWM6CLKCON_PS1 0x20
13178 #define _PWM6CLKCON_PWM6PS2 0x40
13179 #define _PWM6CLKCON_PS2 0x40
13181 //==============================================================================
13184 //==============================================================================
13185 // PWM6LDCON Bits
13187 extern __at(0x0DAF) __sfr PWM6LDCON;
13189 typedef union
13191 struct
13193 unsigned PWM6LDS0 : 1;
13194 unsigned : 1;
13195 unsigned : 1;
13196 unsigned : 1;
13197 unsigned : 1;
13198 unsigned : 1;
13199 unsigned LDT : 1;
13200 unsigned LDA : 1;
13203 struct
13205 unsigned LDS0 : 1;
13206 unsigned : 1;
13207 unsigned : 1;
13208 unsigned : 1;
13209 unsigned : 1;
13210 unsigned : 1;
13211 unsigned PWM6LDM : 1;
13212 unsigned PWM6LD : 1;
13214 } __PWM6LDCONbits_t;
13216 extern __at(0x0DAF) volatile __PWM6LDCONbits_t PWM6LDCONbits;
13218 #define _PWM6LDCON_PWM6LDS0 0x01
13219 #define _PWM6LDCON_LDS0 0x01
13220 #define _PWM6LDCON_LDT 0x40
13221 #define _PWM6LDCON_PWM6LDM 0x40
13222 #define _PWM6LDCON_LDA 0x80
13223 #define _PWM6LDCON_PWM6LD 0x80
13225 //==============================================================================
13228 //==============================================================================
13229 // PWM6OFCON Bits
13231 extern __at(0x0DB0) __sfr PWM6OFCON;
13233 typedef union
13235 struct
13237 unsigned PWM6OFS0 : 1;
13238 unsigned : 1;
13239 unsigned : 1;
13240 unsigned : 1;
13241 unsigned OFO : 1;
13242 unsigned PWM6OFM0 : 1;
13243 unsigned PWM6OFM1 : 1;
13244 unsigned : 1;
13247 struct
13249 unsigned OFS0 : 1;
13250 unsigned : 1;
13251 unsigned : 1;
13252 unsigned : 1;
13253 unsigned PWM6OFMC : 1;
13254 unsigned OFM0 : 1;
13255 unsigned OFM1 : 1;
13256 unsigned : 1;
13259 struct
13261 unsigned : 5;
13262 unsigned OFM : 2;
13263 unsigned : 1;
13266 struct
13268 unsigned : 5;
13269 unsigned PWM6OFM : 2;
13270 unsigned : 1;
13272 } __PWM6OFCONbits_t;
13274 extern __at(0x0DB0) volatile __PWM6OFCONbits_t PWM6OFCONbits;
13276 #define _PWM6OFCON_PWM6OFS0 0x01
13277 #define _PWM6OFCON_OFS0 0x01
13278 #define _PWM6OFCON_OFO 0x10
13279 #define _PWM6OFCON_PWM6OFMC 0x10
13280 #define _PWM6OFCON_PWM6OFM0 0x20
13281 #define _PWM6OFCON_OFM0 0x20
13282 #define _PWM6OFCON_PWM6OFM1 0x40
13283 #define _PWM6OFCON_OFM1 0x40
13285 //==============================================================================
13288 //==============================================================================
13289 // PPSLOCK Bits
13291 extern __at(0x0E0F) __sfr PPSLOCK;
13293 typedef struct
13295 unsigned PPSLOCKED : 1;
13296 unsigned : 1;
13297 unsigned : 1;
13298 unsigned : 1;
13299 unsigned : 1;
13300 unsigned : 1;
13301 unsigned : 1;
13302 unsigned : 1;
13303 } __PPSLOCKbits_t;
13305 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
13307 #define _PPSLOCKED 0x01
13309 //==============================================================================
13311 extern __at(0x0E10) __sfr INTPPS;
13312 extern __at(0x0E11) __sfr T0CKIPPS;
13313 extern __at(0x0E12) __sfr T1CKIPPS;
13314 extern __at(0x0E13) __sfr T1GPPS;
13315 extern __at(0x0E14) __sfr CCP1PPS;
13316 extern __at(0x0E15) __sfr CCP2PPS;
13317 extern __at(0x0E16) __sfr COG1INPPS;
13318 extern __at(0x0E17) __sfr COG2INPPS;
13319 extern __at(0x0E19) __sfr T2CKIPPS;
13320 extern __at(0x0E1A) __sfr T3CKIPPS;
13321 extern __at(0x0E1B) __sfr T3GPPS;
13322 extern __at(0x0E1C) __sfr T4CKIPPS;
13323 extern __at(0x0E1D) __sfr T5CKIPPS;
13324 extern __at(0x0E1E) __sfr T5GPPS;
13325 extern __at(0x0E1F) __sfr T6CKIPPS;
13326 extern __at(0x0E20) __sfr SSPCLKPPS;
13327 extern __at(0x0E21) __sfr SSPDATPPS;
13328 extern __at(0x0E22) __sfr SSPSSPPS;
13329 extern __at(0x0E24) __sfr RXPPS;
13330 extern __at(0x0E25) __sfr CKPPS;
13331 extern __at(0x0E28) __sfr CLCIN0PPS;
13332 extern __at(0x0E29) __sfr CLCIN1PPS;
13333 extern __at(0x0E2A) __sfr CLCIN2PPS;
13334 extern __at(0x0E2B) __sfr CLCIN3PPS;
13335 extern __at(0x0E2C) __sfr PRG1RPPS;
13336 extern __at(0x0E2D) __sfr PRG1FPPS;
13337 extern __at(0x0E2E) __sfr PRG2RPPS;
13338 extern __at(0x0E2F) __sfr PRG2FPPS;
13339 extern __at(0x0E30) __sfr MD1CHPPS;
13340 extern __at(0x0E31) __sfr MD1CLPPS;
13341 extern __at(0x0E32) __sfr MD1MODPPS;
13342 extern __at(0x0E33) __sfr MD2CHPPS;
13343 extern __at(0x0E34) __sfr MD2CLPPS;
13344 extern __at(0x0E35) __sfr MD2MODPPS;
13345 extern __at(0x0E90) __sfr RA0PPS;
13346 extern __at(0x0E91) __sfr RA1PPS;
13347 extern __at(0x0E92) __sfr RA2PPS;
13348 extern __at(0x0E94) __sfr RA4PPS;
13349 extern __at(0x0E95) __sfr RA5PPS;
13350 extern __at(0x0E9C) __sfr RB4PPS;
13351 extern __at(0x0E9D) __sfr RB5PPS;
13352 extern __at(0x0E9E) __sfr RB6PPS;
13353 extern __at(0x0E9F) __sfr RB7PPS;
13354 extern __at(0x0EA0) __sfr RC0PPS;
13355 extern __at(0x0EA1) __sfr RC1PPS;
13356 extern __at(0x0EA2) __sfr RC2PPS;
13357 extern __at(0x0EA3) __sfr RC3PPS;
13358 extern __at(0x0EA4) __sfr RC4PPS;
13359 extern __at(0x0EA5) __sfr RC5PPS;
13360 extern __at(0x0EA6) __sfr RC6PPS;
13361 extern __at(0x0EA7) __sfr RC7PPS;
13363 //==============================================================================
13364 // CLCDATA Bits
13366 extern __at(0x0F0F) __sfr CLCDATA;
13368 typedef struct
13370 unsigned MCLC1OUT : 1;
13371 unsigned MCLC2OUT : 1;
13372 unsigned MCLC3OUT : 1;
13373 unsigned : 1;
13374 unsigned : 1;
13375 unsigned : 1;
13376 unsigned : 1;
13377 unsigned : 1;
13378 } __CLCDATAbits_t;
13380 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
13382 #define _MCLC1OUT 0x01
13383 #define _MCLC2OUT 0x02
13384 #define _MCLC3OUT 0x04
13386 //==============================================================================
13389 //==============================================================================
13390 // CLC1CON Bits
13392 extern __at(0x0F10) __sfr CLC1CON;
13394 typedef union
13396 struct
13398 unsigned LC1MODE0 : 1;
13399 unsigned LC1MODE1 : 1;
13400 unsigned LC1MODE2 : 1;
13401 unsigned LC1INTN : 1;
13402 unsigned LC1INTP : 1;
13403 unsigned LC1OUT : 1;
13404 unsigned : 1;
13405 unsigned LC1EN : 1;
13408 struct
13410 unsigned MODE0 : 1;
13411 unsigned MODE1 : 1;
13412 unsigned MODE2 : 1;
13413 unsigned INTN : 1;
13414 unsigned INTP : 1;
13415 unsigned OUT : 1;
13416 unsigned : 1;
13417 unsigned EN : 1;
13420 struct
13422 unsigned MODE : 3;
13423 unsigned : 5;
13426 struct
13428 unsigned LC1MODE : 3;
13429 unsigned : 5;
13431 } __CLC1CONbits_t;
13433 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
13435 #define _CLC1CON_LC1MODE0 0x01
13436 #define _CLC1CON_MODE0 0x01
13437 #define _CLC1CON_LC1MODE1 0x02
13438 #define _CLC1CON_MODE1 0x02
13439 #define _CLC1CON_LC1MODE2 0x04
13440 #define _CLC1CON_MODE2 0x04
13441 #define _CLC1CON_LC1INTN 0x08
13442 #define _CLC1CON_INTN 0x08
13443 #define _CLC1CON_LC1INTP 0x10
13444 #define _CLC1CON_INTP 0x10
13445 #define _CLC1CON_LC1OUT 0x20
13446 #define _CLC1CON_OUT 0x20
13447 #define _CLC1CON_LC1EN 0x80
13448 #define _CLC1CON_EN 0x80
13450 //==============================================================================
13453 //==============================================================================
13454 // CLC1POL Bits
13456 extern __at(0x0F11) __sfr CLC1POL;
13458 typedef union
13460 struct
13462 unsigned LC1G1POL : 1;
13463 unsigned LC1G2POL : 1;
13464 unsigned LC1G3POL : 1;
13465 unsigned LC1G4POL : 1;
13466 unsigned : 1;
13467 unsigned : 1;
13468 unsigned : 1;
13469 unsigned LC1POL : 1;
13472 struct
13474 unsigned G1POL : 1;
13475 unsigned G2POL : 1;
13476 unsigned G3POL : 1;
13477 unsigned G4POL : 1;
13478 unsigned : 1;
13479 unsigned : 1;
13480 unsigned : 1;
13481 unsigned POL : 1;
13483 } __CLC1POLbits_t;
13485 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
13487 #define _LC1G1POL 0x01
13488 #define _G1POL 0x01
13489 #define _LC1G2POL 0x02
13490 #define _G2POL 0x02
13491 #define _LC1G3POL 0x04
13492 #define _G3POL 0x04
13493 #define _LC1G4POL 0x08
13494 #define _G4POL 0x08
13495 #define _LC1POL 0x80
13496 #define _POL 0x80
13498 //==============================================================================
13501 //==============================================================================
13502 // CLC1SEL0 Bits
13504 extern __at(0x0F12) __sfr CLC1SEL0;
13506 typedef union
13508 struct
13510 unsigned LC1D1S0 : 1;
13511 unsigned LC1D1S1 : 1;
13512 unsigned LC1D1S2 : 1;
13513 unsigned LC1D1S3 : 1;
13514 unsigned LC1D1S4 : 1;
13515 unsigned : 1;
13516 unsigned : 1;
13517 unsigned : 1;
13520 struct
13522 unsigned D1S0 : 1;
13523 unsigned D1S1 : 1;
13524 unsigned D1S2 : 1;
13525 unsigned D1S3 : 1;
13526 unsigned D1S4 : 1;
13527 unsigned : 1;
13528 unsigned : 1;
13529 unsigned : 1;
13532 struct
13534 unsigned D1S : 5;
13535 unsigned : 3;
13538 struct
13540 unsigned LC1D1S : 5;
13541 unsigned : 3;
13543 } __CLC1SEL0bits_t;
13545 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
13547 #define _LC1D1S0 0x01
13548 #define _D1S0 0x01
13549 #define _LC1D1S1 0x02
13550 #define _D1S1 0x02
13551 #define _LC1D1S2 0x04
13552 #define _D1S2 0x04
13553 #define _LC1D1S3 0x08
13554 #define _D1S3 0x08
13555 #define _LC1D1S4 0x10
13556 #define _D1S4 0x10
13558 //==============================================================================
13561 //==============================================================================
13562 // CLC1SEL1 Bits
13564 extern __at(0x0F13) __sfr CLC1SEL1;
13566 typedef union
13568 struct
13570 unsigned LC1D2S0 : 1;
13571 unsigned LC1D2S1 : 1;
13572 unsigned LC1D2S2 : 1;
13573 unsigned LC1D2S3 : 1;
13574 unsigned LC1D2S4 : 1;
13575 unsigned : 1;
13576 unsigned : 1;
13577 unsigned : 1;
13580 struct
13582 unsigned D2S0 : 1;
13583 unsigned D2S1 : 1;
13584 unsigned D2S2 : 1;
13585 unsigned D2S3 : 1;
13586 unsigned D2S4 : 1;
13587 unsigned : 1;
13588 unsigned : 1;
13589 unsigned : 1;
13592 struct
13594 unsigned D2S : 5;
13595 unsigned : 3;
13598 struct
13600 unsigned LC1D2S : 5;
13601 unsigned : 3;
13603 } __CLC1SEL1bits_t;
13605 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
13607 #define _LC1D2S0 0x01
13608 #define _D2S0 0x01
13609 #define _LC1D2S1 0x02
13610 #define _D2S1 0x02
13611 #define _LC1D2S2 0x04
13612 #define _D2S2 0x04
13613 #define _LC1D2S3 0x08
13614 #define _D2S3 0x08
13615 #define _LC1D2S4 0x10
13616 #define _D2S4 0x10
13618 //==============================================================================
13621 //==============================================================================
13622 // CLC1SEL2 Bits
13624 extern __at(0x0F14) __sfr CLC1SEL2;
13626 typedef union
13628 struct
13630 unsigned LC1D3S0 : 1;
13631 unsigned LC1D3S1 : 1;
13632 unsigned LC1D3S2 : 1;
13633 unsigned LC1D3S3 : 1;
13634 unsigned LC1D3S4 : 1;
13635 unsigned : 1;
13636 unsigned : 1;
13637 unsigned : 1;
13640 struct
13642 unsigned D3S0 : 1;
13643 unsigned D3S1 : 1;
13644 unsigned D3S2 : 1;
13645 unsigned D3S3 : 1;
13646 unsigned D3S4 : 1;
13647 unsigned : 1;
13648 unsigned : 1;
13649 unsigned : 1;
13652 struct
13654 unsigned LC1D3S : 5;
13655 unsigned : 3;
13658 struct
13660 unsigned D3S : 5;
13661 unsigned : 3;
13663 } __CLC1SEL2bits_t;
13665 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
13667 #define _LC1D3S0 0x01
13668 #define _D3S0 0x01
13669 #define _LC1D3S1 0x02
13670 #define _D3S1 0x02
13671 #define _LC1D3S2 0x04
13672 #define _D3S2 0x04
13673 #define _LC1D3S3 0x08
13674 #define _D3S3 0x08
13675 #define _LC1D3S4 0x10
13676 #define _D3S4 0x10
13678 //==============================================================================
13681 //==============================================================================
13682 // CLC1SEL3 Bits
13684 extern __at(0x0F15) __sfr CLC1SEL3;
13686 typedef union
13688 struct
13690 unsigned LC1D4S0 : 1;
13691 unsigned LC1D4S1 : 1;
13692 unsigned LC1D4S2 : 1;
13693 unsigned LC1D4S3 : 1;
13694 unsigned LC1D4S4 : 1;
13695 unsigned : 1;
13696 unsigned : 1;
13697 unsigned : 1;
13700 struct
13702 unsigned D4S0 : 1;
13703 unsigned D4S1 : 1;
13704 unsigned D4S2 : 1;
13705 unsigned D4S3 : 1;
13706 unsigned D4S4 : 1;
13707 unsigned : 1;
13708 unsigned : 1;
13709 unsigned : 1;
13712 struct
13714 unsigned LC1D4S : 5;
13715 unsigned : 3;
13718 struct
13720 unsigned D4S : 5;
13721 unsigned : 3;
13723 } __CLC1SEL3bits_t;
13725 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
13727 #define _LC1D4S0 0x01
13728 #define _D4S0 0x01
13729 #define _LC1D4S1 0x02
13730 #define _D4S1 0x02
13731 #define _LC1D4S2 0x04
13732 #define _D4S2 0x04
13733 #define _LC1D4S3 0x08
13734 #define _D4S3 0x08
13735 #define _LC1D4S4 0x10
13736 #define _D4S4 0x10
13738 //==============================================================================
13741 //==============================================================================
13742 // CLC1GLS0 Bits
13744 extern __at(0x0F16) __sfr CLC1GLS0;
13746 typedef union
13748 struct
13750 unsigned LC1G1D1N : 1;
13751 unsigned LC1G1D1T : 1;
13752 unsigned LC1G1D2N : 1;
13753 unsigned LC1G1D2T : 1;
13754 unsigned LC1G1D3N : 1;
13755 unsigned LC1G1D3T : 1;
13756 unsigned LC1G1D4N : 1;
13757 unsigned LC1G1D4T : 1;
13760 struct
13762 unsigned D1N : 1;
13763 unsigned D1T : 1;
13764 unsigned D2N : 1;
13765 unsigned D2T : 1;
13766 unsigned D3N : 1;
13767 unsigned D3T : 1;
13768 unsigned D4N : 1;
13769 unsigned D4T : 1;
13771 } __CLC1GLS0bits_t;
13773 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
13775 #define _LC1G1D1N 0x01
13776 #define _D1N 0x01
13777 #define _LC1G1D1T 0x02
13778 #define _D1T 0x02
13779 #define _LC1G1D2N 0x04
13780 #define _D2N 0x04
13781 #define _LC1G1D2T 0x08
13782 #define _D2T 0x08
13783 #define _LC1G1D3N 0x10
13784 #define _D3N 0x10
13785 #define _LC1G1D3T 0x20
13786 #define _D3T 0x20
13787 #define _LC1G1D4N 0x40
13788 #define _D4N 0x40
13789 #define _LC1G1D4T 0x80
13790 #define _D4T 0x80
13792 //==============================================================================
13795 //==============================================================================
13796 // CLC1GLS1 Bits
13798 extern __at(0x0F17) __sfr CLC1GLS1;
13800 typedef union
13802 struct
13804 unsigned LC1G2D1N : 1;
13805 unsigned LC1G2D1T : 1;
13806 unsigned LC1G2D2N : 1;
13807 unsigned LC1G2D2T : 1;
13808 unsigned LC1G2D3N : 1;
13809 unsigned LC1G2D3T : 1;
13810 unsigned LC1G2D4N : 1;
13811 unsigned LC1G2D4T : 1;
13814 struct
13816 unsigned D1N : 1;
13817 unsigned D1T : 1;
13818 unsigned D2N : 1;
13819 unsigned D2T : 1;
13820 unsigned D3N : 1;
13821 unsigned D3T : 1;
13822 unsigned D4N : 1;
13823 unsigned D4T : 1;
13825 } __CLC1GLS1bits_t;
13827 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
13829 #define _CLC1GLS1_LC1G2D1N 0x01
13830 #define _CLC1GLS1_D1N 0x01
13831 #define _CLC1GLS1_LC1G2D1T 0x02
13832 #define _CLC1GLS1_D1T 0x02
13833 #define _CLC1GLS1_LC1G2D2N 0x04
13834 #define _CLC1GLS1_D2N 0x04
13835 #define _CLC1GLS1_LC1G2D2T 0x08
13836 #define _CLC1GLS1_D2T 0x08
13837 #define _CLC1GLS1_LC1G2D3N 0x10
13838 #define _CLC1GLS1_D3N 0x10
13839 #define _CLC1GLS1_LC1G2D3T 0x20
13840 #define _CLC1GLS1_D3T 0x20
13841 #define _CLC1GLS1_LC1G2D4N 0x40
13842 #define _CLC1GLS1_D4N 0x40
13843 #define _CLC1GLS1_LC1G2D4T 0x80
13844 #define _CLC1GLS1_D4T 0x80
13846 //==============================================================================
13849 //==============================================================================
13850 // CLC1GLS2 Bits
13852 extern __at(0x0F18) __sfr CLC1GLS2;
13854 typedef union
13856 struct
13858 unsigned LC1G3D1N : 1;
13859 unsigned LC1G3D1T : 1;
13860 unsigned LC1G3D2N : 1;
13861 unsigned LC1G3D2T : 1;
13862 unsigned LC1G3D3N : 1;
13863 unsigned LC1G3D3T : 1;
13864 unsigned LC1G3D4N : 1;
13865 unsigned LC1G3D4T : 1;
13868 struct
13870 unsigned D1N : 1;
13871 unsigned D1T : 1;
13872 unsigned D2N : 1;
13873 unsigned D2T : 1;
13874 unsigned D3N : 1;
13875 unsigned D3T : 1;
13876 unsigned D4N : 1;
13877 unsigned D4T : 1;
13879 } __CLC1GLS2bits_t;
13881 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
13883 #define _CLC1GLS2_LC1G3D1N 0x01
13884 #define _CLC1GLS2_D1N 0x01
13885 #define _CLC1GLS2_LC1G3D1T 0x02
13886 #define _CLC1GLS2_D1T 0x02
13887 #define _CLC1GLS2_LC1G3D2N 0x04
13888 #define _CLC1GLS2_D2N 0x04
13889 #define _CLC1GLS2_LC1G3D2T 0x08
13890 #define _CLC1GLS2_D2T 0x08
13891 #define _CLC1GLS2_LC1G3D3N 0x10
13892 #define _CLC1GLS2_D3N 0x10
13893 #define _CLC1GLS2_LC1G3D3T 0x20
13894 #define _CLC1GLS2_D3T 0x20
13895 #define _CLC1GLS2_LC1G3D4N 0x40
13896 #define _CLC1GLS2_D4N 0x40
13897 #define _CLC1GLS2_LC1G3D4T 0x80
13898 #define _CLC1GLS2_D4T 0x80
13900 //==============================================================================
13903 //==============================================================================
13904 // CLC1GLS3 Bits
13906 extern __at(0x0F19) __sfr CLC1GLS3;
13908 typedef union
13910 struct
13912 unsigned LC1G4D1N : 1;
13913 unsigned LC1G4D1T : 1;
13914 unsigned LC1G4D2N : 1;
13915 unsigned LC1G4D2T : 1;
13916 unsigned LC1G4D3N : 1;
13917 unsigned LC1G4D3T : 1;
13918 unsigned LC1G4D4N : 1;
13919 unsigned LC1G4D4T : 1;
13922 struct
13924 unsigned G4D1N : 1;
13925 unsigned G4D1T : 1;
13926 unsigned G4D2N : 1;
13927 unsigned G4D2T : 1;
13928 unsigned G4D3N : 1;
13929 unsigned G4D3T : 1;
13930 unsigned G4D4N : 1;
13931 unsigned G4D4T : 1;
13933 } __CLC1GLS3bits_t;
13935 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
13937 #define _LC1G4D1N 0x01
13938 #define _G4D1N 0x01
13939 #define _LC1G4D1T 0x02
13940 #define _G4D1T 0x02
13941 #define _LC1G4D2N 0x04
13942 #define _G4D2N 0x04
13943 #define _LC1G4D2T 0x08
13944 #define _G4D2T 0x08
13945 #define _LC1G4D3N 0x10
13946 #define _G4D3N 0x10
13947 #define _LC1G4D3T 0x20
13948 #define _G4D3T 0x20
13949 #define _LC1G4D4N 0x40
13950 #define _G4D4N 0x40
13951 #define _LC1G4D4T 0x80
13952 #define _G4D4T 0x80
13954 //==============================================================================
13957 //==============================================================================
13958 // CLC2CON Bits
13960 extern __at(0x0F1A) __sfr CLC2CON;
13962 typedef union
13964 struct
13966 unsigned LC2MODE0 : 1;
13967 unsigned LC2MODE1 : 1;
13968 unsigned LC2MODE2 : 1;
13969 unsigned LC2INTN : 1;
13970 unsigned LC2INTP : 1;
13971 unsigned LC2OUT : 1;
13972 unsigned : 1;
13973 unsigned LC2EN : 1;
13976 struct
13978 unsigned MODE0 : 1;
13979 unsigned MODE1 : 1;
13980 unsigned MODE2 : 1;
13981 unsigned INTN : 1;
13982 unsigned INTP : 1;
13983 unsigned OUT : 1;
13984 unsigned : 1;
13985 unsigned EN : 1;
13988 struct
13990 unsigned LC2MODE : 3;
13991 unsigned : 5;
13994 struct
13996 unsigned MODE : 3;
13997 unsigned : 5;
13999 } __CLC2CONbits_t;
14001 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
14003 #define _CLC2CON_LC2MODE0 0x01
14004 #define _CLC2CON_MODE0 0x01
14005 #define _CLC2CON_LC2MODE1 0x02
14006 #define _CLC2CON_MODE1 0x02
14007 #define _CLC2CON_LC2MODE2 0x04
14008 #define _CLC2CON_MODE2 0x04
14009 #define _CLC2CON_LC2INTN 0x08
14010 #define _CLC2CON_INTN 0x08
14011 #define _CLC2CON_LC2INTP 0x10
14012 #define _CLC2CON_INTP 0x10
14013 #define _CLC2CON_LC2OUT 0x20
14014 #define _CLC2CON_OUT 0x20
14015 #define _CLC2CON_LC2EN 0x80
14016 #define _CLC2CON_EN 0x80
14018 //==============================================================================
14021 //==============================================================================
14022 // CLC2POL Bits
14024 extern __at(0x0F1B) __sfr CLC2POL;
14026 typedef union
14028 struct
14030 unsigned LC2G1POL : 1;
14031 unsigned LC2G2POL : 1;
14032 unsigned LC2G3POL : 1;
14033 unsigned LC2G4POL : 1;
14034 unsigned : 1;
14035 unsigned : 1;
14036 unsigned : 1;
14037 unsigned LC2POL : 1;
14040 struct
14042 unsigned G1POL : 1;
14043 unsigned G2POL : 1;
14044 unsigned G3POL : 1;
14045 unsigned G4POL : 1;
14046 unsigned : 1;
14047 unsigned : 1;
14048 unsigned : 1;
14049 unsigned POL : 1;
14051 } __CLC2POLbits_t;
14053 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
14055 #define _CLC2POL_LC2G1POL 0x01
14056 #define _CLC2POL_G1POL 0x01
14057 #define _CLC2POL_LC2G2POL 0x02
14058 #define _CLC2POL_G2POL 0x02
14059 #define _CLC2POL_LC2G3POL 0x04
14060 #define _CLC2POL_G3POL 0x04
14061 #define _CLC2POL_LC2G4POL 0x08
14062 #define _CLC2POL_G4POL 0x08
14063 #define _CLC2POL_LC2POL 0x80
14064 #define _CLC2POL_POL 0x80
14066 //==============================================================================
14069 //==============================================================================
14070 // CLC2SEL0 Bits
14072 extern __at(0x0F1C) __sfr CLC2SEL0;
14074 typedef union
14076 struct
14078 unsigned LC2D1S0 : 1;
14079 unsigned LC2D1S1 : 1;
14080 unsigned LC2D1S2 : 1;
14081 unsigned LC2D1S3 : 1;
14082 unsigned LC2D1S4 : 1;
14083 unsigned : 1;
14084 unsigned : 1;
14085 unsigned : 1;
14088 struct
14090 unsigned D1S0 : 1;
14091 unsigned D1S1 : 1;
14092 unsigned D1S2 : 1;
14093 unsigned D1S3 : 1;
14094 unsigned D1S4 : 1;
14095 unsigned : 1;
14096 unsigned : 1;
14097 unsigned : 1;
14100 struct
14102 unsigned LC2D1S : 5;
14103 unsigned : 3;
14106 struct
14108 unsigned D1S : 5;
14109 unsigned : 3;
14111 } __CLC2SEL0bits_t;
14113 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
14115 #define _CLC2SEL0_LC2D1S0 0x01
14116 #define _CLC2SEL0_D1S0 0x01
14117 #define _CLC2SEL0_LC2D1S1 0x02
14118 #define _CLC2SEL0_D1S1 0x02
14119 #define _CLC2SEL0_LC2D1S2 0x04
14120 #define _CLC2SEL0_D1S2 0x04
14121 #define _CLC2SEL0_LC2D1S3 0x08
14122 #define _CLC2SEL0_D1S3 0x08
14123 #define _CLC2SEL0_LC2D1S4 0x10
14124 #define _CLC2SEL0_D1S4 0x10
14126 //==============================================================================
14129 //==============================================================================
14130 // CLC2SEL1 Bits
14132 extern __at(0x0F1D) __sfr CLC2SEL1;
14134 typedef union
14136 struct
14138 unsigned LC2D2S0 : 1;
14139 unsigned LC2D2S1 : 1;
14140 unsigned LC2D2S2 : 1;
14141 unsigned LC2D2S3 : 1;
14142 unsigned LC2D2S4 : 1;
14143 unsigned : 1;
14144 unsigned : 1;
14145 unsigned : 1;
14148 struct
14150 unsigned D2S0 : 1;
14151 unsigned D2S1 : 1;
14152 unsigned D2S2 : 1;
14153 unsigned D2S3 : 1;
14154 unsigned D2S4 : 1;
14155 unsigned : 1;
14156 unsigned : 1;
14157 unsigned : 1;
14160 struct
14162 unsigned LC2D2S : 5;
14163 unsigned : 3;
14166 struct
14168 unsigned D2S : 5;
14169 unsigned : 3;
14171 } __CLC2SEL1bits_t;
14173 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
14175 #define _CLC2SEL1_LC2D2S0 0x01
14176 #define _CLC2SEL1_D2S0 0x01
14177 #define _CLC2SEL1_LC2D2S1 0x02
14178 #define _CLC2SEL1_D2S1 0x02
14179 #define _CLC2SEL1_LC2D2S2 0x04
14180 #define _CLC2SEL1_D2S2 0x04
14181 #define _CLC2SEL1_LC2D2S3 0x08
14182 #define _CLC2SEL1_D2S3 0x08
14183 #define _CLC2SEL1_LC2D2S4 0x10
14184 #define _CLC2SEL1_D2S4 0x10
14186 //==============================================================================
14189 //==============================================================================
14190 // CLC2SEL2 Bits
14192 extern __at(0x0F1E) __sfr CLC2SEL2;
14194 typedef union
14196 struct
14198 unsigned LC2D3S0 : 1;
14199 unsigned LC2D3S1 : 1;
14200 unsigned LC2D3S2 : 1;
14201 unsigned LC2D3S3 : 1;
14202 unsigned LC2D3S4 : 1;
14203 unsigned : 1;
14204 unsigned : 1;
14205 unsigned : 1;
14208 struct
14210 unsigned D3S0 : 1;
14211 unsigned D3S1 : 1;
14212 unsigned D3S2 : 1;
14213 unsigned D3S3 : 1;
14214 unsigned D3S4 : 1;
14215 unsigned : 1;
14216 unsigned : 1;
14217 unsigned : 1;
14220 struct
14222 unsigned LC2D3S : 5;
14223 unsigned : 3;
14226 struct
14228 unsigned D3S : 5;
14229 unsigned : 3;
14231 } __CLC2SEL2bits_t;
14233 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
14235 #define _CLC2SEL2_LC2D3S0 0x01
14236 #define _CLC2SEL2_D3S0 0x01
14237 #define _CLC2SEL2_LC2D3S1 0x02
14238 #define _CLC2SEL2_D3S1 0x02
14239 #define _CLC2SEL2_LC2D3S2 0x04
14240 #define _CLC2SEL2_D3S2 0x04
14241 #define _CLC2SEL2_LC2D3S3 0x08
14242 #define _CLC2SEL2_D3S3 0x08
14243 #define _CLC2SEL2_LC2D3S4 0x10
14244 #define _CLC2SEL2_D3S4 0x10
14246 //==============================================================================
14249 //==============================================================================
14250 // CLC2SEL3 Bits
14252 extern __at(0x0F1F) __sfr CLC2SEL3;
14254 typedef union
14256 struct
14258 unsigned LC2D4S0 : 1;
14259 unsigned LC2D4S1 : 1;
14260 unsigned LC2D4S2 : 1;
14261 unsigned LC2D4S3 : 1;
14262 unsigned LC2D4S4 : 1;
14263 unsigned : 1;
14264 unsigned : 1;
14265 unsigned : 1;
14268 struct
14270 unsigned D4S0 : 1;
14271 unsigned D4S1 : 1;
14272 unsigned D4S2 : 1;
14273 unsigned D4S3 : 1;
14274 unsigned D4S4 : 1;
14275 unsigned : 1;
14276 unsigned : 1;
14277 unsigned : 1;
14280 struct
14282 unsigned LC2D4S : 5;
14283 unsigned : 3;
14286 struct
14288 unsigned D4S : 5;
14289 unsigned : 3;
14291 } __CLC2SEL3bits_t;
14293 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
14295 #define _CLC2SEL3_LC2D4S0 0x01
14296 #define _CLC2SEL3_D4S0 0x01
14297 #define _CLC2SEL3_LC2D4S1 0x02
14298 #define _CLC2SEL3_D4S1 0x02
14299 #define _CLC2SEL3_LC2D4S2 0x04
14300 #define _CLC2SEL3_D4S2 0x04
14301 #define _CLC2SEL3_LC2D4S3 0x08
14302 #define _CLC2SEL3_D4S3 0x08
14303 #define _CLC2SEL3_LC2D4S4 0x10
14304 #define _CLC2SEL3_D4S4 0x10
14306 //==============================================================================
14309 //==============================================================================
14310 // CLC2GLS0 Bits
14312 extern __at(0x0F20) __sfr CLC2GLS0;
14314 typedef union
14316 struct
14318 unsigned LC2G1D1N : 1;
14319 unsigned LC2G1D1T : 1;
14320 unsigned LC2G1D2N : 1;
14321 unsigned LC2G1D2T : 1;
14322 unsigned LC2G1D3N : 1;
14323 unsigned LC2G1D3T : 1;
14324 unsigned LC2G1D4N : 1;
14325 unsigned LC2G1D4T : 1;
14328 struct
14330 unsigned D1N : 1;
14331 unsigned D1T : 1;
14332 unsigned D2N : 1;
14333 unsigned D2T : 1;
14334 unsigned D3N : 1;
14335 unsigned D3T : 1;
14336 unsigned D4N : 1;
14337 unsigned D4T : 1;
14339 } __CLC2GLS0bits_t;
14341 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
14343 #define _CLC2GLS0_LC2G1D1N 0x01
14344 #define _CLC2GLS0_D1N 0x01
14345 #define _CLC2GLS0_LC2G1D1T 0x02
14346 #define _CLC2GLS0_D1T 0x02
14347 #define _CLC2GLS0_LC2G1D2N 0x04
14348 #define _CLC2GLS0_D2N 0x04
14349 #define _CLC2GLS0_LC2G1D2T 0x08
14350 #define _CLC2GLS0_D2T 0x08
14351 #define _CLC2GLS0_LC2G1D3N 0x10
14352 #define _CLC2GLS0_D3N 0x10
14353 #define _CLC2GLS0_LC2G1D3T 0x20
14354 #define _CLC2GLS0_D3T 0x20
14355 #define _CLC2GLS0_LC2G1D4N 0x40
14356 #define _CLC2GLS0_D4N 0x40
14357 #define _CLC2GLS0_LC2G1D4T 0x80
14358 #define _CLC2GLS0_D4T 0x80
14360 //==============================================================================
14363 //==============================================================================
14364 // CLC2GLS1 Bits
14366 extern __at(0x0F21) __sfr CLC2GLS1;
14368 typedef union
14370 struct
14372 unsigned LC2G2D1N : 1;
14373 unsigned LC2G2D1T : 1;
14374 unsigned LC2G2D2N : 1;
14375 unsigned LC2G2D2T : 1;
14376 unsigned LC2G2D3N : 1;
14377 unsigned LC2G2D3T : 1;
14378 unsigned LC2G2D4N : 1;
14379 unsigned LC2G2D4T : 1;
14382 struct
14384 unsigned D1N : 1;
14385 unsigned D1T : 1;
14386 unsigned D2N : 1;
14387 unsigned D2T : 1;
14388 unsigned D3N : 1;
14389 unsigned D3T : 1;
14390 unsigned D4N : 1;
14391 unsigned D4T : 1;
14393 } __CLC2GLS1bits_t;
14395 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
14397 #define _CLC2GLS1_LC2G2D1N 0x01
14398 #define _CLC2GLS1_D1N 0x01
14399 #define _CLC2GLS1_LC2G2D1T 0x02
14400 #define _CLC2GLS1_D1T 0x02
14401 #define _CLC2GLS1_LC2G2D2N 0x04
14402 #define _CLC2GLS1_D2N 0x04
14403 #define _CLC2GLS1_LC2G2D2T 0x08
14404 #define _CLC2GLS1_D2T 0x08
14405 #define _CLC2GLS1_LC2G2D3N 0x10
14406 #define _CLC2GLS1_D3N 0x10
14407 #define _CLC2GLS1_LC2G2D3T 0x20
14408 #define _CLC2GLS1_D3T 0x20
14409 #define _CLC2GLS1_LC2G2D4N 0x40
14410 #define _CLC2GLS1_D4N 0x40
14411 #define _CLC2GLS1_LC2G2D4T 0x80
14412 #define _CLC2GLS1_D4T 0x80
14414 //==============================================================================
14417 //==============================================================================
14418 // CLC2GLS2 Bits
14420 extern __at(0x0F22) __sfr CLC2GLS2;
14422 typedef union
14424 struct
14426 unsigned LC2G3D1N : 1;
14427 unsigned LC2G3D1T : 1;
14428 unsigned LC2G3D2N : 1;
14429 unsigned LC2G3D2T : 1;
14430 unsigned LC2G3D3N : 1;
14431 unsigned LC2G3D3T : 1;
14432 unsigned LC2G3D4N : 1;
14433 unsigned LC2G3D4T : 1;
14436 struct
14438 unsigned D1N : 1;
14439 unsigned D1T : 1;
14440 unsigned D2N : 1;
14441 unsigned D2T : 1;
14442 unsigned D3N : 1;
14443 unsigned D3T : 1;
14444 unsigned D4N : 1;
14445 unsigned D4T : 1;
14447 } __CLC2GLS2bits_t;
14449 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
14451 #define _CLC2GLS2_LC2G3D1N 0x01
14452 #define _CLC2GLS2_D1N 0x01
14453 #define _CLC2GLS2_LC2G3D1T 0x02
14454 #define _CLC2GLS2_D1T 0x02
14455 #define _CLC2GLS2_LC2G3D2N 0x04
14456 #define _CLC2GLS2_D2N 0x04
14457 #define _CLC2GLS2_LC2G3D2T 0x08
14458 #define _CLC2GLS2_D2T 0x08
14459 #define _CLC2GLS2_LC2G3D3N 0x10
14460 #define _CLC2GLS2_D3N 0x10
14461 #define _CLC2GLS2_LC2G3D3T 0x20
14462 #define _CLC2GLS2_D3T 0x20
14463 #define _CLC2GLS2_LC2G3D4N 0x40
14464 #define _CLC2GLS2_D4N 0x40
14465 #define _CLC2GLS2_LC2G3D4T 0x80
14466 #define _CLC2GLS2_D4T 0x80
14468 //==============================================================================
14471 //==============================================================================
14472 // CLC2GLS3 Bits
14474 extern __at(0x0F23) __sfr CLC2GLS3;
14476 typedef union
14478 struct
14480 unsigned LC2G4D1N : 1;
14481 unsigned LC2G4D1T : 1;
14482 unsigned LC2G4D2N : 1;
14483 unsigned LC2G4D2T : 1;
14484 unsigned LC2G4D3N : 1;
14485 unsigned LC2G4D3T : 1;
14486 unsigned LC2G4D4N : 1;
14487 unsigned LC2G4D4T : 1;
14490 struct
14492 unsigned G4D1N : 1;
14493 unsigned G4D1T : 1;
14494 unsigned G4D2N : 1;
14495 unsigned G4D2T : 1;
14496 unsigned G4D3N : 1;
14497 unsigned G4D3T : 1;
14498 unsigned G4D4N : 1;
14499 unsigned G4D4T : 1;
14501 } __CLC2GLS3bits_t;
14503 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
14505 #define _CLC2GLS3_LC2G4D1N 0x01
14506 #define _CLC2GLS3_G4D1N 0x01
14507 #define _CLC2GLS3_LC2G4D1T 0x02
14508 #define _CLC2GLS3_G4D1T 0x02
14509 #define _CLC2GLS3_LC2G4D2N 0x04
14510 #define _CLC2GLS3_G4D2N 0x04
14511 #define _CLC2GLS3_LC2G4D2T 0x08
14512 #define _CLC2GLS3_G4D2T 0x08
14513 #define _CLC2GLS3_LC2G4D3N 0x10
14514 #define _CLC2GLS3_G4D3N 0x10
14515 #define _CLC2GLS3_LC2G4D3T 0x20
14516 #define _CLC2GLS3_G4D3T 0x20
14517 #define _CLC2GLS3_LC2G4D4N 0x40
14518 #define _CLC2GLS3_G4D4N 0x40
14519 #define _CLC2GLS3_LC2G4D4T 0x80
14520 #define _CLC2GLS3_G4D4T 0x80
14522 //==============================================================================
14525 //==============================================================================
14526 // CLC3CON Bits
14528 extern __at(0x0F24) __sfr CLC3CON;
14530 typedef union
14532 struct
14534 unsigned LC3MODE0 : 1;
14535 unsigned LC3MODE1 : 1;
14536 unsigned LC3MODE2 : 1;
14537 unsigned LC3INTN : 1;
14538 unsigned LC3INTP : 1;
14539 unsigned LC3OUT : 1;
14540 unsigned : 1;
14541 unsigned LC3EN : 1;
14544 struct
14546 unsigned MODE0 : 1;
14547 unsigned MODE1 : 1;
14548 unsigned MODE2 : 1;
14549 unsigned INTN : 1;
14550 unsigned INTP : 1;
14551 unsigned OUT : 1;
14552 unsigned : 1;
14553 unsigned EN : 1;
14556 struct
14558 unsigned LC3MODE : 3;
14559 unsigned : 5;
14562 struct
14564 unsigned MODE : 3;
14565 unsigned : 5;
14567 } __CLC3CONbits_t;
14569 extern __at(0x0F24) volatile __CLC3CONbits_t CLC3CONbits;
14571 #define _CLC3CON_LC3MODE0 0x01
14572 #define _CLC3CON_MODE0 0x01
14573 #define _CLC3CON_LC3MODE1 0x02
14574 #define _CLC3CON_MODE1 0x02
14575 #define _CLC3CON_LC3MODE2 0x04
14576 #define _CLC3CON_MODE2 0x04
14577 #define _CLC3CON_LC3INTN 0x08
14578 #define _CLC3CON_INTN 0x08
14579 #define _CLC3CON_LC3INTP 0x10
14580 #define _CLC3CON_INTP 0x10
14581 #define _CLC3CON_LC3OUT 0x20
14582 #define _CLC3CON_OUT 0x20
14583 #define _CLC3CON_LC3EN 0x80
14584 #define _CLC3CON_EN 0x80
14586 //==============================================================================
14589 //==============================================================================
14590 // CLC3POL Bits
14592 extern __at(0x0F25) __sfr CLC3POL;
14594 typedef union
14596 struct
14598 unsigned LC3G1POL : 1;
14599 unsigned LC3G2POL : 1;
14600 unsigned LC3G3POL : 1;
14601 unsigned LC3G4POL : 1;
14602 unsigned : 1;
14603 unsigned : 1;
14604 unsigned : 1;
14605 unsigned LC3POL : 1;
14608 struct
14610 unsigned G1POL : 1;
14611 unsigned G2POL : 1;
14612 unsigned G3POL : 1;
14613 unsigned G4POL : 1;
14614 unsigned : 1;
14615 unsigned : 1;
14616 unsigned : 1;
14617 unsigned POL : 1;
14619 } __CLC3POLbits_t;
14621 extern __at(0x0F25) volatile __CLC3POLbits_t CLC3POLbits;
14623 #define _CLC3POL_LC3G1POL 0x01
14624 #define _CLC3POL_G1POL 0x01
14625 #define _CLC3POL_LC3G2POL 0x02
14626 #define _CLC3POL_G2POL 0x02
14627 #define _CLC3POL_LC3G3POL 0x04
14628 #define _CLC3POL_G3POL 0x04
14629 #define _CLC3POL_LC3G4POL 0x08
14630 #define _CLC3POL_G4POL 0x08
14631 #define _CLC3POL_LC3POL 0x80
14632 #define _CLC3POL_POL 0x80
14634 //==============================================================================
14637 //==============================================================================
14638 // CLC3SEL0 Bits
14640 extern __at(0x0F26) __sfr CLC3SEL0;
14642 typedef union
14644 struct
14646 unsigned LC3D1S0 : 1;
14647 unsigned LC3D1S1 : 1;
14648 unsigned LC3D1S2 : 1;
14649 unsigned LC3D1S3 : 1;
14650 unsigned LC3D1S4 : 1;
14651 unsigned : 1;
14652 unsigned : 1;
14653 unsigned : 1;
14656 struct
14658 unsigned D1S0 : 1;
14659 unsigned D1S1 : 1;
14660 unsigned D1S2 : 1;
14661 unsigned D1S3 : 1;
14662 unsigned D1S4 : 1;
14663 unsigned : 1;
14664 unsigned : 1;
14665 unsigned : 1;
14668 struct
14670 unsigned LC3D1S : 5;
14671 unsigned : 3;
14674 struct
14676 unsigned D1S : 5;
14677 unsigned : 3;
14679 } __CLC3SEL0bits_t;
14681 extern __at(0x0F26) volatile __CLC3SEL0bits_t CLC3SEL0bits;
14683 #define _CLC3SEL0_LC3D1S0 0x01
14684 #define _CLC3SEL0_D1S0 0x01
14685 #define _CLC3SEL0_LC3D1S1 0x02
14686 #define _CLC3SEL0_D1S1 0x02
14687 #define _CLC3SEL0_LC3D1S2 0x04
14688 #define _CLC3SEL0_D1S2 0x04
14689 #define _CLC3SEL0_LC3D1S3 0x08
14690 #define _CLC3SEL0_D1S3 0x08
14691 #define _CLC3SEL0_LC3D1S4 0x10
14692 #define _CLC3SEL0_D1S4 0x10
14694 //==============================================================================
14697 //==============================================================================
14698 // CLC3SEL1 Bits
14700 extern __at(0x0F27) __sfr CLC3SEL1;
14702 typedef union
14704 struct
14706 unsigned LC3D2S0 : 1;
14707 unsigned LC3D2S1 : 1;
14708 unsigned LC3D2S2 : 1;
14709 unsigned LC3D2S3 : 1;
14710 unsigned LC3D2S4 : 1;
14711 unsigned : 1;
14712 unsigned : 1;
14713 unsigned : 1;
14716 struct
14718 unsigned D2S0 : 1;
14719 unsigned D2S1 : 1;
14720 unsigned D2S2 : 1;
14721 unsigned D2S3 : 1;
14722 unsigned D2S4 : 1;
14723 unsigned : 1;
14724 unsigned : 1;
14725 unsigned : 1;
14728 struct
14730 unsigned D2S : 5;
14731 unsigned : 3;
14734 struct
14736 unsigned LC3D2S : 5;
14737 unsigned : 3;
14739 } __CLC3SEL1bits_t;
14741 extern __at(0x0F27) volatile __CLC3SEL1bits_t CLC3SEL1bits;
14743 #define _CLC3SEL1_LC3D2S0 0x01
14744 #define _CLC3SEL1_D2S0 0x01
14745 #define _CLC3SEL1_LC3D2S1 0x02
14746 #define _CLC3SEL1_D2S1 0x02
14747 #define _CLC3SEL1_LC3D2S2 0x04
14748 #define _CLC3SEL1_D2S2 0x04
14749 #define _CLC3SEL1_LC3D2S3 0x08
14750 #define _CLC3SEL1_D2S3 0x08
14751 #define _CLC3SEL1_LC3D2S4 0x10
14752 #define _CLC3SEL1_D2S4 0x10
14754 //==============================================================================
14757 //==============================================================================
14758 // CLC3SEL2 Bits
14760 extern __at(0x0F28) __sfr CLC3SEL2;
14762 typedef union
14764 struct
14766 unsigned LC3D3S0 : 1;
14767 unsigned LC3D3S1 : 1;
14768 unsigned LC3D3S2 : 1;
14769 unsigned LC3D3S3 : 1;
14770 unsigned LC3D3S4 : 1;
14771 unsigned : 1;
14772 unsigned : 1;
14773 unsigned : 1;
14776 struct
14778 unsigned D3S0 : 1;
14779 unsigned D3S1 : 1;
14780 unsigned D3S2 : 1;
14781 unsigned D3S3 : 1;
14782 unsigned D3S4 : 1;
14783 unsigned : 1;
14784 unsigned : 1;
14785 unsigned : 1;
14788 struct
14790 unsigned LC3D3S : 5;
14791 unsigned : 3;
14794 struct
14796 unsigned D3S : 5;
14797 unsigned : 3;
14799 } __CLC3SEL2bits_t;
14801 extern __at(0x0F28) volatile __CLC3SEL2bits_t CLC3SEL2bits;
14803 #define _CLC3SEL2_LC3D3S0 0x01
14804 #define _CLC3SEL2_D3S0 0x01
14805 #define _CLC3SEL2_LC3D3S1 0x02
14806 #define _CLC3SEL2_D3S1 0x02
14807 #define _CLC3SEL2_LC3D3S2 0x04
14808 #define _CLC3SEL2_D3S2 0x04
14809 #define _CLC3SEL2_LC3D3S3 0x08
14810 #define _CLC3SEL2_D3S3 0x08
14811 #define _CLC3SEL2_LC3D3S4 0x10
14812 #define _CLC3SEL2_D3S4 0x10
14814 //==============================================================================
14817 //==============================================================================
14818 // CLC3SEL3 Bits
14820 extern __at(0x0F29) __sfr CLC3SEL3;
14822 typedef union
14824 struct
14826 unsigned LC3D4S0 : 1;
14827 unsigned LC3D4S1 : 1;
14828 unsigned LC3D4S2 : 1;
14829 unsigned LC3D4S3 : 1;
14830 unsigned LC3D4S4 : 1;
14831 unsigned : 1;
14832 unsigned : 1;
14833 unsigned : 1;
14836 struct
14838 unsigned D4S0 : 1;
14839 unsigned D4S1 : 1;
14840 unsigned D4S2 : 1;
14841 unsigned D4S3 : 1;
14842 unsigned D4S4 : 1;
14843 unsigned : 1;
14844 unsigned : 1;
14845 unsigned : 1;
14848 struct
14850 unsigned LC3D4S : 5;
14851 unsigned : 3;
14854 struct
14856 unsigned D4S : 5;
14857 unsigned : 3;
14859 } __CLC3SEL3bits_t;
14861 extern __at(0x0F29) volatile __CLC3SEL3bits_t CLC3SEL3bits;
14863 #define _CLC3SEL3_LC3D4S0 0x01
14864 #define _CLC3SEL3_D4S0 0x01
14865 #define _CLC3SEL3_LC3D4S1 0x02
14866 #define _CLC3SEL3_D4S1 0x02
14867 #define _CLC3SEL3_LC3D4S2 0x04
14868 #define _CLC3SEL3_D4S2 0x04
14869 #define _CLC3SEL3_LC3D4S3 0x08
14870 #define _CLC3SEL3_D4S3 0x08
14871 #define _CLC3SEL3_LC3D4S4 0x10
14872 #define _CLC3SEL3_D4S4 0x10
14874 //==============================================================================
14877 //==============================================================================
14878 // CLC3GLS0 Bits
14880 extern __at(0x0F2A) __sfr CLC3GLS0;
14882 typedef union
14884 struct
14886 unsigned LC3G1D1N : 1;
14887 unsigned LC3G1D1T : 1;
14888 unsigned LC3G1D2N : 1;
14889 unsigned LC3G1D2T : 1;
14890 unsigned LC3G1D3N : 1;
14891 unsigned LC3G1D3T : 1;
14892 unsigned LC3G1D4N : 1;
14893 unsigned LC3G1D4T : 1;
14896 struct
14898 unsigned D1N : 1;
14899 unsigned D1T : 1;
14900 unsigned D2N : 1;
14901 unsigned D2T : 1;
14902 unsigned D3N : 1;
14903 unsigned D3T : 1;
14904 unsigned D4N : 1;
14905 unsigned D4T : 1;
14907 } __CLC3GLS0bits_t;
14909 extern __at(0x0F2A) volatile __CLC3GLS0bits_t CLC3GLS0bits;
14911 #define _CLC3GLS0_LC3G1D1N 0x01
14912 #define _CLC3GLS0_D1N 0x01
14913 #define _CLC3GLS0_LC3G1D1T 0x02
14914 #define _CLC3GLS0_D1T 0x02
14915 #define _CLC3GLS0_LC3G1D2N 0x04
14916 #define _CLC3GLS0_D2N 0x04
14917 #define _CLC3GLS0_LC3G1D2T 0x08
14918 #define _CLC3GLS0_D2T 0x08
14919 #define _CLC3GLS0_LC3G1D3N 0x10
14920 #define _CLC3GLS0_D3N 0x10
14921 #define _CLC3GLS0_LC3G1D3T 0x20
14922 #define _CLC3GLS0_D3T 0x20
14923 #define _CLC3GLS0_LC3G1D4N 0x40
14924 #define _CLC3GLS0_D4N 0x40
14925 #define _CLC3GLS0_LC3G1D4T 0x80
14926 #define _CLC3GLS0_D4T 0x80
14928 //==============================================================================
14931 //==============================================================================
14932 // CLC3GLS1 Bits
14934 extern __at(0x0F2B) __sfr CLC3GLS1;
14936 typedef union
14938 struct
14940 unsigned LC3G2D1N : 1;
14941 unsigned LC3G2D1T : 1;
14942 unsigned LC3G2D2N : 1;
14943 unsigned LC3G2D2T : 1;
14944 unsigned LC3G2D3N : 1;
14945 unsigned LC3G2D3T : 1;
14946 unsigned LC3G2D4N : 1;
14947 unsigned LC3G2D4T : 1;
14950 struct
14952 unsigned D1N : 1;
14953 unsigned D1T : 1;
14954 unsigned D2N : 1;
14955 unsigned D2T : 1;
14956 unsigned D3N : 1;
14957 unsigned D3T : 1;
14958 unsigned D4N : 1;
14959 unsigned D4T : 1;
14961 } __CLC3GLS1bits_t;
14963 extern __at(0x0F2B) volatile __CLC3GLS1bits_t CLC3GLS1bits;
14965 #define _CLC3GLS1_LC3G2D1N 0x01
14966 #define _CLC3GLS1_D1N 0x01
14967 #define _CLC3GLS1_LC3G2D1T 0x02
14968 #define _CLC3GLS1_D1T 0x02
14969 #define _CLC3GLS1_LC3G2D2N 0x04
14970 #define _CLC3GLS1_D2N 0x04
14971 #define _CLC3GLS1_LC3G2D2T 0x08
14972 #define _CLC3GLS1_D2T 0x08
14973 #define _CLC3GLS1_LC3G2D3N 0x10
14974 #define _CLC3GLS1_D3N 0x10
14975 #define _CLC3GLS1_LC3G2D3T 0x20
14976 #define _CLC3GLS1_D3T 0x20
14977 #define _CLC3GLS1_LC3G2D4N 0x40
14978 #define _CLC3GLS1_D4N 0x40
14979 #define _CLC3GLS1_LC3G2D4T 0x80
14980 #define _CLC3GLS1_D4T 0x80
14982 //==============================================================================
14985 //==============================================================================
14986 // CLC3GLS2 Bits
14988 extern __at(0x0F2C) __sfr CLC3GLS2;
14990 typedef union
14992 struct
14994 unsigned LC3G3D1N : 1;
14995 unsigned LC3G3D1T : 1;
14996 unsigned LC3G3D2N : 1;
14997 unsigned LC3G3D2T : 1;
14998 unsigned LC3G3D3N : 1;
14999 unsigned LC3G3D3T : 1;
15000 unsigned LC3G3D4N : 1;
15001 unsigned LC3G3D4T : 1;
15004 struct
15006 unsigned D1N : 1;
15007 unsigned D1T : 1;
15008 unsigned D2N : 1;
15009 unsigned D2T : 1;
15010 unsigned D3N : 1;
15011 unsigned D3T : 1;
15012 unsigned D4N : 1;
15013 unsigned D4T : 1;
15015 } __CLC3GLS2bits_t;
15017 extern __at(0x0F2C) volatile __CLC3GLS2bits_t CLC3GLS2bits;
15019 #define _CLC3GLS2_LC3G3D1N 0x01
15020 #define _CLC3GLS2_D1N 0x01
15021 #define _CLC3GLS2_LC3G3D1T 0x02
15022 #define _CLC3GLS2_D1T 0x02
15023 #define _CLC3GLS2_LC3G3D2N 0x04
15024 #define _CLC3GLS2_D2N 0x04
15025 #define _CLC3GLS2_LC3G3D2T 0x08
15026 #define _CLC3GLS2_D2T 0x08
15027 #define _CLC3GLS2_LC3G3D3N 0x10
15028 #define _CLC3GLS2_D3N 0x10
15029 #define _CLC3GLS2_LC3G3D3T 0x20
15030 #define _CLC3GLS2_D3T 0x20
15031 #define _CLC3GLS2_LC3G3D4N 0x40
15032 #define _CLC3GLS2_D4N 0x40
15033 #define _CLC3GLS2_LC3G3D4T 0x80
15034 #define _CLC3GLS2_D4T 0x80
15036 //==============================================================================
15039 //==============================================================================
15040 // CLC3GLS3 Bits
15042 extern __at(0x0F2D) __sfr CLC3GLS3;
15044 typedef union
15046 struct
15048 unsigned LC3G4D1N : 1;
15049 unsigned LC3G4D1T : 1;
15050 unsigned LC3G4D2N : 1;
15051 unsigned LC3G4D2T : 1;
15052 unsigned LC3G4D3N : 1;
15053 unsigned LC3G4D3T : 1;
15054 unsigned LC3G4D4N : 1;
15055 unsigned LC3G4D4T : 1;
15058 struct
15060 unsigned G4D1N : 1;
15061 unsigned G4D1T : 1;
15062 unsigned G4D2N : 1;
15063 unsigned G4D2T : 1;
15064 unsigned G4D3N : 1;
15065 unsigned G4D3T : 1;
15066 unsigned G4D4N : 1;
15067 unsigned G4D4T : 1;
15069 } __CLC3GLS3bits_t;
15071 extern __at(0x0F2D) volatile __CLC3GLS3bits_t CLC3GLS3bits;
15073 #define _CLC3GLS3_LC3G4D1N 0x01
15074 #define _CLC3GLS3_G4D1N 0x01
15075 #define _CLC3GLS3_LC3G4D1T 0x02
15076 #define _CLC3GLS3_G4D1T 0x02
15077 #define _CLC3GLS3_LC3G4D2N 0x04
15078 #define _CLC3GLS3_G4D2N 0x04
15079 #define _CLC3GLS3_LC3G4D2T 0x08
15080 #define _CLC3GLS3_G4D2T 0x08
15081 #define _CLC3GLS3_LC3G4D3N 0x10
15082 #define _CLC3GLS3_G4D3N 0x10
15083 #define _CLC3GLS3_LC3G4D3T 0x20
15084 #define _CLC3GLS3_G4D3T 0x20
15085 #define _CLC3GLS3_LC3G4D4N 0x40
15086 #define _CLC3GLS3_G4D4N 0x40
15087 #define _CLC3GLS3_LC3G4D4T 0x80
15088 #define _CLC3GLS3_G4D4T 0x80
15090 //==============================================================================
15093 //==============================================================================
15094 // STATUS_SHAD Bits
15096 extern __at(0x0FE4) __sfr STATUS_SHAD;
15098 typedef struct
15100 unsigned C_SHAD : 1;
15101 unsigned DC_SHAD : 1;
15102 unsigned Z_SHAD : 1;
15103 unsigned : 1;
15104 unsigned : 1;
15105 unsigned : 1;
15106 unsigned : 1;
15107 unsigned : 1;
15108 } __STATUS_SHADbits_t;
15110 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
15112 #define _C_SHAD 0x01
15113 #define _DC_SHAD 0x02
15114 #define _Z_SHAD 0x04
15116 //==============================================================================
15118 extern __at(0x0FE5) __sfr WREG_SHAD;
15119 extern __at(0x0FE6) __sfr BSR_SHAD;
15120 extern __at(0x0FE7) __sfr PCLATH_SHAD;
15121 extern __at(0x0FE8) __sfr FSR0L_SHAD;
15122 extern __at(0x0FE9) __sfr FSR0H_SHAD;
15123 extern __at(0x0FEA) __sfr FSR1L_SHAD;
15124 extern __at(0x0FEB) __sfr FSR1H_SHAD;
15125 extern __at(0x0FED) __sfr STKPTR;
15126 extern __at(0x0FEE) __sfr TOSL;
15127 extern __at(0x0FEF) __sfr TOSH;
15129 //==============================================================================
15131 // Configuration Bits
15133 //==============================================================================
15135 #define _CONFIG1 0x8007
15136 #define _CONFIG2 0x8008
15138 //----------------------------- CONFIG1 Options -------------------------------
15140 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
15141 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
15142 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
15143 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
15144 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
15145 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
15146 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
15147 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
15148 #define _WDTE_OFF 0x3FE7 // WDT disabled.
15149 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
15150 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
15151 #define _WDTE_ON 0x3FFF // WDT enabled.
15152 #define _PWRTE_ON 0x3FDF // PWRT enabled.
15153 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
15154 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
15155 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
15156 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
15157 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
15158 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
15159 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
15160 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
15161 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
15162 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
15163 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
15164 #define _IESO_OFF 0x2FFF // Internal/External Switchover Mode is disabled.
15165 #define _IESO_ON 0x3FFF // Internal/External Switchover Mode is enabled.
15166 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
15167 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
15169 //----------------------------- CONFIG2 Options -------------------------------
15171 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
15172 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
15173 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
15174 #define _WRT_OFF 0x3FFF // Write protection off.
15175 #define _PPS1WAY_OFF 0x3FFB // The PPSLOCK bit can be set and cleared repeatedly by software.
15176 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit cannot be cleared once it is set by software.
15177 #define _ZCD_ON 0x3F7F // Zero-cross detect circuit is enabled at POR.
15178 #define _ZCD_OFF 0x3FFF // Zero-cross detect circuit is disabled at POR.
15179 #define _PLLEN_OFF 0x3EFF // 4x PLL is enabled when software sets the SPLLEN bit.
15180 #define _PLLEN_ON 0x3FFF // 4x PLL is always enabled.
15181 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
15182 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
15183 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
15184 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
15185 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
15186 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
15187 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
15188 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
15189 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
15190 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
15192 //==============================================================================
15194 #define _DEVID1 0x8006
15196 #define _IDLOC0 0x8000
15197 #define _IDLOC1 0x8001
15198 #define _IDLOC2 0x8002
15199 #define _IDLOC3 0x8003
15201 //==============================================================================
15203 #ifndef NO_BIT_DEFINES
15205 #define ADON ADCON0bits.ADON // bit 0
15206 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
15207 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
15208 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
15209 #define CHS0 ADCON0bits.CHS0 // bit 2
15210 #define CHS1 ADCON0bits.CHS1 // bit 3
15211 #define CHS2 ADCON0bits.CHS2 // bit 4
15212 #define CHS3 ADCON0bits.CHS3 // bit 5
15213 #define CHS4 ADCON0bits.CHS4 // bit 6
15215 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
15216 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
15217 #define ADNREF ADCON1bits.ADNREF // bit 2
15218 #define ADFM ADCON1bits.ADFM // bit 7
15220 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 3
15221 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 4
15222 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 5
15223 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 6
15224 #define TRIGSEL4 ADCON2bits.TRIGSEL4 // bit 7
15226 #define ANSA0 ANSELAbits.ANSA0 // bit 0
15227 #define ANSA1 ANSELAbits.ANSA1 // bit 1
15228 #define ANSA2 ANSELAbits.ANSA2 // bit 2
15229 #define ANSA4 ANSELAbits.ANSA4 // bit 4
15231 #define ANSB4 ANSELBbits.ANSB4 // bit 4
15232 #define ANSB5 ANSELBbits.ANSB5 // bit 5
15233 #define ANSB6 ANSELBbits.ANSB6 // bit 6
15234 #define ANSB7 ANSELBbits.ANSB7 // bit 7
15236 #define ANSC0 ANSELCbits.ANSC0 // bit 0
15237 #define ANSC1 ANSELCbits.ANSC1 // bit 1
15238 #define ANSC2 ANSELCbits.ANSC2 // bit 2
15239 #define ANSC3 ANSELCbits.ANSC3 // bit 3
15240 #define ANSC6 ANSELCbits.ANSC6 // bit 6
15241 #define ANSC7 ANSELCbits.ANSC7 // bit 7
15243 #define ABDEN BAUD1CONbits.ABDEN // bit 0
15244 #define WUE BAUD1CONbits.WUE // bit 1
15245 #define BRG16 BAUD1CONbits.BRG16 // bit 3
15246 #define SCKP BAUD1CONbits.SCKP // bit 4
15247 #define RCIDL BAUD1CONbits.RCIDL // bit 6
15248 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
15250 #define BORRDY BORCONbits.BORRDY // bit 0
15251 #define BORFS BORCONbits.BORFS // bit 6
15252 #define SBOREN BORCONbits.SBOREN // bit 7
15254 #define BSR0 BSRbits.BSR0 // bit 0
15255 #define BSR1 BSRbits.BSR1 // bit 1
15256 #define BSR2 BSRbits.BSR2 // bit 2
15257 #define BSR3 BSRbits.BSR3 // bit 3
15258 #define BSR4 BSRbits.BSR4 // bit 4
15260 #define CTS0 CCP1CAPbits.CTS0 // bit 0, shadows bit in CCP1CAPbits
15261 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0, shadows bit in CCP1CAPbits
15262 #define CTS1 CCP1CAPbits.CTS1 // bit 1, shadows bit in CCP1CAPbits
15263 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1, shadows bit in CCP1CAPbits
15264 #define CTS2 CCP1CAPbits.CTS2 // bit 2, shadows bit in CCP1CAPbits
15265 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2, shadows bit in CCP1CAPbits
15267 #define MODE0 CCP1CONbits.MODE0 // bit 0, shadows bit in CCP1CONbits
15268 #define CCP1MODE0 CCP1CONbits.CCP1MODE0 // bit 0, shadows bit in CCP1CONbits
15269 #define MODE1 CCP1CONbits.MODE1 // bit 1, shadows bit in CCP1CONbits
15270 #define CCP1MODE1 CCP1CONbits.CCP1MODE1 // bit 1, shadows bit in CCP1CONbits
15271 #define MODE2 CCP1CONbits.MODE2 // bit 2, shadows bit in CCP1CONbits
15272 #define CCP1MODE2 CCP1CONbits.CCP1MODE2 // bit 2, shadows bit in CCP1CONbits
15273 #define MODE3 CCP1CONbits.MODE3 // bit 3, shadows bit in CCP1CONbits
15274 #define CCP1MODE3 CCP1CONbits.CCP1MODE3 // bit 3, shadows bit in CCP1CONbits
15275 #define FMT CCP1CONbits.FMT // bit 4, shadows bit in CCP1CONbits
15276 #define CCP1FMT CCP1CONbits.CCP1FMT // bit 4, shadows bit in CCP1CONbits
15277 #define OUT CCP1CONbits.OUT // bit 5, shadows bit in CCP1CONbits
15278 #define CCP1OUT CCP1CONbits.CCP1OUT // bit 5, shadows bit in CCP1CONbits
15279 #define EN CCP1CONbits.EN // bit 7, shadows bit in CCP1CONbits
15280 #define CCP1EN CCP1CONbits.CCP1EN // bit 7, shadows bit in CCP1CONbits
15282 #define C1TSEL0 CCPTMRSbits.C1TSEL0 // bit 0
15283 #define C1TSEL1 CCPTMRSbits.C1TSEL1 // bit 1
15284 #define C2TSEL0 CCPTMRSbits.C2TSEL0 // bit 2
15285 #define C2TSEL1 CCPTMRSbits.C2TSEL1 // bit 3
15286 #define P3TSEL0 CCPTMRSbits.P3TSEL0 // bit 4
15287 #define P3TSEL1 CCPTMRSbits.P3TSEL1 // bit 5
15288 #define P4TSEL0 CCPTMRSbits.P4TSEL0 // bit 6
15289 #define P4TSEL1 CCPTMRSbits.P4TSEL1 // bit 7
15291 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
15292 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
15293 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
15294 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
15295 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
15296 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
15297 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
15298 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
15299 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
15300 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
15301 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
15302 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
15303 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
15304 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
15305 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
15306 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
15308 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
15309 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
15310 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
15311 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
15312 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
15313 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
15314 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
15315 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
15316 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
15317 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
15318 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
15319 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
15320 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
15321 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
15322 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
15323 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
15325 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
15326 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
15327 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
15328 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
15329 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
15330 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
15331 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
15332 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
15333 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
15334 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
15336 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
15337 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
15338 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
15339 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
15340 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
15341 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
15342 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
15343 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
15344 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
15345 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
15347 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
15348 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
15349 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
15350 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
15351 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
15352 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
15353 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
15354 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
15355 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
15356 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
15358 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
15359 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
15360 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
15361 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
15362 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
15363 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
15364 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
15365 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
15366 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
15367 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
15369 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
15370 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
15371 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
15372 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
15373 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
15374 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
15375 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
15376 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
15377 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
15378 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
15380 #define MCLC1OUT CLCDATAbits.MCLC1OUT // bit 0
15381 #define MCLC2OUT CLCDATAbits.MCLC2OUT // bit 1
15382 #define MCLC3OUT CLCDATAbits.MCLC3OUT // bit 2
15384 #define NCH0 CM1NSELbits.NCH0 // bit 0, shadows bit in CM1NSELbits
15385 #define C1NCH0 CM1NSELbits.C1NCH0 // bit 0, shadows bit in CM1NSELbits
15386 #define NCH1 CM1NSELbits.NCH1 // bit 1, shadows bit in CM1NSELbits
15387 #define C1NCH1 CM1NSELbits.C1NCH1 // bit 1, shadows bit in CM1NSELbits
15388 #define NCH2 CM1NSELbits.NCH2 // bit 2, shadows bit in CM1NSELbits
15389 #define C1NCH2 CM1NSELbits.C1NCH2 // bit 2, shadows bit in CM1NSELbits
15391 #define PCH0 CM1PSELbits.PCH0 // bit 0, shadows bit in CM1PSELbits
15392 #define C1PCH0 CM1PSELbits.C1PCH0 // bit 0, shadows bit in CM1PSELbits
15393 #define PCH1 CM1PSELbits.PCH1 // bit 1, shadows bit in CM1PSELbits
15394 #define C1PCH1 CM1PSELbits.C1PCH1 // bit 1, shadows bit in CM1PSELbits
15395 #define PCH2 CM1PSELbits.PCH2 // bit 2, shadows bit in CM1PSELbits
15396 #define C1PCH2 CM1PSELbits.C1PCH2 // bit 2, shadows bit in CM1PSELbits
15397 #define PCH3 CM1PSELbits.PCH3 // bit 3, shadows bit in CM1PSELbits
15398 #define C1PCH3 CM1PSELbits.C1PCH3 // bit 3, shadows bit in CM1PSELbits
15400 #define MC1OUT CMOUTbits.MC1OUT // bit 0
15401 #define MC2OUT CMOUTbits.MC2OUT // bit 1
15402 #define MC3OUT CMOUTbits.MC3OUT // bit 2
15403 #define MC4OUT CMOUTbits.MC4OUT // bit 3
15405 #define ASDAC0 COG1ASD0bits.ASDAC0 // bit 2, shadows bit in COG1ASD0bits
15406 #define G1ASDAC0 COG1ASD0bits.G1ASDAC0 // bit 2, shadows bit in COG1ASD0bits
15407 #define ASDAC1 COG1ASD0bits.ASDAC1 // bit 3, shadows bit in COG1ASD0bits
15408 #define G1ASDAC1 COG1ASD0bits.G1ASDAC1 // bit 3, shadows bit in COG1ASD0bits
15409 #define ASDBD0 COG1ASD0bits.ASDBD0 // bit 4, shadows bit in COG1ASD0bits
15410 #define G1ASDBD0 COG1ASD0bits.G1ASDBD0 // bit 4, shadows bit in COG1ASD0bits
15411 #define ASDBD1 COG1ASD0bits.ASDBD1 // bit 5, shadows bit in COG1ASD0bits
15412 #define G1ASDBD1 COG1ASD0bits.G1ASDBD1 // bit 5, shadows bit in COG1ASD0bits
15413 #define ASREN COG1ASD0bits.ASREN // bit 6, shadows bit in COG1ASD0bits
15414 #define ARSEN COG1ASD0bits.ARSEN // bit 6, shadows bit in COG1ASD0bits
15415 #define G1ARSEN COG1ASD0bits.G1ARSEN // bit 6, shadows bit in COG1ASD0bits
15416 #define G1ASREN COG1ASD0bits.G1ASREN // bit 6, shadows bit in COG1ASD0bits
15417 #define ASE COG1ASD0bits.ASE // bit 7, shadows bit in COG1ASD0bits
15418 #define G1ASE COG1ASD0bits.G1ASE // bit 7, shadows bit in COG1ASD0bits
15420 #define AS0E COG1ASD1bits.AS0E // bit 0, shadows bit in COG1ASD1bits
15421 #define G1AS0E COG1ASD1bits.G1AS0E // bit 0, shadows bit in COG1ASD1bits
15422 #define AS1E COG1ASD1bits.AS1E // bit 1, shadows bit in COG1ASD1bits
15423 #define G1AS1E COG1ASD1bits.G1AS1E // bit 1, shadows bit in COG1ASD1bits
15424 #define AS2E COG1ASD1bits.AS2E // bit 2, shadows bit in COG1ASD1bits
15425 #define G1AS2E COG1ASD1bits.G1AS2E // bit 2, shadows bit in COG1ASD1bits
15426 #define AS3E COG1ASD1bits.AS3E // bit 3, shadows bit in COG1ASD1bits
15427 #define G1AS3E COG1ASD1bits.G1AS3E // bit 3, shadows bit in COG1ASD1bits
15428 #define AS4E COG1ASD1bits.AS4E // bit 4, shadows bit in COG1ASD1bits
15429 #define G1AS4E COG1ASD1bits.G1AS4E // bit 4, shadows bit in COG1ASD1bits
15430 #define AS5E COG1ASD1bits.AS5E // bit 5, shadows bit in COG1ASD1bits
15431 #define G1AS5E COG1ASD1bits.G1AS5E // bit 5, shadows bit in COG1ASD1bits
15432 #define AS6E COG1ASD1bits.AS6E // bit 6, shadows bit in COG1ASD1bits
15433 #define G1AS6E COG1ASD1bits.G1AS6E // bit 6, shadows bit in COG1ASD1bits
15434 #define AS7E COG1ASD1bits.AS7E // bit 7, shadows bit in COG1ASD1bits
15435 #define G1AS7E COG1ASD1bits.G1AS7E // bit 7, shadows bit in COG1ASD1bits
15437 #define BLKF0 COG1BLKFbits.BLKF0 // bit 0, shadows bit in COG1BLKFbits
15438 #define G1BLKF0 COG1BLKFbits.G1BLKF0 // bit 0, shadows bit in COG1BLKFbits
15439 #define BLKF1 COG1BLKFbits.BLKF1 // bit 1, shadows bit in COG1BLKFbits
15440 #define G1BLKF1 COG1BLKFbits.G1BLKF1 // bit 1, shadows bit in COG1BLKFbits
15441 #define BLKF2 COG1BLKFbits.BLKF2 // bit 2, shadows bit in COG1BLKFbits
15442 #define G1BLKF2 COG1BLKFbits.G1BLKF2 // bit 2, shadows bit in COG1BLKFbits
15443 #define BLKF3 COG1BLKFbits.BLKF3 // bit 3, shadows bit in COG1BLKFbits
15444 #define G1BLKF3 COG1BLKFbits.G1BLKF3 // bit 3, shadows bit in COG1BLKFbits
15445 #define BLKF4 COG1BLKFbits.BLKF4 // bit 4, shadows bit in COG1BLKFbits
15446 #define G1BLKF4 COG1BLKFbits.G1BLKF4 // bit 4, shadows bit in COG1BLKFbits
15447 #define BLKF5 COG1BLKFbits.BLKF5 // bit 5, shadows bit in COG1BLKFbits
15448 #define G1BLKF5 COG1BLKFbits.G1BLKF5 // bit 5, shadows bit in COG1BLKFbits
15450 #define BLKR0 COG1BLKRbits.BLKR0 // bit 0, shadows bit in COG1BLKRbits
15451 #define G1BLKR0 COG1BLKRbits.G1BLKR0 // bit 0, shadows bit in COG1BLKRbits
15452 #define BLKR1 COG1BLKRbits.BLKR1 // bit 1, shadows bit in COG1BLKRbits
15453 #define G1BLKR1 COG1BLKRbits.G1BLKR1 // bit 1, shadows bit in COG1BLKRbits
15454 #define BLKR2 COG1BLKRbits.BLKR2 // bit 2, shadows bit in COG1BLKRbits
15455 #define G1BLKR2 COG1BLKRbits.G1BLKR2 // bit 2, shadows bit in COG1BLKRbits
15456 #define BLKR3 COG1BLKRbits.BLKR3 // bit 3, shadows bit in COG1BLKRbits
15457 #define G1BLKR3 COG1BLKRbits.G1BLKR3 // bit 3, shadows bit in COG1BLKRbits
15458 #define BLKR4 COG1BLKRbits.BLKR4 // bit 4, shadows bit in COG1BLKRbits
15459 #define G1BLKR4 COG1BLKRbits.G1BLKR4 // bit 4, shadows bit in COG1BLKRbits
15460 #define BLKR5 COG1BLKRbits.BLKR5 // bit 5, shadows bit in COG1BLKRbits
15461 #define G1BLKR5 COG1BLKRbits.G1BLKR5 // bit 5, shadows bit in COG1BLKRbits
15463 #define POLA COG1CON1bits.POLA // bit 0, shadows bit in COG1CON1bits
15464 #define G1POLA COG1CON1bits.G1POLA // bit 0, shadows bit in COG1CON1bits
15465 #define POLB COG1CON1bits.POLB // bit 1, shadows bit in COG1CON1bits
15466 #define G1POLB COG1CON1bits.G1POLB // bit 1, shadows bit in COG1CON1bits
15467 #define POLC COG1CON1bits.POLC // bit 2, shadows bit in COG1CON1bits
15468 #define G1POLC COG1CON1bits.G1POLC // bit 2, shadows bit in COG1CON1bits
15469 #define POLD COG1CON1bits.POLD // bit 3, shadows bit in COG1CON1bits
15470 #define G1POLD COG1CON1bits.G1POLD // bit 3, shadows bit in COG1CON1bits
15471 #define FDBS COG1CON1bits.FDBS // bit 6, shadows bit in COG1CON1bits
15472 #define G1FDBS COG1CON1bits.G1FDBS // bit 6, shadows bit in COG1CON1bits
15473 #define RDBS COG1CON1bits.RDBS // bit 7, shadows bit in COG1CON1bits
15474 #define G1RDBS COG1CON1bits.G1RDBS // bit 7, shadows bit in COG1CON1bits
15476 #define DBF0 COG1DBFbits.DBF0 // bit 0, shadows bit in COG1DBFbits
15477 #define G1DBF0 COG1DBFbits.G1DBF0 // bit 0, shadows bit in COG1DBFbits
15478 #define DBF1 COG1DBFbits.DBF1 // bit 1, shadows bit in COG1DBFbits
15479 #define G1DBF1 COG1DBFbits.G1DBF1 // bit 1, shadows bit in COG1DBFbits
15480 #define DBF2 COG1DBFbits.DBF2 // bit 2, shadows bit in COG1DBFbits
15481 #define G1DBF2 COG1DBFbits.G1DBF2 // bit 2, shadows bit in COG1DBFbits
15482 #define DBF3 COG1DBFbits.DBF3 // bit 3, shadows bit in COG1DBFbits
15483 #define G1DBF3 COG1DBFbits.G1DBF3 // bit 3, shadows bit in COG1DBFbits
15484 #define DBF4 COG1DBFbits.DBF4 // bit 4, shadows bit in COG1DBFbits
15485 #define G1DBF4 COG1DBFbits.G1DBF4 // bit 4, shadows bit in COG1DBFbits
15486 #define DBF5 COG1DBFbits.DBF5 // bit 5, shadows bit in COG1DBFbits
15487 #define G1DBF5 COG1DBFbits.G1DBF5 // bit 5, shadows bit in COG1DBFbits
15489 #define DBR0 COG1DBRbits.DBR0 // bit 0, shadows bit in COG1DBRbits
15490 #define G1DBR0 COG1DBRbits.G1DBR0 // bit 0, shadows bit in COG1DBRbits
15491 #define DBR1 COG1DBRbits.DBR1 // bit 1, shadows bit in COG1DBRbits
15492 #define G1DBR1 COG1DBRbits.G1DBR1 // bit 1, shadows bit in COG1DBRbits
15493 #define DBR2 COG1DBRbits.DBR2 // bit 2, shadows bit in COG1DBRbits
15494 #define G1DBR2 COG1DBRbits.G1DBR2 // bit 2, shadows bit in COG1DBRbits
15495 #define DBR3 COG1DBRbits.DBR3 // bit 3, shadows bit in COG1DBRbits
15496 #define G1DBR3 COG1DBRbits.G1DBR3 // bit 3, shadows bit in COG1DBRbits
15497 #define DBR4 COG1DBRbits.DBR4 // bit 4, shadows bit in COG1DBRbits
15498 #define G1DBR4 COG1DBRbits.G1DBR4 // bit 4, shadows bit in COG1DBRbits
15499 #define DBR5 COG1DBRbits.DBR5 // bit 5, shadows bit in COG1DBRbits
15500 #define G1DBR5 COG1DBRbits.G1DBR5 // bit 5, shadows bit in COG1DBRbits
15502 #define FIS0 COG1FIS0bits.FIS0 // bit 0, shadows bit in COG1FIS0bits
15503 #define G1FIS0 COG1FIS0bits.G1FIS0 // bit 0, shadows bit in COG1FIS0bits
15504 #define FIS1 COG1FIS0bits.FIS1 // bit 1, shadows bit in COG1FIS0bits
15505 #define G1FIS1 COG1FIS0bits.G1FIS1 // bit 1, shadows bit in COG1FIS0bits
15506 #define FIS2 COG1FIS0bits.FIS2 // bit 2, shadows bit in COG1FIS0bits
15507 #define G1FIS2 COG1FIS0bits.G1FIS2 // bit 2, shadows bit in COG1FIS0bits
15508 #define FIS3 COG1FIS0bits.FIS3 // bit 3, shadows bit in COG1FIS0bits
15509 #define G1FIS3 COG1FIS0bits.G1FIS3 // bit 3, shadows bit in COG1FIS0bits
15510 #define FIS4 COG1FIS0bits.FIS4 // bit 4, shadows bit in COG1FIS0bits
15511 #define G1FIS4 COG1FIS0bits.G1FIS4 // bit 4, shadows bit in COG1FIS0bits
15512 #define FIS5 COG1FIS0bits.FIS5 // bit 5, shadows bit in COG1FIS0bits
15513 #define G1FIS5 COG1FIS0bits.G1FIS5 // bit 5, shadows bit in COG1FIS0bits
15514 #define FIS6 COG1FIS0bits.FIS6 // bit 6, shadows bit in COG1FIS0bits
15515 #define G1FIS6 COG1FIS0bits.G1FIS6 // bit 6, shadows bit in COG1FIS0bits
15516 #define FIS7 COG1FIS0bits.FIS7 // bit 7, shadows bit in COG1FIS0bits
15517 #define G1FIS7 COG1FIS0bits.G1FIS7 // bit 7, shadows bit in COG1FIS0bits
15519 #define FIS8 COG1FIS1bits.FIS8 // bit 0, shadows bit in COG1FIS1bits
15520 #define G1FIS8 COG1FIS1bits.G1FIS8 // bit 0, shadows bit in COG1FIS1bits
15521 #define FIS9 COG1FIS1bits.FIS9 // bit 1, shadows bit in COG1FIS1bits
15522 #define G1FIS9 COG1FIS1bits.G1FIS9 // bit 1, shadows bit in COG1FIS1bits
15523 #define FIS10 COG1FIS1bits.FIS10 // bit 2, shadows bit in COG1FIS1bits
15524 #define G1FIS10 COG1FIS1bits.G1FIS10 // bit 2, shadows bit in COG1FIS1bits
15525 #define FIS11 COG1FIS1bits.FIS11 // bit 3, shadows bit in COG1FIS1bits
15526 #define G1FIS11 COG1FIS1bits.G1FIS11 // bit 3, shadows bit in COG1FIS1bits
15527 #define FIS12 COG1FIS1bits.FIS12 // bit 4, shadows bit in COG1FIS1bits
15528 #define G1FIS12 COG1FIS1bits.G1FIS12 // bit 4, shadows bit in COG1FIS1bits
15529 #define FIS13 COG1FIS1bits.FIS13 // bit 5, shadows bit in COG1FIS1bits
15530 #define G1FIS13 COG1FIS1bits.G1FIS13 // bit 5, shadows bit in COG1FIS1bits
15531 #define FIS14 COG1FIS1bits.FIS14 // bit 6, shadows bit in COG1FIS1bits
15532 #define G1FIS14 COG1FIS1bits.G1FIS14 // bit 6, shadows bit in COG1FIS1bits
15533 #define FIS15 COG1FIS1bits.FIS15 // bit 7, shadows bit in COG1FIS1bits
15534 #define G1FIS15 COG1FIS1bits.G1FIS15 // bit 7, shadows bit in COG1FIS1bits
15536 #define FSIM0 COG1FSIM0bits.FSIM0 // bit 0, shadows bit in COG1FSIM0bits
15537 #define G1FSIM0 COG1FSIM0bits.G1FSIM0 // bit 0, shadows bit in COG1FSIM0bits
15538 #define FSIM1 COG1FSIM0bits.FSIM1 // bit 1, shadows bit in COG1FSIM0bits
15539 #define G1FSIM1 COG1FSIM0bits.G1FSIM1 // bit 1, shadows bit in COG1FSIM0bits
15540 #define FSIM2 COG1FSIM0bits.FSIM2 // bit 2, shadows bit in COG1FSIM0bits
15541 #define G1FSIM2 COG1FSIM0bits.G1FSIM2 // bit 2, shadows bit in COG1FSIM0bits
15542 #define FSIM3 COG1FSIM0bits.FSIM3 // bit 3, shadows bit in COG1FSIM0bits
15543 #define G1FSIM3 COG1FSIM0bits.G1FSIM3 // bit 3, shadows bit in COG1FSIM0bits
15544 #define FSIM4 COG1FSIM0bits.FSIM4 // bit 4, shadows bit in COG1FSIM0bits
15545 #define G1FSIM4 COG1FSIM0bits.G1FSIM4 // bit 4, shadows bit in COG1FSIM0bits
15546 #define FSIM5 COG1FSIM0bits.FSIM5 // bit 5, shadows bit in COG1FSIM0bits
15547 #define G1FSIM5 COG1FSIM0bits.G1FSIM5 // bit 5, shadows bit in COG1FSIM0bits
15548 #define FSIM6 COG1FSIM0bits.FSIM6 // bit 6, shadows bit in COG1FSIM0bits
15549 #define G1FSIM6 COG1FSIM0bits.G1FSIM6 // bit 6, shadows bit in COG1FSIM0bits
15550 #define FSIM7 COG1FSIM0bits.FSIM7 // bit 7, shadows bit in COG1FSIM0bits
15551 #define G1FSIM7 COG1FSIM0bits.G1FSIM7 // bit 7, shadows bit in COG1FSIM0bits
15553 #define FSIM8 COG1FSIM1bits.FSIM8 // bit 0, shadows bit in COG1FSIM1bits
15554 #define G1FSIM8 COG1FSIM1bits.G1FSIM8 // bit 0, shadows bit in COG1FSIM1bits
15555 #define FSIM9 COG1FSIM1bits.FSIM9 // bit 1, shadows bit in COG1FSIM1bits
15556 #define G1FSIM9 COG1FSIM1bits.G1FSIM9 // bit 1, shadows bit in COG1FSIM1bits
15557 #define FSIM10 COG1FSIM1bits.FSIM10 // bit 2, shadows bit in COG1FSIM1bits
15558 #define G1FSIM10 COG1FSIM1bits.G1FSIM10 // bit 2, shadows bit in COG1FSIM1bits
15559 #define FSIM11 COG1FSIM1bits.FSIM11 // bit 3, shadows bit in COG1FSIM1bits
15560 #define G1FSIM11 COG1FSIM1bits.G1FSIM11 // bit 3, shadows bit in COG1FSIM1bits
15561 #define FSIM12 COG1FSIM1bits.FSIM12 // bit 4, shadows bit in COG1FSIM1bits
15562 #define G1FSIM12 COG1FSIM1bits.G1FSIM12 // bit 4, shadows bit in COG1FSIM1bits
15563 #define FSIM13 COG1FSIM1bits.FSIM13 // bit 5, shadows bit in COG1FSIM1bits
15564 #define G1FSIM13 COG1FSIM1bits.G1FSIM13 // bit 5, shadows bit in COG1FSIM1bits
15565 #define FSIM14 COG1FSIM1bits.FSIM14 // bit 6, shadows bit in COG1FSIM1bits
15566 #define G1FSIM14 COG1FSIM1bits.G1FSIM14 // bit 6, shadows bit in COG1FSIM1bits
15567 #define FSIM15 COG1FSIM1bits.FSIM15 // bit 7, shadows bit in COG1FSIM1bits
15568 #define G1FSIM15 COG1FSIM1bits.G1FSIM15 // bit 7, shadows bit in COG1FSIM1bits
15570 #define PHF0 COG1PHFbits.PHF0 // bit 0, shadows bit in COG1PHFbits
15571 #define G1PHF0 COG1PHFbits.G1PHF0 // bit 0, shadows bit in COG1PHFbits
15572 #define PHF1 COG1PHFbits.PHF1 // bit 1, shadows bit in COG1PHFbits
15573 #define G1PHF1 COG1PHFbits.G1PHF1 // bit 1, shadows bit in COG1PHFbits
15574 #define PHF2 COG1PHFbits.PHF2 // bit 2, shadows bit in COG1PHFbits
15575 #define G1PHF2 COG1PHFbits.G1PHF2 // bit 2, shadows bit in COG1PHFbits
15576 #define PHF3 COG1PHFbits.PHF3 // bit 3, shadows bit in COG1PHFbits
15577 #define G1PHF3 COG1PHFbits.G1PHF3 // bit 3, shadows bit in COG1PHFbits
15578 #define PHF4 COG1PHFbits.PHF4 // bit 4, shadows bit in COG1PHFbits
15579 #define G1PHF4 COG1PHFbits.G1PHF4 // bit 4, shadows bit in COG1PHFbits
15580 #define PHF5 COG1PHFbits.PHF5 // bit 5, shadows bit in COG1PHFbits
15581 #define G1PHF5 COG1PHFbits.G1PHF5 // bit 5, shadows bit in COG1PHFbits
15583 #define PHR0 COG1PHRbits.PHR0 // bit 0, shadows bit in COG1PHRbits
15584 #define G1PHR0 COG1PHRbits.G1PHR0 // bit 0, shadows bit in COG1PHRbits
15585 #define PHR1 COG1PHRbits.PHR1 // bit 1, shadows bit in COG1PHRbits
15586 #define G1PHR1 COG1PHRbits.G1PHR1 // bit 1, shadows bit in COG1PHRbits
15587 #define PHR2 COG1PHRbits.PHR2 // bit 2, shadows bit in COG1PHRbits
15588 #define G1PHR2 COG1PHRbits.G1PHR2 // bit 2, shadows bit in COG1PHRbits
15589 #define PHR3 COG1PHRbits.PHR3 // bit 3, shadows bit in COG1PHRbits
15590 #define G1PHR3 COG1PHRbits.G1PHR3 // bit 3, shadows bit in COG1PHRbits
15591 #define PHR4 COG1PHRbits.PHR4 // bit 4, shadows bit in COG1PHRbits
15592 #define G1PHR4 COG1PHRbits.G1PHR4 // bit 4, shadows bit in COG1PHRbits
15593 #define PHR5 COG1PHRbits.PHR5 // bit 5, shadows bit in COG1PHRbits
15594 #define G1PHR5 COG1PHRbits.G1PHR5 // bit 5, shadows bit in COG1PHRbits
15596 #define RIS0 COG1RIS0bits.RIS0 // bit 0, shadows bit in COG1RIS0bits
15597 #define G1RIS0 COG1RIS0bits.G1RIS0 // bit 0, shadows bit in COG1RIS0bits
15598 #define RIS1 COG1RIS0bits.RIS1 // bit 1, shadows bit in COG1RIS0bits
15599 #define G1RIS1 COG1RIS0bits.G1RIS1 // bit 1, shadows bit in COG1RIS0bits
15600 #define RIS2 COG1RIS0bits.RIS2 // bit 2, shadows bit in COG1RIS0bits
15601 #define G1RIS2 COG1RIS0bits.G1RIS2 // bit 2, shadows bit in COG1RIS0bits
15602 #define RIS3 COG1RIS0bits.RIS3 // bit 3, shadows bit in COG1RIS0bits
15603 #define G1RIS3 COG1RIS0bits.G1RIS3 // bit 3, shadows bit in COG1RIS0bits
15604 #define RIS4 COG1RIS0bits.RIS4 // bit 4, shadows bit in COG1RIS0bits
15605 #define G1RIS4 COG1RIS0bits.G1RIS4 // bit 4, shadows bit in COG1RIS0bits
15606 #define RIS5 COG1RIS0bits.RIS5 // bit 5, shadows bit in COG1RIS0bits
15607 #define G1RIS5 COG1RIS0bits.G1RIS5 // bit 5, shadows bit in COG1RIS0bits
15608 #define RIS6 COG1RIS0bits.RIS6 // bit 6, shadows bit in COG1RIS0bits
15609 #define G1RIS6 COG1RIS0bits.G1RIS6 // bit 6, shadows bit in COG1RIS0bits
15610 #define RIS7 COG1RIS0bits.RIS7 // bit 7, shadows bit in COG1RIS0bits
15611 #define G1RIS7 COG1RIS0bits.G1RIS7 // bit 7, shadows bit in COG1RIS0bits
15613 #define RIS8 COG1RIS1bits.RIS8 // bit 0, shadows bit in COG1RIS1bits
15614 #define G1RIS8 COG1RIS1bits.G1RIS8 // bit 0, shadows bit in COG1RIS1bits
15615 #define RIS9 COG1RIS1bits.RIS9 // bit 1, shadows bit in COG1RIS1bits
15616 #define G1RIS9 COG1RIS1bits.G1RIS9 // bit 1, shadows bit in COG1RIS1bits
15617 #define RIS10 COG1RIS1bits.RIS10 // bit 2, shadows bit in COG1RIS1bits
15618 #define G1RIS10 COG1RIS1bits.G1RIS10 // bit 2, shadows bit in COG1RIS1bits
15619 #define RIS11 COG1RIS1bits.RIS11 // bit 3, shadows bit in COG1RIS1bits
15620 #define G1RIS11 COG1RIS1bits.G1RIS11 // bit 3, shadows bit in COG1RIS1bits
15621 #define RIS12 COG1RIS1bits.RIS12 // bit 4, shadows bit in COG1RIS1bits
15622 #define G1RIS12 COG1RIS1bits.G1RIS12 // bit 4, shadows bit in COG1RIS1bits
15623 #define RIS13 COG1RIS1bits.RIS13 // bit 5, shadows bit in COG1RIS1bits
15624 #define G1RIS13 COG1RIS1bits.G1RIS13 // bit 5, shadows bit in COG1RIS1bits
15625 #define RIS14 COG1RIS1bits.RIS14 // bit 6, shadows bit in COG1RIS1bits
15626 #define G1RIS14 COG1RIS1bits.G1RIS14 // bit 6, shadows bit in COG1RIS1bits
15627 #define RIS15 COG1RIS1bits.RIS15 // bit 7, shadows bit in COG1RIS1bits
15628 #define G1RIS15 COG1RIS1bits.G1RIS15 // bit 7, shadows bit in COG1RIS1bits
15630 #define RSIM0 COG1RSIM0bits.RSIM0 // bit 0, shadows bit in COG1RSIM0bits
15631 #define G1RSIM0 COG1RSIM0bits.G1RSIM0 // bit 0, shadows bit in COG1RSIM0bits
15632 #define RSIM1 COG1RSIM0bits.RSIM1 // bit 1, shadows bit in COG1RSIM0bits
15633 #define G1RSIM1 COG1RSIM0bits.G1RSIM1 // bit 1, shadows bit in COG1RSIM0bits
15634 #define RSIM2 COG1RSIM0bits.RSIM2 // bit 2, shadows bit in COG1RSIM0bits
15635 #define G1RSIM2 COG1RSIM0bits.G1RSIM2 // bit 2, shadows bit in COG1RSIM0bits
15636 #define RSIM3 COG1RSIM0bits.RSIM3 // bit 3, shadows bit in COG1RSIM0bits
15637 #define G1RSIM3 COG1RSIM0bits.G1RSIM3 // bit 3, shadows bit in COG1RSIM0bits
15638 #define RSIM4 COG1RSIM0bits.RSIM4 // bit 4, shadows bit in COG1RSIM0bits
15639 #define G1RSIM4 COG1RSIM0bits.G1RSIM4 // bit 4, shadows bit in COG1RSIM0bits
15640 #define RSIM5 COG1RSIM0bits.RSIM5 // bit 5, shadows bit in COG1RSIM0bits
15641 #define G1RSIM5 COG1RSIM0bits.G1RSIM5 // bit 5, shadows bit in COG1RSIM0bits
15642 #define RSIM6 COG1RSIM0bits.RSIM6 // bit 6, shadows bit in COG1RSIM0bits
15643 #define G1RSIM6 COG1RSIM0bits.G1RSIM6 // bit 6, shadows bit in COG1RSIM0bits
15644 #define RSIM7 COG1RSIM0bits.RSIM7 // bit 7, shadows bit in COG1RSIM0bits
15645 #define G1RSIM7 COG1RSIM0bits.G1RSIM7 // bit 7, shadows bit in COG1RSIM0bits
15647 #define RSIM8 COG1RSIM1bits.RSIM8 // bit 0, shadows bit in COG1RSIM1bits
15648 #define G1RSIM8 COG1RSIM1bits.G1RSIM8 // bit 0, shadows bit in COG1RSIM1bits
15649 #define RSIM9 COG1RSIM1bits.RSIM9 // bit 1, shadows bit in COG1RSIM1bits
15650 #define G1RSIM9 COG1RSIM1bits.G1RSIM9 // bit 1, shadows bit in COG1RSIM1bits
15651 #define RSIM10 COG1RSIM1bits.RSIM10 // bit 2, shadows bit in COG1RSIM1bits
15652 #define G1RSIM10 COG1RSIM1bits.G1RSIM10 // bit 2, shadows bit in COG1RSIM1bits
15653 #define RSIM11 COG1RSIM1bits.RSIM11 // bit 3, shadows bit in COG1RSIM1bits
15654 #define G1RSIM11 COG1RSIM1bits.G1RSIM11 // bit 3, shadows bit in COG1RSIM1bits
15655 #define RSIM12 COG1RSIM1bits.RSIM12 // bit 4, shadows bit in COG1RSIM1bits
15656 #define G1RSIM12 COG1RSIM1bits.G1RSIM12 // bit 4, shadows bit in COG1RSIM1bits
15657 #define RSIM13 COG1RSIM1bits.RSIM13 // bit 5, shadows bit in COG1RSIM1bits
15658 #define G1RSIM13 COG1RSIM1bits.G1RSIM13 // bit 5, shadows bit in COG1RSIM1bits
15659 #define RSIM14 COG1RSIM1bits.RSIM14 // bit 6, shadows bit in COG1RSIM1bits
15660 #define G1RSIM14 COG1RSIM1bits.G1RSIM14 // bit 6, shadows bit in COG1RSIM1bits
15661 #define RSIM15 COG1RSIM1bits.RSIM15 // bit 7, shadows bit in COG1RSIM1bits
15662 #define G1RSIM15 COG1RSIM1bits.G1RSIM15 // bit 7, shadows bit in COG1RSIM1bits
15664 #define STRA COG1STRbits.STRA // bit 0, shadows bit in COG1STRbits
15665 #define G1STRA COG1STRbits.G1STRA // bit 0, shadows bit in COG1STRbits
15666 #define STRB COG1STRbits.STRB // bit 1, shadows bit in COG1STRbits
15667 #define G1STRB COG1STRbits.G1STRB // bit 1, shadows bit in COG1STRbits
15668 #define STRC COG1STRbits.STRC // bit 2, shadows bit in COG1STRbits
15669 #define G1STRC COG1STRbits.G1STRC // bit 2, shadows bit in COG1STRbits
15670 #define STRD COG1STRbits.STRD // bit 3, shadows bit in COG1STRbits
15671 #define G1STRD COG1STRbits.G1STRD // bit 3, shadows bit in COG1STRbits
15672 #define SDATA COG1STRbits.SDATA // bit 4, shadows bit in COG1STRbits
15673 #define G1SDATA COG1STRbits.G1SDATA // bit 4, shadows bit in COG1STRbits
15674 #define SDATB COG1STRbits.SDATB // bit 5, shadows bit in COG1STRbits
15675 #define G1SDATB COG1STRbits.G1SDATB // bit 5, shadows bit in COG1STRbits
15676 #define SDATC COG1STRbits.SDATC // bit 6, shadows bit in COG1STRbits
15677 #define G1SDATC COG1STRbits.G1SDATC // bit 6, shadows bit in COG1STRbits
15678 #define SDATD COG1STRbits.SDATD // bit 7, shadows bit in COG1STRbits
15679 #define G1SDATD COG1STRbits.G1SDATD // bit 7, shadows bit in COG1STRbits
15681 #define REF0 DAC1CON1bits.REF0 // bit 0, shadows bit in DAC1CON1bits
15682 #define DAC1REF0 DAC1CON1bits.DAC1REF0 // bit 0, shadows bit in DAC1CON1bits
15683 #define R0 DAC1CON1bits.R0 // bit 0, shadows bit in DAC1CON1bits
15684 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0, shadows bit in DAC1CON1bits
15685 #define REF1 DAC1CON1bits.REF1 // bit 1, shadows bit in DAC1CON1bits
15686 #define DAC1REF1 DAC1CON1bits.DAC1REF1 // bit 1, shadows bit in DAC1CON1bits
15687 #define R1 DAC1CON1bits.R1 // bit 1, shadows bit in DAC1CON1bits
15688 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1, shadows bit in DAC1CON1bits
15689 #define REF2 DAC1CON1bits.REF2 // bit 2, shadows bit in DAC1CON1bits
15690 #define DAC1REF2 DAC1CON1bits.DAC1REF2 // bit 2, shadows bit in DAC1CON1bits
15691 #define R2 DAC1CON1bits.R2 // bit 2, shadows bit in DAC1CON1bits
15692 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2, shadows bit in DAC1CON1bits
15693 #define REF3 DAC1CON1bits.REF3 // bit 3, shadows bit in DAC1CON1bits
15694 #define DAC1REF3 DAC1CON1bits.DAC1REF3 // bit 3, shadows bit in DAC1CON1bits
15695 #define R3 DAC1CON1bits.R3 // bit 3, shadows bit in DAC1CON1bits
15696 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3, shadows bit in DAC1CON1bits
15697 #define REF4 DAC1CON1bits.REF4 // bit 4, shadows bit in DAC1CON1bits
15698 #define DAC1REF4 DAC1CON1bits.DAC1REF4 // bit 4, shadows bit in DAC1CON1bits
15699 #define R4 DAC1CON1bits.R4 // bit 4, shadows bit in DAC1CON1bits
15700 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4, shadows bit in DAC1CON1bits
15701 #define REF5 DAC1CON1bits.REF5 // bit 5, shadows bit in DAC1CON1bits
15702 #define DAC1REF5 DAC1CON1bits.DAC1REF5 // bit 5, shadows bit in DAC1CON1bits
15703 #define R5 DAC1CON1bits.R5 // bit 5, shadows bit in DAC1CON1bits
15704 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5, shadows bit in DAC1CON1bits
15705 #define REF6 DAC1CON1bits.REF6 // bit 6, shadows bit in DAC1CON1bits
15706 #define DAC1REF6 DAC1CON1bits.DAC1REF6 // bit 6, shadows bit in DAC1CON1bits
15707 #define R6 DAC1CON1bits.R6 // bit 6, shadows bit in DAC1CON1bits
15708 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6, shadows bit in DAC1CON1bits
15709 #define REF7 DAC1CON1bits.REF7 // bit 7, shadows bit in DAC1CON1bits
15710 #define DAC1REF7 DAC1CON1bits.DAC1REF7 // bit 7, shadows bit in DAC1CON1bits
15711 #define R7 DAC1CON1bits.R7 // bit 7, shadows bit in DAC1CON1bits
15712 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7, shadows bit in DAC1CON1bits
15714 #define REF8 DAC1CON2bits.REF8 // bit 0, shadows bit in DAC1CON2bits
15715 #define DAC1REF8 DAC1CON2bits.DAC1REF8 // bit 0, shadows bit in DAC1CON2bits
15716 #define R8 DAC1CON2bits.R8 // bit 0, shadows bit in DAC1CON2bits
15717 #define DAC1R8 DAC1CON2bits.DAC1R8 // bit 0, shadows bit in DAC1CON2bits
15718 #define REF9 DAC1CON2bits.REF9 // bit 1, shadows bit in DAC1CON2bits
15719 #define DAC1REF9 DAC1CON2bits.DAC1REF9 // bit 1, shadows bit in DAC1CON2bits
15720 #define R9 DAC1CON2bits.R9 // bit 1, shadows bit in DAC1CON2bits
15721 #define DAC1R9 DAC1CON2bits.DAC1R9 // bit 1, shadows bit in DAC1CON2bits
15722 #define REF10 DAC1CON2bits.REF10 // bit 2, shadows bit in DAC1CON2bits
15723 #define DAC1REF10 DAC1CON2bits.DAC1REF10 // bit 2, shadows bit in DAC1CON2bits
15724 #define R10 DAC1CON2bits.R10 // bit 2, shadows bit in DAC1CON2bits
15725 #define DAC1R10 DAC1CON2bits.DAC1R10 // bit 2, shadows bit in DAC1CON2bits
15726 #define REF11 DAC1CON2bits.REF11 // bit 3, shadows bit in DAC1CON2bits
15727 #define DAC1REF11 DAC1CON2bits.DAC1REF11 // bit 3, shadows bit in DAC1CON2bits
15728 #define R11 DAC1CON2bits.R11 // bit 3, shadows bit in DAC1CON2bits
15729 #define DAC1R11 DAC1CON2bits.DAC1R11 // bit 3, shadows bit in DAC1CON2bits
15730 #define REF12 DAC1CON2bits.REF12 // bit 4, shadows bit in DAC1CON2bits
15731 #define DAC1REF12 DAC1CON2bits.DAC1REF12 // bit 4, shadows bit in DAC1CON2bits
15732 #define R12 DAC1CON2bits.R12 // bit 4, shadows bit in DAC1CON2bits
15733 #define DAC1R12 DAC1CON2bits.DAC1R12 // bit 4, shadows bit in DAC1CON2bits
15734 #define REF13 DAC1CON2bits.REF13 // bit 5, shadows bit in DAC1CON2bits
15735 #define DAC1REF13 DAC1CON2bits.DAC1REF13 // bit 5, shadows bit in DAC1CON2bits
15736 #define R13 DAC1CON2bits.R13 // bit 5, shadows bit in DAC1CON2bits
15737 #define DAC1R13 DAC1CON2bits.DAC1R13 // bit 5, shadows bit in DAC1CON2bits
15738 #define REF14 DAC1CON2bits.REF14 // bit 6, shadows bit in DAC1CON2bits
15739 #define DAC1REF14 DAC1CON2bits.DAC1REF14 // bit 6, shadows bit in DAC1CON2bits
15740 #define R14 DAC1CON2bits.R14 // bit 6, shadows bit in DAC1CON2bits
15741 #define DAC1R14 DAC1CON2bits.DAC1R14 // bit 6, shadows bit in DAC1CON2bits
15742 #define REF15 DAC1CON2bits.REF15 // bit 7, shadows bit in DAC1CON2bits
15743 #define DAC1REF15 DAC1CON2bits.DAC1REF15 // bit 7, shadows bit in DAC1CON2bits
15744 #define R15 DAC1CON2bits.R15 // bit 7, shadows bit in DAC1CON2bits
15745 #define DAC1R15 DAC1CON2bits.DAC1R15 // bit 7, shadows bit in DAC1CON2bits
15747 #define DAC1LD DACLDbits.DAC1LD // bit 0
15748 #define DAC2LD DACLDbits.DAC2LD // bit 1
15750 #define TSRNG FVRCONbits.TSRNG // bit 4
15751 #define TSEN FVRCONbits.TSEN // bit 5
15752 #define FVRRDY FVRCONbits.FVRRDY // bit 6
15753 #define FVREN FVRCONbits.FVREN // bit 7
15755 #define HIDC4 HIDRVCbits.HIDC4 // bit 4
15756 #define HIDC5 HIDRVCbits.HIDC5 // bit 5
15758 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
15759 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
15760 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
15761 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
15762 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
15763 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
15765 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
15766 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
15767 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
15768 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
15770 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
15771 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
15772 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
15773 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
15774 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
15775 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
15776 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
15777 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
15779 #define IOCIF INTCONbits.IOCIF // bit 0
15780 #define INTF INTCONbits.INTF // bit 1
15781 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
15782 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
15783 #define IOCIE INTCONbits.IOCIE // bit 3
15784 #define INTE INTCONbits.INTE // bit 4
15785 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
15786 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
15787 #define PEIE INTCONbits.PEIE // bit 6
15788 #define GIE INTCONbits.GIE // bit 7
15790 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
15791 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
15792 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
15793 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
15794 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
15795 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
15797 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
15798 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
15799 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
15800 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
15801 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
15802 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
15804 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
15805 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
15806 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
15807 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
15808 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
15809 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
15811 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
15812 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
15813 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
15814 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
15816 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
15817 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
15818 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
15819 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
15821 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
15822 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
15823 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
15824 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
15826 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
15827 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
15828 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
15829 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
15830 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
15831 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
15832 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
15833 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
15835 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
15836 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
15837 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
15838 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
15839 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
15840 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
15841 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
15842 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
15844 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
15845 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
15846 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
15847 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
15848 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
15849 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
15850 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
15851 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
15853 #define LATA0 LATAbits.LATA0 // bit 0
15854 #define LATA1 LATAbits.LATA1 // bit 1
15855 #define LATA2 LATAbits.LATA2 // bit 2
15856 #define LATA4 LATAbits.LATA4 // bit 4
15857 #define LATA5 LATAbits.LATA5 // bit 5
15859 #define LATB4 LATBbits.LATB4 // bit 4
15860 #define LATB5 LATBbits.LATB5 // bit 5
15861 #define LATB6 LATBbits.LATB6 // bit 6
15862 #define LATB7 LATBbits.LATB7 // bit 7
15864 #define LATC0 LATCbits.LATC0 // bit 0
15865 #define LATC1 LATCbits.LATC1 // bit 1
15866 #define LATC2 LATCbits.LATC2 // bit 2
15867 #define LATC3 LATCbits.LATC3 // bit 3
15868 #define LATC4 LATCbits.LATC4 // bit 4
15869 #define LATC5 LATCbits.LATC5 // bit 5
15870 #define LATC6 LATCbits.LATC6 // bit 6
15871 #define LATC7 LATCbits.LATC7 // bit 7
15873 #define CH0 MD1CARHbits.CH0 // bit 0, shadows bit in MD1CARHbits
15874 #define MD1CH0 MD1CARHbits.MD1CH0 // bit 0, shadows bit in MD1CARHbits
15875 #define CH1 MD1CARHbits.CH1 // bit 1, shadows bit in MD1CARHbits
15876 #define MD1CH1 MD1CARHbits.MD1CH1 // bit 1, shadows bit in MD1CARHbits
15877 #define CH2 MD1CARHbits.CH2 // bit 2, shadows bit in MD1CARHbits
15878 #define MD1CH2 MD1CARHbits.MD1CH2 // bit 2, shadows bit in MD1CARHbits
15879 #define CH3 MD1CARHbits.CH3 // bit 3, shadows bit in MD1CARHbits
15880 #define MD1CH3 MD1CARHbits.MD1CH3 // bit 3, shadows bit in MD1CARHbits
15882 #define CL0 MD1CARLbits.CL0 // bit 0, shadows bit in MD1CARLbits
15883 #define MD1CL0 MD1CARLbits.MD1CL0 // bit 0, shadows bit in MD1CARLbits
15884 #define CL1 MD1CARLbits.CL1 // bit 1, shadows bit in MD1CARLbits
15885 #define MD1CL1 MD1CARLbits.MD1CL1 // bit 1, shadows bit in MD1CARLbits
15886 #define CL2 MD1CARLbits.CL2 // bit 2, shadows bit in MD1CARLbits
15887 #define MD1CL2 MD1CARLbits.MD1CL2 // bit 2, shadows bit in MD1CARLbits
15888 #define CL3 MD1CARLbits.CL3 // bit 3, shadows bit in MD1CARLbits
15889 #define MD1CL3 MD1CARLbits.MD1CL3 // bit 3, shadows bit in MD1CARLbits
15891 #define CLSYNC MD1CON1bits.CLSYNC // bit 0, shadows bit in MD1CON1bits
15892 #define MD1CLSYNC MD1CON1bits.MD1CLSYNC // bit 0, shadows bit in MD1CON1bits
15893 #define CLPOL MD1CON1bits.CLPOL // bit 1, shadows bit in MD1CON1bits
15894 #define MD1CLPOL MD1CON1bits.MD1CLPOL // bit 1, shadows bit in MD1CON1bits
15895 #define CHSYNC MD1CON1bits.CHSYNC // bit 4, shadows bit in MD1CON1bits
15896 #define MD1CHSYNC MD1CON1bits.MD1CHSYNC // bit 4, shadows bit in MD1CON1bits
15897 #define CHPOL MD1CON1bits.CHPOL // bit 5, shadows bit in MD1CON1bits
15898 #define MD1CHPOL MD1CON1bits.MD1CHPOL // bit 5, shadows bit in MD1CON1bits
15900 #define MS0 MD1SRCbits.MS0 // bit 0, shadows bit in MD1SRCbits
15901 #define MD1MS0 MD1SRCbits.MD1MS0 // bit 0, shadows bit in MD1SRCbits
15902 #define MS1 MD1SRCbits.MS1 // bit 1, shadows bit in MD1SRCbits
15903 #define MD1MS1 MD1SRCbits.MD1MS1 // bit 1, shadows bit in MD1SRCbits
15904 #define MS2 MD1SRCbits.MS2 // bit 2, shadows bit in MD1SRCbits
15905 #define MD1MS2 MD1SRCbits.MD1MS2 // bit 2, shadows bit in MD1SRCbits
15906 #define MS3 MD1SRCbits.MS3 // bit 3, shadows bit in MD1SRCbits
15907 #define MD1MS3 MD1SRCbits.MD1MS3 // bit 3, shadows bit in MD1SRCbits
15908 #define MS4 MD1SRCbits.MS4 // bit 4, shadows bit in MD1SRCbits
15909 #define MD1MS4 MD1SRCbits.MD1MS4 // bit 4, shadows bit in MD1SRCbits
15911 #define ODA0 ODCONAbits.ODA0 // bit 0
15912 #define ODA1 ODCONAbits.ODA1 // bit 1
15913 #define ODA2 ODCONAbits.ODA2 // bit 2
15914 #define ODA4 ODCONAbits.ODA4 // bit 4
15915 #define ODA5 ODCONAbits.ODA5 // bit 5
15917 #define ODB4 ODCONBbits.ODB4 // bit 4
15918 #define ODB5 ODCONBbits.ODB5 // bit 5
15919 #define ODB6 ODCONBbits.ODB6 // bit 6
15920 #define ODB7 ODCONBbits.ODB7 // bit 7
15922 #define ODC0 ODCONCbits.ODC0 // bit 0
15923 #define ODC1 ODCONCbits.ODC1 // bit 1
15924 #define ODC2 ODCONCbits.ODC2 // bit 2
15925 #define ODC3 ODCONCbits.ODC3 // bit 3
15926 #define ODC4 ODCONCbits.ODC4 // bit 4
15927 #define ODC5 ODCONCbits.ODC5 // bit 5
15928 #define ODC6 ODCONCbits.ODC6 // bit 6
15929 #define ODC7 ODCONCbits.ODC7 // bit 7
15931 #define PS0 OPTION_REGbits.PS0 // bit 0
15932 #define PS1 OPTION_REGbits.PS1 // bit 1
15933 #define PS2 OPTION_REGbits.PS2 // bit 2
15934 #define PSA OPTION_REGbits.PSA // bit 3
15935 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
15936 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
15937 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
15938 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
15939 #define INTEDG OPTION_REGbits.INTEDG // bit 6
15940 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
15942 #define SCS0 OSCCONbits.SCS0 // bit 0
15943 #define SCS1 OSCCONbits.SCS1 // bit 1
15944 #define IRCF0 OSCCONbits.IRCF0 // bit 3
15945 #define IRCF1 OSCCONbits.IRCF1 // bit 4
15946 #define IRCF2 OSCCONbits.IRCF2 // bit 5
15947 #define IRCF3 OSCCONbits.IRCF3 // bit 6
15948 #define SPLLEN OSCCONbits.SPLLEN // bit 7
15950 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
15951 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
15952 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
15953 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
15954 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
15955 #define OSTS OSCSTATbits.OSTS // bit 5
15956 #define PLLR OSCSTATbits.PLLR // bit 6
15957 #define SOSCR OSCSTATbits.SOSCR // bit 7
15959 #define TUN0 OSCTUNEbits.TUN0 // bit 0
15960 #define TUN1 OSCTUNEbits.TUN1 // bit 1
15961 #define TUN2 OSCTUNEbits.TUN2 // bit 2
15962 #define TUN3 OSCTUNEbits.TUN3 // bit 3
15963 #define TUN4 OSCTUNEbits.TUN4 // bit 4
15964 #define TUN5 OSCTUNEbits.TUN5 // bit 5
15966 #define NOT_BOR PCONbits.NOT_BOR // bit 0
15967 #define NOT_POR PCONbits.NOT_POR // bit 1
15968 #define NOT_RI PCONbits.NOT_RI // bit 2
15969 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
15970 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
15971 #define STKUNF PCONbits.STKUNF // bit 6
15972 #define STKOVF PCONbits.STKOVF // bit 7
15974 #define TMR1IE PIE1bits.TMR1IE // bit 0
15975 #define TMR2IE PIE1bits.TMR2IE // bit 1
15976 #define CCP1IE PIE1bits.CCP1IE // bit 2, shadows bit in PIE1bits
15977 #define CCPIE PIE1bits.CCPIE // bit 2, shadows bit in PIE1bits
15978 #define SSP1IE PIE1bits.SSP1IE // bit 3
15979 #define TXIE PIE1bits.TXIE // bit 4
15980 #define RCIE PIE1bits.RCIE // bit 5
15981 #define ADIE PIE1bits.ADIE // bit 6
15982 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
15984 #define CCP2IE PIE2bits.CCP2IE // bit 0
15985 #define C3IE PIE2bits.C3IE // bit 1
15986 #define C4IE PIE2bits.C4IE // bit 2
15987 #define BCL1IE PIE2bits.BCL1IE // bit 3
15988 #define C1IE PIE2bits.C1IE // bit 5
15989 #define C2IE PIE2bits.C2IE // bit 6
15990 #define OSFIE PIE2bits.OSFIE // bit 7
15992 #define CLC1IE PIE3bits.CLC1IE // bit 0
15993 #define CLC2IE PIE3bits.CLC2IE // bit 1
15994 #define CLC3IE PIE3bits.CLC3IE // bit 2
15995 #define COG2IE PIE3bits.COG2IE // bit 3
15996 #define ZCDIE PIE3bits.ZCDIE // bit 4
15997 #define COGIE PIE3bits.COGIE // bit 5
15998 #define PWM5IE PIE3bits.PWM5IE // bit 6
15999 #define PWM6IE PIE3bits.PWM6IE // bit 7
16001 #define TMR4IE PIE4bits.TMR4IE // bit 0
16002 #define TMR6IE PIE4bits.TMR6IE // bit 1
16003 #define TMR3IE PIE4bits.TMR3IE // bit 2
16004 #define TMR3GIE PIE4bits.TMR3GIE // bit 3
16005 #define TMR5IE PIE4bits.TMR5IE // bit 4
16006 #define TMR5GIE PIE4bits.TMR5GIE // bit 5
16008 #define TMR1IF PIR1bits.TMR1IF // bit 0
16009 #define TMR2IF PIR1bits.TMR2IF // bit 1
16010 #define CCP1IF PIR1bits.CCP1IF // bit 2, shadows bit in PIR1bits
16011 #define CCPIF PIR1bits.CCPIF // bit 2, shadows bit in PIR1bits
16012 #define SSP1IF PIR1bits.SSP1IF // bit 3
16013 #define TXIF PIR1bits.TXIF // bit 4
16014 #define RCIF PIR1bits.RCIF // bit 5
16015 #define ADIF PIR1bits.ADIF // bit 6
16016 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
16018 #define CCP2IF PIR2bits.CCP2IF // bit 0
16019 #define C3IF PIR2bits.C3IF // bit 1
16020 #define C4IF PIR2bits.C4IF // bit 2
16021 #define BCL1IF PIR2bits.BCL1IF // bit 3
16022 #define C1IF PIR2bits.C1IF // bit 5
16023 #define C2IF PIR2bits.C2IF // bit 6
16024 #define OSFIF PIR2bits.OSFIF // bit 7
16026 #define CLC1IF PIR3bits.CLC1IF // bit 0
16027 #define CLC2IF PIR3bits.CLC2IF // bit 1
16028 #define CLC3IF PIR3bits.CLC3IF // bit 2
16029 #define COG2IF PIR3bits.COG2IF // bit 3
16030 #define ZCDIF PIR3bits.ZCDIF // bit 4
16031 #define COG1IF PIR3bits.COG1IF // bit 5
16032 #define PWM5IF PIR3bits.PWM5IF // bit 6
16033 #define PWM6IF PIR3bits.PWM6IF // bit 7
16035 #define TMR4IF PIR4bits.TMR4IF // bit 0
16036 #define TMR6IF PIR4bits.TMR6IF // bit 1
16037 #define TMR3IF PIR4bits.TMR3IF // bit 2
16038 #define TMR3GIF PIR4bits.TMR3GIF // bit 3
16039 #define TMR5IF PIR4bits.TMR5IF // bit 4
16040 #define TMR5GIF PIR4bits.TMR5GIF // bit 5
16042 #define RD PMCON1bits.RD // bit 0
16043 #define WR PMCON1bits.WR // bit 1
16044 #define WREN PMCON1bits.WREN // bit 2
16045 #define WRERR PMCON1bits.WRERR // bit 3
16046 #define FREE PMCON1bits.FREE // bit 4
16047 #define LWLO PMCON1bits.LWLO // bit 5
16048 #define CFGS PMCON1bits.CFGS // bit 6
16050 #define RA0 PORTAbits.RA0 // bit 0
16051 #define RA1 PORTAbits.RA1 // bit 1
16052 #define RA2 PORTAbits.RA2 // bit 2
16053 #define RA3 PORTAbits.RA3 // bit 3
16054 #define RA4 PORTAbits.RA4 // bit 4
16055 #define RA5 PORTAbits.RA5 // bit 5
16057 #define RB4 PORTBbits.RB4 // bit 4
16058 #define RB5 PORTBbits.RB5 // bit 5
16059 #define RB6 PORTBbits.RB6 // bit 6
16060 #define RB7 PORTBbits.RB7 // bit 7
16062 #define RC0 PORTCbits.RC0 // bit 0
16063 #define RC1 PORTCbits.RC1 // bit 1
16064 #define RC2 PORTCbits.RC2 // bit 2
16065 #define RC3 PORTCbits.RC3 // bit 3
16066 #define RC4 PORTCbits.RC4 // bit 4
16067 #define RC5 PORTCbits.RC5 // bit 5
16068 #define RC6 PORTCbits.RC6 // bit 6
16069 #define RC7 PORTCbits.RC7 // bit 7
16071 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
16073 #define RPOL PRG1CON1bits.RPOL // bit 0, shadows bit in PRG1CON1bits
16074 #define RG1RPOL PRG1CON1bits.RG1RPOL // bit 0, shadows bit in PRG1CON1bits
16075 #define FPOL PRG1CON1bits.FPOL // bit 1, shadows bit in PRG1CON1bits
16076 #define RG1FPOL PRG1CON1bits.RG1FPOL // bit 1, shadows bit in PRG1CON1bits
16077 #define RDY PRG1CON1bits.RDY // bit 2, shadows bit in PRG1CON1bits
16078 #define RG1RDY PRG1CON1bits.RG1RDY // bit 2, shadows bit in PRG1CON1bits
16080 #define ISET0 PRG1CON2bits.ISET0 // bit 0, shadows bit in PRG1CON2bits
16081 #define RG1ISET0 PRG1CON2bits.RG1ISET0 // bit 0, shadows bit in PRG1CON2bits
16082 #define ISET1 PRG1CON2bits.ISET1 // bit 1, shadows bit in PRG1CON2bits
16083 #define RG1ISET1 PRG1CON2bits.RG1ISET1 // bit 1, shadows bit in PRG1CON2bits
16084 #define ISET2 PRG1CON2bits.ISET2 // bit 2, shadows bit in PRG1CON2bits
16085 #define RG1ISET2 PRG1CON2bits.RG1ISET2 // bit 2, shadows bit in PRG1CON2bits
16086 #define ISET3 PRG1CON2bits.ISET3 // bit 3, shadows bit in PRG1CON2bits
16087 #define RG1ISET3 PRG1CON2bits.RG1ISET3 // bit 3, shadows bit in PRG1CON2bits
16088 #define ISET4 PRG1CON2bits.ISET4 // bit 4, shadows bit in PRG1CON2bits
16089 #define RG1ISET4 PRG1CON2bits.RG1ISET4 // bit 4, shadows bit in PRG1CON2bits
16091 #define FTSS0 PRG1FTSSbits.FTSS0 // bit 0, shadows bit in PRG1FTSSbits
16092 #define RG1FTSS0 PRG1FTSSbits.RG1FTSS0 // bit 0, shadows bit in PRG1FTSSbits
16093 #define FTSS1 PRG1FTSSbits.FTSS1 // bit 1, shadows bit in PRG1FTSSbits
16094 #define RG1FTSS1 PRG1FTSSbits.RG1FTSS1 // bit 1, shadows bit in PRG1FTSSbits
16095 #define FTSS2 PRG1FTSSbits.FTSS2 // bit 2, shadows bit in PRG1FTSSbits
16096 #define RG1FTSS2 PRG1FTSSbits.RG1FTSS2 // bit 2, shadows bit in PRG1FTSSbits
16097 #define FTSS3 PRG1FTSSbits.FTSS3 // bit 3, shadows bit in PRG1FTSSbits
16098 #define RG1FTSS3 PRG1FTSSbits.RG1FTSS3 // bit 3, shadows bit in PRG1FTSSbits
16100 #define INS0 PRG1INSbits.INS0 // bit 0, shadows bit in PRG1INSbits
16101 #define RG1INS0 PRG1INSbits.RG1INS0 // bit 0, shadows bit in PRG1INSbits
16102 #define INS1 PRG1INSbits.INS1 // bit 1, shadows bit in PRG1INSbits
16103 #define RG1INS1 PRG1INSbits.RG1INS1 // bit 1, shadows bit in PRG1INSbits
16104 #define INS2 PRG1INSbits.INS2 // bit 2, shadows bit in PRG1INSbits
16105 #define RG1INS2 PRG1INSbits.RG1INS2 // bit 2, shadows bit in PRG1INSbits
16106 #define INS3 PRG1INSbits.INS3 // bit 3, shadows bit in PRG1INSbits
16107 #define RG1INS3 PRG1INSbits.RG1INS3 // bit 3, shadows bit in PRG1INSbits
16109 #define RTSS0 PRG1RTSSbits.RTSS0 // bit 0, shadows bit in PRG1RTSSbits
16110 #define RG1RTSS0 PRG1RTSSbits.RG1RTSS0 // bit 0, shadows bit in PRG1RTSSbits
16111 #define RTSS1 PRG1RTSSbits.RTSS1 // bit 1, shadows bit in PRG1RTSSbits
16112 #define RG1RTSS1 PRG1RTSSbits.RG1RTSS1 // bit 1, shadows bit in PRG1RTSSbits
16113 #define RTSS2 PRG1RTSSbits.RTSS2 // bit 2, shadows bit in PRG1RTSSbits
16114 #define RG1RTSS2 PRG1RTSSbits.RG1RTSS2 // bit 2, shadows bit in PRG1RTSSbits
16115 #define RTSS3 PRG1RTSSbits.RTSS3 // bit 3, shadows bit in PRG1RTSSbits
16116 #define RG1RTSS3 PRG1RTSSbits.RG1RTSS3 // bit 3, shadows bit in PRG1RTSSbits
16118 #define DC2 PWM3DCHbits.DC2 // bit 0, shadows bit in PWM3DCHbits
16119 #define PWM3DC2 PWM3DCHbits.PWM3DC2 // bit 0, shadows bit in PWM3DCHbits
16120 #define PWMPW2 PWM3DCHbits.PWMPW2 // bit 0, shadows bit in PWM3DCHbits
16121 #define DC3 PWM3DCHbits.DC3 // bit 1, shadows bit in PWM3DCHbits
16122 #define PWM3DC3 PWM3DCHbits.PWM3DC3 // bit 1, shadows bit in PWM3DCHbits
16123 #define PWMPW3 PWM3DCHbits.PWMPW3 // bit 1, shadows bit in PWM3DCHbits
16124 #define DC4 PWM3DCHbits.DC4 // bit 2, shadows bit in PWM3DCHbits
16125 #define PWM3DC4 PWM3DCHbits.PWM3DC4 // bit 2, shadows bit in PWM3DCHbits
16126 #define PWMPW4 PWM3DCHbits.PWMPW4 // bit 2, shadows bit in PWM3DCHbits
16127 #define DC5 PWM3DCHbits.DC5 // bit 3, shadows bit in PWM3DCHbits
16128 #define PWM3DC5 PWM3DCHbits.PWM3DC5 // bit 3, shadows bit in PWM3DCHbits
16129 #define PWMPW5 PWM3DCHbits.PWMPW5 // bit 3, shadows bit in PWM3DCHbits
16130 #define DC6 PWM3DCHbits.DC6 // bit 4, shadows bit in PWM3DCHbits
16131 #define PWM3DC6 PWM3DCHbits.PWM3DC6 // bit 4, shadows bit in PWM3DCHbits
16132 #define PWMPW6 PWM3DCHbits.PWMPW6 // bit 4, shadows bit in PWM3DCHbits
16133 #define DC7 PWM3DCHbits.DC7 // bit 5, shadows bit in PWM3DCHbits
16134 #define PWM3DC7 PWM3DCHbits.PWM3DC7 // bit 5, shadows bit in PWM3DCHbits
16135 #define PWMPW7 PWM3DCHbits.PWMPW7 // bit 5, shadows bit in PWM3DCHbits
16136 #define DC8 PWM3DCHbits.DC8 // bit 6, shadows bit in PWM3DCHbits
16137 #define PWM3DC8 PWM3DCHbits.PWM3DC8 // bit 6, shadows bit in PWM3DCHbits
16138 #define PWMPW8 PWM3DCHbits.PWMPW8 // bit 6, shadows bit in PWM3DCHbits
16139 #define DC9 PWM3DCHbits.DC9 // bit 7, shadows bit in PWM3DCHbits
16140 #define PWM3DC9 PWM3DCHbits.PWM3DC9 // bit 7, shadows bit in PWM3DCHbits
16141 #define PWMPW9 PWM3DCHbits.PWMPW9 // bit 7, shadows bit in PWM3DCHbits
16143 #define DC0 PWM3DCLbits.DC0 // bit 6, shadows bit in PWM3DCLbits
16144 #define PWM3DC0 PWM3DCLbits.PWM3DC0 // bit 6, shadows bit in PWM3DCLbits
16145 #define PWMPW0 PWM3DCLbits.PWMPW0 // bit 6, shadows bit in PWM3DCLbits
16146 #define DC1 PWM3DCLbits.DC1 // bit 7, shadows bit in PWM3DCLbits
16147 #define PWM3DC1 PWM3DCLbits.PWM3DC1 // bit 7, shadows bit in PWM3DCLbits
16148 #define PWMPW1 PWM3DCLbits.PWMPW1 // bit 7, shadows bit in PWM3DCLbits
16150 #define PWM5DCH0 PWM5DCHbits.PWM5DCH0 // bit 0
16151 #define PWM5DCH1 PWM5DCHbits.PWM5DCH1 // bit 1
16152 #define PWM5DCH2 PWM5DCHbits.PWM5DCH2 // bit 2
16153 #define PWM5DCH3 PWM5DCHbits.PWM5DCH3 // bit 3
16154 #define PWM5DCH4 PWM5DCHbits.PWM5DCH4 // bit 4
16155 #define PWM5DCH5 PWM5DCHbits.PWM5DCH5 // bit 5
16156 #define PWM5DCH6 PWM5DCHbits.PWM5DCH6 // bit 6
16157 #define PWM5DCH7 PWM5DCHbits.PWM5DCH7 // bit 7
16159 #define PWM5DCL0 PWM5DCLbits.PWM5DCL0 // bit 0
16160 #define PWM5DCL1 PWM5DCLbits.PWM5DCL1 // bit 1
16161 #define PWM5DCL2 PWM5DCLbits.PWM5DCL2 // bit 2
16162 #define PWM5DCL3 PWM5DCLbits.PWM5DCL3 // bit 3
16163 #define PWM5DCL4 PWM5DCLbits.PWM5DCL4 // bit 4
16164 #define PWM5DCL5 PWM5DCLbits.PWM5DCL5 // bit 5
16165 #define PWM5DCL6 PWM5DCLbits.PWM5DCL6 // bit 6
16166 #define PWM5DCL7 PWM5DCLbits.PWM5DCL7 // bit 7
16168 #define PRIE PWM5INTCONbits.PRIE // bit 0, shadows bit in PWM5INTCONbits
16169 #define PWM5PRIE PWM5INTCONbits.PWM5PRIE // bit 0, shadows bit in PWM5INTCONbits
16170 #define DCIE PWM5INTCONbits.DCIE // bit 1, shadows bit in PWM5INTCONbits
16171 #define PWM5DCIE PWM5INTCONbits.PWM5DCIE // bit 1, shadows bit in PWM5INTCONbits
16172 #define PHIE PWM5INTCONbits.PHIE // bit 2, shadows bit in PWM5INTCONbits
16173 #define PWM5PHIE PWM5INTCONbits.PWM5PHIE // bit 2, shadows bit in PWM5INTCONbits
16174 #define OFIE PWM5INTCONbits.OFIE // bit 3, shadows bit in PWM5INTCONbits
16175 #define PWM5OFIE PWM5INTCONbits.PWM5OFIE // bit 3, shadows bit in PWM5INTCONbits
16177 #define PRIF PWM5INTFbits.PRIF // bit 0, shadows bit in PWM5INTFbits
16178 #define PWM5PRIF PWM5INTFbits.PWM5PRIF // bit 0, shadows bit in PWM5INTFbits
16179 #define DCIF PWM5INTFbits.DCIF // bit 1, shadows bit in PWM5INTFbits
16180 #define PWM5DCIF PWM5INTFbits.PWM5DCIF // bit 1, shadows bit in PWM5INTFbits
16181 #define PHIF PWM5INTFbits.PHIF // bit 2, shadows bit in PWM5INTFbits
16182 #define PWM5PHIF PWM5INTFbits.PWM5PHIF // bit 2, shadows bit in PWM5INTFbits
16183 #define OFIF PWM5INTFbits.OFIF // bit 3, shadows bit in PWM5INTFbits
16184 #define PWM5OFIF PWM5INTFbits.PWM5OFIF // bit 3, shadows bit in PWM5INTFbits
16186 #define PWM5LDS0 PWM5LDCONbits.PWM5LDS0 // bit 0, shadows bit in PWM5LDCONbits
16187 #define LDS0 PWM5LDCONbits.LDS0 // bit 0, shadows bit in PWM5LDCONbits
16188 #define LDT PWM5LDCONbits.LDT // bit 6, shadows bit in PWM5LDCONbits
16189 #define PWM5LDM PWM5LDCONbits.PWM5LDM // bit 6, shadows bit in PWM5LDCONbits
16190 #define LDA PWM5LDCONbits.LDA // bit 7, shadows bit in PWM5LDCONbits
16191 #define PWM5LD PWM5LDCONbits.PWM5LD // bit 7, shadows bit in PWM5LDCONbits
16193 #define PWM5OFS0 PWM5OFCONbits.PWM5OFS0 // bit 0, shadows bit in PWM5OFCONbits
16194 #define OFS0 PWM5OFCONbits.OFS0 // bit 0, shadows bit in PWM5OFCONbits
16195 #define OFO PWM5OFCONbits.OFO // bit 4, shadows bit in PWM5OFCONbits
16196 #define PWM5OFMC PWM5OFCONbits.PWM5OFMC // bit 4, shadows bit in PWM5OFCONbits
16197 #define PWM5OFM0 PWM5OFCONbits.PWM5OFM0 // bit 5, shadows bit in PWM5OFCONbits
16198 #define OFM0 PWM5OFCONbits.OFM0 // bit 5, shadows bit in PWM5OFCONbits
16199 #define PWM5OFM1 PWM5OFCONbits.PWM5OFM1 // bit 6, shadows bit in PWM5OFCONbits
16200 #define OFM1 PWM5OFCONbits.OFM1 // bit 6, shadows bit in PWM5OFCONbits
16202 #define PWM5OFH0 PWM5OFHbits.PWM5OFH0 // bit 0
16203 #define PWM5OFH1 PWM5OFHbits.PWM5OFH1 // bit 1
16204 #define PWM5OFH2 PWM5OFHbits.PWM5OFH2 // bit 2
16205 #define PWM5OFH3 PWM5OFHbits.PWM5OFH3 // bit 3
16206 #define PWM5OFH4 PWM5OFHbits.PWM5OFH4 // bit 4
16207 #define PWM5OFH5 PWM5OFHbits.PWM5OFH5 // bit 5
16208 #define PWM5OFH6 PWM5OFHbits.PWM5OFH6 // bit 6
16209 #define PWM5OFH7 PWM5OFHbits.PWM5OFH7 // bit 7
16211 #define PWM5OFL0 PWM5OFLbits.PWM5OFL0 // bit 0
16212 #define PWM5OFL1 PWM5OFLbits.PWM5OFL1 // bit 1
16213 #define PWM5OFL2 PWM5OFLbits.PWM5OFL2 // bit 2
16214 #define PWM5OFL3 PWM5OFLbits.PWM5OFL3 // bit 3
16215 #define PWM5OFL4 PWM5OFLbits.PWM5OFL4 // bit 4
16216 #define PWM5OFL5 PWM5OFLbits.PWM5OFL5 // bit 5
16217 #define PWM5OFL6 PWM5OFLbits.PWM5OFL6 // bit 6
16218 #define PWM5OFL7 PWM5OFLbits.PWM5OFL7 // bit 7
16220 #define PWM5PHH0 PWM5PHHbits.PWM5PHH0 // bit 0
16221 #define PWM5PHH1 PWM5PHHbits.PWM5PHH1 // bit 1
16222 #define PWM5PHH2 PWM5PHHbits.PWM5PHH2 // bit 2
16223 #define PWM5PHH3 PWM5PHHbits.PWM5PHH3 // bit 3
16224 #define PWM5PHH4 PWM5PHHbits.PWM5PHH4 // bit 4
16225 #define PWM5PHH5 PWM5PHHbits.PWM5PHH5 // bit 5
16226 #define PWM5PHH6 PWM5PHHbits.PWM5PHH6 // bit 6
16227 #define PWM5PHH7 PWM5PHHbits.PWM5PHH7 // bit 7
16229 #define PWM5PHL0 PWM5PHLbits.PWM5PHL0 // bit 0
16230 #define PWM5PHL1 PWM5PHLbits.PWM5PHL1 // bit 1
16231 #define PWM5PHL2 PWM5PHLbits.PWM5PHL2 // bit 2
16232 #define PWM5PHL3 PWM5PHLbits.PWM5PHL3 // bit 3
16233 #define PWM5PHL4 PWM5PHLbits.PWM5PHL4 // bit 4
16234 #define PWM5PHL5 PWM5PHLbits.PWM5PHL5 // bit 5
16235 #define PWM5PHL6 PWM5PHLbits.PWM5PHL6 // bit 6
16236 #define PWM5PHL7 PWM5PHLbits.PWM5PHL7 // bit 7
16238 #define PWM5PRH0 PWM5PRHbits.PWM5PRH0 // bit 0
16239 #define PWM5PRH1 PWM5PRHbits.PWM5PRH1 // bit 1
16240 #define PWM5PRH2 PWM5PRHbits.PWM5PRH2 // bit 2
16241 #define PWM5PRH3 PWM5PRHbits.PWM5PRH3 // bit 3
16242 #define PWM5PRH4 PWM5PRHbits.PWM5PRH4 // bit 4
16243 #define PWM5PRH5 PWM5PRHbits.PWM5PRH5 // bit 5
16244 #define PWM5PRH6 PWM5PRHbits.PWM5PRH6 // bit 6
16245 #define PWM5PRH7 PWM5PRHbits.PWM5PRH7 // bit 7
16247 #define PWM5PRL0 PWM5PRLbits.PWM5PRL0 // bit 0
16248 #define PWM5PRL1 PWM5PRLbits.PWM5PRL1 // bit 1
16249 #define PWM5PRL2 PWM5PRLbits.PWM5PRL2 // bit 2
16250 #define PWM5PRL3 PWM5PRLbits.PWM5PRL3 // bit 3
16251 #define PWM5PRL4 PWM5PRLbits.PWM5PRL4 // bit 4
16252 #define PWM5PRL5 PWM5PRLbits.PWM5PRL5 // bit 5
16253 #define PWM5PRL6 PWM5PRLbits.PWM5PRL6 // bit 6
16254 #define PWM5PRL7 PWM5PRLbits.PWM5PRL7 // bit 7
16256 #define PWM5TMRH0 PWM5TMRHbits.PWM5TMRH0 // bit 0
16257 #define PWM5TMRH1 PWM5TMRHbits.PWM5TMRH1 // bit 1
16258 #define PWM5TMRH2 PWM5TMRHbits.PWM5TMRH2 // bit 2
16259 #define PWM5TMRH3 PWM5TMRHbits.PWM5TMRH3 // bit 3
16260 #define PWM5TMRH4 PWM5TMRHbits.PWM5TMRH4 // bit 4
16261 #define PWM5TMRH5 PWM5TMRHbits.PWM5TMRH5 // bit 5
16262 #define PWM5TMRH6 PWM5TMRHbits.PWM5TMRH6 // bit 6
16263 #define PWM5TMRH7 PWM5TMRHbits.PWM5TMRH7 // bit 7
16265 #define PWM5TMRL0 PWM5TMRLbits.PWM5TMRL0 // bit 0
16266 #define PWM5TMRL1 PWM5TMRLbits.PWM5TMRL1 // bit 1
16267 #define PWM5TMRL2 PWM5TMRLbits.PWM5TMRL2 // bit 2
16268 #define PWM5TMRL3 PWM5TMRLbits.PWM5TMRL3 // bit 3
16269 #define PWM5TMRL4 PWM5TMRLbits.PWM5TMRL4 // bit 4
16270 #define PWM5TMRL5 PWM5TMRLbits.PWM5TMRL5 // bit 5
16271 #define PWM5TMRL6 PWM5TMRLbits.PWM5TMRL6 // bit 6
16272 #define PWM5TMRL7 PWM5TMRLbits.PWM5TMRL7 // bit 7
16274 #define PWM6DCH0 PWM6DCHbits.PWM6DCH0 // bit 0
16275 #define PWM6DCH1 PWM6DCHbits.PWM6DCH1 // bit 1
16276 #define PWM6DCH2 PWM6DCHbits.PWM6DCH2 // bit 2
16277 #define PWM6DCH3 PWM6DCHbits.PWM6DCH3 // bit 3
16278 #define PWM6DCH4 PWM6DCHbits.PWM6DCH4 // bit 4
16279 #define PWM6DCH5 PWM6DCHbits.PWM6DCH5 // bit 5
16280 #define PWM6DCH6 PWM6DCHbits.PWM6DCH6 // bit 6
16281 #define PWM6DCH7 PWM6DCHbits.PWM6DCH7 // bit 7
16283 #define PWM6DCL0 PWM6DCLbits.PWM6DCL0 // bit 0
16284 #define PWM6DCL1 PWM6DCLbits.PWM6DCL1 // bit 1
16285 #define PWM6DCL2 PWM6DCLbits.PWM6DCL2 // bit 2
16286 #define PWM6DCL3 PWM6DCLbits.PWM6DCL3 // bit 3
16287 #define PWM6DCL4 PWM6DCLbits.PWM6DCL4 // bit 4
16288 #define PWM6DCL5 PWM6DCLbits.PWM6DCL5 // bit 5
16289 #define PWM6DCL6 PWM6DCLbits.PWM6DCL6 // bit 6
16290 #define PWM6DCL7 PWM6DCLbits.PWM6DCL7 // bit 7
16292 #define PWM6OFH0 PWM6OFHbits.PWM6OFH0 // bit 0
16293 #define PWM6OFH1 PWM6OFHbits.PWM6OFH1 // bit 1
16294 #define PWM6OFH2 PWM6OFHbits.PWM6OFH2 // bit 2
16295 #define PWM6OFH3 PWM6OFHbits.PWM6OFH3 // bit 3
16296 #define PWM6OFH4 PWM6OFHbits.PWM6OFH4 // bit 4
16297 #define PWM6OFH5 PWM6OFHbits.PWM6OFH5 // bit 5
16298 #define PWM6OFH6 PWM6OFHbits.PWM6OFH6 // bit 6
16299 #define PWM6OFH7 PWM6OFHbits.PWM6OFH7 // bit 7
16301 #define PWM6OFL0 PWM6OFLbits.PWM6OFL0 // bit 0
16302 #define PWM6OFL1 PWM6OFLbits.PWM6OFL1 // bit 1
16303 #define PWM6OFL2 PWM6OFLbits.PWM6OFL2 // bit 2
16304 #define PWM6OFL3 PWM6OFLbits.PWM6OFL3 // bit 3
16305 #define PWM6OFL4 PWM6OFLbits.PWM6OFL4 // bit 4
16306 #define PWM6OFL5 PWM6OFLbits.PWM6OFL5 // bit 5
16307 #define PWM6OFL6 PWM6OFLbits.PWM6OFL6 // bit 6
16308 #define PWM6OFL7 PWM6OFLbits.PWM6OFL7 // bit 7
16310 #define PWM6PHH0 PWM6PHHbits.PWM6PHH0 // bit 0
16311 #define PWM6PHH1 PWM6PHHbits.PWM6PHH1 // bit 1
16312 #define PWM6PHH2 PWM6PHHbits.PWM6PHH2 // bit 2
16313 #define PWM6PHH3 PWM6PHHbits.PWM6PHH3 // bit 3
16314 #define PWM6PHH4 PWM6PHHbits.PWM6PHH4 // bit 4
16315 #define PWM6PHH5 PWM6PHHbits.PWM6PHH5 // bit 5
16316 #define PWM6PHH6 PWM6PHHbits.PWM6PHH6 // bit 6
16317 #define PWM6PHH7 PWM6PHHbits.PWM6PHH7 // bit 7
16319 #define PWM6PHL0 PWM6PHLbits.PWM6PHL0 // bit 0
16320 #define PWM6PHL1 PWM6PHLbits.PWM6PHL1 // bit 1
16321 #define PWM6PHL2 PWM6PHLbits.PWM6PHL2 // bit 2
16322 #define PWM6PHL3 PWM6PHLbits.PWM6PHL3 // bit 3
16323 #define PWM6PHL4 PWM6PHLbits.PWM6PHL4 // bit 4
16324 #define PWM6PHL5 PWM6PHLbits.PWM6PHL5 // bit 5
16325 #define PWM6PHL6 PWM6PHLbits.PWM6PHL6 // bit 6
16326 #define PWM6PHL7 PWM6PHLbits.PWM6PHL7 // bit 7
16328 #define PWM6PRH0 PWM6PRHbits.PWM6PRH0 // bit 0
16329 #define PWM6PRH1 PWM6PRHbits.PWM6PRH1 // bit 1
16330 #define PWM6PRH2 PWM6PRHbits.PWM6PRH2 // bit 2
16331 #define PWM6PRH3 PWM6PRHbits.PWM6PRH3 // bit 3
16332 #define PWM6PRH4 PWM6PRHbits.PWM6PRH4 // bit 4
16333 #define PWM6PRH5 PWM6PRHbits.PWM6PRH5 // bit 5
16334 #define PWM6PRH6 PWM6PRHbits.PWM6PRH6 // bit 6
16335 #define PWM6PRH7 PWM6PRHbits.PWM6PRH7 // bit 7
16337 #define PWM6PRL0 PWM6PRLbits.PWM6PRL0 // bit 0
16338 #define PWM6PRL1 PWM6PRLbits.PWM6PRL1 // bit 1
16339 #define PWM6PRL2 PWM6PRLbits.PWM6PRL2 // bit 2
16340 #define PWM6PRL3 PWM6PRLbits.PWM6PRL3 // bit 3
16341 #define PWM6PRL4 PWM6PRLbits.PWM6PRL4 // bit 4
16342 #define PWM6PRL5 PWM6PRLbits.PWM6PRL5 // bit 5
16343 #define PWM6PRL6 PWM6PRLbits.PWM6PRL6 // bit 6
16344 #define PWM6PRL7 PWM6PRLbits.PWM6PRL7 // bit 7
16346 #define PWM6TMRH0 PWM6TMRHbits.PWM6TMRH0 // bit 0
16347 #define PWM6TMRH1 PWM6TMRHbits.PWM6TMRH1 // bit 1
16348 #define PWM6TMRH2 PWM6TMRHbits.PWM6TMRH2 // bit 2
16349 #define PWM6TMRH3 PWM6TMRHbits.PWM6TMRH3 // bit 3
16350 #define PWM6TMRH4 PWM6TMRHbits.PWM6TMRH4 // bit 4
16351 #define PWM6TMRH5 PWM6TMRHbits.PWM6TMRH5 // bit 5
16352 #define PWM6TMRH6 PWM6TMRHbits.PWM6TMRH6 // bit 6
16353 #define PWM6TMRH7 PWM6TMRHbits.PWM6TMRH7 // bit 7
16355 #define PWM6TMRL0 PWM6TMRLbits.PWM6TMRL0 // bit 0
16356 #define PWM6TMRL1 PWM6TMRLbits.PWM6TMRL1 // bit 1
16357 #define PWM6TMRL2 PWM6TMRLbits.PWM6TMRL2 // bit 2
16358 #define PWM6TMRL3 PWM6TMRLbits.PWM6TMRL3 // bit 3
16359 #define PWM6TMRL4 PWM6TMRLbits.PWM6TMRL4 // bit 4
16360 #define PWM6TMRL5 PWM6TMRLbits.PWM6TMRL5 // bit 5
16361 #define PWM6TMRL6 PWM6TMRLbits.PWM6TMRL6 // bit 6
16362 #define PWM6TMRL7 PWM6TMRLbits.PWM6TMRL7 // bit 7
16364 #define MPWM5EN PWMENbits.MPWM5EN // bit 4
16365 #define MPWM6EN PWMENbits.MPWM6EN // bit 5
16367 #define MPWM5LD PWMLDbits.MPWM5LD // bit 4
16368 #define MPWM6LD PWMLDbits.MPWM6LD // bit 5
16370 #define MPWM5OUT PWMOUTbits.MPWM5OUT // bit 4
16371 #define MPWM6OUT PWMOUTbits.MPWM6OUT // bit 5
16373 #define RX9D RC1STAbits.RX9D // bit 0
16374 #define OERR RC1STAbits.OERR // bit 1
16375 #define FERR RC1STAbits.FERR // bit 2
16376 #define ADDEN RC1STAbits.ADDEN // bit 3
16377 #define CREN RC1STAbits.CREN // bit 4
16378 #define SREN RC1STAbits.SREN // bit 5
16379 #define RX9 RC1STAbits.RX9 // bit 6
16380 #define SPEN RC1STAbits.SPEN // bit 7
16382 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
16383 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
16384 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
16385 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
16386 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
16388 #define SLRB4 SLRCONBbits.SLRB4 // bit 4
16389 #define SLRB5 SLRCONBbits.SLRB5 // bit 5
16390 #define SLRB6 SLRCONBbits.SLRB6 // bit 6
16391 #define SLRB7 SLRCONBbits.SLRB7 // bit 7
16393 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
16394 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
16395 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
16396 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
16397 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
16398 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
16399 #define SLRC6 SLRCONCbits.SLRC6 // bit 6
16400 #define SLRC7 SLRCONCbits.SLRC7 // bit 7
16402 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
16403 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
16404 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
16405 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
16406 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
16407 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
16408 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
16409 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
16410 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
16411 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
16412 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
16413 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
16414 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
16415 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
16416 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
16417 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
16419 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
16420 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
16421 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
16422 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
16423 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
16424 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
16425 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
16426 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
16427 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
16428 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
16429 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
16430 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
16431 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
16432 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
16433 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
16434 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
16436 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
16437 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
16438 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
16439 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
16440 #define CKP SSP1CONbits.CKP // bit 4
16441 #define SSPEN SSP1CONbits.SSPEN // bit 5
16442 #define SSPOV SSP1CONbits.SSPOV // bit 6
16443 #define WCOL SSP1CONbits.WCOL // bit 7
16445 #define SEN SSP1CON2bits.SEN // bit 0
16446 #define RSEN SSP1CON2bits.RSEN // bit 1
16447 #define PEN SSP1CON2bits.PEN // bit 2
16448 #define RCEN SSP1CON2bits.RCEN // bit 3
16449 #define ACKEN SSP1CON2bits.ACKEN // bit 4
16450 #define ACKDT SSP1CON2bits.ACKDT // bit 5
16451 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
16452 #define GCEN SSP1CON2bits.GCEN // bit 7
16454 #define DHEN SSP1CON3bits.DHEN // bit 0
16455 #define AHEN SSP1CON3bits.AHEN // bit 1
16456 #define SBCDE SSP1CON3bits.SBCDE // bit 2
16457 #define SDAHT SSP1CON3bits.SDAHT // bit 3
16458 #define BOEN SSP1CON3bits.BOEN // bit 4
16459 #define SCIE SSP1CON3bits.SCIE // bit 5
16460 #define PCIE SSP1CON3bits.PCIE // bit 6
16461 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
16463 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
16464 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
16465 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
16466 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
16467 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
16468 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
16469 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
16470 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
16471 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
16472 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
16473 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
16474 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
16475 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
16476 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
16477 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
16478 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
16480 #define BF SSP1STATbits.BF // bit 0
16481 #define UA SSP1STATbits.UA // bit 1
16482 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
16483 #define S SSP1STATbits.S // bit 3
16484 #define P SSP1STATbits.P // bit 4
16485 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
16486 #define CKE SSP1STATbits.CKE // bit 6
16487 #define SMP SSP1STATbits.SMP // bit 7
16489 #define C STATUSbits.C // bit 0
16490 #define DC STATUSbits.DC // bit 1
16491 #define Z STATUSbits.Z // bit 2
16492 #define NOT_PD STATUSbits.NOT_PD // bit 3
16493 #define NOT_TO STATUSbits.NOT_TO // bit 4
16495 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
16496 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
16497 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
16499 #define GSS0 T1GCONbits.GSS0 // bit 0, shadows bit in T1GCONbits
16500 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0, shadows bit in T1GCONbits
16501 #define GSS1 T1GCONbits.GSS1 // bit 1, shadows bit in T1GCONbits
16502 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1, shadows bit in T1GCONbits
16503 #define GVAL T1GCONbits.GVAL // bit 2, shadows bit in T1GCONbits
16504 #define T1GVAL T1GCONbits.T1GVAL // bit 2, shadows bit in T1GCONbits
16505 #define GGO_NOT_DONE T1GCONbits.GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
16506 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
16507 #define GSPM T1GCONbits.GSPM // bit 4, shadows bit in T1GCONbits
16508 #define T1GSPM T1GCONbits.T1GSPM // bit 4, shadows bit in T1GCONbits
16509 #define GTM T1GCONbits.GTM // bit 5, shadows bit in T1GCONbits
16510 #define T1GTM T1GCONbits.T1GTM // bit 5, shadows bit in T1GCONbits
16511 #define GPOL T1GCONbits.GPOL // bit 6, shadows bit in T1GCONbits
16512 #define T1GPOL T1GCONbits.T1GPOL // bit 6, shadows bit in T1GCONbits
16513 #define GE T1GCONbits.GE // bit 7, shadows bit in T1GCONbits
16514 #define T1GE T1GCONbits.T1GE // bit 7, shadows bit in T1GCONbits
16515 #define TMR1GE T1GCONbits.TMR1GE // bit 7, shadows bit in T1GCONbits
16517 #define RSEL0 T2RSTbits.RSEL0 // bit 0, shadows bit in T2RSTbits
16518 #define T2RSEL0 T2RSTbits.T2RSEL0 // bit 0, shadows bit in T2RSTbits
16519 #define RSEL1 T2RSTbits.RSEL1 // bit 1, shadows bit in T2RSTbits
16520 #define T2RSEL1 T2RSTbits.T2RSEL1 // bit 1, shadows bit in T2RSTbits
16521 #define RSEL2 T2RSTbits.RSEL2 // bit 2, shadows bit in T2RSTbits
16522 #define T2RSEL2 T2RSTbits.T2RSEL2 // bit 2, shadows bit in T2RSTbits
16523 #define RSEL3 T2RSTbits.RSEL3 // bit 3, shadows bit in T2RSTbits
16524 #define T2RSEL3 T2RSTbits.T2RSEL3 // bit 3, shadows bit in T2RSTbits
16526 #define TRISA0 TRISAbits.TRISA0 // bit 0
16527 #define TRISA1 TRISAbits.TRISA1 // bit 1
16528 #define TRISA2 TRISAbits.TRISA2 // bit 2
16529 #define TRISA4 TRISAbits.TRISA4 // bit 4
16530 #define TRISA5 TRISAbits.TRISA5 // bit 5
16532 #define TRISB4 TRISBbits.TRISB4 // bit 4
16533 #define TRISB5 TRISBbits.TRISB5 // bit 5
16534 #define TRISB6 TRISBbits.TRISB6 // bit 6
16535 #define TRISB7 TRISBbits.TRISB7 // bit 7
16537 #define TRISC0 TRISCbits.TRISC0 // bit 0
16538 #define TRISC1 TRISCbits.TRISC1 // bit 1
16539 #define TRISC2 TRISCbits.TRISC2 // bit 2
16540 #define TRISC3 TRISCbits.TRISC3 // bit 3
16541 #define TRISC4 TRISCbits.TRISC4 // bit 4
16542 #define TRISC5 TRISCbits.TRISC5 // bit 5
16543 #define TRISC6 TRISCbits.TRISC6 // bit 6
16544 #define TRISC7 TRISCbits.TRISC7 // bit 7
16546 #define SWDTEN WDTCONbits.SWDTEN // bit 0
16547 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
16548 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
16549 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
16550 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
16551 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
16553 #define WPUA0 WPUAbits.WPUA0 // bit 0
16554 #define WPUA1 WPUAbits.WPUA1 // bit 1
16555 #define WPUA2 WPUAbits.WPUA2 // bit 2
16556 #define WPUA3 WPUAbits.WPUA3 // bit 3
16557 #define WPUA4 WPUAbits.WPUA4 // bit 4
16558 #define WPUA5 WPUAbits.WPUA5 // bit 5
16560 #define WPUB4 WPUBbits.WPUB4 // bit 4
16561 #define WPUB5 WPUBbits.WPUB5 // bit 5
16562 #define WPUB6 WPUBbits.WPUB6 // bit 6
16563 #define WPUB7 WPUBbits.WPUB7 // bit 7
16565 #define WPUC0 WPUCbits.WPUC0 // bit 0
16566 #define WPUC1 WPUCbits.WPUC1 // bit 1
16567 #define WPUC2 WPUCbits.WPUC2 // bit 2
16568 #define WPUC3 WPUCbits.WPUC3 // bit 3
16569 #define WPUC4 WPUCbits.WPUC4 // bit 4
16570 #define WPUC5 WPUCbits.WPUC5 // bit 5
16571 #define WPUC6 WPUCbits.WPUC6 // bit 6
16572 #define WPUC7 WPUCbits.WPUC7 // bit 7
16574 #define ZCD1INTN ZCD1CONbits.ZCD1INTN // bit 0
16575 #define ZCD1INTP ZCD1CONbits.ZCD1INTP // bit 1
16576 #define ZCD1POL ZCD1CONbits.ZCD1POL // bit 4
16577 #define ZCD1OUT ZCD1CONbits.ZCD1OUT // bit 5
16578 #define ZCD1EN ZCD1CONbits.ZCD1EN // bit 7
16580 #endif // #ifndef NO_BIT_DEFINES
16582 #endif // #ifndef __PIC16F1769_H__