struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16lf1615.h
blob0491fbb14385929aefac0e168744100971298181
1 /*
2 * This declarations of the PIC16LF1615 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 __PIC16LF1615_H__
26 #define __PIC16LF1615_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 PORTC_ADDR 0x000E
52 #define PIR1_ADDR 0x0010
53 #define PIR2_ADDR 0x0011
54 #define PIR3_ADDR 0x0012
55 #define PIR4_ADDR 0x0013
56 #define PIR5_ADDR 0x0014
57 #define TMR0_ADDR 0x0015
58 #define TMR1_ADDR 0x0016
59 #define TMR1L_ADDR 0x0016
60 #define TMR1H_ADDR 0x0017
61 #define T1CON_ADDR 0x0018
62 #define T1GCON_ADDR 0x0019
63 #define T2TMR_ADDR 0x001A
64 #define TMR2_ADDR 0x001A
65 #define PR2_ADDR 0x001B
66 #define T2PR_ADDR 0x001B
67 #define T2CON_ADDR 0x001C
68 #define T2HLT_ADDR 0x001D
69 #define T2CLKCON_ADDR 0x001E
70 #define T2RST_ADDR 0x001F
71 #define TRISA_ADDR 0x008C
72 #define TRISC_ADDR 0x008E
73 #define PIE1_ADDR 0x0090
74 #define PIE2_ADDR 0x0091
75 #define PIE3_ADDR 0x0092
76 #define PIE4_ADDR 0x0093
77 #define PIE5_ADDR 0x0094
78 #define OPTION_REG_ADDR 0x0095
79 #define PCON_ADDR 0x0096
80 #define OSCTUNE_ADDR 0x0098
81 #define OSCCON_ADDR 0x0099
82 #define OSCSTAT_ADDR 0x009A
83 #define ADRES_ADDR 0x009B
84 #define ADRESL_ADDR 0x009B
85 #define ADRESH_ADDR 0x009C
86 #define ADCON0_ADDR 0x009D
87 #define ADCON1_ADDR 0x009E
88 #define ADCON2_ADDR 0x009F
89 #define LATA_ADDR 0x010C
90 #define LATC_ADDR 0x010E
91 #define CM1CON0_ADDR 0x0111
92 #define CM1CON1_ADDR 0x0112
93 #define CM2CON0_ADDR 0x0113
94 #define CM2CON1_ADDR 0x0114
95 #define CMOUT_ADDR 0x0115
96 #define BORCON_ADDR 0x0116
97 #define FVRCON_ADDR 0x0117
98 #define DAC1CON0_ADDR 0x0118
99 #define DAC1CON1_ADDR 0x0119
100 #define ZCD1CON_ADDR 0x011C
101 #define ANSELA_ADDR 0x018C
102 #define ANSELC_ADDR 0x018E
103 #define PMADR_ADDR 0x0191
104 #define PMADRL_ADDR 0x0191
105 #define PMADRH_ADDR 0x0192
106 #define PMDAT_ADDR 0x0193
107 #define PMDATL_ADDR 0x0193
108 #define PMDATH_ADDR 0x0194
109 #define PMCON1_ADDR 0x0195
110 #define PMCON2_ADDR 0x0196
111 #define RC1REG_ADDR 0x0199
112 #define RCREG_ADDR 0x0199
113 #define RCREG1_ADDR 0x0199
114 #define TX1REG_ADDR 0x019A
115 #define TXREG_ADDR 0x019A
116 #define TXREG1_ADDR 0x019A
117 #define SP1BRG_ADDR 0x019B
118 #define SP1BRGL_ADDR 0x019B
119 #define SPBRG_ADDR 0x019B
120 #define SPBRG1_ADDR 0x019B
121 #define SPBRGL_ADDR 0x019B
122 #define SP1BRGH_ADDR 0x019C
123 #define SPBRGH_ADDR 0x019C
124 #define SPBRGH1_ADDR 0x019C
125 #define RC1STA_ADDR 0x019D
126 #define RCSTA_ADDR 0x019D
127 #define RCSTA1_ADDR 0x019D
128 #define TX1STA_ADDR 0x019E
129 #define TXSTA_ADDR 0x019E
130 #define TXSTA1_ADDR 0x019E
131 #define BAUD1CON_ADDR 0x019F
132 #define BAUDCON_ADDR 0x019F
133 #define BAUDCON1_ADDR 0x019F
134 #define BAUDCTL_ADDR 0x019F
135 #define BAUDCTL1_ADDR 0x019F
136 #define WPUA_ADDR 0x020C
137 #define WPUC_ADDR 0x020E
138 #define SSP1BUF_ADDR 0x0211
139 #define SSPBUF_ADDR 0x0211
140 #define SSP1ADD_ADDR 0x0212
141 #define SSPADD_ADDR 0x0212
142 #define SSP1MSK_ADDR 0x0213
143 #define SSPMSK_ADDR 0x0213
144 #define SSP1STAT_ADDR 0x0214
145 #define SSPSTAT_ADDR 0x0214
146 #define SSP1CON_ADDR 0x0215
147 #define SSP1CON1_ADDR 0x0215
148 #define SSPCON_ADDR 0x0215
149 #define SSPCON1_ADDR 0x0215
150 #define SSP1CON2_ADDR 0x0216
151 #define SSPCON2_ADDR 0x0216
152 #define SSP1CON3_ADDR 0x0217
153 #define SSPCON3_ADDR 0x0217
154 #define ODCONA_ADDR 0x028C
155 #define ODCONC_ADDR 0x028E
156 #define CCPR1_ADDR 0x0291
157 #define CCPR1L_ADDR 0x0291
158 #define CCPR1H_ADDR 0x0292
159 #define CCP1CON_ADDR 0x0293
160 #define CCP1CAP_ADDR 0x0294
161 #define CCPR2_ADDR 0x0298
162 #define CCPR2L_ADDR 0x0298
163 #define CCPR2H_ADDR 0x0299
164 #define CCP2CON_ADDR 0x029A
165 #define CCP2CAP_ADDR 0x029B
166 #define CCPTMRS_ADDR 0x029E
167 #define SLRCONA_ADDR 0x030C
168 #define SLRCONC_ADDR 0x030E
169 #define INLVLA_ADDR 0x038C
170 #define INLVLC_ADDR 0x038E
171 #define IOCAP_ADDR 0x0391
172 #define IOCAN_ADDR 0x0392
173 #define IOCAF_ADDR 0x0393
174 #define IOCCP_ADDR 0x0397
175 #define IOCCN_ADDR 0x0398
176 #define IOCCF_ADDR 0x0399
177 #define HIDRVC_ADDR 0x040E
178 #define T4TMR_ADDR 0x0413
179 #define TMR4_ADDR 0x0413
180 #define PR4_ADDR 0x0414
181 #define T4PR_ADDR 0x0414
182 #define T4CON_ADDR 0x0415
183 #define T4HLT_ADDR 0x0416
184 #define T4CLKCON_ADDR 0x0417
185 #define T4RST_ADDR 0x0418
186 #define T6TMR_ADDR 0x041A
187 #define TMR6_ADDR 0x041A
188 #define PR6_ADDR 0x041B
189 #define T6PR_ADDR 0x041B
190 #define T6CON_ADDR 0x041C
191 #define T6HLT_ADDR 0x041D
192 #define T6CLKCON_ADDR 0x041E
193 #define T6RST_ADDR 0x041F
194 #define TMR3L_ADDR 0x0493
195 #define TMR3H_ADDR 0x0494
196 #define T3CON_ADDR 0x0495
197 #define T3GCON_ADDR 0x0496
198 #define TMR5L_ADDR 0x049A
199 #define TMR5H_ADDR 0x049B
200 #define T5CON_ADDR 0x049C
201 #define T5GCON_ADDR 0x049D
202 #define PID1SET_ADDR 0x058C
203 #define PID1SETL_ADDR 0x058C
204 #define PID1SETH_ADDR 0x058D
205 #define PID1IN_ADDR 0x058E
206 #define PID1INL_ADDR 0x058E
207 #define PID1INH_ADDR 0x058F
208 #define PID1K1_ADDR 0x0590
209 #define PID1K1L_ADDR 0x0590
210 #define PID1K1H_ADDR 0x0591
211 #define PID1K2_ADDR 0x0592
212 #define PID1K2L_ADDR 0x0592
213 #define PID1K2H_ADDR 0x0593
214 #define PID1K3_ADDR 0x0594
215 #define PID1K3L_ADDR 0x0594
216 #define PID1K3H_ADDR 0x0595
217 #define PID1OUT_ADDR 0x0596
218 #define PID1OUTLL_ADDR 0x0596
219 #define PID1OUTLH_ADDR 0x0597
220 #define PID1OUTHL_ADDR 0x0598
221 #define PID1OUTHH_ADDR 0x0599
222 #define PID1OUTU_ADDR 0x059A
223 #define PID1Z1_ADDR 0x059B
224 #define PID1Z1L_ADDR 0x059B
225 #define PID1Z1H_ADDR 0x059C
226 #define PID1Z1U_ADDR 0x059D
227 #define PID1Z2_ADDR 0x060C
228 #define PID1Z2L_ADDR 0x060C
229 #define PID1Z2H_ADDR 0x060D
230 #define PID1Z2U_ADDR 0x060E
231 #define PID1ACC_ADDR 0x060F
232 #define PID1ACCLL_ADDR 0x060F
233 #define PID1ACCLH_ADDR 0x0610
234 #define PID1ACCHL_ADDR 0x0611
235 #define PID1ACCHH_ADDR 0x0612
236 #define PID1ACCU_ADDR 0x0613
237 #define PID1CON_ADDR 0x0614
238 #define PWM3DCL_ADDR 0x0617
239 #define PWM3DCH_ADDR 0x0618
240 #define PWM3CON_ADDR 0x0619
241 #define PWM4DCL_ADDR 0x061A
242 #define PWM4DCH_ADDR 0x061B
243 #define PWM4CON_ADDR 0x061C
244 #define CWG1DBR_ADDR 0x0691
245 #define CWG1DBF_ADDR 0x0692
246 #define CWG1AS0_ADDR 0x0693
247 #define CWG1AS1_ADDR 0x0694
248 #define CWG1OCON0_ADDR 0x0695
249 #define CWG1CON0_ADDR 0x0696
250 #define CWG1CON1_ADDR 0x0697
251 #define CWG1CLKCON_ADDR 0x0699
252 #define CWG1ISM_ADDR 0x069A
253 #define WDTCON0_ADDR 0x0711
254 #define WDTCON1_ADDR 0x0712
255 #define WDTPSL_ADDR 0x0713
256 #define WDTPSH_ADDR 0x0714
257 #define WDTTMR_ADDR 0x0715
258 #define SCANLADR_ADDR 0x0718
259 #define SCANLADRL_ADDR 0x0718
260 #define SCANLADRH_ADDR 0x0719
261 #define SCANHADR_ADDR 0x071A
262 #define SCANHADRL_ADDR 0x071A
263 #define SCANHADRH_ADDR 0x071B
264 #define SCANCON0_ADDR 0x071C
265 #define SCANTRIG_ADDR 0x071D
266 #define CRCDAT_ADDR 0x0791
267 #define CRCDATL_ADDR 0x0791
268 #define CRCDATH_ADDR 0x0792
269 #define CRCACC_ADDR 0x0793
270 #define CRCACCL_ADDR 0x0793
271 #define CRCACCH_ADDR 0x0794
272 #define CRCSHIFT_ADDR 0x0795
273 #define CRCSHIFTL_ADDR 0x0795
274 #define CRCSHIFTH_ADDR 0x0796
275 #define CRCXOR_ADDR 0x0797
276 #define CRCXORL_ADDR 0x0797
277 #define CRCXORH_ADDR 0x0798
278 #define CRCCON0_ADDR 0x0799
279 #define CRCCON1_ADDR 0x079A
280 #define AT1RES_ADDR 0x080C
281 #define AT1RESL_ADDR 0x080C
282 #define AT1RESH_ADDR 0x080D
283 #define AT1MISS_ADDR 0x080E
284 #define AT1MISSL_ADDR 0x080E
285 #define AT1MISSH_ADDR 0x080F
286 #define AT1PER_ADDR 0x0810
287 #define AT1PERL_ADDR 0x0810
288 #define AT1PERH_ADDR 0x0811
289 #define AT1PHS_ADDR 0x0812
290 #define AT1PHSL_ADDR 0x0812
291 #define AT1PHSH_ADDR 0x0813
292 #define AT1CON0_ADDR 0x0814
293 #define AT1CON1_ADDR 0x0815
294 #define AT1IR0_ADDR 0x0816
295 #define AT1IE0_ADDR 0x0817
296 #define AT1IR1_ADDR 0x0818
297 #define AT1IE1_ADDR 0x0819
298 #define AT1STPT_ADDR 0x081A
299 #define AT1STPTL_ADDR 0x081A
300 #define AT1STPTH_ADDR 0x081B
301 #define AT1ERR_ADDR 0x081C
302 #define AT1ERRL_ADDR 0x081C
303 #define AT1ERRH_ADDR 0x081D
304 #define AT1CLK_ADDR 0x088C
305 #define AT1SIG_ADDR 0x088D
306 #define AT1CSEL1_ADDR 0x088E
307 #define AT1CC1_ADDR 0x088F
308 #define AT1CC1L_ADDR 0x088F
309 #define AT1CC1H_ADDR 0x0890
310 #define AT1CCON1_ADDR 0x0891
311 #define AT1CSEL2_ADDR 0x0892
312 #define AT1CC2_ADDR 0x0893
313 #define AT1CC2L_ADDR 0x0893
314 #define AT1CC2H_ADDR 0x0894
315 #define AT1CCON2_ADDR 0x0895
316 #define AT1CSEL3_ADDR 0x0896
317 #define AT1CC3_ADDR 0x0897
318 #define AT1CC3L_ADDR 0x0897
319 #define AT1CC3H_ADDR 0x0898
320 #define AT1CCON3_ADDR 0x0899
321 #define SMT1TMR_ADDR 0x0D8C
322 #define SMT1TMRL_ADDR 0x0D8C
323 #define SMT1TMRH_ADDR 0x0D8D
324 #define SMT1TMRU_ADDR 0x0D8E
325 #define SMT1CPR_ADDR 0x0D8F
326 #define SMT1CPRL_ADDR 0x0D8F
327 #define SMT1CPRH_ADDR 0x0D90
328 #define SMT1CPRU_ADDR 0x0D91
329 #define SMT1CPW_ADDR 0x0D92
330 #define SMT1CPWL_ADDR 0x0D92
331 #define SMT1CPWH_ADDR 0x0D93
332 #define SMT1CPWU_ADDR 0x0D94
333 #define SMT1PR_ADDR 0x0D95
334 #define SMT1PRL_ADDR 0x0D95
335 #define SMT1PRH_ADDR 0x0D96
336 #define SMT1PRU_ADDR 0x0D97
337 #define SMT1CON0_ADDR 0x0D98
338 #define SMT1CON1_ADDR 0x0D99
339 #define SMT1STAT_ADDR 0x0D9A
340 #define SMT1CLK_ADDR 0x0D9B
341 #define SMT1SIG_ADDR 0x0D9C
342 #define SMT1WIN_ADDR 0x0D9D
343 #define SMT2TMR_ADDR 0x0D9E
344 #define SMT2TMRL_ADDR 0x0D9E
345 #define SMT2TMRH_ADDR 0x0D9F
346 #define SMT2TMRU_ADDR 0x0DA0
347 #define SMT2CPR_ADDR 0x0DA1
348 #define SMT2CPRL_ADDR 0x0DA1
349 #define SMT2CPRH_ADDR 0x0DA2
350 #define SMT2CPRU_ADDR 0x0DA3
351 #define SMT2CPW_ADDR 0x0DA4
352 #define SMT2CPWL_ADDR 0x0DA4
353 #define SMT2CPWH_ADDR 0x0DA5
354 #define SMT2CPWU_ADDR 0x0DA6
355 #define SMT2PR_ADDR 0x0DA7
356 #define SMT2PRL_ADDR 0x0DA7
357 #define SMT2PRH_ADDR 0x0DA8
358 #define SMT2PRU_ADDR 0x0DA9
359 #define SMT2CON0_ADDR 0x0DAA
360 #define SMT2CON1_ADDR 0x0DAB
361 #define SMT2STAT_ADDR 0x0DAC
362 #define SMT2CLK_ADDR 0x0DAD
363 #define SMT2SIG_ADDR 0x0DAE
364 #define SMT2WIN_ADDR 0x0DAF
365 #define PPSLOCK_ADDR 0x0E0F
366 #define INTPPS_ADDR 0x0E10
367 #define T0CKIPPS_ADDR 0x0E11
368 #define T1CKIPPS_ADDR 0x0E12
369 #define T1GPPS_ADDR 0x0E13
370 #define CCP1PPS_ADDR 0x0E14
371 #define CCP2PPS_ADDR 0x0E15
372 #define ATINPPS_ADDR 0x0E16
373 #define CWGINPPS_ADDR 0x0E17
374 #define T2PPS_ADDR 0x0E18
375 #define T3CKIPPS_ADDR 0x0E19
376 #define T3GPPS_ADDR 0x0E1A
377 #define T4PPS_ADDR 0x0E1B
378 #define T5CKIPPS_ADDR 0x0E1C
379 #define T5GPPS_ADDR 0x0E1D
380 #define T6PPS_ADDR 0x0E1E
381 #define ATCC1PPS_ADDR 0x0E1F
382 #define SSPCLKPPS_ADDR 0x0E20
383 #define SSPDATPPS_ADDR 0x0E21
384 #define SSPSSPPS_ADDR 0x0E22
385 #define ATCC2PPS_ADDR 0x0E23
386 #define RXPPS_ADDR 0x0E24
387 #define CKPPS_ADDR 0x0E25
388 #define SMT1SIGPPS_ADDR 0x0E26
389 #define SMT1WINPPS_ADDR 0x0E27
390 #define CLCIN0PPS_ADDR 0x0E28
391 #define CLCIN1PPS_ADDR 0x0E29
392 #define CLCIN2PPS_ADDR 0x0E2A
393 #define CLCIN3PPS_ADDR 0x0E2B
394 #define SMT2SIGPPS_ADDR 0x0E2C
395 #define SMT2WINPPS_ADDR 0x0E2D
396 #define ATCC3PPS_ADDR 0x0E2E
397 #define RA0PPS_ADDR 0x0E90
398 #define RA1PPS_ADDR 0x0E91
399 #define RA2PPS_ADDR 0x0E92
400 #define RA4PPS_ADDR 0x0E94
401 #define RA5PPS_ADDR 0x0E95
402 #define RC0PPS_ADDR 0x0EA0
403 #define RC1PPS_ADDR 0x0EA1
404 #define RC2PPS_ADDR 0x0EA2
405 #define RC3PPS_ADDR 0x0EA3
406 #define RC4PPS_ADDR 0x0EA4
407 #define RC5PPS_ADDR 0x0EA5
408 #define CLCDATA_ADDR 0x0F0F
409 #define CLC1CON_ADDR 0x0F10
410 #define CLC1POL_ADDR 0x0F11
411 #define CLC1SEL0_ADDR 0x0F12
412 #define CLC1SEL1_ADDR 0x0F13
413 #define CLC1SEL2_ADDR 0x0F14
414 #define CLC1SEL3_ADDR 0x0F15
415 #define CLC1GLS0_ADDR 0x0F16
416 #define CLC1GLS1_ADDR 0x0F17
417 #define CLC1GLS2_ADDR 0x0F18
418 #define CLC1GLS3_ADDR 0x0F19
419 #define CLC2CON_ADDR 0x0F1A
420 #define CLC2POL_ADDR 0x0F1B
421 #define CLC2SEL0_ADDR 0x0F1C
422 #define CLC2SEL1_ADDR 0x0F1D
423 #define CLC2SEL2_ADDR 0x0F1E
424 #define CLC2SEL3_ADDR 0x0F1F
425 #define CLC2GLS0_ADDR 0x0F20
426 #define CLC2GLS1_ADDR 0x0F21
427 #define CLC2GLS2_ADDR 0x0F22
428 #define CLC2GLS3_ADDR 0x0F23
429 #define CLC3CON_ADDR 0x0F24
430 #define CLC3POL_ADDR 0x0F25
431 #define CLC3SEL0_ADDR 0x0F26
432 #define CLC3SEL1_ADDR 0x0F27
433 #define CLC3SEL2_ADDR 0x0F28
434 #define CLC3SEL3_ADDR 0x0F29
435 #define CLC3GLS0_ADDR 0x0F2A
436 #define CLC3GLS1_ADDR 0x0F2B
437 #define CLC3GLS2_ADDR 0x0F2C
438 #define CLC3GLS3_ADDR 0x0F2D
439 #define CLC4CON_ADDR 0x0F2E
440 #define CLC4POL_ADDR 0x0F2F
441 #define CLC4SEL0_ADDR 0x0F30
442 #define CLC4SEL1_ADDR 0x0F31
443 #define CLC4SEL2_ADDR 0x0F32
444 #define CLC4SEL3_ADDR 0x0F33
445 #define CLC4GLS0_ADDR 0x0F34
446 #define CLC4GLS1_ADDR 0x0F35
447 #define CLC4GLS2_ADDR 0x0F36
448 #define CLC4GLS3_ADDR 0x0F37
449 #define STATUS_SHAD_ADDR 0x0FE4
450 #define WREG_SHAD_ADDR 0x0FE5
451 #define BSR_SHAD_ADDR 0x0FE6
452 #define PCLATH_SHAD_ADDR 0x0FE7
453 #define FSR0L_SHAD_ADDR 0x0FE8
454 #define FSR0H_SHAD_ADDR 0x0FE9
455 #define FSR1L_SHAD_ADDR 0x0FEA
456 #define FSR1H_SHAD_ADDR 0x0FEB
457 #define STKPTR_ADDR 0x0FED
458 #define TOSL_ADDR 0x0FEE
459 #define TOSH_ADDR 0x0FEF
461 #endif // #ifndef NO_ADDR_DEFINES
463 //==============================================================================
465 // Register Definitions
467 //==============================================================================
469 extern __at(0x0000) __sfr INDF0;
470 extern __at(0x0001) __sfr INDF1;
471 extern __at(0x0002) __sfr PCL;
473 //==============================================================================
474 // STATUS Bits
476 extern __at(0x0003) __sfr STATUS;
478 typedef struct
480 unsigned C : 1;
481 unsigned DC : 1;
482 unsigned Z : 1;
483 unsigned NOT_PD : 1;
484 unsigned NOT_TO : 1;
485 unsigned : 1;
486 unsigned : 1;
487 unsigned : 1;
488 } __STATUSbits_t;
490 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
492 #define _C 0x01
493 #define _DC 0x02
494 #define _Z 0x04
495 #define _NOT_PD 0x08
496 #define _NOT_TO 0x10
498 //==============================================================================
500 extern __at(0x0004) __sfr FSR0;
501 extern __at(0x0004) __sfr FSR0L;
502 extern __at(0x0005) __sfr FSR0H;
503 extern __at(0x0006) __sfr FSR1;
504 extern __at(0x0006) __sfr FSR1L;
505 extern __at(0x0007) __sfr FSR1H;
507 //==============================================================================
508 // BSR Bits
510 extern __at(0x0008) __sfr BSR;
512 typedef union
514 struct
516 unsigned BSR0 : 1;
517 unsigned BSR1 : 1;
518 unsigned BSR2 : 1;
519 unsigned BSR3 : 1;
520 unsigned BSR4 : 1;
521 unsigned : 1;
522 unsigned : 1;
523 unsigned : 1;
526 struct
528 unsigned BSR : 5;
529 unsigned : 3;
531 } __BSRbits_t;
533 extern __at(0x0008) volatile __BSRbits_t BSRbits;
535 #define _BSR0 0x01
536 #define _BSR1 0x02
537 #define _BSR2 0x04
538 #define _BSR3 0x08
539 #define _BSR4 0x10
541 //==============================================================================
543 extern __at(0x0009) __sfr WREG;
544 extern __at(0x000A) __sfr PCLATH;
546 //==============================================================================
547 // INTCON Bits
549 extern __at(0x000B) __sfr INTCON;
551 typedef union
553 struct
555 unsigned IOCIF : 1;
556 unsigned INTF : 1;
557 unsigned TMR0IF : 1;
558 unsigned IOCIE : 1;
559 unsigned INTE : 1;
560 unsigned TMR0IE : 1;
561 unsigned PEIE : 1;
562 unsigned GIE : 1;
565 struct
567 unsigned : 1;
568 unsigned : 1;
569 unsigned T0IF : 1;
570 unsigned : 1;
571 unsigned : 1;
572 unsigned T0IE : 1;
573 unsigned : 1;
574 unsigned : 1;
576 } __INTCONbits_t;
578 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
580 #define _IOCIF 0x01
581 #define _INTF 0x02
582 #define _TMR0IF 0x04
583 #define _T0IF 0x04
584 #define _IOCIE 0x08
585 #define _INTE 0x10
586 #define _TMR0IE 0x20
587 #define _T0IE 0x20
588 #define _PEIE 0x40
589 #define _GIE 0x80
591 //==============================================================================
594 //==============================================================================
595 // PORTA Bits
597 extern __at(0x000C) __sfr PORTA;
599 typedef union
601 struct
603 unsigned RA0 : 1;
604 unsigned RA1 : 1;
605 unsigned RA2 : 1;
606 unsigned RA3 : 1;
607 unsigned RA4 : 1;
608 unsigned RA5 : 1;
609 unsigned : 1;
610 unsigned : 1;
613 struct
615 unsigned RA : 6;
616 unsigned : 2;
618 } __PORTAbits_t;
620 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
622 #define _RA0 0x01
623 #define _RA1 0x02
624 #define _RA2 0x04
625 #define _RA3 0x08
626 #define _RA4 0x10
627 #define _RA5 0x20
629 //==============================================================================
632 //==============================================================================
633 // PORTC Bits
635 extern __at(0x000E) __sfr PORTC;
637 typedef union
639 struct
641 unsigned RC0 : 1;
642 unsigned RC1 : 1;
643 unsigned RC2 : 1;
644 unsigned RC3 : 1;
645 unsigned RC4 : 1;
646 unsigned RC5 : 1;
647 unsigned : 1;
648 unsigned : 1;
651 struct
653 unsigned RC : 6;
654 unsigned : 2;
656 } __PORTCbits_t;
658 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
660 #define _RC0 0x01
661 #define _RC1 0x02
662 #define _RC2 0x04
663 #define _RC3 0x08
664 #define _RC4 0x10
665 #define _RC5 0x20
667 //==============================================================================
670 //==============================================================================
671 // PIR1 Bits
673 extern __at(0x0010) __sfr PIR1;
675 typedef struct
677 unsigned TMR1IF : 1;
678 unsigned TMR2IF : 1;
679 unsigned CCP1IF : 1;
680 unsigned SSP1IF : 1;
681 unsigned TXIF : 1;
682 unsigned RCIF : 1;
683 unsigned ADIF : 1;
684 unsigned TMR1GIF : 1;
685 } __PIR1bits_t;
687 extern __at(0x0010) volatile __PIR1bits_t PIR1bits;
689 #define _TMR1IF 0x01
690 #define _TMR2IF 0x02
691 #define _CCP1IF 0x04
692 #define _SSP1IF 0x08
693 #define _TXIF 0x10
694 #define _RCIF 0x20
695 #define _ADIF 0x40
696 #define _TMR1GIF 0x80
698 //==============================================================================
701 //==============================================================================
702 // PIR2 Bits
704 extern __at(0x0011) __sfr PIR2;
706 typedef struct
708 unsigned CCP2IF : 1;
709 unsigned TMR4IF : 1;
710 unsigned TMR6IF : 1;
711 unsigned BCL1IF : 1;
712 unsigned : 1;
713 unsigned C1IF : 1;
714 unsigned C2IF : 1;
715 unsigned OSFIF : 1;
716 } __PIR2bits_t;
718 extern __at(0x0011) volatile __PIR2bits_t PIR2bits;
720 #define _CCP2IF 0x01
721 #define _TMR4IF 0x02
722 #define _TMR6IF 0x04
723 #define _BCL1IF 0x08
724 #define _C1IF 0x20
725 #define _C2IF 0x40
726 #define _OSFIF 0x80
728 //==============================================================================
731 //==============================================================================
732 // PIR3 Bits
734 extern __at(0x0012) __sfr PIR3;
736 typedef struct
738 unsigned CLC1IF : 1;
739 unsigned CLC2IF : 1;
740 unsigned CLC3IF : 1;
741 unsigned CLC4IF : 1;
742 unsigned ZCDIF : 1;
743 unsigned CWGIF : 1;
744 unsigned : 1;
745 unsigned : 1;
746 } __PIR3bits_t;
748 extern __at(0x0012) volatile __PIR3bits_t PIR3bits;
750 #define _CLC1IF 0x01
751 #define _CLC2IF 0x02
752 #define _CLC3IF 0x04
753 #define _CLC4IF 0x08
754 #define _ZCDIF 0x10
755 #define _CWGIF 0x20
757 //==============================================================================
760 //==============================================================================
761 // PIR4 Bits
763 extern __at(0x0013) __sfr PIR4;
765 typedef struct
767 unsigned SMT1IF : 1;
768 unsigned SMT1PRAIF : 1;
769 unsigned SMT1PWAIF : 1;
770 unsigned SMT2IF : 1;
771 unsigned SMT2PRAIF : 1;
772 unsigned SMT2PWAIF : 1;
773 unsigned CRCIF : 1;
774 unsigned SCANIF : 1;
775 } __PIR4bits_t;
777 extern __at(0x0013) volatile __PIR4bits_t PIR4bits;
779 #define _SMT1IF 0x01
780 #define _SMT1PRAIF 0x02
781 #define _SMT1PWAIF 0x04
782 #define _SMT2IF 0x08
783 #define _SMT2PRAIF 0x10
784 #define _SMT2PWAIF 0x20
785 #define _CRCIF 0x40
786 #define _SCANIF 0x80
788 //==============================================================================
791 //==============================================================================
792 // PIR5 Bits
794 extern __at(0x0014) __sfr PIR5;
796 typedef struct
798 unsigned PID1DIF : 1;
799 unsigned PID1EIF : 1;
800 unsigned AT1IF : 1;
801 unsigned : 1;
802 unsigned TMR5IF : 1;
803 unsigned TMR5GIF : 1;
804 unsigned TMR3IF : 1;
805 unsigned TMR3GIF : 1;
806 } __PIR5bits_t;
808 extern __at(0x0014) volatile __PIR5bits_t PIR5bits;
810 #define _PID1DIF 0x01
811 #define _PID1EIF 0x02
812 #define _AT1IF 0x04
813 #define _TMR5IF 0x10
814 #define _TMR5GIF 0x20
815 #define _TMR3IF 0x40
816 #define _TMR3GIF 0x80
818 //==============================================================================
820 extern __at(0x0015) __sfr TMR0;
821 extern __at(0x0016) __sfr TMR1;
822 extern __at(0x0016) __sfr TMR1L;
823 extern __at(0x0017) __sfr TMR1H;
825 //==============================================================================
826 // T1CON Bits
828 extern __at(0x0018) __sfr T1CON;
830 typedef union
832 struct
834 unsigned TMR1ON : 1;
835 unsigned : 1;
836 unsigned NOT_T1SYNC : 1;
837 unsigned : 1;
838 unsigned T1CKPS0 : 1;
839 unsigned T1CKPS1 : 1;
840 unsigned TMR1CS0 : 1;
841 unsigned TMR1CS1 : 1;
844 struct
846 unsigned : 4;
847 unsigned T1CKPS : 2;
848 unsigned : 2;
851 struct
853 unsigned : 6;
854 unsigned TMR1CS : 2;
856 } __T1CONbits_t;
858 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
860 #define _TMR1ON 0x01
861 #define _NOT_T1SYNC 0x04
862 #define _T1CKPS0 0x10
863 #define _T1CKPS1 0x20
864 #define _TMR1CS0 0x40
865 #define _TMR1CS1 0x80
867 //==============================================================================
870 //==============================================================================
871 // T1GCON Bits
873 extern __at(0x0019) __sfr T1GCON;
875 typedef union
877 struct
879 unsigned T1GSS0 : 1;
880 unsigned T1GSS1 : 1;
881 unsigned T1GVAL : 1;
882 unsigned T1GGO_NOT_DONE : 1;
883 unsigned T1GSPM : 1;
884 unsigned T1GTM : 1;
885 unsigned T1GPOL : 1;
886 unsigned TMR1GE : 1;
889 struct
891 unsigned T1GSS : 2;
892 unsigned : 6;
894 } __T1GCONbits_t;
896 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
898 #define _T1GSS0 0x01
899 #define _T1GSS1 0x02
900 #define _T1GVAL 0x04
901 #define _T1GGO_NOT_DONE 0x08
902 #define _T1GSPM 0x10
903 #define _T1GTM 0x20
904 #define _T1GPOL 0x40
905 #define _TMR1GE 0x80
907 //==============================================================================
909 extern __at(0x001A) __sfr T2TMR;
910 extern __at(0x001A) __sfr TMR2;
911 extern __at(0x001B) __sfr PR2;
912 extern __at(0x001B) __sfr T2PR;
914 //==============================================================================
915 // T2CON Bits
917 extern __at(0x001C) __sfr T2CON;
919 typedef union
921 struct
923 unsigned OUTPS0 : 1;
924 unsigned OUTPS1 : 1;
925 unsigned OUTPS2 : 1;
926 unsigned OUTPS3 : 1;
927 unsigned CKPS0 : 1;
928 unsigned CKPS1 : 1;
929 unsigned CKPS2 : 1;
930 unsigned ON : 1;
933 struct
935 unsigned T2OUTPS0 : 1;
936 unsigned T2OUTPS1 : 1;
937 unsigned T2OUTPS2 : 1;
938 unsigned T2OUTPS3 : 1;
939 unsigned T2CKPS0 : 1;
940 unsigned T2CKPS1 : 1;
941 unsigned T2CKPS2 : 1;
942 unsigned T2ON : 1;
945 struct
947 unsigned : 1;
948 unsigned : 1;
949 unsigned : 1;
950 unsigned : 1;
951 unsigned : 1;
952 unsigned : 1;
953 unsigned : 1;
954 unsigned TMR2ON : 1;
957 struct
959 unsigned OUTPS : 4;
960 unsigned : 4;
963 struct
965 unsigned T2OUTPS : 4;
966 unsigned : 4;
969 struct
971 unsigned : 4;
972 unsigned T2CKPS : 3;
973 unsigned : 1;
976 struct
978 unsigned : 4;
979 unsigned CKPS : 3;
980 unsigned : 1;
982 } __T2CONbits_t;
984 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
986 #define _OUTPS0 0x01
987 #define _T2OUTPS0 0x01
988 #define _OUTPS1 0x02
989 #define _T2OUTPS1 0x02
990 #define _OUTPS2 0x04
991 #define _T2OUTPS2 0x04
992 #define _OUTPS3 0x08
993 #define _T2OUTPS3 0x08
994 #define _CKPS0 0x10
995 #define _T2CKPS0 0x10
996 #define _CKPS1 0x20
997 #define _T2CKPS1 0x20
998 #define _CKPS2 0x40
999 #define _T2CKPS2 0x40
1000 #define _ON 0x80
1001 #define _T2ON 0x80
1002 #define _TMR2ON 0x80
1004 //==============================================================================
1007 //==============================================================================
1008 // T2HLT Bits
1010 extern __at(0x001D) __sfr T2HLT;
1012 typedef union
1014 struct
1016 unsigned MODE0 : 1;
1017 unsigned MODE1 : 1;
1018 unsigned MODE2 : 1;
1019 unsigned MODE3 : 1;
1020 unsigned MODE4 : 1;
1021 unsigned CKSYNC : 1;
1022 unsigned CKPOL : 1;
1023 unsigned PSYNC : 1;
1026 struct
1028 unsigned T2MODE0 : 1;
1029 unsigned T2MODE1 : 1;
1030 unsigned T2MODE2 : 1;
1031 unsigned T2MODE3 : 1;
1032 unsigned T2MODE4 : 1;
1033 unsigned T2CKSYNC : 1;
1034 unsigned T2CKPOL : 1;
1035 unsigned T2PSYNC : 1;
1038 struct
1040 unsigned MODE : 5;
1041 unsigned : 3;
1044 struct
1046 unsigned T2MODE : 5;
1047 unsigned : 3;
1049 } __T2HLTbits_t;
1051 extern __at(0x001D) volatile __T2HLTbits_t T2HLTbits;
1053 #define _T2HLT_MODE0 0x01
1054 #define _T2HLT_T2MODE0 0x01
1055 #define _T2HLT_MODE1 0x02
1056 #define _T2HLT_T2MODE1 0x02
1057 #define _T2HLT_MODE2 0x04
1058 #define _T2HLT_T2MODE2 0x04
1059 #define _T2HLT_MODE3 0x08
1060 #define _T2HLT_T2MODE3 0x08
1061 #define _T2HLT_MODE4 0x10
1062 #define _T2HLT_T2MODE4 0x10
1063 #define _T2HLT_CKSYNC 0x20
1064 #define _T2HLT_T2CKSYNC 0x20
1065 #define _T2HLT_CKPOL 0x40
1066 #define _T2HLT_T2CKPOL 0x40
1067 #define _T2HLT_PSYNC 0x80
1068 #define _T2HLT_T2PSYNC 0x80
1070 //==============================================================================
1073 //==============================================================================
1074 // T2CLKCON Bits
1076 extern __at(0x001E) __sfr T2CLKCON;
1078 typedef union
1080 struct
1082 unsigned CS0 : 1;
1083 unsigned CS1 : 1;
1084 unsigned CS2 : 1;
1085 unsigned CS3 : 1;
1086 unsigned : 1;
1087 unsigned : 1;
1088 unsigned : 1;
1089 unsigned : 1;
1092 struct
1094 unsigned T2CS0 : 1;
1095 unsigned T2CS1 : 1;
1096 unsigned T2CS2 : 1;
1097 unsigned T2CS3 : 1;
1098 unsigned : 1;
1099 unsigned : 1;
1100 unsigned : 1;
1101 unsigned : 1;
1104 struct
1106 unsigned CS : 4;
1107 unsigned : 4;
1110 struct
1112 unsigned T2CS : 4;
1113 unsigned : 4;
1115 } __T2CLKCONbits_t;
1117 extern __at(0x001E) volatile __T2CLKCONbits_t T2CLKCONbits;
1119 #define _T2CLKCON_CS0 0x01
1120 #define _T2CLKCON_T2CS0 0x01
1121 #define _T2CLKCON_CS1 0x02
1122 #define _T2CLKCON_T2CS1 0x02
1123 #define _T2CLKCON_CS2 0x04
1124 #define _T2CLKCON_T2CS2 0x04
1125 #define _T2CLKCON_CS3 0x08
1126 #define _T2CLKCON_T2CS3 0x08
1128 //==============================================================================
1131 //==============================================================================
1132 // T2RST Bits
1134 extern __at(0x001F) __sfr T2RST;
1136 typedef union
1138 struct
1140 unsigned RSEL0 : 1;
1141 unsigned RSEL1 : 1;
1142 unsigned RSEL2 : 1;
1143 unsigned RSEL3 : 1;
1144 unsigned : 1;
1145 unsigned : 1;
1146 unsigned : 1;
1147 unsigned : 1;
1150 struct
1152 unsigned T2RSEL0 : 1;
1153 unsigned T2RSEL1 : 1;
1154 unsigned T2RSEL2 : 1;
1155 unsigned T2RSEL3 : 1;
1156 unsigned : 1;
1157 unsigned : 1;
1158 unsigned : 1;
1159 unsigned : 1;
1162 struct
1164 unsigned RSEL : 4;
1165 unsigned : 4;
1168 struct
1170 unsigned T2RSEL : 4;
1171 unsigned : 4;
1173 } __T2RSTbits_t;
1175 extern __at(0x001F) volatile __T2RSTbits_t T2RSTbits;
1177 #define _RSEL0 0x01
1178 #define _T2RSEL0 0x01
1179 #define _RSEL1 0x02
1180 #define _T2RSEL1 0x02
1181 #define _RSEL2 0x04
1182 #define _T2RSEL2 0x04
1183 #define _RSEL3 0x08
1184 #define _T2RSEL3 0x08
1186 //==============================================================================
1189 //==============================================================================
1190 // TRISA Bits
1192 extern __at(0x008C) __sfr TRISA;
1194 typedef union
1196 struct
1198 unsigned TRISA0 : 1;
1199 unsigned TRISA1 : 1;
1200 unsigned TRISA2 : 1;
1201 unsigned TRISA3 : 1;
1202 unsigned TRISA4 : 1;
1203 unsigned TRISA5 : 1;
1204 unsigned : 1;
1205 unsigned : 1;
1208 struct
1210 unsigned TRISA : 6;
1211 unsigned : 2;
1213 } __TRISAbits_t;
1215 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
1217 #define _TRISA0 0x01
1218 #define _TRISA1 0x02
1219 #define _TRISA2 0x04
1220 #define _TRISA3 0x08
1221 #define _TRISA4 0x10
1222 #define _TRISA5 0x20
1224 //==============================================================================
1227 //==============================================================================
1228 // TRISC Bits
1230 extern __at(0x008E) __sfr TRISC;
1232 typedef union
1234 struct
1236 unsigned TRISC0 : 1;
1237 unsigned TRISC1 : 1;
1238 unsigned TRISC2 : 1;
1239 unsigned TRISC3 : 1;
1240 unsigned TRISC4 : 1;
1241 unsigned TRISC5 : 1;
1242 unsigned : 1;
1243 unsigned : 1;
1246 struct
1248 unsigned TRISC : 6;
1249 unsigned : 2;
1251 } __TRISCbits_t;
1253 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1255 #define _TRISC0 0x01
1256 #define _TRISC1 0x02
1257 #define _TRISC2 0x04
1258 #define _TRISC3 0x08
1259 #define _TRISC4 0x10
1260 #define _TRISC5 0x20
1262 //==============================================================================
1265 //==============================================================================
1266 // PIE1 Bits
1268 extern __at(0x0090) __sfr PIE1;
1270 typedef struct
1272 unsigned TMR1IE : 1;
1273 unsigned TMR2IE : 1;
1274 unsigned CCP1IE : 1;
1275 unsigned SSP1IE : 1;
1276 unsigned TXIE : 1;
1277 unsigned RCIE : 1;
1278 unsigned ADIE : 1;
1279 unsigned TMR1GIE : 1;
1280 } __PIE1bits_t;
1282 extern __at(0x0090) volatile __PIE1bits_t PIE1bits;
1284 #define _TMR1IE 0x01
1285 #define _TMR2IE 0x02
1286 #define _CCP1IE 0x04
1287 #define _SSP1IE 0x08
1288 #define _TXIE 0x10
1289 #define _RCIE 0x20
1290 #define _ADIE 0x40
1291 #define _TMR1GIE 0x80
1293 //==============================================================================
1296 //==============================================================================
1297 // PIE2 Bits
1299 extern __at(0x0091) __sfr PIE2;
1301 typedef struct
1303 unsigned CCP2IE : 1;
1304 unsigned TMR4IE : 1;
1305 unsigned TMR6IE : 1;
1306 unsigned BCL1IE : 1;
1307 unsigned : 1;
1308 unsigned C1IE : 1;
1309 unsigned C2IE : 1;
1310 unsigned OSCFIE : 1;
1311 } __PIE2bits_t;
1313 extern __at(0x0091) volatile __PIE2bits_t PIE2bits;
1315 #define _CCP2IE 0x01
1316 #define _TMR4IE 0x02
1317 #define _TMR6IE 0x04
1318 #define _BCL1IE 0x08
1319 #define _C1IE 0x20
1320 #define _C2IE 0x40
1321 #define _OSCFIE 0x80
1323 //==============================================================================
1326 //==============================================================================
1327 // PIE3 Bits
1329 extern __at(0x0092) __sfr PIE3;
1331 typedef struct
1333 unsigned CLC1IE : 1;
1334 unsigned CLC2IE : 1;
1335 unsigned CLC3IE : 1;
1336 unsigned CLC4IE : 1;
1337 unsigned ZCDIE : 1;
1338 unsigned CWGIE : 1;
1339 unsigned : 1;
1340 unsigned : 1;
1341 } __PIE3bits_t;
1343 extern __at(0x0092) volatile __PIE3bits_t PIE3bits;
1345 #define _CLC1IE 0x01
1346 #define _CLC2IE 0x02
1347 #define _CLC3IE 0x04
1348 #define _CLC4IE 0x08
1349 #define _ZCDIE 0x10
1350 #define _CWGIE 0x20
1352 //==============================================================================
1355 //==============================================================================
1356 // PIE4 Bits
1358 extern __at(0x0093) __sfr PIE4;
1360 typedef struct
1362 unsigned SMT1IE : 1;
1363 unsigned SMT1PRAIE : 1;
1364 unsigned SMT1PWAIE : 1;
1365 unsigned SMT2IE : 1;
1366 unsigned SMT2PRAIE : 1;
1367 unsigned SMT2PWAIE : 1;
1368 unsigned CRCIE : 1;
1369 unsigned SCANIE : 1;
1370 } __PIE4bits_t;
1372 extern __at(0x0093) volatile __PIE4bits_t PIE4bits;
1374 #define _SMT1IE 0x01
1375 #define _SMT1PRAIE 0x02
1376 #define _SMT1PWAIE 0x04
1377 #define _SMT2IE 0x08
1378 #define _SMT2PRAIE 0x10
1379 #define _SMT2PWAIE 0x20
1380 #define _CRCIE 0x40
1381 #define _SCANIE 0x80
1383 //==============================================================================
1386 //==============================================================================
1387 // PIE5 Bits
1389 extern __at(0x0094) __sfr PIE5;
1391 typedef struct
1393 unsigned PID1DIE : 1;
1394 unsigned PID1EIE : 1;
1395 unsigned AT1IE : 1;
1396 unsigned : 1;
1397 unsigned TMR5IE : 1;
1398 unsigned TMR5GIE : 1;
1399 unsigned TMR3IE : 1;
1400 unsigned TMR3GIE : 1;
1401 } __PIE5bits_t;
1403 extern __at(0x0094) volatile __PIE5bits_t PIE5bits;
1405 #define _PID1DIE 0x01
1406 #define _PID1EIE 0x02
1407 #define _AT1IE 0x04
1408 #define _TMR5IE 0x10
1409 #define _TMR5GIE 0x20
1410 #define _TMR3IE 0x40
1411 #define _TMR3GIE 0x80
1413 //==============================================================================
1416 //==============================================================================
1417 // OPTION_REG Bits
1419 extern __at(0x0095) __sfr OPTION_REG;
1421 typedef union
1423 struct
1425 unsigned PS0 : 1;
1426 unsigned PS1 : 1;
1427 unsigned PS2 : 1;
1428 unsigned PSA : 1;
1429 unsigned TMR0SE : 1;
1430 unsigned TMR0CS : 1;
1431 unsigned INTEDG : 1;
1432 unsigned NOT_WPUEN : 1;
1435 struct
1437 unsigned : 1;
1438 unsigned : 1;
1439 unsigned : 1;
1440 unsigned : 1;
1441 unsigned T0SE : 1;
1442 unsigned T0CS : 1;
1443 unsigned : 1;
1444 unsigned : 1;
1447 struct
1449 unsigned PS : 3;
1450 unsigned : 5;
1452 } __OPTION_REGbits_t;
1454 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1456 #define _OPTION_REG_PS0 0x01
1457 #define _OPTION_REG_PS1 0x02
1458 #define _OPTION_REG_PS2 0x04
1459 #define _OPTION_REG_PSA 0x08
1460 #define _OPTION_REG_TMR0SE 0x10
1461 #define _OPTION_REG_T0SE 0x10
1462 #define _OPTION_REG_TMR0CS 0x20
1463 #define _OPTION_REG_T0CS 0x20
1464 #define _OPTION_REG_INTEDG 0x40
1465 #define _OPTION_REG_NOT_WPUEN 0x80
1467 //==============================================================================
1470 //==============================================================================
1471 // PCON Bits
1473 extern __at(0x0096) __sfr PCON;
1475 typedef struct
1477 unsigned NOT_BOR : 1;
1478 unsigned NOT_POR : 1;
1479 unsigned NOT_RI : 1;
1480 unsigned NOT_RMCLR : 1;
1481 unsigned NOT_RWDT : 1;
1482 unsigned NOT_WDTWV : 1;
1483 unsigned STKUNF : 1;
1484 unsigned STKOVF : 1;
1485 } __PCONbits_t;
1487 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1489 #define _NOT_BOR 0x01
1490 #define _NOT_POR 0x02
1491 #define _NOT_RI 0x04
1492 #define _NOT_RMCLR 0x08
1493 #define _NOT_RWDT 0x10
1494 #define _NOT_WDTWV 0x20
1495 #define _STKUNF 0x40
1496 #define _STKOVF 0x80
1498 //==============================================================================
1501 //==============================================================================
1502 // OSCTUNE Bits
1504 extern __at(0x0098) __sfr OSCTUNE;
1506 typedef union
1508 struct
1510 unsigned TUN0 : 1;
1511 unsigned TUN1 : 1;
1512 unsigned TUN2 : 1;
1513 unsigned TUN3 : 1;
1514 unsigned TUN4 : 1;
1515 unsigned TUN5 : 1;
1516 unsigned : 1;
1517 unsigned : 1;
1520 struct
1522 unsigned TUN : 6;
1523 unsigned : 2;
1525 } __OSCTUNEbits_t;
1527 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1529 #define _TUN0 0x01
1530 #define _TUN1 0x02
1531 #define _TUN2 0x04
1532 #define _TUN3 0x08
1533 #define _TUN4 0x10
1534 #define _TUN5 0x20
1536 //==============================================================================
1539 //==============================================================================
1540 // OSCCON Bits
1542 extern __at(0x0099) __sfr OSCCON;
1544 typedef union
1546 struct
1548 unsigned SCS0 : 1;
1549 unsigned SCS1 : 1;
1550 unsigned : 1;
1551 unsigned IRCF0 : 1;
1552 unsigned IRCF1 : 1;
1553 unsigned IRCF2 : 1;
1554 unsigned IRCF3 : 1;
1555 unsigned SPLLEN : 1;
1558 struct
1560 unsigned SCS : 2;
1561 unsigned : 6;
1564 struct
1566 unsigned : 3;
1567 unsigned IRCF : 4;
1568 unsigned : 1;
1570 } __OSCCONbits_t;
1572 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1574 #define _SCS0 0x01
1575 #define _SCS1 0x02
1576 #define _IRCF0 0x08
1577 #define _IRCF1 0x10
1578 #define _IRCF2 0x20
1579 #define _IRCF3 0x40
1580 #define _SPLLEN 0x80
1582 //==============================================================================
1585 //==============================================================================
1586 // OSCSTAT Bits
1588 extern __at(0x009A) __sfr OSCSTAT;
1590 typedef struct
1592 unsigned HFIOFS : 1;
1593 unsigned LFIOFR : 1;
1594 unsigned MFIOFR : 1;
1595 unsigned HFIOFL : 1;
1596 unsigned HFIOFR : 1;
1597 unsigned OSTS : 1;
1598 unsigned PLLR : 1;
1599 unsigned : 1;
1600 } __OSCSTATbits_t;
1602 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1604 #define _HFIOFS 0x01
1605 #define _LFIOFR 0x02
1606 #define _MFIOFR 0x04
1607 #define _HFIOFL 0x08
1608 #define _HFIOFR 0x10
1609 #define _OSTS 0x20
1610 #define _PLLR 0x40
1612 //==============================================================================
1614 extern __at(0x009B) __sfr ADRES;
1615 extern __at(0x009B) __sfr ADRESL;
1616 extern __at(0x009C) __sfr ADRESH;
1618 //==============================================================================
1619 // ADCON0 Bits
1621 extern __at(0x009D) __sfr ADCON0;
1623 typedef union
1625 struct
1627 unsigned ADON : 1;
1628 unsigned GO_NOT_DONE : 1;
1629 unsigned CHS0 : 1;
1630 unsigned CHS1 : 1;
1631 unsigned CHS2 : 1;
1632 unsigned CHS3 : 1;
1633 unsigned CHS4 : 1;
1634 unsigned : 1;
1637 struct
1639 unsigned : 1;
1640 unsigned ADGO : 1;
1641 unsigned : 1;
1642 unsigned : 1;
1643 unsigned : 1;
1644 unsigned : 1;
1645 unsigned : 1;
1646 unsigned : 1;
1649 struct
1651 unsigned : 1;
1652 unsigned GO : 1;
1653 unsigned : 1;
1654 unsigned : 1;
1655 unsigned : 1;
1656 unsigned : 1;
1657 unsigned : 1;
1658 unsigned : 1;
1661 struct
1663 unsigned : 2;
1664 unsigned CHS : 5;
1665 unsigned : 1;
1667 } __ADCON0bits_t;
1669 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1671 #define _ADON 0x01
1672 #define _GO_NOT_DONE 0x02
1673 #define _ADGO 0x02
1674 #define _GO 0x02
1675 #define _CHS0 0x04
1676 #define _CHS1 0x08
1677 #define _CHS2 0x10
1678 #define _CHS3 0x20
1679 #define _CHS4 0x40
1681 //==============================================================================
1684 //==============================================================================
1685 // ADCON1 Bits
1687 extern __at(0x009E) __sfr ADCON1;
1689 typedef union
1691 struct
1693 unsigned ADPREF0 : 1;
1694 unsigned ADPREF1 : 1;
1695 unsigned : 1;
1696 unsigned : 1;
1697 unsigned ADCS0 : 1;
1698 unsigned ADCS1 : 1;
1699 unsigned ADCS2 : 1;
1700 unsigned ADFM : 1;
1703 struct
1705 unsigned ADPREF : 2;
1706 unsigned : 6;
1709 struct
1711 unsigned : 4;
1712 unsigned ADCS : 3;
1713 unsigned : 1;
1715 } __ADCON1bits_t;
1717 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1719 #define _ADPREF0 0x01
1720 #define _ADPREF1 0x02
1721 #define _ADCS0 0x10
1722 #define _ADCS1 0x20
1723 #define _ADCS2 0x40
1724 #define _ADFM 0x80
1726 //==============================================================================
1729 //==============================================================================
1730 // ADCON2 Bits
1732 extern __at(0x009F) __sfr ADCON2;
1734 typedef union
1736 struct
1738 unsigned : 1;
1739 unsigned : 1;
1740 unsigned : 1;
1741 unsigned : 1;
1742 unsigned TRIGSEL0 : 1;
1743 unsigned TRIGSEL1 : 1;
1744 unsigned TRIGSEL2 : 1;
1745 unsigned TRIGSEL3 : 1;
1748 struct
1750 unsigned : 4;
1751 unsigned TRIGSEL : 4;
1753 } __ADCON2bits_t;
1755 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1757 #define _TRIGSEL0 0x10
1758 #define _TRIGSEL1 0x20
1759 #define _TRIGSEL2 0x40
1760 #define _TRIGSEL3 0x80
1762 //==============================================================================
1765 //==============================================================================
1766 // LATA Bits
1768 extern __at(0x010C) __sfr LATA;
1770 typedef union
1772 struct
1774 unsigned LATA0 : 1;
1775 unsigned LATA1 : 1;
1776 unsigned LATA2 : 1;
1777 unsigned LATA3 : 1;
1778 unsigned LATA4 : 1;
1779 unsigned LATA5 : 1;
1780 unsigned : 1;
1781 unsigned : 1;
1784 struct
1786 unsigned LATA : 6;
1787 unsigned : 2;
1789 } __LATAbits_t;
1791 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1793 #define _LATA0 0x01
1794 #define _LATA1 0x02
1795 #define _LATA2 0x04
1796 #define _LATA3 0x08
1797 #define _LATA4 0x10
1798 #define _LATA5 0x20
1800 //==============================================================================
1803 //==============================================================================
1804 // LATC Bits
1806 extern __at(0x010E) __sfr LATC;
1808 typedef union
1810 struct
1812 unsigned LATC0 : 1;
1813 unsigned LATC1 : 1;
1814 unsigned LATC2 : 1;
1815 unsigned LATC3 : 1;
1816 unsigned LATC4 : 1;
1817 unsigned LATC5 : 1;
1818 unsigned : 1;
1819 unsigned : 1;
1822 struct
1824 unsigned LATC : 6;
1825 unsigned : 2;
1827 } __LATCbits_t;
1829 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1831 #define _LATC0 0x01
1832 #define _LATC1 0x02
1833 #define _LATC2 0x04
1834 #define _LATC3 0x08
1835 #define _LATC4 0x10
1836 #define _LATC5 0x20
1838 //==============================================================================
1841 //==============================================================================
1842 // CM1CON0 Bits
1844 extern __at(0x0111) __sfr CM1CON0;
1846 typedef struct
1848 unsigned C1SYNC : 1;
1849 unsigned C1HYS : 1;
1850 unsigned C1SP : 1;
1851 unsigned : 1;
1852 unsigned C1POL : 1;
1853 unsigned : 1;
1854 unsigned C1OUT : 1;
1855 unsigned C1ON : 1;
1856 } __CM1CON0bits_t;
1858 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1860 #define _C1SYNC 0x01
1861 #define _C1HYS 0x02
1862 #define _C1SP 0x04
1863 #define _C1POL 0x10
1864 #define _C1OUT 0x40
1865 #define _C1ON 0x80
1867 //==============================================================================
1870 //==============================================================================
1871 // CM1CON1 Bits
1873 extern __at(0x0112) __sfr CM1CON1;
1875 typedef union
1877 struct
1879 unsigned C1NCH0 : 1;
1880 unsigned C1NCH1 : 1;
1881 unsigned C1NCH2 : 1;
1882 unsigned : 1;
1883 unsigned C1PCH0 : 1;
1884 unsigned C1PCH1 : 1;
1885 unsigned C1INTN : 1;
1886 unsigned C1INTP : 1;
1889 struct
1891 unsigned C1NCH : 3;
1892 unsigned : 5;
1895 struct
1897 unsigned : 4;
1898 unsigned C1PCH : 2;
1899 unsigned : 2;
1901 } __CM1CON1bits_t;
1903 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1905 #define _C1NCH0 0x01
1906 #define _C1NCH1 0x02
1907 #define _C1NCH2 0x04
1908 #define _C1PCH0 0x10
1909 #define _C1PCH1 0x20
1910 #define _C1INTN 0x40
1911 #define _C1INTP 0x80
1913 //==============================================================================
1916 //==============================================================================
1917 // CM2CON0 Bits
1919 extern __at(0x0113) __sfr CM2CON0;
1921 typedef struct
1923 unsigned C2SYNC : 1;
1924 unsigned C2HYS : 1;
1925 unsigned C2SP : 1;
1926 unsigned : 1;
1927 unsigned C2POL : 1;
1928 unsigned : 1;
1929 unsigned C2OUT : 1;
1930 unsigned C2ON : 1;
1931 } __CM2CON0bits_t;
1933 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
1935 #define _C2SYNC 0x01
1936 #define _C2HYS 0x02
1937 #define _C2SP 0x04
1938 #define _C2POL 0x10
1939 #define _C2OUT 0x40
1940 #define _C2ON 0x80
1942 //==============================================================================
1945 //==============================================================================
1946 // CM2CON1 Bits
1948 extern __at(0x0114) __sfr CM2CON1;
1950 typedef union
1952 struct
1954 unsigned C2NCH0 : 1;
1955 unsigned C2NCH1 : 1;
1956 unsigned C2NCH2 : 1;
1957 unsigned : 1;
1958 unsigned C2PCH0 : 1;
1959 unsigned C2PCH1 : 1;
1960 unsigned C2INTN : 1;
1961 unsigned C2INTP : 1;
1964 struct
1966 unsigned C2NCH : 3;
1967 unsigned : 5;
1970 struct
1972 unsigned : 4;
1973 unsigned C2PCH : 2;
1974 unsigned : 2;
1976 } __CM2CON1bits_t;
1978 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
1980 #define _C2NCH0 0x01
1981 #define _C2NCH1 0x02
1982 #define _C2NCH2 0x04
1983 #define _C2PCH0 0x10
1984 #define _C2PCH1 0x20
1985 #define _C2INTN 0x40
1986 #define _C2INTP 0x80
1988 //==============================================================================
1991 //==============================================================================
1992 // CMOUT Bits
1994 extern __at(0x0115) __sfr CMOUT;
1996 typedef struct
1998 unsigned MC1OUT : 1;
1999 unsigned MC2OUT : 1;
2000 unsigned : 1;
2001 unsigned : 1;
2002 unsigned : 1;
2003 unsigned : 1;
2004 unsigned : 1;
2005 unsigned : 1;
2006 } __CMOUTbits_t;
2008 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
2010 #define _MC1OUT 0x01
2011 #define _MC2OUT 0x02
2013 //==============================================================================
2016 //==============================================================================
2017 // BORCON Bits
2019 extern __at(0x0116) __sfr BORCON;
2021 typedef struct
2023 unsigned BORRDY : 1;
2024 unsigned : 1;
2025 unsigned : 1;
2026 unsigned : 1;
2027 unsigned : 1;
2028 unsigned : 1;
2029 unsigned BORFS : 1;
2030 unsigned SBOREN : 1;
2031 } __BORCONbits_t;
2033 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
2035 #define _BORRDY 0x01
2036 #define _BORFS 0x40
2037 #define _SBOREN 0x80
2039 //==============================================================================
2042 //==============================================================================
2043 // FVRCON Bits
2045 extern __at(0x0117) __sfr FVRCON;
2047 typedef union
2049 struct
2051 unsigned ADFVR0 : 1;
2052 unsigned ADFVR1 : 1;
2053 unsigned CDAFVR0 : 1;
2054 unsigned CDAFVR1 : 1;
2055 unsigned TSRNG : 1;
2056 unsigned TSEN : 1;
2057 unsigned FVRRDY : 1;
2058 unsigned FVREN : 1;
2061 struct
2063 unsigned ADFVR : 2;
2064 unsigned : 6;
2067 struct
2069 unsigned : 2;
2070 unsigned CDAFVR : 2;
2071 unsigned : 4;
2073 } __FVRCONbits_t;
2075 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
2077 #define _ADFVR0 0x01
2078 #define _ADFVR1 0x02
2079 #define _CDAFVR0 0x04
2080 #define _CDAFVR1 0x08
2081 #define _TSRNG 0x10
2082 #define _TSEN 0x20
2083 #define _FVRRDY 0x40
2084 #define _FVREN 0x80
2086 //==============================================================================
2089 //==============================================================================
2090 // DAC1CON0 Bits
2092 extern __at(0x0118) __sfr DAC1CON0;
2094 typedef union
2096 struct
2098 unsigned : 1;
2099 unsigned : 1;
2100 unsigned D1PSS0 : 1;
2101 unsigned D1PSS1 : 1;
2102 unsigned : 1;
2103 unsigned DAC1OE : 1;
2104 unsigned : 1;
2105 unsigned DAC1EN : 1;
2108 struct
2110 unsigned : 2;
2111 unsigned D1PSS : 2;
2112 unsigned : 4;
2114 } __DAC1CON0bits_t;
2116 extern __at(0x0118) volatile __DAC1CON0bits_t DAC1CON0bits;
2118 #define _D1PSS0 0x04
2119 #define _D1PSS1 0x08
2120 #define _DAC1OE 0x20
2121 #define _DAC1EN 0x80
2123 //==============================================================================
2126 //==============================================================================
2127 // DAC1CON1 Bits
2129 extern __at(0x0119) __sfr DAC1CON1;
2131 typedef struct
2133 unsigned DAC1R0 : 1;
2134 unsigned DAC1R1 : 1;
2135 unsigned DAC1R2 : 1;
2136 unsigned DAC1R3 : 1;
2137 unsigned DAC1R4 : 1;
2138 unsigned DAC1R5 : 1;
2139 unsigned DAC1R6 : 1;
2140 unsigned DAC1R7 : 1;
2141 } __DAC1CON1bits_t;
2143 extern __at(0x0119) volatile __DAC1CON1bits_t DAC1CON1bits;
2145 #define _DAC1R0 0x01
2146 #define _DAC1R1 0x02
2147 #define _DAC1R2 0x04
2148 #define _DAC1R3 0x08
2149 #define _DAC1R4 0x10
2150 #define _DAC1R5 0x20
2151 #define _DAC1R6 0x40
2152 #define _DAC1R7 0x80
2154 //==============================================================================
2157 //==============================================================================
2158 // ZCD1CON Bits
2160 extern __at(0x011C) __sfr ZCD1CON;
2162 typedef struct
2164 unsigned ZCD1INTN : 1;
2165 unsigned ZCD1INTP : 1;
2166 unsigned : 1;
2167 unsigned : 1;
2168 unsigned ZCD1POL : 1;
2169 unsigned ZCD1OUT : 1;
2170 unsigned : 1;
2171 unsigned ZCD1EN : 1;
2172 } __ZCD1CONbits_t;
2174 extern __at(0x011C) volatile __ZCD1CONbits_t ZCD1CONbits;
2176 #define _ZCD1INTN 0x01
2177 #define _ZCD1INTP 0x02
2178 #define _ZCD1POL 0x10
2179 #define _ZCD1OUT 0x20
2180 #define _ZCD1EN 0x80
2182 //==============================================================================
2185 //==============================================================================
2186 // ANSELA Bits
2188 extern __at(0x018C) __sfr ANSELA;
2190 typedef struct
2192 unsigned ANSA0 : 1;
2193 unsigned ANSA1 : 1;
2194 unsigned ANSA2 : 1;
2195 unsigned : 1;
2196 unsigned ANSA4 : 1;
2197 unsigned : 1;
2198 unsigned : 1;
2199 unsigned : 1;
2200 } __ANSELAbits_t;
2202 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2204 #define _ANSA0 0x01
2205 #define _ANSA1 0x02
2206 #define _ANSA2 0x04
2207 #define _ANSA4 0x10
2209 //==============================================================================
2212 //==============================================================================
2213 // ANSELC Bits
2215 extern __at(0x018E) __sfr ANSELC;
2217 typedef union
2219 struct
2221 unsigned ANSC0 : 1;
2222 unsigned ANSC1 : 1;
2223 unsigned ANSC2 : 1;
2224 unsigned ANSC3 : 1;
2225 unsigned : 1;
2226 unsigned : 1;
2227 unsigned : 1;
2228 unsigned : 1;
2231 struct
2233 unsigned ANSC : 4;
2234 unsigned : 4;
2236 } __ANSELCbits_t;
2238 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2240 #define _ANSC0 0x01
2241 #define _ANSC1 0x02
2242 #define _ANSC2 0x04
2243 #define _ANSC3 0x08
2245 //==============================================================================
2247 extern __at(0x0191) __sfr PMADR;
2248 extern __at(0x0191) __sfr PMADRL;
2249 extern __at(0x0192) __sfr PMADRH;
2250 extern __at(0x0193) __sfr PMDAT;
2251 extern __at(0x0193) __sfr PMDATL;
2252 extern __at(0x0194) __sfr PMDATH;
2254 //==============================================================================
2255 // PMCON1 Bits
2257 extern __at(0x0195) __sfr PMCON1;
2259 typedef struct
2261 unsigned RD : 1;
2262 unsigned WR : 1;
2263 unsigned WREN : 1;
2264 unsigned WRERR : 1;
2265 unsigned FREE : 1;
2266 unsigned LWLO : 1;
2267 unsigned CFGS : 1;
2268 unsigned : 1;
2269 } __PMCON1bits_t;
2271 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
2273 #define _RD 0x01
2274 #define _WR 0x02
2275 #define _WREN 0x04
2276 #define _WRERR 0x08
2277 #define _FREE 0x10
2278 #define _LWLO 0x20
2279 #define _CFGS 0x40
2281 //==============================================================================
2283 extern __at(0x0196) __sfr PMCON2;
2284 extern __at(0x0199) __sfr RC1REG;
2285 extern __at(0x0199) __sfr RCREG;
2286 extern __at(0x0199) __sfr RCREG1;
2287 extern __at(0x019A) __sfr TX1REG;
2288 extern __at(0x019A) __sfr TXREG;
2289 extern __at(0x019A) __sfr TXREG1;
2290 extern __at(0x019B) __sfr SP1BRG;
2291 extern __at(0x019B) __sfr SP1BRGL;
2292 extern __at(0x019B) __sfr SPBRG;
2293 extern __at(0x019B) __sfr SPBRG1;
2294 extern __at(0x019B) __sfr SPBRGL;
2295 extern __at(0x019C) __sfr SP1BRGH;
2296 extern __at(0x019C) __sfr SPBRGH;
2297 extern __at(0x019C) __sfr SPBRGH1;
2299 //==============================================================================
2300 // RC1STA Bits
2302 extern __at(0x019D) __sfr RC1STA;
2304 typedef struct
2306 unsigned RX9D : 1;
2307 unsigned OERR : 1;
2308 unsigned FERR : 1;
2309 unsigned ADDEN : 1;
2310 unsigned CREN : 1;
2311 unsigned SREN : 1;
2312 unsigned RX9 : 1;
2313 unsigned SPEN : 1;
2314 } __RC1STAbits_t;
2316 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2318 #define _RX9D 0x01
2319 #define _OERR 0x02
2320 #define _FERR 0x04
2321 #define _ADDEN 0x08
2322 #define _CREN 0x10
2323 #define _SREN 0x20
2324 #define _RX9 0x40
2325 #define _SPEN 0x80
2327 //==============================================================================
2330 //==============================================================================
2331 // RCSTA Bits
2333 extern __at(0x019D) __sfr RCSTA;
2335 typedef struct
2337 unsigned RX9D : 1;
2338 unsigned OERR : 1;
2339 unsigned FERR : 1;
2340 unsigned ADDEN : 1;
2341 unsigned CREN : 1;
2342 unsigned SREN : 1;
2343 unsigned RX9 : 1;
2344 unsigned SPEN : 1;
2345 } __RCSTAbits_t;
2347 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2349 #define _RCSTA_RX9D 0x01
2350 #define _RCSTA_OERR 0x02
2351 #define _RCSTA_FERR 0x04
2352 #define _RCSTA_ADDEN 0x08
2353 #define _RCSTA_CREN 0x10
2354 #define _RCSTA_SREN 0x20
2355 #define _RCSTA_RX9 0x40
2356 #define _RCSTA_SPEN 0x80
2358 //==============================================================================
2361 //==============================================================================
2362 // RCSTA1 Bits
2364 extern __at(0x019D) __sfr RCSTA1;
2366 typedef struct
2368 unsigned RX9D : 1;
2369 unsigned OERR : 1;
2370 unsigned FERR : 1;
2371 unsigned ADDEN : 1;
2372 unsigned CREN : 1;
2373 unsigned SREN : 1;
2374 unsigned RX9 : 1;
2375 unsigned SPEN : 1;
2376 } __RCSTA1bits_t;
2378 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2380 #define _RCSTA1_RX9D 0x01
2381 #define _RCSTA1_OERR 0x02
2382 #define _RCSTA1_FERR 0x04
2383 #define _RCSTA1_ADDEN 0x08
2384 #define _RCSTA1_CREN 0x10
2385 #define _RCSTA1_SREN 0x20
2386 #define _RCSTA1_RX9 0x40
2387 #define _RCSTA1_SPEN 0x80
2389 //==============================================================================
2392 //==============================================================================
2393 // TX1STA Bits
2395 extern __at(0x019E) __sfr TX1STA;
2397 typedef struct
2399 unsigned TX9D : 1;
2400 unsigned TRMT : 1;
2401 unsigned BRGH : 1;
2402 unsigned SENDB : 1;
2403 unsigned SYNC : 1;
2404 unsigned TXEN : 1;
2405 unsigned TX9 : 1;
2406 unsigned CSRC : 1;
2407 } __TX1STAbits_t;
2409 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
2411 #define _TX9D 0x01
2412 #define _TRMT 0x02
2413 #define _BRGH 0x04
2414 #define _SENDB 0x08
2415 #define _SYNC 0x10
2416 #define _TXEN 0x20
2417 #define _TX9 0x40
2418 #define _CSRC 0x80
2420 //==============================================================================
2423 //==============================================================================
2424 // TXSTA Bits
2426 extern __at(0x019E) __sfr TXSTA;
2428 typedef struct
2430 unsigned TX9D : 1;
2431 unsigned TRMT : 1;
2432 unsigned BRGH : 1;
2433 unsigned SENDB : 1;
2434 unsigned SYNC : 1;
2435 unsigned TXEN : 1;
2436 unsigned TX9 : 1;
2437 unsigned CSRC : 1;
2438 } __TXSTAbits_t;
2440 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
2442 #define _TXSTA_TX9D 0x01
2443 #define _TXSTA_TRMT 0x02
2444 #define _TXSTA_BRGH 0x04
2445 #define _TXSTA_SENDB 0x08
2446 #define _TXSTA_SYNC 0x10
2447 #define _TXSTA_TXEN 0x20
2448 #define _TXSTA_TX9 0x40
2449 #define _TXSTA_CSRC 0x80
2451 //==============================================================================
2454 //==============================================================================
2455 // TXSTA1 Bits
2457 extern __at(0x019E) __sfr TXSTA1;
2459 typedef struct
2461 unsigned TX9D : 1;
2462 unsigned TRMT : 1;
2463 unsigned BRGH : 1;
2464 unsigned SENDB : 1;
2465 unsigned SYNC : 1;
2466 unsigned TXEN : 1;
2467 unsigned TX9 : 1;
2468 unsigned CSRC : 1;
2469 } __TXSTA1bits_t;
2471 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
2473 #define _TXSTA1_TX9D 0x01
2474 #define _TXSTA1_TRMT 0x02
2475 #define _TXSTA1_BRGH 0x04
2476 #define _TXSTA1_SENDB 0x08
2477 #define _TXSTA1_SYNC 0x10
2478 #define _TXSTA1_TXEN 0x20
2479 #define _TXSTA1_TX9 0x40
2480 #define _TXSTA1_CSRC 0x80
2482 //==============================================================================
2485 //==============================================================================
2486 // BAUD1CON Bits
2488 extern __at(0x019F) __sfr BAUD1CON;
2490 typedef struct
2492 unsigned ABDEN : 1;
2493 unsigned WUE : 1;
2494 unsigned : 1;
2495 unsigned BRG16 : 1;
2496 unsigned SCKP : 1;
2497 unsigned : 1;
2498 unsigned RCIDL : 1;
2499 unsigned ABDOVF : 1;
2500 } __BAUD1CONbits_t;
2502 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
2504 #define _ABDEN 0x01
2505 #define _WUE 0x02
2506 #define _BRG16 0x08
2507 #define _SCKP 0x10
2508 #define _RCIDL 0x40
2509 #define _ABDOVF 0x80
2511 //==============================================================================
2514 //==============================================================================
2515 // BAUDCON Bits
2517 extern __at(0x019F) __sfr BAUDCON;
2519 typedef struct
2521 unsigned ABDEN : 1;
2522 unsigned WUE : 1;
2523 unsigned : 1;
2524 unsigned BRG16 : 1;
2525 unsigned SCKP : 1;
2526 unsigned : 1;
2527 unsigned RCIDL : 1;
2528 unsigned ABDOVF : 1;
2529 } __BAUDCONbits_t;
2531 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
2533 #define _BAUDCON_ABDEN 0x01
2534 #define _BAUDCON_WUE 0x02
2535 #define _BAUDCON_BRG16 0x08
2536 #define _BAUDCON_SCKP 0x10
2537 #define _BAUDCON_RCIDL 0x40
2538 #define _BAUDCON_ABDOVF 0x80
2540 //==============================================================================
2543 //==============================================================================
2544 // BAUDCON1 Bits
2546 extern __at(0x019F) __sfr BAUDCON1;
2548 typedef struct
2550 unsigned ABDEN : 1;
2551 unsigned WUE : 1;
2552 unsigned : 1;
2553 unsigned BRG16 : 1;
2554 unsigned SCKP : 1;
2555 unsigned : 1;
2556 unsigned RCIDL : 1;
2557 unsigned ABDOVF : 1;
2558 } __BAUDCON1bits_t;
2560 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
2562 #define _BAUDCON1_ABDEN 0x01
2563 #define _BAUDCON1_WUE 0x02
2564 #define _BAUDCON1_BRG16 0x08
2565 #define _BAUDCON1_SCKP 0x10
2566 #define _BAUDCON1_RCIDL 0x40
2567 #define _BAUDCON1_ABDOVF 0x80
2569 //==============================================================================
2572 //==============================================================================
2573 // BAUDCTL Bits
2575 extern __at(0x019F) __sfr BAUDCTL;
2577 typedef struct
2579 unsigned ABDEN : 1;
2580 unsigned WUE : 1;
2581 unsigned : 1;
2582 unsigned BRG16 : 1;
2583 unsigned SCKP : 1;
2584 unsigned : 1;
2585 unsigned RCIDL : 1;
2586 unsigned ABDOVF : 1;
2587 } __BAUDCTLbits_t;
2589 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
2591 #define _BAUDCTL_ABDEN 0x01
2592 #define _BAUDCTL_WUE 0x02
2593 #define _BAUDCTL_BRG16 0x08
2594 #define _BAUDCTL_SCKP 0x10
2595 #define _BAUDCTL_RCIDL 0x40
2596 #define _BAUDCTL_ABDOVF 0x80
2598 //==============================================================================
2601 //==============================================================================
2602 // BAUDCTL1 Bits
2604 extern __at(0x019F) __sfr BAUDCTL1;
2606 typedef struct
2608 unsigned ABDEN : 1;
2609 unsigned WUE : 1;
2610 unsigned : 1;
2611 unsigned BRG16 : 1;
2612 unsigned SCKP : 1;
2613 unsigned : 1;
2614 unsigned RCIDL : 1;
2615 unsigned ABDOVF : 1;
2616 } __BAUDCTL1bits_t;
2618 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
2620 #define _BAUDCTL1_ABDEN 0x01
2621 #define _BAUDCTL1_WUE 0x02
2622 #define _BAUDCTL1_BRG16 0x08
2623 #define _BAUDCTL1_SCKP 0x10
2624 #define _BAUDCTL1_RCIDL 0x40
2625 #define _BAUDCTL1_ABDOVF 0x80
2627 //==============================================================================
2630 //==============================================================================
2631 // WPUA Bits
2633 extern __at(0x020C) __sfr WPUA;
2635 typedef union
2637 struct
2639 unsigned WPUA0 : 1;
2640 unsigned WPUA1 : 1;
2641 unsigned WPUA2 : 1;
2642 unsigned WPUA3 : 1;
2643 unsigned WPUA4 : 1;
2644 unsigned WPUA5 : 1;
2645 unsigned : 1;
2646 unsigned : 1;
2649 struct
2651 unsigned WPUA : 6;
2652 unsigned : 2;
2654 } __WPUAbits_t;
2656 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
2658 #define _WPUA0 0x01
2659 #define _WPUA1 0x02
2660 #define _WPUA2 0x04
2661 #define _WPUA3 0x08
2662 #define _WPUA4 0x10
2663 #define _WPUA5 0x20
2665 //==============================================================================
2668 //==============================================================================
2669 // WPUC Bits
2671 extern __at(0x020E) __sfr WPUC;
2673 typedef union
2675 struct
2677 unsigned WPUC0 : 1;
2678 unsigned WPUC1 : 1;
2679 unsigned WPUC2 : 1;
2680 unsigned WPUC3 : 1;
2681 unsigned WPUC4 : 1;
2682 unsigned WPUC5 : 1;
2683 unsigned : 1;
2684 unsigned : 1;
2687 struct
2689 unsigned WPUC : 6;
2690 unsigned : 2;
2692 } __WPUCbits_t;
2694 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
2696 #define _WPUC0 0x01
2697 #define _WPUC1 0x02
2698 #define _WPUC2 0x04
2699 #define _WPUC3 0x08
2700 #define _WPUC4 0x10
2701 #define _WPUC5 0x20
2703 //==============================================================================
2706 //==============================================================================
2707 // SSP1BUF Bits
2709 extern __at(0x0211) __sfr SSP1BUF;
2711 typedef union
2713 struct
2715 unsigned SSP1BUF0 : 1;
2716 unsigned SSP1BUF1 : 1;
2717 unsigned SSP1BUF2 : 1;
2718 unsigned SSP1BUF3 : 1;
2719 unsigned SSP1BUF4 : 1;
2720 unsigned SSP1BUF5 : 1;
2721 unsigned SSP1BUF6 : 1;
2722 unsigned SSP1BUF7 : 1;
2725 struct
2727 unsigned BUF0 : 1;
2728 unsigned BUF1 : 1;
2729 unsigned BUF2 : 1;
2730 unsigned BUF3 : 1;
2731 unsigned BUF4 : 1;
2732 unsigned BUF5 : 1;
2733 unsigned BUF6 : 1;
2734 unsigned BUF7 : 1;
2736 } __SSP1BUFbits_t;
2738 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
2740 #define _SSP1BUF0 0x01
2741 #define _BUF0 0x01
2742 #define _SSP1BUF1 0x02
2743 #define _BUF1 0x02
2744 #define _SSP1BUF2 0x04
2745 #define _BUF2 0x04
2746 #define _SSP1BUF3 0x08
2747 #define _BUF3 0x08
2748 #define _SSP1BUF4 0x10
2749 #define _BUF4 0x10
2750 #define _SSP1BUF5 0x20
2751 #define _BUF5 0x20
2752 #define _SSP1BUF6 0x40
2753 #define _BUF6 0x40
2754 #define _SSP1BUF7 0x80
2755 #define _BUF7 0x80
2757 //==============================================================================
2760 //==============================================================================
2761 // SSPBUF Bits
2763 extern __at(0x0211) __sfr SSPBUF;
2765 typedef union
2767 struct
2769 unsigned SSP1BUF0 : 1;
2770 unsigned SSP1BUF1 : 1;
2771 unsigned SSP1BUF2 : 1;
2772 unsigned SSP1BUF3 : 1;
2773 unsigned SSP1BUF4 : 1;
2774 unsigned SSP1BUF5 : 1;
2775 unsigned SSP1BUF6 : 1;
2776 unsigned SSP1BUF7 : 1;
2779 struct
2781 unsigned BUF0 : 1;
2782 unsigned BUF1 : 1;
2783 unsigned BUF2 : 1;
2784 unsigned BUF3 : 1;
2785 unsigned BUF4 : 1;
2786 unsigned BUF5 : 1;
2787 unsigned BUF6 : 1;
2788 unsigned BUF7 : 1;
2790 } __SSPBUFbits_t;
2792 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
2794 #define _SSPBUF_SSP1BUF0 0x01
2795 #define _SSPBUF_BUF0 0x01
2796 #define _SSPBUF_SSP1BUF1 0x02
2797 #define _SSPBUF_BUF1 0x02
2798 #define _SSPBUF_SSP1BUF2 0x04
2799 #define _SSPBUF_BUF2 0x04
2800 #define _SSPBUF_SSP1BUF3 0x08
2801 #define _SSPBUF_BUF3 0x08
2802 #define _SSPBUF_SSP1BUF4 0x10
2803 #define _SSPBUF_BUF4 0x10
2804 #define _SSPBUF_SSP1BUF5 0x20
2805 #define _SSPBUF_BUF5 0x20
2806 #define _SSPBUF_SSP1BUF6 0x40
2807 #define _SSPBUF_BUF6 0x40
2808 #define _SSPBUF_SSP1BUF7 0x80
2809 #define _SSPBUF_BUF7 0x80
2811 //==============================================================================
2814 //==============================================================================
2815 // SSP1ADD Bits
2817 extern __at(0x0212) __sfr SSP1ADD;
2819 typedef union
2821 struct
2823 unsigned SSP1ADD0 : 1;
2824 unsigned SSP1ADD1 : 1;
2825 unsigned SSP1ADD2 : 1;
2826 unsigned SSP1ADD3 : 1;
2827 unsigned SSP1ADD4 : 1;
2828 unsigned SSP1ADD5 : 1;
2829 unsigned SSP1ADD6 : 1;
2830 unsigned SSP1ADD7 : 1;
2833 struct
2835 unsigned ADD0 : 1;
2836 unsigned ADD1 : 1;
2837 unsigned ADD2 : 1;
2838 unsigned ADD3 : 1;
2839 unsigned ADD4 : 1;
2840 unsigned ADD5 : 1;
2841 unsigned ADD6 : 1;
2842 unsigned ADD7 : 1;
2844 } __SSP1ADDbits_t;
2846 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
2848 #define _SSP1ADD0 0x01
2849 #define _ADD0 0x01
2850 #define _SSP1ADD1 0x02
2851 #define _ADD1 0x02
2852 #define _SSP1ADD2 0x04
2853 #define _ADD2 0x04
2854 #define _SSP1ADD3 0x08
2855 #define _ADD3 0x08
2856 #define _SSP1ADD4 0x10
2857 #define _ADD4 0x10
2858 #define _SSP1ADD5 0x20
2859 #define _ADD5 0x20
2860 #define _SSP1ADD6 0x40
2861 #define _ADD6 0x40
2862 #define _SSP1ADD7 0x80
2863 #define _ADD7 0x80
2865 //==============================================================================
2868 //==============================================================================
2869 // SSPADD Bits
2871 extern __at(0x0212) __sfr SSPADD;
2873 typedef union
2875 struct
2877 unsigned SSP1ADD0 : 1;
2878 unsigned SSP1ADD1 : 1;
2879 unsigned SSP1ADD2 : 1;
2880 unsigned SSP1ADD3 : 1;
2881 unsigned SSP1ADD4 : 1;
2882 unsigned SSP1ADD5 : 1;
2883 unsigned SSP1ADD6 : 1;
2884 unsigned SSP1ADD7 : 1;
2887 struct
2889 unsigned ADD0 : 1;
2890 unsigned ADD1 : 1;
2891 unsigned ADD2 : 1;
2892 unsigned ADD3 : 1;
2893 unsigned ADD4 : 1;
2894 unsigned ADD5 : 1;
2895 unsigned ADD6 : 1;
2896 unsigned ADD7 : 1;
2898 } __SSPADDbits_t;
2900 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
2902 #define _SSPADD_SSP1ADD0 0x01
2903 #define _SSPADD_ADD0 0x01
2904 #define _SSPADD_SSP1ADD1 0x02
2905 #define _SSPADD_ADD1 0x02
2906 #define _SSPADD_SSP1ADD2 0x04
2907 #define _SSPADD_ADD2 0x04
2908 #define _SSPADD_SSP1ADD3 0x08
2909 #define _SSPADD_ADD3 0x08
2910 #define _SSPADD_SSP1ADD4 0x10
2911 #define _SSPADD_ADD4 0x10
2912 #define _SSPADD_SSP1ADD5 0x20
2913 #define _SSPADD_ADD5 0x20
2914 #define _SSPADD_SSP1ADD6 0x40
2915 #define _SSPADD_ADD6 0x40
2916 #define _SSPADD_SSP1ADD7 0x80
2917 #define _SSPADD_ADD7 0x80
2919 //==============================================================================
2922 //==============================================================================
2923 // SSP1MSK Bits
2925 extern __at(0x0213) __sfr SSP1MSK;
2927 typedef union
2929 struct
2931 unsigned SSP1MSK0 : 1;
2932 unsigned SSP1MSK1 : 1;
2933 unsigned SSP1MSK2 : 1;
2934 unsigned SSP1MSK3 : 1;
2935 unsigned SSP1MSK4 : 1;
2936 unsigned SSP1MSK5 : 1;
2937 unsigned SSP1MSK6 : 1;
2938 unsigned SSP1MSK7 : 1;
2941 struct
2943 unsigned MSK0 : 1;
2944 unsigned MSK1 : 1;
2945 unsigned MSK2 : 1;
2946 unsigned MSK3 : 1;
2947 unsigned MSK4 : 1;
2948 unsigned MSK5 : 1;
2949 unsigned MSK6 : 1;
2950 unsigned MSK7 : 1;
2952 } __SSP1MSKbits_t;
2954 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
2956 #define _SSP1MSK0 0x01
2957 #define _MSK0 0x01
2958 #define _SSP1MSK1 0x02
2959 #define _MSK1 0x02
2960 #define _SSP1MSK2 0x04
2961 #define _MSK2 0x04
2962 #define _SSP1MSK3 0x08
2963 #define _MSK3 0x08
2964 #define _SSP1MSK4 0x10
2965 #define _MSK4 0x10
2966 #define _SSP1MSK5 0x20
2967 #define _MSK5 0x20
2968 #define _SSP1MSK6 0x40
2969 #define _MSK6 0x40
2970 #define _SSP1MSK7 0x80
2971 #define _MSK7 0x80
2973 //==============================================================================
2976 //==============================================================================
2977 // SSPMSK Bits
2979 extern __at(0x0213) __sfr SSPMSK;
2981 typedef union
2983 struct
2985 unsigned SSP1MSK0 : 1;
2986 unsigned SSP1MSK1 : 1;
2987 unsigned SSP1MSK2 : 1;
2988 unsigned SSP1MSK3 : 1;
2989 unsigned SSP1MSK4 : 1;
2990 unsigned SSP1MSK5 : 1;
2991 unsigned SSP1MSK6 : 1;
2992 unsigned SSP1MSK7 : 1;
2995 struct
2997 unsigned MSK0 : 1;
2998 unsigned MSK1 : 1;
2999 unsigned MSK2 : 1;
3000 unsigned MSK3 : 1;
3001 unsigned MSK4 : 1;
3002 unsigned MSK5 : 1;
3003 unsigned MSK6 : 1;
3004 unsigned MSK7 : 1;
3006 } __SSPMSKbits_t;
3008 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3010 #define _SSPMSK_SSP1MSK0 0x01
3011 #define _SSPMSK_MSK0 0x01
3012 #define _SSPMSK_SSP1MSK1 0x02
3013 #define _SSPMSK_MSK1 0x02
3014 #define _SSPMSK_SSP1MSK2 0x04
3015 #define _SSPMSK_MSK2 0x04
3016 #define _SSPMSK_SSP1MSK3 0x08
3017 #define _SSPMSK_MSK3 0x08
3018 #define _SSPMSK_SSP1MSK4 0x10
3019 #define _SSPMSK_MSK4 0x10
3020 #define _SSPMSK_SSP1MSK5 0x20
3021 #define _SSPMSK_MSK5 0x20
3022 #define _SSPMSK_SSP1MSK6 0x40
3023 #define _SSPMSK_MSK6 0x40
3024 #define _SSPMSK_SSP1MSK7 0x80
3025 #define _SSPMSK_MSK7 0x80
3027 //==============================================================================
3030 //==============================================================================
3031 // SSP1STAT Bits
3033 extern __at(0x0214) __sfr SSP1STAT;
3035 typedef struct
3037 unsigned BF : 1;
3038 unsigned UA : 1;
3039 unsigned R_NOT_W : 1;
3040 unsigned S : 1;
3041 unsigned P : 1;
3042 unsigned D_NOT_A : 1;
3043 unsigned CKE : 1;
3044 unsigned SMP : 1;
3045 } __SSP1STATbits_t;
3047 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3049 #define _BF 0x01
3050 #define _UA 0x02
3051 #define _R_NOT_W 0x04
3052 #define _S 0x08
3053 #define _P 0x10
3054 #define _D_NOT_A 0x20
3055 #define _CKE 0x40
3056 #define _SMP 0x80
3058 //==============================================================================
3061 //==============================================================================
3062 // SSPSTAT Bits
3064 extern __at(0x0214) __sfr SSPSTAT;
3066 typedef struct
3068 unsigned BF : 1;
3069 unsigned UA : 1;
3070 unsigned R_NOT_W : 1;
3071 unsigned S : 1;
3072 unsigned P : 1;
3073 unsigned D_NOT_A : 1;
3074 unsigned CKE : 1;
3075 unsigned SMP : 1;
3076 } __SSPSTATbits_t;
3078 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3080 #define _SSPSTAT_BF 0x01
3081 #define _SSPSTAT_UA 0x02
3082 #define _SSPSTAT_R_NOT_W 0x04
3083 #define _SSPSTAT_S 0x08
3084 #define _SSPSTAT_P 0x10
3085 #define _SSPSTAT_D_NOT_A 0x20
3086 #define _SSPSTAT_CKE 0x40
3087 #define _SSPSTAT_SMP 0x80
3089 //==============================================================================
3092 //==============================================================================
3093 // SSP1CON Bits
3095 extern __at(0x0215) __sfr SSP1CON;
3097 typedef union
3099 struct
3101 unsigned SSPM0 : 1;
3102 unsigned SSPM1 : 1;
3103 unsigned SSPM2 : 1;
3104 unsigned SSPM3 : 1;
3105 unsigned CKP : 1;
3106 unsigned SSPEN : 1;
3107 unsigned SSPOV : 1;
3108 unsigned WCOL : 1;
3111 struct
3113 unsigned SSPM : 4;
3114 unsigned : 4;
3116 } __SSP1CONbits_t;
3118 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3120 #define _SSPM0 0x01
3121 #define _SSPM1 0x02
3122 #define _SSPM2 0x04
3123 #define _SSPM3 0x08
3124 #define _CKP 0x10
3125 #define _SSPEN 0x20
3126 #define _SSPOV 0x40
3127 #define _WCOL 0x80
3129 //==============================================================================
3132 //==============================================================================
3133 // SSP1CON1 Bits
3135 extern __at(0x0215) __sfr SSP1CON1;
3137 typedef union
3139 struct
3141 unsigned SSPM0 : 1;
3142 unsigned SSPM1 : 1;
3143 unsigned SSPM2 : 1;
3144 unsigned SSPM3 : 1;
3145 unsigned CKP : 1;
3146 unsigned SSPEN : 1;
3147 unsigned SSPOV : 1;
3148 unsigned WCOL : 1;
3151 struct
3153 unsigned SSPM : 4;
3154 unsigned : 4;
3156 } __SSP1CON1bits_t;
3158 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3160 #define _SSP1CON1_SSPM0 0x01
3161 #define _SSP1CON1_SSPM1 0x02
3162 #define _SSP1CON1_SSPM2 0x04
3163 #define _SSP1CON1_SSPM3 0x08
3164 #define _SSP1CON1_CKP 0x10
3165 #define _SSP1CON1_SSPEN 0x20
3166 #define _SSP1CON1_SSPOV 0x40
3167 #define _SSP1CON1_WCOL 0x80
3169 //==============================================================================
3172 //==============================================================================
3173 // SSPCON Bits
3175 extern __at(0x0215) __sfr SSPCON;
3177 typedef union
3179 struct
3181 unsigned SSPM0 : 1;
3182 unsigned SSPM1 : 1;
3183 unsigned SSPM2 : 1;
3184 unsigned SSPM3 : 1;
3185 unsigned CKP : 1;
3186 unsigned SSPEN : 1;
3187 unsigned SSPOV : 1;
3188 unsigned WCOL : 1;
3191 struct
3193 unsigned SSPM : 4;
3194 unsigned : 4;
3196 } __SSPCONbits_t;
3198 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3200 #define _SSPCON_SSPM0 0x01
3201 #define _SSPCON_SSPM1 0x02
3202 #define _SSPCON_SSPM2 0x04
3203 #define _SSPCON_SSPM3 0x08
3204 #define _SSPCON_CKP 0x10
3205 #define _SSPCON_SSPEN 0x20
3206 #define _SSPCON_SSPOV 0x40
3207 #define _SSPCON_WCOL 0x80
3209 //==============================================================================
3212 //==============================================================================
3213 // SSPCON1 Bits
3215 extern __at(0x0215) __sfr SSPCON1;
3217 typedef union
3219 struct
3221 unsigned SSPM0 : 1;
3222 unsigned SSPM1 : 1;
3223 unsigned SSPM2 : 1;
3224 unsigned SSPM3 : 1;
3225 unsigned CKP : 1;
3226 unsigned SSPEN : 1;
3227 unsigned SSPOV : 1;
3228 unsigned WCOL : 1;
3231 struct
3233 unsigned SSPM : 4;
3234 unsigned : 4;
3236 } __SSPCON1bits_t;
3238 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3240 #define _SSPCON1_SSPM0 0x01
3241 #define _SSPCON1_SSPM1 0x02
3242 #define _SSPCON1_SSPM2 0x04
3243 #define _SSPCON1_SSPM3 0x08
3244 #define _SSPCON1_CKP 0x10
3245 #define _SSPCON1_SSPEN 0x20
3246 #define _SSPCON1_SSPOV 0x40
3247 #define _SSPCON1_WCOL 0x80
3249 //==============================================================================
3252 //==============================================================================
3253 // SSP1CON2 Bits
3255 extern __at(0x0216) __sfr SSP1CON2;
3257 typedef struct
3259 unsigned SEN : 1;
3260 unsigned RSEN : 1;
3261 unsigned PEN : 1;
3262 unsigned RCEN : 1;
3263 unsigned ACKEN : 1;
3264 unsigned ACKDT : 1;
3265 unsigned ACKSTAT : 1;
3266 unsigned GCEN : 1;
3267 } __SSP1CON2bits_t;
3269 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3271 #define _SEN 0x01
3272 #define _RSEN 0x02
3273 #define _PEN 0x04
3274 #define _RCEN 0x08
3275 #define _ACKEN 0x10
3276 #define _ACKDT 0x20
3277 #define _ACKSTAT 0x40
3278 #define _GCEN 0x80
3280 //==============================================================================
3283 //==============================================================================
3284 // SSPCON2 Bits
3286 extern __at(0x0216) __sfr SSPCON2;
3288 typedef struct
3290 unsigned SEN : 1;
3291 unsigned RSEN : 1;
3292 unsigned PEN : 1;
3293 unsigned RCEN : 1;
3294 unsigned ACKEN : 1;
3295 unsigned ACKDT : 1;
3296 unsigned ACKSTAT : 1;
3297 unsigned GCEN : 1;
3298 } __SSPCON2bits_t;
3300 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3302 #define _SSPCON2_SEN 0x01
3303 #define _SSPCON2_RSEN 0x02
3304 #define _SSPCON2_PEN 0x04
3305 #define _SSPCON2_RCEN 0x08
3306 #define _SSPCON2_ACKEN 0x10
3307 #define _SSPCON2_ACKDT 0x20
3308 #define _SSPCON2_ACKSTAT 0x40
3309 #define _SSPCON2_GCEN 0x80
3311 //==============================================================================
3314 //==============================================================================
3315 // SSP1CON3 Bits
3317 extern __at(0x0217) __sfr SSP1CON3;
3319 typedef struct
3321 unsigned DHEN : 1;
3322 unsigned AHEN : 1;
3323 unsigned SBCDE : 1;
3324 unsigned SDAHT : 1;
3325 unsigned BOEN : 1;
3326 unsigned SCIE : 1;
3327 unsigned PCIE : 1;
3328 unsigned ACKTIM : 1;
3329 } __SSP1CON3bits_t;
3331 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3333 #define _DHEN 0x01
3334 #define _AHEN 0x02
3335 #define _SBCDE 0x04
3336 #define _SDAHT 0x08
3337 #define _BOEN 0x10
3338 #define _SCIE 0x20
3339 #define _PCIE 0x40
3340 #define _ACKTIM 0x80
3342 //==============================================================================
3345 //==============================================================================
3346 // SSPCON3 Bits
3348 extern __at(0x0217) __sfr SSPCON3;
3350 typedef struct
3352 unsigned DHEN : 1;
3353 unsigned AHEN : 1;
3354 unsigned SBCDE : 1;
3355 unsigned SDAHT : 1;
3356 unsigned BOEN : 1;
3357 unsigned SCIE : 1;
3358 unsigned PCIE : 1;
3359 unsigned ACKTIM : 1;
3360 } __SSPCON3bits_t;
3362 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3364 #define _SSPCON3_DHEN 0x01
3365 #define _SSPCON3_AHEN 0x02
3366 #define _SSPCON3_SBCDE 0x04
3367 #define _SSPCON3_SDAHT 0x08
3368 #define _SSPCON3_BOEN 0x10
3369 #define _SSPCON3_SCIE 0x20
3370 #define _SSPCON3_PCIE 0x40
3371 #define _SSPCON3_ACKTIM 0x80
3373 //==============================================================================
3376 //==============================================================================
3377 // ODCONA Bits
3379 extern __at(0x028C) __sfr ODCONA;
3381 typedef struct
3383 unsigned ODA0 : 1;
3384 unsigned ODA1 : 1;
3385 unsigned ODA2 : 1;
3386 unsigned : 1;
3387 unsigned ODA4 : 1;
3388 unsigned ODA5 : 1;
3389 unsigned : 1;
3390 unsigned : 1;
3391 } __ODCONAbits_t;
3393 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
3395 #define _ODA0 0x01
3396 #define _ODA1 0x02
3397 #define _ODA2 0x04
3398 #define _ODA4 0x10
3399 #define _ODA5 0x20
3401 //==============================================================================
3404 //==============================================================================
3405 // ODCONC Bits
3407 extern __at(0x028E) __sfr ODCONC;
3409 typedef union
3411 struct
3413 unsigned ODC0 : 1;
3414 unsigned ODC1 : 1;
3415 unsigned ODC2 : 1;
3416 unsigned ODC3 : 1;
3417 unsigned ODC4 : 1;
3418 unsigned ODC5 : 1;
3419 unsigned : 1;
3420 unsigned : 1;
3423 struct
3425 unsigned ODC : 6;
3426 unsigned : 2;
3428 } __ODCONCbits_t;
3430 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
3432 #define _ODC0 0x01
3433 #define _ODC1 0x02
3434 #define _ODC2 0x04
3435 #define _ODC3 0x08
3436 #define _ODC4 0x10
3437 #define _ODC5 0x20
3439 //==============================================================================
3441 extern __at(0x0291) __sfr CCPR1;
3442 extern __at(0x0291) __sfr CCPR1L;
3443 extern __at(0x0292) __sfr CCPR1H;
3445 //==============================================================================
3446 // CCP1CON Bits
3448 extern __at(0x0293) __sfr CCP1CON;
3450 typedef union
3452 struct
3454 unsigned MODE0 : 1;
3455 unsigned MODE1 : 1;
3456 unsigned MODE2 : 1;
3457 unsigned MODE3 : 1;
3458 unsigned FMT : 1;
3459 unsigned OUT : 1;
3460 unsigned : 1;
3461 unsigned EN : 1;
3464 struct
3466 unsigned CCP1MODE0 : 1;
3467 unsigned CCP1MODE1 : 1;
3468 unsigned CCP1MODE2 : 1;
3469 unsigned CCP1MODE3 : 1;
3470 unsigned CCP1FMT : 1;
3471 unsigned CCP1OUT : 1;
3472 unsigned : 1;
3473 unsigned CCP1EN : 1;
3476 struct
3478 unsigned CCP1MODE : 4;
3479 unsigned : 4;
3482 struct
3484 unsigned MODE : 4;
3485 unsigned : 4;
3487 } __CCP1CONbits_t;
3489 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
3491 #define _CCP1CON_MODE0 0x01
3492 #define _CCP1CON_CCP1MODE0 0x01
3493 #define _CCP1CON_MODE1 0x02
3494 #define _CCP1CON_CCP1MODE1 0x02
3495 #define _CCP1CON_MODE2 0x04
3496 #define _CCP1CON_CCP1MODE2 0x04
3497 #define _CCP1CON_MODE3 0x08
3498 #define _CCP1CON_CCP1MODE3 0x08
3499 #define _CCP1CON_FMT 0x10
3500 #define _CCP1CON_CCP1FMT 0x10
3501 #define _CCP1CON_OUT 0x20
3502 #define _CCP1CON_CCP1OUT 0x20
3503 #define _CCP1CON_EN 0x80
3504 #define _CCP1CON_CCP1EN 0x80
3506 //==============================================================================
3509 //==============================================================================
3510 // CCP1CAP Bits
3512 extern __at(0x0294) __sfr CCP1CAP;
3514 typedef union
3516 struct
3518 unsigned CTS0 : 1;
3519 unsigned CTS1 : 1;
3520 unsigned CTS2 : 1;
3521 unsigned : 1;
3522 unsigned : 1;
3523 unsigned : 1;
3524 unsigned : 1;
3525 unsigned : 1;
3528 struct
3530 unsigned CCP1CTS0 : 1;
3531 unsigned CCP1CTS1 : 1;
3532 unsigned CCP1CTS2 : 1;
3533 unsigned : 1;
3534 unsigned : 1;
3535 unsigned : 1;
3536 unsigned : 1;
3537 unsigned : 1;
3540 struct
3542 unsigned CTS : 3;
3543 unsigned : 5;
3546 struct
3548 unsigned CCP1CTS : 3;
3549 unsigned : 5;
3551 } __CCP1CAPbits_t;
3553 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
3555 #define _CTS0 0x01
3556 #define _CCP1CTS0 0x01
3557 #define _CTS1 0x02
3558 #define _CCP1CTS1 0x02
3559 #define _CTS2 0x04
3560 #define _CCP1CTS2 0x04
3562 //==============================================================================
3564 extern __at(0x0298) __sfr CCPR2;
3565 extern __at(0x0298) __sfr CCPR2L;
3566 extern __at(0x0299) __sfr CCPR2H;
3568 //==============================================================================
3569 // CCP2CON Bits
3571 extern __at(0x029A) __sfr CCP2CON;
3573 typedef union
3575 struct
3577 unsigned MODE0 : 1;
3578 unsigned MODE1 : 1;
3579 unsigned MODE2 : 1;
3580 unsigned MODE3 : 1;
3581 unsigned FMT : 1;
3582 unsigned OUT : 1;
3583 unsigned : 1;
3584 unsigned EN : 1;
3587 struct
3589 unsigned CCP2MODE0 : 1;
3590 unsigned CCP2MODE1 : 1;
3591 unsigned CCP2MODE2 : 1;
3592 unsigned CCP2MODE3 : 1;
3593 unsigned CCP2FMT : 1;
3594 unsigned CCP2OUT : 1;
3595 unsigned : 1;
3596 unsigned CCP2EN : 1;
3599 struct
3601 unsigned MODE : 4;
3602 unsigned : 4;
3605 struct
3607 unsigned CCP2MODE : 4;
3608 unsigned : 4;
3610 } __CCP2CONbits_t;
3612 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
3614 #define _CCP2CON_MODE0 0x01
3615 #define _CCP2CON_CCP2MODE0 0x01
3616 #define _CCP2CON_MODE1 0x02
3617 #define _CCP2CON_CCP2MODE1 0x02
3618 #define _CCP2CON_MODE2 0x04
3619 #define _CCP2CON_CCP2MODE2 0x04
3620 #define _CCP2CON_MODE3 0x08
3621 #define _CCP2CON_CCP2MODE3 0x08
3622 #define _CCP2CON_FMT 0x10
3623 #define _CCP2CON_CCP2FMT 0x10
3624 #define _CCP2CON_OUT 0x20
3625 #define _CCP2CON_CCP2OUT 0x20
3626 #define _CCP2CON_EN 0x80
3627 #define _CCP2CON_CCP2EN 0x80
3629 //==============================================================================
3632 //==============================================================================
3633 // CCP2CAP Bits
3635 extern __at(0x029B) __sfr CCP2CAP;
3637 typedef union
3639 struct
3641 unsigned CTS0 : 1;
3642 unsigned CTS1 : 1;
3643 unsigned CTS2 : 1;
3644 unsigned : 1;
3645 unsigned : 1;
3646 unsigned : 1;
3647 unsigned : 1;
3648 unsigned : 1;
3651 struct
3653 unsigned CCP2CTS0 : 1;
3654 unsigned CCP2CTS1 : 1;
3655 unsigned CCP2CTS2 : 1;
3656 unsigned : 1;
3657 unsigned : 1;
3658 unsigned : 1;
3659 unsigned : 1;
3660 unsigned : 1;
3663 struct
3665 unsigned CTS : 3;
3666 unsigned : 5;
3669 struct
3671 unsigned CCP2CTS : 3;
3672 unsigned : 5;
3674 } __CCP2CAPbits_t;
3676 extern __at(0x029B) volatile __CCP2CAPbits_t CCP2CAPbits;
3678 #define _CCP2CAP_CTS0 0x01
3679 #define _CCP2CAP_CCP2CTS0 0x01
3680 #define _CCP2CAP_CTS1 0x02
3681 #define _CCP2CAP_CCP2CTS1 0x02
3682 #define _CCP2CAP_CTS2 0x04
3683 #define _CCP2CAP_CCP2CTS2 0x04
3685 //==============================================================================
3688 //==============================================================================
3689 // CCPTMRS Bits
3691 extern __at(0x029E) __sfr CCPTMRS;
3693 typedef union
3695 struct
3697 unsigned CCP1TSEL0 : 1;
3698 unsigned CCP1TSEL1 : 1;
3699 unsigned CCP2TSEL0 : 1;
3700 unsigned CCP2TSEL1 : 1;
3701 unsigned P3TSEL0 : 1;
3702 unsigned P3TSEL1 : 1;
3703 unsigned P4TSEL0 : 1;
3704 unsigned P4TSEL1 : 1;
3707 struct
3709 unsigned CCP1TSEL : 2;
3710 unsigned : 6;
3713 struct
3715 unsigned : 2;
3716 unsigned CCP2TSEL : 2;
3717 unsigned : 4;
3720 struct
3722 unsigned : 4;
3723 unsigned P3TSEL : 2;
3724 unsigned : 2;
3727 struct
3729 unsigned : 6;
3730 unsigned P4TSEL : 2;
3732 } __CCPTMRSbits_t;
3734 extern __at(0x029E) volatile __CCPTMRSbits_t CCPTMRSbits;
3736 #define _CCP1TSEL0 0x01
3737 #define _CCP1TSEL1 0x02
3738 #define _CCP2TSEL0 0x04
3739 #define _CCP2TSEL1 0x08
3740 #define _P3TSEL0 0x10
3741 #define _P3TSEL1 0x20
3742 #define _P4TSEL0 0x40
3743 #define _P4TSEL1 0x80
3745 //==============================================================================
3748 //==============================================================================
3749 // SLRCONA Bits
3751 extern __at(0x030C) __sfr SLRCONA;
3753 typedef struct
3755 unsigned SLRA0 : 1;
3756 unsigned SLRA1 : 1;
3757 unsigned SLRA2 : 1;
3758 unsigned : 1;
3759 unsigned SLRA4 : 1;
3760 unsigned SLRA5 : 1;
3761 unsigned : 1;
3762 unsigned : 1;
3763 } __SLRCONAbits_t;
3765 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
3767 #define _SLRA0 0x01
3768 #define _SLRA1 0x02
3769 #define _SLRA2 0x04
3770 #define _SLRA4 0x10
3771 #define _SLRA5 0x20
3773 //==============================================================================
3776 //==============================================================================
3777 // SLRCONC Bits
3779 extern __at(0x030E) __sfr SLRCONC;
3781 typedef union
3783 struct
3785 unsigned SLRC0 : 1;
3786 unsigned SLRC1 : 1;
3787 unsigned SLRC2 : 1;
3788 unsigned SLRC3 : 1;
3789 unsigned SLRC4 : 1;
3790 unsigned SLRC5 : 1;
3791 unsigned : 1;
3792 unsigned : 1;
3795 struct
3797 unsigned SLRC : 6;
3798 unsigned : 2;
3800 } __SLRCONCbits_t;
3802 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
3804 #define _SLRC0 0x01
3805 #define _SLRC1 0x02
3806 #define _SLRC2 0x04
3807 #define _SLRC3 0x08
3808 #define _SLRC4 0x10
3809 #define _SLRC5 0x20
3811 //==============================================================================
3814 //==============================================================================
3815 // INLVLA Bits
3817 extern __at(0x038C) __sfr INLVLA;
3819 typedef union
3821 struct
3823 unsigned INLVLA0 : 1;
3824 unsigned INLVLA1 : 1;
3825 unsigned INLVLA2 : 1;
3826 unsigned INLVLA3 : 1;
3827 unsigned INLVLA4 : 1;
3828 unsigned INLVLA5 : 1;
3829 unsigned : 1;
3830 unsigned : 1;
3833 struct
3835 unsigned INLVLA : 6;
3836 unsigned : 2;
3838 } __INLVLAbits_t;
3840 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
3842 #define _INLVLA0 0x01
3843 #define _INLVLA1 0x02
3844 #define _INLVLA2 0x04
3845 #define _INLVLA3 0x08
3846 #define _INLVLA4 0x10
3847 #define _INLVLA5 0x20
3849 //==============================================================================
3852 //==============================================================================
3853 // INLVLC Bits
3855 extern __at(0x038E) __sfr INLVLC;
3857 typedef union
3859 struct
3861 unsigned INLVLC0 : 1;
3862 unsigned INLVLC1 : 1;
3863 unsigned INLVLC2 : 1;
3864 unsigned INLVLC3 : 1;
3865 unsigned INLVLC4 : 1;
3866 unsigned INLVLC5 : 1;
3867 unsigned : 1;
3868 unsigned : 1;
3871 struct
3873 unsigned INLVLC : 6;
3874 unsigned : 2;
3876 } __INLVLCbits_t;
3878 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
3880 #define _INLVLC0 0x01
3881 #define _INLVLC1 0x02
3882 #define _INLVLC2 0x04
3883 #define _INLVLC3 0x08
3884 #define _INLVLC4 0x10
3885 #define _INLVLC5 0x20
3887 //==============================================================================
3890 //==============================================================================
3891 // IOCAP Bits
3893 extern __at(0x0391) __sfr IOCAP;
3895 typedef union
3897 struct
3899 unsigned IOCAP0 : 1;
3900 unsigned IOCAP1 : 1;
3901 unsigned IOCAP2 : 1;
3902 unsigned IOCAP3 : 1;
3903 unsigned IOCAP4 : 1;
3904 unsigned IOCAP5 : 1;
3905 unsigned : 1;
3906 unsigned : 1;
3909 struct
3911 unsigned IOCAP : 6;
3912 unsigned : 2;
3914 } __IOCAPbits_t;
3916 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
3918 #define _IOCAP0 0x01
3919 #define _IOCAP1 0x02
3920 #define _IOCAP2 0x04
3921 #define _IOCAP3 0x08
3922 #define _IOCAP4 0x10
3923 #define _IOCAP5 0x20
3925 //==============================================================================
3928 //==============================================================================
3929 // IOCAN Bits
3931 extern __at(0x0392) __sfr IOCAN;
3933 typedef union
3935 struct
3937 unsigned IOCAN0 : 1;
3938 unsigned IOCAN1 : 1;
3939 unsigned IOCAN2 : 1;
3940 unsigned IOCAN3 : 1;
3941 unsigned IOCAN4 : 1;
3942 unsigned IOCAN5 : 1;
3943 unsigned : 1;
3944 unsigned : 1;
3947 struct
3949 unsigned IOCAN : 6;
3950 unsigned : 2;
3952 } __IOCANbits_t;
3954 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
3956 #define _IOCAN0 0x01
3957 #define _IOCAN1 0x02
3958 #define _IOCAN2 0x04
3959 #define _IOCAN3 0x08
3960 #define _IOCAN4 0x10
3961 #define _IOCAN5 0x20
3963 //==============================================================================
3966 //==============================================================================
3967 // IOCAF Bits
3969 extern __at(0x0393) __sfr IOCAF;
3971 typedef union
3973 struct
3975 unsigned IOCAF0 : 1;
3976 unsigned IOCAF1 : 1;
3977 unsigned IOCAF2 : 1;
3978 unsigned IOCAF3 : 1;
3979 unsigned IOCAF4 : 1;
3980 unsigned IOCAF5 : 1;
3981 unsigned : 1;
3982 unsigned : 1;
3985 struct
3987 unsigned IOCAF : 6;
3988 unsigned : 2;
3990 } __IOCAFbits_t;
3992 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
3994 #define _IOCAF0 0x01
3995 #define _IOCAF1 0x02
3996 #define _IOCAF2 0x04
3997 #define _IOCAF3 0x08
3998 #define _IOCAF4 0x10
3999 #define _IOCAF5 0x20
4001 //==============================================================================
4004 //==============================================================================
4005 // IOCCP Bits
4007 extern __at(0x0397) __sfr IOCCP;
4009 typedef struct
4011 unsigned IOCCP0 : 1;
4012 unsigned IOCCP1 : 1;
4013 unsigned IOCCP2 : 1;
4014 unsigned IOCCP3 : 1;
4015 unsigned IOCCP4 : 1;
4016 unsigned IOCCP5 : 1;
4017 unsigned IOCCP6 : 1;
4018 unsigned IOCCP7 : 1;
4019 } __IOCCPbits_t;
4021 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
4023 #define _IOCCP0 0x01
4024 #define _IOCCP1 0x02
4025 #define _IOCCP2 0x04
4026 #define _IOCCP3 0x08
4027 #define _IOCCP4 0x10
4028 #define _IOCCP5 0x20
4029 #define _IOCCP6 0x40
4030 #define _IOCCP7 0x80
4032 //==============================================================================
4035 //==============================================================================
4036 // IOCCN Bits
4038 extern __at(0x0398) __sfr IOCCN;
4040 typedef struct
4042 unsigned IOCCN0 : 1;
4043 unsigned IOCCN1 : 1;
4044 unsigned IOCCN2 : 1;
4045 unsigned IOCCN3 : 1;
4046 unsigned IOCCN4 : 1;
4047 unsigned IOCCN5 : 1;
4048 unsigned IOCCN6 : 1;
4049 unsigned IOCCN7 : 1;
4050 } __IOCCNbits_t;
4052 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
4054 #define _IOCCN0 0x01
4055 #define _IOCCN1 0x02
4056 #define _IOCCN2 0x04
4057 #define _IOCCN3 0x08
4058 #define _IOCCN4 0x10
4059 #define _IOCCN5 0x20
4060 #define _IOCCN6 0x40
4061 #define _IOCCN7 0x80
4063 //==============================================================================
4066 //==============================================================================
4067 // IOCCF Bits
4069 extern __at(0x0399) __sfr IOCCF;
4071 typedef struct
4073 unsigned IOCCF0 : 1;
4074 unsigned IOCCF1 : 1;
4075 unsigned IOCCF2 : 1;
4076 unsigned IOCCF3 : 1;
4077 unsigned IOCCF4 : 1;
4078 unsigned IOCCF5 : 1;
4079 unsigned IOCCF6 : 1;
4080 unsigned IOCCF7 : 1;
4081 } __IOCCFbits_t;
4083 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
4085 #define _IOCCF0 0x01
4086 #define _IOCCF1 0x02
4087 #define _IOCCF2 0x04
4088 #define _IOCCF3 0x08
4089 #define _IOCCF4 0x10
4090 #define _IOCCF5 0x20
4091 #define _IOCCF6 0x40
4092 #define _IOCCF7 0x80
4094 //==============================================================================
4097 //==============================================================================
4098 // HIDRVC Bits
4100 extern __at(0x040E) __sfr HIDRVC;
4102 typedef struct
4104 unsigned : 1;
4105 unsigned : 1;
4106 unsigned : 1;
4107 unsigned : 1;
4108 unsigned HIDC4 : 1;
4109 unsigned HIDC5 : 1;
4110 unsigned : 1;
4111 unsigned : 1;
4112 } __HIDRVCbits_t;
4114 extern __at(0x040E) volatile __HIDRVCbits_t HIDRVCbits;
4116 #define _HIDC4 0x10
4117 #define _HIDC5 0x20
4119 //==============================================================================
4121 extern __at(0x0413) __sfr T4TMR;
4122 extern __at(0x0413) __sfr TMR4;
4123 extern __at(0x0414) __sfr PR4;
4124 extern __at(0x0414) __sfr T4PR;
4126 //==============================================================================
4127 // T4CON Bits
4129 extern __at(0x0415) __sfr T4CON;
4131 typedef union
4133 struct
4135 unsigned OUTPS0 : 1;
4136 unsigned OUTPS1 : 1;
4137 unsigned OUTPS2 : 1;
4138 unsigned OUTPS3 : 1;
4139 unsigned CKPS0 : 1;
4140 unsigned CKPS1 : 1;
4141 unsigned CKPS2 : 1;
4142 unsigned ON : 1;
4145 struct
4147 unsigned T4OUTPS0 : 1;
4148 unsigned T4OUTPS1 : 1;
4149 unsigned T4OUTPS2 : 1;
4150 unsigned T4OUTPS3 : 1;
4151 unsigned T4CKPS0 : 1;
4152 unsigned T4CKPS1 : 1;
4153 unsigned T4CKPS2 : 1;
4154 unsigned T4ON : 1;
4157 struct
4159 unsigned : 1;
4160 unsigned : 1;
4161 unsigned : 1;
4162 unsigned : 1;
4163 unsigned : 1;
4164 unsigned : 1;
4165 unsigned : 1;
4166 unsigned TMR4ON : 1;
4169 struct
4171 unsigned T4OUTPS : 4;
4172 unsigned : 4;
4175 struct
4177 unsigned OUTPS : 4;
4178 unsigned : 4;
4181 struct
4183 unsigned : 4;
4184 unsigned T4CKPS : 3;
4185 unsigned : 1;
4188 struct
4190 unsigned : 4;
4191 unsigned CKPS : 3;
4192 unsigned : 1;
4194 } __T4CONbits_t;
4196 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
4198 #define _T4CON_OUTPS0 0x01
4199 #define _T4CON_T4OUTPS0 0x01
4200 #define _T4CON_OUTPS1 0x02
4201 #define _T4CON_T4OUTPS1 0x02
4202 #define _T4CON_OUTPS2 0x04
4203 #define _T4CON_T4OUTPS2 0x04
4204 #define _T4CON_OUTPS3 0x08
4205 #define _T4CON_T4OUTPS3 0x08
4206 #define _T4CON_CKPS0 0x10
4207 #define _T4CON_T4CKPS0 0x10
4208 #define _T4CON_CKPS1 0x20
4209 #define _T4CON_T4CKPS1 0x20
4210 #define _T4CON_CKPS2 0x40
4211 #define _T4CON_T4CKPS2 0x40
4212 #define _T4CON_ON 0x80
4213 #define _T4CON_T4ON 0x80
4214 #define _T4CON_TMR4ON 0x80
4216 //==============================================================================
4219 //==============================================================================
4220 // T4HLT Bits
4222 extern __at(0x0416) __sfr T4HLT;
4224 typedef union
4226 struct
4228 unsigned MODE0 : 1;
4229 unsigned MODE1 : 1;
4230 unsigned MODE2 : 1;
4231 unsigned MODE3 : 1;
4232 unsigned MODE4 : 1;
4233 unsigned CKSYNC : 1;
4234 unsigned CKPOL : 1;
4235 unsigned PSYNC : 1;
4238 struct
4240 unsigned T4MODE0 : 1;
4241 unsigned T4MODE1 : 1;
4242 unsigned T4MODE2 : 1;
4243 unsigned T4MODE3 : 1;
4244 unsigned T4MODE4 : 1;
4245 unsigned T4CKSYNC : 1;
4246 unsigned T4CKPOL : 1;
4247 unsigned T4PSYNC : 1;
4250 struct
4252 unsigned T4MODE : 5;
4253 unsigned : 3;
4256 struct
4258 unsigned MODE : 5;
4259 unsigned : 3;
4261 } __T4HLTbits_t;
4263 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
4265 #define _T4HLT_MODE0 0x01
4266 #define _T4HLT_T4MODE0 0x01
4267 #define _T4HLT_MODE1 0x02
4268 #define _T4HLT_T4MODE1 0x02
4269 #define _T4HLT_MODE2 0x04
4270 #define _T4HLT_T4MODE2 0x04
4271 #define _T4HLT_MODE3 0x08
4272 #define _T4HLT_T4MODE3 0x08
4273 #define _T4HLT_MODE4 0x10
4274 #define _T4HLT_T4MODE4 0x10
4275 #define _T4HLT_CKSYNC 0x20
4276 #define _T4HLT_T4CKSYNC 0x20
4277 #define _T4HLT_CKPOL 0x40
4278 #define _T4HLT_T4CKPOL 0x40
4279 #define _T4HLT_PSYNC 0x80
4280 #define _T4HLT_T4PSYNC 0x80
4282 //==============================================================================
4285 //==============================================================================
4286 // T4CLKCON Bits
4288 extern __at(0x0417) __sfr T4CLKCON;
4290 typedef union
4292 struct
4294 unsigned CS0 : 1;
4295 unsigned CS1 : 1;
4296 unsigned CS2 : 1;
4297 unsigned CS3 : 1;
4298 unsigned : 1;
4299 unsigned : 1;
4300 unsigned : 1;
4301 unsigned : 1;
4304 struct
4306 unsigned T4CS0 : 1;
4307 unsigned T4CS1 : 1;
4308 unsigned T4CS2 : 1;
4309 unsigned T4CS3 : 1;
4310 unsigned : 1;
4311 unsigned : 1;
4312 unsigned : 1;
4313 unsigned : 1;
4316 struct
4318 unsigned CS : 4;
4319 unsigned : 4;
4322 struct
4324 unsigned T4CS : 4;
4325 unsigned : 4;
4327 } __T4CLKCONbits_t;
4329 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
4331 #define _T4CLKCON_CS0 0x01
4332 #define _T4CLKCON_T4CS0 0x01
4333 #define _T4CLKCON_CS1 0x02
4334 #define _T4CLKCON_T4CS1 0x02
4335 #define _T4CLKCON_CS2 0x04
4336 #define _T4CLKCON_T4CS2 0x04
4337 #define _T4CLKCON_CS3 0x08
4338 #define _T4CLKCON_T4CS3 0x08
4340 //==============================================================================
4343 //==============================================================================
4344 // T4RST Bits
4346 extern __at(0x0418) __sfr T4RST;
4348 typedef union
4350 struct
4352 unsigned RSEL0 : 1;
4353 unsigned RSEL1 : 1;
4354 unsigned RSEL2 : 1;
4355 unsigned RSEL3 : 1;
4356 unsigned : 1;
4357 unsigned : 1;
4358 unsigned : 1;
4359 unsigned : 1;
4362 struct
4364 unsigned T4RSEL0 : 1;
4365 unsigned T4RSEL1 : 1;
4366 unsigned T4RSEL2 : 1;
4367 unsigned T4RSEL3 : 1;
4368 unsigned : 1;
4369 unsigned : 1;
4370 unsigned : 1;
4371 unsigned : 1;
4374 struct
4376 unsigned RSEL : 4;
4377 unsigned : 4;
4380 struct
4382 unsigned T4RSEL : 4;
4383 unsigned : 4;
4385 } __T4RSTbits_t;
4387 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
4389 #define _T4RST_RSEL0 0x01
4390 #define _T4RST_T4RSEL0 0x01
4391 #define _T4RST_RSEL1 0x02
4392 #define _T4RST_T4RSEL1 0x02
4393 #define _T4RST_RSEL2 0x04
4394 #define _T4RST_T4RSEL2 0x04
4395 #define _T4RST_RSEL3 0x08
4396 #define _T4RST_T4RSEL3 0x08
4398 //==============================================================================
4400 extern __at(0x041A) __sfr T6TMR;
4401 extern __at(0x041A) __sfr TMR6;
4402 extern __at(0x041B) __sfr PR6;
4403 extern __at(0x041B) __sfr T6PR;
4405 //==============================================================================
4406 // T6CON Bits
4408 extern __at(0x041C) __sfr T6CON;
4410 typedef union
4412 struct
4414 unsigned OUTPS0 : 1;
4415 unsigned OUTPS1 : 1;
4416 unsigned OUTPS2 : 1;
4417 unsigned OUTPS3 : 1;
4418 unsigned CKPS0 : 1;
4419 unsigned CKPS1 : 1;
4420 unsigned CKPS2 : 1;
4421 unsigned ON : 1;
4424 struct
4426 unsigned T6OUTPS0 : 1;
4427 unsigned T6OUTPS1 : 1;
4428 unsigned T6OUTPS2 : 1;
4429 unsigned T6OUTPS3 : 1;
4430 unsigned T6CKPS0 : 1;
4431 unsigned T6CKPS1 : 1;
4432 unsigned T6CKPS2 : 1;
4433 unsigned T6ON : 1;
4436 struct
4438 unsigned : 1;
4439 unsigned : 1;
4440 unsigned : 1;
4441 unsigned : 1;
4442 unsigned : 1;
4443 unsigned : 1;
4444 unsigned : 1;
4445 unsigned TMR6ON : 1;
4448 struct
4450 unsigned OUTPS : 4;
4451 unsigned : 4;
4454 struct
4456 unsigned T6OUTPS : 4;
4457 unsigned : 4;
4460 struct
4462 unsigned : 4;
4463 unsigned T6CKPS : 3;
4464 unsigned : 1;
4467 struct
4469 unsigned : 4;
4470 unsigned CKPS : 3;
4471 unsigned : 1;
4473 } __T6CONbits_t;
4475 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
4477 #define _T6CON_OUTPS0 0x01
4478 #define _T6CON_T6OUTPS0 0x01
4479 #define _T6CON_OUTPS1 0x02
4480 #define _T6CON_T6OUTPS1 0x02
4481 #define _T6CON_OUTPS2 0x04
4482 #define _T6CON_T6OUTPS2 0x04
4483 #define _T6CON_OUTPS3 0x08
4484 #define _T6CON_T6OUTPS3 0x08
4485 #define _T6CON_CKPS0 0x10
4486 #define _T6CON_T6CKPS0 0x10
4487 #define _T6CON_CKPS1 0x20
4488 #define _T6CON_T6CKPS1 0x20
4489 #define _T6CON_CKPS2 0x40
4490 #define _T6CON_T6CKPS2 0x40
4491 #define _T6CON_ON 0x80
4492 #define _T6CON_T6ON 0x80
4493 #define _T6CON_TMR6ON 0x80
4495 //==============================================================================
4498 //==============================================================================
4499 // T6HLT Bits
4501 extern __at(0x041D) __sfr T6HLT;
4503 typedef union
4505 struct
4507 unsigned MODE0 : 1;
4508 unsigned MODE1 : 1;
4509 unsigned MODE2 : 1;
4510 unsigned MODE3 : 1;
4511 unsigned MODE4 : 1;
4512 unsigned CKSYNC : 1;
4513 unsigned CKPOL : 1;
4514 unsigned PSYNC : 1;
4517 struct
4519 unsigned T6MODE0 : 1;
4520 unsigned T6MODE1 : 1;
4521 unsigned T6MODE2 : 1;
4522 unsigned T6MODE3 : 1;
4523 unsigned T6MODE4 : 1;
4524 unsigned T6CKSYNC : 1;
4525 unsigned T6CKPOL : 1;
4526 unsigned T6PSYNC : 1;
4529 struct
4531 unsigned MODE : 5;
4532 unsigned : 3;
4535 struct
4537 unsigned T6MODE : 5;
4538 unsigned : 3;
4540 } __T6HLTbits_t;
4542 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
4544 #define _T6HLT_MODE0 0x01
4545 #define _T6HLT_T6MODE0 0x01
4546 #define _T6HLT_MODE1 0x02
4547 #define _T6HLT_T6MODE1 0x02
4548 #define _T6HLT_MODE2 0x04
4549 #define _T6HLT_T6MODE2 0x04
4550 #define _T6HLT_MODE3 0x08
4551 #define _T6HLT_T6MODE3 0x08
4552 #define _T6HLT_MODE4 0x10
4553 #define _T6HLT_T6MODE4 0x10
4554 #define _T6HLT_CKSYNC 0x20
4555 #define _T6HLT_T6CKSYNC 0x20
4556 #define _T6HLT_CKPOL 0x40
4557 #define _T6HLT_T6CKPOL 0x40
4558 #define _T6HLT_PSYNC 0x80
4559 #define _T6HLT_T6PSYNC 0x80
4561 //==============================================================================
4564 //==============================================================================
4565 // T6CLKCON Bits
4567 extern __at(0x041E) __sfr T6CLKCON;
4569 typedef union
4571 struct
4573 unsigned CS0 : 1;
4574 unsigned CS1 : 1;
4575 unsigned CS2 : 1;
4576 unsigned CS3 : 1;
4577 unsigned : 1;
4578 unsigned : 1;
4579 unsigned : 1;
4580 unsigned : 1;
4583 struct
4585 unsigned T6CS0 : 1;
4586 unsigned T6CS1 : 1;
4587 unsigned T6CS2 : 1;
4588 unsigned T6CS3 : 1;
4589 unsigned : 1;
4590 unsigned : 1;
4591 unsigned : 1;
4592 unsigned : 1;
4595 struct
4597 unsigned T6CS : 4;
4598 unsigned : 4;
4601 struct
4603 unsigned CS : 4;
4604 unsigned : 4;
4606 } __T6CLKCONbits_t;
4608 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
4610 #define _T6CLKCON_CS0 0x01
4611 #define _T6CLKCON_T6CS0 0x01
4612 #define _T6CLKCON_CS1 0x02
4613 #define _T6CLKCON_T6CS1 0x02
4614 #define _T6CLKCON_CS2 0x04
4615 #define _T6CLKCON_T6CS2 0x04
4616 #define _T6CLKCON_CS3 0x08
4617 #define _T6CLKCON_T6CS3 0x08
4619 //==============================================================================
4622 //==============================================================================
4623 // T6RST Bits
4625 extern __at(0x041F) __sfr T6RST;
4627 typedef union
4629 struct
4631 unsigned RSEL0 : 1;
4632 unsigned RSEL1 : 1;
4633 unsigned RSEL2 : 1;
4634 unsigned RSEL3 : 1;
4635 unsigned : 1;
4636 unsigned : 1;
4637 unsigned : 1;
4638 unsigned : 1;
4641 struct
4643 unsigned T6RSEL0 : 1;
4644 unsigned T6RSEL1 : 1;
4645 unsigned T6RSEL2 : 1;
4646 unsigned T6RSEL3 : 1;
4647 unsigned : 1;
4648 unsigned : 1;
4649 unsigned : 1;
4650 unsigned : 1;
4653 struct
4655 unsigned T6RSEL : 4;
4656 unsigned : 4;
4659 struct
4661 unsigned RSEL : 4;
4662 unsigned : 4;
4664 } __T6RSTbits_t;
4666 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
4668 #define _T6RST_RSEL0 0x01
4669 #define _T6RST_T6RSEL0 0x01
4670 #define _T6RST_RSEL1 0x02
4671 #define _T6RST_T6RSEL1 0x02
4672 #define _T6RST_RSEL2 0x04
4673 #define _T6RST_T6RSEL2 0x04
4674 #define _T6RST_RSEL3 0x08
4675 #define _T6RST_T6RSEL3 0x08
4677 //==============================================================================
4679 extern __at(0x0493) __sfr TMR3L;
4680 extern __at(0x0494) __sfr TMR3H;
4682 //==============================================================================
4683 // T3CON Bits
4685 extern __at(0x0495) __sfr T3CON;
4687 typedef union
4689 struct
4691 unsigned TMR3ON : 1;
4692 unsigned : 1;
4693 unsigned T3SYNC : 1;
4694 unsigned : 1;
4695 unsigned T3CKPS0 : 1;
4696 unsigned T3CKPS1 : 1;
4697 unsigned TMR3CS0 : 1;
4698 unsigned TMR3CS1 : 1;
4701 struct
4703 unsigned : 4;
4704 unsigned T3CKPS : 2;
4705 unsigned : 2;
4708 struct
4710 unsigned : 6;
4711 unsigned TMR3CS : 2;
4713 } __T3CONbits_t;
4715 extern __at(0x0495) volatile __T3CONbits_t T3CONbits;
4717 #define _TMR3ON 0x01
4718 #define _T3SYNC 0x04
4719 #define _T3CKPS0 0x10
4720 #define _T3CKPS1 0x20
4721 #define _TMR3CS0 0x40
4722 #define _TMR3CS1 0x80
4724 //==============================================================================
4727 //==============================================================================
4728 // T3GCON Bits
4730 extern __at(0x0496) __sfr T3GCON;
4732 typedef union
4734 struct
4736 unsigned T3GSS0 : 1;
4737 unsigned T3GSS1 : 1;
4738 unsigned T3GVAL : 1;
4739 unsigned T3GGO_NOT_DONE : 1;
4740 unsigned T3GSPM : 1;
4741 unsigned T3GTM : 1;
4742 unsigned T3GPOL : 1;
4743 unsigned TMR3GE : 1;
4746 struct
4748 unsigned T3GSS : 2;
4749 unsigned : 6;
4751 } __T3GCONbits_t;
4753 extern __at(0x0496) volatile __T3GCONbits_t T3GCONbits;
4755 #define _T3GSS0 0x01
4756 #define _T3GSS1 0x02
4757 #define _T3GVAL 0x04
4758 #define _T3GGO_NOT_DONE 0x08
4759 #define _T3GSPM 0x10
4760 #define _T3GTM 0x20
4761 #define _T3GPOL 0x40
4762 #define _TMR3GE 0x80
4764 //==============================================================================
4766 extern __at(0x049A) __sfr TMR5L;
4767 extern __at(0x049B) __sfr TMR5H;
4769 //==============================================================================
4770 // T5CON Bits
4772 extern __at(0x049C) __sfr T5CON;
4774 typedef union
4776 struct
4778 unsigned TMR5ON : 1;
4779 unsigned : 1;
4780 unsigned T5SYNC : 1;
4781 unsigned : 1;
4782 unsigned T5CKPS0 : 1;
4783 unsigned T5CKPS1 : 1;
4784 unsigned TMR5CS0 : 1;
4785 unsigned TMR5CS1 : 1;
4788 struct
4790 unsigned : 4;
4791 unsigned T5CKPS : 2;
4792 unsigned : 2;
4795 struct
4797 unsigned : 6;
4798 unsigned TMR5CS : 2;
4800 } __T5CONbits_t;
4802 extern __at(0x049C) volatile __T5CONbits_t T5CONbits;
4804 #define _TMR5ON 0x01
4805 #define _T5SYNC 0x04
4806 #define _T5CKPS0 0x10
4807 #define _T5CKPS1 0x20
4808 #define _TMR5CS0 0x40
4809 #define _TMR5CS1 0x80
4811 //==============================================================================
4814 //==============================================================================
4815 // T5GCON Bits
4817 extern __at(0x049D) __sfr T5GCON;
4819 typedef union
4821 struct
4823 unsigned T5GSS0 : 1;
4824 unsigned T5GSS1 : 1;
4825 unsigned T5GVAL : 1;
4826 unsigned T5GGO_NOT_DONE : 1;
4827 unsigned T5GSPM : 1;
4828 unsigned T5GTM : 1;
4829 unsigned T5GPOL : 1;
4830 unsigned TMR5GE : 1;
4833 struct
4835 unsigned T5GSS : 2;
4836 unsigned : 6;
4838 } __T5GCONbits_t;
4840 extern __at(0x049D) volatile __T5GCONbits_t T5GCONbits;
4842 #define _T5GSS0 0x01
4843 #define _T5GSS1 0x02
4844 #define _T5GVAL 0x04
4845 #define _T5GGO_NOT_DONE 0x08
4846 #define _T5GSPM 0x10
4847 #define _T5GTM 0x20
4848 #define _T5GPOL 0x40
4849 #define _TMR5GE 0x80
4851 //==============================================================================
4853 extern __at(0x058C) __sfr PID1SET;
4855 //==============================================================================
4856 // PID1SETL Bits
4858 extern __at(0x058C) __sfr PID1SETL;
4860 typedef union
4862 struct
4864 unsigned PID1SET0 : 1;
4865 unsigned PID1SET1 : 1;
4866 unsigned PID1SET2 : 1;
4867 unsigned PID1SET3 : 1;
4868 unsigned PID1SET4 : 1;
4869 unsigned PID1SET5 : 1;
4870 unsigned PID1SET6 : 1;
4871 unsigned PID1SET7 : 1;
4874 struct
4876 unsigned SET0 : 1;
4877 unsigned SET1 : 1;
4878 unsigned SET2 : 1;
4879 unsigned SET3 : 1;
4880 unsigned SET4 : 1;
4881 unsigned SET5 : 1;
4882 unsigned SET6 : 1;
4883 unsigned SET7 : 1;
4885 } __PID1SETLbits_t;
4887 extern __at(0x058C) volatile __PID1SETLbits_t PID1SETLbits;
4889 #define _PID1SET0 0x01
4890 #define _SET0 0x01
4891 #define _PID1SET1 0x02
4892 #define _SET1 0x02
4893 #define _PID1SET2 0x04
4894 #define _SET2 0x04
4895 #define _PID1SET3 0x08
4896 #define _SET3 0x08
4897 #define _PID1SET4 0x10
4898 #define _SET4 0x10
4899 #define _PID1SET5 0x20
4900 #define _SET5 0x20
4901 #define _PID1SET6 0x40
4902 #define _SET6 0x40
4903 #define _PID1SET7 0x80
4904 #define _SET7 0x80
4906 //==============================================================================
4909 //==============================================================================
4910 // PID1SETH Bits
4912 extern __at(0x058D) __sfr PID1SETH;
4914 typedef union
4916 struct
4918 unsigned PID1SET8 : 1;
4919 unsigned PID1SET9 : 1;
4920 unsigned PID1SET10 : 1;
4921 unsigned PID1SET11 : 1;
4922 unsigned PID1SET12 : 1;
4923 unsigned PID1SET13 : 1;
4924 unsigned PID1SET14 : 1;
4925 unsigned PID1SET15 : 1;
4928 struct
4930 unsigned SET8 : 1;
4931 unsigned SET9 : 1;
4932 unsigned SET10 : 1;
4933 unsigned SET11 : 1;
4934 unsigned SET12 : 1;
4935 unsigned SET13 : 1;
4936 unsigned SET14 : 1;
4937 unsigned SET15 : 1;
4939 } __PID1SETHbits_t;
4941 extern __at(0x058D) volatile __PID1SETHbits_t PID1SETHbits;
4943 #define _PID1SET8 0x01
4944 #define _SET8 0x01
4945 #define _PID1SET9 0x02
4946 #define _SET9 0x02
4947 #define _PID1SET10 0x04
4948 #define _SET10 0x04
4949 #define _PID1SET11 0x08
4950 #define _SET11 0x08
4951 #define _PID1SET12 0x10
4952 #define _SET12 0x10
4953 #define _PID1SET13 0x20
4954 #define _SET13 0x20
4955 #define _PID1SET14 0x40
4956 #define _SET14 0x40
4957 #define _PID1SET15 0x80
4958 #define _SET15 0x80
4960 //==============================================================================
4962 extern __at(0x058E) __sfr PID1IN;
4964 //==============================================================================
4965 // PID1INL Bits
4967 extern __at(0x058E) __sfr PID1INL;
4969 typedef union
4971 struct
4973 unsigned PID1IN0 : 1;
4974 unsigned PID1IN1 : 1;
4975 unsigned PID1IN2 : 1;
4976 unsigned PID1IN3 : 1;
4977 unsigned PID1IN4 : 1;
4978 unsigned PID1IN5 : 1;
4979 unsigned PID1IN6 : 1;
4980 unsigned PID1IN7 : 1;
4983 struct
4985 unsigned IN0 : 1;
4986 unsigned IN1 : 1;
4987 unsigned IN2 : 1;
4988 unsigned IN3 : 1;
4989 unsigned IN4 : 1;
4990 unsigned IN5 : 1;
4991 unsigned IN6 : 1;
4992 unsigned IN7 : 1;
4994 } __PID1INLbits_t;
4996 extern __at(0x058E) volatile __PID1INLbits_t PID1INLbits;
4998 #define _PID1IN0 0x01
4999 #define _IN0 0x01
5000 #define _PID1IN1 0x02
5001 #define _IN1 0x02
5002 #define _PID1IN2 0x04
5003 #define _IN2 0x04
5004 #define _PID1IN3 0x08
5005 #define _IN3 0x08
5006 #define _PID1IN4 0x10
5007 #define _IN4 0x10
5008 #define _PID1IN5 0x20
5009 #define _IN5 0x20
5010 #define _PID1IN6 0x40
5011 #define _IN6 0x40
5012 #define _PID1IN7 0x80
5013 #define _IN7 0x80
5015 //==============================================================================
5018 //==============================================================================
5019 // PID1INH Bits
5021 extern __at(0x058F) __sfr PID1INH;
5023 typedef union
5025 struct
5027 unsigned PID1IN8 : 1;
5028 unsigned PID1IN9 : 1;
5029 unsigned PID1IN10 : 1;
5030 unsigned PID1IN11 : 1;
5031 unsigned PID1IN12 : 1;
5032 unsigned PID1IN13 : 1;
5033 unsigned PID1IN14 : 1;
5034 unsigned PID1IN15 : 1;
5037 struct
5039 unsigned IN8 : 1;
5040 unsigned IN9 : 1;
5041 unsigned IN10 : 1;
5042 unsigned IN11 : 1;
5043 unsigned IN12 : 1;
5044 unsigned IN13 : 1;
5045 unsigned IN14 : 1;
5046 unsigned IN15 : 1;
5048 } __PID1INHbits_t;
5050 extern __at(0x058F) volatile __PID1INHbits_t PID1INHbits;
5052 #define _PID1IN8 0x01
5053 #define _IN8 0x01
5054 #define _PID1IN9 0x02
5055 #define _IN9 0x02
5056 #define _PID1IN10 0x04
5057 #define _IN10 0x04
5058 #define _PID1IN11 0x08
5059 #define _IN11 0x08
5060 #define _PID1IN12 0x10
5061 #define _IN12 0x10
5062 #define _PID1IN13 0x20
5063 #define _IN13 0x20
5064 #define _PID1IN14 0x40
5065 #define _IN14 0x40
5066 #define _PID1IN15 0x80
5067 #define _IN15 0x80
5069 //==============================================================================
5071 extern __at(0x0590) __sfr PID1K1;
5073 //==============================================================================
5074 // PID1K1L Bits
5076 extern __at(0x0590) __sfr PID1K1L;
5078 typedef union
5080 struct
5082 unsigned PID1K10 : 1;
5083 unsigned PID1K11 : 1;
5084 unsigned PID1K12 : 1;
5085 unsigned PID1K13 : 1;
5086 unsigned PID1K14 : 1;
5087 unsigned PID1K15 : 1;
5088 unsigned PID1K16 : 1;
5089 unsigned PID1K17 : 1;
5092 struct
5094 unsigned K10 : 1;
5095 unsigned K11 : 1;
5096 unsigned K12 : 1;
5097 unsigned K13 : 1;
5098 unsigned K14 : 1;
5099 unsigned K15 : 1;
5100 unsigned K16 : 1;
5101 unsigned K17 : 1;
5103 } __PID1K1Lbits_t;
5105 extern __at(0x0590) volatile __PID1K1Lbits_t PID1K1Lbits;
5107 #define _PID1K10 0x01
5108 #define _K10 0x01
5109 #define _PID1K11 0x02
5110 #define _K11 0x02
5111 #define _PID1K12 0x04
5112 #define _K12 0x04
5113 #define _PID1K13 0x08
5114 #define _K13 0x08
5115 #define _PID1K14 0x10
5116 #define _K14 0x10
5117 #define _PID1K15 0x20
5118 #define _K15 0x20
5119 #define _PID1K16 0x40
5120 #define _K16 0x40
5121 #define _PID1K17 0x80
5122 #define _K17 0x80
5124 //==============================================================================
5127 //==============================================================================
5128 // PID1K1H Bits
5130 extern __at(0x0591) __sfr PID1K1H;
5132 typedef union
5134 struct
5136 unsigned PID1K18 : 1;
5137 unsigned PID1K19 : 1;
5138 unsigned PID1K110 : 1;
5139 unsigned PID1K111 : 1;
5140 unsigned PID1K112 : 1;
5141 unsigned PID1K113 : 1;
5142 unsigned PID1K114 : 1;
5143 unsigned PID1K115 : 1;
5146 struct
5148 unsigned K18 : 1;
5149 unsigned K19 : 1;
5150 unsigned K110 : 1;
5151 unsigned K111 : 1;
5152 unsigned K112 : 1;
5153 unsigned K113 : 1;
5154 unsigned K114 : 1;
5155 unsigned K115 : 1;
5157 } __PID1K1Hbits_t;
5159 extern __at(0x0591) volatile __PID1K1Hbits_t PID1K1Hbits;
5161 #define _PID1K18 0x01
5162 #define _K18 0x01
5163 #define _PID1K19 0x02
5164 #define _K19 0x02
5165 #define _PID1K110 0x04
5166 #define _K110 0x04
5167 #define _PID1K111 0x08
5168 #define _K111 0x08
5169 #define _PID1K112 0x10
5170 #define _K112 0x10
5171 #define _PID1K113 0x20
5172 #define _K113 0x20
5173 #define _PID1K114 0x40
5174 #define _K114 0x40
5175 #define _PID1K115 0x80
5176 #define _K115 0x80
5178 //==============================================================================
5180 extern __at(0x0592) __sfr PID1K2;
5182 //==============================================================================
5183 // PID1K2L Bits
5185 extern __at(0x0592) __sfr PID1K2L;
5187 typedef union
5189 struct
5191 unsigned PID1K20 : 1;
5192 unsigned PID1K21 : 1;
5193 unsigned PID1K22 : 1;
5194 unsigned PID1K23 : 1;
5195 unsigned PID1K24 : 1;
5196 unsigned PID1K25 : 1;
5197 unsigned PID1K26 : 1;
5198 unsigned PID1K27 : 1;
5201 struct
5203 unsigned K20 : 1;
5204 unsigned K21 : 1;
5205 unsigned K22 : 1;
5206 unsigned K23 : 1;
5207 unsigned K24 : 1;
5208 unsigned K25 : 1;
5209 unsigned K26 : 1;
5210 unsigned K27 : 1;
5212 } __PID1K2Lbits_t;
5214 extern __at(0x0592) volatile __PID1K2Lbits_t PID1K2Lbits;
5216 #define _PID1K20 0x01
5217 #define _K20 0x01
5218 #define _PID1K21 0x02
5219 #define _K21 0x02
5220 #define _PID1K22 0x04
5221 #define _K22 0x04
5222 #define _PID1K23 0x08
5223 #define _K23 0x08
5224 #define _PID1K24 0x10
5225 #define _K24 0x10
5226 #define _PID1K25 0x20
5227 #define _K25 0x20
5228 #define _PID1K26 0x40
5229 #define _K26 0x40
5230 #define _PID1K27 0x80
5231 #define _K27 0x80
5233 //==============================================================================
5236 //==============================================================================
5237 // PID1K2H Bits
5239 extern __at(0x0593) __sfr PID1K2H;
5241 typedef union
5243 struct
5245 unsigned PID1K28 : 1;
5246 unsigned PID1K29 : 1;
5247 unsigned PID1K210 : 1;
5248 unsigned PID1K211 : 1;
5249 unsigned PID1K212 : 1;
5250 unsigned PID1K213 : 1;
5251 unsigned PID1K214 : 1;
5252 unsigned PID1K215 : 1;
5255 struct
5257 unsigned K28 : 1;
5258 unsigned K29 : 1;
5259 unsigned K210 : 1;
5260 unsigned K211 : 1;
5261 unsigned K212 : 1;
5262 unsigned K213 : 1;
5263 unsigned K214 : 1;
5264 unsigned K215 : 1;
5266 } __PID1K2Hbits_t;
5268 extern __at(0x0593) volatile __PID1K2Hbits_t PID1K2Hbits;
5270 #define _PID1K28 0x01
5271 #define _K28 0x01
5272 #define _PID1K29 0x02
5273 #define _K29 0x02
5274 #define _PID1K210 0x04
5275 #define _K210 0x04
5276 #define _PID1K211 0x08
5277 #define _K211 0x08
5278 #define _PID1K212 0x10
5279 #define _K212 0x10
5280 #define _PID1K213 0x20
5281 #define _K213 0x20
5282 #define _PID1K214 0x40
5283 #define _K214 0x40
5284 #define _PID1K215 0x80
5285 #define _K215 0x80
5287 //==============================================================================
5289 extern __at(0x0594) __sfr PID1K3;
5291 //==============================================================================
5292 // PID1K3L Bits
5294 extern __at(0x0594) __sfr PID1K3L;
5296 typedef union
5298 struct
5300 unsigned PID1K30 : 1;
5301 unsigned PID1K31 : 1;
5302 unsigned PID1K32 : 1;
5303 unsigned PID1K33 : 1;
5304 unsigned PID1K34 : 1;
5305 unsigned PID1K35 : 1;
5306 unsigned PID1K36 : 1;
5307 unsigned PID1K37 : 1;
5310 struct
5312 unsigned K30 : 1;
5313 unsigned K31 : 1;
5314 unsigned K32 : 1;
5315 unsigned K33 : 1;
5316 unsigned K34 : 1;
5317 unsigned K35 : 1;
5318 unsigned K36 : 1;
5319 unsigned K37 : 1;
5321 } __PID1K3Lbits_t;
5323 extern __at(0x0594) volatile __PID1K3Lbits_t PID1K3Lbits;
5325 #define _PID1K30 0x01
5326 #define _K30 0x01
5327 #define _PID1K31 0x02
5328 #define _K31 0x02
5329 #define _PID1K32 0x04
5330 #define _K32 0x04
5331 #define _PID1K33 0x08
5332 #define _K33 0x08
5333 #define _PID1K34 0x10
5334 #define _K34 0x10
5335 #define _PID1K35 0x20
5336 #define _K35 0x20
5337 #define _PID1K36 0x40
5338 #define _K36 0x40
5339 #define _PID1K37 0x80
5340 #define _K37 0x80
5342 //==============================================================================
5345 //==============================================================================
5346 // PID1K3H Bits
5348 extern __at(0x0595) __sfr PID1K3H;
5350 typedef union
5352 struct
5354 unsigned PID1K38 : 1;
5355 unsigned PID1K39 : 1;
5356 unsigned PID1K310 : 1;
5357 unsigned PID1K311 : 1;
5358 unsigned PID1K312 : 1;
5359 unsigned PID1K313 : 1;
5360 unsigned PID1K314 : 1;
5361 unsigned PID1K315 : 1;
5364 struct
5366 unsigned K38 : 1;
5367 unsigned K39 : 1;
5368 unsigned K310 : 1;
5369 unsigned K311 : 1;
5370 unsigned K312 : 1;
5371 unsigned K313 : 1;
5372 unsigned K314 : 1;
5373 unsigned K315 : 1;
5375 } __PID1K3Hbits_t;
5377 extern __at(0x0595) volatile __PID1K3Hbits_t PID1K3Hbits;
5379 #define _PID1K38 0x01
5380 #define _K38 0x01
5381 #define _PID1K39 0x02
5382 #define _K39 0x02
5383 #define _PID1K310 0x04
5384 #define _K310 0x04
5385 #define _PID1K311 0x08
5386 #define _K311 0x08
5387 #define _PID1K312 0x10
5388 #define _K312 0x10
5389 #define _PID1K313 0x20
5390 #define _K313 0x20
5391 #define _PID1K314 0x40
5392 #define _K314 0x40
5393 #define _PID1K315 0x80
5394 #define _K315 0x80
5396 //==============================================================================
5398 extern __at(0x0596) __sfr PID1OUT;
5400 //==============================================================================
5401 // PID1OUTLL Bits
5403 extern __at(0x0596) __sfr PID1OUTLL;
5405 typedef union
5407 struct
5409 unsigned PID1OUT0 : 1;
5410 unsigned PID1OUT1 : 1;
5411 unsigned PID1OUT2 : 1;
5412 unsigned PID1OUT3 : 1;
5413 unsigned PID1OUT4 : 1;
5414 unsigned PID1OUT5 : 1;
5415 unsigned PID1OUT6 : 1;
5416 unsigned PID1OUT7 : 1;
5419 struct
5421 unsigned OUT0 : 1;
5422 unsigned OUT1 : 1;
5423 unsigned OUT2 : 1;
5424 unsigned OUT3 : 1;
5425 unsigned OUT4 : 1;
5426 unsigned OUT5 : 1;
5427 unsigned OUT6 : 1;
5428 unsigned OUT7 : 1;
5430 } __PID1OUTLLbits_t;
5432 extern __at(0x0596) volatile __PID1OUTLLbits_t PID1OUTLLbits;
5434 #define _PID1OUT0 0x01
5435 #define _OUT0 0x01
5436 #define _PID1OUT1 0x02
5437 #define _OUT1 0x02
5438 #define _PID1OUT2 0x04
5439 #define _OUT2 0x04
5440 #define _PID1OUT3 0x08
5441 #define _OUT3 0x08
5442 #define _PID1OUT4 0x10
5443 #define _OUT4 0x10
5444 #define _PID1OUT5 0x20
5445 #define _OUT5 0x20
5446 #define _PID1OUT6 0x40
5447 #define _OUT6 0x40
5448 #define _PID1OUT7 0x80
5449 #define _OUT7 0x80
5451 //==============================================================================
5454 //==============================================================================
5455 // PID1OUTLH Bits
5457 extern __at(0x0597) __sfr PID1OUTLH;
5459 typedef union
5461 struct
5463 unsigned PID1OUT8 : 1;
5464 unsigned PID1OUT9 : 1;
5465 unsigned PID1OUT10 : 1;
5466 unsigned PID1OUT11 : 1;
5467 unsigned PID1OUT12 : 1;
5468 unsigned PID1OUT13 : 1;
5469 unsigned PID1OUT14 : 1;
5470 unsigned PID1OUT15 : 1;
5473 struct
5475 unsigned OUT8 : 1;
5476 unsigned OUT9 : 1;
5477 unsigned OUT10 : 1;
5478 unsigned OUT11 : 1;
5479 unsigned OUT12 : 1;
5480 unsigned OUT13 : 1;
5481 unsigned OUT14 : 1;
5482 unsigned OUT15 : 1;
5484 } __PID1OUTLHbits_t;
5486 extern __at(0x0597) volatile __PID1OUTLHbits_t PID1OUTLHbits;
5488 #define _PID1OUT8 0x01
5489 #define _OUT8 0x01
5490 #define _PID1OUT9 0x02
5491 #define _OUT9 0x02
5492 #define _PID1OUT10 0x04
5493 #define _OUT10 0x04
5494 #define _PID1OUT11 0x08
5495 #define _OUT11 0x08
5496 #define _PID1OUT12 0x10
5497 #define _OUT12 0x10
5498 #define _PID1OUT13 0x20
5499 #define _OUT13 0x20
5500 #define _PID1OUT14 0x40
5501 #define _OUT14 0x40
5502 #define _PID1OUT15 0x80
5503 #define _OUT15 0x80
5505 //==============================================================================
5508 //==============================================================================
5509 // PID1OUTHL Bits
5511 extern __at(0x0598) __sfr PID1OUTHL;
5513 typedef union
5515 struct
5517 unsigned PID1OUT16 : 1;
5518 unsigned PID1OUT17 : 1;
5519 unsigned PID1OUT18 : 1;
5520 unsigned PID1OUT19 : 1;
5521 unsigned PID1OUT20 : 1;
5522 unsigned PID1OUT21 : 1;
5523 unsigned PID1OUT22 : 1;
5524 unsigned PID1OUT23 : 1;
5527 struct
5529 unsigned OUT16 : 1;
5530 unsigned OUT17 : 1;
5531 unsigned OUT18 : 1;
5532 unsigned OUT19 : 1;
5533 unsigned OUT20 : 1;
5534 unsigned OUT21 : 1;
5535 unsigned OUT22 : 1;
5536 unsigned OUT23 : 1;
5538 } __PID1OUTHLbits_t;
5540 extern __at(0x0598) volatile __PID1OUTHLbits_t PID1OUTHLbits;
5542 #define _PID1OUT16 0x01
5543 #define _OUT16 0x01
5544 #define _PID1OUT17 0x02
5545 #define _OUT17 0x02
5546 #define _PID1OUT18 0x04
5547 #define _OUT18 0x04
5548 #define _PID1OUT19 0x08
5549 #define _OUT19 0x08
5550 #define _PID1OUT20 0x10
5551 #define _OUT20 0x10
5552 #define _PID1OUT21 0x20
5553 #define _OUT21 0x20
5554 #define _PID1OUT22 0x40
5555 #define _OUT22 0x40
5556 #define _PID1OUT23 0x80
5557 #define _OUT23 0x80
5559 //==============================================================================
5562 //==============================================================================
5563 // PID1OUTHH Bits
5565 extern __at(0x0599) __sfr PID1OUTHH;
5567 typedef union
5569 struct
5571 unsigned PID1OUT24 : 1;
5572 unsigned PID1OUT25 : 1;
5573 unsigned PID1OUT26 : 1;
5574 unsigned PID1OUT27 : 1;
5575 unsigned PID1OUT28 : 1;
5576 unsigned PID1OUT29 : 1;
5577 unsigned PID1OUT30 : 1;
5578 unsigned PID1OUT31 : 1;
5581 struct
5583 unsigned OUT24 : 1;
5584 unsigned OUT25 : 1;
5585 unsigned OUT26 : 1;
5586 unsigned OUT27 : 1;
5587 unsigned OUT28 : 1;
5588 unsigned OUT29 : 1;
5589 unsigned OUT30 : 1;
5590 unsigned OUT31 : 1;
5592 } __PID1OUTHHbits_t;
5594 extern __at(0x0599) volatile __PID1OUTHHbits_t PID1OUTHHbits;
5596 #define _PID1OUT24 0x01
5597 #define _OUT24 0x01
5598 #define _PID1OUT25 0x02
5599 #define _OUT25 0x02
5600 #define _PID1OUT26 0x04
5601 #define _OUT26 0x04
5602 #define _PID1OUT27 0x08
5603 #define _OUT27 0x08
5604 #define _PID1OUT28 0x10
5605 #define _OUT28 0x10
5606 #define _PID1OUT29 0x20
5607 #define _OUT29 0x20
5608 #define _PID1OUT30 0x40
5609 #define _OUT30 0x40
5610 #define _PID1OUT31 0x80
5611 #define _OUT31 0x80
5613 //==============================================================================
5616 //==============================================================================
5617 // PID1OUTU Bits
5619 extern __at(0x059A) __sfr PID1OUTU;
5621 typedef union
5623 struct
5625 unsigned PID1OUT32 : 1;
5626 unsigned PID1OUT33 : 1;
5627 unsigned PID1OUT34 : 1;
5628 unsigned PID1OUT35 : 1;
5629 unsigned : 1;
5630 unsigned : 1;
5631 unsigned : 1;
5632 unsigned : 1;
5635 struct
5637 unsigned OUT32 : 1;
5638 unsigned OUT33 : 1;
5639 unsigned OUT34 : 1;
5640 unsigned OUT35 : 1;
5641 unsigned : 1;
5642 unsigned : 1;
5643 unsigned : 1;
5644 unsigned : 1;
5646 } __PID1OUTUbits_t;
5648 extern __at(0x059A) volatile __PID1OUTUbits_t PID1OUTUbits;
5650 #define _PID1OUT32 0x01
5651 #define _OUT32 0x01
5652 #define _PID1OUT33 0x02
5653 #define _OUT33 0x02
5654 #define _PID1OUT34 0x04
5655 #define _OUT34 0x04
5656 #define _PID1OUT35 0x08
5657 #define _OUT35 0x08
5659 //==============================================================================
5661 extern __at(0x059B) __sfr PID1Z1;
5663 //==============================================================================
5664 // PID1Z1L Bits
5666 extern __at(0x059B) __sfr PID1Z1L;
5668 typedef union
5670 struct
5672 unsigned PID1Z10 : 1;
5673 unsigned PID1Z11 : 1;
5674 unsigned PID1Z12 : 1;
5675 unsigned PID1Z13 : 1;
5676 unsigned PID1Z14 : 1;
5677 unsigned PID1Z15 : 1;
5678 unsigned PID1Z16 : 1;
5679 unsigned PID1Z17 : 1;
5682 struct
5684 unsigned Z10 : 1;
5685 unsigned Z11 : 1;
5686 unsigned Z12 : 1;
5687 unsigned Z13 : 1;
5688 unsigned Z14 : 1;
5689 unsigned Z15 : 1;
5690 unsigned Z16 : 1;
5691 unsigned Z17 : 1;
5693 } __PID1Z1Lbits_t;
5695 extern __at(0x059B) volatile __PID1Z1Lbits_t PID1Z1Lbits;
5697 #define _PID1Z10 0x01
5698 #define _Z10 0x01
5699 #define _PID1Z11 0x02
5700 #define _Z11 0x02
5701 #define _PID1Z12 0x04
5702 #define _Z12 0x04
5703 #define _PID1Z13 0x08
5704 #define _Z13 0x08
5705 #define _PID1Z14 0x10
5706 #define _Z14 0x10
5707 #define _PID1Z15 0x20
5708 #define _Z15 0x20
5709 #define _PID1Z16 0x40
5710 #define _Z16 0x40
5711 #define _PID1Z17 0x80
5712 #define _Z17 0x80
5714 //==============================================================================
5717 //==============================================================================
5718 // PID1Z1H Bits
5720 extern __at(0x059C) __sfr PID1Z1H;
5722 typedef union
5724 struct
5726 unsigned PID1Z18 : 1;
5727 unsigned PID1Z19 : 1;
5728 unsigned PID1Z110 : 1;
5729 unsigned PID1Z111 : 1;
5730 unsigned PID1Z112 : 1;
5731 unsigned PID1Z113 : 1;
5732 unsigned PID1Z114 : 1;
5733 unsigned PID1Z115 : 1;
5736 struct
5738 unsigned Z18 : 1;
5739 unsigned Z19 : 1;
5740 unsigned Z110 : 1;
5741 unsigned Z111 : 1;
5742 unsigned Z112 : 1;
5743 unsigned Z113 : 1;
5744 unsigned Z114 : 1;
5745 unsigned Z115 : 1;
5747 } __PID1Z1Hbits_t;
5749 extern __at(0x059C) volatile __PID1Z1Hbits_t PID1Z1Hbits;
5751 #define _PID1Z18 0x01
5752 #define _Z18 0x01
5753 #define _PID1Z19 0x02
5754 #define _Z19 0x02
5755 #define _PID1Z110 0x04
5756 #define _Z110 0x04
5757 #define _PID1Z111 0x08
5758 #define _Z111 0x08
5759 #define _PID1Z112 0x10
5760 #define _Z112 0x10
5761 #define _PID1Z113 0x20
5762 #define _Z113 0x20
5763 #define _PID1Z114 0x40
5764 #define _Z114 0x40
5765 #define _PID1Z115 0x80
5766 #define _Z115 0x80
5768 //==============================================================================
5771 //==============================================================================
5772 // PID1Z1U Bits
5774 extern __at(0x059D) __sfr PID1Z1U;
5776 typedef union
5778 struct
5780 unsigned PID1Z116 : 1;
5781 unsigned : 1;
5782 unsigned : 1;
5783 unsigned : 1;
5784 unsigned : 1;
5785 unsigned : 1;
5786 unsigned : 1;
5787 unsigned : 1;
5790 struct
5792 unsigned Z116 : 1;
5793 unsigned : 1;
5794 unsigned : 1;
5795 unsigned : 1;
5796 unsigned : 1;
5797 unsigned : 1;
5798 unsigned : 1;
5799 unsigned : 1;
5801 } __PID1Z1Ubits_t;
5803 extern __at(0x059D) volatile __PID1Z1Ubits_t PID1Z1Ubits;
5805 #define _PID1Z116 0x01
5806 #define _Z116 0x01
5808 //==============================================================================
5810 extern __at(0x060C) __sfr PID1Z2;
5812 //==============================================================================
5813 // PID1Z2L Bits
5815 extern __at(0x060C) __sfr PID1Z2L;
5817 typedef union
5819 struct
5821 unsigned PID1Z20 : 1;
5822 unsigned PID1Z21 : 1;
5823 unsigned PID1Z22 : 1;
5824 unsigned PID1Z23 : 1;
5825 unsigned PID1Z24 : 1;
5826 unsigned PID1Z25 : 1;
5827 unsigned PID1Z26 : 1;
5828 unsigned PID1Z27 : 1;
5831 struct
5833 unsigned Z20 : 1;
5834 unsigned Z21 : 1;
5835 unsigned Z22 : 1;
5836 unsigned Z23 : 1;
5837 unsigned Z24 : 1;
5838 unsigned Z25 : 1;
5839 unsigned Z26 : 1;
5840 unsigned Z27 : 1;
5842 } __PID1Z2Lbits_t;
5844 extern __at(0x060C) volatile __PID1Z2Lbits_t PID1Z2Lbits;
5846 #define _PID1Z20 0x01
5847 #define _Z20 0x01
5848 #define _PID1Z21 0x02
5849 #define _Z21 0x02
5850 #define _PID1Z22 0x04
5851 #define _Z22 0x04
5852 #define _PID1Z23 0x08
5853 #define _Z23 0x08
5854 #define _PID1Z24 0x10
5855 #define _Z24 0x10
5856 #define _PID1Z25 0x20
5857 #define _Z25 0x20
5858 #define _PID1Z26 0x40
5859 #define _Z26 0x40
5860 #define _PID1Z27 0x80
5861 #define _Z27 0x80
5863 //==============================================================================
5866 //==============================================================================
5867 // PID1Z2H Bits
5869 extern __at(0x060D) __sfr PID1Z2H;
5871 typedef union
5873 struct
5875 unsigned PID1Z28 : 1;
5876 unsigned PID1Z29 : 1;
5877 unsigned PID1Z210 : 1;
5878 unsigned PID1Z211 : 1;
5879 unsigned PID1Z212 : 1;
5880 unsigned PID1Z213 : 1;
5881 unsigned PID1Z214 : 1;
5882 unsigned PID1Z215 : 1;
5885 struct
5887 unsigned Z28 : 1;
5888 unsigned Z29 : 1;
5889 unsigned Z210 : 1;
5890 unsigned Z211 : 1;
5891 unsigned Z212 : 1;
5892 unsigned Z213 : 1;
5893 unsigned Z214 : 1;
5894 unsigned Z215 : 1;
5896 } __PID1Z2Hbits_t;
5898 extern __at(0x060D) volatile __PID1Z2Hbits_t PID1Z2Hbits;
5900 #define _PID1Z28 0x01
5901 #define _Z28 0x01
5902 #define _PID1Z29 0x02
5903 #define _Z29 0x02
5904 #define _PID1Z210 0x04
5905 #define _Z210 0x04
5906 #define _PID1Z211 0x08
5907 #define _Z211 0x08
5908 #define _PID1Z212 0x10
5909 #define _Z212 0x10
5910 #define _PID1Z213 0x20
5911 #define _Z213 0x20
5912 #define _PID1Z214 0x40
5913 #define _Z214 0x40
5914 #define _PID1Z215 0x80
5915 #define _Z215 0x80
5917 //==============================================================================
5920 //==============================================================================
5921 // PID1Z2U Bits
5923 extern __at(0x060E) __sfr PID1Z2U;
5925 typedef union
5927 struct
5929 unsigned PID1Z216 : 1;
5930 unsigned : 1;
5931 unsigned : 1;
5932 unsigned : 1;
5933 unsigned : 1;
5934 unsigned : 1;
5935 unsigned : 1;
5936 unsigned : 1;
5939 struct
5941 unsigned Z216 : 1;
5942 unsigned : 1;
5943 unsigned : 1;
5944 unsigned : 1;
5945 unsigned : 1;
5946 unsigned : 1;
5947 unsigned : 1;
5948 unsigned : 1;
5950 } __PID1Z2Ubits_t;
5952 extern __at(0x060E) volatile __PID1Z2Ubits_t PID1Z2Ubits;
5954 #define _PID1Z216 0x01
5955 #define _Z216 0x01
5957 //==============================================================================
5959 extern __at(0x060F) __sfr PID1ACC;
5961 //==============================================================================
5962 // PID1ACCLL Bits
5964 extern __at(0x060F) __sfr PID1ACCLL;
5966 typedef union
5968 struct
5970 unsigned PID1ACC0 : 1;
5971 unsigned PID1ACC1 : 1;
5972 unsigned PID1ACC2 : 1;
5973 unsigned PID1ACC3 : 1;
5974 unsigned PID1ACC4 : 1;
5975 unsigned PID1ACC5 : 1;
5976 unsigned PID1ACC6 : 1;
5977 unsigned PID1ACC7 : 1;
5980 struct
5982 unsigned ACC0 : 1;
5983 unsigned ACC1 : 1;
5984 unsigned ACC2 : 1;
5985 unsigned ACC3 : 1;
5986 unsigned ACC4 : 1;
5987 unsigned ACC5 : 1;
5988 unsigned ACC6 : 1;
5989 unsigned ACC7 : 1;
5991 } __PID1ACCLLbits_t;
5993 extern __at(0x060F) volatile __PID1ACCLLbits_t PID1ACCLLbits;
5995 #define _PID1ACCLL_PID1ACC0 0x01
5996 #define _PID1ACCLL_ACC0 0x01
5997 #define _PID1ACCLL_PID1ACC1 0x02
5998 #define _PID1ACCLL_ACC1 0x02
5999 #define _PID1ACCLL_PID1ACC2 0x04
6000 #define _PID1ACCLL_ACC2 0x04
6001 #define _PID1ACCLL_PID1ACC3 0x08
6002 #define _PID1ACCLL_ACC3 0x08
6003 #define _PID1ACCLL_PID1ACC4 0x10
6004 #define _PID1ACCLL_ACC4 0x10
6005 #define _PID1ACCLL_PID1ACC5 0x20
6006 #define _PID1ACCLL_ACC5 0x20
6007 #define _PID1ACCLL_PID1ACC6 0x40
6008 #define _PID1ACCLL_ACC6 0x40
6009 #define _PID1ACCLL_PID1ACC7 0x80
6010 #define _PID1ACCLL_ACC7 0x80
6012 //==============================================================================
6015 //==============================================================================
6016 // PID1ACCLH Bits
6018 extern __at(0x0610) __sfr PID1ACCLH;
6020 typedef union
6022 struct
6024 unsigned PID1ACC8 : 1;
6025 unsigned PID1ACC9 : 1;
6026 unsigned PID1ACC10 : 1;
6027 unsigned PID1ACC11 : 1;
6028 unsigned PID1ACC12 : 1;
6029 unsigned PID1ACC13 : 1;
6030 unsigned PID1ACC14 : 1;
6031 unsigned PID1ACC15 : 1;
6034 struct
6036 unsigned ACC8 : 1;
6037 unsigned ACC9 : 1;
6038 unsigned ACC10 : 1;
6039 unsigned ACC11 : 1;
6040 unsigned ACC12 : 1;
6041 unsigned ACC13 : 1;
6042 unsigned ACC14 : 1;
6043 unsigned ACC15 : 1;
6045 } __PID1ACCLHbits_t;
6047 extern __at(0x0610) volatile __PID1ACCLHbits_t PID1ACCLHbits;
6049 #define _PID1ACCLH_PID1ACC8 0x01
6050 #define _PID1ACCLH_ACC8 0x01
6051 #define _PID1ACCLH_PID1ACC9 0x02
6052 #define _PID1ACCLH_ACC9 0x02
6053 #define _PID1ACCLH_PID1ACC10 0x04
6054 #define _PID1ACCLH_ACC10 0x04
6055 #define _PID1ACCLH_PID1ACC11 0x08
6056 #define _PID1ACCLH_ACC11 0x08
6057 #define _PID1ACCLH_PID1ACC12 0x10
6058 #define _PID1ACCLH_ACC12 0x10
6059 #define _PID1ACCLH_PID1ACC13 0x20
6060 #define _PID1ACCLH_ACC13 0x20
6061 #define _PID1ACCLH_PID1ACC14 0x40
6062 #define _PID1ACCLH_ACC14 0x40
6063 #define _PID1ACCLH_PID1ACC15 0x80
6064 #define _PID1ACCLH_ACC15 0x80
6066 //==============================================================================
6069 //==============================================================================
6070 // PID1ACCHL Bits
6072 extern __at(0x0611) __sfr PID1ACCHL;
6074 typedef union
6076 struct
6078 unsigned PID1ACC16 : 1;
6079 unsigned PID1ACC17 : 1;
6080 unsigned PID1ACC18 : 1;
6081 unsigned PID1ACC19 : 1;
6082 unsigned PID1ACC20 : 1;
6083 unsigned PID1ACC21 : 1;
6084 unsigned PID1ACC22 : 1;
6085 unsigned PID1ACC23 : 1;
6088 struct
6090 unsigned ACC16 : 1;
6091 unsigned ACC17 : 1;
6092 unsigned ACC18 : 1;
6093 unsigned ACC19 : 1;
6094 unsigned ACC20 : 1;
6095 unsigned ACC21 : 1;
6096 unsigned ACC22 : 1;
6097 unsigned ACC23 : 1;
6099 } __PID1ACCHLbits_t;
6101 extern __at(0x0611) volatile __PID1ACCHLbits_t PID1ACCHLbits;
6103 #define _PID1ACC16 0x01
6104 #define _ACC16 0x01
6105 #define _PID1ACC17 0x02
6106 #define _ACC17 0x02
6107 #define _PID1ACC18 0x04
6108 #define _ACC18 0x04
6109 #define _PID1ACC19 0x08
6110 #define _ACC19 0x08
6111 #define _PID1ACC20 0x10
6112 #define _ACC20 0x10
6113 #define _PID1ACC21 0x20
6114 #define _ACC21 0x20
6115 #define _PID1ACC22 0x40
6116 #define _ACC22 0x40
6117 #define _PID1ACC23 0x80
6118 #define _ACC23 0x80
6120 //==============================================================================
6123 //==============================================================================
6124 // PID1ACCHH Bits
6126 extern __at(0x0612) __sfr PID1ACCHH;
6128 typedef union
6130 struct
6132 unsigned PID1ACC24 : 1;
6133 unsigned PID1ACC25 : 1;
6134 unsigned PID1ACC26 : 1;
6135 unsigned PID1ACC27 : 1;
6136 unsigned PID1ACC28 : 1;
6137 unsigned PID1ACC29 : 1;
6138 unsigned PID1ACC30 : 1;
6139 unsigned PID1ACC31 : 1;
6142 struct
6144 unsigned ACC24 : 1;
6145 unsigned ACC25 : 1;
6146 unsigned ACC26 : 1;
6147 unsigned ACC27 : 1;
6148 unsigned ACC28 : 1;
6149 unsigned ACC29 : 1;
6150 unsigned ACC30 : 1;
6151 unsigned ACC31 : 1;
6153 } __PID1ACCHHbits_t;
6155 extern __at(0x0612) volatile __PID1ACCHHbits_t PID1ACCHHbits;
6157 #define _PID1ACC24 0x01
6158 #define _ACC24 0x01
6159 #define _PID1ACC25 0x02
6160 #define _ACC25 0x02
6161 #define _PID1ACC26 0x04
6162 #define _ACC26 0x04
6163 #define _PID1ACC27 0x08
6164 #define _ACC27 0x08
6165 #define _PID1ACC28 0x10
6166 #define _ACC28 0x10
6167 #define _PID1ACC29 0x20
6168 #define _ACC29 0x20
6169 #define _PID1ACC30 0x40
6170 #define _ACC30 0x40
6171 #define _PID1ACC31 0x80
6172 #define _ACC31 0x80
6174 //==============================================================================
6177 //==============================================================================
6178 // PID1ACCU Bits
6180 extern __at(0x0613) __sfr PID1ACCU;
6182 typedef union
6184 struct
6186 unsigned PID1ACC32 : 1;
6187 unsigned PID1ACC33 : 1;
6188 unsigned PID1ACC34 : 1;
6189 unsigned : 1;
6190 unsigned : 1;
6191 unsigned : 1;
6192 unsigned : 1;
6193 unsigned : 1;
6196 struct
6198 unsigned ACC32 : 1;
6199 unsigned ACC33 : 1;
6200 unsigned ACC34 : 1;
6201 unsigned : 1;
6202 unsigned : 1;
6203 unsigned : 1;
6204 unsigned : 1;
6205 unsigned : 1;
6207 } __PID1ACCUbits_t;
6209 extern __at(0x0613) volatile __PID1ACCUbits_t PID1ACCUbits;
6211 #define _PID1ACC32 0x01
6212 #define _ACC32 0x01
6213 #define _PID1ACC33 0x02
6214 #define _ACC33 0x02
6215 #define _PID1ACC34 0x04
6216 #define _ACC34 0x04
6218 //==============================================================================
6221 //==============================================================================
6222 // PID1CON Bits
6224 extern __at(0x0614) __sfr PID1CON;
6226 typedef union
6228 struct
6230 unsigned MODE0 : 1;
6231 unsigned MODE1 : 1;
6232 unsigned MODE2 : 1;
6233 unsigned : 1;
6234 unsigned : 1;
6235 unsigned : 1;
6236 unsigned PID1BUSY : 1;
6237 unsigned PID1EN : 1;
6240 struct
6242 unsigned PID1MODE0 : 1;
6243 unsigned PID1MODE1 : 1;
6244 unsigned PID1MODE2 : 1;
6245 unsigned : 1;
6246 unsigned : 1;
6247 unsigned : 1;
6248 unsigned BUSY : 1;
6249 unsigned EN : 1;
6252 struct
6254 unsigned PID1MODE : 3;
6255 unsigned : 5;
6258 struct
6260 unsigned MODE : 3;
6261 unsigned : 5;
6263 } __PID1CONbits_t;
6265 extern __at(0x0614) volatile __PID1CONbits_t PID1CONbits;
6267 #define _PID1CON_MODE0 0x01
6268 #define _PID1CON_PID1MODE0 0x01
6269 #define _PID1CON_MODE1 0x02
6270 #define _PID1CON_PID1MODE1 0x02
6271 #define _PID1CON_MODE2 0x04
6272 #define _PID1CON_PID1MODE2 0x04
6273 #define _PID1CON_PID1BUSY 0x40
6274 #define _PID1CON_BUSY 0x40
6275 #define _PID1CON_PID1EN 0x80
6276 #define _PID1CON_EN 0x80
6278 //==============================================================================
6281 //==============================================================================
6282 // PWM3DCL Bits
6284 extern __at(0x0617) __sfr PWM3DCL;
6286 typedef union
6288 struct
6290 unsigned : 1;
6291 unsigned : 1;
6292 unsigned : 1;
6293 unsigned : 1;
6294 unsigned : 1;
6295 unsigned : 1;
6296 unsigned DC0 : 1;
6297 unsigned DC1 : 1;
6300 struct
6302 unsigned : 1;
6303 unsigned : 1;
6304 unsigned : 1;
6305 unsigned : 1;
6306 unsigned : 1;
6307 unsigned : 1;
6308 unsigned PWM3DC0 : 1;
6309 unsigned PWM3DC1 : 1;
6312 struct
6314 unsigned : 1;
6315 unsigned : 1;
6316 unsigned : 1;
6317 unsigned : 1;
6318 unsigned : 1;
6319 unsigned : 1;
6320 unsigned PWMPW0 : 1;
6321 unsigned PWMPW1 : 1;
6324 struct
6326 unsigned : 6;
6327 unsigned PWM3DC : 2;
6330 struct
6332 unsigned : 6;
6333 unsigned DC : 2;
6336 struct
6338 unsigned : 6;
6339 unsigned PWMPW : 2;
6341 } __PWM3DCLbits_t;
6343 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits;
6345 #define _DC0 0x40
6346 #define _PWM3DC0 0x40
6347 #define _PWMPW0 0x40
6348 #define _DC1 0x80
6349 #define _PWM3DC1 0x80
6350 #define _PWMPW1 0x80
6352 //==============================================================================
6355 //==============================================================================
6356 // PWM3DCH Bits
6358 extern __at(0x0618) __sfr PWM3DCH;
6360 typedef union
6362 struct
6364 unsigned DC2 : 1;
6365 unsigned DC3 : 1;
6366 unsigned DC4 : 1;
6367 unsigned DC5 : 1;
6368 unsigned DC6 : 1;
6369 unsigned DC7 : 1;
6370 unsigned DC8 : 1;
6371 unsigned DC9 : 1;
6374 struct
6376 unsigned PWM3DC2 : 1;
6377 unsigned PWM3DC3 : 1;
6378 unsigned PWM3DC4 : 1;
6379 unsigned PWM3DC5 : 1;
6380 unsigned PWM3DC6 : 1;
6381 unsigned PWM3DC7 : 1;
6382 unsigned PWM3DC8 : 1;
6383 unsigned PWM3DC9 : 1;
6386 struct
6388 unsigned PWMPW2 : 1;
6389 unsigned PWMPW3 : 1;
6390 unsigned PWMPW4 : 1;
6391 unsigned PWMPW5 : 1;
6392 unsigned PWMPW6 : 1;
6393 unsigned PWMPW7 : 1;
6394 unsigned PWMPW8 : 1;
6395 unsigned PWMPW9 : 1;
6397 } __PWM3DCHbits_t;
6399 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits;
6401 #define _DC2 0x01
6402 #define _PWM3DC2 0x01
6403 #define _PWMPW2 0x01
6404 #define _DC3 0x02
6405 #define _PWM3DC3 0x02
6406 #define _PWMPW3 0x02
6407 #define _DC4 0x04
6408 #define _PWM3DC4 0x04
6409 #define _PWMPW4 0x04
6410 #define _DC5 0x08
6411 #define _PWM3DC5 0x08
6412 #define _PWMPW5 0x08
6413 #define _DC6 0x10
6414 #define _PWM3DC6 0x10
6415 #define _PWMPW6 0x10
6416 #define _DC7 0x20
6417 #define _PWM3DC7 0x20
6418 #define _PWMPW7 0x20
6419 #define _DC8 0x40
6420 #define _PWM3DC8 0x40
6421 #define _PWMPW8 0x40
6422 #define _DC9 0x80
6423 #define _PWM3DC9 0x80
6424 #define _PWMPW9 0x80
6426 //==============================================================================
6429 //==============================================================================
6430 // PWM3CON Bits
6432 extern __at(0x0619) __sfr PWM3CON;
6434 typedef union
6436 struct
6438 unsigned : 1;
6439 unsigned : 1;
6440 unsigned : 1;
6441 unsigned : 1;
6442 unsigned POL : 1;
6443 unsigned OUT : 1;
6444 unsigned : 1;
6445 unsigned EN : 1;
6448 struct
6450 unsigned : 1;
6451 unsigned : 1;
6452 unsigned : 1;
6453 unsigned : 1;
6454 unsigned PWM3POL : 1;
6455 unsigned PWM3OUT : 1;
6456 unsigned : 1;
6457 unsigned PWM3EN : 1;
6459 } __PWM3CONbits_t;
6461 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits;
6463 #define _PWM3CON_POL 0x10
6464 #define _PWM3CON_PWM3POL 0x10
6465 #define _PWM3CON_OUT 0x20
6466 #define _PWM3CON_PWM3OUT 0x20
6467 #define _PWM3CON_EN 0x80
6468 #define _PWM3CON_PWM3EN 0x80
6470 //==============================================================================
6473 //==============================================================================
6474 // PWM4DCL Bits
6476 extern __at(0x061A) __sfr PWM4DCL;
6478 typedef union
6480 struct
6482 unsigned : 1;
6483 unsigned : 1;
6484 unsigned : 1;
6485 unsigned : 1;
6486 unsigned : 1;
6487 unsigned : 1;
6488 unsigned DC0 : 1;
6489 unsigned DC1 : 1;
6492 struct
6494 unsigned : 1;
6495 unsigned : 1;
6496 unsigned : 1;
6497 unsigned : 1;
6498 unsigned : 1;
6499 unsigned : 1;
6500 unsigned PWM4DC0 : 1;
6501 unsigned PWM4DC1 : 1;
6504 struct
6506 unsigned : 1;
6507 unsigned : 1;
6508 unsigned : 1;
6509 unsigned : 1;
6510 unsigned : 1;
6511 unsigned : 1;
6512 unsigned PWMPW0 : 1;
6513 unsigned PWMPW1 : 1;
6516 struct
6518 unsigned : 6;
6519 unsigned PWMPW : 2;
6522 struct
6524 unsigned : 6;
6525 unsigned PWM4DC : 2;
6528 struct
6530 unsigned : 6;
6531 unsigned DC : 2;
6533 } __PWM4DCLbits_t;
6535 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits;
6537 #define _PWM4DCL_DC0 0x40
6538 #define _PWM4DCL_PWM4DC0 0x40
6539 #define _PWM4DCL_PWMPW0 0x40
6540 #define _PWM4DCL_DC1 0x80
6541 #define _PWM4DCL_PWM4DC1 0x80
6542 #define _PWM4DCL_PWMPW1 0x80
6544 //==============================================================================
6547 //==============================================================================
6548 // PWM4DCH Bits
6550 extern __at(0x061B) __sfr PWM4DCH;
6552 typedef union
6554 struct
6556 unsigned DC2 : 1;
6557 unsigned DC3 : 1;
6558 unsigned DC4 : 1;
6559 unsigned DC5 : 1;
6560 unsigned DC6 : 1;
6561 unsigned DC7 : 1;
6562 unsigned DC8 : 1;
6563 unsigned DC9 : 1;
6566 struct
6568 unsigned PWM4DC2 : 1;
6569 unsigned PWM4DC3 : 1;
6570 unsigned PWM4DC4 : 1;
6571 unsigned PWM4DC5 : 1;
6572 unsigned PWM4DC6 : 1;
6573 unsigned PWM4DC7 : 1;
6574 unsigned PWM4DC8 : 1;
6575 unsigned PWM4DC9 : 1;
6578 struct
6580 unsigned PWMPW2 : 1;
6581 unsigned PWMPW3 : 1;
6582 unsigned PWMPW4 : 1;
6583 unsigned PWMPW5 : 1;
6584 unsigned PWMPW6 : 1;
6585 unsigned PWMPW7 : 1;
6586 unsigned PWMPW8 : 1;
6587 unsigned PWMPW9 : 1;
6589 } __PWM4DCHbits_t;
6591 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits;
6593 #define _PWM4DCH_DC2 0x01
6594 #define _PWM4DCH_PWM4DC2 0x01
6595 #define _PWM4DCH_PWMPW2 0x01
6596 #define _PWM4DCH_DC3 0x02
6597 #define _PWM4DCH_PWM4DC3 0x02
6598 #define _PWM4DCH_PWMPW3 0x02
6599 #define _PWM4DCH_DC4 0x04
6600 #define _PWM4DCH_PWM4DC4 0x04
6601 #define _PWM4DCH_PWMPW4 0x04
6602 #define _PWM4DCH_DC5 0x08
6603 #define _PWM4DCH_PWM4DC5 0x08
6604 #define _PWM4DCH_PWMPW5 0x08
6605 #define _PWM4DCH_DC6 0x10
6606 #define _PWM4DCH_PWM4DC6 0x10
6607 #define _PWM4DCH_PWMPW6 0x10
6608 #define _PWM4DCH_DC7 0x20
6609 #define _PWM4DCH_PWM4DC7 0x20
6610 #define _PWM4DCH_PWMPW7 0x20
6611 #define _PWM4DCH_DC8 0x40
6612 #define _PWM4DCH_PWM4DC8 0x40
6613 #define _PWM4DCH_PWMPW8 0x40
6614 #define _PWM4DCH_DC9 0x80
6615 #define _PWM4DCH_PWM4DC9 0x80
6616 #define _PWM4DCH_PWMPW9 0x80
6618 //==============================================================================
6621 //==============================================================================
6622 // PWM4CON Bits
6624 extern __at(0x061C) __sfr PWM4CON;
6626 typedef union
6628 struct
6630 unsigned : 1;
6631 unsigned : 1;
6632 unsigned : 1;
6633 unsigned : 1;
6634 unsigned POL : 1;
6635 unsigned OUT : 1;
6636 unsigned : 1;
6637 unsigned EN : 1;
6640 struct
6642 unsigned : 1;
6643 unsigned : 1;
6644 unsigned : 1;
6645 unsigned : 1;
6646 unsigned PWM4POL : 1;
6647 unsigned PWM4OUT : 1;
6648 unsigned : 1;
6649 unsigned PWM4EN : 1;
6651 } __PWM4CONbits_t;
6653 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits;
6655 #define _PWM4CON_POL 0x10
6656 #define _PWM4CON_PWM4POL 0x10
6657 #define _PWM4CON_OUT 0x20
6658 #define _PWM4CON_PWM4OUT 0x20
6659 #define _PWM4CON_EN 0x80
6660 #define _PWM4CON_PWM4EN 0x80
6662 //==============================================================================
6665 //==============================================================================
6666 // CWG1DBR Bits
6668 extern __at(0x0691) __sfr CWG1DBR;
6670 typedef union
6672 struct
6674 unsigned DBR0 : 1;
6675 unsigned DBR1 : 1;
6676 unsigned DBR2 : 1;
6677 unsigned DBR3 : 1;
6678 unsigned DBR4 : 1;
6679 unsigned DBR5 : 1;
6680 unsigned : 1;
6681 unsigned : 1;
6684 struct
6686 unsigned CWG1DBR0 : 1;
6687 unsigned CWG1DBR1 : 1;
6688 unsigned CWG1DBR2 : 1;
6689 unsigned CWG1DBR3 : 1;
6690 unsigned CWG1DBR4 : 1;
6691 unsigned CWG1DBR5 : 1;
6692 unsigned : 1;
6693 unsigned : 1;
6696 struct
6698 unsigned CWG1DBR : 6;
6699 unsigned : 2;
6702 struct
6704 unsigned DBR : 6;
6705 unsigned : 2;
6707 } __CWG1DBRbits_t;
6709 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits;
6711 #define _DBR0 0x01
6712 #define _CWG1DBR0 0x01
6713 #define _DBR1 0x02
6714 #define _CWG1DBR1 0x02
6715 #define _DBR2 0x04
6716 #define _CWG1DBR2 0x04
6717 #define _DBR3 0x08
6718 #define _CWG1DBR3 0x08
6719 #define _DBR4 0x10
6720 #define _CWG1DBR4 0x10
6721 #define _DBR5 0x20
6722 #define _CWG1DBR5 0x20
6724 //==============================================================================
6727 //==============================================================================
6728 // CWG1DBF Bits
6730 extern __at(0x0692) __sfr CWG1DBF;
6732 typedef union
6734 struct
6736 unsigned DBF0 : 1;
6737 unsigned DBF1 : 1;
6738 unsigned DBF2 : 1;
6739 unsigned DBF3 : 1;
6740 unsigned DBF4 : 1;
6741 unsigned DBF5 : 1;
6742 unsigned : 1;
6743 unsigned : 1;
6746 struct
6748 unsigned CWG1DBF0 : 1;
6749 unsigned CWG1DBF1 : 1;
6750 unsigned CWG1DBF2 : 1;
6751 unsigned CWG1DBF3 : 1;
6752 unsigned CWG1DBF4 : 1;
6753 unsigned CWG1DBF5 : 1;
6754 unsigned : 1;
6755 unsigned : 1;
6758 struct
6760 unsigned DBF : 6;
6761 unsigned : 2;
6764 struct
6766 unsigned CWG1DBF : 6;
6767 unsigned : 2;
6769 } __CWG1DBFbits_t;
6771 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits;
6773 #define _DBF0 0x01
6774 #define _CWG1DBF0 0x01
6775 #define _DBF1 0x02
6776 #define _CWG1DBF1 0x02
6777 #define _DBF2 0x04
6778 #define _CWG1DBF2 0x04
6779 #define _DBF3 0x08
6780 #define _CWG1DBF3 0x08
6781 #define _DBF4 0x10
6782 #define _CWG1DBF4 0x10
6783 #define _DBF5 0x20
6784 #define _CWG1DBF5 0x20
6786 //==============================================================================
6789 //==============================================================================
6790 // CWG1AS0 Bits
6792 extern __at(0x0693) __sfr CWG1AS0;
6794 typedef union
6796 struct
6798 unsigned : 1;
6799 unsigned : 1;
6800 unsigned LSAC0 : 1;
6801 unsigned LSAC1 : 1;
6802 unsigned LSBD0 : 1;
6803 unsigned LSBD1 : 1;
6804 unsigned REN : 1;
6805 unsigned SHUTDOWN : 1;
6808 struct
6810 unsigned : 1;
6811 unsigned : 1;
6812 unsigned CWG1LSAC0 : 1;
6813 unsigned CWG1LSAC1 : 1;
6814 unsigned CWG1LSBD0 : 1;
6815 unsigned CWG1LSBD1 : 1;
6816 unsigned CWG1REN : 1;
6817 unsigned CWG1SHUTDOWN : 1;
6820 struct
6822 unsigned : 2;
6823 unsigned CWG1LSAC : 2;
6824 unsigned : 4;
6827 struct
6829 unsigned : 2;
6830 unsigned LSAC : 2;
6831 unsigned : 4;
6834 struct
6836 unsigned : 4;
6837 unsigned LSBD : 2;
6838 unsigned : 2;
6841 struct
6843 unsigned : 4;
6844 unsigned CWG1LSBD : 2;
6845 unsigned : 2;
6847 } __CWG1AS0bits_t;
6849 extern __at(0x0693) volatile __CWG1AS0bits_t CWG1AS0bits;
6851 #define _LSAC0 0x04
6852 #define _CWG1LSAC0 0x04
6853 #define _LSAC1 0x08
6854 #define _CWG1LSAC1 0x08
6855 #define _LSBD0 0x10
6856 #define _CWG1LSBD0 0x10
6857 #define _LSBD1 0x20
6858 #define _CWG1LSBD1 0x20
6859 #define _REN 0x40
6860 #define _CWG1REN 0x40
6861 #define _SHUTDOWN 0x80
6862 #define _CWG1SHUTDOWN 0x80
6864 //==============================================================================
6867 //==============================================================================
6868 // CWG1AS1 Bits
6870 extern __at(0x0694) __sfr CWG1AS1;
6872 typedef union
6874 struct
6876 unsigned INAS : 1;
6877 unsigned C1AS : 1;
6878 unsigned C2AS : 1;
6879 unsigned : 1;
6880 unsigned TMR2AS : 1;
6881 unsigned TMR4AS : 1;
6882 unsigned TMR6AS : 1;
6883 unsigned : 1;
6886 struct
6888 unsigned CWG1INAS : 1;
6889 unsigned CWG1C1AS : 1;
6890 unsigned CWG1C2AS : 1;
6891 unsigned : 1;
6892 unsigned CWG1TMR2AS : 1;
6893 unsigned CWG1TMR4AS : 1;
6894 unsigned CWG1TMR6AS : 1;
6895 unsigned : 1;
6897 } __CWG1AS1bits_t;
6899 extern __at(0x0694) volatile __CWG1AS1bits_t CWG1AS1bits;
6901 #define _INAS 0x01
6902 #define _CWG1INAS 0x01
6903 #define _C1AS 0x02
6904 #define _CWG1C1AS 0x02
6905 #define _C2AS 0x04
6906 #define _CWG1C2AS 0x04
6907 #define _TMR2AS 0x10
6908 #define _CWG1TMR2AS 0x10
6909 #define _TMR4AS 0x20
6910 #define _CWG1TMR4AS 0x20
6911 #define _TMR6AS 0x40
6912 #define _CWG1TMR6AS 0x40
6914 //==============================================================================
6917 //==============================================================================
6918 // CWG1OCON0 Bits
6920 extern __at(0x0695) __sfr CWG1OCON0;
6922 typedef union
6924 struct
6926 unsigned STRA : 1;
6927 unsigned STRB : 1;
6928 unsigned STRC : 1;
6929 unsigned STRD : 1;
6930 unsigned OVRA : 1;
6931 unsigned OVRB : 1;
6932 unsigned OVRC : 1;
6933 unsigned OVRD : 1;
6936 struct
6938 unsigned CWG1STRA : 1;
6939 unsigned CWG1STRB : 1;
6940 unsigned CWG1STRC : 1;
6941 unsigned CWG1STRD : 1;
6942 unsigned CWG1OVRA : 1;
6943 unsigned CWG1OVRB : 1;
6944 unsigned CWG1OVRC : 1;
6945 unsigned CWG1OVRD : 1;
6947 } __CWG1OCON0bits_t;
6949 extern __at(0x0695) volatile __CWG1OCON0bits_t CWG1OCON0bits;
6951 #define _STRA 0x01
6952 #define _CWG1STRA 0x01
6953 #define _STRB 0x02
6954 #define _CWG1STRB 0x02
6955 #define _STRC 0x04
6956 #define _CWG1STRC 0x04
6957 #define _STRD 0x08
6958 #define _CWG1STRD 0x08
6959 #define _OVRA 0x10
6960 #define _CWG1OVRA 0x10
6961 #define _OVRB 0x20
6962 #define _CWG1OVRB 0x20
6963 #define _OVRC 0x40
6964 #define _CWG1OVRC 0x40
6965 #define _OVRD 0x80
6966 #define _CWG1OVRD 0x80
6968 //==============================================================================
6971 //==============================================================================
6972 // CWG1CON0 Bits
6974 extern __at(0x0696) __sfr CWG1CON0;
6976 typedef union
6978 struct
6980 unsigned MODE0 : 1;
6981 unsigned MODE1 : 1;
6982 unsigned MODE2 : 1;
6983 unsigned : 1;
6984 unsigned : 1;
6985 unsigned : 1;
6986 unsigned LD : 1;
6987 unsigned EN : 1;
6990 struct
6992 unsigned CWG1MODE0 : 1;
6993 unsigned CWG1MODE1 : 1;
6994 unsigned CWG1MODE2 : 1;
6995 unsigned : 1;
6996 unsigned : 1;
6997 unsigned : 1;
6998 unsigned CWG1LD : 1;
6999 unsigned G1EN : 1;
7002 struct
7004 unsigned : 1;
7005 unsigned : 1;
7006 unsigned : 1;
7007 unsigned : 1;
7008 unsigned : 1;
7009 unsigned : 1;
7010 unsigned : 1;
7011 unsigned CWG1EN : 1;
7014 struct
7016 unsigned MODE : 3;
7017 unsigned : 5;
7020 struct
7022 unsigned CWG1MODE : 3;
7023 unsigned : 5;
7025 } __CWG1CON0bits_t;
7027 extern __at(0x0696) volatile __CWG1CON0bits_t CWG1CON0bits;
7029 #define _CWG1CON0_MODE0 0x01
7030 #define _CWG1CON0_CWG1MODE0 0x01
7031 #define _CWG1CON0_MODE1 0x02
7032 #define _CWG1CON0_CWG1MODE1 0x02
7033 #define _CWG1CON0_MODE2 0x04
7034 #define _CWG1CON0_CWG1MODE2 0x04
7035 #define _CWG1CON0_LD 0x40
7036 #define _CWG1CON0_CWG1LD 0x40
7037 #define _CWG1CON0_EN 0x80
7038 #define _CWG1CON0_G1EN 0x80
7039 #define _CWG1CON0_CWG1EN 0x80
7041 //==============================================================================
7044 //==============================================================================
7045 // CWG1CON1 Bits
7047 extern __at(0x0697) __sfr CWG1CON1;
7049 typedef union
7051 struct
7053 unsigned POLA : 1;
7054 unsigned POLB : 1;
7055 unsigned POLC : 1;
7056 unsigned POLD : 1;
7057 unsigned : 1;
7058 unsigned IN : 1;
7059 unsigned : 1;
7060 unsigned : 1;
7063 struct
7065 unsigned CWG1POLA : 1;
7066 unsigned CWG1POLB : 1;
7067 unsigned CWG1POLC : 1;
7068 unsigned CWG1POLD : 1;
7069 unsigned : 1;
7070 unsigned CWG1IN : 1;
7071 unsigned : 1;
7072 unsigned : 1;
7074 } __CWG1CON1bits_t;
7076 extern __at(0x0697) volatile __CWG1CON1bits_t CWG1CON1bits;
7078 #define _POLA 0x01
7079 #define _CWG1POLA 0x01
7080 #define _POLB 0x02
7081 #define _CWG1POLB 0x02
7082 #define _POLC 0x04
7083 #define _CWG1POLC 0x04
7084 #define _POLD 0x08
7085 #define _CWG1POLD 0x08
7086 #define _IN 0x20
7087 #define _CWG1IN 0x20
7089 //==============================================================================
7092 //==============================================================================
7093 // CWG1CLKCON Bits
7095 extern __at(0x0699) __sfr CWG1CLKCON;
7097 typedef union
7099 struct
7101 unsigned CS : 1;
7102 unsigned : 1;
7103 unsigned : 1;
7104 unsigned : 1;
7105 unsigned : 1;
7106 unsigned : 1;
7107 unsigned : 1;
7108 unsigned : 1;
7111 struct
7113 unsigned CWG1CS : 1;
7114 unsigned : 1;
7115 unsigned : 1;
7116 unsigned : 1;
7117 unsigned : 1;
7118 unsigned : 1;
7119 unsigned : 1;
7120 unsigned : 1;
7122 } __CWG1CLKCONbits_t;
7124 extern __at(0x0699) volatile __CWG1CLKCONbits_t CWG1CLKCONbits;
7126 #define _CWG1CLKCON_CS 0x01
7127 #define _CWG1CLKCON_CWG1CS 0x01
7129 //==============================================================================
7132 //==============================================================================
7133 // CWG1ISM Bits
7135 extern __at(0x069A) __sfr CWG1ISM;
7137 typedef union
7139 struct
7141 unsigned IS0 : 1;
7142 unsigned IS1 : 1;
7143 unsigned IS2 : 1;
7144 unsigned IS3 : 1;
7145 unsigned : 1;
7146 unsigned : 1;
7147 unsigned : 1;
7148 unsigned : 1;
7151 struct
7153 unsigned CWG1IS0 : 1;
7154 unsigned CWG1IS1 : 1;
7155 unsigned CWG1IS2 : 1;
7156 unsigned CWG1IS3 : 1;
7157 unsigned : 1;
7158 unsigned : 1;
7159 unsigned : 1;
7160 unsigned : 1;
7163 struct
7165 unsigned IS : 4;
7166 unsigned : 4;
7169 struct
7171 unsigned CWG1IS : 4;
7172 unsigned : 4;
7174 } __CWG1ISMbits_t;
7176 extern __at(0x069A) volatile __CWG1ISMbits_t CWG1ISMbits;
7178 #define _IS0 0x01
7179 #define _CWG1IS0 0x01
7180 #define _IS1 0x02
7181 #define _CWG1IS1 0x02
7182 #define _IS2 0x04
7183 #define _CWG1IS2 0x04
7184 #define _IS3 0x08
7185 #define _CWG1IS3 0x08
7187 //==============================================================================
7190 //==============================================================================
7191 // WDTCON0 Bits
7193 extern __at(0x0711) __sfr WDTCON0;
7195 typedef union
7197 struct
7199 unsigned SEN : 1;
7200 unsigned WDTPS0 : 1;
7201 unsigned WDTPS1 : 1;
7202 unsigned WDTPS2 : 1;
7203 unsigned WDTPS3 : 1;
7204 unsigned WDTPS4 : 1;
7205 unsigned : 1;
7206 unsigned : 1;
7209 struct
7211 unsigned SWDTEN : 1;
7212 unsigned : 1;
7213 unsigned : 1;
7214 unsigned : 1;
7215 unsigned : 1;
7216 unsigned : 1;
7217 unsigned : 1;
7218 unsigned : 1;
7221 struct
7223 unsigned WDTSEN : 1;
7224 unsigned : 1;
7225 unsigned : 1;
7226 unsigned : 1;
7227 unsigned : 1;
7228 unsigned : 1;
7229 unsigned : 1;
7230 unsigned : 1;
7233 struct
7235 unsigned : 1;
7236 unsigned WDTPS : 5;
7237 unsigned : 2;
7239 } __WDTCON0bits_t;
7241 extern __at(0x0711) volatile __WDTCON0bits_t WDTCON0bits;
7243 #define _WDTCON0_SEN 0x01
7244 #define _WDTCON0_SWDTEN 0x01
7245 #define _WDTCON0_WDTSEN 0x01
7246 #define _WDTCON0_WDTPS0 0x02
7247 #define _WDTCON0_WDTPS1 0x04
7248 #define _WDTCON0_WDTPS2 0x08
7249 #define _WDTCON0_WDTPS3 0x10
7250 #define _WDTCON0_WDTPS4 0x20
7252 //==============================================================================
7255 //==============================================================================
7256 // WDTCON1 Bits
7258 extern __at(0x0712) __sfr WDTCON1;
7260 typedef union
7262 struct
7264 unsigned WINDOW0 : 1;
7265 unsigned WINDOW1 : 1;
7266 unsigned WINDOW2 : 1;
7267 unsigned : 1;
7268 unsigned WDTCS0 : 1;
7269 unsigned WDTCS1 : 1;
7270 unsigned WDTCS2 : 1;
7271 unsigned : 1;
7274 struct
7276 unsigned WDTWINDOW0 : 1;
7277 unsigned WDTWINDOW1 : 1;
7278 unsigned WDTWINDOW2 : 1;
7279 unsigned : 1;
7280 unsigned : 1;
7281 unsigned : 1;
7282 unsigned : 1;
7283 unsigned : 1;
7286 struct
7288 unsigned WDTWINDOW : 3;
7289 unsigned : 5;
7292 struct
7294 unsigned WINDOW : 3;
7295 unsigned : 5;
7298 struct
7300 unsigned : 4;
7301 unsigned WDTCS : 3;
7302 unsigned : 1;
7304 } __WDTCON1bits_t;
7306 extern __at(0x0712) volatile __WDTCON1bits_t WDTCON1bits;
7308 #define _WINDOW0 0x01
7309 #define _WDTWINDOW0 0x01
7310 #define _WINDOW1 0x02
7311 #define _WDTWINDOW1 0x02
7312 #define _WINDOW2 0x04
7313 #define _WDTWINDOW2 0x04
7314 #define _WDTCS0 0x10
7315 #define _WDTCS1 0x20
7316 #define _WDTCS2 0x40
7318 //==============================================================================
7321 //==============================================================================
7322 // WDTPSL Bits
7324 extern __at(0x0713) __sfr WDTPSL;
7326 typedef union
7328 struct
7330 unsigned PSCNT0 : 1;
7331 unsigned PSCNT1 : 1;
7332 unsigned PSCNT2 : 1;
7333 unsigned PSCNT3 : 1;
7334 unsigned PSCNT4 : 1;
7335 unsigned PSCNT5 : 1;
7336 unsigned PSCNT6 : 1;
7337 unsigned PSCNT7 : 1;
7340 struct
7342 unsigned WDTPSCNT0 : 1;
7343 unsigned WDTPSCNT1 : 1;
7344 unsigned WDTPSCNT2 : 1;
7345 unsigned WDTPSCNT3 : 1;
7346 unsigned WDTPSCNT4 : 1;
7347 unsigned WDTPSCNT5 : 1;
7348 unsigned WDTPSCNT6 : 1;
7349 unsigned WDTPSCNT7 : 1;
7351 } __WDTPSLbits_t;
7353 extern __at(0x0713) volatile __WDTPSLbits_t WDTPSLbits;
7355 #define _PSCNT0 0x01
7356 #define _WDTPSCNT0 0x01
7357 #define _PSCNT1 0x02
7358 #define _WDTPSCNT1 0x02
7359 #define _PSCNT2 0x04
7360 #define _WDTPSCNT2 0x04
7361 #define _PSCNT3 0x08
7362 #define _WDTPSCNT3 0x08
7363 #define _PSCNT4 0x10
7364 #define _WDTPSCNT4 0x10
7365 #define _PSCNT5 0x20
7366 #define _WDTPSCNT5 0x20
7367 #define _PSCNT6 0x40
7368 #define _WDTPSCNT6 0x40
7369 #define _PSCNT7 0x80
7370 #define _WDTPSCNT7 0x80
7372 //==============================================================================
7375 //==============================================================================
7376 // WDTPSH Bits
7378 extern __at(0x0714) __sfr WDTPSH;
7380 typedef union
7382 struct
7384 unsigned PSCNT8 : 1;
7385 unsigned PSCNT9 : 1;
7386 unsigned PSCNT10 : 1;
7387 unsigned PSCNT11 : 1;
7388 unsigned PSCNT12 : 1;
7389 unsigned PSCNT13 : 1;
7390 unsigned PSCNT14 : 1;
7391 unsigned PSCNT15 : 1;
7394 struct
7396 unsigned WDTPSCNT8 : 1;
7397 unsigned WDTPSCNT9 : 1;
7398 unsigned WDTPSCNT10 : 1;
7399 unsigned WDTPSCNT11 : 1;
7400 unsigned WDTPSCNT12 : 1;
7401 unsigned WDTPSCNT13 : 1;
7402 unsigned WDTPSCNT14 : 1;
7403 unsigned WDTPSCNT15 : 1;
7405 } __WDTPSHbits_t;
7407 extern __at(0x0714) volatile __WDTPSHbits_t WDTPSHbits;
7409 #define _PSCNT8 0x01
7410 #define _WDTPSCNT8 0x01
7411 #define _PSCNT9 0x02
7412 #define _WDTPSCNT9 0x02
7413 #define _PSCNT10 0x04
7414 #define _WDTPSCNT10 0x04
7415 #define _PSCNT11 0x08
7416 #define _WDTPSCNT11 0x08
7417 #define _PSCNT12 0x10
7418 #define _WDTPSCNT12 0x10
7419 #define _PSCNT13 0x20
7420 #define _WDTPSCNT13 0x20
7421 #define _PSCNT14 0x40
7422 #define _WDTPSCNT14 0x40
7423 #define _PSCNT15 0x80
7424 #define _WDTPSCNT15 0x80
7426 //==============================================================================
7429 //==============================================================================
7430 // WDTTMR Bits
7432 extern __at(0x0715) __sfr WDTTMR;
7434 typedef union
7436 struct
7438 unsigned PSCNT16 : 1;
7439 unsigned PSCNT17 : 1;
7440 unsigned STATE : 1;
7441 unsigned WDTTMR0 : 1;
7442 unsigned WDTTMR1 : 1;
7443 unsigned WDTTMR2 : 1;
7444 unsigned WDTTMR3 : 1;
7445 unsigned WDTTMR4 : 1;
7448 struct
7450 unsigned WDTPSCNT16 : 1;
7451 unsigned WDTPSCNT17 : 1;
7452 unsigned WDTSTATE : 1;
7453 unsigned : 1;
7454 unsigned : 1;
7455 unsigned : 1;
7456 unsigned : 1;
7457 unsigned : 1;
7460 struct
7462 unsigned : 3;
7463 unsigned WDTTMR : 5;
7465 } __WDTTMRbits_t;
7467 extern __at(0x0715) volatile __WDTTMRbits_t WDTTMRbits;
7469 #define _PSCNT16 0x01
7470 #define _WDTPSCNT16 0x01
7471 #define _PSCNT17 0x02
7472 #define _WDTPSCNT17 0x02
7473 #define _STATE 0x04
7474 #define _WDTSTATE 0x04
7475 #define _WDTTMR0 0x08
7476 #define _WDTTMR1 0x10
7477 #define _WDTTMR2 0x20
7478 #define _WDTTMR3 0x40
7479 #define _WDTTMR4 0x80
7481 //==============================================================================
7483 extern __at(0x0718) __sfr SCANLADR;
7485 //==============================================================================
7486 // SCANLADRL Bits
7488 extern __at(0x0718) __sfr SCANLADRL;
7490 typedef union
7492 struct
7494 unsigned LDAR0 : 1;
7495 unsigned LDAR1 : 1;
7496 unsigned LADR2 : 1;
7497 unsigned LADR3 : 1;
7498 unsigned LADR4 : 1;
7499 unsigned LADR5 : 1;
7500 unsigned LADR6 : 1;
7501 unsigned LADR7 : 1;
7504 struct
7506 unsigned SCANLADR0 : 1;
7507 unsigned SCANLADR1 : 1;
7508 unsigned SCANLADR2 : 1;
7509 unsigned SCANLADR3 : 1;
7510 unsigned SCANLADR4 : 1;
7511 unsigned SCANLADR5 : 1;
7512 unsigned SCANLADR6 : 1;
7513 unsigned SCANLADR7 : 1;
7516 struct
7518 unsigned LDAR : 2;
7519 unsigned : 6;
7521 } __SCANLADRLbits_t;
7523 extern __at(0x0718) volatile __SCANLADRLbits_t SCANLADRLbits;
7525 #define _LDAR0 0x01
7526 #define _SCANLADR0 0x01
7527 #define _LDAR1 0x02
7528 #define _SCANLADR1 0x02
7529 #define _LADR2 0x04
7530 #define _SCANLADR2 0x04
7531 #define _LADR3 0x08
7532 #define _SCANLADR3 0x08
7533 #define _LADR4 0x10
7534 #define _SCANLADR4 0x10
7535 #define _LADR5 0x20
7536 #define _SCANLADR5 0x20
7537 #define _LADR6 0x40
7538 #define _SCANLADR6 0x40
7539 #define _LADR7 0x80
7540 #define _SCANLADR7 0x80
7542 //==============================================================================
7545 //==============================================================================
7546 // SCANLADRH Bits
7548 extern __at(0x0719) __sfr SCANLADRH;
7550 typedef union
7552 struct
7554 unsigned LADR8 : 1;
7555 unsigned LADR9 : 1;
7556 unsigned LADR10 : 1;
7557 unsigned LADR11 : 1;
7558 unsigned LADR12 : 1;
7559 unsigned LADR13 : 1;
7560 unsigned LADR14 : 1;
7561 unsigned LADR15 : 1;
7564 struct
7566 unsigned SCANLADR8 : 1;
7567 unsigned SCANLADR9 : 1;
7568 unsigned SCANLADR10 : 1;
7569 unsigned SCANLADR11 : 1;
7570 unsigned SCANLADR12 : 1;
7571 unsigned SCANLADR13 : 1;
7572 unsigned SCANLADR14 : 1;
7573 unsigned SCANLADR15 : 1;
7575 } __SCANLADRHbits_t;
7577 extern __at(0x0719) volatile __SCANLADRHbits_t SCANLADRHbits;
7579 #define _LADR8 0x01
7580 #define _SCANLADR8 0x01
7581 #define _LADR9 0x02
7582 #define _SCANLADR9 0x02
7583 #define _LADR10 0x04
7584 #define _SCANLADR10 0x04
7585 #define _LADR11 0x08
7586 #define _SCANLADR11 0x08
7587 #define _LADR12 0x10
7588 #define _SCANLADR12 0x10
7589 #define _LADR13 0x20
7590 #define _SCANLADR13 0x20
7591 #define _LADR14 0x40
7592 #define _SCANLADR14 0x40
7593 #define _LADR15 0x80
7594 #define _SCANLADR15 0x80
7596 //==============================================================================
7598 extern __at(0x071A) __sfr SCANHADR;
7600 //==============================================================================
7601 // SCANHADRL Bits
7603 extern __at(0x071A) __sfr SCANHADRL;
7605 typedef union
7607 struct
7609 unsigned HADR0 : 1;
7610 unsigned HADR1 : 1;
7611 unsigned HARD2 : 1;
7612 unsigned HADR3 : 1;
7613 unsigned HADR4 : 1;
7614 unsigned HADR5 : 1;
7615 unsigned HADR6 : 1;
7616 unsigned HADR7 : 1;
7619 struct
7621 unsigned SCANHADR0 : 1;
7622 unsigned SCANHADR1 : 1;
7623 unsigned SCANHADR2 : 1;
7624 unsigned SCANHADR3 : 1;
7625 unsigned SCANHADR4 : 1;
7626 unsigned SCANHADR5 : 1;
7627 unsigned SCANHADR6 : 1;
7628 unsigned SCANHADR7 : 1;
7630 } __SCANHADRLbits_t;
7632 extern __at(0x071A) volatile __SCANHADRLbits_t SCANHADRLbits;
7634 #define _HADR0 0x01
7635 #define _SCANHADR0 0x01
7636 #define _HADR1 0x02
7637 #define _SCANHADR1 0x02
7638 #define _HARD2 0x04
7639 #define _SCANHADR2 0x04
7640 #define _HADR3 0x08
7641 #define _SCANHADR3 0x08
7642 #define _HADR4 0x10
7643 #define _SCANHADR4 0x10
7644 #define _HADR5 0x20
7645 #define _SCANHADR5 0x20
7646 #define _HADR6 0x40
7647 #define _SCANHADR6 0x40
7648 #define _HADR7 0x80
7649 #define _SCANHADR7 0x80
7651 //==============================================================================
7654 //==============================================================================
7655 // SCANHADRH Bits
7657 extern __at(0x071B) __sfr SCANHADRH;
7659 typedef union
7661 struct
7663 unsigned HADR8 : 1;
7664 unsigned HADR9 : 1;
7665 unsigned HADR10 : 1;
7666 unsigned HADR11 : 1;
7667 unsigned HADR12 : 1;
7668 unsigned HADR13 : 1;
7669 unsigned HADR14 : 1;
7670 unsigned HADR15 : 1;
7673 struct
7675 unsigned SCANHADR8 : 1;
7676 unsigned SCANHADR9 : 1;
7677 unsigned SCANHADR10 : 1;
7678 unsigned SCANHADR11 : 1;
7679 unsigned SCANHADR12 : 1;
7680 unsigned SCANHADR13 : 1;
7681 unsigned SCANHADR14 : 1;
7682 unsigned SCANHADR15 : 1;
7684 } __SCANHADRHbits_t;
7686 extern __at(0x071B) volatile __SCANHADRHbits_t SCANHADRHbits;
7688 #define _HADR8 0x01
7689 #define _SCANHADR8 0x01
7690 #define _HADR9 0x02
7691 #define _SCANHADR9 0x02
7692 #define _HADR10 0x04
7693 #define _SCANHADR10 0x04
7694 #define _HADR11 0x08
7695 #define _SCANHADR11 0x08
7696 #define _HADR12 0x10
7697 #define _SCANHADR12 0x10
7698 #define _HADR13 0x20
7699 #define _SCANHADR13 0x20
7700 #define _HADR14 0x40
7701 #define _SCANHADR14 0x40
7702 #define _HADR15 0x80
7703 #define _SCANHADR15 0x80
7705 //==============================================================================
7708 //==============================================================================
7709 // SCANCON0 Bits
7711 extern __at(0x071C) __sfr SCANCON0;
7713 typedef union
7715 struct
7717 unsigned MODE0 : 1;
7718 unsigned MODE1 : 1;
7719 unsigned : 1;
7720 unsigned INTM : 1;
7721 unsigned INVALID : 1;
7722 unsigned BUSY : 1;
7723 unsigned SCANGO : 1;
7724 unsigned EN : 1;
7727 struct
7729 unsigned SCANMODE0 : 1;
7730 unsigned SCANMODE1 : 1;
7731 unsigned : 1;
7732 unsigned SCANINTM : 1;
7733 unsigned SCANINVALID : 1;
7734 unsigned SCANBUSY : 1;
7735 unsigned : 1;
7736 unsigned SCANEN : 1;
7739 struct
7741 unsigned SCANMODE : 2;
7742 unsigned : 6;
7745 struct
7747 unsigned MODE : 2;
7748 unsigned : 6;
7750 } __SCANCON0bits_t;
7752 extern __at(0x071C) volatile __SCANCON0bits_t SCANCON0bits;
7754 #define _SCANCON0_MODE0 0x01
7755 #define _SCANCON0_SCANMODE0 0x01
7756 #define _SCANCON0_MODE1 0x02
7757 #define _SCANCON0_SCANMODE1 0x02
7758 #define _SCANCON0_INTM 0x08
7759 #define _SCANCON0_SCANINTM 0x08
7760 #define _SCANCON0_INVALID 0x10
7761 #define _SCANCON0_SCANINVALID 0x10
7762 #define _SCANCON0_BUSY 0x20
7763 #define _SCANCON0_SCANBUSY 0x20
7764 #define _SCANCON0_SCANGO 0x40
7765 #define _SCANCON0_EN 0x80
7766 #define _SCANCON0_SCANEN 0x80
7768 //==============================================================================
7771 //==============================================================================
7772 // SCANTRIG Bits
7774 extern __at(0x071D) __sfr SCANTRIG;
7776 typedef union
7778 struct
7780 unsigned TSEL0 : 1;
7781 unsigned TSEL1 : 1;
7782 unsigned TSEL2 : 1;
7783 unsigned TSEL3 : 1;
7784 unsigned TSEL4 : 1;
7785 unsigned TSEL5 : 1;
7786 unsigned TSEL6 : 1;
7787 unsigned TSEL7 : 1;
7790 struct
7792 unsigned SCANTSEL0 : 1;
7793 unsigned SCANTSEL1 : 1;
7794 unsigned SCANTSEL2 : 1;
7795 unsigned SCANTSEL3 : 1;
7796 unsigned SCANTSEL4 : 1;
7797 unsigned SCANTSEL5 : 1;
7798 unsigned SCANTSEL6 : 1;
7799 unsigned SCANTSEL7 : 1;
7801 } __SCANTRIGbits_t;
7803 extern __at(0x071D) volatile __SCANTRIGbits_t SCANTRIGbits;
7805 #define _TSEL0 0x01
7806 #define _SCANTSEL0 0x01
7807 #define _TSEL1 0x02
7808 #define _SCANTSEL1 0x02
7809 #define _TSEL2 0x04
7810 #define _SCANTSEL2 0x04
7811 #define _TSEL3 0x08
7812 #define _SCANTSEL3 0x08
7813 #define _TSEL4 0x10
7814 #define _SCANTSEL4 0x10
7815 #define _TSEL5 0x20
7816 #define _SCANTSEL5 0x20
7817 #define _TSEL6 0x40
7818 #define _SCANTSEL6 0x40
7819 #define _TSEL7 0x80
7820 #define _SCANTSEL7 0x80
7822 //==============================================================================
7824 extern __at(0x0791) __sfr CRCDAT;
7826 //==============================================================================
7827 // CRCDATL Bits
7829 extern __at(0x0791) __sfr CRCDATL;
7831 typedef union
7833 struct
7835 unsigned DAT0 : 1;
7836 unsigned DAT1 : 1;
7837 unsigned DAT2 : 1;
7838 unsigned DAT3 : 1;
7839 unsigned DAT4 : 1;
7840 unsigned DAT5 : 1;
7841 unsigned DAT6 : 1;
7842 unsigned DAT7 : 1;
7845 struct
7847 unsigned CRCDAT0 : 1;
7848 unsigned CRCDAT1 : 1;
7849 unsigned CRCDAT2 : 1;
7850 unsigned CRCDAT3 : 1;
7851 unsigned CRCDAT4 : 1;
7852 unsigned CRCDAT5 : 1;
7853 unsigned CRCDAT6 : 1;
7854 unsigned CRDCDAT7 : 1;
7857 struct
7859 unsigned CRCDAT : 7;
7860 unsigned : 1;
7862 } __CRCDATLbits_t;
7864 extern __at(0x0791) volatile __CRCDATLbits_t CRCDATLbits;
7866 #define _DAT0 0x01
7867 #define _CRCDAT0 0x01
7868 #define _DAT1 0x02
7869 #define _CRCDAT1 0x02
7870 #define _DAT2 0x04
7871 #define _CRCDAT2 0x04
7872 #define _DAT3 0x08
7873 #define _CRCDAT3 0x08
7874 #define _DAT4 0x10
7875 #define _CRCDAT4 0x10
7876 #define _DAT5 0x20
7877 #define _CRCDAT5 0x20
7878 #define _DAT6 0x40
7879 #define _CRCDAT6 0x40
7880 #define _DAT7 0x80
7881 #define _CRDCDAT7 0x80
7883 //==============================================================================
7886 //==============================================================================
7887 // CRCDATH Bits
7889 extern __at(0x0792) __sfr CRCDATH;
7891 typedef union
7893 struct
7895 unsigned DAT8 : 1;
7896 unsigned DAT9 : 1;
7897 unsigned DAT10 : 1;
7898 unsigned DAT11 : 1;
7899 unsigned DAT12 : 1;
7900 unsigned DAT13 : 1;
7901 unsigned DAT14 : 1;
7902 unsigned DAT15 : 1;
7905 struct
7907 unsigned CRCDAT8 : 1;
7908 unsigned CRCDAT9 : 1;
7909 unsigned CRCDAT10 : 1;
7910 unsigned CRCDAT11 : 1;
7911 unsigned CRCDAT12 : 1;
7912 unsigned CRCDAT13 : 1;
7913 unsigned CRCDAT14 : 1;
7914 unsigned CRCDAT15 : 1;
7916 } __CRCDATHbits_t;
7918 extern __at(0x0792) volatile __CRCDATHbits_t CRCDATHbits;
7920 #define _DAT8 0x01
7921 #define _CRCDAT8 0x01
7922 #define _DAT9 0x02
7923 #define _CRCDAT9 0x02
7924 #define _DAT10 0x04
7925 #define _CRCDAT10 0x04
7926 #define _DAT11 0x08
7927 #define _CRCDAT11 0x08
7928 #define _DAT12 0x10
7929 #define _CRCDAT12 0x10
7930 #define _DAT13 0x20
7931 #define _CRCDAT13 0x20
7932 #define _DAT14 0x40
7933 #define _CRCDAT14 0x40
7934 #define _DAT15 0x80
7935 #define _CRCDAT15 0x80
7937 //==============================================================================
7939 extern __at(0x0793) __sfr CRCACC;
7941 //==============================================================================
7942 // CRCACCL Bits
7944 extern __at(0x0793) __sfr CRCACCL;
7946 typedef union
7948 struct
7950 unsigned ACC0 : 1;
7951 unsigned ACC1 : 1;
7952 unsigned ACC2 : 1;
7953 unsigned ACC3 : 1;
7954 unsigned ACC4 : 1;
7955 unsigned ACC5 : 1;
7956 unsigned ACC6 : 1;
7957 unsigned ACC7 : 1;
7960 struct
7962 unsigned CRCACC0 : 1;
7963 unsigned CRCACC1 : 1;
7964 unsigned CRCACC2 : 1;
7965 unsigned CRCACC3 : 1;
7966 unsigned CRCACC4 : 1;
7967 unsigned CRCACC5 : 1;
7968 unsigned CRCACC6 : 1;
7969 unsigned CRCACC7 : 1;
7971 } __CRCACCLbits_t;
7973 extern __at(0x0793) volatile __CRCACCLbits_t CRCACCLbits;
7975 #define _ACC0 0x01
7976 #define _CRCACC0 0x01
7977 #define _ACC1 0x02
7978 #define _CRCACC1 0x02
7979 #define _ACC2 0x04
7980 #define _CRCACC2 0x04
7981 #define _ACC3 0x08
7982 #define _CRCACC3 0x08
7983 #define _ACC4 0x10
7984 #define _CRCACC4 0x10
7985 #define _ACC5 0x20
7986 #define _CRCACC5 0x20
7987 #define _ACC6 0x40
7988 #define _CRCACC6 0x40
7989 #define _ACC7 0x80
7990 #define _CRCACC7 0x80
7992 //==============================================================================
7995 //==============================================================================
7996 // CRCACCH Bits
7998 extern __at(0x0794) __sfr CRCACCH;
8000 typedef union
8002 struct
8004 unsigned ACC8 : 1;
8005 unsigned ACC9 : 1;
8006 unsigned ACC10 : 1;
8007 unsigned ACC11 : 1;
8008 unsigned ACC12 : 1;
8009 unsigned ACC13 : 1;
8010 unsigned ACC14 : 1;
8011 unsigned ACC15 : 1;
8014 struct
8016 unsigned CRCACC8 : 1;
8017 unsigned CRCACC9 : 1;
8018 unsigned CRCACC10 : 1;
8019 unsigned CRCACC11 : 1;
8020 unsigned CRCACC12 : 1;
8021 unsigned CRCACC13 : 1;
8022 unsigned CRCACC14 : 1;
8023 unsigned CRCACC15 : 1;
8025 } __CRCACCHbits_t;
8027 extern __at(0x0794) volatile __CRCACCHbits_t CRCACCHbits;
8029 #define _ACC8 0x01
8030 #define _CRCACC8 0x01
8031 #define _ACC9 0x02
8032 #define _CRCACC9 0x02
8033 #define _ACC10 0x04
8034 #define _CRCACC10 0x04
8035 #define _ACC11 0x08
8036 #define _CRCACC11 0x08
8037 #define _ACC12 0x10
8038 #define _CRCACC12 0x10
8039 #define _ACC13 0x20
8040 #define _CRCACC13 0x20
8041 #define _ACC14 0x40
8042 #define _CRCACC14 0x40
8043 #define _ACC15 0x80
8044 #define _CRCACC15 0x80
8046 //==============================================================================
8048 extern __at(0x0795) __sfr CRCSHIFT;
8050 //==============================================================================
8051 // CRCSHIFTL Bits
8053 extern __at(0x0795) __sfr CRCSHIFTL;
8055 typedef union
8057 struct
8059 unsigned SHIFT0 : 1;
8060 unsigned SHIFT1 : 1;
8061 unsigned SHIFT2 : 1;
8062 unsigned SHIFT3 : 1;
8063 unsigned SHIFT4 : 1;
8064 unsigned SHIFT5 : 1;
8065 unsigned SHIFT6 : 1;
8066 unsigned SHIFT7 : 1;
8069 struct
8071 unsigned CRCSHIFT0 : 1;
8072 unsigned CRCSHIFT1 : 1;
8073 unsigned CRCSHIFT2 : 1;
8074 unsigned CRCSHIFT3 : 1;
8075 unsigned CRCSHIFT4 : 1;
8076 unsigned CRCSHIFT5 : 1;
8077 unsigned CRCSHIFT6 : 1;
8078 unsigned CRCSHIFT7 : 1;
8080 } __CRCSHIFTLbits_t;
8082 extern __at(0x0795) volatile __CRCSHIFTLbits_t CRCSHIFTLbits;
8084 #define _SHIFT0 0x01
8085 #define _CRCSHIFT0 0x01
8086 #define _SHIFT1 0x02
8087 #define _CRCSHIFT1 0x02
8088 #define _SHIFT2 0x04
8089 #define _CRCSHIFT2 0x04
8090 #define _SHIFT3 0x08
8091 #define _CRCSHIFT3 0x08
8092 #define _SHIFT4 0x10
8093 #define _CRCSHIFT4 0x10
8094 #define _SHIFT5 0x20
8095 #define _CRCSHIFT5 0x20
8096 #define _SHIFT6 0x40
8097 #define _CRCSHIFT6 0x40
8098 #define _SHIFT7 0x80
8099 #define _CRCSHIFT7 0x80
8101 //==============================================================================
8104 //==============================================================================
8105 // CRCSHIFTH Bits
8107 extern __at(0x0796) __sfr CRCSHIFTH;
8109 typedef union
8111 struct
8113 unsigned SHIFT8 : 1;
8114 unsigned SHIFT9 : 1;
8115 unsigned SHIFT10 : 1;
8116 unsigned SHIFT11 : 1;
8117 unsigned SHIFT12 : 1;
8118 unsigned SHIFT13 : 1;
8119 unsigned SHIFT14 : 1;
8120 unsigned SHIFT15 : 1;
8123 struct
8125 unsigned CRCSHIFT8 : 1;
8126 unsigned CRCSHIFT9 : 1;
8127 unsigned CRCSHIFT10 : 1;
8128 unsigned CRCSHIFT11 : 1;
8129 unsigned CRCSHIFT12 : 1;
8130 unsigned CRCSHIFT13 : 1;
8131 unsigned CRCSHIFT14 : 1;
8132 unsigned CRCSHIFT15 : 1;
8134 } __CRCSHIFTHbits_t;
8136 extern __at(0x0796) volatile __CRCSHIFTHbits_t CRCSHIFTHbits;
8138 #define _SHIFT8 0x01
8139 #define _CRCSHIFT8 0x01
8140 #define _SHIFT9 0x02
8141 #define _CRCSHIFT9 0x02
8142 #define _SHIFT10 0x04
8143 #define _CRCSHIFT10 0x04
8144 #define _SHIFT11 0x08
8145 #define _CRCSHIFT11 0x08
8146 #define _SHIFT12 0x10
8147 #define _CRCSHIFT12 0x10
8148 #define _SHIFT13 0x20
8149 #define _CRCSHIFT13 0x20
8150 #define _SHIFT14 0x40
8151 #define _CRCSHIFT14 0x40
8152 #define _SHIFT15 0x80
8153 #define _CRCSHIFT15 0x80
8155 //==============================================================================
8157 extern __at(0x0797) __sfr CRCXOR;
8159 //==============================================================================
8160 // CRCXORL Bits
8162 extern __at(0x0797) __sfr CRCXORL;
8164 typedef union
8166 struct
8168 unsigned : 1;
8169 unsigned XOR1 : 1;
8170 unsigned XOR2 : 1;
8171 unsigned XOR3 : 1;
8172 unsigned XOR4 : 1;
8173 unsigned XOR5 : 1;
8174 unsigned XOR6 : 1;
8175 unsigned XOR7 : 1;
8178 struct
8180 unsigned : 1;
8181 unsigned CRCXOR1 : 1;
8182 unsigned CRCXOR2 : 1;
8183 unsigned CRCXOR3 : 1;
8184 unsigned CRCXOR4 : 1;
8185 unsigned CRCXOR5 : 1;
8186 unsigned CRCXOR6 : 1;
8187 unsigned CRCXOR7 : 1;
8189 } __CRCXORLbits_t;
8191 extern __at(0x0797) volatile __CRCXORLbits_t CRCXORLbits;
8193 #define _XOR1 0x02
8194 #define _CRCXOR1 0x02
8195 #define _XOR2 0x04
8196 #define _CRCXOR2 0x04
8197 #define _XOR3 0x08
8198 #define _CRCXOR3 0x08
8199 #define _XOR4 0x10
8200 #define _CRCXOR4 0x10
8201 #define _XOR5 0x20
8202 #define _CRCXOR5 0x20
8203 #define _XOR6 0x40
8204 #define _CRCXOR6 0x40
8205 #define _XOR7 0x80
8206 #define _CRCXOR7 0x80
8208 //==============================================================================
8211 //==============================================================================
8212 // CRCXORH Bits
8214 extern __at(0x0798) __sfr CRCXORH;
8216 typedef union
8218 struct
8220 unsigned XOR8 : 1;
8221 unsigned XOR9 : 1;
8222 unsigned XOR10 : 1;
8223 unsigned XOR11 : 1;
8224 unsigned XOR12 : 1;
8225 unsigned XOR13 : 1;
8226 unsigned XOR14 : 1;
8227 unsigned XOR15 : 1;
8230 struct
8232 unsigned CRCXOR8 : 1;
8233 unsigned CRCXOR9 : 1;
8234 unsigned CRCXOR10 : 1;
8235 unsigned CRCXOR11 : 1;
8236 unsigned CRCXOR12 : 1;
8237 unsigned CRCXOR13 : 1;
8238 unsigned CRCXOR14 : 1;
8239 unsigned CRCXOR15 : 1;
8241 } __CRCXORHbits_t;
8243 extern __at(0x0798) volatile __CRCXORHbits_t CRCXORHbits;
8245 #define _XOR8 0x01
8246 #define _CRCXOR8 0x01
8247 #define _XOR9 0x02
8248 #define _CRCXOR9 0x02
8249 #define _XOR10 0x04
8250 #define _CRCXOR10 0x04
8251 #define _XOR11 0x08
8252 #define _CRCXOR11 0x08
8253 #define _XOR12 0x10
8254 #define _CRCXOR12 0x10
8255 #define _XOR13 0x20
8256 #define _CRCXOR13 0x20
8257 #define _XOR14 0x40
8258 #define _CRCXOR14 0x40
8259 #define _XOR15 0x80
8260 #define _CRCXOR15 0x80
8262 //==============================================================================
8265 //==============================================================================
8266 // CRCCON0 Bits
8268 extern __at(0x0799) __sfr CRCCON0;
8270 typedef union
8272 struct
8274 unsigned FULL : 1;
8275 unsigned SHIFTM : 1;
8276 unsigned : 1;
8277 unsigned : 1;
8278 unsigned ACCM : 1;
8279 unsigned BUSY : 1;
8280 unsigned CRCGO : 1;
8281 unsigned EN : 1;
8284 struct
8286 unsigned CRCFULL : 1;
8287 unsigned CRCSHIFTM : 1;
8288 unsigned : 1;
8289 unsigned : 1;
8290 unsigned CRCACCM : 1;
8291 unsigned CRCBUSY : 1;
8292 unsigned : 1;
8293 unsigned CRCEN : 1;
8295 } __CRCCON0bits_t;
8297 extern __at(0x0799) volatile __CRCCON0bits_t CRCCON0bits;
8299 #define _CRCCON0_FULL 0x01
8300 #define _CRCCON0_CRCFULL 0x01
8301 #define _CRCCON0_SHIFTM 0x02
8302 #define _CRCCON0_CRCSHIFTM 0x02
8303 #define _CRCCON0_ACCM 0x10
8304 #define _CRCCON0_CRCACCM 0x10
8305 #define _CRCCON0_BUSY 0x20
8306 #define _CRCCON0_CRCBUSY 0x20
8307 #define _CRCCON0_CRCGO 0x40
8308 #define _CRCCON0_EN 0x80
8309 #define _CRCCON0_CRCEN 0x80
8311 //==============================================================================
8314 //==============================================================================
8315 // CRCCON1 Bits
8317 extern __at(0x079A) __sfr CRCCON1;
8319 typedef union
8321 struct
8323 unsigned PLEN0 : 1;
8324 unsigned PLEN1 : 1;
8325 unsigned PLEN2 : 1;
8326 unsigned PLEN3 : 1;
8327 unsigned DLEN0 : 1;
8328 unsigned DLEN1 : 1;
8329 unsigned DLEN2 : 1;
8330 unsigned DLEN3 : 1;
8333 struct
8335 unsigned CRCPLEN0 : 1;
8336 unsigned CRCPLEN1 : 1;
8337 unsigned CRCPLEN2 : 1;
8338 unsigned CRCPLEN3 : 1;
8339 unsigned CRCDLEN0 : 1;
8340 unsigned CRCDLEN1 : 1;
8341 unsigned CRCDLEN2 : 1;
8342 unsigned CRCDLEN3 : 1;
8345 struct
8347 unsigned CRCPLEN : 4;
8348 unsigned : 4;
8351 struct
8353 unsigned PLEN : 4;
8354 unsigned : 4;
8357 struct
8359 unsigned : 4;
8360 unsigned DLEN : 4;
8363 struct
8365 unsigned : 4;
8366 unsigned CRCDLEN : 4;
8368 } __CRCCON1bits_t;
8370 extern __at(0x079A) volatile __CRCCON1bits_t CRCCON1bits;
8372 #define _PLEN0 0x01
8373 #define _CRCPLEN0 0x01
8374 #define _PLEN1 0x02
8375 #define _CRCPLEN1 0x02
8376 #define _PLEN2 0x04
8377 #define _CRCPLEN2 0x04
8378 #define _PLEN3 0x08
8379 #define _CRCPLEN3 0x08
8380 #define _DLEN0 0x10
8381 #define _CRCDLEN0 0x10
8382 #define _DLEN1 0x20
8383 #define _CRCDLEN1 0x20
8384 #define _DLEN2 0x40
8385 #define _CRCDLEN2 0x40
8386 #define _DLEN3 0x80
8387 #define _CRCDLEN3 0x80
8389 //==============================================================================
8391 extern __at(0x080C) __sfr AT1RES;
8393 //==============================================================================
8394 // AT1RESL Bits
8396 extern __at(0x080C) __sfr AT1RESL;
8398 typedef union
8400 struct
8402 unsigned AT1RES0 : 1;
8403 unsigned AT1RES1 : 1;
8404 unsigned AT1RES2 : 1;
8405 unsigned AT1RES3 : 1;
8406 unsigned AT1RES4 : 1;
8407 unsigned AT1RES5 : 1;
8408 unsigned AT1RES6 : 1;
8409 unsigned AT1RES7 : 1;
8412 struct
8414 unsigned RES0 : 1;
8415 unsigned RES1 : 1;
8416 unsigned RES2 : 1;
8417 unsigned RES3 : 1;
8418 unsigned RES4 : 1;
8419 unsigned RES5 : 1;
8420 unsigned RES6 : 1;
8421 unsigned RES7 : 1;
8423 } __AT1RESLbits_t;
8425 extern __at(0x080C) volatile __AT1RESLbits_t AT1RESLbits;
8427 #define _AT1RES0 0x01
8428 #define _RES0 0x01
8429 #define _AT1RES1 0x02
8430 #define _RES1 0x02
8431 #define _AT1RES2 0x04
8432 #define _RES2 0x04
8433 #define _AT1RES3 0x08
8434 #define _RES3 0x08
8435 #define _AT1RES4 0x10
8436 #define _RES4 0x10
8437 #define _AT1RES5 0x20
8438 #define _RES5 0x20
8439 #define _AT1RES6 0x40
8440 #define _RES6 0x40
8441 #define _AT1RES7 0x80
8442 #define _RES7 0x80
8444 //==============================================================================
8447 //==============================================================================
8448 // AT1RESH Bits
8450 extern __at(0x080D) __sfr AT1RESH;
8452 typedef union
8454 struct
8456 unsigned AT1RES8 : 1;
8457 unsigned AT1RES9 : 1;
8458 unsigned : 1;
8459 unsigned : 1;
8460 unsigned : 1;
8461 unsigned : 1;
8462 unsigned : 1;
8463 unsigned : 1;
8466 struct
8468 unsigned RES8 : 1;
8469 unsigned RES9 : 1;
8470 unsigned : 1;
8471 unsigned : 1;
8472 unsigned : 1;
8473 unsigned : 1;
8474 unsigned : 1;
8475 unsigned : 1;
8477 } __AT1RESHbits_t;
8479 extern __at(0x080D) volatile __AT1RESHbits_t AT1RESHbits;
8481 #define _AT1RES8 0x01
8482 #define _RES8 0x01
8483 #define _AT1RES9 0x02
8484 #define _RES9 0x02
8486 //==============================================================================
8488 extern __at(0x080E) __sfr AT1MISS;
8490 //==============================================================================
8491 // AT1MISSL Bits
8493 extern __at(0x080E) __sfr AT1MISSL;
8495 typedef union
8497 struct
8499 unsigned AT1MISS0 : 1;
8500 unsigned AT1MISS1 : 1;
8501 unsigned AT1MISS2 : 1;
8502 unsigned AT1MISS3 : 1;
8503 unsigned AT1MISS4 : 1;
8504 unsigned AT1MISS5 : 1;
8505 unsigned AT1MISS6 : 1;
8506 unsigned AT1MISS7 : 1;
8509 struct
8511 unsigned MISS0 : 1;
8512 unsigned MISS1 : 1;
8513 unsigned MISS2 : 1;
8514 unsigned MISS3 : 1;
8515 unsigned MISS4 : 1;
8516 unsigned MISS5 : 1;
8517 unsigned MISS6 : 1;
8518 unsigned MISS7 : 1;
8520 } __AT1MISSLbits_t;
8522 extern __at(0x080E) volatile __AT1MISSLbits_t AT1MISSLbits;
8524 #define _AT1MISS0 0x01
8525 #define _MISS0 0x01
8526 #define _AT1MISS1 0x02
8527 #define _MISS1 0x02
8528 #define _AT1MISS2 0x04
8529 #define _MISS2 0x04
8530 #define _AT1MISS3 0x08
8531 #define _MISS3 0x08
8532 #define _AT1MISS4 0x10
8533 #define _MISS4 0x10
8534 #define _AT1MISS5 0x20
8535 #define _MISS5 0x20
8536 #define _AT1MISS6 0x40
8537 #define _MISS6 0x40
8538 #define _AT1MISS7 0x80
8539 #define _MISS7 0x80
8541 //==============================================================================
8544 //==============================================================================
8545 // AT1MISSH Bits
8547 extern __at(0x080F) __sfr AT1MISSH;
8549 typedef union
8551 struct
8553 unsigned AT1MISS8 : 1;
8554 unsigned AT1MISS9 : 1;
8555 unsigned AT1MISS10 : 1;
8556 unsigned AT1MISS11 : 1;
8557 unsigned AT1MISS12 : 1;
8558 unsigned AT1MISS13 : 1;
8559 unsigned AT1MISS14 : 1;
8560 unsigned AT1MISS15 : 1;
8563 struct
8565 unsigned MISS8 : 1;
8566 unsigned MISS9 : 1;
8567 unsigned MISS10 : 1;
8568 unsigned MISS11 : 1;
8569 unsigned MISS12 : 1;
8570 unsigned MISS13 : 1;
8571 unsigned MISS14 : 1;
8572 unsigned MISS15 : 1;
8574 } __AT1MISSHbits_t;
8576 extern __at(0x080F) volatile __AT1MISSHbits_t AT1MISSHbits;
8578 #define _AT1MISS8 0x01
8579 #define _MISS8 0x01
8580 #define _AT1MISS9 0x02
8581 #define _MISS9 0x02
8582 #define _AT1MISS10 0x04
8583 #define _MISS10 0x04
8584 #define _AT1MISS11 0x08
8585 #define _MISS11 0x08
8586 #define _AT1MISS12 0x10
8587 #define _MISS12 0x10
8588 #define _AT1MISS13 0x20
8589 #define _MISS13 0x20
8590 #define _AT1MISS14 0x40
8591 #define _MISS14 0x40
8592 #define _AT1MISS15 0x80
8593 #define _MISS15 0x80
8595 //==============================================================================
8597 extern __at(0x0810) __sfr AT1PER;
8599 //==============================================================================
8600 // AT1PERL Bits
8602 extern __at(0x0810) __sfr AT1PERL;
8604 typedef union
8606 struct
8608 unsigned AT1PER0 : 1;
8609 unsigned AT1PER1 : 1;
8610 unsigned AT1PER2 : 1;
8611 unsigned AT1PER3 : 1;
8612 unsigned AT1PER4 : 1;
8613 unsigned AT1PER5 : 1;
8614 unsigned AT1PER6 : 1;
8615 unsigned AT1PER7 : 1;
8618 struct
8620 unsigned PER0 : 1;
8621 unsigned PER1 : 1;
8622 unsigned PER2 : 1;
8623 unsigned PER3 : 1;
8624 unsigned PER4 : 1;
8625 unsigned PER5 : 1;
8626 unsigned PER6 : 1;
8627 unsigned PER7 : 1;
8630 struct
8632 unsigned PERL0 : 1;
8633 unsigned PERL1 : 1;
8634 unsigned PERL2 : 1;
8635 unsigned PERL3 : 1;
8636 unsigned PERL4 : 1;
8637 unsigned PERL5 : 1;
8638 unsigned PERL6 : 1;
8639 unsigned PERL7 : 1;
8641 } __AT1PERLbits_t;
8643 extern __at(0x0810) volatile __AT1PERLbits_t AT1PERLbits;
8645 #define _AT1PER0 0x01
8646 #define _PER0 0x01
8647 #define _PERL0 0x01
8648 #define _AT1PER1 0x02
8649 #define _PER1 0x02
8650 #define _PERL1 0x02
8651 #define _AT1PER2 0x04
8652 #define _PER2 0x04
8653 #define _PERL2 0x04
8654 #define _AT1PER3 0x08
8655 #define _PER3 0x08
8656 #define _PERL3 0x08
8657 #define _AT1PER4 0x10
8658 #define _PER4 0x10
8659 #define _PERL4 0x10
8660 #define _AT1PER5 0x20
8661 #define _PER5 0x20
8662 #define _PERL5 0x20
8663 #define _AT1PER6 0x40
8664 #define _PER6 0x40
8665 #define _PERL6 0x40
8666 #define _AT1PER7 0x80
8667 #define _PER7 0x80
8668 #define _PERL7 0x80
8670 //==============================================================================
8673 //==============================================================================
8674 // AT1PERH Bits
8676 extern __at(0x0811) __sfr AT1PERH;
8678 typedef union
8680 struct
8682 unsigned AT1PER8 : 1;
8683 unsigned AT1PER9 : 1;
8684 unsigned AT1PER10 : 1;
8685 unsigned AT1PER11 : 1;
8686 unsigned AT1PER12 : 1;
8687 unsigned AT1PER13 : 1;
8688 unsigned AT1PER14 : 1;
8689 unsigned AT1POV : 1;
8692 struct
8694 unsigned PER8 : 1;
8695 unsigned PER9 : 1;
8696 unsigned PER10 : 1;
8697 unsigned PER11 : 1;
8698 unsigned PER12 : 1;
8699 unsigned PER13 : 1;
8700 unsigned PER14 : 1;
8701 unsigned PER15 : 1;
8704 struct
8706 unsigned PERH0 : 1;
8707 unsigned PERH1 : 1;
8708 unsigned PERH2 : 1;
8709 unsigned PERH3 : 1;
8710 unsigned PERH4 : 1;
8711 unsigned PERH5 : 1;
8712 unsigned PERH6 : 1;
8713 unsigned PERH7 : 1;
8715 } __AT1PERHbits_t;
8717 extern __at(0x0811) volatile __AT1PERHbits_t AT1PERHbits;
8719 #define _AT1PER8 0x01
8720 #define _PER8 0x01
8721 #define _PERH0 0x01
8722 #define _AT1PER9 0x02
8723 #define _PER9 0x02
8724 #define _PERH1 0x02
8725 #define _AT1PER10 0x04
8726 #define _PER10 0x04
8727 #define _PERH2 0x04
8728 #define _AT1PER11 0x08
8729 #define _PER11 0x08
8730 #define _PERH3 0x08
8731 #define _AT1PER12 0x10
8732 #define _PER12 0x10
8733 #define _PERH4 0x10
8734 #define _AT1PER13 0x20
8735 #define _PER13 0x20
8736 #define _PERH5 0x20
8737 #define _AT1PER14 0x40
8738 #define _PER14 0x40
8739 #define _PERH6 0x40
8740 #define _AT1POV 0x80
8741 #define _PER15 0x80
8742 #define _PERH7 0x80
8744 //==============================================================================
8746 extern __at(0x0812) __sfr AT1PHS;
8748 //==============================================================================
8749 // AT1PHSL Bits
8751 extern __at(0x0812) __sfr AT1PHSL;
8753 typedef union
8755 struct
8757 unsigned AT1PHS0 : 1;
8758 unsigned AT1PHS1 : 1;
8759 unsigned AT1PHS2 : 1;
8760 unsigned AT1PHS3 : 1;
8761 unsigned AT1PHS4 : 1;
8762 unsigned AT1PHS5 : 1;
8763 unsigned AT1PHS6 : 1;
8764 unsigned AT1PHS7 : 1;
8767 struct
8769 unsigned PHS0 : 1;
8770 unsigned PHS1 : 1;
8771 unsigned PHS2 : 1;
8772 unsigned PHS3 : 1;
8773 unsigned PHS4 : 1;
8774 unsigned PHS5 : 1;
8775 unsigned PHS6 : 1;
8776 unsigned PHS7 : 1;
8778 } __AT1PHSLbits_t;
8780 extern __at(0x0812) volatile __AT1PHSLbits_t AT1PHSLbits;
8782 #define _AT1PHS0 0x01
8783 #define _PHS0 0x01
8784 #define _AT1PHS1 0x02
8785 #define _PHS1 0x02
8786 #define _AT1PHS2 0x04
8787 #define _PHS2 0x04
8788 #define _AT1PHS3 0x08
8789 #define _PHS3 0x08
8790 #define _AT1PHS4 0x10
8791 #define _PHS4 0x10
8792 #define _AT1PHS5 0x20
8793 #define _PHS5 0x20
8794 #define _AT1PHS6 0x40
8795 #define _PHS6 0x40
8796 #define _AT1PHS7 0x80
8797 #define _PHS7 0x80
8799 //==============================================================================
8802 //==============================================================================
8803 // AT1PHSH Bits
8805 extern __at(0x0813) __sfr AT1PHSH;
8807 typedef union
8809 struct
8811 unsigned AT1PHS8 : 1;
8812 unsigned AT1PHS9 : 1;
8813 unsigned : 1;
8814 unsigned : 1;
8815 unsigned : 1;
8816 unsigned : 1;
8817 unsigned : 1;
8818 unsigned : 1;
8821 struct
8823 unsigned PHS8 : 1;
8824 unsigned PHS9 : 1;
8825 unsigned : 1;
8826 unsigned : 1;
8827 unsigned : 1;
8828 unsigned : 1;
8829 unsigned : 1;
8830 unsigned : 1;
8833 struct
8835 unsigned PHSL8 : 1;
8836 unsigned PHSL9 : 1;
8837 unsigned : 1;
8838 unsigned : 1;
8839 unsigned : 1;
8840 unsigned : 1;
8841 unsigned : 1;
8842 unsigned : 1;
8844 } __AT1PHSHbits_t;
8846 extern __at(0x0813) volatile __AT1PHSHbits_t AT1PHSHbits;
8848 #define _AT1PHS8 0x01
8849 #define _PHS8 0x01
8850 #define _PHSL8 0x01
8851 #define _AT1PHS9 0x02
8852 #define _PHS9 0x02
8853 #define _PHSL9 0x02
8855 //==============================================================================
8858 //==============================================================================
8859 // AT1CON0 Bits
8861 extern __at(0x0814) __sfr AT1CON0;
8863 typedef union
8865 struct
8867 unsigned MODE : 1;
8868 unsigned APMOD : 1;
8869 unsigned : 1;
8870 unsigned POL : 1;
8871 unsigned PS0 : 1;
8872 unsigned PS1 : 1;
8873 unsigned PREC : 1;
8874 unsigned EN : 1;
8877 struct
8879 unsigned AT1MODE : 1;
8880 unsigned AT1APMOD : 1;
8881 unsigned : 1;
8882 unsigned AT1POL : 1;
8883 unsigned AT1PS0 : 1;
8884 unsigned AT1PS1 : 1;
8885 unsigned AT1PREC : 1;
8886 unsigned AT1EN : 1;
8889 struct
8891 unsigned : 4;
8892 unsigned AT1PS : 2;
8893 unsigned : 2;
8896 struct
8898 unsigned : 4;
8899 unsigned PS : 2;
8900 unsigned : 2;
8902 } __AT1CON0bits_t;
8904 extern __at(0x0814) volatile __AT1CON0bits_t AT1CON0bits;
8906 #define _MODE 0x01
8907 #define _AT1MODE 0x01
8908 #define _APMOD 0x02
8909 #define _AT1APMOD 0x02
8910 #define _POL 0x08
8911 #define _AT1POL 0x08
8912 #define _PS0 0x10
8913 #define _AT1PS0 0x10
8914 #define _PS1 0x20
8915 #define _AT1PS1 0x20
8916 #define _PREC 0x40
8917 #define _AT1PREC 0x40
8918 #define _EN 0x80
8919 #define _AT1EN 0x80
8921 //==============================================================================
8924 //==============================================================================
8925 // AT1CON1 Bits
8927 extern __at(0x0815) __sfr AT1CON1;
8929 typedef union
8931 struct
8933 unsigned VALID : 1;
8934 unsigned ACCS : 1;
8935 unsigned MPP : 1;
8936 unsigned : 1;
8937 unsigned PRP : 1;
8938 unsigned : 1;
8939 unsigned PHP : 1;
8940 unsigned : 1;
8943 struct
8945 unsigned AT1VALID : 1;
8946 unsigned AT1ACCS : 1;
8947 unsigned AT1MPP : 1;
8948 unsigned : 1;
8949 unsigned AT1PRP : 1;
8950 unsigned : 1;
8951 unsigned AT1PHP : 1;
8952 unsigned : 1;
8954 } __AT1CON1bits_t;
8956 extern __at(0x0815) volatile __AT1CON1bits_t AT1CON1bits;
8958 #define _VALID 0x01
8959 #define _AT1VALID 0x01
8960 #define _ACCS 0x02
8961 #define _AT1ACCS 0x02
8962 #define _MPP 0x04
8963 #define _AT1MPP 0x04
8964 #define _PRP 0x10
8965 #define _AT1PRP 0x10
8966 #define _PHP 0x40
8967 #define _AT1PHP 0x40
8969 //==============================================================================
8972 //==============================================================================
8973 // AT1IR0 Bits
8975 extern __at(0x0816) __sfr AT1IR0;
8977 typedef struct
8979 unsigned AT1PERIF : 1;
8980 unsigned AT1MISSIF : 1;
8981 unsigned AT1PHSIF : 1;
8982 unsigned : 1;
8983 unsigned : 1;
8984 unsigned : 1;
8985 unsigned : 1;
8986 unsigned : 1;
8987 } __AT1IR0bits_t;
8989 extern __at(0x0816) volatile __AT1IR0bits_t AT1IR0bits;
8991 #define _AT1PERIF 0x01
8992 #define _AT1MISSIF 0x02
8993 #define _AT1PHSIF 0x04
8995 //==============================================================================
8998 //==============================================================================
8999 // AT1IE0 Bits
9001 extern __at(0x0817) __sfr AT1IE0;
9003 typedef struct
9005 unsigned AT1PERIE : 1;
9006 unsigned AT1MISSIE : 1;
9007 unsigned AT1PHSIE : 1;
9008 unsigned : 1;
9009 unsigned : 1;
9010 unsigned : 1;
9011 unsigned : 1;
9012 unsigned : 1;
9013 } __AT1IE0bits_t;
9015 extern __at(0x0817) volatile __AT1IE0bits_t AT1IE0bits;
9017 #define _AT1PERIE 0x01
9018 #define _AT1MISSIE 0x02
9019 #define _AT1PHSIE 0x04
9021 //==============================================================================
9024 //==============================================================================
9025 // AT1IR1 Bits
9027 extern __at(0x0818) __sfr AT1IR1;
9029 typedef struct
9031 unsigned AT1CC1IF : 1;
9032 unsigned AT1CC2IF : 1;
9033 unsigned AT1CC3IF : 1;
9034 unsigned : 1;
9035 unsigned : 1;
9036 unsigned : 1;
9037 unsigned : 1;
9038 unsigned : 1;
9039 } __AT1IR1bits_t;
9041 extern __at(0x0818) volatile __AT1IR1bits_t AT1IR1bits;
9043 #define _AT1CC1IF 0x01
9044 #define _AT1CC2IF 0x02
9045 #define _AT1CC3IF 0x04
9047 //==============================================================================
9050 //==============================================================================
9051 // AT1IE1 Bits
9053 extern __at(0x0819) __sfr AT1IE1;
9055 typedef struct
9057 unsigned AT1CC1IE : 1;
9058 unsigned AT1CC2IE : 1;
9059 unsigned AT1CC3IE : 1;
9060 unsigned : 1;
9061 unsigned : 1;
9062 unsigned : 1;
9063 unsigned : 1;
9064 unsigned : 1;
9065 } __AT1IE1bits_t;
9067 extern __at(0x0819) volatile __AT1IE1bits_t AT1IE1bits;
9069 #define _AT1CC1IE 0x01
9070 #define _AT1CC2IE 0x02
9071 #define _AT1CC3IE 0x04
9073 //==============================================================================
9075 extern __at(0x081A) __sfr AT1STPT;
9077 //==============================================================================
9078 // AT1STPTL Bits
9080 extern __at(0x081A) __sfr AT1STPTL;
9082 typedef union
9084 struct
9086 unsigned AT1STPT0 : 1;
9087 unsigned AT1STPT1 : 1;
9088 unsigned AT1STPT2 : 1;
9089 unsigned AT1STPT3 : 1;
9090 unsigned AT1STPT4 : 1;
9091 unsigned AT1STPT5 : 1;
9092 unsigned AT1STPT6 : 1;
9093 unsigned AT1STPT7 : 1;
9096 struct
9098 unsigned STPT0 : 1;
9099 unsigned STPT1 : 1;
9100 unsigned STPT2 : 1;
9101 unsigned STPT3 : 1;
9102 unsigned STPT4 : 1;
9103 unsigned STPT5 : 1;
9104 unsigned STPT6 : 1;
9105 unsigned STPT7 : 1;
9107 } __AT1STPTLbits_t;
9109 extern __at(0x081A) volatile __AT1STPTLbits_t AT1STPTLbits;
9111 #define _AT1STPT0 0x01
9112 #define _STPT0 0x01
9113 #define _AT1STPT1 0x02
9114 #define _STPT1 0x02
9115 #define _AT1STPT2 0x04
9116 #define _STPT2 0x04
9117 #define _AT1STPT3 0x08
9118 #define _STPT3 0x08
9119 #define _AT1STPT4 0x10
9120 #define _STPT4 0x10
9121 #define _AT1STPT5 0x20
9122 #define _STPT5 0x20
9123 #define _AT1STPT6 0x40
9124 #define _STPT6 0x40
9125 #define _AT1STPT7 0x80
9126 #define _STPT7 0x80
9128 //==============================================================================
9131 //==============================================================================
9132 // AT1STPTH Bits
9134 extern __at(0x081B) __sfr AT1STPTH;
9136 typedef union
9138 struct
9140 unsigned AT1STPT8 : 1;
9141 unsigned AT1STPT9 : 1;
9142 unsigned AT1STPT10 : 1;
9143 unsigned AT1STPT11 : 1;
9144 unsigned AT1STPT12 : 1;
9145 unsigned AT1STPT13 : 1;
9146 unsigned AT1STPT14 : 1;
9147 unsigned : 1;
9150 struct
9152 unsigned STPT8 : 1;
9153 unsigned STPT9 : 1;
9154 unsigned STPT10 : 1;
9155 unsigned STPT11 : 1;
9156 unsigned STPT12 : 1;
9157 unsigned STPT13 : 1;
9158 unsigned STPT14 : 1;
9159 unsigned : 1;
9161 } __AT1STPTHbits_t;
9163 extern __at(0x081B) volatile __AT1STPTHbits_t AT1STPTHbits;
9165 #define _AT1STPT8 0x01
9166 #define _STPT8 0x01
9167 #define _AT1STPT9 0x02
9168 #define _STPT9 0x02
9169 #define _AT1STPT10 0x04
9170 #define _STPT10 0x04
9171 #define _AT1STPT11 0x08
9172 #define _STPT11 0x08
9173 #define _AT1STPT12 0x10
9174 #define _STPT12 0x10
9175 #define _AT1STPT13 0x20
9176 #define _STPT13 0x20
9177 #define _AT1STPT14 0x40
9178 #define _STPT14 0x40
9180 //==============================================================================
9182 extern __at(0x081C) __sfr AT1ERR;
9184 //==============================================================================
9185 // AT1ERRL Bits
9187 extern __at(0x081C) __sfr AT1ERRL;
9189 typedef union
9191 struct
9193 unsigned AT1ERR0 : 1;
9194 unsigned AT1ERR1 : 1;
9195 unsigned AT1ERR2 : 1;
9196 unsigned AT1ERR3 : 1;
9197 unsigned AT1ERR4 : 1;
9198 unsigned AT1ERR5 : 1;
9199 unsigned AT1ERR6 : 1;
9200 unsigned AT1ERR7 : 1;
9203 struct
9205 unsigned ERR0 : 1;
9206 unsigned ERR1 : 1;
9207 unsigned ERR2 : 1;
9208 unsigned ERR3 : 1;
9209 unsigned ERR4 : 1;
9210 unsigned ERR5 : 1;
9211 unsigned ERR6 : 1;
9212 unsigned ERR7 : 1;
9215 struct
9217 unsigned ERRL0 : 1;
9218 unsigned ERRL1 : 1;
9219 unsigned ERRL2 : 1;
9220 unsigned ERRL3 : 1;
9221 unsigned ERRL4 : 1;
9222 unsigned ERRL5 : 1;
9223 unsigned ERRL6 : 1;
9224 unsigned ERRL7 : 1;
9226 } __AT1ERRLbits_t;
9228 extern __at(0x081C) volatile __AT1ERRLbits_t AT1ERRLbits;
9230 #define _AT1ERR0 0x01
9231 #define _ERR0 0x01
9232 #define _ERRL0 0x01
9233 #define _AT1ERR1 0x02
9234 #define _ERR1 0x02
9235 #define _ERRL1 0x02
9236 #define _AT1ERR2 0x04
9237 #define _ERR2 0x04
9238 #define _ERRL2 0x04
9239 #define _AT1ERR3 0x08
9240 #define _ERR3 0x08
9241 #define _ERRL3 0x08
9242 #define _AT1ERR4 0x10
9243 #define _ERR4 0x10
9244 #define _ERRL4 0x10
9245 #define _AT1ERR5 0x20
9246 #define _ERR5 0x20
9247 #define _ERRL5 0x20
9248 #define _AT1ERR6 0x40
9249 #define _ERR6 0x40
9250 #define _ERRL6 0x40
9251 #define _AT1ERR7 0x80
9252 #define _ERR7 0x80
9253 #define _ERRL7 0x80
9255 //==============================================================================
9258 //==============================================================================
9259 // AT1ERRH Bits
9261 extern __at(0x081D) __sfr AT1ERRH;
9263 typedef union
9265 struct
9267 unsigned AT1ERR8 : 1;
9268 unsigned AT1ERR9 : 1;
9269 unsigned AT1ERR10 : 1;
9270 unsigned AT1ERR11 : 1;
9271 unsigned AT1ERR12 : 1;
9272 unsigned AT1ERR13 : 1;
9273 unsigned AT1ERR14 : 1;
9274 unsigned AT1ERR15 : 1;
9277 struct
9279 unsigned ERR8 : 1;
9280 unsigned ERR9 : 1;
9281 unsigned ERR10 : 1;
9282 unsigned ERR11 : 1;
9283 unsigned ERR12 : 1;
9284 unsigned ERR13 : 1;
9285 unsigned ERR14 : 1;
9286 unsigned ERR15 : 1;
9289 struct
9291 unsigned ERRH0 : 1;
9292 unsigned ERRH1 : 1;
9293 unsigned ERRH2 : 1;
9294 unsigned ERRH3 : 1;
9295 unsigned ERRH4 : 1;
9296 unsigned ERRH5 : 1;
9297 unsigned ERRH6 : 1;
9298 unsigned ERRH7 : 1;
9300 } __AT1ERRHbits_t;
9302 extern __at(0x081D) volatile __AT1ERRHbits_t AT1ERRHbits;
9304 #define _AT1ERR8 0x01
9305 #define _ERR8 0x01
9306 #define _ERRH0 0x01
9307 #define _AT1ERR9 0x02
9308 #define _ERR9 0x02
9309 #define _ERRH1 0x02
9310 #define _AT1ERR10 0x04
9311 #define _ERR10 0x04
9312 #define _ERRH2 0x04
9313 #define _AT1ERR11 0x08
9314 #define _ERR11 0x08
9315 #define _ERRH3 0x08
9316 #define _AT1ERR12 0x10
9317 #define _ERR12 0x10
9318 #define _ERRH4 0x10
9319 #define _AT1ERR13 0x20
9320 #define _ERR13 0x20
9321 #define _ERRH5 0x20
9322 #define _AT1ERR14 0x40
9323 #define _ERR14 0x40
9324 #define _ERRH6 0x40
9325 #define _AT1ERR15 0x80
9326 #define _ERR15 0x80
9327 #define _ERRH7 0x80
9329 //==============================================================================
9332 //==============================================================================
9333 // AT1CLK Bits
9335 extern __at(0x088C) __sfr AT1CLK;
9337 typedef union
9339 struct
9341 unsigned CS : 1;
9342 unsigned : 1;
9343 unsigned : 1;
9344 unsigned : 1;
9345 unsigned : 1;
9346 unsigned : 1;
9347 unsigned : 1;
9348 unsigned : 1;
9351 struct
9353 unsigned AT1CS : 1;
9354 unsigned : 1;
9355 unsigned : 1;
9356 unsigned : 1;
9357 unsigned : 1;
9358 unsigned : 1;
9359 unsigned : 1;
9360 unsigned : 1;
9363 struct
9365 unsigned CS0 : 1;
9366 unsigned : 1;
9367 unsigned : 1;
9368 unsigned : 1;
9369 unsigned : 1;
9370 unsigned : 1;
9371 unsigned : 1;
9372 unsigned : 1;
9375 struct
9377 unsigned AT1CS0 : 1;
9378 unsigned : 1;
9379 unsigned : 1;
9380 unsigned : 1;
9381 unsigned : 1;
9382 unsigned : 1;
9383 unsigned : 1;
9384 unsigned : 1;
9386 } __AT1CLKbits_t;
9388 extern __at(0x088C) volatile __AT1CLKbits_t AT1CLKbits;
9390 #define _CS 0x01
9391 #define _AT1CS 0x01
9392 #define _CS0 0x01
9393 #define _AT1CS0 0x01
9395 //==============================================================================
9398 //==============================================================================
9399 // AT1SIG Bits
9401 extern __at(0x088D) __sfr AT1SIG;
9403 typedef union
9405 struct
9407 unsigned AT1SSEL0 : 1;
9408 unsigned AT1SSEL1 : 1;
9409 unsigned AT1SSEL2 : 1;
9410 unsigned : 1;
9411 unsigned : 1;
9412 unsigned : 1;
9413 unsigned : 1;
9414 unsigned : 1;
9417 struct
9419 unsigned SSEL0 : 1;
9420 unsigned SSEL1 : 1;
9421 unsigned SSEL2 : 1;
9422 unsigned : 1;
9423 unsigned : 1;
9424 unsigned : 1;
9425 unsigned : 1;
9426 unsigned : 1;
9429 struct
9431 unsigned SSEL : 3;
9432 unsigned : 5;
9435 struct
9437 unsigned AT1SSEL : 3;
9438 unsigned : 5;
9440 } __AT1SIGbits_t;
9442 extern __at(0x088D) volatile __AT1SIGbits_t AT1SIGbits;
9444 #define _AT1SSEL0 0x01
9445 #define _SSEL0 0x01
9446 #define _AT1SSEL1 0x02
9447 #define _SSEL1 0x02
9448 #define _AT1SSEL2 0x04
9449 #define _SSEL2 0x04
9451 //==============================================================================
9454 //==============================================================================
9455 // AT1CSEL1 Bits
9457 extern __at(0x088E) __sfr AT1CSEL1;
9459 typedef union
9461 struct
9463 unsigned AT1CP1S0 : 1;
9464 unsigned AT1CP1S1 : 1;
9465 unsigned AT1CP1S2 : 1;
9466 unsigned : 1;
9467 unsigned : 1;
9468 unsigned : 1;
9469 unsigned : 1;
9470 unsigned : 1;
9473 struct
9475 unsigned CP1S0 : 1;
9476 unsigned CP1S1 : 1;
9477 unsigned CP1S2 : 1;
9478 unsigned : 1;
9479 unsigned : 1;
9480 unsigned : 1;
9481 unsigned : 1;
9482 unsigned : 1;
9485 struct
9487 unsigned AT1CP1S : 3;
9488 unsigned : 5;
9491 struct
9493 unsigned CP1S : 3;
9494 unsigned : 5;
9496 } __AT1CSEL1bits_t;
9498 extern __at(0x088E) volatile __AT1CSEL1bits_t AT1CSEL1bits;
9500 #define _AT1CP1S0 0x01
9501 #define _CP1S0 0x01
9502 #define _AT1CP1S1 0x02
9503 #define _CP1S1 0x02
9504 #define _AT1CP1S2 0x04
9505 #define _CP1S2 0x04
9507 //==============================================================================
9509 extern __at(0x088F) __sfr AT1CC1;
9511 //==============================================================================
9512 // AT1CC1L Bits
9514 extern __at(0x088F) __sfr AT1CC1L;
9516 typedef union
9518 struct
9520 unsigned AT1CC10 : 1;
9521 unsigned AT1CC11 : 1;
9522 unsigned AT1CC12 : 1;
9523 unsigned AT1CC13 : 1;
9524 unsigned AT1CC14 : 1;
9525 unsigned AT1CC15 : 1;
9526 unsigned AT1CC16 : 1;
9527 unsigned AT1CC17 : 1;
9530 struct
9532 unsigned CC10 : 1;
9533 unsigned CC11 : 1;
9534 unsigned CC12 : 1;
9535 unsigned CC13 : 1;
9536 unsigned CC14 : 1;
9537 unsigned CC15 : 1;
9538 unsigned CC16 : 1;
9539 unsigned CC17 : 1;
9541 } __AT1CC1Lbits_t;
9543 extern __at(0x088F) volatile __AT1CC1Lbits_t AT1CC1Lbits;
9545 #define _AT1CC10 0x01
9546 #define _CC10 0x01
9547 #define _AT1CC11 0x02
9548 #define _CC11 0x02
9549 #define _AT1CC12 0x04
9550 #define _CC12 0x04
9551 #define _AT1CC13 0x08
9552 #define _CC13 0x08
9553 #define _AT1CC14 0x10
9554 #define _CC14 0x10
9555 #define _AT1CC15 0x20
9556 #define _CC15 0x20
9557 #define _AT1CC16 0x40
9558 #define _CC16 0x40
9559 #define _AT1CC17 0x80
9560 #define _CC17 0x80
9562 //==============================================================================
9565 //==============================================================================
9566 // AT1CC1H Bits
9568 extern __at(0x0890) __sfr AT1CC1H;
9570 typedef union
9572 struct
9574 unsigned AT1CC18 : 1;
9575 unsigned AT1CC19 : 1;
9576 unsigned : 1;
9577 unsigned : 1;
9578 unsigned : 1;
9579 unsigned : 1;
9580 unsigned : 1;
9581 unsigned : 1;
9584 struct
9586 unsigned CC18 : 1;
9587 unsigned CC19 : 1;
9588 unsigned : 1;
9589 unsigned : 1;
9590 unsigned : 1;
9591 unsigned : 1;
9592 unsigned : 1;
9593 unsigned : 1;
9595 } __AT1CC1Hbits_t;
9597 extern __at(0x0890) volatile __AT1CC1Hbits_t AT1CC1Hbits;
9599 #define _AT1CC18 0x01
9600 #define _CC18 0x01
9601 #define _AT1CC19 0x02
9602 #define _CC19 0x02
9604 //==============================================================================
9607 //==============================================================================
9608 // AT1CCON1 Bits
9610 extern __at(0x0891) __sfr AT1CCON1;
9612 typedef union
9614 struct
9616 unsigned AT1CC1MODE : 1;
9617 unsigned : 1;
9618 unsigned : 1;
9619 unsigned AT1CAP1P : 1;
9620 unsigned AT1CC1POL : 1;
9621 unsigned : 1;
9622 unsigned : 1;
9623 unsigned AT1CC1EN : 1;
9626 struct
9628 unsigned CC1MODE : 1;
9629 unsigned : 1;
9630 unsigned : 1;
9631 unsigned CAP1P : 1;
9632 unsigned CC1POL : 1;
9633 unsigned : 1;
9634 unsigned : 1;
9635 unsigned CC1EN : 1;
9637 } __AT1CCON1bits_t;
9639 extern __at(0x0891) volatile __AT1CCON1bits_t AT1CCON1bits;
9641 #define _AT1CC1MODE 0x01
9642 #define _CC1MODE 0x01
9643 #define _AT1CAP1P 0x08
9644 #define _CAP1P 0x08
9645 #define _AT1CC1POL 0x10
9646 #define _CC1POL 0x10
9647 #define _AT1CC1EN 0x80
9648 #define _CC1EN 0x80
9650 //==============================================================================
9653 //==============================================================================
9654 // AT1CSEL2 Bits
9656 extern __at(0x0892) __sfr AT1CSEL2;
9658 typedef union
9660 struct
9662 unsigned AT1CP2S0 : 1;
9663 unsigned AT1CP2S1 : 1;
9664 unsigned AT1CP2S2 : 1;
9665 unsigned : 1;
9666 unsigned : 1;
9667 unsigned : 1;
9668 unsigned : 1;
9669 unsigned : 1;
9672 struct
9674 unsigned CP2S0 : 1;
9675 unsigned CP2S1 : 1;
9676 unsigned CP2S2 : 1;
9677 unsigned : 1;
9678 unsigned : 1;
9679 unsigned : 1;
9680 unsigned : 1;
9681 unsigned : 1;
9684 struct
9686 unsigned AT1CP2S : 3;
9687 unsigned : 5;
9690 struct
9692 unsigned CP2S : 3;
9693 unsigned : 5;
9695 } __AT1CSEL2bits_t;
9697 extern __at(0x0892) volatile __AT1CSEL2bits_t AT1CSEL2bits;
9699 #define _AT1CP2S0 0x01
9700 #define _CP2S0 0x01
9701 #define _AT1CP2S1 0x02
9702 #define _CP2S1 0x02
9703 #define _AT1CP2S2 0x04
9704 #define _CP2S2 0x04
9706 //==============================================================================
9708 extern __at(0x0893) __sfr AT1CC2;
9710 //==============================================================================
9711 // AT1CC2L Bits
9713 extern __at(0x0893) __sfr AT1CC2L;
9715 typedef union
9717 struct
9719 unsigned AT1CC20 : 1;
9720 unsigned AT1CC21 : 1;
9721 unsigned AT1CC22 : 1;
9722 unsigned AT1CC23 : 1;
9723 unsigned AT1CC24 : 1;
9724 unsigned AT1CC25 : 1;
9725 unsigned AT1CC26 : 1;
9726 unsigned AT1CC27 : 1;
9729 struct
9731 unsigned CC20 : 1;
9732 unsigned CC21 : 1;
9733 unsigned CC22 : 1;
9734 unsigned CC13 : 1;
9735 unsigned CC24 : 1;
9736 unsigned CCW5 : 1;
9737 unsigned CC26 : 1;
9738 unsigned CC27 : 1;
9740 } __AT1CC2Lbits_t;
9742 extern __at(0x0893) volatile __AT1CC2Lbits_t AT1CC2Lbits;
9744 #define _AT1CC2L_AT1CC20 0x01
9745 #define _AT1CC2L_CC20 0x01
9746 #define _AT1CC2L_AT1CC21 0x02
9747 #define _AT1CC2L_CC21 0x02
9748 #define _AT1CC2L_AT1CC22 0x04
9749 #define _AT1CC2L_CC22 0x04
9750 #define _AT1CC2L_AT1CC23 0x08
9751 #define _AT1CC2L_CC13 0x08
9752 #define _AT1CC2L_AT1CC24 0x10
9753 #define _AT1CC2L_CC24 0x10
9754 #define _AT1CC2L_AT1CC25 0x20
9755 #define _AT1CC2L_CCW5 0x20
9756 #define _AT1CC2L_AT1CC26 0x40
9757 #define _AT1CC2L_CC26 0x40
9758 #define _AT1CC2L_AT1CC27 0x80
9759 #define _AT1CC2L_CC27 0x80
9761 //==============================================================================
9764 //==============================================================================
9765 // AT1CC2H Bits
9767 extern __at(0x0894) __sfr AT1CC2H;
9769 typedef union
9771 struct
9773 unsigned AT1CC28 : 1;
9774 unsigned AT1CC29 : 1;
9775 unsigned : 1;
9776 unsigned : 1;
9777 unsigned : 1;
9778 unsigned : 1;
9779 unsigned : 1;
9780 unsigned : 1;
9783 struct
9785 unsigned CC28 : 1;
9786 unsigned CC29 : 1;
9787 unsigned : 1;
9788 unsigned : 1;
9789 unsigned : 1;
9790 unsigned : 1;
9791 unsigned : 1;
9792 unsigned : 1;
9794 } __AT1CC2Hbits_t;
9796 extern __at(0x0894) volatile __AT1CC2Hbits_t AT1CC2Hbits;
9798 #define _AT1CC28 0x01
9799 #define _CC28 0x01
9800 #define _AT1CC29 0x02
9801 #define _CC29 0x02
9803 //==============================================================================
9806 //==============================================================================
9807 // AT1CCON2 Bits
9809 extern __at(0x0895) __sfr AT1CCON2;
9811 typedef union
9813 struct
9815 unsigned AT1CC2MODE : 1;
9816 unsigned : 1;
9817 unsigned : 1;
9818 unsigned AT1CAP2P : 1;
9819 unsigned AT1CC2POL : 1;
9820 unsigned : 1;
9821 unsigned : 1;
9822 unsigned AT1CC2EN : 1;
9825 struct
9827 unsigned CC2MODE : 1;
9828 unsigned : 1;
9829 unsigned : 1;
9830 unsigned CAP2P : 1;
9831 unsigned CC2POL : 1;
9832 unsigned : 1;
9833 unsigned : 1;
9834 unsigned CC2EN : 1;
9836 } __AT1CCON2bits_t;
9838 extern __at(0x0895) volatile __AT1CCON2bits_t AT1CCON2bits;
9840 #define _AT1CC2MODE 0x01
9841 #define _CC2MODE 0x01
9842 #define _AT1CAP2P 0x08
9843 #define _CAP2P 0x08
9844 #define _AT1CC2POL 0x10
9845 #define _CC2POL 0x10
9846 #define _AT1CC2EN 0x80
9847 #define _CC2EN 0x80
9849 //==============================================================================
9852 //==============================================================================
9853 // AT1CSEL3 Bits
9855 extern __at(0x0896) __sfr AT1CSEL3;
9857 typedef union
9859 struct
9861 unsigned AT1CP3S0 : 1;
9862 unsigned AT1CP3S1 : 1;
9863 unsigned AT1CP3S2 : 1;
9864 unsigned : 1;
9865 unsigned : 1;
9866 unsigned : 1;
9867 unsigned : 1;
9868 unsigned : 1;
9871 struct
9873 unsigned CP3S0 : 1;
9874 unsigned CP3S1 : 1;
9875 unsigned CP3S2 : 1;
9876 unsigned : 1;
9877 unsigned : 1;
9878 unsigned : 1;
9879 unsigned : 1;
9880 unsigned : 1;
9883 struct
9885 unsigned CP3S : 3;
9886 unsigned : 5;
9889 struct
9891 unsigned AT1CP3S : 3;
9892 unsigned : 5;
9894 } __AT1CSEL3bits_t;
9896 extern __at(0x0896) volatile __AT1CSEL3bits_t AT1CSEL3bits;
9898 #define _AT1CP3S0 0x01
9899 #define _CP3S0 0x01
9900 #define _AT1CP3S1 0x02
9901 #define _CP3S1 0x02
9902 #define _AT1CP3S2 0x04
9903 #define _CP3S2 0x04
9905 //==============================================================================
9907 extern __at(0x0897) __sfr AT1CC3;
9909 //==============================================================================
9910 // AT1CC3L Bits
9912 extern __at(0x0897) __sfr AT1CC3L;
9914 typedef union
9916 struct
9918 unsigned AT1CC30 : 1;
9919 unsigned AT1CC31 : 1;
9920 unsigned AT1CC32 : 1;
9921 unsigned AT1CC33 : 1;
9922 unsigned AT1CC34 : 1;
9923 unsigned AT1CC35 : 1;
9924 unsigned AT1CC36 : 1;
9925 unsigned AT1CC37 : 1;
9928 struct
9930 unsigned CC30 : 1;
9931 unsigned CC31 : 1;
9932 unsigned CC32 : 1;
9933 unsigned CC33 : 1;
9934 unsigned CC34 : 1;
9935 unsigned CC35 : 1;
9936 unsigned CC36 : 1;
9937 unsigned CC37 : 1;
9939 } __AT1CC3Lbits_t;
9941 extern __at(0x0897) volatile __AT1CC3Lbits_t AT1CC3Lbits;
9943 #define _AT1CC30 0x01
9944 #define _CC30 0x01
9945 #define _AT1CC31 0x02
9946 #define _CC31 0x02
9947 #define _AT1CC32 0x04
9948 #define _CC32 0x04
9949 #define _AT1CC33 0x08
9950 #define _CC33 0x08
9951 #define _AT1CC34 0x10
9952 #define _CC34 0x10
9953 #define _AT1CC35 0x20
9954 #define _CC35 0x20
9955 #define _AT1CC36 0x40
9956 #define _CC36 0x40
9957 #define _AT1CC37 0x80
9958 #define _CC37 0x80
9960 //==============================================================================
9963 //==============================================================================
9964 // AT1CC3H Bits
9966 extern __at(0x0898) __sfr AT1CC3H;
9968 typedef union
9970 struct
9972 unsigned AT1CC38 : 1;
9973 unsigned AT1CC39 : 1;
9974 unsigned : 1;
9975 unsigned : 1;
9976 unsigned : 1;
9977 unsigned : 1;
9978 unsigned : 1;
9979 unsigned : 1;
9982 struct
9984 unsigned CC38 : 1;
9985 unsigned CC39 : 1;
9986 unsigned : 1;
9987 unsigned : 1;
9988 unsigned : 1;
9989 unsigned : 1;
9990 unsigned : 1;
9991 unsigned : 1;
9993 } __AT1CC3Hbits_t;
9995 extern __at(0x0898) volatile __AT1CC3Hbits_t AT1CC3Hbits;
9997 #define _AT1CC38 0x01
9998 #define _CC38 0x01
9999 #define _AT1CC39 0x02
10000 #define _CC39 0x02
10002 //==============================================================================
10005 //==============================================================================
10006 // AT1CCON3 Bits
10008 extern __at(0x0899) __sfr AT1CCON3;
10010 typedef union
10012 struct
10014 unsigned AT1CC3MODE : 1;
10015 unsigned : 1;
10016 unsigned : 1;
10017 unsigned AT1CAP3P : 1;
10018 unsigned AT1CC3POL : 1;
10019 unsigned : 1;
10020 unsigned : 1;
10021 unsigned AT1CC3EN : 1;
10024 struct
10026 unsigned CC3MODE : 1;
10027 unsigned : 1;
10028 unsigned : 1;
10029 unsigned CAP3P : 1;
10030 unsigned CC3POL : 1;
10031 unsigned : 1;
10032 unsigned : 1;
10033 unsigned CC3EN : 1;
10035 } __AT1CCON3bits_t;
10037 extern __at(0x0899) volatile __AT1CCON3bits_t AT1CCON3bits;
10039 #define _AT1CC3MODE 0x01
10040 #define _CC3MODE 0x01
10041 #define _AT1CAP3P 0x08
10042 #define _CAP3P 0x08
10043 #define _AT1CC3POL 0x10
10044 #define _CC3POL 0x10
10045 #define _AT1CC3EN 0x80
10046 #define _CC3EN 0x80
10048 //==============================================================================
10050 extern __at(0x0D8C) __sfr SMT1TMR;
10052 //==============================================================================
10053 // SMT1TMRL Bits
10055 extern __at(0x0D8C) __sfr SMT1TMRL;
10057 typedef struct
10059 unsigned SMT1TMR0 : 1;
10060 unsigned SMT1TMR1 : 1;
10061 unsigned SMT1TMR2 : 1;
10062 unsigned SMT1TMR3 : 1;
10063 unsigned SMT1TMR4 : 1;
10064 unsigned SMT1TMR5 : 1;
10065 unsigned SMT1TMR6 : 1;
10066 unsigned SMT1TMR7 : 1;
10067 } __SMT1TMRLbits_t;
10069 extern __at(0x0D8C) volatile __SMT1TMRLbits_t SMT1TMRLbits;
10071 #define _SMT1TMR0 0x01
10072 #define _SMT1TMR1 0x02
10073 #define _SMT1TMR2 0x04
10074 #define _SMT1TMR3 0x08
10075 #define _SMT1TMR4 0x10
10076 #define _SMT1TMR5 0x20
10077 #define _SMT1TMR6 0x40
10078 #define _SMT1TMR7 0x80
10080 //==============================================================================
10083 //==============================================================================
10084 // SMT1TMRH Bits
10086 extern __at(0x0D8D) __sfr SMT1TMRH;
10088 typedef struct
10090 unsigned SMT1TMR8 : 1;
10091 unsigned SMT1TMR9 : 1;
10092 unsigned SMT1TMR10 : 1;
10093 unsigned SMT1TMR11 : 1;
10094 unsigned SMT1TMR12 : 1;
10095 unsigned SMT1TMR13 : 1;
10096 unsigned SMT1TMR14 : 1;
10097 unsigned SMT1TMR15 : 1;
10098 } __SMT1TMRHbits_t;
10100 extern __at(0x0D8D) volatile __SMT1TMRHbits_t SMT1TMRHbits;
10102 #define _SMT1TMR8 0x01
10103 #define _SMT1TMR9 0x02
10104 #define _SMT1TMR10 0x04
10105 #define _SMT1TMR11 0x08
10106 #define _SMT1TMR12 0x10
10107 #define _SMT1TMR13 0x20
10108 #define _SMT1TMR14 0x40
10109 #define _SMT1TMR15 0x80
10111 //==============================================================================
10114 //==============================================================================
10115 // SMT1TMRU Bits
10117 extern __at(0x0D8E) __sfr SMT1TMRU;
10119 typedef struct
10121 unsigned SMT1TMR16 : 1;
10122 unsigned SMT1TMR17 : 1;
10123 unsigned SMT1TMR18 : 1;
10124 unsigned SMT1TMR19 : 1;
10125 unsigned SMT1TMR20 : 1;
10126 unsigned SMT1TMR21 : 1;
10127 unsigned SMT1TMR22 : 1;
10128 unsigned SMT1TMR23 : 1;
10129 } __SMT1TMRUbits_t;
10131 extern __at(0x0D8E) volatile __SMT1TMRUbits_t SMT1TMRUbits;
10133 #define _SMT1TMR16 0x01
10134 #define _SMT1TMR17 0x02
10135 #define _SMT1TMR18 0x04
10136 #define _SMT1TMR19 0x08
10137 #define _SMT1TMR20 0x10
10138 #define _SMT1TMR21 0x20
10139 #define _SMT1TMR22 0x40
10140 #define _SMT1TMR23 0x80
10142 //==============================================================================
10144 extern __at(0x0D8F) __sfr SMT1CPR;
10146 //==============================================================================
10147 // SMT1CPRL Bits
10149 extern __at(0x0D8F) __sfr SMT1CPRL;
10151 typedef struct
10153 unsigned SMT1CPR0 : 1;
10154 unsigned SMT1CPR1 : 1;
10155 unsigned SMT1CPR2 : 1;
10156 unsigned SMT1CPR3 : 1;
10157 unsigned SMT1CPR4 : 1;
10158 unsigned SMT1CPR5 : 1;
10159 unsigned SMT1CPR6 : 1;
10160 unsigned SMT1CPR7 : 1;
10161 } __SMT1CPRLbits_t;
10163 extern __at(0x0D8F) volatile __SMT1CPRLbits_t SMT1CPRLbits;
10165 #define _SMT1CPR0 0x01
10166 #define _SMT1CPR1 0x02
10167 #define _SMT1CPR2 0x04
10168 #define _SMT1CPR3 0x08
10169 #define _SMT1CPR4 0x10
10170 #define _SMT1CPR5 0x20
10171 #define _SMT1CPR6 0x40
10172 #define _SMT1CPR7 0x80
10174 //==============================================================================
10177 //==============================================================================
10178 // SMT1CPRH Bits
10180 extern __at(0x0D90) __sfr SMT1CPRH;
10182 typedef struct
10184 unsigned SMT1CPR8 : 1;
10185 unsigned SMT1CPR9 : 1;
10186 unsigned SMT1CPR10 : 1;
10187 unsigned SMT1CPR11 : 1;
10188 unsigned SMT1CPR12 : 1;
10189 unsigned SMT1CPR13 : 1;
10190 unsigned SMT1CPR14 : 1;
10191 unsigned SMT1CPR15 : 1;
10192 } __SMT1CPRHbits_t;
10194 extern __at(0x0D90) volatile __SMT1CPRHbits_t SMT1CPRHbits;
10196 #define _SMT1CPR8 0x01
10197 #define _SMT1CPR9 0x02
10198 #define _SMT1CPR10 0x04
10199 #define _SMT1CPR11 0x08
10200 #define _SMT1CPR12 0x10
10201 #define _SMT1CPR13 0x20
10202 #define _SMT1CPR14 0x40
10203 #define _SMT1CPR15 0x80
10205 //==============================================================================
10208 //==============================================================================
10209 // SMT1CPRU Bits
10211 extern __at(0x0D91) __sfr SMT1CPRU;
10213 typedef struct
10215 unsigned SMT1CPR16 : 1;
10216 unsigned SMT1CPR17 : 1;
10217 unsigned SMT1CPR18 : 1;
10218 unsigned SMT1CPR19 : 1;
10219 unsigned SMT1CPR20 : 1;
10220 unsigned SMT1CPR21 : 1;
10221 unsigned SMT1CPR22 : 1;
10222 unsigned SMT1CPR23 : 1;
10223 } __SMT1CPRUbits_t;
10225 extern __at(0x0D91) volatile __SMT1CPRUbits_t SMT1CPRUbits;
10227 #define _SMT1CPR16 0x01
10228 #define _SMT1CPR17 0x02
10229 #define _SMT1CPR18 0x04
10230 #define _SMT1CPR19 0x08
10231 #define _SMT1CPR20 0x10
10232 #define _SMT1CPR21 0x20
10233 #define _SMT1CPR22 0x40
10234 #define _SMT1CPR23 0x80
10236 //==============================================================================
10238 extern __at(0x0D92) __sfr SMT1CPW;
10240 //==============================================================================
10241 // SMT1CPWL Bits
10243 extern __at(0x0D92) __sfr SMT1CPWL;
10245 typedef struct
10247 unsigned SMT1CPW0 : 1;
10248 unsigned SMT1CPW1 : 1;
10249 unsigned SMT1CPW2 : 1;
10250 unsigned SMT1CPW3 : 1;
10251 unsigned SMT1CPW4 : 1;
10252 unsigned SMT1CPW5 : 1;
10253 unsigned SMT1CPW6 : 1;
10254 unsigned SMT1CPW7 : 1;
10255 } __SMT1CPWLbits_t;
10257 extern __at(0x0D92) volatile __SMT1CPWLbits_t SMT1CPWLbits;
10259 #define _SMT1CPW0 0x01
10260 #define _SMT1CPW1 0x02
10261 #define _SMT1CPW2 0x04
10262 #define _SMT1CPW3 0x08
10263 #define _SMT1CPW4 0x10
10264 #define _SMT1CPW5 0x20
10265 #define _SMT1CPW6 0x40
10266 #define _SMT1CPW7 0x80
10268 //==============================================================================
10271 //==============================================================================
10272 // SMT1CPWH Bits
10274 extern __at(0x0D93) __sfr SMT1CPWH;
10276 typedef struct
10278 unsigned SMT1CPW8 : 1;
10279 unsigned SMT1CPW9 : 1;
10280 unsigned SMT1CPW10 : 1;
10281 unsigned SMT1CPW11 : 1;
10282 unsigned SMT1CPW12 : 1;
10283 unsigned SMT1CPW13 : 1;
10284 unsigned SMT1CPW14 : 1;
10285 unsigned SMT1CPW15 : 1;
10286 } __SMT1CPWHbits_t;
10288 extern __at(0x0D93) volatile __SMT1CPWHbits_t SMT1CPWHbits;
10290 #define _SMT1CPW8 0x01
10291 #define _SMT1CPW9 0x02
10292 #define _SMT1CPW10 0x04
10293 #define _SMT1CPW11 0x08
10294 #define _SMT1CPW12 0x10
10295 #define _SMT1CPW13 0x20
10296 #define _SMT1CPW14 0x40
10297 #define _SMT1CPW15 0x80
10299 //==============================================================================
10302 //==============================================================================
10303 // SMT1CPWU Bits
10305 extern __at(0x0D94) __sfr SMT1CPWU;
10307 typedef struct
10309 unsigned SMT1CPW16 : 1;
10310 unsigned SMT1CPW17 : 1;
10311 unsigned SMT1CPW18 : 1;
10312 unsigned SMT1CPW19 : 1;
10313 unsigned SMT1CPW20 : 1;
10314 unsigned SMT1CPW21 : 1;
10315 unsigned SMT1CPW22 : 1;
10316 unsigned SMT1CPW23 : 1;
10317 } __SMT1CPWUbits_t;
10319 extern __at(0x0D94) volatile __SMT1CPWUbits_t SMT1CPWUbits;
10321 #define _SMT1CPW16 0x01
10322 #define _SMT1CPW17 0x02
10323 #define _SMT1CPW18 0x04
10324 #define _SMT1CPW19 0x08
10325 #define _SMT1CPW20 0x10
10326 #define _SMT1CPW21 0x20
10327 #define _SMT1CPW22 0x40
10328 #define _SMT1CPW23 0x80
10330 //==============================================================================
10332 extern __at(0x0D95) __sfr SMT1PR;
10334 //==============================================================================
10335 // SMT1PRL Bits
10337 extern __at(0x0D95) __sfr SMT1PRL;
10339 typedef struct
10341 unsigned SMT1PR0 : 1;
10342 unsigned SMT1PR1 : 1;
10343 unsigned SMT1PR2 : 1;
10344 unsigned SMT1PR3 : 1;
10345 unsigned SMT1PR4 : 1;
10346 unsigned SMT1PR5 : 1;
10347 unsigned SMT1PR6 : 1;
10348 unsigned SMT1PR7 : 1;
10349 } __SMT1PRLbits_t;
10351 extern __at(0x0D95) volatile __SMT1PRLbits_t SMT1PRLbits;
10353 #define _SMT1PR0 0x01
10354 #define _SMT1PR1 0x02
10355 #define _SMT1PR2 0x04
10356 #define _SMT1PR3 0x08
10357 #define _SMT1PR4 0x10
10358 #define _SMT1PR5 0x20
10359 #define _SMT1PR6 0x40
10360 #define _SMT1PR7 0x80
10362 //==============================================================================
10365 //==============================================================================
10366 // SMT1PRH Bits
10368 extern __at(0x0D96) __sfr SMT1PRH;
10370 typedef struct
10372 unsigned SMT1PR8 : 1;
10373 unsigned SMT1PR9 : 1;
10374 unsigned SMT1PR10 : 1;
10375 unsigned SMT1PR11 : 1;
10376 unsigned SMT1PR12 : 1;
10377 unsigned SMT1PR13 : 1;
10378 unsigned SMT1PR14 : 1;
10379 unsigned SMT1PR15 : 1;
10380 } __SMT1PRHbits_t;
10382 extern __at(0x0D96) volatile __SMT1PRHbits_t SMT1PRHbits;
10384 #define _SMT1PR8 0x01
10385 #define _SMT1PR9 0x02
10386 #define _SMT1PR10 0x04
10387 #define _SMT1PR11 0x08
10388 #define _SMT1PR12 0x10
10389 #define _SMT1PR13 0x20
10390 #define _SMT1PR14 0x40
10391 #define _SMT1PR15 0x80
10393 //==============================================================================
10396 //==============================================================================
10397 // SMT1PRU Bits
10399 extern __at(0x0D97) __sfr SMT1PRU;
10401 typedef struct
10403 unsigned SMT1PR16 : 1;
10404 unsigned SMT1PR17 : 1;
10405 unsigned SMT1PR18 : 1;
10406 unsigned SMT1PR19 : 1;
10407 unsigned SMT1PR20 : 1;
10408 unsigned SMT1PR21 : 1;
10409 unsigned SMT1PR22 : 1;
10410 unsigned SMT1PR23 : 1;
10411 } __SMT1PRUbits_t;
10413 extern __at(0x0D97) volatile __SMT1PRUbits_t SMT1PRUbits;
10415 #define _SMT1PR16 0x01
10416 #define _SMT1PR17 0x02
10417 #define _SMT1PR18 0x04
10418 #define _SMT1PR19 0x08
10419 #define _SMT1PR20 0x10
10420 #define _SMT1PR21 0x20
10421 #define _SMT1PR22 0x40
10422 #define _SMT1PR23 0x80
10424 //==============================================================================
10427 //==============================================================================
10428 // SMT1CON0 Bits
10430 extern __at(0x0D98) __sfr SMT1CON0;
10432 typedef union
10434 struct
10436 unsigned SMT1PS0 : 1;
10437 unsigned SMT1PS1 : 1;
10438 unsigned CPOL : 1;
10439 unsigned SPOL : 1;
10440 unsigned WPOL : 1;
10441 unsigned STP : 1;
10442 unsigned : 1;
10443 unsigned EN : 1;
10446 struct
10448 unsigned SMT1PS : 2;
10449 unsigned : 6;
10451 } __SMT1CON0bits_t;
10453 extern __at(0x0D98) volatile __SMT1CON0bits_t SMT1CON0bits;
10455 #define _SMT1CON0_SMT1PS0 0x01
10456 #define _SMT1CON0_SMT1PS1 0x02
10457 #define _SMT1CON0_CPOL 0x04
10458 #define _SMT1CON0_SPOL 0x08
10459 #define _SMT1CON0_WPOL 0x10
10460 #define _SMT1CON0_STP 0x20
10461 #define _SMT1CON0_EN 0x80
10463 //==============================================================================
10466 //==============================================================================
10467 // SMT1CON1 Bits
10469 extern __at(0x0D99) __sfr SMT1CON1;
10471 typedef union
10473 struct
10475 unsigned MODE0 : 1;
10476 unsigned MODE1 : 1;
10477 unsigned MODE2 : 1;
10478 unsigned MODE3 : 1;
10479 unsigned : 1;
10480 unsigned : 1;
10481 unsigned REPEAT : 1;
10482 unsigned SMT1GO : 1;
10485 struct
10487 unsigned SMT1MODE0 : 1;
10488 unsigned SMT1MODE1 : 1;
10489 unsigned SMT1MODE2 : 1;
10490 unsigned SMT1MODE3 : 1;
10491 unsigned : 1;
10492 unsigned : 1;
10493 unsigned SMT1REPEAT : 1;
10494 unsigned : 1;
10497 struct
10499 unsigned SMT1MODE : 4;
10500 unsigned : 4;
10503 struct
10505 unsigned MODE : 4;
10506 unsigned : 4;
10508 } __SMT1CON1bits_t;
10510 extern __at(0x0D99) volatile __SMT1CON1bits_t SMT1CON1bits;
10512 #define _SMT1CON1_MODE0 0x01
10513 #define _SMT1CON1_SMT1MODE0 0x01
10514 #define _SMT1CON1_MODE1 0x02
10515 #define _SMT1CON1_SMT1MODE1 0x02
10516 #define _SMT1CON1_MODE2 0x04
10517 #define _SMT1CON1_SMT1MODE2 0x04
10518 #define _SMT1CON1_MODE3 0x08
10519 #define _SMT1CON1_SMT1MODE3 0x08
10520 #define _SMT1CON1_REPEAT 0x40
10521 #define _SMT1CON1_SMT1REPEAT 0x40
10522 #define _SMT1CON1_SMT1GO 0x80
10524 //==============================================================================
10527 //==============================================================================
10528 // SMT1STAT Bits
10530 extern __at(0x0D9A) __sfr SMT1STAT;
10532 typedef union
10534 struct
10536 unsigned AS : 1;
10537 unsigned WS : 1;
10538 unsigned TS : 1;
10539 unsigned : 1;
10540 unsigned : 1;
10541 unsigned RST : 1;
10542 unsigned CPWUP : 1;
10543 unsigned CPRUP : 1;
10546 struct
10548 unsigned SMT1AS : 1;
10549 unsigned SMT1WS : 1;
10550 unsigned SMT1TS : 1;
10551 unsigned : 1;
10552 unsigned : 1;
10553 unsigned SMT1RESET : 1;
10554 unsigned SMT1CPWUP : 1;
10555 unsigned SMT1CPRUP : 1;
10557 } __SMT1STATbits_t;
10559 extern __at(0x0D9A) volatile __SMT1STATbits_t SMT1STATbits;
10561 #define _AS 0x01
10562 #define _SMT1AS 0x01
10563 #define _WS 0x02
10564 #define _SMT1WS 0x02
10565 #define _TS 0x04
10566 #define _SMT1TS 0x04
10567 #define _RST 0x20
10568 #define _SMT1RESET 0x20
10569 #define _CPWUP 0x40
10570 #define _SMT1CPWUP 0x40
10571 #define _CPRUP 0x80
10572 #define _SMT1CPRUP 0x80
10574 //==============================================================================
10577 //==============================================================================
10578 // SMT1CLK Bits
10580 extern __at(0x0D9B) __sfr SMT1CLK;
10582 typedef union
10584 struct
10586 unsigned CSEL0 : 1;
10587 unsigned CSEL1 : 1;
10588 unsigned CSEL2 : 1;
10589 unsigned : 1;
10590 unsigned : 1;
10591 unsigned : 1;
10592 unsigned : 1;
10593 unsigned : 1;
10596 struct
10598 unsigned SMT1CSEL0 : 1;
10599 unsigned SMT1CSEL1 : 1;
10600 unsigned SMT1CSEL2 : 1;
10601 unsigned : 1;
10602 unsigned : 1;
10603 unsigned : 1;
10604 unsigned : 1;
10605 unsigned : 1;
10608 struct
10610 unsigned CSEL : 3;
10611 unsigned : 5;
10614 struct
10616 unsigned SMT1CSEL : 3;
10617 unsigned : 5;
10619 } __SMT1CLKbits_t;
10621 extern __at(0x0D9B) volatile __SMT1CLKbits_t SMT1CLKbits;
10623 #define _CSEL0 0x01
10624 #define _SMT1CSEL0 0x01
10625 #define _CSEL1 0x02
10626 #define _SMT1CSEL1 0x02
10627 #define _CSEL2 0x04
10628 #define _SMT1CSEL2 0x04
10630 //==============================================================================
10633 //==============================================================================
10634 // SMT1SIG Bits
10636 extern __at(0x0D9C) __sfr SMT1SIG;
10638 typedef union
10640 struct
10642 unsigned SSEL0 : 1;
10643 unsigned SSEL1 : 1;
10644 unsigned SSEL2 : 1;
10645 unsigned SSEL3 : 1;
10646 unsigned SSEL4 : 1;
10647 unsigned : 1;
10648 unsigned : 1;
10649 unsigned : 1;
10652 struct
10654 unsigned SMT1SSEL0 : 1;
10655 unsigned SMT1SSEL1 : 1;
10656 unsigned SMT1SSEL2 : 1;
10657 unsigned SMT1SSEL3 : 1;
10658 unsigned SMT1SSEL4 : 1;
10659 unsigned : 1;
10660 unsigned : 1;
10661 unsigned : 1;
10664 struct
10666 unsigned SMT1SSEL : 5;
10667 unsigned : 3;
10670 struct
10672 unsigned SSEL : 5;
10673 unsigned : 3;
10675 } __SMT1SIGbits_t;
10677 extern __at(0x0D9C) volatile __SMT1SIGbits_t SMT1SIGbits;
10679 #define _SMT1SIG_SSEL0 0x01
10680 #define _SMT1SIG_SMT1SSEL0 0x01
10681 #define _SMT1SIG_SSEL1 0x02
10682 #define _SMT1SIG_SMT1SSEL1 0x02
10683 #define _SMT1SIG_SSEL2 0x04
10684 #define _SMT1SIG_SMT1SSEL2 0x04
10685 #define _SMT1SIG_SSEL3 0x08
10686 #define _SMT1SIG_SMT1SSEL3 0x08
10687 #define _SMT1SIG_SSEL4 0x10
10688 #define _SMT1SIG_SMT1SSEL4 0x10
10690 //==============================================================================
10693 //==============================================================================
10694 // SMT1WIN Bits
10696 extern __at(0x0D9D) __sfr SMT1WIN;
10698 typedef union
10700 struct
10702 unsigned WSEL0 : 1;
10703 unsigned WSEL1 : 1;
10704 unsigned WSEL2 : 1;
10705 unsigned WSEL3 : 1;
10706 unsigned WSEL4 : 1;
10707 unsigned : 1;
10708 unsigned : 1;
10709 unsigned : 1;
10712 struct
10714 unsigned SMT1WSEL0 : 1;
10715 unsigned SMT1WSEL1 : 1;
10716 unsigned SMT1WSEL2 : 1;
10717 unsigned SMT1WSEL3 : 1;
10718 unsigned SMT1WSEL4 : 1;
10719 unsigned : 1;
10720 unsigned : 1;
10721 unsigned : 1;
10724 struct
10726 unsigned SMT1WSEL : 5;
10727 unsigned : 3;
10730 struct
10732 unsigned WSEL : 5;
10733 unsigned : 3;
10735 } __SMT1WINbits_t;
10737 extern __at(0x0D9D) volatile __SMT1WINbits_t SMT1WINbits;
10739 #define _WSEL0 0x01
10740 #define _SMT1WSEL0 0x01
10741 #define _WSEL1 0x02
10742 #define _SMT1WSEL1 0x02
10743 #define _WSEL2 0x04
10744 #define _SMT1WSEL2 0x04
10745 #define _WSEL3 0x08
10746 #define _SMT1WSEL3 0x08
10747 #define _WSEL4 0x10
10748 #define _SMT1WSEL4 0x10
10750 //==============================================================================
10752 extern __at(0x0D9E) __sfr SMT2TMR;
10754 //==============================================================================
10755 // SMT2TMRL Bits
10757 extern __at(0x0D9E) __sfr SMT2TMRL;
10759 typedef struct
10761 unsigned SMT2TMR0 : 1;
10762 unsigned SMT2TMR1 : 1;
10763 unsigned SMT2TMR2 : 1;
10764 unsigned SMT2TMR3 : 1;
10765 unsigned SMT2TMR4 : 1;
10766 unsigned SMT2TMR5 : 1;
10767 unsigned SMT2TMR6 : 1;
10768 unsigned SMT2TMR7 : 1;
10769 } __SMT2TMRLbits_t;
10771 extern __at(0x0D9E) volatile __SMT2TMRLbits_t SMT2TMRLbits;
10773 #define _SMT2TMR0 0x01
10774 #define _SMT2TMR1 0x02
10775 #define _SMT2TMR2 0x04
10776 #define _SMT2TMR3 0x08
10777 #define _SMT2TMR4 0x10
10778 #define _SMT2TMR5 0x20
10779 #define _SMT2TMR6 0x40
10780 #define _SMT2TMR7 0x80
10782 //==============================================================================
10785 //==============================================================================
10786 // SMT2TMRH Bits
10788 extern __at(0x0D9F) __sfr SMT2TMRH;
10790 typedef struct
10792 unsigned SMT2TMR8 : 1;
10793 unsigned SMT2TMR9 : 1;
10794 unsigned SMT2TMR10 : 1;
10795 unsigned SMT2TMR11 : 1;
10796 unsigned SMT2TMR12 : 1;
10797 unsigned SMT2TMR13 : 1;
10798 unsigned SMT2TMR14 : 1;
10799 unsigned SMT2TMR15 : 1;
10800 } __SMT2TMRHbits_t;
10802 extern __at(0x0D9F) volatile __SMT2TMRHbits_t SMT2TMRHbits;
10804 #define _SMT2TMR8 0x01
10805 #define _SMT2TMR9 0x02
10806 #define _SMT2TMR10 0x04
10807 #define _SMT2TMR11 0x08
10808 #define _SMT2TMR12 0x10
10809 #define _SMT2TMR13 0x20
10810 #define _SMT2TMR14 0x40
10811 #define _SMT2TMR15 0x80
10813 //==============================================================================
10816 //==============================================================================
10817 // SMT2TMRU Bits
10819 extern __at(0x0DA0) __sfr SMT2TMRU;
10821 typedef struct
10823 unsigned SMT2TMR16 : 1;
10824 unsigned SMT2TMR17 : 1;
10825 unsigned SMT2TMR18 : 1;
10826 unsigned SMT2TMR19 : 1;
10827 unsigned SMT2TMR20 : 1;
10828 unsigned SMT2TMR21 : 1;
10829 unsigned SMT2TMR22 : 1;
10830 unsigned SMT2TMR23 : 1;
10831 } __SMT2TMRUbits_t;
10833 extern __at(0x0DA0) volatile __SMT2TMRUbits_t SMT2TMRUbits;
10835 #define _SMT2TMR16 0x01
10836 #define _SMT2TMR17 0x02
10837 #define _SMT2TMR18 0x04
10838 #define _SMT2TMR19 0x08
10839 #define _SMT2TMR20 0x10
10840 #define _SMT2TMR21 0x20
10841 #define _SMT2TMR22 0x40
10842 #define _SMT2TMR23 0x80
10844 //==============================================================================
10846 extern __at(0x0DA1) __sfr SMT2CPR;
10848 //==============================================================================
10849 // SMT2CPRL Bits
10851 extern __at(0x0DA1) __sfr SMT2CPRL;
10853 typedef struct
10855 unsigned SMT2CPR0 : 1;
10856 unsigned SMT2CPR1 : 1;
10857 unsigned SMT2CPR2 : 1;
10858 unsigned SMT2CPR3 : 1;
10859 unsigned SMT2CPR4 : 1;
10860 unsigned SMT2CPR5 : 1;
10861 unsigned SMT2CPR6 : 1;
10862 unsigned SMT2CPR7 : 1;
10863 } __SMT2CPRLbits_t;
10865 extern __at(0x0DA1) volatile __SMT2CPRLbits_t SMT2CPRLbits;
10867 #define _SMT2CPR0 0x01
10868 #define _SMT2CPR1 0x02
10869 #define _SMT2CPR2 0x04
10870 #define _SMT2CPR3 0x08
10871 #define _SMT2CPR4 0x10
10872 #define _SMT2CPR5 0x20
10873 #define _SMT2CPR6 0x40
10874 #define _SMT2CPR7 0x80
10876 //==============================================================================
10879 //==============================================================================
10880 // SMT2CPRH Bits
10882 extern __at(0x0DA2) __sfr SMT2CPRH;
10884 typedef struct
10886 unsigned SMT2CPR8 : 1;
10887 unsigned SMT2CPR9 : 1;
10888 unsigned SMT2CPR10 : 1;
10889 unsigned SMT2CPR11 : 1;
10890 unsigned SMT2CPR12 : 1;
10891 unsigned SMT2CPR13 : 1;
10892 unsigned SMT2CPR14 : 1;
10893 unsigned SMT2CPR15 : 1;
10894 } __SMT2CPRHbits_t;
10896 extern __at(0x0DA2) volatile __SMT2CPRHbits_t SMT2CPRHbits;
10898 #define _SMT2CPR8 0x01
10899 #define _SMT2CPR9 0x02
10900 #define _SMT2CPR10 0x04
10901 #define _SMT2CPR11 0x08
10902 #define _SMT2CPR12 0x10
10903 #define _SMT2CPR13 0x20
10904 #define _SMT2CPR14 0x40
10905 #define _SMT2CPR15 0x80
10907 //==============================================================================
10910 //==============================================================================
10911 // SMT2CPRU Bits
10913 extern __at(0x0DA3) __sfr SMT2CPRU;
10915 typedef struct
10917 unsigned SMT2CPR16 : 1;
10918 unsigned SMT2CPR17 : 1;
10919 unsigned SMT2CPR18 : 1;
10920 unsigned SMT2CPR19 : 1;
10921 unsigned SMT2CPR20 : 1;
10922 unsigned SMT2CPR21 : 1;
10923 unsigned SMT2CPR22 : 1;
10924 unsigned SMT2CPR23 : 1;
10925 } __SMT2CPRUbits_t;
10927 extern __at(0x0DA3) volatile __SMT2CPRUbits_t SMT2CPRUbits;
10929 #define _SMT2CPR16 0x01
10930 #define _SMT2CPR17 0x02
10931 #define _SMT2CPR18 0x04
10932 #define _SMT2CPR19 0x08
10933 #define _SMT2CPR20 0x10
10934 #define _SMT2CPR21 0x20
10935 #define _SMT2CPR22 0x40
10936 #define _SMT2CPR23 0x80
10938 //==============================================================================
10940 extern __at(0x0DA4) __sfr SMT2CPW;
10942 //==============================================================================
10943 // SMT2CPWL Bits
10945 extern __at(0x0DA4) __sfr SMT2CPWL;
10947 typedef struct
10949 unsigned SMT2CPW0 : 1;
10950 unsigned SMT2CPW1 : 1;
10951 unsigned SMT2CPW2 : 1;
10952 unsigned SMT2CPW3 : 1;
10953 unsigned SMT2CPW4 : 1;
10954 unsigned SMT2CPW5 : 1;
10955 unsigned SMT2CPW6 : 1;
10956 unsigned SMT2CPW7 : 1;
10957 } __SMT2CPWLbits_t;
10959 extern __at(0x0DA4) volatile __SMT2CPWLbits_t SMT2CPWLbits;
10961 #define _SMT2CPW0 0x01
10962 #define _SMT2CPW1 0x02
10963 #define _SMT2CPW2 0x04
10964 #define _SMT2CPW3 0x08
10965 #define _SMT2CPW4 0x10
10966 #define _SMT2CPW5 0x20
10967 #define _SMT2CPW6 0x40
10968 #define _SMT2CPW7 0x80
10970 //==============================================================================
10973 //==============================================================================
10974 // SMT2CPWH Bits
10976 extern __at(0x0DA5) __sfr SMT2CPWH;
10978 typedef struct
10980 unsigned SMT2CPW8 : 1;
10981 unsigned SMT2CPW9 : 1;
10982 unsigned SMT2CPW10 : 1;
10983 unsigned SMT2CPW11 : 1;
10984 unsigned SMT2CPW12 : 1;
10985 unsigned SMT2CPW13 : 1;
10986 unsigned SMT2CPW14 : 1;
10987 unsigned SMT2CPW15 : 1;
10988 } __SMT2CPWHbits_t;
10990 extern __at(0x0DA5) volatile __SMT2CPWHbits_t SMT2CPWHbits;
10992 #define _SMT2CPW8 0x01
10993 #define _SMT2CPW9 0x02
10994 #define _SMT2CPW10 0x04
10995 #define _SMT2CPW11 0x08
10996 #define _SMT2CPW12 0x10
10997 #define _SMT2CPW13 0x20
10998 #define _SMT2CPW14 0x40
10999 #define _SMT2CPW15 0x80
11001 //==============================================================================
11004 //==============================================================================
11005 // SMT2CPWU Bits
11007 extern __at(0x0DA6) __sfr SMT2CPWU;
11009 typedef struct
11011 unsigned SMT2CPW16 : 1;
11012 unsigned SMT2CPW17 : 1;
11013 unsigned SMT2CPW18 : 1;
11014 unsigned SMT2CPW19 : 1;
11015 unsigned SMT2CPW20 : 1;
11016 unsigned SMT2CPW21 : 1;
11017 unsigned SMT2CPW22 : 1;
11018 unsigned SMT2CPW23 : 1;
11019 } __SMT2CPWUbits_t;
11021 extern __at(0x0DA6) volatile __SMT2CPWUbits_t SMT2CPWUbits;
11023 #define _SMT2CPW16 0x01
11024 #define _SMT2CPW17 0x02
11025 #define _SMT2CPW18 0x04
11026 #define _SMT2CPW19 0x08
11027 #define _SMT2CPW20 0x10
11028 #define _SMT2CPW21 0x20
11029 #define _SMT2CPW22 0x40
11030 #define _SMT2CPW23 0x80
11032 //==============================================================================
11034 extern __at(0x0DA7) __sfr SMT2PR;
11036 //==============================================================================
11037 // SMT2PRL Bits
11039 extern __at(0x0DA7) __sfr SMT2PRL;
11041 typedef struct
11043 unsigned SMT2PR0 : 1;
11044 unsigned SMT2PR1 : 1;
11045 unsigned SMT2PR2 : 1;
11046 unsigned SMT2PR3 : 1;
11047 unsigned SMT2PR4 : 1;
11048 unsigned SMT2PR5 : 1;
11049 unsigned SMT2PR6 : 1;
11050 unsigned SMT2PR7 : 1;
11051 } __SMT2PRLbits_t;
11053 extern __at(0x0DA7) volatile __SMT2PRLbits_t SMT2PRLbits;
11055 #define _SMT2PR0 0x01
11056 #define _SMT2PR1 0x02
11057 #define _SMT2PR2 0x04
11058 #define _SMT2PR3 0x08
11059 #define _SMT2PR4 0x10
11060 #define _SMT2PR5 0x20
11061 #define _SMT2PR6 0x40
11062 #define _SMT2PR7 0x80
11064 //==============================================================================
11067 //==============================================================================
11068 // SMT2PRH Bits
11070 extern __at(0x0DA8) __sfr SMT2PRH;
11072 typedef struct
11074 unsigned SMT2PR8 : 1;
11075 unsigned SMT2PR9 : 1;
11076 unsigned SMT2PR10 : 1;
11077 unsigned SMT2PR11 : 1;
11078 unsigned SMT2PR12 : 1;
11079 unsigned SMT2PR13 : 1;
11080 unsigned SMT2PR14 : 1;
11081 unsigned SMT2PR15 : 1;
11082 } __SMT2PRHbits_t;
11084 extern __at(0x0DA8) volatile __SMT2PRHbits_t SMT2PRHbits;
11086 #define _SMT2PR8 0x01
11087 #define _SMT2PR9 0x02
11088 #define _SMT2PR10 0x04
11089 #define _SMT2PR11 0x08
11090 #define _SMT2PR12 0x10
11091 #define _SMT2PR13 0x20
11092 #define _SMT2PR14 0x40
11093 #define _SMT2PR15 0x80
11095 //==============================================================================
11098 //==============================================================================
11099 // SMT2PRU Bits
11101 extern __at(0x0DA9) __sfr SMT2PRU;
11103 typedef struct
11105 unsigned SMT2PR16 : 1;
11106 unsigned SMT2PR17 : 1;
11107 unsigned SMT2PR18 : 1;
11108 unsigned SMT2PR19 : 1;
11109 unsigned SMT2PR20 : 1;
11110 unsigned SMT2PR21 : 1;
11111 unsigned SMT2PR22 : 1;
11112 unsigned SMT2PR23 : 1;
11113 } __SMT2PRUbits_t;
11115 extern __at(0x0DA9) volatile __SMT2PRUbits_t SMT2PRUbits;
11117 #define _SMT2PR16 0x01
11118 #define _SMT2PR17 0x02
11119 #define _SMT2PR18 0x04
11120 #define _SMT2PR19 0x08
11121 #define _SMT2PR20 0x10
11122 #define _SMT2PR21 0x20
11123 #define _SMT2PR22 0x40
11124 #define _SMT2PR23 0x80
11126 //==============================================================================
11129 //==============================================================================
11130 // SMT2CON0 Bits
11132 extern __at(0x0DAA) __sfr SMT2CON0;
11134 typedef union
11136 struct
11138 unsigned SMT2PS0 : 1;
11139 unsigned SMT2PS1 : 1;
11140 unsigned CPOL : 1;
11141 unsigned SPOL : 1;
11142 unsigned WPOL : 1;
11143 unsigned STP : 1;
11144 unsigned : 1;
11145 unsigned EN : 1;
11148 struct
11150 unsigned SMT2PS : 2;
11151 unsigned : 6;
11153 } __SMT2CON0bits_t;
11155 extern __at(0x0DAA) volatile __SMT2CON0bits_t SMT2CON0bits;
11157 #define _SMT2CON0_SMT2PS0 0x01
11158 #define _SMT2CON0_SMT2PS1 0x02
11159 #define _SMT2CON0_CPOL 0x04
11160 #define _SMT2CON0_SPOL 0x08
11161 #define _SMT2CON0_WPOL 0x10
11162 #define _SMT2CON0_STP 0x20
11163 #define _SMT2CON0_EN 0x80
11165 //==============================================================================
11168 //==============================================================================
11169 // SMT2CON1 Bits
11171 extern __at(0x0DAB) __sfr SMT2CON1;
11173 typedef union
11175 struct
11177 unsigned MODE0 : 1;
11178 unsigned MODE1 : 1;
11179 unsigned MODE2 : 1;
11180 unsigned MODE3 : 1;
11181 unsigned : 1;
11182 unsigned : 1;
11183 unsigned REPEAT : 1;
11184 unsigned SMT2GO : 1;
11187 struct
11189 unsigned SMT2MODE0 : 1;
11190 unsigned SMT2MODE1 : 1;
11191 unsigned SMT2MODE2 : 1;
11192 unsigned SMT2MODE3 : 1;
11193 unsigned : 1;
11194 unsigned : 1;
11195 unsigned SMT2REPEAT : 1;
11196 unsigned : 1;
11199 struct
11201 unsigned MODE : 4;
11202 unsigned : 4;
11205 struct
11207 unsigned SMT2MODE : 4;
11208 unsigned : 4;
11210 } __SMT2CON1bits_t;
11212 extern __at(0x0DAB) volatile __SMT2CON1bits_t SMT2CON1bits;
11214 #define _SMT2CON1_MODE0 0x01
11215 #define _SMT2CON1_SMT2MODE0 0x01
11216 #define _SMT2CON1_MODE1 0x02
11217 #define _SMT2CON1_SMT2MODE1 0x02
11218 #define _SMT2CON1_MODE2 0x04
11219 #define _SMT2CON1_SMT2MODE2 0x04
11220 #define _SMT2CON1_MODE3 0x08
11221 #define _SMT2CON1_SMT2MODE3 0x08
11222 #define _SMT2CON1_REPEAT 0x40
11223 #define _SMT2CON1_SMT2REPEAT 0x40
11224 #define _SMT2CON1_SMT2GO 0x80
11226 //==============================================================================
11229 //==============================================================================
11230 // SMT2STAT Bits
11232 extern __at(0x0DAC) __sfr SMT2STAT;
11234 typedef union
11236 struct
11238 unsigned AS : 1;
11239 unsigned WS : 1;
11240 unsigned TS : 1;
11241 unsigned : 1;
11242 unsigned : 1;
11243 unsigned RST : 1;
11244 unsigned CPWUP : 1;
11245 unsigned CPRUP : 1;
11248 struct
11250 unsigned SMT2AS : 1;
11251 unsigned SMT2WS : 1;
11252 unsigned SMT2TS : 1;
11253 unsigned : 1;
11254 unsigned : 1;
11255 unsigned SMT2RESET : 1;
11256 unsigned SMT2CPWUP : 1;
11257 unsigned SMT2CPRUP : 1;
11259 } __SMT2STATbits_t;
11261 extern __at(0x0DAC) volatile __SMT2STATbits_t SMT2STATbits;
11263 #define _SMT2STAT_AS 0x01
11264 #define _SMT2STAT_SMT2AS 0x01
11265 #define _SMT2STAT_WS 0x02
11266 #define _SMT2STAT_SMT2WS 0x02
11267 #define _SMT2STAT_TS 0x04
11268 #define _SMT2STAT_SMT2TS 0x04
11269 #define _SMT2STAT_RST 0x20
11270 #define _SMT2STAT_SMT2RESET 0x20
11271 #define _SMT2STAT_CPWUP 0x40
11272 #define _SMT2STAT_SMT2CPWUP 0x40
11273 #define _SMT2STAT_CPRUP 0x80
11274 #define _SMT2STAT_SMT2CPRUP 0x80
11276 //==============================================================================
11279 //==============================================================================
11280 // SMT2CLK Bits
11282 extern __at(0x0DAD) __sfr SMT2CLK;
11284 typedef union
11286 struct
11288 unsigned CSEL0 : 1;
11289 unsigned CSEL1 : 1;
11290 unsigned CSEL2 : 1;
11291 unsigned : 1;
11292 unsigned : 1;
11293 unsigned : 1;
11294 unsigned : 1;
11295 unsigned : 1;
11298 struct
11300 unsigned SMT2CSEL0 : 1;
11301 unsigned SMT2CSEL1 : 1;
11302 unsigned SMT2CSEL2 : 1;
11303 unsigned : 1;
11304 unsigned : 1;
11305 unsigned : 1;
11306 unsigned : 1;
11307 unsigned : 1;
11310 struct
11312 unsigned CSEL : 3;
11313 unsigned : 5;
11316 struct
11318 unsigned SMT2CSEL : 3;
11319 unsigned : 5;
11321 } __SMT2CLKbits_t;
11323 extern __at(0x0DAD) volatile __SMT2CLKbits_t SMT2CLKbits;
11325 #define _SMT2CLK_CSEL0 0x01
11326 #define _SMT2CLK_SMT2CSEL0 0x01
11327 #define _SMT2CLK_CSEL1 0x02
11328 #define _SMT2CLK_SMT2CSEL1 0x02
11329 #define _SMT2CLK_CSEL2 0x04
11330 #define _SMT2CLK_SMT2CSEL2 0x04
11332 //==============================================================================
11335 //==============================================================================
11336 // SMT2SIG Bits
11338 extern __at(0x0DAE) __sfr SMT2SIG;
11340 typedef union
11342 struct
11344 unsigned SSEL0 : 1;
11345 unsigned SSEL1 : 1;
11346 unsigned SSEL2 : 1;
11347 unsigned SSEL3 : 1;
11348 unsigned SSEL4 : 1;
11349 unsigned : 1;
11350 unsigned : 1;
11351 unsigned : 1;
11354 struct
11356 unsigned SMT2SSEL0 : 1;
11357 unsigned SMT2SSEL1 : 1;
11358 unsigned SMT2SSEL2 : 1;
11359 unsigned SMT2SSEL3 : 1;
11360 unsigned SMT2SSEL4 : 1;
11361 unsigned : 1;
11362 unsigned : 1;
11363 unsigned : 1;
11366 struct
11368 unsigned SMT2SSEL : 5;
11369 unsigned : 3;
11372 struct
11374 unsigned SSEL : 5;
11375 unsigned : 3;
11377 } __SMT2SIGbits_t;
11379 extern __at(0x0DAE) volatile __SMT2SIGbits_t SMT2SIGbits;
11381 #define _SMT2SIG_SSEL0 0x01
11382 #define _SMT2SIG_SMT2SSEL0 0x01
11383 #define _SMT2SIG_SSEL1 0x02
11384 #define _SMT2SIG_SMT2SSEL1 0x02
11385 #define _SMT2SIG_SSEL2 0x04
11386 #define _SMT2SIG_SMT2SSEL2 0x04
11387 #define _SMT2SIG_SSEL3 0x08
11388 #define _SMT2SIG_SMT2SSEL3 0x08
11389 #define _SMT2SIG_SSEL4 0x10
11390 #define _SMT2SIG_SMT2SSEL4 0x10
11392 //==============================================================================
11395 //==============================================================================
11396 // SMT2WIN Bits
11398 extern __at(0x0DAF) __sfr SMT2WIN;
11400 typedef union
11402 struct
11404 unsigned WSEL0 : 1;
11405 unsigned WSEL1 : 1;
11406 unsigned WSEL2 : 1;
11407 unsigned WSEL3 : 1;
11408 unsigned WSEL4 : 1;
11409 unsigned : 1;
11410 unsigned : 1;
11411 unsigned : 1;
11414 struct
11416 unsigned SMT2WSEL0 : 1;
11417 unsigned SMT2WSEL1 : 1;
11418 unsigned SMT2WSEL2 : 1;
11419 unsigned SMT2WSEL3 : 1;
11420 unsigned SMT2WSEL4 : 1;
11421 unsigned : 1;
11422 unsigned : 1;
11423 unsigned : 1;
11426 struct
11428 unsigned WSEL : 5;
11429 unsigned : 3;
11432 struct
11434 unsigned SMT2WSEL : 5;
11435 unsigned : 3;
11437 } __SMT2WINbits_t;
11439 extern __at(0x0DAF) volatile __SMT2WINbits_t SMT2WINbits;
11441 #define _SMT2WIN_WSEL0 0x01
11442 #define _SMT2WIN_SMT2WSEL0 0x01
11443 #define _SMT2WIN_WSEL1 0x02
11444 #define _SMT2WIN_SMT2WSEL1 0x02
11445 #define _SMT2WIN_WSEL2 0x04
11446 #define _SMT2WIN_SMT2WSEL2 0x04
11447 #define _SMT2WIN_WSEL3 0x08
11448 #define _SMT2WIN_SMT2WSEL3 0x08
11449 #define _SMT2WIN_WSEL4 0x10
11450 #define _SMT2WIN_SMT2WSEL4 0x10
11452 //==============================================================================
11455 //==============================================================================
11456 // PPSLOCK Bits
11458 extern __at(0x0E0F) __sfr PPSLOCK;
11460 typedef struct
11462 unsigned PPSLOCKED : 1;
11463 unsigned : 1;
11464 unsigned : 1;
11465 unsigned : 1;
11466 unsigned : 1;
11467 unsigned : 1;
11468 unsigned : 1;
11469 unsigned : 1;
11470 } __PPSLOCKbits_t;
11472 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
11474 #define _PPSLOCKED 0x01
11476 //==============================================================================
11479 //==============================================================================
11480 // INTPPS Bits
11482 extern __at(0x0E10) __sfr INTPPS;
11484 typedef union
11486 struct
11488 unsigned INTPPS0 : 1;
11489 unsigned INTPPS1 : 1;
11490 unsigned INTPPS2 : 1;
11491 unsigned INTPPS3 : 1;
11492 unsigned INTPPS4 : 1;
11493 unsigned : 1;
11494 unsigned : 1;
11495 unsigned : 1;
11498 struct
11500 unsigned INTPPS : 5;
11501 unsigned : 3;
11503 } __INTPPSbits_t;
11505 extern __at(0x0E10) volatile __INTPPSbits_t INTPPSbits;
11507 #define _INTPPS0 0x01
11508 #define _INTPPS1 0x02
11509 #define _INTPPS2 0x04
11510 #define _INTPPS3 0x08
11511 #define _INTPPS4 0x10
11513 //==============================================================================
11516 //==============================================================================
11517 // T0CKIPPS Bits
11519 extern __at(0x0E11) __sfr T0CKIPPS;
11521 typedef union
11523 struct
11525 unsigned T0CKIPPS0 : 1;
11526 unsigned T0CKIPPS1 : 1;
11527 unsigned T0CKIPPS2 : 1;
11528 unsigned T0CKIPPS3 : 1;
11529 unsigned T0CKIPPS4 : 1;
11530 unsigned : 1;
11531 unsigned : 1;
11532 unsigned : 1;
11535 struct
11537 unsigned T0CKIPPS : 5;
11538 unsigned : 3;
11540 } __T0CKIPPSbits_t;
11542 extern __at(0x0E11) volatile __T0CKIPPSbits_t T0CKIPPSbits;
11544 #define _T0CKIPPS0 0x01
11545 #define _T0CKIPPS1 0x02
11546 #define _T0CKIPPS2 0x04
11547 #define _T0CKIPPS3 0x08
11548 #define _T0CKIPPS4 0x10
11550 //==============================================================================
11553 //==============================================================================
11554 // T1CKIPPS Bits
11556 extern __at(0x0E12) __sfr T1CKIPPS;
11558 typedef union
11560 struct
11562 unsigned T1CKIPPS0 : 1;
11563 unsigned T1CKIPPS1 : 1;
11564 unsigned T1CKIPPS2 : 1;
11565 unsigned T1CKIPPS3 : 1;
11566 unsigned T1CKIPPS4 : 1;
11567 unsigned : 1;
11568 unsigned : 1;
11569 unsigned : 1;
11572 struct
11574 unsigned T1CKIPPS : 5;
11575 unsigned : 3;
11577 } __T1CKIPPSbits_t;
11579 extern __at(0x0E12) volatile __T1CKIPPSbits_t T1CKIPPSbits;
11581 #define _T1CKIPPS0 0x01
11582 #define _T1CKIPPS1 0x02
11583 #define _T1CKIPPS2 0x04
11584 #define _T1CKIPPS3 0x08
11585 #define _T1CKIPPS4 0x10
11587 //==============================================================================
11590 //==============================================================================
11591 // T1GPPS Bits
11593 extern __at(0x0E13) __sfr T1GPPS;
11595 typedef union
11597 struct
11599 unsigned T1GPPS0 : 1;
11600 unsigned T1GPPS1 : 1;
11601 unsigned T1GPPS2 : 1;
11602 unsigned T1GPPS3 : 1;
11603 unsigned T1GPPS4 : 1;
11604 unsigned : 1;
11605 unsigned : 1;
11606 unsigned : 1;
11609 struct
11611 unsigned T1GPPS : 5;
11612 unsigned : 3;
11614 } __T1GPPSbits_t;
11616 extern __at(0x0E13) volatile __T1GPPSbits_t T1GPPSbits;
11618 #define _T1GPPS0 0x01
11619 #define _T1GPPS1 0x02
11620 #define _T1GPPS2 0x04
11621 #define _T1GPPS3 0x08
11622 #define _T1GPPS4 0x10
11624 //==============================================================================
11627 //==============================================================================
11628 // CCP1PPS Bits
11630 extern __at(0x0E14) __sfr CCP1PPS;
11632 typedef union
11634 struct
11636 unsigned CCP1PPS0 : 1;
11637 unsigned CCP1PPS1 : 1;
11638 unsigned CCP1PPS2 : 1;
11639 unsigned CCP1PPS3 : 1;
11640 unsigned CCP1PPS4 : 1;
11641 unsigned : 1;
11642 unsigned : 1;
11643 unsigned : 1;
11646 struct
11648 unsigned CCP1PPS : 5;
11649 unsigned : 3;
11651 } __CCP1PPSbits_t;
11653 extern __at(0x0E14) volatile __CCP1PPSbits_t CCP1PPSbits;
11655 #define _CCP1PPS0 0x01
11656 #define _CCP1PPS1 0x02
11657 #define _CCP1PPS2 0x04
11658 #define _CCP1PPS3 0x08
11659 #define _CCP1PPS4 0x10
11661 //==============================================================================
11664 //==============================================================================
11665 // CCP2PPS Bits
11667 extern __at(0x0E15) __sfr CCP2PPS;
11669 typedef union
11671 struct
11673 unsigned CCP2PPS0 : 1;
11674 unsigned CCP2PPS1 : 1;
11675 unsigned CCP2PPS2 : 1;
11676 unsigned CCP2PPS3 : 1;
11677 unsigned CCP2PPS4 : 1;
11678 unsigned : 1;
11679 unsigned : 1;
11680 unsigned : 1;
11683 struct
11685 unsigned CCP2PPS : 5;
11686 unsigned : 3;
11688 } __CCP2PPSbits_t;
11690 extern __at(0x0E15) volatile __CCP2PPSbits_t CCP2PPSbits;
11692 #define _CCP2PPS0 0x01
11693 #define _CCP2PPS1 0x02
11694 #define _CCP2PPS2 0x04
11695 #define _CCP2PPS3 0x08
11696 #define _CCP2PPS4 0x10
11698 //==============================================================================
11701 //==============================================================================
11702 // ATINPPS Bits
11704 extern __at(0x0E16) __sfr ATINPPS;
11706 typedef union
11708 struct
11710 unsigned ATINPPS0 : 1;
11711 unsigned ATINPPS1 : 1;
11712 unsigned ATINPPS2 : 1;
11713 unsigned ATINPPS3 : 1;
11714 unsigned ATINPPS4 : 1;
11715 unsigned : 1;
11716 unsigned : 1;
11717 unsigned : 1;
11720 struct
11722 unsigned ATINPPS : 5;
11723 unsigned : 3;
11725 } __ATINPPSbits_t;
11727 extern __at(0x0E16) volatile __ATINPPSbits_t ATINPPSbits;
11729 #define _ATINPPS0 0x01
11730 #define _ATINPPS1 0x02
11731 #define _ATINPPS2 0x04
11732 #define _ATINPPS3 0x08
11733 #define _ATINPPS4 0x10
11735 //==============================================================================
11738 //==============================================================================
11739 // CWGINPPS Bits
11741 extern __at(0x0E17) __sfr CWGINPPS;
11743 typedef union
11745 struct
11747 unsigned CWGINPPS0 : 1;
11748 unsigned CWGINPPS1 : 1;
11749 unsigned CWGINPPS2 : 1;
11750 unsigned CWGINPPS3 : 1;
11751 unsigned CWGINPPS4 : 1;
11752 unsigned : 1;
11753 unsigned : 1;
11754 unsigned : 1;
11757 struct
11759 unsigned CWGINPPS : 5;
11760 unsigned : 3;
11762 } __CWGINPPSbits_t;
11764 extern __at(0x0E17) volatile __CWGINPPSbits_t CWGINPPSbits;
11766 #define _CWGINPPS0 0x01
11767 #define _CWGINPPS1 0x02
11768 #define _CWGINPPS2 0x04
11769 #define _CWGINPPS3 0x08
11770 #define _CWGINPPS4 0x10
11772 //==============================================================================
11775 //==============================================================================
11776 // T2PPS Bits
11778 extern __at(0x0E18) __sfr T2PPS;
11780 typedef union
11782 struct
11784 unsigned T2PPS0 : 1;
11785 unsigned T2PPS1 : 1;
11786 unsigned T2PPS2 : 1;
11787 unsigned T2PPS3 : 1;
11788 unsigned T2PPS4 : 1;
11789 unsigned : 1;
11790 unsigned : 1;
11791 unsigned : 1;
11794 struct
11796 unsigned T2PPS : 5;
11797 unsigned : 3;
11799 } __T2PPSbits_t;
11801 extern __at(0x0E18) volatile __T2PPSbits_t T2PPSbits;
11803 #define _T2PPS0 0x01
11804 #define _T2PPS1 0x02
11805 #define _T2PPS2 0x04
11806 #define _T2PPS3 0x08
11807 #define _T2PPS4 0x10
11809 //==============================================================================
11812 //==============================================================================
11813 // T3CKIPPS Bits
11815 extern __at(0x0E19) __sfr T3CKIPPS;
11817 typedef union
11819 struct
11821 unsigned T3CKIPPS0 : 1;
11822 unsigned T3CKIPPS1 : 1;
11823 unsigned T3CKIPPS2 : 1;
11824 unsigned T3CKIPPS3 : 1;
11825 unsigned T3CKIPPS4 : 1;
11826 unsigned : 1;
11827 unsigned : 1;
11828 unsigned : 1;
11831 struct
11833 unsigned T3CKIPPS : 5;
11834 unsigned : 3;
11836 } __T3CKIPPSbits_t;
11838 extern __at(0x0E19) volatile __T3CKIPPSbits_t T3CKIPPSbits;
11840 #define _T3CKIPPS0 0x01
11841 #define _T3CKIPPS1 0x02
11842 #define _T3CKIPPS2 0x04
11843 #define _T3CKIPPS3 0x08
11844 #define _T3CKIPPS4 0x10
11846 //==============================================================================
11849 //==============================================================================
11850 // T3GPPS Bits
11852 extern __at(0x0E1A) __sfr T3GPPS;
11854 typedef union
11856 struct
11858 unsigned T3GPPS0 : 1;
11859 unsigned T3GPPS1 : 1;
11860 unsigned T3GPPS2 : 1;
11861 unsigned T3GPPS3 : 1;
11862 unsigned T3GPPS4 : 1;
11863 unsigned : 1;
11864 unsigned : 1;
11865 unsigned : 1;
11868 struct
11870 unsigned T3GPPS : 5;
11871 unsigned : 3;
11873 } __T3GPPSbits_t;
11875 extern __at(0x0E1A) volatile __T3GPPSbits_t T3GPPSbits;
11877 #define _T3GPPS0 0x01
11878 #define _T3GPPS1 0x02
11879 #define _T3GPPS2 0x04
11880 #define _T3GPPS3 0x08
11881 #define _T3GPPS4 0x10
11883 //==============================================================================
11886 //==============================================================================
11887 // T4PPS Bits
11889 extern __at(0x0E1B) __sfr T4PPS;
11891 typedef union
11893 struct
11895 unsigned T4PPS0 : 1;
11896 unsigned T4PPS1 : 1;
11897 unsigned T4PPS2 : 1;
11898 unsigned T4PPS3 : 1;
11899 unsigned T4PPS4 : 1;
11900 unsigned : 1;
11901 unsigned : 1;
11902 unsigned : 1;
11905 struct
11907 unsigned T4PPS : 5;
11908 unsigned : 3;
11910 } __T4PPSbits_t;
11912 extern __at(0x0E1B) volatile __T4PPSbits_t T4PPSbits;
11914 #define _T4PPS0 0x01
11915 #define _T4PPS1 0x02
11916 #define _T4PPS2 0x04
11917 #define _T4PPS3 0x08
11918 #define _T4PPS4 0x10
11920 //==============================================================================
11923 //==============================================================================
11924 // T5CKIPPS Bits
11926 extern __at(0x0E1C) __sfr T5CKIPPS;
11928 typedef union
11930 struct
11932 unsigned T5CKIPPS0 : 1;
11933 unsigned T5CKIPPS1 : 1;
11934 unsigned T5CKIPPS2 : 1;
11935 unsigned T5CKIPPS3 : 1;
11936 unsigned T5CKIPPS4 : 1;
11937 unsigned : 1;
11938 unsigned : 1;
11939 unsigned : 1;
11942 struct
11944 unsigned T5CKIPPS : 5;
11945 unsigned : 3;
11947 } __T5CKIPPSbits_t;
11949 extern __at(0x0E1C) volatile __T5CKIPPSbits_t T5CKIPPSbits;
11951 #define _T5CKIPPS0 0x01
11952 #define _T5CKIPPS1 0x02
11953 #define _T5CKIPPS2 0x04
11954 #define _T5CKIPPS3 0x08
11955 #define _T5CKIPPS4 0x10
11957 //==============================================================================
11960 //==============================================================================
11961 // T5GPPS Bits
11963 extern __at(0x0E1D) __sfr T5GPPS;
11965 typedef union
11967 struct
11969 unsigned T5GPPS0 : 1;
11970 unsigned T5GPPS1 : 1;
11971 unsigned T5GPPS2 : 1;
11972 unsigned T5GPPS3 : 1;
11973 unsigned T5GPPS4 : 1;
11974 unsigned : 1;
11975 unsigned : 1;
11976 unsigned : 1;
11979 struct
11981 unsigned T5GPPS : 5;
11982 unsigned : 3;
11984 } __T5GPPSbits_t;
11986 extern __at(0x0E1D) volatile __T5GPPSbits_t T5GPPSbits;
11988 #define _T5GPPS0 0x01
11989 #define _T5GPPS1 0x02
11990 #define _T5GPPS2 0x04
11991 #define _T5GPPS3 0x08
11992 #define _T5GPPS4 0x10
11994 //==============================================================================
11997 //==============================================================================
11998 // T6PPS Bits
12000 extern __at(0x0E1E) __sfr T6PPS;
12002 typedef union
12004 struct
12006 unsigned T6PPS0 : 1;
12007 unsigned T6PPS1 : 1;
12008 unsigned T6PPS2 : 1;
12009 unsigned T6PPS3 : 1;
12010 unsigned T6PPS4 : 1;
12011 unsigned : 1;
12012 unsigned : 1;
12013 unsigned : 1;
12016 struct
12018 unsigned T6PPS : 5;
12019 unsigned : 3;
12021 } __T6PPSbits_t;
12023 extern __at(0x0E1E) volatile __T6PPSbits_t T6PPSbits;
12025 #define _T6PPS0 0x01
12026 #define _T6PPS1 0x02
12027 #define _T6PPS2 0x04
12028 #define _T6PPS3 0x08
12029 #define _T6PPS4 0x10
12031 //==============================================================================
12034 //==============================================================================
12035 // ATCC1PPS Bits
12037 extern __at(0x0E1F) __sfr ATCC1PPS;
12039 typedef union
12041 struct
12043 unsigned ATCC1PPS0 : 1;
12044 unsigned ATCC1PPS1 : 1;
12045 unsigned ATCC1PPS2 : 1;
12046 unsigned ATCC1PPS3 : 1;
12047 unsigned ATCC1PPS4 : 1;
12048 unsigned : 1;
12049 unsigned : 1;
12050 unsigned : 1;
12053 struct
12055 unsigned ATCC1PPS : 5;
12056 unsigned : 3;
12058 } __ATCC1PPSbits_t;
12060 extern __at(0x0E1F) volatile __ATCC1PPSbits_t ATCC1PPSbits;
12062 #define _ATCC1PPS0 0x01
12063 #define _ATCC1PPS1 0x02
12064 #define _ATCC1PPS2 0x04
12065 #define _ATCC1PPS3 0x08
12066 #define _ATCC1PPS4 0x10
12068 //==============================================================================
12071 //==============================================================================
12072 // SSPCLKPPS Bits
12074 extern __at(0x0E20) __sfr SSPCLKPPS;
12076 typedef union
12078 struct
12080 unsigned SSPCLKPPS0 : 1;
12081 unsigned SSPCLKPPS1 : 1;
12082 unsigned SSPCLKPPS2 : 1;
12083 unsigned SSPCLKPPS3 : 1;
12084 unsigned SSPCLKPPS4 : 1;
12085 unsigned : 1;
12086 unsigned : 1;
12087 unsigned : 1;
12090 struct
12092 unsigned SSPCLKPPS : 5;
12093 unsigned : 3;
12095 } __SSPCLKPPSbits_t;
12097 extern __at(0x0E20) volatile __SSPCLKPPSbits_t SSPCLKPPSbits;
12099 #define _SSPCLKPPS0 0x01
12100 #define _SSPCLKPPS1 0x02
12101 #define _SSPCLKPPS2 0x04
12102 #define _SSPCLKPPS3 0x08
12103 #define _SSPCLKPPS4 0x10
12105 //==============================================================================
12108 //==============================================================================
12109 // SSPDATPPS Bits
12111 extern __at(0x0E21) __sfr SSPDATPPS;
12113 typedef union
12115 struct
12117 unsigned SSPDATPPS0 : 1;
12118 unsigned SSPDATPPS1 : 1;
12119 unsigned SSPDATPPS2 : 1;
12120 unsigned SSPDATPPS3 : 1;
12121 unsigned SSPDATPPS4 : 1;
12122 unsigned : 1;
12123 unsigned : 1;
12124 unsigned : 1;
12127 struct
12129 unsigned SSPDATPPS : 5;
12130 unsigned : 3;
12132 } __SSPDATPPSbits_t;
12134 extern __at(0x0E21) volatile __SSPDATPPSbits_t SSPDATPPSbits;
12136 #define _SSPDATPPS0 0x01
12137 #define _SSPDATPPS1 0x02
12138 #define _SSPDATPPS2 0x04
12139 #define _SSPDATPPS3 0x08
12140 #define _SSPDATPPS4 0x10
12142 //==============================================================================
12145 //==============================================================================
12146 // SSPSSPPS Bits
12148 extern __at(0x0E22) __sfr SSPSSPPS;
12150 typedef union
12152 struct
12154 unsigned SSPSSPPS0 : 1;
12155 unsigned SSPSSPPS1 : 1;
12156 unsigned SSPSSPPS2 : 1;
12157 unsigned SSPSSPPS3 : 1;
12158 unsigned SSPSSPPS4 : 1;
12159 unsigned : 1;
12160 unsigned : 1;
12161 unsigned : 1;
12164 struct
12166 unsigned SSPSSPPS : 5;
12167 unsigned : 3;
12169 } __SSPSSPPSbits_t;
12171 extern __at(0x0E22) volatile __SSPSSPPSbits_t SSPSSPPSbits;
12173 #define _SSPSSPPS0 0x01
12174 #define _SSPSSPPS1 0x02
12175 #define _SSPSSPPS2 0x04
12176 #define _SSPSSPPS3 0x08
12177 #define _SSPSSPPS4 0x10
12179 //==============================================================================
12182 //==============================================================================
12183 // ATCC2PPS Bits
12185 extern __at(0x0E23) __sfr ATCC2PPS;
12187 typedef union
12189 struct
12191 unsigned ATCC2PPS0 : 1;
12192 unsigned ATCC2PPS1 : 1;
12193 unsigned ATCC2PPS2 : 1;
12194 unsigned ATCC2PPS3 : 1;
12195 unsigned ATCC2PPS4 : 1;
12196 unsigned : 1;
12197 unsigned : 1;
12198 unsigned : 1;
12201 struct
12203 unsigned ATCC2PPS : 5;
12204 unsigned : 3;
12206 } __ATCC2PPSbits_t;
12208 extern __at(0x0E23) volatile __ATCC2PPSbits_t ATCC2PPSbits;
12210 #define _ATCC2PPS0 0x01
12211 #define _ATCC2PPS1 0x02
12212 #define _ATCC2PPS2 0x04
12213 #define _ATCC2PPS3 0x08
12214 #define _ATCC2PPS4 0x10
12216 //==============================================================================
12219 //==============================================================================
12220 // RXPPS Bits
12222 extern __at(0x0E24) __sfr RXPPS;
12224 typedef union
12226 struct
12228 unsigned RXPPS0 : 1;
12229 unsigned RXPPS1 : 1;
12230 unsigned RXPPS2 : 1;
12231 unsigned RXPPS3 : 1;
12232 unsigned RXPPS4 : 1;
12233 unsigned : 1;
12234 unsigned : 1;
12235 unsigned : 1;
12238 struct
12240 unsigned RXPPS : 5;
12241 unsigned : 3;
12243 } __RXPPSbits_t;
12245 extern __at(0x0E24) volatile __RXPPSbits_t RXPPSbits;
12247 #define _RXPPS0 0x01
12248 #define _RXPPS1 0x02
12249 #define _RXPPS2 0x04
12250 #define _RXPPS3 0x08
12251 #define _RXPPS4 0x10
12253 //==============================================================================
12256 //==============================================================================
12257 // CKPPS Bits
12259 extern __at(0x0E25) __sfr CKPPS;
12261 typedef union
12263 struct
12265 unsigned CKPPS0 : 1;
12266 unsigned CKPPS1 : 1;
12267 unsigned CKPPS2 : 1;
12268 unsigned CKPPS3 : 1;
12269 unsigned CKPPS4 : 1;
12270 unsigned : 1;
12271 unsigned : 1;
12272 unsigned : 1;
12275 struct
12277 unsigned CKPPS : 5;
12278 unsigned : 3;
12280 } __CKPPSbits_t;
12282 extern __at(0x0E25) volatile __CKPPSbits_t CKPPSbits;
12284 #define _CKPPS0 0x01
12285 #define _CKPPS1 0x02
12286 #define _CKPPS2 0x04
12287 #define _CKPPS3 0x08
12288 #define _CKPPS4 0x10
12290 //==============================================================================
12293 //==============================================================================
12294 // SMT1SIGPPS Bits
12296 extern __at(0x0E26) __sfr SMT1SIGPPS;
12298 typedef union
12300 struct
12302 unsigned SMT1SIGPPS0 : 1;
12303 unsigned SMT1SIGPPS1 : 1;
12304 unsigned SMT1SIGPPS2 : 1;
12305 unsigned SMT1SIGPPS3 : 1;
12306 unsigned SMT1SIGPPS4 : 1;
12307 unsigned : 1;
12308 unsigned : 1;
12309 unsigned : 1;
12312 struct
12314 unsigned SMT1SIGPPS : 5;
12315 unsigned : 3;
12317 } __SMT1SIGPPSbits_t;
12319 extern __at(0x0E26) volatile __SMT1SIGPPSbits_t SMT1SIGPPSbits;
12321 #define _SMT1SIGPPS0 0x01
12322 #define _SMT1SIGPPS1 0x02
12323 #define _SMT1SIGPPS2 0x04
12324 #define _SMT1SIGPPS3 0x08
12325 #define _SMT1SIGPPS4 0x10
12327 //==============================================================================
12330 //==============================================================================
12331 // SMT1WINPPS Bits
12333 extern __at(0x0E27) __sfr SMT1WINPPS;
12335 typedef union
12337 struct
12339 unsigned SMTWINPPS0 : 1;
12340 unsigned SMTWINPPS1 : 1;
12341 unsigned SMTWINPPS2 : 1;
12342 unsigned SMTWINPPS3 : 1;
12343 unsigned SMTWINPPS4 : 1;
12344 unsigned : 1;
12345 unsigned : 1;
12346 unsigned : 1;
12349 struct
12351 unsigned SMTWINPPS : 5;
12352 unsigned : 3;
12354 } __SMT1WINPPSbits_t;
12356 extern __at(0x0E27) volatile __SMT1WINPPSbits_t SMT1WINPPSbits;
12358 #define _SMTWINPPS0 0x01
12359 #define _SMTWINPPS1 0x02
12360 #define _SMTWINPPS2 0x04
12361 #define _SMTWINPPS3 0x08
12362 #define _SMTWINPPS4 0x10
12364 //==============================================================================
12367 //==============================================================================
12368 // CLCIN0PPS Bits
12370 extern __at(0x0E28) __sfr CLCIN0PPS;
12372 typedef union
12374 struct
12376 unsigned CLCIN0PPS0 : 1;
12377 unsigned CLCIN0PPS1 : 1;
12378 unsigned CLCIN0PPS2 : 1;
12379 unsigned CLCIN0PPS3 : 1;
12380 unsigned CLCIN0PPS4 : 1;
12381 unsigned : 1;
12382 unsigned : 1;
12383 unsigned : 1;
12386 struct
12388 unsigned CLCIN0PPS : 5;
12389 unsigned : 3;
12391 } __CLCIN0PPSbits_t;
12393 extern __at(0x0E28) volatile __CLCIN0PPSbits_t CLCIN0PPSbits;
12395 #define _CLCIN0PPS0 0x01
12396 #define _CLCIN0PPS1 0x02
12397 #define _CLCIN0PPS2 0x04
12398 #define _CLCIN0PPS3 0x08
12399 #define _CLCIN0PPS4 0x10
12401 //==============================================================================
12404 //==============================================================================
12405 // CLCIN1PPS Bits
12407 extern __at(0x0E29) __sfr CLCIN1PPS;
12409 typedef union
12411 struct
12413 unsigned CLCIN1PPS0 : 1;
12414 unsigned CLCIN1PPS1 : 1;
12415 unsigned CLCIN1PPS2 : 1;
12416 unsigned CLCIN1PPS3 : 1;
12417 unsigned CLCIN1PPS4 : 1;
12418 unsigned : 1;
12419 unsigned : 1;
12420 unsigned : 1;
12423 struct
12425 unsigned CLCIN1PPS : 5;
12426 unsigned : 3;
12428 } __CLCIN1PPSbits_t;
12430 extern __at(0x0E29) volatile __CLCIN1PPSbits_t CLCIN1PPSbits;
12432 #define _CLCIN1PPS0 0x01
12433 #define _CLCIN1PPS1 0x02
12434 #define _CLCIN1PPS2 0x04
12435 #define _CLCIN1PPS3 0x08
12436 #define _CLCIN1PPS4 0x10
12438 //==============================================================================
12441 //==============================================================================
12442 // CLCIN2PPS Bits
12444 extern __at(0x0E2A) __sfr CLCIN2PPS;
12446 typedef union
12448 struct
12450 unsigned CLCIN2PPS0 : 1;
12451 unsigned CLCIN2PPS1 : 1;
12452 unsigned CLCIN2PPS2 : 1;
12453 unsigned CLCIN2PPS3 : 1;
12454 unsigned CLCIN2PPS4 : 1;
12455 unsigned : 1;
12456 unsigned : 1;
12457 unsigned : 1;
12460 struct
12462 unsigned CLCIN2PPS : 5;
12463 unsigned : 3;
12465 } __CLCIN2PPSbits_t;
12467 extern __at(0x0E2A) volatile __CLCIN2PPSbits_t CLCIN2PPSbits;
12469 #define _CLCIN2PPS0 0x01
12470 #define _CLCIN2PPS1 0x02
12471 #define _CLCIN2PPS2 0x04
12472 #define _CLCIN2PPS3 0x08
12473 #define _CLCIN2PPS4 0x10
12475 //==============================================================================
12478 //==============================================================================
12479 // CLCIN3PPS Bits
12481 extern __at(0x0E2B) __sfr CLCIN3PPS;
12483 typedef union
12485 struct
12487 unsigned CLCIN3PPS0 : 1;
12488 unsigned CLCIN3PPS1 : 1;
12489 unsigned CLCIN3PPS2 : 1;
12490 unsigned CLCIN3PPS3 : 1;
12491 unsigned CLCIN3PPS4 : 1;
12492 unsigned : 1;
12493 unsigned : 1;
12494 unsigned : 1;
12497 struct
12499 unsigned CLCIN3PPS : 5;
12500 unsigned : 3;
12502 } __CLCIN3PPSbits_t;
12504 extern __at(0x0E2B) volatile __CLCIN3PPSbits_t CLCIN3PPSbits;
12506 #define _CLCIN3PPS0 0x01
12507 #define _CLCIN3PPS1 0x02
12508 #define _CLCIN3PPS2 0x04
12509 #define _CLCIN3PPS3 0x08
12510 #define _CLCIN3PPS4 0x10
12512 //==============================================================================
12515 //==============================================================================
12516 // SMT2SIGPPS Bits
12518 extern __at(0x0E2C) __sfr SMT2SIGPPS;
12520 typedef union
12522 struct
12524 unsigned SMT2SIGPPS0 : 1;
12525 unsigned SMT2SIGPPS1 : 1;
12526 unsigned SMT2SIGPPS2 : 1;
12527 unsigned SMT2SIGPPS3 : 1;
12528 unsigned SMT2SIGPPS4 : 1;
12529 unsigned : 1;
12530 unsigned : 1;
12531 unsigned : 1;
12534 struct
12536 unsigned SMT2SIGPPS : 5;
12537 unsigned : 3;
12539 } __SMT2SIGPPSbits_t;
12541 extern __at(0x0E2C) volatile __SMT2SIGPPSbits_t SMT2SIGPPSbits;
12543 #define _SMT2SIGPPS0 0x01
12544 #define _SMT2SIGPPS1 0x02
12545 #define _SMT2SIGPPS2 0x04
12546 #define _SMT2SIGPPS3 0x08
12547 #define _SMT2SIGPPS4 0x10
12549 //==============================================================================
12552 //==============================================================================
12553 // SMT2WINPPS Bits
12555 extern __at(0x0E2D) __sfr SMT2WINPPS;
12557 typedef union
12559 struct
12561 unsigned SMT2WINPPS0 : 1;
12562 unsigned SMT2WINPPS1 : 1;
12563 unsigned SMT2WINPPS2 : 1;
12564 unsigned SMT2WINPPS3 : 1;
12565 unsigned SMT2WINPPS4 : 1;
12566 unsigned : 1;
12567 unsigned : 1;
12568 unsigned : 1;
12571 struct
12573 unsigned SMT2WINPPS : 5;
12574 unsigned : 3;
12576 } __SMT2WINPPSbits_t;
12578 extern __at(0x0E2D) volatile __SMT2WINPPSbits_t SMT2WINPPSbits;
12580 #define _SMT2WINPPS0 0x01
12581 #define _SMT2WINPPS1 0x02
12582 #define _SMT2WINPPS2 0x04
12583 #define _SMT2WINPPS3 0x08
12584 #define _SMT2WINPPS4 0x10
12586 //==============================================================================
12589 //==============================================================================
12590 // ATCC3PPS Bits
12592 extern __at(0x0E2E) __sfr ATCC3PPS;
12594 typedef union
12596 struct
12598 unsigned ATCC3PPS0 : 1;
12599 unsigned ATCC3PPS1 : 1;
12600 unsigned ATCC3PPS2 : 1;
12601 unsigned ATCC3PPS3 : 1;
12602 unsigned ATCC3PPS4 : 1;
12603 unsigned : 1;
12604 unsigned : 1;
12605 unsigned : 1;
12608 struct
12610 unsigned ATCC3PPS : 5;
12611 unsigned : 3;
12613 } __ATCC3PPSbits_t;
12615 extern __at(0x0E2E) volatile __ATCC3PPSbits_t ATCC3PPSbits;
12617 #define _ATCC3PPS0 0x01
12618 #define _ATCC3PPS1 0x02
12619 #define _ATCC3PPS2 0x04
12620 #define _ATCC3PPS3 0x08
12621 #define _ATCC3PPS4 0x10
12623 //==============================================================================
12626 //==============================================================================
12627 // RA0PPS Bits
12629 extern __at(0x0E90) __sfr RA0PPS;
12631 typedef union
12633 struct
12635 unsigned RA0PPS0 : 1;
12636 unsigned RA0PPS1 : 1;
12637 unsigned RA0PPS2 : 1;
12638 unsigned RA0PPS3 : 1;
12639 unsigned RA0PPS4 : 1;
12640 unsigned : 1;
12641 unsigned : 1;
12642 unsigned : 1;
12645 struct
12647 unsigned RA0PPS : 5;
12648 unsigned : 3;
12650 } __RA0PPSbits_t;
12652 extern __at(0x0E90) volatile __RA0PPSbits_t RA0PPSbits;
12654 #define _RA0PPS0 0x01
12655 #define _RA0PPS1 0x02
12656 #define _RA0PPS2 0x04
12657 #define _RA0PPS3 0x08
12658 #define _RA0PPS4 0x10
12660 //==============================================================================
12663 //==============================================================================
12664 // RA1PPS Bits
12666 extern __at(0x0E91) __sfr RA1PPS;
12668 typedef union
12670 struct
12672 unsigned RA1PPS0 : 1;
12673 unsigned RA1PPS1 : 1;
12674 unsigned RA1PPS2 : 1;
12675 unsigned RA1PPS3 : 1;
12676 unsigned RA1PPS4 : 1;
12677 unsigned : 1;
12678 unsigned : 1;
12679 unsigned : 1;
12682 struct
12684 unsigned RA1PPS : 5;
12685 unsigned : 3;
12687 } __RA1PPSbits_t;
12689 extern __at(0x0E91) volatile __RA1PPSbits_t RA1PPSbits;
12691 #define _RA1PPS0 0x01
12692 #define _RA1PPS1 0x02
12693 #define _RA1PPS2 0x04
12694 #define _RA1PPS3 0x08
12695 #define _RA1PPS4 0x10
12697 //==============================================================================
12700 //==============================================================================
12701 // RA2PPS Bits
12703 extern __at(0x0E92) __sfr RA2PPS;
12705 typedef union
12707 struct
12709 unsigned RA2PPS0 : 1;
12710 unsigned RA2PPS1 : 1;
12711 unsigned RA2PPS2 : 1;
12712 unsigned RA2PPS3 : 1;
12713 unsigned RA2PPS4 : 1;
12714 unsigned : 1;
12715 unsigned : 1;
12716 unsigned : 1;
12719 struct
12721 unsigned RA2PPS : 5;
12722 unsigned : 3;
12724 } __RA2PPSbits_t;
12726 extern __at(0x0E92) volatile __RA2PPSbits_t RA2PPSbits;
12728 #define _RA2PPS0 0x01
12729 #define _RA2PPS1 0x02
12730 #define _RA2PPS2 0x04
12731 #define _RA2PPS3 0x08
12732 #define _RA2PPS4 0x10
12734 //==============================================================================
12737 //==============================================================================
12738 // RA4PPS Bits
12740 extern __at(0x0E94) __sfr RA4PPS;
12742 typedef union
12744 struct
12746 unsigned RA4PPS0 : 1;
12747 unsigned RA4PPS1 : 1;
12748 unsigned RA4PPS2 : 1;
12749 unsigned RA4PPS3 : 1;
12750 unsigned RA4PPS4 : 1;
12751 unsigned : 1;
12752 unsigned : 1;
12753 unsigned : 1;
12756 struct
12758 unsigned RA4PPS : 5;
12759 unsigned : 3;
12761 } __RA4PPSbits_t;
12763 extern __at(0x0E94) volatile __RA4PPSbits_t RA4PPSbits;
12765 #define _RA4PPS0 0x01
12766 #define _RA4PPS1 0x02
12767 #define _RA4PPS2 0x04
12768 #define _RA4PPS3 0x08
12769 #define _RA4PPS4 0x10
12771 //==============================================================================
12774 //==============================================================================
12775 // RA5PPS Bits
12777 extern __at(0x0E95) __sfr RA5PPS;
12779 typedef union
12781 struct
12783 unsigned RA5PPS0 : 1;
12784 unsigned RA5PPS1 : 1;
12785 unsigned RA5PPS2 : 1;
12786 unsigned RA5PPS3 : 1;
12787 unsigned RA5PPS4 : 1;
12788 unsigned : 1;
12789 unsigned : 1;
12790 unsigned : 1;
12793 struct
12795 unsigned RA5PPS : 5;
12796 unsigned : 3;
12798 } __RA5PPSbits_t;
12800 extern __at(0x0E95) volatile __RA5PPSbits_t RA5PPSbits;
12802 #define _RA5PPS0 0x01
12803 #define _RA5PPS1 0x02
12804 #define _RA5PPS2 0x04
12805 #define _RA5PPS3 0x08
12806 #define _RA5PPS4 0x10
12808 //==============================================================================
12811 //==============================================================================
12812 // RC0PPS Bits
12814 extern __at(0x0EA0) __sfr RC0PPS;
12816 typedef union
12818 struct
12820 unsigned RC0PPS0 : 1;
12821 unsigned RC0PPS1 : 1;
12822 unsigned RC0PPS2 : 1;
12823 unsigned RC0PPS3 : 1;
12824 unsigned RC0PPS4 : 1;
12825 unsigned : 1;
12826 unsigned : 1;
12827 unsigned : 1;
12830 struct
12832 unsigned RC0PPS : 5;
12833 unsigned : 3;
12835 } __RC0PPSbits_t;
12837 extern __at(0x0EA0) volatile __RC0PPSbits_t RC0PPSbits;
12839 #define _RC0PPS0 0x01
12840 #define _RC0PPS1 0x02
12841 #define _RC0PPS2 0x04
12842 #define _RC0PPS3 0x08
12843 #define _RC0PPS4 0x10
12845 //==============================================================================
12848 //==============================================================================
12849 // RC1PPS Bits
12851 extern __at(0x0EA1) __sfr RC1PPS;
12853 typedef union
12855 struct
12857 unsigned RC1PPS0 : 1;
12858 unsigned RC1PPS1 : 1;
12859 unsigned RC1PPS2 : 1;
12860 unsigned RC1PPS3 : 1;
12861 unsigned RC1PPS4 : 1;
12862 unsigned : 1;
12863 unsigned : 1;
12864 unsigned : 1;
12867 struct
12869 unsigned RC1PPS : 5;
12870 unsigned : 3;
12872 } __RC1PPSbits_t;
12874 extern __at(0x0EA1) volatile __RC1PPSbits_t RC1PPSbits;
12876 #define _RC1PPS0 0x01
12877 #define _RC1PPS1 0x02
12878 #define _RC1PPS2 0x04
12879 #define _RC1PPS3 0x08
12880 #define _RC1PPS4 0x10
12882 //==============================================================================
12885 //==============================================================================
12886 // RC2PPS Bits
12888 extern __at(0x0EA2) __sfr RC2PPS;
12890 typedef union
12892 struct
12894 unsigned RC2PPS0 : 1;
12895 unsigned RC2PPS1 : 1;
12896 unsigned RC2PPS2 : 1;
12897 unsigned RC2PPS3 : 1;
12898 unsigned RC2PPS4 : 1;
12899 unsigned : 1;
12900 unsigned : 1;
12901 unsigned : 1;
12904 struct
12906 unsigned RC2PPS : 5;
12907 unsigned : 3;
12909 } __RC2PPSbits_t;
12911 extern __at(0x0EA2) volatile __RC2PPSbits_t RC2PPSbits;
12913 #define _RC2PPS0 0x01
12914 #define _RC2PPS1 0x02
12915 #define _RC2PPS2 0x04
12916 #define _RC2PPS3 0x08
12917 #define _RC2PPS4 0x10
12919 //==============================================================================
12922 //==============================================================================
12923 // RC3PPS Bits
12925 extern __at(0x0EA3) __sfr RC3PPS;
12927 typedef union
12929 struct
12931 unsigned RC3PPS0 : 1;
12932 unsigned RC3PPS1 : 1;
12933 unsigned RC3PPS2 : 1;
12934 unsigned RC3PPS3 : 1;
12935 unsigned RC3PPS4 : 1;
12936 unsigned : 1;
12937 unsigned : 1;
12938 unsigned : 1;
12941 struct
12943 unsigned RC3PPS : 5;
12944 unsigned : 3;
12946 } __RC3PPSbits_t;
12948 extern __at(0x0EA3) volatile __RC3PPSbits_t RC3PPSbits;
12950 #define _RC3PPS0 0x01
12951 #define _RC3PPS1 0x02
12952 #define _RC3PPS2 0x04
12953 #define _RC3PPS3 0x08
12954 #define _RC3PPS4 0x10
12956 //==============================================================================
12959 //==============================================================================
12960 // RC4PPS Bits
12962 extern __at(0x0EA4) __sfr RC4PPS;
12964 typedef union
12966 struct
12968 unsigned RC4PPS0 : 1;
12969 unsigned RC4PPS1 : 1;
12970 unsigned RC4PPS2 : 1;
12971 unsigned RC4PPS3 : 1;
12972 unsigned RC4PPS4 : 1;
12973 unsigned : 1;
12974 unsigned : 1;
12975 unsigned : 1;
12978 struct
12980 unsigned RC4PPS : 5;
12981 unsigned : 3;
12983 } __RC4PPSbits_t;
12985 extern __at(0x0EA4) volatile __RC4PPSbits_t RC4PPSbits;
12987 #define _RC4PPS0 0x01
12988 #define _RC4PPS1 0x02
12989 #define _RC4PPS2 0x04
12990 #define _RC4PPS3 0x08
12991 #define _RC4PPS4 0x10
12993 //==============================================================================
12996 //==============================================================================
12997 // RC5PPS Bits
12999 extern __at(0x0EA5) __sfr RC5PPS;
13001 typedef union
13003 struct
13005 unsigned RC5PPS0 : 1;
13006 unsigned RC5PPS1 : 1;
13007 unsigned RC5PPS2 : 1;
13008 unsigned RC5PPS3 : 1;
13009 unsigned RC5PPS4 : 1;
13010 unsigned : 1;
13011 unsigned : 1;
13012 unsigned : 1;
13015 struct
13017 unsigned RC5PPS : 5;
13018 unsigned : 3;
13020 } __RC5PPSbits_t;
13022 extern __at(0x0EA5) volatile __RC5PPSbits_t RC5PPSbits;
13024 #define _RC5PPS0 0x01
13025 #define _RC5PPS1 0x02
13026 #define _RC5PPS2 0x04
13027 #define _RC5PPS3 0x08
13028 #define _RC5PPS4 0x10
13030 //==============================================================================
13033 //==============================================================================
13034 // CLCDATA Bits
13036 extern __at(0x0F0F) __sfr CLCDATA;
13038 typedef struct
13040 unsigned MLC1OUT : 1;
13041 unsigned MLC2OUT : 1;
13042 unsigned MLC3OUT : 1;
13043 unsigned MLC4OUT : 1;
13044 unsigned : 1;
13045 unsigned : 1;
13046 unsigned : 1;
13047 unsigned : 1;
13048 } __CLCDATAbits_t;
13050 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
13052 #define _MLC1OUT 0x01
13053 #define _MLC2OUT 0x02
13054 #define _MLC3OUT 0x04
13055 #define _MLC4OUT 0x08
13057 //==============================================================================
13060 //==============================================================================
13061 // CLC1CON Bits
13063 extern __at(0x0F10) __sfr CLC1CON;
13065 typedef union
13067 struct
13069 unsigned LC1MODE0 : 1;
13070 unsigned LC1MODE1 : 1;
13071 unsigned LC1MODE2 : 1;
13072 unsigned LC1INTN : 1;
13073 unsigned LC1INTP : 1;
13074 unsigned LC1OUT : 1;
13075 unsigned : 1;
13076 unsigned LC1EN : 1;
13079 struct
13081 unsigned MODE0 : 1;
13082 unsigned MODE1 : 1;
13083 unsigned MODE2 : 1;
13084 unsigned INTN : 1;
13085 unsigned INTP : 1;
13086 unsigned OUT : 1;
13087 unsigned : 1;
13088 unsigned EN : 1;
13091 struct
13093 unsigned MODE : 3;
13094 unsigned : 5;
13097 struct
13099 unsigned LC1MODE : 3;
13100 unsigned : 5;
13102 } __CLC1CONbits_t;
13104 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
13106 #define _CLC1CON_LC1MODE0 0x01
13107 #define _CLC1CON_MODE0 0x01
13108 #define _CLC1CON_LC1MODE1 0x02
13109 #define _CLC1CON_MODE1 0x02
13110 #define _CLC1CON_LC1MODE2 0x04
13111 #define _CLC1CON_MODE2 0x04
13112 #define _CLC1CON_LC1INTN 0x08
13113 #define _CLC1CON_INTN 0x08
13114 #define _CLC1CON_LC1INTP 0x10
13115 #define _CLC1CON_INTP 0x10
13116 #define _CLC1CON_LC1OUT 0x20
13117 #define _CLC1CON_OUT 0x20
13118 #define _CLC1CON_LC1EN 0x80
13119 #define _CLC1CON_EN 0x80
13121 //==============================================================================
13124 //==============================================================================
13125 // CLC1POL Bits
13127 extern __at(0x0F11) __sfr CLC1POL;
13129 typedef union
13131 struct
13133 unsigned LC1G1POL : 1;
13134 unsigned LC1G2POL : 1;
13135 unsigned LC1G3POL : 1;
13136 unsigned LC1G4POL : 1;
13137 unsigned : 1;
13138 unsigned : 1;
13139 unsigned : 1;
13140 unsigned LC1POL : 1;
13143 struct
13145 unsigned G1POL : 1;
13146 unsigned G2POL : 1;
13147 unsigned G3POL : 1;
13148 unsigned G4POL : 1;
13149 unsigned : 1;
13150 unsigned : 1;
13151 unsigned : 1;
13152 unsigned POL : 1;
13154 } __CLC1POLbits_t;
13156 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
13158 #define _CLC1POL_LC1G1POL 0x01
13159 #define _CLC1POL_G1POL 0x01
13160 #define _CLC1POL_LC1G2POL 0x02
13161 #define _CLC1POL_G2POL 0x02
13162 #define _CLC1POL_LC1G3POL 0x04
13163 #define _CLC1POL_G3POL 0x04
13164 #define _CLC1POL_LC1G4POL 0x08
13165 #define _CLC1POL_G4POL 0x08
13166 #define _CLC1POL_LC1POL 0x80
13167 #define _CLC1POL_POL 0x80
13169 //==============================================================================
13172 //==============================================================================
13173 // CLC1SEL0 Bits
13175 extern __at(0x0F12) __sfr CLC1SEL0;
13177 typedef union
13179 struct
13181 unsigned LC1D1S0 : 1;
13182 unsigned LC1D1S1 : 1;
13183 unsigned LC1D1S2 : 1;
13184 unsigned LC1D1S3 : 1;
13185 unsigned LC1D1S4 : 1;
13186 unsigned LC1D1S5 : 1;
13187 unsigned : 1;
13188 unsigned : 1;
13191 struct
13193 unsigned D1S0 : 1;
13194 unsigned D1S1 : 1;
13195 unsigned D1S2 : 1;
13196 unsigned D1S3 : 1;
13197 unsigned D1S4 : 1;
13198 unsigned D1S5 : 1;
13199 unsigned : 1;
13200 unsigned : 1;
13203 struct
13205 unsigned LC1D1S : 6;
13206 unsigned : 2;
13209 struct
13211 unsigned D1S : 6;
13212 unsigned : 2;
13214 } __CLC1SEL0bits_t;
13216 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
13218 #define _LC1D1S0 0x01
13219 #define _D1S0 0x01
13220 #define _LC1D1S1 0x02
13221 #define _D1S1 0x02
13222 #define _LC1D1S2 0x04
13223 #define _D1S2 0x04
13224 #define _LC1D1S3 0x08
13225 #define _D1S3 0x08
13226 #define _LC1D1S4 0x10
13227 #define _D1S4 0x10
13228 #define _LC1D1S5 0x20
13229 #define _D1S5 0x20
13231 //==============================================================================
13234 //==============================================================================
13235 // CLC1SEL1 Bits
13237 extern __at(0x0F13) __sfr CLC1SEL1;
13239 typedef union
13241 struct
13243 unsigned LC1D2S0 : 1;
13244 unsigned LC1D2S1 : 1;
13245 unsigned LC1D2S2 : 1;
13246 unsigned LC1D2S3 : 1;
13247 unsigned LC1D2S4 : 1;
13248 unsigned LC1D2S5 : 1;
13249 unsigned : 1;
13250 unsigned : 1;
13253 struct
13255 unsigned D2S0 : 1;
13256 unsigned D2S1 : 1;
13257 unsigned D2S2 : 1;
13258 unsigned D2S3 : 1;
13259 unsigned D2S4 : 1;
13260 unsigned D2S5 : 1;
13261 unsigned : 1;
13262 unsigned : 1;
13265 struct
13267 unsigned D2S : 6;
13268 unsigned : 2;
13271 struct
13273 unsigned LC1D2S : 6;
13274 unsigned : 2;
13276 } __CLC1SEL1bits_t;
13278 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
13280 #define _LC1D2S0 0x01
13281 #define _D2S0 0x01
13282 #define _LC1D2S1 0x02
13283 #define _D2S1 0x02
13284 #define _LC1D2S2 0x04
13285 #define _D2S2 0x04
13286 #define _LC1D2S3 0x08
13287 #define _D2S3 0x08
13288 #define _LC1D2S4 0x10
13289 #define _D2S4 0x10
13290 #define _LC1D2S5 0x20
13291 #define _D2S5 0x20
13293 //==============================================================================
13296 //==============================================================================
13297 // CLC1SEL2 Bits
13299 extern __at(0x0F14) __sfr CLC1SEL2;
13301 typedef union
13303 struct
13305 unsigned LC1D3S0 : 1;
13306 unsigned LC1D3S1 : 1;
13307 unsigned LC1D3S2 : 1;
13308 unsigned LC1D3S3 : 1;
13309 unsigned LC1D3S4 : 1;
13310 unsigned LC1D3S5 : 1;
13311 unsigned : 1;
13312 unsigned : 1;
13315 struct
13317 unsigned D3S0 : 1;
13318 unsigned D3S1 : 1;
13319 unsigned D3S2 : 1;
13320 unsigned D3S3 : 1;
13321 unsigned D3S4 : 1;
13322 unsigned D3S5 : 1;
13323 unsigned : 1;
13324 unsigned : 1;
13327 struct
13329 unsigned LC1D3S : 6;
13330 unsigned : 2;
13333 struct
13335 unsigned D3S : 6;
13336 unsigned : 2;
13338 } __CLC1SEL2bits_t;
13340 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
13342 #define _LC1D3S0 0x01
13343 #define _D3S0 0x01
13344 #define _LC1D3S1 0x02
13345 #define _D3S1 0x02
13346 #define _LC1D3S2 0x04
13347 #define _D3S2 0x04
13348 #define _LC1D3S3 0x08
13349 #define _D3S3 0x08
13350 #define _LC1D3S4 0x10
13351 #define _D3S4 0x10
13352 #define _LC1D3S5 0x20
13353 #define _D3S5 0x20
13355 //==============================================================================
13358 //==============================================================================
13359 // CLC1SEL3 Bits
13361 extern __at(0x0F15) __sfr CLC1SEL3;
13363 typedef union
13365 struct
13367 unsigned LC1D4S0 : 1;
13368 unsigned LC1D4S1 : 1;
13369 unsigned LC1D4S2 : 1;
13370 unsigned LC1D4S3 : 1;
13371 unsigned LC1D4S4 : 1;
13372 unsigned LC1D4S5 : 1;
13373 unsigned : 1;
13374 unsigned : 1;
13377 struct
13379 unsigned D4S0 : 1;
13380 unsigned D4S1 : 1;
13381 unsigned D4S2 : 1;
13382 unsigned D4S3 : 1;
13383 unsigned D4S4 : 1;
13384 unsigned D4S5 : 1;
13385 unsigned : 1;
13386 unsigned : 1;
13389 struct
13391 unsigned D4S : 6;
13392 unsigned : 2;
13395 struct
13397 unsigned LC1D4S : 6;
13398 unsigned : 2;
13400 } __CLC1SEL3bits_t;
13402 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
13404 #define _LC1D4S0 0x01
13405 #define _D4S0 0x01
13406 #define _LC1D4S1 0x02
13407 #define _D4S1 0x02
13408 #define _LC1D4S2 0x04
13409 #define _D4S2 0x04
13410 #define _LC1D4S3 0x08
13411 #define _D4S3 0x08
13412 #define _LC1D4S4 0x10
13413 #define _D4S4 0x10
13414 #define _LC1D4S5 0x20
13415 #define _D4S5 0x20
13417 //==============================================================================
13420 //==============================================================================
13421 // CLC1GLS0 Bits
13423 extern __at(0x0F16) __sfr CLC1GLS0;
13425 typedef union
13427 struct
13429 unsigned LC1G1D1N : 1;
13430 unsigned LC1G1D1T : 1;
13431 unsigned LC1G1D2N : 1;
13432 unsigned LC1G1D2T : 1;
13433 unsigned LC1G1D3N : 1;
13434 unsigned LC1G1D3T : 1;
13435 unsigned LC1G1D4N : 1;
13436 unsigned LC1G1D4T : 1;
13439 struct
13441 unsigned D1N : 1;
13442 unsigned D1T : 1;
13443 unsigned D2N : 1;
13444 unsigned D2T : 1;
13445 unsigned D3N : 1;
13446 unsigned D3T : 1;
13447 unsigned D4N : 1;
13448 unsigned D4T : 1;
13450 } __CLC1GLS0bits_t;
13452 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
13454 #define _LC1G1D1N 0x01
13455 #define _D1N 0x01
13456 #define _LC1G1D1T 0x02
13457 #define _D1T 0x02
13458 #define _LC1G1D2N 0x04
13459 #define _D2N 0x04
13460 #define _LC1G1D2T 0x08
13461 #define _D2T 0x08
13462 #define _LC1G1D3N 0x10
13463 #define _D3N 0x10
13464 #define _LC1G1D3T 0x20
13465 #define _D3T 0x20
13466 #define _LC1G1D4N 0x40
13467 #define _D4N 0x40
13468 #define _LC1G1D4T 0x80
13469 #define _D4T 0x80
13471 //==============================================================================
13474 //==============================================================================
13475 // CLC1GLS1 Bits
13477 extern __at(0x0F17) __sfr CLC1GLS1;
13479 typedef union
13481 struct
13483 unsigned LC1G2D1N : 1;
13484 unsigned LC1G2D1T : 1;
13485 unsigned LC1G2D2N : 1;
13486 unsigned LC1G2D2T : 1;
13487 unsigned LC1G2D3N : 1;
13488 unsigned LC1G2D3T : 1;
13489 unsigned LC1G2D4N : 1;
13490 unsigned LC1G2D4T : 1;
13493 struct
13495 unsigned D1N : 1;
13496 unsigned D1T : 1;
13497 unsigned D2N : 1;
13498 unsigned D2T : 1;
13499 unsigned D3N : 1;
13500 unsigned D3T : 1;
13501 unsigned D4N : 1;
13502 unsigned D4T : 1;
13504 } __CLC1GLS1bits_t;
13506 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
13508 #define _CLC1GLS1_LC1G2D1N 0x01
13509 #define _CLC1GLS1_D1N 0x01
13510 #define _CLC1GLS1_LC1G2D1T 0x02
13511 #define _CLC1GLS1_D1T 0x02
13512 #define _CLC1GLS1_LC1G2D2N 0x04
13513 #define _CLC1GLS1_D2N 0x04
13514 #define _CLC1GLS1_LC1G2D2T 0x08
13515 #define _CLC1GLS1_D2T 0x08
13516 #define _CLC1GLS1_LC1G2D3N 0x10
13517 #define _CLC1GLS1_D3N 0x10
13518 #define _CLC1GLS1_LC1G2D3T 0x20
13519 #define _CLC1GLS1_D3T 0x20
13520 #define _CLC1GLS1_LC1G2D4N 0x40
13521 #define _CLC1GLS1_D4N 0x40
13522 #define _CLC1GLS1_LC1G2D4T 0x80
13523 #define _CLC1GLS1_D4T 0x80
13525 //==============================================================================
13528 //==============================================================================
13529 // CLC1GLS2 Bits
13531 extern __at(0x0F18) __sfr CLC1GLS2;
13533 typedef union
13535 struct
13537 unsigned LC1G3D1N : 1;
13538 unsigned LC1G3D1T : 1;
13539 unsigned LC1G3D2N : 1;
13540 unsigned LC1G3D2T : 1;
13541 unsigned LC1G3D3N : 1;
13542 unsigned LC1G3D3T : 1;
13543 unsigned LC1G3D4N : 1;
13544 unsigned LC1G3D4T : 1;
13547 struct
13549 unsigned D1N : 1;
13550 unsigned D1T : 1;
13551 unsigned D2N : 1;
13552 unsigned D2T : 1;
13553 unsigned D3N : 1;
13554 unsigned D3T : 1;
13555 unsigned D4N : 1;
13556 unsigned D4T : 1;
13558 } __CLC1GLS2bits_t;
13560 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
13562 #define _CLC1GLS2_LC1G3D1N 0x01
13563 #define _CLC1GLS2_D1N 0x01
13564 #define _CLC1GLS2_LC1G3D1T 0x02
13565 #define _CLC1GLS2_D1T 0x02
13566 #define _CLC1GLS2_LC1G3D2N 0x04
13567 #define _CLC1GLS2_D2N 0x04
13568 #define _CLC1GLS2_LC1G3D2T 0x08
13569 #define _CLC1GLS2_D2T 0x08
13570 #define _CLC1GLS2_LC1G3D3N 0x10
13571 #define _CLC1GLS2_D3N 0x10
13572 #define _CLC1GLS2_LC1G3D3T 0x20
13573 #define _CLC1GLS2_D3T 0x20
13574 #define _CLC1GLS2_LC1G3D4N 0x40
13575 #define _CLC1GLS2_D4N 0x40
13576 #define _CLC1GLS2_LC1G3D4T 0x80
13577 #define _CLC1GLS2_D4T 0x80
13579 //==============================================================================
13582 //==============================================================================
13583 // CLC1GLS3 Bits
13585 extern __at(0x0F19) __sfr CLC1GLS3;
13587 typedef union
13589 struct
13591 unsigned LC1G4D1N : 1;
13592 unsigned LC1G4D1T : 1;
13593 unsigned LC1G4D2N : 1;
13594 unsigned LC1G4D2T : 1;
13595 unsigned LC1G4D3N : 1;
13596 unsigned LC1G4D3T : 1;
13597 unsigned LC1G4D4N : 1;
13598 unsigned LC1G4D4T : 1;
13601 struct
13603 unsigned G4D1N : 1;
13604 unsigned G4D1T : 1;
13605 unsigned G4D2N : 1;
13606 unsigned G4D2T : 1;
13607 unsigned G4D3N : 1;
13608 unsigned G4D3T : 1;
13609 unsigned G4D4N : 1;
13610 unsigned G4D4T : 1;
13612 } __CLC1GLS3bits_t;
13614 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
13616 #define _LC1G4D1N 0x01
13617 #define _G4D1N 0x01
13618 #define _LC1G4D1T 0x02
13619 #define _G4D1T 0x02
13620 #define _LC1G4D2N 0x04
13621 #define _G4D2N 0x04
13622 #define _LC1G4D2T 0x08
13623 #define _G4D2T 0x08
13624 #define _LC1G4D3N 0x10
13625 #define _G4D3N 0x10
13626 #define _LC1G4D3T 0x20
13627 #define _G4D3T 0x20
13628 #define _LC1G4D4N 0x40
13629 #define _G4D4N 0x40
13630 #define _LC1G4D4T 0x80
13631 #define _G4D4T 0x80
13633 //==============================================================================
13636 //==============================================================================
13637 // CLC2CON Bits
13639 extern __at(0x0F1A) __sfr CLC2CON;
13641 typedef union
13643 struct
13645 unsigned LC2MODE0 : 1;
13646 unsigned LC2MODE1 : 1;
13647 unsigned LC2MODE2 : 1;
13648 unsigned LC2INTN : 1;
13649 unsigned LC2INTP : 1;
13650 unsigned LC2OUT : 1;
13651 unsigned : 1;
13652 unsigned LC2EN : 1;
13655 struct
13657 unsigned MODE0 : 1;
13658 unsigned MODE1 : 1;
13659 unsigned MODE2 : 1;
13660 unsigned INTN : 1;
13661 unsigned INTP : 1;
13662 unsigned OUT : 1;
13663 unsigned : 1;
13664 unsigned EN : 1;
13667 struct
13669 unsigned MODE : 3;
13670 unsigned : 5;
13673 struct
13675 unsigned LC2MODE : 3;
13676 unsigned : 5;
13678 } __CLC2CONbits_t;
13680 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
13682 #define _CLC2CON_LC2MODE0 0x01
13683 #define _CLC2CON_MODE0 0x01
13684 #define _CLC2CON_LC2MODE1 0x02
13685 #define _CLC2CON_MODE1 0x02
13686 #define _CLC2CON_LC2MODE2 0x04
13687 #define _CLC2CON_MODE2 0x04
13688 #define _CLC2CON_LC2INTN 0x08
13689 #define _CLC2CON_INTN 0x08
13690 #define _CLC2CON_LC2INTP 0x10
13691 #define _CLC2CON_INTP 0x10
13692 #define _CLC2CON_LC2OUT 0x20
13693 #define _CLC2CON_OUT 0x20
13694 #define _CLC2CON_LC2EN 0x80
13695 #define _CLC2CON_EN 0x80
13697 //==============================================================================
13700 //==============================================================================
13701 // CLC2POL Bits
13703 extern __at(0x0F1B) __sfr CLC2POL;
13705 typedef union
13707 struct
13709 unsigned LC2G1POL : 1;
13710 unsigned LC2G2POL : 1;
13711 unsigned LC2G3POL : 1;
13712 unsigned LC2G4POL : 1;
13713 unsigned : 1;
13714 unsigned : 1;
13715 unsigned : 1;
13716 unsigned LC2POL : 1;
13719 struct
13721 unsigned G1POL : 1;
13722 unsigned G2POL : 1;
13723 unsigned G3POL : 1;
13724 unsigned G4POL : 1;
13725 unsigned : 1;
13726 unsigned : 1;
13727 unsigned : 1;
13728 unsigned POL : 1;
13730 } __CLC2POLbits_t;
13732 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
13734 #define _CLC2POL_LC2G1POL 0x01
13735 #define _CLC2POL_G1POL 0x01
13736 #define _CLC2POL_LC2G2POL 0x02
13737 #define _CLC2POL_G2POL 0x02
13738 #define _CLC2POL_LC2G3POL 0x04
13739 #define _CLC2POL_G3POL 0x04
13740 #define _CLC2POL_LC2G4POL 0x08
13741 #define _CLC2POL_G4POL 0x08
13742 #define _CLC2POL_LC2POL 0x80
13743 #define _CLC2POL_POL 0x80
13745 //==============================================================================
13748 //==============================================================================
13749 // CLC2SEL0 Bits
13751 extern __at(0x0F1C) __sfr CLC2SEL0;
13753 typedef union
13755 struct
13757 unsigned LC2D1S0 : 1;
13758 unsigned LC2D1S1 : 1;
13759 unsigned LC2D1S2 : 1;
13760 unsigned LC2D1S3 : 1;
13761 unsigned LC2D1S4 : 1;
13762 unsigned LC2D1S5 : 1;
13763 unsigned : 1;
13764 unsigned : 1;
13767 struct
13769 unsigned D1S0 : 1;
13770 unsigned D1S1 : 1;
13771 unsigned D1S2 : 1;
13772 unsigned D1S3 : 1;
13773 unsigned D1S4 : 1;
13774 unsigned D1S5 : 1;
13775 unsigned : 1;
13776 unsigned : 1;
13779 struct
13781 unsigned LC2D1S : 6;
13782 unsigned : 2;
13785 struct
13787 unsigned D1S : 6;
13788 unsigned : 2;
13790 } __CLC2SEL0bits_t;
13792 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
13794 #define _CLC2SEL0_LC2D1S0 0x01
13795 #define _CLC2SEL0_D1S0 0x01
13796 #define _CLC2SEL0_LC2D1S1 0x02
13797 #define _CLC2SEL0_D1S1 0x02
13798 #define _CLC2SEL0_LC2D1S2 0x04
13799 #define _CLC2SEL0_D1S2 0x04
13800 #define _CLC2SEL0_LC2D1S3 0x08
13801 #define _CLC2SEL0_D1S3 0x08
13802 #define _CLC2SEL0_LC2D1S4 0x10
13803 #define _CLC2SEL0_D1S4 0x10
13804 #define _CLC2SEL0_LC2D1S5 0x20
13805 #define _CLC2SEL0_D1S5 0x20
13807 //==============================================================================
13810 //==============================================================================
13811 // CLC2SEL1 Bits
13813 extern __at(0x0F1D) __sfr CLC2SEL1;
13815 typedef union
13817 struct
13819 unsigned LC2D2S0 : 1;
13820 unsigned LC2D2S1 : 1;
13821 unsigned LC2D2S2 : 1;
13822 unsigned LC2D2S3 : 1;
13823 unsigned LC2D2S4 : 1;
13824 unsigned LC2D2S5 : 1;
13825 unsigned : 1;
13826 unsigned : 1;
13829 struct
13831 unsigned D2S0 : 1;
13832 unsigned D2S1 : 1;
13833 unsigned D2S2 : 1;
13834 unsigned D2S3 : 1;
13835 unsigned D2S4 : 1;
13836 unsigned D2S5 : 1;
13837 unsigned : 1;
13838 unsigned : 1;
13841 struct
13843 unsigned LC2D2S : 6;
13844 unsigned : 2;
13847 struct
13849 unsigned D2S : 6;
13850 unsigned : 2;
13852 } __CLC2SEL1bits_t;
13854 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
13856 #define _CLC2SEL1_LC2D2S0 0x01
13857 #define _CLC2SEL1_D2S0 0x01
13858 #define _CLC2SEL1_LC2D2S1 0x02
13859 #define _CLC2SEL1_D2S1 0x02
13860 #define _CLC2SEL1_LC2D2S2 0x04
13861 #define _CLC2SEL1_D2S2 0x04
13862 #define _CLC2SEL1_LC2D2S3 0x08
13863 #define _CLC2SEL1_D2S3 0x08
13864 #define _CLC2SEL1_LC2D2S4 0x10
13865 #define _CLC2SEL1_D2S4 0x10
13866 #define _CLC2SEL1_LC2D2S5 0x20
13867 #define _CLC2SEL1_D2S5 0x20
13869 //==============================================================================
13872 //==============================================================================
13873 // CLC2SEL2 Bits
13875 extern __at(0x0F1E) __sfr CLC2SEL2;
13877 typedef union
13879 struct
13881 unsigned LC2D3S0 : 1;
13882 unsigned LC2D3S1 : 1;
13883 unsigned LC2D3S2 : 1;
13884 unsigned LC2D3S3 : 1;
13885 unsigned LC2D3S4 : 1;
13886 unsigned LC2D3S5 : 1;
13887 unsigned : 1;
13888 unsigned : 1;
13891 struct
13893 unsigned D3S0 : 1;
13894 unsigned D3S1 : 1;
13895 unsigned D3S2 : 1;
13896 unsigned D3S3 : 1;
13897 unsigned D3S4 : 1;
13898 unsigned D3S5 : 1;
13899 unsigned : 1;
13900 unsigned : 1;
13903 struct
13905 unsigned D3S : 6;
13906 unsigned : 2;
13909 struct
13911 unsigned LC2D3S : 6;
13912 unsigned : 2;
13914 } __CLC2SEL2bits_t;
13916 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
13918 #define _CLC2SEL2_LC2D3S0 0x01
13919 #define _CLC2SEL2_D3S0 0x01
13920 #define _CLC2SEL2_LC2D3S1 0x02
13921 #define _CLC2SEL2_D3S1 0x02
13922 #define _CLC2SEL2_LC2D3S2 0x04
13923 #define _CLC2SEL2_D3S2 0x04
13924 #define _CLC2SEL2_LC2D3S3 0x08
13925 #define _CLC2SEL2_D3S3 0x08
13926 #define _CLC2SEL2_LC2D3S4 0x10
13927 #define _CLC2SEL2_D3S4 0x10
13928 #define _CLC2SEL2_LC2D3S5 0x20
13929 #define _CLC2SEL2_D3S5 0x20
13931 //==============================================================================
13934 //==============================================================================
13935 // CLC2SEL3 Bits
13937 extern __at(0x0F1F) __sfr CLC2SEL3;
13939 typedef union
13941 struct
13943 unsigned LC2D4S0 : 1;
13944 unsigned LC2D4S1 : 1;
13945 unsigned LC2D4S2 : 1;
13946 unsigned LC2D4S3 : 1;
13947 unsigned LC2D4S4 : 1;
13948 unsigned LC2D4S5 : 1;
13949 unsigned : 1;
13950 unsigned : 1;
13953 struct
13955 unsigned D4S0 : 1;
13956 unsigned D4S1 : 1;
13957 unsigned D4S2 : 1;
13958 unsigned D4S3 : 1;
13959 unsigned D4S4 : 1;
13960 unsigned D4S5 : 1;
13961 unsigned : 1;
13962 unsigned : 1;
13965 struct
13967 unsigned LC2D4S : 6;
13968 unsigned : 2;
13971 struct
13973 unsigned D4S : 6;
13974 unsigned : 2;
13976 } __CLC2SEL3bits_t;
13978 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
13980 #define _CLC2SEL3_LC2D4S0 0x01
13981 #define _CLC2SEL3_D4S0 0x01
13982 #define _CLC2SEL3_LC2D4S1 0x02
13983 #define _CLC2SEL3_D4S1 0x02
13984 #define _CLC2SEL3_LC2D4S2 0x04
13985 #define _CLC2SEL3_D4S2 0x04
13986 #define _CLC2SEL3_LC2D4S3 0x08
13987 #define _CLC2SEL3_D4S3 0x08
13988 #define _CLC2SEL3_LC2D4S4 0x10
13989 #define _CLC2SEL3_D4S4 0x10
13990 #define _CLC2SEL3_LC2D4S5 0x20
13991 #define _CLC2SEL3_D4S5 0x20
13993 //==============================================================================
13996 //==============================================================================
13997 // CLC2GLS0 Bits
13999 extern __at(0x0F20) __sfr CLC2GLS0;
14001 typedef union
14003 struct
14005 unsigned LC2G1D1N : 1;
14006 unsigned LC2G1D1T : 1;
14007 unsigned LC2G1D2N : 1;
14008 unsigned LC2G1D2T : 1;
14009 unsigned LC2G1D3N : 1;
14010 unsigned LC2G1D3T : 1;
14011 unsigned LC2G1D4N : 1;
14012 unsigned LC2G1D4T : 1;
14015 struct
14017 unsigned D1N : 1;
14018 unsigned D1T : 1;
14019 unsigned D2N : 1;
14020 unsigned D2T : 1;
14021 unsigned D3N : 1;
14022 unsigned D3T : 1;
14023 unsigned D4N : 1;
14024 unsigned D4T : 1;
14026 } __CLC2GLS0bits_t;
14028 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
14030 #define _CLC2GLS0_LC2G1D1N 0x01
14031 #define _CLC2GLS0_D1N 0x01
14032 #define _CLC2GLS0_LC2G1D1T 0x02
14033 #define _CLC2GLS0_D1T 0x02
14034 #define _CLC2GLS0_LC2G1D2N 0x04
14035 #define _CLC2GLS0_D2N 0x04
14036 #define _CLC2GLS0_LC2G1D2T 0x08
14037 #define _CLC2GLS0_D2T 0x08
14038 #define _CLC2GLS0_LC2G1D3N 0x10
14039 #define _CLC2GLS0_D3N 0x10
14040 #define _CLC2GLS0_LC2G1D3T 0x20
14041 #define _CLC2GLS0_D3T 0x20
14042 #define _CLC2GLS0_LC2G1D4N 0x40
14043 #define _CLC2GLS0_D4N 0x40
14044 #define _CLC2GLS0_LC2G1D4T 0x80
14045 #define _CLC2GLS0_D4T 0x80
14047 //==============================================================================
14050 //==============================================================================
14051 // CLC2GLS1 Bits
14053 extern __at(0x0F21) __sfr CLC2GLS1;
14055 typedef union
14057 struct
14059 unsigned LC2G2D1N : 1;
14060 unsigned LC2G2D1T : 1;
14061 unsigned LC2G2D2N : 1;
14062 unsigned LC2G2D2T : 1;
14063 unsigned LC2G2D3N : 1;
14064 unsigned LC2G2D3T : 1;
14065 unsigned LC2G2D4N : 1;
14066 unsigned LC2G2D4T : 1;
14069 struct
14071 unsigned D1N : 1;
14072 unsigned D1T : 1;
14073 unsigned D2N : 1;
14074 unsigned D2T : 1;
14075 unsigned D3N : 1;
14076 unsigned D3T : 1;
14077 unsigned D4N : 1;
14078 unsigned D4T : 1;
14080 } __CLC2GLS1bits_t;
14082 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
14084 #define _CLC2GLS1_LC2G2D1N 0x01
14085 #define _CLC2GLS1_D1N 0x01
14086 #define _CLC2GLS1_LC2G2D1T 0x02
14087 #define _CLC2GLS1_D1T 0x02
14088 #define _CLC2GLS1_LC2G2D2N 0x04
14089 #define _CLC2GLS1_D2N 0x04
14090 #define _CLC2GLS1_LC2G2D2T 0x08
14091 #define _CLC2GLS1_D2T 0x08
14092 #define _CLC2GLS1_LC2G2D3N 0x10
14093 #define _CLC2GLS1_D3N 0x10
14094 #define _CLC2GLS1_LC2G2D3T 0x20
14095 #define _CLC2GLS1_D3T 0x20
14096 #define _CLC2GLS1_LC2G2D4N 0x40
14097 #define _CLC2GLS1_D4N 0x40
14098 #define _CLC2GLS1_LC2G2D4T 0x80
14099 #define _CLC2GLS1_D4T 0x80
14101 //==============================================================================
14104 //==============================================================================
14105 // CLC2GLS2 Bits
14107 extern __at(0x0F22) __sfr CLC2GLS2;
14109 typedef union
14111 struct
14113 unsigned LC2G3D1N : 1;
14114 unsigned LC2G3D1T : 1;
14115 unsigned LC2G3D2N : 1;
14116 unsigned LC2G3D2T : 1;
14117 unsigned LC2G3D3N : 1;
14118 unsigned LC2G3D3T : 1;
14119 unsigned LC2G3D4N : 1;
14120 unsigned LC2G3D4T : 1;
14123 struct
14125 unsigned D1N : 1;
14126 unsigned D1T : 1;
14127 unsigned D2N : 1;
14128 unsigned D2T : 1;
14129 unsigned D3N : 1;
14130 unsigned D3T : 1;
14131 unsigned D4N : 1;
14132 unsigned D4T : 1;
14134 } __CLC2GLS2bits_t;
14136 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
14138 #define _CLC2GLS2_LC2G3D1N 0x01
14139 #define _CLC2GLS2_D1N 0x01
14140 #define _CLC2GLS2_LC2G3D1T 0x02
14141 #define _CLC2GLS2_D1T 0x02
14142 #define _CLC2GLS2_LC2G3D2N 0x04
14143 #define _CLC2GLS2_D2N 0x04
14144 #define _CLC2GLS2_LC2G3D2T 0x08
14145 #define _CLC2GLS2_D2T 0x08
14146 #define _CLC2GLS2_LC2G3D3N 0x10
14147 #define _CLC2GLS2_D3N 0x10
14148 #define _CLC2GLS2_LC2G3D3T 0x20
14149 #define _CLC2GLS2_D3T 0x20
14150 #define _CLC2GLS2_LC2G3D4N 0x40
14151 #define _CLC2GLS2_D4N 0x40
14152 #define _CLC2GLS2_LC2G3D4T 0x80
14153 #define _CLC2GLS2_D4T 0x80
14155 //==============================================================================
14158 //==============================================================================
14159 // CLC2GLS3 Bits
14161 extern __at(0x0F23) __sfr CLC2GLS3;
14163 typedef union
14165 struct
14167 unsigned LC2G4D1N : 1;
14168 unsigned LC2G4D1T : 1;
14169 unsigned LC2G4D2N : 1;
14170 unsigned LC2G4D2T : 1;
14171 unsigned LC2G4D3N : 1;
14172 unsigned LC2G4D3T : 1;
14173 unsigned LC2G4D4N : 1;
14174 unsigned LC2G4D4T : 1;
14177 struct
14179 unsigned G4D1N : 1;
14180 unsigned G4D1T : 1;
14181 unsigned G4D2N : 1;
14182 unsigned G4D2T : 1;
14183 unsigned G4D3N : 1;
14184 unsigned G4D3T : 1;
14185 unsigned G4D4N : 1;
14186 unsigned G4D4T : 1;
14188 } __CLC2GLS3bits_t;
14190 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
14192 #define _CLC2GLS3_LC2G4D1N 0x01
14193 #define _CLC2GLS3_G4D1N 0x01
14194 #define _CLC2GLS3_LC2G4D1T 0x02
14195 #define _CLC2GLS3_G4D1T 0x02
14196 #define _CLC2GLS3_LC2G4D2N 0x04
14197 #define _CLC2GLS3_G4D2N 0x04
14198 #define _CLC2GLS3_LC2G4D2T 0x08
14199 #define _CLC2GLS3_G4D2T 0x08
14200 #define _CLC2GLS3_LC2G4D3N 0x10
14201 #define _CLC2GLS3_G4D3N 0x10
14202 #define _CLC2GLS3_LC2G4D3T 0x20
14203 #define _CLC2GLS3_G4D3T 0x20
14204 #define _CLC2GLS3_LC2G4D4N 0x40
14205 #define _CLC2GLS3_G4D4N 0x40
14206 #define _CLC2GLS3_LC2G4D4T 0x80
14207 #define _CLC2GLS3_G4D4T 0x80
14209 //==============================================================================
14212 //==============================================================================
14213 // CLC3CON Bits
14215 extern __at(0x0F24) __sfr CLC3CON;
14217 typedef union
14219 struct
14221 unsigned LC3MODE0 : 1;
14222 unsigned LC3MODE1 : 1;
14223 unsigned LC3MODE2 : 1;
14224 unsigned LC3INTN : 1;
14225 unsigned LC3INTP : 1;
14226 unsigned LC3OUT : 1;
14227 unsigned : 1;
14228 unsigned LC3EN : 1;
14231 struct
14233 unsigned MODE0 : 1;
14234 unsigned MODE1 : 1;
14235 unsigned MODE2 : 1;
14236 unsigned INTN : 1;
14237 unsigned INTP : 1;
14238 unsigned OUT : 1;
14239 unsigned : 1;
14240 unsigned EN : 1;
14243 struct
14245 unsigned MODE : 3;
14246 unsigned : 5;
14249 struct
14251 unsigned LC3MODE : 3;
14252 unsigned : 5;
14254 } __CLC3CONbits_t;
14256 extern __at(0x0F24) volatile __CLC3CONbits_t CLC3CONbits;
14258 #define _CLC3CON_LC3MODE0 0x01
14259 #define _CLC3CON_MODE0 0x01
14260 #define _CLC3CON_LC3MODE1 0x02
14261 #define _CLC3CON_MODE1 0x02
14262 #define _CLC3CON_LC3MODE2 0x04
14263 #define _CLC3CON_MODE2 0x04
14264 #define _CLC3CON_LC3INTN 0x08
14265 #define _CLC3CON_INTN 0x08
14266 #define _CLC3CON_LC3INTP 0x10
14267 #define _CLC3CON_INTP 0x10
14268 #define _CLC3CON_LC3OUT 0x20
14269 #define _CLC3CON_OUT 0x20
14270 #define _CLC3CON_LC3EN 0x80
14271 #define _CLC3CON_EN 0x80
14273 //==============================================================================
14276 //==============================================================================
14277 // CLC3POL Bits
14279 extern __at(0x0F25) __sfr CLC3POL;
14281 typedef union
14283 struct
14285 unsigned LC3G1POL : 1;
14286 unsigned LC3G2POL : 1;
14287 unsigned LC3G3POL : 1;
14288 unsigned LC3G4POL : 1;
14289 unsigned : 1;
14290 unsigned : 1;
14291 unsigned : 1;
14292 unsigned LC3POL : 1;
14295 struct
14297 unsigned G1POL : 1;
14298 unsigned G2POL : 1;
14299 unsigned G3POL : 1;
14300 unsigned G4POL : 1;
14301 unsigned : 1;
14302 unsigned : 1;
14303 unsigned : 1;
14304 unsigned POL : 1;
14306 } __CLC3POLbits_t;
14308 extern __at(0x0F25) volatile __CLC3POLbits_t CLC3POLbits;
14310 #define _CLC3POL_LC3G1POL 0x01
14311 #define _CLC3POL_G1POL 0x01
14312 #define _CLC3POL_LC3G2POL 0x02
14313 #define _CLC3POL_G2POL 0x02
14314 #define _CLC3POL_LC3G3POL 0x04
14315 #define _CLC3POL_G3POL 0x04
14316 #define _CLC3POL_LC3G4POL 0x08
14317 #define _CLC3POL_G4POL 0x08
14318 #define _CLC3POL_LC3POL 0x80
14319 #define _CLC3POL_POL 0x80
14321 //==============================================================================
14324 //==============================================================================
14325 // CLC3SEL0 Bits
14327 extern __at(0x0F26) __sfr CLC3SEL0;
14329 typedef union
14331 struct
14333 unsigned LC3D1S0 : 1;
14334 unsigned LC3D1S1 : 1;
14335 unsigned LC3D1S2 : 1;
14336 unsigned LC3D1S3 : 1;
14337 unsigned LC3D1S4 : 1;
14338 unsigned LC3D1S5 : 1;
14339 unsigned : 1;
14340 unsigned : 1;
14343 struct
14345 unsigned D1S0 : 1;
14346 unsigned D1S1 : 1;
14347 unsigned D1S2 : 1;
14348 unsigned D1S3 : 1;
14349 unsigned D1S4 : 1;
14350 unsigned D1S5 : 1;
14351 unsigned : 1;
14352 unsigned : 1;
14355 struct
14357 unsigned LC3D1S : 6;
14358 unsigned : 2;
14361 struct
14363 unsigned D1S : 6;
14364 unsigned : 2;
14366 } __CLC3SEL0bits_t;
14368 extern __at(0x0F26) volatile __CLC3SEL0bits_t CLC3SEL0bits;
14370 #define _CLC3SEL0_LC3D1S0 0x01
14371 #define _CLC3SEL0_D1S0 0x01
14372 #define _CLC3SEL0_LC3D1S1 0x02
14373 #define _CLC3SEL0_D1S1 0x02
14374 #define _CLC3SEL0_LC3D1S2 0x04
14375 #define _CLC3SEL0_D1S2 0x04
14376 #define _CLC3SEL0_LC3D1S3 0x08
14377 #define _CLC3SEL0_D1S3 0x08
14378 #define _CLC3SEL0_LC3D1S4 0x10
14379 #define _CLC3SEL0_D1S4 0x10
14380 #define _CLC3SEL0_LC3D1S5 0x20
14381 #define _CLC3SEL0_D1S5 0x20
14383 //==============================================================================
14386 //==============================================================================
14387 // CLC3SEL1 Bits
14389 extern __at(0x0F27) __sfr CLC3SEL1;
14391 typedef union
14393 struct
14395 unsigned LC3D2S0 : 1;
14396 unsigned LC3D2S1 : 1;
14397 unsigned LC3D2S2 : 1;
14398 unsigned LC3D2S3 : 1;
14399 unsigned LC3D2S4 : 1;
14400 unsigned LC3D2S5 : 1;
14401 unsigned : 1;
14402 unsigned : 1;
14405 struct
14407 unsigned D2S0 : 1;
14408 unsigned D2S1 : 1;
14409 unsigned D2S2 : 1;
14410 unsigned D2S3 : 1;
14411 unsigned D2S4 : 1;
14412 unsigned D2S5 : 1;
14413 unsigned : 1;
14414 unsigned : 1;
14417 struct
14419 unsigned D2S : 6;
14420 unsigned : 2;
14423 struct
14425 unsigned LC3D2S : 6;
14426 unsigned : 2;
14428 } __CLC3SEL1bits_t;
14430 extern __at(0x0F27) volatile __CLC3SEL1bits_t CLC3SEL1bits;
14432 #define _CLC3SEL1_LC3D2S0 0x01
14433 #define _CLC3SEL1_D2S0 0x01
14434 #define _CLC3SEL1_LC3D2S1 0x02
14435 #define _CLC3SEL1_D2S1 0x02
14436 #define _CLC3SEL1_LC3D2S2 0x04
14437 #define _CLC3SEL1_D2S2 0x04
14438 #define _CLC3SEL1_LC3D2S3 0x08
14439 #define _CLC3SEL1_D2S3 0x08
14440 #define _CLC3SEL1_LC3D2S4 0x10
14441 #define _CLC3SEL1_D2S4 0x10
14442 #define _CLC3SEL1_LC3D2S5 0x20
14443 #define _CLC3SEL1_D2S5 0x20
14445 //==============================================================================
14448 //==============================================================================
14449 // CLC3SEL2 Bits
14451 extern __at(0x0F28) __sfr CLC3SEL2;
14453 typedef union
14455 struct
14457 unsigned LC3D3S0 : 1;
14458 unsigned LC3D3S1 : 1;
14459 unsigned LC3D3S2 : 1;
14460 unsigned LC3D3S3 : 1;
14461 unsigned LC3D3S4 : 1;
14462 unsigned LC3D3S5 : 1;
14463 unsigned : 1;
14464 unsigned : 1;
14467 struct
14469 unsigned D3S0 : 1;
14470 unsigned D3S1 : 1;
14471 unsigned D3S2 : 1;
14472 unsigned D3S3 : 1;
14473 unsigned D3S4 : 1;
14474 unsigned D3S5 : 1;
14475 unsigned : 1;
14476 unsigned : 1;
14479 struct
14481 unsigned LC3D3S : 6;
14482 unsigned : 2;
14485 struct
14487 unsigned D3S : 6;
14488 unsigned : 2;
14490 } __CLC3SEL2bits_t;
14492 extern __at(0x0F28) volatile __CLC3SEL2bits_t CLC3SEL2bits;
14494 #define _CLC3SEL2_LC3D3S0 0x01
14495 #define _CLC3SEL2_D3S0 0x01
14496 #define _CLC3SEL2_LC3D3S1 0x02
14497 #define _CLC3SEL2_D3S1 0x02
14498 #define _CLC3SEL2_LC3D3S2 0x04
14499 #define _CLC3SEL2_D3S2 0x04
14500 #define _CLC3SEL2_LC3D3S3 0x08
14501 #define _CLC3SEL2_D3S3 0x08
14502 #define _CLC3SEL2_LC3D3S4 0x10
14503 #define _CLC3SEL2_D3S4 0x10
14504 #define _CLC3SEL2_LC3D3S5 0x20
14505 #define _CLC3SEL2_D3S5 0x20
14507 //==============================================================================
14510 //==============================================================================
14511 // CLC3SEL3 Bits
14513 extern __at(0x0F29) __sfr CLC3SEL3;
14515 typedef union
14517 struct
14519 unsigned LC3D4S0 : 1;
14520 unsigned LC3D4S1 : 1;
14521 unsigned LC3D4S2 : 1;
14522 unsigned LC3D4S3 : 1;
14523 unsigned LC3D4S4 : 1;
14524 unsigned LC3D4S5 : 1;
14525 unsigned : 1;
14526 unsigned : 1;
14529 struct
14531 unsigned D4S0 : 1;
14532 unsigned D4S1 : 1;
14533 unsigned D4S2 : 1;
14534 unsigned D4S3 : 1;
14535 unsigned D4S4 : 1;
14536 unsigned D4S5 : 1;
14537 unsigned : 1;
14538 unsigned : 1;
14541 struct
14543 unsigned D4S : 6;
14544 unsigned : 2;
14547 struct
14549 unsigned LC3D4S : 6;
14550 unsigned : 2;
14552 } __CLC3SEL3bits_t;
14554 extern __at(0x0F29) volatile __CLC3SEL3bits_t CLC3SEL3bits;
14556 #define _CLC3SEL3_LC3D4S0 0x01
14557 #define _CLC3SEL3_D4S0 0x01
14558 #define _CLC3SEL3_LC3D4S1 0x02
14559 #define _CLC3SEL3_D4S1 0x02
14560 #define _CLC3SEL3_LC3D4S2 0x04
14561 #define _CLC3SEL3_D4S2 0x04
14562 #define _CLC3SEL3_LC3D4S3 0x08
14563 #define _CLC3SEL3_D4S3 0x08
14564 #define _CLC3SEL3_LC3D4S4 0x10
14565 #define _CLC3SEL3_D4S4 0x10
14566 #define _CLC3SEL3_LC3D4S5 0x20
14567 #define _CLC3SEL3_D4S5 0x20
14569 //==============================================================================
14572 //==============================================================================
14573 // CLC3GLS0 Bits
14575 extern __at(0x0F2A) __sfr CLC3GLS0;
14577 typedef union
14579 struct
14581 unsigned LC3G1D1N : 1;
14582 unsigned LC3G1D1T : 1;
14583 unsigned LC3G1D2N : 1;
14584 unsigned LC3G1D2T : 1;
14585 unsigned LC3G1D3N : 1;
14586 unsigned LC3G1D3T : 1;
14587 unsigned LC3G1D4N : 1;
14588 unsigned LC3G1D4T : 1;
14591 struct
14593 unsigned D1N : 1;
14594 unsigned D1T : 1;
14595 unsigned D2N : 1;
14596 unsigned D2T : 1;
14597 unsigned D3N : 1;
14598 unsigned D3T : 1;
14599 unsigned D4N : 1;
14600 unsigned D4T : 1;
14602 } __CLC3GLS0bits_t;
14604 extern __at(0x0F2A) volatile __CLC3GLS0bits_t CLC3GLS0bits;
14606 #define _CLC3GLS0_LC3G1D1N 0x01
14607 #define _CLC3GLS0_D1N 0x01
14608 #define _CLC3GLS0_LC3G1D1T 0x02
14609 #define _CLC3GLS0_D1T 0x02
14610 #define _CLC3GLS0_LC3G1D2N 0x04
14611 #define _CLC3GLS0_D2N 0x04
14612 #define _CLC3GLS0_LC3G1D2T 0x08
14613 #define _CLC3GLS0_D2T 0x08
14614 #define _CLC3GLS0_LC3G1D3N 0x10
14615 #define _CLC3GLS0_D3N 0x10
14616 #define _CLC3GLS0_LC3G1D3T 0x20
14617 #define _CLC3GLS0_D3T 0x20
14618 #define _CLC3GLS0_LC3G1D4N 0x40
14619 #define _CLC3GLS0_D4N 0x40
14620 #define _CLC3GLS0_LC3G1D4T 0x80
14621 #define _CLC3GLS0_D4T 0x80
14623 //==============================================================================
14626 //==============================================================================
14627 // CLC3GLS1 Bits
14629 extern __at(0x0F2B) __sfr CLC3GLS1;
14631 typedef union
14633 struct
14635 unsigned LC3G2D1N : 1;
14636 unsigned LC3G2D1T : 1;
14637 unsigned LC3G2D2N : 1;
14638 unsigned LC3G2D2T : 1;
14639 unsigned LC3G2D3N : 1;
14640 unsigned LC3G2D3T : 1;
14641 unsigned LC3G2D4N : 1;
14642 unsigned LC3G2D4T : 1;
14645 struct
14647 unsigned D1N : 1;
14648 unsigned D1T : 1;
14649 unsigned D2N : 1;
14650 unsigned D2T : 1;
14651 unsigned D3N : 1;
14652 unsigned D3T : 1;
14653 unsigned D4N : 1;
14654 unsigned D4T : 1;
14656 } __CLC3GLS1bits_t;
14658 extern __at(0x0F2B) volatile __CLC3GLS1bits_t CLC3GLS1bits;
14660 #define _CLC3GLS1_LC3G2D1N 0x01
14661 #define _CLC3GLS1_D1N 0x01
14662 #define _CLC3GLS1_LC3G2D1T 0x02
14663 #define _CLC3GLS1_D1T 0x02
14664 #define _CLC3GLS1_LC3G2D2N 0x04
14665 #define _CLC3GLS1_D2N 0x04
14666 #define _CLC3GLS1_LC3G2D2T 0x08
14667 #define _CLC3GLS1_D2T 0x08
14668 #define _CLC3GLS1_LC3G2D3N 0x10
14669 #define _CLC3GLS1_D3N 0x10
14670 #define _CLC3GLS1_LC3G2D3T 0x20
14671 #define _CLC3GLS1_D3T 0x20
14672 #define _CLC3GLS1_LC3G2D4N 0x40
14673 #define _CLC3GLS1_D4N 0x40
14674 #define _CLC3GLS1_LC3G2D4T 0x80
14675 #define _CLC3GLS1_D4T 0x80
14677 //==============================================================================
14680 //==============================================================================
14681 // CLC3GLS2 Bits
14683 extern __at(0x0F2C) __sfr CLC3GLS2;
14685 typedef union
14687 struct
14689 unsigned LC3G3D1N : 1;
14690 unsigned LC3G3D1T : 1;
14691 unsigned LC3G3D2N : 1;
14692 unsigned LC3G3D2T : 1;
14693 unsigned LC3G3D3N : 1;
14694 unsigned LC3G3D3T : 1;
14695 unsigned LC3G3D4N : 1;
14696 unsigned LC3G3D4T : 1;
14699 struct
14701 unsigned D1N : 1;
14702 unsigned D1T : 1;
14703 unsigned D2N : 1;
14704 unsigned D2T : 1;
14705 unsigned D3N : 1;
14706 unsigned D3T : 1;
14707 unsigned D4N : 1;
14708 unsigned D4T : 1;
14710 } __CLC3GLS2bits_t;
14712 extern __at(0x0F2C) volatile __CLC3GLS2bits_t CLC3GLS2bits;
14714 #define _CLC3GLS2_LC3G3D1N 0x01
14715 #define _CLC3GLS2_D1N 0x01
14716 #define _CLC3GLS2_LC3G3D1T 0x02
14717 #define _CLC3GLS2_D1T 0x02
14718 #define _CLC3GLS2_LC3G3D2N 0x04
14719 #define _CLC3GLS2_D2N 0x04
14720 #define _CLC3GLS2_LC3G3D2T 0x08
14721 #define _CLC3GLS2_D2T 0x08
14722 #define _CLC3GLS2_LC3G3D3N 0x10
14723 #define _CLC3GLS2_D3N 0x10
14724 #define _CLC3GLS2_LC3G3D3T 0x20
14725 #define _CLC3GLS2_D3T 0x20
14726 #define _CLC3GLS2_LC3G3D4N 0x40
14727 #define _CLC3GLS2_D4N 0x40
14728 #define _CLC3GLS2_LC3G3D4T 0x80
14729 #define _CLC3GLS2_D4T 0x80
14731 //==============================================================================
14734 //==============================================================================
14735 // CLC3GLS3 Bits
14737 extern __at(0x0F2D) __sfr CLC3GLS3;
14739 typedef union
14741 struct
14743 unsigned LC3G4D1N : 1;
14744 unsigned LC3G4D1T : 1;
14745 unsigned LC3G4D2N : 1;
14746 unsigned LC3G4D2T : 1;
14747 unsigned LC3G4D3N : 1;
14748 unsigned LC3G4D3T : 1;
14749 unsigned LC3G4D4N : 1;
14750 unsigned LC3G4D4T : 1;
14753 struct
14755 unsigned G4D1N : 1;
14756 unsigned G4D1T : 1;
14757 unsigned G4D2N : 1;
14758 unsigned G4D2T : 1;
14759 unsigned G4D3N : 1;
14760 unsigned G4D3T : 1;
14761 unsigned G4D4N : 1;
14762 unsigned G4D4T : 1;
14764 } __CLC3GLS3bits_t;
14766 extern __at(0x0F2D) volatile __CLC3GLS3bits_t CLC3GLS3bits;
14768 #define _CLC3GLS3_LC3G4D1N 0x01
14769 #define _CLC3GLS3_G4D1N 0x01
14770 #define _CLC3GLS3_LC3G4D1T 0x02
14771 #define _CLC3GLS3_G4D1T 0x02
14772 #define _CLC3GLS3_LC3G4D2N 0x04
14773 #define _CLC3GLS3_G4D2N 0x04
14774 #define _CLC3GLS3_LC3G4D2T 0x08
14775 #define _CLC3GLS3_G4D2T 0x08
14776 #define _CLC3GLS3_LC3G4D3N 0x10
14777 #define _CLC3GLS3_G4D3N 0x10
14778 #define _CLC3GLS3_LC3G4D3T 0x20
14779 #define _CLC3GLS3_G4D3T 0x20
14780 #define _CLC3GLS3_LC3G4D4N 0x40
14781 #define _CLC3GLS3_G4D4N 0x40
14782 #define _CLC3GLS3_LC3G4D4T 0x80
14783 #define _CLC3GLS3_G4D4T 0x80
14785 //==============================================================================
14788 //==============================================================================
14789 // CLC4CON Bits
14791 extern __at(0x0F2E) __sfr CLC4CON;
14793 typedef union
14795 struct
14797 unsigned LC4MODE0 : 1;
14798 unsigned LC4MODE1 : 1;
14799 unsigned LC4MODE2 : 1;
14800 unsigned LC4INTN : 1;
14801 unsigned LC4INTP : 1;
14802 unsigned LC4OUT : 1;
14803 unsigned : 1;
14804 unsigned LC4EN : 1;
14807 struct
14809 unsigned MODE0 : 1;
14810 unsigned MODE1 : 1;
14811 unsigned MODE2 : 1;
14812 unsigned INTN : 1;
14813 unsigned INTP : 1;
14814 unsigned OUT : 1;
14815 unsigned : 1;
14816 unsigned EN : 1;
14819 struct
14821 unsigned LC4MODE : 3;
14822 unsigned : 5;
14825 struct
14827 unsigned MODE : 3;
14828 unsigned : 5;
14830 } __CLC4CONbits_t;
14832 extern __at(0x0F2E) volatile __CLC4CONbits_t CLC4CONbits;
14834 #define _CLC4CON_LC4MODE0 0x01
14835 #define _CLC4CON_MODE0 0x01
14836 #define _CLC4CON_LC4MODE1 0x02
14837 #define _CLC4CON_MODE1 0x02
14838 #define _CLC4CON_LC4MODE2 0x04
14839 #define _CLC4CON_MODE2 0x04
14840 #define _CLC4CON_LC4INTN 0x08
14841 #define _CLC4CON_INTN 0x08
14842 #define _CLC4CON_LC4INTP 0x10
14843 #define _CLC4CON_INTP 0x10
14844 #define _CLC4CON_LC4OUT 0x20
14845 #define _CLC4CON_OUT 0x20
14846 #define _CLC4CON_LC4EN 0x80
14847 #define _CLC4CON_EN 0x80
14849 //==============================================================================
14852 //==============================================================================
14853 // CLC4POL Bits
14855 extern __at(0x0F2F) __sfr CLC4POL;
14857 typedef union
14859 struct
14861 unsigned LC4G1POL : 1;
14862 unsigned LC4G2POL : 1;
14863 unsigned LC4G3POL : 1;
14864 unsigned LC4G4POL : 1;
14865 unsigned : 1;
14866 unsigned : 1;
14867 unsigned : 1;
14868 unsigned LC4POL : 1;
14871 struct
14873 unsigned G1POL : 1;
14874 unsigned G2POL : 1;
14875 unsigned G3POL : 1;
14876 unsigned G4POL : 1;
14877 unsigned : 1;
14878 unsigned : 1;
14879 unsigned : 1;
14880 unsigned POL : 1;
14882 } __CLC4POLbits_t;
14884 extern __at(0x0F2F) volatile __CLC4POLbits_t CLC4POLbits;
14886 #define _CLC4POL_LC4G1POL 0x01
14887 #define _CLC4POL_G1POL 0x01
14888 #define _CLC4POL_LC4G2POL 0x02
14889 #define _CLC4POL_G2POL 0x02
14890 #define _CLC4POL_LC4G3POL 0x04
14891 #define _CLC4POL_G3POL 0x04
14892 #define _CLC4POL_LC4G4POL 0x08
14893 #define _CLC4POL_G4POL 0x08
14894 #define _CLC4POL_LC4POL 0x80
14895 #define _CLC4POL_POL 0x80
14897 //==============================================================================
14900 //==============================================================================
14901 // CLC4SEL0 Bits
14903 extern __at(0x0F30) __sfr CLC4SEL0;
14905 typedef union
14907 struct
14909 unsigned LC4D1S0 : 1;
14910 unsigned LC4D1S1 : 1;
14911 unsigned LC4D1S2 : 1;
14912 unsigned LC4D1S3 : 1;
14913 unsigned LC4D1S4 : 1;
14914 unsigned LC4D1S5 : 1;
14915 unsigned : 1;
14916 unsigned : 1;
14919 struct
14921 unsigned D1S0 : 1;
14922 unsigned D1S1 : 1;
14923 unsigned D1S2 : 1;
14924 unsigned D1S3 : 1;
14925 unsigned D1S4 : 1;
14926 unsigned D1S5 : 1;
14927 unsigned : 1;
14928 unsigned : 1;
14931 struct
14933 unsigned D1S : 6;
14934 unsigned : 2;
14937 struct
14939 unsigned LC4D1S : 6;
14940 unsigned : 2;
14942 } __CLC4SEL0bits_t;
14944 extern __at(0x0F30) volatile __CLC4SEL0bits_t CLC4SEL0bits;
14946 #define _CLC4SEL0_LC4D1S0 0x01
14947 #define _CLC4SEL0_D1S0 0x01
14948 #define _CLC4SEL0_LC4D1S1 0x02
14949 #define _CLC4SEL0_D1S1 0x02
14950 #define _CLC4SEL0_LC4D1S2 0x04
14951 #define _CLC4SEL0_D1S2 0x04
14952 #define _CLC4SEL0_LC4D1S3 0x08
14953 #define _CLC4SEL0_D1S3 0x08
14954 #define _CLC4SEL0_LC4D1S4 0x10
14955 #define _CLC4SEL0_D1S4 0x10
14956 #define _CLC4SEL0_LC4D1S5 0x20
14957 #define _CLC4SEL0_D1S5 0x20
14959 //==============================================================================
14962 //==============================================================================
14963 // CLC4SEL1 Bits
14965 extern __at(0x0F31) __sfr CLC4SEL1;
14967 typedef union
14969 struct
14971 unsigned LC4D2S0 : 1;
14972 unsigned LC4D2S1 : 1;
14973 unsigned LC4D2S2 : 1;
14974 unsigned LC4D2S3 : 1;
14975 unsigned LC4D2S4 : 1;
14976 unsigned LC4D2S5 : 1;
14977 unsigned : 1;
14978 unsigned : 1;
14981 struct
14983 unsigned D2S0 : 1;
14984 unsigned D2S1 : 1;
14985 unsigned D2S2 : 1;
14986 unsigned D2S3 : 1;
14987 unsigned D2S4 : 1;
14988 unsigned D2S5 : 1;
14989 unsigned : 1;
14990 unsigned : 1;
14993 struct
14995 unsigned D2S : 6;
14996 unsigned : 2;
14999 struct
15001 unsigned LC4D2S : 6;
15002 unsigned : 2;
15004 } __CLC4SEL1bits_t;
15006 extern __at(0x0F31) volatile __CLC4SEL1bits_t CLC4SEL1bits;
15008 #define _CLC4SEL1_LC4D2S0 0x01
15009 #define _CLC4SEL1_D2S0 0x01
15010 #define _CLC4SEL1_LC4D2S1 0x02
15011 #define _CLC4SEL1_D2S1 0x02
15012 #define _CLC4SEL1_LC4D2S2 0x04
15013 #define _CLC4SEL1_D2S2 0x04
15014 #define _CLC4SEL1_LC4D2S3 0x08
15015 #define _CLC4SEL1_D2S3 0x08
15016 #define _CLC4SEL1_LC4D2S4 0x10
15017 #define _CLC4SEL1_D2S4 0x10
15018 #define _CLC4SEL1_LC4D2S5 0x20
15019 #define _CLC4SEL1_D2S5 0x20
15021 //==============================================================================
15024 //==============================================================================
15025 // CLC4SEL2 Bits
15027 extern __at(0x0F32) __sfr CLC4SEL2;
15029 typedef union
15031 struct
15033 unsigned LC4D3S0 : 1;
15034 unsigned LC4D3S1 : 1;
15035 unsigned LC4D3S2 : 1;
15036 unsigned LC4D3S3 : 1;
15037 unsigned LC4D3S4 : 1;
15038 unsigned LC4D3S5 : 1;
15039 unsigned : 1;
15040 unsigned : 1;
15043 struct
15045 unsigned D3S0 : 1;
15046 unsigned D3S1 : 1;
15047 unsigned D3S2 : 1;
15048 unsigned D3S3 : 1;
15049 unsigned D3S4 : 1;
15050 unsigned D3S5 : 1;
15051 unsigned : 1;
15052 unsigned : 1;
15055 struct
15057 unsigned LC4D3S : 6;
15058 unsigned : 2;
15061 struct
15063 unsigned D3S : 6;
15064 unsigned : 2;
15066 } __CLC4SEL2bits_t;
15068 extern __at(0x0F32) volatile __CLC4SEL2bits_t CLC4SEL2bits;
15070 #define _CLC4SEL2_LC4D3S0 0x01
15071 #define _CLC4SEL2_D3S0 0x01
15072 #define _CLC4SEL2_LC4D3S1 0x02
15073 #define _CLC4SEL2_D3S1 0x02
15074 #define _CLC4SEL2_LC4D3S2 0x04
15075 #define _CLC4SEL2_D3S2 0x04
15076 #define _CLC4SEL2_LC4D3S3 0x08
15077 #define _CLC4SEL2_D3S3 0x08
15078 #define _CLC4SEL2_LC4D3S4 0x10
15079 #define _CLC4SEL2_D3S4 0x10
15080 #define _CLC4SEL2_LC4D3S5 0x20
15081 #define _CLC4SEL2_D3S5 0x20
15083 //==============================================================================
15086 //==============================================================================
15087 // CLC4SEL3 Bits
15089 extern __at(0x0F33) __sfr CLC4SEL3;
15091 typedef union
15093 struct
15095 unsigned LC4D4S0 : 1;
15096 unsigned LC4D4S1 : 1;
15097 unsigned LC4D4S2 : 1;
15098 unsigned LC4D4S3 : 1;
15099 unsigned LC4D4S4 : 1;
15100 unsigned LC4D4S5 : 1;
15101 unsigned : 1;
15102 unsigned : 1;
15105 struct
15107 unsigned D4S0 : 1;
15108 unsigned D4S1 : 1;
15109 unsigned D4S2 : 1;
15110 unsigned D4S3 : 1;
15111 unsigned D4S4 : 1;
15112 unsigned D4S5 : 1;
15113 unsigned : 1;
15114 unsigned : 1;
15117 struct
15119 unsigned LC4D4S : 6;
15120 unsigned : 2;
15123 struct
15125 unsigned D4S : 6;
15126 unsigned : 2;
15128 } __CLC4SEL3bits_t;
15130 extern __at(0x0F33) volatile __CLC4SEL3bits_t CLC4SEL3bits;
15132 #define _CLC4SEL3_LC4D4S0 0x01
15133 #define _CLC4SEL3_D4S0 0x01
15134 #define _CLC4SEL3_LC4D4S1 0x02
15135 #define _CLC4SEL3_D4S1 0x02
15136 #define _CLC4SEL3_LC4D4S2 0x04
15137 #define _CLC4SEL3_D4S2 0x04
15138 #define _CLC4SEL3_LC4D4S3 0x08
15139 #define _CLC4SEL3_D4S3 0x08
15140 #define _CLC4SEL3_LC4D4S4 0x10
15141 #define _CLC4SEL3_D4S4 0x10
15142 #define _CLC4SEL3_LC4D4S5 0x20
15143 #define _CLC4SEL3_D4S5 0x20
15145 //==============================================================================
15148 //==============================================================================
15149 // CLC4GLS0 Bits
15151 extern __at(0x0F34) __sfr CLC4GLS0;
15153 typedef union
15155 struct
15157 unsigned LC4G1D1N : 1;
15158 unsigned LC4G1D1T : 1;
15159 unsigned LC4G1D2N : 1;
15160 unsigned LC4G1D2T : 1;
15161 unsigned LC4G1D3N : 1;
15162 unsigned LC4G1D3T : 1;
15163 unsigned LC4G1D4N : 1;
15164 unsigned LC4G1D4T : 1;
15167 struct
15169 unsigned D1N : 1;
15170 unsigned D1T : 1;
15171 unsigned D2N : 1;
15172 unsigned D2T : 1;
15173 unsigned D3N : 1;
15174 unsigned D3T : 1;
15175 unsigned D4N : 1;
15176 unsigned D4T : 1;
15178 } __CLC4GLS0bits_t;
15180 extern __at(0x0F34) volatile __CLC4GLS0bits_t CLC4GLS0bits;
15182 #define _CLC4GLS0_LC4G1D1N 0x01
15183 #define _CLC4GLS0_D1N 0x01
15184 #define _CLC4GLS0_LC4G1D1T 0x02
15185 #define _CLC4GLS0_D1T 0x02
15186 #define _CLC4GLS0_LC4G1D2N 0x04
15187 #define _CLC4GLS0_D2N 0x04
15188 #define _CLC4GLS0_LC4G1D2T 0x08
15189 #define _CLC4GLS0_D2T 0x08
15190 #define _CLC4GLS0_LC4G1D3N 0x10
15191 #define _CLC4GLS0_D3N 0x10
15192 #define _CLC4GLS0_LC4G1D3T 0x20
15193 #define _CLC4GLS0_D3T 0x20
15194 #define _CLC4GLS0_LC4G1D4N 0x40
15195 #define _CLC4GLS0_D4N 0x40
15196 #define _CLC4GLS0_LC4G1D4T 0x80
15197 #define _CLC4GLS0_D4T 0x80
15199 //==============================================================================
15202 //==============================================================================
15203 // CLC4GLS1 Bits
15205 extern __at(0x0F35) __sfr CLC4GLS1;
15207 typedef union
15209 struct
15211 unsigned LC4G2D1N : 1;
15212 unsigned LC4G2D1T : 1;
15213 unsigned LC4G2D2N : 1;
15214 unsigned LC4G2D2T : 1;
15215 unsigned LC4G2D3N : 1;
15216 unsigned LC4G2D3T : 1;
15217 unsigned LC4G2D4N : 1;
15218 unsigned LC4G2D4T : 1;
15221 struct
15223 unsigned D1N : 1;
15224 unsigned D1T : 1;
15225 unsigned D2N : 1;
15226 unsigned D2T : 1;
15227 unsigned D3N : 1;
15228 unsigned D3T : 1;
15229 unsigned D4N : 1;
15230 unsigned D4T : 1;
15232 } __CLC4GLS1bits_t;
15234 extern __at(0x0F35) volatile __CLC4GLS1bits_t CLC4GLS1bits;
15236 #define _CLC4GLS1_LC4G2D1N 0x01
15237 #define _CLC4GLS1_D1N 0x01
15238 #define _CLC4GLS1_LC4G2D1T 0x02
15239 #define _CLC4GLS1_D1T 0x02
15240 #define _CLC4GLS1_LC4G2D2N 0x04
15241 #define _CLC4GLS1_D2N 0x04
15242 #define _CLC4GLS1_LC4G2D2T 0x08
15243 #define _CLC4GLS1_D2T 0x08
15244 #define _CLC4GLS1_LC4G2D3N 0x10
15245 #define _CLC4GLS1_D3N 0x10
15246 #define _CLC4GLS1_LC4G2D3T 0x20
15247 #define _CLC4GLS1_D3T 0x20
15248 #define _CLC4GLS1_LC4G2D4N 0x40
15249 #define _CLC4GLS1_D4N 0x40
15250 #define _CLC4GLS1_LC4G2D4T 0x80
15251 #define _CLC4GLS1_D4T 0x80
15253 //==============================================================================
15256 //==============================================================================
15257 // CLC4GLS2 Bits
15259 extern __at(0x0F36) __sfr CLC4GLS2;
15261 typedef union
15263 struct
15265 unsigned LC4G3D1N : 1;
15266 unsigned LC4G3D1T : 1;
15267 unsigned LC4G3D2N : 1;
15268 unsigned LC4G3D2T : 1;
15269 unsigned LC4G3D3N : 1;
15270 unsigned LC4G3D3T : 1;
15271 unsigned LC4G3D4N : 1;
15272 unsigned LC4G3D4T : 1;
15275 struct
15277 unsigned D1N : 1;
15278 unsigned D1T : 1;
15279 unsigned D2N : 1;
15280 unsigned D2T : 1;
15281 unsigned D3N : 1;
15282 unsigned D3T : 1;
15283 unsigned D4N : 1;
15284 unsigned D4T : 1;
15286 } __CLC4GLS2bits_t;
15288 extern __at(0x0F36) volatile __CLC4GLS2bits_t CLC4GLS2bits;
15290 #define _CLC4GLS2_LC4G3D1N 0x01
15291 #define _CLC4GLS2_D1N 0x01
15292 #define _CLC4GLS2_LC4G3D1T 0x02
15293 #define _CLC4GLS2_D1T 0x02
15294 #define _CLC4GLS2_LC4G3D2N 0x04
15295 #define _CLC4GLS2_D2N 0x04
15296 #define _CLC4GLS2_LC4G3D2T 0x08
15297 #define _CLC4GLS2_D2T 0x08
15298 #define _CLC4GLS2_LC4G3D3N 0x10
15299 #define _CLC4GLS2_D3N 0x10
15300 #define _CLC4GLS2_LC4G3D3T 0x20
15301 #define _CLC4GLS2_D3T 0x20
15302 #define _CLC4GLS2_LC4G3D4N 0x40
15303 #define _CLC4GLS2_D4N 0x40
15304 #define _CLC4GLS2_LC4G3D4T 0x80
15305 #define _CLC4GLS2_D4T 0x80
15307 //==============================================================================
15310 //==============================================================================
15311 // CLC4GLS3 Bits
15313 extern __at(0x0F37) __sfr CLC4GLS3;
15315 typedef union
15317 struct
15319 unsigned LC4G4D1N : 1;
15320 unsigned LC4G4D1T : 1;
15321 unsigned LC4G4D2N : 1;
15322 unsigned LC4G4D2T : 1;
15323 unsigned LC4G4D3N : 1;
15324 unsigned LC4G4D3T : 1;
15325 unsigned LC4G4D4N : 1;
15326 unsigned LC4G4D4T : 1;
15329 struct
15331 unsigned G4D1N : 1;
15332 unsigned G4D1T : 1;
15333 unsigned G4D2N : 1;
15334 unsigned G4D2T : 1;
15335 unsigned G4D3N : 1;
15336 unsigned G4D3T : 1;
15337 unsigned G4D4N : 1;
15338 unsigned G4D4T : 1;
15340 } __CLC4GLS3bits_t;
15342 extern __at(0x0F37) volatile __CLC4GLS3bits_t CLC4GLS3bits;
15344 #define _CLC4GLS3_LC4G4D1N 0x01
15345 #define _CLC4GLS3_G4D1N 0x01
15346 #define _CLC4GLS3_LC4G4D1T 0x02
15347 #define _CLC4GLS3_G4D1T 0x02
15348 #define _CLC4GLS3_LC4G4D2N 0x04
15349 #define _CLC4GLS3_G4D2N 0x04
15350 #define _CLC4GLS3_LC4G4D2T 0x08
15351 #define _CLC4GLS3_G4D2T 0x08
15352 #define _CLC4GLS3_LC4G4D3N 0x10
15353 #define _CLC4GLS3_G4D3N 0x10
15354 #define _CLC4GLS3_LC4G4D3T 0x20
15355 #define _CLC4GLS3_G4D3T 0x20
15356 #define _CLC4GLS3_LC4G4D4N 0x40
15357 #define _CLC4GLS3_G4D4N 0x40
15358 #define _CLC4GLS3_LC4G4D4T 0x80
15359 #define _CLC4GLS3_G4D4T 0x80
15361 //==============================================================================
15364 //==============================================================================
15365 // STATUS_SHAD Bits
15367 extern __at(0x0FE4) __sfr STATUS_SHAD;
15369 typedef struct
15371 unsigned C_SHAD : 1;
15372 unsigned DC_SHAD : 1;
15373 unsigned Z_SHAD : 1;
15374 unsigned : 1;
15375 unsigned : 1;
15376 unsigned : 1;
15377 unsigned : 1;
15378 unsigned : 1;
15379 } __STATUS_SHADbits_t;
15381 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
15383 #define _C_SHAD 0x01
15384 #define _DC_SHAD 0x02
15385 #define _Z_SHAD 0x04
15387 //==============================================================================
15389 extern __at(0x0FE5) __sfr WREG_SHAD;
15390 extern __at(0x0FE6) __sfr BSR_SHAD;
15391 extern __at(0x0FE7) __sfr PCLATH_SHAD;
15392 extern __at(0x0FE8) __sfr FSR0L_SHAD;
15393 extern __at(0x0FE9) __sfr FSR0H_SHAD;
15394 extern __at(0x0FEA) __sfr FSR1L_SHAD;
15395 extern __at(0x0FEB) __sfr FSR1H_SHAD;
15396 extern __at(0x0FED) __sfr STKPTR;
15397 extern __at(0x0FEE) __sfr TOSL;
15398 extern __at(0x0FEF) __sfr TOSH;
15400 //==============================================================================
15402 // Configuration Bits
15404 //==============================================================================
15406 #define _CONFIG1 0x8007
15407 #define _CONFIG2 0x8008
15408 #define _CONFIG3 0x8009
15410 //----------------------------- CONFIG1 Options -------------------------------
15412 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
15413 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
15414 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
15415 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
15416 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
15417 #define _PWRTE_ON 0x3FDF // PWRT enabled.
15418 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
15419 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
15420 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
15421 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
15422 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
15423 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
15424 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
15425 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
15426 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
15427 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
15428 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
15429 #define _IESO_OFF 0x2FFF // Internal External Switch Over mode is disabled.
15430 #define _IESO_ON 0x3FFF // Internal External Switch Over mode is enabled.
15431 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
15432 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
15434 //----------------------------- CONFIG2 Options -------------------------------
15436 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by PMCON control.
15437 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by PMCON control.
15438 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by PMCON control.
15439 #define _WRT_OFF 0x3FFF // Write protection off.
15440 #define _PPS1WAY_OFF 0x3FFB // The PPSLOCK bit can be set and cleared repeatedly by software.
15441 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit cannot be cleared once it is set by software.
15442 #define _ZCD_ON 0x3F7F // ZCD always enabled.
15443 #define _ZCD_OFF 0x3FFF // ZCD disable. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON.
15444 #define _PLLEN_OFF 0x3EFF // 4x PLL is enabled when software sets the SPLLEN bit.
15445 #define _PLLEN_ON 0x3FFF // 4x PLL is always enabled.
15446 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
15447 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
15448 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
15449 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
15450 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
15451 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
15452 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
15453 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
15454 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
15455 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
15457 //----------------------------- CONFIG3 Options -------------------------------
15459 #define _WDTCPS_WDTCPS0 0x3FE0 // 1:32 (1 ms period).
15460 #define _WDTCPS_WDTCPS1 0x3FE1 // 1:64 (2 ms period).
15461 #define _WDTCPS_WDTCPS2 0x3FE2 // 1:128 (4 ms period).
15462 #define _WDTCPS_WDTCPS3 0x3FE3 // 1:256 (8 ms period).
15463 #define _WDTCPS_WDTCPS4 0x3FE4 // 1:512 (16 ms period).
15464 #define _WDTCPS_WDTCPS5 0x3FE5 // 1:1024 (32 ms period).
15465 #define _WDTCPS_WDTCPS6 0x3FE6 // 1:2048 (64 ms period).
15466 #define _WDTCPS_WDTCPS7 0x3FE7 // 1:4096 (128 ms period).
15467 #define _WDTCPS_WDTCPS8 0x3FE8 // 1:8192 (256 ms period).
15468 #define _WDTCPS_WDTCPS9 0x3FE9 // 1:16384 (512 ms period).
15469 #define _WDTCPS_WDTCPSA 0x3FEA // 1:32768 (1 s period).
15470 #define _WDTCPS_WDTCPSB 0x3FEB // 1:65536 (2 s period).
15471 #define _WDTCPS_WDTCPSC 0x3FEC // 1:131072 (4 s period).
15472 #define _WDTCPS_WDTCPSD 0x3FED // 1:262144 (8 s period).
15473 #define _WDTCPS_WDTCPSE 0x3FEE // 1:524299 (16 s period).
15474 #define _WDTCPS_WDTCPSF 0x3FEF // 1:1048576 (32 s period).
15475 #define _WDTCPS_WDTCPS10 0x3FF0 // 1:2097152 (64 s period).
15476 #define _WDTCPS_WDTCPS11 0x3FF1 // 1:4194304 (128 s period).
15477 #define _WDTCPS_WDTCPS12 0x3FF2 // 1:8388608 (256 s period).
15478 #define _WDTCPS_WDTCPS1F 0x3FFF // Software Control (WDTPS).
15479 #define _WDTE_OFF 0x3F9F // WDT disabled.
15480 #define _WDTE_SWDTEN 0x3FBF // WDT controlled by the SWDTEN bit in the WDTCON register.
15481 #define _WDTE_NSLEEP 0x3FDF // WDT enabled while running and disabled in Sleep.
15482 #define _WDTE_ON 0x3FFF // WDT enabled.
15483 #define _WDTCWS_WDTCWS125 0x38FF // 12.5 percent window open time.
15484 #define _WDTCWS_WDTCWS25 0x39FF // 25 percent window open time.
15485 #define _WDTCWS_WDTCWS375 0x3AFF // 37.5 percent window open time.
15486 #define _WDTCWS_WDTCWS50 0x3BFF // 50 percent window open time.
15487 #define _WDTCWS_WDTCWS625 0x3CFF // 62.5 percent window open time.
15488 #define _WDTCWS_WDTCWS75 0x3DFF // 75 percent window open time.
15489 #define _WDTCWS_WDTCWS100 0x3EFF // 100 percent window open time (Legacy WDT).
15490 #define _WDTCWS_WDTCWSSW 0x3FFF // Software WDT window size control (WDTWS bits).
15491 #define _WDTCCS_LFINTOSC 0x07FF // 31.0kHz LFINTOSC.
15492 #define _WDTCCS_MFINTOSC 0x0FFF // 31.25 kHz HFINTOSC (MFINTOSC).
15493 #define _WDTCCS_SWC 0x3FFF // Software control, controlled by WDTCS bits.
15495 //==============================================================================
15497 #define _DEVID1 0x8006
15499 #define _IDLOC0 0x8000
15500 #define _IDLOC1 0x8001
15501 #define _IDLOC2 0x8002
15502 #define _IDLOC3 0x8003
15504 //==============================================================================
15506 #ifndef NO_BIT_DEFINES
15508 #define ADON ADCON0bits.ADON // bit 0
15509 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
15510 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
15511 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
15512 #define CHS0 ADCON0bits.CHS0 // bit 2
15513 #define CHS1 ADCON0bits.CHS1 // bit 3
15514 #define CHS2 ADCON0bits.CHS2 // bit 4
15515 #define CHS3 ADCON0bits.CHS3 // bit 5
15516 #define CHS4 ADCON0bits.CHS4 // bit 6
15518 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
15519 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
15520 #define ADCS0 ADCON1bits.ADCS0 // bit 4
15521 #define ADCS1 ADCON1bits.ADCS1 // bit 5
15522 #define ADCS2 ADCON1bits.ADCS2 // bit 6
15523 #define ADFM ADCON1bits.ADFM // bit 7
15525 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
15526 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
15527 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
15528 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
15530 #define ANSA0 ANSELAbits.ANSA0 // bit 0
15531 #define ANSA1 ANSELAbits.ANSA1 // bit 1
15532 #define ANSA2 ANSELAbits.ANSA2 // bit 2
15533 #define ANSA4 ANSELAbits.ANSA4 // bit 4
15535 #define ANSC0 ANSELCbits.ANSC0 // bit 0
15536 #define ANSC1 ANSELCbits.ANSC1 // bit 1
15537 #define ANSC2 ANSELCbits.ANSC2 // bit 2
15538 #define ANSC3 ANSELCbits.ANSC3 // bit 3
15540 #define AT1CC18 AT1CC1Hbits.AT1CC18 // bit 0, shadows bit in AT1CC1Hbits
15541 #define CC18 AT1CC1Hbits.CC18 // bit 0, shadows bit in AT1CC1Hbits
15542 #define AT1CC19 AT1CC1Hbits.AT1CC19 // bit 1, shadows bit in AT1CC1Hbits
15543 #define CC19 AT1CC1Hbits.CC19 // bit 1, shadows bit in AT1CC1Hbits
15545 #define AT1CC10 AT1CC1Lbits.AT1CC10 // bit 0, shadows bit in AT1CC1Lbits
15546 #define CC10 AT1CC1Lbits.CC10 // bit 0, shadows bit in AT1CC1Lbits
15547 #define AT1CC11 AT1CC1Lbits.AT1CC11 // bit 1, shadows bit in AT1CC1Lbits
15548 #define CC11 AT1CC1Lbits.CC11 // bit 1, shadows bit in AT1CC1Lbits
15549 #define AT1CC12 AT1CC1Lbits.AT1CC12 // bit 2, shadows bit in AT1CC1Lbits
15550 #define CC12 AT1CC1Lbits.CC12 // bit 2, shadows bit in AT1CC1Lbits
15551 #define AT1CC13 AT1CC1Lbits.AT1CC13 // bit 3, shadows bit in AT1CC1Lbits
15552 #define CC13 AT1CC1Lbits.CC13 // bit 3, shadows bit in AT1CC1Lbits
15553 #define AT1CC14 AT1CC1Lbits.AT1CC14 // bit 4, shadows bit in AT1CC1Lbits
15554 #define CC14 AT1CC1Lbits.CC14 // bit 4, shadows bit in AT1CC1Lbits
15555 #define AT1CC15 AT1CC1Lbits.AT1CC15 // bit 5, shadows bit in AT1CC1Lbits
15556 #define CC15 AT1CC1Lbits.CC15 // bit 5, shadows bit in AT1CC1Lbits
15557 #define AT1CC16 AT1CC1Lbits.AT1CC16 // bit 6, shadows bit in AT1CC1Lbits
15558 #define CC16 AT1CC1Lbits.CC16 // bit 6, shadows bit in AT1CC1Lbits
15559 #define AT1CC17 AT1CC1Lbits.AT1CC17 // bit 7, shadows bit in AT1CC1Lbits
15560 #define CC17 AT1CC1Lbits.CC17 // bit 7, shadows bit in AT1CC1Lbits
15562 #define AT1CC28 AT1CC2Hbits.AT1CC28 // bit 0, shadows bit in AT1CC2Hbits
15563 #define CC28 AT1CC2Hbits.CC28 // bit 0, shadows bit in AT1CC2Hbits
15564 #define AT1CC29 AT1CC2Hbits.AT1CC29 // bit 1, shadows bit in AT1CC2Hbits
15565 #define CC29 AT1CC2Hbits.CC29 // bit 1, shadows bit in AT1CC2Hbits
15567 #define AT1CC38 AT1CC3Hbits.AT1CC38 // bit 0, shadows bit in AT1CC3Hbits
15568 #define CC38 AT1CC3Hbits.CC38 // bit 0, shadows bit in AT1CC3Hbits
15569 #define AT1CC39 AT1CC3Hbits.AT1CC39 // bit 1, shadows bit in AT1CC3Hbits
15570 #define CC39 AT1CC3Hbits.CC39 // bit 1, shadows bit in AT1CC3Hbits
15572 #define AT1CC30 AT1CC3Lbits.AT1CC30 // bit 0, shadows bit in AT1CC3Lbits
15573 #define CC30 AT1CC3Lbits.CC30 // bit 0, shadows bit in AT1CC3Lbits
15574 #define AT1CC31 AT1CC3Lbits.AT1CC31 // bit 1, shadows bit in AT1CC3Lbits
15575 #define CC31 AT1CC3Lbits.CC31 // bit 1, shadows bit in AT1CC3Lbits
15576 #define AT1CC32 AT1CC3Lbits.AT1CC32 // bit 2, shadows bit in AT1CC3Lbits
15577 #define CC32 AT1CC3Lbits.CC32 // bit 2, shadows bit in AT1CC3Lbits
15578 #define AT1CC33 AT1CC3Lbits.AT1CC33 // bit 3, shadows bit in AT1CC3Lbits
15579 #define CC33 AT1CC3Lbits.CC33 // bit 3, shadows bit in AT1CC3Lbits
15580 #define AT1CC34 AT1CC3Lbits.AT1CC34 // bit 4, shadows bit in AT1CC3Lbits
15581 #define CC34 AT1CC3Lbits.CC34 // bit 4, shadows bit in AT1CC3Lbits
15582 #define AT1CC35 AT1CC3Lbits.AT1CC35 // bit 5, shadows bit in AT1CC3Lbits
15583 #define CC35 AT1CC3Lbits.CC35 // bit 5, shadows bit in AT1CC3Lbits
15584 #define AT1CC36 AT1CC3Lbits.AT1CC36 // bit 6, shadows bit in AT1CC3Lbits
15585 #define CC36 AT1CC3Lbits.CC36 // bit 6, shadows bit in AT1CC3Lbits
15586 #define AT1CC37 AT1CC3Lbits.AT1CC37 // bit 7, shadows bit in AT1CC3Lbits
15587 #define CC37 AT1CC3Lbits.CC37 // bit 7, shadows bit in AT1CC3Lbits
15589 #define AT1CC1MODE AT1CCON1bits.AT1CC1MODE // bit 0, shadows bit in AT1CCON1bits
15590 #define CC1MODE AT1CCON1bits.CC1MODE // bit 0, shadows bit in AT1CCON1bits
15591 #define AT1CAP1P AT1CCON1bits.AT1CAP1P // bit 3, shadows bit in AT1CCON1bits
15592 #define CAP1P AT1CCON1bits.CAP1P // bit 3, shadows bit in AT1CCON1bits
15593 #define AT1CC1POL AT1CCON1bits.AT1CC1POL // bit 4, shadows bit in AT1CCON1bits
15594 #define CC1POL AT1CCON1bits.CC1POL // bit 4, shadows bit in AT1CCON1bits
15595 #define AT1CC1EN AT1CCON1bits.AT1CC1EN // bit 7, shadows bit in AT1CCON1bits
15596 #define CC1EN AT1CCON1bits.CC1EN // bit 7, shadows bit in AT1CCON1bits
15598 #define AT1CC2MODE AT1CCON2bits.AT1CC2MODE // bit 0, shadows bit in AT1CCON2bits
15599 #define CC2MODE AT1CCON2bits.CC2MODE // bit 0, shadows bit in AT1CCON2bits
15600 #define AT1CAP2P AT1CCON2bits.AT1CAP2P // bit 3, shadows bit in AT1CCON2bits
15601 #define CAP2P AT1CCON2bits.CAP2P // bit 3, shadows bit in AT1CCON2bits
15602 #define AT1CC2POL AT1CCON2bits.AT1CC2POL // bit 4, shadows bit in AT1CCON2bits
15603 #define CC2POL AT1CCON2bits.CC2POL // bit 4, shadows bit in AT1CCON2bits
15604 #define AT1CC2EN AT1CCON2bits.AT1CC2EN // bit 7, shadows bit in AT1CCON2bits
15605 #define CC2EN AT1CCON2bits.CC2EN // bit 7, shadows bit in AT1CCON2bits
15607 #define AT1CC3MODE AT1CCON3bits.AT1CC3MODE // bit 0, shadows bit in AT1CCON3bits
15608 #define CC3MODE AT1CCON3bits.CC3MODE // bit 0, shadows bit in AT1CCON3bits
15609 #define AT1CAP3P AT1CCON3bits.AT1CAP3P // bit 3, shadows bit in AT1CCON3bits
15610 #define CAP3P AT1CCON3bits.CAP3P // bit 3, shadows bit in AT1CCON3bits
15611 #define AT1CC3POL AT1CCON3bits.AT1CC3POL // bit 4, shadows bit in AT1CCON3bits
15612 #define CC3POL AT1CCON3bits.CC3POL // bit 4, shadows bit in AT1CCON3bits
15613 #define AT1CC3EN AT1CCON3bits.AT1CC3EN // bit 7, shadows bit in AT1CCON3bits
15614 #define CC3EN AT1CCON3bits.CC3EN // bit 7, shadows bit in AT1CCON3bits
15616 #define CS AT1CLKbits.CS // bit 0, shadows bit in AT1CLKbits
15617 #define AT1CS AT1CLKbits.AT1CS // bit 0, shadows bit in AT1CLKbits
15618 #define CS0 AT1CLKbits.CS0 // bit 0, shadows bit in AT1CLKbits
15619 #define AT1CS0 AT1CLKbits.AT1CS0 // bit 0, shadows bit in AT1CLKbits
15621 #define MODE AT1CON0bits.MODE // bit 0, shadows bit in AT1CON0bits
15622 #define AT1MODE AT1CON0bits.AT1MODE // bit 0, shadows bit in AT1CON0bits
15623 #define APMOD AT1CON0bits.APMOD // bit 1, shadows bit in AT1CON0bits
15624 #define AT1APMOD AT1CON0bits.AT1APMOD // bit 1, shadows bit in AT1CON0bits
15625 #define POL AT1CON0bits.POL // bit 3, shadows bit in AT1CON0bits
15626 #define AT1POL AT1CON0bits.AT1POL // bit 3, shadows bit in AT1CON0bits
15627 #define PS0 AT1CON0bits.PS0 // bit 4, shadows bit in AT1CON0bits
15628 #define AT1PS0 AT1CON0bits.AT1PS0 // bit 4, shadows bit in AT1CON0bits
15629 #define PS1 AT1CON0bits.PS1 // bit 5, shadows bit in AT1CON0bits
15630 #define AT1PS1 AT1CON0bits.AT1PS1 // bit 5, shadows bit in AT1CON0bits
15631 #define PREC AT1CON0bits.PREC // bit 6, shadows bit in AT1CON0bits
15632 #define AT1PREC AT1CON0bits.AT1PREC // bit 6, shadows bit in AT1CON0bits
15633 #define EN AT1CON0bits.EN // bit 7, shadows bit in AT1CON0bits
15634 #define AT1EN AT1CON0bits.AT1EN // bit 7, shadows bit in AT1CON0bits
15636 #define VALID AT1CON1bits.VALID // bit 0, shadows bit in AT1CON1bits
15637 #define AT1VALID AT1CON1bits.AT1VALID // bit 0, shadows bit in AT1CON1bits
15638 #define ACCS AT1CON1bits.ACCS // bit 1, shadows bit in AT1CON1bits
15639 #define AT1ACCS AT1CON1bits.AT1ACCS // bit 1, shadows bit in AT1CON1bits
15640 #define MPP AT1CON1bits.MPP // bit 2, shadows bit in AT1CON1bits
15641 #define AT1MPP AT1CON1bits.AT1MPP // bit 2, shadows bit in AT1CON1bits
15642 #define PRP AT1CON1bits.PRP // bit 4, shadows bit in AT1CON1bits
15643 #define AT1PRP AT1CON1bits.AT1PRP // bit 4, shadows bit in AT1CON1bits
15644 #define PHP AT1CON1bits.PHP // bit 6, shadows bit in AT1CON1bits
15645 #define AT1PHP AT1CON1bits.AT1PHP // bit 6, shadows bit in AT1CON1bits
15647 #define AT1CP1S0 AT1CSEL1bits.AT1CP1S0 // bit 0, shadows bit in AT1CSEL1bits
15648 #define CP1S0 AT1CSEL1bits.CP1S0 // bit 0, shadows bit in AT1CSEL1bits
15649 #define AT1CP1S1 AT1CSEL1bits.AT1CP1S1 // bit 1, shadows bit in AT1CSEL1bits
15650 #define CP1S1 AT1CSEL1bits.CP1S1 // bit 1, shadows bit in AT1CSEL1bits
15651 #define AT1CP1S2 AT1CSEL1bits.AT1CP1S2 // bit 2, shadows bit in AT1CSEL1bits
15652 #define CP1S2 AT1CSEL1bits.CP1S2 // bit 2, shadows bit in AT1CSEL1bits
15654 #define AT1CP2S0 AT1CSEL2bits.AT1CP2S0 // bit 0, shadows bit in AT1CSEL2bits
15655 #define CP2S0 AT1CSEL2bits.CP2S0 // bit 0, shadows bit in AT1CSEL2bits
15656 #define AT1CP2S1 AT1CSEL2bits.AT1CP2S1 // bit 1, shadows bit in AT1CSEL2bits
15657 #define CP2S1 AT1CSEL2bits.CP2S1 // bit 1, shadows bit in AT1CSEL2bits
15658 #define AT1CP2S2 AT1CSEL2bits.AT1CP2S2 // bit 2, shadows bit in AT1CSEL2bits
15659 #define CP2S2 AT1CSEL2bits.CP2S2 // bit 2, shadows bit in AT1CSEL2bits
15661 #define AT1CP3S0 AT1CSEL3bits.AT1CP3S0 // bit 0, shadows bit in AT1CSEL3bits
15662 #define CP3S0 AT1CSEL3bits.CP3S0 // bit 0, shadows bit in AT1CSEL3bits
15663 #define AT1CP3S1 AT1CSEL3bits.AT1CP3S1 // bit 1, shadows bit in AT1CSEL3bits
15664 #define CP3S1 AT1CSEL3bits.CP3S1 // bit 1, shadows bit in AT1CSEL3bits
15665 #define AT1CP3S2 AT1CSEL3bits.AT1CP3S2 // bit 2, shadows bit in AT1CSEL3bits
15666 #define CP3S2 AT1CSEL3bits.CP3S2 // bit 2, shadows bit in AT1CSEL3bits
15668 #define AT1ERR8 AT1ERRHbits.AT1ERR8 // bit 0, shadows bit in AT1ERRHbits
15669 #define ERR8 AT1ERRHbits.ERR8 // bit 0, shadows bit in AT1ERRHbits
15670 #define ERRH0 AT1ERRHbits.ERRH0 // bit 0, shadows bit in AT1ERRHbits
15671 #define AT1ERR9 AT1ERRHbits.AT1ERR9 // bit 1, shadows bit in AT1ERRHbits
15672 #define ERR9 AT1ERRHbits.ERR9 // bit 1, shadows bit in AT1ERRHbits
15673 #define ERRH1 AT1ERRHbits.ERRH1 // bit 1, shadows bit in AT1ERRHbits
15674 #define AT1ERR10 AT1ERRHbits.AT1ERR10 // bit 2, shadows bit in AT1ERRHbits
15675 #define ERR10 AT1ERRHbits.ERR10 // bit 2, shadows bit in AT1ERRHbits
15676 #define ERRH2 AT1ERRHbits.ERRH2 // bit 2, shadows bit in AT1ERRHbits
15677 #define AT1ERR11 AT1ERRHbits.AT1ERR11 // bit 3, shadows bit in AT1ERRHbits
15678 #define ERR11 AT1ERRHbits.ERR11 // bit 3, shadows bit in AT1ERRHbits
15679 #define ERRH3 AT1ERRHbits.ERRH3 // bit 3, shadows bit in AT1ERRHbits
15680 #define AT1ERR12 AT1ERRHbits.AT1ERR12 // bit 4, shadows bit in AT1ERRHbits
15681 #define ERR12 AT1ERRHbits.ERR12 // bit 4, shadows bit in AT1ERRHbits
15682 #define ERRH4 AT1ERRHbits.ERRH4 // bit 4, shadows bit in AT1ERRHbits
15683 #define AT1ERR13 AT1ERRHbits.AT1ERR13 // bit 5, shadows bit in AT1ERRHbits
15684 #define ERR13 AT1ERRHbits.ERR13 // bit 5, shadows bit in AT1ERRHbits
15685 #define ERRH5 AT1ERRHbits.ERRH5 // bit 5, shadows bit in AT1ERRHbits
15686 #define AT1ERR14 AT1ERRHbits.AT1ERR14 // bit 6, shadows bit in AT1ERRHbits
15687 #define ERR14 AT1ERRHbits.ERR14 // bit 6, shadows bit in AT1ERRHbits
15688 #define ERRH6 AT1ERRHbits.ERRH6 // bit 6, shadows bit in AT1ERRHbits
15689 #define AT1ERR15 AT1ERRHbits.AT1ERR15 // bit 7, shadows bit in AT1ERRHbits
15690 #define ERR15 AT1ERRHbits.ERR15 // bit 7, shadows bit in AT1ERRHbits
15691 #define ERRH7 AT1ERRHbits.ERRH7 // bit 7, shadows bit in AT1ERRHbits
15693 #define AT1ERR0 AT1ERRLbits.AT1ERR0 // bit 0, shadows bit in AT1ERRLbits
15694 #define ERR0 AT1ERRLbits.ERR0 // bit 0, shadows bit in AT1ERRLbits
15695 #define ERRL0 AT1ERRLbits.ERRL0 // bit 0, shadows bit in AT1ERRLbits
15696 #define AT1ERR1 AT1ERRLbits.AT1ERR1 // bit 1, shadows bit in AT1ERRLbits
15697 #define ERR1 AT1ERRLbits.ERR1 // bit 1, shadows bit in AT1ERRLbits
15698 #define ERRL1 AT1ERRLbits.ERRL1 // bit 1, shadows bit in AT1ERRLbits
15699 #define AT1ERR2 AT1ERRLbits.AT1ERR2 // bit 2, shadows bit in AT1ERRLbits
15700 #define ERR2 AT1ERRLbits.ERR2 // bit 2, shadows bit in AT1ERRLbits
15701 #define ERRL2 AT1ERRLbits.ERRL2 // bit 2, shadows bit in AT1ERRLbits
15702 #define AT1ERR3 AT1ERRLbits.AT1ERR3 // bit 3, shadows bit in AT1ERRLbits
15703 #define ERR3 AT1ERRLbits.ERR3 // bit 3, shadows bit in AT1ERRLbits
15704 #define ERRL3 AT1ERRLbits.ERRL3 // bit 3, shadows bit in AT1ERRLbits
15705 #define AT1ERR4 AT1ERRLbits.AT1ERR4 // bit 4, shadows bit in AT1ERRLbits
15706 #define ERR4 AT1ERRLbits.ERR4 // bit 4, shadows bit in AT1ERRLbits
15707 #define ERRL4 AT1ERRLbits.ERRL4 // bit 4, shadows bit in AT1ERRLbits
15708 #define AT1ERR5 AT1ERRLbits.AT1ERR5 // bit 5, shadows bit in AT1ERRLbits
15709 #define ERR5 AT1ERRLbits.ERR5 // bit 5, shadows bit in AT1ERRLbits
15710 #define ERRL5 AT1ERRLbits.ERRL5 // bit 5, shadows bit in AT1ERRLbits
15711 #define AT1ERR6 AT1ERRLbits.AT1ERR6 // bit 6, shadows bit in AT1ERRLbits
15712 #define ERR6 AT1ERRLbits.ERR6 // bit 6, shadows bit in AT1ERRLbits
15713 #define ERRL6 AT1ERRLbits.ERRL6 // bit 6, shadows bit in AT1ERRLbits
15714 #define AT1ERR7 AT1ERRLbits.AT1ERR7 // bit 7, shadows bit in AT1ERRLbits
15715 #define ERR7 AT1ERRLbits.ERR7 // bit 7, shadows bit in AT1ERRLbits
15716 #define ERRL7 AT1ERRLbits.ERRL7 // bit 7, shadows bit in AT1ERRLbits
15718 #define AT1PERIE AT1IE0bits.AT1PERIE // bit 0
15719 #define AT1MISSIE AT1IE0bits.AT1MISSIE // bit 1
15720 #define AT1PHSIE AT1IE0bits.AT1PHSIE // bit 2
15722 #define AT1CC1IE AT1IE1bits.AT1CC1IE // bit 0
15723 #define AT1CC2IE AT1IE1bits.AT1CC2IE // bit 1
15724 #define AT1CC3IE AT1IE1bits.AT1CC3IE // bit 2
15726 #define AT1PERIF AT1IR0bits.AT1PERIF // bit 0
15727 #define AT1MISSIF AT1IR0bits.AT1MISSIF // bit 1
15728 #define AT1PHSIF AT1IR0bits.AT1PHSIF // bit 2
15730 #define AT1CC1IF AT1IR1bits.AT1CC1IF // bit 0
15731 #define AT1CC2IF AT1IR1bits.AT1CC2IF // bit 1
15732 #define AT1CC3IF AT1IR1bits.AT1CC3IF // bit 2
15734 #define AT1MISS8 AT1MISSHbits.AT1MISS8 // bit 0, shadows bit in AT1MISSHbits
15735 #define MISS8 AT1MISSHbits.MISS8 // bit 0, shadows bit in AT1MISSHbits
15736 #define AT1MISS9 AT1MISSHbits.AT1MISS9 // bit 1, shadows bit in AT1MISSHbits
15737 #define MISS9 AT1MISSHbits.MISS9 // bit 1, shadows bit in AT1MISSHbits
15738 #define AT1MISS10 AT1MISSHbits.AT1MISS10 // bit 2, shadows bit in AT1MISSHbits
15739 #define MISS10 AT1MISSHbits.MISS10 // bit 2, shadows bit in AT1MISSHbits
15740 #define AT1MISS11 AT1MISSHbits.AT1MISS11 // bit 3, shadows bit in AT1MISSHbits
15741 #define MISS11 AT1MISSHbits.MISS11 // bit 3, shadows bit in AT1MISSHbits
15742 #define AT1MISS12 AT1MISSHbits.AT1MISS12 // bit 4, shadows bit in AT1MISSHbits
15743 #define MISS12 AT1MISSHbits.MISS12 // bit 4, shadows bit in AT1MISSHbits
15744 #define AT1MISS13 AT1MISSHbits.AT1MISS13 // bit 5, shadows bit in AT1MISSHbits
15745 #define MISS13 AT1MISSHbits.MISS13 // bit 5, shadows bit in AT1MISSHbits
15746 #define AT1MISS14 AT1MISSHbits.AT1MISS14 // bit 6, shadows bit in AT1MISSHbits
15747 #define MISS14 AT1MISSHbits.MISS14 // bit 6, shadows bit in AT1MISSHbits
15748 #define AT1MISS15 AT1MISSHbits.AT1MISS15 // bit 7, shadows bit in AT1MISSHbits
15749 #define MISS15 AT1MISSHbits.MISS15 // bit 7, shadows bit in AT1MISSHbits
15751 #define AT1MISS0 AT1MISSLbits.AT1MISS0 // bit 0, shadows bit in AT1MISSLbits
15752 #define MISS0 AT1MISSLbits.MISS0 // bit 0, shadows bit in AT1MISSLbits
15753 #define AT1MISS1 AT1MISSLbits.AT1MISS1 // bit 1, shadows bit in AT1MISSLbits
15754 #define MISS1 AT1MISSLbits.MISS1 // bit 1, shadows bit in AT1MISSLbits
15755 #define AT1MISS2 AT1MISSLbits.AT1MISS2 // bit 2, shadows bit in AT1MISSLbits
15756 #define MISS2 AT1MISSLbits.MISS2 // bit 2, shadows bit in AT1MISSLbits
15757 #define AT1MISS3 AT1MISSLbits.AT1MISS3 // bit 3, shadows bit in AT1MISSLbits
15758 #define MISS3 AT1MISSLbits.MISS3 // bit 3, shadows bit in AT1MISSLbits
15759 #define AT1MISS4 AT1MISSLbits.AT1MISS4 // bit 4, shadows bit in AT1MISSLbits
15760 #define MISS4 AT1MISSLbits.MISS4 // bit 4, shadows bit in AT1MISSLbits
15761 #define AT1MISS5 AT1MISSLbits.AT1MISS5 // bit 5, shadows bit in AT1MISSLbits
15762 #define MISS5 AT1MISSLbits.MISS5 // bit 5, shadows bit in AT1MISSLbits
15763 #define AT1MISS6 AT1MISSLbits.AT1MISS6 // bit 6, shadows bit in AT1MISSLbits
15764 #define MISS6 AT1MISSLbits.MISS6 // bit 6, shadows bit in AT1MISSLbits
15765 #define AT1MISS7 AT1MISSLbits.AT1MISS7 // bit 7, shadows bit in AT1MISSLbits
15766 #define MISS7 AT1MISSLbits.MISS7 // bit 7, shadows bit in AT1MISSLbits
15768 #define AT1PER8 AT1PERHbits.AT1PER8 // bit 0, shadows bit in AT1PERHbits
15769 #define PER8 AT1PERHbits.PER8 // bit 0, shadows bit in AT1PERHbits
15770 #define PERH0 AT1PERHbits.PERH0 // bit 0, shadows bit in AT1PERHbits
15771 #define AT1PER9 AT1PERHbits.AT1PER9 // bit 1, shadows bit in AT1PERHbits
15772 #define PER9 AT1PERHbits.PER9 // bit 1, shadows bit in AT1PERHbits
15773 #define PERH1 AT1PERHbits.PERH1 // bit 1, shadows bit in AT1PERHbits
15774 #define AT1PER10 AT1PERHbits.AT1PER10 // bit 2, shadows bit in AT1PERHbits
15775 #define PER10 AT1PERHbits.PER10 // bit 2, shadows bit in AT1PERHbits
15776 #define PERH2 AT1PERHbits.PERH2 // bit 2, shadows bit in AT1PERHbits
15777 #define AT1PER11 AT1PERHbits.AT1PER11 // bit 3, shadows bit in AT1PERHbits
15778 #define PER11 AT1PERHbits.PER11 // bit 3, shadows bit in AT1PERHbits
15779 #define PERH3 AT1PERHbits.PERH3 // bit 3, shadows bit in AT1PERHbits
15780 #define AT1PER12 AT1PERHbits.AT1PER12 // bit 4, shadows bit in AT1PERHbits
15781 #define PER12 AT1PERHbits.PER12 // bit 4, shadows bit in AT1PERHbits
15782 #define PERH4 AT1PERHbits.PERH4 // bit 4, shadows bit in AT1PERHbits
15783 #define AT1PER13 AT1PERHbits.AT1PER13 // bit 5, shadows bit in AT1PERHbits
15784 #define PER13 AT1PERHbits.PER13 // bit 5, shadows bit in AT1PERHbits
15785 #define PERH5 AT1PERHbits.PERH5 // bit 5, shadows bit in AT1PERHbits
15786 #define AT1PER14 AT1PERHbits.AT1PER14 // bit 6, shadows bit in AT1PERHbits
15787 #define PER14 AT1PERHbits.PER14 // bit 6, shadows bit in AT1PERHbits
15788 #define PERH6 AT1PERHbits.PERH6 // bit 6, shadows bit in AT1PERHbits
15789 #define AT1POV AT1PERHbits.AT1POV // bit 7, shadows bit in AT1PERHbits
15790 #define PER15 AT1PERHbits.PER15 // bit 7, shadows bit in AT1PERHbits
15791 #define PERH7 AT1PERHbits.PERH7 // bit 7, shadows bit in AT1PERHbits
15793 #define AT1PER0 AT1PERLbits.AT1PER0 // bit 0, shadows bit in AT1PERLbits
15794 #define PER0 AT1PERLbits.PER0 // bit 0, shadows bit in AT1PERLbits
15795 #define PERL0 AT1PERLbits.PERL0 // bit 0, shadows bit in AT1PERLbits
15796 #define AT1PER1 AT1PERLbits.AT1PER1 // bit 1, shadows bit in AT1PERLbits
15797 #define PER1 AT1PERLbits.PER1 // bit 1, shadows bit in AT1PERLbits
15798 #define PERL1 AT1PERLbits.PERL1 // bit 1, shadows bit in AT1PERLbits
15799 #define AT1PER2 AT1PERLbits.AT1PER2 // bit 2, shadows bit in AT1PERLbits
15800 #define PER2 AT1PERLbits.PER2 // bit 2, shadows bit in AT1PERLbits
15801 #define PERL2 AT1PERLbits.PERL2 // bit 2, shadows bit in AT1PERLbits
15802 #define AT1PER3 AT1PERLbits.AT1PER3 // bit 3, shadows bit in AT1PERLbits
15803 #define PER3 AT1PERLbits.PER3 // bit 3, shadows bit in AT1PERLbits
15804 #define PERL3 AT1PERLbits.PERL3 // bit 3, shadows bit in AT1PERLbits
15805 #define AT1PER4 AT1PERLbits.AT1PER4 // bit 4, shadows bit in AT1PERLbits
15806 #define PER4 AT1PERLbits.PER4 // bit 4, shadows bit in AT1PERLbits
15807 #define PERL4 AT1PERLbits.PERL4 // bit 4, shadows bit in AT1PERLbits
15808 #define AT1PER5 AT1PERLbits.AT1PER5 // bit 5, shadows bit in AT1PERLbits
15809 #define PER5 AT1PERLbits.PER5 // bit 5, shadows bit in AT1PERLbits
15810 #define PERL5 AT1PERLbits.PERL5 // bit 5, shadows bit in AT1PERLbits
15811 #define AT1PER6 AT1PERLbits.AT1PER6 // bit 6, shadows bit in AT1PERLbits
15812 #define PER6 AT1PERLbits.PER6 // bit 6, shadows bit in AT1PERLbits
15813 #define PERL6 AT1PERLbits.PERL6 // bit 6, shadows bit in AT1PERLbits
15814 #define AT1PER7 AT1PERLbits.AT1PER7 // bit 7, shadows bit in AT1PERLbits
15815 #define PER7 AT1PERLbits.PER7 // bit 7, shadows bit in AT1PERLbits
15816 #define PERL7 AT1PERLbits.PERL7 // bit 7, shadows bit in AT1PERLbits
15818 #define AT1PHS8 AT1PHSHbits.AT1PHS8 // bit 0, shadows bit in AT1PHSHbits
15819 #define PHS8 AT1PHSHbits.PHS8 // bit 0, shadows bit in AT1PHSHbits
15820 #define PHSL8 AT1PHSHbits.PHSL8 // bit 0, shadows bit in AT1PHSHbits
15821 #define AT1PHS9 AT1PHSHbits.AT1PHS9 // bit 1, shadows bit in AT1PHSHbits
15822 #define PHS9 AT1PHSHbits.PHS9 // bit 1, shadows bit in AT1PHSHbits
15823 #define PHSL9 AT1PHSHbits.PHSL9 // bit 1, shadows bit in AT1PHSHbits
15825 #define AT1PHS0 AT1PHSLbits.AT1PHS0 // bit 0, shadows bit in AT1PHSLbits
15826 #define PHS0 AT1PHSLbits.PHS0 // bit 0, shadows bit in AT1PHSLbits
15827 #define AT1PHS1 AT1PHSLbits.AT1PHS1 // bit 1, shadows bit in AT1PHSLbits
15828 #define PHS1 AT1PHSLbits.PHS1 // bit 1, shadows bit in AT1PHSLbits
15829 #define AT1PHS2 AT1PHSLbits.AT1PHS2 // bit 2, shadows bit in AT1PHSLbits
15830 #define PHS2 AT1PHSLbits.PHS2 // bit 2, shadows bit in AT1PHSLbits
15831 #define AT1PHS3 AT1PHSLbits.AT1PHS3 // bit 3, shadows bit in AT1PHSLbits
15832 #define PHS3 AT1PHSLbits.PHS3 // bit 3, shadows bit in AT1PHSLbits
15833 #define AT1PHS4 AT1PHSLbits.AT1PHS4 // bit 4, shadows bit in AT1PHSLbits
15834 #define PHS4 AT1PHSLbits.PHS4 // bit 4, shadows bit in AT1PHSLbits
15835 #define AT1PHS5 AT1PHSLbits.AT1PHS5 // bit 5, shadows bit in AT1PHSLbits
15836 #define PHS5 AT1PHSLbits.PHS5 // bit 5, shadows bit in AT1PHSLbits
15837 #define AT1PHS6 AT1PHSLbits.AT1PHS6 // bit 6, shadows bit in AT1PHSLbits
15838 #define PHS6 AT1PHSLbits.PHS6 // bit 6, shadows bit in AT1PHSLbits
15839 #define AT1PHS7 AT1PHSLbits.AT1PHS7 // bit 7, shadows bit in AT1PHSLbits
15840 #define PHS7 AT1PHSLbits.PHS7 // bit 7, shadows bit in AT1PHSLbits
15842 #define AT1RES8 AT1RESHbits.AT1RES8 // bit 0, shadows bit in AT1RESHbits
15843 #define RES8 AT1RESHbits.RES8 // bit 0, shadows bit in AT1RESHbits
15844 #define AT1RES9 AT1RESHbits.AT1RES9 // bit 1, shadows bit in AT1RESHbits
15845 #define RES9 AT1RESHbits.RES9 // bit 1, shadows bit in AT1RESHbits
15847 #define AT1RES0 AT1RESLbits.AT1RES0 // bit 0, shadows bit in AT1RESLbits
15848 #define RES0 AT1RESLbits.RES0 // bit 0, shadows bit in AT1RESLbits
15849 #define AT1RES1 AT1RESLbits.AT1RES1 // bit 1, shadows bit in AT1RESLbits
15850 #define RES1 AT1RESLbits.RES1 // bit 1, shadows bit in AT1RESLbits
15851 #define AT1RES2 AT1RESLbits.AT1RES2 // bit 2, shadows bit in AT1RESLbits
15852 #define RES2 AT1RESLbits.RES2 // bit 2, shadows bit in AT1RESLbits
15853 #define AT1RES3 AT1RESLbits.AT1RES3 // bit 3, shadows bit in AT1RESLbits
15854 #define RES3 AT1RESLbits.RES3 // bit 3, shadows bit in AT1RESLbits
15855 #define AT1RES4 AT1RESLbits.AT1RES4 // bit 4, shadows bit in AT1RESLbits
15856 #define RES4 AT1RESLbits.RES4 // bit 4, shadows bit in AT1RESLbits
15857 #define AT1RES5 AT1RESLbits.AT1RES5 // bit 5, shadows bit in AT1RESLbits
15858 #define RES5 AT1RESLbits.RES5 // bit 5, shadows bit in AT1RESLbits
15859 #define AT1RES6 AT1RESLbits.AT1RES6 // bit 6, shadows bit in AT1RESLbits
15860 #define RES6 AT1RESLbits.RES6 // bit 6, shadows bit in AT1RESLbits
15861 #define AT1RES7 AT1RESLbits.AT1RES7 // bit 7, shadows bit in AT1RESLbits
15862 #define RES7 AT1RESLbits.RES7 // bit 7, shadows bit in AT1RESLbits
15864 #define AT1SSEL0 AT1SIGbits.AT1SSEL0 // bit 0, shadows bit in AT1SIGbits
15865 #define SSEL0 AT1SIGbits.SSEL0 // bit 0, shadows bit in AT1SIGbits
15866 #define AT1SSEL1 AT1SIGbits.AT1SSEL1 // bit 1, shadows bit in AT1SIGbits
15867 #define SSEL1 AT1SIGbits.SSEL1 // bit 1, shadows bit in AT1SIGbits
15868 #define AT1SSEL2 AT1SIGbits.AT1SSEL2 // bit 2, shadows bit in AT1SIGbits
15869 #define SSEL2 AT1SIGbits.SSEL2 // bit 2, shadows bit in AT1SIGbits
15871 #define AT1STPT8 AT1STPTHbits.AT1STPT8 // bit 0, shadows bit in AT1STPTHbits
15872 #define STPT8 AT1STPTHbits.STPT8 // bit 0, shadows bit in AT1STPTHbits
15873 #define AT1STPT9 AT1STPTHbits.AT1STPT9 // bit 1, shadows bit in AT1STPTHbits
15874 #define STPT9 AT1STPTHbits.STPT9 // bit 1, shadows bit in AT1STPTHbits
15875 #define AT1STPT10 AT1STPTHbits.AT1STPT10 // bit 2, shadows bit in AT1STPTHbits
15876 #define STPT10 AT1STPTHbits.STPT10 // bit 2, shadows bit in AT1STPTHbits
15877 #define AT1STPT11 AT1STPTHbits.AT1STPT11 // bit 3, shadows bit in AT1STPTHbits
15878 #define STPT11 AT1STPTHbits.STPT11 // bit 3, shadows bit in AT1STPTHbits
15879 #define AT1STPT12 AT1STPTHbits.AT1STPT12 // bit 4, shadows bit in AT1STPTHbits
15880 #define STPT12 AT1STPTHbits.STPT12 // bit 4, shadows bit in AT1STPTHbits
15881 #define AT1STPT13 AT1STPTHbits.AT1STPT13 // bit 5, shadows bit in AT1STPTHbits
15882 #define STPT13 AT1STPTHbits.STPT13 // bit 5, shadows bit in AT1STPTHbits
15883 #define AT1STPT14 AT1STPTHbits.AT1STPT14 // bit 6, shadows bit in AT1STPTHbits
15884 #define STPT14 AT1STPTHbits.STPT14 // bit 6, shadows bit in AT1STPTHbits
15886 #define AT1STPT0 AT1STPTLbits.AT1STPT0 // bit 0, shadows bit in AT1STPTLbits
15887 #define STPT0 AT1STPTLbits.STPT0 // bit 0, shadows bit in AT1STPTLbits
15888 #define AT1STPT1 AT1STPTLbits.AT1STPT1 // bit 1, shadows bit in AT1STPTLbits
15889 #define STPT1 AT1STPTLbits.STPT1 // bit 1, shadows bit in AT1STPTLbits
15890 #define AT1STPT2 AT1STPTLbits.AT1STPT2 // bit 2, shadows bit in AT1STPTLbits
15891 #define STPT2 AT1STPTLbits.STPT2 // bit 2, shadows bit in AT1STPTLbits
15892 #define AT1STPT3 AT1STPTLbits.AT1STPT3 // bit 3, shadows bit in AT1STPTLbits
15893 #define STPT3 AT1STPTLbits.STPT3 // bit 3, shadows bit in AT1STPTLbits
15894 #define AT1STPT4 AT1STPTLbits.AT1STPT4 // bit 4, shadows bit in AT1STPTLbits
15895 #define STPT4 AT1STPTLbits.STPT4 // bit 4, shadows bit in AT1STPTLbits
15896 #define AT1STPT5 AT1STPTLbits.AT1STPT5 // bit 5, shadows bit in AT1STPTLbits
15897 #define STPT5 AT1STPTLbits.STPT5 // bit 5, shadows bit in AT1STPTLbits
15898 #define AT1STPT6 AT1STPTLbits.AT1STPT6 // bit 6, shadows bit in AT1STPTLbits
15899 #define STPT6 AT1STPTLbits.STPT6 // bit 6, shadows bit in AT1STPTLbits
15900 #define AT1STPT7 AT1STPTLbits.AT1STPT7 // bit 7, shadows bit in AT1STPTLbits
15901 #define STPT7 AT1STPTLbits.STPT7 // bit 7, shadows bit in AT1STPTLbits
15903 #define ATCC1PPS0 ATCC1PPSbits.ATCC1PPS0 // bit 0
15904 #define ATCC1PPS1 ATCC1PPSbits.ATCC1PPS1 // bit 1
15905 #define ATCC1PPS2 ATCC1PPSbits.ATCC1PPS2 // bit 2
15906 #define ATCC1PPS3 ATCC1PPSbits.ATCC1PPS3 // bit 3
15907 #define ATCC1PPS4 ATCC1PPSbits.ATCC1PPS4 // bit 4
15909 #define ATCC2PPS0 ATCC2PPSbits.ATCC2PPS0 // bit 0
15910 #define ATCC2PPS1 ATCC2PPSbits.ATCC2PPS1 // bit 1
15911 #define ATCC2PPS2 ATCC2PPSbits.ATCC2PPS2 // bit 2
15912 #define ATCC2PPS3 ATCC2PPSbits.ATCC2PPS3 // bit 3
15913 #define ATCC2PPS4 ATCC2PPSbits.ATCC2PPS4 // bit 4
15915 #define ATCC3PPS0 ATCC3PPSbits.ATCC3PPS0 // bit 0
15916 #define ATCC3PPS1 ATCC3PPSbits.ATCC3PPS1 // bit 1
15917 #define ATCC3PPS2 ATCC3PPSbits.ATCC3PPS2 // bit 2
15918 #define ATCC3PPS3 ATCC3PPSbits.ATCC3PPS3 // bit 3
15919 #define ATCC3PPS4 ATCC3PPSbits.ATCC3PPS4 // bit 4
15921 #define ATINPPS0 ATINPPSbits.ATINPPS0 // bit 0
15922 #define ATINPPS1 ATINPPSbits.ATINPPS1 // bit 1
15923 #define ATINPPS2 ATINPPSbits.ATINPPS2 // bit 2
15924 #define ATINPPS3 ATINPPSbits.ATINPPS3 // bit 3
15925 #define ATINPPS4 ATINPPSbits.ATINPPS4 // bit 4
15927 #define ABDEN BAUD1CONbits.ABDEN // bit 0
15928 #define WUE BAUD1CONbits.WUE // bit 1
15929 #define BRG16 BAUD1CONbits.BRG16 // bit 3
15930 #define SCKP BAUD1CONbits.SCKP // bit 4
15931 #define RCIDL BAUD1CONbits.RCIDL // bit 6
15932 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
15934 #define BORRDY BORCONbits.BORRDY // bit 0
15935 #define BORFS BORCONbits.BORFS // bit 6
15936 #define SBOREN BORCONbits.SBOREN // bit 7
15938 #define BSR0 BSRbits.BSR0 // bit 0
15939 #define BSR1 BSRbits.BSR1 // bit 1
15940 #define BSR2 BSRbits.BSR2 // bit 2
15941 #define BSR3 BSRbits.BSR3 // bit 3
15942 #define BSR4 BSRbits.BSR4 // bit 4
15944 #define CTS0 CCP1CAPbits.CTS0 // bit 0, shadows bit in CCP1CAPbits
15945 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0, shadows bit in CCP1CAPbits
15946 #define CTS1 CCP1CAPbits.CTS1 // bit 1, shadows bit in CCP1CAPbits
15947 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1, shadows bit in CCP1CAPbits
15948 #define CTS2 CCP1CAPbits.CTS2 // bit 2, shadows bit in CCP1CAPbits
15949 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2, shadows bit in CCP1CAPbits
15951 #define CCP1PPS0 CCP1PPSbits.CCP1PPS0 // bit 0
15952 #define CCP1PPS1 CCP1PPSbits.CCP1PPS1 // bit 1
15953 #define CCP1PPS2 CCP1PPSbits.CCP1PPS2 // bit 2
15954 #define CCP1PPS3 CCP1PPSbits.CCP1PPS3 // bit 3
15955 #define CCP1PPS4 CCP1PPSbits.CCP1PPS4 // bit 4
15957 #define CCP2PPS0 CCP2PPSbits.CCP2PPS0 // bit 0
15958 #define CCP2PPS1 CCP2PPSbits.CCP2PPS1 // bit 1
15959 #define CCP2PPS2 CCP2PPSbits.CCP2PPS2 // bit 2
15960 #define CCP2PPS3 CCP2PPSbits.CCP2PPS3 // bit 3
15961 #define CCP2PPS4 CCP2PPSbits.CCP2PPS4 // bit 4
15963 #define CCP1TSEL0 CCPTMRSbits.CCP1TSEL0 // bit 0
15964 #define CCP1TSEL1 CCPTMRSbits.CCP1TSEL1 // bit 1
15965 #define CCP2TSEL0 CCPTMRSbits.CCP2TSEL0 // bit 2
15966 #define CCP2TSEL1 CCPTMRSbits.CCP2TSEL1 // bit 3
15967 #define P3TSEL0 CCPTMRSbits.P3TSEL0 // bit 4
15968 #define P3TSEL1 CCPTMRSbits.P3TSEL1 // bit 5
15969 #define P4TSEL0 CCPTMRSbits.P4TSEL0 // bit 6
15970 #define P4TSEL1 CCPTMRSbits.P4TSEL1 // bit 7
15972 #define CKPPS0 CKPPSbits.CKPPS0 // bit 0
15973 #define CKPPS1 CKPPSbits.CKPPS1 // bit 1
15974 #define CKPPS2 CKPPSbits.CKPPS2 // bit 2
15975 #define CKPPS3 CKPPSbits.CKPPS3 // bit 3
15976 #define CKPPS4 CKPPSbits.CKPPS4 // bit 4
15978 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
15979 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
15980 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
15981 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
15982 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
15983 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
15984 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
15985 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
15986 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
15987 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
15988 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
15989 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
15990 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
15991 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
15992 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
15993 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
15995 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
15996 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
15997 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
15998 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
15999 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
16000 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
16001 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
16002 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
16003 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
16004 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
16005 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
16006 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
16007 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
16008 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
16009 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
16010 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
16012 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
16013 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
16014 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
16015 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
16016 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
16017 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
16018 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
16019 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
16020 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
16021 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
16022 #define LC1D1S5 CLC1SEL0bits.LC1D1S5 // bit 5, shadows bit in CLC1SEL0bits
16023 #define D1S5 CLC1SEL0bits.D1S5 // bit 5, shadows bit in CLC1SEL0bits
16025 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
16026 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
16027 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
16028 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
16029 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
16030 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
16031 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
16032 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
16033 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
16034 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
16035 #define LC1D2S5 CLC1SEL1bits.LC1D2S5 // bit 5, shadows bit in CLC1SEL1bits
16036 #define D2S5 CLC1SEL1bits.D2S5 // bit 5, shadows bit in CLC1SEL1bits
16038 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
16039 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
16040 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
16041 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
16042 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
16043 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
16044 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
16045 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
16046 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
16047 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
16048 #define LC1D3S5 CLC1SEL2bits.LC1D3S5 // bit 5, shadows bit in CLC1SEL2bits
16049 #define D3S5 CLC1SEL2bits.D3S5 // bit 5, shadows bit in CLC1SEL2bits
16051 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
16052 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
16053 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
16054 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
16055 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
16056 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
16057 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
16058 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
16059 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
16060 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
16061 #define LC1D4S5 CLC1SEL3bits.LC1D4S5 // bit 5, shadows bit in CLC1SEL3bits
16062 #define D4S5 CLC1SEL3bits.D4S5 // bit 5, shadows bit in CLC1SEL3bits
16064 #define MLC1OUT CLCDATAbits.MLC1OUT // bit 0
16065 #define MLC2OUT CLCDATAbits.MLC2OUT // bit 1
16066 #define MLC3OUT CLCDATAbits.MLC3OUT // bit 2
16067 #define MLC4OUT CLCDATAbits.MLC4OUT // bit 3
16069 #define CLCIN0PPS0 CLCIN0PPSbits.CLCIN0PPS0 // bit 0
16070 #define CLCIN0PPS1 CLCIN0PPSbits.CLCIN0PPS1 // bit 1
16071 #define CLCIN0PPS2 CLCIN0PPSbits.CLCIN0PPS2 // bit 2
16072 #define CLCIN0PPS3 CLCIN0PPSbits.CLCIN0PPS3 // bit 3
16073 #define CLCIN0PPS4 CLCIN0PPSbits.CLCIN0PPS4 // bit 4
16075 #define CLCIN1PPS0 CLCIN1PPSbits.CLCIN1PPS0 // bit 0
16076 #define CLCIN1PPS1 CLCIN1PPSbits.CLCIN1PPS1 // bit 1
16077 #define CLCIN1PPS2 CLCIN1PPSbits.CLCIN1PPS2 // bit 2
16078 #define CLCIN1PPS3 CLCIN1PPSbits.CLCIN1PPS3 // bit 3
16079 #define CLCIN1PPS4 CLCIN1PPSbits.CLCIN1PPS4 // bit 4
16081 #define CLCIN2PPS0 CLCIN2PPSbits.CLCIN2PPS0 // bit 0
16082 #define CLCIN2PPS1 CLCIN2PPSbits.CLCIN2PPS1 // bit 1
16083 #define CLCIN2PPS2 CLCIN2PPSbits.CLCIN2PPS2 // bit 2
16084 #define CLCIN2PPS3 CLCIN2PPSbits.CLCIN2PPS3 // bit 3
16085 #define CLCIN2PPS4 CLCIN2PPSbits.CLCIN2PPS4 // bit 4
16087 #define CLCIN3PPS0 CLCIN3PPSbits.CLCIN3PPS0 // bit 0
16088 #define CLCIN3PPS1 CLCIN3PPSbits.CLCIN3PPS1 // bit 1
16089 #define CLCIN3PPS2 CLCIN3PPSbits.CLCIN3PPS2 // bit 2
16090 #define CLCIN3PPS3 CLCIN3PPSbits.CLCIN3PPS3 // bit 3
16091 #define CLCIN3PPS4 CLCIN3PPSbits.CLCIN3PPS4 // bit 4
16093 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
16094 #define C1HYS CM1CON0bits.C1HYS // bit 1
16095 #define C1SP CM1CON0bits.C1SP // bit 2
16096 #define C1POL CM1CON0bits.C1POL // bit 4
16097 #define C1OUT CM1CON0bits.C1OUT // bit 6
16098 #define C1ON CM1CON0bits.C1ON // bit 7
16100 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
16101 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
16102 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
16103 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
16104 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
16105 #define C1INTN CM1CON1bits.C1INTN // bit 6
16106 #define C1INTP CM1CON1bits.C1INTP // bit 7
16108 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
16109 #define C2HYS CM2CON0bits.C2HYS // bit 1
16110 #define C2SP CM2CON0bits.C2SP // bit 2
16111 #define C2POL CM2CON0bits.C2POL // bit 4
16112 #define C2OUT CM2CON0bits.C2OUT // bit 6
16113 #define C2ON CM2CON0bits.C2ON // bit 7
16115 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
16116 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
16117 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
16118 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 4
16119 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 5
16120 #define C2INTN CM2CON1bits.C2INTN // bit 6
16121 #define C2INTP CM2CON1bits.C2INTP // bit 7
16123 #define MC1OUT CMOUTbits.MC1OUT // bit 0
16124 #define MC2OUT CMOUTbits.MC2OUT // bit 1
16126 #define ACC8 CRCACCHbits.ACC8 // bit 0, shadows bit in CRCACCHbits
16127 #define CRCACC8 CRCACCHbits.CRCACC8 // bit 0, shadows bit in CRCACCHbits
16128 #define ACC9 CRCACCHbits.ACC9 // bit 1, shadows bit in CRCACCHbits
16129 #define CRCACC9 CRCACCHbits.CRCACC9 // bit 1, shadows bit in CRCACCHbits
16130 #define ACC10 CRCACCHbits.ACC10 // bit 2, shadows bit in CRCACCHbits
16131 #define CRCACC10 CRCACCHbits.CRCACC10 // bit 2, shadows bit in CRCACCHbits
16132 #define ACC11 CRCACCHbits.ACC11 // bit 3, shadows bit in CRCACCHbits
16133 #define CRCACC11 CRCACCHbits.CRCACC11 // bit 3, shadows bit in CRCACCHbits
16134 #define ACC12 CRCACCHbits.ACC12 // bit 4, shadows bit in CRCACCHbits
16135 #define CRCACC12 CRCACCHbits.CRCACC12 // bit 4, shadows bit in CRCACCHbits
16136 #define ACC13 CRCACCHbits.ACC13 // bit 5, shadows bit in CRCACCHbits
16137 #define CRCACC13 CRCACCHbits.CRCACC13 // bit 5, shadows bit in CRCACCHbits
16138 #define ACC14 CRCACCHbits.ACC14 // bit 6, shadows bit in CRCACCHbits
16139 #define CRCACC14 CRCACCHbits.CRCACC14 // bit 6, shadows bit in CRCACCHbits
16140 #define ACC15 CRCACCHbits.ACC15 // bit 7, shadows bit in CRCACCHbits
16141 #define CRCACC15 CRCACCHbits.CRCACC15 // bit 7, shadows bit in CRCACCHbits
16143 #define ACC0 CRCACCLbits.ACC0 // bit 0, shadows bit in CRCACCLbits
16144 #define CRCACC0 CRCACCLbits.CRCACC0 // bit 0, shadows bit in CRCACCLbits
16145 #define ACC1 CRCACCLbits.ACC1 // bit 1, shadows bit in CRCACCLbits
16146 #define CRCACC1 CRCACCLbits.CRCACC1 // bit 1, shadows bit in CRCACCLbits
16147 #define ACC2 CRCACCLbits.ACC2 // bit 2, shadows bit in CRCACCLbits
16148 #define CRCACC2 CRCACCLbits.CRCACC2 // bit 2, shadows bit in CRCACCLbits
16149 #define ACC3 CRCACCLbits.ACC3 // bit 3, shadows bit in CRCACCLbits
16150 #define CRCACC3 CRCACCLbits.CRCACC3 // bit 3, shadows bit in CRCACCLbits
16151 #define ACC4 CRCACCLbits.ACC4 // bit 4, shadows bit in CRCACCLbits
16152 #define CRCACC4 CRCACCLbits.CRCACC4 // bit 4, shadows bit in CRCACCLbits
16153 #define ACC5 CRCACCLbits.ACC5 // bit 5, shadows bit in CRCACCLbits
16154 #define CRCACC5 CRCACCLbits.CRCACC5 // bit 5, shadows bit in CRCACCLbits
16155 #define ACC6 CRCACCLbits.ACC6 // bit 6, shadows bit in CRCACCLbits
16156 #define CRCACC6 CRCACCLbits.CRCACC6 // bit 6, shadows bit in CRCACCLbits
16157 #define ACC7 CRCACCLbits.ACC7 // bit 7, shadows bit in CRCACCLbits
16158 #define CRCACC7 CRCACCLbits.CRCACC7 // bit 7, shadows bit in CRCACCLbits
16160 #define PLEN0 CRCCON1bits.PLEN0 // bit 0, shadows bit in CRCCON1bits
16161 #define CRCPLEN0 CRCCON1bits.CRCPLEN0 // bit 0, shadows bit in CRCCON1bits
16162 #define PLEN1 CRCCON1bits.PLEN1 // bit 1, shadows bit in CRCCON1bits
16163 #define CRCPLEN1 CRCCON1bits.CRCPLEN1 // bit 1, shadows bit in CRCCON1bits
16164 #define PLEN2 CRCCON1bits.PLEN2 // bit 2, shadows bit in CRCCON1bits
16165 #define CRCPLEN2 CRCCON1bits.CRCPLEN2 // bit 2, shadows bit in CRCCON1bits
16166 #define PLEN3 CRCCON1bits.PLEN3 // bit 3, shadows bit in CRCCON1bits
16167 #define CRCPLEN3 CRCCON1bits.CRCPLEN3 // bit 3, shadows bit in CRCCON1bits
16168 #define DLEN0 CRCCON1bits.DLEN0 // bit 4, shadows bit in CRCCON1bits
16169 #define CRCDLEN0 CRCCON1bits.CRCDLEN0 // bit 4, shadows bit in CRCCON1bits
16170 #define DLEN1 CRCCON1bits.DLEN1 // bit 5, shadows bit in CRCCON1bits
16171 #define CRCDLEN1 CRCCON1bits.CRCDLEN1 // bit 5, shadows bit in CRCCON1bits
16172 #define DLEN2 CRCCON1bits.DLEN2 // bit 6, shadows bit in CRCCON1bits
16173 #define CRCDLEN2 CRCCON1bits.CRCDLEN2 // bit 6, shadows bit in CRCCON1bits
16174 #define DLEN3 CRCCON1bits.DLEN3 // bit 7, shadows bit in CRCCON1bits
16175 #define CRCDLEN3 CRCCON1bits.CRCDLEN3 // bit 7, shadows bit in CRCCON1bits
16177 #define DAT8 CRCDATHbits.DAT8 // bit 0, shadows bit in CRCDATHbits
16178 #define CRCDAT8 CRCDATHbits.CRCDAT8 // bit 0, shadows bit in CRCDATHbits
16179 #define DAT9 CRCDATHbits.DAT9 // bit 1, shadows bit in CRCDATHbits
16180 #define CRCDAT9 CRCDATHbits.CRCDAT9 // bit 1, shadows bit in CRCDATHbits
16181 #define DAT10 CRCDATHbits.DAT10 // bit 2, shadows bit in CRCDATHbits
16182 #define CRCDAT10 CRCDATHbits.CRCDAT10 // bit 2, shadows bit in CRCDATHbits
16183 #define DAT11 CRCDATHbits.DAT11 // bit 3, shadows bit in CRCDATHbits
16184 #define CRCDAT11 CRCDATHbits.CRCDAT11 // bit 3, shadows bit in CRCDATHbits
16185 #define DAT12 CRCDATHbits.DAT12 // bit 4, shadows bit in CRCDATHbits
16186 #define CRCDAT12 CRCDATHbits.CRCDAT12 // bit 4, shadows bit in CRCDATHbits
16187 #define DAT13 CRCDATHbits.DAT13 // bit 5, shadows bit in CRCDATHbits
16188 #define CRCDAT13 CRCDATHbits.CRCDAT13 // bit 5, shadows bit in CRCDATHbits
16189 #define DAT14 CRCDATHbits.DAT14 // bit 6, shadows bit in CRCDATHbits
16190 #define CRCDAT14 CRCDATHbits.CRCDAT14 // bit 6, shadows bit in CRCDATHbits
16191 #define DAT15 CRCDATHbits.DAT15 // bit 7, shadows bit in CRCDATHbits
16192 #define CRCDAT15 CRCDATHbits.CRCDAT15 // bit 7, shadows bit in CRCDATHbits
16194 #define DAT0 CRCDATLbits.DAT0 // bit 0, shadows bit in CRCDATLbits
16195 #define CRCDAT0 CRCDATLbits.CRCDAT0 // bit 0, shadows bit in CRCDATLbits
16196 #define DAT1 CRCDATLbits.DAT1 // bit 1, shadows bit in CRCDATLbits
16197 #define CRCDAT1 CRCDATLbits.CRCDAT1 // bit 1, shadows bit in CRCDATLbits
16198 #define DAT2 CRCDATLbits.DAT2 // bit 2, shadows bit in CRCDATLbits
16199 #define CRCDAT2 CRCDATLbits.CRCDAT2 // bit 2, shadows bit in CRCDATLbits
16200 #define DAT3 CRCDATLbits.DAT3 // bit 3, shadows bit in CRCDATLbits
16201 #define CRCDAT3 CRCDATLbits.CRCDAT3 // bit 3, shadows bit in CRCDATLbits
16202 #define DAT4 CRCDATLbits.DAT4 // bit 4, shadows bit in CRCDATLbits
16203 #define CRCDAT4 CRCDATLbits.CRCDAT4 // bit 4, shadows bit in CRCDATLbits
16204 #define DAT5 CRCDATLbits.DAT5 // bit 5, shadows bit in CRCDATLbits
16205 #define CRCDAT5 CRCDATLbits.CRCDAT5 // bit 5, shadows bit in CRCDATLbits
16206 #define DAT6 CRCDATLbits.DAT6 // bit 6, shadows bit in CRCDATLbits
16207 #define CRCDAT6 CRCDATLbits.CRCDAT6 // bit 6, shadows bit in CRCDATLbits
16208 #define DAT7 CRCDATLbits.DAT7 // bit 7, shadows bit in CRCDATLbits
16209 #define CRDCDAT7 CRCDATLbits.CRDCDAT7 // bit 7, shadows bit in CRCDATLbits
16211 #define SHIFT8 CRCSHIFTHbits.SHIFT8 // bit 0, shadows bit in CRCSHIFTHbits
16212 #define CRCSHIFT8 CRCSHIFTHbits.CRCSHIFT8 // bit 0, shadows bit in CRCSHIFTHbits
16213 #define SHIFT9 CRCSHIFTHbits.SHIFT9 // bit 1, shadows bit in CRCSHIFTHbits
16214 #define CRCSHIFT9 CRCSHIFTHbits.CRCSHIFT9 // bit 1, shadows bit in CRCSHIFTHbits
16215 #define SHIFT10 CRCSHIFTHbits.SHIFT10 // bit 2, shadows bit in CRCSHIFTHbits
16216 #define CRCSHIFT10 CRCSHIFTHbits.CRCSHIFT10 // bit 2, shadows bit in CRCSHIFTHbits
16217 #define SHIFT11 CRCSHIFTHbits.SHIFT11 // bit 3, shadows bit in CRCSHIFTHbits
16218 #define CRCSHIFT11 CRCSHIFTHbits.CRCSHIFT11 // bit 3, shadows bit in CRCSHIFTHbits
16219 #define SHIFT12 CRCSHIFTHbits.SHIFT12 // bit 4, shadows bit in CRCSHIFTHbits
16220 #define CRCSHIFT12 CRCSHIFTHbits.CRCSHIFT12 // bit 4, shadows bit in CRCSHIFTHbits
16221 #define SHIFT13 CRCSHIFTHbits.SHIFT13 // bit 5, shadows bit in CRCSHIFTHbits
16222 #define CRCSHIFT13 CRCSHIFTHbits.CRCSHIFT13 // bit 5, shadows bit in CRCSHIFTHbits
16223 #define SHIFT14 CRCSHIFTHbits.SHIFT14 // bit 6, shadows bit in CRCSHIFTHbits
16224 #define CRCSHIFT14 CRCSHIFTHbits.CRCSHIFT14 // bit 6, shadows bit in CRCSHIFTHbits
16225 #define SHIFT15 CRCSHIFTHbits.SHIFT15 // bit 7, shadows bit in CRCSHIFTHbits
16226 #define CRCSHIFT15 CRCSHIFTHbits.CRCSHIFT15 // bit 7, shadows bit in CRCSHIFTHbits
16228 #define SHIFT0 CRCSHIFTLbits.SHIFT0 // bit 0, shadows bit in CRCSHIFTLbits
16229 #define CRCSHIFT0 CRCSHIFTLbits.CRCSHIFT0 // bit 0, shadows bit in CRCSHIFTLbits
16230 #define SHIFT1 CRCSHIFTLbits.SHIFT1 // bit 1, shadows bit in CRCSHIFTLbits
16231 #define CRCSHIFT1 CRCSHIFTLbits.CRCSHIFT1 // bit 1, shadows bit in CRCSHIFTLbits
16232 #define SHIFT2 CRCSHIFTLbits.SHIFT2 // bit 2, shadows bit in CRCSHIFTLbits
16233 #define CRCSHIFT2 CRCSHIFTLbits.CRCSHIFT2 // bit 2, shadows bit in CRCSHIFTLbits
16234 #define SHIFT3 CRCSHIFTLbits.SHIFT3 // bit 3, shadows bit in CRCSHIFTLbits
16235 #define CRCSHIFT3 CRCSHIFTLbits.CRCSHIFT3 // bit 3, shadows bit in CRCSHIFTLbits
16236 #define SHIFT4 CRCSHIFTLbits.SHIFT4 // bit 4, shadows bit in CRCSHIFTLbits
16237 #define CRCSHIFT4 CRCSHIFTLbits.CRCSHIFT4 // bit 4, shadows bit in CRCSHIFTLbits
16238 #define SHIFT5 CRCSHIFTLbits.SHIFT5 // bit 5, shadows bit in CRCSHIFTLbits
16239 #define CRCSHIFT5 CRCSHIFTLbits.CRCSHIFT5 // bit 5, shadows bit in CRCSHIFTLbits
16240 #define SHIFT6 CRCSHIFTLbits.SHIFT6 // bit 6, shadows bit in CRCSHIFTLbits
16241 #define CRCSHIFT6 CRCSHIFTLbits.CRCSHIFT6 // bit 6, shadows bit in CRCSHIFTLbits
16242 #define SHIFT7 CRCSHIFTLbits.SHIFT7 // bit 7, shadows bit in CRCSHIFTLbits
16243 #define CRCSHIFT7 CRCSHIFTLbits.CRCSHIFT7 // bit 7, shadows bit in CRCSHIFTLbits
16245 #define XOR8 CRCXORHbits.XOR8 // bit 0, shadows bit in CRCXORHbits
16246 #define CRCXOR8 CRCXORHbits.CRCXOR8 // bit 0, shadows bit in CRCXORHbits
16247 #define XOR9 CRCXORHbits.XOR9 // bit 1, shadows bit in CRCXORHbits
16248 #define CRCXOR9 CRCXORHbits.CRCXOR9 // bit 1, shadows bit in CRCXORHbits
16249 #define XOR10 CRCXORHbits.XOR10 // bit 2, shadows bit in CRCXORHbits
16250 #define CRCXOR10 CRCXORHbits.CRCXOR10 // bit 2, shadows bit in CRCXORHbits
16251 #define XOR11 CRCXORHbits.XOR11 // bit 3, shadows bit in CRCXORHbits
16252 #define CRCXOR11 CRCXORHbits.CRCXOR11 // bit 3, shadows bit in CRCXORHbits
16253 #define XOR12 CRCXORHbits.XOR12 // bit 4, shadows bit in CRCXORHbits
16254 #define CRCXOR12 CRCXORHbits.CRCXOR12 // bit 4, shadows bit in CRCXORHbits
16255 #define XOR13 CRCXORHbits.XOR13 // bit 5, shadows bit in CRCXORHbits
16256 #define CRCXOR13 CRCXORHbits.CRCXOR13 // bit 5, shadows bit in CRCXORHbits
16257 #define XOR14 CRCXORHbits.XOR14 // bit 6, shadows bit in CRCXORHbits
16258 #define CRCXOR14 CRCXORHbits.CRCXOR14 // bit 6, shadows bit in CRCXORHbits
16259 #define XOR15 CRCXORHbits.XOR15 // bit 7, shadows bit in CRCXORHbits
16260 #define CRCXOR15 CRCXORHbits.CRCXOR15 // bit 7, shadows bit in CRCXORHbits
16262 #define XOR1 CRCXORLbits.XOR1 // bit 1, shadows bit in CRCXORLbits
16263 #define CRCXOR1 CRCXORLbits.CRCXOR1 // bit 1, shadows bit in CRCXORLbits
16264 #define XOR2 CRCXORLbits.XOR2 // bit 2, shadows bit in CRCXORLbits
16265 #define CRCXOR2 CRCXORLbits.CRCXOR2 // bit 2, shadows bit in CRCXORLbits
16266 #define XOR3 CRCXORLbits.XOR3 // bit 3, shadows bit in CRCXORLbits
16267 #define CRCXOR3 CRCXORLbits.CRCXOR3 // bit 3, shadows bit in CRCXORLbits
16268 #define XOR4 CRCXORLbits.XOR4 // bit 4, shadows bit in CRCXORLbits
16269 #define CRCXOR4 CRCXORLbits.CRCXOR4 // bit 4, shadows bit in CRCXORLbits
16270 #define XOR5 CRCXORLbits.XOR5 // bit 5, shadows bit in CRCXORLbits
16271 #define CRCXOR5 CRCXORLbits.CRCXOR5 // bit 5, shadows bit in CRCXORLbits
16272 #define XOR6 CRCXORLbits.XOR6 // bit 6, shadows bit in CRCXORLbits
16273 #define CRCXOR6 CRCXORLbits.CRCXOR6 // bit 6, shadows bit in CRCXORLbits
16274 #define XOR7 CRCXORLbits.XOR7 // bit 7, shadows bit in CRCXORLbits
16275 #define CRCXOR7 CRCXORLbits.CRCXOR7 // bit 7, shadows bit in CRCXORLbits
16277 #define LSAC0 CWG1AS0bits.LSAC0 // bit 2, shadows bit in CWG1AS0bits
16278 #define CWG1LSAC0 CWG1AS0bits.CWG1LSAC0 // bit 2, shadows bit in CWG1AS0bits
16279 #define LSAC1 CWG1AS0bits.LSAC1 // bit 3, shadows bit in CWG1AS0bits
16280 #define CWG1LSAC1 CWG1AS0bits.CWG1LSAC1 // bit 3, shadows bit in CWG1AS0bits
16281 #define LSBD0 CWG1AS0bits.LSBD0 // bit 4, shadows bit in CWG1AS0bits
16282 #define CWG1LSBD0 CWG1AS0bits.CWG1LSBD0 // bit 4, shadows bit in CWG1AS0bits
16283 #define LSBD1 CWG1AS0bits.LSBD1 // bit 5, shadows bit in CWG1AS0bits
16284 #define CWG1LSBD1 CWG1AS0bits.CWG1LSBD1 // bit 5, shadows bit in CWG1AS0bits
16285 #define REN CWG1AS0bits.REN // bit 6, shadows bit in CWG1AS0bits
16286 #define CWG1REN CWG1AS0bits.CWG1REN // bit 6, shadows bit in CWG1AS0bits
16287 #define SHUTDOWN CWG1AS0bits.SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
16288 #define CWG1SHUTDOWN CWG1AS0bits.CWG1SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
16290 #define INAS CWG1AS1bits.INAS // bit 0, shadows bit in CWG1AS1bits
16291 #define CWG1INAS CWG1AS1bits.CWG1INAS // bit 0, shadows bit in CWG1AS1bits
16292 #define C1AS CWG1AS1bits.C1AS // bit 1, shadows bit in CWG1AS1bits
16293 #define CWG1C1AS CWG1AS1bits.CWG1C1AS // bit 1, shadows bit in CWG1AS1bits
16294 #define C2AS CWG1AS1bits.C2AS // bit 2, shadows bit in CWG1AS1bits
16295 #define CWG1C2AS CWG1AS1bits.CWG1C2AS // bit 2, shadows bit in CWG1AS1bits
16296 #define TMR2AS CWG1AS1bits.TMR2AS // bit 4, shadows bit in CWG1AS1bits
16297 #define CWG1TMR2AS CWG1AS1bits.CWG1TMR2AS // bit 4, shadows bit in CWG1AS1bits
16298 #define TMR4AS CWG1AS1bits.TMR4AS // bit 5, shadows bit in CWG1AS1bits
16299 #define CWG1TMR4AS CWG1AS1bits.CWG1TMR4AS // bit 5, shadows bit in CWG1AS1bits
16300 #define TMR6AS CWG1AS1bits.TMR6AS // bit 6, shadows bit in CWG1AS1bits
16301 #define CWG1TMR6AS CWG1AS1bits.CWG1TMR6AS // bit 6, shadows bit in CWG1AS1bits
16303 #define POLA CWG1CON1bits.POLA // bit 0, shadows bit in CWG1CON1bits
16304 #define CWG1POLA CWG1CON1bits.CWG1POLA // bit 0, shadows bit in CWG1CON1bits
16305 #define POLB CWG1CON1bits.POLB // bit 1, shadows bit in CWG1CON1bits
16306 #define CWG1POLB CWG1CON1bits.CWG1POLB // bit 1, shadows bit in CWG1CON1bits
16307 #define POLC CWG1CON1bits.POLC // bit 2, shadows bit in CWG1CON1bits
16308 #define CWG1POLC CWG1CON1bits.CWG1POLC // bit 2, shadows bit in CWG1CON1bits
16309 #define POLD CWG1CON1bits.POLD // bit 3, shadows bit in CWG1CON1bits
16310 #define CWG1POLD CWG1CON1bits.CWG1POLD // bit 3, shadows bit in CWG1CON1bits
16311 #define IN CWG1CON1bits.IN // bit 5, shadows bit in CWG1CON1bits
16312 #define CWG1IN CWG1CON1bits.CWG1IN // bit 5, shadows bit in CWG1CON1bits
16314 #define DBF0 CWG1DBFbits.DBF0 // bit 0, shadows bit in CWG1DBFbits
16315 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0, shadows bit in CWG1DBFbits
16316 #define DBF1 CWG1DBFbits.DBF1 // bit 1, shadows bit in CWG1DBFbits
16317 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1, shadows bit in CWG1DBFbits
16318 #define DBF2 CWG1DBFbits.DBF2 // bit 2, shadows bit in CWG1DBFbits
16319 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2, shadows bit in CWG1DBFbits
16320 #define DBF3 CWG1DBFbits.DBF3 // bit 3, shadows bit in CWG1DBFbits
16321 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3, shadows bit in CWG1DBFbits
16322 #define DBF4 CWG1DBFbits.DBF4 // bit 4, shadows bit in CWG1DBFbits
16323 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4, shadows bit in CWG1DBFbits
16324 #define DBF5 CWG1DBFbits.DBF5 // bit 5, shadows bit in CWG1DBFbits
16325 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5, shadows bit in CWG1DBFbits
16327 #define DBR0 CWG1DBRbits.DBR0 // bit 0, shadows bit in CWG1DBRbits
16328 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0, shadows bit in CWG1DBRbits
16329 #define DBR1 CWG1DBRbits.DBR1 // bit 1, shadows bit in CWG1DBRbits
16330 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1, shadows bit in CWG1DBRbits
16331 #define DBR2 CWG1DBRbits.DBR2 // bit 2, shadows bit in CWG1DBRbits
16332 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2, shadows bit in CWG1DBRbits
16333 #define DBR3 CWG1DBRbits.DBR3 // bit 3, shadows bit in CWG1DBRbits
16334 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3, shadows bit in CWG1DBRbits
16335 #define DBR4 CWG1DBRbits.DBR4 // bit 4, shadows bit in CWG1DBRbits
16336 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4, shadows bit in CWG1DBRbits
16337 #define DBR5 CWG1DBRbits.DBR5 // bit 5, shadows bit in CWG1DBRbits
16338 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5, shadows bit in CWG1DBRbits
16340 #define IS0 CWG1ISMbits.IS0 // bit 0, shadows bit in CWG1ISMbits
16341 #define CWG1IS0 CWG1ISMbits.CWG1IS0 // bit 0, shadows bit in CWG1ISMbits
16342 #define IS1 CWG1ISMbits.IS1 // bit 1, shadows bit in CWG1ISMbits
16343 #define CWG1IS1 CWG1ISMbits.CWG1IS1 // bit 1, shadows bit in CWG1ISMbits
16344 #define IS2 CWG1ISMbits.IS2 // bit 2, shadows bit in CWG1ISMbits
16345 #define CWG1IS2 CWG1ISMbits.CWG1IS2 // bit 2, shadows bit in CWG1ISMbits
16346 #define IS3 CWG1ISMbits.IS3 // bit 3, shadows bit in CWG1ISMbits
16347 #define CWG1IS3 CWG1ISMbits.CWG1IS3 // bit 3, shadows bit in CWG1ISMbits
16349 #define STRA CWG1OCON0bits.STRA // bit 0, shadows bit in CWG1OCON0bits
16350 #define CWG1STRA CWG1OCON0bits.CWG1STRA // bit 0, shadows bit in CWG1OCON0bits
16351 #define STRB CWG1OCON0bits.STRB // bit 1, shadows bit in CWG1OCON0bits
16352 #define CWG1STRB CWG1OCON0bits.CWG1STRB // bit 1, shadows bit in CWG1OCON0bits
16353 #define STRC CWG1OCON0bits.STRC // bit 2, shadows bit in CWG1OCON0bits
16354 #define CWG1STRC CWG1OCON0bits.CWG1STRC // bit 2, shadows bit in CWG1OCON0bits
16355 #define STRD CWG1OCON0bits.STRD // bit 3, shadows bit in CWG1OCON0bits
16356 #define CWG1STRD CWG1OCON0bits.CWG1STRD // bit 3, shadows bit in CWG1OCON0bits
16357 #define OVRA CWG1OCON0bits.OVRA // bit 4, shadows bit in CWG1OCON0bits
16358 #define CWG1OVRA CWG1OCON0bits.CWG1OVRA // bit 4, shadows bit in CWG1OCON0bits
16359 #define OVRB CWG1OCON0bits.OVRB // bit 5, shadows bit in CWG1OCON0bits
16360 #define CWG1OVRB CWG1OCON0bits.CWG1OVRB // bit 5, shadows bit in CWG1OCON0bits
16361 #define OVRC CWG1OCON0bits.OVRC // bit 6, shadows bit in CWG1OCON0bits
16362 #define CWG1OVRC CWG1OCON0bits.CWG1OVRC // bit 6, shadows bit in CWG1OCON0bits
16363 #define OVRD CWG1OCON0bits.OVRD // bit 7, shadows bit in CWG1OCON0bits
16364 #define CWG1OVRD CWG1OCON0bits.CWG1OVRD // bit 7, shadows bit in CWG1OCON0bits
16366 #define CWGINPPS0 CWGINPPSbits.CWGINPPS0 // bit 0
16367 #define CWGINPPS1 CWGINPPSbits.CWGINPPS1 // bit 1
16368 #define CWGINPPS2 CWGINPPSbits.CWGINPPS2 // bit 2
16369 #define CWGINPPS3 CWGINPPSbits.CWGINPPS3 // bit 3
16370 #define CWGINPPS4 CWGINPPSbits.CWGINPPS4 // bit 4
16372 #define D1PSS0 DAC1CON0bits.D1PSS0 // bit 2
16373 #define D1PSS1 DAC1CON0bits.D1PSS1 // bit 3
16374 #define DAC1OE DAC1CON0bits.DAC1OE // bit 5
16375 #define DAC1EN DAC1CON0bits.DAC1EN // bit 7
16377 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0
16378 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1
16379 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2
16380 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3
16381 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4
16382 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5
16383 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6
16384 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7
16386 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
16387 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
16388 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
16389 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
16390 #define TSRNG FVRCONbits.TSRNG // bit 4
16391 #define TSEN FVRCONbits.TSEN // bit 5
16392 #define FVRRDY FVRCONbits.FVRRDY // bit 6
16393 #define FVREN FVRCONbits.FVREN // bit 7
16395 #define HIDC4 HIDRVCbits.HIDC4 // bit 4
16396 #define HIDC5 HIDRVCbits.HIDC5 // bit 5
16398 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
16399 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
16400 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
16401 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
16402 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
16403 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
16405 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
16406 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
16407 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
16408 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
16409 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
16410 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
16412 #define IOCIF INTCONbits.IOCIF // bit 0
16413 #define INTF INTCONbits.INTF // bit 1
16414 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
16415 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
16416 #define IOCIE INTCONbits.IOCIE // bit 3
16417 #define INTE INTCONbits.INTE // bit 4
16418 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
16419 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
16420 #define PEIE INTCONbits.PEIE // bit 6
16421 #define GIE INTCONbits.GIE // bit 7
16423 #define INTPPS0 INTPPSbits.INTPPS0 // bit 0
16424 #define INTPPS1 INTPPSbits.INTPPS1 // bit 1
16425 #define INTPPS2 INTPPSbits.INTPPS2 // bit 2
16426 #define INTPPS3 INTPPSbits.INTPPS3 // bit 3
16427 #define INTPPS4 INTPPSbits.INTPPS4 // bit 4
16429 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
16430 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
16431 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
16432 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
16433 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
16434 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
16436 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
16437 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
16438 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
16439 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
16440 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
16441 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
16443 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
16444 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
16445 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
16446 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
16447 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
16448 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
16450 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
16451 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
16452 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
16453 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
16454 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
16455 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
16456 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
16457 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
16459 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
16460 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
16461 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
16462 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
16463 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
16464 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
16465 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
16466 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
16468 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
16469 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
16470 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
16471 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
16472 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
16473 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
16474 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
16475 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
16477 #define LATA0 LATAbits.LATA0 // bit 0
16478 #define LATA1 LATAbits.LATA1 // bit 1
16479 #define LATA2 LATAbits.LATA2 // bit 2
16480 #define LATA3 LATAbits.LATA3 // bit 3
16481 #define LATA4 LATAbits.LATA4 // bit 4
16482 #define LATA5 LATAbits.LATA5 // bit 5
16484 #define LATC0 LATCbits.LATC0 // bit 0
16485 #define LATC1 LATCbits.LATC1 // bit 1
16486 #define LATC2 LATCbits.LATC2 // bit 2
16487 #define LATC3 LATCbits.LATC3 // bit 3
16488 #define LATC4 LATCbits.LATC4 // bit 4
16489 #define LATC5 LATCbits.LATC5 // bit 5
16491 #define ODA0 ODCONAbits.ODA0 // bit 0
16492 #define ODA1 ODCONAbits.ODA1 // bit 1
16493 #define ODA2 ODCONAbits.ODA2 // bit 2
16494 #define ODA4 ODCONAbits.ODA4 // bit 4
16495 #define ODA5 ODCONAbits.ODA5 // bit 5
16497 #define ODC0 ODCONCbits.ODC0 // bit 0
16498 #define ODC1 ODCONCbits.ODC1 // bit 1
16499 #define ODC2 ODCONCbits.ODC2 // bit 2
16500 #define ODC3 ODCONCbits.ODC3 // bit 3
16501 #define ODC4 ODCONCbits.ODC4 // bit 4
16502 #define ODC5 ODCONCbits.ODC5 // bit 5
16504 #define SCS0 OSCCONbits.SCS0 // bit 0
16505 #define SCS1 OSCCONbits.SCS1 // bit 1
16506 #define IRCF0 OSCCONbits.IRCF0 // bit 3
16507 #define IRCF1 OSCCONbits.IRCF1 // bit 4
16508 #define IRCF2 OSCCONbits.IRCF2 // bit 5
16509 #define IRCF3 OSCCONbits.IRCF3 // bit 6
16510 #define SPLLEN OSCCONbits.SPLLEN // bit 7
16512 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
16513 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
16514 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
16515 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
16516 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
16517 #define OSTS OSCSTATbits.OSTS // bit 5
16518 #define PLLR OSCSTATbits.PLLR // bit 6
16520 #define TUN0 OSCTUNEbits.TUN0 // bit 0
16521 #define TUN1 OSCTUNEbits.TUN1 // bit 1
16522 #define TUN2 OSCTUNEbits.TUN2 // bit 2
16523 #define TUN3 OSCTUNEbits.TUN3 // bit 3
16524 #define TUN4 OSCTUNEbits.TUN4 // bit 4
16525 #define TUN5 OSCTUNEbits.TUN5 // bit 5
16527 #define NOT_BOR PCONbits.NOT_BOR // bit 0
16528 #define NOT_POR PCONbits.NOT_POR // bit 1
16529 #define NOT_RI PCONbits.NOT_RI // bit 2
16530 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
16531 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
16532 #define NOT_WDTWV PCONbits.NOT_WDTWV // bit 5
16533 #define STKUNF PCONbits.STKUNF // bit 6
16534 #define STKOVF PCONbits.STKOVF // bit 7
16536 #define PID1ACC24 PID1ACCHHbits.PID1ACC24 // bit 0, shadows bit in PID1ACCHHbits
16537 #define ACC24 PID1ACCHHbits.ACC24 // bit 0, shadows bit in PID1ACCHHbits
16538 #define PID1ACC25 PID1ACCHHbits.PID1ACC25 // bit 1, shadows bit in PID1ACCHHbits
16539 #define ACC25 PID1ACCHHbits.ACC25 // bit 1, shadows bit in PID1ACCHHbits
16540 #define PID1ACC26 PID1ACCHHbits.PID1ACC26 // bit 2, shadows bit in PID1ACCHHbits
16541 #define ACC26 PID1ACCHHbits.ACC26 // bit 2, shadows bit in PID1ACCHHbits
16542 #define PID1ACC27 PID1ACCHHbits.PID1ACC27 // bit 3, shadows bit in PID1ACCHHbits
16543 #define ACC27 PID1ACCHHbits.ACC27 // bit 3, shadows bit in PID1ACCHHbits
16544 #define PID1ACC28 PID1ACCHHbits.PID1ACC28 // bit 4, shadows bit in PID1ACCHHbits
16545 #define ACC28 PID1ACCHHbits.ACC28 // bit 4, shadows bit in PID1ACCHHbits
16546 #define PID1ACC29 PID1ACCHHbits.PID1ACC29 // bit 5, shadows bit in PID1ACCHHbits
16547 #define ACC29 PID1ACCHHbits.ACC29 // bit 5, shadows bit in PID1ACCHHbits
16548 #define PID1ACC30 PID1ACCHHbits.PID1ACC30 // bit 6, shadows bit in PID1ACCHHbits
16549 #define ACC30 PID1ACCHHbits.ACC30 // bit 6, shadows bit in PID1ACCHHbits
16550 #define PID1ACC31 PID1ACCHHbits.PID1ACC31 // bit 7, shadows bit in PID1ACCHHbits
16551 #define ACC31 PID1ACCHHbits.ACC31 // bit 7, shadows bit in PID1ACCHHbits
16553 #define PID1ACC16 PID1ACCHLbits.PID1ACC16 // bit 0, shadows bit in PID1ACCHLbits
16554 #define ACC16 PID1ACCHLbits.ACC16 // bit 0, shadows bit in PID1ACCHLbits
16555 #define PID1ACC17 PID1ACCHLbits.PID1ACC17 // bit 1, shadows bit in PID1ACCHLbits
16556 #define ACC17 PID1ACCHLbits.ACC17 // bit 1, shadows bit in PID1ACCHLbits
16557 #define PID1ACC18 PID1ACCHLbits.PID1ACC18 // bit 2, shadows bit in PID1ACCHLbits
16558 #define ACC18 PID1ACCHLbits.ACC18 // bit 2, shadows bit in PID1ACCHLbits
16559 #define PID1ACC19 PID1ACCHLbits.PID1ACC19 // bit 3, shadows bit in PID1ACCHLbits
16560 #define ACC19 PID1ACCHLbits.ACC19 // bit 3, shadows bit in PID1ACCHLbits
16561 #define PID1ACC20 PID1ACCHLbits.PID1ACC20 // bit 4, shadows bit in PID1ACCHLbits
16562 #define ACC20 PID1ACCHLbits.ACC20 // bit 4, shadows bit in PID1ACCHLbits
16563 #define PID1ACC21 PID1ACCHLbits.PID1ACC21 // bit 5, shadows bit in PID1ACCHLbits
16564 #define ACC21 PID1ACCHLbits.ACC21 // bit 5, shadows bit in PID1ACCHLbits
16565 #define PID1ACC22 PID1ACCHLbits.PID1ACC22 // bit 6, shadows bit in PID1ACCHLbits
16566 #define ACC22 PID1ACCHLbits.ACC22 // bit 6, shadows bit in PID1ACCHLbits
16567 #define PID1ACC23 PID1ACCHLbits.PID1ACC23 // bit 7, shadows bit in PID1ACCHLbits
16568 #define ACC23 PID1ACCHLbits.ACC23 // bit 7, shadows bit in PID1ACCHLbits
16570 #define PID1ACC32 PID1ACCUbits.PID1ACC32 // bit 0, shadows bit in PID1ACCUbits
16571 #define ACC32 PID1ACCUbits.ACC32 // bit 0, shadows bit in PID1ACCUbits
16572 #define PID1ACC33 PID1ACCUbits.PID1ACC33 // bit 1, shadows bit in PID1ACCUbits
16573 #define ACC33 PID1ACCUbits.ACC33 // bit 1, shadows bit in PID1ACCUbits
16574 #define PID1ACC34 PID1ACCUbits.PID1ACC34 // bit 2, shadows bit in PID1ACCUbits
16575 #define ACC34 PID1ACCUbits.ACC34 // bit 2, shadows bit in PID1ACCUbits
16577 #define PID1IN8 PID1INHbits.PID1IN8 // bit 0, shadows bit in PID1INHbits
16578 #define IN8 PID1INHbits.IN8 // bit 0, shadows bit in PID1INHbits
16579 #define PID1IN9 PID1INHbits.PID1IN9 // bit 1, shadows bit in PID1INHbits
16580 #define IN9 PID1INHbits.IN9 // bit 1, shadows bit in PID1INHbits
16581 #define PID1IN10 PID1INHbits.PID1IN10 // bit 2, shadows bit in PID1INHbits
16582 #define IN10 PID1INHbits.IN10 // bit 2, shadows bit in PID1INHbits
16583 #define PID1IN11 PID1INHbits.PID1IN11 // bit 3, shadows bit in PID1INHbits
16584 #define IN11 PID1INHbits.IN11 // bit 3, shadows bit in PID1INHbits
16585 #define PID1IN12 PID1INHbits.PID1IN12 // bit 4, shadows bit in PID1INHbits
16586 #define IN12 PID1INHbits.IN12 // bit 4, shadows bit in PID1INHbits
16587 #define PID1IN13 PID1INHbits.PID1IN13 // bit 5, shadows bit in PID1INHbits
16588 #define IN13 PID1INHbits.IN13 // bit 5, shadows bit in PID1INHbits
16589 #define PID1IN14 PID1INHbits.PID1IN14 // bit 6, shadows bit in PID1INHbits
16590 #define IN14 PID1INHbits.IN14 // bit 6, shadows bit in PID1INHbits
16591 #define PID1IN15 PID1INHbits.PID1IN15 // bit 7, shadows bit in PID1INHbits
16592 #define IN15 PID1INHbits.IN15 // bit 7, shadows bit in PID1INHbits
16594 #define PID1IN0 PID1INLbits.PID1IN0 // bit 0, shadows bit in PID1INLbits
16595 #define IN0 PID1INLbits.IN0 // bit 0, shadows bit in PID1INLbits
16596 #define PID1IN1 PID1INLbits.PID1IN1 // bit 1, shadows bit in PID1INLbits
16597 #define IN1 PID1INLbits.IN1 // bit 1, shadows bit in PID1INLbits
16598 #define PID1IN2 PID1INLbits.PID1IN2 // bit 2, shadows bit in PID1INLbits
16599 #define IN2 PID1INLbits.IN2 // bit 2, shadows bit in PID1INLbits
16600 #define PID1IN3 PID1INLbits.PID1IN3 // bit 3, shadows bit in PID1INLbits
16601 #define IN3 PID1INLbits.IN3 // bit 3, shadows bit in PID1INLbits
16602 #define PID1IN4 PID1INLbits.PID1IN4 // bit 4, shadows bit in PID1INLbits
16603 #define IN4 PID1INLbits.IN4 // bit 4, shadows bit in PID1INLbits
16604 #define PID1IN5 PID1INLbits.PID1IN5 // bit 5, shadows bit in PID1INLbits
16605 #define IN5 PID1INLbits.IN5 // bit 5, shadows bit in PID1INLbits
16606 #define PID1IN6 PID1INLbits.PID1IN6 // bit 6, shadows bit in PID1INLbits
16607 #define IN6 PID1INLbits.IN6 // bit 6, shadows bit in PID1INLbits
16608 #define PID1IN7 PID1INLbits.PID1IN7 // bit 7, shadows bit in PID1INLbits
16609 #define IN7 PID1INLbits.IN7 // bit 7, shadows bit in PID1INLbits
16611 #define PID1K18 PID1K1Hbits.PID1K18 // bit 0, shadows bit in PID1K1Hbits
16612 #define K18 PID1K1Hbits.K18 // bit 0, shadows bit in PID1K1Hbits
16613 #define PID1K19 PID1K1Hbits.PID1K19 // bit 1, shadows bit in PID1K1Hbits
16614 #define K19 PID1K1Hbits.K19 // bit 1, shadows bit in PID1K1Hbits
16615 #define PID1K110 PID1K1Hbits.PID1K110 // bit 2, shadows bit in PID1K1Hbits
16616 #define K110 PID1K1Hbits.K110 // bit 2, shadows bit in PID1K1Hbits
16617 #define PID1K111 PID1K1Hbits.PID1K111 // bit 3, shadows bit in PID1K1Hbits
16618 #define K111 PID1K1Hbits.K111 // bit 3, shadows bit in PID1K1Hbits
16619 #define PID1K112 PID1K1Hbits.PID1K112 // bit 4, shadows bit in PID1K1Hbits
16620 #define K112 PID1K1Hbits.K112 // bit 4, shadows bit in PID1K1Hbits
16621 #define PID1K113 PID1K1Hbits.PID1K113 // bit 5, shadows bit in PID1K1Hbits
16622 #define K113 PID1K1Hbits.K113 // bit 5, shadows bit in PID1K1Hbits
16623 #define PID1K114 PID1K1Hbits.PID1K114 // bit 6, shadows bit in PID1K1Hbits
16624 #define K114 PID1K1Hbits.K114 // bit 6, shadows bit in PID1K1Hbits
16625 #define PID1K115 PID1K1Hbits.PID1K115 // bit 7, shadows bit in PID1K1Hbits
16626 #define K115 PID1K1Hbits.K115 // bit 7, shadows bit in PID1K1Hbits
16628 #define PID1K10 PID1K1Lbits.PID1K10 // bit 0, shadows bit in PID1K1Lbits
16629 #define K10 PID1K1Lbits.K10 // bit 0, shadows bit in PID1K1Lbits
16630 #define PID1K11 PID1K1Lbits.PID1K11 // bit 1, shadows bit in PID1K1Lbits
16631 #define K11 PID1K1Lbits.K11 // bit 1, shadows bit in PID1K1Lbits
16632 #define PID1K12 PID1K1Lbits.PID1K12 // bit 2, shadows bit in PID1K1Lbits
16633 #define K12 PID1K1Lbits.K12 // bit 2, shadows bit in PID1K1Lbits
16634 #define PID1K13 PID1K1Lbits.PID1K13 // bit 3, shadows bit in PID1K1Lbits
16635 #define K13 PID1K1Lbits.K13 // bit 3, shadows bit in PID1K1Lbits
16636 #define PID1K14 PID1K1Lbits.PID1K14 // bit 4, shadows bit in PID1K1Lbits
16637 #define K14 PID1K1Lbits.K14 // bit 4, shadows bit in PID1K1Lbits
16638 #define PID1K15 PID1K1Lbits.PID1K15 // bit 5, shadows bit in PID1K1Lbits
16639 #define K15 PID1K1Lbits.K15 // bit 5, shadows bit in PID1K1Lbits
16640 #define PID1K16 PID1K1Lbits.PID1K16 // bit 6, shadows bit in PID1K1Lbits
16641 #define K16 PID1K1Lbits.K16 // bit 6, shadows bit in PID1K1Lbits
16642 #define PID1K17 PID1K1Lbits.PID1K17 // bit 7, shadows bit in PID1K1Lbits
16643 #define K17 PID1K1Lbits.K17 // bit 7, shadows bit in PID1K1Lbits
16645 #define PID1K28 PID1K2Hbits.PID1K28 // bit 0, shadows bit in PID1K2Hbits
16646 #define K28 PID1K2Hbits.K28 // bit 0, shadows bit in PID1K2Hbits
16647 #define PID1K29 PID1K2Hbits.PID1K29 // bit 1, shadows bit in PID1K2Hbits
16648 #define K29 PID1K2Hbits.K29 // bit 1, shadows bit in PID1K2Hbits
16649 #define PID1K210 PID1K2Hbits.PID1K210 // bit 2, shadows bit in PID1K2Hbits
16650 #define K210 PID1K2Hbits.K210 // bit 2, shadows bit in PID1K2Hbits
16651 #define PID1K211 PID1K2Hbits.PID1K211 // bit 3, shadows bit in PID1K2Hbits
16652 #define K211 PID1K2Hbits.K211 // bit 3, shadows bit in PID1K2Hbits
16653 #define PID1K212 PID1K2Hbits.PID1K212 // bit 4, shadows bit in PID1K2Hbits
16654 #define K212 PID1K2Hbits.K212 // bit 4, shadows bit in PID1K2Hbits
16655 #define PID1K213 PID1K2Hbits.PID1K213 // bit 5, shadows bit in PID1K2Hbits
16656 #define K213 PID1K2Hbits.K213 // bit 5, shadows bit in PID1K2Hbits
16657 #define PID1K214 PID1K2Hbits.PID1K214 // bit 6, shadows bit in PID1K2Hbits
16658 #define K214 PID1K2Hbits.K214 // bit 6, shadows bit in PID1K2Hbits
16659 #define PID1K215 PID1K2Hbits.PID1K215 // bit 7, shadows bit in PID1K2Hbits
16660 #define K215 PID1K2Hbits.K215 // bit 7, shadows bit in PID1K2Hbits
16662 #define PID1K20 PID1K2Lbits.PID1K20 // bit 0, shadows bit in PID1K2Lbits
16663 #define K20 PID1K2Lbits.K20 // bit 0, shadows bit in PID1K2Lbits
16664 #define PID1K21 PID1K2Lbits.PID1K21 // bit 1, shadows bit in PID1K2Lbits
16665 #define K21 PID1K2Lbits.K21 // bit 1, shadows bit in PID1K2Lbits
16666 #define PID1K22 PID1K2Lbits.PID1K22 // bit 2, shadows bit in PID1K2Lbits
16667 #define K22 PID1K2Lbits.K22 // bit 2, shadows bit in PID1K2Lbits
16668 #define PID1K23 PID1K2Lbits.PID1K23 // bit 3, shadows bit in PID1K2Lbits
16669 #define K23 PID1K2Lbits.K23 // bit 3, shadows bit in PID1K2Lbits
16670 #define PID1K24 PID1K2Lbits.PID1K24 // bit 4, shadows bit in PID1K2Lbits
16671 #define K24 PID1K2Lbits.K24 // bit 4, shadows bit in PID1K2Lbits
16672 #define PID1K25 PID1K2Lbits.PID1K25 // bit 5, shadows bit in PID1K2Lbits
16673 #define K25 PID1K2Lbits.K25 // bit 5, shadows bit in PID1K2Lbits
16674 #define PID1K26 PID1K2Lbits.PID1K26 // bit 6, shadows bit in PID1K2Lbits
16675 #define K26 PID1K2Lbits.K26 // bit 6, shadows bit in PID1K2Lbits
16676 #define PID1K27 PID1K2Lbits.PID1K27 // bit 7, shadows bit in PID1K2Lbits
16677 #define K27 PID1K2Lbits.K27 // bit 7, shadows bit in PID1K2Lbits
16679 #define PID1K38 PID1K3Hbits.PID1K38 // bit 0, shadows bit in PID1K3Hbits
16680 #define K38 PID1K3Hbits.K38 // bit 0, shadows bit in PID1K3Hbits
16681 #define PID1K39 PID1K3Hbits.PID1K39 // bit 1, shadows bit in PID1K3Hbits
16682 #define K39 PID1K3Hbits.K39 // bit 1, shadows bit in PID1K3Hbits
16683 #define PID1K310 PID1K3Hbits.PID1K310 // bit 2, shadows bit in PID1K3Hbits
16684 #define K310 PID1K3Hbits.K310 // bit 2, shadows bit in PID1K3Hbits
16685 #define PID1K311 PID1K3Hbits.PID1K311 // bit 3, shadows bit in PID1K3Hbits
16686 #define K311 PID1K3Hbits.K311 // bit 3, shadows bit in PID1K3Hbits
16687 #define PID1K312 PID1K3Hbits.PID1K312 // bit 4, shadows bit in PID1K3Hbits
16688 #define K312 PID1K3Hbits.K312 // bit 4, shadows bit in PID1K3Hbits
16689 #define PID1K313 PID1K3Hbits.PID1K313 // bit 5, shadows bit in PID1K3Hbits
16690 #define K313 PID1K3Hbits.K313 // bit 5, shadows bit in PID1K3Hbits
16691 #define PID1K314 PID1K3Hbits.PID1K314 // bit 6, shadows bit in PID1K3Hbits
16692 #define K314 PID1K3Hbits.K314 // bit 6, shadows bit in PID1K3Hbits
16693 #define PID1K315 PID1K3Hbits.PID1K315 // bit 7, shadows bit in PID1K3Hbits
16694 #define K315 PID1K3Hbits.K315 // bit 7, shadows bit in PID1K3Hbits
16696 #define PID1K30 PID1K3Lbits.PID1K30 // bit 0, shadows bit in PID1K3Lbits
16697 #define K30 PID1K3Lbits.K30 // bit 0, shadows bit in PID1K3Lbits
16698 #define PID1K31 PID1K3Lbits.PID1K31 // bit 1, shadows bit in PID1K3Lbits
16699 #define K31 PID1K3Lbits.K31 // bit 1, shadows bit in PID1K3Lbits
16700 #define PID1K32 PID1K3Lbits.PID1K32 // bit 2, shadows bit in PID1K3Lbits
16701 #define K32 PID1K3Lbits.K32 // bit 2, shadows bit in PID1K3Lbits
16702 #define PID1K33 PID1K3Lbits.PID1K33 // bit 3, shadows bit in PID1K3Lbits
16703 #define K33 PID1K3Lbits.K33 // bit 3, shadows bit in PID1K3Lbits
16704 #define PID1K34 PID1K3Lbits.PID1K34 // bit 4, shadows bit in PID1K3Lbits
16705 #define K34 PID1K3Lbits.K34 // bit 4, shadows bit in PID1K3Lbits
16706 #define PID1K35 PID1K3Lbits.PID1K35 // bit 5, shadows bit in PID1K3Lbits
16707 #define K35 PID1K3Lbits.K35 // bit 5, shadows bit in PID1K3Lbits
16708 #define PID1K36 PID1K3Lbits.PID1K36 // bit 6, shadows bit in PID1K3Lbits
16709 #define K36 PID1K3Lbits.K36 // bit 6, shadows bit in PID1K3Lbits
16710 #define PID1K37 PID1K3Lbits.PID1K37 // bit 7, shadows bit in PID1K3Lbits
16711 #define K37 PID1K3Lbits.K37 // bit 7, shadows bit in PID1K3Lbits
16713 #define PID1OUT24 PID1OUTHHbits.PID1OUT24 // bit 0, shadows bit in PID1OUTHHbits
16714 #define OUT24 PID1OUTHHbits.OUT24 // bit 0, shadows bit in PID1OUTHHbits
16715 #define PID1OUT25 PID1OUTHHbits.PID1OUT25 // bit 1, shadows bit in PID1OUTHHbits
16716 #define OUT25 PID1OUTHHbits.OUT25 // bit 1, shadows bit in PID1OUTHHbits
16717 #define PID1OUT26 PID1OUTHHbits.PID1OUT26 // bit 2, shadows bit in PID1OUTHHbits
16718 #define OUT26 PID1OUTHHbits.OUT26 // bit 2, shadows bit in PID1OUTHHbits
16719 #define PID1OUT27 PID1OUTHHbits.PID1OUT27 // bit 3, shadows bit in PID1OUTHHbits
16720 #define OUT27 PID1OUTHHbits.OUT27 // bit 3, shadows bit in PID1OUTHHbits
16721 #define PID1OUT28 PID1OUTHHbits.PID1OUT28 // bit 4, shadows bit in PID1OUTHHbits
16722 #define OUT28 PID1OUTHHbits.OUT28 // bit 4, shadows bit in PID1OUTHHbits
16723 #define PID1OUT29 PID1OUTHHbits.PID1OUT29 // bit 5, shadows bit in PID1OUTHHbits
16724 #define OUT29 PID1OUTHHbits.OUT29 // bit 5, shadows bit in PID1OUTHHbits
16725 #define PID1OUT30 PID1OUTHHbits.PID1OUT30 // bit 6, shadows bit in PID1OUTHHbits
16726 #define OUT30 PID1OUTHHbits.OUT30 // bit 6, shadows bit in PID1OUTHHbits
16727 #define PID1OUT31 PID1OUTHHbits.PID1OUT31 // bit 7, shadows bit in PID1OUTHHbits
16728 #define OUT31 PID1OUTHHbits.OUT31 // bit 7, shadows bit in PID1OUTHHbits
16730 #define PID1OUT16 PID1OUTHLbits.PID1OUT16 // bit 0, shadows bit in PID1OUTHLbits
16731 #define OUT16 PID1OUTHLbits.OUT16 // bit 0, shadows bit in PID1OUTHLbits
16732 #define PID1OUT17 PID1OUTHLbits.PID1OUT17 // bit 1, shadows bit in PID1OUTHLbits
16733 #define OUT17 PID1OUTHLbits.OUT17 // bit 1, shadows bit in PID1OUTHLbits
16734 #define PID1OUT18 PID1OUTHLbits.PID1OUT18 // bit 2, shadows bit in PID1OUTHLbits
16735 #define OUT18 PID1OUTHLbits.OUT18 // bit 2, shadows bit in PID1OUTHLbits
16736 #define PID1OUT19 PID1OUTHLbits.PID1OUT19 // bit 3, shadows bit in PID1OUTHLbits
16737 #define OUT19 PID1OUTHLbits.OUT19 // bit 3, shadows bit in PID1OUTHLbits
16738 #define PID1OUT20 PID1OUTHLbits.PID1OUT20 // bit 4, shadows bit in PID1OUTHLbits
16739 #define OUT20 PID1OUTHLbits.OUT20 // bit 4, shadows bit in PID1OUTHLbits
16740 #define PID1OUT21 PID1OUTHLbits.PID1OUT21 // bit 5, shadows bit in PID1OUTHLbits
16741 #define OUT21 PID1OUTHLbits.OUT21 // bit 5, shadows bit in PID1OUTHLbits
16742 #define PID1OUT22 PID1OUTHLbits.PID1OUT22 // bit 6, shadows bit in PID1OUTHLbits
16743 #define OUT22 PID1OUTHLbits.OUT22 // bit 6, shadows bit in PID1OUTHLbits
16744 #define PID1OUT23 PID1OUTHLbits.PID1OUT23 // bit 7, shadows bit in PID1OUTHLbits
16745 #define OUT23 PID1OUTHLbits.OUT23 // bit 7, shadows bit in PID1OUTHLbits
16747 #define PID1OUT8 PID1OUTLHbits.PID1OUT8 // bit 0, shadows bit in PID1OUTLHbits
16748 #define OUT8 PID1OUTLHbits.OUT8 // bit 0, shadows bit in PID1OUTLHbits
16749 #define PID1OUT9 PID1OUTLHbits.PID1OUT9 // bit 1, shadows bit in PID1OUTLHbits
16750 #define OUT9 PID1OUTLHbits.OUT9 // bit 1, shadows bit in PID1OUTLHbits
16751 #define PID1OUT10 PID1OUTLHbits.PID1OUT10 // bit 2, shadows bit in PID1OUTLHbits
16752 #define OUT10 PID1OUTLHbits.OUT10 // bit 2, shadows bit in PID1OUTLHbits
16753 #define PID1OUT11 PID1OUTLHbits.PID1OUT11 // bit 3, shadows bit in PID1OUTLHbits
16754 #define OUT11 PID1OUTLHbits.OUT11 // bit 3, shadows bit in PID1OUTLHbits
16755 #define PID1OUT12 PID1OUTLHbits.PID1OUT12 // bit 4, shadows bit in PID1OUTLHbits
16756 #define OUT12 PID1OUTLHbits.OUT12 // bit 4, shadows bit in PID1OUTLHbits
16757 #define PID1OUT13 PID1OUTLHbits.PID1OUT13 // bit 5, shadows bit in PID1OUTLHbits
16758 #define OUT13 PID1OUTLHbits.OUT13 // bit 5, shadows bit in PID1OUTLHbits
16759 #define PID1OUT14 PID1OUTLHbits.PID1OUT14 // bit 6, shadows bit in PID1OUTLHbits
16760 #define OUT14 PID1OUTLHbits.OUT14 // bit 6, shadows bit in PID1OUTLHbits
16761 #define PID1OUT15 PID1OUTLHbits.PID1OUT15 // bit 7, shadows bit in PID1OUTLHbits
16762 #define OUT15 PID1OUTLHbits.OUT15 // bit 7, shadows bit in PID1OUTLHbits
16764 #define PID1OUT0 PID1OUTLLbits.PID1OUT0 // bit 0, shadows bit in PID1OUTLLbits
16765 #define OUT0 PID1OUTLLbits.OUT0 // bit 0, shadows bit in PID1OUTLLbits
16766 #define PID1OUT1 PID1OUTLLbits.PID1OUT1 // bit 1, shadows bit in PID1OUTLLbits
16767 #define OUT1 PID1OUTLLbits.OUT1 // bit 1, shadows bit in PID1OUTLLbits
16768 #define PID1OUT2 PID1OUTLLbits.PID1OUT2 // bit 2, shadows bit in PID1OUTLLbits
16769 #define OUT2 PID1OUTLLbits.OUT2 // bit 2, shadows bit in PID1OUTLLbits
16770 #define PID1OUT3 PID1OUTLLbits.PID1OUT3 // bit 3, shadows bit in PID1OUTLLbits
16771 #define OUT3 PID1OUTLLbits.OUT3 // bit 3, shadows bit in PID1OUTLLbits
16772 #define PID1OUT4 PID1OUTLLbits.PID1OUT4 // bit 4, shadows bit in PID1OUTLLbits
16773 #define OUT4 PID1OUTLLbits.OUT4 // bit 4, shadows bit in PID1OUTLLbits
16774 #define PID1OUT5 PID1OUTLLbits.PID1OUT5 // bit 5, shadows bit in PID1OUTLLbits
16775 #define OUT5 PID1OUTLLbits.OUT5 // bit 5, shadows bit in PID1OUTLLbits
16776 #define PID1OUT6 PID1OUTLLbits.PID1OUT6 // bit 6, shadows bit in PID1OUTLLbits
16777 #define OUT6 PID1OUTLLbits.OUT6 // bit 6, shadows bit in PID1OUTLLbits
16778 #define PID1OUT7 PID1OUTLLbits.PID1OUT7 // bit 7, shadows bit in PID1OUTLLbits
16779 #define OUT7 PID1OUTLLbits.OUT7 // bit 7, shadows bit in PID1OUTLLbits
16781 #define PID1OUT32 PID1OUTUbits.PID1OUT32 // bit 0, shadows bit in PID1OUTUbits
16782 #define OUT32 PID1OUTUbits.OUT32 // bit 0, shadows bit in PID1OUTUbits
16783 #define PID1OUT33 PID1OUTUbits.PID1OUT33 // bit 1, shadows bit in PID1OUTUbits
16784 #define OUT33 PID1OUTUbits.OUT33 // bit 1, shadows bit in PID1OUTUbits
16785 #define PID1OUT34 PID1OUTUbits.PID1OUT34 // bit 2, shadows bit in PID1OUTUbits
16786 #define OUT34 PID1OUTUbits.OUT34 // bit 2, shadows bit in PID1OUTUbits
16787 #define PID1OUT35 PID1OUTUbits.PID1OUT35 // bit 3, shadows bit in PID1OUTUbits
16788 #define OUT35 PID1OUTUbits.OUT35 // bit 3, shadows bit in PID1OUTUbits
16790 #define PID1SET8 PID1SETHbits.PID1SET8 // bit 0, shadows bit in PID1SETHbits
16791 #define SET8 PID1SETHbits.SET8 // bit 0, shadows bit in PID1SETHbits
16792 #define PID1SET9 PID1SETHbits.PID1SET9 // bit 1, shadows bit in PID1SETHbits
16793 #define SET9 PID1SETHbits.SET9 // bit 1, shadows bit in PID1SETHbits
16794 #define PID1SET10 PID1SETHbits.PID1SET10 // bit 2, shadows bit in PID1SETHbits
16795 #define SET10 PID1SETHbits.SET10 // bit 2, shadows bit in PID1SETHbits
16796 #define PID1SET11 PID1SETHbits.PID1SET11 // bit 3, shadows bit in PID1SETHbits
16797 #define SET11 PID1SETHbits.SET11 // bit 3, shadows bit in PID1SETHbits
16798 #define PID1SET12 PID1SETHbits.PID1SET12 // bit 4, shadows bit in PID1SETHbits
16799 #define SET12 PID1SETHbits.SET12 // bit 4, shadows bit in PID1SETHbits
16800 #define PID1SET13 PID1SETHbits.PID1SET13 // bit 5, shadows bit in PID1SETHbits
16801 #define SET13 PID1SETHbits.SET13 // bit 5, shadows bit in PID1SETHbits
16802 #define PID1SET14 PID1SETHbits.PID1SET14 // bit 6, shadows bit in PID1SETHbits
16803 #define SET14 PID1SETHbits.SET14 // bit 6, shadows bit in PID1SETHbits
16804 #define PID1SET15 PID1SETHbits.PID1SET15 // bit 7, shadows bit in PID1SETHbits
16805 #define SET15 PID1SETHbits.SET15 // bit 7, shadows bit in PID1SETHbits
16807 #define PID1SET0 PID1SETLbits.PID1SET0 // bit 0, shadows bit in PID1SETLbits
16808 #define SET0 PID1SETLbits.SET0 // bit 0, shadows bit in PID1SETLbits
16809 #define PID1SET1 PID1SETLbits.PID1SET1 // bit 1, shadows bit in PID1SETLbits
16810 #define SET1 PID1SETLbits.SET1 // bit 1, shadows bit in PID1SETLbits
16811 #define PID1SET2 PID1SETLbits.PID1SET2 // bit 2, shadows bit in PID1SETLbits
16812 #define SET2 PID1SETLbits.SET2 // bit 2, shadows bit in PID1SETLbits
16813 #define PID1SET3 PID1SETLbits.PID1SET3 // bit 3, shadows bit in PID1SETLbits
16814 #define SET3 PID1SETLbits.SET3 // bit 3, shadows bit in PID1SETLbits
16815 #define PID1SET4 PID1SETLbits.PID1SET4 // bit 4, shadows bit in PID1SETLbits
16816 #define SET4 PID1SETLbits.SET4 // bit 4, shadows bit in PID1SETLbits
16817 #define PID1SET5 PID1SETLbits.PID1SET5 // bit 5, shadows bit in PID1SETLbits
16818 #define SET5 PID1SETLbits.SET5 // bit 5, shadows bit in PID1SETLbits
16819 #define PID1SET6 PID1SETLbits.PID1SET6 // bit 6, shadows bit in PID1SETLbits
16820 #define SET6 PID1SETLbits.SET6 // bit 6, shadows bit in PID1SETLbits
16821 #define PID1SET7 PID1SETLbits.PID1SET7 // bit 7, shadows bit in PID1SETLbits
16822 #define SET7 PID1SETLbits.SET7 // bit 7, shadows bit in PID1SETLbits
16824 #define PID1Z18 PID1Z1Hbits.PID1Z18 // bit 0, shadows bit in PID1Z1Hbits
16825 #define Z18 PID1Z1Hbits.Z18 // bit 0, shadows bit in PID1Z1Hbits
16826 #define PID1Z19 PID1Z1Hbits.PID1Z19 // bit 1, shadows bit in PID1Z1Hbits
16827 #define Z19 PID1Z1Hbits.Z19 // bit 1, shadows bit in PID1Z1Hbits
16828 #define PID1Z110 PID1Z1Hbits.PID1Z110 // bit 2, shadows bit in PID1Z1Hbits
16829 #define Z110 PID1Z1Hbits.Z110 // bit 2, shadows bit in PID1Z1Hbits
16830 #define PID1Z111 PID1Z1Hbits.PID1Z111 // bit 3, shadows bit in PID1Z1Hbits
16831 #define Z111 PID1Z1Hbits.Z111 // bit 3, shadows bit in PID1Z1Hbits
16832 #define PID1Z112 PID1Z1Hbits.PID1Z112 // bit 4, shadows bit in PID1Z1Hbits
16833 #define Z112 PID1Z1Hbits.Z112 // bit 4, shadows bit in PID1Z1Hbits
16834 #define PID1Z113 PID1Z1Hbits.PID1Z113 // bit 5, shadows bit in PID1Z1Hbits
16835 #define Z113 PID1Z1Hbits.Z113 // bit 5, shadows bit in PID1Z1Hbits
16836 #define PID1Z114 PID1Z1Hbits.PID1Z114 // bit 6, shadows bit in PID1Z1Hbits
16837 #define Z114 PID1Z1Hbits.Z114 // bit 6, shadows bit in PID1Z1Hbits
16838 #define PID1Z115 PID1Z1Hbits.PID1Z115 // bit 7, shadows bit in PID1Z1Hbits
16839 #define Z115 PID1Z1Hbits.Z115 // bit 7, shadows bit in PID1Z1Hbits
16841 #define PID1Z10 PID1Z1Lbits.PID1Z10 // bit 0, shadows bit in PID1Z1Lbits
16842 #define Z10 PID1Z1Lbits.Z10 // bit 0, shadows bit in PID1Z1Lbits
16843 #define PID1Z11 PID1Z1Lbits.PID1Z11 // bit 1, shadows bit in PID1Z1Lbits
16844 #define Z11 PID1Z1Lbits.Z11 // bit 1, shadows bit in PID1Z1Lbits
16845 #define PID1Z12 PID1Z1Lbits.PID1Z12 // bit 2, shadows bit in PID1Z1Lbits
16846 #define Z12 PID1Z1Lbits.Z12 // bit 2, shadows bit in PID1Z1Lbits
16847 #define PID1Z13 PID1Z1Lbits.PID1Z13 // bit 3, shadows bit in PID1Z1Lbits
16848 #define Z13 PID1Z1Lbits.Z13 // bit 3, shadows bit in PID1Z1Lbits
16849 #define PID1Z14 PID1Z1Lbits.PID1Z14 // bit 4, shadows bit in PID1Z1Lbits
16850 #define Z14 PID1Z1Lbits.Z14 // bit 4, shadows bit in PID1Z1Lbits
16851 #define PID1Z15 PID1Z1Lbits.PID1Z15 // bit 5, shadows bit in PID1Z1Lbits
16852 #define Z15 PID1Z1Lbits.Z15 // bit 5, shadows bit in PID1Z1Lbits
16853 #define PID1Z16 PID1Z1Lbits.PID1Z16 // bit 6, shadows bit in PID1Z1Lbits
16854 #define Z16 PID1Z1Lbits.Z16 // bit 6, shadows bit in PID1Z1Lbits
16855 #define PID1Z17 PID1Z1Lbits.PID1Z17 // bit 7, shadows bit in PID1Z1Lbits
16856 #define Z17 PID1Z1Lbits.Z17 // bit 7, shadows bit in PID1Z1Lbits
16858 #define PID1Z116 PID1Z1Ubits.PID1Z116 // bit 0, shadows bit in PID1Z1Ubits
16859 #define Z116 PID1Z1Ubits.Z116 // bit 0, shadows bit in PID1Z1Ubits
16861 #define PID1Z28 PID1Z2Hbits.PID1Z28 // bit 0, shadows bit in PID1Z2Hbits
16862 #define Z28 PID1Z2Hbits.Z28 // bit 0, shadows bit in PID1Z2Hbits
16863 #define PID1Z29 PID1Z2Hbits.PID1Z29 // bit 1, shadows bit in PID1Z2Hbits
16864 #define Z29 PID1Z2Hbits.Z29 // bit 1, shadows bit in PID1Z2Hbits
16865 #define PID1Z210 PID1Z2Hbits.PID1Z210 // bit 2, shadows bit in PID1Z2Hbits
16866 #define Z210 PID1Z2Hbits.Z210 // bit 2, shadows bit in PID1Z2Hbits
16867 #define PID1Z211 PID1Z2Hbits.PID1Z211 // bit 3, shadows bit in PID1Z2Hbits
16868 #define Z211 PID1Z2Hbits.Z211 // bit 3, shadows bit in PID1Z2Hbits
16869 #define PID1Z212 PID1Z2Hbits.PID1Z212 // bit 4, shadows bit in PID1Z2Hbits
16870 #define Z212 PID1Z2Hbits.Z212 // bit 4, shadows bit in PID1Z2Hbits
16871 #define PID1Z213 PID1Z2Hbits.PID1Z213 // bit 5, shadows bit in PID1Z2Hbits
16872 #define Z213 PID1Z2Hbits.Z213 // bit 5, shadows bit in PID1Z2Hbits
16873 #define PID1Z214 PID1Z2Hbits.PID1Z214 // bit 6, shadows bit in PID1Z2Hbits
16874 #define Z214 PID1Z2Hbits.Z214 // bit 6, shadows bit in PID1Z2Hbits
16875 #define PID1Z215 PID1Z2Hbits.PID1Z215 // bit 7, shadows bit in PID1Z2Hbits
16876 #define Z215 PID1Z2Hbits.Z215 // bit 7, shadows bit in PID1Z2Hbits
16878 #define PID1Z20 PID1Z2Lbits.PID1Z20 // bit 0, shadows bit in PID1Z2Lbits
16879 #define Z20 PID1Z2Lbits.Z20 // bit 0, shadows bit in PID1Z2Lbits
16880 #define PID1Z21 PID1Z2Lbits.PID1Z21 // bit 1, shadows bit in PID1Z2Lbits
16881 #define Z21 PID1Z2Lbits.Z21 // bit 1, shadows bit in PID1Z2Lbits
16882 #define PID1Z22 PID1Z2Lbits.PID1Z22 // bit 2, shadows bit in PID1Z2Lbits
16883 #define Z22 PID1Z2Lbits.Z22 // bit 2, shadows bit in PID1Z2Lbits
16884 #define PID1Z23 PID1Z2Lbits.PID1Z23 // bit 3, shadows bit in PID1Z2Lbits
16885 #define Z23 PID1Z2Lbits.Z23 // bit 3, shadows bit in PID1Z2Lbits
16886 #define PID1Z24 PID1Z2Lbits.PID1Z24 // bit 4, shadows bit in PID1Z2Lbits
16887 #define Z24 PID1Z2Lbits.Z24 // bit 4, shadows bit in PID1Z2Lbits
16888 #define PID1Z25 PID1Z2Lbits.PID1Z25 // bit 5, shadows bit in PID1Z2Lbits
16889 #define Z25 PID1Z2Lbits.Z25 // bit 5, shadows bit in PID1Z2Lbits
16890 #define PID1Z26 PID1Z2Lbits.PID1Z26 // bit 6, shadows bit in PID1Z2Lbits
16891 #define Z26 PID1Z2Lbits.Z26 // bit 6, shadows bit in PID1Z2Lbits
16892 #define PID1Z27 PID1Z2Lbits.PID1Z27 // bit 7, shadows bit in PID1Z2Lbits
16893 #define Z27 PID1Z2Lbits.Z27 // bit 7, shadows bit in PID1Z2Lbits
16895 #define PID1Z216 PID1Z2Ubits.PID1Z216 // bit 0, shadows bit in PID1Z2Ubits
16896 #define Z216 PID1Z2Ubits.Z216 // bit 0, shadows bit in PID1Z2Ubits
16898 #define TMR1IE PIE1bits.TMR1IE // bit 0
16899 #define TMR2IE PIE1bits.TMR2IE // bit 1
16900 #define CCP1IE PIE1bits.CCP1IE // bit 2
16901 #define SSP1IE PIE1bits.SSP1IE // bit 3
16902 #define TXIE PIE1bits.TXIE // bit 4
16903 #define RCIE PIE1bits.RCIE // bit 5
16904 #define ADIE PIE1bits.ADIE // bit 6
16905 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
16907 #define CCP2IE PIE2bits.CCP2IE // bit 0
16908 #define TMR4IE PIE2bits.TMR4IE // bit 1
16909 #define TMR6IE PIE2bits.TMR6IE // bit 2
16910 #define BCL1IE PIE2bits.BCL1IE // bit 3
16911 #define C1IE PIE2bits.C1IE // bit 5
16912 #define C2IE PIE2bits.C2IE // bit 6
16913 #define OSCFIE PIE2bits.OSCFIE // bit 7
16915 #define CLC1IE PIE3bits.CLC1IE // bit 0
16916 #define CLC2IE PIE3bits.CLC2IE // bit 1
16917 #define CLC3IE PIE3bits.CLC3IE // bit 2
16918 #define CLC4IE PIE3bits.CLC4IE // bit 3
16919 #define ZCDIE PIE3bits.ZCDIE // bit 4
16920 #define CWGIE PIE3bits.CWGIE // bit 5
16922 #define SMT1IE PIE4bits.SMT1IE // bit 0
16923 #define SMT1PRAIE PIE4bits.SMT1PRAIE // bit 1
16924 #define SMT1PWAIE PIE4bits.SMT1PWAIE // bit 2
16925 #define SMT2IE PIE4bits.SMT2IE // bit 3
16926 #define SMT2PRAIE PIE4bits.SMT2PRAIE // bit 4
16927 #define SMT2PWAIE PIE4bits.SMT2PWAIE // bit 5
16928 #define CRCIE PIE4bits.CRCIE // bit 6
16929 #define SCANIE PIE4bits.SCANIE // bit 7
16931 #define PID1DIE PIE5bits.PID1DIE // bit 0
16932 #define PID1EIE PIE5bits.PID1EIE // bit 1
16933 #define AT1IE PIE5bits.AT1IE // bit 2
16934 #define TMR5IE PIE5bits.TMR5IE // bit 4
16935 #define TMR5GIE PIE5bits.TMR5GIE // bit 5
16936 #define TMR3IE PIE5bits.TMR3IE // bit 6
16937 #define TMR3GIE PIE5bits.TMR3GIE // bit 7
16939 #define TMR1IF PIR1bits.TMR1IF // bit 0
16940 #define TMR2IF PIR1bits.TMR2IF // bit 1
16941 #define CCP1IF PIR1bits.CCP1IF // bit 2
16942 #define SSP1IF PIR1bits.SSP1IF // bit 3
16943 #define TXIF PIR1bits.TXIF // bit 4
16944 #define RCIF PIR1bits.RCIF // bit 5
16945 #define ADIF PIR1bits.ADIF // bit 6
16946 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
16948 #define CCP2IF PIR2bits.CCP2IF // bit 0
16949 #define TMR4IF PIR2bits.TMR4IF // bit 1
16950 #define TMR6IF PIR2bits.TMR6IF // bit 2
16951 #define BCL1IF PIR2bits.BCL1IF // bit 3
16952 #define C1IF PIR2bits.C1IF // bit 5
16953 #define C2IF PIR2bits.C2IF // bit 6
16954 #define OSFIF PIR2bits.OSFIF // bit 7
16956 #define CLC1IF PIR3bits.CLC1IF // bit 0
16957 #define CLC2IF PIR3bits.CLC2IF // bit 1
16958 #define CLC3IF PIR3bits.CLC3IF // bit 2
16959 #define CLC4IF PIR3bits.CLC4IF // bit 3
16960 #define ZCDIF PIR3bits.ZCDIF // bit 4
16961 #define CWGIF PIR3bits.CWGIF // bit 5
16963 #define SMT1IF PIR4bits.SMT1IF // bit 0
16964 #define SMT1PRAIF PIR4bits.SMT1PRAIF // bit 1
16965 #define SMT1PWAIF PIR4bits.SMT1PWAIF // bit 2
16966 #define SMT2IF PIR4bits.SMT2IF // bit 3
16967 #define SMT2PRAIF PIR4bits.SMT2PRAIF // bit 4
16968 #define SMT2PWAIF PIR4bits.SMT2PWAIF // bit 5
16969 #define CRCIF PIR4bits.CRCIF // bit 6
16970 #define SCANIF PIR4bits.SCANIF // bit 7
16972 #define PID1DIF PIR5bits.PID1DIF // bit 0
16973 #define PID1EIF PIR5bits.PID1EIF // bit 1
16974 #define AT1IF PIR5bits.AT1IF // bit 2
16975 #define TMR5IF PIR5bits.TMR5IF // bit 4
16976 #define TMR5GIF PIR5bits.TMR5GIF // bit 5
16977 #define TMR3IF PIR5bits.TMR3IF // bit 6
16978 #define TMR3GIF PIR5bits.TMR3GIF // bit 7
16980 #define RD PMCON1bits.RD // bit 0
16981 #define WR PMCON1bits.WR // bit 1
16982 #define WREN PMCON1bits.WREN // bit 2
16983 #define WRERR PMCON1bits.WRERR // bit 3
16984 #define FREE PMCON1bits.FREE // bit 4
16985 #define LWLO PMCON1bits.LWLO // bit 5
16986 #define CFGS PMCON1bits.CFGS // bit 6
16988 #define RA0 PORTAbits.RA0 // bit 0
16989 #define RA1 PORTAbits.RA1 // bit 1
16990 #define RA2 PORTAbits.RA2 // bit 2
16991 #define RA3 PORTAbits.RA3 // bit 3
16992 #define RA4 PORTAbits.RA4 // bit 4
16993 #define RA5 PORTAbits.RA5 // bit 5
16995 #define RC0 PORTCbits.RC0 // bit 0
16996 #define RC1 PORTCbits.RC1 // bit 1
16997 #define RC2 PORTCbits.RC2 // bit 2
16998 #define RC3 PORTCbits.RC3 // bit 3
16999 #define RC4 PORTCbits.RC4 // bit 4
17000 #define RC5 PORTCbits.RC5 // bit 5
17002 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
17004 #define DC2 PWM3DCHbits.DC2 // bit 0, shadows bit in PWM3DCHbits
17005 #define PWM3DC2 PWM3DCHbits.PWM3DC2 // bit 0, shadows bit in PWM3DCHbits
17006 #define PWMPW2 PWM3DCHbits.PWMPW2 // bit 0, shadows bit in PWM3DCHbits
17007 #define DC3 PWM3DCHbits.DC3 // bit 1, shadows bit in PWM3DCHbits
17008 #define PWM3DC3 PWM3DCHbits.PWM3DC3 // bit 1, shadows bit in PWM3DCHbits
17009 #define PWMPW3 PWM3DCHbits.PWMPW3 // bit 1, shadows bit in PWM3DCHbits
17010 #define DC4 PWM3DCHbits.DC4 // bit 2, shadows bit in PWM3DCHbits
17011 #define PWM3DC4 PWM3DCHbits.PWM3DC4 // bit 2, shadows bit in PWM3DCHbits
17012 #define PWMPW4 PWM3DCHbits.PWMPW4 // bit 2, shadows bit in PWM3DCHbits
17013 #define DC5 PWM3DCHbits.DC5 // bit 3, shadows bit in PWM3DCHbits
17014 #define PWM3DC5 PWM3DCHbits.PWM3DC5 // bit 3, shadows bit in PWM3DCHbits
17015 #define PWMPW5 PWM3DCHbits.PWMPW5 // bit 3, shadows bit in PWM3DCHbits
17016 #define DC6 PWM3DCHbits.DC6 // bit 4, shadows bit in PWM3DCHbits
17017 #define PWM3DC6 PWM3DCHbits.PWM3DC6 // bit 4, shadows bit in PWM3DCHbits
17018 #define PWMPW6 PWM3DCHbits.PWMPW6 // bit 4, shadows bit in PWM3DCHbits
17019 #define DC7 PWM3DCHbits.DC7 // bit 5, shadows bit in PWM3DCHbits
17020 #define PWM3DC7 PWM3DCHbits.PWM3DC7 // bit 5, shadows bit in PWM3DCHbits
17021 #define PWMPW7 PWM3DCHbits.PWMPW7 // bit 5, shadows bit in PWM3DCHbits
17022 #define DC8 PWM3DCHbits.DC8 // bit 6, shadows bit in PWM3DCHbits
17023 #define PWM3DC8 PWM3DCHbits.PWM3DC8 // bit 6, shadows bit in PWM3DCHbits
17024 #define PWMPW8 PWM3DCHbits.PWMPW8 // bit 6, shadows bit in PWM3DCHbits
17025 #define DC9 PWM3DCHbits.DC9 // bit 7, shadows bit in PWM3DCHbits
17026 #define PWM3DC9 PWM3DCHbits.PWM3DC9 // bit 7, shadows bit in PWM3DCHbits
17027 #define PWMPW9 PWM3DCHbits.PWMPW9 // bit 7, shadows bit in PWM3DCHbits
17029 #define DC0 PWM3DCLbits.DC0 // bit 6, shadows bit in PWM3DCLbits
17030 #define PWM3DC0 PWM3DCLbits.PWM3DC0 // bit 6, shadows bit in PWM3DCLbits
17031 #define PWMPW0 PWM3DCLbits.PWMPW0 // bit 6, shadows bit in PWM3DCLbits
17032 #define DC1 PWM3DCLbits.DC1 // bit 7, shadows bit in PWM3DCLbits
17033 #define PWM3DC1 PWM3DCLbits.PWM3DC1 // bit 7, shadows bit in PWM3DCLbits
17034 #define PWMPW1 PWM3DCLbits.PWMPW1 // bit 7, shadows bit in PWM3DCLbits
17036 #define RA0PPS0 RA0PPSbits.RA0PPS0 // bit 0
17037 #define RA0PPS1 RA0PPSbits.RA0PPS1 // bit 1
17038 #define RA0PPS2 RA0PPSbits.RA0PPS2 // bit 2
17039 #define RA0PPS3 RA0PPSbits.RA0PPS3 // bit 3
17040 #define RA0PPS4 RA0PPSbits.RA0PPS4 // bit 4
17042 #define RA1PPS0 RA1PPSbits.RA1PPS0 // bit 0
17043 #define RA1PPS1 RA1PPSbits.RA1PPS1 // bit 1
17044 #define RA1PPS2 RA1PPSbits.RA1PPS2 // bit 2
17045 #define RA1PPS3 RA1PPSbits.RA1PPS3 // bit 3
17046 #define RA1PPS4 RA1PPSbits.RA1PPS4 // bit 4
17048 #define RA2PPS0 RA2PPSbits.RA2PPS0 // bit 0
17049 #define RA2PPS1 RA2PPSbits.RA2PPS1 // bit 1
17050 #define RA2PPS2 RA2PPSbits.RA2PPS2 // bit 2
17051 #define RA2PPS3 RA2PPSbits.RA2PPS3 // bit 3
17052 #define RA2PPS4 RA2PPSbits.RA2PPS4 // bit 4
17054 #define RA4PPS0 RA4PPSbits.RA4PPS0 // bit 0
17055 #define RA4PPS1 RA4PPSbits.RA4PPS1 // bit 1
17056 #define RA4PPS2 RA4PPSbits.RA4PPS2 // bit 2
17057 #define RA4PPS3 RA4PPSbits.RA4PPS3 // bit 3
17058 #define RA4PPS4 RA4PPSbits.RA4PPS4 // bit 4
17060 #define RA5PPS0 RA5PPSbits.RA5PPS0 // bit 0
17061 #define RA5PPS1 RA5PPSbits.RA5PPS1 // bit 1
17062 #define RA5PPS2 RA5PPSbits.RA5PPS2 // bit 2
17063 #define RA5PPS3 RA5PPSbits.RA5PPS3 // bit 3
17064 #define RA5PPS4 RA5PPSbits.RA5PPS4 // bit 4
17066 #define RC0PPS0 RC0PPSbits.RC0PPS0 // bit 0
17067 #define RC0PPS1 RC0PPSbits.RC0PPS1 // bit 1
17068 #define RC0PPS2 RC0PPSbits.RC0PPS2 // bit 2
17069 #define RC0PPS3 RC0PPSbits.RC0PPS3 // bit 3
17070 #define RC0PPS4 RC0PPSbits.RC0PPS4 // bit 4
17072 #define RC1PPS0 RC1PPSbits.RC1PPS0 // bit 0
17073 #define RC1PPS1 RC1PPSbits.RC1PPS1 // bit 1
17074 #define RC1PPS2 RC1PPSbits.RC1PPS2 // bit 2
17075 #define RC1PPS3 RC1PPSbits.RC1PPS3 // bit 3
17076 #define RC1PPS4 RC1PPSbits.RC1PPS4 // bit 4
17078 #define RX9D RC1STAbits.RX9D // bit 0
17079 #define OERR RC1STAbits.OERR // bit 1
17080 #define FERR RC1STAbits.FERR // bit 2
17081 #define ADDEN RC1STAbits.ADDEN // bit 3
17082 #define CREN RC1STAbits.CREN // bit 4
17083 #define SREN RC1STAbits.SREN // bit 5
17084 #define RX9 RC1STAbits.RX9 // bit 6
17085 #define SPEN RC1STAbits.SPEN // bit 7
17087 #define RC2PPS0 RC2PPSbits.RC2PPS0 // bit 0
17088 #define RC2PPS1 RC2PPSbits.RC2PPS1 // bit 1
17089 #define RC2PPS2 RC2PPSbits.RC2PPS2 // bit 2
17090 #define RC2PPS3 RC2PPSbits.RC2PPS3 // bit 3
17091 #define RC2PPS4 RC2PPSbits.RC2PPS4 // bit 4
17093 #define RC3PPS0 RC3PPSbits.RC3PPS0 // bit 0
17094 #define RC3PPS1 RC3PPSbits.RC3PPS1 // bit 1
17095 #define RC3PPS2 RC3PPSbits.RC3PPS2 // bit 2
17096 #define RC3PPS3 RC3PPSbits.RC3PPS3 // bit 3
17097 #define RC3PPS4 RC3PPSbits.RC3PPS4 // bit 4
17099 #define RC4PPS0 RC4PPSbits.RC4PPS0 // bit 0
17100 #define RC4PPS1 RC4PPSbits.RC4PPS1 // bit 1
17101 #define RC4PPS2 RC4PPSbits.RC4PPS2 // bit 2
17102 #define RC4PPS3 RC4PPSbits.RC4PPS3 // bit 3
17103 #define RC4PPS4 RC4PPSbits.RC4PPS4 // bit 4
17105 #define RC5PPS0 RC5PPSbits.RC5PPS0 // bit 0
17106 #define RC5PPS1 RC5PPSbits.RC5PPS1 // bit 1
17107 #define RC5PPS2 RC5PPSbits.RC5PPS2 // bit 2
17108 #define RC5PPS3 RC5PPSbits.RC5PPS3 // bit 3
17109 #define RC5PPS4 RC5PPSbits.RC5PPS4 // bit 4
17111 #define RXPPS0 RXPPSbits.RXPPS0 // bit 0
17112 #define RXPPS1 RXPPSbits.RXPPS1 // bit 1
17113 #define RXPPS2 RXPPSbits.RXPPS2 // bit 2
17114 #define RXPPS3 RXPPSbits.RXPPS3 // bit 3
17115 #define RXPPS4 RXPPSbits.RXPPS4 // bit 4
17117 #define HADR8 SCANHADRHbits.HADR8 // bit 0, shadows bit in SCANHADRHbits
17118 #define SCANHADR8 SCANHADRHbits.SCANHADR8 // bit 0, shadows bit in SCANHADRHbits
17119 #define HADR9 SCANHADRHbits.HADR9 // bit 1, shadows bit in SCANHADRHbits
17120 #define SCANHADR9 SCANHADRHbits.SCANHADR9 // bit 1, shadows bit in SCANHADRHbits
17121 #define HADR10 SCANHADRHbits.HADR10 // bit 2, shadows bit in SCANHADRHbits
17122 #define SCANHADR10 SCANHADRHbits.SCANHADR10 // bit 2, shadows bit in SCANHADRHbits
17123 #define HADR11 SCANHADRHbits.HADR11 // bit 3, shadows bit in SCANHADRHbits
17124 #define SCANHADR11 SCANHADRHbits.SCANHADR11 // bit 3, shadows bit in SCANHADRHbits
17125 #define HADR12 SCANHADRHbits.HADR12 // bit 4, shadows bit in SCANHADRHbits
17126 #define SCANHADR12 SCANHADRHbits.SCANHADR12 // bit 4, shadows bit in SCANHADRHbits
17127 #define HADR13 SCANHADRHbits.HADR13 // bit 5, shadows bit in SCANHADRHbits
17128 #define SCANHADR13 SCANHADRHbits.SCANHADR13 // bit 5, shadows bit in SCANHADRHbits
17129 #define HADR14 SCANHADRHbits.HADR14 // bit 6, shadows bit in SCANHADRHbits
17130 #define SCANHADR14 SCANHADRHbits.SCANHADR14 // bit 6, shadows bit in SCANHADRHbits
17131 #define HADR15 SCANHADRHbits.HADR15 // bit 7, shadows bit in SCANHADRHbits
17132 #define SCANHADR15 SCANHADRHbits.SCANHADR15 // bit 7, shadows bit in SCANHADRHbits
17134 #define HADR0 SCANHADRLbits.HADR0 // bit 0, shadows bit in SCANHADRLbits
17135 #define SCANHADR0 SCANHADRLbits.SCANHADR0 // bit 0, shadows bit in SCANHADRLbits
17136 #define HADR1 SCANHADRLbits.HADR1 // bit 1, shadows bit in SCANHADRLbits
17137 #define SCANHADR1 SCANHADRLbits.SCANHADR1 // bit 1, shadows bit in SCANHADRLbits
17138 #define HARD2 SCANHADRLbits.HARD2 // bit 2, shadows bit in SCANHADRLbits
17139 #define SCANHADR2 SCANHADRLbits.SCANHADR2 // bit 2, shadows bit in SCANHADRLbits
17140 #define HADR3 SCANHADRLbits.HADR3 // bit 3, shadows bit in SCANHADRLbits
17141 #define SCANHADR3 SCANHADRLbits.SCANHADR3 // bit 3, shadows bit in SCANHADRLbits
17142 #define HADR4 SCANHADRLbits.HADR4 // bit 4, shadows bit in SCANHADRLbits
17143 #define SCANHADR4 SCANHADRLbits.SCANHADR4 // bit 4, shadows bit in SCANHADRLbits
17144 #define HADR5 SCANHADRLbits.HADR5 // bit 5, shadows bit in SCANHADRLbits
17145 #define SCANHADR5 SCANHADRLbits.SCANHADR5 // bit 5, shadows bit in SCANHADRLbits
17146 #define HADR6 SCANHADRLbits.HADR6 // bit 6, shadows bit in SCANHADRLbits
17147 #define SCANHADR6 SCANHADRLbits.SCANHADR6 // bit 6, shadows bit in SCANHADRLbits
17148 #define HADR7 SCANHADRLbits.HADR7 // bit 7, shadows bit in SCANHADRLbits
17149 #define SCANHADR7 SCANHADRLbits.SCANHADR7 // bit 7, shadows bit in SCANHADRLbits
17151 #define LADR8 SCANLADRHbits.LADR8 // bit 0, shadows bit in SCANLADRHbits
17152 #define SCANLADR8 SCANLADRHbits.SCANLADR8 // bit 0, shadows bit in SCANLADRHbits
17153 #define LADR9 SCANLADRHbits.LADR9 // bit 1, shadows bit in SCANLADRHbits
17154 #define SCANLADR9 SCANLADRHbits.SCANLADR9 // bit 1, shadows bit in SCANLADRHbits
17155 #define LADR10 SCANLADRHbits.LADR10 // bit 2, shadows bit in SCANLADRHbits
17156 #define SCANLADR10 SCANLADRHbits.SCANLADR10 // bit 2, shadows bit in SCANLADRHbits
17157 #define LADR11 SCANLADRHbits.LADR11 // bit 3, shadows bit in SCANLADRHbits
17158 #define SCANLADR11 SCANLADRHbits.SCANLADR11 // bit 3, shadows bit in SCANLADRHbits
17159 #define LADR12 SCANLADRHbits.LADR12 // bit 4, shadows bit in SCANLADRHbits
17160 #define SCANLADR12 SCANLADRHbits.SCANLADR12 // bit 4, shadows bit in SCANLADRHbits
17161 #define LADR13 SCANLADRHbits.LADR13 // bit 5, shadows bit in SCANLADRHbits
17162 #define SCANLADR13 SCANLADRHbits.SCANLADR13 // bit 5, shadows bit in SCANLADRHbits
17163 #define LADR14 SCANLADRHbits.LADR14 // bit 6, shadows bit in SCANLADRHbits
17164 #define SCANLADR14 SCANLADRHbits.SCANLADR14 // bit 6, shadows bit in SCANLADRHbits
17165 #define LADR15 SCANLADRHbits.LADR15 // bit 7, shadows bit in SCANLADRHbits
17166 #define SCANLADR15 SCANLADRHbits.SCANLADR15 // bit 7, shadows bit in SCANLADRHbits
17168 #define LDAR0 SCANLADRLbits.LDAR0 // bit 0, shadows bit in SCANLADRLbits
17169 #define SCANLADR0 SCANLADRLbits.SCANLADR0 // bit 0, shadows bit in SCANLADRLbits
17170 #define LDAR1 SCANLADRLbits.LDAR1 // bit 1, shadows bit in SCANLADRLbits
17171 #define SCANLADR1 SCANLADRLbits.SCANLADR1 // bit 1, shadows bit in SCANLADRLbits
17172 #define LADR2 SCANLADRLbits.LADR2 // bit 2, shadows bit in SCANLADRLbits
17173 #define SCANLADR2 SCANLADRLbits.SCANLADR2 // bit 2, shadows bit in SCANLADRLbits
17174 #define LADR3 SCANLADRLbits.LADR3 // bit 3, shadows bit in SCANLADRLbits
17175 #define SCANLADR3 SCANLADRLbits.SCANLADR3 // bit 3, shadows bit in SCANLADRLbits
17176 #define LADR4 SCANLADRLbits.LADR4 // bit 4, shadows bit in SCANLADRLbits
17177 #define SCANLADR4 SCANLADRLbits.SCANLADR4 // bit 4, shadows bit in SCANLADRLbits
17178 #define LADR5 SCANLADRLbits.LADR5 // bit 5, shadows bit in SCANLADRLbits
17179 #define SCANLADR5 SCANLADRLbits.SCANLADR5 // bit 5, shadows bit in SCANLADRLbits
17180 #define LADR6 SCANLADRLbits.LADR6 // bit 6, shadows bit in SCANLADRLbits
17181 #define SCANLADR6 SCANLADRLbits.SCANLADR6 // bit 6, shadows bit in SCANLADRLbits
17182 #define LADR7 SCANLADRLbits.LADR7 // bit 7, shadows bit in SCANLADRLbits
17183 #define SCANLADR7 SCANLADRLbits.SCANLADR7 // bit 7, shadows bit in SCANLADRLbits
17185 #define TSEL0 SCANTRIGbits.TSEL0 // bit 0, shadows bit in SCANTRIGbits
17186 #define SCANTSEL0 SCANTRIGbits.SCANTSEL0 // bit 0, shadows bit in SCANTRIGbits
17187 #define TSEL1 SCANTRIGbits.TSEL1 // bit 1, shadows bit in SCANTRIGbits
17188 #define SCANTSEL1 SCANTRIGbits.SCANTSEL1 // bit 1, shadows bit in SCANTRIGbits
17189 #define TSEL2 SCANTRIGbits.TSEL2 // bit 2, shadows bit in SCANTRIGbits
17190 #define SCANTSEL2 SCANTRIGbits.SCANTSEL2 // bit 2, shadows bit in SCANTRIGbits
17191 #define TSEL3 SCANTRIGbits.TSEL3 // bit 3, shadows bit in SCANTRIGbits
17192 #define SCANTSEL3 SCANTRIGbits.SCANTSEL3 // bit 3, shadows bit in SCANTRIGbits
17193 #define TSEL4 SCANTRIGbits.TSEL4 // bit 4, shadows bit in SCANTRIGbits
17194 #define SCANTSEL4 SCANTRIGbits.SCANTSEL4 // bit 4, shadows bit in SCANTRIGbits
17195 #define TSEL5 SCANTRIGbits.TSEL5 // bit 5, shadows bit in SCANTRIGbits
17196 #define SCANTSEL5 SCANTRIGbits.SCANTSEL5 // bit 5, shadows bit in SCANTRIGbits
17197 #define TSEL6 SCANTRIGbits.TSEL6 // bit 6, shadows bit in SCANTRIGbits
17198 #define SCANTSEL6 SCANTRIGbits.SCANTSEL6 // bit 6, shadows bit in SCANTRIGbits
17199 #define TSEL7 SCANTRIGbits.TSEL7 // bit 7, shadows bit in SCANTRIGbits
17200 #define SCANTSEL7 SCANTRIGbits.SCANTSEL7 // bit 7, shadows bit in SCANTRIGbits
17202 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
17203 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
17204 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
17205 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
17206 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
17208 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
17209 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
17210 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
17211 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
17212 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
17213 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
17215 #define CSEL0 SMT1CLKbits.CSEL0 // bit 0, shadows bit in SMT1CLKbits
17216 #define SMT1CSEL0 SMT1CLKbits.SMT1CSEL0 // bit 0, shadows bit in SMT1CLKbits
17217 #define CSEL1 SMT1CLKbits.CSEL1 // bit 1, shadows bit in SMT1CLKbits
17218 #define SMT1CSEL1 SMT1CLKbits.SMT1CSEL1 // bit 1, shadows bit in SMT1CLKbits
17219 #define CSEL2 SMT1CLKbits.CSEL2 // bit 2, shadows bit in SMT1CLKbits
17220 #define SMT1CSEL2 SMT1CLKbits.SMT1CSEL2 // bit 2, shadows bit in SMT1CLKbits
17222 #define SMT1CPR8 SMT1CPRHbits.SMT1CPR8 // bit 0
17223 #define SMT1CPR9 SMT1CPRHbits.SMT1CPR9 // bit 1
17224 #define SMT1CPR10 SMT1CPRHbits.SMT1CPR10 // bit 2
17225 #define SMT1CPR11 SMT1CPRHbits.SMT1CPR11 // bit 3
17226 #define SMT1CPR12 SMT1CPRHbits.SMT1CPR12 // bit 4
17227 #define SMT1CPR13 SMT1CPRHbits.SMT1CPR13 // bit 5
17228 #define SMT1CPR14 SMT1CPRHbits.SMT1CPR14 // bit 6
17229 #define SMT1CPR15 SMT1CPRHbits.SMT1CPR15 // bit 7
17231 #define SMT1CPR0 SMT1CPRLbits.SMT1CPR0 // bit 0
17232 #define SMT1CPR1 SMT1CPRLbits.SMT1CPR1 // bit 1
17233 #define SMT1CPR2 SMT1CPRLbits.SMT1CPR2 // bit 2
17234 #define SMT1CPR3 SMT1CPRLbits.SMT1CPR3 // bit 3
17235 #define SMT1CPR4 SMT1CPRLbits.SMT1CPR4 // bit 4
17236 #define SMT1CPR5 SMT1CPRLbits.SMT1CPR5 // bit 5
17237 #define SMT1CPR6 SMT1CPRLbits.SMT1CPR6 // bit 6
17238 #define SMT1CPR7 SMT1CPRLbits.SMT1CPR7 // bit 7
17240 #define SMT1CPR16 SMT1CPRUbits.SMT1CPR16 // bit 0
17241 #define SMT1CPR17 SMT1CPRUbits.SMT1CPR17 // bit 1
17242 #define SMT1CPR18 SMT1CPRUbits.SMT1CPR18 // bit 2
17243 #define SMT1CPR19 SMT1CPRUbits.SMT1CPR19 // bit 3
17244 #define SMT1CPR20 SMT1CPRUbits.SMT1CPR20 // bit 4
17245 #define SMT1CPR21 SMT1CPRUbits.SMT1CPR21 // bit 5
17246 #define SMT1CPR22 SMT1CPRUbits.SMT1CPR22 // bit 6
17247 #define SMT1CPR23 SMT1CPRUbits.SMT1CPR23 // bit 7
17249 #define SMT1CPW8 SMT1CPWHbits.SMT1CPW8 // bit 0
17250 #define SMT1CPW9 SMT1CPWHbits.SMT1CPW9 // bit 1
17251 #define SMT1CPW10 SMT1CPWHbits.SMT1CPW10 // bit 2
17252 #define SMT1CPW11 SMT1CPWHbits.SMT1CPW11 // bit 3
17253 #define SMT1CPW12 SMT1CPWHbits.SMT1CPW12 // bit 4
17254 #define SMT1CPW13 SMT1CPWHbits.SMT1CPW13 // bit 5
17255 #define SMT1CPW14 SMT1CPWHbits.SMT1CPW14 // bit 6
17256 #define SMT1CPW15 SMT1CPWHbits.SMT1CPW15 // bit 7
17258 #define SMT1CPW0 SMT1CPWLbits.SMT1CPW0 // bit 0
17259 #define SMT1CPW1 SMT1CPWLbits.SMT1CPW1 // bit 1
17260 #define SMT1CPW2 SMT1CPWLbits.SMT1CPW2 // bit 2
17261 #define SMT1CPW3 SMT1CPWLbits.SMT1CPW3 // bit 3
17262 #define SMT1CPW4 SMT1CPWLbits.SMT1CPW4 // bit 4
17263 #define SMT1CPW5 SMT1CPWLbits.SMT1CPW5 // bit 5
17264 #define SMT1CPW6 SMT1CPWLbits.SMT1CPW6 // bit 6
17265 #define SMT1CPW7 SMT1CPWLbits.SMT1CPW7 // bit 7
17267 #define SMT1CPW16 SMT1CPWUbits.SMT1CPW16 // bit 0
17268 #define SMT1CPW17 SMT1CPWUbits.SMT1CPW17 // bit 1
17269 #define SMT1CPW18 SMT1CPWUbits.SMT1CPW18 // bit 2
17270 #define SMT1CPW19 SMT1CPWUbits.SMT1CPW19 // bit 3
17271 #define SMT1CPW20 SMT1CPWUbits.SMT1CPW20 // bit 4
17272 #define SMT1CPW21 SMT1CPWUbits.SMT1CPW21 // bit 5
17273 #define SMT1CPW22 SMT1CPWUbits.SMT1CPW22 // bit 6
17274 #define SMT1CPW23 SMT1CPWUbits.SMT1CPW23 // bit 7
17276 #define SMT1PR8 SMT1PRHbits.SMT1PR8 // bit 0
17277 #define SMT1PR9 SMT1PRHbits.SMT1PR9 // bit 1
17278 #define SMT1PR10 SMT1PRHbits.SMT1PR10 // bit 2
17279 #define SMT1PR11 SMT1PRHbits.SMT1PR11 // bit 3
17280 #define SMT1PR12 SMT1PRHbits.SMT1PR12 // bit 4
17281 #define SMT1PR13 SMT1PRHbits.SMT1PR13 // bit 5
17282 #define SMT1PR14 SMT1PRHbits.SMT1PR14 // bit 6
17283 #define SMT1PR15 SMT1PRHbits.SMT1PR15 // bit 7
17285 #define SMT1PR0 SMT1PRLbits.SMT1PR0 // bit 0
17286 #define SMT1PR1 SMT1PRLbits.SMT1PR1 // bit 1
17287 #define SMT1PR2 SMT1PRLbits.SMT1PR2 // bit 2
17288 #define SMT1PR3 SMT1PRLbits.SMT1PR3 // bit 3
17289 #define SMT1PR4 SMT1PRLbits.SMT1PR4 // bit 4
17290 #define SMT1PR5 SMT1PRLbits.SMT1PR5 // bit 5
17291 #define SMT1PR6 SMT1PRLbits.SMT1PR6 // bit 6
17292 #define SMT1PR7 SMT1PRLbits.SMT1PR7 // bit 7
17294 #define SMT1PR16 SMT1PRUbits.SMT1PR16 // bit 0
17295 #define SMT1PR17 SMT1PRUbits.SMT1PR17 // bit 1
17296 #define SMT1PR18 SMT1PRUbits.SMT1PR18 // bit 2
17297 #define SMT1PR19 SMT1PRUbits.SMT1PR19 // bit 3
17298 #define SMT1PR20 SMT1PRUbits.SMT1PR20 // bit 4
17299 #define SMT1PR21 SMT1PRUbits.SMT1PR21 // bit 5
17300 #define SMT1PR22 SMT1PRUbits.SMT1PR22 // bit 6
17301 #define SMT1PR23 SMT1PRUbits.SMT1PR23 // bit 7
17303 #define SMT1SIGPPS0 SMT1SIGPPSbits.SMT1SIGPPS0 // bit 0
17304 #define SMT1SIGPPS1 SMT1SIGPPSbits.SMT1SIGPPS1 // bit 1
17305 #define SMT1SIGPPS2 SMT1SIGPPSbits.SMT1SIGPPS2 // bit 2
17306 #define SMT1SIGPPS3 SMT1SIGPPSbits.SMT1SIGPPS3 // bit 3
17307 #define SMT1SIGPPS4 SMT1SIGPPSbits.SMT1SIGPPS4 // bit 4
17309 #define AS SMT1STATbits.AS // bit 0, shadows bit in SMT1STATbits
17310 #define SMT1AS SMT1STATbits.SMT1AS // bit 0, shadows bit in SMT1STATbits
17311 #define WS SMT1STATbits.WS // bit 1, shadows bit in SMT1STATbits
17312 #define SMT1WS SMT1STATbits.SMT1WS // bit 1, shadows bit in SMT1STATbits
17313 #define TS SMT1STATbits.TS // bit 2, shadows bit in SMT1STATbits
17314 #define SMT1TS SMT1STATbits.SMT1TS // bit 2, shadows bit in SMT1STATbits
17315 #define RST SMT1STATbits.RST // bit 5, shadows bit in SMT1STATbits
17316 #define SMT1RESET SMT1STATbits.SMT1RESET // bit 5, shadows bit in SMT1STATbits
17317 #define CPWUP SMT1STATbits.CPWUP // bit 6, shadows bit in SMT1STATbits
17318 #define SMT1CPWUP SMT1STATbits.SMT1CPWUP // bit 6, shadows bit in SMT1STATbits
17319 #define CPRUP SMT1STATbits.CPRUP // bit 7, shadows bit in SMT1STATbits
17320 #define SMT1CPRUP SMT1STATbits.SMT1CPRUP // bit 7, shadows bit in SMT1STATbits
17322 #define SMT1TMR8 SMT1TMRHbits.SMT1TMR8 // bit 0
17323 #define SMT1TMR9 SMT1TMRHbits.SMT1TMR9 // bit 1
17324 #define SMT1TMR10 SMT1TMRHbits.SMT1TMR10 // bit 2
17325 #define SMT1TMR11 SMT1TMRHbits.SMT1TMR11 // bit 3
17326 #define SMT1TMR12 SMT1TMRHbits.SMT1TMR12 // bit 4
17327 #define SMT1TMR13 SMT1TMRHbits.SMT1TMR13 // bit 5
17328 #define SMT1TMR14 SMT1TMRHbits.SMT1TMR14 // bit 6
17329 #define SMT1TMR15 SMT1TMRHbits.SMT1TMR15 // bit 7
17331 #define SMT1TMR0 SMT1TMRLbits.SMT1TMR0 // bit 0
17332 #define SMT1TMR1 SMT1TMRLbits.SMT1TMR1 // bit 1
17333 #define SMT1TMR2 SMT1TMRLbits.SMT1TMR2 // bit 2
17334 #define SMT1TMR3 SMT1TMRLbits.SMT1TMR3 // bit 3
17335 #define SMT1TMR4 SMT1TMRLbits.SMT1TMR4 // bit 4
17336 #define SMT1TMR5 SMT1TMRLbits.SMT1TMR5 // bit 5
17337 #define SMT1TMR6 SMT1TMRLbits.SMT1TMR6 // bit 6
17338 #define SMT1TMR7 SMT1TMRLbits.SMT1TMR7 // bit 7
17340 #define SMT1TMR16 SMT1TMRUbits.SMT1TMR16 // bit 0
17341 #define SMT1TMR17 SMT1TMRUbits.SMT1TMR17 // bit 1
17342 #define SMT1TMR18 SMT1TMRUbits.SMT1TMR18 // bit 2
17343 #define SMT1TMR19 SMT1TMRUbits.SMT1TMR19 // bit 3
17344 #define SMT1TMR20 SMT1TMRUbits.SMT1TMR20 // bit 4
17345 #define SMT1TMR21 SMT1TMRUbits.SMT1TMR21 // bit 5
17346 #define SMT1TMR22 SMT1TMRUbits.SMT1TMR22 // bit 6
17347 #define SMT1TMR23 SMT1TMRUbits.SMT1TMR23 // bit 7
17349 #define WSEL0 SMT1WINbits.WSEL0 // bit 0, shadows bit in SMT1WINbits
17350 #define SMT1WSEL0 SMT1WINbits.SMT1WSEL0 // bit 0, shadows bit in SMT1WINbits
17351 #define WSEL1 SMT1WINbits.WSEL1 // bit 1, shadows bit in SMT1WINbits
17352 #define SMT1WSEL1 SMT1WINbits.SMT1WSEL1 // bit 1, shadows bit in SMT1WINbits
17353 #define WSEL2 SMT1WINbits.WSEL2 // bit 2, shadows bit in SMT1WINbits
17354 #define SMT1WSEL2 SMT1WINbits.SMT1WSEL2 // bit 2, shadows bit in SMT1WINbits
17355 #define WSEL3 SMT1WINbits.WSEL3 // bit 3, shadows bit in SMT1WINbits
17356 #define SMT1WSEL3 SMT1WINbits.SMT1WSEL3 // bit 3, shadows bit in SMT1WINbits
17357 #define WSEL4 SMT1WINbits.WSEL4 // bit 4, shadows bit in SMT1WINbits
17358 #define SMT1WSEL4 SMT1WINbits.SMT1WSEL4 // bit 4, shadows bit in SMT1WINbits
17360 #define SMTWINPPS0 SMT1WINPPSbits.SMTWINPPS0 // bit 0
17361 #define SMTWINPPS1 SMT1WINPPSbits.SMTWINPPS1 // bit 1
17362 #define SMTWINPPS2 SMT1WINPPSbits.SMTWINPPS2 // bit 2
17363 #define SMTWINPPS3 SMT1WINPPSbits.SMTWINPPS3 // bit 3
17364 #define SMTWINPPS4 SMT1WINPPSbits.SMTWINPPS4 // bit 4
17366 #define SMT2CPR8 SMT2CPRHbits.SMT2CPR8 // bit 0
17367 #define SMT2CPR9 SMT2CPRHbits.SMT2CPR9 // bit 1
17368 #define SMT2CPR10 SMT2CPRHbits.SMT2CPR10 // bit 2
17369 #define SMT2CPR11 SMT2CPRHbits.SMT2CPR11 // bit 3
17370 #define SMT2CPR12 SMT2CPRHbits.SMT2CPR12 // bit 4
17371 #define SMT2CPR13 SMT2CPRHbits.SMT2CPR13 // bit 5
17372 #define SMT2CPR14 SMT2CPRHbits.SMT2CPR14 // bit 6
17373 #define SMT2CPR15 SMT2CPRHbits.SMT2CPR15 // bit 7
17375 #define SMT2CPR0 SMT2CPRLbits.SMT2CPR0 // bit 0
17376 #define SMT2CPR1 SMT2CPRLbits.SMT2CPR1 // bit 1
17377 #define SMT2CPR2 SMT2CPRLbits.SMT2CPR2 // bit 2
17378 #define SMT2CPR3 SMT2CPRLbits.SMT2CPR3 // bit 3
17379 #define SMT2CPR4 SMT2CPRLbits.SMT2CPR4 // bit 4
17380 #define SMT2CPR5 SMT2CPRLbits.SMT2CPR5 // bit 5
17381 #define SMT2CPR6 SMT2CPRLbits.SMT2CPR6 // bit 6
17382 #define SMT2CPR7 SMT2CPRLbits.SMT2CPR7 // bit 7
17384 #define SMT2CPR16 SMT2CPRUbits.SMT2CPR16 // bit 0
17385 #define SMT2CPR17 SMT2CPRUbits.SMT2CPR17 // bit 1
17386 #define SMT2CPR18 SMT2CPRUbits.SMT2CPR18 // bit 2
17387 #define SMT2CPR19 SMT2CPRUbits.SMT2CPR19 // bit 3
17388 #define SMT2CPR20 SMT2CPRUbits.SMT2CPR20 // bit 4
17389 #define SMT2CPR21 SMT2CPRUbits.SMT2CPR21 // bit 5
17390 #define SMT2CPR22 SMT2CPRUbits.SMT2CPR22 // bit 6
17391 #define SMT2CPR23 SMT2CPRUbits.SMT2CPR23 // bit 7
17393 #define SMT2CPW8 SMT2CPWHbits.SMT2CPW8 // bit 0
17394 #define SMT2CPW9 SMT2CPWHbits.SMT2CPW9 // bit 1
17395 #define SMT2CPW10 SMT2CPWHbits.SMT2CPW10 // bit 2
17396 #define SMT2CPW11 SMT2CPWHbits.SMT2CPW11 // bit 3
17397 #define SMT2CPW12 SMT2CPWHbits.SMT2CPW12 // bit 4
17398 #define SMT2CPW13 SMT2CPWHbits.SMT2CPW13 // bit 5
17399 #define SMT2CPW14 SMT2CPWHbits.SMT2CPW14 // bit 6
17400 #define SMT2CPW15 SMT2CPWHbits.SMT2CPW15 // bit 7
17402 #define SMT2CPW0 SMT2CPWLbits.SMT2CPW0 // bit 0
17403 #define SMT2CPW1 SMT2CPWLbits.SMT2CPW1 // bit 1
17404 #define SMT2CPW2 SMT2CPWLbits.SMT2CPW2 // bit 2
17405 #define SMT2CPW3 SMT2CPWLbits.SMT2CPW3 // bit 3
17406 #define SMT2CPW4 SMT2CPWLbits.SMT2CPW4 // bit 4
17407 #define SMT2CPW5 SMT2CPWLbits.SMT2CPW5 // bit 5
17408 #define SMT2CPW6 SMT2CPWLbits.SMT2CPW6 // bit 6
17409 #define SMT2CPW7 SMT2CPWLbits.SMT2CPW7 // bit 7
17411 #define SMT2CPW16 SMT2CPWUbits.SMT2CPW16 // bit 0
17412 #define SMT2CPW17 SMT2CPWUbits.SMT2CPW17 // bit 1
17413 #define SMT2CPW18 SMT2CPWUbits.SMT2CPW18 // bit 2
17414 #define SMT2CPW19 SMT2CPWUbits.SMT2CPW19 // bit 3
17415 #define SMT2CPW20 SMT2CPWUbits.SMT2CPW20 // bit 4
17416 #define SMT2CPW21 SMT2CPWUbits.SMT2CPW21 // bit 5
17417 #define SMT2CPW22 SMT2CPWUbits.SMT2CPW22 // bit 6
17418 #define SMT2CPW23 SMT2CPWUbits.SMT2CPW23 // bit 7
17420 #define SMT2PR8 SMT2PRHbits.SMT2PR8 // bit 0
17421 #define SMT2PR9 SMT2PRHbits.SMT2PR9 // bit 1
17422 #define SMT2PR10 SMT2PRHbits.SMT2PR10 // bit 2
17423 #define SMT2PR11 SMT2PRHbits.SMT2PR11 // bit 3
17424 #define SMT2PR12 SMT2PRHbits.SMT2PR12 // bit 4
17425 #define SMT2PR13 SMT2PRHbits.SMT2PR13 // bit 5
17426 #define SMT2PR14 SMT2PRHbits.SMT2PR14 // bit 6
17427 #define SMT2PR15 SMT2PRHbits.SMT2PR15 // bit 7
17429 #define SMT2PR0 SMT2PRLbits.SMT2PR0 // bit 0
17430 #define SMT2PR1 SMT2PRLbits.SMT2PR1 // bit 1
17431 #define SMT2PR2 SMT2PRLbits.SMT2PR2 // bit 2
17432 #define SMT2PR3 SMT2PRLbits.SMT2PR3 // bit 3
17433 #define SMT2PR4 SMT2PRLbits.SMT2PR4 // bit 4
17434 #define SMT2PR5 SMT2PRLbits.SMT2PR5 // bit 5
17435 #define SMT2PR6 SMT2PRLbits.SMT2PR6 // bit 6
17436 #define SMT2PR7 SMT2PRLbits.SMT2PR7 // bit 7
17438 #define SMT2PR16 SMT2PRUbits.SMT2PR16 // bit 0
17439 #define SMT2PR17 SMT2PRUbits.SMT2PR17 // bit 1
17440 #define SMT2PR18 SMT2PRUbits.SMT2PR18 // bit 2
17441 #define SMT2PR19 SMT2PRUbits.SMT2PR19 // bit 3
17442 #define SMT2PR20 SMT2PRUbits.SMT2PR20 // bit 4
17443 #define SMT2PR21 SMT2PRUbits.SMT2PR21 // bit 5
17444 #define SMT2PR22 SMT2PRUbits.SMT2PR22 // bit 6
17445 #define SMT2PR23 SMT2PRUbits.SMT2PR23 // bit 7
17447 #define SMT2SIGPPS0 SMT2SIGPPSbits.SMT2SIGPPS0 // bit 0
17448 #define SMT2SIGPPS1 SMT2SIGPPSbits.SMT2SIGPPS1 // bit 1
17449 #define SMT2SIGPPS2 SMT2SIGPPSbits.SMT2SIGPPS2 // bit 2
17450 #define SMT2SIGPPS3 SMT2SIGPPSbits.SMT2SIGPPS3 // bit 3
17451 #define SMT2SIGPPS4 SMT2SIGPPSbits.SMT2SIGPPS4 // bit 4
17453 #define SMT2TMR8 SMT2TMRHbits.SMT2TMR8 // bit 0
17454 #define SMT2TMR9 SMT2TMRHbits.SMT2TMR9 // bit 1
17455 #define SMT2TMR10 SMT2TMRHbits.SMT2TMR10 // bit 2
17456 #define SMT2TMR11 SMT2TMRHbits.SMT2TMR11 // bit 3
17457 #define SMT2TMR12 SMT2TMRHbits.SMT2TMR12 // bit 4
17458 #define SMT2TMR13 SMT2TMRHbits.SMT2TMR13 // bit 5
17459 #define SMT2TMR14 SMT2TMRHbits.SMT2TMR14 // bit 6
17460 #define SMT2TMR15 SMT2TMRHbits.SMT2TMR15 // bit 7
17462 #define SMT2TMR0 SMT2TMRLbits.SMT2TMR0 // bit 0
17463 #define SMT2TMR1 SMT2TMRLbits.SMT2TMR1 // bit 1
17464 #define SMT2TMR2 SMT2TMRLbits.SMT2TMR2 // bit 2
17465 #define SMT2TMR3 SMT2TMRLbits.SMT2TMR3 // bit 3
17466 #define SMT2TMR4 SMT2TMRLbits.SMT2TMR4 // bit 4
17467 #define SMT2TMR5 SMT2TMRLbits.SMT2TMR5 // bit 5
17468 #define SMT2TMR6 SMT2TMRLbits.SMT2TMR6 // bit 6
17469 #define SMT2TMR7 SMT2TMRLbits.SMT2TMR7 // bit 7
17471 #define SMT2TMR16 SMT2TMRUbits.SMT2TMR16 // bit 0
17472 #define SMT2TMR17 SMT2TMRUbits.SMT2TMR17 // bit 1
17473 #define SMT2TMR18 SMT2TMRUbits.SMT2TMR18 // bit 2
17474 #define SMT2TMR19 SMT2TMRUbits.SMT2TMR19 // bit 3
17475 #define SMT2TMR20 SMT2TMRUbits.SMT2TMR20 // bit 4
17476 #define SMT2TMR21 SMT2TMRUbits.SMT2TMR21 // bit 5
17477 #define SMT2TMR22 SMT2TMRUbits.SMT2TMR22 // bit 6
17478 #define SMT2TMR23 SMT2TMRUbits.SMT2TMR23 // bit 7
17480 #define SMT2WINPPS0 SMT2WINPPSbits.SMT2WINPPS0 // bit 0
17481 #define SMT2WINPPS1 SMT2WINPPSbits.SMT2WINPPS1 // bit 1
17482 #define SMT2WINPPS2 SMT2WINPPSbits.SMT2WINPPS2 // bit 2
17483 #define SMT2WINPPS3 SMT2WINPPSbits.SMT2WINPPS3 // bit 3
17484 #define SMT2WINPPS4 SMT2WINPPSbits.SMT2WINPPS4 // bit 4
17486 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
17487 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
17488 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
17489 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
17490 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
17491 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
17492 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
17493 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
17494 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
17495 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
17496 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
17497 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
17498 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
17499 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
17500 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
17501 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
17503 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
17504 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
17505 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
17506 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
17507 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
17508 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
17509 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
17510 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
17511 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
17512 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
17513 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
17514 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
17515 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
17516 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
17517 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
17518 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
17520 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
17521 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
17522 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
17523 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
17524 #define CKP SSP1CONbits.CKP // bit 4
17525 #define SSPEN SSP1CONbits.SSPEN // bit 5
17526 #define SSPOV SSP1CONbits.SSPOV // bit 6
17527 #define WCOL SSP1CONbits.WCOL // bit 7
17529 #define SEN SSP1CON2bits.SEN // bit 0
17530 #define RSEN SSP1CON2bits.RSEN // bit 1
17531 #define PEN SSP1CON2bits.PEN // bit 2
17532 #define RCEN SSP1CON2bits.RCEN // bit 3
17533 #define ACKEN SSP1CON2bits.ACKEN // bit 4
17534 #define ACKDT SSP1CON2bits.ACKDT // bit 5
17535 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
17536 #define GCEN SSP1CON2bits.GCEN // bit 7
17538 #define DHEN SSP1CON3bits.DHEN // bit 0
17539 #define AHEN SSP1CON3bits.AHEN // bit 1
17540 #define SBCDE SSP1CON3bits.SBCDE // bit 2
17541 #define SDAHT SSP1CON3bits.SDAHT // bit 3
17542 #define BOEN SSP1CON3bits.BOEN // bit 4
17543 #define SCIE SSP1CON3bits.SCIE // bit 5
17544 #define PCIE SSP1CON3bits.PCIE // bit 6
17545 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
17547 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
17548 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
17549 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
17550 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
17551 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
17552 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
17553 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
17554 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
17555 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
17556 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
17557 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
17558 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
17559 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
17560 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
17561 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
17562 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
17564 #define BF SSP1STATbits.BF // bit 0
17565 #define UA SSP1STATbits.UA // bit 1
17566 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
17567 #define S SSP1STATbits.S // bit 3
17568 #define P SSP1STATbits.P // bit 4
17569 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
17570 #define CKE SSP1STATbits.CKE // bit 6
17571 #define SMP SSP1STATbits.SMP // bit 7
17573 #define SSPCLKPPS0 SSPCLKPPSbits.SSPCLKPPS0 // bit 0
17574 #define SSPCLKPPS1 SSPCLKPPSbits.SSPCLKPPS1 // bit 1
17575 #define SSPCLKPPS2 SSPCLKPPSbits.SSPCLKPPS2 // bit 2
17576 #define SSPCLKPPS3 SSPCLKPPSbits.SSPCLKPPS3 // bit 3
17577 #define SSPCLKPPS4 SSPCLKPPSbits.SSPCLKPPS4 // bit 4
17579 #define SSPDATPPS0 SSPDATPPSbits.SSPDATPPS0 // bit 0
17580 #define SSPDATPPS1 SSPDATPPSbits.SSPDATPPS1 // bit 1
17581 #define SSPDATPPS2 SSPDATPPSbits.SSPDATPPS2 // bit 2
17582 #define SSPDATPPS3 SSPDATPPSbits.SSPDATPPS3 // bit 3
17583 #define SSPDATPPS4 SSPDATPPSbits.SSPDATPPS4 // bit 4
17585 #define SSPSSPPS0 SSPSSPPSbits.SSPSSPPS0 // bit 0
17586 #define SSPSSPPS1 SSPSSPPSbits.SSPSSPPS1 // bit 1
17587 #define SSPSSPPS2 SSPSSPPSbits.SSPSSPPS2 // bit 2
17588 #define SSPSSPPS3 SSPSSPPSbits.SSPSSPPS3 // bit 3
17589 #define SSPSSPPS4 SSPSSPPSbits.SSPSSPPS4 // bit 4
17591 #define C STATUSbits.C // bit 0
17592 #define DC STATUSbits.DC // bit 1
17593 #define Z STATUSbits.Z // bit 2
17594 #define NOT_PD STATUSbits.NOT_PD // bit 3
17595 #define NOT_TO STATUSbits.NOT_TO // bit 4
17597 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
17598 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
17599 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
17601 #define T0CKIPPS0 T0CKIPPSbits.T0CKIPPS0 // bit 0
17602 #define T0CKIPPS1 T0CKIPPSbits.T0CKIPPS1 // bit 1
17603 #define T0CKIPPS2 T0CKIPPSbits.T0CKIPPS2 // bit 2
17604 #define T0CKIPPS3 T0CKIPPSbits.T0CKIPPS3 // bit 3
17605 #define T0CKIPPS4 T0CKIPPSbits.T0CKIPPS4 // bit 4
17607 #define T1CKIPPS0 T1CKIPPSbits.T1CKIPPS0 // bit 0
17608 #define T1CKIPPS1 T1CKIPPSbits.T1CKIPPS1 // bit 1
17609 #define T1CKIPPS2 T1CKIPPSbits.T1CKIPPS2 // bit 2
17610 #define T1CKIPPS3 T1CKIPPSbits.T1CKIPPS3 // bit 3
17611 #define T1CKIPPS4 T1CKIPPSbits.T1CKIPPS4 // bit 4
17613 #define TMR1ON T1CONbits.TMR1ON // bit 0
17614 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
17615 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
17616 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
17617 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
17618 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
17620 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
17621 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
17622 #define T1GVAL T1GCONbits.T1GVAL // bit 2
17623 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
17624 #define T1GSPM T1GCONbits.T1GSPM // bit 4
17625 #define T1GTM T1GCONbits.T1GTM // bit 5
17626 #define T1GPOL T1GCONbits.T1GPOL // bit 6
17627 #define TMR1GE T1GCONbits.TMR1GE // bit 7
17629 #define T1GPPS0 T1GPPSbits.T1GPPS0 // bit 0
17630 #define T1GPPS1 T1GPPSbits.T1GPPS1 // bit 1
17631 #define T1GPPS2 T1GPPSbits.T1GPPS2 // bit 2
17632 #define T1GPPS3 T1GPPSbits.T1GPPS3 // bit 3
17633 #define T1GPPS4 T1GPPSbits.T1GPPS4 // bit 4
17635 #define OUTPS0 T2CONbits.OUTPS0 // bit 0, shadows bit in T2CONbits
17636 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 0, shadows bit in T2CONbits
17637 #define OUTPS1 T2CONbits.OUTPS1 // bit 1, shadows bit in T2CONbits
17638 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 1, shadows bit in T2CONbits
17639 #define OUTPS2 T2CONbits.OUTPS2 // bit 2, shadows bit in T2CONbits
17640 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 2, shadows bit in T2CONbits
17641 #define OUTPS3 T2CONbits.OUTPS3 // bit 3, shadows bit in T2CONbits
17642 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 3, shadows bit in T2CONbits
17643 #define CKPS0 T2CONbits.CKPS0 // bit 4, shadows bit in T2CONbits
17644 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 4, shadows bit in T2CONbits
17645 #define CKPS1 T2CONbits.CKPS1 // bit 5, shadows bit in T2CONbits
17646 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 5, shadows bit in T2CONbits
17647 #define CKPS2 T2CONbits.CKPS2 // bit 6, shadows bit in T2CONbits
17648 #define T2CKPS2 T2CONbits.T2CKPS2 // bit 6, shadows bit in T2CONbits
17649 #define ON T2CONbits.ON // bit 7, shadows bit in T2CONbits
17650 #define T2ON T2CONbits.T2ON // bit 7, shadows bit in T2CONbits
17651 #define TMR2ON T2CONbits.TMR2ON // bit 7, shadows bit in T2CONbits
17653 #define T2PPS0 T2PPSbits.T2PPS0 // bit 0
17654 #define T2PPS1 T2PPSbits.T2PPS1 // bit 1
17655 #define T2PPS2 T2PPSbits.T2PPS2 // bit 2
17656 #define T2PPS3 T2PPSbits.T2PPS3 // bit 3
17657 #define T2PPS4 T2PPSbits.T2PPS4 // bit 4
17659 #define RSEL0 T2RSTbits.RSEL0 // bit 0, shadows bit in T2RSTbits
17660 #define T2RSEL0 T2RSTbits.T2RSEL0 // bit 0, shadows bit in T2RSTbits
17661 #define RSEL1 T2RSTbits.RSEL1 // bit 1, shadows bit in T2RSTbits
17662 #define T2RSEL1 T2RSTbits.T2RSEL1 // bit 1, shadows bit in T2RSTbits
17663 #define RSEL2 T2RSTbits.RSEL2 // bit 2, shadows bit in T2RSTbits
17664 #define T2RSEL2 T2RSTbits.T2RSEL2 // bit 2, shadows bit in T2RSTbits
17665 #define RSEL3 T2RSTbits.RSEL3 // bit 3, shadows bit in T2RSTbits
17666 #define T2RSEL3 T2RSTbits.T2RSEL3 // bit 3, shadows bit in T2RSTbits
17668 #define T3CKIPPS0 T3CKIPPSbits.T3CKIPPS0 // bit 0
17669 #define T3CKIPPS1 T3CKIPPSbits.T3CKIPPS1 // bit 1
17670 #define T3CKIPPS2 T3CKIPPSbits.T3CKIPPS2 // bit 2
17671 #define T3CKIPPS3 T3CKIPPSbits.T3CKIPPS3 // bit 3
17672 #define T3CKIPPS4 T3CKIPPSbits.T3CKIPPS4 // bit 4
17674 #define TMR3ON T3CONbits.TMR3ON // bit 0
17675 #define T3SYNC T3CONbits.T3SYNC // bit 2
17676 #define T3CKPS0 T3CONbits.T3CKPS0 // bit 4
17677 #define T3CKPS1 T3CONbits.T3CKPS1 // bit 5
17678 #define TMR3CS0 T3CONbits.TMR3CS0 // bit 6
17679 #define TMR3CS1 T3CONbits.TMR3CS1 // bit 7
17681 #define T3GSS0 T3GCONbits.T3GSS0 // bit 0
17682 #define T3GSS1 T3GCONbits.T3GSS1 // bit 1
17683 #define T3GVAL T3GCONbits.T3GVAL // bit 2
17684 #define T3GGO_NOT_DONE T3GCONbits.T3GGO_NOT_DONE // bit 3
17685 #define T3GSPM T3GCONbits.T3GSPM // bit 4
17686 #define T3GTM T3GCONbits.T3GTM // bit 5
17687 #define T3GPOL T3GCONbits.T3GPOL // bit 6
17688 #define TMR3GE T3GCONbits.TMR3GE // bit 7
17690 #define T3GPPS0 T3GPPSbits.T3GPPS0 // bit 0
17691 #define T3GPPS1 T3GPPSbits.T3GPPS1 // bit 1
17692 #define T3GPPS2 T3GPPSbits.T3GPPS2 // bit 2
17693 #define T3GPPS3 T3GPPSbits.T3GPPS3 // bit 3
17694 #define T3GPPS4 T3GPPSbits.T3GPPS4 // bit 4
17696 #define T4PPS0 T4PPSbits.T4PPS0 // bit 0
17697 #define T4PPS1 T4PPSbits.T4PPS1 // bit 1
17698 #define T4PPS2 T4PPSbits.T4PPS2 // bit 2
17699 #define T4PPS3 T4PPSbits.T4PPS3 // bit 3
17700 #define T4PPS4 T4PPSbits.T4PPS4 // bit 4
17702 #define T5CKIPPS0 T5CKIPPSbits.T5CKIPPS0 // bit 0
17703 #define T5CKIPPS1 T5CKIPPSbits.T5CKIPPS1 // bit 1
17704 #define T5CKIPPS2 T5CKIPPSbits.T5CKIPPS2 // bit 2
17705 #define T5CKIPPS3 T5CKIPPSbits.T5CKIPPS3 // bit 3
17706 #define T5CKIPPS4 T5CKIPPSbits.T5CKIPPS4 // bit 4
17708 #define TMR5ON T5CONbits.TMR5ON // bit 0
17709 #define T5SYNC T5CONbits.T5SYNC // bit 2
17710 #define T5CKPS0 T5CONbits.T5CKPS0 // bit 4
17711 #define T5CKPS1 T5CONbits.T5CKPS1 // bit 5
17712 #define TMR5CS0 T5CONbits.TMR5CS0 // bit 6
17713 #define TMR5CS1 T5CONbits.TMR5CS1 // bit 7
17715 #define T5GSS0 T5GCONbits.T5GSS0 // bit 0
17716 #define T5GSS1 T5GCONbits.T5GSS1 // bit 1
17717 #define T5GVAL T5GCONbits.T5GVAL // bit 2
17718 #define T5GGO_NOT_DONE T5GCONbits.T5GGO_NOT_DONE // bit 3
17719 #define T5GSPM T5GCONbits.T5GSPM // bit 4
17720 #define T5GTM T5GCONbits.T5GTM // bit 5
17721 #define T5GPOL T5GCONbits.T5GPOL // bit 6
17722 #define TMR5GE T5GCONbits.TMR5GE // bit 7
17724 #define T5GPPS0 T5GPPSbits.T5GPPS0 // bit 0
17725 #define T5GPPS1 T5GPPSbits.T5GPPS1 // bit 1
17726 #define T5GPPS2 T5GPPSbits.T5GPPS2 // bit 2
17727 #define T5GPPS3 T5GPPSbits.T5GPPS3 // bit 3
17728 #define T5GPPS4 T5GPPSbits.T5GPPS4 // bit 4
17730 #define T6PPS0 T6PPSbits.T6PPS0 // bit 0
17731 #define T6PPS1 T6PPSbits.T6PPS1 // bit 1
17732 #define T6PPS2 T6PPSbits.T6PPS2 // bit 2
17733 #define T6PPS3 T6PPSbits.T6PPS3 // bit 3
17734 #define T6PPS4 T6PPSbits.T6PPS4 // bit 4
17736 #define TRISA0 TRISAbits.TRISA0 // bit 0
17737 #define TRISA1 TRISAbits.TRISA1 // bit 1
17738 #define TRISA2 TRISAbits.TRISA2 // bit 2
17739 #define TRISA3 TRISAbits.TRISA3 // bit 3
17740 #define TRISA4 TRISAbits.TRISA4 // bit 4
17741 #define TRISA5 TRISAbits.TRISA5 // bit 5
17743 #define TRISC0 TRISCbits.TRISC0 // bit 0
17744 #define TRISC1 TRISCbits.TRISC1 // bit 1
17745 #define TRISC2 TRISCbits.TRISC2 // bit 2
17746 #define TRISC3 TRISCbits.TRISC3 // bit 3
17747 #define TRISC4 TRISCbits.TRISC4 // bit 4
17748 #define TRISC5 TRISCbits.TRISC5 // bit 5
17750 #define TX9D TX1STAbits.TX9D // bit 0
17751 #define TRMT TX1STAbits.TRMT // bit 1
17752 #define BRGH TX1STAbits.BRGH // bit 2
17753 #define SENDB TX1STAbits.SENDB // bit 3
17754 #define SYNC TX1STAbits.SYNC // bit 4
17755 #define TXEN TX1STAbits.TXEN // bit 5
17756 #define TX9 TX1STAbits.TX9 // bit 6
17757 #define CSRC TX1STAbits.CSRC // bit 7
17759 #define WINDOW0 WDTCON1bits.WINDOW0 // bit 0, shadows bit in WDTCON1bits
17760 #define WDTWINDOW0 WDTCON1bits.WDTWINDOW0 // bit 0, shadows bit in WDTCON1bits
17761 #define WINDOW1 WDTCON1bits.WINDOW1 // bit 1, shadows bit in WDTCON1bits
17762 #define WDTWINDOW1 WDTCON1bits.WDTWINDOW1 // bit 1, shadows bit in WDTCON1bits
17763 #define WINDOW2 WDTCON1bits.WINDOW2 // bit 2, shadows bit in WDTCON1bits
17764 #define WDTWINDOW2 WDTCON1bits.WDTWINDOW2 // bit 2, shadows bit in WDTCON1bits
17765 #define WDTCS0 WDTCON1bits.WDTCS0 // bit 4
17766 #define WDTCS1 WDTCON1bits.WDTCS1 // bit 5
17767 #define WDTCS2 WDTCON1bits.WDTCS2 // bit 6
17769 #define PSCNT8 WDTPSHbits.PSCNT8 // bit 0, shadows bit in WDTPSHbits
17770 #define WDTPSCNT8 WDTPSHbits.WDTPSCNT8 // bit 0, shadows bit in WDTPSHbits
17771 #define PSCNT9 WDTPSHbits.PSCNT9 // bit 1, shadows bit in WDTPSHbits
17772 #define WDTPSCNT9 WDTPSHbits.WDTPSCNT9 // bit 1, shadows bit in WDTPSHbits
17773 #define PSCNT10 WDTPSHbits.PSCNT10 // bit 2, shadows bit in WDTPSHbits
17774 #define WDTPSCNT10 WDTPSHbits.WDTPSCNT10 // bit 2, shadows bit in WDTPSHbits
17775 #define PSCNT11 WDTPSHbits.PSCNT11 // bit 3, shadows bit in WDTPSHbits
17776 #define WDTPSCNT11 WDTPSHbits.WDTPSCNT11 // bit 3, shadows bit in WDTPSHbits
17777 #define PSCNT12 WDTPSHbits.PSCNT12 // bit 4, shadows bit in WDTPSHbits
17778 #define WDTPSCNT12 WDTPSHbits.WDTPSCNT12 // bit 4, shadows bit in WDTPSHbits
17779 #define PSCNT13 WDTPSHbits.PSCNT13 // bit 5, shadows bit in WDTPSHbits
17780 #define WDTPSCNT13 WDTPSHbits.WDTPSCNT13 // bit 5, shadows bit in WDTPSHbits
17781 #define PSCNT14 WDTPSHbits.PSCNT14 // bit 6, shadows bit in WDTPSHbits
17782 #define WDTPSCNT14 WDTPSHbits.WDTPSCNT14 // bit 6, shadows bit in WDTPSHbits
17783 #define PSCNT15 WDTPSHbits.PSCNT15 // bit 7, shadows bit in WDTPSHbits
17784 #define WDTPSCNT15 WDTPSHbits.WDTPSCNT15 // bit 7, shadows bit in WDTPSHbits
17786 #define PSCNT0 WDTPSLbits.PSCNT0 // bit 0, shadows bit in WDTPSLbits
17787 #define WDTPSCNT0 WDTPSLbits.WDTPSCNT0 // bit 0, shadows bit in WDTPSLbits
17788 #define PSCNT1 WDTPSLbits.PSCNT1 // bit 1, shadows bit in WDTPSLbits
17789 #define WDTPSCNT1 WDTPSLbits.WDTPSCNT1 // bit 1, shadows bit in WDTPSLbits
17790 #define PSCNT2 WDTPSLbits.PSCNT2 // bit 2, shadows bit in WDTPSLbits
17791 #define WDTPSCNT2 WDTPSLbits.WDTPSCNT2 // bit 2, shadows bit in WDTPSLbits
17792 #define PSCNT3 WDTPSLbits.PSCNT3 // bit 3, shadows bit in WDTPSLbits
17793 #define WDTPSCNT3 WDTPSLbits.WDTPSCNT3 // bit 3, shadows bit in WDTPSLbits
17794 #define PSCNT4 WDTPSLbits.PSCNT4 // bit 4, shadows bit in WDTPSLbits
17795 #define WDTPSCNT4 WDTPSLbits.WDTPSCNT4 // bit 4, shadows bit in WDTPSLbits
17796 #define PSCNT5 WDTPSLbits.PSCNT5 // bit 5, shadows bit in WDTPSLbits
17797 #define WDTPSCNT5 WDTPSLbits.WDTPSCNT5 // bit 5, shadows bit in WDTPSLbits
17798 #define PSCNT6 WDTPSLbits.PSCNT6 // bit 6, shadows bit in WDTPSLbits
17799 #define WDTPSCNT6 WDTPSLbits.WDTPSCNT6 // bit 6, shadows bit in WDTPSLbits
17800 #define PSCNT7 WDTPSLbits.PSCNT7 // bit 7, shadows bit in WDTPSLbits
17801 #define WDTPSCNT7 WDTPSLbits.WDTPSCNT7 // bit 7, shadows bit in WDTPSLbits
17803 #define PSCNT16 WDTTMRbits.PSCNT16 // bit 0, shadows bit in WDTTMRbits
17804 #define WDTPSCNT16 WDTTMRbits.WDTPSCNT16 // bit 0, shadows bit in WDTTMRbits
17805 #define PSCNT17 WDTTMRbits.PSCNT17 // bit 1, shadows bit in WDTTMRbits
17806 #define WDTPSCNT17 WDTTMRbits.WDTPSCNT17 // bit 1, shadows bit in WDTTMRbits
17807 #define STATE WDTTMRbits.STATE // bit 2, shadows bit in WDTTMRbits
17808 #define WDTSTATE WDTTMRbits.WDTSTATE // bit 2, shadows bit in WDTTMRbits
17809 #define WDTTMR0 WDTTMRbits.WDTTMR0 // bit 3
17810 #define WDTTMR1 WDTTMRbits.WDTTMR1 // bit 4
17811 #define WDTTMR2 WDTTMRbits.WDTTMR2 // bit 5
17812 #define WDTTMR3 WDTTMRbits.WDTTMR3 // bit 6
17813 #define WDTTMR4 WDTTMRbits.WDTTMR4 // bit 7
17815 #define WPUA0 WPUAbits.WPUA0 // bit 0
17816 #define WPUA1 WPUAbits.WPUA1 // bit 1
17817 #define WPUA2 WPUAbits.WPUA2 // bit 2
17818 #define WPUA3 WPUAbits.WPUA3 // bit 3
17819 #define WPUA4 WPUAbits.WPUA4 // bit 4
17820 #define WPUA5 WPUAbits.WPUA5 // bit 5
17822 #define WPUC0 WPUCbits.WPUC0 // bit 0
17823 #define WPUC1 WPUCbits.WPUC1 // bit 1
17824 #define WPUC2 WPUCbits.WPUC2 // bit 2
17825 #define WPUC3 WPUCbits.WPUC3 // bit 3
17826 #define WPUC4 WPUCbits.WPUC4 // bit 4
17827 #define WPUC5 WPUCbits.WPUC5 // bit 5
17829 #define ZCD1INTN ZCD1CONbits.ZCD1INTN // bit 0
17830 #define ZCD1INTP ZCD1CONbits.ZCD1INTP // bit 1
17831 #define ZCD1POL ZCD1CONbits.ZCD1POL // bit 4
17832 #define ZCD1OUT ZCD1CONbits.ZCD1OUT // bit 5
17833 #define ZCD1EN ZCD1CONbits.ZCD1EN // bit 7
17835 #endif // #ifndef NO_BIT_DEFINES
17837 #endif // #ifndef __PIC16LF1615_H__