Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16f1615.h
blob261f8f5560b4ddc40e561599f7774b80b5cdd700
1 /*
2 * This declarations of the PIC16F1615 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:09 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 __PIC16F1615_H__
26 #define __PIC16F1615_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 VREGCON_ADDR 0x0197
112 #define RC1REG_ADDR 0x0199
113 #define RCREG_ADDR 0x0199
114 #define RCREG1_ADDR 0x0199
115 #define TX1REG_ADDR 0x019A
116 #define TXREG_ADDR 0x019A
117 #define TXREG1_ADDR 0x019A
118 #define SP1BRG_ADDR 0x019B
119 #define SP1BRGL_ADDR 0x019B
120 #define SPBRG_ADDR 0x019B
121 #define SPBRG1_ADDR 0x019B
122 #define SPBRGL_ADDR 0x019B
123 #define SP1BRGH_ADDR 0x019C
124 #define SPBRGH_ADDR 0x019C
125 #define SPBRGH1_ADDR 0x019C
126 #define RC1STA_ADDR 0x019D
127 #define RCSTA_ADDR 0x019D
128 #define RCSTA1_ADDR 0x019D
129 #define TX1STA_ADDR 0x019E
130 #define TXSTA_ADDR 0x019E
131 #define TXSTA1_ADDR 0x019E
132 #define BAUD1CON_ADDR 0x019F
133 #define BAUDCON_ADDR 0x019F
134 #define BAUDCON1_ADDR 0x019F
135 #define BAUDCTL_ADDR 0x019F
136 #define BAUDCTL1_ADDR 0x019F
137 #define WPUA_ADDR 0x020C
138 #define WPUC_ADDR 0x020E
139 #define SSP1BUF_ADDR 0x0211
140 #define SSPBUF_ADDR 0x0211
141 #define SSP1ADD_ADDR 0x0212
142 #define SSPADD_ADDR 0x0212
143 #define SSP1MSK_ADDR 0x0213
144 #define SSPMSK_ADDR 0x0213
145 #define SSP1STAT_ADDR 0x0214
146 #define SSPSTAT_ADDR 0x0214
147 #define SSP1CON_ADDR 0x0215
148 #define SSP1CON1_ADDR 0x0215
149 #define SSPCON_ADDR 0x0215
150 #define SSPCON1_ADDR 0x0215
151 #define SSP1CON2_ADDR 0x0216
152 #define SSPCON2_ADDR 0x0216
153 #define SSP1CON3_ADDR 0x0217
154 #define SSPCON3_ADDR 0x0217
155 #define ODCONA_ADDR 0x028C
156 #define ODCONC_ADDR 0x028E
157 #define CCPR1_ADDR 0x0291
158 #define CCPR1L_ADDR 0x0291
159 #define CCPR1H_ADDR 0x0292
160 #define CCP1CON_ADDR 0x0293
161 #define CCP1CAP_ADDR 0x0294
162 #define CCPR2_ADDR 0x0298
163 #define CCPR2L_ADDR 0x0298
164 #define CCPR2H_ADDR 0x0299
165 #define CCP2CON_ADDR 0x029A
166 #define CCP2CAP_ADDR 0x029B
167 #define CCPTMRS_ADDR 0x029E
168 #define SLRCONA_ADDR 0x030C
169 #define SLRCONC_ADDR 0x030E
170 #define INLVLA_ADDR 0x038C
171 #define INLVLC_ADDR 0x038E
172 #define IOCAP_ADDR 0x0391
173 #define IOCAN_ADDR 0x0392
174 #define IOCAF_ADDR 0x0393
175 #define IOCCP_ADDR 0x0397
176 #define IOCCN_ADDR 0x0398
177 #define IOCCF_ADDR 0x0399
178 #define HIDRVC_ADDR 0x040E
179 #define T4TMR_ADDR 0x0413
180 #define TMR4_ADDR 0x0413
181 #define PR4_ADDR 0x0414
182 #define T4PR_ADDR 0x0414
183 #define T4CON_ADDR 0x0415
184 #define T4HLT_ADDR 0x0416
185 #define T4CLKCON_ADDR 0x0417
186 #define T4RST_ADDR 0x0418
187 #define T6TMR_ADDR 0x041A
188 #define TMR6_ADDR 0x041A
189 #define PR6_ADDR 0x041B
190 #define T6PR_ADDR 0x041B
191 #define T6CON_ADDR 0x041C
192 #define T6HLT_ADDR 0x041D
193 #define T6CLKCON_ADDR 0x041E
194 #define T6RST_ADDR 0x041F
195 #define TMR3L_ADDR 0x0493
196 #define TMR3H_ADDR 0x0494
197 #define T3CON_ADDR 0x0495
198 #define T3GCON_ADDR 0x0496
199 #define TMR5L_ADDR 0x049A
200 #define TMR5H_ADDR 0x049B
201 #define T5CON_ADDR 0x049C
202 #define T5GCON_ADDR 0x049D
203 #define PID1SET_ADDR 0x058C
204 #define PID1SETL_ADDR 0x058C
205 #define PID1SETH_ADDR 0x058D
206 #define PID1IN_ADDR 0x058E
207 #define PID1INL_ADDR 0x058E
208 #define PID1INH_ADDR 0x058F
209 #define PID1K1_ADDR 0x0590
210 #define PID1K1L_ADDR 0x0590
211 #define PID1K1H_ADDR 0x0591
212 #define PID1K2_ADDR 0x0592
213 #define PID1K2L_ADDR 0x0592
214 #define PID1K2H_ADDR 0x0593
215 #define PID1K3_ADDR 0x0594
216 #define PID1K3L_ADDR 0x0594
217 #define PID1K3H_ADDR 0x0595
218 #define PID1OUT_ADDR 0x0596
219 #define PID1OUTLL_ADDR 0x0596
220 #define PID1OUTLH_ADDR 0x0597
221 #define PID1OUTHL_ADDR 0x0598
222 #define PID1OUTHH_ADDR 0x0599
223 #define PID1OUTU_ADDR 0x059A
224 #define PID1Z1_ADDR 0x059B
225 #define PID1Z1L_ADDR 0x059B
226 #define PID1Z1H_ADDR 0x059C
227 #define PID1Z1U_ADDR 0x059D
228 #define PID1Z2_ADDR 0x060C
229 #define PID1Z2L_ADDR 0x060C
230 #define PID1Z2H_ADDR 0x060D
231 #define PID1Z2U_ADDR 0x060E
232 #define PID1ACC_ADDR 0x060F
233 #define PID1ACCLL_ADDR 0x060F
234 #define PID1ACCLH_ADDR 0x0610
235 #define PID1ACCHL_ADDR 0x0611
236 #define PID1ACCHH_ADDR 0x0612
237 #define PID1ACCU_ADDR 0x0613
238 #define PID1CON_ADDR 0x0614
239 #define PWM3DCL_ADDR 0x0617
240 #define PWM3DCH_ADDR 0x0618
241 #define PWM3CON_ADDR 0x0619
242 #define PWM4DCL_ADDR 0x061A
243 #define PWM4DCH_ADDR 0x061B
244 #define PWM4CON_ADDR 0x061C
245 #define CWG1DBR_ADDR 0x0691
246 #define CWG1DBF_ADDR 0x0692
247 #define CWG1AS0_ADDR 0x0693
248 #define CWG1AS1_ADDR 0x0694
249 #define CWG1OCON0_ADDR 0x0695
250 #define CWG1CON0_ADDR 0x0696
251 #define CWG1CON1_ADDR 0x0697
252 #define CWG1CLKCON_ADDR 0x0699
253 #define CWG1ISM_ADDR 0x069A
254 #define WDTCON0_ADDR 0x0711
255 #define WDTCON1_ADDR 0x0712
256 #define WDTPSL_ADDR 0x0713
257 #define WDTPSH_ADDR 0x0714
258 #define WDTTMR_ADDR 0x0715
259 #define SCANLADR_ADDR 0x0718
260 #define SCANLADRL_ADDR 0x0718
261 #define SCANLADRH_ADDR 0x0719
262 #define SCANHADR_ADDR 0x071A
263 #define SCANHADRL_ADDR 0x071A
264 #define SCANHADRH_ADDR 0x071B
265 #define SCANCON0_ADDR 0x071C
266 #define SCANTRIG_ADDR 0x071D
267 #define CRCDAT_ADDR 0x0791
268 #define CRCDATL_ADDR 0x0791
269 #define CRCDATH_ADDR 0x0792
270 #define CRCACC_ADDR 0x0793
271 #define CRCACCL_ADDR 0x0793
272 #define CRCACCH_ADDR 0x0794
273 #define CRCSHIFT_ADDR 0x0795
274 #define CRCSHIFTL_ADDR 0x0795
275 #define CRCSHIFTH_ADDR 0x0796
276 #define CRCXOR_ADDR 0x0797
277 #define CRCXORL_ADDR 0x0797
278 #define CRCXORH_ADDR 0x0798
279 #define CRCCON0_ADDR 0x0799
280 #define CRCCON1_ADDR 0x079A
281 #define AT1RES_ADDR 0x080C
282 #define AT1RESL_ADDR 0x080C
283 #define AT1RESH_ADDR 0x080D
284 #define AT1MISS_ADDR 0x080E
285 #define AT1MISSL_ADDR 0x080E
286 #define AT1MISSH_ADDR 0x080F
287 #define AT1PER_ADDR 0x0810
288 #define AT1PERL_ADDR 0x0810
289 #define AT1PERH_ADDR 0x0811
290 #define AT1PHS_ADDR 0x0812
291 #define AT1PHSL_ADDR 0x0812
292 #define AT1PHSH_ADDR 0x0813
293 #define AT1CON0_ADDR 0x0814
294 #define AT1CON1_ADDR 0x0815
295 #define AT1IR0_ADDR 0x0816
296 #define AT1IE0_ADDR 0x0817
297 #define AT1IR1_ADDR 0x0818
298 #define AT1IE1_ADDR 0x0819
299 #define AT1STPT_ADDR 0x081A
300 #define AT1STPTL_ADDR 0x081A
301 #define AT1STPTH_ADDR 0x081B
302 #define AT1ERR_ADDR 0x081C
303 #define AT1ERRL_ADDR 0x081C
304 #define AT1ERRH_ADDR 0x081D
305 #define AT1CLK_ADDR 0x088C
306 #define AT1SIG_ADDR 0x088D
307 #define AT1CSEL1_ADDR 0x088E
308 #define AT1CC1_ADDR 0x088F
309 #define AT1CC1L_ADDR 0x088F
310 #define AT1CC1H_ADDR 0x0890
311 #define AT1CCON1_ADDR 0x0891
312 #define AT1CSEL2_ADDR 0x0892
313 #define AT1CC2_ADDR 0x0893
314 #define AT1CC2L_ADDR 0x0893
315 #define AT1CC2H_ADDR 0x0894
316 #define AT1CCON2_ADDR 0x0895
317 #define AT1CSEL3_ADDR 0x0896
318 #define AT1CC3_ADDR 0x0897
319 #define AT1CC3L_ADDR 0x0897
320 #define AT1CC3H_ADDR 0x0898
321 #define AT1CCON3_ADDR 0x0899
322 #define SMT1TMR_ADDR 0x0D8C
323 #define SMT1TMRL_ADDR 0x0D8C
324 #define SMT1TMRH_ADDR 0x0D8D
325 #define SMT1TMRU_ADDR 0x0D8E
326 #define SMT1CPR_ADDR 0x0D8F
327 #define SMT1CPRL_ADDR 0x0D8F
328 #define SMT1CPRH_ADDR 0x0D90
329 #define SMT1CPRU_ADDR 0x0D91
330 #define SMT1CPW_ADDR 0x0D92
331 #define SMT1CPWL_ADDR 0x0D92
332 #define SMT1CPWH_ADDR 0x0D93
333 #define SMT1CPWU_ADDR 0x0D94
334 #define SMT1PR_ADDR 0x0D95
335 #define SMT1PRL_ADDR 0x0D95
336 #define SMT1PRH_ADDR 0x0D96
337 #define SMT1PRU_ADDR 0x0D97
338 #define SMT1CON0_ADDR 0x0D98
339 #define SMT1CON1_ADDR 0x0D99
340 #define SMT1STAT_ADDR 0x0D9A
341 #define SMT1CLK_ADDR 0x0D9B
342 #define SMT1SIG_ADDR 0x0D9C
343 #define SMT1WIN_ADDR 0x0D9D
344 #define SMT2TMR_ADDR 0x0D9E
345 #define SMT2TMRL_ADDR 0x0D9E
346 #define SMT2TMRH_ADDR 0x0D9F
347 #define SMT2TMRU_ADDR 0x0DA0
348 #define SMT2CPR_ADDR 0x0DA1
349 #define SMT2CPRL_ADDR 0x0DA1
350 #define SMT2CPRH_ADDR 0x0DA2
351 #define SMT2CPRU_ADDR 0x0DA3
352 #define SMT2CPW_ADDR 0x0DA4
353 #define SMT2CPWL_ADDR 0x0DA4
354 #define SMT2CPWH_ADDR 0x0DA5
355 #define SMT2CPWU_ADDR 0x0DA6
356 #define SMT2PR_ADDR 0x0DA7
357 #define SMT2PRL_ADDR 0x0DA7
358 #define SMT2PRH_ADDR 0x0DA8
359 #define SMT2PRU_ADDR 0x0DA9
360 #define SMT2CON0_ADDR 0x0DAA
361 #define SMT2CON1_ADDR 0x0DAB
362 #define SMT2STAT_ADDR 0x0DAC
363 #define SMT2CLK_ADDR 0x0DAD
364 #define SMT2SIG_ADDR 0x0DAE
365 #define SMT2WIN_ADDR 0x0DAF
366 #define PPSLOCK_ADDR 0x0E0F
367 #define INTPPS_ADDR 0x0E10
368 #define T0CKIPPS_ADDR 0x0E11
369 #define T1CKIPPS_ADDR 0x0E12
370 #define T1GPPS_ADDR 0x0E13
371 #define CCP1PPS_ADDR 0x0E14
372 #define CCP2PPS_ADDR 0x0E15
373 #define ATINPPS_ADDR 0x0E16
374 #define CWGINPPS_ADDR 0x0E17
375 #define T2PPS_ADDR 0x0E18
376 #define T3CKIPPS_ADDR 0x0E19
377 #define T3GPPS_ADDR 0x0E1A
378 #define T4PPS_ADDR 0x0E1B
379 #define T5CKIPPS_ADDR 0x0E1C
380 #define T5GPPS_ADDR 0x0E1D
381 #define T6PPS_ADDR 0x0E1E
382 #define ATCC1PPS_ADDR 0x0E1F
383 #define SSPCLKPPS_ADDR 0x0E20
384 #define SSPDATPPS_ADDR 0x0E21
385 #define SSPSSPPS_ADDR 0x0E22
386 #define ATCC2PPS_ADDR 0x0E23
387 #define RXPPS_ADDR 0x0E24
388 #define CKPPS_ADDR 0x0E25
389 #define SMT1SIGPPS_ADDR 0x0E26
390 #define SMT1WINPPS_ADDR 0x0E27
391 #define CLCIN0PPS_ADDR 0x0E28
392 #define CLCIN1PPS_ADDR 0x0E29
393 #define CLCIN2PPS_ADDR 0x0E2A
394 #define CLCIN3PPS_ADDR 0x0E2B
395 #define SMT2SIGPPS_ADDR 0x0E2C
396 #define SMT2WINPPS_ADDR 0x0E2D
397 #define ATCC3PPS_ADDR 0x0E2E
398 #define RA0PPS_ADDR 0x0E90
399 #define RA1PPS_ADDR 0x0E91
400 #define RA2PPS_ADDR 0x0E92
401 #define RA4PPS_ADDR 0x0E94
402 #define RA5PPS_ADDR 0x0E95
403 #define RC0PPS_ADDR 0x0EA0
404 #define RC1PPS_ADDR 0x0EA1
405 #define RC2PPS_ADDR 0x0EA2
406 #define RC3PPS_ADDR 0x0EA3
407 #define RC4PPS_ADDR 0x0EA4
408 #define RC5PPS_ADDR 0x0EA5
409 #define CLCDATA_ADDR 0x0F0F
410 #define CLC1CON_ADDR 0x0F10
411 #define CLC1POL_ADDR 0x0F11
412 #define CLC1SEL0_ADDR 0x0F12
413 #define CLC1SEL1_ADDR 0x0F13
414 #define CLC1SEL2_ADDR 0x0F14
415 #define CLC1SEL3_ADDR 0x0F15
416 #define CLC1GLS0_ADDR 0x0F16
417 #define CLC1GLS1_ADDR 0x0F17
418 #define CLC1GLS2_ADDR 0x0F18
419 #define CLC1GLS3_ADDR 0x0F19
420 #define CLC2CON_ADDR 0x0F1A
421 #define CLC2POL_ADDR 0x0F1B
422 #define CLC2SEL0_ADDR 0x0F1C
423 #define CLC2SEL1_ADDR 0x0F1D
424 #define CLC2SEL2_ADDR 0x0F1E
425 #define CLC2SEL3_ADDR 0x0F1F
426 #define CLC2GLS0_ADDR 0x0F20
427 #define CLC2GLS1_ADDR 0x0F21
428 #define CLC2GLS2_ADDR 0x0F22
429 #define CLC2GLS3_ADDR 0x0F23
430 #define CLC3CON_ADDR 0x0F24
431 #define CLC3POL_ADDR 0x0F25
432 #define CLC3SEL0_ADDR 0x0F26
433 #define CLC3SEL1_ADDR 0x0F27
434 #define CLC3SEL2_ADDR 0x0F28
435 #define CLC3SEL3_ADDR 0x0F29
436 #define CLC3GLS0_ADDR 0x0F2A
437 #define CLC3GLS1_ADDR 0x0F2B
438 #define CLC3GLS2_ADDR 0x0F2C
439 #define CLC3GLS3_ADDR 0x0F2D
440 #define CLC4CON_ADDR 0x0F2E
441 #define CLC4POL_ADDR 0x0F2F
442 #define CLC4SEL0_ADDR 0x0F30
443 #define CLC4SEL1_ADDR 0x0F31
444 #define CLC4SEL2_ADDR 0x0F32
445 #define CLC4SEL3_ADDR 0x0F33
446 #define CLC4GLS0_ADDR 0x0F34
447 #define CLC4GLS1_ADDR 0x0F35
448 #define CLC4GLS2_ADDR 0x0F36
449 #define CLC4GLS3_ADDR 0x0F37
450 #define STATUS_SHAD_ADDR 0x0FE4
451 #define WREG_SHAD_ADDR 0x0FE5
452 #define BSR_SHAD_ADDR 0x0FE6
453 #define PCLATH_SHAD_ADDR 0x0FE7
454 #define FSR0L_SHAD_ADDR 0x0FE8
455 #define FSR0H_SHAD_ADDR 0x0FE9
456 #define FSR1L_SHAD_ADDR 0x0FEA
457 #define FSR1H_SHAD_ADDR 0x0FEB
458 #define STKPTR_ADDR 0x0FED
459 #define TOSL_ADDR 0x0FEE
460 #define TOSH_ADDR 0x0FEF
462 #endif // #ifndef NO_ADDR_DEFINES
464 //==============================================================================
466 // Register Definitions
468 //==============================================================================
470 extern __at(0x0000) __sfr INDF0;
471 extern __at(0x0001) __sfr INDF1;
472 extern __at(0x0002) __sfr PCL;
474 //==============================================================================
475 // STATUS Bits
477 extern __at(0x0003) __sfr STATUS;
479 typedef struct
481 unsigned C : 1;
482 unsigned DC : 1;
483 unsigned Z : 1;
484 unsigned NOT_PD : 1;
485 unsigned NOT_TO : 1;
486 unsigned : 1;
487 unsigned : 1;
488 unsigned : 1;
489 } __STATUSbits_t;
491 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
493 #define _C 0x01
494 #define _DC 0x02
495 #define _Z 0x04
496 #define _NOT_PD 0x08
497 #define _NOT_TO 0x10
499 //==============================================================================
501 extern __at(0x0004) __sfr FSR0;
502 extern __at(0x0004) __sfr FSR0L;
503 extern __at(0x0005) __sfr FSR0H;
504 extern __at(0x0006) __sfr FSR1;
505 extern __at(0x0006) __sfr FSR1L;
506 extern __at(0x0007) __sfr FSR1H;
508 //==============================================================================
509 // BSR Bits
511 extern __at(0x0008) __sfr BSR;
513 typedef union
515 struct
517 unsigned BSR0 : 1;
518 unsigned BSR1 : 1;
519 unsigned BSR2 : 1;
520 unsigned BSR3 : 1;
521 unsigned BSR4 : 1;
522 unsigned : 1;
523 unsigned : 1;
524 unsigned : 1;
527 struct
529 unsigned BSR : 5;
530 unsigned : 3;
532 } __BSRbits_t;
534 extern __at(0x0008) volatile __BSRbits_t BSRbits;
536 #define _BSR0 0x01
537 #define _BSR1 0x02
538 #define _BSR2 0x04
539 #define _BSR3 0x08
540 #define _BSR4 0x10
542 //==============================================================================
544 extern __at(0x0009) __sfr WREG;
545 extern __at(0x000A) __sfr PCLATH;
547 //==============================================================================
548 // INTCON Bits
550 extern __at(0x000B) __sfr INTCON;
552 typedef union
554 struct
556 unsigned IOCIF : 1;
557 unsigned INTF : 1;
558 unsigned TMR0IF : 1;
559 unsigned IOCIE : 1;
560 unsigned INTE : 1;
561 unsigned TMR0IE : 1;
562 unsigned PEIE : 1;
563 unsigned GIE : 1;
566 struct
568 unsigned : 1;
569 unsigned : 1;
570 unsigned T0IF : 1;
571 unsigned : 1;
572 unsigned : 1;
573 unsigned T0IE : 1;
574 unsigned : 1;
575 unsigned : 1;
577 } __INTCONbits_t;
579 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
581 #define _IOCIF 0x01
582 #define _INTF 0x02
583 #define _TMR0IF 0x04
584 #define _T0IF 0x04
585 #define _IOCIE 0x08
586 #define _INTE 0x10
587 #define _TMR0IE 0x20
588 #define _T0IE 0x20
589 #define _PEIE 0x40
590 #define _GIE 0x80
592 //==============================================================================
595 //==============================================================================
596 // PORTA Bits
598 extern __at(0x000C) __sfr PORTA;
600 typedef union
602 struct
604 unsigned RA0 : 1;
605 unsigned RA1 : 1;
606 unsigned RA2 : 1;
607 unsigned RA3 : 1;
608 unsigned RA4 : 1;
609 unsigned RA5 : 1;
610 unsigned : 1;
611 unsigned : 1;
614 struct
616 unsigned RA : 6;
617 unsigned : 2;
619 } __PORTAbits_t;
621 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
623 #define _RA0 0x01
624 #define _RA1 0x02
625 #define _RA2 0x04
626 #define _RA3 0x08
627 #define _RA4 0x10
628 #define _RA5 0x20
630 //==============================================================================
633 //==============================================================================
634 // PORTC Bits
636 extern __at(0x000E) __sfr PORTC;
638 typedef union
640 struct
642 unsigned RC0 : 1;
643 unsigned RC1 : 1;
644 unsigned RC2 : 1;
645 unsigned RC3 : 1;
646 unsigned RC4 : 1;
647 unsigned RC5 : 1;
648 unsigned : 1;
649 unsigned : 1;
652 struct
654 unsigned RC : 6;
655 unsigned : 2;
657 } __PORTCbits_t;
659 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
661 #define _RC0 0x01
662 #define _RC1 0x02
663 #define _RC2 0x04
664 #define _RC3 0x08
665 #define _RC4 0x10
666 #define _RC5 0x20
668 //==============================================================================
671 //==============================================================================
672 // PIR1 Bits
674 extern __at(0x0010) __sfr PIR1;
676 typedef struct
678 unsigned TMR1IF : 1;
679 unsigned TMR2IF : 1;
680 unsigned CCP1IF : 1;
681 unsigned SSP1IF : 1;
682 unsigned TXIF : 1;
683 unsigned RCIF : 1;
684 unsigned ADIF : 1;
685 unsigned TMR1GIF : 1;
686 } __PIR1bits_t;
688 extern __at(0x0010) volatile __PIR1bits_t PIR1bits;
690 #define _TMR1IF 0x01
691 #define _TMR2IF 0x02
692 #define _CCP1IF 0x04
693 #define _SSP1IF 0x08
694 #define _TXIF 0x10
695 #define _RCIF 0x20
696 #define _ADIF 0x40
697 #define _TMR1GIF 0x80
699 //==============================================================================
702 //==============================================================================
703 // PIR2 Bits
705 extern __at(0x0011) __sfr PIR2;
707 typedef struct
709 unsigned CCP2IF : 1;
710 unsigned TMR4IF : 1;
711 unsigned TMR6IF : 1;
712 unsigned BCL1IF : 1;
713 unsigned : 1;
714 unsigned C1IF : 1;
715 unsigned C2IF : 1;
716 unsigned OSFIF : 1;
717 } __PIR2bits_t;
719 extern __at(0x0011) volatile __PIR2bits_t PIR2bits;
721 #define _CCP2IF 0x01
722 #define _TMR4IF 0x02
723 #define _TMR6IF 0x04
724 #define _BCL1IF 0x08
725 #define _C1IF 0x20
726 #define _C2IF 0x40
727 #define _OSFIF 0x80
729 //==============================================================================
732 //==============================================================================
733 // PIR3 Bits
735 extern __at(0x0012) __sfr PIR3;
737 typedef struct
739 unsigned CLC1IF : 1;
740 unsigned CLC2IF : 1;
741 unsigned CLC3IF : 1;
742 unsigned CLC4IF : 1;
743 unsigned ZCDIF : 1;
744 unsigned CWGIF : 1;
745 unsigned : 1;
746 unsigned : 1;
747 } __PIR3bits_t;
749 extern __at(0x0012) volatile __PIR3bits_t PIR3bits;
751 #define _CLC1IF 0x01
752 #define _CLC2IF 0x02
753 #define _CLC3IF 0x04
754 #define _CLC4IF 0x08
755 #define _ZCDIF 0x10
756 #define _CWGIF 0x20
758 //==============================================================================
761 //==============================================================================
762 // PIR4 Bits
764 extern __at(0x0013) __sfr PIR4;
766 typedef struct
768 unsigned SMT1IF : 1;
769 unsigned SMT1PRAIF : 1;
770 unsigned SMT1PWAIF : 1;
771 unsigned SMT2IF : 1;
772 unsigned SMT2PRAIF : 1;
773 unsigned SMT2PWAIF : 1;
774 unsigned CRCIF : 1;
775 unsigned SCANIF : 1;
776 } __PIR4bits_t;
778 extern __at(0x0013) volatile __PIR4bits_t PIR4bits;
780 #define _SMT1IF 0x01
781 #define _SMT1PRAIF 0x02
782 #define _SMT1PWAIF 0x04
783 #define _SMT2IF 0x08
784 #define _SMT2PRAIF 0x10
785 #define _SMT2PWAIF 0x20
786 #define _CRCIF 0x40
787 #define _SCANIF 0x80
789 //==============================================================================
792 //==============================================================================
793 // PIR5 Bits
795 extern __at(0x0014) __sfr PIR5;
797 typedef struct
799 unsigned PID1DIF : 1;
800 unsigned PID1EIF : 1;
801 unsigned AT1IF : 1;
802 unsigned : 1;
803 unsigned TMR5IF : 1;
804 unsigned TMR5GIF : 1;
805 unsigned TMR3IF : 1;
806 unsigned TMR3GIF : 1;
807 } __PIR5bits_t;
809 extern __at(0x0014) volatile __PIR5bits_t PIR5bits;
811 #define _PID1DIF 0x01
812 #define _PID1EIF 0x02
813 #define _AT1IF 0x04
814 #define _TMR5IF 0x10
815 #define _TMR5GIF 0x20
816 #define _TMR3IF 0x40
817 #define _TMR3GIF 0x80
819 //==============================================================================
821 extern __at(0x0015) __sfr TMR0;
822 extern __at(0x0016) __sfr TMR1;
823 extern __at(0x0016) __sfr TMR1L;
824 extern __at(0x0017) __sfr TMR1H;
826 //==============================================================================
827 // T1CON Bits
829 extern __at(0x0018) __sfr T1CON;
831 typedef union
833 struct
835 unsigned TMR1ON : 1;
836 unsigned : 1;
837 unsigned NOT_T1SYNC : 1;
838 unsigned : 1;
839 unsigned T1CKPS0 : 1;
840 unsigned T1CKPS1 : 1;
841 unsigned TMR1CS0 : 1;
842 unsigned TMR1CS1 : 1;
845 struct
847 unsigned : 4;
848 unsigned T1CKPS : 2;
849 unsigned : 2;
852 struct
854 unsigned : 6;
855 unsigned TMR1CS : 2;
857 } __T1CONbits_t;
859 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
861 #define _TMR1ON 0x01
862 #define _NOT_T1SYNC 0x04
863 #define _T1CKPS0 0x10
864 #define _T1CKPS1 0x20
865 #define _TMR1CS0 0x40
866 #define _TMR1CS1 0x80
868 //==============================================================================
871 //==============================================================================
872 // T1GCON Bits
874 extern __at(0x0019) __sfr T1GCON;
876 typedef union
878 struct
880 unsigned T1GSS0 : 1;
881 unsigned T1GSS1 : 1;
882 unsigned T1GVAL : 1;
883 unsigned T1GGO_NOT_DONE : 1;
884 unsigned T1GSPM : 1;
885 unsigned T1GTM : 1;
886 unsigned T1GPOL : 1;
887 unsigned TMR1GE : 1;
890 struct
892 unsigned T1GSS : 2;
893 unsigned : 6;
895 } __T1GCONbits_t;
897 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
899 #define _T1GSS0 0x01
900 #define _T1GSS1 0x02
901 #define _T1GVAL 0x04
902 #define _T1GGO_NOT_DONE 0x08
903 #define _T1GSPM 0x10
904 #define _T1GTM 0x20
905 #define _T1GPOL 0x40
906 #define _TMR1GE 0x80
908 //==============================================================================
910 extern __at(0x001A) __sfr T2TMR;
911 extern __at(0x001A) __sfr TMR2;
912 extern __at(0x001B) __sfr PR2;
913 extern __at(0x001B) __sfr T2PR;
915 //==============================================================================
916 // T2CON Bits
918 extern __at(0x001C) __sfr T2CON;
920 typedef union
922 struct
924 unsigned OUTPS0 : 1;
925 unsigned OUTPS1 : 1;
926 unsigned OUTPS2 : 1;
927 unsigned OUTPS3 : 1;
928 unsigned CKPS0 : 1;
929 unsigned CKPS1 : 1;
930 unsigned CKPS2 : 1;
931 unsigned ON : 1;
934 struct
936 unsigned T2OUTPS0 : 1;
937 unsigned T2OUTPS1 : 1;
938 unsigned T2OUTPS2 : 1;
939 unsigned T2OUTPS3 : 1;
940 unsigned T2CKPS0 : 1;
941 unsigned T2CKPS1 : 1;
942 unsigned T2CKPS2 : 1;
943 unsigned T2ON : 1;
946 struct
948 unsigned : 1;
949 unsigned : 1;
950 unsigned : 1;
951 unsigned : 1;
952 unsigned : 1;
953 unsigned : 1;
954 unsigned : 1;
955 unsigned TMR2ON : 1;
958 struct
960 unsigned OUTPS : 4;
961 unsigned : 4;
964 struct
966 unsigned T2OUTPS : 4;
967 unsigned : 4;
970 struct
972 unsigned : 4;
973 unsigned T2CKPS : 3;
974 unsigned : 1;
977 struct
979 unsigned : 4;
980 unsigned CKPS : 3;
981 unsigned : 1;
983 } __T2CONbits_t;
985 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
987 #define _OUTPS0 0x01
988 #define _T2OUTPS0 0x01
989 #define _OUTPS1 0x02
990 #define _T2OUTPS1 0x02
991 #define _OUTPS2 0x04
992 #define _T2OUTPS2 0x04
993 #define _OUTPS3 0x08
994 #define _T2OUTPS3 0x08
995 #define _CKPS0 0x10
996 #define _T2CKPS0 0x10
997 #define _CKPS1 0x20
998 #define _T2CKPS1 0x20
999 #define _CKPS2 0x40
1000 #define _T2CKPS2 0x40
1001 #define _ON 0x80
1002 #define _T2ON 0x80
1003 #define _TMR2ON 0x80
1005 //==============================================================================
1008 //==============================================================================
1009 // T2HLT Bits
1011 extern __at(0x001D) __sfr T2HLT;
1013 typedef union
1015 struct
1017 unsigned MODE0 : 1;
1018 unsigned MODE1 : 1;
1019 unsigned MODE2 : 1;
1020 unsigned MODE3 : 1;
1021 unsigned MODE4 : 1;
1022 unsigned CKSYNC : 1;
1023 unsigned CKPOL : 1;
1024 unsigned PSYNC : 1;
1027 struct
1029 unsigned T2MODE0 : 1;
1030 unsigned T2MODE1 : 1;
1031 unsigned T2MODE2 : 1;
1032 unsigned T2MODE3 : 1;
1033 unsigned T2MODE4 : 1;
1034 unsigned T2CKSYNC : 1;
1035 unsigned T2CKPOL : 1;
1036 unsigned T2PSYNC : 1;
1039 struct
1041 unsigned MODE : 5;
1042 unsigned : 3;
1045 struct
1047 unsigned T2MODE : 5;
1048 unsigned : 3;
1050 } __T2HLTbits_t;
1052 extern __at(0x001D) volatile __T2HLTbits_t T2HLTbits;
1054 #define _T2HLT_MODE0 0x01
1055 #define _T2HLT_T2MODE0 0x01
1056 #define _T2HLT_MODE1 0x02
1057 #define _T2HLT_T2MODE1 0x02
1058 #define _T2HLT_MODE2 0x04
1059 #define _T2HLT_T2MODE2 0x04
1060 #define _T2HLT_MODE3 0x08
1061 #define _T2HLT_T2MODE3 0x08
1062 #define _T2HLT_MODE4 0x10
1063 #define _T2HLT_T2MODE4 0x10
1064 #define _T2HLT_CKSYNC 0x20
1065 #define _T2HLT_T2CKSYNC 0x20
1066 #define _T2HLT_CKPOL 0x40
1067 #define _T2HLT_T2CKPOL 0x40
1068 #define _T2HLT_PSYNC 0x80
1069 #define _T2HLT_T2PSYNC 0x80
1071 //==============================================================================
1074 //==============================================================================
1075 // T2CLKCON Bits
1077 extern __at(0x001E) __sfr T2CLKCON;
1079 typedef union
1081 struct
1083 unsigned CS0 : 1;
1084 unsigned CS1 : 1;
1085 unsigned CS2 : 1;
1086 unsigned CS3 : 1;
1087 unsigned : 1;
1088 unsigned : 1;
1089 unsigned : 1;
1090 unsigned : 1;
1093 struct
1095 unsigned T2CS0 : 1;
1096 unsigned T2CS1 : 1;
1097 unsigned T2CS2 : 1;
1098 unsigned T2CS3 : 1;
1099 unsigned : 1;
1100 unsigned : 1;
1101 unsigned : 1;
1102 unsigned : 1;
1105 struct
1107 unsigned T2CS : 4;
1108 unsigned : 4;
1111 struct
1113 unsigned CS : 4;
1114 unsigned : 4;
1116 } __T2CLKCONbits_t;
1118 extern __at(0x001E) volatile __T2CLKCONbits_t T2CLKCONbits;
1120 #define _T2CLKCON_CS0 0x01
1121 #define _T2CLKCON_T2CS0 0x01
1122 #define _T2CLKCON_CS1 0x02
1123 #define _T2CLKCON_T2CS1 0x02
1124 #define _T2CLKCON_CS2 0x04
1125 #define _T2CLKCON_T2CS2 0x04
1126 #define _T2CLKCON_CS3 0x08
1127 #define _T2CLKCON_T2CS3 0x08
1129 //==============================================================================
1132 //==============================================================================
1133 // T2RST Bits
1135 extern __at(0x001F) __sfr T2RST;
1137 typedef union
1139 struct
1141 unsigned RSEL0 : 1;
1142 unsigned RSEL1 : 1;
1143 unsigned RSEL2 : 1;
1144 unsigned RSEL3 : 1;
1145 unsigned : 1;
1146 unsigned : 1;
1147 unsigned : 1;
1148 unsigned : 1;
1151 struct
1153 unsigned T2RSEL0 : 1;
1154 unsigned T2RSEL1 : 1;
1155 unsigned T2RSEL2 : 1;
1156 unsigned T2RSEL3 : 1;
1157 unsigned : 1;
1158 unsigned : 1;
1159 unsigned : 1;
1160 unsigned : 1;
1163 struct
1165 unsigned T2RSEL : 4;
1166 unsigned : 4;
1169 struct
1171 unsigned RSEL : 4;
1172 unsigned : 4;
1174 } __T2RSTbits_t;
1176 extern __at(0x001F) volatile __T2RSTbits_t T2RSTbits;
1178 #define _RSEL0 0x01
1179 #define _T2RSEL0 0x01
1180 #define _RSEL1 0x02
1181 #define _T2RSEL1 0x02
1182 #define _RSEL2 0x04
1183 #define _T2RSEL2 0x04
1184 #define _RSEL3 0x08
1185 #define _T2RSEL3 0x08
1187 //==============================================================================
1190 //==============================================================================
1191 // TRISA Bits
1193 extern __at(0x008C) __sfr TRISA;
1195 typedef union
1197 struct
1199 unsigned TRISA0 : 1;
1200 unsigned TRISA1 : 1;
1201 unsigned TRISA2 : 1;
1202 unsigned TRISA3 : 1;
1203 unsigned TRISA4 : 1;
1204 unsigned TRISA5 : 1;
1205 unsigned : 1;
1206 unsigned : 1;
1209 struct
1211 unsigned TRISA : 6;
1212 unsigned : 2;
1214 } __TRISAbits_t;
1216 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
1218 #define _TRISA0 0x01
1219 #define _TRISA1 0x02
1220 #define _TRISA2 0x04
1221 #define _TRISA3 0x08
1222 #define _TRISA4 0x10
1223 #define _TRISA5 0x20
1225 //==============================================================================
1228 //==============================================================================
1229 // TRISC Bits
1231 extern __at(0x008E) __sfr TRISC;
1233 typedef union
1235 struct
1237 unsigned TRISC0 : 1;
1238 unsigned TRISC1 : 1;
1239 unsigned TRISC2 : 1;
1240 unsigned TRISC3 : 1;
1241 unsigned TRISC4 : 1;
1242 unsigned TRISC5 : 1;
1243 unsigned : 1;
1244 unsigned : 1;
1247 struct
1249 unsigned TRISC : 6;
1250 unsigned : 2;
1252 } __TRISCbits_t;
1254 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1256 #define _TRISC0 0x01
1257 #define _TRISC1 0x02
1258 #define _TRISC2 0x04
1259 #define _TRISC3 0x08
1260 #define _TRISC4 0x10
1261 #define _TRISC5 0x20
1263 //==============================================================================
1266 //==============================================================================
1267 // PIE1 Bits
1269 extern __at(0x0090) __sfr PIE1;
1271 typedef struct
1273 unsigned TMR1IE : 1;
1274 unsigned TMR2IE : 1;
1275 unsigned CCP1IE : 1;
1276 unsigned SSP1IE : 1;
1277 unsigned TXIE : 1;
1278 unsigned RCIE : 1;
1279 unsigned ADIE : 1;
1280 unsigned TMR1GIE : 1;
1281 } __PIE1bits_t;
1283 extern __at(0x0090) volatile __PIE1bits_t PIE1bits;
1285 #define _TMR1IE 0x01
1286 #define _TMR2IE 0x02
1287 #define _CCP1IE 0x04
1288 #define _SSP1IE 0x08
1289 #define _TXIE 0x10
1290 #define _RCIE 0x20
1291 #define _ADIE 0x40
1292 #define _TMR1GIE 0x80
1294 //==============================================================================
1297 //==============================================================================
1298 // PIE2 Bits
1300 extern __at(0x0091) __sfr PIE2;
1302 typedef struct
1304 unsigned CCP2IE : 1;
1305 unsigned TMR4IE : 1;
1306 unsigned TMR6IE : 1;
1307 unsigned BCL1IE : 1;
1308 unsigned : 1;
1309 unsigned C1IE : 1;
1310 unsigned C2IE : 1;
1311 unsigned OSCFIE : 1;
1312 } __PIE2bits_t;
1314 extern __at(0x0091) volatile __PIE2bits_t PIE2bits;
1316 #define _CCP2IE 0x01
1317 #define _TMR4IE 0x02
1318 #define _TMR6IE 0x04
1319 #define _BCL1IE 0x08
1320 #define _C1IE 0x20
1321 #define _C2IE 0x40
1322 #define _OSCFIE 0x80
1324 //==============================================================================
1327 //==============================================================================
1328 // PIE3 Bits
1330 extern __at(0x0092) __sfr PIE3;
1332 typedef struct
1334 unsigned CLC1IE : 1;
1335 unsigned CLC2IE : 1;
1336 unsigned CLC3IE : 1;
1337 unsigned CLC4IE : 1;
1338 unsigned ZCDIE : 1;
1339 unsigned CWGIE : 1;
1340 unsigned : 1;
1341 unsigned : 1;
1342 } __PIE3bits_t;
1344 extern __at(0x0092) volatile __PIE3bits_t PIE3bits;
1346 #define _CLC1IE 0x01
1347 #define _CLC2IE 0x02
1348 #define _CLC3IE 0x04
1349 #define _CLC4IE 0x08
1350 #define _ZCDIE 0x10
1351 #define _CWGIE 0x20
1353 //==============================================================================
1356 //==============================================================================
1357 // PIE4 Bits
1359 extern __at(0x0093) __sfr PIE4;
1361 typedef struct
1363 unsigned SMT1IE : 1;
1364 unsigned SMT1PRAIE : 1;
1365 unsigned SMT1PWAIE : 1;
1366 unsigned SMT2IE : 1;
1367 unsigned SMT2PRAIE : 1;
1368 unsigned SMT2PWAIE : 1;
1369 unsigned CRCIE : 1;
1370 unsigned SCANIE : 1;
1371 } __PIE4bits_t;
1373 extern __at(0x0093) volatile __PIE4bits_t PIE4bits;
1375 #define _SMT1IE 0x01
1376 #define _SMT1PRAIE 0x02
1377 #define _SMT1PWAIE 0x04
1378 #define _SMT2IE 0x08
1379 #define _SMT2PRAIE 0x10
1380 #define _SMT2PWAIE 0x20
1381 #define _CRCIE 0x40
1382 #define _SCANIE 0x80
1384 //==============================================================================
1387 //==============================================================================
1388 // PIE5 Bits
1390 extern __at(0x0094) __sfr PIE5;
1392 typedef struct
1394 unsigned PID1DIE : 1;
1395 unsigned PID1EIE : 1;
1396 unsigned AT1IE : 1;
1397 unsigned : 1;
1398 unsigned TMR5IE : 1;
1399 unsigned TMR5GIE : 1;
1400 unsigned TMR3IE : 1;
1401 unsigned TMR3GIE : 1;
1402 } __PIE5bits_t;
1404 extern __at(0x0094) volatile __PIE5bits_t PIE5bits;
1406 #define _PID1DIE 0x01
1407 #define _PID1EIE 0x02
1408 #define _AT1IE 0x04
1409 #define _TMR5IE 0x10
1410 #define _TMR5GIE 0x20
1411 #define _TMR3IE 0x40
1412 #define _TMR3GIE 0x80
1414 //==============================================================================
1417 //==============================================================================
1418 // OPTION_REG Bits
1420 extern __at(0x0095) __sfr OPTION_REG;
1422 typedef union
1424 struct
1426 unsigned PS0 : 1;
1427 unsigned PS1 : 1;
1428 unsigned PS2 : 1;
1429 unsigned PSA : 1;
1430 unsigned TMR0SE : 1;
1431 unsigned TMR0CS : 1;
1432 unsigned INTEDG : 1;
1433 unsigned NOT_WPUEN : 1;
1436 struct
1438 unsigned : 1;
1439 unsigned : 1;
1440 unsigned : 1;
1441 unsigned : 1;
1442 unsigned T0SE : 1;
1443 unsigned T0CS : 1;
1444 unsigned : 1;
1445 unsigned : 1;
1448 struct
1450 unsigned PS : 3;
1451 unsigned : 5;
1453 } __OPTION_REGbits_t;
1455 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1457 #define _OPTION_REG_PS0 0x01
1458 #define _OPTION_REG_PS1 0x02
1459 #define _OPTION_REG_PS2 0x04
1460 #define _OPTION_REG_PSA 0x08
1461 #define _OPTION_REG_TMR0SE 0x10
1462 #define _OPTION_REG_T0SE 0x10
1463 #define _OPTION_REG_TMR0CS 0x20
1464 #define _OPTION_REG_T0CS 0x20
1465 #define _OPTION_REG_INTEDG 0x40
1466 #define _OPTION_REG_NOT_WPUEN 0x80
1468 //==============================================================================
1471 //==============================================================================
1472 // PCON Bits
1474 extern __at(0x0096) __sfr PCON;
1476 typedef struct
1478 unsigned NOT_BOR : 1;
1479 unsigned NOT_POR : 1;
1480 unsigned NOT_RI : 1;
1481 unsigned NOT_RMCLR : 1;
1482 unsigned NOT_RWDT : 1;
1483 unsigned NOT_WDTWV : 1;
1484 unsigned STKUNF : 1;
1485 unsigned STKOVF : 1;
1486 } __PCONbits_t;
1488 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1490 #define _NOT_BOR 0x01
1491 #define _NOT_POR 0x02
1492 #define _NOT_RI 0x04
1493 #define _NOT_RMCLR 0x08
1494 #define _NOT_RWDT 0x10
1495 #define _NOT_WDTWV 0x20
1496 #define _STKUNF 0x40
1497 #define _STKOVF 0x80
1499 //==============================================================================
1502 //==============================================================================
1503 // OSCTUNE Bits
1505 extern __at(0x0098) __sfr OSCTUNE;
1507 typedef union
1509 struct
1511 unsigned TUN0 : 1;
1512 unsigned TUN1 : 1;
1513 unsigned TUN2 : 1;
1514 unsigned TUN3 : 1;
1515 unsigned TUN4 : 1;
1516 unsigned TUN5 : 1;
1517 unsigned : 1;
1518 unsigned : 1;
1521 struct
1523 unsigned TUN : 6;
1524 unsigned : 2;
1526 } __OSCTUNEbits_t;
1528 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1530 #define _TUN0 0x01
1531 #define _TUN1 0x02
1532 #define _TUN2 0x04
1533 #define _TUN3 0x08
1534 #define _TUN4 0x10
1535 #define _TUN5 0x20
1537 //==============================================================================
1540 //==============================================================================
1541 // OSCCON Bits
1543 extern __at(0x0099) __sfr OSCCON;
1545 typedef union
1547 struct
1549 unsigned SCS0 : 1;
1550 unsigned SCS1 : 1;
1551 unsigned : 1;
1552 unsigned IRCF0 : 1;
1553 unsigned IRCF1 : 1;
1554 unsigned IRCF2 : 1;
1555 unsigned IRCF3 : 1;
1556 unsigned SPLLEN : 1;
1559 struct
1561 unsigned SCS : 2;
1562 unsigned : 6;
1565 struct
1567 unsigned : 3;
1568 unsigned IRCF : 4;
1569 unsigned : 1;
1571 } __OSCCONbits_t;
1573 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1575 #define _SCS0 0x01
1576 #define _SCS1 0x02
1577 #define _IRCF0 0x08
1578 #define _IRCF1 0x10
1579 #define _IRCF2 0x20
1580 #define _IRCF3 0x40
1581 #define _SPLLEN 0x80
1583 //==============================================================================
1586 //==============================================================================
1587 // OSCSTAT Bits
1589 extern __at(0x009A) __sfr OSCSTAT;
1591 typedef struct
1593 unsigned HFIOFS : 1;
1594 unsigned LFIOFR : 1;
1595 unsigned MFIOFR : 1;
1596 unsigned HFIOFL : 1;
1597 unsigned HFIOFR : 1;
1598 unsigned OSTS : 1;
1599 unsigned PLLR : 1;
1600 unsigned : 1;
1601 } __OSCSTATbits_t;
1603 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1605 #define _HFIOFS 0x01
1606 #define _LFIOFR 0x02
1607 #define _MFIOFR 0x04
1608 #define _HFIOFL 0x08
1609 #define _HFIOFR 0x10
1610 #define _OSTS 0x20
1611 #define _PLLR 0x40
1613 //==============================================================================
1615 extern __at(0x009B) __sfr ADRES;
1616 extern __at(0x009B) __sfr ADRESL;
1617 extern __at(0x009C) __sfr ADRESH;
1619 //==============================================================================
1620 // ADCON0 Bits
1622 extern __at(0x009D) __sfr ADCON0;
1624 typedef union
1626 struct
1628 unsigned ADON : 1;
1629 unsigned GO_NOT_DONE : 1;
1630 unsigned CHS0 : 1;
1631 unsigned CHS1 : 1;
1632 unsigned CHS2 : 1;
1633 unsigned CHS3 : 1;
1634 unsigned CHS4 : 1;
1635 unsigned : 1;
1638 struct
1640 unsigned : 1;
1641 unsigned ADGO : 1;
1642 unsigned : 1;
1643 unsigned : 1;
1644 unsigned : 1;
1645 unsigned : 1;
1646 unsigned : 1;
1647 unsigned : 1;
1650 struct
1652 unsigned : 1;
1653 unsigned GO : 1;
1654 unsigned : 1;
1655 unsigned : 1;
1656 unsigned : 1;
1657 unsigned : 1;
1658 unsigned : 1;
1659 unsigned : 1;
1662 struct
1664 unsigned : 2;
1665 unsigned CHS : 5;
1666 unsigned : 1;
1668 } __ADCON0bits_t;
1670 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1672 #define _ADON 0x01
1673 #define _GO_NOT_DONE 0x02
1674 #define _ADGO 0x02
1675 #define _GO 0x02
1676 #define _CHS0 0x04
1677 #define _CHS1 0x08
1678 #define _CHS2 0x10
1679 #define _CHS3 0x20
1680 #define _CHS4 0x40
1682 //==============================================================================
1685 //==============================================================================
1686 // ADCON1 Bits
1688 extern __at(0x009E) __sfr ADCON1;
1690 typedef union
1692 struct
1694 unsigned ADPREF0 : 1;
1695 unsigned ADPREF1 : 1;
1696 unsigned : 1;
1697 unsigned : 1;
1698 unsigned ADCS0 : 1;
1699 unsigned ADCS1 : 1;
1700 unsigned ADCS2 : 1;
1701 unsigned ADFM : 1;
1704 struct
1706 unsigned ADPREF : 2;
1707 unsigned : 6;
1710 struct
1712 unsigned : 4;
1713 unsigned ADCS : 3;
1714 unsigned : 1;
1716 } __ADCON1bits_t;
1718 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1720 #define _ADPREF0 0x01
1721 #define _ADPREF1 0x02
1722 #define _ADCS0 0x10
1723 #define _ADCS1 0x20
1724 #define _ADCS2 0x40
1725 #define _ADFM 0x80
1727 //==============================================================================
1730 //==============================================================================
1731 // ADCON2 Bits
1733 extern __at(0x009F) __sfr ADCON2;
1735 typedef union
1737 struct
1739 unsigned : 1;
1740 unsigned : 1;
1741 unsigned : 1;
1742 unsigned : 1;
1743 unsigned TRIGSEL0 : 1;
1744 unsigned TRIGSEL1 : 1;
1745 unsigned TRIGSEL2 : 1;
1746 unsigned TRIGSEL3 : 1;
1749 struct
1751 unsigned : 4;
1752 unsigned TRIGSEL : 4;
1754 } __ADCON2bits_t;
1756 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1758 #define _TRIGSEL0 0x10
1759 #define _TRIGSEL1 0x20
1760 #define _TRIGSEL2 0x40
1761 #define _TRIGSEL3 0x80
1763 //==============================================================================
1766 //==============================================================================
1767 // LATA Bits
1769 extern __at(0x010C) __sfr LATA;
1771 typedef union
1773 struct
1775 unsigned LATA0 : 1;
1776 unsigned LATA1 : 1;
1777 unsigned LATA2 : 1;
1778 unsigned LATA3 : 1;
1779 unsigned LATA4 : 1;
1780 unsigned LATA5 : 1;
1781 unsigned : 1;
1782 unsigned : 1;
1785 struct
1787 unsigned LATA : 6;
1788 unsigned : 2;
1790 } __LATAbits_t;
1792 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1794 #define _LATA0 0x01
1795 #define _LATA1 0x02
1796 #define _LATA2 0x04
1797 #define _LATA3 0x08
1798 #define _LATA4 0x10
1799 #define _LATA5 0x20
1801 //==============================================================================
1804 //==============================================================================
1805 // LATC Bits
1807 extern __at(0x010E) __sfr LATC;
1809 typedef union
1811 struct
1813 unsigned LATC0 : 1;
1814 unsigned LATC1 : 1;
1815 unsigned LATC2 : 1;
1816 unsigned LATC3 : 1;
1817 unsigned LATC4 : 1;
1818 unsigned LATC5 : 1;
1819 unsigned : 1;
1820 unsigned : 1;
1823 struct
1825 unsigned LATC : 6;
1826 unsigned : 2;
1828 } __LATCbits_t;
1830 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1832 #define _LATC0 0x01
1833 #define _LATC1 0x02
1834 #define _LATC2 0x04
1835 #define _LATC3 0x08
1836 #define _LATC4 0x10
1837 #define _LATC5 0x20
1839 //==============================================================================
1842 //==============================================================================
1843 // CM1CON0 Bits
1845 extern __at(0x0111) __sfr CM1CON0;
1847 typedef struct
1849 unsigned C1SYNC : 1;
1850 unsigned C1HYS : 1;
1851 unsigned C1SP : 1;
1852 unsigned : 1;
1853 unsigned C1POL : 1;
1854 unsigned : 1;
1855 unsigned C1OUT : 1;
1856 unsigned C1ON : 1;
1857 } __CM1CON0bits_t;
1859 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1861 #define _C1SYNC 0x01
1862 #define _C1HYS 0x02
1863 #define _C1SP 0x04
1864 #define _C1POL 0x10
1865 #define _C1OUT 0x40
1866 #define _C1ON 0x80
1868 //==============================================================================
1871 //==============================================================================
1872 // CM1CON1 Bits
1874 extern __at(0x0112) __sfr CM1CON1;
1876 typedef union
1878 struct
1880 unsigned C1NCH0 : 1;
1881 unsigned C1NCH1 : 1;
1882 unsigned C1NCH2 : 1;
1883 unsigned : 1;
1884 unsigned C1PCH0 : 1;
1885 unsigned C1PCH1 : 1;
1886 unsigned C1INTN : 1;
1887 unsigned C1INTP : 1;
1890 struct
1892 unsigned C1NCH : 3;
1893 unsigned : 5;
1896 struct
1898 unsigned : 4;
1899 unsigned C1PCH : 2;
1900 unsigned : 2;
1902 } __CM1CON1bits_t;
1904 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1906 #define _C1NCH0 0x01
1907 #define _C1NCH1 0x02
1908 #define _C1NCH2 0x04
1909 #define _C1PCH0 0x10
1910 #define _C1PCH1 0x20
1911 #define _C1INTN 0x40
1912 #define _C1INTP 0x80
1914 //==============================================================================
1917 //==============================================================================
1918 // CM2CON0 Bits
1920 extern __at(0x0113) __sfr CM2CON0;
1922 typedef struct
1924 unsigned C2SYNC : 1;
1925 unsigned C2HYS : 1;
1926 unsigned C2SP : 1;
1927 unsigned : 1;
1928 unsigned C2POL : 1;
1929 unsigned : 1;
1930 unsigned C2OUT : 1;
1931 unsigned C2ON : 1;
1932 } __CM2CON0bits_t;
1934 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
1936 #define _C2SYNC 0x01
1937 #define _C2HYS 0x02
1938 #define _C2SP 0x04
1939 #define _C2POL 0x10
1940 #define _C2OUT 0x40
1941 #define _C2ON 0x80
1943 //==============================================================================
1946 //==============================================================================
1947 // CM2CON1 Bits
1949 extern __at(0x0114) __sfr CM2CON1;
1951 typedef union
1953 struct
1955 unsigned C2NCH0 : 1;
1956 unsigned C2NCH1 : 1;
1957 unsigned C2NCH2 : 1;
1958 unsigned : 1;
1959 unsigned C2PCH0 : 1;
1960 unsigned C2PCH1 : 1;
1961 unsigned C2INTN : 1;
1962 unsigned C2INTP : 1;
1965 struct
1967 unsigned C2NCH : 3;
1968 unsigned : 5;
1971 struct
1973 unsigned : 4;
1974 unsigned C2PCH : 2;
1975 unsigned : 2;
1977 } __CM2CON1bits_t;
1979 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
1981 #define _C2NCH0 0x01
1982 #define _C2NCH1 0x02
1983 #define _C2NCH2 0x04
1984 #define _C2PCH0 0x10
1985 #define _C2PCH1 0x20
1986 #define _C2INTN 0x40
1987 #define _C2INTP 0x80
1989 //==============================================================================
1992 //==============================================================================
1993 // CMOUT Bits
1995 extern __at(0x0115) __sfr CMOUT;
1997 typedef struct
1999 unsigned MC1OUT : 1;
2000 unsigned MC2OUT : 1;
2001 unsigned : 1;
2002 unsigned : 1;
2003 unsigned : 1;
2004 unsigned : 1;
2005 unsigned : 1;
2006 unsigned : 1;
2007 } __CMOUTbits_t;
2009 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
2011 #define _MC1OUT 0x01
2012 #define _MC2OUT 0x02
2014 //==============================================================================
2017 //==============================================================================
2018 // BORCON Bits
2020 extern __at(0x0116) __sfr BORCON;
2022 typedef struct
2024 unsigned BORRDY : 1;
2025 unsigned : 1;
2026 unsigned : 1;
2027 unsigned : 1;
2028 unsigned : 1;
2029 unsigned : 1;
2030 unsigned BORFS : 1;
2031 unsigned SBOREN : 1;
2032 } __BORCONbits_t;
2034 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
2036 #define _BORRDY 0x01
2037 #define _BORFS 0x40
2038 #define _SBOREN 0x80
2040 //==============================================================================
2043 //==============================================================================
2044 // FVRCON Bits
2046 extern __at(0x0117) __sfr FVRCON;
2048 typedef union
2050 struct
2052 unsigned ADFVR0 : 1;
2053 unsigned ADFVR1 : 1;
2054 unsigned CDAFVR0 : 1;
2055 unsigned CDAFVR1 : 1;
2056 unsigned TSRNG : 1;
2057 unsigned TSEN : 1;
2058 unsigned FVRRDY : 1;
2059 unsigned FVREN : 1;
2062 struct
2064 unsigned ADFVR : 2;
2065 unsigned : 6;
2068 struct
2070 unsigned : 2;
2071 unsigned CDAFVR : 2;
2072 unsigned : 4;
2074 } __FVRCONbits_t;
2076 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
2078 #define _ADFVR0 0x01
2079 #define _ADFVR1 0x02
2080 #define _CDAFVR0 0x04
2081 #define _CDAFVR1 0x08
2082 #define _TSRNG 0x10
2083 #define _TSEN 0x20
2084 #define _FVRRDY 0x40
2085 #define _FVREN 0x80
2087 //==============================================================================
2090 //==============================================================================
2091 // DAC1CON0 Bits
2093 extern __at(0x0118) __sfr DAC1CON0;
2095 typedef union
2097 struct
2099 unsigned : 1;
2100 unsigned : 1;
2101 unsigned D1PSS0 : 1;
2102 unsigned D1PSS1 : 1;
2103 unsigned : 1;
2104 unsigned DAC1OE : 1;
2105 unsigned : 1;
2106 unsigned DAC1EN : 1;
2109 struct
2111 unsigned : 2;
2112 unsigned D1PSS : 2;
2113 unsigned : 4;
2115 } __DAC1CON0bits_t;
2117 extern __at(0x0118) volatile __DAC1CON0bits_t DAC1CON0bits;
2119 #define _D1PSS0 0x04
2120 #define _D1PSS1 0x08
2121 #define _DAC1OE 0x20
2122 #define _DAC1EN 0x80
2124 //==============================================================================
2127 //==============================================================================
2128 // DAC1CON1 Bits
2130 extern __at(0x0119) __sfr DAC1CON1;
2132 typedef struct
2134 unsigned DAC1R0 : 1;
2135 unsigned DAC1R1 : 1;
2136 unsigned DAC1R2 : 1;
2137 unsigned DAC1R3 : 1;
2138 unsigned DAC1R4 : 1;
2139 unsigned DAC1R5 : 1;
2140 unsigned DAC1R6 : 1;
2141 unsigned DAC1R7 : 1;
2142 } __DAC1CON1bits_t;
2144 extern __at(0x0119) volatile __DAC1CON1bits_t DAC1CON1bits;
2146 #define _DAC1R0 0x01
2147 #define _DAC1R1 0x02
2148 #define _DAC1R2 0x04
2149 #define _DAC1R3 0x08
2150 #define _DAC1R4 0x10
2151 #define _DAC1R5 0x20
2152 #define _DAC1R6 0x40
2153 #define _DAC1R7 0x80
2155 //==============================================================================
2158 //==============================================================================
2159 // ZCD1CON Bits
2161 extern __at(0x011C) __sfr ZCD1CON;
2163 typedef struct
2165 unsigned ZCD1INTN : 1;
2166 unsigned ZCD1INTP : 1;
2167 unsigned : 1;
2168 unsigned : 1;
2169 unsigned ZCD1POL : 1;
2170 unsigned ZCD1OUT : 1;
2171 unsigned : 1;
2172 unsigned ZCD1EN : 1;
2173 } __ZCD1CONbits_t;
2175 extern __at(0x011C) volatile __ZCD1CONbits_t ZCD1CONbits;
2177 #define _ZCD1INTN 0x01
2178 #define _ZCD1INTP 0x02
2179 #define _ZCD1POL 0x10
2180 #define _ZCD1OUT 0x20
2181 #define _ZCD1EN 0x80
2183 //==============================================================================
2186 //==============================================================================
2187 // ANSELA Bits
2189 extern __at(0x018C) __sfr ANSELA;
2191 typedef struct
2193 unsigned ANSA0 : 1;
2194 unsigned ANSA1 : 1;
2195 unsigned ANSA2 : 1;
2196 unsigned : 1;
2197 unsigned ANSA4 : 1;
2198 unsigned : 1;
2199 unsigned : 1;
2200 unsigned : 1;
2201 } __ANSELAbits_t;
2203 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2205 #define _ANSA0 0x01
2206 #define _ANSA1 0x02
2207 #define _ANSA2 0x04
2208 #define _ANSA4 0x10
2210 //==============================================================================
2213 //==============================================================================
2214 // ANSELC Bits
2216 extern __at(0x018E) __sfr ANSELC;
2218 typedef union
2220 struct
2222 unsigned ANSC0 : 1;
2223 unsigned ANSC1 : 1;
2224 unsigned ANSC2 : 1;
2225 unsigned ANSC3 : 1;
2226 unsigned : 1;
2227 unsigned : 1;
2228 unsigned : 1;
2229 unsigned : 1;
2232 struct
2234 unsigned ANSC : 4;
2235 unsigned : 4;
2237 } __ANSELCbits_t;
2239 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2241 #define _ANSC0 0x01
2242 #define _ANSC1 0x02
2243 #define _ANSC2 0x04
2244 #define _ANSC3 0x08
2246 //==============================================================================
2248 extern __at(0x0191) __sfr PMADR;
2249 extern __at(0x0191) __sfr PMADRL;
2250 extern __at(0x0192) __sfr PMADRH;
2251 extern __at(0x0193) __sfr PMDAT;
2252 extern __at(0x0193) __sfr PMDATL;
2253 extern __at(0x0194) __sfr PMDATH;
2255 //==============================================================================
2256 // PMCON1 Bits
2258 extern __at(0x0195) __sfr PMCON1;
2260 typedef struct
2262 unsigned RD : 1;
2263 unsigned WR : 1;
2264 unsigned WREN : 1;
2265 unsigned WRERR : 1;
2266 unsigned FREE : 1;
2267 unsigned LWLO : 1;
2268 unsigned CFGS : 1;
2269 unsigned : 1;
2270 } __PMCON1bits_t;
2272 extern __at(0x0195) volatile __PMCON1bits_t PMCON1bits;
2274 #define _RD 0x01
2275 #define _WR 0x02
2276 #define _WREN 0x04
2277 #define _WRERR 0x08
2278 #define _FREE 0x10
2279 #define _LWLO 0x20
2280 #define _CFGS 0x40
2282 //==============================================================================
2284 extern __at(0x0196) __sfr PMCON2;
2286 //==============================================================================
2287 // VREGCON Bits
2289 extern __at(0x0197) __sfr VREGCON;
2291 typedef union
2293 struct
2295 unsigned VREGPM0 : 1;
2296 unsigned VREGPM1 : 1;
2297 unsigned : 1;
2298 unsigned : 1;
2299 unsigned : 1;
2300 unsigned : 1;
2301 unsigned : 1;
2302 unsigned : 1;
2305 struct
2307 unsigned VREGPM : 2;
2308 unsigned : 6;
2310 } __VREGCONbits_t;
2312 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
2314 #define _VREGPM0 0x01
2315 #define _VREGPM1 0x02
2317 //==============================================================================
2319 extern __at(0x0199) __sfr RC1REG;
2320 extern __at(0x0199) __sfr RCREG;
2321 extern __at(0x0199) __sfr RCREG1;
2322 extern __at(0x019A) __sfr TX1REG;
2323 extern __at(0x019A) __sfr TXREG;
2324 extern __at(0x019A) __sfr TXREG1;
2325 extern __at(0x019B) __sfr SP1BRG;
2326 extern __at(0x019B) __sfr SP1BRGL;
2327 extern __at(0x019B) __sfr SPBRG;
2328 extern __at(0x019B) __sfr SPBRG1;
2329 extern __at(0x019B) __sfr SPBRGL;
2330 extern __at(0x019C) __sfr SP1BRGH;
2331 extern __at(0x019C) __sfr SPBRGH;
2332 extern __at(0x019C) __sfr SPBRGH1;
2334 //==============================================================================
2335 // RC1STA Bits
2337 extern __at(0x019D) __sfr RC1STA;
2339 typedef struct
2341 unsigned RX9D : 1;
2342 unsigned OERR : 1;
2343 unsigned FERR : 1;
2344 unsigned ADDEN : 1;
2345 unsigned CREN : 1;
2346 unsigned SREN : 1;
2347 unsigned RX9 : 1;
2348 unsigned SPEN : 1;
2349 } __RC1STAbits_t;
2351 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2353 #define _RX9D 0x01
2354 #define _OERR 0x02
2355 #define _FERR 0x04
2356 #define _ADDEN 0x08
2357 #define _CREN 0x10
2358 #define _SREN 0x20
2359 #define _RX9 0x40
2360 #define _SPEN 0x80
2362 //==============================================================================
2365 //==============================================================================
2366 // RCSTA Bits
2368 extern __at(0x019D) __sfr RCSTA;
2370 typedef struct
2372 unsigned RX9D : 1;
2373 unsigned OERR : 1;
2374 unsigned FERR : 1;
2375 unsigned ADDEN : 1;
2376 unsigned CREN : 1;
2377 unsigned SREN : 1;
2378 unsigned RX9 : 1;
2379 unsigned SPEN : 1;
2380 } __RCSTAbits_t;
2382 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2384 #define _RCSTA_RX9D 0x01
2385 #define _RCSTA_OERR 0x02
2386 #define _RCSTA_FERR 0x04
2387 #define _RCSTA_ADDEN 0x08
2388 #define _RCSTA_CREN 0x10
2389 #define _RCSTA_SREN 0x20
2390 #define _RCSTA_RX9 0x40
2391 #define _RCSTA_SPEN 0x80
2393 //==============================================================================
2396 //==============================================================================
2397 // RCSTA1 Bits
2399 extern __at(0x019D) __sfr RCSTA1;
2401 typedef struct
2403 unsigned RX9D : 1;
2404 unsigned OERR : 1;
2405 unsigned FERR : 1;
2406 unsigned ADDEN : 1;
2407 unsigned CREN : 1;
2408 unsigned SREN : 1;
2409 unsigned RX9 : 1;
2410 unsigned SPEN : 1;
2411 } __RCSTA1bits_t;
2413 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2415 #define _RCSTA1_RX9D 0x01
2416 #define _RCSTA1_OERR 0x02
2417 #define _RCSTA1_FERR 0x04
2418 #define _RCSTA1_ADDEN 0x08
2419 #define _RCSTA1_CREN 0x10
2420 #define _RCSTA1_SREN 0x20
2421 #define _RCSTA1_RX9 0x40
2422 #define _RCSTA1_SPEN 0x80
2424 //==============================================================================
2427 //==============================================================================
2428 // TX1STA Bits
2430 extern __at(0x019E) __sfr TX1STA;
2432 typedef struct
2434 unsigned TX9D : 1;
2435 unsigned TRMT : 1;
2436 unsigned BRGH : 1;
2437 unsigned SENDB : 1;
2438 unsigned SYNC : 1;
2439 unsigned TXEN : 1;
2440 unsigned TX9 : 1;
2441 unsigned CSRC : 1;
2442 } __TX1STAbits_t;
2444 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
2446 #define _TX9D 0x01
2447 #define _TRMT 0x02
2448 #define _BRGH 0x04
2449 #define _SENDB 0x08
2450 #define _SYNC 0x10
2451 #define _TXEN 0x20
2452 #define _TX9 0x40
2453 #define _CSRC 0x80
2455 //==============================================================================
2458 //==============================================================================
2459 // TXSTA Bits
2461 extern __at(0x019E) __sfr TXSTA;
2463 typedef struct
2465 unsigned TX9D : 1;
2466 unsigned TRMT : 1;
2467 unsigned BRGH : 1;
2468 unsigned SENDB : 1;
2469 unsigned SYNC : 1;
2470 unsigned TXEN : 1;
2471 unsigned TX9 : 1;
2472 unsigned CSRC : 1;
2473 } __TXSTAbits_t;
2475 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
2477 #define _TXSTA_TX9D 0x01
2478 #define _TXSTA_TRMT 0x02
2479 #define _TXSTA_BRGH 0x04
2480 #define _TXSTA_SENDB 0x08
2481 #define _TXSTA_SYNC 0x10
2482 #define _TXSTA_TXEN 0x20
2483 #define _TXSTA_TX9 0x40
2484 #define _TXSTA_CSRC 0x80
2486 //==============================================================================
2489 //==============================================================================
2490 // TXSTA1 Bits
2492 extern __at(0x019E) __sfr TXSTA1;
2494 typedef struct
2496 unsigned TX9D : 1;
2497 unsigned TRMT : 1;
2498 unsigned BRGH : 1;
2499 unsigned SENDB : 1;
2500 unsigned SYNC : 1;
2501 unsigned TXEN : 1;
2502 unsigned TX9 : 1;
2503 unsigned CSRC : 1;
2504 } __TXSTA1bits_t;
2506 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
2508 #define _TXSTA1_TX9D 0x01
2509 #define _TXSTA1_TRMT 0x02
2510 #define _TXSTA1_BRGH 0x04
2511 #define _TXSTA1_SENDB 0x08
2512 #define _TXSTA1_SYNC 0x10
2513 #define _TXSTA1_TXEN 0x20
2514 #define _TXSTA1_TX9 0x40
2515 #define _TXSTA1_CSRC 0x80
2517 //==============================================================================
2520 //==============================================================================
2521 // BAUD1CON Bits
2523 extern __at(0x019F) __sfr BAUD1CON;
2525 typedef struct
2527 unsigned ABDEN : 1;
2528 unsigned WUE : 1;
2529 unsigned : 1;
2530 unsigned BRG16 : 1;
2531 unsigned SCKP : 1;
2532 unsigned : 1;
2533 unsigned RCIDL : 1;
2534 unsigned ABDOVF : 1;
2535 } __BAUD1CONbits_t;
2537 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
2539 #define _ABDEN 0x01
2540 #define _WUE 0x02
2541 #define _BRG16 0x08
2542 #define _SCKP 0x10
2543 #define _RCIDL 0x40
2544 #define _ABDOVF 0x80
2546 //==============================================================================
2549 //==============================================================================
2550 // BAUDCON Bits
2552 extern __at(0x019F) __sfr BAUDCON;
2554 typedef struct
2556 unsigned ABDEN : 1;
2557 unsigned WUE : 1;
2558 unsigned : 1;
2559 unsigned BRG16 : 1;
2560 unsigned SCKP : 1;
2561 unsigned : 1;
2562 unsigned RCIDL : 1;
2563 unsigned ABDOVF : 1;
2564 } __BAUDCONbits_t;
2566 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
2568 #define _BAUDCON_ABDEN 0x01
2569 #define _BAUDCON_WUE 0x02
2570 #define _BAUDCON_BRG16 0x08
2571 #define _BAUDCON_SCKP 0x10
2572 #define _BAUDCON_RCIDL 0x40
2573 #define _BAUDCON_ABDOVF 0x80
2575 //==============================================================================
2578 //==============================================================================
2579 // BAUDCON1 Bits
2581 extern __at(0x019F) __sfr BAUDCON1;
2583 typedef struct
2585 unsigned ABDEN : 1;
2586 unsigned WUE : 1;
2587 unsigned : 1;
2588 unsigned BRG16 : 1;
2589 unsigned SCKP : 1;
2590 unsigned : 1;
2591 unsigned RCIDL : 1;
2592 unsigned ABDOVF : 1;
2593 } __BAUDCON1bits_t;
2595 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
2597 #define _BAUDCON1_ABDEN 0x01
2598 #define _BAUDCON1_WUE 0x02
2599 #define _BAUDCON1_BRG16 0x08
2600 #define _BAUDCON1_SCKP 0x10
2601 #define _BAUDCON1_RCIDL 0x40
2602 #define _BAUDCON1_ABDOVF 0x80
2604 //==============================================================================
2607 //==============================================================================
2608 // BAUDCTL Bits
2610 extern __at(0x019F) __sfr BAUDCTL;
2612 typedef struct
2614 unsigned ABDEN : 1;
2615 unsigned WUE : 1;
2616 unsigned : 1;
2617 unsigned BRG16 : 1;
2618 unsigned SCKP : 1;
2619 unsigned : 1;
2620 unsigned RCIDL : 1;
2621 unsigned ABDOVF : 1;
2622 } __BAUDCTLbits_t;
2624 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
2626 #define _BAUDCTL_ABDEN 0x01
2627 #define _BAUDCTL_WUE 0x02
2628 #define _BAUDCTL_BRG16 0x08
2629 #define _BAUDCTL_SCKP 0x10
2630 #define _BAUDCTL_RCIDL 0x40
2631 #define _BAUDCTL_ABDOVF 0x80
2633 //==============================================================================
2636 //==============================================================================
2637 // BAUDCTL1 Bits
2639 extern __at(0x019F) __sfr BAUDCTL1;
2641 typedef struct
2643 unsigned ABDEN : 1;
2644 unsigned WUE : 1;
2645 unsigned : 1;
2646 unsigned BRG16 : 1;
2647 unsigned SCKP : 1;
2648 unsigned : 1;
2649 unsigned RCIDL : 1;
2650 unsigned ABDOVF : 1;
2651 } __BAUDCTL1bits_t;
2653 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
2655 #define _BAUDCTL1_ABDEN 0x01
2656 #define _BAUDCTL1_WUE 0x02
2657 #define _BAUDCTL1_BRG16 0x08
2658 #define _BAUDCTL1_SCKP 0x10
2659 #define _BAUDCTL1_RCIDL 0x40
2660 #define _BAUDCTL1_ABDOVF 0x80
2662 //==============================================================================
2665 //==============================================================================
2666 // WPUA Bits
2668 extern __at(0x020C) __sfr WPUA;
2670 typedef union
2672 struct
2674 unsigned WPUA0 : 1;
2675 unsigned WPUA1 : 1;
2676 unsigned WPUA2 : 1;
2677 unsigned WPUA3 : 1;
2678 unsigned WPUA4 : 1;
2679 unsigned WPUA5 : 1;
2680 unsigned : 1;
2681 unsigned : 1;
2684 struct
2686 unsigned WPUA : 6;
2687 unsigned : 2;
2689 } __WPUAbits_t;
2691 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
2693 #define _WPUA0 0x01
2694 #define _WPUA1 0x02
2695 #define _WPUA2 0x04
2696 #define _WPUA3 0x08
2697 #define _WPUA4 0x10
2698 #define _WPUA5 0x20
2700 //==============================================================================
2703 //==============================================================================
2704 // WPUC Bits
2706 extern __at(0x020E) __sfr WPUC;
2708 typedef union
2710 struct
2712 unsigned WPUC0 : 1;
2713 unsigned WPUC1 : 1;
2714 unsigned WPUC2 : 1;
2715 unsigned WPUC3 : 1;
2716 unsigned WPUC4 : 1;
2717 unsigned WPUC5 : 1;
2718 unsigned : 1;
2719 unsigned : 1;
2722 struct
2724 unsigned WPUC : 6;
2725 unsigned : 2;
2727 } __WPUCbits_t;
2729 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
2731 #define _WPUC0 0x01
2732 #define _WPUC1 0x02
2733 #define _WPUC2 0x04
2734 #define _WPUC3 0x08
2735 #define _WPUC4 0x10
2736 #define _WPUC5 0x20
2738 //==============================================================================
2741 //==============================================================================
2742 // SSP1BUF Bits
2744 extern __at(0x0211) __sfr SSP1BUF;
2746 typedef union
2748 struct
2750 unsigned SSP1BUF0 : 1;
2751 unsigned SSP1BUF1 : 1;
2752 unsigned SSP1BUF2 : 1;
2753 unsigned SSP1BUF3 : 1;
2754 unsigned SSP1BUF4 : 1;
2755 unsigned SSP1BUF5 : 1;
2756 unsigned SSP1BUF6 : 1;
2757 unsigned SSP1BUF7 : 1;
2760 struct
2762 unsigned BUF0 : 1;
2763 unsigned BUF1 : 1;
2764 unsigned BUF2 : 1;
2765 unsigned BUF3 : 1;
2766 unsigned BUF4 : 1;
2767 unsigned BUF5 : 1;
2768 unsigned BUF6 : 1;
2769 unsigned BUF7 : 1;
2771 } __SSP1BUFbits_t;
2773 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
2775 #define _SSP1BUF0 0x01
2776 #define _BUF0 0x01
2777 #define _SSP1BUF1 0x02
2778 #define _BUF1 0x02
2779 #define _SSP1BUF2 0x04
2780 #define _BUF2 0x04
2781 #define _SSP1BUF3 0x08
2782 #define _BUF3 0x08
2783 #define _SSP1BUF4 0x10
2784 #define _BUF4 0x10
2785 #define _SSP1BUF5 0x20
2786 #define _BUF5 0x20
2787 #define _SSP1BUF6 0x40
2788 #define _BUF6 0x40
2789 #define _SSP1BUF7 0x80
2790 #define _BUF7 0x80
2792 //==============================================================================
2795 //==============================================================================
2796 // SSPBUF Bits
2798 extern __at(0x0211) __sfr SSPBUF;
2800 typedef union
2802 struct
2804 unsigned SSP1BUF0 : 1;
2805 unsigned SSP1BUF1 : 1;
2806 unsigned SSP1BUF2 : 1;
2807 unsigned SSP1BUF3 : 1;
2808 unsigned SSP1BUF4 : 1;
2809 unsigned SSP1BUF5 : 1;
2810 unsigned SSP1BUF6 : 1;
2811 unsigned SSP1BUF7 : 1;
2814 struct
2816 unsigned BUF0 : 1;
2817 unsigned BUF1 : 1;
2818 unsigned BUF2 : 1;
2819 unsigned BUF3 : 1;
2820 unsigned BUF4 : 1;
2821 unsigned BUF5 : 1;
2822 unsigned BUF6 : 1;
2823 unsigned BUF7 : 1;
2825 } __SSPBUFbits_t;
2827 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
2829 #define _SSPBUF_SSP1BUF0 0x01
2830 #define _SSPBUF_BUF0 0x01
2831 #define _SSPBUF_SSP1BUF1 0x02
2832 #define _SSPBUF_BUF1 0x02
2833 #define _SSPBUF_SSP1BUF2 0x04
2834 #define _SSPBUF_BUF2 0x04
2835 #define _SSPBUF_SSP1BUF3 0x08
2836 #define _SSPBUF_BUF3 0x08
2837 #define _SSPBUF_SSP1BUF4 0x10
2838 #define _SSPBUF_BUF4 0x10
2839 #define _SSPBUF_SSP1BUF5 0x20
2840 #define _SSPBUF_BUF5 0x20
2841 #define _SSPBUF_SSP1BUF6 0x40
2842 #define _SSPBUF_BUF6 0x40
2843 #define _SSPBUF_SSP1BUF7 0x80
2844 #define _SSPBUF_BUF7 0x80
2846 //==============================================================================
2849 //==============================================================================
2850 // SSP1ADD Bits
2852 extern __at(0x0212) __sfr SSP1ADD;
2854 typedef union
2856 struct
2858 unsigned SSP1ADD0 : 1;
2859 unsigned SSP1ADD1 : 1;
2860 unsigned SSP1ADD2 : 1;
2861 unsigned SSP1ADD3 : 1;
2862 unsigned SSP1ADD4 : 1;
2863 unsigned SSP1ADD5 : 1;
2864 unsigned SSP1ADD6 : 1;
2865 unsigned SSP1ADD7 : 1;
2868 struct
2870 unsigned ADD0 : 1;
2871 unsigned ADD1 : 1;
2872 unsigned ADD2 : 1;
2873 unsigned ADD3 : 1;
2874 unsigned ADD4 : 1;
2875 unsigned ADD5 : 1;
2876 unsigned ADD6 : 1;
2877 unsigned ADD7 : 1;
2879 } __SSP1ADDbits_t;
2881 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
2883 #define _SSP1ADD0 0x01
2884 #define _ADD0 0x01
2885 #define _SSP1ADD1 0x02
2886 #define _ADD1 0x02
2887 #define _SSP1ADD2 0x04
2888 #define _ADD2 0x04
2889 #define _SSP1ADD3 0x08
2890 #define _ADD3 0x08
2891 #define _SSP1ADD4 0x10
2892 #define _ADD4 0x10
2893 #define _SSP1ADD5 0x20
2894 #define _ADD5 0x20
2895 #define _SSP1ADD6 0x40
2896 #define _ADD6 0x40
2897 #define _SSP1ADD7 0x80
2898 #define _ADD7 0x80
2900 //==============================================================================
2903 //==============================================================================
2904 // SSPADD Bits
2906 extern __at(0x0212) __sfr SSPADD;
2908 typedef union
2910 struct
2912 unsigned SSP1ADD0 : 1;
2913 unsigned SSP1ADD1 : 1;
2914 unsigned SSP1ADD2 : 1;
2915 unsigned SSP1ADD3 : 1;
2916 unsigned SSP1ADD4 : 1;
2917 unsigned SSP1ADD5 : 1;
2918 unsigned SSP1ADD6 : 1;
2919 unsigned SSP1ADD7 : 1;
2922 struct
2924 unsigned ADD0 : 1;
2925 unsigned ADD1 : 1;
2926 unsigned ADD2 : 1;
2927 unsigned ADD3 : 1;
2928 unsigned ADD4 : 1;
2929 unsigned ADD5 : 1;
2930 unsigned ADD6 : 1;
2931 unsigned ADD7 : 1;
2933 } __SSPADDbits_t;
2935 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
2937 #define _SSPADD_SSP1ADD0 0x01
2938 #define _SSPADD_ADD0 0x01
2939 #define _SSPADD_SSP1ADD1 0x02
2940 #define _SSPADD_ADD1 0x02
2941 #define _SSPADD_SSP1ADD2 0x04
2942 #define _SSPADD_ADD2 0x04
2943 #define _SSPADD_SSP1ADD3 0x08
2944 #define _SSPADD_ADD3 0x08
2945 #define _SSPADD_SSP1ADD4 0x10
2946 #define _SSPADD_ADD4 0x10
2947 #define _SSPADD_SSP1ADD5 0x20
2948 #define _SSPADD_ADD5 0x20
2949 #define _SSPADD_SSP1ADD6 0x40
2950 #define _SSPADD_ADD6 0x40
2951 #define _SSPADD_SSP1ADD7 0x80
2952 #define _SSPADD_ADD7 0x80
2954 //==============================================================================
2957 //==============================================================================
2958 // SSP1MSK Bits
2960 extern __at(0x0213) __sfr SSP1MSK;
2962 typedef union
2964 struct
2966 unsigned SSP1MSK0 : 1;
2967 unsigned SSP1MSK1 : 1;
2968 unsigned SSP1MSK2 : 1;
2969 unsigned SSP1MSK3 : 1;
2970 unsigned SSP1MSK4 : 1;
2971 unsigned SSP1MSK5 : 1;
2972 unsigned SSP1MSK6 : 1;
2973 unsigned SSP1MSK7 : 1;
2976 struct
2978 unsigned MSK0 : 1;
2979 unsigned MSK1 : 1;
2980 unsigned MSK2 : 1;
2981 unsigned MSK3 : 1;
2982 unsigned MSK4 : 1;
2983 unsigned MSK5 : 1;
2984 unsigned MSK6 : 1;
2985 unsigned MSK7 : 1;
2987 } __SSP1MSKbits_t;
2989 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
2991 #define _SSP1MSK0 0x01
2992 #define _MSK0 0x01
2993 #define _SSP1MSK1 0x02
2994 #define _MSK1 0x02
2995 #define _SSP1MSK2 0x04
2996 #define _MSK2 0x04
2997 #define _SSP1MSK3 0x08
2998 #define _MSK3 0x08
2999 #define _SSP1MSK4 0x10
3000 #define _MSK4 0x10
3001 #define _SSP1MSK5 0x20
3002 #define _MSK5 0x20
3003 #define _SSP1MSK6 0x40
3004 #define _MSK6 0x40
3005 #define _SSP1MSK7 0x80
3006 #define _MSK7 0x80
3008 //==============================================================================
3011 //==============================================================================
3012 // SSPMSK Bits
3014 extern __at(0x0213) __sfr SSPMSK;
3016 typedef union
3018 struct
3020 unsigned SSP1MSK0 : 1;
3021 unsigned SSP1MSK1 : 1;
3022 unsigned SSP1MSK2 : 1;
3023 unsigned SSP1MSK3 : 1;
3024 unsigned SSP1MSK4 : 1;
3025 unsigned SSP1MSK5 : 1;
3026 unsigned SSP1MSK6 : 1;
3027 unsigned SSP1MSK7 : 1;
3030 struct
3032 unsigned MSK0 : 1;
3033 unsigned MSK1 : 1;
3034 unsigned MSK2 : 1;
3035 unsigned MSK3 : 1;
3036 unsigned MSK4 : 1;
3037 unsigned MSK5 : 1;
3038 unsigned MSK6 : 1;
3039 unsigned MSK7 : 1;
3041 } __SSPMSKbits_t;
3043 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3045 #define _SSPMSK_SSP1MSK0 0x01
3046 #define _SSPMSK_MSK0 0x01
3047 #define _SSPMSK_SSP1MSK1 0x02
3048 #define _SSPMSK_MSK1 0x02
3049 #define _SSPMSK_SSP1MSK2 0x04
3050 #define _SSPMSK_MSK2 0x04
3051 #define _SSPMSK_SSP1MSK3 0x08
3052 #define _SSPMSK_MSK3 0x08
3053 #define _SSPMSK_SSP1MSK4 0x10
3054 #define _SSPMSK_MSK4 0x10
3055 #define _SSPMSK_SSP1MSK5 0x20
3056 #define _SSPMSK_MSK5 0x20
3057 #define _SSPMSK_SSP1MSK6 0x40
3058 #define _SSPMSK_MSK6 0x40
3059 #define _SSPMSK_SSP1MSK7 0x80
3060 #define _SSPMSK_MSK7 0x80
3062 //==============================================================================
3065 //==============================================================================
3066 // SSP1STAT Bits
3068 extern __at(0x0214) __sfr SSP1STAT;
3070 typedef struct
3072 unsigned BF : 1;
3073 unsigned UA : 1;
3074 unsigned R_NOT_W : 1;
3075 unsigned S : 1;
3076 unsigned P : 1;
3077 unsigned D_NOT_A : 1;
3078 unsigned CKE : 1;
3079 unsigned SMP : 1;
3080 } __SSP1STATbits_t;
3082 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3084 #define _BF 0x01
3085 #define _UA 0x02
3086 #define _R_NOT_W 0x04
3087 #define _S 0x08
3088 #define _P 0x10
3089 #define _D_NOT_A 0x20
3090 #define _CKE 0x40
3091 #define _SMP 0x80
3093 //==============================================================================
3096 //==============================================================================
3097 // SSPSTAT Bits
3099 extern __at(0x0214) __sfr SSPSTAT;
3101 typedef struct
3103 unsigned BF : 1;
3104 unsigned UA : 1;
3105 unsigned R_NOT_W : 1;
3106 unsigned S : 1;
3107 unsigned P : 1;
3108 unsigned D_NOT_A : 1;
3109 unsigned CKE : 1;
3110 unsigned SMP : 1;
3111 } __SSPSTATbits_t;
3113 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3115 #define _SSPSTAT_BF 0x01
3116 #define _SSPSTAT_UA 0x02
3117 #define _SSPSTAT_R_NOT_W 0x04
3118 #define _SSPSTAT_S 0x08
3119 #define _SSPSTAT_P 0x10
3120 #define _SSPSTAT_D_NOT_A 0x20
3121 #define _SSPSTAT_CKE 0x40
3122 #define _SSPSTAT_SMP 0x80
3124 //==============================================================================
3127 //==============================================================================
3128 // SSP1CON Bits
3130 extern __at(0x0215) __sfr SSP1CON;
3132 typedef union
3134 struct
3136 unsigned SSPM0 : 1;
3137 unsigned SSPM1 : 1;
3138 unsigned SSPM2 : 1;
3139 unsigned SSPM3 : 1;
3140 unsigned CKP : 1;
3141 unsigned SSPEN : 1;
3142 unsigned SSPOV : 1;
3143 unsigned WCOL : 1;
3146 struct
3148 unsigned SSPM : 4;
3149 unsigned : 4;
3151 } __SSP1CONbits_t;
3153 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3155 #define _SSPM0 0x01
3156 #define _SSPM1 0x02
3157 #define _SSPM2 0x04
3158 #define _SSPM3 0x08
3159 #define _CKP 0x10
3160 #define _SSPEN 0x20
3161 #define _SSPOV 0x40
3162 #define _WCOL 0x80
3164 //==============================================================================
3167 //==============================================================================
3168 // SSP1CON1 Bits
3170 extern __at(0x0215) __sfr SSP1CON1;
3172 typedef union
3174 struct
3176 unsigned SSPM0 : 1;
3177 unsigned SSPM1 : 1;
3178 unsigned SSPM2 : 1;
3179 unsigned SSPM3 : 1;
3180 unsigned CKP : 1;
3181 unsigned SSPEN : 1;
3182 unsigned SSPOV : 1;
3183 unsigned WCOL : 1;
3186 struct
3188 unsigned SSPM : 4;
3189 unsigned : 4;
3191 } __SSP1CON1bits_t;
3193 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3195 #define _SSP1CON1_SSPM0 0x01
3196 #define _SSP1CON1_SSPM1 0x02
3197 #define _SSP1CON1_SSPM2 0x04
3198 #define _SSP1CON1_SSPM3 0x08
3199 #define _SSP1CON1_CKP 0x10
3200 #define _SSP1CON1_SSPEN 0x20
3201 #define _SSP1CON1_SSPOV 0x40
3202 #define _SSP1CON1_WCOL 0x80
3204 //==============================================================================
3207 //==============================================================================
3208 // SSPCON Bits
3210 extern __at(0x0215) __sfr SSPCON;
3212 typedef union
3214 struct
3216 unsigned SSPM0 : 1;
3217 unsigned SSPM1 : 1;
3218 unsigned SSPM2 : 1;
3219 unsigned SSPM3 : 1;
3220 unsigned CKP : 1;
3221 unsigned SSPEN : 1;
3222 unsigned SSPOV : 1;
3223 unsigned WCOL : 1;
3226 struct
3228 unsigned SSPM : 4;
3229 unsigned : 4;
3231 } __SSPCONbits_t;
3233 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3235 #define _SSPCON_SSPM0 0x01
3236 #define _SSPCON_SSPM1 0x02
3237 #define _SSPCON_SSPM2 0x04
3238 #define _SSPCON_SSPM3 0x08
3239 #define _SSPCON_CKP 0x10
3240 #define _SSPCON_SSPEN 0x20
3241 #define _SSPCON_SSPOV 0x40
3242 #define _SSPCON_WCOL 0x80
3244 //==============================================================================
3247 //==============================================================================
3248 // SSPCON1 Bits
3250 extern __at(0x0215) __sfr SSPCON1;
3252 typedef union
3254 struct
3256 unsigned SSPM0 : 1;
3257 unsigned SSPM1 : 1;
3258 unsigned SSPM2 : 1;
3259 unsigned SSPM3 : 1;
3260 unsigned CKP : 1;
3261 unsigned SSPEN : 1;
3262 unsigned SSPOV : 1;
3263 unsigned WCOL : 1;
3266 struct
3268 unsigned SSPM : 4;
3269 unsigned : 4;
3271 } __SSPCON1bits_t;
3273 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3275 #define _SSPCON1_SSPM0 0x01
3276 #define _SSPCON1_SSPM1 0x02
3277 #define _SSPCON1_SSPM2 0x04
3278 #define _SSPCON1_SSPM3 0x08
3279 #define _SSPCON1_CKP 0x10
3280 #define _SSPCON1_SSPEN 0x20
3281 #define _SSPCON1_SSPOV 0x40
3282 #define _SSPCON1_WCOL 0x80
3284 //==============================================================================
3287 //==============================================================================
3288 // SSP1CON2 Bits
3290 extern __at(0x0216) __sfr SSP1CON2;
3292 typedef struct
3294 unsigned SEN : 1;
3295 unsigned RSEN : 1;
3296 unsigned PEN : 1;
3297 unsigned RCEN : 1;
3298 unsigned ACKEN : 1;
3299 unsigned ACKDT : 1;
3300 unsigned ACKSTAT : 1;
3301 unsigned GCEN : 1;
3302 } __SSP1CON2bits_t;
3304 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3306 #define _SEN 0x01
3307 #define _RSEN 0x02
3308 #define _PEN 0x04
3309 #define _RCEN 0x08
3310 #define _ACKEN 0x10
3311 #define _ACKDT 0x20
3312 #define _ACKSTAT 0x40
3313 #define _GCEN 0x80
3315 //==============================================================================
3318 //==============================================================================
3319 // SSPCON2 Bits
3321 extern __at(0x0216) __sfr SSPCON2;
3323 typedef struct
3325 unsigned SEN : 1;
3326 unsigned RSEN : 1;
3327 unsigned PEN : 1;
3328 unsigned RCEN : 1;
3329 unsigned ACKEN : 1;
3330 unsigned ACKDT : 1;
3331 unsigned ACKSTAT : 1;
3332 unsigned GCEN : 1;
3333 } __SSPCON2bits_t;
3335 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3337 #define _SSPCON2_SEN 0x01
3338 #define _SSPCON2_RSEN 0x02
3339 #define _SSPCON2_PEN 0x04
3340 #define _SSPCON2_RCEN 0x08
3341 #define _SSPCON2_ACKEN 0x10
3342 #define _SSPCON2_ACKDT 0x20
3343 #define _SSPCON2_ACKSTAT 0x40
3344 #define _SSPCON2_GCEN 0x80
3346 //==============================================================================
3349 //==============================================================================
3350 // SSP1CON3 Bits
3352 extern __at(0x0217) __sfr SSP1CON3;
3354 typedef struct
3356 unsigned DHEN : 1;
3357 unsigned AHEN : 1;
3358 unsigned SBCDE : 1;
3359 unsigned SDAHT : 1;
3360 unsigned BOEN : 1;
3361 unsigned SCIE : 1;
3362 unsigned PCIE : 1;
3363 unsigned ACKTIM : 1;
3364 } __SSP1CON3bits_t;
3366 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3368 #define _DHEN 0x01
3369 #define _AHEN 0x02
3370 #define _SBCDE 0x04
3371 #define _SDAHT 0x08
3372 #define _BOEN 0x10
3373 #define _SCIE 0x20
3374 #define _PCIE 0x40
3375 #define _ACKTIM 0x80
3377 //==============================================================================
3380 //==============================================================================
3381 // SSPCON3 Bits
3383 extern __at(0x0217) __sfr SSPCON3;
3385 typedef struct
3387 unsigned DHEN : 1;
3388 unsigned AHEN : 1;
3389 unsigned SBCDE : 1;
3390 unsigned SDAHT : 1;
3391 unsigned BOEN : 1;
3392 unsigned SCIE : 1;
3393 unsigned PCIE : 1;
3394 unsigned ACKTIM : 1;
3395 } __SSPCON3bits_t;
3397 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3399 #define _SSPCON3_DHEN 0x01
3400 #define _SSPCON3_AHEN 0x02
3401 #define _SSPCON3_SBCDE 0x04
3402 #define _SSPCON3_SDAHT 0x08
3403 #define _SSPCON3_BOEN 0x10
3404 #define _SSPCON3_SCIE 0x20
3405 #define _SSPCON3_PCIE 0x40
3406 #define _SSPCON3_ACKTIM 0x80
3408 //==============================================================================
3411 //==============================================================================
3412 // ODCONA Bits
3414 extern __at(0x028C) __sfr ODCONA;
3416 typedef struct
3418 unsigned ODA0 : 1;
3419 unsigned ODA1 : 1;
3420 unsigned ODA2 : 1;
3421 unsigned : 1;
3422 unsigned ODA4 : 1;
3423 unsigned ODA5 : 1;
3424 unsigned : 1;
3425 unsigned : 1;
3426 } __ODCONAbits_t;
3428 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
3430 #define _ODA0 0x01
3431 #define _ODA1 0x02
3432 #define _ODA2 0x04
3433 #define _ODA4 0x10
3434 #define _ODA5 0x20
3436 //==============================================================================
3439 //==============================================================================
3440 // ODCONC Bits
3442 extern __at(0x028E) __sfr ODCONC;
3444 typedef union
3446 struct
3448 unsigned ODC0 : 1;
3449 unsigned ODC1 : 1;
3450 unsigned ODC2 : 1;
3451 unsigned ODC3 : 1;
3452 unsigned ODC4 : 1;
3453 unsigned ODC5 : 1;
3454 unsigned : 1;
3455 unsigned : 1;
3458 struct
3460 unsigned ODC : 6;
3461 unsigned : 2;
3463 } __ODCONCbits_t;
3465 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
3467 #define _ODC0 0x01
3468 #define _ODC1 0x02
3469 #define _ODC2 0x04
3470 #define _ODC3 0x08
3471 #define _ODC4 0x10
3472 #define _ODC5 0x20
3474 //==============================================================================
3476 extern __at(0x0291) __sfr CCPR1;
3477 extern __at(0x0291) __sfr CCPR1L;
3478 extern __at(0x0292) __sfr CCPR1H;
3480 //==============================================================================
3481 // CCP1CON Bits
3483 extern __at(0x0293) __sfr CCP1CON;
3485 typedef union
3487 struct
3489 unsigned MODE0 : 1;
3490 unsigned MODE1 : 1;
3491 unsigned MODE2 : 1;
3492 unsigned MODE3 : 1;
3493 unsigned FMT : 1;
3494 unsigned OUT : 1;
3495 unsigned : 1;
3496 unsigned EN : 1;
3499 struct
3501 unsigned CCP1MODE0 : 1;
3502 unsigned CCP1MODE1 : 1;
3503 unsigned CCP1MODE2 : 1;
3504 unsigned CCP1MODE3 : 1;
3505 unsigned CCP1FMT : 1;
3506 unsigned CCP1OUT : 1;
3507 unsigned : 1;
3508 unsigned CCP1EN : 1;
3511 struct
3513 unsigned MODE : 4;
3514 unsigned : 4;
3517 struct
3519 unsigned CCP1MODE : 4;
3520 unsigned : 4;
3522 } __CCP1CONbits_t;
3524 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
3526 #define _CCP1CON_MODE0 0x01
3527 #define _CCP1CON_CCP1MODE0 0x01
3528 #define _CCP1CON_MODE1 0x02
3529 #define _CCP1CON_CCP1MODE1 0x02
3530 #define _CCP1CON_MODE2 0x04
3531 #define _CCP1CON_CCP1MODE2 0x04
3532 #define _CCP1CON_MODE3 0x08
3533 #define _CCP1CON_CCP1MODE3 0x08
3534 #define _CCP1CON_FMT 0x10
3535 #define _CCP1CON_CCP1FMT 0x10
3536 #define _CCP1CON_OUT 0x20
3537 #define _CCP1CON_CCP1OUT 0x20
3538 #define _CCP1CON_EN 0x80
3539 #define _CCP1CON_CCP1EN 0x80
3541 //==============================================================================
3544 //==============================================================================
3545 // CCP1CAP Bits
3547 extern __at(0x0294) __sfr CCP1CAP;
3549 typedef union
3551 struct
3553 unsigned CTS0 : 1;
3554 unsigned CTS1 : 1;
3555 unsigned CTS2 : 1;
3556 unsigned : 1;
3557 unsigned : 1;
3558 unsigned : 1;
3559 unsigned : 1;
3560 unsigned : 1;
3563 struct
3565 unsigned CCP1CTS0 : 1;
3566 unsigned CCP1CTS1 : 1;
3567 unsigned CCP1CTS2 : 1;
3568 unsigned : 1;
3569 unsigned : 1;
3570 unsigned : 1;
3571 unsigned : 1;
3572 unsigned : 1;
3575 struct
3577 unsigned CTS : 3;
3578 unsigned : 5;
3581 struct
3583 unsigned CCP1CTS : 3;
3584 unsigned : 5;
3586 } __CCP1CAPbits_t;
3588 extern __at(0x0294) volatile __CCP1CAPbits_t CCP1CAPbits;
3590 #define _CTS0 0x01
3591 #define _CCP1CTS0 0x01
3592 #define _CTS1 0x02
3593 #define _CCP1CTS1 0x02
3594 #define _CTS2 0x04
3595 #define _CCP1CTS2 0x04
3597 //==============================================================================
3599 extern __at(0x0298) __sfr CCPR2;
3600 extern __at(0x0298) __sfr CCPR2L;
3601 extern __at(0x0299) __sfr CCPR2H;
3603 //==============================================================================
3604 // CCP2CON Bits
3606 extern __at(0x029A) __sfr CCP2CON;
3608 typedef union
3610 struct
3612 unsigned MODE0 : 1;
3613 unsigned MODE1 : 1;
3614 unsigned MODE2 : 1;
3615 unsigned MODE3 : 1;
3616 unsigned FMT : 1;
3617 unsigned OUT : 1;
3618 unsigned : 1;
3619 unsigned EN : 1;
3622 struct
3624 unsigned CCP2MODE0 : 1;
3625 unsigned CCP2MODE1 : 1;
3626 unsigned CCP2MODE2 : 1;
3627 unsigned CCP2MODE3 : 1;
3628 unsigned CCP2FMT : 1;
3629 unsigned CCP2OUT : 1;
3630 unsigned : 1;
3631 unsigned CCP2EN : 1;
3634 struct
3636 unsigned CCP2MODE : 4;
3637 unsigned : 4;
3640 struct
3642 unsigned MODE : 4;
3643 unsigned : 4;
3645 } __CCP2CONbits_t;
3647 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
3649 #define _CCP2CON_MODE0 0x01
3650 #define _CCP2CON_CCP2MODE0 0x01
3651 #define _CCP2CON_MODE1 0x02
3652 #define _CCP2CON_CCP2MODE1 0x02
3653 #define _CCP2CON_MODE2 0x04
3654 #define _CCP2CON_CCP2MODE2 0x04
3655 #define _CCP2CON_MODE3 0x08
3656 #define _CCP2CON_CCP2MODE3 0x08
3657 #define _CCP2CON_FMT 0x10
3658 #define _CCP2CON_CCP2FMT 0x10
3659 #define _CCP2CON_OUT 0x20
3660 #define _CCP2CON_CCP2OUT 0x20
3661 #define _CCP2CON_EN 0x80
3662 #define _CCP2CON_CCP2EN 0x80
3664 //==============================================================================
3667 //==============================================================================
3668 // CCP2CAP Bits
3670 extern __at(0x029B) __sfr CCP2CAP;
3672 typedef union
3674 struct
3676 unsigned CTS0 : 1;
3677 unsigned CTS1 : 1;
3678 unsigned CTS2 : 1;
3679 unsigned : 1;
3680 unsigned : 1;
3681 unsigned : 1;
3682 unsigned : 1;
3683 unsigned : 1;
3686 struct
3688 unsigned CCP2CTS0 : 1;
3689 unsigned CCP2CTS1 : 1;
3690 unsigned CCP2CTS2 : 1;
3691 unsigned : 1;
3692 unsigned : 1;
3693 unsigned : 1;
3694 unsigned : 1;
3695 unsigned : 1;
3698 struct
3700 unsigned CTS : 3;
3701 unsigned : 5;
3704 struct
3706 unsigned CCP2CTS : 3;
3707 unsigned : 5;
3709 } __CCP2CAPbits_t;
3711 extern __at(0x029B) volatile __CCP2CAPbits_t CCP2CAPbits;
3713 #define _CCP2CAP_CTS0 0x01
3714 #define _CCP2CAP_CCP2CTS0 0x01
3715 #define _CCP2CAP_CTS1 0x02
3716 #define _CCP2CAP_CCP2CTS1 0x02
3717 #define _CCP2CAP_CTS2 0x04
3718 #define _CCP2CAP_CCP2CTS2 0x04
3720 //==============================================================================
3723 //==============================================================================
3724 // CCPTMRS Bits
3726 extern __at(0x029E) __sfr CCPTMRS;
3728 typedef union
3730 struct
3732 unsigned CCP1TSEL0 : 1;
3733 unsigned CCP1TSEL1 : 1;
3734 unsigned CCP2TSEL0 : 1;
3735 unsigned CCP2TSEL1 : 1;
3736 unsigned P3TSEL0 : 1;
3737 unsigned P3TSEL1 : 1;
3738 unsigned P4TSEL0 : 1;
3739 unsigned P4TSEL1 : 1;
3742 struct
3744 unsigned CCP1TSEL : 2;
3745 unsigned : 6;
3748 struct
3750 unsigned : 2;
3751 unsigned CCP2TSEL : 2;
3752 unsigned : 4;
3755 struct
3757 unsigned : 4;
3758 unsigned P3TSEL : 2;
3759 unsigned : 2;
3762 struct
3764 unsigned : 6;
3765 unsigned P4TSEL : 2;
3767 } __CCPTMRSbits_t;
3769 extern __at(0x029E) volatile __CCPTMRSbits_t CCPTMRSbits;
3771 #define _CCP1TSEL0 0x01
3772 #define _CCP1TSEL1 0x02
3773 #define _CCP2TSEL0 0x04
3774 #define _CCP2TSEL1 0x08
3775 #define _P3TSEL0 0x10
3776 #define _P3TSEL1 0x20
3777 #define _P4TSEL0 0x40
3778 #define _P4TSEL1 0x80
3780 //==============================================================================
3783 //==============================================================================
3784 // SLRCONA Bits
3786 extern __at(0x030C) __sfr SLRCONA;
3788 typedef struct
3790 unsigned SLRA0 : 1;
3791 unsigned SLRA1 : 1;
3792 unsigned SLRA2 : 1;
3793 unsigned : 1;
3794 unsigned SLRA4 : 1;
3795 unsigned SLRA5 : 1;
3796 unsigned : 1;
3797 unsigned : 1;
3798 } __SLRCONAbits_t;
3800 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
3802 #define _SLRA0 0x01
3803 #define _SLRA1 0x02
3804 #define _SLRA2 0x04
3805 #define _SLRA4 0x10
3806 #define _SLRA5 0x20
3808 //==============================================================================
3811 //==============================================================================
3812 // SLRCONC Bits
3814 extern __at(0x030E) __sfr SLRCONC;
3816 typedef union
3818 struct
3820 unsigned SLRC0 : 1;
3821 unsigned SLRC1 : 1;
3822 unsigned SLRC2 : 1;
3823 unsigned SLRC3 : 1;
3824 unsigned SLRC4 : 1;
3825 unsigned SLRC5 : 1;
3826 unsigned : 1;
3827 unsigned : 1;
3830 struct
3832 unsigned SLRC : 6;
3833 unsigned : 2;
3835 } __SLRCONCbits_t;
3837 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
3839 #define _SLRC0 0x01
3840 #define _SLRC1 0x02
3841 #define _SLRC2 0x04
3842 #define _SLRC3 0x08
3843 #define _SLRC4 0x10
3844 #define _SLRC5 0x20
3846 //==============================================================================
3849 //==============================================================================
3850 // INLVLA Bits
3852 extern __at(0x038C) __sfr INLVLA;
3854 typedef union
3856 struct
3858 unsigned INLVLA0 : 1;
3859 unsigned INLVLA1 : 1;
3860 unsigned INLVLA2 : 1;
3861 unsigned INLVLA3 : 1;
3862 unsigned INLVLA4 : 1;
3863 unsigned INLVLA5 : 1;
3864 unsigned : 1;
3865 unsigned : 1;
3868 struct
3870 unsigned INLVLA : 6;
3871 unsigned : 2;
3873 } __INLVLAbits_t;
3875 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
3877 #define _INLVLA0 0x01
3878 #define _INLVLA1 0x02
3879 #define _INLVLA2 0x04
3880 #define _INLVLA3 0x08
3881 #define _INLVLA4 0x10
3882 #define _INLVLA5 0x20
3884 //==============================================================================
3887 //==============================================================================
3888 // INLVLC Bits
3890 extern __at(0x038E) __sfr INLVLC;
3892 typedef union
3894 struct
3896 unsigned INLVLC0 : 1;
3897 unsigned INLVLC1 : 1;
3898 unsigned INLVLC2 : 1;
3899 unsigned INLVLC3 : 1;
3900 unsigned INLVLC4 : 1;
3901 unsigned INLVLC5 : 1;
3902 unsigned : 1;
3903 unsigned : 1;
3906 struct
3908 unsigned INLVLC : 6;
3909 unsigned : 2;
3911 } __INLVLCbits_t;
3913 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
3915 #define _INLVLC0 0x01
3916 #define _INLVLC1 0x02
3917 #define _INLVLC2 0x04
3918 #define _INLVLC3 0x08
3919 #define _INLVLC4 0x10
3920 #define _INLVLC5 0x20
3922 //==============================================================================
3925 //==============================================================================
3926 // IOCAP Bits
3928 extern __at(0x0391) __sfr IOCAP;
3930 typedef union
3932 struct
3934 unsigned IOCAP0 : 1;
3935 unsigned IOCAP1 : 1;
3936 unsigned IOCAP2 : 1;
3937 unsigned IOCAP3 : 1;
3938 unsigned IOCAP4 : 1;
3939 unsigned IOCAP5 : 1;
3940 unsigned : 1;
3941 unsigned : 1;
3944 struct
3946 unsigned IOCAP : 6;
3947 unsigned : 2;
3949 } __IOCAPbits_t;
3951 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
3953 #define _IOCAP0 0x01
3954 #define _IOCAP1 0x02
3955 #define _IOCAP2 0x04
3956 #define _IOCAP3 0x08
3957 #define _IOCAP4 0x10
3958 #define _IOCAP5 0x20
3960 //==============================================================================
3963 //==============================================================================
3964 // IOCAN Bits
3966 extern __at(0x0392) __sfr IOCAN;
3968 typedef union
3970 struct
3972 unsigned IOCAN0 : 1;
3973 unsigned IOCAN1 : 1;
3974 unsigned IOCAN2 : 1;
3975 unsigned IOCAN3 : 1;
3976 unsigned IOCAN4 : 1;
3977 unsigned IOCAN5 : 1;
3978 unsigned : 1;
3979 unsigned : 1;
3982 struct
3984 unsigned IOCAN : 6;
3985 unsigned : 2;
3987 } __IOCANbits_t;
3989 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
3991 #define _IOCAN0 0x01
3992 #define _IOCAN1 0x02
3993 #define _IOCAN2 0x04
3994 #define _IOCAN3 0x08
3995 #define _IOCAN4 0x10
3996 #define _IOCAN5 0x20
3998 //==============================================================================
4001 //==============================================================================
4002 // IOCAF Bits
4004 extern __at(0x0393) __sfr IOCAF;
4006 typedef union
4008 struct
4010 unsigned IOCAF0 : 1;
4011 unsigned IOCAF1 : 1;
4012 unsigned IOCAF2 : 1;
4013 unsigned IOCAF3 : 1;
4014 unsigned IOCAF4 : 1;
4015 unsigned IOCAF5 : 1;
4016 unsigned : 1;
4017 unsigned : 1;
4020 struct
4022 unsigned IOCAF : 6;
4023 unsigned : 2;
4025 } __IOCAFbits_t;
4027 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
4029 #define _IOCAF0 0x01
4030 #define _IOCAF1 0x02
4031 #define _IOCAF2 0x04
4032 #define _IOCAF3 0x08
4033 #define _IOCAF4 0x10
4034 #define _IOCAF5 0x20
4036 //==============================================================================
4039 //==============================================================================
4040 // IOCCP Bits
4042 extern __at(0x0397) __sfr IOCCP;
4044 typedef struct
4046 unsigned IOCCP0 : 1;
4047 unsigned IOCCP1 : 1;
4048 unsigned IOCCP2 : 1;
4049 unsigned IOCCP3 : 1;
4050 unsigned IOCCP4 : 1;
4051 unsigned IOCCP5 : 1;
4052 unsigned IOCCP6 : 1;
4053 unsigned IOCCP7 : 1;
4054 } __IOCCPbits_t;
4056 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
4058 #define _IOCCP0 0x01
4059 #define _IOCCP1 0x02
4060 #define _IOCCP2 0x04
4061 #define _IOCCP3 0x08
4062 #define _IOCCP4 0x10
4063 #define _IOCCP5 0x20
4064 #define _IOCCP6 0x40
4065 #define _IOCCP7 0x80
4067 //==============================================================================
4070 //==============================================================================
4071 // IOCCN Bits
4073 extern __at(0x0398) __sfr IOCCN;
4075 typedef struct
4077 unsigned IOCCN0 : 1;
4078 unsigned IOCCN1 : 1;
4079 unsigned IOCCN2 : 1;
4080 unsigned IOCCN3 : 1;
4081 unsigned IOCCN4 : 1;
4082 unsigned IOCCN5 : 1;
4083 unsigned IOCCN6 : 1;
4084 unsigned IOCCN7 : 1;
4085 } __IOCCNbits_t;
4087 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
4089 #define _IOCCN0 0x01
4090 #define _IOCCN1 0x02
4091 #define _IOCCN2 0x04
4092 #define _IOCCN3 0x08
4093 #define _IOCCN4 0x10
4094 #define _IOCCN5 0x20
4095 #define _IOCCN6 0x40
4096 #define _IOCCN7 0x80
4098 //==============================================================================
4101 //==============================================================================
4102 // IOCCF Bits
4104 extern __at(0x0399) __sfr IOCCF;
4106 typedef struct
4108 unsigned IOCCF0 : 1;
4109 unsigned IOCCF1 : 1;
4110 unsigned IOCCF2 : 1;
4111 unsigned IOCCF3 : 1;
4112 unsigned IOCCF4 : 1;
4113 unsigned IOCCF5 : 1;
4114 unsigned IOCCF6 : 1;
4115 unsigned IOCCF7 : 1;
4116 } __IOCCFbits_t;
4118 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
4120 #define _IOCCF0 0x01
4121 #define _IOCCF1 0x02
4122 #define _IOCCF2 0x04
4123 #define _IOCCF3 0x08
4124 #define _IOCCF4 0x10
4125 #define _IOCCF5 0x20
4126 #define _IOCCF6 0x40
4127 #define _IOCCF7 0x80
4129 //==============================================================================
4132 //==============================================================================
4133 // HIDRVC Bits
4135 extern __at(0x040E) __sfr HIDRVC;
4137 typedef struct
4139 unsigned : 1;
4140 unsigned : 1;
4141 unsigned : 1;
4142 unsigned : 1;
4143 unsigned HIDC4 : 1;
4144 unsigned HIDC5 : 1;
4145 unsigned : 1;
4146 unsigned : 1;
4147 } __HIDRVCbits_t;
4149 extern __at(0x040E) volatile __HIDRVCbits_t HIDRVCbits;
4151 #define _HIDC4 0x10
4152 #define _HIDC5 0x20
4154 //==============================================================================
4156 extern __at(0x0413) __sfr T4TMR;
4157 extern __at(0x0413) __sfr TMR4;
4158 extern __at(0x0414) __sfr PR4;
4159 extern __at(0x0414) __sfr T4PR;
4161 //==============================================================================
4162 // T4CON Bits
4164 extern __at(0x0415) __sfr T4CON;
4166 typedef union
4168 struct
4170 unsigned OUTPS0 : 1;
4171 unsigned OUTPS1 : 1;
4172 unsigned OUTPS2 : 1;
4173 unsigned OUTPS3 : 1;
4174 unsigned CKPS0 : 1;
4175 unsigned CKPS1 : 1;
4176 unsigned CKPS2 : 1;
4177 unsigned ON : 1;
4180 struct
4182 unsigned T4OUTPS0 : 1;
4183 unsigned T4OUTPS1 : 1;
4184 unsigned T4OUTPS2 : 1;
4185 unsigned T4OUTPS3 : 1;
4186 unsigned T4CKPS0 : 1;
4187 unsigned T4CKPS1 : 1;
4188 unsigned T4CKPS2 : 1;
4189 unsigned T4ON : 1;
4192 struct
4194 unsigned : 1;
4195 unsigned : 1;
4196 unsigned : 1;
4197 unsigned : 1;
4198 unsigned : 1;
4199 unsigned : 1;
4200 unsigned : 1;
4201 unsigned TMR4ON : 1;
4204 struct
4206 unsigned T4OUTPS : 4;
4207 unsigned : 4;
4210 struct
4212 unsigned OUTPS : 4;
4213 unsigned : 4;
4216 struct
4218 unsigned : 4;
4219 unsigned T4CKPS : 3;
4220 unsigned : 1;
4223 struct
4225 unsigned : 4;
4226 unsigned CKPS : 3;
4227 unsigned : 1;
4229 } __T4CONbits_t;
4231 extern __at(0x0415) volatile __T4CONbits_t T4CONbits;
4233 #define _T4CON_OUTPS0 0x01
4234 #define _T4CON_T4OUTPS0 0x01
4235 #define _T4CON_OUTPS1 0x02
4236 #define _T4CON_T4OUTPS1 0x02
4237 #define _T4CON_OUTPS2 0x04
4238 #define _T4CON_T4OUTPS2 0x04
4239 #define _T4CON_OUTPS3 0x08
4240 #define _T4CON_T4OUTPS3 0x08
4241 #define _T4CON_CKPS0 0x10
4242 #define _T4CON_T4CKPS0 0x10
4243 #define _T4CON_CKPS1 0x20
4244 #define _T4CON_T4CKPS1 0x20
4245 #define _T4CON_CKPS2 0x40
4246 #define _T4CON_T4CKPS2 0x40
4247 #define _T4CON_ON 0x80
4248 #define _T4CON_T4ON 0x80
4249 #define _T4CON_TMR4ON 0x80
4251 //==============================================================================
4254 //==============================================================================
4255 // T4HLT Bits
4257 extern __at(0x0416) __sfr T4HLT;
4259 typedef union
4261 struct
4263 unsigned MODE0 : 1;
4264 unsigned MODE1 : 1;
4265 unsigned MODE2 : 1;
4266 unsigned MODE3 : 1;
4267 unsigned MODE4 : 1;
4268 unsigned CKSYNC : 1;
4269 unsigned CKPOL : 1;
4270 unsigned PSYNC : 1;
4273 struct
4275 unsigned T4MODE0 : 1;
4276 unsigned T4MODE1 : 1;
4277 unsigned T4MODE2 : 1;
4278 unsigned T4MODE3 : 1;
4279 unsigned T4MODE4 : 1;
4280 unsigned T4CKSYNC : 1;
4281 unsigned T4CKPOL : 1;
4282 unsigned T4PSYNC : 1;
4285 struct
4287 unsigned T4MODE : 5;
4288 unsigned : 3;
4291 struct
4293 unsigned MODE : 5;
4294 unsigned : 3;
4296 } __T4HLTbits_t;
4298 extern __at(0x0416) volatile __T4HLTbits_t T4HLTbits;
4300 #define _T4HLT_MODE0 0x01
4301 #define _T4HLT_T4MODE0 0x01
4302 #define _T4HLT_MODE1 0x02
4303 #define _T4HLT_T4MODE1 0x02
4304 #define _T4HLT_MODE2 0x04
4305 #define _T4HLT_T4MODE2 0x04
4306 #define _T4HLT_MODE3 0x08
4307 #define _T4HLT_T4MODE3 0x08
4308 #define _T4HLT_MODE4 0x10
4309 #define _T4HLT_T4MODE4 0x10
4310 #define _T4HLT_CKSYNC 0x20
4311 #define _T4HLT_T4CKSYNC 0x20
4312 #define _T4HLT_CKPOL 0x40
4313 #define _T4HLT_T4CKPOL 0x40
4314 #define _T4HLT_PSYNC 0x80
4315 #define _T4HLT_T4PSYNC 0x80
4317 //==============================================================================
4320 //==============================================================================
4321 // T4CLKCON Bits
4323 extern __at(0x0417) __sfr T4CLKCON;
4325 typedef union
4327 struct
4329 unsigned CS0 : 1;
4330 unsigned CS1 : 1;
4331 unsigned CS2 : 1;
4332 unsigned CS3 : 1;
4333 unsigned : 1;
4334 unsigned : 1;
4335 unsigned : 1;
4336 unsigned : 1;
4339 struct
4341 unsigned T4CS0 : 1;
4342 unsigned T4CS1 : 1;
4343 unsigned T4CS2 : 1;
4344 unsigned T4CS3 : 1;
4345 unsigned : 1;
4346 unsigned : 1;
4347 unsigned : 1;
4348 unsigned : 1;
4351 struct
4353 unsigned CS : 4;
4354 unsigned : 4;
4357 struct
4359 unsigned T4CS : 4;
4360 unsigned : 4;
4362 } __T4CLKCONbits_t;
4364 extern __at(0x0417) volatile __T4CLKCONbits_t T4CLKCONbits;
4366 #define _T4CLKCON_CS0 0x01
4367 #define _T4CLKCON_T4CS0 0x01
4368 #define _T4CLKCON_CS1 0x02
4369 #define _T4CLKCON_T4CS1 0x02
4370 #define _T4CLKCON_CS2 0x04
4371 #define _T4CLKCON_T4CS2 0x04
4372 #define _T4CLKCON_CS3 0x08
4373 #define _T4CLKCON_T4CS3 0x08
4375 //==============================================================================
4378 //==============================================================================
4379 // T4RST Bits
4381 extern __at(0x0418) __sfr T4RST;
4383 typedef union
4385 struct
4387 unsigned RSEL0 : 1;
4388 unsigned RSEL1 : 1;
4389 unsigned RSEL2 : 1;
4390 unsigned RSEL3 : 1;
4391 unsigned : 1;
4392 unsigned : 1;
4393 unsigned : 1;
4394 unsigned : 1;
4397 struct
4399 unsigned T4RSEL0 : 1;
4400 unsigned T4RSEL1 : 1;
4401 unsigned T4RSEL2 : 1;
4402 unsigned T4RSEL3 : 1;
4403 unsigned : 1;
4404 unsigned : 1;
4405 unsigned : 1;
4406 unsigned : 1;
4409 struct
4411 unsigned RSEL : 4;
4412 unsigned : 4;
4415 struct
4417 unsigned T4RSEL : 4;
4418 unsigned : 4;
4420 } __T4RSTbits_t;
4422 extern __at(0x0418) volatile __T4RSTbits_t T4RSTbits;
4424 #define _T4RST_RSEL0 0x01
4425 #define _T4RST_T4RSEL0 0x01
4426 #define _T4RST_RSEL1 0x02
4427 #define _T4RST_T4RSEL1 0x02
4428 #define _T4RST_RSEL2 0x04
4429 #define _T4RST_T4RSEL2 0x04
4430 #define _T4RST_RSEL3 0x08
4431 #define _T4RST_T4RSEL3 0x08
4433 //==============================================================================
4435 extern __at(0x041A) __sfr T6TMR;
4436 extern __at(0x041A) __sfr TMR6;
4437 extern __at(0x041B) __sfr PR6;
4438 extern __at(0x041B) __sfr T6PR;
4440 //==============================================================================
4441 // T6CON Bits
4443 extern __at(0x041C) __sfr T6CON;
4445 typedef union
4447 struct
4449 unsigned OUTPS0 : 1;
4450 unsigned OUTPS1 : 1;
4451 unsigned OUTPS2 : 1;
4452 unsigned OUTPS3 : 1;
4453 unsigned CKPS0 : 1;
4454 unsigned CKPS1 : 1;
4455 unsigned CKPS2 : 1;
4456 unsigned ON : 1;
4459 struct
4461 unsigned T6OUTPS0 : 1;
4462 unsigned T6OUTPS1 : 1;
4463 unsigned T6OUTPS2 : 1;
4464 unsigned T6OUTPS3 : 1;
4465 unsigned T6CKPS0 : 1;
4466 unsigned T6CKPS1 : 1;
4467 unsigned T6CKPS2 : 1;
4468 unsigned T6ON : 1;
4471 struct
4473 unsigned : 1;
4474 unsigned : 1;
4475 unsigned : 1;
4476 unsigned : 1;
4477 unsigned : 1;
4478 unsigned : 1;
4479 unsigned : 1;
4480 unsigned TMR6ON : 1;
4483 struct
4485 unsigned T6OUTPS : 4;
4486 unsigned : 4;
4489 struct
4491 unsigned OUTPS : 4;
4492 unsigned : 4;
4495 struct
4497 unsigned : 4;
4498 unsigned CKPS : 3;
4499 unsigned : 1;
4502 struct
4504 unsigned : 4;
4505 unsigned T6CKPS : 3;
4506 unsigned : 1;
4508 } __T6CONbits_t;
4510 extern __at(0x041C) volatile __T6CONbits_t T6CONbits;
4512 #define _T6CON_OUTPS0 0x01
4513 #define _T6CON_T6OUTPS0 0x01
4514 #define _T6CON_OUTPS1 0x02
4515 #define _T6CON_T6OUTPS1 0x02
4516 #define _T6CON_OUTPS2 0x04
4517 #define _T6CON_T6OUTPS2 0x04
4518 #define _T6CON_OUTPS3 0x08
4519 #define _T6CON_T6OUTPS3 0x08
4520 #define _T6CON_CKPS0 0x10
4521 #define _T6CON_T6CKPS0 0x10
4522 #define _T6CON_CKPS1 0x20
4523 #define _T6CON_T6CKPS1 0x20
4524 #define _T6CON_CKPS2 0x40
4525 #define _T6CON_T6CKPS2 0x40
4526 #define _T6CON_ON 0x80
4527 #define _T6CON_T6ON 0x80
4528 #define _T6CON_TMR6ON 0x80
4530 //==============================================================================
4533 //==============================================================================
4534 // T6HLT Bits
4536 extern __at(0x041D) __sfr T6HLT;
4538 typedef union
4540 struct
4542 unsigned MODE0 : 1;
4543 unsigned MODE1 : 1;
4544 unsigned MODE2 : 1;
4545 unsigned MODE3 : 1;
4546 unsigned MODE4 : 1;
4547 unsigned CKSYNC : 1;
4548 unsigned CKPOL : 1;
4549 unsigned PSYNC : 1;
4552 struct
4554 unsigned T6MODE0 : 1;
4555 unsigned T6MODE1 : 1;
4556 unsigned T6MODE2 : 1;
4557 unsigned T6MODE3 : 1;
4558 unsigned T6MODE4 : 1;
4559 unsigned T6CKSYNC : 1;
4560 unsigned T6CKPOL : 1;
4561 unsigned T6PSYNC : 1;
4564 struct
4566 unsigned T6MODE : 5;
4567 unsigned : 3;
4570 struct
4572 unsigned MODE : 5;
4573 unsigned : 3;
4575 } __T6HLTbits_t;
4577 extern __at(0x041D) volatile __T6HLTbits_t T6HLTbits;
4579 #define _T6HLT_MODE0 0x01
4580 #define _T6HLT_T6MODE0 0x01
4581 #define _T6HLT_MODE1 0x02
4582 #define _T6HLT_T6MODE1 0x02
4583 #define _T6HLT_MODE2 0x04
4584 #define _T6HLT_T6MODE2 0x04
4585 #define _T6HLT_MODE3 0x08
4586 #define _T6HLT_T6MODE3 0x08
4587 #define _T6HLT_MODE4 0x10
4588 #define _T6HLT_T6MODE4 0x10
4589 #define _T6HLT_CKSYNC 0x20
4590 #define _T6HLT_T6CKSYNC 0x20
4591 #define _T6HLT_CKPOL 0x40
4592 #define _T6HLT_T6CKPOL 0x40
4593 #define _T6HLT_PSYNC 0x80
4594 #define _T6HLT_T6PSYNC 0x80
4596 //==============================================================================
4599 //==============================================================================
4600 // T6CLKCON Bits
4602 extern __at(0x041E) __sfr T6CLKCON;
4604 typedef union
4606 struct
4608 unsigned CS0 : 1;
4609 unsigned CS1 : 1;
4610 unsigned CS2 : 1;
4611 unsigned CS3 : 1;
4612 unsigned : 1;
4613 unsigned : 1;
4614 unsigned : 1;
4615 unsigned : 1;
4618 struct
4620 unsigned T6CS0 : 1;
4621 unsigned T6CS1 : 1;
4622 unsigned T6CS2 : 1;
4623 unsigned T6CS3 : 1;
4624 unsigned : 1;
4625 unsigned : 1;
4626 unsigned : 1;
4627 unsigned : 1;
4630 struct
4632 unsigned CS : 4;
4633 unsigned : 4;
4636 struct
4638 unsigned T6CS : 4;
4639 unsigned : 4;
4641 } __T6CLKCONbits_t;
4643 extern __at(0x041E) volatile __T6CLKCONbits_t T6CLKCONbits;
4645 #define _T6CLKCON_CS0 0x01
4646 #define _T6CLKCON_T6CS0 0x01
4647 #define _T6CLKCON_CS1 0x02
4648 #define _T6CLKCON_T6CS1 0x02
4649 #define _T6CLKCON_CS2 0x04
4650 #define _T6CLKCON_T6CS2 0x04
4651 #define _T6CLKCON_CS3 0x08
4652 #define _T6CLKCON_T6CS3 0x08
4654 //==============================================================================
4657 //==============================================================================
4658 // T6RST Bits
4660 extern __at(0x041F) __sfr T6RST;
4662 typedef union
4664 struct
4666 unsigned RSEL0 : 1;
4667 unsigned RSEL1 : 1;
4668 unsigned RSEL2 : 1;
4669 unsigned RSEL3 : 1;
4670 unsigned : 1;
4671 unsigned : 1;
4672 unsigned : 1;
4673 unsigned : 1;
4676 struct
4678 unsigned T6RSEL0 : 1;
4679 unsigned T6RSEL1 : 1;
4680 unsigned T6RSEL2 : 1;
4681 unsigned T6RSEL3 : 1;
4682 unsigned : 1;
4683 unsigned : 1;
4684 unsigned : 1;
4685 unsigned : 1;
4688 struct
4690 unsigned RSEL : 4;
4691 unsigned : 4;
4694 struct
4696 unsigned T6RSEL : 4;
4697 unsigned : 4;
4699 } __T6RSTbits_t;
4701 extern __at(0x041F) volatile __T6RSTbits_t T6RSTbits;
4703 #define _T6RST_RSEL0 0x01
4704 #define _T6RST_T6RSEL0 0x01
4705 #define _T6RST_RSEL1 0x02
4706 #define _T6RST_T6RSEL1 0x02
4707 #define _T6RST_RSEL2 0x04
4708 #define _T6RST_T6RSEL2 0x04
4709 #define _T6RST_RSEL3 0x08
4710 #define _T6RST_T6RSEL3 0x08
4712 //==============================================================================
4714 extern __at(0x0493) __sfr TMR3L;
4715 extern __at(0x0494) __sfr TMR3H;
4717 //==============================================================================
4718 // T3CON Bits
4720 extern __at(0x0495) __sfr T3CON;
4722 typedef union
4724 struct
4726 unsigned TMR3ON : 1;
4727 unsigned : 1;
4728 unsigned T3SYNC : 1;
4729 unsigned : 1;
4730 unsigned T3CKPS0 : 1;
4731 unsigned T3CKPS1 : 1;
4732 unsigned TMR3CS0 : 1;
4733 unsigned TMR3CS1 : 1;
4736 struct
4738 unsigned : 4;
4739 unsigned T3CKPS : 2;
4740 unsigned : 2;
4743 struct
4745 unsigned : 6;
4746 unsigned TMR3CS : 2;
4748 } __T3CONbits_t;
4750 extern __at(0x0495) volatile __T3CONbits_t T3CONbits;
4752 #define _TMR3ON 0x01
4753 #define _T3SYNC 0x04
4754 #define _T3CKPS0 0x10
4755 #define _T3CKPS1 0x20
4756 #define _TMR3CS0 0x40
4757 #define _TMR3CS1 0x80
4759 //==============================================================================
4762 //==============================================================================
4763 // T3GCON Bits
4765 extern __at(0x0496) __sfr T3GCON;
4767 typedef union
4769 struct
4771 unsigned T3GSS0 : 1;
4772 unsigned T3GSS1 : 1;
4773 unsigned T3GVAL : 1;
4774 unsigned T3GGO_NOT_DONE : 1;
4775 unsigned T3GSPM : 1;
4776 unsigned T3GTM : 1;
4777 unsigned T3GPOL : 1;
4778 unsigned TMR3GE : 1;
4781 struct
4783 unsigned T3GSS : 2;
4784 unsigned : 6;
4786 } __T3GCONbits_t;
4788 extern __at(0x0496) volatile __T3GCONbits_t T3GCONbits;
4790 #define _T3GSS0 0x01
4791 #define _T3GSS1 0x02
4792 #define _T3GVAL 0x04
4793 #define _T3GGO_NOT_DONE 0x08
4794 #define _T3GSPM 0x10
4795 #define _T3GTM 0x20
4796 #define _T3GPOL 0x40
4797 #define _TMR3GE 0x80
4799 //==============================================================================
4801 extern __at(0x049A) __sfr TMR5L;
4802 extern __at(0x049B) __sfr TMR5H;
4804 //==============================================================================
4805 // T5CON Bits
4807 extern __at(0x049C) __sfr T5CON;
4809 typedef union
4811 struct
4813 unsigned TMR5ON : 1;
4814 unsigned : 1;
4815 unsigned T5SYNC : 1;
4816 unsigned : 1;
4817 unsigned T5CKPS0 : 1;
4818 unsigned T5CKPS1 : 1;
4819 unsigned TMR5CS0 : 1;
4820 unsigned TMR5CS1 : 1;
4823 struct
4825 unsigned : 4;
4826 unsigned T5CKPS : 2;
4827 unsigned : 2;
4830 struct
4832 unsigned : 6;
4833 unsigned TMR5CS : 2;
4835 } __T5CONbits_t;
4837 extern __at(0x049C) volatile __T5CONbits_t T5CONbits;
4839 #define _TMR5ON 0x01
4840 #define _T5SYNC 0x04
4841 #define _T5CKPS0 0x10
4842 #define _T5CKPS1 0x20
4843 #define _TMR5CS0 0x40
4844 #define _TMR5CS1 0x80
4846 //==============================================================================
4849 //==============================================================================
4850 // T5GCON Bits
4852 extern __at(0x049D) __sfr T5GCON;
4854 typedef union
4856 struct
4858 unsigned T5GSS0 : 1;
4859 unsigned T5GSS1 : 1;
4860 unsigned T5GVAL : 1;
4861 unsigned T5GGO_NOT_DONE : 1;
4862 unsigned T5GSPM : 1;
4863 unsigned T5GTM : 1;
4864 unsigned T5GPOL : 1;
4865 unsigned TMR5GE : 1;
4868 struct
4870 unsigned T5GSS : 2;
4871 unsigned : 6;
4873 } __T5GCONbits_t;
4875 extern __at(0x049D) volatile __T5GCONbits_t T5GCONbits;
4877 #define _T5GSS0 0x01
4878 #define _T5GSS1 0x02
4879 #define _T5GVAL 0x04
4880 #define _T5GGO_NOT_DONE 0x08
4881 #define _T5GSPM 0x10
4882 #define _T5GTM 0x20
4883 #define _T5GPOL 0x40
4884 #define _TMR5GE 0x80
4886 //==============================================================================
4888 extern __at(0x058C) __sfr PID1SET;
4890 //==============================================================================
4891 // PID1SETL Bits
4893 extern __at(0x058C) __sfr PID1SETL;
4895 typedef union
4897 struct
4899 unsigned PID1SET0 : 1;
4900 unsigned PID1SET1 : 1;
4901 unsigned PID1SET2 : 1;
4902 unsigned PID1SET3 : 1;
4903 unsigned PID1SET4 : 1;
4904 unsigned PID1SET5 : 1;
4905 unsigned PID1SET6 : 1;
4906 unsigned PID1SET7 : 1;
4909 struct
4911 unsigned SET0 : 1;
4912 unsigned SET1 : 1;
4913 unsigned SET2 : 1;
4914 unsigned SET3 : 1;
4915 unsigned SET4 : 1;
4916 unsigned SET5 : 1;
4917 unsigned SET6 : 1;
4918 unsigned SET7 : 1;
4920 } __PID1SETLbits_t;
4922 extern __at(0x058C) volatile __PID1SETLbits_t PID1SETLbits;
4924 #define _PID1SET0 0x01
4925 #define _SET0 0x01
4926 #define _PID1SET1 0x02
4927 #define _SET1 0x02
4928 #define _PID1SET2 0x04
4929 #define _SET2 0x04
4930 #define _PID1SET3 0x08
4931 #define _SET3 0x08
4932 #define _PID1SET4 0x10
4933 #define _SET4 0x10
4934 #define _PID1SET5 0x20
4935 #define _SET5 0x20
4936 #define _PID1SET6 0x40
4937 #define _SET6 0x40
4938 #define _PID1SET7 0x80
4939 #define _SET7 0x80
4941 //==============================================================================
4944 //==============================================================================
4945 // PID1SETH Bits
4947 extern __at(0x058D) __sfr PID1SETH;
4949 typedef union
4951 struct
4953 unsigned PID1SET8 : 1;
4954 unsigned PID1SET9 : 1;
4955 unsigned PID1SET10 : 1;
4956 unsigned PID1SET11 : 1;
4957 unsigned PID1SET12 : 1;
4958 unsigned PID1SET13 : 1;
4959 unsigned PID1SET14 : 1;
4960 unsigned PID1SET15 : 1;
4963 struct
4965 unsigned SET8 : 1;
4966 unsigned SET9 : 1;
4967 unsigned SET10 : 1;
4968 unsigned SET11 : 1;
4969 unsigned SET12 : 1;
4970 unsigned SET13 : 1;
4971 unsigned SET14 : 1;
4972 unsigned SET15 : 1;
4974 } __PID1SETHbits_t;
4976 extern __at(0x058D) volatile __PID1SETHbits_t PID1SETHbits;
4978 #define _PID1SET8 0x01
4979 #define _SET8 0x01
4980 #define _PID1SET9 0x02
4981 #define _SET9 0x02
4982 #define _PID1SET10 0x04
4983 #define _SET10 0x04
4984 #define _PID1SET11 0x08
4985 #define _SET11 0x08
4986 #define _PID1SET12 0x10
4987 #define _SET12 0x10
4988 #define _PID1SET13 0x20
4989 #define _SET13 0x20
4990 #define _PID1SET14 0x40
4991 #define _SET14 0x40
4992 #define _PID1SET15 0x80
4993 #define _SET15 0x80
4995 //==============================================================================
4997 extern __at(0x058E) __sfr PID1IN;
4999 //==============================================================================
5000 // PID1INL Bits
5002 extern __at(0x058E) __sfr PID1INL;
5004 typedef union
5006 struct
5008 unsigned PID1IN0 : 1;
5009 unsigned PID1IN1 : 1;
5010 unsigned PID1IN2 : 1;
5011 unsigned PID1IN3 : 1;
5012 unsigned PID1IN4 : 1;
5013 unsigned PID1IN5 : 1;
5014 unsigned PID1IN6 : 1;
5015 unsigned PID1IN7 : 1;
5018 struct
5020 unsigned IN0 : 1;
5021 unsigned IN1 : 1;
5022 unsigned IN2 : 1;
5023 unsigned IN3 : 1;
5024 unsigned IN4 : 1;
5025 unsigned IN5 : 1;
5026 unsigned IN6 : 1;
5027 unsigned IN7 : 1;
5029 } __PID1INLbits_t;
5031 extern __at(0x058E) volatile __PID1INLbits_t PID1INLbits;
5033 #define _PID1IN0 0x01
5034 #define _IN0 0x01
5035 #define _PID1IN1 0x02
5036 #define _IN1 0x02
5037 #define _PID1IN2 0x04
5038 #define _IN2 0x04
5039 #define _PID1IN3 0x08
5040 #define _IN3 0x08
5041 #define _PID1IN4 0x10
5042 #define _IN4 0x10
5043 #define _PID1IN5 0x20
5044 #define _IN5 0x20
5045 #define _PID1IN6 0x40
5046 #define _IN6 0x40
5047 #define _PID1IN7 0x80
5048 #define _IN7 0x80
5050 //==============================================================================
5053 //==============================================================================
5054 // PID1INH Bits
5056 extern __at(0x058F) __sfr PID1INH;
5058 typedef union
5060 struct
5062 unsigned PID1IN8 : 1;
5063 unsigned PID1IN9 : 1;
5064 unsigned PID1IN10 : 1;
5065 unsigned PID1IN11 : 1;
5066 unsigned PID1IN12 : 1;
5067 unsigned PID1IN13 : 1;
5068 unsigned PID1IN14 : 1;
5069 unsigned PID1IN15 : 1;
5072 struct
5074 unsigned IN8 : 1;
5075 unsigned IN9 : 1;
5076 unsigned IN10 : 1;
5077 unsigned IN11 : 1;
5078 unsigned IN12 : 1;
5079 unsigned IN13 : 1;
5080 unsigned IN14 : 1;
5081 unsigned IN15 : 1;
5083 } __PID1INHbits_t;
5085 extern __at(0x058F) volatile __PID1INHbits_t PID1INHbits;
5087 #define _PID1IN8 0x01
5088 #define _IN8 0x01
5089 #define _PID1IN9 0x02
5090 #define _IN9 0x02
5091 #define _PID1IN10 0x04
5092 #define _IN10 0x04
5093 #define _PID1IN11 0x08
5094 #define _IN11 0x08
5095 #define _PID1IN12 0x10
5096 #define _IN12 0x10
5097 #define _PID1IN13 0x20
5098 #define _IN13 0x20
5099 #define _PID1IN14 0x40
5100 #define _IN14 0x40
5101 #define _PID1IN15 0x80
5102 #define _IN15 0x80
5104 //==============================================================================
5106 extern __at(0x0590) __sfr PID1K1;
5108 //==============================================================================
5109 // PID1K1L Bits
5111 extern __at(0x0590) __sfr PID1K1L;
5113 typedef union
5115 struct
5117 unsigned PID1K10 : 1;
5118 unsigned PID1K11 : 1;
5119 unsigned PID1K12 : 1;
5120 unsigned PID1K13 : 1;
5121 unsigned PID1K14 : 1;
5122 unsigned PID1K15 : 1;
5123 unsigned PID1K16 : 1;
5124 unsigned PID1K17 : 1;
5127 struct
5129 unsigned K10 : 1;
5130 unsigned K11 : 1;
5131 unsigned K12 : 1;
5132 unsigned K13 : 1;
5133 unsigned K14 : 1;
5134 unsigned K15 : 1;
5135 unsigned K16 : 1;
5136 unsigned K17 : 1;
5138 } __PID1K1Lbits_t;
5140 extern __at(0x0590) volatile __PID1K1Lbits_t PID1K1Lbits;
5142 #define _PID1K10 0x01
5143 #define _K10 0x01
5144 #define _PID1K11 0x02
5145 #define _K11 0x02
5146 #define _PID1K12 0x04
5147 #define _K12 0x04
5148 #define _PID1K13 0x08
5149 #define _K13 0x08
5150 #define _PID1K14 0x10
5151 #define _K14 0x10
5152 #define _PID1K15 0x20
5153 #define _K15 0x20
5154 #define _PID1K16 0x40
5155 #define _K16 0x40
5156 #define _PID1K17 0x80
5157 #define _K17 0x80
5159 //==============================================================================
5162 //==============================================================================
5163 // PID1K1H Bits
5165 extern __at(0x0591) __sfr PID1K1H;
5167 typedef union
5169 struct
5171 unsigned PID1K18 : 1;
5172 unsigned PID1K19 : 1;
5173 unsigned PID1K110 : 1;
5174 unsigned PID1K111 : 1;
5175 unsigned PID1K112 : 1;
5176 unsigned PID1K113 : 1;
5177 unsigned PID1K114 : 1;
5178 unsigned PID1K115 : 1;
5181 struct
5183 unsigned K18 : 1;
5184 unsigned K19 : 1;
5185 unsigned K110 : 1;
5186 unsigned K111 : 1;
5187 unsigned K112 : 1;
5188 unsigned K113 : 1;
5189 unsigned K114 : 1;
5190 unsigned K115 : 1;
5192 } __PID1K1Hbits_t;
5194 extern __at(0x0591) volatile __PID1K1Hbits_t PID1K1Hbits;
5196 #define _PID1K18 0x01
5197 #define _K18 0x01
5198 #define _PID1K19 0x02
5199 #define _K19 0x02
5200 #define _PID1K110 0x04
5201 #define _K110 0x04
5202 #define _PID1K111 0x08
5203 #define _K111 0x08
5204 #define _PID1K112 0x10
5205 #define _K112 0x10
5206 #define _PID1K113 0x20
5207 #define _K113 0x20
5208 #define _PID1K114 0x40
5209 #define _K114 0x40
5210 #define _PID1K115 0x80
5211 #define _K115 0x80
5213 //==============================================================================
5215 extern __at(0x0592) __sfr PID1K2;
5217 //==============================================================================
5218 // PID1K2L Bits
5220 extern __at(0x0592) __sfr PID1K2L;
5222 typedef union
5224 struct
5226 unsigned PID1K20 : 1;
5227 unsigned PID1K21 : 1;
5228 unsigned PID1K22 : 1;
5229 unsigned PID1K23 : 1;
5230 unsigned PID1K24 : 1;
5231 unsigned PID1K25 : 1;
5232 unsigned PID1K26 : 1;
5233 unsigned PID1K27 : 1;
5236 struct
5238 unsigned K20 : 1;
5239 unsigned K21 : 1;
5240 unsigned K22 : 1;
5241 unsigned K23 : 1;
5242 unsigned K24 : 1;
5243 unsigned K25 : 1;
5244 unsigned K26 : 1;
5245 unsigned K27 : 1;
5247 } __PID1K2Lbits_t;
5249 extern __at(0x0592) volatile __PID1K2Lbits_t PID1K2Lbits;
5251 #define _PID1K20 0x01
5252 #define _K20 0x01
5253 #define _PID1K21 0x02
5254 #define _K21 0x02
5255 #define _PID1K22 0x04
5256 #define _K22 0x04
5257 #define _PID1K23 0x08
5258 #define _K23 0x08
5259 #define _PID1K24 0x10
5260 #define _K24 0x10
5261 #define _PID1K25 0x20
5262 #define _K25 0x20
5263 #define _PID1K26 0x40
5264 #define _K26 0x40
5265 #define _PID1K27 0x80
5266 #define _K27 0x80
5268 //==============================================================================
5271 //==============================================================================
5272 // PID1K2H Bits
5274 extern __at(0x0593) __sfr PID1K2H;
5276 typedef union
5278 struct
5280 unsigned PID1K28 : 1;
5281 unsigned PID1K29 : 1;
5282 unsigned PID1K210 : 1;
5283 unsigned PID1K211 : 1;
5284 unsigned PID1K212 : 1;
5285 unsigned PID1K213 : 1;
5286 unsigned PID1K214 : 1;
5287 unsigned PID1K215 : 1;
5290 struct
5292 unsigned K28 : 1;
5293 unsigned K29 : 1;
5294 unsigned K210 : 1;
5295 unsigned K211 : 1;
5296 unsigned K212 : 1;
5297 unsigned K213 : 1;
5298 unsigned K214 : 1;
5299 unsigned K215 : 1;
5301 } __PID1K2Hbits_t;
5303 extern __at(0x0593) volatile __PID1K2Hbits_t PID1K2Hbits;
5305 #define _PID1K28 0x01
5306 #define _K28 0x01
5307 #define _PID1K29 0x02
5308 #define _K29 0x02
5309 #define _PID1K210 0x04
5310 #define _K210 0x04
5311 #define _PID1K211 0x08
5312 #define _K211 0x08
5313 #define _PID1K212 0x10
5314 #define _K212 0x10
5315 #define _PID1K213 0x20
5316 #define _K213 0x20
5317 #define _PID1K214 0x40
5318 #define _K214 0x40
5319 #define _PID1K215 0x80
5320 #define _K215 0x80
5322 //==============================================================================
5324 extern __at(0x0594) __sfr PID1K3;
5326 //==============================================================================
5327 // PID1K3L Bits
5329 extern __at(0x0594) __sfr PID1K3L;
5331 typedef union
5333 struct
5335 unsigned PID1K30 : 1;
5336 unsigned PID1K31 : 1;
5337 unsigned PID1K32 : 1;
5338 unsigned PID1K33 : 1;
5339 unsigned PID1K34 : 1;
5340 unsigned PID1K35 : 1;
5341 unsigned PID1K36 : 1;
5342 unsigned PID1K37 : 1;
5345 struct
5347 unsigned K30 : 1;
5348 unsigned K31 : 1;
5349 unsigned K32 : 1;
5350 unsigned K33 : 1;
5351 unsigned K34 : 1;
5352 unsigned K35 : 1;
5353 unsigned K36 : 1;
5354 unsigned K37 : 1;
5356 } __PID1K3Lbits_t;
5358 extern __at(0x0594) volatile __PID1K3Lbits_t PID1K3Lbits;
5360 #define _PID1K30 0x01
5361 #define _K30 0x01
5362 #define _PID1K31 0x02
5363 #define _K31 0x02
5364 #define _PID1K32 0x04
5365 #define _K32 0x04
5366 #define _PID1K33 0x08
5367 #define _K33 0x08
5368 #define _PID1K34 0x10
5369 #define _K34 0x10
5370 #define _PID1K35 0x20
5371 #define _K35 0x20
5372 #define _PID1K36 0x40
5373 #define _K36 0x40
5374 #define _PID1K37 0x80
5375 #define _K37 0x80
5377 //==============================================================================
5380 //==============================================================================
5381 // PID1K3H Bits
5383 extern __at(0x0595) __sfr PID1K3H;
5385 typedef union
5387 struct
5389 unsigned PID1K38 : 1;
5390 unsigned PID1K39 : 1;
5391 unsigned PID1K310 : 1;
5392 unsigned PID1K311 : 1;
5393 unsigned PID1K312 : 1;
5394 unsigned PID1K313 : 1;
5395 unsigned PID1K314 : 1;
5396 unsigned PID1K315 : 1;
5399 struct
5401 unsigned K38 : 1;
5402 unsigned K39 : 1;
5403 unsigned K310 : 1;
5404 unsigned K311 : 1;
5405 unsigned K312 : 1;
5406 unsigned K313 : 1;
5407 unsigned K314 : 1;
5408 unsigned K315 : 1;
5410 } __PID1K3Hbits_t;
5412 extern __at(0x0595) volatile __PID1K3Hbits_t PID1K3Hbits;
5414 #define _PID1K38 0x01
5415 #define _K38 0x01
5416 #define _PID1K39 0x02
5417 #define _K39 0x02
5418 #define _PID1K310 0x04
5419 #define _K310 0x04
5420 #define _PID1K311 0x08
5421 #define _K311 0x08
5422 #define _PID1K312 0x10
5423 #define _K312 0x10
5424 #define _PID1K313 0x20
5425 #define _K313 0x20
5426 #define _PID1K314 0x40
5427 #define _K314 0x40
5428 #define _PID1K315 0x80
5429 #define _K315 0x80
5431 //==============================================================================
5433 extern __at(0x0596) __sfr PID1OUT;
5435 //==============================================================================
5436 // PID1OUTLL Bits
5438 extern __at(0x0596) __sfr PID1OUTLL;
5440 typedef union
5442 struct
5444 unsigned PID1OUT0 : 1;
5445 unsigned PID1OUT1 : 1;
5446 unsigned PID1OUT2 : 1;
5447 unsigned PID1OUT3 : 1;
5448 unsigned PID1OUT4 : 1;
5449 unsigned PID1OUT5 : 1;
5450 unsigned PID1OUT6 : 1;
5451 unsigned PID1OUT7 : 1;
5454 struct
5456 unsigned OUT0 : 1;
5457 unsigned OUT1 : 1;
5458 unsigned OUT2 : 1;
5459 unsigned OUT3 : 1;
5460 unsigned OUT4 : 1;
5461 unsigned OUT5 : 1;
5462 unsigned OUT6 : 1;
5463 unsigned OUT7 : 1;
5465 } __PID1OUTLLbits_t;
5467 extern __at(0x0596) volatile __PID1OUTLLbits_t PID1OUTLLbits;
5469 #define _PID1OUT0 0x01
5470 #define _OUT0 0x01
5471 #define _PID1OUT1 0x02
5472 #define _OUT1 0x02
5473 #define _PID1OUT2 0x04
5474 #define _OUT2 0x04
5475 #define _PID1OUT3 0x08
5476 #define _OUT3 0x08
5477 #define _PID1OUT4 0x10
5478 #define _OUT4 0x10
5479 #define _PID1OUT5 0x20
5480 #define _OUT5 0x20
5481 #define _PID1OUT6 0x40
5482 #define _OUT6 0x40
5483 #define _PID1OUT7 0x80
5484 #define _OUT7 0x80
5486 //==============================================================================
5489 //==============================================================================
5490 // PID1OUTLH Bits
5492 extern __at(0x0597) __sfr PID1OUTLH;
5494 typedef union
5496 struct
5498 unsigned PID1OUT8 : 1;
5499 unsigned PID1OUT9 : 1;
5500 unsigned PID1OUT10 : 1;
5501 unsigned PID1OUT11 : 1;
5502 unsigned PID1OUT12 : 1;
5503 unsigned PID1OUT13 : 1;
5504 unsigned PID1OUT14 : 1;
5505 unsigned PID1OUT15 : 1;
5508 struct
5510 unsigned OUT8 : 1;
5511 unsigned OUT9 : 1;
5512 unsigned OUT10 : 1;
5513 unsigned OUT11 : 1;
5514 unsigned OUT12 : 1;
5515 unsigned OUT13 : 1;
5516 unsigned OUT14 : 1;
5517 unsigned OUT15 : 1;
5519 } __PID1OUTLHbits_t;
5521 extern __at(0x0597) volatile __PID1OUTLHbits_t PID1OUTLHbits;
5523 #define _PID1OUT8 0x01
5524 #define _OUT8 0x01
5525 #define _PID1OUT9 0x02
5526 #define _OUT9 0x02
5527 #define _PID1OUT10 0x04
5528 #define _OUT10 0x04
5529 #define _PID1OUT11 0x08
5530 #define _OUT11 0x08
5531 #define _PID1OUT12 0x10
5532 #define _OUT12 0x10
5533 #define _PID1OUT13 0x20
5534 #define _OUT13 0x20
5535 #define _PID1OUT14 0x40
5536 #define _OUT14 0x40
5537 #define _PID1OUT15 0x80
5538 #define _OUT15 0x80
5540 //==============================================================================
5543 //==============================================================================
5544 // PID1OUTHL Bits
5546 extern __at(0x0598) __sfr PID1OUTHL;
5548 typedef union
5550 struct
5552 unsigned PID1OUT16 : 1;
5553 unsigned PID1OUT17 : 1;
5554 unsigned PID1OUT18 : 1;
5555 unsigned PID1OUT19 : 1;
5556 unsigned PID1OUT20 : 1;
5557 unsigned PID1OUT21 : 1;
5558 unsigned PID1OUT22 : 1;
5559 unsigned PID1OUT23 : 1;
5562 struct
5564 unsigned OUT16 : 1;
5565 unsigned OUT17 : 1;
5566 unsigned OUT18 : 1;
5567 unsigned OUT19 : 1;
5568 unsigned OUT20 : 1;
5569 unsigned OUT21 : 1;
5570 unsigned OUT22 : 1;
5571 unsigned OUT23 : 1;
5573 } __PID1OUTHLbits_t;
5575 extern __at(0x0598) volatile __PID1OUTHLbits_t PID1OUTHLbits;
5577 #define _PID1OUT16 0x01
5578 #define _OUT16 0x01
5579 #define _PID1OUT17 0x02
5580 #define _OUT17 0x02
5581 #define _PID1OUT18 0x04
5582 #define _OUT18 0x04
5583 #define _PID1OUT19 0x08
5584 #define _OUT19 0x08
5585 #define _PID1OUT20 0x10
5586 #define _OUT20 0x10
5587 #define _PID1OUT21 0x20
5588 #define _OUT21 0x20
5589 #define _PID1OUT22 0x40
5590 #define _OUT22 0x40
5591 #define _PID1OUT23 0x80
5592 #define _OUT23 0x80
5594 //==============================================================================
5597 //==============================================================================
5598 // PID1OUTHH Bits
5600 extern __at(0x0599) __sfr PID1OUTHH;
5602 typedef union
5604 struct
5606 unsigned PID1OUT24 : 1;
5607 unsigned PID1OUT25 : 1;
5608 unsigned PID1OUT26 : 1;
5609 unsigned PID1OUT27 : 1;
5610 unsigned PID1OUT28 : 1;
5611 unsigned PID1OUT29 : 1;
5612 unsigned PID1OUT30 : 1;
5613 unsigned PID1OUT31 : 1;
5616 struct
5618 unsigned OUT24 : 1;
5619 unsigned OUT25 : 1;
5620 unsigned OUT26 : 1;
5621 unsigned OUT27 : 1;
5622 unsigned OUT28 : 1;
5623 unsigned OUT29 : 1;
5624 unsigned OUT30 : 1;
5625 unsigned OUT31 : 1;
5627 } __PID1OUTHHbits_t;
5629 extern __at(0x0599) volatile __PID1OUTHHbits_t PID1OUTHHbits;
5631 #define _PID1OUT24 0x01
5632 #define _OUT24 0x01
5633 #define _PID1OUT25 0x02
5634 #define _OUT25 0x02
5635 #define _PID1OUT26 0x04
5636 #define _OUT26 0x04
5637 #define _PID1OUT27 0x08
5638 #define _OUT27 0x08
5639 #define _PID1OUT28 0x10
5640 #define _OUT28 0x10
5641 #define _PID1OUT29 0x20
5642 #define _OUT29 0x20
5643 #define _PID1OUT30 0x40
5644 #define _OUT30 0x40
5645 #define _PID1OUT31 0x80
5646 #define _OUT31 0x80
5648 //==============================================================================
5651 //==============================================================================
5652 // PID1OUTU Bits
5654 extern __at(0x059A) __sfr PID1OUTU;
5656 typedef union
5658 struct
5660 unsigned PID1OUT32 : 1;
5661 unsigned PID1OUT33 : 1;
5662 unsigned PID1OUT34 : 1;
5663 unsigned PID1OUT35 : 1;
5664 unsigned : 1;
5665 unsigned : 1;
5666 unsigned : 1;
5667 unsigned : 1;
5670 struct
5672 unsigned OUT32 : 1;
5673 unsigned OUT33 : 1;
5674 unsigned OUT34 : 1;
5675 unsigned OUT35 : 1;
5676 unsigned : 1;
5677 unsigned : 1;
5678 unsigned : 1;
5679 unsigned : 1;
5681 } __PID1OUTUbits_t;
5683 extern __at(0x059A) volatile __PID1OUTUbits_t PID1OUTUbits;
5685 #define _PID1OUT32 0x01
5686 #define _OUT32 0x01
5687 #define _PID1OUT33 0x02
5688 #define _OUT33 0x02
5689 #define _PID1OUT34 0x04
5690 #define _OUT34 0x04
5691 #define _PID1OUT35 0x08
5692 #define _OUT35 0x08
5694 //==============================================================================
5696 extern __at(0x059B) __sfr PID1Z1;
5698 //==============================================================================
5699 // PID1Z1L Bits
5701 extern __at(0x059B) __sfr PID1Z1L;
5703 typedef union
5705 struct
5707 unsigned PID1Z10 : 1;
5708 unsigned PID1Z11 : 1;
5709 unsigned PID1Z12 : 1;
5710 unsigned PID1Z13 : 1;
5711 unsigned PID1Z14 : 1;
5712 unsigned PID1Z15 : 1;
5713 unsigned PID1Z16 : 1;
5714 unsigned PID1Z17 : 1;
5717 struct
5719 unsigned Z10 : 1;
5720 unsigned Z11 : 1;
5721 unsigned Z12 : 1;
5722 unsigned Z13 : 1;
5723 unsigned Z14 : 1;
5724 unsigned Z15 : 1;
5725 unsigned Z16 : 1;
5726 unsigned Z17 : 1;
5728 } __PID1Z1Lbits_t;
5730 extern __at(0x059B) volatile __PID1Z1Lbits_t PID1Z1Lbits;
5732 #define _PID1Z10 0x01
5733 #define _Z10 0x01
5734 #define _PID1Z11 0x02
5735 #define _Z11 0x02
5736 #define _PID1Z12 0x04
5737 #define _Z12 0x04
5738 #define _PID1Z13 0x08
5739 #define _Z13 0x08
5740 #define _PID1Z14 0x10
5741 #define _Z14 0x10
5742 #define _PID1Z15 0x20
5743 #define _Z15 0x20
5744 #define _PID1Z16 0x40
5745 #define _Z16 0x40
5746 #define _PID1Z17 0x80
5747 #define _Z17 0x80
5749 //==============================================================================
5752 //==============================================================================
5753 // PID1Z1H Bits
5755 extern __at(0x059C) __sfr PID1Z1H;
5757 typedef union
5759 struct
5761 unsigned PID1Z18 : 1;
5762 unsigned PID1Z19 : 1;
5763 unsigned PID1Z110 : 1;
5764 unsigned PID1Z111 : 1;
5765 unsigned PID1Z112 : 1;
5766 unsigned PID1Z113 : 1;
5767 unsigned PID1Z114 : 1;
5768 unsigned PID1Z115 : 1;
5771 struct
5773 unsigned Z18 : 1;
5774 unsigned Z19 : 1;
5775 unsigned Z110 : 1;
5776 unsigned Z111 : 1;
5777 unsigned Z112 : 1;
5778 unsigned Z113 : 1;
5779 unsigned Z114 : 1;
5780 unsigned Z115 : 1;
5782 } __PID1Z1Hbits_t;
5784 extern __at(0x059C) volatile __PID1Z1Hbits_t PID1Z1Hbits;
5786 #define _PID1Z18 0x01
5787 #define _Z18 0x01
5788 #define _PID1Z19 0x02
5789 #define _Z19 0x02
5790 #define _PID1Z110 0x04
5791 #define _Z110 0x04
5792 #define _PID1Z111 0x08
5793 #define _Z111 0x08
5794 #define _PID1Z112 0x10
5795 #define _Z112 0x10
5796 #define _PID1Z113 0x20
5797 #define _Z113 0x20
5798 #define _PID1Z114 0x40
5799 #define _Z114 0x40
5800 #define _PID1Z115 0x80
5801 #define _Z115 0x80
5803 //==============================================================================
5806 //==============================================================================
5807 // PID1Z1U Bits
5809 extern __at(0x059D) __sfr PID1Z1U;
5811 typedef union
5813 struct
5815 unsigned PID1Z116 : 1;
5816 unsigned : 1;
5817 unsigned : 1;
5818 unsigned : 1;
5819 unsigned : 1;
5820 unsigned : 1;
5821 unsigned : 1;
5822 unsigned : 1;
5825 struct
5827 unsigned Z116 : 1;
5828 unsigned : 1;
5829 unsigned : 1;
5830 unsigned : 1;
5831 unsigned : 1;
5832 unsigned : 1;
5833 unsigned : 1;
5834 unsigned : 1;
5836 } __PID1Z1Ubits_t;
5838 extern __at(0x059D) volatile __PID1Z1Ubits_t PID1Z1Ubits;
5840 #define _PID1Z116 0x01
5841 #define _Z116 0x01
5843 //==============================================================================
5845 extern __at(0x060C) __sfr PID1Z2;
5847 //==============================================================================
5848 // PID1Z2L Bits
5850 extern __at(0x060C) __sfr PID1Z2L;
5852 typedef union
5854 struct
5856 unsigned PID1Z20 : 1;
5857 unsigned PID1Z21 : 1;
5858 unsigned PID1Z22 : 1;
5859 unsigned PID1Z23 : 1;
5860 unsigned PID1Z24 : 1;
5861 unsigned PID1Z25 : 1;
5862 unsigned PID1Z26 : 1;
5863 unsigned PID1Z27 : 1;
5866 struct
5868 unsigned Z20 : 1;
5869 unsigned Z21 : 1;
5870 unsigned Z22 : 1;
5871 unsigned Z23 : 1;
5872 unsigned Z24 : 1;
5873 unsigned Z25 : 1;
5874 unsigned Z26 : 1;
5875 unsigned Z27 : 1;
5877 } __PID1Z2Lbits_t;
5879 extern __at(0x060C) volatile __PID1Z2Lbits_t PID1Z2Lbits;
5881 #define _PID1Z20 0x01
5882 #define _Z20 0x01
5883 #define _PID1Z21 0x02
5884 #define _Z21 0x02
5885 #define _PID1Z22 0x04
5886 #define _Z22 0x04
5887 #define _PID1Z23 0x08
5888 #define _Z23 0x08
5889 #define _PID1Z24 0x10
5890 #define _Z24 0x10
5891 #define _PID1Z25 0x20
5892 #define _Z25 0x20
5893 #define _PID1Z26 0x40
5894 #define _Z26 0x40
5895 #define _PID1Z27 0x80
5896 #define _Z27 0x80
5898 //==============================================================================
5901 //==============================================================================
5902 // PID1Z2H Bits
5904 extern __at(0x060D) __sfr PID1Z2H;
5906 typedef union
5908 struct
5910 unsigned PID1Z28 : 1;
5911 unsigned PID1Z29 : 1;
5912 unsigned PID1Z210 : 1;
5913 unsigned PID1Z211 : 1;
5914 unsigned PID1Z212 : 1;
5915 unsigned PID1Z213 : 1;
5916 unsigned PID1Z214 : 1;
5917 unsigned PID1Z215 : 1;
5920 struct
5922 unsigned Z28 : 1;
5923 unsigned Z29 : 1;
5924 unsigned Z210 : 1;
5925 unsigned Z211 : 1;
5926 unsigned Z212 : 1;
5927 unsigned Z213 : 1;
5928 unsigned Z214 : 1;
5929 unsigned Z215 : 1;
5931 } __PID1Z2Hbits_t;
5933 extern __at(0x060D) volatile __PID1Z2Hbits_t PID1Z2Hbits;
5935 #define _PID1Z28 0x01
5936 #define _Z28 0x01
5937 #define _PID1Z29 0x02
5938 #define _Z29 0x02
5939 #define _PID1Z210 0x04
5940 #define _Z210 0x04
5941 #define _PID1Z211 0x08
5942 #define _Z211 0x08
5943 #define _PID1Z212 0x10
5944 #define _Z212 0x10
5945 #define _PID1Z213 0x20
5946 #define _Z213 0x20
5947 #define _PID1Z214 0x40
5948 #define _Z214 0x40
5949 #define _PID1Z215 0x80
5950 #define _Z215 0x80
5952 //==============================================================================
5955 //==============================================================================
5956 // PID1Z2U Bits
5958 extern __at(0x060E) __sfr PID1Z2U;
5960 typedef union
5962 struct
5964 unsigned PID1Z216 : 1;
5965 unsigned : 1;
5966 unsigned : 1;
5967 unsigned : 1;
5968 unsigned : 1;
5969 unsigned : 1;
5970 unsigned : 1;
5971 unsigned : 1;
5974 struct
5976 unsigned Z216 : 1;
5977 unsigned : 1;
5978 unsigned : 1;
5979 unsigned : 1;
5980 unsigned : 1;
5981 unsigned : 1;
5982 unsigned : 1;
5983 unsigned : 1;
5985 } __PID1Z2Ubits_t;
5987 extern __at(0x060E) volatile __PID1Z2Ubits_t PID1Z2Ubits;
5989 #define _PID1Z216 0x01
5990 #define _Z216 0x01
5992 //==============================================================================
5994 extern __at(0x060F) __sfr PID1ACC;
5996 //==============================================================================
5997 // PID1ACCLL Bits
5999 extern __at(0x060F) __sfr PID1ACCLL;
6001 typedef union
6003 struct
6005 unsigned PID1ACC0 : 1;
6006 unsigned PID1ACC1 : 1;
6007 unsigned PID1ACC2 : 1;
6008 unsigned PID1ACC3 : 1;
6009 unsigned PID1ACC4 : 1;
6010 unsigned PID1ACC5 : 1;
6011 unsigned PID1ACC6 : 1;
6012 unsigned PID1ACC7 : 1;
6015 struct
6017 unsigned ACC0 : 1;
6018 unsigned ACC1 : 1;
6019 unsigned ACC2 : 1;
6020 unsigned ACC3 : 1;
6021 unsigned ACC4 : 1;
6022 unsigned ACC5 : 1;
6023 unsigned ACC6 : 1;
6024 unsigned ACC7 : 1;
6026 } __PID1ACCLLbits_t;
6028 extern __at(0x060F) volatile __PID1ACCLLbits_t PID1ACCLLbits;
6030 #define _PID1ACCLL_PID1ACC0 0x01
6031 #define _PID1ACCLL_ACC0 0x01
6032 #define _PID1ACCLL_PID1ACC1 0x02
6033 #define _PID1ACCLL_ACC1 0x02
6034 #define _PID1ACCLL_PID1ACC2 0x04
6035 #define _PID1ACCLL_ACC2 0x04
6036 #define _PID1ACCLL_PID1ACC3 0x08
6037 #define _PID1ACCLL_ACC3 0x08
6038 #define _PID1ACCLL_PID1ACC4 0x10
6039 #define _PID1ACCLL_ACC4 0x10
6040 #define _PID1ACCLL_PID1ACC5 0x20
6041 #define _PID1ACCLL_ACC5 0x20
6042 #define _PID1ACCLL_PID1ACC6 0x40
6043 #define _PID1ACCLL_ACC6 0x40
6044 #define _PID1ACCLL_PID1ACC7 0x80
6045 #define _PID1ACCLL_ACC7 0x80
6047 //==============================================================================
6050 //==============================================================================
6051 // PID1ACCLH Bits
6053 extern __at(0x0610) __sfr PID1ACCLH;
6055 typedef union
6057 struct
6059 unsigned PID1ACC8 : 1;
6060 unsigned PID1ACC9 : 1;
6061 unsigned PID1ACC10 : 1;
6062 unsigned PID1ACC11 : 1;
6063 unsigned PID1ACC12 : 1;
6064 unsigned PID1ACC13 : 1;
6065 unsigned PID1ACC14 : 1;
6066 unsigned PID1ACC15 : 1;
6069 struct
6071 unsigned ACC8 : 1;
6072 unsigned ACC9 : 1;
6073 unsigned ACC10 : 1;
6074 unsigned ACC11 : 1;
6075 unsigned ACC12 : 1;
6076 unsigned ACC13 : 1;
6077 unsigned ACC14 : 1;
6078 unsigned ACC15 : 1;
6080 } __PID1ACCLHbits_t;
6082 extern __at(0x0610) volatile __PID1ACCLHbits_t PID1ACCLHbits;
6084 #define _PID1ACCLH_PID1ACC8 0x01
6085 #define _PID1ACCLH_ACC8 0x01
6086 #define _PID1ACCLH_PID1ACC9 0x02
6087 #define _PID1ACCLH_ACC9 0x02
6088 #define _PID1ACCLH_PID1ACC10 0x04
6089 #define _PID1ACCLH_ACC10 0x04
6090 #define _PID1ACCLH_PID1ACC11 0x08
6091 #define _PID1ACCLH_ACC11 0x08
6092 #define _PID1ACCLH_PID1ACC12 0x10
6093 #define _PID1ACCLH_ACC12 0x10
6094 #define _PID1ACCLH_PID1ACC13 0x20
6095 #define _PID1ACCLH_ACC13 0x20
6096 #define _PID1ACCLH_PID1ACC14 0x40
6097 #define _PID1ACCLH_ACC14 0x40
6098 #define _PID1ACCLH_PID1ACC15 0x80
6099 #define _PID1ACCLH_ACC15 0x80
6101 //==============================================================================
6104 //==============================================================================
6105 // PID1ACCHL Bits
6107 extern __at(0x0611) __sfr PID1ACCHL;
6109 typedef union
6111 struct
6113 unsigned PID1ACC16 : 1;
6114 unsigned PID1ACC17 : 1;
6115 unsigned PID1ACC18 : 1;
6116 unsigned PID1ACC19 : 1;
6117 unsigned PID1ACC20 : 1;
6118 unsigned PID1ACC21 : 1;
6119 unsigned PID1ACC22 : 1;
6120 unsigned PID1ACC23 : 1;
6123 struct
6125 unsigned ACC16 : 1;
6126 unsigned ACC17 : 1;
6127 unsigned ACC18 : 1;
6128 unsigned ACC19 : 1;
6129 unsigned ACC20 : 1;
6130 unsigned ACC21 : 1;
6131 unsigned ACC22 : 1;
6132 unsigned ACC23 : 1;
6134 } __PID1ACCHLbits_t;
6136 extern __at(0x0611) volatile __PID1ACCHLbits_t PID1ACCHLbits;
6138 #define _PID1ACC16 0x01
6139 #define _ACC16 0x01
6140 #define _PID1ACC17 0x02
6141 #define _ACC17 0x02
6142 #define _PID1ACC18 0x04
6143 #define _ACC18 0x04
6144 #define _PID1ACC19 0x08
6145 #define _ACC19 0x08
6146 #define _PID1ACC20 0x10
6147 #define _ACC20 0x10
6148 #define _PID1ACC21 0x20
6149 #define _ACC21 0x20
6150 #define _PID1ACC22 0x40
6151 #define _ACC22 0x40
6152 #define _PID1ACC23 0x80
6153 #define _ACC23 0x80
6155 //==============================================================================
6158 //==============================================================================
6159 // PID1ACCHH Bits
6161 extern __at(0x0612) __sfr PID1ACCHH;
6163 typedef union
6165 struct
6167 unsigned PID1ACC24 : 1;
6168 unsigned PID1ACC25 : 1;
6169 unsigned PID1ACC26 : 1;
6170 unsigned PID1ACC27 : 1;
6171 unsigned PID1ACC28 : 1;
6172 unsigned PID1ACC29 : 1;
6173 unsigned PID1ACC30 : 1;
6174 unsigned PID1ACC31 : 1;
6177 struct
6179 unsigned ACC24 : 1;
6180 unsigned ACC25 : 1;
6181 unsigned ACC26 : 1;
6182 unsigned ACC27 : 1;
6183 unsigned ACC28 : 1;
6184 unsigned ACC29 : 1;
6185 unsigned ACC30 : 1;
6186 unsigned ACC31 : 1;
6188 } __PID1ACCHHbits_t;
6190 extern __at(0x0612) volatile __PID1ACCHHbits_t PID1ACCHHbits;
6192 #define _PID1ACC24 0x01
6193 #define _ACC24 0x01
6194 #define _PID1ACC25 0x02
6195 #define _ACC25 0x02
6196 #define _PID1ACC26 0x04
6197 #define _ACC26 0x04
6198 #define _PID1ACC27 0x08
6199 #define _ACC27 0x08
6200 #define _PID1ACC28 0x10
6201 #define _ACC28 0x10
6202 #define _PID1ACC29 0x20
6203 #define _ACC29 0x20
6204 #define _PID1ACC30 0x40
6205 #define _ACC30 0x40
6206 #define _PID1ACC31 0x80
6207 #define _ACC31 0x80
6209 //==============================================================================
6212 //==============================================================================
6213 // PID1ACCU Bits
6215 extern __at(0x0613) __sfr PID1ACCU;
6217 typedef union
6219 struct
6221 unsigned PID1ACC32 : 1;
6222 unsigned PID1ACC33 : 1;
6223 unsigned PID1ACC34 : 1;
6224 unsigned : 1;
6225 unsigned : 1;
6226 unsigned : 1;
6227 unsigned : 1;
6228 unsigned : 1;
6231 struct
6233 unsigned ACC32 : 1;
6234 unsigned ACC33 : 1;
6235 unsigned ACC34 : 1;
6236 unsigned : 1;
6237 unsigned : 1;
6238 unsigned : 1;
6239 unsigned : 1;
6240 unsigned : 1;
6242 } __PID1ACCUbits_t;
6244 extern __at(0x0613) volatile __PID1ACCUbits_t PID1ACCUbits;
6246 #define _PID1ACC32 0x01
6247 #define _ACC32 0x01
6248 #define _PID1ACC33 0x02
6249 #define _ACC33 0x02
6250 #define _PID1ACC34 0x04
6251 #define _ACC34 0x04
6253 //==============================================================================
6256 //==============================================================================
6257 // PID1CON Bits
6259 extern __at(0x0614) __sfr PID1CON;
6261 typedef union
6263 struct
6265 unsigned MODE0 : 1;
6266 unsigned MODE1 : 1;
6267 unsigned MODE2 : 1;
6268 unsigned : 1;
6269 unsigned : 1;
6270 unsigned : 1;
6271 unsigned PID1BUSY : 1;
6272 unsigned PID1EN : 1;
6275 struct
6277 unsigned PID1MODE0 : 1;
6278 unsigned PID1MODE1 : 1;
6279 unsigned PID1MODE2 : 1;
6280 unsigned : 1;
6281 unsigned : 1;
6282 unsigned : 1;
6283 unsigned BUSY : 1;
6284 unsigned EN : 1;
6287 struct
6289 unsigned MODE : 3;
6290 unsigned : 5;
6293 struct
6295 unsigned PID1MODE : 3;
6296 unsigned : 5;
6298 } __PID1CONbits_t;
6300 extern __at(0x0614) volatile __PID1CONbits_t PID1CONbits;
6302 #define _PID1CON_MODE0 0x01
6303 #define _PID1CON_PID1MODE0 0x01
6304 #define _PID1CON_MODE1 0x02
6305 #define _PID1CON_PID1MODE1 0x02
6306 #define _PID1CON_MODE2 0x04
6307 #define _PID1CON_PID1MODE2 0x04
6308 #define _PID1CON_PID1BUSY 0x40
6309 #define _PID1CON_BUSY 0x40
6310 #define _PID1CON_PID1EN 0x80
6311 #define _PID1CON_EN 0x80
6313 //==============================================================================
6316 //==============================================================================
6317 // PWM3DCL Bits
6319 extern __at(0x0617) __sfr PWM3DCL;
6321 typedef union
6323 struct
6325 unsigned : 1;
6326 unsigned : 1;
6327 unsigned : 1;
6328 unsigned : 1;
6329 unsigned : 1;
6330 unsigned : 1;
6331 unsigned DC0 : 1;
6332 unsigned DC1 : 1;
6335 struct
6337 unsigned : 1;
6338 unsigned : 1;
6339 unsigned : 1;
6340 unsigned : 1;
6341 unsigned : 1;
6342 unsigned : 1;
6343 unsigned PWM3DC0 : 1;
6344 unsigned PWM3DC1 : 1;
6347 struct
6349 unsigned : 1;
6350 unsigned : 1;
6351 unsigned : 1;
6352 unsigned : 1;
6353 unsigned : 1;
6354 unsigned : 1;
6355 unsigned PWMPW0 : 1;
6356 unsigned PWMPW1 : 1;
6359 struct
6361 unsigned : 6;
6362 unsigned PWM3DC : 2;
6365 struct
6367 unsigned : 6;
6368 unsigned PWMPW : 2;
6371 struct
6373 unsigned : 6;
6374 unsigned DC : 2;
6376 } __PWM3DCLbits_t;
6378 extern __at(0x0617) volatile __PWM3DCLbits_t PWM3DCLbits;
6380 #define _DC0 0x40
6381 #define _PWM3DC0 0x40
6382 #define _PWMPW0 0x40
6383 #define _DC1 0x80
6384 #define _PWM3DC1 0x80
6385 #define _PWMPW1 0x80
6387 //==============================================================================
6390 //==============================================================================
6391 // PWM3DCH Bits
6393 extern __at(0x0618) __sfr PWM3DCH;
6395 typedef union
6397 struct
6399 unsigned DC2 : 1;
6400 unsigned DC3 : 1;
6401 unsigned DC4 : 1;
6402 unsigned DC5 : 1;
6403 unsigned DC6 : 1;
6404 unsigned DC7 : 1;
6405 unsigned DC8 : 1;
6406 unsigned DC9 : 1;
6409 struct
6411 unsigned PWM3DC2 : 1;
6412 unsigned PWM3DC3 : 1;
6413 unsigned PWM3DC4 : 1;
6414 unsigned PWM3DC5 : 1;
6415 unsigned PWM3DC6 : 1;
6416 unsigned PWM3DC7 : 1;
6417 unsigned PWM3DC8 : 1;
6418 unsigned PWM3DC9 : 1;
6421 struct
6423 unsigned PWMPW2 : 1;
6424 unsigned PWMPW3 : 1;
6425 unsigned PWMPW4 : 1;
6426 unsigned PWMPW5 : 1;
6427 unsigned PWMPW6 : 1;
6428 unsigned PWMPW7 : 1;
6429 unsigned PWMPW8 : 1;
6430 unsigned PWMPW9 : 1;
6432 } __PWM3DCHbits_t;
6434 extern __at(0x0618) volatile __PWM3DCHbits_t PWM3DCHbits;
6436 #define _DC2 0x01
6437 #define _PWM3DC2 0x01
6438 #define _PWMPW2 0x01
6439 #define _DC3 0x02
6440 #define _PWM3DC3 0x02
6441 #define _PWMPW3 0x02
6442 #define _DC4 0x04
6443 #define _PWM3DC4 0x04
6444 #define _PWMPW4 0x04
6445 #define _DC5 0x08
6446 #define _PWM3DC5 0x08
6447 #define _PWMPW5 0x08
6448 #define _DC6 0x10
6449 #define _PWM3DC6 0x10
6450 #define _PWMPW6 0x10
6451 #define _DC7 0x20
6452 #define _PWM3DC7 0x20
6453 #define _PWMPW7 0x20
6454 #define _DC8 0x40
6455 #define _PWM3DC8 0x40
6456 #define _PWMPW8 0x40
6457 #define _DC9 0x80
6458 #define _PWM3DC9 0x80
6459 #define _PWMPW9 0x80
6461 //==============================================================================
6464 //==============================================================================
6465 // PWM3CON Bits
6467 extern __at(0x0619) __sfr PWM3CON;
6469 typedef union
6471 struct
6473 unsigned : 1;
6474 unsigned : 1;
6475 unsigned : 1;
6476 unsigned : 1;
6477 unsigned POL : 1;
6478 unsigned OUT : 1;
6479 unsigned : 1;
6480 unsigned EN : 1;
6483 struct
6485 unsigned : 1;
6486 unsigned : 1;
6487 unsigned : 1;
6488 unsigned : 1;
6489 unsigned PWM3POL : 1;
6490 unsigned PWM3OUT : 1;
6491 unsigned : 1;
6492 unsigned PWM3EN : 1;
6494 } __PWM3CONbits_t;
6496 extern __at(0x0619) volatile __PWM3CONbits_t PWM3CONbits;
6498 #define _PWM3CON_POL 0x10
6499 #define _PWM3CON_PWM3POL 0x10
6500 #define _PWM3CON_OUT 0x20
6501 #define _PWM3CON_PWM3OUT 0x20
6502 #define _PWM3CON_EN 0x80
6503 #define _PWM3CON_PWM3EN 0x80
6505 //==============================================================================
6508 //==============================================================================
6509 // PWM4DCL Bits
6511 extern __at(0x061A) __sfr PWM4DCL;
6513 typedef union
6515 struct
6517 unsigned : 1;
6518 unsigned : 1;
6519 unsigned : 1;
6520 unsigned : 1;
6521 unsigned : 1;
6522 unsigned : 1;
6523 unsigned DC0 : 1;
6524 unsigned DC1 : 1;
6527 struct
6529 unsigned : 1;
6530 unsigned : 1;
6531 unsigned : 1;
6532 unsigned : 1;
6533 unsigned : 1;
6534 unsigned : 1;
6535 unsigned PWM4DC0 : 1;
6536 unsigned PWM4DC1 : 1;
6539 struct
6541 unsigned : 1;
6542 unsigned : 1;
6543 unsigned : 1;
6544 unsigned : 1;
6545 unsigned : 1;
6546 unsigned : 1;
6547 unsigned PWMPW0 : 1;
6548 unsigned PWMPW1 : 1;
6551 struct
6553 unsigned : 6;
6554 unsigned PWM4DC : 2;
6557 struct
6559 unsigned : 6;
6560 unsigned PWMPW : 2;
6563 struct
6565 unsigned : 6;
6566 unsigned DC : 2;
6568 } __PWM4DCLbits_t;
6570 extern __at(0x061A) volatile __PWM4DCLbits_t PWM4DCLbits;
6572 #define _PWM4DCL_DC0 0x40
6573 #define _PWM4DCL_PWM4DC0 0x40
6574 #define _PWM4DCL_PWMPW0 0x40
6575 #define _PWM4DCL_DC1 0x80
6576 #define _PWM4DCL_PWM4DC1 0x80
6577 #define _PWM4DCL_PWMPW1 0x80
6579 //==============================================================================
6582 //==============================================================================
6583 // PWM4DCH Bits
6585 extern __at(0x061B) __sfr PWM4DCH;
6587 typedef union
6589 struct
6591 unsigned DC2 : 1;
6592 unsigned DC3 : 1;
6593 unsigned DC4 : 1;
6594 unsigned DC5 : 1;
6595 unsigned DC6 : 1;
6596 unsigned DC7 : 1;
6597 unsigned DC8 : 1;
6598 unsigned DC9 : 1;
6601 struct
6603 unsigned PWM4DC2 : 1;
6604 unsigned PWM4DC3 : 1;
6605 unsigned PWM4DC4 : 1;
6606 unsigned PWM4DC5 : 1;
6607 unsigned PWM4DC6 : 1;
6608 unsigned PWM4DC7 : 1;
6609 unsigned PWM4DC8 : 1;
6610 unsigned PWM4DC9 : 1;
6613 struct
6615 unsigned PWMPW2 : 1;
6616 unsigned PWMPW3 : 1;
6617 unsigned PWMPW4 : 1;
6618 unsigned PWMPW5 : 1;
6619 unsigned PWMPW6 : 1;
6620 unsigned PWMPW7 : 1;
6621 unsigned PWMPW8 : 1;
6622 unsigned PWMPW9 : 1;
6624 } __PWM4DCHbits_t;
6626 extern __at(0x061B) volatile __PWM4DCHbits_t PWM4DCHbits;
6628 #define _PWM4DCH_DC2 0x01
6629 #define _PWM4DCH_PWM4DC2 0x01
6630 #define _PWM4DCH_PWMPW2 0x01
6631 #define _PWM4DCH_DC3 0x02
6632 #define _PWM4DCH_PWM4DC3 0x02
6633 #define _PWM4DCH_PWMPW3 0x02
6634 #define _PWM4DCH_DC4 0x04
6635 #define _PWM4DCH_PWM4DC4 0x04
6636 #define _PWM4DCH_PWMPW4 0x04
6637 #define _PWM4DCH_DC5 0x08
6638 #define _PWM4DCH_PWM4DC5 0x08
6639 #define _PWM4DCH_PWMPW5 0x08
6640 #define _PWM4DCH_DC6 0x10
6641 #define _PWM4DCH_PWM4DC6 0x10
6642 #define _PWM4DCH_PWMPW6 0x10
6643 #define _PWM4DCH_DC7 0x20
6644 #define _PWM4DCH_PWM4DC7 0x20
6645 #define _PWM4DCH_PWMPW7 0x20
6646 #define _PWM4DCH_DC8 0x40
6647 #define _PWM4DCH_PWM4DC8 0x40
6648 #define _PWM4DCH_PWMPW8 0x40
6649 #define _PWM4DCH_DC9 0x80
6650 #define _PWM4DCH_PWM4DC9 0x80
6651 #define _PWM4DCH_PWMPW9 0x80
6653 //==============================================================================
6656 //==============================================================================
6657 // PWM4CON Bits
6659 extern __at(0x061C) __sfr PWM4CON;
6661 typedef union
6663 struct
6665 unsigned : 1;
6666 unsigned : 1;
6667 unsigned : 1;
6668 unsigned : 1;
6669 unsigned POL : 1;
6670 unsigned OUT : 1;
6671 unsigned : 1;
6672 unsigned EN : 1;
6675 struct
6677 unsigned : 1;
6678 unsigned : 1;
6679 unsigned : 1;
6680 unsigned : 1;
6681 unsigned PWM4POL : 1;
6682 unsigned PWM4OUT : 1;
6683 unsigned : 1;
6684 unsigned PWM4EN : 1;
6686 } __PWM4CONbits_t;
6688 extern __at(0x061C) volatile __PWM4CONbits_t PWM4CONbits;
6690 #define _PWM4CON_POL 0x10
6691 #define _PWM4CON_PWM4POL 0x10
6692 #define _PWM4CON_OUT 0x20
6693 #define _PWM4CON_PWM4OUT 0x20
6694 #define _PWM4CON_EN 0x80
6695 #define _PWM4CON_PWM4EN 0x80
6697 //==============================================================================
6700 //==============================================================================
6701 // CWG1DBR Bits
6703 extern __at(0x0691) __sfr CWG1DBR;
6705 typedef union
6707 struct
6709 unsigned DBR0 : 1;
6710 unsigned DBR1 : 1;
6711 unsigned DBR2 : 1;
6712 unsigned DBR3 : 1;
6713 unsigned DBR4 : 1;
6714 unsigned DBR5 : 1;
6715 unsigned : 1;
6716 unsigned : 1;
6719 struct
6721 unsigned CWG1DBR0 : 1;
6722 unsigned CWG1DBR1 : 1;
6723 unsigned CWG1DBR2 : 1;
6724 unsigned CWG1DBR3 : 1;
6725 unsigned CWG1DBR4 : 1;
6726 unsigned CWG1DBR5 : 1;
6727 unsigned : 1;
6728 unsigned : 1;
6731 struct
6733 unsigned CWG1DBR : 6;
6734 unsigned : 2;
6737 struct
6739 unsigned DBR : 6;
6740 unsigned : 2;
6742 } __CWG1DBRbits_t;
6744 extern __at(0x0691) volatile __CWG1DBRbits_t CWG1DBRbits;
6746 #define _DBR0 0x01
6747 #define _CWG1DBR0 0x01
6748 #define _DBR1 0x02
6749 #define _CWG1DBR1 0x02
6750 #define _DBR2 0x04
6751 #define _CWG1DBR2 0x04
6752 #define _DBR3 0x08
6753 #define _CWG1DBR3 0x08
6754 #define _DBR4 0x10
6755 #define _CWG1DBR4 0x10
6756 #define _DBR5 0x20
6757 #define _CWG1DBR5 0x20
6759 //==============================================================================
6762 //==============================================================================
6763 // CWG1DBF Bits
6765 extern __at(0x0692) __sfr CWG1DBF;
6767 typedef union
6769 struct
6771 unsigned DBF0 : 1;
6772 unsigned DBF1 : 1;
6773 unsigned DBF2 : 1;
6774 unsigned DBF3 : 1;
6775 unsigned DBF4 : 1;
6776 unsigned DBF5 : 1;
6777 unsigned : 1;
6778 unsigned : 1;
6781 struct
6783 unsigned CWG1DBF0 : 1;
6784 unsigned CWG1DBF1 : 1;
6785 unsigned CWG1DBF2 : 1;
6786 unsigned CWG1DBF3 : 1;
6787 unsigned CWG1DBF4 : 1;
6788 unsigned CWG1DBF5 : 1;
6789 unsigned : 1;
6790 unsigned : 1;
6793 struct
6795 unsigned DBF : 6;
6796 unsigned : 2;
6799 struct
6801 unsigned CWG1DBF : 6;
6802 unsigned : 2;
6804 } __CWG1DBFbits_t;
6806 extern __at(0x0692) volatile __CWG1DBFbits_t CWG1DBFbits;
6808 #define _DBF0 0x01
6809 #define _CWG1DBF0 0x01
6810 #define _DBF1 0x02
6811 #define _CWG1DBF1 0x02
6812 #define _DBF2 0x04
6813 #define _CWG1DBF2 0x04
6814 #define _DBF3 0x08
6815 #define _CWG1DBF3 0x08
6816 #define _DBF4 0x10
6817 #define _CWG1DBF4 0x10
6818 #define _DBF5 0x20
6819 #define _CWG1DBF5 0x20
6821 //==============================================================================
6824 //==============================================================================
6825 // CWG1AS0 Bits
6827 extern __at(0x0693) __sfr CWG1AS0;
6829 typedef union
6831 struct
6833 unsigned : 1;
6834 unsigned : 1;
6835 unsigned LSAC0 : 1;
6836 unsigned LSAC1 : 1;
6837 unsigned LSBD0 : 1;
6838 unsigned LSBD1 : 1;
6839 unsigned REN : 1;
6840 unsigned SHUTDOWN : 1;
6843 struct
6845 unsigned : 1;
6846 unsigned : 1;
6847 unsigned CWG1LSAC0 : 1;
6848 unsigned CWG1LSAC1 : 1;
6849 unsigned CWG1LSBD0 : 1;
6850 unsigned CWG1LSBD1 : 1;
6851 unsigned CWG1REN : 1;
6852 unsigned CWG1SHUTDOWN : 1;
6855 struct
6857 unsigned : 2;
6858 unsigned LSAC : 2;
6859 unsigned : 4;
6862 struct
6864 unsigned : 2;
6865 unsigned CWG1LSAC : 2;
6866 unsigned : 4;
6869 struct
6871 unsigned : 4;
6872 unsigned LSBD : 2;
6873 unsigned : 2;
6876 struct
6878 unsigned : 4;
6879 unsigned CWG1LSBD : 2;
6880 unsigned : 2;
6882 } __CWG1AS0bits_t;
6884 extern __at(0x0693) volatile __CWG1AS0bits_t CWG1AS0bits;
6886 #define _LSAC0 0x04
6887 #define _CWG1LSAC0 0x04
6888 #define _LSAC1 0x08
6889 #define _CWG1LSAC1 0x08
6890 #define _LSBD0 0x10
6891 #define _CWG1LSBD0 0x10
6892 #define _LSBD1 0x20
6893 #define _CWG1LSBD1 0x20
6894 #define _REN 0x40
6895 #define _CWG1REN 0x40
6896 #define _SHUTDOWN 0x80
6897 #define _CWG1SHUTDOWN 0x80
6899 //==============================================================================
6902 //==============================================================================
6903 // CWG1AS1 Bits
6905 extern __at(0x0694) __sfr CWG1AS1;
6907 typedef union
6909 struct
6911 unsigned INAS : 1;
6912 unsigned C1AS : 1;
6913 unsigned C2AS : 1;
6914 unsigned : 1;
6915 unsigned TMR2AS : 1;
6916 unsigned TMR4AS : 1;
6917 unsigned TMR6AS : 1;
6918 unsigned : 1;
6921 struct
6923 unsigned CWG1INAS : 1;
6924 unsigned CWG1C1AS : 1;
6925 unsigned CWG1C2AS : 1;
6926 unsigned : 1;
6927 unsigned CWG1TMR2AS : 1;
6928 unsigned CWG1TMR4AS : 1;
6929 unsigned CWG1TMR6AS : 1;
6930 unsigned : 1;
6932 } __CWG1AS1bits_t;
6934 extern __at(0x0694) volatile __CWG1AS1bits_t CWG1AS1bits;
6936 #define _INAS 0x01
6937 #define _CWG1INAS 0x01
6938 #define _C1AS 0x02
6939 #define _CWG1C1AS 0x02
6940 #define _C2AS 0x04
6941 #define _CWG1C2AS 0x04
6942 #define _TMR2AS 0x10
6943 #define _CWG1TMR2AS 0x10
6944 #define _TMR4AS 0x20
6945 #define _CWG1TMR4AS 0x20
6946 #define _TMR6AS 0x40
6947 #define _CWG1TMR6AS 0x40
6949 //==============================================================================
6952 //==============================================================================
6953 // CWG1OCON0 Bits
6955 extern __at(0x0695) __sfr CWG1OCON0;
6957 typedef union
6959 struct
6961 unsigned STRA : 1;
6962 unsigned STRB : 1;
6963 unsigned STRC : 1;
6964 unsigned STRD : 1;
6965 unsigned OVRA : 1;
6966 unsigned OVRB : 1;
6967 unsigned OVRC : 1;
6968 unsigned OVRD : 1;
6971 struct
6973 unsigned CWG1STRA : 1;
6974 unsigned CWG1STRB : 1;
6975 unsigned CWG1STRC : 1;
6976 unsigned CWG1STRD : 1;
6977 unsigned CWG1OVRA : 1;
6978 unsigned CWG1OVRB : 1;
6979 unsigned CWG1OVRC : 1;
6980 unsigned CWG1OVRD : 1;
6982 } __CWG1OCON0bits_t;
6984 extern __at(0x0695) volatile __CWG1OCON0bits_t CWG1OCON0bits;
6986 #define _STRA 0x01
6987 #define _CWG1STRA 0x01
6988 #define _STRB 0x02
6989 #define _CWG1STRB 0x02
6990 #define _STRC 0x04
6991 #define _CWG1STRC 0x04
6992 #define _STRD 0x08
6993 #define _CWG1STRD 0x08
6994 #define _OVRA 0x10
6995 #define _CWG1OVRA 0x10
6996 #define _OVRB 0x20
6997 #define _CWG1OVRB 0x20
6998 #define _OVRC 0x40
6999 #define _CWG1OVRC 0x40
7000 #define _OVRD 0x80
7001 #define _CWG1OVRD 0x80
7003 //==============================================================================
7006 //==============================================================================
7007 // CWG1CON0 Bits
7009 extern __at(0x0696) __sfr CWG1CON0;
7011 typedef union
7013 struct
7015 unsigned MODE0 : 1;
7016 unsigned MODE1 : 1;
7017 unsigned MODE2 : 1;
7018 unsigned : 1;
7019 unsigned : 1;
7020 unsigned : 1;
7021 unsigned LD : 1;
7022 unsigned EN : 1;
7025 struct
7027 unsigned CWG1MODE0 : 1;
7028 unsigned CWG1MODE1 : 1;
7029 unsigned CWG1MODE2 : 1;
7030 unsigned : 1;
7031 unsigned : 1;
7032 unsigned : 1;
7033 unsigned CWG1LD : 1;
7034 unsigned G1EN : 1;
7037 struct
7039 unsigned : 1;
7040 unsigned : 1;
7041 unsigned : 1;
7042 unsigned : 1;
7043 unsigned : 1;
7044 unsigned : 1;
7045 unsigned : 1;
7046 unsigned CWG1EN : 1;
7049 struct
7051 unsigned CWG1MODE : 3;
7052 unsigned : 5;
7055 struct
7057 unsigned MODE : 3;
7058 unsigned : 5;
7060 } __CWG1CON0bits_t;
7062 extern __at(0x0696) volatile __CWG1CON0bits_t CWG1CON0bits;
7064 #define _CWG1CON0_MODE0 0x01
7065 #define _CWG1CON0_CWG1MODE0 0x01
7066 #define _CWG1CON0_MODE1 0x02
7067 #define _CWG1CON0_CWG1MODE1 0x02
7068 #define _CWG1CON0_MODE2 0x04
7069 #define _CWG1CON0_CWG1MODE2 0x04
7070 #define _CWG1CON0_LD 0x40
7071 #define _CWG1CON0_CWG1LD 0x40
7072 #define _CWG1CON0_EN 0x80
7073 #define _CWG1CON0_G1EN 0x80
7074 #define _CWG1CON0_CWG1EN 0x80
7076 //==============================================================================
7079 //==============================================================================
7080 // CWG1CON1 Bits
7082 extern __at(0x0697) __sfr CWG1CON1;
7084 typedef union
7086 struct
7088 unsigned POLA : 1;
7089 unsigned POLB : 1;
7090 unsigned POLC : 1;
7091 unsigned POLD : 1;
7092 unsigned : 1;
7093 unsigned IN : 1;
7094 unsigned : 1;
7095 unsigned : 1;
7098 struct
7100 unsigned CWG1POLA : 1;
7101 unsigned CWG1POLB : 1;
7102 unsigned CWG1POLC : 1;
7103 unsigned CWG1POLD : 1;
7104 unsigned : 1;
7105 unsigned CWG1IN : 1;
7106 unsigned : 1;
7107 unsigned : 1;
7109 } __CWG1CON1bits_t;
7111 extern __at(0x0697) volatile __CWG1CON1bits_t CWG1CON1bits;
7113 #define _POLA 0x01
7114 #define _CWG1POLA 0x01
7115 #define _POLB 0x02
7116 #define _CWG1POLB 0x02
7117 #define _POLC 0x04
7118 #define _CWG1POLC 0x04
7119 #define _POLD 0x08
7120 #define _CWG1POLD 0x08
7121 #define _IN 0x20
7122 #define _CWG1IN 0x20
7124 //==============================================================================
7127 //==============================================================================
7128 // CWG1CLKCON Bits
7130 extern __at(0x0699) __sfr CWG1CLKCON;
7132 typedef union
7134 struct
7136 unsigned CS : 1;
7137 unsigned : 1;
7138 unsigned : 1;
7139 unsigned : 1;
7140 unsigned : 1;
7141 unsigned : 1;
7142 unsigned : 1;
7143 unsigned : 1;
7146 struct
7148 unsigned CWG1CS : 1;
7149 unsigned : 1;
7150 unsigned : 1;
7151 unsigned : 1;
7152 unsigned : 1;
7153 unsigned : 1;
7154 unsigned : 1;
7155 unsigned : 1;
7157 } __CWG1CLKCONbits_t;
7159 extern __at(0x0699) volatile __CWG1CLKCONbits_t CWG1CLKCONbits;
7161 #define _CWG1CLKCON_CS 0x01
7162 #define _CWG1CLKCON_CWG1CS 0x01
7164 //==============================================================================
7167 //==============================================================================
7168 // CWG1ISM Bits
7170 extern __at(0x069A) __sfr CWG1ISM;
7172 typedef union
7174 struct
7176 unsigned IS0 : 1;
7177 unsigned IS1 : 1;
7178 unsigned IS2 : 1;
7179 unsigned IS3 : 1;
7180 unsigned : 1;
7181 unsigned : 1;
7182 unsigned : 1;
7183 unsigned : 1;
7186 struct
7188 unsigned CWG1IS0 : 1;
7189 unsigned CWG1IS1 : 1;
7190 unsigned CWG1IS2 : 1;
7191 unsigned CWG1IS3 : 1;
7192 unsigned : 1;
7193 unsigned : 1;
7194 unsigned : 1;
7195 unsigned : 1;
7198 struct
7200 unsigned IS : 4;
7201 unsigned : 4;
7204 struct
7206 unsigned CWG1IS : 4;
7207 unsigned : 4;
7209 } __CWG1ISMbits_t;
7211 extern __at(0x069A) volatile __CWG1ISMbits_t CWG1ISMbits;
7213 #define _IS0 0x01
7214 #define _CWG1IS0 0x01
7215 #define _IS1 0x02
7216 #define _CWG1IS1 0x02
7217 #define _IS2 0x04
7218 #define _CWG1IS2 0x04
7219 #define _IS3 0x08
7220 #define _CWG1IS3 0x08
7222 //==============================================================================
7225 //==============================================================================
7226 // WDTCON0 Bits
7228 extern __at(0x0711) __sfr WDTCON0;
7230 typedef union
7232 struct
7234 unsigned SEN : 1;
7235 unsigned WDTPS0 : 1;
7236 unsigned WDTPS1 : 1;
7237 unsigned WDTPS2 : 1;
7238 unsigned WDTPS3 : 1;
7239 unsigned WDTPS4 : 1;
7240 unsigned : 1;
7241 unsigned : 1;
7244 struct
7246 unsigned SWDTEN : 1;
7247 unsigned : 1;
7248 unsigned : 1;
7249 unsigned : 1;
7250 unsigned : 1;
7251 unsigned : 1;
7252 unsigned : 1;
7253 unsigned : 1;
7256 struct
7258 unsigned WDTSEN : 1;
7259 unsigned : 1;
7260 unsigned : 1;
7261 unsigned : 1;
7262 unsigned : 1;
7263 unsigned : 1;
7264 unsigned : 1;
7265 unsigned : 1;
7268 struct
7270 unsigned : 1;
7271 unsigned WDTPS : 5;
7272 unsigned : 2;
7274 } __WDTCON0bits_t;
7276 extern __at(0x0711) volatile __WDTCON0bits_t WDTCON0bits;
7278 #define _WDTCON0_SEN 0x01
7279 #define _WDTCON0_SWDTEN 0x01
7280 #define _WDTCON0_WDTSEN 0x01
7281 #define _WDTCON0_WDTPS0 0x02
7282 #define _WDTCON0_WDTPS1 0x04
7283 #define _WDTCON0_WDTPS2 0x08
7284 #define _WDTCON0_WDTPS3 0x10
7285 #define _WDTCON0_WDTPS4 0x20
7287 //==============================================================================
7290 //==============================================================================
7291 // WDTCON1 Bits
7293 extern __at(0x0712) __sfr WDTCON1;
7295 typedef union
7297 struct
7299 unsigned WINDOW0 : 1;
7300 unsigned WINDOW1 : 1;
7301 unsigned WINDOW2 : 1;
7302 unsigned : 1;
7303 unsigned WDTCS0 : 1;
7304 unsigned WDTCS1 : 1;
7305 unsigned WDTCS2 : 1;
7306 unsigned : 1;
7309 struct
7311 unsigned WDTWINDOW0 : 1;
7312 unsigned WDTWINDOW1 : 1;
7313 unsigned WDTWINDOW2 : 1;
7314 unsigned : 1;
7315 unsigned : 1;
7316 unsigned : 1;
7317 unsigned : 1;
7318 unsigned : 1;
7321 struct
7323 unsigned WINDOW : 3;
7324 unsigned : 5;
7327 struct
7329 unsigned WDTWINDOW : 3;
7330 unsigned : 5;
7333 struct
7335 unsigned : 4;
7336 unsigned WDTCS : 3;
7337 unsigned : 1;
7339 } __WDTCON1bits_t;
7341 extern __at(0x0712) volatile __WDTCON1bits_t WDTCON1bits;
7343 #define _WINDOW0 0x01
7344 #define _WDTWINDOW0 0x01
7345 #define _WINDOW1 0x02
7346 #define _WDTWINDOW1 0x02
7347 #define _WINDOW2 0x04
7348 #define _WDTWINDOW2 0x04
7349 #define _WDTCS0 0x10
7350 #define _WDTCS1 0x20
7351 #define _WDTCS2 0x40
7353 //==============================================================================
7356 //==============================================================================
7357 // WDTPSL Bits
7359 extern __at(0x0713) __sfr WDTPSL;
7361 typedef union
7363 struct
7365 unsigned PSCNT0 : 1;
7366 unsigned PSCNT1 : 1;
7367 unsigned PSCNT2 : 1;
7368 unsigned PSCNT3 : 1;
7369 unsigned PSCNT4 : 1;
7370 unsigned PSCNT5 : 1;
7371 unsigned PSCNT6 : 1;
7372 unsigned PSCNT7 : 1;
7375 struct
7377 unsigned WDTPSCNT0 : 1;
7378 unsigned WDTPSCNT1 : 1;
7379 unsigned WDTPSCNT2 : 1;
7380 unsigned WDTPSCNT3 : 1;
7381 unsigned WDTPSCNT4 : 1;
7382 unsigned WDTPSCNT5 : 1;
7383 unsigned WDTPSCNT6 : 1;
7384 unsigned WDTPSCNT7 : 1;
7386 } __WDTPSLbits_t;
7388 extern __at(0x0713) volatile __WDTPSLbits_t WDTPSLbits;
7390 #define _PSCNT0 0x01
7391 #define _WDTPSCNT0 0x01
7392 #define _PSCNT1 0x02
7393 #define _WDTPSCNT1 0x02
7394 #define _PSCNT2 0x04
7395 #define _WDTPSCNT2 0x04
7396 #define _PSCNT3 0x08
7397 #define _WDTPSCNT3 0x08
7398 #define _PSCNT4 0x10
7399 #define _WDTPSCNT4 0x10
7400 #define _PSCNT5 0x20
7401 #define _WDTPSCNT5 0x20
7402 #define _PSCNT6 0x40
7403 #define _WDTPSCNT6 0x40
7404 #define _PSCNT7 0x80
7405 #define _WDTPSCNT7 0x80
7407 //==============================================================================
7410 //==============================================================================
7411 // WDTPSH Bits
7413 extern __at(0x0714) __sfr WDTPSH;
7415 typedef union
7417 struct
7419 unsigned PSCNT8 : 1;
7420 unsigned PSCNT9 : 1;
7421 unsigned PSCNT10 : 1;
7422 unsigned PSCNT11 : 1;
7423 unsigned PSCNT12 : 1;
7424 unsigned PSCNT13 : 1;
7425 unsigned PSCNT14 : 1;
7426 unsigned PSCNT15 : 1;
7429 struct
7431 unsigned WDTPSCNT8 : 1;
7432 unsigned WDTPSCNT9 : 1;
7433 unsigned WDTPSCNT10 : 1;
7434 unsigned WDTPSCNT11 : 1;
7435 unsigned WDTPSCNT12 : 1;
7436 unsigned WDTPSCNT13 : 1;
7437 unsigned WDTPSCNT14 : 1;
7438 unsigned WDTPSCNT15 : 1;
7440 } __WDTPSHbits_t;
7442 extern __at(0x0714) volatile __WDTPSHbits_t WDTPSHbits;
7444 #define _PSCNT8 0x01
7445 #define _WDTPSCNT8 0x01
7446 #define _PSCNT9 0x02
7447 #define _WDTPSCNT9 0x02
7448 #define _PSCNT10 0x04
7449 #define _WDTPSCNT10 0x04
7450 #define _PSCNT11 0x08
7451 #define _WDTPSCNT11 0x08
7452 #define _PSCNT12 0x10
7453 #define _WDTPSCNT12 0x10
7454 #define _PSCNT13 0x20
7455 #define _WDTPSCNT13 0x20
7456 #define _PSCNT14 0x40
7457 #define _WDTPSCNT14 0x40
7458 #define _PSCNT15 0x80
7459 #define _WDTPSCNT15 0x80
7461 //==============================================================================
7464 //==============================================================================
7465 // WDTTMR Bits
7467 extern __at(0x0715) __sfr WDTTMR;
7469 typedef union
7471 struct
7473 unsigned PSCNT16 : 1;
7474 unsigned PSCNT17 : 1;
7475 unsigned STATE : 1;
7476 unsigned WDTTMR0 : 1;
7477 unsigned WDTTMR1 : 1;
7478 unsigned WDTTMR2 : 1;
7479 unsigned WDTTMR3 : 1;
7480 unsigned WDTTMR4 : 1;
7483 struct
7485 unsigned WDTPSCNT16 : 1;
7486 unsigned WDTPSCNT17 : 1;
7487 unsigned WDTSTATE : 1;
7488 unsigned : 1;
7489 unsigned : 1;
7490 unsigned : 1;
7491 unsigned : 1;
7492 unsigned : 1;
7495 struct
7497 unsigned : 3;
7498 unsigned WDTTMR : 5;
7500 } __WDTTMRbits_t;
7502 extern __at(0x0715) volatile __WDTTMRbits_t WDTTMRbits;
7504 #define _PSCNT16 0x01
7505 #define _WDTPSCNT16 0x01
7506 #define _PSCNT17 0x02
7507 #define _WDTPSCNT17 0x02
7508 #define _STATE 0x04
7509 #define _WDTSTATE 0x04
7510 #define _WDTTMR0 0x08
7511 #define _WDTTMR1 0x10
7512 #define _WDTTMR2 0x20
7513 #define _WDTTMR3 0x40
7514 #define _WDTTMR4 0x80
7516 //==============================================================================
7518 extern __at(0x0718) __sfr SCANLADR;
7520 //==============================================================================
7521 // SCANLADRL Bits
7523 extern __at(0x0718) __sfr SCANLADRL;
7525 typedef union
7527 struct
7529 unsigned LDAR0 : 1;
7530 unsigned LDAR1 : 1;
7531 unsigned LADR2 : 1;
7532 unsigned LADR3 : 1;
7533 unsigned LADR4 : 1;
7534 unsigned LADR5 : 1;
7535 unsigned LADR6 : 1;
7536 unsigned LADR7 : 1;
7539 struct
7541 unsigned SCANLADR0 : 1;
7542 unsigned SCANLADR1 : 1;
7543 unsigned SCANLADR2 : 1;
7544 unsigned SCANLADR3 : 1;
7545 unsigned SCANLADR4 : 1;
7546 unsigned SCANLADR5 : 1;
7547 unsigned SCANLADR6 : 1;
7548 unsigned SCANLADR7 : 1;
7551 struct
7553 unsigned LDAR : 2;
7554 unsigned : 6;
7556 } __SCANLADRLbits_t;
7558 extern __at(0x0718) volatile __SCANLADRLbits_t SCANLADRLbits;
7560 #define _LDAR0 0x01
7561 #define _SCANLADR0 0x01
7562 #define _LDAR1 0x02
7563 #define _SCANLADR1 0x02
7564 #define _LADR2 0x04
7565 #define _SCANLADR2 0x04
7566 #define _LADR3 0x08
7567 #define _SCANLADR3 0x08
7568 #define _LADR4 0x10
7569 #define _SCANLADR4 0x10
7570 #define _LADR5 0x20
7571 #define _SCANLADR5 0x20
7572 #define _LADR6 0x40
7573 #define _SCANLADR6 0x40
7574 #define _LADR7 0x80
7575 #define _SCANLADR7 0x80
7577 //==============================================================================
7580 //==============================================================================
7581 // SCANLADRH Bits
7583 extern __at(0x0719) __sfr SCANLADRH;
7585 typedef union
7587 struct
7589 unsigned LADR8 : 1;
7590 unsigned LADR9 : 1;
7591 unsigned LADR10 : 1;
7592 unsigned LADR11 : 1;
7593 unsigned LADR12 : 1;
7594 unsigned LADR13 : 1;
7595 unsigned LADR14 : 1;
7596 unsigned LADR15 : 1;
7599 struct
7601 unsigned SCANLADR8 : 1;
7602 unsigned SCANLADR9 : 1;
7603 unsigned SCANLADR10 : 1;
7604 unsigned SCANLADR11 : 1;
7605 unsigned SCANLADR12 : 1;
7606 unsigned SCANLADR13 : 1;
7607 unsigned SCANLADR14 : 1;
7608 unsigned SCANLADR15 : 1;
7610 } __SCANLADRHbits_t;
7612 extern __at(0x0719) volatile __SCANLADRHbits_t SCANLADRHbits;
7614 #define _LADR8 0x01
7615 #define _SCANLADR8 0x01
7616 #define _LADR9 0x02
7617 #define _SCANLADR9 0x02
7618 #define _LADR10 0x04
7619 #define _SCANLADR10 0x04
7620 #define _LADR11 0x08
7621 #define _SCANLADR11 0x08
7622 #define _LADR12 0x10
7623 #define _SCANLADR12 0x10
7624 #define _LADR13 0x20
7625 #define _SCANLADR13 0x20
7626 #define _LADR14 0x40
7627 #define _SCANLADR14 0x40
7628 #define _LADR15 0x80
7629 #define _SCANLADR15 0x80
7631 //==============================================================================
7633 extern __at(0x071A) __sfr SCANHADR;
7635 //==============================================================================
7636 // SCANHADRL Bits
7638 extern __at(0x071A) __sfr SCANHADRL;
7640 typedef union
7642 struct
7644 unsigned HADR0 : 1;
7645 unsigned HADR1 : 1;
7646 unsigned HARD2 : 1;
7647 unsigned HADR3 : 1;
7648 unsigned HADR4 : 1;
7649 unsigned HADR5 : 1;
7650 unsigned HADR6 : 1;
7651 unsigned HADR7 : 1;
7654 struct
7656 unsigned SCANHADR0 : 1;
7657 unsigned SCANHADR1 : 1;
7658 unsigned SCANHADR2 : 1;
7659 unsigned SCANHADR3 : 1;
7660 unsigned SCANHADR4 : 1;
7661 unsigned SCANHADR5 : 1;
7662 unsigned SCANHADR6 : 1;
7663 unsigned SCANHADR7 : 1;
7665 } __SCANHADRLbits_t;
7667 extern __at(0x071A) volatile __SCANHADRLbits_t SCANHADRLbits;
7669 #define _HADR0 0x01
7670 #define _SCANHADR0 0x01
7671 #define _HADR1 0x02
7672 #define _SCANHADR1 0x02
7673 #define _HARD2 0x04
7674 #define _SCANHADR2 0x04
7675 #define _HADR3 0x08
7676 #define _SCANHADR3 0x08
7677 #define _HADR4 0x10
7678 #define _SCANHADR4 0x10
7679 #define _HADR5 0x20
7680 #define _SCANHADR5 0x20
7681 #define _HADR6 0x40
7682 #define _SCANHADR6 0x40
7683 #define _HADR7 0x80
7684 #define _SCANHADR7 0x80
7686 //==============================================================================
7689 //==============================================================================
7690 // SCANHADRH Bits
7692 extern __at(0x071B) __sfr SCANHADRH;
7694 typedef union
7696 struct
7698 unsigned HADR8 : 1;
7699 unsigned HADR9 : 1;
7700 unsigned HADR10 : 1;
7701 unsigned HADR11 : 1;
7702 unsigned HADR12 : 1;
7703 unsigned HADR13 : 1;
7704 unsigned HADR14 : 1;
7705 unsigned HADR15 : 1;
7708 struct
7710 unsigned SCANHADR8 : 1;
7711 unsigned SCANHADR9 : 1;
7712 unsigned SCANHADR10 : 1;
7713 unsigned SCANHADR11 : 1;
7714 unsigned SCANHADR12 : 1;
7715 unsigned SCANHADR13 : 1;
7716 unsigned SCANHADR14 : 1;
7717 unsigned SCANHADR15 : 1;
7719 } __SCANHADRHbits_t;
7721 extern __at(0x071B) volatile __SCANHADRHbits_t SCANHADRHbits;
7723 #define _HADR8 0x01
7724 #define _SCANHADR8 0x01
7725 #define _HADR9 0x02
7726 #define _SCANHADR9 0x02
7727 #define _HADR10 0x04
7728 #define _SCANHADR10 0x04
7729 #define _HADR11 0x08
7730 #define _SCANHADR11 0x08
7731 #define _HADR12 0x10
7732 #define _SCANHADR12 0x10
7733 #define _HADR13 0x20
7734 #define _SCANHADR13 0x20
7735 #define _HADR14 0x40
7736 #define _SCANHADR14 0x40
7737 #define _HADR15 0x80
7738 #define _SCANHADR15 0x80
7740 //==============================================================================
7743 //==============================================================================
7744 // SCANCON0 Bits
7746 extern __at(0x071C) __sfr SCANCON0;
7748 typedef union
7750 struct
7752 unsigned MODE0 : 1;
7753 unsigned MODE1 : 1;
7754 unsigned : 1;
7755 unsigned INTM : 1;
7756 unsigned INVALID : 1;
7757 unsigned BUSY : 1;
7758 unsigned SCANGO : 1;
7759 unsigned EN : 1;
7762 struct
7764 unsigned SCANMODE0 : 1;
7765 unsigned SCANMODE1 : 1;
7766 unsigned : 1;
7767 unsigned SCANINTM : 1;
7768 unsigned SCANINVALID : 1;
7769 unsigned SCANBUSY : 1;
7770 unsigned : 1;
7771 unsigned SCANEN : 1;
7774 struct
7776 unsigned SCANMODE : 2;
7777 unsigned : 6;
7780 struct
7782 unsigned MODE : 2;
7783 unsigned : 6;
7785 } __SCANCON0bits_t;
7787 extern __at(0x071C) volatile __SCANCON0bits_t SCANCON0bits;
7789 #define _SCANCON0_MODE0 0x01
7790 #define _SCANCON0_SCANMODE0 0x01
7791 #define _SCANCON0_MODE1 0x02
7792 #define _SCANCON0_SCANMODE1 0x02
7793 #define _SCANCON0_INTM 0x08
7794 #define _SCANCON0_SCANINTM 0x08
7795 #define _SCANCON0_INVALID 0x10
7796 #define _SCANCON0_SCANINVALID 0x10
7797 #define _SCANCON0_BUSY 0x20
7798 #define _SCANCON0_SCANBUSY 0x20
7799 #define _SCANCON0_SCANGO 0x40
7800 #define _SCANCON0_EN 0x80
7801 #define _SCANCON0_SCANEN 0x80
7803 //==============================================================================
7806 //==============================================================================
7807 // SCANTRIG Bits
7809 extern __at(0x071D) __sfr SCANTRIG;
7811 typedef union
7813 struct
7815 unsigned TSEL0 : 1;
7816 unsigned TSEL1 : 1;
7817 unsigned TSEL2 : 1;
7818 unsigned TSEL3 : 1;
7819 unsigned : 1;
7820 unsigned : 1;
7821 unsigned : 1;
7822 unsigned : 1;
7825 struct
7827 unsigned SCANTSEL0 : 1;
7828 unsigned SCANTSEL1 : 1;
7829 unsigned SCANTSEL2 : 1;
7830 unsigned SCANTSEL3 : 1;
7831 unsigned : 1;
7832 unsigned : 1;
7833 unsigned : 1;
7834 unsigned : 1;
7837 struct
7839 unsigned TSEL : 4;
7840 unsigned : 4;
7843 struct
7845 unsigned SCANTSEL : 4;
7846 unsigned : 4;
7848 } __SCANTRIGbits_t;
7850 extern __at(0x071D) volatile __SCANTRIGbits_t SCANTRIGbits;
7852 #define _TSEL0 0x01
7853 #define _SCANTSEL0 0x01
7854 #define _TSEL1 0x02
7855 #define _SCANTSEL1 0x02
7856 #define _TSEL2 0x04
7857 #define _SCANTSEL2 0x04
7858 #define _TSEL3 0x08
7859 #define _SCANTSEL3 0x08
7861 //==============================================================================
7863 extern __at(0x0791) __sfr CRCDAT;
7865 //==============================================================================
7866 // CRCDATL Bits
7868 extern __at(0x0791) __sfr CRCDATL;
7870 typedef union
7872 struct
7874 unsigned DAT0 : 1;
7875 unsigned DAT1 : 1;
7876 unsigned DAT2 : 1;
7877 unsigned DAT3 : 1;
7878 unsigned DAT4 : 1;
7879 unsigned DAT5 : 1;
7880 unsigned DAT6 : 1;
7881 unsigned DAT7 : 1;
7884 struct
7886 unsigned CRCDAT0 : 1;
7887 unsigned CRCDAT1 : 1;
7888 unsigned CRCDAT2 : 1;
7889 unsigned CRCDAT3 : 1;
7890 unsigned CRCDAT4 : 1;
7891 unsigned CRCDAT5 : 1;
7892 unsigned CRCDAT6 : 1;
7893 unsigned CRDCDAT7 : 1;
7896 struct
7898 unsigned CRCDAT : 7;
7899 unsigned : 1;
7901 } __CRCDATLbits_t;
7903 extern __at(0x0791) volatile __CRCDATLbits_t CRCDATLbits;
7905 #define _DAT0 0x01
7906 #define _CRCDAT0 0x01
7907 #define _DAT1 0x02
7908 #define _CRCDAT1 0x02
7909 #define _DAT2 0x04
7910 #define _CRCDAT2 0x04
7911 #define _DAT3 0x08
7912 #define _CRCDAT3 0x08
7913 #define _DAT4 0x10
7914 #define _CRCDAT4 0x10
7915 #define _DAT5 0x20
7916 #define _CRCDAT5 0x20
7917 #define _DAT6 0x40
7918 #define _CRCDAT6 0x40
7919 #define _DAT7 0x80
7920 #define _CRDCDAT7 0x80
7922 //==============================================================================
7925 //==============================================================================
7926 // CRCDATH Bits
7928 extern __at(0x0792) __sfr CRCDATH;
7930 typedef union
7932 struct
7934 unsigned DAT8 : 1;
7935 unsigned DAT9 : 1;
7936 unsigned DAT10 : 1;
7937 unsigned DAT11 : 1;
7938 unsigned DAT12 : 1;
7939 unsigned DAT13 : 1;
7940 unsigned DAT14 : 1;
7941 unsigned DAT15 : 1;
7944 struct
7946 unsigned CRCDAT8 : 1;
7947 unsigned CRCDAT9 : 1;
7948 unsigned CRCDAT10 : 1;
7949 unsigned CRCDAT11 : 1;
7950 unsigned CRCDAT12 : 1;
7951 unsigned CRCDAT13 : 1;
7952 unsigned CRCDAT14 : 1;
7953 unsigned CRCDAT15 : 1;
7955 } __CRCDATHbits_t;
7957 extern __at(0x0792) volatile __CRCDATHbits_t CRCDATHbits;
7959 #define _DAT8 0x01
7960 #define _CRCDAT8 0x01
7961 #define _DAT9 0x02
7962 #define _CRCDAT9 0x02
7963 #define _DAT10 0x04
7964 #define _CRCDAT10 0x04
7965 #define _DAT11 0x08
7966 #define _CRCDAT11 0x08
7967 #define _DAT12 0x10
7968 #define _CRCDAT12 0x10
7969 #define _DAT13 0x20
7970 #define _CRCDAT13 0x20
7971 #define _DAT14 0x40
7972 #define _CRCDAT14 0x40
7973 #define _DAT15 0x80
7974 #define _CRCDAT15 0x80
7976 //==============================================================================
7978 extern __at(0x0793) __sfr CRCACC;
7980 //==============================================================================
7981 // CRCACCL Bits
7983 extern __at(0x0793) __sfr CRCACCL;
7985 typedef union
7987 struct
7989 unsigned ACC0 : 1;
7990 unsigned ACC1 : 1;
7991 unsigned ACC2 : 1;
7992 unsigned ACC3 : 1;
7993 unsigned ACC4 : 1;
7994 unsigned ACC5 : 1;
7995 unsigned ACC6 : 1;
7996 unsigned ACC7 : 1;
7999 struct
8001 unsigned CRCACC0 : 1;
8002 unsigned CRCACC1 : 1;
8003 unsigned CRCACC2 : 1;
8004 unsigned CRCACC3 : 1;
8005 unsigned CRCACC4 : 1;
8006 unsigned CRCACC5 : 1;
8007 unsigned CRCACC6 : 1;
8008 unsigned CRCACC7 : 1;
8010 } __CRCACCLbits_t;
8012 extern __at(0x0793) volatile __CRCACCLbits_t CRCACCLbits;
8014 #define _ACC0 0x01
8015 #define _CRCACC0 0x01
8016 #define _ACC1 0x02
8017 #define _CRCACC1 0x02
8018 #define _ACC2 0x04
8019 #define _CRCACC2 0x04
8020 #define _ACC3 0x08
8021 #define _CRCACC3 0x08
8022 #define _ACC4 0x10
8023 #define _CRCACC4 0x10
8024 #define _ACC5 0x20
8025 #define _CRCACC5 0x20
8026 #define _ACC6 0x40
8027 #define _CRCACC6 0x40
8028 #define _ACC7 0x80
8029 #define _CRCACC7 0x80
8031 //==============================================================================
8034 //==============================================================================
8035 // CRCACCH Bits
8037 extern __at(0x0794) __sfr CRCACCH;
8039 typedef union
8041 struct
8043 unsigned ACC8 : 1;
8044 unsigned ACC9 : 1;
8045 unsigned ACC10 : 1;
8046 unsigned ACC11 : 1;
8047 unsigned ACC12 : 1;
8048 unsigned ACC13 : 1;
8049 unsigned ACC14 : 1;
8050 unsigned ACC15 : 1;
8053 struct
8055 unsigned CRCACC8 : 1;
8056 unsigned CRCACC9 : 1;
8057 unsigned CRCACC10 : 1;
8058 unsigned CRCACC11 : 1;
8059 unsigned CRCACC12 : 1;
8060 unsigned CRCACC13 : 1;
8061 unsigned CRCACC14 : 1;
8062 unsigned CRCACC15 : 1;
8064 } __CRCACCHbits_t;
8066 extern __at(0x0794) volatile __CRCACCHbits_t CRCACCHbits;
8068 #define _ACC8 0x01
8069 #define _CRCACC8 0x01
8070 #define _ACC9 0x02
8071 #define _CRCACC9 0x02
8072 #define _ACC10 0x04
8073 #define _CRCACC10 0x04
8074 #define _ACC11 0x08
8075 #define _CRCACC11 0x08
8076 #define _ACC12 0x10
8077 #define _CRCACC12 0x10
8078 #define _ACC13 0x20
8079 #define _CRCACC13 0x20
8080 #define _ACC14 0x40
8081 #define _CRCACC14 0x40
8082 #define _ACC15 0x80
8083 #define _CRCACC15 0x80
8085 //==============================================================================
8087 extern __at(0x0795) __sfr CRCSHIFT;
8089 //==============================================================================
8090 // CRCSHIFTL Bits
8092 extern __at(0x0795) __sfr CRCSHIFTL;
8094 typedef union
8096 struct
8098 unsigned SHIFT0 : 1;
8099 unsigned SHIFT1 : 1;
8100 unsigned SHIFT2 : 1;
8101 unsigned SHIFT3 : 1;
8102 unsigned SHIFT4 : 1;
8103 unsigned SHIFT5 : 1;
8104 unsigned SHIFT6 : 1;
8105 unsigned SHIFT7 : 1;
8108 struct
8110 unsigned CRCSHIFT0 : 1;
8111 unsigned CRCSHIFT1 : 1;
8112 unsigned CRCSHIFT2 : 1;
8113 unsigned CRCSHIFT3 : 1;
8114 unsigned CRCSHIFT4 : 1;
8115 unsigned CRCSHIFT5 : 1;
8116 unsigned CRCSHIFT6 : 1;
8117 unsigned CRCSHIFT7 : 1;
8119 } __CRCSHIFTLbits_t;
8121 extern __at(0x0795) volatile __CRCSHIFTLbits_t CRCSHIFTLbits;
8123 #define _SHIFT0 0x01
8124 #define _CRCSHIFT0 0x01
8125 #define _SHIFT1 0x02
8126 #define _CRCSHIFT1 0x02
8127 #define _SHIFT2 0x04
8128 #define _CRCSHIFT2 0x04
8129 #define _SHIFT3 0x08
8130 #define _CRCSHIFT3 0x08
8131 #define _SHIFT4 0x10
8132 #define _CRCSHIFT4 0x10
8133 #define _SHIFT5 0x20
8134 #define _CRCSHIFT5 0x20
8135 #define _SHIFT6 0x40
8136 #define _CRCSHIFT6 0x40
8137 #define _SHIFT7 0x80
8138 #define _CRCSHIFT7 0x80
8140 //==============================================================================
8143 //==============================================================================
8144 // CRCSHIFTH Bits
8146 extern __at(0x0796) __sfr CRCSHIFTH;
8148 typedef union
8150 struct
8152 unsigned SHIFT8 : 1;
8153 unsigned SHIFT9 : 1;
8154 unsigned SHIFT10 : 1;
8155 unsigned SHIFT11 : 1;
8156 unsigned SHIFT12 : 1;
8157 unsigned SHIFT13 : 1;
8158 unsigned SHIFT14 : 1;
8159 unsigned SHIFT15 : 1;
8162 struct
8164 unsigned CRCSHIFT8 : 1;
8165 unsigned CRCSHIFT9 : 1;
8166 unsigned CRCSHIFT10 : 1;
8167 unsigned CRCSHIFT11 : 1;
8168 unsigned CRCSHIFT12 : 1;
8169 unsigned CRCSHIFT13 : 1;
8170 unsigned CRCSHIFT14 : 1;
8171 unsigned CRCSHIFT15 : 1;
8173 } __CRCSHIFTHbits_t;
8175 extern __at(0x0796) volatile __CRCSHIFTHbits_t CRCSHIFTHbits;
8177 #define _SHIFT8 0x01
8178 #define _CRCSHIFT8 0x01
8179 #define _SHIFT9 0x02
8180 #define _CRCSHIFT9 0x02
8181 #define _SHIFT10 0x04
8182 #define _CRCSHIFT10 0x04
8183 #define _SHIFT11 0x08
8184 #define _CRCSHIFT11 0x08
8185 #define _SHIFT12 0x10
8186 #define _CRCSHIFT12 0x10
8187 #define _SHIFT13 0x20
8188 #define _CRCSHIFT13 0x20
8189 #define _SHIFT14 0x40
8190 #define _CRCSHIFT14 0x40
8191 #define _SHIFT15 0x80
8192 #define _CRCSHIFT15 0x80
8194 //==============================================================================
8196 extern __at(0x0797) __sfr CRCXOR;
8198 //==============================================================================
8199 // CRCXORL Bits
8201 extern __at(0x0797) __sfr CRCXORL;
8203 typedef union
8205 struct
8207 unsigned : 1;
8208 unsigned XOR1 : 1;
8209 unsigned XOR2 : 1;
8210 unsigned XOR3 : 1;
8211 unsigned XOR4 : 1;
8212 unsigned XOR5 : 1;
8213 unsigned XOR6 : 1;
8214 unsigned XOR7 : 1;
8217 struct
8219 unsigned : 1;
8220 unsigned CRCXOR1 : 1;
8221 unsigned CRCXOR2 : 1;
8222 unsigned CRCXOR3 : 1;
8223 unsigned CRCXOR4 : 1;
8224 unsigned CRCXOR5 : 1;
8225 unsigned CRCXOR6 : 1;
8226 unsigned CRCXOR7 : 1;
8228 } __CRCXORLbits_t;
8230 extern __at(0x0797) volatile __CRCXORLbits_t CRCXORLbits;
8232 #define _XOR1 0x02
8233 #define _CRCXOR1 0x02
8234 #define _XOR2 0x04
8235 #define _CRCXOR2 0x04
8236 #define _XOR3 0x08
8237 #define _CRCXOR3 0x08
8238 #define _XOR4 0x10
8239 #define _CRCXOR4 0x10
8240 #define _XOR5 0x20
8241 #define _CRCXOR5 0x20
8242 #define _XOR6 0x40
8243 #define _CRCXOR6 0x40
8244 #define _XOR7 0x80
8245 #define _CRCXOR7 0x80
8247 //==============================================================================
8250 //==============================================================================
8251 // CRCXORH Bits
8253 extern __at(0x0798) __sfr CRCXORH;
8255 typedef union
8257 struct
8259 unsigned XOR8 : 1;
8260 unsigned XOR9 : 1;
8261 unsigned XOR10 : 1;
8262 unsigned XOR11 : 1;
8263 unsigned XOR12 : 1;
8264 unsigned XOR13 : 1;
8265 unsigned XOR14 : 1;
8266 unsigned XOR15 : 1;
8269 struct
8271 unsigned CRCXOR8 : 1;
8272 unsigned CRCXOR9 : 1;
8273 unsigned CRCXOR10 : 1;
8274 unsigned CRCXOR11 : 1;
8275 unsigned CRCXOR12 : 1;
8276 unsigned CRCXOR13 : 1;
8277 unsigned CRCXOR14 : 1;
8278 unsigned CRCXOR15 : 1;
8280 } __CRCXORHbits_t;
8282 extern __at(0x0798) volatile __CRCXORHbits_t CRCXORHbits;
8284 #define _XOR8 0x01
8285 #define _CRCXOR8 0x01
8286 #define _XOR9 0x02
8287 #define _CRCXOR9 0x02
8288 #define _XOR10 0x04
8289 #define _CRCXOR10 0x04
8290 #define _XOR11 0x08
8291 #define _CRCXOR11 0x08
8292 #define _XOR12 0x10
8293 #define _CRCXOR12 0x10
8294 #define _XOR13 0x20
8295 #define _CRCXOR13 0x20
8296 #define _XOR14 0x40
8297 #define _CRCXOR14 0x40
8298 #define _XOR15 0x80
8299 #define _CRCXOR15 0x80
8301 //==============================================================================
8304 //==============================================================================
8305 // CRCCON0 Bits
8307 extern __at(0x0799) __sfr CRCCON0;
8309 typedef union
8311 struct
8313 unsigned FULL : 1;
8314 unsigned SHIFTM : 1;
8315 unsigned : 1;
8316 unsigned : 1;
8317 unsigned ACCM : 1;
8318 unsigned BUSY : 1;
8319 unsigned CRCGO : 1;
8320 unsigned EN : 1;
8323 struct
8325 unsigned CRCFULL : 1;
8326 unsigned CRCSHIFTM : 1;
8327 unsigned : 1;
8328 unsigned : 1;
8329 unsigned CRCACCM : 1;
8330 unsigned CRCBUSY : 1;
8331 unsigned : 1;
8332 unsigned CRCEN : 1;
8334 } __CRCCON0bits_t;
8336 extern __at(0x0799) volatile __CRCCON0bits_t CRCCON0bits;
8338 #define _CRCCON0_FULL 0x01
8339 #define _CRCCON0_CRCFULL 0x01
8340 #define _CRCCON0_SHIFTM 0x02
8341 #define _CRCCON0_CRCSHIFTM 0x02
8342 #define _CRCCON0_ACCM 0x10
8343 #define _CRCCON0_CRCACCM 0x10
8344 #define _CRCCON0_BUSY 0x20
8345 #define _CRCCON0_CRCBUSY 0x20
8346 #define _CRCCON0_CRCGO 0x40
8347 #define _CRCCON0_EN 0x80
8348 #define _CRCCON0_CRCEN 0x80
8350 //==============================================================================
8353 //==============================================================================
8354 // CRCCON1 Bits
8356 extern __at(0x079A) __sfr CRCCON1;
8358 typedef union
8360 struct
8362 unsigned PLEN0 : 1;
8363 unsigned PLEN1 : 1;
8364 unsigned PLEN2 : 1;
8365 unsigned PLEN3 : 1;
8366 unsigned DLEN0 : 1;
8367 unsigned DLEN1 : 1;
8368 unsigned DLEN2 : 1;
8369 unsigned DLEN3 : 1;
8372 struct
8374 unsigned CRCPLEN0 : 1;
8375 unsigned CRCPLEN1 : 1;
8376 unsigned CRCPLEN2 : 1;
8377 unsigned CRCPLEN3 : 1;
8378 unsigned CRCDLEN0 : 1;
8379 unsigned CRCDLEN1 : 1;
8380 unsigned CRCDLEN2 : 1;
8381 unsigned CRCDLEN3 : 1;
8384 struct
8386 unsigned PLEN : 4;
8387 unsigned : 4;
8390 struct
8392 unsigned CRCPLEN : 4;
8393 unsigned : 4;
8396 struct
8398 unsigned : 4;
8399 unsigned CRCDLEN : 4;
8402 struct
8404 unsigned : 4;
8405 unsigned DLEN : 4;
8407 } __CRCCON1bits_t;
8409 extern __at(0x079A) volatile __CRCCON1bits_t CRCCON1bits;
8411 #define _PLEN0 0x01
8412 #define _CRCPLEN0 0x01
8413 #define _PLEN1 0x02
8414 #define _CRCPLEN1 0x02
8415 #define _PLEN2 0x04
8416 #define _CRCPLEN2 0x04
8417 #define _PLEN3 0x08
8418 #define _CRCPLEN3 0x08
8419 #define _DLEN0 0x10
8420 #define _CRCDLEN0 0x10
8421 #define _DLEN1 0x20
8422 #define _CRCDLEN1 0x20
8423 #define _DLEN2 0x40
8424 #define _CRCDLEN2 0x40
8425 #define _DLEN3 0x80
8426 #define _CRCDLEN3 0x80
8428 //==============================================================================
8430 extern __at(0x080C) __sfr AT1RES;
8432 //==============================================================================
8433 // AT1RESL Bits
8435 extern __at(0x080C) __sfr AT1RESL;
8437 typedef union
8439 struct
8441 unsigned AT1RES0 : 1;
8442 unsigned AT1RES1 : 1;
8443 unsigned AT1RES2 : 1;
8444 unsigned AT1RES3 : 1;
8445 unsigned AT1RES4 : 1;
8446 unsigned AT1RES5 : 1;
8447 unsigned AT1RES6 : 1;
8448 unsigned AT1RES7 : 1;
8451 struct
8453 unsigned RES0 : 1;
8454 unsigned RES1 : 1;
8455 unsigned RES2 : 1;
8456 unsigned RES3 : 1;
8457 unsigned RES4 : 1;
8458 unsigned RES5 : 1;
8459 unsigned RES6 : 1;
8460 unsigned RES7 : 1;
8462 } __AT1RESLbits_t;
8464 extern __at(0x080C) volatile __AT1RESLbits_t AT1RESLbits;
8466 #define _AT1RES0 0x01
8467 #define _RES0 0x01
8468 #define _AT1RES1 0x02
8469 #define _RES1 0x02
8470 #define _AT1RES2 0x04
8471 #define _RES2 0x04
8472 #define _AT1RES3 0x08
8473 #define _RES3 0x08
8474 #define _AT1RES4 0x10
8475 #define _RES4 0x10
8476 #define _AT1RES5 0x20
8477 #define _RES5 0x20
8478 #define _AT1RES6 0x40
8479 #define _RES6 0x40
8480 #define _AT1RES7 0x80
8481 #define _RES7 0x80
8483 //==============================================================================
8486 //==============================================================================
8487 // AT1RESH Bits
8489 extern __at(0x080D) __sfr AT1RESH;
8491 typedef union
8493 struct
8495 unsigned AT1RES8 : 1;
8496 unsigned AT1RES9 : 1;
8497 unsigned : 1;
8498 unsigned : 1;
8499 unsigned : 1;
8500 unsigned : 1;
8501 unsigned : 1;
8502 unsigned : 1;
8505 struct
8507 unsigned RES8 : 1;
8508 unsigned RES9 : 1;
8509 unsigned : 1;
8510 unsigned : 1;
8511 unsigned : 1;
8512 unsigned : 1;
8513 unsigned : 1;
8514 unsigned : 1;
8516 } __AT1RESHbits_t;
8518 extern __at(0x080D) volatile __AT1RESHbits_t AT1RESHbits;
8520 #define _AT1RES8 0x01
8521 #define _RES8 0x01
8522 #define _AT1RES9 0x02
8523 #define _RES9 0x02
8525 //==============================================================================
8527 extern __at(0x080E) __sfr AT1MISS;
8529 //==============================================================================
8530 // AT1MISSL Bits
8532 extern __at(0x080E) __sfr AT1MISSL;
8534 typedef union
8536 struct
8538 unsigned AT1MISS0 : 1;
8539 unsigned AT1MISS1 : 1;
8540 unsigned AT1MISS2 : 1;
8541 unsigned AT1MISS3 : 1;
8542 unsigned AT1MISS4 : 1;
8543 unsigned AT1MISS5 : 1;
8544 unsigned AT1MISS6 : 1;
8545 unsigned AT1MISS7 : 1;
8548 struct
8550 unsigned MISS0 : 1;
8551 unsigned MISS1 : 1;
8552 unsigned MISS2 : 1;
8553 unsigned MISS3 : 1;
8554 unsigned MISS4 : 1;
8555 unsigned MISS5 : 1;
8556 unsigned MISS6 : 1;
8557 unsigned MISS7 : 1;
8559 } __AT1MISSLbits_t;
8561 extern __at(0x080E) volatile __AT1MISSLbits_t AT1MISSLbits;
8563 #define _AT1MISS0 0x01
8564 #define _MISS0 0x01
8565 #define _AT1MISS1 0x02
8566 #define _MISS1 0x02
8567 #define _AT1MISS2 0x04
8568 #define _MISS2 0x04
8569 #define _AT1MISS3 0x08
8570 #define _MISS3 0x08
8571 #define _AT1MISS4 0x10
8572 #define _MISS4 0x10
8573 #define _AT1MISS5 0x20
8574 #define _MISS5 0x20
8575 #define _AT1MISS6 0x40
8576 #define _MISS6 0x40
8577 #define _AT1MISS7 0x80
8578 #define _MISS7 0x80
8580 //==============================================================================
8583 //==============================================================================
8584 // AT1MISSH Bits
8586 extern __at(0x080F) __sfr AT1MISSH;
8588 typedef union
8590 struct
8592 unsigned AT1MISS8 : 1;
8593 unsigned AT1MISS9 : 1;
8594 unsigned AT1MISS10 : 1;
8595 unsigned AT1MISS11 : 1;
8596 unsigned AT1MISS12 : 1;
8597 unsigned AT1MISS13 : 1;
8598 unsigned AT1MISS14 : 1;
8599 unsigned AT1MISS15 : 1;
8602 struct
8604 unsigned MISS8 : 1;
8605 unsigned MISS9 : 1;
8606 unsigned MISS10 : 1;
8607 unsigned MISS11 : 1;
8608 unsigned MISS12 : 1;
8609 unsigned MISS13 : 1;
8610 unsigned MISS14 : 1;
8611 unsigned MISS15 : 1;
8613 } __AT1MISSHbits_t;
8615 extern __at(0x080F) volatile __AT1MISSHbits_t AT1MISSHbits;
8617 #define _AT1MISS8 0x01
8618 #define _MISS8 0x01
8619 #define _AT1MISS9 0x02
8620 #define _MISS9 0x02
8621 #define _AT1MISS10 0x04
8622 #define _MISS10 0x04
8623 #define _AT1MISS11 0x08
8624 #define _MISS11 0x08
8625 #define _AT1MISS12 0x10
8626 #define _MISS12 0x10
8627 #define _AT1MISS13 0x20
8628 #define _MISS13 0x20
8629 #define _AT1MISS14 0x40
8630 #define _MISS14 0x40
8631 #define _AT1MISS15 0x80
8632 #define _MISS15 0x80
8634 //==============================================================================
8636 extern __at(0x0810) __sfr AT1PER;
8638 //==============================================================================
8639 // AT1PERL Bits
8641 extern __at(0x0810) __sfr AT1PERL;
8643 typedef union
8645 struct
8647 unsigned AT1PER0 : 1;
8648 unsigned AT1PER1 : 1;
8649 unsigned AT1PER2 : 1;
8650 unsigned AT1PER3 : 1;
8651 unsigned AT1PER4 : 1;
8652 unsigned AT1PER5 : 1;
8653 unsigned AT1PER6 : 1;
8654 unsigned AT1PER7 : 1;
8657 struct
8659 unsigned PER0 : 1;
8660 unsigned PER1 : 1;
8661 unsigned PER2 : 1;
8662 unsigned PER3 : 1;
8663 unsigned PER4 : 1;
8664 unsigned PER5 : 1;
8665 unsigned PER6 : 1;
8666 unsigned PER7 : 1;
8669 struct
8671 unsigned PERL0 : 1;
8672 unsigned PERL1 : 1;
8673 unsigned PERL2 : 1;
8674 unsigned PERL3 : 1;
8675 unsigned PERL4 : 1;
8676 unsigned PERL5 : 1;
8677 unsigned PERL6 : 1;
8678 unsigned PERL7 : 1;
8680 } __AT1PERLbits_t;
8682 extern __at(0x0810) volatile __AT1PERLbits_t AT1PERLbits;
8684 #define _AT1PER0 0x01
8685 #define _PER0 0x01
8686 #define _PERL0 0x01
8687 #define _AT1PER1 0x02
8688 #define _PER1 0x02
8689 #define _PERL1 0x02
8690 #define _AT1PER2 0x04
8691 #define _PER2 0x04
8692 #define _PERL2 0x04
8693 #define _AT1PER3 0x08
8694 #define _PER3 0x08
8695 #define _PERL3 0x08
8696 #define _AT1PER4 0x10
8697 #define _PER4 0x10
8698 #define _PERL4 0x10
8699 #define _AT1PER5 0x20
8700 #define _PER5 0x20
8701 #define _PERL5 0x20
8702 #define _AT1PER6 0x40
8703 #define _PER6 0x40
8704 #define _PERL6 0x40
8705 #define _AT1PER7 0x80
8706 #define _PER7 0x80
8707 #define _PERL7 0x80
8709 //==============================================================================
8712 //==============================================================================
8713 // AT1PERH Bits
8715 extern __at(0x0811) __sfr AT1PERH;
8717 typedef union
8719 struct
8721 unsigned AT1PER8 : 1;
8722 unsigned AT1PER9 : 1;
8723 unsigned AT1PER10 : 1;
8724 unsigned AT1PER11 : 1;
8725 unsigned AT1PER12 : 1;
8726 unsigned AT1PER13 : 1;
8727 unsigned AT1PER14 : 1;
8728 unsigned AT1POV : 1;
8731 struct
8733 unsigned PER8 : 1;
8734 unsigned PER9 : 1;
8735 unsigned PER10 : 1;
8736 unsigned PER11 : 1;
8737 unsigned PER12 : 1;
8738 unsigned PER13 : 1;
8739 unsigned PER14 : 1;
8740 unsigned PER15 : 1;
8743 struct
8745 unsigned PERH0 : 1;
8746 unsigned PERH1 : 1;
8747 unsigned PERH2 : 1;
8748 unsigned PERH3 : 1;
8749 unsigned PERH4 : 1;
8750 unsigned PERH5 : 1;
8751 unsigned PERH6 : 1;
8752 unsigned PERH7 : 1;
8754 } __AT1PERHbits_t;
8756 extern __at(0x0811) volatile __AT1PERHbits_t AT1PERHbits;
8758 #define _AT1PER8 0x01
8759 #define _PER8 0x01
8760 #define _PERH0 0x01
8761 #define _AT1PER9 0x02
8762 #define _PER9 0x02
8763 #define _PERH1 0x02
8764 #define _AT1PER10 0x04
8765 #define _PER10 0x04
8766 #define _PERH2 0x04
8767 #define _AT1PER11 0x08
8768 #define _PER11 0x08
8769 #define _PERH3 0x08
8770 #define _AT1PER12 0x10
8771 #define _PER12 0x10
8772 #define _PERH4 0x10
8773 #define _AT1PER13 0x20
8774 #define _PER13 0x20
8775 #define _PERH5 0x20
8776 #define _AT1PER14 0x40
8777 #define _PER14 0x40
8778 #define _PERH6 0x40
8779 #define _AT1POV 0x80
8780 #define _PER15 0x80
8781 #define _PERH7 0x80
8783 //==============================================================================
8785 extern __at(0x0812) __sfr AT1PHS;
8787 //==============================================================================
8788 // AT1PHSL Bits
8790 extern __at(0x0812) __sfr AT1PHSL;
8792 typedef union
8794 struct
8796 unsigned AT1PHS0 : 1;
8797 unsigned AT1PHS1 : 1;
8798 unsigned AT1PHS2 : 1;
8799 unsigned AT1PHS3 : 1;
8800 unsigned AT1PHS4 : 1;
8801 unsigned AT1PHS5 : 1;
8802 unsigned AT1PHS6 : 1;
8803 unsigned AT1PHS7 : 1;
8806 struct
8808 unsigned PHS0 : 1;
8809 unsigned PHS1 : 1;
8810 unsigned PHS2 : 1;
8811 unsigned PHS3 : 1;
8812 unsigned PHS4 : 1;
8813 unsigned PHS5 : 1;
8814 unsigned PHS6 : 1;
8815 unsigned PHS7 : 1;
8817 } __AT1PHSLbits_t;
8819 extern __at(0x0812) volatile __AT1PHSLbits_t AT1PHSLbits;
8821 #define _AT1PHS0 0x01
8822 #define _PHS0 0x01
8823 #define _AT1PHS1 0x02
8824 #define _PHS1 0x02
8825 #define _AT1PHS2 0x04
8826 #define _PHS2 0x04
8827 #define _AT1PHS3 0x08
8828 #define _PHS3 0x08
8829 #define _AT1PHS4 0x10
8830 #define _PHS4 0x10
8831 #define _AT1PHS5 0x20
8832 #define _PHS5 0x20
8833 #define _AT1PHS6 0x40
8834 #define _PHS6 0x40
8835 #define _AT1PHS7 0x80
8836 #define _PHS7 0x80
8838 //==============================================================================
8841 //==============================================================================
8842 // AT1PHSH Bits
8844 extern __at(0x0813) __sfr AT1PHSH;
8846 typedef union
8848 struct
8850 unsigned AT1PHS8 : 1;
8851 unsigned AT1PHS9 : 1;
8852 unsigned : 1;
8853 unsigned : 1;
8854 unsigned : 1;
8855 unsigned : 1;
8856 unsigned : 1;
8857 unsigned : 1;
8860 struct
8862 unsigned PHS8 : 1;
8863 unsigned PHS9 : 1;
8864 unsigned : 1;
8865 unsigned : 1;
8866 unsigned : 1;
8867 unsigned : 1;
8868 unsigned : 1;
8869 unsigned : 1;
8872 struct
8874 unsigned PHSL8 : 1;
8875 unsigned PHSL9 : 1;
8876 unsigned : 1;
8877 unsigned : 1;
8878 unsigned : 1;
8879 unsigned : 1;
8880 unsigned : 1;
8881 unsigned : 1;
8883 } __AT1PHSHbits_t;
8885 extern __at(0x0813) volatile __AT1PHSHbits_t AT1PHSHbits;
8887 #define _AT1PHS8 0x01
8888 #define _PHS8 0x01
8889 #define _PHSL8 0x01
8890 #define _AT1PHS9 0x02
8891 #define _PHS9 0x02
8892 #define _PHSL9 0x02
8894 //==============================================================================
8897 //==============================================================================
8898 // AT1CON0 Bits
8900 extern __at(0x0814) __sfr AT1CON0;
8902 typedef union
8904 struct
8906 unsigned MODE : 1;
8907 unsigned APMOD : 1;
8908 unsigned : 1;
8909 unsigned POL : 1;
8910 unsigned PS0 : 1;
8911 unsigned PS1 : 1;
8912 unsigned PREC : 1;
8913 unsigned EN : 1;
8916 struct
8918 unsigned AT1MODE : 1;
8919 unsigned AT1APMOD : 1;
8920 unsigned : 1;
8921 unsigned AT1POL : 1;
8922 unsigned AT1PS0 : 1;
8923 unsigned AT1PS1 : 1;
8924 unsigned AT1PREC : 1;
8925 unsigned AT1EN : 1;
8928 struct
8930 unsigned : 4;
8931 unsigned AT1PS : 2;
8932 unsigned : 2;
8935 struct
8937 unsigned : 4;
8938 unsigned PS : 2;
8939 unsigned : 2;
8941 } __AT1CON0bits_t;
8943 extern __at(0x0814) volatile __AT1CON0bits_t AT1CON0bits;
8945 #define _MODE 0x01
8946 #define _AT1MODE 0x01
8947 #define _APMOD 0x02
8948 #define _AT1APMOD 0x02
8949 #define _POL 0x08
8950 #define _AT1POL 0x08
8951 #define _PS0 0x10
8952 #define _AT1PS0 0x10
8953 #define _PS1 0x20
8954 #define _AT1PS1 0x20
8955 #define _PREC 0x40
8956 #define _AT1PREC 0x40
8957 #define _EN 0x80
8958 #define _AT1EN 0x80
8960 //==============================================================================
8963 //==============================================================================
8964 // AT1CON1 Bits
8966 extern __at(0x0815) __sfr AT1CON1;
8968 typedef union
8970 struct
8972 unsigned VALID : 1;
8973 unsigned ACCS : 1;
8974 unsigned MPP : 1;
8975 unsigned : 1;
8976 unsigned PRP : 1;
8977 unsigned : 1;
8978 unsigned PHP : 1;
8979 unsigned : 1;
8982 struct
8984 unsigned AT1VALID : 1;
8985 unsigned AT1ACCS : 1;
8986 unsigned AT1MPP : 1;
8987 unsigned : 1;
8988 unsigned AT1PRP : 1;
8989 unsigned : 1;
8990 unsigned AT1PHP : 1;
8991 unsigned : 1;
8993 } __AT1CON1bits_t;
8995 extern __at(0x0815) volatile __AT1CON1bits_t AT1CON1bits;
8997 #define _VALID 0x01
8998 #define _AT1VALID 0x01
8999 #define _ACCS 0x02
9000 #define _AT1ACCS 0x02
9001 #define _MPP 0x04
9002 #define _AT1MPP 0x04
9003 #define _PRP 0x10
9004 #define _AT1PRP 0x10
9005 #define _PHP 0x40
9006 #define _AT1PHP 0x40
9008 //==============================================================================
9011 //==============================================================================
9012 // AT1IR0 Bits
9014 extern __at(0x0816) __sfr AT1IR0;
9016 typedef struct
9018 unsigned AT1PERIF : 1;
9019 unsigned AT1MISSIF : 1;
9020 unsigned AT1PHSIF : 1;
9021 unsigned : 1;
9022 unsigned : 1;
9023 unsigned : 1;
9024 unsigned : 1;
9025 unsigned : 1;
9026 } __AT1IR0bits_t;
9028 extern __at(0x0816) volatile __AT1IR0bits_t AT1IR0bits;
9030 #define _AT1PERIF 0x01
9031 #define _AT1MISSIF 0x02
9032 #define _AT1PHSIF 0x04
9034 //==============================================================================
9037 //==============================================================================
9038 // AT1IE0 Bits
9040 extern __at(0x0817) __sfr AT1IE0;
9042 typedef struct
9044 unsigned AT1PERIE : 1;
9045 unsigned AT1MISSIE : 1;
9046 unsigned AT1PHSIE : 1;
9047 unsigned : 1;
9048 unsigned : 1;
9049 unsigned : 1;
9050 unsigned : 1;
9051 unsigned : 1;
9052 } __AT1IE0bits_t;
9054 extern __at(0x0817) volatile __AT1IE0bits_t AT1IE0bits;
9056 #define _AT1PERIE 0x01
9057 #define _AT1MISSIE 0x02
9058 #define _AT1PHSIE 0x04
9060 //==============================================================================
9063 //==============================================================================
9064 // AT1IR1 Bits
9066 extern __at(0x0818) __sfr AT1IR1;
9068 typedef struct
9070 unsigned AT1CC1IF : 1;
9071 unsigned AT1CC2IF : 1;
9072 unsigned AT1CC3IF : 1;
9073 unsigned : 1;
9074 unsigned : 1;
9075 unsigned : 1;
9076 unsigned : 1;
9077 unsigned : 1;
9078 } __AT1IR1bits_t;
9080 extern __at(0x0818) volatile __AT1IR1bits_t AT1IR1bits;
9082 #define _AT1CC1IF 0x01
9083 #define _AT1CC2IF 0x02
9084 #define _AT1CC3IF 0x04
9086 //==============================================================================
9089 //==============================================================================
9090 // AT1IE1 Bits
9092 extern __at(0x0819) __sfr AT1IE1;
9094 typedef struct
9096 unsigned AT1CC1IE : 1;
9097 unsigned AT1CC2IE : 1;
9098 unsigned AT1CC3IE : 1;
9099 unsigned : 1;
9100 unsigned : 1;
9101 unsigned : 1;
9102 unsigned : 1;
9103 unsigned : 1;
9104 } __AT1IE1bits_t;
9106 extern __at(0x0819) volatile __AT1IE1bits_t AT1IE1bits;
9108 #define _AT1CC1IE 0x01
9109 #define _AT1CC2IE 0x02
9110 #define _AT1CC3IE 0x04
9112 //==============================================================================
9114 extern __at(0x081A) __sfr AT1STPT;
9116 //==============================================================================
9117 // AT1STPTL Bits
9119 extern __at(0x081A) __sfr AT1STPTL;
9121 typedef union
9123 struct
9125 unsigned AT1STPT0 : 1;
9126 unsigned AT1STPT1 : 1;
9127 unsigned AT1STPT2 : 1;
9128 unsigned AT1STPT3 : 1;
9129 unsigned AT1STPT4 : 1;
9130 unsigned AT1STPT5 : 1;
9131 unsigned AT1STPT6 : 1;
9132 unsigned AT1STPT7 : 1;
9135 struct
9137 unsigned STPT0 : 1;
9138 unsigned STPT1 : 1;
9139 unsigned STPT2 : 1;
9140 unsigned STPT3 : 1;
9141 unsigned STPT4 : 1;
9142 unsigned STPT5 : 1;
9143 unsigned STPT6 : 1;
9144 unsigned STPT7 : 1;
9146 } __AT1STPTLbits_t;
9148 extern __at(0x081A) volatile __AT1STPTLbits_t AT1STPTLbits;
9150 #define _AT1STPT0 0x01
9151 #define _STPT0 0x01
9152 #define _AT1STPT1 0x02
9153 #define _STPT1 0x02
9154 #define _AT1STPT2 0x04
9155 #define _STPT2 0x04
9156 #define _AT1STPT3 0x08
9157 #define _STPT3 0x08
9158 #define _AT1STPT4 0x10
9159 #define _STPT4 0x10
9160 #define _AT1STPT5 0x20
9161 #define _STPT5 0x20
9162 #define _AT1STPT6 0x40
9163 #define _STPT6 0x40
9164 #define _AT1STPT7 0x80
9165 #define _STPT7 0x80
9167 //==============================================================================
9170 //==============================================================================
9171 // AT1STPTH Bits
9173 extern __at(0x081B) __sfr AT1STPTH;
9175 typedef union
9177 struct
9179 unsigned AT1STPT8 : 1;
9180 unsigned AT1STPT9 : 1;
9181 unsigned AT1STPT10 : 1;
9182 unsigned AT1STPT11 : 1;
9183 unsigned AT1STPT12 : 1;
9184 unsigned AT1STPT13 : 1;
9185 unsigned AT1STPT14 : 1;
9186 unsigned : 1;
9189 struct
9191 unsigned STPT8 : 1;
9192 unsigned STPT9 : 1;
9193 unsigned STPT10 : 1;
9194 unsigned STPT11 : 1;
9195 unsigned STPT12 : 1;
9196 unsigned STPT13 : 1;
9197 unsigned STPT14 : 1;
9198 unsigned : 1;
9200 } __AT1STPTHbits_t;
9202 extern __at(0x081B) volatile __AT1STPTHbits_t AT1STPTHbits;
9204 #define _AT1STPT8 0x01
9205 #define _STPT8 0x01
9206 #define _AT1STPT9 0x02
9207 #define _STPT9 0x02
9208 #define _AT1STPT10 0x04
9209 #define _STPT10 0x04
9210 #define _AT1STPT11 0x08
9211 #define _STPT11 0x08
9212 #define _AT1STPT12 0x10
9213 #define _STPT12 0x10
9214 #define _AT1STPT13 0x20
9215 #define _STPT13 0x20
9216 #define _AT1STPT14 0x40
9217 #define _STPT14 0x40
9219 //==============================================================================
9221 extern __at(0x081C) __sfr AT1ERR;
9223 //==============================================================================
9224 // AT1ERRL Bits
9226 extern __at(0x081C) __sfr AT1ERRL;
9228 typedef union
9230 struct
9232 unsigned AT1ERR0 : 1;
9233 unsigned AT1ERR1 : 1;
9234 unsigned AT1ERR2 : 1;
9235 unsigned AT1ERR3 : 1;
9236 unsigned AT1ERR4 : 1;
9237 unsigned AT1ERR5 : 1;
9238 unsigned AT1ERR6 : 1;
9239 unsigned AT1ERR7 : 1;
9242 struct
9244 unsigned ERR0 : 1;
9245 unsigned ERR1 : 1;
9246 unsigned ERR2 : 1;
9247 unsigned ERR3 : 1;
9248 unsigned ERR4 : 1;
9249 unsigned ERR5 : 1;
9250 unsigned ERR6 : 1;
9251 unsigned ERR7 : 1;
9254 struct
9256 unsigned ERRL0 : 1;
9257 unsigned ERRL1 : 1;
9258 unsigned ERRL2 : 1;
9259 unsigned ERRL3 : 1;
9260 unsigned ERRL4 : 1;
9261 unsigned ERRL5 : 1;
9262 unsigned ERRL6 : 1;
9263 unsigned ERRL7 : 1;
9265 } __AT1ERRLbits_t;
9267 extern __at(0x081C) volatile __AT1ERRLbits_t AT1ERRLbits;
9269 #define _AT1ERR0 0x01
9270 #define _ERR0 0x01
9271 #define _ERRL0 0x01
9272 #define _AT1ERR1 0x02
9273 #define _ERR1 0x02
9274 #define _ERRL1 0x02
9275 #define _AT1ERR2 0x04
9276 #define _ERR2 0x04
9277 #define _ERRL2 0x04
9278 #define _AT1ERR3 0x08
9279 #define _ERR3 0x08
9280 #define _ERRL3 0x08
9281 #define _AT1ERR4 0x10
9282 #define _ERR4 0x10
9283 #define _ERRL4 0x10
9284 #define _AT1ERR5 0x20
9285 #define _ERR5 0x20
9286 #define _ERRL5 0x20
9287 #define _AT1ERR6 0x40
9288 #define _ERR6 0x40
9289 #define _ERRL6 0x40
9290 #define _AT1ERR7 0x80
9291 #define _ERR7 0x80
9292 #define _ERRL7 0x80
9294 //==============================================================================
9297 //==============================================================================
9298 // AT1ERRH Bits
9300 extern __at(0x081D) __sfr AT1ERRH;
9302 typedef union
9304 struct
9306 unsigned AT1ERR8 : 1;
9307 unsigned AT1ERR9 : 1;
9308 unsigned AT1ERR10 : 1;
9309 unsigned AT1ERR11 : 1;
9310 unsigned AT1ERR12 : 1;
9311 unsigned AT1ERR13 : 1;
9312 unsigned AT1ERR14 : 1;
9313 unsigned AT1ERR15 : 1;
9316 struct
9318 unsigned ERR8 : 1;
9319 unsigned ERR9 : 1;
9320 unsigned ERR10 : 1;
9321 unsigned ERR11 : 1;
9322 unsigned ERR12 : 1;
9323 unsigned ERR13 : 1;
9324 unsigned ERR14 : 1;
9325 unsigned ERR15 : 1;
9328 struct
9330 unsigned ERRH0 : 1;
9331 unsigned ERRH1 : 1;
9332 unsigned ERRH2 : 1;
9333 unsigned ERRH3 : 1;
9334 unsigned ERRH4 : 1;
9335 unsigned ERRH5 : 1;
9336 unsigned ERRH6 : 1;
9337 unsigned ERRH7 : 1;
9339 } __AT1ERRHbits_t;
9341 extern __at(0x081D) volatile __AT1ERRHbits_t AT1ERRHbits;
9343 #define _AT1ERR8 0x01
9344 #define _ERR8 0x01
9345 #define _ERRH0 0x01
9346 #define _AT1ERR9 0x02
9347 #define _ERR9 0x02
9348 #define _ERRH1 0x02
9349 #define _AT1ERR10 0x04
9350 #define _ERR10 0x04
9351 #define _ERRH2 0x04
9352 #define _AT1ERR11 0x08
9353 #define _ERR11 0x08
9354 #define _ERRH3 0x08
9355 #define _AT1ERR12 0x10
9356 #define _ERR12 0x10
9357 #define _ERRH4 0x10
9358 #define _AT1ERR13 0x20
9359 #define _ERR13 0x20
9360 #define _ERRH5 0x20
9361 #define _AT1ERR14 0x40
9362 #define _ERR14 0x40
9363 #define _ERRH6 0x40
9364 #define _AT1ERR15 0x80
9365 #define _ERR15 0x80
9366 #define _ERRH7 0x80
9368 //==============================================================================
9371 //==============================================================================
9372 // AT1CLK Bits
9374 extern __at(0x088C) __sfr AT1CLK;
9376 typedef union
9378 struct
9380 unsigned CS : 1;
9381 unsigned : 1;
9382 unsigned : 1;
9383 unsigned : 1;
9384 unsigned : 1;
9385 unsigned : 1;
9386 unsigned : 1;
9387 unsigned : 1;
9390 struct
9392 unsigned AT1CS : 1;
9393 unsigned : 1;
9394 unsigned : 1;
9395 unsigned : 1;
9396 unsigned : 1;
9397 unsigned : 1;
9398 unsigned : 1;
9399 unsigned : 1;
9402 struct
9404 unsigned CS0 : 1;
9405 unsigned : 1;
9406 unsigned : 1;
9407 unsigned : 1;
9408 unsigned : 1;
9409 unsigned : 1;
9410 unsigned : 1;
9411 unsigned : 1;
9414 struct
9416 unsigned AT1CS0 : 1;
9417 unsigned : 1;
9418 unsigned : 1;
9419 unsigned : 1;
9420 unsigned : 1;
9421 unsigned : 1;
9422 unsigned : 1;
9423 unsigned : 1;
9425 } __AT1CLKbits_t;
9427 extern __at(0x088C) volatile __AT1CLKbits_t AT1CLKbits;
9429 #define _CS 0x01
9430 #define _AT1CS 0x01
9431 #define _CS0 0x01
9432 #define _AT1CS0 0x01
9434 //==============================================================================
9437 //==============================================================================
9438 // AT1SIG Bits
9440 extern __at(0x088D) __sfr AT1SIG;
9442 typedef union
9444 struct
9446 unsigned AT1SSEL0 : 1;
9447 unsigned AT1SSEL1 : 1;
9448 unsigned AT1SSEL2 : 1;
9449 unsigned : 1;
9450 unsigned : 1;
9451 unsigned : 1;
9452 unsigned : 1;
9453 unsigned : 1;
9456 struct
9458 unsigned SSEL0 : 1;
9459 unsigned SSEL1 : 1;
9460 unsigned SSEL2 : 1;
9461 unsigned : 1;
9462 unsigned : 1;
9463 unsigned : 1;
9464 unsigned : 1;
9465 unsigned : 1;
9468 struct
9470 unsigned SSEL : 3;
9471 unsigned : 5;
9474 struct
9476 unsigned AT1SSEL : 3;
9477 unsigned : 5;
9479 } __AT1SIGbits_t;
9481 extern __at(0x088D) volatile __AT1SIGbits_t AT1SIGbits;
9483 #define _AT1SSEL0 0x01
9484 #define _SSEL0 0x01
9485 #define _AT1SSEL1 0x02
9486 #define _SSEL1 0x02
9487 #define _AT1SSEL2 0x04
9488 #define _SSEL2 0x04
9490 //==============================================================================
9493 //==============================================================================
9494 // AT1CSEL1 Bits
9496 extern __at(0x088E) __sfr AT1CSEL1;
9498 typedef union
9500 struct
9502 unsigned AT1CP1S0 : 1;
9503 unsigned AT1CP1S1 : 1;
9504 unsigned AT1CP1S2 : 1;
9505 unsigned : 1;
9506 unsigned : 1;
9507 unsigned : 1;
9508 unsigned : 1;
9509 unsigned : 1;
9512 struct
9514 unsigned CP1S0 : 1;
9515 unsigned CP1S1 : 1;
9516 unsigned CP1S2 : 1;
9517 unsigned : 1;
9518 unsigned : 1;
9519 unsigned : 1;
9520 unsigned : 1;
9521 unsigned : 1;
9524 struct
9526 unsigned AT1CP1S : 3;
9527 unsigned : 5;
9530 struct
9532 unsigned CP1S : 3;
9533 unsigned : 5;
9535 } __AT1CSEL1bits_t;
9537 extern __at(0x088E) volatile __AT1CSEL1bits_t AT1CSEL1bits;
9539 #define _AT1CP1S0 0x01
9540 #define _CP1S0 0x01
9541 #define _AT1CP1S1 0x02
9542 #define _CP1S1 0x02
9543 #define _AT1CP1S2 0x04
9544 #define _CP1S2 0x04
9546 //==============================================================================
9548 extern __at(0x088F) __sfr AT1CC1;
9550 //==============================================================================
9551 // AT1CC1L Bits
9553 extern __at(0x088F) __sfr AT1CC1L;
9555 typedef union
9557 struct
9559 unsigned AT1CC10 : 1;
9560 unsigned AT1CC11 : 1;
9561 unsigned AT1CC12 : 1;
9562 unsigned AT1CC13 : 1;
9563 unsigned AT1CC14 : 1;
9564 unsigned AT1CC15 : 1;
9565 unsigned AT1CC16 : 1;
9566 unsigned AT1CC17 : 1;
9569 struct
9571 unsigned CC10 : 1;
9572 unsigned CC11 : 1;
9573 unsigned CC12 : 1;
9574 unsigned CC13 : 1;
9575 unsigned CC14 : 1;
9576 unsigned CC15 : 1;
9577 unsigned CC16 : 1;
9578 unsigned CC17 : 1;
9580 } __AT1CC1Lbits_t;
9582 extern __at(0x088F) volatile __AT1CC1Lbits_t AT1CC1Lbits;
9584 #define _AT1CC10 0x01
9585 #define _CC10 0x01
9586 #define _AT1CC11 0x02
9587 #define _CC11 0x02
9588 #define _AT1CC12 0x04
9589 #define _CC12 0x04
9590 #define _AT1CC13 0x08
9591 #define _CC13 0x08
9592 #define _AT1CC14 0x10
9593 #define _CC14 0x10
9594 #define _AT1CC15 0x20
9595 #define _CC15 0x20
9596 #define _AT1CC16 0x40
9597 #define _CC16 0x40
9598 #define _AT1CC17 0x80
9599 #define _CC17 0x80
9601 //==============================================================================
9604 //==============================================================================
9605 // AT1CC1H Bits
9607 extern __at(0x0890) __sfr AT1CC1H;
9609 typedef union
9611 struct
9613 unsigned AT1CC18 : 1;
9614 unsigned AT1CC19 : 1;
9615 unsigned : 1;
9616 unsigned : 1;
9617 unsigned : 1;
9618 unsigned : 1;
9619 unsigned : 1;
9620 unsigned : 1;
9623 struct
9625 unsigned CC18 : 1;
9626 unsigned CC19 : 1;
9627 unsigned : 1;
9628 unsigned : 1;
9629 unsigned : 1;
9630 unsigned : 1;
9631 unsigned : 1;
9632 unsigned : 1;
9634 } __AT1CC1Hbits_t;
9636 extern __at(0x0890) volatile __AT1CC1Hbits_t AT1CC1Hbits;
9638 #define _AT1CC18 0x01
9639 #define _CC18 0x01
9640 #define _AT1CC19 0x02
9641 #define _CC19 0x02
9643 //==============================================================================
9646 //==============================================================================
9647 // AT1CCON1 Bits
9649 extern __at(0x0891) __sfr AT1CCON1;
9651 typedef union
9653 struct
9655 unsigned AT1CC1MODE : 1;
9656 unsigned : 1;
9657 unsigned : 1;
9658 unsigned AT1CAP1P : 1;
9659 unsigned AT1CC1POL : 1;
9660 unsigned : 1;
9661 unsigned : 1;
9662 unsigned AT1CC1EN : 1;
9665 struct
9667 unsigned CC1MODE : 1;
9668 unsigned : 1;
9669 unsigned : 1;
9670 unsigned CAP1P : 1;
9671 unsigned CC1POL : 1;
9672 unsigned : 1;
9673 unsigned : 1;
9674 unsigned CC1EN : 1;
9676 } __AT1CCON1bits_t;
9678 extern __at(0x0891) volatile __AT1CCON1bits_t AT1CCON1bits;
9680 #define _AT1CC1MODE 0x01
9681 #define _CC1MODE 0x01
9682 #define _AT1CAP1P 0x08
9683 #define _CAP1P 0x08
9684 #define _AT1CC1POL 0x10
9685 #define _CC1POL 0x10
9686 #define _AT1CC1EN 0x80
9687 #define _CC1EN 0x80
9689 //==============================================================================
9692 //==============================================================================
9693 // AT1CSEL2 Bits
9695 extern __at(0x0892) __sfr AT1CSEL2;
9697 typedef union
9699 struct
9701 unsigned AT1CP2S0 : 1;
9702 unsigned AT1CP2S1 : 1;
9703 unsigned AT1CP2S2 : 1;
9704 unsigned : 1;
9705 unsigned : 1;
9706 unsigned : 1;
9707 unsigned : 1;
9708 unsigned : 1;
9711 struct
9713 unsigned CP2S0 : 1;
9714 unsigned CP2S1 : 1;
9715 unsigned CP2S2 : 1;
9716 unsigned : 1;
9717 unsigned : 1;
9718 unsigned : 1;
9719 unsigned : 1;
9720 unsigned : 1;
9723 struct
9725 unsigned CP2S : 3;
9726 unsigned : 5;
9729 struct
9731 unsigned AT1CP2S : 3;
9732 unsigned : 5;
9734 } __AT1CSEL2bits_t;
9736 extern __at(0x0892) volatile __AT1CSEL2bits_t AT1CSEL2bits;
9738 #define _AT1CP2S0 0x01
9739 #define _CP2S0 0x01
9740 #define _AT1CP2S1 0x02
9741 #define _CP2S1 0x02
9742 #define _AT1CP2S2 0x04
9743 #define _CP2S2 0x04
9745 //==============================================================================
9747 extern __at(0x0893) __sfr AT1CC2;
9749 //==============================================================================
9750 // AT1CC2L Bits
9752 extern __at(0x0893) __sfr AT1CC2L;
9754 typedef union
9756 struct
9758 unsigned AT1CC20 : 1;
9759 unsigned AT1CC21 : 1;
9760 unsigned AT1CC22 : 1;
9761 unsigned AT1CC23 : 1;
9762 unsigned AT1CC24 : 1;
9763 unsigned AT1CC25 : 1;
9764 unsigned AT1CC26 : 1;
9765 unsigned AT1CC27 : 1;
9768 struct
9770 unsigned CC20 : 1;
9771 unsigned CC21 : 1;
9772 unsigned CC22 : 1;
9773 unsigned CC13 : 1;
9774 unsigned CC24 : 1;
9775 unsigned CCW5 : 1;
9776 unsigned CC26 : 1;
9777 unsigned CC27 : 1;
9779 } __AT1CC2Lbits_t;
9781 extern __at(0x0893) volatile __AT1CC2Lbits_t AT1CC2Lbits;
9783 #define _AT1CC2L_AT1CC20 0x01
9784 #define _AT1CC2L_CC20 0x01
9785 #define _AT1CC2L_AT1CC21 0x02
9786 #define _AT1CC2L_CC21 0x02
9787 #define _AT1CC2L_AT1CC22 0x04
9788 #define _AT1CC2L_CC22 0x04
9789 #define _AT1CC2L_AT1CC23 0x08
9790 #define _AT1CC2L_CC13 0x08
9791 #define _AT1CC2L_AT1CC24 0x10
9792 #define _AT1CC2L_CC24 0x10
9793 #define _AT1CC2L_AT1CC25 0x20
9794 #define _AT1CC2L_CCW5 0x20
9795 #define _AT1CC2L_AT1CC26 0x40
9796 #define _AT1CC2L_CC26 0x40
9797 #define _AT1CC2L_AT1CC27 0x80
9798 #define _AT1CC2L_CC27 0x80
9800 //==============================================================================
9803 //==============================================================================
9804 // AT1CC2H Bits
9806 extern __at(0x0894) __sfr AT1CC2H;
9808 typedef union
9810 struct
9812 unsigned AT1CC28 : 1;
9813 unsigned AT1CC29 : 1;
9814 unsigned : 1;
9815 unsigned : 1;
9816 unsigned : 1;
9817 unsigned : 1;
9818 unsigned : 1;
9819 unsigned : 1;
9822 struct
9824 unsigned CC28 : 1;
9825 unsigned CC29 : 1;
9826 unsigned : 1;
9827 unsigned : 1;
9828 unsigned : 1;
9829 unsigned : 1;
9830 unsigned : 1;
9831 unsigned : 1;
9833 } __AT1CC2Hbits_t;
9835 extern __at(0x0894) volatile __AT1CC2Hbits_t AT1CC2Hbits;
9837 #define _AT1CC28 0x01
9838 #define _CC28 0x01
9839 #define _AT1CC29 0x02
9840 #define _CC29 0x02
9842 //==============================================================================
9845 //==============================================================================
9846 // AT1CCON2 Bits
9848 extern __at(0x0895) __sfr AT1CCON2;
9850 typedef union
9852 struct
9854 unsigned AT1CC2MODE : 1;
9855 unsigned : 1;
9856 unsigned : 1;
9857 unsigned AT1CAP2P : 1;
9858 unsigned AT1CC2POL : 1;
9859 unsigned : 1;
9860 unsigned : 1;
9861 unsigned AT1CC2EN : 1;
9864 struct
9866 unsigned CC2MODE : 1;
9867 unsigned : 1;
9868 unsigned : 1;
9869 unsigned CAP2P : 1;
9870 unsigned CC2POL : 1;
9871 unsigned : 1;
9872 unsigned : 1;
9873 unsigned CC2EN : 1;
9875 } __AT1CCON2bits_t;
9877 extern __at(0x0895) volatile __AT1CCON2bits_t AT1CCON2bits;
9879 #define _AT1CC2MODE 0x01
9880 #define _CC2MODE 0x01
9881 #define _AT1CAP2P 0x08
9882 #define _CAP2P 0x08
9883 #define _AT1CC2POL 0x10
9884 #define _CC2POL 0x10
9885 #define _AT1CC2EN 0x80
9886 #define _CC2EN 0x80
9888 //==============================================================================
9891 //==============================================================================
9892 // AT1CSEL3 Bits
9894 extern __at(0x0896) __sfr AT1CSEL3;
9896 typedef union
9898 struct
9900 unsigned AT1CP3S0 : 1;
9901 unsigned AT1CP3S1 : 1;
9902 unsigned AT1CP3S2 : 1;
9903 unsigned : 1;
9904 unsigned : 1;
9905 unsigned : 1;
9906 unsigned : 1;
9907 unsigned : 1;
9910 struct
9912 unsigned CP3S0 : 1;
9913 unsigned CP3S1 : 1;
9914 unsigned CP3S2 : 1;
9915 unsigned : 1;
9916 unsigned : 1;
9917 unsigned : 1;
9918 unsigned : 1;
9919 unsigned : 1;
9922 struct
9924 unsigned AT1CP3S : 3;
9925 unsigned : 5;
9928 struct
9930 unsigned CP3S : 3;
9931 unsigned : 5;
9933 } __AT1CSEL3bits_t;
9935 extern __at(0x0896) volatile __AT1CSEL3bits_t AT1CSEL3bits;
9937 #define _AT1CP3S0 0x01
9938 #define _CP3S0 0x01
9939 #define _AT1CP3S1 0x02
9940 #define _CP3S1 0x02
9941 #define _AT1CP3S2 0x04
9942 #define _CP3S2 0x04
9944 //==============================================================================
9946 extern __at(0x0897) __sfr AT1CC3;
9948 //==============================================================================
9949 // AT1CC3L Bits
9951 extern __at(0x0897) __sfr AT1CC3L;
9953 typedef union
9955 struct
9957 unsigned AT1CC30 : 1;
9958 unsigned AT1CC31 : 1;
9959 unsigned AT1CC32 : 1;
9960 unsigned AT1CC33 : 1;
9961 unsigned AT1CC34 : 1;
9962 unsigned AT1CC35 : 1;
9963 unsigned AT1CC36 : 1;
9964 unsigned AT1CC37 : 1;
9967 struct
9969 unsigned CC30 : 1;
9970 unsigned CC31 : 1;
9971 unsigned CC32 : 1;
9972 unsigned CC33 : 1;
9973 unsigned CC34 : 1;
9974 unsigned CC35 : 1;
9975 unsigned CC36 : 1;
9976 unsigned CC37 : 1;
9978 } __AT1CC3Lbits_t;
9980 extern __at(0x0897) volatile __AT1CC3Lbits_t AT1CC3Lbits;
9982 #define _AT1CC30 0x01
9983 #define _CC30 0x01
9984 #define _AT1CC31 0x02
9985 #define _CC31 0x02
9986 #define _AT1CC32 0x04
9987 #define _CC32 0x04
9988 #define _AT1CC33 0x08
9989 #define _CC33 0x08
9990 #define _AT1CC34 0x10
9991 #define _CC34 0x10
9992 #define _AT1CC35 0x20
9993 #define _CC35 0x20
9994 #define _AT1CC36 0x40
9995 #define _CC36 0x40
9996 #define _AT1CC37 0x80
9997 #define _CC37 0x80
9999 //==============================================================================
10002 //==============================================================================
10003 // AT1CC3H Bits
10005 extern __at(0x0898) __sfr AT1CC3H;
10007 typedef union
10009 struct
10011 unsigned AT1CC38 : 1;
10012 unsigned AT1CC39 : 1;
10013 unsigned : 1;
10014 unsigned : 1;
10015 unsigned : 1;
10016 unsigned : 1;
10017 unsigned : 1;
10018 unsigned : 1;
10021 struct
10023 unsigned CC38 : 1;
10024 unsigned CC39 : 1;
10025 unsigned : 1;
10026 unsigned : 1;
10027 unsigned : 1;
10028 unsigned : 1;
10029 unsigned : 1;
10030 unsigned : 1;
10032 } __AT1CC3Hbits_t;
10034 extern __at(0x0898) volatile __AT1CC3Hbits_t AT1CC3Hbits;
10036 #define _AT1CC38 0x01
10037 #define _CC38 0x01
10038 #define _AT1CC39 0x02
10039 #define _CC39 0x02
10041 //==============================================================================
10044 //==============================================================================
10045 // AT1CCON3 Bits
10047 extern __at(0x0899) __sfr AT1CCON3;
10049 typedef union
10051 struct
10053 unsigned AT1CC3MODE : 1;
10054 unsigned : 1;
10055 unsigned : 1;
10056 unsigned AT1CAP3P : 1;
10057 unsigned AT1CC3POL : 1;
10058 unsigned : 1;
10059 unsigned : 1;
10060 unsigned AT1CC3EN : 1;
10063 struct
10065 unsigned CC3MODE : 1;
10066 unsigned : 1;
10067 unsigned : 1;
10068 unsigned CAP3P : 1;
10069 unsigned CC3POL : 1;
10070 unsigned : 1;
10071 unsigned : 1;
10072 unsigned CC3EN : 1;
10074 } __AT1CCON3bits_t;
10076 extern __at(0x0899) volatile __AT1CCON3bits_t AT1CCON3bits;
10078 #define _AT1CC3MODE 0x01
10079 #define _CC3MODE 0x01
10080 #define _AT1CAP3P 0x08
10081 #define _CAP3P 0x08
10082 #define _AT1CC3POL 0x10
10083 #define _CC3POL 0x10
10084 #define _AT1CC3EN 0x80
10085 #define _CC3EN 0x80
10087 //==============================================================================
10089 extern __at(0x0D8C) __sfr SMT1TMR;
10091 //==============================================================================
10092 // SMT1TMRL Bits
10094 extern __at(0x0D8C) __sfr SMT1TMRL;
10096 typedef struct
10098 unsigned SMT1TMR0 : 1;
10099 unsigned SMT1TMR1 : 1;
10100 unsigned SMT1TMR2 : 1;
10101 unsigned SMT1TMR3 : 1;
10102 unsigned SMT1TMR4 : 1;
10103 unsigned SMT1TMR5 : 1;
10104 unsigned SMT1TMR6 : 1;
10105 unsigned SMT1TMR7 : 1;
10106 } __SMT1TMRLbits_t;
10108 extern __at(0x0D8C) volatile __SMT1TMRLbits_t SMT1TMRLbits;
10110 #define _SMT1TMR0 0x01
10111 #define _SMT1TMR1 0x02
10112 #define _SMT1TMR2 0x04
10113 #define _SMT1TMR3 0x08
10114 #define _SMT1TMR4 0x10
10115 #define _SMT1TMR5 0x20
10116 #define _SMT1TMR6 0x40
10117 #define _SMT1TMR7 0x80
10119 //==============================================================================
10122 //==============================================================================
10123 // SMT1TMRH Bits
10125 extern __at(0x0D8D) __sfr SMT1TMRH;
10127 typedef struct
10129 unsigned SMT1TMR8 : 1;
10130 unsigned SMT1TMR9 : 1;
10131 unsigned SMT1TMR10 : 1;
10132 unsigned SMT1TMR11 : 1;
10133 unsigned SMT1TMR12 : 1;
10134 unsigned SMT1TMR13 : 1;
10135 unsigned SMT1TMR14 : 1;
10136 unsigned SMT1TMR15 : 1;
10137 } __SMT1TMRHbits_t;
10139 extern __at(0x0D8D) volatile __SMT1TMRHbits_t SMT1TMRHbits;
10141 #define _SMT1TMR8 0x01
10142 #define _SMT1TMR9 0x02
10143 #define _SMT1TMR10 0x04
10144 #define _SMT1TMR11 0x08
10145 #define _SMT1TMR12 0x10
10146 #define _SMT1TMR13 0x20
10147 #define _SMT1TMR14 0x40
10148 #define _SMT1TMR15 0x80
10150 //==============================================================================
10153 //==============================================================================
10154 // SMT1TMRU Bits
10156 extern __at(0x0D8E) __sfr SMT1TMRU;
10158 typedef struct
10160 unsigned SMT1TMR16 : 1;
10161 unsigned SMT1TMR17 : 1;
10162 unsigned SMT1TMR18 : 1;
10163 unsigned SMT1TMR19 : 1;
10164 unsigned SMT1TMR20 : 1;
10165 unsigned SMT1TMR21 : 1;
10166 unsigned SMT1TMR22 : 1;
10167 unsigned SMT1TMR23 : 1;
10168 } __SMT1TMRUbits_t;
10170 extern __at(0x0D8E) volatile __SMT1TMRUbits_t SMT1TMRUbits;
10172 #define _SMT1TMR16 0x01
10173 #define _SMT1TMR17 0x02
10174 #define _SMT1TMR18 0x04
10175 #define _SMT1TMR19 0x08
10176 #define _SMT1TMR20 0x10
10177 #define _SMT1TMR21 0x20
10178 #define _SMT1TMR22 0x40
10179 #define _SMT1TMR23 0x80
10181 //==============================================================================
10183 extern __at(0x0D8F) __sfr SMT1CPR;
10185 //==============================================================================
10186 // SMT1CPRL Bits
10188 extern __at(0x0D8F) __sfr SMT1CPRL;
10190 typedef struct
10192 unsigned SMT1CPR0 : 1;
10193 unsigned SMT1CPR1 : 1;
10194 unsigned SMT1CPR2 : 1;
10195 unsigned SMT1CPR3 : 1;
10196 unsigned SMT1CPR4 : 1;
10197 unsigned SMT1CPR5 : 1;
10198 unsigned SMT1CPR6 : 1;
10199 unsigned SMT1CPR7 : 1;
10200 } __SMT1CPRLbits_t;
10202 extern __at(0x0D8F) volatile __SMT1CPRLbits_t SMT1CPRLbits;
10204 #define _SMT1CPR0 0x01
10205 #define _SMT1CPR1 0x02
10206 #define _SMT1CPR2 0x04
10207 #define _SMT1CPR3 0x08
10208 #define _SMT1CPR4 0x10
10209 #define _SMT1CPR5 0x20
10210 #define _SMT1CPR6 0x40
10211 #define _SMT1CPR7 0x80
10213 //==============================================================================
10216 //==============================================================================
10217 // SMT1CPRH Bits
10219 extern __at(0x0D90) __sfr SMT1CPRH;
10221 typedef struct
10223 unsigned SMT1CPR8 : 1;
10224 unsigned SMT1CPR9 : 1;
10225 unsigned SMT1CPR10 : 1;
10226 unsigned SMT1CPR11 : 1;
10227 unsigned SMT1CPR12 : 1;
10228 unsigned SMT1CPR13 : 1;
10229 unsigned SMT1CPR14 : 1;
10230 unsigned SMT1CPR15 : 1;
10231 } __SMT1CPRHbits_t;
10233 extern __at(0x0D90) volatile __SMT1CPRHbits_t SMT1CPRHbits;
10235 #define _SMT1CPR8 0x01
10236 #define _SMT1CPR9 0x02
10237 #define _SMT1CPR10 0x04
10238 #define _SMT1CPR11 0x08
10239 #define _SMT1CPR12 0x10
10240 #define _SMT1CPR13 0x20
10241 #define _SMT1CPR14 0x40
10242 #define _SMT1CPR15 0x80
10244 //==============================================================================
10247 //==============================================================================
10248 // SMT1CPRU Bits
10250 extern __at(0x0D91) __sfr SMT1CPRU;
10252 typedef struct
10254 unsigned SMT1CPR16 : 1;
10255 unsigned SMT1CPR17 : 1;
10256 unsigned SMT1CPR18 : 1;
10257 unsigned SMT1CPR19 : 1;
10258 unsigned SMT1CPR20 : 1;
10259 unsigned SMT1CPR21 : 1;
10260 unsigned SMT1CPR22 : 1;
10261 unsigned SMT1CPR23 : 1;
10262 } __SMT1CPRUbits_t;
10264 extern __at(0x0D91) volatile __SMT1CPRUbits_t SMT1CPRUbits;
10266 #define _SMT1CPR16 0x01
10267 #define _SMT1CPR17 0x02
10268 #define _SMT1CPR18 0x04
10269 #define _SMT1CPR19 0x08
10270 #define _SMT1CPR20 0x10
10271 #define _SMT1CPR21 0x20
10272 #define _SMT1CPR22 0x40
10273 #define _SMT1CPR23 0x80
10275 //==============================================================================
10277 extern __at(0x0D92) __sfr SMT1CPW;
10279 //==============================================================================
10280 // SMT1CPWL Bits
10282 extern __at(0x0D92) __sfr SMT1CPWL;
10284 typedef struct
10286 unsigned SMT1CPW0 : 1;
10287 unsigned SMT1CPW1 : 1;
10288 unsigned SMT1CPW2 : 1;
10289 unsigned SMT1CPW3 : 1;
10290 unsigned SMT1CPW4 : 1;
10291 unsigned SMT1CPW5 : 1;
10292 unsigned SMT1CPW6 : 1;
10293 unsigned SMT1CPW7 : 1;
10294 } __SMT1CPWLbits_t;
10296 extern __at(0x0D92) volatile __SMT1CPWLbits_t SMT1CPWLbits;
10298 #define _SMT1CPW0 0x01
10299 #define _SMT1CPW1 0x02
10300 #define _SMT1CPW2 0x04
10301 #define _SMT1CPW3 0x08
10302 #define _SMT1CPW4 0x10
10303 #define _SMT1CPW5 0x20
10304 #define _SMT1CPW6 0x40
10305 #define _SMT1CPW7 0x80
10307 //==============================================================================
10310 //==============================================================================
10311 // SMT1CPWH Bits
10313 extern __at(0x0D93) __sfr SMT1CPWH;
10315 typedef struct
10317 unsigned SMT1CPW8 : 1;
10318 unsigned SMT1CPW9 : 1;
10319 unsigned SMT1CPW10 : 1;
10320 unsigned SMT1CPW11 : 1;
10321 unsigned SMT1CPW12 : 1;
10322 unsigned SMT1CPW13 : 1;
10323 unsigned SMT1CPW14 : 1;
10324 unsigned SMT1CPW15 : 1;
10325 } __SMT1CPWHbits_t;
10327 extern __at(0x0D93) volatile __SMT1CPWHbits_t SMT1CPWHbits;
10329 #define _SMT1CPW8 0x01
10330 #define _SMT1CPW9 0x02
10331 #define _SMT1CPW10 0x04
10332 #define _SMT1CPW11 0x08
10333 #define _SMT1CPW12 0x10
10334 #define _SMT1CPW13 0x20
10335 #define _SMT1CPW14 0x40
10336 #define _SMT1CPW15 0x80
10338 //==============================================================================
10341 //==============================================================================
10342 // SMT1CPWU Bits
10344 extern __at(0x0D94) __sfr SMT1CPWU;
10346 typedef struct
10348 unsigned SMT1CPW16 : 1;
10349 unsigned SMT1CPW17 : 1;
10350 unsigned SMT1CPW18 : 1;
10351 unsigned SMT1CPW19 : 1;
10352 unsigned SMT1CPW20 : 1;
10353 unsigned SMT1CPW21 : 1;
10354 unsigned SMT1CPW22 : 1;
10355 unsigned SMT1CPW23 : 1;
10356 } __SMT1CPWUbits_t;
10358 extern __at(0x0D94) volatile __SMT1CPWUbits_t SMT1CPWUbits;
10360 #define _SMT1CPW16 0x01
10361 #define _SMT1CPW17 0x02
10362 #define _SMT1CPW18 0x04
10363 #define _SMT1CPW19 0x08
10364 #define _SMT1CPW20 0x10
10365 #define _SMT1CPW21 0x20
10366 #define _SMT1CPW22 0x40
10367 #define _SMT1CPW23 0x80
10369 //==============================================================================
10371 extern __at(0x0D95) __sfr SMT1PR;
10373 //==============================================================================
10374 // SMT1PRL Bits
10376 extern __at(0x0D95) __sfr SMT1PRL;
10378 typedef struct
10380 unsigned SMT1PR0 : 1;
10381 unsigned SMT1PR1 : 1;
10382 unsigned SMT1PR2 : 1;
10383 unsigned SMT1PR3 : 1;
10384 unsigned SMT1PR4 : 1;
10385 unsigned SMT1PR5 : 1;
10386 unsigned SMT1PR6 : 1;
10387 unsigned SMT1PR7 : 1;
10388 } __SMT1PRLbits_t;
10390 extern __at(0x0D95) volatile __SMT1PRLbits_t SMT1PRLbits;
10392 #define _SMT1PR0 0x01
10393 #define _SMT1PR1 0x02
10394 #define _SMT1PR2 0x04
10395 #define _SMT1PR3 0x08
10396 #define _SMT1PR4 0x10
10397 #define _SMT1PR5 0x20
10398 #define _SMT1PR6 0x40
10399 #define _SMT1PR7 0x80
10401 //==============================================================================
10404 //==============================================================================
10405 // SMT1PRH Bits
10407 extern __at(0x0D96) __sfr SMT1PRH;
10409 typedef struct
10411 unsigned SMT1PR8 : 1;
10412 unsigned SMT1PR9 : 1;
10413 unsigned SMT1PR10 : 1;
10414 unsigned SMT1PR11 : 1;
10415 unsigned SMT1PR12 : 1;
10416 unsigned SMT1PR13 : 1;
10417 unsigned SMT1PR14 : 1;
10418 unsigned SMT1PR15 : 1;
10419 } __SMT1PRHbits_t;
10421 extern __at(0x0D96) volatile __SMT1PRHbits_t SMT1PRHbits;
10423 #define _SMT1PR8 0x01
10424 #define _SMT1PR9 0x02
10425 #define _SMT1PR10 0x04
10426 #define _SMT1PR11 0x08
10427 #define _SMT1PR12 0x10
10428 #define _SMT1PR13 0x20
10429 #define _SMT1PR14 0x40
10430 #define _SMT1PR15 0x80
10432 //==============================================================================
10435 //==============================================================================
10436 // SMT1PRU Bits
10438 extern __at(0x0D97) __sfr SMT1PRU;
10440 typedef struct
10442 unsigned SMT1PR16 : 1;
10443 unsigned SMT1PR17 : 1;
10444 unsigned SMT1PR18 : 1;
10445 unsigned SMT1PR19 : 1;
10446 unsigned SMT1PR20 : 1;
10447 unsigned SMT1PR21 : 1;
10448 unsigned SMT1PR22 : 1;
10449 unsigned SMT1PR23 : 1;
10450 } __SMT1PRUbits_t;
10452 extern __at(0x0D97) volatile __SMT1PRUbits_t SMT1PRUbits;
10454 #define _SMT1PR16 0x01
10455 #define _SMT1PR17 0x02
10456 #define _SMT1PR18 0x04
10457 #define _SMT1PR19 0x08
10458 #define _SMT1PR20 0x10
10459 #define _SMT1PR21 0x20
10460 #define _SMT1PR22 0x40
10461 #define _SMT1PR23 0x80
10463 //==============================================================================
10466 //==============================================================================
10467 // SMT1CON0 Bits
10469 extern __at(0x0D98) __sfr SMT1CON0;
10471 typedef union
10473 struct
10475 unsigned SMT1PS0 : 1;
10476 unsigned SMT1PS1 : 1;
10477 unsigned CPOL : 1;
10478 unsigned SPOL : 1;
10479 unsigned WPOL : 1;
10480 unsigned STP : 1;
10481 unsigned : 1;
10482 unsigned EN : 1;
10485 struct
10487 unsigned SMT1PS : 2;
10488 unsigned : 6;
10490 } __SMT1CON0bits_t;
10492 extern __at(0x0D98) volatile __SMT1CON0bits_t SMT1CON0bits;
10494 #define _SMT1CON0_SMT1PS0 0x01
10495 #define _SMT1CON0_SMT1PS1 0x02
10496 #define _SMT1CON0_CPOL 0x04
10497 #define _SMT1CON0_SPOL 0x08
10498 #define _SMT1CON0_WPOL 0x10
10499 #define _SMT1CON0_STP 0x20
10500 #define _SMT1CON0_EN 0x80
10502 //==============================================================================
10505 //==============================================================================
10506 // SMT1CON1 Bits
10508 extern __at(0x0D99) __sfr SMT1CON1;
10510 typedef union
10512 struct
10514 unsigned MODE0 : 1;
10515 unsigned MODE1 : 1;
10516 unsigned MODE2 : 1;
10517 unsigned MODE3 : 1;
10518 unsigned : 1;
10519 unsigned : 1;
10520 unsigned REPEAT : 1;
10521 unsigned SMT1GO : 1;
10524 struct
10526 unsigned SMT1MODE0 : 1;
10527 unsigned SMT1MODE1 : 1;
10528 unsigned SMT1MODE2 : 1;
10529 unsigned SMT1MODE3 : 1;
10530 unsigned : 1;
10531 unsigned : 1;
10532 unsigned SMT1REPEAT : 1;
10533 unsigned : 1;
10536 struct
10538 unsigned SMT1MODE : 4;
10539 unsigned : 4;
10542 struct
10544 unsigned MODE : 4;
10545 unsigned : 4;
10547 } __SMT1CON1bits_t;
10549 extern __at(0x0D99) volatile __SMT1CON1bits_t SMT1CON1bits;
10551 #define _SMT1CON1_MODE0 0x01
10552 #define _SMT1CON1_SMT1MODE0 0x01
10553 #define _SMT1CON1_MODE1 0x02
10554 #define _SMT1CON1_SMT1MODE1 0x02
10555 #define _SMT1CON1_MODE2 0x04
10556 #define _SMT1CON1_SMT1MODE2 0x04
10557 #define _SMT1CON1_MODE3 0x08
10558 #define _SMT1CON1_SMT1MODE3 0x08
10559 #define _SMT1CON1_REPEAT 0x40
10560 #define _SMT1CON1_SMT1REPEAT 0x40
10561 #define _SMT1CON1_SMT1GO 0x80
10563 //==============================================================================
10566 //==============================================================================
10567 // SMT1STAT Bits
10569 extern __at(0x0D9A) __sfr SMT1STAT;
10571 typedef union
10573 struct
10575 unsigned AS : 1;
10576 unsigned WS : 1;
10577 unsigned TS : 1;
10578 unsigned : 1;
10579 unsigned : 1;
10580 unsigned RST : 1;
10581 unsigned CPWUP : 1;
10582 unsigned CPRUP : 1;
10585 struct
10587 unsigned SMT1AS : 1;
10588 unsigned SMT1WS : 1;
10589 unsigned SMT1TS : 1;
10590 unsigned : 1;
10591 unsigned : 1;
10592 unsigned SMT1RESET : 1;
10593 unsigned SMT1CPWUP : 1;
10594 unsigned SMT1CPRUP : 1;
10596 } __SMT1STATbits_t;
10598 extern __at(0x0D9A) volatile __SMT1STATbits_t SMT1STATbits;
10600 #define _AS 0x01
10601 #define _SMT1AS 0x01
10602 #define _WS 0x02
10603 #define _SMT1WS 0x02
10604 #define _TS 0x04
10605 #define _SMT1TS 0x04
10606 #define _RST 0x20
10607 #define _SMT1RESET 0x20
10608 #define _CPWUP 0x40
10609 #define _SMT1CPWUP 0x40
10610 #define _CPRUP 0x80
10611 #define _SMT1CPRUP 0x80
10613 //==============================================================================
10616 //==============================================================================
10617 // SMT1CLK Bits
10619 extern __at(0x0D9B) __sfr SMT1CLK;
10621 typedef union
10623 struct
10625 unsigned CSEL0 : 1;
10626 unsigned CSEL1 : 1;
10627 unsigned CSEL2 : 1;
10628 unsigned : 1;
10629 unsigned : 1;
10630 unsigned : 1;
10631 unsigned : 1;
10632 unsigned : 1;
10635 struct
10637 unsigned SMT1CSEL0 : 1;
10638 unsigned SMT1CSEL1 : 1;
10639 unsigned SMT1CSEL2 : 1;
10640 unsigned : 1;
10641 unsigned : 1;
10642 unsigned : 1;
10643 unsigned : 1;
10644 unsigned : 1;
10647 struct
10649 unsigned CSEL : 3;
10650 unsigned : 5;
10653 struct
10655 unsigned SMT1CSEL : 3;
10656 unsigned : 5;
10658 } __SMT1CLKbits_t;
10660 extern __at(0x0D9B) volatile __SMT1CLKbits_t SMT1CLKbits;
10662 #define _CSEL0 0x01
10663 #define _SMT1CSEL0 0x01
10664 #define _CSEL1 0x02
10665 #define _SMT1CSEL1 0x02
10666 #define _CSEL2 0x04
10667 #define _SMT1CSEL2 0x04
10669 //==============================================================================
10672 //==============================================================================
10673 // SMT1SIG Bits
10675 extern __at(0x0D9C) __sfr SMT1SIG;
10677 typedef union
10679 struct
10681 unsigned SSEL0 : 1;
10682 unsigned SSEL1 : 1;
10683 unsigned SSEL2 : 1;
10684 unsigned SSEL3 : 1;
10685 unsigned SSEL4 : 1;
10686 unsigned : 1;
10687 unsigned : 1;
10688 unsigned : 1;
10691 struct
10693 unsigned SMT1SSEL0 : 1;
10694 unsigned SMT1SSEL1 : 1;
10695 unsigned SMT1SSEL2 : 1;
10696 unsigned SMT1SSEL3 : 1;
10697 unsigned SMT1SSEL4 : 1;
10698 unsigned : 1;
10699 unsigned : 1;
10700 unsigned : 1;
10703 struct
10705 unsigned SMT1SSEL : 5;
10706 unsigned : 3;
10709 struct
10711 unsigned SSEL : 5;
10712 unsigned : 3;
10714 } __SMT1SIGbits_t;
10716 extern __at(0x0D9C) volatile __SMT1SIGbits_t SMT1SIGbits;
10718 #define _SMT1SIG_SSEL0 0x01
10719 #define _SMT1SIG_SMT1SSEL0 0x01
10720 #define _SMT1SIG_SSEL1 0x02
10721 #define _SMT1SIG_SMT1SSEL1 0x02
10722 #define _SMT1SIG_SSEL2 0x04
10723 #define _SMT1SIG_SMT1SSEL2 0x04
10724 #define _SMT1SIG_SSEL3 0x08
10725 #define _SMT1SIG_SMT1SSEL3 0x08
10726 #define _SMT1SIG_SSEL4 0x10
10727 #define _SMT1SIG_SMT1SSEL4 0x10
10729 //==============================================================================
10732 //==============================================================================
10733 // SMT1WIN Bits
10735 extern __at(0x0D9D) __sfr SMT1WIN;
10737 typedef union
10739 struct
10741 unsigned WSEL0 : 1;
10742 unsigned WSEL1 : 1;
10743 unsigned WSEL2 : 1;
10744 unsigned WSEL3 : 1;
10745 unsigned WSEL4 : 1;
10746 unsigned : 1;
10747 unsigned : 1;
10748 unsigned : 1;
10751 struct
10753 unsigned SMT1WSEL0 : 1;
10754 unsigned SMT1WSEL1 : 1;
10755 unsigned SMT1WSEL2 : 1;
10756 unsigned SMT1WSEL3 : 1;
10757 unsigned SMT1WSEL4 : 1;
10758 unsigned : 1;
10759 unsigned : 1;
10760 unsigned : 1;
10763 struct
10765 unsigned SMT1WSEL : 5;
10766 unsigned : 3;
10769 struct
10771 unsigned WSEL : 5;
10772 unsigned : 3;
10774 } __SMT1WINbits_t;
10776 extern __at(0x0D9D) volatile __SMT1WINbits_t SMT1WINbits;
10778 #define _WSEL0 0x01
10779 #define _SMT1WSEL0 0x01
10780 #define _WSEL1 0x02
10781 #define _SMT1WSEL1 0x02
10782 #define _WSEL2 0x04
10783 #define _SMT1WSEL2 0x04
10784 #define _WSEL3 0x08
10785 #define _SMT1WSEL3 0x08
10786 #define _WSEL4 0x10
10787 #define _SMT1WSEL4 0x10
10789 //==============================================================================
10791 extern __at(0x0D9E) __sfr SMT2TMR;
10793 //==============================================================================
10794 // SMT2TMRL Bits
10796 extern __at(0x0D9E) __sfr SMT2TMRL;
10798 typedef struct
10800 unsigned SMT2TMR0 : 1;
10801 unsigned SMT2TMR1 : 1;
10802 unsigned SMT2TMR2 : 1;
10803 unsigned SMT2TMR3 : 1;
10804 unsigned SMT2TMR4 : 1;
10805 unsigned SMT2TMR5 : 1;
10806 unsigned SMT2TMR6 : 1;
10807 unsigned SMT2TMR7 : 1;
10808 } __SMT2TMRLbits_t;
10810 extern __at(0x0D9E) volatile __SMT2TMRLbits_t SMT2TMRLbits;
10812 #define _SMT2TMR0 0x01
10813 #define _SMT2TMR1 0x02
10814 #define _SMT2TMR2 0x04
10815 #define _SMT2TMR3 0x08
10816 #define _SMT2TMR4 0x10
10817 #define _SMT2TMR5 0x20
10818 #define _SMT2TMR6 0x40
10819 #define _SMT2TMR7 0x80
10821 //==============================================================================
10824 //==============================================================================
10825 // SMT2TMRH Bits
10827 extern __at(0x0D9F) __sfr SMT2TMRH;
10829 typedef struct
10831 unsigned SMT2TMR8 : 1;
10832 unsigned SMT2TMR9 : 1;
10833 unsigned SMT2TMR10 : 1;
10834 unsigned SMT2TMR11 : 1;
10835 unsigned SMT2TMR12 : 1;
10836 unsigned SMT2TMR13 : 1;
10837 unsigned SMT2TMR14 : 1;
10838 unsigned SMT2TMR15 : 1;
10839 } __SMT2TMRHbits_t;
10841 extern __at(0x0D9F) volatile __SMT2TMRHbits_t SMT2TMRHbits;
10843 #define _SMT2TMR8 0x01
10844 #define _SMT2TMR9 0x02
10845 #define _SMT2TMR10 0x04
10846 #define _SMT2TMR11 0x08
10847 #define _SMT2TMR12 0x10
10848 #define _SMT2TMR13 0x20
10849 #define _SMT2TMR14 0x40
10850 #define _SMT2TMR15 0x80
10852 //==============================================================================
10855 //==============================================================================
10856 // SMT2TMRU Bits
10858 extern __at(0x0DA0) __sfr SMT2TMRU;
10860 typedef struct
10862 unsigned SMT2TMR16 : 1;
10863 unsigned SMT2TMR17 : 1;
10864 unsigned SMT2TMR18 : 1;
10865 unsigned SMT2TMR19 : 1;
10866 unsigned SMT2TMR20 : 1;
10867 unsigned SMT2TMR21 : 1;
10868 unsigned SMT2TMR22 : 1;
10869 unsigned SMT2TMR23 : 1;
10870 } __SMT2TMRUbits_t;
10872 extern __at(0x0DA0) volatile __SMT2TMRUbits_t SMT2TMRUbits;
10874 #define _SMT2TMR16 0x01
10875 #define _SMT2TMR17 0x02
10876 #define _SMT2TMR18 0x04
10877 #define _SMT2TMR19 0x08
10878 #define _SMT2TMR20 0x10
10879 #define _SMT2TMR21 0x20
10880 #define _SMT2TMR22 0x40
10881 #define _SMT2TMR23 0x80
10883 //==============================================================================
10885 extern __at(0x0DA1) __sfr SMT2CPR;
10887 //==============================================================================
10888 // SMT2CPRL Bits
10890 extern __at(0x0DA1) __sfr SMT2CPRL;
10892 typedef struct
10894 unsigned SMT2CPR0 : 1;
10895 unsigned SMT2CPR1 : 1;
10896 unsigned SMT2CPR2 : 1;
10897 unsigned SMT2CPR3 : 1;
10898 unsigned SMT2CPR4 : 1;
10899 unsigned SMT2CPR5 : 1;
10900 unsigned SMT2CPR6 : 1;
10901 unsigned SMT2CPR7 : 1;
10902 } __SMT2CPRLbits_t;
10904 extern __at(0x0DA1) volatile __SMT2CPRLbits_t SMT2CPRLbits;
10906 #define _SMT2CPR0 0x01
10907 #define _SMT2CPR1 0x02
10908 #define _SMT2CPR2 0x04
10909 #define _SMT2CPR3 0x08
10910 #define _SMT2CPR4 0x10
10911 #define _SMT2CPR5 0x20
10912 #define _SMT2CPR6 0x40
10913 #define _SMT2CPR7 0x80
10915 //==============================================================================
10918 //==============================================================================
10919 // SMT2CPRH Bits
10921 extern __at(0x0DA2) __sfr SMT2CPRH;
10923 typedef struct
10925 unsigned SMT2CPR8 : 1;
10926 unsigned SMT2CPR9 : 1;
10927 unsigned SMT2CPR10 : 1;
10928 unsigned SMT2CPR11 : 1;
10929 unsigned SMT2CPR12 : 1;
10930 unsigned SMT2CPR13 : 1;
10931 unsigned SMT2CPR14 : 1;
10932 unsigned SMT2CPR15 : 1;
10933 } __SMT2CPRHbits_t;
10935 extern __at(0x0DA2) volatile __SMT2CPRHbits_t SMT2CPRHbits;
10937 #define _SMT2CPR8 0x01
10938 #define _SMT2CPR9 0x02
10939 #define _SMT2CPR10 0x04
10940 #define _SMT2CPR11 0x08
10941 #define _SMT2CPR12 0x10
10942 #define _SMT2CPR13 0x20
10943 #define _SMT2CPR14 0x40
10944 #define _SMT2CPR15 0x80
10946 //==============================================================================
10949 //==============================================================================
10950 // SMT2CPRU Bits
10952 extern __at(0x0DA3) __sfr SMT2CPRU;
10954 typedef struct
10956 unsigned SMT2CPR16 : 1;
10957 unsigned SMT2CPR17 : 1;
10958 unsigned SMT2CPR18 : 1;
10959 unsigned SMT2CPR19 : 1;
10960 unsigned SMT2CPR20 : 1;
10961 unsigned SMT2CPR21 : 1;
10962 unsigned SMT2CPR22 : 1;
10963 unsigned SMT2CPR23 : 1;
10964 } __SMT2CPRUbits_t;
10966 extern __at(0x0DA3) volatile __SMT2CPRUbits_t SMT2CPRUbits;
10968 #define _SMT2CPR16 0x01
10969 #define _SMT2CPR17 0x02
10970 #define _SMT2CPR18 0x04
10971 #define _SMT2CPR19 0x08
10972 #define _SMT2CPR20 0x10
10973 #define _SMT2CPR21 0x20
10974 #define _SMT2CPR22 0x40
10975 #define _SMT2CPR23 0x80
10977 //==============================================================================
10979 extern __at(0x0DA4) __sfr SMT2CPW;
10981 //==============================================================================
10982 // SMT2CPWL Bits
10984 extern __at(0x0DA4) __sfr SMT2CPWL;
10986 typedef struct
10988 unsigned SMT2CPW0 : 1;
10989 unsigned SMT2CPW1 : 1;
10990 unsigned SMT2CPW2 : 1;
10991 unsigned SMT2CPW3 : 1;
10992 unsigned SMT2CPW4 : 1;
10993 unsigned SMT2CPW5 : 1;
10994 unsigned SMT2CPW6 : 1;
10995 unsigned SMT2CPW7 : 1;
10996 } __SMT2CPWLbits_t;
10998 extern __at(0x0DA4) volatile __SMT2CPWLbits_t SMT2CPWLbits;
11000 #define _SMT2CPW0 0x01
11001 #define _SMT2CPW1 0x02
11002 #define _SMT2CPW2 0x04
11003 #define _SMT2CPW3 0x08
11004 #define _SMT2CPW4 0x10
11005 #define _SMT2CPW5 0x20
11006 #define _SMT2CPW6 0x40
11007 #define _SMT2CPW7 0x80
11009 //==============================================================================
11012 //==============================================================================
11013 // SMT2CPWH Bits
11015 extern __at(0x0DA5) __sfr SMT2CPWH;
11017 typedef struct
11019 unsigned SMT2CPW8 : 1;
11020 unsigned SMT2CPW9 : 1;
11021 unsigned SMT2CPW10 : 1;
11022 unsigned SMT2CPW11 : 1;
11023 unsigned SMT2CPW12 : 1;
11024 unsigned SMT2CPW13 : 1;
11025 unsigned SMT2CPW14 : 1;
11026 unsigned SMT2CPW15 : 1;
11027 } __SMT2CPWHbits_t;
11029 extern __at(0x0DA5) volatile __SMT2CPWHbits_t SMT2CPWHbits;
11031 #define _SMT2CPW8 0x01
11032 #define _SMT2CPW9 0x02
11033 #define _SMT2CPW10 0x04
11034 #define _SMT2CPW11 0x08
11035 #define _SMT2CPW12 0x10
11036 #define _SMT2CPW13 0x20
11037 #define _SMT2CPW14 0x40
11038 #define _SMT2CPW15 0x80
11040 //==============================================================================
11043 //==============================================================================
11044 // SMT2CPWU Bits
11046 extern __at(0x0DA6) __sfr SMT2CPWU;
11048 typedef struct
11050 unsigned SMT2CPW16 : 1;
11051 unsigned SMT2CPW17 : 1;
11052 unsigned SMT2CPW18 : 1;
11053 unsigned SMT2CPW19 : 1;
11054 unsigned SMT2CPW20 : 1;
11055 unsigned SMT2CPW21 : 1;
11056 unsigned SMT2CPW22 : 1;
11057 unsigned SMT2CPW23 : 1;
11058 } __SMT2CPWUbits_t;
11060 extern __at(0x0DA6) volatile __SMT2CPWUbits_t SMT2CPWUbits;
11062 #define _SMT2CPW16 0x01
11063 #define _SMT2CPW17 0x02
11064 #define _SMT2CPW18 0x04
11065 #define _SMT2CPW19 0x08
11066 #define _SMT2CPW20 0x10
11067 #define _SMT2CPW21 0x20
11068 #define _SMT2CPW22 0x40
11069 #define _SMT2CPW23 0x80
11071 //==============================================================================
11073 extern __at(0x0DA7) __sfr SMT2PR;
11075 //==============================================================================
11076 // SMT2PRL Bits
11078 extern __at(0x0DA7) __sfr SMT2PRL;
11080 typedef struct
11082 unsigned SMT2PR0 : 1;
11083 unsigned SMT2PR1 : 1;
11084 unsigned SMT2PR2 : 1;
11085 unsigned SMT2PR3 : 1;
11086 unsigned SMT2PR4 : 1;
11087 unsigned SMT2PR5 : 1;
11088 unsigned SMT2PR6 : 1;
11089 unsigned SMT2PR7 : 1;
11090 } __SMT2PRLbits_t;
11092 extern __at(0x0DA7) volatile __SMT2PRLbits_t SMT2PRLbits;
11094 #define _SMT2PR0 0x01
11095 #define _SMT2PR1 0x02
11096 #define _SMT2PR2 0x04
11097 #define _SMT2PR3 0x08
11098 #define _SMT2PR4 0x10
11099 #define _SMT2PR5 0x20
11100 #define _SMT2PR6 0x40
11101 #define _SMT2PR7 0x80
11103 //==============================================================================
11106 //==============================================================================
11107 // SMT2PRH Bits
11109 extern __at(0x0DA8) __sfr SMT2PRH;
11111 typedef struct
11113 unsigned SMT2PR8 : 1;
11114 unsigned SMT2PR9 : 1;
11115 unsigned SMT2PR10 : 1;
11116 unsigned SMT2PR11 : 1;
11117 unsigned SMT2PR12 : 1;
11118 unsigned SMT2PR13 : 1;
11119 unsigned SMT2PR14 : 1;
11120 unsigned SMT2PR15 : 1;
11121 } __SMT2PRHbits_t;
11123 extern __at(0x0DA8) volatile __SMT2PRHbits_t SMT2PRHbits;
11125 #define _SMT2PR8 0x01
11126 #define _SMT2PR9 0x02
11127 #define _SMT2PR10 0x04
11128 #define _SMT2PR11 0x08
11129 #define _SMT2PR12 0x10
11130 #define _SMT2PR13 0x20
11131 #define _SMT2PR14 0x40
11132 #define _SMT2PR15 0x80
11134 //==============================================================================
11137 //==============================================================================
11138 // SMT2PRU Bits
11140 extern __at(0x0DA9) __sfr SMT2PRU;
11142 typedef struct
11144 unsigned SMT2PR16 : 1;
11145 unsigned SMT2PR17 : 1;
11146 unsigned SMT2PR18 : 1;
11147 unsigned SMT2PR19 : 1;
11148 unsigned SMT2PR20 : 1;
11149 unsigned SMT2PR21 : 1;
11150 unsigned SMT2PR22 : 1;
11151 unsigned SMT2PR23 : 1;
11152 } __SMT2PRUbits_t;
11154 extern __at(0x0DA9) volatile __SMT2PRUbits_t SMT2PRUbits;
11156 #define _SMT2PR16 0x01
11157 #define _SMT2PR17 0x02
11158 #define _SMT2PR18 0x04
11159 #define _SMT2PR19 0x08
11160 #define _SMT2PR20 0x10
11161 #define _SMT2PR21 0x20
11162 #define _SMT2PR22 0x40
11163 #define _SMT2PR23 0x80
11165 //==============================================================================
11168 //==============================================================================
11169 // SMT2CON0 Bits
11171 extern __at(0x0DAA) __sfr SMT2CON0;
11173 typedef union
11175 struct
11177 unsigned SMT2PS0 : 1;
11178 unsigned SMT2PS1 : 1;
11179 unsigned CPOL : 1;
11180 unsigned SPOL : 1;
11181 unsigned WPOL : 1;
11182 unsigned STP : 1;
11183 unsigned : 1;
11184 unsigned EN : 1;
11187 struct
11189 unsigned SMT2PS : 2;
11190 unsigned : 6;
11192 } __SMT2CON0bits_t;
11194 extern __at(0x0DAA) volatile __SMT2CON0bits_t SMT2CON0bits;
11196 #define _SMT2CON0_SMT2PS0 0x01
11197 #define _SMT2CON0_SMT2PS1 0x02
11198 #define _SMT2CON0_CPOL 0x04
11199 #define _SMT2CON0_SPOL 0x08
11200 #define _SMT2CON0_WPOL 0x10
11201 #define _SMT2CON0_STP 0x20
11202 #define _SMT2CON0_EN 0x80
11204 //==============================================================================
11207 //==============================================================================
11208 // SMT2CON1 Bits
11210 extern __at(0x0DAB) __sfr SMT2CON1;
11212 typedef union
11214 struct
11216 unsigned MODE0 : 1;
11217 unsigned MODE1 : 1;
11218 unsigned MODE2 : 1;
11219 unsigned MODE3 : 1;
11220 unsigned : 1;
11221 unsigned : 1;
11222 unsigned REPEAT : 1;
11223 unsigned SMT2GO : 1;
11226 struct
11228 unsigned SMT2MODE0 : 1;
11229 unsigned SMT2MODE1 : 1;
11230 unsigned SMT2MODE2 : 1;
11231 unsigned SMT2MODE3 : 1;
11232 unsigned : 1;
11233 unsigned : 1;
11234 unsigned SMT2REPEAT : 1;
11235 unsigned : 1;
11238 struct
11240 unsigned SMT2MODE : 4;
11241 unsigned : 4;
11244 struct
11246 unsigned MODE : 4;
11247 unsigned : 4;
11249 } __SMT2CON1bits_t;
11251 extern __at(0x0DAB) volatile __SMT2CON1bits_t SMT2CON1bits;
11253 #define _SMT2CON1_MODE0 0x01
11254 #define _SMT2CON1_SMT2MODE0 0x01
11255 #define _SMT2CON1_MODE1 0x02
11256 #define _SMT2CON1_SMT2MODE1 0x02
11257 #define _SMT2CON1_MODE2 0x04
11258 #define _SMT2CON1_SMT2MODE2 0x04
11259 #define _SMT2CON1_MODE3 0x08
11260 #define _SMT2CON1_SMT2MODE3 0x08
11261 #define _SMT2CON1_REPEAT 0x40
11262 #define _SMT2CON1_SMT2REPEAT 0x40
11263 #define _SMT2CON1_SMT2GO 0x80
11265 //==============================================================================
11268 //==============================================================================
11269 // SMT2STAT Bits
11271 extern __at(0x0DAC) __sfr SMT2STAT;
11273 typedef union
11275 struct
11277 unsigned AS : 1;
11278 unsigned WS : 1;
11279 unsigned TS : 1;
11280 unsigned : 1;
11281 unsigned : 1;
11282 unsigned RST : 1;
11283 unsigned CPWUP : 1;
11284 unsigned CPRUP : 1;
11287 struct
11289 unsigned SMT2AS : 1;
11290 unsigned SMT2WS : 1;
11291 unsigned SMT2TS : 1;
11292 unsigned : 1;
11293 unsigned : 1;
11294 unsigned SMT2RESET : 1;
11295 unsigned SMT2CPWUP : 1;
11296 unsigned SMT2CPRUP : 1;
11298 } __SMT2STATbits_t;
11300 extern __at(0x0DAC) volatile __SMT2STATbits_t SMT2STATbits;
11302 #define _SMT2STAT_AS 0x01
11303 #define _SMT2STAT_SMT2AS 0x01
11304 #define _SMT2STAT_WS 0x02
11305 #define _SMT2STAT_SMT2WS 0x02
11306 #define _SMT2STAT_TS 0x04
11307 #define _SMT2STAT_SMT2TS 0x04
11308 #define _SMT2STAT_RST 0x20
11309 #define _SMT2STAT_SMT2RESET 0x20
11310 #define _SMT2STAT_CPWUP 0x40
11311 #define _SMT2STAT_SMT2CPWUP 0x40
11312 #define _SMT2STAT_CPRUP 0x80
11313 #define _SMT2STAT_SMT2CPRUP 0x80
11315 //==============================================================================
11318 //==============================================================================
11319 // SMT2CLK Bits
11321 extern __at(0x0DAD) __sfr SMT2CLK;
11323 typedef union
11325 struct
11327 unsigned CSEL0 : 1;
11328 unsigned CSEL1 : 1;
11329 unsigned CSEL2 : 1;
11330 unsigned : 1;
11331 unsigned : 1;
11332 unsigned : 1;
11333 unsigned : 1;
11334 unsigned : 1;
11337 struct
11339 unsigned SMT2CSEL0 : 1;
11340 unsigned SMT2CSEL1 : 1;
11341 unsigned SMT2CSEL2 : 1;
11342 unsigned : 1;
11343 unsigned : 1;
11344 unsigned : 1;
11345 unsigned : 1;
11346 unsigned : 1;
11349 struct
11351 unsigned CSEL : 3;
11352 unsigned : 5;
11355 struct
11357 unsigned SMT2CSEL : 3;
11358 unsigned : 5;
11360 } __SMT2CLKbits_t;
11362 extern __at(0x0DAD) volatile __SMT2CLKbits_t SMT2CLKbits;
11364 #define _SMT2CLK_CSEL0 0x01
11365 #define _SMT2CLK_SMT2CSEL0 0x01
11366 #define _SMT2CLK_CSEL1 0x02
11367 #define _SMT2CLK_SMT2CSEL1 0x02
11368 #define _SMT2CLK_CSEL2 0x04
11369 #define _SMT2CLK_SMT2CSEL2 0x04
11371 //==============================================================================
11374 //==============================================================================
11375 // SMT2SIG Bits
11377 extern __at(0x0DAE) __sfr SMT2SIG;
11379 typedef union
11381 struct
11383 unsigned SSEL0 : 1;
11384 unsigned SSEL1 : 1;
11385 unsigned SSEL2 : 1;
11386 unsigned SSEL3 : 1;
11387 unsigned SSEL4 : 1;
11388 unsigned : 1;
11389 unsigned : 1;
11390 unsigned : 1;
11393 struct
11395 unsigned SMT2SSEL0 : 1;
11396 unsigned SMT2SSEL1 : 1;
11397 unsigned SMT2SSEL2 : 1;
11398 unsigned SMT2SSEL3 : 1;
11399 unsigned SMT2SSEL4 : 1;
11400 unsigned : 1;
11401 unsigned : 1;
11402 unsigned : 1;
11405 struct
11407 unsigned SSEL : 5;
11408 unsigned : 3;
11411 struct
11413 unsigned SMT2SSEL : 5;
11414 unsigned : 3;
11416 } __SMT2SIGbits_t;
11418 extern __at(0x0DAE) volatile __SMT2SIGbits_t SMT2SIGbits;
11420 #define _SMT2SIG_SSEL0 0x01
11421 #define _SMT2SIG_SMT2SSEL0 0x01
11422 #define _SMT2SIG_SSEL1 0x02
11423 #define _SMT2SIG_SMT2SSEL1 0x02
11424 #define _SMT2SIG_SSEL2 0x04
11425 #define _SMT2SIG_SMT2SSEL2 0x04
11426 #define _SMT2SIG_SSEL3 0x08
11427 #define _SMT2SIG_SMT2SSEL3 0x08
11428 #define _SMT2SIG_SSEL4 0x10
11429 #define _SMT2SIG_SMT2SSEL4 0x10
11431 //==============================================================================
11434 //==============================================================================
11435 // SMT2WIN Bits
11437 extern __at(0x0DAF) __sfr SMT2WIN;
11439 typedef union
11441 struct
11443 unsigned WSEL0 : 1;
11444 unsigned WSEL1 : 1;
11445 unsigned WSEL2 : 1;
11446 unsigned WSEL3 : 1;
11447 unsigned WSEL4 : 1;
11448 unsigned : 1;
11449 unsigned : 1;
11450 unsigned : 1;
11453 struct
11455 unsigned SMT2WSEL0 : 1;
11456 unsigned SMT2WSEL1 : 1;
11457 unsigned SMT2WSEL2 : 1;
11458 unsigned SMT2WSEL3 : 1;
11459 unsigned SMT2WSEL4 : 1;
11460 unsigned : 1;
11461 unsigned : 1;
11462 unsigned : 1;
11465 struct
11467 unsigned WSEL : 5;
11468 unsigned : 3;
11471 struct
11473 unsigned SMT2WSEL : 5;
11474 unsigned : 3;
11476 } __SMT2WINbits_t;
11478 extern __at(0x0DAF) volatile __SMT2WINbits_t SMT2WINbits;
11480 #define _SMT2WIN_WSEL0 0x01
11481 #define _SMT2WIN_SMT2WSEL0 0x01
11482 #define _SMT2WIN_WSEL1 0x02
11483 #define _SMT2WIN_SMT2WSEL1 0x02
11484 #define _SMT2WIN_WSEL2 0x04
11485 #define _SMT2WIN_SMT2WSEL2 0x04
11486 #define _SMT2WIN_WSEL3 0x08
11487 #define _SMT2WIN_SMT2WSEL3 0x08
11488 #define _SMT2WIN_WSEL4 0x10
11489 #define _SMT2WIN_SMT2WSEL4 0x10
11491 //==============================================================================
11494 //==============================================================================
11495 // PPSLOCK Bits
11497 extern __at(0x0E0F) __sfr PPSLOCK;
11499 typedef struct
11501 unsigned PPSLOCKED : 1;
11502 unsigned : 1;
11503 unsigned : 1;
11504 unsigned : 1;
11505 unsigned : 1;
11506 unsigned : 1;
11507 unsigned : 1;
11508 unsigned : 1;
11509 } __PPSLOCKbits_t;
11511 extern __at(0x0E0F) volatile __PPSLOCKbits_t PPSLOCKbits;
11513 #define _PPSLOCKED 0x01
11515 //==============================================================================
11518 //==============================================================================
11519 // INTPPS Bits
11521 extern __at(0x0E10) __sfr INTPPS;
11523 typedef union
11525 struct
11527 unsigned INTPPS0 : 1;
11528 unsigned INTPPS1 : 1;
11529 unsigned INTPPS2 : 1;
11530 unsigned INTPPS3 : 1;
11531 unsigned INTPPS4 : 1;
11532 unsigned : 1;
11533 unsigned : 1;
11534 unsigned : 1;
11537 struct
11539 unsigned INTPPS : 5;
11540 unsigned : 3;
11542 } __INTPPSbits_t;
11544 extern __at(0x0E10) volatile __INTPPSbits_t INTPPSbits;
11546 #define _INTPPS0 0x01
11547 #define _INTPPS1 0x02
11548 #define _INTPPS2 0x04
11549 #define _INTPPS3 0x08
11550 #define _INTPPS4 0x10
11552 //==============================================================================
11555 //==============================================================================
11556 // T0CKIPPS Bits
11558 extern __at(0x0E11) __sfr T0CKIPPS;
11560 typedef union
11562 struct
11564 unsigned T0CKIPPS0 : 1;
11565 unsigned T0CKIPPS1 : 1;
11566 unsigned T0CKIPPS2 : 1;
11567 unsigned T0CKIPPS3 : 1;
11568 unsigned T0CKIPPS4 : 1;
11569 unsigned : 1;
11570 unsigned : 1;
11571 unsigned : 1;
11574 struct
11576 unsigned T0CKIPPS : 5;
11577 unsigned : 3;
11579 } __T0CKIPPSbits_t;
11581 extern __at(0x0E11) volatile __T0CKIPPSbits_t T0CKIPPSbits;
11583 #define _T0CKIPPS0 0x01
11584 #define _T0CKIPPS1 0x02
11585 #define _T0CKIPPS2 0x04
11586 #define _T0CKIPPS3 0x08
11587 #define _T0CKIPPS4 0x10
11589 //==============================================================================
11592 //==============================================================================
11593 // T1CKIPPS Bits
11595 extern __at(0x0E12) __sfr T1CKIPPS;
11597 typedef union
11599 struct
11601 unsigned T1CKIPPS0 : 1;
11602 unsigned T1CKIPPS1 : 1;
11603 unsigned T1CKIPPS2 : 1;
11604 unsigned T1CKIPPS3 : 1;
11605 unsigned T1CKIPPS4 : 1;
11606 unsigned : 1;
11607 unsigned : 1;
11608 unsigned : 1;
11611 struct
11613 unsigned T1CKIPPS : 5;
11614 unsigned : 3;
11616 } __T1CKIPPSbits_t;
11618 extern __at(0x0E12) volatile __T1CKIPPSbits_t T1CKIPPSbits;
11620 #define _T1CKIPPS0 0x01
11621 #define _T1CKIPPS1 0x02
11622 #define _T1CKIPPS2 0x04
11623 #define _T1CKIPPS3 0x08
11624 #define _T1CKIPPS4 0x10
11626 //==============================================================================
11629 //==============================================================================
11630 // T1GPPS Bits
11632 extern __at(0x0E13) __sfr T1GPPS;
11634 typedef union
11636 struct
11638 unsigned T1GPPS0 : 1;
11639 unsigned T1GPPS1 : 1;
11640 unsigned T1GPPS2 : 1;
11641 unsigned T1GPPS3 : 1;
11642 unsigned T1GPPS4 : 1;
11643 unsigned : 1;
11644 unsigned : 1;
11645 unsigned : 1;
11648 struct
11650 unsigned T1GPPS : 5;
11651 unsigned : 3;
11653 } __T1GPPSbits_t;
11655 extern __at(0x0E13) volatile __T1GPPSbits_t T1GPPSbits;
11657 #define _T1GPPS0 0x01
11658 #define _T1GPPS1 0x02
11659 #define _T1GPPS2 0x04
11660 #define _T1GPPS3 0x08
11661 #define _T1GPPS4 0x10
11663 //==============================================================================
11666 //==============================================================================
11667 // CCP1PPS Bits
11669 extern __at(0x0E14) __sfr CCP1PPS;
11671 typedef union
11673 struct
11675 unsigned CCP1PPS0 : 1;
11676 unsigned CCP1PPS1 : 1;
11677 unsigned CCP1PPS2 : 1;
11678 unsigned CCP1PPS3 : 1;
11679 unsigned CCP1PPS4 : 1;
11680 unsigned : 1;
11681 unsigned : 1;
11682 unsigned : 1;
11685 struct
11687 unsigned CCP1PPS : 5;
11688 unsigned : 3;
11690 } __CCP1PPSbits_t;
11692 extern __at(0x0E14) volatile __CCP1PPSbits_t CCP1PPSbits;
11694 #define _CCP1PPS0 0x01
11695 #define _CCP1PPS1 0x02
11696 #define _CCP1PPS2 0x04
11697 #define _CCP1PPS3 0x08
11698 #define _CCP1PPS4 0x10
11700 //==============================================================================
11703 //==============================================================================
11704 // CCP2PPS Bits
11706 extern __at(0x0E15) __sfr CCP2PPS;
11708 typedef union
11710 struct
11712 unsigned CCP2PPS0 : 1;
11713 unsigned CCP2PPS1 : 1;
11714 unsigned CCP2PPS2 : 1;
11715 unsigned CCP2PPS3 : 1;
11716 unsigned CCP2PPS4 : 1;
11717 unsigned : 1;
11718 unsigned : 1;
11719 unsigned : 1;
11722 struct
11724 unsigned CCP2PPS : 5;
11725 unsigned : 3;
11727 } __CCP2PPSbits_t;
11729 extern __at(0x0E15) volatile __CCP2PPSbits_t CCP2PPSbits;
11731 #define _CCP2PPS0 0x01
11732 #define _CCP2PPS1 0x02
11733 #define _CCP2PPS2 0x04
11734 #define _CCP2PPS3 0x08
11735 #define _CCP2PPS4 0x10
11737 //==============================================================================
11740 //==============================================================================
11741 // ATINPPS Bits
11743 extern __at(0x0E16) __sfr ATINPPS;
11745 typedef union
11747 struct
11749 unsigned ATINPPS0 : 1;
11750 unsigned ATINPPS1 : 1;
11751 unsigned ATINPPS2 : 1;
11752 unsigned ATINPPS3 : 1;
11753 unsigned ATINPPS4 : 1;
11754 unsigned : 1;
11755 unsigned : 1;
11756 unsigned : 1;
11759 struct
11761 unsigned ATINPPS : 5;
11762 unsigned : 3;
11764 } __ATINPPSbits_t;
11766 extern __at(0x0E16) volatile __ATINPPSbits_t ATINPPSbits;
11768 #define _ATINPPS0 0x01
11769 #define _ATINPPS1 0x02
11770 #define _ATINPPS2 0x04
11771 #define _ATINPPS3 0x08
11772 #define _ATINPPS4 0x10
11774 //==============================================================================
11777 //==============================================================================
11778 // CWGINPPS Bits
11780 extern __at(0x0E17) __sfr CWGINPPS;
11782 typedef union
11784 struct
11786 unsigned CWGINPPS0 : 1;
11787 unsigned CWGINPPS1 : 1;
11788 unsigned CWGINPPS2 : 1;
11789 unsigned CWGINPPS3 : 1;
11790 unsigned CWGINPPS4 : 1;
11791 unsigned : 1;
11792 unsigned : 1;
11793 unsigned : 1;
11796 struct
11798 unsigned CWGINPPS : 5;
11799 unsigned : 3;
11801 } __CWGINPPSbits_t;
11803 extern __at(0x0E17) volatile __CWGINPPSbits_t CWGINPPSbits;
11805 #define _CWGINPPS0 0x01
11806 #define _CWGINPPS1 0x02
11807 #define _CWGINPPS2 0x04
11808 #define _CWGINPPS3 0x08
11809 #define _CWGINPPS4 0x10
11811 //==============================================================================
11814 //==============================================================================
11815 // T2PPS Bits
11817 extern __at(0x0E18) __sfr T2PPS;
11819 typedef union
11821 struct
11823 unsigned T2PPS0 : 1;
11824 unsigned T2PPS1 : 1;
11825 unsigned T2PPS2 : 1;
11826 unsigned T2PPS3 : 1;
11827 unsigned T2PPS4 : 1;
11828 unsigned : 1;
11829 unsigned : 1;
11830 unsigned : 1;
11833 struct
11835 unsigned T2PPS : 5;
11836 unsigned : 3;
11838 } __T2PPSbits_t;
11840 extern __at(0x0E18) volatile __T2PPSbits_t T2PPSbits;
11842 #define _T2PPS0 0x01
11843 #define _T2PPS1 0x02
11844 #define _T2PPS2 0x04
11845 #define _T2PPS3 0x08
11846 #define _T2PPS4 0x10
11848 //==============================================================================
11851 //==============================================================================
11852 // T3CKIPPS Bits
11854 extern __at(0x0E19) __sfr T3CKIPPS;
11856 typedef union
11858 struct
11860 unsigned T3CKIPPS0 : 1;
11861 unsigned T3CKIPPS1 : 1;
11862 unsigned T3CKIPPS2 : 1;
11863 unsigned T3CKIPPS3 : 1;
11864 unsigned T3CKIPPS4 : 1;
11865 unsigned : 1;
11866 unsigned : 1;
11867 unsigned : 1;
11870 struct
11872 unsigned T3CKIPPS : 5;
11873 unsigned : 3;
11875 } __T3CKIPPSbits_t;
11877 extern __at(0x0E19) volatile __T3CKIPPSbits_t T3CKIPPSbits;
11879 #define _T3CKIPPS0 0x01
11880 #define _T3CKIPPS1 0x02
11881 #define _T3CKIPPS2 0x04
11882 #define _T3CKIPPS3 0x08
11883 #define _T3CKIPPS4 0x10
11885 //==============================================================================
11888 //==============================================================================
11889 // T3GPPS Bits
11891 extern __at(0x0E1A) __sfr T3GPPS;
11893 typedef union
11895 struct
11897 unsigned T3GPPS0 : 1;
11898 unsigned T3GPPS1 : 1;
11899 unsigned T3GPPS2 : 1;
11900 unsigned T3GPPS3 : 1;
11901 unsigned T3GPPS4 : 1;
11902 unsigned : 1;
11903 unsigned : 1;
11904 unsigned : 1;
11907 struct
11909 unsigned T3GPPS : 5;
11910 unsigned : 3;
11912 } __T3GPPSbits_t;
11914 extern __at(0x0E1A) volatile __T3GPPSbits_t T3GPPSbits;
11916 #define _T3GPPS0 0x01
11917 #define _T3GPPS1 0x02
11918 #define _T3GPPS2 0x04
11919 #define _T3GPPS3 0x08
11920 #define _T3GPPS4 0x10
11922 //==============================================================================
11925 //==============================================================================
11926 // T4PPS Bits
11928 extern __at(0x0E1B) __sfr T4PPS;
11930 typedef union
11932 struct
11934 unsigned T4PPS0 : 1;
11935 unsigned T4PPS1 : 1;
11936 unsigned T4PPS2 : 1;
11937 unsigned T4PPS3 : 1;
11938 unsigned T4PPS4 : 1;
11939 unsigned : 1;
11940 unsigned : 1;
11941 unsigned : 1;
11944 struct
11946 unsigned T4PPS : 5;
11947 unsigned : 3;
11949 } __T4PPSbits_t;
11951 extern __at(0x0E1B) volatile __T4PPSbits_t T4PPSbits;
11953 #define _T4PPS0 0x01
11954 #define _T4PPS1 0x02
11955 #define _T4PPS2 0x04
11956 #define _T4PPS3 0x08
11957 #define _T4PPS4 0x10
11959 //==============================================================================
11962 //==============================================================================
11963 // T5CKIPPS Bits
11965 extern __at(0x0E1C) __sfr T5CKIPPS;
11967 typedef union
11969 struct
11971 unsigned T5CKIPPS0 : 1;
11972 unsigned T5CKIPPS1 : 1;
11973 unsigned T5CKIPPS2 : 1;
11974 unsigned T5CKIPPS3 : 1;
11975 unsigned T5CKIPPS4 : 1;
11976 unsigned : 1;
11977 unsigned : 1;
11978 unsigned : 1;
11981 struct
11983 unsigned T5CKIPPS : 5;
11984 unsigned : 3;
11986 } __T5CKIPPSbits_t;
11988 extern __at(0x0E1C) volatile __T5CKIPPSbits_t T5CKIPPSbits;
11990 #define _T5CKIPPS0 0x01
11991 #define _T5CKIPPS1 0x02
11992 #define _T5CKIPPS2 0x04
11993 #define _T5CKIPPS3 0x08
11994 #define _T5CKIPPS4 0x10
11996 //==============================================================================
11999 //==============================================================================
12000 // T5GPPS Bits
12002 extern __at(0x0E1D) __sfr T5GPPS;
12004 typedef union
12006 struct
12008 unsigned T5GPPS0 : 1;
12009 unsigned T5GPPS1 : 1;
12010 unsigned T5GPPS2 : 1;
12011 unsigned T5GPPS3 : 1;
12012 unsigned T5GPPS4 : 1;
12013 unsigned : 1;
12014 unsigned : 1;
12015 unsigned : 1;
12018 struct
12020 unsigned T5GPPS : 5;
12021 unsigned : 3;
12023 } __T5GPPSbits_t;
12025 extern __at(0x0E1D) volatile __T5GPPSbits_t T5GPPSbits;
12027 #define _T5GPPS0 0x01
12028 #define _T5GPPS1 0x02
12029 #define _T5GPPS2 0x04
12030 #define _T5GPPS3 0x08
12031 #define _T5GPPS4 0x10
12033 //==============================================================================
12036 //==============================================================================
12037 // T6PPS Bits
12039 extern __at(0x0E1E) __sfr T6PPS;
12041 typedef union
12043 struct
12045 unsigned T6PPS0 : 1;
12046 unsigned T6PPS1 : 1;
12047 unsigned T6PPS2 : 1;
12048 unsigned T6PPS3 : 1;
12049 unsigned T6PPS4 : 1;
12050 unsigned : 1;
12051 unsigned : 1;
12052 unsigned : 1;
12055 struct
12057 unsigned T6PPS : 5;
12058 unsigned : 3;
12060 } __T6PPSbits_t;
12062 extern __at(0x0E1E) volatile __T6PPSbits_t T6PPSbits;
12064 #define _T6PPS0 0x01
12065 #define _T6PPS1 0x02
12066 #define _T6PPS2 0x04
12067 #define _T6PPS3 0x08
12068 #define _T6PPS4 0x10
12070 //==============================================================================
12073 //==============================================================================
12074 // ATCC1PPS Bits
12076 extern __at(0x0E1F) __sfr ATCC1PPS;
12078 typedef union
12080 struct
12082 unsigned ATCC1PPS0 : 1;
12083 unsigned ATCC1PPS1 : 1;
12084 unsigned ATCC1PPS2 : 1;
12085 unsigned ATCC1PPS3 : 1;
12086 unsigned ATCC1PPS4 : 1;
12087 unsigned : 1;
12088 unsigned : 1;
12089 unsigned : 1;
12092 struct
12094 unsigned ATCC1PPS : 5;
12095 unsigned : 3;
12097 } __ATCC1PPSbits_t;
12099 extern __at(0x0E1F) volatile __ATCC1PPSbits_t ATCC1PPSbits;
12101 #define _ATCC1PPS0 0x01
12102 #define _ATCC1PPS1 0x02
12103 #define _ATCC1PPS2 0x04
12104 #define _ATCC1PPS3 0x08
12105 #define _ATCC1PPS4 0x10
12107 //==============================================================================
12110 //==============================================================================
12111 // SSPCLKPPS Bits
12113 extern __at(0x0E20) __sfr SSPCLKPPS;
12115 typedef union
12117 struct
12119 unsigned SSPCLKPPS0 : 1;
12120 unsigned SSPCLKPPS1 : 1;
12121 unsigned SSPCLKPPS2 : 1;
12122 unsigned SSPCLKPPS3 : 1;
12123 unsigned SSPCLKPPS4 : 1;
12124 unsigned : 1;
12125 unsigned : 1;
12126 unsigned : 1;
12129 struct
12131 unsigned SSPCLKPPS : 5;
12132 unsigned : 3;
12134 } __SSPCLKPPSbits_t;
12136 extern __at(0x0E20) volatile __SSPCLKPPSbits_t SSPCLKPPSbits;
12138 #define _SSPCLKPPS0 0x01
12139 #define _SSPCLKPPS1 0x02
12140 #define _SSPCLKPPS2 0x04
12141 #define _SSPCLKPPS3 0x08
12142 #define _SSPCLKPPS4 0x10
12144 //==============================================================================
12147 //==============================================================================
12148 // SSPDATPPS Bits
12150 extern __at(0x0E21) __sfr SSPDATPPS;
12152 typedef union
12154 struct
12156 unsigned SSPDATPPS0 : 1;
12157 unsigned SSPDATPPS1 : 1;
12158 unsigned SSPDATPPS2 : 1;
12159 unsigned SSPDATPPS3 : 1;
12160 unsigned SSPDATPPS4 : 1;
12161 unsigned : 1;
12162 unsigned : 1;
12163 unsigned : 1;
12166 struct
12168 unsigned SSPDATPPS : 5;
12169 unsigned : 3;
12171 } __SSPDATPPSbits_t;
12173 extern __at(0x0E21) volatile __SSPDATPPSbits_t SSPDATPPSbits;
12175 #define _SSPDATPPS0 0x01
12176 #define _SSPDATPPS1 0x02
12177 #define _SSPDATPPS2 0x04
12178 #define _SSPDATPPS3 0x08
12179 #define _SSPDATPPS4 0x10
12181 //==============================================================================
12184 //==============================================================================
12185 // SSPSSPPS Bits
12187 extern __at(0x0E22) __sfr SSPSSPPS;
12189 typedef union
12191 struct
12193 unsigned SSPSSPPS0 : 1;
12194 unsigned SSPSSPPS1 : 1;
12195 unsigned SSPSSPPS2 : 1;
12196 unsigned SSPSSPPS3 : 1;
12197 unsigned SSPSSPPS4 : 1;
12198 unsigned : 1;
12199 unsigned : 1;
12200 unsigned : 1;
12203 struct
12205 unsigned SSPSSPPS : 5;
12206 unsigned : 3;
12208 } __SSPSSPPSbits_t;
12210 extern __at(0x0E22) volatile __SSPSSPPSbits_t SSPSSPPSbits;
12212 #define _SSPSSPPS0 0x01
12213 #define _SSPSSPPS1 0x02
12214 #define _SSPSSPPS2 0x04
12215 #define _SSPSSPPS3 0x08
12216 #define _SSPSSPPS4 0x10
12218 //==============================================================================
12221 //==============================================================================
12222 // ATCC2PPS Bits
12224 extern __at(0x0E23) __sfr ATCC2PPS;
12226 typedef union
12228 struct
12230 unsigned ATCC2PPS0 : 1;
12231 unsigned ATCC2PPS1 : 1;
12232 unsigned ATCC2PPS2 : 1;
12233 unsigned ATCC2PPS3 : 1;
12234 unsigned ATCC2PPS4 : 1;
12235 unsigned : 1;
12236 unsigned : 1;
12237 unsigned : 1;
12240 struct
12242 unsigned ATCC2PPS : 5;
12243 unsigned : 3;
12245 } __ATCC2PPSbits_t;
12247 extern __at(0x0E23) volatile __ATCC2PPSbits_t ATCC2PPSbits;
12249 #define _ATCC2PPS0 0x01
12250 #define _ATCC2PPS1 0x02
12251 #define _ATCC2PPS2 0x04
12252 #define _ATCC2PPS3 0x08
12253 #define _ATCC2PPS4 0x10
12255 //==============================================================================
12258 //==============================================================================
12259 // RXPPS Bits
12261 extern __at(0x0E24) __sfr RXPPS;
12263 typedef union
12265 struct
12267 unsigned RXPPS0 : 1;
12268 unsigned RXPPS1 : 1;
12269 unsigned RXPPS2 : 1;
12270 unsigned RXPPS3 : 1;
12271 unsigned RXPPS4 : 1;
12272 unsigned : 1;
12273 unsigned : 1;
12274 unsigned : 1;
12277 struct
12279 unsigned RXPPS : 5;
12280 unsigned : 3;
12282 } __RXPPSbits_t;
12284 extern __at(0x0E24) volatile __RXPPSbits_t RXPPSbits;
12286 #define _RXPPS0 0x01
12287 #define _RXPPS1 0x02
12288 #define _RXPPS2 0x04
12289 #define _RXPPS3 0x08
12290 #define _RXPPS4 0x10
12292 //==============================================================================
12295 //==============================================================================
12296 // CKPPS Bits
12298 extern __at(0x0E25) __sfr CKPPS;
12300 typedef union
12302 struct
12304 unsigned CKPPS0 : 1;
12305 unsigned CKPPS1 : 1;
12306 unsigned CKPPS2 : 1;
12307 unsigned CKPPS3 : 1;
12308 unsigned CKPPS4 : 1;
12309 unsigned : 1;
12310 unsigned : 1;
12311 unsigned : 1;
12314 struct
12316 unsigned CKPPS : 5;
12317 unsigned : 3;
12319 } __CKPPSbits_t;
12321 extern __at(0x0E25) volatile __CKPPSbits_t CKPPSbits;
12323 #define _CKPPS0 0x01
12324 #define _CKPPS1 0x02
12325 #define _CKPPS2 0x04
12326 #define _CKPPS3 0x08
12327 #define _CKPPS4 0x10
12329 //==============================================================================
12332 //==============================================================================
12333 // SMT1SIGPPS Bits
12335 extern __at(0x0E26) __sfr SMT1SIGPPS;
12337 typedef union
12339 struct
12341 unsigned SMT1SIGPPS0 : 1;
12342 unsigned SMT1SIGPPS1 : 1;
12343 unsigned SMT1SIGPPS2 : 1;
12344 unsigned SMT1SIGPPS3 : 1;
12345 unsigned SMT1SIGPPS4 : 1;
12346 unsigned : 1;
12347 unsigned : 1;
12348 unsigned : 1;
12351 struct
12353 unsigned SMT1SIGPPS : 5;
12354 unsigned : 3;
12356 } __SMT1SIGPPSbits_t;
12358 extern __at(0x0E26) volatile __SMT1SIGPPSbits_t SMT1SIGPPSbits;
12360 #define _SMT1SIGPPS0 0x01
12361 #define _SMT1SIGPPS1 0x02
12362 #define _SMT1SIGPPS2 0x04
12363 #define _SMT1SIGPPS3 0x08
12364 #define _SMT1SIGPPS4 0x10
12366 //==============================================================================
12369 //==============================================================================
12370 // SMT1WINPPS Bits
12372 extern __at(0x0E27) __sfr SMT1WINPPS;
12374 typedef union
12376 struct
12378 unsigned SMTWINPPS0 : 1;
12379 unsigned SMTWINPPS1 : 1;
12380 unsigned SMTWINPPS2 : 1;
12381 unsigned SMTWINPPS3 : 1;
12382 unsigned SMTWINPPS4 : 1;
12383 unsigned : 1;
12384 unsigned : 1;
12385 unsigned : 1;
12388 struct
12390 unsigned SMTWINPPS : 5;
12391 unsigned : 3;
12393 } __SMT1WINPPSbits_t;
12395 extern __at(0x0E27) volatile __SMT1WINPPSbits_t SMT1WINPPSbits;
12397 #define _SMTWINPPS0 0x01
12398 #define _SMTWINPPS1 0x02
12399 #define _SMTWINPPS2 0x04
12400 #define _SMTWINPPS3 0x08
12401 #define _SMTWINPPS4 0x10
12403 //==============================================================================
12406 //==============================================================================
12407 // CLCIN0PPS Bits
12409 extern __at(0x0E28) __sfr CLCIN0PPS;
12411 typedef union
12413 struct
12415 unsigned CLCIN0PPS0 : 1;
12416 unsigned CLCIN0PPS1 : 1;
12417 unsigned CLCIN0PPS2 : 1;
12418 unsigned CLCIN0PPS3 : 1;
12419 unsigned CLCIN0PPS4 : 1;
12420 unsigned : 1;
12421 unsigned : 1;
12422 unsigned : 1;
12425 struct
12427 unsigned CLCIN0PPS : 5;
12428 unsigned : 3;
12430 } __CLCIN0PPSbits_t;
12432 extern __at(0x0E28) volatile __CLCIN0PPSbits_t CLCIN0PPSbits;
12434 #define _CLCIN0PPS0 0x01
12435 #define _CLCIN0PPS1 0x02
12436 #define _CLCIN0PPS2 0x04
12437 #define _CLCIN0PPS3 0x08
12438 #define _CLCIN0PPS4 0x10
12440 //==============================================================================
12443 //==============================================================================
12444 // CLCIN1PPS Bits
12446 extern __at(0x0E29) __sfr CLCIN1PPS;
12448 typedef union
12450 struct
12452 unsigned CLCIN1PPS0 : 1;
12453 unsigned CLCIN1PPS1 : 1;
12454 unsigned CLCIN1PPS2 : 1;
12455 unsigned CLCIN1PPS3 : 1;
12456 unsigned CLCIN1PPS4 : 1;
12457 unsigned : 1;
12458 unsigned : 1;
12459 unsigned : 1;
12462 struct
12464 unsigned CLCIN1PPS : 5;
12465 unsigned : 3;
12467 } __CLCIN1PPSbits_t;
12469 extern __at(0x0E29) volatile __CLCIN1PPSbits_t CLCIN1PPSbits;
12471 #define _CLCIN1PPS0 0x01
12472 #define _CLCIN1PPS1 0x02
12473 #define _CLCIN1PPS2 0x04
12474 #define _CLCIN1PPS3 0x08
12475 #define _CLCIN1PPS4 0x10
12477 //==============================================================================
12480 //==============================================================================
12481 // CLCIN2PPS Bits
12483 extern __at(0x0E2A) __sfr CLCIN2PPS;
12485 typedef union
12487 struct
12489 unsigned CLCIN2PPS0 : 1;
12490 unsigned CLCIN2PPS1 : 1;
12491 unsigned CLCIN2PPS2 : 1;
12492 unsigned CLCIN2PPS3 : 1;
12493 unsigned CLCIN2PPS4 : 1;
12494 unsigned : 1;
12495 unsigned : 1;
12496 unsigned : 1;
12499 struct
12501 unsigned CLCIN2PPS : 5;
12502 unsigned : 3;
12504 } __CLCIN2PPSbits_t;
12506 extern __at(0x0E2A) volatile __CLCIN2PPSbits_t CLCIN2PPSbits;
12508 #define _CLCIN2PPS0 0x01
12509 #define _CLCIN2PPS1 0x02
12510 #define _CLCIN2PPS2 0x04
12511 #define _CLCIN2PPS3 0x08
12512 #define _CLCIN2PPS4 0x10
12514 //==============================================================================
12517 //==============================================================================
12518 // CLCIN3PPS Bits
12520 extern __at(0x0E2B) __sfr CLCIN3PPS;
12522 typedef union
12524 struct
12526 unsigned CLCIN3PPS0 : 1;
12527 unsigned CLCIN3PPS1 : 1;
12528 unsigned CLCIN3PPS2 : 1;
12529 unsigned CLCIN3PPS3 : 1;
12530 unsigned CLCIN3PPS4 : 1;
12531 unsigned : 1;
12532 unsigned : 1;
12533 unsigned : 1;
12536 struct
12538 unsigned CLCIN3PPS : 5;
12539 unsigned : 3;
12541 } __CLCIN3PPSbits_t;
12543 extern __at(0x0E2B) volatile __CLCIN3PPSbits_t CLCIN3PPSbits;
12545 #define _CLCIN3PPS0 0x01
12546 #define _CLCIN3PPS1 0x02
12547 #define _CLCIN3PPS2 0x04
12548 #define _CLCIN3PPS3 0x08
12549 #define _CLCIN3PPS4 0x10
12551 //==============================================================================
12554 //==============================================================================
12555 // SMT2SIGPPS Bits
12557 extern __at(0x0E2C) __sfr SMT2SIGPPS;
12559 typedef union
12561 struct
12563 unsigned SMT2SIGPPS0 : 1;
12564 unsigned SMT2SIGPPS1 : 1;
12565 unsigned SMT2SIGPPS2 : 1;
12566 unsigned SMT2SIGPPS3 : 1;
12567 unsigned SMT2SIGPPS4 : 1;
12568 unsigned : 1;
12569 unsigned : 1;
12570 unsigned : 1;
12573 struct
12575 unsigned SMT2SIGPPS : 5;
12576 unsigned : 3;
12578 } __SMT2SIGPPSbits_t;
12580 extern __at(0x0E2C) volatile __SMT2SIGPPSbits_t SMT2SIGPPSbits;
12582 #define _SMT2SIGPPS0 0x01
12583 #define _SMT2SIGPPS1 0x02
12584 #define _SMT2SIGPPS2 0x04
12585 #define _SMT2SIGPPS3 0x08
12586 #define _SMT2SIGPPS4 0x10
12588 //==============================================================================
12591 //==============================================================================
12592 // SMT2WINPPS Bits
12594 extern __at(0x0E2D) __sfr SMT2WINPPS;
12596 typedef union
12598 struct
12600 unsigned SMT2WINPPS0 : 1;
12601 unsigned SMT2WINPPS1 : 1;
12602 unsigned SMT2WINPPS2 : 1;
12603 unsigned SMT2WINPPS3 : 1;
12604 unsigned SMT2WINPPS4 : 1;
12605 unsigned : 1;
12606 unsigned : 1;
12607 unsigned : 1;
12610 struct
12612 unsigned SMT2WINPPS : 5;
12613 unsigned : 3;
12615 } __SMT2WINPPSbits_t;
12617 extern __at(0x0E2D) volatile __SMT2WINPPSbits_t SMT2WINPPSbits;
12619 #define _SMT2WINPPS0 0x01
12620 #define _SMT2WINPPS1 0x02
12621 #define _SMT2WINPPS2 0x04
12622 #define _SMT2WINPPS3 0x08
12623 #define _SMT2WINPPS4 0x10
12625 //==============================================================================
12628 //==============================================================================
12629 // ATCC3PPS Bits
12631 extern __at(0x0E2E) __sfr ATCC3PPS;
12633 typedef union
12635 struct
12637 unsigned ATCC3PPS0 : 1;
12638 unsigned ATCC3PPS1 : 1;
12639 unsigned ATCC3PPS2 : 1;
12640 unsigned ATCC3PPS3 : 1;
12641 unsigned ATCC3PPS4 : 1;
12642 unsigned : 1;
12643 unsigned : 1;
12644 unsigned : 1;
12647 struct
12649 unsigned ATCC3PPS : 5;
12650 unsigned : 3;
12652 } __ATCC3PPSbits_t;
12654 extern __at(0x0E2E) volatile __ATCC3PPSbits_t ATCC3PPSbits;
12656 #define _ATCC3PPS0 0x01
12657 #define _ATCC3PPS1 0x02
12658 #define _ATCC3PPS2 0x04
12659 #define _ATCC3PPS3 0x08
12660 #define _ATCC3PPS4 0x10
12662 //==============================================================================
12665 //==============================================================================
12666 // RA0PPS Bits
12668 extern __at(0x0E90) __sfr RA0PPS;
12670 typedef union
12672 struct
12674 unsigned RA0PPS0 : 1;
12675 unsigned RA0PPS1 : 1;
12676 unsigned RA0PPS2 : 1;
12677 unsigned RA0PPS3 : 1;
12678 unsigned RA0PPS4 : 1;
12679 unsigned : 1;
12680 unsigned : 1;
12681 unsigned : 1;
12684 struct
12686 unsigned RA0PPS : 5;
12687 unsigned : 3;
12689 } __RA0PPSbits_t;
12691 extern __at(0x0E90) volatile __RA0PPSbits_t RA0PPSbits;
12693 #define _RA0PPS0 0x01
12694 #define _RA0PPS1 0x02
12695 #define _RA0PPS2 0x04
12696 #define _RA0PPS3 0x08
12697 #define _RA0PPS4 0x10
12699 //==============================================================================
12702 //==============================================================================
12703 // RA1PPS Bits
12705 extern __at(0x0E91) __sfr RA1PPS;
12707 typedef union
12709 struct
12711 unsigned RA1PPS0 : 1;
12712 unsigned RA1PPS1 : 1;
12713 unsigned RA1PPS2 : 1;
12714 unsigned RA1PPS3 : 1;
12715 unsigned RA1PPS4 : 1;
12716 unsigned : 1;
12717 unsigned : 1;
12718 unsigned : 1;
12721 struct
12723 unsigned RA1PPS : 5;
12724 unsigned : 3;
12726 } __RA1PPSbits_t;
12728 extern __at(0x0E91) volatile __RA1PPSbits_t RA1PPSbits;
12730 #define _RA1PPS0 0x01
12731 #define _RA1PPS1 0x02
12732 #define _RA1PPS2 0x04
12733 #define _RA1PPS3 0x08
12734 #define _RA1PPS4 0x10
12736 //==============================================================================
12739 //==============================================================================
12740 // RA2PPS Bits
12742 extern __at(0x0E92) __sfr RA2PPS;
12744 typedef union
12746 struct
12748 unsigned RA2PPS0 : 1;
12749 unsigned RA2PPS1 : 1;
12750 unsigned RA2PPS2 : 1;
12751 unsigned RA2PPS3 : 1;
12752 unsigned RA2PPS4 : 1;
12753 unsigned : 1;
12754 unsigned : 1;
12755 unsigned : 1;
12758 struct
12760 unsigned RA2PPS : 5;
12761 unsigned : 3;
12763 } __RA2PPSbits_t;
12765 extern __at(0x0E92) volatile __RA2PPSbits_t RA2PPSbits;
12767 #define _RA2PPS0 0x01
12768 #define _RA2PPS1 0x02
12769 #define _RA2PPS2 0x04
12770 #define _RA2PPS3 0x08
12771 #define _RA2PPS4 0x10
12773 //==============================================================================
12776 //==============================================================================
12777 // RA4PPS Bits
12779 extern __at(0x0E94) __sfr RA4PPS;
12781 typedef union
12783 struct
12785 unsigned RA4PPS0 : 1;
12786 unsigned RA4PPS1 : 1;
12787 unsigned RA4PPS2 : 1;
12788 unsigned RA4PPS3 : 1;
12789 unsigned RA4PPS4 : 1;
12790 unsigned : 1;
12791 unsigned : 1;
12792 unsigned : 1;
12795 struct
12797 unsigned RA4PPS : 5;
12798 unsigned : 3;
12800 } __RA4PPSbits_t;
12802 extern __at(0x0E94) volatile __RA4PPSbits_t RA4PPSbits;
12804 #define _RA4PPS0 0x01
12805 #define _RA4PPS1 0x02
12806 #define _RA4PPS2 0x04
12807 #define _RA4PPS3 0x08
12808 #define _RA4PPS4 0x10
12810 //==============================================================================
12813 //==============================================================================
12814 // RA5PPS Bits
12816 extern __at(0x0E95) __sfr RA5PPS;
12818 typedef union
12820 struct
12822 unsigned RA5PPS0 : 1;
12823 unsigned RA5PPS1 : 1;
12824 unsigned RA5PPS2 : 1;
12825 unsigned RA5PPS3 : 1;
12826 unsigned RA5PPS4 : 1;
12827 unsigned : 1;
12828 unsigned : 1;
12829 unsigned : 1;
12832 struct
12834 unsigned RA5PPS : 5;
12835 unsigned : 3;
12837 } __RA5PPSbits_t;
12839 extern __at(0x0E95) volatile __RA5PPSbits_t RA5PPSbits;
12841 #define _RA5PPS0 0x01
12842 #define _RA5PPS1 0x02
12843 #define _RA5PPS2 0x04
12844 #define _RA5PPS3 0x08
12845 #define _RA5PPS4 0x10
12847 //==============================================================================
12850 //==============================================================================
12851 // RC0PPS Bits
12853 extern __at(0x0EA0) __sfr RC0PPS;
12855 typedef union
12857 struct
12859 unsigned RC0PPS0 : 1;
12860 unsigned RC0PPS1 : 1;
12861 unsigned RC0PPS2 : 1;
12862 unsigned RC0PPS3 : 1;
12863 unsigned RC0PPS4 : 1;
12864 unsigned : 1;
12865 unsigned : 1;
12866 unsigned : 1;
12869 struct
12871 unsigned RC0PPS : 5;
12872 unsigned : 3;
12874 } __RC0PPSbits_t;
12876 extern __at(0x0EA0) volatile __RC0PPSbits_t RC0PPSbits;
12878 #define _RC0PPS0 0x01
12879 #define _RC0PPS1 0x02
12880 #define _RC0PPS2 0x04
12881 #define _RC0PPS3 0x08
12882 #define _RC0PPS4 0x10
12884 //==============================================================================
12887 //==============================================================================
12888 // RC1PPS Bits
12890 extern __at(0x0EA1) __sfr RC1PPS;
12892 typedef union
12894 struct
12896 unsigned RC1PPS0 : 1;
12897 unsigned RC1PPS1 : 1;
12898 unsigned RC1PPS2 : 1;
12899 unsigned RC1PPS3 : 1;
12900 unsigned RC1PPS4 : 1;
12901 unsigned : 1;
12902 unsigned : 1;
12903 unsigned : 1;
12906 struct
12908 unsigned RC1PPS : 5;
12909 unsigned : 3;
12911 } __RC1PPSbits_t;
12913 extern __at(0x0EA1) volatile __RC1PPSbits_t RC1PPSbits;
12915 #define _RC1PPS0 0x01
12916 #define _RC1PPS1 0x02
12917 #define _RC1PPS2 0x04
12918 #define _RC1PPS3 0x08
12919 #define _RC1PPS4 0x10
12921 //==============================================================================
12924 //==============================================================================
12925 // RC2PPS Bits
12927 extern __at(0x0EA2) __sfr RC2PPS;
12929 typedef union
12931 struct
12933 unsigned RC2PPS0 : 1;
12934 unsigned RC2PPS1 : 1;
12935 unsigned RC2PPS2 : 1;
12936 unsigned RC2PPS3 : 1;
12937 unsigned RC2PPS4 : 1;
12938 unsigned : 1;
12939 unsigned : 1;
12940 unsigned : 1;
12943 struct
12945 unsigned RC2PPS : 5;
12946 unsigned : 3;
12948 } __RC2PPSbits_t;
12950 extern __at(0x0EA2) volatile __RC2PPSbits_t RC2PPSbits;
12952 #define _RC2PPS0 0x01
12953 #define _RC2PPS1 0x02
12954 #define _RC2PPS2 0x04
12955 #define _RC2PPS3 0x08
12956 #define _RC2PPS4 0x10
12958 //==============================================================================
12961 //==============================================================================
12962 // RC3PPS Bits
12964 extern __at(0x0EA3) __sfr RC3PPS;
12966 typedef union
12968 struct
12970 unsigned RC3PPS0 : 1;
12971 unsigned RC3PPS1 : 1;
12972 unsigned RC3PPS2 : 1;
12973 unsigned RC3PPS3 : 1;
12974 unsigned RC3PPS4 : 1;
12975 unsigned : 1;
12976 unsigned : 1;
12977 unsigned : 1;
12980 struct
12982 unsigned RC3PPS : 5;
12983 unsigned : 3;
12985 } __RC3PPSbits_t;
12987 extern __at(0x0EA3) volatile __RC3PPSbits_t RC3PPSbits;
12989 #define _RC3PPS0 0x01
12990 #define _RC3PPS1 0x02
12991 #define _RC3PPS2 0x04
12992 #define _RC3PPS3 0x08
12993 #define _RC3PPS4 0x10
12995 //==============================================================================
12998 //==============================================================================
12999 // RC4PPS Bits
13001 extern __at(0x0EA4) __sfr RC4PPS;
13003 typedef union
13005 struct
13007 unsigned RC4PPS0 : 1;
13008 unsigned RC4PPS1 : 1;
13009 unsigned RC4PPS2 : 1;
13010 unsigned RC4PPS3 : 1;
13011 unsigned RC4PPS4 : 1;
13012 unsigned : 1;
13013 unsigned : 1;
13014 unsigned : 1;
13017 struct
13019 unsigned RC4PPS : 5;
13020 unsigned : 3;
13022 } __RC4PPSbits_t;
13024 extern __at(0x0EA4) volatile __RC4PPSbits_t RC4PPSbits;
13026 #define _RC4PPS0 0x01
13027 #define _RC4PPS1 0x02
13028 #define _RC4PPS2 0x04
13029 #define _RC4PPS3 0x08
13030 #define _RC4PPS4 0x10
13032 //==============================================================================
13035 //==============================================================================
13036 // RC5PPS Bits
13038 extern __at(0x0EA5) __sfr RC5PPS;
13040 typedef union
13042 struct
13044 unsigned RC5PPS0 : 1;
13045 unsigned RC5PPS1 : 1;
13046 unsigned RC5PPS2 : 1;
13047 unsigned RC5PPS3 : 1;
13048 unsigned RC5PPS4 : 1;
13049 unsigned : 1;
13050 unsigned : 1;
13051 unsigned : 1;
13054 struct
13056 unsigned RC5PPS : 5;
13057 unsigned : 3;
13059 } __RC5PPSbits_t;
13061 extern __at(0x0EA5) volatile __RC5PPSbits_t RC5PPSbits;
13063 #define _RC5PPS0 0x01
13064 #define _RC5PPS1 0x02
13065 #define _RC5PPS2 0x04
13066 #define _RC5PPS3 0x08
13067 #define _RC5PPS4 0x10
13069 //==============================================================================
13072 //==============================================================================
13073 // CLCDATA Bits
13075 extern __at(0x0F0F) __sfr CLCDATA;
13077 typedef struct
13079 unsigned MLC1OUT : 1;
13080 unsigned MLC2OUT : 1;
13081 unsigned MLC3OUT : 1;
13082 unsigned MLC4OUT : 1;
13083 unsigned : 1;
13084 unsigned : 1;
13085 unsigned : 1;
13086 unsigned : 1;
13087 } __CLCDATAbits_t;
13089 extern __at(0x0F0F) volatile __CLCDATAbits_t CLCDATAbits;
13091 #define _MLC1OUT 0x01
13092 #define _MLC2OUT 0x02
13093 #define _MLC3OUT 0x04
13094 #define _MLC4OUT 0x08
13096 //==============================================================================
13099 //==============================================================================
13100 // CLC1CON Bits
13102 extern __at(0x0F10) __sfr CLC1CON;
13104 typedef union
13106 struct
13108 unsigned LC1MODE0 : 1;
13109 unsigned LC1MODE1 : 1;
13110 unsigned LC1MODE2 : 1;
13111 unsigned LC1INTN : 1;
13112 unsigned LC1INTP : 1;
13113 unsigned LC1OUT : 1;
13114 unsigned : 1;
13115 unsigned LC1EN : 1;
13118 struct
13120 unsigned MODE0 : 1;
13121 unsigned MODE1 : 1;
13122 unsigned MODE2 : 1;
13123 unsigned INTN : 1;
13124 unsigned INTP : 1;
13125 unsigned OUT : 1;
13126 unsigned : 1;
13127 unsigned EN : 1;
13130 struct
13132 unsigned MODE : 3;
13133 unsigned : 5;
13136 struct
13138 unsigned LC1MODE : 3;
13139 unsigned : 5;
13141 } __CLC1CONbits_t;
13143 extern __at(0x0F10) volatile __CLC1CONbits_t CLC1CONbits;
13145 #define _CLC1CON_LC1MODE0 0x01
13146 #define _CLC1CON_MODE0 0x01
13147 #define _CLC1CON_LC1MODE1 0x02
13148 #define _CLC1CON_MODE1 0x02
13149 #define _CLC1CON_LC1MODE2 0x04
13150 #define _CLC1CON_MODE2 0x04
13151 #define _CLC1CON_LC1INTN 0x08
13152 #define _CLC1CON_INTN 0x08
13153 #define _CLC1CON_LC1INTP 0x10
13154 #define _CLC1CON_INTP 0x10
13155 #define _CLC1CON_LC1OUT 0x20
13156 #define _CLC1CON_OUT 0x20
13157 #define _CLC1CON_LC1EN 0x80
13158 #define _CLC1CON_EN 0x80
13160 //==============================================================================
13163 //==============================================================================
13164 // CLC1POL Bits
13166 extern __at(0x0F11) __sfr CLC1POL;
13168 typedef union
13170 struct
13172 unsigned LC1G1POL : 1;
13173 unsigned LC1G2POL : 1;
13174 unsigned LC1G3POL : 1;
13175 unsigned LC1G4POL : 1;
13176 unsigned : 1;
13177 unsigned : 1;
13178 unsigned : 1;
13179 unsigned LC1POL : 1;
13182 struct
13184 unsigned G1POL : 1;
13185 unsigned G2POL : 1;
13186 unsigned G3POL : 1;
13187 unsigned G4POL : 1;
13188 unsigned : 1;
13189 unsigned : 1;
13190 unsigned : 1;
13191 unsigned POL : 1;
13193 } __CLC1POLbits_t;
13195 extern __at(0x0F11) volatile __CLC1POLbits_t CLC1POLbits;
13197 #define _CLC1POL_LC1G1POL 0x01
13198 #define _CLC1POL_G1POL 0x01
13199 #define _CLC1POL_LC1G2POL 0x02
13200 #define _CLC1POL_G2POL 0x02
13201 #define _CLC1POL_LC1G3POL 0x04
13202 #define _CLC1POL_G3POL 0x04
13203 #define _CLC1POL_LC1G4POL 0x08
13204 #define _CLC1POL_G4POL 0x08
13205 #define _CLC1POL_LC1POL 0x80
13206 #define _CLC1POL_POL 0x80
13208 //==============================================================================
13211 //==============================================================================
13212 // CLC1SEL0 Bits
13214 extern __at(0x0F12) __sfr CLC1SEL0;
13216 typedef union
13218 struct
13220 unsigned LC1D1S0 : 1;
13221 unsigned LC1D1S1 : 1;
13222 unsigned LC1D1S2 : 1;
13223 unsigned LC1D1S3 : 1;
13224 unsigned LC1D1S4 : 1;
13225 unsigned LC1D1S5 : 1;
13226 unsigned : 1;
13227 unsigned : 1;
13230 struct
13232 unsigned D1S0 : 1;
13233 unsigned D1S1 : 1;
13234 unsigned D1S2 : 1;
13235 unsigned D1S3 : 1;
13236 unsigned D1S4 : 1;
13237 unsigned D1S5 : 1;
13238 unsigned : 1;
13239 unsigned : 1;
13242 struct
13244 unsigned LC1D1S : 6;
13245 unsigned : 2;
13248 struct
13250 unsigned D1S : 6;
13251 unsigned : 2;
13253 } __CLC1SEL0bits_t;
13255 extern __at(0x0F12) volatile __CLC1SEL0bits_t CLC1SEL0bits;
13257 #define _LC1D1S0 0x01
13258 #define _D1S0 0x01
13259 #define _LC1D1S1 0x02
13260 #define _D1S1 0x02
13261 #define _LC1D1S2 0x04
13262 #define _D1S2 0x04
13263 #define _LC1D1S3 0x08
13264 #define _D1S3 0x08
13265 #define _LC1D1S4 0x10
13266 #define _D1S4 0x10
13267 #define _LC1D1S5 0x20
13268 #define _D1S5 0x20
13270 //==============================================================================
13273 //==============================================================================
13274 // CLC1SEL1 Bits
13276 extern __at(0x0F13) __sfr CLC1SEL1;
13278 typedef union
13280 struct
13282 unsigned LC1D2S0 : 1;
13283 unsigned LC1D2S1 : 1;
13284 unsigned LC1D2S2 : 1;
13285 unsigned LC1D2S3 : 1;
13286 unsigned LC1D2S4 : 1;
13287 unsigned LC1D2S5 : 1;
13288 unsigned : 1;
13289 unsigned : 1;
13292 struct
13294 unsigned D2S0 : 1;
13295 unsigned D2S1 : 1;
13296 unsigned D2S2 : 1;
13297 unsigned D2S3 : 1;
13298 unsigned D2S4 : 1;
13299 unsigned D2S5 : 1;
13300 unsigned : 1;
13301 unsigned : 1;
13304 struct
13306 unsigned D2S : 6;
13307 unsigned : 2;
13310 struct
13312 unsigned LC1D2S : 6;
13313 unsigned : 2;
13315 } __CLC1SEL1bits_t;
13317 extern __at(0x0F13) volatile __CLC1SEL1bits_t CLC1SEL1bits;
13319 #define _LC1D2S0 0x01
13320 #define _D2S0 0x01
13321 #define _LC1D2S1 0x02
13322 #define _D2S1 0x02
13323 #define _LC1D2S2 0x04
13324 #define _D2S2 0x04
13325 #define _LC1D2S3 0x08
13326 #define _D2S3 0x08
13327 #define _LC1D2S4 0x10
13328 #define _D2S4 0x10
13329 #define _LC1D2S5 0x20
13330 #define _D2S5 0x20
13332 //==============================================================================
13335 //==============================================================================
13336 // CLC1SEL2 Bits
13338 extern __at(0x0F14) __sfr CLC1SEL2;
13340 typedef union
13342 struct
13344 unsigned LC1D3S0 : 1;
13345 unsigned LC1D3S1 : 1;
13346 unsigned LC1D3S2 : 1;
13347 unsigned LC1D3S3 : 1;
13348 unsigned LC1D3S4 : 1;
13349 unsigned LC1D3S5 : 1;
13350 unsigned : 1;
13351 unsigned : 1;
13354 struct
13356 unsigned D3S0 : 1;
13357 unsigned D3S1 : 1;
13358 unsigned D3S2 : 1;
13359 unsigned D3S3 : 1;
13360 unsigned D3S4 : 1;
13361 unsigned D3S5 : 1;
13362 unsigned : 1;
13363 unsigned : 1;
13366 struct
13368 unsigned LC1D3S : 6;
13369 unsigned : 2;
13372 struct
13374 unsigned D3S : 6;
13375 unsigned : 2;
13377 } __CLC1SEL2bits_t;
13379 extern __at(0x0F14) volatile __CLC1SEL2bits_t CLC1SEL2bits;
13381 #define _LC1D3S0 0x01
13382 #define _D3S0 0x01
13383 #define _LC1D3S1 0x02
13384 #define _D3S1 0x02
13385 #define _LC1D3S2 0x04
13386 #define _D3S2 0x04
13387 #define _LC1D3S3 0x08
13388 #define _D3S3 0x08
13389 #define _LC1D3S4 0x10
13390 #define _D3S4 0x10
13391 #define _LC1D3S5 0x20
13392 #define _D3S5 0x20
13394 //==============================================================================
13397 //==============================================================================
13398 // CLC1SEL3 Bits
13400 extern __at(0x0F15) __sfr CLC1SEL3;
13402 typedef union
13404 struct
13406 unsigned LC1D4S0 : 1;
13407 unsigned LC1D4S1 : 1;
13408 unsigned LC1D4S2 : 1;
13409 unsigned LC1D4S3 : 1;
13410 unsigned LC1D4S4 : 1;
13411 unsigned LC1D4S5 : 1;
13412 unsigned : 1;
13413 unsigned : 1;
13416 struct
13418 unsigned D4S0 : 1;
13419 unsigned D4S1 : 1;
13420 unsigned D4S2 : 1;
13421 unsigned D4S3 : 1;
13422 unsigned D4S4 : 1;
13423 unsigned D4S5 : 1;
13424 unsigned : 1;
13425 unsigned : 1;
13428 struct
13430 unsigned D4S : 6;
13431 unsigned : 2;
13434 struct
13436 unsigned LC1D4S : 6;
13437 unsigned : 2;
13439 } __CLC1SEL3bits_t;
13441 extern __at(0x0F15) volatile __CLC1SEL3bits_t CLC1SEL3bits;
13443 #define _LC1D4S0 0x01
13444 #define _D4S0 0x01
13445 #define _LC1D4S1 0x02
13446 #define _D4S1 0x02
13447 #define _LC1D4S2 0x04
13448 #define _D4S2 0x04
13449 #define _LC1D4S3 0x08
13450 #define _D4S3 0x08
13451 #define _LC1D4S4 0x10
13452 #define _D4S4 0x10
13453 #define _LC1D4S5 0x20
13454 #define _D4S5 0x20
13456 //==============================================================================
13459 //==============================================================================
13460 // CLC1GLS0 Bits
13462 extern __at(0x0F16) __sfr CLC1GLS0;
13464 typedef union
13466 struct
13468 unsigned LC1G1D1N : 1;
13469 unsigned LC1G1D1T : 1;
13470 unsigned LC1G1D2N : 1;
13471 unsigned LC1G1D2T : 1;
13472 unsigned LC1G1D3N : 1;
13473 unsigned LC1G1D3T : 1;
13474 unsigned LC1G1D4N : 1;
13475 unsigned LC1G1D4T : 1;
13478 struct
13480 unsigned D1N : 1;
13481 unsigned D1T : 1;
13482 unsigned D2N : 1;
13483 unsigned D2T : 1;
13484 unsigned D3N : 1;
13485 unsigned D3T : 1;
13486 unsigned D4N : 1;
13487 unsigned D4T : 1;
13489 } __CLC1GLS0bits_t;
13491 extern __at(0x0F16) volatile __CLC1GLS0bits_t CLC1GLS0bits;
13493 #define _LC1G1D1N 0x01
13494 #define _D1N 0x01
13495 #define _LC1G1D1T 0x02
13496 #define _D1T 0x02
13497 #define _LC1G1D2N 0x04
13498 #define _D2N 0x04
13499 #define _LC1G1D2T 0x08
13500 #define _D2T 0x08
13501 #define _LC1G1D3N 0x10
13502 #define _D3N 0x10
13503 #define _LC1G1D3T 0x20
13504 #define _D3T 0x20
13505 #define _LC1G1D4N 0x40
13506 #define _D4N 0x40
13507 #define _LC1G1D4T 0x80
13508 #define _D4T 0x80
13510 //==============================================================================
13513 //==============================================================================
13514 // CLC1GLS1 Bits
13516 extern __at(0x0F17) __sfr CLC1GLS1;
13518 typedef union
13520 struct
13522 unsigned LC1G2D1N : 1;
13523 unsigned LC1G2D1T : 1;
13524 unsigned LC1G2D2N : 1;
13525 unsigned LC1G2D2T : 1;
13526 unsigned LC1G2D3N : 1;
13527 unsigned LC1G2D3T : 1;
13528 unsigned LC1G2D4N : 1;
13529 unsigned LC1G2D4T : 1;
13532 struct
13534 unsigned D1N : 1;
13535 unsigned D1T : 1;
13536 unsigned D2N : 1;
13537 unsigned D2T : 1;
13538 unsigned D3N : 1;
13539 unsigned D3T : 1;
13540 unsigned D4N : 1;
13541 unsigned D4T : 1;
13543 } __CLC1GLS1bits_t;
13545 extern __at(0x0F17) volatile __CLC1GLS1bits_t CLC1GLS1bits;
13547 #define _CLC1GLS1_LC1G2D1N 0x01
13548 #define _CLC1GLS1_D1N 0x01
13549 #define _CLC1GLS1_LC1G2D1T 0x02
13550 #define _CLC1GLS1_D1T 0x02
13551 #define _CLC1GLS1_LC1G2D2N 0x04
13552 #define _CLC1GLS1_D2N 0x04
13553 #define _CLC1GLS1_LC1G2D2T 0x08
13554 #define _CLC1GLS1_D2T 0x08
13555 #define _CLC1GLS1_LC1G2D3N 0x10
13556 #define _CLC1GLS1_D3N 0x10
13557 #define _CLC1GLS1_LC1G2D3T 0x20
13558 #define _CLC1GLS1_D3T 0x20
13559 #define _CLC1GLS1_LC1G2D4N 0x40
13560 #define _CLC1GLS1_D4N 0x40
13561 #define _CLC1GLS1_LC1G2D4T 0x80
13562 #define _CLC1GLS1_D4T 0x80
13564 //==============================================================================
13567 //==============================================================================
13568 // CLC1GLS2 Bits
13570 extern __at(0x0F18) __sfr CLC1GLS2;
13572 typedef union
13574 struct
13576 unsigned LC1G3D1N : 1;
13577 unsigned LC1G3D1T : 1;
13578 unsigned LC1G3D2N : 1;
13579 unsigned LC1G3D2T : 1;
13580 unsigned LC1G3D3N : 1;
13581 unsigned LC1G3D3T : 1;
13582 unsigned LC1G3D4N : 1;
13583 unsigned LC1G3D4T : 1;
13586 struct
13588 unsigned D1N : 1;
13589 unsigned D1T : 1;
13590 unsigned D2N : 1;
13591 unsigned D2T : 1;
13592 unsigned D3N : 1;
13593 unsigned D3T : 1;
13594 unsigned D4N : 1;
13595 unsigned D4T : 1;
13597 } __CLC1GLS2bits_t;
13599 extern __at(0x0F18) volatile __CLC1GLS2bits_t CLC1GLS2bits;
13601 #define _CLC1GLS2_LC1G3D1N 0x01
13602 #define _CLC1GLS2_D1N 0x01
13603 #define _CLC1GLS2_LC1G3D1T 0x02
13604 #define _CLC1GLS2_D1T 0x02
13605 #define _CLC1GLS2_LC1G3D2N 0x04
13606 #define _CLC1GLS2_D2N 0x04
13607 #define _CLC1GLS2_LC1G3D2T 0x08
13608 #define _CLC1GLS2_D2T 0x08
13609 #define _CLC1GLS2_LC1G3D3N 0x10
13610 #define _CLC1GLS2_D3N 0x10
13611 #define _CLC1GLS2_LC1G3D3T 0x20
13612 #define _CLC1GLS2_D3T 0x20
13613 #define _CLC1GLS2_LC1G3D4N 0x40
13614 #define _CLC1GLS2_D4N 0x40
13615 #define _CLC1GLS2_LC1G3D4T 0x80
13616 #define _CLC1GLS2_D4T 0x80
13618 //==============================================================================
13621 //==============================================================================
13622 // CLC1GLS3 Bits
13624 extern __at(0x0F19) __sfr CLC1GLS3;
13626 typedef union
13628 struct
13630 unsigned LC1G4D1N : 1;
13631 unsigned LC1G4D1T : 1;
13632 unsigned LC1G4D2N : 1;
13633 unsigned LC1G4D2T : 1;
13634 unsigned LC1G4D3N : 1;
13635 unsigned LC1G4D3T : 1;
13636 unsigned LC1G4D4N : 1;
13637 unsigned LC1G4D4T : 1;
13640 struct
13642 unsigned G4D1N : 1;
13643 unsigned G4D1T : 1;
13644 unsigned G4D2N : 1;
13645 unsigned G4D2T : 1;
13646 unsigned G4D3N : 1;
13647 unsigned G4D3T : 1;
13648 unsigned G4D4N : 1;
13649 unsigned G4D4T : 1;
13651 } __CLC1GLS3bits_t;
13653 extern __at(0x0F19) volatile __CLC1GLS3bits_t CLC1GLS3bits;
13655 #define _LC1G4D1N 0x01
13656 #define _G4D1N 0x01
13657 #define _LC1G4D1T 0x02
13658 #define _G4D1T 0x02
13659 #define _LC1G4D2N 0x04
13660 #define _G4D2N 0x04
13661 #define _LC1G4D2T 0x08
13662 #define _G4D2T 0x08
13663 #define _LC1G4D3N 0x10
13664 #define _G4D3N 0x10
13665 #define _LC1G4D3T 0x20
13666 #define _G4D3T 0x20
13667 #define _LC1G4D4N 0x40
13668 #define _G4D4N 0x40
13669 #define _LC1G4D4T 0x80
13670 #define _G4D4T 0x80
13672 //==============================================================================
13675 //==============================================================================
13676 // CLC2CON Bits
13678 extern __at(0x0F1A) __sfr CLC2CON;
13680 typedef union
13682 struct
13684 unsigned LC2MODE0 : 1;
13685 unsigned LC2MODE1 : 1;
13686 unsigned LC2MODE2 : 1;
13687 unsigned LC2INTN : 1;
13688 unsigned LC2INTP : 1;
13689 unsigned LC2OUT : 1;
13690 unsigned : 1;
13691 unsigned LC2EN : 1;
13694 struct
13696 unsigned MODE0 : 1;
13697 unsigned MODE1 : 1;
13698 unsigned MODE2 : 1;
13699 unsigned INTN : 1;
13700 unsigned INTP : 1;
13701 unsigned OUT : 1;
13702 unsigned : 1;
13703 unsigned EN : 1;
13706 struct
13708 unsigned LC2MODE : 3;
13709 unsigned : 5;
13712 struct
13714 unsigned MODE : 3;
13715 unsigned : 5;
13717 } __CLC2CONbits_t;
13719 extern __at(0x0F1A) volatile __CLC2CONbits_t CLC2CONbits;
13721 #define _CLC2CON_LC2MODE0 0x01
13722 #define _CLC2CON_MODE0 0x01
13723 #define _CLC2CON_LC2MODE1 0x02
13724 #define _CLC2CON_MODE1 0x02
13725 #define _CLC2CON_LC2MODE2 0x04
13726 #define _CLC2CON_MODE2 0x04
13727 #define _CLC2CON_LC2INTN 0x08
13728 #define _CLC2CON_INTN 0x08
13729 #define _CLC2CON_LC2INTP 0x10
13730 #define _CLC2CON_INTP 0x10
13731 #define _CLC2CON_LC2OUT 0x20
13732 #define _CLC2CON_OUT 0x20
13733 #define _CLC2CON_LC2EN 0x80
13734 #define _CLC2CON_EN 0x80
13736 //==============================================================================
13739 //==============================================================================
13740 // CLC2POL Bits
13742 extern __at(0x0F1B) __sfr CLC2POL;
13744 typedef union
13746 struct
13748 unsigned LC2G1POL : 1;
13749 unsigned LC2G2POL : 1;
13750 unsigned LC2G3POL : 1;
13751 unsigned LC2G4POL : 1;
13752 unsigned : 1;
13753 unsigned : 1;
13754 unsigned : 1;
13755 unsigned LC2POL : 1;
13758 struct
13760 unsigned G1POL : 1;
13761 unsigned G2POL : 1;
13762 unsigned G3POL : 1;
13763 unsigned G4POL : 1;
13764 unsigned : 1;
13765 unsigned : 1;
13766 unsigned : 1;
13767 unsigned POL : 1;
13769 } __CLC2POLbits_t;
13771 extern __at(0x0F1B) volatile __CLC2POLbits_t CLC2POLbits;
13773 #define _CLC2POL_LC2G1POL 0x01
13774 #define _CLC2POL_G1POL 0x01
13775 #define _CLC2POL_LC2G2POL 0x02
13776 #define _CLC2POL_G2POL 0x02
13777 #define _CLC2POL_LC2G3POL 0x04
13778 #define _CLC2POL_G3POL 0x04
13779 #define _CLC2POL_LC2G4POL 0x08
13780 #define _CLC2POL_G4POL 0x08
13781 #define _CLC2POL_LC2POL 0x80
13782 #define _CLC2POL_POL 0x80
13784 //==============================================================================
13787 //==============================================================================
13788 // CLC2SEL0 Bits
13790 extern __at(0x0F1C) __sfr CLC2SEL0;
13792 typedef union
13794 struct
13796 unsigned LC2D1S0 : 1;
13797 unsigned LC2D1S1 : 1;
13798 unsigned LC2D1S2 : 1;
13799 unsigned LC2D1S3 : 1;
13800 unsigned LC2D1S4 : 1;
13801 unsigned LC2D1S5 : 1;
13802 unsigned : 1;
13803 unsigned : 1;
13806 struct
13808 unsigned D1S0 : 1;
13809 unsigned D1S1 : 1;
13810 unsigned D1S2 : 1;
13811 unsigned D1S3 : 1;
13812 unsigned D1S4 : 1;
13813 unsigned D1S5 : 1;
13814 unsigned : 1;
13815 unsigned : 1;
13818 struct
13820 unsigned LC2D1S : 6;
13821 unsigned : 2;
13824 struct
13826 unsigned D1S : 6;
13827 unsigned : 2;
13829 } __CLC2SEL0bits_t;
13831 extern __at(0x0F1C) volatile __CLC2SEL0bits_t CLC2SEL0bits;
13833 #define _CLC2SEL0_LC2D1S0 0x01
13834 #define _CLC2SEL0_D1S0 0x01
13835 #define _CLC2SEL0_LC2D1S1 0x02
13836 #define _CLC2SEL0_D1S1 0x02
13837 #define _CLC2SEL0_LC2D1S2 0x04
13838 #define _CLC2SEL0_D1S2 0x04
13839 #define _CLC2SEL0_LC2D1S3 0x08
13840 #define _CLC2SEL0_D1S3 0x08
13841 #define _CLC2SEL0_LC2D1S4 0x10
13842 #define _CLC2SEL0_D1S4 0x10
13843 #define _CLC2SEL0_LC2D1S5 0x20
13844 #define _CLC2SEL0_D1S5 0x20
13846 //==============================================================================
13849 //==============================================================================
13850 // CLC2SEL1 Bits
13852 extern __at(0x0F1D) __sfr CLC2SEL1;
13854 typedef union
13856 struct
13858 unsigned LC2D2S0 : 1;
13859 unsigned LC2D2S1 : 1;
13860 unsigned LC2D2S2 : 1;
13861 unsigned LC2D2S3 : 1;
13862 unsigned LC2D2S4 : 1;
13863 unsigned LC2D2S5 : 1;
13864 unsigned : 1;
13865 unsigned : 1;
13868 struct
13870 unsigned D2S0 : 1;
13871 unsigned D2S1 : 1;
13872 unsigned D2S2 : 1;
13873 unsigned D2S3 : 1;
13874 unsigned D2S4 : 1;
13875 unsigned D2S5 : 1;
13876 unsigned : 1;
13877 unsigned : 1;
13880 struct
13882 unsigned LC2D2S : 6;
13883 unsigned : 2;
13886 struct
13888 unsigned D2S : 6;
13889 unsigned : 2;
13891 } __CLC2SEL1bits_t;
13893 extern __at(0x0F1D) volatile __CLC2SEL1bits_t CLC2SEL1bits;
13895 #define _CLC2SEL1_LC2D2S0 0x01
13896 #define _CLC2SEL1_D2S0 0x01
13897 #define _CLC2SEL1_LC2D2S1 0x02
13898 #define _CLC2SEL1_D2S1 0x02
13899 #define _CLC2SEL1_LC2D2S2 0x04
13900 #define _CLC2SEL1_D2S2 0x04
13901 #define _CLC2SEL1_LC2D2S3 0x08
13902 #define _CLC2SEL1_D2S3 0x08
13903 #define _CLC2SEL1_LC2D2S4 0x10
13904 #define _CLC2SEL1_D2S4 0x10
13905 #define _CLC2SEL1_LC2D2S5 0x20
13906 #define _CLC2SEL1_D2S5 0x20
13908 //==============================================================================
13911 //==============================================================================
13912 // CLC2SEL2 Bits
13914 extern __at(0x0F1E) __sfr CLC2SEL2;
13916 typedef union
13918 struct
13920 unsigned LC2D3S0 : 1;
13921 unsigned LC2D3S1 : 1;
13922 unsigned LC2D3S2 : 1;
13923 unsigned LC2D3S3 : 1;
13924 unsigned LC2D3S4 : 1;
13925 unsigned LC2D3S5 : 1;
13926 unsigned : 1;
13927 unsigned : 1;
13930 struct
13932 unsigned D3S0 : 1;
13933 unsigned D3S1 : 1;
13934 unsigned D3S2 : 1;
13935 unsigned D3S3 : 1;
13936 unsigned D3S4 : 1;
13937 unsigned D3S5 : 1;
13938 unsigned : 1;
13939 unsigned : 1;
13942 struct
13944 unsigned LC2D3S : 6;
13945 unsigned : 2;
13948 struct
13950 unsigned D3S : 6;
13951 unsigned : 2;
13953 } __CLC2SEL2bits_t;
13955 extern __at(0x0F1E) volatile __CLC2SEL2bits_t CLC2SEL2bits;
13957 #define _CLC2SEL2_LC2D3S0 0x01
13958 #define _CLC2SEL2_D3S0 0x01
13959 #define _CLC2SEL2_LC2D3S1 0x02
13960 #define _CLC2SEL2_D3S1 0x02
13961 #define _CLC2SEL2_LC2D3S2 0x04
13962 #define _CLC2SEL2_D3S2 0x04
13963 #define _CLC2SEL2_LC2D3S3 0x08
13964 #define _CLC2SEL2_D3S3 0x08
13965 #define _CLC2SEL2_LC2D3S4 0x10
13966 #define _CLC2SEL2_D3S4 0x10
13967 #define _CLC2SEL2_LC2D3S5 0x20
13968 #define _CLC2SEL2_D3S5 0x20
13970 //==============================================================================
13973 //==============================================================================
13974 // CLC2SEL3 Bits
13976 extern __at(0x0F1F) __sfr CLC2SEL3;
13978 typedef union
13980 struct
13982 unsigned LC2D4S0 : 1;
13983 unsigned LC2D4S1 : 1;
13984 unsigned LC2D4S2 : 1;
13985 unsigned LC2D4S3 : 1;
13986 unsigned LC2D4S4 : 1;
13987 unsigned LC2D4S5 : 1;
13988 unsigned : 1;
13989 unsigned : 1;
13992 struct
13994 unsigned D4S0 : 1;
13995 unsigned D4S1 : 1;
13996 unsigned D4S2 : 1;
13997 unsigned D4S3 : 1;
13998 unsigned D4S4 : 1;
13999 unsigned D4S5 : 1;
14000 unsigned : 1;
14001 unsigned : 1;
14004 struct
14006 unsigned D4S : 6;
14007 unsigned : 2;
14010 struct
14012 unsigned LC2D4S : 6;
14013 unsigned : 2;
14015 } __CLC2SEL3bits_t;
14017 extern __at(0x0F1F) volatile __CLC2SEL3bits_t CLC2SEL3bits;
14019 #define _CLC2SEL3_LC2D4S0 0x01
14020 #define _CLC2SEL3_D4S0 0x01
14021 #define _CLC2SEL3_LC2D4S1 0x02
14022 #define _CLC2SEL3_D4S1 0x02
14023 #define _CLC2SEL3_LC2D4S2 0x04
14024 #define _CLC2SEL3_D4S2 0x04
14025 #define _CLC2SEL3_LC2D4S3 0x08
14026 #define _CLC2SEL3_D4S3 0x08
14027 #define _CLC2SEL3_LC2D4S4 0x10
14028 #define _CLC2SEL3_D4S4 0x10
14029 #define _CLC2SEL3_LC2D4S5 0x20
14030 #define _CLC2SEL3_D4S5 0x20
14032 //==============================================================================
14035 //==============================================================================
14036 // CLC2GLS0 Bits
14038 extern __at(0x0F20) __sfr CLC2GLS0;
14040 typedef union
14042 struct
14044 unsigned LC2G1D1N : 1;
14045 unsigned LC2G1D1T : 1;
14046 unsigned LC2G1D2N : 1;
14047 unsigned LC2G1D2T : 1;
14048 unsigned LC2G1D3N : 1;
14049 unsigned LC2G1D3T : 1;
14050 unsigned LC2G1D4N : 1;
14051 unsigned LC2G1D4T : 1;
14054 struct
14056 unsigned D1N : 1;
14057 unsigned D1T : 1;
14058 unsigned D2N : 1;
14059 unsigned D2T : 1;
14060 unsigned D3N : 1;
14061 unsigned D3T : 1;
14062 unsigned D4N : 1;
14063 unsigned D4T : 1;
14065 } __CLC2GLS0bits_t;
14067 extern __at(0x0F20) volatile __CLC2GLS0bits_t CLC2GLS0bits;
14069 #define _CLC2GLS0_LC2G1D1N 0x01
14070 #define _CLC2GLS0_D1N 0x01
14071 #define _CLC2GLS0_LC2G1D1T 0x02
14072 #define _CLC2GLS0_D1T 0x02
14073 #define _CLC2GLS0_LC2G1D2N 0x04
14074 #define _CLC2GLS0_D2N 0x04
14075 #define _CLC2GLS0_LC2G1D2T 0x08
14076 #define _CLC2GLS0_D2T 0x08
14077 #define _CLC2GLS0_LC2G1D3N 0x10
14078 #define _CLC2GLS0_D3N 0x10
14079 #define _CLC2GLS0_LC2G1D3T 0x20
14080 #define _CLC2GLS0_D3T 0x20
14081 #define _CLC2GLS0_LC2G1D4N 0x40
14082 #define _CLC2GLS0_D4N 0x40
14083 #define _CLC2GLS0_LC2G1D4T 0x80
14084 #define _CLC2GLS0_D4T 0x80
14086 //==============================================================================
14089 //==============================================================================
14090 // CLC2GLS1 Bits
14092 extern __at(0x0F21) __sfr CLC2GLS1;
14094 typedef union
14096 struct
14098 unsigned LC2G2D1N : 1;
14099 unsigned LC2G2D1T : 1;
14100 unsigned LC2G2D2N : 1;
14101 unsigned LC2G2D2T : 1;
14102 unsigned LC2G2D3N : 1;
14103 unsigned LC2G2D3T : 1;
14104 unsigned LC2G2D4N : 1;
14105 unsigned LC2G2D4T : 1;
14108 struct
14110 unsigned D1N : 1;
14111 unsigned D1T : 1;
14112 unsigned D2N : 1;
14113 unsigned D2T : 1;
14114 unsigned D3N : 1;
14115 unsigned D3T : 1;
14116 unsigned D4N : 1;
14117 unsigned D4T : 1;
14119 } __CLC2GLS1bits_t;
14121 extern __at(0x0F21) volatile __CLC2GLS1bits_t CLC2GLS1bits;
14123 #define _CLC2GLS1_LC2G2D1N 0x01
14124 #define _CLC2GLS1_D1N 0x01
14125 #define _CLC2GLS1_LC2G2D1T 0x02
14126 #define _CLC2GLS1_D1T 0x02
14127 #define _CLC2GLS1_LC2G2D2N 0x04
14128 #define _CLC2GLS1_D2N 0x04
14129 #define _CLC2GLS1_LC2G2D2T 0x08
14130 #define _CLC2GLS1_D2T 0x08
14131 #define _CLC2GLS1_LC2G2D3N 0x10
14132 #define _CLC2GLS1_D3N 0x10
14133 #define _CLC2GLS1_LC2G2D3T 0x20
14134 #define _CLC2GLS1_D3T 0x20
14135 #define _CLC2GLS1_LC2G2D4N 0x40
14136 #define _CLC2GLS1_D4N 0x40
14137 #define _CLC2GLS1_LC2G2D4T 0x80
14138 #define _CLC2GLS1_D4T 0x80
14140 //==============================================================================
14143 //==============================================================================
14144 // CLC2GLS2 Bits
14146 extern __at(0x0F22) __sfr CLC2GLS2;
14148 typedef union
14150 struct
14152 unsigned LC2G3D1N : 1;
14153 unsigned LC2G3D1T : 1;
14154 unsigned LC2G3D2N : 1;
14155 unsigned LC2G3D2T : 1;
14156 unsigned LC2G3D3N : 1;
14157 unsigned LC2G3D3T : 1;
14158 unsigned LC2G3D4N : 1;
14159 unsigned LC2G3D4T : 1;
14162 struct
14164 unsigned D1N : 1;
14165 unsigned D1T : 1;
14166 unsigned D2N : 1;
14167 unsigned D2T : 1;
14168 unsigned D3N : 1;
14169 unsigned D3T : 1;
14170 unsigned D4N : 1;
14171 unsigned D4T : 1;
14173 } __CLC2GLS2bits_t;
14175 extern __at(0x0F22) volatile __CLC2GLS2bits_t CLC2GLS2bits;
14177 #define _CLC2GLS2_LC2G3D1N 0x01
14178 #define _CLC2GLS2_D1N 0x01
14179 #define _CLC2GLS2_LC2G3D1T 0x02
14180 #define _CLC2GLS2_D1T 0x02
14181 #define _CLC2GLS2_LC2G3D2N 0x04
14182 #define _CLC2GLS2_D2N 0x04
14183 #define _CLC2GLS2_LC2G3D2T 0x08
14184 #define _CLC2GLS2_D2T 0x08
14185 #define _CLC2GLS2_LC2G3D3N 0x10
14186 #define _CLC2GLS2_D3N 0x10
14187 #define _CLC2GLS2_LC2G3D3T 0x20
14188 #define _CLC2GLS2_D3T 0x20
14189 #define _CLC2GLS2_LC2G3D4N 0x40
14190 #define _CLC2GLS2_D4N 0x40
14191 #define _CLC2GLS2_LC2G3D4T 0x80
14192 #define _CLC2GLS2_D4T 0x80
14194 //==============================================================================
14197 //==============================================================================
14198 // CLC2GLS3 Bits
14200 extern __at(0x0F23) __sfr CLC2GLS3;
14202 typedef union
14204 struct
14206 unsigned LC2G4D1N : 1;
14207 unsigned LC2G4D1T : 1;
14208 unsigned LC2G4D2N : 1;
14209 unsigned LC2G4D2T : 1;
14210 unsigned LC2G4D3N : 1;
14211 unsigned LC2G4D3T : 1;
14212 unsigned LC2G4D4N : 1;
14213 unsigned LC2G4D4T : 1;
14216 struct
14218 unsigned G4D1N : 1;
14219 unsigned G4D1T : 1;
14220 unsigned G4D2N : 1;
14221 unsigned G4D2T : 1;
14222 unsigned G4D3N : 1;
14223 unsigned G4D3T : 1;
14224 unsigned G4D4N : 1;
14225 unsigned G4D4T : 1;
14227 } __CLC2GLS3bits_t;
14229 extern __at(0x0F23) volatile __CLC2GLS3bits_t CLC2GLS3bits;
14231 #define _CLC2GLS3_LC2G4D1N 0x01
14232 #define _CLC2GLS3_G4D1N 0x01
14233 #define _CLC2GLS3_LC2G4D1T 0x02
14234 #define _CLC2GLS3_G4D1T 0x02
14235 #define _CLC2GLS3_LC2G4D2N 0x04
14236 #define _CLC2GLS3_G4D2N 0x04
14237 #define _CLC2GLS3_LC2G4D2T 0x08
14238 #define _CLC2GLS3_G4D2T 0x08
14239 #define _CLC2GLS3_LC2G4D3N 0x10
14240 #define _CLC2GLS3_G4D3N 0x10
14241 #define _CLC2GLS3_LC2G4D3T 0x20
14242 #define _CLC2GLS3_G4D3T 0x20
14243 #define _CLC2GLS3_LC2G4D4N 0x40
14244 #define _CLC2GLS3_G4D4N 0x40
14245 #define _CLC2GLS3_LC2G4D4T 0x80
14246 #define _CLC2GLS3_G4D4T 0x80
14248 //==============================================================================
14251 //==============================================================================
14252 // CLC3CON Bits
14254 extern __at(0x0F24) __sfr CLC3CON;
14256 typedef union
14258 struct
14260 unsigned LC3MODE0 : 1;
14261 unsigned LC3MODE1 : 1;
14262 unsigned LC3MODE2 : 1;
14263 unsigned LC3INTN : 1;
14264 unsigned LC3INTP : 1;
14265 unsigned LC3OUT : 1;
14266 unsigned : 1;
14267 unsigned LC3EN : 1;
14270 struct
14272 unsigned MODE0 : 1;
14273 unsigned MODE1 : 1;
14274 unsigned MODE2 : 1;
14275 unsigned INTN : 1;
14276 unsigned INTP : 1;
14277 unsigned OUT : 1;
14278 unsigned : 1;
14279 unsigned EN : 1;
14282 struct
14284 unsigned MODE : 3;
14285 unsigned : 5;
14288 struct
14290 unsigned LC3MODE : 3;
14291 unsigned : 5;
14293 } __CLC3CONbits_t;
14295 extern __at(0x0F24) volatile __CLC3CONbits_t CLC3CONbits;
14297 #define _CLC3CON_LC3MODE0 0x01
14298 #define _CLC3CON_MODE0 0x01
14299 #define _CLC3CON_LC3MODE1 0x02
14300 #define _CLC3CON_MODE1 0x02
14301 #define _CLC3CON_LC3MODE2 0x04
14302 #define _CLC3CON_MODE2 0x04
14303 #define _CLC3CON_LC3INTN 0x08
14304 #define _CLC3CON_INTN 0x08
14305 #define _CLC3CON_LC3INTP 0x10
14306 #define _CLC3CON_INTP 0x10
14307 #define _CLC3CON_LC3OUT 0x20
14308 #define _CLC3CON_OUT 0x20
14309 #define _CLC3CON_LC3EN 0x80
14310 #define _CLC3CON_EN 0x80
14312 //==============================================================================
14315 //==============================================================================
14316 // CLC3POL Bits
14318 extern __at(0x0F25) __sfr CLC3POL;
14320 typedef union
14322 struct
14324 unsigned LC3G1POL : 1;
14325 unsigned LC3G2POL : 1;
14326 unsigned LC3G3POL : 1;
14327 unsigned LC3G4POL : 1;
14328 unsigned : 1;
14329 unsigned : 1;
14330 unsigned : 1;
14331 unsigned LC3POL : 1;
14334 struct
14336 unsigned G1POL : 1;
14337 unsigned G2POL : 1;
14338 unsigned G3POL : 1;
14339 unsigned G4POL : 1;
14340 unsigned : 1;
14341 unsigned : 1;
14342 unsigned : 1;
14343 unsigned POL : 1;
14345 } __CLC3POLbits_t;
14347 extern __at(0x0F25) volatile __CLC3POLbits_t CLC3POLbits;
14349 #define _CLC3POL_LC3G1POL 0x01
14350 #define _CLC3POL_G1POL 0x01
14351 #define _CLC3POL_LC3G2POL 0x02
14352 #define _CLC3POL_G2POL 0x02
14353 #define _CLC3POL_LC3G3POL 0x04
14354 #define _CLC3POL_G3POL 0x04
14355 #define _CLC3POL_LC3G4POL 0x08
14356 #define _CLC3POL_G4POL 0x08
14357 #define _CLC3POL_LC3POL 0x80
14358 #define _CLC3POL_POL 0x80
14360 //==============================================================================
14363 //==============================================================================
14364 // CLC3SEL0 Bits
14366 extern __at(0x0F26) __sfr CLC3SEL0;
14368 typedef union
14370 struct
14372 unsigned LC3D1S0 : 1;
14373 unsigned LC3D1S1 : 1;
14374 unsigned LC3D1S2 : 1;
14375 unsigned LC3D1S3 : 1;
14376 unsigned LC3D1S4 : 1;
14377 unsigned LC3D1S5 : 1;
14378 unsigned : 1;
14379 unsigned : 1;
14382 struct
14384 unsigned D1S0 : 1;
14385 unsigned D1S1 : 1;
14386 unsigned D1S2 : 1;
14387 unsigned D1S3 : 1;
14388 unsigned D1S4 : 1;
14389 unsigned D1S5 : 1;
14390 unsigned : 1;
14391 unsigned : 1;
14394 struct
14396 unsigned D1S : 6;
14397 unsigned : 2;
14400 struct
14402 unsigned LC3D1S : 6;
14403 unsigned : 2;
14405 } __CLC3SEL0bits_t;
14407 extern __at(0x0F26) volatile __CLC3SEL0bits_t CLC3SEL0bits;
14409 #define _CLC3SEL0_LC3D1S0 0x01
14410 #define _CLC3SEL0_D1S0 0x01
14411 #define _CLC3SEL0_LC3D1S1 0x02
14412 #define _CLC3SEL0_D1S1 0x02
14413 #define _CLC3SEL0_LC3D1S2 0x04
14414 #define _CLC3SEL0_D1S2 0x04
14415 #define _CLC3SEL0_LC3D1S3 0x08
14416 #define _CLC3SEL0_D1S3 0x08
14417 #define _CLC3SEL0_LC3D1S4 0x10
14418 #define _CLC3SEL0_D1S4 0x10
14419 #define _CLC3SEL0_LC3D1S5 0x20
14420 #define _CLC3SEL0_D1S5 0x20
14422 //==============================================================================
14425 //==============================================================================
14426 // CLC3SEL1 Bits
14428 extern __at(0x0F27) __sfr CLC3SEL1;
14430 typedef union
14432 struct
14434 unsigned LC3D2S0 : 1;
14435 unsigned LC3D2S1 : 1;
14436 unsigned LC3D2S2 : 1;
14437 unsigned LC3D2S3 : 1;
14438 unsigned LC3D2S4 : 1;
14439 unsigned LC3D2S5 : 1;
14440 unsigned : 1;
14441 unsigned : 1;
14444 struct
14446 unsigned D2S0 : 1;
14447 unsigned D2S1 : 1;
14448 unsigned D2S2 : 1;
14449 unsigned D2S3 : 1;
14450 unsigned D2S4 : 1;
14451 unsigned D2S5 : 1;
14452 unsigned : 1;
14453 unsigned : 1;
14456 struct
14458 unsigned LC3D2S : 6;
14459 unsigned : 2;
14462 struct
14464 unsigned D2S : 6;
14465 unsigned : 2;
14467 } __CLC3SEL1bits_t;
14469 extern __at(0x0F27) volatile __CLC3SEL1bits_t CLC3SEL1bits;
14471 #define _CLC3SEL1_LC3D2S0 0x01
14472 #define _CLC3SEL1_D2S0 0x01
14473 #define _CLC3SEL1_LC3D2S1 0x02
14474 #define _CLC3SEL1_D2S1 0x02
14475 #define _CLC3SEL1_LC3D2S2 0x04
14476 #define _CLC3SEL1_D2S2 0x04
14477 #define _CLC3SEL1_LC3D2S3 0x08
14478 #define _CLC3SEL1_D2S3 0x08
14479 #define _CLC3SEL1_LC3D2S4 0x10
14480 #define _CLC3SEL1_D2S4 0x10
14481 #define _CLC3SEL1_LC3D2S5 0x20
14482 #define _CLC3SEL1_D2S5 0x20
14484 //==============================================================================
14487 //==============================================================================
14488 // CLC3SEL2 Bits
14490 extern __at(0x0F28) __sfr CLC3SEL2;
14492 typedef union
14494 struct
14496 unsigned LC3D3S0 : 1;
14497 unsigned LC3D3S1 : 1;
14498 unsigned LC3D3S2 : 1;
14499 unsigned LC3D3S3 : 1;
14500 unsigned LC3D3S4 : 1;
14501 unsigned LC3D3S5 : 1;
14502 unsigned : 1;
14503 unsigned : 1;
14506 struct
14508 unsigned D3S0 : 1;
14509 unsigned D3S1 : 1;
14510 unsigned D3S2 : 1;
14511 unsigned D3S3 : 1;
14512 unsigned D3S4 : 1;
14513 unsigned D3S5 : 1;
14514 unsigned : 1;
14515 unsigned : 1;
14518 struct
14520 unsigned D3S : 6;
14521 unsigned : 2;
14524 struct
14526 unsigned LC3D3S : 6;
14527 unsigned : 2;
14529 } __CLC3SEL2bits_t;
14531 extern __at(0x0F28) volatile __CLC3SEL2bits_t CLC3SEL2bits;
14533 #define _CLC3SEL2_LC3D3S0 0x01
14534 #define _CLC3SEL2_D3S0 0x01
14535 #define _CLC3SEL2_LC3D3S1 0x02
14536 #define _CLC3SEL2_D3S1 0x02
14537 #define _CLC3SEL2_LC3D3S2 0x04
14538 #define _CLC3SEL2_D3S2 0x04
14539 #define _CLC3SEL2_LC3D3S3 0x08
14540 #define _CLC3SEL2_D3S3 0x08
14541 #define _CLC3SEL2_LC3D3S4 0x10
14542 #define _CLC3SEL2_D3S4 0x10
14543 #define _CLC3SEL2_LC3D3S5 0x20
14544 #define _CLC3SEL2_D3S5 0x20
14546 //==============================================================================
14549 //==============================================================================
14550 // CLC3SEL3 Bits
14552 extern __at(0x0F29) __sfr CLC3SEL3;
14554 typedef union
14556 struct
14558 unsigned LC3D4S0 : 1;
14559 unsigned LC3D4S1 : 1;
14560 unsigned LC3D4S2 : 1;
14561 unsigned LC3D4S3 : 1;
14562 unsigned LC3D4S4 : 1;
14563 unsigned LC3D4S5 : 1;
14564 unsigned : 1;
14565 unsigned : 1;
14568 struct
14570 unsigned D4S0 : 1;
14571 unsigned D4S1 : 1;
14572 unsigned D4S2 : 1;
14573 unsigned D4S3 : 1;
14574 unsigned D4S4 : 1;
14575 unsigned D4S5 : 1;
14576 unsigned : 1;
14577 unsigned : 1;
14580 struct
14582 unsigned LC3D4S : 6;
14583 unsigned : 2;
14586 struct
14588 unsigned D4S : 6;
14589 unsigned : 2;
14591 } __CLC3SEL3bits_t;
14593 extern __at(0x0F29) volatile __CLC3SEL3bits_t CLC3SEL3bits;
14595 #define _CLC3SEL3_LC3D4S0 0x01
14596 #define _CLC3SEL3_D4S0 0x01
14597 #define _CLC3SEL3_LC3D4S1 0x02
14598 #define _CLC3SEL3_D4S1 0x02
14599 #define _CLC3SEL3_LC3D4S2 0x04
14600 #define _CLC3SEL3_D4S2 0x04
14601 #define _CLC3SEL3_LC3D4S3 0x08
14602 #define _CLC3SEL3_D4S3 0x08
14603 #define _CLC3SEL3_LC3D4S4 0x10
14604 #define _CLC3SEL3_D4S4 0x10
14605 #define _CLC3SEL3_LC3D4S5 0x20
14606 #define _CLC3SEL3_D4S5 0x20
14608 //==============================================================================
14611 //==============================================================================
14612 // CLC3GLS0 Bits
14614 extern __at(0x0F2A) __sfr CLC3GLS0;
14616 typedef union
14618 struct
14620 unsigned LC3G1D1N : 1;
14621 unsigned LC3G1D1T : 1;
14622 unsigned LC3G1D2N : 1;
14623 unsigned LC3G1D2T : 1;
14624 unsigned LC3G1D3N : 1;
14625 unsigned LC3G1D3T : 1;
14626 unsigned LC3G1D4N : 1;
14627 unsigned LC3G1D4T : 1;
14630 struct
14632 unsigned D1N : 1;
14633 unsigned D1T : 1;
14634 unsigned D2N : 1;
14635 unsigned D2T : 1;
14636 unsigned D3N : 1;
14637 unsigned D3T : 1;
14638 unsigned D4N : 1;
14639 unsigned D4T : 1;
14641 } __CLC3GLS0bits_t;
14643 extern __at(0x0F2A) volatile __CLC3GLS0bits_t CLC3GLS0bits;
14645 #define _CLC3GLS0_LC3G1D1N 0x01
14646 #define _CLC3GLS0_D1N 0x01
14647 #define _CLC3GLS0_LC3G1D1T 0x02
14648 #define _CLC3GLS0_D1T 0x02
14649 #define _CLC3GLS0_LC3G1D2N 0x04
14650 #define _CLC3GLS0_D2N 0x04
14651 #define _CLC3GLS0_LC3G1D2T 0x08
14652 #define _CLC3GLS0_D2T 0x08
14653 #define _CLC3GLS0_LC3G1D3N 0x10
14654 #define _CLC3GLS0_D3N 0x10
14655 #define _CLC3GLS0_LC3G1D3T 0x20
14656 #define _CLC3GLS0_D3T 0x20
14657 #define _CLC3GLS0_LC3G1D4N 0x40
14658 #define _CLC3GLS0_D4N 0x40
14659 #define _CLC3GLS0_LC3G1D4T 0x80
14660 #define _CLC3GLS0_D4T 0x80
14662 //==============================================================================
14665 //==============================================================================
14666 // CLC3GLS1 Bits
14668 extern __at(0x0F2B) __sfr CLC3GLS1;
14670 typedef union
14672 struct
14674 unsigned LC3G2D1N : 1;
14675 unsigned LC3G2D1T : 1;
14676 unsigned LC3G2D2N : 1;
14677 unsigned LC3G2D2T : 1;
14678 unsigned LC3G2D3N : 1;
14679 unsigned LC3G2D3T : 1;
14680 unsigned LC3G2D4N : 1;
14681 unsigned LC3G2D4T : 1;
14684 struct
14686 unsigned D1N : 1;
14687 unsigned D1T : 1;
14688 unsigned D2N : 1;
14689 unsigned D2T : 1;
14690 unsigned D3N : 1;
14691 unsigned D3T : 1;
14692 unsigned D4N : 1;
14693 unsigned D4T : 1;
14695 } __CLC3GLS1bits_t;
14697 extern __at(0x0F2B) volatile __CLC3GLS1bits_t CLC3GLS1bits;
14699 #define _CLC3GLS1_LC3G2D1N 0x01
14700 #define _CLC3GLS1_D1N 0x01
14701 #define _CLC3GLS1_LC3G2D1T 0x02
14702 #define _CLC3GLS1_D1T 0x02
14703 #define _CLC3GLS1_LC3G2D2N 0x04
14704 #define _CLC3GLS1_D2N 0x04
14705 #define _CLC3GLS1_LC3G2D2T 0x08
14706 #define _CLC3GLS1_D2T 0x08
14707 #define _CLC3GLS1_LC3G2D3N 0x10
14708 #define _CLC3GLS1_D3N 0x10
14709 #define _CLC3GLS1_LC3G2D3T 0x20
14710 #define _CLC3GLS1_D3T 0x20
14711 #define _CLC3GLS1_LC3G2D4N 0x40
14712 #define _CLC3GLS1_D4N 0x40
14713 #define _CLC3GLS1_LC3G2D4T 0x80
14714 #define _CLC3GLS1_D4T 0x80
14716 //==============================================================================
14719 //==============================================================================
14720 // CLC3GLS2 Bits
14722 extern __at(0x0F2C) __sfr CLC3GLS2;
14724 typedef union
14726 struct
14728 unsigned LC3G3D1N : 1;
14729 unsigned LC3G3D1T : 1;
14730 unsigned LC3G3D2N : 1;
14731 unsigned LC3G3D2T : 1;
14732 unsigned LC3G3D3N : 1;
14733 unsigned LC3G3D3T : 1;
14734 unsigned LC3G3D4N : 1;
14735 unsigned LC3G3D4T : 1;
14738 struct
14740 unsigned D1N : 1;
14741 unsigned D1T : 1;
14742 unsigned D2N : 1;
14743 unsigned D2T : 1;
14744 unsigned D3N : 1;
14745 unsigned D3T : 1;
14746 unsigned D4N : 1;
14747 unsigned D4T : 1;
14749 } __CLC3GLS2bits_t;
14751 extern __at(0x0F2C) volatile __CLC3GLS2bits_t CLC3GLS2bits;
14753 #define _CLC3GLS2_LC3G3D1N 0x01
14754 #define _CLC3GLS2_D1N 0x01
14755 #define _CLC3GLS2_LC3G3D1T 0x02
14756 #define _CLC3GLS2_D1T 0x02
14757 #define _CLC3GLS2_LC3G3D2N 0x04
14758 #define _CLC3GLS2_D2N 0x04
14759 #define _CLC3GLS2_LC3G3D2T 0x08
14760 #define _CLC3GLS2_D2T 0x08
14761 #define _CLC3GLS2_LC3G3D3N 0x10
14762 #define _CLC3GLS2_D3N 0x10
14763 #define _CLC3GLS2_LC3G3D3T 0x20
14764 #define _CLC3GLS2_D3T 0x20
14765 #define _CLC3GLS2_LC3G3D4N 0x40
14766 #define _CLC3GLS2_D4N 0x40
14767 #define _CLC3GLS2_LC3G3D4T 0x80
14768 #define _CLC3GLS2_D4T 0x80
14770 //==============================================================================
14773 //==============================================================================
14774 // CLC3GLS3 Bits
14776 extern __at(0x0F2D) __sfr CLC3GLS3;
14778 typedef union
14780 struct
14782 unsigned LC3G4D1N : 1;
14783 unsigned LC3G4D1T : 1;
14784 unsigned LC3G4D2N : 1;
14785 unsigned LC3G4D2T : 1;
14786 unsigned LC3G4D3N : 1;
14787 unsigned LC3G4D3T : 1;
14788 unsigned LC3G4D4N : 1;
14789 unsigned LC3G4D4T : 1;
14792 struct
14794 unsigned G4D1N : 1;
14795 unsigned G4D1T : 1;
14796 unsigned G4D2N : 1;
14797 unsigned G4D2T : 1;
14798 unsigned G4D3N : 1;
14799 unsigned G4D3T : 1;
14800 unsigned G4D4N : 1;
14801 unsigned G4D4T : 1;
14803 } __CLC3GLS3bits_t;
14805 extern __at(0x0F2D) volatile __CLC3GLS3bits_t CLC3GLS3bits;
14807 #define _CLC3GLS3_LC3G4D1N 0x01
14808 #define _CLC3GLS3_G4D1N 0x01
14809 #define _CLC3GLS3_LC3G4D1T 0x02
14810 #define _CLC3GLS3_G4D1T 0x02
14811 #define _CLC3GLS3_LC3G4D2N 0x04
14812 #define _CLC3GLS3_G4D2N 0x04
14813 #define _CLC3GLS3_LC3G4D2T 0x08
14814 #define _CLC3GLS3_G4D2T 0x08
14815 #define _CLC3GLS3_LC3G4D3N 0x10
14816 #define _CLC3GLS3_G4D3N 0x10
14817 #define _CLC3GLS3_LC3G4D3T 0x20
14818 #define _CLC3GLS3_G4D3T 0x20
14819 #define _CLC3GLS3_LC3G4D4N 0x40
14820 #define _CLC3GLS3_G4D4N 0x40
14821 #define _CLC3GLS3_LC3G4D4T 0x80
14822 #define _CLC3GLS3_G4D4T 0x80
14824 //==============================================================================
14827 //==============================================================================
14828 // CLC4CON Bits
14830 extern __at(0x0F2E) __sfr CLC4CON;
14832 typedef union
14834 struct
14836 unsigned LC4MODE0 : 1;
14837 unsigned LC4MODE1 : 1;
14838 unsigned LC4MODE2 : 1;
14839 unsigned LC4INTN : 1;
14840 unsigned LC4INTP : 1;
14841 unsigned LC4OUT : 1;
14842 unsigned : 1;
14843 unsigned LC4EN : 1;
14846 struct
14848 unsigned MODE0 : 1;
14849 unsigned MODE1 : 1;
14850 unsigned MODE2 : 1;
14851 unsigned INTN : 1;
14852 unsigned INTP : 1;
14853 unsigned OUT : 1;
14854 unsigned : 1;
14855 unsigned EN : 1;
14858 struct
14860 unsigned MODE : 3;
14861 unsigned : 5;
14864 struct
14866 unsigned LC4MODE : 3;
14867 unsigned : 5;
14869 } __CLC4CONbits_t;
14871 extern __at(0x0F2E) volatile __CLC4CONbits_t CLC4CONbits;
14873 #define _CLC4CON_LC4MODE0 0x01
14874 #define _CLC4CON_MODE0 0x01
14875 #define _CLC4CON_LC4MODE1 0x02
14876 #define _CLC4CON_MODE1 0x02
14877 #define _CLC4CON_LC4MODE2 0x04
14878 #define _CLC4CON_MODE2 0x04
14879 #define _CLC4CON_LC4INTN 0x08
14880 #define _CLC4CON_INTN 0x08
14881 #define _CLC4CON_LC4INTP 0x10
14882 #define _CLC4CON_INTP 0x10
14883 #define _CLC4CON_LC4OUT 0x20
14884 #define _CLC4CON_OUT 0x20
14885 #define _CLC4CON_LC4EN 0x80
14886 #define _CLC4CON_EN 0x80
14888 //==============================================================================
14891 //==============================================================================
14892 // CLC4POL Bits
14894 extern __at(0x0F2F) __sfr CLC4POL;
14896 typedef union
14898 struct
14900 unsigned LC4G1POL : 1;
14901 unsigned LC4G2POL : 1;
14902 unsigned LC4G3POL : 1;
14903 unsigned LC4G4POL : 1;
14904 unsigned : 1;
14905 unsigned : 1;
14906 unsigned : 1;
14907 unsigned LC4POL : 1;
14910 struct
14912 unsigned G1POL : 1;
14913 unsigned G2POL : 1;
14914 unsigned G3POL : 1;
14915 unsigned G4POL : 1;
14916 unsigned : 1;
14917 unsigned : 1;
14918 unsigned : 1;
14919 unsigned POL : 1;
14921 } __CLC4POLbits_t;
14923 extern __at(0x0F2F) volatile __CLC4POLbits_t CLC4POLbits;
14925 #define _CLC4POL_LC4G1POL 0x01
14926 #define _CLC4POL_G1POL 0x01
14927 #define _CLC4POL_LC4G2POL 0x02
14928 #define _CLC4POL_G2POL 0x02
14929 #define _CLC4POL_LC4G3POL 0x04
14930 #define _CLC4POL_G3POL 0x04
14931 #define _CLC4POL_LC4G4POL 0x08
14932 #define _CLC4POL_G4POL 0x08
14933 #define _CLC4POL_LC4POL 0x80
14934 #define _CLC4POL_POL 0x80
14936 //==============================================================================
14939 //==============================================================================
14940 // CLC4SEL0 Bits
14942 extern __at(0x0F30) __sfr CLC4SEL0;
14944 typedef union
14946 struct
14948 unsigned LC4D1S0 : 1;
14949 unsigned LC4D1S1 : 1;
14950 unsigned LC4D1S2 : 1;
14951 unsigned LC4D1S3 : 1;
14952 unsigned LC4D1S4 : 1;
14953 unsigned LC4D1S5 : 1;
14954 unsigned : 1;
14955 unsigned : 1;
14958 struct
14960 unsigned D1S0 : 1;
14961 unsigned D1S1 : 1;
14962 unsigned D1S2 : 1;
14963 unsigned D1S3 : 1;
14964 unsigned D1S4 : 1;
14965 unsigned D1S5 : 1;
14966 unsigned : 1;
14967 unsigned : 1;
14970 struct
14972 unsigned LC4D1S : 6;
14973 unsigned : 2;
14976 struct
14978 unsigned D1S : 6;
14979 unsigned : 2;
14981 } __CLC4SEL0bits_t;
14983 extern __at(0x0F30) volatile __CLC4SEL0bits_t CLC4SEL0bits;
14985 #define _CLC4SEL0_LC4D1S0 0x01
14986 #define _CLC4SEL0_D1S0 0x01
14987 #define _CLC4SEL0_LC4D1S1 0x02
14988 #define _CLC4SEL0_D1S1 0x02
14989 #define _CLC4SEL0_LC4D1S2 0x04
14990 #define _CLC4SEL0_D1S2 0x04
14991 #define _CLC4SEL0_LC4D1S3 0x08
14992 #define _CLC4SEL0_D1S3 0x08
14993 #define _CLC4SEL0_LC4D1S4 0x10
14994 #define _CLC4SEL0_D1S4 0x10
14995 #define _CLC4SEL0_LC4D1S5 0x20
14996 #define _CLC4SEL0_D1S5 0x20
14998 //==============================================================================
15001 //==============================================================================
15002 // CLC4SEL1 Bits
15004 extern __at(0x0F31) __sfr CLC4SEL1;
15006 typedef union
15008 struct
15010 unsigned LC4D2S0 : 1;
15011 unsigned LC4D2S1 : 1;
15012 unsigned LC4D2S2 : 1;
15013 unsigned LC4D2S3 : 1;
15014 unsigned LC4D2S4 : 1;
15015 unsigned LC4D2S5 : 1;
15016 unsigned : 1;
15017 unsigned : 1;
15020 struct
15022 unsigned D2S0 : 1;
15023 unsigned D2S1 : 1;
15024 unsigned D2S2 : 1;
15025 unsigned D2S3 : 1;
15026 unsigned D2S4 : 1;
15027 unsigned D2S5 : 1;
15028 unsigned : 1;
15029 unsigned : 1;
15032 struct
15034 unsigned LC4D2S : 6;
15035 unsigned : 2;
15038 struct
15040 unsigned D2S : 6;
15041 unsigned : 2;
15043 } __CLC4SEL1bits_t;
15045 extern __at(0x0F31) volatile __CLC4SEL1bits_t CLC4SEL1bits;
15047 #define _CLC4SEL1_LC4D2S0 0x01
15048 #define _CLC4SEL1_D2S0 0x01
15049 #define _CLC4SEL1_LC4D2S1 0x02
15050 #define _CLC4SEL1_D2S1 0x02
15051 #define _CLC4SEL1_LC4D2S2 0x04
15052 #define _CLC4SEL1_D2S2 0x04
15053 #define _CLC4SEL1_LC4D2S3 0x08
15054 #define _CLC4SEL1_D2S3 0x08
15055 #define _CLC4SEL1_LC4D2S4 0x10
15056 #define _CLC4SEL1_D2S4 0x10
15057 #define _CLC4SEL1_LC4D2S5 0x20
15058 #define _CLC4SEL1_D2S5 0x20
15060 //==============================================================================
15063 //==============================================================================
15064 // CLC4SEL2 Bits
15066 extern __at(0x0F32) __sfr CLC4SEL2;
15068 typedef union
15070 struct
15072 unsigned LC4D3S0 : 1;
15073 unsigned LC4D3S1 : 1;
15074 unsigned LC4D3S2 : 1;
15075 unsigned LC4D3S3 : 1;
15076 unsigned LC4D3S4 : 1;
15077 unsigned LC4D3S5 : 1;
15078 unsigned : 1;
15079 unsigned : 1;
15082 struct
15084 unsigned D3S0 : 1;
15085 unsigned D3S1 : 1;
15086 unsigned D3S2 : 1;
15087 unsigned D3S3 : 1;
15088 unsigned D3S4 : 1;
15089 unsigned D3S5 : 1;
15090 unsigned : 1;
15091 unsigned : 1;
15094 struct
15096 unsigned LC4D3S : 6;
15097 unsigned : 2;
15100 struct
15102 unsigned D3S : 6;
15103 unsigned : 2;
15105 } __CLC4SEL2bits_t;
15107 extern __at(0x0F32) volatile __CLC4SEL2bits_t CLC4SEL2bits;
15109 #define _CLC4SEL2_LC4D3S0 0x01
15110 #define _CLC4SEL2_D3S0 0x01
15111 #define _CLC4SEL2_LC4D3S1 0x02
15112 #define _CLC4SEL2_D3S1 0x02
15113 #define _CLC4SEL2_LC4D3S2 0x04
15114 #define _CLC4SEL2_D3S2 0x04
15115 #define _CLC4SEL2_LC4D3S3 0x08
15116 #define _CLC4SEL2_D3S3 0x08
15117 #define _CLC4SEL2_LC4D3S4 0x10
15118 #define _CLC4SEL2_D3S4 0x10
15119 #define _CLC4SEL2_LC4D3S5 0x20
15120 #define _CLC4SEL2_D3S5 0x20
15122 //==============================================================================
15125 //==============================================================================
15126 // CLC4SEL3 Bits
15128 extern __at(0x0F33) __sfr CLC4SEL3;
15130 typedef union
15132 struct
15134 unsigned LC4D4S0 : 1;
15135 unsigned LC4D4S1 : 1;
15136 unsigned LC4D4S2 : 1;
15137 unsigned LC4D4S3 : 1;
15138 unsigned LC4D4S4 : 1;
15139 unsigned LC4D4S5 : 1;
15140 unsigned : 1;
15141 unsigned : 1;
15144 struct
15146 unsigned D4S0 : 1;
15147 unsigned D4S1 : 1;
15148 unsigned D4S2 : 1;
15149 unsigned D4S3 : 1;
15150 unsigned D4S4 : 1;
15151 unsigned D4S5 : 1;
15152 unsigned : 1;
15153 unsigned : 1;
15156 struct
15158 unsigned LC4D4S : 6;
15159 unsigned : 2;
15162 struct
15164 unsigned D4S : 6;
15165 unsigned : 2;
15167 } __CLC4SEL3bits_t;
15169 extern __at(0x0F33) volatile __CLC4SEL3bits_t CLC4SEL3bits;
15171 #define _CLC4SEL3_LC4D4S0 0x01
15172 #define _CLC4SEL3_D4S0 0x01
15173 #define _CLC4SEL3_LC4D4S1 0x02
15174 #define _CLC4SEL3_D4S1 0x02
15175 #define _CLC4SEL3_LC4D4S2 0x04
15176 #define _CLC4SEL3_D4S2 0x04
15177 #define _CLC4SEL3_LC4D4S3 0x08
15178 #define _CLC4SEL3_D4S3 0x08
15179 #define _CLC4SEL3_LC4D4S4 0x10
15180 #define _CLC4SEL3_D4S4 0x10
15181 #define _CLC4SEL3_LC4D4S5 0x20
15182 #define _CLC4SEL3_D4S5 0x20
15184 //==============================================================================
15187 //==============================================================================
15188 // CLC4GLS0 Bits
15190 extern __at(0x0F34) __sfr CLC4GLS0;
15192 typedef union
15194 struct
15196 unsigned LC4G1D1N : 1;
15197 unsigned LC4G1D1T : 1;
15198 unsigned LC4G1D2N : 1;
15199 unsigned LC4G1D2T : 1;
15200 unsigned LC4G1D3N : 1;
15201 unsigned LC4G1D3T : 1;
15202 unsigned LC4G1D4N : 1;
15203 unsigned LC4G1D4T : 1;
15206 struct
15208 unsigned D1N : 1;
15209 unsigned D1T : 1;
15210 unsigned D2N : 1;
15211 unsigned D2T : 1;
15212 unsigned D3N : 1;
15213 unsigned D3T : 1;
15214 unsigned D4N : 1;
15215 unsigned D4T : 1;
15217 } __CLC4GLS0bits_t;
15219 extern __at(0x0F34) volatile __CLC4GLS0bits_t CLC4GLS0bits;
15221 #define _CLC4GLS0_LC4G1D1N 0x01
15222 #define _CLC4GLS0_D1N 0x01
15223 #define _CLC4GLS0_LC4G1D1T 0x02
15224 #define _CLC4GLS0_D1T 0x02
15225 #define _CLC4GLS0_LC4G1D2N 0x04
15226 #define _CLC4GLS0_D2N 0x04
15227 #define _CLC4GLS0_LC4G1D2T 0x08
15228 #define _CLC4GLS0_D2T 0x08
15229 #define _CLC4GLS0_LC4G1D3N 0x10
15230 #define _CLC4GLS0_D3N 0x10
15231 #define _CLC4GLS0_LC4G1D3T 0x20
15232 #define _CLC4GLS0_D3T 0x20
15233 #define _CLC4GLS0_LC4G1D4N 0x40
15234 #define _CLC4GLS0_D4N 0x40
15235 #define _CLC4GLS0_LC4G1D4T 0x80
15236 #define _CLC4GLS0_D4T 0x80
15238 //==============================================================================
15241 //==============================================================================
15242 // CLC4GLS1 Bits
15244 extern __at(0x0F35) __sfr CLC4GLS1;
15246 typedef union
15248 struct
15250 unsigned LC4G2D1N : 1;
15251 unsigned LC4G2D1T : 1;
15252 unsigned LC4G2D2N : 1;
15253 unsigned LC4G2D2T : 1;
15254 unsigned LC4G2D3N : 1;
15255 unsigned LC4G2D3T : 1;
15256 unsigned LC4G2D4N : 1;
15257 unsigned LC4G2D4T : 1;
15260 struct
15262 unsigned D1N : 1;
15263 unsigned D1T : 1;
15264 unsigned D2N : 1;
15265 unsigned D2T : 1;
15266 unsigned D3N : 1;
15267 unsigned D3T : 1;
15268 unsigned D4N : 1;
15269 unsigned D4T : 1;
15271 } __CLC4GLS1bits_t;
15273 extern __at(0x0F35) volatile __CLC4GLS1bits_t CLC4GLS1bits;
15275 #define _CLC4GLS1_LC4G2D1N 0x01
15276 #define _CLC4GLS1_D1N 0x01
15277 #define _CLC4GLS1_LC4G2D1T 0x02
15278 #define _CLC4GLS1_D1T 0x02
15279 #define _CLC4GLS1_LC4G2D2N 0x04
15280 #define _CLC4GLS1_D2N 0x04
15281 #define _CLC4GLS1_LC4G2D2T 0x08
15282 #define _CLC4GLS1_D2T 0x08
15283 #define _CLC4GLS1_LC4G2D3N 0x10
15284 #define _CLC4GLS1_D3N 0x10
15285 #define _CLC4GLS1_LC4G2D3T 0x20
15286 #define _CLC4GLS1_D3T 0x20
15287 #define _CLC4GLS1_LC4G2D4N 0x40
15288 #define _CLC4GLS1_D4N 0x40
15289 #define _CLC4GLS1_LC4G2D4T 0x80
15290 #define _CLC4GLS1_D4T 0x80
15292 //==============================================================================
15295 //==============================================================================
15296 // CLC4GLS2 Bits
15298 extern __at(0x0F36) __sfr CLC4GLS2;
15300 typedef union
15302 struct
15304 unsigned LC4G3D1N : 1;
15305 unsigned LC4G3D1T : 1;
15306 unsigned LC4G3D2N : 1;
15307 unsigned LC4G3D2T : 1;
15308 unsigned LC4G3D3N : 1;
15309 unsigned LC4G3D3T : 1;
15310 unsigned LC4G3D4N : 1;
15311 unsigned LC4G3D4T : 1;
15314 struct
15316 unsigned D1N : 1;
15317 unsigned D1T : 1;
15318 unsigned D2N : 1;
15319 unsigned D2T : 1;
15320 unsigned D3N : 1;
15321 unsigned D3T : 1;
15322 unsigned D4N : 1;
15323 unsigned D4T : 1;
15325 } __CLC4GLS2bits_t;
15327 extern __at(0x0F36) volatile __CLC4GLS2bits_t CLC4GLS2bits;
15329 #define _CLC4GLS2_LC4G3D1N 0x01
15330 #define _CLC4GLS2_D1N 0x01
15331 #define _CLC4GLS2_LC4G3D1T 0x02
15332 #define _CLC4GLS2_D1T 0x02
15333 #define _CLC4GLS2_LC4G3D2N 0x04
15334 #define _CLC4GLS2_D2N 0x04
15335 #define _CLC4GLS2_LC4G3D2T 0x08
15336 #define _CLC4GLS2_D2T 0x08
15337 #define _CLC4GLS2_LC4G3D3N 0x10
15338 #define _CLC4GLS2_D3N 0x10
15339 #define _CLC4GLS2_LC4G3D3T 0x20
15340 #define _CLC4GLS2_D3T 0x20
15341 #define _CLC4GLS2_LC4G3D4N 0x40
15342 #define _CLC4GLS2_D4N 0x40
15343 #define _CLC4GLS2_LC4G3D4T 0x80
15344 #define _CLC4GLS2_D4T 0x80
15346 //==============================================================================
15349 //==============================================================================
15350 // CLC4GLS3 Bits
15352 extern __at(0x0F37) __sfr CLC4GLS3;
15354 typedef union
15356 struct
15358 unsigned LC4G4D1N : 1;
15359 unsigned LC4G4D1T : 1;
15360 unsigned LC4G4D2N : 1;
15361 unsigned LC4G4D2T : 1;
15362 unsigned LC4G4D3N : 1;
15363 unsigned LC4G4D3T : 1;
15364 unsigned LC4G4D4N : 1;
15365 unsigned LC4G4D4T : 1;
15368 struct
15370 unsigned G4D1N : 1;
15371 unsigned G4D1T : 1;
15372 unsigned G4D2N : 1;
15373 unsigned G4D2T : 1;
15374 unsigned G4D3N : 1;
15375 unsigned G4D3T : 1;
15376 unsigned G4D4N : 1;
15377 unsigned G4D4T : 1;
15379 } __CLC4GLS3bits_t;
15381 extern __at(0x0F37) volatile __CLC4GLS3bits_t CLC4GLS3bits;
15383 #define _CLC4GLS3_LC4G4D1N 0x01
15384 #define _CLC4GLS3_G4D1N 0x01
15385 #define _CLC4GLS3_LC4G4D1T 0x02
15386 #define _CLC4GLS3_G4D1T 0x02
15387 #define _CLC4GLS3_LC4G4D2N 0x04
15388 #define _CLC4GLS3_G4D2N 0x04
15389 #define _CLC4GLS3_LC4G4D2T 0x08
15390 #define _CLC4GLS3_G4D2T 0x08
15391 #define _CLC4GLS3_LC4G4D3N 0x10
15392 #define _CLC4GLS3_G4D3N 0x10
15393 #define _CLC4GLS3_LC4G4D3T 0x20
15394 #define _CLC4GLS3_G4D3T 0x20
15395 #define _CLC4GLS3_LC4G4D4N 0x40
15396 #define _CLC4GLS3_G4D4N 0x40
15397 #define _CLC4GLS3_LC4G4D4T 0x80
15398 #define _CLC4GLS3_G4D4T 0x80
15400 //==============================================================================
15403 //==============================================================================
15404 // STATUS_SHAD Bits
15406 extern __at(0x0FE4) __sfr STATUS_SHAD;
15408 typedef struct
15410 unsigned C_SHAD : 1;
15411 unsigned DC_SHAD : 1;
15412 unsigned Z_SHAD : 1;
15413 unsigned : 1;
15414 unsigned : 1;
15415 unsigned : 1;
15416 unsigned : 1;
15417 unsigned : 1;
15418 } __STATUS_SHADbits_t;
15420 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
15422 #define _C_SHAD 0x01
15423 #define _DC_SHAD 0x02
15424 #define _Z_SHAD 0x04
15426 //==============================================================================
15428 extern __at(0x0FE5) __sfr WREG_SHAD;
15429 extern __at(0x0FE6) __sfr BSR_SHAD;
15430 extern __at(0x0FE7) __sfr PCLATH_SHAD;
15431 extern __at(0x0FE8) __sfr FSR0L_SHAD;
15432 extern __at(0x0FE9) __sfr FSR0H_SHAD;
15433 extern __at(0x0FEA) __sfr FSR1L_SHAD;
15434 extern __at(0x0FEB) __sfr FSR1H_SHAD;
15435 extern __at(0x0FED) __sfr STKPTR;
15436 extern __at(0x0FEE) __sfr TOSL;
15437 extern __at(0x0FEF) __sfr TOSH;
15439 //==============================================================================
15441 // Configuration Bits
15443 //==============================================================================
15445 #define _CONFIG1 0x8007
15446 #define _CONFIG2 0x8008
15447 #define _CONFIG3 0x8009
15449 //----------------------------- CONFIG1 Options -------------------------------
15451 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
15452 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
15453 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins.
15454 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins.
15455 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins.
15456 #define _PWRTE_ON 0x3FDF // PWRT enabled.
15457 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
15458 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
15459 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
15460 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
15461 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
15462 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
15463 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
15464 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
15465 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
15466 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
15467 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
15468 #define _IESO_OFF 0x2FFF // Internal External Switch Over mode is disabled.
15469 #define _IESO_ON 0x3FFF // Internal External Switch Over mode is enabled.
15470 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
15471 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
15473 //----------------------------- CONFIG2 Options -------------------------------
15475 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by PMCON control.
15476 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by PMCON control.
15477 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by PMCON control.
15478 #define _WRT_OFF 0x3FFF // Write protection off.
15479 #define _PPS1WAY_OFF 0x3FFB // The PPSLOCK bit can be set and cleared repeatedly by software.
15480 #define _PPS1WAY_ON 0x3FFF // The PPSLOCK bit cannot be cleared once it is set by software.
15481 #define _ZCD_ON 0x3F7F // ZCD always enabled.
15482 #define _ZCD_OFF 0x3FFF // ZCD disable. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON.
15483 #define _PLLEN_OFF 0x3EFF // 4x PLL is enabled when software sets the SPLLEN bit.
15484 #define _PLLEN_ON 0x3FFF // 4x PLL is always enabled.
15485 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
15486 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
15487 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
15488 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
15489 #define _LPBOR_ON 0x37FF // Low-Power BOR is enabled.
15490 #define _LPBOR_OFF 0x3FFF // Low-Power BOR is disabled.
15491 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
15492 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
15493 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
15494 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
15496 //----------------------------- CONFIG3 Options -------------------------------
15498 #define _WDTCPS_WDTCPS0 0x3FE0 // 1:32 (1 ms period).
15499 #define _WDTCPS_WDTCPS1 0x3FE1 // 1:64 (2 ms period).
15500 #define _WDTCPS_WDTCPS2 0x3FE2 // 1:128 (4 ms period).
15501 #define _WDTCPS_WDTCPS3 0x3FE3 // 1:256 (8 ms period).
15502 #define _WDTCPS_WDTCPS4 0x3FE4 // 1:512 (16 ms period).
15503 #define _WDTCPS_WDTCPS5 0x3FE5 // 1:1024 (32 ms period).
15504 #define _WDTCPS_WDTCPS6 0x3FE6 // 1:2048 (64 ms period).
15505 #define _WDTCPS_WDTCPS7 0x3FE7 // 1:4096 (128 ms period).
15506 #define _WDTCPS_WDTCPS8 0x3FE8 // 1:8192 (256 ms period).
15507 #define _WDTCPS_WDTCPS9 0x3FE9 // 1:16384 (512 ms period).
15508 #define _WDTCPS_WDTCPSA 0x3FEA // 1:32768 (1 s period).
15509 #define _WDTCPS_WDTCPSB 0x3FEB // 1:65536 (2 s period).
15510 #define _WDTCPS_WDTCPSC 0x3FEC // 1:131072 (4 s period).
15511 #define _WDTCPS_WDTCPSD 0x3FED // 1:262144 (8 s period).
15512 #define _WDTCPS_WDTCPSE 0x3FEE // 1:524299 (16 s period).
15513 #define _WDTCPS_WDTCPSF 0x3FEF // 1:1048576 (32 s period).
15514 #define _WDTCPS_WDTCPS10 0x3FF0 // 1:2097152 (64 s period).
15515 #define _WDTCPS_WDTCPS11 0x3FF1 // 1:4194304 (128 s period).
15516 #define _WDTCPS_WDTCPS12 0x3FF2 // 1:8388608 (256 s period).
15517 #define _WDTCPS_WDTCPS1F 0x3FFF // Software Control (WDTPS).
15518 #define _WDTE_OFF 0x3F9F // WDT disabled.
15519 #define _WDTE_SWDTEN 0x3FBF // WDT controlled by the SWDTEN bit in the WDTCON register.
15520 #define _WDTE_NSLEEP 0x3FDF // WDT enabled while running and disabled in Sleep.
15521 #define _WDTE_ON 0x3FFF // WDT enabled.
15522 #define _WDTCWS_WDTCWS125 0x38FF // 12.5 percent window open time.
15523 #define _WDTCWS_WDTCWS25 0x39FF // 25 percent window open time.
15524 #define _WDTCWS_WDTCWS375 0x3AFF // 37.5 percent window open time.
15525 #define _WDTCWS_WDTCWS50 0x3BFF // 50 percent window open time.
15526 #define _WDTCWS_WDTCWS625 0x3CFF // 62.5 percent window open time.
15527 #define _WDTCWS_WDTCWS75 0x3DFF // 75 percent window open time.
15528 #define _WDTCWS_WDTCWS100 0x3EFF // 100 percent window open time (Legacy WDT).
15529 #define _WDTCWS_WDTCWSSW 0x3FFF // Software WDT window size control (WDTWS bits).
15530 #define _WDTCCS_LFINTOSC 0x07FF // 31.0kHz LFINTOSC.
15531 #define _WDTCCS_MFINTOSC 0x0FFF // 31.25 kHz HFINTOSC (MFINTOSC).
15532 #define _WDTCCS_SWC 0x3FFF // Software control, controlled by WDTCS bits.
15534 //==============================================================================
15536 #define _DEVID1 0x8006
15538 #define _IDLOC0 0x8000
15539 #define _IDLOC1 0x8001
15540 #define _IDLOC2 0x8002
15541 #define _IDLOC3 0x8003
15543 //==============================================================================
15545 #ifndef NO_BIT_DEFINES
15547 #define ADON ADCON0bits.ADON // bit 0
15548 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
15549 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
15550 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
15551 #define CHS0 ADCON0bits.CHS0 // bit 2
15552 #define CHS1 ADCON0bits.CHS1 // bit 3
15553 #define CHS2 ADCON0bits.CHS2 // bit 4
15554 #define CHS3 ADCON0bits.CHS3 // bit 5
15555 #define CHS4 ADCON0bits.CHS4 // bit 6
15557 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
15558 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
15559 #define ADCS0 ADCON1bits.ADCS0 // bit 4
15560 #define ADCS1 ADCON1bits.ADCS1 // bit 5
15561 #define ADCS2 ADCON1bits.ADCS2 // bit 6
15562 #define ADFM ADCON1bits.ADFM // bit 7
15564 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
15565 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
15566 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
15567 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
15569 #define ANSA0 ANSELAbits.ANSA0 // bit 0
15570 #define ANSA1 ANSELAbits.ANSA1 // bit 1
15571 #define ANSA2 ANSELAbits.ANSA2 // bit 2
15572 #define ANSA4 ANSELAbits.ANSA4 // bit 4
15574 #define ANSC0 ANSELCbits.ANSC0 // bit 0
15575 #define ANSC1 ANSELCbits.ANSC1 // bit 1
15576 #define ANSC2 ANSELCbits.ANSC2 // bit 2
15577 #define ANSC3 ANSELCbits.ANSC3 // bit 3
15579 #define AT1CC18 AT1CC1Hbits.AT1CC18 // bit 0, shadows bit in AT1CC1Hbits
15580 #define CC18 AT1CC1Hbits.CC18 // bit 0, shadows bit in AT1CC1Hbits
15581 #define AT1CC19 AT1CC1Hbits.AT1CC19 // bit 1, shadows bit in AT1CC1Hbits
15582 #define CC19 AT1CC1Hbits.CC19 // bit 1, shadows bit in AT1CC1Hbits
15584 #define AT1CC10 AT1CC1Lbits.AT1CC10 // bit 0, shadows bit in AT1CC1Lbits
15585 #define CC10 AT1CC1Lbits.CC10 // bit 0, shadows bit in AT1CC1Lbits
15586 #define AT1CC11 AT1CC1Lbits.AT1CC11 // bit 1, shadows bit in AT1CC1Lbits
15587 #define CC11 AT1CC1Lbits.CC11 // bit 1, shadows bit in AT1CC1Lbits
15588 #define AT1CC12 AT1CC1Lbits.AT1CC12 // bit 2, shadows bit in AT1CC1Lbits
15589 #define CC12 AT1CC1Lbits.CC12 // bit 2, shadows bit in AT1CC1Lbits
15590 #define AT1CC13 AT1CC1Lbits.AT1CC13 // bit 3, shadows bit in AT1CC1Lbits
15591 #define CC13 AT1CC1Lbits.CC13 // bit 3, shadows bit in AT1CC1Lbits
15592 #define AT1CC14 AT1CC1Lbits.AT1CC14 // bit 4, shadows bit in AT1CC1Lbits
15593 #define CC14 AT1CC1Lbits.CC14 // bit 4, shadows bit in AT1CC1Lbits
15594 #define AT1CC15 AT1CC1Lbits.AT1CC15 // bit 5, shadows bit in AT1CC1Lbits
15595 #define CC15 AT1CC1Lbits.CC15 // bit 5, shadows bit in AT1CC1Lbits
15596 #define AT1CC16 AT1CC1Lbits.AT1CC16 // bit 6, shadows bit in AT1CC1Lbits
15597 #define CC16 AT1CC1Lbits.CC16 // bit 6, shadows bit in AT1CC1Lbits
15598 #define AT1CC17 AT1CC1Lbits.AT1CC17 // bit 7, shadows bit in AT1CC1Lbits
15599 #define CC17 AT1CC1Lbits.CC17 // bit 7, shadows bit in AT1CC1Lbits
15601 #define AT1CC28 AT1CC2Hbits.AT1CC28 // bit 0, shadows bit in AT1CC2Hbits
15602 #define CC28 AT1CC2Hbits.CC28 // bit 0, shadows bit in AT1CC2Hbits
15603 #define AT1CC29 AT1CC2Hbits.AT1CC29 // bit 1, shadows bit in AT1CC2Hbits
15604 #define CC29 AT1CC2Hbits.CC29 // bit 1, shadows bit in AT1CC2Hbits
15606 #define AT1CC38 AT1CC3Hbits.AT1CC38 // bit 0, shadows bit in AT1CC3Hbits
15607 #define CC38 AT1CC3Hbits.CC38 // bit 0, shadows bit in AT1CC3Hbits
15608 #define AT1CC39 AT1CC3Hbits.AT1CC39 // bit 1, shadows bit in AT1CC3Hbits
15609 #define CC39 AT1CC3Hbits.CC39 // bit 1, shadows bit in AT1CC3Hbits
15611 #define AT1CC30 AT1CC3Lbits.AT1CC30 // bit 0, shadows bit in AT1CC3Lbits
15612 #define CC30 AT1CC3Lbits.CC30 // bit 0, shadows bit in AT1CC3Lbits
15613 #define AT1CC31 AT1CC3Lbits.AT1CC31 // bit 1, shadows bit in AT1CC3Lbits
15614 #define CC31 AT1CC3Lbits.CC31 // bit 1, shadows bit in AT1CC3Lbits
15615 #define AT1CC32 AT1CC3Lbits.AT1CC32 // bit 2, shadows bit in AT1CC3Lbits
15616 #define CC32 AT1CC3Lbits.CC32 // bit 2, shadows bit in AT1CC3Lbits
15617 #define AT1CC33 AT1CC3Lbits.AT1CC33 // bit 3, shadows bit in AT1CC3Lbits
15618 #define CC33 AT1CC3Lbits.CC33 // bit 3, shadows bit in AT1CC3Lbits
15619 #define AT1CC34 AT1CC3Lbits.AT1CC34 // bit 4, shadows bit in AT1CC3Lbits
15620 #define CC34 AT1CC3Lbits.CC34 // bit 4, shadows bit in AT1CC3Lbits
15621 #define AT1CC35 AT1CC3Lbits.AT1CC35 // bit 5, shadows bit in AT1CC3Lbits
15622 #define CC35 AT1CC3Lbits.CC35 // bit 5, shadows bit in AT1CC3Lbits
15623 #define AT1CC36 AT1CC3Lbits.AT1CC36 // bit 6, shadows bit in AT1CC3Lbits
15624 #define CC36 AT1CC3Lbits.CC36 // bit 6, shadows bit in AT1CC3Lbits
15625 #define AT1CC37 AT1CC3Lbits.AT1CC37 // bit 7, shadows bit in AT1CC3Lbits
15626 #define CC37 AT1CC3Lbits.CC37 // bit 7, shadows bit in AT1CC3Lbits
15628 #define AT1CC1MODE AT1CCON1bits.AT1CC1MODE // bit 0, shadows bit in AT1CCON1bits
15629 #define CC1MODE AT1CCON1bits.CC1MODE // bit 0, shadows bit in AT1CCON1bits
15630 #define AT1CAP1P AT1CCON1bits.AT1CAP1P // bit 3, shadows bit in AT1CCON1bits
15631 #define CAP1P AT1CCON1bits.CAP1P // bit 3, shadows bit in AT1CCON1bits
15632 #define AT1CC1POL AT1CCON1bits.AT1CC1POL // bit 4, shadows bit in AT1CCON1bits
15633 #define CC1POL AT1CCON1bits.CC1POL // bit 4, shadows bit in AT1CCON1bits
15634 #define AT1CC1EN AT1CCON1bits.AT1CC1EN // bit 7, shadows bit in AT1CCON1bits
15635 #define CC1EN AT1CCON1bits.CC1EN // bit 7, shadows bit in AT1CCON1bits
15637 #define AT1CC2MODE AT1CCON2bits.AT1CC2MODE // bit 0, shadows bit in AT1CCON2bits
15638 #define CC2MODE AT1CCON2bits.CC2MODE // bit 0, shadows bit in AT1CCON2bits
15639 #define AT1CAP2P AT1CCON2bits.AT1CAP2P // bit 3, shadows bit in AT1CCON2bits
15640 #define CAP2P AT1CCON2bits.CAP2P // bit 3, shadows bit in AT1CCON2bits
15641 #define AT1CC2POL AT1CCON2bits.AT1CC2POL // bit 4, shadows bit in AT1CCON2bits
15642 #define CC2POL AT1CCON2bits.CC2POL // bit 4, shadows bit in AT1CCON2bits
15643 #define AT1CC2EN AT1CCON2bits.AT1CC2EN // bit 7, shadows bit in AT1CCON2bits
15644 #define CC2EN AT1CCON2bits.CC2EN // bit 7, shadows bit in AT1CCON2bits
15646 #define AT1CC3MODE AT1CCON3bits.AT1CC3MODE // bit 0, shadows bit in AT1CCON3bits
15647 #define CC3MODE AT1CCON3bits.CC3MODE // bit 0, shadows bit in AT1CCON3bits
15648 #define AT1CAP3P AT1CCON3bits.AT1CAP3P // bit 3, shadows bit in AT1CCON3bits
15649 #define CAP3P AT1CCON3bits.CAP3P // bit 3, shadows bit in AT1CCON3bits
15650 #define AT1CC3POL AT1CCON3bits.AT1CC3POL // bit 4, shadows bit in AT1CCON3bits
15651 #define CC3POL AT1CCON3bits.CC3POL // bit 4, shadows bit in AT1CCON3bits
15652 #define AT1CC3EN AT1CCON3bits.AT1CC3EN // bit 7, shadows bit in AT1CCON3bits
15653 #define CC3EN AT1CCON3bits.CC3EN // bit 7, shadows bit in AT1CCON3bits
15655 #define CS AT1CLKbits.CS // bit 0, shadows bit in AT1CLKbits
15656 #define AT1CS AT1CLKbits.AT1CS // bit 0, shadows bit in AT1CLKbits
15657 #define CS0 AT1CLKbits.CS0 // bit 0, shadows bit in AT1CLKbits
15658 #define AT1CS0 AT1CLKbits.AT1CS0 // bit 0, shadows bit in AT1CLKbits
15660 #define MODE AT1CON0bits.MODE // bit 0, shadows bit in AT1CON0bits
15661 #define AT1MODE AT1CON0bits.AT1MODE // bit 0, shadows bit in AT1CON0bits
15662 #define APMOD AT1CON0bits.APMOD // bit 1, shadows bit in AT1CON0bits
15663 #define AT1APMOD AT1CON0bits.AT1APMOD // bit 1, shadows bit in AT1CON0bits
15664 #define POL AT1CON0bits.POL // bit 3, shadows bit in AT1CON0bits
15665 #define AT1POL AT1CON0bits.AT1POL // bit 3, shadows bit in AT1CON0bits
15666 #define PS0 AT1CON0bits.PS0 // bit 4, shadows bit in AT1CON0bits
15667 #define AT1PS0 AT1CON0bits.AT1PS0 // bit 4, shadows bit in AT1CON0bits
15668 #define PS1 AT1CON0bits.PS1 // bit 5, shadows bit in AT1CON0bits
15669 #define AT1PS1 AT1CON0bits.AT1PS1 // bit 5, shadows bit in AT1CON0bits
15670 #define PREC AT1CON0bits.PREC // bit 6, shadows bit in AT1CON0bits
15671 #define AT1PREC AT1CON0bits.AT1PREC // bit 6, shadows bit in AT1CON0bits
15672 #define EN AT1CON0bits.EN // bit 7, shadows bit in AT1CON0bits
15673 #define AT1EN AT1CON0bits.AT1EN // bit 7, shadows bit in AT1CON0bits
15675 #define VALID AT1CON1bits.VALID // bit 0, shadows bit in AT1CON1bits
15676 #define AT1VALID AT1CON1bits.AT1VALID // bit 0, shadows bit in AT1CON1bits
15677 #define ACCS AT1CON1bits.ACCS // bit 1, shadows bit in AT1CON1bits
15678 #define AT1ACCS AT1CON1bits.AT1ACCS // bit 1, shadows bit in AT1CON1bits
15679 #define MPP AT1CON1bits.MPP // bit 2, shadows bit in AT1CON1bits
15680 #define AT1MPP AT1CON1bits.AT1MPP // bit 2, shadows bit in AT1CON1bits
15681 #define PRP AT1CON1bits.PRP // bit 4, shadows bit in AT1CON1bits
15682 #define AT1PRP AT1CON1bits.AT1PRP // bit 4, shadows bit in AT1CON1bits
15683 #define PHP AT1CON1bits.PHP // bit 6, shadows bit in AT1CON1bits
15684 #define AT1PHP AT1CON1bits.AT1PHP // bit 6, shadows bit in AT1CON1bits
15686 #define AT1CP1S0 AT1CSEL1bits.AT1CP1S0 // bit 0, shadows bit in AT1CSEL1bits
15687 #define CP1S0 AT1CSEL1bits.CP1S0 // bit 0, shadows bit in AT1CSEL1bits
15688 #define AT1CP1S1 AT1CSEL1bits.AT1CP1S1 // bit 1, shadows bit in AT1CSEL1bits
15689 #define CP1S1 AT1CSEL1bits.CP1S1 // bit 1, shadows bit in AT1CSEL1bits
15690 #define AT1CP1S2 AT1CSEL1bits.AT1CP1S2 // bit 2, shadows bit in AT1CSEL1bits
15691 #define CP1S2 AT1CSEL1bits.CP1S2 // bit 2, shadows bit in AT1CSEL1bits
15693 #define AT1CP2S0 AT1CSEL2bits.AT1CP2S0 // bit 0, shadows bit in AT1CSEL2bits
15694 #define CP2S0 AT1CSEL2bits.CP2S0 // bit 0, shadows bit in AT1CSEL2bits
15695 #define AT1CP2S1 AT1CSEL2bits.AT1CP2S1 // bit 1, shadows bit in AT1CSEL2bits
15696 #define CP2S1 AT1CSEL2bits.CP2S1 // bit 1, shadows bit in AT1CSEL2bits
15697 #define AT1CP2S2 AT1CSEL2bits.AT1CP2S2 // bit 2, shadows bit in AT1CSEL2bits
15698 #define CP2S2 AT1CSEL2bits.CP2S2 // bit 2, shadows bit in AT1CSEL2bits
15700 #define AT1CP3S0 AT1CSEL3bits.AT1CP3S0 // bit 0, shadows bit in AT1CSEL3bits
15701 #define CP3S0 AT1CSEL3bits.CP3S0 // bit 0, shadows bit in AT1CSEL3bits
15702 #define AT1CP3S1 AT1CSEL3bits.AT1CP3S1 // bit 1, shadows bit in AT1CSEL3bits
15703 #define CP3S1 AT1CSEL3bits.CP3S1 // bit 1, shadows bit in AT1CSEL3bits
15704 #define AT1CP3S2 AT1CSEL3bits.AT1CP3S2 // bit 2, shadows bit in AT1CSEL3bits
15705 #define CP3S2 AT1CSEL3bits.CP3S2 // bit 2, shadows bit in AT1CSEL3bits
15707 #define AT1ERR8 AT1ERRHbits.AT1ERR8 // bit 0, shadows bit in AT1ERRHbits
15708 #define ERR8 AT1ERRHbits.ERR8 // bit 0, shadows bit in AT1ERRHbits
15709 #define ERRH0 AT1ERRHbits.ERRH0 // bit 0, shadows bit in AT1ERRHbits
15710 #define AT1ERR9 AT1ERRHbits.AT1ERR9 // bit 1, shadows bit in AT1ERRHbits
15711 #define ERR9 AT1ERRHbits.ERR9 // bit 1, shadows bit in AT1ERRHbits
15712 #define ERRH1 AT1ERRHbits.ERRH1 // bit 1, shadows bit in AT1ERRHbits
15713 #define AT1ERR10 AT1ERRHbits.AT1ERR10 // bit 2, shadows bit in AT1ERRHbits
15714 #define ERR10 AT1ERRHbits.ERR10 // bit 2, shadows bit in AT1ERRHbits
15715 #define ERRH2 AT1ERRHbits.ERRH2 // bit 2, shadows bit in AT1ERRHbits
15716 #define AT1ERR11 AT1ERRHbits.AT1ERR11 // bit 3, shadows bit in AT1ERRHbits
15717 #define ERR11 AT1ERRHbits.ERR11 // bit 3, shadows bit in AT1ERRHbits
15718 #define ERRH3 AT1ERRHbits.ERRH3 // bit 3, shadows bit in AT1ERRHbits
15719 #define AT1ERR12 AT1ERRHbits.AT1ERR12 // bit 4, shadows bit in AT1ERRHbits
15720 #define ERR12 AT1ERRHbits.ERR12 // bit 4, shadows bit in AT1ERRHbits
15721 #define ERRH4 AT1ERRHbits.ERRH4 // bit 4, shadows bit in AT1ERRHbits
15722 #define AT1ERR13 AT1ERRHbits.AT1ERR13 // bit 5, shadows bit in AT1ERRHbits
15723 #define ERR13 AT1ERRHbits.ERR13 // bit 5, shadows bit in AT1ERRHbits
15724 #define ERRH5 AT1ERRHbits.ERRH5 // bit 5, shadows bit in AT1ERRHbits
15725 #define AT1ERR14 AT1ERRHbits.AT1ERR14 // bit 6, shadows bit in AT1ERRHbits
15726 #define ERR14 AT1ERRHbits.ERR14 // bit 6, shadows bit in AT1ERRHbits
15727 #define ERRH6 AT1ERRHbits.ERRH6 // bit 6, shadows bit in AT1ERRHbits
15728 #define AT1ERR15 AT1ERRHbits.AT1ERR15 // bit 7, shadows bit in AT1ERRHbits
15729 #define ERR15 AT1ERRHbits.ERR15 // bit 7, shadows bit in AT1ERRHbits
15730 #define ERRH7 AT1ERRHbits.ERRH7 // bit 7, shadows bit in AT1ERRHbits
15732 #define AT1ERR0 AT1ERRLbits.AT1ERR0 // bit 0, shadows bit in AT1ERRLbits
15733 #define ERR0 AT1ERRLbits.ERR0 // bit 0, shadows bit in AT1ERRLbits
15734 #define ERRL0 AT1ERRLbits.ERRL0 // bit 0, shadows bit in AT1ERRLbits
15735 #define AT1ERR1 AT1ERRLbits.AT1ERR1 // bit 1, shadows bit in AT1ERRLbits
15736 #define ERR1 AT1ERRLbits.ERR1 // bit 1, shadows bit in AT1ERRLbits
15737 #define ERRL1 AT1ERRLbits.ERRL1 // bit 1, shadows bit in AT1ERRLbits
15738 #define AT1ERR2 AT1ERRLbits.AT1ERR2 // bit 2, shadows bit in AT1ERRLbits
15739 #define ERR2 AT1ERRLbits.ERR2 // bit 2, shadows bit in AT1ERRLbits
15740 #define ERRL2 AT1ERRLbits.ERRL2 // bit 2, shadows bit in AT1ERRLbits
15741 #define AT1ERR3 AT1ERRLbits.AT1ERR3 // bit 3, shadows bit in AT1ERRLbits
15742 #define ERR3 AT1ERRLbits.ERR3 // bit 3, shadows bit in AT1ERRLbits
15743 #define ERRL3 AT1ERRLbits.ERRL3 // bit 3, shadows bit in AT1ERRLbits
15744 #define AT1ERR4 AT1ERRLbits.AT1ERR4 // bit 4, shadows bit in AT1ERRLbits
15745 #define ERR4 AT1ERRLbits.ERR4 // bit 4, shadows bit in AT1ERRLbits
15746 #define ERRL4 AT1ERRLbits.ERRL4 // bit 4, shadows bit in AT1ERRLbits
15747 #define AT1ERR5 AT1ERRLbits.AT1ERR5 // bit 5, shadows bit in AT1ERRLbits
15748 #define ERR5 AT1ERRLbits.ERR5 // bit 5, shadows bit in AT1ERRLbits
15749 #define ERRL5 AT1ERRLbits.ERRL5 // bit 5, shadows bit in AT1ERRLbits
15750 #define AT1ERR6 AT1ERRLbits.AT1ERR6 // bit 6, shadows bit in AT1ERRLbits
15751 #define ERR6 AT1ERRLbits.ERR6 // bit 6, shadows bit in AT1ERRLbits
15752 #define ERRL6 AT1ERRLbits.ERRL6 // bit 6, shadows bit in AT1ERRLbits
15753 #define AT1ERR7 AT1ERRLbits.AT1ERR7 // bit 7, shadows bit in AT1ERRLbits
15754 #define ERR7 AT1ERRLbits.ERR7 // bit 7, shadows bit in AT1ERRLbits
15755 #define ERRL7 AT1ERRLbits.ERRL7 // bit 7, shadows bit in AT1ERRLbits
15757 #define AT1PERIE AT1IE0bits.AT1PERIE // bit 0
15758 #define AT1MISSIE AT1IE0bits.AT1MISSIE // bit 1
15759 #define AT1PHSIE AT1IE0bits.AT1PHSIE // bit 2
15761 #define AT1CC1IE AT1IE1bits.AT1CC1IE // bit 0
15762 #define AT1CC2IE AT1IE1bits.AT1CC2IE // bit 1
15763 #define AT1CC3IE AT1IE1bits.AT1CC3IE // bit 2
15765 #define AT1PERIF AT1IR0bits.AT1PERIF // bit 0
15766 #define AT1MISSIF AT1IR0bits.AT1MISSIF // bit 1
15767 #define AT1PHSIF AT1IR0bits.AT1PHSIF // bit 2
15769 #define AT1CC1IF AT1IR1bits.AT1CC1IF // bit 0
15770 #define AT1CC2IF AT1IR1bits.AT1CC2IF // bit 1
15771 #define AT1CC3IF AT1IR1bits.AT1CC3IF // bit 2
15773 #define AT1MISS8 AT1MISSHbits.AT1MISS8 // bit 0, shadows bit in AT1MISSHbits
15774 #define MISS8 AT1MISSHbits.MISS8 // bit 0, shadows bit in AT1MISSHbits
15775 #define AT1MISS9 AT1MISSHbits.AT1MISS9 // bit 1, shadows bit in AT1MISSHbits
15776 #define MISS9 AT1MISSHbits.MISS9 // bit 1, shadows bit in AT1MISSHbits
15777 #define AT1MISS10 AT1MISSHbits.AT1MISS10 // bit 2, shadows bit in AT1MISSHbits
15778 #define MISS10 AT1MISSHbits.MISS10 // bit 2, shadows bit in AT1MISSHbits
15779 #define AT1MISS11 AT1MISSHbits.AT1MISS11 // bit 3, shadows bit in AT1MISSHbits
15780 #define MISS11 AT1MISSHbits.MISS11 // bit 3, shadows bit in AT1MISSHbits
15781 #define AT1MISS12 AT1MISSHbits.AT1MISS12 // bit 4, shadows bit in AT1MISSHbits
15782 #define MISS12 AT1MISSHbits.MISS12 // bit 4, shadows bit in AT1MISSHbits
15783 #define AT1MISS13 AT1MISSHbits.AT1MISS13 // bit 5, shadows bit in AT1MISSHbits
15784 #define MISS13 AT1MISSHbits.MISS13 // bit 5, shadows bit in AT1MISSHbits
15785 #define AT1MISS14 AT1MISSHbits.AT1MISS14 // bit 6, shadows bit in AT1MISSHbits
15786 #define MISS14 AT1MISSHbits.MISS14 // bit 6, shadows bit in AT1MISSHbits
15787 #define AT1MISS15 AT1MISSHbits.AT1MISS15 // bit 7, shadows bit in AT1MISSHbits
15788 #define MISS15 AT1MISSHbits.MISS15 // bit 7, shadows bit in AT1MISSHbits
15790 #define AT1MISS0 AT1MISSLbits.AT1MISS0 // bit 0, shadows bit in AT1MISSLbits
15791 #define MISS0 AT1MISSLbits.MISS0 // bit 0, shadows bit in AT1MISSLbits
15792 #define AT1MISS1 AT1MISSLbits.AT1MISS1 // bit 1, shadows bit in AT1MISSLbits
15793 #define MISS1 AT1MISSLbits.MISS1 // bit 1, shadows bit in AT1MISSLbits
15794 #define AT1MISS2 AT1MISSLbits.AT1MISS2 // bit 2, shadows bit in AT1MISSLbits
15795 #define MISS2 AT1MISSLbits.MISS2 // bit 2, shadows bit in AT1MISSLbits
15796 #define AT1MISS3 AT1MISSLbits.AT1MISS3 // bit 3, shadows bit in AT1MISSLbits
15797 #define MISS3 AT1MISSLbits.MISS3 // bit 3, shadows bit in AT1MISSLbits
15798 #define AT1MISS4 AT1MISSLbits.AT1MISS4 // bit 4, shadows bit in AT1MISSLbits
15799 #define MISS4 AT1MISSLbits.MISS4 // bit 4, shadows bit in AT1MISSLbits
15800 #define AT1MISS5 AT1MISSLbits.AT1MISS5 // bit 5, shadows bit in AT1MISSLbits
15801 #define MISS5 AT1MISSLbits.MISS5 // bit 5, shadows bit in AT1MISSLbits
15802 #define AT1MISS6 AT1MISSLbits.AT1MISS6 // bit 6, shadows bit in AT1MISSLbits
15803 #define MISS6 AT1MISSLbits.MISS6 // bit 6, shadows bit in AT1MISSLbits
15804 #define AT1MISS7 AT1MISSLbits.AT1MISS7 // bit 7, shadows bit in AT1MISSLbits
15805 #define MISS7 AT1MISSLbits.MISS7 // bit 7, shadows bit in AT1MISSLbits
15807 #define AT1PER8 AT1PERHbits.AT1PER8 // bit 0, shadows bit in AT1PERHbits
15808 #define PER8 AT1PERHbits.PER8 // bit 0, shadows bit in AT1PERHbits
15809 #define PERH0 AT1PERHbits.PERH0 // bit 0, shadows bit in AT1PERHbits
15810 #define AT1PER9 AT1PERHbits.AT1PER9 // bit 1, shadows bit in AT1PERHbits
15811 #define PER9 AT1PERHbits.PER9 // bit 1, shadows bit in AT1PERHbits
15812 #define PERH1 AT1PERHbits.PERH1 // bit 1, shadows bit in AT1PERHbits
15813 #define AT1PER10 AT1PERHbits.AT1PER10 // bit 2, shadows bit in AT1PERHbits
15814 #define PER10 AT1PERHbits.PER10 // bit 2, shadows bit in AT1PERHbits
15815 #define PERH2 AT1PERHbits.PERH2 // bit 2, shadows bit in AT1PERHbits
15816 #define AT1PER11 AT1PERHbits.AT1PER11 // bit 3, shadows bit in AT1PERHbits
15817 #define PER11 AT1PERHbits.PER11 // bit 3, shadows bit in AT1PERHbits
15818 #define PERH3 AT1PERHbits.PERH3 // bit 3, shadows bit in AT1PERHbits
15819 #define AT1PER12 AT1PERHbits.AT1PER12 // bit 4, shadows bit in AT1PERHbits
15820 #define PER12 AT1PERHbits.PER12 // bit 4, shadows bit in AT1PERHbits
15821 #define PERH4 AT1PERHbits.PERH4 // bit 4, shadows bit in AT1PERHbits
15822 #define AT1PER13 AT1PERHbits.AT1PER13 // bit 5, shadows bit in AT1PERHbits
15823 #define PER13 AT1PERHbits.PER13 // bit 5, shadows bit in AT1PERHbits
15824 #define PERH5 AT1PERHbits.PERH5 // bit 5, shadows bit in AT1PERHbits
15825 #define AT1PER14 AT1PERHbits.AT1PER14 // bit 6, shadows bit in AT1PERHbits
15826 #define PER14 AT1PERHbits.PER14 // bit 6, shadows bit in AT1PERHbits
15827 #define PERH6 AT1PERHbits.PERH6 // bit 6, shadows bit in AT1PERHbits
15828 #define AT1POV AT1PERHbits.AT1POV // bit 7, shadows bit in AT1PERHbits
15829 #define PER15 AT1PERHbits.PER15 // bit 7, shadows bit in AT1PERHbits
15830 #define PERH7 AT1PERHbits.PERH7 // bit 7, shadows bit in AT1PERHbits
15832 #define AT1PER0 AT1PERLbits.AT1PER0 // bit 0, shadows bit in AT1PERLbits
15833 #define PER0 AT1PERLbits.PER0 // bit 0, shadows bit in AT1PERLbits
15834 #define PERL0 AT1PERLbits.PERL0 // bit 0, shadows bit in AT1PERLbits
15835 #define AT1PER1 AT1PERLbits.AT1PER1 // bit 1, shadows bit in AT1PERLbits
15836 #define PER1 AT1PERLbits.PER1 // bit 1, shadows bit in AT1PERLbits
15837 #define PERL1 AT1PERLbits.PERL1 // bit 1, shadows bit in AT1PERLbits
15838 #define AT1PER2 AT1PERLbits.AT1PER2 // bit 2, shadows bit in AT1PERLbits
15839 #define PER2 AT1PERLbits.PER2 // bit 2, shadows bit in AT1PERLbits
15840 #define PERL2 AT1PERLbits.PERL2 // bit 2, shadows bit in AT1PERLbits
15841 #define AT1PER3 AT1PERLbits.AT1PER3 // bit 3, shadows bit in AT1PERLbits
15842 #define PER3 AT1PERLbits.PER3 // bit 3, shadows bit in AT1PERLbits
15843 #define PERL3 AT1PERLbits.PERL3 // bit 3, shadows bit in AT1PERLbits
15844 #define AT1PER4 AT1PERLbits.AT1PER4 // bit 4, shadows bit in AT1PERLbits
15845 #define PER4 AT1PERLbits.PER4 // bit 4, shadows bit in AT1PERLbits
15846 #define PERL4 AT1PERLbits.PERL4 // bit 4, shadows bit in AT1PERLbits
15847 #define AT1PER5 AT1PERLbits.AT1PER5 // bit 5, shadows bit in AT1PERLbits
15848 #define PER5 AT1PERLbits.PER5 // bit 5, shadows bit in AT1PERLbits
15849 #define PERL5 AT1PERLbits.PERL5 // bit 5, shadows bit in AT1PERLbits
15850 #define AT1PER6 AT1PERLbits.AT1PER6 // bit 6, shadows bit in AT1PERLbits
15851 #define PER6 AT1PERLbits.PER6 // bit 6, shadows bit in AT1PERLbits
15852 #define PERL6 AT1PERLbits.PERL6 // bit 6, shadows bit in AT1PERLbits
15853 #define AT1PER7 AT1PERLbits.AT1PER7 // bit 7, shadows bit in AT1PERLbits
15854 #define PER7 AT1PERLbits.PER7 // bit 7, shadows bit in AT1PERLbits
15855 #define PERL7 AT1PERLbits.PERL7 // bit 7, shadows bit in AT1PERLbits
15857 #define AT1PHS8 AT1PHSHbits.AT1PHS8 // bit 0, shadows bit in AT1PHSHbits
15858 #define PHS8 AT1PHSHbits.PHS8 // bit 0, shadows bit in AT1PHSHbits
15859 #define PHSL8 AT1PHSHbits.PHSL8 // bit 0, shadows bit in AT1PHSHbits
15860 #define AT1PHS9 AT1PHSHbits.AT1PHS9 // bit 1, shadows bit in AT1PHSHbits
15861 #define PHS9 AT1PHSHbits.PHS9 // bit 1, shadows bit in AT1PHSHbits
15862 #define PHSL9 AT1PHSHbits.PHSL9 // bit 1, shadows bit in AT1PHSHbits
15864 #define AT1PHS0 AT1PHSLbits.AT1PHS0 // bit 0, shadows bit in AT1PHSLbits
15865 #define PHS0 AT1PHSLbits.PHS0 // bit 0, shadows bit in AT1PHSLbits
15866 #define AT1PHS1 AT1PHSLbits.AT1PHS1 // bit 1, shadows bit in AT1PHSLbits
15867 #define PHS1 AT1PHSLbits.PHS1 // bit 1, shadows bit in AT1PHSLbits
15868 #define AT1PHS2 AT1PHSLbits.AT1PHS2 // bit 2, shadows bit in AT1PHSLbits
15869 #define PHS2 AT1PHSLbits.PHS2 // bit 2, shadows bit in AT1PHSLbits
15870 #define AT1PHS3 AT1PHSLbits.AT1PHS3 // bit 3, shadows bit in AT1PHSLbits
15871 #define PHS3 AT1PHSLbits.PHS3 // bit 3, shadows bit in AT1PHSLbits
15872 #define AT1PHS4 AT1PHSLbits.AT1PHS4 // bit 4, shadows bit in AT1PHSLbits
15873 #define PHS4 AT1PHSLbits.PHS4 // bit 4, shadows bit in AT1PHSLbits
15874 #define AT1PHS5 AT1PHSLbits.AT1PHS5 // bit 5, shadows bit in AT1PHSLbits
15875 #define PHS5 AT1PHSLbits.PHS5 // bit 5, shadows bit in AT1PHSLbits
15876 #define AT1PHS6 AT1PHSLbits.AT1PHS6 // bit 6, shadows bit in AT1PHSLbits
15877 #define PHS6 AT1PHSLbits.PHS6 // bit 6, shadows bit in AT1PHSLbits
15878 #define AT1PHS7 AT1PHSLbits.AT1PHS7 // bit 7, shadows bit in AT1PHSLbits
15879 #define PHS7 AT1PHSLbits.PHS7 // bit 7, shadows bit in AT1PHSLbits
15881 #define AT1RES8 AT1RESHbits.AT1RES8 // bit 0, shadows bit in AT1RESHbits
15882 #define RES8 AT1RESHbits.RES8 // bit 0, shadows bit in AT1RESHbits
15883 #define AT1RES9 AT1RESHbits.AT1RES9 // bit 1, shadows bit in AT1RESHbits
15884 #define RES9 AT1RESHbits.RES9 // bit 1, shadows bit in AT1RESHbits
15886 #define AT1RES0 AT1RESLbits.AT1RES0 // bit 0, shadows bit in AT1RESLbits
15887 #define RES0 AT1RESLbits.RES0 // bit 0, shadows bit in AT1RESLbits
15888 #define AT1RES1 AT1RESLbits.AT1RES1 // bit 1, shadows bit in AT1RESLbits
15889 #define RES1 AT1RESLbits.RES1 // bit 1, shadows bit in AT1RESLbits
15890 #define AT1RES2 AT1RESLbits.AT1RES2 // bit 2, shadows bit in AT1RESLbits
15891 #define RES2 AT1RESLbits.RES2 // bit 2, shadows bit in AT1RESLbits
15892 #define AT1RES3 AT1RESLbits.AT1RES3 // bit 3, shadows bit in AT1RESLbits
15893 #define RES3 AT1RESLbits.RES3 // bit 3, shadows bit in AT1RESLbits
15894 #define AT1RES4 AT1RESLbits.AT1RES4 // bit 4, shadows bit in AT1RESLbits
15895 #define RES4 AT1RESLbits.RES4 // bit 4, shadows bit in AT1RESLbits
15896 #define AT1RES5 AT1RESLbits.AT1RES5 // bit 5, shadows bit in AT1RESLbits
15897 #define RES5 AT1RESLbits.RES5 // bit 5, shadows bit in AT1RESLbits
15898 #define AT1RES6 AT1RESLbits.AT1RES6 // bit 6, shadows bit in AT1RESLbits
15899 #define RES6 AT1RESLbits.RES6 // bit 6, shadows bit in AT1RESLbits
15900 #define AT1RES7 AT1RESLbits.AT1RES7 // bit 7, shadows bit in AT1RESLbits
15901 #define RES7 AT1RESLbits.RES7 // bit 7, shadows bit in AT1RESLbits
15903 #define AT1SSEL0 AT1SIGbits.AT1SSEL0 // bit 0, shadows bit in AT1SIGbits
15904 #define SSEL0 AT1SIGbits.SSEL0 // bit 0, shadows bit in AT1SIGbits
15905 #define AT1SSEL1 AT1SIGbits.AT1SSEL1 // bit 1, shadows bit in AT1SIGbits
15906 #define SSEL1 AT1SIGbits.SSEL1 // bit 1, shadows bit in AT1SIGbits
15907 #define AT1SSEL2 AT1SIGbits.AT1SSEL2 // bit 2, shadows bit in AT1SIGbits
15908 #define SSEL2 AT1SIGbits.SSEL2 // bit 2, shadows bit in AT1SIGbits
15910 #define AT1STPT8 AT1STPTHbits.AT1STPT8 // bit 0, shadows bit in AT1STPTHbits
15911 #define STPT8 AT1STPTHbits.STPT8 // bit 0, shadows bit in AT1STPTHbits
15912 #define AT1STPT9 AT1STPTHbits.AT1STPT9 // bit 1, shadows bit in AT1STPTHbits
15913 #define STPT9 AT1STPTHbits.STPT9 // bit 1, shadows bit in AT1STPTHbits
15914 #define AT1STPT10 AT1STPTHbits.AT1STPT10 // bit 2, shadows bit in AT1STPTHbits
15915 #define STPT10 AT1STPTHbits.STPT10 // bit 2, shadows bit in AT1STPTHbits
15916 #define AT1STPT11 AT1STPTHbits.AT1STPT11 // bit 3, shadows bit in AT1STPTHbits
15917 #define STPT11 AT1STPTHbits.STPT11 // bit 3, shadows bit in AT1STPTHbits
15918 #define AT1STPT12 AT1STPTHbits.AT1STPT12 // bit 4, shadows bit in AT1STPTHbits
15919 #define STPT12 AT1STPTHbits.STPT12 // bit 4, shadows bit in AT1STPTHbits
15920 #define AT1STPT13 AT1STPTHbits.AT1STPT13 // bit 5, shadows bit in AT1STPTHbits
15921 #define STPT13 AT1STPTHbits.STPT13 // bit 5, shadows bit in AT1STPTHbits
15922 #define AT1STPT14 AT1STPTHbits.AT1STPT14 // bit 6, shadows bit in AT1STPTHbits
15923 #define STPT14 AT1STPTHbits.STPT14 // bit 6, shadows bit in AT1STPTHbits
15925 #define AT1STPT0 AT1STPTLbits.AT1STPT0 // bit 0, shadows bit in AT1STPTLbits
15926 #define STPT0 AT1STPTLbits.STPT0 // bit 0, shadows bit in AT1STPTLbits
15927 #define AT1STPT1 AT1STPTLbits.AT1STPT1 // bit 1, shadows bit in AT1STPTLbits
15928 #define STPT1 AT1STPTLbits.STPT1 // bit 1, shadows bit in AT1STPTLbits
15929 #define AT1STPT2 AT1STPTLbits.AT1STPT2 // bit 2, shadows bit in AT1STPTLbits
15930 #define STPT2 AT1STPTLbits.STPT2 // bit 2, shadows bit in AT1STPTLbits
15931 #define AT1STPT3 AT1STPTLbits.AT1STPT3 // bit 3, shadows bit in AT1STPTLbits
15932 #define STPT3 AT1STPTLbits.STPT3 // bit 3, shadows bit in AT1STPTLbits
15933 #define AT1STPT4 AT1STPTLbits.AT1STPT4 // bit 4, shadows bit in AT1STPTLbits
15934 #define STPT4 AT1STPTLbits.STPT4 // bit 4, shadows bit in AT1STPTLbits
15935 #define AT1STPT5 AT1STPTLbits.AT1STPT5 // bit 5, shadows bit in AT1STPTLbits
15936 #define STPT5 AT1STPTLbits.STPT5 // bit 5, shadows bit in AT1STPTLbits
15937 #define AT1STPT6 AT1STPTLbits.AT1STPT6 // bit 6, shadows bit in AT1STPTLbits
15938 #define STPT6 AT1STPTLbits.STPT6 // bit 6, shadows bit in AT1STPTLbits
15939 #define AT1STPT7 AT1STPTLbits.AT1STPT7 // bit 7, shadows bit in AT1STPTLbits
15940 #define STPT7 AT1STPTLbits.STPT7 // bit 7, shadows bit in AT1STPTLbits
15942 #define ATCC1PPS0 ATCC1PPSbits.ATCC1PPS0 // bit 0
15943 #define ATCC1PPS1 ATCC1PPSbits.ATCC1PPS1 // bit 1
15944 #define ATCC1PPS2 ATCC1PPSbits.ATCC1PPS2 // bit 2
15945 #define ATCC1PPS3 ATCC1PPSbits.ATCC1PPS3 // bit 3
15946 #define ATCC1PPS4 ATCC1PPSbits.ATCC1PPS4 // bit 4
15948 #define ATCC2PPS0 ATCC2PPSbits.ATCC2PPS0 // bit 0
15949 #define ATCC2PPS1 ATCC2PPSbits.ATCC2PPS1 // bit 1
15950 #define ATCC2PPS2 ATCC2PPSbits.ATCC2PPS2 // bit 2
15951 #define ATCC2PPS3 ATCC2PPSbits.ATCC2PPS3 // bit 3
15952 #define ATCC2PPS4 ATCC2PPSbits.ATCC2PPS4 // bit 4
15954 #define ATCC3PPS0 ATCC3PPSbits.ATCC3PPS0 // bit 0
15955 #define ATCC3PPS1 ATCC3PPSbits.ATCC3PPS1 // bit 1
15956 #define ATCC3PPS2 ATCC3PPSbits.ATCC3PPS2 // bit 2
15957 #define ATCC3PPS3 ATCC3PPSbits.ATCC3PPS3 // bit 3
15958 #define ATCC3PPS4 ATCC3PPSbits.ATCC3PPS4 // bit 4
15960 #define ATINPPS0 ATINPPSbits.ATINPPS0 // bit 0
15961 #define ATINPPS1 ATINPPSbits.ATINPPS1 // bit 1
15962 #define ATINPPS2 ATINPPSbits.ATINPPS2 // bit 2
15963 #define ATINPPS3 ATINPPSbits.ATINPPS3 // bit 3
15964 #define ATINPPS4 ATINPPSbits.ATINPPS4 // bit 4
15966 #define ABDEN BAUD1CONbits.ABDEN // bit 0
15967 #define WUE BAUD1CONbits.WUE // bit 1
15968 #define BRG16 BAUD1CONbits.BRG16 // bit 3
15969 #define SCKP BAUD1CONbits.SCKP // bit 4
15970 #define RCIDL BAUD1CONbits.RCIDL // bit 6
15971 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
15973 #define BORRDY BORCONbits.BORRDY // bit 0
15974 #define BORFS BORCONbits.BORFS // bit 6
15975 #define SBOREN BORCONbits.SBOREN // bit 7
15977 #define BSR0 BSRbits.BSR0 // bit 0
15978 #define BSR1 BSRbits.BSR1 // bit 1
15979 #define BSR2 BSRbits.BSR2 // bit 2
15980 #define BSR3 BSRbits.BSR3 // bit 3
15981 #define BSR4 BSRbits.BSR4 // bit 4
15983 #define CTS0 CCP1CAPbits.CTS0 // bit 0, shadows bit in CCP1CAPbits
15984 #define CCP1CTS0 CCP1CAPbits.CCP1CTS0 // bit 0, shadows bit in CCP1CAPbits
15985 #define CTS1 CCP1CAPbits.CTS1 // bit 1, shadows bit in CCP1CAPbits
15986 #define CCP1CTS1 CCP1CAPbits.CCP1CTS1 // bit 1, shadows bit in CCP1CAPbits
15987 #define CTS2 CCP1CAPbits.CTS2 // bit 2, shadows bit in CCP1CAPbits
15988 #define CCP1CTS2 CCP1CAPbits.CCP1CTS2 // bit 2, shadows bit in CCP1CAPbits
15990 #define CCP1PPS0 CCP1PPSbits.CCP1PPS0 // bit 0
15991 #define CCP1PPS1 CCP1PPSbits.CCP1PPS1 // bit 1
15992 #define CCP1PPS2 CCP1PPSbits.CCP1PPS2 // bit 2
15993 #define CCP1PPS3 CCP1PPSbits.CCP1PPS3 // bit 3
15994 #define CCP1PPS4 CCP1PPSbits.CCP1PPS4 // bit 4
15996 #define CCP2PPS0 CCP2PPSbits.CCP2PPS0 // bit 0
15997 #define CCP2PPS1 CCP2PPSbits.CCP2PPS1 // bit 1
15998 #define CCP2PPS2 CCP2PPSbits.CCP2PPS2 // bit 2
15999 #define CCP2PPS3 CCP2PPSbits.CCP2PPS3 // bit 3
16000 #define CCP2PPS4 CCP2PPSbits.CCP2PPS4 // bit 4
16002 #define CCP1TSEL0 CCPTMRSbits.CCP1TSEL0 // bit 0
16003 #define CCP1TSEL1 CCPTMRSbits.CCP1TSEL1 // bit 1
16004 #define CCP2TSEL0 CCPTMRSbits.CCP2TSEL0 // bit 2
16005 #define CCP2TSEL1 CCPTMRSbits.CCP2TSEL1 // bit 3
16006 #define P3TSEL0 CCPTMRSbits.P3TSEL0 // bit 4
16007 #define P3TSEL1 CCPTMRSbits.P3TSEL1 // bit 5
16008 #define P4TSEL0 CCPTMRSbits.P4TSEL0 // bit 6
16009 #define P4TSEL1 CCPTMRSbits.P4TSEL1 // bit 7
16011 #define CKPPS0 CKPPSbits.CKPPS0 // bit 0
16012 #define CKPPS1 CKPPSbits.CKPPS1 // bit 1
16013 #define CKPPS2 CKPPSbits.CKPPS2 // bit 2
16014 #define CKPPS3 CKPPSbits.CKPPS3 // bit 3
16015 #define CKPPS4 CKPPSbits.CKPPS4 // bit 4
16017 #define LC1G1D1N CLC1GLS0bits.LC1G1D1N // bit 0, shadows bit in CLC1GLS0bits
16018 #define D1N CLC1GLS0bits.D1N // bit 0, shadows bit in CLC1GLS0bits
16019 #define LC1G1D1T CLC1GLS0bits.LC1G1D1T // bit 1, shadows bit in CLC1GLS0bits
16020 #define D1T CLC1GLS0bits.D1T // bit 1, shadows bit in CLC1GLS0bits
16021 #define LC1G1D2N CLC1GLS0bits.LC1G1D2N // bit 2, shadows bit in CLC1GLS0bits
16022 #define D2N CLC1GLS0bits.D2N // bit 2, shadows bit in CLC1GLS0bits
16023 #define LC1G1D2T CLC1GLS0bits.LC1G1D2T // bit 3, shadows bit in CLC1GLS0bits
16024 #define D2T CLC1GLS0bits.D2T // bit 3, shadows bit in CLC1GLS0bits
16025 #define LC1G1D3N CLC1GLS0bits.LC1G1D3N // bit 4, shadows bit in CLC1GLS0bits
16026 #define D3N CLC1GLS0bits.D3N // bit 4, shadows bit in CLC1GLS0bits
16027 #define LC1G1D3T CLC1GLS0bits.LC1G1D3T // bit 5, shadows bit in CLC1GLS0bits
16028 #define D3T CLC1GLS0bits.D3T // bit 5, shadows bit in CLC1GLS0bits
16029 #define LC1G1D4N CLC1GLS0bits.LC1G1D4N // bit 6, shadows bit in CLC1GLS0bits
16030 #define D4N CLC1GLS0bits.D4N // bit 6, shadows bit in CLC1GLS0bits
16031 #define LC1G1D4T CLC1GLS0bits.LC1G1D4T // bit 7, shadows bit in CLC1GLS0bits
16032 #define D4T CLC1GLS0bits.D4T // bit 7, shadows bit in CLC1GLS0bits
16034 #define LC1G4D1N CLC1GLS3bits.LC1G4D1N // bit 0, shadows bit in CLC1GLS3bits
16035 #define G4D1N CLC1GLS3bits.G4D1N // bit 0, shadows bit in CLC1GLS3bits
16036 #define LC1G4D1T CLC1GLS3bits.LC1G4D1T // bit 1, shadows bit in CLC1GLS3bits
16037 #define G4D1T CLC1GLS3bits.G4D1T // bit 1, shadows bit in CLC1GLS3bits
16038 #define LC1G4D2N CLC1GLS3bits.LC1G4D2N // bit 2, shadows bit in CLC1GLS3bits
16039 #define G4D2N CLC1GLS3bits.G4D2N // bit 2, shadows bit in CLC1GLS3bits
16040 #define LC1G4D2T CLC1GLS3bits.LC1G4D2T // bit 3, shadows bit in CLC1GLS3bits
16041 #define G4D2T CLC1GLS3bits.G4D2T // bit 3, shadows bit in CLC1GLS3bits
16042 #define LC1G4D3N CLC1GLS3bits.LC1G4D3N // bit 4, shadows bit in CLC1GLS3bits
16043 #define G4D3N CLC1GLS3bits.G4D3N // bit 4, shadows bit in CLC1GLS3bits
16044 #define LC1G4D3T CLC1GLS3bits.LC1G4D3T // bit 5, shadows bit in CLC1GLS3bits
16045 #define G4D3T CLC1GLS3bits.G4D3T // bit 5, shadows bit in CLC1GLS3bits
16046 #define LC1G4D4N CLC1GLS3bits.LC1G4D4N // bit 6, shadows bit in CLC1GLS3bits
16047 #define G4D4N CLC1GLS3bits.G4D4N // bit 6, shadows bit in CLC1GLS3bits
16048 #define LC1G4D4T CLC1GLS3bits.LC1G4D4T // bit 7, shadows bit in CLC1GLS3bits
16049 #define G4D4T CLC1GLS3bits.G4D4T // bit 7, shadows bit in CLC1GLS3bits
16051 #define LC1D1S0 CLC1SEL0bits.LC1D1S0 // bit 0, shadows bit in CLC1SEL0bits
16052 #define D1S0 CLC1SEL0bits.D1S0 // bit 0, shadows bit in CLC1SEL0bits
16053 #define LC1D1S1 CLC1SEL0bits.LC1D1S1 // bit 1, shadows bit in CLC1SEL0bits
16054 #define D1S1 CLC1SEL0bits.D1S1 // bit 1, shadows bit in CLC1SEL0bits
16055 #define LC1D1S2 CLC1SEL0bits.LC1D1S2 // bit 2, shadows bit in CLC1SEL0bits
16056 #define D1S2 CLC1SEL0bits.D1S2 // bit 2, shadows bit in CLC1SEL0bits
16057 #define LC1D1S3 CLC1SEL0bits.LC1D1S3 // bit 3, shadows bit in CLC1SEL0bits
16058 #define D1S3 CLC1SEL0bits.D1S3 // bit 3, shadows bit in CLC1SEL0bits
16059 #define LC1D1S4 CLC1SEL0bits.LC1D1S4 // bit 4, shadows bit in CLC1SEL0bits
16060 #define D1S4 CLC1SEL0bits.D1S4 // bit 4, shadows bit in CLC1SEL0bits
16061 #define LC1D1S5 CLC1SEL0bits.LC1D1S5 // bit 5, shadows bit in CLC1SEL0bits
16062 #define D1S5 CLC1SEL0bits.D1S5 // bit 5, shadows bit in CLC1SEL0bits
16064 #define LC1D2S0 CLC1SEL1bits.LC1D2S0 // bit 0, shadows bit in CLC1SEL1bits
16065 #define D2S0 CLC1SEL1bits.D2S0 // bit 0, shadows bit in CLC1SEL1bits
16066 #define LC1D2S1 CLC1SEL1bits.LC1D2S1 // bit 1, shadows bit in CLC1SEL1bits
16067 #define D2S1 CLC1SEL1bits.D2S1 // bit 1, shadows bit in CLC1SEL1bits
16068 #define LC1D2S2 CLC1SEL1bits.LC1D2S2 // bit 2, shadows bit in CLC1SEL1bits
16069 #define D2S2 CLC1SEL1bits.D2S2 // bit 2, shadows bit in CLC1SEL1bits
16070 #define LC1D2S3 CLC1SEL1bits.LC1D2S3 // bit 3, shadows bit in CLC1SEL1bits
16071 #define D2S3 CLC1SEL1bits.D2S3 // bit 3, shadows bit in CLC1SEL1bits
16072 #define LC1D2S4 CLC1SEL1bits.LC1D2S4 // bit 4, shadows bit in CLC1SEL1bits
16073 #define D2S4 CLC1SEL1bits.D2S4 // bit 4, shadows bit in CLC1SEL1bits
16074 #define LC1D2S5 CLC1SEL1bits.LC1D2S5 // bit 5, shadows bit in CLC1SEL1bits
16075 #define D2S5 CLC1SEL1bits.D2S5 // bit 5, shadows bit in CLC1SEL1bits
16077 #define LC1D3S0 CLC1SEL2bits.LC1D3S0 // bit 0, shadows bit in CLC1SEL2bits
16078 #define D3S0 CLC1SEL2bits.D3S0 // bit 0, shadows bit in CLC1SEL2bits
16079 #define LC1D3S1 CLC1SEL2bits.LC1D3S1 // bit 1, shadows bit in CLC1SEL2bits
16080 #define D3S1 CLC1SEL2bits.D3S1 // bit 1, shadows bit in CLC1SEL2bits
16081 #define LC1D3S2 CLC1SEL2bits.LC1D3S2 // bit 2, shadows bit in CLC1SEL2bits
16082 #define D3S2 CLC1SEL2bits.D3S2 // bit 2, shadows bit in CLC1SEL2bits
16083 #define LC1D3S3 CLC1SEL2bits.LC1D3S3 // bit 3, shadows bit in CLC1SEL2bits
16084 #define D3S3 CLC1SEL2bits.D3S3 // bit 3, shadows bit in CLC1SEL2bits
16085 #define LC1D3S4 CLC1SEL2bits.LC1D3S4 // bit 4, shadows bit in CLC1SEL2bits
16086 #define D3S4 CLC1SEL2bits.D3S4 // bit 4, shadows bit in CLC1SEL2bits
16087 #define LC1D3S5 CLC1SEL2bits.LC1D3S5 // bit 5, shadows bit in CLC1SEL2bits
16088 #define D3S5 CLC1SEL2bits.D3S5 // bit 5, shadows bit in CLC1SEL2bits
16090 #define LC1D4S0 CLC1SEL3bits.LC1D4S0 // bit 0, shadows bit in CLC1SEL3bits
16091 #define D4S0 CLC1SEL3bits.D4S0 // bit 0, shadows bit in CLC1SEL3bits
16092 #define LC1D4S1 CLC1SEL3bits.LC1D4S1 // bit 1, shadows bit in CLC1SEL3bits
16093 #define D4S1 CLC1SEL3bits.D4S1 // bit 1, shadows bit in CLC1SEL3bits
16094 #define LC1D4S2 CLC1SEL3bits.LC1D4S2 // bit 2, shadows bit in CLC1SEL3bits
16095 #define D4S2 CLC1SEL3bits.D4S2 // bit 2, shadows bit in CLC1SEL3bits
16096 #define LC1D4S3 CLC1SEL3bits.LC1D4S3 // bit 3, shadows bit in CLC1SEL3bits
16097 #define D4S3 CLC1SEL3bits.D4S3 // bit 3, shadows bit in CLC1SEL3bits
16098 #define LC1D4S4 CLC1SEL3bits.LC1D4S4 // bit 4, shadows bit in CLC1SEL3bits
16099 #define D4S4 CLC1SEL3bits.D4S4 // bit 4, shadows bit in CLC1SEL3bits
16100 #define LC1D4S5 CLC1SEL3bits.LC1D4S5 // bit 5, shadows bit in CLC1SEL3bits
16101 #define D4S5 CLC1SEL3bits.D4S5 // bit 5, shadows bit in CLC1SEL3bits
16103 #define MLC1OUT CLCDATAbits.MLC1OUT // bit 0
16104 #define MLC2OUT CLCDATAbits.MLC2OUT // bit 1
16105 #define MLC3OUT CLCDATAbits.MLC3OUT // bit 2
16106 #define MLC4OUT CLCDATAbits.MLC4OUT // bit 3
16108 #define CLCIN0PPS0 CLCIN0PPSbits.CLCIN0PPS0 // bit 0
16109 #define CLCIN0PPS1 CLCIN0PPSbits.CLCIN0PPS1 // bit 1
16110 #define CLCIN0PPS2 CLCIN0PPSbits.CLCIN0PPS2 // bit 2
16111 #define CLCIN0PPS3 CLCIN0PPSbits.CLCIN0PPS3 // bit 3
16112 #define CLCIN0PPS4 CLCIN0PPSbits.CLCIN0PPS4 // bit 4
16114 #define CLCIN1PPS0 CLCIN1PPSbits.CLCIN1PPS0 // bit 0
16115 #define CLCIN1PPS1 CLCIN1PPSbits.CLCIN1PPS1 // bit 1
16116 #define CLCIN1PPS2 CLCIN1PPSbits.CLCIN1PPS2 // bit 2
16117 #define CLCIN1PPS3 CLCIN1PPSbits.CLCIN1PPS3 // bit 3
16118 #define CLCIN1PPS4 CLCIN1PPSbits.CLCIN1PPS4 // bit 4
16120 #define CLCIN2PPS0 CLCIN2PPSbits.CLCIN2PPS0 // bit 0
16121 #define CLCIN2PPS1 CLCIN2PPSbits.CLCIN2PPS1 // bit 1
16122 #define CLCIN2PPS2 CLCIN2PPSbits.CLCIN2PPS2 // bit 2
16123 #define CLCIN2PPS3 CLCIN2PPSbits.CLCIN2PPS3 // bit 3
16124 #define CLCIN2PPS4 CLCIN2PPSbits.CLCIN2PPS4 // bit 4
16126 #define CLCIN3PPS0 CLCIN3PPSbits.CLCIN3PPS0 // bit 0
16127 #define CLCIN3PPS1 CLCIN3PPSbits.CLCIN3PPS1 // bit 1
16128 #define CLCIN3PPS2 CLCIN3PPSbits.CLCIN3PPS2 // bit 2
16129 #define CLCIN3PPS3 CLCIN3PPSbits.CLCIN3PPS3 // bit 3
16130 #define CLCIN3PPS4 CLCIN3PPSbits.CLCIN3PPS4 // bit 4
16132 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
16133 #define C1HYS CM1CON0bits.C1HYS // bit 1
16134 #define C1SP CM1CON0bits.C1SP // bit 2
16135 #define C1POL CM1CON0bits.C1POL // bit 4
16136 #define C1OUT CM1CON0bits.C1OUT // bit 6
16137 #define C1ON CM1CON0bits.C1ON // bit 7
16139 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
16140 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
16141 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
16142 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 4
16143 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 5
16144 #define C1INTN CM1CON1bits.C1INTN // bit 6
16145 #define C1INTP CM1CON1bits.C1INTP // bit 7
16147 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
16148 #define C2HYS CM2CON0bits.C2HYS // bit 1
16149 #define C2SP CM2CON0bits.C2SP // bit 2
16150 #define C2POL CM2CON0bits.C2POL // bit 4
16151 #define C2OUT CM2CON0bits.C2OUT // bit 6
16152 #define C2ON CM2CON0bits.C2ON // bit 7
16154 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
16155 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
16156 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
16157 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 4
16158 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 5
16159 #define C2INTN CM2CON1bits.C2INTN // bit 6
16160 #define C2INTP CM2CON1bits.C2INTP // bit 7
16162 #define MC1OUT CMOUTbits.MC1OUT // bit 0
16163 #define MC2OUT CMOUTbits.MC2OUT // bit 1
16165 #define ACC8 CRCACCHbits.ACC8 // bit 0, shadows bit in CRCACCHbits
16166 #define CRCACC8 CRCACCHbits.CRCACC8 // bit 0, shadows bit in CRCACCHbits
16167 #define ACC9 CRCACCHbits.ACC9 // bit 1, shadows bit in CRCACCHbits
16168 #define CRCACC9 CRCACCHbits.CRCACC9 // bit 1, shadows bit in CRCACCHbits
16169 #define ACC10 CRCACCHbits.ACC10 // bit 2, shadows bit in CRCACCHbits
16170 #define CRCACC10 CRCACCHbits.CRCACC10 // bit 2, shadows bit in CRCACCHbits
16171 #define ACC11 CRCACCHbits.ACC11 // bit 3, shadows bit in CRCACCHbits
16172 #define CRCACC11 CRCACCHbits.CRCACC11 // bit 3, shadows bit in CRCACCHbits
16173 #define ACC12 CRCACCHbits.ACC12 // bit 4, shadows bit in CRCACCHbits
16174 #define CRCACC12 CRCACCHbits.CRCACC12 // bit 4, shadows bit in CRCACCHbits
16175 #define ACC13 CRCACCHbits.ACC13 // bit 5, shadows bit in CRCACCHbits
16176 #define CRCACC13 CRCACCHbits.CRCACC13 // bit 5, shadows bit in CRCACCHbits
16177 #define ACC14 CRCACCHbits.ACC14 // bit 6, shadows bit in CRCACCHbits
16178 #define CRCACC14 CRCACCHbits.CRCACC14 // bit 6, shadows bit in CRCACCHbits
16179 #define ACC15 CRCACCHbits.ACC15 // bit 7, shadows bit in CRCACCHbits
16180 #define CRCACC15 CRCACCHbits.CRCACC15 // bit 7, shadows bit in CRCACCHbits
16182 #define ACC0 CRCACCLbits.ACC0 // bit 0, shadows bit in CRCACCLbits
16183 #define CRCACC0 CRCACCLbits.CRCACC0 // bit 0, shadows bit in CRCACCLbits
16184 #define ACC1 CRCACCLbits.ACC1 // bit 1, shadows bit in CRCACCLbits
16185 #define CRCACC1 CRCACCLbits.CRCACC1 // bit 1, shadows bit in CRCACCLbits
16186 #define ACC2 CRCACCLbits.ACC2 // bit 2, shadows bit in CRCACCLbits
16187 #define CRCACC2 CRCACCLbits.CRCACC2 // bit 2, shadows bit in CRCACCLbits
16188 #define ACC3 CRCACCLbits.ACC3 // bit 3, shadows bit in CRCACCLbits
16189 #define CRCACC3 CRCACCLbits.CRCACC3 // bit 3, shadows bit in CRCACCLbits
16190 #define ACC4 CRCACCLbits.ACC4 // bit 4, shadows bit in CRCACCLbits
16191 #define CRCACC4 CRCACCLbits.CRCACC4 // bit 4, shadows bit in CRCACCLbits
16192 #define ACC5 CRCACCLbits.ACC5 // bit 5, shadows bit in CRCACCLbits
16193 #define CRCACC5 CRCACCLbits.CRCACC5 // bit 5, shadows bit in CRCACCLbits
16194 #define ACC6 CRCACCLbits.ACC6 // bit 6, shadows bit in CRCACCLbits
16195 #define CRCACC6 CRCACCLbits.CRCACC6 // bit 6, shadows bit in CRCACCLbits
16196 #define ACC7 CRCACCLbits.ACC7 // bit 7, shadows bit in CRCACCLbits
16197 #define CRCACC7 CRCACCLbits.CRCACC7 // bit 7, shadows bit in CRCACCLbits
16199 #define PLEN0 CRCCON1bits.PLEN0 // bit 0, shadows bit in CRCCON1bits
16200 #define CRCPLEN0 CRCCON1bits.CRCPLEN0 // bit 0, shadows bit in CRCCON1bits
16201 #define PLEN1 CRCCON1bits.PLEN1 // bit 1, shadows bit in CRCCON1bits
16202 #define CRCPLEN1 CRCCON1bits.CRCPLEN1 // bit 1, shadows bit in CRCCON1bits
16203 #define PLEN2 CRCCON1bits.PLEN2 // bit 2, shadows bit in CRCCON1bits
16204 #define CRCPLEN2 CRCCON1bits.CRCPLEN2 // bit 2, shadows bit in CRCCON1bits
16205 #define PLEN3 CRCCON1bits.PLEN3 // bit 3, shadows bit in CRCCON1bits
16206 #define CRCPLEN3 CRCCON1bits.CRCPLEN3 // bit 3, shadows bit in CRCCON1bits
16207 #define DLEN0 CRCCON1bits.DLEN0 // bit 4, shadows bit in CRCCON1bits
16208 #define CRCDLEN0 CRCCON1bits.CRCDLEN0 // bit 4, shadows bit in CRCCON1bits
16209 #define DLEN1 CRCCON1bits.DLEN1 // bit 5, shadows bit in CRCCON1bits
16210 #define CRCDLEN1 CRCCON1bits.CRCDLEN1 // bit 5, shadows bit in CRCCON1bits
16211 #define DLEN2 CRCCON1bits.DLEN2 // bit 6, shadows bit in CRCCON1bits
16212 #define CRCDLEN2 CRCCON1bits.CRCDLEN2 // bit 6, shadows bit in CRCCON1bits
16213 #define DLEN3 CRCCON1bits.DLEN3 // bit 7, shadows bit in CRCCON1bits
16214 #define CRCDLEN3 CRCCON1bits.CRCDLEN3 // bit 7, shadows bit in CRCCON1bits
16216 #define DAT8 CRCDATHbits.DAT8 // bit 0, shadows bit in CRCDATHbits
16217 #define CRCDAT8 CRCDATHbits.CRCDAT8 // bit 0, shadows bit in CRCDATHbits
16218 #define DAT9 CRCDATHbits.DAT9 // bit 1, shadows bit in CRCDATHbits
16219 #define CRCDAT9 CRCDATHbits.CRCDAT9 // bit 1, shadows bit in CRCDATHbits
16220 #define DAT10 CRCDATHbits.DAT10 // bit 2, shadows bit in CRCDATHbits
16221 #define CRCDAT10 CRCDATHbits.CRCDAT10 // bit 2, shadows bit in CRCDATHbits
16222 #define DAT11 CRCDATHbits.DAT11 // bit 3, shadows bit in CRCDATHbits
16223 #define CRCDAT11 CRCDATHbits.CRCDAT11 // bit 3, shadows bit in CRCDATHbits
16224 #define DAT12 CRCDATHbits.DAT12 // bit 4, shadows bit in CRCDATHbits
16225 #define CRCDAT12 CRCDATHbits.CRCDAT12 // bit 4, shadows bit in CRCDATHbits
16226 #define DAT13 CRCDATHbits.DAT13 // bit 5, shadows bit in CRCDATHbits
16227 #define CRCDAT13 CRCDATHbits.CRCDAT13 // bit 5, shadows bit in CRCDATHbits
16228 #define DAT14 CRCDATHbits.DAT14 // bit 6, shadows bit in CRCDATHbits
16229 #define CRCDAT14 CRCDATHbits.CRCDAT14 // bit 6, shadows bit in CRCDATHbits
16230 #define DAT15 CRCDATHbits.DAT15 // bit 7, shadows bit in CRCDATHbits
16231 #define CRCDAT15 CRCDATHbits.CRCDAT15 // bit 7, shadows bit in CRCDATHbits
16233 #define DAT0 CRCDATLbits.DAT0 // bit 0, shadows bit in CRCDATLbits
16234 #define CRCDAT0 CRCDATLbits.CRCDAT0 // bit 0, shadows bit in CRCDATLbits
16235 #define DAT1 CRCDATLbits.DAT1 // bit 1, shadows bit in CRCDATLbits
16236 #define CRCDAT1 CRCDATLbits.CRCDAT1 // bit 1, shadows bit in CRCDATLbits
16237 #define DAT2 CRCDATLbits.DAT2 // bit 2, shadows bit in CRCDATLbits
16238 #define CRCDAT2 CRCDATLbits.CRCDAT2 // bit 2, shadows bit in CRCDATLbits
16239 #define DAT3 CRCDATLbits.DAT3 // bit 3, shadows bit in CRCDATLbits
16240 #define CRCDAT3 CRCDATLbits.CRCDAT3 // bit 3, shadows bit in CRCDATLbits
16241 #define DAT4 CRCDATLbits.DAT4 // bit 4, shadows bit in CRCDATLbits
16242 #define CRCDAT4 CRCDATLbits.CRCDAT4 // bit 4, shadows bit in CRCDATLbits
16243 #define DAT5 CRCDATLbits.DAT5 // bit 5, shadows bit in CRCDATLbits
16244 #define CRCDAT5 CRCDATLbits.CRCDAT5 // bit 5, shadows bit in CRCDATLbits
16245 #define DAT6 CRCDATLbits.DAT6 // bit 6, shadows bit in CRCDATLbits
16246 #define CRCDAT6 CRCDATLbits.CRCDAT6 // bit 6, shadows bit in CRCDATLbits
16247 #define DAT7 CRCDATLbits.DAT7 // bit 7, shadows bit in CRCDATLbits
16248 #define CRDCDAT7 CRCDATLbits.CRDCDAT7 // bit 7, shadows bit in CRCDATLbits
16250 #define SHIFT8 CRCSHIFTHbits.SHIFT8 // bit 0, shadows bit in CRCSHIFTHbits
16251 #define CRCSHIFT8 CRCSHIFTHbits.CRCSHIFT8 // bit 0, shadows bit in CRCSHIFTHbits
16252 #define SHIFT9 CRCSHIFTHbits.SHIFT9 // bit 1, shadows bit in CRCSHIFTHbits
16253 #define CRCSHIFT9 CRCSHIFTHbits.CRCSHIFT9 // bit 1, shadows bit in CRCSHIFTHbits
16254 #define SHIFT10 CRCSHIFTHbits.SHIFT10 // bit 2, shadows bit in CRCSHIFTHbits
16255 #define CRCSHIFT10 CRCSHIFTHbits.CRCSHIFT10 // bit 2, shadows bit in CRCSHIFTHbits
16256 #define SHIFT11 CRCSHIFTHbits.SHIFT11 // bit 3, shadows bit in CRCSHIFTHbits
16257 #define CRCSHIFT11 CRCSHIFTHbits.CRCSHIFT11 // bit 3, shadows bit in CRCSHIFTHbits
16258 #define SHIFT12 CRCSHIFTHbits.SHIFT12 // bit 4, shadows bit in CRCSHIFTHbits
16259 #define CRCSHIFT12 CRCSHIFTHbits.CRCSHIFT12 // bit 4, shadows bit in CRCSHIFTHbits
16260 #define SHIFT13 CRCSHIFTHbits.SHIFT13 // bit 5, shadows bit in CRCSHIFTHbits
16261 #define CRCSHIFT13 CRCSHIFTHbits.CRCSHIFT13 // bit 5, shadows bit in CRCSHIFTHbits
16262 #define SHIFT14 CRCSHIFTHbits.SHIFT14 // bit 6, shadows bit in CRCSHIFTHbits
16263 #define CRCSHIFT14 CRCSHIFTHbits.CRCSHIFT14 // bit 6, shadows bit in CRCSHIFTHbits
16264 #define SHIFT15 CRCSHIFTHbits.SHIFT15 // bit 7, shadows bit in CRCSHIFTHbits
16265 #define CRCSHIFT15 CRCSHIFTHbits.CRCSHIFT15 // bit 7, shadows bit in CRCSHIFTHbits
16267 #define SHIFT0 CRCSHIFTLbits.SHIFT0 // bit 0, shadows bit in CRCSHIFTLbits
16268 #define CRCSHIFT0 CRCSHIFTLbits.CRCSHIFT0 // bit 0, shadows bit in CRCSHIFTLbits
16269 #define SHIFT1 CRCSHIFTLbits.SHIFT1 // bit 1, shadows bit in CRCSHIFTLbits
16270 #define CRCSHIFT1 CRCSHIFTLbits.CRCSHIFT1 // bit 1, shadows bit in CRCSHIFTLbits
16271 #define SHIFT2 CRCSHIFTLbits.SHIFT2 // bit 2, shadows bit in CRCSHIFTLbits
16272 #define CRCSHIFT2 CRCSHIFTLbits.CRCSHIFT2 // bit 2, shadows bit in CRCSHIFTLbits
16273 #define SHIFT3 CRCSHIFTLbits.SHIFT3 // bit 3, shadows bit in CRCSHIFTLbits
16274 #define CRCSHIFT3 CRCSHIFTLbits.CRCSHIFT3 // bit 3, shadows bit in CRCSHIFTLbits
16275 #define SHIFT4 CRCSHIFTLbits.SHIFT4 // bit 4, shadows bit in CRCSHIFTLbits
16276 #define CRCSHIFT4 CRCSHIFTLbits.CRCSHIFT4 // bit 4, shadows bit in CRCSHIFTLbits
16277 #define SHIFT5 CRCSHIFTLbits.SHIFT5 // bit 5, shadows bit in CRCSHIFTLbits
16278 #define CRCSHIFT5 CRCSHIFTLbits.CRCSHIFT5 // bit 5, shadows bit in CRCSHIFTLbits
16279 #define SHIFT6 CRCSHIFTLbits.SHIFT6 // bit 6, shadows bit in CRCSHIFTLbits
16280 #define CRCSHIFT6 CRCSHIFTLbits.CRCSHIFT6 // bit 6, shadows bit in CRCSHIFTLbits
16281 #define SHIFT7 CRCSHIFTLbits.SHIFT7 // bit 7, shadows bit in CRCSHIFTLbits
16282 #define CRCSHIFT7 CRCSHIFTLbits.CRCSHIFT7 // bit 7, shadows bit in CRCSHIFTLbits
16284 #define XOR8 CRCXORHbits.XOR8 // bit 0, shadows bit in CRCXORHbits
16285 #define CRCXOR8 CRCXORHbits.CRCXOR8 // bit 0, shadows bit in CRCXORHbits
16286 #define XOR9 CRCXORHbits.XOR9 // bit 1, shadows bit in CRCXORHbits
16287 #define CRCXOR9 CRCXORHbits.CRCXOR9 // bit 1, shadows bit in CRCXORHbits
16288 #define XOR10 CRCXORHbits.XOR10 // bit 2, shadows bit in CRCXORHbits
16289 #define CRCXOR10 CRCXORHbits.CRCXOR10 // bit 2, shadows bit in CRCXORHbits
16290 #define XOR11 CRCXORHbits.XOR11 // bit 3, shadows bit in CRCXORHbits
16291 #define CRCXOR11 CRCXORHbits.CRCXOR11 // bit 3, shadows bit in CRCXORHbits
16292 #define XOR12 CRCXORHbits.XOR12 // bit 4, shadows bit in CRCXORHbits
16293 #define CRCXOR12 CRCXORHbits.CRCXOR12 // bit 4, shadows bit in CRCXORHbits
16294 #define XOR13 CRCXORHbits.XOR13 // bit 5, shadows bit in CRCXORHbits
16295 #define CRCXOR13 CRCXORHbits.CRCXOR13 // bit 5, shadows bit in CRCXORHbits
16296 #define XOR14 CRCXORHbits.XOR14 // bit 6, shadows bit in CRCXORHbits
16297 #define CRCXOR14 CRCXORHbits.CRCXOR14 // bit 6, shadows bit in CRCXORHbits
16298 #define XOR15 CRCXORHbits.XOR15 // bit 7, shadows bit in CRCXORHbits
16299 #define CRCXOR15 CRCXORHbits.CRCXOR15 // bit 7, shadows bit in CRCXORHbits
16301 #define XOR1 CRCXORLbits.XOR1 // bit 1, shadows bit in CRCXORLbits
16302 #define CRCXOR1 CRCXORLbits.CRCXOR1 // bit 1, shadows bit in CRCXORLbits
16303 #define XOR2 CRCXORLbits.XOR2 // bit 2, shadows bit in CRCXORLbits
16304 #define CRCXOR2 CRCXORLbits.CRCXOR2 // bit 2, shadows bit in CRCXORLbits
16305 #define XOR3 CRCXORLbits.XOR3 // bit 3, shadows bit in CRCXORLbits
16306 #define CRCXOR3 CRCXORLbits.CRCXOR3 // bit 3, shadows bit in CRCXORLbits
16307 #define XOR4 CRCXORLbits.XOR4 // bit 4, shadows bit in CRCXORLbits
16308 #define CRCXOR4 CRCXORLbits.CRCXOR4 // bit 4, shadows bit in CRCXORLbits
16309 #define XOR5 CRCXORLbits.XOR5 // bit 5, shadows bit in CRCXORLbits
16310 #define CRCXOR5 CRCXORLbits.CRCXOR5 // bit 5, shadows bit in CRCXORLbits
16311 #define XOR6 CRCXORLbits.XOR6 // bit 6, shadows bit in CRCXORLbits
16312 #define CRCXOR6 CRCXORLbits.CRCXOR6 // bit 6, shadows bit in CRCXORLbits
16313 #define XOR7 CRCXORLbits.XOR7 // bit 7, shadows bit in CRCXORLbits
16314 #define CRCXOR7 CRCXORLbits.CRCXOR7 // bit 7, shadows bit in CRCXORLbits
16316 #define LSAC0 CWG1AS0bits.LSAC0 // bit 2, shadows bit in CWG1AS0bits
16317 #define CWG1LSAC0 CWG1AS0bits.CWG1LSAC0 // bit 2, shadows bit in CWG1AS0bits
16318 #define LSAC1 CWG1AS0bits.LSAC1 // bit 3, shadows bit in CWG1AS0bits
16319 #define CWG1LSAC1 CWG1AS0bits.CWG1LSAC1 // bit 3, shadows bit in CWG1AS0bits
16320 #define LSBD0 CWG1AS0bits.LSBD0 // bit 4, shadows bit in CWG1AS0bits
16321 #define CWG1LSBD0 CWG1AS0bits.CWG1LSBD0 // bit 4, shadows bit in CWG1AS0bits
16322 #define LSBD1 CWG1AS0bits.LSBD1 // bit 5, shadows bit in CWG1AS0bits
16323 #define CWG1LSBD1 CWG1AS0bits.CWG1LSBD1 // bit 5, shadows bit in CWG1AS0bits
16324 #define REN CWG1AS0bits.REN // bit 6, shadows bit in CWG1AS0bits
16325 #define CWG1REN CWG1AS0bits.CWG1REN // bit 6, shadows bit in CWG1AS0bits
16326 #define SHUTDOWN CWG1AS0bits.SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
16327 #define CWG1SHUTDOWN CWG1AS0bits.CWG1SHUTDOWN // bit 7, shadows bit in CWG1AS0bits
16329 #define INAS CWG1AS1bits.INAS // bit 0, shadows bit in CWG1AS1bits
16330 #define CWG1INAS CWG1AS1bits.CWG1INAS // bit 0, shadows bit in CWG1AS1bits
16331 #define C1AS CWG1AS1bits.C1AS // bit 1, shadows bit in CWG1AS1bits
16332 #define CWG1C1AS CWG1AS1bits.CWG1C1AS // bit 1, shadows bit in CWG1AS1bits
16333 #define C2AS CWG1AS1bits.C2AS // bit 2, shadows bit in CWG1AS1bits
16334 #define CWG1C2AS CWG1AS1bits.CWG1C2AS // bit 2, shadows bit in CWG1AS1bits
16335 #define TMR2AS CWG1AS1bits.TMR2AS // bit 4, shadows bit in CWG1AS1bits
16336 #define CWG1TMR2AS CWG1AS1bits.CWG1TMR2AS // bit 4, shadows bit in CWG1AS1bits
16337 #define TMR4AS CWG1AS1bits.TMR4AS // bit 5, shadows bit in CWG1AS1bits
16338 #define CWG1TMR4AS CWG1AS1bits.CWG1TMR4AS // bit 5, shadows bit in CWG1AS1bits
16339 #define TMR6AS CWG1AS1bits.TMR6AS // bit 6, shadows bit in CWG1AS1bits
16340 #define CWG1TMR6AS CWG1AS1bits.CWG1TMR6AS // bit 6, shadows bit in CWG1AS1bits
16342 #define POLA CWG1CON1bits.POLA // bit 0, shadows bit in CWG1CON1bits
16343 #define CWG1POLA CWG1CON1bits.CWG1POLA // bit 0, shadows bit in CWG1CON1bits
16344 #define POLB CWG1CON1bits.POLB // bit 1, shadows bit in CWG1CON1bits
16345 #define CWG1POLB CWG1CON1bits.CWG1POLB // bit 1, shadows bit in CWG1CON1bits
16346 #define POLC CWG1CON1bits.POLC // bit 2, shadows bit in CWG1CON1bits
16347 #define CWG1POLC CWG1CON1bits.CWG1POLC // bit 2, shadows bit in CWG1CON1bits
16348 #define POLD CWG1CON1bits.POLD // bit 3, shadows bit in CWG1CON1bits
16349 #define CWG1POLD CWG1CON1bits.CWG1POLD // bit 3, shadows bit in CWG1CON1bits
16350 #define IN CWG1CON1bits.IN // bit 5, shadows bit in CWG1CON1bits
16351 #define CWG1IN CWG1CON1bits.CWG1IN // bit 5, shadows bit in CWG1CON1bits
16353 #define DBF0 CWG1DBFbits.DBF0 // bit 0, shadows bit in CWG1DBFbits
16354 #define CWG1DBF0 CWG1DBFbits.CWG1DBF0 // bit 0, shadows bit in CWG1DBFbits
16355 #define DBF1 CWG1DBFbits.DBF1 // bit 1, shadows bit in CWG1DBFbits
16356 #define CWG1DBF1 CWG1DBFbits.CWG1DBF1 // bit 1, shadows bit in CWG1DBFbits
16357 #define DBF2 CWG1DBFbits.DBF2 // bit 2, shadows bit in CWG1DBFbits
16358 #define CWG1DBF2 CWG1DBFbits.CWG1DBF2 // bit 2, shadows bit in CWG1DBFbits
16359 #define DBF3 CWG1DBFbits.DBF3 // bit 3, shadows bit in CWG1DBFbits
16360 #define CWG1DBF3 CWG1DBFbits.CWG1DBF3 // bit 3, shadows bit in CWG1DBFbits
16361 #define DBF4 CWG1DBFbits.DBF4 // bit 4, shadows bit in CWG1DBFbits
16362 #define CWG1DBF4 CWG1DBFbits.CWG1DBF4 // bit 4, shadows bit in CWG1DBFbits
16363 #define DBF5 CWG1DBFbits.DBF5 // bit 5, shadows bit in CWG1DBFbits
16364 #define CWG1DBF5 CWG1DBFbits.CWG1DBF5 // bit 5, shadows bit in CWG1DBFbits
16366 #define DBR0 CWG1DBRbits.DBR0 // bit 0, shadows bit in CWG1DBRbits
16367 #define CWG1DBR0 CWG1DBRbits.CWG1DBR0 // bit 0, shadows bit in CWG1DBRbits
16368 #define DBR1 CWG1DBRbits.DBR1 // bit 1, shadows bit in CWG1DBRbits
16369 #define CWG1DBR1 CWG1DBRbits.CWG1DBR1 // bit 1, shadows bit in CWG1DBRbits
16370 #define DBR2 CWG1DBRbits.DBR2 // bit 2, shadows bit in CWG1DBRbits
16371 #define CWG1DBR2 CWG1DBRbits.CWG1DBR2 // bit 2, shadows bit in CWG1DBRbits
16372 #define DBR3 CWG1DBRbits.DBR3 // bit 3, shadows bit in CWG1DBRbits
16373 #define CWG1DBR3 CWG1DBRbits.CWG1DBR3 // bit 3, shadows bit in CWG1DBRbits
16374 #define DBR4 CWG1DBRbits.DBR4 // bit 4, shadows bit in CWG1DBRbits
16375 #define CWG1DBR4 CWG1DBRbits.CWG1DBR4 // bit 4, shadows bit in CWG1DBRbits
16376 #define DBR5 CWG1DBRbits.DBR5 // bit 5, shadows bit in CWG1DBRbits
16377 #define CWG1DBR5 CWG1DBRbits.CWG1DBR5 // bit 5, shadows bit in CWG1DBRbits
16379 #define IS0 CWG1ISMbits.IS0 // bit 0, shadows bit in CWG1ISMbits
16380 #define CWG1IS0 CWG1ISMbits.CWG1IS0 // bit 0, shadows bit in CWG1ISMbits
16381 #define IS1 CWG1ISMbits.IS1 // bit 1, shadows bit in CWG1ISMbits
16382 #define CWG1IS1 CWG1ISMbits.CWG1IS1 // bit 1, shadows bit in CWG1ISMbits
16383 #define IS2 CWG1ISMbits.IS2 // bit 2, shadows bit in CWG1ISMbits
16384 #define CWG1IS2 CWG1ISMbits.CWG1IS2 // bit 2, shadows bit in CWG1ISMbits
16385 #define IS3 CWG1ISMbits.IS3 // bit 3, shadows bit in CWG1ISMbits
16386 #define CWG1IS3 CWG1ISMbits.CWG1IS3 // bit 3, shadows bit in CWG1ISMbits
16388 #define STRA CWG1OCON0bits.STRA // bit 0, shadows bit in CWG1OCON0bits
16389 #define CWG1STRA CWG1OCON0bits.CWG1STRA // bit 0, shadows bit in CWG1OCON0bits
16390 #define STRB CWG1OCON0bits.STRB // bit 1, shadows bit in CWG1OCON0bits
16391 #define CWG1STRB CWG1OCON0bits.CWG1STRB // bit 1, shadows bit in CWG1OCON0bits
16392 #define STRC CWG1OCON0bits.STRC // bit 2, shadows bit in CWG1OCON0bits
16393 #define CWG1STRC CWG1OCON0bits.CWG1STRC // bit 2, shadows bit in CWG1OCON0bits
16394 #define STRD CWG1OCON0bits.STRD // bit 3, shadows bit in CWG1OCON0bits
16395 #define CWG1STRD CWG1OCON0bits.CWG1STRD // bit 3, shadows bit in CWG1OCON0bits
16396 #define OVRA CWG1OCON0bits.OVRA // bit 4, shadows bit in CWG1OCON0bits
16397 #define CWG1OVRA CWG1OCON0bits.CWG1OVRA // bit 4, shadows bit in CWG1OCON0bits
16398 #define OVRB CWG1OCON0bits.OVRB // bit 5, shadows bit in CWG1OCON0bits
16399 #define CWG1OVRB CWG1OCON0bits.CWG1OVRB // bit 5, shadows bit in CWG1OCON0bits
16400 #define OVRC CWG1OCON0bits.OVRC // bit 6, shadows bit in CWG1OCON0bits
16401 #define CWG1OVRC CWG1OCON0bits.CWG1OVRC // bit 6, shadows bit in CWG1OCON0bits
16402 #define OVRD CWG1OCON0bits.OVRD // bit 7, shadows bit in CWG1OCON0bits
16403 #define CWG1OVRD CWG1OCON0bits.CWG1OVRD // bit 7, shadows bit in CWG1OCON0bits
16405 #define CWGINPPS0 CWGINPPSbits.CWGINPPS0 // bit 0
16406 #define CWGINPPS1 CWGINPPSbits.CWGINPPS1 // bit 1
16407 #define CWGINPPS2 CWGINPPSbits.CWGINPPS2 // bit 2
16408 #define CWGINPPS3 CWGINPPSbits.CWGINPPS3 // bit 3
16409 #define CWGINPPS4 CWGINPPSbits.CWGINPPS4 // bit 4
16411 #define D1PSS0 DAC1CON0bits.D1PSS0 // bit 2
16412 #define D1PSS1 DAC1CON0bits.D1PSS1 // bit 3
16413 #define DAC1OE DAC1CON0bits.DAC1OE // bit 5
16414 #define DAC1EN DAC1CON0bits.DAC1EN // bit 7
16416 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0
16417 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1
16418 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2
16419 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3
16420 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4
16421 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5
16422 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6
16423 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7
16425 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
16426 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
16427 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
16428 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
16429 #define TSRNG FVRCONbits.TSRNG // bit 4
16430 #define TSEN FVRCONbits.TSEN // bit 5
16431 #define FVRRDY FVRCONbits.FVRRDY // bit 6
16432 #define FVREN FVRCONbits.FVREN // bit 7
16434 #define HIDC4 HIDRVCbits.HIDC4 // bit 4
16435 #define HIDC5 HIDRVCbits.HIDC5 // bit 5
16437 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
16438 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
16439 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
16440 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
16441 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
16442 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
16444 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
16445 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
16446 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
16447 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
16448 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
16449 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
16451 #define IOCIF INTCONbits.IOCIF // bit 0
16452 #define INTF INTCONbits.INTF // bit 1
16453 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
16454 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
16455 #define IOCIE INTCONbits.IOCIE // bit 3
16456 #define INTE INTCONbits.INTE // bit 4
16457 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
16458 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
16459 #define PEIE INTCONbits.PEIE // bit 6
16460 #define GIE INTCONbits.GIE // bit 7
16462 #define INTPPS0 INTPPSbits.INTPPS0 // bit 0
16463 #define INTPPS1 INTPPSbits.INTPPS1 // bit 1
16464 #define INTPPS2 INTPPSbits.INTPPS2 // bit 2
16465 #define INTPPS3 INTPPSbits.INTPPS3 // bit 3
16466 #define INTPPS4 INTPPSbits.INTPPS4 // bit 4
16468 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
16469 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
16470 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
16471 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
16472 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
16473 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
16475 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
16476 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
16477 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
16478 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
16479 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
16480 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
16482 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
16483 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
16484 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
16485 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
16486 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
16487 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
16489 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
16490 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
16491 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
16492 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
16493 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
16494 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
16495 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
16496 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
16498 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
16499 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
16500 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
16501 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
16502 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
16503 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
16504 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
16505 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
16507 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
16508 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
16509 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
16510 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
16511 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
16512 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
16513 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
16514 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
16516 #define LATA0 LATAbits.LATA0 // bit 0
16517 #define LATA1 LATAbits.LATA1 // bit 1
16518 #define LATA2 LATAbits.LATA2 // bit 2
16519 #define LATA3 LATAbits.LATA3 // bit 3
16520 #define LATA4 LATAbits.LATA4 // bit 4
16521 #define LATA5 LATAbits.LATA5 // bit 5
16523 #define LATC0 LATCbits.LATC0 // bit 0
16524 #define LATC1 LATCbits.LATC1 // bit 1
16525 #define LATC2 LATCbits.LATC2 // bit 2
16526 #define LATC3 LATCbits.LATC3 // bit 3
16527 #define LATC4 LATCbits.LATC4 // bit 4
16528 #define LATC5 LATCbits.LATC5 // bit 5
16530 #define ODA0 ODCONAbits.ODA0 // bit 0
16531 #define ODA1 ODCONAbits.ODA1 // bit 1
16532 #define ODA2 ODCONAbits.ODA2 // bit 2
16533 #define ODA4 ODCONAbits.ODA4 // bit 4
16534 #define ODA5 ODCONAbits.ODA5 // bit 5
16536 #define ODC0 ODCONCbits.ODC0 // bit 0
16537 #define ODC1 ODCONCbits.ODC1 // bit 1
16538 #define ODC2 ODCONCbits.ODC2 // bit 2
16539 #define ODC3 ODCONCbits.ODC3 // bit 3
16540 #define ODC4 ODCONCbits.ODC4 // bit 4
16541 #define ODC5 ODCONCbits.ODC5 // bit 5
16543 #define SCS0 OSCCONbits.SCS0 // bit 0
16544 #define SCS1 OSCCONbits.SCS1 // bit 1
16545 #define IRCF0 OSCCONbits.IRCF0 // bit 3
16546 #define IRCF1 OSCCONbits.IRCF1 // bit 4
16547 #define IRCF2 OSCCONbits.IRCF2 // bit 5
16548 #define IRCF3 OSCCONbits.IRCF3 // bit 6
16549 #define SPLLEN OSCCONbits.SPLLEN // bit 7
16551 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
16552 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
16553 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
16554 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
16555 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
16556 #define OSTS OSCSTATbits.OSTS // bit 5
16557 #define PLLR OSCSTATbits.PLLR // bit 6
16559 #define TUN0 OSCTUNEbits.TUN0 // bit 0
16560 #define TUN1 OSCTUNEbits.TUN1 // bit 1
16561 #define TUN2 OSCTUNEbits.TUN2 // bit 2
16562 #define TUN3 OSCTUNEbits.TUN3 // bit 3
16563 #define TUN4 OSCTUNEbits.TUN4 // bit 4
16564 #define TUN5 OSCTUNEbits.TUN5 // bit 5
16566 #define NOT_BOR PCONbits.NOT_BOR // bit 0
16567 #define NOT_POR PCONbits.NOT_POR // bit 1
16568 #define NOT_RI PCONbits.NOT_RI // bit 2
16569 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
16570 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
16571 #define NOT_WDTWV PCONbits.NOT_WDTWV // bit 5
16572 #define STKUNF PCONbits.STKUNF // bit 6
16573 #define STKOVF PCONbits.STKOVF // bit 7
16575 #define PID1ACC24 PID1ACCHHbits.PID1ACC24 // bit 0, shadows bit in PID1ACCHHbits
16576 #define ACC24 PID1ACCHHbits.ACC24 // bit 0, shadows bit in PID1ACCHHbits
16577 #define PID1ACC25 PID1ACCHHbits.PID1ACC25 // bit 1, shadows bit in PID1ACCHHbits
16578 #define ACC25 PID1ACCHHbits.ACC25 // bit 1, shadows bit in PID1ACCHHbits
16579 #define PID1ACC26 PID1ACCHHbits.PID1ACC26 // bit 2, shadows bit in PID1ACCHHbits
16580 #define ACC26 PID1ACCHHbits.ACC26 // bit 2, shadows bit in PID1ACCHHbits
16581 #define PID1ACC27 PID1ACCHHbits.PID1ACC27 // bit 3, shadows bit in PID1ACCHHbits
16582 #define ACC27 PID1ACCHHbits.ACC27 // bit 3, shadows bit in PID1ACCHHbits
16583 #define PID1ACC28 PID1ACCHHbits.PID1ACC28 // bit 4, shadows bit in PID1ACCHHbits
16584 #define ACC28 PID1ACCHHbits.ACC28 // bit 4, shadows bit in PID1ACCHHbits
16585 #define PID1ACC29 PID1ACCHHbits.PID1ACC29 // bit 5, shadows bit in PID1ACCHHbits
16586 #define ACC29 PID1ACCHHbits.ACC29 // bit 5, shadows bit in PID1ACCHHbits
16587 #define PID1ACC30 PID1ACCHHbits.PID1ACC30 // bit 6, shadows bit in PID1ACCHHbits
16588 #define ACC30 PID1ACCHHbits.ACC30 // bit 6, shadows bit in PID1ACCHHbits
16589 #define PID1ACC31 PID1ACCHHbits.PID1ACC31 // bit 7, shadows bit in PID1ACCHHbits
16590 #define ACC31 PID1ACCHHbits.ACC31 // bit 7, shadows bit in PID1ACCHHbits
16592 #define PID1ACC16 PID1ACCHLbits.PID1ACC16 // bit 0, shadows bit in PID1ACCHLbits
16593 #define ACC16 PID1ACCHLbits.ACC16 // bit 0, shadows bit in PID1ACCHLbits
16594 #define PID1ACC17 PID1ACCHLbits.PID1ACC17 // bit 1, shadows bit in PID1ACCHLbits
16595 #define ACC17 PID1ACCHLbits.ACC17 // bit 1, shadows bit in PID1ACCHLbits
16596 #define PID1ACC18 PID1ACCHLbits.PID1ACC18 // bit 2, shadows bit in PID1ACCHLbits
16597 #define ACC18 PID1ACCHLbits.ACC18 // bit 2, shadows bit in PID1ACCHLbits
16598 #define PID1ACC19 PID1ACCHLbits.PID1ACC19 // bit 3, shadows bit in PID1ACCHLbits
16599 #define ACC19 PID1ACCHLbits.ACC19 // bit 3, shadows bit in PID1ACCHLbits
16600 #define PID1ACC20 PID1ACCHLbits.PID1ACC20 // bit 4, shadows bit in PID1ACCHLbits
16601 #define ACC20 PID1ACCHLbits.ACC20 // bit 4, shadows bit in PID1ACCHLbits
16602 #define PID1ACC21 PID1ACCHLbits.PID1ACC21 // bit 5, shadows bit in PID1ACCHLbits
16603 #define ACC21 PID1ACCHLbits.ACC21 // bit 5, shadows bit in PID1ACCHLbits
16604 #define PID1ACC22 PID1ACCHLbits.PID1ACC22 // bit 6, shadows bit in PID1ACCHLbits
16605 #define ACC22 PID1ACCHLbits.ACC22 // bit 6, shadows bit in PID1ACCHLbits
16606 #define PID1ACC23 PID1ACCHLbits.PID1ACC23 // bit 7, shadows bit in PID1ACCHLbits
16607 #define ACC23 PID1ACCHLbits.ACC23 // bit 7, shadows bit in PID1ACCHLbits
16609 #define PID1ACC32 PID1ACCUbits.PID1ACC32 // bit 0, shadows bit in PID1ACCUbits
16610 #define ACC32 PID1ACCUbits.ACC32 // bit 0, shadows bit in PID1ACCUbits
16611 #define PID1ACC33 PID1ACCUbits.PID1ACC33 // bit 1, shadows bit in PID1ACCUbits
16612 #define ACC33 PID1ACCUbits.ACC33 // bit 1, shadows bit in PID1ACCUbits
16613 #define PID1ACC34 PID1ACCUbits.PID1ACC34 // bit 2, shadows bit in PID1ACCUbits
16614 #define ACC34 PID1ACCUbits.ACC34 // bit 2, shadows bit in PID1ACCUbits
16616 #define PID1IN8 PID1INHbits.PID1IN8 // bit 0, shadows bit in PID1INHbits
16617 #define IN8 PID1INHbits.IN8 // bit 0, shadows bit in PID1INHbits
16618 #define PID1IN9 PID1INHbits.PID1IN9 // bit 1, shadows bit in PID1INHbits
16619 #define IN9 PID1INHbits.IN9 // bit 1, shadows bit in PID1INHbits
16620 #define PID1IN10 PID1INHbits.PID1IN10 // bit 2, shadows bit in PID1INHbits
16621 #define IN10 PID1INHbits.IN10 // bit 2, shadows bit in PID1INHbits
16622 #define PID1IN11 PID1INHbits.PID1IN11 // bit 3, shadows bit in PID1INHbits
16623 #define IN11 PID1INHbits.IN11 // bit 3, shadows bit in PID1INHbits
16624 #define PID1IN12 PID1INHbits.PID1IN12 // bit 4, shadows bit in PID1INHbits
16625 #define IN12 PID1INHbits.IN12 // bit 4, shadows bit in PID1INHbits
16626 #define PID1IN13 PID1INHbits.PID1IN13 // bit 5, shadows bit in PID1INHbits
16627 #define IN13 PID1INHbits.IN13 // bit 5, shadows bit in PID1INHbits
16628 #define PID1IN14 PID1INHbits.PID1IN14 // bit 6, shadows bit in PID1INHbits
16629 #define IN14 PID1INHbits.IN14 // bit 6, shadows bit in PID1INHbits
16630 #define PID1IN15 PID1INHbits.PID1IN15 // bit 7, shadows bit in PID1INHbits
16631 #define IN15 PID1INHbits.IN15 // bit 7, shadows bit in PID1INHbits
16633 #define PID1IN0 PID1INLbits.PID1IN0 // bit 0, shadows bit in PID1INLbits
16634 #define IN0 PID1INLbits.IN0 // bit 0, shadows bit in PID1INLbits
16635 #define PID1IN1 PID1INLbits.PID1IN1 // bit 1, shadows bit in PID1INLbits
16636 #define IN1 PID1INLbits.IN1 // bit 1, shadows bit in PID1INLbits
16637 #define PID1IN2 PID1INLbits.PID1IN2 // bit 2, shadows bit in PID1INLbits
16638 #define IN2 PID1INLbits.IN2 // bit 2, shadows bit in PID1INLbits
16639 #define PID1IN3 PID1INLbits.PID1IN3 // bit 3, shadows bit in PID1INLbits
16640 #define IN3 PID1INLbits.IN3 // bit 3, shadows bit in PID1INLbits
16641 #define PID1IN4 PID1INLbits.PID1IN4 // bit 4, shadows bit in PID1INLbits
16642 #define IN4 PID1INLbits.IN4 // bit 4, shadows bit in PID1INLbits
16643 #define PID1IN5 PID1INLbits.PID1IN5 // bit 5, shadows bit in PID1INLbits
16644 #define IN5 PID1INLbits.IN5 // bit 5, shadows bit in PID1INLbits
16645 #define PID1IN6 PID1INLbits.PID1IN6 // bit 6, shadows bit in PID1INLbits
16646 #define IN6 PID1INLbits.IN6 // bit 6, shadows bit in PID1INLbits
16647 #define PID1IN7 PID1INLbits.PID1IN7 // bit 7, shadows bit in PID1INLbits
16648 #define IN7 PID1INLbits.IN7 // bit 7, shadows bit in PID1INLbits
16650 #define PID1K18 PID1K1Hbits.PID1K18 // bit 0, shadows bit in PID1K1Hbits
16651 #define K18 PID1K1Hbits.K18 // bit 0, shadows bit in PID1K1Hbits
16652 #define PID1K19 PID1K1Hbits.PID1K19 // bit 1, shadows bit in PID1K1Hbits
16653 #define K19 PID1K1Hbits.K19 // bit 1, shadows bit in PID1K1Hbits
16654 #define PID1K110 PID1K1Hbits.PID1K110 // bit 2, shadows bit in PID1K1Hbits
16655 #define K110 PID1K1Hbits.K110 // bit 2, shadows bit in PID1K1Hbits
16656 #define PID1K111 PID1K1Hbits.PID1K111 // bit 3, shadows bit in PID1K1Hbits
16657 #define K111 PID1K1Hbits.K111 // bit 3, shadows bit in PID1K1Hbits
16658 #define PID1K112 PID1K1Hbits.PID1K112 // bit 4, shadows bit in PID1K1Hbits
16659 #define K112 PID1K1Hbits.K112 // bit 4, shadows bit in PID1K1Hbits
16660 #define PID1K113 PID1K1Hbits.PID1K113 // bit 5, shadows bit in PID1K1Hbits
16661 #define K113 PID1K1Hbits.K113 // bit 5, shadows bit in PID1K1Hbits
16662 #define PID1K114 PID1K1Hbits.PID1K114 // bit 6, shadows bit in PID1K1Hbits
16663 #define K114 PID1K1Hbits.K114 // bit 6, shadows bit in PID1K1Hbits
16664 #define PID1K115 PID1K1Hbits.PID1K115 // bit 7, shadows bit in PID1K1Hbits
16665 #define K115 PID1K1Hbits.K115 // bit 7, shadows bit in PID1K1Hbits
16667 #define PID1K10 PID1K1Lbits.PID1K10 // bit 0, shadows bit in PID1K1Lbits
16668 #define K10 PID1K1Lbits.K10 // bit 0, shadows bit in PID1K1Lbits
16669 #define PID1K11 PID1K1Lbits.PID1K11 // bit 1, shadows bit in PID1K1Lbits
16670 #define K11 PID1K1Lbits.K11 // bit 1, shadows bit in PID1K1Lbits
16671 #define PID1K12 PID1K1Lbits.PID1K12 // bit 2, shadows bit in PID1K1Lbits
16672 #define K12 PID1K1Lbits.K12 // bit 2, shadows bit in PID1K1Lbits
16673 #define PID1K13 PID1K1Lbits.PID1K13 // bit 3, shadows bit in PID1K1Lbits
16674 #define K13 PID1K1Lbits.K13 // bit 3, shadows bit in PID1K1Lbits
16675 #define PID1K14 PID1K1Lbits.PID1K14 // bit 4, shadows bit in PID1K1Lbits
16676 #define K14 PID1K1Lbits.K14 // bit 4, shadows bit in PID1K1Lbits
16677 #define PID1K15 PID1K1Lbits.PID1K15 // bit 5, shadows bit in PID1K1Lbits
16678 #define K15 PID1K1Lbits.K15 // bit 5, shadows bit in PID1K1Lbits
16679 #define PID1K16 PID1K1Lbits.PID1K16 // bit 6, shadows bit in PID1K1Lbits
16680 #define K16 PID1K1Lbits.K16 // bit 6, shadows bit in PID1K1Lbits
16681 #define PID1K17 PID1K1Lbits.PID1K17 // bit 7, shadows bit in PID1K1Lbits
16682 #define K17 PID1K1Lbits.K17 // bit 7, shadows bit in PID1K1Lbits
16684 #define PID1K28 PID1K2Hbits.PID1K28 // bit 0, shadows bit in PID1K2Hbits
16685 #define K28 PID1K2Hbits.K28 // bit 0, shadows bit in PID1K2Hbits
16686 #define PID1K29 PID1K2Hbits.PID1K29 // bit 1, shadows bit in PID1K2Hbits
16687 #define K29 PID1K2Hbits.K29 // bit 1, shadows bit in PID1K2Hbits
16688 #define PID1K210 PID1K2Hbits.PID1K210 // bit 2, shadows bit in PID1K2Hbits
16689 #define K210 PID1K2Hbits.K210 // bit 2, shadows bit in PID1K2Hbits
16690 #define PID1K211 PID1K2Hbits.PID1K211 // bit 3, shadows bit in PID1K2Hbits
16691 #define K211 PID1K2Hbits.K211 // bit 3, shadows bit in PID1K2Hbits
16692 #define PID1K212 PID1K2Hbits.PID1K212 // bit 4, shadows bit in PID1K2Hbits
16693 #define K212 PID1K2Hbits.K212 // bit 4, shadows bit in PID1K2Hbits
16694 #define PID1K213 PID1K2Hbits.PID1K213 // bit 5, shadows bit in PID1K2Hbits
16695 #define K213 PID1K2Hbits.K213 // bit 5, shadows bit in PID1K2Hbits
16696 #define PID1K214 PID1K2Hbits.PID1K214 // bit 6, shadows bit in PID1K2Hbits
16697 #define K214 PID1K2Hbits.K214 // bit 6, shadows bit in PID1K2Hbits
16698 #define PID1K215 PID1K2Hbits.PID1K215 // bit 7, shadows bit in PID1K2Hbits
16699 #define K215 PID1K2Hbits.K215 // bit 7, shadows bit in PID1K2Hbits
16701 #define PID1K20 PID1K2Lbits.PID1K20 // bit 0, shadows bit in PID1K2Lbits
16702 #define K20 PID1K2Lbits.K20 // bit 0, shadows bit in PID1K2Lbits
16703 #define PID1K21 PID1K2Lbits.PID1K21 // bit 1, shadows bit in PID1K2Lbits
16704 #define K21 PID1K2Lbits.K21 // bit 1, shadows bit in PID1K2Lbits
16705 #define PID1K22 PID1K2Lbits.PID1K22 // bit 2, shadows bit in PID1K2Lbits
16706 #define K22 PID1K2Lbits.K22 // bit 2, shadows bit in PID1K2Lbits
16707 #define PID1K23 PID1K2Lbits.PID1K23 // bit 3, shadows bit in PID1K2Lbits
16708 #define K23 PID1K2Lbits.K23 // bit 3, shadows bit in PID1K2Lbits
16709 #define PID1K24 PID1K2Lbits.PID1K24 // bit 4, shadows bit in PID1K2Lbits
16710 #define K24 PID1K2Lbits.K24 // bit 4, shadows bit in PID1K2Lbits
16711 #define PID1K25 PID1K2Lbits.PID1K25 // bit 5, shadows bit in PID1K2Lbits
16712 #define K25 PID1K2Lbits.K25 // bit 5, shadows bit in PID1K2Lbits
16713 #define PID1K26 PID1K2Lbits.PID1K26 // bit 6, shadows bit in PID1K2Lbits
16714 #define K26 PID1K2Lbits.K26 // bit 6, shadows bit in PID1K2Lbits
16715 #define PID1K27 PID1K2Lbits.PID1K27 // bit 7, shadows bit in PID1K2Lbits
16716 #define K27 PID1K2Lbits.K27 // bit 7, shadows bit in PID1K2Lbits
16718 #define PID1K38 PID1K3Hbits.PID1K38 // bit 0, shadows bit in PID1K3Hbits
16719 #define K38 PID1K3Hbits.K38 // bit 0, shadows bit in PID1K3Hbits
16720 #define PID1K39 PID1K3Hbits.PID1K39 // bit 1, shadows bit in PID1K3Hbits
16721 #define K39 PID1K3Hbits.K39 // bit 1, shadows bit in PID1K3Hbits
16722 #define PID1K310 PID1K3Hbits.PID1K310 // bit 2, shadows bit in PID1K3Hbits
16723 #define K310 PID1K3Hbits.K310 // bit 2, shadows bit in PID1K3Hbits
16724 #define PID1K311 PID1K3Hbits.PID1K311 // bit 3, shadows bit in PID1K3Hbits
16725 #define K311 PID1K3Hbits.K311 // bit 3, shadows bit in PID1K3Hbits
16726 #define PID1K312 PID1K3Hbits.PID1K312 // bit 4, shadows bit in PID1K3Hbits
16727 #define K312 PID1K3Hbits.K312 // bit 4, shadows bit in PID1K3Hbits
16728 #define PID1K313 PID1K3Hbits.PID1K313 // bit 5, shadows bit in PID1K3Hbits
16729 #define K313 PID1K3Hbits.K313 // bit 5, shadows bit in PID1K3Hbits
16730 #define PID1K314 PID1K3Hbits.PID1K314 // bit 6, shadows bit in PID1K3Hbits
16731 #define K314 PID1K3Hbits.K314 // bit 6, shadows bit in PID1K3Hbits
16732 #define PID1K315 PID1K3Hbits.PID1K315 // bit 7, shadows bit in PID1K3Hbits
16733 #define K315 PID1K3Hbits.K315 // bit 7, shadows bit in PID1K3Hbits
16735 #define PID1K30 PID1K3Lbits.PID1K30 // bit 0, shadows bit in PID1K3Lbits
16736 #define K30 PID1K3Lbits.K30 // bit 0, shadows bit in PID1K3Lbits
16737 #define PID1K31 PID1K3Lbits.PID1K31 // bit 1, shadows bit in PID1K3Lbits
16738 #define K31 PID1K3Lbits.K31 // bit 1, shadows bit in PID1K3Lbits
16739 #define PID1K32 PID1K3Lbits.PID1K32 // bit 2, shadows bit in PID1K3Lbits
16740 #define K32 PID1K3Lbits.K32 // bit 2, shadows bit in PID1K3Lbits
16741 #define PID1K33 PID1K3Lbits.PID1K33 // bit 3, shadows bit in PID1K3Lbits
16742 #define K33 PID1K3Lbits.K33 // bit 3, shadows bit in PID1K3Lbits
16743 #define PID1K34 PID1K3Lbits.PID1K34 // bit 4, shadows bit in PID1K3Lbits
16744 #define K34 PID1K3Lbits.K34 // bit 4, shadows bit in PID1K3Lbits
16745 #define PID1K35 PID1K3Lbits.PID1K35 // bit 5, shadows bit in PID1K3Lbits
16746 #define K35 PID1K3Lbits.K35 // bit 5, shadows bit in PID1K3Lbits
16747 #define PID1K36 PID1K3Lbits.PID1K36 // bit 6, shadows bit in PID1K3Lbits
16748 #define K36 PID1K3Lbits.K36 // bit 6, shadows bit in PID1K3Lbits
16749 #define PID1K37 PID1K3Lbits.PID1K37 // bit 7, shadows bit in PID1K3Lbits
16750 #define K37 PID1K3Lbits.K37 // bit 7, shadows bit in PID1K3Lbits
16752 #define PID1OUT24 PID1OUTHHbits.PID1OUT24 // bit 0, shadows bit in PID1OUTHHbits
16753 #define OUT24 PID1OUTHHbits.OUT24 // bit 0, shadows bit in PID1OUTHHbits
16754 #define PID1OUT25 PID1OUTHHbits.PID1OUT25 // bit 1, shadows bit in PID1OUTHHbits
16755 #define OUT25 PID1OUTHHbits.OUT25 // bit 1, shadows bit in PID1OUTHHbits
16756 #define PID1OUT26 PID1OUTHHbits.PID1OUT26 // bit 2, shadows bit in PID1OUTHHbits
16757 #define OUT26 PID1OUTHHbits.OUT26 // bit 2, shadows bit in PID1OUTHHbits
16758 #define PID1OUT27 PID1OUTHHbits.PID1OUT27 // bit 3, shadows bit in PID1OUTHHbits
16759 #define OUT27 PID1OUTHHbits.OUT27 // bit 3, shadows bit in PID1OUTHHbits
16760 #define PID1OUT28 PID1OUTHHbits.PID1OUT28 // bit 4, shadows bit in PID1OUTHHbits
16761 #define OUT28 PID1OUTHHbits.OUT28 // bit 4, shadows bit in PID1OUTHHbits
16762 #define PID1OUT29 PID1OUTHHbits.PID1OUT29 // bit 5, shadows bit in PID1OUTHHbits
16763 #define OUT29 PID1OUTHHbits.OUT29 // bit 5, shadows bit in PID1OUTHHbits
16764 #define PID1OUT30 PID1OUTHHbits.PID1OUT30 // bit 6, shadows bit in PID1OUTHHbits
16765 #define OUT30 PID1OUTHHbits.OUT30 // bit 6, shadows bit in PID1OUTHHbits
16766 #define PID1OUT31 PID1OUTHHbits.PID1OUT31 // bit 7, shadows bit in PID1OUTHHbits
16767 #define OUT31 PID1OUTHHbits.OUT31 // bit 7, shadows bit in PID1OUTHHbits
16769 #define PID1OUT16 PID1OUTHLbits.PID1OUT16 // bit 0, shadows bit in PID1OUTHLbits
16770 #define OUT16 PID1OUTHLbits.OUT16 // bit 0, shadows bit in PID1OUTHLbits
16771 #define PID1OUT17 PID1OUTHLbits.PID1OUT17 // bit 1, shadows bit in PID1OUTHLbits
16772 #define OUT17 PID1OUTHLbits.OUT17 // bit 1, shadows bit in PID1OUTHLbits
16773 #define PID1OUT18 PID1OUTHLbits.PID1OUT18 // bit 2, shadows bit in PID1OUTHLbits
16774 #define OUT18 PID1OUTHLbits.OUT18 // bit 2, shadows bit in PID1OUTHLbits
16775 #define PID1OUT19 PID1OUTHLbits.PID1OUT19 // bit 3, shadows bit in PID1OUTHLbits
16776 #define OUT19 PID1OUTHLbits.OUT19 // bit 3, shadows bit in PID1OUTHLbits
16777 #define PID1OUT20 PID1OUTHLbits.PID1OUT20 // bit 4, shadows bit in PID1OUTHLbits
16778 #define OUT20 PID1OUTHLbits.OUT20 // bit 4, shadows bit in PID1OUTHLbits
16779 #define PID1OUT21 PID1OUTHLbits.PID1OUT21 // bit 5, shadows bit in PID1OUTHLbits
16780 #define OUT21 PID1OUTHLbits.OUT21 // bit 5, shadows bit in PID1OUTHLbits
16781 #define PID1OUT22 PID1OUTHLbits.PID1OUT22 // bit 6, shadows bit in PID1OUTHLbits
16782 #define OUT22 PID1OUTHLbits.OUT22 // bit 6, shadows bit in PID1OUTHLbits
16783 #define PID1OUT23 PID1OUTHLbits.PID1OUT23 // bit 7, shadows bit in PID1OUTHLbits
16784 #define OUT23 PID1OUTHLbits.OUT23 // bit 7, shadows bit in PID1OUTHLbits
16786 #define PID1OUT8 PID1OUTLHbits.PID1OUT8 // bit 0, shadows bit in PID1OUTLHbits
16787 #define OUT8 PID1OUTLHbits.OUT8 // bit 0, shadows bit in PID1OUTLHbits
16788 #define PID1OUT9 PID1OUTLHbits.PID1OUT9 // bit 1, shadows bit in PID1OUTLHbits
16789 #define OUT9 PID1OUTLHbits.OUT9 // bit 1, shadows bit in PID1OUTLHbits
16790 #define PID1OUT10 PID1OUTLHbits.PID1OUT10 // bit 2, shadows bit in PID1OUTLHbits
16791 #define OUT10 PID1OUTLHbits.OUT10 // bit 2, shadows bit in PID1OUTLHbits
16792 #define PID1OUT11 PID1OUTLHbits.PID1OUT11 // bit 3, shadows bit in PID1OUTLHbits
16793 #define OUT11 PID1OUTLHbits.OUT11 // bit 3, shadows bit in PID1OUTLHbits
16794 #define PID1OUT12 PID1OUTLHbits.PID1OUT12 // bit 4, shadows bit in PID1OUTLHbits
16795 #define OUT12 PID1OUTLHbits.OUT12 // bit 4, shadows bit in PID1OUTLHbits
16796 #define PID1OUT13 PID1OUTLHbits.PID1OUT13 // bit 5, shadows bit in PID1OUTLHbits
16797 #define OUT13 PID1OUTLHbits.OUT13 // bit 5, shadows bit in PID1OUTLHbits
16798 #define PID1OUT14 PID1OUTLHbits.PID1OUT14 // bit 6, shadows bit in PID1OUTLHbits
16799 #define OUT14 PID1OUTLHbits.OUT14 // bit 6, shadows bit in PID1OUTLHbits
16800 #define PID1OUT15 PID1OUTLHbits.PID1OUT15 // bit 7, shadows bit in PID1OUTLHbits
16801 #define OUT15 PID1OUTLHbits.OUT15 // bit 7, shadows bit in PID1OUTLHbits
16803 #define PID1OUT0 PID1OUTLLbits.PID1OUT0 // bit 0, shadows bit in PID1OUTLLbits
16804 #define OUT0 PID1OUTLLbits.OUT0 // bit 0, shadows bit in PID1OUTLLbits
16805 #define PID1OUT1 PID1OUTLLbits.PID1OUT1 // bit 1, shadows bit in PID1OUTLLbits
16806 #define OUT1 PID1OUTLLbits.OUT1 // bit 1, shadows bit in PID1OUTLLbits
16807 #define PID1OUT2 PID1OUTLLbits.PID1OUT2 // bit 2, shadows bit in PID1OUTLLbits
16808 #define OUT2 PID1OUTLLbits.OUT2 // bit 2, shadows bit in PID1OUTLLbits
16809 #define PID1OUT3 PID1OUTLLbits.PID1OUT3 // bit 3, shadows bit in PID1OUTLLbits
16810 #define OUT3 PID1OUTLLbits.OUT3 // bit 3, shadows bit in PID1OUTLLbits
16811 #define PID1OUT4 PID1OUTLLbits.PID1OUT4 // bit 4, shadows bit in PID1OUTLLbits
16812 #define OUT4 PID1OUTLLbits.OUT4 // bit 4, shadows bit in PID1OUTLLbits
16813 #define PID1OUT5 PID1OUTLLbits.PID1OUT5 // bit 5, shadows bit in PID1OUTLLbits
16814 #define OUT5 PID1OUTLLbits.OUT5 // bit 5, shadows bit in PID1OUTLLbits
16815 #define PID1OUT6 PID1OUTLLbits.PID1OUT6 // bit 6, shadows bit in PID1OUTLLbits
16816 #define OUT6 PID1OUTLLbits.OUT6 // bit 6, shadows bit in PID1OUTLLbits
16817 #define PID1OUT7 PID1OUTLLbits.PID1OUT7 // bit 7, shadows bit in PID1OUTLLbits
16818 #define OUT7 PID1OUTLLbits.OUT7 // bit 7, shadows bit in PID1OUTLLbits
16820 #define PID1OUT32 PID1OUTUbits.PID1OUT32 // bit 0, shadows bit in PID1OUTUbits
16821 #define OUT32 PID1OUTUbits.OUT32 // bit 0, shadows bit in PID1OUTUbits
16822 #define PID1OUT33 PID1OUTUbits.PID1OUT33 // bit 1, shadows bit in PID1OUTUbits
16823 #define OUT33 PID1OUTUbits.OUT33 // bit 1, shadows bit in PID1OUTUbits
16824 #define PID1OUT34 PID1OUTUbits.PID1OUT34 // bit 2, shadows bit in PID1OUTUbits
16825 #define OUT34 PID1OUTUbits.OUT34 // bit 2, shadows bit in PID1OUTUbits
16826 #define PID1OUT35 PID1OUTUbits.PID1OUT35 // bit 3, shadows bit in PID1OUTUbits
16827 #define OUT35 PID1OUTUbits.OUT35 // bit 3, shadows bit in PID1OUTUbits
16829 #define PID1SET8 PID1SETHbits.PID1SET8 // bit 0, shadows bit in PID1SETHbits
16830 #define SET8 PID1SETHbits.SET8 // bit 0, shadows bit in PID1SETHbits
16831 #define PID1SET9 PID1SETHbits.PID1SET9 // bit 1, shadows bit in PID1SETHbits
16832 #define SET9 PID1SETHbits.SET9 // bit 1, shadows bit in PID1SETHbits
16833 #define PID1SET10 PID1SETHbits.PID1SET10 // bit 2, shadows bit in PID1SETHbits
16834 #define SET10 PID1SETHbits.SET10 // bit 2, shadows bit in PID1SETHbits
16835 #define PID1SET11 PID1SETHbits.PID1SET11 // bit 3, shadows bit in PID1SETHbits
16836 #define SET11 PID1SETHbits.SET11 // bit 3, shadows bit in PID1SETHbits
16837 #define PID1SET12 PID1SETHbits.PID1SET12 // bit 4, shadows bit in PID1SETHbits
16838 #define SET12 PID1SETHbits.SET12 // bit 4, shadows bit in PID1SETHbits
16839 #define PID1SET13 PID1SETHbits.PID1SET13 // bit 5, shadows bit in PID1SETHbits
16840 #define SET13 PID1SETHbits.SET13 // bit 5, shadows bit in PID1SETHbits
16841 #define PID1SET14 PID1SETHbits.PID1SET14 // bit 6, shadows bit in PID1SETHbits
16842 #define SET14 PID1SETHbits.SET14 // bit 6, shadows bit in PID1SETHbits
16843 #define PID1SET15 PID1SETHbits.PID1SET15 // bit 7, shadows bit in PID1SETHbits
16844 #define SET15 PID1SETHbits.SET15 // bit 7, shadows bit in PID1SETHbits
16846 #define PID1SET0 PID1SETLbits.PID1SET0 // bit 0, shadows bit in PID1SETLbits
16847 #define SET0 PID1SETLbits.SET0 // bit 0, shadows bit in PID1SETLbits
16848 #define PID1SET1 PID1SETLbits.PID1SET1 // bit 1, shadows bit in PID1SETLbits
16849 #define SET1 PID1SETLbits.SET1 // bit 1, shadows bit in PID1SETLbits
16850 #define PID1SET2 PID1SETLbits.PID1SET2 // bit 2, shadows bit in PID1SETLbits
16851 #define SET2 PID1SETLbits.SET2 // bit 2, shadows bit in PID1SETLbits
16852 #define PID1SET3 PID1SETLbits.PID1SET3 // bit 3, shadows bit in PID1SETLbits
16853 #define SET3 PID1SETLbits.SET3 // bit 3, shadows bit in PID1SETLbits
16854 #define PID1SET4 PID1SETLbits.PID1SET4 // bit 4, shadows bit in PID1SETLbits
16855 #define SET4 PID1SETLbits.SET4 // bit 4, shadows bit in PID1SETLbits
16856 #define PID1SET5 PID1SETLbits.PID1SET5 // bit 5, shadows bit in PID1SETLbits
16857 #define SET5 PID1SETLbits.SET5 // bit 5, shadows bit in PID1SETLbits
16858 #define PID1SET6 PID1SETLbits.PID1SET6 // bit 6, shadows bit in PID1SETLbits
16859 #define SET6 PID1SETLbits.SET6 // bit 6, shadows bit in PID1SETLbits
16860 #define PID1SET7 PID1SETLbits.PID1SET7 // bit 7, shadows bit in PID1SETLbits
16861 #define SET7 PID1SETLbits.SET7 // bit 7, shadows bit in PID1SETLbits
16863 #define PID1Z18 PID1Z1Hbits.PID1Z18 // bit 0, shadows bit in PID1Z1Hbits
16864 #define Z18 PID1Z1Hbits.Z18 // bit 0, shadows bit in PID1Z1Hbits
16865 #define PID1Z19 PID1Z1Hbits.PID1Z19 // bit 1, shadows bit in PID1Z1Hbits
16866 #define Z19 PID1Z1Hbits.Z19 // bit 1, shadows bit in PID1Z1Hbits
16867 #define PID1Z110 PID1Z1Hbits.PID1Z110 // bit 2, shadows bit in PID1Z1Hbits
16868 #define Z110 PID1Z1Hbits.Z110 // bit 2, shadows bit in PID1Z1Hbits
16869 #define PID1Z111 PID1Z1Hbits.PID1Z111 // bit 3, shadows bit in PID1Z1Hbits
16870 #define Z111 PID1Z1Hbits.Z111 // bit 3, shadows bit in PID1Z1Hbits
16871 #define PID1Z112 PID1Z1Hbits.PID1Z112 // bit 4, shadows bit in PID1Z1Hbits
16872 #define Z112 PID1Z1Hbits.Z112 // bit 4, shadows bit in PID1Z1Hbits
16873 #define PID1Z113 PID1Z1Hbits.PID1Z113 // bit 5, shadows bit in PID1Z1Hbits
16874 #define Z113 PID1Z1Hbits.Z113 // bit 5, shadows bit in PID1Z1Hbits
16875 #define PID1Z114 PID1Z1Hbits.PID1Z114 // bit 6, shadows bit in PID1Z1Hbits
16876 #define Z114 PID1Z1Hbits.Z114 // bit 6, shadows bit in PID1Z1Hbits
16877 #define PID1Z115 PID1Z1Hbits.PID1Z115 // bit 7, shadows bit in PID1Z1Hbits
16878 #define Z115 PID1Z1Hbits.Z115 // bit 7, shadows bit in PID1Z1Hbits
16880 #define PID1Z10 PID1Z1Lbits.PID1Z10 // bit 0, shadows bit in PID1Z1Lbits
16881 #define Z10 PID1Z1Lbits.Z10 // bit 0, shadows bit in PID1Z1Lbits
16882 #define PID1Z11 PID1Z1Lbits.PID1Z11 // bit 1, shadows bit in PID1Z1Lbits
16883 #define Z11 PID1Z1Lbits.Z11 // bit 1, shadows bit in PID1Z1Lbits
16884 #define PID1Z12 PID1Z1Lbits.PID1Z12 // bit 2, shadows bit in PID1Z1Lbits
16885 #define Z12 PID1Z1Lbits.Z12 // bit 2, shadows bit in PID1Z1Lbits
16886 #define PID1Z13 PID1Z1Lbits.PID1Z13 // bit 3, shadows bit in PID1Z1Lbits
16887 #define Z13 PID1Z1Lbits.Z13 // bit 3, shadows bit in PID1Z1Lbits
16888 #define PID1Z14 PID1Z1Lbits.PID1Z14 // bit 4, shadows bit in PID1Z1Lbits
16889 #define Z14 PID1Z1Lbits.Z14 // bit 4, shadows bit in PID1Z1Lbits
16890 #define PID1Z15 PID1Z1Lbits.PID1Z15 // bit 5, shadows bit in PID1Z1Lbits
16891 #define Z15 PID1Z1Lbits.Z15 // bit 5, shadows bit in PID1Z1Lbits
16892 #define PID1Z16 PID1Z1Lbits.PID1Z16 // bit 6, shadows bit in PID1Z1Lbits
16893 #define Z16 PID1Z1Lbits.Z16 // bit 6, shadows bit in PID1Z1Lbits
16894 #define PID1Z17 PID1Z1Lbits.PID1Z17 // bit 7, shadows bit in PID1Z1Lbits
16895 #define Z17 PID1Z1Lbits.Z17 // bit 7, shadows bit in PID1Z1Lbits
16897 #define PID1Z116 PID1Z1Ubits.PID1Z116 // bit 0, shadows bit in PID1Z1Ubits
16898 #define Z116 PID1Z1Ubits.Z116 // bit 0, shadows bit in PID1Z1Ubits
16900 #define PID1Z28 PID1Z2Hbits.PID1Z28 // bit 0, shadows bit in PID1Z2Hbits
16901 #define Z28 PID1Z2Hbits.Z28 // bit 0, shadows bit in PID1Z2Hbits
16902 #define PID1Z29 PID1Z2Hbits.PID1Z29 // bit 1, shadows bit in PID1Z2Hbits
16903 #define Z29 PID1Z2Hbits.Z29 // bit 1, shadows bit in PID1Z2Hbits
16904 #define PID1Z210 PID1Z2Hbits.PID1Z210 // bit 2, shadows bit in PID1Z2Hbits
16905 #define Z210 PID1Z2Hbits.Z210 // bit 2, shadows bit in PID1Z2Hbits
16906 #define PID1Z211 PID1Z2Hbits.PID1Z211 // bit 3, shadows bit in PID1Z2Hbits
16907 #define Z211 PID1Z2Hbits.Z211 // bit 3, shadows bit in PID1Z2Hbits
16908 #define PID1Z212 PID1Z2Hbits.PID1Z212 // bit 4, shadows bit in PID1Z2Hbits
16909 #define Z212 PID1Z2Hbits.Z212 // bit 4, shadows bit in PID1Z2Hbits
16910 #define PID1Z213 PID1Z2Hbits.PID1Z213 // bit 5, shadows bit in PID1Z2Hbits
16911 #define Z213 PID1Z2Hbits.Z213 // bit 5, shadows bit in PID1Z2Hbits
16912 #define PID1Z214 PID1Z2Hbits.PID1Z214 // bit 6, shadows bit in PID1Z2Hbits
16913 #define Z214 PID1Z2Hbits.Z214 // bit 6, shadows bit in PID1Z2Hbits
16914 #define PID1Z215 PID1Z2Hbits.PID1Z215 // bit 7, shadows bit in PID1Z2Hbits
16915 #define Z215 PID1Z2Hbits.Z215 // bit 7, shadows bit in PID1Z2Hbits
16917 #define PID1Z20 PID1Z2Lbits.PID1Z20 // bit 0, shadows bit in PID1Z2Lbits
16918 #define Z20 PID1Z2Lbits.Z20 // bit 0, shadows bit in PID1Z2Lbits
16919 #define PID1Z21 PID1Z2Lbits.PID1Z21 // bit 1, shadows bit in PID1Z2Lbits
16920 #define Z21 PID1Z2Lbits.Z21 // bit 1, shadows bit in PID1Z2Lbits
16921 #define PID1Z22 PID1Z2Lbits.PID1Z22 // bit 2, shadows bit in PID1Z2Lbits
16922 #define Z22 PID1Z2Lbits.Z22 // bit 2, shadows bit in PID1Z2Lbits
16923 #define PID1Z23 PID1Z2Lbits.PID1Z23 // bit 3, shadows bit in PID1Z2Lbits
16924 #define Z23 PID1Z2Lbits.Z23 // bit 3, shadows bit in PID1Z2Lbits
16925 #define PID1Z24 PID1Z2Lbits.PID1Z24 // bit 4, shadows bit in PID1Z2Lbits
16926 #define Z24 PID1Z2Lbits.Z24 // bit 4, shadows bit in PID1Z2Lbits
16927 #define PID1Z25 PID1Z2Lbits.PID1Z25 // bit 5, shadows bit in PID1Z2Lbits
16928 #define Z25 PID1Z2Lbits.Z25 // bit 5, shadows bit in PID1Z2Lbits
16929 #define PID1Z26 PID1Z2Lbits.PID1Z26 // bit 6, shadows bit in PID1Z2Lbits
16930 #define Z26 PID1Z2Lbits.Z26 // bit 6, shadows bit in PID1Z2Lbits
16931 #define PID1Z27 PID1Z2Lbits.PID1Z27 // bit 7, shadows bit in PID1Z2Lbits
16932 #define Z27 PID1Z2Lbits.Z27 // bit 7, shadows bit in PID1Z2Lbits
16934 #define PID1Z216 PID1Z2Ubits.PID1Z216 // bit 0, shadows bit in PID1Z2Ubits
16935 #define Z216 PID1Z2Ubits.Z216 // bit 0, shadows bit in PID1Z2Ubits
16937 #define TMR1IE PIE1bits.TMR1IE // bit 0
16938 #define TMR2IE PIE1bits.TMR2IE // bit 1
16939 #define CCP1IE PIE1bits.CCP1IE // bit 2
16940 #define SSP1IE PIE1bits.SSP1IE // bit 3
16941 #define TXIE PIE1bits.TXIE // bit 4
16942 #define RCIE PIE1bits.RCIE // bit 5
16943 #define ADIE PIE1bits.ADIE // bit 6
16944 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
16946 #define CCP2IE PIE2bits.CCP2IE // bit 0
16947 #define TMR4IE PIE2bits.TMR4IE // bit 1
16948 #define TMR6IE PIE2bits.TMR6IE // bit 2
16949 #define BCL1IE PIE2bits.BCL1IE // bit 3
16950 #define C1IE PIE2bits.C1IE // bit 5
16951 #define C2IE PIE2bits.C2IE // bit 6
16952 #define OSCFIE PIE2bits.OSCFIE // bit 7
16954 #define CLC1IE PIE3bits.CLC1IE // bit 0
16955 #define CLC2IE PIE3bits.CLC2IE // bit 1
16956 #define CLC3IE PIE3bits.CLC3IE // bit 2
16957 #define CLC4IE PIE3bits.CLC4IE // bit 3
16958 #define ZCDIE PIE3bits.ZCDIE // bit 4
16959 #define CWGIE PIE3bits.CWGIE // bit 5
16961 #define SMT1IE PIE4bits.SMT1IE // bit 0
16962 #define SMT1PRAIE PIE4bits.SMT1PRAIE // bit 1
16963 #define SMT1PWAIE PIE4bits.SMT1PWAIE // bit 2
16964 #define SMT2IE PIE4bits.SMT2IE // bit 3
16965 #define SMT2PRAIE PIE4bits.SMT2PRAIE // bit 4
16966 #define SMT2PWAIE PIE4bits.SMT2PWAIE // bit 5
16967 #define CRCIE PIE4bits.CRCIE // bit 6
16968 #define SCANIE PIE4bits.SCANIE // bit 7
16970 #define PID1DIE PIE5bits.PID1DIE // bit 0
16971 #define PID1EIE PIE5bits.PID1EIE // bit 1
16972 #define AT1IE PIE5bits.AT1IE // bit 2
16973 #define TMR5IE PIE5bits.TMR5IE // bit 4
16974 #define TMR5GIE PIE5bits.TMR5GIE // bit 5
16975 #define TMR3IE PIE5bits.TMR3IE // bit 6
16976 #define TMR3GIE PIE5bits.TMR3GIE // bit 7
16978 #define TMR1IF PIR1bits.TMR1IF // bit 0
16979 #define TMR2IF PIR1bits.TMR2IF // bit 1
16980 #define CCP1IF PIR1bits.CCP1IF // bit 2
16981 #define SSP1IF PIR1bits.SSP1IF // bit 3
16982 #define TXIF PIR1bits.TXIF // bit 4
16983 #define RCIF PIR1bits.RCIF // bit 5
16984 #define ADIF PIR1bits.ADIF // bit 6
16985 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
16987 #define CCP2IF PIR2bits.CCP2IF // bit 0
16988 #define TMR4IF PIR2bits.TMR4IF // bit 1
16989 #define TMR6IF PIR2bits.TMR6IF // bit 2
16990 #define BCL1IF PIR2bits.BCL1IF // bit 3
16991 #define C1IF PIR2bits.C1IF // bit 5
16992 #define C2IF PIR2bits.C2IF // bit 6
16993 #define OSFIF PIR2bits.OSFIF // bit 7
16995 #define CLC1IF PIR3bits.CLC1IF // bit 0
16996 #define CLC2IF PIR3bits.CLC2IF // bit 1
16997 #define CLC3IF PIR3bits.CLC3IF // bit 2
16998 #define CLC4IF PIR3bits.CLC4IF // bit 3
16999 #define ZCDIF PIR3bits.ZCDIF // bit 4
17000 #define CWGIF PIR3bits.CWGIF // bit 5
17002 #define SMT1IF PIR4bits.SMT1IF // bit 0
17003 #define SMT1PRAIF PIR4bits.SMT1PRAIF // bit 1
17004 #define SMT1PWAIF PIR4bits.SMT1PWAIF // bit 2
17005 #define SMT2IF PIR4bits.SMT2IF // bit 3
17006 #define SMT2PRAIF PIR4bits.SMT2PRAIF // bit 4
17007 #define SMT2PWAIF PIR4bits.SMT2PWAIF // bit 5
17008 #define CRCIF PIR4bits.CRCIF // bit 6
17009 #define SCANIF PIR4bits.SCANIF // bit 7
17011 #define PID1DIF PIR5bits.PID1DIF // bit 0
17012 #define PID1EIF PIR5bits.PID1EIF // bit 1
17013 #define AT1IF PIR5bits.AT1IF // bit 2
17014 #define TMR5IF PIR5bits.TMR5IF // bit 4
17015 #define TMR5GIF PIR5bits.TMR5GIF // bit 5
17016 #define TMR3IF PIR5bits.TMR3IF // bit 6
17017 #define TMR3GIF PIR5bits.TMR3GIF // bit 7
17019 #define RD PMCON1bits.RD // bit 0
17020 #define WR PMCON1bits.WR // bit 1
17021 #define WREN PMCON1bits.WREN // bit 2
17022 #define WRERR PMCON1bits.WRERR // bit 3
17023 #define FREE PMCON1bits.FREE // bit 4
17024 #define LWLO PMCON1bits.LWLO // bit 5
17025 #define CFGS PMCON1bits.CFGS // bit 6
17027 #define RA0 PORTAbits.RA0 // bit 0
17028 #define RA1 PORTAbits.RA1 // bit 1
17029 #define RA2 PORTAbits.RA2 // bit 2
17030 #define RA3 PORTAbits.RA3 // bit 3
17031 #define RA4 PORTAbits.RA4 // bit 4
17032 #define RA5 PORTAbits.RA5 // bit 5
17034 #define RC0 PORTCbits.RC0 // bit 0
17035 #define RC1 PORTCbits.RC1 // bit 1
17036 #define RC2 PORTCbits.RC2 // bit 2
17037 #define RC3 PORTCbits.RC3 // bit 3
17038 #define RC4 PORTCbits.RC4 // bit 4
17039 #define RC5 PORTCbits.RC5 // bit 5
17041 #define PPSLOCKED PPSLOCKbits.PPSLOCKED // bit 0
17043 #define DC2 PWM3DCHbits.DC2 // bit 0, shadows bit in PWM3DCHbits
17044 #define PWM3DC2 PWM3DCHbits.PWM3DC2 // bit 0, shadows bit in PWM3DCHbits
17045 #define PWMPW2 PWM3DCHbits.PWMPW2 // bit 0, shadows bit in PWM3DCHbits
17046 #define DC3 PWM3DCHbits.DC3 // bit 1, shadows bit in PWM3DCHbits
17047 #define PWM3DC3 PWM3DCHbits.PWM3DC3 // bit 1, shadows bit in PWM3DCHbits
17048 #define PWMPW3 PWM3DCHbits.PWMPW3 // bit 1, shadows bit in PWM3DCHbits
17049 #define DC4 PWM3DCHbits.DC4 // bit 2, shadows bit in PWM3DCHbits
17050 #define PWM3DC4 PWM3DCHbits.PWM3DC4 // bit 2, shadows bit in PWM3DCHbits
17051 #define PWMPW4 PWM3DCHbits.PWMPW4 // bit 2, shadows bit in PWM3DCHbits
17052 #define DC5 PWM3DCHbits.DC5 // bit 3, shadows bit in PWM3DCHbits
17053 #define PWM3DC5 PWM3DCHbits.PWM3DC5 // bit 3, shadows bit in PWM3DCHbits
17054 #define PWMPW5 PWM3DCHbits.PWMPW5 // bit 3, shadows bit in PWM3DCHbits
17055 #define DC6 PWM3DCHbits.DC6 // bit 4, shadows bit in PWM3DCHbits
17056 #define PWM3DC6 PWM3DCHbits.PWM3DC6 // bit 4, shadows bit in PWM3DCHbits
17057 #define PWMPW6 PWM3DCHbits.PWMPW6 // bit 4, shadows bit in PWM3DCHbits
17058 #define DC7 PWM3DCHbits.DC7 // bit 5, shadows bit in PWM3DCHbits
17059 #define PWM3DC7 PWM3DCHbits.PWM3DC7 // bit 5, shadows bit in PWM3DCHbits
17060 #define PWMPW7 PWM3DCHbits.PWMPW7 // bit 5, shadows bit in PWM3DCHbits
17061 #define DC8 PWM3DCHbits.DC8 // bit 6, shadows bit in PWM3DCHbits
17062 #define PWM3DC8 PWM3DCHbits.PWM3DC8 // bit 6, shadows bit in PWM3DCHbits
17063 #define PWMPW8 PWM3DCHbits.PWMPW8 // bit 6, shadows bit in PWM3DCHbits
17064 #define DC9 PWM3DCHbits.DC9 // bit 7, shadows bit in PWM3DCHbits
17065 #define PWM3DC9 PWM3DCHbits.PWM3DC9 // bit 7, shadows bit in PWM3DCHbits
17066 #define PWMPW9 PWM3DCHbits.PWMPW9 // bit 7, shadows bit in PWM3DCHbits
17068 #define DC0 PWM3DCLbits.DC0 // bit 6, shadows bit in PWM3DCLbits
17069 #define PWM3DC0 PWM3DCLbits.PWM3DC0 // bit 6, shadows bit in PWM3DCLbits
17070 #define PWMPW0 PWM3DCLbits.PWMPW0 // bit 6, shadows bit in PWM3DCLbits
17071 #define DC1 PWM3DCLbits.DC1 // bit 7, shadows bit in PWM3DCLbits
17072 #define PWM3DC1 PWM3DCLbits.PWM3DC1 // bit 7, shadows bit in PWM3DCLbits
17073 #define PWMPW1 PWM3DCLbits.PWMPW1 // bit 7, shadows bit in PWM3DCLbits
17075 #define RA0PPS0 RA0PPSbits.RA0PPS0 // bit 0
17076 #define RA0PPS1 RA0PPSbits.RA0PPS1 // bit 1
17077 #define RA0PPS2 RA0PPSbits.RA0PPS2 // bit 2
17078 #define RA0PPS3 RA0PPSbits.RA0PPS3 // bit 3
17079 #define RA0PPS4 RA0PPSbits.RA0PPS4 // bit 4
17081 #define RA1PPS0 RA1PPSbits.RA1PPS0 // bit 0
17082 #define RA1PPS1 RA1PPSbits.RA1PPS1 // bit 1
17083 #define RA1PPS2 RA1PPSbits.RA1PPS2 // bit 2
17084 #define RA1PPS3 RA1PPSbits.RA1PPS3 // bit 3
17085 #define RA1PPS4 RA1PPSbits.RA1PPS4 // bit 4
17087 #define RA2PPS0 RA2PPSbits.RA2PPS0 // bit 0
17088 #define RA2PPS1 RA2PPSbits.RA2PPS1 // bit 1
17089 #define RA2PPS2 RA2PPSbits.RA2PPS2 // bit 2
17090 #define RA2PPS3 RA2PPSbits.RA2PPS3 // bit 3
17091 #define RA2PPS4 RA2PPSbits.RA2PPS4 // bit 4
17093 #define RA4PPS0 RA4PPSbits.RA4PPS0 // bit 0
17094 #define RA4PPS1 RA4PPSbits.RA4PPS1 // bit 1
17095 #define RA4PPS2 RA4PPSbits.RA4PPS2 // bit 2
17096 #define RA4PPS3 RA4PPSbits.RA4PPS3 // bit 3
17097 #define RA4PPS4 RA4PPSbits.RA4PPS4 // bit 4
17099 #define RA5PPS0 RA5PPSbits.RA5PPS0 // bit 0
17100 #define RA5PPS1 RA5PPSbits.RA5PPS1 // bit 1
17101 #define RA5PPS2 RA5PPSbits.RA5PPS2 // bit 2
17102 #define RA5PPS3 RA5PPSbits.RA5PPS3 // bit 3
17103 #define RA5PPS4 RA5PPSbits.RA5PPS4 // bit 4
17105 #define RC0PPS0 RC0PPSbits.RC0PPS0 // bit 0
17106 #define RC0PPS1 RC0PPSbits.RC0PPS1 // bit 1
17107 #define RC0PPS2 RC0PPSbits.RC0PPS2 // bit 2
17108 #define RC0PPS3 RC0PPSbits.RC0PPS3 // bit 3
17109 #define RC0PPS4 RC0PPSbits.RC0PPS4 // bit 4
17111 #define RC1PPS0 RC1PPSbits.RC1PPS0 // bit 0
17112 #define RC1PPS1 RC1PPSbits.RC1PPS1 // bit 1
17113 #define RC1PPS2 RC1PPSbits.RC1PPS2 // bit 2
17114 #define RC1PPS3 RC1PPSbits.RC1PPS3 // bit 3
17115 #define RC1PPS4 RC1PPSbits.RC1PPS4 // bit 4
17117 #define RX9D RC1STAbits.RX9D // bit 0
17118 #define OERR RC1STAbits.OERR // bit 1
17119 #define FERR RC1STAbits.FERR // bit 2
17120 #define ADDEN RC1STAbits.ADDEN // bit 3
17121 #define CREN RC1STAbits.CREN // bit 4
17122 #define SREN RC1STAbits.SREN // bit 5
17123 #define RX9 RC1STAbits.RX9 // bit 6
17124 #define SPEN RC1STAbits.SPEN // bit 7
17126 #define RC2PPS0 RC2PPSbits.RC2PPS0 // bit 0
17127 #define RC2PPS1 RC2PPSbits.RC2PPS1 // bit 1
17128 #define RC2PPS2 RC2PPSbits.RC2PPS2 // bit 2
17129 #define RC2PPS3 RC2PPSbits.RC2PPS3 // bit 3
17130 #define RC2PPS4 RC2PPSbits.RC2PPS4 // bit 4
17132 #define RC3PPS0 RC3PPSbits.RC3PPS0 // bit 0
17133 #define RC3PPS1 RC3PPSbits.RC3PPS1 // bit 1
17134 #define RC3PPS2 RC3PPSbits.RC3PPS2 // bit 2
17135 #define RC3PPS3 RC3PPSbits.RC3PPS3 // bit 3
17136 #define RC3PPS4 RC3PPSbits.RC3PPS4 // bit 4
17138 #define RC4PPS0 RC4PPSbits.RC4PPS0 // bit 0
17139 #define RC4PPS1 RC4PPSbits.RC4PPS1 // bit 1
17140 #define RC4PPS2 RC4PPSbits.RC4PPS2 // bit 2
17141 #define RC4PPS3 RC4PPSbits.RC4PPS3 // bit 3
17142 #define RC4PPS4 RC4PPSbits.RC4PPS4 // bit 4
17144 #define RC5PPS0 RC5PPSbits.RC5PPS0 // bit 0
17145 #define RC5PPS1 RC5PPSbits.RC5PPS1 // bit 1
17146 #define RC5PPS2 RC5PPSbits.RC5PPS2 // bit 2
17147 #define RC5PPS3 RC5PPSbits.RC5PPS3 // bit 3
17148 #define RC5PPS4 RC5PPSbits.RC5PPS4 // bit 4
17150 #define RXPPS0 RXPPSbits.RXPPS0 // bit 0
17151 #define RXPPS1 RXPPSbits.RXPPS1 // bit 1
17152 #define RXPPS2 RXPPSbits.RXPPS2 // bit 2
17153 #define RXPPS3 RXPPSbits.RXPPS3 // bit 3
17154 #define RXPPS4 RXPPSbits.RXPPS4 // bit 4
17156 #define HADR8 SCANHADRHbits.HADR8 // bit 0, shadows bit in SCANHADRHbits
17157 #define SCANHADR8 SCANHADRHbits.SCANHADR8 // bit 0, shadows bit in SCANHADRHbits
17158 #define HADR9 SCANHADRHbits.HADR9 // bit 1, shadows bit in SCANHADRHbits
17159 #define SCANHADR9 SCANHADRHbits.SCANHADR9 // bit 1, shadows bit in SCANHADRHbits
17160 #define HADR10 SCANHADRHbits.HADR10 // bit 2, shadows bit in SCANHADRHbits
17161 #define SCANHADR10 SCANHADRHbits.SCANHADR10 // bit 2, shadows bit in SCANHADRHbits
17162 #define HADR11 SCANHADRHbits.HADR11 // bit 3, shadows bit in SCANHADRHbits
17163 #define SCANHADR11 SCANHADRHbits.SCANHADR11 // bit 3, shadows bit in SCANHADRHbits
17164 #define HADR12 SCANHADRHbits.HADR12 // bit 4, shadows bit in SCANHADRHbits
17165 #define SCANHADR12 SCANHADRHbits.SCANHADR12 // bit 4, shadows bit in SCANHADRHbits
17166 #define HADR13 SCANHADRHbits.HADR13 // bit 5, shadows bit in SCANHADRHbits
17167 #define SCANHADR13 SCANHADRHbits.SCANHADR13 // bit 5, shadows bit in SCANHADRHbits
17168 #define HADR14 SCANHADRHbits.HADR14 // bit 6, shadows bit in SCANHADRHbits
17169 #define SCANHADR14 SCANHADRHbits.SCANHADR14 // bit 6, shadows bit in SCANHADRHbits
17170 #define HADR15 SCANHADRHbits.HADR15 // bit 7, shadows bit in SCANHADRHbits
17171 #define SCANHADR15 SCANHADRHbits.SCANHADR15 // bit 7, shadows bit in SCANHADRHbits
17173 #define HADR0 SCANHADRLbits.HADR0 // bit 0, shadows bit in SCANHADRLbits
17174 #define SCANHADR0 SCANHADRLbits.SCANHADR0 // bit 0, shadows bit in SCANHADRLbits
17175 #define HADR1 SCANHADRLbits.HADR1 // bit 1, shadows bit in SCANHADRLbits
17176 #define SCANHADR1 SCANHADRLbits.SCANHADR1 // bit 1, shadows bit in SCANHADRLbits
17177 #define HARD2 SCANHADRLbits.HARD2 // bit 2, shadows bit in SCANHADRLbits
17178 #define SCANHADR2 SCANHADRLbits.SCANHADR2 // bit 2, shadows bit in SCANHADRLbits
17179 #define HADR3 SCANHADRLbits.HADR3 // bit 3, shadows bit in SCANHADRLbits
17180 #define SCANHADR3 SCANHADRLbits.SCANHADR3 // bit 3, shadows bit in SCANHADRLbits
17181 #define HADR4 SCANHADRLbits.HADR4 // bit 4, shadows bit in SCANHADRLbits
17182 #define SCANHADR4 SCANHADRLbits.SCANHADR4 // bit 4, shadows bit in SCANHADRLbits
17183 #define HADR5 SCANHADRLbits.HADR5 // bit 5, shadows bit in SCANHADRLbits
17184 #define SCANHADR5 SCANHADRLbits.SCANHADR5 // bit 5, shadows bit in SCANHADRLbits
17185 #define HADR6 SCANHADRLbits.HADR6 // bit 6, shadows bit in SCANHADRLbits
17186 #define SCANHADR6 SCANHADRLbits.SCANHADR6 // bit 6, shadows bit in SCANHADRLbits
17187 #define HADR7 SCANHADRLbits.HADR7 // bit 7, shadows bit in SCANHADRLbits
17188 #define SCANHADR7 SCANHADRLbits.SCANHADR7 // bit 7, shadows bit in SCANHADRLbits
17190 #define LADR8 SCANLADRHbits.LADR8 // bit 0, shadows bit in SCANLADRHbits
17191 #define SCANLADR8 SCANLADRHbits.SCANLADR8 // bit 0, shadows bit in SCANLADRHbits
17192 #define LADR9 SCANLADRHbits.LADR9 // bit 1, shadows bit in SCANLADRHbits
17193 #define SCANLADR9 SCANLADRHbits.SCANLADR9 // bit 1, shadows bit in SCANLADRHbits
17194 #define LADR10 SCANLADRHbits.LADR10 // bit 2, shadows bit in SCANLADRHbits
17195 #define SCANLADR10 SCANLADRHbits.SCANLADR10 // bit 2, shadows bit in SCANLADRHbits
17196 #define LADR11 SCANLADRHbits.LADR11 // bit 3, shadows bit in SCANLADRHbits
17197 #define SCANLADR11 SCANLADRHbits.SCANLADR11 // bit 3, shadows bit in SCANLADRHbits
17198 #define LADR12 SCANLADRHbits.LADR12 // bit 4, shadows bit in SCANLADRHbits
17199 #define SCANLADR12 SCANLADRHbits.SCANLADR12 // bit 4, shadows bit in SCANLADRHbits
17200 #define LADR13 SCANLADRHbits.LADR13 // bit 5, shadows bit in SCANLADRHbits
17201 #define SCANLADR13 SCANLADRHbits.SCANLADR13 // bit 5, shadows bit in SCANLADRHbits
17202 #define LADR14 SCANLADRHbits.LADR14 // bit 6, shadows bit in SCANLADRHbits
17203 #define SCANLADR14 SCANLADRHbits.SCANLADR14 // bit 6, shadows bit in SCANLADRHbits
17204 #define LADR15 SCANLADRHbits.LADR15 // bit 7, shadows bit in SCANLADRHbits
17205 #define SCANLADR15 SCANLADRHbits.SCANLADR15 // bit 7, shadows bit in SCANLADRHbits
17207 #define LDAR0 SCANLADRLbits.LDAR0 // bit 0, shadows bit in SCANLADRLbits
17208 #define SCANLADR0 SCANLADRLbits.SCANLADR0 // bit 0, shadows bit in SCANLADRLbits
17209 #define LDAR1 SCANLADRLbits.LDAR1 // bit 1, shadows bit in SCANLADRLbits
17210 #define SCANLADR1 SCANLADRLbits.SCANLADR1 // bit 1, shadows bit in SCANLADRLbits
17211 #define LADR2 SCANLADRLbits.LADR2 // bit 2, shadows bit in SCANLADRLbits
17212 #define SCANLADR2 SCANLADRLbits.SCANLADR2 // bit 2, shadows bit in SCANLADRLbits
17213 #define LADR3 SCANLADRLbits.LADR3 // bit 3, shadows bit in SCANLADRLbits
17214 #define SCANLADR3 SCANLADRLbits.SCANLADR3 // bit 3, shadows bit in SCANLADRLbits
17215 #define LADR4 SCANLADRLbits.LADR4 // bit 4, shadows bit in SCANLADRLbits
17216 #define SCANLADR4 SCANLADRLbits.SCANLADR4 // bit 4, shadows bit in SCANLADRLbits
17217 #define LADR5 SCANLADRLbits.LADR5 // bit 5, shadows bit in SCANLADRLbits
17218 #define SCANLADR5 SCANLADRLbits.SCANLADR5 // bit 5, shadows bit in SCANLADRLbits
17219 #define LADR6 SCANLADRLbits.LADR6 // bit 6, shadows bit in SCANLADRLbits
17220 #define SCANLADR6 SCANLADRLbits.SCANLADR6 // bit 6, shadows bit in SCANLADRLbits
17221 #define LADR7 SCANLADRLbits.LADR7 // bit 7, shadows bit in SCANLADRLbits
17222 #define SCANLADR7 SCANLADRLbits.SCANLADR7 // bit 7, shadows bit in SCANLADRLbits
17224 #define TSEL0 SCANTRIGbits.TSEL0 // bit 0, shadows bit in SCANTRIGbits
17225 #define SCANTSEL0 SCANTRIGbits.SCANTSEL0 // bit 0, shadows bit in SCANTRIGbits
17226 #define TSEL1 SCANTRIGbits.TSEL1 // bit 1, shadows bit in SCANTRIGbits
17227 #define SCANTSEL1 SCANTRIGbits.SCANTSEL1 // bit 1, shadows bit in SCANTRIGbits
17228 #define TSEL2 SCANTRIGbits.TSEL2 // bit 2, shadows bit in SCANTRIGbits
17229 #define SCANTSEL2 SCANTRIGbits.SCANTSEL2 // bit 2, shadows bit in SCANTRIGbits
17230 #define TSEL3 SCANTRIGbits.TSEL3 // bit 3, shadows bit in SCANTRIGbits
17231 #define SCANTSEL3 SCANTRIGbits.SCANTSEL3 // bit 3, shadows bit in SCANTRIGbits
17233 #define SLRA0 SLRCONAbits.SLRA0 // bit 0
17234 #define SLRA1 SLRCONAbits.SLRA1 // bit 1
17235 #define SLRA2 SLRCONAbits.SLRA2 // bit 2
17236 #define SLRA4 SLRCONAbits.SLRA4 // bit 4
17237 #define SLRA5 SLRCONAbits.SLRA5 // bit 5
17239 #define SLRC0 SLRCONCbits.SLRC0 // bit 0
17240 #define SLRC1 SLRCONCbits.SLRC1 // bit 1
17241 #define SLRC2 SLRCONCbits.SLRC2 // bit 2
17242 #define SLRC3 SLRCONCbits.SLRC3 // bit 3
17243 #define SLRC4 SLRCONCbits.SLRC4 // bit 4
17244 #define SLRC5 SLRCONCbits.SLRC5 // bit 5
17246 #define CSEL0 SMT1CLKbits.CSEL0 // bit 0, shadows bit in SMT1CLKbits
17247 #define SMT1CSEL0 SMT1CLKbits.SMT1CSEL0 // bit 0, shadows bit in SMT1CLKbits
17248 #define CSEL1 SMT1CLKbits.CSEL1 // bit 1, shadows bit in SMT1CLKbits
17249 #define SMT1CSEL1 SMT1CLKbits.SMT1CSEL1 // bit 1, shadows bit in SMT1CLKbits
17250 #define CSEL2 SMT1CLKbits.CSEL2 // bit 2, shadows bit in SMT1CLKbits
17251 #define SMT1CSEL2 SMT1CLKbits.SMT1CSEL2 // bit 2, shadows bit in SMT1CLKbits
17253 #define SMT1CPR8 SMT1CPRHbits.SMT1CPR8 // bit 0
17254 #define SMT1CPR9 SMT1CPRHbits.SMT1CPR9 // bit 1
17255 #define SMT1CPR10 SMT1CPRHbits.SMT1CPR10 // bit 2
17256 #define SMT1CPR11 SMT1CPRHbits.SMT1CPR11 // bit 3
17257 #define SMT1CPR12 SMT1CPRHbits.SMT1CPR12 // bit 4
17258 #define SMT1CPR13 SMT1CPRHbits.SMT1CPR13 // bit 5
17259 #define SMT1CPR14 SMT1CPRHbits.SMT1CPR14 // bit 6
17260 #define SMT1CPR15 SMT1CPRHbits.SMT1CPR15 // bit 7
17262 #define SMT1CPR0 SMT1CPRLbits.SMT1CPR0 // bit 0
17263 #define SMT1CPR1 SMT1CPRLbits.SMT1CPR1 // bit 1
17264 #define SMT1CPR2 SMT1CPRLbits.SMT1CPR2 // bit 2
17265 #define SMT1CPR3 SMT1CPRLbits.SMT1CPR3 // bit 3
17266 #define SMT1CPR4 SMT1CPRLbits.SMT1CPR4 // bit 4
17267 #define SMT1CPR5 SMT1CPRLbits.SMT1CPR5 // bit 5
17268 #define SMT1CPR6 SMT1CPRLbits.SMT1CPR6 // bit 6
17269 #define SMT1CPR7 SMT1CPRLbits.SMT1CPR7 // bit 7
17271 #define SMT1CPR16 SMT1CPRUbits.SMT1CPR16 // bit 0
17272 #define SMT1CPR17 SMT1CPRUbits.SMT1CPR17 // bit 1
17273 #define SMT1CPR18 SMT1CPRUbits.SMT1CPR18 // bit 2
17274 #define SMT1CPR19 SMT1CPRUbits.SMT1CPR19 // bit 3
17275 #define SMT1CPR20 SMT1CPRUbits.SMT1CPR20 // bit 4
17276 #define SMT1CPR21 SMT1CPRUbits.SMT1CPR21 // bit 5
17277 #define SMT1CPR22 SMT1CPRUbits.SMT1CPR22 // bit 6
17278 #define SMT1CPR23 SMT1CPRUbits.SMT1CPR23 // bit 7
17280 #define SMT1CPW8 SMT1CPWHbits.SMT1CPW8 // bit 0
17281 #define SMT1CPW9 SMT1CPWHbits.SMT1CPW9 // bit 1
17282 #define SMT1CPW10 SMT1CPWHbits.SMT1CPW10 // bit 2
17283 #define SMT1CPW11 SMT1CPWHbits.SMT1CPW11 // bit 3
17284 #define SMT1CPW12 SMT1CPWHbits.SMT1CPW12 // bit 4
17285 #define SMT1CPW13 SMT1CPWHbits.SMT1CPW13 // bit 5
17286 #define SMT1CPW14 SMT1CPWHbits.SMT1CPW14 // bit 6
17287 #define SMT1CPW15 SMT1CPWHbits.SMT1CPW15 // bit 7
17289 #define SMT1CPW0 SMT1CPWLbits.SMT1CPW0 // bit 0
17290 #define SMT1CPW1 SMT1CPWLbits.SMT1CPW1 // bit 1
17291 #define SMT1CPW2 SMT1CPWLbits.SMT1CPW2 // bit 2
17292 #define SMT1CPW3 SMT1CPWLbits.SMT1CPW3 // bit 3
17293 #define SMT1CPW4 SMT1CPWLbits.SMT1CPW4 // bit 4
17294 #define SMT1CPW5 SMT1CPWLbits.SMT1CPW5 // bit 5
17295 #define SMT1CPW6 SMT1CPWLbits.SMT1CPW6 // bit 6
17296 #define SMT1CPW7 SMT1CPWLbits.SMT1CPW7 // bit 7
17298 #define SMT1CPW16 SMT1CPWUbits.SMT1CPW16 // bit 0
17299 #define SMT1CPW17 SMT1CPWUbits.SMT1CPW17 // bit 1
17300 #define SMT1CPW18 SMT1CPWUbits.SMT1CPW18 // bit 2
17301 #define SMT1CPW19 SMT1CPWUbits.SMT1CPW19 // bit 3
17302 #define SMT1CPW20 SMT1CPWUbits.SMT1CPW20 // bit 4
17303 #define SMT1CPW21 SMT1CPWUbits.SMT1CPW21 // bit 5
17304 #define SMT1CPW22 SMT1CPWUbits.SMT1CPW22 // bit 6
17305 #define SMT1CPW23 SMT1CPWUbits.SMT1CPW23 // bit 7
17307 #define SMT1PR8 SMT1PRHbits.SMT1PR8 // bit 0
17308 #define SMT1PR9 SMT1PRHbits.SMT1PR9 // bit 1
17309 #define SMT1PR10 SMT1PRHbits.SMT1PR10 // bit 2
17310 #define SMT1PR11 SMT1PRHbits.SMT1PR11 // bit 3
17311 #define SMT1PR12 SMT1PRHbits.SMT1PR12 // bit 4
17312 #define SMT1PR13 SMT1PRHbits.SMT1PR13 // bit 5
17313 #define SMT1PR14 SMT1PRHbits.SMT1PR14 // bit 6
17314 #define SMT1PR15 SMT1PRHbits.SMT1PR15 // bit 7
17316 #define SMT1PR0 SMT1PRLbits.SMT1PR0 // bit 0
17317 #define SMT1PR1 SMT1PRLbits.SMT1PR1 // bit 1
17318 #define SMT1PR2 SMT1PRLbits.SMT1PR2 // bit 2
17319 #define SMT1PR3 SMT1PRLbits.SMT1PR3 // bit 3
17320 #define SMT1PR4 SMT1PRLbits.SMT1PR4 // bit 4
17321 #define SMT1PR5 SMT1PRLbits.SMT1PR5 // bit 5
17322 #define SMT1PR6 SMT1PRLbits.SMT1PR6 // bit 6
17323 #define SMT1PR7 SMT1PRLbits.SMT1PR7 // bit 7
17325 #define SMT1PR16 SMT1PRUbits.SMT1PR16 // bit 0
17326 #define SMT1PR17 SMT1PRUbits.SMT1PR17 // bit 1
17327 #define SMT1PR18 SMT1PRUbits.SMT1PR18 // bit 2
17328 #define SMT1PR19 SMT1PRUbits.SMT1PR19 // bit 3
17329 #define SMT1PR20 SMT1PRUbits.SMT1PR20 // bit 4
17330 #define SMT1PR21 SMT1PRUbits.SMT1PR21 // bit 5
17331 #define SMT1PR22 SMT1PRUbits.SMT1PR22 // bit 6
17332 #define SMT1PR23 SMT1PRUbits.SMT1PR23 // bit 7
17334 #define SMT1SIGPPS0 SMT1SIGPPSbits.SMT1SIGPPS0 // bit 0
17335 #define SMT1SIGPPS1 SMT1SIGPPSbits.SMT1SIGPPS1 // bit 1
17336 #define SMT1SIGPPS2 SMT1SIGPPSbits.SMT1SIGPPS2 // bit 2
17337 #define SMT1SIGPPS3 SMT1SIGPPSbits.SMT1SIGPPS3 // bit 3
17338 #define SMT1SIGPPS4 SMT1SIGPPSbits.SMT1SIGPPS4 // bit 4
17340 #define AS SMT1STATbits.AS // bit 0, shadows bit in SMT1STATbits
17341 #define SMT1AS SMT1STATbits.SMT1AS // bit 0, shadows bit in SMT1STATbits
17342 #define WS SMT1STATbits.WS // bit 1, shadows bit in SMT1STATbits
17343 #define SMT1WS SMT1STATbits.SMT1WS // bit 1, shadows bit in SMT1STATbits
17344 #define TS SMT1STATbits.TS // bit 2, shadows bit in SMT1STATbits
17345 #define SMT1TS SMT1STATbits.SMT1TS // bit 2, shadows bit in SMT1STATbits
17346 #define RST SMT1STATbits.RST // bit 5, shadows bit in SMT1STATbits
17347 #define SMT1RESET SMT1STATbits.SMT1RESET // bit 5, shadows bit in SMT1STATbits
17348 #define CPWUP SMT1STATbits.CPWUP // bit 6, shadows bit in SMT1STATbits
17349 #define SMT1CPWUP SMT1STATbits.SMT1CPWUP // bit 6, shadows bit in SMT1STATbits
17350 #define CPRUP SMT1STATbits.CPRUP // bit 7, shadows bit in SMT1STATbits
17351 #define SMT1CPRUP SMT1STATbits.SMT1CPRUP // bit 7, shadows bit in SMT1STATbits
17353 #define SMT1TMR8 SMT1TMRHbits.SMT1TMR8 // bit 0
17354 #define SMT1TMR9 SMT1TMRHbits.SMT1TMR9 // bit 1
17355 #define SMT1TMR10 SMT1TMRHbits.SMT1TMR10 // bit 2
17356 #define SMT1TMR11 SMT1TMRHbits.SMT1TMR11 // bit 3
17357 #define SMT1TMR12 SMT1TMRHbits.SMT1TMR12 // bit 4
17358 #define SMT1TMR13 SMT1TMRHbits.SMT1TMR13 // bit 5
17359 #define SMT1TMR14 SMT1TMRHbits.SMT1TMR14 // bit 6
17360 #define SMT1TMR15 SMT1TMRHbits.SMT1TMR15 // bit 7
17362 #define SMT1TMR0 SMT1TMRLbits.SMT1TMR0 // bit 0
17363 #define SMT1TMR1 SMT1TMRLbits.SMT1TMR1 // bit 1
17364 #define SMT1TMR2 SMT1TMRLbits.SMT1TMR2 // bit 2
17365 #define SMT1TMR3 SMT1TMRLbits.SMT1TMR3 // bit 3
17366 #define SMT1TMR4 SMT1TMRLbits.SMT1TMR4 // bit 4
17367 #define SMT1TMR5 SMT1TMRLbits.SMT1TMR5 // bit 5
17368 #define SMT1TMR6 SMT1TMRLbits.SMT1TMR6 // bit 6
17369 #define SMT1TMR7 SMT1TMRLbits.SMT1TMR7 // bit 7
17371 #define SMT1TMR16 SMT1TMRUbits.SMT1TMR16 // bit 0
17372 #define SMT1TMR17 SMT1TMRUbits.SMT1TMR17 // bit 1
17373 #define SMT1TMR18 SMT1TMRUbits.SMT1TMR18 // bit 2
17374 #define SMT1TMR19 SMT1TMRUbits.SMT1TMR19 // bit 3
17375 #define SMT1TMR20 SMT1TMRUbits.SMT1TMR20 // bit 4
17376 #define SMT1TMR21 SMT1TMRUbits.SMT1TMR21 // bit 5
17377 #define SMT1TMR22 SMT1TMRUbits.SMT1TMR22 // bit 6
17378 #define SMT1TMR23 SMT1TMRUbits.SMT1TMR23 // bit 7
17380 #define WSEL0 SMT1WINbits.WSEL0 // bit 0, shadows bit in SMT1WINbits
17381 #define SMT1WSEL0 SMT1WINbits.SMT1WSEL0 // bit 0, shadows bit in SMT1WINbits
17382 #define WSEL1 SMT1WINbits.WSEL1 // bit 1, shadows bit in SMT1WINbits
17383 #define SMT1WSEL1 SMT1WINbits.SMT1WSEL1 // bit 1, shadows bit in SMT1WINbits
17384 #define WSEL2 SMT1WINbits.WSEL2 // bit 2, shadows bit in SMT1WINbits
17385 #define SMT1WSEL2 SMT1WINbits.SMT1WSEL2 // bit 2, shadows bit in SMT1WINbits
17386 #define WSEL3 SMT1WINbits.WSEL3 // bit 3, shadows bit in SMT1WINbits
17387 #define SMT1WSEL3 SMT1WINbits.SMT1WSEL3 // bit 3, shadows bit in SMT1WINbits
17388 #define WSEL4 SMT1WINbits.WSEL4 // bit 4, shadows bit in SMT1WINbits
17389 #define SMT1WSEL4 SMT1WINbits.SMT1WSEL4 // bit 4, shadows bit in SMT1WINbits
17391 #define SMTWINPPS0 SMT1WINPPSbits.SMTWINPPS0 // bit 0
17392 #define SMTWINPPS1 SMT1WINPPSbits.SMTWINPPS1 // bit 1
17393 #define SMTWINPPS2 SMT1WINPPSbits.SMTWINPPS2 // bit 2
17394 #define SMTWINPPS3 SMT1WINPPSbits.SMTWINPPS3 // bit 3
17395 #define SMTWINPPS4 SMT1WINPPSbits.SMTWINPPS4 // bit 4
17397 #define SMT2CPR8 SMT2CPRHbits.SMT2CPR8 // bit 0
17398 #define SMT2CPR9 SMT2CPRHbits.SMT2CPR9 // bit 1
17399 #define SMT2CPR10 SMT2CPRHbits.SMT2CPR10 // bit 2
17400 #define SMT2CPR11 SMT2CPRHbits.SMT2CPR11 // bit 3
17401 #define SMT2CPR12 SMT2CPRHbits.SMT2CPR12 // bit 4
17402 #define SMT2CPR13 SMT2CPRHbits.SMT2CPR13 // bit 5
17403 #define SMT2CPR14 SMT2CPRHbits.SMT2CPR14 // bit 6
17404 #define SMT2CPR15 SMT2CPRHbits.SMT2CPR15 // bit 7
17406 #define SMT2CPR0 SMT2CPRLbits.SMT2CPR0 // bit 0
17407 #define SMT2CPR1 SMT2CPRLbits.SMT2CPR1 // bit 1
17408 #define SMT2CPR2 SMT2CPRLbits.SMT2CPR2 // bit 2
17409 #define SMT2CPR3 SMT2CPRLbits.SMT2CPR3 // bit 3
17410 #define SMT2CPR4 SMT2CPRLbits.SMT2CPR4 // bit 4
17411 #define SMT2CPR5 SMT2CPRLbits.SMT2CPR5 // bit 5
17412 #define SMT2CPR6 SMT2CPRLbits.SMT2CPR6 // bit 6
17413 #define SMT2CPR7 SMT2CPRLbits.SMT2CPR7 // bit 7
17415 #define SMT2CPR16 SMT2CPRUbits.SMT2CPR16 // bit 0
17416 #define SMT2CPR17 SMT2CPRUbits.SMT2CPR17 // bit 1
17417 #define SMT2CPR18 SMT2CPRUbits.SMT2CPR18 // bit 2
17418 #define SMT2CPR19 SMT2CPRUbits.SMT2CPR19 // bit 3
17419 #define SMT2CPR20 SMT2CPRUbits.SMT2CPR20 // bit 4
17420 #define SMT2CPR21 SMT2CPRUbits.SMT2CPR21 // bit 5
17421 #define SMT2CPR22 SMT2CPRUbits.SMT2CPR22 // bit 6
17422 #define SMT2CPR23 SMT2CPRUbits.SMT2CPR23 // bit 7
17424 #define SMT2CPW8 SMT2CPWHbits.SMT2CPW8 // bit 0
17425 #define SMT2CPW9 SMT2CPWHbits.SMT2CPW9 // bit 1
17426 #define SMT2CPW10 SMT2CPWHbits.SMT2CPW10 // bit 2
17427 #define SMT2CPW11 SMT2CPWHbits.SMT2CPW11 // bit 3
17428 #define SMT2CPW12 SMT2CPWHbits.SMT2CPW12 // bit 4
17429 #define SMT2CPW13 SMT2CPWHbits.SMT2CPW13 // bit 5
17430 #define SMT2CPW14 SMT2CPWHbits.SMT2CPW14 // bit 6
17431 #define SMT2CPW15 SMT2CPWHbits.SMT2CPW15 // bit 7
17433 #define SMT2CPW0 SMT2CPWLbits.SMT2CPW0 // bit 0
17434 #define SMT2CPW1 SMT2CPWLbits.SMT2CPW1 // bit 1
17435 #define SMT2CPW2 SMT2CPWLbits.SMT2CPW2 // bit 2
17436 #define SMT2CPW3 SMT2CPWLbits.SMT2CPW3 // bit 3
17437 #define SMT2CPW4 SMT2CPWLbits.SMT2CPW4 // bit 4
17438 #define SMT2CPW5 SMT2CPWLbits.SMT2CPW5 // bit 5
17439 #define SMT2CPW6 SMT2CPWLbits.SMT2CPW6 // bit 6
17440 #define SMT2CPW7 SMT2CPWLbits.SMT2CPW7 // bit 7
17442 #define SMT2CPW16 SMT2CPWUbits.SMT2CPW16 // bit 0
17443 #define SMT2CPW17 SMT2CPWUbits.SMT2CPW17 // bit 1
17444 #define SMT2CPW18 SMT2CPWUbits.SMT2CPW18 // bit 2
17445 #define SMT2CPW19 SMT2CPWUbits.SMT2CPW19 // bit 3
17446 #define SMT2CPW20 SMT2CPWUbits.SMT2CPW20 // bit 4
17447 #define SMT2CPW21 SMT2CPWUbits.SMT2CPW21 // bit 5
17448 #define SMT2CPW22 SMT2CPWUbits.SMT2CPW22 // bit 6
17449 #define SMT2CPW23 SMT2CPWUbits.SMT2CPW23 // bit 7
17451 #define SMT2PR8 SMT2PRHbits.SMT2PR8 // bit 0
17452 #define SMT2PR9 SMT2PRHbits.SMT2PR9 // bit 1
17453 #define SMT2PR10 SMT2PRHbits.SMT2PR10 // bit 2
17454 #define SMT2PR11 SMT2PRHbits.SMT2PR11 // bit 3
17455 #define SMT2PR12 SMT2PRHbits.SMT2PR12 // bit 4
17456 #define SMT2PR13 SMT2PRHbits.SMT2PR13 // bit 5
17457 #define SMT2PR14 SMT2PRHbits.SMT2PR14 // bit 6
17458 #define SMT2PR15 SMT2PRHbits.SMT2PR15 // bit 7
17460 #define SMT2PR0 SMT2PRLbits.SMT2PR0 // bit 0
17461 #define SMT2PR1 SMT2PRLbits.SMT2PR1 // bit 1
17462 #define SMT2PR2 SMT2PRLbits.SMT2PR2 // bit 2
17463 #define SMT2PR3 SMT2PRLbits.SMT2PR3 // bit 3
17464 #define SMT2PR4 SMT2PRLbits.SMT2PR4 // bit 4
17465 #define SMT2PR5 SMT2PRLbits.SMT2PR5 // bit 5
17466 #define SMT2PR6 SMT2PRLbits.SMT2PR6 // bit 6
17467 #define SMT2PR7 SMT2PRLbits.SMT2PR7 // bit 7
17469 #define SMT2PR16 SMT2PRUbits.SMT2PR16 // bit 0
17470 #define SMT2PR17 SMT2PRUbits.SMT2PR17 // bit 1
17471 #define SMT2PR18 SMT2PRUbits.SMT2PR18 // bit 2
17472 #define SMT2PR19 SMT2PRUbits.SMT2PR19 // bit 3
17473 #define SMT2PR20 SMT2PRUbits.SMT2PR20 // bit 4
17474 #define SMT2PR21 SMT2PRUbits.SMT2PR21 // bit 5
17475 #define SMT2PR22 SMT2PRUbits.SMT2PR22 // bit 6
17476 #define SMT2PR23 SMT2PRUbits.SMT2PR23 // bit 7
17478 #define SMT2SIGPPS0 SMT2SIGPPSbits.SMT2SIGPPS0 // bit 0
17479 #define SMT2SIGPPS1 SMT2SIGPPSbits.SMT2SIGPPS1 // bit 1
17480 #define SMT2SIGPPS2 SMT2SIGPPSbits.SMT2SIGPPS2 // bit 2
17481 #define SMT2SIGPPS3 SMT2SIGPPSbits.SMT2SIGPPS3 // bit 3
17482 #define SMT2SIGPPS4 SMT2SIGPPSbits.SMT2SIGPPS4 // bit 4
17484 #define SMT2TMR8 SMT2TMRHbits.SMT2TMR8 // bit 0
17485 #define SMT2TMR9 SMT2TMRHbits.SMT2TMR9 // bit 1
17486 #define SMT2TMR10 SMT2TMRHbits.SMT2TMR10 // bit 2
17487 #define SMT2TMR11 SMT2TMRHbits.SMT2TMR11 // bit 3
17488 #define SMT2TMR12 SMT2TMRHbits.SMT2TMR12 // bit 4
17489 #define SMT2TMR13 SMT2TMRHbits.SMT2TMR13 // bit 5
17490 #define SMT2TMR14 SMT2TMRHbits.SMT2TMR14 // bit 6
17491 #define SMT2TMR15 SMT2TMRHbits.SMT2TMR15 // bit 7
17493 #define SMT2TMR0 SMT2TMRLbits.SMT2TMR0 // bit 0
17494 #define SMT2TMR1 SMT2TMRLbits.SMT2TMR1 // bit 1
17495 #define SMT2TMR2 SMT2TMRLbits.SMT2TMR2 // bit 2
17496 #define SMT2TMR3 SMT2TMRLbits.SMT2TMR3 // bit 3
17497 #define SMT2TMR4 SMT2TMRLbits.SMT2TMR4 // bit 4
17498 #define SMT2TMR5 SMT2TMRLbits.SMT2TMR5 // bit 5
17499 #define SMT2TMR6 SMT2TMRLbits.SMT2TMR6 // bit 6
17500 #define SMT2TMR7 SMT2TMRLbits.SMT2TMR7 // bit 7
17502 #define SMT2TMR16 SMT2TMRUbits.SMT2TMR16 // bit 0
17503 #define SMT2TMR17 SMT2TMRUbits.SMT2TMR17 // bit 1
17504 #define SMT2TMR18 SMT2TMRUbits.SMT2TMR18 // bit 2
17505 #define SMT2TMR19 SMT2TMRUbits.SMT2TMR19 // bit 3
17506 #define SMT2TMR20 SMT2TMRUbits.SMT2TMR20 // bit 4
17507 #define SMT2TMR21 SMT2TMRUbits.SMT2TMR21 // bit 5
17508 #define SMT2TMR22 SMT2TMRUbits.SMT2TMR22 // bit 6
17509 #define SMT2TMR23 SMT2TMRUbits.SMT2TMR23 // bit 7
17511 #define SMT2WINPPS0 SMT2WINPPSbits.SMT2WINPPS0 // bit 0
17512 #define SMT2WINPPS1 SMT2WINPPSbits.SMT2WINPPS1 // bit 1
17513 #define SMT2WINPPS2 SMT2WINPPSbits.SMT2WINPPS2 // bit 2
17514 #define SMT2WINPPS3 SMT2WINPPSbits.SMT2WINPPS3 // bit 3
17515 #define SMT2WINPPS4 SMT2WINPPSbits.SMT2WINPPS4 // bit 4
17517 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
17518 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
17519 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
17520 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
17521 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
17522 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
17523 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
17524 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
17525 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
17526 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
17527 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
17528 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
17529 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
17530 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
17531 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
17532 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
17534 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
17535 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
17536 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
17537 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
17538 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
17539 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
17540 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
17541 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
17542 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
17543 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
17544 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
17545 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
17546 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
17547 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
17548 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
17549 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
17551 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
17552 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
17553 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
17554 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
17555 #define CKP SSP1CONbits.CKP // bit 4
17556 #define SSPEN SSP1CONbits.SSPEN // bit 5
17557 #define SSPOV SSP1CONbits.SSPOV // bit 6
17558 #define WCOL SSP1CONbits.WCOL // bit 7
17560 #define SEN SSP1CON2bits.SEN // bit 0
17561 #define RSEN SSP1CON2bits.RSEN // bit 1
17562 #define PEN SSP1CON2bits.PEN // bit 2
17563 #define RCEN SSP1CON2bits.RCEN // bit 3
17564 #define ACKEN SSP1CON2bits.ACKEN // bit 4
17565 #define ACKDT SSP1CON2bits.ACKDT // bit 5
17566 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
17567 #define GCEN SSP1CON2bits.GCEN // bit 7
17569 #define DHEN SSP1CON3bits.DHEN // bit 0
17570 #define AHEN SSP1CON3bits.AHEN // bit 1
17571 #define SBCDE SSP1CON3bits.SBCDE // bit 2
17572 #define SDAHT SSP1CON3bits.SDAHT // bit 3
17573 #define BOEN SSP1CON3bits.BOEN // bit 4
17574 #define SCIE SSP1CON3bits.SCIE // bit 5
17575 #define PCIE SSP1CON3bits.PCIE // bit 6
17576 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
17578 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
17579 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
17580 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
17581 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
17582 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
17583 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
17584 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
17585 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
17586 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
17587 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
17588 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
17589 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
17590 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
17591 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
17592 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
17593 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
17595 #define BF SSP1STATbits.BF // bit 0
17596 #define UA SSP1STATbits.UA // bit 1
17597 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
17598 #define S SSP1STATbits.S // bit 3
17599 #define P SSP1STATbits.P // bit 4
17600 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
17601 #define CKE SSP1STATbits.CKE // bit 6
17602 #define SMP SSP1STATbits.SMP // bit 7
17604 #define SSPCLKPPS0 SSPCLKPPSbits.SSPCLKPPS0 // bit 0
17605 #define SSPCLKPPS1 SSPCLKPPSbits.SSPCLKPPS1 // bit 1
17606 #define SSPCLKPPS2 SSPCLKPPSbits.SSPCLKPPS2 // bit 2
17607 #define SSPCLKPPS3 SSPCLKPPSbits.SSPCLKPPS3 // bit 3
17608 #define SSPCLKPPS4 SSPCLKPPSbits.SSPCLKPPS4 // bit 4
17610 #define SSPDATPPS0 SSPDATPPSbits.SSPDATPPS0 // bit 0
17611 #define SSPDATPPS1 SSPDATPPSbits.SSPDATPPS1 // bit 1
17612 #define SSPDATPPS2 SSPDATPPSbits.SSPDATPPS2 // bit 2
17613 #define SSPDATPPS3 SSPDATPPSbits.SSPDATPPS3 // bit 3
17614 #define SSPDATPPS4 SSPDATPPSbits.SSPDATPPS4 // bit 4
17616 #define SSPSSPPS0 SSPSSPPSbits.SSPSSPPS0 // bit 0
17617 #define SSPSSPPS1 SSPSSPPSbits.SSPSSPPS1 // bit 1
17618 #define SSPSSPPS2 SSPSSPPSbits.SSPSSPPS2 // bit 2
17619 #define SSPSSPPS3 SSPSSPPSbits.SSPSSPPS3 // bit 3
17620 #define SSPSSPPS4 SSPSSPPSbits.SSPSSPPS4 // bit 4
17622 #define C STATUSbits.C // bit 0
17623 #define DC STATUSbits.DC // bit 1
17624 #define Z STATUSbits.Z // bit 2
17625 #define NOT_PD STATUSbits.NOT_PD // bit 3
17626 #define NOT_TO STATUSbits.NOT_TO // bit 4
17628 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
17629 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
17630 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
17632 #define T0CKIPPS0 T0CKIPPSbits.T0CKIPPS0 // bit 0
17633 #define T0CKIPPS1 T0CKIPPSbits.T0CKIPPS1 // bit 1
17634 #define T0CKIPPS2 T0CKIPPSbits.T0CKIPPS2 // bit 2
17635 #define T0CKIPPS3 T0CKIPPSbits.T0CKIPPS3 // bit 3
17636 #define T0CKIPPS4 T0CKIPPSbits.T0CKIPPS4 // bit 4
17638 #define T1CKIPPS0 T1CKIPPSbits.T1CKIPPS0 // bit 0
17639 #define T1CKIPPS1 T1CKIPPSbits.T1CKIPPS1 // bit 1
17640 #define T1CKIPPS2 T1CKIPPSbits.T1CKIPPS2 // bit 2
17641 #define T1CKIPPS3 T1CKIPPSbits.T1CKIPPS3 // bit 3
17642 #define T1CKIPPS4 T1CKIPPSbits.T1CKIPPS4 // bit 4
17644 #define TMR1ON T1CONbits.TMR1ON // bit 0
17645 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
17646 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
17647 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
17648 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
17649 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
17651 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
17652 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
17653 #define T1GVAL T1GCONbits.T1GVAL // bit 2
17654 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3
17655 #define T1GSPM T1GCONbits.T1GSPM // bit 4
17656 #define T1GTM T1GCONbits.T1GTM // bit 5
17657 #define T1GPOL T1GCONbits.T1GPOL // bit 6
17658 #define TMR1GE T1GCONbits.TMR1GE // bit 7
17660 #define T1GPPS0 T1GPPSbits.T1GPPS0 // bit 0
17661 #define T1GPPS1 T1GPPSbits.T1GPPS1 // bit 1
17662 #define T1GPPS2 T1GPPSbits.T1GPPS2 // bit 2
17663 #define T1GPPS3 T1GPPSbits.T1GPPS3 // bit 3
17664 #define T1GPPS4 T1GPPSbits.T1GPPS4 // bit 4
17666 #define OUTPS0 T2CONbits.OUTPS0 // bit 0, shadows bit in T2CONbits
17667 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 0, shadows bit in T2CONbits
17668 #define OUTPS1 T2CONbits.OUTPS1 // bit 1, shadows bit in T2CONbits
17669 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 1, shadows bit in T2CONbits
17670 #define OUTPS2 T2CONbits.OUTPS2 // bit 2, shadows bit in T2CONbits
17671 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 2, shadows bit in T2CONbits
17672 #define OUTPS3 T2CONbits.OUTPS3 // bit 3, shadows bit in T2CONbits
17673 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 3, shadows bit in T2CONbits
17674 #define CKPS0 T2CONbits.CKPS0 // bit 4, shadows bit in T2CONbits
17675 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 4, shadows bit in T2CONbits
17676 #define CKPS1 T2CONbits.CKPS1 // bit 5, shadows bit in T2CONbits
17677 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 5, shadows bit in T2CONbits
17678 #define CKPS2 T2CONbits.CKPS2 // bit 6, shadows bit in T2CONbits
17679 #define T2CKPS2 T2CONbits.T2CKPS2 // bit 6, shadows bit in T2CONbits
17680 #define ON T2CONbits.ON // bit 7, shadows bit in T2CONbits
17681 #define T2ON T2CONbits.T2ON // bit 7, shadows bit in T2CONbits
17682 #define TMR2ON T2CONbits.TMR2ON // bit 7, shadows bit in T2CONbits
17684 #define T2PPS0 T2PPSbits.T2PPS0 // bit 0
17685 #define T2PPS1 T2PPSbits.T2PPS1 // bit 1
17686 #define T2PPS2 T2PPSbits.T2PPS2 // bit 2
17687 #define T2PPS3 T2PPSbits.T2PPS3 // bit 3
17688 #define T2PPS4 T2PPSbits.T2PPS4 // bit 4
17690 #define RSEL0 T2RSTbits.RSEL0 // bit 0, shadows bit in T2RSTbits
17691 #define T2RSEL0 T2RSTbits.T2RSEL0 // bit 0, shadows bit in T2RSTbits
17692 #define RSEL1 T2RSTbits.RSEL1 // bit 1, shadows bit in T2RSTbits
17693 #define T2RSEL1 T2RSTbits.T2RSEL1 // bit 1, shadows bit in T2RSTbits
17694 #define RSEL2 T2RSTbits.RSEL2 // bit 2, shadows bit in T2RSTbits
17695 #define T2RSEL2 T2RSTbits.T2RSEL2 // bit 2, shadows bit in T2RSTbits
17696 #define RSEL3 T2RSTbits.RSEL3 // bit 3, shadows bit in T2RSTbits
17697 #define T2RSEL3 T2RSTbits.T2RSEL3 // bit 3, shadows bit in T2RSTbits
17699 #define T3CKIPPS0 T3CKIPPSbits.T3CKIPPS0 // bit 0
17700 #define T3CKIPPS1 T3CKIPPSbits.T3CKIPPS1 // bit 1
17701 #define T3CKIPPS2 T3CKIPPSbits.T3CKIPPS2 // bit 2
17702 #define T3CKIPPS3 T3CKIPPSbits.T3CKIPPS3 // bit 3
17703 #define T3CKIPPS4 T3CKIPPSbits.T3CKIPPS4 // bit 4
17705 #define TMR3ON T3CONbits.TMR3ON // bit 0
17706 #define T3SYNC T3CONbits.T3SYNC // bit 2
17707 #define T3CKPS0 T3CONbits.T3CKPS0 // bit 4
17708 #define T3CKPS1 T3CONbits.T3CKPS1 // bit 5
17709 #define TMR3CS0 T3CONbits.TMR3CS0 // bit 6
17710 #define TMR3CS1 T3CONbits.TMR3CS1 // bit 7
17712 #define T3GSS0 T3GCONbits.T3GSS0 // bit 0
17713 #define T3GSS1 T3GCONbits.T3GSS1 // bit 1
17714 #define T3GVAL T3GCONbits.T3GVAL // bit 2
17715 #define T3GGO_NOT_DONE T3GCONbits.T3GGO_NOT_DONE // bit 3
17716 #define T3GSPM T3GCONbits.T3GSPM // bit 4
17717 #define T3GTM T3GCONbits.T3GTM // bit 5
17718 #define T3GPOL T3GCONbits.T3GPOL // bit 6
17719 #define TMR3GE T3GCONbits.TMR3GE // bit 7
17721 #define T3GPPS0 T3GPPSbits.T3GPPS0 // bit 0
17722 #define T3GPPS1 T3GPPSbits.T3GPPS1 // bit 1
17723 #define T3GPPS2 T3GPPSbits.T3GPPS2 // bit 2
17724 #define T3GPPS3 T3GPPSbits.T3GPPS3 // bit 3
17725 #define T3GPPS4 T3GPPSbits.T3GPPS4 // bit 4
17727 #define T4PPS0 T4PPSbits.T4PPS0 // bit 0
17728 #define T4PPS1 T4PPSbits.T4PPS1 // bit 1
17729 #define T4PPS2 T4PPSbits.T4PPS2 // bit 2
17730 #define T4PPS3 T4PPSbits.T4PPS3 // bit 3
17731 #define T4PPS4 T4PPSbits.T4PPS4 // bit 4
17733 #define T5CKIPPS0 T5CKIPPSbits.T5CKIPPS0 // bit 0
17734 #define T5CKIPPS1 T5CKIPPSbits.T5CKIPPS1 // bit 1
17735 #define T5CKIPPS2 T5CKIPPSbits.T5CKIPPS2 // bit 2
17736 #define T5CKIPPS3 T5CKIPPSbits.T5CKIPPS3 // bit 3
17737 #define T5CKIPPS4 T5CKIPPSbits.T5CKIPPS4 // bit 4
17739 #define TMR5ON T5CONbits.TMR5ON // bit 0
17740 #define T5SYNC T5CONbits.T5SYNC // bit 2
17741 #define T5CKPS0 T5CONbits.T5CKPS0 // bit 4
17742 #define T5CKPS1 T5CONbits.T5CKPS1 // bit 5
17743 #define TMR5CS0 T5CONbits.TMR5CS0 // bit 6
17744 #define TMR5CS1 T5CONbits.TMR5CS1 // bit 7
17746 #define T5GSS0 T5GCONbits.T5GSS0 // bit 0
17747 #define T5GSS1 T5GCONbits.T5GSS1 // bit 1
17748 #define T5GVAL T5GCONbits.T5GVAL // bit 2
17749 #define T5GGO_NOT_DONE T5GCONbits.T5GGO_NOT_DONE // bit 3
17750 #define T5GSPM T5GCONbits.T5GSPM // bit 4
17751 #define T5GTM T5GCONbits.T5GTM // bit 5
17752 #define T5GPOL T5GCONbits.T5GPOL // bit 6
17753 #define TMR5GE T5GCONbits.TMR5GE // bit 7
17755 #define T5GPPS0 T5GPPSbits.T5GPPS0 // bit 0
17756 #define T5GPPS1 T5GPPSbits.T5GPPS1 // bit 1
17757 #define T5GPPS2 T5GPPSbits.T5GPPS2 // bit 2
17758 #define T5GPPS3 T5GPPSbits.T5GPPS3 // bit 3
17759 #define T5GPPS4 T5GPPSbits.T5GPPS4 // bit 4
17761 #define T6PPS0 T6PPSbits.T6PPS0 // bit 0
17762 #define T6PPS1 T6PPSbits.T6PPS1 // bit 1
17763 #define T6PPS2 T6PPSbits.T6PPS2 // bit 2
17764 #define T6PPS3 T6PPSbits.T6PPS3 // bit 3
17765 #define T6PPS4 T6PPSbits.T6PPS4 // bit 4
17767 #define TRISA0 TRISAbits.TRISA0 // bit 0
17768 #define TRISA1 TRISAbits.TRISA1 // bit 1
17769 #define TRISA2 TRISAbits.TRISA2 // bit 2
17770 #define TRISA3 TRISAbits.TRISA3 // bit 3
17771 #define TRISA4 TRISAbits.TRISA4 // bit 4
17772 #define TRISA5 TRISAbits.TRISA5 // bit 5
17774 #define TRISC0 TRISCbits.TRISC0 // bit 0
17775 #define TRISC1 TRISCbits.TRISC1 // bit 1
17776 #define TRISC2 TRISCbits.TRISC2 // bit 2
17777 #define TRISC3 TRISCbits.TRISC3 // bit 3
17778 #define TRISC4 TRISCbits.TRISC4 // bit 4
17779 #define TRISC5 TRISCbits.TRISC5 // bit 5
17781 #define TX9D TX1STAbits.TX9D // bit 0
17782 #define TRMT TX1STAbits.TRMT // bit 1
17783 #define BRGH TX1STAbits.BRGH // bit 2
17784 #define SENDB TX1STAbits.SENDB // bit 3
17785 #define SYNC TX1STAbits.SYNC // bit 4
17786 #define TXEN TX1STAbits.TXEN // bit 5
17787 #define TX9 TX1STAbits.TX9 // bit 6
17788 #define CSRC TX1STAbits.CSRC // bit 7
17790 #define VREGPM0 VREGCONbits.VREGPM0 // bit 0
17791 #define VREGPM1 VREGCONbits.VREGPM1 // bit 1
17793 #define WINDOW0 WDTCON1bits.WINDOW0 // bit 0, shadows bit in WDTCON1bits
17794 #define WDTWINDOW0 WDTCON1bits.WDTWINDOW0 // bit 0, shadows bit in WDTCON1bits
17795 #define WINDOW1 WDTCON1bits.WINDOW1 // bit 1, shadows bit in WDTCON1bits
17796 #define WDTWINDOW1 WDTCON1bits.WDTWINDOW1 // bit 1, shadows bit in WDTCON1bits
17797 #define WINDOW2 WDTCON1bits.WINDOW2 // bit 2, shadows bit in WDTCON1bits
17798 #define WDTWINDOW2 WDTCON1bits.WDTWINDOW2 // bit 2, shadows bit in WDTCON1bits
17799 #define WDTCS0 WDTCON1bits.WDTCS0 // bit 4
17800 #define WDTCS1 WDTCON1bits.WDTCS1 // bit 5
17801 #define WDTCS2 WDTCON1bits.WDTCS2 // bit 6
17803 #define PSCNT8 WDTPSHbits.PSCNT8 // bit 0, shadows bit in WDTPSHbits
17804 #define WDTPSCNT8 WDTPSHbits.WDTPSCNT8 // bit 0, shadows bit in WDTPSHbits
17805 #define PSCNT9 WDTPSHbits.PSCNT9 // bit 1, shadows bit in WDTPSHbits
17806 #define WDTPSCNT9 WDTPSHbits.WDTPSCNT9 // bit 1, shadows bit in WDTPSHbits
17807 #define PSCNT10 WDTPSHbits.PSCNT10 // bit 2, shadows bit in WDTPSHbits
17808 #define WDTPSCNT10 WDTPSHbits.WDTPSCNT10 // bit 2, shadows bit in WDTPSHbits
17809 #define PSCNT11 WDTPSHbits.PSCNT11 // bit 3, shadows bit in WDTPSHbits
17810 #define WDTPSCNT11 WDTPSHbits.WDTPSCNT11 // bit 3, shadows bit in WDTPSHbits
17811 #define PSCNT12 WDTPSHbits.PSCNT12 // bit 4, shadows bit in WDTPSHbits
17812 #define WDTPSCNT12 WDTPSHbits.WDTPSCNT12 // bit 4, shadows bit in WDTPSHbits
17813 #define PSCNT13 WDTPSHbits.PSCNT13 // bit 5, shadows bit in WDTPSHbits
17814 #define WDTPSCNT13 WDTPSHbits.WDTPSCNT13 // bit 5, shadows bit in WDTPSHbits
17815 #define PSCNT14 WDTPSHbits.PSCNT14 // bit 6, shadows bit in WDTPSHbits
17816 #define WDTPSCNT14 WDTPSHbits.WDTPSCNT14 // bit 6, shadows bit in WDTPSHbits
17817 #define PSCNT15 WDTPSHbits.PSCNT15 // bit 7, shadows bit in WDTPSHbits
17818 #define WDTPSCNT15 WDTPSHbits.WDTPSCNT15 // bit 7, shadows bit in WDTPSHbits
17820 #define PSCNT0 WDTPSLbits.PSCNT0 // bit 0, shadows bit in WDTPSLbits
17821 #define WDTPSCNT0 WDTPSLbits.WDTPSCNT0 // bit 0, shadows bit in WDTPSLbits
17822 #define PSCNT1 WDTPSLbits.PSCNT1 // bit 1, shadows bit in WDTPSLbits
17823 #define WDTPSCNT1 WDTPSLbits.WDTPSCNT1 // bit 1, shadows bit in WDTPSLbits
17824 #define PSCNT2 WDTPSLbits.PSCNT2 // bit 2, shadows bit in WDTPSLbits
17825 #define WDTPSCNT2 WDTPSLbits.WDTPSCNT2 // bit 2, shadows bit in WDTPSLbits
17826 #define PSCNT3 WDTPSLbits.PSCNT3 // bit 3, shadows bit in WDTPSLbits
17827 #define WDTPSCNT3 WDTPSLbits.WDTPSCNT3 // bit 3, shadows bit in WDTPSLbits
17828 #define PSCNT4 WDTPSLbits.PSCNT4 // bit 4, shadows bit in WDTPSLbits
17829 #define WDTPSCNT4 WDTPSLbits.WDTPSCNT4 // bit 4, shadows bit in WDTPSLbits
17830 #define PSCNT5 WDTPSLbits.PSCNT5 // bit 5, shadows bit in WDTPSLbits
17831 #define WDTPSCNT5 WDTPSLbits.WDTPSCNT5 // bit 5, shadows bit in WDTPSLbits
17832 #define PSCNT6 WDTPSLbits.PSCNT6 // bit 6, shadows bit in WDTPSLbits
17833 #define WDTPSCNT6 WDTPSLbits.WDTPSCNT6 // bit 6, shadows bit in WDTPSLbits
17834 #define PSCNT7 WDTPSLbits.PSCNT7 // bit 7, shadows bit in WDTPSLbits
17835 #define WDTPSCNT7 WDTPSLbits.WDTPSCNT7 // bit 7, shadows bit in WDTPSLbits
17837 #define PSCNT16 WDTTMRbits.PSCNT16 // bit 0, shadows bit in WDTTMRbits
17838 #define WDTPSCNT16 WDTTMRbits.WDTPSCNT16 // bit 0, shadows bit in WDTTMRbits
17839 #define PSCNT17 WDTTMRbits.PSCNT17 // bit 1, shadows bit in WDTTMRbits
17840 #define WDTPSCNT17 WDTTMRbits.WDTPSCNT17 // bit 1, shadows bit in WDTTMRbits
17841 #define STATE WDTTMRbits.STATE // bit 2, shadows bit in WDTTMRbits
17842 #define WDTSTATE WDTTMRbits.WDTSTATE // bit 2, shadows bit in WDTTMRbits
17843 #define WDTTMR0 WDTTMRbits.WDTTMR0 // bit 3
17844 #define WDTTMR1 WDTTMRbits.WDTTMR1 // bit 4
17845 #define WDTTMR2 WDTTMRbits.WDTTMR2 // bit 5
17846 #define WDTTMR3 WDTTMRbits.WDTTMR3 // bit 6
17847 #define WDTTMR4 WDTTMRbits.WDTTMR4 // bit 7
17849 #define WPUA0 WPUAbits.WPUA0 // bit 0
17850 #define WPUA1 WPUAbits.WPUA1 // bit 1
17851 #define WPUA2 WPUAbits.WPUA2 // bit 2
17852 #define WPUA3 WPUAbits.WPUA3 // bit 3
17853 #define WPUA4 WPUAbits.WPUA4 // bit 4
17854 #define WPUA5 WPUAbits.WPUA5 // bit 5
17856 #define WPUC0 WPUCbits.WPUC0 // bit 0
17857 #define WPUC1 WPUCbits.WPUC1 // bit 1
17858 #define WPUC2 WPUCbits.WPUC2 // bit 2
17859 #define WPUC3 WPUCbits.WPUC3 // bit 3
17860 #define WPUC4 WPUCbits.WPUC4 // bit 4
17861 #define WPUC5 WPUCbits.WPUC5 // bit 5
17863 #define ZCD1INTN ZCD1CONbits.ZCD1INTN // bit 0
17864 #define ZCD1INTP ZCD1CONbits.ZCD1INTP // bit 1
17865 #define ZCD1POL ZCD1CONbits.ZCD1POL // bit 4
17866 #define ZCD1OUT ZCD1CONbits.ZCD1OUT // bit 5
17867 #define ZCD1EN ZCD1CONbits.ZCD1EN // bit 7
17869 #endif // #ifndef NO_BIT_DEFINES
17871 #endif // #ifndef __PIC16F1615_H__