struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16f1618.h
blobe5d4e5fbf01d2d68cdd1250b8f478f1dd2de1a49
1 /*
2 * This declarations of the PIC16F1618 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:10 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 __PIC16F1618_H__
26 #define __PIC16F1618_H__
28 //==============================================================================
30 // Register Addresses
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF0_ADDR 0x0000
37 #define INDF1_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR0_ADDR 0x0004
41 #define FSR0L_ADDR 0x0004
42 #define FSR0H_ADDR 0x0005
43 #define FSR1_ADDR 0x0006
44 #define FSR1L_ADDR 0x0006
45 #define FSR1H_ADDR 0x0007
46 #define BSR_ADDR 0x0008
47 #define WREG_ADDR 0x0009
48 #define PCLATH_ADDR 0x000A
49 #define INTCON_ADDR 0x000B
50 #define PORTA_ADDR 0x000C
51 #define PORTB_ADDR 0x000D
52 #define PORTC_ADDR 0x000E
53 #define PIR1_ADDR 0x0010
54 #define PIR2_ADDR 0x0011
55 #define PIR3_ADDR 0x0012
56 #define PIR4_ADDR 0x0013
57 #define PIR5_ADDR 0x0014
58 #define TMR0_ADDR 0x0015
59 #define TMR1_ADDR 0x0016
60 #define TMR1L_ADDR 0x0016
61 #define TMR1H_ADDR 0x0017
62 #define T1CON_ADDR 0x0018
63 #define T1GCON_ADDR 0x0019
64 #define T2TMR_ADDR 0x001A
65 #define TMR2_ADDR 0x001A
66 #define PR2_ADDR 0x001B
67 #define T2PR_ADDR 0x001B
68 #define T2CON_ADDR 0x001C
69 #define T2HLT_ADDR 0x001D
70 #define T2CLKCON_ADDR 0x001E
71 #define T2RST_ADDR 0x001F
72 #define TRISA_ADDR 0x008C
73 #define TRISB_ADDR 0x008D
74 #define TRISC_ADDR 0x008E
75 #define PIE1_ADDR 0x0090
76 #define PIE2_ADDR 0x0091
77 #define PIE3_ADDR 0x0092
78 #define PIE4_ADDR 0x0093
79 #define PIE5_ADDR 0x0094
80 #define OPTION_REG_ADDR 0x0095
81 #define PCON_ADDR 0x0096
82 #define OSCTUNE_ADDR 0x0098
83 #define OSCCON_ADDR 0x0099
84 #define OSCSTAT_ADDR 0x009A
85 #define ADRES_ADDR 0x009B
86 #define ADRESL_ADDR 0x009B
87 #define ADRESH_ADDR 0x009C
88 #define ADCON0_ADDR 0x009D
89 #define ADCON1_ADDR 0x009E
90 #define ADCON2_ADDR 0x009F
91 #define LATA_ADDR 0x010C
92 #define LATB_ADDR 0x010D
93 #define LATC_ADDR 0x010E
94 #define CM1CON0_ADDR 0x0111
95 #define CM1CON1_ADDR 0x0112
96 #define CM2CON0_ADDR 0x0113
97 #define CM2CON1_ADDR 0x0114
98 #define CMOUT_ADDR 0x0115
99 #define BORCON_ADDR 0x0116
100 #define FVRCON_ADDR 0x0117
101 #define DAC1CON0_ADDR 0x0118
102 #define DAC1CON1_ADDR 0x0119
103 #define ZCD1CON_ADDR 0x011C
104 #define ANSELA_ADDR 0x018C
105 #define ANSELB_ADDR 0x018D
106 #define ANSELC_ADDR 0x018E
107 #define PMADR_ADDR 0x0191
108 #define PMADRL_ADDR 0x0191
109 #define PMADRH_ADDR 0x0192
110 #define PMDAT_ADDR 0x0193
111 #define PMDATL_ADDR 0x0193
112 #define PMDATH_ADDR 0x0194
113 #define PMCON1_ADDR 0x0195
114 #define PMCON2_ADDR 0x0196
115 #define VREGCON_ADDR 0x0197
116 #define RC1REG_ADDR 0x0199
117 #define RCREG_ADDR 0x0199
118 #define RCREG1_ADDR 0x0199
119 #define TX1REG_ADDR 0x019A
120 #define TXREG_ADDR 0x019A
121 #define TXREG1_ADDR 0x019A
122 #define SP1BRG_ADDR 0x019B
123 #define SP1BRGL_ADDR 0x019B
124 #define SPBRG_ADDR 0x019B
125 #define SPBRG1_ADDR 0x019B
126 #define SPBRGL_ADDR 0x019B
127 #define SP1BRGH_ADDR 0x019C
128 #define SPBRGH_ADDR 0x019C
129 #define SPBRGH1_ADDR 0x019C
130 #define RC1STA_ADDR 0x019D
131 #define RCSTA_ADDR 0x019D
132 #define RCSTA1_ADDR 0x019D
133 #define TX1STA_ADDR 0x019E
134 #define TXSTA_ADDR 0x019E
135 #define TXSTA1_ADDR 0x019E
136 #define BAUD1CON_ADDR 0x019F
137 #define BAUDCON_ADDR 0x019F
138 #define BAUDCON1_ADDR 0x019F
139 #define BAUDCTL_ADDR 0x019F
140 #define BAUDCTL1_ADDR 0x019F
141 #define WPUA_ADDR 0x020C
142 #define WPUB_ADDR 0x020D
143 #define WPUC_ADDR 0x020E
144 #define SSP1BUF_ADDR 0x0211
145 #define SSPBUF_ADDR 0x0211
146 #define SSP1ADD_ADDR 0x0212
147 #define SSPADD_ADDR 0x0212
148 #define SSP1MSK_ADDR 0x0213
149 #define SSPMSK_ADDR 0x0213
150 #define SSP1STAT_ADDR 0x0214
151 #define SSPSTAT_ADDR 0x0214
152 #define SSP1CON_ADDR 0x0215
153 #define SSP1CON1_ADDR 0x0215
154 #define SSPCON_ADDR 0x0215
155 #define SSPCON1_ADDR 0x0215
156 #define SSP1CON2_ADDR 0x0216
157 #define SSPCON2_ADDR 0x0216
158 #define SSP1CON3_ADDR 0x0217
159 #define SSPCON3_ADDR 0x0217
160 #define ODCONA_ADDR 0x028C
161 #define ODCONB_ADDR 0x028D
162 #define ODCONC_ADDR 0x028E
163 #define CCPR1_ADDR 0x0291
164 #define CCPR1L_ADDR 0x0291
165 #define CCPR1H_ADDR 0x0292
166 #define CCP1CON_ADDR 0x0293
167 #define CCP1CAP_ADDR 0x0294
168 #define CCPR2_ADDR 0x0298
169 #define CCPR2L_ADDR 0x0298
170 #define CCPR2H_ADDR 0x0299
171 #define CCP2CON_ADDR 0x029A
172 #define CCP2CAP_ADDR 0x029B
173 #define CCPTMRS_ADDR 0x029E
174 #define SLRCONA_ADDR 0x030C
175 #define SLRCONB_ADDR 0x030D
176 #define SLRCONC_ADDR 0x030E
177 #define INLVLA_ADDR 0x038C
178 #define INLVLB_ADDR 0x038D
179 #define INLVLC_ADDR 0x038E
180 #define IOCAP_ADDR 0x0391
181 #define IOCAN_ADDR 0x0392
182 #define IOCAF_ADDR 0x0393
183 #define IOCBP_ADDR 0x0394
184 #define IOCBN_ADDR 0x0395
185 #define IOCBF_ADDR 0x0396
186 #define IOCCP_ADDR 0x0397
187 #define IOCCN_ADDR 0x0398
188 #define IOCCF_ADDR 0x0399
189 #define HIDRVC_ADDR 0x040E
190 #define T4TMR_ADDR 0x0413
191 #define TMR4_ADDR 0x0413
192 #define PR4_ADDR 0x0414
193 #define T4PR_ADDR 0x0414
194 #define T4CON_ADDR 0x0415
195 #define T4HLT_ADDR 0x0416
196 #define T4CLKCON_ADDR 0x0417
197 #define T4RST_ADDR 0x0418
198 #define T6TMR_ADDR 0x041A
199 #define TMR6_ADDR 0x041A
200 #define PR6_ADDR 0x041B
201 #define T6PR_ADDR 0x041B
202 #define T6CON_ADDR 0x041C
203 #define T6HLT_ADDR 0x041D
204 #define T6CLKCON_ADDR 0x041E
205 #define T6RST_ADDR 0x041F
206 #define TMR3L_ADDR 0x0493
207 #define TMR3H_ADDR 0x0494
208 #define T3CON_ADDR 0x0495
209 #define T3GCON_ADDR 0x0496
210 #define TMR5L_ADDR 0x049A
211 #define TMR5H_ADDR 0x049B
212 #define T5CON_ADDR 0x049C
213 #define T5GCON_ADDR 0x049D
214 #define PID1SET_ADDR 0x058C
215 #define PID1SETL_ADDR 0x058C
216 #define PID1SETH_ADDR 0x058D
217 #define PID1IN_ADDR 0x058E
218 #define PID1INL_ADDR 0x058E
219 #define PID1INH_ADDR 0x058F
220 #define PID1K1_ADDR 0x0590
221 #define PID1K1L_ADDR 0x0590
222 #define PID1K1H_ADDR 0x0591
223 #define PID1K2_ADDR 0x0592
224 #define PID1K2L_ADDR 0x0592
225 #define PID1K2H_ADDR 0x0593
226 #define PID1K3_ADDR 0x0594
227 #define PID1K3L_ADDR 0x0594
228 #define PID1K3H_ADDR 0x0595
229 #define PID1OUT_ADDR 0x0596
230 #define PID1OUTLL_ADDR 0x0596
231 #define PID1OUTLH_ADDR 0x0597
232 #define PID1OUTHL_ADDR 0x0598
233 #define PID1OUTHH_ADDR 0x0599
234 #define PID1OUTU_ADDR 0x059A
235 #define PID1Z1_ADDR 0x059B
236 #define PID1Z1L_ADDR 0x059B
237 #define PID1Z1H_ADDR 0x059C
238 #define PID1Z1U_ADDR 0x059D
239 #define PID1Z2_ADDR 0x060C
240 #define PID1Z2L_ADDR 0x060C
241 #define PID1Z2H_ADDR 0x060D
242 #define PID1Z2U_ADDR 0x060E
243 #define PID1ACC_ADDR 0x060F
244 #define PID1ACCLL_ADDR 0x060F
245 #define PID1ACCLH_ADDR 0x0610
246 #define PID1ACCHL_ADDR 0x0611
247 #define PID1ACCHH_ADDR 0x0612
248 #define PID1ACCU_ADDR 0x0613
249 #define PID1CON_ADDR 0x0614
250 #define PWM3DCL_ADDR 0x0617
251 #define PWM3DCH_ADDR 0x0618
252 #define PWM3CON_ADDR 0x0619
253 #define PWM4DCL_ADDR 0x061A
254 #define PWM4DCH_ADDR 0x061B
255 #define PWM4CON_ADDR 0x061C
256 #define CWG1DBR_ADDR 0x0691
257 #define CWG1DBF_ADDR 0x0692
258 #define CWG1AS0_ADDR 0x0693
259 #define CWG1AS1_ADDR 0x0694
260 #define CWG1OCON0_ADDR 0x0695
261 #define CWG1CON0_ADDR 0x0696
262 #define CWG1CON1_ADDR 0x0697
263 #define CWG1CLKCON_ADDR 0x0699
264 #define CWG1ISM_ADDR 0x069A
265 #define WDTCON0_ADDR 0x0711
266 #define WDTCON1_ADDR 0x0712
267 #define WDTPSL_ADDR 0x0713
268 #define WDTPSH_ADDR 0x0714
269 #define WDTTMR_ADDR 0x0715
270 #define SCANLADR_ADDR 0x0718
271 #define SCANLADRL_ADDR 0x0718
272 #define SCANLADRH_ADDR 0x0719
273 #define SCANHADR_ADDR 0x071A
274 #define SCANHADRL_ADDR 0x071A
275 #define SCANHADRH_ADDR 0x071B
276 #define SCANCON0_ADDR 0x071C
277 #define SCANTRIG_ADDR 0x071D
278 #define CRCDAT_ADDR 0x0791
279 #define CRCDATL_ADDR 0x0791
280 #define CRCDATH_ADDR 0x0792
281 #define CRCACC_ADDR 0x0793
282 #define CRCACCL_ADDR 0x0793
283 #define CRCACCH_ADDR 0x0794
284 #define CRCSHIFT_ADDR 0x0795
285 #define CRCSHIFTL_ADDR 0x0795
286 #define CRCSHIFTH_ADDR 0x0796
287 #define CRCXOR_ADDR 0x0797
288 #define CRCXORL_ADDR 0x0797
289 #define CRCXORH_ADDR 0x0798
290 #define CRCCON0_ADDR 0x0799
291 #define CRCCON1_ADDR 0x079A
292 #define AT1RES_ADDR 0x080C
293 #define AT1RESL_ADDR 0x080C
294 #define AT1RESH_ADDR 0x080D
295 #define AT1MISS_ADDR 0x080E
296 #define AT1MISSL_ADDR 0x080E
297 #define AT1MISSH_ADDR 0x080F
298 #define AT1PER_ADDR 0x0810
299 #define AT1PERL_ADDR 0x0810
300 #define AT1PERH_ADDR 0x0811
301 #define AT1PHS_ADDR 0x0812
302 #define AT1PHSL_ADDR 0x0812
303 #define AT1PHSH_ADDR 0x0813
304 #define AT1CON0_ADDR 0x0814
305 #define AT1CON1_ADDR 0x0815
306 #define AT1IR0_ADDR 0x0816
307 #define AT1IE0_ADDR 0x0817
308 #define AT1IR1_ADDR 0x0818
309 #define AT1IE1_ADDR 0x0819
310 #define AT1STPT_ADDR 0x081A
311 #define AT1STPTL_ADDR 0x081A
312 #define AT1STPTH_ADDR 0x081B
313 #define AT1ERR_ADDR 0x081C
314 #define AT1ERRL_ADDR 0x081C
315 #define AT1ERRH_ADDR 0x081D
316 #define AT1CLK_ADDR 0x088C
317 #define AT1SIG_ADDR 0x088D
318 #define AT1CSEL1_ADDR 0x088E
319 #define AT1CC1_ADDR 0x088F
320 #define AT1CC1L_ADDR 0x088F
321 #define AT1CC1H_ADDR 0x0890
322 #define AT1CCON1_ADDR 0x0891
323 #define AT1CSEL2_ADDR 0x0892
324 #define AT1CC2_ADDR 0x0893
325 #define AT1CC2L_ADDR 0x0893
326 #define AT1CC2H_ADDR 0x0894
327 #define AT1CCON2_ADDR 0x0895
328 #define AT1CSEL3_ADDR 0x0896
329 #define AT1CC3_ADDR 0x0897
330 #define AT1CC3L_ADDR 0x0897
331 #define AT1CC3H_ADDR 0x0898
332 #define AT1CCON3_ADDR 0x0899
333 #define SMT1TMR_ADDR 0x0D8C
334 #define SMT1TMRL_ADDR 0x0D8C
335 #define SMT1TMRH_ADDR 0x0D8D
336 #define SMT1TMRU_ADDR 0x0D8E
337 #define SMT1CPR_ADDR 0x0D8F
338 #define SMT1CPRL_ADDR 0x0D8F
339 #define SMT1CPRH_ADDR 0x0D90
340 #define SMT1CPRU_ADDR 0x0D91
341 #define SMT1CPW_ADDR 0x0D92
342 #define SMT1CPWL_ADDR 0x0D92
343 #define SMT1CPWH_ADDR 0x0D93
344 #define SMT1CPWU_ADDR 0x0D94
345 #define SMT1PR_ADDR 0x0D95
346 #define SMT1PRL_ADDR 0x0D95
347 #define SMT1PRH_ADDR 0x0D96
348 #define SMT1PRU_ADDR 0x0D97
349 #define SMT1CON0_ADDR 0x0D98
350 #define SMT1CON1_ADDR 0x0D99
351 #define SMT1STAT_ADDR 0x0D9A
352 #define SMT1CLK_ADDR 0x0D9B
353 #define SMT1SIG_ADDR 0x0D9C
354 #define SMT1WIN_ADDR 0x0D9D
355 #define SMT2TMR_ADDR 0x0D9E
356 #define SMT2TMRL_ADDR 0x0D9E
357 #define SMT2TMRH_ADDR 0x0D9F
358 #define SMT2TMRU_ADDR 0x0DA0
359 #define SMT2CPR_ADDR 0x0DA1
360 #define SMT2CPRL_ADDR 0x0DA1
361 #define SMT2CPRH_ADDR 0x0DA2
362 #define SMT2CPRU_ADDR 0x0DA3
363 #define SMT2CPW_ADDR 0x0DA4
364 #define SMT2CPWL_ADDR 0x0DA4
365 #define SMT2CPWH_ADDR 0x0DA5
366 #define SMT2CPWU_ADDR 0x0DA6
367 #define SMT2PR_ADDR 0x0DA7
368 #define SMT2PRL_ADDR 0x0DA7
369 #define SMT2PRH_ADDR 0x0DA8
370 #define SMT2PRU_ADDR 0x0DA9
371 #define SMT2CON0_ADDR 0x0DAA
372 #define SMT2CON1_ADDR 0x0DAB
373 #define SMT2STAT_ADDR 0x0DAC
374 #define SMT2CLK_ADDR 0x0DAD
375 #define SMT2SIG_ADDR 0x0DAE
376 #define SMT2WIN_ADDR 0x0DAF
377 #define PPSLOCK_ADDR 0x0E0F
378 #define INTPPS_ADDR 0x0E10
379 #define T0CKIPPS_ADDR 0x0E11
380 #define T1CKIPPS_ADDR 0x0E12
381 #define T1GPPS_ADDR 0x0E13
382 #define CCP1PPS_ADDR 0x0E14
383 #define CCP2PPS_ADDR 0x0E15
384 #define ATINPPS_ADDR 0x0E16
385 #define CWGINPPS_ADDR 0x0E17
386 #define T2PPS_ADDR 0x0E18
387 #define T3CKIPPS_ADDR 0x0E19
388 #define T3GPPS_ADDR 0x0E1A
389 #define T4PPS_ADDR 0x0E1B
390 #define T5CKIPPS_ADDR 0x0E1C
391 #define T5GPPS_ADDR 0x0E1D
392 #define T6PPS_ADDR 0x0E1E
393 #define ATCC1PPS_ADDR 0x0E1F
394 #define SSPCLKPPS_ADDR 0x0E20
395 #define SSPDATPPS_ADDR 0x0E21
396 #define SSPSSPPS_ADDR 0x0E22
397 #define ATCC2PPS_ADDR 0x0E23
398 #define RXPPS_ADDR 0x0E24
399 #define CKPPS_ADDR 0x0E25
400 #define SMT1SIGPPS_ADDR 0x0E26
401 #define SMT1WINPPS_ADDR 0x0E27
402 #define CLCIN0PPS_ADDR 0x0E28
403 #define CLCIN1PPS_ADDR 0x0E29
404 #define CLCIN2PPS_ADDR 0x0E2A
405 #define CLCIN3PPS_ADDR 0x0E2B
406 #define SMT2SIGPPS_ADDR 0x0E2C
407 #define SMT2WINPPS_ADDR 0x0E2D
408 #define ATCC3PPS_ADDR 0x0E2E
409 #define RA0PPS_ADDR 0x0E90
410 #define RA1PPS_ADDR 0x0E91
411 #define RA2PPS_ADDR 0x0E92
412 #define RA4PPS_ADDR 0x0E94
413 #define RA5PPS_ADDR 0x0E95
414 #define RB4PPS_ADDR 0x0E9C
415 #define RB5PPS_ADDR 0x0E9D
416 #define RB6PPS_ADDR 0x0E9E
417 #define RB7PPS_ADDR 0x0E9F
418 #define RC0PPS_ADDR 0x0EA0
419 #define RC1PPS_ADDR 0x0EA1
420 #define RC2PPS_ADDR 0x0EA2
421 #define RC3PPS_ADDR 0x0EA3
422 #define RC4PPS_ADDR 0x0EA4
423 #define RC5PPS_ADDR 0x0EA5
424 #define RC6PPS_ADDR 0x0EA6
425 #define RC7PPS_ADDR 0x0EA7
426 #define CLCDATA_ADDR 0x0F0F
427 #define CLC1CON_ADDR 0x0F10
428 #define CLC1POL_ADDR 0x0F11
429 #define CLC1SEL0_ADDR 0x0F12
430 #define CLC1SEL1_ADDR 0x0F13
431 #define CLC1SEL2_ADDR 0x0F14
432 #define CLC1SEL3_ADDR 0x0F15
433 #define CLC1GLS0_ADDR 0x0F16
434 #define CLC1GLS1_ADDR 0x0F17
435 #define CLC1GLS2_ADDR 0x0F18
436 #define CLC1GLS3_ADDR 0x0F19
437 #define CLC2CON_ADDR 0x0F1A
438 #define CLC2POL_ADDR 0x0F1B
439 #define CLC2SEL0_ADDR 0x0F1C
440 #define CLC2SEL1_ADDR 0x0F1D
441 #define CLC2SEL2_ADDR 0x0F1E
442 #define CLC2SEL3_ADDR 0x0F1F
443 #define CLC2GLS0_ADDR 0x0F20
444 #define CLC2GLS1_ADDR 0x0F21
445 #define CLC2GLS2_ADDR 0x0F22
446 #define CLC2GLS3_ADDR 0x0F23
447 #define STATUS_SHAD_ADDR 0x0FE4
448 #define WREG_SHAD_ADDR 0x0FE5
449 #define BSR_SHAD_ADDR 0x0FE6
450 #define PCLATH_SHAD_ADDR 0x0FE7
451 #define FSR0L_SHAD_ADDR 0x0FE8
452 #define FSR0H_SHAD_ADDR 0x0FE9
453 #define FSR1L_SHAD_ADDR 0x0FEA
454 #define FSR1H_SHAD_ADDR 0x0FEB
455 #define STKPTR_ADDR 0x0FED
456 #define TOSL_ADDR 0x0FEE
457 #define TOSH_ADDR 0x0FEF
459 #endif // #ifndef NO_ADDR_DEFINES
461 //==============================================================================
463 // Register Definitions
465 //==============================================================================
467 extern __at(0x0000) __sfr INDF0;
468 extern __at(0x0001) __sfr INDF1;
469 extern __at(0x0002) __sfr PCL;
471 //==============================================================================
472 // STATUS Bits
474 extern __at(0x0003) __sfr STATUS;
476 typedef struct
478 unsigned C : 1;
479 unsigned DC : 1;
480 unsigned Z : 1;
481 unsigned NOT_PD : 1;
482 unsigned NOT_TO : 1;
483 unsigned : 1;
484 unsigned : 1;
485 unsigned : 1;
486 } __STATUSbits_t;
488 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
490 #define _C 0x01
491 #define _DC 0x02
492 #define _Z 0x04
493 #define _NOT_PD 0x08
494 #define _NOT_TO 0x10
496 //==============================================================================
498 extern __at(0x0004) __sfr FSR0;
499 extern __at(0x0004) __sfr FSR0L;
500 extern __at(0x0005) __sfr FSR0H;
501 extern __at(0x0006) __sfr FSR1;
502 extern __at(0x0006) __sfr FSR1L;
503 extern __at(0x0007) __sfr FSR1H;
505 //==============================================================================
506 // BSR Bits
508 extern __at(0x0008) __sfr BSR;
510 typedef union
512 struct
514 unsigned BSR0 : 1;
515 unsigned BSR1 : 1;
516 unsigned BSR2 : 1;
517 unsigned BSR3 : 1;
518 unsigned BSR4 : 1;
519 unsigned : 1;
520 unsigned : 1;
521 unsigned : 1;
524 struct
526 unsigned BSR : 5;
527 unsigned : 3;
529 } __BSRbits_t;
531 extern __at(0x0008) volatile __BSRbits_t BSRbits;
533 #define _BSR0 0x01
534 #define _BSR1 0x02
535 #define _BSR2 0x04
536 #define _BSR3 0x08
537 #define _BSR4 0x10
539 //==============================================================================
541 extern __at(0x0009) __sfr WREG;
542 extern __at(0x000A) __sfr PCLATH;
544 //==============================================================================
545 // INTCON Bits
547 extern __at(0x000B) __sfr INTCON;
549 typedef union
551 struct
553 unsigned IOCIF : 1;
554 unsigned INTF : 1;
555 unsigned TMR0IF : 1;
556 unsigned IOCIE : 1;
557 unsigned INTE : 1;
558 unsigned TMR0IE : 1;
559 unsigned PEIE : 1;
560 unsigned GIE : 1;
563 struct
565 unsigned : 1;
566 unsigned : 1;
567 unsigned T0IF : 1;
568 unsigned : 1;
569 unsigned : 1;
570 unsigned T0IE : 1;
571 unsigned : 1;
572 unsigned : 1;
574 } __INTCONbits_t;
576 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
578 #define _IOCIF 0x01
579 #define _INTF 0x02
580 #define _TMR0IF 0x04
581 #define _T0IF 0x04
582 #define _IOCIE 0x08
583 #define _INTE 0x10
584 #define _TMR0IE 0x20
585 #define _T0IE 0x20
586 #define _PEIE 0x40
587 #define _GIE 0x80
589 //==============================================================================
592 //==============================================================================
593 // PORTA Bits
595 extern __at(0x000C) __sfr PORTA;
597 typedef union
599 struct
601 unsigned RA0 : 1;
602 unsigned RA1 : 1;
603 unsigned RA2 : 1;
604 unsigned RA3 : 1;
605 unsigned RA4 : 1;
606 unsigned RA5 : 1;
607 unsigned : 1;
608 unsigned : 1;
611 struct
613 unsigned RA : 6;
614 unsigned : 2;
616 } __PORTAbits_t;
618 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
620 #define _RA0 0x01
621 #define _RA1 0x02
622 #define _RA2 0x04
623 #define _RA3 0x08
624 #define _RA4 0x10
625 #define _RA5 0x20
627 //==============================================================================
630 //==============================================================================
631 // PORTB Bits
633 extern __at(0x000D) __sfr PORTB;
635 typedef struct
637 unsigned : 1;
638 unsigned : 1;
639 unsigned : 1;
640 unsigned : 1;
641 unsigned RB4 : 1;
642 unsigned RB5 : 1;
643 unsigned RB6 : 1;
644 unsigned RB7 : 1;
645 } __PORTBbits_t;
647 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
649 #define _RB4 0x10
650 #define _RB5 0x20
651 #define _RB6 0x40
652 #define _RB7 0x80
654 //==============================================================================
657 //==============================================================================
658 // PORTC Bits
660 extern __at(0x000E) __sfr PORTC;
662 typedef struct
664 unsigned RC0 : 1;
665 unsigned RC1 : 1;
666 unsigned RC2 : 1;
667 unsigned RC3 : 1;
668 unsigned RC4 : 1;
669 unsigned RC5 : 1;
670 unsigned RC6 : 1;
671 unsigned RC7 : 1;
672 } __PORTCbits_t;
674 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
676 #define _RC0 0x01
677 #define _RC1 0x02
678 #define _RC2 0x04
679 #define _RC3 0x08
680 #define _RC4 0x10
681 #define _RC5 0x20
682 #define _RC6 0x40
683 #define _RC7 0x80
685 //==============================================================================
688 //==============================================================================
689 // PIR1 Bits
691 extern __at(0x0010) __sfr PIR1;
693 typedef struct
695 unsigned TMR1IF : 1;
696 unsigned TMR2IF : 1;
697 unsigned CCP1IF : 1;
698 unsigned SSP1IF : 1;
699 unsigned TXIF : 1;
700 unsigned RCIF : 1;
701 unsigned ADIF : 1;
702 unsigned TMR1GIF : 1;
703 } __PIR1bits_t;
705 extern __at(0x0010) volatile __PIR1bits_t PIR1bits;
707 #define _TMR1IF 0x01
708 #define _TMR2IF 0x02
709 #define _CCP1IF 0x04
710 #define _SSP1IF 0x08
711 #define _TXIF 0x10
712 #define _RCIF 0x20
713 #define _ADIF 0x40
714 #define _TMR1GIF 0x80
716 //==============================================================================
719 //==============================================================================
720 // PIR2 Bits
722 extern __at(0x0011) __sfr PIR2;
724 typedef struct
726 unsigned CCP2IF : 1;
727 unsigned TMR4IF : 1;
728 unsigned TMR6IF : 1;
729 unsigned BCL1IF : 1;
730 unsigned : 1;
731 unsigned C1IF : 1;
732 unsigned C2IF : 1;
733 unsigned : 1;
734 } __PIR2bits_t;
736 extern __at(0x0011) volatile __PIR2bits_t PIR2bits;
738 #define _CCP2IF 0x01
739 #define _TMR4IF 0x02
740 #define _TMR6IF 0x04
741 #define _BCL1IF 0x08
742 #define _C1IF 0x20
743 #define _C2IF 0x40
745 //==============================================================================
748 //==============================================================================
749 // PIR3 Bits
751 extern __at(0x0012) __sfr PIR3;
753 typedef struct
755 unsigned CLC1IF : 1;
756 unsigned CLC2IF : 1;
757 unsigned : 1;
758 unsigned : 1;
759 unsigned ZCDIF : 1;
760 unsigned CWGIF : 1;
761 unsigned : 1;
762 unsigned : 1;
763 } __PIR3bits_t;
765 extern __at(0x0012) volatile __PIR3bits_t PIR3bits;
767 #define _CLC1IF 0x01
768 #define _CLC2IF 0x02
769 #define _ZCDIF 0x10
770 #define _CWGIF 0x20
772 //==============================================================================
775 //==============================================================================
776 // PIR4 Bits
778 extern __at(0x0013) __sfr PIR4;
780 typedef struct
782 unsigned SMT1IF : 1;
783 unsigned SMT1PRAIF : 1;
784 unsigned SMT1PWAIF : 1;
785 unsigned SMT2IF : 1;
786 unsigned SMT2PRAIF : 1;
787 unsigned SMT2PWAIF : 1;
788 unsigned CRCIF : 1;
789 unsigned SCANIF : 1;
790 } __PIR4bits_t;
792 extern __at(0x0013) volatile __PIR4bits_t PIR4bits;
794 #define _SMT1IF 0x01
795 #define _SMT1PRAIF 0x02
796 #define _SMT1PWAIF 0x04
797 #define _SMT2IF 0x08
798 #define _SMT2PRAIF 0x10
799 #define _SMT2PWAIF 0x20
800 #define _CRCIF 0x40
801 #define _SCANIF 0x80
803 //==============================================================================
806 //==============================================================================
807 // PIR5 Bits
809 extern __at(0x0014) __sfr PIR5;
811 typedef struct
813 unsigned PID1DIF : 1;
814 unsigned PID1EIF : 1;
815 unsigned AT1IF : 1;
816 unsigned : 1;
817 unsigned TMR5IF : 1;
818 unsigned TMR5GIF : 1;
819 unsigned TMR3IF : 1;
820 unsigned TMR3GIF : 1;
821 } __PIR5bits_t;
823 extern __at(0x0014) volatile __PIR5bits_t PIR5bits;
825 #define _PID1DIF 0x01
826 #define _PID1EIF 0x02
827 #define _AT1IF 0x04
828 #define _TMR5IF 0x10
829 #define _TMR5GIF 0x20
830 #define _TMR3IF 0x40
831 #define _TMR3GIF 0x80
833 //==============================================================================
835 extern __at(0x0015) __sfr TMR0;
836 extern __at(0x0016) __sfr TMR1;
837 extern __at(0x0016) __sfr TMR1L;
838 extern __at(0x0017) __sfr TMR1H;
840 //==============================================================================
841 // T1CON Bits
843 extern __at(0x0018) __sfr T1CON;
845 typedef union
847 struct
849 unsigned TMR1ON : 1;
850 unsigned : 1;
851 unsigned NOT_T1SYNC : 1;
852 unsigned : 1;
853 unsigned T1CKPS0 : 1;
854 unsigned T1CKPS1 : 1;
855 unsigned TMR1CS0 : 1;
856 unsigned TMR1CS1 : 1;
859 struct
861 unsigned : 4;
862 unsigned T1CKPS : 2;
863 unsigned : 2;
866 struct
868 unsigned : 6;
869 unsigned TMR1CS : 2;
871 } __T1CONbits_t;
873 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
875 #define _TMR1ON 0x01
876 #define _NOT_T1SYNC 0x04
877 #define _T1CKPS0 0x10
878 #define _T1CKPS1 0x20
879 #define _TMR1CS0 0x40
880 #define _TMR1CS1 0x80
882 //==============================================================================
885 //==============================================================================
886 // T1GCON Bits
888 extern __at(0x0019) __sfr T1GCON;
890 typedef union
892 struct
894 unsigned T1GSS0 : 1;
895 unsigned T1GSS1 : 1;
896 unsigned T1GVAL : 1;
897 unsigned T1GGO_NOT_DONE : 1;
898 unsigned T1GSPM : 1;
899 unsigned T1GTM : 1;
900 unsigned T1GPOL : 1;
901 unsigned TMR1GE : 1;
904 struct
906 unsigned T1GSS : 2;
907 unsigned : 6;
909 } __T1GCONbits_t;
911 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
913 #define _T1GSS0 0x01
914 #define _T1GSS1 0x02
915 #define _T1GVAL 0x04
916 #define _T1GGO_NOT_DONE 0x08
917 #define _T1GSPM 0x10
918 #define _T1GTM 0x20
919 #define _T1GPOL 0x40
920 #define _TMR1GE 0x80
922 //==============================================================================
924 extern __at(0x001A) __sfr T2TMR;
925 extern __at(0x001A) __sfr TMR2;
926 extern __at(0x001B) __sfr PR2;
927 extern __at(0x001B) __sfr T2PR;
929 //==============================================================================
930 // T2CON Bits
932 extern __at(0x001C) __sfr T2CON;
934 typedef union
936 struct
938 unsigned OUTPS0 : 1;
939 unsigned OUTPS1 : 1;
940 unsigned OUTPS2 : 1;
941 unsigned OUTPS3 : 1;
942 unsigned CKPS0 : 1;
943 unsigned CKPS1 : 1;
944 unsigned CKPS2 : 1;
945 unsigned ON : 1;
948 struct
950 unsigned T2OUTPS0 : 1;
951 unsigned T2OUTPS1 : 1;
952 unsigned T2OUTPS2 : 1;
953 unsigned T2OUTPS3 : 1;
954 unsigned T2CKPS0 : 1;
955 unsigned T2CKPS1 : 1;
956 unsigned T2CKPS2 : 1;
957 unsigned T2ON : 1;
960 struct
962 unsigned : 1;
963 unsigned : 1;
964 unsigned : 1;
965 unsigned : 1;
966 unsigned : 1;
967 unsigned : 1;
968 unsigned : 1;
969 unsigned TMR2ON : 1;
972 struct
974 unsigned OUTPS : 4;
975 unsigned : 4;
978 struct
980 unsigned T2OUTPS : 4;
981 unsigned : 4;
984 struct
986 unsigned : 4;
987 unsigned T2CKPS : 3;
988 unsigned : 1;
991 struct
993 unsigned : 4;
994 unsigned CKPS : 3;
995 unsigned : 1;
997 } __T2CONbits_t;
999 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
1001 #define _OUTPS0 0x01
1002 #define _T2OUTPS0 0x01
1003 #define _OUTPS1 0x02
1004 #define _T2OUTPS1 0x02
1005 #define _OUTPS2 0x04
1006 #define _T2OUTPS2 0x04
1007 #define _OUTPS3 0x08
1008 #define _T2OUTPS3 0x08
1009 #define _CKPS0 0x10
1010 #define _T2CKPS0 0x10
1011 #define _CKPS1 0x20
1012 #define _T2CKPS1 0x20
1013 #define _CKPS2 0x40
1014 #define _T2CKPS2 0x40
1015 #define _ON 0x80
1016 #define _T2ON 0x80
1017 #define _TMR2ON 0x80
1019 //==============================================================================
1022 //==============================================================================
1023 // T2HLT Bits
1025 extern __at(0x001D) __sfr T2HLT;
1027 typedef union
1029 struct
1031 unsigned MODE0 : 1;
1032 unsigned MODE1 : 1;
1033 unsigned MODE2 : 1;
1034 unsigned MODE3 : 1;
1035 unsigned MODE4 : 1;
1036 unsigned CKSYNC : 1;
1037 unsigned CKPOL : 1;
1038 unsigned PSYNC : 1;
1041 struct
1043 unsigned T2MODE0 : 1;
1044 unsigned T2MODE1 : 1;
1045 unsigned T2MODE2 : 1;
1046 unsigned T2MODE3 : 1;
1047 unsigned T2MODE4 : 1;
1048 unsigned T2CKSYNC : 1;
1049 unsigned T2CKPOL : 1;
1050 unsigned T2PSYNC : 1;
1053 struct
1055 unsigned T2MODE : 5;
1056 unsigned : 3;
1059 struct
1061 unsigned MODE : 5;
1062 unsigned : 3;
1064 } __T2HLTbits_t;
1066 extern __at(0x001D) volatile __T2HLTbits_t T2HLTbits;
1068 #define _T2HLT_MODE0 0x01
1069 #define _T2HLT_T2MODE0 0x01
1070 #define _T2HLT_MODE1 0x02
1071 #define _T2HLT_T2MODE1 0x02
1072 #define _T2HLT_MODE2 0x04
1073 #define _T2HLT_T2MODE2 0x04
1074 #define _T2HLT_MODE3 0x08
1075 #define _T2HLT_T2MODE3 0x08
1076 #define _T2HLT_MODE4 0x10
1077 #define _T2HLT_T2MODE4 0x10
1078 #define _T2HLT_CKSYNC 0x20
1079 #define _T2HLT_T2CKSYNC 0x20
1080 #define _T2HLT_CKPOL 0x40
1081 #define _T2HLT_T2CKPOL 0x40
1082 #define _T2HLT_PSYNC 0x80
1083 #define _T2HLT_T2PSYNC 0x80
1085 //==============================================================================
1088 //==============================================================================
1089 // T2CLKCON Bits
1091 extern __at(0x001E) __sfr T2CLKCON;
1093 typedef union
1095 struct
1097 unsigned CS0 : 1;
1098 unsigned CS1 : 1;
1099 unsigned CS2 : 1;
1100 unsigned CS3 : 1;
1101 unsigned : 1;
1102 unsigned : 1;
1103 unsigned : 1;
1104 unsigned : 1;
1107 struct
1109 unsigned T2CS0 : 1;
1110 unsigned T2CS1 : 1;
1111 unsigned T2CS2 : 1;
1112 unsigned T2CS3 : 1;
1113 unsigned : 1;
1114 unsigned : 1;
1115 unsigned : 1;
1116 unsigned : 1;
1119 struct
1121 unsigned T2CS : 4;
1122 unsigned : 4;
1125 struct
1127 unsigned CS : 4;
1128 unsigned : 4;
1130 } __T2CLKCONbits_t;
1132 extern __at(0x001E) volatile __T2CLKCONbits_t T2CLKCONbits;
1134 #define _T2CLKCON_CS0 0x01
1135 #define _T2CLKCON_T2CS0 0x01
1136 #define _T2CLKCON_CS1 0x02
1137 #define _T2CLKCON_T2CS1 0x02
1138 #define _T2CLKCON_CS2 0x04
1139 #define _T2CLKCON_T2CS2 0x04
1140 #define _T2CLKCON_CS3 0x08
1141 #define _T2CLKCON_T2CS3 0x08
1143 //==============================================================================
1146 //==============================================================================
1147 // T2RST Bits
1149 extern __at(0x001F) __sfr T2RST;
1151 typedef union
1153 struct
1155 unsigned RSEL0 : 1;
1156 unsigned RSEL1 : 1;
1157 unsigned RSEL2 : 1;
1158 unsigned RSEL3 : 1;
1159 unsigned : 1;
1160 unsigned : 1;
1161 unsigned : 1;
1162 unsigned : 1;
1165 struct
1167 unsigned T2RSEL0 : 1;
1168 unsigned T2RSEL1 : 1;
1169 unsigned T2RSEL2 : 1;
1170 unsigned T2RSEL3 : 1;
1171 unsigned : 1;
1172 unsigned : 1;
1173 unsigned : 1;
1174 unsigned : 1;
1177 struct
1179 unsigned RSEL : 4;
1180 unsigned : 4;
1183 struct
1185 unsigned T2RSEL : 4;
1186 unsigned : 4;
1188 } __T2RSTbits_t;
1190 extern __at(0x001F) volatile __T2RSTbits_t T2RSTbits;
1192 #define _RSEL0 0x01
1193 #define _T2RSEL0 0x01
1194 #define _RSEL1 0x02
1195 #define _T2RSEL1 0x02
1196 #define _RSEL2 0x04
1197 #define _T2RSEL2 0x04
1198 #define _RSEL3 0x08
1199 #define _T2RSEL3 0x08
1201 //==============================================================================
1204 //==============================================================================
1205 // TRISA Bits
1207 extern __at(0x008C) __sfr TRISA;
1209 typedef union
1211 struct
1213 unsigned TRISA0 : 1;
1214 unsigned TRISA1 : 1;
1215 unsigned TRISA2 : 1;
1216 unsigned TRISA3 : 1;
1217 unsigned TRISA4 : 1;
1218 unsigned TRISA5 : 1;
1219 unsigned : 1;
1220 unsigned : 1;
1223 struct
1225 unsigned TRISA : 6;
1226 unsigned : 2;
1228 } __TRISAbits_t;
1230 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
1232 #define _TRISA0 0x01
1233 #define _TRISA1 0x02
1234 #define _TRISA2 0x04
1235 #define _TRISA3 0x08
1236 #define _TRISA4 0x10
1237 #define _TRISA5 0x20
1239 //==============================================================================
1242 //==============================================================================
1243 // TRISB Bits
1245 extern __at(0x008D) __sfr TRISB;
1247 typedef struct
1249 unsigned : 1;
1250 unsigned : 1;
1251 unsigned : 1;
1252 unsigned : 1;
1253 unsigned TRISB4 : 1;
1254 unsigned TRISB5 : 1;
1255 unsigned TRISB6 : 1;
1256 unsigned TRISB7 : 1;
1257 } __TRISBbits_t;
1259 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
1261 #define _TRISB4 0x10
1262 #define _TRISB5 0x20
1263 #define _TRISB6 0x40
1264 #define _TRISB7 0x80
1266 //==============================================================================
1269 //==============================================================================
1270 // TRISC Bits
1272 extern __at(0x008E) __sfr TRISC;
1274 typedef struct
1276 unsigned TRISC0 : 1;
1277 unsigned TRISC1 : 1;
1278 unsigned TRISC2 : 1;
1279 unsigned TRISC3 : 1;
1280 unsigned TRISC4 : 1;
1281 unsigned TRISC5 : 1;
1282 unsigned TRISC6 : 1;
1283 unsigned TRISC7 : 1;
1284 } __TRISCbits_t;
1286 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1288 #define _TRISC0 0x01
1289 #define _TRISC1 0x02
1290 #define _TRISC2 0x04
1291 #define _TRISC3 0x08
1292 #define _TRISC4 0x10
1293 #define _TRISC5 0x20
1294 #define _TRISC6 0x40
1295 #define _TRISC7 0x80
1297 //==============================================================================
1300 //==============================================================================
1301 // PIE1 Bits
1303 extern __at(0x0090) __sfr PIE1;
1305 typedef struct
1307 unsigned TMR1IE : 1;
1308 unsigned TMR2IE : 1;
1309 unsigned CCP1IE : 1;
1310 unsigned SSP1IE : 1;
1311 unsigned TXIE : 1;
1312 unsigned RCIE : 1;
1313 unsigned ADIE : 1;
1314 unsigned TMR1GIE : 1;
1315 } __PIE1bits_t;
1317 extern __at(0x0090) volatile __PIE1bits_t PIE1bits;
1319 #define _TMR1IE 0x01
1320 #define _TMR2IE 0x02
1321 #define _CCP1IE 0x04
1322 #define _SSP1IE 0x08
1323 #define _TXIE 0x10
1324 #define _RCIE 0x20
1325 #define _ADIE 0x40
1326 #define _TMR1GIE 0x80
1328 //==============================================================================
1331 //==============================================================================
1332 // PIE2 Bits
1334 extern __at(0x0091) __sfr PIE2;
1336 typedef struct
1338 unsigned CCP2IE : 1;
1339 unsigned TMR4IE : 1;
1340 unsigned TMR6IE : 1;
1341 unsigned BCL1IE : 1;
1342 unsigned : 1;
1343 unsigned C1IE : 1;
1344 unsigned C2IE : 1;
1345 unsigned : 1;
1346 } __PIE2bits_t;
1348 extern __at(0x0091) volatile __PIE2bits_t PIE2bits;
1350 #define _CCP2IE 0x01
1351 #define _TMR4IE 0x02
1352 #define _TMR6IE 0x04
1353 #define _BCL1IE 0x08
1354 #define _C1IE 0x20
1355 #define _C2IE 0x40
1357 //==============================================================================
1360 //==============================================================================
1361 // PIE3 Bits
1363 extern __at(0x0092) __sfr PIE3;
1365 typedef struct
1367 unsigned CLC1IE : 1;
1368 unsigned CLC2IE : 1;
1369 unsigned : 1;
1370 unsigned : 1;
1371 unsigned ZCDIE : 1;
1372 unsigned CWGIE : 1;
1373 unsigned : 1;
1374 unsigned : 1;
1375 } __PIE3bits_t;
1377 extern __at(0x0092) volatile __PIE3bits_t PIE3bits;
1379 #define _CLC1IE 0x01
1380 #define _CLC2IE 0x02
1381 #define _ZCDIE 0x10
1382 #define _CWGIE 0x20
1384 //==============================================================================
1387 //==============================================================================
1388 // PIE4 Bits
1390 extern __at(0x0093) __sfr PIE4;
1392 typedef struct
1394 unsigned SMT1IE : 1;
1395 unsigned SMT1PRAIE : 1;
1396 unsigned SMT1PWAIE : 1;
1397 unsigned SMT2IE : 1;
1398 unsigned SMT2PRAIE : 1;
1399 unsigned SMT2PWAIE : 1;
1400 unsigned CRCIE : 1;
1401 unsigned SCANIE : 1;
1402 } __PIE4bits_t;
1404 extern __at(0x0093) volatile __PIE4bits_t PIE4bits;
1406 #define _SMT1IE 0x01
1407 #define _SMT1PRAIE 0x02
1408 #define _SMT1PWAIE 0x04
1409 #define _SMT2IE 0x08
1410 #define _SMT2PRAIE 0x10
1411 #define _SMT2PWAIE 0x20
1412 #define _CRCIE 0x40
1413 #define _SCANIE 0x80
1415 //==============================================================================
1418 //==============================================================================
1419 // PIE5 Bits
1421 extern __at(0x0094) __sfr PIE5;
1423 typedef struct
1425 unsigned PID1DIE : 1;
1426 unsigned PID1EIE : 1;
1427 unsigned AT1IE : 1;
1428 unsigned : 1;
1429 unsigned TMR5IE : 1;
1430 unsigned TMR5GIE : 1;
1431 unsigned TMR3IE : 1;
1432 unsigned TMR3GIE : 1;
1433 } __PIE5bits_t;
1435 extern __at(0x0094) volatile __PIE5bits_t PIE5bits;
1437 #define _PID1DIE 0x01
1438 #define _PID1EIE 0x02
1439 #define _AT1IE 0x04
1440 #define _TMR5IE 0x10
1441 #define _TMR5GIE 0x20
1442 #define _TMR3IE 0x40
1443 #define _TMR3GIE 0x80
1445 //==============================================================================
1448 //==============================================================================
1449 // OPTION_REG Bits
1451 extern __at(0x0095) __sfr OPTION_REG;
1453 typedef union
1455 struct
1457 unsigned PS0 : 1;
1458 unsigned PS1 : 1;
1459 unsigned PS2 : 1;
1460 unsigned PSA : 1;
1461 unsigned TMR0SE : 1;
1462 unsigned TMR0CS : 1;
1463 unsigned INTEDG : 1;
1464 unsigned NOT_WPUEN : 1;
1467 struct
1469 unsigned : 1;
1470 unsigned : 1;
1471 unsigned : 1;
1472 unsigned : 1;
1473 unsigned T0SE : 1;
1474 unsigned T0CS : 1;
1475 unsigned : 1;
1476 unsigned : 1;
1479 struct
1481 unsigned PS : 3;
1482 unsigned : 5;
1484 } __OPTION_REGbits_t;
1486 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1488 #define _OPTION_REG_PS0 0x01
1489 #define _OPTION_REG_PS1 0x02
1490 #define _OPTION_REG_PS2 0x04
1491 #define _OPTION_REG_PSA 0x08
1492 #define _OPTION_REG_TMR0SE 0x10
1493 #define _OPTION_REG_T0SE 0x10
1494 #define _OPTION_REG_TMR0CS 0x20
1495 #define _OPTION_REG_T0CS 0x20
1496 #define _OPTION_REG_INTEDG 0x40
1497 #define _OPTION_REG_NOT_WPUEN 0x80
1499 //==============================================================================
1502 //==============================================================================
1503 // PCON Bits
1505 extern __at(0x0096) __sfr PCON;
1507 typedef struct
1509 unsigned NOT_BOR : 1;
1510 unsigned NOT_POR : 1;
1511 unsigned NOT_RI : 1;
1512 unsigned NOT_RMCLR : 1;
1513 unsigned NOT_RWDT : 1;
1514 unsigned NOT_WDTWV : 1;
1515 unsigned STKUNF : 1;
1516 unsigned STKOVF : 1;
1517 } __PCONbits_t;
1519 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1521 #define _NOT_BOR 0x01
1522 #define _NOT_POR 0x02
1523 #define _NOT_RI 0x04
1524 #define _NOT_RMCLR 0x08
1525 #define _NOT_RWDT 0x10
1526 #define _NOT_WDTWV 0x20
1527 #define _STKUNF 0x40
1528 #define _STKOVF 0x80
1530 //==============================================================================
1533 //==============================================================================
1534 // OSCTUNE Bits
1536 extern __at(0x0098) __sfr OSCTUNE;
1538 typedef union
1540 struct
1542 unsigned TUN0 : 1;
1543 unsigned TUN1 : 1;
1544 unsigned TUN2 : 1;
1545 unsigned TUN3 : 1;
1546 unsigned TUN4 : 1;
1547 unsigned TUN5 : 1;
1548 unsigned : 1;
1549 unsigned : 1;
1552 struct
1554 unsigned TUN : 6;
1555 unsigned : 2;
1557 } __OSCTUNEbits_t;
1559 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1561 #define _TUN0 0x01
1562 #define _TUN1 0x02
1563 #define _TUN2 0x04
1564 #define _TUN3 0x08
1565 #define _TUN4 0x10
1566 #define _TUN5 0x20
1568 //==============================================================================
1571 //==============================================================================
1572 // OSCCON Bits
1574 extern __at(0x0099) __sfr OSCCON;
1576 typedef union
1578 struct
1580 unsigned SCS0 : 1;
1581 unsigned SCS1 : 1;
1582 unsigned : 1;
1583 unsigned IRCF0 : 1;
1584 unsigned IRCF1 : 1;
1585 unsigned IRCF2 : 1;
1586 unsigned IRCF3 : 1;
1587 unsigned SPLLEN : 1;
1590 struct
1592 unsigned SCS : 2;
1593 unsigned : 6;
1596 struct
1598 unsigned : 3;
1599 unsigned IRCF : 4;
1600 unsigned : 1;
1602 } __OSCCONbits_t;
1604 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1606 #define _SCS0 0x01
1607 #define _SCS1 0x02
1608 #define _IRCF0 0x08
1609 #define _IRCF1 0x10
1610 #define _IRCF2 0x20
1611 #define _IRCF3 0x40
1612 #define _SPLLEN 0x80
1614 //==============================================================================
1617 //==============================================================================
1618 // OSCSTAT Bits
1620 extern __at(0x009A) __sfr OSCSTAT;
1622 typedef struct
1624 unsigned HFIOFS : 1;
1625 unsigned LFIOFR : 1;
1626 unsigned MFIOFR : 1;
1627 unsigned HFIOFL : 1;
1628 unsigned HFIOFR : 1;
1629 unsigned : 1;
1630 unsigned PLLR : 1;
1631 unsigned : 1;
1632 } __OSCSTATbits_t;
1634 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1636 #define _HFIOFS 0x01
1637 #define _LFIOFR 0x02
1638 #define _MFIOFR 0x04
1639 #define _HFIOFL 0x08
1640 #define _HFIOFR 0x10
1641 #define _PLLR 0x40
1643 //==============================================================================
1645 extern __at(0x009B) __sfr ADRES;
1646 extern __at(0x009B) __sfr ADRESL;
1647 extern __at(0x009C) __sfr ADRESH;
1649 //==============================================================================
1650 // ADCON0 Bits
1652 extern __at(0x009D) __sfr ADCON0;
1654 typedef union
1656 struct
1658 unsigned ADON : 1;
1659 unsigned GO_NOT_DONE : 1;
1660 unsigned CHS0 : 1;
1661 unsigned CHS1 : 1;
1662 unsigned CHS2 : 1;
1663 unsigned CHS3 : 1;
1664 unsigned CHS4 : 1;
1665 unsigned : 1;
1668 struct
1670 unsigned : 1;
1671 unsigned ADGO : 1;
1672 unsigned : 1;
1673 unsigned : 1;
1674 unsigned : 1;
1675 unsigned : 1;
1676 unsigned : 1;
1677 unsigned : 1;
1680 struct
1682 unsigned : 1;
1683 unsigned GO : 1;
1684 unsigned : 1;
1685 unsigned : 1;
1686 unsigned : 1;
1687 unsigned : 1;
1688 unsigned : 1;
1689 unsigned : 1;
1692 struct
1694 unsigned : 2;
1695 unsigned CHS : 5;
1696 unsigned : 1;
1698 } __ADCON0bits_t;
1700 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1702 #define _ADON 0x01
1703 #define _GO_NOT_DONE 0x02
1704 #define _ADGO 0x02
1705 #define _GO 0x02
1706 #define _CHS0 0x04
1707 #define _CHS1 0x08
1708 #define _CHS2 0x10
1709 #define _CHS3 0x20
1710 #define _CHS4 0x40
1712 //==============================================================================
1715 //==============================================================================
1716 // ADCON1 Bits
1718 extern __at(0x009E) __sfr ADCON1;
1720 typedef union
1722 struct
1724 unsigned ADPREF0 : 1;
1725 unsigned ADPREF1 : 1;
1726 unsigned : 1;
1727 unsigned : 1;
1728 unsigned ADCS0 : 1;
1729 unsigned ADCS1 : 1;
1730 unsigned ADCS2 : 1;
1731 unsigned ADFM : 1;
1734 struct
1736 unsigned ADPREF : 2;
1737 unsigned : 6;
1740 struct
1742 unsigned : 4;
1743 unsigned ADCS : 3;
1744 unsigned : 1;
1746 } __ADCON1bits_t;
1748 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1750 #define _ADPREF0 0x01
1751 #define _ADPREF1 0x02
1752 #define _ADCS0 0x10
1753 #define _ADCS1 0x20
1754 #define _ADCS2 0x40
1755 #define _ADFM 0x80
1757 //==============================================================================
1760 //==============================================================================
1761 // ADCON2 Bits
1763 extern __at(0x009F) __sfr ADCON2;
1765 typedef union
1767 struct
1769 unsigned : 1;
1770 unsigned : 1;
1771 unsigned : 1;
1772 unsigned : 1;
1773 unsigned TRIGSEL0 : 1;
1774 unsigned TRIGSEL1 : 1;
1775 unsigned TRIGSEL2 : 1;
1776 unsigned TRIGSEL3 : 1;
1779 struct
1781 unsigned : 4;
1782 unsigned TRIGSEL : 4;
1784 } __ADCON2bits_t;
1786 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1788 #define _TRIGSEL0 0x10
1789 #define _TRIGSEL1 0x20
1790 #define _TRIGSEL2 0x40
1791 #define _TRIGSEL3 0x80
1793 //==============================================================================
1796 //==============================================================================
1797 // LATA Bits
1799 extern __at(0x010C) __sfr LATA;
1801 typedef union
1803 struct
1805 unsigned LATA0 : 1;
1806 unsigned LATA1 : 1;
1807 unsigned LATA2 : 1;
1808 unsigned LATA3 : 1;
1809 unsigned LATA4 : 1;
1810 unsigned LATA5 : 1;
1811 unsigned : 1;
1812 unsigned : 1;
1815 struct
1817 unsigned LATA : 6;
1818 unsigned : 2;
1820 } __LATAbits_t;
1822 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1824 #define _LATA0 0x01
1825 #define _LATA1 0x02
1826 #define _LATA2 0x04
1827 #define _LATA3 0x08
1828 #define _LATA4 0x10
1829 #define _LATA5 0x20
1831 //==============================================================================
1834 //==============================================================================
1835 // LATB Bits
1837 extern __at(0x010D) __sfr LATB;
1839 typedef struct
1841 unsigned : 1;
1842 unsigned : 1;
1843 unsigned : 1;
1844 unsigned : 1;
1845 unsigned LATB4 : 1;
1846 unsigned LATB5 : 1;
1847 unsigned LATB6 : 1;
1848 unsigned LATB7 : 1;
1849 } __LATBbits_t;
1851 extern __at(0x010D) volatile __LATBbits_t LATBbits;
1853 #define _LATB4 0x10
1854 #define _LATB5 0x20
1855 #define _LATB6 0x40
1856 #define _LATB7 0x80
1858 //==============================================================================
1861 //==============================================================================
1862 // LATC Bits
1864 extern __at(0x010E) __sfr LATC;
1866 typedef struct
1868 unsigned LATC0 : 1;
1869 unsigned LATC1 : 1;
1870 unsigned LATC2 : 1;
1871 unsigned LATC3 : 1;
1872 unsigned LATC4 : 1;
1873 unsigned LATC5 : 1;
1874 unsigned LATC6 : 1;
1875 unsigned LATC7 : 1;
1876 } __LATCbits_t;
1878 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1880 #define _LATC0 0x01
1881 #define _LATC1 0x02
1882 #define _LATC2 0x04
1883 #define _LATC3 0x08
1884 #define _LATC4 0x10
1885 #define _LATC5 0x20
1886 #define _LATC6 0x40
1887 #define _LATC7 0x80
1889 //==============================================================================
1892 //==============================================================================
1893 // CM1CON0 Bits
1895 extern __at(0x0111) __sfr CM1CON0;
1897 typedef struct
1899 unsigned C1SYNC : 1;
1900 unsigned C1HYS : 1;
1901 unsigned C1SP : 1;
1902 unsigned : 1;
1903 unsigned C1POL : 1;
1904 unsigned : 1;
1905 unsigned C1OUT : 1;
1906 unsigned C1ON : 1;
1907 } __CM1CON0bits_t;
1909 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1911 #define _C1SYNC 0x01
1912 #define _C1HYS 0x02
1913 #define _C1SP 0x04
1914 #define _C1POL 0x10
1915 #define _C1OUT 0x40
1916 #define _C1ON 0x80
1918 //==============================================================================
1921 //==============================================================================
1922 // CM1CON1 Bits
1924 extern __at(0x0112) __sfr CM1CON1;
1926 typedef union
1928 struct
1930 unsigned C1NCH0 : 1;
1931 unsigned C1NCH1 : 1;
1932 unsigned C1NCH2 : 1;
1933 unsigned : 1;
1934 unsigned C1PCH0 : 1;
1935 unsigned C1PCH1 : 1;
1936 unsigned C1INTN : 1;
1937 unsigned C1INTP : 1;
1940 struct
1942 unsigned C1NCH : 3;
1943 unsigned : 5;
1946 struct
1948 unsigned : 4;
1949 unsigned C1PCH : 2;
1950 unsigned : 2;
1952 } __CM1CON1bits_t;
1954 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1956 #define _C1NCH0 0x01
1957 #define _C1NCH1 0x02
1958 #define _C1NCH2 0x04
1959 #define _C1PCH0 0x10
1960 #define _C1PCH1 0x20
1961 #define _C1INTN 0x40
1962 #define _C1INTP 0x80
1964 //==============================================================================
1967 //==============================================================================
1968 // CM2CON0 Bits
1970 extern __at(0x0113) __sfr CM2CON0;
1972 typedef struct
1974 unsigned C2SYNC : 1;
1975 unsigned C2HYS : 1;
1976 unsigned C2SP : 1;
1977 unsigned : 1;
1978 unsigned C2POL : 1;
1979 unsigned : 1;
1980 unsigned C2OUT : 1;
1981 unsigned C2ON : 1;
1982 } __CM2CON0bits_t;
1984 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
1986 #define _C2SYNC 0x01
1987 #define _C2HYS 0x02
1988 #define _C2SP 0x04
1989 #define _C2POL 0x10
1990 #define _C2OUT 0x40
1991 #define _C2ON 0x80
1993 //==============================================================================
1996 //==============================================================================
1997 // CM2CON1 Bits
1999 extern __at(0x0114) __sfr CM2CON1;
2001 typedef union
2003 struct
2005 unsigned C2NCH0 : 1;
2006 unsigned C2NCH1 : 1;
2007 unsigned C2NCH2 : 1;
2008 unsigned : 1;
2009 unsigned C2PCH0 : 1;
2010 unsigned C2PCH1 : 1;
2011 unsigned C2INTN : 1;
2012 unsigned C2INTP : 1;
2015 struct
2017 unsigned C2NCH : 3;
2018 unsigned : 5;
2021 struct
2023 unsigned : 4;
2024 unsigned C2PCH : 2;
2025 unsigned : 2;
2027 } __CM2CON1bits_t;
2029 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
2031 #define _C2NCH0 0x01
2032 #define _C2NCH1 0x02
2033 #define _C2NCH2 0x04
2034 #define _C2PCH0 0x10
2035 #define _C2PCH1 0x20
2036 #define _C2INTN 0x40
2037 #define _C2INTP 0x80
2039 //==============================================================================
2042 //==============================================================================
2043 // CMOUT Bits
2045 extern __at(0x0115) __sfr CMOUT;
2047 typedef struct
2049 unsigned MC1OUT : 1;
2050 unsigned MC2OUT : 1;
2051 unsigned : 1;
2052 unsigned : 1;
2053 unsigned : 1;
2054 unsigned : 1;
2055 unsigned : 1;
2056 unsigned : 1;
2057 } __CMOUTbits_t;
2059 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
2061 #define _MC1OUT 0x01
2062 #define _MC2OUT 0x02
2064 //==============================================================================
2067 //==============================================================================
2068 // BORCON Bits
2070 extern __at(0x0116) __sfr BORCON;
2072 typedef struct
2074 unsigned BORRDY : 1;
2075 unsigned : 1;
2076 unsigned : 1;
2077 unsigned : 1;
2078 unsigned : 1;
2079 unsigned : 1;
2080 unsigned BORFS : 1;
2081 unsigned SBOREN : 1;
2082 } __BORCONbits_t;
2084 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
2086 #define _BORRDY 0x01
2087 #define _BORFS 0x40
2088 #define _SBOREN 0x80
2090 //==============================================================================
2093 //==============================================================================
2094 // FVRCON Bits
2096 extern __at(0x0117) __sfr FVRCON;
2098 typedef union
2100 struct
2102 unsigned ADFVR0 : 1;
2103 unsigned ADFVR1 : 1;
2104 unsigned CDAFVR0 : 1;
2105 unsigned CDAFVR1 : 1;
2106 unsigned TSRNG : 1;
2107 unsigned TSEN : 1;
2108 unsigned FVRRDY : 1;
2109 unsigned FVREN : 1;
2112 struct
2114 unsigned ADFVR : 2;
2115 unsigned : 6;
2118 struct
2120 unsigned : 2;
2121 unsigned CDAFVR : 2;
2122 unsigned : 4;
2124 } __FVRCONbits_t;
2126 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
2128 #define _ADFVR0 0x01
2129 #define _ADFVR1 0x02
2130 #define _CDAFVR0 0x04
2131 #define _CDAFVR1 0x08
2132 #define _TSRNG 0x10
2133 #define _TSEN 0x20
2134 #define _FVRRDY 0x40
2135 #define _FVREN 0x80
2137 //==============================================================================
2140 //==============================================================================
2141 // DAC1CON0 Bits
2143 extern __at(0x0118) __sfr DAC1CON0;
2145 typedef union
2147 struct
2149 unsigned : 1;
2150 unsigned : 1;
2151 unsigned D1PSS0 : 1;
2152 unsigned D1PSS1 : 1;
2153 unsigned : 1;
2154 unsigned DAC1OE : 1;
2155 unsigned : 1;
2156 unsigned DAC1EN : 1;
2159 struct
2161 unsigned : 2;
2162 unsigned D1PSS : 2;
2163 unsigned : 4;
2165 } __DAC1CON0bits_t;
2167 extern __at(0x0118) volatile __DAC1CON0bits_t DAC1CON0bits;
2169 #define _D1PSS0 0x04
2170 #define _D1PSS1 0x08
2171 #define _DAC1OE 0x20
2172 #define _DAC1EN 0x80
2174 //==============================================================================
2177 //==============================================================================
2178 // DAC1CON1 Bits
2180 extern __at(0x0119) __sfr DAC1CON1;
2182 typedef struct
2184 unsigned DAC1R0 : 1;
2185 unsigned DAC1R1 : 1;
2186 unsigned DAC1R2 : 1;
2187 unsigned DAC1R3 : 1;
2188 unsigned DAC1R4 : 1;
2189 unsigned DAC1R5 : 1;
2190 unsigned DAC1R6 : 1;
2191 unsigned DAC1R7 : 1;
2192 } __DAC1CON1bits_t;
2194 extern __at(0x0119) volatile __DAC1CON1bits_t DAC1CON1bits;
2196 #define _DAC1R0 0x01
2197 #define _DAC1R1 0x02
2198 #define _DAC1R2 0x04
2199 #define _DAC1R3 0x08
2200 #define _DAC1R4 0x10
2201 #define _DAC1R5 0x20
2202 #define _DAC1R6 0x40
2203 #define _DAC1R7 0x80
2205 //==============================================================================
2208 //==============================================================================
2209 // ZCD1CON Bits
2211 extern __at(0x011C) __sfr ZCD1CON;
2213 typedef struct
2215 unsigned ZCD1INTN : 1;
2216 unsigned ZCD1INTP : 1;
2217 unsigned : 1;
2218 unsigned : 1;
2219 unsigned ZCD1POL : 1;
2220 unsigned ZCD1OUT : 1;
2221 unsigned : 1;
2222 unsigned ZCD1EN : 1;
2223 } __ZCD1CONbits_t;
2225 extern __at(0x011C) volatile __ZCD1CONbits_t ZCD1CONbits;
2227 #define _ZCD1INTN 0x01
2228 #define _ZCD1INTP 0x02
2229 #define _ZCD1POL 0x10
2230 #define _ZCD1OUT 0x20
2231 #define _ZCD1EN 0x80
2233 //==============================================================================
2236 //==============================================================================
2237 // ANSELA Bits
2239 extern __at(0x018C) __sfr ANSELA;
2241 typedef struct
2243 unsigned ANSA0 : 1;
2244 unsigned ANSA1 : 1;
2245 unsigned ANSA2 : 1;
2246 unsigned : 1;
2247 unsigned ANSA4 : 1;
2248 unsigned : 1;
2249 unsigned : 1;
2250 unsigned : 1;
2251 } __ANSELAbits_t;
2253 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2255 #define _ANSA0 0x01
2256 #define _ANSA1 0x02
2257 #define _ANSA2 0x04
2258 #define _ANSA4 0x10
2260 //==============================================================================
2263 //==============================================================================
2264 // ANSELB Bits
2266 extern __at(0x018D) __sfr ANSELB;
2268 typedef struct
2270 unsigned : 1;
2271 unsigned : 1;
2272 unsigned : 1;
2273 unsigned : 1;
2274 unsigned ANSB4 : 1;
2275 unsigned ANSB5 : 1;
2276 unsigned ANSB6 : 1;
2277 unsigned ANSB7 : 1;
2278 } __ANSELBbits_t;
2280 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2282 #define _ANSB4 0x10
2283 #define _ANSB5 0x20
2284 #define _ANSB6 0x40
2285 #define _ANSB7 0x80
2287 //==============================================================================
2290 //==============================================================================
2291 // ANSELC Bits
2293 extern __at(0x018E) __sfr ANSELC;
2295 typedef struct
2297 unsigned ANSC0 : 1;
2298 unsigned ANSC1 : 1;
2299 unsigned ANSC2 : 1;
2300 unsigned ANSC3 : 1;
2301 unsigned : 1;
2302 unsigned : 1;
2303 unsigned ANSC6 : 1;
2304 unsigned ANSC7 : 1;
2305 } __ANSELCbits_t;
2307 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2309 #define _ANSC0 0x01
2310 #define _ANSC1 0x02
2311 #define _ANSC2 0x04
2312 #define _ANSC3 0x08
2313 #define _ANSC6 0x40
2314 #define _ANSC7 0x80
2316 //==============================================================================
2318 extern __at(0x0191) __sfr PMADR;
2319 extern __at(0x0191) __sfr PMADRL;
2320 extern __at(0x0192) __sfr PMADRH;
2321 extern __at(0x0193) __sfr PMDAT;
2322 extern __at(0x0193) __sfr PMDATL;
2323 extern __at(0x0194) __sfr PMDATH;
2325 //==============================================================================
2326 // PMCON1 Bits
2328 extern __at(0x0195) __sfr PMCON1;
2330 typedef struct
2332 unsigned RD : 1;
2333 unsigned WR : 1;
2334 unsigned WREN : 1;
2335 unsigned WRERR : 1;
2336 unsigned FREE : 1;
2337 unsigned LWLO : 1;
2338 unsigned CFGS : 1;
2339 unsigned : 1;
2340 } __PMCON1bits_t;
2342 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
2344 #define _RD 0x01
2345 #define _WR 0x02
2346 #define _WREN 0x04
2347 #define _WRERR 0x08
2348 #define _FREE 0x10
2349 #define _LWLO 0x20
2350 #define _CFGS 0x40
2352 //==============================================================================
2354 extern __at(0x0196) __sfr PMCON2;
2356 //==============================================================================
2357 // VREGCON Bits
2359 extern __at(0x0197) __sfr VREGCON;
2361 typedef union
2363 struct
2365 unsigned VREGPM0 : 1;
2366 unsigned VREGPM1 : 1;
2367 unsigned : 1;
2368 unsigned : 1;
2369 unsigned : 1;
2370 unsigned : 1;
2371 unsigned : 1;
2372 unsigned : 1;
2375 struct
2377 unsigned VREGPM : 2;
2378 unsigned : 6;
2380 } __VREGCONbits_t;
2382 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
2384 #define _VREGPM0 0x01
2385 #define _VREGPM1 0x02
2387 //==============================================================================
2389 extern __at(0x0199) __sfr RC1REG;
2390 extern __at(0x0199) __sfr RCREG;
2391 extern __at(0x0199) __sfr RCREG1;
2392 extern __at(0x019A) __sfr TX1REG;
2393 extern __at(0x019A) __sfr TXREG;
2394 extern __at(0x019A) __sfr TXREG1;
2395 extern __at(0x019B) __sfr SP1BRG;
2396 extern __at(0x019B) __sfr SP1BRGL;
2397 extern __at(0x019B) __sfr SPBRG;
2398 extern __at(0x019B) __sfr SPBRG1;
2399 extern __at(0x019B) __sfr SPBRGL;
2400 extern __at(0x019C) __sfr SP1BRGH;
2401 extern __at(0x019C) __sfr SPBRGH;
2402 extern __at(0x019C) __sfr SPBRGH1;
2404 //==============================================================================
2405 // RC1STA Bits
2407 extern __at(0x019D) __sfr RC1STA;
2409 typedef struct
2411 unsigned RX9D : 1;
2412 unsigned OERR : 1;
2413 unsigned FERR : 1;
2414 unsigned ADDEN : 1;
2415 unsigned CREN : 1;
2416 unsigned SREN : 1;
2417 unsigned RX9 : 1;
2418 unsigned SPEN : 1;
2419 } __RC1STAbits_t;
2421 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2423 #define _RX9D 0x01
2424 #define _OERR 0x02
2425 #define _FERR 0x04
2426 #define _ADDEN 0x08
2427 #define _CREN 0x10
2428 #define _SREN 0x20
2429 #define _RX9 0x40
2430 #define _SPEN 0x80
2432 //==============================================================================
2435 //==============================================================================
2436 // RCSTA Bits
2438 extern __at(0x019D) __sfr RCSTA;
2440 typedef struct
2442 unsigned RX9D : 1;
2443 unsigned OERR : 1;
2444 unsigned FERR : 1;
2445 unsigned ADDEN : 1;
2446 unsigned CREN : 1;
2447 unsigned SREN : 1;
2448 unsigned RX9 : 1;
2449 unsigned SPEN : 1;
2450 } __RCSTAbits_t;
2452 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2454 #define _RCSTA_RX9D 0x01
2455 #define _RCSTA_OERR 0x02
2456 #define _RCSTA_FERR 0x04
2457 #define _RCSTA_ADDEN 0x08
2458 #define _RCSTA_CREN 0x10
2459 #define _RCSTA_SREN 0x20
2460 #define _RCSTA_RX9 0x40
2461 #define _RCSTA_SPEN 0x80
2463 //==============================================================================
2466 //==============================================================================
2467 // RCSTA1 Bits
2469 extern __at(0x019D) __sfr RCSTA1;
2471 typedef struct
2473 unsigned RX9D : 1;
2474 unsigned OERR : 1;
2475 unsigned FERR : 1;
2476 unsigned ADDEN : 1;
2477 unsigned CREN : 1;
2478 unsigned SREN : 1;
2479 unsigned RX9 : 1;
2480 unsigned SPEN : 1;
2481 } __RCSTA1bits_t;
2483 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2485 #define _RCSTA1_RX9D 0x01
2486 #define _RCSTA1_OERR 0x02
2487 #define _RCSTA1_FERR 0x04
2488 #define _RCSTA1_ADDEN 0x08
2489 #define _RCSTA1_CREN 0x10
2490 #define _RCSTA1_SREN 0x20
2491 #define _RCSTA1_RX9 0x40
2492 #define _RCSTA1_SPEN 0x80
2494 //==============================================================================
2497 //==============================================================================
2498 // TX1STA Bits
2500 extern __at(0x019E) __sfr TX1STA;
2502 typedef struct
2504 unsigned TX9D : 1;
2505 unsigned TRMT : 1;
2506 unsigned BRGH : 1;
2507 unsigned SENDB : 1;
2508 unsigned SYNC : 1;
2509 unsigned TXEN : 1;
2510 unsigned TX9 : 1;
2511 unsigned CSRC : 1;
2512 } __TX1STAbits_t;
2514 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
2516 #define _TX9D 0x01
2517 #define _TRMT 0x02
2518 #define _BRGH 0x04
2519 #define _SENDB 0x08
2520 #define _SYNC 0x10
2521 #define _TXEN 0x20
2522 #define _TX9 0x40
2523 #define _CSRC 0x80
2525 //==============================================================================
2528 //==============================================================================
2529 // TXSTA Bits
2531 extern __at(0x019E) __sfr TXSTA;
2533 typedef struct
2535 unsigned TX9D : 1;
2536 unsigned TRMT : 1;
2537 unsigned BRGH : 1;
2538 unsigned SENDB : 1;
2539 unsigned SYNC : 1;
2540 unsigned TXEN : 1;
2541 unsigned TX9 : 1;
2542 unsigned CSRC : 1;
2543 } __TXSTAbits_t;
2545 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
2547 #define _TXSTA_TX9D 0x01
2548 #define _TXSTA_TRMT 0x02
2549 #define _TXSTA_BRGH 0x04
2550 #define _TXSTA_SENDB 0x08
2551 #define _TXSTA_SYNC 0x10
2552 #define _TXSTA_TXEN 0x20
2553 #define _TXSTA_TX9 0x40
2554 #define _TXSTA_CSRC 0x80
2556 //==============================================================================
2559 //==============================================================================
2560 // TXSTA1 Bits
2562 extern __at(0x019E) __sfr TXSTA1;
2564 typedef struct
2566 unsigned TX9D : 1;
2567 unsigned TRMT : 1;
2568 unsigned BRGH : 1;
2569 unsigned SENDB : 1;
2570 unsigned SYNC : 1;
2571 unsigned TXEN : 1;
2572 unsigned TX9 : 1;
2573 unsigned CSRC : 1;
2574 } __TXSTA1bits_t;
2576 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
2578 #define _TXSTA1_TX9D 0x01
2579 #define _TXSTA1_TRMT 0x02
2580 #define _TXSTA1_BRGH 0x04
2581 #define _TXSTA1_SENDB 0x08
2582 #define _TXSTA1_SYNC 0x10
2583 #define _TXSTA1_TXEN 0x20
2584 #define _TXSTA1_TX9 0x40
2585 #define _TXSTA1_CSRC 0x80
2587 //==============================================================================
2590 //==============================================================================
2591 // BAUD1CON Bits
2593 extern __at(0x019F) __sfr BAUD1CON;
2595 typedef struct
2597 unsigned ABDEN : 1;
2598 unsigned WUE : 1;
2599 unsigned : 1;
2600 unsigned BRG16 : 1;
2601 unsigned SCKP : 1;
2602 unsigned : 1;
2603 unsigned RCIDL : 1;
2604 unsigned ABDOVF : 1;
2605 } __BAUD1CONbits_t;
2607 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
2609 #define _ABDEN 0x01
2610 #define _WUE 0x02
2611 #define _BRG16 0x08
2612 #define _SCKP 0x10
2613 #define _RCIDL 0x40
2614 #define _ABDOVF 0x80
2616 //==============================================================================
2619 //==============================================================================
2620 // BAUDCON Bits
2622 extern __at(0x019F) __sfr BAUDCON;
2624 typedef struct
2626 unsigned ABDEN : 1;
2627 unsigned WUE : 1;
2628 unsigned : 1;
2629 unsigned BRG16 : 1;
2630 unsigned SCKP : 1;
2631 unsigned : 1;
2632 unsigned RCIDL : 1;
2633 unsigned ABDOVF : 1;
2634 } __BAUDCONbits_t;
2636 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
2638 #define _BAUDCON_ABDEN 0x01
2639 #define _BAUDCON_WUE 0x02
2640 #define _BAUDCON_BRG16 0x08
2641 #define _BAUDCON_SCKP 0x10
2642 #define _BAUDCON_RCIDL 0x40
2643 #define _BAUDCON_ABDOVF 0x80
2645 //==============================================================================
2648 //==============================================================================
2649 // BAUDCON1 Bits
2651 extern __at(0x019F) __sfr BAUDCON1;
2653 typedef struct
2655 unsigned ABDEN : 1;
2656 unsigned WUE : 1;
2657 unsigned : 1;
2658 unsigned BRG16 : 1;
2659 unsigned SCKP : 1;
2660 unsigned : 1;
2661 unsigned RCIDL : 1;
2662 unsigned ABDOVF : 1;
2663 } __BAUDCON1bits_t;
2665 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
2667 #define _BAUDCON1_ABDEN 0x01
2668 #define _BAUDCON1_WUE 0x02
2669 #define _BAUDCON1_BRG16 0x08
2670 #define _BAUDCON1_SCKP 0x10
2671 #define _BAUDCON1_RCIDL 0x40
2672 #define _BAUDCON1_ABDOVF 0x80
2674 //==============================================================================
2677 //==============================================================================
2678 // BAUDCTL Bits
2680 extern __at(0x019F) __sfr BAUDCTL;
2682 typedef struct
2684 unsigned ABDEN : 1;
2685 unsigned WUE : 1;
2686 unsigned : 1;
2687 unsigned BRG16 : 1;
2688 unsigned SCKP : 1;
2689 unsigned : 1;
2690 unsigned RCIDL : 1;
2691 unsigned ABDOVF : 1;
2692 } __BAUDCTLbits_t;
2694 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
2696 #define _BAUDCTL_ABDEN 0x01
2697 #define _BAUDCTL_WUE 0x02
2698 #define _BAUDCTL_BRG16 0x08
2699 #define _BAUDCTL_SCKP 0x10
2700 #define _BAUDCTL_RCIDL 0x40
2701 #define _BAUDCTL_ABDOVF 0x80
2703 //==============================================================================
2706 //==============================================================================
2707 // BAUDCTL1 Bits
2709 extern __at(0x019F) __sfr BAUDCTL1;
2711 typedef struct
2713 unsigned ABDEN : 1;
2714 unsigned WUE : 1;
2715 unsigned : 1;
2716 unsigned BRG16 : 1;
2717 unsigned SCKP : 1;
2718 unsigned : 1;
2719 unsigned RCIDL : 1;
2720 unsigned ABDOVF : 1;
2721 } __BAUDCTL1bits_t;
2723 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
2725 #define _BAUDCTL1_ABDEN 0x01
2726 #define _BAUDCTL1_WUE 0x02
2727 #define _BAUDCTL1_BRG16 0x08
2728 #define _BAUDCTL1_SCKP 0x10
2729 #define _BAUDCTL1_RCIDL 0x40
2730 #define _BAUDCTL1_ABDOVF 0x80
2732 //==============================================================================
2735 //==============================================================================
2736 // WPUA Bits
2738 extern __at(0x020C) __sfr WPUA;
2740 typedef union
2742 struct
2744 unsigned WPUA0 : 1;
2745 unsigned WPUA1 : 1;
2746 unsigned WPUA2 : 1;
2747 unsigned WPUA3 : 1;
2748 unsigned WPUA4 : 1;
2749 unsigned WPUA5 : 1;
2750 unsigned : 1;
2751 unsigned : 1;
2754 struct
2756 unsigned WPUA : 6;
2757 unsigned : 2;
2759 } __WPUAbits_t;
2761 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
2763 #define _WPUA0 0x01
2764 #define _WPUA1 0x02
2765 #define _WPUA2 0x04
2766 #define _WPUA3 0x08
2767 #define _WPUA4 0x10
2768 #define _WPUA5 0x20
2770 //==============================================================================
2773 //==============================================================================
2774 // WPUB Bits
2776 extern __at(0x020D) __sfr WPUB;
2778 typedef struct
2780 unsigned : 1;
2781 unsigned : 1;
2782 unsigned : 1;
2783 unsigned : 1;
2784 unsigned WPUB4 : 1;
2785 unsigned WPUB5 : 1;
2786 unsigned WPUB6 : 1;
2787 unsigned WPUB7 : 1;
2788 } __WPUBbits_t;
2790 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
2792 #define _WPUB4 0x10
2793 #define _WPUB5 0x20
2794 #define _WPUB6 0x40
2795 #define _WPUB7 0x80
2797 //==============================================================================
2800 //==============================================================================
2801 // WPUC Bits
2803 extern __at(0x020E) __sfr WPUC;
2805 typedef struct
2807 unsigned WPUC0 : 1;
2808 unsigned WPUC1 : 1;
2809 unsigned WPUC2 : 1;
2810 unsigned WPUC3 : 1;
2811 unsigned WPUC4 : 1;
2812 unsigned WPUC5 : 1;
2813 unsigned WPUC6 : 1;
2814 unsigned WPUC7 : 1;
2815 } __WPUCbits_t;
2817 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
2819 #define _WPUC0 0x01
2820 #define _WPUC1 0x02
2821 #define _WPUC2 0x04
2822 #define _WPUC3 0x08
2823 #define _WPUC4 0x10
2824 #define _WPUC5 0x20
2825 #define _WPUC6 0x40
2826 #define _WPUC7 0x80
2828 //==============================================================================
2831 //==============================================================================
2832 // SSP1BUF Bits
2834 extern __at(0x0211) __sfr SSP1BUF;
2836 typedef union
2838 struct
2840 unsigned SSP1BUF0 : 1;
2841 unsigned SSP1BUF1 : 1;
2842 unsigned SSP1BUF2 : 1;
2843 unsigned SSP1BUF3 : 1;
2844 unsigned SSP1BUF4 : 1;
2845 unsigned SSP1BUF5 : 1;
2846 unsigned SSP1BUF6 : 1;
2847 unsigned SSP1BUF7 : 1;
2850 struct
2852 unsigned BUF0 : 1;
2853 unsigned BUF1 : 1;
2854 unsigned BUF2 : 1;
2855 unsigned BUF3 : 1;
2856 unsigned BUF4 : 1;
2857 unsigned BUF5 : 1;
2858 unsigned BUF6 : 1;
2859 unsigned BUF7 : 1;
2861 } __SSP1BUFbits_t;
2863 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
2865 #define _SSP1BUF0 0x01
2866 #define _BUF0 0x01
2867 #define _SSP1BUF1 0x02
2868 #define _BUF1 0x02
2869 #define _SSP1BUF2 0x04
2870 #define _BUF2 0x04
2871 #define _SSP1BUF3 0x08
2872 #define _BUF3 0x08
2873 #define _SSP1BUF4 0x10
2874 #define _BUF4 0x10
2875 #define _SSP1BUF5 0x20
2876 #define _BUF5 0x20
2877 #define _SSP1BUF6 0x40
2878 #define _BUF6 0x40
2879 #define _SSP1BUF7 0x80
2880 #define _BUF7 0x80
2882 //==============================================================================
2885 //==============================================================================
2886 // SSPBUF Bits
2888 extern __at(0x0211) __sfr SSPBUF;
2890 typedef union
2892 struct
2894 unsigned SSP1BUF0 : 1;
2895 unsigned SSP1BUF1 : 1;
2896 unsigned SSP1BUF2 : 1;
2897 unsigned SSP1BUF3 : 1;
2898 unsigned SSP1BUF4 : 1;
2899 unsigned SSP1BUF5 : 1;
2900 unsigned SSP1BUF6 : 1;
2901 unsigned SSP1BUF7 : 1;
2904 struct
2906 unsigned BUF0 : 1;
2907 unsigned BUF1 : 1;
2908 unsigned BUF2 : 1;
2909 unsigned BUF3 : 1;
2910 unsigned BUF4 : 1;
2911 unsigned BUF5 : 1;
2912 unsigned BUF6 : 1;
2913 unsigned BUF7 : 1;
2915 } __SSPBUFbits_t;
2917 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
2919 #define _SSPBUF_SSP1BUF0 0x01
2920 #define _SSPBUF_BUF0 0x01
2921 #define _SSPBUF_SSP1BUF1 0x02
2922 #define _SSPBUF_BUF1 0x02
2923 #define _SSPBUF_SSP1BUF2 0x04
2924 #define _SSPBUF_BUF2 0x04
2925 #define _SSPBUF_SSP1BUF3 0x08
2926 #define _SSPBUF_BUF3 0x08
2927 #define _SSPBUF_SSP1BUF4 0x10
2928 #define _SSPBUF_BUF4 0x10
2929 #define _SSPBUF_SSP1BUF5 0x20
2930 #define _SSPBUF_BUF5 0x20
2931 #define _SSPBUF_SSP1BUF6 0x40
2932 #define _SSPBUF_BUF6 0x40
2933 #define _SSPBUF_SSP1BUF7 0x80
2934 #define _SSPBUF_BUF7 0x80
2936 //==============================================================================
2939 //==============================================================================
2940 // SSP1ADD Bits
2942 extern __at(0x0212) __sfr SSP1ADD;
2944 typedef union
2946 struct
2948 unsigned SSP1ADD0 : 1;
2949 unsigned SSP1ADD1 : 1;
2950 unsigned SSP1ADD2 : 1;
2951 unsigned SSP1ADD3 : 1;
2952 unsigned SSP1ADD4 : 1;
2953 unsigned SSP1ADD5 : 1;
2954 unsigned SSP1ADD6 : 1;
2955 unsigned SSP1ADD7 : 1;
2958 struct
2960 unsigned ADD0 : 1;
2961 unsigned ADD1 : 1;
2962 unsigned ADD2 : 1;
2963 unsigned ADD3 : 1;
2964 unsigned ADD4 : 1;
2965 unsigned ADD5 : 1;
2966 unsigned ADD6 : 1;
2967 unsigned ADD7 : 1;
2969 } __SSP1ADDbits_t;
2971 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
2973 #define _SSP1ADD0 0x01
2974 #define _ADD0 0x01
2975 #define _SSP1ADD1 0x02
2976 #define _ADD1 0x02
2977 #define _SSP1ADD2 0x04
2978 #define _ADD2 0x04
2979 #define _SSP1ADD3 0x08
2980 #define _ADD3 0x08
2981 #define _SSP1ADD4 0x10
2982 #define _ADD4 0x10
2983 #define _SSP1ADD5 0x20
2984 #define _ADD5 0x20
2985 #define _SSP1ADD6 0x40
2986 #define _ADD6 0x40
2987 #define _SSP1ADD7 0x80
2988 #define _ADD7 0x80
2990 //==============================================================================
2993 //==============================================================================
2994 // SSPADD Bits
2996 extern __at(0x0212) __sfr SSPADD;
2998 typedef union
3000 struct
3002 unsigned SSP1ADD0 : 1;
3003 unsigned SSP1ADD1 : 1;
3004 unsigned SSP1ADD2 : 1;
3005 unsigned SSP1ADD3 : 1;
3006 unsigned SSP1ADD4 : 1;
3007 unsigned SSP1ADD5 : 1;
3008 unsigned SSP1ADD6 : 1;
3009 unsigned SSP1ADD7 : 1;
3012 struct
3014 unsigned ADD0 : 1;
3015 unsigned ADD1 : 1;
3016 unsigned ADD2 : 1;
3017 unsigned ADD3 : 1;
3018 unsigned ADD4 : 1;
3019 unsigned ADD5 : 1;
3020 unsigned ADD6 : 1;
3021 unsigned ADD7 : 1;
3023 } __SSPADDbits_t;
3025 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
3027 #define _SSPADD_SSP1ADD0 0x01
3028 #define _SSPADD_ADD0 0x01
3029 #define _SSPADD_SSP1ADD1 0x02
3030 #define _SSPADD_ADD1 0x02
3031 #define _SSPADD_SSP1ADD2 0x04
3032 #define _SSPADD_ADD2 0x04
3033 #define _SSPADD_SSP1ADD3 0x08
3034 #define _SSPADD_ADD3 0x08
3035 #define _SSPADD_SSP1ADD4 0x10
3036 #define _SSPADD_ADD4 0x10
3037 #define _SSPADD_SSP1ADD5 0x20
3038 #define _SSPADD_ADD5 0x20
3039 #define _SSPADD_SSP1ADD6 0x40
3040 #define _SSPADD_ADD6 0x40
3041 #define _SSPADD_SSP1ADD7 0x80
3042 #define _SSPADD_ADD7 0x80
3044 //==============================================================================
3047 //==============================================================================
3048 // SSP1MSK Bits
3050 extern __at(0x0213) __sfr SSP1MSK;
3052 typedef union
3054 struct
3056 unsigned SSP1MSK0 : 1;
3057 unsigned SSP1MSK1 : 1;
3058 unsigned SSP1MSK2 : 1;
3059 unsigned SSP1MSK3 : 1;
3060 unsigned SSP1MSK4 : 1;
3061 unsigned SSP1MSK5 : 1;
3062 unsigned SSP1MSK6 : 1;
3063 unsigned SSP1MSK7 : 1;
3066 struct
3068 unsigned MSK0 : 1;
3069 unsigned MSK1 : 1;
3070 unsigned MSK2 : 1;
3071 unsigned MSK3 : 1;
3072 unsigned MSK4 : 1;
3073 unsigned MSK5 : 1;
3074 unsigned MSK6 : 1;
3075 unsigned MSK7 : 1;
3077 } __SSP1MSKbits_t;
3079 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3081 #define _SSP1MSK0 0x01
3082 #define _MSK0 0x01
3083 #define _SSP1MSK1 0x02
3084 #define _MSK1 0x02
3085 #define _SSP1MSK2 0x04
3086 #define _MSK2 0x04
3087 #define _SSP1MSK3 0x08
3088 #define _MSK3 0x08
3089 #define _SSP1MSK4 0x10
3090 #define _MSK4 0x10
3091 #define _SSP1MSK5 0x20
3092 #define _MSK5 0x20
3093 #define _SSP1MSK6 0x40
3094 #define _MSK6 0x40
3095 #define _SSP1MSK7 0x80
3096 #define _MSK7 0x80
3098 //==============================================================================
3101 //==============================================================================
3102 // SSPMSK Bits
3104 extern __at(0x0213) __sfr SSPMSK;
3106 typedef union
3108 struct
3110 unsigned SSP1MSK0 : 1;
3111 unsigned SSP1MSK1 : 1;
3112 unsigned SSP1MSK2 : 1;
3113 unsigned SSP1MSK3 : 1;
3114 unsigned SSP1MSK4 : 1;
3115 unsigned SSP1MSK5 : 1;
3116 unsigned SSP1MSK6 : 1;
3117 unsigned SSP1MSK7 : 1;
3120 struct
3122 unsigned MSK0 : 1;
3123 unsigned MSK1 : 1;
3124 unsigned MSK2 : 1;
3125 unsigned MSK3 : 1;
3126 unsigned MSK4 : 1;
3127 unsigned MSK5 : 1;
3128 unsigned MSK6 : 1;
3129 unsigned MSK7 : 1;
3131 } __SSPMSKbits_t;
3133 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3135 #define _SSPMSK_SSP1MSK0 0x01
3136 #define _SSPMSK_MSK0 0x01
3137 #define _SSPMSK_SSP1MSK1 0x02
3138 #define _SSPMSK_MSK1 0x02
3139 #define _SSPMSK_SSP1MSK2 0x04
3140 #define _SSPMSK_MSK2 0x04
3141 #define _SSPMSK_SSP1MSK3 0x08
3142 #define _SSPMSK_MSK3 0x08
3143 #define _SSPMSK_SSP1MSK4 0x10
3144 #define _SSPMSK_MSK4 0x10
3145 #define _SSPMSK_SSP1MSK5 0x20
3146 #define _SSPMSK_MSK5 0x20
3147 #define _SSPMSK_SSP1MSK6 0x40
3148 #define _SSPMSK_MSK6 0x40
3149 #define _SSPMSK_SSP1MSK7 0x80
3150 #define _SSPMSK_MSK7 0x80
3152 //==============================================================================
3155 //==============================================================================
3156 // SSP1STAT Bits
3158 extern __at(0x0214) __sfr SSP1STAT;
3160 typedef struct
3162 unsigned BF : 1;
3163 unsigned UA : 1;
3164 unsigned R_NOT_W : 1;
3165 unsigned S : 1;
3166 unsigned P : 1;
3167 unsigned D_NOT_A : 1;
3168 unsigned CKE : 1;
3169 unsigned SMP : 1;
3170 } __SSP1STATbits_t;
3172 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3174 #define _BF 0x01
3175 #define _UA 0x02
3176 #define _R_NOT_W 0x04
3177 #define _S 0x08
3178 #define _P 0x10
3179 #define _D_NOT_A 0x20
3180 #define _CKE 0x40
3181 #define _SMP 0x80
3183 //==============================================================================
3186 //==============================================================================
3187 // SSPSTAT Bits
3189 extern __at(0x0214) __sfr SSPSTAT;
3191 typedef struct
3193 unsigned BF : 1;
3194 unsigned UA : 1;
3195 unsigned R_NOT_W : 1;
3196 unsigned S : 1;
3197 unsigned P : 1;
3198 unsigned D_NOT_A : 1;
3199 unsigned CKE : 1;
3200 unsigned SMP : 1;
3201 } __SSPSTATbits_t;
3203 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3205 #define _SSPSTAT_BF 0x01
3206 #define _SSPSTAT_UA 0x02
3207 #define _SSPSTAT_R_NOT_W 0x04
3208 #define _SSPSTAT_S 0x08
3209 #define _SSPSTAT_P 0x10
3210 #define _SSPSTAT_D_NOT_A 0x20
3211 #define _SSPSTAT_CKE 0x40
3212 #define _SSPSTAT_SMP 0x80
3214 //==============================================================================
3217 //==============================================================================
3218 // SSP1CON Bits
3220 extern __at(0x0215) __sfr SSP1CON;
3222 typedef union
3224 struct
3226 unsigned SSPM0 : 1;
3227 unsigned SSPM1 : 1;
3228 unsigned SSPM2 : 1;
3229 unsigned SSPM3 : 1;
3230 unsigned CKP : 1;
3231 unsigned SSPEN : 1;
3232 unsigned SSPOV : 1;
3233 unsigned WCOL : 1;
3236 struct
3238 unsigned SSPM : 4;
3239 unsigned : 4;
3241 } __SSP1CONbits_t;
3243 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3245 #define _SSPM0 0x01
3246 #define _SSPM1 0x02
3247 #define _SSPM2 0x04
3248 #define _SSPM3 0x08
3249 #define _CKP 0x10
3250 #define _SSPEN 0x20
3251 #define _SSPOV 0x40
3252 #define _WCOL 0x80
3254 //==============================================================================
3257 //==============================================================================
3258 // SSP1CON1 Bits
3260 extern __at(0x0215) __sfr SSP1CON1;
3262 typedef union
3264 struct
3266 unsigned SSPM0 : 1;
3267 unsigned SSPM1 : 1;
3268 unsigned SSPM2 : 1;
3269 unsigned SSPM3 : 1;
3270 unsigned CKP : 1;
3271 unsigned SSPEN : 1;
3272 unsigned SSPOV : 1;
3273 unsigned WCOL : 1;
3276 struct
3278 unsigned SSPM : 4;
3279 unsigned : 4;
3281 } __SSP1CON1bits_t;
3283 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3285 #define _SSP1CON1_SSPM0 0x01
3286 #define _SSP1CON1_SSPM1 0x02
3287 #define _SSP1CON1_SSPM2 0x04
3288 #define _SSP1CON1_SSPM3 0x08
3289 #define _SSP1CON1_CKP 0x10
3290 #define _SSP1CON1_SSPEN 0x20
3291 #define _SSP1CON1_SSPOV 0x40
3292 #define _SSP1CON1_WCOL 0x80
3294 //==============================================================================
3297 //==============================================================================
3298 // SSPCON Bits
3300 extern __at(0x0215) __sfr SSPCON;
3302 typedef union
3304 struct
3306 unsigned SSPM0 : 1;
3307 unsigned SSPM1 : 1;
3308 unsigned SSPM2 : 1;
3309 unsigned SSPM3 : 1;
3310 unsigned CKP : 1;
3311 unsigned SSPEN : 1;
3312 unsigned SSPOV : 1;
3313 unsigned WCOL : 1;
3316 struct
3318 unsigned SSPM : 4;
3319 unsigned : 4;
3321 } __SSPCONbits_t;
3323 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3325 #define _SSPCON_SSPM0 0x01
3326 #define _SSPCON_SSPM1 0x02
3327 #define _SSPCON_SSPM2 0x04
3328 #define _SSPCON_SSPM3 0x08
3329 #define _SSPCON_CKP 0x10
3330 #define _SSPCON_SSPEN 0x20
3331 #define _SSPCON_SSPOV 0x40
3332 #define _SSPCON_WCOL 0x80
3334 //==============================================================================
3337 //==============================================================================
3338 // SSPCON1 Bits
3340 extern __at(0x0215) __sfr SSPCON1;
3342 typedef union
3344 struct
3346 unsigned SSPM0 : 1;
3347 unsigned SSPM1 : 1;
3348 unsigned SSPM2 : 1;
3349 unsigned SSPM3 : 1;
3350 unsigned CKP : 1;
3351 unsigned SSPEN : 1;
3352 unsigned SSPOV : 1;
3353 unsigned WCOL : 1;
3356 struct
3358 unsigned SSPM : 4;
3359 unsigned : 4;
3361 } __SSPCON1bits_t;
3363 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3365 #define _SSPCON1_SSPM0 0x01
3366 #define _SSPCON1_SSPM1 0x02
3367 #define _SSPCON1_SSPM2 0x04
3368 #define _SSPCON1_SSPM3 0x08
3369 #define _SSPCON1_CKP 0x10
3370 #define _SSPCON1_SSPEN 0x20
3371 #define _SSPCON1_SSPOV 0x40
3372 #define _SSPCON1_WCOL 0x80
3374 //==============================================================================
3377 //==============================================================================
3378 // SSP1CON2 Bits
3380 extern __at(0x0216) __sfr SSP1CON2;
3382 typedef struct
3384 unsigned SEN : 1;
3385 unsigned RSEN : 1;
3386 unsigned PEN : 1;
3387 unsigned RCEN : 1;
3388 unsigned ACKEN : 1;
3389 unsigned ACKDT : 1;
3390 unsigned ACKSTAT : 1;
3391 unsigned GCEN : 1;
3392 } __SSP1CON2bits_t;
3394 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3396 #define _SEN 0x01
3397 #define _RSEN 0x02
3398 #define _PEN 0x04
3399 #define _RCEN 0x08
3400 #define _ACKEN 0x10
3401 #define _ACKDT 0x20
3402 #define _ACKSTAT 0x40
3403 #define _GCEN 0x80
3405 //==============================================================================
3408 //==============================================================================
3409 // SSPCON2 Bits
3411 extern __at(0x0216) __sfr SSPCON2;
3413 typedef struct
3415 unsigned SEN : 1;
3416 unsigned RSEN : 1;
3417 unsigned PEN : 1;
3418 unsigned RCEN : 1;
3419 unsigned ACKEN : 1;
3420 unsigned ACKDT : 1;
3421 unsigned ACKSTAT : 1;
3422 unsigned GCEN : 1;
3423 } __SSPCON2bits_t;
3425 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3427 #define _SSPCON2_SEN 0x01
3428 #define _SSPCON2_RSEN 0x02
3429 #define _SSPCON2_PEN 0x04
3430 #define _SSPCON2_RCEN 0x08
3431 #define _SSPCON2_ACKEN 0x10
3432 #define _SSPCON2_ACKDT 0x20
3433 #define _SSPCON2_ACKSTAT 0x40
3434 #define _SSPCON2_GCEN 0x80
3436 //==============================================================================
3439 //==============================================================================
3440 // SSP1CON3 Bits
3442 extern __at(0x0217) __sfr SSP1CON3;
3444 typedef struct
3446 unsigned DHEN : 1;
3447 unsigned AHEN : 1;
3448 unsigned SBCDE : 1;
3449 unsigned SDAHT : 1;
3450 unsigned BOEN : 1;
3451 unsigned SCIE : 1;
3452 unsigned PCIE : 1;
3453 unsigned ACKTIM : 1;
3454 } __SSP1CON3bits_t;
3456 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3458 #define _DHEN 0x01
3459 #define _AHEN 0x02
3460 #define _SBCDE 0x04
3461 #define _SDAHT 0x08
3462 #define _BOEN 0x10
3463 #define _SCIE 0x20
3464 #define _PCIE 0x40
3465 #define _ACKTIM 0x80
3467 //==============================================================================
3470 //==============================================================================
3471 // SSPCON3 Bits
3473 extern __at(0x0217) __sfr SSPCON3;
3475 typedef struct
3477 unsigned DHEN : 1;
3478 unsigned AHEN : 1;
3479 unsigned SBCDE : 1;
3480 unsigned SDAHT : 1;
3481 unsigned BOEN : 1;
3482 unsigned SCIE : 1;
3483 unsigned PCIE : 1;
3484 unsigned ACKTIM : 1;
3485 } __SSPCON3bits_t;
3487 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3489 #define _SSPCON3_DHEN 0x01
3490 #define _SSPCON3_AHEN 0x02
3491 #define _SSPCON3_SBCDE 0x04
3492 #define _SSPCON3_SDAHT 0x08
3493 #define _SSPCON3_BOEN 0x10
3494 #define _SSPCON3_SCIE 0x20
3495 #define _SSPCON3_PCIE 0x40
3496 #define _SSPCON3_ACKTIM 0x80
3498 //==============================================================================
3501 //==============================================================================
3502 // ODCONA Bits
3504 extern __at(0x028C) __sfr ODCONA;
3506 typedef struct
3508 unsigned ODA0 : 1;
3509 unsigned ODA1 : 1;
3510 unsigned ODA2 : 1;
3511 unsigned : 1;
3512 unsigned ODA4 : 1;
3513 unsigned ODA5 : 1;
3514 unsigned : 1;
3515 unsigned : 1;
3516 } __ODCONAbits_t;
3518 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
3520 #define _ODA0 0x01
3521 #define _ODA1 0x02
3522 #define _ODA2 0x04
3523 #define _ODA4 0x10
3524 #define _ODA5 0x20
3526 //==============================================================================
3529 //==============================================================================
3530 // ODCONB Bits
3532 extern __at(0x028D) __sfr ODCONB;
3534 typedef struct
3536 unsigned : 1;
3537 unsigned : 1;
3538 unsigned : 1;
3539 unsigned : 1;
3540 unsigned ODB4 : 1;
3541 unsigned ODB5 : 1;
3542 unsigned ODB6 : 1;
3543 unsigned ODB7 : 1;
3544 } __ODCONBbits_t;
3546 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
3548 #define _ODB4 0x10
3549 #define _ODB5 0x20
3550 #define _ODB6 0x40
3551 #define _ODB7 0x80
3553 //==============================================================================
3556 //==============================================================================
3557 // ODCONC Bits
3559 extern __at(0x028E) __sfr ODCONC;
3561 typedef struct
3563 unsigned ODC0 : 1;
3564 unsigned ODC1 : 1;
3565 unsigned ODC2 : 1;
3566 unsigned ODC3 : 1;
3567 unsigned ODC4 : 1;
3568 unsigned ODC5 : 1;
3569 unsigned ODC6 : 1;
3570 unsigned ODC7 : 1;
3571 } __ODCONCbits_t;
3573 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
3575 #define _ODC0 0x01
3576 #define _ODC1 0x02
3577 #define _ODC2 0x04
3578 #define _ODC3 0x08
3579 #define _ODC4 0x10
3580 #define _ODC5 0x20
3581 #define _ODC6 0x40
3582 #define _ODC7 0x80
3584 //==============================================================================
3586 extern __at(0x0291) __sfr CCPR1;
3587 extern __at(0x0291) __sfr CCPR1L;
3588 extern __at(0x0292) __sfr CCPR1H;
3590 //==============================================================================
3591 // CCP1CON Bits
3593 extern __at(0x0293) __sfr CCP1CON;
3595 typedef union
3597 struct
3599 unsigned MODE0 : 1;
3600 unsigned MODE1 : 1;
3601 unsigned MODE2 : 1;
3602 unsigned MODE3 : 1;
3603 unsigned FMT : 1;
3604 unsigned OUT : 1;
3605 unsigned : 1;
3606 unsigned EN : 1;
3609 struct
3611 unsigned CCP1MODE0 : 1;
3612 unsigned CCP1MODE1 : 1;
3613 unsigned CCP1MODE2 : 1;
3614 unsigned CCP1MODE3 : 1;
3615 unsigned CCP1FMT : 1;
3616 unsigned CCP1OUT : 1;
3617 unsigned : 1;
3618 unsigned CCP1EN : 1;
3621 struct
3623 unsigned CCP1MODE : 4;
3624 unsigned : 4;
3627 struct
3629 unsigned MODE : 4;
3630 unsigned : 4;
3632 } __CCP1CONbits_t;
3634 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
3636 #define _CCP1CON_MODE0 0x01
3637 #define _CCP1CON_CCP1MODE0 0x01
3638 #define _CCP1CON_MODE1 0x02
3639 #define _CCP1CON_CCP1MODE1 0x02
3640 #define _CCP1CON_MODE2 0x04
3641 #define _CCP1CON_CCP1MODE2 0x04
3642 #define _CCP1CON_MODE3 0x08
3643 #define _CCP1CON_CCP1MODE3 0x08
3644 #define _CCP1CON_FMT 0x10
3645 #define _CCP1CON_CCP1FMT 0x10
3646 #define _CCP1CON_OUT 0x20
3647 #define _CCP1CON_CCP1OUT 0x20
3648 #define _CCP1CON_EN 0x80
3649 #define _CCP1CON_CCP1EN 0x80
3651 //==============================================================================
3654 //==============================================================================
3655 // CCP1CAP Bits
3657 extern __at(0x0294) __sfr CCP1CAP;
3659 typedef union
3661 struct
3663 unsigned CTS0 : 1;
3664 unsigned CTS1 : 1;
3665 unsigned CTS2 : 1;
3666 unsigned : 1;
3667 unsigned : 1;
3668 unsigned : 1;
3669 unsigned : 1;
3670 unsigned : 1;
3673 struct
3675 unsigned CCP1CTS0 : 1;
3676 unsigned CCP1CTS1 : 1;
3677 unsigned CCP1CTS2 : 1;
3678 unsigned : 1;
3679 unsigned : 1;
3680 unsigned : 1;
3681 unsigned : 1;
3682 unsigned : 1;
3685 struct
3687 unsigned CCP1CTS : 3;
3688 unsigned : 5;
3691 struct
3693 unsigned CTS : 3;
3694 unsigned : 5;
3696 } __CCP1CAPbits_t;
3698 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
3700 #define _CTS0 0x01
3701 #define _CCP1CTS0 0x01
3702 #define _CTS1 0x02
3703 #define _CCP1CTS1 0x02
3704 #define _CTS2 0x04
3705 #define _CCP1CTS2 0x04
3707 //==============================================================================
3709 extern __at(0x0298) __sfr CCPR2;
3710 extern __at(0x0298) __sfr CCPR2L;
3711 extern __at(0x0299) __sfr CCPR2H;
3713 //==============================================================================
3714 // CCP2CON Bits
3716 extern __at(0x029A) __sfr CCP2CON;
3718 typedef union
3720 struct
3722 unsigned MODE0 : 1;
3723 unsigned MODE1 : 1;
3724 unsigned MODE2 : 1;
3725 unsigned MODE3 : 1;
3726 unsigned FMT : 1;
3727 unsigned OUT : 1;
3728 unsigned : 1;
3729 unsigned EN : 1;
3732 struct
3734 unsigned CCP2MODE0 : 1;
3735 unsigned CCP2MODE1 : 1;
3736 unsigned CCP2MODE2 : 1;
3737 unsigned CCP2MODE3 : 1;
3738 unsigned CCP2FMT : 1;
3739 unsigned CCP2OUT : 1;
3740 unsigned : 1;
3741 unsigned CCP2EN : 1;
3744 struct
3746 unsigned CCP2MODE : 4;
3747 unsigned : 4;
3750 struct
3752 unsigned MODE : 4;
3753 unsigned : 4;
3755 } __CCP2CONbits_t;
3757 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
3759 #define _CCP2CON_MODE0 0x01
3760 #define _CCP2CON_CCP2MODE0 0x01
3761 #define _CCP2CON_MODE1 0x02
3762 #define _CCP2CON_CCP2MODE1 0x02
3763 #define _CCP2CON_MODE2 0x04
3764 #define _CCP2CON_CCP2MODE2 0x04
3765 #define _CCP2CON_MODE3 0x08
3766 #define _CCP2CON_CCP2MODE3 0x08
3767 #define _CCP2CON_FMT 0x10
3768 #define _CCP2CON_CCP2FMT 0x10
3769 #define _CCP2CON_OUT 0x20
3770 #define _CCP2CON_CCP2OUT 0x20
3771 #define _CCP2CON_EN 0x80
3772 #define _CCP2CON_CCP2EN 0x80
3774 //==============================================================================
3777 //==============================================================================
3778 // CCP2CAP Bits
3780 extern __at(0x029B) __sfr CCP2CAP;
3782 typedef union
3784 struct
3786 unsigned CTS0 : 1;
3787 unsigned CTS1 : 1;
3788 unsigned CTS2 : 1;
3789 unsigned : 1;
3790 unsigned : 1;
3791 unsigned : 1;
3792 unsigned : 1;
3793 unsigned : 1;
3796 struct
3798 unsigned CCP2CTS0 : 1;
3799 unsigned CCP2CTS1 : 1;
3800 unsigned CCP2CTS2 : 1;
3801 unsigned : 1;
3802 unsigned : 1;
3803 unsigned : 1;
3804 unsigned : 1;
3805 unsigned : 1;
3808 struct
3810 unsigned CTS : 3;
3811 unsigned : 5;
3814 struct
3816 unsigned CCP2CTS : 3;
3817 unsigned : 5;
3819 } __CCP2CAPbits_t;
3821 extern __at(0x029B) volatile __CCP2CAPbits_t CCP2CAPbits;
3823 #define _CCP2CAP_CTS0 0x01
3824 #define _CCP2CAP_CCP2CTS0 0x01
3825 #define _CCP2CAP_CTS1 0x02
3826 #define _CCP2CAP_CCP2CTS1 0x02
3827 #define _CCP2CAP_CTS2 0x04
3828 #define _CCP2CAP_CCP2CTS2 0x04
3830 //==============================================================================
3833 //==============================================================================
3834 // CCPTMRS Bits
3836 extern __at(0x029E) __sfr CCPTMRS;
3838 typedef union
3840 struct
3842 unsigned CCP1TSEL0 : 1;
3843 unsigned CCP1TSEL1 : 1;
3844 unsigned CCP2TSEL0 : 1;
3845 unsigned CCP2TSEL1 : 1;
3846 unsigned P3TSEL0 : 1;
3847 unsigned P3TSEL1 : 1;
3848 unsigned P4TSEL0 : 1;
3849 unsigned P4TSEL1 : 1;
3852 struct
3854 unsigned CCP1TSEL : 2;
3855 unsigned : 6;
3858 struct
3860 unsigned : 2;
3861 unsigned CCP2TSEL : 2;
3862 unsigned : 4;
3865 struct
3867 unsigned : 4;
3868 unsigned P3TSEL : 2;
3869 unsigned : 2;
3872 struct
3874 unsigned : 6;
3875 unsigned P4TSEL : 2;
3877 } __CCPTMRSbits_t;
3879 extern __at(0x029E) volatile __CCPTMRSbits_t CCPTMRSbits;
3881 #define _CCP1TSEL0 0x01
3882 #define _CCP1TSEL1 0x02
3883 #define _CCP2TSEL0 0x04
3884 #define _CCP2TSEL1 0x08
3885 #define _P3TSEL0 0x10
3886 #define _P3TSEL1 0x20
3887 #define _P4TSEL0 0x40
3888 #define _P4TSEL1 0x80
3890 //==============================================================================
3893 //==============================================================================
3894 // SLRCONA Bits
3896 extern __at(0x030C) __sfr SLRCONA;
3898 typedef struct
3900 unsigned SLRA0 : 1;
3901 unsigned SLRA1 : 1;
3902 unsigned SLRA2 : 1;
3903 unsigned : 1;
3904 unsigned SLRA4 : 1;
3905 unsigned SLRA5 : 1;
3906 unsigned : 1;
3907 unsigned : 1;
3908 } __SLRCONAbits_t;
3910 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
3912 #define _SLRA0 0x01
3913 #define _SLRA1 0x02
3914 #define _SLRA2 0x04
3915 #define _SLRA4 0x10
3916 #define _SLRA5 0x20
3918 //==============================================================================
3921 //==============================================================================
3922 // SLRCONB Bits
3924 extern __at(0x030D) __sfr SLRCONB;
3926 typedef struct
3928 unsigned : 1;
3929 unsigned : 1;
3930 unsigned : 1;
3931 unsigned : 1;
3932 unsigned SLRB4 : 1;
3933 unsigned SLRB5 : 1;
3934 unsigned SLRB6 : 1;
3935 unsigned SLRB7 : 1;
3936 } __SLRCONBbits_t;
3938 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
3940 #define _SLRB4 0x10
3941 #define _SLRB5 0x20
3942 #define _SLRB6 0x40
3943 #define _SLRB7 0x80
3945 //==============================================================================
3948 //==============================================================================
3949 // SLRCONC Bits
3951 extern __at(0x030E) __sfr SLRCONC;
3953 typedef struct
3955 unsigned SLRC0 : 1;
3956 unsigned SLRC1 : 1;
3957 unsigned SLRC2 : 1;
3958 unsigned SLRC3 : 1;
3959 unsigned SLRC4 : 1;
3960 unsigned SLRC5 : 1;
3961 unsigned SLRC6 : 1;
3962 unsigned SLRC7 : 1;
3963 } __SLRCONCbits_t;
3965 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
3967 #define _SLRC0 0x01
3968 #define _SLRC1 0x02
3969 #define _SLRC2 0x04
3970 #define _SLRC3 0x08
3971 #define _SLRC4 0x10
3972 #define _SLRC5 0x20
3973 #define _SLRC6 0x40
3974 #define _SLRC7 0x80
3976 //==============================================================================
3979 //==============================================================================
3980 // INLVLA Bits
3982 extern __at(0x038C) __sfr INLVLA;
3984 typedef union
3986 struct
3988 unsigned INLVLA0 : 1;
3989 unsigned INLVLA1 : 1;
3990 unsigned INLVLA2 : 1;
3991 unsigned INLVLA3 : 1;
3992 unsigned INLVLA4 : 1;
3993 unsigned INLVLA5 : 1;
3994 unsigned : 1;
3995 unsigned : 1;
3998 struct
4000 unsigned INLVLA : 6;
4001 unsigned : 2;
4003 } __INLVLAbits_t;
4005 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
4007 #define _INLVLA0 0x01
4008 #define _INLVLA1 0x02
4009 #define _INLVLA2 0x04
4010 #define _INLVLA3 0x08
4011 #define _INLVLA4 0x10
4012 #define _INLVLA5 0x20
4014 //==============================================================================
4017 //==============================================================================
4018 // INLVLB Bits
4020 extern __at(0x038D) __sfr INLVLB;
4022 typedef struct
4024 unsigned : 1;
4025 unsigned : 1;
4026 unsigned : 1;
4027 unsigned : 1;
4028 unsigned INLVLB4 : 1;
4029 unsigned INLVLB5 : 1;
4030 unsigned INLVLB6 : 1;
4031 unsigned INLVLB7 : 1;
4032 } __INLVLBbits_t;
4034 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
4036 #define _INLVLB4 0x10
4037 #define _INLVLB5 0x20
4038 #define _INLVLB6 0x40
4039 #define _INLVLB7 0x80
4041 //==============================================================================
4044 //==============================================================================
4045 // INLVLC Bits
4047 extern __at(0x038E) __sfr INLVLC;
4049 typedef struct
4051 unsigned INLVLC0 : 1;
4052 unsigned INLVLC1 : 1;
4053 unsigned INLVLC2 : 1;
4054 unsigned INLVLC3 : 1;
4055 unsigned INLVLC4 : 1;
4056 unsigned INLVLC5 : 1;
4057 unsigned INLVLC6 : 1;
4058 unsigned INLVLC7 : 1;
4059 } __INLVLCbits_t;
4061 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
4063 #define _INLVLC0 0x01
4064 #define _INLVLC1 0x02
4065 #define _INLVLC2 0x04
4066 #define _INLVLC3 0x08
4067 #define _INLVLC4 0x10
4068 #define _INLVLC5 0x20
4069 #define _INLVLC6 0x40
4070 #define _INLVLC7 0x80
4072 //==============================================================================
4075 //==============================================================================
4076 // IOCAP Bits
4078 extern __at(0x0391) __sfr IOCAP;
4080 typedef union
4082 struct
4084 unsigned IOCAP0 : 1;
4085 unsigned IOCAP1 : 1;
4086 unsigned IOCAP2 : 1;
4087 unsigned IOCAP3 : 1;
4088 unsigned IOCAP4 : 1;
4089 unsigned IOCAP5 : 1;
4090 unsigned : 1;
4091 unsigned : 1;
4094 struct
4096 unsigned IOCAP : 6;
4097 unsigned : 2;
4099 } __IOCAPbits_t;
4101 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
4103 #define _IOCAP0 0x01
4104 #define _IOCAP1 0x02
4105 #define _IOCAP2 0x04
4106 #define _IOCAP3 0x08
4107 #define _IOCAP4 0x10
4108 #define _IOCAP5 0x20
4110 //==============================================================================
4113 //==============================================================================
4114 // IOCAN Bits
4116 extern __at(0x0392) __sfr IOCAN;
4118 typedef union
4120 struct
4122 unsigned IOCAN0 : 1;
4123 unsigned IOCAN1 : 1;
4124 unsigned IOCAN2 : 1;
4125 unsigned IOCAN3 : 1;
4126 unsigned IOCAN4 : 1;
4127 unsigned IOCAN5 : 1;
4128 unsigned : 1;
4129 unsigned : 1;
4132 struct
4134 unsigned IOCAN : 6;
4135 unsigned : 2;
4137 } __IOCANbits_t;
4139 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
4141 #define _IOCAN0 0x01
4142 #define _IOCAN1 0x02
4143 #define _IOCAN2 0x04
4144 #define _IOCAN3 0x08
4145 #define _IOCAN4 0x10
4146 #define _IOCAN5 0x20
4148 //==============================================================================
4151 //==============================================================================
4152 // IOCAF Bits
4154 extern __at(0x0393) __sfr IOCAF;
4156 typedef union
4158 struct
4160 unsigned IOCAF0 : 1;
4161 unsigned IOCAF1 : 1;
4162 unsigned IOCAF2 : 1;
4163 unsigned IOCAF3 : 1;
4164 unsigned IOCAF4 : 1;
4165 unsigned IOCAF5 : 1;
4166 unsigned : 1;
4167 unsigned : 1;
4170 struct
4172 unsigned IOCAF : 6;
4173 unsigned : 2;
4175 } __IOCAFbits_t;
4177 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
4179 #define _IOCAF0 0x01
4180 #define _IOCAF1 0x02
4181 #define _IOCAF2 0x04
4182 #define _IOCAF3 0x08
4183 #define _IOCAF4 0x10
4184 #define _IOCAF5 0x20
4186 //==============================================================================
4189 //==============================================================================
4190 // IOCBP Bits
4192 extern __at(0x0394) __sfr IOCBP;
4194 typedef struct
4196 unsigned : 1;
4197 unsigned : 1;
4198 unsigned : 1;
4199 unsigned : 1;
4200 unsigned IOCBP4 : 1;
4201 unsigned IOCBP5 : 1;
4202 unsigned IOCBP6 : 1;
4203 unsigned IOCBP7 : 1;
4204 } __IOCBPbits_t;
4206 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
4208 #define _IOCBP4 0x10
4209 #define _IOCBP5 0x20
4210 #define _IOCBP6 0x40
4211 #define _IOCBP7 0x80
4213 //==============================================================================
4216 //==============================================================================
4217 // IOCBN Bits
4219 extern __at(0x0395) __sfr IOCBN;
4221 typedef struct
4223 unsigned : 1;
4224 unsigned : 1;
4225 unsigned : 1;
4226 unsigned : 1;
4227 unsigned IOCBN4 : 1;
4228 unsigned IOCBN5 : 1;
4229 unsigned IOCBN6 : 1;
4230 unsigned IOCBN7 : 1;
4231 } __IOCBNbits_t;
4233 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
4235 #define _IOCBN4 0x10
4236 #define _IOCBN5 0x20
4237 #define _IOCBN6 0x40
4238 #define _IOCBN7 0x80
4240 //==============================================================================
4243 //==============================================================================
4244 // IOCBF Bits
4246 extern __at(0x0396) __sfr IOCBF;
4248 typedef struct
4250 unsigned : 1;
4251 unsigned : 1;
4252 unsigned : 1;
4253 unsigned : 1;
4254 unsigned IOCBF4 : 1;
4255 unsigned IOCBF5 : 1;
4256 unsigned IOCBF6 : 1;
4257 unsigned IOCBF7 : 1;
4258 } __IOCBFbits_t;
4260 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
4262 #define _IOCBF4 0x10
4263 #define _IOCBF5 0x20
4264 #define _IOCBF6 0x40
4265 #define _IOCBF7 0x80
4267 //==============================================================================
4270 //==============================================================================
4271 // IOCCP Bits
4273 extern __at(0x0397) __sfr IOCCP;
4275 typedef struct
4277 unsigned IOCCP0 : 1;
4278 unsigned IOCCP1 : 1;
4279 unsigned IOCCP2 : 1;
4280 unsigned IOCCP3 : 1;
4281 unsigned IOCCP4 : 1;
4282 unsigned IOCCP5 : 1;
4283 unsigned IOCCP6 : 1;
4284 unsigned IOCCP7 : 1;
4285 } __IOCCPbits_t;
4287 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
4289 #define _IOCCP0 0x01
4290 #define _IOCCP1 0x02
4291 #define _IOCCP2 0x04
4292 #define _IOCCP3 0x08
4293 #define _IOCCP4 0x10
4294 #define _IOCCP5 0x20
4295 #define _IOCCP6 0x40
4296 #define _IOCCP7 0x80
4298 //==============================================================================
4301 //==============================================================================
4302 // IOCCN Bits
4304 extern __at(0x0398) __sfr IOCCN;
4306 typedef struct
4308 unsigned IOCCN0 : 1;
4309 unsigned IOCCN1 : 1;
4310 unsigned IOCCN2 : 1;
4311 unsigned IOCCN3 : 1;
4312 unsigned IOCCN4 : 1;
4313 unsigned IOCCN5 : 1;
4314 unsigned IOCCN6 : 1;
4315 unsigned IOCCN7 : 1;
4316 } __IOCCNbits_t;
4318 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
4320 #define _IOCCN0 0x01
4321 #define _IOCCN1 0x02
4322 #define _IOCCN2 0x04
4323 #define _IOCCN3 0x08
4324 #define _IOCCN4 0x10
4325 #define _IOCCN5 0x20
4326 #define _IOCCN6 0x40
4327 #define _IOCCN7 0x80
4329 //==============================================================================
4332 //==============================================================================
4333 // IOCCF Bits
4335 extern __at(0x0399) __sfr IOCCF;
4337 typedef struct
4339 unsigned IOCCF0 : 1;
4340 unsigned IOCCF1 : 1;
4341 unsigned IOCCF2 : 1;
4342 unsigned IOCCF3 : 1;
4343 unsigned IOCCF4 : 1;
4344 unsigned IOCCF5 : 1;
4345 unsigned IOCCF6 : 1;
4346 unsigned IOCCF7 : 1;
4347 } __IOCCFbits_t;
4349 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
4351 #define _IOCCF0 0x01
4352 #define _IOCCF1 0x02
4353 #define _IOCCF2 0x04
4354 #define _IOCCF3 0x08
4355 #define _IOCCF4 0x10
4356 #define _IOCCF5 0x20
4357 #define _IOCCF6 0x40
4358 #define _IOCCF7 0x80
4360 //==============================================================================
4363 //==============================================================================
4364 // HIDRVC Bits
4366 extern __at(0x040E) __sfr HIDRVC;
4368 typedef struct
4370 unsigned : 1;
4371 unsigned : 1;
4372 unsigned : 1;
4373 unsigned : 1;
4374 unsigned HIDC4 : 1;
4375 unsigned HIDC5 : 1;
4376 unsigned : 1;
4377 unsigned : 1;
4378 } __HIDRVCbits_t;
4380 extern __at(0x040E) volatile __HIDRVCbits_t HIDRVCbits;
4382 #define _HIDC4 0x10
4383 #define _HIDC5 0x20
4385 //==============================================================================
4387 extern __at(0x0413) __sfr T4TMR;
4388 extern __at(0x0413) __sfr TMR4;
4389 extern __at(0x0414) __sfr PR4;
4390 extern __at(0x0414) __sfr T4PR;
4392 //==============================================================================
4393 // T4CON Bits
4395 extern __at(0x0415) __sfr T4CON;
4397 typedef union
4399 struct
4401 unsigned OUTPS0 : 1;
4402 unsigned OUTPS1 : 1;
4403 unsigned OUTPS2 : 1;
4404 unsigned OUTPS3 : 1;
4405 unsigned CKPS0 : 1;
4406 unsigned CKPS1 : 1;
4407 unsigned CKPS2 : 1;
4408 unsigned ON : 1;
4411 struct
4413 unsigned T4OUTPS0 : 1;
4414 unsigned T4OUTPS1 : 1;
4415 unsigned T4OUTPS2 : 1;
4416 unsigned T4OUTPS3 : 1;
4417 unsigned T4CKPS0 : 1;
4418 unsigned T4CKPS1 : 1;
4419 unsigned T4CKPS2 : 1;
4420 unsigned T4ON : 1;
4423 struct
4425 unsigned : 1;
4426 unsigned : 1;
4427 unsigned : 1;
4428 unsigned : 1;
4429 unsigned : 1;
4430 unsigned : 1;
4431 unsigned : 1;
4432 unsigned TMR4ON : 1;
4435 struct
4437 unsigned T4OUTPS : 4;
4438 unsigned : 4;
4441 struct
4443 unsigned OUTPS : 4;
4444 unsigned : 4;
4447 struct
4449 unsigned : 4;
4450 unsigned CKPS : 3;
4451 unsigned : 1;
4454 struct
4456 unsigned : 4;
4457 unsigned T4CKPS : 3;
4458 unsigned : 1;
4460 } __T4CONbits_t;
4462 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
4464 #define _T4CON_OUTPS0 0x01
4465 #define _T4CON_T4OUTPS0 0x01
4466 #define _T4CON_OUTPS1 0x02
4467 #define _T4CON_T4OUTPS1 0x02
4468 #define _T4CON_OUTPS2 0x04
4469 #define _T4CON_T4OUTPS2 0x04
4470 #define _T4CON_OUTPS3 0x08
4471 #define _T4CON_T4OUTPS3 0x08
4472 #define _T4CON_CKPS0 0x10
4473 #define _T4CON_T4CKPS0 0x10
4474 #define _T4CON_CKPS1 0x20
4475 #define _T4CON_T4CKPS1 0x20
4476 #define _T4CON_CKPS2 0x40
4477 #define _T4CON_T4CKPS2 0x40
4478 #define _T4CON_ON 0x80
4479 #define _T4CON_T4ON 0x80
4480 #define _T4CON_TMR4ON 0x80
4482 //==============================================================================
4485 //==============================================================================
4486 // T4HLT Bits
4488 extern __at(0x0416) __sfr T4HLT;
4490 typedef union
4492 struct
4494 unsigned MODE0 : 1;
4495 unsigned MODE1 : 1;
4496 unsigned MODE2 : 1;
4497 unsigned MODE3 : 1;
4498 unsigned MODE4 : 1;
4499 unsigned CKSYNC : 1;
4500 unsigned CKPOL : 1;
4501 unsigned PSYNC : 1;
4504 struct
4506 unsigned T4MODE0 : 1;
4507 unsigned T4MODE1 : 1;
4508 unsigned T4MODE2 : 1;
4509 unsigned T4MODE3 : 1;
4510 unsigned T4MODE4 : 1;
4511 unsigned T4CKSYNC : 1;
4512 unsigned T4CKPOL : 1;
4513 unsigned T4PSYNC : 1;
4516 struct
4518 unsigned T4MODE : 5;
4519 unsigned : 3;
4522 struct
4524 unsigned MODE : 5;
4525 unsigned : 3;
4527 } __T4HLTbits_t;
4529 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
4531 #define _T4HLT_MODE0 0x01
4532 #define _T4HLT_T4MODE0 0x01
4533 #define _T4HLT_MODE1 0x02
4534 #define _T4HLT_T4MODE1 0x02
4535 #define _T4HLT_MODE2 0x04
4536 #define _T4HLT_T4MODE2 0x04
4537 #define _T4HLT_MODE3 0x08
4538 #define _T4HLT_T4MODE3 0x08
4539 #define _T4HLT_MODE4 0x10
4540 #define _T4HLT_T4MODE4 0x10
4541 #define _T4HLT_CKSYNC 0x20
4542 #define _T4HLT_T4CKSYNC 0x20
4543 #define _T4HLT_CKPOL 0x40
4544 #define _T4HLT_T4CKPOL 0x40
4545 #define _T4HLT_PSYNC 0x80
4546 #define _T4HLT_T4PSYNC 0x80
4548 //==============================================================================
4551 //==============================================================================
4552 // T4CLKCON Bits
4554 extern __at(0x0417) __sfr T4CLKCON;
4556 typedef union
4558 struct
4560 unsigned CS0 : 1;
4561 unsigned CS1 : 1;
4562 unsigned CS2 : 1;
4563 unsigned CS3 : 1;
4564 unsigned : 1;
4565 unsigned : 1;
4566 unsigned : 1;
4567 unsigned : 1;
4570 struct
4572 unsigned T4CS0 : 1;
4573 unsigned T4CS1 : 1;
4574 unsigned T4CS2 : 1;
4575 unsigned T4CS3 : 1;
4576 unsigned : 1;
4577 unsigned : 1;
4578 unsigned : 1;
4579 unsigned : 1;
4582 struct
4584 unsigned CS : 4;
4585 unsigned : 4;
4588 struct
4590 unsigned T4CS : 4;
4591 unsigned : 4;
4593 } __T4CLKCONbits_t;
4595 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
4597 #define _T4CLKCON_CS0 0x01
4598 #define _T4CLKCON_T4CS0 0x01
4599 #define _T4CLKCON_CS1 0x02
4600 #define _T4CLKCON_T4CS1 0x02
4601 #define _T4CLKCON_CS2 0x04
4602 #define _T4CLKCON_T4CS2 0x04
4603 #define _T4CLKCON_CS3 0x08
4604 #define _T4CLKCON_T4CS3 0x08
4606 //==============================================================================
4609 //==============================================================================
4610 // T4RST Bits
4612 extern __at(0x0418) __sfr T4RST;
4614 typedef union
4616 struct
4618 unsigned RSEL0 : 1;
4619 unsigned RSEL1 : 1;
4620 unsigned RSEL2 : 1;
4621 unsigned RSEL3 : 1;
4622 unsigned : 1;
4623 unsigned : 1;
4624 unsigned : 1;
4625 unsigned : 1;
4628 struct
4630 unsigned T4RSEL0 : 1;
4631 unsigned T4RSEL1 : 1;
4632 unsigned T4RSEL2 : 1;
4633 unsigned T4RSEL3 : 1;
4634 unsigned : 1;
4635 unsigned : 1;
4636 unsigned : 1;
4637 unsigned : 1;
4640 struct
4642 unsigned T4RSEL : 4;
4643 unsigned : 4;
4646 struct
4648 unsigned RSEL : 4;
4649 unsigned : 4;
4651 } __T4RSTbits_t;
4653 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
4655 #define _T4RST_RSEL0 0x01
4656 #define _T4RST_T4RSEL0 0x01
4657 #define _T4RST_RSEL1 0x02
4658 #define _T4RST_T4RSEL1 0x02
4659 #define _T4RST_RSEL2 0x04
4660 #define _T4RST_T4RSEL2 0x04
4661 #define _T4RST_RSEL3 0x08
4662 #define _T4RST_T4RSEL3 0x08
4664 //==============================================================================
4666 extern __at(0x041A) __sfr T6TMR;
4667 extern __at(0x041A) __sfr TMR6;
4668 extern __at(0x041B) __sfr PR6;
4669 extern __at(0x041B) __sfr T6PR;
4671 //==============================================================================
4672 // T6CON Bits
4674 extern __at(0x041C) __sfr T6CON;
4676 typedef union
4678 struct
4680 unsigned OUTPS0 : 1;
4681 unsigned OUTPS1 : 1;
4682 unsigned OUTPS2 : 1;
4683 unsigned OUTPS3 : 1;
4684 unsigned CKPS0 : 1;
4685 unsigned CKPS1 : 1;
4686 unsigned CKPS2 : 1;
4687 unsigned ON : 1;
4690 struct
4692 unsigned T6OUTPS0 : 1;
4693 unsigned T6OUTPS1 : 1;
4694 unsigned T6OUTPS2 : 1;
4695 unsigned T6OUTPS3 : 1;
4696 unsigned T6CKPS0 : 1;
4697 unsigned T6CKPS1 : 1;
4698 unsigned T6CKPS2 : 1;
4699 unsigned T6ON : 1;
4702 struct
4704 unsigned : 1;
4705 unsigned : 1;
4706 unsigned : 1;
4707 unsigned : 1;
4708 unsigned : 1;
4709 unsigned : 1;
4710 unsigned : 1;
4711 unsigned TMR6ON : 1;
4714 struct
4716 unsigned OUTPS : 4;
4717 unsigned : 4;
4720 struct
4722 unsigned T6OUTPS : 4;
4723 unsigned : 4;
4726 struct
4728 unsigned : 4;
4729 unsigned T6CKPS : 3;
4730 unsigned : 1;
4733 struct
4735 unsigned : 4;
4736 unsigned CKPS : 3;
4737 unsigned : 1;
4739 } __T6CONbits_t;
4741 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
4743 #define _T6CON_OUTPS0 0x01
4744 #define _T6CON_T6OUTPS0 0x01
4745 #define _T6CON_OUTPS1 0x02
4746 #define _T6CON_T6OUTPS1 0x02
4747 #define _T6CON_OUTPS2 0x04
4748 #define _T6CON_T6OUTPS2 0x04
4749 #define _T6CON_OUTPS3 0x08
4750 #define _T6CON_T6OUTPS3 0x08
4751 #define _T6CON_CKPS0 0x10
4752 #define _T6CON_T6CKPS0 0x10
4753 #define _T6CON_CKPS1 0x20
4754 #define _T6CON_T6CKPS1 0x20
4755 #define _T6CON_CKPS2 0x40
4756 #define _T6CON_T6CKPS2 0x40
4757 #define _T6CON_ON 0x80
4758 #define _T6CON_T6ON 0x80
4759 #define _T6CON_TMR6ON 0x80
4761 //==============================================================================
4764 //==============================================================================
4765 // T6HLT Bits
4767 extern __at(0x041D) __sfr T6HLT;
4769 typedef union
4771 struct
4773 unsigned MODE0 : 1;
4774 unsigned MODE1 : 1;
4775 unsigned MODE2 : 1;
4776 unsigned MODE3 : 1;
4777 unsigned MODE4 : 1;
4778 unsigned CKSYNC : 1;
4779 unsigned CKPOL : 1;
4780 unsigned PSYNC : 1;
4783 struct
4785 unsigned T6MODE0 : 1;
4786 unsigned T6MODE1 : 1;
4787 unsigned T6MODE2 : 1;
4788 unsigned T6MODE3 : 1;
4789 unsigned T6MODE4 : 1;
4790 unsigned T6CKSYNC : 1;
4791 unsigned T6CKPOL : 1;
4792 unsigned T6PSYNC : 1;
4795 struct
4797 unsigned MODE : 5;
4798 unsigned : 3;
4801 struct
4803 unsigned T6MODE : 5;
4804 unsigned : 3;
4806 } __T6HLTbits_t;
4808 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
4810 #define _T6HLT_MODE0 0x01
4811 #define _T6HLT_T6MODE0 0x01
4812 #define _T6HLT_MODE1 0x02
4813 #define _T6HLT_T6MODE1 0x02
4814 #define _T6HLT_MODE2 0x04
4815 #define _T6HLT_T6MODE2 0x04
4816 #define _T6HLT_MODE3 0x08
4817 #define _T6HLT_T6MODE3 0x08
4818 #define _T6HLT_MODE4 0x10
4819 #define _T6HLT_T6MODE4 0x10
4820 #define _T6HLT_CKSYNC 0x20
4821 #define _T6HLT_T6CKSYNC 0x20
4822 #define _T6HLT_CKPOL 0x40
4823 #define _T6HLT_T6CKPOL 0x40
4824 #define _T6HLT_PSYNC 0x80
4825 #define _T6HLT_T6PSYNC 0x80
4827 //==============================================================================
4830 //==============================================================================
4831 // T6CLKCON Bits
4833 extern __at(0x041E) __sfr T6CLKCON;
4835 typedef union
4837 struct
4839 unsigned CS0 : 1;
4840 unsigned CS1 : 1;
4841 unsigned CS2 : 1;
4842 unsigned CS3 : 1;
4843 unsigned : 1;
4844 unsigned : 1;
4845 unsigned : 1;
4846 unsigned : 1;
4849 struct
4851 unsigned T6CS0 : 1;
4852 unsigned T6CS1 : 1;
4853 unsigned T6CS2 : 1;
4854 unsigned T6CS3 : 1;
4855 unsigned : 1;
4856 unsigned : 1;
4857 unsigned : 1;
4858 unsigned : 1;
4861 struct
4863 unsigned CS : 4;
4864 unsigned : 4;
4867 struct
4869 unsigned T6CS : 4;
4870 unsigned : 4;
4872 } __T6CLKCONbits_t;
4874 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
4876 #define _T6CLKCON_CS0 0x01
4877 #define _T6CLKCON_T6CS0 0x01
4878 #define _T6CLKCON_CS1 0x02
4879 #define _T6CLKCON_T6CS1 0x02
4880 #define _T6CLKCON_CS2 0x04
4881 #define _T6CLKCON_T6CS2 0x04
4882 #define _T6CLKCON_CS3 0x08
4883 #define _T6CLKCON_T6CS3 0x08
4885 //==============================================================================
4888 //==============================================================================
4889 // T6RST Bits
4891 extern __at(0x041F) __sfr T6RST;
4893 typedef union
4895 struct
4897 unsigned RSEL0 : 1;
4898 unsigned RSEL1 : 1;
4899 unsigned RSEL2 : 1;
4900 unsigned RSEL3 : 1;
4901 unsigned : 1;
4902 unsigned : 1;
4903 unsigned : 1;
4904 unsigned : 1;
4907 struct
4909 unsigned T6RSEL0 : 1;
4910 unsigned T6RSEL1 : 1;
4911 unsigned T6RSEL2 : 1;
4912 unsigned T6RSEL3 : 1;
4913 unsigned : 1;
4914 unsigned : 1;
4915 unsigned : 1;
4916 unsigned : 1;
4919 struct
4921 unsigned T6RSEL : 4;
4922 unsigned : 4;
4925 struct
4927 unsigned RSEL : 4;
4928 unsigned : 4;
4930 } __T6RSTbits_t;
4932 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
4934 #define _T6RST_RSEL0 0x01
4935 #define _T6RST_T6RSEL0 0x01
4936 #define _T6RST_RSEL1 0x02
4937 #define _T6RST_T6RSEL1 0x02
4938 #define _T6RST_RSEL2 0x04
4939 #define _T6RST_T6RSEL2 0x04
4940 #define _T6RST_RSEL3 0x08
4941 #define _T6RST_T6RSEL3 0x08
4943 //==============================================================================
4945 extern __at(0x0493) __sfr TMR3L;
4946 extern __at(0x0494) __sfr TMR3H;
4948 //==============================================================================
4949 // T3CON Bits
4951 extern __at(0x0495) __sfr T3CON;
4953 typedef union
4955 struct
4957 unsigned TMR3ON : 1;
4958 unsigned : 1;
4959 unsigned T3SYNC : 1;
4960 unsigned : 1;
4961 unsigned T3CKPS0 : 1;
4962 unsigned T3CKPS1 : 1;
4963 unsigned TMR3CS0 : 1;
4964 unsigned TMR3CS1 : 1;
4967 struct
4969 unsigned : 4;
4970 unsigned T3CKPS : 2;
4971 unsigned : 2;
4974 struct
4976 unsigned : 6;
4977 unsigned TMR3CS : 2;
4979 } __T3CONbits_t;
4981 extern __at(0x0495) volatile __T3CONbits_t T3CONbits;
4983 #define _TMR3ON 0x01
4984 #define _T3SYNC 0x04
4985 #define _T3CKPS0 0x10
4986 #define _T3CKPS1 0x20
4987 #define _TMR3CS0 0x40
4988 #define _TMR3CS1 0x80
4990 //==============================================================================
4993 //==============================================================================
4994 // T3GCON Bits
4996 extern __at(0x0496) __sfr T3GCON;
4998 typedef union
5000 struct
5002 unsigned T3GSS0 : 1;
5003 unsigned T3GSS1 : 1;
5004 unsigned T3GVAL : 1;
5005 unsigned T3GGO_NOT_DONE : 1;
5006 unsigned T3GSPM : 1;
5007 unsigned T3GTM : 1;
5008 unsigned T3GPOL : 1;
5009 unsigned TMR3GE : 1;
5012 struct
5014 unsigned T3GSS : 2;
5015 unsigned : 6;
5017 } __T3GCONbits_t;
5019 extern __at(0x0496) volatile __T3GCONbits_t T3GCONbits;
5021 #define _T3GSS0 0x01
5022 #define _T3GSS1 0x02
5023 #define _T3GVAL 0x04
5024 #define _T3GGO_NOT_DONE 0x08
5025 #define _T3GSPM 0x10
5026 #define _T3GTM 0x20
5027 #define _T3GPOL 0x40
5028 #define _TMR3GE 0x80
5030 //==============================================================================
5032 extern __at(0x049A) __sfr TMR5L;
5033 extern __at(0x049B) __sfr TMR5H;
5035 //==============================================================================
5036 // T5CON Bits
5038 extern __at(0x049C) __sfr T5CON;
5040 typedef union
5042 struct
5044 unsigned TMR5ON : 1;
5045 unsigned : 1;
5046 unsigned T5SYNC : 1;
5047 unsigned : 1;
5048 unsigned T5CKPS0 : 1;
5049 unsigned T5CKPS1 : 1;
5050 unsigned TMR5CS0 : 1;
5051 unsigned TMR5CS1 : 1;
5054 struct
5056 unsigned : 4;
5057 unsigned T5CKPS : 2;
5058 unsigned : 2;
5061 struct
5063 unsigned : 6;
5064 unsigned TMR5CS : 2;
5066 } __T5CONbits_t;
5068 extern __at(0x049C) volatile __T5CONbits_t T5CONbits;
5070 #define _TMR5ON 0x01
5071 #define _T5SYNC 0x04
5072 #define _T5CKPS0 0x10
5073 #define _T5CKPS1 0x20
5074 #define _TMR5CS0 0x40
5075 #define _TMR5CS1 0x80
5077 //==============================================================================
5080 //==============================================================================
5081 // T5GCON Bits
5083 extern __at(0x049D) __sfr T5GCON;
5085 typedef union
5087 struct
5089 unsigned T5GSS0 : 1;
5090 unsigned T5GSS1 : 1;
5091 unsigned T5GVAL : 1;
5092 unsigned T5GGO_NOT_DONE : 1;
5093 unsigned T5GSPM : 1;
5094 unsigned T5GTM : 1;
5095 unsigned T5GPOL : 1;
5096 unsigned TMR5GE : 1;
5099 struct
5101 unsigned T5GSS : 2;
5102 unsigned : 6;
5104 } __T5GCONbits_t;
5106 extern __at(0x049D) volatile __T5GCONbits_t T5GCONbits;
5108 #define _T5GSS0 0x01
5109 #define _T5GSS1 0x02
5110 #define _T5GVAL 0x04
5111 #define _T5GGO_NOT_DONE 0x08
5112 #define _T5GSPM 0x10
5113 #define _T5GTM 0x20
5114 #define _T5GPOL 0x40
5115 #define _TMR5GE 0x80
5117 //==============================================================================
5119 extern __at(0x058C) __sfr PID1SET;
5121 //==============================================================================
5122 // PID1SETL Bits
5124 extern __at(0x058C) __sfr PID1SETL;
5126 typedef union
5128 struct
5130 unsigned PID1SET0 : 1;
5131 unsigned PID1SET1 : 1;
5132 unsigned PID1SET2 : 1;
5133 unsigned PID1SET3 : 1;
5134 unsigned PID1SET4 : 1;
5135 unsigned PID1SET5 : 1;
5136 unsigned PID1SET6 : 1;
5137 unsigned PID1SET7 : 1;
5140 struct
5142 unsigned SET0 : 1;
5143 unsigned SET1 : 1;
5144 unsigned SET2 : 1;
5145 unsigned SET3 : 1;
5146 unsigned SET4 : 1;
5147 unsigned SET5 : 1;
5148 unsigned SET6 : 1;
5149 unsigned SET7 : 1;
5151 } __PID1SETLbits_t;
5153 extern __at(0x058C) volatile __PID1SETLbits_t PID1SETLbits;
5155 #define _PID1SET0 0x01
5156 #define _SET0 0x01
5157 #define _PID1SET1 0x02
5158 #define _SET1 0x02
5159 #define _PID1SET2 0x04
5160 #define _SET2 0x04
5161 #define _PID1SET3 0x08
5162 #define _SET3 0x08
5163 #define _PID1SET4 0x10
5164 #define _SET4 0x10
5165 #define _PID1SET5 0x20
5166 #define _SET5 0x20
5167 #define _PID1SET6 0x40
5168 #define _SET6 0x40
5169 #define _PID1SET7 0x80
5170 #define _SET7 0x80
5172 //==============================================================================
5175 //==============================================================================
5176 // PID1SETH Bits
5178 extern __at(0x058D) __sfr PID1SETH;
5180 typedef union
5182 struct
5184 unsigned PID1SET8 : 1;
5185 unsigned PID1SET9 : 1;
5186 unsigned PID1SET10 : 1;
5187 unsigned PID1SET11 : 1;
5188 unsigned PID1SET12 : 1;
5189 unsigned PID1SET13 : 1;
5190 unsigned PID1SET14 : 1;
5191 unsigned PID1SET15 : 1;
5194 struct
5196 unsigned SET8 : 1;
5197 unsigned SET9 : 1;
5198 unsigned SET10 : 1;
5199 unsigned SET11 : 1;
5200 unsigned SET12 : 1;
5201 unsigned SET13 : 1;
5202 unsigned SET14 : 1;
5203 unsigned SET15 : 1;
5205 } __PID1SETHbits_t;
5207 extern __at(0x058D) volatile __PID1SETHbits_t PID1SETHbits;
5209 #define _PID1SET8 0x01
5210 #define _SET8 0x01
5211 #define _PID1SET9 0x02
5212 #define _SET9 0x02
5213 #define _PID1SET10 0x04
5214 #define _SET10 0x04
5215 #define _PID1SET11 0x08
5216 #define _SET11 0x08
5217 #define _PID1SET12 0x10
5218 #define _SET12 0x10
5219 #define _PID1SET13 0x20
5220 #define _SET13 0x20
5221 #define _PID1SET14 0x40
5222 #define _SET14 0x40
5223 #define _PID1SET15 0x80
5224 #define _SET15 0x80
5226 //==============================================================================
5228 extern __at(0x058E) __sfr PID1IN;
5230 //==============================================================================
5231 // PID1INL Bits
5233 extern __at(0x058E) __sfr PID1INL;
5235 typedef union
5237 struct
5239 unsigned PID1IN0 : 1;
5240 unsigned PID1IN1 : 1;
5241 unsigned PID1IN2 : 1;
5242 unsigned PID1IN3 : 1;
5243 unsigned PID1IN4 : 1;
5244 unsigned PID1IN5 : 1;
5245 unsigned PID1IN6 : 1;
5246 unsigned PID1IN7 : 1;
5249 struct
5251 unsigned IN0 : 1;
5252 unsigned IN1 : 1;
5253 unsigned IN2 : 1;
5254 unsigned IN3 : 1;
5255 unsigned IN4 : 1;
5256 unsigned IN5 : 1;
5257 unsigned IN6 : 1;
5258 unsigned IN7 : 1;
5260 } __PID1INLbits_t;
5262 extern __at(0x058E) volatile __PID1INLbits_t PID1INLbits;
5264 #define _PID1IN0 0x01
5265 #define _IN0 0x01
5266 #define _PID1IN1 0x02
5267 #define _IN1 0x02
5268 #define _PID1IN2 0x04
5269 #define _IN2 0x04
5270 #define _PID1IN3 0x08
5271 #define _IN3 0x08
5272 #define _PID1IN4 0x10
5273 #define _IN4 0x10
5274 #define _PID1IN5 0x20
5275 #define _IN5 0x20
5276 #define _PID1IN6 0x40
5277 #define _IN6 0x40
5278 #define _PID1IN7 0x80
5279 #define _IN7 0x80
5281 //==============================================================================
5284 //==============================================================================
5285 // PID1INH Bits
5287 extern __at(0x058F) __sfr PID1INH;
5289 typedef union
5291 struct
5293 unsigned PID1IN8 : 1;
5294 unsigned PID1IN9 : 1;
5295 unsigned PID1IN10 : 1;
5296 unsigned PID1IN11 : 1;
5297 unsigned PID1IN12 : 1;
5298 unsigned PID1IN13 : 1;
5299 unsigned PID1IN14 : 1;
5300 unsigned PID1IN15 : 1;
5303 struct
5305 unsigned IN8 : 1;
5306 unsigned IN9 : 1;
5307 unsigned IN10 : 1;
5308 unsigned IN11 : 1;
5309 unsigned IN12 : 1;
5310 unsigned IN13 : 1;
5311 unsigned IN14 : 1;
5312 unsigned IN15 : 1;
5314 } __PID1INHbits_t;
5316 extern __at(0x058F) volatile __PID1INHbits_t PID1INHbits;
5318 #define _PID1IN8 0x01
5319 #define _IN8 0x01
5320 #define _PID1IN9 0x02
5321 #define _IN9 0x02
5322 #define _PID1IN10 0x04
5323 #define _IN10 0x04
5324 #define _PID1IN11 0x08
5325 #define _IN11 0x08
5326 #define _PID1IN12 0x10
5327 #define _IN12 0x10
5328 #define _PID1IN13 0x20
5329 #define _IN13 0x20
5330 #define _PID1IN14 0x40
5331 #define _IN14 0x40
5332 #define _PID1IN15 0x80
5333 #define _IN15 0x80
5335 //==============================================================================
5337 extern __at(0x0590) __sfr PID1K1;
5339 //==============================================================================
5340 // PID1K1L Bits
5342 extern __at(0x0590) __sfr PID1K1L;
5344 typedef union
5346 struct
5348 unsigned PID1K10 : 1;
5349 unsigned PID1K11 : 1;
5350 unsigned PID1K12 : 1;
5351 unsigned PID1K13 : 1;
5352 unsigned PID1K14 : 1;
5353 unsigned PID1K15 : 1;
5354 unsigned PID1K16 : 1;
5355 unsigned PID1K17 : 1;
5358 struct
5360 unsigned K10 : 1;
5361 unsigned K11 : 1;
5362 unsigned K12 : 1;
5363 unsigned K13 : 1;
5364 unsigned K14 : 1;
5365 unsigned K15 : 1;
5366 unsigned K16 : 1;
5367 unsigned K17 : 1;
5369 } __PID1K1Lbits_t;
5371 extern __at(0x0590) volatile __PID1K1Lbits_t PID1K1Lbits;
5373 #define _PID1K10 0x01
5374 #define _K10 0x01
5375 #define _PID1K11 0x02
5376 #define _K11 0x02
5377 #define _PID1K12 0x04
5378 #define _K12 0x04
5379 #define _PID1K13 0x08
5380 #define _K13 0x08
5381 #define _PID1K14 0x10
5382 #define _K14 0x10
5383 #define _PID1K15 0x20
5384 #define _K15 0x20
5385 #define _PID1K16 0x40
5386 #define _K16 0x40
5387 #define _PID1K17 0x80
5388 #define _K17 0x80
5390 //==============================================================================
5393 //==============================================================================
5394 // PID1K1H Bits
5396 extern __at(0x0591) __sfr PID1K1H;
5398 typedef union
5400 struct
5402 unsigned PID1K18 : 1;
5403 unsigned PID1K19 : 1;
5404 unsigned PID1K110 : 1;
5405 unsigned PID1K111 : 1;
5406 unsigned PID1K112 : 1;
5407 unsigned PID1K113 : 1;
5408 unsigned PID1K114 : 1;
5409 unsigned PID1K115 : 1;
5412 struct
5414 unsigned K18 : 1;
5415 unsigned K19 : 1;
5416 unsigned K110 : 1;
5417 unsigned K111 : 1;
5418 unsigned K112 : 1;
5419 unsigned K113 : 1;
5420 unsigned K114 : 1;
5421 unsigned K115 : 1;
5423 } __PID1K1Hbits_t;
5425 extern __at(0x0591) volatile __PID1K1Hbits_t PID1K1Hbits;
5427 #define _PID1K18 0x01
5428 #define _K18 0x01
5429 #define _PID1K19 0x02
5430 #define _K19 0x02
5431 #define _PID1K110 0x04
5432 #define _K110 0x04
5433 #define _PID1K111 0x08
5434 #define _K111 0x08
5435 #define _PID1K112 0x10
5436 #define _K112 0x10
5437 #define _PID1K113 0x20
5438 #define _K113 0x20
5439 #define _PID1K114 0x40
5440 #define _K114 0x40
5441 #define _PID1K115 0x80
5442 #define _K115 0x80
5444 //==============================================================================
5446 extern __at(0x0592) __sfr PID1K2;
5448 //==============================================================================
5449 // PID1K2L Bits
5451 extern __at(0x0592) __sfr PID1K2L;
5453 typedef union
5455 struct
5457 unsigned PID1K20 : 1;
5458 unsigned PID1K21 : 1;
5459 unsigned PID1K22 : 1;
5460 unsigned PID1K23 : 1;
5461 unsigned PID1K24 : 1;
5462 unsigned PID1K25 : 1;
5463 unsigned PID1K26 : 1;
5464 unsigned PID1K27 : 1;
5467 struct
5469 unsigned K20 : 1;
5470 unsigned K21 : 1;
5471 unsigned K22 : 1;
5472 unsigned K23 : 1;
5473 unsigned K24 : 1;
5474 unsigned K25 : 1;
5475 unsigned K26 : 1;
5476 unsigned K27 : 1;
5478 } __PID1K2Lbits_t;
5480 extern __at(0x0592) volatile __PID1K2Lbits_t PID1K2Lbits;
5482 #define _PID1K20 0x01
5483 #define _K20 0x01
5484 #define _PID1K21 0x02
5485 #define _K21 0x02
5486 #define _PID1K22 0x04
5487 #define _K22 0x04
5488 #define _PID1K23 0x08
5489 #define _K23 0x08
5490 #define _PID1K24 0x10
5491 #define _K24 0x10
5492 #define _PID1K25 0x20
5493 #define _K25 0x20
5494 #define _PID1K26 0x40
5495 #define _K26 0x40
5496 #define _PID1K27 0x80
5497 #define _K27 0x80
5499 //==============================================================================
5502 //==============================================================================
5503 // PID1K2H Bits
5505 extern __at(0x0593) __sfr PID1K2H;
5507 typedef union
5509 struct
5511 unsigned PID1K28 : 1;
5512 unsigned PID1K29 : 1;
5513 unsigned PID1K210 : 1;
5514 unsigned PID1K211 : 1;
5515 unsigned PID1K212 : 1;
5516 unsigned PID1K213 : 1;
5517 unsigned PID1K214 : 1;
5518 unsigned PID1K215 : 1;
5521 struct
5523 unsigned K28 : 1;
5524 unsigned K29 : 1;
5525 unsigned K210 : 1;
5526 unsigned K211 : 1;
5527 unsigned K212 : 1;
5528 unsigned K213 : 1;
5529 unsigned K214 : 1;
5530 unsigned K215 : 1;
5532 } __PID1K2Hbits_t;
5534 extern __at(0x0593) volatile __PID1K2Hbits_t PID1K2Hbits;
5536 #define _PID1K28 0x01
5537 #define _K28 0x01
5538 #define _PID1K29 0x02
5539 #define _K29 0x02
5540 #define _PID1K210 0x04
5541 #define _K210 0x04
5542 #define _PID1K211 0x08
5543 #define _K211 0x08
5544 #define _PID1K212 0x10
5545 #define _K212 0x10
5546 #define _PID1K213 0x20
5547 #define _K213 0x20
5548 #define _PID1K214 0x40
5549 #define _K214 0x40
5550 #define _PID1K215 0x80
5551 #define _K215 0x80
5553 //==============================================================================
5555 extern __at(0x0594) __sfr PID1K3;
5557 //==============================================================================
5558 // PID1K3L Bits
5560 extern __at(0x0594) __sfr PID1K3L;
5562 typedef union
5564 struct
5566 unsigned PID1K30 : 1;
5567 unsigned PID1K31 : 1;
5568 unsigned PID1K32 : 1;
5569 unsigned PID1K33 : 1;
5570 unsigned PID1K34 : 1;
5571 unsigned PID1K35 : 1;
5572 unsigned PID1K36 : 1;
5573 unsigned PID1K37 : 1;
5576 struct
5578 unsigned K30 : 1;
5579 unsigned K31 : 1;
5580 unsigned K32 : 1;
5581 unsigned K33 : 1;
5582 unsigned K34 : 1;
5583 unsigned K35 : 1;
5584 unsigned K36 : 1;
5585 unsigned K37 : 1;
5587 } __PID1K3Lbits_t;
5589 extern __at(0x0594) volatile __PID1K3Lbits_t PID1K3Lbits;
5591 #define _PID1K30 0x01
5592 #define _K30 0x01
5593 #define _PID1K31 0x02
5594 #define _K31 0x02
5595 #define _PID1K32 0x04
5596 #define _K32 0x04
5597 #define _PID1K33 0x08
5598 #define _K33 0x08
5599 #define _PID1K34 0x10
5600 #define _K34 0x10
5601 #define _PID1K35 0x20
5602 #define _K35 0x20
5603 #define _PID1K36 0x40
5604 #define _K36 0x40
5605 #define _PID1K37 0x80
5606 #define _K37 0x80
5608 //==============================================================================
5611 //==============================================================================
5612 // PID1K3H Bits
5614 extern __at(0x0595) __sfr PID1K3H;
5616 typedef union
5618 struct
5620 unsigned PID1K38 : 1;
5621 unsigned PID1K39 : 1;
5622 unsigned PID1K310 : 1;
5623 unsigned PID1K311 : 1;
5624 unsigned PID1K312 : 1;
5625 unsigned PID1K313 : 1;
5626 unsigned PID1K314 : 1;
5627 unsigned PID1K315 : 1;
5630 struct
5632 unsigned K38 : 1;
5633 unsigned K39 : 1;
5634 unsigned K310 : 1;
5635 unsigned K311 : 1;
5636 unsigned K312 : 1;
5637 unsigned K313 : 1;
5638 unsigned K314 : 1;
5639 unsigned K315 : 1;
5641 } __PID1K3Hbits_t;
5643 extern __at(0x0595) volatile __PID1K3Hbits_t PID1K3Hbits;
5645 #define _PID1K38 0x01
5646 #define _K38 0x01
5647 #define _PID1K39 0x02
5648 #define _K39 0x02
5649 #define _PID1K310 0x04
5650 #define _K310 0x04
5651 #define _PID1K311 0x08
5652 #define _K311 0x08
5653 #define _PID1K312 0x10
5654 #define _K312 0x10
5655 #define _PID1K313 0x20
5656 #define _K313 0x20
5657 #define _PID1K314 0x40
5658 #define _K314 0x40
5659 #define _PID1K315 0x80
5660 #define _K315 0x80
5662 //==============================================================================
5664 extern __at(0x0596) __sfr PID1OUT;
5666 //==============================================================================
5667 // PID1OUTLL Bits
5669 extern __at(0x0596) __sfr PID1OUTLL;
5671 typedef union
5673 struct
5675 unsigned PID1OUT0 : 1;
5676 unsigned PID1OUT1 : 1;
5677 unsigned PID1OUT2 : 1;
5678 unsigned PID1OUT3 : 1;
5679 unsigned PID1OUT4 : 1;
5680 unsigned PID1OUT5 : 1;
5681 unsigned PID1OUT6 : 1;
5682 unsigned PID1OUT7 : 1;
5685 struct
5687 unsigned OUT0 : 1;
5688 unsigned OUT1 : 1;
5689 unsigned OUT2 : 1;
5690 unsigned OUT3 : 1;
5691 unsigned OUT4 : 1;
5692 unsigned OUT5 : 1;
5693 unsigned OUT6 : 1;
5694 unsigned OUT7 : 1;
5696 } __PID1OUTLLbits_t;
5698 extern __at(0x0596) volatile __PID1OUTLLbits_t PID1OUTLLbits;
5700 #define _PID1OUT0 0x01
5701 #define _OUT0 0x01
5702 #define _PID1OUT1 0x02
5703 #define _OUT1 0x02
5704 #define _PID1OUT2 0x04
5705 #define _OUT2 0x04
5706 #define _PID1OUT3 0x08
5707 #define _OUT3 0x08
5708 #define _PID1OUT4 0x10
5709 #define _OUT4 0x10
5710 #define _PID1OUT5 0x20
5711 #define _OUT5 0x20
5712 #define _PID1OUT6 0x40
5713 #define _OUT6 0x40
5714 #define _PID1OUT7 0x80
5715 #define _OUT7 0x80
5717 //==============================================================================
5720 //==============================================================================
5721 // PID1OUTLH Bits
5723 extern __at(0x0597) __sfr PID1OUTLH;
5725 typedef union
5727 struct
5729 unsigned PID1OUT8 : 1;
5730 unsigned PID1OUT9 : 1;
5731 unsigned PID1OUT10 : 1;
5732 unsigned PID1OUT11 : 1;
5733 unsigned PID1OUT12 : 1;
5734 unsigned PID1OUT13 : 1;
5735 unsigned PID1OUT14 : 1;
5736 unsigned PID1OUT15 : 1;
5739 struct
5741 unsigned OUT8 : 1;
5742 unsigned OUT9 : 1;
5743 unsigned OUT10 : 1;
5744 unsigned OUT11 : 1;
5745 unsigned OUT12 : 1;
5746 unsigned OUT13 : 1;
5747 unsigned OUT14 : 1;
5748 unsigned OUT15 : 1;
5750 } __PID1OUTLHbits_t;
5752 extern __at(0x0597) volatile __PID1OUTLHbits_t PID1OUTLHbits;
5754 #define _PID1OUT8 0x01
5755 #define _OUT8 0x01
5756 #define _PID1OUT9 0x02
5757 #define _OUT9 0x02
5758 #define _PID1OUT10 0x04
5759 #define _OUT10 0x04
5760 #define _PID1OUT11 0x08
5761 #define _OUT11 0x08
5762 #define _PID1OUT12 0x10
5763 #define _OUT12 0x10
5764 #define _PID1OUT13 0x20
5765 #define _OUT13 0x20
5766 #define _PID1OUT14 0x40
5767 #define _OUT14 0x40
5768 #define _PID1OUT15 0x80
5769 #define _OUT15 0x80
5771 //==============================================================================
5774 //==============================================================================
5775 // PID1OUTHL Bits
5777 extern __at(0x0598) __sfr PID1OUTHL;
5779 typedef union
5781 struct
5783 unsigned PID1OUT16 : 1;
5784 unsigned PID1OUT17 : 1;
5785 unsigned PID1OUT18 : 1;
5786 unsigned PID1OUT19 : 1;
5787 unsigned PID1OUT20 : 1;
5788 unsigned PID1OUT21 : 1;
5789 unsigned PID1OUT22 : 1;
5790 unsigned PID1OUT23 : 1;
5793 struct
5795 unsigned OUT16 : 1;
5796 unsigned OUT17 : 1;
5797 unsigned OUT18 : 1;
5798 unsigned OUT19 : 1;
5799 unsigned OUT20 : 1;
5800 unsigned OUT21 : 1;
5801 unsigned OUT22 : 1;
5802 unsigned OUT23 : 1;
5804 } __PID1OUTHLbits_t;
5806 extern __at(0x0598) volatile __PID1OUTHLbits_t PID1OUTHLbits;
5808 #define _PID1OUT16 0x01
5809 #define _OUT16 0x01
5810 #define _PID1OUT17 0x02
5811 #define _OUT17 0x02
5812 #define _PID1OUT18 0x04
5813 #define _OUT18 0x04
5814 #define _PID1OUT19 0x08
5815 #define _OUT19 0x08
5816 #define _PID1OUT20 0x10
5817 #define _OUT20 0x10
5818 #define _PID1OUT21 0x20
5819 #define _OUT21 0x20
5820 #define _PID1OUT22 0x40
5821 #define _OUT22 0x40
5822 #define _PID1OUT23 0x80
5823 #define _OUT23 0x80
5825 //==============================================================================
5828 //==============================================================================
5829 // PID1OUTHH Bits
5831 extern __at(0x0599) __sfr PID1OUTHH;
5833 typedef union
5835 struct
5837 unsigned PID1OUT24 : 1;
5838 unsigned PID1OUT25 : 1;
5839 unsigned PID1OUT26 : 1;
5840 unsigned PID1OUT27 : 1;
5841 unsigned PID1OUT28 : 1;
5842 unsigned PID1OUT29 : 1;
5843 unsigned PID1OUT30 : 1;
5844 unsigned PID1OUT31 : 1;
5847 struct
5849 unsigned OUT24 : 1;
5850 unsigned OUT25 : 1;
5851 unsigned OUT26 : 1;
5852 unsigned OUT27 : 1;
5853 unsigned OUT28 : 1;
5854 unsigned OUT29 : 1;
5855 unsigned OUT30 : 1;
5856 unsigned OUT31 : 1;
5858 } __PID1OUTHHbits_t;
5860 extern __at(0x0599) volatile __PID1OUTHHbits_t PID1OUTHHbits;
5862 #define _PID1OUT24 0x01
5863 #define _OUT24 0x01
5864 #define _PID1OUT25 0x02
5865 #define _OUT25 0x02
5866 #define _PID1OUT26 0x04
5867 #define _OUT26 0x04
5868 #define _PID1OUT27 0x08
5869 #define _OUT27 0x08
5870 #define _PID1OUT28 0x10
5871 #define _OUT28 0x10
5872 #define _PID1OUT29 0x20
5873 #define _OUT29 0x20
5874 #define _PID1OUT30 0x40
5875 #define _OUT30 0x40
5876 #define _PID1OUT31 0x80
5877 #define _OUT31 0x80
5879 //==============================================================================
5882 //==============================================================================
5883 // PID1OUTU Bits
5885 extern __at(0x059A) __sfr PID1OUTU;
5887 typedef union
5889 struct
5891 unsigned PID1OUT32 : 1;
5892 unsigned PID1OUT33 : 1;
5893 unsigned PID1OUT34 : 1;
5894 unsigned PID1OUT35 : 1;
5895 unsigned : 1;
5896 unsigned : 1;
5897 unsigned : 1;
5898 unsigned : 1;
5901 struct
5903 unsigned OUT32 : 1;
5904 unsigned OUT33 : 1;
5905 unsigned OUT34 : 1;
5906 unsigned OUT35 : 1;
5907 unsigned : 1;
5908 unsigned : 1;
5909 unsigned : 1;
5910 unsigned : 1;
5912 } __PID1OUTUbits_t;
5914 extern __at(0x059A) volatile __PID1OUTUbits_t PID1OUTUbits;
5916 #define _PID1OUT32 0x01
5917 #define _OUT32 0x01
5918 #define _PID1OUT33 0x02
5919 #define _OUT33 0x02
5920 #define _PID1OUT34 0x04
5921 #define _OUT34 0x04
5922 #define _PID1OUT35 0x08
5923 #define _OUT35 0x08
5925 //==============================================================================
5927 extern __at(0x059B) __sfr PID1Z1;
5929 //==============================================================================
5930 // PID1Z1L Bits
5932 extern __at(0x059B) __sfr PID1Z1L;
5934 typedef union
5936 struct
5938 unsigned PID1Z10 : 1;
5939 unsigned PID1Z11 : 1;
5940 unsigned PID1Z12 : 1;
5941 unsigned PID1Z13 : 1;
5942 unsigned PID1Z14 : 1;
5943 unsigned PID1Z15 : 1;
5944 unsigned PID1Z16 : 1;
5945 unsigned PID1Z17 : 1;
5948 struct
5950 unsigned Z10 : 1;
5951 unsigned Z11 : 1;
5952 unsigned Z12 : 1;
5953 unsigned Z13 : 1;
5954 unsigned Z14 : 1;
5955 unsigned Z15 : 1;
5956 unsigned Z16 : 1;
5957 unsigned Z17 : 1;
5959 } __PID1Z1Lbits_t;
5961 extern __at(0x059B) volatile __PID1Z1Lbits_t PID1Z1Lbits;
5963 #define _PID1Z10 0x01
5964 #define _Z10 0x01
5965 #define _PID1Z11 0x02
5966 #define _Z11 0x02
5967 #define _PID1Z12 0x04
5968 #define _Z12 0x04
5969 #define _PID1Z13 0x08
5970 #define _Z13 0x08
5971 #define _PID1Z14 0x10
5972 #define _Z14 0x10
5973 #define _PID1Z15 0x20
5974 #define _Z15 0x20
5975 #define _PID1Z16 0x40
5976 #define _Z16 0x40
5977 #define _PID1Z17 0x80
5978 #define _Z17 0x80
5980 //==============================================================================
5983 //==============================================================================
5984 // PID1Z1H Bits
5986 extern __at(0x059C) __sfr PID1Z1H;
5988 typedef union
5990 struct
5992 unsigned PID1Z18 : 1;
5993 unsigned PID1Z19 : 1;
5994 unsigned PID1Z110 : 1;
5995 unsigned PID1Z111 : 1;
5996 unsigned PID1Z112 : 1;
5997 unsigned PID1Z113 : 1;
5998 unsigned PID1Z114 : 1;
5999 unsigned PID1Z115 : 1;
6002 struct
6004 unsigned Z18 : 1;
6005 unsigned Z19 : 1;
6006 unsigned Z110 : 1;
6007 unsigned Z111 : 1;
6008 unsigned Z112 : 1;
6009 unsigned Z113 : 1;
6010 unsigned Z114 : 1;
6011 unsigned Z115 : 1;
6013 } __PID1Z1Hbits_t;
6015 extern __at(0x059C) volatile __PID1Z1Hbits_t PID1Z1Hbits;
6017 #define _PID1Z18 0x01
6018 #define _Z18 0x01
6019 #define _PID1Z19 0x02
6020 #define _Z19 0x02
6021 #define _PID1Z110 0x04
6022 #define _Z110 0x04
6023 #define _PID1Z111 0x08
6024 #define _Z111 0x08
6025 #define _PID1Z112 0x10
6026 #define _Z112 0x10
6027 #define _PID1Z113 0x20
6028 #define _Z113 0x20
6029 #define _PID1Z114 0x40
6030 #define _Z114 0x40
6031 #define _PID1Z115 0x80
6032 #define _Z115 0x80
6034 //==============================================================================
6037 //==============================================================================
6038 // PID1Z1U Bits
6040 extern __at(0x059D) __sfr PID1Z1U;
6042 typedef union
6044 struct
6046 unsigned PID1Z116 : 1;
6047 unsigned : 1;
6048 unsigned : 1;
6049 unsigned : 1;
6050 unsigned : 1;
6051 unsigned : 1;
6052 unsigned : 1;
6053 unsigned : 1;
6056 struct
6058 unsigned Z116 : 1;
6059 unsigned : 1;
6060 unsigned : 1;
6061 unsigned : 1;
6062 unsigned : 1;
6063 unsigned : 1;
6064 unsigned : 1;
6065 unsigned : 1;
6067 } __PID1Z1Ubits_t;
6069 extern __at(0x059D) volatile __PID1Z1Ubits_t PID1Z1Ubits;
6071 #define _PID1Z116 0x01
6072 #define _Z116 0x01
6074 //==============================================================================
6076 extern __at(0x060C) __sfr PID1Z2;
6078 //==============================================================================
6079 // PID1Z2L Bits
6081 extern __at(0x060C) __sfr PID1Z2L;
6083 typedef union
6085 struct
6087 unsigned PID1Z20 : 1;
6088 unsigned PID1Z21 : 1;
6089 unsigned PID1Z22 : 1;
6090 unsigned PID1Z23 : 1;
6091 unsigned PID1Z24 : 1;
6092 unsigned PID1Z25 : 1;
6093 unsigned PID1Z26 : 1;
6094 unsigned PID1Z27 : 1;
6097 struct
6099 unsigned Z20 : 1;
6100 unsigned Z21 : 1;
6101 unsigned Z22 : 1;
6102 unsigned Z23 : 1;
6103 unsigned Z24 : 1;
6104 unsigned Z25 : 1;
6105 unsigned Z26 : 1;
6106 unsigned Z27 : 1;
6108 } __PID1Z2Lbits_t;
6110 extern __at(0x060C) volatile __PID1Z2Lbits_t PID1Z2Lbits;
6112 #define _PID1Z20 0x01
6113 #define _Z20 0x01
6114 #define _PID1Z21 0x02
6115 #define _Z21 0x02
6116 #define _PID1Z22 0x04
6117 #define _Z22 0x04
6118 #define _PID1Z23 0x08
6119 #define _Z23 0x08
6120 #define _PID1Z24 0x10
6121 #define _Z24 0x10
6122 #define _PID1Z25 0x20
6123 #define _Z25 0x20
6124 #define _PID1Z26 0x40
6125 #define _Z26 0x40
6126 #define _PID1Z27 0x80
6127 #define _Z27 0x80
6129 //==============================================================================
6132 //==============================================================================
6133 // PID1Z2H Bits
6135 extern __at(0x060D) __sfr PID1Z2H;
6137 typedef union
6139 struct
6141 unsigned PID1Z28 : 1;
6142 unsigned PID1Z29 : 1;
6143 unsigned PID1Z210 : 1;
6144 unsigned PID1Z211 : 1;
6145 unsigned PID1Z212 : 1;
6146 unsigned PID1Z213 : 1;
6147 unsigned PID1Z214 : 1;
6148 unsigned PID1Z215 : 1;
6151 struct
6153 unsigned Z28 : 1;
6154 unsigned Z29 : 1;
6155 unsigned Z210 : 1;
6156 unsigned Z211 : 1;
6157 unsigned Z212 : 1;
6158 unsigned Z213 : 1;
6159 unsigned Z214 : 1;
6160 unsigned Z215 : 1;
6162 } __PID1Z2Hbits_t;
6164 extern __at(0x060D) volatile __PID1Z2Hbits_t PID1Z2Hbits;
6166 #define _PID1Z28 0x01
6167 #define _Z28 0x01
6168 #define _PID1Z29 0x02
6169 #define _Z29 0x02
6170 #define _PID1Z210 0x04
6171 #define _Z210 0x04
6172 #define _PID1Z211 0x08
6173 #define _Z211 0x08
6174 #define _PID1Z212 0x10
6175 #define _Z212 0x10
6176 #define _PID1Z213 0x20
6177 #define _Z213 0x20
6178 #define _PID1Z214 0x40
6179 #define _Z214 0x40
6180 #define _PID1Z215 0x80
6181 #define _Z215 0x80
6183 //==============================================================================
6186 //==============================================================================
6187 // PID1Z2U Bits
6189 extern __at(0x060E) __sfr PID1Z2U;
6191 typedef union
6193 struct
6195 unsigned PID1Z216 : 1;
6196 unsigned : 1;
6197 unsigned : 1;
6198 unsigned : 1;
6199 unsigned : 1;
6200 unsigned : 1;
6201 unsigned : 1;
6202 unsigned : 1;
6205 struct
6207 unsigned Z216 : 1;
6208 unsigned : 1;
6209 unsigned : 1;
6210 unsigned : 1;
6211 unsigned : 1;
6212 unsigned : 1;
6213 unsigned : 1;
6214 unsigned : 1;
6216 } __PID1Z2Ubits_t;
6218 extern __at(0x060E) volatile __PID1Z2Ubits_t PID1Z2Ubits;
6220 #define _PID1Z216 0x01
6221 #define _Z216 0x01
6223 //==============================================================================
6225 extern __at(0x060F) __sfr PID1ACC;
6227 //==============================================================================
6228 // PID1ACCLL Bits
6230 extern __at(0x060F) __sfr PID1ACCLL;
6232 typedef union
6234 struct
6236 unsigned PID1ACC0 : 1;
6237 unsigned PID1ACC1 : 1;
6238 unsigned PID1ACC2 : 1;
6239 unsigned PID1ACC3 : 1;
6240 unsigned PID1ACC4 : 1;
6241 unsigned PID1ACC5 : 1;
6242 unsigned PID1ACC6 : 1;
6243 unsigned PID1ACC7 : 1;
6246 struct
6248 unsigned ACC0 : 1;
6249 unsigned ACC1 : 1;
6250 unsigned ACC2 : 1;
6251 unsigned ACC3 : 1;
6252 unsigned ACC4 : 1;
6253 unsigned ACC5 : 1;
6254 unsigned ACC6 : 1;
6255 unsigned ACC7 : 1;
6257 } __PID1ACCLLbits_t;
6259 extern __at(0x060F) volatile __PID1ACCLLbits_t PID1ACCLLbits;
6261 #define _PID1ACCLL_PID1ACC0 0x01
6262 #define _PID1ACCLL_ACC0 0x01
6263 #define _PID1ACCLL_PID1ACC1 0x02
6264 #define _PID1ACCLL_ACC1 0x02
6265 #define _PID1ACCLL_PID1ACC2 0x04
6266 #define _PID1ACCLL_ACC2 0x04
6267 #define _PID1ACCLL_PID1ACC3 0x08
6268 #define _PID1ACCLL_ACC3 0x08
6269 #define _PID1ACCLL_PID1ACC4 0x10
6270 #define _PID1ACCLL_ACC4 0x10
6271 #define _PID1ACCLL_PID1ACC5 0x20
6272 #define _PID1ACCLL_ACC5 0x20
6273 #define _PID1ACCLL_PID1ACC6 0x40
6274 #define _PID1ACCLL_ACC6 0x40
6275 #define _PID1ACCLL_PID1ACC7 0x80
6276 #define _PID1ACCLL_ACC7 0x80
6278 //==============================================================================
6281 //==============================================================================
6282 // PID1ACCLH Bits
6284 extern __at(0x0610) __sfr PID1ACCLH;
6286 typedef union
6288 struct
6290 unsigned PID1ACC8 : 1;
6291 unsigned PID1ACC9 : 1;
6292 unsigned PID1ACC10 : 1;
6293 unsigned PID1ACC11 : 1;
6294 unsigned PID1ACC12 : 1;
6295 unsigned PID1ACC13 : 1;
6296 unsigned PID1ACC14 : 1;
6297 unsigned PID1ACC15 : 1;
6300 struct
6302 unsigned ACC8 : 1;
6303 unsigned ACC9 : 1;
6304 unsigned ACC10 : 1;
6305 unsigned ACC11 : 1;
6306 unsigned ACC12 : 1;
6307 unsigned ACC13 : 1;
6308 unsigned ACC14 : 1;
6309 unsigned ACC15 : 1;
6311 } __PID1ACCLHbits_t;
6313 extern __at(0x0610) volatile __PID1ACCLHbits_t PID1ACCLHbits;
6315 #define _PID1ACCLH_PID1ACC8 0x01
6316 #define _PID1ACCLH_ACC8 0x01
6317 #define _PID1ACCLH_PID1ACC9 0x02
6318 #define _PID1ACCLH_ACC9 0x02
6319 #define _PID1ACCLH_PID1ACC10 0x04
6320 #define _PID1ACCLH_ACC10 0x04
6321 #define _PID1ACCLH_PID1ACC11 0x08
6322 #define _PID1ACCLH_ACC11 0x08
6323 #define _PID1ACCLH_PID1ACC12 0x10
6324 #define _PID1ACCLH_ACC12 0x10
6325 #define _PID1ACCLH_PID1ACC13 0x20
6326 #define _PID1ACCLH_ACC13 0x20
6327 #define _PID1ACCLH_PID1ACC14 0x40
6328 #define _PID1ACCLH_ACC14 0x40
6329 #define _PID1ACCLH_PID1ACC15 0x80
6330 #define _PID1ACCLH_ACC15 0x80
6332 //==============================================================================
6335 //==============================================================================
6336 // PID1ACCHL Bits
6338 extern __at(0x0611) __sfr PID1ACCHL;
6340 typedef union
6342 struct
6344 unsigned PID1ACC16 : 1;
6345 unsigned PID1ACC17 : 1;
6346 unsigned PID1ACC18 : 1;
6347 unsigned PID1ACC19 : 1;
6348 unsigned PID1ACC20 : 1;
6349 unsigned PID1ACC21 : 1;
6350 unsigned PID1ACC22 : 1;
6351 unsigned PID1ACC23 : 1;
6354 struct
6356 unsigned ACC16 : 1;
6357 unsigned ACC17 : 1;
6358 unsigned ACC18 : 1;
6359 unsigned ACC19 : 1;
6360 unsigned ACC20 : 1;
6361 unsigned ACC21 : 1;
6362 unsigned ACC22 : 1;
6363 unsigned ACC23 : 1;
6365 } __PID1ACCHLbits_t;
6367 extern __at(0x0611) volatile __PID1ACCHLbits_t PID1ACCHLbits;
6369 #define _PID1ACC16 0x01
6370 #define _ACC16 0x01
6371 #define _PID1ACC17 0x02
6372 #define _ACC17 0x02
6373 #define _PID1ACC18 0x04
6374 #define _ACC18 0x04
6375 #define _PID1ACC19 0x08
6376 #define _ACC19 0x08
6377 #define _PID1ACC20 0x10
6378 #define _ACC20 0x10
6379 #define _PID1ACC21 0x20
6380 #define _ACC21 0x20
6381 #define _PID1ACC22 0x40
6382 #define _ACC22 0x40
6383 #define _PID1ACC23 0x80
6384 #define _ACC23 0x80
6386 //==============================================================================
6389 //==============================================================================
6390 // PID1ACCHH Bits
6392 extern __at(0x0612) __sfr PID1ACCHH;
6394 typedef union
6396 struct
6398 unsigned PID1ACC24 : 1;
6399 unsigned PID1ACC25 : 1;
6400 unsigned PID1ACC26 : 1;
6401 unsigned PID1ACC27 : 1;
6402 unsigned PID1ACC28 : 1;
6403 unsigned PID1ACC29 : 1;
6404 unsigned PID1ACC30 : 1;
6405 unsigned PID1ACC31 : 1;
6408 struct
6410 unsigned ACC24 : 1;
6411 unsigned ACC25 : 1;
6412 unsigned ACC26 : 1;
6413 unsigned ACC27 : 1;
6414 unsigned ACC28 : 1;
6415 unsigned ACC29 : 1;
6416 unsigned ACC30 : 1;
6417 unsigned ACC31 : 1;
6419 } __PID1ACCHHbits_t;
6421 extern __at(0x0612) volatile __PID1ACCHHbits_t PID1ACCHHbits;
6423 #define _PID1ACC24 0x01
6424 #define _ACC24 0x01
6425 #define _PID1ACC25 0x02
6426 #define _ACC25 0x02
6427 #define _PID1ACC26 0x04
6428 #define _ACC26 0x04
6429 #define _PID1ACC27 0x08
6430 #define _ACC27 0x08
6431 #define _PID1ACC28 0x10
6432 #define _ACC28 0x10
6433 #define _PID1ACC29 0x20
6434 #define _ACC29 0x20
6435 #define _PID1ACC30 0x40
6436 #define _ACC30 0x40
6437 #define _PID1ACC31 0x80
6438 #define _ACC31 0x80
6440 //==============================================================================
6443 //==============================================================================
6444 // PID1ACCU Bits
6446 extern __at(0x0613) __sfr PID1ACCU;
6448 typedef union
6450 struct
6452 unsigned PID1ACC32 : 1;
6453 unsigned PID1ACC33 : 1;
6454 unsigned PID1ACC34 : 1;
6455 unsigned : 1;
6456 unsigned : 1;
6457 unsigned : 1;
6458 unsigned : 1;
6459 unsigned : 1;
6462 struct
6464 unsigned ACC32 : 1;
6465 unsigned ACC33 : 1;
6466 unsigned ACC34 : 1;
6467 unsigned : 1;
6468 unsigned : 1;
6469 unsigned : 1;
6470 unsigned : 1;
6471 unsigned : 1;
6473 } __PID1ACCUbits_t;
6475 extern __at(0x0613) volatile __PID1ACCUbits_t PID1ACCUbits;
6477 #define _PID1ACC32 0x01
6478 #define _ACC32 0x01
6479 #define _PID1ACC33 0x02
6480 #define _ACC33 0x02
6481 #define _PID1ACC34 0x04
6482 #define _ACC34 0x04
6484 //==============================================================================
6487 //==============================================================================
6488 // PID1CON Bits
6490 extern __at(0x0614) __sfr PID1CON;
6492 typedef union
6494 struct
6496 unsigned MODE0 : 1;
6497 unsigned MODE1 : 1;
6498 unsigned MODE2 : 1;
6499 unsigned : 1;
6500 unsigned : 1;
6501 unsigned : 1;
6502 unsigned PID1BUSY : 1;
6503 unsigned PID1EN : 1;
6506 struct
6508 unsigned PID1MODE0 : 1;
6509 unsigned PID1MODE1 : 1;
6510 unsigned PID1MODE2 : 1;
6511 unsigned : 1;
6512 unsigned : 1;
6513 unsigned : 1;
6514 unsigned BUSY : 1;
6515 unsigned EN : 1;
6518 struct
6520 unsigned MODE : 3;
6521 unsigned : 5;
6524 struct
6526 unsigned PID1MODE : 3;
6527 unsigned : 5;
6529 } __PID1CONbits_t;
6531 extern __at(0x0614) volatile __PID1CONbits_t PID1CONbits;
6533 #define _PID1CON_MODE0 0x01
6534 #define _PID1CON_PID1MODE0 0x01
6535 #define _PID1CON_MODE1 0x02
6536 #define _PID1CON_PID1MODE1 0x02
6537 #define _PID1CON_MODE2 0x04
6538 #define _PID1CON_PID1MODE2 0x04
6539 #define _PID1CON_PID1BUSY 0x40
6540 #define _PID1CON_BUSY 0x40
6541 #define _PID1CON_PID1EN 0x80
6542 #define _PID1CON_EN 0x80
6544 //==============================================================================
6547 //==============================================================================
6548 // PWM3DCL Bits
6550 extern __at(0x0617) __sfr PWM3DCL;
6552 typedef union
6554 struct
6556 unsigned : 1;
6557 unsigned : 1;
6558 unsigned : 1;
6559 unsigned : 1;
6560 unsigned : 1;
6561 unsigned : 1;
6562 unsigned DC0 : 1;
6563 unsigned DC1 : 1;
6566 struct
6568 unsigned : 1;
6569 unsigned : 1;
6570 unsigned : 1;
6571 unsigned : 1;
6572 unsigned : 1;
6573 unsigned : 1;
6574 unsigned PWM3DC0 : 1;
6575 unsigned PWM3DC1 : 1;
6578 struct
6580 unsigned : 1;
6581 unsigned : 1;
6582 unsigned : 1;
6583 unsigned : 1;
6584 unsigned : 1;
6585 unsigned : 1;
6586 unsigned PWMPW0 : 1;
6587 unsigned PWMPW1 : 1;
6590 struct
6592 unsigned : 6;
6593 unsigned PWMPW : 2;
6596 struct
6598 unsigned : 6;
6599 unsigned DC : 2;
6602 struct
6604 unsigned : 6;
6605 unsigned PWM3DC : 2;
6607 } __PWM3DCLbits_t;
6609 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits;
6611 #define _DC0 0x40
6612 #define _PWM3DC0 0x40
6613 #define _PWMPW0 0x40
6614 #define _DC1 0x80
6615 #define _PWM3DC1 0x80
6616 #define _PWMPW1 0x80
6618 //==============================================================================
6621 //==============================================================================
6622 // PWM3DCH Bits
6624 extern __at(0x0618) __sfr PWM3DCH;
6626 typedef union
6628 struct
6630 unsigned DC2 : 1;
6631 unsigned DC3 : 1;
6632 unsigned DC4 : 1;
6633 unsigned DC5 : 1;
6634 unsigned DC6 : 1;
6635 unsigned DC7 : 1;
6636 unsigned DC8 : 1;
6637 unsigned DC9 : 1;
6640 struct
6642 unsigned PWM3DC2 : 1;
6643 unsigned PWM3DC3 : 1;
6644 unsigned PWM3DC4 : 1;
6645 unsigned PWM3DC5 : 1;
6646 unsigned PWM3DC6 : 1;
6647 unsigned PWM3DC7 : 1;
6648 unsigned PWM3DC8 : 1;
6649 unsigned PWM3DC9 : 1;
6652 struct
6654 unsigned PWMPW2 : 1;
6655 unsigned PWMPW3 : 1;
6656 unsigned PWMPW4 : 1;
6657 unsigned PWMPW5 : 1;
6658 unsigned PWMPW6 : 1;
6659 unsigned PWMPW7 : 1;
6660 unsigned PWMPW8 : 1;
6661 unsigned PWMPW9 : 1;
6663 } __PWM3DCHbits_t;
6665 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits;
6667 #define _DC2 0x01
6668 #define _PWM3DC2 0x01
6669 #define _PWMPW2 0x01
6670 #define _DC3 0x02
6671 #define _PWM3DC3 0x02
6672 #define _PWMPW3 0x02
6673 #define _DC4 0x04
6674 #define _PWM3DC4 0x04
6675 #define _PWMPW4 0x04
6676 #define _DC5 0x08
6677 #define _PWM3DC5 0x08
6678 #define _PWMPW5 0x08
6679 #define _DC6 0x10
6680 #define _PWM3DC6 0x10
6681 #define _PWMPW6 0x10
6682 #define _DC7 0x20
6683 #define _PWM3DC7 0x20
6684 #define _PWMPW7 0x20
6685 #define _DC8 0x40
6686 #define _PWM3DC8 0x40
6687 #define _PWMPW8 0x40
6688 #define _DC9 0x80
6689 #define _PWM3DC9 0x80
6690 #define _PWMPW9 0x80
6692 //==============================================================================
6695 //==============================================================================
6696 // PWM3CON Bits
6698 extern __at(0x0619) __sfr PWM3CON;
6700 typedef union
6702 struct
6704 unsigned : 1;
6705 unsigned : 1;
6706 unsigned : 1;
6707 unsigned : 1;
6708 unsigned POL : 1;
6709 unsigned OUT : 1;
6710 unsigned : 1;
6711 unsigned EN : 1;
6714 struct
6716 unsigned : 1;
6717 unsigned : 1;
6718 unsigned : 1;
6719 unsigned : 1;
6720 unsigned PWM3POL : 1;
6721 unsigned PWM3OUT : 1;
6722 unsigned : 1;
6723 unsigned PWM3EN : 1;
6725 } __PWM3CONbits_t;
6727 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits;
6729 #define _PWM3CON_POL 0x10
6730 #define _PWM3CON_PWM3POL 0x10
6731 #define _PWM3CON_OUT 0x20
6732 #define _PWM3CON_PWM3OUT 0x20
6733 #define _PWM3CON_EN 0x80
6734 #define _PWM3CON_PWM3EN 0x80
6736 //==============================================================================
6739 //==============================================================================
6740 // PWM4DCL Bits
6742 extern __at(0x061A) __sfr PWM4DCL;
6744 typedef union
6746 struct
6748 unsigned : 1;
6749 unsigned : 1;
6750 unsigned : 1;
6751 unsigned : 1;
6752 unsigned : 1;
6753 unsigned : 1;
6754 unsigned DC0 : 1;
6755 unsigned DC1 : 1;
6758 struct
6760 unsigned : 1;
6761 unsigned : 1;
6762 unsigned : 1;
6763 unsigned : 1;
6764 unsigned : 1;
6765 unsigned : 1;
6766 unsigned PWM4DC0 : 1;
6767 unsigned PWM4DC1 : 1;
6770 struct
6772 unsigned : 1;
6773 unsigned : 1;
6774 unsigned : 1;
6775 unsigned : 1;
6776 unsigned : 1;
6777 unsigned : 1;
6778 unsigned PWMPW0 : 1;
6779 unsigned PWMPW1 : 1;
6782 struct
6784 unsigned : 6;
6785 unsigned PWM4DC : 2;
6788 struct
6790 unsigned : 6;
6791 unsigned PWMPW : 2;
6794 struct
6796 unsigned : 6;
6797 unsigned DC : 2;
6799 } __PWM4DCLbits_t;
6801 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits;
6803 #define _PWM4DCL_DC0 0x40
6804 #define _PWM4DCL_PWM4DC0 0x40
6805 #define _PWM4DCL_PWMPW0 0x40
6806 #define _PWM4DCL_DC1 0x80
6807 #define _PWM4DCL_PWM4DC1 0x80
6808 #define _PWM4DCL_PWMPW1 0x80
6810 //==============================================================================
6813 //==============================================================================
6814 // PWM4DCH Bits
6816 extern __at(0x061B) __sfr PWM4DCH;
6818 typedef union
6820 struct
6822 unsigned DC2 : 1;
6823 unsigned DC3 : 1;
6824 unsigned DC4 : 1;
6825 unsigned DC5 : 1;
6826 unsigned DC6 : 1;
6827 unsigned DC7 : 1;
6828 unsigned DC8 : 1;
6829 unsigned DC9 : 1;
6832 struct
6834 unsigned PWM4DC2 : 1;
6835 unsigned PWM4DC3 : 1;
6836 unsigned PWM4DC4 : 1;
6837 unsigned PWM4DC5 : 1;
6838 unsigned PWM4DC6 : 1;
6839 unsigned PWM4DC7 : 1;
6840 unsigned PWM4DC8 : 1;
6841 unsigned PWM4DC9 : 1;
6844 struct
6846 unsigned PWMPW2 : 1;
6847 unsigned PWMPW3 : 1;
6848 unsigned PWMPW4 : 1;
6849 unsigned PWMPW5 : 1;
6850 unsigned PWMPW6 : 1;
6851 unsigned PWMPW7 : 1;
6852 unsigned PWMPW8 : 1;
6853 unsigned PWMPW9 : 1;
6855 } __PWM4DCHbits_t;
6857 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits;
6859 #define _PWM4DCH_DC2 0x01
6860 #define _PWM4DCH_PWM4DC2 0x01
6861 #define _PWM4DCH_PWMPW2 0x01
6862 #define _PWM4DCH_DC3 0x02
6863 #define _PWM4DCH_PWM4DC3 0x02
6864 #define _PWM4DCH_PWMPW3 0x02
6865 #define _PWM4DCH_DC4 0x04
6866 #define _PWM4DCH_PWM4DC4 0x04
6867 #define _PWM4DCH_PWMPW4 0x04
6868 #define _PWM4DCH_DC5 0x08
6869 #define _PWM4DCH_PWM4DC5 0x08
6870 #define _PWM4DCH_PWMPW5 0x08
6871 #define _PWM4DCH_DC6 0x10
6872 #define _PWM4DCH_PWM4DC6 0x10
6873 #define _PWM4DCH_PWMPW6 0x10
6874 #define _PWM4DCH_DC7 0x20
6875 #define _PWM4DCH_PWM4DC7 0x20
6876 #define _PWM4DCH_PWMPW7 0x20
6877 #define _PWM4DCH_DC8 0x40
6878 #define _PWM4DCH_PWM4DC8 0x40
6879 #define _PWM4DCH_PWMPW8 0x40
6880 #define _PWM4DCH_DC9 0x80
6881 #define _PWM4DCH_PWM4DC9 0x80
6882 #define _PWM4DCH_PWMPW9 0x80
6884 //==============================================================================
6887 //==============================================================================
6888 // PWM4CON Bits
6890 extern __at(0x061C) __sfr PWM4CON;
6892 typedef union
6894 struct
6896 unsigned : 1;
6897 unsigned : 1;
6898 unsigned : 1;
6899 unsigned : 1;
6900 unsigned POL : 1;
6901 unsigned OUT : 1;
6902 unsigned : 1;
6903 unsigned EN : 1;
6906 struct
6908 unsigned : 1;
6909 unsigned : 1;
6910 unsigned : 1;
6911 unsigned : 1;
6912 unsigned PWM4POL : 1;
6913 unsigned PWM4OUT : 1;
6914 unsigned : 1;
6915 unsigned PWM4EN : 1;
6917 } __PWM4CONbits_t;
6919 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits;
6921 #define _PWM4CON_POL 0x10
6922 #define _PWM4CON_PWM4POL 0x10
6923 #define _PWM4CON_OUT 0x20
6924 #define _PWM4CON_PWM4OUT 0x20
6925 #define _PWM4CON_EN 0x80
6926 #define _PWM4CON_PWM4EN 0x80
6928 //==============================================================================
6931 //==============================================================================
6932 // CWG1DBR Bits
6934 extern __at(0x0691) __sfr CWG1DBR;
6936 typedef union
6938 struct
6940 unsigned DBR0 : 1;
6941 unsigned DBR1 : 1;
6942 unsigned DBR2 : 1;
6943 unsigned DBR3 : 1;
6944 unsigned DBR4 : 1;
6945 unsigned DBR5 : 1;
6946 unsigned : 1;
6947 unsigned : 1;
6950 struct
6952 unsigned CWG1DBR0 : 1;
6953 unsigned CWG1DBR1 : 1;
6954 unsigned CWG1DBR2 : 1;
6955 unsigned CWG1DBR3 : 1;
6956 unsigned CWG1DBR4 : 1;
6957 unsigned CWG1DBR5 : 1;
6958 unsigned : 1;
6959 unsigned : 1;
6962 struct
6964 unsigned DBR : 6;
6965 unsigned : 2;
6968 struct
6970 unsigned CWG1DBR : 6;
6971 unsigned : 2;
6973 } __CWG1DBRbits_t;
6975 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits;
6977 #define _DBR0 0x01
6978 #define _CWG1DBR0 0x01
6979 #define _DBR1 0x02
6980 #define _CWG1DBR1 0x02
6981 #define _DBR2 0x04
6982 #define _CWG1DBR2 0x04
6983 #define _DBR3 0x08
6984 #define _CWG1DBR3 0x08
6985 #define _DBR4 0x10
6986 #define _CWG1DBR4 0x10
6987 #define _DBR5 0x20
6988 #define _CWG1DBR5 0x20
6990 //==============================================================================
6993 //==============================================================================
6994 // CWG1DBF Bits
6996 extern __at(0x0692) __sfr CWG1DBF;
6998 typedef union
7000 struct
7002 unsigned DBF0 : 1;
7003 unsigned DBF1 : 1;
7004 unsigned DBF2 : 1;
7005 unsigned DBF3 : 1;
7006 unsigned DBF4 : 1;
7007 unsigned DBF5 : 1;
7008 unsigned : 1;
7009 unsigned : 1;
7012 struct
7014 unsigned CWG1DBF0 : 1;
7015 unsigned CWG1DBF1 : 1;
7016 unsigned CWG1DBF2 : 1;
7017 unsigned CWG1DBF3 : 1;
7018 unsigned CWG1DBF4 : 1;
7019 unsigned CWG1DBF5 : 1;
7020 unsigned : 1;
7021 unsigned : 1;
7024 struct
7026 unsigned DBF : 6;
7027 unsigned : 2;
7030 struct
7032 unsigned CWG1DBF : 6;
7033 unsigned : 2;
7035 } __CWG1DBFbits_t;
7037 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits;
7039 #define _DBF0 0x01
7040 #define _CWG1DBF0 0x01
7041 #define _DBF1 0x02
7042 #define _CWG1DBF1 0x02
7043 #define _DBF2 0x04
7044 #define _CWG1DBF2 0x04
7045 #define _DBF3 0x08
7046 #define _CWG1DBF3 0x08
7047 #define _DBF4 0x10
7048 #define _CWG1DBF4 0x10
7049 #define _DBF5 0x20
7050 #define _CWG1DBF5 0x20
7052 //==============================================================================
7055 //==============================================================================
7056 // CWG1AS0 Bits
7058 extern __at(0x0693) __sfr CWG1AS0;
7060 typedef union
7062 struct
7064 unsigned : 1;
7065 unsigned : 1;
7066 unsigned LSAC0 : 1;
7067 unsigned LSAC1 : 1;
7068 unsigned LSBD0 : 1;
7069 unsigned LSBD1 : 1;
7070 unsigned REN : 1;
7071 unsigned SHUTDOWN : 1;
7074 struct
7076 unsigned : 1;
7077 unsigned : 1;
7078 unsigned CWG1LSAC0 : 1;
7079 unsigned CWG1LSAC1 : 1;
7080 unsigned CWG1LSBD0 : 1;
7081 unsigned CWG1LSBD1 : 1;
7082 unsigned CWG1REN : 1;
7083 unsigned CWG1SHUTDOWN : 1;
7086 struct
7088 unsigned : 2;
7089 unsigned CWG1LSAC : 2;
7090 unsigned : 4;
7093 struct
7095 unsigned : 2;
7096 unsigned LSAC : 2;
7097 unsigned : 4;
7100 struct
7102 unsigned : 4;
7103 unsigned CWG1LSBD : 2;
7104 unsigned : 2;
7107 struct
7109 unsigned : 4;
7110 unsigned LSBD : 2;
7111 unsigned : 2;
7113 } __CWG1AS0bits_t;
7115 extern __at(0x0693) volatile __CWG1AS0bits_t CWG1AS0bits;
7117 #define _LSAC0 0x04
7118 #define _CWG1LSAC0 0x04
7119 #define _LSAC1 0x08
7120 #define _CWG1LSAC1 0x08
7121 #define _LSBD0 0x10
7122 #define _CWG1LSBD0 0x10
7123 #define _LSBD1 0x20
7124 #define _CWG1LSBD1 0x20
7125 #define _REN 0x40
7126 #define _CWG1REN 0x40
7127 #define _SHUTDOWN 0x80
7128 #define _CWG1SHUTDOWN 0x80
7130 //==============================================================================
7133 //==============================================================================
7134 // CWG1AS1 Bits
7136 extern __at(0x0694) __sfr CWG1AS1;
7138 typedef union
7140 struct
7142 unsigned INAS : 1;
7143 unsigned C1AS : 1;
7144 unsigned C2AS : 1;
7145 unsigned : 1;
7146 unsigned TMR2AS : 1;
7147 unsigned TMR4AS : 1;
7148 unsigned TMR6AS : 1;
7149 unsigned : 1;
7152 struct
7154 unsigned CWG1INAS : 1;
7155 unsigned CWG1C1AS : 1;
7156 unsigned CWG1C2AS : 1;
7157 unsigned : 1;
7158 unsigned CWG1TMR2AS : 1;
7159 unsigned CWG1TMR4AS : 1;
7160 unsigned CWG1TMR6AS : 1;
7161 unsigned : 1;
7163 } __CWG1AS1bits_t;
7165 extern __at(0x0694) volatile __CWG1AS1bits_t CWG1AS1bits;
7167 #define _INAS 0x01
7168 #define _CWG1INAS 0x01
7169 #define _C1AS 0x02
7170 #define _CWG1C1AS 0x02
7171 #define _C2AS 0x04
7172 #define _CWG1C2AS 0x04
7173 #define _TMR2AS 0x10
7174 #define _CWG1TMR2AS 0x10
7175 #define _TMR4AS 0x20
7176 #define _CWG1TMR4AS 0x20
7177 #define _TMR6AS 0x40
7178 #define _CWG1TMR6AS 0x40
7180 //==============================================================================
7183 //==============================================================================
7184 // CWG1OCON0 Bits
7186 extern __at(0x0695) __sfr CWG1OCON0;
7188 typedef union
7190 struct
7192 unsigned STRA : 1;
7193 unsigned STRB : 1;
7194 unsigned STRC : 1;
7195 unsigned STRD : 1;
7196 unsigned OVRA : 1;
7197 unsigned OVRB : 1;
7198 unsigned OVRC : 1;
7199 unsigned OVRD : 1;
7202 struct
7204 unsigned CWG1STRA : 1;
7205 unsigned CWG1STRB : 1;
7206 unsigned CWG1STRC : 1;
7207 unsigned CWG1STRD : 1;
7208 unsigned CWG1OVRA : 1;
7209 unsigned CWG1OVRB : 1;
7210 unsigned CWG1OVRC : 1;
7211 unsigned CWG1OVRD : 1;
7213 } __CWG1OCON0bits_t;
7215 extern __at(0x0695) volatile __CWG1OCON0bits_t CWG1OCON0bits;
7217 #define _STRA 0x01
7218 #define _CWG1STRA 0x01
7219 #define _STRB 0x02
7220 #define _CWG1STRB 0x02
7221 #define _STRC 0x04
7222 #define _CWG1STRC 0x04
7223 #define _STRD 0x08
7224 #define _CWG1STRD 0x08
7225 #define _OVRA 0x10
7226 #define _CWG1OVRA 0x10
7227 #define _OVRB 0x20
7228 #define _CWG1OVRB 0x20
7229 #define _OVRC 0x40
7230 #define _CWG1OVRC 0x40
7231 #define _OVRD 0x80
7232 #define _CWG1OVRD 0x80
7234 //==============================================================================
7237 //==============================================================================
7238 // CWG1CON0 Bits
7240 extern __at(0x0696) __sfr CWG1CON0;
7242 typedef union
7244 struct
7246 unsigned MODE0 : 1;
7247 unsigned MODE1 : 1;
7248 unsigned MODE2 : 1;
7249 unsigned : 1;
7250 unsigned : 1;
7251 unsigned : 1;
7252 unsigned LD : 1;
7253 unsigned EN : 1;
7256 struct
7258 unsigned CWG1MODE0 : 1;
7259 unsigned CWG1MODE1 : 1;
7260 unsigned CWG1MODE2 : 1;
7261 unsigned : 1;
7262 unsigned : 1;
7263 unsigned : 1;
7264 unsigned CWG1LD : 1;
7265 unsigned G1EN : 1;
7268 struct
7270 unsigned : 1;
7271 unsigned : 1;
7272 unsigned : 1;
7273 unsigned : 1;
7274 unsigned : 1;
7275 unsigned : 1;
7276 unsigned : 1;
7277 unsigned CWG1EN : 1;
7280 struct
7282 unsigned CWG1MODE : 3;
7283 unsigned : 5;
7286 struct
7288 unsigned MODE : 3;
7289 unsigned : 5;
7291 } __CWG1CON0bits_t;
7293 extern __at(0x0696) volatile __CWG1CON0bits_t CWG1CON0bits;
7295 #define _CWG1CON0_MODE0 0x01
7296 #define _CWG1CON0_CWG1MODE0 0x01
7297 #define _CWG1CON0_MODE1 0x02
7298 #define _CWG1CON0_CWG1MODE1 0x02
7299 #define _CWG1CON0_MODE2 0x04
7300 #define _CWG1CON0_CWG1MODE2 0x04
7301 #define _CWG1CON0_LD 0x40
7302 #define _CWG1CON0_CWG1LD 0x40
7303 #define _CWG1CON0_EN 0x80
7304 #define _CWG1CON0_G1EN 0x80
7305 #define _CWG1CON0_CWG1EN 0x80
7307 //==============================================================================
7310 //==============================================================================
7311 // CWG1CON1 Bits
7313 extern __at(0x0697) __sfr CWG1CON1;
7315 typedef union
7317 struct
7319 unsigned POLA : 1;
7320 unsigned POLB : 1;
7321 unsigned POLC : 1;
7322 unsigned POLD : 1;
7323 unsigned : 1;
7324 unsigned IN : 1;
7325 unsigned : 1;
7326 unsigned : 1;
7329 struct
7331 unsigned CWG1POLA : 1;
7332 unsigned CWG1POLB : 1;
7333 unsigned CWG1POLC : 1;
7334 unsigned CWG1POLD : 1;
7335 unsigned : 1;
7336 unsigned CWG1IN : 1;
7337 unsigned : 1;
7338 unsigned : 1;
7340 } __CWG1CON1bits_t;
7342 extern __at(0x0697) volatile __CWG1CON1bits_t CWG1CON1bits;
7344 #define _POLA 0x01
7345 #define _CWG1POLA 0x01
7346 #define _POLB 0x02
7347 #define _CWG1POLB 0x02
7348 #define _POLC 0x04
7349 #define _CWG1POLC 0x04
7350 #define _POLD 0x08
7351 #define _CWG1POLD 0x08
7352 #define _IN 0x20
7353 #define _CWG1IN 0x20
7355 //==============================================================================
7358 //==============================================================================
7359 // CWG1CLKCON Bits
7361 extern __at(0x0699) __sfr CWG1CLKCON;
7363 typedef union
7365 struct
7367 unsigned CS : 1;
7368 unsigned : 1;
7369 unsigned : 1;
7370 unsigned : 1;
7371 unsigned : 1;
7372 unsigned : 1;
7373 unsigned : 1;
7374 unsigned : 1;
7377 struct
7379 unsigned CWG1CS : 1;
7380 unsigned : 1;
7381 unsigned : 1;
7382 unsigned : 1;
7383 unsigned : 1;
7384 unsigned : 1;
7385 unsigned : 1;
7386 unsigned : 1;
7388 } __CWG1CLKCONbits_t;
7390 extern __at(0x0699) volatile __CWG1CLKCONbits_t CWG1CLKCONbits;
7392 #define _CWG1CLKCON_CS 0x01
7393 #define _CWG1CLKCON_CWG1CS 0x01
7395 //==============================================================================
7398 //==============================================================================
7399 // CWG1ISM Bits
7401 extern __at(0x069A) __sfr CWG1ISM;
7403 typedef union
7405 struct
7407 unsigned IS0 : 1;
7408 unsigned IS1 : 1;
7409 unsigned IS2 : 1;
7410 unsigned IS3 : 1;
7411 unsigned : 1;
7412 unsigned : 1;
7413 unsigned : 1;
7414 unsigned : 1;
7417 struct
7419 unsigned CWG1IS0 : 1;
7420 unsigned CWG1IS1 : 1;
7421 unsigned CWG1IS2 : 1;
7422 unsigned CWG1IS3 : 1;
7423 unsigned : 1;
7424 unsigned : 1;
7425 unsigned : 1;
7426 unsigned : 1;
7429 struct
7431 unsigned IS : 4;
7432 unsigned : 4;
7435 struct
7437 unsigned CWG1IS : 4;
7438 unsigned : 4;
7440 } __CWG1ISMbits_t;
7442 extern __at(0x069A) volatile __CWG1ISMbits_t CWG1ISMbits;
7444 #define _IS0 0x01
7445 #define _CWG1IS0 0x01
7446 #define _IS1 0x02
7447 #define _CWG1IS1 0x02
7448 #define _IS2 0x04
7449 #define _CWG1IS2 0x04
7450 #define _IS3 0x08
7451 #define _CWG1IS3 0x08
7453 //==============================================================================
7456 //==============================================================================
7457 // WDTCON0 Bits
7459 extern __at(0x0711) __sfr WDTCON0;
7461 typedef union
7463 struct
7465 unsigned SEN : 1;
7466 unsigned WDTPS0 : 1;
7467 unsigned WDTPS1 : 1;
7468 unsigned WDTPS2 : 1;
7469 unsigned WDTPS3 : 1;
7470 unsigned WDTPS4 : 1;
7471 unsigned : 1;
7472 unsigned : 1;
7475 struct
7477 unsigned SWDTEN : 1;
7478 unsigned : 1;
7479 unsigned : 1;
7480 unsigned : 1;
7481 unsigned : 1;
7482 unsigned : 1;
7483 unsigned : 1;
7484 unsigned : 1;
7487 struct
7489 unsigned WDTSEN : 1;
7490 unsigned : 1;
7491 unsigned : 1;
7492 unsigned : 1;
7493 unsigned : 1;
7494 unsigned : 1;
7495 unsigned : 1;
7496 unsigned : 1;
7499 struct
7501 unsigned : 1;
7502 unsigned WDTPS : 5;
7503 unsigned : 2;
7505 } __WDTCON0bits_t;
7507 extern __at(0x0711) volatile __WDTCON0bits_t WDTCON0bits;
7509 #define _WDTCON0_SEN 0x01
7510 #define _WDTCON0_SWDTEN 0x01
7511 #define _WDTCON0_WDTSEN 0x01
7512 #define _WDTCON0_WDTPS0 0x02
7513 #define _WDTCON0_WDTPS1 0x04
7514 #define _WDTCON0_WDTPS2 0x08
7515 #define _WDTCON0_WDTPS3 0x10
7516 #define _WDTCON0_WDTPS4 0x20
7518 //==============================================================================
7521 //==============================================================================
7522 // WDTCON1 Bits
7524 extern __at(0x0712) __sfr WDTCON1;
7526 typedef union
7528 struct
7530 unsigned WINDOW0 : 1;
7531 unsigned WINDOW1 : 1;
7532 unsigned WINDOW2 : 1;
7533 unsigned : 1;
7534 unsigned WDTCS0 : 1;
7535 unsigned WDTCS1 : 1;
7536 unsigned WDTCS2 : 1;
7537 unsigned : 1;
7540 struct
7542 unsigned WDTWINDOW0 : 1;
7543 unsigned WDTWINDOW1 : 1;
7544 unsigned WDTWINDOW2 : 1;
7545 unsigned : 1;
7546 unsigned : 1;
7547 unsigned : 1;
7548 unsigned : 1;
7549 unsigned : 1;
7552 struct
7554 unsigned WDTWINDOW : 3;
7555 unsigned : 5;
7558 struct
7560 unsigned WINDOW : 3;
7561 unsigned : 5;
7564 struct
7566 unsigned : 4;
7567 unsigned WDTCS : 3;
7568 unsigned : 1;
7570 } __WDTCON1bits_t;
7572 extern __at(0x0712) volatile __WDTCON1bits_t WDTCON1bits;
7574 #define _WINDOW0 0x01
7575 #define _WDTWINDOW0 0x01
7576 #define _WINDOW1 0x02
7577 #define _WDTWINDOW1 0x02
7578 #define _WINDOW2 0x04
7579 #define _WDTWINDOW2 0x04
7580 #define _WDTCS0 0x10
7581 #define _WDTCS1 0x20
7582 #define _WDTCS2 0x40
7584 //==============================================================================
7587 //==============================================================================
7588 // WDTPSL Bits
7590 extern __at(0x0713) __sfr WDTPSL;
7592 typedef union
7594 struct
7596 unsigned PSCNT0 : 1;
7597 unsigned PSCNT1 : 1;
7598 unsigned PSCNT2 : 1;
7599 unsigned PSCNT3 : 1;
7600 unsigned PSCNT4 : 1;
7601 unsigned PSCNT5 : 1;
7602 unsigned PSCNT6 : 1;
7603 unsigned PSCNT7 : 1;
7606 struct
7608 unsigned WDTPSCNT0 : 1;
7609 unsigned WDTPSCNT1 : 1;
7610 unsigned WDTPSCNT2 : 1;
7611 unsigned WDTPSCNT3 : 1;
7612 unsigned WDTPSCNT4 : 1;
7613 unsigned WDTPSCNT5 : 1;
7614 unsigned WDTPSCNT6 : 1;
7615 unsigned WDTPSCNT7 : 1;
7617 } __WDTPSLbits_t;
7619 extern __at(0x0713) volatile __WDTPSLbits_t WDTPSLbits;
7621 #define _PSCNT0 0x01
7622 #define _WDTPSCNT0 0x01
7623 #define _PSCNT1 0x02
7624 #define _WDTPSCNT1 0x02
7625 #define _PSCNT2 0x04
7626 #define _WDTPSCNT2 0x04
7627 #define _PSCNT3 0x08
7628 #define _WDTPSCNT3 0x08
7629 #define _PSCNT4 0x10
7630 #define _WDTPSCNT4 0x10
7631 #define _PSCNT5 0x20
7632 #define _WDTPSCNT5 0x20
7633 #define _PSCNT6 0x40
7634 #define _WDTPSCNT6 0x40
7635 #define _PSCNT7 0x80
7636 #define _WDTPSCNT7 0x80
7638 //==============================================================================
7641 //==============================================================================
7642 // WDTPSH Bits
7644 extern __at(0x0714) __sfr WDTPSH;
7646 typedef union
7648 struct
7650 unsigned PSCNT8 : 1;
7651 unsigned PSCNT9 : 1;
7652 unsigned PSCNT10 : 1;
7653 unsigned PSCNT11 : 1;
7654 unsigned PSCNT12 : 1;
7655 unsigned PSCNT13 : 1;
7656 unsigned PSCNT14 : 1;
7657 unsigned PSCNT15 : 1;
7660 struct
7662 unsigned WDTPSCNT8 : 1;
7663 unsigned WDTPSCNT9 : 1;
7664 unsigned WDTPSCNT10 : 1;
7665 unsigned WDTPSCNT11 : 1;
7666 unsigned WDTPSCNT12 : 1;
7667 unsigned WDTPSCNT13 : 1;
7668 unsigned WDTPSCNT14 : 1;
7669 unsigned WDTPSCNT15 : 1;
7671 } __WDTPSHbits_t;
7673 extern __at(0x0714) volatile __WDTPSHbits_t WDTPSHbits;
7675 #define _PSCNT8 0x01
7676 #define _WDTPSCNT8 0x01
7677 #define _PSCNT9 0x02
7678 #define _WDTPSCNT9 0x02
7679 #define _PSCNT10 0x04
7680 #define _WDTPSCNT10 0x04
7681 #define _PSCNT11 0x08
7682 #define _WDTPSCNT11 0x08
7683 #define _PSCNT12 0x10
7684 #define _WDTPSCNT12 0x10
7685 #define _PSCNT13 0x20
7686 #define _WDTPSCNT13 0x20
7687 #define _PSCNT14 0x40
7688 #define _WDTPSCNT14 0x40
7689 #define _PSCNT15 0x80
7690 #define _WDTPSCNT15 0x80
7692 //==============================================================================
7695 //==============================================================================
7696 // WDTTMR Bits
7698 extern __at(0x0715) __sfr WDTTMR;
7700 typedef union
7702 struct
7704 unsigned PSCNT16 : 1;
7705 unsigned PSCNT17 : 1;
7706 unsigned STATE : 1;
7707 unsigned WDTTMR0 : 1;
7708 unsigned WDTTMR1 : 1;
7709 unsigned WDTTMR2 : 1;
7710 unsigned WDTTMR3 : 1;
7711 unsigned WDTTMR4 : 1;
7714 struct
7716 unsigned WDTPSCNT16 : 1;
7717 unsigned WDTPSCNT17 : 1;
7718 unsigned WDTSTATE : 1;
7719 unsigned : 1;
7720 unsigned : 1;
7721 unsigned : 1;
7722 unsigned : 1;
7723 unsigned : 1;
7726 struct
7728 unsigned : 3;
7729 unsigned WDTTMR : 5;
7731 } __WDTTMRbits_t;
7733 extern __at(0x0715) volatile __WDTTMRbits_t WDTTMRbits;
7735 #define _PSCNT16 0x01
7736 #define _WDTPSCNT16 0x01
7737 #define _PSCNT17 0x02
7738 #define _WDTPSCNT17 0x02
7739 #define _STATE 0x04
7740 #define _WDTSTATE 0x04
7741 #define _WDTTMR0 0x08
7742 #define _WDTTMR1 0x10
7743 #define _WDTTMR2 0x20
7744 #define _WDTTMR3 0x40
7745 #define _WDTTMR4 0x80
7747 //==============================================================================
7749 extern __at(0x0718) __sfr SCANLADR;
7751 //==============================================================================
7752 // SCANLADRL Bits
7754 extern __at(0x0718) __sfr SCANLADRL;
7756 typedef union
7758 struct
7760 unsigned LDAR0 : 1;
7761 unsigned LDAR1 : 1;
7762 unsigned LADR2 : 1;
7763 unsigned LADR3 : 1;
7764 unsigned LADR4 : 1;
7765 unsigned LADR5 : 1;
7766 unsigned LADR6 : 1;
7767 unsigned LADR7 : 1;
7770 struct
7772 unsigned SCANLADR0 : 1;
7773 unsigned SCANLADR1 : 1;
7774 unsigned SCANLADR2 : 1;
7775 unsigned SCANLADR3 : 1;
7776 unsigned SCANLADR4 : 1;
7777 unsigned SCANLADR5 : 1;
7778 unsigned SCANLADR6 : 1;
7779 unsigned SCANLADR7 : 1;
7782 struct
7784 unsigned LDAR : 2;
7785 unsigned : 6;
7787 } __SCANLADRLbits_t;
7789 extern __at(0x0718) volatile __SCANLADRLbits_t SCANLADRLbits;
7791 #define _LDAR0 0x01
7792 #define _SCANLADR0 0x01
7793 #define _LDAR1 0x02
7794 #define _SCANLADR1 0x02
7795 #define _LADR2 0x04
7796 #define _SCANLADR2 0x04
7797 #define _LADR3 0x08
7798 #define _SCANLADR3 0x08
7799 #define _LADR4 0x10
7800 #define _SCANLADR4 0x10
7801 #define _LADR5 0x20
7802 #define _SCANLADR5 0x20
7803 #define _LADR6 0x40
7804 #define _SCANLADR6 0x40
7805 #define _LADR7 0x80
7806 #define _SCANLADR7 0x80
7808 //==============================================================================
7811 //==============================================================================
7812 // SCANLADRH Bits
7814 extern __at(0x0719) __sfr SCANLADRH;
7816 typedef union
7818 struct
7820 unsigned LADR8 : 1;
7821 unsigned LADR9 : 1;
7822 unsigned LADR10 : 1;
7823 unsigned LADR11 : 1;
7824 unsigned LADR12 : 1;
7825 unsigned LADR13 : 1;
7826 unsigned LADR14 : 1;
7827 unsigned LADR15 : 1;
7830 struct
7832 unsigned SCANLADR8 : 1;
7833 unsigned SCANLADR9 : 1;
7834 unsigned SCANLADR10 : 1;
7835 unsigned SCANLADR11 : 1;
7836 unsigned SCANLADR12 : 1;
7837 unsigned SCANLADR13 : 1;
7838 unsigned SCANLADR14 : 1;
7839 unsigned SCANLADR15 : 1;
7841 } __SCANLADRHbits_t;
7843 extern __at(0x0719) volatile __SCANLADRHbits_t SCANLADRHbits;
7845 #define _LADR8 0x01
7846 #define _SCANLADR8 0x01
7847 #define _LADR9 0x02
7848 #define _SCANLADR9 0x02
7849 #define _LADR10 0x04
7850 #define _SCANLADR10 0x04
7851 #define _LADR11 0x08
7852 #define _SCANLADR11 0x08
7853 #define _LADR12 0x10
7854 #define _SCANLADR12 0x10
7855 #define _LADR13 0x20
7856 #define _SCANLADR13 0x20
7857 #define _LADR14 0x40
7858 #define _SCANLADR14 0x40
7859 #define _LADR15 0x80
7860 #define _SCANLADR15 0x80
7862 //==============================================================================
7864 extern __at(0x071A) __sfr SCANHADR;
7866 //==============================================================================
7867 // SCANHADRL Bits
7869 extern __at(0x071A) __sfr SCANHADRL;
7871 typedef union
7873 struct
7875 unsigned HADR0 : 1;
7876 unsigned HADR1 : 1;
7877 unsigned HARD2 : 1;
7878 unsigned HADR3 : 1;
7879 unsigned HADR4 : 1;
7880 unsigned HADR5 : 1;
7881 unsigned HADR6 : 1;
7882 unsigned HADR7 : 1;
7885 struct
7887 unsigned SCANHADR0 : 1;
7888 unsigned SCANHADR1 : 1;
7889 unsigned SCANHADR2 : 1;
7890 unsigned SCANHADR3 : 1;
7891 unsigned SCANHADR4 : 1;
7892 unsigned SCANHADR5 : 1;
7893 unsigned SCANHADR6 : 1;
7894 unsigned SCANHADR7 : 1;
7896 } __SCANHADRLbits_t;
7898 extern __at(0x071A) volatile __SCANHADRLbits_t SCANHADRLbits;
7900 #define _HADR0 0x01
7901 #define _SCANHADR0 0x01
7902 #define _HADR1 0x02
7903 #define _SCANHADR1 0x02
7904 #define _HARD2 0x04
7905 #define _SCANHADR2 0x04
7906 #define _HADR3 0x08
7907 #define _SCANHADR3 0x08
7908 #define _HADR4 0x10
7909 #define _SCANHADR4 0x10
7910 #define _HADR5 0x20
7911 #define _SCANHADR5 0x20
7912 #define _HADR6 0x40
7913 #define _SCANHADR6 0x40
7914 #define _HADR7 0x80
7915 #define _SCANHADR7 0x80
7917 //==============================================================================
7920 //==============================================================================
7921 // SCANHADRH Bits
7923 extern __at(0x071B) __sfr SCANHADRH;
7925 typedef union
7927 struct
7929 unsigned HADR8 : 1;
7930 unsigned HADR9 : 1;
7931 unsigned HADR10 : 1;
7932 unsigned HADR11 : 1;
7933 unsigned HADR12 : 1;
7934 unsigned HADR13 : 1;
7935 unsigned HADR14 : 1;
7936 unsigned HADR15 : 1;
7939 struct
7941 unsigned SCANHADR8 : 1;
7942 unsigned SCANHADR9 : 1;
7943 unsigned SCANHADR10 : 1;
7944 unsigned SCANHADR11 : 1;
7945 unsigned SCANHADR12 : 1;
7946 unsigned SCANHADR13 : 1;
7947 unsigned SCANHADR14 : 1;
7948 unsigned SCANHADR15 : 1;
7950 } __SCANHADRHbits_t;
7952 extern __at(0x071B) volatile __SCANHADRHbits_t SCANHADRHbits;
7954 #define _HADR8 0x01
7955 #define _SCANHADR8 0x01
7956 #define _HADR9 0x02
7957 #define _SCANHADR9 0x02
7958 #define _HADR10 0x04
7959 #define _SCANHADR10 0x04
7960 #define _HADR11 0x08
7961 #define _SCANHADR11 0x08
7962 #define _HADR12 0x10
7963 #define _SCANHADR12 0x10
7964 #define _HADR13 0x20
7965 #define _SCANHADR13 0x20
7966 #define _HADR14 0x40
7967 #define _SCANHADR14 0x40
7968 #define _HADR15 0x80
7969 #define _SCANHADR15 0x80
7971 //==============================================================================
7974 //==============================================================================
7975 // SCANCON0 Bits
7977 extern __at(0x071C) __sfr SCANCON0;
7979 typedef union
7981 struct
7983 unsigned MODE0 : 1;
7984 unsigned MODE1 : 1;
7985 unsigned : 1;
7986 unsigned INTM : 1;
7987 unsigned INVALID : 1;
7988 unsigned BUSY : 1;
7989 unsigned SCANGO : 1;
7990 unsigned EN : 1;
7993 struct
7995 unsigned SCANMODE0 : 1;
7996 unsigned SCANMODE1 : 1;
7997 unsigned : 1;
7998 unsigned SCANINTM : 1;
7999 unsigned SCANINVALID : 1;
8000 unsigned SCANBUSY : 1;
8001 unsigned : 1;
8002 unsigned SCANEN : 1;
8005 struct
8007 unsigned SCANMODE : 2;
8008 unsigned : 6;
8011 struct
8013 unsigned MODE : 2;
8014 unsigned : 6;
8016 } __SCANCON0bits_t;
8018 extern __at(0x071C) volatile __SCANCON0bits_t SCANCON0bits;
8020 #define _SCANCON0_MODE0 0x01
8021 #define _SCANCON0_SCANMODE0 0x01
8022 #define _SCANCON0_MODE1 0x02
8023 #define _SCANCON0_SCANMODE1 0x02
8024 #define _SCANCON0_INTM 0x08
8025 #define _SCANCON0_SCANINTM 0x08
8026 #define _SCANCON0_INVALID 0x10
8027 #define _SCANCON0_SCANINVALID 0x10
8028 #define _SCANCON0_BUSY 0x20
8029 #define _SCANCON0_SCANBUSY 0x20
8030 #define _SCANCON0_SCANGO 0x40
8031 #define _SCANCON0_EN 0x80
8032 #define _SCANCON0_SCANEN 0x80
8034 //==============================================================================
8037 //==============================================================================
8038 // SCANTRIG Bits
8040 extern __at(0x071D) __sfr SCANTRIG;
8042 typedef union
8044 struct
8046 unsigned TSEL0 : 1;
8047 unsigned TSEL1 : 1;
8048 unsigned TSEL2 : 1;
8049 unsigned TSEL3 : 1;
8050 unsigned : 1;
8051 unsigned : 1;
8052 unsigned : 1;
8053 unsigned : 1;
8056 struct
8058 unsigned SCANTSEL0 : 1;
8059 unsigned SCANTSEL1 : 1;
8060 unsigned SCANTSEL2 : 1;
8061 unsigned SCANTSEL3 : 1;
8062 unsigned : 1;
8063 unsigned : 1;
8064 unsigned : 1;
8065 unsigned : 1;
8068 struct
8070 unsigned SCANTSEL : 4;
8071 unsigned : 4;
8074 struct
8076 unsigned TSEL : 4;
8077 unsigned : 4;
8079 } __SCANTRIGbits_t;
8081 extern __at(0x071D) volatile __SCANTRIGbits_t SCANTRIGbits;
8083 #define _TSEL0 0x01
8084 #define _SCANTSEL0 0x01
8085 #define _TSEL1 0x02
8086 #define _SCANTSEL1 0x02
8087 #define _TSEL2 0x04
8088 #define _SCANTSEL2 0x04
8089 #define _TSEL3 0x08
8090 #define _SCANTSEL3 0x08
8092 //==============================================================================
8094 extern __at(0x0791) __sfr CRCDAT;
8096 //==============================================================================
8097 // CRCDATL Bits
8099 extern __at(0x0791) __sfr CRCDATL;
8101 typedef union
8103 struct
8105 unsigned DAT0 : 1;
8106 unsigned DAT1 : 1;
8107 unsigned DAT2 : 1;
8108 unsigned DAT3 : 1;
8109 unsigned DAT4 : 1;
8110 unsigned DAT5 : 1;
8111 unsigned DAT6 : 1;
8112 unsigned DAT7 : 1;
8115 struct
8117 unsigned CRCDAT0 : 1;
8118 unsigned CRCDAT1 : 1;
8119 unsigned CRCDAT2 : 1;
8120 unsigned CRCDAT3 : 1;
8121 unsigned CRCDAT4 : 1;
8122 unsigned CRCDAT5 : 1;
8123 unsigned CRCDAT6 : 1;
8124 unsigned CRDCDAT7 : 1;
8127 struct
8129 unsigned CRCDAT : 7;
8130 unsigned : 1;
8132 } __CRCDATLbits_t;
8134 extern __at(0x0791) volatile __CRCDATLbits_t CRCDATLbits;
8136 #define _DAT0 0x01
8137 #define _CRCDAT0 0x01
8138 #define _DAT1 0x02
8139 #define _CRCDAT1 0x02
8140 #define _DAT2 0x04
8141 #define _CRCDAT2 0x04
8142 #define _DAT3 0x08
8143 #define _CRCDAT3 0x08
8144 #define _DAT4 0x10
8145 #define _CRCDAT4 0x10
8146 #define _DAT5 0x20
8147 #define _CRCDAT5 0x20
8148 #define _DAT6 0x40
8149 #define _CRCDAT6 0x40
8150 #define _DAT7 0x80
8151 #define _CRDCDAT7 0x80
8153 //==============================================================================
8156 //==============================================================================
8157 // CRCDATH Bits
8159 extern __at(0x0792) __sfr CRCDATH;
8161 typedef union
8163 struct
8165 unsigned DAT8 : 1;
8166 unsigned DAT9 : 1;
8167 unsigned DAT10 : 1;
8168 unsigned DAT11 : 1;
8169 unsigned DAT12 : 1;
8170 unsigned DAT13 : 1;
8171 unsigned DAT14 : 1;
8172 unsigned DAT15 : 1;
8175 struct
8177 unsigned CRCDAT8 : 1;
8178 unsigned CRCDAT9 : 1;
8179 unsigned CRCDAT10 : 1;
8180 unsigned CRCDAT11 : 1;
8181 unsigned CRCDAT12 : 1;
8182 unsigned CRCDAT13 : 1;
8183 unsigned CRCDAT14 : 1;
8184 unsigned CRCDAT15 : 1;
8186 } __CRCDATHbits_t;
8188 extern __at(0x0792) volatile __CRCDATHbits_t CRCDATHbits;
8190 #define _DAT8 0x01
8191 #define _CRCDAT8 0x01
8192 #define _DAT9 0x02
8193 #define _CRCDAT9 0x02
8194 #define _DAT10 0x04
8195 #define _CRCDAT10 0x04
8196 #define _DAT11 0x08
8197 #define _CRCDAT11 0x08
8198 #define _DAT12 0x10
8199 #define _CRCDAT12 0x10
8200 #define _DAT13 0x20
8201 #define _CRCDAT13 0x20
8202 #define _DAT14 0x40
8203 #define _CRCDAT14 0x40
8204 #define _DAT15 0x80
8205 #define _CRCDAT15 0x80
8207 //==============================================================================
8209 extern __at(0x0793) __sfr CRCACC;
8211 //==============================================================================
8212 // CRCACCL Bits
8214 extern __at(0x0793) __sfr CRCACCL;
8216 typedef union
8218 struct
8220 unsigned ACC0 : 1;
8221 unsigned ACC1 : 1;
8222 unsigned ACC2 : 1;
8223 unsigned ACC3 : 1;
8224 unsigned ACC4 : 1;
8225 unsigned ACC5 : 1;
8226 unsigned ACC6 : 1;
8227 unsigned ACC7 : 1;
8230 struct
8232 unsigned CRCACC0 : 1;
8233 unsigned CRCACC1 : 1;
8234 unsigned CRCACC2 : 1;
8235 unsigned CRCACC3 : 1;
8236 unsigned CRCACC4 : 1;
8237 unsigned CRCACC5 : 1;
8238 unsigned CRCACC6 : 1;
8239 unsigned CRCACC7 : 1;
8241 } __CRCACCLbits_t;
8243 extern __at(0x0793) volatile __CRCACCLbits_t CRCACCLbits;
8245 #define _ACC0 0x01
8246 #define _CRCACC0 0x01
8247 #define _ACC1 0x02
8248 #define _CRCACC1 0x02
8249 #define _ACC2 0x04
8250 #define _CRCACC2 0x04
8251 #define _ACC3 0x08
8252 #define _CRCACC3 0x08
8253 #define _ACC4 0x10
8254 #define _CRCACC4 0x10
8255 #define _ACC5 0x20
8256 #define _CRCACC5 0x20
8257 #define _ACC6 0x40
8258 #define _CRCACC6 0x40
8259 #define _ACC7 0x80
8260 #define _CRCACC7 0x80
8262 //==============================================================================
8265 //==============================================================================
8266 // CRCACCH Bits
8268 extern __at(0x0794) __sfr CRCACCH;
8270 typedef union
8272 struct
8274 unsigned ACC8 : 1;
8275 unsigned ACC9 : 1;
8276 unsigned ACC10 : 1;
8277 unsigned ACC11 : 1;
8278 unsigned ACC12 : 1;
8279 unsigned ACC13 : 1;
8280 unsigned ACC14 : 1;
8281 unsigned ACC15 : 1;
8284 struct
8286 unsigned CRCACC8 : 1;
8287 unsigned CRCACC9 : 1;
8288 unsigned CRCACC10 : 1;
8289 unsigned CRCACC11 : 1;
8290 unsigned CRCACC12 : 1;
8291 unsigned CRCACC13 : 1;
8292 unsigned CRCACC14 : 1;
8293 unsigned CRCACC15 : 1;
8295 } __CRCACCHbits_t;
8297 extern __at(0x0794) volatile __CRCACCHbits_t CRCACCHbits;
8299 #define _ACC8 0x01
8300 #define _CRCACC8 0x01
8301 #define _ACC9 0x02
8302 #define _CRCACC9 0x02
8303 #define _ACC10 0x04
8304 #define _CRCACC10 0x04
8305 #define _ACC11 0x08
8306 #define _CRCACC11 0x08
8307 #define _ACC12 0x10
8308 #define _CRCACC12 0x10
8309 #define _ACC13 0x20
8310 #define _CRCACC13 0x20
8311 #define _ACC14 0x40
8312 #define _CRCACC14 0x40
8313 #define _ACC15 0x80
8314 #define _CRCACC15 0x80
8316 //==============================================================================
8318 extern __at(0x0795) __sfr CRCSHIFT;
8320 //==============================================================================
8321 // CRCSHIFTL Bits
8323 extern __at(0x0795) __sfr CRCSHIFTL;
8325 typedef union
8327 struct
8329 unsigned SHIFT0 : 1;
8330 unsigned SHIFT1 : 1;
8331 unsigned SHIFT2 : 1;
8332 unsigned SHIFT3 : 1;
8333 unsigned SHIFT4 : 1;
8334 unsigned SHIFT5 : 1;
8335 unsigned SHIFT6 : 1;
8336 unsigned SHIFT7 : 1;
8339 struct
8341 unsigned CRCSHIFT0 : 1;
8342 unsigned CRCSHIFT1 : 1;
8343 unsigned CRCSHIFT2 : 1;
8344 unsigned CRCSHIFT3 : 1;
8345 unsigned CRCSHIFT4 : 1;
8346 unsigned CRCSHIFT5 : 1;
8347 unsigned CRCSHIFT6 : 1;
8348 unsigned CRCSHIFT7 : 1;
8350 } __CRCSHIFTLbits_t;
8352 extern __at(0x0795) volatile __CRCSHIFTLbits_t CRCSHIFTLbits;
8354 #define _SHIFT0 0x01
8355 #define _CRCSHIFT0 0x01
8356 #define _SHIFT1 0x02
8357 #define _CRCSHIFT1 0x02
8358 #define _SHIFT2 0x04
8359 #define _CRCSHIFT2 0x04
8360 #define _SHIFT3 0x08
8361 #define _CRCSHIFT3 0x08
8362 #define _SHIFT4 0x10
8363 #define _CRCSHIFT4 0x10
8364 #define _SHIFT5 0x20
8365 #define _CRCSHIFT5 0x20
8366 #define _SHIFT6 0x40
8367 #define _CRCSHIFT6 0x40
8368 #define _SHIFT7 0x80
8369 #define _CRCSHIFT7 0x80
8371 //==============================================================================
8374 //==============================================================================
8375 // CRCSHIFTH Bits
8377 extern __at(0x0796) __sfr CRCSHIFTH;
8379 typedef union
8381 struct
8383 unsigned SHIFT8 : 1;
8384 unsigned SHIFT9 : 1;
8385 unsigned SHIFT10 : 1;
8386 unsigned SHIFT11 : 1;
8387 unsigned SHIFT12 : 1;
8388 unsigned SHIFT13 : 1;
8389 unsigned SHIFT14 : 1;
8390 unsigned SHIFT15 : 1;
8393 struct
8395 unsigned CRCSHIFT8 : 1;
8396 unsigned CRCSHIFT9 : 1;
8397 unsigned CRCSHIFT10 : 1;
8398 unsigned CRCSHIFT11 : 1;
8399 unsigned CRCSHIFT12 : 1;
8400 unsigned CRCSHIFT13 : 1;
8401 unsigned CRCSHIFT14 : 1;
8402 unsigned CRCSHIFT15 : 1;
8404 } __CRCSHIFTHbits_t;
8406 extern __at(0x0796) volatile __CRCSHIFTHbits_t CRCSHIFTHbits;
8408 #define _SHIFT8 0x01
8409 #define _CRCSHIFT8 0x01
8410 #define _SHIFT9 0x02
8411 #define _CRCSHIFT9 0x02
8412 #define _SHIFT10 0x04
8413 #define _CRCSHIFT10 0x04
8414 #define _SHIFT11 0x08
8415 #define _CRCSHIFT11 0x08
8416 #define _SHIFT12 0x10
8417 #define _CRCSHIFT12 0x10
8418 #define _SHIFT13 0x20
8419 #define _CRCSHIFT13 0x20
8420 #define _SHIFT14 0x40
8421 #define _CRCSHIFT14 0x40
8422 #define _SHIFT15 0x80
8423 #define _CRCSHIFT15 0x80
8425 //==============================================================================
8427 extern __at(0x0797) __sfr CRCXOR;
8429 //==============================================================================
8430 // CRCXORL Bits
8432 extern __at(0x0797) __sfr CRCXORL;
8434 typedef union
8436 struct
8438 unsigned : 1;
8439 unsigned XOR1 : 1;
8440 unsigned XOR2 : 1;
8441 unsigned XOR3 : 1;
8442 unsigned XOR4 : 1;
8443 unsigned XOR5 : 1;
8444 unsigned XOR6 : 1;
8445 unsigned XOR7 : 1;
8448 struct
8450 unsigned : 1;
8451 unsigned CRCXOR1 : 1;
8452 unsigned CRCXOR2 : 1;
8453 unsigned CRCXOR3 : 1;
8454 unsigned CRCXOR4 : 1;
8455 unsigned CRCXOR5 : 1;
8456 unsigned CRCXOR6 : 1;
8457 unsigned CRCXOR7 : 1;
8459 } __CRCXORLbits_t;
8461 extern __at(0x0797) volatile __CRCXORLbits_t CRCXORLbits;
8463 #define _XOR1 0x02
8464 #define _CRCXOR1 0x02
8465 #define _XOR2 0x04
8466 #define _CRCXOR2 0x04
8467 #define _XOR3 0x08
8468 #define _CRCXOR3 0x08
8469 #define _XOR4 0x10
8470 #define _CRCXOR4 0x10
8471 #define _XOR5 0x20
8472 #define _CRCXOR5 0x20
8473 #define _XOR6 0x40
8474 #define _CRCXOR6 0x40
8475 #define _XOR7 0x80
8476 #define _CRCXOR7 0x80
8478 //==============================================================================
8481 //==============================================================================
8482 // CRCXORH Bits
8484 extern __at(0x0798) __sfr CRCXORH;
8486 typedef union
8488 struct
8490 unsigned XOR8 : 1;
8491 unsigned XOR9 : 1;
8492 unsigned XOR10 : 1;
8493 unsigned XOR11 : 1;
8494 unsigned XOR12 : 1;
8495 unsigned XOR13 : 1;
8496 unsigned XOR14 : 1;
8497 unsigned XOR15 : 1;
8500 struct
8502 unsigned CRCXOR8 : 1;
8503 unsigned CRCXOR9 : 1;
8504 unsigned CRCXOR10 : 1;
8505 unsigned CRCXOR11 : 1;
8506 unsigned CRCXOR12 : 1;
8507 unsigned CRCXOR13 : 1;
8508 unsigned CRCXOR14 : 1;
8509 unsigned CRCXOR15 : 1;
8511 } __CRCXORHbits_t;
8513 extern __at(0x0798) volatile __CRCXORHbits_t CRCXORHbits;
8515 #define _XOR8 0x01
8516 #define _CRCXOR8 0x01
8517 #define _XOR9 0x02
8518 #define _CRCXOR9 0x02
8519 #define _XOR10 0x04
8520 #define _CRCXOR10 0x04
8521 #define _XOR11 0x08
8522 #define _CRCXOR11 0x08
8523 #define _XOR12 0x10
8524 #define _CRCXOR12 0x10
8525 #define _XOR13 0x20
8526 #define _CRCXOR13 0x20
8527 #define _XOR14 0x40
8528 #define _CRCXOR14 0x40
8529 #define _XOR15 0x80
8530 #define _CRCXOR15 0x80
8532 //==============================================================================
8535 //==============================================================================
8536 // CRCCON0 Bits
8538 extern __at(0x0799) __sfr CRCCON0;
8540 typedef union
8542 struct
8544 unsigned FULL : 1;
8545 unsigned SHIFTM : 1;
8546 unsigned : 1;
8547 unsigned : 1;
8548 unsigned ACCM : 1;
8549 unsigned BUSY : 1;
8550 unsigned CRCGO : 1;
8551 unsigned EN : 1;
8554 struct
8556 unsigned CRCFULL : 1;
8557 unsigned CRCSHIFTM : 1;
8558 unsigned : 1;
8559 unsigned : 1;
8560 unsigned CRCACCM : 1;
8561 unsigned CRCBUSY : 1;
8562 unsigned : 1;
8563 unsigned CRCEN : 1;
8565 } __CRCCON0bits_t;
8567 extern __at(0x0799) volatile __CRCCON0bits_t CRCCON0bits;
8569 #define _CRCCON0_FULL 0x01
8570 #define _CRCCON0_CRCFULL 0x01
8571 #define _CRCCON0_SHIFTM 0x02
8572 #define _CRCCON0_CRCSHIFTM 0x02
8573 #define _CRCCON0_ACCM 0x10
8574 #define _CRCCON0_CRCACCM 0x10
8575 #define _CRCCON0_BUSY 0x20
8576 #define _CRCCON0_CRCBUSY 0x20
8577 #define _CRCCON0_CRCGO 0x40
8578 #define _CRCCON0_EN 0x80
8579 #define _CRCCON0_CRCEN 0x80
8581 //==============================================================================
8584 //==============================================================================
8585 // CRCCON1 Bits
8587 extern __at(0x079A) __sfr CRCCON1;
8589 typedef union
8591 struct
8593 unsigned PLEN0 : 1;
8594 unsigned PLEN1 : 1;
8595 unsigned PLEN2 : 1;
8596 unsigned PLEN3 : 1;
8597 unsigned DLEN0 : 1;
8598 unsigned DLEN1 : 1;
8599 unsigned DLEN2 : 1;
8600 unsigned DLEN3 : 1;
8603 struct
8605 unsigned CRCPLEN0 : 1;
8606 unsigned CRCPLEN1 : 1;
8607 unsigned CRCPLEN2 : 1;
8608 unsigned CRCPLEN3 : 1;
8609 unsigned CRCDLEN0 : 1;
8610 unsigned CRCDLEN1 : 1;
8611 unsigned CRCDLEN2 : 1;
8612 unsigned CRCDLEN3 : 1;
8615 struct
8617 unsigned PLEN : 4;
8618 unsigned : 4;
8621 struct
8623 unsigned CRCPLEN : 4;
8624 unsigned : 4;
8627 struct
8629 unsigned : 4;
8630 unsigned DLEN : 4;
8633 struct
8635 unsigned : 4;
8636 unsigned CRCDLEN : 4;
8638 } __CRCCON1bits_t;
8640 extern __at(0x079A) volatile __CRCCON1bits_t CRCCON1bits;
8642 #define _PLEN0 0x01
8643 #define _CRCPLEN0 0x01
8644 #define _PLEN1 0x02
8645 #define _CRCPLEN1 0x02
8646 #define _PLEN2 0x04
8647 #define _CRCPLEN2 0x04
8648 #define _PLEN3 0x08
8649 #define _CRCPLEN3 0x08
8650 #define _DLEN0 0x10
8651 #define _CRCDLEN0 0x10
8652 #define _DLEN1 0x20
8653 #define _CRCDLEN1 0x20
8654 #define _DLEN2 0x40
8655 #define _CRCDLEN2 0x40
8656 #define _DLEN3 0x80
8657 #define _CRCDLEN3 0x80
8659 //==============================================================================
8661 extern __at(0x080C) __sfr AT1RES;
8663 //==============================================================================
8664 // AT1RESL Bits
8666 extern __at(0x080C) __sfr AT1RESL;
8668 typedef union
8670 struct
8672 unsigned AT1RES0 : 1;
8673 unsigned AT1RES1 : 1;
8674 unsigned AT1RES2 : 1;
8675 unsigned AT1RES3 : 1;
8676 unsigned AT1RES4 : 1;
8677 unsigned AT1RES5 : 1;
8678 unsigned AT1RES6 : 1;
8679 unsigned AT1RES7 : 1;
8682 struct
8684 unsigned RES0 : 1;
8685 unsigned RES1 : 1;
8686 unsigned RES2 : 1;
8687 unsigned RES3 : 1;
8688 unsigned RES4 : 1;
8689 unsigned RES5 : 1;
8690 unsigned RES6 : 1;
8691 unsigned RES7 : 1;
8693 } __AT1RESLbits_t;
8695 extern __at(0x080C) volatile __AT1RESLbits_t AT1RESLbits;
8697 #define _AT1RES0 0x01
8698 #define _RES0 0x01
8699 #define _AT1RES1 0x02
8700 #define _RES1 0x02
8701 #define _AT1RES2 0x04
8702 #define _RES2 0x04
8703 #define _AT1RES3 0x08
8704 #define _RES3 0x08
8705 #define _AT1RES4 0x10
8706 #define _RES4 0x10
8707 #define _AT1RES5 0x20
8708 #define _RES5 0x20
8709 #define _AT1RES6 0x40
8710 #define _RES6 0x40
8711 #define _AT1RES7 0x80
8712 #define _RES7 0x80
8714 //==============================================================================
8717 //==============================================================================
8718 // AT1RESH Bits
8720 extern __at(0x080D) __sfr AT1RESH;
8722 typedef union
8724 struct
8726 unsigned AT1RES8 : 1;
8727 unsigned AT1RES9 : 1;
8728 unsigned : 1;
8729 unsigned : 1;
8730 unsigned : 1;
8731 unsigned : 1;
8732 unsigned : 1;
8733 unsigned : 1;
8736 struct
8738 unsigned RES8 : 1;
8739 unsigned RES9 : 1;
8740 unsigned : 1;
8741 unsigned : 1;
8742 unsigned : 1;
8743 unsigned : 1;
8744 unsigned : 1;
8745 unsigned : 1;
8747 } __AT1RESHbits_t;
8749 extern __at(0x080D) volatile __AT1RESHbits_t AT1RESHbits;
8751 #define _AT1RES8 0x01
8752 #define _RES8 0x01
8753 #define _AT1RES9 0x02
8754 #define _RES9 0x02
8756 //==============================================================================
8758 extern __at(0x080E) __sfr AT1MISS;
8760 //==============================================================================
8761 // AT1MISSL Bits
8763 extern __at(0x080E) __sfr AT1MISSL;
8765 typedef union
8767 struct
8769 unsigned AT1MISS0 : 1;
8770 unsigned AT1MISS1 : 1;
8771 unsigned AT1MISS2 : 1;
8772 unsigned AT1MISS3 : 1;
8773 unsigned AT1MISS4 : 1;
8774 unsigned AT1MISS5 : 1;
8775 unsigned AT1MISS6 : 1;
8776 unsigned AT1MISS7 : 1;
8779 struct
8781 unsigned MISS0 : 1;
8782 unsigned MISS1 : 1;
8783 unsigned MISS2 : 1;
8784 unsigned MISS3 : 1;
8785 unsigned MISS4 : 1;
8786 unsigned MISS5 : 1;
8787 unsigned MISS6 : 1;
8788 unsigned MISS7 : 1;
8790 } __AT1MISSLbits_t;
8792 extern __at(0x080E) volatile __AT1MISSLbits_t AT1MISSLbits;
8794 #define _AT1MISS0 0x01
8795 #define _MISS0 0x01
8796 #define _AT1MISS1 0x02
8797 #define _MISS1 0x02
8798 #define _AT1MISS2 0x04
8799 #define _MISS2 0x04
8800 #define _AT1MISS3 0x08
8801 #define _MISS3 0x08
8802 #define _AT1MISS4 0x10
8803 #define _MISS4 0x10
8804 #define _AT1MISS5 0x20
8805 #define _MISS5 0x20
8806 #define _AT1MISS6 0x40
8807 #define _MISS6 0x40
8808 #define _AT1MISS7 0x80
8809 #define _MISS7 0x80
8811 //==============================================================================
8814 //==============================================================================
8815 // AT1MISSH Bits
8817 extern __at(0x080F) __sfr AT1MISSH;
8819 typedef union
8821 struct
8823 unsigned AT1MISS8 : 1;
8824 unsigned AT1MISS9 : 1;
8825 unsigned AT1MISS10 : 1;
8826 unsigned AT1MISS11 : 1;
8827 unsigned AT1MISS12 : 1;
8828 unsigned AT1MISS13 : 1;
8829 unsigned AT1MISS14 : 1;
8830 unsigned AT1MISS15 : 1;
8833 struct
8835 unsigned MISS8 : 1;
8836 unsigned MISS9 : 1;
8837 unsigned MISS10 : 1;
8838 unsigned MISS11 : 1;
8839 unsigned MISS12 : 1;
8840 unsigned MISS13 : 1;
8841 unsigned MISS14 : 1;
8842 unsigned MISS15 : 1;
8844 } __AT1MISSHbits_t;
8846 extern __at(0x080F) volatile __AT1MISSHbits_t AT1MISSHbits;
8848 #define _AT1MISS8 0x01
8849 #define _MISS8 0x01
8850 #define _AT1MISS9 0x02
8851 #define _MISS9 0x02
8852 #define _AT1MISS10 0x04
8853 #define _MISS10 0x04
8854 #define _AT1MISS11 0x08
8855 #define _MISS11 0x08
8856 #define _AT1MISS12 0x10
8857 #define _MISS12 0x10
8858 #define _AT1MISS13 0x20
8859 #define _MISS13 0x20
8860 #define _AT1MISS14 0x40
8861 #define _MISS14 0x40
8862 #define _AT1MISS15 0x80
8863 #define _MISS15 0x80
8865 //==============================================================================
8867 extern __at(0x0810) __sfr AT1PER;
8869 //==============================================================================
8870 // AT1PERL Bits
8872 extern __at(0x0810) __sfr AT1PERL;
8874 typedef union
8876 struct
8878 unsigned AT1PER0 : 1;
8879 unsigned AT1PER1 : 1;
8880 unsigned AT1PER2 : 1;
8881 unsigned AT1PER3 : 1;
8882 unsigned AT1PER4 : 1;
8883 unsigned AT1PER5 : 1;
8884 unsigned AT1PER6 : 1;
8885 unsigned AT1PER7 : 1;
8888 struct
8890 unsigned PER0 : 1;
8891 unsigned PER1 : 1;
8892 unsigned PER2 : 1;
8893 unsigned PER3 : 1;
8894 unsigned PER4 : 1;
8895 unsigned PER5 : 1;
8896 unsigned PER6 : 1;
8897 unsigned PER7 : 1;
8900 struct
8902 unsigned PERL0 : 1;
8903 unsigned PERL1 : 1;
8904 unsigned PERL2 : 1;
8905 unsigned PERL3 : 1;
8906 unsigned PERL4 : 1;
8907 unsigned PERL5 : 1;
8908 unsigned PERL6 : 1;
8909 unsigned PERL7 : 1;
8911 } __AT1PERLbits_t;
8913 extern __at(0x0810) volatile __AT1PERLbits_t AT1PERLbits;
8915 #define _AT1PER0 0x01
8916 #define _PER0 0x01
8917 #define _PERL0 0x01
8918 #define _AT1PER1 0x02
8919 #define _PER1 0x02
8920 #define _PERL1 0x02
8921 #define _AT1PER2 0x04
8922 #define _PER2 0x04
8923 #define _PERL2 0x04
8924 #define _AT1PER3 0x08
8925 #define _PER3 0x08
8926 #define _PERL3 0x08
8927 #define _AT1PER4 0x10
8928 #define _PER4 0x10
8929 #define _PERL4 0x10
8930 #define _AT1PER5 0x20
8931 #define _PER5 0x20
8932 #define _PERL5 0x20
8933 #define _AT1PER6 0x40
8934 #define _PER6 0x40
8935 #define _PERL6 0x40
8936 #define _AT1PER7 0x80
8937 #define _PER7 0x80
8938 #define _PERL7 0x80
8940 //==============================================================================
8943 //==============================================================================
8944 // AT1PERH Bits
8946 extern __at(0x0811) __sfr AT1PERH;
8948 typedef union
8950 struct
8952 unsigned AT1PER8 : 1;
8953 unsigned AT1PER9 : 1;
8954 unsigned AT1PER10 : 1;
8955 unsigned AT1PER11 : 1;
8956 unsigned AT1PER12 : 1;
8957 unsigned AT1PER13 : 1;
8958 unsigned AT1PER14 : 1;
8959 unsigned AT1POV : 1;
8962 struct
8964 unsigned PER8 : 1;
8965 unsigned PER9 : 1;
8966 unsigned PER10 : 1;
8967 unsigned PER11 : 1;
8968 unsigned PER12 : 1;
8969 unsigned PER13 : 1;
8970 unsigned PER14 : 1;
8971 unsigned PER15 : 1;
8974 struct
8976 unsigned PERH0 : 1;
8977 unsigned PERH1 : 1;
8978 unsigned PERH2 : 1;
8979 unsigned PERH3 : 1;
8980 unsigned PERH4 : 1;
8981 unsigned PERH5 : 1;
8982 unsigned PERH6 : 1;
8983 unsigned PERH7 : 1;
8985 } __AT1PERHbits_t;
8987 extern __at(0x0811) volatile __AT1PERHbits_t AT1PERHbits;
8989 #define _AT1PER8 0x01
8990 #define _PER8 0x01
8991 #define _PERH0 0x01
8992 #define _AT1PER9 0x02
8993 #define _PER9 0x02
8994 #define _PERH1 0x02
8995 #define _AT1PER10 0x04
8996 #define _PER10 0x04
8997 #define _PERH2 0x04
8998 #define _AT1PER11 0x08
8999 #define _PER11 0x08
9000 #define _PERH3 0x08
9001 #define _AT1PER12 0x10
9002 #define _PER12 0x10
9003 #define _PERH4 0x10
9004 #define _AT1PER13 0x20
9005 #define _PER13 0x20
9006 #define _PERH5 0x20
9007 #define _AT1PER14 0x40
9008 #define _PER14 0x40
9009 #define _PERH6 0x40
9010 #define _AT1POV 0x80
9011 #define _PER15 0x80
9012 #define _PERH7 0x80
9014 //==============================================================================
9016 extern __at(0x0812) __sfr AT1PHS;
9018 //==============================================================================
9019 // AT1PHSL Bits
9021 extern __at(0x0812) __sfr AT1PHSL;
9023 typedef union
9025 struct
9027 unsigned AT1PHS0 : 1;
9028 unsigned AT1PHS1 : 1;
9029 unsigned AT1PHS2 : 1;
9030 unsigned AT1PHS3 : 1;
9031 unsigned AT1PHS4 : 1;
9032 unsigned AT1PHS5 : 1;
9033 unsigned AT1PHS6 : 1;
9034 unsigned AT1PHS7 : 1;
9037 struct
9039 unsigned PHS0 : 1;
9040 unsigned PHS1 : 1;
9041 unsigned PHS2 : 1;
9042 unsigned PHS3 : 1;
9043 unsigned PHS4 : 1;
9044 unsigned PHS5 : 1;
9045 unsigned PHS6 : 1;
9046 unsigned PHS7 : 1;
9048 } __AT1PHSLbits_t;
9050 extern __at(0x0812) volatile __AT1PHSLbits_t AT1PHSLbits;
9052 #define _AT1PHS0 0x01
9053 #define _PHS0 0x01
9054 #define _AT1PHS1 0x02
9055 #define _PHS1 0x02
9056 #define _AT1PHS2 0x04
9057 #define _PHS2 0x04
9058 #define _AT1PHS3 0x08
9059 #define _PHS3 0x08
9060 #define _AT1PHS4 0x10
9061 #define _PHS4 0x10
9062 #define _AT1PHS5 0x20
9063 #define _PHS5 0x20
9064 #define _AT1PHS6 0x40
9065 #define _PHS6 0x40
9066 #define _AT1PHS7 0x80
9067 #define _PHS7 0x80
9069 //==============================================================================
9072 //==============================================================================
9073 // AT1PHSH Bits
9075 extern __at(0x0813) __sfr AT1PHSH;
9077 typedef union
9079 struct
9081 unsigned AT1PHS8 : 1;
9082 unsigned AT1PHS9 : 1;
9083 unsigned : 1;
9084 unsigned : 1;
9085 unsigned : 1;
9086 unsigned : 1;
9087 unsigned : 1;
9088 unsigned : 1;
9091 struct
9093 unsigned PHS8 : 1;
9094 unsigned PHS9 : 1;
9095 unsigned : 1;
9096 unsigned : 1;
9097 unsigned : 1;
9098 unsigned : 1;
9099 unsigned : 1;
9100 unsigned : 1;
9103 struct
9105 unsigned PHSL8 : 1;
9106 unsigned PHSL9 : 1;
9107 unsigned : 1;
9108 unsigned : 1;
9109 unsigned : 1;
9110 unsigned : 1;
9111 unsigned : 1;
9112 unsigned : 1;
9114 } __AT1PHSHbits_t;
9116 extern __at(0x0813) volatile __AT1PHSHbits_t AT1PHSHbits;
9118 #define _AT1PHS8 0x01
9119 #define _PHS8 0x01
9120 #define _PHSL8 0x01
9121 #define _AT1PHS9 0x02
9122 #define _PHS9 0x02
9123 #define _PHSL9 0x02
9125 //==============================================================================
9128 //==============================================================================
9129 // AT1CON0 Bits
9131 extern __at(0x0814) __sfr AT1CON0;
9133 typedef union
9135 struct
9137 unsigned MODE : 1;
9138 unsigned APMOD : 1;
9139 unsigned : 1;
9140 unsigned POL : 1;
9141 unsigned PS0 : 1;
9142 unsigned PS1 : 1;
9143 unsigned PREC : 1;
9144 unsigned EN : 1;
9147 struct
9149 unsigned AT1MODE : 1;
9150 unsigned AT1APMOD : 1;
9151 unsigned : 1;
9152 unsigned AT1POL : 1;
9153 unsigned AT1PS0 : 1;
9154 unsigned AT1PS1 : 1;
9155 unsigned AT1PREC : 1;
9156 unsigned AT1EN : 1;
9159 struct
9161 unsigned : 4;
9162 unsigned PS : 2;
9163 unsigned : 2;
9166 struct
9168 unsigned : 4;
9169 unsigned AT1PS : 2;
9170 unsigned : 2;
9172 } __AT1CON0bits_t;
9174 extern __at(0x0814) volatile __AT1CON0bits_t AT1CON0bits;
9176 #define _MODE 0x01
9177 #define _AT1MODE 0x01
9178 #define _APMOD 0x02
9179 #define _AT1APMOD 0x02
9180 #define _POL 0x08
9181 #define _AT1POL 0x08
9182 #define _PS0 0x10
9183 #define _AT1PS0 0x10
9184 #define _PS1 0x20
9185 #define _AT1PS1 0x20
9186 #define _PREC 0x40
9187 #define _AT1PREC 0x40
9188 #define _EN 0x80
9189 #define _AT1EN 0x80
9191 //==============================================================================
9194 //==============================================================================
9195 // AT1CON1 Bits
9197 extern __at(0x0815) __sfr AT1CON1;
9199 typedef union
9201 struct
9203 unsigned VALID : 1;
9204 unsigned ACCS : 1;
9205 unsigned MPP : 1;
9206 unsigned : 1;
9207 unsigned PRP : 1;
9208 unsigned : 1;
9209 unsigned PHP : 1;
9210 unsigned : 1;
9213 struct
9215 unsigned AT1VALID : 1;
9216 unsigned AT1ACCS : 1;
9217 unsigned AT1MPP : 1;
9218 unsigned : 1;
9219 unsigned AT1PRP : 1;
9220 unsigned : 1;
9221 unsigned AT1PHP : 1;
9222 unsigned : 1;
9224 } __AT1CON1bits_t;
9226 extern __at(0x0815) volatile __AT1CON1bits_t AT1CON1bits;
9228 #define _VALID 0x01
9229 #define _AT1VALID 0x01
9230 #define _ACCS 0x02
9231 #define _AT1ACCS 0x02
9232 #define _MPP 0x04
9233 #define _AT1MPP 0x04
9234 #define _PRP 0x10
9235 #define _AT1PRP 0x10
9236 #define _PHP 0x40
9237 #define _AT1PHP 0x40
9239 //==============================================================================
9242 //==============================================================================
9243 // AT1IR0 Bits
9245 extern __at(0x0816) __sfr AT1IR0;
9247 typedef struct
9249 unsigned AT1PERIF : 1;
9250 unsigned AT1MISSIF : 1;
9251 unsigned AT1PHSIF : 1;
9252 unsigned : 1;
9253 unsigned : 1;
9254 unsigned : 1;
9255 unsigned : 1;
9256 unsigned : 1;
9257 } __AT1IR0bits_t;
9259 extern __at(0x0816) volatile __AT1IR0bits_t AT1IR0bits;
9261 #define _AT1PERIF 0x01
9262 #define _AT1MISSIF 0x02
9263 #define _AT1PHSIF 0x04
9265 //==============================================================================
9268 //==============================================================================
9269 // AT1IE0 Bits
9271 extern __at(0x0817) __sfr AT1IE0;
9273 typedef struct
9275 unsigned AT1PERIE : 1;
9276 unsigned AT1MISSIE : 1;
9277 unsigned AT1PHSIE : 1;
9278 unsigned : 1;
9279 unsigned : 1;
9280 unsigned : 1;
9281 unsigned : 1;
9282 unsigned : 1;
9283 } __AT1IE0bits_t;
9285 extern __at(0x0817) volatile __AT1IE0bits_t AT1IE0bits;
9287 #define _AT1PERIE 0x01
9288 #define _AT1MISSIE 0x02
9289 #define _AT1PHSIE 0x04
9291 //==============================================================================
9294 //==============================================================================
9295 // AT1IR1 Bits
9297 extern __at(0x0818) __sfr AT1IR1;
9299 typedef struct
9301 unsigned AT1CC1IF : 1;
9302 unsigned AT1CC2IF : 1;
9303 unsigned AT1CC3IF : 1;
9304 unsigned : 1;
9305 unsigned : 1;
9306 unsigned : 1;
9307 unsigned : 1;
9308 unsigned : 1;
9309 } __AT1IR1bits_t;
9311 extern __at(0x0818) volatile __AT1IR1bits_t AT1IR1bits;
9313 #define _AT1CC1IF 0x01
9314 #define _AT1CC2IF 0x02
9315 #define _AT1CC3IF 0x04
9317 //==============================================================================
9320 //==============================================================================
9321 // AT1IE1 Bits
9323 extern __at(0x0819) __sfr AT1IE1;
9325 typedef struct
9327 unsigned AT1CC1IE : 1;
9328 unsigned AT1CC2IE : 1;
9329 unsigned AT1CC3IE : 1;
9330 unsigned : 1;
9331 unsigned : 1;
9332 unsigned : 1;
9333 unsigned : 1;
9334 unsigned : 1;
9335 } __AT1IE1bits_t;
9337 extern __at(0x0819) volatile __AT1IE1bits_t AT1IE1bits;
9339 #define _AT1CC1IE 0x01
9340 #define _AT1CC2IE 0x02
9341 #define _AT1CC3IE 0x04
9343 //==============================================================================
9345 extern __at(0x081A) __sfr AT1STPT;
9347 //==============================================================================
9348 // AT1STPTL Bits
9350 extern __at(0x081A) __sfr AT1STPTL;
9352 typedef union
9354 struct
9356 unsigned AT1STPT0 : 1;
9357 unsigned AT1STPT1 : 1;
9358 unsigned AT1STPT2 : 1;
9359 unsigned AT1STPT3 : 1;
9360 unsigned AT1STPT4 : 1;
9361 unsigned AT1STPT5 : 1;
9362 unsigned AT1STPT6 : 1;
9363 unsigned AT1STPT7 : 1;
9366 struct
9368 unsigned STPT0 : 1;
9369 unsigned STPT1 : 1;
9370 unsigned STPT2 : 1;
9371 unsigned STPT3 : 1;
9372 unsigned STPT4 : 1;
9373 unsigned STPT5 : 1;
9374 unsigned STPT6 : 1;
9375 unsigned STPT7 : 1;
9377 } __AT1STPTLbits_t;
9379 extern __at(0x081A) volatile __AT1STPTLbits_t AT1STPTLbits;
9381 #define _AT1STPT0 0x01
9382 #define _STPT0 0x01
9383 #define _AT1STPT1 0x02
9384 #define _STPT1 0x02
9385 #define _AT1STPT2 0x04
9386 #define _STPT2 0x04
9387 #define _AT1STPT3 0x08
9388 #define _STPT3 0x08
9389 #define _AT1STPT4 0x10
9390 #define _STPT4 0x10
9391 #define _AT1STPT5 0x20
9392 #define _STPT5 0x20
9393 #define _AT1STPT6 0x40
9394 #define _STPT6 0x40
9395 #define _AT1STPT7 0x80
9396 #define _STPT7 0x80
9398 //==============================================================================
9401 //==============================================================================
9402 // AT1STPTH Bits
9404 extern __at(0x081B) __sfr AT1STPTH;
9406 typedef union
9408 struct
9410 unsigned AT1STPT8 : 1;
9411 unsigned AT1STPT9 : 1;
9412 unsigned AT1STPT10 : 1;
9413 unsigned AT1STPT11 : 1;
9414 unsigned AT1STPT12 : 1;
9415 unsigned AT1STPT13 : 1;
9416 unsigned AT1STPT14 : 1;
9417 unsigned : 1;
9420 struct
9422 unsigned STPT8 : 1;
9423 unsigned STPT9 : 1;
9424 unsigned STPT10 : 1;
9425 unsigned STPT11 : 1;
9426 unsigned STPT12 : 1;
9427 unsigned STPT13 : 1;
9428 unsigned STPT14 : 1;
9429 unsigned : 1;
9431 } __AT1STPTHbits_t;
9433 extern __at(0x081B) volatile __AT1STPTHbits_t AT1STPTHbits;
9435 #define _AT1STPT8 0x01
9436 #define _STPT8 0x01
9437 #define _AT1STPT9 0x02
9438 #define _STPT9 0x02
9439 #define _AT1STPT10 0x04
9440 #define _STPT10 0x04
9441 #define _AT1STPT11 0x08
9442 #define _STPT11 0x08
9443 #define _AT1STPT12 0x10
9444 #define _STPT12 0x10
9445 #define _AT1STPT13 0x20
9446 #define _STPT13 0x20
9447 #define _AT1STPT14 0x40
9448 #define _STPT14 0x40
9450 //==============================================================================
9452 extern __at(0x081C) __sfr AT1ERR;
9454 //==============================================================================
9455 // AT1ERRL Bits
9457 extern __at(0x081C) __sfr AT1ERRL;
9459 typedef union
9461 struct
9463 unsigned AT1ERR0 : 1;
9464 unsigned AT1ERR1 : 1;
9465 unsigned AT1ERR2 : 1;
9466 unsigned AT1ERR3 : 1;
9467 unsigned AT1ERR4 : 1;
9468 unsigned AT1ERR5 : 1;
9469 unsigned AT1ERR6 : 1;
9470 unsigned AT1ERR7 : 1;
9473 struct
9475 unsigned ERR0 : 1;
9476 unsigned ERR1 : 1;
9477 unsigned ERR2 : 1;
9478 unsigned ERR3 : 1;
9479 unsigned ERR4 : 1;
9480 unsigned ERR5 : 1;
9481 unsigned ERR6 : 1;
9482 unsigned ERR7 : 1;
9485 struct
9487 unsigned ERRL0 : 1;
9488 unsigned ERRL1 : 1;
9489 unsigned ERRL2 : 1;
9490 unsigned ERRL3 : 1;
9491 unsigned ERRL4 : 1;
9492 unsigned ERRL5 : 1;
9493 unsigned ERRL6 : 1;
9494 unsigned ERRL7 : 1;
9496 } __AT1ERRLbits_t;
9498 extern __at(0x081C) volatile __AT1ERRLbits_t AT1ERRLbits;
9500 #define _AT1ERR0 0x01
9501 #define _ERR0 0x01
9502 #define _ERRL0 0x01
9503 #define _AT1ERR1 0x02
9504 #define _ERR1 0x02
9505 #define _ERRL1 0x02
9506 #define _AT1ERR2 0x04
9507 #define _ERR2 0x04
9508 #define _ERRL2 0x04
9509 #define _AT1ERR3 0x08
9510 #define _ERR3 0x08
9511 #define _ERRL3 0x08
9512 #define _AT1ERR4 0x10
9513 #define _ERR4 0x10
9514 #define _ERRL4 0x10
9515 #define _AT1ERR5 0x20
9516 #define _ERR5 0x20
9517 #define _ERRL5 0x20
9518 #define _AT1ERR6 0x40
9519 #define _ERR6 0x40
9520 #define _ERRL6 0x40
9521 #define _AT1ERR7 0x80
9522 #define _ERR7 0x80
9523 #define _ERRL7 0x80
9525 //==============================================================================
9528 //==============================================================================
9529 // AT1ERRH Bits
9531 extern __at(0x081D) __sfr AT1ERRH;
9533 typedef union
9535 struct
9537 unsigned AT1ERR8 : 1;
9538 unsigned AT1ERR9 : 1;
9539 unsigned AT1ERR10 : 1;
9540 unsigned AT1ERR11 : 1;
9541 unsigned AT1ERR12 : 1;
9542 unsigned AT1ERR13 : 1;
9543 unsigned AT1ERR14 : 1;
9544 unsigned AT1ERR15 : 1;
9547 struct
9549 unsigned ERR8 : 1;
9550 unsigned ERR9 : 1;
9551 unsigned ERR10 : 1;
9552 unsigned ERR11 : 1;
9553 unsigned ERR12 : 1;
9554 unsigned ERR13 : 1;
9555 unsigned ERR14 : 1;
9556 unsigned ERR15 : 1;
9559 struct
9561 unsigned ERRH0 : 1;
9562 unsigned ERRH1 : 1;
9563 unsigned ERRH2 : 1;
9564 unsigned ERRH3 : 1;
9565 unsigned ERRH4 : 1;
9566 unsigned ERRH5 : 1;
9567 unsigned ERRH6 : 1;
9568 unsigned ERRH7 : 1;
9570 } __AT1ERRHbits_t;
9572 extern __at(0x081D) volatile __AT1ERRHbits_t AT1ERRHbits;
9574 #define _AT1ERR8 0x01
9575 #define _ERR8 0x01
9576 #define _ERRH0 0x01
9577 #define _AT1ERR9 0x02
9578 #define _ERR9 0x02
9579 #define _ERRH1 0x02
9580 #define _AT1ERR10 0x04
9581 #define _ERR10 0x04
9582 #define _ERRH2 0x04
9583 #define _AT1ERR11 0x08
9584 #define _ERR11 0x08
9585 #define _ERRH3 0x08
9586 #define _AT1ERR12 0x10
9587 #define _ERR12 0x10
9588 #define _ERRH4 0x10
9589 #define _AT1ERR13 0x20
9590 #define _ERR13 0x20
9591 #define _ERRH5 0x20
9592 #define _AT1ERR14 0x40
9593 #define _ERR14 0x40
9594 #define _ERRH6 0x40
9595 #define _AT1ERR15 0x80
9596 #define _ERR15 0x80
9597 #define _ERRH7 0x80
9599 //==============================================================================
9602 //==============================================================================
9603 // AT1CLK Bits
9605 extern __at(0x088C) __sfr AT1CLK;
9607 typedef union
9609 struct
9611 unsigned CS : 1;
9612 unsigned : 1;
9613 unsigned : 1;
9614 unsigned : 1;
9615 unsigned : 1;
9616 unsigned : 1;
9617 unsigned : 1;
9618 unsigned : 1;
9621 struct
9623 unsigned AT1CS : 1;
9624 unsigned : 1;
9625 unsigned : 1;
9626 unsigned : 1;
9627 unsigned : 1;
9628 unsigned : 1;
9629 unsigned : 1;
9630 unsigned : 1;
9633 struct
9635 unsigned CS0 : 1;
9636 unsigned : 1;
9637 unsigned : 1;
9638 unsigned : 1;
9639 unsigned : 1;
9640 unsigned : 1;
9641 unsigned : 1;
9642 unsigned : 1;
9645 struct
9647 unsigned AT1CS0 : 1;
9648 unsigned : 1;
9649 unsigned : 1;
9650 unsigned : 1;
9651 unsigned : 1;
9652 unsigned : 1;
9653 unsigned : 1;
9654 unsigned : 1;
9656 } __AT1CLKbits_t;
9658 extern __at(0x088C) volatile __AT1CLKbits_t AT1CLKbits;
9660 #define _CS 0x01
9661 #define _AT1CS 0x01
9662 #define _CS0 0x01
9663 #define _AT1CS0 0x01
9665 //==============================================================================
9668 //==============================================================================
9669 // AT1SIG Bits
9671 extern __at(0x088D) __sfr AT1SIG;
9673 typedef union
9675 struct
9677 unsigned AT1SSEL0 : 1;
9678 unsigned AT1SSEL1 : 1;
9679 unsigned AT1SSEL2 : 1;
9680 unsigned : 1;
9681 unsigned : 1;
9682 unsigned : 1;
9683 unsigned : 1;
9684 unsigned : 1;
9687 struct
9689 unsigned SSEL0 : 1;
9690 unsigned SSEL1 : 1;
9691 unsigned SSEL2 : 1;
9692 unsigned : 1;
9693 unsigned : 1;
9694 unsigned : 1;
9695 unsigned : 1;
9696 unsigned : 1;
9699 struct
9701 unsigned AT1SSEL : 3;
9702 unsigned : 5;
9705 struct
9707 unsigned SSEL : 3;
9708 unsigned : 5;
9710 } __AT1SIGbits_t;
9712 extern __at(0x088D) volatile __AT1SIGbits_t AT1SIGbits;
9714 #define _AT1SSEL0 0x01
9715 #define _SSEL0 0x01
9716 #define _AT1SSEL1 0x02
9717 #define _SSEL1 0x02
9718 #define _AT1SSEL2 0x04
9719 #define _SSEL2 0x04
9721 //==============================================================================
9724 //==============================================================================
9725 // AT1CSEL1 Bits
9727 extern __at(0x088E) __sfr AT1CSEL1;
9729 typedef union
9731 struct
9733 unsigned AT1CP1S0 : 1;
9734 unsigned AT1CP1S1 : 1;
9735 unsigned AT1CP1S2 : 1;
9736 unsigned : 1;
9737 unsigned : 1;
9738 unsigned : 1;
9739 unsigned : 1;
9740 unsigned : 1;
9743 struct
9745 unsigned CP1S0 : 1;
9746 unsigned CP1S1 : 1;
9747 unsigned CP1S2 : 1;
9748 unsigned : 1;
9749 unsigned : 1;
9750 unsigned : 1;
9751 unsigned : 1;
9752 unsigned : 1;
9755 struct
9757 unsigned CP1S : 3;
9758 unsigned : 5;
9761 struct
9763 unsigned AT1CP1S : 3;
9764 unsigned : 5;
9766 } __AT1CSEL1bits_t;
9768 extern __at(0x088E) volatile __AT1CSEL1bits_t AT1CSEL1bits;
9770 #define _AT1CP1S0 0x01
9771 #define _CP1S0 0x01
9772 #define _AT1CP1S1 0x02
9773 #define _CP1S1 0x02
9774 #define _AT1CP1S2 0x04
9775 #define _CP1S2 0x04
9777 //==============================================================================
9779 extern __at(0x088F) __sfr AT1CC1;
9781 //==============================================================================
9782 // AT1CC1L Bits
9784 extern __at(0x088F) __sfr AT1CC1L;
9786 typedef union
9788 struct
9790 unsigned AT1CC10 : 1;
9791 unsigned AT1CC11 : 1;
9792 unsigned AT1CC12 : 1;
9793 unsigned AT1CC13 : 1;
9794 unsigned AT1CC14 : 1;
9795 unsigned AT1CC15 : 1;
9796 unsigned AT1CC16 : 1;
9797 unsigned AT1CC17 : 1;
9800 struct
9802 unsigned CC10 : 1;
9803 unsigned CC11 : 1;
9804 unsigned CC12 : 1;
9805 unsigned CC13 : 1;
9806 unsigned CC14 : 1;
9807 unsigned CC15 : 1;
9808 unsigned CC16 : 1;
9809 unsigned CC17 : 1;
9811 } __AT1CC1Lbits_t;
9813 extern __at(0x088F) volatile __AT1CC1Lbits_t AT1CC1Lbits;
9815 #define _AT1CC10 0x01
9816 #define _CC10 0x01
9817 #define _AT1CC11 0x02
9818 #define _CC11 0x02
9819 #define _AT1CC12 0x04
9820 #define _CC12 0x04
9821 #define _AT1CC13 0x08
9822 #define _CC13 0x08
9823 #define _AT1CC14 0x10
9824 #define _CC14 0x10
9825 #define _AT1CC15 0x20
9826 #define _CC15 0x20
9827 #define _AT1CC16 0x40
9828 #define _CC16 0x40
9829 #define _AT1CC17 0x80
9830 #define _CC17 0x80
9832 //==============================================================================
9835 //==============================================================================
9836 // AT1CC1H Bits
9838 extern __at(0x0890) __sfr AT1CC1H;
9840 typedef union
9842 struct
9844 unsigned AT1CC18 : 1;
9845 unsigned AT1CC19 : 1;
9846 unsigned : 1;
9847 unsigned : 1;
9848 unsigned : 1;
9849 unsigned : 1;
9850 unsigned : 1;
9851 unsigned : 1;
9854 struct
9856 unsigned CC18 : 1;
9857 unsigned CC19 : 1;
9858 unsigned : 1;
9859 unsigned : 1;
9860 unsigned : 1;
9861 unsigned : 1;
9862 unsigned : 1;
9863 unsigned : 1;
9865 } __AT1CC1Hbits_t;
9867 extern __at(0x0890) volatile __AT1CC1Hbits_t AT1CC1Hbits;
9869 #define _AT1CC18 0x01
9870 #define _CC18 0x01
9871 #define _AT1CC19 0x02
9872 #define _CC19 0x02
9874 //==============================================================================
9877 //==============================================================================
9878 // AT1CCON1 Bits
9880 extern __at(0x0891) __sfr AT1CCON1;
9882 typedef union
9884 struct
9886 unsigned AT1CC1MODE : 1;
9887 unsigned : 1;
9888 unsigned : 1;
9889 unsigned AT1CAP1P : 1;
9890 unsigned AT1CC1POL : 1;
9891 unsigned : 1;
9892 unsigned : 1;
9893 unsigned AT1CC1EN : 1;
9896 struct
9898 unsigned CC1MODE : 1;
9899 unsigned : 1;
9900 unsigned : 1;
9901 unsigned CAP1P : 1;
9902 unsigned CC1POL : 1;
9903 unsigned : 1;
9904 unsigned : 1;
9905 unsigned CC1EN : 1;
9907 } __AT1CCON1bits_t;
9909 extern __at(0x0891) volatile __AT1CCON1bits_t AT1CCON1bits;
9911 #define _AT1CC1MODE 0x01
9912 #define _CC1MODE 0x01
9913 #define _AT1CAP1P 0x08
9914 #define _CAP1P 0x08
9915 #define _AT1CC1POL 0x10
9916 #define _CC1POL 0x10
9917 #define _AT1CC1EN 0x80
9918 #define _CC1EN 0x80
9920 //==============================================================================
9923 //==============================================================================
9924 // AT1CSEL2 Bits
9926 extern __at(0x0892) __sfr AT1CSEL2;
9928 typedef union
9930 struct
9932 unsigned AT1CP2S0 : 1;
9933 unsigned AT1CP2S1 : 1;
9934 unsigned AT1CP2S2 : 1;
9935 unsigned : 1;
9936 unsigned : 1;
9937 unsigned : 1;
9938 unsigned : 1;
9939 unsigned : 1;
9942 struct
9944 unsigned CP2S0 : 1;
9945 unsigned CP2S1 : 1;
9946 unsigned CP2S2 : 1;
9947 unsigned : 1;
9948 unsigned : 1;
9949 unsigned : 1;
9950 unsigned : 1;
9951 unsigned : 1;
9954 struct
9956 unsigned CP2S : 3;
9957 unsigned : 5;
9960 struct
9962 unsigned AT1CP2S : 3;
9963 unsigned : 5;
9965 } __AT1CSEL2bits_t;
9967 extern __at(0x0892) volatile __AT1CSEL2bits_t AT1CSEL2bits;
9969 #define _AT1CP2S0 0x01
9970 #define _CP2S0 0x01
9971 #define _AT1CP2S1 0x02
9972 #define _CP2S1 0x02
9973 #define _AT1CP2S2 0x04
9974 #define _CP2S2 0x04
9976 //==============================================================================
9978 extern __at(0x0893) __sfr AT1CC2;
9980 //==============================================================================
9981 // AT1CC2L Bits
9983 extern __at(0x0893) __sfr AT1CC2L;
9985 typedef union
9987 struct
9989 unsigned AT1CC20 : 1;
9990 unsigned AT1CC21 : 1;
9991 unsigned AT1CC22 : 1;
9992 unsigned AT1CC23 : 1;
9993 unsigned AT1CC24 : 1;
9994 unsigned AT1CC25 : 1;
9995 unsigned AT1CC26 : 1;
9996 unsigned AT1CC27 : 1;
9999 struct
10001 unsigned CC20 : 1;
10002 unsigned CC21 : 1;
10003 unsigned CC22 : 1;
10004 unsigned CC13 : 1;
10005 unsigned CC24 : 1;
10006 unsigned CCW5 : 1;
10007 unsigned CC26 : 1;
10008 unsigned CC27 : 1;
10010 } __AT1CC2Lbits_t;
10012 extern __at(0x0893) volatile __AT1CC2Lbits_t AT1CC2Lbits;
10014 #define _AT1CC2L_AT1CC20 0x01
10015 #define _AT1CC2L_CC20 0x01
10016 #define _AT1CC2L_AT1CC21 0x02
10017 #define _AT1CC2L_CC21 0x02
10018 #define _AT1CC2L_AT1CC22 0x04
10019 #define _AT1CC2L_CC22 0x04
10020 #define _AT1CC2L_AT1CC23 0x08
10021 #define _AT1CC2L_CC13 0x08
10022 #define _AT1CC2L_AT1CC24 0x10
10023 #define _AT1CC2L_CC24 0x10
10024 #define _AT1CC2L_AT1CC25 0x20
10025 #define _AT1CC2L_CCW5 0x20
10026 #define _AT1CC2L_AT1CC26 0x40
10027 #define _AT1CC2L_CC26 0x40
10028 #define _AT1CC2L_AT1CC27 0x80
10029 #define _AT1CC2L_CC27 0x80
10031 //==============================================================================
10034 //==============================================================================
10035 // AT1CC2H Bits
10037 extern __at(0x0894) __sfr AT1CC2H;
10039 typedef union
10041 struct
10043 unsigned AT1CC28 : 1;
10044 unsigned AT1CC29 : 1;
10045 unsigned : 1;
10046 unsigned : 1;
10047 unsigned : 1;
10048 unsigned : 1;
10049 unsigned : 1;
10050 unsigned : 1;
10053 struct
10055 unsigned CC28 : 1;
10056 unsigned CC29 : 1;
10057 unsigned : 1;
10058 unsigned : 1;
10059 unsigned : 1;
10060 unsigned : 1;
10061 unsigned : 1;
10062 unsigned : 1;
10064 } __AT1CC2Hbits_t;
10066 extern __at(0x0894) volatile __AT1CC2Hbits_t AT1CC2Hbits;
10068 #define _AT1CC28 0x01
10069 #define _CC28 0x01
10070 #define _AT1CC29 0x02
10071 #define _CC29 0x02
10073 //==============================================================================
10076 //==============================================================================
10077 // AT1CCON2 Bits
10079 extern __at(0x0895) __sfr AT1CCON2;
10081 typedef union
10083 struct
10085 unsigned AT1CC2MODE : 1;
10086 unsigned : 1;
10087 unsigned : 1;
10088 unsigned AT1CAP2P : 1;
10089 unsigned AT1CC2POL : 1;
10090 unsigned : 1;
10091 unsigned : 1;
10092 unsigned AT1CC2EN : 1;
10095 struct
10097 unsigned CC2MODE : 1;
10098 unsigned : 1;
10099 unsigned : 1;
10100 unsigned CAP2P : 1;
10101 unsigned CC2POL : 1;
10102 unsigned : 1;
10103 unsigned : 1;
10104 unsigned CC2EN : 1;
10106 } __AT1CCON2bits_t;
10108 extern __at(0x0895) volatile __AT1CCON2bits_t AT1CCON2bits;
10110 #define _AT1CC2MODE 0x01
10111 #define _CC2MODE 0x01
10112 #define _AT1CAP2P 0x08
10113 #define _CAP2P 0x08
10114 #define _AT1CC2POL 0x10
10115 #define _CC2POL 0x10
10116 #define _AT1CC2EN 0x80
10117 #define _CC2EN 0x80
10119 //==============================================================================
10122 //==============================================================================
10123 // AT1CSEL3 Bits
10125 extern __at(0x0896) __sfr AT1CSEL3;
10127 typedef union
10129 struct
10131 unsigned AT1CP3S0 : 1;
10132 unsigned AT1CP3S1 : 1;
10133 unsigned AT1CP3S2 : 1;
10134 unsigned : 1;
10135 unsigned : 1;
10136 unsigned : 1;
10137 unsigned : 1;
10138 unsigned : 1;
10141 struct
10143 unsigned CP3S0 : 1;
10144 unsigned CP3S1 : 1;
10145 unsigned CP3S2 : 1;
10146 unsigned : 1;
10147 unsigned : 1;
10148 unsigned : 1;
10149 unsigned : 1;
10150 unsigned : 1;
10153 struct
10155 unsigned CP3S : 3;
10156 unsigned : 5;
10159 struct
10161 unsigned AT1CP3S : 3;
10162 unsigned : 5;
10164 } __AT1CSEL3bits_t;
10166 extern __at(0x0896) volatile __AT1CSEL3bits_t AT1CSEL3bits;
10168 #define _AT1CP3S0 0x01
10169 #define _CP3S0 0x01
10170 #define _AT1CP3S1 0x02
10171 #define _CP3S1 0x02
10172 #define _AT1CP3S2 0x04
10173 #define _CP3S2 0x04
10175 //==============================================================================
10177 extern __at(0x0897) __sfr AT1CC3;
10179 //==============================================================================
10180 // AT1CC3L Bits
10182 extern __at(0x0897) __sfr AT1CC3L;
10184 typedef union
10186 struct
10188 unsigned AT1CC30 : 1;
10189 unsigned AT1CC31 : 1;
10190 unsigned AT1CC32 : 1;
10191 unsigned AT1CC33 : 1;
10192 unsigned AT1CC34 : 1;
10193 unsigned AT1CC35 : 1;
10194 unsigned AT1CC36 : 1;
10195 unsigned AT1CC37 : 1;
10198 struct
10200 unsigned CC30 : 1;
10201 unsigned CC31 : 1;
10202 unsigned CC32 : 1;
10203 unsigned CC33 : 1;
10204 unsigned CC34 : 1;
10205 unsigned CC35 : 1;
10206 unsigned CC36 : 1;
10207 unsigned CC37 : 1;
10209 } __AT1CC3Lbits_t;
10211 extern __at(0x0897) volatile __AT1CC3Lbits_t AT1CC3Lbits;
10213 #define _AT1CC30 0x01
10214 #define _CC30 0x01
10215 #define _AT1CC31 0x02
10216 #define _CC31 0x02
10217 #define _AT1CC32 0x04
10218 #define _CC32 0x04
10219 #define _AT1CC33 0x08
10220 #define _CC33 0x08
10221 #define _AT1CC34 0x10
10222 #define _CC34 0x10
10223 #define _AT1CC35 0x20
10224 #define _CC35 0x20
10225 #define _AT1CC36 0x40
10226 #define _CC36 0x40
10227 #define _AT1CC37 0x80
10228 #define _CC37 0x80
10230 //==============================================================================
10233 //==============================================================================
10234 // AT1CC3H Bits
10236 extern __at(0x0898) __sfr AT1CC3H;
10238 typedef union
10240 struct
10242 unsigned AT1CC38 : 1;
10243 unsigned AT1CC39 : 1;
10244 unsigned : 1;
10245 unsigned : 1;
10246 unsigned : 1;
10247 unsigned : 1;
10248 unsigned : 1;
10249 unsigned : 1;
10252 struct
10254 unsigned CC38 : 1;
10255 unsigned CC39 : 1;
10256 unsigned : 1;
10257 unsigned : 1;
10258 unsigned : 1;
10259 unsigned : 1;
10260 unsigned : 1;
10261 unsigned : 1;
10263 } __AT1CC3Hbits_t;
10265 extern __at(0x0898) volatile __AT1CC3Hbits_t AT1CC3Hbits;
10267 #define _AT1CC38 0x01
10268 #define _CC38 0x01
10269 #define _AT1CC39 0x02
10270 #define _CC39 0x02
10272 //==============================================================================
10275 //==============================================================================
10276 // AT1CCON3 Bits
10278 extern __at(0x0899) __sfr AT1CCON3;
10280 typedef union
10282 struct
10284 unsigned AT1CC3MODE : 1;
10285 unsigned : 1;
10286 unsigned : 1;
10287 unsigned AT1CAP3P : 1;
10288 unsigned AT1CC3POL : 1;
10289 unsigned : 1;
10290 unsigned : 1;
10291 unsigned AT1CC3EN : 1;
10294 struct
10296 unsigned CC3MODE : 1;
10297 unsigned : 1;
10298 unsigned : 1;
10299 unsigned CAP3P : 1;
10300 unsigned CC3POL : 1;
10301 unsigned : 1;
10302 unsigned : 1;
10303 unsigned CC3EN : 1;
10305 } __AT1CCON3bits_t;
10307 extern __at(0x0899) volatile __AT1CCON3bits_t AT1CCON3bits;
10309 #define _AT1CC3MODE 0x01
10310 #define _CC3MODE 0x01
10311 #define _AT1CAP3P 0x08
10312 #define _CAP3P 0x08
10313 #define _AT1CC3POL 0x10
10314 #define _CC3POL 0x10
10315 #define _AT1CC3EN 0x80
10316 #define _CC3EN 0x80
10318 //==============================================================================
10320 extern __at(0x0D8C) __sfr SMT1TMR;
10322 //==============================================================================
10323 // SMT1TMRL Bits
10325 extern __at(0x0D8C) __sfr SMT1TMRL;
10327 typedef struct
10329 unsigned SMT1TMR0 : 1;
10330 unsigned SMT1TMR1 : 1;
10331 unsigned SMT1TMR2 : 1;
10332 unsigned SMT1TMR3 : 1;
10333 unsigned SMT1TMR4 : 1;
10334 unsigned SMT1TMR5 : 1;
10335 unsigned SMT1TMR6 : 1;
10336 unsigned SMT1TMR7 : 1;
10337 } __SMT1TMRLbits_t;
10339 extern __at(0x0D8C) volatile __SMT1TMRLbits_t SMT1TMRLbits;
10341 #define _SMT1TMR0 0x01
10342 #define _SMT1TMR1 0x02
10343 #define _SMT1TMR2 0x04
10344 #define _SMT1TMR3 0x08
10345 #define _SMT1TMR4 0x10
10346 #define _SMT1TMR5 0x20
10347 #define _SMT1TMR6 0x40
10348 #define _SMT1TMR7 0x80
10350 //==============================================================================
10353 //==============================================================================
10354 // SMT1TMRH Bits
10356 extern __at(0x0D8D) __sfr SMT1TMRH;
10358 typedef struct
10360 unsigned SMT1TMR8 : 1;
10361 unsigned SMT1TMR9 : 1;
10362 unsigned SMT1TMR10 : 1;
10363 unsigned SMT1TMR11 : 1;
10364 unsigned SMT1TMR12 : 1;
10365 unsigned SMT1TMR13 : 1;
10366 unsigned SMT1TMR14 : 1;
10367 unsigned SMT1TMR15 : 1;
10368 } __SMT1TMRHbits_t;
10370 extern __at(0x0D8D) volatile __SMT1TMRHbits_t SMT1TMRHbits;
10372 #define _SMT1TMR8 0x01
10373 #define _SMT1TMR9 0x02
10374 #define _SMT1TMR10 0x04
10375 #define _SMT1TMR11 0x08
10376 #define _SMT1TMR12 0x10
10377 #define _SMT1TMR13 0x20
10378 #define _SMT1TMR14 0x40
10379 #define _SMT1TMR15 0x80
10381 //==============================================================================
10384 //==============================================================================
10385 // SMT1TMRU Bits
10387 extern __at(0x0D8E) __sfr SMT1TMRU;
10389 typedef struct
10391 unsigned SMT1TMR16 : 1;
10392 unsigned SMT1TMR17 : 1;
10393 unsigned SMT1TMR18 : 1;
10394 unsigned SMT1TMR19 : 1;
10395 unsigned SMT1TMR20 : 1;
10396 unsigned SMT1TMR21 : 1;
10397 unsigned SMT1TMR22 : 1;
10398 unsigned SMT1TMR23 : 1;
10399 } __SMT1TMRUbits_t;
10401 extern __at(0x0D8E) volatile __SMT1TMRUbits_t SMT1TMRUbits;
10403 #define _SMT1TMR16 0x01
10404 #define _SMT1TMR17 0x02
10405 #define _SMT1TMR18 0x04
10406 #define _SMT1TMR19 0x08
10407 #define _SMT1TMR20 0x10
10408 #define _SMT1TMR21 0x20
10409 #define _SMT1TMR22 0x40
10410 #define _SMT1TMR23 0x80
10412 //==============================================================================
10414 extern __at(0x0D8F) __sfr SMT1CPR;
10416 //==============================================================================
10417 // SMT1CPRL Bits
10419 extern __at(0x0D8F) __sfr SMT1CPRL;
10421 typedef struct
10423 unsigned SMT1CPR0 : 1;
10424 unsigned SMT1CPR1 : 1;
10425 unsigned SMT1CPR2 : 1;
10426 unsigned SMT1CPR3 : 1;
10427 unsigned SMT1CPR4 : 1;
10428 unsigned SMT1CPR5 : 1;
10429 unsigned SMT1CPR6 : 1;
10430 unsigned SMT1CPR7 : 1;
10431 } __SMT1CPRLbits_t;
10433 extern __at(0x0D8F) volatile __SMT1CPRLbits_t SMT1CPRLbits;
10435 #define _SMT1CPR0 0x01
10436 #define _SMT1CPR1 0x02
10437 #define _SMT1CPR2 0x04
10438 #define _SMT1CPR3 0x08
10439 #define _SMT1CPR4 0x10
10440 #define _SMT1CPR5 0x20
10441 #define _SMT1CPR6 0x40
10442 #define _SMT1CPR7 0x80
10444 //==============================================================================
10447 //==============================================================================
10448 // SMT1CPRH Bits
10450 extern __at(0x0D90) __sfr SMT1CPRH;
10452 typedef struct
10454 unsigned SMT1CPR8 : 1;
10455 unsigned SMT1CPR9 : 1;
10456 unsigned SMT1CPR10 : 1;
10457 unsigned SMT1CPR11 : 1;
10458 unsigned SMT1CPR12 : 1;
10459 unsigned SMT1CPR13 : 1;
10460 unsigned SMT1CPR14 : 1;
10461 unsigned SMT1CPR15 : 1;
10462 } __SMT1CPRHbits_t;
10464 extern __at(0x0D90) volatile __SMT1CPRHbits_t SMT1CPRHbits;
10466 #define _SMT1CPR8 0x01
10467 #define _SMT1CPR9 0x02
10468 #define _SMT1CPR10 0x04
10469 #define _SMT1CPR11 0x08
10470 #define _SMT1CPR12 0x10
10471 #define _SMT1CPR13 0x20
10472 #define _SMT1CPR14 0x40
10473 #define _SMT1CPR15 0x80
10475 //==============================================================================
10478 //==============================================================================
10479 // SMT1CPRU Bits
10481 extern __at(0x0D91) __sfr SMT1CPRU;
10483 typedef struct
10485 unsigned SMT1CPR16 : 1;
10486 unsigned SMT1CPR17 : 1;
10487 unsigned SMT1CPR18 : 1;
10488 unsigned SMT1CPR19 : 1;
10489 unsigned SMT1CPR20 : 1;
10490 unsigned SMT1CPR21 : 1;
10491 unsigned SMT1CPR22 : 1;
10492 unsigned SMT1CPR23 : 1;
10493 } __SMT1CPRUbits_t;
10495 extern __at(0x0D91) volatile __SMT1CPRUbits_t SMT1CPRUbits;
10497 #define _SMT1CPR16 0x01
10498 #define _SMT1CPR17 0x02
10499 #define _SMT1CPR18 0x04
10500 #define _SMT1CPR19 0x08
10501 #define _SMT1CPR20 0x10
10502 #define _SMT1CPR21 0x20
10503 #define _SMT1CPR22 0x40
10504 #define _SMT1CPR23 0x80
10506 //==============================================================================
10508 extern __at(0x0D92) __sfr SMT1CPW;
10510 //==============================================================================
10511 // SMT1CPWL Bits
10513 extern __at(0x0D92) __sfr SMT1CPWL;
10515 typedef struct
10517 unsigned SMT1CPW0 : 1;
10518 unsigned SMT1CPW1 : 1;
10519 unsigned SMT1CPW2 : 1;
10520 unsigned SMT1CPW3 : 1;
10521 unsigned SMT1CPW4 : 1;
10522 unsigned SMT1CPW5 : 1;
10523 unsigned SMT1CPW6 : 1;
10524 unsigned SMT1CPW7 : 1;
10525 } __SMT1CPWLbits_t;
10527 extern __at(0x0D92) volatile __SMT1CPWLbits_t SMT1CPWLbits;
10529 #define _SMT1CPW0 0x01
10530 #define _SMT1CPW1 0x02
10531 #define _SMT1CPW2 0x04
10532 #define _SMT1CPW3 0x08
10533 #define _SMT1CPW4 0x10
10534 #define _SMT1CPW5 0x20
10535 #define _SMT1CPW6 0x40
10536 #define _SMT1CPW7 0x80
10538 //==============================================================================
10541 //==============================================================================
10542 // SMT1CPWH Bits
10544 extern __at(0x0D93) __sfr SMT1CPWH;
10546 typedef struct
10548 unsigned SMT1CPW8 : 1;
10549 unsigned SMT1CPW9 : 1;
10550 unsigned SMT1CPW10 : 1;
10551 unsigned SMT1CPW11 : 1;
10552 unsigned SMT1CPW12 : 1;
10553 unsigned SMT1CPW13 : 1;
10554 unsigned SMT1CPW14 : 1;
10555 unsigned SMT1CPW15 : 1;
10556 } __SMT1CPWHbits_t;
10558 extern __at(0x0D93) volatile __SMT1CPWHbits_t SMT1CPWHbits;
10560 #define _SMT1CPW8 0x01
10561 #define _SMT1CPW9 0x02
10562 #define _SMT1CPW10 0x04
10563 #define _SMT1CPW11 0x08
10564 #define _SMT1CPW12 0x10
10565 #define _SMT1CPW13 0x20
10566 #define _SMT1CPW14 0x40
10567 #define _SMT1CPW15 0x80
10569 //==============================================================================
10572 //==============================================================================
10573 // SMT1CPWU Bits
10575 extern __at(0x0D94) __sfr SMT1CPWU;
10577 typedef struct
10579 unsigned SMT1CPW16 : 1;
10580 unsigned SMT1CPW17 : 1;
10581 unsigned SMT1CPW18 : 1;
10582 unsigned SMT1CPW19 : 1;
10583 unsigned SMT1CPW20 : 1;
10584 unsigned SMT1CPW21 : 1;
10585 unsigned SMT1CPW22 : 1;
10586 unsigned SMT1CPW23 : 1;
10587 } __SMT1CPWUbits_t;
10589 extern __at(0x0D94) volatile __SMT1CPWUbits_t SMT1CPWUbits;
10591 #define _SMT1CPW16 0x01
10592 #define _SMT1CPW17 0x02
10593 #define _SMT1CPW18 0x04
10594 #define _SMT1CPW19 0x08
10595 #define _SMT1CPW20 0x10
10596 #define _SMT1CPW21 0x20
10597 #define _SMT1CPW22 0x40
10598 #define _SMT1CPW23 0x80
10600 //==============================================================================
10602 extern __at(0x0D95) __sfr SMT1PR;
10604 //==============================================================================
10605 // SMT1PRL Bits
10607 extern __at(0x0D95) __sfr SMT1PRL;
10609 typedef struct
10611 unsigned SMT1PR0 : 1;
10612 unsigned SMT1PR1 : 1;
10613 unsigned SMT1PR2 : 1;
10614 unsigned SMT1PR3 : 1;
10615 unsigned SMT1PR4 : 1;
10616 unsigned SMT1PR5 : 1;
10617 unsigned SMT1PR6 : 1;
10618 unsigned SMT1PR7 : 1;
10619 } __SMT1PRLbits_t;
10621 extern __at(0x0D95) volatile __SMT1PRLbits_t SMT1PRLbits;
10623 #define _SMT1PR0 0x01
10624 #define _SMT1PR1 0x02
10625 #define _SMT1PR2 0x04
10626 #define _SMT1PR3 0x08
10627 #define _SMT1PR4 0x10
10628 #define _SMT1PR5 0x20
10629 #define _SMT1PR6 0x40
10630 #define _SMT1PR7 0x80
10632 //==============================================================================
10635 //==============================================================================
10636 // SMT1PRH Bits
10638 extern __at(0x0D96) __sfr SMT1PRH;
10640 typedef struct
10642 unsigned SMT1PR8 : 1;
10643 unsigned SMT1PR9 : 1;
10644 unsigned SMT1PR10 : 1;
10645 unsigned SMT1PR11 : 1;
10646 unsigned SMT1PR12 : 1;
10647 unsigned SMT1PR13 : 1;
10648 unsigned SMT1PR14 : 1;
10649 unsigned SMT1PR15 : 1;
10650 } __SMT1PRHbits_t;
10652 extern __at(0x0D96) volatile __SMT1PRHbits_t SMT1PRHbits;
10654 #define _SMT1PR8 0x01
10655 #define _SMT1PR9 0x02
10656 #define _SMT1PR10 0x04
10657 #define _SMT1PR11 0x08
10658 #define _SMT1PR12 0x10
10659 #define _SMT1PR13 0x20
10660 #define _SMT1PR14 0x40
10661 #define _SMT1PR15 0x80
10663 //==============================================================================
10666 //==============================================================================
10667 // SMT1PRU Bits
10669 extern __at(0x0D97) __sfr SMT1PRU;
10671 typedef struct
10673 unsigned SMT1PR16 : 1;
10674 unsigned SMT1PR17 : 1;
10675 unsigned SMT1PR18 : 1;
10676 unsigned SMT1PR19 : 1;
10677 unsigned SMT1PR20 : 1;
10678 unsigned SMT1PR21 : 1;
10679 unsigned SMT1PR22 : 1;
10680 unsigned SMT1PR23 : 1;
10681 } __SMT1PRUbits_t;
10683 extern __at(0x0D97) volatile __SMT1PRUbits_t SMT1PRUbits;
10685 #define _SMT1PR16 0x01
10686 #define _SMT1PR17 0x02
10687 #define _SMT1PR18 0x04
10688 #define _SMT1PR19 0x08
10689 #define _SMT1PR20 0x10
10690 #define _SMT1PR21 0x20
10691 #define _SMT1PR22 0x40
10692 #define _SMT1PR23 0x80
10694 //==============================================================================
10697 //==============================================================================
10698 // SMT1CON0 Bits
10700 extern __at(0x0D98) __sfr SMT1CON0;
10702 typedef union
10704 struct
10706 unsigned SMT1PS0 : 1;
10707 unsigned SMT1PS1 : 1;
10708 unsigned CPOL : 1;
10709 unsigned SPOL : 1;
10710 unsigned WPOL : 1;
10711 unsigned STP : 1;
10712 unsigned : 1;
10713 unsigned EN : 1;
10716 struct
10718 unsigned SMT1PS : 2;
10719 unsigned : 6;
10721 } __SMT1CON0bits_t;
10723 extern __at(0x0D98) volatile __SMT1CON0bits_t SMT1CON0bits;
10725 #define _SMT1CON0_SMT1PS0 0x01
10726 #define _SMT1CON0_SMT1PS1 0x02
10727 #define _SMT1CON0_CPOL 0x04
10728 #define _SMT1CON0_SPOL 0x08
10729 #define _SMT1CON0_WPOL 0x10
10730 #define _SMT1CON0_STP 0x20
10731 #define _SMT1CON0_EN 0x80
10733 //==============================================================================
10736 //==============================================================================
10737 // SMT1CON1 Bits
10739 extern __at(0x0D99) __sfr SMT1CON1;
10741 typedef union
10743 struct
10745 unsigned MODE0 : 1;
10746 unsigned MODE1 : 1;
10747 unsigned MODE2 : 1;
10748 unsigned MODE3 : 1;
10749 unsigned : 1;
10750 unsigned : 1;
10751 unsigned REPEAT : 1;
10752 unsigned SMT1GO : 1;
10755 struct
10757 unsigned SMT1MODE0 : 1;
10758 unsigned SMT1MODE1 : 1;
10759 unsigned SMT1MODE2 : 1;
10760 unsigned SMT1MODE3 : 1;
10761 unsigned : 1;
10762 unsigned : 1;
10763 unsigned SMT1REPEAT : 1;
10764 unsigned : 1;
10767 struct
10769 unsigned SMT1MODE : 4;
10770 unsigned : 4;
10773 struct
10775 unsigned MODE : 4;
10776 unsigned : 4;
10778 } __SMT1CON1bits_t;
10780 extern __at(0x0D99) volatile __SMT1CON1bits_t SMT1CON1bits;
10782 #define _SMT1CON1_MODE0 0x01
10783 #define _SMT1CON1_SMT1MODE0 0x01
10784 #define _SMT1CON1_MODE1 0x02
10785 #define _SMT1CON1_SMT1MODE1 0x02
10786 #define _SMT1CON1_MODE2 0x04
10787 #define _SMT1CON1_SMT1MODE2 0x04
10788 #define _SMT1CON1_MODE3 0x08
10789 #define _SMT1CON1_SMT1MODE3 0x08
10790 #define _SMT1CON1_REPEAT 0x40
10791 #define _SMT1CON1_SMT1REPEAT 0x40
10792 #define _SMT1CON1_SMT1GO 0x80
10794 //==============================================================================
10797 //==============================================================================
10798 // SMT1STAT Bits
10800 extern __at(0x0D9A) __sfr SMT1STAT;
10802 typedef union
10804 struct
10806 unsigned AS : 1;
10807 unsigned WS : 1;
10808 unsigned TS : 1;
10809 unsigned : 1;
10810 unsigned : 1;
10811 unsigned RST : 1;
10812 unsigned CPWUP : 1;
10813 unsigned CPRUP : 1;
10816 struct
10818 unsigned SMT1AS : 1;
10819 unsigned SMT1WS : 1;
10820 unsigned SMT1TS : 1;
10821 unsigned : 1;
10822 unsigned : 1;
10823 unsigned SMT1RESET : 1;
10824 unsigned SMT1CPWUP : 1;
10825 unsigned SMT1CPRUP : 1;
10827 } __SMT1STATbits_t;
10829 extern __at(0x0D9A) volatile __SMT1STATbits_t SMT1STATbits;
10831 #define _AS 0x01
10832 #define _SMT1AS 0x01
10833 #define _WS 0x02
10834 #define _SMT1WS 0x02
10835 #define _TS 0x04
10836 #define _SMT1TS 0x04
10837 #define _RST 0x20
10838 #define _SMT1RESET 0x20
10839 #define _CPWUP 0x40
10840 #define _SMT1CPWUP 0x40
10841 #define _CPRUP 0x80
10842 #define _SMT1CPRUP 0x80
10844 //==============================================================================
10847 //==============================================================================
10848 // SMT1CLK Bits
10850 extern __at(0x0D9B) __sfr SMT1CLK;
10852 typedef union
10854 struct
10856 unsigned CSEL0 : 1;
10857 unsigned CSEL1 : 1;
10858 unsigned CSEL2 : 1;
10859 unsigned : 1;
10860 unsigned : 1;
10861 unsigned : 1;
10862 unsigned : 1;
10863 unsigned : 1;
10866 struct
10868 unsigned SMT1CSEL0 : 1;
10869 unsigned SMT1CSEL1 : 1;
10870 unsigned SMT1CSEL2 : 1;
10871 unsigned : 1;
10872 unsigned : 1;
10873 unsigned : 1;
10874 unsigned : 1;
10875 unsigned : 1;
10878 struct
10880 unsigned SMT1CSEL : 3;
10881 unsigned : 5;
10884 struct
10886 unsigned CSEL : 3;
10887 unsigned : 5;
10889 } __SMT1CLKbits_t;
10891 extern __at(0x0D9B) volatile __SMT1CLKbits_t SMT1CLKbits;
10893 #define _CSEL0 0x01
10894 #define _SMT1CSEL0 0x01
10895 #define _CSEL1 0x02
10896 #define _SMT1CSEL1 0x02
10897 #define _CSEL2 0x04
10898 #define _SMT1CSEL2 0x04
10900 //==============================================================================
10903 //==============================================================================
10904 // SMT1SIG Bits
10906 extern __at(0x0D9C) __sfr SMT1SIG;
10908 typedef union
10910 struct
10912 unsigned SSEL0 : 1;
10913 unsigned SSEL1 : 1;
10914 unsigned SSEL2 : 1;
10915 unsigned SSEL3 : 1;
10916 unsigned SSEL4 : 1;
10917 unsigned : 1;
10918 unsigned : 1;
10919 unsigned : 1;
10922 struct
10924 unsigned SMT1SSEL0 : 1;
10925 unsigned SMT1SSEL1 : 1;
10926 unsigned SMT1SSEL2 : 1;
10927 unsigned SMT1SSEL3 : 1;
10928 unsigned SMT1SSEL4 : 1;
10929 unsigned : 1;
10930 unsigned : 1;
10931 unsigned : 1;
10934 struct
10936 unsigned SMT1SSEL : 5;
10937 unsigned : 3;
10940 struct
10942 unsigned SSEL : 5;
10943 unsigned : 3;
10945 } __SMT1SIGbits_t;
10947 extern __at(0x0D9C) volatile __SMT1SIGbits_t SMT1SIGbits;
10949 #define _SMT1SIG_SSEL0 0x01
10950 #define _SMT1SIG_SMT1SSEL0 0x01
10951 #define _SMT1SIG_SSEL1 0x02
10952 #define _SMT1SIG_SMT1SSEL1 0x02
10953 #define _SMT1SIG_SSEL2 0x04
10954 #define _SMT1SIG_SMT1SSEL2 0x04
10955 #define _SMT1SIG_SSEL3 0x08
10956 #define _SMT1SIG_SMT1SSEL3 0x08
10957 #define _SMT1SIG_SSEL4 0x10
10958 #define _SMT1SIG_SMT1SSEL4 0x10
10960 //==============================================================================
10963 //==============================================================================
10964 // SMT1WIN Bits
10966 extern __at(0x0D9D) __sfr SMT1WIN;
10968 typedef union
10970 struct
10972 unsigned WSEL0 : 1;
10973 unsigned WSEL1 : 1;
10974 unsigned WSEL2 : 1;
10975 unsigned WSEL3 : 1;
10976 unsigned WSEL4 : 1;
10977 unsigned : 1;
10978 unsigned : 1;
10979 unsigned : 1;
10982 struct
10984 unsigned SMT1WSEL0 : 1;
10985 unsigned SMT1WSEL1 : 1;
10986 unsigned SMT1WSEL2 : 1;
10987 unsigned SMT1WSEL3 : 1;
10988 unsigned SMT1WSEL4 : 1;
10989 unsigned : 1;
10990 unsigned : 1;
10991 unsigned : 1;
10994 struct
10996 unsigned WSEL : 5;
10997 unsigned : 3;
11000 struct
11002 unsigned SMT1WSEL : 5;
11003 unsigned : 3;
11005 } __SMT1WINbits_t;
11007 extern __at(0x0D9D) volatile __SMT1WINbits_t SMT1WINbits;
11009 #define _WSEL0 0x01
11010 #define _SMT1WSEL0 0x01
11011 #define _WSEL1 0x02
11012 #define _SMT1WSEL1 0x02
11013 #define _WSEL2 0x04
11014 #define _SMT1WSEL2 0x04
11015 #define _WSEL3 0x08
11016 #define _SMT1WSEL3 0x08
11017 #define _WSEL4 0x10
11018 #define _SMT1WSEL4 0x10
11020 //==============================================================================
11022 extern __at(0x0D9E) __sfr SMT2TMR;
11024 //==============================================================================
11025 // SMT2TMRL Bits
11027 extern __at(0x0D9E) __sfr SMT2TMRL;
11029 typedef struct
11031 unsigned SMT2TMR0 : 1;
11032 unsigned SMT2TMR1 : 1;
11033 unsigned SMT2TMR2 : 1;
11034 unsigned SMT2TMR3 : 1;
11035 unsigned SMT2TMR4 : 1;
11036 unsigned SMT2TMR5 : 1;
11037 unsigned SMT2TMR6 : 1;
11038 unsigned SMT2TMR7 : 1;
11039 } __SMT2TMRLbits_t;
11041 extern __at(0x0D9E) volatile __SMT2TMRLbits_t SMT2TMRLbits;
11043 #define _SMT2TMR0 0x01
11044 #define _SMT2TMR1 0x02
11045 #define _SMT2TMR2 0x04
11046 #define _SMT2TMR3 0x08
11047 #define _SMT2TMR4 0x10
11048 #define _SMT2TMR5 0x20
11049 #define _SMT2TMR6 0x40
11050 #define _SMT2TMR7 0x80
11052 //==============================================================================
11055 //==============================================================================
11056 // SMT2TMRH Bits
11058 extern __at(0x0D9F) __sfr SMT2TMRH;
11060 typedef struct
11062 unsigned SMT2TMR8 : 1;
11063 unsigned SMT2TMR9 : 1;
11064 unsigned SMT2TMR10 : 1;
11065 unsigned SMT2TMR11 : 1;
11066 unsigned SMT2TMR12 : 1;
11067 unsigned SMT2TMR13 : 1;
11068 unsigned SMT2TMR14 : 1;
11069 unsigned SMT2TMR15 : 1;
11070 } __SMT2TMRHbits_t;
11072 extern __at(0x0D9F) volatile __SMT2TMRHbits_t SMT2TMRHbits;
11074 #define _SMT2TMR8 0x01
11075 #define _SMT2TMR9 0x02
11076 #define _SMT2TMR10 0x04
11077 #define _SMT2TMR11 0x08
11078 #define _SMT2TMR12 0x10
11079 #define _SMT2TMR13 0x20
11080 #define _SMT2TMR14 0x40
11081 #define _SMT2TMR15 0x80
11083 //==============================================================================
11086 //==============================================================================
11087 // SMT2TMRU Bits
11089 extern __at(0x0DA0) __sfr SMT2TMRU;
11091 typedef struct
11093 unsigned SMT2TMR16 : 1;
11094 unsigned SMT2TMR17 : 1;
11095 unsigned SMT2TMR18 : 1;
11096 unsigned SMT2TMR19 : 1;
11097 unsigned SMT2TMR20 : 1;
11098 unsigned SMT2TMR21 : 1;
11099 unsigned SMT2TMR22 : 1;
11100 unsigned SMT2TMR23 : 1;
11101 } __SMT2TMRUbits_t;
11103 extern __at(0x0DA0) volatile __SMT2TMRUbits_t SMT2TMRUbits;
11105 #define _SMT2TMR16 0x01
11106 #define _SMT2TMR17 0x02
11107 #define _SMT2TMR18 0x04
11108 #define _SMT2TMR19 0x08
11109 #define _SMT2TMR20 0x10
11110 #define _SMT2TMR21 0x20
11111 #define _SMT2TMR22 0x40
11112 #define _SMT2TMR23 0x80
11114 //==============================================================================
11116 extern __at(0x0DA1) __sfr SMT2CPR;
11118 //==============================================================================
11119 // SMT2CPRL Bits
11121 extern __at(0x0DA1) __sfr SMT2CPRL;
11123 typedef struct
11125 unsigned SMT2CPR0 : 1;
11126 unsigned SMT2CPR1 : 1;
11127 unsigned SMT2CPR2 : 1;
11128 unsigned SMT2CPR3 : 1;
11129 unsigned SMT2CPR4 : 1;
11130 unsigned SMT2CPR5 : 1;
11131 unsigned SMT2CPR6 : 1;
11132 unsigned SMT2CPR7 : 1;
11133 } __SMT2CPRLbits_t;
11135 extern __at(0x0DA1) volatile __SMT2CPRLbits_t SMT2CPRLbits;
11137 #define _SMT2CPR0 0x01
11138 #define _SMT2CPR1 0x02
11139 #define _SMT2CPR2 0x04
11140 #define _SMT2CPR3 0x08
11141 #define _SMT2CPR4 0x10
11142 #define _SMT2CPR5 0x20
11143 #define _SMT2CPR6 0x40
11144 #define _SMT2CPR7 0x80
11146 //==============================================================================
11149 //==============================================================================
11150 // SMT2CPRH Bits
11152 extern __at(0x0DA2) __sfr SMT2CPRH;
11154 typedef struct
11156 unsigned SMT2CPR8 : 1;
11157 unsigned SMT2CPR9 : 1;
11158 unsigned SMT2CPR10 : 1;
11159 unsigned SMT2CPR11 : 1;
11160 unsigned SMT2CPR12 : 1;
11161 unsigned SMT2CPR13 : 1;
11162 unsigned SMT2CPR14 : 1;
11163 unsigned SMT2CPR15 : 1;
11164 } __SMT2CPRHbits_t;
11166 extern __at(0x0DA2) volatile __SMT2CPRHbits_t SMT2CPRHbits;
11168 #define _SMT2CPR8 0x01
11169 #define _SMT2CPR9 0x02
11170 #define _SMT2CPR10 0x04
11171 #define _SMT2CPR11 0x08
11172 #define _SMT2CPR12 0x10
11173 #define _SMT2CPR13 0x20
11174 #define _SMT2CPR14 0x40
11175 #define _SMT2CPR15 0x80
11177 //==============================================================================
11180 //==============================================================================
11181 // SMT2CPRU Bits
11183 extern __at(0x0DA3) __sfr SMT2CPRU;
11185 typedef struct
11187 unsigned SMT2CPR16 : 1;
11188 unsigned SMT2CPR17 : 1;
11189 unsigned SMT2CPR18 : 1;
11190 unsigned SMT2CPR19 : 1;
11191 unsigned SMT2CPR20 : 1;
11192 unsigned SMT2CPR21 : 1;
11193 unsigned SMT2CPR22 : 1;
11194 unsigned SMT2CPR23 : 1;
11195 } __SMT2CPRUbits_t;
11197 extern __at(0x0DA3) volatile __SMT2CPRUbits_t SMT2CPRUbits;
11199 #define _SMT2CPR16 0x01
11200 #define _SMT2CPR17 0x02
11201 #define _SMT2CPR18 0x04
11202 #define _SMT2CPR19 0x08
11203 #define _SMT2CPR20 0x10
11204 #define _SMT2CPR21 0x20
11205 #define _SMT2CPR22 0x40
11206 #define _SMT2CPR23 0x80
11208 //==============================================================================
11210 extern __at(0x0DA4) __sfr SMT2CPW;
11212 //==============================================================================
11213 // SMT2CPWL Bits
11215 extern __at(0x0DA4) __sfr SMT2CPWL;
11217 typedef struct
11219 unsigned SMT2CPW0 : 1;
11220 unsigned SMT2CPW1 : 1;
11221 unsigned SMT2CPW2 : 1;
11222 unsigned SMT2CPW3 : 1;
11223 unsigned SMT2CPW4 : 1;
11224 unsigned SMT2CPW5 : 1;
11225 unsigned SMT2CPW6 : 1;
11226 unsigned SMT2CPW7 : 1;
11227 } __SMT2CPWLbits_t;
11229 extern __at(0x0DA4) volatile __SMT2CPWLbits_t SMT2CPWLbits;
11231 #define _SMT2CPW0 0x01
11232 #define _SMT2CPW1 0x02
11233 #define _SMT2CPW2 0x04
11234 #define _SMT2CPW3 0x08
11235 #define _SMT2CPW4 0x10
11236 #define _SMT2CPW5 0x20
11237 #define _SMT2CPW6 0x40
11238 #define _SMT2CPW7 0x80
11240 //==============================================================================
11243 //==============================================================================
11244 // SMT2CPWH Bits
11246 extern __at(0x0DA5) __sfr SMT2CPWH;
11248 typedef struct
11250 unsigned SMT2CPW8 : 1;
11251 unsigned SMT2CPW9 : 1;
11252 unsigned SMT2CPW10 : 1;
11253 unsigned SMT2CPW11 : 1;
11254 unsigned SMT2CPW12 : 1;
11255 unsigned SMT2CPW13 : 1;
11256 unsigned SMT2CPW14 : 1;
11257 unsigned SMT2CPW15 : 1;
11258 } __SMT2CPWHbits_t;
11260 extern __at(0x0DA5) volatile __SMT2CPWHbits_t SMT2CPWHbits;
11262 #define _SMT2CPW8 0x01
11263 #define _SMT2CPW9 0x02
11264 #define _SMT2CPW10 0x04
11265 #define _SMT2CPW11 0x08
11266 #define _SMT2CPW12 0x10
11267 #define _SMT2CPW13 0x20
11268 #define _SMT2CPW14 0x40
11269 #define _SMT2CPW15 0x80
11271 //==============================================================================
11274 //==============================================================================
11275 // SMT2CPWU Bits
11277 extern __at(0x0DA6) __sfr SMT2CPWU;
11279 typedef struct
11281 unsigned SMT2CPW16 : 1;
11282 unsigned SMT2CPW17 : 1;
11283 unsigned SMT2CPW18 : 1;
11284 unsigned SMT2CPW19 : 1;
11285 unsigned SMT2CPW20 : 1;
11286 unsigned SMT2CPW21 : 1;
11287 unsigned SMT2CPW22 : 1;
11288 unsigned SMT2CPW23 : 1;
11289 } __SMT2CPWUbits_t;
11291 extern __at(0x0DA6) volatile __SMT2CPWUbits_t SMT2CPWUbits;
11293 #define _SMT2CPW16 0x01
11294 #define _SMT2CPW17 0x02
11295 #define _SMT2CPW18 0x04
11296 #define _SMT2CPW19 0x08
11297 #define _SMT2CPW20 0x10
11298 #define _SMT2CPW21 0x20
11299 #define _SMT2CPW22 0x40
11300 #define _SMT2CPW23 0x80
11302 //==============================================================================
11304 extern __at(0x0DA7) __sfr SMT2PR;
11306 //==============================================================================
11307 // SMT2PRL Bits
11309 extern __at(0x0DA7) __sfr SMT2PRL;
11311 typedef struct
11313 unsigned SMT2PR0 : 1;
11314 unsigned SMT2PR1 : 1;
11315 unsigned SMT2PR2 : 1;
11316 unsigned SMT2PR3 : 1;
11317 unsigned SMT2PR4 : 1;
11318 unsigned SMT2PR5 : 1;
11319 unsigned SMT2PR6 : 1;
11320 unsigned SMT2PR7 : 1;
11321 } __SMT2PRLbits_t;
11323 extern __at(0x0DA7) volatile __SMT2PRLbits_t SMT2PRLbits;
11325 #define _SMT2PR0 0x01
11326 #define _SMT2PR1 0x02
11327 #define _SMT2PR2 0x04
11328 #define _SMT2PR3 0x08
11329 #define _SMT2PR4 0x10
11330 #define _SMT2PR5 0x20
11331 #define _SMT2PR6 0x40
11332 #define _SMT2PR7 0x80
11334 //==============================================================================
11337 //==============================================================================
11338 // SMT2PRH Bits
11340 extern __at(0x0DA8) __sfr SMT2PRH;
11342 typedef struct
11344 unsigned SMT2PR8 : 1;
11345 unsigned SMT2PR9 : 1;
11346 unsigned SMT2PR10 : 1;
11347 unsigned SMT2PR11 : 1;
11348 unsigned SMT2PR12 : 1;
11349 unsigned SMT2PR13 : 1;
11350 unsigned SMT2PR14 : 1;
11351 unsigned SMT2PR15 : 1;
11352 } __SMT2PRHbits_t;
11354 extern __at(0x0DA8) volatile __SMT2PRHbits_t SMT2PRHbits;
11356 #define _SMT2PR8 0x01
11357 #define _SMT2PR9 0x02
11358 #define _SMT2PR10 0x04
11359 #define _SMT2PR11 0x08
11360 #define _SMT2PR12 0x10
11361 #define _SMT2PR13 0x20
11362 #define _SMT2PR14 0x40
11363 #define _SMT2PR15 0x80
11365 //==============================================================================
11368 //==============================================================================
11369 // SMT2PRU Bits
11371 extern __at(0x0DA9) __sfr SMT2PRU;
11373 typedef struct
11375 unsigned SMT2PR16 : 1;
11376 unsigned SMT2PR17 : 1;
11377 unsigned SMT2PR18 : 1;
11378 unsigned SMT2PR19 : 1;
11379 unsigned SMT2PR20 : 1;
11380 unsigned SMT2PR21 : 1;
11381 unsigned SMT2PR22 : 1;
11382 unsigned SMT2PR23 : 1;
11383 } __SMT2PRUbits_t;
11385 extern __at(0x0DA9) volatile __SMT2PRUbits_t SMT2PRUbits;
11387 #define _SMT2PR16 0x01
11388 #define _SMT2PR17 0x02
11389 #define _SMT2PR18 0x04
11390 #define _SMT2PR19 0x08
11391 #define _SMT2PR20 0x10
11392 #define _SMT2PR21 0x20
11393 #define _SMT2PR22 0x40
11394 #define _SMT2PR23 0x80
11396 //==============================================================================
11399 //==============================================================================
11400 // SMT2CON0 Bits
11402 extern __at(0x0DAA) __sfr SMT2CON0;
11404 typedef union
11406 struct
11408 unsigned SMT2PS0 : 1;
11409 unsigned SMT2PS1 : 1;
11410 unsigned CPOL : 1;
11411 unsigned SPOL : 1;
11412 unsigned WPOL : 1;
11413 unsigned STP : 1;
11414 unsigned : 1;
11415 unsigned EN : 1;
11418 struct
11420 unsigned SMT2PS : 2;
11421 unsigned : 6;
11423 } __SMT2CON0bits_t;
11425 extern __at(0x0DAA) volatile __SMT2CON0bits_t SMT2CON0bits;
11427 #define _SMT2CON0_SMT2PS0 0x01
11428 #define _SMT2CON0_SMT2PS1 0x02
11429 #define _SMT2CON0_CPOL 0x04
11430 #define _SMT2CON0_SPOL 0x08
11431 #define _SMT2CON0_WPOL 0x10
11432 #define _SMT2CON0_STP 0x20
11433 #define _SMT2CON0_EN 0x80
11435 //==============================================================================
11438 //==============================================================================
11439 // SMT2CON1 Bits
11441 extern __at(0x0DAB) __sfr SMT2CON1;
11443 typedef union
11445 struct
11447 unsigned MODE0 : 1;
11448 unsigned MODE1 : 1;
11449 unsigned MODE2 : 1;
11450 unsigned MODE3 : 1;
11451 unsigned : 1;
11452 unsigned : 1;
11453 unsigned REPEAT : 1;
11454 unsigned SMT2GO : 1;
11457 struct
11459 unsigned SMT2MODE0 : 1;
11460 unsigned SMT2MODE1 : 1;
11461 unsigned SMT2MODE2 : 1;
11462 unsigned SMT2MODE3 : 1;
11463 unsigned : 1;
11464 unsigned : 1;
11465 unsigned SMT2REPEAT : 1;
11466 unsigned : 1;
11469 struct
11471 unsigned SMT2MODE : 4;
11472 unsigned : 4;
11475 struct
11477 unsigned MODE : 4;
11478 unsigned : 4;
11480 } __SMT2CON1bits_t;
11482 extern __at(0x0DAB) volatile __SMT2CON1bits_t SMT2CON1bits;
11484 #define _SMT2CON1_MODE0 0x01
11485 #define _SMT2CON1_SMT2MODE0 0x01
11486 #define _SMT2CON1_MODE1 0x02
11487 #define _SMT2CON1_SMT2MODE1 0x02
11488 #define _SMT2CON1_MODE2 0x04
11489 #define _SMT2CON1_SMT2MODE2 0x04
11490 #define _SMT2CON1_MODE3 0x08
11491 #define _SMT2CON1_SMT2MODE3 0x08
11492 #define _SMT2CON1_REPEAT 0x40
11493 #define _SMT2CON1_SMT2REPEAT 0x40
11494 #define _SMT2CON1_SMT2GO 0x80
11496 //==============================================================================
11499 //==============================================================================
11500 // SMT2STAT Bits
11502 extern __at(0x0DAC) __sfr SMT2STAT;
11504 typedef union
11506 struct
11508 unsigned AS : 1;
11509 unsigned WS : 1;
11510 unsigned TS : 1;
11511 unsigned : 1;
11512 unsigned : 1;
11513 unsigned RST : 1;
11514 unsigned CPWUP : 1;
11515 unsigned CPRUP : 1;
11518 struct
11520 unsigned SMT2AS : 1;
11521 unsigned SMT2WS : 1;
11522 unsigned SMT2TS : 1;
11523 unsigned : 1;
11524 unsigned : 1;
11525 unsigned SMT2RESET : 1;
11526 unsigned SMT2CPWUP : 1;
11527 unsigned SMT2CPRUP : 1;
11529 } __SMT2STATbits_t;
11531 extern __at(0x0DAC) volatile __SMT2STATbits_t SMT2STATbits;
11533 #define _SMT2STAT_AS 0x01
11534 #define _SMT2STAT_SMT2AS 0x01
11535 #define _SMT2STAT_WS 0x02
11536 #define _SMT2STAT_SMT2WS 0x02
11537 #define _SMT2STAT_TS 0x04
11538 #define _SMT2STAT_SMT2TS 0x04
11539 #define _SMT2STAT_RST 0x20
11540 #define _SMT2STAT_SMT2RESET 0x20
11541 #define _SMT2STAT_CPWUP 0x40
11542 #define _SMT2STAT_SMT2CPWUP 0x40
11543 #define _SMT2STAT_CPRUP 0x80
11544 #define _SMT2STAT_SMT2CPRUP 0x80
11546 //==============================================================================
11549 //==============================================================================
11550 // SMT2CLK Bits
11552 extern __at(0x0DAD) __sfr SMT2CLK;
11554 typedef union
11556 struct
11558 unsigned CSEL0 : 1;
11559 unsigned CSEL1 : 1;
11560 unsigned CSEL2 : 1;
11561 unsigned : 1;
11562 unsigned : 1;
11563 unsigned : 1;
11564 unsigned : 1;
11565 unsigned : 1;
11568 struct
11570 unsigned SMT2CSEL0 : 1;
11571 unsigned SMT2CSEL1 : 1;
11572 unsigned SMT2CSEL2 : 1;
11573 unsigned : 1;
11574 unsigned : 1;
11575 unsigned : 1;
11576 unsigned : 1;
11577 unsigned : 1;
11580 struct
11582 unsigned CSEL : 3;
11583 unsigned : 5;
11586 struct
11588 unsigned SMT2CSEL : 3;
11589 unsigned : 5;
11591 } __SMT2CLKbits_t;
11593 extern __at(0x0DAD) volatile __SMT2CLKbits_t SMT2CLKbits;
11595 #define _SMT2CLK_CSEL0 0x01
11596 #define _SMT2CLK_SMT2CSEL0 0x01
11597 #define _SMT2CLK_CSEL1 0x02
11598 #define _SMT2CLK_SMT2CSEL1 0x02
11599 #define _SMT2CLK_CSEL2 0x04
11600 #define _SMT2CLK_SMT2CSEL2 0x04
11602 //==============================================================================
11605 //==============================================================================
11606 // SMT2SIG Bits
11608 extern __at(0x0DAE) __sfr SMT2SIG;
11610 typedef union
11612 struct
11614 unsigned SSEL0 : 1;
11615 unsigned SSEL1 : 1;
11616 unsigned SSEL2 : 1;
11617 unsigned SSEL3 : 1;
11618 unsigned SSEL4 : 1;
11619 unsigned : 1;
11620 unsigned : 1;
11621 unsigned : 1;
11624 struct
11626 unsigned SMT2SSEL0 : 1;
11627 unsigned SMT2SSEL1 : 1;
11628 unsigned SMT2SSEL2 : 1;
11629 unsigned SMT2SSEL3 : 1;
11630 unsigned SMT2SSEL4 : 1;
11631 unsigned : 1;
11632 unsigned : 1;
11633 unsigned : 1;
11636 struct
11638 unsigned SMT2SSEL : 5;
11639 unsigned : 3;
11642 struct
11644 unsigned SSEL : 5;
11645 unsigned : 3;
11647 } __SMT2SIGbits_t;
11649 extern __at(0x0DAE) volatile __SMT2SIGbits_t SMT2SIGbits;
11651 #define _SMT2SIG_SSEL0 0x01
11652 #define _SMT2SIG_SMT2SSEL0 0x01
11653 #define _SMT2SIG_SSEL1 0x02
11654 #define _SMT2SIG_SMT2SSEL1 0x02
11655 #define _SMT2SIG_SSEL2 0x04
11656 #define _SMT2SIG_SMT2SSEL2 0x04
11657 #define _SMT2SIG_SSEL3 0x08
11658 #define _SMT2SIG_SMT2SSEL3 0x08
11659 #define _SMT2SIG_SSEL4 0x10
11660 #define _SMT2SIG_SMT2SSEL4 0x10
11662 //==============================================================================
11665 //==============================================================================
11666 // SMT2WIN Bits
11668 extern __at(0x0DAF) __sfr SMT2WIN;
11670 typedef union
11672 struct
11674 unsigned WSEL0 : 1;
11675 unsigned WSEL1 : 1;
11676 unsigned WSEL2 : 1;
11677 unsigned WSEL3 : 1;
11678 unsigned WSEL4 : 1;
11679 unsigned : 1;
11680 unsigned : 1;
11681 unsigned : 1;
11684 struct
11686 unsigned SMT2WSEL0 : 1;
11687 unsigned SMT2WSEL1 : 1;
11688 unsigned SMT2WSEL2 : 1;
11689 unsigned SMT2WSEL3 : 1;
11690 unsigned SMT2WSEL4 : 1;
11691 unsigned : 1;
11692 unsigned : 1;
11693 unsigned : 1;
11696 struct
11698 unsigned WSEL : 5;
11699 unsigned : 3;
11702 struct
11704 unsigned SMT2WSEL : 5;
11705 unsigned : 3;
11707 } __SMT2WINbits_t;
11709 extern __at(0x0DAF) volatile __SMT2WINbits_t SMT2WINbits;
11711 #define _SMT2WIN_WSEL0 0x01
11712 #define _SMT2WIN_SMT2WSEL0 0x01
11713 #define _SMT2WIN_WSEL1 0x02
11714 #define _SMT2WIN_SMT2WSEL1 0x02
11715 #define _SMT2WIN_WSEL2 0x04
11716 #define _SMT2WIN_SMT2WSEL2 0x04
11717 #define _SMT2WIN_WSEL3 0x08
11718 #define _SMT2WIN_SMT2WSEL3 0x08
11719 #define _SMT2WIN_WSEL4 0x10
11720 #define _SMT2WIN_SMT2WSEL4 0x10
11722 //==============================================================================
11725 //==============================================================================
11726 // PPSLOCK Bits
11728 extern __at(0x0E0F) __sfr PPSLOCK;
11730 typedef struct
11732 unsigned PPSLOCKED : 1;
11733 unsigned : 1;
11734 unsigned : 1;
11735 unsigned : 1;
11736 unsigned : 1;
11737 unsigned : 1;
11738 unsigned : 1;
11739 unsigned : 1;
11740 } __PPSLOCKbits_t;
11742 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
11744 #define _PPSLOCKED 0x01
11746 //==============================================================================
11749 //==============================================================================
11750 // INTPPS Bits
11752 extern __at(0x0E10) __sfr INTPPS;
11754 typedef union
11756 struct
11758 unsigned INTPPS0 : 1;
11759 unsigned INTPPS1 : 1;
11760 unsigned INTPPS2 : 1;
11761 unsigned INTPPS3 : 1;
11762 unsigned INTPPS4 : 1;
11763 unsigned : 1;
11764 unsigned : 1;
11765 unsigned : 1;
11768 struct
11770 unsigned INTPPS : 5;
11771 unsigned : 3;
11773 } __INTPPSbits_t;
11775 extern __at(0x0E10) volatile __INTPPSbits_t INTPPSbits;
11777 #define _INTPPS0 0x01
11778 #define _INTPPS1 0x02
11779 #define _INTPPS2 0x04
11780 #define _INTPPS3 0x08
11781 #define _INTPPS4 0x10
11783 //==============================================================================
11786 //==============================================================================
11787 // T0CKIPPS Bits
11789 extern __at(0x0E11) __sfr T0CKIPPS;
11791 typedef union
11793 struct
11795 unsigned T0CKIPPS0 : 1;
11796 unsigned T0CKIPPS1 : 1;
11797 unsigned T0CKIPPS2 : 1;
11798 unsigned T0CKIPPS3 : 1;
11799 unsigned T0CKIPPS4 : 1;
11800 unsigned : 1;
11801 unsigned : 1;
11802 unsigned : 1;
11805 struct
11807 unsigned T0CKIPPS : 5;
11808 unsigned : 3;
11810 } __T0CKIPPSbits_t;
11812 extern __at(0x0E11) volatile __T0CKIPPSbits_t T0CKIPPSbits;
11814 #define _T0CKIPPS0 0x01
11815 #define _T0CKIPPS1 0x02
11816 #define _T0CKIPPS2 0x04
11817 #define _T0CKIPPS3 0x08
11818 #define _T0CKIPPS4 0x10
11820 //==============================================================================
11823 //==============================================================================
11824 // T1CKIPPS Bits
11826 extern __at(0x0E12) __sfr T1CKIPPS;
11828 typedef union
11830 struct
11832 unsigned T1CKIPPS0 : 1;
11833 unsigned T1CKIPPS1 : 1;
11834 unsigned T1CKIPPS2 : 1;
11835 unsigned T1CKIPPS3 : 1;
11836 unsigned T1CKIPPS4 : 1;
11837 unsigned : 1;
11838 unsigned : 1;
11839 unsigned : 1;
11842 struct
11844 unsigned T1CKIPPS : 5;
11845 unsigned : 3;
11847 } __T1CKIPPSbits_t;
11849 extern __at(0x0E12) volatile __T1CKIPPSbits_t T1CKIPPSbits;
11851 #define _T1CKIPPS0 0x01
11852 #define _T1CKIPPS1 0x02
11853 #define _T1CKIPPS2 0x04
11854 #define _T1CKIPPS3 0x08
11855 #define _T1CKIPPS4 0x10
11857 //==============================================================================
11860 //==============================================================================
11861 // T1GPPS Bits
11863 extern __at(0x0E13) __sfr T1GPPS;
11865 typedef union
11867 struct
11869 unsigned T1GPPS0 : 1;
11870 unsigned T1GPPS1 : 1;
11871 unsigned T1GPPS2 : 1;
11872 unsigned T1GPPS3 : 1;
11873 unsigned T1GPPS4 : 1;
11874 unsigned : 1;
11875 unsigned : 1;
11876 unsigned : 1;
11879 struct
11881 unsigned T1GPPS : 5;
11882 unsigned : 3;
11884 } __T1GPPSbits_t;
11886 extern __at(0x0E13) volatile __T1GPPSbits_t T1GPPSbits;
11888 #define _T1GPPS0 0x01
11889 #define _T1GPPS1 0x02
11890 #define _T1GPPS2 0x04
11891 #define _T1GPPS3 0x08
11892 #define _T1GPPS4 0x10
11894 //==============================================================================
11897 //==============================================================================
11898 // CCP1PPS Bits
11900 extern __at(0x0E14) __sfr CCP1PPS;
11902 typedef union
11904 struct
11906 unsigned CCP1PPS0 : 1;
11907 unsigned CCP1PPS1 : 1;
11908 unsigned CCP1PPS2 : 1;
11909 unsigned CCP1PPS3 : 1;
11910 unsigned CCP1PPS4 : 1;
11911 unsigned : 1;
11912 unsigned : 1;
11913 unsigned : 1;
11916 struct
11918 unsigned CCP1PPS : 5;
11919 unsigned : 3;
11921 } __CCP1PPSbits_t;
11923 extern __at(0x0E14) volatile __CCP1PPSbits_t CCP1PPSbits;
11925 #define _CCP1PPS0 0x01
11926 #define _CCP1PPS1 0x02
11927 #define _CCP1PPS2 0x04
11928 #define _CCP1PPS3 0x08
11929 #define _CCP1PPS4 0x10
11931 //==============================================================================
11934 //==============================================================================
11935 // CCP2PPS Bits
11937 extern __at(0x0E15) __sfr CCP2PPS;
11939 typedef union
11941 struct
11943 unsigned CCP2PPS0 : 1;
11944 unsigned CCP2PPS1 : 1;
11945 unsigned CCP2PPS2 : 1;
11946 unsigned CCP2PPS3 : 1;
11947 unsigned CCP2PPS4 : 1;
11948 unsigned : 1;
11949 unsigned : 1;
11950 unsigned : 1;
11953 struct
11955 unsigned CCP2PPS : 5;
11956 unsigned : 3;
11958 } __CCP2PPSbits_t;
11960 extern __at(0x0E15) volatile __CCP2PPSbits_t CCP2PPSbits;
11962 #define _CCP2PPS0 0x01
11963 #define _CCP2PPS1 0x02
11964 #define _CCP2PPS2 0x04
11965 #define _CCP2PPS3 0x08
11966 #define _CCP2PPS4 0x10
11968 //==============================================================================
11971 //==============================================================================
11972 // ATINPPS Bits
11974 extern __at(0x0E16) __sfr ATINPPS;
11976 typedef union
11978 struct
11980 unsigned ATINPPS0 : 1;
11981 unsigned ATINPPS1 : 1;
11982 unsigned ATINPPS2 : 1;
11983 unsigned ATINPPS3 : 1;
11984 unsigned ATINPPS4 : 1;
11985 unsigned : 1;
11986 unsigned : 1;
11987 unsigned : 1;
11990 struct
11992 unsigned ATINPPS : 5;
11993 unsigned : 3;
11995 } __ATINPPSbits_t;
11997 extern __at(0x0E16) volatile __ATINPPSbits_t ATINPPSbits;
11999 #define _ATINPPS0 0x01
12000 #define _ATINPPS1 0x02
12001 #define _ATINPPS2 0x04
12002 #define _ATINPPS3 0x08
12003 #define _ATINPPS4 0x10
12005 //==============================================================================
12008 //==============================================================================
12009 // CWGINPPS Bits
12011 extern __at(0x0E17) __sfr CWGINPPS;
12013 typedef union
12015 struct
12017 unsigned CWGINPPS0 : 1;
12018 unsigned CWGINPPS1 : 1;
12019 unsigned CWGINPPS2 : 1;
12020 unsigned CWGINPPS3 : 1;
12021 unsigned CWGINPPS4 : 1;
12022 unsigned : 1;
12023 unsigned : 1;
12024 unsigned : 1;
12027 struct
12029 unsigned CWGINPPS : 5;
12030 unsigned : 3;
12032 } __CWGINPPSbits_t;
12034 extern __at(0x0E17) volatile __CWGINPPSbits_t CWGINPPSbits;
12036 #define _CWGINPPS0 0x01
12037 #define _CWGINPPS1 0x02
12038 #define _CWGINPPS2 0x04
12039 #define _CWGINPPS3 0x08
12040 #define _CWGINPPS4 0x10
12042 //==============================================================================
12045 //==============================================================================
12046 // T2PPS Bits
12048 extern __at(0x0E18) __sfr T2PPS;
12050 typedef union
12052 struct
12054 unsigned T2PPS0 : 1;
12055 unsigned T2PPS1 : 1;
12056 unsigned T2PPS2 : 1;
12057 unsigned T2PPS3 : 1;
12058 unsigned T2PPS4 : 1;
12059 unsigned : 1;
12060 unsigned : 1;
12061 unsigned : 1;
12064 struct
12066 unsigned T2PPS : 5;
12067 unsigned : 3;
12069 } __T2PPSbits_t;
12071 extern __at(0x0E18) volatile __T2PPSbits_t T2PPSbits;
12073 #define _T2PPS0 0x01
12074 #define _T2PPS1 0x02
12075 #define _T2PPS2 0x04
12076 #define _T2PPS3 0x08
12077 #define _T2PPS4 0x10
12079 //==============================================================================
12082 //==============================================================================
12083 // T3CKIPPS Bits
12085 extern __at(0x0E19) __sfr T3CKIPPS;
12087 typedef union
12089 struct
12091 unsigned T3CKIPPS0 : 1;
12092 unsigned T3CKIPPS1 : 1;
12093 unsigned T3CKIPPS2 : 1;
12094 unsigned T3CKIPPS3 : 1;
12095 unsigned T3CKIPPS4 : 1;
12096 unsigned : 1;
12097 unsigned : 1;
12098 unsigned : 1;
12101 struct
12103 unsigned T3CKIPPS : 5;
12104 unsigned : 3;
12106 } __T3CKIPPSbits_t;
12108 extern __at(0x0E19) volatile __T3CKIPPSbits_t T3CKIPPSbits;
12110 #define _T3CKIPPS0 0x01
12111 #define _T3CKIPPS1 0x02
12112 #define _T3CKIPPS2 0x04
12113 #define _T3CKIPPS3 0x08
12114 #define _T3CKIPPS4 0x10
12116 //==============================================================================
12119 //==============================================================================
12120 // T3GPPS Bits
12122 extern __at(0x0E1A) __sfr T3GPPS;
12124 typedef union
12126 struct
12128 unsigned T3GPPS0 : 1;
12129 unsigned T3GPPS1 : 1;
12130 unsigned T3GPPS2 : 1;
12131 unsigned T3GPPS3 : 1;
12132 unsigned T3GPPS4 : 1;
12133 unsigned : 1;
12134 unsigned : 1;
12135 unsigned : 1;
12138 struct
12140 unsigned T3GPPS : 5;
12141 unsigned : 3;
12143 } __T3GPPSbits_t;
12145 extern __at(0x0E1A) volatile __T3GPPSbits_t T3GPPSbits;
12147 #define _T3GPPS0 0x01
12148 #define _T3GPPS1 0x02
12149 #define _T3GPPS2 0x04
12150 #define _T3GPPS3 0x08
12151 #define _T3GPPS4 0x10
12153 //==============================================================================
12156 //==============================================================================
12157 // T4PPS Bits
12159 extern __at(0x0E1B) __sfr T4PPS;
12161 typedef union
12163 struct
12165 unsigned T4PPS0 : 1;
12166 unsigned T4PPS1 : 1;
12167 unsigned T4PPS2 : 1;
12168 unsigned T4PPS3 : 1;
12169 unsigned T4PPS4 : 1;
12170 unsigned : 1;
12171 unsigned : 1;
12172 unsigned : 1;
12175 struct
12177 unsigned T4PPS : 5;
12178 unsigned : 3;
12180 } __T4PPSbits_t;
12182 extern __at(0x0E1B) volatile __T4PPSbits_t T4PPSbits;
12184 #define _T4PPS0 0x01
12185 #define _T4PPS1 0x02
12186 #define _T4PPS2 0x04
12187 #define _T4PPS3 0x08
12188 #define _T4PPS4 0x10
12190 //==============================================================================
12193 //==============================================================================
12194 // T5CKIPPS Bits
12196 extern __at(0x0E1C) __sfr T5CKIPPS;
12198 typedef union
12200 struct
12202 unsigned T5CKIPPS0 : 1;
12203 unsigned T5CKIPPS1 : 1;
12204 unsigned T5CKIPPS2 : 1;
12205 unsigned T5CKIPPS3 : 1;
12206 unsigned T5CKIPPS4 : 1;
12207 unsigned : 1;
12208 unsigned : 1;
12209 unsigned : 1;
12212 struct
12214 unsigned T5CKIPPS : 5;
12215 unsigned : 3;
12217 } __T5CKIPPSbits_t;
12219 extern __at(0x0E1C) volatile __T5CKIPPSbits_t T5CKIPPSbits;
12221 #define _T5CKIPPS0 0x01
12222 #define _T5CKIPPS1 0x02
12223 #define _T5CKIPPS2 0x04
12224 #define _T5CKIPPS3 0x08
12225 #define _T5CKIPPS4 0x10
12227 //==============================================================================
12230 //==============================================================================
12231 // T5GPPS Bits
12233 extern __at(0x0E1D) __sfr T5GPPS;
12235 typedef union
12237 struct
12239 unsigned T5GPPS0 : 1;
12240 unsigned T5GPPS1 : 1;
12241 unsigned T5GPPS2 : 1;
12242 unsigned T5GPPS3 : 1;
12243 unsigned T5GPPS4 : 1;
12244 unsigned : 1;
12245 unsigned : 1;
12246 unsigned : 1;
12249 struct
12251 unsigned T5GPPS : 5;
12252 unsigned : 3;
12254 } __T5GPPSbits_t;
12256 extern __at(0x0E1D) volatile __T5GPPSbits_t T5GPPSbits;
12258 #define _T5GPPS0 0x01
12259 #define _T5GPPS1 0x02
12260 #define _T5GPPS2 0x04
12261 #define _T5GPPS3 0x08
12262 #define _T5GPPS4 0x10
12264 //==============================================================================
12267 //==============================================================================
12268 // T6PPS Bits
12270 extern __at(0x0E1E) __sfr T6PPS;
12272 typedef union
12274 struct
12276 unsigned T6PPS0 : 1;
12277 unsigned T6PPS1 : 1;
12278 unsigned T6PPS2 : 1;
12279 unsigned T6PPS3 : 1;
12280 unsigned T6PPS4 : 1;
12281 unsigned : 1;
12282 unsigned : 1;
12283 unsigned : 1;
12286 struct
12288 unsigned T6PPS : 5;
12289 unsigned : 3;
12291 } __T6PPSbits_t;
12293 extern __at(0x0E1E) volatile __T6PPSbits_t T6PPSbits;
12295 #define _T6PPS0 0x01
12296 #define _T6PPS1 0x02
12297 #define _T6PPS2 0x04
12298 #define _T6PPS3 0x08
12299 #define _T6PPS4 0x10
12301 //==============================================================================
12304 //==============================================================================
12305 // ATCC1PPS Bits
12307 extern __at(0x0E1F) __sfr ATCC1PPS;
12309 typedef union
12311 struct
12313 unsigned ATCC1PPS0 : 1;
12314 unsigned ATCC1PPS1 : 1;
12315 unsigned ATCC1PPS2 : 1;
12316 unsigned ATCC1PPS3 : 1;
12317 unsigned ATCC1PPS4 : 1;
12318 unsigned : 1;
12319 unsigned : 1;
12320 unsigned : 1;
12323 struct
12325 unsigned ATCC1PPS : 5;
12326 unsigned : 3;
12328 } __ATCC1PPSbits_t;
12330 extern __at(0x0E1F) volatile __ATCC1PPSbits_t ATCC1PPSbits;
12332 #define _ATCC1PPS0 0x01
12333 #define _ATCC1PPS1 0x02
12334 #define _ATCC1PPS2 0x04
12335 #define _ATCC1PPS3 0x08
12336 #define _ATCC1PPS4 0x10
12338 //==============================================================================
12341 //==============================================================================
12342 // SSPCLKPPS Bits
12344 extern __at(0x0E20) __sfr SSPCLKPPS;
12346 typedef union
12348 struct
12350 unsigned SSPCLKPPS0 : 1;
12351 unsigned SSPCLKPPS1 : 1;
12352 unsigned SSPCLKPPS2 : 1;
12353 unsigned SSPCLKPPS3 : 1;
12354 unsigned SSPCLKPPS4 : 1;
12355 unsigned : 1;
12356 unsigned : 1;
12357 unsigned : 1;
12360 struct
12362 unsigned SSPCLKPPS : 5;
12363 unsigned : 3;
12365 } __SSPCLKPPSbits_t;
12367 extern __at(0x0E20) volatile __SSPCLKPPSbits_t SSPCLKPPSbits;
12369 #define _SSPCLKPPS0 0x01
12370 #define _SSPCLKPPS1 0x02
12371 #define _SSPCLKPPS2 0x04
12372 #define _SSPCLKPPS3 0x08
12373 #define _SSPCLKPPS4 0x10
12375 //==============================================================================
12378 //==============================================================================
12379 // SSPDATPPS Bits
12381 extern __at(0x0E21) __sfr SSPDATPPS;
12383 typedef union
12385 struct
12387 unsigned SSPDATPPS0 : 1;
12388 unsigned SSPDATPPS1 : 1;
12389 unsigned SSPDATPPS2 : 1;
12390 unsigned SSPDATPPS3 : 1;
12391 unsigned SSPDATPPS4 : 1;
12392 unsigned : 1;
12393 unsigned : 1;
12394 unsigned : 1;
12397 struct
12399 unsigned SSPDATPPS : 5;
12400 unsigned : 3;
12402 } __SSPDATPPSbits_t;
12404 extern __at(0x0E21) volatile __SSPDATPPSbits_t SSPDATPPSbits;
12406 #define _SSPDATPPS0 0x01
12407 #define _SSPDATPPS1 0x02
12408 #define _SSPDATPPS2 0x04
12409 #define _SSPDATPPS3 0x08
12410 #define _SSPDATPPS4 0x10
12412 //==============================================================================
12415 //==============================================================================
12416 // SSPSSPPS Bits
12418 extern __at(0x0E22) __sfr SSPSSPPS;
12420 typedef union
12422 struct
12424 unsigned SSPSSPPS0 : 1;
12425 unsigned SSPSSPPS1 : 1;
12426 unsigned SSPSSPPS2 : 1;
12427 unsigned SSPSSPPS3 : 1;
12428 unsigned SSPSSPPS4 : 1;
12429 unsigned : 1;
12430 unsigned : 1;
12431 unsigned : 1;
12434 struct
12436 unsigned SSPSSPPS : 5;
12437 unsigned : 3;
12439 } __SSPSSPPSbits_t;
12441 extern __at(0x0E22) volatile __SSPSSPPSbits_t SSPSSPPSbits;
12443 #define _SSPSSPPS0 0x01
12444 #define _SSPSSPPS1 0x02
12445 #define _SSPSSPPS2 0x04
12446 #define _SSPSSPPS3 0x08
12447 #define _SSPSSPPS4 0x10
12449 //==============================================================================
12452 //==============================================================================
12453 // ATCC2PPS Bits
12455 extern __at(0x0E23) __sfr ATCC2PPS;
12457 typedef union
12459 struct
12461 unsigned ATCC2PPS0 : 1;
12462 unsigned ATCC2PPS1 : 1;
12463 unsigned ATCC2PPS2 : 1;
12464 unsigned ATCC2PPS3 : 1;
12465 unsigned ATCC2PPS4 : 1;
12466 unsigned : 1;
12467 unsigned : 1;
12468 unsigned : 1;
12471 struct
12473 unsigned ATCC2PPS : 5;
12474 unsigned : 3;
12476 } __ATCC2PPSbits_t;
12478 extern __at(0x0E23) volatile __ATCC2PPSbits_t ATCC2PPSbits;
12480 #define _ATCC2PPS0 0x01
12481 #define _ATCC2PPS1 0x02
12482 #define _ATCC2PPS2 0x04
12483 #define _ATCC2PPS3 0x08
12484 #define _ATCC2PPS4 0x10
12486 //==============================================================================
12489 //==============================================================================
12490 // RXPPS Bits
12492 extern __at(0x0E24) __sfr RXPPS;
12494 typedef union
12496 struct
12498 unsigned RXPPS0 : 1;
12499 unsigned RXPPS1 : 1;
12500 unsigned RXPPS2 : 1;
12501 unsigned RXPPS3 : 1;
12502 unsigned RXPPS4 : 1;
12503 unsigned : 1;
12504 unsigned : 1;
12505 unsigned : 1;
12508 struct
12510 unsigned RXPPS : 5;
12511 unsigned : 3;
12513 } __RXPPSbits_t;
12515 extern __at(0x0E24) volatile __RXPPSbits_t RXPPSbits;
12517 #define _RXPPS0 0x01
12518 #define _RXPPS1 0x02
12519 #define _RXPPS2 0x04
12520 #define _RXPPS3 0x08
12521 #define _RXPPS4 0x10
12523 //==============================================================================
12526 //==============================================================================
12527 // CKPPS Bits
12529 extern __at(0x0E25) __sfr CKPPS;
12531 typedef union
12533 struct
12535 unsigned CKPPS0 : 1;
12536 unsigned CKPPS1 : 1;
12537 unsigned CKPPS2 : 1;
12538 unsigned CKPPS3 : 1;
12539 unsigned CKPPS4 : 1;
12540 unsigned : 1;
12541 unsigned : 1;
12542 unsigned : 1;
12545 struct
12547 unsigned CKPPS : 5;
12548 unsigned : 3;
12550 } __CKPPSbits_t;
12552 extern __at(0x0E25) volatile __CKPPSbits_t CKPPSbits;
12554 #define _CKPPS0 0x01
12555 #define _CKPPS1 0x02
12556 #define _CKPPS2 0x04
12557 #define _CKPPS3 0x08
12558 #define _CKPPS4 0x10
12560 //==============================================================================
12563 //==============================================================================
12564 // SMT1SIGPPS Bits
12566 extern __at(0x0E26) __sfr SMT1SIGPPS;
12568 typedef union
12570 struct
12572 unsigned SMT1SIGPPS0 : 1;
12573 unsigned SMT1SIGPPS1 : 1;
12574 unsigned SMT1SIGPPS2 : 1;
12575 unsigned SMT1SIGPPS3 : 1;
12576 unsigned SMT1SIGPPS4 : 1;
12577 unsigned : 1;
12578 unsigned : 1;
12579 unsigned : 1;
12582 struct
12584 unsigned SMT1SIGPPS : 5;
12585 unsigned : 3;
12587 } __SMT1SIGPPSbits_t;
12589 extern __at(0x0E26) volatile __SMT1SIGPPSbits_t SMT1SIGPPSbits;
12591 #define _SMT1SIGPPS0 0x01
12592 #define _SMT1SIGPPS1 0x02
12593 #define _SMT1SIGPPS2 0x04
12594 #define _SMT1SIGPPS3 0x08
12595 #define _SMT1SIGPPS4 0x10
12597 //==============================================================================
12600 //==============================================================================
12601 // SMT1WINPPS Bits
12603 extern __at(0x0E27) __sfr SMT1WINPPS;
12605 typedef union
12607 struct
12609 unsigned SMTWINPPS0 : 1;
12610 unsigned SMTWINPPS1 : 1;
12611 unsigned SMTWINPPS2 : 1;
12612 unsigned SMTWINPPS3 : 1;
12613 unsigned SMTWINPPS4 : 1;
12614 unsigned : 1;
12615 unsigned : 1;
12616 unsigned : 1;
12619 struct
12621 unsigned SMTWINPPS : 5;
12622 unsigned : 3;
12624 } __SMT1WINPPSbits_t;
12626 extern __at(0x0E27) volatile __SMT1WINPPSbits_t SMT1WINPPSbits;
12628 #define _SMTWINPPS0 0x01
12629 #define _SMTWINPPS1 0x02
12630 #define _SMTWINPPS2 0x04
12631 #define _SMTWINPPS3 0x08
12632 #define _SMTWINPPS4 0x10
12634 //==============================================================================
12637 //==============================================================================
12638 // CLCIN0PPS Bits
12640 extern __at(0x0E28) __sfr CLCIN0PPS;
12642 typedef union
12644 struct
12646 unsigned CLCIN0PPS0 : 1;
12647 unsigned CLCIN0PPS1 : 1;
12648 unsigned CLCIN0PPS2 : 1;
12649 unsigned CLCIN0PPS3 : 1;
12650 unsigned CLCIN0PPS4 : 1;
12651 unsigned : 1;
12652 unsigned : 1;
12653 unsigned : 1;
12656 struct
12658 unsigned CLCIN0PPS : 5;
12659 unsigned : 3;
12661 } __CLCIN0PPSbits_t;
12663 extern __at(0x0E28) volatile __CLCIN0PPSbits_t CLCIN0PPSbits;
12665 #define _CLCIN0PPS0 0x01
12666 #define _CLCIN0PPS1 0x02
12667 #define _CLCIN0PPS2 0x04
12668 #define _CLCIN0PPS3 0x08
12669 #define _CLCIN0PPS4 0x10
12671 //==============================================================================
12674 //==============================================================================
12675 // CLCIN1PPS Bits
12677 extern __at(0x0E29) __sfr CLCIN1PPS;
12679 typedef union
12681 struct
12683 unsigned CLCIN1PPS0 : 1;
12684 unsigned CLCIN1PPS1 : 1;
12685 unsigned CLCIN1PPS2 : 1;
12686 unsigned CLCIN1PPS3 : 1;
12687 unsigned CLCIN1PPS4 : 1;
12688 unsigned : 1;
12689 unsigned : 1;
12690 unsigned : 1;
12693 struct
12695 unsigned CLCIN1PPS : 5;
12696 unsigned : 3;
12698 } __CLCIN1PPSbits_t;
12700 extern __at(0x0E29) volatile __CLCIN1PPSbits_t CLCIN1PPSbits;
12702 #define _CLCIN1PPS0 0x01
12703 #define _CLCIN1PPS1 0x02
12704 #define _CLCIN1PPS2 0x04
12705 #define _CLCIN1PPS3 0x08
12706 #define _CLCIN1PPS4 0x10
12708 //==============================================================================
12711 //==============================================================================
12712 // CLCIN2PPS Bits
12714 extern __at(0x0E2A) __sfr CLCIN2PPS;
12716 typedef union
12718 struct
12720 unsigned CLCIN2PPS0 : 1;
12721 unsigned CLCIN2PPS1 : 1;
12722 unsigned CLCIN2PPS2 : 1;
12723 unsigned CLCIN2PPS3 : 1;
12724 unsigned CLCIN2PPS4 : 1;
12725 unsigned : 1;
12726 unsigned : 1;
12727 unsigned : 1;
12730 struct
12732 unsigned CLCIN2PPS : 5;
12733 unsigned : 3;
12735 } __CLCIN2PPSbits_t;
12737 extern __at(0x0E2A) volatile __CLCIN2PPSbits_t CLCIN2PPSbits;
12739 #define _CLCIN2PPS0 0x01
12740 #define _CLCIN2PPS1 0x02
12741 #define _CLCIN2PPS2 0x04
12742 #define _CLCIN2PPS3 0x08
12743 #define _CLCIN2PPS4 0x10
12745 //==============================================================================
12748 //==============================================================================
12749 // CLCIN3PPS Bits
12751 extern __at(0x0E2B) __sfr CLCIN3PPS;
12753 typedef union
12755 struct
12757 unsigned CLCIN3PPS0 : 1;
12758 unsigned CLCIN3PPS1 : 1;
12759 unsigned CLCIN3PPS2 : 1;
12760 unsigned CLCIN3PPS3 : 1;
12761 unsigned CLCIN3PPS4 : 1;
12762 unsigned : 1;
12763 unsigned : 1;
12764 unsigned : 1;
12767 struct
12769 unsigned CLCIN3PPS : 5;
12770 unsigned : 3;
12772 } __CLCIN3PPSbits_t;
12774 extern __at(0x0E2B) volatile __CLCIN3PPSbits_t CLCIN3PPSbits;
12776 #define _CLCIN3PPS0 0x01
12777 #define _CLCIN3PPS1 0x02
12778 #define _CLCIN3PPS2 0x04
12779 #define _CLCIN3PPS3 0x08
12780 #define _CLCIN3PPS4 0x10
12782 //==============================================================================
12785 //==============================================================================
12786 // SMT2SIGPPS Bits
12788 extern __at(0x0E2C) __sfr SMT2SIGPPS;
12790 typedef union
12792 struct
12794 unsigned SMT2SIGPPS0 : 1;
12795 unsigned SMT2SIGPPS1 : 1;
12796 unsigned SMT2SIGPPS2 : 1;
12797 unsigned SMT2SIGPPS3 : 1;
12798 unsigned SMT2SIGPPS4 : 1;
12799 unsigned : 1;
12800 unsigned : 1;
12801 unsigned : 1;
12804 struct
12806 unsigned SMT2SIGPPS : 5;
12807 unsigned : 3;
12809 } __SMT2SIGPPSbits_t;
12811 extern __at(0x0E2C) volatile __SMT2SIGPPSbits_t SMT2SIGPPSbits;
12813 #define _SMT2SIGPPS0 0x01
12814 #define _SMT2SIGPPS1 0x02
12815 #define _SMT2SIGPPS2 0x04
12816 #define _SMT2SIGPPS3 0x08
12817 #define _SMT2SIGPPS4 0x10
12819 //==============================================================================
12822 //==============================================================================
12823 // SMT2WINPPS Bits
12825 extern __at(0x0E2D) __sfr SMT2WINPPS;
12827 typedef union
12829 struct
12831 unsigned SMT2WINPPS0 : 1;
12832 unsigned SMT2WINPPS1 : 1;
12833 unsigned SMT2WINPPS2 : 1;
12834 unsigned SMT2WINPPS3 : 1;
12835 unsigned SMT2WINPPS4 : 1;
12836 unsigned : 1;
12837 unsigned : 1;
12838 unsigned : 1;
12841 struct
12843 unsigned SMT2WINPPS : 5;
12844 unsigned : 3;
12846 } __SMT2WINPPSbits_t;
12848 extern __at(0x0E2D) volatile __SMT2WINPPSbits_t SMT2WINPPSbits;
12850 #define _SMT2WINPPS0 0x01
12851 #define _SMT2WINPPS1 0x02
12852 #define _SMT2WINPPS2 0x04
12853 #define _SMT2WINPPS3 0x08
12854 #define _SMT2WINPPS4 0x10
12856 //==============================================================================
12859 //==============================================================================
12860 // ATCC3PPS Bits
12862 extern __at(0x0E2E) __sfr ATCC3PPS;
12864 typedef union
12866 struct
12868 unsigned ATCC3PPS0 : 1;
12869 unsigned ATCC3PPS1 : 1;
12870 unsigned ATCC3PPS2 : 1;
12871 unsigned ATCC3PPS3 : 1;
12872 unsigned ATCC3PPS4 : 1;
12873 unsigned : 1;
12874 unsigned : 1;
12875 unsigned : 1;
12878 struct
12880 unsigned ATCC3PPS : 5;
12881 unsigned : 3;
12883 } __ATCC3PPSbits_t;
12885 extern __at(0x0E2E) volatile __ATCC3PPSbits_t ATCC3PPSbits;
12887 #define _ATCC3PPS0 0x01
12888 #define _ATCC3PPS1 0x02
12889 #define _ATCC3PPS2 0x04
12890 #define _ATCC3PPS3 0x08
12891 #define _ATCC3PPS4 0x10
12893 //==============================================================================
12896 //==============================================================================
12897 // RA0PPS Bits
12899 extern __at(0x0E90) __sfr RA0PPS;
12901 typedef union
12903 struct
12905 unsigned RA0PPS0 : 1;
12906 unsigned RA0PPS1 : 1;
12907 unsigned RA0PPS2 : 1;
12908 unsigned RA0PPS3 : 1;
12909 unsigned RA0PPS4 : 1;
12910 unsigned : 1;
12911 unsigned : 1;
12912 unsigned : 1;
12915 struct
12917 unsigned RA0PPS : 5;
12918 unsigned : 3;
12920 } __RA0PPSbits_t;
12922 extern __at(0x0E90) volatile __RA0PPSbits_t RA0PPSbits;
12924 #define _RA0PPS0 0x01
12925 #define _RA0PPS1 0x02
12926 #define _RA0PPS2 0x04
12927 #define _RA0PPS3 0x08
12928 #define _RA0PPS4 0x10
12930 //==============================================================================
12933 //==============================================================================
12934 // RA1PPS Bits
12936 extern __at(0x0E91) __sfr RA1PPS;
12938 typedef union
12940 struct
12942 unsigned RA1PPS0 : 1;
12943 unsigned RA1PPS1 : 1;
12944 unsigned RA1PPS2 : 1;
12945 unsigned RA1PPS3 : 1;
12946 unsigned RA1PPS4 : 1;
12947 unsigned : 1;
12948 unsigned : 1;
12949 unsigned : 1;
12952 struct
12954 unsigned RA1PPS : 5;
12955 unsigned : 3;
12957 } __RA1PPSbits_t;
12959 extern __at(0x0E91) volatile __RA1PPSbits_t RA1PPSbits;
12961 #define _RA1PPS0 0x01
12962 #define _RA1PPS1 0x02
12963 #define _RA1PPS2 0x04
12964 #define _RA1PPS3 0x08
12965 #define _RA1PPS4 0x10
12967 //==============================================================================
12970 //==============================================================================
12971 // RA2PPS Bits
12973 extern __at(0x0E92) __sfr RA2PPS;
12975 typedef union
12977 struct
12979 unsigned RA2PPS0 : 1;
12980 unsigned RA2PPS1 : 1;
12981 unsigned RA2PPS2 : 1;
12982 unsigned RA2PPS3 : 1;
12983 unsigned RA2PPS4 : 1;
12984 unsigned : 1;
12985 unsigned : 1;
12986 unsigned : 1;
12989 struct
12991 unsigned RA2PPS : 5;
12992 unsigned : 3;
12994 } __RA2PPSbits_t;
12996 extern __at(0x0E92) volatile __RA2PPSbits_t RA2PPSbits;
12998 #define _RA2PPS0 0x01
12999 #define _RA2PPS1 0x02
13000 #define _RA2PPS2 0x04
13001 #define _RA2PPS3 0x08
13002 #define _RA2PPS4 0x10
13004 //==============================================================================
13007 //==============================================================================
13008 // RA4PPS Bits
13010 extern __at(0x0E94) __sfr RA4PPS;
13012 typedef union
13014 struct
13016 unsigned RA4PPS0 : 1;
13017 unsigned RA4PPS1 : 1;
13018 unsigned RA4PPS2 : 1;
13019 unsigned RA4PPS3 : 1;
13020 unsigned RA4PPS4 : 1;
13021 unsigned : 1;
13022 unsigned : 1;
13023 unsigned : 1;
13026 struct
13028 unsigned RA4PPS : 5;
13029 unsigned : 3;
13031 } __RA4PPSbits_t;
13033 extern __at(0x0E94) volatile __RA4PPSbits_t RA4PPSbits;
13035 #define _RA4PPS0 0x01
13036 #define _RA4PPS1 0x02
13037 #define _RA4PPS2 0x04
13038 #define _RA4PPS3 0x08
13039 #define _RA4PPS4 0x10
13041 //==============================================================================
13044 //==============================================================================
13045 // RA5PPS Bits
13047 extern __at(0x0E95) __sfr RA5PPS;
13049 typedef union
13051 struct
13053 unsigned RA5PPS0 : 1;
13054 unsigned RA5PPS1 : 1;
13055 unsigned RA5PPS2 : 1;
13056 unsigned RA5PPS3 : 1;
13057 unsigned RA5PPS4 : 1;
13058 unsigned : 1;
13059 unsigned : 1;
13060 unsigned : 1;
13063 struct
13065 unsigned RA5PPS : 5;
13066 unsigned : 3;
13068 } __RA5PPSbits_t;
13070 extern __at(0x0E95) volatile __RA5PPSbits_t RA5PPSbits;
13072 #define _RA5PPS0 0x01
13073 #define _RA5PPS1 0x02
13074 #define _RA5PPS2 0x04
13075 #define _RA5PPS3 0x08
13076 #define _RA5PPS4 0x10
13078 //==============================================================================
13081 //==============================================================================
13082 // RB4PPS Bits
13084 extern __at(0x0E9C) __sfr RB4PPS;
13086 typedef union
13088 struct
13090 unsigned RB4PPS0 : 1;
13091 unsigned RB4PPS1 : 1;
13092 unsigned RB4PPS2 : 1;
13093 unsigned RB4PPS3 : 1;
13094 unsigned RB4PPS4 : 1;
13095 unsigned : 1;
13096 unsigned : 1;
13097 unsigned : 1;
13100 struct
13102 unsigned RB4PPS : 5;
13103 unsigned : 3;
13105 } __RB4PPSbits_t;
13107 extern __at(0x0E9C) volatile __RB4PPSbits_t RB4PPSbits;
13109 #define _RB4PPS0 0x01
13110 #define _RB4PPS1 0x02
13111 #define _RB4PPS2 0x04
13112 #define _RB4PPS3 0x08
13113 #define _RB4PPS4 0x10
13115 //==============================================================================
13118 //==============================================================================
13119 // RB5PPS Bits
13121 extern __at(0x0E9D) __sfr RB5PPS;
13123 typedef union
13125 struct
13127 unsigned RB5PPS0 : 1;
13128 unsigned RB5PPS1 : 1;
13129 unsigned RB5PPS2 : 1;
13130 unsigned RB5PPS3 : 1;
13131 unsigned RB5PPS4 : 1;
13132 unsigned : 1;
13133 unsigned : 1;
13134 unsigned : 1;
13137 struct
13139 unsigned RB5PPS : 5;
13140 unsigned : 3;
13142 } __RB5PPSbits_t;
13144 extern __at(0x0E9D) volatile __RB5PPSbits_t RB5PPSbits;
13146 #define _RB5PPS0 0x01
13147 #define _RB5PPS1 0x02
13148 #define _RB5PPS2 0x04
13149 #define _RB5PPS3 0x08
13150 #define _RB5PPS4 0x10
13152 //==============================================================================
13155 //==============================================================================
13156 // RB6PPS Bits
13158 extern __at(0x0E9E) __sfr RB6PPS;
13160 typedef union
13162 struct
13164 unsigned RB6PPS0 : 1;
13165 unsigned RB6PPS1 : 1;
13166 unsigned RB6PPS2 : 1;
13167 unsigned RB6PPS3 : 1;
13168 unsigned RB6PPS4 : 1;
13169 unsigned : 1;
13170 unsigned : 1;
13171 unsigned : 1;
13174 struct
13176 unsigned RB6PPS : 5;
13177 unsigned : 3;
13179 } __RB6PPSbits_t;
13181 extern __at(0x0E9E) volatile __RB6PPSbits_t RB6PPSbits;
13183 #define _RB6PPS0 0x01
13184 #define _RB6PPS1 0x02
13185 #define _RB6PPS2 0x04
13186 #define _RB6PPS3 0x08
13187 #define _RB6PPS4 0x10
13189 //==============================================================================
13192 //==============================================================================
13193 // RB7PPS Bits
13195 extern __at(0x0E9F) __sfr RB7PPS;
13197 typedef union
13199 struct
13201 unsigned RB7PPS0 : 1;
13202 unsigned RB7PPS1 : 1;
13203 unsigned RB7PPS2 : 1;
13204 unsigned RB7PPS3 : 1;
13205 unsigned RB7PPS4 : 1;
13206 unsigned : 1;
13207 unsigned : 1;
13208 unsigned : 1;
13211 struct
13213 unsigned RB7PPS : 5;
13214 unsigned : 3;
13216 } __RB7PPSbits_t;
13218 extern __at(0x0E9F) volatile __RB7PPSbits_t RB7PPSbits;
13220 #define _RB7PPS0 0x01
13221 #define _RB7PPS1 0x02
13222 #define _RB7PPS2 0x04
13223 #define _RB7PPS3 0x08
13224 #define _RB7PPS4 0x10
13226 //==============================================================================
13229 //==============================================================================
13230 // RC0PPS Bits
13232 extern __at(0x0EA0) __sfr RC0PPS;
13234 typedef union
13236 struct
13238 unsigned RC0PPS0 : 1;
13239 unsigned RC0PPS1 : 1;
13240 unsigned RC0PPS2 : 1;
13241 unsigned RC0PPS3 : 1;
13242 unsigned RC0PPS4 : 1;
13243 unsigned : 1;
13244 unsigned : 1;
13245 unsigned : 1;
13248 struct
13250 unsigned RC0PPS : 5;
13251 unsigned : 3;
13253 } __RC0PPSbits_t;
13255 extern __at(0x0EA0) volatile __RC0PPSbits_t RC0PPSbits;
13257 #define _RC0PPS0 0x01
13258 #define _RC0PPS1 0x02
13259 #define _RC0PPS2 0x04
13260 #define _RC0PPS3 0x08
13261 #define _RC0PPS4 0x10
13263 //==============================================================================
13266 //==============================================================================
13267 // RC1PPS Bits
13269 extern __at(0x0EA1) __sfr RC1PPS;
13271 typedef union
13273 struct
13275 unsigned RC1PPS0 : 1;
13276 unsigned RC1PPS1 : 1;
13277 unsigned RC1PPS2 : 1;
13278 unsigned RC1PPS3 : 1;
13279 unsigned RC1PPS4 : 1;
13280 unsigned : 1;
13281 unsigned : 1;
13282 unsigned : 1;
13285 struct
13287 unsigned RC1PPS : 5;
13288 unsigned : 3;
13290 } __RC1PPSbits_t;
13292 extern __at(0x0EA1) volatile __RC1PPSbits_t RC1PPSbits;
13294 #define _RC1PPS0 0x01
13295 #define _RC1PPS1 0x02
13296 #define _RC1PPS2 0x04
13297 #define _RC1PPS3 0x08
13298 #define _RC1PPS4 0x10
13300 //==============================================================================
13303 //==============================================================================
13304 // RC2PPS Bits
13306 extern __at(0x0EA2) __sfr RC2PPS;
13308 typedef union
13310 struct
13312 unsigned RC2PPS0 : 1;
13313 unsigned RC2PPS1 : 1;
13314 unsigned RC2PPS2 : 1;
13315 unsigned RC2PPS3 : 1;
13316 unsigned RC2PPS4 : 1;
13317 unsigned : 1;
13318 unsigned : 1;
13319 unsigned : 1;
13322 struct
13324 unsigned RC2PPS : 5;
13325 unsigned : 3;
13327 } __RC2PPSbits_t;
13329 extern __at(0x0EA2) volatile __RC2PPSbits_t RC2PPSbits;
13331 #define _RC2PPS0 0x01
13332 #define _RC2PPS1 0x02
13333 #define _RC2PPS2 0x04
13334 #define _RC2PPS3 0x08
13335 #define _RC2PPS4 0x10
13337 //==============================================================================
13340 //==============================================================================
13341 // RC3PPS Bits
13343 extern __at(0x0EA3) __sfr RC3PPS;
13345 typedef union
13347 struct
13349 unsigned RC3PPS0 : 1;
13350 unsigned RC3PPS1 : 1;
13351 unsigned RC3PPS2 : 1;
13352 unsigned RC3PPS3 : 1;
13353 unsigned RC3PPS4 : 1;
13354 unsigned : 1;
13355 unsigned : 1;
13356 unsigned : 1;
13359 struct
13361 unsigned RC3PPS : 5;
13362 unsigned : 3;
13364 } __RC3PPSbits_t;
13366 extern __at(0x0EA3) volatile __RC3PPSbits_t RC3PPSbits;
13368 #define _RC3PPS0 0x01
13369 #define _RC3PPS1 0x02
13370 #define _RC3PPS2 0x04
13371 #define _RC3PPS3 0x08
13372 #define _RC3PPS4 0x10
13374 //==============================================================================
13377 //==============================================================================
13378 // RC4PPS Bits
13380 extern __at(0x0EA4) __sfr RC4PPS;
13382 typedef union
13384 struct
13386 unsigned RC4PPS0 : 1;
13387 unsigned RC4PPS1 : 1;
13388 unsigned RC4PPS2 : 1;
13389 unsigned RC4PPS3 : 1;
13390 unsigned RC4PPS4 : 1;
13391 unsigned : 1;
13392 unsigned : 1;
13393 unsigned : 1;
13396 struct
13398 unsigned RC4PPS : 5;
13399 unsigned : 3;
13401 } __RC4PPSbits_t;
13403 extern __at(0x0EA4) volatile __RC4PPSbits_t RC4PPSbits;
13405 #define _RC4PPS0 0x01
13406 #define _RC4PPS1 0x02
13407 #define _RC4PPS2 0x04
13408 #define _RC4PPS3 0x08
13409 #define _RC4PPS4 0x10
13411 //==============================================================================
13414 //==============================================================================
13415 // RC5PPS Bits
13417 extern __at(0x0EA5) __sfr RC5PPS;
13419 typedef union
13421 struct
13423 unsigned RC5PPS0 : 1;
13424 unsigned RC5PPS1 : 1;
13425 unsigned RC5PPS2 : 1;
13426 unsigned RC5PPS3 : 1;
13427 unsigned RC5PPS4 : 1;
13428 unsigned : 1;
13429 unsigned : 1;
13430 unsigned : 1;
13433 struct
13435 unsigned RC5PPS : 5;
13436 unsigned : 3;
13438 } __RC5PPSbits_t;
13440 extern __at(0x0EA5) volatile __RC5PPSbits_t RC5PPSbits;
13442 #define _RC5PPS0 0x01
13443 #define _RC5PPS1 0x02
13444 #define _RC5PPS2 0x04
13445 #define _RC5PPS3 0x08
13446 #define _RC5PPS4 0x10
13448 //==============================================================================
13451 //==============================================================================
13452 // RC6PPS Bits
13454 extern __at(0x0EA6) __sfr RC6PPS;
13456 typedef union
13458 struct
13460 unsigned RC6PPS0 : 1;
13461 unsigned RC6PPS1 : 1;
13462 unsigned RC6PPS2 : 1;
13463 unsigned RC6PPS3 : 1;
13464 unsigned RC6PPS4 : 1;
13465 unsigned : 1;
13466 unsigned : 1;
13467 unsigned : 1;
13470 struct
13472 unsigned RC6PPS : 5;
13473 unsigned : 3;
13475 } __RC6PPSbits_t;
13477 extern __at(0x0EA6) volatile __RC6PPSbits_t RC6PPSbits;
13479 #define _RC6PPS0 0x01
13480 #define _RC6PPS1 0x02
13481 #define _RC6PPS2 0x04
13482 #define _RC6PPS3 0x08
13483 #define _RC6PPS4 0x10
13485 //==============================================================================
13488 //==============================================================================
13489 // RC7PPS Bits
13491 extern __at(0x0EA7) __sfr RC7PPS;
13493 typedef union
13495 struct
13497 unsigned RC7PPS0 : 1;
13498 unsigned RC7PPS1 : 1;
13499 unsigned RC7PPS2 : 1;
13500 unsigned RC7PPS3 : 1;
13501 unsigned RC7PPS4 : 1;
13502 unsigned : 1;
13503 unsigned : 1;
13504 unsigned : 1;
13507 struct
13509 unsigned RC7PPS : 5;
13510 unsigned : 3;
13512 } __RC7PPSbits_t;
13514 extern __at(0x0EA7) volatile __RC7PPSbits_t RC7PPSbits;
13516 #define _RC7PPS0 0x01
13517 #define _RC7PPS1 0x02
13518 #define _RC7PPS2 0x04
13519 #define _RC7PPS3 0x08
13520 #define _RC7PPS4 0x10
13522 //==============================================================================
13525 //==============================================================================
13526 // CLCDATA Bits
13528 extern __at(0x0F0F) __sfr CLCDATA;
13530 typedef struct
13532 unsigned MLC1OUT : 1;
13533 unsigned MLC2OUT : 1;
13534 unsigned : 1;
13535 unsigned : 1;
13536 unsigned : 1;
13537 unsigned : 1;
13538 unsigned : 1;
13539 unsigned : 1;
13540 } __CLCDATAbits_t;
13542 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
13544 #define _MLC1OUT 0x01
13545 #define _MLC2OUT 0x02
13547 //==============================================================================
13550 //==============================================================================
13551 // CLC1CON Bits
13553 extern __at(0x0F10) __sfr CLC1CON;
13555 typedef union
13557 struct
13559 unsigned LC1MODE0 : 1;
13560 unsigned LC1MODE1 : 1;
13561 unsigned LC1MODE2 : 1;
13562 unsigned LC1INTN : 1;
13563 unsigned LC1INTP : 1;
13564 unsigned LC1OUT : 1;
13565 unsigned : 1;
13566 unsigned LC1EN : 1;
13569 struct
13571 unsigned MODE0 : 1;
13572 unsigned MODE1 : 1;
13573 unsigned MODE2 : 1;
13574 unsigned INTN : 1;
13575 unsigned INTP : 1;
13576 unsigned OUT : 1;
13577 unsigned : 1;
13578 unsigned EN : 1;
13581 struct
13583 unsigned LC1MODE : 3;
13584 unsigned : 5;
13587 struct
13589 unsigned MODE : 3;
13590 unsigned : 5;
13592 } __CLC1CONbits_t;
13594 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
13596 #define _CLC1CON_LC1MODE0 0x01
13597 #define _CLC1CON_MODE0 0x01
13598 #define _CLC1CON_LC1MODE1 0x02
13599 #define _CLC1CON_MODE1 0x02
13600 #define _CLC1CON_LC1MODE2 0x04
13601 #define _CLC1CON_MODE2 0x04
13602 #define _CLC1CON_LC1INTN 0x08
13603 #define _CLC1CON_INTN 0x08
13604 #define _CLC1CON_LC1INTP 0x10
13605 #define _CLC1CON_INTP 0x10
13606 #define _CLC1CON_LC1OUT 0x20
13607 #define _CLC1CON_OUT 0x20
13608 #define _CLC1CON_LC1EN 0x80
13609 #define _CLC1CON_EN 0x80
13611 //==============================================================================
13614 //==============================================================================
13615 // CLC1POL Bits
13617 extern __at(0x0F11) __sfr CLC1POL;
13619 typedef union
13621 struct
13623 unsigned LC1G1POL : 1;
13624 unsigned LC1G2POL : 1;
13625 unsigned LC1G3POL : 1;
13626 unsigned LC1G4POL : 1;
13627 unsigned : 1;
13628 unsigned : 1;
13629 unsigned : 1;
13630 unsigned LC1POL : 1;
13633 struct
13635 unsigned G1POL : 1;
13636 unsigned G2POL : 1;
13637 unsigned G3POL : 1;
13638 unsigned G4POL : 1;
13639 unsigned : 1;
13640 unsigned : 1;
13641 unsigned : 1;
13642 unsigned POL : 1;
13644 } __CLC1POLbits_t;
13646 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
13648 #define _CLC1POL_LC1G1POL 0x01
13649 #define _CLC1POL_G1POL 0x01
13650 #define _CLC1POL_LC1G2POL 0x02
13651 #define _CLC1POL_G2POL 0x02
13652 #define _CLC1POL_LC1G3POL 0x04
13653 #define _CLC1POL_G3POL 0x04
13654 #define _CLC1POL_LC1G4POL 0x08
13655 #define _CLC1POL_G4POL 0x08
13656 #define _CLC1POL_LC1POL 0x80
13657 #define _CLC1POL_POL 0x80
13659 //==============================================================================
13662 //==============================================================================
13663 // CLC1SEL0 Bits
13665 extern __at(0x0F12) __sfr CLC1SEL0;
13667 typedef union
13669 struct
13671 unsigned LC1D1S0 : 1;
13672 unsigned LC1D1S1 : 1;
13673 unsigned LC1D1S2 : 1;
13674 unsigned LC1D1S3 : 1;
13675 unsigned LC1D1S4 : 1;
13676 unsigned LC1D1S5 : 1;
13677 unsigned : 1;
13678 unsigned : 1;
13681 struct
13683 unsigned D1S0 : 1;
13684 unsigned D1S1 : 1;
13685 unsigned D1S2 : 1;
13686 unsigned D1S3 : 1;
13687 unsigned D1S4 : 1;
13688 unsigned D1S5 : 1;
13689 unsigned : 1;
13690 unsigned : 1;
13693 struct
13695 unsigned LC1D1S : 6;
13696 unsigned : 2;
13699 struct
13701 unsigned D1S : 6;
13702 unsigned : 2;
13704 } __CLC1SEL0bits_t;
13706 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
13708 #define _LC1D1S0 0x01
13709 #define _D1S0 0x01
13710 #define _LC1D1S1 0x02
13711 #define _D1S1 0x02
13712 #define _LC1D1S2 0x04
13713 #define _D1S2 0x04
13714 #define _LC1D1S3 0x08
13715 #define _D1S3 0x08
13716 #define _LC1D1S4 0x10
13717 #define _D1S4 0x10
13718 #define _LC1D1S5 0x20
13719 #define _D1S5 0x20
13721 //==============================================================================
13724 //==============================================================================
13725 // CLC1SEL1 Bits
13727 extern __at(0x0F13) __sfr CLC1SEL1;
13729 typedef union
13731 struct
13733 unsigned LC1D2S0 : 1;
13734 unsigned LC1D2S1 : 1;
13735 unsigned LC1D2S2 : 1;
13736 unsigned LC1D2S3 : 1;
13737 unsigned LC1D2S4 : 1;
13738 unsigned LC1D2S5 : 1;
13739 unsigned : 1;
13740 unsigned : 1;
13743 struct
13745 unsigned D2S0 : 1;
13746 unsigned D2S1 : 1;
13747 unsigned D2S2 : 1;
13748 unsigned D2S3 : 1;
13749 unsigned D2S4 : 1;
13750 unsigned D2S5 : 1;
13751 unsigned : 1;
13752 unsigned : 1;
13755 struct
13757 unsigned LC1D2S : 6;
13758 unsigned : 2;
13761 struct
13763 unsigned D2S : 6;
13764 unsigned : 2;
13766 } __CLC1SEL1bits_t;
13768 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
13770 #define _LC1D2S0 0x01
13771 #define _D2S0 0x01
13772 #define _LC1D2S1 0x02
13773 #define _D2S1 0x02
13774 #define _LC1D2S2 0x04
13775 #define _D2S2 0x04
13776 #define _LC1D2S3 0x08
13777 #define _D2S3 0x08
13778 #define _LC1D2S4 0x10
13779 #define _D2S4 0x10
13780 #define _LC1D2S5 0x20
13781 #define _D2S5 0x20
13783 //==============================================================================
13786 //==============================================================================
13787 // CLC1SEL2 Bits
13789 extern __at(0x0F14) __sfr CLC1SEL2;
13791 typedef union
13793 struct
13795 unsigned LC1D3S0 : 1;
13796 unsigned LC1D3S1 : 1;
13797 unsigned LC1D3S2 : 1;
13798 unsigned LC1D3S3 : 1;
13799 unsigned LC1D3S4 : 1;
13800 unsigned LC1D3S5 : 1;
13801 unsigned : 1;
13802 unsigned : 1;
13805 struct
13807 unsigned D3S0 : 1;
13808 unsigned D3S1 : 1;
13809 unsigned D3S2 : 1;
13810 unsigned D3S3 : 1;
13811 unsigned D3S4 : 1;
13812 unsigned D3S5 : 1;
13813 unsigned : 1;
13814 unsigned : 1;
13817 struct
13819 unsigned D3S : 6;
13820 unsigned : 2;
13823 struct
13825 unsigned LC1D3S : 6;
13826 unsigned : 2;
13828 } __CLC1SEL2bits_t;
13830 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
13832 #define _LC1D3S0 0x01
13833 #define _D3S0 0x01
13834 #define _LC1D3S1 0x02
13835 #define _D3S1 0x02
13836 #define _LC1D3S2 0x04
13837 #define _D3S2 0x04
13838 #define _LC1D3S3 0x08
13839 #define _D3S3 0x08
13840 #define _LC1D3S4 0x10
13841 #define _D3S4 0x10
13842 #define _LC1D3S5 0x20
13843 #define _D3S5 0x20
13845 //==============================================================================
13848 //==============================================================================
13849 // CLC1SEL3 Bits
13851 extern __at(0x0F15) __sfr CLC1SEL3;
13853 typedef union
13855 struct
13857 unsigned LC1D4S0 : 1;
13858 unsigned LC1D4S1 : 1;
13859 unsigned LC1D4S2 : 1;
13860 unsigned LC1D4S3 : 1;
13861 unsigned LC1D4S4 : 1;
13862 unsigned LC1D4S5 : 1;
13863 unsigned : 1;
13864 unsigned : 1;
13867 struct
13869 unsigned D4S0 : 1;
13870 unsigned D4S1 : 1;
13871 unsigned D4S2 : 1;
13872 unsigned D4S3 : 1;
13873 unsigned D4S4 : 1;
13874 unsigned D4S5 : 1;
13875 unsigned : 1;
13876 unsigned : 1;
13879 struct
13881 unsigned LC1D4S : 6;
13882 unsigned : 2;
13885 struct
13887 unsigned D4S : 6;
13888 unsigned : 2;
13890 } __CLC1SEL3bits_t;
13892 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
13894 #define _LC1D4S0 0x01
13895 #define _D4S0 0x01
13896 #define _LC1D4S1 0x02
13897 #define _D4S1 0x02
13898 #define _LC1D4S2 0x04
13899 #define _D4S2 0x04
13900 #define _LC1D4S3 0x08
13901 #define _D4S3 0x08
13902 #define _LC1D4S4 0x10
13903 #define _D4S4 0x10
13904 #define _LC1D4S5 0x20
13905 #define _D4S5 0x20
13907 //==============================================================================
13910 //==============================================================================
13911 // CLC1GLS0 Bits
13913 extern __at(0x0F16) __sfr CLC1GLS0;
13915 typedef union
13917 struct
13919 unsigned LC1G1D1N : 1;
13920 unsigned LC1G1D1T : 1;
13921 unsigned LC1G1D2N : 1;
13922 unsigned LC1G1D2T : 1;
13923 unsigned LC1G1D3N : 1;
13924 unsigned LC1G1D3T : 1;
13925 unsigned LC1G1D4N : 1;
13926 unsigned LC1G1D4T : 1;
13929 struct
13931 unsigned D1N : 1;
13932 unsigned D1T : 1;
13933 unsigned D2N : 1;
13934 unsigned D2T : 1;
13935 unsigned D3N : 1;
13936 unsigned D3T : 1;
13937 unsigned D4N : 1;
13938 unsigned D4T : 1;
13940 } __CLC1GLS0bits_t;
13942 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
13944 #define _LC1G1D1N 0x01
13945 #define _D1N 0x01
13946 #define _LC1G1D1T 0x02
13947 #define _D1T 0x02
13948 #define _LC1G1D2N 0x04
13949 #define _D2N 0x04
13950 #define _LC1G1D2T 0x08
13951 #define _D2T 0x08
13952 #define _LC1G1D3N 0x10
13953 #define _D3N 0x10
13954 #define _LC1G1D3T 0x20
13955 #define _D3T 0x20
13956 #define _LC1G1D4N 0x40
13957 #define _D4N 0x40
13958 #define _LC1G1D4T 0x80
13959 #define _D4T 0x80
13961 //==============================================================================
13964 //==============================================================================
13965 // CLC1GLS1 Bits
13967 extern __at(0x0F17) __sfr CLC1GLS1;
13969 typedef union
13971 struct
13973 unsigned LC1G2D1N : 1;
13974 unsigned LC1G2D1T : 1;
13975 unsigned LC1G2D2N : 1;
13976 unsigned LC1G2D2T : 1;
13977 unsigned LC1G2D3N : 1;
13978 unsigned LC1G2D3T : 1;
13979 unsigned LC1G2D4N : 1;
13980 unsigned LC1G2D4T : 1;
13983 struct
13985 unsigned D1N : 1;
13986 unsigned D1T : 1;
13987 unsigned D2N : 1;
13988 unsigned D2T : 1;
13989 unsigned D3N : 1;
13990 unsigned D3T : 1;
13991 unsigned D4N : 1;
13992 unsigned D4T : 1;
13994 } __CLC1GLS1bits_t;
13996 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
13998 #define _CLC1GLS1_LC1G2D1N 0x01
13999 #define _CLC1GLS1_D1N 0x01
14000 #define _CLC1GLS1_LC1G2D1T 0x02
14001 #define _CLC1GLS1_D1T 0x02
14002 #define _CLC1GLS1_LC1G2D2N 0x04
14003 #define _CLC1GLS1_D2N 0x04
14004 #define _CLC1GLS1_LC1G2D2T 0x08
14005 #define _CLC1GLS1_D2T 0x08
14006 #define _CLC1GLS1_LC1G2D3N 0x10
14007 #define _CLC1GLS1_D3N 0x10
14008 #define _CLC1GLS1_LC1G2D3T 0x20
14009 #define _CLC1GLS1_D3T 0x20
14010 #define _CLC1GLS1_LC1G2D4N 0x40
14011 #define _CLC1GLS1_D4N 0x40
14012 #define _CLC1GLS1_LC1G2D4T 0x80
14013 #define _CLC1GLS1_D4T 0x80
14015 //==============================================================================
14018 //==============================================================================
14019 // CLC1GLS2 Bits
14021 extern __at(0x0F18) __sfr CLC1GLS2;
14023 typedef union
14025 struct
14027 unsigned LC1G3D1N : 1;
14028 unsigned LC1G3D1T : 1;
14029 unsigned LC1G3D2N : 1;
14030 unsigned LC1G3D2T : 1;
14031 unsigned LC1G3D3N : 1;
14032 unsigned LC1G3D3T : 1;
14033 unsigned LC1G3D4N : 1;
14034 unsigned LC1G3D4T : 1;
14037 struct
14039 unsigned D1N : 1;
14040 unsigned D1T : 1;
14041 unsigned D2N : 1;
14042 unsigned D2T : 1;
14043 unsigned D3N : 1;
14044 unsigned D3T : 1;
14045 unsigned D4N : 1;
14046 unsigned D4T : 1;
14048 } __CLC1GLS2bits_t;
14050 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
14052 #define _CLC1GLS2_LC1G3D1N 0x01
14053 #define _CLC1GLS2_D1N 0x01
14054 #define _CLC1GLS2_LC1G3D1T 0x02
14055 #define _CLC1GLS2_D1T 0x02
14056 #define _CLC1GLS2_LC1G3D2N 0x04
14057 #define _CLC1GLS2_D2N 0x04
14058 #define _CLC1GLS2_LC1G3D2T 0x08
14059 #define _CLC1GLS2_D2T 0x08
14060 #define _CLC1GLS2_LC1G3D3N 0x10
14061 #define _CLC1GLS2_D3N 0x10
14062 #define _CLC1GLS2_LC1G3D3T 0x20
14063 #define _CLC1GLS2_D3T 0x20
14064 #define _CLC1GLS2_LC1G3D4N 0x40
14065 #define _CLC1GLS2_D4N 0x40
14066 #define _CLC1GLS2_LC1G3D4T 0x80
14067 #define _CLC1GLS2_D4T 0x80
14069 //==============================================================================
14072 //==============================================================================
14073 // CLC1GLS3 Bits
14075 extern __at(0x0F19) __sfr CLC1GLS3;
14077 typedef union
14079 struct
14081 unsigned LC1G4D1N : 1;
14082 unsigned LC1G4D1T : 1;
14083 unsigned LC1G4D2N : 1;
14084 unsigned LC1G4D2T : 1;
14085 unsigned LC1G4D3N : 1;
14086 unsigned LC1G4D3T : 1;
14087 unsigned LC1G4D4N : 1;
14088 unsigned LC1G4D4T : 1;
14091 struct
14093 unsigned G4D1N : 1;
14094 unsigned G4D1T : 1;
14095 unsigned G4D2N : 1;
14096 unsigned G4D2T : 1;
14097 unsigned G4D3N : 1;
14098 unsigned G4D3T : 1;
14099 unsigned G4D4N : 1;
14100 unsigned G4D4T : 1;
14102 } __CLC1GLS3bits_t;
14104 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
14106 #define _LC1G4D1N 0x01
14107 #define _G4D1N 0x01
14108 #define _LC1G4D1T 0x02
14109 #define _G4D1T 0x02
14110 #define _LC1G4D2N 0x04
14111 #define _G4D2N 0x04
14112 #define _LC1G4D2T 0x08
14113 #define _G4D2T 0x08
14114 #define _LC1G4D3N 0x10
14115 #define _G4D3N 0x10
14116 #define _LC1G4D3T 0x20
14117 #define _G4D3T 0x20
14118 #define _LC1G4D4N 0x40
14119 #define _G4D4N 0x40
14120 #define _LC1G4D4T 0x80
14121 #define _G4D4T 0x80
14123 //==============================================================================
14126 //==============================================================================
14127 // CLC2CON Bits
14129 extern __at(0x0F1A) __sfr CLC2CON;
14131 typedef union
14133 struct
14135 unsigned LC2MODE0 : 1;
14136 unsigned LC2MODE1 : 1;
14137 unsigned LC2MODE2 : 1;
14138 unsigned LC2INTN : 1;
14139 unsigned LC2INTP : 1;
14140 unsigned LC2OUT : 1;
14141 unsigned : 1;
14142 unsigned LC2EN : 1;
14145 struct
14147 unsigned MODE0 : 1;
14148 unsigned MODE1 : 1;
14149 unsigned MODE2 : 1;
14150 unsigned INTN : 1;
14151 unsigned INTP : 1;
14152 unsigned OUT : 1;
14153 unsigned : 1;
14154 unsigned EN : 1;
14157 struct
14159 unsigned LC2MODE : 3;
14160 unsigned : 5;
14163 struct
14165 unsigned MODE : 3;
14166 unsigned : 5;
14168 } __CLC2CONbits_t;
14170 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
14172 #define _CLC2CON_LC2MODE0 0x01
14173 #define _CLC2CON_MODE0 0x01
14174 #define _CLC2CON_LC2MODE1 0x02
14175 #define _CLC2CON_MODE1 0x02
14176 #define _CLC2CON_LC2MODE2 0x04
14177 #define _CLC2CON_MODE2 0x04
14178 #define _CLC2CON_LC2INTN 0x08
14179 #define _CLC2CON_INTN 0x08
14180 #define _CLC2CON_LC2INTP 0x10
14181 #define _CLC2CON_INTP 0x10
14182 #define _CLC2CON_LC2OUT 0x20
14183 #define _CLC2CON_OUT 0x20
14184 #define _CLC2CON_LC2EN 0x80
14185 #define _CLC2CON_EN 0x80
14187 //==============================================================================
14190 //==============================================================================
14191 // CLC2POL Bits
14193 extern __at(0x0F1B) __sfr CLC2POL;
14195 typedef union
14197 struct
14199 unsigned LC2G1POL : 1;
14200 unsigned LC2G2POL : 1;
14201 unsigned LC2G3POL : 1;
14202 unsigned LC2G4POL : 1;
14203 unsigned : 1;
14204 unsigned : 1;
14205 unsigned : 1;
14206 unsigned LC2POL : 1;
14209 struct
14211 unsigned G1POL : 1;
14212 unsigned G2POL : 1;
14213 unsigned G3POL : 1;
14214 unsigned G4POL : 1;
14215 unsigned : 1;
14216 unsigned : 1;
14217 unsigned : 1;
14218 unsigned POL : 1;
14220 } __CLC2POLbits_t;
14222 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
14224 #define _CLC2POL_LC2G1POL 0x01
14225 #define _CLC2POL_G1POL 0x01
14226 #define _CLC2POL_LC2G2POL 0x02
14227 #define _CLC2POL_G2POL 0x02
14228 #define _CLC2POL_LC2G3POL 0x04
14229 #define _CLC2POL_G3POL 0x04
14230 #define _CLC2POL_LC2G4POL 0x08
14231 #define _CLC2POL_G4POL 0x08
14232 #define _CLC2POL_LC2POL 0x80
14233 #define _CLC2POL_POL 0x80
14235 //==============================================================================
14238 //==============================================================================
14239 // CLC2SEL0 Bits
14241 extern __at(0x0F1C) __sfr CLC2SEL0;
14243 typedef union
14245 struct
14247 unsigned LC2D1S0 : 1;
14248 unsigned LC2D1S1 : 1;
14249 unsigned LC2D1S2 : 1;
14250 unsigned LC2D1S3 : 1;
14251 unsigned LC2D1S4 : 1;
14252 unsigned LC2D1S5 : 1;
14253 unsigned : 1;
14254 unsigned : 1;
14257 struct
14259 unsigned D1S0 : 1;
14260 unsigned D1S1 : 1;
14261 unsigned D1S2 : 1;
14262 unsigned D1S3 : 1;
14263 unsigned D1S4 : 1;
14264 unsigned D1S5 : 1;
14265 unsigned : 1;
14266 unsigned : 1;
14269 struct
14271 unsigned D1S : 6;
14272 unsigned : 2;
14275 struct
14277 unsigned LC2D1S : 6;
14278 unsigned : 2;
14280 } __CLC2SEL0bits_t;
14282 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
14284 #define _CLC2SEL0_LC2D1S0 0x01
14285 #define _CLC2SEL0_D1S0 0x01
14286 #define _CLC2SEL0_LC2D1S1 0x02
14287 #define _CLC2SEL0_D1S1 0x02
14288 #define _CLC2SEL0_LC2D1S2 0x04
14289 #define _CLC2SEL0_D1S2 0x04
14290 #define _CLC2SEL0_LC2D1S3 0x08
14291 #define _CLC2SEL0_D1S3 0x08
14292 #define _CLC2SEL0_LC2D1S4 0x10
14293 #define _CLC2SEL0_D1S4 0x10
14294 #define _CLC2SEL0_LC2D1S5 0x20
14295 #define _CLC2SEL0_D1S5 0x20
14297 //==============================================================================
14300 //==============================================================================
14301 // CLC2SEL1 Bits
14303 extern __at(0x0F1D) __sfr CLC2SEL1;
14305 typedef union
14307 struct
14309 unsigned LC2D2S0 : 1;
14310 unsigned LC2D2S1 : 1;
14311 unsigned LC2D2S2 : 1;
14312 unsigned LC2D2S3 : 1;
14313 unsigned LC2D2S4 : 1;
14314 unsigned LC2D2S5 : 1;
14315 unsigned : 1;
14316 unsigned : 1;
14319 struct
14321 unsigned D2S0 : 1;
14322 unsigned D2S1 : 1;
14323 unsigned D2S2 : 1;
14324 unsigned D2S3 : 1;
14325 unsigned D2S4 : 1;
14326 unsigned D2S5 : 1;
14327 unsigned : 1;
14328 unsigned : 1;
14331 struct
14333 unsigned D2S : 6;
14334 unsigned : 2;
14337 struct
14339 unsigned LC2D2S : 6;
14340 unsigned : 2;
14342 } __CLC2SEL1bits_t;
14344 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
14346 #define _CLC2SEL1_LC2D2S0 0x01
14347 #define _CLC2SEL1_D2S0 0x01
14348 #define _CLC2SEL1_LC2D2S1 0x02
14349 #define _CLC2SEL1_D2S1 0x02
14350 #define _CLC2SEL1_LC2D2S2 0x04
14351 #define _CLC2SEL1_D2S2 0x04
14352 #define _CLC2SEL1_LC2D2S3 0x08
14353 #define _CLC2SEL1_D2S3 0x08
14354 #define _CLC2SEL1_LC2D2S4 0x10
14355 #define _CLC2SEL1_D2S4 0x10
14356 #define _CLC2SEL1_LC2D2S5 0x20
14357 #define _CLC2SEL1_D2S5 0x20
14359 //==============================================================================
14362 //==============================================================================
14363 // CLC2SEL2 Bits
14365 extern __at(0x0F1E) __sfr CLC2SEL2;
14367 typedef union
14369 struct
14371 unsigned LC2D3S0 : 1;
14372 unsigned LC2D3S1 : 1;
14373 unsigned LC2D3S2 : 1;
14374 unsigned LC2D3S3 : 1;
14375 unsigned LC2D3S4 : 1;
14376 unsigned LC2D3S5 : 1;
14377 unsigned : 1;
14378 unsigned : 1;
14381 struct
14383 unsigned D3S0 : 1;
14384 unsigned D3S1 : 1;
14385 unsigned D3S2 : 1;
14386 unsigned D3S3 : 1;
14387 unsigned D3S4 : 1;
14388 unsigned D3S5 : 1;
14389 unsigned : 1;
14390 unsigned : 1;
14393 struct
14395 unsigned D3S : 6;
14396 unsigned : 2;
14399 struct
14401 unsigned LC2D3S : 6;
14402 unsigned : 2;
14404 } __CLC2SEL2bits_t;
14406 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
14408 #define _CLC2SEL2_LC2D3S0 0x01
14409 #define _CLC2SEL2_D3S0 0x01
14410 #define _CLC2SEL2_LC2D3S1 0x02
14411 #define _CLC2SEL2_D3S1 0x02
14412 #define _CLC2SEL2_LC2D3S2 0x04
14413 #define _CLC2SEL2_D3S2 0x04
14414 #define _CLC2SEL2_LC2D3S3 0x08
14415 #define _CLC2SEL2_D3S3 0x08
14416 #define _CLC2SEL2_LC2D3S4 0x10
14417 #define _CLC2SEL2_D3S4 0x10
14418 #define _CLC2SEL2_LC2D3S5 0x20
14419 #define _CLC2SEL2_D3S5 0x20
14421 //==============================================================================
14424 //==============================================================================
14425 // CLC2SEL3 Bits
14427 extern __at(0x0F1F) __sfr CLC2SEL3;
14429 typedef union
14431 struct
14433 unsigned LC2D4S0 : 1;
14434 unsigned LC2D4S1 : 1;
14435 unsigned LC2D4S2 : 1;
14436 unsigned LC2D4S3 : 1;
14437 unsigned LC2D4S4 : 1;
14438 unsigned LC2D4S5 : 1;
14439 unsigned : 1;
14440 unsigned : 1;
14443 struct
14445 unsigned D4S0 : 1;
14446 unsigned D4S1 : 1;
14447 unsigned D4S2 : 1;
14448 unsigned D4S3 : 1;
14449 unsigned D4S4 : 1;
14450 unsigned D4S5 : 1;
14451 unsigned : 1;
14452 unsigned : 1;
14455 struct
14457 unsigned LC2D4S : 6;
14458 unsigned : 2;
14461 struct
14463 unsigned D4S : 6;
14464 unsigned : 2;
14466 } __CLC2SEL3bits_t;
14468 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
14470 #define _CLC2SEL3_LC2D4S0 0x01
14471 #define _CLC2SEL3_D4S0 0x01
14472 #define _CLC2SEL3_LC2D4S1 0x02
14473 #define _CLC2SEL3_D4S1 0x02
14474 #define _CLC2SEL3_LC2D4S2 0x04
14475 #define _CLC2SEL3_D4S2 0x04
14476 #define _CLC2SEL3_LC2D4S3 0x08
14477 #define _CLC2SEL3_D4S3 0x08
14478 #define _CLC2SEL3_LC2D4S4 0x10
14479 #define _CLC2SEL3_D4S4 0x10
14480 #define _CLC2SEL3_LC2D4S5 0x20
14481 #define _CLC2SEL3_D4S5 0x20
14483 //==============================================================================
14486 //==============================================================================
14487 // CLC2GLS0 Bits
14489 extern __at(0x0F20) __sfr CLC2GLS0;
14491 typedef union
14493 struct
14495 unsigned LC2G1D1N : 1;
14496 unsigned LC2G1D1T : 1;
14497 unsigned LC2G1D2N : 1;
14498 unsigned LC2G1D2T : 1;
14499 unsigned LC2G1D3N : 1;
14500 unsigned LC2G1D3T : 1;
14501 unsigned LC2G1D4N : 1;
14502 unsigned LC2G1D4T : 1;
14505 struct
14507 unsigned D1N : 1;
14508 unsigned D1T : 1;
14509 unsigned D2N : 1;
14510 unsigned D2T : 1;
14511 unsigned D3N : 1;
14512 unsigned D3T : 1;
14513 unsigned D4N : 1;
14514 unsigned D4T : 1;
14516 } __CLC2GLS0bits_t;
14518 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
14520 #define _CLC2GLS0_LC2G1D1N 0x01
14521 #define _CLC2GLS0_D1N 0x01
14522 #define _CLC2GLS0_LC2G1D1T 0x02
14523 #define _CLC2GLS0_D1T 0x02
14524 #define _CLC2GLS0_LC2G1D2N 0x04
14525 #define _CLC2GLS0_D2N 0x04
14526 #define _CLC2GLS0_LC2G1D2T 0x08
14527 #define _CLC2GLS0_D2T 0x08
14528 #define _CLC2GLS0_LC2G1D3N 0x10
14529 #define _CLC2GLS0_D3N 0x10
14530 #define _CLC2GLS0_LC2G1D3T 0x20
14531 #define _CLC2GLS0_D3T 0x20
14532 #define _CLC2GLS0_LC2G1D4N 0x40
14533 #define _CLC2GLS0_D4N 0x40
14534 #define _CLC2GLS0_LC2G1D4T 0x80
14535 #define _CLC2GLS0_D4T 0x80
14537 //==============================================================================
14540 //==============================================================================
14541 // CLC2GLS1 Bits
14543 extern __at(0x0F21) __sfr CLC2GLS1;
14545 typedef union
14547 struct
14549 unsigned LC2G2D1N : 1;
14550 unsigned LC2G2D1T : 1;
14551 unsigned LC2G2D2N : 1;
14552 unsigned LC2G2D2T : 1;
14553 unsigned LC2G2D3N : 1;
14554 unsigned LC2G2D3T : 1;
14555 unsigned LC2G2D4N : 1;
14556 unsigned LC2G2D4T : 1;
14559 struct
14561 unsigned D1N : 1;
14562 unsigned D1T : 1;
14563 unsigned D2N : 1;
14564 unsigned D2T : 1;
14565 unsigned D3N : 1;
14566 unsigned D3T : 1;
14567 unsigned D4N : 1;
14568 unsigned D4T : 1;
14570 } __CLC2GLS1bits_t;
14572 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
14574 #define _CLC2GLS1_LC2G2D1N 0x01
14575 #define _CLC2GLS1_D1N 0x01
14576 #define _CLC2GLS1_LC2G2D1T 0x02
14577 #define _CLC2GLS1_D1T 0x02
14578 #define _CLC2GLS1_LC2G2D2N 0x04
14579 #define _CLC2GLS1_D2N 0x04
14580 #define _CLC2GLS1_LC2G2D2T 0x08
14581 #define _CLC2GLS1_D2T 0x08
14582 #define _CLC2GLS1_LC2G2D3N 0x10
14583 #define _CLC2GLS1_D3N 0x10
14584 #define _CLC2GLS1_LC2G2D3T 0x20
14585 #define _CLC2GLS1_D3T 0x20
14586 #define _CLC2GLS1_LC2G2D4N 0x40
14587 #define _CLC2GLS1_D4N 0x40
14588 #define _CLC2GLS1_LC2G2D4T 0x80
14589 #define _CLC2GLS1_D4T 0x80
14591 //==============================================================================
14594 //==============================================================================
14595 // CLC2GLS2 Bits
14597 extern __at(0x0F22) __sfr CLC2GLS2;
14599 typedef union
14601 struct
14603 unsigned LC2G3D1N : 1;
14604 unsigned LC2G3D1T : 1;
14605 unsigned LC2G3D2N : 1;
14606 unsigned LC2G3D2T : 1;
14607 unsigned LC2G3D3N : 1;
14608 unsigned LC2G3D3T : 1;
14609 unsigned LC2G3D4N : 1;
14610 unsigned LC2G3D4T : 1;
14613 struct
14615 unsigned D1N : 1;
14616 unsigned D1T : 1;
14617 unsigned D2N : 1;
14618 unsigned D2T : 1;
14619 unsigned D3N : 1;
14620 unsigned D3T : 1;
14621 unsigned D4N : 1;
14622 unsigned D4T : 1;
14624 } __CLC2GLS2bits_t;
14626 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
14628 #define _CLC2GLS2_LC2G3D1N 0x01
14629 #define _CLC2GLS2_D1N 0x01
14630 #define _CLC2GLS2_LC2G3D1T 0x02
14631 #define _CLC2GLS2_D1T 0x02
14632 #define _CLC2GLS2_LC2G3D2N 0x04
14633 #define _CLC2GLS2_D2N 0x04
14634 #define _CLC2GLS2_LC2G3D2T 0x08
14635 #define _CLC2GLS2_D2T 0x08
14636 #define _CLC2GLS2_LC2G3D3N 0x10
14637 #define _CLC2GLS2_D3N 0x10
14638 #define _CLC2GLS2_LC2G3D3T 0x20
14639 #define _CLC2GLS2_D3T 0x20
14640 #define _CLC2GLS2_LC2G3D4N 0x40
14641 #define _CLC2GLS2_D4N 0x40
14642 #define _CLC2GLS2_LC2G3D4T 0x80
14643 #define _CLC2GLS2_D4T 0x80
14645 //==============================================================================
14648 //==============================================================================
14649 // CLC2GLS3 Bits
14651 extern __at(0x0F23) __sfr CLC2GLS3;
14653 typedef union
14655 struct
14657 unsigned LC2G4D1N : 1;
14658 unsigned LC2G4D1T : 1;
14659 unsigned LC2G4D2N : 1;
14660 unsigned LC2G4D2T : 1;
14661 unsigned LC2G4D3N : 1;
14662 unsigned LC2G4D3T : 1;
14663 unsigned LC2G4D4N : 1;
14664 unsigned LC2G4D4T : 1;
14667 struct
14669 unsigned G4D1N : 1;
14670 unsigned G4D1T : 1;
14671 unsigned G4D2N : 1;
14672 unsigned G4D2T : 1;
14673 unsigned G4D3N : 1;
14674 unsigned G4D3T : 1;
14675 unsigned G4D4N : 1;
14676 unsigned G4D4T : 1;
14678 } __CLC2GLS3bits_t;
14680 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
14682 #define _CLC2GLS3_LC2G4D1N 0x01
14683 #define _CLC2GLS3_G4D1N 0x01
14684 #define _CLC2GLS3_LC2G4D1T 0x02
14685 #define _CLC2GLS3_G4D1T 0x02
14686 #define _CLC2GLS3_LC2G4D2N 0x04
14687 #define _CLC2GLS3_G4D2N 0x04
14688 #define _CLC2GLS3_LC2G4D2T 0x08
14689 #define _CLC2GLS3_G4D2T 0x08
14690 #define _CLC2GLS3_LC2G4D3N 0x10
14691 #define _CLC2GLS3_G4D3N 0x10
14692 #define _CLC2GLS3_LC2G4D3T 0x20
14693 #define _CLC2GLS3_G4D3T 0x20
14694 #define _CLC2GLS3_LC2G4D4N 0x40
14695 #define _CLC2GLS3_G4D4N 0x40
14696 #define _CLC2GLS3_LC2G4D4T 0x80
14697 #define _CLC2GLS3_G4D4T 0x80
14699 //==============================================================================
14702 //==============================================================================
14703 // STATUS_SHAD Bits
14705 extern __at(0x0FE4) __sfr STATUS_SHAD;
14707 typedef struct
14709 unsigned C_SHAD : 1;
14710 unsigned DC_SHAD : 1;
14711 unsigned Z_SHAD : 1;
14712 unsigned : 1;
14713 unsigned : 1;
14714 unsigned : 1;
14715 unsigned : 1;
14716 unsigned : 1;
14717 } __STATUS_SHADbits_t;
14719 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
14721 #define _C_SHAD 0x01
14722 #define _DC_SHAD 0x02
14723 #define _Z_SHAD 0x04
14725 //==============================================================================
14727 extern __at(0x0FE5) __sfr WREG_SHAD;
14728 extern __at(0x0FE6) __sfr BSR_SHAD;
14729 extern __at(0x0FE7) __sfr PCLATH_SHAD;
14730 extern __at(0x0FE8) __sfr FSR0L_SHAD;
14731 extern __at(0x0FE9) __sfr FSR0H_SHAD;
14732 extern __at(0x0FEA) __sfr FSR1L_SHAD;
14733 extern __at(0x0FEB) __sfr FSR1H_SHAD;
14734 extern __at(0x0FED) __sfr STKPTR;
14735 extern __at(0x0FEE) __sfr TOSL;
14736 extern __at(0x0FEF) __sfr TOSH;
14738 //==============================================================================
14740 // Configuration Bits
14742 //==============================================================================
14744 #define _CONFIG1 0x8007
14745 #define _CONFIG2 0x8008
14746 #define _CONFIG3 0x8009
14748 //----------------------------- CONFIG1 Options -------------------------------
14750 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
14751 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
14752 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
14753 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
14754 #define _PWRTE_ON 0x3FDF // PWRT enabled.
14755 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
14756 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
14757 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
14758 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
14759 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
14760 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
14761 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
14762 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
14763 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
14764 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
14765 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
14767 //----------------------------- CONFIG2 Options -------------------------------
14769 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by PMCON control.
14770 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by PMCON control.
14771 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by PMCON control.
14772 #define _WRT_OFF 0x3FFF // Write protection off.
14773 #define _PPS1WAY_OFF 0x3FFB // The PPSLOCK bit can be set and cleared repeatedly by software.
14774 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit cannot be cleared once it is set by software.
14775 #define _ZCD_ON 0x3F7F // ZCD always enabled.
14776 #define _ZCD_OFF 0x3FFF // ZCD disable. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON.
14777 #define _PLLEN_OFF 0x3EFF // 4x PLL is enabled when software sets the SPLLEN bit.
14778 #define _PLLEN_ON 0x3FFF // 4x PLL is always enabled.
14779 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
14780 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
14781 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
14782 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
14783 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
14784 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
14785 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
14786 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
14787 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
14788 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
14790 //----------------------------- CONFIG3 Options -------------------------------
14792 #define _WDTCPS_WDTCPS0 0x3FE0 // 1:32 (1 ms period).
14793 #define _WDTCPS_WDTCPS1 0x3FE1 // 1:64 (2 ms period).
14794 #define _WDTCPS_WDTCPS2 0x3FE2 // 1:128 (4 ms period).
14795 #define _WDTCPS_WDTCPS3 0x3FE3 // 1:256 (8 ms period).
14796 #define _WDTCPS_WDTCPS4 0x3FE4 // 1:512 (16 ms period).
14797 #define _WDTCPS_WDTCPS5 0x3FE5 // 1:1024 (32 ms period).
14798 #define _WDTCPS_WDTCPS6 0x3FE6 // 1:2048 (64 ms period).
14799 #define _WDTCPS_WDTCPS7 0x3FE7 // 1:4096 (128 ms period).
14800 #define _WDTCPS_WDTCPS8 0x3FE8 // 1:8192 (256 ms period).
14801 #define _WDTCPS_WDTCPS9 0x3FE9 // 1:16384 (512 ms period).
14802 #define _WDTCPS_WDTCPSA 0x3FEA // 1:32768 (1 s period).
14803 #define _WDTCPS_WDTCPSB 0x3FEB // 1:65536 (2 s period).
14804 #define _WDTCPS_WDTCPSC 0x3FEC // 1:131072 (4 s period).
14805 #define _WDTCPS_WDTCPSD 0x3FED // 1:262144 (8 s period).
14806 #define _WDTCPS_WDTCPSE 0x3FEE // 1:524299 (16 s period).
14807 #define _WDTCPS_WDTCPSF 0x3FEF // 1:1048576 (32 s period).
14808 #define _WDTCPS_WDTCPS10 0x3FF0 // 1:2097152 (64 s period).
14809 #define _WDTCPS_WDTCPS11 0x3FF1 // 1:4194304 (128 s period).
14810 #define _WDTCPS_WDTCPS12 0x3FF2 // 1:8388608 (256 s period).
14811 #define _WDTCPS_WDTCPS1F 0x3FFF // Software Control (WDTPS).
14812 #define _WDTE_OFF 0x3F9F // WDT disabled.
14813 #define _WDTE_SWDTEN 0x3FBF // WDT controlled by the SWDTEN bit in the WDTCON register.
14814 #define _WDTE_NSLEEP 0x3FDF // WDT enabled while running and disabled in Sleep.
14815 #define _WDTE_ON 0x3FFF // WDT enabled.
14816 #define _WDTCWS_WDTCWS125 0x38FF // 12.5 percent window open time.
14817 #define _WDTCWS_WDTCWS25 0x39FF // 25 percent window open time.
14818 #define _WDTCWS_WDTCWS375 0x3AFF // 37.5 percent window open time.
14819 #define _WDTCWS_WDTCWS50 0x3BFF // 50 percent window open time.
14820 #define _WDTCWS_WDTCWS625 0x3CFF // 62.5 percent window open time.
14821 #define _WDTCWS_WDTCWS75 0x3DFF // 75 percent window open time.
14822 #define _WDTCWS_WDTCWS100 0x3EFF // 100 percent window open time (Legacy WDT).
14823 #define _WDTCWS_WDTCWSSW 0x3FFF // Software WDT window size control (WDTWS bits).
14824 #define _WDTCCS_LFINTOSC 0x07FF // 31.0kHz LFINTOSC.
14825 #define _WDTCCS_MFINTOSC 0x0FFF // 31.25 kHz HFINTOSC (MFINTOSC).
14826 #define _WDTCCS_SWC 0x3FFF // Software control, controlled by WDTCS bits.
14828 //==============================================================================
14830 #define _DEVID1 0x8006
14832 #define _IDLOC0 0x8000
14833 #define _IDLOC1 0x8001
14834 #define _IDLOC2 0x8002
14835 #define _IDLOC3 0x8003
14837 //==============================================================================
14839 #ifndef NO_BIT_DEFINES
14841 #define ADON ADCON0bits.ADON // bit 0
14842 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
14843 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
14844 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
14845 #define CHS0 ADCON0bits.CHS0 // bit 2
14846 #define CHS1 ADCON0bits.CHS1 // bit 3
14847 #define CHS2 ADCON0bits.CHS2 // bit 4
14848 #define CHS3 ADCON0bits.CHS3 // bit 5
14849 #define CHS4 ADCON0bits.CHS4 // bit 6
14851 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
14852 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
14853 #define ADCS0 ADCON1bits.ADCS0 // bit 4
14854 #define ADCS1 ADCON1bits.ADCS1 // bit 5
14855 #define ADCS2 ADCON1bits.ADCS2 // bit 6
14856 #define ADFM ADCON1bits.ADFM // bit 7
14858 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
14859 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
14860 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
14861 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
14863 #define ANSA0 ANSELAbits.ANSA0 // bit 0
14864 #define ANSA1 ANSELAbits.ANSA1 // bit 1
14865 #define ANSA2 ANSELAbits.ANSA2 // bit 2
14866 #define ANSA4 ANSELAbits.ANSA4 // bit 4
14868 #define ANSB4 ANSELBbits.ANSB4 // bit 4
14869 #define ANSB5 ANSELBbits.ANSB5 // bit 5
14870 #define ANSB6 ANSELBbits.ANSB6 // bit 6
14871 #define ANSB7 ANSELBbits.ANSB7 // bit 7
14873 #define ANSC0 ANSELCbits.ANSC0 // bit 0
14874 #define ANSC1 ANSELCbits.ANSC1 // bit 1
14875 #define ANSC2 ANSELCbits.ANSC2 // bit 2
14876 #define ANSC3 ANSELCbits.ANSC3 // bit 3
14877 #define ANSC6 ANSELCbits.ANSC6 // bit 6
14878 #define ANSC7 ANSELCbits.ANSC7 // bit 7
14880 #define AT1CC18 AT1CC1Hbits.AT1CC18 // bit 0, shadows bit in AT1CC1Hbits
14881 #define CC18 AT1CC1Hbits.CC18 // bit 0, shadows bit in AT1CC1Hbits
14882 #define AT1CC19 AT1CC1Hbits.AT1CC19 // bit 1, shadows bit in AT1CC1Hbits
14883 #define CC19 AT1CC1Hbits.CC19 // bit 1, shadows bit in AT1CC1Hbits
14885 #define AT1CC10 AT1CC1Lbits.AT1CC10 // bit 0, shadows bit in AT1CC1Lbits
14886 #define CC10 AT1CC1Lbits.CC10 // bit 0, shadows bit in AT1CC1Lbits
14887 #define AT1CC11 AT1CC1Lbits.AT1CC11 // bit 1, shadows bit in AT1CC1Lbits
14888 #define CC11 AT1CC1Lbits.CC11 // bit 1, shadows bit in AT1CC1Lbits
14889 #define AT1CC12 AT1CC1Lbits.AT1CC12 // bit 2, shadows bit in AT1CC1Lbits
14890 #define CC12 AT1CC1Lbits.CC12 // bit 2, shadows bit in AT1CC1Lbits
14891 #define AT1CC13 AT1CC1Lbits.AT1CC13 // bit 3, shadows bit in AT1CC1Lbits
14892 #define CC13 AT1CC1Lbits.CC13 // bit 3, shadows bit in AT1CC1Lbits
14893 #define AT1CC14 AT1CC1Lbits.AT1CC14 // bit 4, shadows bit in AT1CC1Lbits
14894 #define CC14 AT1CC1Lbits.CC14 // bit 4, shadows bit in AT1CC1Lbits
14895 #define AT1CC15 AT1CC1Lbits.AT1CC15 // bit 5, shadows bit in AT1CC1Lbits
14896 #define CC15 AT1CC1Lbits.CC15 // bit 5, shadows bit in AT1CC1Lbits
14897 #define AT1CC16 AT1CC1Lbits.AT1CC16 // bit 6, shadows bit in AT1CC1Lbits
14898 #define CC16 AT1CC1Lbits.CC16 // bit 6, shadows bit in AT1CC1Lbits
14899 #define AT1CC17 AT1CC1Lbits.AT1CC17 // bit 7, shadows bit in AT1CC1Lbits
14900 #define CC17 AT1CC1Lbits.CC17 // bit 7, shadows bit in AT1CC1Lbits
14902 #define AT1CC28 AT1CC2Hbits.AT1CC28 // bit 0, shadows bit in AT1CC2Hbits
14903 #define CC28 AT1CC2Hbits.CC28 // bit 0, shadows bit in AT1CC2Hbits
14904 #define AT1CC29 AT1CC2Hbits.AT1CC29 // bit 1, shadows bit in AT1CC2Hbits
14905 #define CC29 AT1CC2Hbits.CC29 // bit 1, shadows bit in AT1CC2Hbits
14907 #define AT1CC38 AT1CC3Hbits.AT1CC38 // bit 0, shadows bit in AT1CC3Hbits
14908 #define CC38 AT1CC3Hbits.CC38 // bit 0, shadows bit in AT1CC3Hbits
14909 #define AT1CC39 AT1CC3Hbits.AT1CC39 // bit 1, shadows bit in AT1CC3Hbits
14910 #define CC39 AT1CC3Hbits.CC39 // bit 1, shadows bit in AT1CC3Hbits
14912 #define AT1CC30 AT1CC3Lbits.AT1CC30 // bit 0, shadows bit in AT1CC3Lbits
14913 #define CC30 AT1CC3Lbits.CC30 // bit 0, shadows bit in AT1CC3Lbits
14914 #define AT1CC31 AT1CC3Lbits.AT1CC31 // bit 1, shadows bit in AT1CC3Lbits
14915 #define CC31 AT1CC3Lbits.CC31 // bit 1, shadows bit in AT1CC3Lbits
14916 #define AT1CC32 AT1CC3Lbits.AT1CC32 // bit 2, shadows bit in AT1CC3Lbits
14917 #define CC32 AT1CC3Lbits.CC32 // bit 2, shadows bit in AT1CC3Lbits
14918 #define AT1CC33 AT1CC3Lbits.AT1CC33 // bit 3, shadows bit in AT1CC3Lbits
14919 #define CC33 AT1CC3Lbits.CC33 // bit 3, shadows bit in AT1CC3Lbits
14920 #define AT1CC34 AT1CC3Lbits.AT1CC34 // bit 4, shadows bit in AT1CC3Lbits
14921 #define CC34 AT1CC3Lbits.CC34 // bit 4, shadows bit in AT1CC3Lbits
14922 #define AT1CC35 AT1CC3Lbits.AT1CC35 // bit 5, shadows bit in AT1CC3Lbits
14923 #define CC35 AT1CC3Lbits.CC35 // bit 5, shadows bit in AT1CC3Lbits
14924 #define AT1CC36 AT1CC3Lbits.AT1CC36 // bit 6, shadows bit in AT1CC3Lbits
14925 #define CC36 AT1CC3Lbits.CC36 // bit 6, shadows bit in AT1CC3Lbits
14926 #define AT1CC37 AT1CC3Lbits.AT1CC37 // bit 7, shadows bit in AT1CC3Lbits
14927 #define CC37 AT1CC3Lbits.CC37 // bit 7, shadows bit in AT1CC3Lbits
14929 #define AT1CC1MODE AT1CCON1bits.AT1CC1MODE // bit 0, shadows bit in AT1CCON1bits
14930 #define CC1MODE AT1CCON1bits.CC1MODE // bit 0, shadows bit in AT1CCON1bits
14931 #define AT1CAP1P AT1CCON1bits.AT1CAP1P // bit 3, shadows bit in AT1CCON1bits
14932 #define CAP1P AT1CCON1bits.CAP1P // bit 3, shadows bit in AT1CCON1bits
14933 #define AT1CC1POL AT1CCON1bits.AT1CC1POL // bit 4, shadows bit in AT1CCON1bits
14934 #define CC1POL AT1CCON1bits.CC1POL // bit 4, shadows bit in AT1CCON1bits
14935 #define AT1CC1EN AT1CCON1bits.AT1CC1EN // bit 7, shadows bit in AT1CCON1bits
14936 #define CC1EN AT1CCON1bits.CC1EN // bit 7, shadows bit in AT1CCON1bits
14938 #define AT1CC2MODE AT1CCON2bits.AT1CC2MODE // bit 0, shadows bit in AT1CCON2bits
14939 #define CC2MODE AT1CCON2bits.CC2MODE // bit 0, shadows bit in AT1CCON2bits
14940 #define AT1CAP2P AT1CCON2bits.AT1CAP2P // bit 3, shadows bit in AT1CCON2bits
14941 #define CAP2P AT1CCON2bits.CAP2P // bit 3, shadows bit in AT1CCON2bits
14942 #define AT1CC2POL AT1CCON2bits.AT1CC2POL // bit 4, shadows bit in AT1CCON2bits
14943 #define CC2POL AT1CCON2bits.CC2POL // bit 4, shadows bit in AT1CCON2bits
14944 #define AT1CC2EN AT1CCON2bits.AT1CC2EN // bit 7, shadows bit in AT1CCON2bits
14945 #define CC2EN AT1CCON2bits.CC2EN // bit 7, shadows bit in AT1CCON2bits
14947 #define AT1CC3MODE AT1CCON3bits.AT1CC3MODE // bit 0, shadows bit in AT1CCON3bits
14948 #define CC3MODE AT1CCON3bits.CC3MODE // bit 0, shadows bit in AT1CCON3bits
14949 #define AT1CAP3P AT1CCON3bits.AT1CAP3P // bit 3, shadows bit in AT1CCON3bits
14950 #define CAP3P AT1CCON3bits.CAP3P // bit 3, shadows bit in AT1CCON3bits
14951 #define AT1CC3POL AT1CCON3bits.AT1CC3POL // bit 4, shadows bit in AT1CCON3bits
14952 #define CC3POL AT1CCON3bits.CC3POL // bit 4, shadows bit in AT1CCON3bits
14953 #define AT1CC3EN AT1CCON3bits.AT1CC3EN // bit 7, shadows bit in AT1CCON3bits
14954 #define CC3EN AT1CCON3bits.CC3EN // bit 7, shadows bit in AT1CCON3bits
14956 #define CS AT1CLKbits.CS // bit 0, shadows bit in AT1CLKbits
14957 #define AT1CS AT1CLKbits.AT1CS // bit 0, shadows bit in AT1CLKbits
14958 #define CS0 AT1CLKbits.CS0 // bit 0, shadows bit in AT1CLKbits
14959 #define AT1CS0 AT1CLKbits.AT1CS0 // bit 0, shadows bit in AT1CLKbits
14961 #define MODE AT1CON0bits.MODE // bit 0, shadows bit in AT1CON0bits
14962 #define AT1MODE AT1CON0bits.AT1MODE // bit 0, shadows bit in AT1CON0bits
14963 #define APMOD AT1CON0bits.APMOD // bit 1, shadows bit in AT1CON0bits
14964 #define AT1APMOD AT1CON0bits.AT1APMOD // bit 1, shadows bit in AT1CON0bits
14965 #define POL AT1CON0bits.POL // bit 3, shadows bit in AT1CON0bits
14966 #define AT1POL AT1CON0bits.AT1POL // bit 3, shadows bit in AT1CON0bits
14967 #define PS0 AT1CON0bits.PS0 // bit 4, shadows bit in AT1CON0bits
14968 #define AT1PS0 AT1CON0bits.AT1PS0 // bit 4, shadows bit in AT1CON0bits
14969 #define PS1 AT1CON0bits.PS1 // bit 5, shadows bit in AT1CON0bits
14970 #define AT1PS1 AT1CON0bits.AT1PS1 // bit 5, shadows bit in AT1CON0bits
14971 #define PREC AT1CON0bits.PREC // bit 6, shadows bit in AT1CON0bits
14972 #define AT1PREC AT1CON0bits.AT1PREC // bit 6, shadows bit in AT1CON0bits
14973 #define EN AT1CON0bits.EN // bit 7, shadows bit in AT1CON0bits
14974 #define AT1EN AT1CON0bits.AT1EN // bit 7, shadows bit in AT1CON0bits
14976 #define VALID AT1CON1bits.VALID // bit 0, shadows bit in AT1CON1bits
14977 #define AT1VALID AT1CON1bits.AT1VALID // bit 0, shadows bit in AT1CON1bits
14978 #define ACCS AT1CON1bits.ACCS // bit 1, shadows bit in AT1CON1bits
14979 #define AT1ACCS AT1CON1bits.AT1ACCS // bit 1, shadows bit in AT1CON1bits
14980 #define MPP AT1CON1bits.MPP // bit 2, shadows bit in AT1CON1bits
14981 #define AT1MPP AT1CON1bits.AT1MPP // bit 2, shadows bit in AT1CON1bits
14982 #define PRP AT1CON1bits.PRP // bit 4, shadows bit in AT1CON1bits
14983 #define AT1PRP AT1CON1bits.AT1PRP // bit 4, shadows bit in AT1CON1bits
14984 #define PHP AT1CON1bits.PHP // bit 6, shadows bit in AT1CON1bits
14985 #define AT1PHP AT1CON1bits.AT1PHP // bit 6, shadows bit in AT1CON1bits
14987 #define AT1CP1S0 AT1CSEL1bits.AT1CP1S0 // bit 0, shadows bit in AT1CSEL1bits
14988 #define CP1S0 AT1CSEL1bits.CP1S0 // bit 0, shadows bit in AT1CSEL1bits
14989 #define AT1CP1S1 AT1CSEL1bits.AT1CP1S1 // bit 1, shadows bit in AT1CSEL1bits
14990 #define CP1S1 AT1CSEL1bits.CP1S1 // bit 1, shadows bit in AT1CSEL1bits
14991 #define AT1CP1S2 AT1CSEL1bits.AT1CP1S2 // bit 2, shadows bit in AT1CSEL1bits
14992 #define CP1S2 AT1CSEL1bits.CP1S2 // bit 2, shadows bit in AT1CSEL1bits
14994 #define AT1CP2S0 AT1CSEL2bits.AT1CP2S0 // bit 0, shadows bit in AT1CSEL2bits
14995 #define CP2S0 AT1CSEL2bits.CP2S0 // bit 0, shadows bit in AT1CSEL2bits
14996 #define AT1CP2S1 AT1CSEL2bits.AT1CP2S1 // bit 1, shadows bit in AT1CSEL2bits
14997 #define CP2S1 AT1CSEL2bits.CP2S1 // bit 1, shadows bit in AT1CSEL2bits
14998 #define AT1CP2S2 AT1CSEL2bits.AT1CP2S2 // bit 2, shadows bit in AT1CSEL2bits
14999 #define CP2S2 AT1CSEL2bits.CP2S2 // bit 2, shadows bit in AT1CSEL2bits
15001 #define AT1CP3S0 AT1CSEL3bits.AT1CP3S0 // bit 0, shadows bit in AT1CSEL3bits
15002 #define CP3S0 AT1CSEL3bits.CP3S0 // bit 0, shadows bit in AT1CSEL3bits
15003 #define AT1CP3S1 AT1CSEL3bits.AT1CP3S1 // bit 1, shadows bit in AT1CSEL3bits
15004 #define CP3S1 AT1CSEL3bits.CP3S1 // bit 1, shadows bit in AT1CSEL3bits
15005 #define AT1CP3S2 AT1CSEL3bits.AT1CP3S2 // bit 2, shadows bit in AT1CSEL3bits
15006 #define CP3S2 AT1CSEL3bits.CP3S2 // bit 2, shadows bit in AT1CSEL3bits
15008 #define AT1ERR8 AT1ERRHbits.AT1ERR8 // bit 0, shadows bit in AT1ERRHbits
15009 #define ERR8 AT1ERRHbits.ERR8 // bit 0, shadows bit in AT1ERRHbits
15010 #define ERRH0 AT1ERRHbits.ERRH0 // bit 0, shadows bit in AT1ERRHbits
15011 #define AT1ERR9 AT1ERRHbits.AT1ERR9 // bit 1, shadows bit in AT1ERRHbits
15012 #define ERR9 AT1ERRHbits.ERR9 // bit 1, shadows bit in AT1ERRHbits
15013 #define ERRH1 AT1ERRHbits.ERRH1 // bit 1, shadows bit in AT1ERRHbits
15014 #define AT1ERR10 AT1ERRHbits.AT1ERR10 // bit 2, shadows bit in AT1ERRHbits
15015 #define ERR10 AT1ERRHbits.ERR10 // bit 2, shadows bit in AT1ERRHbits
15016 #define ERRH2 AT1ERRHbits.ERRH2 // bit 2, shadows bit in AT1ERRHbits
15017 #define AT1ERR11 AT1ERRHbits.AT1ERR11 // bit 3, shadows bit in AT1ERRHbits
15018 #define ERR11 AT1ERRHbits.ERR11 // bit 3, shadows bit in AT1ERRHbits
15019 #define ERRH3 AT1ERRHbits.ERRH3 // bit 3, shadows bit in AT1ERRHbits
15020 #define AT1ERR12 AT1ERRHbits.AT1ERR12 // bit 4, shadows bit in AT1ERRHbits
15021 #define ERR12 AT1ERRHbits.ERR12 // bit 4, shadows bit in AT1ERRHbits
15022 #define ERRH4 AT1ERRHbits.ERRH4 // bit 4, shadows bit in AT1ERRHbits
15023 #define AT1ERR13 AT1ERRHbits.AT1ERR13 // bit 5, shadows bit in AT1ERRHbits
15024 #define ERR13 AT1ERRHbits.ERR13 // bit 5, shadows bit in AT1ERRHbits
15025 #define ERRH5 AT1ERRHbits.ERRH5 // bit 5, shadows bit in AT1ERRHbits
15026 #define AT1ERR14 AT1ERRHbits.AT1ERR14 // bit 6, shadows bit in AT1ERRHbits
15027 #define ERR14 AT1ERRHbits.ERR14 // bit 6, shadows bit in AT1ERRHbits
15028 #define ERRH6 AT1ERRHbits.ERRH6 // bit 6, shadows bit in AT1ERRHbits
15029 #define AT1ERR15 AT1ERRHbits.AT1ERR15 // bit 7, shadows bit in AT1ERRHbits
15030 #define ERR15 AT1ERRHbits.ERR15 // bit 7, shadows bit in AT1ERRHbits
15031 #define ERRH7 AT1ERRHbits.ERRH7 // bit 7, shadows bit in AT1ERRHbits
15033 #define AT1ERR0 AT1ERRLbits.AT1ERR0 // bit 0, shadows bit in AT1ERRLbits
15034 #define ERR0 AT1ERRLbits.ERR0 // bit 0, shadows bit in AT1ERRLbits
15035 #define ERRL0 AT1ERRLbits.ERRL0 // bit 0, shadows bit in AT1ERRLbits
15036 #define AT1ERR1 AT1ERRLbits.AT1ERR1 // bit 1, shadows bit in AT1ERRLbits
15037 #define ERR1 AT1ERRLbits.ERR1 // bit 1, shadows bit in AT1ERRLbits
15038 #define ERRL1 AT1ERRLbits.ERRL1 // bit 1, shadows bit in AT1ERRLbits
15039 #define AT1ERR2 AT1ERRLbits.AT1ERR2 // bit 2, shadows bit in AT1ERRLbits
15040 #define ERR2 AT1ERRLbits.ERR2 // bit 2, shadows bit in AT1ERRLbits
15041 #define ERRL2 AT1ERRLbits.ERRL2 // bit 2, shadows bit in AT1ERRLbits
15042 #define AT1ERR3 AT1ERRLbits.AT1ERR3 // bit 3, shadows bit in AT1ERRLbits
15043 #define ERR3 AT1ERRLbits.ERR3 // bit 3, shadows bit in AT1ERRLbits
15044 #define ERRL3 AT1ERRLbits.ERRL3 // bit 3, shadows bit in AT1ERRLbits
15045 #define AT1ERR4 AT1ERRLbits.AT1ERR4 // bit 4, shadows bit in AT1ERRLbits
15046 #define ERR4 AT1ERRLbits.ERR4 // bit 4, shadows bit in AT1ERRLbits
15047 #define ERRL4 AT1ERRLbits.ERRL4 // bit 4, shadows bit in AT1ERRLbits
15048 #define AT1ERR5 AT1ERRLbits.AT1ERR5 // bit 5, shadows bit in AT1ERRLbits
15049 #define ERR5 AT1ERRLbits.ERR5 // bit 5, shadows bit in AT1ERRLbits
15050 #define ERRL5 AT1ERRLbits.ERRL5 // bit 5, shadows bit in AT1ERRLbits
15051 #define AT1ERR6 AT1ERRLbits.AT1ERR6 // bit 6, shadows bit in AT1ERRLbits
15052 #define ERR6 AT1ERRLbits.ERR6 // bit 6, shadows bit in AT1ERRLbits
15053 #define ERRL6 AT1ERRLbits.ERRL6 // bit 6, shadows bit in AT1ERRLbits
15054 #define AT1ERR7 AT1ERRLbits.AT1ERR7 // bit 7, shadows bit in AT1ERRLbits
15055 #define ERR7 AT1ERRLbits.ERR7 // bit 7, shadows bit in AT1ERRLbits
15056 #define ERRL7 AT1ERRLbits.ERRL7 // bit 7, shadows bit in AT1ERRLbits
15058 #define AT1PERIE AT1IE0bits.AT1PERIE // bit 0
15059 #define AT1MISSIE AT1IE0bits.AT1MISSIE // bit 1
15060 #define AT1PHSIE AT1IE0bits.AT1PHSIE // bit 2
15062 #define AT1CC1IE AT1IE1bits.AT1CC1IE // bit 0
15063 #define AT1CC2IE AT1IE1bits.AT1CC2IE // bit 1
15064 #define AT1CC3IE AT1IE1bits.AT1CC3IE // bit 2
15066 #define AT1PERIF AT1IR0bits.AT1PERIF // bit 0
15067 #define AT1MISSIF AT1IR0bits.AT1MISSIF // bit 1
15068 #define AT1PHSIF AT1IR0bits.AT1PHSIF // bit 2
15070 #define AT1CC1IF AT1IR1bits.AT1CC1IF // bit 0
15071 #define AT1CC2IF AT1IR1bits.AT1CC2IF // bit 1
15072 #define AT1CC3IF AT1IR1bits.AT1CC3IF // bit 2
15074 #define AT1MISS8 AT1MISSHbits.AT1MISS8 // bit 0, shadows bit in AT1MISSHbits
15075 #define MISS8 AT1MISSHbits.MISS8 // bit 0, shadows bit in AT1MISSHbits
15076 #define AT1MISS9 AT1MISSHbits.AT1MISS9 // bit 1, shadows bit in AT1MISSHbits
15077 #define MISS9 AT1MISSHbits.MISS9 // bit 1, shadows bit in AT1MISSHbits
15078 #define AT1MISS10 AT1MISSHbits.AT1MISS10 // bit 2, shadows bit in AT1MISSHbits
15079 #define MISS10 AT1MISSHbits.MISS10 // bit 2, shadows bit in AT1MISSHbits
15080 #define AT1MISS11 AT1MISSHbits.AT1MISS11 // bit 3, shadows bit in AT1MISSHbits
15081 #define MISS11 AT1MISSHbits.MISS11 // bit 3, shadows bit in AT1MISSHbits
15082 #define AT1MISS12 AT1MISSHbits.AT1MISS12 // bit 4, shadows bit in AT1MISSHbits
15083 #define MISS12 AT1MISSHbits.MISS12 // bit 4, shadows bit in AT1MISSHbits
15084 #define AT1MISS13 AT1MISSHbits.AT1MISS13 // bit 5, shadows bit in AT1MISSHbits
15085 #define MISS13 AT1MISSHbits.MISS13 // bit 5, shadows bit in AT1MISSHbits
15086 #define AT1MISS14 AT1MISSHbits.AT1MISS14 // bit 6, shadows bit in AT1MISSHbits
15087 #define MISS14 AT1MISSHbits.MISS14 // bit 6, shadows bit in AT1MISSHbits
15088 #define AT1MISS15 AT1MISSHbits.AT1MISS15 // bit 7, shadows bit in AT1MISSHbits
15089 #define MISS15 AT1MISSHbits.MISS15 // bit 7, shadows bit in AT1MISSHbits
15091 #define AT1MISS0 AT1MISSLbits.AT1MISS0 // bit 0, shadows bit in AT1MISSLbits
15092 #define MISS0 AT1MISSLbits.MISS0 // bit 0, shadows bit in AT1MISSLbits
15093 #define AT1MISS1 AT1MISSLbits.AT1MISS1 // bit 1, shadows bit in AT1MISSLbits
15094 #define MISS1 AT1MISSLbits.MISS1 // bit 1, shadows bit in AT1MISSLbits
15095 #define AT1MISS2 AT1MISSLbits.AT1MISS2 // bit 2, shadows bit in AT1MISSLbits
15096 #define MISS2 AT1MISSLbits.MISS2 // bit 2, shadows bit in AT1MISSLbits
15097 #define AT1MISS3 AT1MISSLbits.AT1MISS3 // bit 3, shadows bit in AT1MISSLbits
15098 #define MISS3 AT1MISSLbits.MISS3 // bit 3, shadows bit in AT1MISSLbits
15099 #define AT1MISS4 AT1MISSLbits.AT1MISS4 // bit 4, shadows bit in AT1MISSLbits
15100 #define MISS4 AT1MISSLbits.MISS4 // bit 4, shadows bit in AT1MISSLbits
15101 #define AT1MISS5 AT1MISSLbits.AT1MISS5 // bit 5, shadows bit in AT1MISSLbits
15102 #define MISS5 AT1MISSLbits.MISS5 // bit 5, shadows bit in AT1MISSLbits
15103 #define AT1MISS6 AT1MISSLbits.AT1MISS6 // bit 6, shadows bit in AT1MISSLbits
15104 #define MISS6 AT1MISSLbits.MISS6 // bit 6, shadows bit in AT1MISSLbits
15105 #define AT1MISS7 AT1MISSLbits.AT1MISS7 // bit 7, shadows bit in AT1MISSLbits
15106 #define MISS7 AT1MISSLbits.MISS7 // bit 7, shadows bit in AT1MISSLbits
15108 #define AT1PER8 AT1PERHbits.AT1PER8 // bit 0, shadows bit in AT1PERHbits
15109 #define PER8 AT1PERHbits.PER8 // bit 0, shadows bit in AT1PERHbits
15110 #define PERH0 AT1PERHbits.PERH0 // bit 0, shadows bit in AT1PERHbits
15111 #define AT1PER9 AT1PERHbits.AT1PER9 // bit 1, shadows bit in AT1PERHbits
15112 #define PER9 AT1PERHbits.PER9 // bit 1, shadows bit in AT1PERHbits
15113 #define PERH1 AT1PERHbits.PERH1 // bit 1, shadows bit in AT1PERHbits
15114 #define AT1PER10 AT1PERHbits.AT1PER10 // bit 2, shadows bit in AT1PERHbits
15115 #define PER10 AT1PERHbits.PER10 // bit 2, shadows bit in AT1PERHbits
15116 #define PERH2 AT1PERHbits.PERH2 // bit 2, shadows bit in AT1PERHbits
15117 #define AT1PER11 AT1PERHbits.AT1PER11 // bit 3, shadows bit in AT1PERHbits
15118 #define PER11 AT1PERHbits.PER11 // bit 3, shadows bit in AT1PERHbits
15119 #define PERH3 AT1PERHbits.PERH3 // bit 3, shadows bit in AT1PERHbits
15120 #define AT1PER12 AT1PERHbits.AT1PER12 // bit 4, shadows bit in AT1PERHbits
15121 #define PER12 AT1PERHbits.PER12 // bit 4, shadows bit in AT1PERHbits
15122 #define PERH4 AT1PERHbits.PERH4 // bit 4, shadows bit in AT1PERHbits
15123 #define AT1PER13 AT1PERHbits.AT1PER13 // bit 5, shadows bit in AT1PERHbits
15124 #define PER13 AT1PERHbits.PER13 // bit 5, shadows bit in AT1PERHbits
15125 #define PERH5 AT1PERHbits.PERH5 // bit 5, shadows bit in AT1PERHbits
15126 #define AT1PER14 AT1PERHbits.AT1PER14 // bit 6, shadows bit in AT1PERHbits
15127 #define PER14 AT1PERHbits.PER14 // bit 6, shadows bit in AT1PERHbits
15128 #define PERH6 AT1PERHbits.PERH6 // bit 6, shadows bit in AT1PERHbits
15129 #define AT1POV AT1PERHbits.AT1POV // bit 7, shadows bit in AT1PERHbits
15130 #define PER15 AT1PERHbits.PER15 // bit 7, shadows bit in AT1PERHbits
15131 #define PERH7 AT1PERHbits.PERH7 // bit 7, shadows bit in AT1PERHbits
15133 #define AT1PER0 AT1PERLbits.AT1PER0 // bit 0, shadows bit in AT1PERLbits
15134 #define PER0 AT1PERLbits.PER0 // bit 0, shadows bit in AT1PERLbits
15135 #define PERL0 AT1PERLbits.PERL0 // bit 0, shadows bit in AT1PERLbits
15136 #define AT1PER1 AT1PERLbits.AT1PER1 // bit 1, shadows bit in AT1PERLbits
15137 #define PER1 AT1PERLbits.PER1 // bit 1, shadows bit in AT1PERLbits
15138 #define PERL1 AT1PERLbits.PERL1 // bit 1, shadows bit in AT1PERLbits
15139 #define AT1PER2 AT1PERLbits.AT1PER2 // bit 2, shadows bit in AT1PERLbits
15140 #define PER2 AT1PERLbits.PER2 // bit 2, shadows bit in AT1PERLbits
15141 #define PERL2 AT1PERLbits.PERL2 // bit 2, shadows bit in AT1PERLbits
15142 #define AT1PER3 AT1PERLbits.AT1PER3 // bit 3, shadows bit in AT1PERLbits
15143 #define PER3 AT1PERLbits.PER3 // bit 3, shadows bit in AT1PERLbits
15144 #define PERL3 AT1PERLbits.PERL3 // bit 3, shadows bit in AT1PERLbits
15145 #define AT1PER4 AT1PERLbits.AT1PER4 // bit 4, shadows bit in AT1PERLbits
15146 #define PER4 AT1PERLbits.PER4 // bit 4, shadows bit in AT1PERLbits
15147 #define PERL4 AT1PERLbits.PERL4 // bit 4, shadows bit in AT1PERLbits
15148 #define AT1PER5 AT1PERLbits.AT1PER5 // bit 5, shadows bit in AT1PERLbits
15149 #define PER5 AT1PERLbits.PER5 // bit 5, shadows bit in AT1PERLbits
15150 #define PERL5 AT1PERLbits.PERL5 // bit 5, shadows bit in AT1PERLbits
15151 #define AT1PER6 AT1PERLbits.AT1PER6 // bit 6, shadows bit in AT1PERLbits
15152 #define PER6 AT1PERLbits.PER6 // bit 6, shadows bit in AT1PERLbits
15153 #define PERL6 AT1PERLbits.PERL6 // bit 6, shadows bit in AT1PERLbits
15154 #define AT1PER7 AT1PERLbits.AT1PER7 // bit 7, shadows bit in AT1PERLbits
15155 #define PER7 AT1PERLbits.PER7 // bit 7, shadows bit in AT1PERLbits
15156 #define PERL7 AT1PERLbits.PERL7 // bit 7, shadows bit in AT1PERLbits
15158 #define AT1PHS8 AT1PHSHbits.AT1PHS8 // bit 0, shadows bit in AT1PHSHbits
15159 #define PHS8 AT1PHSHbits.PHS8 // bit 0, shadows bit in AT1PHSHbits
15160 #define PHSL8 AT1PHSHbits.PHSL8 // bit 0, shadows bit in AT1PHSHbits
15161 #define AT1PHS9 AT1PHSHbits.AT1PHS9 // bit 1, shadows bit in AT1PHSHbits
15162 #define PHS9 AT1PHSHbits.PHS9 // bit 1, shadows bit in AT1PHSHbits
15163 #define PHSL9 AT1PHSHbits.PHSL9 // bit 1, shadows bit in AT1PHSHbits
15165 #define AT1PHS0 AT1PHSLbits.AT1PHS0 // bit 0, shadows bit in AT1PHSLbits
15166 #define PHS0 AT1PHSLbits.PHS0 // bit 0, shadows bit in AT1PHSLbits
15167 #define AT1PHS1 AT1PHSLbits.AT1PHS1 // bit 1, shadows bit in AT1PHSLbits
15168 #define PHS1 AT1PHSLbits.PHS1 // bit 1, shadows bit in AT1PHSLbits
15169 #define AT1PHS2 AT1PHSLbits.AT1PHS2 // bit 2, shadows bit in AT1PHSLbits
15170 #define PHS2 AT1PHSLbits.PHS2 // bit 2, shadows bit in AT1PHSLbits
15171 #define AT1PHS3 AT1PHSLbits.AT1PHS3 // bit 3, shadows bit in AT1PHSLbits
15172 #define PHS3 AT1PHSLbits.PHS3 // bit 3, shadows bit in AT1PHSLbits
15173 #define AT1PHS4 AT1PHSLbits.AT1PHS4 // bit 4, shadows bit in AT1PHSLbits
15174 #define PHS4 AT1PHSLbits.PHS4 // bit 4, shadows bit in AT1PHSLbits
15175 #define AT1PHS5 AT1PHSLbits.AT1PHS5 // bit 5, shadows bit in AT1PHSLbits
15176 #define PHS5 AT1PHSLbits.PHS5 // bit 5, shadows bit in AT1PHSLbits
15177 #define AT1PHS6 AT1PHSLbits.AT1PHS6 // bit 6, shadows bit in AT1PHSLbits
15178 #define PHS6 AT1PHSLbits.PHS6 // bit 6, shadows bit in AT1PHSLbits
15179 #define AT1PHS7 AT1PHSLbits.AT1PHS7 // bit 7, shadows bit in AT1PHSLbits
15180 #define PHS7 AT1PHSLbits.PHS7 // bit 7, shadows bit in AT1PHSLbits
15182 #define AT1RES8 AT1RESHbits.AT1RES8 // bit 0, shadows bit in AT1RESHbits
15183 #define RES8 AT1RESHbits.RES8 // bit 0, shadows bit in AT1RESHbits
15184 #define AT1RES9 AT1RESHbits.AT1RES9 // bit 1, shadows bit in AT1RESHbits
15185 #define RES9 AT1RESHbits.RES9 // bit 1, shadows bit in AT1RESHbits
15187 #define AT1RES0 AT1RESLbits.AT1RES0 // bit 0, shadows bit in AT1RESLbits
15188 #define RES0 AT1RESLbits.RES0 // bit 0, shadows bit in AT1RESLbits
15189 #define AT1RES1 AT1RESLbits.AT1RES1 // bit 1, shadows bit in AT1RESLbits
15190 #define RES1 AT1RESLbits.RES1 // bit 1, shadows bit in AT1RESLbits
15191 #define AT1RES2 AT1RESLbits.AT1RES2 // bit 2, shadows bit in AT1RESLbits
15192 #define RES2 AT1RESLbits.RES2 // bit 2, shadows bit in AT1RESLbits
15193 #define AT1RES3 AT1RESLbits.AT1RES3 // bit 3, shadows bit in AT1RESLbits
15194 #define RES3 AT1RESLbits.RES3 // bit 3, shadows bit in AT1RESLbits
15195 #define AT1RES4 AT1RESLbits.AT1RES4 // bit 4, shadows bit in AT1RESLbits
15196 #define RES4 AT1RESLbits.RES4 // bit 4, shadows bit in AT1RESLbits
15197 #define AT1RES5 AT1RESLbits.AT1RES5 // bit 5, shadows bit in AT1RESLbits
15198 #define RES5 AT1RESLbits.RES5 // bit 5, shadows bit in AT1RESLbits
15199 #define AT1RES6 AT1RESLbits.AT1RES6 // bit 6, shadows bit in AT1RESLbits
15200 #define RES6 AT1RESLbits.RES6 // bit 6, shadows bit in AT1RESLbits
15201 #define AT1RES7 AT1RESLbits.AT1RES7 // bit 7, shadows bit in AT1RESLbits
15202 #define RES7 AT1RESLbits.RES7 // bit 7, shadows bit in AT1RESLbits
15204 #define AT1SSEL0 AT1SIGbits.AT1SSEL0 // bit 0, shadows bit in AT1SIGbits
15205 #define SSEL0 AT1SIGbits.SSEL0 // bit 0, shadows bit in AT1SIGbits
15206 #define AT1SSEL1 AT1SIGbits.AT1SSEL1 // bit 1, shadows bit in AT1SIGbits
15207 #define SSEL1 AT1SIGbits.SSEL1 // bit 1, shadows bit in AT1SIGbits
15208 #define AT1SSEL2 AT1SIGbits.AT1SSEL2 // bit 2, shadows bit in AT1SIGbits
15209 #define SSEL2 AT1SIGbits.SSEL2 // bit 2, shadows bit in AT1SIGbits
15211 #define AT1STPT8 AT1STPTHbits.AT1STPT8 // bit 0, shadows bit in AT1STPTHbits
15212 #define STPT8 AT1STPTHbits.STPT8 // bit 0, shadows bit in AT1STPTHbits
15213 #define AT1STPT9 AT1STPTHbits.AT1STPT9 // bit 1, shadows bit in AT1STPTHbits
15214 #define STPT9 AT1STPTHbits.STPT9 // bit 1, shadows bit in AT1STPTHbits
15215 #define AT1STPT10 AT1STPTHbits.AT1STPT10 // bit 2, shadows bit in AT1STPTHbits
15216 #define STPT10 AT1STPTHbits.STPT10 // bit 2, shadows bit in AT1STPTHbits
15217 #define AT1STPT11 AT1STPTHbits.AT1STPT11 // bit 3, shadows bit in AT1STPTHbits
15218 #define STPT11 AT1STPTHbits.STPT11 // bit 3, shadows bit in AT1STPTHbits
15219 #define AT1STPT12 AT1STPTHbits.AT1STPT12 // bit 4, shadows bit in AT1STPTHbits
15220 #define STPT12 AT1STPTHbits.STPT12 // bit 4, shadows bit in AT1STPTHbits
15221 #define AT1STPT13 AT1STPTHbits.AT1STPT13 // bit 5, shadows bit in AT1STPTHbits
15222 #define STPT13 AT1STPTHbits.STPT13 // bit 5, shadows bit in AT1STPTHbits
15223 #define AT1STPT14 AT1STPTHbits.AT1STPT14 // bit 6, shadows bit in AT1STPTHbits
15224 #define STPT14 AT1STPTHbits.STPT14 // bit 6, shadows bit in AT1STPTHbits
15226 #define AT1STPT0 AT1STPTLbits.AT1STPT0 // bit 0, shadows bit in AT1STPTLbits
15227 #define STPT0 AT1STPTLbits.STPT0 // bit 0, shadows bit in AT1STPTLbits
15228 #define AT1STPT1 AT1STPTLbits.AT1STPT1 // bit 1, shadows bit in AT1STPTLbits
15229 #define STPT1 AT1STPTLbits.STPT1 // bit 1, shadows bit in AT1STPTLbits
15230 #define AT1STPT2 AT1STPTLbits.AT1STPT2 // bit 2, shadows bit in AT1STPTLbits
15231 #define STPT2 AT1STPTLbits.STPT2 // bit 2, shadows bit in AT1STPTLbits
15232 #define AT1STPT3 AT1STPTLbits.AT1STPT3 // bit 3, shadows bit in AT1STPTLbits
15233 #define STPT3 AT1STPTLbits.STPT3 // bit 3, shadows bit in AT1STPTLbits
15234 #define AT1STPT4 AT1STPTLbits.AT1STPT4 // bit 4, shadows bit in AT1STPTLbits
15235 #define STPT4 AT1STPTLbits.STPT4 // bit 4, shadows bit in AT1STPTLbits
15236 #define AT1STPT5 AT1STPTLbits.AT1STPT5 // bit 5, shadows bit in AT1STPTLbits
15237 #define STPT5 AT1STPTLbits.STPT5 // bit 5, shadows bit in AT1STPTLbits
15238 #define AT1STPT6 AT1STPTLbits.AT1STPT6 // bit 6, shadows bit in AT1STPTLbits
15239 #define STPT6 AT1STPTLbits.STPT6 // bit 6, shadows bit in AT1STPTLbits
15240 #define AT1STPT7 AT1STPTLbits.AT1STPT7 // bit 7, shadows bit in AT1STPTLbits
15241 #define STPT7 AT1STPTLbits.STPT7 // bit 7, shadows bit in AT1STPTLbits
15243 #define ATCC1PPS0 ATCC1PPSbits.ATCC1PPS0 // bit 0
15244 #define ATCC1PPS1 ATCC1PPSbits.ATCC1PPS1 // bit 1
15245 #define ATCC1PPS2 ATCC1PPSbits.ATCC1PPS2 // bit 2
15246 #define ATCC1PPS3 ATCC1PPSbits.ATCC1PPS3 // bit 3
15247 #define ATCC1PPS4 ATCC1PPSbits.ATCC1PPS4 // bit 4
15249 #define ATCC2PPS0 ATCC2PPSbits.ATCC2PPS0 // bit 0
15250 #define ATCC2PPS1 ATCC2PPSbits.ATCC2PPS1 // bit 1
15251 #define ATCC2PPS2 ATCC2PPSbits.ATCC2PPS2 // bit 2
15252 #define ATCC2PPS3 ATCC2PPSbits.ATCC2PPS3 // bit 3
15253 #define ATCC2PPS4 ATCC2PPSbits.ATCC2PPS4 // bit 4
15255 #define ATCC3PPS0 ATCC3PPSbits.ATCC3PPS0 // bit 0
15256 #define ATCC3PPS1 ATCC3PPSbits.ATCC3PPS1 // bit 1
15257 #define ATCC3PPS2 ATCC3PPSbits.ATCC3PPS2 // bit 2
15258 #define ATCC3PPS3 ATCC3PPSbits.ATCC3PPS3 // bit 3
15259 #define ATCC3PPS4 ATCC3PPSbits.ATCC3PPS4 // bit 4
15261 #define ATINPPS0 ATINPPSbits.ATINPPS0 // bit 0
15262 #define ATINPPS1 ATINPPSbits.ATINPPS1 // bit 1
15263 #define ATINPPS2 ATINPPSbits.ATINPPS2 // bit 2
15264 #define ATINPPS3 ATINPPSbits.ATINPPS3 // bit 3
15265 #define ATINPPS4 ATINPPSbits.ATINPPS4 // bit 4
15267 #define ABDEN BAUD1CONbits.ABDEN // bit 0
15268 #define WUE BAUD1CONbits.WUE // bit 1
15269 #define BRG16 BAUD1CONbits.BRG16 // bit 3
15270 #define SCKP BAUD1CONbits.SCKP // bit 4
15271 #define RCIDL BAUD1CONbits.RCIDL // bit 6
15272 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
15274 #define BORRDY BORCONbits.BORRDY // bit 0
15275 #define BORFS BORCONbits.BORFS // bit 6
15276 #define SBOREN BORCONbits.SBOREN // bit 7
15278 #define BSR0 BSRbits.BSR0 // bit 0
15279 #define BSR1 BSRbits.BSR1 // bit 1
15280 #define BSR2 BSRbits.BSR2 // bit 2
15281 #define BSR3 BSRbits.BSR3 // bit 3
15282 #define BSR4 BSRbits.BSR4 // bit 4
15284 #define CTS0 CCP1CAPbits.CTS0 // bit 0, shadows bit in CCP1CAPbits
15285 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0, shadows bit in CCP1CAPbits
15286 #define CTS1 CCP1CAPbits.CTS1 // bit 1, shadows bit in CCP1CAPbits
15287 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1, shadows bit in CCP1CAPbits
15288 #define CTS2 CCP1CAPbits.CTS2 // bit 2, shadows bit in CCP1CAPbits
15289 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2, shadows bit in CCP1CAPbits
15291 #define CCP1PPS0 CCP1PPSbits.CCP1PPS0 // bit 0
15292 #define CCP1PPS1 CCP1PPSbits.CCP1PPS1 // bit 1
15293 #define CCP1PPS2 CCP1PPSbits.CCP1PPS2 // bit 2
15294 #define CCP1PPS3 CCP1PPSbits.CCP1PPS3 // bit 3
15295 #define CCP1PPS4 CCP1PPSbits.CCP1PPS4 // bit 4
15297 #define CCP2PPS0 CCP2PPSbits.CCP2PPS0 // bit 0
15298 #define CCP2PPS1 CCP2PPSbits.CCP2PPS1 // bit 1
15299 #define CCP2PPS2 CCP2PPSbits.CCP2PPS2 // bit 2
15300 #define CCP2PPS3 CCP2PPSbits.CCP2PPS3 // bit 3
15301 #define CCP2PPS4 CCP2PPSbits.CCP2PPS4 // bit 4
15303 #define CCP1TSEL0 CCPTMRSbits.CCP1TSEL0 // bit 0
15304 #define CCP1TSEL1 CCPTMRSbits.CCP1TSEL1 // bit 1
15305 #define CCP2TSEL0 CCPTMRSbits.CCP2TSEL0 // bit 2
15306 #define CCP2TSEL1 CCPTMRSbits.CCP2TSEL1 // bit 3
15307 #define P3TSEL0 CCPTMRSbits.P3TSEL0 // bit 4
15308 #define P3TSEL1 CCPTMRSbits.P3TSEL1 // bit 5
15309 #define P4TSEL0 CCPTMRSbits.P4TSEL0 // bit 6
15310 #define P4TSEL1 CCPTMRSbits.P4TSEL1 // bit 7
15312 #define CKPPS0 CKPPSbits.CKPPS0 // bit 0
15313 #define CKPPS1 CKPPSbits.CKPPS1 // bit 1
15314 #define CKPPS2 CKPPSbits.CKPPS2 // bit 2
15315 #define CKPPS3 CKPPSbits.CKPPS3 // bit 3
15316 #define CKPPS4 CKPPSbits.CKPPS4 // bit 4
15318 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
15319 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
15320 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
15321 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
15322 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
15323 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
15324 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
15325 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
15326 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
15327 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
15328 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
15329 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
15330 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
15331 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
15332 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
15333 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
15335 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
15336 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
15337 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
15338 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
15339 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
15340 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
15341 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
15342 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
15343 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
15344 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
15345 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
15346 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
15347 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
15348 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
15349 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
15350 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
15352 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
15353 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
15354 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
15355 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
15356 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
15357 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
15358 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
15359 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
15360 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
15361 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
15362 #define LC1D1S5 CLC1SEL0bits.LC1D1S5 // bit 5, shadows bit in CLC1SEL0bits
15363 #define D1S5 CLC1SEL0bits.D1S5 // bit 5, shadows bit in CLC1SEL0bits
15365 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
15366 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
15367 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
15368 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
15369 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
15370 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
15371 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
15372 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
15373 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
15374 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
15375 #define LC1D2S5 CLC1SEL1bits.LC1D2S5 // bit 5, shadows bit in CLC1SEL1bits
15376 #define D2S5 CLC1SEL1bits.D2S5 // bit 5, shadows bit in CLC1SEL1bits
15378 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
15379 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
15380 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
15381 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
15382 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
15383 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
15384 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
15385 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
15386 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
15387 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
15388 #define LC1D3S5 CLC1SEL2bits.LC1D3S5 // bit 5, shadows bit in CLC1SEL2bits
15389 #define D3S5 CLC1SEL2bits.D3S5 // bit 5, shadows bit in CLC1SEL2bits
15391 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
15392 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
15393 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
15394 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
15395 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
15396 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
15397 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
15398 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
15399 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
15400 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
15401 #define LC1D4S5 CLC1SEL3bits.LC1D4S5 // bit 5, shadows bit in CLC1SEL3bits
15402 #define D4S5 CLC1SEL3bits.D4S5 // bit 5, shadows bit in CLC1SEL3bits
15404 #define MLC1OUT CLCDATAbits.MLC1OUT // bit 0
15405 #define MLC2OUT CLCDATAbits.MLC2OUT // bit 1
15407 #define CLCIN0PPS0 CLCIN0PPSbits.CLCIN0PPS0 // bit 0
15408 #define CLCIN0PPS1 CLCIN0PPSbits.CLCIN0PPS1 // bit 1
15409 #define CLCIN0PPS2 CLCIN0PPSbits.CLCIN0PPS2 // bit 2
15410 #define CLCIN0PPS3 CLCIN0PPSbits.CLCIN0PPS3 // bit 3
15411 #define CLCIN0PPS4 CLCIN0PPSbits.CLCIN0PPS4 // bit 4
15413 #define CLCIN1PPS0 CLCIN1PPSbits.CLCIN1PPS0 // bit 0
15414 #define CLCIN1PPS1 CLCIN1PPSbits.CLCIN1PPS1 // bit 1
15415 #define CLCIN1PPS2 CLCIN1PPSbits.CLCIN1PPS2 // bit 2
15416 #define CLCIN1PPS3 CLCIN1PPSbits.CLCIN1PPS3 // bit 3
15417 #define CLCIN1PPS4 CLCIN1PPSbits.CLCIN1PPS4 // bit 4
15419 #define CLCIN2PPS0 CLCIN2PPSbits.CLCIN2PPS0 // bit 0
15420 #define CLCIN2PPS1 CLCIN2PPSbits.CLCIN2PPS1 // bit 1
15421 #define CLCIN2PPS2 CLCIN2PPSbits.CLCIN2PPS2 // bit 2
15422 #define CLCIN2PPS3 CLCIN2PPSbits.CLCIN2PPS3 // bit 3
15423 #define CLCIN2PPS4 CLCIN2PPSbits.CLCIN2PPS4 // bit 4
15425 #define CLCIN3PPS0 CLCIN3PPSbits.CLCIN3PPS0 // bit 0
15426 #define CLCIN3PPS1 CLCIN3PPSbits.CLCIN3PPS1 // bit 1
15427 #define CLCIN3PPS2 CLCIN3PPSbits.CLCIN3PPS2 // bit 2
15428 #define CLCIN3PPS3 CLCIN3PPSbits.CLCIN3PPS3 // bit 3
15429 #define CLCIN3PPS4 CLCIN3PPSbits.CLCIN3PPS4 // bit 4
15431 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
15432 #define C1HYS CM1CON0bits.C1HYS // bit 1
15433 #define C1SP CM1CON0bits.C1SP // bit 2
15434 #define C1POL CM1CON0bits.C1POL // bit 4
15435 #define C1OUT CM1CON0bits.C1OUT // bit 6
15436 #define C1ON CM1CON0bits.C1ON // bit 7
15438 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
15439 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
15440 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
15441 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
15442 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
15443 #define C1INTN CM1CON1bits.C1INTN // bit 6
15444 #define C1INTP CM1CON1bits.C1INTP // bit 7
15446 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
15447 #define C2HYS CM2CON0bits.C2HYS // bit 1
15448 #define C2SP CM2CON0bits.C2SP // bit 2
15449 #define C2POL CM2CON0bits.C2POL // bit 4
15450 #define C2OUT CM2CON0bits.C2OUT // bit 6
15451 #define C2ON CM2CON0bits.C2ON // bit 7
15453 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
15454 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
15455 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
15456 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 4
15457 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 5
15458 #define C2INTN CM2CON1bits.C2INTN // bit 6
15459 #define C2INTP CM2CON1bits.C2INTP // bit 7
15461 #define MC1OUT CMOUTbits.MC1OUT // bit 0
15462 #define MC2OUT CMOUTbits.MC2OUT // bit 1
15464 #define ACC8 CRCACCHbits.ACC8 // bit 0, shadows bit in CRCACCHbits
15465 #define CRCACC8 CRCACCHbits.CRCACC8 // bit 0, shadows bit in CRCACCHbits
15466 #define ACC9 CRCACCHbits.ACC9 // bit 1, shadows bit in CRCACCHbits
15467 #define CRCACC9 CRCACCHbits.CRCACC9 // bit 1, shadows bit in CRCACCHbits
15468 #define ACC10 CRCACCHbits.ACC10 // bit 2, shadows bit in CRCACCHbits
15469 #define CRCACC10 CRCACCHbits.CRCACC10 // bit 2, shadows bit in CRCACCHbits
15470 #define ACC11 CRCACCHbits.ACC11 // bit 3, shadows bit in CRCACCHbits
15471 #define CRCACC11 CRCACCHbits.CRCACC11 // bit 3, shadows bit in CRCACCHbits
15472 #define ACC12 CRCACCHbits.ACC12 // bit 4, shadows bit in CRCACCHbits
15473 #define CRCACC12 CRCACCHbits.CRCACC12 // bit 4, shadows bit in CRCACCHbits
15474 #define ACC13 CRCACCHbits.ACC13 // bit 5, shadows bit in CRCACCHbits
15475 #define CRCACC13 CRCACCHbits.CRCACC13 // bit 5, shadows bit in CRCACCHbits
15476 #define ACC14 CRCACCHbits.ACC14 // bit 6, shadows bit in CRCACCHbits
15477 #define CRCACC14 CRCACCHbits.CRCACC14 // bit 6, shadows bit in CRCACCHbits
15478 #define ACC15 CRCACCHbits.ACC15 // bit 7, shadows bit in CRCACCHbits
15479 #define CRCACC15 CRCACCHbits.CRCACC15 // bit 7, shadows bit in CRCACCHbits
15481 #define ACC0 CRCACCLbits.ACC0 // bit 0, shadows bit in CRCACCLbits
15482 #define CRCACC0 CRCACCLbits.CRCACC0 // bit 0, shadows bit in CRCACCLbits
15483 #define ACC1 CRCACCLbits.ACC1 // bit 1, shadows bit in CRCACCLbits
15484 #define CRCACC1 CRCACCLbits.CRCACC1 // bit 1, shadows bit in CRCACCLbits
15485 #define ACC2 CRCACCLbits.ACC2 // bit 2, shadows bit in CRCACCLbits
15486 #define CRCACC2 CRCACCLbits.CRCACC2 // bit 2, shadows bit in CRCACCLbits
15487 #define ACC3 CRCACCLbits.ACC3 // bit 3, shadows bit in CRCACCLbits
15488 #define CRCACC3 CRCACCLbits.CRCACC3 // bit 3, shadows bit in CRCACCLbits
15489 #define ACC4 CRCACCLbits.ACC4 // bit 4, shadows bit in CRCACCLbits
15490 #define CRCACC4 CRCACCLbits.CRCACC4 // bit 4, shadows bit in CRCACCLbits
15491 #define ACC5 CRCACCLbits.ACC5 // bit 5, shadows bit in CRCACCLbits
15492 #define CRCACC5 CRCACCLbits.CRCACC5 // bit 5, shadows bit in CRCACCLbits
15493 #define ACC6 CRCACCLbits.ACC6 // bit 6, shadows bit in CRCACCLbits
15494 #define CRCACC6 CRCACCLbits.CRCACC6 // bit 6, shadows bit in CRCACCLbits
15495 #define ACC7 CRCACCLbits.ACC7 // bit 7, shadows bit in CRCACCLbits
15496 #define CRCACC7 CRCACCLbits.CRCACC7 // bit 7, shadows bit in CRCACCLbits
15498 #define PLEN0 CRCCON1bits.PLEN0 // bit 0, shadows bit in CRCCON1bits
15499 #define CRCPLEN0 CRCCON1bits.CRCPLEN0 // bit 0, shadows bit in CRCCON1bits
15500 #define PLEN1 CRCCON1bits.PLEN1 // bit 1, shadows bit in CRCCON1bits
15501 #define CRCPLEN1 CRCCON1bits.CRCPLEN1 // bit 1, shadows bit in CRCCON1bits
15502 #define PLEN2 CRCCON1bits.PLEN2 // bit 2, shadows bit in CRCCON1bits
15503 #define CRCPLEN2 CRCCON1bits.CRCPLEN2 // bit 2, shadows bit in CRCCON1bits
15504 #define PLEN3 CRCCON1bits.PLEN3 // bit 3, shadows bit in CRCCON1bits
15505 #define CRCPLEN3 CRCCON1bits.CRCPLEN3 // bit 3, shadows bit in CRCCON1bits
15506 #define DLEN0 CRCCON1bits.DLEN0 // bit 4, shadows bit in CRCCON1bits
15507 #define CRCDLEN0 CRCCON1bits.CRCDLEN0 // bit 4, shadows bit in CRCCON1bits
15508 #define DLEN1 CRCCON1bits.DLEN1 // bit 5, shadows bit in CRCCON1bits
15509 #define CRCDLEN1 CRCCON1bits.CRCDLEN1 // bit 5, shadows bit in CRCCON1bits
15510 #define DLEN2 CRCCON1bits.DLEN2 // bit 6, shadows bit in CRCCON1bits
15511 #define CRCDLEN2 CRCCON1bits.CRCDLEN2 // bit 6, shadows bit in CRCCON1bits
15512 #define DLEN3 CRCCON1bits.DLEN3 // bit 7, shadows bit in CRCCON1bits
15513 #define CRCDLEN3 CRCCON1bits.CRCDLEN3 // bit 7, shadows bit in CRCCON1bits
15515 #define DAT8 CRCDATHbits.DAT8 // bit 0, shadows bit in CRCDATHbits
15516 #define CRCDAT8 CRCDATHbits.CRCDAT8 // bit 0, shadows bit in CRCDATHbits
15517 #define DAT9 CRCDATHbits.DAT9 // bit 1, shadows bit in CRCDATHbits
15518 #define CRCDAT9 CRCDATHbits.CRCDAT9 // bit 1, shadows bit in CRCDATHbits
15519 #define DAT10 CRCDATHbits.DAT10 // bit 2, shadows bit in CRCDATHbits
15520 #define CRCDAT10 CRCDATHbits.CRCDAT10 // bit 2, shadows bit in CRCDATHbits
15521 #define DAT11 CRCDATHbits.DAT11 // bit 3, shadows bit in CRCDATHbits
15522 #define CRCDAT11 CRCDATHbits.CRCDAT11 // bit 3, shadows bit in CRCDATHbits
15523 #define DAT12 CRCDATHbits.DAT12 // bit 4, shadows bit in CRCDATHbits
15524 #define CRCDAT12 CRCDATHbits.CRCDAT12 // bit 4, shadows bit in CRCDATHbits
15525 #define DAT13 CRCDATHbits.DAT13 // bit 5, shadows bit in CRCDATHbits
15526 #define CRCDAT13 CRCDATHbits.CRCDAT13 // bit 5, shadows bit in CRCDATHbits
15527 #define DAT14 CRCDATHbits.DAT14 // bit 6, shadows bit in CRCDATHbits
15528 #define CRCDAT14 CRCDATHbits.CRCDAT14 // bit 6, shadows bit in CRCDATHbits
15529 #define DAT15 CRCDATHbits.DAT15 // bit 7, shadows bit in CRCDATHbits
15530 #define CRCDAT15 CRCDATHbits.CRCDAT15 // bit 7, shadows bit in CRCDATHbits
15532 #define DAT0 CRCDATLbits.DAT0 // bit 0, shadows bit in CRCDATLbits
15533 #define CRCDAT0 CRCDATLbits.CRCDAT0 // bit 0, shadows bit in CRCDATLbits
15534 #define DAT1 CRCDATLbits.DAT1 // bit 1, shadows bit in CRCDATLbits
15535 #define CRCDAT1 CRCDATLbits.CRCDAT1 // bit 1, shadows bit in CRCDATLbits
15536 #define DAT2 CRCDATLbits.DAT2 // bit 2, shadows bit in CRCDATLbits
15537 #define CRCDAT2 CRCDATLbits.CRCDAT2 // bit 2, shadows bit in CRCDATLbits
15538 #define DAT3 CRCDATLbits.DAT3 // bit 3, shadows bit in CRCDATLbits
15539 #define CRCDAT3 CRCDATLbits.CRCDAT3 // bit 3, shadows bit in CRCDATLbits
15540 #define DAT4 CRCDATLbits.DAT4 // bit 4, shadows bit in CRCDATLbits
15541 #define CRCDAT4 CRCDATLbits.CRCDAT4 // bit 4, shadows bit in CRCDATLbits
15542 #define DAT5 CRCDATLbits.DAT5 // bit 5, shadows bit in CRCDATLbits
15543 #define CRCDAT5 CRCDATLbits.CRCDAT5 // bit 5, shadows bit in CRCDATLbits
15544 #define DAT6 CRCDATLbits.DAT6 // bit 6, shadows bit in CRCDATLbits
15545 #define CRCDAT6 CRCDATLbits.CRCDAT6 // bit 6, shadows bit in CRCDATLbits
15546 #define DAT7 CRCDATLbits.DAT7 // bit 7, shadows bit in CRCDATLbits
15547 #define CRDCDAT7 CRCDATLbits.CRDCDAT7 // bit 7, shadows bit in CRCDATLbits
15549 #define SHIFT8 CRCSHIFTHbits.SHIFT8 // bit 0, shadows bit in CRCSHIFTHbits
15550 #define CRCSHIFT8 CRCSHIFTHbits.CRCSHIFT8 // bit 0, shadows bit in CRCSHIFTHbits
15551 #define SHIFT9 CRCSHIFTHbits.SHIFT9 // bit 1, shadows bit in CRCSHIFTHbits
15552 #define CRCSHIFT9 CRCSHIFTHbits.CRCSHIFT9 // bit 1, shadows bit in CRCSHIFTHbits
15553 #define SHIFT10 CRCSHIFTHbits.SHIFT10 // bit 2, shadows bit in CRCSHIFTHbits
15554 #define CRCSHIFT10 CRCSHIFTHbits.CRCSHIFT10 // bit 2, shadows bit in CRCSHIFTHbits
15555 #define SHIFT11 CRCSHIFTHbits.SHIFT11 // bit 3, shadows bit in CRCSHIFTHbits
15556 #define CRCSHIFT11 CRCSHIFTHbits.CRCSHIFT11 // bit 3, shadows bit in CRCSHIFTHbits
15557 #define SHIFT12 CRCSHIFTHbits.SHIFT12 // bit 4, shadows bit in CRCSHIFTHbits
15558 #define CRCSHIFT12 CRCSHIFTHbits.CRCSHIFT12 // bit 4, shadows bit in CRCSHIFTHbits
15559 #define SHIFT13 CRCSHIFTHbits.SHIFT13 // bit 5, shadows bit in CRCSHIFTHbits
15560 #define CRCSHIFT13 CRCSHIFTHbits.CRCSHIFT13 // bit 5, shadows bit in CRCSHIFTHbits
15561 #define SHIFT14 CRCSHIFTHbits.SHIFT14 // bit 6, shadows bit in CRCSHIFTHbits
15562 #define CRCSHIFT14 CRCSHIFTHbits.CRCSHIFT14 // bit 6, shadows bit in CRCSHIFTHbits
15563 #define SHIFT15 CRCSHIFTHbits.SHIFT15 // bit 7, shadows bit in CRCSHIFTHbits
15564 #define CRCSHIFT15 CRCSHIFTHbits.CRCSHIFT15 // bit 7, shadows bit in CRCSHIFTHbits
15566 #define SHIFT0 CRCSHIFTLbits.SHIFT0 // bit 0, shadows bit in CRCSHIFTLbits
15567 #define CRCSHIFT0 CRCSHIFTLbits.CRCSHIFT0 // bit 0, shadows bit in CRCSHIFTLbits
15568 #define SHIFT1 CRCSHIFTLbits.SHIFT1 // bit 1, shadows bit in CRCSHIFTLbits
15569 #define CRCSHIFT1 CRCSHIFTLbits.CRCSHIFT1 // bit 1, shadows bit in CRCSHIFTLbits
15570 #define SHIFT2 CRCSHIFTLbits.SHIFT2 // bit 2, shadows bit in CRCSHIFTLbits
15571 #define CRCSHIFT2 CRCSHIFTLbits.CRCSHIFT2 // bit 2, shadows bit in CRCSHIFTLbits
15572 #define SHIFT3 CRCSHIFTLbits.SHIFT3 // bit 3, shadows bit in CRCSHIFTLbits
15573 #define CRCSHIFT3 CRCSHIFTLbits.CRCSHIFT3 // bit 3, shadows bit in CRCSHIFTLbits
15574 #define SHIFT4 CRCSHIFTLbits.SHIFT4 // bit 4, shadows bit in CRCSHIFTLbits
15575 #define CRCSHIFT4 CRCSHIFTLbits.CRCSHIFT4 // bit 4, shadows bit in CRCSHIFTLbits
15576 #define SHIFT5 CRCSHIFTLbits.SHIFT5 // bit 5, shadows bit in CRCSHIFTLbits
15577 #define CRCSHIFT5 CRCSHIFTLbits.CRCSHIFT5 // bit 5, shadows bit in CRCSHIFTLbits
15578 #define SHIFT6 CRCSHIFTLbits.SHIFT6 // bit 6, shadows bit in CRCSHIFTLbits
15579 #define CRCSHIFT6 CRCSHIFTLbits.CRCSHIFT6 // bit 6, shadows bit in CRCSHIFTLbits
15580 #define SHIFT7 CRCSHIFTLbits.SHIFT7 // bit 7, shadows bit in CRCSHIFTLbits
15581 #define CRCSHIFT7 CRCSHIFTLbits.CRCSHIFT7 // bit 7, shadows bit in CRCSHIFTLbits
15583 #define XOR8 CRCXORHbits.XOR8 // bit 0, shadows bit in CRCXORHbits
15584 #define CRCXOR8 CRCXORHbits.CRCXOR8 // bit 0, shadows bit in CRCXORHbits
15585 #define XOR9 CRCXORHbits.XOR9 // bit 1, shadows bit in CRCXORHbits
15586 #define CRCXOR9 CRCXORHbits.CRCXOR9 // bit 1, shadows bit in CRCXORHbits
15587 #define XOR10 CRCXORHbits.XOR10 // bit 2, shadows bit in CRCXORHbits
15588 #define CRCXOR10 CRCXORHbits.CRCXOR10 // bit 2, shadows bit in CRCXORHbits
15589 #define XOR11 CRCXORHbits.XOR11 // bit 3, shadows bit in CRCXORHbits
15590 #define CRCXOR11 CRCXORHbits.CRCXOR11 // bit 3, shadows bit in CRCXORHbits
15591 #define XOR12 CRCXORHbits.XOR12 // bit 4, shadows bit in CRCXORHbits
15592 #define CRCXOR12 CRCXORHbits.CRCXOR12 // bit 4, shadows bit in CRCXORHbits
15593 #define XOR13 CRCXORHbits.XOR13 // bit 5, shadows bit in CRCXORHbits
15594 #define CRCXOR13 CRCXORHbits.CRCXOR13 // bit 5, shadows bit in CRCXORHbits
15595 #define XOR14 CRCXORHbits.XOR14 // bit 6, shadows bit in CRCXORHbits
15596 #define CRCXOR14 CRCXORHbits.CRCXOR14 // bit 6, shadows bit in CRCXORHbits
15597 #define XOR15 CRCXORHbits.XOR15 // bit 7, shadows bit in CRCXORHbits
15598 #define CRCXOR15 CRCXORHbits.CRCXOR15 // bit 7, shadows bit in CRCXORHbits
15600 #define XOR1 CRCXORLbits.XOR1 // bit 1, shadows bit in CRCXORLbits
15601 #define CRCXOR1 CRCXORLbits.CRCXOR1 // bit 1, shadows bit in CRCXORLbits
15602 #define XOR2 CRCXORLbits.XOR2 // bit 2, shadows bit in CRCXORLbits
15603 #define CRCXOR2 CRCXORLbits.CRCXOR2 // bit 2, shadows bit in CRCXORLbits
15604 #define XOR3 CRCXORLbits.XOR3 // bit 3, shadows bit in CRCXORLbits
15605 #define CRCXOR3 CRCXORLbits.CRCXOR3 // bit 3, shadows bit in CRCXORLbits
15606 #define XOR4 CRCXORLbits.XOR4 // bit 4, shadows bit in CRCXORLbits
15607 #define CRCXOR4 CRCXORLbits.CRCXOR4 // bit 4, shadows bit in CRCXORLbits
15608 #define XOR5 CRCXORLbits.XOR5 // bit 5, shadows bit in CRCXORLbits
15609 #define CRCXOR5 CRCXORLbits.CRCXOR5 // bit 5, shadows bit in CRCXORLbits
15610 #define XOR6 CRCXORLbits.XOR6 // bit 6, shadows bit in CRCXORLbits
15611 #define CRCXOR6 CRCXORLbits.CRCXOR6 // bit 6, shadows bit in CRCXORLbits
15612 #define XOR7 CRCXORLbits.XOR7 // bit 7, shadows bit in CRCXORLbits
15613 #define CRCXOR7 CRCXORLbits.CRCXOR7 // bit 7, shadows bit in CRCXORLbits
15615 #define LSAC0 CWG1AS0bits.LSAC0 // bit 2, shadows bit in CWG1AS0bits
15616 #define CWG1LSAC0 CWG1AS0bits.CWG1LSAC0 // bit 2, shadows bit in CWG1AS0bits
15617 #define LSAC1 CWG1AS0bits.LSAC1 // bit 3, shadows bit in CWG1AS0bits
15618 #define CWG1LSAC1 CWG1AS0bits.CWG1LSAC1 // bit 3, shadows bit in CWG1AS0bits
15619 #define LSBD0 CWG1AS0bits.LSBD0 // bit 4, shadows bit in CWG1AS0bits
15620 #define CWG1LSBD0 CWG1AS0bits.CWG1LSBD0 // bit 4, shadows bit in CWG1AS0bits
15621 #define LSBD1 CWG1AS0bits.LSBD1 // bit 5, shadows bit in CWG1AS0bits
15622 #define CWG1LSBD1 CWG1AS0bits.CWG1LSBD1 // bit 5, shadows bit in CWG1AS0bits
15623 #define REN CWG1AS0bits.REN // bit 6, shadows bit in CWG1AS0bits
15624 #define CWG1REN CWG1AS0bits.CWG1REN // bit 6, shadows bit in CWG1AS0bits
15625 #define SHUTDOWN CWG1AS0bits.SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
15626 #define CWG1SHUTDOWN CWG1AS0bits.CWG1SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
15628 #define INAS CWG1AS1bits.INAS // bit 0, shadows bit in CWG1AS1bits
15629 #define CWG1INAS CWG1AS1bits.CWG1INAS // bit 0, shadows bit in CWG1AS1bits
15630 #define C1AS CWG1AS1bits.C1AS // bit 1, shadows bit in CWG1AS1bits
15631 #define CWG1C1AS CWG1AS1bits.CWG1C1AS // bit 1, shadows bit in CWG1AS1bits
15632 #define C2AS CWG1AS1bits.C2AS // bit 2, shadows bit in CWG1AS1bits
15633 #define CWG1C2AS CWG1AS1bits.CWG1C2AS // bit 2, shadows bit in CWG1AS1bits
15634 #define TMR2AS CWG1AS1bits.TMR2AS // bit 4, shadows bit in CWG1AS1bits
15635 #define CWG1TMR2AS CWG1AS1bits.CWG1TMR2AS // bit 4, shadows bit in CWG1AS1bits
15636 #define TMR4AS CWG1AS1bits.TMR4AS // bit 5, shadows bit in CWG1AS1bits
15637 #define CWG1TMR4AS CWG1AS1bits.CWG1TMR4AS // bit 5, shadows bit in CWG1AS1bits
15638 #define TMR6AS CWG1AS1bits.TMR6AS // bit 6, shadows bit in CWG1AS1bits
15639 #define CWG1TMR6AS CWG1AS1bits.CWG1TMR6AS // bit 6, shadows bit in CWG1AS1bits
15641 #define POLA CWG1CON1bits.POLA // bit 0, shadows bit in CWG1CON1bits
15642 #define CWG1POLA CWG1CON1bits.CWG1POLA // bit 0, shadows bit in CWG1CON1bits
15643 #define POLB CWG1CON1bits.POLB // bit 1, shadows bit in CWG1CON1bits
15644 #define CWG1POLB CWG1CON1bits.CWG1POLB // bit 1, shadows bit in CWG1CON1bits
15645 #define POLC CWG1CON1bits.POLC // bit 2, shadows bit in CWG1CON1bits
15646 #define CWG1POLC CWG1CON1bits.CWG1POLC // bit 2, shadows bit in CWG1CON1bits
15647 #define POLD CWG1CON1bits.POLD // bit 3, shadows bit in CWG1CON1bits
15648 #define CWG1POLD CWG1CON1bits.CWG1POLD // bit 3, shadows bit in CWG1CON1bits
15649 #define IN CWG1CON1bits.IN // bit 5, shadows bit in CWG1CON1bits
15650 #define CWG1IN CWG1CON1bits.CWG1IN // bit 5, shadows bit in CWG1CON1bits
15652 #define DBF0 CWG1DBFbits.DBF0 // bit 0, shadows bit in CWG1DBFbits
15653 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0, shadows bit in CWG1DBFbits
15654 #define DBF1 CWG1DBFbits.DBF1 // bit 1, shadows bit in CWG1DBFbits
15655 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1, shadows bit in CWG1DBFbits
15656 #define DBF2 CWG1DBFbits.DBF2 // bit 2, shadows bit in CWG1DBFbits
15657 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2, shadows bit in CWG1DBFbits
15658 #define DBF3 CWG1DBFbits.DBF3 // bit 3, shadows bit in CWG1DBFbits
15659 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3, shadows bit in CWG1DBFbits
15660 #define DBF4 CWG1DBFbits.DBF4 // bit 4, shadows bit in CWG1DBFbits
15661 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4, shadows bit in CWG1DBFbits
15662 #define DBF5 CWG1DBFbits.DBF5 // bit 5, shadows bit in CWG1DBFbits
15663 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5, shadows bit in CWG1DBFbits
15665 #define DBR0 CWG1DBRbits.DBR0 // bit 0, shadows bit in CWG1DBRbits
15666 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0, shadows bit in CWG1DBRbits
15667 #define DBR1 CWG1DBRbits.DBR1 // bit 1, shadows bit in CWG1DBRbits
15668 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1, shadows bit in CWG1DBRbits
15669 #define DBR2 CWG1DBRbits.DBR2 // bit 2, shadows bit in CWG1DBRbits
15670 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2, shadows bit in CWG1DBRbits
15671 #define DBR3 CWG1DBRbits.DBR3 // bit 3, shadows bit in CWG1DBRbits
15672 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3, shadows bit in CWG1DBRbits
15673 #define DBR4 CWG1DBRbits.DBR4 // bit 4, shadows bit in CWG1DBRbits
15674 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4, shadows bit in CWG1DBRbits
15675 #define DBR5 CWG1DBRbits.DBR5 // bit 5, shadows bit in CWG1DBRbits
15676 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5, shadows bit in CWG1DBRbits
15678 #define IS0 CWG1ISMbits.IS0 // bit 0, shadows bit in CWG1ISMbits
15679 #define CWG1IS0 CWG1ISMbits.CWG1IS0 // bit 0, shadows bit in CWG1ISMbits
15680 #define IS1 CWG1ISMbits.IS1 // bit 1, shadows bit in CWG1ISMbits
15681 #define CWG1IS1 CWG1ISMbits.CWG1IS1 // bit 1, shadows bit in CWG1ISMbits
15682 #define IS2 CWG1ISMbits.IS2 // bit 2, shadows bit in CWG1ISMbits
15683 #define CWG1IS2 CWG1ISMbits.CWG1IS2 // bit 2, shadows bit in CWG1ISMbits
15684 #define IS3 CWG1ISMbits.IS3 // bit 3, shadows bit in CWG1ISMbits
15685 #define CWG1IS3 CWG1ISMbits.CWG1IS3 // bit 3, shadows bit in CWG1ISMbits
15687 #define STRA CWG1OCON0bits.STRA // bit 0, shadows bit in CWG1OCON0bits
15688 #define CWG1STRA CWG1OCON0bits.CWG1STRA // bit 0, shadows bit in CWG1OCON0bits
15689 #define STRB CWG1OCON0bits.STRB // bit 1, shadows bit in CWG1OCON0bits
15690 #define CWG1STRB CWG1OCON0bits.CWG1STRB // bit 1, shadows bit in CWG1OCON0bits
15691 #define STRC CWG1OCON0bits.STRC // bit 2, shadows bit in CWG1OCON0bits
15692 #define CWG1STRC CWG1OCON0bits.CWG1STRC // bit 2, shadows bit in CWG1OCON0bits
15693 #define STRD CWG1OCON0bits.STRD // bit 3, shadows bit in CWG1OCON0bits
15694 #define CWG1STRD CWG1OCON0bits.CWG1STRD // bit 3, shadows bit in CWG1OCON0bits
15695 #define OVRA CWG1OCON0bits.OVRA // bit 4, shadows bit in CWG1OCON0bits
15696 #define CWG1OVRA CWG1OCON0bits.CWG1OVRA // bit 4, shadows bit in CWG1OCON0bits
15697 #define OVRB CWG1OCON0bits.OVRB // bit 5, shadows bit in CWG1OCON0bits
15698 #define CWG1OVRB CWG1OCON0bits.CWG1OVRB // bit 5, shadows bit in CWG1OCON0bits
15699 #define OVRC CWG1OCON0bits.OVRC // bit 6, shadows bit in CWG1OCON0bits
15700 #define CWG1OVRC CWG1OCON0bits.CWG1OVRC // bit 6, shadows bit in CWG1OCON0bits
15701 #define OVRD CWG1OCON0bits.OVRD // bit 7, shadows bit in CWG1OCON0bits
15702 #define CWG1OVRD CWG1OCON0bits.CWG1OVRD // bit 7, shadows bit in CWG1OCON0bits
15704 #define CWGINPPS0 CWGINPPSbits.CWGINPPS0 // bit 0
15705 #define CWGINPPS1 CWGINPPSbits.CWGINPPS1 // bit 1
15706 #define CWGINPPS2 CWGINPPSbits.CWGINPPS2 // bit 2
15707 #define CWGINPPS3 CWGINPPSbits.CWGINPPS3 // bit 3
15708 #define CWGINPPS4 CWGINPPSbits.CWGINPPS4 // bit 4
15710 #define D1PSS0 DAC1CON0bits.D1PSS0 // bit 2
15711 #define D1PSS1 DAC1CON0bits.D1PSS1 // bit 3
15712 #define DAC1OE DAC1CON0bits.DAC1OE // bit 5
15713 #define DAC1EN DAC1CON0bits.DAC1EN // bit 7
15715 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0
15716 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1
15717 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2
15718 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3
15719 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4
15720 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5
15721 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6
15722 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7
15724 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
15725 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
15726 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
15727 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
15728 #define TSRNG FVRCONbits.TSRNG // bit 4
15729 #define TSEN FVRCONbits.TSEN // bit 5
15730 #define FVRRDY FVRCONbits.FVRRDY // bit 6
15731 #define FVREN FVRCONbits.FVREN // bit 7
15733 #define HIDC4 HIDRVCbits.HIDC4 // bit 4
15734 #define HIDC5 HIDRVCbits.HIDC5 // bit 5
15736 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
15737 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
15738 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
15739 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
15740 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
15741 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
15743 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
15744 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
15745 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
15746 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
15748 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
15749 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
15750 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
15751 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
15752 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
15753 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
15754 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
15755 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
15757 #define IOCIF INTCONbits.IOCIF // bit 0
15758 #define INTF INTCONbits.INTF // bit 1
15759 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
15760 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
15761 #define IOCIE INTCONbits.IOCIE // bit 3
15762 #define INTE INTCONbits.INTE // bit 4
15763 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
15764 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
15765 #define PEIE INTCONbits.PEIE // bit 6
15766 #define GIE INTCONbits.GIE // bit 7
15768 #define INTPPS0 INTPPSbits.INTPPS0 // bit 0
15769 #define INTPPS1 INTPPSbits.INTPPS1 // bit 1
15770 #define INTPPS2 INTPPSbits.INTPPS2 // bit 2
15771 #define INTPPS3 INTPPSbits.INTPPS3 // bit 3
15772 #define INTPPS4 INTPPSbits.INTPPS4 // bit 4
15774 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
15775 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
15776 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
15777 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
15778 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
15779 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
15781 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
15782 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
15783 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
15784 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
15785 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
15786 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
15788 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
15789 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
15790 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
15791 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
15792 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
15793 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
15795 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
15796 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
15797 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
15798 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
15800 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
15801 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
15802 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
15803 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
15805 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
15806 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
15807 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
15808 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
15810 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
15811 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
15812 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
15813 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
15814 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
15815 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
15816 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
15817 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
15819 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
15820 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
15821 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
15822 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
15823 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
15824 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
15825 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
15826 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
15828 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
15829 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
15830 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
15831 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
15832 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
15833 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
15834 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
15835 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
15837 #define LATA0 LATAbits.LATA0 // bit 0
15838 #define LATA1 LATAbits.LATA1 // bit 1
15839 #define LATA2 LATAbits.LATA2 // bit 2
15840 #define LATA3 LATAbits.LATA3 // bit 3
15841 #define LATA4 LATAbits.LATA4 // bit 4
15842 #define LATA5 LATAbits.LATA5 // bit 5
15844 #define LATB4 LATBbits.LATB4 // bit 4
15845 #define LATB5 LATBbits.LATB5 // bit 5
15846 #define LATB6 LATBbits.LATB6 // bit 6
15847 #define LATB7 LATBbits.LATB7 // bit 7
15849 #define LATC0 LATCbits.LATC0 // bit 0
15850 #define LATC1 LATCbits.LATC1 // bit 1
15851 #define LATC2 LATCbits.LATC2 // bit 2
15852 #define LATC3 LATCbits.LATC3 // bit 3
15853 #define LATC4 LATCbits.LATC4 // bit 4
15854 #define LATC5 LATCbits.LATC5 // bit 5
15855 #define LATC6 LATCbits.LATC6 // bit 6
15856 #define LATC7 LATCbits.LATC7 // bit 7
15858 #define ODA0 ODCONAbits.ODA0 // bit 0
15859 #define ODA1 ODCONAbits.ODA1 // bit 1
15860 #define ODA2 ODCONAbits.ODA2 // bit 2
15861 #define ODA4 ODCONAbits.ODA4 // bit 4
15862 #define ODA5 ODCONAbits.ODA5 // bit 5
15864 #define ODB4 ODCONBbits.ODB4 // bit 4
15865 #define ODB5 ODCONBbits.ODB5 // bit 5
15866 #define ODB6 ODCONBbits.ODB6 // bit 6
15867 #define ODB7 ODCONBbits.ODB7 // bit 7
15869 #define ODC0 ODCONCbits.ODC0 // bit 0
15870 #define ODC1 ODCONCbits.ODC1 // bit 1
15871 #define ODC2 ODCONCbits.ODC2 // bit 2
15872 #define ODC3 ODCONCbits.ODC3 // bit 3
15873 #define ODC4 ODCONCbits.ODC4 // bit 4
15874 #define ODC5 ODCONCbits.ODC5 // bit 5
15875 #define ODC6 ODCONCbits.ODC6 // bit 6
15876 #define ODC7 ODCONCbits.ODC7 // bit 7
15878 #define SCS0 OSCCONbits.SCS0 // bit 0
15879 #define SCS1 OSCCONbits.SCS1 // bit 1
15880 #define IRCF0 OSCCONbits.IRCF0 // bit 3
15881 #define IRCF1 OSCCONbits.IRCF1 // bit 4
15882 #define IRCF2 OSCCONbits.IRCF2 // bit 5
15883 #define IRCF3 OSCCONbits.IRCF3 // bit 6
15884 #define SPLLEN OSCCONbits.SPLLEN // bit 7
15886 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
15887 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
15888 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
15889 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
15890 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
15891 #define PLLR OSCSTATbits.PLLR // bit 6
15893 #define TUN0 OSCTUNEbits.TUN0 // bit 0
15894 #define TUN1 OSCTUNEbits.TUN1 // bit 1
15895 #define TUN2 OSCTUNEbits.TUN2 // bit 2
15896 #define TUN3 OSCTUNEbits.TUN3 // bit 3
15897 #define TUN4 OSCTUNEbits.TUN4 // bit 4
15898 #define TUN5 OSCTUNEbits.TUN5 // bit 5
15900 #define NOT_BOR PCONbits.NOT_BOR // bit 0
15901 #define NOT_POR PCONbits.NOT_POR // bit 1
15902 #define NOT_RI PCONbits.NOT_RI // bit 2
15903 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
15904 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
15905 #define NOT_WDTWV PCONbits.NOT_WDTWV // bit 5
15906 #define STKUNF PCONbits.STKUNF // bit 6
15907 #define STKOVF PCONbits.STKOVF // bit 7
15909 #define PID1ACC24 PID1ACCHHbits.PID1ACC24 // bit 0, shadows bit in PID1ACCHHbits
15910 #define ACC24 PID1ACCHHbits.ACC24 // bit 0, shadows bit in PID1ACCHHbits
15911 #define PID1ACC25 PID1ACCHHbits.PID1ACC25 // bit 1, shadows bit in PID1ACCHHbits
15912 #define ACC25 PID1ACCHHbits.ACC25 // bit 1, shadows bit in PID1ACCHHbits
15913 #define PID1ACC26 PID1ACCHHbits.PID1ACC26 // bit 2, shadows bit in PID1ACCHHbits
15914 #define ACC26 PID1ACCHHbits.ACC26 // bit 2, shadows bit in PID1ACCHHbits
15915 #define PID1ACC27 PID1ACCHHbits.PID1ACC27 // bit 3, shadows bit in PID1ACCHHbits
15916 #define ACC27 PID1ACCHHbits.ACC27 // bit 3, shadows bit in PID1ACCHHbits
15917 #define PID1ACC28 PID1ACCHHbits.PID1ACC28 // bit 4, shadows bit in PID1ACCHHbits
15918 #define ACC28 PID1ACCHHbits.ACC28 // bit 4, shadows bit in PID1ACCHHbits
15919 #define PID1ACC29 PID1ACCHHbits.PID1ACC29 // bit 5, shadows bit in PID1ACCHHbits
15920 #define ACC29 PID1ACCHHbits.ACC29 // bit 5, shadows bit in PID1ACCHHbits
15921 #define PID1ACC30 PID1ACCHHbits.PID1ACC30 // bit 6, shadows bit in PID1ACCHHbits
15922 #define ACC30 PID1ACCHHbits.ACC30 // bit 6, shadows bit in PID1ACCHHbits
15923 #define PID1ACC31 PID1ACCHHbits.PID1ACC31 // bit 7, shadows bit in PID1ACCHHbits
15924 #define ACC31 PID1ACCHHbits.ACC31 // bit 7, shadows bit in PID1ACCHHbits
15926 #define PID1ACC16 PID1ACCHLbits.PID1ACC16 // bit 0, shadows bit in PID1ACCHLbits
15927 #define ACC16 PID1ACCHLbits.ACC16 // bit 0, shadows bit in PID1ACCHLbits
15928 #define PID1ACC17 PID1ACCHLbits.PID1ACC17 // bit 1, shadows bit in PID1ACCHLbits
15929 #define ACC17 PID1ACCHLbits.ACC17 // bit 1, shadows bit in PID1ACCHLbits
15930 #define PID1ACC18 PID1ACCHLbits.PID1ACC18 // bit 2, shadows bit in PID1ACCHLbits
15931 #define ACC18 PID1ACCHLbits.ACC18 // bit 2, shadows bit in PID1ACCHLbits
15932 #define PID1ACC19 PID1ACCHLbits.PID1ACC19 // bit 3, shadows bit in PID1ACCHLbits
15933 #define ACC19 PID1ACCHLbits.ACC19 // bit 3, shadows bit in PID1ACCHLbits
15934 #define PID1ACC20 PID1ACCHLbits.PID1ACC20 // bit 4, shadows bit in PID1ACCHLbits
15935 #define ACC20 PID1ACCHLbits.ACC20 // bit 4, shadows bit in PID1ACCHLbits
15936 #define PID1ACC21 PID1ACCHLbits.PID1ACC21 // bit 5, shadows bit in PID1ACCHLbits
15937 #define ACC21 PID1ACCHLbits.ACC21 // bit 5, shadows bit in PID1ACCHLbits
15938 #define PID1ACC22 PID1ACCHLbits.PID1ACC22 // bit 6, shadows bit in PID1ACCHLbits
15939 #define ACC22 PID1ACCHLbits.ACC22 // bit 6, shadows bit in PID1ACCHLbits
15940 #define PID1ACC23 PID1ACCHLbits.PID1ACC23 // bit 7, shadows bit in PID1ACCHLbits
15941 #define ACC23 PID1ACCHLbits.ACC23 // bit 7, shadows bit in PID1ACCHLbits
15943 #define PID1ACC32 PID1ACCUbits.PID1ACC32 // bit 0, shadows bit in PID1ACCUbits
15944 #define ACC32 PID1ACCUbits.ACC32 // bit 0, shadows bit in PID1ACCUbits
15945 #define PID1ACC33 PID1ACCUbits.PID1ACC33 // bit 1, shadows bit in PID1ACCUbits
15946 #define ACC33 PID1ACCUbits.ACC33 // bit 1, shadows bit in PID1ACCUbits
15947 #define PID1ACC34 PID1ACCUbits.PID1ACC34 // bit 2, shadows bit in PID1ACCUbits
15948 #define ACC34 PID1ACCUbits.ACC34 // bit 2, shadows bit in PID1ACCUbits
15950 #define PID1IN8 PID1INHbits.PID1IN8 // bit 0, shadows bit in PID1INHbits
15951 #define IN8 PID1INHbits.IN8 // bit 0, shadows bit in PID1INHbits
15952 #define PID1IN9 PID1INHbits.PID1IN9 // bit 1, shadows bit in PID1INHbits
15953 #define IN9 PID1INHbits.IN9 // bit 1, shadows bit in PID1INHbits
15954 #define PID1IN10 PID1INHbits.PID1IN10 // bit 2, shadows bit in PID1INHbits
15955 #define IN10 PID1INHbits.IN10 // bit 2, shadows bit in PID1INHbits
15956 #define PID1IN11 PID1INHbits.PID1IN11 // bit 3, shadows bit in PID1INHbits
15957 #define IN11 PID1INHbits.IN11 // bit 3, shadows bit in PID1INHbits
15958 #define PID1IN12 PID1INHbits.PID1IN12 // bit 4, shadows bit in PID1INHbits
15959 #define IN12 PID1INHbits.IN12 // bit 4, shadows bit in PID1INHbits
15960 #define PID1IN13 PID1INHbits.PID1IN13 // bit 5, shadows bit in PID1INHbits
15961 #define IN13 PID1INHbits.IN13 // bit 5, shadows bit in PID1INHbits
15962 #define PID1IN14 PID1INHbits.PID1IN14 // bit 6, shadows bit in PID1INHbits
15963 #define IN14 PID1INHbits.IN14 // bit 6, shadows bit in PID1INHbits
15964 #define PID1IN15 PID1INHbits.PID1IN15 // bit 7, shadows bit in PID1INHbits
15965 #define IN15 PID1INHbits.IN15 // bit 7, shadows bit in PID1INHbits
15967 #define PID1IN0 PID1INLbits.PID1IN0 // bit 0, shadows bit in PID1INLbits
15968 #define IN0 PID1INLbits.IN0 // bit 0, shadows bit in PID1INLbits
15969 #define PID1IN1 PID1INLbits.PID1IN1 // bit 1, shadows bit in PID1INLbits
15970 #define IN1 PID1INLbits.IN1 // bit 1, shadows bit in PID1INLbits
15971 #define PID1IN2 PID1INLbits.PID1IN2 // bit 2, shadows bit in PID1INLbits
15972 #define IN2 PID1INLbits.IN2 // bit 2, shadows bit in PID1INLbits
15973 #define PID1IN3 PID1INLbits.PID1IN3 // bit 3, shadows bit in PID1INLbits
15974 #define IN3 PID1INLbits.IN3 // bit 3, shadows bit in PID1INLbits
15975 #define PID1IN4 PID1INLbits.PID1IN4 // bit 4, shadows bit in PID1INLbits
15976 #define IN4 PID1INLbits.IN4 // bit 4, shadows bit in PID1INLbits
15977 #define PID1IN5 PID1INLbits.PID1IN5 // bit 5, shadows bit in PID1INLbits
15978 #define IN5 PID1INLbits.IN5 // bit 5, shadows bit in PID1INLbits
15979 #define PID1IN6 PID1INLbits.PID1IN6 // bit 6, shadows bit in PID1INLbits
15980 #define IN6 PID1INLbits.IN6 // bit 6, shadows bit in PID1INLbits
15981 #define PID1IN7 PID1INLbits.PID1IN7 // bit 7, shadows bit in PID1INLbits
15982 #define IN7 PID1INLbits.IN7 // bit 7, shadows bit in PID1INLbits
15984 #define PID1K18 PID1K1Hbits.PID1K18 // bit 0, shadows bit in PID1K1Hbits
15985 #define K18 PID1K1Hbits.K18 // bit 0, shadows bit in PID1K1Hbits
15986 #define PID1K19 PID1K1Hbits.PID1K19 // bit 1, shadows bit in PID1K1Hbits
15987 #define K19 PID1K1Hbits.K19 // bit 1, shadows bit in PID1K1Hbits
15988 #define PID1K110 PID1K1Hbits.PID1K110 // bit 2, shadows bit in PID1K1Hbits
15989 #define K110 PID1K1Hbits.K110 // bit 2, shadows bit in PID1K1Hbits
15990 #define PID1K111 PID1K1Hbits.PID1K111 // bit 3, shadows bit in PID1K1Hbits
15991 #define K111 PID1K1Hbits.K111 // bit 3, shadows bit in PID1K1Hbits
15992 #define PID1K112 PID1K1Hbits.PID1K112 // bit 4, shadows bit in PID1K1Hbits
15993 #define K112 PID1K1Hbits.K112 // bit 4, shadows bit in PID1K1Hbits
15994 #define PID1K113 PID1K1Hbits.PID1K113 // bit 5, shadows bit in PID1K1Hbits
15995 #define K113 PID1K1Hbits.K113 // bit 5, shadows bit in PID1K1Hbits
15996 #define PID1K114 PID1K1Hbits.PID1K114 // bit 6, shadows bit in PID1K1Hbits
15997 #define K114 PID1K1Hbits.K114 // bit 6, shadows bit in PID1K1Hbits
15998 #define PID1K115 PID1K1Hbits.PID1K115 // bit 7, shadows bit in PID1K1Hbits
15999 #define K115 PID1K1Hbits.K115 // bit 7, shadows bit in PID1K1Hbits
16001 #define PID1K10 PID1K1Lbits.PID1K10 // bit 0, shadows bit in PID1K1Lbits
16002 #define K10 PID1K1Lbits.K10 // bit 0, shadows bit in PID1K1Lbits
16003 #define PID1K11 PID1K1Lbits.PID1K11 // bit 1, shadows bit in PID1K1Lbits
16004 #define K11 PID1K1Lbits.K11 // bit 1, shadows bit in PID1K1Lbits
16005 #define PID1K12 PID1K1Lbits.PID1K12 // bit 2, shadows bit in PID1K1Lbits
16006 #define K12 PID1K1Lbits.K12 // bit 2, shadows bit in PID1K1Lbits
16007 #define PID1K13 PID1K1Lbits.PID1K13 // bit 3, shadows bit in PID1K1Lbits
16008 #define K13 PID1K1Lbits.K13 // bit 3, shadows bit in PID1K1Lbits
16009 #define PID1K14 PID1K1Lbits.PID1K14 // bit 4, shadows bit in PID1K1Lbits
16010 #define K14 PID1K1Lbits.K14 // bit 4, shadows bit in PID1K1Lbits
16011 #define PID1K15 PID1K1Lbits.PID1K15 // bit 5, shadows bit in PID1K1Lbits
16012 #define K15 PID1K1Lbits.K15 // bit 5, shadows bit in PID1K1Lbits
16013 #define PID1K16 PID1K1Lbits.PID1K16 // bit 6, shadows bit in PID1K1Lbits
16014 #define K16 PID1K1Lbits.K16 // bit 6, shadows bit in PID1K1Lbits
16015 #define PID1K17 PID1K1Lbits.PID1K17 // bit 7, shadows bit in PID1K1Lbits
16016 #define K17 PID1K1Lbits.K17 // bit 7, shadows bit in PID1K1Lbits
16018 #define PID1K28 PID1K2Hbits.PID1K28 // bit 0, shadows bit in PID1K2Hbits
16019 #define K28 PID1K2Hbits.K28 // bit 0, shadows bit in PID1K2Hbits
16020 #define PID1K29 PID1K2Hbits.PID1K29 // bit 1, shadows bit in PID1K2Hbits
16021 #define K29 PID1K2Hbits.K29 // bit 1, shadows bit in PID1K2Hbits
16022 #define PID1K210 PID1K2Hbits.PID1K210 // bit 2, shadows bit in PID1K2Hbits
16023 #define K210 PID1K2Hbits.K210 // bit 2, shadows bit in PID1K2Hbits
16024 #define PID1K211 PID1K2Hbits.PID1K211 // bit 3, shadows bit in PID1K2Hbits
16025 #define K211 PID1K2Hbits.K211 // bit 3, shadows bit in PID1K2Hbits
16026 #define PID1K212 PID1K2Hbits.PID1K212 // bit 4, shadows bit in PID1K2Hbits
16027 #define K212 PID1K2Hbits.K212 // bit 4, shadows bit in PID1K2Hbits
16028 #define PID1K213 PID1K2Hbits.PID1K213 // bit 5, shadows bit in PID1K2Hbits
16029 #define K213 PID1K2Hbits.K213 // bit 5, shadows bit in PID1K2Hbits
16030 #define PID1K214 PID1K2Hbits.PID1K214 // bit 6, shadows bit in PID1K2Hbits
16031 #define K214 PID1K2Hbits.K214 // bit 6, shadows bit in PID1K2Hbits
16032 #define PID1K215 PID1K2Hbits.PID1K215 // bit 7, shadows bit in PID1K2Hbits
16033 #define K215 PID1K2Hbits.K215 // bit 7, shadows bit in PID1K2Hbits
16035 #define PID1K20 PID1K2Lbits.PID1K20 // bit 0, shadows bit in PID1K2Lbits
16036 #define K20 PID1K2Lbits.K20 // bit 0, shadows bit in PID1K2Lbits
16037 #define PID1K21 PID1K2Lbits.PID1K21 // bit 1, shadows bit in PID1K2Lbits
16038 #define K21 PID1K2Lbits.K21 // bit 1, shadows bit in PID1K2Lbits
16039 #define PID1K22 PID1K2Lbits.PID1K22 // bit 2, shadows bit in PID1K2Lbits
16040 #define K22 PID1K2Lbits.K22 // bit 2, shadows bit in PID1K2Lbits
16041 #define PID1K23 PID1K2Lbits.PID1K23 // bit 3, shadows bit in PID1K2Lbits
16042 #define K23 PID1K2Lbits.K23 // bit 3, shadows bit in PID1K2Lbits
16043 #define PID1K24 PID1K2Lbits.PID1K24 // bit 4, shadows bit in PID1K2Lbits
16044 #define K24 PID1K2Lbits.K24 // bit 4, shadows bit in PID1K2Lbits
16045 #define PID1K25 PID1K2Lbits.PID1K25 // bit 5, shadows bit in PID1K2Lbits
16046 #define K25 PID1K2Lbits.K25 // bit 5, shadows bit in PID1K2Lbits
16047 #define PID1K26 PID1K2Lbits.PID1K26 // bit 6, shadows bit in PID1K2Lbits
16048 #define K26 PID1K2Lbits.K26 // bit 6, shadows bit in PID1K2Lbits
16049 #define PID1K27 PID1K2Lbits.PID1K27 // bit 7, shadows bit in PID1K2Lbits
16050 #define K27 PID1K2Lbits.K27 // bit 7, shadows bit in PID1K2Lbits
16052 #define PID1K38 PID1K3Hbits.PID1K38 // bit 0, shadows bit in PID1K3Hbits
16053 #define K38 PID1K3Hbits.K38 // bit 0, shadows bit in PID1K3Hbits
16054 #define PID1K39 PID1K3Hbits.PID1K39 // bit 1, shadows bit in PID1K3Hbits
16055 #define K39 PID1K3Hbits.K39 // bit 1, shadows bit in PID1K3Hbits
16056 #define PID1K310 PID1K3Hbits.PID1K310 // bit 2, shadows bit in PID1K3Hbits
16057 #define K310 PID1K3Hbits.K310 // bit 2, shadows bit in PID1K3Hbits
16058 #define PID1K311 PID1K3Hbits.PID1K311 // bit 3, shadows bit in PID1K3Hbits
16059 #define K311 PID1K3Hbits.K311 // bit 3, shadows bit in PID1K3Hbits
16060 #define PID1K312 PID1K3Hbits.PID1K312 // bit 4, shadows bit in PID1K3Hbits
16061 #define K312 PID1K3Hbits.K312 // bit 4, shadows bit in PID1K3Hbits
16062 #define PID1K313 PID1K3Hbits.PID1K313 // bit 5, shadows bit in PID1K3Hbits
16063 #define K313 PID1K3Hbits.K313 // bit 5, shadows bit in PID1K3Hbits
16064 #define PID1K314 PID1K3Hbits.PID1K314 // bit 6, shadows bit in PID1K3Hbits
16065 #define K314 PID1K3Hbits.K314 // bit 6, shadows bit in PID1K3Hbits
16066 #define PID1K315 PID1K3Hbits.PID1K315 // bit 7, shadows bit in PID1K3Hbits
16067 #define K315 PID1K3Hbits.K315 // bit 7, shadows bit in PID1K3Hbits
16069 #define PID1K30 PID1K3Lbits.PID1K30 // bit 0, shadows bit in PID1K3Lbits
16070 #define K30 PID1K3Lbits.K30 // bit 0, shadows bit in PID1K3Lbits
16071 #define PID1K31 PID1K3Lbits.PID1K31 // bit 1, shadows bit in PID1K3Lbits
16072 #define K31 PID1K3Lbits.K31 // bit 1, shadows bit in PID1K3Lbits
16073 #define PID1K32 PID1K3Lbits.PID1K32 // bit 2, shadows bit in PID1K3Lbits
16074 #define K32 PID1K3Lbits.K32 // bit 2, shadows bit in PID1K3Lbits
16075 #define PID1K33 PID1K3Lbits.PID1K33 // bit 3, shadows bit in PID1K3Lbits
16076 #define K33 PID1K3Lbits.K33 // bit 3, shadows bit in PID1K3Lbits
16077 #define PID1K34 PID1K3Lbits.PID1K34 // bit 4, shadows bit in PID1K3Lbits
16078 #define K34 PID1K3Lbits.K34 // bit 4, shadows bit in PID1K3Lbits
16079 #define PID1K35 PID1K3Lbits.PID1K35 // bit 5, shadows bit in PID1K3Lbits
16080 #define K35 PID1K3Lbits.K35 // bit 5, shadows bit in PID1K3Lbits
16081 #define PID1K36 PID1K3Lbits.PID1K36 // bit 6, shadows bit in PID1K3Lbits
16082 #define K36 PID1K3Lbits.K36 // bit 6, shadows bit in PID1K3Lbits
16083 #define PID1K37 PID1K3Lbits.PID1K37 // bit 7, shadows bit in PID1K3Lbits
16084 #define K37 PID1K3Lbits.K37 // bit 7, shadows bit in PID1K3Lbits
16086 #define PID1OUT24 PID1OUTHHbits.PID1OUT24 // bit 0, shadows bit in PID1OUTHHbits
16087 #define OUT24 PID1OUTHHbits.OUT24 // bit 0, shadows bit in PID1OUTHHbits
16088 #define PID1OUT25 PID1OUTHHbits.PID1OUT25 // bit 1, shadows bit in PID1OUTHHbits
16089 #define OUT25 PID1OUTHHbits.OUT25 // bit 1, shadows bit in PID1OUTHHbits
16090 #define PID1OUT26 PID1OUTHHbits.PID1OUT26 // bit 2, shadows bit in PID1OUTHHbits
16091 #define OUT26 PID1OUTHHbits.OUT26 // bit 2, shadows bit in PID1OUTHHbits
16092 #define PID1OUT27 PID1OUTHHbits.PID1OUT27 // bit 3, shadows bit in PID1OUTHHbits
16093 #define OUT27 PID1OUTHHbits.OUT27 // bit 3, shadows bit in PID1OUTHHbits
16094 #define PID1OUT28 PID1OUTHHbits.PID1OUT28 // bit 4, shadows bit in PID1OUTHHbits
16095 #define OUT28 PID1OUTHHbits.OUT28 // bit 4, shadows bit in PID1OUTHHbits
16096 #define PID1OUT29 PID1OUTHHbits.PID1OUT29 // bit 5, shadows bit in PID1OUTHHbits
16097 #define OUT29 PID1OUTHHbits.OUT29 // bit 5, shadows bit in PID1OUTHHbits
16098 #define PID1OUT30 PID1OUTHHbits.PID1OUT30 // bit 6, shadows bit in PID1OUTHHbits
16099 #define OUT30 PID1OUTHHbits.OUT30 // bit 6, shadows bit in PID1OUTHHbits
16100 #define PID1OUT31 PID1OUTHHbits.PID1OUT31 // bit 7, shadows bit in PID1OUTHHbits
16101 #define OUT31 PID1OUTHHbits.OUT31 // bit 7, shadows bit in PID1OUTHHbits
16103 #define PID1OUT16 PID1OUTHLbits.PID1OUT16 // bit 0, shadows bit in PID1OUTHLbits
16104 #define OUT16 PID1OUTHLbits.OUT16 // bit 0, shadows bit in PID1OUTHLbits
16105 #define PID1OUT17 PID1OUTHLbits.PID1OUT17 // bit 1, shadows bit in PID1OUTHLbits
16106 #define OUT17 PID1OUTHLbits.OUT17 // bit 1, shadows bit in PID1OUTHLbits
16107 #define PID1OUT18 PID1OUTHLbits.PID1OUT18 // bit 2, shadows bit in PID1OUTHLbits
16108 #define OUT18 PID1OUTHLbits.OUT18 // bit 2, shadows bit in PID1OUTHLbits
16109 #define PID1OUT19 PID1OUTHLbits.PID1OUT19 // bit 3, shadows bit in PID1OUTHLbits
16110 #define OUT19 PID1OUTHLbits.OUT19 // bit 3, shadows bit in PID1OUTHLbits
16111 #define PID1OUT20 PID1OUTHLbits.PID1OUT20 // bit 4, shadows bit in PID1OUTHLbits
16112 #define OUT20 PID1OUTHLbits.OUT20 // bit 4, shadows bit in PID1OUTHLbits
16113 #define PID1OUT21 PID1OUTHLbits.PID1OUT21 // bit 5, shadows bit in PID1OUTHLbits
16114 #define OUT21 PID1OUTHLbits.OUT21 // bit 5, shadows bit in PID1OUTHLbits
16115 #define PID1OUT22 PID1OUTHLbits.PID1OUT22 // bit 6, shadows bit in PID1OUTHLbits
16116 #define OUT22 PID1OUTHLbits.OUT22 // bit 6, shadows bit in PID1OUTHLbits
16117 #define PID1OUT23 PID1OUTHLbits.PID1OUT23 // bit 7, shadows bit in PID1OUTHLbits
16118 #define OUT23 PID1OUTHLbits.OUT23 // bit 7, shadows bit in PID1OUTHLbits
16120 #define PID1OUT8 PID1OUTLHbits.PID1OUT8 // bit 0, shadows bit in PID1OUTLHbits
16121 #define OUT8 PID1OUTLHbits.OUT8 // bit 0, shadows bit in PID1OUTLHbits
16122 #define PID1OUT9 PID1OUTLHbits.PID1OUT9 // bit 1, shadows bit in PID1OUTLHbits
16123 #define OUT9 PID1OUTLHbits.OUT9 // bit 1, shadows bit in PID1OUTLHbits
16124 #define PID1OUT10 PID1OUTLHbits.PID1OUT10 // bit 2, shadows bit in PID1OUTLHbits
16125 #define OUT10 PID1OUTLHbits.OUT10 // bit 2, shadows bit in PID1OUTLHbits
16126 #define PID1OUT11 PID1OUTLHbits.PID1OUT11 // bit 3, shadows bit in PID1OUTLHbits
16127 #define OUT11 PID1OUTLHbits.OUT11 // bit 3, shadows bit in PID1OUTLHbits
16128 #define PID1OUT12 PID1OUTLHbits.PID1OUT12 // bit 4, shadows bit in PID1OUTLHbits
16129 #define OUT12 PID1OUTLHbits.OUT12 // bit 4, shadows bit in PID1OUTLHbits
16130 #define PID1OUT13 PID1OUTLHbits.PID1OUT13 // bit 5, shadows bit in PID1OUTLHbits
16131 #define OUT13 PID1OUTLHbits.OUT13 // bit 5, shadows bit in PID1OUTLHbits
16132 #define PID1OUT14 PID1OUTLHbits.PID1OUT14 // bit 6, shadows bit in PID1OUTLHbits
16133 #define OUT14 PID1OUTLHbits.OUT14 // bit 6, shadows bit in PID1OUTLHbits
16134 #define PID1OUT15 PID1OUTLHbits.PID1OUT15 // bit 7, shadows bit in PID1OUTLHbits
16135 #define OUT15 PID1OUTLHbits.OUT15 // bit 7, shadows bit in PID1OUTLHbits
16137 #define PID1OUT0 PID1OUTLLbits.PID1OUT0 // bit 0, shadows bit in PID1OUTLLbits
16138 #define OUT0 PID1OUTLLbits.OUT0 // bit 0, shadows bit in PID1OUTLLbits
16139 #define PID1OUT1 PID1OUTLLbits.PID1OUT1 // bit 1, shadows bit in PID1OUTLLbits
16140 #define OUT1 PID1OUTLLbits.OUT1 // bit 1, shadows bit in PID1OUTLLbits
16141 #define PID1OUT2 PID1OUTLLbits.PID1OUT2 // bit 2, shadows bit in PID1OUTLLbits
16142 #define OUT2 PID1OUTLLbits.OUT2 // bit 2, shadows bit in PID1OUTLLbits
16143 #define PID1OUT3 PID1OUTLLbits.PID1OUT3 // bit 3, shadows bit in PID1OUTLLbits
16144 #define OUT3 PID1OUTLLbits.OUT3 // bit 3, shadows bit in PID1OUTLLbits
16145 #define PID1OUT4 PID1OUTLLbits.PID1OUT4 // bit 4, shadows bit in PID1OUTLLbits
16146 #define OUT4 PID1OUTLLbits.OUT4 // bit 4, shadows bit in PID1OUTLLbits
16147 #define PID1OUT5 PID1OUTLLbits.PID1OUT5 // bit 5, shadows bit in PID1OUTLLbits
16148 #define OUT5 PID1OUTLLbits.OUT5 // bit 5, shadows bit in PID1OUTLLbits
16149 #define PID1OUT6 PID1OUTLLbits.PID1OUT6 // bit 6, shadows bit in PID1OUTLLbits
16150 #define OUT6 PID1OUTLLbits.OUT6 // bit 6, shadows bit in PID1OUTLLbits
16151 #define PID1OUT7 PID1OUTLLbits.PID1OUT7 // bit 7, shadows bit in PID1OUTLLbits
16152 #define OUT7 PID1OUTLLbits.OUT7 // bit 7, shadows bit in PID1OUTLLbits
16154 #define PID1OUT32 PID1OUTUbits.PID1OUT32 // bit 0, shadows bit in PID1OUTUbits
16155 #define OUT32 PID1OUTUbits.OUT32 // bit 0, shadows bit in PID1OUTUbits
16156 #define PID1OUT33 PID1OUTUbits.PID1OUT33 // bit 1, shadows bit in PID1OUTUbits
16157 #define OUT33 PID1OUTUbits.OUT33 // bit 1, shadows bit in PID1OUTUbits
16158 #define PID1OUT34 PID1OUTUbits.PID1OUT34 // bit 2, shadows bit in PID1OUTUbits
16159 #define OUT34 PID1OUTUbits.OUT34 // bit 2, shadows bit in PID1OUTUbits
16160 #define PID1OUT35 PID1OUTUbits.PID1OUT35 // bit 3, shadows bit in PID1OUTUbits
16161 #define OUT35 PID1OUTUbits.OUT35 // bit 3, shadows bit in PID1OUTUbits
16163 #define PID1SET8 PID1SETHbits.PID1SET8 // bit 0, shadows bit in PID1SETHbits
16164 #define SET8 PID1SETHbits.SET8 // bit 0, shadows bit in PID1SETHbits
16165 #define PID1SET9 PID1SETHbits.PID1SET9 // bit 1, shadows bit in PID1SETHbits
16166 #define SET9 PID1SETHbits.SET9 // bit 1, shadows bit in PID1SETHbits
16167 #define PID1SET10 PID1SETHbits.PID1SET10 // bit 2, shadows bit in PID1SETHbits
16168 #define SET10 PID1SETHbits.SET10 // bit 2, shadows bit in PID1SETHbits
16169 #define PID1SET11 PID1SETHbits.PID1SET11 // bit 3, shadows bit in PID1SETHbits
16170 #define SET11 PID1SETHbits.SET11 // bit 3, shadows bit in PID1SETHbits
16171 #define PID1SET12 PID1SETHbits.PID1SET12 // bit 4, shadows bit in PID1SETHbits
16172 #define SET12 PID1SETHbits.SET12 // bit 4, shadows bit in PID1SETHbits
16173 #define PID1SET13 PID1SETHbits.PID1SET13 // bit 5, shadows bit in PID1SETHbits
16174 #define SET13 PID1SETHbits.SET13 // bit 5, shadows bit in PID1SETHbits
16175 #define PID1SET14 PID1SETHbits.PID1SET14 // bit 6, shadows bit in PID1SETHbits
16176 #define SET14 PID1SETHbits.SET14 // bit 6, shadows bit in PID1SETHbits
16177 #define PID1SET15 PID1SETHbits.PID1SET15 // bit 7, shadows bit in PID1SETHbits
16178 #define SET15 PID1SETHbits.SET15 // bit 7, shadows bit in PID1SETHbits
16180 #define PID1SET0 PID1SETLbits.PID1SET0 // bit 0, shadows bit in PID1SETLbits
16181 #define SET0 PID1SETLbits.SET0 // bit 0, shadows bit in PID1SETLbits
16182 #define PID1SET1 PID1SETLbits.PID1SET1 // bit 1, shadows bit in PID1SETLbits
16183 #define SET1 PID1SETLbits.SET1 // bit 1, shadows bit in PID1SETLbits
16184 #define PID1SET2 PID1SETLbits.PID1SET2 // bit 2, shadows bit in PID1SETLbits
16185 #define SET2 PID1SETLbits.SET2 // bit 2, shadows bit in PID1SETLbits
16186 #define PID1SET3 PID1SETLbits.PID1SET3 // bit 3, shadows bit in PID1SETLbits
16187 #define SET3 PID1SETLbits.SET3 // bit 3, shadows bit in PID1SETLbits
16188 #define PID1SET4 PID1SETLbits.PID1SET4 // bit 4, shadows bit in PID1SETLbits
16189 #define SET4 PID1SETLbits.SET4 // bit 4, shadows bit in PID1SETLbits
16190 #define PID1SET5 PID1SETLbits.PID1SET5 // bit 5, shadows bit in PID1SETLbits
16191 #define SET5 PID1SETLbits.SET5 // bit 5, shadows bit in PID1SETLbits
16192 #define PID1SET6 PID1SETLbits.PID1SET6 // bit 6, shadows bit in PID1SETLbits
16193 #define SET6 PID1SETLbits.SET6 // bit 6, shadows bit in PID1SETLbits
16194 #define PID1SET7 PID1SETLbits.PID1SET7 // bit 7, shadows bit in PID1SETLbits
16195 #define SET7 PID1SETLbits.SET7 // bit 7, shadows bit in PID1SETLbits
16197 #define PID1Z18 PID1Z1Hbits.PID1Z18 // bit 0, shadows bit in PID1Z1Hbits
16198 #define Z18 PID1Z1Hbits.Z18 // bit 0, shadows bit in PID1Z1Hbits
16199 #define PID1Z19 PID1Z1Hbits.PID1Z19 // bit 1, shadows bit in PID1Z1Hbits
16200 #define Z19 PID1Z1Hbits.Z19 // bit 1, shadows bit in PID1Z1Hbits
16201 #define PID1Z110 PID1Z1Hbits.PID1Z110 // bit 2, shadows bit in PID1Z1Hbits
16202 #define Z110 PID1Z1Hbits.Z110 // bit 2, shadows bit in PID1Z1Hbits
16203 #define PID1Z111 PID1Z1Hbits.PID1Z111 // bit 3, shadows bit in PID1Z1Hbits
16204 #define Z111 PID1Z1Hbits.Z111 // bit 3, shadows bit in PID1Z1Hbits
16205 #define PID1Z112 PID1Z1Hbits.PID1Z112 // bit 4, shadows bit in PID1Z1Hbits
16206 #define Z112 PID1Z1Hbits.Z112 // bit 4, shadows bit in PID1Z1Hbits
16207 #define PID1Z113 PID1Z1Hbits.PID1Z113 // bit 5, shadows bit in PID1Z1Hbits
16208 #define Z113 PID1Z1Hbits.Z113 // bit 5, shadows bit in PID1Z1Hbits
16209 #define PID1Z114 PID1Z1Hbits.PID1Z114 // bit 6, shadows bit in PID1Z1Hbits
16210 #define Z114 PID1Z1Hbits.Z114 // bit 6, shadows bit in PID1Z1Hbits
16211 #define PID1Z115 PID1Z1Hbits.PID1Z115 // bit 7, shadows bit in PID1Z1Hbits
16212 #define Z115 PID1Z1Hbits.Z115 // bit 7, shadows bit in PID1Z1Hbits
16214 #define PID1Z10 PID1Z1Lbits.PID1Z10 // bit 0, shadows bit in PID1Z1Lbits
16215 #define Z10 PID1Z1Lbits.Z10 // bit 0, shadows bit in PID1Z1Lbits
16216 #define PID1Z11 PID1Z1Lbits.PID1Z11 // bit 1, shadows bit in PID1Z1Lbits
16217 #define Z11 PID1Z1Lbits.Z11 // bit 1, shadows bit in PID1Z1Lbits
16218 #define PID1Z12 PID1Z1Lbits.PID1Z12 // bit 2, shadows bit in PID1Z1Lbits
16219 #define Z12 PID1Z1Lbits.Z12 // bit 2, shadows bit in PID1Z1Lbits
16220 #define PID1Z13 PID1Z1Lbits.PID1Z13 // bit 3, shadows bit in PID1Z1Lbits
16221 #define Z13 PID1Z1Lbits.Z13 // bit 3, shadows bit in PID1Z1Lbits
16222 #define PID1Z14 PID1Z1Lbits.PID1Z14 // bit 4, shadows bit in PID1Z1Lbits
16223 #define Z14 PID1Z1Lbits.Z14 // bit 4, shadows bit in PID1Z1Lbits
16224 #define PID1Z15 PID1Z1Lbits.PID1Z15 // bit 5, shadows bit in PID1Z1Lbits
16225 #define Z15 PID1Z1Lbits.Z15 // bit 5, shadows bit in PID1Z1Lbits
16226 #define PID1Z16 PID1Z1Lbits.PID1Z16 // bit 6, shadows bit in PID1Z1Lbits
16227 #define Z16 PID1Z1Lbits.Z16 // bit 6, shadows bit in PID1Z1Lbits
16228 #define PID1Z17 PID1Z1Lbits.PID1Z17 // bit 7, shadows bit in PID1Z1Lbits
16229 #define Z17 PID1Z1Lbits.Z17 // bit 7, shadows bit in PID1Z1Lbits
16231 #define PID1Z116 PID1Z1Ubits.PID1Z116 // bit 0, shadows bit in PID1Z1Ubits
16232 #define Z116 PID1Z1Ubits.Z116 // bit 0, shadows bit in PID1Z1Ubits
16234 #define PID1Z28 PID1Z2Hbits.PID1Z28 // bit 0, shadows bit in PID1Z2Hbits
16235 #define Z28 PID1Z2Hbits.Z28 // bit 0, shadows bit in PID1Z2Hbits
16236 #define PID1Z29 PID1Z2Hbits.PID1Z29 // bit 1, shadows bit in PID1Z2Hbits
16237 #define Z29 PID1Z2Hbits.Z29 // bit 1, shadows bit in PID1Z2Hbits
16238 #define PID1Z210 PID1Z2Hbits.PID1Z210 // bit 2, shadows bit in PID1Z2Hbits
16239 #define Z210 PID1Z2Hbits.Z210 // bit 2, shadows bit in PID1Z2Hbits
16240 #define PID1Z211 PID1Z2Hbits.PID1Z211 // bit 3, shadows bit in PID1Z2Hbits
16241 #define Z211 PID1Z2Hbits.Z211 // bit 3, shadows bit in PID1Z2Hbits
16242 #define PID1Z212 PID1Z2Hbits.PID1Z212 // bit 4, shadows bit in PID1Z2Hbits
16243 #define Z212 PID1Z2Hbits.Z212 // bit 4, shadows bit in PID1Z2Hbits
16244 #define PID1Z213 PID1Z2Hbits.PID1Z213 // bit 5, shadows bit in PID1Z2Hbits
16245 #define Z213 PID1Z2Hbits.Z213 // bit 5, shadows bit in PID1Z2Hbits
16246 #define PID1Z214 PID1Z2Hbits.PID1Z214 // bit 6, shadows bit in PID1Z2Hbits
16247 #define Z214 PID1Z2Hbits.Z214 // bit 6, shadows bit in PID1Z2Hbits
16248 #define PID1Z215 PID1Z2Hbits.PID1Z215 // bit 7, shadows bit in PID1Z2Hbits
16249 #define Z215 PID1Z2Hbits.Z215 // bit 7, shadows bit in PID1Z2Hbits
16251 #define PID1Z20 PID1Z2Lbits.PID1Z20 // bit 0, shadows bit in PID1Z2Lbits
16252 #define Z20 PID1Z2Lbits.Z20 // bit 0, shadows bit in PID1Z2Lbits
16253 #define PID1Z21 PID1Z2Lbits.PID1Z21 // bit 1, shadows bit in PID1Z2Lbits
16254 #define Z21 PID1Z2Lbits.Z21 // bit 1, shadows bit in PID1Z2Lbits
16255 #define PID1Z22 PID1Z2Lbits.PID1Z22 // bit 2, shadows bit in PID1Z2Lbits
16256 #define Z22 PID1Z2Lbits.Z22 // bit 2, shadows bit in PID1Z2Lbits
16257 #define PID1Z23 PID1Z2Lbits.PID1Z23 // bit 3, shadows bit in PID1Z2Lbits
16258 #define Z23 PID1Z2Lbits.Z23 // bit 3, shadows bit in PID1Z2Lbits
16259 #define PID1Z24 PID1Z2Lbits.PID1Z24 // bit 4, shadows bit in PID1Z2Lbits
16260 #define Z24 PID1Z2Lbits.Z24 // bit 4, shadows bit in PID1Z2Lbits
16261 #define PID1Z25 PID1Z2Lbits.PID1Z25 // bit 5, shadows bit in PID1Z2Lbits
16262 #define Z25 PID1Z2Lbits.Z25 // bit 5, shadows bit in PID1Z2Lbits
16263 #define PID1Z26 PID1Z2Lbits.PID1Z26 // bit 6, shadows bit in PID1Z2Lbits
16264 #define Z26 PID1Z2Lbits.Z26 // bit 6, shadows bit in PID1Z2Lbits
16265 #define PID1Z27 PID1Z2Lbits.PID1Z27 // bit 7, shadows bit in PID1Z2Lbits
16266 #define Z27 PID1Z2Lbits.Z27 // bit 7, shadows bit in PID1Z2Lbits
16268 #define PID1Z216 PID1Z2Ubits.PID1Z216 // bit 0, shadows bit in PID1Z2Ubits
16269 #define Z216 PID1Z2Ubits.Z216 // bit 0, shadows bit in PID1Z2Ubits
16271 #define TMR1IE PIE1bits.TMR1IE // bit 0
16272 #define TMR2IE PIE1bits.TMR2IE // bit 1
16273 #define CCP1IE PIE1bits.CCP1IE // bit 2
16274 #define SSP1IE PIE1bits.SSP1IE // bit 3
16275 #define TXIE PIE1bits.TXIE // bit 4
16276 #define RCIE PIE1bits.RCIE // bit 5
16277 #define ADIE PIE1bits.ADIE // bit 6
16278 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
16280 #define CCP2IE PIE2bits.CCP2IE // bit 0
16281 #define TMR4IE PIE2bits.TMR4IE // bit 1
16282 #define TMR6IE PIE2bits.TMR6IE // bit 2
16283 #define BCL1IE PIE2bits.BCL1IE // bit 3
16284 #define C1IE PIE2bits.C1IE // bit 5
16285 #define C2IE PIE2bits.C2IE // bit 6
16287 #define CLC1IE PIE3bits.CLC1IE // bit 0
16288 #define CLC2IE PIE3bits.CLC2IE // bit 1
16289 #define ZCDIE PIE3bits.ZCDIE // bit 4
16290 #define CWGIE PIE3bits.CWGIE // bit 5
16292 #define SMT1IE PIE4bits.SMT1IE // bit 0
16293 #define SMT1PRAIE PIE4bits.SMT1PRAIE // bit 1
16294 #define SMT1PWAIE PIE4bits.SMT1PWAIE // bit 2
16295 #define SMT2IE PIE4bits.SMT2IE // bit 3
16296 #define SMT2PRAIE PIE4bits.SMT2PRAIE // bit 4
16297 #define SMT2PWAIE PIE4bits.SMT2PWAIE // bit 5
16298 #define CRCIE PIE4bits.CRCIE // bit 6
16299 #define SCANIE PIE4bits.SCANIE // bit 7
16301 #define PID1DIE PIE5bits.PID1DIE // bit 0
16302 #define PID1EIE PIE5bits.PID1EIE // bit 1
16303 #define AT1IE PIE5bits.AT1IE // bit 2
16304 #define TMR5IE PIE5bits.TMR5IE // bit 4
16305 #define TMR5GIE PIE5bits.TMR5GIE // bit 5
16306 #define TMR3IE PIE5bits.TMR3IE // bit 6
16307 #define TMR3GIE PIE5bits.TMR3GIE // bit 7
16309 #define TMR1IF PIR1bits.TMR1IF // bit 0
16310 #define TMR2IF PIR1bits.TMR2IF // bit 1
16311 #define CCP1IF PIR1bits.CCP1IF // bit 2
16312 #define SSP1IF PIR1bits.SSP1IF // bit 3
16313 #define TXIF PIR1bits.TXIF // bit 4
16314 #define RCIF PIR1bits.RCIF // bit 5
16315 #define ADIF PIR1bits.ADIF // bit 6
16316 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
16318 #define CCP2IF PIR2bits.CCP2IF // bit 0
16319 #define TMR4IF PIR2bits.TMR4IF // bit 1
16320 #define TMR6IF PIR2bits.TMR6IF // bit 2
16321 #define BCL1IF PIR2bits.BCL1IF // bit 3
16322 #define C1IF PIR2bits.C1IF // bit 5
16323 #define C2IF PIR2bits.C2IF // bit 6
16325 #define CLC1IF PIR3bits.CLC1IF // bit 0
16326 #define CLC2IF PIR3bits.CLC2IF // bit 1
16327 #define ZCDIF PIR3bits.ZCDIF // bit 4
16328 #define CWGIF PIR3bits.CWGIF // bit 5
16330 #define SMT1IF PIR4bits.SMT1IF // bit 0
16331 #define SMT1PRAIF PIR4bits.SMT1PRAIF // bit 1
16332 #define SMT1PWAIF PIR4bits.SMT1PWAIF // bit 2
16333 #define SMT2IF PIR4bits.SMT2IF // bit 3
16334 #define SMT2PRAIF PIR4bits.SMT2PRAIF // bit 4
16335 #define SMT2PWAIF PIR4bits.SMT2PWAIF // bit 5
16336 #define CRCIF PIR4bits.CRCIF // bit 6
16337 #define SCANIF PIR4bits.SCANIF // bit 7
16339 #define PID1DIF PIR5bits.PID1DIF // bit 0
16340 #define PID1EIF PIR5bits.PID1EIF // bit 1
16341 #define AT1IF PIR5bits.AT1IF // bit 2
16342 #define TMR5IF PIR5bits.TMR5IF // bit 4
16343 #define TMR5GIF PIR5bits.TMR5GIF // bit 5
16344 #define TMR3IF PIR5bits.TMR3IF // bit 6
16345 #define TMR3GIF PIR5bits.TMR3GIF // bit 7
16347 #define RD PMCON1bits.RD // bit 0
16348 #define WR PMCON1bits.WR // bit 1
16349 #define WREN PMCON1bits.WREN // bit 2
16350 #define WRERR PMCON1bits.WRERR // bit 3
16351 #define FREE PMCON1bits.FREE // bit 4
16352 #define LWLO PMCON1bits.LWLO // bit 5
16353 #define CFGS PMCON1bits.CFGS // bit 6
16355 #define RA0 PORTAbits.RA0 // bit 0
16356 #define RA1 PORTAbits.RA1 // bit 1
16357 #define RA2 PORTAbits.RA2 // bit 2
16358 #define RA3 PORTAbits.RA3 // bit 3
16359 #define RA4 PORTAbits.RA4 // bit 4
16360 #define RA5 PORTAbits.RA5 // bit 5
16362 #define RB4 PORTBbits.RB4 // bit 4
16363 #define RB5 PORTBbits.RB5 // bit 5
16364 #define RB6 PORTBbits.RB6 // bit 6
16365 #define RB7 PORTBbits.RB7 // bit 7
16367 #define RC0 PORTCbits.RC0 // bit 0
16368 #define RC1 PORTCbits.RC1 // bit 1
16369 #define RC2 PORTCbits.RC2 // bit 2
16370 #define RC3 PORTCbits.RC3 // bit 3
16371 #define RC4 PORTCbits.RC4 // bit 4
16372 #define RC5 PORTCbits.RC5 // bit 5
16373 #define RC6 PORTCbits.RC6 // bit 6
16374 #define RC7 PORTCbits.RC7 // bit 7
16376 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
16378 #define DC2 PWM3DCHbits.DC2 // bit 0, shadows bit in PWM3DCHbits
16379 #define PWM3DC2 PWM3DCHbits.PWM3DC2 // bit 0, shadows bit in PWM3DCHbits
16380 #define PWMPW2 PWM3DCHbits.PWMPW2 // bit 0, shadows bit in PWM3DCHbits
16381 #define DC3 PWM3DCHbits.DC3 // bit 1, shadows bit in PWM3DCHbits
16382 #define PWM3DC3 PWM3DCHbits.PWM3DC3 // bit 1, shadows bit in PWM3DCHbits
16383 #define PWMPW3 PWM3DCHbits.PWMPW3 // bit 1, shadows bit in PWM3DCHbits
16384 #define DC4 PWM3DCHbits.DC4 // bit 2, shadows bit in PWM3DCHbits
16385 #define PWM3DC4 PWM3DCHbits.PWM3DC4 // bit 2, shadows bit in PWM3DCHbits
16386 #define PWMPW4 PWM3DCHbits.PWMPW4 // bit 2, shadows bit in PWM3DCHbits
16387 #define DC5 PWM3DCHbits.DC5 // bit 3, shadows bit in PWM3DCHbits
16388 #define PWM3DC5 PWM3DCHbits.PWM3DC5 // bit 3, shadows bit in PWM3DCHbits
16389 #define PWMPW5 PWM3DCHbits.PWMPW5 // bit 3, shadows bit in PWM3DCHbits
16390 #define DC6 PWM3DCHbits.DC6 // bit 4, shadows bit in PWM3DCHbits
16391 #define PWM3DC6 PWM3DCHbits.PWM3DC6 // bit 4, shadows bit in PWM3DCHbits
16392 #define PWMPW6 PWM3DCHbits.PWMPW6 // bit 4, shadows bit in PWM3DCHbits
16393 #define DC7 PWM3DCHbits.DC7 // bit 5, shadows bit in PWM3DCHbits
16394 #define PWM3DC7 PWM3DCHbits.PWM3DC7 // bit 5, shadows bit in PWM3DCHbits
16395 #define PWMPW7 PWM3DCHbits.PWMPW7 // bit 5, shadows bit in PWM3DCHbits
16396 #define DC8 PWM3DCHbits.DC8 // bit 6, shadows bit in PWM3DCHbits
16397 #define PWM3DC8 PWM3DCHbits.PWM3DC8 // bit 6, shadows bit in PWM3DCHbits
16398 #define PWMPW8 PWM3DCHbits.PWMPW8 // bit 6, shadows bit in PWM3DCHbits
16399 #define DC9 PWM3DCHbits.DC9 // bit 7, shadows bit in PWM3DCHbits
16400 #define PWM3DC9 PWM3DCHbits.PWM3DC9 // bit 7, shadows bit in PWM3DCHbits
16401 #define PWMPW9 PWM3DCHbits.PWMPW9 // bit 7, shadows bit in PWM3DCHbits
16403 #define DC0 PWM3DCLbits.DC0 // bit 6, shadows bit in PWM3DCLbits
16404 #define PWM3DC0 PWM3DCLbits.PWM3DC0 // bit 6, shadows bit in PWM3DCLbits
16405 #define PWMPW0 PWM3DCLbits.PWMPW0 // bit 6, shadows bit in PWM3DCLbits
16406 #define DC1 PWM3DCLbits.DC1 // bit 7, shadows bit in PWM3DCLbits
16407 #define PWM3DC1 PWM3DCLbits.PWM3DC1 // bit 7, shadows bit in PWM3DCLbits
16408 #define PWMPW1 PWM3DCLbits.PWMPW1 // bit 7, shadows bit in PWM3DCLbits
16410 #define RA0PPS0 RA0PPSbits.RA0PPS0 // bit 0
16411 #define RA0PPS1 RA0PPSbits.RA0PPS1 // bit 1
16412 #define RA0PPS2 RA0PPSbits.RA0PPS2 // bit 2
16413 #define RA0PPS3 RA0PPSbits.RA0PPS3 // bit 3
16414 #define RA0PPS4 RA0PPSbits.RA0PPS4 // bit 4
16416 #define RA1PPS0 RA1PPSbits.RA1PPS0 // bit 0
16417 #define RA1PPS1 RA1PPSbits.RA1PPS1 // bit 1
16418 #define RA1PPS2 RA1PPSbits.RA1PPS2 // bit 2
16419 #define RA1PPS3 RA1PPSbits.RA1PPS3 // bit 3
16420 #define RA1PPS4 RA1PPSbits.RA1PPS4 // bit 4
16422 #define RA2PPS0 RA2PPSbits.RA2PPS0 // bit 0
16423 #define RA2PPS1 RA2PPSbits.RA2PPS1 // bit 1
16424 #define RA2PPS2 RA2PPSbits.RA2PPS2 // bit 2
16425 #define RA2PPS3 RA2PPSbits.RA2PPS3 // bit 3
16426 #define RA2PPS4 RA2PPSbits.RA2PPS4 // bit 4
16428 #define RA4PPS0 RA4PPSbits.RA4PPS0 // bit 0
16429 #define RA4PPS1 RA4PPSbits.RA4PPS1 // bit 1
16430 #define RA4PPS2 RA4PPSbits.RA4PPS2 // bit 2
16431 #define RA4PPS3 RA4PPSbits.RA4PPS3 // bit 3
16432 #define RA4PPS4 RA4PPSbits.RA4PPS4 // bit 4
16434 #define RA5PPS0 RA5PPSbits.RA5PPS0 // bit 0
16435 #define RA5PPS1 RA5PPSbits.RA5PPS1 // bit 1
16436 #define RA5PPS2 RA5PPSbits.RA5PPS2 // bit 2
16437 #define RA5PPS3 RA5PPSbits.RA5PPS3 // bit 3
16438 #define RA5PPS4 RA5PPSbits.RA5PPS4 // bit 4
16440 #define RB4PPS0 RB4PPSbits.RB4PPS0 // bit 0
16441 #define RB4PPS1 RB4PPSbits.RB4PPS1 // bit 1
16442 #define RB4PPS2 RB4PPSbits.RB4PPS2 // bit 2
16443 #define RB4PPS3 RB4PPSbits.RB4PPS3 // bit 3
16444 #define RB4PPS4 RB4PPSbits.RB4PPS4 // bit 4
16446 #define RB5PPS0 RB5PPSbits.RB5PPS0 // bit 0
16447 #define RB5PPS1 RB5PPSbits.RB5PPS1 // bit 1
16448 #define RB5PPS2 RB5PPSbits.RB5PPS2 // bit 2
16449 #define RB5PPS3 RB5PPSbits.RB5PPS3 // bit 3
16450 #define RB5PPS4 RB5PPSbits.RB5PPS4 // bit 4
16452 #define RB6PPS0 RB6PPSbits.RB6PPS0 // bit 0
16453 #define RB6PPS1 RB6PPSbits.RB6PPS1 // bit 1
16454 #define RB6PPS2 RB6PPSbits.RB6PPS2 // bit 2
16455 #define RB6PPS3 RB6PPSbits.RB6PPS3 // bit 3
16456 #define RB6PPS4 RB6PPSbits.RB6PPS4 // bit 4
16458 #define RB7PPS0 RB7PPSbits.RB7PPS0 // bit 0
16459 #define RB7PPS1 RB7PPSbits.RB7PPS1 // bit 1
16460 #define RB7PPS2 RB7PPSbits.RB7PPS2 // bit 2
16461 #define RB7PPS3 RB7PPSbits.RB7PPS3 // bit 3
16462 #define RB7PPS4 RB7PPSbits.RB7PPS4 // bit 4
16464 #define RC0PPS0 RC0PPSbits.RC0PPS0 // bit 0
16465 #define RC0PPS1 RC0PPSbits.RC0PPS1 // bit 1
16466 #define RC0PPS2 RC0PPSbits.RC0PPS2 // bit 2
16467 #define RC0PPS3 RC0PPSbits.RC0PPS3 // bit 3
16468 #define RC0PPS4 RC0PPSbits.RC0PPS4 // bit 4
16470 #define RC1PPS0 RC1PPSbits.RC1PPS0 // bit 0
16471 #define RC1PPS1 RC1PPSbits.RC1PPS1 // bit 1
16472 #define RC1PPS2 RC1PPSbits.RC1PPS2 // bit 2
16473 #define RC1PPS3 RC1PPSbits.RC1PPS3 // bit 3
16474 #define RC1PPS4 RC1PPSbits.RC1PPS4 // bit 4
16476 #define RX9D RC1STAbits.RX9D // bit 0
16477 #define OERR RC1STAbits.OERR // bit 1
16478 #define FERR RC1STAbits.FERR // bit 2
16479 #define ADDEN RC1STAbits.ADDEN // bit 3
16480 #define CREN RC1STAbits.CREN // bit 4
16481 #define SREN RC1STAbits.SREN // bit 5
16482 #define RX9 RC1STAbits.RX9 // bit 6
16483 #define SPEN RC1STAbits.SPEN // bit 7
16485 #define RC2PPS0 RC2PPSbits.RC2PPS0 // bit 0
16486 #define RC2PPS1 RC2PPSbits.RC2PPS1 // bit 1
16487 #define RC2PPS2 RC2PPSbits.RC2PPS2 // bit 2
16488 #define RC2PPS3 RC2PPSbits.RC2PPS3 // bit 3
16489 #define RC2PPS4 RC2PPSbits.RC2PPS4 // bit 4
16491 #define RC3PPS0 RC3PPSbits.RC3PPS0 // bit 0
16492 #define RC3PPS1 RC3PPSbits.RC3PPS1 // bit 1
16493 #define RC3PPS2 RC3PPSbits.RC3PPS2 // bit 2
16494 #define RC3PPS3 RC3PPSbits.RC3PPS3 // bit 3
16495 #define RC3PPS4 RC3PPSbits.RC3PPS4 // bit 4
16497 #define RC4PPS0 RC4PPSbits.RC4PPS0 // bit 0
16498 #define RC4PPS1 RC4PPSbits.RC4PPS1 // bit 1
16499 #define RC4PPS2 RC4PPSbits.RC4PPS2 // bit 2
16500 #define RC4PPS3 RC4PPSbits.RC4PPS3 // bit 3
16501 #define RC4PPS4 RC4PPSbits.RC4PPS4 // bit 4
16503 #define RC5PPS0 RC5PPSbits.RC5PPS0 // bit 0
16504 #define RC5PPS1 RC5PPSbits.RC5PPS1 // bit 1
16505 #define RC5PPS2 RC5PPSbits.RC5PPS2 // bit 2
16506 #define RC5PPS3 RC5PPSbits.RC5PPS3 // bit 3
16507 #define RC5PPS4 RC5PPSbits.RC5PPS4 // bit 4
16509 #define RC6PPS0 RC6PPSbits.RC6PPS0 // bit 0
16510 #define RC6PPS1 RC6PPSbits.RC6PPS1 // bit 1
16511 #define RC6PPS2 RC6PPSbits.RC6PPS2 // bit 2
16512 #define RC6PPS3 RC6PPSbits.RC6PPS3 // bit 3
16513 #define RC6PPS4 RC6PPSbits.RC6PPS4 // bit 4
16515 #define RC7PPS0 RC7PPSbits.RC7PPS0 // bit 0
16516 #define RC7PPS1 RC7PPSbits.RC7PPS1 // bit 1
16517 #define RC7PPS2 RC7PPSbits.RC7PPS2 // bit 2
16518 #define RC7PPS3 RC7PPSbits.RC7PPS3 // bit 3
16519 #define RC7PPS4 RC7PPSbits.RC7PPS4 // bit 4
16521 #define RXPPS0 RXPPSbits.RXPPS0 // bit 0
16522 #define RXPPS1 RXPPSbits.RXPPS1 // bit 1
16523 #define RXPPS2 RXPPSbits.RXPPS2 // bit 2
16524 #define RXPPS3 RXPPSbits.RXPPS3 // bit 3
16525 #define RXPPS4 RXPPSbits.RXPPS4 // bit 4
16527 #define HADR8 SCANHADRHbits.HADR8 // bit 0, shadows bit in SCANHADRHbits
16528 #define SCANHADR8 SCANHADRHbits.SCANHADR8 // bit 0, shadows bit in SCANHADRHbits
16529 #define HADR9 SCANHADRHbits.HADR9 // bit 1, shadows bit in SCANHADRHbits
16530 #define SCANHADR9 SCANHADRHbits.SCANHADR9 // bit 1, shadows bit in SCANHADRHbits
16531 #define HADR10 SCANHADRHbits.HADR10 // bit 2, shadows bit in SCANHADRHbits
16532 #define SCANHADR10 SCANHADRHbits.SCANHADR10 // bit 2, shadows bit in SCANHADRHbits
16533 #define HADR11 SCANHADRHbits.HADR11 // bit 3, shadows bit in SCANHADRHbits
16534 #define SCANHADR11 SCANHADRHbits.SCANHADR11 // bit 3, shadows bit in SCANHADRHbits
16535 #define HADR12 SCANHADRHbits.HADR12 // bit 4, shadows bit in SCANHADRHbits
16536 #define SCANHADR12 SCANHADRHbits.SCANHADR12 // bit 4, shadows bit in SCANHADRHbits
16537 #define HADR13 SCANHADRHbits.HADR13 // bit 5, shadows bit in SCANHADRHbits
16538 #define SCANHADR13 SCANHADRHbits.SCANHADR13 // bit 5, shadows bit in SCANHADRHbits
16539 #define HADR14 SCANHADRHbits.HADR14 // bit 6, shadows bit in SCANHADRHbits
16540 #define SCANHADR14 SCANHADRHbits.SCANHADR14 // bit 6, shadows bit in SCANHADRHbits
16541 #define HADR15 SCANHADRHbits.HADR15 // bit 7, shadows bit in SCANHADRHbits
16542 #define SCANHADR15 SCANHADRHbits.SCANHADR15 // bit 7, shadows bit in SCANHADRHbits
16544 #define HADR0 SCANHADRLbits.HADR0 // bit 0, shadows bit in SCANHADRLbits
16545 #define SCANHADR0 SCANHADRLbits.SCANHADR0 // bit 0, shadows bit in SCANHADRLbits
16546 #define HADR1 SCANHADRLbits.HADR1 // bit 1, shadows bit in SCANHADRLbits
16547 #define SCANHADR1 SCANHADRLbits.SCANHADR1 // bit 1, shadows bit in SCANHADRLbits
16548 #define HARD2 SCANHADRLbits.HARD2 // bit 2, shadows bit in SCANHADRLbits
16549 #define SCANHADR2 SCANHADRLbits.SCANHADR2 // bit 2, shadows bit in SCANHADRLbits
16550 #define HADR3 SCANHADRLbits.HADR3 // bit 3, shadows bit in SCANHADRLbits
16551 #define SCANHADR3 SCANHADRLbits.SCANHADR3 // bit 3, shadows bit in SCANHADRLbits
16552 #define HADR4 SCANHADRLbits.HADR4 // bit 4, shadows bit in SCANHADRLbits
16553 #define SCANHADR4 SCANHADRLbits.SCANHADR4 // bit 4, shadows bit in SCANHADRLbits
16554 #define HADR5 SCANHADRLbits.HADR5 // bit 5, shadows bit in SCANHADRLbits
16555 #define SCANHADR5 SCANHADRLbits.SCANHADR5 // bit 5, shadows bit in SCANHADRLbits
16556 #define HADR6 SCANHADRLbits.HADR6 // bit 6, shadows bit in SCANHADRLbits
16557 #define SCANHADR6 SCANHADRLbits.SCANHADR6 // bit 6, shadows bit in SCANHADRLbits
16558 #define HADR7 SCANHADRLbits.HADR7 // bit 7, shadows bit in SCANHADRLbits
16559 #define SCANHADR7 SCANHADRLbits.SCANHADR7 // bit 7, shadows bit in SCANHADRLbits
16561 #define LADR8 SCANLADRHbits.LADR8 // bit 0, shadows bit in SCANLADRHbits
16562 #define SCANLADR8 SCANLADRHbits.SCANLADR8 // bit 0, shadows bit in SCANLADRHbits
16563 #define LADR9 SCANLADRHbits.LADR9 // bit 1, shadows bit in SCANLADRHbits
16564 #define SCANLADR9 SCANLADRHbits.SCANLADR9 // bit 1, shadows bit in SCANLADRHbits
16565 #define LADR10 SCANLADRHbits.LADR10 // bit 2, shadows bit in SCANLADRHbits
16566 #define SCANLADR10 SCANLADRHbits.SCANLADR10 // bit 2, shadows bit in SCANLADRHbits
16567 #define LADR11 SCANLADRHbits.LADR11 // bit 3, shadows bit in SCANLADRHbits
16568 #define SCANLADR11 SCANLADRHbits.SCANLADR11 // bit 3, shadows bit in SCANLADRHbits
16569 #define LADR12 SCANLADRHbits.LADR12 // bit 4, shadows bit in SCANLADRHbits
16570 #define SCANLADR12 SCANLADRHbits.SCANLADR12 // bit 4, shadows bit in SCANLADRHbits
16571 #define LADR13 SCANLADRHbits.LADR13 // bit 5, shadows bit in SCANLADRHbits
16572 #define SCANLADR13 SCANLADRHbits.SCANLADR13 // bit 5, shadows bit in SCANLADRHbits
16573 #define LADR14 SCANLADRHbits.LADR14 // bit 6, shadows bit in SCANLADRHbits
16574 #define SCANLADR14 SCANLADRHbits.SCANLADR14 // bit 6, shadows bit in SCANLADRHbits
16575 #define LADR15 SCANLADRHbits.LADR15 // bit 7, shadows bit in SCANLADRHbits
16576 #define SCANLADR15 SCANLADRHbits.SCANLADR15 // bit 7, shadows bit in SCANLADRHbits
16578 #define LDAR0 SCANLADRLbits.LDAR0 // bit 0, shadows bit in SCANLADRLbits
16579 #define SCANLADR0 SCANLADRLbits.SCANLADR0 // bit 0, shadows bit in SCANLADRLbits
16580 #define LDAR1 SCANLADRLbits.LDAR1 // bit 1, shadows bit in SCANLADRLbits
16581 #define SCANLADR1 SCANLADRLbits.SCANLADR1 // bit 1, shadows bit in SCANLADRLbits
16582 #define LADR2 SCANLADRLbits.LADR2 // bit 2, shadows bit in SCANLADRLbits
16583 #define SCANLADR2 SCANLADRLbits.SCANLADR2 // bit 2, shadows bit in SCANLADRLbits
16584 #define LADR3 SCANLADRLbits.LADR3 // bit 3, shadows bit in SCANLADRLbits
16585 #define SCANLADR3 SCANLADRLbits.SCANLADR3 // bit 3, shadows bit in SCANLADRLbits
16586 #define LADR4 SCANLADRLbits.LADR4 // bit 4, shadows bit in SCANLADRLbits
16587 #define SCANLADR4 SCANLADRLbits.SCANLADR4 // bit 4, shadows bit in SCANLADRLbits
16588 #define LADR5 SCANLADRLbits.LADR5 // bit 5, shadows bit in SCANLADRLbits
16589 #define SCANLADR5 SCANLADRLbits.SCANLADR5 // bit 5, shadows bit in SCANLADRLbits
16590 #define LADR6 SCANLADRLbits.LADR6 // bit 6, shadows bit in SCANLADRLbits
16591 #define SCANLADR6 SCANLADRLbits.SCANLADR6 // bit 6, shadows bit in SCANLADRLbits
16592 #define LADR7 SCANLADRLbits.LADR7 // bit 7, shadows bit in SCANLADRLbits
16593 #define SCANLADR7 SCANLADRLbits.SCANLADR7 // bit 7, shadows bit in SCANLADRLbits
16595 #define TSEL0 SCANTRIGbits.TSEL0 // bit 0, shadows bit in SCANTRIGbits
16596 #define SCANTSEL0 SCANTRIGbits.SCANTSEL0 // bit 0, shadows bit in SCANTRIGbits
16597 #define TSEL1 SCANTRIGbits.TSEL1 // bit 1, shadows bit in SCANTRIGbits
16598 #define SCANTSEL1 SCANTRIGbits.SCANTSEL1 // bit 1, shadows bit in SCANTRIGbits
16599 #define TSEL2 SCANTRIGbits.TSEL2 // bit 2, shadows bit in SCANTRIGbits
16600 #define SCANTSEL2 SCANTRIGbits.SCANTSEL2 // bit 2, shadows bit in SCANTRIGbits
16601 #define TSEL3 SCANTRIGbits.TSEL3 // bit 3, shadows bit in SCANTRIGbits
16602 #define SCANTSEL3 SCANTRIGbits.SCANTSEL3 // bit 3, shadows bit in SCANTRIGbits
16604 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
16605 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
16606 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
16607 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
16608 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
16610 #define SLRB4 SLRCONBbits.SLRB4 // bit 4
16611 #define SLRB5 SLRCONBbits.SLRB5 // bit 5
16612 #define SLRB6 SLRCONBbits.SLRB6 // bit 6
16613 #define SLRB7 SLRCONBbits.SLRB7 // bit 7
16615 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
16616 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
16617 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
16618 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
16619 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
16620 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
16621 #define SLRC6 SLRCONCbits.SLRC6 // bit 6
16622 #define SLRC7 SLRCONCbits.SLRC7 // bit 7
16624 #define CSEL0 SMT1CLKbits.CSEL0 // bit 0, shadows bit in SMT1CLKbits
16625 #define SMT1CSEL0 SMT1CLKbits.SMT1CSEL0 // bit 0, shadows bit in SMT1CLKbits
16626 #define CSEL1 SMT1CLKbits.CSEL1 // bit 1, shadows bit in SMT1CLKbits
16627 #define SMT1CSEL1 SMT1CLKbits.SMT1CSEL1 // bit 1, shadows bit in SMT1CLKbits
16628 #define CSEL2 SMT1CLKbits.CSEL2 // bit 2, shadows bit in SMT1CLKbits
16629 #define SMT1CSEL2 SMT1CLKbits.SMT1CSEL2 // bit 2, shadows bit in SMT1CLKbits
16631 #define SMT1CPR8 SMT1CPRHbits.SMT1CPR8 // bit 0
16632 #define SMT1CPR9 SMT1CPRHbits.SMT1CPR9 // bit 1
16633 #define SMT1CPR10 SMT1CPRHbits.SMT1CPR10 // bit 2
16634 #define SMT1CPR11 SMT1CPRHbits.SMT1CPR11 // bit 3
16635 #define SMT1CPR12 SMT1CPRHbits.SMT1CPR12 // bit 4
16636 #define SMT1CPR13 SMT1CPRHbits.SMT1CPR13 // bit 5
16637 #define SMT1CPR14 SMT1CPRHbits.SMT1CPR14 // bit 6
16638 #define SMT1CPR15 SMT1CPRHbits.SMT1CPR15 // bit 7
16640 #define SMT1CPR0 SMT1CPRLbits.SMT1CPR0 // bit 0
16641 #define SMT1CPR1 SMT1CPRLbits.SMT1CPR1 // bit 1
16642 #define SMT1CPR2 SMT1CPRLbits.SMT1CPR2 // bit 2
16643 #define SMT1CPR3 SMT1CPRLbits.SMT1CPR3 // bit 3
16644 #define SMT1CPR4 SMT1CPRLbits.SMT1CPR4 // bit 4
16645 #define SMT1CPR5 SMT1CPRLbits.SMT1CPR5 // bit 5
16646 #define SMT1CPR6 SMT1CPRLbits.SMT1CPR6 // bit 6
16647 #define SMT1CPR7 SMT1CPRLbits.SMT1CPR7 // bit 7
16649 #define SMT1CPR16 SMT1CPRUbits.SMT1CPR16 // bit 0
16650 #define SMT1CPR17 SMT1CPRUbits.SMT1CPR17 // bit 1
16651 #define SMT1CPR18 SMT1CPRUbits.SMT1CPR18 // bit 2
16652 #define SMT1CPR19 SMT1CPRUbits.SMT1CPR19 // bit 3
16653 #define SMT1CPR20 SMT1CPRUbits.SMT1CPR20 // bit 4
16654 #define SMT1CPR21 SMT1CPRUbits.SMT1CPR21 // bit 5
16655 #define SMT1CPR22 SMT1CPRUbits.SMT1CPR22 // bit 6
16656 #define SMT1CPR23 SMT1CPRUbits.SMT1CPR23 // bit 7
16658 #define SMT1CPW8 SMT1CPWHbits.SMT1CPW8 // bit 0
16659 #define SMT1CPW9 SMT1CPWHbits.SMT1CPW9 // bit 1
16660 #define SMT1CPW10 SMT1CPWHbits.SMT1CPW10 // bit 2
16661 #define SMT1CPW11 SMT1CPWHbits.SMT1CPW11 // bit 3
16662 #define SMT1CPW12 SMT1CPWHbits.SMT1CPW12 // bit 4
16663 #define SMT1CPW13 SMT1CPWHbits.SMT1CPW13 // bit 5
16664 #define SMT1CPW14 SMT1CPWHbits.SMT1CPW14 // bit 6
16665 #define SMT1CPW15 SMT1CPWHbits.SMT1CPW15 // bit 7
16667 #define SMT1CPW0 SMT1CPWLbits.SMT1CPW0 // bit 0
16668 #define SMT1CPW1 SMT1CPWLbits.SMT1CPW1 // bit 1
16669 #define SMT1CPW2 SMT1CPWLbits.SMT1CPW2 // bit 2
16670 #define SMT1CPW3 SMT1CPWLbits.SMT1CPW3 // bit 3
16671 #define SMT1CPW4 SMT1CPWLbits.SMT1CPW4 // bit 4
16672 #define SMT1CPW5 SMT1CPWLbits.SMT1CPW5 // bit 5
16673 #define SMT1CPW6 SMT1CPWLbits.SMT1CPW6 // bit 6
16674 #define SMT1CPW7 SMT1CPWLbits.SMT1CPW7 // bit 7
16676 #define SMT1CPW16 SMT1CPWUbits.SMT1CPW16 // bit 0
16677 #define SMT1CPW17 SMT1CPWUbits.SMT1CPW17 // bit 1
16678 #define SMT1CPW18 SMT1CPWUbits.SMT1CPW18 // bit 2
16679 #define SMT1CPW19 SMT1CPWUbits.SMT1CPW19 // bit 3
16680 #define SMT1CPW20 SMT1CPWUbits.SMT1CPW20 // bit 4
16681 #define SMT1CPW21 SMT1CPWUbits.SMT1CPW21 // bit 5
16682 #define SMT1CPW22 SMT1CPWUbits.SMT1CPW22 // bit 6
16683 #define SMT1CPW23 SMT1CPWUbits.SMT1CPW23 // bit 7
16685 #define SMT1PR8 SMT1PRHbits.SMT1PR8 // bit 0
16686 #define SMT1PR9 SMT1PRHbits.SMT1PR9 // bit 1
16687 #define SMT1PR10 SMT1PRHbits.SMT1PR10 // bit 2
16688 #define SMT1PR11 SMT1PRHbits.SMT1PR11 // bit 3
16689 #define SMT1PR12 SMT1PRHbits.SMT1PR12 // bit 4
16690 #define SMT1PR13 SMT1PRHbits.SMT1PR13 // bit 5
16691 #define SMT1PR14 SMT1PRHbits.SMT1PR14 // bit 6
16692 #define SMT1PR15 SMT1PRHbits.SMT1PR15 // bit 7
16694 #define SMT1PR0 SMT1PRLbits.SMT1PR0 // bit 0
16695 #define SMT1PR1 SMT1PRLbits.SMT1PR1 // bit 1
16696 #define SMT1PR2 SMT1PRLbits.SMT1PR2 // bit 2
16697 #define SMT1PR3 SMT1PRLbits.SMT1PR3 // bit 3
16698 #define SMT1PR4 SMT1PRLbits.SMT1PR4 // bit 4
16699 #define SMT1PR5 SMT1PRLbits.SMT1PR5 // bit 5
16700 #define SMT1PR6 SMT1PRLbits.SMT1PR6 // bit 6
16701 #define SMT1PR7 SMT1PRLbits.SMT1PR7 // bit 7
16703 #define SMT1PR16 SMT1PRUbits.SMT1PR16 // bit 0
16704 #define SMT1PR17 SMT1PRUbits.SMT1PR17 // bit 1
16705 #define SMT1PR18 SMT1PRUbits.SMT1PR18 // bit 2
16706 #define SMT1PR19 SMT1PRUbits.SMT1PR19 // bit 3
16707 #define SMT1PR20 SMT1PRUbits.SMT1PR20 // bit 4
16708 #define SMT1PR21 SMT1PRUbits.SMT1PR21 // bit 5
16709 #define SMT1PR22 SMT1PRUbits.SMT1PR22 // bit 6
16710 #define SMT1PR23 SMT1PRUbits.SMT1PR23 // bit 7
16712 #define SMT1SIGPPS0 SMT1SIGPPSbits.SMT1SIGPPS0 // bit 0
16713 #define SMT1SIGPPS1 SMT1SIGPPSbits.SMT1SIGPPS1 // bit 1
16714 #define SMT1SIGPPS2 SMT1SIGPPSbits.SMT1SIGPPS2 // bit 2
16715 #define SMT1SIGPPS3 SMT1SIGPPSbits.SMT1SIGPPS3 // bit 3
16716 #define SMT1SIGPPS4 SMT1SIGPPSbits.SMT1SIGPPS4 // bit 4
16718 #define AS SMT1STATbits.AS // bit 0, shadows bit in SMT1STATbits
16719 #define SMT1AS SMT1STATbits.SMT1AS // bit 0, shadows bit in SMT1STATbits
16720 #define WS SMT1STATbits.WS // bit 1, shadows bit in SMT1STATbits
16721 #define SMT1WS SMT1STATbits.SMT1WS // bit 1, shadows bit in SMT1STATbits
16722 #define TS SMT1STATbits.TS // bit 2, shadows bit in SMT1STATbits
16723 #define SMT1TS SMT1STATbits.SMT1TS // bit 2, shadows bit in SMT1STATbits
16724 #define RST SMT1STATbits.RST // bit 5, shadows bit in SMT1STATbits
16725 #define SMT1RESET SMT1STATbits.SMT1RESET // bit 5, shadows bit in SMT1STATbits
16726 #define CPWUP SMT1STATbits.CPWUP // bit 6, shadows bit in SMT1STATbits
16727 #define SMT1CPWUP SMT1STATbits.SMT1CPWUP // bit 6, shadows bit in SMT1STATbits
16728 #define CPRUP SMT1STATbits.CPRUP // bit 7, shadows bit in SMT1STATbits
16729 #define SMT1CPRUP SMT1STATbits.SMT1CPRUP // bit 7, shadows bit in SMT1STATbits
16731 #define SMT1TMR8 SMT1TMRHbits.SMT1TMR8 // bit 0
16732 #define SMT1TMR9 SMT1TMRHbits.SMT1TMR9 // bit 1
16733 #define SMT1TMR10 SMT1TMRHbits.SMT1TMR10 // bit 2
16734 #define SMT1TMR11 SMT1TMRHbits.SMT1TMR11 // bit 3
16735 #define SMT1TMR12 SMT1TMRHbits.SMT1TMR12 // bit 4
16736 #define SMT1TMR13 SMT1TMRHbits.SMT1TMR13 // bit 5
16737 #define SMT1TMR14 SMT1TMRHbits.SMT1TMR14 // bit 6
16738 #define SMT1TMR15 SMT1TMRHbits.SMT1TMR15 // bit 7
16740 #define SMT1TMR0 SMT1TMRLbits.SMT1TMR0 // bit 0
16741 #define SMT1TMR1 SMT1TMRLbits.SMT1TMR1 // bit 1
16742 #define SMT1TMR2 SMT1TMRLbits.SMT1TMR2 // bit 2
16743 #define SMT1TMR3 SMT1TMRLbits.SMT1TMR3 // bit 3
16744 #define SMT1TMR4 SMT1TMRLbits.SMT1TMR4 // bit 4
16745 #define SMT1TMR5 SMT1TMRLbits.SMT1TMR5 // bit 5
16746 #define SMT1TMR6 SMT1TMRLbits.SMT1TMR6 // bit 6
16747 #define SMT1TMR7 SMT1TMRLbits.SMT1TMR7 // bit 7
16749 #define SMT1TMR16 SMT1TMRUbits.SMT1TMR16 // bit 0
16750 #define SMT1TMR17 SMT1TMRUbits.SMT1TMR17 // bit 1
16751 #define SMT1TMR18 SMT1TMRUbits.SMT1TMR18 // bit 2
16752 #define SMT1TMR19 SMT1TMRUbits.SMT1TMR19 // bit 3
16753 #define SMT1TMR20 SMT1TMRUbits.SMT1TMR20 // bit 4
16754 #define SMT1TMR21 SMT1TMRUbits.SMT1TMR21 // bit 5
16755 #define SMT1TMR22 SMT1TMRUbits.SMT1TMR22 // bit 6
16756 #define SMT1TMR23 SMT1TMRUbits.SMT1TMR23 // bit 7
16758 #define WSEL0 SMT1WINbits.WSEL0 // bit 0, shadows bit in SMT1WINbits
16759 #define SMT1WSEL0 SMT1WINbits.SMT1WSEL0 // bit 0, shadows bit in SMT1WINbits
16760 #define WSEL1 SMT1WINbits.WSEL1 // bit 1, shadows bit in SMT1WINbits
16761 #define SMT1WSEL1 SMT1WINbits.SMT1WSEL1 // bit 1, shadows bit in SMT1WINbits
16762 #define WSEL2 SMT1WINbits.WSEL2 // bit 2, shadows bit in SMT1WINbits
16763 #define SMT1WSEL2 SMT1WINbits.SMT1WSEL2 // bit 2, shadows bit in SMT1WINbits
16764 #define WSEL3 SMT1WINbits.WSEL3 // bit 3, shadows bit in SMT1WINbits
16765 #define SMT1WSEL3 SMT1WINbits.SMT1WSEL3 // bit 3, shadows bit in SMT1WINbits
16766 #define WSEL4 SMT1WINbits.WSEL4 // bit 4, shadows bit in SMT1WINbits
16767 #define SMT1WSEL4 SMT1WINbits.SMT1WSEL4 // bit 4, shadows bit in SMT1WINbits
16769 #define SMTWINPPS0 SMT1WINPPSbits.SMTWINPPS0 // bit 0
16770 #define SMTWINPPS1 SMT1WINPPSbits.SMTWINPPS1 // bit 1
16771 #define SMTWINPPS2 SMT1WINPPSbits.SMTWINPPS2 // bit 2
16772 #define SMTWINPPS3 SMT1WINPPSbits.SMTWINPPS3 // bit 3
16773 #define SMTWINPPS4 SMT1WINPPSbits.SMTWINPPS4 // bit 4
16775 #define SMT2CPR8 SMT2CPRHbits.SMT2CPR8 // bit 0
16776 #define SMT2CPR9 SMT2CPRHbits.SMT2CPR9 // bit 1
16777 #define SMT2CPR10 SMT2CPRHbits.SMT2CPR10 // bit 2
16778 #define SMT2CPR11 SMT2CPRHbits.SMT2CPR11 // bit 3
16779 #define SMT2CPR12 SMT2CPRHbits.SMT2CPR12 // bit 4
16780 #define SMT2CPR13 SMT2CPRHbits.SMT2CPR13 // bit 5
16781 #define SMT2CPR14 SMT2CPRHbits.SMT2CPR14 // bit 6
16782 #define SMT2CPR15 SMT2CPRHbits.SMT2CPR15 // bit 7
16784 #define SMT2CPR0 SMT2CPRLbits.SMT2CPR0 // bit 0
16785 #define SMT2CPR1 SMT2CPRLbits.SMT2CPR1 // bit 1
16786 #define SMT2CPR2 SMT2CPRLbits.SMT2CPR2 // bit 2
16787 #define SMT2CPR3 SMT2CPRLbits.SMT2CPR3 // bit 3
16788 #define SMT2CPR4 SMT2CPRLbits.SMT2CPR4 // bit 4
16789 #define SMT2CPR5 SMT2CPRLbits.SMT2CPR5 // bit 5
16790 #define SMT2CPR6 SMT2CPRLbits.SMT2CPR6 // bit 6
16791 #define SMT2CPR7 SMT2CPRLbits.SMT2CPR7 // bit 7
16793 #define SMT2CPR16 SMT2CPRUbits.SMT2CPR16 // bit 0
16794 #define SMT2CPR17 SMT2CPRUbits.SMT2CPR17 // bit 1
16795 #define SMT2CPR18 SMT2CPRUbits.SMT2CPR18 // bit 2
16796 #define SMT2CPR19 SMT2CPRUbits.SMT2CPR19 // bit 3
16797 #define SMT2CPR20 SMT2CPRUbits.SMT2CPR20 // bit 4
16798 #define SMT2CPR21 SMT2CPRUbits.SMT2CPR21 // bit 5
16799 #define SMT2CPR22 SMT2CPRUbits.SMT2CPR22 // bit 6
16800 #define SMT2CPR23 SMT2CPRUbits.SMT2CPR23 // bit 7
16802 #define SMT2CPW8 SMT2CPWHbits.SMT2CPW8 // bit 0
16803 #define SMT2CPW9 SMT2CPWHbits.SMT2CPW9 // bit 1
16804 #define SMT2CPW10 SMT2CPWHbits.SMT2CPW10 // bit 2
16805 #define SMT2CPW11 SMT2CPWHbits.SMT2CPW11 // bit 3
16806 #define SMT2CPW12 SMT2CPWHbits.SMT2CPW12 // bit 4
16807 #define SMT2CPW13 SMT2CPWHbits.SMT2CPW13 // bit 5
16808 #define SMT2CPW14 SMT2CPWHbits.SMT2CPW14 // bit 6
16809 #define SMT2CPW15 SMT2CPWHbits.SMT2CPW15 // bit 7
16811 #define SMT2CPW0 SMT2CPWLbits.SMT2CPW0 // bit 0
16812 #define SMT2CPW1 SMT2CPWLbits.SMT2CPW1 // bit 1
16813 #define SMT2CPW2 SMT2CPWLbits.SMT2CPW2 // bit 2
16814 #define SMT2CPW3 SMT2CPWLbits.SMT2CPW3 // bit 3
16815 #define SMT2CPW4 SMT2CPWLbits.SMT2CPW4 // bit 4
16816 #define SMT2CPW5 SMT2CPWLbits.SMT2CPW5 // bit 5
16817 #define SMT2CPW6 SMT2CPWLbits.SMT2CPW6 // bit 6
16818 #define SMT2CPW7 SMT2CPWLbits.SMT2CPW7 // bit 7
16820 #define SMT2CPW16 SMT2CPWUbits.SMT2CPW16 // bit 0
16821 #define SMT2CPW17 SMT2CPWUbits.SMT2CPW17 // bit 1
16822 #define SMT2CPW18 SMT2CPWUbits.SMT2CPW18 // bit 2
16823 #define SMT2CPW19 SMT2CPWUbits.SMT2CPW19 // bit 3
16824 #define SMT2CPW20 SMT2CPWUbits.SMT2CPW20 // bit 4
16825 #define SMT2CPW21 SMT2CPWUbits.SMT2CPW21 // bit 5
16826 #define SMT2CPW22 SMT2CPWUbits.SMT2CPW22 // bit 6
16827 #define SMT2CPW23 SMT2CPWUbits.SMT2CPW23 // bit 7
16829 #define SMT2PR8 SMT2PRHbits.SMT2PR8 // bit 0
16830 #define SMT2PR9 SMT2PRHbits.SMT2PR9 // bit 1
16831 #define SMT2PR10 SMT2PRHbits.SMT2PR10 // bit 2
16832 #define SMT2PR11 SMT2PRHbits.SMT2PR11 // bit 3
16833 #define SMT2PR12 SMT2PRHbits.SMT2PR12 // bit 4
16834 #define SMT2PR13 SMT2PRHbits.SMT2PR13 // bit 5
16835 #define SMT2PR14 SMT2PRHbits.SMT2PR14 // bit 6
16836 #define SMT2PR15 SMT2PRHbits.SMT2PR15 // bit 7
16838 #define SMT2PR0 SMT2PRLbits.SMT2PR0 // bit 0
16839 #define SMT2PR1 SMT2PRLbits.SMT2PR1 // bit 1
16840 #define SMT2PR2 SMT2PRLbits.SMT2PR2 // bit 2
16841 #define SMT2PR3 SMT2PRLbits.SMT2PR3 // bit 3
16842 #define SMT2PR4 SMT2PRLbits.SMT2PR4 // bit 4
16843 #define SMT2PR5 SMT2PRLbits.SMT2PR5 // bit 5
16844 #define SMT2PR6 SMT2PRLbits.SMT2PR6 // bit 6
16845 #define SMT2PR7 SMT2PRLbits.SMT2PR7 // bit 7
16847 #define SMT2PR16 SMT2PRUbits.SMT2PR16 // bit 0
16848 #define SMT2PR17 SMT2PRUbits.SMT2PR17 // bit 1
16849 #define SMT2PR18 SMT2PRUbits.SMT2PR18 // bit 2
16850 #define SMT2PR19 SMT2PRUbits.SMT2PR19 // bit 3
16851 #define SMT2PR20 SMT2PRUbits.SMT2PR20 // bit 4
16852 #define SMT2PR21 SMT2PRUbits.SMT2PR21 // bit 5
16853 #define SMT2PR22 SMT2PRUbits.SMT2PR22 // bit 6
16854 #define SMT2PR23 SMT2PRUbits.SMT2PR23 // bit 7
16856 #define SMT2SIGPPS0 SMT2SIGPPSbits.SMT2SIGPPS0 // bit 0
16857 #define SMT2SIGPPS1 SMT2SIGPPSbits.SMT2SIGPPS1 // bit 1
16858 #define SMT2SIGPPS2 SMT2SIGPPSbits.SMT2SIGPPS2 // bit 2
16859 #define SMT2SIGPPS3 SMT2SIGPPSbits.SMT2SIGPPS3 // bit 3
16860 #define SMT2SIGPPS4 SMT2SIGPPSbits.SMT2SIGPPS4 // bit 4
16862 #define SMT2TMR8 SMT2TMRHbits.SMT2TMR8 // bit 0
16863 #define SMT2TMR9 SMT2TMRHbits.SMT2TMR9 // bit 1
16864 #define SMT2TMR10 SMT2TMRHbits.SMT2TMR10 // bit 2
16865 #define SMT2TMR11 SMT2TMRHbits.SMT2TMR11 // bit 3
16866 #define SMT2TMR12 SMT2TMRHbits.SMT2TMR12 // bit 4
16867 #define SMT2TMR13 SMT2TMRHbits.SMT2TMR13 // bit 5
16868 #define SMT2TMR14 SMT2TMRHbits.SMT2TMR14 // bit 6
16869 #define SMT2TMR15 SMT2TMRHbits.SMT2TMR15 // bit 7
16871 #define SMT2TMR0 SMT2TMRLbits.SMT2TMR0 // bit 0
16872 #define SMT2TMR1 SMT2TMRLbits.SMT2TMR1 // bit 1
16873 #define SMT2TMR2 SMT2TMRLbits.SMT2TMR2 // bit 2
16874 #define SMT2TMR3 SMT2TMRLbits.SMT2TMR3 // bit 3
16875 #define SMT2TMR4 SMT2TMRLbits.SMT2TMR4 // bit 4
16876 #define SMT2TMR5 SMT2TMRLbits.SMT2TMR5 // bit 5
16877 #define SMT2TMR6 SMT2TMRLbits.SMT2TMR6 // bit 6
16878 #define SMT2TMR7 SMT2TMRLbits.SMT2TMR7 // bit 7
16880 #define SMT2TMR16 SMT2TMRUbits.SMT2TMR16 // bit 0
16881 #define SMT2TMR17 SMT2TMRUbits.SMT2TMR17 // bit 1
16882 #define SMT2TMR18 SMT2TMRUbits.SMT2TMR18 // bit 2
16883 #define SMT2TMR19 SMT2TMRUbits.SMT2TMR19 // bit 3
16884 #define SMT2TMR20 SMT2TMRUbits.SMT2TMR20 // bit 4
16885 #define SMT2TMR21 SMT2TMRUbits.SMT2TMR21 // bit 5
16886 #define SMT2TMR22 SMT2TMRUbits.SMT2TMR22 // bit 6
16887 #define SMT2TMR23 SMT2TMRUbits.SMT2TMR23 // bit 7
16889 #define SMT2WINPPS0 SMT2WINPPSbits.SMT2WINPPS0 // bit 0
16890 #define SMT2WINPPS1 SMT2WINPPSbits.SMT2WINPPS1 // bit 1
16891 #define SMT2WINPPS2 SMT2WINPPSbits.SMT2WINPPS2 // bit 2
16892 #define SMT2WINPPS3 SMT2WINPPSbits.SMT2WINPPS3 // bit 3
16893 #define SMT2WINPPS4 SMT2WINPPSbits.SMT2WINPPS4 // bit 4
16895 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
16896 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
16897 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
16898 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
16899 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
16900 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
16901 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
16902 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
16903 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
16904 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
16905 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
16906 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
16907 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
16908 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
16909 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
16910 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
16912 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
16913 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
16914 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
16915 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
16916 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
16917 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
16918 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
16919 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
16920 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
16921 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
16922 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
16923 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
16924 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
16925 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
16926 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
16927 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
16929 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
16930 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
16931 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
16932 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
16933 #define CKP SSP1CONbits.CKP // bit 4
16934 #define SSPEN SSP1CONbits.SSPEN // bit 5
16935 #define SSPOV SSP1CONbits.SSPOV // bit 6
16936 #define WCOL SSP1CONbits.WCOL // bit 7
16938 #define SEN SSP1CON2bits.SEN // bit 0
16939 #define RSEN SSP1CON2bits.RSEN // bit 1
16940 #define PEN SSP1CON2bits.PEN // bit 2
16941 #define RCEN SSP1CON2bits.RCEN // bit 3
16942 #define ACKEN SSP1CON2bits.ACKEN // bit 4
16943 #define ACKDT SSP1CON2bits.ACKDT // bit 5
16944 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
16945 #define GCEN SSP1CON2bits.GCEN // bit 7
16947 #define DHEN SSP1CON3bits.DHEN // bit 0
16948 #define AHEN SSP1CON3bits.AHEN // bit 1
16949 #define SBCDE SSP1CON3bits.SBCDE // bit 2
16950 #define SDAHT SSP1CON3bits.SDAHT // bit 3
16951 #define BOEN SSP1CON3bits.BOEN // bit 4
16952 #define SCIE SSP1CON3bits.SCIE // bit 5
16953 #define PCIE SSP1CON3bits.PCIE // bit 6
16954 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
16956 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
16957 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
16958 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
16959 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
16960 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
16961 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
16962 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
16963 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
16964 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
16965 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
16966 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
16967 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
16968 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
16969 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
16970 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
16971 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
16973 #define BF SSP1STATbits.BF // bit 0
16974 #define UA SSP1STATbits.UA // bit 1
16975 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
16976 #define S SSP1STATbits.S // bit 3
16977 #define P SSP1STATbits.P // bit 4
16978 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
16979 #define CKE SSP1STATbits.CKE // bit 6
16980 #define SMP SSP1STATbits.SMP // bit 7
16982 #define SSPCLKPPS0 SSPCLKPPSbits.SSPCLKPPS0 // bit 0
16983 #define SSPCLKPPS1 SSPCLKPPSbits.SSPCLKPPS1 // bit 1
16984 #define SSPCLKPPS2 SSPCLKPPSbits.SSPCLKPPS2 // bit 2
16985 #define SSPCLKPPS3 SSPCLKPPSbits.SSPCLKPPS3 // bit 3
16986 #define SSPCLKPPS4 SSPCLKPPSbits.SSPCLKPPS4 // bit 4
16988 #define SSPDATPPS0 SSPDATPPSbits.SSPDATPPS0 // bit 0
16989 #define SSPDATPPS1 SSPDATPPSbits.SSPDATPPS1 // bit 1
16990 #define SSPDATPPS2 SSPDATPPSbits.SSPDATPPS2 // bit 2
16991 #define SSPDATPPS3 SSPDATPPSbits.SSPDATPPS3 // bit 3
16992 #define SSPDATPPS4 SSPDATPPSbits.SSPDATPPS4 // bit 4
16994 #define SSPSSPPS0 SSPSSPPSbits.SSPSSPPS0 // bit 0
16995 #define SSPSSPPS1 SSPSSPPSbits.SSPSSPPS1 // bit 1
16996 #define SSPSSPPS2 SSPSSPPSbits.SSPSSPPS2 // bit 2
16997 #define SSPSSPPS3 SSPSSPPSbits.SSPSSPPS3 // bit 3
16998 #define SSPSSPPS4 SSPSSPPSbits.SSPSSPPS4 // bit 4
17000 #define C STATUSbits.C // bit 0
17001 #define DC STATUSbits.DC // bit 1
17002 #define Z STATUSbits.Z // bit 2
17003 #define NOT_PD STATUSbits.NOT_PD // bit 3
17004 #define NOT_TO STATUSbits.NOT_TO // bit 4
17006 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
17007 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
17008 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
17010 #define T0CKIPPS0 T0CKIPPSbits.T0CKIPPS0 // bit 0
17011 #define T0CKIPPS1 T0CKIPPSbits.T0CKIPPS1 // bit 1
17012 #define T0CKIPPS2 T0CKIPPSbits.T0CKIPPS2 // bit 2
17013 #define T0CKIPPS3 T0CKIPPSbits.T0CKIPPS3 // bit 3
17014 #define T0CKIPPS4 T0CKIPPSbits.T0CKIPPS4 // bit 4
17016 #define T1CKIPPS0 T1CKIPPSbits.T1CKIPPS0 // bit 0
17017 #define T1CKIPPS1 T1CKIPPSbits.T1CKIPPS1 // bit 1
17018 #define T1CKIPPS2 T1CKIPPSbits.T1CKIPPS2 // bit 2
17019 #define T1CKIPPS3 T1CKIPPSbits.T1CKIPPS3 // bit 3
17020 #define T1CKIPPS4 T1CKIPPSbits.T1CKIPPS4 // bit 4
17022 #define TMR1ON T1CONbits.TMR1ON // bit 0
17023 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
17024 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
17025 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
17026 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
17027 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
17029 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
17030 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
17031 #define T1GVAL T1GCONbits.T1GVAL // bit 2
17032 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
17033 #define T1GSPM T1GCONbits.T1GSPM // bit 4
17034 #define T1GTM T1GCONbits.T1GTM // bit 5
17035 #define T1GPOL T1GCONbits.T1GPOL // bit 6
17036 #define TMR1GE T1GCONbits.TMR1GE // bit 7
17038 #define T1GPPS0 T1GPPSbits.T1GPPS0 // bit 0
17039 #define T1GPPS1 T1GPPSbits.T1GPPS1 // bit 1
17040 #define T1GPPS2 T1GPPSbits.T1GPPS2 // bit 2
17041 #define T1GPPS3 T1GPPSbits.T1GPPS3 // bit 3
17042 #define T1GPPS4 T1GPPSbits.T1GPPS4 // bit 4
17044 #define OUTPS0 T2CONbits.OUTPS0 // bit 0, shadows bit in T2CONbits
17045 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 0, shadows bit in T2CONbits
17046 #define OUTPS1 T2CONbits.OUTPS1 // bit 1, shadows bit in T2CONbits
17047 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 1, shadows bit in T2CONbits
17048 #define OUTPS2 T2CONbits.OUTPS2 // bit 2, shadows bit in T2CONbits
17049 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 2, shadows bit in T2CONbits
17050 #define OUTPS3 T2CONbits.OUTPS3 // bit 3, shadows bit in T2CONbits
17051 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 3, shadows bit in T2CONbits
17052 #define CKPS0 T2CONbits.CKPS0 // bit 4, shadows bit in T2CONbits
17053 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 4, shadows bit in T2CONbits
17054 #define CKPS1 T2CONbits.CKPS1 // bit 5, shadows bit in T2CONbits
17055 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 5, shadows bit in T2CONbits
17056 #define CKPS2 T2CONbits.CKPS2 // bit 6, shadows bit in T2CONbits
17057 #define T2CKPS2 T2CONbits.T2CKPS2 // bit 6, shadows bit in T2CONbits
17058 #define ON T2CONbits.ON // bit 7, shadows bit in T2CONbits
17059 #define T2ON T2CONbits.T2ON // bit 7, shadows bit in T2CONbits
17060 #define TMR2ON T2CONbits.TMR2ON // bit 7, shadows bit in T2CONbits
17062 #define T2PPS0 T2PPSbits.T2PPS0 // bit 0
17063 #define T2PPS1 T2PPSbits.T2PPS1 // bit 1
17064 #define T2PPS2 T2PPSbits.T2PPS2 // bit 2
17065 #define T2PPS3 T2PPSbits.T2PPS3 // bit 3
17066 #define T2PPS4 T2PPSbits.T2PPS4 // bit 4
17068 #define RSEL0 T2RSTbits.RSEL0 // bit 0, shadows bit in T2RSTbits
17069 #define T2RSEL0 T2RSTbits.T2RSEL0 // bit 0, shadows bit in T2RSTbits
17070 #define RSEL1 T2RSTbits.RSEL1 // bit 1, shadows bit in T2RSTbits
17071 #define T2RSEL1 T2RSTbits.T2RSEL1 // bit 1, shadows bit in T2RSTbits
17072 #define RSEL2 T2RSTbits.RSEL2 // bit 2, shadows bit in T2RSTbits
17073 #define T2RSEL2 T2RSTbits.T2RSEL2 // bit 2, shadows bit in T2RSTbits
17074 #define RSEL3 T2RSTbits.RSEL3 // bit 3, shadows bit in T2RSTbits
17075 #define T2RSEL3 T2RSTbits.T2RSEL3 // bit 3, shadows bit in T2RSTbits
17077 #define T3CKIPPS0 T3CKIPPSbits.T3CKIPPS0 // bit 0
17078 #define T3CKIPPS1 T3CKIPPSbits.T3CKIPPS1 // bit 1
17079 #define T3CKIPPS2 T3CKIPPSbits.T3CKIPPS2 // bit 2
17080 #define T3CKIPPS3 T3CKIPPSbits.T3CKIPPS3 // bit 3
17081 #define T3CKIPPS4 T3CKIPPSbits.T3CKIPPS4 // bit 4
17083 #define TMR3ON T3CONbits.TMR3ON // bit 0
17084 #define T3SYNC T3CONbits.T3SYNC // bit 2
17085 #define T3CKPS0 T3CONbits.T3CKPS0 // bit 4
17086 #define T3CKPS1 T3CONbits.T3CKPS1 // bit 5
17087 #define TMR3CS0 T3CONbits.TMR3CS0 // bit 6
17088 #define TMR3CS1 T3CONbits.TMR3CS1 // bit 7
17090 #define T3GSS0 T3GCONbits.T3GSS0 // bit 0
17091 #define T3GSS1 T3GCONbits.T3GSS1 // bit 1
17092 #define T3GVAL T3GCONbits.T3GVAL // bit 2
17093 #define T3GGO_NOT_DONE T3GCONbits.T3GGO_NOT_DONE // bit 3
17094 #define T3GSPM T3GCONbits.T3GSPM // bit 4
17095 #define T3GTM T3GCONbits.T3GTM // bit 5
17096 #define T3GPOL T3GCONbits.T3GPOL // bit 6
17097 #define TMR3GE T3GCONbits.TMR3GE // bit 7
17099 #define T3GPPS0 T3GPPSbits.T3GPPS0 // bit 0
17100 #define T3GPPS1 T3GPPSbits.T3GPPS1 // bit 1
17101 #define T3GPPS2 T3GPPSbits.T3GPPS2 // bit 2
17102 #define T3GPPS3 T3GPPSbits.T3GPPS3 // bit 3
17103 #define T3GPPS4 T3GPPSbits.T3GPPS4 // bit 4
17105 #define T4PPS0 T4PPSbits.T4PPS0 // bit 0
17106 #define T4PPS1 T4PPSbits.T4PPS1 // bit 1
17107 #define T4PPS2 T4PPSbits.T4PPS2 // bit 2
17108 #define T4PPS3 T4PPSbits.T4PPS3 // bit 3
17109 #define T4PPS4 T4PPSbits.T4PPS4 // bit 4
17111 #define T5CKIPPS0 T5CKIPPSbits.T5CKIPPS0 // bit 0
17112 #define T5CKIPPS1 T5CKIPPSbits.T5CKIPPS1 // bit 1
17113 #define T5CKIPPS2 T5CKIPPSbits.T5CKIPPS2 // bit 2
17114 #define T5CKIPPS3 T5CKIPPSbits.T5CKIPPS3 // bit 3
17115 #define T5CKIPPS4 T5CKIPPSbits.T5CKIPPS4 // bit 4
17117 #define TMR5ON T5CONbits.TMR5ON // bit 0
17118 #define T5SYNC T5CONbits.T5SYNC // bit 2
17119 #define T5CKPS0 T5CONbits.T5CKPS0 // bit 4
17120 #define T5CKPS1 T5CONbits.T5CKPS1 // bit 5
17121 #define TMR5CS0 T5CONbits.TMR5CS0 // bit 6
17122 #define TMR5CS1 T5CONbits.TMR5CS1 // bit 7
17124 #define T5GSS0 T5GCONbits.T5GSS0 // bit 0
17125 #define T5GSS1 T5GCONbits.T5GSS1 // bit 1
17126 #define T5GVAL T5GCONbits.T5GVAL // bit 2
17127 #define T5GGO_NOT_DONE T5GCONbits.T5GGO_NOT_DONE // bit 3
17128 #define T5GSPM T5GCONbits.T5GSPM // bit 4
17129 #define T5GTM T5GCONbits.T5GTM // bit 5
17130 #define T5GPOL T5GCONbits.T5GPOL // bit 6
17131 #define TMR5GE T5GCONbits.TMR5GE // bit 7
17133 #define T5GPPS0 T5GPPSbits.T5GPPS0 // bit 0
17134 #define T5GPPS1 T5GPPSbits.T5GPPS1 // bit 1
17135 #define T5GPPS2 T5GPPSbits.T5GPPS2 // bit 2
17136 #define T5GPPS3 T5GPPSbits.T5GPPS3 // bit 3
17137 #define T5GPPS4 T5GPPSbits.T5GPPS4 // bit 4
17139 #define T6PPS0 T6PPSbits.T6PPS0 // bit 0
17140 #define T6PPS1 T6PPSbits.T6PPS1 // bit 1
17141 #define T6PPS2 T6PPSbits.T6PPS2 // bit 2
17142 #define T6PPS3 T6PPSbits.T6PPS3 // bit 3
17143 #define T6PPS4 T6PPSbits.T6PPS4 // bit 4
17145 #define TRISA0 TRISAbits.TRISA0 // bit 0
17146 #define TRISA1 TRISAbits.TRISA1 // bit 1
17147 #define TRISA2 TRISAbits.TRISA2 // bit 2
17148 #define TRISA3 TRISAbits.TRISA3 // bit 3
17149 #define TRISA4 TRISAbits.TRISA4 // bit 4
17150 #define TRISA5 TRISAbits.TRISA5 // bit 5
17152 #define TRISB4 TRISBbits.TRISB4 // bit 4
17153 #define TRISB5 TRISBbits.TRISB5 // bit 5
17154 #define TRISB6 TRISBbits.TRISB6 // bit 6
17155 #define TRISB7 TRISBbits.TRISB7 // bit 7
17157 #define TRISC0 TRISCbits.TRISC0 // bit 0
17158 #define TRISC1 TRISCbits.TRISC1 // bit 1
17159 #define TRISC2 TRISCbits.TRISC2 // bit 2
17160 #define TRISC3 TRISCbits.TRISC3 // bit 3
17161 #define TRISC4 TRISCbits.TRISC4 // bit 4
17162 #define TRISC5 TRISCbits.TRISC5 // bit 5
17163 #define TRISC6 TRISCbits.TRISC6 // bit 6
17164 #define TRISC7 TRISCbits.TRISC7 // bit 7
17166 #define TX9D TX1STAbits.TX9D // bit 0
17167 #define TRMT TX1STAbits.TRMT // bit 1
17168 #define BRGH TX1STAbits.BRGH // bit 2
17169 #define SENDB TX1STAbits.SENDB // bit 3
17170 #define SYNC TX1STAbits.SYNC // bit 4
17171 #define TXEN TX1STAbits.TXEN // bit 5
17172 #define TX9 TX1STAbits.TX9 // bit 6
17173 #define CSRC TX1STAbits.CSRC // bit 7
17175 #define VREGPM0 VREGCONbits.VREGPM0 // bit 0
17176 #define VREGPM1 VREGCONbits.VREGPM1 // bit 1
17178 #define WINDOW0 WDTCON1bits.WINDOW0 // bit 0, shadows bit in WDTCON1bits
17179 #define WDTWINDOW0 WDTCON1bits.WDTWINDOW0 // bit 0, shadows bit in WDTCON1bits
17180 #define WINDOW1 WDTCON1bits.WINDOW1 // bit 1, shadows bit in WDTCON1bits
17181 #define WDTWINDOW1 WDTCON1bits.WDTWINDOW1 // bit 1, shadows bit in WDTCON1bits
17182 #define WINDOW2 WDTCON1bits.WINDOW2 // bit 2, shadows bit in WDTCON1bits
17183 #define WDTWINDOW2 WDTCON1bits.WDTWINDOW2 // bit 2, shadows bit in WDTCON1bits
17184 #define WDTCS0 WDTCON1bits.WDTCS0 // bit 4
17185 #define WDTCS1 WDTCON1bits.WDTCS1 // bit 5
17186 #define WDTCS2 WDTCON1bits.WDTCS2 // bit 6
17188 #define PSCNT8 WDTPSHbits.PSCNT8 // bit 0, shadows bit in WDTPSHbits
17189 #define WDTPSCNT8 WDTPSHbits.WDTPSCNT8 // bit 0, shadows bit in WDTPSHbits
17190 #define PSCNT9 WDTPSHbits.PSCNT9 // bit 1, shadows bit in WDTPSHbits
17191 #define WDTPSCNT9 WDTPSHbits.WDTPSCNT9 // bit 1, shadows bit in WDTPSHbits
17192 #define PSCNT10 WDTPSHbits.PSCNT10 // bit 2, shadows bit in WDTPSHbits
17193 #define WDTPSCNT10 WDTPSHbits.WDTPSCNT10 // bit 2, shadows bit in WDTPSHbits
17194 #define PSCNT11 WDTPSHbits.PSCNT11 // bit 3, shadows bit in WDTPSHbits
17195 #define WDTPSCNT11 WDTPSHbits.WDTPSCNT11 // bit 3, shadows bit in WDTPSHbits
17196 #define PSCNT12 WDTPSHbits.PSCNT12 // bit 4, shadows bit in WDTPSHbits
17197 #define WDTPSCNT12 WDTPSHbits.WDTPSCNT12 // bit 4, shadows bit in WDTPSHbits
17198 #define PSCNT13 WDTPSHbits.PSCNT13 // bit 5, shadows bit in WDTPSHbits
17199 #define WDTPSCNT13 WDTPSHbits.WDTPSCNT13 // bit 5, shadows bit in WDTPSHbits
17200 #define PSCNT14 WDTPSHbits.PSCNT14 // bit 6, shadows bit in WDTPSHbits
17201 #define WDTPSCNT14 WDTPSHbits.WDTPSCNT14 // bit 6, shadows bit in WDTPSHbits
17202 #define PSCNT15 WDTPSHbits.PSCNT15 // bit 7, shadows bit in WDTPSHbits
17203 #define WDTPSCNT15 WDTPSHbits.WDTPSCNT15 // bit 7, shadows bit in WDTPSHbits
17205 #define PSCNT0 WDTPSLbits.PSCNT0 // bit 0, shadows bit in WDTPSLbits
17206 #define WDTPSCNT0 WDTPSLbits.WDTPSCNT0 // bit 0, shadows bit in WDTPSLbits
17207 #define PSCNT1 WDTPSLbits.PSCNT1 // bit 1, shadows bit in WDTPSLbits
17208 #define WDTPSCNT1 WDTPSLbits.WDTPSCNT1 // bit 1, shadows bit in WDTPSLbits
17209 #define PSCNT2 WDTPSLbits.PSCNT2 // bit 2, shadows bit in WDTPSLbits
17210 #define WDTPSCNT2 WDTPSLbits.WDTPSCNT2 // bit 2, shadows bit in WDTPSLbits
17211 #define PSCNT3 WDTPSLbits.PSCNT3 // bit 3, shadows bit in WDTPSLbits
17212 #define WDTPSCNT3 WDTPSLbits.WDTPSCNT3 // bit 3, shadows bit in WDTPSLbits
17213 #define PSCNT4 WDTPSLbits.PSCNT4 // bit 4, shadows bit in WDTPSLbits
17214 #define WDTPSCNT4 WDTPSLbits.WDTPSCNT4 // bit 4, shadows bit in WDTPSLbits
17215 #define PSCNT5 WDTPSLbits.PSCNT5 // bit 5, shadows bit in WDTPSLbits
17216 #define WDTPSCNT5 WDTPSLbits.WDTPSCNT5 // bit 5, shadows bit in WDTPSLbits
17217 #define PSCNT6 WDTPSLbits.PSCNT6 // bit 6, shadows bit in WDTPSLbits
17218 #define WDTPSCNT6 WDTPSLbits.WDTPSCNT6 // bit 6, shadows bit in WDTPSLbits
17219 #define PSCNT7 WDTPSLbits.PSCNT7 // bit 7, shadows bit in WDTPSLbits
17220 #define WDTPSCNT7 WDTPSLbits.WDTPSCNT7 // bit 7, shadows bit in WDTPSLbits
17222 #define PSCNT16 WDTTMRbits.PSCNT16 // bit 0, shadows bit in WDTTMRbits
17223 #define WDTPSCNT16 WDTTMRbits.WDTPSCNT16 // bit 0, shadows bit in WDTTMRbits
17224 #define PSCNT17 WDTTMRbits.PSCNT17 // bit 1, shadows bit in WDTTMRbits
17225 #define WDTPSCNT17 WDTTMRbits.WDTPSCNT17 // bit 1, shadows bit in WDTTMRbits
17226 #define STATE WDTTMRbits.STATE // bit 2, shadows bit in WDTTMRbits
17227 #define WDTSTATE WDTTMRbits.WDTSTATE // bit 2, shadows bit in WDTTMRbits
17228 #define WDTTMR0 WDTTMRbits.WDTTMR0 // bit 3
17229 #define WDTTMR1 WDTTMRbits.WDTTMR1 // bit 4
17230 #define WDTTMR2 WDTTMRbits.WDTTMR2 // bit 5
17231 #define WDTTMR3 WDTTMRbits.WDTTMR3 // bit 6
17232 #define WDTTMR4 WDTTMRbits.WDTTMR4 // bit 7
17234 #define WPUA0 WPUAbits.WPUA0 // bit 0
17235 #define WPUA1 WPUAbits.WPUA1 // bit 1
17236 #define WPUA2 WPUAbits.WPUA2 // bit 2
17237 #define WPUA3 WPUAbits.WPUA3 // bit 3
17238 #define WPUA4 WPUAbits.WPUA4 // bit 4
17239 #define WPUA5 WPUAbits.WPUA5 // bit 5
17241 #define WPUB4 WPUBbits.WPUB4 // bit 4
17242 #define WPUB5 WPUBbits.WPUB5 // bit 5
17243 #define WPUB6 WPUBbits.WPUB6 // bit 6
17244 #define WPUB7 WPUBbits.WPUB7 // bit 7
17246 #define WPUC0 WPUCbits.WPUC0 // bit 0
17247 #define WPUC1 WPUCbits.WPUC1 // bit 1
17248 #define WPUC2 WPUCbits.WPUC2 // bit 2
17249 #define WPUC3 WPUCbits.WPUC3 // bit 3
17250 #define WPUC4 WPUCbits.WPUC4 // bit 4
17251 #define WPUC5 WPUCbits.WPUC5 // bit 5
17252 #define WPUC6 WPUCbits.WPUC6 // bit 6
17253 #define WPUC7 WPUCbits.WPUC7 // bit 7
17255 #define ZCD1INTN ZCD1CONbits.ZCD1INTN // bit 0
17256 #define ZCD1INTP ZCD1CONbits.ZCD1INTP // bit 1
17257 #define ZCD1POL ZCD1CONbits.ZCD1POL // bit 4
17258 #define ZCD1OUT ZCD1CONbits.ZCD1OUT // bit 5
17259 #define ZCD1EN ZCD1CONbits.ZCD1EN // bit 7
17261 #endif // #ifndef NO_BIT_DEFINES
17263 #endif // #ifndef __PIC16F1618_H__