Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16f18855.h
blob8cc046d0443d946a91a328472dbe3099d5e9c2f3
1 /*
2 * This declarations of the PIC16F18855 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:25 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 __PIC16F18855_H__
26 #define __PIC16F18855_H__
28 //==============================================================================
30 // Register Addresses
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF0_ADDR 0x0000
37 #define INDF1_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR0_ADDR 0x0004
41 #define FSR0L_ADDR 0x0004
42 #define FSR0H_ADDR 0x0005
43 #define FSR1_ADDR 0x0006
44 #define FSR1L_ADDR 0x0006
45 #define FSR1H_ADDR 0x0007
46 #define BSR_ADDR 0x0008
47 #define WREG_ADDR 0x0009
48 #define PCLATH_ADDR 0x000A
49 #define INTCON_ADDR 0x000B
50 #define PORTA_ADDR 0x000C
51 #define PORTB_ADDR 0x000D
52 #define PORTC_ADDR 0x000E
53 #define PORTE_ADDR 0x0010
54 #define TRISA_ADDR 0x0011
55 #define TRISB_ADDR 0x0012
56 #define TRISC_ADDR 0x0013
57 #define LATA_ADDR 0x0016
58 #define LATB_ADDR 0x0017
59 #define LATC_ADDR 0x0018
60 #define TMR0_ADDR 0x001C
61 #define TMR0L_ADDR 0x001C
62 #define PR0_ADDR 0x001D
63 #define TMR0H_ADDR 0x001D
64 #define T0CON0_ADDR 0x001E
65 #define T0CON1_ADDR 0x001F
66 #define ADRES_ADDR 0x008C
67 #define ADRESL_ADDR 0x008C
68 #define ADRESH_ADDR 0x008D
69 #define ADPREV_ADDR 0x008E
70 #define ADPREVL_ADDR 0x008E
71 #define ADPREVH_ADDR 0x008F
72 #define ADACC_ADDR 0x0090
73 #define ADACCL_ADDR 0x0090
74 #define ADACCH_ADDR 0x0091
75 #define ADCON0_ADDR 0x0093
76 #define ADCON1_ADDR 0x0094
77 #define ADCON2_ADDR 0x0095
78 #define ADCON3_ADDR 0x0096
79 #define ADSTAT_ADDR 0x0097
80 #define ADCLK_ADDR 0x0098
81 #define ADACT_ADDR 0x0099
82 #define ADREF_ADDR 0x009A
83 #define ADCAP_ADDR 0x009B
84 #define ADPRE_ADDR 0x009C
85 #define ADACQ_ADDR 0x009D
86 #define ADPCH_ADDR 0x009E
87 #define ADCNT_ADDR 0x010C
88 #define ADRPT_ADDR 0x010D
89 #define ADLTH_ADDR 0x010E
90 #define ADLTHL_ADDR 0x010E
91 #define ADLTHH_ADDR 0x010F
92 #define ADUTH_ADDR 0x0110
93 #define ADUTHL_ADDR 0x0110
94 #define ADUTHH_ADDR 0x0111
95 #define ADSTPT_ADDR 0x0112
96 #define ADSTPTL_ADDR 0x0112
97 #define ADSTPTH_ADDR 0x0113
98 #define ADFLTR_ADDR 0x0114
99 #define ADFLTRL_ADDR 0x0114
100 #define ADFLTRH_ADDR 0x0115
101 #define ADERR_ADDR 0x0116
102 #define ADERRL_ADDR 0x0116
103 #define ADERRH_ADDR 0x0117
104 #define RC1REG_ADDR 0x0119
105 #define RCREG_ADDR 0x0119
106 #define RCREG1_ADDR 0x0119
107 #define TX1REG_ADDR 0x011A
108 #define TXREG_ADDR 0x011A
109 #define TXREG1_ADDR 0x011A
110 #define SP1BRG_ADDR 0x011B
111 #define SP1BRGL_ADDR 0x011B
112 #define SPBRG_ADDR 0x011B
113 #define SPBRG1_ADDR 0x011B
114 #define SPBRGL_ADDR 0x011B
115 #define SP1BRGH_ADDR 0x011C
116 #define SPBRGH_ADDR 0x011C
117 #define SPBRGH1_ADDR 0x011C
118 #define RC1STA_ADDR 0x011D
119 #define RCSTA_ADDR 0x011D
120 #define RCSTA1_ADDR 0x011D
121 #define TX1STA_ADDR 0x011E
122 #define TXSTA_ADDR 0x011E
123 #define TXSTA1_ADDR 0x011E
124 #define BAUD1CON_ADDR 0x011F
125 #define BAUDCON_ADDR 0x011F
126 #define BAUDCON1_ADDR 0x011F
127 #define BAUDCTL_ADDR 0x011F
128 #define BAUDCTL1_ADDR 0x011F
129 #define SSP1BUF_ADDR 0x018C
130 #define SSP1ADD_ADDR 0x018D
131 #define SSP1MSK_ADDR 0x018E
132 #define SSP1STAT_ADDR 0x018F
133 #define SSP1CON1_ADDR 0x0190
134 #define SSP1CON2_ADDR 0x0191
135 #define SSP1CON3_ADDR 0x0192
136 #define SSP2BUF_ADDR 0x0196
137 #define SSP2ADD_ADDR 0x0197
138 #define SSP2MSK_ADDR 0x0198
139 #define SSP2STAT_ADDR 0x0199
140 #define SSP2CON1_ADDR 0x019A
141 #define SSP2CON2_ADDR 0x019B
142 #define SSP2CON3_ADDR 0x019C
143 #define TMR1L_ADDR 0x020C
144 #define TMR1H_ADDR 0x020D
145 #define T1CON_ADDR 0x020E
146 #define PR1_ADDR 0x020F
147 #define T1GCON_ADDR 0x020F
148 #define T1GATE_ADDR 0x0210
149 #define TMR1GATE_ADDR 0x0210
150 #define T1CLK_ADDR 0x0211
151 #define TMR1CLK_ADDR 0x0211
152 #define TMR3L_ADDR 0x0212
153 #define TMR3H_ADDR 0x0213
154 #define T3CON_ADDR 0x0214
155 #define PR3_ADDR 0x0215
156 #define T3GCON_ADDR 0x0215
157 #define T3GATE_ADDR 0x0216
158 #define TMR3GATE_ADDR 0x0216
159 #define T3CLK_ADDR 0x0217
160 #define TMR3CLK_ADDR 0x0217
161 #define TMR5L_ADDR 0x0218
162 #define TMR5H_ADDR 0x0219
163 #define T5CON_ADDR 0x021A
164 #define PR5_ADDR 0x021B
165 #define T5GCON_ADDR 0x021B
166 #define T5GATE_ADDR 0x021C
167 #define TMR5GATE_ADDR 0x021C
168 #define T5CLK_ADDR 0x021D
169 #define TMR5CLK_ADDR 0x021D
170 #define CCPTMRS0_ADDR 0x021E
171 #define CCPTMRS1_ADDR 0x021F
172 #define T2TMR_ADDR 0x028C
173 #define TMR2_ADDR 0x028C
174 #define PR2_ADDR 0x028D
175 #define T2PR_ADDR 0x028D
176 #define T2CON_ADDR 0x028E
177 #define T2HLT_ADDR 0x028F
178 #define T2CLKCON_ADDR 0x0290
179 #define T2RST_ADDR 0x0291
180 #define T4TMR_ADDR 0x0292
181 #define TMR4_ADDR 0x0292
182 #define PR4_ADDR 0x0293
183 #define T4PR_ADDR 0x0293
184 #define T4CON_ADDR 0x0294
185 #define T4HLT_ADDR 0x0295
186 #define T4CLKCON_ADDR 0x0296
187 #define T4RST_ADDR 0x0297
188 #define T6TMR_ADDR 0x0298
189 #define TMR6_ADDR 0x0298
190 #define PR6_ADDR 0x0299
191 #define T6PR_ADDR 0x0299
192 #define T6CON_ADDR 0x029A
193 #define T6HLT_ADDR 0x029B
194 #define T6CLKCON_ADDR 0x029C
195 #define T6RST_ADDR 0x029D
196 #define CCPR1_ADDR 0x030C
197 #define CCPR1L_ADDR 0x030C
198 #define CCPR1H_ADDR 0x030D
199 #define CCP1CON_ADDR 0x030E
200 #define CCP1CAP_ADDR 0x030F
201 #define CCPR2_ADDR 0x0310
202 #define CCPR2L_ADDR 0x0310
203 #define CCPR2H_ADDR 0x0311
204 #define CCP2CON_ADDR 0x0312
205 #define CCP2CAP_ADDR 0x0313
206 #define CCPR3_ADDR 0x0314
207 #define CCPR3L_ADDR 0x0314
208 #define CCPR3H_ADDR 0x0315
209 #define CCP3CON_ADDR 0x0316
210 #define CCP3CAP_ADDR 0x0317
211 #define CCPR4_ADDR 0x0318
212 #define CCPR4L_ADDR 0x0318
213 #define CCPR4H_ADDR 0x0319
214 #define CCP4CON_ADDR 0x031A
215 #define CCP4CAP_ADDR 0x031B
216 #define CCPR5_ADDR 0x031C
217 #define CCPR5L_ADDR 0x031C
218 #define CCPR5H_ADDR 0x031D
219 #define CCP5CON_ADDR 0x031E
220 #define CCP5CAP_ADDR 0x031F
221 #define PWM6DCL_ADDR 0x038C
222 #define PWM6DCH_ADDR 0x038D
223 #define PWM6CON_ADDR 0x038E
224 #define PWM7DCL_ADDR 0x0390
225 #define PWM7DCH_ADDR 0x0391
226 #define PWM7CON_ADDR 0x0392
227 #define SCANLADRL_ADDR 0x040C
228 #define SCANLADRH_ADDR 0x040D
229 #define SCANHADRL_ADDR 0x040E
230 #define SCANHADRH_ADDR 0x040F
231 #define SCANCON0_ADDR 0x0410
232 #define SCANTRIG_ADDR 0x0411
233 #define CRCDATA_ADDR 0x0416
234 #define CRCDATL_ADDR 0x0416
235 #define CRCDATH_ADDR 0x0417
236 #define CRCACC_ADDR 0x0418
237 #define CRCACCL_ADDR 0x0418
238 #define CRCACCH_ADDR 0x0419
239 #define CRCSHFT_ADDR 0x041A
240 #define CRCSHIFTL_ADDR 0x041A
241 #define CRCSHIFTH_ADDR 0x041B
242 #define CRCXOR_ADDR 0x041C
243 #define CRCXORL_ADDR 0x041C
244 #define CRCXORH_ADDR 0x041D
245 #define CRCCON0_ADDR 0x041E
246 #define CRCCON1_ADDR 0x041F
247 #define SMT1TMR_ADDR 0x048C
248 #define SMT1TMRL_ADDR 0x048C
249 #define SMT1TMRH_ADDR 0x048D
250 #define SMT1TMRU_ADDR 0x048E
251 #define SMT1CPR_ADDR 0x048F
252 #define SMT1CPRL_ADDR 0x048F
253 #define SMT1CPRH_ADDR 0x0490
254 #define SMT1CPRU_ADDR 0x0491
255 #define SMT1CPW_ADDR 0x0492
256 #define SMT1CPWL_ADDR 0x0492
257 #define SMT1CPWH_ADDR 0x0493
258 #define SMT1CPWU_ADDR 0x0494
259 #define SMT1PR_ADDR 0x0495
260 #define SMT1PRL_ADDR 0x0495
261 #define SMT1PRH_ADDR 0x0496
262 #define SMT1PRU_ADDR 0x0497
263 #define SMT1CON0_ADDR 0x0498
264 #define SMT1CON1_ADDR 0x0499
265 #define SMT1STAT_ADDR 0x049A
266 #define SMT1CLK_ADDR 0x049B
267 #define SMT1SIG_ADDR 0x049C
268 #define SMT1WIN_ADDR 0x049D
269 #define SMT2TMR_ADDR 0x050C
270 #define SMT2TMRL_ADDR 0x050C
271 #define SMT2TMRH_ADDR 0x050D
272 #define SMT2TMRU_ADDR 0x050E
273 #define SMT2CPR_ADDR 0x050F
274 #define SMT2CPRL_ADDR 0x050F
275 #define SMT2CPRH_ADDR 0x0510
276 #define SMT2CPRU_ADDR 0x0511
277 #define SMT2CPW_ADDR 0x0512
278 #define SMT2CPWL_ADDR 0x0512
279 #define SMT2CPWH_ADDR 0x0513
280 #define SMT2CPWU_ADDR 0x0514
281 #define SMT2PR_ADDR 0x0515
282 #define SMT2PRL_ADDR 0x0515
283 #define SMT2PRH_ADDR 0x0516
284 #define SMT2PRU_ADDR 0x0517
285 #define SMT2CON0_ADDR 0x0518
286 #define SMT2CON1_ADDR 0x0519
287 #define SMT2STAT_ADDR 0x051A
288 #define SMT2CLK_ADDR 0x051B
289 #define SMT2SIG_ADDR 0x051C
290 #define SMT2WIN_ADDR 0x051D
291 #define NCO1ACC_ADDR 0x058C
292 #define NCO1ACCL_ADDR 0x058C
293 #define NCO1ACCH_ADDR 0x058D
294 #define NCO1ACCU_ADDR 0x058E
295 #define NCO1INC_ADDR 0x058F
296 #define NCO1INCL_ADDR 0x058F
297 #define NCO1INCH_ADDR 0x0590
298 #define NCO1INCU_ADDR 0x0591
299 #define NCO1CON_ADDR 0x0592
300 #define NCO1CLK_ADDR 0x0593
301 #define CWG1CLKCON_ADDR 0x060C
302 #define CWG1ISM_ADDR 0x060D
303 #define CWG1DBR_ADDR 0x060E
304 #define CWG1DBF_ADDR 0x060F
305 #define CWG1CON0_ADDR 0x0610
306 #define CWG1CON1_ADDR 0x0611
307 #define CWG1AS0_ADDR 0x0612
308 #define CWG1AS1_ADDR 0x0613
309 #define CWG1STR_ADDR 0x0614
310 #define CWG2CLKCON_ADDR 0x0616
311 #define CWG2ISM_ADDR 0x0617
312 #define CWG2DBR_ADDR 0x0618
313 #define CWG2DBF_ADDR 0x0619
314 #define CWG2CON0_ADDR 0x061A
315 #define CWG2CON1_ADDR 0x061B
316 #define CWG2AS0_ADDR 0x061C
317 #define CWG2AS1_ADDR 0x061D
318 #define CWG2STR_ADDR 0x061E
319 #define CWG3CLKCON_ADDR 0x068C
320 #define CWG3ISM_ADDR 0x068D
321 #define CWG3DBR_ADDR 0x068E
322 #define CWG3DBF_ADDR 0x068F
323 #define CWG3CON0_ADDR 0x0690
324 #define CWG3CON1_ADDR 0x0691
325 #define CWG3AS0_ADDR 0x0692
326 #define CWG3AS1_ADDR 0x0693
327 #define CWG3STR_ADDR 0x0694
328 #define PIR0_ADDR 0x070C
329 #define PIR1_ADDR 0x070D
330 #define PIR2_ADDR 0x070E
331 #define PIR3_ADDR 0x070F
332 #define PIR4_ADDR 0x0710
333 #define PIR5_ADDR 0x0711
334 #define PIR6_ADDR 0x0712
335 #define PIR7_ADDR 0x0713
336 #define PIR8_ADDR 0x0714
337 #define PIE0_ADDR 0x0716
338 #define PIE1_ADDR 0x0717
339 #define PIE2_ADDR 0x0718
340 #define PIE3_ADDR 0x0719
341 #define PIE4_ADDR 0x071A
342 #define PIE5_ADDR 0x071B
343 #define PIE6_ADDR 0x071C
344 #define PIE7_ADDR 0x071D
345 #define PIE8_ADDR 0x071E
346 #define PMD0_ADDR 0x0796
347 #define PMD1_ADDR 0x0797
348 #define PMD2_ADDR 0x0798
349 #define PMD3_ADDR 0x0799
350 #define PMD4_ADDR 0x079A
351 #define PMD5_ADDR 0x079B
352 #define WDTCON0_ADDR 0x080C
353 #define WDTCON1_ADDR 0x080D
354 #define WDTPSL_ADDR 0x080E
355 #define WDTPSH_ADDR 0x080F
356 #define WDTTMR_ADDR 0x0810
357 #define BORCON_ADDR 0x0811
358 #define VREGCON_ADDR 0x0812
359 #define PCON0_ADDR 0x0813
360 #define CCDCON_ADDR 0x0814
361 #define NVMADRL_ADDR 0x081A
362 #define NVMADRH_ADDR 0x081B
363 #define NVMDATL_ADDR 0x081C
364 #define NVMDATH_ADDR 0x081D
365 #define NVMCON1_ADDR 0x081E
366 #define NVMCON2_ADDR 0x081F
367 #define CPUDOZE_ADDR 0x088C
368 #define OSCCON1_ADDR 0x088D
369 #define OSCCON2_ADDR 0x088E
370 #define OSCCON3_ADDR 0x088F
371 #define OSCSTAT_ADDR 0x0890
372 #define OSCEN_ADDR 0x0891
373 #define OSCTUNE_ADDR 0x0892
374 #define OSCFRQ_ADDR 0x0893
375 #define CLKRCON_ADDR 0x0895
376 #define CLKRCLK_ADDR 0x0896
377 #define MDCON0_ADDR 0x0897
378 #define MDCON1_ADDR 0x0898
379 #define MDSRC_ADDR 0x0899
380 #define MDCARL_ADDR 0x089A
381 #define MDCARH_ADDR 0x089B
382 #define FVRCON_ADDR 0x090C
383 #define DAC1CON0_ADDR 0x090E
384 #define DAC1CON1_ADDR 0x090F
385 #define ZCD1CON_ADDR 0x091F
386 #define ZCDCON_ADDR 0x091F
387 #define CMOUT_ADDR 0x098F
388 #define CMSTAT_ADDR 0x098F
389 #define CM1CON0_ADDR 0x0990
390 #define CM1CON1_ADDR 0x0991
391 #define CM1NSEL_ADDR 0x0992
392 #define CM1PSEL_ADDR 0x0993
393 #define CM2CON0_ADDR 0x0994
394 #define CM2CON1_ADDR 0x0995
395 #define CM2NSEL_ADDR 0x0996
396 #define CM2PSEL_ADDR 0x0997
397 #define CLCDATA_ADDR 0x0E0F
398 #define CLC1CON_ADDR 0x0E10
399 #define CLC1POL_ADDR 0x0E11
400 #define CLC1SEL0_ADDR 0x0E12
401 #define CLC1SEL1_ADDR 0x0E13
402 #define CLC1SEL2_ADDR 0x0E14
403 #define CLC1SEL3_ADDR 0x0E15
404 #define CLC1GLS0_ADDR 0x0E16
405 #define CLC1GLS1_ADDR 0x0E17
406 #define CLC1GLS2_ADDR 0x0E18
407 #define CLC1GLS3_ADDR 0x0E19
408 #define CLC2CON_ADDR 0x0E1A
409 #define CLC2POL_ADDR 0x0E1B
410 #define CLC2SEL0_ADDR 0x0E1C
411 #define CLC2SEL1_ADDR 0x0E1D
412 #define CLC2SEL2_ADDR 0x0E1E
413 #define CLC2SEL3_ADDR 0x0E1F
414 #define CLC2GLS0_ADDR 0x0E20
415 #define CLC2GLS1_ADDR 0x0E21
416 #define CLC2GLS2_ADDR 0x0E22
417 #define CLC2GLS3_ADDR 0x0E23
418 #define CLC3CON_ADDR 0x0E24
419 #define CLC3POL_ADDR 0x0E25
420 #define CLC3SEL0_ADDR 0x0E26
421 #define CLC3SEL1_ADDR 0x0E27
422 #define CLC3SEL2_ADDR 0x0E28
423 #define CLC3SEL3_ADDR 0x0E29
424 #define CLC3GLS0_ADDR 0x0E2A
425 #define CLC3GLS1_ADDR 0x0E2B
426 #define CLC3GLS2_ADDR 0x0E2C
427 #define CLC3GLS3_ADDR 0x0E2D
428 #define CLC4CON_ADDR 0x0E2E
429 #define CLC4POL_ADDR 0x0E2F
430 #define CLC4SEL0_ADDR 0x0E30
431 #define CLC4SEL1_ADDR 0x0E31
432 #define CLC4SEL2_ADDR 0x0E32
433 #define CLC4SEL3_ADDR 0x0E33
434 #define CLC4GLS0_ADDR 0x0E34
435 #define CLC4GLS1_ADDR 0x0E35
436 #define CLC4GLS2_ADDR 0x0E36
437 #define CLC4GLS3_ADDR 0x0E37
438 #define PPSLOCK_ADDR 0x0E8F
439 #define INTPPS_ADDR 0x0E90
440 #define T0CKIPPS_ADDR 0x0E91
441 #define T1CKIPPS_ADDR 0x0E92
442 #define T1GPPS_ADDR 0x0E93
443 #define T3CKIPPS_ADDR 0x0E94
444 #define T3GPPS_ADDR 0x0E95
445 #define T5CKIPPS_ADDR 0x0E96
446 #define T5GPPS_ADDR 0x0E97
447 #define T2AINPPS_ADDR 0x0E9C
448 #define T4AINPPS_ADDR 0x0E9D
449 #define T6AINPPS_ADDR 0x0E9E
450 #define CCP1PPS_ADDR 0x0EA1
451 #define CCP2PPS_ADDR 0x0EA2
452 #define CCP3PPS_ADDR 0x0EA3
453 #define CCP4PPS_ADDR 0x0EA4
454 #define CCP5PPS_ADDR 0x0EA5
455 #define SMT1WINPPS_ADDR 0x0EA9
456 #define SMT1SIGPPS_ADDR 0x0EAA
457 #define SMT2WINPPS_ADDR 0x0EAB
458 #define SMT2SIGPPS_ADDR 0x0EAC
459 #define CWG1PPS_ADDR 0x0EB1
460 #define CWG2PPS_ADDR 0x0EB2
461 #define CWG3PPS_ADDR 0x0EB3
462 #define MDCARLPPS_ADDR 0x0EB8
463 #define MDCARHPPS_ADDR 0x0EB9
464 #define MDSRCPPS_ADDR 0x0EBA
465 #define CLCIN0PPS_ADDR 0x0EBB
466 #define CLCIN1PPS_ADDR 0x0EBC
467 #define CLCIN2PPS_ADDR 0x0EBD
468 #define CLCIN3PPS_ADDR 0x0EBE
469 #define ADCACTPPS_ADDR 0x0EC3
470 #define SSP1CLKPPS_ADDR 0x0EC5
471 #define SSP1DATPPS_ADDR 0x0EC6
472 #define SSP1SSPPS_ADDR 0x0EC7
473 #define SSP2CLKPPS_ADDR 0x0EC8
474 #define SSP2DATPPS_ADDR 0x0EC9
475 #define SSP2SSPPS_ADDR 0x0ECA
476 #define RXPPS_ADDR 0x0ECB
477 #define TXPPS_ADDR 0x0ECC
478 #define RA0PPS_ADDR 0x0F10
479 #define RA1PPS_ADDR 0x0F11
480 #define RA2PPS_ADDR 0x0F12
481 #define RA3PPS_ADDR 0x0F13
482 #define RA4PPS_ADDR 0x0F14
483 #define RA5PPS_ADDR 0x0F15
484 #define RA6PPS_ADDR 0x0F16
485 #define RA7PPS_ADDR 0x0F17
486 #define RB0PPS_ADDR 0x0F18
487 #define RB1PPS_ADDR 0x0F19
488 #define RB2PPS_ADDR 0x0F1A
489 #define RB3PPS_ADDR 0x0F1B
490 #define RB4PPS_ADDR 0x0F1C
491 #define RB5PPS_ADDR 0x0F1D
492 #define RB6PPS_ADDR 0x0F1E
493 #define RB7PPS_ADDR 0x0F1F
494 #define RC0PPS_ADDR 0x0F20
495 #define RC1PPS_ADDR 0x0F21
496 #define RC2PPS_ADDR 0x0F22
497 #define RC3PPS_ADDR 0x0F23
498 #define RC4PPS_ADDR 0x0F24
499 #define RC5PPS_ADDR 0x0F25
500 #define RC6PPS_ADDR 0x0F26
501 #define RC7PPS_ADDR 0x0F27
502 #define ANSELA_ADDR 0x0F38
503 #define WPUA_ADDR 0x0F39
504 #define ODCONA_ADDR 0x0F3A
505 #define SLRCONA_ADDR 0x0F3B
506 #define INLVLA_ADDR 0x0F3C
507 #define IOCAP_ADDR 0x0F3D
508 #define IOCAN_ADDR 0x0F3E
509 #define IOCAF_ADDR 0x0F3F
510 #define CCDNA_ADDR 0x0F40
511 #define CCDPA_ADDR 0x0F41
512 #define ANSELB_ADDR 0x0F43
513 #define WPUB_ADDR 0x0F44
514 #define ODCONB_ADDR 0x0F45
515 #define SLRCONB_ADDR 0x0F46
516 #define INLVLB_ADDR 0x0F47
517 #define IOCBP_ADDR 0x0F48
518 #define IOCBN_ADDR 0x0F49
519 #define IOCBF_ADDR 0x0F4A
520 #define CCDNB_ADDR 0x0F4B
521 #define CCDPB_ADDR 0x0F4C
522 #define ANSELC_ADDR 0x0F4E
523 #define WPUC_ADDR 0x0F4F
524 #define ODCONC_ADDR 0x0F50
525 #define SLRCONC_ADDR 0x0F51
526 #define INLVLC_ADDR 0x0F52
527 #define IOCCP_ADDR 0x0F53
528 #define IOCCN_ADDR 0x0F54
529 #define IOCCF_ADDR 0x0F55
530 #define CCDNC_ADDR 0x0F56
531 #define CCDPC_ADDR 0x0F57
532 #define WPUE_ADDR 0x0F65
533 #define INLVLE_ADDR 0x0F68
534 #define IOCEP_ADDR 0x0F69
535 #define IOCEN_ADDR 0x0F6A
536 #define IOCEF_ADDR 0x0F6B
537 #define STATUS_SHAD_ADDR 0x0FE4
538 #define WREG_SHAD_ADDR 0x0FE5
539 #define BSR_SHAD_ADDR 0x0FE6
540 #define PCLATH_SHAD_ADDR 0x0FE7
541 #define FSR0L_SHAD_ADDR 0x0FE8
542 #define FSR0H_SHAD_ADDR 0x0FE9
543 #define FSR1L_SHAD_ADDR 0x0FEA
544 #define FSR1H_SHAD_ADDR 0x0FEB
545 #define STKPTR_ADDR 0x0FED
546 #define TOSL_ADDR 0x0FEE
547 #define TOSH_ADDR 0x0FEF
549 #endif // #ifndef NO_ADDR_DEFINES
551 //==============================================================================
553 // Register Definitions
555 //==============================================================================
557 extern __at(0x0000) __sfr INDF0;
558 extern __at(0x0001) __sfr INDF1;
559 extern __at(0x0002) __sfr PCL;
561 //==============================================================================
562 // STATUS Bits
564 extern __at(0x0003) __sfr STATUS;
566 typedef struct
568 unsigned C : 1;
569 unsigned DC : 1;
570 unsigned Z : 1;
571 unsigned NOT_PD : 1;
572 unsigned NOT_TO : 1;
573 unsigned : 1;
574 unsigned : 1;
575 unsigned : 1;
576 } __STATUSbits_t;
578 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
580 #define _C 0x01
581 #define _DC 0x02
582 #define _Z 0x04
583 #define _NOT_PD 0x08
584 #define _NOT_TO 0x10
586 //==============================================================================
588 extern __at(0x0004) __sfr FSR0;
589 extern __at(0x0004) __sfr FSR0L;
590 extern __at(0x0005) __sfr FSR0H;
591 extern __at(0x0006) __sfr FSR1;
592 extern __at(0x0006) __sfr FSR1L;
593 extern __at(0x0007) __sfr FSR1H;
595 //==============================================================================
596 // BSR Bits
598 extern __at(0x0008) __sfr BSR;
600 typedef union
602 struct
604 unsigned BSR0 : 1;
605 unsigned BSR1 : 1;
606 unsigned BSR2 : 1;
607 unsigned BSR3 : 1;
608 unsigned BSR4 : 1;
609 unsigned : 1;
610 unsigned : 1;
611 unsigned : 1;
614 struct
616 unsigned BSR : 5;
617 unsigned : 3;
619 } __BSRbits_t;
621 extern __at(0x0008) volatile __BSRbits_t BSRbits;
623 #define _BSR0 0x01
624 #define _BSR1 0x02
625 #define _BSR2 0x04
626 #define _BSR3 0x08
627 #define _BSR4 0x10
629 //==============================================================================
631 extern __at(0x0009) __sfr WREG;
632 extern __at(0x000A) __sfr PCLATH;
634 //==============================================================================
635 // INTCON Bits
637 extern __at(0x000B) __sfr INTCON;
639 typedef struct
641 unsigned INTEDG : 1;
642 unsigned : 1;
643 unsigned : 1;
644 unsigned : 1;
645 unsigned : 1;
646 unsigned : 1;
647 unsigned PEIE : 1;
648 unsigned GIE : 1;
649 } __INTCONbits_t;
651 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
653 #define _INTEDG 0x01
654 #define _PEIE 0x40
655 #define _GIE 0x80
657 //==============================================================================
660 //==============================================================================
661 // PORTA Bits
663 extern __at(0x000C) __sfr PORTA;
665 typedef struct
667 unsigned RA0 : 1;
668 unsigned RA1 : 1;
669 unsigned RA2 : 1;
670 unsigned RA3 : 1;
671 unsigned RA4 : 1;
672 unsigned RA5 : 1;
673 unsigned RA6 : 1;
674 unsigned RA7 : 1;
675 } __PORTAbits_t;
677 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
679 #define _RA0 0x01
680 #define _RA1 0x02
681 #define _RA2 0x04
682 #define _RA3 0x08
683 #define _RA4 0x10
684 #define _RA5 0x20
685 #define _RA6 0x40
686 #define _RA7 0x80
688 //==============================================================================
691 //==============================================================================
692 // PORTB Bits
694 extern __at(0x000D) __sfr PORTB;
696 typedef struct
698 unsigned RB0 : 1;
699 unsigned RB1 : 1;
700 unsigned RB2 : 1;
701 unsigned RB3 : 1;
702 unsigned RB4 : 1;
703 unsigned RB5 : 1;
704 unsigned RB6 : 1;
705 unsigned RB7 : 1;
706 } __PORTBbits_t;
708 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
710 #define _RB0 0x01
711 #define _RB1 0x02
712 #define _RB2 0x04
713 #define _RB3 0x08
714 #define _RB4 0x10
715 #define _RB5 0x20
716 #define _RB6 0x40
717 #define _RB7 0x80
719 //==============================================================================
722 //==============================================================================
723 // PORTC Bits
725 extern __at(0x000E) __sfr PORTC;
727 typedef struct
729 unsigned RC0 : 1;
730 unsigned RC1 : 1;
731 unsigned RC2 : 1;
732 unsigned RC3 : 1;
733 unsigned RC4 : 1;
734 unsigned RC5 : 1;
735 unsigned RC6 : 1;
736 unsigned RC7 : 1;
737 } __PORTCbits_t;
739 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
741 #define _RC0 0x01
742 #define _RC1 0x02
743 #define _RC2 0x04
744 #define _RC3 0x08
745 #define _RC4 0x10
746 #define _RC5 0x20
747 #define _RC6 0x40
748 #define _RC7 0x80
750 //==============================================================================
753 //==============================================================================
754 // PORTE Bits
756 extern __at(0x0010) __sfr PORTE;
758 typedef struct
760 unsigned : 1;
761 unsigned : 1;
762 unsigned : 1;
763 unsigned RE3 : 1;
764 unsigned : 1;
765 unsigned : 1;
766 unsigned : 1;
767 unsigned : 1;
768 } __PORTEbits_t;
770 extern __at(0x0010) volatile __PORTEbits_t PORTEbits;
772 #define _RE3 0x08
774 //==============================================================================
777 //==============================================================================
778 // TRISA Bits
780 extern __at(0x0011) __sfr TRISA;
782 typedef struct
784 unsigned TRISA0 : 1;
785 unsigned TRISA1 : 1;
786 unsigned TRISA2 : 1;
787 unsigned TRISA3 : 1;
788 unsigned TRISA4 : 1;
789 unsigned TRISA5 : 1;
790 unsigned TRISA6 : 1;
791 unsigned TRISA7 : 1;
792 } __TRISAbits_t;
794 extern __at(0x0011) volatile __TRISAbits_t TRISAbits;
796 #define _TRISA0 0x01
797 #define _TRISA1 0x02
798 #define _TRISA2 0x04
799 #define _TRISA3 0x08
800 #define _TRISA4 0x10
801 #define _TRISA5 0x20
802 #define _TRISA6 0x40
803 #define _TRISA7 0x80
805 //==============================================================================
808 //==============================================================================
809 // TRISB Bits
811 extern __at(0x0012) __sfr TRISB;
813 typedef struct
815 unsigned TRISB0 : 1;
816 unsigned TRISB1 : 1;
817 unsigned TRISB2 : 1;
818 unsigned TRISB3 : 1;
819 unsigned TRISB4 : 1;
820 unsigned TRISB5 : 1;
821 unsigned TRISB6 : 1;
822 unsigned TRISB7 : 1;
823 } __TRISBbits_t;
825 extern __at(0x0012) volatile __TRISBbits_t TRISBbits;
827 #define _TRISB0 0x01
828 #define _TRISB1 0x02
829 #define _TRISB2 0x04
830 #define _TRISB3 0x08
831 #define _TRISB4 0x10
832 #define _TRISB5 0x20
833 #define _TRISB6 0x40
834 #define _TRISB7 0x80
836 //==============================================================================
839 //==============================================================================
840 // TRISC Bits
842 extern __at(0x0013) __sfr TRISC;
844 typedef struct
846 unsigned TRISC0 : 1;
847 unsigned TRISC1 : 1;
848 unsigned TRISC2 : 1;
849 unsigned TRISC3 : 1;
850 unsigned TRISC4 : 1;
851 unsigned TRISC5 : 1;
852 unsigned TRISC6 : 1;
853 unsigned TRISC7 : 1;
854 } __TRISCbits_t;
856 extern __at(0x0013) volatile __TRISCbits_t TRISCbits;
858 #define _TRISC0 0x01
859 #define _TRISC1 0x02
860 #define _TRISC2 0x04
861 #define _TRISC3 0x08
862 #define _TRISC4 0x10
863 #define _TRISC5 0x20
864 #define _TRISC6 0x40
865 #define _TRISC7 0x80
867 //==============================================================================
870 //==============================================================================
871 // LATA Bits
873 extern __at(0x0016) __sfr LATA;
875 typedef struct
877 unsigned LATA0 : 1;
878 unsigned LATA1 : 1;
879 unsigned LATA2 : 1;
880 unsigned LATA3 : 1;
881 unsigned LATA4 : 1;
882 unsigned LATA5 : 1;
883 unsigned LATA6 : 1;
884 unsigned LATA7 : 1;
885 } __LATAbits_t;
887 extern __at(0x0016) volatile __LATAbits_t LATAbits;
889 #define _LATA0 0x01
890 #define _LATA1 0x02
891 #define _LATA2 0x04
892 #define _LATA3 0x08
893 #define _LATA4 0x10
894 #define _LATA5 0x20
895 #define _LATA6 0x40
896 #define _LATA7 0x80
898 //==============================================================================
901 //==============================================================================
902 // LATB Bits
904 extern __at(0x0017) __sfr LATB;
906 typedef struct
908 unsigned LATB0 : 1;
909 unsigned LATB1 : 1;
910 unsigned LATB2 : 1;
911 unsigned LATB3 : 1;
912 unsigned LATB4 : 1;
913 unsigned LATB5 : 1;
914 unsigned LATB6 : 1;
915 unsigned LATB7 : 1;
916 } __LATBbits_t;
918 extern __at(0x0017) volatile __LATBbits_t LATBbits;
920 #define _LATB0 0x01
921 #define _LATB1 0x02
922 #define _LATB2 0x04
923 #define _LATB3 0x08
924 #define _LATB4 0x10
925 #define _LATB5 0x20
926 #define _LATB6 0x40
927 #define _LATB7 0x80
929 //==============================================================================
932 //==============================================================================
933 // LATC Bits
935 extern __at(0x0018) __sfr LATC;
937 typedef struct
939 unsigned LATC0 : 1;
940 unsigned LATC1 : 1;
941 unsigned LATC2 : 1;
942 unsigned LATC3 : 1;
943 unsigned LATC4 : 1;
944 unsigned LATC5 : 1;
945 unsigned LATC6 : 1;
946 unsigned LATC7 : 1;
947 } __LATCbits_t;
949 extern __at(0x0018) volatile __LATCbits_t LATCbits;
951 #define _LATC0 0x01
952 #define _LATC1 0x02
953 #define _LATC2 0x04
954 #define _LATC3 0x08
955 #define _LATC4 0x10
956 #define _LATC5 0x20
957 #define _LATC6 0x40
958 #define _LATC7 0x80
960 //==============================================================================
963 //==============================================================================
964 // TMR0 Bits
966 extern __at(0x001C) __sfr TMR0;
968 typedef struct
970 unsigned TMR0L0 : 1;
971 unsigned TMR0L1 : 1;
972 unsigned TMR0L2 : 1;
973 unsigned TMR0L3 : 1;
974 unsigned TMR0L4 : 1;
975 unsigned TMR0L5 : 1;
976 unsigned TMR0L6 : 1;
977 unsigned TMR0L7 : 1;
978 } __TMR0bits_t;
980 extern __at(0x001C) volatile __TMR0bits_t TMR0bits;
982 #define _TMR0L0 0x01
983 #define _TMR0L1 0x02
984 #define _TMR0L2 0x04
985 #define _TMR0L3 0x08
986 #define _TMR0L4 0x10
987 #define _TMR0L5 0x20
988 #define _TMR0L6 0x40
989 #define _TMR0L7 0x80
991 //==============================================================================
994 //==============================================================================
995 // TMR0L Bits
997 extern __at(0x001C) __sfr TMR0L;
999 typedef struct
1001 unsigned TMR0L0 : 1;
1002 unsigned TMR0L1 : 1;
1003 unsigned TMR0L2 : 1;
1004 unsigned TMR0L3 : 1;
1005 unsigned TMR0L4 : 1;
1006 unsigned TMR0L5 : 1;
1007 unsigned TMR0L6 : 1;
1008 unsigned TMR0L7 : 1;
1009 } __TMR0Lbits_t;
1011 extern __at(0x001C) volatile __TMR0Lbits_t TMR0Lbits;
1013 #define _TMR0L_TMR0L0 0x01
1014 #define _TMR0L_TMR0L1 0x02
1015 #define _TMR0L_TMR0L2 0x04
1016 #define _TMR0L_TMR0L3 0x08
1017 #define _TMR0L_TMR0L4 0x10
1018 #define _TMR0L_TMR0L5 0x20
1019 #define _TMR0L_TMR0L6 0x40
1020 #define _TMR0L_TMR0L7 0x80
1022 //==============================================================================
1025 //==============================================================================
1026 // PR0 Bits
1028 extern __at(0x001D) __sfr PR0;
1030 typedef union
1032 struct
1034 unsigned TMR0H0 : 1;
1035 unsigned TMR0H1 : 1;
1036 unsigned TMR0H2 : 1;
1037 unsigned TMR0H3 : 1;
1038 unsigned TMR0H4 : 1;
1039 unsigned TMR0H5 : 1;
1040 unsigned TMR0H6 : 1;
1041 unsigned TMR0H7 : 1;
1044 struct
1046 unsigned T0PR0 : 1;
1047 unsigned T0PR1 : 1;
1048 unsigned T0PR2 : 1;
1049 unsigned T0PR3 : 1;
1050 unsigned T0PR4 : 1;
1051 unsigned T0PR5 : 1;
1052 unsigned T0PR6 : 1;
1053 unsigned T0PR7 : 1;
1055 } __PR0bits_t;
1057 extern __at(0x001D) volatile __PR0bits_t PR0bits;
1059 #define _TMR0H0 0x01
1060 #define _T0PR0 0x01
1061 #define _TMR0H1 0x02
1062 #define _T0PR1 0x02
1063 #define _TMR0H2 0x04
1064 #define _T0PR2 0x04
1065 #define _TMR0H3 0x08
1066 #define _T0PR3 0x08
1067 #define _TMR0H4 0x10
1068 #define _T0PR4 0x10
1069 #define _TMR0H5 0x20
1070 #define _T0PR5 0x20
1071 #define _TMR0H6 0x40
1072 #define _T0PR6 0x40
1073 #define _TMR0H7 0x80
1074 #define _T0PR7 0x80
1076 //==============================================================================
1079 //==============================================================================
1080 // TMR0H Bits
1082 extern __at(0x001D) __sfr TMR0H;
1084 typedef union
1086 struct
1088 unsigned TMR0H0 : 1;
1089 unsigned TMR0H1 : 1;
1090 unsigned TMR0H2 : 1;
1091 unsigned TMR0H3 : 1;
1092 unsigned TMR0H4 : 1;
1093 unsigned TMR0H5 : 1;
1094 unsigned TMR0H6 : 1;
1095 unsigned TMR0H7 : 1;
1098 struct
1100 unsigned T0PR0 : 1;
1101 unsigned T0PR1 : 1;
1102 unsigned T0PR2 : 1;
1103 unsigned T0PR3 : 1;
1104 unsigned T0PR4 : 1;
1105 unsigned T0PR5 : 1;
1106 unsigned T0PR6 : 1;
1107 unsigned T0PR7 : 1;
1109 } __TMR0Hbits_t;
1111 extern __at(0x001D) volatile __TMR0Hbits_t TMR0Hbits;
1113 #define _TMR0H_TMR0H0 0x01
1114 #define _TMR0H_T0PR0 0x01
1115 #define _TMR0H_TMR0H1 0x02
1116 #define _TMR0H_T0PR1 0x02
1117 #define _TMR0H_TMR0H2 0x04
1118 #define _TMR0H_T0PR2 0x04
1119 #define _TMR0H_TMR0H3 0x08
1120 #define _TMR0H_T0PR3 0x08
1121 #define _TMR0H_TMR0H4 0x10
1122 #define _TMR0H_T0PR4 0x10
1123 #define _TMR0H_TMR0H5 0x20
1124 #define _TMR0H_T0PR5 0x20
1125 #define _TMR0H_TMR0H6 0x40
1126 #define _TMR0H_T0PR6 0x40
1127 #define _TMR0H_TMR0H7 0x80
1128 #define _TMR0H_T0PR7 0x80
1130 //==============================================================================
1133 //==============================================================================
1134 // T0CON0 Bits
1136 extern __at(0x001E) __sfr T0CON0;
1138 typedef union
1140 struct
1142 unsigned T0OUTPS0 : 1;
1143 unsigned T0OUTPS1 : 1;
1144 unsigned T0OUTPS2 : 1;
1145 unsigned T0OUTPS3 : 1;
1146 unsigned T016BIT : 1;
1147 unsigned T0OUT : 1;
1148 unsigned : 1;
1149 unsigned T0EN : 1;
1152 struct
1154 unsigned T0OUTPS : 4;
1155 unsigned : 4;
1157 } __T0CON0bits_t;
1159 extern __at(0x001E) volatile __T0CON0bits_t T0CON0bits;
1161 #define _T0OUTPS0 0x01
1162 #define _T0OUTPS1 0x02
1163 #define _T0OUTPS2 0x04
1164 #define _T0OUTPS3 0x08
1165 #define _T016BIT 0x10
1166 #define _T0OUT 0x20
1167 #define _T0EN 0x80
1169 //==============================================================================
1172 //==============================================================================
1173 // T0CON1 Bits
1175 extern __at(0x001F) __sfr T0CON1;
1177 typedef union
1179 struct
1181 unsigned T0CKPS0 : 1;
1182 unsigned T0CKPS1 : 1;
1183 unsigned T0CKPS2 : 1;
1184 unsigned T0CKPS3 : 1;
1185 unsigned T0ASYNC : 1;
1186 unsigned T0CS0 : 1;
1187 unsigned T0CS1 : 1;
1188 unsigned T0CS2 : 1;
1191 struct
1193 unsigned T0PS0 : 1;
1194 unsigned T0PS1 : 1;
1195 unsigned T0PS2 : 1;
1196 unsigned T0PS3 : 1;
1197 unsigned : 1;
1198 unsigned : 1;
1199 unsigned : 1;
1200 unsigned : 1;
1203 struct
1205 unsigned T0CKPS : 4;
1206 unsigned : 4;
1209 struct
1211 unsigned T0PS : 4;
1212 unsigned : 4;
1215 struct
1217 unsigned : 5;
1218 unsigned T0CS : 3;
1220 } __T0CON1bits_t;
1222 extern __at(0x001F) volatile __T0CON1bits_t T0CON1bits;
1224 #define _T0CKPS0 0x01
1225 #define _T0PS0 0x01
1226 #define _T0CKPS1 0x02
1227 #define _T0PS1 0x02
1228 #define _T0CKPS2 0x04
1229 #define _T0PS2 0x04
1230 #define _T0CKPS3 0x08
1231 #define _T0PS3 0x08
1232 #define _T0ASYNC 0x10
1233 #define _T0CS0 0x20
1234 #define _T0CS1 0x40
1235 #define _T0CS2 0x80
1237 //==============================================================================
1239 extern __at(0x008C) __sfr ADRES;
1240 extern __at(0x008C) __sfr ADRESL;
1241 extern __at(0x008D) __sfr ADRESH;
1242 extern __at(0x008E) __sfr ADPREV;
1244 //==============================================================================
1245 // ADPREVL Bits
1247 extern __at(0x008E) __sfr ADPREVL;
1249 typedef struct
1251 unsigned ADPREV0 : 1;
1252 unsigned ADPREV1 : 1;
1253 unsigned ADPREV2 : 1;
1254 unsigned ADPREV3 : 1;
1255 unsigned ADPREV4 : 1;
1256 unsigned ADPREV5 : 1;
1257 unsigned ADPREV6 : 1;
1258 unsigned ADPREV7 : 1;
1259 } __ADPREVLbits_t;
1261 extern __at(0x008E) volatile __ADPREVLbits_t ADPREVLbits;
1263 #define _ADPREV0 0x01
1264 #define _ADPREV1 0x02
1265 #define _ADPREV2 0x04
1266 #define _ADPREV3 0x08
1267 #define _ADPREV4 0x10
1268 #define _ADPREV5 0x20
1269 #define _ADPREV6 0x40
1270 #define _ADPREV7 0x80
1272 //==============================================================================
1275 //==============================================================================
1276 // ADPREVH Bits
1278 extern __at(0x008F) __sfr ADPREVH;
1280 typedef struct
1282 unsigned ADPREV8 : 1;
1283 unsigned ADPREV9 : 1;
1284 unsigned ADPREV10 : 1;
1285 unsigned ADPREV11 : 1;
1286 unsigned ADPREV12 : 1;
1287 unsigned ADPREV13 : 1;
1288 unsigned ADPREV14 : 1;
1289 unsigned ADPREV15 : 1;
1290 } __ADPREVHbits_t;
1292 extern __at(0x008F) volatile __ADPREVHbits_t ADPREVHbits;
1294 #define _ADPREV8 0x01
1295 #define _ADPREV9 0x02
1296 #define _ADPREV10 0x04
1297 #define _ADPREV11 0x08
1298 #define _ADPREV12 0x10
1299 #define _ADPREV13 0x20
1300 #define _ADPREV14 0x40
1301 #define _ADPREV15 0x80
1303 //==============================================================================
1305 extern __at(0x0090) __sfr ADACC;
1307 //==============================================================================
1308 // ADACCL Bits
1310 extern __at(0x0090) __sfr ADACCL;
1312 typedef struct
1314 unsigned ADACC0 : 1;
1315 unsigned ADACC1 : 1;
1316 unsigned ADACC2 : 1;
1317 unsigned ADACC3 : 1;
1318 unsigned ADACC4 : 1;
1319 unsigned ADACC5 : 1;
1320 unsigned ADACC6 : 1;
1321 unsigned ADACC7 : 1;
1322 } __ADACCLbits_t;
1324 extern __at(0x0090) volatile __ADACCLbits_t ADACCLbits;
1326 #define _ADACC0 0x01
1327 #define _ADACC1 0x02
1328 #define _ADACC2 0x04
1329 #define _ADACC3 0x08
1330 #define _ADACC4 0x10
1331 #define _ADACC5 0x20
1332 #define _ADACC6 0x40
1333 #define _ADACC7 0x80
1335 //==============================================================================
1338 //==============================================================================
1339 // ADACCH Bits
1341 extern __at(0x0091) __sfr ADACCH;
1343 typedef struct
1345 unsigned ADACC8 : 1;
1346 unsigned ADACC9 : 1;
1347 unsigned ADACC10 : 1;
1348 unsigned ADACC11 : 1;
1349 unsigned ADACC12 : 1;
1350 unsigned ADACC13 : 1;
1351 unsigned ADACC14 : 1;
1352 unsigned ADACC15 : 1;
1353 } __ADACCHbits_t;
1355 extern __at(0x0091) volatile __ADACCHbits_t ADACCHbits;
1357 #define _ADACC8 0x01
1358 #define _ADACC9 0x02
1359 #define _ADACC10 0x04
1360 #define _ADACC11 0x08
1361 #define _ADACC12 0x10
1362 #define _ADACC13 0x20
1363 #define _ADACC14 0x40
1364 #define _ADACC15 0x80
1366 //==============================================================================
1369 //==============================================================================
1370 // ADCON0 Bits
1372 extern __at(0x0093) __sfr ADCON0;
1374 typedef union
1376 struct
1378 unsigned ADGO : 1;
1379 unsigned : 1;
1380 unsigned ADFM0 : 1;
1381 unsigned ADFM1 : 1;
1382 unsigned ADCS : 1;
1383 unsigned : 1;
1384 unsigned ADCONT : 1;
1385 unsigned ADON : 1;
1388 struct
1390 unsigned DONE : 1;
1391 unsigned : 1;
1392 unsigned : 1;
1393 unsigned : 1;
1394 unsigned : 1;
1395 unsigned : 1;
1396 unsigned : 1;
1397 unsigned : 1;
1400 struct
1402 unsigned NOT_DONE : 1;
1403 unsigned : 1;
1404 unsigned : 1;
1405 unsigned : 1;
1406 unsigned : 1;
1407 unsigned : 1;
1408 unsigned : 1;
1409 unsigned : 1;
1412 struct
1414 unsigned GO : 1;
1415 unsigned : 1;
1416 unsigned : 1;
1417 unsigned : 1;
1418 unsigned : 1;
1419 unsigned : 1;
1420 unsigned : 1;
1421 unsigned : 1;
1424 struct
1426 unsigned GO_NOT_DONE : 1;
1427 unsigned : 1;
1428 unsigned : 1;
1429 unsigned : 1;
1430 unsigned : 1;
1431 unsigned : 1;
1432 unsigned : 1;
1433 unsigned : 1;
1436 struct
1438 unsigned : 2;
1439 unsigned ADFM : 2;
1440 unsigned : 4;
1442 } __ADCON0bits_t;
1444 extern __at(0x0093) volatile __ADCON0bits_t ADCON0bits;
1446 #define _ADGO 0x01
1447 #define _DONE 0x01
1448 #define _NOT_DONE 0x01
1449 #define _GO 0x01
1450 #define _GO_NOT_DONE 0x01
1451 #define _ADFM0 0x04
1452 #define _ADFM1 0x08
1453 #define _ADCS 0x10
1454 #define _ADCONT 0x40
1455 #define _ADON 0x80
1457 //==============================================================================
1460 //==============================================================================
1461 // ADCON1 Bits
1463 extern __at(0x0094) __sfr ADCON1;
1465 typedef struct
1467 unsigned ADDSEN : 1;
1468 unsigned : 1;
1469 unsigned : 1;
1470 unsigned : 1;
1471 unsigned : 1;
1472 unsigned ADGPOL : 1;
1473 unsigned ADIPEN : 1;
1474 unsigned ADPPOL : 1;
1475 } __ADCON1bits_t;
1477 extern __at(0x0094) volatile __ADCON1bits_t ADCON1bits;
1479 #define _ADDSEN 0x01
1480 #define _ADGPOL 0x20
1481 #define _ADIPEN 0x40
1482 #define _ADPPOL 0x80
1484 //==============================================================================
1487 //==============================================================================
1488 // ADCON2 Bits
1490 extern __at(0x0095) __sfr ADCON2;
1492 typedef union
1494 struct
1496 unsigned ADMD0 : 1;
1497 unsigned ADMD1 : 1;
1498 unsigned ADMD2 : 1;
1499 unsigned ADACLR : 1;
1500 unsigned ADCRS0 : 1;
1501 unsigned ADCRS1 : 1;
1502 unsigned ADCRS2 : 1;
1503 unsigned ADPSIS : 1;
1506 struct
1508 unsigned ADMD : 3;
1509 unsigned : 5;
1512 struct
1514 unsigned : 4;
1515 unsigned ADCRS : 3;
1516 unsigned : 1;
1518 } __ADCON2bits_t;
1520 extern __at(0x0095) volatile __ADCON2bits_t ADCON2bits;
1522 #define _ADMD0 0x01
1523 #define _ADMD1 0x02
1524 #define _ADMD2 0x04
1525 #define _ADACLR 0x08
1526 #define _ADCRS0 0x10
1527 #define _ADCRS1 0x20
1528 #define _ADCRS2 0x40
1529 #define _ADPSIS 0x80
1531 //==============================================================================
1534 //==============================================================================
1535 // ADCON3 Bits
1537 extern __at(0x0096) __sfr ADCON3;
1539 typedef union
1541 struct
1543 unsigned ADTMD0 : 1;
1544 unsigned ADTMD1 : 1;
1545 unsigned ADTMD2 : 1;
1546 unsigned ADSOI : 1;
1547 unsigned ADCALC0 : 1;
1548 unsigned ADCALC1 : 1;
1549 unsigned ADCALC2 : 1;
1550 unsigned : 1;
1553 struct
1555 unsigned ADTMD : 3;
1556 unsigned : 5;
1559 struct
1561 unsigned : 4;
1562 unsigned ADCALC : 3;
1563 unsigned : 1;
1565 } __ADCON3bits_t;
1567 extern __at(0x0096) volatile __ADCON3bits_t ADCON3bits;
1569 #define _ADTMD0 0x01
1570 #define _ADTMD1 0x02
1571 #define _ADTMD2 0x04
1572 #define _ADSOI 0x08
1573 #define _ADCALC0 0x10
1574 #define _ADCALC1 0x20
1575 #define _ADCALC2 0x40
1577 //==============================================================================
1580 //==============================================================================
1581 // ADSTAT Bits
1583 extern __at(0x0097) __sfr ADSTAT;
1585 typedef union
1587 struct
1589 unsigned ADSTAT0 : 1;
1590 unsigned ADSTAT1 : 1;
1591 unsigned ADSTAT2 : 1;
1592 unsigned ADMACT : 1;
1593 unsigned ADMATH : 1;
1594 unsigned ADLTHR : 1;
1595 unsigned ADUTHR : 1;
1596 unsigned ADAOV : 1;
1599 struct
1601 unsigned ADSTAT : 3;
1602 unsigned : 5;
1604 } __ADSTATbits_t;
1606 extern __at(0x0097) volatile __ADSTATbits_t ADSTATbits;
1608 #define _ADSTAT0 0x01
1609 #define _ADSTAT1 0x02
1610 #define _ADSTAT2 0x04
1611 #define _ADMACT 0x08
1612 #define _ADMATH 0x10
1613 #define _ADLTHR 0x20
1614 #define _ADUTHR 0x40
1615 #define _ADAOV 0x80
1617 //==============================================================================
1620 //==============================================================================
1621 // ADCLK Bits
1623 extern __at(0x0098) __sfr ADCLK;
1625 typedef union
1627 struct
1629 unsigned ADCCS0 : 1;
1630 unsigned ADCCS1 : 1;
1631 unsigned ADCCS2 : 1;
1632 unsigned ADCCS3 : 1;
1633 unsigned ADCCS4 : 1;
1634 unsigned ADCCS5 : 1;
1635 unsigned : 1;
1636 unsigned : 1;
1639 struct
1641 unsigned ADCCS : 6;
1642 unsigned : 2;
1644 } __ADCLKbits_t;
1646 extern __at(0x0098) volatile __ADCLKbits_t ADCLKbits;
1648 #define _ADCCS0 0x01
1649 #define _ADCCS1 0x02
1650 #define _ADCCS2 0x04
1651 #define _ADCCS3 0x08
1652 #define _ADCCS4 0x10
1653 #define _ADCCS5 0x20
1655 //==============================================================================
1658 //==============================================================================
1659 // ADACT Bits
1661 extern __at(0x0099) __sfr ADACT;
1663 typedef union
1665 struct
1667 unsigned ADACT0 : 1;
1668 unsigned ADACT1 : 1;
1669 unsigned ADACT2 : 1;
1670 unsigned ADACT3 : 1;
1671 unsigned ADACT4 : 1;
1672 unsigned : 1;
1673 unsigned : 1;
1674 unsigned : 1;
1677 struct
1679 unsigned ADACT : 5;
1680 unsigned : 3;
1682 } __ADACTbits_t;
1684 extern __at(0x0099) volatile __ADACTbits_t ADACTbits;
1686 #define _ADACT0 0x01
1687 #define _ADACT1 0x02
1688 #define _ADACT2 0x04
1689 #define _ADACT3 0x08
1690 #define _ADACT4 0x10
1692 //==============================================================================
1695 //==============================================================================
1696 // ADREF Bits
1698 extern __at(0x009A) __sfr ADREF;
1700 typedef union
1702 struct
1704 unsigned ADPREF0 : 1;
1705 unsigned ADPREF1 : 1;
1706 unsigned : 1;
1707 unsigned : 1;
1708 unsigned ADNREF : 1;
1709 unsigned : 1;
1710 unsigned : 1;
1711 unsigned : 1;
1714 struct
1716 unsigned ADPREF : 2;
1717 unsigned : 6;
1719 } __ADREFbits_t;
1721 extern __at(0x009A) volatile __ADREFbits_t ADREFbits;
1723 #define _ADPREF0 0x01
1724 #define _ADPREF1 0x02
1725 #define _ADNREF 0x10
1727 //==============================================================================
1730 //==============================================================================
1731 // ADCAP Bits
1733 extern __at(0x009B) __sfr ADCAP;
1735 typedef union
1737 struct
1739 unsigned ADCAP0 : 1;
1740 unsigned ADCAP1 : 1;
1741 unsigned ADCAP2 : 1;
1742 unsigned ADCAP3 : 1;
1743 unsigned ADCAP4 : 1;
1744 unsigned : 1;
1745 unsigned : 1;
1746 unsigned : 1;
1749 struct
1751 unsigned ADCAP : 5;
1752 unsigned : 3;
1754 } __ADCAPbits_t;
1756 extern __at(0x009B) volatile __ADCAPbits_t ADCAPbits;
1758 #define _ADCAP0 0x01
1759 #define _ADCAP1 0x02
1760 #define _ADCAP2 0x04
1761 #define _ADCAP3 0x08
1762 #define _ADCAP4 0x10
1764 //==============================================================================
1767 //==============================================================================
1768 // ADPRE Bits
1770 extern __at(0x009C) __sfr ADPRE;
1772 typedef struct
1774 unsigned ADPRE0 : 1;
1775 unsigned ADPRE1 : 1;
1776 unsigned ADPRE2 : 1;
1777 unsigned ADPRE3 : 1;
1778 unsigned ADPRE4 : 1;
1779 unsigned ADPRE5 : 1;
1780 unsigned ADPRE6 : 1;
1781 unsigned ADPRE7 : 1;
1782 } __ADPREbits_t;
1784 extern __at(0x009C) volatile __ADPREbits_t ADPREbits;
1786 #define _ADPRE0 0x01
1787 #define _ADPRE1 0x02
1788 #define _ADPRE2 0x04
1789 #define _ADPRE3 0x08
1790 #define _ADPRE4 0x10
1791 #define _ADPRE5 0x20
1792 #define _ADPRE6 0x40
1793 #define _ADPRE7 0x80
1795 //==============================================================================
1798 //==============================================================================
1799 // ADACQ Bits
1801 extern __at(0x009D) __sfr ADACQ;
1803 typedef struct
1805 unsigned ADACQ0 : 1;
1806 unsigned ADACQ1 : 1;
1807 unsigned ADACQ2 : 1;
1808 unsigned ADACQ3 : 1;
1809 unsigned ADACQ4 : 1;
1810 unsigned ADACQ5 : 1;
1811 unsigned ADACQ6 : 1;
1812 unsigned ADACQ7 : 1;
1813 } __ADACQbits_t;
1815 extern __at(0x009D) volatile __ADACQbits_t ADACQbits;
1817 #define _ADACQ0 0x01
1818 #define _ADACQ1 0x02
1819 #define _ADACQ2 0x04
1820 #define _ADACQ3 0x08
1821 #define _ADACQ4 0x10
1822 #define _ADACQ5 0x20
1823 #define _ADACQ6 0x40
1824 #define _ADACQ7 0x80
1826 //==============================================================================
1829 //==============================================================================
1830 // ADPCH Bits
1832 extern __at(0x009E) __sfr ADPCH;
1834 typedef union
1836 struct
1838 unsigned ADPCH0 : 1;
1839 unsigned ADPCH1 : 1;
1840 unsigned ADPCH2 : 1;
1841 unsigned ADPCH3 : 1;
1842 unsigned ADPCH4 : 1;
1843 unsigned ADPCH5 : 1;
1844 unsigned : 1;
1845 unsigned : 1;
1848 struct
1850 unsigned ADPCH : 6;
1851 unsigned : 2;
1853 } __ADPCHbits_t;
1855 extern __at(0x009E) volatile __ADPCHbits_t ADPCHbits;
1857 #define _ADPCH0 0x01
1858 #define _ADPCH1 0x02
1859 #define _ADPCH2 0x04
1860 #define _ADPCH3 0x08
1861 #define _ADPCH4 0x10
1862 #define _ADPCH5 0x20
1864 //==============================================================================
1867 //==============================================================================
1868 // ADCNT Bits
1870 extern __at(0x010C) __sfr ADCNT;
1872 typedef struct
1874 unsigned ADCNT0 : 1;
1875 unsigned ADCNT1 : 1;
1876 unsigned ADCNT2 : 1;
1877 unsigned ADCNT3 : 1;
1878 unsigned ADCNT4 : 1;
1879 unsigned ADCNT5 : 1;
1880 unsigned ADCNT6 : 1;
1881 unsigned ADCNT7 : 1;
1882 } __ADCNTbits_t;
1884 extern __at(0x010C) volatile __ADCNTbits_t ADCNTbits;
1886 #define _ADCNT0 0x01
1887 #define _ADCNT1 0x02
1888 #define _ADCNT2 0x04
1889 #define _ADCNT3 0x08
1890 #define _ADCNT4 0x10
1891 #define _ADCNT5 0x20
1892 #define _ADCNT6 0x40
1893 #define _ADCNT7 0x80
1895 //==============================================================================
1898 //==============================================================================
1899 // ADRPT Bits
1901 extern __at(0x010D) __sfr ADRPT;
1903 typedef struct
1905 unsigned ADRPT0 : 1;
1906 unsigned ADRPT1 : 1;
1907 unsigned ADRPT2 : 1;
1908 unsigned ADRPT3 : 1;
1909 unsigned ADRPT4 : 1;
1910 unsigned ADRPT5 : 1;
1911 unsigned ADRPT6 : 1;
1912 unsigned ADRPT7 : 1;
1913 } __ADRPTbits_t;
1915 extern __at(0x010D) volatile __ADRPTbits_t ADRPTbits;
1917 #define _ADRPT0 0x01
1918 #define _ADRPT1 0x02
1919 #define _ADRPT2 0x04
1920 #define _ADRPT3 0x08
1921 #define _ADRPT4 0x10
1922 #define _ADRPT5 0x20
1923 #define _ADRPT6 0x40
1924 #define _ADRPT7 0x80
1926 //==============================================================================
1928 extern __at(0x010E) __sfr ADLTH;
1930 //==============================================================================
1931 // ADLTHL Bits
1933 extern __at(0x010E) __sfr ADLTHL;
1935 typedef struct
1937 unsigned ADLTH0 : 1;
1938 unsigned ADLTH1 : 1;
1939 unsigned ADLTH2 : 1;
1940 unsigned ADLTH3 : 1;
1941 unsigned ADLTH4 : 1;
1942 unsigned ADLTH5 : 1;
1943 unsigned ADLTH6 : 1;
1944 unsigned ADLTH7 : 1;
1945 } __ADLTHLbits_t;
1947 extern __at(0x010E) volatile __ADLTHLbits_t ADLTHLbits;
1949 #define _ADLTH0 0x01
1950 #define _ADLTH1 0x02
1951 #define _ADLTH2 0x04
1952 #define _ADLTH3 0x08
1953 #define _ADLTH4 0x10
1954 #define _ADLTH5 0x20
1955 #define _ADLTH6 0x40
1956 #define _ADLTH7 0x80
1958 //==============================================================================
1961 //==============================================================================
1962 // ADLTHH Bits
1964 extern __at(0x010F) __sfr ADLTHH;
1966 typedef struct
1968 unsigned ADLTH8 : 1;
1969 unsigned ADLTH9 : 1;
1970 unsigned ADLTH10 : 1;
1971 unsigned ADLTH11 : 1;
1972 unsigned ADLTH12 : 1;
1973 unsigned ADLTH13 : 1;
1974 unsigned ADLTH14 : 1;
1975 unsigned ADLTH15 : 1;
1976 } __ADLTHHbits_t;
1978 extern __at(0x010F) volatile __ADLTHHbits_t ADLTHHbits;
1980 #define _ADLTH8 0x01
1981 #define _ADLTH9 0x02
1982 #define _ADLTH10 0x04
1983 #define _ADLTH11 0x08
1984 #define _ADLTH12 0x10
1985 #define _ADLTH13 0x20
1986 #define _ADLTH14 0x40
1987 #define _ADLTH15 0x80
1989 //==============================================================================
1991 extern __at(0x0110) __sfr ADUTH;
1993 //==============================================================================
1994 // ADUTHL Bits
1996 extern __at(0x0110) __sfr ADUTHL;
1998 typedef struct
2000 unsigned ADUTH0 : 1;
2001 unsigned ADUTH1 : 1;
2002 unsigned ADUTH2 : 1;
2003 unsigned ADUTH3 : 1;
2004 unsigned ADUTH4 : 1;
2005 unsigned ADUTH5 : 1;
2006 unsigned ADUTH6 : 1;
2007 unsigned ADUTH7 : 1;
2008 } __ADUTHLbits_t;
2010 extern __at(0x0110) volatile __ADUTHLbits_t ADUTHLbits;
2012 #define _ADUTH0 0x01
2013 #define _ADUTH1 0x02
2014 #define _ADUTH2 0x04
2015 #define _ADUTH3 0x08
2016 #define _ADUTH4 0x10
2017 #define _ADUTH5 0x20
2018 #define _ADUTH6 0x40
2019 #define _ADUTH7 0x80
2021 //==============================================================================
2024 //==============================================================================
2025 // ADUTHH Bits
2027 extern __at(0x0111) __sfr ADUTHH;
2029 typedef struct
2031 unsigned ADUTH8 : 1;
2032 unsigned ADUTH9 : 1;
2033 unsigned ADUTH10 : 1;
2034 unsigned ADUTH11 : 1;
2035 unsigned ADUTH12 : 1;
2036 unsigned ADUTH13 : 1;
2037 unsigned ADUTH14 : 1;
2038 unsigned ADUTH15 : 1;
2039 } __ADUTHHbits_t;
2041 extern __at(0x0111) volatile __ADUTHHbits_t ADUTHHbits;
2043 #define _ADUTH8 0x01
2044 #define _ADUTH9 0x02
2045 #define _ADUTH10 0x04
2046 #define _ADUTH11 0x08
2047 #define _ADUTH12 0x10
2048 #define _ADUTH13 0x20
2049 #define _ADUTH14 0x40
2050 #define _ADUTH15 0x80
2052 //==============================================================================
2054 extern __at(0x0112) __sfr ADSTPT;
2056 //==============================================================================
2057 // ADSTPTL Bits
2059 extern __at(0x0112) __sfr ADSTPTL;
2061 typedef struct
2063 unsigned ADSTPT0 : 1;
2064 unsigned ADSTPT1 : 1;
2065 unsigned ADSTPT2 : 1;
2066 unsigned ADSTPT3 : 1;
2067 unsigned ADSTPT4 : 1;
2068 unsigned ADSTPT5 : 1;
2069 unsigned ADSTPT6 : 1;
2070 unsigned ADSTPT7 : 1;
2071 } __ADSTPTLbits_t;
2073 extern __at(0x0112) volatile __ADSTPTLbits_t ADSTPTLbits;
2075 #define _ADSTPT0 0x01
2076 #define _ADSTPT1 0x02
2077 #define _ADSTPT2 0x04
2078 #define _ADSTPT3 0x08
2079 #define _ADSTPT4 0x10
2080 #define _ADSTPT5 0x20
2081 #define _ADSTPT6 0x40
2082 #define _ADSTPT7 0x80
2084 //==============================================================================
2087 //==============================================================================
2088 // ADSTPTH Bits
2090 extern __at(0x0113) __sfr ADSTPTH;
2092 typedef struct
2094 unsigned ADSTPT8 : 1;
2095 unsigned ADSTPT9 : 1;
2096 unsigned ADSTPT10 : 1;
2097 unsigned ADSTPT11 : 1;
2098 unsigned ADSTPT12 : 1;
2099 unsigned ADSTPT13 : 1;
2100 unsigned ADSTPT14 : 1;
2101 unsigned ADSTPT15 : 1;
2102 } __ADSTPTHbits_t;
2104 extern __at(0x0113) volatile __ADSTPTHbits_t ADSTPTHbits;
2106 #define _ADSTPT8 0x01
2107 #define _ADSTPT9 0x02
2108 #define _ADSTPT10 0x04
2109 #define _ADSTPT11 0x08
2110 #define _ADSTPT12 0x10
2111 #define _ADSTPT13 0x20
2112 #define _ADSTPT14 0x40
2113 #define _ADSTPT15 0x80
2115 //==============================================================================
2117 extern __at(0x0114) __sfr ADFLTR;
2119 //==============================================================================
2120 // ADFLTRL Bits
2122 extern __at(0x0114) __sfr ADFLTRL;
2124 typedef struct
2126 unsigned ADFLTR0 : 1;
2127 unsigned ADFLTR1 : 1;
2128 unsigned ADFLTR2 : 1;
2129 unsigned ADFLTR3 : 1;
2130 unsigned ADFLTR4 : 1;
2131 unsigned ADFLTR5 : 1;
2132 unsigned ADFLTR6 : 1;
2133 unsigned ADFLTR7 : 1;
2134 } __ADFLTRLbits_t;
2136 extern __at(0x0114) volatile __ADFLTRLbits_t ADFLTRLbits;
2138 #define _ADFLTR0 0x01
2139 #define _ADFLTR1 0x02
2140 #define _ADFLTR2 0x04
2141 #define _ADFLTR3 0x08
2142 #define _ADFLTR4 0x10
2143 #define _ADFLTR5 0x20
2144 #define _ADFLTR6 0x40
2145 #define _ADFLTR7 0x80
2147 //==============================================================================
2150 //==============================================================================
2151 // ADFLTRH Bits
2153 extern __at(0x0115) __sfr ADFLTRH;
2155 typedef struct
2157 unsigned ADFLTR8 : 1;
2158 unsigned ADFLTR9 : 1;
2159 unsigned ADFLTR10 : 1;
2160 unsigned ADFLTR11 : 1;
2161 unsigned ADFLTR12 : 1;
2162 unsigned ADFLTR13 : 1;
2163 unsigned ADFLTR14 : 1;
2164 unsigned ADFLTR15 : 1;
2165 } __ADFLTRHbits_t;
2167 extern __at(0x0115) volatile __ADFLTRHbits_t ADFLTRHbits;
2169 #define _ADFLTR8 0x01
2170 #define _ADFLTR9 0x02
2171 #define _ADFLTR10 0x04
2172 #define _ADFLTR11 0x08
2173 #define _ADFLTR12 0x10
2174 #define _ADFLTR13 0x20
2175 #define _ADFLTR14 0x40
2176 #define _ADFLTR15 0x80
2178 //==============================================================================
2180 extern __at(0x0116) __sfr ADERR;
2182 //==============================================================================
2183 // ADERRL Bits
2185 extern __at(0x0116) __sfr ADERRL;
2187 typedef struct
2189 unsigned ADERR0 : 1;
2190 unsigned ADERR1 : 1;
2191 unsigned ADERR2 : 1;
2192 unsigned ADERR3 : 1;
2193 unsigned ADERR4 : 1;
2194 unsigned ADERR5 : 1;
2195 unsigned ADERR6 : 1;
2196 unsigned ADERR7 : 1;
2197 } __ADERRLbits_t;
2199 extern __at(0x0116) volatile __ADERRLbits_t ADERRLbits;
2201 #define _ADERR0 0x01
2202 #define _ADERR1 0x02
2203 #define _ADERR2 0x04
2204 #define _ADERR3 0x08
2205 #define _ADERR4 0x10
2206 #define _ADERR5 0x20
2207 #define _ADERR6 0x40
2208 #define _ADERR7 0x80
2210 //==============================================================================
2213 //==============================================================================
2214 // ADERRH Bits
2216 extern __at(0x0117) __sfr ADERRH;
2218 typedef struct
2220 unsigned ADERR8 : 1;
2221 unsigned ADERR9 : 1;
2222 unsigned ADERR10 : 1;
2223 unsigned ADERR11 : 1;
2224 unsigned ADERR12 : 1;
2225 unsigned ADERR13 : 1;
2226 unsigned ADERR14 : 1;
2227 unsigned ADERR15 : 1;
2228 } __ADERRHbits_t;
2230 extern __at(0x0117) volatile __ADERRHbits_t ADERRHbits;
2232 #define _ADERR8 0x01
2233 #define _ADERR9 0x02
2234 #define _ADERR10 0x04
2235 #define _ADERR11 0x08
2236 #define _ADERR12 0x10
2237 #define _ADERR13 0x20
2238 #define _ADERR14 0x40
2239 #define _ADERR15 0x80
2241 //==============================================================================
2243 extern __at(0x0119) __sfr RC1REG;
2244 extern __at(0x0119) __sfr RCREG;
2245 extern __at(0x0119) __sfr RCREG1;
2246 extern __at(0x011A) __sfr TX1REG;
2247 extern __at(0x011A) __sfr TXREG;
2248 extern __at(0x011A) __sfr TXREG1;
2249 extern __at(0x011B) __sfr SP1BRG;
2250 extern __at(0x011B) __sfr SP1BRGL;
2251 extern __at(0x011B) __sfr SPBRG;
2252 extern __at(0x011B) __sfr SPBRG1;
2253 extern __at(0x011B) __sfr SPBRGL;
2254 extern __at(0x011C) __sfr SP1BRGH;
2255 extern __at(0x011C) __sfr SPBRGH;
2256 extern __at(0x011C) __sfr SPBRGH1;
2258 //==============================================================================
2259 // RC1STA Bits
2261 extern __at(0x011D) __sfr RC1STA;
2263 typedef struct
2265 unsigned RX9D : 1;
2266 unsigned OERR : 1;
2267 unsigned FERR : 1;
2268 unsigned ADDEN : 1;
2269 unsigned CREN : 1;
2270 unsigned SREN : 1;
2271 unsigned RX9 : 1;
2272 unsigned SPEN : 1;
2273 } __RC1STAbits_t;
2275 extern __at(0x011D) volatile __RC1STAbits_t RC1STAbits;
2277 #define _RX9D 0x01
2278 #define _OERR 0x02
2279 #define _FERR 0x04
2280 #define _ADDEN 0x08
2281 #define _CREN 0x10
2282 #define _SREN 0x20
2283 #define _RX9 0x40
2284 #define _SPEN 0x80
2286 //==============================================================================
2289 //==============================================================================
2290 // RCSTA Bits
2292 extern __at(0x011D) __sfr RCSTA;
2294 typedef struct
2296 unsigned RX9D : 1;
2297 unsigned OERR : 1;
2298 unsigned FERR : 1;
2299 unsigned ADDEN : 1;
2300 unsigned CREN : 1;
2301 unsigned SREN : 1;
2302 unsigned RX9 : 1;
2303 unsigned SPEN : 1;
2304 } __RCSTAbits_t;
2306 extern __at(0x011D) volatile __RCSTAbits_t RCSTAbits;
2308 #define _RCSTA_RX9D 0x01
2309 #define _RCSTA_OERR 0x02
2310 #define _RCSTA_FERR 0x04
2311 #define _RCSTA_ADDEN 0x08
2312 #define _RCSTA_CREN 0x10
2313 #define _RCSTA_SREN 0x20
2314 #define _RCSTA_RX9 0x40
2315 #define _RCSTA_SPEN 0x80
2317 //==============================================================================
2320 //==============================================================================
2321 // RCSTA1 Bits
2323 extern __at(0x011D) __sfr RCSTA1;
2325 typedef struct
2327 unsigned RX9D : 1;
2328 unsigned OERR : 1;
2329 unsigned FERR : 1;
2330 unsigned ADDEN : 1;
2331 unsigned CREN : 1;
2332 unsigned SREN : 1;
2333 unsigned RX9 : 1;
2334 unsigned SPEN : 1;
2335 } __RCSTA1bits_t;
2337 extern __at(0x011D) volatile __RCSTA1bits_t RCSTA1bits;
2339 #define _RCSTA1_RX9D 0x01
2340 #define _RCSTA1_OERR 0x02
2341 #define _RCSTA1_FERR 0x04
2342 #define _RCSTA1_ADDEN 0x08
2343 #define _RCSTA1_CREN 0x10
2344 #define _RCSTA1_SREN 0x20
2345 #define _RCSTA1_RX9 0x40
2346 #define _RCSTA1_SPEN 0x80
2348 //==============================================================================
2351 //==============================================================================
2352 // TX1STA Bits
2354 extern __at(0x011E) __sfr TX1STA;
2356 typedef struct
2358 unsigned TX9D : 1;
2359 unsigned TRMT : 1;
2360 unsigned BRGH : 1;
2361 unsigned SENDB : 1;
2362 unsigned SYNC : 1;
2363 unsigned TXEN : 1;
2364 unsigned TX9 : 1;
2365 unsigned CSRC : 1;
2366 } __TX1STAbits_t;
2368 extern __at(0x011E) volatile __TX1STAbits_t TX1STAbits;
2370 #define _TX1STA_TX9D 0x01
2371 #define _TX1STA_TRMT 0x02
2372 #define _TX1STA_BRGH 0x04
2373 #define _TX1STA_SENDB 0x08
2374 #define _TX1STA_SYNC 0x10
2375 #define _TX1STA_TXEN 0x20
2376 #define _TX1STA_TX9 0x40
2377 #define _TX1STA_CSRC 0x80
2379 //==============================================================================
2382 //==============================================================================
2383 // TXSTA Bits
2385 extern __at(0x011E) __sfr TXSTA;
2387 typedef struct
2389 unsigned TX9D : 1;
2390 unsigned TRMT : 1;
2391 unsigned BRGH : 1;
2392 unsigned SENDB : 1;
2393 unsigned SYNC : 1;
2394 unsigned TXEN : 1;
2395 unsigned TX9 : 1;
2396 unsigned CSRC : 1;
2397 } __TXSTAbits_t;
2399 extern __at(0x011E) volatile __TXSTAbits_t TXSTAbits;
2401 #define _TXSTA_TX9D 0x01
2402 #define _TXSTA_TRMT 0x02
2403 #define _TXSTA_BRGH 0x04
2404 #define _TXSTA_SENDB 0x08
2405 #define _TXSTA_SYNC 0x10
2406 #define _TXSTA_TXEN 0x20
2407 #define _TXSTA_TX9 0x40
2408 #define _TXSTA_CSRC 0x80
2410 //==============================================================================
2413 //==============================================================================
2414 // TXSTA1 Bits
2416 extern __at(0x011E) __sfr TXSTA1;
2418 typedef struct
2420 unsigned TX9D : 1;
2421 unsigned TRMT : 1;
2422 unsigned BRGH : 1;
2423 unsigned SENDB : 1;
2424 unsigned SYNC : 1;
2425 unsigned TXEN : 1;
2426 unsigned TX9 : 1;
2427 unsigned CSRC : 1;
2428 } __TXSTA1bits_t;
2430 extern __at(0x011E) volatile __TXSTA1bits_t TXSTA1bits;
2432 #define _TXSTA1_TX9D 0x01
2433 #define _TXSTA1_TRMT 0x02
2434 #define _TXSTA1_BRGH 0x04
2435 #define _TXSTA1_SENDB 0x08
2436 #define _TXSTA1_SYNC 0x10
2437 #define _TXSTA1_TXEN 0x20
2438 #define _TXSTA1_TX9 0x40
2439 #define _TXSTA1_CSRC 0x80
2441 //==============================================================================
2444 //==============================================================================
2445 // BAUD1CON Bits
2447 extern __at(0x011F) __sfr BAUD1CON;
2449 typedef struct
2451 unsigned ABDEN : 1;
2452 unsigned WUE : 1;
2453 unsigned : 1;
2454 unsigned BRG16 : 1;
2455 unsigned SCKP : 1;
2456 unsigned : 1;
2457 unsigned RCIDL : 1;
2458 unsigned ABDOVF : 1;
2459 } __BAUD1CONbits_t;
2461 extern __at(0x011F) volatile __BAUD1CONbits_t BAUD1CONbits;
2463 #define _ABDEN 0x01
2464 #define _WUE 0x02
2465 #define _BRG16 0x08
2466 #define _SCKP 0x10
2467 #define _RCIDL 0x40
2468 #define _ABDOVF 0x80
2470 //==============================================================================
2473 //==============================================================================
2474 // BAUDCON Bits
2476 extern __at(0x011F) __sfr BAUDCON;
2478 typedef struct
2480 unsigned ABDEN : 1;
2481 unsigned WUE : 1;
2482 unsigned : 1;
2483 unsigned BRG16 : 1;
2484 unsigned SCKP : 1;
2485 unsigned : 1;
2486 unsigned RCIDL : 1;
2487 unsigned ABDOVF : 1;
2488 } __BAUDCONbits_t;
2490 extern __at(0x011F) volatile __BAUDCONbits_t BAUDCONbits;
2492 #define _BAUDCON_ABDEN 0x01
2493 #define _BAUDCON_WUE 0x02
2494 #define _BAUDCON_BRG16 0x08
2495 #define _BAUDCON_SCKP 0x10
2496 #define _BAUDCON_RCIDL 0x40
2497 #define _BAUDCON_ABDOVF 0x80
2499 //==============================================================================
2502 //==============================================================================
2503 // BAUDCON1 Bits
2505 extern __at(0x011F) __sfr BAUDCON1;
2507 typedef struct
2509 unsigned ABDEN : 1;
2510 unsigned WUE : 1;
2511 unsigned : 1;
2512 unsigned BRG16 : 1;
2513 unsigned SCKP : 1;
2514 unsigned : 1;
2515 unsigned RCIDL : 1;
2516 unsigned ABDOVF : 1;
2517 } __BAUDCON1bits_t;
2519 extern __at(0x011F) volatile __BAUDCON1bits_t BAUDCON1bits;
2521 #define _BAUDCON1_ABDEN 0x01
2522 #define _BAUDCON1_WUE 0x02
2523 #define _BAUDCON1_BRG16 0x08
2524 #define _BAUDCON1_SCKP 0x10
2525 #define _BAUDCON1_RCIDL 0x40
2526 #define _BAUDCON1_ABDOVF 0x80
2528 //==============================================================================
2531 //==============================================================================
2532 // BAUDCTL Bits
2534 extern __at(0x011F) __sfr BAUDCTL;
2536 typedef struct
2538 unsigned ABDEN : 1;
2539 unsigned WUE : 1;
2540 unsigned : 1;
2541 unsigned BRG16 : 1;
2542 unsigned SCKP : 1;
2543 unsigned : 1;
2544 unsigned RCIDL : 1;
2545 unsigned ABDOVF : 1;
2546 } __BAUDCTLbits_t;
2548 extern __at(0x011F) volatile __BAUDCTLbits_t BAUDCTLbits;
2550 #define _BAUDCTL_ABDEN 0x01
2551 #define _BAUDCTL_WUE 0x02
2552 #define _BAUDCTL_BRG16 0x08
2553 #define _BAUDCTL_SCKP 0x10
2554 #define _BAUDCTL_RCIDL 0x40
2555 #define _BAUDCTL_ABDOVF 0x80
2557 //==============================================================================
2560 //==============================================================================
2561 // BAUDCTL1 Bits
2563 extern __at(0x011F) __sfr BAUDCTL1;
2565 typedef struct
2567 unsigned ABDEN : 1;
2568 unsigned WUE : 1;
2569 unsigned : 1;
2570 unsigned BRG16 : 1;
2571 unsigned SCKP : 1;
2572 unsigned : 1;
2573 unsigned RCIDL : 1;
2574 unsigned ABDOVF : 1;
2575 } __BAUDCTL1bits_t;
2577 extern __at(0x011F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
2579 #define _BAUDCTL1_ABDEN 0x01
2580 #define _BAUDCTL1_WUE 0x02
2581 #define _BAUDCTL1_BRG16 0x08
2582 #define _BAUDCTL1_SCKP 0x10
2583 #define _BAUDCTL1_RCIDL 0x40
2584 #define _BAUDCTL1_ABDOVF 0x80
2586 //==============================================================================
2588 extern __at(0x018C) __sfr SSP1BUF;
2589 extern __at(0x018D) __sfr SSP1ADD;
2591 //==============================================================================
2592 // SSP1MSK Bits
2594 extern __at(0x018E) __sfr SSP1MSK;
2596 typedef struct
2598 unsigned MSK0 : 1;
2599 unsigned MSK1 : 1;
2600 unsigned MSK2 : 1;
2601 unsigned MSK3 : 1;
2602 unsigned MSK4 : 1;
2603 unsigned MSK5 : 1;
2604 unsigned MSK6 : 1;
2605 unsigned MSK7 : 1;
2606 } __SSP1MSKbits_t;
2608 extern __at(0x018E) volatile __SSP1MSKbits_t SSP1MSKbits;
2610 #define _MSK0 0x01
2611 #define _MSK1 0x02
2612 #define _MSK2 0x04
2613 #define _MSK3 0x08
2614 #define _MSK4 0x10
2615 #define _MSK5 0x20
2616 #define _MSK6 0x40
2617 #define _MSK7 0x80
2619 //==============================================================================
2622 //==============================================================================
2623 // SSP1STAT Bits
2625 extern __at(0x018F) __sfr SSP1STAT;
2627 typedef union
2629 struct
2631 unsigned BF : 1;
2632 unsigned UA : 1;
2633 unsigned R_NOT_W : 1;
2634 unsigned S : 1;
2635 unsigned P : 1;
2636 unsigned D_NOT_A : 1;
2637 unsigned CKE : 1;
2638 unsigned SMP : 1;
2641 struct
2643 unsigned : 1;
2644 unsigned : 1;
2645 unsigned R_W : 1;
2646 unsigned I2C_START : 1;
2647 unsigned I2C_STOP : 1;
2648 unsigned D_A : 1;
2649 unsigned : 1;
2650 unsigned : 1;
2653 struct
2655 unsigned : 1;
2656 unsigned : 1;
2657 unsigned NOT_W : 1;
2658 unsigned : 1;
2659 unsigned : 1;
2660 unsigned NOT_A : 1;
2661 unsigned : 1;
2662 unsigned : 1;
2665 struct
2667 unsigned : 1;
2668 unsigned : 1;
2669 unsigned NOT_WRITE : 1;
2670 unsigned : 1;
2671 unsigned : 1;
2672 unsigned NOT_ADDRESS : 1;
2673 unsigned : 1;
2674 unsigned : 1;
2677 struct
2679 unsigned : 1;
2680 unsigned : 1;
2681 unsigned READ_WRITE : 1;
2682 unsigned : 1;
2683 unsigned : 1;
2684 unsigned DATA_ADDRESS : 1;
2685 unsigned : 1;
2686 unsigned : 1;
2689 struct
2691 unsigned : 1;
2692 unsigned : 1;
2693 unsigned I2C_READ : 1;
2694 unsigned : 1;
2695 unsigned : 1;
2696 unsigned I2C_DAT : 1;
2697 unsigned : 1;
2698 unsigned : 1;
2700 } __SSP1STATbits_t;
2702 extern __at(0x018F) volatile __SSP1STATbits_t SSP1STATbits;
2704 #define _BF 0x01
2705 #define _UA 0x02
2706 #define _R_NOT_W 0x04
2707 #define _R_W 0x04
2708 #define _NOT_W 0x04
2709 #define _NOT_WRITE 0x04
2710 #define _READ_WRITE 0x04
2711 #define _I2C_READ 0x04
2712 #define _S 0x08
2713 #define _I2C_START 0x08
2714 #define _P 0x10
2715 #define _I2C_STOP 0x10
2716 #define _D_NOT_A 0x20
2717 #define _D_A 0x20
2718 #define _NOT_A 0x20
2719 #define _NOT_ADDRESS 0x20
2720 #define _DATA_ADDRESS 0x20
2721 #define _I2C_DAT 0x20
2722 #define _CKE 0x40
2723 #define _SMP 0x80
2725 //==============================================================================
2728 //==============================================================================
2729 // SSP1CON1 Bits
2731 extern __at(0x0190) __sfr SSP1CON1;
2733 typedef union
2735 struct
2737 unsigned SSPM0 : 1;
2738 unsigned SSPM1 : 1;
2739 unsigned SSPM2 : 1;
2740 unsigned SSPM3 : 1;
2741 unsigned CKP : 1;
2742 unsigned SSPEN : 1;
2743 unsigned SSPOV : 1;
2744 unsigned WCOL : 1;
2747 struct
2749 unsigned SSPM : 4;
2750 unsigned : 4;
2752 } __SSP1CON1bits_t;
2754 extern __at(0x0190) volatile __SSP1CON1bits_t SSP1CON1bits;
2756 #define _SSPM0 0x01
2757 #define _SSPM1 0x02
2758 #define _SSPM2 0x04
2759 #define _SSPM3 0x08
2760 #define _CKP 0x10
2761 #define _SSPEN 0x20
2762 #define _SSPOV 0x40
2763 #define _WCOL 0x80
2765 //==============================================================================
2768 //==============================================================================
2769 // SSP1CON2 Bits
2771 extern __at(0x0191) __sfr SSP1CON2;
2773 typedef union
2775 struct
2777 unsigned SEN : 1;
2778 unsigned RSEN : 1;
2779 unsigned PEN : 1;
2780 unsigned RCEN : 1;
2781 unsigned ACKEN : 1;
2782 unsigned ACKDT : 1;
2783 unsigned ACKSTAT : 1;
2784 unsigned GCEN : 1;
2787 struct
2789 unsigned : 1;
2790 unsigned ADMSK1 : 1;
2791 unsigned ADMSK2 : 1;
2792 unsigned ADMSK3 : 1;
2793 unsigned ADMSK4 : 1;
2794 unsigned ADMSK5 : 1;
2795 unsigned : 1;
2796 unsigned : 1;
2798 } __SSP1CON2bits_t;
2800 extern __at(0x0191) volatile __SSP1CON2bits_t SSP1CON2bits;
2802 #define _SEN 0x01
2803 #define _RSEN 0x02
2804 #define _ADMSK1 0x02
2805 #define _PEN 0x04
2806 #define _ADMSK2 0x04
2807 #define _RCEN 0x08
2808 #define _ADMSK3 0x08
2809 #define _ACKEN 0x10
2810 #define _ADMSK4 0x10
2811 #define _ACKDT 0x20
2812 #define _ADMSK5 0x20
2813 #define _ACKSTAT 0x40
2814 #define _GCEN 0x80
2816 //==============================================================================
2819 //==============================================================================
2820 // SSP1CON3 Bits
2822 extern __at(0x0192) __sfr SSP1CON3;
2824 typedef struct
2826 unsigned DHEN : 1;
2827 unsigned AHEN : 1;
2828 unsigned SBCDE : 1;
2829 unsigned SDAHT : 1;
2830 unsigned BOEN : 1;
2831 unsigned SCIE : 1;
2832 unsigned PCIE : 1;
2833 unsigned ACKTIM : 1;
2834 } __SSP1CON3bits_t;
2836 extern __at(0x0192) volatile __SSP1CON3bits_t SSP1CON3bits;
2838 #define _DHEN 0x01
2839 #define _AHEN 0x02
2840 #define _SBCDE 0x04
2841 #define _SDAHT 0x08
2842 #define _BOEN 0x10
2843 #define _SCIE 0x20
2844 #define _PCIE 0x40
2845 #define _ACKTIM 0x80
2847 //==============================================================================
2849 extern __at(0x0196) __sfr SSP2BUF;
2850 extern __at(0x0197) __sfr SSP2ADD;
2852 //==============================================================================
2853 // SSP2MSK Bits
2855 extern __at(0x0198) __sfr SSP2MSK;
2857 typedef struct
2859 unsigned MSK0 : 1;
2860 unsigned MSK1 : 1;
2861 unsigned MSK2 : 1;
2862 unsigned MSK3 : 1;
2863 unsigned MSK4 : 1;
2864 unsigned MSK5 : 1;
2865 unsigned MSK6 : 1;
2866 unsigned MSK7 : 1;
2867 } __SSP2MSKbits_t;
2869 extern __at(0x0198) volatile __SSP2MSKbits_t SSP2MSKbits;
2871 #define _SSP2MSK_MSK0 0x01
2872 #define _SSP2MSK_MSK1 0x02
2873 #define _SSP2MSK_MSK2 0x04
2874 #define _SSP2MSK_MSK3 0x08
2875 #define _SSP2MSK_MSK4 0x10
2876 #define _SSP2MSK_MSK5 0x20
2877 #define _SSP2MSK_MSK6 0x40
2878 #define _SSP2MSK_MSK7 0x80
2880 //==============================================================================
2883 //==============================================================================
2884 // SSP2STAT Bits
2886 extern __at(0x0199) __sfr SSP2STAT;
2888 typedef union
2890 struct
2892 unsigned BF : 1;
2893 unsigned UA : 1;
2894 unsigned R_NOT_W : 1;
2895 unsigned S : 1;
2896 unsigned P : 1;
2897 unsigned D_NOT_A : 1;
2898 unsigned CKE : 1;
2899 unsigned SMP : 1;
2902 struct
2904 unsigned : 1;
2905 unsigned : 1;
2906 unsigned R_W : 1;
2907 unsigned I2C_START : 1;
2908 unsigned I2C_STOP : 1;
2909 unsigned D_A : 1;
2910 unsigned : 1;
2911 unsigned : 1;
2914 struct
2916 unsigned : 1;
2917 unsigned : 1;
2918 unsigned NOT_W : 1;
2919 unsigned : 1;
2920 unsigned : 1;
2921 unsigned NOT_A : 1;
2922 unsigned : 1;
2923 unsigned : 1;
2926 struct
2928 unsigned : 1;
2929 unsigned : 1;
2930 unsigned NOT_WRITE : 1;
2931 unsigned : 1;
2932 unsigned : 1;
2933 unsigned NOT_ADDRESS : 1;
2934 unsigned : 1;
2935 unsigned : 1;
2938 struct
2940 unsigned : 1;
2941 unsigned : 1;
2942 unsigned READ_WRITE : 1;
2943 unsigned : 1;
2944 unsigned : 1;
2945 unsigned DATA_ADDRESS : 1;
2946 unsigned : 1;
2947 unsigned : 1;
2950 struct
2952 unsigned : 1;
2953 unsigned : 1;
2954 unsigned I2C_READ : 1;
2955 unsigned : 1;
2956 unsigned : 1;
2957 unsigned I2C_DAT : 1;
2958 unsigned : 1;
2959 unsigned : 1;
2961 } __SSP2STATbits_t;
2963 extern __at(0x0199) volatile __SSP2STATbits_t SSP2STATbits;
2965 #define _SSP2STAT_BF 0x01
2966 #define _SSP2STAT_UA 0x02
2967 #define _SSP2STAT_R_NOT_W 0x04
2968 #define _SSP2STAT_R_W 0x04
2969 #define _SSP2STAT_NOT_W 0x04
2970 #define _SSP2STAT_NOT_WRITE 0x04
2971 #define _SSP2STAT_READ_WRITE 0x04
2972 #define _SSP2STAT_I2C_READ 0x04
2973 #define _SSP2STAT_S 0x08
2974 #define _SSP2STAT_I2C_START 0x08
2975 #define _SSP2STAT_P 0x10
2976 #define _SSP2STAT_I2C_STOP 0x10
2977 #define _SSP2STAT_D_NOT_A 0x20
2978 #define _SSP2STAT_D_A 0x20
2979 #define _SSP2STAT_NOT_A 0x20
2980 #define _SSP2STAT_NOT_ADDRESS 0x20
2981 #define _SSP2STAT_DATA_ADDRESS 0x20
2982 #define _SSP2STAT_I2C_DAT 0x20
2983 #define _SSP2STAT_CKE 0x40
2984 #define _SSP2STAT_SMP 0x80
2986 //==============================================================================
2989 //==============================================================================
2990 // SSP2CON1 Bits
2992 extern __at(0x019A) __sfr SSP2CON1;
2994 typedef union
2996 struct
2998 unsigned SSPM0 : 1;
2999 unsigned SSPM1 : 1;
3000 unsigned SSPM2 : 1;
3001 unsigned SSPM3 : 1;
3002 unsigned CKP : 1;
3003 unsigned SSPEN : 1;
3004 unsigned SSPOV : 1;
3005 unsigned WCOL : 1;
3008 struct
3010 unsigned SSPM : 4;
3011 unsigned : 4;
3013 } __SSP2CON1bits_t;
3015 extern __at(0x019A) volatile __SSP2CON1bits_t SSP2CON1bits;
3017 #define _SSP2CON1_SSPM0 0x01
3018 #define _SSP2CON1_SSPM1 0x02
3019 #define _SSP2CON1_SSPM2 0x04
3020 #define _SSP2CON1_SSPM3 0x08
3021 #define _SSP2CON1_CKP 0x10
3022 #define _SSP2CON1_SSPEN 0x20
3023 #define _SSP2CON1_SSPOV 0x40
3024 #define _SSP2CON1_WCOL 0x80
3026 //==============================================================================
3029 //==============================================================================
3030 // SSP2CON2 Bits
3032 extern __at(0x019B) __sfr SSP2CON2;
3034 typedef union
3036 struct
3038 unsigned SEN : 1;
3039 unsigned RSEN : 1;
3040 unsigned PEN : 1;
3041 unsigned RCEN : 1;
3042 unsigned ACKEN : 1;
3043 unsigned ACKDT : 1;
3044 unsigned ACKSTAT : 1;
3045 unsigned GCEN : 1;
3048 struct
3050 unsigned : 1;
3051 unsigned ADMSK1 : 1;
3052 unsigned ADMSK2 : 1;
3053 unsigned ADMSK3 : 1;
3054 unsigned ADMSK4 : 1;
3055 unsigned ADMSK5 : 1;
3056 unsigned : 1;
3057 unsigned : 1;
3059 } __SSP2CON2bits_t;
3061 extern __at(0x019B) volatile __SSP2CON2bits_t SSP2CON2bits;
3063 #define _SSP2CON2_SEN 0x01
3064 #define _SSP2CON2_RSEN 0x02
3065 #define _SSP2CON2_ADMSK1 0x02
3066 #define _SSP2CON2_PEN 0x04
3067 #define _SSP2CON2_ADMSK2 0x04
3068 #define _SSP2CON2_RCEN 0x08
3069 #define _SSP2CON2_ADMSK3 0x08
3070 #define _SSP2CON2_ACKEN 0x10
3071 #define _SSP2CON2_ADMSK4 0x10
3072 #define _SSP2CON2_ACKDT 0x20
3073 #define _SSP2CON2_ADMSK5 0x20
3074 #define _SSP2CON2_ACKSTAT 0x40
3075 #define _SSP2CON2_GCEN 0x80
3077 //==============================================================================
3080 //==============================================================================
3081 // SSP2CON3 Bits
3083 extern __at(0x019C) __sfr SSP2CON3;
3085 typedef struct
3087 unsigned DHEN : 1;
3088 unsigned AHEN : 1;
3089 unsigned SBCDE : 1;
3090 unsigned SDAHT : 1;
3091 unsigned BOEN : 1;
3092 unsigned SCIE : 1;
3093 unsigned PCIE : 1;
3094 unsigned ACKTIM : 1;
3095 } __SSP2CON3bits_t;
3097 extern __at(0x019C) volatile __SSP2CON3bits_t SSP2CON3bits;
3099 #define _SSP2CON3_DHEN 0x01
3100 #define _SSP2CON3_AHEN 0x02
3101 #define _SSP2CON3_SBCDE 0x04
3102 #define _SSP2CON3_SDAHT 0x08
3103 #define _SSP2CON3_BOEN 0x10
3104 #define _SSP2CON3_SCIE 0x20
3105 #define _SSP2CON3_PCIE 0x40
3106 #define _SSP2CON3_ACKTIM 0x80
3108 //==============================================================================
3111 //==============================================================================
3112 // TMR1L Bits
3114 extern __at(0x020C) __sfr TMR1L;
3116 typedef struct
3118 unsigned TMR1L0 : 1;
3119 unsigned TMR1L1 : 1;
3120 unsigned TMR1L2 : 1;
3121 unsigned TMR1L3 : 1;
3122 unsigned TMR1L4 : 1;
3123 unsigned TMR1L5 : 1;
3124 unsigned TMR1L6 : 1;
3125 unsigned TMR1L7 : 1;
3126 } __TMR1Lbits_t;
3128 extern __at(0x020C) volatile __TMR1Lbits_t TMR1Lbits;
3130 #define _TMR1L0 0x01
3131 #define _TMR1L1 0x02
3132 #define _TMR1L2 0x04
3133 #define _TMR1L3 0x08
3134 #define _TMR1L4 0x10
3135 #define _TMR1L5 0x20
3136 #define _TMR1L6 0x40
3137 #define _TMR1L7 0x80
3139 //==============================================================================
3142 //==============================================================================
3143 // TMR1H Bits
3145 extern __at(0x020D) __sfr TMR1H;
3147 typedef struct
3149 unsigned TMR1H0 : 1;
3150 unsigned TMR1H1 : 1;
3151 unsigned TMR1H2 : 1;
3152 unsigned TMR1H3 : 1;
3153 unsigned TMR1H4 : 1;
3154 unsigned TMR1H5 : 1;
3155 unsigned TMR1H6 : 1;
3156 unsigned TMR1H7 : 1;
3157 } __TMR1Hbits_t;
3159 extern __at(0x020D) volatile __TMR1Hbits_t TMR1Hbits;
3161 #define _TMR1H0 0x01
3162 #define _TMR1H1 0x02
3163 #define _TMR1H2 0x04
3164 #define _TMR1H3 0x08
3165 #define _TMR1H4 0x10
3166 #define _TMR1H5 0x20
3167 #define _TMR1H6 0x40
3168 #define _TMR1H7 0x80
3170 //==============================================================================
3173 //==============================================================================
3174 // T1CON Bits
3176 extern __at(0x020E) __sfr T1CON;
3178 typedef union
3180 struct
3182 unsigned ON : 1;
3183 unsigned RD16 : 1;
3184 unsigned NOT_SYNC : 1;
3185 unsigned : 1;
3186 unsigned T1CKPS0 : 1;
3187 unsigned T1CKPS1 : 1;
3188 unsigned : 1;
3189 unsigned : 1;
3192 struct
3194 unsigned TMR1ON : 1;
3195 unsigned T1RD16 : 1;
3196 unsigned NOT_T1SYNC : 1;
3197 unsigned : 1;
3198 unsigned CKPS0 : 1;
3199 unsigned CKPS1 : 1;
3200 unsigned : 1;
3201 unsigned : 1;
3204 struct
3206 unsigned : 4;
3207 unsigned CKPS : 2;
3208 unsigned : 2;
3211 struct
3213 unsigned : 4;
3214 unsigned T1CKPS : 2;
3215 unsigned : 2;
3217 } __T1CONbits_t;
3219 extern __at(0x020E) volatile __T1CONbits_t T1CONbits;
3221 #define _T1CON_ON 0x01
3222 #define _T1CON_TMR1ON 0x01
3223 #define _T1CON_RD16 0x02
3224 #define _T1CON_T1RD16 0x02
3225 #define _T1CON_NOT_SYNC 0x04
3226 #define _T1CON_NOT_T1SYNC 0x04
3227 #define _T1CON_T1CKPS0 0x10
3228 #define _T1CON_CKPS0 0x10
3229 #define _T1CON_T1CKPS1 0x20
3230 #define _T1CON_CKPS1 0x20
3232 //==============================================================================
3235 //==============================================================================
3236 // PR1 Bits
3238 extern __at(0x020F) __sfr PR1;
3240 typedef union
3242 struct
3244 unsigned : 1;
3245 unsigned : 1;
3246 unsigned GVAL : 1;
3247 unsigned GGO_NOT_DONE : 1;
3248 unsigned GSPM : 1;
3249 unsigned GTM : 1;
3250 unsigned GPOL : 1;
3251 unsigned GE : 1;
3254 struct
3256 unsigned : 1;
3257 unsigned : 1;
3258 unsigned T1GVAL : 1;
3259 unsigned T1GGO_NOT_DONE : 1;
3260 unsigned T1GSPM : 1;
3261 unsigned T1GTM : 1;
3262 unsigned T1GPOL : 1;
3263 unsigned T1GE : 1;
3266 struct
3268 unsigned : 1;
3269 unsigned : 1;
3270 unsigned : 1;
3271 unsigned T1GGO : 1;
3272 unsigned : 1;
3273 unsigned : 1;
3274 unsigned : 1;
3275 unsigned : 1;
3277 } __PR1bits_t;
3279 extern __at(0x020F) volatile __PR1bits_t PR1bits;
3281 #define _GVAL 0x04
3282 #define _T1GVAL 0x04
3283 #define _GGO_NOT_DONE 0x08
3284 #define _T1GGO_NOT_DONE 0x08
3285 #define _T1GGO 0x08
3286 #define _GSPM 0x10
3287 #define _T1GSPM 0x10
3288 #define _GTM 0x20
3289 #define _T1GTM 0x20
3290 #define _GPOL 0x40
3291 #define _T1GPOL 0x40
3292 #define _GE 0x80
3293 #define _T1GE 0x80
3295 //==============================================================================
3298 //==============================================================================
3299 // T1GCON Bits
3301 extern __at(0x020F) __sfr T1GCON;
3303 typedef union
3305 struct
3307 unsigned : 1;
3308 unsigned : 1;
3309 unsigned GVAL : 1;
3310 unsigned GGO_NOT_DONE : 1;
3311 unsigned GSPM : 1;
3312 unsigned GTM : 1;
3313 unsigned GPOL : 1;
3314 unsigned GE : 1;
3317 struct
3319 unsigned : 1;
3320 unsigned : 1;
3321 unsigned T1GVAL : 1;
3322 unsigned T1GGO_NOT_DONE : 1;
3323 unsigned T1GSPM : 1;
3324 unsigned T1GTM : 1;
3325 unsigned T1GPOL : 1;
3326 unsigned T1GE : 1;
3329 struct
3331 unsigned : 1;
3332 unsigned : 1;
3333 unsigned : 1;
3334 unsigned T1GGO : 1;
3335 unsigned : 1;
3336 unsigned : 1;
3337 unsigned : 1;
3338 unsigned : 1;
3340 } __T1GCONbits_t;
3342 extern __at(0x020F) volatile __T1GCONbits_t T1GCONbits;
3344 #define _T1GCON_GVAL 0x04
3345 #define _T1GCON_T1GVAL 0x04
3346 #define _T1GCON_GGO_NOT_DONE 0x08
3347 #define _T1GCON_T1GGO_NOT_DONE 0x08
3348 #define _T1GCON_T1GGO 0x08
3349 #define _T1GCON_GSPM 0x10
3350 #define _T1GCON_T1GSPM 0x10
3351 #define _T1GCON_GTM 0x20
3352 #define _T1GCON_T1GTM 0x20
3353 #define _T1GCON_GPOL 0x40
3354 #define _T1GCON_T1GPOL 0x40
3355 #define _T1GCON_GE 0x80
3356 #define _T1GCON_T1GE 0x80
3358 //==============================================================================
3361 //==============================================================================
3362 // T1GATE Bits
3364 extern __at(0x0210) __sfr T1GATE;
3366 typedef union
3368 struct
3370 unsigned GSS0 : 1;
3371 unsigned GSS1 : 1;
3372 unsigned GSS2 : 1;
3373 unsigned GSS3 : 1;
3374 unsigned GSS4 : 1;
3375 unsigned : 1;
3376 unsigned : 1;
3377 unsigned : 1;
3380 struct
3382 unsigned T1GSS0 : 1;
3383 unsigned T1GSS1 : 1;
3384 unsigned T1GSS2 : 1;
3385 unsigned T1GSS3 : 1;
3386 unsigned T1GSS4 : 1;
3387 unsigned : 1;
3388 unsigned : 1;
3389 unsigned : 1;
3392 struct
3394 unsigned T1GSS : 5;
3395 unsigned : 3;
3398 struct
3400 unsigned GSS : 5;
3401 unsigned : 3;
3403 } __T1GATEbits_t;
3405 extern __at(0x0210) volatile __T1GATEbits_t T1GATEbits;
3407 #define _GSS0 0x01
3408 #define _T1GSS0 0x01
3409 #define _GSS1 0x02
3410 #define _T1GSS1 0x02
3411 #define _GSS2 0x04
3412 #define _T1GSS2 0x04
3413 #define _GSS3 0x08
3414 #define _T1GSS3 0x08
3415 #define _GSS4 0x10
3416 #define _T1GSS4 0x10
3418 //==============================================================================
3421 //==============================================================================
3422 // TMR1GATE Bits
3424 extern __at(0x0210) __sfr TMR1GATE;
3426 typedef union
3428 struct
3430 unsigned GSS0 : 1;
3431 unsigned GSS1 : 1;
3432 unsigned GSS2 : 1;
3433 unsigned GSS3 : 1;
3434 unsigned GSS4 : 1;
3435 unsigned : 1;
3436 unsigned : 1;
3437 unsigned : 1;
3440 struct
3442 unsigned T1GSS0 : 1;
3443 unsigned T1GSS1 : 1;
3444 unsigned T1GSS2 : 1;
3445 unsigned T1GSS3 : 1;
3446 unsigned T1GSS4 : 1;
3447 unsigned : 1;
3448 unsigned : 1;
3449 unsigned : 1;
3452 struct
3454 unsigned GSS : 5;
3455 unsigned : 3;
3458 struct
3460 unsigned T1GSS : 5;
3461 unsigned : 3;
3463 } __TMR1GATEbits_t;
3465 extern __at(0x0210) volatile __TMR1GATEbits_t TMR1GATEbits;
3467 #define _TMR1GATE_GSS0 0x01
3468 #define _TMR1GATE_T1GSS0 0x01
3469 #define _TMR1GATE_GSS1 0x02
3470 #define _TMR1GATE_T1GSS1 0x02
3471 #define _TMR1GATE_GSS2 0x04
3472 #define _TMR1GATE_T1GSS2 0x04
3473 #define _TMR1GATE_GSS3 0x08
3474 #define _TMR1GATE_T1GSS3 0x08
3475 #define _TMR1GATE_GSS4 0x10
3476 #define _TMR1GATE_T1GSS4 0x10
3478 //==============================================================================
3481 //==============================================================================
3482 // T1CLK Bits
3484 extern __at(0x0211) __sfr T1CLK;
3486 typedef union
3488 struct
3490 unsigned T1CS0 : 1;
3491 unsigned T1CS1 : 1;
3492 unsigned T1CS2 : 1;
3493 unsigned T1CS3 : 1;
3494 unsigned : 1;
3495 unsigned : 1;
3496 unsigned : 1;
3497 unsigned : 1;
3500 struct
3502 unsigned CS0 : 1;
3503 unsigned CS1 : 1;
3504 unsigned CS2 : 1;
3505 unsigned CS3 : 1;
3506 unsigned : 1;
3507 unsigned : 1;
3508 unsigned : 1;
3509 unsigned : 1;
3512 struct
3514 unsigned CS : 4;
3515 unsigned : 4;
3518 struct
3520 unsigned T1CS : 4;
3521 unsigned : 4;
3523 } __T1CLKbits_t;
3525 extern __at(0x0211) volatile __T1CLKbits_t T1CLKbits;
3527 #define _T1CS0 0x01
3528 #define _CS0 0x01
3529 #define _T1CS1 0x02
3530 #define _CS1 0x02
3531 #define _T1CS2 0x04
3532 #define _CS2 0x04
3533 #define _T1CS3 0x08
3534 #define _CS3 0x08
3536 //==============================================================================
3539 //==============================================================================
3540 // TMR1CLK Bits
3542 extern __at(0x0211) __sfr TMR1CLK;
3544 typedef union
3546 struct
3548 unsigned T1CS0 : 1;
3549 unsigned T1CS1 : 1;
3550 unsigned T1CS2 : 1;
3551 unsigned T1CS3 : 1;
3552 unsigned : 1;
3553 unsigned : 1;
3554 unsigned : 1;
3555 unsigned : 1;
3558 struct
3560 unsigned CS0 : 1;
3561 unsigned CS1 : 1;
3562 unsigned CS2 : 1;
3563 unsigned CS3 : 1;
3564 unsigned : 1;
3565 unsigned : 1;
3566 unsigned : 1;
3567 unsigned : 1;
3570 struct
3572 unsigned CS : 4;
3573 unsigned : 4;
3576 struct
3578 unsigned T1CS : 4;
3579 unsigned : 4;
3581 } __TMR1CLKbits_t;
3583 extern __at(0x0211) volatile __TMR1CLKbits_t TMR1CLKbits;
3585 #define _TMR1CLK_T1CS0 0x01
3586 #define _TMR1CLK_CS0 0x01
3587 #define _TMR1CLK_T1CS1 0x02
3588 #define _TMR1CLK_CS1 0x02
3589 #define _TMR1CLK_T1CS2 0x04
3590 #define _TMR1CLK_CS2 0x04
3591 #define _TMR1CLK_T1CS3 0x08
3592 #define _TMR1CLK_CS3 0x08
3594 //==============================================================================
3597 //==============================================================================
3598 // TMR3L Bits
3600 extern __at(0x0212) __sfr TMR3L;
3602 typedef struct
3604 unsigned TMR3L0 : 1;
3605 unsigned TMR3L1 : 1;
3606 unsigned TMR3L2 : 1;
3607 unsigned TMR3L3 : 1;
3608 unsigned TMR3L4 : 1;
3609 unsigned TMR3L5 : 1;
3610 unsigned TMR3L6 : 1;
3611 unsigned TMR3L7 : 1;
3612 } __TMR3Lbits_t;
3614 extern __at(0x0212) volatile __TMR3Lbits_t TMR3Lbits;
3616 #define _TMR3L0 0x01
3617 #define _TMR3L1 0x02
3618 #define _TMR3L2 0x04
3619 #define _TMR3L3 0x08
3620 #define _TMR3L4 0x10
3621 #define _TMR3L5 0x20
3622 #define _TMR3L6 0x40
3623 #define _TMR3L7 0x80
3625 //==============================================================================
3628 //==============================================================================
3629 // TMR3H Bits
3631 extern __at(0x0213) __sfr TMR3H;
3633 typedef struct
3635 unsigned TMR3H0 : 1;
3636 unsigned TMR3H1 : 1;
3637 unsigned TMR3H2 : 1;
3638 unsigned TMR3H3 : 1;
3639 unsigned TMR3H4 : 1;
3640 unsigned TMR3H5 : 1;
3641 unsigned TMR3H6 : 1;
3642 unsigned TMR3H7 : 1;
3643 } __TMR3Hbits_t;
3645 extern __at(0x0213) volatile __TMR3Hbits_t TMR3Hbits;
3647 #define _TMR3H0 0x01
3648 #define _TMR3H1 0x02
3649 #define _TMR3H2 0x04
3650 #define _TMR3H3 0x08
3651 #define _TMR3H4 0x10
3652 #define _TMR3H5 0x20
3653 #define _TMR3H6 0x40
3654 #define _TMR3H7 0x80
3656 //==============================================================================
3659 //==============================================================================
3660 // T3CON Bits
3662 extern __at(0x0214) __sfr T3CON;
3664 typedef union
3666 struct
3668 unsigned ON : 1;
3669 unsigned RD16 : 1;
3670 unsigned NOT_SYNC : 1;
3671 unsigned : 1;
3672 unsigned T3CKPS0 : 1;
3673 unsigned T3CKPS1 : 1;
3674 unsigned : 1;
3675 unsigned : 1;
3678 struct
3680 unsigned TMR3ON : 1;
3681 unsigned T3RD16 : 1;
3682 unsigned NOT_T3SYNC : 1;
3683 unsigned : 1;
3684 unsigned CKPS0 : 1;
3685 unsigned CKPS1 : 1;
3686 unsigned : 1;
3687 unsigned : 1;
3690 struct
3692 unsigned : 4;
3693 unsigned T3CKPS : 2;
3694 unsigned : 2;
3697 struct
3699 unsigned : 4;
3700 unsigned CKPS : 2;
3701 unsigned : 2;
3703 } __T3CONbits_t;
3705 extern __at(0x0214) volatile __T3CONbits_t T3CONbits;
3707 #define _T3CON_ON 0x01
3708 #define _T3CON_TMR3ON 0x01
3709 #define _T3CON_RD16 0x02
3710 #define _T3CON_T3RD16 0x02
3711 #define _T3CON_NOT_SYNC 0x04
3712 #define _T3CON_NOT_T3SYNC 0x04
3713 #define _T3CON_T3CKPS0 0x10
3714 #define _T3CON_CKPS0 0x10
3715 #define _T3CON_T3CKPS1 0x20
3716 #define _T3CON_CKPS1 0x20
3718 //==============================================================================
3721 //==============================================================================
3722 // PR3 Bits
3724 extern __at(0x0215) __sfr PR3;
3726 typedef union
3728 struct
3730 unsigned : 1;
3731 unsigned : 1;
3732 unsigned GVAL : 1;
3733 unsigned GGO_NOT_DONE : 1;
3734 unsigned GSPM : 1;
3735 unsigned GTM : 1;
3736 unsigned GPOL : 1;
3737 unsigned GE : 1;
3740 struct
3742 unsigned : 1;
3743 unsigned : 1;
3744 unsigned T3GVAL : 1;
3745 unsigned T3GGO_NOT_DONE : 1;
3746 unsigned T3GSPM : 1;
3747 unsigned T3GTM : 1;
3748 unsigned T3GPOL : 1;
3749 unsigned T3GE : 1;
3752 struct
3754 unsigned : 1;
3755 unsigned : 1;
3756 unsigned : 1;
3757 unsigned T3GGO : 1;
3758 unsigned : 1;
3759 unsigned : 1;
3760 unsigned : 1;
3761 unsigned : 1;
3763 } __PR3bits_t;
3765 extern __at(0x0215) volatile __PR3bits_t PR3bits;
3767 #define _PR3_GVAL 0x04
3768 #define _PR3_T3GVAL 0x04
3769 #define _PR3_GGO_NOT_DONE 0x08
3770 #define _PR3_T3GGO_NOT_DONE 0x08
3771 #define _PR3_T3GGO 0x08
3772 #define _PR3_GSPM 0x10
3773 #define _PR3_T3GSPM 0x10
3774 #define _PR3_GTM 0x20
3775 #define _PR3_T3GTM 0x20
3776 #define _PR3_GPOL 0x40
3777 #define _PR3_T3GPOL 0x40
3778 #define _PR3_GE 0x80
3779 #define _PR3_T3GE 0x80
3781 //==============================================================================
3784 //==============================================================================
3785 // T3GCON Bits
3787 extern __at(0x0215) __sfr T3GCON;
3789 typedef union
3791 struct
3793 unsigned : 1;
3794 unsigned : 1;
3795 unsigned GVAL : 1;
3796 unsigned GGO_NOT_DONE : 1;
3797 unsigned GSPM : 1;
3798 unsigned GTM : 1;
3799 unsigned GPOL : 1;
3800 unsigned GE : 1;
3803 struct
3805 unsigned : 1;
3806 unsigned : 1;
3807 unsigned T3GVAL : 1;
3808 unsigned T3GGO_NOT_DONE : 1;
3809 unsigned T3GSPM : 1;
3810 unsigned T3GTM : 1;
3811 unsigned T3GPOL : 1;
3812 unsigned T3GE : 1;
3815 struct
3817 unsigned : 1;
3818 unsigned : 1;
3819 unsigned : 1;
3820 unsigned T3GGO : 1;
3821 unsigned : 1;
3822 unsigned : 1;
3823 unsigned : 1;
3824 unsigned : 1;
3826 } __T3GCONbits_t;
3828 extern __at(0x0215) volatile __T3GCONbits_t T3GCONbits;
3830 #define _T3GCON_GVAL 0x04
3831 #define _T3GCON_T3GVAL 0x04
3832 #define _T3GCON_GGO_NOT_DONE 0x08
3833 #define _T3GCON_T3GGO_NOT_DONE 0x08
3834 #define _T3GCON_T3GGO 0x08
3835 #define _T3GCON_GSPM 0x10
3836 #define _T3GCON_T3GSPM 0x10
3837 #define _T3GCON_GTM 0x20
3838 #define _T3GCON_T3GTM 0x20
3839 #define _T3GCON_GPOL 0x40
3840 #define _T3GCON_T3GPOL 0x40
3841 #define _T3GCON_GE 0x80
3842 #define _T3GCON_T3GE 0x80
3844 //==============================================================================
3847 //==============================================================================
3848 // T3GATE Bits
3850 extern __at(0x0216) __sfr T3GATE;
3852 typedef union
3854 struct
3856 unsigned GSS0 : 1;
3857 unsigned GSS1 : 1;
3858 unsigned GSS2 : 1;
3859 unsigned GSS3 : 1;
3860 unsigned GSS4 : 1;
3861 unsigned : 1;
3862 unsigned : 1;
3863 unsigned : 1;
3866 struct
3868 unsigned T3GSS0 : 1;
3869 unsigned T3GSS1 : 1;
3870 unsigned T3GSS2 : 1;
3871 unsigned T3GSS3 : 1;
3872 unsigned T3GSS4 : 1;
3873 unsigned : 1;
3874 unsigned : 1;
3875 unsigned : 1;
3878 struct
3880 unsigned T3GSS : 5;
3881 unsigned : 3;
3884 struct
3886 unsigned GSS : 5;
3887 unsigned : 3;
3889 } __T3GATEbits_t;
3891 extern __at(0x0216) volatile __T3GATEbits_t T3GATEbits;
3893 #define _T3GATE_GSS0 0x01
3894 #define _T3GATE_T3GSS0 0x01
3895 #define _T3GATE_GSS1 0x02
3896 #define _T3GATE_T3GSS1 0x02
3897 #define _T3GATE_GSS2 0x04
3898 #define _T3GATE_T3GSS2 0x04
3899 #define _T3GATE_GSS3 0x08
3900 #define _T3GATE_T3GSS3 0x08
3901 #define _T3GATE_GSS4 0x10
3902 #define _T3GATE_T3GSS4 0x10
3904 //==============================================================================
3907 //==============================================================================
3908 // TMR3GATE Bits
3910 extern __at(0x0216) __sfr TMR3GATE;
3912 typedef union
3914 struct
3916 unsigned GSS0 : 1;
3917 unsigned GSS1 : 1;
3918 unsigned GSS2 : 1;
3919 unsigned GSS3 : 1;
3920 unsigned GSS4 : 1;
3921 unsigned : 1;
3922 unsigned : 1;
3923 unsigned : 1;
3926 struct
3928 unsigned T3GSS0 : 1;
3929 unsigned T3GSS1 : 1;
3930 unsigned T3GSS2 : 1;
3931 unsigned T3GSS3 : 1;
3932 unsigned T3GSS4 : 1;
3933 unsigned : 1;
3934 unsigned : 1;
3935 unsigned : 1;
3938 struct
3940 unsigned GSS : 5;
3941 unsigned : 3;
3944 struct
3946 unsigned T3GSS : 5;
3947 unsigned : 3;
3949 } __TMR3GATEbits_t;
3951 extern __at(0x0216) volatile __TMR3GATEbits_t TMR3GATEbits;
3953 #define _TMR3GATE_GSS0 0x01
3954 #define _TMR3GATE_T3GSS0 0x01
3955 #define _TMR3GATE_GSS1 0x02
3956 #define _TMR3GATE_T3GSS1 0x02
3957 #define _TMR3GATE_GSS2 0x04
3958 #define _TMR3GATE_T3GSS2 0x04
3959 #define _TMR3GATE_GSS3 0x08
3960 #define _TMR3GATE_T3GSS3 0x08
3961 #define _TMR3GATE_GSS4 0x10
3962 #define _TMR3GATE_T3GSS4 0x10
3964 //==============================================================================
3967 //==============================================================================
3968 // T3CLK Bits
3970 extern __at(0x0217) __sfr T3CLK;
3972 typedef union
3974 struct
3976 unsigned T3CS0 : 1;
3977 unsigned T3CS1 : 1;
3978 unsigned T3CS2 : 1;
3979 unsigned T3CS3 : 1;
3980 unsigned : 1;
3981 unsigned : 1;
3982 unsigned : 1;
3983 unsigned : 1;
3986 struct
3988 unsigned CS0 : 1;
3989 unsigned CS1 : 1;
3990 unsigned CS2 : 1;
3991 unsigned CS3 : 1;
3992 unsigned : 1;
3993 unsigned : 1;
3994 unsigned : 1;
3995 unsigned : 1;
3998 struct
4000 unsigned T3CS : 4;
4001 unsigned : 4;
4004 struct
4006 unsigned CS : 4;
4007 unsigned : 4;
4009 } __T3CLKbits_t;
4011 extern __at(0x0217) volatile __T3CLKbits_t T3CLKbits;
4013 #define _T3CLK_T3CS0 0x01
4014 #define _T3CLK_CS0 0x01
4015 #define _T3CLK_T3CS1 0x02
4016 #define _T3CLK_CS1 0x02
4017 #define _T3CLK_T3CS2 0x04
4018 #define _T3CLK_CS2 0x04
4019 #define _T3CLK_T3CS3 0x08
4020 #define _T3CLK_CS3 0x08
4022 //==============================================================================
4025 //==============================================================================
4026 // TMR3CLK Bits
4028 extern __at(0x0217) __sfr TMR3CLK;
4030 typedef union
4032 struct
4034 unsigned T3CS0 : 1;
4035 unsigned T3CS1 : 1;
4036 unsigned T3CS2 : 1;
4037 unsigned T3CS3 : 1;
4038 unsigned : 1;
4039 unsigned : 1;
4040 unsigned : 1;
4041 unsigned : 1;
4044 struct
4046 unsigned CS0 : 1;
4047 unsigned CS1 : 1;
4048 unsigned CS2 : 1;
4049 unsigned CS3 : 1;
4050 unsigned : 1;
4051 unsigned : 1;
4052 unsigned : 1;
4053 unsigned : 1;
4056 struct
4058 unsigned CS : 4;
4059 unsigned : 4;
4062 struct
4064 unsigned T3CS : 4;
4065 unsigned : 4;
4067 } __TMR3CLKbits_t;
4069 extern __at(0x0217) volatile __TMR3CLKbits_t TMR3CLKbits;
4071 #define _TMR3CLK_T3CS0 0x01
4072 #define _TMR3CLK_CS0 0x01
4073 #define _TMR3CLK_T3CS1 0x02
4074 #define _TMR3CLK_CS1 0x02
4075 #define _TMR3CLK_T3CS2 0x04
4076 #define _TMR3CLK_CS2 0x04
4077 #define _TMR3CLK_T3CS3 0x08
4078 #define _TMR3CLK_CS3 0x08
4080 //==============================================================================
4083 //==============================================================================
4084 // TMR5L Bits
4086 extern __at(0x0218) __sfr TMR5L;
4088 typedef struct
4090 unsigned TMR5L0 : 1;
4091 unsigned TMR5L1 : 1;
4092 unsigned TMR5L2 : 1;
4093 unsigned TMR5L3 : 1;
4094 unsigned TMR5L4 : 1;
4095 unsigned TMR5L5 : 1;
4096 unsigned TMR5L6 : 1;
4097 unsigned TMR5L7 : 1;
4098 } __TMR5Lbits_t;
4100 extern __at(0x0218) volatile __TMR5Lbits_t TMR5Lbits;
4102 #define _TMR5L0 0x01
4103 #define _TMR5L1 0x02
4104 #define _TMR5L2 0x04
4105 #define _TMR5L3 0x08
4106 #define _TMR5L4 0x10
4107 #define _TMR5L5 0x20
4108 #define _TMR5L6 0x40
4109 #define _TMR5L7 0x80
4111 //==============================================================================
4114 //==============================================================================
4115 // TMR5H Bits
4117 extern __at(0x0219) __sfr TMR5H;
4119 typedef struct
4121 unsigned TMR5H0 : 1;
4122 unsigned TMR5H1 : 1;
4123 unsigned TMR5H2 : 1;
4124 unsigned TMR5H3 : 1;
4125 unsigned TMR5H4 : 1;
4126 unsigned TMR5H5 : 1;
4127 unsigned TMR5H6 : 1;
4128 unsigned TMR5H7 : 1;
4129 } __TMR5Hbits_t;
4131 extern __at(0x0219) volatile __TMR5Hbits_t TMR5Hbits;
4133 #define _TMR5H0 0x01
4134 #define _TMR5H1 0x02
4135 #define _TMR5H2 0x04
4136 #define _TMR5H3 0x08
4137 #define _TMR5H4 0x10
4138 #define _TMR5H5 0x20
4139 #define _TMR5H6 0x40
4140 #define _TMR5H7 0x80
4142 //==============================================================================
4145 //==============================================================================
4146 // T5CON Bits
4148 extern __at(0x021A) __sfr T5CON;
4150 typedef union
4152 struct
4154 unsigned ON : 1;
4155 unsigned RD16 : 1;
4156 unsigned NOT_SYNC : 1;
4157 unsigned : 1;
4158 unsigned T5CKPS0 : 1;
4159 unsigned T5CKPS1 : 1;
4160 unsigned : 1;
4161 unsigned : 1;
4164 struct
4166 unsigned TMR5ON : 1;
4167 unsigned T5RD16 : 1;
4168 unsigned NOT_T5SYNC : 1;
4169 unsigned : 1;
4170 unsigned CKPS0 : 1;
4171 unsigned CKPS1 : 1;
4172 unsigned : 1;
4173 unsigned : 1;
4176 struct
4178 unsigned : 4;
4179 unsigned T5CKPS : 2;
4180 unsigned : 2;
4183 struct
4185 unsigned : 4;
4186 unsigned CKPS : 2;
4187 unsigned : 2;
4189 } __T5CONbits_t;
4191 extern __at(0x021A) volatile __T5CONbits_t T5CONbits;
4193 #define _T5CON_ON 0x01
4194 #define _T5CON_TMR5ON 0x01
4195 #define _T5CON_RD16 0x02
4196 #define _T5CON_T5RD16 0x02
4197 #define _T5CON_NOT_SYNC 0x04
4198 #define _T5CON_NOT_T5SYNC 0x04
4199 #define _T5CON_T5CKPS0 0x10
4200 #define _T5CON_CKPS0 0x10
4201 #define _T5CON_T5CKPS1 0x20
4202 #define _T5CON_CKPS1 0x20
4204 //==============================================================================
4207 //==============================================================================
4208 // PR5 Bits
4210 extern __at(0x021B) __sfr PR5;
4212 typedef union
4214 struct
4216 unsigned : 1;
4217 unsigned : 1;
4218 unsigned GVAL : 1;
4219 unsigned GGO_NOT_DONE : 1;
4220 unsigned GSPM : 1;
4221 unsigned GTM : 1;
4222 unsigned GPOL : 1;
4223 unsigned GE : 1;
4226 struct
4228 unsigned : 1;
4229 unsigned : 1;
4230 unsigned T5GVAL : 1;
4231 unsigned T5GGO_NOT_DONE : 1;
4232 unsigned T5GSPM : 1;
4233 unsigned T5GTM : 1;
4234 unsigned T5GPOL : 1;
4235 unsigned T5GE : 1;
4238 struct
4240 unsigned : 1;
4241 unsigned : 1;
4242 unsigned : 1;
4243 unsigned T5GGO : 1;
4244 unsigned : 1;
4245 unsigned : 1;
4246 unsigned : 1;
4247 unsigned : 1;
4249 } __PR5bits_t;
4251 extern __at(0x021B) volatile __PR5bits_t PR5bits;
4253 #define _PR5_GVAL 0x04
4254 #define _PR5_T5GVAL 0x04
4255 #define _PR5_GGO_NOT_DONE 0x08
4256 #define _PR5_T5GGO_NOT_DONE 0x08
4257 #define _PR5_T5GGO 0x08
4258 #define _PR5_GSPM 0x10
4259 #define _PR5_T5GSPM 0x10
4260 #define _PR5_GTM 0x20
4261 #define _PR5_T5GTM 0x20
4262 #define _PR5_GPOL 0x40
4263 #define _PR5_T5GPOL 0x40
4264 #define _PR5_GE 0x80
4265 #define _PR5_T5GE 0x80
4267 //==============================================================================
4270 //==============================================================================
4271 // T5GCON Bits
4273 extern __at(0x021B) __sfr T5GCON;
4275 typedef union
4277 struct
4279 unsigned : 1;
4280 unsigned : 1;
4281 unsigned GVAL : 1;
4282 unsigned GGO_NOT_DONE : 1;
4283 unsigned GSPM : 1;
4284 unsigned GTM : 1;
4285 unsigned GPOL : 1;
4286 unsigned GE : 1;
4289 struct
4291 unsigned : 1;
4292 unsigned : 1;
4293 unsigned T5GVAL : 1;
4294 unsigned T5GGO_NOT_DONE : 1;
4295 unsigned T5GSPM : 1;
4296 unsigned T5GTM : 1;
4297 unsigned T5GPOL : 1;
4298 unsigned T5GE : 1;
4301 struct
4303 unsigned : 1;
4304 unsigned : 1;
4305 unsigned : 1;
4306 unsigned T5GGO : 1;
4307 unsigned : 1;
4308 unsigned : 1;
4309 unsigned : 1;
4310 unsigned : 1;
4312 } __T5GCONbits_t;
4314 extern __at(0x021B) volatile __T5GCONbits_t T5GCONbits;
4316 #define _T5GCON_GVAL 0x04
4317 #define _T5GCON_T5GVAL 0x04
4318 #define _T5GCON_GGO_NOT_DONE 0x08
4319 #define _T5GCON_T5GGO_NOT_DONE 0x08
4320 #define _T5GCON_T5GGO 0x08
4321 #define _T5GCON_GSPM 0x10
4322 #define _T5GCON_T5GSPM 0x10
4323 #define _T5GCON_GTM 0x20
4324 #define _T5GCON_T5GTM 0x20
4325 #define _T5GCON_GPOL 0x40
4326 #define _T5GCON_T5GPOL 0x40
4327 #define _T5GCON_GE 0x80
4328 #define _T5GCON_T5GE 0x80
4330 //==============================================================================
4333 //==============================================================================
4334 // T5GATE Bits
4336 extern __at(0x021C) __sfr T5GATE;
4338 typedef union
4340 struct
4342 unsigned GSS0 : 1;
4343 unsigned GSS1 : 1;
4344 unsigned GSS2 : 1;
4345 unsigned GSS3 : 1;
4346 unsigned GSS4 : 1;
4347 unsigned : 1;
4348 unsigned : 1;
4349 unsigned : 1;
4352 struct
4354 unsigned T5GSS0 : 1;
4355 unsigned T5GSS1 : 1;
4356 unsigned T5GSS2 : 1;
4357 unsigned T5GSS3 : 1;
4358 unsigned T5GSS4 : 1;
4359 unsigned : 1;
4360 unsigned : 1;
4361 unsigned : 1;
4364 struct
4366 unsigned GSS : 5;
4367 unsigned : 3;
4370 struct
4372 unsigned T5GSS : 5;
4373 unsigned : 3;
4375 } __T5GATEbits_t;
4377 extern __at(0x021C) volatile __T5GATEbits_t T5GATEbits;
4379 #define _T5GATE_GSS0 0x01
4380 #define _T5GATE_T5GSS0 0x01
4381 #define _T5GATE_GSS1 0x02
4382 #define _T5GATE_T5GSS1 0x02
4383 #define _T5GATE_GSS2 0x04
4384 #define _T5GATE_T5GSS2 0x04
4385 #define _T5GATE_GSS3 0x08
4386 #define _T5GATE_T5GSS3 0x08
4387 #define _T5GATE_GSS4 0x10
4388 #define _T5GATE_T5GSS4 0x10
4390 //==============================================================================
4393 //==============================================================================
4394 // TMR5GATE Bits
4396 extern __at(0x021C) __sfr TMR5GATE;
4398 typedef union
4400 struct
4402 unsigned GSS0 : 1;
4403 unsigned GSS1 : 1;
4404 unsigned GSS2 : 1;
4405 unsigned GSS3 : 1;
4406 unsigned GSS4 : 1;
4407 unsigned : 1;
4408 unsigned : 1;
4409 unsigned : 1;
4412 struct
4414 unsigned T5GSS0 : 1;
4415 unsigned T5GSS1 : 1;
4416 unsigned T5GSS2 : 1;
4417 unsigned T5GSS3 : 1;
4418 unsigned T5GSS4 : 1;
4419 unsigned : 1;
4420 unsigned : 1;
4421 unsigned : 1;
4424 struct
4426 unsigned T5GSS : 5;
4427 unsigned : 3;
4430 struct
4432 unsigned GSS : 5;
4433 unsigned : 3;
4435 } __TMR5GATEbits_t;
4437 extern __at(0x021C) volatile __TMR5GATEbits_t TMR5GATEbits;
4439 #define _TMR5GATE_GSS0 0x01
4440 #define _TMR5GATE_T5GSS0 0x01
4441 #define _TMR5GATE_GSS1 0x02
4442 #define _TMR5GATE_T5GSS1 0x02
4443 #define _TMR5GATE_GSS2 0x04
4444 #define _TMR5GATE_T5GSS2 0x04
4445 #define _TMR5GATE_GSS3 0x08
4446 #define _TMR5GATE_T5GSS3 0x08
4447 #define _TMR5GATE_GSS4 0x10
4448 #define _TMR5GATE_T5GSS4 0x10
4450 //==============================================================================
4453 //==============================================================================
4454 // T5CLK Bits
4456 extern __at(0x021D) __sfr T5CLK;
4458 typedef union
4460 struct
4462 unsigned T5CS0 : 1;
4463 unsigned T5CS1 : 1;
4464 unsigned T5CS2 : 1;
4465 unsigned T5CS3 : 1;
4466 unsigned : 1;
4467 unsigned : 1;
4468 unsigned : 1;
4469 unsigned : 1;
4472 struct
4474 unsigned CS0 : 1;
4475 unsigned CS1 : 1;
4476 unsigned CS2 : 1;
4477 unsigned CS3 : 1;
4478 unsigned : 1;
4479 unsigned : 1;
4480 unsigned : 1;
4481 unsigned : 1;
4484 struct
4486 unsigned T5CS : 4;
4487 unsigned : 4;
4490 struct
4492 unsigned CS : 4;
4493 unsigned : 4;
4495 } __T5CLKbits_t;
4497 extern __at(0x021D) volatile __T5CLKbits_t T5CLKbits;
4499 #define _T5CLK_T5CS0 0x01
4500 #define _T5CLK_CS0 0x01
4501 #define _T5CLK_T5CS1 0x02
4502 #define _T5CLK_CS1 0x02
4503 #define _T5CLK_T5CS2 0x04
4504 #define _T5CLK_CS2 0x04
4505 #define _T5CLK_T5CS3 0x08
4506 #define _T5CLK_CS3 0x08
4508 //==============================================================================
4511 //==============================================================================
4512 // TMR5CLK Bits
4514 extern __at(0x021D) __sfr TMR5CLK;
4516 typedef union
4518 struct
4520 unsigned T5CS0 : 1;
4521 unsigned T5CS1 : 1;
4522 unsigned T5CS2 : 1;
4523 unsigned T5CS3 : 1;
4524 unsigned : 1;
4525 unsigned : 1;
4526 unsigned : 1;
4527 unsigned : 1;
4530 struct
4532 unsigned CS0 : 1;
4533 unsigned CS1 : 1;
4534 unsigned CS2 : 1;
4535 unsigned CS3 : 1;
4536 unsigned : 1;
4537 unsigned : 1;
4538 unsigned : 1;
4539 unsigned : 1;
4542 struct
4544 unsigned T5CS : 4;
4545 unsigned : 4;
4548 struct
4550 unsigned CS : 4;
4551 unsigned : 4;
4553 } __TMR5CLKbits_t;
4555 extern __at(0x021D) volatile __TMR5CLKbits_t TMR5CLKbits;
4557 #define _TMR5CLK_T5CS0 0x01
4558 #define _TMR5CLK_CS0 0x01
4559 #define _TMR5CLK_T5CS1 0x02
4560 #define _TMR5CLK_CS1 0x02
4561 #define _TMR5CLK_T5CS2 0x04
4562 #define _TMR5CLK_CS2 0x04
4563 #define _TMR5CLK_T5CS3 0x08
4564 #define _TMR5CLK_CS3 0x08
4566 //==============================================================================
4569 //==============================================================================
4570 // CCPTMRS0 Bits
4572 extern __at(0x021E) __sfr CCPTMRS0;
4574 typedef union
4576 struct
4578 unsigned C1TSEL0 : 1;
4579 unsigned C1TSEL1 : 1;
4580 unsigned C2TSEL0 : 1;
4581 unsigned C2TSEL1 : 1;
4582 unsigned C3TSEL0 : 1;
4583 unsigned C3TSEL1 : 1;
4584 unsigned C4TSEL0 : 1;
4585 unsigned C4TSEL1 : 1;
4588 struct
4590 unsigned C1TSEL : 2;
4591 unsigned : 6;
4594 struct
4596 unsigned : 2;
4597 unsigned C2TSEL : 2;
4598 unsigned : 4;
4601 struct
4603 unsigned : 4;
4604 unsigned C3TSEL : 2;
4605 unsigned : 2;
4608 struct
4610 unsigned : 6;
4611 unsigned C4TSEL : 2;
4613 } __CCPTMRS0bits_t;
4615 extern __at(0x021E) volatile __CCPTMRS0bits_t CCPTMRS0bits;
4617 #define _C1TSEL0 0x01
4618 #define _C1TSEL1 0x02
4619 #define _C2TSEL0 0x04
4620 #define _C2TSEL1 0x08
4621 #define _C3TSEL0 0x10
4622 #define _C3TSEL1 0x20
4623 #define _C4TSEL0 0x40
4624 #define _C4TSEL1 0x80
4626 //==============================================================================
4629 //==============================================================================
4630 // CCPTMRS1 Bits
4632 extern __at(0x021F) __sfr CCPTMRS1;
4634 typedef union
4636 struct
4638 unsigned C5TSEL0 : 1;
4639 unsigned C5TSEL1 : 1;
4640 unsigned P6TSEL0 : 1;
4641 unsigned P6TSEL1 : 1;
4642 unsigned P7TSEL0 : 1;
4643 unsigned P7TSEL1 : 1;
4644 unsigned : 1;
4645 unsigned : 1;
4648 struct
4650 unsigned C5TSEL : 2;
4651 unsigned : 6;
4654 struct
4656 unsigned : 2;
4657 unsigned P6TSEL : 2;
4658 unsigned : 4;
4661 struct
4663 unsigned : 4;
4664 unsigned P7TSEL : 2;
4665 unsigned : 2;
4667 } __CCPTMRS1bits_t;
4669 extern __at(0x021F) volatile __CCPTMRS1bits_t CCPTMRS1bits;
4671 #define _C5TSEL0 0x01
4672 #define _C5TSEL1 0x02
4673 #define _P6TSEL0 0x04
4674 #define _P6TSEL1 0x08
4675 #define _P7TSEL0 0x10
4676 #define _P7TSEL1 0x20
4678 //==============================================================================
4680 extern __at(0x028C) __sfr T2TMR;
4681 extern __at(0x028C) __sfr TMR2;
4682 extern __at(0x028D) __sfr PR2;
4683 extern __at(0x028D) __sfr T2PR;
4685 //==============================================================================
4686 // T2CON Bits
4688 extern __at(0x028E) __sfr T2CON;
4690 typedef union
4692 struct
4694 unsigned T2OUTPS0 : 1;
4695 unsigned T2OUTPS1 : 1;
4696 unsigned T2OUTPS2 : 1;
4697 unsigned T2OUTPS3 : 1;
4698 unsigned T2CKPS0 : 1;
4699 unsigned T2CKPS1 : 1;
4700 unsigned T2CKPS2 : 1;
4701 unsigned ON : 1;
4704 struct
4706 unsigned OUTPS0 : 1;
4707 unsigned OUTPS1 : 1;
4708 unsigned OUTPS2 : 1;
4709 unsigned OUTPS3 : 1;
4710 unsigned CKPS0 : 1;
4711 unsigned CKPS1 : 1;
4712 unsigned CKPS2 : 1;
4713 unsigned T2ON : 1;
4716 struct
4718 unsigned : 1;
4719 unsigned : 1;
4720 unsigned : 1;
4721 unsigned : 1;
4722 unsigned : 1;
4723 unsigned : 1;
4724 unsigned : 1;
4725 unsigned TMR2ON : 1;
4728 struct
4730 unsigned T2OUTPS : 4;
4731 unsigned : 4;
4734 struct
4736 unsigned OUTPS : 4;
4737 unsigned : 4;
4740 struct
4742 unsigned : 4;
4743 unsigned T2CKPS : 3;
4744 unsigned : 1;
4747 struct
4749 unsigned : 4;
4750 unsigned CKPS : 3;
4751 unsigned : 1;
4753 } __T2CONbits_t;
4755 extern __at(0x028E) volatile __T2CONbits_t T2CONbits;
4757 #define _T2CON_T2OUTPS0 0x01
4758 #define _T2CON_OUTPS0 0x01
4759 #define _T2CON_T2OUTPS1 0x02
4760 #define _T2CON_OUTPS1 0x02
4761 #define _T2CON_T2OUTPS2 0x04
4762 #define _T2CON_OUTPS2 0x04
4763 #define _T2CON_T2OUTPS3 0x08
4764 #define _T2CON_OUTPS3 0x08
4765 #define _T2CON_T2CKPS0 0x10
4766 #define _T2CON_CKPS0 0x10
4767 #define _T2CON_T2CKPS1 0x20
4768 #define _T2CON_CKPS1 0x20
4769 #define _T2CON_T2CKPS2 0x40
4770 #define _T2CON_CKPS2 0x40
4771 #define _T2CON_ON 0x80
4772 #define _T2CON_T2ON 0x80
4773 #define _T2CON_TMR2ON 0x80
4775 //==============================================================================
4778 //==============================================================================
4779 // T2HLT Bits
4781 extern __at(0x028F) __sfr T2HLT;
4783 typedef union
4785 struct
4787 unsigned MODE0 : 1;
4788 unsigned MODE1 : 1;
4789 unsigned MODE2 : 1;
4790 unsigned MODE3 : 1;
4791 unsigned MODE4 : 1;
4792 unsigned CKSYNC : 1;
4793 unsigned CKPOL : 1;
4794 unsigned PSYNC : 1;
4797 struct
4799 unsigned T2MODE0 : 1;
4800 unsigned T2MODE1 : 1;
4801 unsigned T2MODE2 : 1;
4802 unsigned T2MODE3 : 1;
4803 unsigned T2MODE4 : 1;
4804 unsigned T2CKSYNC : 1;
4805 unsigned T2CKPOL : 1;
4806 unsigned T2PSYNC : 1;
4809 struct
4811 unsigned MODE : 5;
4812 unsigned : 3;
4815 struct
4817 unsigned T2MODE : 5;
4818 unsigned : 3;
4820 } __T2HLTbits_t;
4822 extern __at(0x028F) volatile __T2HLTbits_t T2HLTbits;
4824 #define _T2HLT_MODE0 0x01
4825 #define _T2HLT_T2MODE0 0x01
4826 #define _T2HLT_MODE1 0x02
4827 #define _T2HLT_T2MODE1 0x02
4828 #define _T2HLT_MODE2 0x04
4829 #define _T2HLT_T2MODE2 0x04
4830 #define _T2HLT_MODE3 0x08
4831 #define _T2HLT_T2MODE3 0x08
4832 #define _T2HLT_MODE4 0x10
4833 #define _T2HLT_T2MODE4 0x10
4834 #define _T2HLT_CKSYNC 0x20
4835 #define _T2HLT_T2CKSYNC 0x20
4836 #define _T2HLT_CKPOL 0x40
4837 #define _T2HLT_T2CKPOL 0x40
4838 #define _T2HLT_PSYNC 0x80
4839 #define _T2HLT_T2PSYNC 0x80
4841 //==============================================================================
4844 //==============================================================================
4845 // T2CLKCON Bits
4847 extern __at(0x0290) __sfr T2CLKCON;
4849 typedef union
4851 struct
4853 unsigned T2CS0 : 1;
4854 unsigned T2CS1 : 1;
4855 unsigned T2CS2 : 1;
4856 unsigned T2CS3 : 1;
4857 unsigned : 1;
4858 unsigned : 1;
4859 unsigned : 1;
4860 unsigned : 1;
4863 struct
4865 unsigned T2CS : 4;
4866 unsigned : 4;
4868 } __T2CLKCONbits_t;
4870 extern __at(0x0290) volatile __T2CLKCONbits_t T2CLKCONbits;
4872 #define _T2CS0 0x01
4873 #define _T2CS1 0x02
4874 #define _T2CS2 0x04
4875 #define _T2CS3 0x08
4877 //==============================================================================
4880 //==============================================================================
4881 // T2RST Bits
4883 extern __at(0x0291) __sfr T2RST;
4885 typedef union
4887 struct
4889 unsigned RSEL0 : 1;
4890 unsigned RSEL1 : 1;
4891 unsigned RSEL2 : 1;
4892 unsigned RSEL3 : 1;
4893 unsigned RSEL4 : 1;
4894 unsigned : 1;
4895 unsigned : 1;
4896 unsigned : 1;
4899 struct
4901 unsigned T2RSEL0 : 1;
4902 unsigned T2RSEL1 : 1;
4903 unsigned T2RSEL2 : 1;
4904 unsigned T2RSEL3 : 1;
4905 unsigned T2RSEL4 : 1;
4906 unsigned : 1;
4907 unsigned : 1;
4908 unsigned : 1;
4911 struct
4913 unsigned RSEL : 5;
4914 unsigned : 3;
4917 struct
4919 unsigned T2RSEL : 5;
4920 unsigned : 3;
4922 } __T2RSTbits_t;
4924 extern __at(0x0291) volatile __T2RSTbits_t T2RSTbits;
4926 #define _RSEL0 0x01
4927 #define _T2RSEL0 0x01
4928 #define _RSEL1 0x02
4929 #define _T2RSEL1 0x02
4930 #define _RSEL2 0x04
4931 #define _T2RSEL2 0x04
4932 #define _RSEL3 0x08
4933 #define _T2RSEL3 0x08
4934 #define _RSEL4 0x10
4935 #define _T2RSEL4 0x10
4937 //==============================================================================
4939 extern __at(0x0292) __sfr T4TMR;
4940 extern __at(0x0292) __sfr TMR4;
4941 extern __at(0x0293) __sfr PR4;
4942 extern __at(0x0293) __sfr T4PR;
4944 //==============================================================================
4945 // T4CON Bits
4947 extern __at(0x0294) __sfr T4CON;
4949 typedef union
4951 struct
4953 unsigned T4OUTPS0 : 1;
4954 unsigned T4OUTPS1 : 1;
4955 unsigned T4OUTPS2 : 1;
4956 unsigned T4OUTPS3 : 1;
4957 unsigned T4CKPS0 : 1;
4958 unsigned T4CKPS1 : 1;
4959 unsigned T4CKPS2 : 1;
4960 unsigned ON : 1;
4963 struct
4965 unsigned OUTPS0 : 1;
4966 unsigned OUTPS1 : 1;
4967 unsigned OUTPS2 : 1;
4968 unsigned OUTPS3 : 1;
4969 unsigned CKPS0 : 1;
4970 unsigned CKPS1 : 1;
4971 unsigned CKPS2 : 1;
4972 unsigned T4ON : 1;
4975 struct
4977 unsigned : 1;
4978 unsigned : 1;
4979 unsigned : 1;
4980 unsigned : 1;
4981 unsigned : 1;
4982 unsigned : 1;
4983 unsigned : 1;
4984 unsigned TMR4ON : 1;
4987 struct
4989 unsigned T4OUTPS : 4;
4990 unsigned : 4;
4993 struct
4995 unsigned OUTPS : 4;
4996 unsigned : 4;
4999 struct
5001 unsigned : 4;
5002 unsigned T4CKPS : 3;
5003 unsigned : 1;
5006 struct
5008 unsigned : 4;
5009 unsigned CKPS : 3;
5010 unsigned : 1;
5012 } __T4CONbits_t;
5014 extern __at(0x0294) volatile __T4CONbits_t T4CONbits;
5016 #define _T4CON_T4OUTPS0 0x01
5017 #define _T4CON_OUTPS0 0x01
5018 #define _T4CON_T4OUTPS1 0x02
5019 #define _T4CON_OUTPS1 0x02
5020 #define _T4CON_T4OUTPS2 0x04
5021 #define _T4CON_OUTPS2 0x04
5022 #define _T4CON_T4OUTPS3 0x08
5023 #define _T4CON_OUTPS3 0x08
5024 #define _T4CON_T4CKPS0 0x10
5025 #define _T4CON_CKPS0 0x10
5026 #define _T4CON_T4CKPS1 0x20
5027 #define _T4CON_CKPS1 0x20
5028 #define _T4CON_T4CKPS2 0x40
5029 #define _T4CON_CKPS2 0x40
5030 #define _T4CON_ON 0x80
5031 #define _T4CON_T4ON 0x80
5032 #define _T4CON_TMR4ON 0x80
5034 //==============================================================================
5037 //==============================================================================
5038 // T4HLT Bits
5040 extern __at(0x0295) __sfr T4HLT;
5042 typedef union
5044 struct
5046 unsigned MODE0 : 1;
5047 unsigned MODE1 : 1;
5048 unsigned MODE2 : 1;
5049 unsigned MODE3 : 1;
5050 unsigned MODE4 : 1;
5051 unsigned CKSYNC : 1;
5052 unsigned CKPOL : 1;
5053 unsigned PSYNC : 1;
5056 struct
5058 unsigned T4MODE0 : 1;
5059 unsigned T4MODE1 : 1;
5060 unsigned T4MODE2 : 1;
5061 unsigned T4MODE3 : 1;
5062 unsigned T4MODE4 : 1;
5063 unsigned T4CKSYNC : 1;
5064 unsigned T4CKPOL : 1;
5065 unsigned T4PSYNC : 1;
5068 struct
5070 unsigned MODE : 5;
5071 unsigned : 3;
5074 struct
5076 unsigned T4MODE : 5;
5077 unsigned : 3;
5079 } __T4HLTbits_t;
5081 extern __at(0x0295) volatile __T4HLTbits_t T4HLTbits;
5083 #define _T4HLT_MODE0 0x01
5084 #define _T4HLT_T4MODE0 0x01
5085 #define _T4HLT_MODE1 0x02
5086 #define _T4HLT_T4MODE1 0x02
5087 #define _T4HLT_MODE2 0x04
5088 #define _T4HLT_T4MODE2 0x04
5089 #define _T4HLT_MODE3 0x08
5090 #define _T4HLT_T4MODE3 0x08
5091 #define _T4HLT_MODE4 0x10
5092 #define _T4HLT_T4MODE4 0x10
5093 #define _T4HLT_CKSYNC 0x20
5094 #define _T4HLT_T4CKSYNC 0x20
5095 #define _T4HLT_CKPOL 0x40
5096 #define _T4HLT_T4CKPOL 0x40
5097 #define _T4HLT_PSYNC 0x80
5098 #define _T4HLT_T4PSYNC 0x80
5100 //==============================================================================
5103 //==============================================================================
5104 // T4CLKCON Bits
5106 extern __at(0x0296) __sfr T4CLKCON;
5108 typedef union
5110 struct
5112 unsigned T4CS0 : 1;
5113 unsigned T4CS1 : 1;
5114 unsigned T4CS2 : 1;
5115 unsigned T4CS3 : 1;
5116 unsigned : 1;
5117 unsigned : 1;
5118 unsigned : 1;
5119 unsigned : 1;
5122 struct
5124 unsigned T4CS : 4;
5125 unsigned : 4;
5127 } __T4CLKCONbits_t;
5129 extern __at(0x0296) volatile __T4CLKCONbits_t T4CLKCONbits;
5131 #define _T4CS0 0x01
5132 #define _T4CS1 0x02
5133 #define _T4CS2 0x04
5134 #define _T4CS3 0x08
5136 //==============================================================================
5139 //==============================================================================
5140 // T4RST Bits
5142 extern __at(0x0297) __sfr T4RST;
5144 typedef union
5146 struct
5148 unsigned RSEL0 : 1;
5149 unsigned RSEL1 : 1;
5150 unsigned RSEL2 : 1;
5151 unsigned RSEL3 : 1;
5152 unsigned RSEL4 : 1;
5153 unsigned : 1;
5154 unsigned : 1;
5155 unsigned : 1;
5158 struct
5160 unsigned T4RSEL0 : 1;
5161 unsigned T4RSEL1 : 1;
5162 unsigned T4RSEL2 : 1;
5163 unsigned T4RSEL3 : 1;
5164 unsigned T4RSEL4 : 1;
5165 unsigned : 1;
5166 unsigned : 1;
5167 unsigned : 1;
5170 struct
5172 unsigned RSEL : 5;
5173 unsigned : 3;
5176 struct
5178 unsigned T4RSEL : 5;
5179 unsigned : 3;
5181 } __T4RSTbits_t;
5183 extern __at(0x0297) volatile __T4RSTbits_t T4RSTbits;
5185 #define _T4RST_RSEL0 0x01
5186 #define _T4RST_T4RSEL0 0x01
5187 #define _T4RST_RSEL1 0x02
5188 #define _T4RST_T4RSEL1 0x02
5189 #define _T4RST_RSEL2 0x04
5190 #define _T4RST_T4RSEL2 0x04
5191 #define _T4RST_RSEL3 0x08
5192 #define _T4RST_T4RSEL3 0x08
5193 #define _T4RST_RSEL4 0x10
5194 #define _T4RST_T4RSEL4 0x10
5196 //==============================================================================
5198 extern __at(0x0298) __sfr T6TMR;
5199 extern __at(0x0298) __sfr TMR6;
5200 extern __at(0x0299) __sfr PR6;
5201 extern __at(0x0299) __sfr T6PR;
5203 //==============================================================================
5204 // T6CON Bits
5206 extern __at(0x029A) __sfr T6CON;
5208 typedef union
5210 struct
5212 unsigned T6OUTPS0 : 1;
5213 unsigned T6OUTPS1 : 1;
5214 unsigned T6OUTPS2 : 1;
5215 unsigned T6OUTPS3 : 1;
5216 unsigned T6CKPS0 : 1;
5217 unsigned T6CKPS1 : 1;
5218 unsigned T6CKPS2 : 1;
5219 unsigned ON : 1;
5222 struct
5224 unsigned OUTPS0 : 1;
5225 unsigned OUTPS1 : 1;
5226 unsigned OUTPS2 : 1;
5227 unsigned OUTPS3 : 1;
5228 unsigned CKPS0 : 1;
5229 unsigned CKPS1 : 1;
5230 unsigned CKPS2 : 1;
5231 unsigned T6ON : 1;
5234 struct
5236 unsigned : 1;
5237 unsigned : 1;
5238 unsigned : 1;
5239 unsigned : 1;
5240 unsigned : 1;
5241 unsigned : 1;
5242 unsigned : 1;
5243 unsigned TMR6ON : 1;
5246 struct
5248 unsigned T6OUTPS : 4;
5249 unsigned : 4;
5252 struct
5254 unsigned OUTPS : 4;
5255 unsigned : 4;
5258 struct
5260 unsigned : 4;
5261 unsigned T6CKPS : 3;
5262 unsigned : 1;
5265 struct
5267 unsigned : 4;
5268 unsigned CKPS : 3;
5269 unsigned : 1;
5271 } __T6CONbits_t;
5273 extern __at(0x029A) volatile __T6CONbits_t T6CONbits;
5275 #define _T6CON_T6OUTPS0 0x01
5276 #define _T6CON_OUTPS0 0x01
5277 #define _T6CON_T6OUTPS1 0x02
5278 #define _T6CON_OUTPS1 0x02
5279 #define _T6CON_T6OUTPS2 0x04
5280 #define _T6CON_OUTPS2 0x04
5281 #define _T6CON_T6OUTPS3 0x08
5282 #define _T6CON_OUTPS3 0x08
5283 #define _T6CON_T6CKPS0 0x10
5284 #define _T6CON_CKPS0 0x10
5285 #define _T6CON_T6CKPS1 0x20
5286 #define _T6CON_CKPS1 0x20
5287 #define _T6CON_T6CKPS2 0x40
5288 #define _T6CON_CKPS2 0x40
5289 #define _T6CON_ON 0x80
5290 #define _T6CON_T6ON 0x80
5291 #define _T6CON_TMR6ON 0x80
5293 //==============================================================================
5296 //==============================================================================
5297 // T6HLT Bits
5299 extern __at(0x029B) __sfr T6HLT;
5301 typedef union
5303 struct
5305 unsigned MODE0 : 1;
5306 unsigned MODE1 : 1;
5307 unsigned MODE2 : 1;
5308 unsigned MODE3 : 1;
5309 unsigned MODE4 : 1;
5310 unsigned CKSYNC : 1;
5311 unsigned CKPOL : 1;
5312 unsigned PSYNC : 1;
5315 struct
5317 unsigned T6MODE0 : 1;
5318 unsigned T6MODE1 : 1;
5319 unsigned T6MODE2 : 1;
5320 unsigned T6MODE3 : 1;
5321 unsigned T6MODE4 : 1;
5322 unsigned T6CKSYNC : 1;
5323 unsigned T6CKPOL : 1;
5324 unsigned T6PSYNC : 1;
5327 struct
5329 unsigned T6MODE : 5;
5330 unsigned : 3;
5333 struct
5335 unsigned MODE : 5;
5336 unsigned : 3;
5338 } __T6HLTbits_t;
5340 extern __at(0x029B) volatile __T6HLTbits_t T6HLTbits;
5342 #define _T6HLT_MODE0 0x01
5343 #define _T6HLT_T6MODE0 0x01
5344 #define _T6HLT_MODE1 0x02
5345 #define _T6HLT_T6MODE1 0x02
5346 #define _T6HLT_MODE2 0x04
5347 #define _T6HLT_T6MODE2 0x04
5348 #define _T6HLT_MODE3 0x08
5349 #define _T6HLT_T6MODE3 0x08
5350 #define _T6HLT_MODE4 0x10
5351 #define _T6HLT_T6MODE4 0x10
5352 #define _T6HLT_CKSYNC 0x20
5353 #define _T6HLT_T6CKSYNC 0x20
5354 #define _T6HLT_CKPOL 0x40
5355 #define _T6HLT_T6CKPOL 0x40
5356 #define _T6HLT_PSYNC 0x80
5357 #define _T6HLT_T6PSYNC 0x80
5359 //==============================================================================
5362 //==============================================================================
5363 // T6CLKCON Bits
5365 extern __at(0x029C) __sfr T6CLKCON;
5367 typedef union
5369 struct
5371 unsigned T6CS0 : 1;
5372 unsigned T6CS1 : 1;
5373 unsigned T6CS2 : 1;
5374 unsigned T6CS3 : 1;
5375 unsigned : 1;
5376 unsigned : 1;
5377 unsigned : 1;
5378 unsigned : 1;
5381 struct
5383 unsigned T6CS : 4;
5384 unsigned : 4;
5386 } __T6CLKCONbits_t;
5388 extern __at(0x029C) volatile __T6CLKCONbits_t T6CLKCONbits;
5390 #define _T6CS0 0x01
5391 #define _T6CS1 0x02
5392 #define _T6CS2 0x04
5393 #define _T6CS3 0x08
5395 //==============================================================================
5398 //==============================================================================
5399 // T6RST Bits
5401 extern __at(0x029D) __sfr T6RST;
5403 typedef union
5405 struct
5407 unsigned RSEL0 : 1;
5408 unsigned RSEL1 : 1;
5409 unsigned RSEL2 : 1;
5410 unsigned RSEL3 : 1;
5411 unsigned RSEL4 : 1;
5412 unsigned : 1;
5413 unsigned : 1;
5414 unsigned : 1;
5417 struct
5419 unsigned T6RSEL0 : 1;
5420 unsigned T6RSEL1 : 1;
5421 unsigned T6RSEL2 : 1;
5422 unsigned T6RSEL3 : 1;
5423 unsigned T6RSEL4 : 1;
5424 unsigned : 1;
5425 unsigned : 1;
5426 unsigned : 1;
5429 struct
5431 unsigned RSEL : 5;
5432 unsigned : 3;
5435 struct
5437 unsigned T6RSEL : 5;
5438 unsigned : 3;
5440 } __T6RSTbits_t;
5442 extern __at(0x029D) volatile __T6RSTbits_t T6RSTbits;
5444 #define _T6RST_RSEL0 0x01
5445 #define _T6RST_T6RSEL0 0x01
5446 #define _T6RST_RSEL1 0x02
5447 #define _T6RST_T6RSEL1 0x02
5448 #define _T6RST_RSEL2 0x04
5449 #define _T6RST_T6RSEL2 0x04
5450 #define _T6RST_RSEL3 0x08
5451 #define _T6RST_T6RSEL3 0x08
5452 #define _T6RST_RSEL4 0x10
5453 #define _T6RST_T6RSEL4 0x10
5455 //==============================================================================
5457 extern __at(0x030C) __sfr CCPR1;
5458 extern __at(0x030C) __sfr CCPR1L;
5459 extern __at(0x030D) __sfr CCPR1H;
5461 //==============================================================================
5462 // CCP1CON Bits
5464 extern __at(0x030E) __sfr CCP1CON;
5466 typedef union
5468 struct
5470 unsigned MODE0 : 1;
5471 unsigned MODE1 : 1;
5472 unsigned MODE2 : 1;
5473 unsigned MODE3 : 1;
5474 unsigned FMT : 1;
5475 unsigned OUT : 1;
5476 unsigned OE : 1;
5477 unsigned EN : 1;
5480 struct
5482 unsigned CCP1MODE0 : 1;
5483 unsigned CCP1MODE1 : 1;
5484 unsigned CCP1MODE2 : 1;
5485 unsigned CCP1MODE3 : 1;
5486 unsigned CCP1FMT : 1;
5487 unsigned CCP1OUT : 1;
5488 unsigned CCP1OE : 1;
5489 unsigned CCP1EN : 1;
5492 struct
5494 unsigned MODE : 4;
5495 unsigned : 4;
5498 struct
5500 unsigned CCP1MODE : 4;
5501 unsigned : 4;
5503 } __CCP1CONbits_t;
5505 extern __at(0x030E) volatile __CCP1CONbits_t CCP1CONbits;
5507 #define _MODE0 0x01
5508 #define _CCP1MODE0 0x01
5509 #define _MODE1 0x02
5510 #define _CCP1MODE1 0x02
5511 #define _MODE2 0x04
5512 #define _CCP1MODE2 0x04
5513 #define _MODE3 0x08
5514 #define _CCP1MODE3 0x08
5515 #define _FMT 0x10
5516 #define _CCP1FMT 0x10
5517 #define _OUT 0x20
5518 #define _CCP1OUT 0x20
5519 #define _OE 0x40
5520 #define _CCP1OE 0x40
5521 #define _EN 0x80
5522 #define _CCP1EN 0x80
5524 //==============================================================================
5527 //==============================================================================
5528 // CCP1CAP Bits
5530 extern __at(0x030F) __sfr CCP1CAP;
5532 typedef union
5534 struct
5536 unsigned CTS0 : 1;
5537 unsigned CTS1 : 1;
5538 unsigned CTS2 : 1;
5539 unsigned : 1;
5540 unsigned : 1;
5541 unsigned : 1;
5542 unsigned : 1;
5543 unsigned : 1;
5546 struct
5548 unsigned CCP1CTS0 : 1;
5549 unsigned CCP1CTS1 : 1;
5550 unsigned CCP1CTS2 : 1;
5551 unsigned : 1;
5552 unsigned : 1;
5553 unsigned : 1;
5554 unsigned : 1;
5555 unsigned : 1;
5558 struct
5560 unsigned CTS : 3;
5561 unsigned : 5;
5564 struct
5566 unsigned CCP1CTS : 3;
5567 unsigned : 5;
5569 } __CCP1CAPbits_t;
5571 extern __at(0x030F) volatile __CCP1CAPbits_t CCP1CAPbits;
5573 #define _CTS0 0x01
5574 #define _CCP1CTS0 0x01
5575 #define _CTS1 0x02
5576 #define _CCP1CTS1 0x02
5577 #define _CTS2 0x04
5578 #define _CCP1CTS2 0x04
5580 //==============================================================================
5582 extern __at(0x0310) __sfr CCPR2;
5583 extern __at(0x0310) __sfr CCPR2L;
5584 extern __at(0x0311) __sfr CCPR2H;
5586 //==============================================================================
5587 // CCP2CON Bits
5589 extern __at(0x0312) __sfr CCP2CON;
5591 typedef union
5593 struct
5595 unsigned MODE0 : 1;
5596 unsigned MODE1 : 1;
5597 unsigned MODE2 : 1;
5598 unsigned MODE3 : 1;
5599 unsigned FMT : 1;
5600 unsigned OUT : 1;
5601 unsigned OE : 1;
5602 unsigned EN : 1;
5605 struct
5607 unsigned CCP2MODE0 : 1;
5608 unsigned CCP2MODE1 : 1;
5609 unsigned CCP2MODE2 : 1;
5610 unsigned CCP2MODE3 : 1;
5611 unsigned CCP2FMT : 1;
5612 unsigned CCP2OUT : 1;
5613 unsigned CCP2OE : 1;
5614 unsigned CCP2EN : 1;
5617 struct
5619 unsigned CCP2MODE : 4;
5620 unsigned : 4;
5623 struct
5625 unsigned MODE : 4;
5626 unsigned : 4;
5628 } __CCP2CONbits_t;
5630 extern __at(0x0312) volatile __CCP2CONbits_t CCP2CONbits;
5632 #define _CCP2CON_MODE0 0x01
5633 #define _CCP2CON_CCP2MODE0 0x01
5634 #define _CCP2CON_MODE1 0x02
5635 #define _CCP2CON_CCP2MODE1 0x02
5636 #define _CCP2CON_MODE2 0x04
5637 #define _CCP2CON_CCP2MODE2 0x04
5638 #define _CCP2CON_MODE3 0x08
5639 #define _CCP2CON_CCP2MODE3 0x08
5640 #define _CCP2CON_FMT 0x10
5641 #define _CCP2CON_CCP2FMT 0x10
5642 #define _CCP2CON_OUT 0x20
5643 #define _CCP2CON_CCP2OUT 0x20
5644 #define _CCP2CON_OE 0x40
5645 #define _CCP2CON_CCP2OE 0x40
5646 #define _CCP2CON_EN 0x80
5647 #define _CCP2CON_CCP2EN 0x80
5649 //==============================================================================
5652 //==============================================================================
5653 // CCP2CAP Bits
5655 extern __at(0x0313) __sfr CCP2CAP;
5657 typedef union
5659 struct
5661 unsigned CTS0 : 1;
5662 unsigned CTS1 : 1;
5663 unsigned CTS2 : 1;
5664 unsigned : 1;
5665 unsigned : 1;
5666 unsigned : 1;
5667 unsigned : 1;
5668 unsigned : 1;
5671 struct
5673 unsigned CCP2CTS0 : 1;
5674 unsigned CCP2CTS1 : 1;
5675 unsigned CCP2CTS2 : 1;
5676 unsigned : 1;
5677 unsigned : 1;
5678 unsigned : 1;
5679 unsigned : 1;
5680 unsigned : 1;
5683 struct
5685 unsigned CTS : 3;
5686 unsigned : 5;
5689 struct
5691 unsigned CCP2CTS : 3;
5692 unsigned : 5;
5694 } __CCP2CAPbits_t;
5696 extern __at(0x0313) volatile __CCP2CAPbits_t CCP2CAPbits;
5698 #define _CCP2CAP_CTS0 0x01
5699 #define _CCP2CAP_CCP2CTS0 0x01
5700 #define _CCP2CAP_CTS1 0x02
5701 #define _CCP2CAP_CCP2CTS1 0x02
5702 #define _CCP2CAP_CTS2 0x04
5703 #define _CCP2CAP_CCP2CTS2 0x04
5705 //==============================================================================
5707 extern __at(0x0314) __sfr CCPR3;
5708 extern __at(0x0314) __sfr CCPR3L;
5709 extern __at(0x0315) __sfr CCPR3H;
5711 //==============================================================================
5712 // CCP3CON Bits
5714 extern __at(0x0316) __sfr CCP3CON;
5716 typedef union
5718 struct
5720 unsigned MODE0 : 1;
5721 unsigned MODE1 : 1;
5722 unsigned MODE2 : 1;
5723 unsigned MODE3 : 1;
5724 unsigned FMT : 1;
5725 unsigned OUT : 1;
5726 unsigned OE : 1;
5727 unsigned EN : 1;
5730 struct
5732 unsigned CCP3MODE0 : 1;
5733 unsigned CCP3MODE1 : 1;
5734 unsigned CCP3MODE2 : 1;
5735 unsigned CCP3MODE3 : 1;
5736 unsigned CCP3FMT : 1;
5737 unsigned CCP3OUT : 1;
5738 unsigned CCP3OE : 1;
5739 unsigned CCP3EN : 1;
5742 struct
5744 unsigned MODE : 4;
5745 unsigned : 4;
5748 struct
5750 unsigned CCP3MODE : 4;
5751 unsigned : 4;
5753 } __CCP3CONbits_t;
5755 extern __at(0x0316) volatile __CCP3CONbits_t CCP3CONbits;
5757 #define _CCP3CON_MODE0 0x01
5758 #define _CCP3CON_CCP3MODE0 0x01
5759 #define _CCP3CON_MODE1 0x02
5760 #define _CCP3CON_CCP3MODE1 0x02
5761 #define _CCP3CON_MODE2 0x04
5762 #define _CCP3CON_CCP3MODE2 0x04
5763 #define _CCP3CON_MODE3 0x08
5764 #define _CCP3CON_CCP3MODE3 0x08
5765 #define _CCP3CON_FMT 0x10
5766 #define _CCP3CON_CCP3FMT 0x10
5767 #define _CCP3CON_OUT 0x20
5768 #define _CCP3CON_CCP3OUT 0x20
5769 #define _CCP3CON_OE 0x40
5770 #define _CCP3CON_CCP3OE 0x40
5771 #define _CCP3CON_EN 0x80
5772 #define _CCP3CON_CCP3EN 0x80
5774 //==============================================================================
5777 //==============================================================================
5778 // CCP3CAP Bits
5780 extern __at(0x0317) __sfr CCP3CAP;
5782 typedef union
5784 struct
5786 unsigned CTS0 : 1;
5787 unsigned CTS1 : 1;
5788 unsigned CTS2 : 1;
5789 unsigned : 1;
5790 unsigned : 1;
5791 unsigned : 1;
5792 unsigned : 1;
5793 unsigned : 1;
5796 struct
5798 unsigned CCP3CTS0 : 1;
5799 unsigned CCP3CTS1 : 1;
5800 unsigned CCP3CTS2 : 1;
5801 unsigned : 1;
5802 unsigned : 1;
5803 unsigned : 1;
5804 unsigned : 1;
5805 unsigned : 1;
5808 struct
5810 unsigned CCP3CTS : 3;
5811 unsigned : 5;
5814 struct
5816 unsigned CTS : 3;
5817 unsigned : 5;
5819 } __CCP3CAPbits_t;
5821 extern __at(0x0317) volatile __CCP3CAPbits_t CCP3CAPbits;
5823 #define _CCP3CAP_CTS0 0x01
5824 #define _CCP3CAP_CCP3CTS0 0x01
5825 #define _CCP3CAP_CTS1 0x02
5826 #define _CCP3CAP_CCP3CTS1 0x02
5827 #define _CCP3CAP_CTS2 0x04
5828 #define _CCP3CAP_CCP3CTS2 0x04
5830 //==============================================================================
5832 extern __at(0x0318) __sfr CCPR4;
5833 extern __at(0x0318) __sfr CCPR4L;
5834 extern __at(0x0319) __sfr CCPR4H;
5836 //==============================================================================
5837 // CCP4CON Bits
5839 extern __at(0x031A) __sfr CCP4CON;
5841 typedef union
5843 struct
5845 unsigned MODE0 : 1;
5846 unsigned MODE1 : 1;
5847 unsigned MODE2 : 1;
5848 unsigned MODE3 : 1;
5849 unsigned FMT : 1;
5850 unsigned OUT : 1;
5851 unsigned OE : 1;
5852 unsigned EN : 1;
5855 struct
5857 unsigned CCP4MODE0 : 1;
5858 unsigned CCP4MODE1 : 1;
5859 unsigned CCP4MODE2 : 1;
5860 unsigned CCP4MODE3 : 1;
5861 unsigned CCP4FMT : 1;
5862 unsigned CCP4OUT : 1;
5863 unsigned CCP4OE : 1;
5864 unsigned CCP4EN : 1;
5867 struct
5869 unsigned MODE : 4;
5870 unsigned : 4;
5873 struct
5875 unsigned CCP4MODE : 4;
5876 unsigned : 4;
5878 } __CCP4CONbits_t;
5880 extern __at(0x031A) volatile __CCP4CONbits_t CCP4CONbits;
5882 #define _CCP4CON_MODE0 0x01
5883 #define _CCP4CON_CCP4MODE0 0x01
5884 #define _CCP4CON_MODE1 0x02
5885 #define _CCP4CON_CCP4MODE1 0x02
5886 #define _CCP4CON_MODE2 0x04
5887 #define _CCP4CON_CCP4MODE2 0x04
5888 #define _CCP4CON_MODE3 0x08
5889 #define _CCP4CON_CCP4MODE3 0x08
5890 #define _CCP4CON_FMT 0x10
5891 #define _CCP4CON_CCP4FMT 0x10
5892 #define _CCP4CON_OUT 0x20
5893 #define _CCP4CON_CCP4OUT 0x20
5894 #define _CCP4CON_OE 0x40
5895 #define _CCP4CON_CCP4OE 0x40
5896 #define _CCP4CON_EN 0x80
5897 #define _CCP4CON_CCP4EN 0x80
5899 //==============================================================================
5902 //==============================================================================
5903 // CCP4CAP Bits
5905 extern __at(0x031B) __sfr CCP4CAP;
5907 typedef union
5909 struct
5911 unsigned CTS0 : 1;
5912 unsigned CTS1 : 1;
5913 unsigned CTS2 : 1;
5914 unsigned : 1;
5915 unsigned : 1;
5916 unsigned : 1;
5917 unsigned : 1;
5918 unsigned : 1;
5921 struct
5923 unsigned CCP4CTS0 : 1;
5924 unsigned CCP4CTS1 : 1;
5925 unsigned CCP4CTS2 : 1;
5926 unsigned : 1;
5927 unsigned : 1;
5928 unsigned : 1;
5929 unsigned : 1;
5930 unsigned : 1;
5933 struct
5935 unsigned CCP4CTS : 3;
5936 unsigned : 5;
5939 struct
5941 unsigned CTS : 3;
5942 unsigned : 5;
5944 } __CCP4CAPbits_t;
5946 extern __at(0x031B) volatile __CCP4CAPbits_t CCP4CAPbits;
5948 #define _CCP4CAP_CTS0 0x01
5949 #define _CCP4CAP_CCP4CTS0 0x01
5950 #define _CCP4CAP_CTS1 0x02
5951 #define _CCP4CAP_CCP4CTS1 0x02
5952 #define _CCP4CAP_CTS2 0x04
5953 #define _CCP4CAP_CCP4CTS2 0x04
5955 //==============================================================================
5957 extern __at(0x031C) __sfr CCPR5;
5958 extern __at(0x031C) __sfr CCPR5L;
5959 extern __at(0x031D) __sfr CCPR5H;
5961 //==============================================================================
5962 // CCP5CON Bits
5964 extern __at(0x031E) __sfr CCP5CON;
5966 typedef union
5968 struct
5970 unsigned MODE0 : 1;
5971 unsigned MODE1 : 1;
5972 unsigned MODE2 : 1;
5973 unsigned MODE3 : 1;
5974 unsigned FMT : 1;
5975 unsigned OUT : 1;
5976 unsigned OE : 1;
5977 unsigned EN : 1;
5980 struct
5982 unsigned CCP5MODE0 : 1;
5983 unsigned CCP5MODE1 : 1;
5984 unsigned CCP5MODE2 : 1;
5985 unsigned CCP5MODE3 : 1;
5986 unsigned CCP5FMT : 1;
5987 unsigned CCP5OUT : 1;
5988 unsigned CCP5OE : 1;
5989 unsigned CCP5EN : 1;
5992 struct
5994 unsigned CCP5MODE : 4;
5995 unsigned : 4;
5998 struct
6000 unsigned MODE : 4;
6001 unsigned : 4;
6003 } __CCP5CONbits_t;
6005 extern __at(0x031E) volatile __CCP5CONbits_t CCP5CONbits;
6007 #define _CCP5CON_MODE0 0x01
6008 #define _CCP5CON_CCP5MODE0 0x01
6009 #define _CCP5CON_MODE1 0x02
6010 #define _CCP5CON_CCP5MODE1 0x02
6011 #define _CCP5CON_MODE2 0x04
6012 #define _CCP5CON_CCP5MODE2 0x04
6013 #define _CCP5CON_MODE3 0x08
6014 #define _CCP5CON_CCP5MODE3 0x08
6015 #define _CCP5CON_FMT 0x10
6016 #define _CCP5CON_CCP5FMT 0x10
6017 #define _CCP5CON_OUT 0x20
6018 #define _CCP5CON_CCP5OUT 0x20
6019 #define _CCP5CON_OE 0x40
6020 #define _CCP5CON_CCP5OE 0x40
6021 #define _CCP5CON_EN 0x80
6022 #define _CCP5CON_CCP5EN 0x80
6024 //==============================================================================
6027 //==============================================================================
6028 // CCP5CAP Bits
6030 extern __at(0x031F) __sfr CCP5CAP;
6032 typedef union
6034 struct
6036 unsigned CTS0 : 1;
6037 unsigned CTS1 : 1;
6038 unsigned CTS2 : 1;
6039 unsigned : 1;
6040 unsigned : 1;
6041 unsigned : 1;
6042 unsigned : 1;
6043 unsigned : 1;
6046 struct
6048 unsigned CCP5CTS0 : 1;
6049 unsigned CCP5CTS1 : 1;
6050 unsigned CCP5CTS2 : 1;
6051 unsigned : 1;
6052 unsigned : 1;
6053 unsigned : 1;
6054 unsigned : 1;
6055 unsigned : 1;
6058 struct
6060 unsigned CTS : 3;
6061 unsigned : 5;
6064 struct
6066 unsigned CCP5CTS : 3;
6067 unsigned : 5;
6069 } __CCP5CAPbits_t;
6071 extern __at(0x031F) volatile __CCP5CAPbits_t CCP5CAPbits;
6073 #define _CCP5CAP_CTS0 0x01
6074 #define _CCP5CAP_CCP5CTS0 0x01
6075 #define _CCP5CAP_CTS1 0x02
6076 #define _CCP5CAP_CCP5CTS1 0x02
6077 #define _CCP5CAP_CTS2 0x04
6078 #define _CCP5CAP_CCP5CTS2 0x04
6080 //==============================================================================
6083 //==============================================================================
6084 // PWM6DCL Bits
6086 extern __at(0x038C) __sfr PWM6DCL;
6088 typedef union
6090 struct
6092 unsigned : 1;
6093 unsigned : 1;
6094 unsigned : 1;
6095 unsigned : 1;
6096 unsigned : 1;
6097 unsigned : 1;
6098 unsigned DC0 : 1;
6099 unsigned DC1 : 1;
6102 struct
6104 unsigned : 1;
6105 unsigned : 1;
6106 unsigned : 1;
6107 unsigned : 1;
6108 unsigned : 1;
6109 unsigned : 1;
6110 unsigned PWM6DC0 : 1;
6111 unsigned PWM6DC1 : 1;
6114 struct
6116 unsigned : 1;
6117 unsigned : 1;
6118 unsigned : 1;
6119 unsigned : 1;
6120 unsigned : 1;
6121 unsigned : 1;
6122 unsigned PWMPW0 : 1;
6123 unsigned PWMPW1 : 1;
6126 struct
6128 unsigned : 6;
6129 unsigned PWM6DC : 2;
6132 struct
6134 unsigned : 6;
6135 unsigned DC : 2;
6138 struct
6140 unsigned : 6;
6141 unsigned PWMPW : 2;
6143 } __PWM6DCLbits_t;
6145 extern __at(0x038C) volatile __PWM6DCLbits_t PWM6DCLbits;
6147 #define _DC0 0x40
6148 #define _PWM6DC0 0x40
6149 #define _PWMPW0 0x40
6150 #define _DC1 0x80
6151 #define _PWM6DC1 0x80
6152 #define _PWMPW1 0x80
6154 //==============================================================================
6157 //==============================================================================
6158 // PWM6DCH Bits
6160 extern __at(0x038D) __sfr PWM6DCH;
6162 typedef union
6164 struct
6166 unsigned DC2 : 1;
6167 unsigned DC3 : 1;
6168 unsigned DC4 : 1;
6169 unsigned DC5 : 1;
6170 unsigned DC6 : 1;
6171 unsigned DC7 : 1;
6172 unsigned DC8 : 1;
6173 unsigned DC9 : 1;
6176 struct
6178 unsigned PWM6DC2 : 1;
6179 unsigned PWM6DC3 : 1;
6180 unsigned PWM6DC4 : 1;
6181 unsigned PWM6DC5 : 1;
6182 unsigned PWM6DC6 : 1;
6183 unsigned PWM6DC7 : 1;
6184 unsigned PWM6DC8 : 1;
6185 unsigned PWM6DC9 : 1;
6188 struct
6190 unsigned PWMPW2 : 1;
6191 unsigned PWMPW3 : 1;
6192 unsigned PWMPW4 : 1;
6193 unsigned PWMPW5 : 1;
6194 unsigned PWMPW6 : 1;
6195 unsigned PWMPW7 : 1;
6196 unsigned PWMPW8 : 1;
6197 unsigned PWMPW9 : 1;
6199 } __PWM6DCHbits_t;
6201 extern __at(0x038D) volatile __PWM6DCHbits_t PWM6DCHbits;
6203 #define _DC2 0x01
6204 #define _PWM6DC2 0x01
6205 #define _PWMPW2 0x01
6206 #define _DC3 0x02
6207 #define _PWM6DC3 0x02
6208 #define _PWMPW3 0x02
6209 #define _DC4 0x04
6210 #define _PWM6DC4 0x04
6211 #define _PWMPW4 0x04
6212 #define _DC5 0x08
6213 #define _PWM6DC5 0x08
6214 #define _PWMPW5 0x08
6215 #define _DC6 0x10
6216 #define _PWM6DC6 0x10
6217 #define _PWMPW6 0x10
6218 #define _DC7 0x20
6219 #define _PWM6DC7 0x20
6220 #define _PWMPW7 0x20
6221 #define _DC8 0x40
6222 #define _PWM6DC8 0x40
6223 #define _PWMPW8 0x40
6224 #define _DC9 0x80
6225 #define _PWM6DC9 0x80
6226 #define _PWMPW9 0x80
6228 //==============================================================================
6231 //==============================================================================
6232 // PWM6CON Bits
6234 extern __at(0x038E) __sfr PWM6CON;
6236 typedef union
6238 struct
6240 unsigned : 1;
6241 unsigned : 1;
6242 unsigned : 1;
6243 unsigned : 1;
6244 unsigned POL : 1;
6245 unsigned OUT : 1;
6246 unsigned OE : 1;
6247 unsigned EN : 1;
6250 struct
6252 unsigned : 1;
6253 unsigned : 1;
6254 unsigned : 1;
6255 unsigned : 1;
6256 unsigned PWM6POL : 1;
6257 unsigned PWM6OUT : 1;
6258 unsigned PWM6OE : 1;
6259 unsigned PWM6EN : 1;
6261 } __PWM6CONbits_t;
6263 extern __at(0x038E) volatile __PWM6CONbits_t PWM6CONbits;
6265 #define _PWM6CON_POL 0x10
6266 #define _PWM6CON_PWM6POL 0x10
6267 #define _PWM6CON_OUT 0x20
6268 #define _PWM6CON_PWM6OUT 0x20
6269 #define _PWM6CON_OE 0x40
6270 #define _PWM6CON_PWM6OE 0x40
6271 #define _PWM6CON_EN 0x80
6272 #define _PWM6CON_PWM6EN 0x80
6274 //==============================================================================
6277 //==============================================================================
6278 // PWM7DCL Bits
6280 extern __at(0x0390) __sfr PWM7DCL;
6282 typedef union
6284 struct
6286 unsigned : 1;
6287 unsigned : 1;
6288 unsigned : 1;
6289 unsigned : 1;
6290 unsigned : 1;
6291 unsigned : 1;
6292 unsigned DC0 : 1;
6293 unsigned DC1 : 1;
6296 struct
6298 unsigned : 1;
6299 unsigned : 1;
6300 unsigned : 1;
6301 unsigned : 1;
6302 unsigned : 1;
6303 unsigned : 1;
6304 unsigned PWM7DC0 : 1;
6305 unsigned PWM7DC1 : 1;
6308 struct
6310 unsigned : 1;
6311 unsigned : 1;
6312 unsigned : 1;
6313 unsigned : 1;
6314 unsigned : 1;
6315 unsigned : 1;
6316 unsigned PWMPW0 : 1;
6317 unsigned PWMPW1 : 1;
6320 struct
6322 unsigned : 6;
6323 unsigned PWM7DC : 2;
6326 struct
6328 unsigned : 6;
6329 unsigned PWMPW : 2;
6332 struct
6334 unsigned : 6;
6335 unsigned DC : 2;
6337 } __PWM7DCLbits_t;
6339 extern __at(0x0390) volatile __PWM7DCLbits_t PWM7DCLbits;
6341 #define _PWM7DCL_DC0 0x40
6342 #define _PWM7DCL_PWM7DC0 0x40
6343 #define _PWM7DCL_PWMPW0 0x40
6344 #define _PWM7DCL_DC1 0x80
6345 #define _PWM7DCL_PWM7DC1 0x80
6346 #define _PWM7DCL_PWMPW1 0x80
6348 //==============================================================================
6351 //==============================================================================
6352 // PWM7DCH Bits
6354 extern __at(0x0391) __sfr PWM7DCH;
6356 typedef union
6358 struct
6360 unsigned DC2 : 1;
6361 unsigned DC3 : 1;
6362 unsigned DC4 : 1;
6363 unsigned DC5 : 1;
6364 unsigned DC6 : 1;
6365 unsigned DC7 : 1;
6366 unsigned DC8 : 1;
6367 unsigned DC9 : 1;
6370 struct
6372 unsigned PWM7DC2 : 1;
6373 unsigned PWM7DC3 : 1;
6374 unsigned PWM7DC4 : 1;
6375 unsigned PWM7DC5 : 1;
6376 unsigned PWM7DC6 : 1;
6377 unsigned PWM7DC7 : 1;
6378 unsigned PWM7DC8 : 1;
6379 unsigned PWM7DC9 : 1;
6382 struct
6384 unsigned PWMPW2 : 1;
6385 unsigned PWMPW3 : 1;
6386 unsigned PWMPW4 : 1;
6387 unsigned PWMPW5 : 1;
6388 unsigned PWMPW6 : 1;
6389 unsigned PWMPW7 : 1;
6390 unsigned PWMPW8 : 1;
6391 unsigned PWMPW9 : 1;
6393 } __PWM7DCHbits_t;
6395 extern __at(0x0391) volatile __PWM7DCHbits_t PWM7DCHbits;
6397 #define _PWM7DCH_DC2 0x01
6398 #define _PWM7DCH_PWM7DC2 0x01
6399 #define _PWM7DCH_PWMPW2 0x01
6400 #define _PWM7DCH_DC3 0x02
6401 #define _PWM7DCH_PWM7DC3 0x02
6402 #define _PWM7DCH_PWMPW3 0x02
6403 #define _PWM7DCH_DC4 0x04
6404 #define _PWM7DCH_PWM7DC4 0x04
6405 #define _PWM7DCH_PWMPW4 0x04
6406 #define _PWM7DCH_DC5 0x08
6407 #define _PWM7DCH_PWM7DC5 0x08
6408 #define _PWM7DCH_PWMPW5 0x08
6409 #define _PWM7DCH_DC6 0x10
6410 #define _PWM7DCH_PWM7DC6 0x10
6411 #define _PWM7DCH_PWMPW6 0x10
6412 #define _PWM7DCH_DC7 0x20
6413 #define _PWM7DCH_PWM7DC7 0x20
6414 #define _PWM7DCH_PWMPW7 0x20
6415 #define _PWM7DCH_DC8 0x40
6416 #define _PWM7DCH_PWM7DC8 0x40
6417 #define _PWM7DCH_PWMPW8 0x40
6418 #define _PWM7DCH_DC9 0x80
6419 #define _PWM7DCH_PWM7DC9 0x80
6420 #define _PWM7DCH_PWMPW9 0x80
6422 //==============================================================================
6425 //==============================================================================
6426 // PWM7CON Bits
6428 extern __at(0x0392) __sfr PWM7CON;
6430 typedef union
6432 struct
6434 unsigned : 1;
6435 unsigned : 1;
6436 unsigned : 1;
6437 unsigned : 1;
6438 unsigned POL : 1;
6439 unsigned OUT : 1;
6440 unsigned OE : 1;
6441 unsigned EN : 1;
6444 struct
6446 unsigned : 1;
6447 unsigned : 1;
6448 unsigned : 1;
6449 unsigned : 1;
6450 unsigned PWM7POL : 1;
6451 unsigned PWM7OUT : 1;
6452 unsigned PWM7OE : 1;
6453 unsigned PWM7EN : 1;
6455 } __PWM7CONbits_t;
6457 extern __at(0x0392) volatile __PWM7CONbits_t PWM7CONbits;
6459 #define _PWM7CON_POL 0x10
6460 #define _PWM7CON_PWM7POL 0x10
6461 #define _PWM7CON_OUT 0x20
6462 #define _PWM7CON_PWM7OUT 0x20
6463 #define _PWM7CON_OE 0x40
6464 #define _PWM7CON_PWM7OE 0x40
6465 #define _PWM7CON_EN 0x80
6466 #define _PWM7CON_PWM7EN 0x80
6468 //==============================================================================
6471 //==============================================================================
6472 // SCANLADRL Bits
6474 extern __at(0x040C) __sfr SCANLADRL;
6476 typedef union
6478 struct
6480 unsigned LADR0 : 1;
6481 unsigned LADR1 : 1;
6482 unsigned LADR2 : 1;
6483 unsigned LADR3 : 1;
6484 unsigned LADR4 : 1;
6485 unsigned LADR5 : 1;
6486 unsigned LADR6 : 1;
6487 unsigned LADR7 : 1;
6490 struct
6492 unsigned SCANLADR0 : 1;
6493 unsigned SCANLADR1 : 1;
6494 unsigned SCANLADR2 : 1;
6495 unsigned SCANLADR3 : 1;
6496 unsigned SCANLADR4 : 1;
6497 unsigned SCANLADR5 : 1;
6498 unsigned SCANLADR6 : 1;
6499 unsigned SCANLADR7 : 1;
6501 } __SCANLADRLbits_t;
6503 extern __at(0x040C) volatile __SCANLADRLbits_t SCANLADRLbits;
6505 #define _LADR0 0x01
6506 #define _SCANLADR0 0x01
6507 #define _LADR1 0x02
6508 #define _SCANLADR1 0x02
6509 #define _LADR2 0x04
6510 #define _SCANLADR2 0x04
6511 #define _LADR3 0x08
6512 #define _SCANLADR3 0x08
6513 #define _LADR4 0x10
6514 #define _SCANLADR4 0x10
6515 #define _LADR5 0x20
6516 #define _SCANLADR5 0x20
6517 #define _LADR6 0x40
6518 #define _SCANLADR6 0x40
6519 #define _LADR7 0x80
6520 #define _SCANLADR7 0x80
6522 //==============================================================================
6525 //==============================================================================
6526 // SCANLADRH Bits
6528 extern __at(0x040D) __sfr SCANLADRH;
6530 typedef union
6532 struct
6534 unsigned LADR8 : 1;
6535 unsigned LADR9 : 1;
6536 unsigned LADR10 : 1;
6537 unsigned LADR11 : 1;
6538 unsigned LADR12 : 1;
6539 unsigned LADR13 : 1;
6540 unsigned LADR14 : 1;
6541 unsigned LADR15 : 1;
6544 struct
6546 unsigned SCANLADR8 : 1;
6547 unsigned SCANLADR9 : 1;
6548 unsigned SCANLADR10 : 1;
6549 unsigned SCANLADR11 : 1;
6550 unsigned SCANLADR12 : 1;
6551 unsigned SCANLADR13 : 1;
6552 unsigned SCANLADR14 : 1;
6553 unsigned SCANLADR15 : 1;
6555 } __SCANLADRHbits_t;
6557 extern __at(0x040D) volatile __SCANLADRHbits_t SCANLADRHbits;
6559 #define _LADR8 0x01
6560 #define _SCANLADR8 0x01
6561 #define _LADR9 0x02
6562 #define _SCANLADR9 0x02
6563 #define _LADR10 0x04
6564 #define _SCANLADR10 0x04
6565 #define _LADR11 0x08
6566 #define _SCANLADR11 0x08
6567 #define _LADR12 0x10
6568 #define _SCANLADR12 0x10
6569 #define _LADR13 0x20
6570 #define _SCANLADR13 0x20
6571 #define _LADR14 0x40
6572 #define _SCANLADR14 0x40
6573 #define _LADR15 0x80
6574 #define _SCANLADR15 0x80
6576 //==============================================================================
6579 //==============================================================================
6580 // SCANHADRL Bits
6582 extern __at(0x040E) __sfr SCANHADRL;
6584 typedef union
6586 struct
6588 unsigned HADR0 : 1;
6589 unsigned HADR1 : 1;
6590 unsigned HADR2 : 1;
6591 unsigned HADR3 : 1;
6592 unsigned HADR4 : 1;
6593 unsigned HADR5 : 1;
6594 unsigned HADR6 : 1;
6595 unsigned HADR7 : 1;
6598 struct
6600 unsigned SCANHADR0 : 1;
6601 unsigned SCANHADR1 : 1;
6602 unsigned SCANHADR2 : 1;
6603 unsigned SCANHADR3 : 1;
6604 unsigned SCANHADR4 : 1;
6605 unsigned SCANHADR5 : 1;
6606 unsigned SCANHADR6 : 1;
6607 unsigned SCANHADR7 : 1;
6609 } __SCANHADRLbits_t;
6611 extern __at(0x040E) volatile __SCANHADRLbits_t SCANHADRLbits;
6613 #define _HADR0 0x01
6614 #define _SCANHADR0 0x01
6615 #define _HADR1 0x02
6616 #define _SCANHADR1 0x02
6617 #define _HADR2 0x04
6618 #define _SCANHADR2 0x04
6619 #define _HADR3 0x08
6620 #define _SCANHADR3 0x08
6621 #define _HADR4 0x10
6622 #define _SCANHADR4 0x10
6623 #define _HADR5 0x20
6624 #define _SCANHADR5 0x20
6625 #define _HADR6 0x40
6626 #define _SCANHADR6 0x40
6627 #define _HADR7 0x80
6628 #define _SCANHADR7 0x80
6630 //==============================================================================
6633 //==============================================================================
6634 // SCANHADRH Bits
6636 extern __at(0x040F) __sfr SCANHADRH;
6638 typedef union
6640 struct
6642 unsigned HADR8 : 1;
6643 unsigned HADR9 : 1;
6644 unsigned HADR10 : 1;
6645 unsigned HADR11 : 1;
6646 unsigned HADR12 : 1;
6647 unsigned HADR13 : 1;
6648 unsigned HADR14 : 1;
6649 unsigned HADR15 : 1;
6652 struct
6654 unsigned SCANHADR8 : 1;
6655 unsigned SCANHADR9 : 1;
6656 unsigned SCANHADR10 : 1;
6657 unsigned SCANHADR11 : 1;
6658 unsigned SCANHADR12 : 1;
6659 unsigned SCANHADR13 : 1;
6660 unsigned SCANHADR14 : 1;
6661 unsigned SCANHADR15 : 1;
6663 } __SCANHADRHbits_t;
6665 extern __at(0x040F) volatile __SCANHADRHbits_t SCANHADRHbits;
6667 #define _HADR8 0x01
6668 #define _SCANHADR8 0x01
6669 #define _HADR9 0x02
6670 #define _SCANHADR9 0x02
6671 #define _HADR10 0x04
6672 #define _SCANHADR10 0x04
6673 #define _HADR11 0x08
6674 #define _SCANHADR11 0x08
6675 #define _HADR12 0x10
6676 #define _SCANHADR12 0x10
6677 #define _HADR13 0x20
6678 #define _SCANHADR13 0x20
6679 #define _HADR14 0x40
6680 #define _SCANHADR14 0x40
6681 #define _HADR15 0x80
6682 #define _SCANHADR15 0x80
6684 //==============================================================================
6687 //==============================================================================
6688 // SCANCON0 Bits
6690 extern __at(0x0410) __sfr SCANCON0;
6692 typedef union
6694 struct
6696 unsigned MODE0 : 1;
6697 unsigned MODE1 : 1;
6698 unsigned : 1;
6699 unsigned INTM : 1;
6700 unsigned INVALID : 1;
6701 unsigned BUSY : 1;
6702 unsigned SCANGO : 1;
6703 unsigned EN : 1;
6706 struct
6708 unsigned SCANMODE0 : 1;
6709 unsigned SCANMODE1 : 1;
6710 unsigned : 1;
6711 unsigned SCANINTM : 1;
6712 unsigned SCANINVALID : 1;
6713 unsigned SCANBUSY : 1;
6714 unsigned : 1;
6715 unsigned SCANEN : 1;
6718 struct
6720 unsigned : 1;
6721 unsigned : 1;
6722 unsigned : 1;
6723 unsigned : 1;
6724 unsigned DABORT : 1;
6725 unsigned : 1;
6726 unsigned : 1;
6727 unsigned : 1;
6730 struct
6732 unsigned SCANMODE : 2;
6733 unsigned : 6;
6736 struct
6738 unsigned MODE : 2;
6739 unsigned : 6;
6741 } __SCANCON0bits_t;
6743 extern __at(0x0410) volatile __SCANCON0bits_t SCANCON0bits;
6745 #define _SCANCON0_MODE0 0x01
6746 #define _SCANCON0_SCANMODE0 0x01
6747 #define _SCANCON0_MODE1 0x02
6748 #define _SCANCON0_SCANMODE1 0x02
6749 #define _SCANCON0_INTM 0x08
6750 #define _SCANCON0_SCANINTM 0x08
6751 #define _SCANCON0_INVALID 0x10
6752 #define _SCANCON0_SCANINVALID 0x10
6753 #define _SCANCON0_DABORT 0x10
6754 #define _SCANCON0_BUSY 0x20
6755 #define _SCANCON0_SCANBUSY 0x20
6756 #define _SCANCON0_SCANGO 0x40
6757 #define _SCANCON0_EN 0x80
6758 #define _SCANCON0_SCANEN 0x80
6760 //==============================================================================
6763 //==============================================================================
6764 // SCANTRIG Bits
6766 extern __at(0x0411) __sfr SCANTRIG;
6768 typedef union
6770 struct
6772 unsigned TSEL0 : 1;
6773 unsigned TSEL1 : 1;
6774 unsigned TSEL2 : 1;
6775 unsigned TSEL3 : 1;
6776 unsigned : 1;
6777 unsigned : 1;
6778 unsigned : 1;
6779 unsigned : 1;
6782 struct
6784 unsigned SCANTSEL0 : 1;
6785 unsigned SCANTSEL1 : 1;
6786 unsigned SCANTSEL2 : 1;
6787 unsigned SCANTSEL3 : 1;
6788 unsigned : 1;
6789 unsigned : 1;
6790 unsigned : 1;
6791 unsigned : 1;
6794 struct
6796 unsigned SCANTSEL : 4;
6797 unsigned : 4;
6800 struct
6802 unsigned TSEL : 4;
6803 unsigned : 4;
6805 } __SCANTRIGbits_t;
6807 extern __at(0x0411) volatile __SCANTRIGbits_t SCANTRIGbits;
6809 #define _TSEL0 0x01
6810 #define _SCANTSEL0 0x01
6811 #define _TSEL1 0x02
6812 #define _SCANTSEL1 0x02
6813 #define _TSEL2 0x04
6814 #define _SCANTSEL2 0x04
6815 #define _TSEL3 0x08
6816 #define _SCANTSEL3 0x08
6818 //==============================================================================
6820 extern __at(0x0416) __sfr CRCDATA;
6822 //==============================================================================
6823 // CRCDATL Bits
6825 extern __at(0x0416) __sfr CRCDATL;
6827 typedef struct
6829 unsigned DATA0 : 1;
6830 unsigned DATA1 : 1;
6831 unsigned DATA2 : 1;
6832 unsigned DATA3 : 1;
6833 unsigned DATA4 : 1;
6834 unsigned DATA5 : 1;
6835 unsigned DATA6 : 1;
6836 unsigned DATA7 : 1;
6837 } __CRCDATLbits_t;
6839 extern __at(0x0416) volatile __CRCDATLbits_t CRCDATLbits;
6841 #define _DATA0 0x01
6842 #define _DATA1 0x02
6843 #define _DATA2 0x04
6844 #define _DATA3 0x08
6845 #define _DATA4 0x10
6846 #define _DATA5 0x20
6847 #define _DATA6 0x40
6848 #define _DATA7 0x80
6850 //==============================================================================
6853 //==============================================================================
6854 // CRCDATH Bits
6856 extern __at(0x0417) __sfr CRCDATH;
6858 typedef struct
6860 unsigned DATA8 : 1;
6861 unsigned DATA9 : 1;
6862 unsigned DATA10 : 1;
6863 unsigned DATA11 : 1;
6864 unsigned DATA12 : 1;
6865 unsigned DATA13 : 1;
6866 unsigned DATA14 : 1;
6867 unsigned DATA15 : 1;
6868 } __CRCDATHbits_t;
6870 extern __at(0x0417) volatile __CRCDATHbits_t CRCDATHbits;
6872 #define _DATA8 0x01
6873 #define _DATA9 0x02
6874 #define _DATA10 0x04
6875 #define _DATA11 0x08
6876 #define _DATA12 0x10
6877 #define _DATA13 0x20
6878 #define _DATA14 0x40
6879 #define _DATA15 0x80
6881 //==============================================================================
6883 extern __at(0x0418) __sfr CRCACC;
6885 //==============================================================================
6886 // CRCACCL Bits
6888 extern __at(0x0418) __sfr CRCACCL;
6890 typedef struct
6892 unsigned ACC0 : 1;
6893 unsigned ACC1 : 1;
6894 unsigned ACC2 : 1;
6895 unsigned ACC3 : 1;
6896 unsigned ACC4 : 1;
6897 unsigned ACC5 : 1;
6898 unsigned ACC6 : 1;
6899 unsigned ACC7 : 1;
6900 } __CRCACCLbits_t;
6902 extern __at(0x0418) volatile __CRCACCLbits_t CRCACCLbits;
6904 #define _ACC0 0x01
6905 #define _ACC1 0x02
6906 #define _ACC2 0x04
6907 #define _ACC3 0x08
6908 #define _ACC4 0x10
6909 #define _ACC5 0x20
6910 #define _ACC6 0x40
6911 #define _ACC7 0x80
6913 //==============================================================================
6916 //==============================================================================
6917 // CRCACCH Bits
6919 extern __at(0x0419) __sfr CRCACCH;
6921 typedef struct
6923 unsigned ACC8 : 1;
6924 unsigned ACC9 : 1;
6925 unsigned ACC10 : 1;
6926 unsigned ACC11 : 1;
6927 unsigned ACC12 : 1;
6928 unsigned ACC13 : 1;
6929 unsigned ACC14 : 1;
6930 unsigned ACC15 : 1;
6931 } __CRCACCHbits_t;
6933 extern __at(0x0419) volatile __CRCACCHbits_t CRCACCHbits;
6935 #define _ACC8 0x01
6936 #define _ACC9 0x02
6937 #define _ACC10 0x04
6938 #define _ACC11 0x08
6939 #define _ACC12 0x10
6940 #define _ACC13 0x20
6941 #define _ACC14 0x40
6942 #define _ACC15 0x80
6944 //==============================================================================
6946 extern __at(0x041A) __sfr CRCSHFT;
6948 //==============================================================================
6949 // CRCSHIFTL Bits
6951 extern __at(0x041A) __sfr CRCSHIFTL;
6953 typedef struct
6955 unsigned SHFT0 : 1;
6956 unsigned SHFT1 : 1;
6957 unsigned SHFT2 : 1;
6958 unsigned SHFT3 : 1;
6959 unsigned SHFT4 : 1;
6960 unsigned SHFT5 : 1;
6961 unsigned SHFT6 : 1;
6962 unsigned SHFT7 : 1;
6963 } __CRCSHIFTLbits_t;
6965 extern __at(0x041A) volatile __CRCSHIFTLbits_t CRCSHIFTLbits;
6967 #define _SHFT0 0x01
6968 #define _SHFT1 0x02
6969 #define _SHFT2 0x04
6970 #define _SHFT3 0x08
6971 #define _SHFT4 0x10
6972 #define _SHFT5 0x20
6973 #define _SHFT6 0x40
6974 #define _SHFT7 0x80
6976 //==============================================================================
6979 //==============================================================================
6980 // CRCSHIFTH Bits
6982 extern __at(0x041B) __sfr CRCSHIFTH;
6984 typedef struct
6986 unsigned SHFT8 : 1;
6987 unsigned SHFT9 : 1;
6988 unsigned SHFT10 : 1;
6989 unsigned SHFT11 : 1;
6990 unsigned SHFT12 : 1;
6991 unsigned SHFT13 : 1;
6992 unsigned SHFT14 : 1;
6993 unsigned SHFT15 : 1;
6994 } __CRCSHIFTHbits_t;
6996 extern __at(0x041B) volatile __CRCSHIFTHbits_t CRCSHIFTHbits;
6998 #define _SHFT8 0x01
6999 #define _SHFT9 0x02
7000 #define _SHFT10 0x04
7001 #define _SHFT11 0x08
7002 #define _SHFT12 0x10
7003 #define _SHFT13 0x20
7004 #define _SHFT14 0x40
7005 #define _SHFT15 0x80
7007 //==============================================================================
7009 extern __at(0x041C) __sfr CRCXOR;
7011 //==============================================================================
7012 // CRCXORL Bits
7014 extern __at(0x041C) __sfr CRCXORL;
7016 typedef struct
7018 unsigned : 1;
7019 unsigned X1 : 1;
7020 unsigned X2 : 1;
7021 unsigned X3 : 1;
7022 unsigned X4 : 1;
7023 unsigned X5 : 1;
7024 unsigned X6 : 1;
7025 unsigned X7 : 1;
7026 } __CRCXORLbits_t;
7028 extern __at(0x041C) volatile __CRCXORLbits_t CRCXORLbits;
7030 #define _X1 0x02
7031 #define _X2 0x04
7032 #define _X3 0x08
7033 #define _X4 0x10
7034 #define _X5 0x20
7035 #define _X6 0x40
7036 #define _X7 0x80
7038 //==============================================================================
7041 //==============================================================================
7042 // CRCXORH Bits
7044 extern __at(0x041D) __sfr CRCXORH;
7046 typedef struct
7048 unsigned X8 : 1;
7049 unsigned X9 : 1;
7050 unsigned X10 : 1;
7051 unsigned X11 : 1;
7052 unsigned X12 : 1;
7053 unsigned X13 : 1;
7054 unsigned X14 : 1;
7055 unsigned X15 : 1;
7056 } __CRCXORHbits_t;
7058 extern __at(0x041D) volatile __CRCXORHbits_t CRCXORHbits;
7060 #define _X8 0x01
7061 #define _X9 0x02
7062 #define _X10 0x04
7063 #define _X11 0x08
7064 #define _X12 0x10
7065 #define _X13 0x20
7066 #define _X14 0x40
7067 #define _X15 0x80
7069 //==============================================================================
7072 //==============================================================================
7073 // CRCCON0 Bits
7075 extern __at(0x041E) __sfr CRCCON0;
7077 typedef union
7079 struct
7081 unsigned FULL : 1;
7082 unsigned SHIFTM : 1;
7083 unsigned : 1;
7084 unsigned : 1;
7085 unsigned ACCM : 1;
7086 unsigned BUSY : 1;
7087 unsigned CRCGO : 1;
7088 unsigned EN : 1;
7091 struct
7093 unsigned : 1;
7094 unsigned : 1;
7095 unsigned : 1;
7096 unsigned : 1;
7097 unsigned : 1;
7098 unsigned : 1;
7099 unsigned : 1;
7100 unsigned CRCEN : 1;
7102 } __CRCCON0bits_t;
7104 extern __at(0x041E) volatile __CRCCON0bits_t CRCCON0bits;
7106 #define _CRCCON0_FULL 0x01
7107 #define _CRCCON0_SHIFTM 0x02
7108 #define _CRCCON0_ACCM 0x10
7109 #define _CRCCON0_BUSY 0x20
7110 #define _CRCCON0_CRCGO 0x40
7111 #define _CRCCON0_EN 0x80
7112 #define _CRCCON0_CRCEN 0x80
7114 //==============================================================================
7117 //==============================================================================
7118 // CRCCON1 Bits
7120 extern __at(0x041F) __sfr CRCCON1;
7122 typedef union
7124 struct
7126 unsigned PLEN0 : 1;
7127 unsigned PLEN1 : 1;
7128 unsigned PLEN2 : 1;
7129 unsigned PLEN3 : 1;
7130 unsigned DLEN0 : 1;
7131 unsigned DLEN1 : 1;
7132 unsigned DLEN2 : 1;
7133 unsigned DLEN3 : 1;
7136 struct
7138 unsigned PLEN : 4;
7139 unsigned : 4;
7142 struct
7144 unsigned : 4;
7145 unsigned DLEN : 4;
7147 } __CRCCON1bits_t;
7149 extern __at(0x041F) volatile __CRCCON1bits_t CRCCON1bits;
7151 #define _PLEN0 0x01
7152 #define _PLEN1 0x02
7153 #define _PLEN2 0x04
7154 #define _PLEN3 0x08
7155 #define _DLEN0 0x10
7156 #define _DLEN1 0x20
7157 #define _DLEN2 0x40
7158 #define _DLEN3 0x80
7160 //==============================================================================
7162 extern __at(0x048C) __sfr SMT1TMR;
7164 //==============================================================================
7165 // SMT1TMRL Bits
7167 extern __at(0x048C) __sfr SMT1TMRL;
7169 typedef struct
7171 unsigned SMT1TMR0 : 1;
7172 unsigned SMT1TMR1 : 1;
7173 unsigned SMT1TMR2 : 1;
7174 unsigned SMT1TMR3 : 1;
7175 unsigned SMT1TMR4 : 1;
7176 unsigned SMT1TMR5 : 1;
7177 unsigned SMT1TMR6 : 1;
7178 unsigned SMT1TMR7 : 1;
7179 } __SMT1TMRLbits_t;
7181 extern __at(0x048C) volatile __SMT1TMRLbits_t SMT1TMRLbits;
7183 #define _SMT1TMR0 0x01
7184 #define _SMT1TMR1 0x02
7185 #define _SMT1TMR2 0x04
7186 #define _SMT1TMR3 0x08
7187 #define _SMT1TMR4 0x10
7188 #define _SMT1TMR5 0x20
7189 #define _SMT1TMR6 0x40
7190 #define _SMT1TMR7 0x80
7192 //==============================================================================
7195 //==============================================================================
7196 // SMT1TMRH Bits
7198 extern __at(0x048D) __sfr SMT1TMRH;
7200 typedef struct
7202 unsigned SMT1TMR8 : 1;
7203 unsigned SMT1TMR9 : 1;
7204 unsigned SMT1TMR10 : 1;
7205 unsigned SMT1TMR11 : 1;
7206 unsigned SMT1TMR12 : 1;
7207 unsigned SMT1TMR13 : 1;
7208 unsigned SMT1TMR14 : 1;
7209 unsigned SMT1TMR15 : 1;
7210 } __SMT1TMRHbits_t;
7212 extern __at(0x048D) volatile __SMT1TMRHbits_t SMT1TMRHbits;
7214 #define _SMT1TMR8 0x01
7215 #define _SMT1TMR9 0x02
7216 #define _SMT1TMR10 0x04
7217 #define _SMT1TMR11 0x08
7218 #define _SMT1TMR12 0x10
7219 #define _SMT1TMR13 0x20
7220 #define _SMT1TMR14 0x40
7221 #define _SMT1TMR15 0x80
7223 //==============================================================================
7226 //==============================================================================
7227 // SMT1TMRU Bits
7229 extern __at(0x048E) __sfr SMT1TMRU;
7231 typedef struct
7233 unsigned SMT1TMR16 : 1;
7234 unsigned SMT1TMR17 : 1;
7235 unsigned SMT1TMR18 : 1;
7236 unsigned SMT1TMR19 : 1;
7237 unsigned SMT1TMR20 : 1;
7238 unsigned SMT1TMR21 : 1;
7239 unsigned SMT1TMR22 : 1;
7240 unsigned SMT1TMR23 : 1;
7241 } __SMT1TMRUbits_t;
7243 extern __at(0x048E) volatile __SMT1TMRUbits_t SMT1TMRUbits;
7245 #define _SMT1TMR16 0x01
7246 #define _SMT1TMR17 0x02
7247 #define _SMT1TMR18 0x04
7248 #define _SMT1TMR19 0x08
7249 #define _SMT1TMR20 0x10
7250 #define _SMT1TMR21 0x20
7251 #define _SMT1TMR22 0x40
7252 #define _SMT1TMR23 0x80
7254 //==============================================================================
7256 extern __at(0x048F) __sfr SMT1CPR;
7258 //==============================================================================
7259 // SMT1CPRL Bits
7261 extern __at(0x048F) __sfr SMT1CPRL;
7263 typedef struct
7265 unsigned CPR0 : 1;
7266 unsigned CPR1 : 1;
7267 unsigned CPR2 : 1;
7268 unsigned CPR3 : 1;
7269 unsigned CPR4 : 1;
7270 unsigned CPR5 : 1;
7271 unsigned CPR6 : 1;
7272 unsigned CPR7 : 1;
7273 } __SMT1CPRLbits_t;
7275 extern __at(0x048F) volatile __SMT1CPRLbits_t SMT1CPRLbits;
7277 #define _CPR0 0x01
7278 #define _CPR1 0x02
7279 #define _CPR2 0x04
7280 #define _CPR3 0x08
7281 #define _CPR4 0x10
7282 #define _CPR5 0x20
7283 #define _CPR6 0x40
7284 #define _CPR7 0x80
7286 //==============================================================================
7289 //==============================================================================
7290 // SMT1CPRH Bits
7292 extern __at(0x0490) __sfr SMT1CPRH;
7294 typedef union
7296 struct
7298 unsigned CPR8 : 1;
7299 unsigned CPR9 : 1;
7300 unsigned CPR10 : 1;
7301 unsigned CPR11 : 1;
7302 unsigned CPR12 : 1;
7303 unsigned CPR13 : 1;
7304 unsigned CPR14 : 1;
7305 unsigned CPR15 : 1;
7308 struct
7310 unsigned SMT1CPR8 : 1;
7311 unsigned SMT1CPR9 : 1;
7312 unsigned SMT1CPR10 : 1;
7313 unsigned SMT1CPR11 : 1;
7314 unsigned SMT1CPR12 : 1;
7315 unsigned SMT1CPR13 : 1;
7316 unsigned SMT1CPR14 : 1;
7317 unsigned SMT1CPR15 : 1;
7319 } __SMT1CPRHbits_t;
7321 extern __at(0x0490) volatile __SMT1CPRHbits_t SMT1CPRHbits;
7323 #define _CPR8 0x01
7324 #define _SMT1CPR8 0x01
7325 #define _CPR9 0x02
7326 #define _SMT1CPR9 0x02
7327 #define _CPR10 0x04
7328 #define _SMT1CPR10 0x04
7329 #define _CPR11 0x08
7330 #define _SMT1CPR11 0x08
7331 #define _CPR12 0x10
7332 #define _SMT1CPR12 0x10
7333 #define _CPR13 0x20
7334 #define _SMT1CPR13 0x20
7335 #define _CPR14 0x40
7336 #define _SMT1CPR14 0x40
7337 #define _CPR15 0x80
7338 #define _SMT1CPR15 0x80
7340 //==============================================================================
7343 //==============================================================================
7344 // SMT1CPRU Bits
7346 extern __at(0x0491) __sfr SMT1CPRU;
7348 typedef union
7350 struct
7352 unsigned CPR16 : 1;
7353 unsigned CPR17 : 1;
7354 unsigned CPR18 : 1;
7355 unsigned CPR19 : 1;
7356 unsigned CPR20 : 1;
7357 unsigned CPR21 : 1;
7358 unsigned CPR22 : 1;
7359 unsigned CPR23 : 1;
7362 struct
7364 unsigned SMT1CPR16 : 1;
7365 unsigned SMT1CPR17 : 1;
7366 unsigned SMT1CPR18 : 1;
7367 unsigned SMT1CPR19 : 1;
7368 unsigned SMT1CPR20 : 1;
7369 unsigned SMT1CPR21 : 1;
7370 unsigned SMT1CPR22 : 1;
7371 unsigned SMT1CPR23 : 1;
7373 } __SMT1CPRUbits_t;
7375 extern __at(0x0491) volatile __SMT1CPRUbits_t SMT1CPRUbits;
7377 #define _CPR16 0x01
7378 #define _SMT1CPR16 0x01
7379 #define _CPR17 0x02
7380 #define _SMT1CPR17 0x02
7381 #define _CPR18 0x04
7382 #define _SMT1CPR18 0x04
7383 #define _CPR19 0x08
7384 #define _SMT1CPR19 0x08
7385 #define _CPR20 0x10
7386 #define _SMT1CPR20 0x10
7387 #define _CPR21 0x20
7388 #define _SMT1CPR21 0x20
7389 #define _CPR22 0x40
7390 #define _SMT1CPR22 0x40
7391 #define _CPR23 0x80
7392 #define _SMT1CPR23 0x80
7394 //==============================================================================
7396 extern __at(0x0492) __sfr SMT1CPW;
7398 //==============================================================================
7399 // SMT1CPWL Bits
7401 extern __at(0x0492) __sfr SMT1CPWL;
7403 typedef union
7405 struct
7407 unsigned CPW0 : 1;
7408 unsigned CPW1 : 1;
7409 unsigned CPW2 : 1;
7410 unsigned CPW3 : 1;
7411 unsigned CPW4 : 1;
7412 unsigned CPW5 : 1;
7413 unsigned CPW6 : 1;
7414 unsigned CPW7 : 1;
7417 struct
7419 unsigned SMT1CPW0 : 1;
7420 unsigned SMT1CPW1 : 1;
7421 unsigned SMT1CPW2 : 1;
7422 unsigned SMT1CPW3 : 1;
7423 unsigned SMT1CPW4 : 1;
7424 unsigned SMT1CPW5 : 1;
7425 unsigned SMT1CPW6 : 1;
7426 unsigned SMT1CPW7 : 1;
7428 } __SMT1CPWLbits_t;
7430 extern __at(0x0492) volatile __SMT1CPWLbits_t SMT1CPWLbits;
7432 #define _CPW0 0x01
7433 #define _SMT1CPW0 0x01
7434 #define _CPW1 0x02
7435 #define _SMT1CPW1 0x02
7436 #define _CPW2 0x04
7437 #define _SMT1CPW2 0x04
7438 #define _CPW3 0x08
7439 #define _SMT1CPW3 0x08
7440 #define _CPW4 0x10
7441 #define _SMT1CPW4 0x10
7442 #define _CPW5 0x20
7443 #define _SMT1CPW5 0x20
7444 #define _CPW6 0x40
7445 #define _SMT1CPW6 0x40
7446 #define _CPW7 0x80
7447 #define _SMT1CPW7 0x80
7449 //==============================================================================
7452 //==============================================================================
7453 // SMT1CPWH Bits
7455 extern __at(0x0493) __sfr SMT1CPWH;
7457 typedef union
7459 struct
7461 unsigned CPW8 : 1;
7462 unsigned CPW9 : 1;
7463 unsigned CPW10 : 1;
7464 unsigned CPW11 : 1;
7465 unsigned CPW12 : 1;
7466 unsigned CPW13 : 1;
7467 unsigned CPW14 : 1;
7468 unsigned CPW15 : 1;
7471 struct
7473 unsigned SMT1CPW8 : 1;
7474 unsigned SMT1CPW9 : 1;
7475 unsigned SMT1CPW10 : 1;
7476 unsigned SMT1CPW11 : 1;
7477 unsigned SMT1CPW12 : 1;
7478 unsigned SMT1CPW13 : 1;
7479 unsigned SMT1CPW14 : 1;
7480 unsigned SMT1CPW15 : 1;
7482 } __SMT1CPWHbits_t;
7484 extern __at(0x0493) volatile __SMT1CPWHbits_t SMT1CPWHbits;
7486 #define _CPW8 0x01
7487 #define _SMT1CPW8 0x01
7488 #define _CPW9 0x02
7489 #define _SMT1CPW9 0x02
7490 #define _CPW10 0x04
7491 #define _SMT1CPW10 0x04
7492 #define _CPW11 0x08
7493 #define _SMT1CPW11 0x08
7494 #define _CPW12 0x10
7495 #define _SMT1CPW12 0x10
7496 #define _CPW13 0x20
7497 #define _SMT1CPW13 0x20
7498 #define _CPW14 0x40
7499 #define _SMT1CPW14 0x40
7500 #define _CPW15 0x80
7501 #define _SMT1CPW15 0x80
7503 //==============================================================================
7506 //==============================================================================
7507 // SMT1CPWU Bits
7509 extern __at(0x0494) __sfr SMT1CPWU;
7511 typedef union
7513 struct
7515 unsigned CPW16 : 1;
7516 unsigned CPW17 : 1;
7517 unsigned CPW18 : 1;
7518 unsigned CPW19 : 1;
7519 unsigned CPW20 : 1;
7520 unsigned CPW21 : 1;
7521 unsigned CPW22 : 1;
7522 unsigned CPW23 : 1;
7525 struct
7527 unsigned SMT1CPW16 : 1;
7528 unsigned SMT1CPW17 : 1;
7529 unsigned SMT1CPW18 : 1;
7530 unsigned SMT1CPW19 : 1;
7531 unsigned SMT1CPW20 : 1;
7532 unsigned SMT1CPW21 : 1;
7533 unsigned SMT1CPW22 : 1;
7534 unsigned SMT1CPW23 : 1;
7536 } __SMT1CPWUbits_t;
7538 extern __at(0x0494) volatile __SMT1CPWUbits_t SMT1CPWUbits;
7540 #define _CPW16 0x01
7541 #define _SMT1CPW16 0x01
7542 #define _CPW17 0x02
7543 #define _SMT1CPW17 0x02
7544 #define _CPW18 0x04
7545 #define _SMT1CPW18 0x04
7546 #define _CPW19 0x08
7547 #define _SMT1CPW19 0x08
7548 #define _CPW20 0x10
7549 #define _SMT1CPW20 0x10
7550 #define _CPW21 0x20
7551 #define _SMT1CPW21 0x20
7552 #define _CPW22 0x40
7553 #define _SMT1CPW22 0x40
7554 #define _CPW23 0x80
7555 #define _SMT1CPW23 0x80
7557 //==============================================================================
7559 extern __at(0x0495) __sfr SMT1PR;
7561 //==============================================================================
7562 // SMT1PRL Bits
7564 extern __at(0x0495) __sfr SMT1PRL;
7566 typedef struct
7568 unsigned SMT1PR0 : 1;
7569 unsigned SMT1PR1 : 1;
7570 unsigned SMT1PR2 : 1;
7571 unsigned SMT1PR3 : 1;
7572 unsigned SMT1PR4 : 1;
7573 unsigned SMT1PR5 : 1;
7574 unsigned SMT1PR6 : 1;
7575 unsigned SMT1PR7 : 1;
7576 } __SMT1PRLbits_t;
7578 extern __at(0x0495) volatile __SMT1PRLbits_t SMT1PRLbits;
7580 #define _SMT1PR0 0x01
7581 #define _SMT1PR1 0x02
7582 #define _SMT1PR2 0x04
7583 #define _SMT1PR3 0x08
7584 #define _SMT1PR4 0x10
7585 #define _SMT1PR5 0x20
7586 #define _SMT1PR6 0x40
7587 #define _SMT1PR7 0x80
7589 //==============================================================================
7592 //==============================================================================
7593 // SMT1PRH Bits
7595 extern __at(0x0496) __sfr SMT1PRH;
7597 typedef struct
7599 unsigned SMT1PR8 : 1;
7600 unsigned SMT1PR9 : 1;
7601 unsigned SMT1PR10 : 1;
7602 unsigned SMT1PR11 : 1;
7603 unsigned SMT1PR12 : 1;
7604 unsigned SMT1PR13 : 1;
7605 unsigned SMT1PR14 : 1;
7606 unsigned SMT1PR15 : 1;
7607 } __SMT1PRHbits_t;
7609 extern __at(0x0496) volatile __SMT1PRHbits_t SMT1PRHbits;
7611 #define _SMT1PR8 0x01
7612 #define _SMT1PR9 0x02
7613 #define _SMT1PR10 0x04
7614 #define _SMT1PR11 0x08
7615 #define _SMT1PR12 0x10
7616 #define _SMT1PR13 0x20
7617 #define _SMT1PR14 0x40
7618 #define _SMT1PR15 0x80
7620 //==============================================================================
7623 //==============================================================================
7624 // SMT1PRU Bits
7626 extern __at(0x0497) __sfr SMT1PRU;
7628 typedef struct
7630 unsigned SMT1PR16 : 1;
7631 unsigned SMT1PR17 : 1;
7632 unsigned SMT1PR18 : 1;
7633 unsigned SMT1PR19 : 1;
7634 unsigned SMT1PR20 : 1;
7635 unsigned SMT1PR21 : 1;
7636 unsigned SMT1PR22 : 1;
7637 unsigned SMT1PR23 : 1;
7638 } __SMT1PRUbits_t;
7640 extern __at(0x0497) volatile __SMT1PRUbits_t SMT1PRUbits;
7642 #define _SMT1PR16 0x01
7643 #define _SMT1PR17 0x02
7644 #define _SMT1PR18 0x04
7645 #define _SMT1PR19 0x08
7646 #define _SMT1PR20 0x10
7647 #define _SMT1PR21 0x20
7648 #define _SMT1PR22 0x40
7649 #define _SMT1PR23 0x80
7651 //==============================================================================
7654 //==============================================================================
7655 // SMT1CON0 Bits
7657 extern __at(0x0498) __sfr SMT1CON0;
7659 typedef union
7661 struct
7663 unsigned SMT1PS0 : 1;
7664 unsigned SMT1PS1 : 1;
7665 unsigned CPOL : 1;
7666 unsigned SPOL : 1;
7667 unsigned WPOL : 1;
7668 unsigned STP : 1;
7669 unsigned : 1;
7670 unsigned EN : 1;
7673 struct
7675 unsigned : 1;
7676 unsigned : 1;
7677 unsigned : 1;
7678 unsigned : 1;
7679 unsigned : 1;
7680 unsigned : 1;
7681 unsigned : 1;
7682 unsigned SMT1EN : 1;
7685 struct
7687 unsigned SMT1PS : 2;
7688 unsigned : 6;
7690 } __SMT1CON0bits_t;
7692 extern __at(0x0498) volatile __SMT1CON0bits_t SMT1CON0bits;
7694 #define _SMT1CON0_SMT1PS0 0x01
7695 #define _SMT1CON0_SMT1PS1 0x02
7696 #define _SMT1CON0_CPOL 0x04
7697 #define _SMT1CON0_SPOL 0x08
7698 #define _SMT1CON0_WPOL 0x10
7699 #define _SMT1CON0_STP 0x20
7700 #define _SMT1CON0_EN 0x80
7701 #define _SMT1CON0_SMT1EN 0x80
7703 //==============================================================================
7706 //==============================================================================
7707 // SMT1CON1 Bits
7709 extern __at(0x0499) __sfr SMT1CON1;
7711 typedef union
7713 struct
7715 unsigned MODE0 : 1;
7716 unsigned MODE1 : 1;
7717 unsigned MODE2 : 1;
7718 unsigned MODE3 : 1;
7719 unsigned : 1;
7720 unsigned : 1;
7721 unsigned REPEAT : 1;
7722 unsigned SMT1GO : 1;
7725 struct
7727 unsigned MODE : 4;
7728 unsigned : 4;
7730 } __SMT1CON1bits_t;
7732 extern __at(0x0499) volatile __SMT1CON1bits_t SMT1CON1bits;
7734 #define _SMT1CON1_MODE0 0x01
7735 #define _SMT1CON1_MODE1 0x02
7736 #define _SMT1CON1_MODE2 0x04
7737 #define _SMT1CON1_MODE3 0x08
7738 #define _SMT1CON1_REPEAT 0x40
7739 #define _SMT1CON1_SMT1GO 0x80
7741 //==============================================================================
7744 //==============================================================================
7745 // SMT1STAT Bits
7747 extern __at(0x049A) __sfr SMT1STAT;
7749 typedef union
7751 struct
7753 unsigned AS : 1;
7754 unsigned WS : 1;
7755 unsigned TS : 1;
7756 unsigned : 1;
7757 unsigned : 1;
7758 unsigned RST : 1;
7759 unsigned CPWUP : 1;
7760 unsigned CPRUP : 1;
7763 struct
7765 unsigned SMT1AS : 1;
7766 unsigned SMT1WS : 1;
7767 unsigned SMT1TS : 1;
7768 unsigned : 1;
7769 unsigned : 1;
7770 unsigned SMT1RESET : 1;
7771 unsigned SMT1CPWUP : 1;
7772 unsigned SMT1CPRUP : 1;
7774 } __SMT1STATbits_t;
7776 extern __at(0x049A) volatile __SMT1STATbits_t SMT1STATbits;
7778 #define _AS 0x01
7779 #define _SMT1AS 0x01
7780 #define _WS 0x02
7781 #define _SMT1WS 0x02
7782 #define _TS 0x04
7783 #define _SMT1TS 0x04
7784 #define _RST 0x20
7785 #define _SMT1RESET 0x20
7786 #define _CPWUP 0x40
7787 #define _SMT1CPWUP 0x40
7788 #define _CPRUP 0x80
7789 #define _SMT1CPRUP 0x80
7791 //==============================================================================
7794 //==============================================================================
7795 // SMT1CLK Bits
7797 extern __at(0x049B) __sfr SMT1CLK;
7799 typedef union
7801 struct
7803 unsigned CSEL0 : 1;
7804 unsigned CSEL1 : 1;
7805 unsigned CSEL2 : 1;
7806 unsigned : 1;
7807 unsigned : 1;
7808 unsigned : 1;
7809 unsigned : 1;
7810 unsigned : 1;
7813 struct
7815 unsigned SMT1CSEL0 : 1;
7816 unsigned SMT1CSEL1 : 1;
7817 unsigned SMT1CSEL2 : 1;
7818 unsigned : 1;
7819 unsigned : 1;
7820 unsigned : 1;
7821 unsigned : 1;
7822 unsigned : 1;
7825 struct
7827 unsigned CSEL : 3;
7828 unsigned : 5;
7831 struct
7833 unsigned SMT1CSEL : 3;
7834 unsigned : 5;
7836 } __SMT1CLKbits_t;
7838 extern __at(0x049B) volatile __SMT1CLKbits_t SMT1CLKbits;
7840 #define _CSEL0 0x01
7841 #define _SMT1CSEL0 0x01
7842 #define _CSEL1 0x02
7843 #define _SMT1CSEL1 0x02
7844 #define _CSEL2 0x04
7845 #define _SMT1CSEL2 0x04
7847 //==============================================================================
7850 //==============================================================================
7851 // SMT1SIG Bits
7853 extern __at(0x049C) __sfr SMT1SIG;
7855 typedef union
7857 struct
7859 unsigned SSEL0 : 1;
7860 unsigned SSEL1 : 1;
7861 unsigned SSEL2 : 1;
7862 unsigned SSEL3 : 1;
7863 unsigned SSEL4 : 1;
7864 unsigned : 1;
7865 unsigned : 1;
7866 unsigned : 1;
7869 struct
7871 unsigned SMT1SSEL0 : 1;
7872 unsigned SMT1SSEL1 : 1;
7873 unsigned SMT1SSEL2 : 1;
7874 unsigned SMT1SSEL3 : 1;
7875 unsigned SMT1SSEL4 : 1;
7876 unsigned : 1;
7877 unsigned : 1;
7878 unsigned : 1;
7881 struct
7883 unsigned SMT1SSEL : 5;
7884 unsigned : 3;
7887 struct
7889 unsigned SSEL : 5;
7890 unsigned : 3;
7892 } __SMT1SIGbits_t;
7894 extern __at(0x049C) volatile __SMT1SIGbits_t SMT1SIGbits;
7896 #define _SSEL0 0x01
7897 #define _SMT1SSEL0 0x01
7898 #define _SSEL1 0x02
7899 #define _SMT1SSEL1 0x02
7900 #define _SSEL2 0x04
7901 #define _SMT1SSEL2 0x04
7902 #define _SSEL3 0x08
7903 #define _SMT1SSEL3 0x08
7904 #define _SSEL4 0x10
7905 #define _SMT1SSEL4 0x10
7907 //==============================================================================
7910 //==============================================================================
7911 // SMT1WIN Bits
7913 extern __at(0x049D) __sfr SMT1WIN;
7915 typedef union
7917 struct
7919 unsigned WSEL0 : 1;
7920 unsigned WSEL1 : 1;
7921 unsigned WSEL2 : 1;
7922 unsigned WSEL3 : 1;
7923 unsigned WSEL4 : 1;
7924 unsigned : 1;
7925 unsigned : 1;
7926 unsigned : 1;
7929 struct
7931 unsigned SMT1WSEL0 : 1;
7932 unsigned SMT1WSEL1 : 1;
7933 unsigned SMT1WSEL2 : 1;
7934 unsigned SMT1WSEL3 : 1;
7935 unsigned SMT1WSEL4 : 1;
7936 unsigned : 1;
7937 unsigned : 1;
7938 unsigned : 1;
7941 struct
7943 unsigned SMT1WSEL : 5;
7944 unsigned : 3;
7947 struct
7949 unsigned WSEL : 5;
7950 unsigned : 3;
7952 } __SMT1WINbits_t;
7954 extern __at(0x049D) volatile __SMT1WINbits_t SMT1WINbits;
7956 #define _WSEL0 0x01
7957 #define _SMT1WSEL0 0x01
7958 #define _WSEL1 0x02
7959 #define _SMT1WSEL1 0x02
7960 #define _WSEL2 0x04
7961 #define _SMT1WSEL2 0x04
7962 #define _WSEL3 0x08
7963 #define _SMT1WSEL3 0x08
7964 #define _WSEL4 0x10
7965 #define _SMT1WSEL4 0x10
7967 //==============================================================================
7969 extern __at(0x050C) __sfr SMT2TMR;
7971 //==============================================================================
7972 // SMT2TMRL Bits
7974 extern __at(0x050C) __sfr SMT2TMRL;
7976 typedef struct
7978 unsigned SMT2TMR0 : 1;
7979 unsigned SMT2TMR1 : 1;
7980 unsigned SMT2TMR2 : 1;
7981 unsigned SMT2TMR3 : 1;
7982 unsigned SMT2TMR4 : 1;
7983 unsigned SMT2TMR5 : 1;
7984 unsigned SMT2TMR6 : 1;
7985 unsigned SMT2TMR7 : 1;
7986 } __SMT2TMRLbits_t;
7988 extern __at(0x050C) volatile __SMT2TMRLbits_t SMT2TMRLbits;
7990 #define _SMT2TMR0 0x01
7991 #define _SMT2TMR1 0x02
7992 #define _SMT2TMR2 0x04
7993 #define _SMT2TMR3 0x08
7994 #define _SMT2TMR4 0x10
7995 #define _SMT2TMR5 0x20
7996 #define _SMT2TMR6 0x40
7997 #define _SMT2TMR7 0x80
7999 //==============================================================================
8002 //==============================================================================
8003 // SMT2TMRH Bits
8005 extern __at(0x050D) __sfr SMT2TMRH;
8007 typedef struct
8009 unsigned SMT2TMR8 : 1;
8010 unsigned SMT2TMR9 : 1;
8011 unsigned SMT2TMR10 : 1;
8012 unsigned SMT2TMR11 : 1;
8013 unsigned SMT2TMR12 : 1;
8014 unsigned SMT2TMR13 : 1;
8015 unsigned SMT2TMR14 : 1;
8016 unsigned SMT2TMR15 : 1;
8017 } __SMT2TMRHbits_t;
8019 extern __at(0x050D) volatile __SMT2TMRHbits_t SMT2TMRHbits;
8021 #define _SMT2TMR8 0x01
8022 #define _SMT2TMR9 0x02
8023 #define _SMT2TMR10 0x04
8024 #define _SMT2TMR11 0x08
8025 #define _SMT2TMR12 0x10
8026 #define _SMT2TMR13 0x20
8027 #define _SMT2TMR14 0x40
8028 #define _SMT2TMR15 0x80
8030 //==============================================================================
8033 //==============================================================================
8034 // SMT2TMRU Bits
8036 extern __at(0x050E) __sfr SMT2TMRU;
8038 typedef struct
8040 unsigned SMT2TMR16 : 1;
8041 unsigned SMT2TMR17 : 1;
8042 unsigned SMT2TMR18 : 1;
8043 unsigned SMT2TMR19 : 1;
8044 unsigned SMT2TMR20 : 1;
8045 unsigned SMT2TMR21 : 1;
8046 unsigned SMT2TMR22 : 1;
8047 unsigned SMT2TMR23 : 1;
8048 } __SMT2TMRUbits_t;
8050 extern __at(0x050E) volatile __SMT2TMRUbits_t SMT2TMRUbits;
8052 #define _SMT2TMR16 0x01
8053 #define _SMT2TMR17 0x02
8054 #define _SMT2TMR18 0x04
8055 #define _SMT2TMR19 0x08
8056 #define _SMT2TMR20 0x10
8057 #define _SMT2TMR21 0x20
8058 #define _SMT2TMR22 0x40
8059 #define _SMT2TMR23 0x80
8061 //==============================================================================
8063 extern __at(0x050F) __sfr SMT2CPR;
8065 //==============================================================================
8066 // SMT2CPRL Bits
8068 extern __at(0x050F) __sfr SMT2CPRL;
8070 typedef struct
8072 unsigned CPR0 : 1;
8073 unsigned CPR1 : 1;
8074 unsigned CPR2 : 1;
8075 unsigned CPR3 : 1;
8076 unsigned CPR4 : 1;
8077 unsigned CPR5 : 1;
8078 unsigned CPR6 : 1;
8079 unsigned CPR7 : 1;
8080 } __SMT2CPRLbits_t;
8082 extern __at(0x050F) volatile __SMT2CPRLbits_t SMT2CPRLbits;
8084 #define _SMT2CPRL_CPR0 0x01
8085 #define _SMT2CPRL_CPR1 0x02
8086 #define _SMT2CPRL_CPR2 0x04
8087 #define _SMT2CPRL_CPR3 0x08
8088 #define _SMT2CPRL_CPR4 0x10
8089 #define _SMT2CPRL_CPR5 0x20
8090 #define _SMT2CPRL_CPR6 0x40
8091 #define _SMT2CPRL_CPR7 0x80
8093 //==============================================================================
8096 //==============================================================================
8097 // SMT2CPRH Bits
8099 extern __at(0x0510) __sfr SMT2CPRH;
8101 typedef union
8103 struct
8105 unsigned CPR8 : 1;
8106 unsigned CPR9 : 1;
8107 unsigned CPR10 : 1;
8108 unsigned CPR11 : 1;
8109 unsigned CPR12 : 1;
8110 unsigned CPR13 : 1;
8111 unsigned CPR14 : 1;
8112 unsigned CPR15 : 1;
8115 struct
8117 unsigned SMT2CPR8 : 1;
8118 unsigned SMT2CPR9 : 1;
8119 unsigned SMT2CPR10 : 1;
8120 unsigned SMT2CPR11 : 1;
8121 unsigned SMT2CPR12 : 1;
8122 unsigned SMT2CPR13 : 1;
8123 unsigned SMT2CPR14 : 1;
8124 unsigned SMT2CPR15 : 1;
8126 } __SMT2CPRHbits_t;
8128 extern __at(0x0510) volatile __SMT2CPRHbits_t SMT2CPRHbits;
8130 #define _SMT2CPRH_CPR8 0x01
8131 #define _SMT2CPRH_SMT2CPR8 0x01
8132 #define _SMT2CPRH_CPR9 0x02
8133 #define _SMT2CPRH_SMT2CPR9 0x02
8134 #define _SMT2CPRH_CPR10 0x04
8135 #define _SMT2CPRH_SMT2CPR10 0x04
8136 #define _SMT2CPRH_CPR11 0x08
8137 #define _SMT2CPRH_SMT2CPR11 0x08
8138 #define _SMT2CPRH_CPR12 0x10
8139 #define _SMT2CPRH_SMT2CPR12 0x10
8140 #define _SMT2CPRH_CPR13 0x20
8141 #define _SMT2CPRH_SMT2CPR13 0x20
8142 #define _SMT2CPRH_CPR14 0x40
8143 #define _SMT2CPRH_SMT2CPR14 0x40
8144 #define _SMT2CPRH_CPR15 0x80
8145 #define _SMT2CPRH_SMT2CPR15 0x80
8147 //==============================================================================
8150 //==============================================================================
8151 // SMT2CPRU Bits
8153 extern __at(0x0511) __sfr SMT2CPRU;
8155 typedef union
8157 struct
8159 unsigned CPR16 : 1;
8160 unsigned CPR17 : 1;
8161 unsigned CPR18 : 1;
8162 unsigned CPR19 : 1;
8163 unsigned CPR20 : 1;
8164 unsigned CPR21 : 1;
8165 unsigned CPR22 : 1;
8166 unsigned CPR23 : 1;
8169 struct
8171 unsigned SMT2CPR16 : 1;
8172 unsigned SMT2CPR17 : 1;
8173 unsigned SMT2CPR18 : 1;
8174 unsigned SMT2CPR19 : 1;
8175 unsigned SMT2CPR20 : 1;
8176 unsigned SMT2CPR21 : 1;
8177 unsigned SMT2CPR22 : 1;
8178 unsigned SMT2CPR23 : 1;
8180 } __SMT2CPRUbits_t;
8182 extern __at(0x0511) volatile __SMT2CPRUbits_t SMT2CPRUbits;
8184 #define _SMT2CPRU_CPR16 0x01
8185 #define _SMT2CPRU_SMT2CPR16 0x01
8186 #define _SMT2CPRU_CPR17 0x02
8187 #define _SMT2CPRU_SMT2CPR17 0x02
8188 #define _SMT2CPRU_CPR18 0x04
8189 #define _SMT2CPRU_SMT2CPR18 0x04
8190 #define _SMT2CPRU_CPR19 0x08
8191 #define _SMT2CPRU_SMT2CPR19 0x08
8192 #define _SMT2CPRU_CPR20 0x10
8193 #define _SMT2CPRU_SMT2CPR20 0x10
8194 #define _SMT2CPRU_CPR21 0x20
8195 #define _SMT2CPRU_SMT2CPR21 0x20
8196 #define _SMT2CPRU_CPR22 0x40
8197 #define _SMT2CPRU_SMT2CPR22 0x40
8198 #define _SMT2CPRU_CPR23 0x80
8199 #define _SMT2CPRU_SMT2CPR23 0x80
8201 //==============================================================================
8203 extern __at(0x0512) __sfr SMT2CPW;
8205 //==============================================================================
8206 // SMT2CPWL Bits
8208 extern __at(0x0512) __sfr SMT2CPWL;
8210 typedef union
8212 struct
8214 unsigned CPW0 : 1;
8215 unsigned CPW1 : 1;
8216 unsigned CPW2 : 1;
8217 unsigned CPW3 : 1;
8218 unsigned CPW4 : 1;
8219 unsigned CPW5 : 1;
8220 unsigned CPW6 : 1;
8221 unsigned CPW7 : 1;
8224 struct
8226 unsigned SMT2CPW0 : 1;
8227 unsigned SMT2CPW1 : 1;
8228 unsigned SMT2CPW2 : 1;
8229 unsigned SMT2CPW3 : 1;
8230 unsigned SMT2CPW4 : 1;
8231 unsigned SMT2CPW5 : 1;
8232 unsigned SMT2CPW6 : 1;
8233 unsigned SMT2CPW7 : 1;
8235 } __SMT2CPWLbits_t;
8237 extern __at(0x0512) volatile __SMT2CPWLbits_t SMT2CPWLbits;
8239 #define _SMT2CPWL_CPW0 0x01
8240 #define _SMT2CPWL_SMT2CPW0 0x01
8241 #define _SMT2CPWL_CPW1 0x02
8242 #define _SMT2CPWL_SMT2CPW1 0x02
8243 #define _SMT2CPWL_CPW2 0x04
8244 #define _SMT2CPWL_SMT2CPW2 0x04
8245 #define _SMT2CPWL_CPW3 0x08
8246 #define _SMT2CPWL_SMT2CPW3 0x08
8247 #define _SMT2CPWL_CPW4 0x10
8248 #define _SMT2CPWL_SMT2CPW4 0x10
8249 #define _SMT2CPWL_CPW5 0x20
8250 #define _SMT2CPWL_SMT2CPW5 0x20
8251 #define _SMT2CPWL_CPW6 0x40
8252 #define _SMT2CPWL_SMT2CPW6 0x40
8253 #define _SMT2CPWL_CPW7 0x80
8254 #define _SMT2CPWL_SMT2CPW7 0x80
8256 //==============================================================================
8259 //==============================================================================
8260 // SMT2CPWH Bits
8262 extern __at(0x0513) __sfr SMT2CPWH;
8264 typedef union
8266 struct
8268 unsigned CPW8 : 1;
8269 unsigned CPW9 : 1;
8270 unsigned CPW10 : 1;
8271 unsigned CPW11 : 1;
8272 unsigned CPW12 : 1;
8273 unsigned CPW13 : 1;
8274 unsigned CPW14 : 1;
8275 unsigned CPW15 : 1;
8278 struct
8280 unsigned SMT2CPW8 : 1;
8281 unsigned SMT2CPW9 : 1;
8282 unsigned SMT2CPW10 : 1;
8283 unsigned SMT2CPW11 : 1;
8284 unsigned SMT2CPW12 : 1;
8285 unsigned SMT2CPW13 : 1;
8286 unsigned SMT2CPW14 : 1;
8287 unsigned SMT2CPW15 : 1;
8289 } __SMT2CPWHbits_t;
8291 extern __at(0x0513) volatile __SMT2CPWHbits_t SMT2CPWHbits;
8293 #define _SMT2CPWH_CPW8 0x01
8294 #define _SMT2CPWH_SMT2CPW8 0x01
8295 #define _SMT2CPWH_CPW9 0x02
8296 #define _SMT2CPWH_SMT2CPW9 0x02
8297 #define _SMT2CPWH_CPW10 0x04
8298 #define _SMT2CPWH_SMT2CPW10 0x04
8299 #define _SMT2CPWH_CPW11 0x08
8300 #define _SMT2CPWH_SMT2CPW11 0x08
8301 #define _SMT2CPWH_CPW12 0x10
8302 #define _SMT2CPWH_SMT2CPW12 0x10
8303 #define _SMT2CPWH_CPW13 0x20
8304 #define _SMT2CPWH_SMT2CPW13 0x20
8305 #define _SMT2CPWH_CPW14 0x40
8306 #define _SMT2CPWH_SMT2CPW14 0x40
8307 #define _SMT2CPWH_CPW15 0x80
8308 #define _SMT2CPWH_SMT2CPW15 0x80
8310 //==============================================================================
8313 //==============================================================================
8314 // SMT2CPWU Bits
8316 extern __at(0x0514) __sfr SMT2CPWU;
8318 typedef union
8320 struct
8322 unsigned CPW16 : 1;
8323 unsigned CPW17 : 1;
8324 unsigned CPW18 : 1;
8325 unsigned CPW19 : 1;
8326 unsigned CPW20 : 1;
8327 unsigned CPW21 : 1;
8328 unsigned CPW22 : 1;
8329 unsigned CPW23 : 1;
8332 struct
8334 unsigned SMT2CPW16 : 1;
8335 unsigned SMT2CPW17 : 1;
8336 unsigned SMT2CPW18 : 1;
8337 unsigned SMT2CPW19 : 1;
8338 unsigned SMT2CPW20 : 1;
8339 unsigned SMT2CPW21 : 1;
8340 unsigned SMT2CPW22 : 1;
8341 unsigned SMT2CPW23 : 1;
8343 } __SMT2CPWUbits_t;
8345 extern __at(0x0514) volatile __SMT2CPWUbits_t SMT2CPWUbits;
8347 #define _SMT2CPWU_CPW16 0x01
8348 #define _SMT2CPWU_SMT2CPW16 0x01
8349 #define _SMT2CPWU_CPW17 0x02
8350 #define _SMT2CPWU_SMT2CPW17 0x02
8351 #define _SMT2CPWU_CPW18 0x04
8352 #define _SMT2CPWU_SMT2CPW18 0x04
8353 #define _SMT2CPWU_CPW19 0x08
8354 #define _SMT2CPWU_SMT2CPW19 0x08
8355 #define _SMT2CPWU_CPW20 0x10
8356 #define _SMT2CPWU_SMT2CPW20 0x10
8357 #define _SMT2CPWU_CPW21 0x20
8358 #define _SMT2CPWU_SMT2CPW21 0x20
8359 #define _SMT2CPWU_CPW22 0x40
8360 #define _SMT2CPWU_SMT2CPW22 0x40
8361 #define _SMT2CPWU_CPW23 0x80
8362 #define _SMT2CPWU_SMT2CPW23 0x80
8364 //==============================================================================
8366 extern __at(0x0515) __sfr SMT2PR;
8368 //==============================================================================
8369 // SMT2PRL Bits
8371 extern __at(0x0515) __sfr SMT2PRL;
8373 typedef struct
8375 unsigned SMT2PR0 : 1;
8376 unsigned SMT2PR1 : 1;
8377 unsigned SMT2PR2 : 1;
8378 unsigned SMT2PR3 : 1;
8379 unsigned SMT2PR4 : 1;
8380 unsigned SMT2PR5 : 1;
8381 unsigned SMT2PR6 : 1;
8382 unsigned SMT2PR7 : 1;
8383 } __SMT2PRLbits_t;
8385 extern __at(0x0515) volatile __SMT2PRLbits_t SMT2PRLbits;
8387 #define _SMT2PR0 0x01
8388 #define _SMT2PR1 0x02
8389 #define _SMT2PR2 0x04
8390 #define _SMT2PR3 0x08
8391 #define _SMT2PR4 0x10
8392 #define _SMT2PR5 0x20
8393 #define _SMT2PR6 0x40
8394 #define _SMT2PR7 0x80
8396 //==============================================================================
8399 //==============================================================================
8400 // SMT2PRH Bits
8402 extern __at(0x0516) __sfr SMT2PRH;
8404 typedef struct
8406 unsigned SMT2PR8 : 1;
8407 unsigned SMT2PR9 : 1;
8408 unsigned SMT2PR10 : 1;
8409 unsigned SMT2PR11 : 1;
8410 unsigned SMT2PR12 : 1;
8411 unsigned SMT2PR13 : 1;
8412 unsigned SMT2PR14 : 1;
8413 unsigned SMT2PR15 : 1;
8414 } __SMT2PRHbits_t;
8416 extern __at(0x0516) volatile __SMT2PRHbits_t SMT2PRHbits;
8418 #define _SMT2PR8 0x01
8419 #define _SMT2PR9 0x02
8420 #define _SMT2PR10 0x04
8421 #define _SMT2PR11 0x08
8422 #define _SMT2PR12 0x10
8423 #define _SMT2PR13 0x20
8424 #define _SMT2PR14 0x40
8425 #define _SMT2PR15 0x80
8427 //==============================================================================
8430 //==============================================================================
8431 // SMT2PRU Bits
8433 extern __at(0x0517) __sfr SMT2PRU;
8435 typedef struct
8437 unsigned SMT2PR16 : 1;
8438 unsigned SMT2PR17 : 1;
8439 unsigned SMT2PR18 : 1;
8440 unsigned SMT2PR19 : 1;
8441 unsigned SMT2PR20 : 1;
8442 unsigned SMT2PR21 : 1;
8443 unsigned SMT2PR22 : 1;
8444 unsigned SMT2PR23 : 1;
8445 } __SMT2PRUbits_t;
8447 extern __at(0x0517) volatile __SMT2PRUbits_t SMT2PRUbits;
8449 #define _SMT2PR16 0x01
8450 #define _SMT2PR17 0x02
8451 #define _SMT2PR18 0x04
8452 #define _SMT2PR19 0x08
8453 #define _SMT2PR20 0x10
8454 #define _SMT2PR21 0x20
8455 #define _SMT2PR22 0x40
8456 #define _SMT2PR23 0x80
8458 //==============================================================================
8461 //==============================================================================
8462 // SMT2CON0 Bits
8464 extern __at(0x0518) __sfr SMT2CON0;
8466 typedef union
8468 struct
8470 unsigned SMT2PS0 : 1;
8471 unsigned SMT2PS1 : 1;
8472 unsigned CPOL : 1;
8473 unsigned SPOL : 1;
8474 unsigned WPOL : 1;
8475 unsigned STP : 1;
8476 unsigned : 1;
8477 unsigned EN : 1;
8480 struct
8482 unsigned : 1;
8483 unsigned : 1;
8484 unsigned : 1;
8485 unsigned : 1;
8486 unsigned : 1;
8487 unsigned : 1;
8488 unsigned : 1;
8489 unsigned SMT2EN : 1;
8492 struct
8494 unsigned SMT2PS : 2;
8495 unsigned : 6;
8497 } __SMT2CON0bits_t;
8499 extern __at(0x0518) volatile __SMT2CON0bits_t SMT2CON0bits;
8501 #define _SMT2CON0_SMT2PS0 0x01
8502 #define _SMT2CON0_SMT2PS1 0x02
8503 #define _SMT2CON0_CPOL 0x04
8504 #define _SMT2CON0_SPOL 0x08
8505 #define _SMT2CON0_WPOL 0x10
8506 #define _SMT2CON0_STP 0x20
8507 #define _SMT2CON0_EN 0x80
8508 #define _SMT2CON0_SMT2EN 0x80
8510 //==============================================================================
8513 //==============================================================================
8514 // SMT2CON1 Bits
8516 extern __at(0x0519) __sfr SMT2CON1;
8518 typedef union
8520 struct
8522 unsigned MODE0 : 1;
8523 unsigned MODE1 : 1;
8524 unsigned MODE2 : 1;
8525 unsigned MODE3 : 1;
8526 unsigned : 1;
8527 unsigned : 1;
8528 unsigned REPEAT : 1;
8529 unsigned SMT2GO : 1;
8532 struct
8534 unsigned MODE : 4;
8535 unsigned : 4;
8537 } __SMT2CON1bits_t;
8539 extern __at(0x0519) volatile __SMT2CON1bits_t SMT2CON1bits;
8541 #define _SMT2CON1_MODE0 0x01
8542 #define _SMT2CON1_MODE1 0x02
8543 #define _SMT2CON1_MODE2 0x04
8544 #define _SMT2CON1_MODE3 0x08
8545 #define _SMT2CON1_REPEAT 0x40
8546 #define _SMT2CON1_SMT2GO 0x80
8548 //==============================================================================
8551 //==============================================================================
8552 // SMT2STAT Bits
8554 extern __at(0x051A) __sfr SMT2STAT;
8556 typedef union
8558 struct
8560 unsigned AS : 1;
8561 unsigned WS : 1;
8562 unsigned TS : 1;
8563 unsigned : 1;
8564 unsigned : 1;
8565 unsigned RST : 1;
8566 unsigned CPWUP : 1;
8567 unsigned CPRUP : 1;
8570 struct
8572 unsigned SMT2AS : 1;
8573 unsigned SMT2WS : 1;
8574 unsigned SMT2TS : 1;
8575 unsigned : 1;
8576 unsigned : 1;
8577 unsigned SMT2RESET : 1;
8578 unsigned SMT2CPWUP : 1;
8579 unsigned SMT2CPRUP : 1;
8581 } __SMT2STATbits_t;
8583 extern __at(0x051A) volatile __SMT2STATbits_t SMT2STATbits;
8585 #define _SMT2STAT_AS 0x01
8586 #define _SMT2STAT_SMT2AS 0x01
8587 #define _SMT2STAT_WS 0x02
8588 #define _SMT2STAT_SMT2WS 0x02
8589 #define _SMT2STAT_TS 0x04
8590 #define _SMT2STAT_SMT2TS 0x04
8591 #define _SMT2STAT_RST 0x20
8592 #define _SMT2STAT_SMT2RESET 0x20
8593 #define _SMT2STAT_CPWUP 0x40
8594 #define _SMT2STAT_SMT2CPWUP 0x40
8595 #define _SMT2STAT_CPRUP 0x80
8596 #define _SMT2STAT_SMT2CPRUP 0x80
8598 //==============================================================================
8601 //==============================================================================
8602 // SMT2CLK Bits
8604 extern __at(0x051B) __sfr SMT2CLK;
8606 typedef union
8608 struct
8610 unsigned CSEL0 : 1;
8611 unsigned CSEL1 : 1;
8612 unsigned CSEL2 : 1;
8613 unsigned : 1;
8614 unsigned : 1;
8615 unsigned : 1;
8616 unsigned : 1;
8617 unsigned : 1;
8620 struct
8622 unsigned SMT2CSEL0 : 1;
8623 unsigned SMT2CSEL1 : 1;
8624 unsigned SMT2CSEL2 : 1;
8625 unsigned : 1;
8626 unsigned : 1;
8627 unsigned : 1;
8628 unsigned : 1;
8629 unsigned : 1;
8632 struct
8634 unsigned CSEL : 3;
8635 unsigned : 5;
8638 struct
8640 unsigned SMT2CSEL : 3;
8641 unsigned : 5;
8643 } __SMT2CLKbits_t;
8645 extern __at(0x051B) volatile __SMT2CLKbits_t SMT2CLKbits;
8647 #define _SMT2CLK_CSEL0 0x01
8648 #define _SMT2CLK_SMT2CSEL0 0x01
8649 #define _SMT2CLK_CSEL1 0x02
8650 #define _SMT2CLK_SMT2CSEL1 0x02
8651 #define _SMT2CLK_CSEL2 0x04
8652 #define _SMT2CLK_SMT2CSEL2 0x04
8654 //==============================================================================
8657 //==============================================================================
8658 // SMT2SIG Bits
8660 extern __at(0x051C) __sfr SMT2SIG;
8662 typedef union
8664 struct
8666 unsigned SSEL0 : 1;
8667 unsigned SSEL1 : 1;
8668 unsigned SSEL2 : 1;
8669 unsigned SSEL3 : 1;
8670 unsigned SSEL4 : 1;
8671 unsigned : 1;
8672 unsigned : 1;
8673 unsigned : 1;
8676 struct
8678 unsigned SMT2SSEL0 : 1;
8679 unsigned SMT2SSEL1 : 1;
8680 unsigned SMT2SSEL2 : 1;
8681 unsigned SMT2SSEL3 : 1;
8682 unsigned SMT2SSEL4 : 1;
8683 unsigned : 1;
8684 unsigned : 1;
8685 unsigned : 1;
8688 struct
8690 unsigned SMT2SSEL : 5;
8691 unsigned : 3;
8694 struct
8696 unsigned SSEL : 5;
8697 unsigned : 3;
8699 } __SMT2SIGbits_t;
8701 extern __at(0x051C) volatile __SMT2SIGbits_t SMT2SIGbits;
8703 #define _SMT2SIG_SSEL0 0x01
8704 #define _SMT2SIG_SMT2SSEL0 0x01
8705 #define _SMT2SIG_SSEL1 0x02
8706 #define _SMT2SIG_SMT2SSEL1 0x02
8707 #define _SMT2SIG_SSEL2 0x04
8708 #define _SMT2SIG_SMT2SSEL2 0x04
8709 #define _SMT2SIG_SSEL3 0x08
8710 #define _SMT2SIG_SMT2SSEL3 0x08
8711 #define _SMT2SIG_SSEL4 0x10
8712 #define _SMT2SIG_SMT2SSEL4 0x10
8714 //==============================================================================
8717 //==============================================================================
8718 // SMT2WIN Bits
8720 extern __at(0x051D) __sfr SMT2WIN;
8722 typedef union
8724 struct
8726 unsigned WSEL0 : 1;
8727 unsigned WSEL1 : 1;
8728 unsigned WSEL2 : 1;
8729 unsigned WSEL3 : 1;
8730 unsigned WSEL4 : 1;
8731 unsigned : 1;
8732 unsigned : 1;
8733 unsigned : 1;
8736 struct
8738 unsigned SMT2WSEL0 : 1;
8739 unsigned SMT2WSEL1 : 1;
8740 unsigned SMT2WSEL2 : 1;
8741 unsigned SMT2WSEL3 : 1;
8742 unsigned SMT2WSEL4 : 1;
8743 unsigned : 1;
8744 unsigned : 1;
8745 unsigned : 1;
8748 struct
8750 unsigned WSEL : 5;
8751 unsigned : 3;
8754 struct
8756 unsigned SMT2WSEL : 5;
8757 unsigned : 3;
8759 } __SMT2WINbits_t;
8761 extern __at(0x051D) volatile __SMT2WINbits_t SMT2WINbits;
8763 #define _SMT2WIN_WSEL0 0x01
8764 #define _SMT2WIN_SMT2WSEL0 0x01
8765 #define _SMT2WIN_WSEL1 0x02
8766 #define _SMT2WIN_SMT2WSEL1 0x02
8767 #define _SMT2WIN_WSEL2 0x04
8768 #define _SMT2WIN_SMT2WSEL2 0x04
8769 #define _SMT2WIN_WSEL3 0x08
8770 #define _SMT2WIN_SMT2WSEL3 0x08
8771 #define _SMT2WIN_WSEL4 0x10
8772 #define _SMT2WIN_SMT2WSEL4 0x10
8774 //==============================================================================
8776 extern __at(0x058C) __sfr NCO1ACC;
8778 //==============================================================================
8779 // NCO1ACCL Bits
8781 extern __at(0x058C) __sfr NCO1ACCL;
8783 typedef struct
8785 unsigned NCO1ACC0 : 1;
8786 unsigned NCO1ACC1 : 1;
8787 unsigned NCO1ACC2 : 1;
8788 unsigned NCO1ACC3 : 1;
8789 unsigned NCO1ACC4 : 1;
8790 unsigned NCO1ACC5 : 1;
8791 unsigned NCO1ACC6 : 1;
8792 unsigned NCO1ACC7 : 1;
8793 } __NCO1ACCLbits_t;
8795 extern __at(0x058C) volatile __NCO1ACCLbits_t NCO1ACCLbits;
8797 #define _NCO1ACC0 0x01
8798 #define _NCO1ACC1 0x02
8799 #define _NCO1ACC2 0x04
8800 #define _NCO1ACC3 0x08
8801 #define _NCO1ACC4 0x10
8802 #define _NCO1ACC5 0x20
8803 #define _NCO1ACC6 0x40
8804 #define _NCO1ACC7 0x80
8806 //==============================================================================
8809 //==============================================================================
8810 // NCO1ACCH Bits
8812 extern __at(0x058D) __sfr NCO1ACCH;
8814 typedef struct
8816 unsigned NCO1ACC8 : 1;
8817 unsigned NCO1ACC9 : 1;
8818 unsigned NCO1ACC10 : 1;
8819 unsigned NCO1ACC11 : 1;
8820 unsigned NCO1ACC12 : 1;
8821 unsigned NCO1ACC13 : 1;
8822 unsigned NCO1ACC14 : 1;
8823 unsigned NCO1ACC15 : 1;
8824 } __NCO1ACCHbits_t;
8826 extern __at(0x058D) volatile __NCO1ACCHbits_t NCO1ACCHbits;
8828 #define _NCO1ACC8 0x01
8829 #define _NCO1ACC9 0x02
8830 #define _NCO1ACC10 0x04
8831 #define _NCO1ACC11 0x08
8832 #define _NCO1ACC12 0x10
8833 #define _NCO1ACC13 0x20
8834 #define _NCO1ACC14 0x40
8835 #define _NCO1ACC15 0x80
8837 //==============================================================================
8840 //==============================================================================
8841 // NCO1ACCU Bits
8843 extern __at(0x058E) __sfr NCO1ACCU;
8845 typedef struct
8847 unsigned NCO1ACC16 : 1;
8848 unsigned NCO1ACC17 : 1;
8849 unsigned NCO1ACC18 : 1;
8850 unsigned NCO1ACC19 : 1;
8851 unsigned : 1;
8852 unsigned : 1;
8853 unsigned : 1;
8854 unsigned : 1;
8855 } __NCO1ACCUbits_t;
8857 extern __at(0x058E) volatile __NCO1ACCUbits_t NCO1ACCUbits;
8859 #define _NCO1ACC16 0x01
8860 #define _NCO1ACC17 0x02
8861 #define _NCO1ACC18 0x04
8862 #define _NCO1ACC19 0x08
8864 //==============================================================================
8866 extern __at(0x058F) __sfr NCO1INC;
8868 //==============================================================================
8869 // NCO1INCL Bits
8871 extern __at(0x058F) __sfr NCO1INCL;
8873 typedef struct
8875 unsigned NCO1INC0 : 1;
8876 unsigned NCO1INC1 : 1;
8877 unsigned NCO1INC2 : 1;
8878 unsigned NCO1INC3 : 1;
8879 unsigned NCO1INC4 : 1;
8880 unsigned NCO1INC5 : 1;
8881 unsigned NCO1INC6 : 1;
8882 unsigned NCO1INC7 : 1;
8883 } __NCO1INCLbits_t;
8885 extern __at(0x058F) volatile __NCO1INCLbits_t NCO1INCLbits;
8887 #define _NCO1INC0 0x01
8888 #define _NCO1INC1 0x02
8889 #define _NCO1INC2 0x04
8890 #define _NCO1INC3 0x08
8891 #define _NCO1INC4 0x10
8892 #define _NCO1INC5 0x20
8893 #define _NCO1INC6 0x40
8894 #define _NCO1INC7 0x80
8896 //==============================================================================
8899 //==============================================================================
8900 // NCO1INCH Bits
8902 extern __at(0x0590) __sfr NCO1INCH;
8904 typedef struct
8906 unsigned NCO1INC8 : 1;
8907 unsigned NCO1INC9 : 1;
8908 unsigned NCO1INC10 : 1;
8909 unsigned NCO1INC11 : 1;
8910 unsigned NCO1INC12 : 1;
8911 unsigned NCO1INC13 : 1;
8912 unsigned NCO1INC14 : 1;
8913 unsigned NCO1INC15 : 1;
8914 } __NCO1INCHbits_t;
8916 extern __at(0x0590) volatile __NCO1INCHbits_t NCO1INCHbits;
8918 #define _NCO1INC8 0x01
8919 #define _NCO1INC9 0x02
8920 #define _NCO1INC10 0x04
8921 #define _NCO1INC11 0x08
8922 #define _NCO1INC12 0x10
8923 #define _NCO1INC13 0x20
8924 #define _NCO1INC14 0x40
8925 #define _NCO1INC15 0x80
8927 //==============================================================================
8930 //==============================================================================
8931 // NCO1INCU Bits
8933 extern __at(0x0591) __sfr NCO1INCU;
8935 typedef struct
8937 unsigned NCO1INC16 : 1;
8938 unsigned NCO1INC17 : 1;
8939 unsigned NCO1INC18 : 1;
8940 unsigned NCO1INC19 : 1;
8941 unsigned : 1;
8942 unsigned : 1;
8943 unsigned : 1;
8944 unsigned : 1;
8945 } __NCO1INCUbits_t;
8947 extern __at(0x0591) volatile __NCO1INCUbits_t NCO1INCUbits;
8949 #define _NCO1INC16 0x01
8950 #define _NCO1INC17 0x02
8951 #define _NCO1INC18 0x04
8952 #define _NCO1INC19 0x08
8954 //==============================================================================
8957 //==============================================================================
8958 // NCO1CON Bits
8960 extern __at(0x0592) __sfr NCO1CON;
8962 typedef struct
8964 unsigned N1PFM : 1;
8965 unsigned : 1;
8966 unsigned : 1;
8967 unsigned : 1;
8968 unsigned N1POL : 1;
8969 unsigned N1OUT : 1;
8970 unsigned : 1;
8971 unsigned N1EN : 1;
8972 } __NCO1CONbits_t;
8974 extern __at(0x0592) volatile __NCO1CONbits_t NCO1CONbits;
8976 #define _N1PFM 0x01
8977 #define _N1POL 0x10
8978 #define _N1OUT 0x20
8979 #define _N1EN 0x80
8981 //==============================================================================
8984 //==============================================================================
8985 // NCO1CLK Bits
8987 extern __at(0x0593) __sfr NCO1CLK;
8989 typedef union
8991 struct
8993 unsigned N1CKS0 : 1;
8994 unsigned N1CKS1 : 1;
8995 unsigned N1CKS2 : 1;
8996 unsigned : 1;
8997 unsigned : 1;
8998 unsigned N1PWS0 : 1;
8999 unsigned N1PWS1 : 1;
9000 unsigned N1PWS2 : 1;
9003 struct
9005 unsigned N1CKS : 3;
9006 unsigned : 5;
9009 struct
9011 unsigned : 5;
9012 unsigned N1PWS : 3;
9014 } __NCO1CLKbits_t;
9016 extern __at(0x0593) volatile __NCO1CLKbits_t NCO1CLKbits;
9018 #define _N1CKS0 0x01
9019 #define _N1CKS1 0x02
9020 #define _N1CKS2 0x04
9021 #define _N1PWS0 0x20
9022 #define _N1PWS1 0x40
9023 #define _N1PWS2 0x80
9025 //==============================================================================
9028 //==============================================================================
9029 // CWG1CLKCON Bits
9031 extern __at(0x060C) __sfr CWG1CLKCON;
9033 typedef union
9035 struct
9037 unsigned CS : 1;
9038 unsigned : 1;
9039 unsigned : 1;
9040 unsigned : 1;
9041 unsigned : 1;
9042 unsigned : 1;
9043 unsigned : 1;
9044 unsigned : 1;
9047 struct
9049 unsigned CWG1CS : 1;
9050 unsigned : 1;
9051 unsigned : 1;
9052 unsigned : 1;
9053 unsigned : 1;
9054 unsigned : 1;
9055 unsigned : 1;
9056 unsigned : 1;
9058 } __CWG1CLKCONbits_t;
9060 extern __at(0x060C) volatile __CWG1CLKCONbits_t CWG1CLKCONbits;
9062 #define _CS 0x01
9063 #define _CWG1CS 0x01
9065 //==============================================================================
9068 //==============================================================================
9069 // CWG1ISM Bits
9071 extern __at(0x060D) __sfr CWG1ISM;
9073 typedef union
9075 struct
9077 unsigned CWG1ISM0 : 1;
9078 unsigned CWG1ISM1 : 1;
9079 unsigned CWG1ISM2 : 1;
9080 unsigned CWG1ISM3 : 1;
9081 unsigned : 1;
9082 unsigned : 1;
9083 unsigned : 1;
9084 unsigned : 1;
9087 struct
9089 unsigned CWG1ISM : 4;
9090 unsigned : 4;
9092 } __CWG1ISMbits_t;
9094 extern __at(0x060D) volatile __CWG1ISMbits_t CWG1ISMbits;
9096 #define _CWG1ISM0 0x01
9097 #define _CWG1ISM1 0x02
9098 #define _CWG1ISM2 0x04
9099 #define _CWG1ISM3 0x08
9101 //==============================================================================
9104 //==============================================================================
9105 // CWG1DBR Bits
9107 extern __at(0x060E) __sfr CWG1DBR;
9109 typedef union
9111 struct
9113 unsigned DBR0 : 1;
9114 unsigned DBR1 : 1;
9115 unsigned DBR2 : 1;
9116 unsigned DBR3 : 1;
9117 unsigned DBR4 : 1;
9118 unsigned DBR5 : 1;
9119 unsigned : 1;
9120 unsigned : 1;
9123 struct
9125 unsigned CWG1DBR0 : 1;
9126 unsigned CWG1DBR1 : 1;
9127 unsigned CWG1DBR2 : 1;
9128 unsigned CWG1DBR3 : 1;
9129 unsigned CWG1DBR4 : 1;
9130 unsigned CWG1DBR5 : 1;
9131 unsigned : 1;
9132 unsigned : 1;
9135 struct
9137 unsigned DBR : 6;
9138 unsigned : 2;
9141 struct
9143 unsigned CWG1DBR : 6;
9144 unsigned : 2;
9146 } __CWG1DBRbits_t;
9148 extern __at(0x060E) volatile __CWG1DBRbits_t CWG1DBRbits;
9150 #define _DBR0 0x01
9151 #define _CWG1DBR0 0x01
9152 #define _DBR1 0x02
9153 #define _CWG1DBR1 0x02
9154 #define _DBR2 0x04
9155 #define _CWG1DBR2 0x04
9156 #define _DBR3 0x08
9157 #define _CWG1DBR3 0x08
9158 #define _DBR4 0x10
9159 #define _CWG1DBR4 0x10
9160 #define _DBR5 0x20
9161 #define _CWG1DBR5 0x20
9163 //==============================================================================
9166 //==============================================================================
9167 // CWG1DBF Bits
9169 extern __at(0x060F) __sfr CWG1DBF;
9171 typedef union
9173 struct
9175 unsigned DBF0 : 1;
9176 unsigned DBF1 : 1;
9177 unsigned DBF2 : 1;
9178 unsigned DBF3 : 1;
9179 unsigned DBF4 : 1;
9180 unsigned DBF5 : 1;
9181 unsigned : 1;
9182 unsigned : 1;
9185 struct
9187 unsigned CWG1DBF0 : 1;
9188 unsigned CWG1DBF1 : 1;
9189 unsigned CWG1DBF2 : 1;
9190 unsigned CWG1DBF3 : 1;
9191 unsigned CWG1DBF4 : 1;
9192 unsigned CWG1DBF5 : 1;
9193 unsigned : 1;
9194 unsigned : 1;
9197 struct
9199 unsigned CWG1DBF : 6;
9200 unsigned : 2;
9203 struct
9205 unsigned DBF : 6;
9206 unsigned : 2;
9208 } __CWG1DBFbits_t;
9210 extern __at(0x060F) volatile __CWG1DBFbits_t CWG1DBFbits;
9212 #define _DBF0 0x01
9213 #define _CWG1DBF0 0x01
9214 #define _DBF1 0x02
9215 #define _CWG1DBF1 0x02
9216 #define _DBF2 0x04
9217 #define _CWG1DBF2 0x04
9218 #define _DBF3 0x08
9219 #define _CWG1DBF3 0x08
9220 #define _DBF4 0x10
9221 #define _CWG1DBF4 0x10
9222 #define _DBF5 0x20
9223 #define _CWG1DBF5 0x20
9225 //==============================================================================
9228 //==============================================================================
9229 // CWG1CON0 Bits
9231 extern __at(0x0610) __sfr CWG1CON0;
9233 typedef union
9235 struct
9237 unsigned MODE0 : 1;
9238 unsigned MODE1 : 1;
9239 unsigned MODE2 : 1;
9240 unsigned : 1;
9241 unsigned : 1;
9242 unsigned : 1;
9243 unsigned LD : 1;
9244 unsigned EN : 1;
9247 struct
9249 unsigned CWG1MODE0 : 1;
9250 unsigned CWG1MODE1 : 1;
9251 unsigned CWG1MODE2 : 1;
9252 unsigned : 1;
9253 unsigned : 1;
9254 unsigned : 1;
9255 unsigned CWG1LD : 1;
9256 unsigned G1EN : 1;
9259 struct
9261 unsigned : 1;
9262 unsigned : 1;
9263 unsigned : 1;
9264 unsigned : 1;
9265 unsigned : 1;
9266 unsigned : 1;
9267 unsigned : 1;
9268 unsigned CWG1EN : 1;
9271 struct
9273 unsigned MODE : 3;
9274 unsigned : 5;
9277 struct
9279 unsigned CWG1MODE : 3;
9280 unsigned : 5;
9282 } __CWG1CON0bits_t;
9284 extern __at(0x0610) volatile __CWG1CON0bits_t CWG1CON0bits;
9286 #define _CWG1CON0_MODE0 0x01
9287 #define _CWG1CON0_CWG1MODE0 0x01
9288 #define _CWG1CON0_MODE1 0x02
9289 #define _CWG1CON0_CWG1MODE1 0x02
9290 #define _CWG1CON0_MODE2 0x04
9291 #define _CWG1CON0_CWG1MODE2 0x04
9292 #define _CWG1CON0_LD 0x40
9293 #define _CWG1CON0_CWG1LD 0x40
9294 #define _CWG1CON0_EN 0x80
9295 #define _CWG1CON0_G1EN 0x80
9296 #define _CWG1CON0_CWG1EN 0x80
9298 //==============================================================================
9301 //==============================================================================
9302 // CWG1CON1 Bits
9304 extern __at(0x0611) __sfr CWG1CON1;
9306 typedef union
9308 struct
9310 unsigned POLA : 1;
9311 unsigned POLB : 1;
9312 unsigned POLC : 1;
9313 unsigned POLD : 1;
9314 unsigned : 1;
9315 unsigned IN : 1;
9316 unsigned : 1;
9317 unsigned : 1;
9320 struct
9322 unsigned CWG1POLA : 1;
9323 unsigned CWG1POLB : 1;
9324 unsigned CWG1POLC : 1;
9325 unsigned CWG1POLD : 1;
9326 unsigned : 1;
9327 unsigned CWG1IN : 1;
9328 unsigned : 1;
9329 unsigned : 1;
9331 } __CWG1CON1bits_t;
9333 extern __at(0x0611) volatile __CWG1CON1bits_t CWG1CON1bits;
9335 #define _POLA 0x01
9336 #define _CWG1POLA 0x01
9337 #define _POLB 0x02
9338 #define _CWG1POLB 0x02
9339 #define _POLC 0x04
9340 #define _CWG1POLC 0x04
9341 #define _POLD 0x08
9342 #define _CWG1POLD 0x08
9343 #define _IN 0x20
9344 #define _CWG1IN 0x20
9346 //==============================================================================
9349 //==============================================================================
9350 // CWG1AS0 Bits
9352 extern __at(0x0612) __sfr CWG1AS0;
9354 typedef union
9356 struct
9358 unsigned : 1;
9359 unsigned : 1;
9360 unsigned LSAC0 : 1;
9361 unsigned LSAC1 : 1;
9362 unsigned LSBD0 : 1;
9363 unsigned LSBD1 : 1;
9364 unsigned REN : 1;
9365 unsigned SHUTDOWN : 1;
9368 struct
9370 unsigned : 1;
9371 unsigned : 1;
9372 unsigned CWG1LSAC0 : 1;
9373 unsigned CWG1LSAC1 : 1;
9374 unsigned CWG1LSBD0 : 1;
9375 unsigned CWG1LSBD1 : 1;
9376 unsigned CWG1REN : 1;
9377 unsigned CWG1SHUTDOWN : 1;
9380 struct
9382 unsigned : 2;
9383 unsigned CWG1LSAC : 2;
9384 unsigned : 4;
9387 struct
9389 unsigned : 2;
9390 unsigned LSAC : 2;
9391 unsigned : 4;
9394 struct
9396 unsigned : 4;
9397 unsigned CWG1LSBD : 2;
9398 unsigned : 2;
9401 struct
9403 unsigned : 4;
9404 unsigned LSBD : 2;
9405 unsigned : 2;
9407 } __CWG1AS0bits_t;
9409 extern __at(0x0612) volatile __CWG1AS0bits_t CWG1AS0bits;
9411 #define _LSAC0 0x04
9412 #define _CWG1LSAC0 0x04
9413 #define _LSAC1 0x08
9414 #define _CWG1LSAC1 0x08
9415 #define _LSBD0 0x10
9416 #define _CWG1LSBD0 0x10
9417 #define _LSBD1 0x20
9418 #define _CWG1LSBD1 0x20
9419 #define _REN 0x40
9420 #define _CWG1REN 0x40
9421 #define _SHUTDOWN 0x80
9422 #define _CWG1SHUTDOWN 0x80
9424 //==============================================================================
9427 //==============================================================================
9428 // CWG1AS1 Bits
9430 extern __at(0x0613) __sfr CWG1AS1;
9432 typedef struct
9434 unsigned AS0E : 1;
9435 unsigned AS1E : 1;
9436 unsigned AS2E : 1;
9437 unsigned AS3E : 1;
9438 unsigned AS4E : 1;
9439 unsigned AS5E : 1;
9440 unsigned AS6E : 1;
9441 unsigned : 1;
9442 } __CWG1AS1bits_t;
9444 extern __at(0x0613) volatile __CWG1AS1bits_t CWG1AS1bits;
9446 #define _AS0E 0x01
9447 #define _AS1E 0x02
9448 #define _AS2E 0x04
9449 #define _AS3E 0x08
9450 #define _AS4E 0x10
9451 #define _AS5E 0x20
9452 #define _AS6E 0x40
9454 //==============================================================================
9457 //==============================================================================
9458 // CWG1STR Bits
9460 extern __at(0x0614) __sfr CWG1STR;
9462 typedef union
9464 struct
9466 unsigned STRA : 1;
9467 unsigned STRB : 1;
9468 unsigned STRC : 1;
9469 unsigned STRD : 1;
9470 unsigned OVRA : 1;
9471 unsigned OVRB : 1;
9472 unsigned OVRC : 1;
9473 unsigned OVRD : 1;
9476 struct
9478 unsigned CWG1STRA : 1;
9479 unsigned CWG1STRB : 1;
9480 unsigned CWG1STRC : 1;
9481 unsigned CWG1STRD : 1;
9482 unsigned CWG1OVRA : 1;
9483 unsigned CWG1OVRB : 1;
9484 unsigned CWG1OVRC : 1;
9485 unsigned CWG1OVRD : 1;
9487 } __CWG1STRbits_t;
9489 extern __at(0x0614) volatile __CWG1STRbits_t CWG1STRbits;
9491 #define _STRA 0x01
9492 #define _CWG1STRA 0x01
9493 #define _STRB 0x02
9494 #define _CWG1STRB 0x02
9495 #define _STRC 0x04
9496 #define _CWG1STRC 0x04
9497 #define _STRD 0x08
9498 #define _CWG1STRD 0x08
9499 #define _OVRA 0x10
9500 #define _CWG1OVRA 0x10
9501 #define _OVRB 0x20
9502 #define _CWG1OVRB 0x20
9503 #define _OVRC 0x40
9504 #define _CWG1OVRC 0x40
9505 #define _OVRD 0x80
9506 #define _CWG1OVRD 0x80
9508 //==============================================================================
9511 //==============================================================================
9512 // CWG2CLKCON Bits
9514 extern __at(0x0616) __sfr CWG2CLKCON;
9516 typedef union
9518 struct
9520 unsigned CS : 1;
9521 unsigned : 1;
9522 unsigned : 1;
9523 unsigned : 1;
9524 unsigned : 1;
9525 unsigned : 1;
9526 unsigned : 1;
9527 unsigned : 1;
9530 struct
9532 unsigned CWG2CS : 1;
9533 unsigned : 1;
9534 unsigned : 1;
9535 unsigned : 1;
9536 unsigned : 1;
9537 unsigned : 1;
9538 unsigned : 1;
9539 unsigned : 1;
9541 } __CWG2CLKCONbits_t;
9543 extern __at(0x0616) volatile __CWG2CLKCONbits_t CWG2CLKCONbits;
9545 #define _CWG2CLKCON_CS 0x01
9546 #define _CWG2CLKCON_CWG2CS 0x01
9548 //==============================================================================
9551 //==============================================================================
9552 // CWG2ISM Bits
9554 extern __at(0x0617) __sfr CWG2ISM;
9556 typedef union
9558 struct
9560 unsigned CWG2ISM0 : 1;
9561 unsigned CWG2ISM1 : 1;
9562 unsigned CWG2ISM2 : 1;
9563 unsigned CWG2ISM3 : 1;
9564 unsigned : 1;
9565 unsigned : 1;
9566 unsigned : 1;
9567 unsigned : 1;
9570 struct
9572 unsigned CWG2ISM : 4;
9573 unsigned : 4;
9575 } __CWG2ISMbits_t;
9577 extern __at(0x0617) volatile __CWG2ISMbits_t CWG2ISMbits;
9579 #define _CWG2ISM0 0x01
9580 #define _CWG2ISM1 0x02
9581 #define _CWG2ISM2 0x04
9582 #define _CWG2ISM3 0x08
9584 //==============================================================================
9587 //==============================================================================
9588 // CWG2DBR Bits
9590 extern __at(0x0618) __sfr CWG2DBR;
9592 typedef union
9594 struct
9596 unsigned DBR0 : 1;
9597 unsigned DBR1 : 1;
9598 unsigned DBR2 : 1;
9599 unsigned DBR3 : 1;
9600 unsigned DBR4 : 1;
9601 unsigned DBR5 : 1;
9602 unsigned : 1;
9603 unsigned : 1;
9606 struct
9608 unsigned CWG2DBR0 : 1;
9609 unsigned CWG2DBR1 : 1;
9610 unsigned CWG2DBR2 : 1;
9611 unsigned CWG2DBR3 : 1;
9612 unsigned CWG2DBR4 : 1;
9613 unsigned CWG2DBR5 : 1;
9614 unsigned : 1;
9615 unsigned : 1;
9618 struct
9620 unsigned DBR : 6;
9621 unsigned : 2;
9624 struct
9626 unsigned CWG2DBR : 6;
9627 unsigned : 2;
9629 } __CWG2DBRbits_t;
9631 extern __at(0x0618) volatile __CWG2DBRbits_t CWG2DBRbits;
9633 #define _CWG2DBR_DBR0 0x01
9634 #define _CWG2DBR_CWG2DBR0 0x01
9635 #define _CWG2DBR_DBR1 0x02
9636 #define _CWG2DBR_CWG2DBR1 0x02
9637 #define _CWG2DBR_DBR2 0x04
9638 #define _CWG2DBR_CWG2DBR2 0x04
9639 #define _CWG2DBR_DBR3 0x08
9640 #define _CWG2DBR_CWG2DBR3 0x08
9641 #define _CWG2DBR_DBR4 0x10
9642 #define _CWG2DBR_CWG2DBR4 0x10
9643 #define _CWG2DBR_DBR5 0x20
9644 #define _CWG2DBR_CWG2DBR5 0x20
9646 //==============================================================================
9649 //==============================================================================
9650 // CWG2DBF Bits
9652 extern __at(0x0619) __sfr CWG2DBF;
9654 typedef union
9656 struct
9658 unsigned DBF0 : 1;
9659 unsigned DBF1 : 1;
9660 unsigned DBF2 : 1;
9661 unsigned DBF3 : 1;
9662 unsigned DBF4 : 1;
9663 unsigned DBF5 : 1;
9664 unsigned : 1;
9665 unsigned : 1;
9668 struct
9670 unsigned CWG2DBF0 : 1;
9671 unsigned CWG2DBF1 : 1;
9672 unsigned CWG2DBF2 : 1;
9673 unsigned CWG2DBF3 : 1;
9674 unsigned CWG2DBF4 : 1;
9675 unsigned CWG2DBF5 : 1;
9676 unsigned : 1;
9677 unsigned : 1;
9680 struct
9682 unsigned DBF : 6;
9683 unsigned : 2;
9686 struct
9688 unsigned CWG2DBF : 6;
9689 unsigned : 2;
9691 } __CWG2DBFbits_t;
9693 extern __at(0x0619) volatile __CWG2DBFbits_t CWG2DBFbits;
9695 #define _CWG2DBF_DBF0 0x01
9696 #define _CWG2DBF_CWG2DBF0 0x01
9697 #define _CWG2DBF_DBF1 0x02
9698 #define _CWG2DBF_CWG2DBF1 0x02
9699 #define _CWG2DBF_DBF2 0x04
9700 #define _CWG2DBF_CWG2DBF2 0x04
9701 #define _CWG2DBF_DBF3 0x08
9702 #define _CWG2DBF_CWG2DBF3 0x08
9703 #define _CWG2DBF_DBF4 0x10
9704 #define _CWG2DBF_CWG2DBF4 0x10
9705 #define _CWG2DBF_DBF5 0x20
9706 #define _CWG2DBF_CWG2DBF5 0x20
9708 //==============================================================================
9711 //==============================================================================
9712 // CWG2CON0 Bits
9714 extern __at(0x061A) __sfr CWG2CON0;
9716 typedef union
9718 struct
9720 unsigned MODE0 : 1;
9721 unsigned MODE1 : 1;
9722 unsigned MODE2 : 1;
9723 unsigned : 1;
9724 unsigned : 1;
9725 unsigned : 1;
9726 unsigned LD : 1;
9727 unsigned EN : 1;
9730 struct
9732 unsigned CWG2MODE0 : 1;
9733 unsigned CWG2MODE1 : 1;
9734 unsigned CWG2MODE2 : 1;
9735 unsigned : 1;
9736 unsigned : 1;
9737 unsigned : 1;
9738 unsigned CWG2LD : 1;
9739 unsigned G2EN : 1;
9742 struct
9744 unsigned : 1;
9745 unsigned : 1;
9746 unsigned : 1;
9747 unsigned : 1;
9748 unsigned : 1;
9749 unsigned : 1;
9750 unsigned : 1;
9751 unsigned CWG2EN : 1;
9754 struct
9756 unsigned MODE : 3;
9757 unsigned : 5;
9760 struct
9762 unsigned CWG2MODE : 3;
9763 unsigned : 5;
9765 } __CWG2CON0bits_t;
9767 extern __at(0x061A) volatile __CWG2CON0bits_t CWG2CON0bits;
9769 #define _CWG2CON0_MODE0 0x01
9770 #define _CWG2CON0_CWG2MODE0 0x01
9771 #define _CWG2CON0_MODE1 0x02
9772 #define _CWG2CON0_CWG2MODE1 0x02
9773 #define _CWG2CON0_MODE2 0x04
9774 #define _CWG2CON0_CWG2MODE2 0x04
9775 #define _CWG2CON0_LD 0x40
9776 #define _CWG2CON0_CWG2LD 0x40
9777 #define _CWG2CON0_EN 0x80
9778 #define _CWG2CON0_G2EN 0x80
9779 #define _CWG2CON0_CWG2EN 0x80
9781 //==============================================================================
9784 //==============================================================================
9785 // CWG2CON1 Bits
9787 extern __at(0x061B) __sfr CWG2CON1;
9789 typedef union
9791 struct
9793 unsigned POLA : 1;
9794 unsigned POLB : 1;
9795 unsigned POLC : 1;
9796 unsigned POLD : 1;
9797 unsigned : 1;
9798 unsigned IN : 1;
9799 unsigned : 1;
9800 unsigned : 1;
9803 struct
9805 unsigned CWG2POLA : 1;
9806 unsigned CWG2POLB : 1;
9807 unsigned CWG2POLC : 1;
9808 unsigned CWG2POLD : 1;
9809 unsigned : 1;
9810 unsigned CWG2IN : 1;
9811 unsigned : 1;
9812 unsigned : 1;
9814 } __CWG2CON1bits_t;
9816 extern __at(0x061B) volatile __CWG2CON1bits_t CWG2CON1bits;
9818 #define _CWG2CON1_POLA 0x01
9819 #define _CWG2CON1_CWG2POLA 0x01
9820 #define _CWG2CON1_POLB 0x02
9821 #define _CWG2CON1_CWG2POLB 0x02
9822 #define _CWG2CON1_POLC 0x04
9823 #define _CWG2CON1_CWG2POLC 0x04
9824 #define _CWG2CON1_POLD 0x08
9825 #define _CWG2CON1_CWG2POLD 0x08
9826 #define _CWG2CON1_IN 0x20
9827 #define _CWG2CON1_CWG2IN 0x20
9829 //==============================================================================
9832 //==============================================================================
9833 // CWG2AS0 Bits
9835 extern __at(0x061C) __sfr CWG2AS0;
9837 typedef union
9839 struct
9841 unsigned : 1;
9842 unsigned : 1;
9843 unsigned LSAC0 : 1;
9844 unsigned LSAC1 : 1;
9845 unsigned LSBD0 : 1;
9846 unsigned LSBD1 : 1;
9847 unsigned REN : 1;
9848 unsigned SHUTDOWN : 1;
9851 struct
9853 unsigned : 1;
9854 unsigned : 1;
9855 unsigned CWG2LSAC0 : 1;
9856 unsigned CWG2LSAC1 : 1;
9857 unsigned CWG2LSBD0 : 1;
9858 unsigned CWG2LSBD1 : 1;
9859 unsigned CWG2REN : 1;
9860 unsigned CWG2SHUTDOWN : 1;
9863 struct
9865 unsigned : 2;
9866 unsigned CWG2LSAC : 2;
9867 unsigned : 4;
9870 struct
9872 unsigned : 2;
9873 unsigned LSAC : 2;
9874 unsigned : 4;
9877 struct
9879 unsigned : 4;
9880 unsigned CWG2LSBD : 2;
9881 unsigned : 2;
9884 struct
9886 unsigned : 4;
9887 unsigned LSBD : 2;
9888 unsigned : 2;
9890 } __CWG2AS0bits_t;
9892 extern __at(0x061C) volatile __CWG2AS0bits_t CWG2AS0bits;
9894 #define _CWG2AS0_LSAC0 0x04
9895 #define _CWG2AS0_CWG2LSAC0 0x04
9896 #define _CWG2AS0_LSAC1 0x08
9897 #define _CWG2AS0_CWG2LSAC1 0x08
9898 #define _CWG2AS0_LSBD0 0x10
9899 #define _CWG2AS0_CWG2LSBD0 0x10
9900 #define _CWG2AS0_LSBD1 0x20
9901 #define _CWG2AS0_CWG2LSBD1 0x20
9902 #define _CWG2AS0_REN 0x40
9903 #define _CWG2AS0_CWG2REN 0x40
9904 #define _CWG2AS0_SHUTDOWN 0x80
9905 #define _CWG2AS0_CWG2SHUTDOWN 0x80
9907 //==============================================================================
9910 //==============================================================================
9911 // CWG2AS1 Bits
9913 extern __at(0x061D) __sfr CWG2AS1;
9915 typedef struct
9917 unsigned AS0E : 1;
9918 unsigned AS1E : 1;
9919 unsigned AS2E : 1;
9920 unsigned AS3E : 1;
9921 unsigned AS4E : 1;
9922 unsigned AS5E : 1;
9923 unsigned AS6E : 1;
9924 unsigned : 1;
9925 } __CWG2AS1bits_t;
9927 extern __at(0x061D) volatile __CWG2AS1bits_t CWG2AS1bits;
9929 #define _CWG2AS1_AS0E 0x01
9930 #define _CWG2AS1_AS1E 0x02
9931 #define _CWG2AS1_AS2E 0x04
9932 #define _CWG2AS1_AS3E 0x08
9933 #define _CWG2AS1_AS4E 0x10
9934 #define _CWG2AS1_AS5E 0x20
9935 #define _CWG2AS1_AS6E 0x40
9937 //==============================================================================
9940 //==============================================================================
9941 // CWG2STR Bits
9943 extern __at(0x061E) __sfr CWG2STR;
9945 typedef union
9947 struct
9949 unsigned STRA : 1;
9950 unsigned STRB : 1;
9951 unsigned STRC : 1;
9952 unsigned STRD : 1;
9953 unsigned OVRA : 1;
9954 unsigned OVRB : 1;
9955 unsigned OVRC : 1;
9956 unsigned OVRD : 1;
9959 struct
9961 unsigned CWG2STRA : 1;
9962 unsigned CWG2STRB : 1;
9963 unsigned CWG2STRC : 1;
9964 unsigned CWG2STRD : 1;
9965 unsigned CWG2OVRA : 1;
9966 unsigned CWG2OVRB : 1;
9967 unsigned CWG2OVRC : 1;
9968 unsigned CWG2OVRD : 1;
9970 } __CWG2STRbits_t;
9972 extern __at(0x061E) volatile __CWG2STRbits_t CWG2STRbits;
9974 #define _CWG2STR_STRA 0x01
9975 #define _CWG2STR_CWG2STRA 0x01
9976 #define _CWG2STR_STRB 0x02
9977 #define _CWG2STR_CWG2STRB 0x02
9978 #define _CWG2STR_STRC 0x04
9979 #define _CWG2STR_CWG2STRC 0x04
9980 #define _CWG2STR_STRD 0x08
9981 #define _CWG2STR_CWG2STRD 0x08
9982 #define _CWG2STR_OVRA 0x10
9983 #define _CWG2STR_CWG2OVRA 0x10
9984 #define _CWG2STR_OVRB 0x20
9985 #define _CWG2STR_CWG2OVRB 0x20
9986 #define _CWG2STR_OVRC 0x40
9987 #define _CWG2STR_CWG2OVRC 0x40
9988 #define _CWG2STR_OVRD 0x80
9989 #define _CWG2STR_CWG2OVRD 0x80
9991 //==============================================================================
9994 //==============================================================================
9995 // CWG3CLKCON Bits
9997 extern __at(0x068C) __sfr CWG3CLKCON;
9999 typedef union
10001 struct
10003 unsigned CS : 1;
10004 unsigned : 1;
10005 unsigned : 1;
10006 unsigned : 1;
10007 unsigned : 1;
10008 unsigned : 1;
10009 unsigned : 1;
10010 unsigned : 1;
10013 struct
10015 unsigned CWG3CS : 1;
10016 unsigned : 1;
10017 unsigned : 1;
10018 unsigned : 1;
10019 unsigned : 1;
10020 unsigned : 1;
10021 unsigned : 1;
10022 unsigned : 1;
10024 } __CWG3CLKCONbits_t;
10026 extern __at(0x068C) volatile __CWG3CLKCONbits_t CWG3CLKCONbits;
10028 #define _CWG3CLKCON_CS 0x01
10029 #define _CWG3CLKCON_CWG3CS 0x01
10031 //==============================================================================
10034 //==============================================================================
10035 // CWG3ISM Bits
10037 extern __at(0x068D) __sfr CWG3ISM;
10039 typedef union
10041 struct
10043 unsigned CWG3ISM0 : 1;
10044 unsigned CWG3ISM1 : 1;
10045 unsigned CWG3ISM2 : 1;
10046 unsigned CWG3ISM3 : 1;
10047 unsigned : 1;
10048 unsigned : 1;
10049 unsigned : 1;
10050 unsigned : 1;
10053 struct
10055 unsigned CWG3ISM : 4;
10056 unsigned : 4;
10058 } __CWG3ISMbits_t;
10060 extern __at(0x068D) volatile __CWG3ISMbits_t CWG3ISMbits;
10062 #define _CWG3ISM0 0x01
10063 #define _CWG3ISM1 0x02
10064 #define _CWG3ISM2 0x04
10065 #define _CWG3ISM3 0x08
10067 //==============================================================================
10070 //==============================================================================
10071 // CWG3DBR Bits
10073 extern __at(0x068E) __sfr CWG3DBR;
10075 typedef union
10077 struct
10079 unsigned DBR0 : 1;
10080 unsigned DBR1 : 1;
10081 unsigned DBR2 : 1;
10082 unsigned DBR3 : 1;
10083 unsigned DBR4 : 1;
10084 unsigned DBR5 : 1;
10085 unsigned : 1;
10086 unsigned : 1;
10089 struct
10091 unsigned CWG3DBR0 : 1;
10092 unsigned CWG3DBR1 : 1;
10093 unsigned CWG3DBR2 : 1;
10094 unsigned CWG3DBR3 : 1;
10095 unsigned CWG3DBR4 : 1;
10096 unsigned CWG3DBR5 : 1;
10097 unsigned : 1;
10098 unsigned : 1;
10101 struct
10103 unsigned CWG3DBR : 6;
10104 unsigned : 2;
10107 struct
10109 unsigned DBR : 6;
10110 unsigned : 2;
10112 } __CWG3DBRbits_t;
10114 extern __at(0x068E) volatile __CWG3DBRbits_t CWG3DBRbits;
10116 #define _CWG3DBR_DBR0 0x01
10117 #define _CWG3DBR_CWG3DBR0 0x01
10118 #define _CWG3DBR_DBR1 0x02
10119 #define _CWG3DBR_CWG3DBR1 0x02
10120 #define _CWG3DBR_DBR2 0x04
10121 #define _CWG3DBR_CWG3DBR2 0x04
10122 #define _CWG3DBR_DBR3 0x08
10123 #define _CWG3DBR_CWG3DBR3 0x08
10124 #define _CWG3DBR_DBR4 0x10
10125 #define _CWG3DBR_CWG3DBR4 0x10
10126 #define _CWG3DBR_DBR5 0x20
10127 #define _CWG3DBR_CWG3DBR5 0x20
10129 //==============================================================================
10132 //==============================================================================
10133 // CWG3DBF Bits
10135 extern __at(0x068F) __sfr CWG3DBF;
10137 typedef union
10139 struct
10141 unsigned DBF0 : 1;
10142 unsigned DBF1 : 1;
10143 unsigned DBF2 : 1;
10144 unsigned DBF3 : 1;
10145 unsigned DBF4 : 1;
10146 unsigned DBF5 : 1;
10147 unsigned : 1;
10148 unsigned : 1;
10151 struct
10153 unsigned CWG3DBF0 : 1;
10154 unsigned CWG3DBF1 : 1;
10155 unsigned CWG3DBF2 : 1;
10156 unsigned CWG3DBF3 : 1;
10157 unsigned CWG3DBF4 : 1;
10158 unsigned CWG3DBF5 : 1;
10159 unsigned : 1;
10160 unsigned : 1;
10163 struct
10165 unsigned DBF : 6;
10166 unsigned : 2;
10169 struct
10171 unsigned CWG3DBF : 6;
10172 unsigned : 2;
10174 } __CWG3DBFbits_t;
10176 extern __at(0x068F) volatile __CWG3DBFbits_t CWG3DBFbits;
10178 #define _CWG3DBF_DBF0 0x01
10179 #define _CWG3DBF_CWG3DBF0 0x01
10180 #define _CWG3DBF_DBF1 0x02
10181 #define _CWG3DBF_CWG3DBF1 0x02
10182 #define _CWG3DBF_DBF2 0x04
10183 #define _CWG3DBF_CWG3DBF2 0x04
10184 #define _CWG3DBF_DBF3 0x08
10185 #define _CWG3DBF_CWG3DBF3 0x08
10186 #define _CWG3DBF_DBF4 0x10
10187 #define _CWG3DBF_CWG3DBF4 0x10
10188 #define _CWG3DBF_DBF5 0x20
10189 #define _CWG3DBF_CWG3DBF5 0x20
10191 //==============================================================================
10194 //==============================================================================
10195 // CWG3CON0 Bits
10197 extern __at(0x0690) __sfr CWG3CON0;
10199 typedef union
10201 struct
10203 unsigned MODE0 : 1;
10204 unsigned MODE1 : 1;
10205 unsigned MODE2 : 1;
10206 unsigned : 1;
10207 unsigned : 1;
10208 unsigned : 1;
10209 unsigned LD : 1;
10210 unsigned EN : 1;
10213 struct
10215 unsigned CWG3MODE0 : 1;
10216 unsigned CWG3MODE1 : 1;
10217 unsigned CWG3MODE2 : 1;
10218 unsigned : 1;
10219 unsigned : 1;
10220 unsigned : 1;
10221 unsigned CWG3LD : 1;
10222 unsigned G3EN : 1;
10225 struct
10227 unsigned : 1;
10228 unsigned : 1;
10229 unsigned : 1;
10230 unsigned : 1;
10231 unsigned : 1;
10232 unsigned : 1;
10233 unsigned : 1;
10234 unsigned CWG3EN : 1;
10237 struct
10239 unsigned CWG3MODE : 3;
10240 unsigned : 5;
10243 struct
10245 unsigned MODE : 3;
10246 unsigned : 5;
10248 } __CWG3CON0bits_t;
10250 extern __at(0x0690) volatile __CWG3CON0bits_t CWG3CON0bits;
10252 #define _CWG3CON0_MODE0 0x01
10253 #define _CWG3CON0_CWG3MODE0 0x01
10254 #define _CWG3CON0_MODE1 0x02
10255 #define _CWG3CON0_CWG3MODE1 0x02
10256 #define _CWG3CON0_MODE2 0x04
10257 #define _CWG3CON0_CWG3MODE2 0x04
10258 #define _CWG3CON0_LD 0x40
10259 #define _CWG3CON0_CWG3LD 0x40
10260 #define _CWG3CON0_EN 0x80
10261 #define _CWG3CON0_G3EN 0x80
10262 #define _CWG3CON0_CWG3EN 0x80
10264 //==============================================================================
10267 //==============================================================================
10268 // CWG3CON1 Bits
10270 extern __at(0x0691) __sfr CWG3CON1;
10272 typedef union
10274 struct
10276 unsigned POLA : 1;
10277 unsigned POLB : 1;
10278 unsigned POLC : 1;
10279 unsigned POLD : 1;
10280 unsigned : 1;
10281 unsigned IN : 1;
10282 unsigned : 1;
10283 unsigned : 1;
10286 struct
10288 unsigned CWG3POLA : 1;
10289 unsigned CWG3POLB : 1;
10290 unsigned CWG3POLC : 1;
10291 unsigned CWG3POLD : 1;
10292 unsigned : 1;
10293 unsigned CWG3IN : 1;
10294 unsigned : 1;
10295 unsigned : 1;
10297 } __CWG3CON1bits_t;
10299 extern __at(0x0691) volatile __CWG3CON1bits_t CWG3CON1bits;
10301 #define _CWG3CON1_POLA 0x01
10302 #define _CWG3CON1_CWG3POLA 0x01
10303 #define _CWG3CON1_POLB 0x02
10304 #define _CWG3CON1_CWG3POLB 0x02
10305 #define _CWG3CON1_POLC 0x04
10306 #define _CWG3CON1_CWG3POLC 0x04
10307 #define _CWG3CON1_POLD 0x08
10308 #define _CWG3CON1_CWG3POLD 0x08
10309 #define _CWG3CON1_IN 0x20
10310 #define _CWG3CON1_CWG3IN 0x20
10312 //==============================================================================
10315 //==============================================================================
10316 // CWG3AS0 Bits
10318 extern __at(0x0692) __sfr CWG3AS0;
10320 typedef union
10322 struct
10324 unsigned : 1;
10325 unsigned : 1;
10326 unsigned LSAC0 : 1;
10327 unsigned LSAC1 : 1;
10328 unsigned LSBD0 : 1;
10329 unsigned LSBD1 : 1;
10330 unsigned REN : 1;
10331 unsigned SHUTDOWN : 1;
10334 struct
10336 unsigned : 1;
10337 unsigned : 1;
10338 unsigned CWG3LSAC0 : 1;
10339 unsigned CWG3LSAC1 : 1;
10340 unsigned CWG3LSBD0 : 1;
10341 unsigned CWG3LSBD1 : 1;
10342 unsigned CWG3REN : 1;
10343 unsigned CWG3SHUTDOWN : 1;
10346 struct
10348 unsigned : 2;
10349 unsigned LSAC : 2;
10350 unsigned : 4;
10353 struct
10355 unsigned : 2;
10356 unsigned CWG3LSAC : 2;
10357 unsigned : 4;
10360 struct
10362 unsigned : 4;
10363 unsigned CWG3LSBD : 2;
10364 unsigned : 2;
10367 struct
10369 unsigned : 4;
10370 unsigned LSBD : 2;
10371 unsigned : 2;
10373 } __CWG3AS0bits_t;
10375 extern __at(0x0692) volatile __CWG3AS0bits_t CWG3AS0bits;
10377 #define _CWG3AS0_LSAC0 0x04
10378 #define _CWG3AS0_CWG3LSAC0 0x04
10379 #define _CWG3AS0_LSAC1 0x08
10380 #define _CWG3AS0_CWG3LSAC1 0x08
10381 #define _CWG3AS0_LSBD0 0x10
10382 #define _CWG3AS0_CWG3LSBD0 0x10
10383 #define _CWG3AS0_LSBD1 0x20
10384 #define _CWG3AS0_CWG3LSBD1 0x20
10385 #define _CWG3AS0_REN 0x40
10386 #define _CWG3AS0_CWG3REN 0x40
10387 #define _CWG3AS0_SHUTDOWN 0x80
10388 #define _CWG3AS0_CWG3SHUTDOWN 0x80
10390 //==============================================================================
10393 //==============================================================================
10394 // CWG3AS1 Bits
10396 extern __at(0x0693) __sfr CWG3AS1;
10398 typedef struct
10400 unsigned AS0E : 1;
10401 unsigned AS1E : 1;
10402 unsigned AS2E : 1;
10403 unsigned AS3E : 1;
10404 unsigned AS4E : 1;
10405 unsigned AS5E : 1;
10406 unsigned AS6E : 1;
10407 unsigned : 1;
10408 } __CWG3AS1bits_t;
10410 extern __at(0x0693) volatile __CWG3AS1bits_t CWG3AS1bits;
10412 #define _CWG3AS1_AS0E 0x01
10413 #define _CWG3AS1_AS1E 0x02
10414 #define _CWG3AS1_AS2E 0x04
10415 #define _CWG3AS1_AS3E 0x08
10416 #define _CWG3AS1_AS4E 0x10
10417 #define _CWG3AS1_AS5E 0x20
10418 #define _CWG3AS1_AS6E 0x40
10420 //==============================================================================
10423 //==============================================================================
10424 // CWG3STR Bits
10426 extern __at(0x0694) __sfr CWG3STR;
10428 typedef union
10430 struct
10432 unsigned STRA : 1;
10433 unsigned STRB : 1;
10434 unsigned STRC : 1;
10435 unsigned STRD : 1;
10436 unsigned OVRA : 1;
10437 unsigned OVRB : 1;
10438 unsigned OVRC : 1;
10439 unsigned OVRD : 1;
10442 struct
10444 unsigned CWG3STRA : 1;
10445 unsigned CWG3STRB : 1;
10446 unsigned CWG3STRC : 1;
10447 unsigned CWG3STRD : 1;
10448 unsigned CWG3OVRA : 1;
10449 unsigned CWG3OVRB : 1;
10450 unsigned CWG3OVRC : 1;
10451 unsigned CWG3OVRD : 1;
10453 } __CWG3STRbits_t;
10455 extern __at(0x0694) volatile __CWG3STRbits_t CWG3STRbits;
10457 #define _CWG3STR_STRA 0x01
10458 #define _CWG3STR_CWG3STRA 0x01
10459 #define _CWG3STR_STRB 0x02
10460 #define _CWG3STR_CWG3STRB 0x02
10461 #define _CWG3STR_STRC 0x04
10462 #define _CWG3STR_CWG3STRC 0x04
10463 #define _CWG3STR_STRD 0x08
10464 #define _CWG3STR_CWG3STRD 0x08
10465 #define _CWG3STR_OVRA 0x10
10466 #define _CWG3STR_CWG3OVRA 0x10
10467 #define _CWG3STR_OVRB 0x20
10468 #define _CWG3STR_CWG3OVRB 0x20
10469 #define _CWG3STR_OVRC 0x40
10470 #define _CWG3STR_CWG3OVRC 0x40
10471 #define _CWG3STR_OVRD 0x80
10472 #define _CWG3STR_CWG3OVRD 0x80
10474 //==============================================================================
10477 //==============================================================================
10478 // PIR0 Bits
10480 extern __at(0x070C) __sfr PIR0;
10482 typedef struct
10484 unsigned INTF : 1;
10485 unsigned : 1;
10486 unsigned : 1;
10487 unsigned : 1;
10488 unsigned IOCIF : 1;
10489 unsigned TMR0IF : 1;
10490 unsigned : 1;
10491 unsigned : 1;
10492 } __PIR0bits_t;
10494 extern __at(0x070C) volatile __PIR0bits_t PIR0bits;
10496 #define _INTF 0x01
10497 #define _IOCIF 0x10
10498 #define _TMR0IF 0x20
10500 //==============================================================================
10503 //==============================================================================
10504 // PIR1 Bits
10506 extern __at(0x070D) __sfr PIR1;
10508 typedef struct
10510 unsigned ADIF : 1;
10511 unsigned ADTIF : 1;
10512 unsigned : 1;
10513 unsigned : 1;
10514 unsigned : 1;
10515 unsigned : 1;
10516 unsigned CSWIF : 1;
10517 unsigned OSFIF : 1;
10518 } __PIR1bits_t;
10520 extern __at(0x070D) volatile __PIR1bits_t PIR1bits;
10522 #define _ADIF 0x01
10523 #define _ADTIF 0x02
10524 #define _CSWIF 0x40
10525 #define _OSFIF 0x80
10527 //==============================================================================
10530 //==============================================================================
10531 // PIR2 Bits
10533 extern __at(0x070E) __sfr PIR2;
10535 typedef struct
10537 unsigned C1IF : 1;
10538 unsigned C2IF : 1;
10539 unsigned : 1;
10540 unsigned : 1;
10541 unsigned : 1;
10542 unsigned : 1;
10543 unsigned ZCDIF : 1;
10544 unsigned : 1;
10545 } __PIR2bits_t;
10547 extern __at(0x070E) volatile __PIR2bits_t PIR2bits;
10549 #define _C1IF 0x01
10550 #define _C2IF 0x02
10551 #define _ZCDIF 0x40
10553 //==============================================================================
10556 //==============================================================================
10557 // PIR3 Bits
10559 extern __at(0x070F) __sfr PIR3;
10561 typedef struct
10563 unsigned SSP1IF : 1;
10564 unsigned BCL1IF : 1;
10565 unsigned SSP2IF : 1;
10566 unsigned BCL2IF : 1;
10567 unsigned TXIF : 1;
10568 unsigned RCIF : 1;
10569 unsigned : 1;
10570 unsigned : 1;
10571 } __PIR3bits_t;
10573 extern __at(0x070F) volatile __PIR3bits_t PIR3bits;
10575 #define _SSP1IF 0x01
10576 #define _BCL1IF 0x02
10577 #define _SSP2IF 0x04
10578 #define _BCL2IF 0x08
10579 #define _TXIF 0x10
10580 #define _RCIF 0x20
10582 //==============================================================================
10585 //==============================================================================
10586 // PIR4 Bits
10588 extern __at(0x0710) __sfr PIR4;
10590 typedef struct
10592 unsigned TMR1IF : 1;
10593 unsigned TMR2IF : 1;
10594 unsigned TMR3IF : 1;
10595 unsigned TMR4IF : 1;
10596 unsigned TMR5IF : 1;
10597 unsigned TMR6IF : 1;
10598 unsigned : 1;
10599 unsigned : 1;
10600 } __PIR4bits_t;
10602 extern __at(0x0710) volatile __PIR4bits_t PIR4bits;
10604 #define _TMR1IF 0x01
10605 #define _TMR2IF 0x02
10606 #define _TMR3IF 0x04
10607 #define _TMR4IF 0x08
10608 #define _TMR5IF 0x10
10609 #define _TMR6IF 0x20
10611 //==============================================================================
10614 //==============================================================================
10615 // PIR5 Bits
10617 extern __at(0x0711) __sfr PIR5;
10619 typedef struct
10621 unsigned TMR1GIF : 1;
10622 unsigned TMR3GIF : 1;
10623 unsigned TMR5GIF : 1;
10624 unsigned : 1;
10625 unsigned CLC1IF : 1;
10626 unsigned CLC2IF : 1;
10627 unsigned CLC3IF : 1;
10628 unsigned CLC4IF : 1;
10629 } __PIR5bits_t;
10631 extern __at(0x0711) volatile __PIR5bits_t PIR5bits;
10633 #define _TMR1GIF 0x01
10634 #define _TMR3GIF 0x02
10635 #define _TMR5GIF 0x04
10636 #define _CLC1IF 0x10
10637 #define _CLC2IF 0x20
10638 #define _CLC3IF 0x40
10639 #define _CLC4IF 0x80
10641 //==============================================================================
10644 //==============================================================================
10645 // PIR6 Bits
10647 extern __at(0x0712) __sfr PIR6;
10649 typedef struct
10651 unsigned CCP1IF : 1;
10652 unsigned CCP2IF : 1;
10653 unsigned CCP3IF : 1;
10654 unsigned CCP4IF : 1;
10655 unsigned CCP5IF : 1;
10656 unsigned : 1;
10657 unsigned : 1;
10658 unsigned : 1;
10659 } __PIR6bits_t;
10661 extern __at(0x0712) volatile __PIR6bits_t PIR6bits;
10663 #define _CCP1IF 0x01
10664 #define _CCP2IF 0x02
10665 #define _CCP3IF 0x04
10666 #define _CCP4IF 0x08
10667 #define _CCP5IF 0x10
10669 //==============================================================================
10672 //==============================================================================
10673 // PIR7 Bits
10675 extern __at(0x0713) __sfr PIR7;
10677 typedef union
10679 struct
10681 unsigned CWG1IF : 1;
10682 unsigned CWG2IF : 1;
10683 unsigned CWG3IF : 1;
10684 unsigned : 1;
10685 unsigned NCO1IF : 1;
10686 unsigned NVMIF : 1;
10687 unsigned CRCIF : 1;
10688 unsigned SCANIF : 1;
10691 struct
10693 unsigned : 1;
10694 unsigned : 1;
10695 unsigned : 1;
10696 unsigned : 1;
10697 unsigned NCOIF : 1;
10698 unsigned : 1;
10699 unsigned : 1;
10700 unsigned : 1;
10702 } __PIR7bits_t;
10704 extern __at(0x0713) volatile __PIR7bits_t PIR7bits;
10706 #define _CWG1IF 0x01
10707 #define _CWG2IF 0x02
10708 #define _CWG3IF 0x04
10709 #define _NCO1IF 0x10
10710 #define _NCOIF 0x10
10711 #define _NVMIF 0x20
10712 #define _CRCIF 0x40
10713 #define _SCANIF 0x80
10715 //==============================================================================
10718 //==============================================================================
10719 // PIR8 Bits
10721 extern __at(0x0714) __sfr PIR8;
10723 typedef struct
10725 unsigned SMT1IF : 1;
10726 unsigned SMT1PRAIF : 1;
10727 unsigned SMT1PWAIF : 1;
10728 unsigned SMT2IF : 1;
10729 unsigned SMT2PRAIF : 1;
10730 unsigned SMT2PWAIF : 1;
10731 unsigned : 1;
10732 unsigned : 1;
10733 } __PIR8bits_t;
10735 extern __at(0x0714) volatile __PIR8bits_t PIR8bits;
10737 #define _SMT1IF 0x01
10738 #define _SMT1PRAIF 0x02
10739 #define _SMT1PWAIF 0x04
10740 #define _SMT2IF 0x08
10741 #define _SMT2PRAIF 0x10
10742 #define _SMT2PWAIF 0x20
10744 //==============================================================================
10747 //==============================================================================
10748 // PIE0 Bits
10750 extern __at(0x0716) __sfr PIE0;
10752 typedef struct
10754 unsigned INTE : 1;
10755 unsigned : 1;
10756 unsigned : 1;
10757 unsigned : 1;
10758 unsigned IOCIE : 1;
10759 unsigned TMR0IE : 1;
10760 unsigned : 1;
10761 unsigned : 1;
10762 } __PIE0bits_t;
10764 extern __at(0x0716) volatile __PIE0bits_t PIE0bits;
10766 #define _INTE 0x01
10767 #define _IOCIE 0x10
10768 #define _TMR0IE 0x20
10770 //==============================================================================
10773 //==============================================================================
10774 // PIE1 Bits
10776 extern __at(0x0717) __sfr PIE1;
10778 typedef struct
10780 unsigned ADIE : 1;
10781 unsigned ADTIE : 1;
10782 unsigned : 1;
10783 unsigned : 1;
10784 unsigned : 1;
10785 unsigned : 1;
10786 unsigned CSWIE : 1;
10787 unsigned OSFIE : 1;
10788 } __PIE1bits_t;
10790 extern __at(0x0717) volatile __PIE1bits_t PIE1bits;
10792 #define _ADIE 0x01
10793 #define _ADTIE 0x02
10794 #define _CSWIE 0x40
10795 #define _OSFIE 0x80
10797 //==============================================================================
10800 //==============================================================================
10801 // PIE2 Bits
10803 extern __at(0x0718) __sfr PIE2;
10805 typedef struct
10807 unsigned C1IE : 1;
10808 unsigned C2IE : 1;
10809 unsigned : 1;
10810 unsigned : 1;
10811 unsigned : 1;
10812 unsigned : 1;
10813 unsigned ZCDIE : 1;
10814 unsigned : 1;
10815 } __PIE2bits_t;
10817 extern __at(0x0718) volatile __PIE2bits_t PIE2bits;
10819 #define _C1IE 0x01
10820 #define _C2IE 0x02
10821 #define _ZCDIE 0x40
10823 //==============================================================================
10826 //==============================================================================
10827 // PIE3 Bits
10829 extern __at(0x0719) __sfr PIE3;
10831 typedef struct
10833 unsigned SSP1IE : 1;
10834 unsigned BCL1IE : 1;
10835 unsigned SSP2IE : 1;
10836 unsigned BCL2IE : 1;
10837 unsigned TXIE : 1;
10838 unsigned RCIE : 1;
10839 unsigned : 1;
10840 unsigned : 1;
10841 } __PIE3bits_t;
10843 extern __at(0x0719) volatile __PIE3bits_t PIE3bits;
10845 #define _SSP1IE 0x01
10846 #define _BCL1IE 0x02
10847 #define _SSP2IE 0x04
10848 #define _BCL2IE 0x08
10849 #define _TXIE 0x10
10850 #define _RCIE 0x20
10852 //==============================================================================
10855 //==============================================================================
10856 // PIE4 Bits
10858 extern __at(0x071A) __sfr PIE4;
10860 typedef struct
10862 unsigned TMR1IE : 1;
10863 unsigned TMR2IE : 1;
10864 unsigned TMR3IE : 1;
10865 unsigned TMR4IE : 1;
10866 unsigned TMR5IE : 1;
10867 unsigned TMR6IE : 1;
10868 unsigned : 1;
10869 unsigned : 1;
10870 } __PIE4bits_t;
10872 extern __at(0x071A) volatile __PIE4bits_t PIE4bits;
10874 #define _TMR1IE 0x01
10875 #define _TMR2IE 0x02
10876 #define _TMR3IE 0x04
10877 #define _TMR4IE 0x08
10878 #define _TMR5IE 0x10
10879 #define _TMR6IE 0x20
10881 //==============================================================================
10884 //==============================================================================
10885 // PIE5 Bits
10887 extern __at(0x071B) __sfr PIE5;
10889 typedef struct
10891 unsigned TMR1GIE : 1;
10892 unsigned TMR3GIE : 1;
10893 unsigned TMR5GIE : 1;
10894 unsigned : 1;
10895 unsigned CLC1IE : 1;
10896 unsigned CLC2IE : 1;
10897 unsigned CLC3IE : 1;
10898 unsigned CLC4IE : 1;
10899 } __PIE5bits_t;
10901 extern __at(0x071B) volatile __PIE5bits_t PIE5bits;
10903 #define _TMR1GIE 0x01
10904 #define _TMR3GIE 0x02
10905 #define _TMR5GIE 0x04
10906 #define _CLC1IE 0x10
10907 #define _CLC2IE 0x20
10908 #define _CLC3IE 0x40
10909 #define _CLC4IE 0x80
10911 //==============================================================================
10914 //==============================================================================
10915 // PIE6 Bits
10917 extern __at(0x071C) __sfr PIE6;
10919 typedef struct
10921 unsigned CCP1IE : 1;
10922 unsigned CCP2IE : 1;
10923 unsigned CCP3IE : 1;
10924 unsigned CCP4IE : 1;
10925 unsigned CCP5IE : 1;
10926 unsigned : 1;
10927 unsigned : 1;
10928 unsigned : 1;
10929 } __PIE6bits_t;
10931 extern __at(0x071C) volatile __PIE6bits_t PIE6bits;
10933 #define _CCP1IE 0x01
10934 #define _CCP2IE 0x02
10935 #define _CCP3IE 0x04
10936 #define _CCP4IE 0x08
10937 #define _CCP5IE 0x10
10939 //==============================================================================
10942 //==============================================================================
10943 // PIE7 Bits
10945 extern __at(0x071D) __sfr PIE7;
10947 typedef union
10949 struct
10951 unsigned CWG1IE : 1;
10952 unsigned CWG2IE : 1;
10953 unsigned CWG3IE : 1;
10954 unsigned : 1;
10955 unsigned NCO1IE : 1;
10956 unsigned NVMIE : 1;
10957 unsigned CRCIE : 1;
10958 unsigned SCANIE : 1;
10961 struct
10963 unsigned : 1;
10964 unsigned : 1;
10965 unsigned : 1;
10966 unsigned : 1;
10967 unsigned NCOIE : 1;
10968 unsigned : 1;
10969 unsigned : 1;
10970 unsigned : 1;
10972 } __PIE7bits_t;
10974 extern __at(0x071D) volatile __PIE7bits_t PIE7bits;
10976 #define _CWG1IE 0x01
10977 #define _CWG2IE 0x02
10978 #define _CWG3IE 0x04
10979 #define _NCO1IE 0x10
10980 #define _NCOIE 0x10
10981 #define _NVMIE 0x20
10982 #define _CRCIE 0x40
10983 #define _SCANIE 0x80
10985 //==============================================================================
10988 //==============================================================================
10989 // PIE8 Bits
10991 extern __at(0x071E) __sfr PIE8;
10993 typedef struct
10995 unsigned SMT1IE : 1;
10996 unsigned SMT1PRAIE : 1;
10997 unsigned SMT1PWAIE : 1;
10998 unsigned SMT2IE : 1;
10999 unsigned SMT2PRAIE : 1;
11000 unsigned SMT2PWAIE : 1;
11001 unsigned : 1;
11002 unsigned : 1;
11003 } __PIE8bits_t;
11005 extern __at(0x071E) volatile __PIE8bits_t PIE8bits;
11007 #define _SMT1IE 0x01
11008 #define _SMT1PRAIE 0x02
11009 #define _SMT1PWAIE 0x04
11010 #define _SMT2IE 0x08
11011 #define _SMT2PRAIE 0x10
11012 #define _SMT2PWAIE 0x20
11014 //==============================================================================
11017 //==============================================================================
11018 // PMD0 Bits
11020 extern __at(0x0796) __sfr PMD0;
11022 typedef struct
11024 unsigned IOCMD : 1;
11025 unsigned CLKRMD : 1;
11026 unsigned NVMMD : 1;
11027 unsigned SCANMD : 1;
11028 unsigned CRCMD : 1;
11029 unsigned : 1;
11030 unsigned FVRMD : 1;
11031 unsigned SYSCMD : 1;
11032 } __PMD0bits_t;
11034 extern __at(0x0796) volatile __PMD0bits_t PMD0bits;
11036 #define _IOCMD 0x01
11037 #define _CLKRMD 0x02
11038 #define _NVMMD 0x04
11039 #define _SCANMD 0x08
11040 #define _CRCMD 0x10
11041 #define _FVRMD 0x40
11042 #define _SYSCMD 0x80
11044 //==============================================================================
11047 //==============================================================================
11048 // PMD1 Bits
11050 extern __at(0x0797) __sfr PMD1;
11052 typedef union
11054 struct
11056 unsigned TMR0MD : 1;
11057 unsigned TMR1MD : 1;
11058 unsigned TMR2MD : 1;
11059 unsigned TMR3MD : 1;
11060 unsigned TMR4MD : 1;
11061 unsigned TMR5MD : 1;
11062 unsigned TMR6MD : 1;
11063 unsigned NCOMD : 1;
11066 struct
11068 unsigned : 1;
11069 unsigned : 1;
11070 unsigned : 1;
11071 unsigned : 1;
11072 unsigned : 1;
11073 unsigned : 1;
11074 unsigned : 1;
11075 unsigned NCO1MD : 1;
11077 } __PMD1bits_t;
11079 extern __at(0x0797) volatile __PMD1bits_t PMD1bits;
11081 #define _TMR0MD 0x01
11082 #define _TMR1MD 0x02
11083 #define _TMR2MD 0x04
11084 #define _TMR3MD 0x08
11085 #define _TMR4MD 0x10
11086 #define _TMR5MD 0x20
11087 #define _TMR6MD 0x40
11088 #define _NCOMD 0x80
11089 #define _NCO1MD 0x80
11091 //==============================================================================
11094 //==============================================================================
11095 // PMD2 Bits
11097 extern __at(0x0798) __sfr PMD2;
11099 typedef struct
11101 unsigned ZCDMD : 1;
11102 unsigned CMP1MD : 1;
11103 unsigned CMP2MD : 1;
11104 unsigned : 1;
11105 unsigned : 1;
11106 unsigned ADCMD : 1;
11107 unsigned DACMD : 1;
11108 unsigned : 1;
11109 } __PMD2bits_t;
11111 extern __at(0x0798) volatile __PMD2bits_t PMD2bits;
11113 #define _ZCDMD 0x01
11114 #define _CMP1MD 0x02
11115 #define _CMP2MD 0x04
11116 #define _ADCMD 0x20
11117 #define _DACMD 0x40
11119 //==============================================================================
11122 //==============================================================================
11123 // PMD3 Bits
11125 extern __at(0x0799) __sfr PMD3;
11127 typedef struct
11129 unsigned CCP1MD : 1;
11130 unsigned CCP2MD : 1;
11131 unsigned CCP3MD : 1;
11132 unsigned CCP4MD : 1;
11133 unsigned CCP5MD : 1;
11134 unsigned PWM6MD : 1;
11135 unsigned PWM7MD : 1;
11136 unsigned : 1;
11137 } __PMD3bits_t;
11139 extern __at(0x0799) volatile __PMD3bits_t PMD3bits;
11141 #define _CCP1MD 0x01
11142 #define _CCP2MD 0x02
11143 #define _CCP3MD 0x04
11144 #define _CCP4MD 0x08
11145 #define _CCP5MD 0x10
11146 #define _PWM6MD 0x20
11147 #define _PWM7MD 0x40
11149 //==============================================================================
11152 //==============================================================================
11153 // PMD4 Bits
11155 extern __at(0x079A) __sfr PMD4;
11157 typedef struct
11159 unsigned CWG1MD : 1;
11160 unsigned CWG2MD : 1;
11161 unsigned CWG3MD : 1;
11162 unsigned : 1;
11163 unsigned MSSP1MD : 1;
11164 unsigned MSSP2MD : 1;
11165 unsigned UART1MD : 1;
11166 unsigned : 1;
11167 } __PMD4bits_t;
11169 extern __at(0x079A) volatile __PMD4bits_t PMD4bits;
11171 #define _CWG1MD 0x01
11172 #define _CWG2MD 0x02
11173 #define _CWG3MD 0x04
11174 #define _MSSP1MD 0x10
11175 #define _MSSP2MD 0x20
11176 #define _UART1MD 0x40
11178 //==============================================================================
11181 //==============================================================================
11182 // PMD5 Bits
11184 extern __at(0x079B) __sfr PMD5;
11186 typedef struct
11188 unsigned DSMMD : 1;
11189 unsigned CLC1MD : 1;
11190 unsigned CLC2MD : 1;
11191 unsigned CLC3MD : 1;
11192 unsigned CLC4MD : 1;
11193 unsigned : 1;
11194 unsigned SMT1MD : 1;
11195 unsigned SMT2MD : 1;
11196 } __PMD5bits_t;
11198 extern __at(0x079B) volatile __PMD5bits_t PMD5bits;
11200 #define _DSMMD 0x01
11201 #define _CLC1MD 0x02
11202 #define _CLC2MD 0x04
11203 #define _CLC3MD 0x08
11204 #define _CLC4MD 0x10
11205 #define _SMT1MD 0x40
11206 #define _SMT2MD 0x80
11208 //==============================================================================
11211 //==============================================================================
11212 // WDTCON0 Bits
11214 extern __at(0x080C) __sfr WDTCON0;
11216 typedef union
11218 struct
11220 unsigned SEN : 1;
11221 unsigned WDTPS0 : 1;
11222 unsigned WDTPS1 : 1;
11223 unsigned WDTPS2 : 1;
11224 unsigned WDTPS3 : 1;
11225 unsigned WDTPS4 : 1;
11226 unsigned : 1;
11227 unsigned : 1;
11230 struct
11232 unsigned SWDTEN : 1;
11233 unsigned : 1;
11234 unsigned : 1;
11235 unsigned : 1;
11236 unsigned : 1;
11237 unsigned : 1;
11238 unsigned : 1;
11239 unsigned : 1;
11242 struct
11244 unsigned WDTSEN : 1;
11245 unsigned : 1;
11246 unsigned : 1;
11247 unsigned : 1;
11248 unsigned : 1;
11249 unsigned : 1;
11250 unsigned : 1;
11251 unsigned : 1;
11254 struct
11256 unsigned : 1;
11257 unsigned WDTPS : 5;
11258 unsigned : 2;
11260 } __WDTCON0bits_t;
11262 extern __at(0x080C) volatile __WDTCON0bits_t WDTCON0bits;
11264 #define _WDTCON0_SEN 0x01
11265 #define _WDTCON0_SWDTEN 0x01
11266 #define _WDTCON0_WDTSEN 0x01
11267 #define _WDTCON0_WDTPS0 0x02
11268 #define _WDTCON0_WDTPS1 0x04
11269 #define _WDTCON0_WDTPS2 0x08
11270 #define _WDTCON0_WDTPS3 0x10
11271 #define _WDTCON0_WDTPS4 0x20
11273 //==============================================================================
11276 //==============================================================================
11277 // WDTCON1 Bits
11279 extern __at(0x080D) __sfr WDTCON1;
11281 typedef union
11283 struct
11285 unsigned WINDOW0 : 1;
11286 unsigned WINDOW1 : 1;
11287 unsigned WINDOW2 : 1;
11288 unsigned : 1;
11289 unsigned WDTCS0 : 1;
11290 unsigned WDTCS1 : 1;
11291 unsigned WDTCS2 : 1;
11292 unsigned : 1;
11295 struct
11297 unsigned WDTWINDOW0 : 1;
11298 unsigned WDTWINDOW1 : 1;
11299 unsigned WDTWINDOW2 : 1;
11300 unsigned : 1;
11301 unsigned : 1;
11302 unsigned : 1;
11303 unsigned : 1;
11304 unsigned : 1;
11307 struct
11309 unsigned WDTWINDOW : 3;
11310 unsigned : 5;
11313 struct
11315 unsigned WINDOW : 3;
11316 unsigned : 5;
11319 struct
11321 unsigned : 4;
11322 unsigned WDTCS : 3;
11323 unsigned : 1;
11325 } __WDTCON1bits_t;
11327 extern __at(0x080D) volatile __WDTCON1bits_t WDTCON1bits;
11329 #define _WINDOW0 0x01
11330 #define _WDTWINDOW0 0x01
11331 #define _WINDOW1 0x02
11332 #define _WDTWINDOW1 0x02
11333 #define _WINDOW2 0x04
11334 #define _WDTWINDOW2 0x04
11335 #define _WDTCS0 0x10
11336 #define _WDTCS1 0x20
11337 #define _WDTCS2 0x40
11339 //==============================================================================
11342 //==============================================================================
11343 // WDTPSL Bits
11345 extern __at(0x080E) __sfr WDTPSL;
11347 typedef union
11349 struct
11351 unsigned PSCNT0 : 1;
11352 unsigned PSCNT1 : 1;
11353 unsigned PSCNT2 : 1;
11354 unsigned PSCNT3 : 1;
11355 unsigned PSCNT4 : 1;
11356 unsigned PSCNT5 : 1;
11357 unsigned PSCNT6 : 1;
11358 unsigned PSCNT7 : 1;
11361 struct
11363 unsigned WDTPSCNT0 : 1;
11364 unsigned WDTPSCNT1 : 1;
11365 unsigned WDTPSCNT2 : 1;
11366 unsigned WDTPSCNT3 : 1;
11367 unsigned WDTPSCNT4 : 1;
11368 unsigned WDTPSCNT5 : 1;
11369 unsigned WDTPSCNT6 : 1;
11370 unsigned WDTPSCNT7 : 1;
11372 } __WDTPSLbits_t;
11374 extern __at(0x080E) volatile __WDTPSLbits_t WDTPSLbits;
11376 #define _PSCNT0 0x01
11377 #define _WDTPSCNT0 0x01
11378 #define _PSCNT1 0x02
11379 #define _WDTPSCNT1 0x02
11380 #define _PSCNT2 0x04
11381 #define _WDTPSCNT2 0x04
11382 #define _PSCNT3 0x08
11383 #define _WDTPSCNT3 0x08
11384 #define _PSCNT4 0x10
11385 #define _WDTPSCNT4 0x10
11386 #define _PSCNT5 0x20
11387 #define _WDTPSCNT5 0x20
11388 #define _PSCNT6 0x40
11389 #define _WDTPSCNT6 0x40
11390 #define _PSCNT7 0x80
11391 #define _WDTPSCNT7 0x80
11393 //==============================================================================
11396 //==============================================================================
11397 // WDTPSH Bits
11399 extern __at(0x080F) __sfr WDTPSH;
11401 typedef union
11403 struct
11405 unsigned PSCNT8 : 1;
11406 unsigned PSCNT9 : 1;
11407 unsigned PSCNT10 : 1;
11408 unsigned PSCNT11 : 1;
11409 unsigned PSCNT12 : 1;
11410 unsigned PSCNT13 : 1;
11411 unsigned PSCNT14 : 1;
11412 unsigned PSCNT15 : 1;
11415 struct
11417 unsigned WDTPSCNT8 : 1;
11418 unsigned WDTPSCNT9 : 1;
11419 unsigned WDTPSCNT10 : 1;
11420 unsigned WDTPSCNT11 : 1;
11421 unsigned WDTPSCNT12 : 1;
11422 unsigned WDTPSCNT13 : 1;
11423 unsigned WDTPSCNT14 : 1;
11424 unsigned WDTPSCNT15 : 1;
11426 } __WDTPSHbits_t;
11428 extern __at(0x080F) volatile __WDTPSHbits_t WDTPSHbits;
11430 #define _PSCNT8 0x01
11431 #define _WDTPSCNT8 0x01
11432 #define _PSCNT9 0x02
11433 #define _WDTPSCNT9 0x02
11434 #define _PSCNT10 0x04
11435 #define _WDTPSCNT10 0x04
11436 #define _PSCNT11 0x08
11437 #define _WDTPSCNT11 0x08
11438 #define _PSCNT12 0x10
11439 #define _WDTPSCNT12 0x10
11440 #define _PSCNT13 0x20
11441 #define _WDTPSCNT13 0x20
11442 #define _PSCNT14 0x40
11443 #define _WDTPSCNT14 0x40
11444 #define _PSCNT15 0x80
11445 #define _WDTPSCNT15 0x80
11447 //==============================================================================
11450 //==============================================================================
11451 // WDTTMR Bits
11453 extern __at(0x0810) __sfr WDTTMR;
11455 typedef union
11457 struct
11459 unsigned PSCNT16 : 1;
11460 unsigned PSCNT17 : 1;
11461 unsigned STATE : 1;
11462 unsigned WDTTMR0 : 1;
11463 unsigned WDTTMR1 : 1;
11464 unsigned WDTTMR2 : 1;
11465 unsigned WDTTMR3 : 1;
11466 unsigned : 1;
11469 struct
11471 unsigned WDTPSCNT16 : 1;
11472 unsigned WDTPSCNT17 : 1;
11473 unsigned WDTSTATE : 1;
11474 unsigned : 1;
11475 unsigned : 1;
11476 unsigned : 1;
11477 unsigned : 1;
11478 unsigned : 1;
11481 struct
11483 unsigned : 3;
11484 unsigned WDTTMR : 4;
11485 unsigned : 1;
11487 } __WDTTMRbits_t;
11489 extern __at(0x0810) volatile __WDTTMRbits_t WDTTMRbits;
11491 #define _PSCNT16 0x01
11492 #define _WDTPSCNT16 0x01
11493 #define _PSCNT17 0x02
11494 #define _WDTPSCNT17 0x02
11495 #define _STATE 0x04
11496 #define _WDTSTATE 0x04
11497 #define _WDTTMR0 0x08
11498 #define _WDTTMR1 0x10
11499 #define _WDTTMR2 0x20
11500 #define _WDTTMR3 0x40
11502 //==============================================================================
11505 //==============================================================================
11506 // BORCON Bits
11508 extern __at(0x0811) __sfr BORCON;
11510 typedef struct
11512 unsigned BORRDY : 1;
11513 unsigned : 1;
11514 unsigned : 1;
11515 unsigned : 1;
11516 unsigned : 1;
11517 unsigned : 1;
11518 unsigned : 1;
11519 unsigned SBOREN : 1;
11520 } __BORCONbits_t;
11522 extern __at(0x0811) volatile __BORCONbits_t BORCONbits;
11524 #define _BORRDY 0x01
11525 #define _SBOREN 0x80
11527 //==============================================================================
11530 //==============================================================================
11531 // VREGCON Bits
11533 extern __at(0x0812) __sfr VREGCON;
11535 typedef union
11537 struct
11539 unsigned VREGPM0 : 1;
11540 unsigned VREGPM1 : 1;
11541 unsigned : 1;
11542 unsigned : 1;
11543 unsigned : 1;
11544 unsigned : 1;
11545 unsigned : 1;
11546 unsigned : 1;
11549 struct
11551 unsigned : 1;
11552 unsigned VREGPM : 1;
11553 unsigned : 1;
11554 unsigned : 1;
11555 unsigned : 1;
11556 unsigned : 1;
11557 unsigned : 1;
11558 unsigned : 1;
11560 } __VREGCONbits_t;
11562 extern __at(0x0812) volatile __VREGCONbits_t VREGCONbits;
11564 #define _VREGPM0 0x01
11565 #define _VREGPM1 0x02
11566 #define _VREGPM 0x02
11568 //==============================================================================
11571 //==============================================================================
11572 // PCON0 Bits
11574 extern __at(0x0813) __sfr PCON0;
11576 typedef struct
11578 unsigned NOT_BOR : 1;
11579 unsigned NOT_POR : 1;
11580 unsigned NOT_RI : 1;
11581 unsigned NOT_RMCLR : 1;
11582 unsigned NOT_RWDT : 1;
11583 unsigned NOT_WDTWV : 1;
11584 unsigned STKUNF : 1;
11585 unsigned STKOVF : 1;
11586 } __PCON0bits_t;
11588 extern __at(0x0813) volatile __PCON0bits_t PCON0bits;
11590 #define _NOT_BOR 0x01
11591 #define _NOT_POR 0x02
11592 #define _NOT_RI 0x04
11593 #define _NOT_RMCLR 0x08
11594 #define _NOT_RWDT 0x10
11595 #define _NOT_WDTWV 0x20
11596 #define _STKUNF 0x40
11597 #define _STKOVF 0x80
11599 //==============================================================================
11602 //==============================================================================
11603 // CCDCON Bits
11605 extern __at(0x0814) __sfr CCDCON;
11607 typedef union
11609 struct
11611 unsigned CCDS0 : 1;
11612 unsigned CCDS1 : 1;
11613 unsigned : 1;
11614 unsigned : 1;
11615 unsigned : 1;
11616 unsigned : 1;
11617 unsigned : 1;
11618 unsigned CCDEN : 1;
11621 struct
11623 unsigned CCDS : 2;
11624 unsigned : 6;
11626 } __CCDCONbits_t;
11628 extern __at(0x0814) volatile __CCDCONbits_t CCDCONbits;
11630 #define _CCDS0 0x01
11631 #define _CCDS1 0x02
11632 #define _CCDEN 0x80
11634 //==============================================================================
11637 //==============================================================================
11638 // NVMADRL Bits
11640 extern __at(0x081A) __sfr NVMADRL;
11642 typedef struct
11644 unsigned NVMADR0 : 1;
11645 unsigned NVMADR1 : 1;
11646 unsigned NVMADR2 : 1;
11647 unsigned NVMADR3 : 1;
11648 unsigned NVMADR4 : 1;
11649 unsigned NVMADR5 : 1;
11650 unsigned NVMADR6 : 1;
11651 unsigned NVMADR7 : 1;
11652 } __NVMADRLbits_t;
11654 extern __at(0x081A) volatile __NVMADRLbits_t NVMADRLbits;
11656 #define _NVMADR0 0x01
11657 #define _NVMADR1 0x02
11658 #define _NVMADR2 0x04
11659 #define _NVMADR3 0x08
11660 #define _NVMADR4 0x10
11661 #define _NVMADR5 0x20
11662 #define _NVMADR6 0x40
11663 #define _NVMADR7 0x80
11665 //==============================================================================
11668 //==============================================================================
11669 // NVMADRH Bits
11671 extern __at(0x081B) __sfr NVMADRH;
11673 typedef struct
11675 unsigned NVMADR8 : 1;
11676 unsigned NVMADR9 : 1;
11677 unsigned NVMADR10 : 1;
11678 unsigned NVMADR11 : 1;
11679 unsigned NVMADR12 : 1;
11680 unsigned NVMADR13 : 1;
11681 unsigned NVMADR14 : 1;
11682 unsigned : 1;
11683 } __NVMADRHbits_t;
11685 extern __at(0x081B) volatile __NVMADRHbits_t NVMADRHbits;
11687 #define _NVMADR8 0x01
11688 #define _NVMADR9 0x02
11689 #define _NVMADR10 0x04
11690 #define _NVMADR11 0x08
11691 #define _NVMADR12 0x10
11692 #define _NVMADR13 0x20
11693 #define _NVMADR14 0x40
11695 //==============================================================================
11698 //==============================================================================
11699 // NVMDATL Bits
11701 extern __at(0x081C) __sfr NVMDATL;
11703 typedef struct
11705 unsigned NVMDAT0 : 1;
11706 unsigned NVMDAT1 : 1;
11707 unsigned NVMDAT2 : 1;
11708 unsigned NVMDAT3 : 1;
11709 unsigned NVMDAT4 : 1;
11710 unsigned NVMDAT5 : 1;
11711 unsigned NVMDAT6 : 1;
11712 unsigned NVMDAT7 : 1;
11713 } __NVMDATLbits_t;
11715 extern __at(0x081C) volatile __NVMDATLbits_t NVMDATLbits;
11717 #define _NVMDAT0 0x01
11718 #define _NVMDAT1 0x02
11719 #define _NVMDAT2 0x04
11720 #define _NVMDAT3 0x08
11721 #define _NVMDAT4 0x10
11722 #define _NVMDAT5 0x20
11723 #define _NVMDAT6 0x40
11724 #define _NVMDAT7 0x80
11726 //==============================================================================
11729 //==============================================================================
11730 // NVMDATH Bits
11732 extern __at(0x081D) __sfr NVMDATH;
11734 typedef struct
11736 unsigned NVMDAT8 : 1;
11737 unsigned NVMDAT9 : 1;
11738 unsigned NVMDAT10 : 1;
11739 unsigned NVMDAT11 : 1;
11740 unsigned NVMDAT12 : 1;
11741 unsigned NVMDAT13 : 1;
11742 unsigned : 1;
11743 unsigned : 1;
11744 } __NVMDATHbits_t;
11746 extern __at(0x081D) volatile __NVMDATHbits_t NVMDATHbits;
11748 #define _NVMDAT8 0x01
11749 #define _NVMDAT9 0x02
11750 #define _NVMDAT10 0x04
11751 #define _NVMDAT11 0x08
11752 #define _NVMDAT12 0x10
11753 #define _NVMDAT13 0x20
11755 //==============================================================================
11758 //==============================================================================
11759 // NVMCON1 Bits
11761 extern __at(0x081E) __sfr NVMCON1;
11763 typedef struct
11765 unsigned RD : 1;
11766 unsigned WR : 1;
11767 unsigned WREN : 1;
11768 unsigned WRERR : 1;
11769 unsigned FREE : 1;
11770 unsigned LWLO : 1;
11771 unsigned NVMREGS : 1;
11772 unsigned : 1;
11773 } __NVMCON1bits_t;
11775 extern __at(0x081E) volatile __NVMCON1bits_t NVMCON1bits;
11777 #define _RD 0x01
11778 #define _WR 0x02
11779 #define _WREN 0x04
11780 #define _WRERR 0x08
11781 #define _FREE 0x10
11782 #define _LWLO 0x20
11783 #define _NVMREGS 0x40
11785 //==============================================================================
11787 extern __at(0x081F) __sfr NVMCON2;
11789 //==============================================================================
11790 // CPUDOZE Bits
11792 extern __at(0x088C) __sfr CPUDOZE;
11794 typedef union
11796 struct
11798 unsigned DOZE0 : 1;
11799 unsigned DOZE1 : 1;
11800 unsigned DOZE2 : 1;
11801 unsigned : 1;
11802 unsigned DOE : 1;
11803 unsigned ROI : 1;
11804 unsigned DOZEN : 1;
11805 unsigned IDLEN : 1;
11808 struct
11810 unsigned DOZE : 3;
11811 unsigned : 5;
11813 } __CPUDOZEbits_t;
11815 extern __at(0x088C) volatile __CPUDOZEbits_t CPUDOZEbits;
11817 #define _DOZE0 0x01
11818 #define _DOZE1 0x02
11819 #define _DOZE2 0x04
11820 #define _DOE 0x10
11821 #define _ROI 0x20
11822 #define _DOZEN 0x40
11823 #define _IDLEN 0x80
11825 //==============================================================================
11828 //==============================================================================
11829 // OSCCON1 Bits
11831 extern __at(0x088D) __sfr OSCCON1;
11833 typedef union
11835 struct
11837 unsigned NDIV0 : 1;
11838 unsigned NDIV1 : 1;
11839 unsigned NDIV2 : 1;
11840 unsigned NDIV3 : 1;
11841 unsigned NOSC0 : 1;
11842 unsigned NOSC1 : 1;
11843 unsigned NOSC2 : 1;
11844 unsigned : 1;
11847 struct
11849 unsigned NDIV : 4;
11850 unsigned : 4;
11853 struct
11855 unsigned : 4;
11856 unsigned NOSC : 3;
11857 unsigned : 1;
11859 } __OSCCON1bits_t;
11861 extern __at(0x088D) volatile __OSCCON1bits_t OSCCON1bits;
11863 #define _NDIV0 0x01
11864 #define _NDIV1 0x02
11865 #define _NDIV2 0x04
11866 #define _NDIV3 0x08
11867 #define _NOSC0 0x10
11868 #define _NOSC1 0x20
11869 #define _NOSC2 0x40
11871 //==============================================================================
11874 //==============================================================================
11875 // OSCCON2 Bits
11877 extern __at(0x088E) __sfr OSCCON2;
11879 typedef union
11881 struct
11883 unsigned CDIV0 : 1;
11884 unsigned CDIV1 : 1;
11885 unsigned CDIV2 : 1;
11886 unsigned CDIV3 : 1;
11887 unsigned COSC0 : 1;
11888 unsigned COSC1 : 1;
11889 unsigned COSC2 : 1;
11890 unsigned : 1;
11893 struct
11895 unsigned CDIV : 4;
11896 unsigned : 4;
11899 struct
11901 unsigned : 4;
11902 unsigned COSC : 3;
11903 unsigned : 1;
11905 } __OSCCON2bits_t;
11907 extern __at(0x088E) volatile __OSCCON2bits_t OSCCON2bits;
11909 #define _CDIV0 0x01
11910 #define _CDIV1 0x02
11911 #define _CDIV2 0x04
11912 #define _CDIV3 0x08
11913 #define _COSC0 0x10
11914 #define _COSC1 0x20
11915 #define _COSC2 0x40
11917 //==============================================================================
11920 //==============================================================================
11921 // OSCCON3 Bits
11923 extern __at(0x088F) __sfr OSCCON3;
11925 typedef struct
11927 unsigned : 1;
11928 unsigned : 1;
11929 unsigned : 1;
11930 unsigned NOSCR : 1;
11931 unsigned ORDY : 1;
11932 unsigned : 1;
11933 unsigned SOSCPWR : 1;
11934 unsigned CSWHOLD : 1;
11935 } __OSCCON3bits_t;
11937 extern __at(0x088F) volatile __OSCCON3bits_t OSCCON3bits;
11939 #define _NOSCR 0x08
11940 #define _ORDY 0x10
11941 #define _SOSCPWR 0x40
11942 #define _CSWHOLD 0x80
11944 //==============================================================================
11947 //==============================================================================
11948 // OSCSTAT Bits
11950 extern __at(0x0890) __sfr OSCSTAT;
11952 typedef struct
11954 unsigned PLLR : 1;
11955 unsigned : 1;
11956 unsigned ADOR : 1;
11957 unsigned SOR : 1;
11958 unsigned LFOR : 1;
11959 unsigned MFOR : 1;
11960 unsigned HFOR : 1;
11961 unsigned EXTOR : 1;
11962 } __OSCSTATbits_t;
11964 extern __at(0x0890) volatile __OSCSTATbits_t OSCSTATbits;
11966 #define _PLLR 0x01
11967 #define _ADOR 0x04
11968 #define _SOR 0x08
11969 #define _LFOR 0x10
11970 #define _MFOR 0x20
11971 #define _HFOR 0x40
11972 #define _EXTOR 0x80
11974 //==============================================================================
11977 //==============================================================================
11978 // OSCEN Bits
11980 extern __at(0x0891) __sfr OSCEN;
11982 typedef struct
11984 unsigned : 1;
11985 unsigned : 1;
11986 unsigned ADOEN : 1;
11987 unsigned SOSCEN : 1;
11988 unsigned LFOEN : 1;
11989 unsigned MFOEN : 1;
11990 unsigned HFOEN : 1;
11991 unsigned EXTOEN : 1;
11992 } __OSCENbits_t;
11994 extern __at(0x0891) volatile __OSCENbits_t OSCENbits;
11996 #define _ADOEN 0x04
11997 #define _SOSCEN 0x08
11998 #define _LFOEN 0x10
11999 #define _MFOEN 0x20
12000 #define _HFOEN 0x40
12001 #define _EXTOEN 0x80
12003 //==============================================================================
12006 //==============================================================================
12007 // OSCTUNE Bits
12009 extern __at(0x0892) __sfr OSCTUNE;
12011 typedef union
12013 struct
12015 unsigned HFTUN0 : 1;
12016 unsigned HFTUN1 : 1;
12017 unsigned HFTUN2 : 1;
12018 unsigned HFTUN3 : 1;
12019 unsigned HFTUN4 : 1;
12020 unsigned HFTUN5 : 1;
12021 unsigned : 1;
12022 unsigned : 1;
12025 struct
12027 unsigned HFTUN : 6;
12028 unsigned : 2;
12030 } __OSCTUNEbits_t;
12032 extern __at(0x0892) volatile __OSCTUNEbits_t OSCTUNEbits;
12034 #define _HFTUN0 0x01
12035 #define _HFTUN1 0x02
12036 #define _HFTUN2 0x04
12037 #define _HFTUN3 0x08
12038 #define _HFTUN4 0x10
12039 #define _HFTUN5 0x20
12041 //==============================================================================
12044 //==============================================================================
12045 // OSCFRQ Bits
12047 extern __at(0x0893) __sfr OSCFRQ;
12049 typedef union
12051 struct
12053 unsigned HFFRQ0 : 1;
12054 unsigned HFFRQ1 : 1;
12055 unsigned HFFRQ2 : 1;
12056 unsigned : 1;
12057 unsigned : 1;
12058 unsigned : 1;
12059 unsigned : 1;
12060 unsigned : 1;
12063 struct
12065 unsigned HFFRQ : 3;
12066 unsigned : 5;
12068 } __OSCFRQbits_t;
12070 extern __at(0x0893) volatile __OSCFRQbits_t OSCFRQbits;
12072 #define _HFFRQ0 0x01
12073 #define _HFFRQ1 0x02
12074 #define _HFFRQ2 0x04
12076 //==============================================================================
12079 //==============================================================================
12080 // CLKRCON Bits
12082 extern __at(0x0895) __sfr CLKRCON;
12084 typedef union
12086 struct
12088 unsigned CLKRDIV0 : 1;
12089 unsigned CLKRDIV1 : 1;
12090 unsigned CLKRDIV2 : 1;
12091 unsigned CLKRDC0 : 1;
12092 unsigned CLKRDC1 : 1;
12093 unsigned : 1;
12094 unsigned : 1;
12095 unsigned CLKREN : 1;
12098 struct
12100 unsigned CLKRDIV : 3;
12101 unsigned : 5;
12104 struct
12106 unsigned : 3;
12107 unsigned CLKRDC : 2;
12108 unsigned : 3;
12110 } __CLKRCONbits_t;
12112 extern __at(0x0895) volatile __CLKRCONbits_t CLKRCONbits;
12114 #define _CLKRDIV0 0x01
12115 #define _CLKRDIV1 0x02
12116 #define _CLKRDIV2 0x04
12117 #define _CLKRDC0 0x08
12118 #define _CLKRDC1 0x10
12119 #define _CLKREN 0x80
12121 //==============================================================================
12124 //==============================================================================
12125 // CLKRCLK Bits
12127 extern __at(0x0896) __sfr CLKRCLK;
12129 typedef union
12131 struct
12133 unsigned CLKRCLK0 : 1;
12134 unsigned CLKRCLK1 : 1;
12135 unsigned CLKRCLK2 : 1;
12136 unsigned CLKRCLK3 : 1;
12137 unsigned : 1;
12138 unsigned : 1;
12139 unsigned : 1;
12140 unsigned : 1;
12143 struct
12145 unsigned CLKRCLK : 4;
12146 unsigned : 4;
12148 } __CLKRCLKbits_t;
12150 extern __at(0x0896) volatile __CLKRCLKbits_t CLKRCLKbits;
12152 #define _CLKRCLK0 0x01
12153 #define _CLKRCLK1 0x02
12154 #define _CLKRCLK2 0x04
12155 #define _CLKRCLK3 0x08
12157 //==============================================================================
12160 //==============================================================================
12161 // MDCON0 Bits
12163 extern __at(0x0897) __sfr MDCON0;
12165 typedef struct
12167 unsigned MDBIT : 1;
12168 unsigned : 1;
12169 unsigned : 1;
12170 unsigned : 1;
12171 unsigned MDOPOL : 1;
12172 unsigned MDOUT : 1;
12173 unsigned : 1;
12174 unsigned MDEN : 1;
12175 } __MDCON0bits_t;
12177 extern __at(0x0897) volatile __MDCON0bits_t MDCON0bits;
12179 #define _MDBIT 0x01
12180 #define _MDOPOL 0x10
12181 #define _MDOUT 0x20
12182 #define _MDEN 0x80
12184 //==============================================================================
12187 //==============================================================================
12188 // MDCON1 Bits
12190 extern __at(0x0898) __sfr MDCON1;
12192 typedef struct
12194 unsigned MDCLSYNC : 1;
12195 unsigned MDCLPOL : 1;
12196 unsigned : 1;
12197 unsigned : 1;
12198 unsigned MDCHSYNC : 1;
12199 unsigned MDCHPOL : 1;
12200 unsigned : 1;
12201 unsigned : 1;
12202 } __MDCON1bits_t;
12204 extern __at(0x0898) volatile __MDCON1bits_t MDCON1bits;
12206 #define _MDCLSYNC 0x01
12207 #define _MDCLPOL 0x02
12208 #define _MDCHSYNC 0x10
12209 #define _MDCHPOL 0x20
12211 //==============================================================================
12214 //==============================================================================
12215 // MDSRC Bits
12217 extern __at(0x0899) __sfr MDSRC;
12219 typedef union
12221 struct
12223 unsigned MDMS0 : 1;
12224 unsigned MDMS1 : 1;
12225 unsigned MDMS2 : 1;
12226 unsigned MDMS3 : 1;
12227 unsigned MDMS4 : 1;
12228 unsigned : 1;
12229 unsigned : 1;
12230 unsigned : 1;
12233 struct
12235 unsigned MDMS : 5;
12236 unsigned : 3;
12238 } __MDSRCbits_t;
12240 extern __at(0x0899) volatile __MDSRCbits_t MDSRCbits;
12242 #define _MDMS0 0x01
12243 #define _MDMS1 0x02
12244 #define _MDMS2 0x04
12245 #define _MDMS3 0x08
12246 #define _MDMS4 0x10
12248 //==============================================================================
12251 //==============================================================================
12252 // MDCARL Bits
12254 extern __at(0x089A) __sfr MDCARL;
12256 typedef union
12258 struct
12260 unsigned MDCL0 : 1;
12261 unsigned MDCL1 : 1;
12262 unsigned MDCL2 : 1;
12263 unsigned MDCL3 : 1;
12264 unsigned : 1;
12265 unsigned : 1;
12266 unsigned : 1;
12267 unsigned : 1;
12270 struct
12272 unsigned MDCL : 4;
12273 unsigned : 4;
12275 } __MDCARLbits_t;
12277 extern __at(0x089A) volatile __MDCARLbits_t MDCARLbits;
12279 #define _MDCL0 0x01
12280 #define _MDCL1 0x02
12281 #define _MDCL2 0x04
12282 #define _MDCL3 0x08
12284 //==============================================================================
12287 //==============================================================================
12288 // MDCARH Bits
12290 extern __at(0x089B) __sfr MDCARH;
12292 typedef union
12294 struct
12296 unsigned MDCH0 : 1;
12297 unsigned MDCH1 : 1;
12298 unsigned MDCH2 : 1;
12299 unsigned MDCH3 : 1;
12300 unsigned : 1;
12301 unsigned : 1;
12302 unsigned : 1;
12303 unsigned : 1;
12306 struct
12308 unsigned MDCH : 4;
12309 unsigned : 4;
12311 } __MDCARHbits_t;
12313 extern __at(0x089B) volatile __MDCARHbits_t MDCARHbits;
12315 #define _MDCH0 0x01
12316 #define _MDCH1 0x02
12317 #define _MDCH2 0x04
12318 #define _MDCH3 0x08
12320 //==============================================================================
12323 //==============================================================================
12324 // FVRCON Bits
12326 extern __at(0x090C) __sfr FVRCON;
12328 typedef union
12330 struct
12332 unsigned ADFVR0 : 1;
12333 unsigned ADFVR1 : 1;
12334 unsigned CDAFVR0 : 1;
12335 unsigned CDAFVR1 : 1;
12336 unsigned TSRNG : 1;
12337 unsigned TSEN : 1;
12338 unsigned FVRRDY : 1;
12339 unsigned FVREN : 1;
12342 struct
12344 unsigned ADFVR : 2;
12345 unsigned : 6;
12348 struct
12350 unsigned : 2;
12351 unsigned CDAFVR : 2;
12352 unsigned : 4;
12354 } __FVRCONbits_t;
12356 extern __at(0x090C) volatile __FVRCONbits_t FVRCONbits;
12358 #define _ADFVR0 0x01
12359 #define _ADFVR1 0x02
12360 #define _CDAFVR0 0x04
12361 #define _CDAFVR1 0x08
12362 #define _TSRNG 0x10
12363 #define _TSEN 0x20
12364 #define _FVRRDY 0x40
12365 #define _FVREN 0x80
12367 //==============================================================================
12370 //==============================================================================
12371 // DAC1CON0 Bits
12373 extern __at(0x090E) __sfr DAC1CON0;
12375 typedef union
12377 struct
12379 unsigned NSS : 1;
12380 unsigned : 1;
12381 unsigned DAC1PSS0 : 1;
12382 unsigned DAC1PSS1 : 1;
12383 unsigned OE2 : 1;
12384 unsigned OE1 : 1;
12385 unsigned : 1;
12386 unsigned EN : 1;
12389 struct
12391 unsigned DAC1NSS : 1;
12392 unsigned : 1;
12393 unsigned PSS0 : 1;
12394 unsigned PSS1 : 1;
12395 unsigned DAC1OE2 : 1;
12396 unsigned DAC1OE1 : 1;
12397 unsigned : 1;
12398 unsigned DAC1EN : 1;
12401 struct
12403 unsigned : 2;
12404 unsigned PSS : 2;
12405 unsigned : 4;
12408 struct
12410 unsigned : 2;
12411 unsigned DAC1PSS : 2;
12412 unsigned : 4;
12414 } __DAC1CON0bits_t;
12416 extern __at(0x090E) volatile __DAC1CON0bits_t DAC1CON0bits;
12418 #define _DAC1CON0_NSS 0x01
12419 #define _DAC1CON0_DAC1NSS 0x01
12420 #define _DAC1CON0_DAC1PSS0 0x04
12421 #define _DAC1CON0_PSS0 0x04
12422 #define _DAC1CON0_DAC1PSS1 0x08
12423 #define _DAC1CON0_PSS1 0x08
12424 #define _DAC1CON0_OE2 0x10
12425 #define _DAC1CON0_DAC1OE2 0x10
12426 #define _DAC1CON0_OE1 0x20
12427 #define _DAC1CON0_DAC1OE1 0x20
12428 #define _DAC1CON0_EN 0x80
12429 #define _DAC1CON0_DAC1EN 0x80
12431 //==============================================================================
12434 //==============================================================================
12435 // DAC1CON1 Bits
12437 extern __at(0x090F) __sfr DAC1CON1;
12439 typedef union
12441 struct
12443 unsigned DAC1R0 : 1;
12444 unsigned DAC1R1 : 1;
12445 unsigned DAC1R2 : 1;
12446 unsigned DAC1R3 : 1;
12447 unsigned DAC1R4 : 1;
12448 unsigned : 1;
12449 unsigned : 1;
12450 unsigned : 1;
12453 struct
12455 unsigned DAC1R : 5;
12456 unsigned : 3;
12458 } __DAC1CON1bits_t;
12460 extern __at(0x090F) volatile __DAC1CON1bits_t DAC1CON1bits;
12462 #define _DAC1R0 0x01
12463 #define _DAC1R1 0x02
12464 #define _DAC1R2 0x04
12465 #define _DAC1R3 0x08
12466 #define _DAC1R4 0x10
12468 //==============================================================================
12471 //==============================================================================
12472 // ZCD1CON Bits
12474 extern __at(0x091F) __sfr ZCD1CON;
12476 typedef union
12478 struct
12480 unsigned INTN : 1;
12481 unsigned INTP : 1;
12482 unsigned : 1;
12483 unsigned : 1;
12484 unsigned POL : 1;
12485 unsigned OUT : 1;
12486 unsigned : 1;
12487 unsigned EN : 1;
12490 struct
12492 unsigned ZCD1INTN : 1;
12493 unsigned ZCD1INTP : 1;
12494 unsigned : 1;
12495 unsigned : 1;
12496 unsigned ZCD1POL : 1;
12497 unsigned ZCD1OUT : 1;
12498 unsigned : 1;
12499 unsigned ZCD1EN : 1;
12502 struct
12504 unsigned ZCDINTN : 1;
12505 unsigned ZCDINTP : 1;
12506 unsigned : 1;
12507 unsigned : 1;
12508 unsigned ZCDPOL : 1;
12509 unsigned ZCDOUT : 1;
12510 unsigned : 1;
12511 unsigned ZCDEN : 1;
12513 } __ZCD1CONbits_t;
12515 extern __at(0x091F) volatile __ZCD1CONbits_t ZCD1CONbits;
12517 #define _ZCD1CON_INTN 0x01
12518 #define _ZCD1CON_ZCD1INTN 0x01
12519 #define _ZCD1CON_ZCDINTN 0x01
12520 #define _ZCD1CON_INTP 0x02
12521 #define _ZCD1CON_ZCD1INTP 0x02
12522 #define _ZCD1CON_ZCDINTP 0x02
12523 #define _ZCD1CON_POL 0x10
12524 #define _ZCD1CON_ZCD1POL 0x10
12525 #define _ZCD1CON_ZCDPOL 0x10
12526 #define _ZCD1CON_OUT 0x20
12527 #define _ZCD1CON_ZCD1OUT 0x20
12528 #define _ZCD1CON_ZCDOUT 0x20
12529 #define _ZCD1CON_EN 0x80
12530 #define _ZCD1CON_ZCD1EN 0x80
12531 #define _ZCD1CON_ZCDEN 0x80
12533 //==============================================================================
12536 //==============================================================================
12537 // ZCDCON Bits
12539 extern __at(0x091F) __sfr ZCDCON;
12541 typedef union
12543 struct
12545 unsigned INTN : 1;
12546 unsigned INTP : 1;
12547 unsigned : 1;
12548 unsigned : 1;
12549 unsigned POL : 1;
12550 unsigned OUT : 1;
12551 unsigned : 1;
12552 unsigned EN : 1;
12555 struct
12557 unsigned ZCD1INTN : 1;
12558 unsigned ZCD1INTP : 1;
12559 unsigned : 1;
12560 unsigned : 1;
12561 unsigned ZCD1POL : 1;
12562 unsigned ZCD1OUT : 1;
12563 unsigned : 1;
12564 unsigned ZCD1EN : 1;
12567 struct
12569 unsigned ZCDINTN : 1;
12570 unsigned ZCDINTP : 1;
12571 unsigned : 1;
12572 unsigned : 1;
12573 unsigned ZCDPOL : 1;
12574 unsigned ZCDOUT : 1;
12575 unsigned : 1;
12576 unsigned ZCDEN : 1;
12578 } __ZCDCONbits_t;
12580 extern __at(0x091F) volatile __ZCDCONbits_t ZCDCONbits;
12582 #define _ZCDCON_INTN 0x01
12583 #define _ZCDCON_ZCD1INTN 0x01
12584 #define _ZCDCON_ZCDINTN 0x01
12585 #define _ZCDCON_INTP 0x02
12586 #define _ZCDCON_ZCD1INTP 0x02
12587 #define _ZCDCON_ZCDINTP 0x02
12588 #define _ZCDCON_POL 0x10
12589 #define _ZCDCON_ZCD1POL 0x10
12590 #define _ZCDCON_ZCDPOL 0x10
12591 #define _ZCDCON_OUT 0x20
12592 #define _ZCDCON_ZCD1OUT 0x20
12593 #define _ZCDCON_ZCDOUT 0x20
12594 #define _ZCDCON_EN 0x80
12595 #define _ZCDCON_ZCD1EN 0x80
12596 #define _ZCDCON_ZCDEN 0x80
12598 //==============================================================================
12601 //==============================================================================
12602 // CMOUT Bits
12604 extern __at(0x098F) __sfr CMOUT;
12606 typedef union
12608 struct
12610 unsigned MC1OUT : 1;
12611 unsigned MC2OUT : 1;
12612 unsigned : 1;
12613 unsigned : 1;
12614 unsigned : 1;
12615 unsigned : 1;
12616 unsigned : 1;
12617 unsigned : 1;
12620 struct
12622 unsigned C1OUT : 1;
12623 unsigned C2OUT : 1;
12624 unsigned : 1;
12625 unsigned : 1;
12626 unsigned : 1;
12627 unsigned : 1;
12628 unsigned : 1;
12629 unsigned : 1;
12631 } __CMOUTbits_t;
12633 extern __at(0x098F) volatile __CMOUTbits_t CMOUTbits;
12635 #define _CMOUT_MC1OUT 0x01
12636 #define _CMOUT_C1OUT 0x01
12637 #define _CMOUT_MC2OUT 0x02
12638 #define _CMOUT_C2OUT 0x02
12640 //==============================================================================
12643 //==============================================================================
12644 // CMSTAT Bits
12646 extern __at(0x098F) __sfr CMSTAT;
12648 typedef union
12650 struct
12652 unsigned MC1OUT : 1;
12653 unsigned MC2OUT : 1;
12654 unsigned : 1;
12655 unsigned : 1;
12656 unsigned : 1;
12657 unsigned : 1;
12658 unsigned : 1;
12659 unsigned : 1;
12662 struct
12664 unsigned C1OUT : 1;
12665 unsigned C2OUT : 1;
12666 unsigned : 1;
12667 unsigned : 1;
12668 unsigned : 1;
12669 unsigned : 1;
12670 unsigned : 1;
12671 unsigned : 1;
12673 } __CMSTATbits_t;
12675 extern __at(0x098F) volatile __CMSTATbits_t CMSTATbits;
12677 #define _CMSTAT_MC1OUT 0x01
12678 #define _CMSTAT_C1OUT 0x01
12679 #define _CMSTAT_MC2OUT 0x02
12680 #define _CMSTAT_C2OUT 0x02
12682 //==============================================================================
12685 //==============================================================================
12686 // CM1CON0 Bits
12688 extern __at(0x0990) __sfr CM1CON0;
12690 typedef union
12692 struct
12694 unsigned SYNC : 1;
12695 unsigned HYS : 1;
12696 unsigned Reserved : 1;
12697 unsigned : 1;
12698 unsigned POL : 1;
12699 unsigned : 1;
12700 unsigned OUT : 1;
12701 unsigned ON : 1;
12704 struct
12706 unsigned C1SYNC : 1;
12707 unsigned C1HYS : 1;
12708 unsigned C1SP : 1;
12709 unsigned : 1;
12710 unsigned C1POL : 1;
12711 unsigned : 1;
12712 unsigned C1OUT : 1;
12713 unsigned C1ON : 1;
12715 } __CM1CON0bits_t;
12717 extern __at(0x0990) volatile __CM1CON0bits_t CM1CON0bits;
12719 #define _CM1CON0_SYNC 0x01
12720 #define _CM1CON0_C1SYNC 0x01
12721 #define _CM1CON0_HYS 0x02
12722 #define _CM1CON0_C1HYS 0x02
12723 #define _CM1CON0_Reserved 0x04
12724 #define _CM1CON0_C1SP 0x04
12725 #define _CM1CON0_POL 0x10
12726 #define _CM1CON0_C1POL 0x10
12727 #define _CM1CON0_OUT 0x40
12728 #define _CM1CON0_C1OUT 0x40
12729 #define _CM1CON0_ON 0x80
12730 #define _CM1CON0_C1ON 0x80
12732 //==============================================================================
12735 //==============================================================================
12736 // CM1CON1 Bits
12738 extern __at(0x0991) __sfr CM1CON1;
12740 typedef union
12742 struct
12744 unsigned INTN : 1;
12745 unsigned INTP : 1;
12746 unsigned : 1;
12747 unsigned : 1;
12748 unsigned : 1;
12749 unsigned : 1;
12750 unsigned : 1;
12751 unsigned : 1;
12754 struct
12756 unsigned C1INTN : 1;
12757 unsigned C1INTP : 1;
12758 unsigned : 1;
12759 unsigned : 1;
12760 unsigned : 1;
12761 unsigned : 1;
12762 unsigned : 1;
12763 unsigned : 1;
12765 } __CM1CON1bits_t;
12767 extern __at(0x0991) volatile __CM1CON1bits_t CM1CON1bits;
12769 #define _CM1CON1_INTN 0x01
12770 #define _CM1CON1_C1INTN 0x01
12771 #define _CM1CON1_INTP 0x02
12772 #define _CM1CON1_C1INTP 0x02
12774 //==============================================================================
12777 //==============================================================================
12778 // CM1NSEL Bits
12780 extern __at(0x0992) __sfr CM1NSEL;
12782 typedef union
12784 struct
12786 unsigned NCH0 : 1;
12787 unsigned NCH1 : 1;
12788 unsigned NCH2 : 1;
12789 unsigned : 1;
12790 unsigned : 1;
12791 unsigned : 1;
12792 unsigned : 1;
12793 unsigned : 1;
12796 struct
12798 unsigned C1NCH0 : 1;
12799 unsigned C1NCH1 : 1;
12800 unsigned C1NCH2 : 1;
12801 unsigned : 1;
12802 unsigned : 1;
12803 unsigned : 1;
12804 unsigned : 1;
12805 unsigned : 1;
12808 struct
12810 unsigned NCH : 3;
12811 unsigned : 5;
12814 struct
12816 unsigned C1NCH : 3;
12817 unsigned : 5;
12819 } __CM1NSELbits_t;
12821 extern __at(0x0992) volatile __CM1NSELbits_t CM1NSELbits;
12823 #define _NCH0 0x01
12824 #define _C1NCH0 0x01
12825 #define _NCH1 0x02
12826 #define _C1NCH1 0x02
12827 #define _NCH2 0x04
12828 #define _C1NCH2 0x04
12830 //==============================================================================
12833 //==============================================================================
12834 // CM1PSEL Bits
12836 extern __at(0x0993) __sfr CM1PSEL;
12838 typedef union
12840 struct
12842 unsigned PCH0 : 1;
12843 unsigned PCH1 : 1;
12844 unsigned PCH2 : 1;
12845 unsigned : 1;
12846 unsigned : 1;
12847 unsigned : 1;
12848 unsigned : 1;
12849 unsigned : 1;
12852 struct
12854 unsigned C1PCH0 : 1;
12855 unsigned C1PCH1 : 1;
12856 unsigned C1PCH2 : 1;
12857 unsigned : 1;
12858 unsigned : 1;
12859 unsigned : 1;
12860 unsigned : 1;
12861 unsigned : 1;
12864 struct
12866 unsigned C1PCH : 3;
12867 unsigned : 5;
12870 struct
12872 unsigned PCH : 3;
12873 unsigned : 5;
12875 } __CM1PSELbits_t;
12877 extern __at(0x0993) volatile __CM1PSELbits_t CM1PSELbits;
12879 #define _PCH0 0x01
12880 #define _C1PCH0 0x01
12881 #define _PCH1 0x02
12882 #define _C1PCH1 0x02
12883 #define _PCH2 0x04
12884 #define _C1PCH2 0x04
12886 //==============================================================================
12889 //==============================================================================
12890 // CM2CON0 Bits
12892 extern __at(0x0994) __sfr CM2CON0;
12894 typedef union
12896 struct
12898 unsigned SYNC : 1;
12899 unsigned HYS : 1;
12900 unsigned Reserved : 1;
12901 unsigned : 1;
12902 unsigned POL : 1;
12903 unsigned : 1;
12904 unsigned OUT : 1;
12905 unsigned ON : 1;
12908 struct
12910 unsigned C2SYNC : 1;
12911 unsigned C2HYS : 1;
12912 unsigned C2SP : 1;
12913 unsigned : 1;
12914 unsigned C2POL : 1;
12915 unsigned : 1;
12916 unsigned C2OUT : 1;
12917 unsigned C2ON : 1;
12919 } __CM2CON0bits_t;
12921 extern __at(0x0994) volatile __CM2CON0bits_t CM2CON0bits;
12923 #define _CM2CON0_SYNC 0x01
12924 #define _CM2CON0_C2SYNC 0x01
12925 #define _CM2CON0_HYS 0x02
12926 #define _CM2CON0_C2HYS 0x02
12927 #define _CM2CON0_Reserved 0x04
12928 #define _CM2CON0_C2SP 0x04
12929 #define _CM2CON0_POL 0x10
12930 #define _CM2CON0_C2POL 0x10
12931 #define _CM2CON0_OUT 0x40
12932 #define _CM2CON0_C2OUT 0x40
12933 #define _CM2CON0_ON 0x80
12934 #define _CM2CON0_C2ON 0x80
12936 //==============================================================================
12939 //==============================================================================
12940 // CM2CON1 Bits
12942 extern __at(0x0995) __sfr CM2CON1;
12944 typedef union
12946 struct
12948 unsigned INTN : 1;
12949 unsigned INTP : 1;
12950 unsigned : 1;
12951 unsigned : 1;
12952 unsigned : 1;
12953 unsigned : 1;
12954 unsigned : 1;
12955 unsigned : 1;
12958 struct
12960 unsigned C2INTN : 1;
12961 unsigned C2INTP : 1;
12962 unsigned : 1;
12963 unsigned : 1;
12964 unsigned : 1;
12965 unsigned : 1;
12966 unsigned : 1;
12967 unsigned : 1;
12969 } __CM2CON1bits_t;
12971 extern __at(0x0995) volatile __CM2CON1bits_t CM2CON1bits;
12973 #define _CM2CON1_INTN 0x01
12974 #define _CM2CON1_C2INTN 0x01
12975 #define _CM2CON1_INTP 0x02
12976 #define _CM2CON1_C2INTP 0x02
12978 //==============================================================================
12981 //==============================================================================
12982 // CM2NSEL Bits
12984 extern __at(0x0996) __sfr CM2NSEL;
12986 typedef union
12988 struct
12990 unsigned NCH0 : 1;
12991 unsigned NCH1 : 1;
12992 unsigned NCH2 : 1;
12993 unsigned : 1;
12994 unsigned : 1;
12995 unsigned : 1;
12996 unsigned : 1;
12997 unsigned : 1;
13000 struct
13002 unsigned C2NCH0 : 1;
13003 unsigned C2NCH1 : 1;
13004 unsigned C2NCH2 : 1;
13005 unsigned : 1;
13006 unsigned : 1;
13007 unsigned : 1;
13008 unsigned : 1;
13009 unsigned : 1;
13012 struct
13014 unsigned C2NCH : 3;
13015 unsigned : 5;
13018 struct
13020 unsigned NCH : 3;
13021 unsigned : 5;
13023 } __CM2NSELbits_t;
13025 extern __at(0x0996) volatile __CM2NSELbits_t CM2NSELbits;
13027 #define _CM2NSEL_NCH0 0x01
13028 #define _CM2NSEL_C2NCH0 0x01
13029 #define _CM2NSEL_NCH1 0x02
13030 #define _CM2NSEL_C2NCH1 0x02
13031 #define _CM2NSEL_NCH2 0x04
13032 #define _CM2NSEL_C2NCH2 0x04
13034 //==============================================================================
13037 //==============================================================================
13038 // CM2PSEL Bits
13040 extern __at(0x0997) __sfr CM2PSEL;
13042 typedef union
13044 struct
13046 unsigned PCH0 : 1;
13047 unsigned PCH1 : 1;
13048 unsigned PCH2 : 1;
13049 unsigned : 1;
13050 unsigned : 1;
13051 unsigned : 1;
13052 unsigned : 1;
13053 unsigned : 1;
13056 struct
13058 unsigned C2PCH0 : 1;
13059 unsigned C2PCH1 : 1;
13060 unsigned C2PCH2 : 1;
13061 unsigned : 1;
13062 unsigned : 1;
13063 unsigned : 1;
13064 unsigned : 1;
13065 unsigned : 1;
13068 struct
13070 unsigned PCH : 3;
13071 unsigned : 5;
13074 struct
13076 unsigned C2PCH : 3;
13077 unsigned : 5;
13079 } __CM2PSELbits_t;
13081 extern __at(0x0997) volatile __CM2PSELbits_t CM2PSELbits;
13083 #define _CM2PSEL_PCH0 0x01
13084 #define _CM2PSEL_C2PCH0 0x01
13085 #define _CM2PSEL_PCH1 0x02
13086 #define _CM2PSEL_C2PCH1 0x02
13087 #define _CM2PSEL_PCH2 0x04
13088 #define _CM2PSEL_C2PCH2 0x04
13090 //==============================================================================
13093 //==============================================================================
13094 // CLCDATA Bits
13096 extern __at(0x0E0F) __sfr CLCDATA;
13098 typedef struct
13100 unsigned MLC1OUT : 1;
13101 unsigned MLC2OUT : 1;
13102 unsigned MLC3OUT : 1;
13103 unsigned MLC4OUT : 1;
13104 unsigned : 1;
13105 unsigned : 1;
13106 unsigned : 1;
13107 unsigned : 1;
13108 } __CLCDATAbits_t;
13110 extern __at(0x0E0F) volatile __CLCDATAbits_t CLCDATAbits;
13112 #define _MLC1OUT 0x01
13113 #define _MLC2OUT 0x02
13114 #define _MLC3OUT 0x04
13115 #define _MLC4OUT 0x08
13117 //==============================================================================
13120 //==============================================================================
13121 // CLC1CON Bits
13123 extern __at(0x0E10) __sfr CLC1CON;
13125 typedef union
13127 struct
13129 unsigned LC1MODE0 : 1;
13130 unsigned LC1MODE1 : 1;
13131 unsigned LC1MODE2 : 1;
13132 unsigned LC1INTN : 1;
13133 unsigned LC1INTP : 1;
13134 unsigned LC1OUT : 1;
13135 unsigned : 1;
13136 unsigned LC1EN : 1;
13139 struct
13141 unsigned MODE0 : 1;
13142 unsigned MODE1 : 1;
13143 unsigned MODE2 : 1;
13144 unsigned INTN : 1;
13145 unsigned INTP : 1;
13146 unsigned OUT : 1;
13147 unsigned : 1;
13148 unsigned EN : 1;
13151 struct
13153 unsigned MODE : 3;
13154 unsigned : 5;
13157 struct
13159 unsigned LC1MODE : 3;
13160 unsigned : 5;
13162 } __CLC1CONbits_t;
13164 extern __at(0x0E10) volatile __CLC1CONbits_t CLC1CONbits;
13166 #define _CLC1CON_LC1MODE0 0x01
13167 #define _CLC1CON_MODE0 0x01
13168 #define _CLC1CON_LC1MODE1 0x02
13169 #define _CLC1CON_MODE1 0x02
13170 #define _CLC1CON_LC1MODE2 0x04
13171 #define _CLC1CON_MODE2 0x04
13172 #define _CLC1CON_LC1INTN 0x08
13173 #define _CLC1CON_INTN 0x08
13174 #define _CLC1CON_LC1INTP 0x10
13175 #define _CLC1CON_INTP 0x10
13176 #define _CLC1CON_LC1OUT 0x20
13177 #define _CLC1CON_OUT 0x20
13178 #define _CLC1CON_LC1EN 0x80
13179 #define _CLC1CON_EN 0x80
13181 //==============================================================================
13184 //==============================================================================
13185 // CLC1POL Bits
13187 extern __at(0x0E11) __sfr CLC1POL;
13189 typedef union
13191 struct
13193 unsigned LC1G1POL : 1;
13194 unsigned LC1G2POL : 1;
13195 unsigned LC1G3POL : 1;
13196 unsigned LC1G4POL : 1;
13197 unsigned : 1;
13198 unsigned : 1;
13199 unsigned : 1;
13200 unsigned LC1POL : 1;
13203 struct
13205 unsigned G1POL : 1;
13206 unsigned G2POL : 1;
13207 unsigned G3POL : 1;
13208 unsigned G4POL : 1;
13209 unsigned : 1;
13210 unsigned : 1;
13211 unsigned : 1;
13212 unsigned POL : 1;
13214 } __CLC1POLbits_t;
13216 extern __at(0x0E11) volatile __CLC1POLbits_t CLC1POLbits;
13218 #define _LC1G1POL 0x01
13219 #define _G1POL 0x01
13220 #define _LC1G2POL 0x02
13221 #define _G2POL 0x02
13222 #define _LC1G3POL 0x04
13223 #define _G3POL 0x04
13224 #define _LC1G4POL 0x08
13225 #define _G4POL 0x08
13226 #define _LC1POL 0x80
13227 #define _POL 0x80
13229 //==============================================================================
13232 //==============================================================================
13233 // CLC1SEL0 Bits
13235 extern __at(0x0E12) __sfr CLC1SEL0;
13237 typedef union
13239 struct
13241 unsigned LC1D1S0 : 1;
13242 unsigned LC1D1S1 : 1;
13243 unsigned LC1D1S2 : 1;
13244 unsigned LC1D1S3 : 1;
13245 unsigned LC1D1S4 : 1;
13246 unsigned LC1D1S5 : 1;
13247 unsigned LC1D1S6 : 1;
13248 unsigned LC1D1S7 : 1;
13251 struct
13253 unsigned D1S0 : 1;
13254 unsigned D1S1 : 1;
13255 unsigned D1S2 : 1;
13256 unsigned D1S3 : 1;
13257 unsigned D1S4 : 1;
13258 unsigned D1S5 : 1;
13259 unsigned D1S6 : 1;
13260 unsigned D1S7 : 1;
13262 } __CLC1SEL0bits_t;
13264 extern __at(0x0E12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
13266 #define _LC1D1S0 0x01
13267 #define _D1S0 0x01
13268 #define _LC1D1S1 0x02
13269 #define _D1S1 0x02
13270 #define _LC1D1S2 0x04
13271 #define _D1S2 0x04
13272 #define _LC1D1S3 0x08
13273 #define _D1S3 0x08
13274 #define _LC1D1S4 0x10
13275 #define _D1S4 0x10
13276 #define _LC1D1S5 0x20
13277 #define _D1S5 0x20
13278 #define _LC1D1S6 0x40
13279 #define _D1S6 0x40
13280 #define _LC1D1S7 0x80
13281 #define _D1S7 0x80
13283 //==============================================================================
13286 //==============================================================================
13287 // CLC1SEL1 Bits
13289 extern __at(0x0E13) __sfr CLC1SEL1;
13291 typedef union
13293 struct
13295 unsigned LC1D2S0 : 1;
13296 unsigned LC1D2S1 : 1;
13297 unsigned LC1D2S2 : 1;
13298 unsigned LC1D2S3 : 1;
13299 unsigned LC1D2S4 : 1;
13300 unsigned LC1D2S5 : 1;
13301 unsigned LC1D2S6 : 1;
13302 unsigned LC1D2S7 : 1;
13305 struct
13307 unsigned D2S0 : 1;
13308 unsigned D2S1 : 1;
13309 unsigned D2S2 : 1;
13310 unsigned D2S3 : 1;
13311 unsigned D2S4 : 1;
13312 unsigned D2S5 : 1;
13313 unsigned D2S6 : 1;
13314 unsigned D2S7 : 1;
13316 } __CLC1SEL1bits_t;
13318 extern __at(0x0E13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
13320 #define _LC1D2S0 0x01
13321 #define _D2S0 0x01
13322 #define _LC1D2S1 0x02
13323 #define _D2S1 0x02
13324 #define _LC1D2S2 0x04
13325 #define _D2S2 0x04
13326 #define _LC1D2S3 0x08
13327 #define _D2S3 0x08
13328 #define _LC1D2S4 0x10
13329 #define _D2S4 0x10
13330 #define _LC1D2S5 0x20
13331 #define _D2S5 0x20
13332 #define _LC1D2S6 0x40
13333 #define _D2S6 0x40
13334 #define _LC1D2S7 0x80
13335 #define _D2S7 0x80
13337 //==============================================================================
13340 //==============================================================================
13341 // CLC1SEL2 Bits
13343 extern __at(0x0E14) __sfr CLC1SEL2;
13345 typedef union
13347 struct
13349 unsigned LC1D3S0 : 1;
13350 unsigned LC1D3S1 : 1;
13351 unsigned LC1D3S2 : 1;
13352 unsigned LC1D3S3 : 1;
13353 unsigned LC1D3S4 : 1;
13354 unsigned LC1D3S5 : 1;
13355 unsigned LC1D3S6 : 1;
13356 unsigned LC1D3S7 : 1;
13359 struct
13361 unsigned D3S0 : 1;
13362 unsigned D3S1 : 1;
13363 unsigned D3S2 : 1;
13364 unsigned D3S3 : 1;
13365 unsigned D3S4 : 1;
13366 unsigned D3S5 : 1;
13367 unsigned D3S6 : 1;
13368 unsigned D3S7 : 1;
13370 } __CLC1SEL2bits_t;
13372 extern __at(0x0E14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
13374 #define _LC1D3S0 0x01
13375 #define _D3S0 0x01
13376 #define _LC1D3S1 0x02
13377 #define _D3S1 0x02
13378 #define _LC1D3S2 0x04
13379 #define _D3S2 0x04
13380 #define _LC1D3S3 0x08
13381 #define _D3S3 0x08
13382 #define _LC1D3S4 0x10
13383 #define _D3S4 0x10
13384 #define _LC1D3S5 0x20
13385 #define _D3S5 0x20
13386 #define _LC1D3S6 0x40
13387 #define _D3S6 0x40
13388 #define _LC1D3S7 0x80
13389 #define _D3S7 0x80
13391 //==============================================================================
13394 //==============================================================================
13395 // CLC1SEL3 Bits
13397 extern __at(0x0E15) __sfr CLC1SEL3;
13399 typedef union
13401 struct
13403 unsigned LC1D4S0 : 1;
13404 unsigned LC1D4S1 : 1;
13405 unsigned LC1D4S2 : 1;
13406 unsigned LC1D4S3 : 1;
13407 unsigned LC1D4S4 : 1;
13408 unsigned LC1D4S5 : 1;
13409 unsigned LC1D4S6 : 1;
13410 unsigned LC1D4S7 : 1;
13413 struct
13415 unsigned D4S0 : 1;
13416 unsigned D4S1 : 1;
13417 unsigned D4S2 : 1;
13418 unsigned D4S3 : 1;
13419 unsigned D4S4 : 1;
13420 unsigned D4S5 : 1;
13421 unsigned D4S6 : 1;
13422 unsigned D4S7 : 1;
13424 } __CLC1SEL3bits_t;
13426 extern __at(0x0E15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
13428 #define _LC1D4S0 0x01
13429 #define _D4S0 0x01
13430 #define _LC1D4S1 0x02
13431 #define _D4S1 0x02
13432 #define _LC1D4S2 0x04
13433 #define _D4S2 0x04
13434 #define _LC1D4S3 0x08
13435 #define _D4S3 0x08
13436 #define _LC1D4S4 0x10
13437 #define _D4S4 0x10
13438 #define _LC1D4S5 0x20
13439 #define _D4S5 0x20
13440 #define _LC1D4S6 0x40
13441 #define _D4S6 0x40
13442 #define _LC1D4S7 0x80
13443 #define _D4S7 0x80
13445 //==============================================================================
13448 //==============================================================================
13449 // CLC1GLS0 Bits
13451 extern __at(0x0E16) __sfr CLC1GLS0;
13453 typedef union
13455 struct
13457 unsigned LC1G1D1N : 1;
13458 unsigned LC1G1D1T : 1;
13459 unsigned LC1G1D2N : 1;
13460 unsigned LC1G1D2T : 1;
13461 unsigned LC1G1D3N : 1;
13462 unsigned LC1G1D3T : 1;
13463 unsigned LC1G1D4N : 1;
13464 unsigned LC1G1D4T : 1;
13467 struct
13469 unsigned D1N : 1;
13470 unsigned D1T : 1;
13471 unsigned D2N : 1;
13472 unsigned D2T : 1;
13473 unsigned D3N : 1;
13474 unsigned D3T : 1;
13475 unsigned D4N : 1;
13476 unsigned D4T : 1;
13478 } __CLC1GLS0bits_t;
13480 extern __at(0x0E16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
13482 #define _LC1G1D1N 0x01
13483 #define _D1N 0x01
13484 #define _LC1G1D1T 0x02
13485 #define _D1T 0x02
13486 #define _LC1G1D2N 0x04
13487 #define _D2N 0x04
13488 #define _LC1G1D2T 0x08
13489 #define _D2T 0x08
13490 #define _LC1G1D3N 0x10
13491 #define _D3N 0x10
13492 #define _LC1G1D3T 0x20
13493 #define _D3T 0x20
13494 #define _LC1G1D4N 0x40
13495 #define _D4N 0x40
13496 #define _LC1G1D4T 0x80
13497 #define _D4T 0x80
13499 //==============================================================================
13502 //==============================================================================
13503 // CLC1GLS1 Bits
13505 extern __at(0x0E17) __sfr CLC1GLS1;
13507 typedef union
13509 struct
13511 unsigned LC1G2D1N : 1;
13512 unsigned LC1G2D1T : 1;
13513 unsigned LC1G2D2N : 1;
13514 unsigned LC1G2D2T : 1;
13515 unsigned LC1G2D3N : 1;
13516 unsigned LC1G2D3T : 1;
13517 unsigned LC1G2D4N : 1;
13518 unsigned LC1G2D4T : 1;
13521 struct
13523 unsigned D1N : 1;
13524 unsigned D1T : 1;
13525 unsigned D2N : 1;
13526 unsigned D2T : 1;
13527 unsigned D3N : 1;
13528 unsigned D3T : 1;
13529 unsigned D4N : 1;
13530 unsigned D4T : 1;
13532 } __CLC1GLS1bits_t;
13534 extern __at(0x0E17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
13536 #define _CLC1GLS1_LC1G2D1N 0x01
13537 #define _CLC1GLS1_D1N 0x01
13538 #define _CLC1GLS1_LC1G2D1T 0x02
13539 #define _CLC1GLS1_D1T 0x02
13540 #define _CLC1GLS1_LC1G2D2N 0x04
13541 #define _CLC1GLS1_D2N 0x04
13542 #define _CLC1GLS1_LC1G2D2T 0x08
13543 #define _CLC1GLS1_D2T 0x08
13544 #define _CLC1GLS1_LC1G2D3N 0x10
13545 #define _CLC1GLS1_D3N 0x10
13546 #define _CLC1GLS1_LC1G2D3T 0x20
13547 #define _CLC1GLS1_D3T 0x20
13548 #define _CLC1GLS1_LC1G2D4N 0x40
13549 #define _CLC1GLS1_D4N 0x40
13550 #define _CLC1GLS1_LC1G2D4T 0x80
13551 #define _CLC1GLS1_D4T 0x80
13553 //==============================================================================
13556 //==============================================================================
13557 // CLC1GLS2 Bits
13559 extern __at(0x0E18) __sfr CLC1GLS2;
13561 typedef union
13563 struct
13565 unsigned LC1G3D1N : 1;
13566 unsigned LC1G3D1T : 1;
13567 unsigned LC1G3D2N : 1;
13568 unsigned LC1G3D2T : 1;
13569 unsigned LC1G3D3N : 1;
13570 unsigned LC1G3D3T : 1;
13571 unsigned LC1G3D4N : 1;
13572 unsigned LC1G3D4T : 1;
13575 struct
13577 unsigned D1N : 1;
13578 unsigned D1T : 1;
13579 unsigned D2N : 1;
13580 unsigned D2T : 1;
13581 unsigned D3N : 1;
13582 unsigned D3T : 1;
13583 unsigned D4N : 1;
13584 unsigned D4T : 1;
13586 } __CLC1GLS2bits_t;
13588 extern __at(0x0E18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
13590 #define _CLC1GLS2_LC1G3D1N 0x01
13591 #define _CLC1GLS2_D1N 0x01
13592 #define _CLC1GLS2_LC1G3D1T 0x02
13593 #define _CLC1GLS2_D1T 0x02
13594 #define _CLC1GLS2_LC1G3D2N 0x04
13595 #define _CLC1GLS2_D2N 0x04
13596 #define _CLC1GLS2_LC1G3D2T 0x08
13597 #define _CLC1GLS2_D2T 0x08
13598 #define _CLC1GLS2_LC1G3D3N 0x10
13599 #define _CLC1GLS2_D3N 0x10
13600 #define _CLC1GLS2_LC1G3D3T 0x20
13601 #define _CLC1GLS2_D3T 0x20
13602 #define _CLC1GLS2_LC1G3D4N 0x40
13603 #define _CLC1GLS2_D4N 0x40
13604 #define _CLC1GLS2_LC1G3D4T 0x80
13605 #define _CLC1GLS2_D4T 0x80
13607 //==============================================================================
13610 //==============================================================================
13611 // CLC1GLS3 Bits
13613 extern __at(0x0E19) __sfr CLC1GLS3;
13615 typedef union
13617 struct
13619 unsigned LC1G4D1N : 1;
13620 unsigned LC1G4D1T : 1;
13621 unsigned LC1G4D2N : 1;
13622 unsigned LC1G4D2T : 1;
13623 unsigned LC1G4D3N : 1;
13624 unsigned LC1G4D3T : 1;
13625 unsigned LC1G4D4N : 1;
13626 unsigned LC1G4D4T : 1;
13629 struct
13631 unsigned G4D1N : 1;
13632 unsigned G4D1T : 1;
13633 unsigned G4D2N : 1;
13634 unsigned G4D2T : 1;
13635 unsigned G4D3N : 1;
13636 unsigned G4D3T : 1;
13637 unsigned G4D4N : 1;
13638 unsigned G4D4T : 1;
13640 } __CLC1GLS3bits_t;
13642 extern __at(0x0E19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
13644 #define _LC1G4D1N 0x01
13645 #define _G4D1N 0x01
13646 #define _LC1G4D1T 0x02
13647 #define _G4D1T 0x02
13648 #define _LC1G4D2N 0x04
13649 #define _G4D2N 0x04
13650 #define _LC1G4D2T 0x08
13651 #define _G4D2T 0x08
13652 #define _LC1G4D3N 0x10
13653 #define _G4D3N 0x10
13654 #define _LC1G4D3T 0x20
13655 #define _G4D3T 0x20
13656 #define _LC1G4D4N 0x40
13657 #define _G4D4N 0x40
13658 #define _LC1G4D4T 0x80
13659 #define _G4D4T 0x80
13661 //==============================================================================
13664 //==============================================================================
13665 // CLC2CON Bits
13667 extern __at(0x0E1A) __sfr CLC2CON;
13669 typedef union
13671 struct
13673 unsigned LC2MODE0 : 1;
13674 unsigned LC2MODE1 : 1;
13675 unsigned LC2MODE2 : 1;
13676 unsigned LC2INTN : 1;
13677 unsigned LC2INTP : 1;
13678 unsigned LC2OUT : 1;
13679 unsigned : 1;
13680 unsigned LC2EN : 1;
13683 struct
13685 unsigned MODE0 : 1;
13686 unsigned MODE1 : 1;
13687 unsigned MODE2 : 1;
13688 unsigned INTN : 1;
13689 unsigned INTP : 1;
13690 unsigned OUT : 1;
13691 unsigned : 1;
13692 unsigned EN : 1;
13695 struct
13697 unsigned MODE : 3;
13698 unsigned : 5;
13701 struct
13703 unsigned LC2MODE : 3;
13704 unsigned : 5;
13706 } __CLC2CONbits_t;
13708 extern __at(0x0E1A) volatile __CLC2CONbits_t CLC2CONbits;
13710 #define _CLC2CON_LC2MODE0 0x01
13711 #define _CLC2CON_MODE0 0x01
13712 #define _CLC2CON_LC2MODE1 0x02
13713 #define _CLC2CON_MODE1 0x02
13714 #define _CLC2CON_LC2MODE2 0x04
13715 #define _CLC2CON_MODE2 0x04
13716 #define _CLC2CON_LC2INTN 0x08
13717 #define _CLC2CON_INTN 0x08
13718 #define _CLC2CON_LC2INTP 0x10
13719 #define _CLC2CON_INTP 0x10
13720 #define _CLC2CON_LC2OUT 0x20
13721 #define _CLC2CON_OUT 0x20
13722 #define _CLC2CON_LC2EN 0x80
13723 #define _CLC2CON_EN 0x80
13725 //==============================================================================
13728 //==============================================================================
13729 // CLC2POL Bits
13731 extern __at(0x0E1B) __sfr CLC2POL;
13733 typedef union
13735 struct
13737 unsigned LC2G1POL : 1;
13738 unsigned LC2G2POL : 1;
13739 unsigned LC2G3POL : 1;
13740 unsigned LC2G4POL : 1;
13741 unsigned : 1;
13742 unsigned : 1;
13743 unsigned : 1;
13744 unsigned LC2POL : 1;
13747 struct
13749 unsigned G1POL : 1;
13750 unsigned G2POL : 1;
13751 unsigned G3POL : 1;
13752 unsigned G4POL : 1;
13753 unsigned : 1;
13754 unsigned : 1;
13755 unsigned : 1;
13756 unsigned POL : 1;
13758 } __CLC2POLbits_t;
13760 extern __at(0x0E1B) volatile __CLC2POLbits_t CLC2POLbits;
13762 #define _CLC2POL_LC2G1POL 0x01
13763 #define _CLC2POL_G1POL 0x01
13764 #define _CLC2POL_LC2G2POL 0x02
13765 #define _CLC2POL_G2POL 0x02
13766 #define _CLC2POL_LC2G3POL 0x04
13767 #define _CLC2POL_G3POL 0x04
13768 #define _CLC2POL_LC2G4POL 0x08
13769 #define _CLC2POL_G4POL 0x08
13770 #define _CLC2POL_LC2POL 0x80
13771 #define _CLC2POL_POL 0x80
13773 //==============================================================================
13776 //==============================================================================
13777 // CLC2SEL0 Bits
13779 extern __at(0x0E1C) __sfr CLC2SEL0;
13781 typedef union
13783 struct
13785 unsigned LC2D1S0 : 1;
13786 unsigned LC2D1S1 : 1;
13787 unsigned LC2D1S2 : 1;
13788 unsigned LC2D1S3 : 1;
13789 unsigned LC2D1S4 : 1;
13790 unsigned LC2D1S5 : 1;
13791 unsigned LC2D1S6 : 1;
13792 unsigned LC2D1S7 : 1;
13795 struct
13797 unsigned D1S0 : 1;
13798 unsigned D1S1 : 1;
13799 unsigned D1S2 : 1;
13800 unsigned D1S3 : 1;
13801 unsigned D1S4 : 1;
13802 unsigned D1S5 : 1;
13803 unsigned D1S6 : 1;
13804 unsigned D1S7 : 1;
13806 } __CLC2SEL0bits_t;
13808 extern __at(0x0E1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
13810 #define _CLC2SEL0_LC2D1S0 0x01
13811 #define _CLC2SEL0_D1S0 0x01
13812 #define _CLC2SEL0_LC2D1S1 0x02
13813 #define _CLC2SEL0_D1S1 0x02
13814 #define _CLC2SEL0_LC2D1S2 0x04
13815 #define _CLC2SEL0_D1S2 0x04
13816 #define _CLC2SEL0_LC2D1S3 0x08
13817 #define _CLC2SEL0_D1S3 0x08
13818 #define _CLC2SEL0_LC2D1S4 0x10
13819 #define _CLC2SEL0_D1S4 0x10
13820 #define _CLC2SEL0_LC2D1S5 0x20
13821 #define _CLC2SEL0_D1S5 0x20
13822 #define _CLC2SEL0_LC2D1S6 0x40
13823 #define _CLC2SEL0_D1S6 0x40
13824 #define _CLC2SEL0_LC2D1S7 0x80
13825 #define _CLC2SEL0_D1S7 0x80
13827 //==============================================================================
13830 //==============================================================================
13831 // CLC2SEL1 Bits
13833 extern __at(0x0E1D) __sfr CLC2SEL1;
13835 typedef union
13837 struct
13839 unsigned LC2D2S0 : 1;
13840 unsigned LC2D2S1 : 1;
13841 unsigned LC2D2S2 : 1;
13842 unsigned LC2D2S3 : 1;
13843 unsigned LC2D2S4 : 1;
13844 unsigned LC2D2S5 : 1;
13845 unsigned LC2D2S6 : 1;
13846 unsigned LC2D2S7 : 1;
13849 struct
13851 unsigned D2S0 : 1;
13852 unsigned D2S1 : 1;
13853 unsigned D2S2 : 1;
13854 unsigned D2S3 : 1;
13855 unsigned D2S4 : 1;
13856 unsigned D2S5 : 1;
13857 unsigned D2S6 : 1;
13858 unsigned D2S7 : 1;
13860 } __CLC2SEL1bits_t;
13862 extern __at(0x0E1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
13864 #define _CLC2SEL1_LC2D2S0 0x01
13865 #define _CLC2SEL1_D2S0 0x01
13866 #define _CLC2SEL1_LC2D2S1 0x02
13867 #define _CLC2SEL1_D2S1 0x02
13868 #define _CLC2SEL1_LC2D2S2 0x04
13869 #define _CLC2SEL1_D2S2 0x04
13870 #define _CLC2SEL1_LC2D2S3 0x08
13871 #define _CLC2SEL1_D2S3 0x08
13872 #define _CLC2SEL1_LC2D2S4 0x10
13873 #define _CLC2SEL1_D2S4 0x10
13874 #define _CLC2SEL1_LC2D2S5 0x20
13875 #define _CLC2SEL1_D2S5 0x20
13876 #define _CLC2SEL1_LC2D2S6 0x40
13877 #define _CLC2SEL1_D2S6 0x40
13878 #define _CLC2SEL1_LC2D2S7 0x80
13879 #define _CLC2SEL1_D2S7 0x80
13881 //==============================================================================
13884 //==============================================================================
13885 // CLC2SEL2 Bits
13887 extern __at(0x0E1E) __sfr CLC2SEL2;
13889 typedef union
13891 struct
13893 unsigned LC2D3S0 : 1;
13894 unsigned LC2D3S1 : 1;
13895 unsigned LC2D3S2 : 1;
13896 unsigned LC2D3S3 : 1;
13897 unsigned LC2D3S4 : 1;
13898 unsigned LC2D3S5 : 1;
13899 unsigned LC2D3S6 : 1;
13900 unsigned LC2D3S7 : 1;
13903 struct
13905 unsigned D3S0 : 1;
13906 unsigned D3S1 : 1;
13907 unsigned D3S2 : 1;
13908 unsigned D3S3 : 1;
13909 unsigned D3S4 : 1;
13910 unsigned D3S5 : 1;
13911 unsigned D3S6 : 1;
13912 unsigned D3S7 : 1;
13914 } __CLC2SEL2bits_t;
13916 extern __at(0x0E1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
13918 #define _CLC2SEL2_LC2D3S0 0x01
13919 #define _CLC2SEL2_D3S0 0x01
13920 #define _CLC2SEL2_LC2D3S1 0x02
13921 #define _CLC2SEL2_D3S1 0x02
13922 #define _CLC2SEL2_LC2D3S2 0x04
13923 #define _CLC2SEL2_D3S2 0x04
13924 #define _CLC2SEL2_LC2D3S3 0x08
13925 #define _CLC2SEL2_D3S3 0x08
13926 #define _CLC2SEL2_LC2D3S4 0x10
13927 #define _CLC2SEL2_D3S4 0x10
13928 #define _CLC2SEL2_LC2D3S5 0x20
13929 #define _CLC2SEL2_D3S5 0x20
13930 #define _CLC2SEL2_LC2D3S6 0x40
13931 #define _CLC2SEL2_D3S6 0x40
13932 #define _CLC2SEL2_LC2D3S7 0x80
13933 #define _CLC2SEL2_D3S7 0x80
13935 //==============================================================================
13938 //==============================================================================
13939 // CLC2SEL3 Bits
13941 extern __at(0x0E1F) __sfr CLC2SEL3;
13943 typedef union
13945 struct
13947 unsigned LC2D4S0 : 1;
13948 unsigned LC2D4S1 : 1;
13949 unsigned LC2D4S2 : 1;
13950 unsigned LC2D4S3 : 1;
13951 unsigned LC2D4S4 : 1;
13952 unsigned LC2D4S5 : 1;
13953 unsigned LC2D4S6 : 1;
13954 unsigned LC2D4S7 : 1;
13957 struct
13959 unsigned D4S0 : 1;
13960 unsigned D4S1 : 1;
13961 unsigned D4S2 : 1;
13962 unsigned D4S3 : 1;
13963 unsigned D4S4 : 1;
13964 unsigned D4S5 : 1;
13965 unsigned D4S6 : 1;
13966 unsigned D4S7 : 1;
13968 } __CLC2SEL3bits_t;
13970 extern __at(0x0E1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
13972 #define _CLC2SEL3_LC2D4S0 0x01
13973 #define _CLC2SEL3_D4S0 0x01
13974 #define _CLC2SEL3_LC2D4S1 0x02
13975 #define _CLC2SEL3_D4S1 0x02
13976 #define _CLC2SEL3_LC2D4S2 0x04
13977 #define _CLC2SEL3_D4S2 0x04
13978 #define _CLC2SEL3_LC2D4S3 0x08
13979 #define _CLC2SEL3_D4S3 0x08
13980 #define _CLC2SEL3_LC2D4S4 0x10
13981 #define _CLC2SEL3_D4S4 0x10
13982 #define _CLC2SEL3_LC2D4S5 0x20
13983 #define _CLC2SEL3_D4S5 0x20
13984 #define _CLC2SEL3_LC2D4S6 0x40
13985 #define _CLC2SEL3_D4S6 0x40
13986 #define _CLC2SEL3_LC2D4S7 0x80
13987 #define _CLC2SEL3_D4S7 0x80
13989 //==============================================================================
13992 //==============================================================================
13993 // CLC2GLS0 Bits
13995 extern __at(0x0E20) __sfr CLC2GLS0;
13997 typedef union
13999 struct
14001 unsigned LC2G1D1N : 1;
14002 unsigned LC2G1D1T : 1;
14003 unsigned LC2G1D2N : 1;
14004 unsigned LC2G1D2T : 1;
14005 unsigned LC2G1D3N : 1;
14006 unsigned LC2G1D3T : 1;
14007 unsigned LC2G1D4N : 1;
14008 unsigned LC2G1D4T : 1;
14011 struct
14013 unsigned D1N : 1;
14014 unsigned D1T : 1;
14015 unsigned D2N : 1;
14016 unsigned D2T : 1;
14017 unsigned D3N : 1;
14018 unsigned D3T : 1;
14019 unsigned D4N : 1;
14020 unsigned D4T : 1;
14022 } __CLC2GLS0bits_t;
14024 extern __at(0x0E20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
14026 #define _CLC2GLS0_LC2G1D1N 0x01
14027 #define _CLC2GLS0_D1N 0x01
14028 #define _CLC2GLS0_LC2G1D1T 0x02
14029 #define _CLC2GLS0_D1T 0x02
14030 #define _CLC2GLS0_LC2G1D2N 0x04
14031 #define _CLC2GLS0_D2N 0x04
14032 #define _CLC2GLS0_LC2G1D2T 0x08
14033 #define _CLC2GLS0_D2T 0x08
14034 #define _CLC2GLS0_LC2G1D3N 0x10
14035 #define _CLC2GLS0_D3N 0x10
14036 #define _CLC2GLS0_LC2G1D3T 0x20
14037 #define _CLC2GLS0_D3T 0x20
14038 #define _CLC2GLS0_LC2G1D4N 0x40
14039 #define _CLC2GLS0_D4N 0x40
14040 #define _CLC2GLS0_LC2G1D4T 0x80
14041 #define _CLC2GLS0_D4T 0x80
14043 //==============================================================================
14046 //==============================================================================
14047 // CLC2GLS1 Bits
14049 extern __at(0x0E21) __sfr CLC2GLS1;
14051 typedef union
14053 struct
14055 unsigned LC2G2D1N : 1;
14056 unsigned LC2G2D1T : 1;
14057 unsigned LC2G2D2N : 1;
14058 unsigned LC2G2D2T : 1;
14059 unsigned LC2G2D3N : 1;
14060 unsigned LC2G2D3T : 1;
14061 unsigned LC2G2D4N : 1;
14062 unsigned LC2G2D4T : 1;
14065 struct
14067 unsigned D1N : 1;
14068 unsigned D1T : 1;
14069 unsigned D2N : 1;
14070 unsigned D2T : 1;
14071 unsigned D3N : 1;
14072 unsigned D3T : 1;
14073 unsigned D4N : 1;
14074 unsigned D4T : 1;
14076 } __CLC2GLS1bits_t;
14078 extern __at(0x0E21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
14080 #define _CLC2GLS1_LC2G2D1N 0x01
14081 #define _CLC2GLS1_D1N 0x01
14082 #define _CLC2GLS1_LC2G2D1T 0x02
14083 #define _CLC2GLS1_D1T 0x02
14084 #define _CLC2GLS1_LC2G2D2N 0x04
14085 #define _CLC2GLS1_D2N 0x04
14086 #define _CLC2GLS1_LC2G2D2T 0x08
14087 #define _CLC2GLS1_D2T 0x08
14088 #define _CLC2GLS1_LC2G2D3N 0x10
14089 #define _CLC2GLS1_D3N 0x10
14090 #define _CLC2GLS1_LC2G2D3T 0x20
14091 #define _CLC2GLS1_D3T 0x20
14092 #define _CLC2GLS1_LC2G2D4N 0x40
14093 #define _CLC2GLS1_D4N 0x40
14094 #define _CLC2GLS1_LC2G2D4T 0x80
14095 #define _CLC2GLS1_D4T 0x80
14097 //==============================================================================
14100 //==============================================================================
14101 // CLC2GLS2 Bits
14103 extern __at(0x0E22) __sfr CLC2GLS2;
14105 typedef union
14107 struct
14109 unsigned LC2G3D1N : 1;
14110 unsigned LC2G3D1T : 1;
14111 unsigned LC2G3D2N : 1;
14112 unsigned LC2G3D2T : 1;
14113 unsigned LC2G3D3N : 1;
14114 unsigned LC2G3D3T : 1;
14115 unsigned LC2G3D4N : 1;
14116 unsigned LC2G3D4T : 1;
14119 struct
14121 unsigned D1N : 1;
14122 unsigned D1T : 1;
14123 unsigned D2N : 1;
14124 unsigned D2T : 1;
14125 unsigned D3N : 1;
14126 unsigned D3T : 1;
14127 unsigned D4N : 1;
14128 unsigned D4T : 1;
14130 } __CLC2GLS2bits_t;
14132 extern __at(0x0E22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
14134 #define _CLC2GLS2_LC2G3D1N 0x01
14135 #define _CLC2GLS2_D1N 0x01
14136 #define _CLC2GLS2_LC2G3D1T 0x02
14137 #define _CLC2GLS2_D1T 0x02
14138 #define _CLC2GLS2_LC2G3D2N 0x04
14139 #define _CLC2GLS2_D2N 0x04
14140 #define _CLC2GLS2_LC2G3D2T 0x08
14141 #define _CLC2GLS2_D2T 0x08
14142 #define _CLC2GLS2_LC2G3D3N 0x10
14143 #define _CLC2GLS2_D3N 0x10
14144 #define _CLC2GLS2_LC2G3D3T 0x20
14145 #define _CLC2GLS2_D3T 0x20
14146 #define _CLC2GLS2_LC2G3D4N 0x40
14147 #define _CLC2GLS2_D4N 0x40
14148 #define _CLC2GLS2_LC2G3D4T 0x80
14149 #define _CLC2GLS2_D4T 0x80
14151 //==============================================================================
14154 //==============================================================================
14155 // CLC2GLS3 Bits
14157 extern __at(0x0E23) __sfr CLC2GLS3;
14159 typedef union
14161 struct
14163 unsigned LC2G4D1N : 1;
14164 unsigned LC2G4D1T : 1;
14165 unsigned LC2G4D2N : 1;
14166 unsigned LC2G4D2T : 1;
14167 unsigned LC2G4D3N : 1;
14168 unsigned LC2G4D3T : 1;
14169 unsigned LC2G4D4N : 1;
14170 unsigned LC2G4D4T : 1;
14173 struct
14175 unsigned G4D1N : 1;
14176 unsigned G4D1T : 1;
14177 unsigned G4D2N : 1;
14178 unsigned G4D2T : 1;
14179 unsigned G4D3N : 1;
14180 unsigned G4D3T : 1;
14181 unsigned G4D4N : 1;
14182 unsigned G4D4T : 1;
14184 } __CLC2GLS3bits_t;
14186 extern __at(0x0E23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
14188 #define _CLC2GLS3_LC2G4D1N 0x01
14189 #define _CLC2GLS3_G4D1N 0x01
14190 #define _CLC2GLS3_LC2G4D1T 0x02
14191 #define _CLC2GLS3_G4D1T 0x02
14192 #define _CLC2GLS3_LC2G4D2N 0x04
14193 #define _CLC2GLS3_G4D2N 0x04
14194 #define _CLC2GLS3_LC2G4D2T 0x08
14195 #define _CLC2GLS3_G4D2T 0x08
14196 #define _CLC2GLS3_LC2G4D3N 0x10
14197 #define _CLC2GLS3_G4D3N 0x10
14198 #define _CLC2GLS3_LC2G4D3T 0x20
14199 #define _CLC2GLS3_G4D3T 0x20
14200 #define _CLC2GLS3_LC2G4D4N 0x40
14201 #define _CLC2GLS3_G4D4N 0x40
14202 #define _CLC2GLS3_LC2G4D4T 0x80
14203 #define _CLC2GLS3_G4D4T 0x80
14205 //==============================================================================
14208 //==============================================================================
14209 // CLC3CON Bits
14211 extern __at(0x0E24) __sfr CLC3CON;
14213 typedef union
14215 struct
14217 unsigned LC3MODE0 : 1;
14218 unsigned LC3MODE1 : 1;
14219 unsigned LC3MODE2 : 1;
14220 unsigned LC3INTN : 1;
14221 unsigned LC3INTP : 1;
14222 unsigned LC3OUT : 1;
14223 unsigned : 1;
14224 unsigned LC3EN : 1;
14227 struct
14229 unsigned MODE0 : 1;
14230 unsigned MODE1 : 1;
14231 unsigned MODE2 : 1;
14232 unsigned INTN : 1;
14233 unsigned INTP : 1;
14234 unsigned OUT : 1;
14235 unsigned : 1;
14236 unsigned EN : 1;
14239 struct
14241 unsigned LC3MODE : 3;
14242 unsigned : 5;
14245 struct
14247 unsigned MODE : 3;
14248 unsigned : 5;
14250 } __CLC3CONbits_t;
14252 extern __at(0x0E24) volatile __CLC3CONbits_t CLC3CONbits;
14254 #define _CLC3CON_LC3MODE0 0x01
14255 #define _CLC3CON_MODE0 0x01
14256 #define _CLC3CON_LC3MODE1 0x02
14257 #define _CLC3CON_MODE1 0x02
14258 #define _CLC3CON_LC3MODE2 0x04
14259 #define _CLC3CON_MODE2 0x04
14260 #define _CLC3CON_LC3INTN 0x08
14261 #define _CLC3CON_INTN 0x08
14262 #define _CLC3CON_LC3INTP 0x10
14263 #define _CLC3CON_INTP 0x10
14264 #define _CLC3CON_LC3OUT 0x20
14265 #define _CLC3CON_OUT 0x20
14266 #define _CLC3CON_LC3EN 0x80
14267 #define _CLC3CON_EN 0x80
14269 //==============================================================================
14272 //==============================================================================
14273 // CLC3POL Bits
14275 extern __at(0x0E25) __sfr CLC3POL;
14277 typedef union
14279 struct
14281 unsigned LC3G1POL : 1;
14282 unsigned LC3G2POL : 1;
14283 unsigned LC3G3POL : 1;
14284 unsigned LC3G4POL : 1;
14285 unsigned : 1;
14286 unsigned : 1;
14287 unsigned : 1;
14288 unsigned LC3POL : 1;
14291 struct
14293 unsigned G1POL : 1;
14294 unsigned G2POL : 1;
14295 unsigned G3POL : 1;
14296 unsigned G4POL : 1;
14297 unsigned : 1;
14298 unsigned : 1;
14299 unsigned : 1;
14300 unsigned POL : 1;
14302 } __CLC3POLbits_t;
14304 extern __at(0x0E25) volatile __CLC3POLbits_t CLC3POLbits;
14306 #define _CLC3POL_LC3G1POL 0x01
14307 #define _CLC3POL_G1POL 0x01
14308 #define _CLC3POL_LC3G2POL 0x02
14309 #define _CLC3POL_G2POL 0x02
14310 #define _CLC3POL_LC3G3POL 0x04
14311 #define _CLC3POL_G3POL 0x04
14312 #define _CLC3POL_LC3G4POL 0x08
14313 #define _CLC3POL_G4POL 0x08
14314 #define _CLC3POL_LC3POL 0x80
14315 #define _CLC3POL_POL 0x80
14317 //==============================================================================
14320 //==============================================================================
14321 // CLC3SEL0 Bits
14323 extern __at(0x0E26) __sfr CLC3SEL0;
14325 typedef union
14327 struct
14329 unsigned LC3D1S0 : 1;
14330 unsigned LC3D1S1 : 1;
14331 unsigned LC3D1S2 : 1;
14332 unsigned LC3D1S3 : 1;
14333 unsigned LC3D1S4 : 1;
14334 unsigned LC3D1S5 : 1;
14335 unsigned LC3D1S6 : 1;
14336 unsigned LC3D1S7 : 1;
14339 struct
14341 unsigned D1S0 : 1;
14342 unsigned D1S1 : 1;
14343 unsigned D1S2 : 1;
14344 unsigned D1S3 : 1;
14345 unsigned D1S4 : 1;
14346 unsigned D1S5 : 1;
14347 unsigned D1S6 : 1;
14348 unsigned D1S7 : 1;
14350 } __CLC3SEL0bits_t;
14352 extern __at(0x0E26) volatile __CLC3SEL0bits_t CLC3SEL0bits;
14354 #define _CLC3SEL0_LC3D1S0 0x01
14355 #define _CLC3SEL0_D1S0 0x01
14356 #define _CLC3SEL0_LC3D1S1 0x02
14357 #define _CLC3SEL0_D1S1 0x02
14358 #define _CLC3SEL0_LC3D1S2 0x04
14359 #define _CLC3SEL0_D1S2 0x04
14360 #define _CLC3SEL0_LC3D1S3 0x08
14361 #define _CLC3SEL0_D1S3 0x08
14362 #define _CLC3SEL0_LC3D1S4 0x10
14363 #define _CLC3SEL0_D1S4 0x10
14364 #define _CLC3SEL0_LC3D1S5 0x20
14365 #define _CLC3SEL0_D1S5 0x20
14366 #define _CLC3SEL0_LC3D1S6 0x40
14367 #define _CLC3SEL0_D1S6 0x40
14368 #define _CLC3SEL0_LC3D1S7 0x80
14369 #define _CLC3SEL0_D1S7 0x80
14371 //==============================================================================
14374 //==============================================================================
14375 // CLC3SEL1 Bits
14377 extern __at(0x0E27) __sfr CLC3SEL1;
14379 typedef union
14381 struct
14383 unsigned LC3D2S0 : 1;
14384 unsigned LC3D2S1 : 1;
14385 unsigned LC3D2S2 : 1;
14386 unsigned LC3D2S3 : 1;
14387 unsigned LC3D2S4 : 1;
14388 unsigned LC3D2S5 : 1;
14389 unsigned LC3D2S6 : 1;
14390 unsigned LC3D2S7 : 1;
14393 struct
14395 unsigned D2S0 : 1;
14396 unsigned D2S1 : 1;
14397 unsigned D2S2 : 1;
14398 unsigned D2S3 : 1;
14399 unsigned D2S4 : 1;
14400 unsigned D2S5 : 1;
14401 unsigned D2S6 : 1;
14402 unsigned D2S7 : 1;
14404 } __CLC3SEL1bits_t;
14406 extern __at(0x0E27) volatile __CLC3SEL1bits_t CLC3SEL1bits;
14408 #define _CLC3SEL1_LC3D2S0 0x01
14409 #define _CLC3SEL1_D2S0 0x01
14410 #define _CLC3SEL1_LC3D2S1 0x02
14411 #define _CLC3SEL1_D2S1 0x02
14412 #define _CLC3SEL1_LC3D2S2 0x04
14413 #define _CLC3SEL1_D2S2 0x04
14414 #define _CLC3SEL1_LC3D2S3 0x08
14415 #define _CLC3SEL1_D2S3 0x08
14416 #define _CLC3SEL1_LC3D2S4 0x10
14417 #define _CLC3SEL1_D2S4 0x10
14418 #define _CLC3SEL1_LC3D2S5 0x20
14419 #define _CLC3SEL1_D2S5 0x20
14420 #define _CLC3SEL1_LC3D2S6 0x40
14421 #define _CLC3SEL1_D2S6 0x40
14422 #define _CLC3SEL1_LC3D2S7 0x80
14423 #define _CLC3SEL1_D2S7 0x80
14425 //==============================================================================
14428 //==============================================================================
14429 // CLC3SEL2 Bits
14431 extern __at(0x0E28) __sfr CLC3SEL2;
14433 typedef union
14435 struct
14437 unsigned LC3D3S0 : 1;
14438 unsigned LC3D3S1 : 1;
14439 unsigned LC3D3S2 : 1;
14440 unsigned LC3D3S3 : 1;
14441 unsigned LC3D3S4 : 1;
14442 unsigned LC3D3S5 : 1;
14443 unsigned LC3D3S6 : 1;
14444 unsigned LC3D3S7 : 1;
14447 struct
14449 unsigned D3S0 : 1;
14450 unsigned D3S1 : 1;
14451 unsigned D3S2 : 1;
14452 unsigned D3S3 : 1;
14453 unsigned D3S4 : 1;
14454 unsigned D3S5 : 1;
14455 unsigned D3S6 : 1;
14456 unsigned D3S7 : 1;
14458 } __CLC3SEL2bits_t;
14460 extern __at(0x0E28) volatile __CLC3SEL2bits_t CLC3SEL2bits;
14462 #define _CLC3SEL2_LC3D3S0 0x01
14463 #define _CLC3SEL2_D3S0 0x01
14464 #define _CLC3SEL2_LC3D3S1 0x02
14465 #define _CLC3SEL2_D3S1 0x02
14466 #define _CLC3SEL2_LC3D3S2 0x04
14467 #define _CLC3SEL2_D3S2 0x04
14468 #define _CLC3SEL2_LC3D3S3 0x08
14469 #define _CLC3SEL2_D3S3 0x08
14470 #define _CLC3SEL2_LC3D3S4 0x10
14471 #define _CLC3SEL2_D3S4 0x10
14472 #define _CLC3SEL2_LC3D3S5 0x20
14473 #define _CLC3SEL2_D3S5 0x20
14474 #define _CLC3SEL2_LC3D3S6 0x40
14475 #define _CLC3SEL2_D3S6 0x40
14476 #define _CLC3SEL2_LC3D3S7 0x80
14477 #define _CLC3SEL2_D3S7 0x80
14479 //==============================================================================
14482 //==============================================================================
14483 // CLC3SEL3 Bits
14485 extern __at(0x0E29) __sfr CLC3SEL3;
14487 typedef union
14489 struct
14491 unsigned LC3D4S0 : 1;
14492 unsigned LC3D4S1 : 1;
14493 unsigned LC3D4S2 : 1;
14494 unsigned LC3D4S3 : 1;
14495 unsigned LC3D4S4 : 1;
14496 unsigned LC3D4S5 : 1;
14497 unsigned LC3D4S6 : 1;
14498 unsigned LC3D4S7 : 1;
14501 struct
14503 unsigned D4S0 : 1;
14504 unsigned D4S1 : 1;
14505 unsigned D4S2 : 1;
14506 unsigned D4S3 : 1;
14507 unsigned D4S4 : 1;
14508 unsigned D4S5 : 1;
14509 unsigned D4S6 : 1;
14510 unsigned D4S7 : 1;
14512 } __CLC3SEL3bits_t;
14514 extern __at(0x0E29) volatile __CLC3SEL3bits_t CLC3SEL3bits;
14516 #define _CLC3SEL3_LC3D4S0 0x01
14517 #define _CLC3SEL3_D4S0 0x01
14518 #define _CLC3SEL3_LC3D4S1 0x02
14519 #define _CLC3SEL3_D4S1 0x02
14520 #define _CLC3SEL3_LC3D4S2 0x04
14521 #define _CLC3SEL3_D4S2 0x04
14522 #define _CLC3SEL3_LC3D4S3 0x08
14523 #define _CLC3SEL3_D4S3 0x08
14524 #define _CLC3SEL3_LC3D4S4 0x10
14525 #define _CLC3SEL3_D4S4 0x10
14526 #define _CLC3SEL3_LC3D4S5 0x20
14527 #define _CLC3SEL3_D4S5 0x20
14528 #define _CLC3SEL3_LC3D4S6 0x40
14529 #define _CLC3SEL3_D4S6 0x40
14530 #define _CLC3SEL3_LC3D4S7 0x80
14531 #define _CLC3SEL3_D4S7 0x80
14533 //==============================================================================
14536 //==============================================================================
14537 // CLC3GLS0 Bits
14539 extern __at(0x0E2A) __sfr CLC3GLS0;
14541 typedef union
14543 struct
14545 unsigned LC3G1D1N : 1;
14546 unsigned LC3G1D1T : 1;
14547 unsigned LC3G1D2N : 1;
14548 unsigned LC3G1D2T : 1;
14549 unsigned LC3G1D3N : 1;
14550 unsigned LC3G1D3T : 1;
14551 unsigned LC3G1D4N : 1;
14552 unsigned LC3G1D4T : 1;
14555 struct
14557 unsigned D1N : 1;
14558 unsigned D1T : 1;
14559 unsigned D2N : 1;
14560 unsigned D2T : 1;
14561 unsigned D3N : 1;
14562 unsigned D3T : 1;
14563 unsigned D4N : 1;
14564 unsigned D4T : 1;
14566 } __CLC3GLS0bits_t;
14568 extern __at(0x0E2A) volatile __CLC3GLS0bits_t CLC3GLS0bits;
14570 #define _CLC3GLS0_LC3G1D1N 0x01
14571 #define _CLC3GLS0_D1N 0x01
14572 #define _CLC3GLS0_LC3G1D1T 0x02
14573 #define _CLC3GLS0_D1T 0x02
14574 #define _CLC3GLS0_LC3G1D2N 0x04
14575 #define _CLC3GLS0_D2N 0x04
14576 #define _CLC3GLS0_LC3G1D2T 0x08
14577 #define _CLC3GLS0_D2T 0x08
14578 #define _CLC3GLS0_LC3G1D3N 0x10
14579 #define _CLC3GLS0_D3N 0x10
14580 #define _CLC3GLS0_LC3G1D3T 0x20
14581 #define _CLC3GLS0_D3T 0x20
14582 #define _CLC3GLS0_LC3G1D4N 0x40
14583 #define _CLC3GLS0_D4N 0x40
14584 #define _CLC3GLS0_LC3G1D4T 0x80
14585 #define _CLC3GLS0_D4T 0x80
14587 //==============================================================================
14590 //==============================================================================
14591 // CLC3GLS1 Bits
14593 extern __at(0x0E2B) __sfr CLC3GLS1;
14595 typedef union
14597 struct
14599 unsigned LC3G2D1N : 1;
14600 unsigned LC3G2D1T : 1;
14601 unsigned LC3G2D2N : 1;
14602 unsigned LC3G2D2T : 1;
14603 unsigned LC3G2D3N : 1;
14604 unsigned LC3G2D3T : 1;
14605 unsigned LC3G2D4N : 1;
14606 unsigned LC3G2D4T : 1;
14609 struct
14611 unsigned D1N : 1;
14612 unsigned D1T : 1;
14613 unsigned D2N : 1;
14614 unsigned D2T : 1;
14615 unsigned D3N : 1;
14616 unsigned D3T : 1;
14617 unsigned D4N : 1;
14618 unsigned D4T : 1;
14620 } __CLC3GLS1bits_t;
14622 extern __at(0x0E2B) volatile __CLC3GLS1bits_t CLC3GLS1bits;
14624 #define _CLC3GLS1_LC3G2D1N 0x01
14625 #define _CLC3GLS1_D1N 0x01
14626 #define _CLC3GLS1_LC3G2D1T 0x02
14627 #define _CLC3GLS1_D1T 0x02
14628 #define _CLC3GLS1_LC3G2D2N 0x04
14629 #define _CLC3GLS1_D2N 0x04
14630 #define _CLC3GLS1_LC3G2D2T 0x08
14631 #define _CLC3GLS1_D2T 0x08
14632 #define _CLC3GLS1_LC3G2D3N 0x10
14633 #define _CLC3GLS1_D3N 0x10
14634 #define _CLC3GLS1_LC3G2D3T 0x20
14635 #define _CLC3GLS1_D3T 0x20
14636 #define _CLC3GLS1_LC3G2D4N 0x40
14637 #define _CLC3GLS1_D4N 0x40
14638 #define _CLC3GLS1_LC3G2D4T 0x80
14639 #define _CLC3GLS1_D4T 0x80
14641 //==============================================================================
14644 //==============================================================================
14645 // CLC3GLS2 Bits
14647 extern __at(0x0E2C) __sfr CLC3GLS2;
14649 typedef union
14651 struct
14653 unsigned LC3G3D1N : 1;
14654 unsigned LC3G3D1T : 1;
14655 unsigned LC3G3D2N : 1;
14656 unsigned LC3G3D2T : 1;
14657 unsigned LC3G3D3N : 1;
14658 unsigned LC3G3D3T : 1;
14659 unsigned LC3G3D4N : 1;
14660 unsigned LC3G3D4T : 1;
14663 struct
14665 unsigned D1N : 1;
14666 unsigned D1T : 1;
14667 unsigned D2N : 1;
14668 unsigned D2T : 1;
14669 unsigned D3N : 1;
14670 unsigned D3T : 1;
14671 unsigned D4N : 1;
14672 unsigned D4T : 1;
14674 } __CLC3GLS2bits_t;
14676 extern __at(0x0E2C) volatile __CLC3GLS2bits_t CLC3GLS2bits;
14678 #define _CLC3GLS2_LC3G3D1N 0x01
14679 #define _CLC3GLS2_D1N 0x01
14680 #define _CLC3GLS2_LC3G3D1T 0x02
14681 #define _CLC3GLS2_D1T 0x02
14682 #define _CLC3GLS2_LC3G3D2N 0x04
14683 #define _CLC3GLS2_D2N 0x04
14684 #define _CLC3GLS2_LC3G3D2T 0x08
14685 #define _CLC3GLS2_D2T 0x08
14686 #define _CLC3GLS2_LC3G3D3N 0x10
14687 #define _CLC3GLS2_D3N 0x10
14688 #define _CLC3GLS2_LC3G3D3T 0x20
14689 #define _CLC3GLS2_D3T 0x20
14690 #define _CLC3GLS2_LC3G3D4N 0x40
14691 #define _CLC3GLS2_D4N 0x40
14692 #define _CLC3GLS2_LC3G3D4T 0x80
14693 #define _CLC3GLS2_D4T 0x80
14695 //==============================================================================
14698 //==============================================================================
14699 // CLC3GLS3 Bits
14701 extern __at(0x0E2D) __sfr CLC3GLS3;
14703 typedef union
14705 struct
14707 unsigned LC3G4D1N : 1;
14708 unsigned LC3G4D1T : 1;
14709 unsigned LC3G4D2N : 1;
14710 unsigned LC3G4D2T : 1;
14711 unsigned LC3G4D3N : 1;
14712 unsigned LC3G4D3T : 1;
14713 unsigned LC3G4D4N : 1;
14714 unsigned LC3G4D4T : 1;
14717 struct
14719 unsigned G4D1N : 1;
14720 unsigned G4D1T : 1;
14721 unsigned G4D2N : 1;
14722 unsigned G4D2T : 1;
14723 unsigned G4D3N : 1;
14724 unsigned G4D3T : 1;
14725 unsigned G4D4N : 1;
14726 unsigned G4D4T : 1;
14728 } __CLC3GLS3bits_t;
14730 extern __at(0x0E2D) volatile __CLC3GLS3bits_t CLC3GLS3bits;
14732 #define _CLC3GLS3_LC3G4D1N 0x01
14733 #define _CLC3GLS3_G4D1N 0x01
14734 #define _CLC3GLS3_LC3G4D1T 0x02
14735 #define _CLC3GLS3_G4D1T 0x02
14736 #define _CLC3GLS3_LC3G4D2N 0x04
14737 #define _CLC3GLS3_G4D2N 0x04
14738 #define _CLC3GLS3_LC3G4D2T 0x08
14739 #define _CLC3GLS3_G4D2T 0x08
14740 #define _CLC3GLS3_LC3G4D3N 0x10
14741 #define _CLC3GLS3_G4D3N 0x10
14742 #define _CLC3GLS3_LC3G4D3T 0x20
14743 #define _CLC3GLS3_G4D3T 0x20
14744 #define _CLC3GLS3_LC3G4D4N 0x40
14745 #define _CLC3GLS3_G4D4N 0x40
14746 #define _CLC3GLS3_LC3G4D4T 0x80
14747 #define _CLC3GLS3_G4D4T 0x80
14749 //==============================================================================
14752 //==============================================================================
14753 // CLC4CON Bits
14755 extern __at(0x0E2E) __sfr CLC4CON;
14757 typedef union
14759 struct
14761 unsigned LC4MODE0 : 1;
14762 unsigned LC4MODE1 : 1;
14763 unsigned LC4MODE2 : 1;
14764 unsigned LC4INTN : 1;
14765 unsigned LC4INTP : 1;
14766 unsigned LC4OUT : 1;
14767 unsigned : 1;
14768 unsigned LC4EN : 1;
14771 struct
14773 unsigned MODE0 : 1;
14774 unsigned MODE1 : 1;
14775 unsigned MODE2 : 1;
14776 unsigned INTN : 1;
14777 unsigned INTP : 1;
14778 unsigned OUT : 1;
14779 unsigned : 1;
14780 unsigned EN : 1;
14783 struct
14785 unsigned MODE : 3;
14786 unsigned : 5;
14789 struct
14791 unsigned LC4MODE : 3;
14792 unsigned : 5;
14794 } __CLC4CONbits_t;
14796 extern __at(0x0E2E) volatile __CLC4CONbits_t CLC4CONbits;
14798 #define _CLC4CON_LC4MODE0 0x01
14799 #define _CLC4CON_MODE0 0x01
14800 #define _CLC4CON_LC4MODE1 0x02
14801 #define _CLC4CON_MODE1 0x02
14802 #define _CLC4CON_LC4MODE2 0x04
14803 #define _CLC4CON_MODE2 0x04
14804 #define _CLC4CON_LC4INTN 0x08
14805 #define _CLC4CON_INTN 0x08
14806 #define _CLC4CON_LC4INTP 0x10
14807 #define _CLC4CON_INTP 0x10
14808 #define _CLC4CON_LC4OUT 0x20
14809 #define _CLC4CON_OUT 0x20
14810 #define _CLC4CON_LC4EN 0x80
14811 #define _CLC4CON_EN 0x80
14813 //==============================================================================
14816 //==============================================================================
14817 // CLC4POL Bits
14819 extern __at(0x0E2F) __sfr CLC4POL;
14821 typedef union
14823 struct
14825 unsigned LC4G1POL : 1;
14826 unsigned LC4G2POL : 1;
14827 unsigned LC4G3POL : 1;
14828 unsigned LC4G4POL : 1;
14829 unsigned : 1;
14830 unsigned : 1;
14831 unsigned : 1;
14832 unsigned LC4POL : 1;
14835 struct
14837 unsigned G1POL : 1;
14838 unsigned G2POL : 1;
14839 unsigned G3POL : 1;
14840 unsigned G4POL : 1;
14841 unsigned : 1;
14842 unsigned : 1;
14843 unsigned : 1;
14844 unsigned POL : 1;
14846 } __CLC4POLbits_t;
14848 extern __at(0x0E2F) volatile __CLC4POLbits_t CLC4POLbits;
14850 #define _CLC4POL_LC4G1POL 0x01
14851 #define _CLC4POL_G1POL 0x01
14852 #define _CLC4POL_LC4G2POL 0x02
14853 #define _CLC4POL_G2POL 0x02
14854 #define _CLC4POL_LC4G3POL 0x04
14855 #define _CLC4POL_G3POL 0x04
14856 #define _CLC4POL_LC4G4POL 0x08
14857 #define _CLC4POL_G4POL 0x08
14858 #define _CLC4POL_LC4POL 0x80
14859 #define _CLC4POL_POL 0x80
14861 //==============================================================================
14864 //==============================================================================
14865 // CLC4SEL0 Bits
14867 extern __at(0x0E30) __sfr CLC4SEL0;
14869 typedef union
14871 struct
14873 unsigned LC4D1S0 : 1;
14874 unsigned LC4D1S1 : 1;
14875 unsigned LC4D1S2 : 1;
14876 unsigned LC4D1S3 : 1;
14877 unsigned LC4D1S4 : 1;
14878 unsigned LC4D1S5 : 1;
14879 unsigned LC4D1S6 : 1;
14880 unsigned LC4D1S7 : 1;
14883 struct
14885 unsigned D1S0 : 1;
14886 unsigned D1S1 : 1;
14887 unsigned D1S2 : 1;
14888 unsigned D1S3 : 1;
14889 unsigned D1S4 : 1;
14890 unsigned D1S5 : 1;
14891 unsigned D1S6 : 1;
14892 unsigned D1S7 : 1;
14894 } __CLC4SEL0bits_t;
14896 extern __at(0x0E30) volatile __CLC4SEL0bits_t CLC4SEL0bits;
14898 #define _CLC4SEL0_LC4D1S0 0x01
14899 #define _CLC4SEL0_D1S0 0x01
14900 #define _CLC4SEL0_LC4D1S1 0x02
14901 #define _CLC4SEL0_D1S1 0x02
14902 #define _CLC4SEL0_LC4D1S2 0x04
14903 #define _CLC4SEL0_D1S2 0x04
14904 #define _CLC4SEL0_LC4D1S3 0x08
14905 #define _CLC4SEL0_D1S3 0x08
14906 #define _CLC4SEL0_LC4D1S4 0x10
14907 #define _CLC4SEL0_D1S4 0x10
14908 #define _CLC4SEL0_LC4D1S5 0x20
14909 #define _CLC4SEL0_D1S5 0x20
14910 #define _CLC4SEL0_LC4D1S6 0x40
14911 #define _CLC4SEL0_D1S6 0x40
14912 #define _CLC4SEL0_LC4D1S7 0x80
14913 #define _CLC4SEL0_D1S7 0x80
14915 //==============================================================================
14918 //==============================================================================
14919 // CLC4SEL1 Bits
14921 extern __at(0x0E31) __sfr CLC4SEL1;
14923 typedef union
14925 struct
14927 unsigned LC4D2S0 : 1;
14928 unsigned LC4D2S1 : 1;
14929 unsigned LC4D2S2 : 1;
14930 unsigned LC4D2S3 : 1;
14931 unsigned LC4D2S4 : 1;
14932 unsigned LC4D2S5 : 1;
14933 unsigned LC4D2S6 : 1;
14934 unsigned LC4D2S7 : 1;
14937 struct
14939 unsigned D2S0 : 1;
14940 unsigned D2S1 : 1;
14941 unsigned D2S2 : 1;
14942 unsigned D2S3 : 1;
14943 unsigned D2S4 : 1;
14944 unsigned D2S5 : 1;
14945 unsigned D2S6 : 1;
14946 unsigned D2S7 : 1;
14948 } __CLC4SEL1bits_t;
14950 extern __at(0x0E31) volatile __CLC4SEL1bits_t CLC4SEL1bits;
14952 #define _CLC4SEL1_LC4D2S0 0x01
14953 #define _CLC4SEL1_D2S0 0x01
14954 #define _CLC4SEL1_LC4D2S1 0x02
14955 #define _CLC4SEL1_D2S1 0x02
14956 #define _CLC4SEL1_LC4D2S2 0x04
14957 #define _CLC4SEL1_D2S2 0x04
14958 #define _CLC4SEL1_LC4D2S3 0x08
14959 #define _CLC4SEL1_D2S3 0x08
14960 #define _CLC4SEL1_LC4D2S4 0x10
14961 #define _CLC4SEL1_D2S4 0x10
14962 #define _CLC4SEL1_LC4D2S5 0x20
14963 #define _CLC4SEL1_D2S5 0x20
14964 #define _CLC4SEL1_LC4D2S6 0x40
14965 #define _CLC4SEL1_D2S6 0x40
14966 #define _CLC4SEL1_LC4D2S7 0x80
14967 #define _CLC4SEL1_D2S7 0x80
14969 //==============================================================================
14972 //==============================================================================
14973 // CLC4SEL2 Bits
14975 extern __at(0x0E32) __sfr CLC4SEL2;
14977 typedef union
14979 struct
14981 unsigned LC4D3S0 : 1;
14982 unsigned LC4D3S1 : 1;
14983 unsigned LC4D3S2 : 1;
14984 unsigned LC4D3S3 : 1;
14985 unsigned LC4D3S4 : 1;
14986 unsigned LC4D3S5 : 1;
14987 unsigned LC4D3S6 : 1;
14988 unsigned LC4D3S7 : 1;
14991 struct
14993 unsigned D3S0 : 1;
14994 unsigned D3S1 : 1;
14995 unsigned D3S2 : 1;
14996 unsigned D3S3 : 1;
14997 unsigned D3S4 : 1;
14998 unsigned D3S5 : 1;
14999 unsigned D3S6 : 1;
15000 unsigned D3S7 : 1;
15002 } __CLC4SEL2bits_t;
15004 extern __at(0x0E32) volatile __CLC4SEL2bits_t CLC4SEL2bits;
15006 #define _CLC4SEL2_LC4D3S0 0x01
15007 #define _CLC4SEL2_D3S0 0x01
15008 #define _CLC4SEL2_LC4D3S1 0x02
15009 #define _CLC4SEL2_D3S1 0x02
15010 #define _CLC4SEL2_LC4D3S2 0x04
15011 #define _CLC4SEL2_D3S2 0x04
15012 #define _CLC4SEL2_LC4D3S3 0x08
15013 #define _CLC4SEL2_D3S3 0x08
15014 #define _CLC4SEL2_LC4D3S4 0x10
15015 #define _CLC4SEL2_D3S4 0x10
15016 #define _CLC4SEL2_LC4D3S5 0x20
15017 #define _CLC4SEL2_D3S5 0x20
15018 #define _CLC4SEL2_LC4D3S6 0x40
15019 #define _CLC4SEL2_D3S6 0x40
15020 #define _CLC4SEL2_LC4D3S7 0x80
15021 #define _CLC4SEL2_D3S7 0x80
15023 //==============================================================================
15026 //==============================================================================
15027 // CLC4SEL3 Bits
15029 extern __at(0x0E33) __sfr CLC4SEL3;
15031 typedef union
15033 struct
15035 unsigned LC4D4S0 : 1;
15036 unsigned LC4D4S1 : 1;
15037 unsigned LC4D4S2 : 1;
15038 unsigned LC4D4S3 : 1;
15039 unsigned LC4D4S4 : 1;
15040 unsigned LC4D4S5 : 1;
15041 unsigned LC4D4S6 : 1;
15042 unsigned LC4D4S7 : 1;
15045 struct
15047 unsigned D4S0 : 1;
15048 unsigned D4S1 : 1;
15049 unsigned D4S2 : 1;
15050 unsigned D4S3 : 1;
15051 unsigned D4S4 : 1;
15052 unsigned D4S5 : 1;
15053 unsigned D4S6 : 1;
15054 unsigned D4S7 : 1;
15056 } __CLC4SEL3bits_t;
15058 extern __at(0x0E33) volatile __CLC4SEL3bits_t CLC4SEL3bits;
15060 #define _CLC4SEL3_LC4D4S0 0x01
15061 #define _CLC4SEL3_D4S0 0x01
15062 #define _CLC4SEL3_LC4D4S1 0x02
15063 #define _CLC4SEL3_D4S1 0x02
15064 #define _CLC4SEL3_LC4D4S2 0x04
15065 #define _CLC4SEL3_D4S2 0x04
15066 #define _CLC4SEL3_LC4D4S3 0x08
15067 #define _CLC4SEL3_D4S3 0x08
15068 #define _CLC4SEL3_LC4D4S4 0x10
15069 #define _CLC4SEL3_D4S4 0x10
15070 #define _CLC4SEL3_LC4D4S5 0x20
15071 #define _CLC4SEL3_D4S5 0x20
15072 #define _CLC4SEL3_LC4D4S6 0x40
15073 #define _CLC4SEL3_D4S6 0x40
15074 #define _CLC4SEL3_LC4D4S7 0x80
15075 #define _CLC4SEL3_D4S7 0x80
15077 //==============================================================================
15080 //==============================================================================
15081 // CLC4GLS0 Bits
15083 extern __at(0x0E34) __sfr CLC4GLS0;
15085 typedef union
15087 struct
15089 unsigned LC4G1D1N : 1;
15090 unsigned LC4G1D1T : 1;
15091 unsigned LC4G1D2N : 1;
15092 unsigned LC4G1D2T : 1;
15093 unsigned LC4G1D3N : 1;
15094 unsigned LC4G1D3T : 1;
15095 unsigned LC4G1D4N : 1;
15096 unsigned LC4G1D4T : 1;
15099 struct
15101 unsigned D1N : 1;
15102 unsigned D1T : 1;
15103 unsigned D2N : 1;
15104 unsigned D2T : 1;
15105 unsigned D3N : 1;
15106 unsigned D3T : 1;
15107 unsigned D4N : 1;
15108 unsigned D4T : 1;
15110 } __CLC4GLS0bits_t;
15112 extern __at(0x0E34) volatile __CLC4GLS0bits_t CLC4GLS0bits;
15114 #define _CLC4GLS0_LC4G1D1N 0x01
15115 #define _CLC4GLS0_D1N 0x01
15116 #define _CLC4GLS0_LC4G1D1T 0x02
15117 #define _CLC4GLS0_D1T 0x02
15118 #define _CLC4GLS0_LC4G1D2N 0x04
15119 #define _CLC4GLS0_D2N 0x04
15120 #define _CLC4GLS0_LC4G1D2T 0x08
15121 #define _CLC4GLS0_D2T 0x08
15122 #define _CLC4GLS0_LC4G1D3N 0x10
15123 #define _CLC4GLS0_D3N 0x10
15124 #define _CLC4GLS0_LC4G1D3T 0x20
15125 #define _CLC4GLS0_D3T 0x20
15126 #define _CLC4GLS0_LC4G1D4N 0x40
15127 #define _CLC4GLS0_D4N 0x40
15128 #define _CLC4GLS0_LC4G1D4T 0x80
15129 #define _CLC4GLS0_D4T 0x80
15131 //==============================================================================
15134 //==============================================================================
15135 // CLC4GLS1 Bits
15137 extern __at(0x0E35) __sfr CLC4GLS1;
15139 typedef union
15141 struct
15143 unsigned LC4G2D1N : 1;
15144 unsigned LC4G2D1T : 1;
15145 unsigned LC4G2D2N : 1;
15146 unsigned LC4G2D2T : 1;
15147 unsigned LC4G2D3N : 1;
15148 unsigned LC4G2D3T : 1;
15149 unsigned LC4G2D4N : 1;
15150 unsigned LC4G2D4T : 1;
15153 struct
15155 unsigned D1N : 1;
15156 unsigned D1T : 1;
15157 unsigned D2N : 1;
15158 unsigned D2T : 1;
15159 unsigned D3N : 1;
15160 unsigned D3T : 1;
15161 unsigned D4N : 1;
15162 unsigned D4T : 1;
15164 } __CLC4GLS1bits_t;
15166 extern __at(0x0E35) volatile __CLC4GLS1bits_t CLC4GLS1bits;
15168 #define _CLC4GLS1_LC4G2D1N 0x01
15169 #define _CLC4GLS1_D1N 0x01
15170 #define _CLC4GLS1_LC4G2D1T 0x02
15171 #define _CLC4GLS1_D1T 0x02
15172 #define _CLC4GLS1_LC4G2D2N 0x04
15173 #define _CLC4GLS1_D2N 0x04
15174 #define _CLC4GLS1_LC4G2D2T 0x08
15175 #define _CLC4GLS1_D2T 0x08
15176 #define _CLC4GLS1_LC4G2D3N 0x10
15177 #define _CLC4GLS1_D3N 0x10
15178 #define _CLC4GLS1_LC4G2D3T 0x20
15179 #define _CLC4GLS1_D3T 0x20
15180 #define _CLC4GLS1_LC4G2D4N 0x40
15181 #define _CLC4GLS1_D4N 0x40
15182 #define _CLC4GLS1_LC4G2D4T 0x80
15183 #define _CLC4GLS1_D4T 0x80
15185 //==============================================================================
15188 //==============================================================================
15189 // CLC4GLS2 Bits
15191 extern __at(0x0E36) __sfr CLC4GLS2;
15193 typedef union
15195 struct
15197 unsigned LC4G3D1N : 1;
15198 unsigned LC4G3D1T : 1;
15199 unsigned LC4G3D2N : 1;
15200 unsigned LC4G3D2T : 1;
15201 unsigned LC4G3D3N : 1;
15202 unsigned LC4G3D3T : 1;
15203 unsigned LC4G3D4N : 1;
15204 unsigned LC4G3D4T : 1;
15207 struct
15209 unsigned D1N : 1;
15210 unsigned D1T : 1;
15211 unsigned D2N : 1;
15212 unsigned D2T : 1;
15213 unsigned D3N : 1;
15214 unsigned D3T : 1;
15215 unsigned D4N : 1;
15216 unsigned D4T : 1;
15218 } __CLC4GLS2bits_t;
15220 extern __at(0x0E36) volatile __CLC4GLS2bits_t CLC4GLS2bits;
15222 #define _CLC4GLS2_LC4G3D1N 0x01
15223 #define _CLC4GLS2_D1N 0x01
15224 #define _CLC4GLS2_LC4G3D1T 0x02
15225 #define _CLC4GLS2_D1T 0x02
15226 #define _CLC4GLS2_LC4G3D2N 0x04
15227 #define _CLC4GLS2_D2N 0x04
15228 #define _CLC4GLS2_LC4G3D2T 0x08
15229 #define _CLC4GLS2_D2T 0x08
15230 #define _CLC4GLS2_LC4G3D3N 0x10
15231 #define _CLC4GLS2_D3N 0x10
15232 #define _CLC4GLS2_LC4G3D3T 0x20
15233 #define _CLC4GLS2_D3T 0x20
15234 #define _CLC4GLS2_LC4G3D4N 0x40
15235 #define _CLC4GLS2_D4N 0x40
15236 #define _CLC4GLS2_LC4G3D4T 0x80
15237 #define _CLC4GLS2_D4T 0x80
15239 //==============================================================================
15242 //==============================================================================
15243 // CLC4GLS3 Bits
15245 extern __at(0x0E37) __sfr CLC4GLS3;
15247 typedef union
15249 struct
15251 unsigned LC4G4D1N : 1;
15252 unsigned LC4G4D1T : 1;
15253 unsigned LC4G4D2N : 1;
15254 unsigned LC4G4D2T : 1;
15255 unsigned LC4G4D3N : 1;
15256 unsigned LC4G4D3T : 1;
15257 unsigned LC4G4D4N : 1;
15258 unsigned LC4G4D4T : 1;
15261 struct
15263 unsigned G4D1N : 1;
15264 unsigned G4D1T : 1;
15265 unsigned G4D2N : 1;
15266 unsigned G4D2T : 1;
15267 unsigned G4D3N : 1;
15268 unsigned G4D3T : 1;
15269 unsigned G4D4N : 1;
15270 unsigned G4D4T : 1;
15272 } __CLC4GLS3bits_t;
15274 extern __at(0x0E37) volatile __CLC4GLS3bits_t CLC4GLS3bits;
15276 #define _CLC4GLS3_LC4G4D1N 0x01
15277 #define _CLC4GLS3_G4D1N 0x01
15278 #define _CLC4GLS3_LC4G4D1T 0x02
15279 #define _CLC4GLS3_G4D1T 0x02
15280 #define _CLC4GLS3_LC4G4D2N 0x04
15281 #define _CLC4GLS3_G4D2N 0x04
15282 #define _CLC4GLS3_LC4G4D2T 0x08
15283 #define _CLC4GLS3_G4D2T 0x08
15284 #define _CLC4GLS3_LC4G4D3N 0x10
15285 #define _CLC4GLS3_G4D3N 0x10
15286 #define _CLC4GLS3_LC4G4D3T 0x20
15287 #define _CLC4GLS3_G4D3T 0x20
15288 #define _CLC4GLS3_LC4G4D4N 0x40
15289 #define _CLC4GLS3_G4D4N 0x40
15290 #define _CLC4GLS3_LC4G4D4T 0x80
15291 #define _CLC4GLS3_G4D4T 0x80
15293 //==============================================================================
15296 //==============================================================================
15297 // PPSLOCK Bits
15299 extern __at(0x0E8F) __sfr PPSLOCK;
15301 typedef struct
15303 unsigned PPSLOCKED : 1;
15304 unsigned : 1;
15305 unsigned : 1;
15306 unsigned : 1;
15307 unsigned : 1;
15308 unsigned : 1;
15309 unsigned : 1;
15310 unsigned : 1;
15311 } __PPSLOCKbits_t;
15313 extern __at(0x0E8F) volatile __PPSLOCKbits_t PPSLOCKbits;
15315 #define _PPSLOCKED 0x01
15317 //==============================================================================
15320 //==============================================================================
15321 // INTPPS Bits
15323 extern __at(0x0E90) __sfr INTPPS;
15325 typedef union
15327 struct
15329 unsigned INTPPS0 : 1;
15330 unsigned INTPPS1 : 1;
15331 unsigned INTPPS2 : 1;
15332 unsigned INTPPS3 : 1;
15333 unsigned : 1;
15334 unsigned : 1;
15335 unsigned : 1;
15336 unsigned : 1;
15339 struct
15341 unsigned INTPPS : 4;
15342 unsigned : 4;
15344 } __INTPPSbits_t;
15346 extern __at(0x0E90) volatile __INTPPSbits_t INTPPSbits;
15348 #define _INTPPS0 0x01
15349 #define _INTPPS1 0x02
15350 #define _INTPPS2 0x04
15351 #define _INTPPS3 0x08
15353 //==============================================================================
15356 //==============================================================================
15357 // T0CKIPPS Bits
15359 extern __at(0x0E91) __sfr T0CKIPPS;
15361 typedef union
15363 struct
15365 unsigned T0CKIPPS0 : 1;
15366 unsigned T0CKIPPS1 : 1;
15367 unsigned T0CKIPPS2 : 1;
15368 unsigned T0CKIPPS3 : 1;
15369 unsigned : 1;
15370 unsigned : 1;
15371 unsigned : 1;
15372 unsigned : 1;
15375 struct
15377 unsigned T0CKIPPS : 4;
15378 unsigned : 4;
15380 } __T0CKIPPSbits_t;
15382 extern __at(0x0E91) volatile __T0CKIPPSbits_t T0CKIPPSbits;
15384 #define _T0CKIPPS0 0x01
15385 #define _T0CKIPPS1 0x02
15386 #define _T0CKIPPS2 0x04
15387 #define _T0CKIPPS3 0x08
15389 //==============================================================================
15392 //==============================================================================
15393 // T1CKIPPS Bits
15395 extern __at(0x0E92) __sfr T1CKIPPS;
15397 typedef union
15399 struct
15401 unsigned T1CKIPPS0 : 1;
15402 unsigned T1CKIPPS1 : 1;
15403 unsigned T1CKIPPS2 : 1;
15404 unsigned T1CKIPPS3 : 1;
15405 unsigned T1CKIPPS4 : 1;
15406 unsigned : 1;
15407 unsigned : 1;
15408 unsigned : 1;
15411 struct
15413 unsigned T1CKIPPS : 5;
15414 unsigned : 3;
15416 } __T1CKIPPSbits_t;
15418 extern __at(0x0E92) volatile __T1CKIPPSbits_t T1CKIPPSbits;
15420 #define _T1CKIPPS0 0x01
15421 #define _T1CKIPPS1 0x02
15422 #define _T1CKIPPS2 0x04
15423 #define _T1CKIPPS3 0x08
15424 #define _T1CKIPPS4 0x10
15426 //==============================================================================
15429 //==============================================================================
15430 // T1GPPS Bits
15432 extern __at(0x0E93) __sfr T1GPPS;
15434 typedef union
15436 struct
15438 unsigned T1GPPS0 : 1;
15439 unsigned T1GPPS1 : 1;
15440 unsigned T1GPPS2 : 1;
15441 unsigned T1GPPS3 : 1;
15442 unsigned T1GPPS4 : 1;
15443 unsigned : 1;
15444 unsigned : 1;
15445 unsigned : 1;
15448 struct
15450 unsigned T1GPPS : 5;
15451 unsigned : 3;
15453 } __T1GPPSbits_t;
15455 extern __at(0x0E93) volatile __T1GPPSbits_t T1GPPSbits;
15457 #define _T1GPPS0 0x01
15458 #define _T1GPPS1 0x02
15459 #define _T1GPPS2 0x04
15460 #define _T1GPPS3 0x08
15461 #define _T1GPPS4 0x10
15463 //==============================================================================
15466 //==============================================================================
15467 // T3CKIPPS Bits
15469 extern __at(0x0E94) __sfr T3CKIPPS;
15471 typedef union
15473 struct
15475 unsigned T3CKIPPS0 : 1;
15476 unsigned T3CKIPPS1 : 1;
15477 unsigned T3CKIPPS2 : 1;
15478 unsigned T3CKIPPS3 : 1;
15479 unsigned T3CKIPPS4 : 1;
15480 unsigned : 1;
15481 unsigned : 1;
15482 unsigned : 1;
15485 struct
15487 unsigned T3CKIPPS : 5;
15488 unsigned : 3;
15490 } __T3CKIPPSbits_t;
15492 extern __at(0x0E94) volatile __T3CKIPPSbits_t T3CKIPPSbits;
15494 #define _T3CKIPPS0 0x01
15495 #define _T3CKIPPS1 0x02
15496 #define _T3CKIPPS2 0x04
15497 #define _T3CKIPPS3 0x08
15498 #define _T3CKIPPS4 0x10
15500 //==============================================================================
15503 //==============================================================================
15504 // T3GPPS Bits
15506 extern __at(0x0E95) __sfr T3GPPS;
15508 typedef union
15510 struct
15512 unsigned T3GPPS0 : 1;
15513 unsigned T3GPPS1 : 1;
15514 unsigned T3GPPS2 : 1;
15515 unsigned T3GPPS3 : 1;
15516 unsigned T3GPPS4 : 1;
15517 unsigned : 1;
15518 unsigned : 1;
15519 unsigned : 1;
15522 struct
15524 unsigned T3GPPS : 5;
15525 unsigned : 3;
15527 } __T3GPPSbits_t;
15529 extern __at(0x0E95) volatile __T3GPPSbits_t T3GPPSbits;
15531 #define _T3GPPS0 0x01
15532 #define _T3GPPS1 0x02
15533 #define _T3GPPS2 0x04
15534 #define _T3GPPS3 0x08
15535 #define _T3GPPS4 0x10
15537 //==============================================================================
15540 //==============================================================================
15541 // T5CKIPPS Bits
15543 extern __at(0x0E96) __sfr T5CKIPPS;
15545 typedef union
15547 struct
15549 unsigned T5CKIPPS0 : 1;
15550 unsigned T5CKIPPS1 : 1;
15551 unsigned T5CKIPPS2 : 1;
15552 unsigned T5CKIPPS3 : 1;
15553 unsigned T5CKIPPS4 : 1;
15554 unsigned : 1;
15555 unsigned : 1;
15556 unsigned : 1;
15559 struct
15561 unsigned T5CKIPPS : 5;
15562 unsigned : 3;
15564 } __T5CKIPPSbits_t;
15566 extern __at(0x0E96) volatile __T5CKIPPSbits_t T5CKIPPSbits;
15568 #define _T5CKIPPS0 0x01
15569 #define _T5CKIPPS1 0x02
15570 #define _T5CKIPPS2 0x04
15571 #define _T5CKIPPS3 0x08
15572 #define _T5CKIPPS4 0x10
15574 //==============================================================================
15577 //==============================================================================
15578 // T5GPPS Bits
15580 extern __at(0x0E97) __sfr T5GPPS;
15582 typedef union
15584 struct
15586 unsigned T5GPPS0 : 1;
15587 unsigned T5GPPS1 : 1;
15588 unsigned T5GPPS2 : 1;
15589 unsigned T5GPPS3 : 1;
15590 unsigned T5GPPS4 : 1;
15591 unsigned : 1;
15592 unsigned : 1;
15593 unsigned : 1;
15596 struct
15598 unsigned T5GPPS : 5;
15599 unsigned : 3;
15601 } __T5GPPSbits_t;
15603 extern __at(0x0E97) volatile __T5GPPSbits_t T5GPPSbits;
15605 #define _T5GPPS0 0x01
15606 #define _T5GPPS1 0x02
15607 #define _T5GPPS2 0x04
15608 #define _T5GPPS3 0x08
15609 #define _T5GPPS4 0x10
15611 //==============================================================================
15614 //==============================================================================
15615 // T2AINPPS Bits
15617 extern __at(0x0E9C) __sfr T2AINPPS;
15619 typedef union
15621 struct
15623 unsigned T2AINPPS0 : 1;
15624 unsigned T2AINPPS1 : 1;
15625 unsigned T2AINPPS2 : 1;
15626 unsigned T2AINPPS3 : 1;
15627 unsigned T2AINPPS4 : 1;
15628 unsigned : 1;
15629 unsigned : 1;
15630 unsigned : 1;
15633 struct
15635 unsigned T2AINPPS : 5;
15636 unsigned : 3;
15638 } __T2AINPPSbits_t;
15640 extern __at(0x0E9C) volatile __T2AINPPSbits_t T2AINPPSbits;
15642 #define _T2AINPPS0 0x01
15643 #define _T2AINPPS1 0x02
15644 #define _T2AINPPS2 0x04
15645 #define _T2AINPPS3 0x08
15646 #define _T2AINPPS4 0x10
15648 //==============================================================================
15651 //==============================================================================
15652 // T4AINPPS Bits
15654 extern __at(0x0E9D) __sfr T4AINPPS;
15656 typedef union
15658 struct
15660 unsigned T4AINPPS0 : 1;
15661 unsigned T4AINPPS1 : 1;
15662 unsigned T4AINPPS2 : 1;
15663 unsigned T4AINPPS3 : 1;
15664 unsigned T4AINPPS4 : 1;
15665 unsigned : 1;
15666 unsigned : 1;
15667 unsigned : 1;
15670 struct
15672 unsigned T4AINPPS : 5;
15673 unsigned : 3;
15675 } __T4AINPPSbits_t;
15677 extern __at(0x0E9D) volatile __T4AINPPSbits_t T4AINPPSbits;
15679 #define _T4AINPPS0 0x01
15680 #define _T4AINPPS1 0x02
15681 #define _T4AINPPS2 0x04
15682 #define _T4AINPPS3 0x08
15683 #define _T4AINPPS4 0x10
15685 //==============================================================================
15688 //==============================================================================
15689 // T6AINPPS Bits
15691 extern __at(0x0E9E) __sfr T6AINPPS;
15693 typedef union
15695 struct
15697 unsigned T6AINPPS0 : 1;
15698 unsigned T6AINPPS1 : 1;
15699 unsigned T6AINPPS2 : 1;
15700 unsigned T6AINPPS3 : 1;
15701 unsigned T6AINPPS4 : 1;
15702 unsigned : 1;
15703 unsigned : 1;
15704 unsigned : 1;
15707 struct
15709 unsigned T6AINPPS : 5;
15710 unsigned : 3;
15712 } __T6AINPPSbits_t;
15714 extern __at(0x0E9E) volatile __T6AINPPSbits_t T6AINPPSbits;
15716 #define _T6AINPPS0 0x01
15717 #define _T6AINPPS1 0x02
15718 #define _T6AINPPS2 0x04
15719 #define _T6AINPPS3 0x08
15720 #define _T6AINPPS4 0x10
15722 //==============================================================================
15725 //==============================================================================
15726 // CCP1PPS Bits
15728 extern __at(0x0EA1) __sfr CCP1PPS;
15730 typedef union
15732 struct
15734 unsigned CCP1PPS0 : 1;
15735 unsigned CCP1PPS1 : 1;
15736 unsigned CCP1PPS2 : 1;
15737 unsigned CCP1PPS3 : 1;
15738 unsigned CCP1PPS4 : 1;
15739 unsigned : 1;
15740 unsigned : 1;
15741 unsigned : 1;
15744 struct
15746 unsigned CCP1PPS : 5;
15747 unsigned : 3;
15749 } __CCP1PPSbits_t;
15751 extern __at(0x0EA1) volatile __CCP1PPSbits_t CCP1PPSbits;
15753 #define _CCP1PPS0 0x01
15754 #define _CCP1PPS1 0x02
15755 #define _CCP1PPS2 0x04
15756 #define _CCP1PPS3 0x08
15757 #define _CCP1PPS4 0x10
15759 //==============================================================================
15762 //==============================================================================
15763 // CCP2PPS Bits
15765 extern __at(0x0EA2) __sfr CCP2PPS;
15767 typedef union
15769 struct
15771 unsigned CCP2PPS0 : 1;
15772 unsigned CCP2PPS1 : 1;
15773 unsigned CCP2PPS2 : 1;
15774 unsigned CCP2PPS3 : 1;
15775 unsigned CCP2PPS4 : 1;
15776 unsigned : 1;
15777 unsigned : 1;
15778 unsigned : 1;
15781 struct
15783 unsigned CCP2PPS : 5;
15784 unsigned : 3;
15786 } __CCP2PPSbits_t;
15788 extern __at(0x0EA2) volatile __CCP2PPSbits_t CCP2PPSbits;
15790 #define _CCP2PPS0 0x01
15791 #define _CCP2PPS1 0x02
15792 #define _CCP2PPS2 0x04
15793 #define _CCP2PPS3 0x08
15794 #define _CCP2PPS4 0x10
15796 //==============================================================================
15799 //==============================================================================
15800 // CCP3PPS Bits
15802 extern __at(0x0EA3) __sfr CCP3PPS;
15804 typedef union
15806 struct
15808 unsigned CCP3PPS0 : 1;
15809 unsigned CCP3PPS1 : 1;
15810 unsigned CCP3PPS2 : 1;
15811 unsigned CCP3PPS3 : 1;
15812 unsigned CCP3PPS4 : 1;
15813 unsigned : 1;
15814 unsigned : 1;
15815 unsigned : 1;
15818 struct
15820 unsigned CCP3PPS : 5;
15821 unsigned : 3;
15823 } __CCP3PPSbits_t;
15825 extern __at(0x0EA3) volatile __CCP3PPSbits_t CCP3PPSbits;
15827 #define _CCP3PPS0 0x01
15828 #define _CCP3PPS1 0x02
15829 #define _CCP3PPS2 0x04
15830 #define _CCP3PPS3 0x08
15831 #define _CCP3PPS4 0x10
15833 //==============================================================================
15836 //==============================================================================
15837 // CCP4PPS Bits
15839 extern __at(0x0EA4) __sfr CCP4PPS;
15841 typedef union
15843 struct
15845 unsigned CCP4PPS0 : 1;
15846 unsigned CCP4PPS1 : 1;
15847 unsigned CCP4PPS2 : 1;
15848 unsigned CCP4PPS3 : 1;
15849 unsigned CCP4PPS4 : 1;
15850 unsigned : 1;
15851 unsigned : 1;
15852 unsigned : 1;
15855 struct
15857 unsigned CCP4PPS : 5;
15858 unsigned : 3;
15860 } __CCP4PPSbits_t;
15862 extern __at(0x0EA4) volatile __CCP4PPSbits_t CCP4PPSbits;
15864 #define _CCP4PPS0 0x01
15865 #define _CCP4PPS1 0x02
15866 #define _CCP4PPS2 0x04
15867 #define _CCP4PPS3 0x08
15868 #define _CCP4PPS4 0x10
15870 //==============================================================================
15873 //==============================================================================
15874 // CCP5PPS Bits
15876 extern __at(0x0EA5) __sfr CCP5PPS;
15878 typedef union
15880 struct
15882 unsigned CCP5PPS0 : 1;
15883 unsigned CCP5PPS1 : 1;
15884 unsigned CCP5PPS2 : 1;
15885 unsigned CCP5PPS3 : 1;
15886 unsigned CCP5PPS4 : 1;
15887 unsigned CCP6PPS : 1;
15888 unsigned : 1;
15889 unsigned : 1;
15892 struct
15894 unsigned CCP5PPS : 5;
15895 unsigned : 3;
15897 } __CCP5PPSbits_t;
15899 extern __at(0x0EA5) volatile __CCP5PPSbits_t CCP5PPSbits;
15901 #define _CCP5PPS0 0x01
15902 #define _CCP5PPS1 0x02
15903 #define _CCP5PPS2 0x04
15904 #define _CCP5PPS3 0x08
15905 #define _CCP5PPS4 0x10
15906 #define _CCP6PPS 0x20
15908 //==============================================================================
15911 //==============================================================================
15912 // SMT1WINPPS Bits
15914 extern __at(0x0EA9) __sfr SMT1WINPPS;
15916 typedef union
15918 struct
15920 unsigned SMU1WINPPS0 : 1;
15921 unsigned SMU1WINPPS1 : 1;
15922 unsigned SMU1WINPPS2 : 1;
15923 unsigned SMU1WINPPS3 : 1;
15924 unsigned SMU1WINPPS4 : 1;
15925 unsigned : 1;
15926 unsigned : 1;
15927 unsigned : 1;
15930 struct
15932 unsigned SMU1WINPPS : 5;
15933 unsigned : 3;
15935 } __SMT1WINPPSbits_t;
15937 extern __at(0x0EA9) volatile __SMT1WINPPSbits_t SMT1WINPPSbits;
15939 #define _SMU1WINPPS0 0x01
15940 #define _SMU1WINPPS1 0x02
15941 #define _SMU1WINPPS2 0x04
15942 #define _SMU1WINPPS3 0x08
15943 #define _SMU1WINPPS4 0x10
15945 //==============================================================================
15948 //==============================================================================
15949 // SMT1SIGPPS Bits
15951 extern __at(0x0EAA) __sfr SMT1SIGPPS;
15953 typedef union
15955 struct
15957 unsigned SMU1SIGPPS0 : 1;
15958 unsigned SMU1SIGPPS1 : 1;
15959 unsigned SMU1SIGPPS2 : 1;
15960 unsigned SMU1SIGPPS3 : 1;
15961 unsigned SMU1SIGPPS4 : 1;
15962 unsigned : 1;
15963 unsigned : 1;
15964 unsigned : 1;
15967 struct
15969 unsigned SMU1SIGPPS : 5;
15970 unsigned : 3;
15972 } __SMT1SIGPPSbits_t;
15974 extern __at(0x0EAA) volatile __SMT1SIGPPSbits_t SMT1SIGPPSbits;
15976 #define _SMU1SIGPPS0 0x01
15977 #define _SMU1SIGPPS1 0x02
15978 #define _SMU1SIGPPS2 0x04
15979 #define _SMU1SIGPPS3 0x08
15980 #define _SMU1SIGPPS4 0x10
15982 //==============================================================================
15985 //==============================================================================
15986 // SMT2WINPPS Bits
15988 extern __at(0x0EAB) __sfr SMT2WINPPS;
15990 typedef union
15992 struct
15994 unsigned SMU2WINPPS0 : 1;
15995 unsigned SMU2WINPPS1 : 1;
15996 unsigned SMU2WINPPS2 : 1;
15997 unsigned SMU2WINPPS3 : 1;
15998 unsigned SMU2WINPPS4 : 1;
15999 unsigned : 1;
16000 unsigned : 1;
16001 unsigned : 1;
16004 struct
16006 unsigned SMU2WINPPS : 5;
16007 unsigned : 3;
16009 } __SMT2WINPPSbits_t;
16011 extern __at(0x0EAB) volatile __SMT2WINPPSbits_t SMT2WINPPSbits;
16013 #define _SMU2WINPPS0 0x01
16014 #define _SMU2WINPPS1 0x02
16015 #define _SMU2WINPPS2 0x04
16016 #define _SMU2WINPPS3 0x08
16017 #define _SMU2WINPPS4 0x10
16019 //==============================================================================
16022 //==============================================================================
16023 // SMT2SIGPPS Bits
16025 extern __at(0x0EAC) __sfr SMT2SIGPPS;
16027 typedef union
16029 struct
16031 unsigned SMU2SIGPPS0 : 1;
16032 unsigned SMU2SIGPPS1 : 1;
16033 unsigned SMU2SIGPPS2 : 1;
16034 unsigned SMU2SIGPPS3 : 1;
16035 unsigned SMU2SIGPPS4 : 1;
16036 unsigned : 1;
16037 unsigned : 1;
16038 unsigned : 1;
16041 struct
16043 unsigned SMU2SIGPPS : 5;
16044 unsigned : 3;
16046 } __SMT2SIGPPSbits_t;
16048 extern __at(0x0EAC) volatile __SMT2SIGPPSbits_t SMT2SIGPPSbits;
16050 #define _SMU2SIGPPS0 0x01
16051 #define _SMU2SIGPPS1 0x02
16052 #define _SMU2SIGPPS2 0x04
16053 #define _SMU2SIGPPS3 0x08
16054 #define _SMU2SIGPPS4 0x10
16056 //==============================================================================
16059 //==============================================================================
16060 // CWG1PPS Bits
16062 extern __at(0x0EB1) __sfr CWG1PPS;
16064 typedef union
16066 struct
16068 unsigned CWG1PPS0 : 1;
16069 unsigned CWG1PPS1 : 1;
16070 unsigned CWG1PPS2 : 1;
16071 unsigned CWG1PPS3 : 1;
16072 unsigned CWG1PPS4 : 1;
16073 unsigned : 1;
16074 unsigned : 1;
16075 unsigned : 1;
16078 struct
16080 unsigned CWG1PPS : 5;
16081 unsigned : 3;
16083 } __CWG1PPSbits_t;
16085 extern __at(0x0EB1) volatile __CWG1PPSbits_t CWG1PPSbits;
16087 #define _CWG1PPS0 0x01
16088 #define _CWG1PPS1 0x02
16089 #define _CWG1PPS2 0x04
16090 #define _CWG1PPS3 0x08
16091 #define _CWG1PPS4 0x10
16093 //==============================================================================
16096 //==============================================================================
16097 // CWG2PPS Bits
16099 extern __at(0x0EB2) __sfr CWG2PPS;
16101 typedef union
16103 struct
16105 unsigned CWG2PPS0 : 1;
16106 unsigned CWG2PPS1 : 1;
16107 unsigned CWG2PPS2 : 1;
16108 unsigned CWG2PPS3 : 1;
16109 unsigned CWG2PPS4 : 1;
16110 unsigned : 1;
16111 unsigned : 1;
16112 unsigned : 1;
16115 struct
16117 unsigned CWG2PPS : 5;
16118 unsigned : 3;
16120 } __CWG2PPSbits_t;
16122 extern __at(0x0EB2) volatile __CWG2PPSbits_t CWG2PPSbits;
16124 #define _CWG2PPS0 0x01
16125 #define _CWG2PPS1 0x02
16126 #define _CWG2PPS2 0x04
16127 #define _CWG2PPS3 0x08
16128 #define _CWG2PPS4 0x10
16130 //==============================================================================
16133 //==============================================================================
16134 // CWG3PPS Bits
16136 extern __at(0x0EB3) __sfr CWG3PPS;
16138 typedef union
16140 struct
16142 unsigned CWG3PPS0 : 1;
16143 unsigned CWG3PPS1 : 1;
16144 unsigned CWG3PPS2 : 1;
16145 unsigned CWG3PPS3 : 1;
16146 unsigned CWG3PPS4 : 1;
16147 unsigned : 1;
16148 unsigned : 1;
16149 unsigned : 1;
16152 struct
16154 unsigned CWG3PPS : 5;
16155 unsigned : 3;
16157 } __CWG3PPSbits_t;
16159 extern __at(0x0EB3) volatile __CWG3PPSbits_t CWG3PPSbits;
16161 #define _CWG3PPS0 0x01
16162 #define _CWG3PPS1 0x02
16163 #define _CWG3PPS2 0x04
16164 #define _CWG3PPS3 0x08
16165 #define _CWG3PPS4 0x10
16167 //==============================================================================
16170 //==============================================================================
16171 // MDCARLPPS Bits
16173 extern __at(0x0EB8) __sfr MDCARLPPS;
16175 typedef union
16177 struct
16179 unsigned MDCARLPPS0 : 1;
16180 unsigned MDCARLPPS1 : 1;
16181 unsigned MDCARLPPS2 : 1;
16182 unsigned MDCARLPPS3 : 1;
16183 unsigned MDCARLPPS4 : 1;
16184 unsigned : 1;
16185 unsigned : 1;
16186 unsigned : 1;
16189 struct
16191 unsigned MDCARLPPS : 5;
16192 unsigned : 3;
16194 } __MDCARLPPSbits_t;
16196 extern __at(0x0EB8) volatile __MDCARLPPSbits_t MDCARLPPSbits;
16198 #define _MDCARLPPS0 0x01
16199 #define _MDCARLPPS1 0x02
16200 #define _MDCARLPPS2 0x04
16201 #define _MDCARLPPS3 0x08
16202 #define _MDCARLPPS4 0x10
16204 //==============================================================================
16207 //==============================================================================
16208 // MDCARHPPS Bits
16210 extern __at(0x0EB9) __sfr MDCARHPPS;
16212 typedef union
16214 struct
16216 unsigned MDCARHPPS0 : 1;
16217 unsigned MDCARHPPS1 : 1;
16218 unsigned MDCARHPPS2 : 1;
16219 unsigned MDCARHPPS3 : 1;
16220 unsigned MDCARHPPS4 : 1;
16221 unsigned : 1;
16222 unsigned : 1;
16223 unsigned : 1;
16226 struct
16228 unsigned MDCARHPPS : 5;
16229 unsigned : 3;
16231 } __MDCARHPPSbits_t;
16233 extern __at(0x0EB9) volatile __MDCARHPPSbits_t MDCARHPPSbits;
16235 #define _MDCARHPPS0 0x01
16236 #define _MDCARHPPS1 0x02
16237 #define _MDCARHPPS2 0x04
16238 #define _MDCARHPPS3 0x08
16239 #define _MDCARHPPS4 0x10
16241 //==============================================================================
16244 //==============================================================================
16245 // MDSRCPPS Bits
16247 extern __at(0x0EBA) __sfr MDSRCPPS;
16249 typedef union
16251 struct
16253 unsigned MDSRCPPS0 : 1;
16254 unsigned MDSRCPPS1 : 1;
16255 unsigned MDSRCPPS2 : 1;
16256 unsigned MDSRCPPS3 : 1;
16257 unsigned MDSRCPPS4 : 1;
16258 unsigned : 1;
16259 unsigned : 1;
16260 unsigned : 1;
16263 struct
16265 unsigned MDSRCPPS : 5;
16266 unsigned : 3;
16268 } __MDSRCPPSbits_t;
16270 extern __at(0x0EBA) volatile __MDSRCPPSbits_t MDSRCPPSbits;
16272 #define _MDSRCPPS0 0x01
16273 #define _MDSRCPPS1 0x02
16274 #define _MDSRCPPS2 0x04
16275 #define _MDSRCPPS3 0x08
16276 #define _MDSRCPPS4 0x10
16278 //==============================================================================
16281 //==============================================================================
16282 // CLCIN0PPS Bits
16284 extern __at(0x0EBB) __sfr CLCIN0PPS;
16286 typedef union
16288 struct
16290 unsigned CLCIN0PPS0 : 1;
16291 unsigned CLCIN0PPS1 : 1;
16292 unsigned CLCIN0PPS2 : 1;
16293 unsigned CLCIN0PPS3 : 1;
16294 unsigned CLCIN0PPS4 : 1;
16295 unsigned : 1;
16296 unsigned : 1;
16297 unsigned : 1;
16300 struct
16302 unsigned CLCIN0PPS : 5;
16303 unsigned : 3;
16305 } __CLCIN0PPSbits_t;
16307 extern __at(0x0EBB) volatile __CLCIN0PPSbits_t CLCIN0PPSbits;
16309 #define _CLCIN0PPS0 0x01
16310 #define _CLCIN0PPS1 0x02
16311 #define _CLCIN0PPS2 0x04
16312 #define _CLCIN0PPS3 0x08
16313 #define _CLCIN0PPS4 0x10
16315 //==============================================================================
16318 //==============================================================================
16319 // CLCIN1PPS Bits
16321 extern __at(0x0EBC) __sfr CLCIN1PPS;
16323 typedef union
16325 struct
16327 unsigned CLCIN1PPS0 : 1;
16328 unsigned CLCIN1PPS1 : 1;
16329 unsigned CLCIN1PPS2 : 1;
16330 unsigned CLCIN1PPS3 : 1;
16331 unsigned CLCIN1PPS4 : 1;
16332 unsigned : 1;
16333 unsigned : 1;
16334 unsigned : 1;
16337 struct
16339 unsigned CLCIN1PPS : 5;
16340 unsigned : 3;
16342 } __CLCIN1PPSbits_t;
16344 extern __at(0x0EBC) volatile __CLCIN1PPSbits_t CLCIN1PPSbits;
16346 #define _CLCIN1PPS0 0x01
16347 #define _CLCIN1PPS1 0x02
16348 #define _CLCIN1PPS2 0x04
16349 #define _CLCIN1PPS3 0x08
16350 #define _CLCIN1PPS4 0x10
16352 //==============================================================================
16355 //==============================================================================
16356 // CLCIN2PPS Bits
16358 extern __at(0x0EBD) __sfr CLCIN2PPS;
16360 typedef union
16362 struct
16364 unsigned CLCIN2PPS0 : 1;
16365 unsigned CLCIN2PPS1 : 1;
16366 unsigned CLCIN2PPS2 : 1;
16367 unsigned CLCIN2PPS3 : 1;
16368 unsigned CLCIN2PPS4 : 1;
16369 unsigned : 1;
16370 unsigned : 1;
16371 unsigned : 1;
16374 struct
16376 unsigned CLCIN2PPS : 5;
16377 unsigned : 3;
16379 } __CLCIN2PPSbits_t;
16381 extern __at(0x0EBD) volatile __CLCIN2PPSbits_t CLCIN2PPSbits;
16383 #define _CLCIN2PPS0 0x01
16384 #define _CLCIN2PPS1 0x02
16385 #define _CLCIN2PPS2 0x04
16386 #define _CLCIN2PPS3 0x08
16387 #define _CLCIN2PPS4 0x10
16389 //==============================================================================
16392 //==============================================================================
16393 // CLCIN3PPS Bits
16395 extern __at(0x0EBE) __sfr CLCIN3PPS;
16397 typedef union
16399 struct
16401 unsigned CLCIN3PPS0 : 1;
16402 unsigned CLCIN3PPS1 : 1;
16403 unsigned CLCIN3PPS2 : 1;
16404 unsigned CLCIN3PPS3 : 1;
16405 unsigned CLCIN3PPS4 : 1;
16406 unsigned : 1;
16407 unsigned : 1;
16408 unsigned : 1;
16411 struct
16413 unsigned CLCIN3PPS : 5;
16414 unsigned : 3;
16416 } __CLCIN3PPSbits_t;
16418 extern __at(0x0EBE) volatile __CLCIN3PPSbits_t CLCIN3PPSbits;
16420 #define _CLCIN3PPS0 0x01
16421 #define _CLCIN3PPS1 0x02
16422 #define _CLCIN3PPS2 0x04
16423 #define _CLCIN3PPS3 0x08
16424 #define _CLCIN3PPS4 0x10
16426 //==============================================================================
16429 //==============================================================================
16430 // ADCACTPPS Bits
16432 extern __at(0x0EC3) __sfr ADCACTPPS;
16434 typedef union
16436 struct
16438 unsigned ADCACTPPS0 : 1;
16439 unsigned ADCACTPPS1 : 1;
16440 unsigned ADCACTPPS2 : 1;
16441 unsigned ADCACTPPS3 : 1;
16442 unsigned ADCACTPPS4 : 1;
16443 unsigned : 1;
16444 unsigned : 1;
16445 unsigned : 1;
16448 struct
16450 unsigned ADCACTPPS : 5;
16451 unsigned : 3;
16453 } __ADCACTPPSbits_t;
16455 extern __at(0x0EC3) volatile __ADCACTPPSbits_t ADCACTPPSbits;
16457 #define _ADCACTPPS0 0x01
16458 #define _ADCACTPPS1 0x02
16459 #define _ADCACTPPS2 0x04
16460 #define _ADCACTPPS3 0x08
16461 #define _ADCACTPPS4 0x10
16463 //==============================================================================
16466 //==============================================================================
16467 // SSP1CLKPPS Bits
16469 extern __at(0x0EC5) __sfr SSP1CLKPPS;
16471 typedef union
16473 struct
16475 unsigned SSP1CLKPPS0 : 1;
16476 unsigned SSP1CLKPPS1 : 1;
16477 unsigned SSP1CLKPPS2 : 1;
16478 unsigned SSP1CLKPPS3 : 1;
16479 unsigned SSP1CLKPPS4 : 1;
16480 unsigned : 1;
16481 unsigned : 1;
16482 unsigned : 1;
16485 struct
16487 unsigned SSP1CLKPPS : 5;
16488 unsigned : 3;
16490 } __SSP1CLKPPSbits_t;
16492 extern __at(0x0EC5) volatile __SSP1CLKPPSbits_t SSP1CLKPPSbits;
16494 #define _SSP1CLKPPS0 0x01
16495 #define _SSP1CLKPPS1 0x02
16496 #define _SSP1CLKPPS2 0x04
16497 #define _SSP1CLKPPS3 0x08
16498 #define _SSP1CLKPPS4 0x10
16500 //==============================================================================
16503 //==============================================================================
16504 // SSP1DATPPS Bits
16506 extern __at(0x0EC6) __sfr SSP1DATPPS;
16508 typedef union
16510 struct
16512 unsigned SSP1DATPPS0 : 1;
16513 unsigned SSP1DATPPS1 : 1;
16514 unsigned SSP1DATPPS2 : 1;
16515 unsigned SSP1DATPPS3 : 1;
16516 unsigned SSP1DATPPS4 : 1;
16517 unsigned : 1;
16518 unsigned : 1;
16519 unsigned : 1;
16522 struct
16524 unsigned SSP1DATPPS : 5;
16525 unsigned : 3;
16527 } __SSP1DATPPSbits_t;
16529 extern __at(0x0EC6) volatile __SSP1DATPPSbits_t SSP1DATPPSbits;
16531 #define _SSP1DATPPS0 0x01
16532 #define _SSP1DATPPS1 0x02
16533 #define _SSP1DATPPS2 0x04
16534 #define _SSP1DATPPS3 0x08
16535 #define _SSP1DATPPS4 0x10
16537 //==============================================================================
16540 //==============================================================================
16541 // SSP1SSPPS Bits
16543 extern __at(0x0EC7) __sfr SSP1SSPPS;
16545 typedef union
16547 struct
16549 unsigned SSP1SSPPS0 : 1;
16550 unsigned SSP1SSPPS1 : 1;
16551 unsigned SSP1SSPPS2 : 1;
16552 unsigned SSP1SSPPS3 : 1;
16553 unsigned SSP1SSPPS4 : 1;
16554 unsigned : 1;
16555 unsigned : 1;
16556 unsigned : 1;
16559 struct
16561 unsigned SSP1SSPPS : 5;
16562 unsigned : 3;
16564 } __SSP1SSPPSbits_t;
16566 extern __at(0x0EC7) volatile __SSP1SSPPSbits_t SSP1SSPPSbits;
16568 #define _SSP1SSPPS0 0x01
16569 #define _SSP1SSPPS1 0x02
16570 #define _SSP1SSPPS2 0x04
16571 #define _SSP1SSPPS3 0x08
16572 #define _SSP1SSPPS4 0x10
16574 //==============================================================================
16577 //==============================================================================
16578 // SSP2CLKPPS Bits
16580 extern __at(0x0EC8) __sfr SSP2CLKPPS;
16582 typedef union
16584 struct
16586 unsigned SSP2CLKPPS0 : 1;
16587 unsigned SSP2CLKPPS1 : 1;
16588 unsigned SSP2CLKPPS2 : 1;
16589 unsigned SSP2CLKPPS3 : 1;
16590 unsigned SSP2CLKPPS4 : 1;
16591 unsigned : 1;
16592 unsigned : 1;
16593 unsigned : 1;
16596 struct
16598 unsigned SSP2CLKPPS : 5;
16599 unsigned : 3;
16601 } __SSP2CLKPPSbits_t;
16603 extern __at(0x0EC8) volatile __SSP2CLKPPSbits_t SSP2CLKPPSbits;
16605 #define _SSP2CLKPPS0 0x01
16606 #define _SSP2CLKPPS1 0x02
16607 #define _SSP2CLKPPS2 0x04
16608 #define _SSP2CLKPPS3 0x08
16609 #define _SSP2CLKPPS4 0x10
16611 //==============================================================================
16614 //==============================================================================
16615 // SSP2DATPPS Bits
16617 extern __at(0x0EC9) __sfr SSP2DATPPS;
16619 typedef union
16621 struct
16623 unsigned SSP2DATPPS0 : 1;
16624 unsigned SSP2DATPPS1 : 1;
16625 unsigned SSP2DATPPS2 : 1;
16626 unsigned SSP2DATPPS3 : 1;
16627 unsigned SSP2DATPPS4 : 1;
16628 unsigned : 1;
16629 unsigned : 1;
16630 unsigned : 1;
16633 struct
16635 unsigned SSP2DATPPS : 5;
16636 unsigned : 3;
16638 } __SSP2DATPPSbits_t;
16640 extern __at(0x0EC9) volatile __SSP2DATPPSbits_t SSP2DATPPSbits;
16642 #define _SSP2DATPPS0 0x01
16643 #define _SSP2DATPPS1 0x02
16644 #define _SSP2DATPPS2 0x04
16645 #define _SSP2DATPPS3 0x08
16646 #define _SSP2DATPPS4 0x10
16648 //==============================================================================
16651 //==============================================================================
16652 // SSP2SSPPS Bits
16654 extern __at(0x0ECA) __sfr SSP2SSPPS;
16656 typedef union
16658 struct
16660 unsigned SSP2SSPPS0 : 1;
16661 unsigned SSP2SSPPS1 : 1;
16662 unsigned SSP2SSPPS2 : 1;
16663 unsigned SSP2SSPPS3 : 1;
16664 unsigned SSP2SSPPS4 : 1;
16665 unsigned : 1;
16666 unsigned : 1;
16667 unsigned : 1;
16670 struct
16672 unsigned SSP2SSPPS : 5;
16673 unsigned : 3;
16675 } __SSP2SSPPSbits_t;
16677 extern __at(0x0ECA) volatile __SSP2SSPPSbits_t SSP2SSPPSbits;
16679 #define _SSP2SSPPS0 0x01
16680 #define _SSP2SSPPS1 0x02
16681 #define _SSP2SSPPS2 0x04
16682 #define _SSP2SSPPS3 0x08
16683 #define _SSP2SSPPS4 0x10
16685 //==============================================================================
16688 //==============================================================================
16689 // RXPPS Bits
16691 extern __at(0x0ECB) __sfr RXPPS;
16693 typedef union
16695 struct
16697 unsigned RXPPS0 : 1;
16698 unsigned RXPPS1 : 1;
16699 unsigned RXPPS2 : 1;
16700 unsigned RXPPS3 : 1;
16701 unsigned RXPPS4 : 1;
16702 unsigned : 1;
16703 unsigned : 1;
16704 unsigned : 1;
16707 struct
16709 unsigned RXPPS : 5;
16710 unsigned : 3;
16712 } __RXPPSbits_t;
16714 extern __at(0x0ECB) volatile __RXPPSbits_t RXPPSbits;
16716 #define _RXPPS0 0x01
16717 #define _RXPPS1 0x02
16718 #define _RXPPS2 0x04
16719 #define _RXPPS3 0x08
16720 #define _RXPPS4 0x10
16722 //==============================================================================
16725 //==============================================================================
16726 // TXPPS Bits
16728 extern __at(0x0ECC) __sfr TXPPS;
16730 typedef union
16732 struct
16734 unsigned TXPPS0 : 1;
16735 unsigned TXPPS1 : 1;
16736 unsigned TXPPS2 : 1;
16737 unsigned TXPPS3 : 1;
16738 unsigned TXPPS4 : 1;
16739 unsigned : 1;
16740 unsigned : 1;
16741 unsigned : 1;
16744 struct
16746 unsigned TXPPS : 5;
16747 unsigned : 3;
16749 } __TXPPSbits_t;
16751 extern __at(0x0ECC) volatile __TXPPSbits_t TXPPSbits;
16753 #define _TXPPS0 0x01
16754 #define _TXPPS1 0x02
16755 #define _TXPPS2 0x04
16756 #define _TXPPS3 0x08
16757 #define _TXPPS4 0x10
16759 //==============================================================================
16762 //==============================================================================
16763 // RA0PPS Bits
16765 extern __at(0x0F10) __sfr RA0PPS;
16767 typedef union
16769 struct
16771 unsigned RA0PPS0 : 1;
16772 unsigned RA0PPS1 : 1;
16773 unsigned RA0PPS2 : 1;
16774 unsigned RA0PPS3 : 1;
16775 unsigned RA0PPS4 : 1;
16776 unsigned RA0PPS5 : 1;
16777 unsigned : 1;
16778 unsigned : 1;
16781 struct
16783 unsigned RA0PPS : 6;
16784 unsigned : 2;
16786 } __RA0PPSbits_t;
16788 extern __at(0x0F10) volatile __RA0PPSbits_t RA0PPSbits;
16790 #define _RA0PPS0 0x01
16791 #define _RA0PPS1 0x02
16792 #define _RA0PPS2 0x04
16793 #define _RA0PPS3 0x08
16794 #define _RA0PPS4 0x10
16795 #define _RA0PPS5 0x20
16797 //==============================================================================
16800 //==============================================================================
16801 // RA1PPS Bits
16803 extern __at(0x0F11) __sfr RA1PPS;
16805 typedef union
16807 struct
16809 unsigned RA1PPS0 : 1;
16810 unsigned RA1PPS1 : 1;
16811 unsigned RA1PPS2 : 1;
16812 unsigned RA1PPS3 : 1;
16813 unsigned RA1PPS4 : 1;
16814 unsigned RA1PPS5 : 1;
16815 unsigned : 1;
16816 unsigned : 1;
16819 struct
16821 unsigned RA1PPS : 6;
16822 unsigned : 2;
16824 } __RA1PPSbits_t;
16826 extern __at(0x0F11) volatile __RA1PPSbits_t RA1PPSbits;
16828 #define _RA1PPS0 0x01
16829 #define _RA1PPS1 0x02
16830 #define _RA1PPS2 0x04
16831 #define _RA1PPS3 0x08
16832 #define _RA1PPS4 0x10
16833 #define _RA1PPS5 0x20
16835 //==============================================================================
16838 //==============================================================================
16839 // RA2PPS Bits
16841 extern __at(0x0F12) __sfr RA2PPS;
16843 typedef union
16845 struct
16847 unsigned RA2PPS0 : 1;
16848 unsigned RA2PPS1 : 1;
16849 unsigned RA2PPS2 : 1;
16850 unsigned RA2PPS3 : 1;
16851 unsigned RA2PPS4 : 1;
16852 unsigned RA2PPS5 : 1;
16853 unsigned : 1;
16854 unsigned : 1;
16857 struct
16859 unsigned RA2PPS : 6;
16860 unsigned : 2;
16862 } __RA2PPSbits_t;
16864 extern __at(0x0F12) volatile __RA2PPSbits_t RA2PPSbits;
16866 #define _RA2PPS0 0x01
16867 #define _RA2PPS1 0x02
16868 #define _RA2PPS2 0x04
16869 #define _RA2PPS3 0x08
16870 #define _RA2PPS4 0x10
16871 #define _RA2PPS5 0x20
16873 //==============================================================================
16876 //==============================================================================
16877 // RA3PPS Bits
16879 extern __at(0x0F13) __sfr RA3PPS;
16881 typedef union
16883 struct
16885 unsigned RA3PPS0 : 1;
16886 unsigned RA3PPS1 : 1;
16887 unsigned RA3PPS2 : 1;
16888 unsigned RA3PPS3 : 1;
16889 unsigned RA3PPS4 : 1;
16890 unsigned RA3PPS5 : 1;
16891 unsigned : 1;
16892 unsigned : 1;
16895 struct
16897 unsigned RA3PPS : 6;
16898 unsigned : 2;
16900 } __RA3PPSbits_t;
16902 extern __at(0x0F13) volatile __RA3PPSbits_t RA3PPSbits;
16904 #define _RA3PPS0 0x01
16905 #define _RA3PPS1 0x02
16906 #define _RA3PPS2 0x04
16907 #define _RA3PPS3 0x08
16908 #define _RA3PPS4 0x10
16909 #define _RA3PPS5 0x20
16911 //==============================================================================
16914 //==============================================================================
16915 // RA4PPS Bits
16917 extern __at(0x0F14) __sfr RA4PPS;
16919 typedef union
16921 struct
16923 unsigned RA4PPS0 : 1;
16924 unsigned RA4PPS1 : 1;
16925 unsigned RA4PPS2 : 1;
16926 unsigned RA4PPS3 : 1;
16927 unsigned RA4PPS4 : 1;
16928 unsigned RA4PPS5 : 1;
16929 unsigned : 1;
16930 unsigned : 1;
16933 struct
16935 unsigned RA4PPS : 6;
16936 unsigned : 2;
16938 } __RA4PPSbits_t;
16940 extern __at(0x0F14) volatile __RA4PPSbits_t RA4PPSbits;
16942 #define _RA4PPS0 0x01
16943 #define _RA4PPS1 0x02
16944 #define _RA4PPS2 0x04
16945 #define _RA4PPS3 0x08
16946 #define _RA4PPS4 0x10
16947 #define _RA4PPS5 0x20
16949 //==============================================================================
16952 //==============================================================================
16953 // RA5PPS Bits
16955 extern __at(0x0F15) __sfr RA5PPS;
16957 typedef union
16959 struct
16961 unsigned RA5PPS0 : 1;
16962 unsigned RA5PPS1 : 1;
16963 unsigned RA5PPS2 : 1;
16964 unsigned RA5PPS3 : 1;
16965 unsigned RA5PPS4 : 1;
16966 unsigned RA5PPS5 : 1;
16967 unsigned : 1;
16968 unsigned : 1;
16971 struct
16973 unsigned RA5PPS : 6;
16974 unsigned : 2;
16976 } __RA5PPSbits_t;
16978 extern __at(0x0F15) volatile __RA5PPSbits_t RA5PPSbits;
16980 #define _RA5PPS0 0x01
16981 #define _RA5PPS1 0x02
16982 #define _RA5PPS2 0x04
16983 #define _RA5PPS3 0x08
16984 #define _RA5PPS4 0x10
16985 #define _RA5PPS5 0x20
16987 //==============================================================================
16990 //==============================================================================
16991 // RA6PPS Bits
16993 extern __at(0x0F16) __sfr RA6PPS;
16995 typedef union
16997 struct
16999 unsigned RA6PPS0 : 1;
17000 unsigned RA6PPS1 : 1;
17001 unsigned RA6PPS2 : 1;
17002 unsigned RA6PPS3 : 1;
17003 unsigned RA6PPS4 : 1;
17004 unsigned RA6PPS5 : 1;
17005 unsigned : 1;
17006 unsigned : 1;
17009 struct
17011 unsigned RA6PPS : 6;
17012 unsigned : 2;
17014 } __RA6PPSbits_t;
17016 extern __at(0x0F16) volatile __RA6PPSbits_t RA6PPSbits;
17018 #define _RA6PPS0 0x01
17019 #define _RA6PPS1 0x02
17020 #define _RA6PPS2 0x04
17021 #define _RA6PPS3 0x08
17022 #define _RA6PPS4 0x10
17023 #define _RA6PPS5 0x20
17025 //==============================================================================
17028 //==============================================================================
17029 // RA7PPS Bits
17031 extern __at(0x0F17) __sfr RA7PPS;
17033 typedef union
17035 struct
17037 unsigned RA7PPS0 : 1;
17038 unsigned RA7PPS1 : 1;
17039 unsigned RA7PPS2 : 1;
17040 unsigned RA7PPS3 : 1;
17041 unsigned RA7PPS4 : 1;
17042 unsigned RA7PPS5 : 1;
17043 unsigned : 1;
17044 unsigned : 1;
17047 struct
17049 unsigned RA7PPS : 6;
17050 unsigned : 2;
17052 } __RA7PPSbits_t;
17054 extern __at(0x0F17) volatile __RA7PPSbits_t RA7PPSbits;
17056 #define _RA7PPS0 0x01
17057 #define _RA7PPS1 0x02
17058 #define _RA7PPS2 0x04
17059 #define _RA7PPS3 0x08
17060 #define _RA7PPS4 0x10
17061 #define _RA7PPS5 0x20
17063 //==============================================================================
17066 //==============================================================================
17067 // RB0PPS Bits
17069 extern __at(0x0F18) __sfr RB0PPS;
17071 typedef union
17073 struct
17075 unsigned RB0PPS0 : 1;
17076 unsigned RB0PPS1 : 1;
17077 unsigned RB0PPS2 : 1;
17078 unsigned RB0PPS3 : 1;
17079 unsigned RB0PPS4 : 1;
17080 unsigned RB0PPS5 : 1;
17081 unsigned : 1;
17082 unsigned : 1;
17085 struct
17087 unsigned RB0PPS : 6;
17088 unsigned : 2;
17090 } __RB0PPSbits_t;
17092 extern __at(0x0F18) volatile __RB0PPSbits_t RB0PPSbits;
17094 #define _RB0PPS0 0x01
17095 #define _RB0PPS1 0x02
17096 #define _RB0PPS2 0x04
17097 #define _RB0PPS3 0x08
17098 #define _RB0PPS4 0x10
17099 #define _RB0PPS5 0x20
17101 //==============================================================================
17104 //==============================================================================
17105 // RB1PPS Bits
17107 extern __at(0x0F19) __sfr RB1PPS;
17109 typedef union
17111 struct
17113 unsigned RB1PPS0 : 1;
17114 unsigned RB1PPS1 : 1;
17115 unsigned RB1PPS2 : 1;
17116 unsigned RB1PPS3 : 1;
17117 unsigned RB1PPS4 : 1;
17118 unsigned RB1PPS5 : 1;
17119 unsigned : 1;
17120 unsigned : 1;
17123 struct
17125 unsigned RB1PPS : 6;
17126 unsigned : 2;
17128 } __RB1PPSbits_t;
17130 extern __at(0x0F19) volatile __RB1PPSbits_t RB1PPSbits;
17132 #define _RB1PPS0 0x01
17133 #define _RB1PPS1 0x02
17134 #define _RB1PPS2 0x04
17135 #define _RB1PPS3 0x08
17136 #define _RB1PPS4 0x10
17137 #define _RB1PPS5 0x20
17139 //==============================================================================
17142 //==============================================================================
17143 // RB2PPS Bits
17145 extern __at(0x0F1A) __sfr RB2PPS;
17147 typedef union
17149 struct
17151 unsigned RB2PPS0 : 1;
17152 unsigned RB2PPS1 : 1;
17153 unsigned RB2PPS2 : 1;
17154 unsigned RB2PPS3 : 1;
17155 unsigned RB2PPS4 : 1;
17156 unsigned RB2PPS5 : 1;
17157 unsigned : 1;
17158 unsigned : 1;
17161 struct
17163 unsigned RB2PPS : 6;
17164 unsigned : 2;
17166 } __RB2PPSbits_t;
17168 extern __at(0x0F1A) volatile __RB2PPSbits_t RB2PPSbits;
17170 #define _RB2PPS0 0x01
17171 #define _RB2PPS1 0x02
17172 #define _RB2PPS2 0x04
17173 #define _RB2PPS3 0x08
17174 #define _RB2PPS4 0x10
17175 #define _RB2PPS5 0x20
17177 //==============================================================================
17180 //==============================================================================
17181 // RB3PPS Bits
17183 extern __at(0x0F1B) __sfr RB3PPS;
17185 typedef union
17187 struct
17189 unsigned RB3PPS0 : 1;
17190 unsigned RB3PPS1 : 1;
17191 unsigned RB3PPS2 : 1;
17192 unsigned RB3PPS3 : 1;
17193 unsigned RB3PPS4 : 1;
17194 unsigned RB3PPS5 : 1;
17195 unsigned : 1;
17196 unsigned : 1;
17199 struct
17201 unsigned RB3PPS : 6;
17202 unsigned : 2;
17204 } __RB3PPSbits_t;
17206 extern __at(0x0F1B) volatile __RB3PPSbits_t RB3PPSbits;
17208 #define _RB3PPS0 0x01
17209 #define _RB3PPS1 0x02
17210 #define _RB3PPS2 0x04
17211 #define _RB3PPS3 0x08
17212 #define _RB3PPS4 0x10
17213 #define _RB3PPS5 0x20
17215 //==============================================================================
17218 //==============================================================================
17219 // RB4PPS Bits
17221 extern __at(0x0F1C) __sfr RB4PPS;
17223 typedef union
17225 struct
17227 unsigned RB4PPS0 : 1;
17228 unsigned RB4PPS1 : 1;
17229 unsigned RB4PPS2 : 1;
17230 unsigned RB4PPS3 : 1;
17231 unsigned RB4PPS4 : 1;
17232 unsigned RB4PPS5 : 1;
17233 unsigned : 1;
17234 unsigned : 1;
17237 struct
17239 unsigned RB4PPS : 6;
17240 unsigned : 2;
17242 } __RB4PPSbits_t;
17244 extern __at(0x0F1C) volatile __RB4PPSbits_t RB4PPSbits;
17246 #define _RB4PPS0 0x01
17247 #define _RB4PPS1 0x02
17248 #define _RB4PPS2 0x04
17249 #define _RB4PPS3 0x08
17250 #define _RB4PPS4 0x10
17251 #define _RB4PPS5 0x20
17253 //==============================================================================
17256 //==============================================================================
17257 // RB5PPS Bits
17259 extern __at(0x0F1D) __sfr RB5PPS;
17261 typedef union
17263 struct
17265 unsigned RB5PPS0 : 1;
17266 unsigned RB5PPS1 : 1;
17267 unsigned RB5PPS2 : 1;
17268 unsigned RB5PPS3 : 1;
17269 unsigned RB5PPS4 : 1;
17270 unsigned RB5PPS5 : 1;
17271 unsigned : 1;
17272 unsigned : 1;
17275 struct
17277 unsigned RB5PPS : 6;
17278 unsigned : 2;
17280 } __RB5PPSbits_t;
17282 extern __at(0x0F1D) volatile __RB5PPSbits_t RB5PPSbits;
17284 #define _RB5PPS0 0x01
17285 #define _RB5PPS1 0x02
17286 #define _RB5PPS2 0x04
17287 #define _RB5PPS3 0x08
17288 #define _RB5PPS4 0x10
17289 #define _RB5PPS5 0x20
17291 //==============================================================================
17294 //==============================================================================
17295 // RB6PPS Bits
17297 extern __at(0x0F1E) __sfr RB6PPS;
17299 typedef union
17301 struct
17303 unsigned RB6PPS0 : 1;
17304 unsigned RB6PPS1 : 1;
17305 unsigned RB6PPS2 : 1;
17306 unsigned RB6PPS3 : 1;
17307 unsigned RB6PPS4 : 1;
17308 unsigned RB6PPS5 : 1;
17309 unsigned : 1;
17310 unsigned : 1;
17313 struct
17315 unsigned RB6PPS : 6;
17316 unsigned : 2;
17318 } __RB6PPSbits_t;
17320 extern __at(0x0F1E) volatile __RB6PPSbits_t RB6PPSbits;
17322 #define _RB6PPS0 0x01
17323 #define _RB6PPS1 0x02
17324 #define _RB6PPS2 0x04
17325 #define _RB6PPS3 0x08
17326 #define _RB6PPS4 0x10
17327 #define _RB6PPS5 0x20
17329 //==============================================================================
17332 //==============================================================================
17333 // RB7PPS Bits
17335 extern __at(0x0F1F) __sfr RB7PPS;
17337 typedef union
17339 struct
17341 unsigned RB7PPS0 : 1;
17342 unsigned RB7PPS1 : 1;
17343 unsigned RB7PPS2 : 1;
17344 unsigned RB7PPS3 : 1;
17345 unsigned RB7PPS4 : 1;
17346 unsigned RB7PPS5 : 1;
17347 unsigned : 1;
17348 unsigned : 1;
17351 struct
17353 unsigned RB7PPS : 6;
17354 unsigned : 2;
17356 } __RB7PPSbits_t;
17358 extern __at(0x0F1F) volatile __RB7PPSbits_t RB7PPSbits;
17360 #define _RB7PPS0 0x01
17361 #define _RB7PPS1 0x02
17362 #define _RB7PPS2 0x04
17363 #define _RB7PPS3 0x08
17364 #define _RB7PPS4 0x10
17365 #define _RB7PPS5 0x20
17367 //==============================================================================
17370 //==============================================================================
17371 // RC0PPS Bits
17373 extern __at(0x0F20) __sfr RC0PPS;
17375 typedef union
17377 struct
17379 unsigned RC0PPS0 : 1;
17380 unsigned RC0PPS1 : 1;
17381 unsigned RC0PPS2 : 1;
17382 unsigned RC0PPS3 : 1;
17383 unsigned RC0PPS4 : 1;
17384 unsigned RC0PPS5 : 1;
17385 unsigned : 1;
17386 unsigned : 1;
17389 struct
17391 unsigned RC0PPS : 6;
17392 unsigned : 2;
17394 } __RC0PPSbits_t;
17396 extern __at(0x0F20) volatile __RC0PPSbits_t RC0PPSbits;
17398 #define _RC0PPS0 0x01
17399 #define _RC0PPS1 0x02
17400 #define _RC0PPS2 0x04
17401 #define _RC0PPS3 0x08
17402 #define _RC0PPS4 0x10
17403 #define _RC0PPS5 0x20
17405 //==============================================================================
17408 //==============================================================================
17409 // RC1PPS Bits
17411 extern __at(0x0F21) __sfr RC1PPS;
17413 typedef union
17415 struct
17417 unsigned RC1PPS0 : 1;
17418 unsigned RC1PPS1 : 1;
17419 unsigned RC1PPS2 : 1;
17420 unsigned RC1PPS3 : 1;
17421 unsigned RC1PPS4 : 1;
17422 unsigned RC1PPS5 : 1;
17423 unsigned : 1;
17424 unsigned : 1;
17427 struct
17429 unsigned RC1PPS : 6;
17430 unsigned : 2;
17432 } __RC1PPSbits_t;
17434 extern __at(0x0F21) volatile __RC1PPSbits_t RC1PPSbits;
17436 #define _RC1PPS0 0x01
17437 #define _RC1PPS1 0x02
17438 #define _RC1PPS2 0x04
17439 #define _RC1PPS3 0x08
17440 #define _RC1PPS4 0x10
17441 #define _RC1PPS5 0x20
17443 //==============================================================================
17446 //==============================================================================
17447 // RC2PPS Bits
17449 extern __at(0x0F22) __sfr RC2PPS;
17451 typedef union
17453 struct
17455 unsigned RC2PPS0 : 1;
17456 unsigned RC2PPS1 : 1;
17457 unsigned RC2PPS2 : 1;
17458 unsigned RC2PPS3 : 1;
17459 unsigned RC2PPS4 : 1;
17460 unsigned RC2PPS5 : 1;
17461 unsigned : 1;
17462 unsigned : 1;
17465 struct
17467 unsigned RC2PPS : 6;
17468 unsigned : 2;
17470 } __RC2PPSbits_t;
17472 extern __at(0x0F22) volatile __RC2PPSbits_t RC2PPSbits;
17474 #define _RC2PPS0 0x01
17475 #define _RC2PPS1 0x02
17476 #define _RC2PPS2 0x04
17477 #define _RC2PPS3 0x08
17478 #define _RC2PPS4 0x10
17479 #define _RC2PPS5 0x20
17481 //==============================================================================
17484 //==============================================================================
17485 // RC3PPS Bits
17487 extern __at(0x0F23) __sfr RC3PPS;
17489 typedef union
17491 struct
17493 unsigned RC3PPS0 : 1;
17494 unsigned RC3PPS1 : 1;
17495 unsigned RC3PPS2 : 1;
17496 unsigned RC3PPS3 : 1;
17497 unsigned RC3PPS4 : 1;
17498 unsigned RC3PPS5 : 1;
17499 unsigned : 1;
17500 unsigned : 1;
17503 struct
17505 unsigned RC3PPS : 6;
17506 unsigned : 2;
17508 } __RC3PPSbits_t;
17510 extern __at(0x0F23) volatile __RC3PPSbits_t RC3PPSbits;
17512 #define _RC3PPS0 0x01
17513 #define _RC3PPS1 0x02
17514 #define _RC3PPS2 0x04
17515 #define _RC3PPS3 0x08
17516 #define _RC3PPS4 0x10
17517 #define _RC3PPS5 0x20
17519 //==============================================================================
17522 //==============================================================================
17523 // RC4PPS Bits
17525 extern __at(0x0F24) __sfr RC4PPS;
17527 typedef union
17529 struct
17531 unsigned RC4PPS0 : 1;
17532 unsigned RC4PPS1 : 1;
17533 unsigned RC4PPS2 : 1;
17534 unsigned RC4PPS3 : 1;
17535 unsigned RC4PPS4 : 1;
17536 unsigned RC4PPS5 : 1;
17537 unsigned : 1;
17538 unsigned : 1;
17541 struct
17543 unsigned RC4PPS : 6;
17544 unsigned : 2;
17546 } __RC4PPSbits_t;
17548 extern __at(0x0F24) volatile __RC4PPSbits_t RC4PPSbits;
17550 #define _RC4PPS0 0x01
17551 #define _RC4PPS1 0x02
17552 #define _RC4PPS2 0x04
17553 #define _RC4PPS3 0x08
17554 #define _RC4PPS4 0x10
17555 #define _RC4PPS5 0x20
17557 //==============================================================================
17560 //==============================================================================
17561 // RC5PPS Bits
17563 extern __at(0x0F25) __sfr RC5PPS;
17565 typedef union
17567 struct
17569 unsigned RC5PPS0 : 1;
17570 unsigned RC5PPS1 : 1;
17571 unsigned RC5PPS2 : 1;
17572 unsigned RC5PPS3 : 1;
17573 unsigned RC5PPS4 : 1;
17574 unsigned RC5PPS5 : 1;
17575 unsigned : 1;
17576 unsigned : 1;
17579 struct
17581 unsigned RC5PPS : 6;
17582 unsigned : 2;
17584 } __RC5PPSbits_t;
17586 extern __at(0x0F25) volatile __RC5PPSbits_t RC5PPSbits;
17588 #define _RC5PPS0 0x01
17589 #define _RC5PPS1 0x02
17590 #define _RC5PPS2 0x04
17591 #define _RC5PPS3 0x08
17592 #define _RC5PPS4 0x10
17593 #define _RC5PPS5 0x20
17595 //==============================================================================
17598 //==============================================================================
17599 // RC6PPS Bits
17601 extern __at(0x0F26) __sfr RC6PPS;
17603 typedef union
17605 struct
17607 unsigned RC6PPS0 : 1;
17608 unsigned RC6PPS1 : 1;
17609 unsigned RC6PPS2 : 1;
17610 unsigned RC6PPS3 : 1;
17611 unsigned RC6PPS4 : 1;
17612 unsigned RC6PPS5 : 1;
17613 unsigned : 1;
17614 unsigned : 1;
17617 struct
17619 unsigned RC6PPS : 6;
17620 unsigned : 2;
17622 } __RC6PPSbits_t;
17624 extern __at(0x0F26) volatile __RC6PPSbits_t RC6PPSbits;
17626 #define _RC6PPS0 0x01
17627 #define _RC6PPS1 0x02
17628 #define _RC6PPS2 0x04
17629 #define _RC6PPS3 0x08
17630 #define _RC6PPS4 0x10
17631 #define _RC6PPS5 0x20
17633 //==============================================================================
17636 //==============================================================================
17637 // RC7PPS Bits
17639 extern __at(0x0F27) __sfr RC7PPS;
17641 typedef union
17643 struct
17645 unsigned RC7PPS0 : 1;
17646 unsigned RC7PPS1 : 1;
17647 unsigned RC7PPS2 : 1;
17648 unsigned RC7PPS3 : 1;
17649 unsigned RC7PPS4 : 1;
17650 unsigned RC7PPS5 : 1;
17651 unsigned : 1;
17652 unsigned : 1;
17655 struct
17657 unsigned RC7PPS : 6;
17658 unsigned : 2;
17660 } __RC7PPSbits_t;
17662 extern __at(0x0F27) volatile __RC7PPSbits_t RC7PPSbits;
17664 #define _RC7PPS0 0x01
17665 #define _RC7PPS1 0x02
17666 #define _RC7PPS2 0x04
17667 #define _RC7PPS3 0x08
17668 #define _RC7PPS4 0x10
17669 #define _RC7PPS5 0x20
17671 //==============================================================================
17674 //==============================================================================
17675 // ANSELA Bits
17677 extern __at(0x0F38) __sfr ANSELA;
17679 typedef struct
17681 unsigned ANSA0 : 1;
17682 unsigned ANSA1 : 1;
17683 unsigned ANSA2 : 1;
17684 unsigned ANSA3 : 1;
17685 unsigned ANSA4 : 1;
17686 unsigned ANSA5 : 1;
17687 unsigned ANSA6 : 1;
17688 unsigned ANSA7 : 1;
17689 } __ANSELAbits_t;
17691 extern __at(0x0F38) volatile __ANSELAbits_t ANSELAbits;
17693 #define _ANSA0 0x01
17694 #define _ANSA1 0x02
17695 #define _ANSA2 0x04
17696 #define _ANSA3 0x08
17697 #define _ANSA4 0x10
17698 #define _ANSA5 0x20
17699 #define _ANSA6 0x40
17700 #define _ANSA7 0x80
17702 //==============================================================================
17705 //==============================================================================
17706 // WPUA Bits
17708 extern __at(0x0F39) __sfr WPUA;
17710 typedef struct
17712 unsigned WPUA0 : 1;
17713 unsigned WPUA1 : 1;
17714 unsigned WPUA2 : 1;
17715 unsigned WPUA3 : 1;
17716 unsigned WPUA4 : 1;
17717 unsigned WPUA5 : 1;
17718 unsigned WPUA6 : 1;
17719 unsigned WPUA7 : 1;
17720 } __WPUAbits_t;
17722 extern __at(0x0F39) volatile __WPUAbits_t WPUAbits;
17724 #define _WPUA0 0x01
17725 #define _WPUA1 0x02
17726 #define _WPUA2 0x04
17727 #define _WPUA3 0x08
17728 #define _WPUA4 0x10
17729 #define _WPUA5 0x20
17730 #define _WPUA6 0x40
17731 #define _WPUA7 0x80
17733 //==============================================================================
17736 //==============================================================================
17737 // ODCONA Bits
17739 extern __at(0x0F3A) __sfr ODCONA;
17741 typedef struct
17743 unsigned ODCA0 : 1;
17744 unsigned ODCA1 : 1;
17745 unsigned ODCA2 : 1;
17746 unsigned ODCA3 : 1;
17747 unsigned ODCA4 : 1;
17748 unsigned ODCA5 : 1;
17749 unsigned ODCA6 : 1;
17750 unsigned ODCA7 : 1;
17751 } __ODCONAbits_t;
17753 extern __at(0x0F3A) volatile __ODCONAbits_t ODCONAbits;
17755 #define _ODCA0 0x01
17756 #define _ODCA1 0x02
17757 #define _ODCA2 0x04
17758 #define _ODCA3 0x08
17759 #define _ODCA4 0x10
17760 #define _ODCA5 0x20
17761 #define _ODCA6 0x40
17762 #define _ODCA7 0x80
17764 //==============================================================================
17767 //==============================================================================
17768 // SLRCONA Bits
17770 extern __at(0x0F3B) __sfr SLRCONA;
17772 typedef struct
17774 unsigned SLRA0 : 1;
17775 unsigned SLRA1 : 1;
17776 unsigned SLRA2 : 1;
17777 unsigned SLRA3 : 1;
17778 unsigned SLRA4 : 1;
17779 unsigned SLRA5 : 1;
17780 unsigned SLRA6 : 1;
17781 unsigned SLRA7 : 1;
17782 } __SLRCONAbits_t;
17784 extern __at(0x0F3B) volatile __SLRCONAbits_t SLRCONAbits;
17786 #define _SLRA0 0x01
17787 #define _SLRA1 0x02
17788 #define _SLRA2 0x04
17789 #define _SLRA3 0x08
17790 #define _SLRA4 0x10
17791 #define _SLRA5 0x20
17792 #define _SLRA6 0x40
17793 #define _SLRA7 0x80
17795 //==============================================================================
17798 //==============================================================================
17799 // INLVLA Bits
17801 extern __at(0x0F3C) __sfr INLVLA;
17803 typedef struct
17805 unsigned INLVLA0 : 1;
17806 unsigned INLVLA1 : 1;
17807 unsigned INLVLA2 : 1;
17808 unsigned INLVLA3 : 1;
17809 unsigned INLVLA4 : 1;
17810 unsigned INLVLA5 : 1;
17811 unsigned INLVLA6 : 1;
17812 unsigned INLVLA7 : 1;
17813 } __INLVLAbits_t;
17815 extern __at(0x0F3C) volatile __INLVLAbits_t INLVLAbits;
17817 #define _INLVLA0 0x01
17818 #define _INLVLA1 0x02
17819 #define _INLVLA2 0x04
17820 #define _INLVLA3 0x08
17821 #define _INLVLA4 0x10
17822 #define _INLVLA5 0x20
17823 #define _INLVLA6 0x40
17824 #define _INLVLA7 0x80
17826 //==============================================================================
17829 //==============================================================================
17830 // IOCAP Bits
17832 extern __at(0x0F3D) __sfr IOCAP;
17834 typedef struct
17836 unsigned IOCAP0 : 1;
17837 unsigned IOCAP1 : 1;
17838 unsigned IOCAP2 : 1;
17839 unsigned IOCAP3 : 1;
17840 unsigned IOCAP4 : 1;
17841 unsigned IOCAP5 : 1;
17842 unsigned IOCAP6 : 1;
17843 unsigned IOCAP7 : 1;
17844 } __IOCAPbits_t;
17846 extern __at(0x0F3D) volatile __IOCAPbits_t IOCAPbits;
17848 #define _IOCAP0 0x01
17849 #define _IOCAP1 0x02
17850 #define _IOCAP2 0x04
17851 #define _IOCAP3 0x08
17852 #define _IOCAP4 0x10
17853 #define _IOCAP5 0x20
17854 #define _IOCAP6 0x40
17855 #define _IOCAP7 0x80
17857 //==============================================================================
17860 //==============================================================================
17861 // IOCAN Bits
17863 extern __at(0x0F3E) __sfr IOCAN;
17865 typedef struct
17867 unsigned IOCAN0 : 1;
17868 unsigned IOCAN1 : 1;
17869 unsigned IOCAN2 : 1;
17870 unsigned IOCAN3 : 1;
17871 unsigned IOCAN4 : 1;
17872 unsigned IOCAN5 : 1;
17873 unsigned IOCAN6 : 1;
17874 unsigned IOCAN7 : 1;
17875 } __IOCANbits_t;
17877 extern __at(0x0F3E) volatile __IOCANbits_t IOCANbits;
17879 #define _IOCAN0 0x01
17880 #define _IOCAN1 0x02
17881 #define _IOCAN2 0x04
17882 #define _IOCAN3 0x08
17883 #define _IOCAN4 0x10
17884 #define _IOCAN5 0x20
17885 #define _IOCAN6 0x40
17886 #define _IOCAN7 0x80
17888 //==============================================================================
17891 //==============================================================================
17892 // IOCAF Bits
17894 extern __at(0x0F3F) __sfr IOCAF;
17896 typedef struct
17898 unsigned IOCAF0 : 1;
17899 unsigned IOCAF1 : 1;
17900 unsigned IOCAF2 : 1;
17901 unsigned IOCAF3 : 1;
17902 unsigned IOCAF4 : 1;
17903 unsigned IOCAF5 : 1;
17904 unsigned IOCAF6 : 1;
17905 unsigned IOCAF7 : 1;
17906 } __IOCAFbits_t;
17908 extern __at(0x0F3F) volatile __IOCAFbits_t IOCAFbits;
17910 #define _IOCAF0 0x01
17911 #define _IOCAF1 0x02
17912 #define _IOCAF2 0x04
17913 #define _IOCAF3 0x08
17914 #define _IOCAF4 0x10
17915 #define _IOCAF5 0x20
17916 #define _IOCAF6 0x40
17917 #define _IOCAF7 0x80
17919 //==============================================================================
17922 //==============================================================================
17923 // CCDNA Bits
17925 extern __at(0x0F40) __sfr CCDNA;
17927 typedef struct
17929 unsigned CCDNA0 : 1;
17930 unsigned CCDNA1 : 1;
17931 unsigned CCDNA2 : 1;
17932 unsigned CCDNA3 : 1;
17933 unsigned CCDNA4 : 1;
17934 unsigned CCDNA5 : 1;
17935 unsigned CCDNA6 : 1;
17936 unsigned CCDNA7 : 1;
17937 } __CCDNAbits_t;
17939 extern __at(0x0F40) volatile __CCDNAbits_t CCDNAbits;
17941 #define _CCDNA0 0x01
17942 #define _CCDNA1 0x02
17943 #define _CCDNA2 0x04
17944 #define _CCDNA3 0x08
17945 #define _CCDNA4 0x10
17946 #define _CCDNA5 0x20
17947 #define _CCDNA6 0x40
17948 #define _CCDNA7 0x80
17950 //==============================================================================
17953 //==============================================================================
17954 // CCDPA Bits
17956 extern __at(0x0F41) __sfr CCDPA;
17958 typedef struct
17960 unsigned CCDPA0 : 1;
17961 unsigned CCDPA1 : 1;
17962 unsigned CCDPA2 : 1;
17963 unsigned CCDPA3 : 1;
17964 unsigned CCDPA4 : 1;
17965 unsigned CCDPA5 : 1;
17966 unsigned CCDPA6 : 1;
17967 unsigned CCDPA7 : 1;
17968 } __CCDPAbits_t;
17970 extern __at(0x0F41) volatile __CCDPAbits_t CCDPAbits;
17972 #define _CCDPA0 0x01
17973 #define _CCDPA1 0x02
17974 #define _CCDPA2 0x04
17975 #define _CCDPA3 0x08
17976 #define _CCDPA4 0x10
17977 #define _CCDPA5 0x20
17978 #define _CCDPA6 0x40
17979 #define _CCDPA7 0x80
17981 //==============================================================================
17984 //==============================================================================
17985 // ANSELB Bits
17987 extern __at(0x0F43) __sfr ANSELB;
17989 typedef struct
17991 unsigned ANSB0 : 1;
17992 unsigned ANSB1 : 1;
17993 unsigned ANSB2 : 1;
17994 unsigned ANSB3 : 1;
17995 unsigned ANSB4 : 1;
17996 unsigned ANSB5 : 1;
17997 unsigned ANSB6 : 1;
17998 unsigned ANSB7 : 1;
17999 } __ANSELBbits_t;
18001 extern __at(0x0F43) volatile __ANSELBbits_t ANSELBbits;
18003 #define _ANSB0 0x01
18004 #define _ANSB1 0x02
18005 #define _ANSB2 0x04
18006 #define _ANSB3 0x08
18007 #define _ANSB4 0x10
18008 #define _ANSB5 0x20
18009 #define _ANSB6 0x40
18010 #define _ANSB7 0x80
18012 //==============================================================================
18015 //==============================================================================
18016 // WPUB Bits
18018 extern __at(0x0F44) __sfr WPUB;
18020 typedef struct
18022 unsigned WPUB0 : 1;
18023 unsigned WPUB1 : 1;
18024 unsigned WPUB2 : 1;
18025 unsigned WPUB3 : 1;
18026 unsigned WPUB4 : 1;
18027 unsigned WPUB5 : 1;
18028 unsigned WPUB6 : 1;
18029 unsigned WPUB7 : 1;
18030 } __WPUBbits_t;
18032 extern __at(0x0F44) volatile __WPUBbits_t WPUBbits;
18034 #define _WPUB0 0x01
18035 #define _WPUB1 0x02
18036 #define _WPUB2 0x04
18037 #define _WPUB3 0x08
18038 #define _WPUB4 0x10
18039 #define _WPUB5 0x20
18040 #define _WPUB6 0x40
18041 #define _WPUB7 0x80
18043 //==============================================================================
18046 //==============================================================================
18047 // ODCONB Bits
18049 extern __at(0x0F45) __sfr ODCONB;
18051 typedef struct
18053 unsigned ODCB0 : 1;
18054 unsigned ODCB1 : 1;
18055 unsigned ODCB2 : 1;
18056 unsigned ODCB3 : 1;
18057 unsigned ODCB4 : 1;
18058 unsigned ODCB5 : 1;
18059 unsigned ODCB6 : 1;
18060 unsigned ODCB7 : 1;
18061 } __ODCONBbits_t;
18063 extern __at(0x0F45) volatile __ODCONBbits_t ODCONBbits;
18065 #define _ODCB0 0x01
18066 #define _ODCB1 0x02
18067 #define _ODCB2 0x04
18068 #define _ODCB3 0x08
18069 #define _ODCB4 0x10
18070 #define _ODCB5 0x20
18071 #define _ODCB6 0x40
18072 #define _ODCB7 0x80
18074 //==============================================================================
18077 //==============================================================================
18078 // SLRCONB Bits
18080 extern __at(0x0F46) __sfr SLRCONB;
18082 typedef struct
18084 unsigned SLRB0 : 1;
18085 unsigned SLRB1 : 1;
18086 unsigned SLRB2 : 1;
18087 unsigned SLRB3 : 1;
18088 unsigned SLRB4 : 1;
18089 unsigned SLRB5 : 1;
18090 unsigned SLRB6 : 1;
18091 unsigned SLRB7 : 1;
18092 } __SLRCONBbits_t;
18094 extern __at(0x0F46) volatile __SLRCONBbits_t SLRCONBbits;
18096 #define _SLRB0 0x01
18097 #define _SLRB1 0x02
18098 #define _SLRB2 0x04
18099 #define _SLRB3 0x08
18100 #define _SLRB4 0x10
18101 #define _SLRB5 0x20
18102 #define _SLRB6 0x40
18103 #define _SLRB7 0x80
18105 //==============================================================================
18108 //==============================================================================
18109 // INLVLB Bits
18111 extern __at(0x0F47) __sfr INLVLB;
18113 typedef struct
18115 unsigned INLVLB0 : 1;
18116 unsigned INLVLB1 : 1;
18117 unsigned INLVLB2 : 1;
18118 unsigned INLVLB3 : 1;
18119 unsigned INLVLB4 : 1;
18120 unsigned INLVLB5 : 1;
18121 unsigned INLVLB6 : 1;
18122 unsigned INLVLB7 : 1;
18123 } __INLVLBbits_t;
18125 extern __at(0x0F47) volatile __INLVLBbits_t INLVLBbits;
18127 #define _INLVLB0 0x01
18128 #define _INLVLB1 0x02
18129 #define _INLVLB2 0x04
18130 #define _INLVLB3 0x08
18131 #define _INLVLB4 0x10
18132 #define _INLVLB5 0x20
18133 #define _INLVLB6 0x40
18134 #define _INLVLB7 0x80
18136 //==============================================================================
18139 //==============================================================================
18140 // IOCBP Bits
18142 extern __at(0x0F48) __sfr IOCBP;
18144 typedef struct
18146 unsigned IOCBP0 : 1;
18147 unsigned IOCBP1 : 1;
18148 unsigned IOCBP2 : 1;
18149 unsigned IOCBP3 : 1;
18150 unsigned IOCBP4 : 1;
18151 unsigned IOCBP5 : 1;
18152 unsigned IOCBP6 : 1;
18153 unsigned IOCBP7 : 1;
18154 } __IOCBPbits_t;
18156 extern __at(0x0F48) volatile __IOCBPbits_t IOCBPbits;
18158 #define _IOCBP0 0x01
18159 #define _IOCBP1 0x02
18160 #define _IOCBP2 0x04
18161 #define _IOCBP3 0x08
18162 #define _IOCBP4 0x10
18163 #define _IOCBP5 0x20
18164 #define _IOCBP6 0x40
18165 #define _IOCBP7 0x80
18167 //==============================================================================
18170 //==============================================================================
18171 // IOCBN Bits
18173 extern __at(0x0F49) __sfr IOCBN;
18175 typedef struct
18177 unsigned IOCBN0 : 1;
18178 unsigned IOCBN1 : 1;
18179 unsigned IOCBN2 : 1;
18180 unsigned IOCBN3 : 1;
18181 unsigned IOCBN4 : 1;
18182 unsigned IOCBN5 : 1;
18183 unsigned IOCBN6 : 1;
18184 unsigned IOCBN7 : 1;
18185 } __IOCBNbits_t;
18187 extern __at(0x0F49) volatile __IOCBNbits_t IOCBNbits;
18189 #define _IOCBN0 0x01
18190 #define _IOCBN1 0x02
18191 #define _IOCBN2 0x04
18192 #define _IOCBN3 0x08
18193 #define _IOCBN4 0x10
18194 #define _IOCBN5 0x20
18195 #define _IOCBN6 0x40
18196 #define _IOCBN7 0x80
18198 //==============================================================================
18201 //==============================================================================
18202 // IOCBF Bits
18204 extern __at(0x0F4A) __sfr IOCBF;
18206 typedef struct
18208 unsigned IOCBF0 : 1;
18209 unsigned IOCBF1 : 1;
18210 unsigned IOCBF2 : 1;
18211 unsigned IOCBF3 : 1;
18212 unsigned IOCBF4 : 1;
18213 unsigned IOCBF5 : 1;
18214 unsigned IOCBF6 : 1;
18215 unsigned IOCBF7 : 1;
18216 } __IOCBFbits_t;
18218 extern __at(0x0F4A) volatile __IOCBFbits_t IOCBFbits;
18220 #define _IOCBF0 0x01
18221 #define _IOCBF1 0x02
18222 #define _IOCBF2 0x04
18223 #define _IOCBF3 0x08
18224 #define _IOCBF4 0x10
18225 #define _IOCBF5 0x20
18226 #define _IOCBF6 0x40
18227 #define _IOCBF7 0x80
18229 //==============================================================================
18232 //==============================================================================
18233 // CCDNB Bits
18235 extern __at(0x0F4B) __sfr CCDNB;
18237 typedef struct
18239 unsigned CCDNB0 : 1;
18240 unsigned CCDNB1 : 1;
18241 unsigned CCDNB2 : 1;
18242 unsigned CCDNB3 : 1;
18243 unsigned CCDNB4 : 1;
18244 unsigned CCDNB5 : 1;
18245 unsigned CCDNB6 : 1;
18246 unsigned CCDNB7 : 1;
18247 } __CCDNBbits_t;
18249 extern __at(0x0F4B) volatile __CCDNBbits_t CCDNBbits;
18251 #define _CCDNB0 0x01
18252 #define _CCDNB1 0x02
18253 #define _CCDNB2 0x04
18254 #define _CCDNB3 0x08
18255 #define _CCDNB4 0x10
18256 #define _CCDNB5 0x20
18257 #define _CCDNB6 0x40
18258 #define _CCDNB7 0x80
18260 //==============================================================================
18263 //==============================================================================
18264 // CCDPB Bits
18266 extern __at(0x0F4C) __sfr CCDPB;
18268 typedef struct
18270 unsigned CCDPB0 : 1;
18271 unsigned CCDPB1 : 1;
18272 unsigned CCDPB2 : 1;
18273 unsigned CCDPB3 : 1;
18274 unsigned CCDPB4 : 1;
18275 unsigned CCDPB5 : 1;
18276 unsigned CCDPB6 : 1;
18277 unsigned CCDPB7 : 1;
18278 } __CCDPBbits_t;
18280 extern __at(0x0F4C) volatile __CCDPBbits_t CCDPBbits;
18282 #define _CCDPB0 0x01
18283 #define _CCDPB1 0x02
18284 #define _CCDPB2 0x04
18285 #define _CCDPB3 0x08
18286 #define _CCDPB4 0x10
18287 #define _CCDPB5 0x20
18288 #define _CCDPB6 0x40
18289 #define _CCDPB7 0x80
18291 //==============================================================================
18294 //==============================================================================
18295 // ANSELC Bits
18297 extern __at(0x0F4E) __sfr ANSELC;
18299 typedef struct
18301 unsigned ANSC0 : 1;
18302 unsigned ANSC1 : 1;
18303 unsigned ANSC2 : 1;
18304 unsigned ANSC3 : 1;
18305 unsigned ANSC4 : 1;
18306 unsigned ANSC5 : 1;
18307 unsigned ANSC6 : 1;
18308 unsigned ANSC7 : 1;
18309 } __ANSELCbits_t;
18311 extern __at(0x0F4E) volatile __ANSELCbits_t ANSELCbits;
18313 #define _ANSC0 0x01
18314 #define _ANSC1 0x02
18315 #define _ANSC2 0x04
18316 #define _ANSC3 0x08
18317 #define _ANSC4 0x10
18318 #define _ANSC5 0x20
18319 #define _ANSC6 0x40
18320 #define _ANSC7 0x80
18322 //==============================================================================
18325 //==============================================================================
18326 // WPUC Bits
18328 extern __at(0x0F4F) __sfr WPUC;
18330 typedef struct
18332 unsigned WPUC0 : 1;
18333 unsigned WPUC1 : 1;
18334 unsigned WPUC2 : 1;
18335 unsigned WPUC3 : 1;
18336 unsigned WPUC4 : 1;
18337 unsigned WPUC5 : 1;
18338 unsigned WPUC6 : 1;
18339 unsigned WPUC7 : 1;
18340 } __WPUCbits_t;
18342 extern __at(0x0F4F) volatile __WPUCbits_t WPUCbits;
18344 #define _WPUC0 0x01
18345 #define _WPUC1 0x02
18346 #define _WPUC2 0x04
18347 #define _WPUC3 0x08
18348 #define _WPUC4 0x10
18349 #define _WPUC5 0x20
18350 #define _WPUC6 0x40
18351 #define _WPUC7 0x80
18353 //==============================================================================
18356 //==============================================================================
18357 // ODCONC Bits
18359 extern __at(0x0F50) __sfr ODCONC;
18361 typedef struct
18363 unsigned ODCC0 : 1;
18364 unsigned ODCC1 : 1;
18365 unsigned ODCC2 : 1;
18366 unsigned ODCC3 : 1;
18367 unsigned ODCC4 : 1;
18368 unsigned ODCC5 : 1;
18369 unsigned ODCC6 : 1;
18370 unsigned ODCC7 : 1;
18371 } __ODCONCbits_t;
18373 extern __at(0x0F50) volatile __ODCONCbits_t ODCONCbits;
18375 #define _ODCC0 0x01
18376 #define _ODCC1 0x02
18377 #define _ODCC2 0x04
18378 #define _ODCC3 0x08
18379 #define _ODCC4 0x10
18380 #define _ODCC5 0x20
18381 #define _ODCC6 0x40
18382 #define _ODCC7 0x80
18384 //==============================================================================
18387 //==============================================================================
18388 // SLRCONC Bits
18390 extern __at(0x0F51) __sfr SLRCONC;
18392 typedef struct
18394 unsigned SLRC0 : 1;
18395 unsigned SLRC1 : 1;
18396 unsigned SLRC2 : 1;
18397 unsigned SLRC3 : 1;
18398 unsigned SLRC4 : 1;
18399 unsigned SLRC5 : 1;
18400 unsigned SLRC6 : 1;
18401 unsigned SLRC7 : 1;
18402 } __SLRCONCbits_t;
18404 extern __at(0x0F51) volatile __SLRCONCbits_t SLRCONCbits;
18406 #define _SLRC0 0x01
18407 #define _SLRC1 0x02
18408 #define _SLRC2 0x04
18409 #define _SLRC3 0x08
18410 #define _SLRC4 0x10
18411 #define _SLRC5 0x20
18412 #define _SLRC6 0x40
18413 #define _SLRC7 0x80
18415 //==============================================================================
18418 //==============================================================================
18419 // INLVLC Bits
18421 extern __at(0x0F52) __sfr INLVLC;
18423 typedef struct
18425 unsigned INLVLC0 : 1;
18426 unsigned INLVLC1 : 1;
18427 unsigned INLVLC2 : 1;
18428 unsigned INLVLC3 : 1;
18429 unsigned INLVLC4 : 1;
18430 unsigned INLVLC5 : 1;
18431 unsigned INLVLC6 : 1;
18432 unsigned INLVLC7 : 1;
18433 } __INLVLCbits_t;
18435 extern __at(0x0F52) volatile __INLVLCbits_t INLVLCbits;
18437 #define _INLVLC0 0x01
18438 #define _INLVLC1 0x02
18439 #define _INLVLC2 0x04
18440 #define _INLVLC3 0x08
18441 #define _INLVLC4 0x10
18442 #define _INLVLC5 0x20
18443 #define _INLVLC6 0x40
18444 #define _INLVLC7 0x80
18446 //==============================================================================
18449 //==============================================================================
18450 // IOCCP Bits
18452 extern __at(0x0F53) __sfr IOCCP;
18454 typedef struct
18456 unsigned IOCCP0 : 1;
18457 unsigned IOCCP1 : 1;
18458 unsigned IOCCP2 : 1;
18459 unsigned IOCCP3 : 1;
18460 unsigned IOCCP4 : 1;
18461 unsigned IOCCP5 : 1;
18462 unsigned IOCCP6 : 1;
18463 unsigned IOCCP7 : 1;
18464 } __IOCCPbits_t;
18466 extern __at(0x0F53) volatile __IOCCPbits_t IOCCPbits;
18468 #define _IOCCP0 0x01
18469 #define _IOCCP1 0x02
18470 #define _IOCCP2 0x04
18471 #define _IOCCP3 0x08
18472 #define _IOCCP4 0x10
18473 #define _IOCCP5 0x20
18474 #define _IOCCP6 0x40
18475 #define _IOCCP7 0x80
18477 //==============================================================================
18480 //==============================================================================
18481 // IOCCN Bits
18483 extern __at(0x0F54) __sfr IOCCN;
18485 typedef struct
18487 unsigned IOCCN0 : 1;
18488 unsigned IOCCN1 : 1;
18489 unsigned IOCCN2 : 1;
18490 unsigned IOCCN3 : 1;
18491 unsigned IOCCN4 : 1;
18492 unsigned IOCCN5 : 1;
18493 unsigned IOCCN6 : 1;
18494 unsigned IOCCN7 : 1;
18495 } __IOCCNbits_t;
18497 extern __at(0x0F54) volatile __IOCCNbits_t IOCCNbits;
18499 #define _IOCCN0 0x01
18500 #define _IOCCN1 0x02
18501 #define _IOCCN2 0x04
18502 #define _IOCCN3 0x08
18503 #define _IOCCN4 0x10
18504 #define _IOCCN5 0x20
18505 #define _IOCCN6 0x40
18506 #define _IOCCN7 0x80
18508 //==============================================================================
18511 //==============================================================================
18512 // IOCCF Bits
18514 extern __at(0x0F55) __sfr IOCCF;
18516 typedef struct
18518 unsigned IOCCF0 : 1;
18519 unsigned IOCCF1 : 1;
18520 unsigned IOCCF2 : 1;
18521 unsigned IOCCF3 : 1;
18522 unsigned IOCCF4 : 1;
18523 unsigned IOCCF5 : 1;
18524 unsigned IOCCF6 : 1;
18525 unsigned IOCCF7 : 1;
18526 } __IOCCFbits_t;
18528 extern __at(0x0F55) volatile __IOCCFbits_t IOCCFbits;
18530 #define _IOCCF0 0x01
18531 #define _IOCCF1 0x02
18532 #define _IOCCF2 0x04
18533 #define _IOCCF3 0x08
18534 #define _IOCCF4 0x10
18535 #define _IOCCF5 0x20
18536 #define _IOCCF6 0x40
18537 #define _IOCCF7 0x80
18539 //==============================================================================
18542 //==============================================================================
18543 // CCDNC Bits
18545 extern __at(0x0F56) __sfr CCDNC;
18547 typedef struct
18549 unsigned CCDNC0 : 1;
18550 unsigned CCDNC1 : 1;
18551 unsigned CCDNC2 : 1;
18552 unsigned CCDNC3 : 1;
18553 unsigned CCDNC4 : 1;
18554 unsigned CCDNC5 : 1;
18555 unsigned CCDNC6 : 1;
18556 unsigned CCDNC7 : 1;
18557 } __CCDNCbits_t;
18559 extern __at(0x0F56) volatile __CCDNCbits_t CCDNCbits;
18561 #define _CCDNC0 0x01
18562 #define _CCDNC1 0x02
18563 #define _CCDNC2 0x04
18564 #define _CCDNC3 0x08
18565 #define _CCDNC4 0x10
18566 #define _CCDNC5 0x20
18567 #define _CCDNC6 0x40
18568 #define _CCDNC7 0x80
18570 //==============================================================================
18573 //==============================================================================
18574 // CCDPC Bits
18576 extern __at(0x0F57) __sfr CCDPC;
18578 typedef struct
18580 unsigned CCDPC0 : 1;
18581 unsigned CCDPC1 : 1;
18582 unsigned CCDPC2 : 1;
18583 unsigned CCDPC3 : 1;
18584 unsigned CCDPC4 : 1;
18585 unsigned CCDPC5 : 1;
18586 unsigned CCDPC6 : 1;
18587 unsigned CCDPC7 : 1;
18588 } __CCDPCbits_t;
18590 extern __at(0x0F57) volatile __CCDPCbits_t CCDPCbits;
18592 #define _CCDPC0 0x01
18593 #define _CCDPC1 0x02
18594 #define _CCDPC2 0x04
18595 #define _CCDPC3 0x08
18596 #define _CCDPC4 0x10
18597 #define _CCDPC5 0x20
18598 #define _CCDPC6 0x40
18599 #define _CCDPC7 0x80
18601 //==============================================================================
18604 //==============================================================================
18605 // WPUE Bits
18607 extern __at(0x0F65) __sfr WPUE;
18609 typedef struct
18611 unsigned : 1;
18612 unsigned : 1;
18613 unsigned : 1;
18614 unsigned WPUE3 : 1;
18615 unsigned : 1;
18616 unsigned : 1;
18617 unsigned : 1;
18618 unsigned : 1;
18619 } __WPUEbits_t;
18621 extern __at(0x0F65) volatile __WPUEbits_t WPUEbits;
18623 #define _WPUE3 0x08
18625 //==============================================================================
18628 //==============================================================================
18629 // INLVLE Bits
18631 extern __at(0x0F68) __sfr INLVLE;
18633 typedef struct
18635 unsigned : 1;
18636 unsigned : 1;
18637 unsigned : 1;
18638 unsigned INLVLE3 : 1;
18639 unsigned : 1;
18640 unsigned : 1;
18641 unsigned : 1;
18642 unsigned : 1;
18643 } __INLVLEbits_t;
18645 extern __at(0x0F68) volatile __INLVLEbits_t INLVLEbits;
18647 #define _INLVLE3 0x08
18649 //==============================================================================
18652 //==============================================================================
18653 // IOCEP Bits
18655 extern __at(0x0F69) __sfr IOCEP;
18657 typedef struct
18659 unsigned : 1;
18660 unsigned : 1;
18661 unsigned : 1;
18662 unsigned IOCEP3 : 1;
18663 unsigned : 1;
18664 unsigned : 1;
18665 unsigned : 1;
18666 unsigned : 1;
18667 } __IOCEPbits_t;
18669 extern __at(0x0F69) volatile __IOCEPbits_t IOCEPbits;
18671 #define _IOCEP3 0x08
18673 //==============================================================================
18676 //==============================================================================
18677 // IOCEN Bits
18679 extern __at(0x0F6A) __sfr IOCEN;
18681 typedef struct
18683 unsigned : 1;
18684 unsigned : 1;
18685 unsigned : 1;
18686 unsigned IOCEN3 : 1;
18687 unsigned : 1;
18688 unsigned : 1;
18689 unsigned : 1;
18690 unsigned : 1;
18691 } __IOCENbits_t;
18693 extern __at(0x0F6A) volatile __IOCENbits_t IOCENbits;
18695 #define _IOCEN3 0x08
18697 //==============================================================================
18700 //==============================================================================
18701 // IOCEF Bits
18703 extern __at(0x0F6B) __sfr IOCEF;
18705 typedef struct
18707 unsigned : 1;
18708 unsigned : 1;
18709 unsigned : 1;
18710 unsigned IOCEF3 : 1;
18711 unsigned : 1;
18712 unsigned : 1;
18713 unsigned : 1;
18714 unsigned : 1;
18715 } __IOCEFbits_t;
18717 extern __at(0x0F6B) volatile __IOCEFbits_t IOCEFbits;
18719 #define _IOCEF3 0x08
18721 //==============================================================================
18724 //==============================================================================
18725 // STATUS_SHAD Bits
18727 extern __at(0x0FE4) __sfr STATUS_SHAD;
18729 typedef struct
18731 unsigned C_SHAD : 1;
18732 unsigned DC_SHAD : 1;
18733 unsigned Z_SHAD : 1;
18734 unsigned : 1;
18735 unsigned : 1;
18736 unsigned : 1;
18737 unsigned : 1;
18738 unsigned : 1;
18739 } __STATUS_SHADbits_t;
18741 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
18743 #define _C_SHAD 0x01
18744 #define _DC_SHAD 0x02
18745 #define _Z_SHAD 0x04
18747 //==============================================================================
18749 extern __at(0x0FE5) __sfr WREG_SHAD;
18750 extern __at(0x0FE6) __sfr BSR_SHAD;
18751 extern __at(0x0FE7) __sfr PCLATH_SHAD;
18752 extern __at(0x0FE8) __sfr FSR0L_SHAD;
18753 extern __at(0x0FE9) __sfr FSR0H_SHAD;
18754 extern __at(0x0FEA) __sfr FSR1L_SHAD;
18755 extern __at(0x0FEB) __sfr FSR1H_SHAD;
18756 extern __at(0x0FED) __sfr STKPTR;
18757 extern __at(0x0FEE) __sfr TOSL;
18758 extern __at(0x0FEF) __sfr TOSH;
18760 //==============================================================================
18762 // Configuration Bits
18764 //==============================================================================
18766 #define _CONFIG1 0x8007
18767 #define _CONFIG2 0x8008
18768 #define _CONFIG3 0x8009
18769 #define _CONFIG4 0x800A
18770 #define _CONFIG5 0x800B
18772 //----------------------------- CONFIG1 Options -------------------------------
18774 #define _FEXTOSC_LP 0x3FF8 // LP (crystal oscillator) optimized for 32.768kHz; PFM set to low power.
18775 #define _FEXTOSC_XT 0x3FF9 // XT (crystal oscillator) above 500kHz, below 4MHz; PFM set to medium power.
18776 #define _FEXTOSC_HS 0x3FFA // HS (crystal oscillator) above 4MHz; PFM set to high power.
18777 #define _FEXTOSC_Reserved 0x3FFB // Reserved.
18778 #define _FEXTOSC_OFF 0x3FFC // Oscillator not enabled.
18779 #define _FEXTOSC_ECL 0x3FFD // EC below 500kHz; PFM set to low power.
18780 #define _FEXTOSC_ECM 0x3FFE // EC for 500kHz to 8MHz; PFM set to medium power.
18781 #define _FEXTOSC_ECH 0x3FFF // EC above 8MHz; PFM set to high power.
18782 #define _RSTOSC_HFINT32 0x3F8F // HFINTOSC with OSCFRQ= 32 MHz and CDIV = 1:1.
18783 #define _RSTOSC_HFINTPLL 0x3F9F // HFINTOSC with 2x PLL, with OSCFRQ = 16 MHz and CDIV = 1:1 (FOSC = 32 MHz).
18784 #define _RSTOSC_EXT4X 0x3FAF // EXTOSC with 4x PLL, with EXTOSC operating per FEXTOSC bits.
18785 #define _RSTOSC_Reserved 0x3FBF // Reserved.
18786 #define _RSTOSC_SOSC 0x3FCF // SOSC.
18787 #define _RSTOSC_LFINT 0x3FDF // LFINTOSC.
18788 #define _RSTOSC_HFINT1 0x3FEF // HFINTOSC (1MHz).
18789 #define _RSTOSC_EXT1X 0x3FFF // EXTOSC operating per FEXTOSC bits.
18790 #define _CLKOUTEN_ON 0x3EFF // CLKOUT function is enabled; FOSC/4 clock appears at OSC2.
18791 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled; i/o or oscillator function on OSC2.
18792 #define _CSWEN_OFF 0x37FF // The NOSC and NDIV bits cannot be changed by user software.
18793 #define _CSWEN_ON 0x3FFF // Writing to NOSC and NDIV is allowed.
18794 #define _FCMEN_OFF 0x1FFF // FSCM timer disabled.
18795 #define _FCMEN_ON 0x3FFF // FSCM timer enabled.
18797 //----------------------------- CONFIG2 Options -------------------------------
18799 #define _MCLRE_OFF 0x3FFE // MCLR pin function is port defined function.
18800 #define _MCLRE_ON 0x3FFF // MCLR pin is Master Clear function.
18801 #define _PWRTE_ON 0x3FFD // PWRT enabled.
18802 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
18803 #define _LPBOREN_ON 0x3FDF // ULPBOR enabled.
18804 #define _LPBOREN_OFF 0x3FFF // ULPBOR disabled.
18805 #define _BOREN_OFF 0x3F3F // Brown-out reset disabled.
18806 #define _BOREN_SBOREN 0x3F7F // Brown-out reset enabled according to SBOREN bit.
18807 #define _BOREN_NSLEEP 0x3FBF // Brown-out Reset enabled while running, disabled in sleep; SBOREN is ignored.
18808 #define _BOREN_ON 0x3FFF // Brown-out Reset Enabled, SBOREN bit is ignored.
18809 #define _BORV_HI 0x3DFF // Brown-out Reset Voltage (VBOR) is set to 2.7V.
18810 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (VBOR) set to 1.9V on LF, and 2.45V on F Devices.
18811 #define _ZCD_ON 0x3BFF // Zero-cross detect circuit is always enabled.
18812 #define _ZCD_OFF 0x3FFF // Zero-cross detect circuit is disabled at POR.
18813 #define _PPS1WAY_OFF 0x37FF // The PPSLOCK bit can be set and cleared repeatedly by software.
18814 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit can be cleared and set only once in software.
18815 #define _STVREN_OFF 0x2FFF // Stack Overflow or Underflow will not cause a reset.
18816 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a reset.
18817 #define _DEBUG_ON 0x1FFF // Background debugger enabled; ICSPCLK and ICSPDAT are dedicated to the debugger.
18818 #define _DEBUG_OFF 0x3FFF // Background debugger disabled; ICSPCLK and ICSPDAT are general purpose I/O pins.
18820 //----------------------------- CONFIG3 Options -------------------------------
18822 #define _WDTCPS_WDTCPS_0 0x3FE0 // Divider ratio 1:32.
18823 #define _WDTCPS_WDTCPS_1 0x3FE1 // Divider ratio 1:64.
18824 #define _WDTCPS_WDTCPS_2 0x3FE2 // Divider ratio 1:128.
18825 #define _WDTCPS_WDTCPS_3 0x3FE3 // Divider ratio 1:256.
18826 #define _WDTCPS_WDTCPS_4 0x3FE4 // Divider ratio 1:512.
18827 #define _WDTCPS_WDTCPS_5 0x3FE5 // Divider ratio 1:1024.
18828 #define _WDTCPS_WDTCPS_6 0x3FE6 // Divider ratio 1:2048.
18829 #define _WDTCPS_WDTCPS_7 0x3FE7 // Divider ratio 1:4096.
18830 #define _WDTCPS_WDTCPS_8 0x3FE8 // Divider ratio 1:8192.
18831 #define _WDTCPS_WDTCPS_9 0x3FE9 // Divider ratio 1:16384.
18832 #define _WDTCPS_WDTCPS_10 0x3FEA // Divider ratio 1:32768.
18833 #define _WDTCPS_WDTCPS_11 0x3FEB // Divider ratio 1:65536.
18834 #define _WDTCPS_WDTCPS_12 0x3FEC // Divider ratio 1:131072.
18835 #define _WDTCPS_WDTCPS_13 0x3FED // Divider ratio 1:262144.
18836 #define _WDTCPS_WDTCPS_14 0x3FEE // Divider ratio 1:524299.
18837 #define _WDTCPS_WDTCPS_15 0x3FEF // Divider ratio 1:1048576.
18838 #define _WDTCPS_WDTCPS_16 0x3FF0 // Divider ratio 1:2097152.
18839 #define _WDTCPS_WDTCPS_17 0x3FF1 // Divider ratio 1:4194304.
18840 #define _WDTCPS_WDTCPS_18 0x3FF2 // Divider ratio 1:8388608.
18841 #define _WDTCPS_WDTCPS_19 0x3FF3 // Divider ratio 1:32.
18842 #define _WDTCPS_WDTCPS_20 0x3FF4 // Divider ratio 1:32.
18843 #define _WDTCPS_WDTCPS_21 0x3FF5 // Divider ratio 1:32.
18844 #define _WDTCPS_WDTCPS_22 0x3FF6 // Divider ratio 1:32.
18845 #define _WDTCPS_WDTCPS_23 0x3FF7 // Divider ratio 1:32.
18846 #define _WDTCPS_WDTCPS_24 0x3FF8 // Divider ratio 1:32.
18847 #define _WDTCPS_WDTCPS_25 0x3FF9 // Divider ratio 1:32.
18848 #define _WDTCPS_WDTCPS_26 0x3FFA // Divider ratio 1:32.
18849 #define _WDTCPS_WDTCPS_27 0x3FFB // Divider ratio 1:32.
18850 #define _WDTCPS_WDTCPS_28 0x3FFC // Divider ratio 1:32.
18851 #define _WDTCPS_WDTCPS_29 0x3FFD // Divider ratio 1:32.
18852 #define _WDTCPS_WDTCPS_30 0x3FFE // Divider ratio 1:32.
18853 #define _WDTCPS_WDTCPS_31 0x3FFF // Divider ratio 1:65536; software control of WDTPS.
18854 #define _WDTE_OFF 0x3F9F // WDT Disabled, SWDTEN is ignored.
18855 #define _WDTE_SWDTEN 0x3FBF // WDT enabled/disabled by SWDTEN bit in WDTCON0.
18856 #define _WDTE_NSLEEP 0x3FDF // WDT enabled while sleep=0, suspended when sleep=1; SWDTEN ignored.
18857 #define _WDTE_ON 0x3FFF // WDT enabled regardless of sleep; SWDTEN ignored.
18858 #define _WDTCWS_WDTCWS_0 0x38FF // window delay = 87.5 percent of time; no software control; keyed access required.
18859 #define _WDTCWS_WDTCWS_1 0x39FF // window delay = 75 percent of time; no software control; keyed access required.
18860 #define _WDTCWS_WDTCWS_2 0x3AFF // window delay = 62.5 percent of time; no software control; keyed access required.
18861 #define _WDTCWS_WDTCWS_3 0x3BFF // window delay = 50 percent of time; no software control; keyed access required.
18862 #define _WDTCWS_WDTCWS_4 0x3CFF // window delay = 37.5 percent of time; no software control; keyed access required.
18863 #define _WDTCWS_WDTCWS_5 0x3DFF // window delay = 25 percent of time; no software control; keyed access required.
18864 #define _WDTCWS_WDTCWS_6 0x3EFF // window always open (100%); no software control; keyed access required.
18865 #define _WDTCWS_WDTCWS_7 0x3FFF // window always open (100%); software control; keyed access not required.
18866 #define _WDTCCS_LFINTOSC 0x07FF // WDT reference clock is the 31.0kHz LFINTOSC output.
18867 #define _WDTCCS_HFINTOSC 0x0FFF // WDT reference clock is the 31.25 kHz HFINTOSC.
18868 #define _WDTCCS_SC 0x3FFF // Software Control.
18870 //----------------------------- CONFIG4 Options -------------------------------
18872 #define _WRT_ON 0x3FFC // 0x0000 to 0x1FFF write protected.
18873 #define _WRT_WRT_lower 0x3FFD // 0x0000 to x0FFF write protected.
18874 #define _WRT_WRT_upper 0x3FFE // 0x0000 to 0x01FF write protected.
18875 #define _WRT_OFF 0x3FFF // Write protection off.
18876 #define _SCANE_not_available 0x2FFF // Scanner module is not available for use.
18877 #define _SCANE_available 0x3FFF // Scanner module is available for use.
18878 #define _LVP_OFF 0x1FFF // High Voltage on MCLR/Vpp must be used for programming.
18879 #define _LVP_ON 0x3FFF // Low Voltage programming enabled. MCLR/Vpp pin function is MCLR.
18881 //----------------------------- CONFIG5 Options -------------------------------
18883 #define _CP_ON 0x3FFE // UserNVM code protection enabled.
18884 #define _CP_OFF 0x3FFF // UserNVM code protection disabled.
18885 #define _CPD_ON 0x3FFD // DataNVM code protection enabled.
18886 #define _CPD_OFF 0x3FFF // DataNVM code protection disabled.
18888 //==============================================================================
18890 #define _DEVID1 0x8006
18892 #define _IDLOC0 0x8000
18893 #define _IDLOC1 0x8001
18894 #define _IDLOC2 0x8002
18895 #define _IDLOC3 0x8003
18897 //==============================================================================
18899 #ifndef NO_BIT_DEFINES
18901 #define ADACC8 ADACCHbits.ADACC8 // bit 0
18902 #define ADACC9 ADACCHbits.ADACC9 // bit 1
18903 #define ADACC10 ADACCHbits.ADACC10 // bit 2
18904 #define ADACC11 ADACCHbits.ADACC11 // bit 3
18905 #define ADACC12 ADACCHbits.ADACC12 // bit 4
18906 #define ADACC13 ADACCHbits.ADACC13 // bit 5
18907 #define ADACC14 ADACCHbits.ADACC14 // bit 6
18908 #define ADACC15 ADACCHbits.ADACC15 // bit 7
18910 #define ADACC0 ADACCLbits.ADACC0 // bit 0
18911 #define ADACC1 ADACCLbits.ADACC1 // bit 1
18912 #define ADACC2 ADACCLbits.ADACC2 // bit 2
18913 #define ADACC3 ADACCLbits.ADACC3 // bit 3
18914 #define ADACC4 ADACCLbits.ADACC4 // bit 4
18915 #define ADACC5 ADACCLbits.ADACC5 // bit 5
18916 #define ADACC6 ADACCLbits.ADACC6 // bit 6
18917 #define ADACC7 ADACCLbits.ADACC7 // bit 7
18919 #define ADACQ0 ADACQbits.ADACQ0 // bit 0
18920 #define ADACQ1 ADACQbits.ADACQ1 // bit 1
18921 #define ADACQ2 ADACQbits.ADACQ2 // bit 2
18922 #define ADACQ3 ADACQbits.ADACQ3 // bit 3
18923 #define ADACQ4 ADACQbits.ADACQ4 // bit 4
18924 #define ADACQ5 ADACQbits.ADACQ5 // bit 5
18925 #define ADACQ6 ADACQbits.ADACQ6 // bit 6
18926 #define ADACQ7 ADACQbits.ADACQ7 // bit 7
18928 #define ADACT0 ADACTbits.ADACT0 // bit 0
18929 #define ADACT1 ADACTbits.ADACT1 // bit 1
18930 #define ADACT2 ADACTbits.ADACT2 // bit 2
18931 #define ADACT3 ADACTbits.ADACT3 // bit 3
18932 #define ADACT4 ADACTbits.ADACT4 // bit 4
18934 #define ADCACTPPS0 ADCACTPPSbits.ADCACTPPS0 // bit 0
18935 #define ADCACTPPS1 ADCACTPPSbits.ADCACTPPS1 // bit 1
18936 #define ADCACTPPS2 ADCACTPPSbits.ADCACTPPS2 // bit 2
18937 #define ADCACTPPS3 ADCACTPPSbits.ADCACTPPS3 // bit 3
18938 #define ADCACTPPS4 ADCACTPPSbits.ADCACTPPS4 // bit 4
18940 #define ADCAP0 ADCAPbits.ADCAP0 // bit 0
18941 #define ADCAP1 ADCAPbits.ADCAP1 // bit 1
18942 #define ADCAP2 ADCAPbits.ADCAP2 // bit 2
18943 #define ADCAP3 ADCAPbits.ADCAP3 // bit 3
18944 #define ADCAP4 ADCAPbits.ADCAP4 // bit 4
18946 #define ADCCS0 ADCLKbits.ADCCS0 // bit 0
18947 #define ADCCS1 ADCLKbits.ADCCS1 // bit 1
18948 #define ADCCS2 ADCLKbits.ADCCS2 // bit 2
18949 #define ADCCS3 ADCLKbits.ADCCS3 // bit 3
18950 #define ADCCS4 ADCLKbits.ADCCS4 // bit 4
18951 #define ADCCS5 ADCLKbits.ADCCS5 // bit 5
18953 #define ADCNT0 ADCNTbits.ADCNT0 // bit 0
18954 #define ADCNT1 ADCNTbits.ADCNT1 // bit 1
18955 #define ADCNT2 ADCNTbits.ADCNT2 // bit 2
18956 #define ADCNT3 ADCNTbits.ADCNT3 // bit 3
18957 #define ADCNT4 ADCNTbits.ADCNT4 // bit 4
18958 #define ADCNT5 ADCNTbits.ADCNT5 // bit 5
18959 #define ADCNT6 ADCNTbits.ADCNT6 // bit 6
18960 #define ADCNT7 ADCNTbits.ADCNT7 // bit 7
18962 #define ADGO ADCON0bits.ADGO // bit 0, shadows bit in ADCON0bits
18963 #define DONE ADCON0bits.DONE // bit 0, shadows bit in ADCON0bits
18964 #define NOT_DONE ADCON0bits.NOT_DONE // bit 0, shadows bit in ADCON0bits
18965 #define GO ADCON0bits.GO // bit 0, shadows bit in ADCON0bits
18966 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 0, shadows bit in ADCON0bits
18967 #define ADFM0 ADCON0bits.ADFM0 // bit 2
18968 #define ADFM1 ADCON0bits.ADFM1 // bit 3
18969 #define ADCS ADCON0bits.ADCS // bit 4
18970 #define ADCONT ADCON0bits.ADCONT // bit 6
18971 #define ADON ADCON0bits.ADON // bit 7
18973 #define ADDSEN ADCON1bits.ADDSEN // bit 0
18974 #define ADGPOL ADCON1bits.ADGPOL // bit 5
18975 #define ADIPEN ADCON1bits.ADIPEN // bit 6
18976 #define ADPPOL ADCON1bits.ADPPOL // bit 7
18978 #define ADMD0 ADCON2bits.ADMD0 // bit 0
18979 #define ADMD1 ADCON2bits.ADMD1 // bit 1
18980 #define ADMD2 ADCON2bits.ADMD2 // bit 2
18981 #define ADACLR ADCON2bits.ADACLR // bit 3
18982 #define ADCRS0 ADCON2bits.ADCRS0 // bit 4
18983 #define ADCRS1 ADCON2bits.ADCRS1 // bit 5
18984 #define ADCRS2 ADCON2bits.ADCRS2 // bit 6
18985 #define ADPSIS ADCON2bits.ADPSIS // bit 7
18987 #define ADTMD0 ADCON3bits.ADTMD0 // bit 0
18988 #define ADTMD1 ADCON3bits.ADTMD1 // bit 1
18989 #define ADTMD2 ADCON3bits.ADTMD2 // bit 2
18990 #define ADSOI ADCON3bits.ADSOI // bit 3
18991 #define ADCALC0 ADCON3bits.ADCALC0 // bit 4
18992 #define ADCALC1 ADCON3bits.ADCALC1 // bit 5
18993 #define ADCALC2 ADCON3bits.ADCALC2 // bit 6
18995 #define ADERR8 ADERRHbits.ADERR8 // bit 0
18996 #define ADERR9 ADERRHbits.ADERR9 // bit 1
18997 #define ADERR10 ADERRHbits.ADERR10 // bit 2
18998 #define ADERR11 ADERRHbits.ADERR11 // bit 3
18999 #define ADERR12 ADERRHbits.ADERR12 // bit 4
19000 #define ADERR13 ADERRHbits.ADERR13 // bit 5
19001 #define ADERR14 ADERRHbits.ADERR14 // bit 6
19002 #define ADERR15 ADERRHbits.ADERR15 // bit 7
19004 #define ADERR0 ADERRLbits.ADERR0 // bit 0
19005 #define ADERR1 ADERRLbits.ADERR1 // bit 1
19006 #define ADERR2 ADERRLbits.ADERR2 // bit 2
19007 #define ADERR3 ADERRLbits.ADERR3 // bit 3
19008 #define ADERR4 ADERRLbits.ADERR4 // bit 4
19009 #define ADERR5 ADERRLbits.ADERR5 // bit 5
19010 #define ADERR6 ADERRLbits.ADERR6 // bit 6
19011 #define ADERR7 ADERRLbits.ADERR7 // bit 7
19013 #define ADFLTR8 ADFLTRHbits.ADFLTR8 // bit 0
19014 #define ADFLTR9 ADFLTRHbits.ADFLTR9 // bit 1
19015 #define ADFLTR10 ADFLTRHbits.ADFLTR10 // bit 2
19016 #define ADFLTR11 ADFLTRHbits.ADFLTR11 // bit 3
19017 #define ADFLTR12 ADFLTRHbits.ADFLTR12 // bit 4
19018 #define ADFLTR13 ADFLTRHbits.ADFLTR13 // bit 5
19019 #define ADFLTR14 ADFLTRHbits.ADFLTR14 // bit 6
19020 #define ADFLTR15 ADFLTRHbits.ADFLTR15 // bit 7
19022 #define ADFLTR0 ADFLTRLbits.ADFLTR0 // bit 0
19023 #define ADFLTR1 ADFLTRLbits.ADFLTR1 // bit 1
19024 #define ADFLTR2 ADFLTRLbits.ADFLTR2 // bit 2
19025 #define ADFLTR3 ADFLTRLbits.ADFLTR3 // bit 3
19026 #define ADFLTR4 ADFLTRLbits.ADFLTR4 // bit 4
19027 #define ADFLTR5 ADFLTRLbits.ADFLTR5 // bit 5
19028 #define ADFLTR6 ADFLTRLbits.ADFLTR6 // bit 6
19029 #define ADFLTR7 ADFLTRLbits.ADFLTR7 // bit 7
19031 #define ADLTH8 ADLTHHbits.ADLTH8 // bit 0
19032 #define ADLTH9 ADLTHHbits.ADLTH9 // bit 1
19033 #define ADLTH10 ADLTHHbits.ADLTH10 // bit 2
19034 #define ADLTH11 ADLTHHbits.ADLTH11 // bit 3
19035 #define ADLTH12 ADLTHHbits.ADLTH12 // bit 4
19036 #define ADLTH13 ADLTHHbits.ADLTH13 // bit 5
19037 #define ADLTH14 ADLTHHbits.ADLTH14 // bit 6
19038 #define ADLTH15 ADLTHHbits.ADLTH15 // bit 7
19040 #define ADLTH0 ADLTHLbits.ADLTH0 // bit 0
19041 #define ADLTH1 ADLTHLbits.ADLTH1 // bit 1
19042 #define ADLTH2 ADLTHLbits.ADLTH2 // bit 2
19043 #define ADLTH3 ADLTHLbits.ADLTH3 // bit 3
19044 #define ADLTH4 ADLTHLbits.ADLTH4 // bit 4
19045 #define ADLTH5 ADLTHLbits.ADLTH5 // bit 5
19046 #define ADLTH6 ADLTHLbits.ADLTH6 // bit 6
19047 #define ADLTH7 ADLTHLbits.ADLTH7 // bit 7
19049 #define ADPCH0 ADPCHbits.ADPCH0 // bit 0
19050 #define ADPCH1 ADPCHbits.ADPCH1 // bit 1
19051 #define ADPCH2 ADPCHbits.ADPCH2 // bit 2
19052 #define ADPCH3 ADPCHbits.ADPCH3 // bit 3
19053 #define ADPCH4 ADPCHbits.ADPCH4 // bit 4
19054 #define ADPCH5 ADPCHbits.ADPCH5 // bit 5
19056 #define ADPRE0 ADPREbits.ADPRE0 // bit 0
19057 #define ADPRE1 ADPREbits.ADPRE1 // bit 1
19058 #define ADPRE2 ADPREbits.ADPRE2 // bit 2
19059 #define ADPRE3 ADPREbits.ADPRE3 // bit 3
19060 #define ADPRE4 ADPREbits.ADPRE4 // bit 4
19061 #define ADPRE5 ADPREbits.ADPRE5 // bit 5
19062 #define ADPRE6 ADPREbits.ADPRE6 // bit 6
19063 #define ADPRE7 ADPREbits.ADPRE7 // bit 7
19065 #define ADPREV8 ADPREVHbits.ADPREV8 // bit 0
19066 #define ADPREV9 ADPREVHbits.ADPREV9 // bit 1
19067 #define ADPREV10 ADPREVHbits.ADPREV10 // bit 2
19068 #define ADPREV11 ADPREVHbits.ADPREV11 // bit 3
19069 #define ADPREV12 ADPREVHbits.ADPREV12 // bit 4
19070 #define ADPREV13 ADPREVHbits.ADPREV13 // bit 5
19071 #define ADPREV14 ADPREVHbits.ADPREV14 // bit 6
19072 #define ADPREV15 ADPREVHbits.ADPREV15 // bit 7
19074 #define ADPREV0 ADPREVLbits.ADPREV0 // bit 0
19075 #define ADPREV1 ADPREVLbits.ADPREV1 // bit 1
19076 #define ADPREV2 ADPREVLbits.ADPREV2 // bit 2
19077 #define ADPREV3 ADPREVLbits.ADPREV3 // bit 3
19078 #define ADPREV4 ADPREVLbits.ADPREV4 // bit 4
19079 #define ADPREV5 ADPREVLbits.ADPREV5 // bit 5
19080 #define ADPREV6 ADPREVLbits.ADPREV6 // bit 6
19081 #define ADPREV7 ADPREVLbits.ADPREV7 // bit 7
19083 #define ADPREF0 ADREFbits.ADPREF0 // bit 0
19084 #define ADPREF1 ADREFbits.ADPREF1 // bit 1
19085 #define ADNREF ADREFbits.ADNREF // bit 4
19087 #define ADRPT0 ADRPTbits.ADRPT0 // bit 0
19088 #define ADRPT1 ADRPTbits.ADRPT1 // bit 1
19089 #define ADRPT2 ADRPTbits.ADRPT2 // bit 2
19090 #define ADRPT3 ADRPTbits.ADRPT3 // bit 3
19091 #define ADRPT4 ADRPTbits.ADRPT4 // bit 4
19092 #define ADRPT5 ADRPTbits.ADRPT5 // bit 5
19093 #define ADRPT6 ADRPTbits.ADRPT6 // bit 6
19094 #define ADRPT7 ADRPTbits.ADRPT7 // bit 7
19096 #define ADSTAT0 ADSTATbits.ADSTAT0 // bit 0
19097 #define ADSTAT1 ADSTATbits.ADSTAT1 // bit 1
19098 #define ADSTAT2 ADSTATbits.ADSTAT2 // bit 2
19099 #define ADMACT ADSTATbits.ADMACT // bit 3
19100 #define ADMATH ADSTATbits.ADMATH // bit 4
19101 #define ADLTHR ADSTATbits.ADLTHR // bit 5
19102 #define ADUTHR ADSTATbits.ADUTHR // bit 6
19103 #define ADAOV ADSTATbits.ADAOV // bit 7
19105 #define ADSTPT8 ADSTPTHbits.ADSTPT8 // bit 0
19106 #define ADSTPT9 ADSTPTHbits.ADSTPT9 // bit 1
19107 #define ADSTPT10 ADSTPTHbits.ADSTPT10 // bit 2
19108 #define ADSTPT11 ADSTPTHbits.ADSTPT11 // bit 3
19109 #define ADSTPT12 ADSTPTHbits.ADSTPT12 // bit 4
19110 #define ADSTPT13 ADSTPTHbits.ADSTPT13 // bit 5
19111 #define ADSTPT14 ADSTPTHbits.ADSTPT14 // bit 6
19112 #define ADSTPT15 ADSTPTHbits.ADSTPT15 // bit 7
19114 #define ADSTPT0 ADSTPTLbits.ADSTPT0 // bit 0
19115 #define ADSTPT1 ADSTPTLbits.ADSTPT1 // bit 1
19116 #define ADSTPT2 ADSTPTLbits.ADSTPT2 // bit 2
19117 #define ADSTPT3 ADSTPTLbits.ADSTPT3 // bit 3
19118 #define ADSTPT4 ADSTPTLbits.ADSTPT4 // bit 4
19119 #define ADSTPT5 ADSTPTLbits.ADSTPT5 // bit 5
19120 #define ADSTPT6 ADSTPTLbits.ADSTPT6 // bit 6
19121 #define ADSTPT7 ADSTPTLbits.ADSTPT7 // bit 7
19123 #define ADUTH8 ADUTHHbits.ADUTH8 // bit 0
19124 #define ADUTH9 ADUTHHbits.ADUTH9 // bit 1
19125 #define ADUTH10 ADUTHHbits.ADUTH10 // bit 2
19126 #define ADUTH11 ADUTHHbits.ADUTH11 // bit 3
19127 #define ADUTH12 ADUTHHbits.ADUTH12 // bit 4
19128 #define ADUTH13 ADUTHHbits.ADUTH13 // bit 5
19129 #define ADUTH14 ADUTHHbits.ADUTH14 // bit 6
19130 #define ADUTH15 ADUTHHbits.ADUTH15 // bit 7
19132 #define ADUTH0 ADUTHLbits.ADUTH0 // bit 0
19133 #define ADUTH1 ADUTHLbits.ADUTH1 // bit 1
19134 #define ADUTH2 ADUTHLbits.ADUTH2 // bit 2
19135 #define ADUTH3 ADUTHLbits.ADUTH3 // bit 3
19136 #define ADUTH4 ADUTHLbits.ADUTH4 // bit 4
19137 #define ADUTH5 ADUTHLbits.ADUTH5 // bit 5
19138 #define ADUTH6 ADUTHLbits.ADUTH6 // bit 6
19139 #define ADUTH7 ADUTHLbits.ADUTH7 // bit 7
19141 #define ANSA0 ANSELAbits.ANSA0 // bit 0
19142 #define ANSA1 ANSELAbits.ANSA1 // bit 1
19143 #define ANSA2 ANSELAbits.ANSA2 // bit 2
19144 #define ANSA3 ANSELAbits.ANSA3 // bit 3
19145 #define ANSA4 ANSELAbits.ANSA4 // bit 4
19146 #define ANSA5 ANSELAbits.ANSA5 // bit 5
19147 #define ANSA6 ANSELAbits.ANSA6 // bit 6
19148 #define ANSA7 ANSELAbits.ANSA7 // bit 7
19150 #define ANSB0 ANSELBbits.ANSB0 // bit 0
19151 #define ANSB1 ANSELBbits.ANSB1 // bit 1
19152 #define ANSB2 ANSELBbits.ANSB2 // bit 2
19153 #define ANSB3 ANSELBbits.ANSB3 // bit 3
19154 #define ANSB4 ANSELBbits.ANSB4 // bit 4
19155 #define ANSB5 ANSELBbits.ANSB5 // bit 5
19156 #define ANSB6 ANSELBbits.ANSB6 // bit 6
19157 #define ANSB7 ANSELBbits.ANSB7 // bit 7
19159 #define ANSC0 ANSELCbits.ANSC0 // bit 0
19160 #define ANSC1 ANSELCbits.ANSC1 // bit 1
19161 #define ANSC2 ANSELCbits.ANSC2 // bit 2
19162 #define ANSC3 ANSELCbits.ANSC3 // bit 3
19163 #define ANSC4 ANSELCbits.ANSC4 // bit 4
19164 #define ANSC5 ANSELCbits.ANSC5 // bit 5
19165 #define ANSC6 ANSELCbits.ANSC6 // bit 6
19166 #define ANSC7 ANSELCbits.ANSC7 // bit 7
19168 #define ABDEN BAUD1CONbits.ABDEN // bit 0
19169 #define WUE BAUD1CONbits.WUE // bit 1
19170 #define BRG16 BAUD1CONbits.BRG16 // bit 3
19171 #define SCKP BAUD1CONbits.SCKP // bit 4
19172 #define RCIDL BAUD1CONbits.RCIDL // bit 6
19173 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
19175 #define BORRDY BORCONbits.BORRDY // bit 0
19176 #define SBOREN BORCONbits.SBOREN // bit 7
19178 #define BSR0 BSRbits.BSR0 // bit 0
19179 #define BSR1 BSRbits.BSR1 // bit 1
19180 #define BSR2 BSRbits.BSR2 // bit 2
19181 #define BSR3 BSRbits.BSR3 // bit 3
19182 #define BSR4 BSRbits.BSR4 // bit 4
19184 #define CCDS0 CCDCONbits.CCDS0 // bit 0
19185 #define CCDS1 CCDCONbits.CCDS1 // bit 1
19186 #define CCDEN CCDCONbits.CCDEN // bit 7
19188 #define CCDNA0 CCDNAbits.CCDNA0 // bit 0
19189 #define CCDNA1 CCDNAbits.CCDNA1 // bit 1
19190 #define CCDNA2 CCDNAbits.CCDNA2 // bit 2
19191 #define CCDNA3 CCDNAbits.CCDNA3 // bit 3
19192 #define CCDNA4 CCDNAbits.CCDNA4 // bit 4
19193 #define CCDNA5 CCDNAbits.CCDNA5 // bit 5
19194 #define CCDNA6 CCDNAbits.CCDNA6 // bit 6
19195 #define CCDNA7 CCDNAbits.CCDNA7 // bit 7
19197 #define CCDNB0 CCDNBbits.CCDNB0 // bit 0
19198 #define CCDNB1 CCDNBbits.CCDNB1 // bit 1
19199 #define CCDNB2 CCDNBbits.CCDNB2 // bit 2
19200 #define CCDNB3 CCDNBbits.CCDNB3 // bit 3
19201 #define CCDNB4 CCDNBbits.CCDNB4 // bit 4
19202 #define CCDNB5 CCDNBbits.CCDNB5 // bit 5
19203 #define CCDNB6 CCDNBbits.CCDNB6 // bit 6
19204 #define CCDNB7 CCDNBbits.CCDNB7 // bit 7
19206 #define CCDNC0 CCDNCbits.CCDNC0 // bit 0
19207 #define CCDNC1 CCDNCbits.CCDNC1 // bit 1
19208 #define CCDNC2 CCDNCbits.CCDNC2 // bit 2
19209 #define CCDNC3 CCDNCbits.CCDNC3 // bit 3
19210 #define CCDNC4 CCDNCbits.CCDNC4 // bit 4
19211 #define CCDNC5 CCDNCbits.CCDNC5 // bit 5
19212 #define CCDNC6 CCDNCbits.CCDNC6 // bit 6
19213 #define CCDNC7 CCDNCbits.CCDNC7 // bit 7
19215 #define CCDPA0 CCDPAbits.CCDPA0 // bit 0
19216 #define CCDPA1 CCDPAbits.CCDPA1 // bit 1
19217 #define CCDPA2 CCDPAbits.CCDPA2 // bit 2
19218 #define CCDPA3 CCDPAbits.CCDPA3 // bit 3
19219 #define CCDPA4 CCDPAbits.CCDPA4 // bit 4
19220 #define CCDPA5 CCDPAbits.CCDPA5 // bit 5
19221 #define CCDPA6 CCDPAbits.CCDPA6 // bit 6
19222 #define CCDPA7 CCDPAbits.CCDPA7 // bit 7
19224 #define CCDPB0 CCDPBbits.CCDPB0 // bit 0
19225 #define CCDPB1 CCDPBbits.CCDPB1 // bit 1
19226 #define CCDPB2 CCDPBbits.CCDPB2 // bit 2
19227 #define CCDPB3 CCDPBbits.CCDPB3 // bit 3
19228 #define CCDPB4 CCDPBbits.CCDPB4 // bit 4
19229 #define CCDPB5 CCDPBbits.CCDPB5 // bit 5
19230 #define CCDPB6 CCDPBbits.CCDPB6 // bit 6
19231 #define CCDPB7 CCDPBbits.CCDPB7 // bit 7
19233 #define CCDPC0 CCDPCbits.CCDPC0 // bit 0
19234 #define CCDPC1 CCDPCbits.CCDPC1 // bit 1
19235 #define CCDPC2 CCDPCbits.CCDPC2 // bit 2
19236 #define CCDPC3 CCDPCbits.CCDPC3 // bit 3
19237 #define CCDPC4 CCDPCbits.CCDPC4 // bit 4
19238 #define CCDPC5 CCDPCbits.CCDPC5 // bit 5
19239 #define CCDPC6 CCDPCbits.CCDPC6 // bit 6
19240 #define CCDPC7 CCDPCbits.CCDPC7 // bit 7
19242 #define CTS0 CCP1CAPbits.CTS0 // bit 0, shadows bit in CCP1CAPbits
19243 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0, shadows bit in CCP1CAPbits
19244 #define CTS1 CCP1CAPbits.CTS1 // bit 1, shadows bit in CCP1CAPbits
19245 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1, shadows bit in CCP1CAPbits
19246 #define CTS2 CCP1CAPbits.CTS2 // bit 2, shadows bit in CCP1CAPbits
19247 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2, shadows bit in CCP1CAPbits
19249 #define MODE0 CCP1CONbits.MODE0 // bit 0, shadows bit in CCP1CONbits
19250 #define CCP1MODE0 CCP1CONbits.CCP1MODE0 // bit 0, shadows bit in CCP1CONbits
19251 #define MODE1 CCP1CONbits.MODE1 // bit 1, shadows bit in CCP1CONbits
19252 #define CCP1MODE1 CCP1CONbits.CCP1MODE1 // bit 1, shadows bit in CCP1CONbits
19253 #define MODE2 CCP1CONbits.MODE2 // bit 2, shadows bit in CCP1CONbits
19254 #define CCP1MODE2 CCP1CONbits.CCP1MODE2 // bit 2, shadows bit in CCP1CONbits
19255 #define MODE3 CCP1CONbits.MODE3 // bit 3, shadows bit in CCP1CONbits
19256 #define CCP1MODE3 CCP1CONbits.CCP1MODE3 // bit 3, shadows bit in CCP1CONbits
19257 #define FMT CCP1CONbits.FMT // bit 4, shadows bit in CCP1CONbits
19258 #define CCP1FMT CCP1CONbits.CCP1FMT // bit 4, shadows bit in CCP1CONbits
19259 #define OUT CCP1CONbits.OUT // bit 5, shadows bit in CCP1CONbits
19260 #define CCP1OUT CCP1CONbits.CCP1OUT // bit 5, shadows bit in CCP1CONbits
19261 #define OE CCP1CONbits.OE // bit 6, shadows bit in CCP1CONbits
19262 #define CCP1OE CCP1CONbits.CCP1OE // bit 6, shadows bit in CCP1CONbits
19263 #define EN CCP1CONbits.EN // bit 7, shadows bit in CCP1CONbits
19264 #define CCP1EN CCP1CONbits.CCP1EN // bit 7, shadows bit in CCP1CONbits
19266 #define CCP1PPS0 CCP1PPSbits.CCP1PPS0 // bit 0
19267 #define CCP1PPS1 CCP1PPSbits.CCP1PPS1 // bit 1
19268 #define CCP1PPS2 CCP1PPSbits.CCP1PPS2 // bit 2
19269 #define CCP1PPS3 CCP1PPSbits.CCP1PPS3 // bit 3
19270 #define CCP1PPS4 CCP1PPSbits.CCP1PPS4 // bit 4
19272 #define CCP2PPS0 CCP2PPSbits.CCP2PPS0 // bit 0
19273 #define CCP2PPS1 CCP2PPSbits.CCP2PPS1 // bit 1
19274 #define CCP2PPS2 CCP2PPSbits.CCP2PPS2 // bit 2
19275 #define CCP2PPS3 CCP2PPSbits.CCP2PPS3 // bit 3
19276 #define CCP2PPS4 CCP2PPSbits.CCP2PPS4 // bit 4
19278 #define CCP3PPS0 CCP3PPSbits.CCP3PPS0 // bit 0
19279 #define CCP3PPS1 CCP3PPSbits.CCP3PPS1 // bit 1
19280 #define CCP3PPS2 CCP3PPSbits.CCP3PPS2 // bit 2
19281 #define CCP3PPS3 CCP3PPSbits.CCP3PPS3 // bit 3
19282 #define CCP3PPS4 CCP3PPSbits.CCP3PPS4 // bit 4
19284 #define CCP4PPS0 CCP4PPSbits.CCP4PPS0 // bit 0
19285 #define CCP4PPS1 CCP4PPSbits.CCP4PPS1 // bit 1
19286 #define CCP4PPS2 CCP4PPSbits.CCP4PPS2 // bit 2
19287 #define CCP4PPS3 CCP4PPSbits.CCP4PPS3 // bit 3
19288 #define CCP4PPS4 CCP4PPSbits.CCP4PPS4 // bit 4
19290 #define CCP5PPS0 CCP5PPSbits.CCP5PPS0 // bit 0
19291 #define CCP5PPS1 CCP5PPSbits.CCP5PPS1 // bit 1
19292 #define CCP5PPS2 CCP5PPSbits.CCP5PPS2 // bit 2
19293 #define CCP5PPS3 CCP5PPSbits.CCP5PPS3 // bit 3
19294 #define CCP5PPS4 CCP5PPSbits.CCP5PPS4 // bit 4
19295 #define CCP6PPS CCP5PPSbits.CCP6PPS // bit 5
19297 #define C1TSEL0 CCPTMRS0bits.C1TSEL0 // bit 0
19298 #define C1TSEL1 CCPTMRS0bits.C1TSEL1 // bit 1
19299 #define C2TSEL0 CCPTMRS0bits.C2TSEL0 // bit 2
19300 #define C2TSEL1 CCPTMRS0bits.C2TSEL1 // bit 3
19301 #define C3TSEL0 CCPTMRS0bits.C3TSEL0 // bit 4
19302 #define C3TSEL1 CCPTMRS0bits.C3TSEL1 // bit 5
19303 #define C4TSEL0 CCPTMRS0bits.C4TSEL0 // bit 6
19304 #define C4TSEL1 CCPTMRS0bits.C4TSEL1 // bit 7
19306 #define C5TSEL0 CCPTMRS1bits.C5TSEL0 // bit 0
19307 #define C5TSEL1 CCPTMRS1bits.C5TSEL1 // bit 1
19308 #define P6TSEL0 CCPTMRS1bits.P6TSEL0 // bit 2
19309 #define P6TSEL1 CCPTMRS1bits.P6TSEL1 // bit 3
19310 #define P7TSEL0 CCPTMRS1bits.P7TSEL0 // bit 4
19311 #define P7TSEL1 CCPTMRS1bits.P7TSEL1 // bit 5
19313 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
19314 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
19315 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
19316 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
19317 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
19318 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
19319 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
19320 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
19321 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
19322 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
19323 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
19324 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
19325 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
19326 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
19327 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
19328 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
19330 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
19331 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
19332 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
19333 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
19334 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
19335 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
19336 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
19337 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
19338 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
19339 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
19340 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
19341 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
19342 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
19343 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
19344 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
19345 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
19347 #define LC1G1POL CLC1POLbits.LC1G1POL // bit 0, shadows bit in CLC1POLbits
19348 #define G1POL CLC1POLbits.G1POL // bit 0, shadows bit in CLC1POLbits
19349 #define LC1G2POL CLC1POLbits.LC1G2POL // bit 1, shadows bit in CLC1POLbits
19350 #define G2POL CLC1POLbits.G2POL // bit 1, shadows bit in CLC1POLbits
19351 #define LC1G3POL CLC1POLbits.LC1G3POL // bit 2, shadows bit in CLC1POLbits
19352 #define G3POL CLC1POLbits.G3POL // bit 2, shadows bit in CLC1POLbits
19353 #define LC1G4POL CLC1POLbits.LC1G4POL // bit 3, shadows bit in CLC1POLbits
19354 #define G4POL CLC1POLbits.G4POL // bit 3, shadows bit in CLC1POLbits
19355 #define LC1POL CLC1POLbits.LC1POL // bit 7, shadows bit in CLC1POLbits
19356 #define POL CLC1POLbits.POL // bit 7, shadows bit in CLC1POLbits
19358 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
19359 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
19360 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
19361 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
19362 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
19363 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
19364 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
19365 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
19366 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
19367 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
19368 #define LC1D1S5 CLC1SEL0bits.LC1D1S5 // bit 5, shadows bit in CLC1SEL0bits
19369 #define D1S5 CLC1SEL0bits.D1S5 // bit 5, shadows bit in CLC1SEL0bits
19370 #define LC1D1S6 CLC1SEL0bits.LC1D1S6 // bit 6, shadows bit in CLC1SEL0bits
19371 #define D1S6 CLC1SEL0bits.D1S6 // bit 6, shadows bit in CLC1SEL0bits
19372 #define LC1D1S7 CLC1SEL0bits.LC1D1S7 // bit 7, shadows bit in CLC1SEL0bits
19373 #define D1S7 CLC1SEL0bits.D1S7 // bit 7, shadows bit in CLC1SEL0bits
19375 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
19376 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
19377 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
19378 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
19379 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
19380 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
19381 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
19382 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
19383 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
19384 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
19385 #define LC1D2S5 CLC1SEL1bits.LC1D2S5 // bit 5, shadows bit in CLC1SEL1bits
19386 #define D2S5 CLC1SEL1bits.D2S5 // bit 5, shadows bit in CLC1SEL1bits
19387 #define LC1D2S6 CLC1SEL1bits.LC1D2S6 // bit 6, shadows bit in CLC1SEL1bits
19388 #define D2S6 CLC1SEL1bits.D2S6 // bit 6, shadows bit in CLC1SEL1bits
19389 #define LC1D2S7 CLC1SEL1bits.LC1D2S7 // bit 7, shadows bit in CLC1SEL1bits
19390 #define D2S7 CLC1SEL1bits.D2S7 // bit 7, shadows bit in CLC1SEL1bits
19392 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
19393 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
19394 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
19395 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
19396 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
19397 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
19398 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
19399 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
19400 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
19401 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
19402 #define LC1D3S5 CLC1SEL2bits.LC1D3S5 // bit 5, shadows bit in CLC1SEL2bits
19403 #define D3S5 CLC1SEL2bits.D3S5 // bit 5, shadows bit in CLC1SEL2bits
19404 #define LC1D3S6 CLC1SEL2bits.LC1D3S6 // bit 6, shadows bit in CLC1SEL2bits
19405 #define D3S6 CLC1SEL2bits.D3S6 // bit 6, shadows bit in CLC1SEL2bits
19406 #define LC1D3S7 CLC1SEL2bits.LC1D3S7 // bit 7, shadows bit in CLC1SEL2bits
19407 #define D3S7 CLC1SEL2bits.D3S7 // bit 7, shadows bit in CLC1SEL2bits
19409 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
19410 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
19411 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
19412 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
19413 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
19414 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
19415 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
19416 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
19417 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
19418 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
19419 #define LC1D4S5 CLC1SEL3bits.LC1D4S5 // bit 5, shadows bit in CLC1SEL3bits
19420 #define D4S5 CLC1SEL3bits.D4S5 // bit 5, shadows bit in CLC1SEL3bits
19421 #define LC1D4S6 CLC1SEL3bits.LC1D4S6 // bit 6, shadows bit in CLC1SEL3bits
19422 #define D4S6 CLC1SEL3bits.D4S6 // bit 6, shadows bit in CLC1SEL3bits
19423 #define LC1D4S7 CLC1SEL3bits.LC1D4S7 // bit 7, shadows bit in CLC1SEL3bits
19424 #define D4S7 CLC1SEL3bits.D4S7 // bit 7, shadows bit in CLC1SEL3bits
19426 #define MLC1OUT CLCDATAbits.MLC1OUT // bit 0
19427 #define MLC2OUT CLCDATAbits.MLC2OUT // bit 1
19428 #define MLC3OUT CLCDATAbits.MLC3OUT // bit 2
19429 #define MLC4OUT CLCDATAbits.MLC4OUT // bit 3
19431 #define CLCIN0PPS0 CLCIN0PPSbits.CLCIN0PPS0 // bit 0
19432 #define CLCIN0PPS1 CLCIN0PPSbits.CLCIN0PPS1 // bit 1
19433 #define CLCIN0PPS2 CLCIN0PPSbits.CLCIN0PPS2 // bit 2
19434 #define CLCIN0PPS3 CLCIN0PPSbits.CLCIN0PPS3 // bit 3
19435 #define CLCIN0PPS4 CLCIN0PPSbits.CLCIN0PPS4 // bit 4
19437 #define CLCIN1PPS0 CLCIN1PPSbits.CLCIN1PPS0 // bit 0
19438 #define CLCIN1PPS1 CLCIN1PPSbits.CLCIN1PPS1 // bit 1
19439 #define CLCIN1PPS2 CLCIN1PPSbits.CLCIN1PPS2 // bit 2
19440 #define CLCIN1PPS3 CLCIN1PPSbits.CLCIN1PPS3 // bit 3
19441 #define CLCIN1PPS4 CLCIN1PPSbits.CLCIN1PPS4 // bit 4
19443 #define CLCIN2PPS0 CLCIN2PPSbits.CLCIN2PPS0 // bit 0
19444 #define CLCIN2PPS1 CLCIN2PPSbits.CLCIN2PPS1 // bit 1
19445 #define CLCIN2PPS2 CLCIN2PPSbits.CLCIN2PPS2 // bit 2
19446 #define CLCIN2PPS3 CLCIN2PPSbits.CLCIN2PPS3 // bit 3
19447 #define CLCIN2PPS4 CLCIN2PPSbits.CLCIN2PPS4 // bit 4
19449 #define CLCIN3PPS0 CLCIN3PPSbits.CLCIN3PPS0 // bit 0
19450 #define CLCIN3PPS1 CLCIN3PPSbits.CLCIN3PPS1 // bit 1
19451 #define CLCIN3PPS2 CLCIN3PPSbits.CLCIN3PPS2 // bit 2
19452 #define CLCIN3PPS3 CLCIN3PPSbits.CLCIN3PPS3 // bit 3
19453 #define CLCIN3PPS4 CLCIN3PPSbits.CLCIN3PPS4 // bit 4
19455 #define CLKRCLK0 CLKRCLKbits.CLKRCLK0 // bit 0
19456 #define CLKRCLK1 CLKRCLKbits.CLKRCLK1 // bit 1
19457 #define CLKRCLK2 CLKRCLKbits.CLKRCLK2 // bit 2
19458 #define CLKRCLK3 CLKRCLKbits.CLKRCLK3 // bit 3
19460 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
19461 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
19462 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
19463 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
19464 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
19465 #define CLKREN CLKRCONbits.CLKREN // bit 7
19467 #define NCH0 CM1NSELbits.NCH0 // bit 0, shadows bit in CM1NSELbits
19468 #define C1NCH0 CM1NSELbits.C1NCH0 // bit 0, shadows bit in CM1NSELbits
19469 #define NCH1 CM1NSELbits.NCH1 // bit 1, shadows bit in CM1NSELbits
19470 #define C1NCH1 CM1NSELbits.C1NCH1 // bit 1, shadows bit in CM1NSELbits
19471 #define NCH2 CM1NSELbits.NCH2 // bit 2, shadows bit in CM1NSELbits
19472 #define C1NCH2 CM1NSELbits.C1NCH2 // bit 2, shadows bit in CM1NSELbits
19474 #define PCH0 CM1PSELbits.PCH0 // bit 0, shadows bit in CM1PSELbits
19475 #define C1PCH0 CM1PSELbits.C1PCH0 // bit 0, shadows bit in CM1PSELbits
19476 #define PCH1 CM1PSELbits.PCH1 // bit 1, shadows bit in CM1PSELbits
19477 #define C1PCH1 CM1PSELbits.C1PCH1 // bit 1, shadows bit in CM1PSELbits
19478 #define PCH2 CM1PSELbits.PCH2 // bit 2, shadows bit in CM1PSELbits
19479 #define C1PCH2 CM1PSELbits.C1PCH2 // bit 2, shadows bit in CM1PSELbits
19481 #define DOZE0 CPUDOZEbits.DOZE0 // bit 0
19482 #define DOZE1 CPUDOZEbits.DOZE1 // bit 1
19483 #define DOZE2 CPUDOZEbits.DOZE2 // bit 2
19484 #define DOE CPUDOZEbits.DOE // bit 4
19485 #define ROI CPUDOZEbits.ROI // bit 5
19486 #define DOZEN CPUDOZEbits.DOZEN // bit 6
19487 #define IDLEN CPUDOZEbits.IDLEN // bit 7
19489 #define ACC8 CRCACCHbits.ACC8 // bit 0
19490 #define ACC9 CRCACCHbits.ACC9 // bit 1
19491 #define ACC10 CRCACCHbits.ACC10 // bit 2
19492 #define ACC11 CRCACCHbits.ACC11 // bit 3
19493 #define ACC12 CRCACCHbits.ACC12 // bit 4
19494 #define ACC13 CRCACCHbits.ACC13 // bit 5
19495 #define ACC14 CRCACCHbits.ACC14 // bit 6
19496 #define ACC15 CRCACCHbits.ACC15 // bit 7
19498 #define ACC0 CRCACCLbits.ACC0 // bit 0
19499 #define ACC1 CRCACCLbits.ACC1 // bit 1
19500 #define ACC2 CRCACCLbits.ACC2 // bit 2
19501 #define ACC3 CRCACCLbits.ACC3 // bit 3
19502 #define ACC4 CRCACCLbits.ACC4 // bit 4
19503 #define ACC5 CRCACCLbits.ACC5 // bit 5
19504 #define ACC6 CRCACCLbits.ACC6 // bit 6
19505 #define ACC7 CRCACCLbits.ACC7 // bit 7
19507 #define PLEN0 CRCCON1bits.PLEN0 // bit 0
19508 #define PLEN1 CRCCON1bits.PLEN1 // bit 1
19509 #define PLEN2 CRCCON1bits.PLEN2 // bit 2
19510 #define PLEN3 CRCCON1bits.PLEN3 // bit 3
19511 #define DLEN0 CRCCON1bits.DLEN0 // bit 4
19512 #define DLEN1 CRCCON1bits.DLEN1 // bit 5
19513 #define DLEN2 CRCCON1bits.DLEN2 // bit 6
19514 #define DLEN3 CRCCON1bits.DLEN3 // bit 7
19516 #define DATA8 CRCDATHbits.DATA8 // bit 0
19517 #define DATA9 CRCDATHbits.DATA9 // bit 1
19518 #define DATA10 CRCDATHbits.DATA10 // bit 2
19519 #define DATA11 CRCDATHbits.DATA11 // bit 3
19520 #define DATA12 CRCDATHbits.DATA12 // bit 4
19521 #define DATA13 CRCDATHbits.DATA13 // bit 5
19522 #define DATA14 CRCDATHbits.DATA14 // bit 6
19523 #define DATA15 CRCDATHbits.DATA15 // bit 7
19525 #define DATA0 CRCDATLbits.DATA0 // bit 0
19526 #define DATA1 CRCDATLbits.DATA1 // bit 1
19527 #define DATA2 CRCDATLbits.DATA2 // bit 2
19528 #define DATA3 CRCDATLbits.DATA3 // bit 3
19529 #define DATA4 CRCDATLbits.DATA4 // bit 4
19530 #define DATA5 CRCDATLbits.DATA5 // bit 5
19531 #define DATA6 CRCDATLbits.DATA6 // bit 6
19532 #define DATA7 CRCDATLbits.DATA7 // bit 7
19534 #define SHFT8 CRCSHIFTHbits.SHFT8 // bit 0
19535 #define SHFT9 CRCSHIFTHbits.SHFT9 // bit 1
19536 #define SHFT10 CRCSHIFTHbits.SHFT10 // bit 2
19537 #define SHFT11 CRCSHIFTHbits.SHFT11 // bit 3
19538 #define SHFT12 CRCSHIFTHbits.SHFT12 // bit 4
19539 #define SHFT13 CRCSHIFTHbits.SHFT13 // bit 5
19540 #define SHFT14 CRCSHIFTHbits.SHFT14 // bit 6
19541 #define SHFT15 CRCSHIFTHbits.SHFT15 // bit 7
19543 #define SHFT0 CRCSHIFTLbits.SHFT0 // bit 0
19544 #define SHFT1 CRCSHIFTLbits.SHFT1 // bit 1
19545 #define SHFT2 CRCSHIFTLbits.SHFT2 // bit 2
19546 #define SHFT3 CRCSHIFTLbits.SHFT3 // bit 3
19547 #define SHFT4 CRCSHIFTLbits.SHFT4 // bit 4
19548 #define SHFT5 CRCSHIFTLbits.SHFT5 // bit 5
19549 #define SHFT6 CRCSHIFTLbits.SHFT6 // bit 6
19550 #define SHFT7 CRCSHIFTLbits.SHFT7 // bit 7
19552 #define X8 CRCXORHbits.X8 // bit 0
19553 #define X9 CRCXORHbits.X9 // bit 1
19554 #define X10 CRCXORHbits.X10 // bit 2
19555 #define X11 CRCXORHbits.X11 // bit 3
19556 #define X12 CRCXORHbits.X12 // bit 4
19557 #define X13 CRCXORHbits.X13 // bit 5
19558 #define X14 CRCXORHbits.X14 // bit 6
19559 #define X15 CRCXORHbits.X15 // bit 7
19561 #define X1 CRCXORLbits.X1 // bit 1
19562 #define X2 CRCXORLbits.X2 // bit 2
19563 #define X3 CRCXORLbits.X3 // bit 3
19564 #define X4 CRCXORLbits.X4 // bit 4
19565 #define X5 CRCXORLbits.X5 // bit 5
19566 #define X6 CRCXORLbits.X6 // bit 6
19567 #define X7 CRCXORLbits.X7 // bit 7
19569 #define LSAC0 CWG1AS0bits.LSAC0 // bit 2, shadows bit in CWG1AS0bits
19570 #define CWG1LSAC0 CWG1AS0bits.CWG1LSAC0 // bit 2, shadows bit in CWG1AS0bits
19571 #define LSAC1 CWG1AS0bits.LSAC1 // bit 3, shadows bit in CWG1AS0bits
19572 #define CWG1LSAC1 CWG1AS0bits.CWG1LSAC1 // bit 3, shadows bit in CWG1AS0bits
19573 #define LSBD0 CWG1AS0bits.LSBD0 // bit 4, shadows bit in CWG1AS0bits
19574 #define CWG1LSBD0 CWG1AS0bits.CWG1LSBD0 // bit 4, shadows bit in CWG1AS0bits
19575 #define LSBD1 CWG1AS0bits.LSBD1 // bit 5, shadows bit in CWG1AS0bits
19576 #define CWG1LSBD1 CWG1AS0bits.CWG1LSBD1 // bit 5, shadows bit in CWG1AS0bits
19577 #define REN CWG1AS0bits.REN // bit 6, shadows bit in CWG1AS0bits
19578 #define CWG1REN CWG1AS0bits.CWG1REN // bit 6, shadows bit in CWG1AS0bits
19579 #define SHUTDOWN CWG1AS0bits.SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
19580 #define CWG1SHUTDOWN CWG1AS0bits.CWG1SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
19582 #define AS0E CWG1AS1bits.AS0E // bit 0
19583 #define AS1E CWG1AS1bits.AS1E // bit 1
19584 #define AS2E CWG1AS1bits.AS2E // bit 2
19585 #define AS3E CWG1AS1bits.AS3E // bit 3
19586 #define AS4E CWG1AS1bits.AS4E // bit 4
19587 #define AS5E CWG1AS1bits.AS5E // bit 5
19588 #define AS6E CWG1AS1bits.AS6E // bit 6
19590 #define CS CWG1CLKCONbits.CS // bit 0, shadows bit in CWG1CLKCONbits
19591 #define CWG1CS CWG1CLKCONbits.CWG1CS // bit 0, shadows bit in CWG1CLKCONbits
19593 #define POLA CWG1CON1bits.POLA // bit 0, shadows bit in CWG1CON1bits
19594 #define CWG1POLA CWG1CON1bits.CWG1POLA // bit 0, shadows bit in CWG1CON1bits
19595 #define POLB CWG1CON1bits.POLB // bit 1, shadows bit in CWG1CON1bits
19596 #define CWG1POLB CWG1CON1bits.CWG1POLB // bit 1, shadows bit in CWG1CON1bits
19597 #define POLC CWG1CON1bits.POLC // bit 2, shadows bit in CWG1CON1bits
19598 #define CWG1POLC CWG1CON1bits.CWG1POLC // bit 2, shadows bit in CWG1CON1bits
19599 #define POLD CWG1CON1bits.POLD // bit 3, shadows bit in CWG1CON1bits
19600 #define CWG1POLD CWG1CON1bits.CWG1POLD // bit 3, shadows bit in CWG1CON1bits
19601 #define IN CWG1CON1bits.IN // bit 5, shadows bit in CWG1CON1bits
19602 #define CWG1IN CWG1CON1bits.CWG1IN // bit 5, shadows bit in CWG1CON1bits
19604 #define DBF0 CWG1DBFbits.DBF0 // bit 0, shadows bit in CWG1DBFbits
19605 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0, shadows bit in CWG1DBFbits
19606 #define DBF1 CWG1DBFbits.DBF1 // bit 1, shadows bit in CWG1DBFbits
19607 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1, shadows bit in CWG1DBFbits
19608 #define DBF2 CWG1DBFbits.DBF2 // bit 2, shadows bit in CWG1DBFbits
19609 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2, shadows bit in CWG1DBFbits
19610 #define DBF3 CWG1DBFbits.DBF3 // bit 3, shadows bit in CWG1DBFbits
19611 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3, shadows bit in CWG1DBFbits
19612 #define DBF4 CWG1DBFbits.DBF4 // bit 4, shadows bit in CWG1DBFbits
19613 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4, shadows bit in CWG1DBFbits
19614 #define DBF5 CWG1DBFbits.DBF5 // bit 5, shadows bit in CWG1DBFbits
19615 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5, shadows bit in CWG1DBFbits
19617 #define DBR0 CWG1DBRbits.DBR0 // bit 0, shadows bit in CWG1DBRbits
19618 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0, shadows bit in CWG1DBRbits
19619 #define DBR1 CWG1DBRbits.DBR1 // bit 1, shadows bit in CWG1DBRbits
19620 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1, shadows bit in CWG1DBRbits
19621 #define DBR2 CWG1DBRbits.DBR2 // bit 2, shadows bit in CWG1DBRbits
19622 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2, shadows bit in CWG1DBRbits
19623 #define DBR3 CWG1DBRbits.DBR3 // bit 3, shadows bit in CWG1DBRbits
19624 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3, shadows bit in CWG1DBRbits
19625 #define DBR4 CWG1DBRbits.DBR4 // bit 4, shadows bit in CWG1DBRbits
19626 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4, shadows bit in CWG1DBRbits
19627 #define DBR5 CWG1DBRbits.DBR5 // bit 5, shadows bit in CWG1DBRbits
19628 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5, shadows bit in CWG1DBRbits
19630 #define CWG1ISM0 CWG1ISMbits.CWG1ISM0 // bit 0
19631 #define CWG1ISM1 CWG1ISMbits.CWG1ISM1 // bit 1
19632 #define CWG1ISM2 CWG1ISMbits.CWG1ISM2 // bit 2
19633 #define CWG1ISM3 CWG1ISMbits.CWG1ISM3 // bit 3
19635 #define CWG1PPS0 CWG1PPSbits.CWG1PPS0 // bit 0
19636 #define CWG1PPS1 CWG1PPSbits.CWG1PPS1 // bit 1
19637 #define CWG1PPS2 CWG1PPSbits.CWG1PPS2 // bit 2
19638 #define CWG1PPS3 CWG1PPSbits.CWG1PPS3 // bit 3
19639 #define CWG1PPS4 CWG1PPSbits.CWG1PPS4 // bit 4
19641 #define STRA CWG1STRbits.STRA // bit 0, shadows bit in CWG1STRbits
19642 #define CWG1STRA CWG1STRbits.CWG1STRA // bit 0, shadows bit in CWG1STRbits
19643 #define STRB CWG1STRbits.STRB // bit 1, shadows bit in CWG1STRbits
19644 #define CWG1STRB CWG1STRbits.CWG1STRB // bit 1, shadows bit in CWG1STRbits
19645 #define STRC CWG1STRbits.STRC // bit 2, shadows bit in CWG1STRbits
19646 #define CWG1STRC CWG1STRbits.CWG1STRC // bit 2, shadows bit in CWG1STRbits
19647 #define STRD CWG1STRbits.STRD // bit 3, shadows bit in CWG1STRbits
19648 #define CWG1STRD CWG1STRbits.CWG1STRD // bit 3, shadows bit in CWG1STRbits
19649 #define OVRA CWG1STRbits.OVRA // bit 4, shadows bit in CWG1STRbits
19650 #define CWG1OVRA CWG1STRbits.CWG1OVRA // bit 4, shadows bit in CWG1STRbits
19651 #define OVRB CWG1STRbits.OVRB // bit 5, shadows bit in CWG1STRbits
19652 #define CWG1OVRB CWG1STRbits.CWG1OVRB // bit 5, shadows bit in CWG1STRbits
19653 #define OVRC CWG1STRbits.OVRC // bit 6, shadows bit in CWG1STRbits
19654 #define CWG1OVRC CWG1STRbits.CWG1OVRC // bit 6, shadows bit in CWG1STRbits
19655 #define OVRD CWG1STRbits.OVRD // bit 7, shadows bit in CWG1STRbits
19656 #define CWG1OVRD CWG1STRbits.CWG1OVRD // bit 7, shadows bit in CWG1STRbits
19658 #define CWG2ISM0 CWG2ISMbits.CWG2ISM0 // bit 0
19659 #define CWG2ISM1 CWG2ISMbits.CWG2ISM1 // bit 1
19660 #define CWG2ISM2 CWG2ISMbits.CWG2ISM2 // bit 2
19661 #define CWG2ISM3 CWG2ISMbits.CWG2ISM3 // bit 3
19663 #define CWG2PPS0 CWG2PPSbits.CWG2PPS0 // bit 0
19664 #define CWG2PPS1 CWG2PPSbits.CWG2PPS1 // bit 1
19665 #define CWG2PPS2 CWG2PPSbits.CWG2PPS2 // bit 2
19666 #define CWG2PPS3 CWG2PPSbits.CWG2PPS3 // bit 3
19667 #define CWG2PPS4 CWG2PPSbits.CWG2PPS4 // bit 4
19669 #define CWG3ISM0 CWG3ISMbits.CWG3ISM0 // bit 0
19670 #define CWG3ISM1 CWG3ISMbits.CWG3ISM1 // bit 1
19671 #define CWG3ISM2 CWG3ISMbits.CWG3ISM2 // bit 2
19672 #define CWG3ISM3 CWG3ISMbits.CWG3ISM3 // bit 3
19674 #define CWG3PPS0 CWG3PPSbits.CWG3PPS0 // bit 0
19675 #define CWG3PPS1 CWG3PPSbits.CWG3PPS1 // bit 1
19676 #define CWG3PPS2 CWG3PPSbits.CWG3PPS2 // bit 2
19677 #define CWG3PPS3 CWG3PPSbits.CWG3PPS3 // bit 3
19678 #define CWG3PPS4 CWG3PPSbits.CWG3PPS4 // bit 4
19680 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0
19681 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1
19682 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2
19683 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3
19684 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4
19686 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
19687 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
19688 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
19689 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
19690 #define TSRNG FVRCONbits.TSRNG // bit 4
19691 #define TSEN FVRCONbits.TSEN // bit 5
19692 #define FVRRDY FVRCONbits.FVRRDY // bit 6
19693 #define FVREN FVRCONbits.FVREN // bit 7
19695 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
19696 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
19697 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
19698 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
19699 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
19700 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
19701 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
19702 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
19704 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
19705 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
19706 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
19707 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
19708 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
19709 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
19710 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
19711 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
19713 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
19714 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
19715 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
19716 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
19717 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
19718 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
19719 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
19720 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
19722 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
19724 #define INTEDG INTCONbits.INTEDG // bit 0
19725 #define PEIE INTCONbits.PEIE // bit 6
19726 #define GIE INTCONbits.GIE // bit 7
19728 #define INTPPS0 INTPPSbits.INTPPS0 // bit 0
19729 #define INTPPS1 INTPPSbits.INTPPS1 // bit 1
19730 #define INTPPS2 INTPPSbits.INTPPS2 // bit 2
19731 #define INTPPS3 INTPPSbits.INTPPS3 // bit 3
19733 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
19734 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
19735 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
19736 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
19737 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
19738 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
19739 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
19740 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
19742 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
19743 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
19744 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
19745 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
19746 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
19747 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
19748 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
19749 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
19751 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
19752 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
19753 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
19754 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
19755 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
19756 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
19757 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
19758 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
19760 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
19761 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
19762 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
19763 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
19764 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
19765 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
19766 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
19767 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
19769 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
19770 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
19771 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
19772 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
19773 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
19774 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
19775 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
19776 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
19778 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
19779 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
19780 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
19781 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
19782 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
19783 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
19784 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
19785 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
19787 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
19788 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
19789 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
19790 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
19791 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
19792 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
19793 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
19794 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
19796 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
19797 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
19798 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
19799 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
19800 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
19801 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
19802 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
19803 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
19805 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
19806 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
19807 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
19808 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
19809 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
19810 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
19811 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
19812 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
19814 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
19816 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
19818 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
19820 #define LATA0 LATAbits.LATA0 // bit 0
19821 #define LATA1 LATAbits.LATA1 // bit 1
19822 #define LATA2 LATAbits.LATA2 // bit 2
19823 #define LATA3 LATAbits.LATA3 // bit 3
19824 #define LATA4 LATAbits.LATA4 // bit 4
19825 #define LATA5 LATAbits.LATA5 // bit 5
19826 #define LATA6 LATAbits.LATA6 // bit 6
19827 #define LATA7 LATAbits.LATA7 // bit 7
19829 #define LATB0 LATBbits.LATB0 // bit 0
19830 #define LATB1 LATBbits.LATB1 // bit 1
19831 #define LATB2 LATBbits.LATB2 // bit 2
19832 #define LATB3 LATBbits.LATB3 // bit 3
19833 #define LATB4 LATBbits.LATB4 // bit 4
19834 #define LATB5 LATBbits.LATB5 // bit 5
19835 #define LATB6 LATBbits.LATB6 // bit 6
19836 #define LATB7 LATBbits.LATB7 // bit 7
19838 #define LATC0 LATCbits.LATC0 // bit 0
19839 #define LATC1 LATCbits.LATC1 // bit 1
19840 #define LATC2 LATCbits.LATC2 // bit 2
19841 #define LATC3 LATCbits.LATC3 // bit 3
19842 #define LATC4 LATCbits.LATC4 // bit 4
19843 #define LATC5 LATCbits.LATC5 // bit 5
19844 #define LATC6 LATCbits.LATC6 // bit 6
19845 #define LATC7 LATCbits.LATC7 // bit 7
19847 #define MDCH0 MDCARHbits.MDCH0 // bit 0
19848 #define MDCH1 MDCARHbits.MDCH1 // bit 1
19849 #define MDCH2 MDCARHbits.MDCH2 // bit 2
19850 #define MDCH3 MDCARHbits.MDCH3 // bit 3
19852 #define MDCARHPPS0 MDCARHPPSbits.MDCARHPPS0 // bit 0
19853 #define MDCARHPPS1 MDCARHPPSbits.MDCARHPPS1 // bit 1
19854 #define MDCARHPPS2 MDCARHPPSbits.MDCARHPPS2 // bit 2
19855 #define MDCARHPPS3 MDCARHPPSbits.MDCARHPPS3 // bit 3
19856 #define MDCARHPPS4 MDCARHPPSbits.MDCARHPPS4 // bit 4
19858 #define MDCL0 MDCARLbits.MDCL0 // bit 0
19859 #define MDCL1 MDCARLbits.MDCL1 // bit 1
19860 #define MDCL2 MDCARLbits.MDCL2 // bit 2
19861 #define MDCL3 MDCARLbits.MDCL3 // bit 3
19863 #define MDCARLPPS0 MDCARLPPSbits.MDCARLPPS0 // bit 0
19864 #define MDCARLPPS1 MDCARLPPSbits.MDCARLPPS1 // bit 1
19865 #define MDCARLPPS2 MDCARLPPSbits.MDCARLPPS2 // bit 2
19866 #define MDCARLPPS3 MDCARLPPSbits.MDCARLPPS3 // bit 3
19867 #define MDCARLPPS4 MDCARLPPSbits.MDCARLPPS4 // bit 4
19869 #define MDBIT MDCON0bits.MDBIT // bit 0
19870 #define MDOPOL MDCON0bits.MDOPOL // bit 4
19871 #define MDOUT MDCON0bits.MDOUT // bit 5
19872 #define MDEN MDCON0bits.MDEN // bit 7
19874 #define MDCLSYNC MDCON1bits.MDCLSYNC // bit 0
19875 #define MDCLPOL MDCON1bits.MDCLPOL // bit 1
19876 #define MDCHSYNC MDCON1bits.MDCHSYNC // bit 4
19877 #define MDCHPOL MDCON1bits.MDCHPOL // bit 5
19879 #define MDMS0 MDSRCbits.MDMS0 // bit 0
19880 #define MDMS1 MDSRCbits.MDMS1 // bit 1
19881 #define MDMS2 MDSRCbits.MDMS2 // bit 2
19882 #define MDMS3 MDSRCbits.MDMS3 // bit 3
19883 #define MDMS4 MDSRCbits.MDMS4 // bit 4
19885 #define MDSRCPPS0 MDSRCPPSbits.MDSRCPPS0 // bit 0
19886 #define MDSRCPPS1 MDSRCPPSbits.MDSRCPPS1 // bit 1
19887 #define MDSRCPPS2 MDSRCPPSbits.MDSRCPPS2 // bit 2
19888 #define MDSRCPPS3 MDSRCPPSbits.MDSRCPPS3 // bit 3
19889 #define MDSRCPPS4 MDSRCPPSbits.MDSRCPPS4 // bit 4
19891 #define NCO1ACC8 NCO1ACCHbits.NCO1ACC8 // bit 0
19892 #define NCO1ACC9 NCO1ACCHbits.NCO1ACC9 // bit 1
19893 #define NCO1ACC10 NCO1ACCHbits.NCO1ACC10 // bit 2
19894 #define NCO1ACC11 NCO1ACCHbits.NCO1ACC11 // bit 3
19895 #define NCO1ACC12 NCO1ACCHbits.NCO1ACC12 // bit 4
19896 #define NCO1ACC13 NCO1ACCHbits.NCO1ACC13 // bit 5
19897 #define NCO1ACC14 NCO1ACCHbits.NCO1ACC14 // bit 6
19898 #define NCO1ACC15 NCO1ACCHbits.NCO1ACC15 // bit 7
19900 #define NCO1ACC0 NCO1ACCLbits.NCO1ACC0 // bit 0
19901 #define NCO1ACC1 NCO1ACCLbits.NCO1ACC1 // bit 1
19902 #define NCO1ACC2 NCO1ACCLbits.NCO1ACC2 // bit 2
19903 #define NCO1ACC3 NCO1ACCLbits.NCO1ACC3 // bit 3
19904 #define NCO1ACC4 NCO1ACCLbits.NCO1ACC4 // bit 4
19905 #define NCO1ACC5 NCO1ACCLbits.NCO1ACC5 // bit 5
19906 #define NCO1ACC6 NCO1ACCLbits.NCO1ACC6 // bit 6
19907 #define NCO1ACC7 NCO1ACCLbits.NCO1ACC7 // bit 7
19909 #define NCO1ACC16 NCO1ACCUbits.NCO1ACC16 // bit 0
19910 #define NCO1ACC17 NCO1ACCUbits.NCO1ACC17 // bit 1
19911 #define NCO1ACC18 NCO1ACCUbits.NCO1ACC18 // bit 2
19912 #define NCO1ACC19 NCO1ACCUbits.NCO1ACC19 // bit 3
19914 #define N1CKS0 NCO1CLKbits.N1CKS0 // bit 0
19915 #define N1CKS1 NCO1CLKbits.N1CKS1 // bit 1
19916 #define N1CKS2 NCO1CLKbits.N1CKS2 // bit 2
19917 #define N1PWS0 NCO1CLKbits.N1PWS0 // bit 5
19918 #define N1PWS1 NCO1CLKbits.N1PWS1 // bit 6
19919 #define N1PWS2 NCO1CLKbits.N1PWS2 // bit 7
19921 #define N1PFM NCO1CONbits.N1PFM // bit 0
19922 #define N1POL NCO1CONbits.N1POL // bit 4
19923 #define N1OUT NCO1CONbits.N1OUT // bit 5
19924 #define N1EN NCO1CONbits.N1EN // bit 7
19926 #define NCO1INC8 NCO1INCHbits.NCO1INC8 // bit 0
19927 #define NCO1INC9 NCO1INCHbits.NCO1INC9 // bit 1
19928 #define NCO1INC10 NCO1INCHbits.NCO1INC10 // bit 2
19929 #define NCO1INC11 NCO1INCHbits.NCO1INC11 // bit 3
19930 #define NCO1INC12 NCO1INCHbits.NCO1INC12 // bit 4
19931 #define NCO1INC13 NCO1INCHbits.NCO1INC13 // bit 5
19932 #define NCO1INC14 NCO1INCHbits.NCO1INC14 // bit 6
19933 #define NCO1INC15 NCO1INCHbits.NCO1INC15 // bit 7
19935 #define NCO1INC0 NCO1INCLbits.NCO1INC0 // bit 0
19936 #define NCO1INC1 NCO1INCLbits.NCO1INC1 // bit 1
19937 #define NCO1INC2 NCO1INCLbits.NCO1INC2 // bit 2
19938 #define NCO1INC3 NCO1INCLbits.NCO1INC3 // bit 3
19939 #define NCO1INC4 NCO1INCLbits.NCO1INC4 // bit 4
19940 #define NCO1INC5 NCO1INCLbits.NCO1INC5 // bit 5
19941 #define NCO1INC6 NCO1INCLbits.NCO1INC6 // bit 6
19942 #define NCO1INC7 NCO1INCLbits.NCO1INC7 // bit 7
19944 #define NCO1INC16 NCO1INCUbits.NCO1INC16 // bit 0
19945 #define NCO1INC17 NCO1INCUbits.NCO1INC17 // bit 1
19946 #define NCO1INC18 NCO1INCUbits.NCO1INC18 // bit 2
19947 #define NCO1INC19 NCO1INCUbits.NCO1INC19 // bit 3
19949 #define NVMADR8 NVMADRHbits.NVMADR8 // bit 0
19950 #define NVMADR9 NVMADRHbits.NVMADR9 // bit 1
19951 #define NVMADR10 NVMADRHbits.NVMADR10 // bit 2
19952 #define NVMADR11 NVMADRHbits.NVMADR11 // bit 3
19953 #define NVMADR12 NVMADRHbits.NVMADR12 // bit 4
19954 #define NVMADR13 NVMADRHbits.NVMADR13 // bit 5
19955 #define NVMADR14 NVMADRHbits.NVMADR14 // bit 6
19957 #define NVMADR0 NVMADRLbits.NVMADR0 // bit 0
19958 #define NVMADR1 NVMADRLbits.NVMADR1 // bit 1
19959 #define NVMADR2 NVMADRLbits.NVMADR2 // bit 2
19960 #define NVMADR3 NVMADRLbits.NVMADR3 // bit 3
19961 #define NVMADR4 NVMADRLbits.NVMADR4 // bit 4
19962 #define NVMADR5 NVMADRLbits.NVMADR5 // bit 5
19963 #define NVMADR6 NVMADRLbits.NVMADR6 // bit 6
19964 #define NVMADR7 NVMADRLbits.NVMADR7 // bit 7
19966 #define RD NVMCON1bits.RD // bit 0
19967 #define WR NVMCON1bits.WR // bit 1
19968 #define WREN NVMCON1bits.WREN // bit 2
19969 #define WRERR NVMCON1bits.WRERR // bit 3
19970 #define FREE NVMCON1bits.FREE // bit 4
19971 #define LWLO NVMCON1bits.LWLO // bit 5
19972 #define NVMREGS NVMCON1bits.NVMREGS // bit 6
19974 #define NVMDAT8 NVMDATHbits.NVMDAT8 // bit 0
19975 #define NVMDAT9 NVMDATHbits.NVMDAT9 // bit 1
19976 #define NVMDAT10 NVMDATHbits.NVMDAT10 // bit 2
19977 #define NVMDAT11 NVMDATHbits.NVMDAT11 // bit 3
19978 #define NVMDAT12 NVMDATHbits.NVMDAT12 // bit 4
19979 #define NVMDAT13 NVMDATHbits.NVMDAT13 // bit 5
19981 #define NVMDAT0 NVMDATLbits.NVMDAT0 // bit 0
19982 #define NVMDAT1 NVMDATLbits.NVMDAT1 // bit 1
19983 #define NVMDAT2 NVMDATLbits.NVMDAT2 // bit 2
19984 #define NVMDAT3 NVMDATLbits.NVMDAT3 // bit 3
19985 #define NVMDAT4 NVMDATLbits.NVMDAT4 // bit 4
19986 #define NVMDAT5 NVMDATLbits.NVMDAT5 // bit 5
19987 #define NVMDAT6 NVMDATLbits.NVMDAT6 // bit 6
19988 #define NVMDAT7 NVMDATLbits.NVMDAT7 // bit 7
19990 #define ODCA0 ODCONAbits.ODCA0 // bit 0
19991 #define ODCA1 ODCONAbits.ODCA1 // bit 1
19992 #define ODCA2 ODCONAbits.ODCA2 // bit 2
19993 #define ODCA3 ODCONAbits.ODCA3 // bit 3
19994 #define ODCA4 ODCONAbits.ODCA4 // bit 4
19995 #define ODCA5 ODCONAbits.ODCA5 // bit 5
19996 #define ODCA6 ODCONAbits.ODCA6 // bit 6
19997 #define ODCA7 ODCONAbits.ODCA7 // bit 7
19999 #define ODCB0 ODCONBbits.ODCB0 // bit 0
20000 #define ODCB1 ODCONBbits.ODCB1 // bit 1
20001 #define ODCB2 ODCONBbits.ODCB2 // bit 2
20002 #define ODCB3 ODCONBbits.ODCB3 // bit 3
20003 #define ODCB4 ODCONBbits.ODCB4 // bit 4
20004 #define ODCB5 ODCONBbits.ODCB5 // bit 5
20005 #define ODCB6 ODCONBbits.ODCB6 // bit 6
20006 #define ODCB7 ODCONBbits.ODCB7 // bit 7
20008 #define ODCC0 ODCONCbits.ODCC0 // bit 0
20009 #define ODCC1 ODCONCbits.ODCC1 // bit 1
20010 #define ODCC2 ODCONCbits.ODCC2 // bit 2
20011 #define ODCC3 ODCONCbits.ODCC3 // bit 3
20012 #define ODCC4 ODCONCbits.ODCC4 // bit 4
20013 #define ODCC5 ODCONCbits.ODCC5 // bit 5
20014 #define ODCC6 ODCONCbits.ODCC6 // bit 6
20015 #define ODCC7 ODCONCbits.ODCC7 // bit 7
20017 #define NDIV0 OSCCON1bits.NDIV0 // bit 0
20018 #define NDIV1 OSCCON1bits.NDIV1 // bit 1
20019 #define NDIV2 OSCCON1bits.NDIV2 // bit 2
20020 #define NDIV3 OSCCON1bits.NDIV3 // bit 3
20021 #define NOSC0 OSCCON1bits.NOSC0 // bit 4
20022 #define NOSC1 OSCCON1bits.NOSC1 // bit 5
20023 #define NOSC2 OSCCON1bits.NOSC2 // bit 6
20025 #define CDIV0 OSCCON2bits.CDIV0 // bit 0
20026 #define CDIV1 OSCCON2bits.CDIV1 // bit 1
20027 #define CDIV2 OSCCON2bits.CDIV2 // bit 2
20028 #define CDIV3 OSCCON2bits.CDIV3 // bit 3
20029 #define COSC0 OSCCON2bits.COSC0 // bit 4
20030 #define COSC1 OSCCON2bits.COSC1 // bit 5
20031 #define COSC2 OSCCON2bits.COSC2 // bit 6
20033 #define NOSCR OSCCON3bits.NOSCR // bit 3
20034 #define ORDY OSCCON3bits.ORDY // bit 4
20035 #define SOSCPWR OSCCON3bits.SOSCPWR // bit 6
20036 #define CSWHOLD OSCCON3bits.CSWHOLD // bit 7
20038 #define ADOEN OSCENbits.ADOEN // bit 2
20039 #define SOSCEN OSCENbits.SOSCEN // bit 3
20040 #define LFOEN OSCENbits.LFOEN // bit 4
20041 #define MFOEN OSCENbits.MFOEN // bit 5
20042 #define HFOEN OSCENbits.HFOEN // bit 6
20043 #define EXTOEN OSCENbits.EXTOEN // bit 7
20045 #define HFFRQ0 OSCFRQbits.HFFRQ0 // bit 0
20046 #define HFFRQ1 OSCFRQbits.HFFRQ1 // bit 1
20047 #define HFFRQ2 OSCFRQbits.HFFRQ2 // bit 2
20049 #define PLLR OSCSTATbits.PLLR // bit 0
20050 #define ADOR OSCSTATbits.ADOR // bit 2
20051 #define SOR OSCSTATbits.SOR // bit 3
20052 #define LFOR OSCSTATbits.LFOR // bit 4
20053 #define MFOR OSCSTATbits.MFOR // bit 5
20054 #define HFOR OSCSTATbits.HFOR // bit 6
20055 #define EXTOR OSCSTATbits.EXTOR // bit 7
20057 #define HFTUN0 OSCTUNEbits.HFTUN0 // bit 0
20058 #define HFTUN1 OSCTUNEbits.HFTUN1 // bit 1
20059 #define HFTUN2 OSCTUNEbits.HFTUN2 // bit 2
20060 #define HFTUN3 OSCTUNEbits.HFTUN3 // bit 3
20061 #define HFTUN4 OSCTUNEbits.HFTUN4 // bit 4
20062 #define HFTUN5 OSCTUNEbits.HFTUN5 // bit 5
20064 #define NOT_BOR PCON0bits.NOT_BOR // bit 0
20065 #define NOT_POR PCON0bits.NOT_POR // bit 1
20066 #define NOT_RI PCON0bits.NOT_RI // bit 2
20067 #define NOT_RMCLR PCON0bits.NOT_RMCLR // bit 3
20068 #define NOT_RWDT PCON0bits.NOT_RWDT // bit 4
20069 #define NOT_WDTWV PCON0bits.NOT_WDTWV // bit 5
20070 #define STKUNF PCON0bits.STKUNF // bit 6
20071 #define STKOVF PCON0bits.STKOVF // bit 7
20073 #define INTE PIE0bits.INTE // bit 0
20074 #define IOCIE PIE0bits.IOCIE // bit 4
20075 #define TMR0IE PIE0bits.TMR0IE // bit 5
20077 #define ADIE PIE1bits.ADIE // bit 0
20078 #define ADTIE PIE1bits.ADTIE // bit 1
20079 #define CSWIE PIE1bits.CSWIE // bit 6
20080 #define OSFIE PIE1bits.OSFIE // bit 7
20082 #define C1IE PIE2bits.C1IE // bit 0
20083 #define C2IE PIE2bits.C2IE // bit 1
20084 #define ZCDIE PIE2bits.ZCDIE // bit 6
20086 #define SSP1IE PIE3bits.SSP1IE // bit 0
20087 #define BCL1IE PIE3bits.BCL1IE // bit 1
20088 #define SSP2IE PIE3bits.SSP2IE // bit 2
20089 #define BCL2IE PIE3bits.BCL2IE // bit 3
20090 #define TXIE PIE3bits.TXIE // bit 4
20091 #define RCIE PIE3bits.RCIE // bit 5
20093 #define TMR1IE PIE4bits.TMR1IE // bit 0
20094 #define TMR2IE PIE4bits.TMR2IE // bit 1
20095 #define TMR3IE PIE4bits.TMR3IE // bit 2
20096 #define TMR4IE PIE4bits.TMR4IE // bit 3
20097 #define TMR5IE PIE4bits.TMR5IE // bit 4
20098 #define TMR6IE PIE4bits.TMR6IE // bit 5
20100 #define TMR1GIE PIE5bits.TMR1GIE // bit 0
20101 #define TMR3GIE PIE5bits.TMR3GIE // bit 1
20102 #define TMR5GIE PIE5bits.TMR5GIE // bit 2
20103 #define CLC1IE PIE5bits.CLC1IE // bit 4
20104 #define CLC2IE PIE5bits.CLC2IE // bit 5
20105 #define CLC3IE PIE5bits.CLC3IE // bit 6
20106 #define CLC4IE PIE5bits.CLC4IE // bit 7
20108 #define CCP1IE PIE6bits.CCP1IE // bit 0
20109 #define CCP2IE PIE6bits.CCP2IE // bit 1
20110 #define CCP3IE PIE6bits.CCP3IE // bit 2
20111 #define CCP4IE PIE6bits.CCP4IE // bit 3
20112 #define CCP5IE PIE6bits.CCP5IE // bit 4
20114 #define CWG1IE PIE7bits.CWG1IE // bit 0
20115 #define CWG2IE PIE7bits.CWG2IE // bit 1
20116 #define CWG3IE PIE7bits.CWG3IE // bit 2
20117 #define NCO1IE PIE7bits.NCO1IE // bit 4, shadows bit in PIE7bits
20118 #define NCOIE PIE7bits.NCOIE // bit 4, shadows bit in PIE7bits
20119 #define NVMIE PIE7bits.NVMIE // bit 5
20120 #define CRCIE PIE7bits.CRCIE // bit 6
20121 #define SCANIE PIE7bits.SCANIE // bit 7
20123 #define SMT1IE PIE8bits.SMT1IE // bit 0
20124 #define SMT1PRAIE PIE8bits.SMT1PRAIE // bit 1
20125 #define SMT1PWAIE PIE8bits.SMT1PWAIE // bit 2
20126 #define SMT2IE PIE8bits.SMT2IE // bit 3
20127 #define SMT2PRAIE PIE8bits.SMT2PRAIE // bit 4
20128 #define SMT2PWAIE PIE8bits.SMT2PWAIE // bit 5
20130 #define INTF PIR0bits.INTF // bit 0
20131 #define IOCIF PIR0bits.IOCIF // bit 4
20132 #define TMR0IF PIR0bits.TMR0IF // bit 5
20134 #define ADIF PIR1bits.ADIF // bit 0
20135 #define ADTIF PIR1bits.ADTIF // bit 1
20136 #define CSWIF PIR1bits.CSWIF // bit 6
20137 #define OSFIF PIR1bits.OSFIF // bit 7
20139 #define C1IF PIR2bits.C1IF // bit 0
20140 #define C2IF PIR2bits.C2IF // bit 1
20141 #define ZCDIF PIR2bits.ZCDIF // bit 6
20143 #define SSP1IF PIR3bits.SSP1IF // bit 0
20144 #define BCL1IF PIR3bits.BCL1IF // bit 1
20145 #define SSP2IF PIR3bits.SSP2IF // bit 2
20146 #define BCL2IF PIR3bits.BCL2IF // bit 3
20147 #define TXIF PIR3bits.TXIF // bit 4
20148 #define RCIF PIR3bits.RCIF // bit 5
20150 #define TMR1IF PIR4bits.TMR1IF // bit 0
20151 #define TMR2IF PIR4bits.TMR2IF // bit 1
20152 #define TMR3IF PIR4bits.TMR3IF // bit 2
20153 #define TMR4IF PIR4bits.TMR4IF // bit 3
20154 #define TMR5IF PIR4bits.TMR5IF // bit 4
20155 #define TMR6IF PIR4bits.TMR6IF // bit 5
20157 #define TMR1GIF PIR5bits.TMR1GIF // bit 0
20158 #define TMR3GIF PIR5bits.TMR3GIF // bit 1
20159 #define TMR5GIF PIR5bits.TMR5GIF // bit 2
20160 #define CLC1IF PIR5bits.CLC1IF // bit 4
20161 #define CLC2IF PIR5bits.CLC2IF // bit 5
20162 #define CLC3IF PIR5bits.CLC3IF // bit 6
20163 #define CLC4IF PIR5bits.CLC4IF // bit 7
20165 #define CCP1IF PIR6bits.CCP1IF // bit 0
20166 #define CCP2IF PIR6bits.CCP2IF // bit 1
20167 #define CCP3IF PIR6bits.CCP3IF // bit 2
20168 #define CCP4IF PIR6bits.CCP4IF // bit 3
20169 #define CCP5IF PIR6bits.CCP5IF // bit 4
20171 #define CWG1IF PIR7bits.CWG1IF // bit 0
20172 #define CWG2IF PIR7bits.CWG2IF // bit 1
20173 #define CWG3IF PIR7bits.CWG3IF // bit 2
20174 #define NCO1IF PIR7bits.NCO1IF // bit 4, shadows bit in PIR7bits
20175 #define NCOIF PIR7bits.NCOIF // bit 4, shadows bit in PIR7bits
20176 #define NVMIF PIR7bits.NVMIF // bit 5
20177 #define CRCIF PIR7bits.CRCIF // bit 6
20178 #define SCANIF PIR7bits.SCANIF // bit 7
20180 #define SMT1IF PIR8bits.SMT1IF // bit 0
20181 #define SMT1PRAIF PIR8bits.SMT1PRAIF // bit 1
20182 #define SMT1PWAIF PIR8bits.SMT1PWAIF // bit 2
20183 #define SMT2IF PIR8bits.SMT2IF // bit 3
20184 #define SMT2PRAIF PIR8bits.SMT2PRAIF // bit 4
20185 #define SMT2PWAIF PIR8bits.SMT2PWAIF // bit 5
20187 #define IOCMD PMD0bits.IOCMD // bit 0
20188 #define CLKRMD PMD0bits.CLKRMD // bit 1
20189 #define NVMMD PMD0bits.NVMMD // bit 2
20190 #define SCANMD PMD0bits.SCANMD // bit 3
20191 #define CRCMD PMD0bits.CRCMD // bit 4
20192 #define FVRMD PMD0bits.FVRMD // bit 6
20193 #define SYSCMD PMD0bits.SYSCMD // bit 7
20195 #define TMR0MD PMD1bits.TMR0MD // bit 0
20196 #define TMR1MD PMD1bits.TMR1MD // bit 1
20197 #define TMR2MD PMD1bits.TMR2MD // bit 2
20198 #define TMR3MD PMD1bits.TMR3MD // bit 3
20199 #define TMR4MD PMD1bits.TMR4MD // bit 4
20200 #define TMR5MD PMD1bits.TMR5MD // bit 5
20201 #define TMR6MD PMD1bits.TMR6MD // bit 6
20202 #define NCOMD PMD1bits.NCOMD // bit 7, shadows bit in PMD1bits
20203 #define NCO1MD PMD1bits.NCO1MD // bit 7, shadows bit in PMD1bits
20205 #define ZCDMD PMD2bits.ZCDMD // bit 0
20206 #define CMP1MD PMD2bits.CMP1MD // bit 1
20207 #define CMP2MD PMD2bits.CMP2MD // bit 2
20208 #define ADCMD PMD2bits.ADCMD // bit 5
20209 #define DACMD PMD2bits.DACMD // bit 6
20211 #define CCP1MD PMD3bits.CCP1MD // bit 0
20212 #define CCP2MD PMD3bits.CCP2MD // bit 1
20213 #define CCP3MD PMD3bits.CCP3MD // bit 2
20214 #define CCP4MD PMD3bits.CCP4MD // bit 3
20215 #define CCP5MD PMD3bits.CCP5MD // bit 4
20216 #define PWM6MD PMD3bits.PWM6MD // bit 5
20217 #define PWM7MD PMD3bits.PWM7MD // bit 6
20219 #define CWG1MD PMD4bits.CWG1MD // bit 0
20220 #define CWG2MD PMD4bits.CWG2MD // bit 1
20221 #define CWG3MD PMD4bits.CWG3MD // bit 2
20222 #define MSSP1MD PMD4bits.MSSP1MD // bit 4
20223 #define MSSP2MD PMD4bits.MSSP2MD // bit 5
20224 #define UART1MD PMD4bits.UART1MD // bit 6
20226 #define DSMMD PMD5bits.DSMMD // bit 0
20227 #define CLC1MD PMD5bits.CLC1MD // bit 1
20228 #define CLC2MD PMD5bits.CLC2MD // bit 2
20229 #define CLC3MD PMD5bits.CLC3MD // bit 3
20230 #define CLC4MD PMD5bits.CLC4MD // bit 4
20231 #define SMT1MD PMD5bits.SMT1MD // bit 6
20232 #define SMT2MD PMD5bits.SMT2MD // bit 7
20234 #define RA0 PORTAbits.RA0 // bit 0
20235 #define RA1 PORTAbits.RA1 // bit 1
20236 #define RA2 PORTAbits.RA2 // bit 2
20237 #define RA3 PORTAbits.RA3 // bit 3
20238 #define RA4 PORTAbits.RA4 // bit 4
20239 #define RA5 PORTAbits.RA5 // bit 5
20240 #define RA6 PORTAbits.RA6 // bit 6
20241 #define RA7 PORTAbits.RA7 // bit 7
20243 #define RB0 PORTBbits.RB0 // bit 0
20244 #define RB1 PORTBbits.RB1 // bit 1
20245 #define RB2 PORTBbits.RB2 // bit 2
20246 #define RB3 PORTBbits.RB3 // bit 3
20247 #define RB4 PORTBbits.RB4 // bit 4
20248 #define RB5 PORTBbits.RB5 // bit 5
20249 #define RB6 PORTBbits.RB6 // bit 6
20250 #define RB7 PORTBbits.RB7 // bit 7
20252 #define RC0 PORTCbits.RC0 // bit 0
20253 #define RC1 PORTCbits.RC1 // bit 1
20254 #define RC2 PORTCbits.RC2 // bit 2
20255 #define RC3 PORTCbits.RC3 // bit 3
20256 #define RC4 PORTCbits.RC4 // bit 4
20257 #define RC5 PORTCbits.RC5 // bit 5
20258 #define RC6 PORTCbits.RC6 // bit 6
20259 #define RC7 PORTCbits.RC7 // bit 7
20261 #define RE3 PORTEbits.RE3 // bit 3
20263 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
20265 #define TMR0H0 PR0bits.TMR0H0 // bit 0, shadows bit in PR0bits
20266 #define T0PR0 PR0bits.T0PR0 // bit 0, shadows bit in PR0bits
20267 #define TMR0H1 PR0bits.TMR0H1 // bit 1, shadows bit in PR0bits
20268 #define T0PR1 PR0bits.T0PR1 // bit 1, shadows bit in PR0bits
20269 #define TMR0H2 PR0bits.TMR0H2 // bit 2, shadows bit in PR0bits
20270 #define T0PR2 PR0bits.T0PR2 // bit 2, shadows bit in PR0bits
20271 #define TMR0H3 PR0bits.TMR0H3 // bit 3, shadows bit in PR0bits
20272 #define T0PR3 PR0bits.T0PR3 // bit 3, shadows bit in PR0bits
20273 #define TMR0H4 PR0bits.TMR0H4 // bit 4, shadows bit in PR0bits
20274 #define T0PR4 PR0bits.T0PR4 // bit 4, shadows bit in PR0bits
20275 #define TMR0H5 PR0bits.TMR0H5 // bit 5, shadows bit in PR0bits
20276 #define T0PR5 PR0bits.T0PR5 // bit 5, shadows bit in PR0bits
20277 #define TMR0H6 PR0bits.TMR0H6 // bit 6, shadows bit in PR0bits
20278 #define T0PR6 PR0bits.T0PR6 // bit 6, shadows bit in PR0bits
20279 #define TMR0H7 PR0bits.TMR0H7 // bit 7, shadows bit in PR0bits
20280 #define T0PR7 PR0bits.T0PR7 // bit 7, shadows bit in PR0bits
20282 #define GVAL PR1bits.GVAL // bit 2, shadows bit in PR1bits
20283 #define T1GVAL PR1bits.T1GVAL // bit 2, shadows bit in PR1bits
20284 #define GGO_NOT_DONE PR1bits.GGO_NOT_DONE // bit 3, shadows bit in PR1bits
20285 #define T1GGO_NOT_DONE PR1bits.T1GGO_NOT_DONE // bit 3, shadows bit in PR1bits
20286 #define T1GGO PR1bits.T1GGO // bit 3, shadows bit in PR1bits
20287 #define GSPM PR1bits.GSPM // bit 4, shadows bit in PR1bits
20288 #define T1GSPM PR1bits.T1GSPM // bit 4, shadows bit in PR1bits
20289 #define GTM PR1bits.GTM // bit 5, shadows bit in PR1bits
20290 #define T1GTM PR1bits.T1GTM // bit 5, shadows bit in PR1bits
20291 #define GPOL PR1bits.GPOL // bit 6, shadows bit in PR1bits
20292 #define T1GPOL PR1bits.T1GPOL // bit 6, shadows bit in PR1bits
20293 #define GE PR1bits.GE // bit 7, shadows bit in PR1bits
20294 #define T1GE PR1bits.T1GE // bit 7, shadows bit in PR1bits
20296 #define DC2 PWM6DCHbits.DC2 // bit 0, shadows bit in PWM6DCHbits
20297 #define PWM6DC2 PWM6DCHbits.PWM6DC2 // bit 0, shadows bit in PWM6DCHbits
20298 #define PWMPW2 PWM6DCHbits.PWMPW2 // bit 0, shadows bit in PWM6DCHbits
20299 #define DC3 PWM6DCHbits.DC3 // bit 1, shadows bit in PWM6DCHbits
20300 #define PWM6DC3 PWM6DCHbits.PWM6DC3 // bit 1, shadows bit in PWM6DCHbits
20301 #define PWMPW3 PWM6DCHbits.PWMPW3 // bit 1, shadows bit in PWM6DCHbits
20302 #define DC4 PWM6DCHbits.DC4 // bit 2, shadows bit in PWM6DCHbits
20303 #define PWM6DC4 PWM6DCHbits.PWM6DC4 // bit 2, shadows bit in PWM6DCHbits
20304 #define PWMPW4 PWM6DCHbits.PWMPW4 // bit 2, shadows bit in PWM6DCHbits
20305 #define DC5 PWM6DCHbits.DC5 // bit 3, shadows bit in PWM6DCHbits
20306 #define PWM6DC5 PWM6DCHbits.PWM6DC5 // bit 3, shadows bit in PWM6DCHbits
20307 #define PWMPW5 PWM6DCHbits.PWMPW5 // bit 3, shadows bit in PWM6DCHbits
20308 #define DC6 PWM6DCHbits.DC6 // bit 4, shadows bit in PWM6DCHbits
20309 #define PWM6DC6 PWM6DCHbits.PWM6DC6 // bit 4, shadows bit in PWM6DCHbits
20310 #define PWMPW6 PWM6DCHbits.PWMPW6 // bit 4, shadows bit in PWM6DCHbits
20311 #define DC7 PWM6DCHbits.DC7 // bit 5, shadows bit in PWM6DCHbits
20312 #define PWM6DC7 PWM6DCHbits.PWM6DC7 // bit 5, shadows bit in PWM6DCHbits
20313 #define PWMPW7 PWM6DCHbits.PWMPW7 // bit 5, shadows bit in PWM6DCHbits
20314 #define DC8 PWM6DCHbits.DC8 // bit 6, shadows bit in PWM6DCHbits
20315 #define PWM6DC8 PWM6DCHbits.PWM6DC8 // bit 6, shadows bit in PWM6DCHbits
20316 #define PWMPW8 PWM6DCHbits.PWMPW8 // bit 6, shadows bit in PWM6DCHbits
20317 #define DC9 PWM6DCHbits.DC9 // bit 7, shadows bit in PWM6DCHbits
20318 #define PWM6DC9 PWM6DCHbits.PWM6DC9 // bit 7, shadows bit in PWM6DCHbits
20319 #define PWMPW9 PWM6DCHbits.PWMPW9 // bit 7, shadows bit in PWM6DCHbits
20321 #define DC0 PWM6DCLbits.DC0 // bit 6, shadows bit in PWM6DCLbits
20322 #define PWM6DC0 PWM6DCLbits.PWM6DC0 // bit 6, shadows bit in PWM6DCLbits
20323 #define PWMPW0 PWM6DCLbits.PWMPW0 // bit 6, shadows bit in PWM6DCLbits
20324 #define DC1 PWM6DCLbits.DC1 // bit 7, shadows bit in PWM6DCLbits
20325 #define PWM6DC1 PWM6DCLbits.PWM6DC1 // bit 7, shadows bit in PWM6DCLbits
20326 #define PWMPW1 PWM6DCLbits.PWMPW1 // bit 7, shadows bit in PWM6DCLbits
20328 #define RA0PPS0 RA0PPSbits.RA0PPS0 // bit 0
20329 #define RA0PPS1 RA0PPSbits.RA0PPS1 // bit 1
20330 #define RA0PPS2 RA0PPSbits.RA0PPS2 // bit 2
20331 #define RA0PPS3 RA0PPSbits.RA0PPS3 // bit 3
20332 #define RA0PPS4 RA0PPSbits.RA0PPS4 // bit 4
20333 #define RA0PPS5 RA0PPSbits.RA0PPS5 // bit 5
20335 #define RA1PPS0 RA1PPSbits.RA1PPS0 // bit 0
20336 #define RA1PPS1 RA1PPSbits.RA1PPS1 // bit 1
20337 #define RA1PPS2 RA1PPSbits.RA1PPS2 // bit 2
20338 #define RA1PPS3 RA1PPSbits.RA1PPS3 // bit 3
20339 #define RA1PPS4 RA1PPSbits.RA1PPS4 // bit 4
20340 #define RA1PPS5 RA1PPSbits.RA1PPS5 // bit 5
20342 #define RA2PPS0 RA2PPSbits.RA2PPS0 // bit 0
20343 #define RA2PPS1 RA2PPSbits.RA2PPS1 // bit 1
20344 #define RA2PPS2 RA2PPSbits.RA2PPS2 // bit 2
20345 #define RA2PPS3 RA2PPSbits.RA2PPS3 // bit 3
20346 #define RA2PPS4 RA2PPSbits.RA2PPS4 // bit 4
20347 #define RA2PPS5 RA2PPSbits.RA2PPS5 // bit 5
20349 #define RA3PPS0 RA3PPSbits.RA3PPS0 // bit 0
20350 #define RA3PPS1 RA3PPSbits.RA3PPS1 // bit 1
20351 #define RA3PPS2 RA3PPSbits.RA3PPS2 // bit 2
20352 #define RA3PPS3 RA3PPSbits.RA3PPS3 // bit 3
20353 #define RA3PPS4 RA3PPSbits.RA3PPS4 // bit 4
20354 #define RA3PPS5 RA3PPSbits.RA3PPS5 // bit 5
20356 #define RA4PPS0 RA4PPSbits.RA4PPS0 // bit 0
20357 #define RA4PPS1 RA4PPSbits.RA4PPS1 // bit 1
20358 #define RA4PPS2 RA4PPSbits.RA4PPS2 // bit 2
20359 #define RA4PPS3 RA4PPSbits.RA4PPS3 // bit 3
20360 #define RA4PPS4 RA4PPSbits.RA4PPS4 // bit 4
20361 #define RA4PPS5 RA4PPSbits.RA4PPS5 // bit 5
20363 #define RA5PPS0 RA5PPSbits.RA5PPS0 // bit 0
20364 #define RA5PPS1 RA5PPSbits.RA5PPS1 // bit 1
20365 #define RA5PPS2 RA5PPSbits.RA5PPS2 // bit 2
20366 #define RA5PPS3 RA5PPSbits.RA5PPS3 // bit 3
20367 #define RA5PPS4 RA5PPSbits.RA5PPS4 // bit 4
20368 #define RA5PPS5 RA5PPSbits.RA5PPS5 // bit 5
20370 #define RA6PPS0 RA6PPSbits.RA6PPS0 // bit 0
20371 #define RA6PPS1 RA6PPSbits.RA6PPS1 // bit 1
20372 #define RA6PPS2 RA6PPSbits.RA6PPS2 // bit 2
20373 #define RA6PPS3 RA6PPSbits.RA6PPS3 // bit 3
20374 #define RA6PPS4 RA6PPSbits.RA6PPS4 // bit 4
20375 #define RA6PPS5 RA6PPSbits.RA6PPS5 // bit 5
20377 #define RA7PPS0 RA7PPSbits.RA7PPS0 // bit 0
20378 #define RA7PPS1 RA7PPSbits.RA7PPS1 // bit 1
20379 #define RA7PPS2 RA7PPSbits.RA7PPS2 // bit 2
20380 #define RA7PPS3 RA7PPSbits.RA7PPS3 // bit 3
20381 #define RA7PPS4 RA7PPSbits.RA7PPS4 // bit 4
20382 #define RA7PPS5 RA7PPSbits.RA7PPS5 // bit 5
20384 #define RB0PPS0 RB0PPSbits.RB0PPS0 // bit 0
20385 #define RB0PPS1 RB0PPSbits.RB0PPS1 // bit 1
20386 #define RB0PPS2 RB0PPSbits.RB0PPS2 // bit 2
20387 #define RB0PPS3 RB0PPSbits.RB0PPS3 // bit 3
20388 #define RB0PPS4 RB0PPSbits.RB0PPS4 // bit 4
20389 #define RB0PPS5 RB0PPSbits.RB0PPS5 // bit 5
20391 #define RB1PPS0 RB1PPSbits.RB1PPS0 // bit 0
20392 #define RB1PPS1 RB1PPSbits.RB1PPS1 // bit 1
20393 #define RB1PPS2 RB1PPSbits.RB1PPS2 // bit 2
20394 #define RB1PPS3 RB1PPSbits.RB1PPS3 // bit 3
20395 #define RB1PPS4 RB1PPSbits.RB1PPS4 // bit 4
20396 #define RB1PPS5 RB1PPSbits.RB1PPS5 // bit 5
20398 #define RB2PPS0 RB2PPSbits.RB2PPS0 // bit 0
20399 #define RB2PPS1 RB2PPSbits.RB2PPS1 // bit 1
20400 #define RB2PPS2 RB2PPSbits.RB2PPS2 // bit 2
20401 #define RB2PPS3 RB2PPSbits.RB2PPS3 // bit 3
20402 #define RB2PPS4 RB2PPSbits.RB2PPS4 // bit 4
20403 #define RB2PPS5 RB2PPSbits.RB2PPS5 // bit 5
20405 #define RB3PPS0 RB3PPSbits.RB3PPS0 // bit 0
20406 #define RB3PPS1 RB3PPSbits.RB3PPS1 // bit 1
20407 #define RB3PPS2 RB3PPSbits.RB3PPS2 // bit 2
20408 #define RB3PPS3 RB3PPSbits.RB3PPS3 // bit 3
20409 #define RB3PPS4 RB3PPSbits.RB3PPS4 // bit 4
20410 #define RB3PPS5 RB3PPSbits.RB3PPS5 // bit 5
20412 #define RB4PPS0 RB4PPSbits.RB4PPS0 // bit 0
20413 #define RB4PPS1 RB4PPSbits.RB4PPS1 // bit 1
20414 #define RB4PPS2 RB4PPSbits.RB4PPS2 // bit 2
20415 #define RB4PPS3 RB4PPSbits.RB4PPS3 // bit 3
20416 #define RB4PPS4 RB4PPSbits.RB4PPS4 // bit 4
20417 #define RB4PPS5 RB4PPSbits.RB4PPS5 // bit 5
20419 #define RB5PPS0 RB5PPSbits.RB5PPS0 // bit 0
20420 #define RB5PPS1 RB5PPSbits.RB5PPS1 // bit 1
20421 #define RB5PPS2 RB5PPSbits.RB5PPS2 // bit 2
20422 #define RB5PPS3 RB5PPSbits.RB5PPS3 // bit 3
20423 #define RB5PPS4 RB5PPSbits.RB5PPS4 // bit 4
20424 #define RB5PPS5 RB5PPSbits.RB5PPS5 // bit 5
20426 #define RB6PPS0 RB6PPSbits.RB6PPS0 // bit 0
20427 #define RB6PPS1 RB6PPSbits.RB6PPS1 // bit 1
20428 #define RB6PPS2 RB6PPSbits.RB6PPS2 // bit 2
20429 #define RB6PPS3 RB6PPSbits.RB6PPS3 // bit 3
20430 #define RB6PPS4 RB6PPSbits.RB6PPS4 // bit 4
20431 #define RB6PPS5 RB6PPSbits.RB6PPS5 // bit 5
20433 #define RB7PPS0 RB7PPSbits.RB7PPS0 // bit 0
20434 #define RB7PPS1 RB7PPSbits.RB7PPS1 // bit 1
20435 #define RB7PPS2 RB7PPSbits.RB7PPS2 // bit 2
20436 #define RB7PPS3 RB7PPSbits.RB7PPS3 // bit 3
20437 #define RB7PPS4 RB7PPSbits.RB7PPS4 // bit 4
20438 #define RB7PPS5 RB7PPSbits.RB7PPS5 // bit 5
20440 #define RC0PPS0 RC0PPSbits.RC0PPS0 // bit 0
20441 #define RC0PPS1 RC0PPSbits.RC0PPS1 // bit 1
20442 #define RC0PPS2 RC0PPSbits.RC0PPS2 // bit 2
20443 #define RC0PPS3 RC0PPSbits.RC0PPS3 // bit 3
20444 #define RC0PPS4 RC0PPSbits.RC0PPS4 // bit 4
20445 #define RC0PPS5 RC0PPSbits.RC0PPS5 // bit 5
20447 #define RC1PPS0 RC1PPSbits.RC1PPS0 // bit 0
20448 #define RC1PPS1 RC1PPSbits.RC1PPS1 // bit 1
20449 #define RC1PPS2 RC1PPSbits.RC1PPS2 // bit 2
20450 #define RC1PPS3 RC1PPSbits.RC1PPS3 // bit 3
20451 #define RC1PPS4 RC1PPSbits.RC1PPS4 // bit 4
20452 #define RC1PPS5 RC1PPSbits.RC1PPS5 // bit 5
20454 #define RX9D RC1STAbits.RX9D // bit 0
20455 #define OERR RC1STAbits.OERR // bit 1
20456 #define FERR RC1STAbits.FERR // bit 2
20457 #define ADDEN RC1STAbits.ADDEN // bit 3
20458 #define CREN RC1STAbits.CREN // bit 4
20459 #define SREN RC1STAbits.SREN // bit 5
20460 #define RX9 RC1STAbits.RX9 // bit 6
20461 #define SPEN RC1STAbits.SPEN // bit 7
20463 #define RC2PPS0 RC2PPSbits.RC2PPS0 // bit 0
20464 #define RC2PPS1 RC2PPSbits.RC2PPS1 // bit 1
20465 #define RC2PPS2 RC2PPSbits.RC2PPS2 // bit 2
20466 #define RC2PPS3 RC2PPSbits.RC2PPS3 // bit 3
20467 #define RC2PPS4 RC2PPSbits.RC2PPS4 // bit 4
20468 #define RC2PPS5 RC2PPSbits.RC2PPS5 // bit 5
20470 #define RC3PPS0 RC3PPSbits.RC3PPS0 // bit 0
20471 #define RC3PPS1 RC3PPSbits.RC3PPS1 // bit 1
20472 #define RC3PPS2 RC3PPSbits.RC3PPS2 // bit 2
20473 #define RC3PPS3 RC3PPSbits.RC3PPS3 // bit 3
20474 #define RC3PPS4 RC3PPSbits.RC3PPS4 // bit 4
20475 #define RC3PPS5 RC3PPSbits.RC3PPS5 // bit 5
20477 #define RC4PPS0 RC4PPSbits.RC4PPS0 // bit 0
20478 #define RC4PPS1 RC4PPSbits.RC4PPS1 // bit 1
20479 #define RC4PPS2 RC4PPSbits.RC4PPS2 // bit 2
20480 #define RC4PPS3 RC4PPSbits.RC4PPS3 // bit 3
20481 #define RC4PPS4 RC4PPSbits.RC4PPS4 // bit 4
20482 #define RC4PPS5 RC4PPSbits.RC4PPS5 // bit 5
20484 #define RC5PPS0 RC5PPSbits.RC5PPS0 // bit 0
20485 #define RC5PPS1 RC5PPSbits.RC5PPS1 // bit 1
20486 #define RC5PPS2 RC5PPSbits.RC5PPS2 // bit 2
20487 #define RC5PPS3 RC5PPSbits.RC5PPS3 // bit 3
20488 #define RC5PPS4 RC5PPSbits.RC5PPS4 // bit 4
20489 #define RC5PPS5 RC5PPSbits.RC5PPS5 // bit 5
20491 #define RC6PPS0 RC6PPSbits.RC6PPS0 // bit 0
20492 #define RC6PPS1 RC6PPSbits.RC6PPS1 // bit 1
20493 #define RC6PPS2 RC6PPSbits.RC6PPS2 // bit 2
20494 #define RC6PPS3 RC6PPSbits.RC6PPS3 // bit 3
20495 #define RC6PPS4 RC6PPSbits.RC6PPS4 // bit 4
20496 #define RC6PPS5 RC6PPSbits.RC6PPS5 // bit 5
20498 #define RC7PPS0 RC7PPSbits.RC7PPS0 // bit 0
20499 #define RC7PPS1 RC7PPSbits.RC7PPS1 // bit 1
20500 #define RC7PPS2 RC7PPSbits.RC7PPS2 // bit 2
20501 #define RC7PPS3 RC7PPSbits.RC7PPS3 // bit 3
20502 #define RC7PPS4 RC7PPSbits.RC7PPS4 // bit 4
20503 #define RC7PPS5 RC7PPSbits.RC7PPS5 // bit 5
20505 #define RXPPS0 RXPPSbits.RXPPS0 // bit 0
20506 #define RXPPS1 RXPPSbits.RXPPS1 // bit 1
20507 #define RXPPS2 RXPPSbits.RXPPS2 // bit 2
20508 #define RXPPS3 RXPPSbits.RXPPS3 // bit 3
20509 #define RXPPS4 RXPPSbits.RXPPS4 // bit 4
20511 #define HADR8 SCANHADRHbits.HADR8 // bit 0, shadows bit in SCANHADRHbits
20512 #define SCANHADR8 SCANHADRHbits.SCANHADR8 // bit 0, shadows bit in SCANHADRHbits
20513 #define HADR9 SCANHADRHbits.HADR9 // bit 1, shadows bit in SCANHADRHbits
20514 #define SCANHADR9 SCANHADRHbits.SCANHADR9 // bit 1, shadows bit in SCANHADRHbits
20515 #define HADR10 SCANHADRHbits.HADR10 // bit 2, shadows bit in SCANHADRHbits
20516 #define SCANHADR10 SCANHADRHbits.SCANHADR10 // bit 2, shadows bit in SCANHADRHbits
20517 #define HADR11 SCANHADRHbits.HADR11 // bit 3, shadows bit in SCANHADRHbits
20518 #define SCANHADR11 SCANHADRHbits.SCANHADR11 // bit 3, shadows bit in SCANHADRHbits
20519 #define HADR12 SCANHADRHbits.HADR12 // bit 4, shadows bit in SCANHADRHbits
20520 #define SCANHADR12 SCANHADRHbits.SCANHADR12 // bit 4, shadows bit in SCANHADRHbits
20521 #define HADR13 SCANHADRHbits.HADR13 // bit 5, shadows bit in SCANHADRHbits
20522 #define SCANHADR13 SCANHADRHbits.SCANHADR13 // bit 5, shadows bit in SCANHADRHbits
20523 #define HADR14 SCANHADRHbits.HADR14 // bit 6, shadows bit in SCANHADRHbits
20524 #define SCANHADR14 SCANHADRHbits.SCANHADR14 // bit 6, shadows bit in SCANHADRHbits
20525 #define HADR15 SCANHADRHbits.HADR15 // bit 7, shadows bit in SCANHADRHbits
20526 #define SCANHADR15 SCANHADRHbits.SCANHADR15 // bit 7, shadows bit in SCANHADRHbits
20528 #define HADR0 SCANHADRLbits.HADR0 // bit 0, shadows bit in SCANHADRLbits
20529 #define SCANHADR0 SCANHADRLbits.SCANHADR0 // bit 0, shadows bit in SCANHADRLbits
20530 #define HADR1 SCANHADRLbits.HADR1 // bit 1, shadows bit in SCANHADRLbits
20531 #define SCANHADR1 SCANHADRLbits.SCANHADR1 // bit 1, shadows bit in SCANHADRLbits
20532 #define HADR2 SCANHADRLbits.HADR2 // bit 2, shadows bit in SCANHADRLbits
20533 #define SCANHADR2 SCANHADRLbits.SCANHADR2 // bit 2, shadows bit in SCANHADRLbits
20534 #define HADR3 SCANHADRLbits.HADR3 // bit 3, shadows bit in SCANHADRLbits
20535 #define SCANHADR3 SCANHADRLbits.SCANHADR3 // bit 3, shadows bit in SCANHADRLbits
20536 #define HADR4 SCANHADRLbits.HADR4 // bit 4, shadows bit in SCANHADRLbits
20537 #define SCANHADR4 SCANHADRLbits.SCANHADR4 // bit 4, shadows bit in SCANHADRLbits
20538 #define HADR5 SCANHADRLbits.HADR5 // bit 5, shadows bit in SCANHADRLbits
20539 #define SCANHADR5 SCANHADRLbits.SCANHADR5 // bit 5, shadows bit in SCANHADRLbits
20540 #define HADR6 SCANHADRLbits.HADR6 // bit 6, shadows bit in SCANHADRLbits
20541 #define SCANHADR6 SCANHADRLbits.SCANHADR6 // bit 6, shadows bit in SCANHADRLbits
20542 #define HADR7 SCANHADRLbits.HADR7 // bit 7, shadows bit in SCANHADRLbits
20543 #define SCANHADR7 SCANHADRLbits.SCANHADR7 // bit 7, shadows bit in SCANHADRLbits
20545 #define LADR8 SCANLADRHbits.LADR8 // bit 0, shadows bit in SCANLADRHbits
20546 #define SCANLADR8 SCANLADRHbits.SCANLADR8 // bit 0, shadows bit in SCANLADRHbits
20547 #define LADR9 SCANLADRHbits.LADR9 // bit 1, shadows bit in SCANLADRHbits
20548 #define SCANLADR9 SCANLADRHbits.SCANLADR9 // bit 1, shadows bit in SCANLADRHbits
20549 #define LADR10 SCANLADRHbits.LADR10 // bit 2, shadows bit in SCANLADRHbits
20550 #define SCANLADR10 SCANLADRHbits.SCANLADR10 // bit 2, shadows bit in SCANLADRHbits
20551 #define LADR11 SCANLADRHbits.LADR11 // bit 3, shadows bit in SCANLADRHbits
20552 #define SCANLADR11 SCANLADRHbits.SCANLADR11 // bit 3, shadows bit in SCANLADRHbits
20553 #define LADR12 SCANLADRHbits.LADR12 // bit 4, shadows bit in SCANLADRHbits
20554 #define SCANLADR12 SCANLADRHbits.SCANLADR12 // bit 4, shadows bit in SCANLADRHbits
20555 #define LADR13 SCANLADRHbits.LADR13 // bit 5, shadows bit in SCANLADRHbits
20556 #define SCANLADR13 SCANLADRHbits.SCANLADR13 // bit 5, shadows bit in SCANLADRHbits
20557 #define LADR14 SCANLADRHbits.LADR14 // bit 6, shadows bit in SCANLADRHbits
20558 #define SCANLADR14 SCANLADRHbits.SCANLADR14 // bit 6, shadows bit in SCANLADRHbits
20559 #define LADR15 SCANLADRHbits.LADR15 // bit 7, shadows bit in SCANLADRHbits
20560 #define SCANLADR15 SCANLADRHbits.SCANLADR15 // bit 7, shadows bit in SCANLADRHbits
20562 #define LADR0 SCANLADRLbits.LADR0 // bit 0, shadows bit in SCANLADRLbits
20563 #define SCANLADR0 SCANLADRLbits.SCANLADR0 // bit 0, shadows bit in SCANLADRLbits
20564 #define LADR1 SCANLADRLbits.LADR1 // bit 1, shadows bit in SCANLADRLbits
20565 #define SCANLADR1 SCANLADRLbits.SCANLADR1 // bit 1, shadows bit in SCANLADRLbits
20566 #define LADR2 SCANLADRLbits.LADR2 // bit 2, shadows bit in SCANLADRLbits
20567 #define SCANLADR2 SCANLADRLbits.SCANLADR2 // bit 2, shadows bit in SCANLADRLbits
20568 #define LADR3 SCANLADRLbits.LADR3 // bit 3, shadows bit in SCANLADRLbits
20569 #define SCANLADR3 SCANLADRLbits.SCANLADR3 // bit 3, shadows bit in SCANLADRLbits
20570 #define LADR4 SCANLADRLbits.LADR4 // bit 4, shadows bit in SCANLADRLbits
20571 #define SCANLADR4 SCANLADRLbits.SCANLADR4 // bit 4, shadows bit in SCANLADRLbits
20572 #define LADR5 SCANLADRLbits.LADR5 // bit 5, shadows bit in SCANLADRLbits
20573 #define SCANLADR5 SCANLADRLbits.SCANLADR5 // bit 5, shadows bit in SCANLADRLbits
20574 #define LADR6 SCANLADRLbits.LADR6 // bit 6, shadows bit in SCANLADRLbits
20575 #define SCANLADR6 SCANLADRLbits.SCANLADR6 // bit 6, shadows bit in SCANLADRLbits
20576 #define LADR7 SCANLADRLbits.LADR7 // bit 7, shadows bit in SCANLADRLbits
20577 #define SCANLADR7 SCANLADRLbits.SCANLADR7 // bit 7, shadows bit in SCANLADRLbits
20579 #define TSEL0 SCANTRIGbits.TSEL0 // bit 0, shadows bit in SCANTRIGbits
20580 #define SCANTSEL0 SCANTRIGbits.SCANTSEL0 // bit 0, shadows bit in SCANTRIGbits
20581 #define TSEL1 SCANTRIGbits.TSEL1 // bit 1, shadows bit in SCANTRIGbits
20582 #define SCANTSEL1 SCANTRIGbits.SCANTSEL1 // bit 1, shadows bit in SCANTRIGbits
20583 #define TSEL2 SCANTRIGbits.TSEL2 // bit 2, shadows bit in SCANTRIGbits
20584 #define SCANTSEL2 SCANTRIGbits.SCANTSEL2 // bit 2, shadows bit in SCANTRIGbits
20585 #define TSEL3 SCANTRIGbits.TSEL3 // bit 3, shadows bit in SCANTRIGbits
20586 #define SCANTSEL3 SCANTRIGbits.SCANTSEL3 // bit 3, shadows bit in SCANTRIGbits
20588 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
20589 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
20590 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
20591 #define SLRA3 SLRCONAbits.SLRA3 // bit 3
20592 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
20593 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
20594 #define SLRA6 SLRCONAbits.SLRA6 // bit 6
20595 #define SLRA7 SLRCONAbits.SLRA7 // bit 7
20597 #define SLRB0 SLRCONBbits.SLRB0 // bit 0
20598 #define SLRB1 SLRCONBbits.SLRB1 // bit 1
20599 #define SLRB2 SLRCONBbits.SLRB2 // bit 2
20600 #define SLRB3 SLRCONBbits.SLRB3 // bit 3
20601 #define SLRB4 SLRCONBbits.SLRB4 // bit 4
20602 #define SLRB5 SLRCONBbits.SLRB5 // bit 5
20603 #define SLRB6 SLRCONBbits.SLRB6 // bit 6
20604 #define SLRB7 SLRCONBbits.SLRB7 // bit 7
20606 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
20607 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
20608 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
20609 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
20610 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
20611 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
20612 #define SLRC6 SLRCONCbits.SLRC6 // bit 6
20613 #define SLRC7 SLRCONCbits.SLRC7 // bit 7
20615 #define CSEL0 SMT1CLKbits.CSEL0 // bit 0, shadows bit in SMT1CLKbits
20616 #define SMT1CSEL0 SMT1CLKbits.SMT1CSEL0 // bit 0, shadows bit in SMT1CLKbits
20617 #define CSEL1 SMT1CLKbits.CSEL1 // bit 1, shadows bit in SMT1CLKbits
20618 #define SMT1CSEL1 SMT1CLKbits.SMT1CSEL1 // bit 1, shadows bit in SMT1CLKbits
20619 #define CSEL2 SMT1CLKbits.CSEL2 // bit 2, shadows bit in SMT1CLKbits
20620 #define SMT1CSEL2 SMT1CLKbits.SMT1CSEL2 // bit 2, shadows bit in SMT1CLKbits
20622 #define CPR8 SMT1CPRHbits.CPR8 // bit 0, shadows bit in SMT1CPRHbits
20623 #define SMT1CPR8 SMT1CPRHbits.SMT1CPR8 // bit 0, shadows bit in SMT1CPRHbits
20624 #define CPR9 SMT1CPRHbits.CPR9 // bit 1, shadows bit in SMT1CPRHbits
20625 #define SMT1CPR9 SMT1CPRHbits.SMT1CPR9 // bit 1, shadows bit in SMT1CPRHbits
20626 #define CPR10 SMT1CPRHbits.CPR10 // bit 2, shadows bit in SMT1CPRHbits
20627 #define SMT1CPR10 SMT1CPRHbits.SMT1CPR10 // bit 2, shadows bit in SMT1CPRHbits
20628 #define CPR11 SMT1CPRHbits.CPR11 // bit 3, shadows bit in SMT1CPRHbits
20629 #define SMT1CPR11 SMT1CPRHbits.SMT1CPR11 // bit 3, shadows bit in SMT1CPRHbits
20630 #define CPR12 SMT1CPRHbits.CPR12 // bit 4, shadows bit in SMT1CPRHbits
20631 #define SMT1CPR12 SMT1CPRHbits.SMT1CPR12 // bit 4, shadows bit in SMT1CPRHbits
20632 #define CPR13 SMT1CPRHbits.CPR13 // bit 5, shadows bit in SMT1CPRHbits
20633 #define SMT1CPR13 SMT1CPRHbits.SMT1CPR13 // bit 5, shadows bit in SMT1CPRHbits
20634 #define CPR14 SMT1CPRHbits.CPR14 // bit 6, shadows bit in SMT1CPRHbits
20635 #define SMT1CPR14 SMT1CPRHbits.SMT1CPR14 // bit 6, shadows bit in SMT1CPRHbits
20636 #define CPR15 SMT1CPRHbits.CPR15 // bit 7, shadows bit in SMT1CPRHbits
20637 #define SMT1CPR15 SMT1CPRHbits.SMT1CPR15 // bit 7, shadows bit in SMT1CPRHbits
20639 #define CPR0 SMT1CPRLbits.CPR0 // bit 0
20640 #define CPR1 SMT1CPRLbits.CPR1 // bit 1
20641 #define CPR2 SMT1CPRLbits.CPR2 // bit 2
20642 #define CPR3 SMT1CPRLbits.CPR3 // bit 3
20643 #define CPR4 SMT1CPRLbits.CPR4 // bit 4
20644 #define CPR5 SMT1CPRLbits.CPR5 // bit 5
20645 #define CPR6 SMT1CPRLbits.CPR6 // bit 6
20646 #define CPR7 SMT1CPRLbits.CPR7 // bit 7
20648 #define CPR16 SMT1CPRUbits.CPR16 // bit 0, shadows bit in SMT1CPRUbits
20649 #define SMT1CPR16 SMT1CPRUbits.SMT1CPR16 // bit 0, shadows bit in SMT1CPRUbits
20650 #define CPR17 SMT1CPRUbits.CPR17 // bit 1, shadows bit in SMT1CPRUbits
20651 #define SMT1CPR17 SMT1CPRUbits.SMT1CPR17 // bit 1, shadows bit in SMT1CPRUbits
20652 #define CPR18 SMT1CPRUbits.CPR18 // bit 2, shadows bit in SMT1CPRUbits
20653 #define SMT1CPR18 SMT1CPRUbits.SMT1CPR18 // bit 2, shadows bit in SMT1CPRUbits
20654 #define CPR19 SMT1CPRUbits.CPR19 // bit 3, shadows bit in SMT1CPRUbits
20655 #define SMT1CPR19 SMT1CPRUbits.SMT1CPR19 // bit 3, shadows bit in SMT1CPRUbits
20656 #define CPR20 SMT1CPRUbits.CPR20 // bit 4, shadows bit in SMT1CPRUbits
20657 #define SMT1CPR20 SMT1CPRUbits.SMT1CPR20 // bit 4, shadows bit in SMT1CPRUbits
20658 #define CPR21 SMT1CPRUbits.CPR21 // bit 5, shadows bit in SMT1CPRUbits
20659 #define SMT1CPR21 SMT1CPRUbits.SMT1CPR21 // bit 5, shadows bit in SMT1CPRUbits
20660 #define CPR22 SMT1CPRUbits.CPR22 // bit 6, shadows bit in SMT1CPRUbits
20661 #define SMT1CPR22 SMT1CPRUbits.SMT1CPR22 // bit 6, shadows bit in SMT1CPRUbits
20662 #define CPR23 SMT1CPRUbits.CPR23 // bit 7, shadows bit in SMT1CPRUbits
20663 #define SMT1CPR23 SMT1CPRUbits.SMT1CPR23 // bit 7, shadows bit in SMT1CPRUbits
20665 #define CPW8 SMT1CPWHbits.CPW8 // bit 0, shadows bit in SMT1CPWHbits
20666 #define SMT1CPW8 SMT1CPWHbits.SMT1CPW8 // bit 0, shadows bit in SMT1CPWHbits
20667 #define CPW9 SMT1CPWHbits.CPW9 // bit 1, shadows bit in SMT1CPWHbits
20668 #define SMT1CPW9 SMT1CPWHbits.SMT1CPW9 // bit 1, shadows bit in SMT1CPWHbits
20669 #define CPW10 SMT1CPWHbits.CPW10 // bit 2, shadows bit in SMT1CPWHbits
20670 #define SMT1CPW10 SMT1CPWHbits.SMT1CPW10 // bit 2, shadows bit in SMT1CPWHbits
20671 #define CPW11 SMT1CPWHbits.CPW11 // bit 3, shadows bit in SMT1CPWHbits
20672 #define SMT1CPW11 SMT1CPWHbits.SMT1CPW11 // bit 3, shadows bit in SMT1CPWHbits
20673 #define CPW12 SMT1CPWHbits.CPW12 // bit 4, shadows bit in SMT1CPWHbits
20674 #define SMT1CPW12 SMT1CPWHbits.SMT1CPW12 // bit 4, shadows bit in SMT1CPWHbits
20675 #define CPW13 SMT1CPWHbits.CPW13 // bit 5, shadows bit in SMT1CPWHbits
20676 #define SMT1CPW13 SMT1CPWHbits.SMT1CPW13 // bit 5, shadows bit in SMT1CPWHbits
20677 #define CPW14 SMT1CPWHbits.CPW14 // bit 6, shadows bit in SMT1CPWHbits
20678 #define SMT1CPW14 SMT1CPWHbits.SMT1CPW14 // bit 6, shadows bit in SMT1CPWHbits
20679 #define CPW15 SMT1CPWHbits.CPW15 // bit 7, shadows bit in SMT1CPWHbits
20680 #define SMT1CPW15 SMT1CPWHbits.SMT1CPW15 // bit 7, shadows bit in SMT1CPWHbits
20682 #define CPW0 SMT1CPWLbits.CPW0 // bit 0, shadows bit in SMT1CPWLbits
20683 #define SMT1CPW0 SMT1CPWLbits.SMT1CPW0 // bit 0, shadows bit in SMT1CPWLbits
20684 #define CPW1 SMT1CPWLbits.CPW1 // bit 1, shadows bit in SMT1CPWLbits
20685 #define SMT1CPW1 SMT1CPWLbits.SMT1CPW1 // bit 1, shadows bit in SMT1CPWLbits
20686 #define CPW2 SMT1CPWLbits.CPW2 // bit 2, shadows bit in SMT1CPWLbits
20687 #define SMT1CPW2 SMT1CPWLbits.SMT1CPW2 // bit 2, shadows bit in SMT1CPWLbits
20688 #define CPW3 SMT1CPWLbits.CPW3 // bit 3, shadows bit in SMT1CPWLbits
20689 #define SMT1CPW3 SMT1CPWLbits.SMT1CPW3 // bit 3, shadows bit in SMT1CPWLbits
20690 #define CPW4 SMT1CPWLbits.CPW4 // bit 4, shadows bit in SMT1CPWLbits
20691 #define SMT1CPW4 SMT1CPWLbits.SMT1CPW4 // bit 4, shadows bit in SMT1CPWLbits
20692 #define CPW5 SMT1CPWLbits.CPW5 // bit 5, shadows bit in SMT1CPWLbits
20693 #define SMT1CPW5 SMT1CPWLbits.SMT1CPW5 // bit 5, shadows bit in SMT1CPWLbits
20694 #define CPW6 SMT1CPWLbits.CPW6 // bit 6, shadows bit in SMT1CPWLbits
20695 #define SMT1CPW6 SMT1CPWLbits.SMT1CPW6 // bit 6, shadows bit in SMT1CPWLbits
20696 #define CPW7 SMT1CPWLbits.CPW7 // bit 7, shadows bit in SMT1CPWLbits
20697 #define SMT1CPW7 SMT1CPWLbits.SMT1CPW7 // bit 7, shadows bit in SMT1CPWLbits
20699 #define CPW16 SMT1CPWUbits.CPW16 // bit 0, shadows bit in SMT1CPWUbits
20700 #define SMT1CPW16 SMT1CPWUbits.SMT1CPW16 // bit 0, shadows bit in SMT1CPWUbits
20701 #define CPW17 SMT1CPWUbits.CPW17 // bit 1, shadows bit in SMT1CPWUbits
20702 #define SMT1CPW17 SMT1CPWUbits.SMT1CPW17 // bit 1, shadows bit in SMT1CPWUbits
20703 #define CPW18 SMT1CPWUbits.CPW18 // bit 2, shadows bit in SMT1CPWUbits
20704 #define SMT1CPW18 SMT1CPWUbits.SMT1CPW18 // bit 2, shadows bit in SMT1CPWUbits
20705 #define CPW19 SMT1CPWUbits.CPW19 // bit 3, shadows bit in SMT1CPWUbits
20706 #define SMT1CPW19 SMT1CPWUbits.SMT1CPW19 // bit 3, shadows bit in SMT1CPWUbits
20707 #define CPW20 SMT1CPWUbits.CPW20 // bit 4, shadows bit in SMT1CPWUbits
20708 #define SMT1CPW20 SMT1CPWUbits.SMT1CPW20 // bit 4, shadows bit in SMT1CPWUbits
20709 #define CPW21 SMT1CPWUbits.CPW21 // bit 5, shadows bit in SMT1CPWUbits
20710 #define SMT1CPW21 SMT1CPWUbits.SMT1CPW21 // bit 5, shadows bit in SMT1CPWUbits
20711 #define CPW22 SMT1CPWUbits.CPW22 // bit 6, shadows bit in SMT1CPWUbits
20712 #define SMT1CPW22 SMT1CPWUbits.SMT1CPW22 // bit 6, shadows bit in SMT1CPWUbits
20713 #define CPW23 SMT1CPWUbits.CPW23 // bit 7, shadows bit in SMT1CPWUbits
20714 #define SMT1CPW23 SMT1CPWUbits.SMT1CPW23 // bit 7, shadows bit in SMT1CPWUbits
20716 #define SMT1PR8 SMT1PRHbits.SMT1PR8 // bit 0
20717 #define SMT1PR9 SMT1PRHbits.SMT1PR9 // bit 1
20718 #define SMT1PR10 SMT1PRHbits.SMT1PR10 // bit 2
20719 #define SMT1PR11 SMT1PRHbits.SMT1PR11 // bit 3
20720 #define SMT1PR12 SMT1PRHbits.SMT1PR12 // bit 4
20721 #define SMT1PR13 SMT1PRHbits.SMT1PR13 // bit 5
20722 #define SMT1PR14 SMT1PRHbits.SMT1PR14 // bit 6
20723 #define SMT1PR15 SMT1PRHbits.SMT1PR15 // bit 7
20725 #define SMT1PR0 SMT1PRLbits.SMT1PR0 // bit 0
20726 #define SMT1PR1 SMT1PRLbits.SMT1PR1 // bit 1
20727 #define SMT1PR2 SMT1PRLbits.SMT1PR2 // bit 2
20728 #define SMT1PR3 SMT1PRLbits.SMT1PR3 // bit 3
20729 #define SMT1PR4 SMT1PRLbits.SMT1PR4 // bit 4
20730 #define SMT1PR5 SMT1PRLbits.SMT1PR5 // bit 5
20731 #define SMT1PR6 SMT1PRLbits.SMT1PR6 // bit 6
20732 #define SMT1PR7 SMT1PRLbits.SMT1PR7 // bit 7
20734 #define SMT1PR16 SMT1PRUbits.SMT1PR16 // bit 0
20735 #define SMT1PR17 SMT1PRUbits.SMT1PR17 // bit 1
20736 #define SMT1PR18 SMT1PRUbits.SMT1PR18 // bit 2
20737 #define SMT1PR19 SMT1PRUbits.SMT1PR19 // bit 3
20738 #define SMT1PR20 SMT1PRUbits.SMT1PR20 // bit 4
20739 #define SMT1PR21 SMT1PRUbits.SMT1PR21 // bit 5
20740 #define SMT1PR22 SMT1PRUbits.SMT1PR22 // bit 6
20741 #define SMT1PR23 SMT1PRUbits.SMT1PR23 // bit 7
20743 #define SSEL0 SMT1SIGbits.SSEL0 // bit 0, shadows bit in SMT1SIGbits
20744 #define SMT1SSEL0 SMT1SIGbits.SMT1SSEL0 // bit 0, shadows bit in SMT1SIGbits
20745 #define SSEL1 SMT1SIGbits.SSEL1 // bit 1, shadows bit in SMT1SIGbits
20746 #define SMT1SSEL1 SMT1SIGbits.SMT1SSEL1 // bit 1, shadows bit in SMT1SIGbits
20747 #define SSEL2 SMT1SIGbits.SSEL2 // bit 2, shadows bit in SMT1SIGbits
20748 #define SMT1SSEL2 SMT1SIGbits.SMT1SSEL2 // bit 2, shadows bit in SMT1SIGbits
20749 #define SSEL3 SMT1SIGbits.SSEL3 // bit 3, shadows bit in SMT1SIGbits
20750 #define SMT1SSEL3 SMT1SIGbits.SMT1SSEL3 // bit 3, shadows bit in SMT1SIGbits
20751 #define SSEL4 SMT1SIGbits.SSEL4 // bit 4, shadows bit in SMT1SIGbits
20752 #define SMT1SSEL4 SMT1SIGbits.SMT1SSEL4 // bit 4, shadows bit in SMT1SIGbits
20754 #define SMU1SIGPPS0 SMT1SIGPPSbits.SMU1SIGPPS0 // bit 0
20755 #define SMU1SIGPPS1 SMT1SIGPPSbits.SMU1SIGPPS1 // bit 1
20756 #define SMU1SIGPPS2 SMT1SIGPPSbits.SMU1SIGPPS2 // bit 2
20757 #define SMU1SIGPPS3 SMT1SIGPPSbits.SMU1SIGPPS3 // bit 3
20758 #define SMU1SIGPPS4 SMT1SIGPPSbits.SMU1SIGPPS4 // bit 4
20760 #define AS SMT1STATbits.AS // bit 0, shadows bit in SMT1STATbits
20761 #define SMT1AS SMT1STATbits.SMT1AS // bit 0, shadows bit in SMT1STATbits
20762 #define WS SMT1STATbits.WS // bit 1, shadows bit in SMT1STATbits
20763 #define SMT1WS SMT1STATbits.SMT1WS // bit 1, shadows bit in SMT1STATbits
20764 #define TS SMT1STATbits.TS // bit 2, shadows bit in SMT1STATbits
20765 #define SMT1TS SMT1STATbits.SMT1TS // bit 2, shadows bit in SMT1STATbits
20766 #define RST SMT1STATbits.RST // bit 5, shadows bit in SMT1STATbits
20767 #define SMT1RESET SMT1STATbits.SMT1RESET // bit 5, shadows bit in SMT1STATbits
20768 #define CPWUP SMT1STATbits.CPWUP // bit 6, shadows bit in SMT1STATbits
20769 #define SMT1CPWUP SMT1STATbits.SMT1CPWUP // bit 6, shadows bit in SMT1STATbits
20770 #define CPRUP SMT1STATbits.CPRUP // bit 7, shadows bit in SMT1STATbits
20771 #define SMT1CPRUP SMT1STATbits.SMT1CPRUP // bit 7, shadows bit in SMT1STATbits
20773 #define SMT1TMR8 SMT1TMRHbits.SMT1TMR8 // bit 0
20774 #define SMT1TMR9 SMT1TMRHbits.SMT1TMR9 // bit 1
20775 #define SMT1TMR10 SMT1TMRHbits.SMT1TMR10 // bit 2
20776 #define SMT1TMR11 SMT1TMRHbits.SMT1TMR11 // bit 3
20777 #define SMT1TMR12 SMT1TMRHbits.SMT1TMR12 // bit 4
20778 #define SMT1TMR13 SMT1TMRHbits.SMT1TMR13 // bit 5
20779 #define SMT1TMR14 SMT1TMRHbits.SMT1TMR14 // bit 6
20780 #define SMT1TMR15 SMT1TMRHbits.SMT1TMR15 // bit 7
20782 #define SMT1TMR0 SMT1TMRLbits.SMT1TMR0 // bit 0
20783 #define SMT1TMR1 SMT1TMRLbits.SMT1TMR1 // bit 1
20784 #define SMT1TMR2 SMT1TMRLbits.SMT1TMR2 // bit 2
20785 #define SMT1TMR3 SMT1TMRLbits.SMT1TMR3 // bit 3
20786 #define SMT1TMR4 SMT1TMRLbits.SMT1TMR4 // bit 4
20787 #define SMT1TMR5 SMT1TMRLbits.SMT1TMR5 // bit 5
20788 #define SMT1TMR6 SMT1TMRLbits.SMT1TMR6 // bit 6
20789 #define SMT1TMR7 SMT1TMRLbits.SMT1TMR7 // bit 7
20791 #define SMT1TMR16 SMT1TMRUbits.SMT1TMR16 // bit 0
20792 #define SMT1TMR17 SMT1TMRUbits.SMT1TMR17 // bit 1
20793 #define SMT1TMR18 SMT1TMRUbits.SMT1TMR18 // bit 2
20794 #define SMT1TMR19 SMT1TMRUbits.SMT1TMR19 // bit 3
20795 #define SMT1TMR20 SMT1TMRUbits.SMT1TMR20 // bit 4
20796 #define SMT1TMR21 SMT1TMRUbits.SMT1TMR21 // bit 5
20797 #define SMT1TMR22 SMT1TMRUbits.SMT1TMR22 // bit 6
20798 #define SMT1TMR23 SMT1TMRUbits.SMT1TMR23 // bit 7
20800 #define WSEL0 SMT1WINbits.WSEL0 // bit 0, shadows bit in SMT1WINbits
20801 #define SMT1WSEL0 SMT1WINbits.SMT1WSEL0 // bit 0, shadows bit in SMT1WINbits
20802 #define WSEL1 SMT1WINbits.WSEL1 // bit 1, shadows bit in SMT1WINbits
20803 #define SMT1WSEL1 SMT1WINbits.SMT1WSEL1 // bit 1, shadows bit in SMT1WINbits
20804 #define WSEL2 SMT1WINbits.WSEL2 // bit 2, shadows bit in SMT1WINbits
20805 #define SMT1WSEL2 SMT1WINbits.SMT1WSEL2 // bit 2, shadows bit in SMT1WINbits
20806 #define WSEL3 SMT1WINbits.WSEL3 // bit 3, shadows bit in SMT1WINbits
20807 #define SMT1WSEL3 SMT1WINbits.SMT1WSEL3 // bit 3, shadows bit in SMT1WINbits
20808 #define WSEL4 SMT1WINbits.WSEL4 // bit 4, shadows bit in SMT1WINbits
20809 #define SMT1WSEL4 SMT1WINbits.SMT1WSEL4 // bit 4, shadows bit in SMT1WINbits
20811 #define SMU1WINPPS0 SMT1WINPPSbits.SMU1WINPPS0 // bit 0
20812 #define SMU1WINPPS1 SMT1WINPPSbits.SMU1WINPPS1 // bit 1
20813 #define SMU1WINPPS2 SMT1WINPPSbits.SMU1WINPPS2 // bit 2
20814 #define SMU1WINPPS3 SMT1WINPPSbits.SMU1WINPPS3 // bit 3
20815 #define SMU1WINPPS4 SMT1WINPPSbits.SMU1WINPPS4 // bit 4
20817 #define SMT2PR8 SMT2PRHbits.SMT2PR8 // bit 0
20818 #define SMT2PR9 SMT2PRHbits.SMT2PR9 // bit 1
20819 #define SMT2PR10 SMT2PRHbits.SMT2PR10 // bit 2
20820 #define SMT2PR11 SMT2PRHbits.SMT2PR11 // bit 3
20821 #define SMT2PR12 SMT2PRHbits.SMT2PR12 // bit 4
20822 #define SMT2PR13 SMT2PRHbits.SMT2PR13 // bit 5
20823 #define SMT2PR14 SMT2PRHbits.SMT2PR14 // bit 6
20824 #define SMT2PR15 SMT2PRHbits.SMT2PR15 // bit 7
20826 #define SMT2PR0 SMT2PRLbits.SMT2PR0 // bit 0
20827 #define SMT2PR1 SMT2PRLbits.SMT2PR1 // bit 1
20828 #define SMT2PR2 SMT2PRLbits.SMT2PR2 // bit 2
20829 #define SMT2PR3 SMT2PRLbits.SMT2PR3 // bit 3
20830 #define SMT2PR4 SMT2PRLbits.SMT2PR4 // bit 4
20831 #define SMT2PR5 SMT2PRLbits.SMT2PR5 // bit 5
20832 #define SMT2PR6 SMT2PRLbits.SMT2PR6 // bit 6
20833 #define SMT2PR7 SMT2PRLbits.SMT2PR7 // bit 7
20835 #define SMT2PR16 SMT2PRUbits.SMT2PR16 // bit 0
20836 #define SMT2PR17 SMT2PRUbits.SMT2PR17 // bit 1
20837 #define SMT2PR18 SMT2PRUbits.SMT2PR18 // bit 2
20838 #define SMT2PR19 SMT2PRUbits.SMT2PR19 // bit 3
20839 #define SMT2PR20 SMT2PRUbits.SMT2PR20 // bit 4
20840 #define SMT2PR21 SMT2PRUbits.SMT2PR21 // bit 5
20841 #define SMT2PR22 SMT2PRUbits.SMT2PR22 // bit 6
20842 #define SMT2PR23 SMT2PRUbits.SMT2PR23 // bit 7
20844 #define SMU2SIGPPS0 SMT2SIGPPSbits.SMU2SIGPPS0 // bit 0
20845 #define SMU2SIGPPS1 SMT2SIGPPSbits.SMU2SIGPPS1 // bit 1
20846 #define SMU2SIGPPS2 SMT2SIGPPSbits.SMU2SIGPPS2 // bit 2
20847 #define SMU2SIGPPS3 SMT2SIGPPSbits.SMU2SIGPPS3 // bit 3
20848 #define SMU2SIGPPS4 SMT2SIGPPSbits.SMU2SIGPPS4 // bit 4
20850 #define SMT2TMR8 SMT2TMRHbits.SMT2TMR8 // bit 0
20851 #define SMT2TMR9 SMT2TMRHbits.SMT2TMR9 // bit 1
20852 #define SMT2TMR10 SMT2TMRHbits.SMT2TMR10 // bit 2
20853 #define SMT2TMR11 SMT2TMRHbits.SMT2TMR11 // bit 3
20854 #define SMT2TMR12 SMT2TMRHbits.SMT2TMR12 // bit 4
20855 #define SMT2TMR13 SMT2TMRHbits.SMT2TMR13 // bit 5
20856 #define SMT2TMR14 SMT2TMRHbits.SMT2TMR14 // bit 6
20857 #define SMT2TMR15 SMT2TMRHbits.SMT2TMR15 // bit 7
20859 #define SMT2TMR0 SMT2TMRLbits.SMT2TMR0 // bit 0
20860 #define SMT2TMR1 SMT2TMRLbits.SMT2TMR1 // bit 1
20861 #define SMT2TMR2 SMT2TMRLbits.SMT2TMR2 // bit 2
20862 #define SMT2TMR3 SMT2TMRLbits.SMT2TMR3 // bit 3
20863 #define SMT2TMR4 SMT2TMRLbits.SMT2TMR4 // bit 4
20864 #define SMT2TMR5 SMT2TMRLbits.SMT2TMR5 // bit 5
20865 #define SMT2TMR6 SMT2TMRLbits.SMT2TMR6 // bit 6
20866 #define SMT2TMR7 SMT2TMRLbits.SMT2TMR7 // bit 7
20868 #define SMT2TMR16 SMT2TMRUbits.SMT2TMR16 // bit 0
20869 #define SMT2TMR17 SMT2TMRUbits.SMT2TMR17 // bit 1
20870 #define SMT2TMR18 SMT2TMRUbits.SMT2TMR18 // bit 2
20871 #define SMT2TMR19 SMT2TMRUbits.SMT2TMR19 // bit 3
20872 #define SMT2TMR20 SMT2TMRUbits.SMT2TMR20 // bit 4
20873 #define SMT2TMR21 SMT2TMRUbits.SMT2TMR21 // bit 5
20874 #define SMT2TMR22 SMT2TMRUbits.SMT2TMR22 // bit 6
20875 #define SMT2TMR23 SMT2TMRUbits.SMT2TMR23 // bit 7
20877 #define SMU2WINPPS0 SMT2WINPPSbits.SMU2WINPPS0 // bit 0
20878 #define SMU2WINPPS1 SMT2WINPPSbits.SMU2WINPPS1 // bit 1
20879 #define SMU2WINPPS2 SMT2WINPPSbits.SMU2WINPPS2 // bit 2
20880 #define SMU2WINPPS3 SMT2WINPPSbits.SMU2WINPPS3 // bit 3
20881 #define SMU2WINPPS4 SMT2WINPPSbits.SMU2WINPPS4 // bit 4
20883 #define SSP1CLKPPS0 SSP1CLKPPSbits.SSP1CLKPPS0 // bit 0
20884 #define SSP1CLKPPS1 SSP1CLKPPSbits.SSP1CLKPPS1 // bit 1
20885 #define SSP1CLKPPS2 SSP1CLKPPSbits.SSP1CLKPPS2 // bit 2
20886 #define SSP1CLKPPS3 SSP1CLKPPSbits.SSP1CLKPPS3 // bit 3
20887 #define SSP1CLKPPS4 SSP1CLKPPSbits.SSP1CLKPPS4 // bit 4
20889 #define SSPM0 SSP1CON1bits.SSPM0 // bit 0
20890 #define SSPM1 SSP1CON1bits.SSPM1 // bit 1
20891 #define SSPM2 SSP1CON1bits.SSPM2 // bit 2
20892 #define SSPM3 SSP1CON1bits.SSPM3 // bit 3
20893 #define CKP SSP1CON1bits.CKP // bit 4
20894 #define SSPEN SSP1CON1bits.SSPEN // bit 5
20895 #define SSPOV SSP1CON1bits.SSPOV // bit 6
20896 #define WCOL SSP1CON1bits.WCOL // bit 7
20898 #define SEN SSP1CON2bits.SEN // bit 0
20899 #define RSEN SSP1CON2bits.RSEN // bit 1, shadows bit in SSP1CON2bits
20900 #define ADMSK1 SSP1CON2bits.ADMSK1 // bit 1, shadows bit in SSP1CON2bits
20901 #define PEN SSP1CON2bits.PEN // bit 2, shadows bit in SSP1CON2bits
20902 #define ADMSK2 SSP1CON2bits.ADMSK2 // bit 2, shadows bit in SSP1CON2bits
20903 #define RCEN SSP1CON2bits.RCEN // bit 3, shadows bit in SSP1CON2bits
20904 #define ADMSK3 SSP1CON2bits.ADMSK3 // bit 3, shadows bit in SSP1CON2bits
20905 #define ACKEN SSP1CON2bits.ACKEN // bit 4, shadows bit in SSP1CON2bits
20906 #define ADMSK4 SSP1CON2bits.ADMSK4 // bit 4, shadows bit in SSP1CON2bits
20907 #define ACKDT SSP1CON2bits.ACKDT // bit 5, shadows bit in SSP1CON2bits
20908 #define ADMSK5 SSP1CON2bits.ADMSK5 // bit 5, shadows bit in SSP1CON2bits
20909 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
20910 #define GCEN SSP1CON2bits.GCEN // bit 7
20912 #define DHEN SSP1CON3bits.DHEN // bit 0
20913 #define AHEN SSP1CON3bits.AHEN // bit 1
20914 #define SBCDE SSP1CON3bits.SBCDE // bit 2
20915 #define SDAHT SSP1CON3bits.SDAHT // bit 3
20916 #define BOEN SSP1CON3bits.BOEN // bit 4
20917 #define SCIE SSP1CON3bits.SCIE // bit 5
20918 #define PCIE SSP1CON3bits.PCIE // bit 6
20919 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
20921 #define SSP1DATPPS0 SSP1DATPPSbits.SSP1DATPPS0 // bit 0
20922 #define SSP1DATPPS1 SSP1DATPPSbits.SSP1DATPPS1 // bit 1
20923 #define SSP1DATPPS2 SSP1DATPPSbits.SSP1DATPPS2 // bit 2
20924 #define SSP1DATPPS3 SSP1DATPPSbits.SSP1DATPPS3 // bit 3
20925 #define SSP1DATPPS4 SSP1DATPPSbits.SSP1DATPPS4 // bit 4
20927 #define MSK0 SSP1MSKbits.MSK0 // bit 0
20928 #define MSK1 SSP1MSKbits.MSK1 // bit 1
20929 #define MSK2 SSP1MSKbits.MSK2 // bit 2
20930 #define MSK3 SSP1MSKbits.MSK3 // bit 3
20931 #define MSK4 SSP1MSKbits.MSK4 // bit 4
20932 #define MSK5 SSP1MSKbits.MSK5 // bit 5
20933 #define MSK6 SSP1MSKbits.MSK6 // bit 6
20934 #define MSK7 SSP1MSKbits.MSK7 // bit 7
20936 #define SSP1SSPPS0 SSP1SSPPSbits.SSP1SSPPS0 // bit 0
20937 #define SSP1SSPPS1 SSP1SSPPSbits.SSP1SSPPS1 // bit 1
20938 #define SSP1SSPPS2 SSP1SSPPSbits.SSP1SSPPS2 // bit 2
20939 #define SSP1SSPPS3 SSP1SSPPSbits.SSP1SSPPS3 // bit 3
20940 #define SSP1SSPPS4 SSP1SSPPSbits.SSP1SSPPS4 // bit 4
20942 #define BF SSP1STATbits.BF // bit 0
20943 #define UA SSP1STATbits.UA // bit 1
20944 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2, shadows bit in SSP1STATbits
20945 #define R_W SSP1STATbits.R_W // bit 2, shadows bit in SSP1STATbits
20946 #define NOT_W SSP1STATbits.NOT_W // bit 2, shadows bit in SSP1STATbits
20947 #define NOT_WRITE SSP1STATbits.NOT_WRITE // bit 2, shadows bit in SSP1STATbits
20948 #define READ_WRITE SSP1STATbits.READ_WRITE // bit 2, shadows bit in SSP1STATbits
20949 #define I2C_READ SSP1STATbits.I2C_READ // bit 2, shadows bit in SSP1STATbits
20950 #define S SSP1STATbits.S // bit 3, shadows bit in SSP1STATbits
20951 #define I2C_START SSP1STATbits.I2C_START // bit 3, shadows bit in SSP1STATbits
20952 #define P SSP1STATbits.P // bit 4, shadows bit in SSP1STATbits
20953 #define I2C_STOP SSP1STATbits.I2C_STOP // bit 4, shadows bit in SSP1STATbits
20954 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5, shadows bit in SSP1STATbits
20955 #define D_A SSP1STATbits.D_A // bit 5, shadows bit in SSP1STATbits
20956 #define NOT_A SSP1STATbits.NOT_A // bit 5, shadows bit in SSP1STATbits
20957 #define NOT_ADDRESS SSP1STATbits.NOT_ADDRESS // bit 5, shadows bit in SSP1STATbits
20958 #define DATA_ADDRESS SSP1STATbits.DATA_ADDRESS // bit 5, shadows bit in SSP1STATbits
20959 #define I2C_DAT SSP1STATbits.I2C_DAT // bit 5, shadows bit in SSP1STATbits
20960 #define CKE SSP1STATbits.CKE // bit 6
20961 #define SMP SSP1STATbits.SMP // bit 7
20963 #define SSP2CLKPPS0 SSP2CLKPPSbits.SSP2CLKPPS0 // bit 0
20964 #define SSP2CLKPPS1 SSP2CLKPPSbits.SSP2CLKPPS1 // bit 1
20965 #define SSP2CLKPPS2 SSP2CLKPPSbits.SSP2CLKPPS2 // bit 2
20966 #define SSP2CLKPPS3 SSP2CLKPPSbits.SSP2CLKPPS3 // bit 3
20967 #define SSP2CLKPPS4 SSP2CLKPPSbits.SSP2CLKPPS4 // bit 4
20969 #define SSP2DATPPS0 SSP2DATPPSbits.SSP2DATPPS0 // bit 0
20970 #define SSP2DATPPS1 SSP2DATPPSbits.SSP2DATPPS1 // bit 1
20971 #define SSP2DATPPS2 SSP2DATPPSbits.SSP2DATPPS2 // bit 2
20972 #define SSP2DATPPS3 SSP2DATPPSbits.SSP2DATPPS3 // bit 3
20973 #define SSP2DATPPS4 SSP2DATPPSbits.SSP2DATPPS4 // bit 4
20975 #define SSP2SSPPS0 SSP2SSPPSbits.SSP2SSPPS0 // bit 0
20976 #define SSP2SSPPS1 SSP2SSPPSbits.SSP2SSPPS1 // bit 1
20977 #define SSP2SSPPS2 SSP2SSPPSbits.SSP2SSPPS2 // bit 2
20978 #define SSP2SSPPS3 SSP2SSPPSbits.SSP2SSPPS3 // bit 3
20979 #define SSP2SSPPS4 SSP2SSPPSbits.SSP2SSPPS4 // bit 4
20981 #define C STATUSbits.C // bit 0
20982 #define DC STATUSbits.DC // bit 1
20983 #define Z STATUSbits.Z // bit 2
20984 #define NOT_PD STATUSbits.NOT_PD // bit 3
20985 #define NOT_TO STATUSbits.NOT_TO // bit 4
20987 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
20988 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
20989 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
20991 #define T0CKIPPS0 T0CKIPPSbits.T0CKIPPS0 // bit 0
20992 #define T0CKIPPS1 T0CKIPPSbits.T0CKIPPS1 // bit 1
20993 #define T0CKIPPS2 T0CKIPPSbits.T0CKIPPS2 // bit 2
20994 #define T0CKIPPS3 T0CKIPPSbits.T0CKIPPS3 // bit 3
20996 #define T0OUTPS0 T0CON0bits.T0OUTPS0 // bit 0
20997 #define T0OUTPS1 T0CON0bits.T0OUTPS1 // bit 1
20998 #define T0OUTPS2 T0CON0bits.T0OUTPS2 // bit 2
20999 #define T0OUTPS3 T0CON0bits.T0OUTPS3 // bit 3
21000 #define T016BIT T0CON0bits.T016BIT // bit 4
21001 #define T0OUT T0CON0bits.T0OUT // bit 5
21002 #define T0EN T0CON0bits.T0EN // bit 7
21004 #define T0CKPS0 T0CON1bits.T0CKPS0 // bit 0, shadows bit in T0CON1bits
21005 #define T0PS0 T0CON1bits.T0PS0 // bit 0, shadows bit in T0CON1bits
21006 #define T0CKPS1 T0CON1bits.T0CKPS1 // bit 1, shadows bit in T0CON1bits
21007 #define T0PS1 T0CON1bits.T0PS1 // bit 1, shadows bit in T0CON1bits
21008 #define T0CKPS2 T0CON1bits.T0CKPS2 // bit 2, shadows bit in T0CON1bits
21009 #define T0PS2 T0CON1bits.T0PS2 // bit 2, shadows bit in T0CON1bits
21010 #define T0CKPS3 T0CON1bits.T0CKPS3 // bit 3, shadows bit in T0CON1bits
21011 #define T0PS3 T0CON1bits.T0PS3 // bit 3, shadows bit in T0CON1bits
21012 #define T0ASYNC T0CON1bits.T0ASYNC // bit 4
21013 #define T0CS0 T0CON1bits.T0CS0 // bit 5
21014 #define T0CS1 T0CON1bits.T0CS1 // bit 6
21015 #define T0CS2 T0CON1bits.T0CS2 // bit 7
21017 #define T1CKIPPS0 T1CKIPPSbits.T1CKIPPS0 // bit 0
21018 #define T1CKIPPS1 T1CKIPPSbits.T1CKIPPS1 // bit 1
21019 #define T1CKIPPS2 T1CKIPPSbits.T1CKIPPS2 // bit 2
21020 #define T1CKIPPS3 T1CKIPPSbits.T1CKIPPS3 // bit 3
21021 #define T1CKIPPS4 T1CKIPPSbits.T1CKIPPS4 // bit 4
21023 #define T1CS0 T1CLKbits.T1CS0 // bit 0, shadows bit in T1CLKbits
21024 #define CS0 T1CLKbits.CS0 // bit 0, shadows bit in T1CLKbits
21025 #define T1CS1 T1CLKbits.T1CS1 // bit 1, shadows bit in T1CLKbits
21026 #define CS1 T1CLKbits.CS1 // bit 1, shadows bit in T1CLKbits
21027 #define T1CS2 T1CLKbits.T1CS2 // bit 2, shadows bit in T1CLKbits
21028 #define CS2 T1CLKbits.CS2 // bit 2, shadows bit in T1CLKbits
21029 #define T1CS3 T1CLKbits.T1CS3 // bit 3, shadows bit in T1CLKbits
21030 #define CS3 T1CLKbits.CS3 // bit 3, shadows bit in T1CLKbits
21032 #define GSS0 T1GATEbits.GSS0 // bit 0, shadows bit in T1GATEbits
21033 #define T1GSS0 T1GATEbits.T1GSS0 // bit 0, shadows bit in T1GATEbits
21034 #define GSS1 T1GATEbits.GSS1 // bit 1, shadows bit in T1GATEbits
21035 #define T1GSS1 T1GATEbits.T1GSS1 // bit 1, shadows bit in T1GATEbits
21036 #define GSS2 T1GATEbits.GSS2 // bit 2, shadows bit in T1GATEbits
21037 #define T1GSS2 T1GATEbits.T1GSS2 // bit 2, shadows bit in T1GATEbits
21038 #define GSS3 T1GATEbits.GSS3 // bit 3, shadows bit in T1GATEbits
21039 #define T1GSS3 T1GATEbits.T1GSS3 // bit 3, shadows bit in T1GATEbits
21040 #define GSS4 T1GATEbits.GSS4 // bit 4, shadows bit in T1GATEbits
21041 #define T1GSS4 T1GATEbits.T1GSS4 // bit 4, shadows bit in T1GATEbits
21043 #define T1GPPS0 T1GPPSbits.T1GPPS0 // bit 0
21044 #define T1GPPS1 T1GPPSbits.T1GPPS1 // bit 1
21045 #define T1GPPS2 T1GPPSbits.T1GPPS2 // bit 2
21046 #define T1GPPS3 T1GPPSbits.T1GPPS3 // bit 3
21047 #define T1GPPS4 T1GPPSbits.T1GPPS4 // bit 4
21049 #define T2AINPPS0 T2AINPPSbits.T2AINPPS0 // bit 0
21050 #define T2AINPPS1 T2AINPPSbits.T2AINPPS1 // bit 1
21051 #define T2AINPPS2 T2AINPPSbits.T2AINPPS2 // bit 2
21052 #define T2AINPPS3 T2AINPPSbits.T2AINPPS3 // bit 3
21053 #define T2AINPPS4 T2AINPPSbits.T2AINPPS4 // bit 4
21055 #define T2CS0 T2CLKCONbits.T2CS0 // bit 0
21056 #define T2CS1 T2CLKCONbits.T2CS1 // bit 1
21057 #define T2CS2 T2CLKCONbits.T2CS2 // bit 2
21058 #define T2CS3 T2CLKCONbits.T2CS3 // bit 3
21060 #define RSEL0 T2RSTbits.RSEL0 // bit 0, shadows bit in T2RSTbits
21061 #define T2RSEL0 T2RSTbits.T2RSEL0 // bit 0, shadows bit in T2RSTbits
21062 #define RSEL1 T2RSTbits.RSEL1 // bit 1, shadows bit in T2RSTbits
21063 #define T2RSEL1 T2RSTbits.T2RSEL1 // bit 1, shadows bit in T2RSTbits
21064 #define RSEL2 T2RSTbits.RSEL2 // bit 2, shadows bit in T2RSTbits
21065 #define T2RSEL2 T2RSTbits.T2RSEL2 // bit 2, shadows bit in T2RSTbits
21066 #define RSEL3 T2RSTbits.RSEL3 // bit 3, shadows bit in T2RSTbits
21067 #define T2RSEL3 T2RSTbits.T2RSEL3 // bit 3, shadows bit in T2RSTbits
21068 #define RSEL4 T2RSTbits.RSEL4 // bit 4, shadows bit in T2RSTbits
21069 #define T2RSEL4 T2RSTbits.T2RSEL4 // bit 4, shadows bit in T2RSTbits
21071 #define T3CKIPPS0 T3CKIPPSbits.T3CKIPPS0 // bit 0
21072 #define T3CKIPPS1 T3CKIPPSbits.T3CKIPPS1 // bit 1
21073 #define T3CKIPPS2 T3CKIPPSbits.T3CKIPPS2 // bit 2
21074 #define T3CKIPPS3 T3CKIPPSbits.T3CKIPPS3 // bit 3
21075 #define T3CKIPPS4 T3CKIPPSbits.T3CKIPPS4 // bit 4
21077 #define T3GPPS0 T3GPPSbits.T3GPPS0 // bit 0
21078 #define T3GPPS1 T3GPPSbits.T3GPPS1 // bit 1
21079 #define T3GPPS2 T3GPPSbits.T3GPPS2 // bit 2
21080 #define T3GPPS3 T3GPPSbits.T3GPPS3 // bit 3
21081 #define T3GPPS4 T3GPPSbits.T3GPPS4 // bit 4
21083 #define T4AINPPS0 T4AINPPSbits.T4AINPPS0 // bit 0
21084 #define T4AINPPS1 T4AINPPSbits.T4AINPPS1 // bit 1
21085 #define T4AINPPS2 T4AINPPSbits.T4AINPPS2 // bit 2
21086 #define T4AINPPS3 T4AINPPSbits.T4AINPPS3 // bit 3
21087 #define T4AINPPS4 T4AINPPSbits.T4AINPPS4 // bit 4
21089 #define T4CS0 T4CLKCONbits.T4CS0 // bit 0
21090 #define T4CS1 T4CLKCONbits.T4CS1 // bit 1
21091 #define T4CS2 T4CLKCONbits.T4CS2 // bit 2
21092 #define T4CS3 T4CLKCONbits.T4CS3 // bit 3
21094 #define T5CKIPPS0 T5CKIPPSbits.T5CKIPPS0 // bit 0
21095 #define T5CKIPPS1 T5CKIPPSbits.T5CKIPPS1 // bit 1
21096 #define T5CKIPPS2 T5CKIPPSbits.T5CKIPPS2 // bit 2
21097 #define T5CKIPPS3 T5CKIPPSbits.T5CKIPPS3 // bit 3
21098 #define T5CKIPPS4 T5CKIPPSbits.T5CKIPPS4 // bit 4
21100 #define T5GPPS0 T5GPPSbits.T5GPPS0 // bit 0
21101 #define T5GPPS1 T5GPPSbits.T5GPPS1 // bit 1
21102 #define T5GPPS2 T5GPPSbits.T5GPPS2 // bit 2
21103 #define T5GPPS3 T5GPPSbits.T5GPPS3 // bit 3
21104 #define T5GPPS4 T5GPPSbits.T5GPPS4 // bit 4
21106 #define T6AINPPS0 T6AINPPSbits.T6AINPPS0 // bit 0
21107 #define T6AINPPS1 T6AINPPSbits.T6AINPPS1 // bit 1
21108 #define T6AINPPS2 T6AINPPSbits.T6AINPPS2 // bit 2
21109 #define T6AINPPS3 T6AINPPSbits.T6AINPPS3 // bit 3
21110 #define T6AINPPS4 T6AINPPSbits.T6AINPPS4 // bit 4
21112 #define T6CS0 T6CLKCONbits.T6CS0 // bit 0
21113 #define T6CS1 T6CLKCONbits.T6CS1 // bit 1
21114 #define T6CS2 T6CLKCONbits.T6CS2 // bit 2
21115 #define T6CS3 T6CLKCONbits.T6CS3 // bit 3
21117 #define TMR0L0 TMR0bits.TMR0L0 // bit 0
21118 #define TMR0L1 TMR0bits.TMR0L1 // bit 1
21119 #define TMR0L2 TMR0bits.TMR0L2 // bit 2
21120 #define TMR0L3 TMR0bits.TMR0L3 // bit 3
21121 #define TMR0L4 TMR0bits.TMR0L4 // bit 4
21122 #define TMR0L5 TMR0bits.TMR0L5 // bit 5
21123 #define TMR0L6 TMR0bits.TMR0L6 // bit 6
21124 #define TMR0L7 TMR0bits.TMR0L7 // bit 7
21126 #define TMR1H0 TMR1Hbits.TMR1H0 // bit 0
21127 #define TMR1H1 TMR1Hbits.TMR1H1 // bit 1
21128 #define TMR1H2 TMR1Hbits.TMR1H2 // bit 2
21129 #define TMR1H3 TMR1Hbits.TMR1H3 // bit 3
21130 #define TMR1H4 TMR1Hbits.TMR1H4 // bit 4
21131 #define TMR1H5 TMR1Hbits.TMR1H5 // bit 5
21132 #define TMR1H6 TMR1Hbits.TMR1H6 // bit 6
21133 #define TMR1H7 TMR1Hbits.TMR1H7 // bit 7
21135 #define TMR1L0 TMR1Lbits.TMR1L0 // bit 0
21136 #define TMR1L1 TMR1Lbits.TMR1L1 // bit 1
21137 #define TMR1L2 TMR1Lbits.TMR1L2 // bit 2
21138 #define TMR1L3 TMR1Lbits.TMR1L3 // bit 3
21139 #define TMR1L4 TMR1Lbits.TMR1L4 // bit 4
21140 #define TMR1L5 TMR1Lbits.TMR1L5 // bit 5
21141 #define TMR1L6 TMR1Lbits.TMR1L6 // bit 6
21142 #define TMR1L7 TMR1Lbits.TMR1L7 // bit 7
21144 #define TMR3H0 TMR3Hbits.TMR3H0 // bit 0
21145 #define TMR3H1 TMR3Hbits.TMR3H1 // bit 1
21146 #define TMR3H2 TMR3Hbits.TMR3H2 // bit 2
21147 #define TMR3H3 TMR3Hbits.TMR3H3 // bit 3
21148 #define TMR3H4 TMR3Hbits.TMR3H4 // bit 4
21149 #define TMR3H5 TMR3Hbits.TMR3H5 // bit 5
21150 #define TMR3H6 TMR3Hbits.TMR3H6 // bit 6
21151 #define TMR3H7 TMR3Hbits.TMR3H7 // bit 7
21153 #define TMR3L0 TMR3Lbits.TMR3L0 // bit 0
21154 #define TMR3L1 TMR3Lbits.TMR3L1 // bit 1
21155 #define TMR3L2 TMR3Lbits.TMR3L2 // bit 2
21156 #define TMR3L3 TMR3Lbits.TMR3L3 // bit 3
21157 #define TMR3L4 TMR3Lbits.TMR3L4 // bit 4
21158 #define TMR3L5 TMR3Lbits.TMR3L5 // bit 5
21159 #define TMR3L6 TMR3Lbits.TMR3L6 // bit 6
21160 #define TMR3L7 TMR3Lbits.TMR3L7 // bit 7
21162 #define TMR5H0 TMR5Hbits.TMR5H0 // bit 0
21163 #define TMR5H1 TMR5Hbits.TMR5H1 // bit 1
21164 #define TMR5H2 TMR5Hbits.TMR5H2 // bit 2
21165 #define TMR5H3 TMR5Hbits.TMR5H3 // bit 3
21166 #define TMR5H4 TMR5Hbits.TMR5H4 // bit 4
21167 #define TMR5H5 TMR5Hbits.TMR5H5 // bit 5
21168 #define TMR5H6 TMR5Hbits.TMR5H6 // bit 6
21169 #define TMR5H7 TMR5Hbits.TMR5H7 // bit 7
21171 #define TMR5L0 TMR5Lbits.TMR5L0 // bit 0
21172 #define TMR5L1 TMR5Lbits.TMR5L1 // bit 1
21173 #define TMR5L2 TMR5Lbits.TMR5L2 // bit 2
21174 #define TMR5L3 TMR5Lbits.TMR5L3 // bit 3
21175 #define TMR5L4 TMR5Lbits.TMR5L4 // bit 4
21176 #define TMR5L5 TMR5Lbits.TMR5L5 // bit 5
21177 #define TMR5L6 TMR5Lbits.TMR5L6 // bit 6
21178 #define TMR5L7 TMR5Lbits.TMR5L7 // bit 7
21180 #define TRISA0 TRISAbits.TRISA0 // bit 0
21181 #define TRISA1 TRISAbits.TRISA1 // bit 1
21182 #define TRISA2 TRISAbits.TRISA2 // bit 2
21183 #define TRISA3 TRISAbits.TRISA3 // bit 3
21184 #define TRISA4 TRISAbits.TRISA4 // bit 4
21185 #define TRISA5 TRISAbits.TRISA5 // bit 5
21186 #define TRISA6 TRISAbits.TRISA6 // bit 6
21187 #define TRISA7 TRISAbits.TRISA7 // bit 7
21189 #define TRISB0 TRISBbits.TRISB0 // bit 0
21190 #define TRISB1 TRISBbits.TRISB1 // bit 1
21191 #define TRISB2 TRISBbits.TRISB2 // bit 2
21192 #define TRISB3 TRISBbits.TRISB3 // bit 3
21193 #define TRISB4 TRISBbits.TRISB4 // bit 4
21194 #define TRISB5 TRISBbits.TRISB5 // bit 5
21195 #define TRISB6 TRISBbits.TRISB6 // bit 6
21196 #define TRISB7 TRISBbits.TRISB7 // bit 7
21198 #define TRISC0 TRISCbits.TRISC0 // bit 0
21199 #define TRISC1 TRISCbits.TRISC1 // bit 1
21200 #define TRISC2 TRISCbits.TRISC2 // bit 2
21201 #define TRISC3 TRISCbits.TRISC3 // bit 3
21202 #define TRISC4 TRISCbits.TRISC4 // bit 4
21203 #define TRISC5 TRISCbits.TRISC5 // bit 5
21204 #define TRISC6 TRISCbits.TRISC6 // bit 6
21205 #define TRISC7 TRISCbits.TRISC7 // bit 7
21207 #define TXPPS0 TXPPSbits.TXPPS0 // bit 0
21208 #define TXPPS1 TXPPSbits.TXPPS1 // bit 1
21209 #define TXPPS2 TXPPSbits.TXPPS2 // bit 2
21210 #define TXPPS3 TXPPSbits.TXPPS3 // bit 3
21211 #define TXPPS4 TXPPSbits.TXPPS4 // bit 4
21213 #define VREGPM0 VREGCONbits.VREGPM0 // bit 0
21214 #define VREGPM1 VREGCONbits.VREGPM1 // bit 1, shadows bit in VREGCONbits
21215 #define VREGPM VREGCONbits.VREGPM // bit 1, shadows bit in VREGCONbits
21217 #define WINDOW0 WDTCON1bits.WINDOW0 // bit 0, shadows bit in WDTCON1bits
21218 #define WDTWINDOW0 WDTCON1bits.WDTWINDOW0 // bit 0, shadows bit in WDTCON1bits
21219 #define WINDOW1 WDTCON1bits.WINDOW1 // bit 1, shadows bit in WDTCON1bits
21220 #define WDTWINDOW1 WDTCON1bits.WDTWINDOW1 // bit 1, shadows bit in WDTCON1bits
21221 #define WINDOW2 WDTCON1bits.WINDOW2 // bit 2, shadows bit in WDTCON1bits
21222 #define WDTWINDOW2 WDTCON1bits.WDTWINDOW2 // bit 2, shadows bit in WDTCON1bits
21223 #define WDTCS0 WDTCON1bits.WDTCS0 // bit 4
21224 #define WDTCS1 WDTCON1bits.WDTCS1 // bit 5
21225 #define WDTCS2 WDTCON1bits.WDTCS2 // bit 6
21227 #define PSCNT8 WDTPSHbits.PSCNT8 // bit 0, shadows bit in WDTPSHbits
21228 #define WDTPSCNT8 WDTPSHbits.WDTPSCNT8 // bit 0, shadows bit in WDTPSHbits
21229 #define PSCNT9 WDTPSHbits.PSCNT9 // bit 1, shadows bit in WDTPSHbits
21230 #define WDTPSCNT9 WDTPSHbits.WDTPSCNT9 // bit 1, shadows bit in WDTPSHbits
21231 #define PSCNT10 WDTPSHbits.PSCNT10 // bit 2, shadows bit in WDTPSHbits
21232 #define WDTPSCNT10 WDTPSHbits.WDTPSCNT10 // bit 2, shadows bit in WDTPSHbits
21233 #define PSCNT11 WDTPSHbits.PSCNT11 // bit 3, shadows bit in WDTPSHbits
21234 #define WDTPSCNT11 WDTPSHbits.WDTPSCNT11 // bit 3, shadows bit in WDTPSHbits
21235 #define PSCNT12 WDTPSHbits.PSCNT12 // bit 4, shadows bit in WDTPSHbits
21236 #define WDTPSCNT12 WDTPSHbits.WDTPSCNT12 // bit 4, shadows bit in WDTPSHbits
21237 #define PSCNT13 WDTPSHbits.PSCNT13 // bit 5, shadows bit in WDTPSHbits
21238 #define WDTPSCNT13 WDTPSHbits.WDTPSCNT13 // bit 5, shadows bit in WDTPSHbits
21239 #define PSCNT14 WDTPSHbits.PSCNT14 // bit 6, shadows bit in WDTPSHbits
21240 #define WDTPSCNT14 WDTPSHbits.WDTPSCNT14 // bit 6, shadows bit in WDTPSHbits
21241 #define PSCNT15 WDTPSHbits.PSCNT15 // bit 7, shadows bit in WDTPSHbits
21242 #define WDTPSCNT15 WDTPSHbits.WDTPSCNT15 // bit 7, shadows bit in WDTPSHbits
21244 #define PSCNT0 WDTPSLbits.PSCNT0 // bit 0, shadows bit in WDTPSLbits
21245 #define WDTPSCNT0 WDTPSLbits.WDTPSCNT0 // bit 0, shadows bit in WDTPSLbits
21246 #define PSCNT1 WDTPSLbits.PSCNT1 // bit 1, shadows bit in WDTPSLbits
21247 #define WDTPSCNT1 WDTPSLbits.WDTPSCNT1 // bit 1, shadows bit in WDTPSLbits
21248 #define PSCNT2 WDTPSLbits.PSCNT2 // bit 2, shadows bit in WDTPSLbits
21249 #define WDTPSCNT2 WDTPSLbits.WDTPSCNT2 // bit 2, shadows bit in WDTPSLbits
21250 #define PSCNT3 WDTPSLbits.PSCNT3 // bit 3, shadows bit in WDTPSLbits
21251 #define WDTPSCNT3 WDTPSLbits.WDTPSCNT3 // bit 3, shadows bit in WDTPSLbits
21252 #define PSCNT4 WDTPSLbits.PSCNT4 // bit 4, shadows bit in WDTPSLbits
21253 #define WDTPSCNT4 WDTPSLbits.WDTPSCNT4 // bit 4, shadows bit in WDTPSLbits
21254 #define PSCNT5 WDTPSLbits.PSCNT5 // bit 5, shadows bit in WDTPSLbits
21255 #define WDTPSCNT5 WDTPSLbits.WDTPSCNT5 // bit 5, shadows bit in WDTPSLbits
21256 #define PSCNT6 WDTPSLbits.PSCNT6 // bit 6, shadows bit in WDTPSLbits
21257 #define WDTPSCNT6 WDTPSLbits.WDTPSCNT6 // bit 6, shadows bit in WDTPSLbits
21258 #define PSCNT7 WDTPSLbits.PSCNT7 // bit 7, shadows bit in WDTPSLbits
21259 #define WDTPSCNT7 WDTPSLbits.WDTPSCNT7 // bit 7, shadows bit in WDTPSLbits
21261 #define PSCNT16 WDTTMRbits.PSCNT16 // bit 0, shadows bit in WDTTMRbits
21262 #define WDTPSCNT16 WDTTMRbits.WDTPSCNT16 // bit 0, shadows bit in WDTTMRbits
21263 #define PSCNT17 WDTTMRbits.PSCNT17 // bit 1, shadows bit in WDTTMRbits
21264 #define WDTPSCNT17 WDTTMRbits.WDTPSCNT17 // bit 1, shadows bit in WDTTMRbits
21265 #define STATE WDTTMRbits.STATE // bit 2, shadows bit in WDTTMRbits
21266 #define WDTSTATE WDTTMRbits.WDTSTATE // bit 2, shadows bit in WDTTMRbits
21267 #define WDTTMR0 WDTTMRbits.WDTTMR0 // bit 3
21268 #define WDTTMR1 WDTTMRbits.WDTTMR1 // bit 4
21269 #define WDTTMR2 WDTTMRbits.WDTTMR2 // bit 5
21270 #define WDTTMR3 WDTTMRbits.WDTTMR3 // bit 6
21272 #define WPUA0 WPUAbits.WPUA0 // bit 0
21273 #define WPUA1 WPUAbits.WPUA1 // bit 1
21274 #define WPUA2 WPUAbits.WPUA2 // bit 2
21275 #define WPUA3 WPUAbits.WPUA3 // bit 3
21276 #define WPUA4 WPUAbits.WPUA4 // bit 4
21277 #define WPUA5 WPUAbits.WPUA5 // bit 5
21278 #define WPUA6 WPUAbits.WPUA6 // bit 6
21279 #define WPUA7 WPUAbits.WPUA7 // bit 7
21281 #define WPUB0 WPUBbits.WPUB0 // bit 0
21282 #define WPUB1 WPUBbits.WPUB1 // bit 1
21283 #define WPUB2 WPUBbits.WPUB2 // bit 2
21284 #define WPUB3 WPUBbits.WPUB3 // bit 3
21285 #define WPUB4 WPUBbits.WPUB4 // bit 4
21286 #define WPUB5 WPUBbits.WPUB5 // bit 5
21287 #define WPUB6 WPUBbits.WPUB6 // bit 6
21288 #define WPUB7 WPUBbits.WPUB7 // bit 7
21290 #define WPUC0 WPUCbits.WPUC0 // bit 0
21291 #define WPUC1 WPUCbits.WPUC1 // bit 1
21292 #define WPUC2 WPUCbits.WPUC2 // bit 2
21293 #define WPUC3 WPUCbits.WPUC3 // bit 3
21294 #define WPUC4 WPUCbits.WPUC4 // bit 4
21295 #define WPUC5 WPUCbits.WPUC5 // bit 5
21296 #define WPUC6 WPUCbits.WPUC6 // bit 6
21297 #define WPUC7 WPUCbits.WPUC7 // bit 7
21299 #define WPUE3 WPUEbits.WPUE3 // bit 3
21301 #endif // #ifndef NO_BIT_DEFINES
21303 #endif // #ifndef __PIC16F18855_H__