struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16lf1787.h
blob4a68a9a9de1e5320a89405ba43299327265785b7
1 /*
2 * This declarations of the PIC16LF1787 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:18 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 __PIC16LF1787_H__
26 #define __PIC16LF1787_H__
28 //==============================================================================
30 // Register Addresses
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF0_ADDR 0x0000
37 #define INDF1_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR0_ADDR 0x0004
41 #define FSR0L_ADDR 0x0004
42 #define FSR0H_ADDR 0x0005
43 #define FSR1_ADDR 0x0006
44 #define FSR1L_ADDR 0x0006
45 #define FSR1H_ADDR 0x0007
46 #define BSR_ADDR 0x0008
47 #define WREG_ADDR 0x0009
48 #define PCLATH_ADDR 0x000A
49 #define INTCON_ADDR 0x000B
50 #define PORTA_ADDR 0x000C
51 #define PORTB_ADDR 0x000D
52 #define PORTC_ADDR 0x000E
53 #define PORTD_ADDR 0x000F
54 #define PORTE_ADDR 0x0010
55 #define PIR1_ADDR 0x0011
56 #define PIR2_ADDR 0x0012
57 #define PIR3_ADDR 0x0013
58 #define PIR4_ADDR 0x0014
59 #define TMR0_ADDR 0x0015
60 #define TMR1_ADDR 0x0016
61 #define TMR1L_ADDR 0x0016
62 #define TMR1H_ADDR 0x0017
63 #define T1CON_ADDR 0x0018
64 #define T1GCON_ADDR 0x0019
65 #define TMR2_ADDR 0x001A
66 #define PR2_ADDR 0x001B
67 #define T2CON_ADDR 0x001C
68 #define TRISA_ADDR 0x008C
69 #define TRISB_ADDR 0x008D
70 #define TRISC_ADDR 0x008E
71 #define TRISD_ADDR 0x008F
72 #define TRISE_ADDR 0x0090
73 #define PIE1_ADDR 0x0091
74 #define PIE2_ADDR 0x0092
75 #define PIE3_ADDR 0x0093
76 #define PIE4_ADDR 0x0094
77 #define OPTION_REG_ADDR 0x0095
78 #define PCON_ADDR 0x0096
79 #define WDTCON_ADDR 0x0097
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 LATB_ADDR 0x010D
91 #define LATC_ADDR 0x010E
92 #define LATD_ADDR 0x010F
93 #define LATE_ADDR 0x0110
94 #define CM1CON0_ADDR 0x0111
95 #define CM1CON1_ADDR 0x0112
96 #define CM2CON0_ADDR 0x0113
97 #define CM2CON1_ADDR 0x0114
98 #define CMOUT_ADDR 0x0115
99 #define BORCON_ADDR 0x0116
100 #define FVRCON_ADDR 0x0117
101 #define DACCON0_ADDR 0x0118
102 #define DACCON1_ADDR 0x0119
103 #define CM4CON0_ADDR 0x011A
104 #define CM4CON1_ADDR 0x011B
105 #define APFCON2_ADDR 0x011C
106 #define APFCON_ADDR 0x011D
107 #define APFCON0_ADDR 0x011D
108 #define APFCON1_ADDR 0x011D
109 #define CM3CON0_ADDR 0x011E
110 #define CM3CON1_ADDR 0x011F
111 #define ANSELA_ADDR 0x018C
112 #define ANSELB_ADDR 0x018D
113 #define ANSELD_ADDR 0x018F
114 #define ANSELE_ADDR 0x0190
115 #define EEADR_ADDR 0x0191
116 #define EEADRL_ADDR 0x0191
117 #define EEADRH_ADDR 0x0192
118 #define EEDAT_ADDR 0x0193
119 #define EEDATL_ADDR 0x0193
120 #define EEDATH_ADDR 0x0194
121 #define EECON1_ADDR 0x0195
122 #define EECON2_ADDR 0x0196
123 #define RC1REG_ADDR 0x0199
124 #define RCREG_ADDR 0x0199
125 #define RCREG1_ADDR 0x0199
126 #define TX1REG_ADDR 0x019A
127 #define TXREG_ADDR 0x019A
128 #define TXREG1_ADDR 0x019A
129 #define SP1BRG_ADDR 0x019B
130 #define SP1BRGL_ADDR 0x019B
131 #define SPBRG_ADDR 0x019B
132 #define SPBRG1_ADDR 0x019B
133 #define SPBRGL_ADDR 0x019B
134 #define SP1BRGH_ADDR 0x019C
135 #define SPBRGH_ADDR 0x019C
136 #define SPBRGH1_ADDR 0x019C
137 #define RC1STA_ADDR 0x019D
138 #define RCSTA_ADDR 0x019D
139 #define RCSTA1_ADDR 0x019D
140 #define TX1STA_ADDR 0x019E
141 #define TXSTA_ADDR 0x019E
142 #define TXSTA1_ADDR 0x019E
143 #define BAUD1CON_ADDR 0x019F
144 #define BAUDCON_ADDR 0x019F
145 #define BAUDCON1_ADDR 0x019F
146 #define BAUDCTL_ADDR 0x019F
147 #define BAUDCTL1_ADDR 0x019F
148 #define WPUA_ADDR 0x020C
149 #define WPUB_ADDR 0x020D
150 #define WPUC_ADDR 0x020E
151 #define WPUD_ADDR 0x020F
152 #define WPUE_ADDR 0x0210
153 #define SSP1BUF_ADDR 0x0211
154 #define SSPBUF_ADDR 0x0211
155 #define SSP1ADD_ADDR 0x0212
156 #define SSPADD_ADDR 0x0212
157 #define SSP1MSK_ADDR 0x0213
158 #define SSPMSK_ADDR 0x0213
159 #define SSP1STAT_ADDR 0x0214
160 #define SSPSTAT_ADDR 0x0214
161 #define SSP1CON_ADDR 0x0215
162 #define SSP1CON1_ADDR 0x0215
163 #define SSPCON_ADDR 0x0215
164 #define SSPCON1_ADDR 0x0215
165 #define SSP1CON2_ADDR 0x0216
166 #define SSPCON2_ADDR 0x0216
167 #define SSP1CON3_ADDR 0x0217
168 #define SSPCON3_ADDR 0x0217
169 #define ODCONA_ADDR 0x028C
170 #define ODCONB_ADDR 0x028D
171 #define ODCONC_ADDR 0x028E
172 #define ODCOND_ADDR 0x028F
173 #define ODCONE_ADDR 0x0290
174 #define CCPR1_ADDR 0x0291
175 #define CCPR1L_ADDR 0x0291
176 #define CCPR1H_ADDR 0x0292
177 #define CCP1CON_ADDR 0x0293
178 #define CCPR2_ADDR 0x0298
179 #define CCPR2L_ADDR 0x0298
180 #define CCPR2H_ADDR 0x0299
181 #define CCP2CON_ADDR 0x029A
182 #define SLRCONA_ADDR 0x030C
183 #define SLRCONB_ADDR 0x030D
184 #define SLRCONC_ADDR 0x030E
185 #define SLRCOND_ADDR 0x030F
186 #define SLRCONE_ADDR 0x0310
187 #define CCPR3_ADDR 0x0311
188 #define CCPR3L_ADDR 0x0311
189 #define CCPR3H_ADDR 0x0312
190 #define CCP3CON_ADDR 0x0313
191 #define INLVLA_ADDR 0x038C
192 #define INLVLB_ADDR 0x038D
193 #define INLVLC_ADDR 0x038E
194 #define INLVLD_ADDR 0x038F
195 #define INLVLE_ADDR 0x0390
196 #define IOCAP_ADDR 0x0391
197 #define IOCAN_ADDR 0x0392
198 #define IOCAF_ADDR 0x0393
199 #define IOCBP_ADDR 0x0394
200 #define IOCBN_ADDR 0x0395
201 #define IOCBF_ADDR 0x0396
202 #define IOCCP_ADDR 0x0397
203 #define IOCCN_ADDR 0x0398
204 #define IOCCF_ADDR 0x0399
205 #define IOCEP_ADDR 0x039D
206 #define IOCEN_ADDR 0x039E
207 #define IOCEF_ADDR 0x039F
208 #define OPA1CON_ADDR 0x0511
209 #define OPA2CON_ADDR 0x0513
210 #define OPA3CON_ADDR 0x0515
211 #define CLKRCON_ADDR 0x051A
212 #define PSMC1CON_ADDR 0x0811
213 #define PSMC1MDL_ADDR 0x0812
214 #define PSMC1SYNC_ADDR 0x0813
215 #define PSMC1CLK_ADDR 0x0814
216 #define PSMC1OEN_ADDR 0x0815
217 #define PSMC1POL_ADDR 0x0816
218 #define PSMC1BLNK_ADDR 0x0817
219 #define PSMC1REBS_ADDR 0x0818
220 #define PSMC1FEBS_ADDR 0x0819
221 #define PSMC1PHS_ADDR 0x081A
222 #define PSMC1DCS_ADDR 0x081B
223 #define PSMC1PRS_ADDR 0x081C
224 #define PSMC1ASDC_ADDR 0x081D
225 #define PSMC1ASDL_ADDR 0x081E
226 #define PSMC1ASDS_ADDR 0x081F
227 #define PSMC1INT_ADDR 0x0820
228 #define PSMC1PH_ADDR 0x0821
229 #define PSMC1PHL_ADDR 0x0821
230 #define PSMC1PHH_ADDR 0x0822
231 #define PSMC1DC_ADDR 0x0823
232 #define PSMC1DCL_ADDR 0x0823
233 #define PSMC1DCH_ADDR 0x0824
234 #define PSMC1PR_ADDR 0x0825
235 #define PSMC1PRL_ADDR 0x0825
236 #define PSMC1PRH_ADDR 0x0826
237 #define PSMC1TMR_ADDR 0x0827
238 #define PSMC1TMRL_ADDR 0x0827
239 #define PSMC1TMRH_ADDR 0x0828
240 #define PSMC1DBR_ADDR 0x0829
241 #define PSMC1DBF_ADDR 0x082A
242 #define PSMC1BLKR_ADDR 0x082B
243 #define PSMC1BLKF_ADDR 0x082C
244 #define PSMC1FFA_ADDR 0x082D
245 #define PSMC1STR0_ADDR 0x082E
246 #define PSMC1STR1_ADDR 0x082F
247 #define PSMC2CON_ADDR 0x0831
248 #define PSMC2MDL_ADDR 0x0832
249 #define PSMC2SYNC_ADDR 0x0833
250 #define PSMC2CLK_ADDR 0x0834
251 #define PSMC2OEN_ADDR 0x0835
252 #define PSMC2POL_ADDR 0x0836
253 #define PSMC2BLNK_ADDR 0x0837
254 #define PSMC2REBS_ADDR 0x0838
255 #define PSMC2FEBS_ADDR 0x0839
256 #define PSMC2PHS_ADDR 0x083A
257 #define PSMC2DCS_ADDR 0x083B
258 #define PSMC2PRS_ADDR 0x083C
259 #define PSMC2ASDC_ADDR 0x083D
260 #define PSMC2ASDL_ADDR 0x083E
261 #define PSMC2ASDS_ADDR 0x083F
262 #define PSMC2INT_ADDR 0x0840
263 #define PSMC2PH_ADDR 0x0841
264 #define PSMC2PHL_ADDR 0x0841
265 #define PSMC2PHH_ADDR 0x0842
266 #define PSMC2DC_ADDR 0x0843
267 #define PSMC2DCL_ADDR 0x0843
268 #define PSMC2DCH_ADDR 0x0844
269 #define PSMC2PR_ADDR 0x0845
270 #define PSMC2PRL_ADDR 0x0845
271 #define PSMC2PRH_ADDR 0x0846
272 #define PSMC2TMR_ADDR 0x0847
273 #define PSMC2TMRL_ADDR 0x0847
274 #define PSMC2TMRH_ADDR 0x0848
275 #define PSMC2DBR_ADDR 0x0849
276 #define PSMC2DBF_ADDR 0x084A
277 #define PSMC2BLKR_ADDR 0x084B
278 #define PSMC2BLKF_ADDR 0x084C
279 #define PSMC2FFA_ADDR 0x084D
280 #define PSMC2STR0_ADDR 0x084E
281 #define PSMC2STR1_ADDR 0x084F
282 #define PSMC3CON_ADDR 0x0851
283 #define PSMC3MDL_ADDR 0x0852
284 #define PSMC3SYNC_ADDR 0x0853
285 #define PSMC3CLK_ADDR 0x0854
286 #define PSMC3OEN_ADDR 0x0855
287 #define PSMC3POL_ADDR 0x0856
288 #define PSMC3BLNK_ADDR 0x0857
289 #define PSMC3REBS_ADDR 0x0858
290 #define PSMC3FEBS_ADDR 0x0859
291 #define PSMC3PHS_ADDR 0x085A
292 #define PSMC3DCS_ADDR 0x085B
293 #define PSMC3PRS_ADDR 0x085C
294 #define PSMC3ASDC_ADDR 0x085D
295 #define PSMC3ASDL_ADDR 0x085E
296 #define PSMC3ASDS_ADDR 0x085F
297 #define PSMC3INT_ADDR 0x0860
298 #define PSMC3PH_ADDR 0x0861
299 #define PSMC3PHL_ADDR 0x0861
300 #define PSMC3PHH_ADDR 0x0862
301 #define PSMC3DC_ADDR 0x0863
302 #define PSMC3DCL_ADDR 0x0863
303 #define PSMC3DCH_ADDR 0x0864
304 #define PSMC3PR_ADDR 0x0865
305 #define PSMC3PRL_ADDR 0x0865
306 #define PSMC3PRH_ADDR 0x0866
307 #define PSMC3TMR_ADDR 0x0867
308 #define PSMC3TMRL_ADDR 0x0867
309 #define PSMC3TMRH_ADDR 0x0868
310 #define PSMC3DBR_ADDR 0x0869
311 #define PSMC3DBF_ADDR 0x086A
312 #define PSMC3BLKR_ADDR 0x086B
313 #define PSMC3BLKF_ADDR 0x086C
314 #define PSMC3FFA_ADDR 0x086D
315 #define PSMC3STR0_ADDR 0x086E
316 #define PSMC3STR1_ADDR 0x086F
317 #define STATUS_SHAD_ADDR 0x0FE4
318 #define WREG_SHAD_ADDR 0x0FE5
319 #define BSR_SHAD_ADDR 0x0FE6
320 #define PCLATH_SHAD_ADDR 0x0FE7
321 #define FSR0L_SHAD_ADDR 0x0FE8
322 #define FSR0H_SHAD_ADDR 0x0FE9
323 #define FSR1L_SHAD_ADDR 0x0FEA
324 #define FSR1H_SHAD_ADDR 0x0FEB
325 #define STKPTR_ADDR 0x0FED
326 #define TOSL_ADDR 0x0FEE
327 #define TOSH_ADDR 0x0FEF
329 #endif // #ifndef NO_ADDR_DEFINES
331 //==============================================================================
333 // Register Definitions
335 //==============================================================================
337 extern __at(0x0000) __sfr INDF0;
338 extern __at(0x0001) __sfr INDF1;
339 extern __at(0x0002) __sfr PCL;
341 //==============================================================================
342 // STATUS Bits
344 extern __at(0x0003) __sfr STATUS;
346 typedef struct
348 unsigned C : 1;
349 unsigned DC : 1;
350 unsigned Z : 1;
351 unsigned NOT_PD : 1;
352 unsigned NOT_TO : 1;
353 unsigned : 1;
354 unsigned : 1;
355 unsigned : 1;
356 } __STATUSbits_t;
358 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
360 #define _C 0x01
361 #define _DC 0x02
362 #define _Z 0x04
363 #define _NOT_PD 0x08
364 #define _NOT_TO 0x10
366 //==============================================================================
368 extern __at(0x0004) __sfr FSR0;
369 extern __at(0x0004) __sfr FSR0L;
370 extern __at(0x0005) __sfr FSR0H;
371 extern __at(0x0006) __sfr FSR1;
372 extern __at(0x0006) __sfr FSR1L;
373 extern __at(0x0007) __sfr FSR1H;
375 //==============================================================================
376 // BSR Bits
378 extern __at(0x0008) __sfr BSR;
380 typedef union
382 struct
384 unsigned BSR0 : 1;
385 unsigned BSR1 : 1;
386 unsigned BSR2 : 1;
387 unsigned BSR3 : 1;
388 unsigned BSR4 : 1;
389 unsigned : 1;
390 unsigned : 1;
391 unsigned : 1;
394 struct
396 unsigned BSR : 5;
397 unsigned : 3;
399 } __BSRbits_t;
401 extern __at(0x0008) volatile __BSRbits_t BSRbits;
403 #define _BSR0 0x01
404 #define _BSR1 0x02
405 #define _BSR2 0x04
406 #define _BSR3 0x08
407 #define _BSR4 0x10
409 //==============================================================================
411 extern __at(0x0009) __sfr WREG;
412 extern __at(0x000A) __sfr PCLATH;
414 //==============================================================================
415 // INTCON Bits
417 extern __at(0x000B) __sfr INTCON;
419 typedef union
421 struct
423 unsigned IOCIF : 1;
424 unsigned INTF : 1;
425 unsigned TMR0IF : 1;
426 unsigned IOCIE : 1;
427 unsigned INTE : 1;
428 unsigned TMR0IE : 1;
429 unsigned PEIE : 1;
430 unsigned GIE : 1;
433 struct
435 unsigned : 1;
436 unsigned : 1;
437 unsigned T0IF : 1;
438 unsigned : 1;
439 unsigned : 1;
440 unsigned T0IE : 1;
441 unsigned : 1;
442 unsigned : 1;
444 } __INTCONbits_t;
446 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
448 #define _IOCIF 0x01
449 #define _INTF 0x02
450 #define _TMR0IF 0x04
451 #define _T0IF 0x04
452 #define _IOCIE 0x08
453 #define _INTE 0x10
454 #define _TMR0IE 0x20
455 #define _T0IE 0x20
456 #define _PEIE 0x40
457 #define _GIE 0x80
459 //==============================================================================
462 //==============================================================================
463 // PORTA Bits
465 extern __at(0x000C) __sfr PORTA;
467 typedef struct
469 unsigned RA0 : 1;
470 unsigned RA1 : 1;
471 unsigned RA2 : 1;
472 unsigned RA3 : 1;
473 unsigned RA4 : 1;
474 unsigned RA5 : 1;
475 unsigned RA6 : 1;
476 unsigned RA7 : 1;
477 } __PORTAbits_t;
479 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
481 #define _RA0 0x01
482 #define _RA1 0x02
483 #define _RA2 0x04
484 #define _RA3 0x08
485 #define _RA4 0x10
486 #define _RA5 0x20
487 #define _RA6 0x40
488 #define _RA7 0x80
490 //==============================================================================
493 //==============================================================================
494 // PORTB Bits
496 extern __at(0x000D) __sfr PORTB;
498 typedef struct
500 unsigned RB0 : 1;
501 unsigned RB1 : 1;
502 unsigned RB2 : 1;
503 unsigned RB3 : 1;
504 unsigned RB4 : 1;
505 unsigned RB5 : 1;
506 unsigned RB6 : 1;
507 unsigned RB7 : 1;
508 } __PORTBbits_t;
510 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
512 #define _RB0 0x01
513 #define _RB1 0x02
514 #define _RB2 0x04
515 #define _RB3 0x08
516 #define _RB4 0x10
517 #define _RB5 0x20
518 #define _RB6 0x40
519 #define _RB7 0x80
521 //==============================================================================
524 //==============================================================================
525 // PORTC Bits
527 extern __at(0x000E) __sfr PORTC;
529 typedef struct
531 unsigned RC0 : 1;
532 unsigned RC1 : 1;
533 unsigned RC2 : 1;
534 unsigned RC3 : 1;
535 unsigned RC4 : 1;
536 unsigned RC5 : 1;
537 unsigned RC6 : 1;
538 unsigned RC7 : 1;
539 } __PORTCbits_t;
541 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
543 #define _RC0 0x01
544 #define _RC1 0x02
545 #define _RC2 0x04
546 #define _RC3 0x08
547 #define _RC4 0x10
548 #define _RC5 0x20
549 #define _RC6 0x40
550 #define _RC7 0x80
552 //==============================================================================
555 //==============================================================================
556 // PORTD Bits
558 extern __at(0x000F) __sfr PORTD;
560 typedef struct
562 unsigned RD0 : 1;
563 unsigned RD1 : 1;
564 unsigned RD2 : 1;
565 unsigned RD3 : 1;
566 unsigned RD4 : 1;
567 unsigned RD5 : 1;
568 unsigned RD6 : 1;
569 unsigned RD7 : 1;
570 } __PORTDbits_t;
572 extern __at(0x000F) volatile __PORTDbits_t PORTDbits;
574 #define _RD0 0x01
575 #define _RD1 0x02
576 #define _RD2 0x04
577 #define _RD3 0x08
578 #define _RD4 0x10
579 #define _RD5 0x20
580 #define _RD6 0x40
581 #define _RD7 0x80
583 //==============================================================================
586 //==============================================================================
587 // PORTE Bits
589 extern __at(0x0010) __sfr PORTE;
591 typedef union
593 struct
595 unsigned RE0 : 1;
596 unsigned RE1 : 1;
597 unsigned RE2 : 1;
598 unsigned RE3 : 1;
599 unsigned : 1;
600 unsigned : 1;
601 unsigned : 1;
602 unsigned : 1;
605 struct
607 unsigned RE : 4;
608 unsigned : 4;
610 } __PORTEbits_t;
612 extern __at(0x0010) volatile __PORTEbits_t PORTEbits;
614 #define _RE0 0x01
615 #define _RE1 0x02
616 #define _RE2 0x04
617 #define _RE3 0x08
619 //==============================================================================
622 //==============================================================================
623 // PIR1 Bits
625 extern __at(0x0011) __sfr PIR1;
627 typedef struct
629 unsigned TMR1IF : 1;
630 unsigned TMR2IF : 1;
631 unsigned CCP1IF : 1;
632 unsigned SSP1IF : 1;
633 unsigned TXIF : 1;
634 unsigned RCIF : 1;
635 unsigned ADIF : 1;
636 unsigned TMR1GIF : 1;
637 } __PIR1bits_t;
639 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
641 #define _TMR1IF 0x01
642 #define _TMR2IF 0x02
643 #define _CCP1IF 0x04
644 #define _SSP1IF 0x08
645 #define _TXIF 0x10
646 #define _RCIF 0x20
647 #define _ADIF 0x40
648 #define _TMR1GIF 0x80
650 //==============================================================================
653 //==============================================================================
654 // PIR2 Bits
656 extern __at(0x0012) __sfr PIR2;
658 typedef struct
660 unsigned CCP2IF : 1;
661 unsigned C3IF : 1;
662 unsigned C4IF : 1;
663 unsigned BCL1IF : 1;
664 unsigned EEIF : 1;
665 unsigned C1IF : 1;
666 unsigned C2IF : 1;
667 unsigned OSFIF : 1;
668 } __PIR2bits_t;
670 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
672 #define _CCP2IF 0x01
673 #define _C3IF 0x02
674 #define _C4IF 0x04
675 #define _BCL1IF 0x08
676 #define _EEIF 0x10
677 #define _C1IF 0x20
678 #define _C2IF 0x40
679 #define _OSFIF 0x80
681 //==============================================================================
684 //==============================================================================
685 // PIR3 Bits
687 extern __at(0x0013) __sfr PIR3;
689 typedef struct
691 unsigned : 1;
692 unsigned : 1;
693 unsigned : 1;
694 unsigned : 1;
695 unsigned CCP3IF : 1;
696 unsigned : 1;
697 unsigned : 1;
698 unsigned : 1;
699 } __PIR3bits_t;
701 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
703 #define _CCP3IF 0x10
705 //==============================================================================
708 //==============================================================================
709 // PIR4 Bits
711 extern __at(0x0014) __sfr PIR4;
713 typedef struct
715 unsigned PSMC1SIF : 1;
716 unsigned PSMC2SIF : 1;
717 unsigned PSMC3SIF : 1;
718 unsigned : 1;
719 unsigned PSMC1TIF : 1;
720 unsigned PSMC2TIF : 1;
721 unsigned PSMC3TIF : 1;
722 unsigned : 1;
723 } __PIR4bits_t;
725 extern __at(0x0014) volatile __PIR4bits_t PIR4bits;
727 #define _PSMC1SIF 0x01
728 #define _PSMC2SIF 0x02
729 #define _PSMC3SIF 0x04
730 #define _PSMC1TIF 0x10
731 #define _PSMC2TIF 0x20
732 #define _PSMC3TIF 0x40
734 //==============================================================================
736 extern __at(0x0015) __sfr TMR0;
737 extern __at(0x0016) __sfr TMR1;
738 extern __at(0x0016) __sfr TMR1L;
739 extern __at(0x0017) __sfr TMR1H;
741 //==============================================================================
742 // T1CON Bits
744 extern __at(0x0018) __sfr T1CON;
746 typedef union
748 struct
750 unsigned TMR1ON : 1;
751 unsigned : 1;
752 unsigned NOT_T1SYNC : 1;
753 unsigned T1OSCEN : 1;
754 unsigned T1CKPS0 : 1;
755 unsigned T1CKPS1 : 1;
756 unsigned TMR1CS0 : 1;
757 unsigned TMR1CS1 : 1;
760 struct
762 unsigned : 4;
763 unsigned T1CKPS : 2;
764 unsigned : 2;
767 struct
769 unsigned : 6;
770 unsigned TMR1CS : 2;
772 } __T1CONbits_t;
774 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
776 #define _TMR1ON 0x01
777 #define _NOT_T1SYNC 0x04
778 #define _T1OSCEN 0x08
779 #define _T1CKPS0 0x10
780 #define _T1CKPS1 0x20
781 #define _TMR1CS0 0x40
782 #define _TMR1CS1 0x80
784 //==============================================================================
787 //==============================================================================
788 // T1GCON Bits
790 extern __at(0x0019) __sfr T1GCON;
792 typedef union
794 struct
796 unsigned T1GSS0 : 1;
797 unsigned T1GSS1 : 1;
798 unsigned T1GVAL : 1;
799 unsigned T1GGO : 1;
800 unsigned T1GSPM : 1;
801 unsigned T1GTM : 1;
802 unsigned T1GPOL : 1;
803 unsigned TMR1GE : 1;
806 struct
808 unsigned T1GSS : 2;
809 unsigned : 6;
811 } __T1GCONbits_t;
813 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
815 #define _T1GSS0 0x01
816 #define _T1GSS1 0x02
817 #define _T1GVAL 0x04
818 #define _T1GGO 0x08
819 #define _T1GSPM 0x10
820 #define _T1GTM 0x20
821 #define _T1GPOL 0x40
822 #define _TMR1GE 0x80
824 //==============================================================================
826 extern __at(0x001A) __sfr TMR2;
827 extern __at(0x001B) __sfr PR2;
829 //==============================================================================
830 // T2CON Bits
832 extern __at(0x001C) __sfr T2CON;
834 typedef union
836 struct
838 unsigned T2CKPS0 : 1;
839 unsigned T2CKPS1 : 1;
840 unsigned TMR2ON : 1;
841 unsigned T2OUTPS0 : 1;
842 unsigned T2OUTPS1 : 1;
843 unsigned T2OUTPS2 : 1;
844 unsigned T2OUTPS3 : 1;
845 unsigned : 1;
848 struct
850 unsigned T2CKPS : 2;
851 unsigned : 6;
854 struct
856 unsigned : 3;
857 unsigned T2OUTPS : 4;
858 unsigned : 1;
860 } __T2CONbits_t;
862 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
864 #define _T2CKPS0 0x01
865 #define _T2CKPS1 0x02
866 #define _TMR2ON 0x04
867 #define _T2OUTPS0 0x08
868 #define _T2OUTPS1 0x10
869 #define _T2OUTPS2 0x20
870 #define _T2OUTPS3 0x40
872 //==============================================================================
875 //==============================================================================
876 // TRISA Bits
878 extern __at(0x008C) __sfr TRISA;
880 typedef struct
882 unsigned TRISA0 : 1;
883 unsigned TRISA1 : 1;
884 unsigned TRISA2 : 1;
885 unsigned TRISA3 : 1;
886 unsigned TRISA4 : 1;
887 unsigned TRISA5 : 1;
888 unsigned TRISA6 : 1;
889 unsigned TRISA7 : 1;
890 } __TRISAbits_t;
892 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
894 #define _TRISA0 0x01
895 #define _TRISA1 0x02
896 #define _TRISA2 0x04
897 #define _TRISA3 0x08
898 #define _TRISA4 0x10
899 #define _TRISA5 0x20
900 #define _TRISA6 0x40
901 #define _TRISA7 0x80
903 //==============================================================================
906 //==============================================================================
907 // TRISB Bits
909 extern __at(0x008D) __sfr TRISB;
911 typedef struct
913 unsigned TRISB0 : 1;
914 unsigned TRISB1 : 1;
915 unsigned TRISB2 : 1;
916 unsigned TRISB3 : 1;
917 unsigned TRISB4 : 1;
918 unsigned TRISB5 : 1;
919 unsigned TRISB6 : 1;
920 unsigned TRISB7 : 1;
921 } __TRISBbits_t;
923 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
925 #define _TRISB0 0x01
926 #define _TRISB1 0x02
927 #define _TRISB2 0x04
928 #define _TRISB3 0x08
929 #define _TRISB4 0x10
930 #define _TRISB5 0x20
931 #define _TRISB6 0x40
932 #define _TRISB7 0x80
934 //==============================================================================
937 //==============================================================================
938 // TRISC Bits
940 extern __at(0x008E) __sfr TRISC;
942 typedef struct
944 unsigned TRISC0 : 1;
945 unsigned TRISC1 : 1;
946 unsigned TRISC2 : 1;
947 unsigned TRISC3 : 1;
948 unsigned TRISC4 : 1;
949 unsigned TRISC5 : 1;
950 unsigned TRISC6 : 1;
951 unsigned TRISC7 : 1;
952 } __TRISCbits_t;
954 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
956 #define _TRISC0 0x01
957 #define _TRISC1 0x02
958 #define _TRISC2 0x04
959 #define _TRISC3 0x08
960 #define _TRISC4 0x10
961 #define _TRISC5 0x20
962 #define _TRISC6 0x40
963 #define _TRISC7 0x80
965 //==============================================================================
968 //==============================================================================
969 // TRISD Bits
971 extern __at(0x008F) __sfr TRISD;
973 typedef struct
975 unsigned TRISD0 : 1;
976 unsigned TRISD1 : 1;
977 unsigned TRISD2 : 1;
978 unsigned TRISD3 : 1;
979 unsigned TRISD4 : 1;
980 unsigned TRISD5 : 1;
981 unsigned TRISD6 : 1;
982 unsigned TRISD7 : 1;
983 } __TRISDbits_t;
985 extern __at(0x008F) volatile __TRISDbits_t TRISDbits;
987 #define _TRISD0 0x01
988 #define _TRISD1 0x02
989 #define _TRISD2 0x04
990 #define _TRISD3 0x08
991 #define _TRISD4 0x10
992 #define _TRISD5 0x20
993 #define _TRISD6 0x40
994 #define _TRISD7 0x80
996 //==============================================================================
999 //==============================================================================
1000 // TRISE Bits
1002 extern __at(0x0090) __sfr TRISE;
1004 typedef union
1006 struct
1008 unsigned TRISE0 : 1;
1009 unsigned TRISE1 : 1;
1010 unsigned TRISE2 : 1;
1011 unsigned TRISE3 : 1;
1012 unsigned : 1;
1013 unsigned : 1;
1014 unsigned : 1;
1015 unsigned : 1;
1018 struct
1020 unsigned TRISE : 4;
1021 unsigned : 4;
1023 } __TRISEbits_t;
1025 extern __at(0x0090) volatile __TRISEbits_t TRISEbits;
1027 #define _TRISE0 0x01
1028 #define _TRISE1 0x02
1029 #define _TRISE2 0x04
1030 #define _TRISE3 0x08
1032 //==============================================================================
1035 //==============================================================================
1036 // PIE1 Bits
1038 extern __at(0x0091) __sfr PIE1;
1040 typedef struct
1042 unsigned TMR1IE : 1;
1043 unsigned TMR2IE : 1;
1044 unsigned CCP1IE : 1;
1045 unsigned SSP1IE : 1;
1046 unsigned TXIE : 1;
1047 unsigned RCIE : 1;
1048 unsigned ADIE : 1;
1049 unsigned TMR1GIE : 1;
1050 } __PIE1bits_t;
1052 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
1054 #define _TMR1IE 0x01
1055 #define _TMR2IE 0x02
1056 #define _CCP1IE 0x04
1057 #define _SSP1IE 0x08
1058 #define _TXIE 0x10
1059 #define _RCIE 0x20
1060 #define _ADIE 0x40
1061 #define _TMR1GIE 0x80
1063 //==============================================================================
1066 //==============================================================================
1067 // PIE2 Bits
1069 extern __at(0x0092) __sfr PIE2;
1071 typedef struct
1073 unsigned CCP2IE : 1;
1074 unsigned C3IE : 1;
1075 unsigned C4IE : 1;
1076 unsigned BCL1IE : 1;
1077 unsigned EEIE : 1;
1078 unsigned C1IE : 1;
1079 unsigned C2IE : 1;
1080 unsigned OSFIE : 1;
1081 } __PIE2bits_t;
1083 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
1085 #define _CCP2IE 0x01
1086 #define _C3IE 0x02
1087 #define _C4IE 0x04
1088 #define _BCL1IE 0x08
1089 #define _EEIE 0x10
1090 #define _C1IE 0x20
1091 #define _C2IE 0x40
1092 #define _OSFIE 0x80
1094 //==============================================================================
1097 //==============================================================================
1098 // PIE3 Bits
1100 extern __at(0x0093) __sfr PIE3;
1102 typedef struct
1104 unsigned : 1;
1105 unsigned : 1;
1106 unsigned : 1;
1107 unsigned : 1;
1108 unsigned CCP3IE : 1;
1109 unsigned : 1;
1110 unsigned : 1;
1111 unsigned : 1;
1112 } __PIE3bits_t;
1114 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
1116 #define _CCP3IE 0x10
1118 //==============================================================================
1121 //==============================================================================
1122 // PIE4 Bits
1124 extern __at(0x0094) __sfr PIE4;
1126 typedef union
1128 struct
1130 unsigned PSMC1SIE : 1;
1131 unsigned PSMC2SIE : 1;
1132 unsigned PSMC3SIE : 1;
1133 unsigned : 1;
1134 unsigned PSMC1TIE : 1;
1135 unsigned PSMC2TIE : 1;
1136 unsigned PSMC3TIE : 1;
1137 unsigned : 1;
1140 struct
1142 unsigned : 1;
1143 unsigned : 1;
1144 unsigned : 1;
1145 unsigned : 1;
1146 unsigned : 1;
1147 unsigned : 1;
1148 unsigned PMSC3TIE : 1;
1149 unsigned : 1;
1151 } __PIE4bits_t;
1153 extern __at(0x0094) volatile __PIE4bits_t PIE4bits;
1155 #define _PSMC1SIE 0x01
1156 #define _PSMC2SIE 0x02
1157 #define _PSMC3SIE 0x04
1158 #define _PSMC1TIE 0x10
1159 #define _PSMC2TIE 0x20
1160 #define _PSMC3TIE 0x40
1161 #define _PMSC3TIE 0x40
1163 //==============================================================================
1166 //==============================================================================
1167 // OPTION_REG Bits
1169 extern __at(0x0095) __sfr OPTION_REG;
1171 typedef union
1173 struct
1175 unsigned PS0 : 1;
1176 unsigned PS1 : 1;
1177 unsigned PS2 : 1;
1178 unsigned PSA : 1;
1179 unsigned TMR0SE : 1;
1180 unsigned TMR0CS : 1;
1181 unsigned INTEDG : 1;
1182 unsigned NOT_WPUEN : 1;
1185 struct
1187 unsigned : 1;
1188 unsigned : 1;
1189 unsigned : 1;
1190 unsigned : 1;
1191 unsigned T0SE : 1;
1192 unsigned T0CS : 1;
1193 unsigned : 1;
1194 unsigned : 1;
1197 struct
1199 unsigned PS : 3;
1200 unsigned : 5;
1202 } __OPTION_REGbits_t;
1204 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1206 #define _PS0 0x01
1207 #define _PS1 0x02
1208 #define _PS2 0x04
1209 #define _PSA 0x08
1210 #define _TMR0SE 0x10
1211 #define _T0SE 0x10
1212 #define _TMR0CS 0x20
1213 #define _T0CS 0x20
1214 #define _INTEDG 0x40
1215 #define _NOT_WPUEN 0x80
1217 //==============================================================================
1220 //==============================================================================
1221 // PCON Bits
1223 extern __at(0x0096) __sfr PCON;
1225 typedef struct
1227 unsigned NOT_BOR : 1;
1228 unsigned NOT_POR : 1;
1229 unsigned NOT_RI : 1;
1230 unsigned NOT_RMCLR : 1;
1231 unsigned NOT_RWDT : 1;
1232 unsigned : 1;
1233 unsigned STKUNF : 1;
1234 unsigned STKOVF : 1;
1235 } __PCONbits_t;
1237 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1239 #define _NOT_BOR 0x01
1240 #define _NOT_POR 0x02
1241 #define _NOT_RI 0x04
1242 #define _NOT_RMCLR 0x08
1243 #define _NOT_RWDT 0x10
1244 #define _STKUNF 0x40
1245 #define _STKOVF 0x80
1247 //==============================================================================
1250 //==============================================================================
1251 // WDTCON Bits
1253 extern __at(0x0097) __sfr WDTCON;
1255 typedef union
1257 struct
1259 unsigned SWDTEN : 1;
1260 unsigned WDTPS0 : 1;
1261 unsigned WDTPS1 : 1;
1262 unsigned WDTPS2 : 1;
1263 unsigned WDTPS3 : 1;
1264 unsigned WDTPS4 : 1;
1265 unsigned : 1;
1266 unsigned : 1;
1269 struct
1271 unsigned : 1;
1272 unsigned WDTPS : 5;
1273 unsigned : 2;
1275 } __WDTCONbits_t;
1277 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
1279 #define _SWDTEN 0x01
1280 #define _WDTPS0 0x02
1281 #define _WDTPS1 0x04
1282 #define _WDTPS2 0x08
1283 #define _WDTPS3 0x10
1284 #define _WDTPS4 0x20
1286 //==============================================================================
1289 //==============================================================================
1290 // OSCTUNE Bits
1292 extern __at(0x0098) __sfr OSCTUNE;
1294 typedef union
1296 struct
1298 unsigned TUN0 : 1;
1299 unsigned TUN1 : 1;
1300 unsigned TUN2 : 1;
1301 unsigned TUN3 : 1;
1302 unsigned TUN4 : 1;
1303 unsigned TUN5 : 1;
1304 unsigned : 1;
1305 unsigned : 1;
1308 struct
1310 unsigned TUN : 6;
1311 unsigned : 2;
1313 } __OSCTUNEbits_t;
1315 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1317 #define _TUN0 0x01
1318 #define _TUN1 0x02
1319 #define _TUN2 0x04
1320 #define _TUN3 0x08
1321 #define _TUN4 0x10
1322 #define _TUN5 0x20
1324 //==============================================================================
1327 //==============================================================================
1328 // OSCCON Bits
1330 extern __at(0x0099) __sfr OSCCON;
1332 typedef union
1334 struct
1336 unsigned SCS0 : 1;
1337 unsigned SCS1 : 1;
1338 unsigned : 1;
1339 unsigned IRCF0 : 1;
1340 unsigned IRCF1 : 1;
1341 unsigned IRCF2 : 1;
1342 unsigned IRCF3 : 1;
1343 unsigned SPLLEN : 1;
1346 struct
1348 unsigned SCS : 2;
1349 unsigned : 6;
1352 struct
1354 unsigned : 3;
1355 unsigned IRCF : 4;
1356 unsigned : 1;
1358 } __OSCCONbits_t;
1360 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1362 #define _SCS0 0x01
1363 #define _SCS1 0x02
1364 #define _IRCF0 0x08
1365 #define _IRCF1 0x10
1366 #define _IRCF2 0x20
1367 #define _IRCF3 0x40
1368 #define _SPLLEN 0x80
1370 //==============================================================================
1373 //==============================================================================
1374 // OSCSTAT Bits
1376 extern __at(0x009A) __sfr OSCSTAT;
1378 typedef struct
1380 unsigned HFIOFS : 1;
1381 unsigned LFIOFR : 1;
1382 unsigned MFIOFR : 1;
1383 unsigned HFIOFL : 1;
1384 unsigned HFIOFR : 1;
1385 unsigned OSTS : 1;
1386 unsigned PLLR : 1;
1387 unsigned T1OSCR : 1;
1388 } __OSCSTATbits_t;
1390 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1392 #define _HFIOFS 0x01
1393 #define _LFIOFR 0x02
1394 #define _MFIOFR 0x04
1395 #define _HFIOFL 0x08
1396 #define _HFIOFR 0x10
1397 #define _OSTS 0x20
1398 #define _PLLR 0x40
1399 #define _T1OSCR 0x80
1401 //==============================================================================
1403 extern __at(0x009B) __sfr ADRES;
1404 extern __at(0x009B) __sfr ADRESL;
1405 extern __at(0x009C) __sfr ADRESH;
1407 //==============================================================================
1408 // ADCON0 Bits
1410 extern __at(0x009D) __sfr ADCON0;
1412 typedef union
1414 struct
1416 unsigned ADON : 1;
1417 unsigned GO_NOT_DONE : 1;
1418 unsigned CHS0 : 1;
1419 unsigned CHS1 : 1;
1420 unsigned CHS2 : 1;
1421 unsigned CHS3 : 1;
1422 unsigned CHS4 : 1;
1423 unsigned ADRMD : 1;
1426 struct
1428 unsigned : 1;
1429 unsigned ADGO : 1;
1430 unsigned : 1;
1431 unsigned : 1;
1432 unsigned : 1;
1433 unsigned : 1;
1434 unsigned : 1;
1435 unsigned : 1;
1438 struct
1440 unsigned : 1;
1441 unsigned GO : 1;
1442 unsigned : 1;
1443 unsigned : 1;
1444 unsigned : 1;
1445 unsigned : 1;
1446 unsigned : 1;
1447 unsigned : 1;
1450 struct
1452 unsigned : 1;
1453 unsigned DONE : 1;
1454 unsigned : 1;
1455 unsigned : 1;
1456 unsigned : 1;
1457 unsigned : 1;
1458 unsigned : 1;
1459 unsigned : 1;
1462 struct
1464 unsigned : 2;
1465 unsigned CHS : 5;
1466 unsigned : 1;
1468 } __ADCON0bits_t;
1470 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1472 #define _ADON 0x01
1473 #define _GO_NOT_DONE 0x02
1474 #define _ADGO 0x02
1475 #define _GO 0x02
1476 #define _DONE 0x02
1477 #define _CHS0 0x04
1478 #define _CHS1 0x08
1479 #define _CHS2 0x10
1480 #define _CHS3 0x20
1481 #define _CHS4 0x40
1482 #define _ADRMD 0x80
1484 //==============================================================================
1487 //==============================================================================
1488 // ADCON1 Bits
1490 extern __at(0x009E) __sfr ADCON1;
1492 typedef union
1494 struct
1496 unsigned ADPREF0 : 1;
1497 unsigned ADPREF1 : 1;
1498 unsigned ADNREF : 1;
1499 unsigned : 1;
1500 unsigned ADCS0 : 1;
1501 unsigned ADCS1 : 1;
1502 unsigned ADCS2 : 1;
1503 unsigned ADFM : 1;
1506 struct
1508 unsigned ADPREF : 2;
1509 unsigned : 6;
1512 struct
1514 unsigned : 4;
1515 unsigned ADCS : 3;
1516 unsigned : 1;
1518 } __ADCON1bits_t;
1520 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1522 #define _ADPREF0 0x01
1523 #define _ADPREF1 0x02
1524 #define _ADNREF 0x04
1525 #define _ADCS0 0x10
1526 #define _ADCS1 0x20
1527 #define _ADCS2 0x40
1528 #define _ADFM 0x80
1530 //==============================================================================
1533 //==============================================================================
1534 // ADCON2 Bits
1536 extern __at(0x009F) __sfr ADCON2;
1538 typedef union
1540 struct
1542 unsigned CHSN0 : 1;
1543 unsigned CHSN1 : 1;
1544 unsigned CHSN2 : 1;
1545 unsigned CHSN3 : 1;
1546 unsigned TRIGSEL0 : 1;
1547 unsigned TRIGSEL1 : 1;
1548 unsigned TRIGSEL2 : 1;
1549 unsigned TRIGSEL3 : 1;
1552 struct
1554 unsigned CHSN : 4;
1555 unsigned : 4;
1558 struct
1560 unsigned : 4;
1561 unsigned TRIGSEL : 4;
1563 } __ADCON2bits_t;
1565 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1567 #define _CHSN0 0x01
1568 #define _CHSN1 0x02
1569 #define _CHSN2 0x04
1570 #define _CHSN3 0x08
1571 #define _TRIGSEL0 0x10
1572 #define _TRIGSEL1 0x20
1573 #define _TRIGSEL2 0x40
1574 #define _TRIGSEL3 0x80
1576 //==============================================================================
1579 //==============================================================================
1580 // LATA Bits
1582 extern __at(0x010C) __sfr LATA;
1584 typedef struct
1586 unsigned LATA0 : 1;
1587 unsigned LATA1 : 1;
1588 unsigned LATA2 : 1;
1589 unsigned LATA3 : 1;
1590 unsigned LATA4 : 1;
1591 unsigned LATA5 : 1;
1592 unsigned LATA6 : 1;
1593 unsigned LATA7 : 1;
1594 } __LATAbits_t;
1596 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1598 #define _LATA0 0x01
1599 #define _LATA1 0x02
1600 #define _LATA2 0x04
1601 #define _LATA3 0x08
1602 #define _LATA4 0x10
1603 #define _LATA5 0x20
1604 #define _LATA6 0x40
1605 #define _LATA7 0x80
1607 //==============================================================================
1610 //==============================================================================
1611 // LATB Bits
1613 extern __at(0x010D) __sfr LATB;
1615 typedef struct
1617 unsigned LATB0 : 1;
1618 unsigned LATB1 : 1;
1619 unsigned LATB2 : 1;
1620 unsigned LATB3 : 1;
1621 unsigned LATB4 : 1;
1622 unsigned LATB5 : 1;
1623 unsigned LATB6 : 1;
1624 unsigned LATB7 : 1;
1625 } __LATBbits_t;
1627 extern __at(0x010D) volatile __LATBbits_t LATBbits;
1629 #define _LATB0 0x01
1630 #define _LATB1 0x02
1631 #define _LATB2 0x04
1632 #define _LATB3 0x08
1633 #define _LATB4 0x10
1634 #define _LATB5 0x20
1635 #define _LATB6 0x40
1636 #define _LATB7 0x80
1638 //==============================================================================
1641 //==============================================================================
1642 // LATC Bits
1644 extern __at(0x010E) __sfr LATC;
1646 typedef struct
1648 unsigned LATC0 : 1;
1649 unsigned LATC1 : 1;
1650 unsigned LATC2 : 1;
1651 unsigned LATC3 : 1;
1652 unsigned LATC4 : 1;
1653 unsigned LATC5 : 1;
1654 unsigned LATC6 : 1;
1655 unsigned LATC7 : 1;
1656 } __LATCbits_t;
1658 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1660 #define _LATC0 0x01
1661 #define _LATC1 0x02
1662 #define _LATC2 0x04
1663 #define _LATC3 0x08
1664 #define _LATC4 0x10
1665 #define _LATC5 0x20
1666 #define _LATC6 0x40
1667 #define _LATC7 0x80
1669 //==============================================================================
1672 //==============================================================================
1673 // LATD Bits
1675 extern __at(0x010F) __sfr LATD;
1677 typedef struct
1679 unsigned LATD0 : 1;
1680 unsigned LATD1 : 1;
1681 unsigned LATD2 : 1;
1682 unsigned LATD3 : 1;
1683 unsigned LATD4 : 1;
1684 unsigned LATD5 : 1;
1685 unsigned LATD6 : 1;
1686 unsigned LATD7 : 1;
1687 } __LATDbits_t;
1689 extern __at(0x010F) volatile __LATDbits_t LATDbits;
1691 #define _LATD0 0x01
1692 #define _LATD1 0x02
1693 #define _LATD2 0x04
1694 #define _LATD3 0x08
1695 #define _LATD4 0x10
1696 #define _LATD5 0x20
1697 #define _LATD6 0x40
1698 #define _LATD7 0x80
1700 //==============================================================================
1703 //==============================================================================
1704 // LATE Bits
1706 extern __at(0x0110) __sfr LATE;
1708 typedef union
1710 struct
1712 unsigned LATE0 : 1;
1713 unsigned LATE1 : 1;
1714 unsigned LATE2 : 1;
1715 unsigned : 1;
1716 unsigned : 1;
1717 unsigned : 1;
1718 unsigned : 1;
1719 unsigned : 1;
1722 struct
1724 unsigned LATE : 3;
1725 unsigned : 5;
1727 } __LATEbits_t;
1729 extern __at(0x0110) volatile __LATEbits_t LATEbits;
1731 #define _LATE0 0x01
1732 #define _LATE1 0x02
1733 #define _LATE2 0x04
1735 //==============================================================================
1738 //==============================================================================
1739 // CM1CON0 Bits
1741 extern __at(0x0111) __sfr CM1CON0;
1743 typedef struct
1745 unsigned C1SYNC : 1;
1746 unsigned C1HYS : 1;
1747 unsigned C1SP : 1;
1748 unsigned C1ZLF : 1;
1749 unsigned C1POL : 1;
1750 unsigned C1OE : 1;
1751 unsigned C1OUT : 1;
1752 unsigned C1ON : 1;
1753 } __CM1CON0bits_t;
1755 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1757 #define _C1SYNC 0x01
1758 #define _C1HYS 0x02
1759 #define _C1SP 0x04
1760 #define _C1ZLF 0x08
1761 #define _C1POL 0x10
1762 #define _C1OE 0x20
1763 #define _C1OUT 0x40
1764 #define _C1ON 0x80
1766 //==============================================================================
1769 //==============================================================================
1770 // CM1CON1 Bits
1772 extern __at(0x0112) __sfr CM1CON1;
1774 typedef union
1776 struct
1778 unsigned C1NCH0 : 1;
1779 unsigned C1NCH1 : 1;
1780 unsigned C1NCH2 : 1;
1781 unsigned C1PCH0 : 1;
1782 unsigned C1PCH1 : 1;
1783 unsigned C1PCH2 : 1;
1784 unsigned C1INTN : 1;
1785 unsigned C1INTP : 1;
1788 struct
1790 unsigned C1NCH : 3;
1791 unsigned : 5;
1794 struct
1796 unsigned : 3;
1797 unsigned C1PCH : 3;
1798 unsigned : 2;
1800 } __CM1CON1bits_t;
1802 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1804 #define _C1NCH0 0x01
1805 #define _C1NCH1 0x02
1806 #define _C1NCH2 0x04
1807 #define _C1PCH0 0x08
1808 #define _C1PCH1 0x10
1809 #define _C1PCH2 0x20
1810 #define _C1INTN 0x40
1811 #define _C1INTP 0x80
1813 //==============================================================================
1816 //==============================================================================
1817 // CM2CON0 Bits
1819 extern __at(0x0113) __sfr CM2CON0;
1821 typedef struct
1823 unsigned C2SYNC : 1;
1824 unsigned C2HYS : 1;
1825 unsigned C2SP : 1;
1826 unsigned C2ZLF : 1;
1827 unsigned C2POL : 1;
1828 unsigned C2OE : 1;
1829 unsigned C2OUT : 1;
1830 unsigned C2ON : 1;
1831 } __CM2CON0bits_t;
1833 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
1835 #define _C2SYNC 0x01
1836 #define _C2HYS 0x02
1837 #define _C2SP 0x04
1838 #define _C2ZLF 0x08
1839 #define _C2POL 0x10
1840 #define _C2OE 0x20
1841 #define _C2OUT 0x40
1842 #define _C2ON 0x80
1844 //==============================================================================
1847 //==============================================================================
1848 // CM2CON1 Bits
1850 extern __at(0x0114) __sfr CM2CON1;
1852 typedef union
1854 struct
1856 unsigned C2NCH0 : 1;
1857 unsigned C2NCH1 : 1;
1858 unsigned C2NCH2 : 1;
1859 unsigned C2PCH0 : 1;
1860 unsigned C2PCH1 : 1;
1861 unsigned C2PCH2 : 1;
1862 unsigned C2INTN : 1;
1863 unsigned C2INTP : 1;
1866 struct
1868 unsigned C2NCH : 3;
1869 unsigned : 5;
1872 struct
1874 unsigned : 3;
1875 unsigned C2PCH : 3;
1876 unsigned : 2;
1878 } __CM2CON1bits_t;
1880 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
1882 #define _C2NCH0 0x01
1883 #define _C2NCH1 0x02
1884 #define _C2NCH2 0x04
1885 #define _C2PCH0 0x08
1886 #define _C2PCH1 0x10
1887 #define _C2PCH2 0x20
1888 #define _C2INTN 0x40
1889 #define _C2INTP 0x80
1891 //==============================================================================
1894 //==============================================================================
1895 // CMOUT Bits
1897 extern __at(0x0115) __sfr CMOUT;
1899 typedef struct
1901 unsigned MC1OUT : 1;
1902 unsigned MC2OUT : 1;
1903 unsigned MC3OUT : 1;
1904 unsigned MC4OUT : 1;
1905 unsigned : 1;
1906 unsigned : 1;
1907 unsigned : 1;
1908 unsigned : 1;
1909 } __CMOUTbits_t;
1911 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
1913 #define _MC1OUT 0x01
1914 #define _MC2OUT 0x02
1915 #define _MC3OUT 0x04
1916 #define _MC4OUT 0x08
1918 //==============================================================================
1921 //==============================================================================
1922 // BORCON Bits
1924 extern __at(0x0116) __sfr BORCON;
1926 typedef struct
1928 unsigned BORRDY : 1;
1929 unsigned : 1;
1930 unsigned : 1;
1931 unsigned : 1;
1932 unsigned : 1;
1933 unsigned : 1;
1934 unsigned BORFS : 1;
1935 unsigned SBOREN : 1;
1936 } __BORCONbits_t;
1938 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
1940 #define _BORRDY 0x01
1941 #define _BORFS 0x40
1942 #define _SBOREN 0x80
1944 //==============================================================================
1947 //==============================================================================
1948 // FVRCON Bits
1950 extern __at(0x0117) __sfr FVRCON;
1952 typedef union
1954 struct
1956 unsigned ADFVR0 : 1;
1957 unsigned ADFVR1 : 1;
1958 unsigned CDAFVR0 : 1;
1959 unsigned CDAFVR1 : 1;
1960 unsigned TSRNG : 1;
1961 unsigned TSEN : 1;
1962 unsigned FVRRDY : 1;
1963 unsigned FVREN : 1;
1966 struct
1968 unsigned ADFVR : 2;
1969 unsigned : 6;
1972 struct
1974 unsigned : 2;
1975 unsigned CDAFVR : 2;
1976 unsigned : 4;
1978 } __FVRCONbits_t;
1980 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
1982 #define _ADFVR0 0x01
1983 #define _ADFVR1 0x02
1984 #define _CDAFVR0 0x04
1985 #define _CDAFVR1 0x08
1986 #define _TSRNG 0x10
1987 #define _TSEN 0x20
1988 #define _FVRRDY 0x40
1989 #define _FVREN 0x80
1991 //==============================================================================
1994 //==============================================================================
1995 // DACCON0 Bits
1997 extern __at(0x0118) __sfr DACCON0;
1999 typedef union
2001 struct
2003 unsigned DACNSS : 1;
2004 unsigned : 1;
2005 unsigned DACPSS0 : 1;
2006 unsigned DACPSS1 : 1;
2007 unsigned DACOE2 : 1;
2008 unsigned DACOE1 : 1;
2009 unsigned : 1;
2010 unsigned DACEN : 1;
2013 struct
2015 unsigned : 2;
2016 unsigned DACPSS : 2;
2017 unsigned : 4;
2019 } __DACCON0bits_t;
2021 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits;
2023 #define _DACNSS 0x01
2024 #define _DACPSS0 0x04
2025 #define _DACPSS1 0x08
2026 #define _DACOE2 0x10
2027 #define _DACOE1 0x20
2028 #define _DACEN 0x80
2030 //==============================================================================
2033 //==============================================================================
2034 // DACCON1 Bits
2036 extern __at(0x0119) __sfr DACCON1;
2038 typedef struct
2040 unsigned DACR0 : 1;
2041 unsigned DACR1 : 1;
2042 unsigned DACR2 : 1;
2043 unsigned DACR3 : 1;
2044 unsigned DACR4 : 1;
2045 unsigned DACR5 : 1;
2046 unsigned DACR6 : 1;
2047 unsigned DACR7 : 1;
2048 } __DACCON1bits_t;
2050 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits;
2052 #define _DACR0 0x01
2053 #define _DACR1 0x02
2054 #define _DACR2 0x04
2055 #define _DACR3 0x08
2056 #define _DACR4 0x10
2057 #define _DACR5 0x20
2058 #define _DACR6 0x40
2059 #define _DACR7 0x80
2061 //==============================================================================
2064 //==============================================================================
2065 // CM4CON0 Bits
2067 extern __at(0x011A) __sfr CM4CON0;
2069 typedef struct
2071 unsigned C4SYNC : 1;
2072 unsigned C4HYS : 1;
2073 unsigned C4SP : 1;
2074 unsigned C4ZLF : 1;
2075 unsigned C4POL : 1;
2076 unsigned C4OE : 1;
2077 unsigned C4OUT : 1;
2078 unsigned C4ON : 1;
2079 } __CM4CON0bits_t;
2081 extern __at(0x011A) volatile __CM4CON0bits_t CM4CON0bits;
2083 #define _C4SYNC 0x01
2084 #define _C4HYS 0x02
2085 #define _C4SP 0x04
2086 #define _C4ZLF 0x08
2087 #define _C4POL 0x10
2088 #define _C4OE 0x20
2089 #define _C4OUT 0x40
2090 #define _C4ON 0x80
2092 //==============================================================================
2095 //==============================================================================
2096 // CM4CON1 Bits
2098 extern __at(0x011B) __sfr CM4CON1;
2100 typedef union
2102 struct
2104 unsigned C4NCH0 : 1;
2105 unsigned C4NCH1 : 1;
2106 unsigned C4NCH2 : 1;
2107 unsigned C4PCH0 : 1;
2108 unsigned C4PCH1 : 1;
2109 unsigned C4PCH2 : 1;
2110 unsigned C4INTN : 1;
2111 unsigned C4INTP : 1;
2114 struct
2116 unsigned C4NCH : 3;
2117 unsigned : 5;
2120 struct
2122 unsigned : 3;
2123 unsigned C4PCH : 3;
2124 unsigned : 2;
2126 } __CM4CON1bits_t;
2128 extern __at(0x011B) volatile __CM4CON1bits_t CM4CON1bits;
2130 #define _C4NCH0 0x01
2131 #define _C4NCH1 0x02
2132 #define _C4NCH2 0x04
2133 #define _C4PCH0 0x08
2134 #define _C4PCH1 0x10
2135 #define _C4PCH2 0x20
2136 #define _C4INTN 0x40
2137 #define _C4INTP 0x80
2139 //==============================================================================
2142 //==============================================================================
2143 // APFCON2 Bits
2145 extern __at(0x011C) __sfr APFCON2;
2147 typedef struct
2149 unsigned CCP3SEL : 1;
2150 unsigned : 1;
2151 unsigned : 1;
2152 unsigned : 1;
2153 unsigned : 1;
2154 unsigned : 1;
2155 unsigned : 1;
2156 unsigned : 1;
2157 } __APFCON2bits_t;
2159 extern __at(0x011C) volatile __APFCON2bits_t APFCON2bits;
2161 #define _CCP3SEL 0x01
2163 //==============================================================================
2166 //==============================================================================
2167 // APFCON Bits
2169 extern __at(0x011D) __sfr APFCON;
2171 typedef struct
2173 unsigned CCP2SEL : 1;
2174 unsigned RXSEL : 1;
2175 unsigned TXSEL : 1;
2176 unsigned SDISEL : 1;
2177 unsigned SCKSEL : 1;
2178 unsigned SDOSEL : 1;
2179 unsigned CCP1SEL : 1;
2180 unsigned C2OUTSEL : 1;
2181 } __APFCONbits_t;
2183 extern __at(0x011D) volatile __APFCONbits_t APFCONbits;
2185 #define _CCP2SEL 0x01
2186 #define _RXSEL 0x02
2187 #define _TXSEL 0x04
2188 #define _SDISEL 0x08
2189 #define _SCKSEL 0x10
2190 #define _SDOSEL 0x20
2191 #define _CCP1SEL 0x40
2192 #define _C2OUTSEL 0x80
2194 //==============================================================================
2197 //==============================================================================
2198 // APFCON0 Bits
2200 extern __at(0x011D) __sfr APFCON0;
2202 typedef struct
2204 unsigned CCP2SEL : 1;
2205 unsigned RXSEL : 1;
2206 unsigned TXSEL : 1;
2207 unsigned SDISEL : 1;
2208 unsigned SCKSEL : 1;
2209 unsigned SDOSEL : 1;
2210 unsigned CCP1SEL : 1;
2211 unsigned C2OUTSEL : 1;
2212 } __APFCON0bits_t;
2214 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits;
2216 #define _APFCON0_CCP2SEL 0x01
2217 #define _APFCON0_RXSEL 0x02
2218 #define _APFCON0_TXSEL 0x04
2219 #define _APFCON0_SDISEL 0x08
2220 #define _APFCON0_SCKSEL 0x10
2221 #define _APFCON0_SDOSEL 0x20
2222 #define _APFCON0_CCP1SEL 0x40
2223 #define _APFCON0_C2OUTSEL 0x80
2225 //==============================================================================
2228 //==============================================================================
2229 // APFCON1 Bits
2231 extern __at(0x011D) __sfr APFCON1;
2233 typedef struct
2235 unsigned CCP2SEL : 1;
2236 unsigned RXSEL : 1;
2237 unsigned TXSEL : 1;
2238 unsigned SDISEL : 1;
2239 unsigned SCKSEL : 1;
2240 unsigned SDOSEL : 1;
2241 unsigned CCP1SEL : 1;
2242 unsigned C2OUTSEL : 1;
2243 } __APFCON1bits_t;
2245 extern __at(0x011D) volatile __APFCON1bits_t APFCON1bits;
2247 #define _APFCON1_CCP2SEL 0x01
2248 #define _APFCON1_RXSEL 0x02
2249 #define _APFCON1_TXSEL 0x04
2250 #define _APFCON1_SDISEL 0x08
2251 #define _APFCON1_SCKSEL 0x10
2252 #define _APFCON1_SDOSEL 0x20
2253 #define _APFCON1_CCP1SEL 0x40
2254 #define _APFCON1_C2OUTSEL 0x80
2256 //==============================================================================
2259 //==============================================================================
2260 // CM3CON0 Bits
2262 extern __at(0x011E) __sfr CM3CON0;
2264 typedef struct
2266 unsigned C3SYNC : 1;
2267 unsigned C3HYS : 1;
2268 unsigned C3SP : 1;
2269 unsigned C3ZLF : 1;
2270 unsigned C3POL : 1;
2271 unsigned C3OE : 1;
2272 unsigned C3OUT : 1;
2273 unsigned C3ON : 1;
2274 } __CM3CON0bits_t;
2276 extern __at(0x011E) volatile __CM3CON0bits_t CM3CON0bits;
2278 #define _C3SYNC 0x01
2279 #define _C3HYS 0x02
2280 #define _C3SP 0x04
2281 #define _C3ZLF 0x08
2282 #define _C3POL 0x10
2283 #define _C3OE 0x20
2284 #define _C3OUT 0x40
2285 #define _C3ON 0x80
2287 //==============================================================================
2290 //==============================================================================
2291 // CM3CON1 Bits
2293 extern __at(0x011F) __sfr CM3CON1;
2295 typedef union
2297 struct
2299 unsigned C3NCH0 : 1;
2300 unsigned C3NCH1 : 1;
2301 unsigned C3NCH2 : 1;
2302 unsigned C3PCH0 : 1;
2303 unsigned C3PCH1 : 1;
2304 unsigned C3PCH2 : 1;
2305 unsigned C3INTN : 1;
2306 unsigned C3INTP : 1;
2309 struct
2311 unsigned C3NCH : 3;
2312 unsigned : 5;
2315 struct
2317 unsigned : 3;
2318 unsigned C3PCH : 3;
2319 unsigned : 2;
2321 } __CM3CON1bits_t;
2323 extern __at(0x011F) volatile __CM3CON1bits_t CM3CON1bits;
2325 #define _C3NCH0 0x01
2326 #define _C3NCH1 0x02
2327 #define _C3NCH2 0x04
2328 #define _C3PCH0 0x08
2329 #define _C3PCH1 0x10
2330 #define _C3PCH2 0x20
2331 #define _C3INTN 0x40
2332 #define _C3INTP 0x80
2334 //==============================================================================
2337 //==============================================================================
2338 // ANSELA Bits
2340 extern __at(0x018C) __sfr ANSELA;
2342 typedef struct
2344 unsigned ANSA0 : 1;
2345 unsigned ANSA1 : 1;
2346 unsigned ANSA2 : 1;
2347 unsigned ANSA3 : 1;
2348 unsigned ANSA4 : 1;
2349 unsigned ANSA5 : 1;
2350 unsigned : 1;
2351 unsigned ANSA7 : 1;
2352 } __ANSELAbits_t;
2354 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2356 #define _ANSA0 0x01
2357 #define _ANSA1 0x02
2358 #define _ANSA2 0x04
2359 #define _ANSA3 0x08
2360 #define _ANSA4 0x10
2361 #define _ANSA5 0x20
2362 #define _ANSA7 0x80
2364 //==============================================================================
2367 //==============================================================================
2368 // ANSELB Bits
2370 extern __at(0x018D) __sfr ANSELB;
2372 typedef union
2374 struct
2376 unsigned ANSB0 : 1;
2377 unsigned ANSB1 : 1;
2378 unsigned ANSB2 : 1;
2379 unsigned ANSB3 : 1;
2380 unsigned ANSB4 : 1;
2381 unsigned ANSB5 : 1;
2382 unsigned ANSB6 : 1;
2383 unsigned : 1;
2386 struct
2388 unsigned ANSB : 7;
2389 unsigned : 1;
2391 } __ANSELBbits_t;
2393 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2395 #define _ANSB0 0x01
2396 #define _ANSB1 0x02
2397 #define _ANSB2 0x04
2398 #define _ANSB3 0x08
2399 #define _ANSB4 0x10
2400 #define _ANSB5 0x20
2401 #define _ANSB6 0x40
2403 //==============================================================================
2406 //==============================================================================
2407 // ANSELD Bits
2409 extern __at(0x018F) __sfr ANSELD;
2411 typedef union
2413 struct
2415 unsigned ANSD0 : 1;
2416 unsigned ANSD1 : 1;
2417 unsigned ANSD2 : 1;
2418 unsigned : 1;
2419 unsigned : 1;
2420 unsigned : 1;
2421 unsigned : 1;
2422 unsigned : 1;
2425 struct
2427 unsigned ANSD : 3;
2428 unsigned : 5;
2430 } __ANSELDbits_t;
2432 extern __at(0x018F) volatile __ANSELDbits_t ANSELDbits;
2434 #define _ANSD0 0x01
2435 #define _ANSD1 0x02
2436 #define _ANSD2 0x04
2438 //==============================================================================
2441 //==============================================================================
2442 // ANSELE Bits
2444 extern __at(0x0190) __sfr ANSELE;
2446 typedef union
2448 struct
2450 unsigned ANSE0 : 1;
2451 unsigned ANSE1 : 1;
2452 unsigned ANSE2 : 1;
2453 unsigned : 1;
2454 unsigned : 1;
2455 unsigned : 1;
2456 unsigned : 1;
2457 unsigned : 1;
2460 struct
2462 unsigned ANSE : 3;
2463 unsigned : 5;
2465 } __ANSELEbits_t;
2467 extern __at(0x0190) volatile __ANSELEbits_t ANSELEbits;
2469 #define _ANSE0 0x01
2470 #define _ANSE1 0x02
2471 #define _ANSE2 0x04
2473 //==============================================================================
2475 extern __at(0x0191) __sfr EEADR;
2476 extern __at(0x0191) __sfr EEADRL;
2477 extern __at(0x0192) __sfr EEADRH;
2478 extern __at(0x0193) __sfr EEDAT;
2479 extern __at(0x0193) __sfr EEDATL;
2480 extern __at(0x0194) __sfr EEDATH;
2482 //==============================================================================
2483 // EECON1 Bits
2485 extern __at(0x0195) __sfr EECON1;
2487 typedef struct
2489 unsigned RD : 1;
2490 unsigned WR : 1;
2491 unsigned WREN : 1;
2492 unsigned WRERR : 1;
2493 unsigned FREE : 1;
2494 unsigned LWLO : 1;
2495 unsigned CFGS : 1;
2496 unsigned EEPGD : 1;
2497 } __EECON1bits_t;
2499 extern __at(0x0195) volatile __EECON1bits_t EECON1bits;
2501 #define _RD 0x01
2502 #define _WR 0x02
2503 #define _WREN 0x04
2504 #define _WRERR 0x08
2505 #define _FREE 0x10
2506 #define _LWLO 0x20
2507 #define _CFGS 0x40
2508 #define _EEPGD 0x80
2510 //==============================================================================
2512 extern __at(0x0196) __sfr EECON2;
2513 extern __at(0x0199) __sfr RC1REG;
2514 extern __at(0x0199) __sfr RCREG;
2515 extern __at(0x0199) __sfr RCREG1;
2516 extern __at(0x019A) __sfr TX1REG;
2517 extern __at(0x019A) __sfr TXREG;
2518 extern __at(0x019A) __sfr TXREG1;
2519 extern __at(0x019B) __sfr SP1BRG;
2520 extern __at(0x019B) __sfr SP1BRGL;
2521 extern __at(0x019B) __sfr SPBRG;
2522 extern __at(0x019B) __sfr SPBRG1;
2523 extern __at(0x019B) __sfr SPBRGL;
2524 extern __at(0x019C) __sfr SP1BRGH;
2525 extern __at(0x019C) __sfr SPBRGH;
2526 extern __at(0x019C) __sfr SPBRGH1;
2528 //==============================================================================
2529 // RC1STA Bits
2531 extern __at(0x019D) __sfr RC1STA;
2533 typedef struct
2535 unsigned RX9D : 1;
2536 unsigned OERR : 1;
2537 unsigned FERR : 1;
2538 unsigned ADDEN : 1;
2539 unsigned CREN : 1;
2540 unsigned SREN : 1;
2541 unsigned RX9 : 1;
2542 unsigned SPEN : 1;
2543 } __RC1STAbits_t;
2545 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2547 #define _RX9D 0x01
2548 #define _OERR 0x02
2549 #define _FERR 0x04
2550 #define _ADDEN 0x08
2551 #define _CREN 0x10
2552 #define _SREN 0x20
2553 #define _RX9 0x40
2554 #define _SPEN 0x80
2556 //==============================================================================
2559 //==============================================================================
2560 // RCSTA Bits
2562 extern __at(0x019D) __sfr RCSTA;
2564 typedef struct
2566 unsigned RX9D : 1;
2567 unsigned OERR : 1;
2568 unsigned FERR : 1;
2569 unsigned ADDEN : 1;
2570 unsigned CREN : 1;
2571 unsigned SREN : 1;
2572 unsigned RX9 : 1;
2573 unsigned SPEN : 1;
2574 } __RCSTAbits_t;
2576 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2578 #define _RCSTA_RX9D 0x01
2579 #define _RCSTA_OERR 0x02
2580 #define _RCSTA_FERR 0x04
2581 #define _RCSTA_ADDEN 0x08
2582 #define _RCSTA_CREN 0x10
2583 #define _RCSTA_SREN 0x20
2584 #define _RCSTA_RX9 0x40
2585 #define _RCSTA_SPEN 0x80
2587 //==============================================================================
2590 //==============================================================================
2591 // RCSTA1 Bits
2593 extern __at(0x019D) __sfr RCSTA1;
2595 typedef struct
2597 unsigned RX9D : 1;
2598 unsigned OERR : 1;
2599 unsigned FERR : 1;
2600 unsigned ADDEN : 1;
2601 unsigned CREN : 1;
2602 unsigned SREN : 1;
2603 unsigned RX9 : 1;
2604 unsigned SPEN : 1;
2605 } __RCSTA1bits_t;
2607 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2609 #define _RCSTA1_RX9D 0x01
2610 #define _RCSTA1_OERR 0x02
2611 #define _RCSTA1_FERR 0x04
2612 #define _RCSTA1_ADDEN 0x08
2613 #define _RCSTA1_CREN 0x10
2614 #define _RCSTA1_SREN 0x20
2615 #define _RCSTA1_RX9 0x40
2616 #define _RCSTA1_SPEN 0x80
2618 //==============================================================================
2621 //==============================================================================
2622 // TX1STA Bits
2624 extern __at(0x019E) __sfr TX1STA;
2626 typedef struct
2628 unsigned TX9D : 1;
2629 unsigned TRMT : 1;
2630 unsigned BRGH : 1;
2631 unsigned SENDB : 1;
2632 unsigned SYNC : 1;
2633 unsigned TXEN : 1;
2634 unsigned TX9 : 1;
2635 unsigned CSRC : 1;
2636 } __TX1STAbits_t;
2638 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
2640 #define _TX9D 0x01
2641 #define _TRMT 0x02
2642 #define _BRGH 0x04
2643 #define _SENDB 0x08
2644 #define _SYNC 0x10
2645 #define _TXEN 0x20
2646 #define _TX9 0x40
2647 #define _CSRC 0x80
2649 //==============================================================================
2652 //==============================================================================
2653 // TXSTA Bits
2655 extern __at(0x019E) __sfr TXSTA;
2657 typedef struct
2659 unsigned TX9D : 1;
2660 unsigned TRMT : 1;
2661 unsigned BRGH : 1;
2662 unsigned SENDB : 1;
2663 unsigned SYNC : 1;
2664 unsigned TXEN : 1;
2665 unsigned TX9 : 1;
2666 unsigned CSRC : 1;
2667 } __TXSTAbits_t;
2669 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
2671 #define _TXSTA_TX9D 0x01
2672 #define _TXSTA_TRMT 0x02
2673 #define _TXSTA_BRGH 0x04
2674 #define _TXSTA_SENDB 0x08
2675 #define _TXSTA_SYNC 0x10
2676 #define _TXSTA_TXEN 0x20
2677 #define _TXSTA_TX9 0x40
2678 #define _TXSTA_CSRC 0x80
2680 //==============================================================================
2683 //==============================================================================
2684 // TXSTA1 Bits
2686 extern __at(0x019E) __sfr TXSTA1;
2688 typedef struct
2690 unsigned TX9D : 1;
2691 unsigned TRMT : 1;
2692 unsigned BRGH : 1;
2693 unsigned SENDB : 1;
2694 unsigned SYNC : 1;
2695 unsigned TXEN : 1;
2696 unsigned TX9 : 1;
2697 unsigned CSRC : 1;
2698 } __TXSTA1bits_t;
2700 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
2702 #define _TXSTA1_TX9D 0x01
2703 #define _TXSTA1_TRMT 0x02
2704 #define _TXSTA1_BRGH 0x04
2705 #define _TXSTA1_SENDB 0x08
2706 #define _TXSTA1_SYNC 0x10
2707 #define _TXSTA1_TXEN 0x20
2708 #define _TXSTA1_TX9 0x40
2709 #define _TXSTA1_CSRC 0x80
2711 //==============================================================================
2714 //==============================================================================
2715 // BAUD1CON Bits
2717 extern __at(0x019F) __sfr BAUD1CON;
2719 typedef struct
2721 unsigned ABDEN : 1;
2722 unsigned WUE : 1;
2723 unsigned : 1;
2724 unsigned BRG16 : 1;
2725 unsigned SCKP : 1;
2726 unsigned : 1;
2727 unsigned RCIDL : 1;
2728 unsigned ABDOVF : 1;
2729 } __BAUD1CONbits_t;
2731 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
2733 #define _ABDEN 0x01
2734 #define _WUE 0x02
2735 #define _BRG16 0x08
2736 #define _SCKP 0x10
2737 #define _RCIDL 0x40
2738 #define _ABDOVF 0x80
2740 //==============================================================================
2743 //==============================================================================
2744 // BAUDCON Bits
2746 extern __at(0x019F) __sfr BAUDCON;
2748 typedef struct
2750 unsigned ABDEN : 1;
2751 unsigned WUE : 1;
2752 unsigned : 1;
2753 unsigned BRG16 : 1;
2754 unsigned SCKP : 1;
2755 unsigned : 1;
2756 unsigned RCIDL : 1;
2757 unsigned ABDOVF : 1;
2758 } __BAUDCONbits_t;
2760 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
2762 #define _BAUDCON_ABDEN 0x01
2763 #define _BAUDCON_WUE 0x02
2764 #define _BAUDCON_BRG16 0x08
2765 #define _BAUDCON_SCKP 0x10
2766 #define _BAUDCON_RCIDL 0x40
2767 #define _BAUDCON_ABDOVF 0x80
2769 //==============================================================================
2772 //==============================================================================
2773 // BAUDCON1 Bits
2775 extern __at(0x019F) __sfr BAUDCON1;
2777 typedef struct
2779 unsigned ABDEN : 1;
2780 unsigned WUE : 1;
2781 unsigned : 1;
2782 unsigned BRG16 : 1;
2783 unsigned SCKP : 1;
2784 unsigned : 1;
2785 unsigned RCIDL : 1;
2786 unsigned ABDOVF : 1;
2787 } __BAUDCON1bits_t;
2789 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
2791 #define _BAUDCON1_ABDEN 0x01
2792 #define _BAUDCON1_WUE 0x02
2793 #define _BAUDCON1_BRG16 0x08
2794 #define _BAUDCON1_SCKP 0x10
2795 #define _BAUDCON1_RCIDL 0x40
2796 #define _BAUDCON1_ABDOVF 0x80
2798 //==============================================================================
2801 //==============================================================================
2802 // BAUDCTL Bits
2804 extern __at(0x019F) __sfr BAUDCTL;
2806 typedef struct
2808 unsigned ABDEN : 1;
2809 unsigned WUE : 1;
2810 unsigned : 1;
2811 unsigned BRG16 : 1;
2812 unsigned SCKP : 1;
2813 unsigned : 1;
2814 unsigned RCIDL : 1;
2815 unsigned ABDOVF : 1;
2816 } __BAUDCTLbits_t;
2818 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
2820 #define _BAUDCTL_ABDEN 0x01
2821 #define _BAUDCTL_WUE 0x02
2822 #define _BAUDCTL_BRG16 0x08
2823 #define _BAUDCTL_SCKP 0x10
2824 #define _BAUDCTL_RCIDL 0x40
2825 #define _BAUDCTL_ABDOVF 0x80
2827 //==============================================================================
2830 //==============================================================================
2831 // BAUDCTL1 Bits
2833 extern __at(0x019F) __sfr BAUDCTL1;
2835 typedef struct
2837 unsigned ABDEN : 1;
2838 unsigned WUE : 1;
2839 unsigned : 1;
2840 unsigned BRG16 : 1;
2841 unsigned SCKP : 1;
2842 unsigned : 1;
2843 unsigned RCIDL : 1;
2844 unsigned ABDOVF : 1;
2845 } __BAUDCTL1bits_t;
2847 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
2849 #define _BAUDCTL1_ABDEN 0x01
2850 #define _BAUDCTL1_WUE 0x02
2851 #define _BAUDCTL1_BRG16 0x08
2852 #define _BAUDCTL1_SCKP 0x10
2853 #define _BAUDCTL1_RCIDL 0x40
2854 #define _BAUDCTL1_ABDOVF 0x80
2856 //==============================================================================
2859 //==============================================================================
2860 // WPUA Bits
2862 extern __at(0x020C) __sfr WPUA;
2864 typedef struct
2866 unsigned WPUA0 : 1;
2867 unsigned WPUA1 : 1;
2868 unsigned WPUA2 : 1;
2869 unsigned WPUA3 : 1;
2870 unsigned WPUA4 : 1;
2871 unsigned WPUA5 : 1;
2872 unsigned WPUA6 : 1;
2873 unsigned WPUA7 : 1;
2874 } __WPUAbits_t;
2876 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
2878 #define _WPUA0 0x01
2879 #define _WPUA1 0x02
2880 #define _WPUA2 0x04
2881 #define _WPUA3 0x08
2882 #define _WPUA4 0x10
2883 #define _WPUA5 0x20
2884 #define _WPUA6 0x40
2885 #define _WPUA7 0x80
2887 //==============================================================================
2890 //==============================================================================
2891 // WPUB Bits
2893 extern __at(0x020D) __sfr WPUB;
2895 typedef struct
2897 unsigned WPUB0 : 1;
2898 unsigned WPUB1 : 1;
2899 unsigned WPUB2 : 1;
2900 unsigned WPUB3 : 1;
2901 unsigned WPUB4 : 1;
2902 unsigned WPUB5 : 1;
2903 unsigned WPUB6 : 1;
2904 unsigned WPUB7 : 1;
2905 } __WPUBbits_t;
2907 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
2909 #define _WPUB0 0x01
2910 #define _WPUB1 0x02
2911 #define _WPUB2 0x04
2912 #define _WPUB3 0x08
2913 #define _WPUB4 0x10
2914 #define _WPUB5 0x20
2915 #define _WPUB6 0x40
2916 #define _WPUB7 0x80
2918 //==============================================================================
2921 //==============================================================================
2922 // WPUC Bits
2924 extern __at(0x020E) __sfr WPUC;
2926 typedef struct
2928 unsigned WPUC0 : 1;
2929 unsigned WPUC1 : 1;
2930 unsigned WPUC2 : 1;
2931 unsigned WPUC3 : 1;
2932 unsigned WPUC4 : 1;
2933 unsigned WPUC5 : 1;
2934 unsigned WPUC6 : 1;
2935 unsigned WPUC7 : 1;
2936 } __WPUCbits_t;
2938 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
2940 #define _WPUC0 0x01
2941 #define _WPUC1 0x02
2942 #define _WPUC2 0x04
2943 #define _WPUC3 0x08
2944 #define _WPUC4 0x10
2945 #define _WPUC5 0x20
2946 #define _WPUC6 0x40
2947 #define _WPUC7 0x80
2949 //==============================================================================
2952 //==============================================================================
2953 // WPUD Bits
2955 extern __at(0x020F) __sfr WPUD;
2957 typedef struct
2959 unsigned WPUD0 : 1;
2960 unsigned WPUD1 : 1;
2961 unsigned WPUD2 : 1;
2962 unsigned WPUD3 : 1;
2963 unsigned WPUD4 : 1;
2964 unsigned WPUD5 : 1;
2965 unsigned WPUD6 : 1;
2966 unsigned WPUD7 : 1;
2967 } __WPUDbits_t;
2969 extern __at(0x020F) volatile __WPUDbits_t WPUDbits;
2971 #define _WPUD0 0x01
2972 #define _WPUD1 0x02
2973 #define _WPUD2 0x04
2974 #define _WPUD3 0x08
2975 #define _WPUD4 0x10
2976 #define _WPUD5 0x20
2977 #define _WPUD6 0x40
2978 #define _WPUD7 0x80
2980 //==============================================================================
2983 //==============================================================================
2984 // WPUE Bits
2986 extern __at(0x0210) __sfr WPUE;
2988 typedef union
2990 struct
2992 unsigned WPUE0 : 1;
2993 unsigned WPUE1 : 1;
2994 unsigned WPUE2 : 1;
2995 unsigned WPUE3 : 1;
2996 unsigned : 1;
2997 unsigned : 1;
2998 unsigned : 1;
2999 unsigned : 1;
3002 struct
3004 unsigned WPUE : 4;
3005 unsigned : 4;
3007 } __WPUEbits_t;
3009 extern __at(0x0210) volatile __WPUEbits_t WPUEbits;
3011 #define _WPUE0 0x01
3012 #define _WPUE1 0x02
3013 #define _WPUE2 0x04
3014 #define _WPUE3 0x08
3016 //==============================================================================
3019 //==============================================================================
3020 // SSP1BUF Bits
3022 extern __at(0x0211) __sfr SSP1BUF;
3024 typedef union
3026 struct
3028 unsigned SSP1BUF0 : 1;
3029 unsigned SSP1BUF1 : 1;
3030 unsigned SSP1BUF2 : 1;
3031 unsigned SSP1BUF3 : 1;
3032 unsigned SSP1BUF4 : 1;
3033 unsigned SSP1BUF5 : 1;
3034 unsigned SSP1BUF6 : 1;
3035 unsigned SSP1BUF7 : 1;
3038 struct
3040 unsigned BUF0 : 1;
3041 unsigned BUF1 : 1;
3042 unsigned BUF2 : 1;
3043 unsigned BUF3 : 1;
3044 unsigned BUF4 : 1;
3045 unsigned BUF5 : 1;
3046 unsigned BUF6 : 1;
3047 unsigned BUF7 : 1;
3049 } __SSP1BUFbits_t;
3051 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
3053 #define _SSP1BUF0 0x01
3054 #define _BUF0 0x01
3055 #define _SSP1BUF1 0x02
3056 #define _BUF1 0x02
3057 #define _SSP1BUF2 0x04
3058 #define _BUF2 0x04
3059 #define _SSP1BUF3 0x08
3060 #define _BUF3 0x08
3061 #define _SSP1BUF4 0x10
3062 #define _BUF4 0x10
3063 #define _SSP1BUF5 0x20
3064 #define _BUF5 0x20
3065 #define _SSP1BUF6 0x40
3066 #define _BUF6 0x40
3067 #define _SSP1BUF7 0x80
3068 #define _BUF7 0x80
3070 //==============================================================================
3073 //==============================================================================
3074 // SSPBUF Bits
3076 extern __at(0x0211) __sfr SSPBUF;
3078 typedef union
3080 struct
3082 unsigned SSP1BUF0 : 1;
3083 unsigned SSP1BUF1 : 1;
3084 unsigned SSP1BUF2 : 1;
3085 unsigned SSP1BUF3 : 1;
3086 unsigned SSP1BUF4 : 1;
3087 unsigned SSP1BUF5 : 1;
3088 unsigned SSP1BUF6 : 1;
3089 unsigned SSP1BUF7 : 1;
3092 struct
3094 unsigned BUF0 : 1;
3095 unsigned BUF1 : 1;
3096 unsigned BUF2 : 1;
3097 unsigned BUF3 : 1;
3098 unsigned BUF4 : 1;
3099 unsigned BUF5 : 1;
3100 unsigned BUF6 : 1;
3101 unsigned BUF7 : 1;
3103 } __SSPBUFbits_t;
3105 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
3107 #define _SSPBUF_SSP1BUF0 0x01
3108 #define _SSPBUF_BUF0 0x01
3109 #define _SSPBUF_SSP1BUF1 0x02
3110 #define _SSPBUF_BUF1 0x02
3111 #define _SSPBUF_SSP1BUF2 0x04
3112 #define _SSPBUF_BUF2 0x04
3113 #define _SSPBUF_SSP1BUF3 0x08
3114 #define _SSPBUF_BUF3 0x08
3115 #define _SSPBUF_SSP1BUF4 0x10
3116 #define _SSPBUF_BUF4 0x10
3117 #define _SSPBUF_SSP1BUF5 0x20
3118 #define _SSPBUF_BUF5 0x20
3119 #define _SSPBUF_SSP1BUF6 0x40
3120 #define _SSPBUF_BUF6 0x40
3121 #define _SSPBUF_SSP1BUF7 0x80
3122 #define _SSPBUF_BUF7 0x80
3124 //==============================================================================
3127 //==============================================================================
3128 // SSP1ADD Bits
3130 extern __at(0x0212) __sfr SSP1ADD;
3132 typedef union
3134 struct
3136 unsigned SSP1ADD0 : 1;
3137 unsigned SSP1ADD1 : 1;
3138 unsigned SSP1ADD2 : 1;
3139 unsigned SSP1ADD3 : 1;
3140 unsigned SSP1ADD4 : 1;
3141 unsigned SSP1ADD5 : 1;
3142 unsigned SSP1ADD6 : 1;
3143 unsigned SSP1ADD7 : 1;
3146 struct
3148 unsigned ADD0 : 1;
3149 unsigned ADD1 : 1;
3150 unsigned ADD2 : 1;
3151 unsigned ADD3 : 1;
3152 unsigned ADD4 : 1;
3153 unsigned ADD5 : 1;
3154 unsigned ADD6 : 1;
3155 unsigned ADD7 : 1;
3157 } __SSP1ADDbits_t;
3159 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
3161 #define _SSP1ADD0 0x01
3162 #define _ADD0 0x01
3163 #define _SSP1ADD1 0x02
3164 #define _ADD1 0x02
3165 #define _SSP1ADD2 0x04
3166 #define _ADD2 0x04
3167 #define _SSP1ADD3 0x08
3168 #define _ADD3 0x08
3169 #define _SSP1ADD4 0x10
3170 #define _ADD4 0x10
3171 #define _SSP1ADD5 0x20
3172 #define _ADD5 0x20
3173 #define _SSP1ADD6 0x40
3174 #define _ADD6 0x40
3175 #define _SSP1ADD7 0x80
3176 #define _ADD7 0x80
3178 //==============================================================================
3181 //==============================================================================
3182 // SSPADD Bits
3184 extern __at(0x0212) __sfr SSPADD;
3186 typedef union
3188 struct
3190 unsigned SSP1ADD0 : 1;
3191 unsigned SSP1ADD1 : 1;
3192 unsigned SSP1ADD2 : 1;
3193 unsigned SSP1ADD3 : 1;
3194 unsigned SSP1ADD4 : 1;
3195 unsigned SSP1ADD5 : 1;
3196 unsigned SSP1ADD6 : 1;
3197 unsigned SSP1ADD7 : 1;
3200 struct
3202 unsigned ADD0 : 1;
3203 unsigned ADD1 : 1;
3204 unsigned ADD2 : 1;
3205 unsigned ADD3 : 1;
3206 unsigned ADD4 : 1;
3207 unsigned ADD5 : 1;
3208 unsigned ADD6 : 1;
3209 unsigned ADD7 : 1;
3211 } __SSPADDbits_t;
3213 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
3215 #define _SSPADD_SSP1ADD0 0x01
3216 #define _SSPADD_ADD0 0x01
3217 #define _SSPADD_SSP1ADD1 0x02
3218 #define _SSPADD_ADD1 0x02
3219 #define _SSPADD_SSP1ADD2 0x04
3220 #define _SSPADD_ADD2 0x04
3221 #define _SSPADD_SSP1ADD3 0x08
3222 #define _SSPADD_ADD3 0x08
3223 #define _SSPADD_SSP1ADD4 0x10
3224 #define _SSPADD_ADD4 0x10
3225 #define _SSPADD_SSP1ADD5 0x20
3226 #define _SSPADD_ADD5 0x20
3227 #define _SSPADD_SSP1ADD6 0x40
3228 #define _SSPADD_ADD6 0x40
3229 #define _SSPADD_SSP1ADD7 0x80
3230 #define _SSPADD_ADD7 0x80
3232 //==============================================================================
3235 //==============================================================================
3236 // SSP1MSK Bits
3238 extern __at(0x0213) __sfr SSP1MSK;
3240 typedef union
3242 struct
3244 unsigned SSP1MSK0 : 1;
3245 unsigned SSP1MSK1 : 1;
3246 unsigned SSP1MSK2 : 1;
3247 unsigned SSP1MSK3 : 1;
3248 unsigned SSP1MSK4 : 1;
3249 unsigned SSP1MSK5 : 1;
3250 unsigned SSP1MSK6 : 1;
3251 unsigned SSP1MSK7 : 1;
3254 struct
3256 unsigned MSK0 : 1;
3257 unsigned MSK1 : 1;
3258 unsigned MSK2 : 1;
3259 unsigned MSK3 : 1;
3260 unsigned MSK4 : 1;
3261 unsigned MSK5 : 1;
3262 unsigned MSK6 : 1;
3263 unsigned MSK7 : 1;
3265 } __SSP1MSKbits_t;
3267 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3269 #define _SSP1MSK0 0x01
3270 #define _MSK0 0x01
3271 #define _SSP1MSK1 0x02
3272 #define _MSK1 0x02
3273 #define _SSP1MSK2 0x04
3274 #define _MSK2 0x04
3275 #define _SSP1MSK3 0x08
3276 #define _MSK3 0x08
3277 #define _SSP1MSK4 0x10
3278 #define _MSK4 0x10
3279 #define _SSP1MSK5 0x20
3280 #define _MSK5 0x20
3281 #define _SSP1MSK6 0x40
3282 #define _MSK6 0x40
3283 #define _SSP1MSK7 0x80
3284 #define _MSK7 0x80
3286 //==============================================================================
3289 //==============================================================================
3290 // SSPMSK Bits
3292 extern __at(0x0213) __sfr SSPMSK;
3294 typedef union
3296 struct
3298 unsigned SSP1MSK0 : 1;
3299 unsigned SSP1MSK1 : 1;
3300 unsigned SSP1MSK2 : 1;
3301 unsigned SSP1MSK3 : 1;
3302 unsigned SSP1MSK4 : 1;
3303 unsigned SSP1MSK5 : 1;
3304 unsigned SSP1MSK6 : 1;
3305 unsigned SSP1MSK7 : 1;
3308 struct
3310 unsigned MSK0 : 1;
3311 unsigned MSK1 : 1;
3312 unsigned MSK2 : 1;
3313 unsigned MSK3 : 1;
3314 unsigned MSK4 : 1;
3315 unsigned MSK5 : 1;
3316 unsigned MSK6 : 1;
3317 unsigned MSK7 : 1;
3319 } __SSPMSKbits_t;
3321 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3323 #define _SSPMSK_SSP1MSK0 0x01
3324 #define _SSPMSK_MSK0 0x01
3325 #define _SSPMSK_SSP1MSK1 0x02
3326 #define _SSPMSK_MSK1 0x02
3327 #define _SSPMSK_SSP1MSK2 0x04
3328 #define _SSPMSK_MSK2 0x04
3329 #define _SSPMSK_SSP1MSK3 0x08
3330 #define _SSPMSK_MSK3 0x08
3331 #define _SSPMSK_SSP1MSK4 0x10
3332 #define _SSPMSK_MSK4 0x10
3333 #define _SSPMSK_SSP1MSK5 0x20
3334 #define _SSPMSK_MSK5 0x20
3335 #define _SSPMSK_SSP1MSK6 0x40
3336 #define _SSPMSK_MSK6 0x40
3337 #define _SSPMSK_SSP1MSK7 0x80
3338 #define _SSPMSK_MSK7 0x80
3340 //==============================================================================
3343 //==============================================================================
3344 // SSP1STAT Bits
3346 extern __at(0x0214) __sfr SSP1STAT;
3348 typedef struct
3350 unsigned BF : 1;
3351 unsigned UA : 1;
3352 unsigned R_NOT_W : 1;
3353 unsigned S : 1;
3354 unsigned P : 1;
3355 unsigned D_NOT_A : 1;
3356 unsigned CKE : 1;
3357 unsigned SMP : 1;
3358 } __SSP1STATbits_t;
3360 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3362 #define _BF 0x01
3363 #define _UA 0x02
3364 #define _R_NOT_W 0x04
3365 #define _S 0x08
3366 #define _P 0x10
3367 #define _D_NOT_A 0x20
3368 #define _CKE 0x40
3369 #define _SMP 0x80
3371 //==============================================================================
3374 //==============================================================================
3375 // SSPSTAT Bits
3377 extern __at(0x0214) __sfr SSPSTAT;
3379 typedef struct
3381 unsigned BF : 1;
3382 unsigned UA : 1;
3383 unsigned R_NOT_W : 1;
3384 unsigned S : 1;
3385 unsigned P : 1;
3386 unsigned D_NOT_A : 1;
3387 unsigned CKE : 1;
3388 unsigned SMP : 1;
3389 } __SSPSTATbits_t;
3391 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3393 #define _SSPSTAT_BF 0x01
3394 #define _SSPSTAT_UA 0x02
3395 #define _SSPSTAT_R_NOT_W 0x04
3396 #define _SSPSTAT_S 0x08
3397 #define _SSPSTAT_P 0x10
3398 #define _SSPSTAT_D_NOT_A 0x20
3399 #define _SSPSTAT_CKE 0x40
3400 #define _SSPSTAT_SMP 0x80
3402 //==============================================================================
3405 //==============================================================================
3406 // SSP1CON Bits
3408 extern __at(0x0215) __sfr SSP1CON;
3410 typedef union
3412 struct
3414 unsigned SSPM0 : 1;
3415 unsigned SSPM1 : 1;
3416 unsigned SSPM2 : 1;
3417 unsigned SSPM3 : 1;
3418 unsigned CKP : 1;
3419 unsigned SSPEN : 1;
3420 unsigned SSPOV : 1;
3421 unsigned WCOL : 1;
3424 struct
3426 unsigned SSPM : 4;
3427 unsigned : 4;
3429 } __SSP1CONbits_t;
3431 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3433 #define _SSPM0 0x01
3434 #define _SSPM1 0x02
3435 #define _SSPM2 0x04
3436 #define _SSPM3 0x08
3437 #define _CKP 0x10
3438 #define _SSPEN 0x20
3439 #define _SSPOV 0x40
3440 #define _WCOL 0x80
3442 //==============================================================================
3445 //==============================================================================
3446 // SSP1CON1 Bits
3448 extern __at(0x0215) __sfr SSP1CON1;
3450 typedef union
3452 struct
3454 unsigned SSPM0 : 1;
3455 unsigned SSPM1 : 1;
3456 unsigned SSPM2 : 1;
3457 unsigned SSPM3 : 1;
3458 unsigned CKP : 1;
3459 unsigned SSPEN : 1;
3460 unsigned SSPOV : 1;
3461 unsigned WCOL : 1;
3464 struct
3466 unsigned SSPM : 4;
3467 unsigned : 4;
3469 } __SSP1CON1bits_t;
3471 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3473 #define _SSP1CON1_SSPM0 0x01
3474 #define _SSP1CON1_SSPM1 0x02
3475 #define _SSP1CON1_SSPM2 0x04
3476 #define _SSP1CON1_SSPM3 0x08
3477 #define _SSP1CON1_CKP 0x10
3478 #define _SSP1CON1_SSPEN 0x20
3479 #define _SSP1CON1_SSPOV 0x40
3480 #define _SSP1CON1_WCOL 0x80
3482 //==============================================================================
3485 //==============================================================================
3486 // SSPCON Bits
3488 extern __at(0x0215) __sfr SSPCON;
3490 typedef union
3492 struct
3494 unsigned SSPM0 : 1;
3495 unsigned SSPM1 : 1;
3496 unsigned SSPM2 : 1;
3497 unsigned SSPM3 : 1;
3498 unsigned CKP : 1;
3499 unsigned SSPEN : 1;
3500 unsigned SSPOV : 1;
3501 unsigned WCOL : 1;
3504 struct
3506 unsigned SSPM : 4;
3507 unsigned : 4;
3509 } __SSPCONbits_t;
3511 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3513 #define _SSPCON_SSPM0 0x01
3514 #define _SSPCON_SSPM1 0x02
3515 #define _SSPCON_SSPM2 0x04
3516 #define _SSPCON_SSPM3 0x08
3517 #define _SSPCON_CKP 0x10
3518 #define _SSPCON_SSPEN 0x20
3519 #define _SSPCON_SSPOV 0x40
3520 #define _SSPCON_WCOL 0x80
3522 //==============================================================================
3525 //==============================================================================
3526 // SSPCON1 Bits
3528 extern __at(0x0215) __sfr SSPCON1;
3530 typedef union
3532 struct
3534 unsigned SSPM0 : 1;
3535 unsigned SSPM1 : 1;
3536 unsigned SSPM2 : 1;
3537 unsigned SSPM3 : 1;
3538 unsigned CKP : 1;
3539 unsigned SSPEN : 1;
3540 unsigned SSPOV : 1;
3541 unsigned WCOL : 1;
3544 struct
3546 unsigned SSPM : 4;
3547 unsigned : 4;
3549 } __SSPCON1bits_t;
3551 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3553 #define _SSPCON1_SSPM0 0x01
3554 #define _SSPCON1_SSPM1 0x02
3555 #define _SSPCON1_SSPM2 0x04
3556 #define _SSPCON1_SSPM3 0x08
3557 #define _SSPCON1_CKP 0x10
3558 #define _SSPCON1_SSPEN 0x20
3559 #define _SSPCON1_SSPOV 0x40
3560 #define _SSPCON1_WCOL 0x80
3562 //==============================================================================
3565 //==============================================================================
3566 // SSP1CON2 Bits
3568 extern __at(0x0216) __sfr SSP1CON2;
3570 typedef struct
3572 unsigned SEN : 1;
3573 unsigned RSEN : 1;
3574 unsigned PEN : 1;
3575 unsigned RCEN : 1;
3576 unsigned ACKEN : 1;
3577 unsigned ACKDT : 1;
3578 unsigned ACKSTAT : 1;
3579 unsigned GCEN : 1;
3580 } __SSP1CON2bits_t;
3582 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3584 #define _SEN 0x01
3585 #define _RSEN 0x02
3586 #define _PEN 0x04
3587 #define _RCEN 0x08
3588 #define _ACKEN 0x10
3589 #define _ACKDT 0x20
3590 #define _ACKSTAT 0x40
3591 #define _GCEN 0x80
3593 //==============================================================================
3596 //==============================================================================
3597 // SSPCON2 Bits
3599 extern __at(0x0216) __sfr SSPCON2;
3601 typedef struct
3603 unsigned SEN : 1;
3604 unsigned RSEN : 1;
3605 unsigned PEN : 1;
3606 unsigned RCEN : 1;
3607 unsigned ACKEN : 1;
3608 unsigned ACKDT : 1;
3609 unsigned ACKSTAT : 1;
3610 unsigned GCEN : 1;
3611 } __SSPCON2bits_t;
3613 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3615 #define _SSPCON2_SEN 0x01
3616 #define _SSPCON2_RSEN 0x02
3617 #define _SSPCON2_PEN 0x04
3618 #define _SSPCON2_RCEN 0x08
3619 #define _SSPCON2_ACKEN 0x10
3620 #define _SSPCON2_ACKDT 0x20
3621 #define _SSPCON2_ACKSTAT 0x40
3622 #define _SSPCON2_GCEN 0x80
3624 //==============================================================================
3627 //==============================================================================
3628 // SSP1CON3 Bits
3630 extern __at(0x0217) __sfr SSP1CON3;
3632 typedef struct
3634 unsigned DHEN : 1;
3635 unsigned AHEN : 1;
3636 unsigned SBCDE : 1;
3637 unsigned SDAHT : 1;
3638 unsigned BOEN : 1;
3639 unsigned SCIE : 1;
3640 unsigned PCIE : 1;
3641 unsigned ACKTIM : 1;
3642 } __SSP1CON3bits_t;
3644 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3646 #define _DHEN 0x01
3647 #define _AHEN 0x02
3648 #define _SBCDE 0x04
3649 #define _SDAHT 0x08
3650 #define _BOEN 0x10
3651 #define _SCIE 0x20
3652 #define _PCIE 0x40
3653 #define _ACKTIM 0x80
3655 //==============================================================================
3658 //==============================================================================
3659 // SSPCON3 Bits
3661 extern __at(0x0217) __sfr SSPCON3;
3663 typedef struct
3665 unsigned DHEN : 1;
3666 unsigned AHEN : 1;
3667 unsigned SBCDE : 1;
3668 unsigned SDAHT : 1;
3669 unsigned BOEN : 1;
3670 unsigned SCIE : 1;
3671 unsigned PCIE : 1;
3672 unsigned ACKTIM : 1;
3673 } __SSPCON3bits_t;
3675 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3677 #define _SSPCON3_DHEN 0x01
3678 #define _SSPCON3_AHEN 0x02
3679 #define _SSPCON3_SBCDE 0x04
3680 #define _SSPCON3_SDAHT 0x08
3681 #define _SSPCON3_BOEN 0x10
3682 #define _SSPCON3_SCIE 0x20
3683 #define _SSPCON3_PCIE 0x40
3684 #define _SSPCON3_ACKTIM 0x80
3686 //==============================================================================
3689 //==============================================================================
3690 // ODCONA Bits
3692 extern __at(0x028C) __sfr ODCONA;
3694 typedef struct
3696 unsigned ODCONA0 : 1;
3697 unsigned ODCONA1 : 1;
3698 unsigned ODCONA2 : 1;
3699 unsigned ODCONA3 : 1;
3700 unsigned ODCONA4 : 1;
3701 unsigned ODCONA5 : 1;
3702 unsigned ODCONA6 : 1;
3703 unsigned ODCONA7 : 1;
3704 } __ODCONAbits_t;
3706 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
3708 #define _ODCONA0 0x01
3709 #define _ODCONA1 0x02
3710 #define _ODCONA2 0x04
3711 #define _ODCONA3 0x08
3712 #define _ODCONA4 0x10
3713 #define _ODCONA5 0x20
3714 #define _ODCONA6 0x40
3715 #define _ODCONA7 0x80
3717 //==============================================================================
3720 //==============================================================================
3721 // ODCONB Bits
3723 extern __at(0x028D) __sfr ODCONB;
3725 typedef struct
3727 unsigned ODCONB0 : 1;
3728 unsigned ODCONB1 : 1;
3729 unsigned ODCONB2 : 1;
3730 unsigned ODCONB3 : 1;
3731 unsigned ODCONB4 : 1;
3732 unsigned ODCONB5 : 1;
3733 unsigned ODCONB6 : 1;
3734 unsigned ODCONB7 : 1;
3735 } __ODCONBbits_t;
3737 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
3739 #define _ODCONB0 0x01
3740 #define _ODCONB1 0x02
3741 #define _ODCONB2 0x04
3742 #define _ODCONB3 0x08
3743 #define _ODCONB4 0x10
3744 #define _ODCONB5 0x20
3745 #define _ODCONB6 0x40
3746 #define _ODCONB7 0x80
3748 //==============================================================================
3751 //==============================================================================
3752 // ODCONC Bits
3754 extern __at(0x028E) __sfr ODCONC;
3756 typedef struct
3758 unsigned ODCONC0 : 1;
3759 unsigned ODCONC1 : 1;
3760 unsigned ODCONC2 : 1;
3761 unsigned ODCONC3 : 1;
3762 unsigned ODCONC4 : 1;
3763 unsigned ODCONC5 : 1;
3764 unsigned ODCONC6 : 1;
3765 unsigned ODCONC7 : 1;
3766 } __ODCONCbits_t;
3768 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
3770 #define _ODCONC0 0x01
3771 #define _ODCONC1 0x02
3772 #define _ODCONC2 0x04
3773 #define _ODCONC3 0x08
3774 #define _ODCONC4 0x10
3775 #define _ODCONC5 0x20
3776 #define _ODCONC6 0x40
3777 #define _ODCONC7 0x80
3779 //==============================================================================
3782 //==============================================================================
3783 // ODCOND Bits
3785 extern __at(0x028F) __sfr ODCOND;
3787 typedef struct
3789 unsigned ODCOND0 : 1;
3790 unsigned ODCOND1 : 1;
3791 unsigned ODCOND2 : 1;
3792 unsigned ODCOND3 : 1;
3793 unsigned ODCOND4 : 1;
3794 unsigned ODCOND5 : 1;
3795 unsigned ODCOND6 : 1;
3796 unsigned ODCOND7 : 1;
3797 } __ODCONDbits_t;
3799 extern __at(0x028F) volatile __ODCONDbits_t ODCONDbits;
3801 #define _ODCOND0 0x01
3802 #define _ODCOND1 0x02
3803 #define _ODCOND2 0x04
3804 #define _ODCOND3 0x08
3805 #define _ODCOND4 0x10
3806 #define _ODCOND5 0x20
3807 #define _ODCOND6 0x40
3808 #define _ODCOND7 0x80
3810 //==============================================================================
3813 //==============================================================================
3814 // ODCONE Bits
3816 extern __at(0x0290) __sfr ODCONE;
3818 typedef union
3820 struct
3822 unsigned ODCONE0 : 1;
3823 unsigned ODCONE1 : 1;
3824 unsigned ODCONE2 : 1;
3825 unsigned : 1;
3826 unsigned : 1;
3827 unsigned : 1;
3828 unsigned : 1;
3829 unsigned : 1;
3832 struct
3834 unsigned ODCONE : 3;
3835 unsigned : 5;
3837 } __ODCONEbits_t;
3839 extern __at(0x0290) volatile __ODCONEbits_t ODCONEbits;
3841 #define _ODCONE0 0x01
3842 #define _ODCONE1 0x02
3843 #define _ODCONE2 0x04
3845 //==============================================================================
3847 extern __at(0x0291) __sfr CCPR1;
3848 extern __at(0x0291) __sfr CCPR1L;
3849 extern __at(0x0292) __sfr CCPR1H;
3851 //==============================================================================
3852 // CCP1CON Bits
3854 extern __at(0x0293) __sfr CCP1CON;
3856 typedef union
3858 struct
3860 unsigned CCP1M0 : 1;
3861 unsigned CCP1M1 : 1;
3862 unsigned CCP1M2 : 1;
3863 unsigned CCP1M3 : 1;
3864 unsigned DC1B0 : 1;
3865 unsigned DC1B1 : 1;
3866 unsigned : 1;
3867 unsigned : 1;
3870 struct
3872 unsigned CCP1M : 4;
3873 unsigned : 4;
3876 struct
3878 unsigned : 4;
3879 unsigned DC1B : 2;
3880 unsigned : 2;
3882 } __CCP1CONbits_t;
3884 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
3886 #define _CCP1M0 0x01
3887 #define _CCP1M1 0x02
3888 #define _CCP1M2 0x04
3889 #define _CCP1M3 0x08
3890 #define _DC1B0 0x10
3891 #define _DC1B1 0x20
3893 //==============================================================================
3895 extern __at(0x0298) __sfr CCPR2;
3896 extern __at(0x0298) __sfr CCPR2L;
3897 extern __at(0x0299) __sfr CCPR2H;
3899 //==============================================================================
3900 // CCP2CON Bits
3902 extern __at(0x029A) __sfr CCP2CON;
3904 typedef union
3906 struct
3908 unsigned CCP2M0 : 1;
3909 unsigned CCP2M1 : 1;
3910 unsigned CCP2M2 : 1;
3911 unsigned CCP2M3 : 1;
3912 unsigned DC2B0 : 1;
3913 unsigned DC2B1 : 1;
3914 unsigned : 1;
3915 unsigned : 1;
3918 struct
3920 unsigned CCP2M : 4;
3921 unsigned : 4;
3924 struct
3926 unsigned : 4;
3927 unsigned DC2B : 2;
3928 unsigned : 2;
3930 } __CCP2CONbits_t;
3932 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
3934 #define _CCP2M0 0x01
3935 #define _CCP2M1 0x02
3936 #define _CCP2M2 0x04
3937 #define _CCP2M3 0x08
3938 #define _DC2B0 0x10
3939 #define _DC2B1 0x20
3941 //==============================================================================
3944 //==============================================================================
3945 // SLRCONA Bits
3947 extern __at(0x030C) __sfr SLRCONA;
3949 typedef struct
3951 unsigned SLRCONA0 : 1;
3952 unsigned SLRCONA1 : 1;
3953 unsigned SLRCONA2 : 1;
3954 unsigned SLRCONA3 : 1;
3955 unsigned SLRCONA4 : 1;
3956 unsigned SLRCONA5 : 1;
3957 unsigned SLRCONA6 : 1;
3958 unsigned SLRCONA7 : 1;
3959 } __SLRCONAbits_t;
3961 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
3963 #define _SLRCONA0 0x01
3964 #define _SLRCONA1 0x02
3965 #define _SLRCONA2 0x04
3966 #define _SLRCONA3 0x08
3967 #define _SLRCONA4 0x10
3968 #define _SLRCONA5 0x20
3969 #define _SLRCONA6 0x40
3970 #define _SLRCONA7 0x80
3972 //==============================================================================
3975 //==============================================================================
3976 // SLRCONB Bits
3978 extern __at(0x030D) __sfr SLRCONB;
3980 typedef struct
3982 unsigned SLRCONB0 : 1;
3983 unsigned SLRCONB1 : 1;
3984 unsigned SLRCONB2 : 1;
3985 unsigned SLRCONB3 : 1;
3986 unsigned SLRCONB4 : 1;
3987 unsigned SLRCONB5 : 1;
3988 unsigned SLRCONB6 : 1;
3989 unsigned SLRCONB7 : 1;
3990 } __SLRCONBbits_t;
3992 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
3994 #define _SLRCONB0 0x01
3995 #define _SLRCONB1 0x02
3996 #define _SLRCONB2 0x04
3997 #define _SLRCONB3 0x08
3998 #define _SLRCONB4 0x10
3999 #define _SLRCONB5 0x20
4000 #define _SLRCONB6 0x40
4001 #define _SLRCONB7 0x80
4003 //==============================================================================
4006 //==============================================================================
4007 // SLRCONC Bits
4009 extern __at(0x030E) __sfr SLRCONC;
4011 typedef struct
4013 unsigned SLRCONC0 : 1;
4014 unsigned SLRCONC1 : 1;
4015 unsigned SLRCONC2 : 1;
4016 unsigned SLRCONC3 : 1;
4017 unsigned SLRCONC4 : 1;
4018 unsigned SLRCONC5 : 1;
4019 unsigned SLRCONC6 : 1;
4020 unsigned SLRCONC7 : 1;
4021 } __SLRCONCbits_t;
4023 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
4025 #define _SLRCONC0 0x01
4026 #define _SLRCONC1 0x02
4027 #define _SLRCONC2 0x04
4028 #define _SLRCONC3 0x08
4029 #define _SLRCONC4 0x10
4030 #define _SLRCONC5 0x20
4031 #define _SLRCONC6 0x40
4032 #define _SLRCONC7 0x80
4034 //==============================================================================
4037 //==============================================================================
4038 // SLRCOND Bits
4040 extern __at(0x030F) __sfr SLRCOND;
4042 typedef struct
4044 unsigned SLRCOND0 : 1;
4045 unsigned SLRCOND1 : 1;
4046 unsigned SLRCOND2 : 1;
4047 unsigned SLRCOND3 : 1;
4048 unsigned SLRCOND4 : 1;
4049 unsigned SLRCOND5 : 1;
4050 unsigned SLRCOND6 : 1;
4051 unsigned SLRCOND7 : 1;
4052 } __SLRCONDbits_t;
4054 extern __at(0x030F) volatile __SLRCONDbits_t SLRCONDbits;
4056 #define _SLRCOND0 0x01
4057 #define _SLRCOND1 0x02
4058 #define _SLRCOND2 0x04
4059 #define _SLRCOND3 0x08
4060 #define _SLRCOND4 0x10
4061 #define _SLRCOND5 0x20
4062 #define _SLRCOND6 0x40
4063 #define _SLRCOND7 0x80
4065 //==============================================================================
4068 //==============================================================================
4069 // SLRCONE Bits
4071 extern __at(0x0310) __sfr SLRCONE;
4073 typedef union
4075 struct
4077 unsigned SLRCONE0 : 1;
4078 unsigned SLRCONE1 : 1;
4079 unsigned SLRCONE2 : 1;
4080 unsigned : 1;
4081 unsigned : 1;
4082 unsigned : 1;
4083 unsigned : 1;
4084 unsigned : 1;
4087 struct
4089 unsigned SLRCONE : 3;
4090 unsigned : 5;
4092 } __SLRCONEbits_t;
4094 extern __at(0x0310) volatile __SLRCONEbits_t SLRCONEbits;
4096 #define _SLRCONE0 0x01
4097 #define _SLRCONE1 0x02
4098 #define _SLRCONE2 0x04
4100 //==============================================================================
4102 extern __at(0x0311) __sfr CCPR3;
4103 extern __at(0x0311) __sfr CCPR3L;
4104 extern __at(0x0312) __sfr CCPR3H;
4106 //==============================================================================
4107 // CCP3CON Bits
4109 extern __at(0x0313) __sfr CCP3CON;
4111 typedef union
4113 struct
4115 unsigned CCP3M0 : 1;
4116 unsigned CCP3M1 : 1;
4117 unsigned CCP3M2 : 1;
4118 unsigned CCP3M3 : 1;
4119 unsigned DC3B0 : 1;
4120 unsigned DC3B1 : 1;
4121 unsigned : 1;
4122 unsigned : 1;
4125 struct
4127 unsigned CCP3M : 4;
4128 unsigned : 4;
4131 struct
4133 unsigned : 4;
4134 unsigned DC3B : 2;
4135 unsigned : 2;
4137 } __CCP3CONbits_t;
4139 extern __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits;
4141 #define _CCP3M0 0x01
4142 #define _CCP3M1 0x02
4143 #define _CCP3M2 0x04
4144 #define _CCP3M3 0x08
4145 #define _DC3B0 0x10
4146 #define _DC3B1 0x20
4148 //==============================================================================
4151 //==============================================================================
4152 // INLVLA Bits
4154 extern __at(0x038C) __sfr INLVLA;
4156 typedef struct
4158 unsigned INLVLA0 : 1;
4159 unsigned INLVLA1 : 1;
4160 unsigned INLVLA2 : 1;
4161 unsigned INLVLA3 : 1;
4162 unsigned INLVLA4 : 1;
4163 unsigned INLVLA5 : 1;
4164 unsigned INLVLA6 : 1;
4165 unsigned INLVLA7 : 1;
4166 } __INLVLAbits_t;
4168 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
4170 #define _INLVLA0 0x01
4171 #define _INLVLA1 0x02
4172 #define _INLVLA2 0x04
4173 #define _INLVLA3 0x08
4174 #define _INLVLA4 0x10
4175 #define _INLVLA5 0x20
4176 #define _INLVLA6 0x40
4177 #define _INLVLA7 0x80
4179 //==============================================================================
4182 //==============================================================================
4183 // INLVLB Bits
4185 extern __at(0x038D) __sfr INLVLB;
4187 typedef struct
4189 unsigned INLVLB0 : 1;
4190 unsigned INLVLB1 : 1;
4191 unsigned INLVLB2 : 1;
4192 unsigned INLVLB3 : 1;
4193 unsigned INLVLB4 : 1;
4194 unsigned INLVLB5 : 1;
4195 unsigned INLVLB6 : 1;
4196 unsigned INLVLB7 : 1;
4197 } __INLVLBbits_t;
4199 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
4201 #define _INLVLB0 0x01
4202 #define _INLVLB1 0x02
4203 #define _INLVLB2 0x04
4204 #define _INLVLB3 0x08
4205 #define _INLVLB4 0x10
4206 #define _INLVLB5 0x20
4207 #define _INLVLB6 0x40
4208 #define _INLVLB7 0x80
4210 //==============================================================================
4213 //==============================================================================
4214 // INLVLC Bits
4216 extern __at(0x038E) __sfr INLVLC;
4218 typedef struct
4220 unsigned INLVLC0 : 1;
4221 unsigned INLVLC1 : 1;
4222 unsigned INLVLC2 : 1;
4223 unsigned INLVLC3 : 1;
4224 unsigned INLVLC4 : 1;
4225 unsigned INLVLC5 : 1;
4226 unsigned INLVLC6 : 1;
4227 unsigned INLVLC7 : 1;
4228 } __INLVLCbits_t;
4230 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
4232 #define _INLVLC0 0x01
4233 #define _INLVLC1 0x02
4234 #define _INLVLC2 0x04
4235 #define _INLVLC3 0x08
4236 #define _INLVLC4 0x10
4237 #define _INLVLC5 0x20
4238 #define _INLVLC6 0x40
4239 #define _INLVLC7 0x80
4241 //==============================================================================
4244 //==============================================================================
4245 // INLVLD Bits
4247 extern __at(0x038F) __sfr INLVLD;
4249 typedef struct
4251 unsigned INLVLD0 : 1;
4252 unsigned INLVLD1 : 1;
4253 unsigned INLVLD2 : 1;
4254 unsigned INLVLD3 : 1;
4255 unsigned INLVLD4 : 1;
4256 unsigned INLVLD5 : 1;
4257 unsigned INLVLD6 : 1;
4258 unsigned INLVLD7 : 1;
4259 } __INLVLDbits_t;
4261 extern __at(0x038F) volatile __INLVLDbits_t INLVLDbits;
4263 #define _INLVLD0 0x01
4264 #define _INLVLD1 0x02
4265 #define _INLVLD2 0x04
4266 #define _INLVLD3 0x08
4267 #define _INLVLD4 0x10
4268 #define _INLVLD5 0x20
4269 #define _INLVLD6 0x40
4270 #define _INLVLD7 0x80
4272 //==============================================================================
4275 //==============================================================================
4276 // INLVLE Bits
4278 extern __at(0x0390) __sfr INLVLE;
4280 typedef union
4282 struct
4284 unsigned INLVLE0 : 1;
4285 unsigned INLVLE1 : 1;
4286 unsigned INLVLE2 : 1;
4287 unsigned INLVLE3 : 1;
4288 unsigned : 1;
4289 unsigned : 1;
4290 unsigned : 1;
4291 unsigned : 1;
4294 struct
4296 unsigned INLVLE : 4;
4297 unsigned : 4;
4299 } __INLVLEbits_t;
4301 extern __at(0x0390) volatile __INLVLEbits_t INLVLEbits;
4303 #define _INLVLE0 0x01
4304 #define _INLVLE1 0x02
4305 #define _INLVLE2 0x04
4306 #define _INLVLE3 0x08
4308 //==============================================================================
4311 //==============================================================================
4312 // IOCAP Bits
4314 extern __at(0x0391) __sfr IOCAP;
4316 typedef struct
4318 unsigned IOCAP0 : 1;
4319 unsigned IOCAP1 : 1;
4320 unsigned IOCAP2 : 1;
4321 unsigned IOCAP3 : 1;
4322 unsigned IOCAP4 : 1;
4323 unsigned IOCAP5 : 1;
4324 unsigned IOCAP6 : 1;
4325 unsigned IOCAP7 : 1;
4326 } __IOCAPbits_t;
4328 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
4330 #define _IOCAP0 0x01
4331 #define _IOCAP1 0x02
4332 #define _IOCAP2 0x04
4333 #define _IOCAP3 0x08
4334 #define _IOCAP4 0x10
4335 #define _IOCAP5 0x20
4336 #define _IOCAP6 0x40
4337 #define _IOCAP7 0x80
4339 //==============================================================================
4342 //==============================================================================
4343 // IOCAN Bits
4345 extern __at(0x0392) __sfr IOCAN;
4347 typedef struct
4349 unsigned IOCAN0 : 1;
4350 unsigned IOCAN1 : 1;
4351 unsigned IOCAN2 : 1;
4352 unsigned IOCAN3 : 1;
4353 unsigned IOCAN4 : 1;
4354 unsigned IOCAN5 : 1;
4355 unsigned IOCAN6 : 1;
4356 unsigned IOCAN7 : 1;
4357 } __IOCANbits_t;
4359 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
4361 #define _IOCAN0 0x01
4362 #define _IOCAN1 0x02
4363 #define _IOCAN2 0x04
4364 #define _IOCAN3 0x08
4365 #define _IOCAN4 0x10
4366 #define _IOCAN5 0x20
4367 #define _IOCAN6 0x40
4368 #define _IOCAN7 0x80
4370 //==============================================================================
4373 //==============================================================================
4374 // IOCAF Bits
4376 extern __at(0x0393) __sfr IOCAF;
4378 typedef struct
4380 unsigned IOCAF0 : 1;
4381 unsigned IOCAF1 : 1;
4382 unsigned IOCAF2 : 1;
4383 unsigned IOCAF3 : 1;
4384 unsigned IOCAF4 : 1;
4385 unsigned IOCAF5 : 1;
4386 unsigned IOCAF6 : 1;
4387 unsigned IOCAF7 : 1;
4388 } __IOCAFbits_t;
4390 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
4392 #define _IOCAF0 0x01
4393 #define _IOCAF1 0x02
4394 #define _IOCAF2 0x04
4395 #define _IOCAF3 0x08
4396 #define _IOCAF4 0x10
4397 #define _IOCAF5 0x20
4398 #define _IOCAF6 0x40
4399 #define _IOCAF7 0x80
4401 //==============================================================================
4404 //==============================================================================
4405 // IOCBP Bits
4407 extern __at(0x0394) __sfr IOCBP;
4409 typedef struct
4411 unsigned IOCBP0 : 1;
4412 unsigned IOCBP1 : 1;
4413 unsigned IOCBP2 : 1;
4414 unsigned IOCBP3 : 1;
4415 unsigned IOCBP4 : 1;
4416 unsigned IOCBP5 : 1;
4417 unsigned IOCBP6 : 1;
4418 unsigned IOCBP7 : 1;
4419 } __IOCBPbits_t;
4421 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
4423 #define _IOCBP0 0x01
4424 #define _IOCBP1 0x02
4425 #define _IOCBP2 0x04
4426 #define _IOCBP3 0x08
4427 #define _IOCBP4 0x10
4428 #define _IOCBP5 0x20
4429 #define _IOCBP6 0x40
4430 #define _IOCBP7 0x80
4432 //==============================================================================
4435 //==============================================================================
4436 // IOCBN Bits
4438 extern __at(0x0395) __sfr IOCBN;
4440 typedef struct
4442 unsigned IOCBN0 : 1;
4443 unsigned IOCBN1 : 1;
4444 unsigned IOCBN2 : 1;
4445 unsigned IOCBN3 : 1;
4446 unsigned IOCBN4 : 1;
4447 unsigned IOCBN5 : 1;
4448 unsigned IOCBN6 : 1;
4449 unsigned IOCBN7 : 1;
4450 } __IOCBNbits_t;
4452 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
4454 #define _IOCBN0 0x01
4455 #define _IOCBN1 0x02
4456 #define _IOCBN2 0x04
4457 #define _IOCBN3 0x08
4458 #define _IOCBN4 0x10
4459 #define _IOCBN5 0x20
4460 #define _IOCBN6 0x40
4461 #define _IOCBN7 0x80
4463 //==============================================================================
4466 //==============================================================================
4467 // IOCBF Bits
4469 extern __at(0x0396) __sfr IOCBF;
4471 typedef struct
4473 unsigned IOCBF0 : 1;
4474 unsigned IOCBF1 : 1;
4475 unsigned IOCBF2 : 1;
4476 unsigned IOCBF3 : 1;
4477 unsigned IOCBF4 : 1;
4478 unsigned IOCBF5 : 1;
4479 unsigned IOCBF6 : 1;
4480 unsigned IOCBF7 : 1;
4481 } __IOCBFbits_t;
4483 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
4485 #define _IOCBF0 0x01
4486 #define _IOCBF1 0x02
4487 #define _IOCBF2 0x04
4488 #define _IOCBF3 0x08
4489 #define _IOCBF4 0x10
4490 #define _IOCBF5 0x20
4491 #define _IOCBF6 0x40
4492 #define _IOCBF7 0x80
4494 //==============================================================================
4497 //==============================================================================
4498 // IOCCP Bits
4500 extern __at(0x0397) __sfr IOCCP;
4502 typedef struct
4504 unsigned IOCCP0 : 1;
4505 unsigned IOCCP1 : 1;
4506 unsigned IOCCP2 : 1;
4507 unsigned IOCCP3 : 1;
4508 unsigned IOCCP4 : 1;
4509 unsigned IOCCP5 : 1;
4510 unsigned IOCCP6 : 1;
4511 unsigned IOCCP7 : 1;
4512 } __IOCCPbits_t;
4514 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
4516 #define _IOCCP0 0x01
4517 #define _IOCCP1 0x02
4518 #define _IOCCP2 0x04
4519 #define _IOCCP3 0x08
4520 #define _IOCCP4 0x10
4521 #define _IOCCP5 0x20
4522 #define _IOCCP6 0x40
4523 #define _IOCCP7 0x80
4525 //==============================================================================
4528 //==============================================================================
4529 // IOCCN Bits
4531 extern __at(0x0398) __sfr IOCCN;
4533 typedef struct
4535 unsigned IOCCN0 : 1;
4536 unsigned IOCCN1 : 1;
4537 unsigned IOCCN2 : 1;
4538 unsigned IOCCN3 : 1;
4539 unsigned IOCCN4 : 1;
4540 unsigned IOCCN5 : 1;
4541 unsigned IOCCN6 : 1;
4542 unsigned IOCCN7 : 1;
4543 } __IOCCNbits_t;
4545 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
4547 #define _IOCCN0 0x01
4548 #define _IOCCN1 0x02
4549 #define _IOCCN2 0x04
4550 #define _IOCCN3 0x08
4551 #define _IOCCN4 0x10
4552 #define _IOCCN5 0x20
4553 #define _IOCCN6 0x40
4554 #define _IOCCN7 0x80
4556 //==============================================================================
4559 //==============================================================================
4560 // IOCCF Bits
4562 extern __at(0x0399) __sfr IOCCF;
4564 typedef struct
4566 unsigned IOCCF0 : 1;
4567 unsigned IOCCF1 : 1;
4568 unsigned IOCCF2 : 1;
4569 unsigned IOCCF3 : 1;
4570 unsigned IOCCF4 : 1;
4571 unsigned IOCCF5 : 1;
4572 unsigned IOCCF6 : 1;
4573 unsigned IOCCF7 : 1;
4574 } __IOCCFbits_t;
4576 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
4578 #define _IOCCF0 0x01
4579 #define _IOCCF1 0x02
4580 #define _IOCCF2 0x04
4581 #define _IOCCF3 0x08
4582 #define _IOCCF4 0x10
4583 #define _IOCCF5 0x20
4584 #define _IOCCF6 0x40
4585 #define _IOCCF7 0x80
4587 //==============================================================================
4590 //==============================================================================
4591 // IOCEP Bits
4593 extern __at(0x039D) __sfr IOCEP;
4595 typedef struct
4597 unsigned : 1;
4598 unsigned : 1;
4599 unsigned : 1;
4600 unsigned IOCEP3 : 1;
4601 unsigned : 1;
4602 unsigned : 1;
4603 unsigned : 1;
4604 unsigned : 1;
4605 } __IOCEPbits_t;
4607 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits;
4609 #define _IOCEP3 0x08
4611 //==============================================================================
4614 //==============================================================================
4615 // IOCEN Bits
4617 extern __at(0x039E) __sfr IOCEN;
4619 typedef struct
4621 unsigned : 1;
4622 unsigned : 1;
4623 unsigned : 1;
4624 unsigned IOCEN3 : 1;
4625 unsigned : 1;
4626 unsigned : 1;
4627 unsigned : 1;
4628 unsigned : 1;
4629 } __IOCENbits_t;
4631 extern __at(0x039E) volatile __IOCENbits_t IOCENbits;
4633 #define _IOCEN3 0x08
4635 //==============================================================================
4638 //==============================================================================
4639 // IOCEF Bits
4641 extern __at(0x039F) __sfr IOCEF;
4643 typedef struct
4645 unsigned : 1;
4646 unsigned : 1;
4647 unsigned : 1;
4648 unsigned IOCEF3 : 1;
4649 unsigned : 1;
4650 unsigned : 1;
4651 unsigned : 1;
4652 unsigned : 1;
4653 } __IOCEFbits_t;
4655 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits;
4657 #define _IOCEF3 0x08
4659 //==============================================================================
4662 //==============================================================================
4663 // OPA1CON Bits
4665 extern __at(0x0511) __sfr OPA1CON;
4667 typedef union
4669 struct
4671 unsigned OPA1PCH0 : 1;
4672 unsigned OPA1PCH1 : 1;
4673 unsigned : 1;
4674 unsigned : 1;
4675 unsigned : 1;
4676 unsigned : 1;
4677 unsigned OPA1SP : 1;
4678 unsigned OPA1EN : 1;
4681 struct
4683 unsigned PCH0 : 1;
4684 unsigned PCH1 : 1;
4685 unsigned : 1;
4686 unsigned : 1;
4687 unsigned : 1;
4688 unsigned : 1;
4689 unsigned SP : 1;
4690 unsigned EN : 1;
4693 struct
4695 unsigned OPA1PCH : 2;
4696 unsigned : 6;
4699 struct
4701 unsigned PCH : 2;
4702 unsigned : 6;
4704 } __OPA1CONbits_t;
4706 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
4708 #define _OPA1PCH0 0x01
4709 #define _PCH0 0x01
4710 #define _OPA1PCH1 0x02
4711 #define _PCH1 0x02
4712 #define _OPA1SP 0x40
4713 #define _SP 0x40
4714 #define _OPA1EN 0x80
4715 #define _EN 0x80
4717 //==============================================================================
4720 //==============================================================================
4721 // OPA2CON Bits
4723 extern __at(0x0513) __sfr OPA2CON;
4725 typedef union
4727 struct
4729 unsigned OPA2PCH0 : 1;
4730 unsigned OPA2PCH1 : 1;
4731 unsigned : 1;
4732 unsigned : 1;
4733 unsigned : 1;
4734 unsigned : 1;
4735 unsigned OPA2SP : 1;
4736 unsigned OPA2EN : 1;
4739 struct
4741 unsigned PCH0 : 1;
4742 unsigned PCH1 : 1;
4743 unsigned : 1;
4744 unsigned : 1;
4745 unsigned : 1;
4746 unsigned : 1;
4747 unsigned SP : 1;
4748 unsigned EN : 1;
4751 struct
4753 unsigned PCH : 2;
4754 unsigned : 6;
4757 struct
4759 unsigned OPA2PCH : 2;
4760 unsigned : 6;
4762 } __OPA2CONbits_t;
4764 extern __at(0x0513) volatile __OPA2CONbits_t OPA2CONbits;
4766 #define _OPA2CON_OPA2PCH0 0x01
4767 #define _OPA2CON_PCH0 0x01
4768 #define _OPA2CON_OPA2PCH1 0x02
4769 #define _OPA2CON_PCH1 0x02
4770 #define _OPA2CON_OPA2SP 0x40
4771 #define _OPA2CON_SP 0x40
4772 #define _OPA2CON_OPA2EN 0x80
4773 #define _OPA2CON_EN 0x80
4775 //==============================================================================
4778 //==============================================================================
4779 // OPA3CON Bits
4781 extern __at(0x0515) __sfr OPA3CON;
4783 typedef union
4785 struct
4787 unsigned OPA3PCH0 : 1;
4788 unsigned OPA3PCH1 : 1;
4789 unsigned : 1;
4790 unsigned : 1;
4791 unsigned : 1;
4792 unsigned : 1;
4793 unsigned OPA3SP : 1;
4794 unsigned OPA3EN : 1;
4797 struct
4799 unsigned PCH0 : 1;
4800 unsigned PCH1 : 1;
4801 unsigned : 1;
4802 unsigned : 1;
4803 unsigned : 1;
4804 unsigned : 1;
4805 unsigned SP : 1;
4806 unsigned EN : 1;
4809 struct
4811 unsigned OPA3PCH : 2;
4812 unsigned : 6;
4815 struct
4817 unsigned PCH : 2;
4818 unsigned : 6;
4820 } __OPA3CONbits_t;
4822 extern __at(0x0515) volatile __OPA3CONbits_t OPA3CONbits;
4824 #define _OPA3CON_OPA3PCH0 0x01
4825 #define _OPA3CON_PCH0 0x01
4826 #define _OPA3CON_OPA3PCH1 0x02
4827 #define _OPA3CON_PCH1 0x02
4828 #define _OPA3CON_OPA3SP 0x40
4829 #define _OPA3CON_SP 0x40
4830 #define _OPA3CON_OPA3EN 0x80
4831 #define _OPA3CON_EN 0x80
4833 //==============================================================================
4836 //==============================================================================
4837 // CLKRCON Bits
4839 extern __at(0x051A) __sfr CLKRCON;
4841 typedef union
4843 struct
4845 unsigned CLKRDIV0 : 1;
4846 unsigned CLKRDIV1 : 1;
4847 unsigned CLKRDIV2 : 1;
4848 unsigned CLKRDC0 : 1;
4849 unsigned CLKRDC1 : 1;
4850 unsigned CLKRSLR : 1;
4851 unsigned CLKROE : 1;
4852 unsigned CLKREN : 1;
4855 struct
4857 unsigned CLKRDIV : 3;
4858 unsigned : 5;
4861 struct
4863 unsigned : 3;
4864 unsigned CLKRDC : 2;
4865 unsigned : 3;
4867 } __CLKRCONbits_t;
4869 extern __at(0x051A) volatile __CLKRCONbits_t CLKRCONbits;
4871 #define _CLKRDIV0 0x01
4872 #define _CLKRDIV1 0x02
4873 #define _CLKRDIV2 0x04
4874 #define _CLKRDC0 0x08
4875 #define _CLKRDC1 0x10
4876 #define _CLKRSLR 0x20
4877 #define _CLKROE 0x40
4878 #define _CLKREN 0x80
4880 //==============================================================================
4883 //==============================================================================
4884 // PSMC1CON Bits
4886 extern __at(0x0811) __sfr PSMC1CON;
4888 typedef union
4890 struct
4892 unsigned P1MODE0 : 1;
4893 unsigned P1MODE1 : 1;
4894 unsigned P1MODE2 : 1;
4895 unsigned P1MODE3 : 1;
4896 unsigned P1DBRE : 1;
4897 unsigned P1DBFE : 1;
4898 unsigned PSMC1LD : 1;
4899 unsigned PSMC1EN : 1;
4902 struct
4904 unsigned P1MODE : 4;
4905 unsigned : 4;
4907 } __PSMC1CONbits_t;
4909 extern __at(0x0811) volatile __PSMC1CONbits_t PSMC1CONbits;
4911 #define _P1MODE0 0x01
4912 #define _P1MODE1 0x02
4913 #define _P1MODE2 0x04
4914 #define _P1MODE3 0x08
4915 #define _P1DBRE 0x10
4916 #define _P1DBFE 0x20
4917 #define _PSMC1LD 0x40
4918 #define _PSMC1EN 0x80
4920 //==============================================================================
4923 //==============================================================================
4924 // PSMC1MDL Bits
4926 extern __at(0x0812) __sfr PSMC1MDL;
4928 typedef union
4930 struct
4932 unsigned P1MSRC0 : 1;
4933 unsigned P1MSRC1 : 1;
4934 unsigned P1MSRC2 : 1;
4935 unsigned P1MSRC3 : 1;
4936 unsigned : 1;
4937 unsigned P1MDLBIT : 1;
4938 unsigned P1MDLPOL : 1;
4939 unsigned P1MDLEN : 1;
4942 struct
4944 unsigned P1MSRC : 4;
4945 unsigned : 4;
4947 } __PSMC1MDLbits_t;
4949 extern __at(0x0812) volatile __PSMC1MDLbits_t PSMC1MDLbits;
4951 #define _P1MSRC0 0x01
4952 #define _P1MSRC1 0x02
4953 #define _P1MSRC2 0x04
4954 #define _P1MSRC3 0x08
4955 #define _P1MDLBIT 0x20
4956 #define _P1MDLPOL 0x40
4957 #define _P1MDLEN 0x80
4959 //==============================================================================
4962 //==============================================================================
4963 // PSMC1SYNC Bits
4965 extern __at(0x0813) __sfr PSMC1SYNC;
4967 typedef union
4969 struct
4971 unsigned P1SYNC0 : 1;
4972 unsigned P1SYNC1 : 1;
4973 unsigned P1SYNC2 : 1;
4974 unsigned : 1;
4975 unsigned : 1;
4976 unsigned P1DCPOL : 1;
4977 unsigned P1PRPOL : 1;
4978 unsigned P1POFST : 1;
4981 struct
4983 unsigned P1SYNC : 3;
4984 unsigned : 5;
4986 } __PSMC1SYNCbits_t;
4988 extern __at(0x0813) volatile __PSMC1SYNCbits_t PSMC1SYNCbits;
4990 #define _P1SYNC0 0x01
4991 #define _P1SYNC1 0x02
4992 #define _P1SYNC2 0x04
4993 #define _P1DCPOL 0x20
4994 #define _P1PRPOL 0x40
4995 #define _P1POFST 0x80
4997 //==============================================================================
5000 //==============================================================================
5001 // PSMC1CLK Bits
5003 extern __at(0x0814) __sfr PSMC1CLK;
5005 typedef union
5007 struct
5009 unsigned P1CSRC0 : 1;
5010 unsigned P1CSRC1 : 1;
5011 unsigned : 1;
5012 unsigned : 1;
5013 unsigned P1CPRE0 : 1;
5014 unsigned P1CPRE1 : 1;
5015 unsigned : 1;
5016 unsigned : 1;
5019 struct
5021 unsigned P1CSRC : 2;
5022 unsigned : 6;
5025 struct
5027 unsigned : 4;
5028 unsigned P1CPRE : 2;
5029 unsigned : 2;
5031 } __PSMC1CLKbits_t;
5033 extern __at(0x0814) volatile __PSMC1CLKbits_t PSMC1CLKbits;
5035 #define _P1CSRC0 0x01
5036 #define _P1CSRC1 0x02
5037 #define _P1CPRE0 0x10
5038 #define _P1CPRE1 0x20
5040 //==============================================================================
5043 //==============================================================================
5044 // PSMC1OEN Bits
5046 extern __at(0x0815) __sfr PSMC1OEN;
5048 typedef struct
5050 unsigned P1OEA : 1;
5051 unsigned P1OEB : 1;
5052 unsigned P1OEC : 1;
5053 unsigned P1OED : 1;
5054 unsigned P1OEE : 1;
5055 unsigned P1OEF : 1;
5056 unsigned : 1;
5057 unsigned : 1;
5058 } __PSMC1OENbits_t;
5060 extern __at(0x0815) volatile __PSMC1OENbits_t PSMC1OENbits;
5062 #define _P1OEA 0x01
5063 #define _P1OEB 0x02
5064 #define _P1OEC 0x04
5065 #define _P1OED 0x08
5066 #define _P1OEE 0x10
5067 #define _P1OEF 0x20
5069 //==============================================================================
5072 //==============================================================================
5073 // PSMC1POL Bits
5075 extern __at(0x0816) __sfr PSMC1POL;
5077 typedef struct
5079 unsigned P1POLA : 1;
5080 unsigned P1POLB : 1;
5081 unsigned P1POLC : 1;
5082 unsigned P1POLD : 1;
5083 unsigned P1POLE : 1;
5084 unsigned P1POLF : 1;
5085 unsigned P1INPOL : 1;
5086 unsigned : 1;
5087 } __PSMC1POLbits_t;
5089 extern __at(0x0816) volatile __PSMC1POLbits_t PSMC1POLbits;
5091 #define _P1POLA 0x01
5092 #define _P1POLB 0x02
5093 #define _P1POLC 0x04
5094 #define _P1POLD 0x08
5095 #define _P1POLE 0x10
5096 #define _P1POLF 0x20
5097 #define _P1INPOL 0x40
5099 //==============================================================================
5102 //==============================================================================
5103 // PSMC1BLNK Bits
5105 extern __at(0x0817) __sfr PSMC1BLNK;
5107 typedef union
5109 struct
5111 unsigned P1REBM0 : 1;
5112 unsigned P1REBM1 : 1;
5113 unsigned : 1;
5114 unsigned : 1;
5115 unsigned P1FEBM0 : 1;
5116 unsigned P1FEBM1 : 1;
5117 unsigned : 1;
5118 unsigned : 1;
5121 struct
5123 unsigned P1REBM : 2;
5124 unsigned : 6;
5127 struct
5129 unsigned : 4;
5130 unsigned P1FEBM : 2;
5131 unsigned : 2;
5133 } __PSMC1BLNKbits_t;
5135 extern __at(0x0817) volatile __PSMC1BLNKbits_t PSMC1BLNKbits;
5137 #define _P1REBM0 0x01
5138 #define _P1REBM1 0x02
5139 #define _P1FEBM0 0x10
5140 #define _P1FEBM1 0x20
5142 //==============================================================================
5145 //==============================================================================
5146 // PSMC1REBS Bits
5148 extern __at(0x0818) __sfr PSMC1REBS;
5150 typedef struct
5152 unsigned : 1;
5153 unsigned P1REBSC1 : 1;
5154 unsigned P1REBSC2 : 1;
5155 unsigned P1REBSC3 : 1;
5156 unsigned P1REBSC4 : 1;
5157 unsigned : 1;
5158 unsigned : 1;
5159 unsigned P1REBSIN : 1;
5160 } __PSMC1REBSbits_t;
5162 extern __at(0x0818) volatile __PSMC1REBSbits_t PSMC1REBSbits;
5164 #define _P1REBSC1 0x02
5165 #define _P1REBSC2 0x04
5166 #define _P1REBSC3 0x08
5167 #define _P1REBSC4 0x10
5168 #define _P1REBSIN 0x80
5170 //==============================================================================
5173 //==============================================================================
5174 // PSMC1FEBS Bits
5176 extern __at(0x0819) __sfr PSMC1FEBS;
5178 typedef struct
5180 unsigned : 1;
5181 unsigned P1FEBSC1 : 1;
5182 unsigned P1FEBSC2 : 1;
5183 unsigned P1FEBSC3 : 1;
5184 unsigned P1FEBSC4 : 1;
5185 unsigned : 1;
5186 unsigned : 1;
5187 unsigned P1FEBSIN : 1;
5188 } __PSMC1FEBSbits_t;
5190 extern __at(0x0819) volatile __PSMC1FEBSbits_t PSMC1FEBSbits;
5192 #define _P1FEBSC1 0x02
5193 #define _P1FEBSC2 0x04
5194 #define _P1FEBSC3 0x08
5195 #define _P1FEBSC4 0x10
5196 #define _P1FEBSIN 0x80
5198 //==============================================================================
5201 //==============================================================================
5202 // PSMC1PHS Bits
5204 extern __at(0x081A) __sfr PSMC1PHS;
5206 typedef struct
5208 unsigned P1PHST : 1;
5209 unsigned P1PHSC1 : 1;
5210 unsigned P1PHSC2 : 1;
5211 unsigned P1PHSC3 : 1;
5212 unsigned P1PHSC4 : 1;
5213 unsigned : 1;
5214 unsigned : 1;
5215 unsigned P1PHSIN : 1;
5216 } __PSMC1PHSbits_t;
5218 extern __at(0x081A) volatile __PSMC1PHSbits_t PSMC1PHSbits;
5220 #define _P1PHST 0x01
5221 #define _P1PHSC1 0x02
5222 #define _P1PHSC2 0x04
5223 #define _P1PHSC3 0x08
5224 #define _P1PHSC4 0x10
5225 #define _P1PHSIN 0x80
5227 //==============================================================================
5230 //==============================================================================
5231 // PSMC1DCS Bits
5233 extern __at(0x081B) __sfr PSMC1DCS;
5235 typedef struct
5237 unsigned P1DCST : 1;
5238 unsigned P1DCSC1 : 1;
5239 unsigned P1DCSC2 : 1;
5240 unsigned P1DCSC3 : 1;
5241 unsigned P1DCSC4 : 1;
5242 unsigned : 1;
5243 unsigned : 1;
5244 unsigned P1DCSIN : 1;
5245 } __PSMC1DCSbits_t;
5247 extern __at(0x081B) volatile __PSMC1DCSbits_t PSMC1DCSbits;
5249 #define _P1DCST 0x01
5250 #define _P1DCSC1 0x02
5251 #define _P1DCSC2 0x04
5252 #define _P1DCSC3 0x08
5253 #define _P1DCSC4 0x10
5254 #define _P1DCSIN 0x80
5256 //==============================================================================
5259 //==============================================================================
5260 // PSMC1PRS Bits
5262 extern __at(0x081C) __sfr PSMC1PRS;
5264 typedef struct
5266 unsigned P1PRST : 1;
5267 unsigned P1PRSC1 : 1;
5268 unsigned P1PRSC2 : 1;
5269 unsigned P1PRSC3 : 1;
5270 unsigned P1PRSC4 : 1;
5271 unsigned : 1;
5272 unsigned : 1;
5273 unsigned P1PRSIN : 1;
5274 } __PSMC1PRSbits_t;
5276 extern __at(0x081C) volatile __PSMC1PRSbits_t PSMC1PRSbits;
5278 #define _P1PRST 0x01
5279 #define _P1PRSC1 0x02
5280 #define _P1PRSC2 0x04
5281 #define _P1PRSC3 0x08
5282 #define _P1PRSC4 0x10
5283 #define _P1PRSIN 0x80
5285 //==============================================================================
5288 //==============================================================================
5289 // PSMC1ASDC Bits
5291 extern __at(0x081D) __sfr PSMC1ASDC;
5293 typedef struct
5295 unsigned P1ASDOV : 1;
5296 unsigned : 1;
5297 unsigned : 1;
5298 unsigned : 1;
5299 unsigned : 1;
5300 unsigned P1ARSEN : 1;
5301 unsigned P1ASDEN : 1;
5302 unsigned P1ASE : 1;
5303 } __PSMC1ASDCbits_t;
5305 extern __at(0x081D) volatile __PSMC1ASDCbits_t PSMC1ASDCbits;
5307 #define _P1ASDOV 0x01
5308 #define _P1ARSEN 0x20
5309 #define _P1ASDEN 0x40
5310 #define _P1ASE 0x80
5312 //==============================================================================
5315 //==============================================================================
5316 // PSMC1ASDL Bits
5318 extern __at(0x081E) __sfr PSMC1ASDL;
5320 typedef struct
5322 unsigned P1ASDLA : 1;
5323 unsigned P1ASDLB : 1;
5324 unsigned P1ASDLC : 1;
5325 unsigned P1ASDLD : 1;
5326 unsigned P1ASDLE : 1;
5327 unsigned P1ASDLF : 1;
5328 unsigned : 1;
5329 unsigned : 1;
5330 } __PSMC1ASDLbits_t;
5332 extern __at(0x081E) volatile __PSMC1ASDLbits_t PSMC1ASDLbits;
5334 #define _P1ASDLA 0x01
5335 #define _P1ASDLB 0x02
5336 #define _P1ASDLC 0x04
5337 #define _P1ASDLD 0x08
5338 #define _P1ASDLE 0x10
5339 #define _P1ASDLF 0x20
5341 //==============================================================================
5344 //==============================================================================
5345 // PSMC1ASDS Bits
5347 extern __at(0x081F) __sfr PSMC1ASDS;
5349 typedef struct
5351 unsigned : 1;
5352 unsigned P1ASDSC1 : 1;
5353 unsigned P1ASDSC2 : 1;
5354 unsigned P1ASDSC3 : 1;
5355 unsigned P1ASDSC4 : 1;
5356 unsigned : 1;
5357 unsigned : 1;
5358 unsigned P1ASDSIN : 1;
5359 } __PSMC1ASDSbits_t;
5361 extern __at(0x081F) volatile __PSMC1ASDSbits_t PSMC1ASDSbits;
5363 #define _P1ASDSC1 0x02
5364 #define _P1ASDSC2 0x04
5365 #define _P1ASDSC3 0x08
5366 #define _P1ASDSC4 0x10
5367 #define _P1ASDSIN 0x80
5369 //==============================================================================
5372 //==============================================================================
5373 // PSMC1INT Bits
5375 extern __at(0x0820) __sfr PSMC1INT;
5377 typedef struct
5379 unsigned P1TPRIF : 1;
5380 unsigned P1TDCIF : 1;
5381 unsigned P1TPHIF : 1;
5382 unsigned P1TOVIF : 1;
5383 unsigned P1TPRIE : 1;
5384 unsigned P1TDCIE : 1;
5385 unsigned P1TPHIE : 1;
5386 unsigned P1TOVIE : 1;
5387 } __PSMC1INTbits_t;
5389 extern __at(0x0820) volatile __PSMC1INTbits_t PSMC1INTbits;
5391 #define _P1TPRIF 0x01
5392 #define _P1TDCIF 0x02
5393 #define _P1TPHIF 0x04
5394 #define _P1TOVIF 0x08
5395 #define _P1TPRIE 0x10
5396 #define _P1TDCIE 0x20
5397 #define _P1TPHIE 0x40
5398 #define _P1TOVIE 0x80
5400 //==============================================================================
5402 extern __at(0x0821) __sfr PSMC1PH;
5404 //==============================================================================
5405 // PSMC1PHL Bits
5407 extern __at(0x0821) __sfr PSMC1PHL;
5409 typedef struct
5411 unsigned PSMC1PH0 : 1;
5412 unsigned PSMC1PH1 : 1;
5413 unsigned PSMC1PH2 : 1;
5414 unsigned PSMC1PH3 : 1;
5415 unsigned PSMC1PH4 : 1;
5416 unsigned PSMC1PH5 : 1;
5417 unsigned PSMC1PH6 : 1;
5418 unsigned PSMC1PH7 : 1;
5419 } __PSMC1PHLbits_t;
5421 extern __at(0x0821) volatile __PSMC1PHLbits_t PSMC1PHLbits;
5423 #define _PSMC1PH0 0x01
5424 #define _PSMC1PH1 0x02
5425 #define _PSMC1PH2 0x04
5426 #define _PSMC1PH3 0x08
5427 #define _PSMC1PH4 0x10
5428 #define _PSMC1PH5 0x20
5429 #define _PSMC1PH6 0x40
5430 #define _PSMC1PH7 0x80
5432 //==============================================================================
5435 //==============================================================================
5436 // PSMC1PHH Bits
5438 extern __at(0x0822) __sfr PSMC1PHH;
5440 typedef struct
5442 unsigned PSMC1PH8 : 1;
5443 unsigned PSMC1PH9 : 1;
5444 unsigned PSMC1PH10 : 1;
5445 unsigned PSMC1PH11 : 1;
5446 unsigned PSMC1PH12 : 1;
5447 unsigned PSMC1PH13 : 1;
5448 unsigned PSMC1PH14 : 1;
5449 unsigned PSMC1PH15 : 1;
5450 } __PSMC1PHHbits_t;
5452 extern __at(0x0822) volatile __PSMC1PHHbits_t PSMC1PHHbits;
5454 #define _PSMC1PH8 0x01
5455 #define _PSMC1PH9 0x02
5456 #define _PSMC1PH10 0x04
5457 #define _PSMC1PH11 0x08
5458 #define _PSMC1PH12 0x10
5459 #define _PSMC1PH13 0x20
5460 #define _PSMC1PH14 0x40
5461 #define _PSMC1PH15 0x80
5463 //==============================================================================
5465 extern __at(0x0823) __sfr PSMC1DC;
5467 //==============================================================================
5468 // PSMC1DCL Bits
5470 extern __at(0x0823) __sfr PSMC1DCL;
5472 typedef struct
5474 unsigned PSMC1DC0 : 1;
5475 unsigned PSMC1DC1 : 1;
5476 unsigned PSMC1DC2 : 1;
5477 unsigned PSMC1DC3 : 1;
5478 unsigned PSMC1DC4 : 1;
5479 unsigned PSMC1DC5 : 1;
5480 unsigned PSMC1DC6 : 1;
5481 unsigned PSMC1DC7 : 1;
5482 } __PSMC1DCLbits_t;
5484 extern __at(0x0823) volatile __PSMC1DCLbits_t PSMC1DCLbits;
5486 #define _PSMC1DC0 0x01
5487 #define _PSMC1DC1 0x02
5488 #define _PSMC1DC2 0x04
5489 #define _PSMC1DC3 0x08
5490 #define _PSMC1DC4 0x10
5491 #define _PSMC1DC5 0x20
5492 #define _PSMC1DC6 0x40
5493 #define _PSMC1DC7 0x80
5495 //==============================================================================
5498 //==============================================================================
5499 // PSMC1DCH Bits
5501 extern __at(0x0824) __sfr PSMC1DCH;
5503 typedef struct
5505 unsigned PSMC1DC8 : 1;
5506 unsigned PSMC1DC9 : 1;
5507 unsigned PSMC1DC10 : 1;
5508 unsigned PSMC1DC11 : 1;
5509 unsigned PSMC1DC12 : 1;
5510 unsigned PSMC1DC13 : 1;
5511 unsigned PSMC1DC14 : 1;
5512 unsigned PSMC1DC15 : 1;
5513 } __PSMC1DCHbits_t;
5515 extern __at(0x0824) volatile __PSMC1DCHbits_t PSMC1DCHbits;
5517 #define _PSMC1DC8 0x01
5518 #define _PSMC1DC9 0x02
5519 #define _PSMC1DC10 0x04
5520 #define _PSMC1DC11 0x08
5521 #define _PSMC1DC12 0x10
5522 #define _PSMC1DC13 0x20
5523 #define _PSMC1DC14 0x40
5524 #define _PSMC1DC15 0x80
5526 //==============================================================================
5528 extern __at(0x0825) __sfr PSMC1PR;
5530 //==============================================================================
5531 // PSMC1PRL Bits
5533 extern __at(0x0825) __sfr PSMC1PRL;
5535 typedef struct
5537 unsigned PSMC1PR0 : 1;
5538 unsigned PSMC1PR1 : 1;
5539 unsigned PSMC1PR2 : 1;
5540 unsigned PSMC1PR3 : 1;
5541 unsigned PSMC1PR4 : 1;
5542 unsigned PSMC1PR5 : 1;
5543 unsigned PSMC1PR6 : 1;
5544 unsigned PSMC1PR7 : 1;
5545 } __PSMC1PRLbits_t;
5547 extern __at(0x0825) volatile __PSMC1PRLbits_t PSMC1PRLbits;
5549 #define _PSMC1PR0 0x01
5550 #define _PSMC1PR1 0x02
5551 #define _PSMC1PR2 0x04
5552 #define _PSMC1PR3 0x08
5553 #define _PSMC1PR4 0x10
5554 #define _PSMC1PR5 0x20
5555 #define _PSMC1PR6 0x40
5556 #define _PSMC1PR7 0x80
5558 //==============================================================================
5561 //==============================================================================
5562 // PSMC1PRH Bits
5564 extern __at(0x0826) __sfr PSMC1PRH;
5566 typedef struct
5568 unsigned PSMC1PR8 : 1;
5569 unsigned PSMC1PR9 : 1;
5570 unsigned PSMC1PR10 : 1;
5571 unsigned PSMC1PR11 : 1;
5572 unsigned PSMC1PR12 : 1;
5573 unsigned PSMC1PR13 : 1;
5574 unsigned PSMC1PR14 : 1;
5575 unsigned PSMC1PR15 : 1;
5576 } __PSMC1PRHbits_t;
5578 extern __at(0x0826) volatile __PSMC1PRHbits_t PSMC1PRHbits;
5580 #define _PSMC1PR8 0x01
5581 #define _PSMC1PR9 0x02
5582 #define _PSMC1PR10 0x04
5583 #define _PSMC1PR11 0x08
5584 #define _PSMC1PR12 0x10
5585 #define _PSMC1PR13 0x20
5586 #define _PSMC1PR14 0x40
5587 #define _PSMC1PR15 0x80
5589 //==============================================================================
5591 extern __at(0x0827) __sfr PSMC1TMR;
5593 //==============================================================================
5594 // PSMC1TMRL Bits
5596 extern __at(0x0827) __sfr PSMC1TMRL;
5598 typedef struct
5600 unsigned PSMC1TMR0 : 1;
5601 unsigned PSMC1TMR1 : 1;
5602 unsigned PSMC1TMR2 : 1;
5603 unsigned PSMC1TMR3 : 1;
5604 unsigned PSMC1TMR4 : 1;
5605 unsigned PSMC1TMR5 : 1;
5606 unsigned PSMC1TMR6 : 1;
5607 unsigned PSMC1TMR7 : 1;
5608 } __PSMC1TMRLbits_t;
5610 extern __at(0x0827) volatile __PSMC1TMRLbits_t PSMC1TMRLbits;
5612 #define _PSMC1TMR0 0x01
5613 #define _PSMC1TMR1 0x02
5614 #define _PSMC1TMR2 0x04
5615 #define _PSMC1TMR3 0x08
5616 #define _PSMC1TMR4 0x10
5617 #define _PSMC1TMR5 0x20
5618 #define _PSMC1TMR6 0x40
5619 #define _PSMC1TMR7 0x80
5621 //==============================================================================
5624 //==============================================================================
5625 // PSMC1TMRH Bits
5627 extern __at(0x0828) __sfr PSMC1TMRH;
5629 typedef struct
5631 unsigned PSMC1TMR8 : 1;
5632 unsigned PSMC1TMR9 : 1;
5633 unsigned PSMC1TMR10 : 1;
5634 unsigned PSMC1TMR11 : 1;
5635 unsigned PSMC1TMR12 : 1;
5636 unsigned PSMC1TMR13 : 1;
5637 unsigned PSMC1TMR14 : 1;
5638 unsigned PSMC1TMR15 : 1;
5639 } __PSMC1TMRHbits_t;
5641 extern __at(0x0828) volatile __PSMC1TMRHbits_t PSMC1TMRHbits;
5643 #define _PSMC1TMR8 0x01
5644 #define _PSMC1TMR9 0x02
5645 #define _PSMC1TMR10 0x04
5646 #define _PSMC1TMR11 0x08
5647 #define _PSMC1TMR12 0x10
5648 #define _PSMC1TMR13 0x20
5649 #define _PSMC1TMR14 0x40
5650 #define _PSMC1TMR15 0x80
5652 //==============================================================================
5655 //==============================================================================
5656 // PSMC1DBR Bits
5658 extern __at(0x0829) __sfr PSMC1DBR;
5660 typedef struct
5662 unsigned PSMC1DBR0 : 1;
5663 unsigned PSMC1DBR1 : 1;
5664 unsigned PSMC1DBR2 : 1;
5665 unsigned PSMC1DBR3 : 1;
5666 unsigned PSMC1DBR4 : 1;
5667 unsigned PSMC1DBR5 : 1;
5668 unsigned PSMC1DBR6 : 1;
5669 unsigned PSMC1DBR7 : 1;
5670 } __PSMC1DBRbits_t;
5672 extern __at(0x0829) volatile __PSMC1DBRbits_t PSMC1DBRbits;
5674 #define _PSMC1DBR0 0x01
5675 #define _PSMC1DBR1 0x02
5676 #define _PSMC1DBR2 0x04
5677 #define _PSMC1DBR3 0x08
5678 #define _PSMC1DBR4 0x10
5679 #define _PSMC1DBR5 0x20
5680 #define _PSMC1DBR6 0x40
5681 #define _PSMC1DBR7 0x80
5683 //==============================================================================
5686 //==============================================================================
5687 // PSMC1DBF Bits
5689 extern __at(0x082A) __sfr PSMC1DBF;
5691 typedef struct
5693 unsigned PSMC1DBF0 : 1;
5694 unsigned PSMC1DBF1 : 1;
5695 unsigned PSMC1DBF2 : 1;
5696 unsigned PSMC1DBF3 : 1;
5697 unsigned PSMC1DBF4 : 1;
5698 unsigned PSMC1DBF5 : 1;
5699 unsigned PSMC1DBF6 : 1;
5700 unsigned PSMC1DBF7 : 1;
5701 } __PSMC1DBFbits_t;
5703 extern __at(0x082A) volatile __PSMC1DBFbits_t PSMC1DBFbits;
5705 #define _PSMC1DBF0 0x01
5706 #define _PSMC1DBF1 0x02
5707 #define _PSMC1DBF2 0x04
5708 #define _PSMC1DBF3 0x08
5709 #define _PSMC1DBF4 0x10
5710 #define _PSMC1DBF5 0x20
5711 #define _PSMC1DBF6 0x40
5712 #define _PSMC1DBF7 0x80
5714 //==============================================================================
5717 //==============================================================================
5718 // PSMC1BLKR Bits
5720 extern __at(0x082B) __sfr PSMC1BLKR;
5722 typedef struct
5724 unsigned PSMC1BLKR0 : 1;
5725 unsigned PSMC1BLKR1 : 1;
5726 unsigned PSMC1BLKR2 : 1;
5727 unsigned PSMC1BLKR3 : 1;
5728 unsigned PSMC1BLKR4 : 1;
5729 unsigned PSMC1BLKR5 : 1;
5730 unsigned PSMC1BLKR6 : 1;
5731 unsigned PSMC1BLKR7 : 1;
5732 } __PSMC1BLKRbits_t;
5734 extern __at(0x082B) volatile __PSMC1BLKRbits_t PSMC1BLKRbits;
5736 #define _PSMC1BLKR0 0x01
5737 #define _PSMC1BLKR1 0x02
5738 #define _PSMC1BLKR2 0x04
5739 #define _PSMC1BLKR3 0x08
5740 #define _PSMC1BLKR4 0x10
5741 #define _PSMC1BLKR5 0x20
5742 #define _PSMC1BLKR6 0x40
5743 #define _PSMC1BLKR7 0x80
5745 //==============================================================================
5748 //==============================================================================
5749 // PSMC1BLKF Bits
5751 extern __at(0x082C) __sfr PSMC1BLKF;
5753 typedef struct
5755 unsigned PSMC1BLKF0 : 1;
5756 unsigned PSMC1BLKF1 : 1;
5757 unsigned PSMC1BLKF2 : 1;
5758 unsigned PSMC1BLKF3 : 1;
5759 unsigned PSMC1BLKF4 : 1;
5760 unsigned PSMC1BLKF5 : 1;
5761 unsigned PSMC1BLKF6 : 1;
5762 unsigned PSMC1BLKF7 : 1;
5763 } __PSMC1BLKFbits_t;
5765 extern __at(0x082C) volatile __PSMC1BLKFbits_t PSMC1BLKFbits;
5767 #define _PSMC1BLKF0 0x01
5768 #define _PSMC1BLKF1 0x02
5769 #define _PSMC1BLKF2 0x04
5770 #define _PSMC1BLKF3 0x08
5771 #define _PSMC1BLKF4 0x10
5772 #define _PSMC1BLKF5 0x20
5773 #define _PSMC1BLKF6 0x40
5774 #define _PSMC1BLKF7 0x80
5776 //==============================================================================
5779 //==============================================================================
5780 // PSMC1FFA Bits
5782 extern __at(0x082D) __sfr PSMC1FFA;
5784 typedef union
5786 struct
5788 unsigned PSMC1FFA0 : 1;
5789 unsigned PSMC1FFA1 : 1;
5790 unsigned PSMC1FFA2 : 1;
5791 unsigned PSMC1FFA3 : 1;
5792 unsigned : 1;
5793 unsigned : 1;
5794 unsigned : 1;
5795 unsigned : 1;
5798 struct
5800 unsigned PSMC1FFA : 4;
5801 unsigned : 4;
5803 } __PSMC1FFAbits_t;
5805 extern __at(0x082D) volatile __PSMC1FFAbits_t PSMC1FFAbits;
5807 #define _PSMC1FFA0 0x01
5808 #define _PSMC1FFA1 0x02
5809 #define _PSMC1FFA2 0x04
5810 #define _PSMC1FFA3 0x08
5812 //==============================================================================
5815 //==============================================================================
5816 // PSMC1STR0 Bits
5818 extern __at(0x082E) __sfr PSMC1STR0;
5820 typedef struct
5822 unsigned P1STRA : 1;
5823 unsigned P1STRB : 1;
5824 unsigned P1STRC : 1;
5825 unsigned P1STRD : 1;
5826 unsigned P1STRE : 1;
5827 unsigned P1STRF : 1;
5828 unsigned : 1;
5829 unsigned : 1;
5830 } __PSMC1STR0bits_t;
5832 extern __at(0x082E) volatile __PSMC1STR0bits_t PSMC1STR0bits;
5834 #define _P1STRA 0x01
5835 #define _P1STRB 0x02
5836 #define _P1STRC 0x04
5837 #define _P1STRD 0x08
5838 #define _P1STRE 0x10
5839 #define _P1STRF 0x20
5841 //==============================================================================
5844 //==============================================================================
5845 // PSMC1STR1 Bits
5847 extern __at(0x082F) __sfr PSMC1STR1;
5849 typedef struct
5851 unsigned P1HSMEN : 1;
5852 unsigned P1LSMEN : 1;
5853 unsigned : 1;
5854 unsigned : 1;
5855 unsigned : 1;
5856 unsigned : 1;
5857 unsigned : 1;
5858 unsigned P1SSYNC : 1;
5859 } __PSMC1STR1bits_t;
5861 extern __at(0x082F) volatile __PSMC1STR1bits_t PSMC1STR1bits;
5863 #define _P1HSMEN 0x01
5864 #define _P1LSMEN 0x02
5865 #define _P1SSYNC 0x80
5867 //==============================================================================
5870 //==============================================================================
5871 // PSMC2CON Bits
5873 extern __at(0x0831) __sfr PSMC2CON;
5875 typedef union
5877 struct
5879 unsigned P2MODE0 : 1;
5880 unsigned P2MODE1 : 1;
5881 unsigned P2MODE2 : 1;
5882 unsigned P2MODE3 : 1;
5883 unsigned P2DBRE : 1;
5884 unsigned P2DBFE : 1;
5885 unsigned PSMC2LD : 1;
5886 unsigned PSMC2EN : 1;
5889 struct
5891 unsigned P2MODE : 4;
5892 unsigned : 4;
5894 } __PSMC2CONbits_t;
5896 extern __at(0x0831) volatile __PSMC2CONbits_t PSMC2CONbits;
5898 #define _P2MODE0 0x01
5899 #define _P2MODE1 0x02
5900 #define _P2MODE2 0x04
5901 #define _P2MODE3 0x08
5902 #define _P2DBRE 0x10
5903 #define _P2DBFE 0x20
5904 #define _PSMC2LD 0x40
5905 #define _PSMC2EN 0x80
5907 //==============================================================================
5910 //==============================================================================
5911 // PSMC2MDL Bits
5913 extern __at(0x0832) __sfr PSMC2MDL;
5915 typedef union
5917 struct
5919 unsigned P2MSRC0 : 1;
5920 unsigned P2MSRC1 : 1;
5921 unsigned P2MSRC2 : 1;
5922 unsigned P2MSRC3 : 1;
5923 unsigned : 1;
5924 unsigned P2MDLBIT : 1;
5925 unsigned P2MDLPOL : 1;
5926 unsigned P2MDLEN : 1;
5929 struct
5931 unsigned P2MSRC : 4;
5932 unsigned : 4;
5934 } __PSMC2MDLbits_t;
5936 extern __at(0x0832) volatile __PSMC2MDLbits_t PSMC2MDLbits;
5938 #define _P2MSRC0 0x01
5939 #define _P2MSRC1 0x02
5940 #define _P2MSRC2 0x04
5941 #define _P2MSRC3 0x08
5942 #define _P2MDLBIT 0x20
5943 #define _P2MDLPOL 0x40
5944 #define _P2MDLEN 0x80
5946 //==============================================================================
5949 //==============================================================================
5950 // PSMC2SYNC Bits
5952 extern __at(0x0833) __sfr PSMC2SYNC;
5954 typedef union
5956 struct
5958 unsigned P2SYNC0 : 1;
5959 unsigned P2SYNC1 : 1;
5960 unsigned P2SYNC2 : 1;
5961 unsigned : 1;
5962 unsigned : 1;
5963 unsigned P2DCPOL : 1;
5964 unsigned P2PRPOL : 1;
5965 unsigned P2POFST : 1;
5968 struct
5970 unsigned P2SYNC : 3;
5971 unsigned : 5;
5973 } __PSMC2SYNCbits_t;
5975 extern __at(0x0833) volatile __PSMC2SYNCbits_t PSMC2SYNCbits;
5977 #define _P2SYNC0 0x01
5978 #define _P2SYNC1 0x02
5979 #define _P2SYNC2 0x04
5980 #define _P2DCPOL 0x20
5981 #define _P2PRPOL 0x40
5982 #define _P2POFST 0x80
5984 //==============================================================================
5987 //==============================================================================
5988 // PSMC2CLK Bits
5990 extern __at(0x0834) __sfr PSMC2CLK;
5992 typedef union
5994 struct
5996 unsigned P2CSRC0 : 1;
5997 unsigned P2CSRC1 : 1;
5998 unsigned : 1;
5999 unsigned : 1;
6000 unsigned P2CPRE0 : 1;
6001 unsigned P2CPRE1 : 1;
6002 unsigned : 1;
6003 unsigned : 1;
6006 struct
6008 unsigned P2CSRC : 2;
6009 unsigned : 6;
6012 struct
6014 unsigned : 4;
6015 unsigned P2CPRE : 2;
6016 unsigned : 2;
6018 } __PSMC2CLKbits_t;
6020 extern __at(0x0834) volatile __PSMC2CLKbits_t PSMC2CLKbits;
6022 #define _P2CSRC0 0x01
6023 #define _P2CSRC1 0x02
6024 #define _P2CPRE0 0x10
6025 #define _P2CPRE1 0x20
6027 //==============================================================================
6030 //==============================================================================
6031 // PSMC2OEN Bits
6033 extern __at(0x0835) __sfr PSMC2OEN;
6035 typedef struct
6037 unsigned P2OEA : 1;
6038 unsigned P2OEB : 1;
6039 unsigned : 1;
6040 unsigned : 1;
6041 unsigned : 1;
6042 unsigned : 1;
6043 unsigned : 1;
6044 unsigned : 1;
6045 } __PSMC2OENbits_t;
6047 extern __at(0x0835) volatile __PSMC2OENbits_t PSMC2OENbits;
6049 #define _P2OEA 0x01
6050 #define _P2OEB 0x02
6052 //==============================================================================
6055 //==============================================================================
6056 // PSMC2POL Bits
6058 extern __at(0x0836) __sfr PSMC2POL;
6060 typedef struct
6062 unsigned P2POLA : 1;
6063 unsigned P2POLB : 1;
6064 unsigned : 1;
6065 unsigned : 1;
6066 unsigned : 1;
6067 unsigned : 1;
6068 unsigned P2INPOL : 1;
6069 unsigned : 1;
6070 } __PSMC2POLbits_t;
6072 extern __at(0x0836) volatile __PSMC2POLbits_t PSMC2POLbits;
6074 #define _P2POLA 0x01
6075 #define _P2POLB 0x02
6076 #define _P2INPOL 0x40
6078 //==============================================================================
6081 //==============================================================================
6082 // PSMC2BLNK Bits
6084 extern __at(0x0837) __sfr PSMC2BLNK;
6086 typedef union
6088 struct
6090 unsigned P2REBM0 : 1;
6091 unsigned P2REBM1 : 1;
6092 unsigned : 1;
6093 unsigned : 1;
6094 unsigned P2FEBM0 : 1;
6095 unsigned P2FEBM1 : 1;
6096 unsigned : 1;
6097 unsigned : 1;
6100 struct
6102 unsigned P2REBM : 2;
6103 unsigned : 6;
6106 struct
6108 unsigned : 4;
6109 unsigned P2FEBM : 2;
6110 unsigned : 2;
6112 } __PSMC2BLNKbits_t;
6114 extern __at(0x0837) volatile __PSMC2BLNKbits_t PSMC2BLNKbits;
6116 #define _P2REBM0 0x01
6117 #define _P2REBM1 0x02
6118 #define _P2FEBM0 0x10
6119 #define _P2FEBM1 0x20
6121 //==============================================================================
6124 //==============================================================================
6125 // PSMC2REBS Bits
6127 extern __at(0x0838) __sfr PSMC2REBS;
6129 typedef struct
6131 unsigned : 1;
6132 unsigned P2REBSC1 : 1;
6133 unsigned P2REBSC2 : 1;
6134 unsigned P2REBSC3 : 1;
6135 unsigned P2REBSC4 : 1;
6136 unsigned : 1;
6137 unsigned : 1;
6138 unsigned P2REBSIN : 1;
6139 } __PSMC2REBSbits_t;
6141 extern __at(0x0838) volatile __PSMC2REBSbits_t PSMC2REBSbits;
6143 #define _P2REBSC1 0x02
6144 #define _P2REBSC2 0x04
6145 #define _P2REBSC3 0x08
6146 #define _P2REBSC4 0x10
6147 #define _P2REBSIN 0x80
6149 //==============================================================================
6152 //==============================================================================
6153 // PSMC2FEBS Bits
6155 extern __at(0x0839) __sfr PSMC2FEBS;
6157 typedef struct
6159 unsigned : 1;
6160 unsigned P2FEBSC1 : 1;
6161 unsigned P2FEBSC2 : 1;
6162 unsigned P2FEBSC3 : 1;
6163 unsigned P2FEBSC4 : 1;
6164 unsigned : 1;
6165 unsigned : 1;
6166 unsigned P2FEBSIN : 1;
6167 } __PSMC2FEBSbits_t;
6169 extern __at(0x0839) volatile __PSMC2FEBSbits_t PSMC2FEBSbits;
6171 #define _P2FEBSC1 0x02
6172 #define _P2FEBSC2 0x04
6173 #define _P2FEBSC3 0x08
6174 #define _P2FEBSC4 0x10
6175 #define _P2FEBSIN 0x80
6177 //==============================================================================
6180 //==============================================================================
6181 // PSMC2PHS Bits
6183 extern __at(0x083A) __sfr PSMC2PHS;
6185 typedef struct
6187 unsigned P2PHST : 1;
6188 unsigned P2PHSC1 : 1;
6189 unsigned P2PHSC2 : 1;
6190 unsigned P2PHSC3 : 1;
6191 unsigned P2PHSC4 : 1;
6192 unsigned : 1;
6193 unsigned : 1;
6194 unsigned P2PHSIN : 1;
6195 } __PSMC2PHSbits_t;
6197 extern __at(0x083A) volatile __PSMC2PHSbits_t PSMC2PHSbits;
6199 #define _P2PHST 0x01
6200 #define _P2PHSC1 0x02
6201 #define _P2PHSC2 0x04
6202 #define _P2PHSC3 0x08
6203 #define _P2PHSC4 0x10
6204 #define _P2PHSIN 0x80
6206 //==============================================================================
6209 //==============================================================================
6210 // PSMC2DCS Bits
6212 extern __at(0x083B) __sfr PSMC2DCS;
6214 typedef struct
6216 unsigned P2DCST : 1;
6217 unsigned P2DCSC1 : 1;
6218 unsigned P2DCSC2 : 1;
6219 unsigned P2DCSC3 : 1;
6220 unsigned P2DCSC4 : 1;
6221 unsigned : 1;
6222 unsigned : 1;
6223 unsigned P2DCSIN : 1;
6224 } __PSMC2DCSbits_t;
6226 extern __at(0x083B) volatile __PSMC2DCSbits_t PSMC2DCSbits;
6228 #define _P2DCST 0x01
6229 #define _P2DCSC1 0x02
6230 #define _P2DCSC2 0x04
6231 #define _P2DCSC3 0x08
6232 #define _P2DCSC4 0x10
6233 #define _P2DCSIN 0x80
6235 //==============================================================================
6238 //==============================================================================
6239 // PSMC2PRS Bits
6241 extern __at(0x083C) __sfr PSMC2PRS;
6243 typedef struct
6245 unsigned P2PRST : 1;
6246 unsigned P2PRSC1 : 1;
6247 unsigned P2PRSC2 : 1;
6248 unsigned P2PRSC3 : 1;
6249 unsigned P2PRSC4 : 1;
6250 unsigned : 1;
6251 unsigned : 1;
6252 unsigned P2PRSIN : 1;
6253 } __PSMC2PRSbits_t;
6255 extern __at(0x083C) volatile __PSMC2PRSbits_t PSMC2PRSbits;
6257 #define _P2PRST 0x01
6258 #define _P2PRSC1 0x02
6259 #define _P2PRSC2 0x04
6260 #define _P2PRSC3 0x08
6261 #define _P2PRSC4 0x10
6262 #define _P2PRSIN 0x80
6264 //==============================================================================
6267 //==============================================================================
6268 // PSMC2ASDC Bits
6270 extern __at(0x083D) __sfr PSMC2ASDC;
6272 typedef struct
6274 unsigned P2ASDOV : 1;
6275 unsigned : 1;
6276 unsigned : 1;
6277 unsigned : 1;
6278 unsigned : 1;
6279 unsigned P2ARSEN : 1;
6280 unsigned P2ASDEN : 1;
6281 unsigned P2ASE : 1;
6282 } __PSMC2ASDCbits_t;
6284 extern __at(0x083D) volatile __PSMC2ASDCbits_t PSMC2ASDCbits;
6286 #define _P2ASDOV 0x01
6287 #define _P2ARSEN 0x20
6288 #define _P2ASDEN 0x40
6289 #define _P2ASE 0x80
6291 //==============================================================================
6294 //==============================================================================
6295 // PSMC2ASDL Bits
6297 extern __at(0x083E) __sfr PSMC2ASDL;
6299 typedef struct
6301 unsigned P2ASDLA : 1;
6302 unsigned P2ASDLB : 1;
6303 unsigned : 1;
6304 unsigned : 1;
6305 unsigned : 1;
6306 unsigned : 1;
6307 unsigned : 1;
6308 unsigned : 1;
6309 } __PSMC2ASDLbits_t;
6311 extern __at(0x083E) volatile __PSMC2ASDLbits_t PSMC2ASDLbits;
6313 #define _P2ASDLA 0x01
6314 #define _P2ASDLB 0x02
6316 //==============================================================================
6319 //==============================================================================
6320 // PSMC2ASDS Bits
6322 extern __at(0x083F) __sfr PSMC2ASDS;
6324 typedef struct
6326 unsigned : 1;
6327 unsigned P2ASDSC1 : 1;
6328 unsigned P2ASDSC2 : 1;
6329 unsigned P2ASDSC3 : 1;
6330 unsigned P2ASDSC4 : 1;
6331 unsigned : 1;
6332 unsigned : 1;
6333 unsigned P2ASDSIN : 1;
6334 } __PSMC2ASDSbits_t;
6336 extern __at(0x083F) volatile __PSMC2ASDSbits_t PSMC2ASDSbits;
6338 #define _P2ASDSC1 0x02
6339 #define _P2ASDSC2 0x04
6340 #define _P2ASDSC3 0x08
6341 #define _P2ASDSC4 0x10
6342 #define _P2ASDSIN 0x80
6344 //==============================================================================
6347 //==============================================================================
6348 // PSMC2INT Bits
6350 extern __at(0x0840) __sfr PSMC2INT;
6352 typedef struct
6354 unsigned P2TPRIF : 1;
6355 unsigned P2TDCIF : 1;
6356 unsigned P2TPHIF : 1;
6357 unsigned P2TOVIF : 1;
6358 unsigned P2TPRIE : 1;
6359 unsigned P2TDCIE : 1;
6360 unsigned P2TPHIE : 1;
6361 unsigned P2TOVIE : 1;
6362 } __PSMC2INTbits_t;
6364 extern __at(0x0840) volatile __PSMC2INTbits_t PSMC2INTbits;
6366 #define _P2TPRIF 0x01
6367 #define _P2TDCIF 0x02
6368 #define _P2TPHIF 0x04
6369 #define _P2TOVIF 0x08
6370 #define _P2TPRIE 0x10
6371 #define _P2TDCIE 0x20
6372 #define _P2TPHIE 0x40
6373 #define _P2TOVIE 0x80
6375 //==============================================================================
6377 extern __at(0x0841) __sfr PSMC2PH;
6379 //==============================================================================
6380 // PSMC2PHL Bits
6382 extern __at(0x0841) __sfr PSMC2PHL;
6384 typedef struct
6386 unsigned PSMC2PH0 : 1;
6387 unsigned PSMC2PH1 : 1;
6388 unsigned PSMC2PH2 : 1;
6389 unsigned PSMC2PH3 : 1;
6390 unsigned PSMC2PH4 : 1;
6391 unsigned PSMC2PH5 : 1;
6392 unsigned PSMC2PH6 : 1;
6393 unsigned PSMC2PH7 : 1;
6394 } __PSMC2PHLbits_t;
6396 extern __at(0x0841) volatile __PSMC2PHLbits_t PSMC2PHLbits;
6398 #define _PSMC2PH0 0x01
6399 #define _PSMC2PH1 0x02
6400 #define _PSMC2PH2 0x04
6401 #define _PSMC2PH3 0x08
6402 #define _PSMC2PH4 0x10
6403 #define _PSMC2PH5 0x20
6404 #define _PSMC2PH6 0x40
6405 #define _PSMC2PH7 0x80
6407 //==============================================================================
6410 //==============================================================================
6411 // PSMC2PHH Bits
6413 extern __at(0x0842) __sfr PSMC2PHH;
6415 typedef struct
6417 unsigned PSMC2PH8 : 1;
6418 unsigned PSMC2PH9 : 1;
6419 unsigned PSMC2PH10 : 1;
6420 unsigned PSMC2PH11 : 1;
6421 unsigned PSMC2PH12 : 1;
6422 unsigned PSMC2PH13 : 1;
6423 unsigned PSMC2PH14 : 1;
6424 unsigned PSMC2PH15 : 1;
6425 } __PSMC2PHHbits_t;
6427 extern __at(0x0842) volatile __PSMC2PHHbits_t PSMC2PHHbits;
6429 #define _PSMC2PH8 0x01
6430 #define _PSMC2PH9 0x02
6431 #define _PSMC2PH10 0x04
6432 #define _PSMC2PH11 0x08
6433 #define _PSMC2PH12 0x10
6434 #define _PSMC2PH13 0x20
6435 #define _PSMC2PH14 0x40
6436 #define _PSMC2PH15 0x80
6438 //==============================================================================
6440 extern __at(0x0843) __sfr PSMC2DC;
6442 //==============================================================================
6443 // PSMC2DCL Bits
6445 extern __at(0x0843) __sfr PSMC2DCL;
6447 typedef struct
6449 unsigned PSMC2DC0 : 1;
6450 unsigned PSMC2DC1 : 1;
6451 unsigned PSMC2DC2 : 1;
6452 unsigned PSMC2DC3 : 1;
6453 unsigned PSMC2DC4 : 1;
6454 unsigned PSMC2DC5 : 1;
6455 unsigned PSMC2DC6 : 1;
6456 unsigned PSMC2DC7 : 1;
6457 } __PSMC2DCLbits_t;
6459 extern __at(0x0843) volatile __PSMC2DCLbits_t PSMC2DCLbits;
6461 #define _PSMC2DC0 0x01
6462 #define _PSMC2DC1 0x02
6463 #define _PSMC2DC2 0x04
6464 #define _PSMC2DC3 0x08
6465 #define _PSMC2DC4 0x10
6466 #define _PSMC2DC5 0x20
6467 #define _PSMC2DC6 0x40
6468 #define _PSMC2DC7 0x80
6470 //==============================================================================
6473 //==============================================================================
6474 // PSMC2DCH Bits
6476 extern __at(0x0844) __sfr PSMC2DCH;
6478 typedef struct
6480 unsigned PSMC2DC8 : 1;
6481 unsigned PSMC2DC9 : 1;
6482 unsigned PSMC2DC10 : 1;
6483 unsigned PSMC2DC11 : 1;
6484 unsigned PSMC2DC12 : 1;
6485 unsigned PSMC2DC13 : 1;
6486 unsigned PSMC2DC14 : 1;
6487 unsigned PSMC2DC15 : 1;
6488 } __PSMC2DCHbits_t;
6490 extern __at(0x0844) volatile __PSMC2DCHbits_t PSMC2DCHbits;
6492 #define _PSMC2DC8 0x01
6493 #define _PSMC2DC9 0x02
6494 #define _PSMC2DC10 0x04
6495 #define _PSMC2DC11 0x08
6496 #define _PSMC2DC12 0x10
6497 #define _PSMC2DC13 0x20
6498 #define _PSMC2DC14 0x40
6499 #define _PSMC2DC15 0x80
6501 //==============================================================================
6503 extern __at(0x0845) __sfr PSMC2PR;
6505 //==============================================================================
6506 // PSMC2PRL Bits
6508 extern __at(0x0845) __sfr PSMC2PRL;
6510 typedef struct
6512 unsigned PSMC2PR0 : 1;
6513 unsigned PSMC2PR1 : 1;
6514 unsigned PSMC2PR2 : 1;
6515 unsigned PSMC2PR3 : 1;
6516 unsigned PSMC2PR4 : 1;
6517 unsigned PSMC2PR5 : 1;
6518 unsigned PSMC2PR6 : 1;
6519 unsigned PSMC2PR7 : 1;
6520 } __PSMC2PRLbits_t;
6522 extern __at(0x0845) volatile __PSMC2PRLbits_t PSMC2PRLbits;
6524 #define _PSMC2PR0 0x01
6525 #define _PSMC2PR1 0x02
6526 #define _PSMC2PR2 0x04
6527 #define _PSMC2PR3 0x08
6528 #define _PSMC2PR4 0x10
6529 #define _PSMC2PR5 0x20
6530 #define _PSMC2PR6 0x40
6531 #define _PSMC2PR7 0x80
6533 //==============================================================================
6536 //==============================================================================
6537 // PSMC2PRH Bits
6539 extern __at(0x0846) __sfr PSMC2PRH;
6541 typedef struct
6543 unsigned PSMC2PR8 : 1;
6544 unsigned PSMC2PR9 : 1;
6545 unsigned PSMC2PR10 : 1;
6546 unsigned PSMC2PR11 : 1;
6547 unsigned PSMC2PR12 : 1;
6548 unsigned PSMC2PR13 : 1;
6549 unsigned PSMC2PR14 : 1;
6550 unsigned PSMC2PR15 : 1;
6551 } __PSMC2PRHbits_t;
6553 extern __at(0x0846) volatile __PSMC2PRHbits_t PSMC2PRHbits;
6555 #define _PSMC2PR8 0x01
6556 #define _PSMC2PR9 0x02
6557 #define _PSMC2PR10 0x04
6558 #define _PSMC2PR11 0x08
6559 #define _PSMC2PR12 0x10
6560 #define _PSMC2PR13 0x20
6561 #define _PSMC2PR14 0x40
6562 #define _PSMC2PR15 0x80
6564 //==============================================================================
6566 extern __at(0x0847) __sfr PSMC2TMR;
6568 //==============================================================================
6569 // PSMC2TMRL Bits
6571 extern __at(0x0847) __sfr PSMC2TMRL;
6573 typedef struct
6575 unsigned PSMC2TMR0 : 1;
6576 unsigned PSMC2TMR1 : 1;
6577 unsigned PSMC2TMR2 : 1;
6578 unsigned PSMC2TMR3 : 1;
6579 unsigned PSMC2TMR4 : 1;
6580 unsigned PSMC2TMR5 : 1;
6581 unsigned PSMC2TMR6 : 1;
6582 unsigned PSMC2TMR7 : 1;
6583 } __PSMC2TMRLbits_t;
6585 extern __at(0x0847) volatile __PSMC2TMRLbits_t PSMC2TMRLbits;
6587 #define _PSMC2TMR0 0x01
6588 #define _PSMC2TMR1 0x02
6589 #define _PSMC2TMR2 0x04
6590 #define _PSMC2TMR3 0x08
6591 #define _PSMC2TMR4 0x10
6592 #define _PSMC2TMR5 0x20
6593 #define _PSMC2TMR6 0x40
6594 #define _PSMC2TMR7 0x80
6596 //==============================================================================
6599 //==============================================================================
6600 // PSMC2TMRH Bits
6602 extern __at(0x0848) __sfr PSMC2TMRH;
6604 typedef struct
6606 unsigned PSMC2TMR8 : 1;
6607 unsigned PSMC2TMR9 : 1;
6608 unsigned PSMC2TMR10 : 1;
6609 unsigned PSMC2TMR11 : 1;
6610 unsigned PSMC2TMR12 : 1;
6611 unsigned PSMC2TMR13 : 1;
6612 unsigned PSMC2TMR14 : 1;
6613 unsigned PSMC2TMR15 : 1;
6614 } __PSMC2TMRHbits_t;
6616 extern __at(0x0848) volatile __PSMC2TMRHbits_t PSMC2TMRHbits;
6618 #define _PSMC2TMR8 0x01
6619 #define _PSMC2TMR9 0x02
6620 #define _PSMC2TMR10 0x04
6621 #define _PSMC2TMR11 0x08
6622 #define _PSMC2TMR12 0x10
6623 #define _PSMC2TMR13 0x20
6624 #define _PSMC2TMR14 0x40
6625 #define _PSMC2TMR15 0x80
6627 //==============================================================================
6630 //==============================================================================
6631 // PSMC2DBR Bits
6633 extern __at(0x0849) __sfr PSMC2DBR;
6635 typedef struct
6637 unsigned PSMC2DBR0 : 1;
6638 unsigned PSMC2DBR1 : 1;
6639 unsigned PSMC2DBR2 : 1;
6640 unsigned PSMC2DBR3 : 1;
6641 unsigned PSMC2DBR4 : 1;
6642 unsigned PSMC2DBR5 : 1;
6643 unsigned PSMC2DBR6 : 1;
6644 unsigned PSMC2DBR7 : 1;
6645 } __PSMC2DBRbits_t;
6647 extern __at(0x0849) volatile __PSMC2DBRbits_t PSMC2DBRbits;
6649 #define _PSMC2DBR0 0x01
6650 #define _PSMC2DBR1 0x02
6651 #define _PSMC2DBR2 0x04
6652 #define _PSMC2DBR3 0x08
6653 #define _PSMC2DBR4 0x10
6654 #define _PSMC2DBR5 0x20
6655 #define _PSMC2DBR6 0x40
6656 #define _PSMC2DBR7 0x80
6658 //==============================================================================
6661 //==============================================================================
6662 // PSMC2DBF Bits
6664 extern __at(0x084A) __sfr PSMC2DBF;
6666 typedef struct
6668 unsigned PSMC2DBF0 : 1;
6669 unsigned PSMC2DBF1 : 1;
6670 unsigned PSMC2DBF2 : 1;
6671 unsigned PSMC2DBF3 : 1;
6672 unsigned PSMC2DBF4 : 1;
6673 unsigned PSMC2DBF5 : 1;
6674 unsigned PSMC2DBF6 : 1;
6675 unsigned PSMC2DBF7 : 1;
6676 } __PSMC2DBFbits_t;
6678 extern __at(0x084A) volatile __PSMC2DBFbits_t PSMC2DBFbits;
6680 #define _PSMC2DBF0 0x01
6681 #define _PSMC2DBF1 0x02
6682 #define _PSMC2DBF2 0x04
6683 #define _PSMC2DBF3 0x08
6684 #define _PSMC2DBF4 0x10
6685 #define _PSMC2DBF5 0x20
6686 #define _PSMC2DBF6 0x40
6687 #define _PSMC2DBF7 0x80
6689 //==============================================================================
6692 //==============================================================================
6693 // PSMC2BLKR Bits
6695 extern __at(0x084B) __sfr PSMC2BLKR;
6697 typedef struct
6699 unsigned PSMC2BLKR0 : 1;
6700 unsigned PSMC2BLKR1 : 1;
6701 unsigned PSMC2BLKR2 : 1;
6702 unsigned PSMC2BLKR3 : 1;
6703 unsigned PSMC2BLKR4 : 1;
6704 unsigned PSMC2BLKR5 : 1;
6705 unsigned PSMC2BLKR6 : 1;
6706 unsigned PSMC2BLKR7 : 1;
6707 } __PSMC2BLKRbits_t;
6709 extern __at(0x084B) volatile __PSMC2BLKRbits_t PSMC2BLKRbits;
6711 #define _PSMC2BLKR0 0x01
6712 #define _PSMC2BLKR1 0x02
6713 #define _PSMC2BLKR2 0x04
6714 #define _PSMC2BLKR3 0x08
6715 #define _PSMC2BLKR4 0x10
6716 #define _PSMC2BLKR5 0x20
6717 #define _PSMC2BLKR6 0x40
6718 #define _PSMC2BLKR7 0x80
6720 //==============================================================================
6723 //==============================================================================
6724 // PSMC2BLKF Bits
6726 extern __at(0x084C) __sfr PSMC2BLKF;
6728 typedef struct
6730 unsigned PSMC2BLKF0 : 1;
6731 unsigned PSMC2BLKF1 : 1;
6732 unsigned PSMC2BLKF2 : 1;
6733 unsigned PSMC2BLKF3 : 1;
6734 unsigned PSMC2BLKF4 : 1;
6735 unsigned PSMC2BLKF5 : 1;
6736 unsigned PSMC2BLKF6 : 1;
6737 unsigned PSMC2BLKF7 : 1;
6738 } __PSMC2BLKFbits_t;
6740 extern __at(0x084C) volatile __PSMC2BLKFbits_t PSMC2BLKFbits;
6742 #define _PSMC2BLKF0 0x01
6743 #define _PSMC2BLKF1 0x02
6744 #define _PSMC2BLKF2 0x04
6745 #define _PSMC2BLKF3 0x08
6746 #define _PSMC2BLKF4 0x10
6747 #define _PSMC2BLKF5 0x20
6748 #define _PSMC2BLKF6 0x40
6749 #define _PSMC2BLKF7 0x80
6751 //==============================================================================
6754 //==============================================================================
6755 // PSMC2FFA Bits
6757 extern __at(0x084D) __sfr PSMC2FFA;
6759 typedef union
6761 struct
6763 unsigned PSMC2FFA0 : 1;
6764 unsigned PSMC2FFA1 : 1;
6765 unsigned PSMC2FFA2 : 1;
6766 unsigned PSMC2FFA3 : 1;
6767 unsigned : 1;
6768 unsigned : 1;
6769 unsigned : 1;
6770 unsigned : 1;
6773 struct
6775 unsigned PSMC2FFA : 4;
6776 unsigned : 4;
6778 } __PSMC2FFAbits_t;
6780 extern __at(0x084D) volatile __PSMC2FFAbits_t PSMC2FFAbits;
6782 #define _PSMC2FFA0 0x01
6783 #define _PSMC2FFA1 0x02
6784 #define _PSMC2FFA2 0x04
6785 #define _PSMC2FFA3 0x08
6787 //==============================================================================
6790 //==============================================================================
6791 // PSMC2STR0 Bits
6793 extern __at(0x084E) __sfr PSMC2STR0;
6795 typedef struct
6797 unsigned P2STRA : 1;
6798 unsigned P2STRB : 1;
6799 unsigned : 1;
6800 unsigned : 1;
6801 unsigned : 1;
6802 unsigned : 1;
6803 unsigned : 1;
6804 unsigned : 1;
6805 } __PSMC2STR0bits_t;
6807 extern __at(0x084E) volatile __PSMC2STR0bits_t PSMC2STR0bits;
6809 #define _P2STRA 0x01
6810 #define _P2STRB 0x02
6812 //==============================================================================
6815 //==============================================================================
6816 // PSMC2STR1 Bits
6818 extern __at(0x084F) __sfr PSMC2STR1;
6820 typedef struct
6822 unsigned P2HSMEN : 1;
6823 unsigned P2LSMEN : 1;
6824 unsigned : 1;
6825 unsigned : 1;
6826 unsigned : 1;
6827 unsigned : 1;
6828 unsigned : 1;
6829 unsigned P2SSYNC : 1;
6830 } __PSMC2STR1bits_t;
6832 extern __at(0x084F) volatile __PSMC2STR1bits_t PSMC2STR1bits;
6834 #define _P2HSMEN 0x01
6835 #define _P2LSMEN 0x02
6836 #define _P2SSYNC 0x80
6838 //==============================================================================
6841 //==============================================================================
6842 // PSMC3CON Bits
6844 extern __at(0x0851) __sfr PSMC3CON;
6846 typedef union
6848 struct
6850 unsigned P3MODE0 : 1;
6851 unsigned P3MODE1 : 1;
6852 unsigned P3MODE2 : 1;
6853 unsigned P3MODE3 : 1;
6854 unsigned P3DBRE : 1;
6855 unsigned P3DBFE : 1;
6856 unsigned PSMC3LD : 1;
6857 unsigned PSMC3EN : 1;
6860 struct
6862 unsigned P3MODE : 4;
6863 unsigned : 4;
6865 } __PSMC3CONbits_t;
6867 extern __at(0x0851) volatile __PSMC3CONbits_t PSMC3CONbits;
6869 #define _P3MODE0 0x01
6870 #define _P3MODE1 0x02
6871 #define _P3MODE2 0x04
6872 #define _P3MODE3 0x08
6873 #define _P3DBRE 0x10
6874 #define _P3DBFE 0x20
6875 #define _PSMC3LD 0x40
6876 #define _PSMC3EN 0x80
6878 //==============================================================================
6881 //==============================================================================
6882 // PSMC3MDL Bits
6884 extern __at(0x0852) __sfr PSMC3MDL;
6886 typedef union
6888 struct
6890 unsigned P3MSRC0 : 1;
6891 unsigned P3MSRC1 : 1;
6892 unsigned P3MSRC2 : 1;
6893 unsigned P3MSRC3 : 1;
6894 unsigned : 1;
6895 unsigned P3MDLBIT : 1;
6896 unsigned P3MDLPOL : 1;
6897 unsigned P3MDLEN : 1;
6900 struct
6902 unsigned P3MSRC : 4;
6903 unsigned : 4;
6905 } __PSMC3MDLbits_t;
6907 extern __at(0x0852) volatile __PSMC3MDLbits_t PSMC3MDLbits;
6909 #define _P3MSRC0 0x01
6910 #define _P3MSRC1 0x02
6911 #define _P3MSRC2 0x04
6912 #define _P3MSRC3 0x08
6913 #define _P3MDLBIT 0x20
6914 #define _P3MDLPOL 0x40
6915 #define _P3MDLEN 0x80
6917 //==============================================================================
6920 //==============================================================================
6921 // PSMC3SYNC Bits
6923 extern __at(0x0853) __sfr PSMC3SYNC;
6925 typedef union
6927 struct
6929 unsigned P3SYNC0 : 1;
6930 unsigned P3SYNC1 : 1;
6931 unsigned P3SYNC2 : 1;
6932 unsigned : 1;
6933 unsigned : 1;
6934 unsigned P3DCPOL : 1;
6935 unsigned P3PRPOL : 1;
6936 unsigned P3POFST : 1;
6939 struct
6941 unsigned P3SYNC : 3;
6942 unsigned : 5;
6944 } __PSMC3SYNCbits_t;
6946 extern __at(0x0853) volatile __PSMC3SYNCbits_t PSMC3SYNCbits;
6948 #define _P3SYNC0 0x01
6949 #define _P3SYNC1 0x02
6950 #define _P3SYNC2 0x04
6951 #define _P3DCPOL 0x20
6952 #define _P3PRPOL 0x40
6953 #define _P3POFST 0x80
6955 //==============================================================================
6958 //==============================================================================
6959 // PSMC3CLK Bits
6961 extern __at(0x0854) __sfr PSMC3CLK;
6963 typedef union
6965 struct
6967 unsigned P3CSRC0 : 1;
6968 unsigned P3CSRC1 : 1;
6969 unsigned : 1;
6970 unsigned : 1;
6971 unsigned P3CPRE0 : 1;
6972 unsigned P3CPRE1 : 1;
6973 unsigned : 1;
6974 unsigned : 1;
6977 struct
6979 unsigned P3CSRC : 2;
6980 unsigned : 6;
6983 struct
6985 unsigned : 4;
6986 unsigned P3CPRE : 2;
6987 unsigned : 2;
6989 } __PSMC3CLKbits_t;
6991 extern __at(0x0854) volatile __PSMC3CLKbits_t PSMC3CLKbits;
6993 #define _P3CSRC0 0x01
6994 #define _P3CSRC1 0x02
6995 #define _P3CPRE0 0x10
6996 #define _P3CPRE1 0x20
6998 //==============================================================================
7001 //==============================================================================
7002 // PSMC3OEN Bits
7004 extern __at(0x0855) __sfr PSMC3OEN;
7006 typedef struct
7008 unsigned P3OEA : 1;
7009 unsigned P3OEB : 1;
7010 unsigned P3OEC : 1;
7011 unsigned P3OED : 1;
7012 unsigned P3OEE : 1;
7013 unsigned P3OEF : 1;
7014 unsigned : 1;
7015 unsigned : 1;
7016 } __PSMC3OENbits_t;
7018 extern __at(0x0855) volatile __PSMC3OENbits_t PSMC3OENbits;
7020 #define _P3OEA 0x01
7021 #define _P3OEB 0x02
7022 #define _P3OEC 0x04
7023 #define _P3OED 0x08
7024 #define _P3OEE 0x10
7025 #define _P3OEF 0x20
7027 //==============================================================================
7030 //==============================================================================
7031 // PSMC3POL Bits
7033 extern __at(0x0856) __sfr PSMC3POL;
7035 typedef struct
7037 unsigned P3POLA : 1;
7038 unsigned P3POLB : 1;
7039 unsigned P3POLC : 1;
7040 unsigned P3POLD : 1;
7041 unsigned P3POLE : 1;
7042 unsigned P3POLF : 1;
7043 unsigned P3INPOL : 1;
7044 unsigned : 1;
7045 } __PSMC3POLbits_t;
7047 extern __at(0x0856) volatile __PSMC3POLbits_t PSMC3POLbits;
7049 #define _P3POLA 0x01
7050 #define _P3POLB 0x02
7051 #define _P3POLC 0x04
7052 #define _P3POLD 0x08
7053 #define _P3POLE 0x10
7054 #define _P3POLF 0x20
7055 #define _P3INPOL 0x40
7057 //==============================================================================
7060 //==============================================================================
7061 // PSMC3BLNK Bits
7063 extern __at(0x0857) __sfr PSMC3BLNK;
7065 typedef union
7067 struct
7069 unsigned P3REBM0 : 1;
7070 unsigned P3REBM1 : 1;
7071 unsigned : 1;
7072 unsigned : 1;
7073 unsigned P3FEBM0 : 1;
7074 unsigned P3FEBM1 : 1;
7075 unsigned : 1;
7076 unsigned : 1;
7079 struct
7081 unsigned P3REBM : 2;
7082 unsigned : 6;
7085 struct
7087 unsigned : 4;
7088 unsigned P3FEBM : 2;
7089 unsigned : 2;
7091 } __PSMC3BLNKbits_t;
7093 extern __at(0x0857) volatile __PSMC3BLNKbits_t PSMC3BLNKbits;
7095 #define _P3REBM0 0x01
7096 #define _P3REBM1 0x02
7097 #define _P3FEBM0 0x10
7098 #define _P3FEBM1 0x20
7100 //==============================================================================
7103 //==============================================================================
7104 // PSMC3REBS Bits
7106 extern __at(0x0858) __sfr PSMC3REBS;
7108 typedef struct
7110 unsigned : 1;
7111 unsigned P3REBSC1 : 1;
7112 unsigned P3REBSC2 : 1;
7113 unsigned P3REBSC3 : 1;
7114 unsigned P3REBSC4 : 1;
7115 unsigned : 1;
7116 unsigned : 1;
7117 unsigned P3REBSIN : 1;
7118 } __PSMC3REBSbits_t;
7120 extern __at(0x0858) volatile __PSMC3REBSbits_t PSMC3REBSbits;
7122 #define _P3REBSC1 0x02
7123 #define _P3REBSC2 0x04
7124 #define _P3REBSC3 0x08
7125 #define _P3REBSC4 0x10
7126 #define _P3REBSIN 0x80
7128 //==============================================================================
7131 //==============================================================================
7132 // PSMC3FEBS Bits
7134 extern __at(0x0859) __sfr PSMC3FEBS;
7136 typedef struct
7138 unsigned : 1;
7139 unsigned P3FEBSC1 : 1;
7140 unsigned P3FEBSC2 : 1;
7141 unsigned P3FEBSC3 : 1;
7142 unsigned P3FEBSC4 : 1;
7143 unsigned : 1;
7144 unsigned : 1;
7145 unsigned P3FEBSIN : 1;
7146 } __PSMC3FEBSbits_t;
7148 extern __at(0x0859) volatile __PSMC3FEBSbits_t PSMC3FEBSbits;
7150 #define _P3FEBSC1 0x02
7151 #define _P3FEBSC2 0x04
7152 #define _P3FEBSC3 0x08
7153 #define _P3FEBSC4 0x10
7154 #define _P3FEBSIN 0x80
7156 //==============================================================================
7159 //==============================================================================
7160 // PSMC3PHS Bits
7162 extern __at(0x085A) __sfr PSMC3PHS;
7164 typedef struct
7166 unsigned P3PHST : 1;
7167 unsigned P3PHSC1 : 1;
7168 unsigned P3PHSC2 : 1;
7169 unsigned P3PHSC3 : 1;
7170 unsigned P3PHSC4 : 1;
7171 unsigned : 1;
7172 unsigned : 1;
7173 unsigned P3PHSIN : 1;
7174 } __PSMC3PHSbits_t;
7176 extern __at(0x085A) volatile __PSMC3PHSbits_t PSMC3PHSbits;
7178 #define _P3PHST 0x01
7179 #define _P3PHSC1 0x02
7180 #define _P3PHSC2 0x04
7181 #define _P3PHSC3 0x08
7182 #define _P3PHSC4 0x10
7183 #define _P3PHSIN 0x80
7185 //==============================================================================
7188 //==============================================================================
7189 // PSMC3DCS Bits
7191 extern __at(0x085B) __sfr PSMC3DCS;
7193 typedef struct
7195 unsigned P3DCST : 1;
7196 unsigned P3DCSC1 : 1;
7197 unsigned P3DCSC2 : 1;
7198 unsigned P3DCSC3 : 1;
7199 unsigned P3DCSC4 : 1;
7200 unsigned : 1;
7201 unsigned : 1;
7202 unsigned P3DCSIN : 1;
7203 } __PSMC3DCSbits_t;
7205 extern __at(0x085B) volatile __PSMC3DCSbits_t PSMC3DCSbits;
7207 #define _P3DCST 0x01
7208 #define _P3DCSC1 0x02
7209 #define _P3DCSC2 0x04
7210 #define _P3DCSC3 0x08
7211 #define _P3DCSC4 0x10
7212 #define _P3DCSIN 0x80
7214 //==============================================================================
7217 //==============================================================================
7218 // PSMC3PRS Bits
7220 extern __at(0x085C) __sfr PSMC3PRS;
7222 typedef struct
7224 unsigned P3PRST : 1;
7225 unsigned P3PRSC1 : 1;
7226 unsigned P3PRSC2 : 1;
7227 unsigned P3PRSC3 : 1;
7228 unsigned P3PRSC4 : 1;
7229 unsigned : 1;
7230 unsigned : 1;
7231 unsigned P3PRSIN : 1;
7232 } __PSMC3PRSbits_t;
7234 extern __at(0x085C) volatile __PSMC3PRSbits_t PSMC3PRSbits;
7236 #define _P3PRST 0x01
7237 #define _P3PRSC1 0x02
7238 #define _P3PRSC2 0x04
7239 #define _P3PRSC3 0x08
7240 #define _P3PRSC4 0x10
7241 #define _P3PRSIN 0x80
7243 //==============================================================================
7246 //==============================================================================
7247 // PSMC3ASDC Bits
7249 extern __at(0x085D) __sfr PSMC3ASDC;
7251 typedef struct
7253 unsigned P3ASDOV : 1;
7254 unsigned : 1;
7255 unsigned : 1;
7256 unsigned : 1;
7257 unsigned : 1;
7258 unsigned P3ARSEN : 1;
7259 unsigned P3ASDEN : 1;
7260 unsigned P3ASE : 1;
7261 } __PSMC3ASDCbits_t;
7263 extern __at(0x085D) volatile __PSMC3ASDCbits_t PSMC3ASDCbits;
7265 #define _P3ASDOV 0x01
7266 #define _P3ARSEN 0x20
7267 #define _P3ASDEN 0x40
7268 #define _P3ASE 0x80
7270 //==============================================================================
7273 //==============================================================================
7274 // PSMC3ASDL Bits
7276 extern __at(0x085E) __sfr PSMC3ASDL;
7278 typedef struct
7280 unsigned P3ASDLA : 1;
7281 unsigned P3ASDLB : 1;
7282 unsigned P3ASDLC : 1;
7283 unsigned P3ASDLD : 1;
7284 unsigned P3ASDLE : 1;
7285 unsigned P3ASDLF : 1;
7286 unsigned : 1;
7287 unsigned : 1;
7288 } __PSMC3ASDLbits_t;
7290 extern __at(0x085E) volatile __PSMC3ASDLbits_t PSMC3ASDLbits;
7292 #define _P3ASDLA 0x01
7293 #define _P3ASDLB 0x02
7294 #define _P3ASDLC 0x04
7295 #define _P3ASDLD 0x08
7296 #define _P3ASDLE 0x10
7297 #define _P3ASDLF 0x20
7299 //==============================================================================
7302 //==============================================================================
7303 // PSMC3ASDS Bits
7305 extern __at(0x085F) __sfr PSMC3ASDS;
7307 typedef struct
7309 unsigned : 1;
7310 unsigned P3ASDSC1 : 1;
7311 unsigned P3ASDSC2 : 1;
7312 unsigned P3ASDSC3 : 1;
7313 unsigned P3ASDSC4 : 1;
7314 unsigned : 1;
7315 unsigned : 1;
7316 unsigned P3ASDSIN : 1;
7317 } __PSMC3ASDSbits_t;
7319 extern __at(0x085F) volatile __PSMC3ASDSbits_t PSMC3ASDSbits;
7321 #define _P3ASDSC1 0x02
7322 #define _P3ASDSC2 0x04
7323 #define _P3ASDSC3 0x08
7324 #define _P3ASDSC4 0x10
7325 #define _P3ASDSIN 0x80
7327 //==============================================================================
7330 //==============================================================================
7331 // PSMC3INT Bits
7333 extern __at(0x0860) __sfr PSMC3INT;
7335 typedef struct
7337 unsigned P3TPRIF : 1;
7338 unsigned P3TDCIF : 1;
7339 unsigned P3TPHIF : 1;
7340 unsigned P3TOVIF : 1;
7341 unsigned P3TPRIE : 1;
7342 unsigned P3TDCIE : 1;
7343 unsigned P3TPHIE : 1;
7344 unsigned P3TOVIE : 1;
7345 } __PSMC3INTbits_t;
7347 extern __at(0x0860) volatile __PSMC3INTbits_t PSMC3INTbits;
7349 #define _P3TPRIF 0x01
7350 #define _P3TDCIF 0x02
7351 #define _P3TPHIF 0x04
7352 #define _P3TOVIF 0x08
7353 #define _P3TPRIE 0x10
7354 #define _P3TDCIE 0x20
7355 #define _P3TPHIE 0x40
7356 #define _P3TOVIE 0x80
7358 //==============================================================================
7360 extern __at(0x0861) __sfr PSMC3PH;
7362 //==============================================================================
7363 // PSMC3PHL Bits
7365 extern __at(0x0861) __sfr PSMC3PHL;
7367 typedef struct
7369 unsigned PSMC3PH0 : 1;
7370 unsigned PSMC3PH1 : 1;
7371 unsigned PSMC3PH2 : 1;
7372 unsigned PSMC3PH3 : 1;
7373 unsigned PSMC3PH4 : 1;
7374 unsigned PSMC3PH5 : 1;
7375 unsigned PSMC3PH6 : 1;
7376 unsigned PSMC3PH7 : 1;
7377 } __PSMC3PHLbits_t;
7379 extern __at(0x0861) volatile __PSMC3PHLbits_t PSMC3PHLbits;
7381 #define _PSMC3PH0 0x01
7382 #define _PSMC3PH1 0x02
7383 #define _PSMC3PH2 0x04
7384 #define _PSMC3PH3 0x08
7385 #define _PSMC3PH4 0x10
7386 #define _PSMC3PH5 0x20
7387 #define _PSMC3PH6 0x40
7388 #define _PSMC3PH7 0x80
7390 //==============================================================================
7393 //==============================================================================
7394 // PSMC3PHH Bits
7396 extern __at(0x0862) __sfr PSMC3PHH;
7398 typedef struct
7400 unsigned PSMC3PH8 : 1;
7401 unsigned PSMC3PH9 : 1;
7402 unsigned PSMC3PH10 : 1;
7403 unsigned PSMC3PH11 : 1;
7404 unsigned PSMC3PH12 : 1;
7405 unsigned PSMC3PH13 : 1;
7406 unsigned PSMC3PH14 : 1;
7407 unsigned PSMC3PH15 : 1;
7408 } __PSMC3PHHbits_t;
7410 extern __at(0x0862) volatile __PSMC3PHHbits_t PSMC3PHHbits;
7412 #define _PSMC3PH8 0x01
7413 #define _PSMC3PH9 0x02
7414 #define _PSMC3PH10 0x04
7415 #define _PSMC3PH11 0x08
7416 #define _PSMC3PH12 0x10
7417 #define _PSMC3PH13 0x20
7418 #define _PSMC3PH14 0x40
7419 #define _PSMC3PH15 0x80
7421 //==============================================================================
7423 extern __at(0x0863) __sfr PSMC3DC;
7425 //==============================================================================
7426 // PSMC3DCL Bits
7428 extern __at(0x0863) __sfr PSMC3DCL;
7430 typedef struct
7432 unsigned PSMC3DC0 : 1;
7433 unsigned PSMC3DC1 : 1;
7434 unsigned PSMC3DC2 : 1;
7435 unsigned PSMC3DC3 : 1;
7436 unsigned PSMC3DC4 : 1;
7437 unsigned PSMC3DC5 : 1;
7438 unsigned PSMC3DC6 : 1;
7439 unsigned PSMC3DC7 : 1;
7440 } __PSMC3DCLbits_t;
7442 extern __at(0x0863) volatile __PSMC3DCLbits_t PSMC3DCLbits;
7444 #define _PSMC3DC0 0x01
7445 #define _PSMC3DC1 0x02
7446 #define _PSMC3DC2 0x04
7447 #define _PSMC3DC3 0x08
7448 #define _PSMC3DC4 0x10
7449 #define _PSMC3DC5 0x20
7450 #define _PSMC3DC6 0x40
7451 #define _PSMC3DC7 0x80
7453 //==============================================================================
7456 //==============================================================================
7457 // PSMC3DCH Bits
7459 extern __at(0x0864) __sfr PSMC3DCH;
7461 typedef struct
7463 unsigned PSMC3DC8 : 1;
7464 unsigned PSMC3DC9 : 1;
7465 unsigned PSMC3DC10 : 1;
7466 unsigned PSMC3DC11 : 1;
7467 unsigned PSMC3DC12 : 1;
7468 unsigned PSMC3DC13 : 1;
7469 unsigned PSMC3DC14 : 1;
7470 unsigned PSMC3DC15 : 1;
7471 } __PSMC3DCHbits_t;
7473 extern __at(0x0864) volatile __PSMC3DCHbits_t PSMC3DCHbits;
7475 #define _PSMC3DC8 0x01
7476 #define _PSMC3DC9 0x02
7477 #define _PSMC3DC10 0x04
7478 #define _PSMC3DC11 0x08
7479 #define _PSMC3DC12 0x10
7480 #define _PSMC3DC13 0x20
7481 #define _PSMC3DC14 0x40
7482 #define _PSMC3DC15 0x80
7484 //==============================================================================
7486 extern __at(0x0865) __sfr PSMC3PR;
7488 //==============================================================================
7489 // PSMC3PRL Bits
7491 extern __at(0x0865) __sfr PSMC3PRL;
7493 typedef struct
7495 unsigned PSMC3PR0 : 1;
7496 unsigned PSMC3PR1 : 1;
7497 unsigned PSMC3PR2 : 1;
7498 unsigned PSMC3PR3 : 1;
7499 unsigned PSMC3PR4 : 1;
7500 unsigned PSMC3PR5 : 1;
7501 unsigned PSMC3PR6 : 1;
7502 unsigned PSMC3PR7 : 1;
7503 } __PSMC3PRLbits_t;
7505 extern __at(0x0865) volatile __PSMC3PRLbits_t PSMC3PRLbits;
7507 #define _PSMC3PR0 0x01
7508 #define _PSMC3PR1 0x02
7509 #define _PSMC3PR2 0x04
7510 #define _PSMC3PR3 0x08
7511 #define _PSMC3PR4 0x10
7512 #define _PSMC3PR5 0x20
7513 #define _PSMC3PR6 0x40
7514 #define _PSMC3PR7 0x80
7516 //==============================================================================
7519 //==============================================================================
7520 // PSMC3PRH Bits
7522 extern __at(0x0866) __sfr PSMC3PRH;
7524 typedef struct
7526 unsigned PSMC3PR8 : 1;
7527 unsigned PSMC3PR9 : 1;
7528 unsigned PSMC3PR10 : 1;
7529 unsigned PSMC3PR11 : 1;
7530 unsigned PSMC3PR12 : 1;
7531 unsigned PSMC3PR13 : 1;
7532 unsigned PSMC3PR14 : 1;
7533 unsigned PSMC3PR15 : 1;
7534 } __PSMC3PRHbits_t;
7536 extern __at(0x0866) volatile __PSMC3PRHbits_t PSMC3PRHbits;
7538 #define _PSMC3PR8 0x01
7539 #define _PSMC3PR9 0x02
7540 #define _PSMC3PR10 0x04
7541 #define _PSMC3PR11 0x08
7542 #define _PSMC3PR12 0x10
7543 #define _PSMC3PR13 0x20
7544 #define _PSMC3PR14 0x40
7545 #define _PSMC3PR15 0x80
7547 //==============================================================================
7549 extern __at(0x0867) __sfr PSMC3TMR;
7551 //==============================================================================
7552 // PSMC3TMRL Bits
7554 extern __at(0x0867) __sfr PSMC3TMRL;
7556 typedef struct
7558 unsigned PSMC3TMR0 : 1;
7559 unsigned PSMC3TMR1 : 1;
7560 unsigned PSMC3TMR2 : 1;
7561 unsigned PSMC3TMR3 : 1;
7562 unsigned PSMC3TMR4 : 1;
7563 unsigned PSMC3TMR5 : 1;
7564 unsigned PSMC3TMR6 : 1;
7565 unsigned PSMC3TMR7 : 1;
7566 } __PSMC3TMRLbits_t;
7568 extern __at(0x0867) volatile __PSMC3TMRLbits_t PSMC3TMRLbits;
7570 #define _PSMC3TMR0 0x01
7571 #define _PSMC3TMR1 0x02
7572 #define _PSMC3TMR2 0x04
7573 #define _PSMC3TMR3 0x08
7574 #define _PSMC3TMR4 0x10
7575 #define _PSMC3TMR5 0x20
7576 #define _PSMC3TMR6 0x40
7577 #define _PSMC3TMR7 0x80
7579 //==============================================================================
7582 //==============================================================================
7583 // PSMC3TMRH Bits
7585 extern __at(0x0868) __sfr PSMC3TMRH;
7587 typedef struct
7589 unsigned PSMC3TMR8 : 1;
7590 unsigned PSMC3TMR9 : 1;
7591 unsigned PSMC3TMR10 : 1;
7592 unsigned PSMC3TMR11 : 1;
7593 unsigned PSMC3TMR12 : 1;
7594 unsigned PSMC3TMR13 : 1;
7595 unsigned PSMC3TMR14 : 1;
7596 unsigned PSMC3TMR15 : 1;
7597 } __PSMC3TMRHbits_t;
7599 extern __at(0x0868) volatile __PSMC3TMRHbits_t PSMC3TMRHbits;
7601 #define _PSMC3TMR8 0x01
7602 #define _PSMC3TMR9 0x02
7603 #define _PSMC3TMR10 0x04
7604 #define _PSMC3TMR11 0x08
7605 #define _PSMC3TMR12 0x10
7606 #define _PSMC3TMR13 0x20
7607 #define _PSMC3TMR14 0x40
7608 #define _PSMC3TMR15 0x80
7610 //==============================================================================
7613 //==============================================================================
7614 // PSMC3DBR Bits
7616 extern __at(0x0869) __sfr PSMC3DBR;
7618 typedef struct
7620 unsigned PSMC3DBR0 : 1;
7621 unsigned PSMC3DBR1 : 1;
7622 unsigned PSMC3DBR2 : 1;
7623 unsigned PSMC3DBR3 : 1;
7624 unsigned PSMC3DBR4 : 1;
7625 unsigned PSMC3DBR5 : 1;
7626 unsigned PSMC3DBR6 : 1;
7627 unsigned PSMC3DBR7 : 1;
7628 } __PSMC3DBRbits_t;
7630 extern __at(0x0869) volatile __PSMC3DBRbits_t PSMC3DBRbits;
7632 #define _PSMC3DBR0 0x01
7633 #define _PSMC3DBR1 0x02
7634 #define _PSMC3DBR2 0x04
7635 #define _PSMC3DBR3 0x08
7636 #define _PSMC3DBR4 0x10
7637 #define _PSMC3DBR5 0x20
7638 #define _PSMC3DBR6 0x40
7639 #define _PSMC3DBR7 0x80
7641 //==============================================================================
7644 //==============================================================================
7645 // PSMC3DBF Bits
7647 extern __at(0x086A) __sfr PSMC3DBF;
7649 typedef struct
7651 unsigned PSMC3DBF0 : 1;
7652 unsigned PSMC3DBF1 : 1;
7653 unsigned PSMC3DBF2 : 1;
7654 unsigned PSMC3DBF3 : 1;
7655 unsigned PSMC3DBF4 : 1;
7656 unsigned PSMC3DBF5 : 1;
7657 unsigned PSMC3DBF6 : 1;
7658 unsigned PSMC3DBF7 : 1;
7659 } __PSMC3DBFbits_t;
7661 extern __at(0x086A) volatile __PSMC3DBFbits_t PSMC3DBFbits;
7663 #define _PSMC3DBF0 0x01
7664 #define _PSMC3DBF1 0x02
7665 #define _PSMC3DBF2 0x04
7666 #define _PSMC3DBF3 0x08
7667 #define _PSMC3DBF4 0x10
7668 #define _PSMC3DBF5 0x20
7669 #define _PSMC3DBF6 0x40
7670 #define _PSMC3DBF7 0x80
7672 //==============================================================================
7675 //==============================================================================
7676 // PSMC3BLKR Bits
7678 extern __at(0x086B) __sfr PSMC3BLKR;
7680 typedef struct
7682 unsigned PSMC3BLKR0 : 1;
7683 unsigned PSMC3BLKR1 : 1;
7684 unsigned PSMC3BLKR2 : 1;
7685 unsigned PSMC3BLKR3 : 1;
7686 unsigned PSMC3BLKR4 : 1;
7687 unsigned PSMC3BLKR5 : 1;
7688 unsigned PSMC3BLKR6 : 1;
7689 unsigned PSMC3BLKR7 : 1;
7690 } __PSMC3BLKRbits_t;
7692 extern __at(0x086B) volatile __PSMC3BLKRbits_t PSMC3BLKRbits;
7694 #define _PSMC3BLKR0 0x01
7695 #define _PSMC3BLKR1 0x02
7696 #define _PSMC3BLKR2 0x04
7697 #define _PSMC3BLKR3 0x08
7698 #define _PSMC3BLKR4 0x10
7699 #define _PSMC3BLKR5 0x20
7700 #define _PSMC3BLKR6 0x40
7701 #define _PSMC3BLKR7 0x80
7703 //==============================================================================
7706 //==============================================================================
7707 // PSMC3BLKF Bits
7709 extern __at(0x086C) __sfr PSMC3BLKF;
7711 typedef struct
7713 unsigned PSMC3BLKF0 : 1;
7714 unsigned PSMC3BLKF1 : 1;
7715 unsigned PSMC3BLKF2 : 1;
7716 unsigned PSMC3BLKF3 : 1;
7717 unsigned PSMC3BLKF4 : 1;
7718 unsigned PSMC3BLKF5 : 1;
7719 unsigned PSMC3BLKF6 : 1;
7720 unsigned PSMC3BLKF7 : 1;
7721 } __PSMC3BLKFbits_t;
7723 extern __at(0x086C) volatile __PSMC3BLKFbits_t PSMC3BLKFbits;
7725 #define _PSMC3BLKF0 0x01
7726 #define _PSMC3BLKF1 0x02
7727 #define _PSMC3BLKF2 0x04
7728 #define _PSMC3BLKF3 0x08
7729 #define _PSMC3BLKF4 0x10
7730 #define _PSMC3BLKF5 0x20
7731 #define _PSMC3BLKF6 0x40
7732 #define _PSMC3BLKF7 0x80
7734 //==============================================================================
7737 //==============================================================================
7738 // PSMC3FFA Bits
7740 extern __at(0x086D) __sfr PSMC3FFA;
7742 typedef union
7744 struct
7746 unsigned PSMC3FFA0 : 1;
7747 unsigned PSMC3FFA1 : 1;
7748 unsigned PSMC3FFA2 : 1;
7749 unsigned PSMC3FFA3 : 1;
7750 unsigned : 1;
7751 unsigned : 1;
7752 unsigned : 1;
7753 unsigned : 1;
7756 struct
7758 unsigned PSMC3FFA : 4;
7759 unsigned : 4;
7761 } __PSMC3FFAbits_t;
7763 extern __at(0x086D) volatile __PSMC3FFAbits_t PSMC3FFAbits;
7765 #define _PSMC3FFA0 0x01
7766 #define _PSMC3FFA1 0x02
7767 #define _PSMC3FFA2 0x04
7768 #define _PSMC3FFA3 0x08
7770 //==============================================================================
7773 //==============================================================================
7774 // PSMC3STR0 Bits
7776 extern __at(0x086E) __sfr PSMC3STR0;
7778 typedef struct
7780 unsigned P3STRA : 1;
7781 unsigned P3STRB : 1;
7782 unsigned P3STRC : 1;
7783 unsigned P3STRD : 1;
7784 unsigned P3STRE : 1;
7785 unsigned P3STRF : 1;
7786 unsigned : 1;
7787 unsigned : 1;
7788 } __PSMC3STR0bits_t;
7790 extern __at(0x086E) volatile __PSMC3STR0bits_t PSMC3STR0bits;
7792 #define _P3STRA 0x01
7793 #define _P3STRB 0x02
7794 #define _P3STRC 0x04
7795 #define _P3STRD 0x08
7796 #define _P3STRE 0x10
7797 #define _P3STRF 0x20
7799 //==============================================================================
7802 //==============================================================================
7803 // PSMC3STR1 Bits
7805 extern __at(0x086F) __sfr PSMC3STR1;
7807 typedef struct
7809 unsigned P3HSMEN : 1;
7810 unsigned P3LSMEN : 1;
7811 unsigned : 1;
7812 unsigned : 1;
7813 unsigned : 1;
7814 unsigned : 1;
7815 unsigned : 1;
7816 unsigned P3SSYNC : 1;
7817 } __PSMC3STR1bits_t;
7819 extern __at(0x086F) volatile __PSMC3STR1bits_t PSMC3STR1bits;
7821 #define _P3HSMEN 0x01
7822 #define _P3LSMEN 0x02
7823 #define _P3SSYNC 0x80
7825 //==============================================================================
7828 //==============================================================================
7829 // STATUS_SHAD Bits
7831 extern __at(0x0FE4) __sfr STATUS_SHAD;
7833 typedef struct
7835 unsigned C_SHAD : 1;
7836 unsigned DC_SHAD : 1;
7837 unsigned Z_SHAD : 1;
7838 unsigned : 1;
7839 unsigned : 1;
7840 unsigned : 1;
7841 unsigned : 1;
7842 unsigned : 1;
7843 } __STATUS_SHADbits_t;
7845 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
7847 #define _C_SHAD 0x01
7848 #define _DC_SHAD 0x02
7849 #define _Z_SHAD 0x04
7851 //==============================================================================
7853 extern __at(0x0FE5) __sfr WREG_SHAD;
7854 extern __at(0x0FE6) __sfr BSR_SHAD;
7855 extern __at(0x0FE7) __sfr PCLATH_SHAD;
7856 extern __at(0x0FE8) __sfr FSR0L_SHAD;
7857 extern __at(0x0FE9) __sfr FSR0H_SHAD;
7858 extern __at(0x0FEA) __sfr FSR1L_SHAD;
7859 extern __at(0x0FEB) __sfr FSR1H_SHAD;
7860 extern __at(0x0FED) __sfr STKPTR;
7861 extern __at(0x0FEE) __sfr TOSL;
7862 extern __at(0x0FEF) __sfr TOSH;
7864 //==============================================================================
7866 // Configuration Bits
7868 //==============================================================================
7870 #define _CONFIG1 0x8007
7871 #define _CONFIG2 0x8008
7873 //----------------------------- CONFIG1 Options -------------------------------
7875 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
7876 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
7877 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
7878 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
7879 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
7880 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
7881 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
7882 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin.
7883 #define _WDTE_OFF 0x3FE7 // WDT disabled.
7884 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
7885 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
7886 #define _WDTE_ON 0x3FFF // WDT enabled.
7887 #define _PWRTE_ON 0x3FDF // PWRT enabled.
7888 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
7889 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
7890 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
7891 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
7892 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
7893 #define _CPD_ON 0x3EFF // Data memory code protection is enabled.
7894 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
7895 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
7896 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
7897 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
7898 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
7899 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
7900 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
7901 #define _IESO_OFF 0x2FFF // Internal/External Switchover mode is disabled.
7902 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
7903 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
7904 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
7906 //----------------------------- CONFIG2 Options -------------------------------
7908 #define _WRT_ALL 0x3FFC // 000h to 1FFFh write protected, no addresses may be modified by EECON control.
7909 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
7910 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
7911 #define _WRT_OFF 0x3FFF // Write protection off.
7912 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
7913 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
7914 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
7915 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
7916 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
7917 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
7918 #define _LPBOR_ON 0x37FF // Low power brown-out is enabled.
7919 #define _LPBOR_OFF 0x3FFF // Low power brown-out is disabled.
7920 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
7921 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
7922 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
7923 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
7925 //==============================================================================
7927 #define _DEVID1 0x8006
7929 #define _IDLOC0 0x8000
7930 #define _IDLOC1 0x8001
7931 #define _IDLOC2 0x8002
7932 #define _IDLOC3 0x8003
7934 //==============================================================================
7936 #ifndef NO_BIT_DEFINES
7938 #define ADON ADCON0bits.ADON // bit 0
7939 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
7940 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
7941 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
7942 #define DONE ADCON0bits.DONE // bit 1, shadows bit in ADCON0bits
7943 #define CHS0 ADCON0bits.CHS0 // bit 2
7944 #define CHS1 ADCON0bits.CHS1 // bit 3
7945 #define CHS2 ADCON0bits.CHS2 // bit 4
7946 #define CHS3 ADCON0bits.CHS3 // bit 5
7947 #define CHS4 ADCON0bits.CHS4 // bit 6
7948 #define ADRMD ADCON0bits.ADRMD // bit 7
7950 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
7951 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
7952 #define ADNREF ADCON1bits.ADNREF // bit 2
7953 #define ADCS0 ADCON1bits.ADCS0 // bit 4
7954 #define ADCS1 ADCON1bits.ADCS1 // bit 5
7955 #define ADCS2 ADCON1bits.ADCS2 // bit 6
7956 #define ADFM ADCON1bits.ADFM // bit 7
7958 #define CHSN0 ADCON2bits.CHSN0 // bit 0
7959 #define CHSN1 ADCON2bits.CHSN1 // bit 1
7960 #define CHSN2 ADCON2bits.CHSN2 // bit 2
7961 #define CHSN3 ADCON2bits.CHSN3 // bit 3
7962 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
7963 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
7964 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
7965 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
7967 #define ANSA0 ANSELAbits.ANSA0 // bit 0
7968 #define ANSA1 ANSELAbits.ANSA1 // bit 1
7969 #define ANSA2 ANSELAbits.ANSA2 // bit 2
7970 #define ANSA3 ANSELAbits.ANSA3 // bit 3
7971 #define ANSA4 ANSELAbits.ANSA4 // bit 4
7972 #define ANSA5 ANSELAbits.ANSA5 // bit 5
7973 #define ANSA7 ANSELAbits.ANSA7 // bit 7
7975 #define ANSB0 ANSELBbits.ANSB0 // bit 0
7976 #define ANSB1 ANSELBbits.ANSB1 // bit 1
7977 #define ANSB2 ANSELBbits.ANSB2 // bit 2
7978 #define ANSB3 ANSELBbits.ANSB3 // bit 3
7979 #define ANSB4 ANSELBbits.ANSB4 // bit 4
7980 #define ANSB5 ANSELBbits.ANSB5 // bit 5
7981 #define ANSB6 ANSELBbits.ANSB6 // bit 6
7983 #define ANSD0 ANSELDbits.ANSD0 // bit 0
7984 #define ANSD1 ANSELDbits.ANSD1 // bit 1
7985 #define ANSD2 ANSELDbits.ANSD2 // bit 2
7987 #define ANSE0 ANSELEbits.ANSE0 // bit 0
7988 #define ANSE1 ANSELEbits.ANSE1 // bit 1
7989 #define ANSE2 ANSELEbits.ANSE2 // bit 2
7991 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
7992 #define RXSEL APFCONbits.RXSEL // bit 1
7993 #define TXSEL APFCONbits.TXSEL // bit 2
7994 #define SDISEL APFCONbits.SDISEL // bit 3
7995 #define SCKSEL APFCONbits.SCKSEL // bit 4
7996 #define SDOSEL APFCONbits.SDOSEL // bit 5
7997 #define CCP1SEL APFCONbits.CCP1SEL // bit 6
7998 #define C2OUTSEL APFCONbits.C2OUTSEL // bit 7
8000 #define CCP3SEL APFCON2bits.CCP3SEL // bit 0
8002 #define ABDEN BAUD1CONbits.ABDEN // bit 0
8003 #define WUE BAUD1CONbits.WUE // bit 1
8004 #define BRG16 BAUD1CONbits.BRG16 // bit 3
8005 #define SCKP BAUD1CONbits.SCKP // bit 4
8006 #define RCIDL BAUD1CONbits.RCIDL // bit 6
8007 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
8009 #define BORRDY BORCONbits.BORRDY // bit 0
8010 #define BORFS BORCONbits.BORFS // bit 6
8011 #define SBOREN BORCONbits.SBOREN // bit 7
8013 #define BSR0 BSRbits.BSR0 // bit 0
8014 #define BSR1 BSRbits.BSR1 // bit 1
8015 #define BSR2 BSRbits.BSR2 // bit 2
8016 #define BSR3 BSRbits.BSR3 // bit 3
8017 #define BSR4 BSRbits.BSR4 // bit 4
8019 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
8020 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
8021 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
8022 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
8023 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
8024 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
8026 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
8027 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
8028 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
8029 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
8030 #define DC2B0 CCP2CONbits.DC2B0 // bit 4
8031 #define DC2B1 CCP2CONbits.DC2B1 // bit 5
8033 #define CCP3M0 CCP3CONbits.CCP3M0 // bit 0
8034 #define CCP3M1 CCP3CONbits.CCP3M1 // bit 1
8035 #define CCP3M2 CCP3CONbits.CCP3M2 // bit 2
8036 #define CCP3M3 CCP3CONbits.CCP3M3 // bit 3
8037 #define DC3B0 CCP3CONbits.DC3B0 // bit 4
8038 #define DC3B1 CCP3CONbits.DC3B1 // bit 5
8040 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
8041 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
8042 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
8043 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
8044 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
8045 #define CLKRSLR CLKRCONbits.CLKRSLR // bit 5
8046 #define CLKROE CLKRCONbits.CLKROE // bit 6
8047 #define CLKREN CLKRCONbits.CLKREN // bit 7
8049 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
8050 #define C1HYS CM1CON0bits.C1HYS // bit 1
8051 #define C1SP CM1CON0bits.C1SP // bit 2
8052 #define C1ZLF CM1CON0bits.C1ZLF // bit 3
8053 #define C1POL CM1CON0bits.C1POL // bit 4
8054 #define C1OE CM1CON0bits.C1OE // bit 5
8055 #define C1OUT CM1CON0bits.C1OUT // bit 6
8056 #define C1ON CM1CON0bits.C1ON // bit 7
8058 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
8059 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
8060 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
8061 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
8062 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
8063 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
8064 #define C1INTN CM1CON1bits.C1INTN // bit 6
8065 #define C1INTP CM1CON1bits.C1INTP // bit 7
8067 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
8068 #define C2HYS CM2CON0bits.C2HYS // bit 1
8069 #define C2SP CM2CON0bits.C2SP // bit 2
8070 #define C2ZLF CM2CON0bits.C2ZLF // bit 3
8071 #define C2POL CM2CON0bits.C2POL // bit 4
8072 #define C2OE CM2CON0bits.C2OE // bit 5
8073 #define C2OUT CM2CON0bits.C2OUT // bit 6
8074 #define C2ON CM2CON0bits.C2ON // bit 7
8076 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
8077 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
8078 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
8079 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 3
8080 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 4
8081 #define C2PCH2 CM2CON1bits.C2PCH2 // bit 5
8082 #define C2INTN CM2CON1bits.C2INTN // bit 6
8083 #define C2INTP CM2CON1bits.C2INTP // bit 7
8085 #define C3SYNC CM3CON0bits.C3SYNC // bit 0
8086 #define C3HYS CM3CON0bits.C3HYS // bit 1
8087 #define C3SP CM3CON0bits.C3SP // bit 2
8088 #define C3ZLF CM3CON0bits.C3ZLF // bit 3
8089 #define C3POL CM3CON0bits.C3POL // bit 4
8090 #define C3OE CM3CON0bits.C3OE // bit 5
8091 #define C3OUT CM3CON0bits.C3OUT // bit 6
8092 #define C3ON CM3CON0bits.C3ON // bit 7
8094 #define C3NCH0 CM3CON1bits.C3NCH0 // bit 0
8095 #define C3NCH1 CM3CON1bits.C3NCH1 // bit 1
8096 #define C3NCH2 CM3CON1bits.C3NCH2 // bit 2
8097 #define C3PCH0 CM3CON1bits.C3PCH0 // bit 3
8098 #define C3PCH1 CM3CON1bits.C3PCH1 // bit 4
8099 #define C3PCH2 CM3CON1bits.C3PCH2 // bit 5
8100 #define C3INTN CM3CON1bits.C3INTN // bit 6
8101 #define C3INTP CM3CON1bits.C3INTP // bit 7
8103 #define C4SYNC CM4CON0bits.C4SYNC // bit 0
8104 #define C4HYS CM4CON0bits.C4HYS // bit 1
8105 #define C4SP CM4CON0bits.C4SP // bit 2
8106 #define C4ZLF CM4CON0bits.C4ZLF // bit 3
8107 #define C4POL CM4CON0bits.C4POL // bit 4
8108 #define C4OE CM4CON0bits.C4OE // bit 5
8109 #define C4OUT CM4CON0bits.C4OUT // bit 6
8110 #define C4ON CM4CON0bits.C4ON // bit 7
8112 #define C4NCH0 CM4CON1bits.C4NCH0 // bit 0
8113 #define C4NCH1 CM4CON1bits.C4NCH1 // bit 1
8114 #define C4NCH2 CM4CON1bits.C4NCH2 // bit 2
8115 #define C4PCH0 CM4CON1bits.C4PCH0 // bit 3
8116 #define C4PCH1 CM4CON1bits.C4PCH1 // bit 4
8117 #define C4PCH2 CM4CON1bits.C4PCH2 // bit 5
8118 #define C4INTN CM4CON1bits.C4INTN // bit 6
8119 #define C4INTP CM4CON1bits.C4INTP // bit 7
8121 #define MC1OUT CMOUTbits.MC1OUT // bit 0
8122 #define MC2OUT CMOUTbits.MC2OUT // bit 1
8123 #define MC3OUT CMOUTbits.MC3OUT // bit 2
8124 #define MC4OUT CMOUTbits.MC4OUT // bit 3
8126 #define DACNSS DACCON0bits.DACNSS // bit 0
8127 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
8128 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
8129 #define DACOE2 DACCON0bits.DACOE2 // bit 4
8130 #define DACOE1 DACCON0bits.DACOE1 // bit 5
8131 #define DACEN DACCON0bits.DACEN // bit 7
8133 #define DACR0 DACCON1bits.DACR0 // bit 0
8134 #define DACR1 DACCON1bits.DACR1 // bit 1
8135 #define DACR2 DACCON1bits.DACR2 // bit 2
8136 #define DACR3 DACCON1bits.DACR3 // bit 3
8137 #define DACR4 DACCON1bits.DACR4 // bit 4
8138 #define DACR5 DACCON1bits.DACR5 // bit 5
8139 #define DACR6 DACCON1bits.DACR6 // bit 6
8140 #define DACR7 DACCON1bits.DACR7 // bit 7
8142 #define RD EECON1bits.RD // bit 0
8143 #define WR EECON1bits.WR // bit 1
8144 #define WREN EECON1bits.WREN // bit 2
8145 #define WRERR EECON1bits.WRERR // bit 3
8146 #define FREE EECON1bits.FREE // bit 4
8147 #define LWLO EECON1bits.LWLO // bit 5
8148 #define CFGS EECON1bits.CFGS // bit 6
8149 #define EEPGD EECON1bits.EEPGD // bit 7
8151 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
8152 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
8153 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
8154 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
8155 #define TSRNG FVRCONbits.TSRNG // bit 4
8156 #define TSEN FVRCONbits.TSEN // bit 5
8157 #define FVRRDY FVRCONbits.FVRRDY // bit 6
8158 #define FVREN FVRCONbits.FVREN // bit 7
8160 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
8161 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
8162 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
8163 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
8164 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
8165 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
8166 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
8167 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
8169 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
8170 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
8171 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
8172 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
8173 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
8174 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
8175 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
8176 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
8178 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
8179 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
8180 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
8181 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
8182 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
8183 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
8184 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
8185 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
8187 #define INLVLD0 INLVLDbits.INLVLD0 // bit 0
8188 #define INLVLD1 INLVLDbits.INLVLD1 // bit 1
8189 #define INLVLD2 INLVLDbits.INLVLD2 // bit 2
8190 #define INLVLD3 INLVLDbits.INLVLD3 // bit 3
8191 #define INLVLD4 INLVLDbits.INLVLD4 // bit 4
8192 #define INLVLD5 INLVLDbits.INLVLD5 // bit 5
8193 #define INLVLD6 INLVLDbits.INLVLD6 // bit 6
8194 #define INLVLD7 INLVLDbits.INLVLD7 // bit 7
8196 #define INLVLE0 INLVLEbits.INLVLE0 // bit 0
8197 #define INLVLE1 INLVLEbits.INLVLE1 // bit 1
8198 #define INLVLE2 INLVLEbits.INLVLE2 // bit 2
8199 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
8201 #define IOCIF INTCONbits.IOCIF // bit 0
8202 #define INTF INTCONbits.INTF // bit 1
8203 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
8204 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
8205 #define IOCIE INTCONbits.IOCIE // bit 3
8206 #define INTE INTCONbits.INTE // bit 4
8207 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
8208 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
8209 #define PEIE INTCONbits.PEIE // bit 6
8210 #define GIE INTCONbits.GIE // bit 7
8212 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
8213 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
8214 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
8215 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
8216 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
8217 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
8218 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
8219 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
8221 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
8222 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
8223 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
8224 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
8225 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
8226 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
8227 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
8228 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
8230 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
8231 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
8232 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
8233 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
8234 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
8235 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
8236 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
8237 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
8239 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
8240 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
8241 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
8242 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
8243 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
8244 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
8245 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
8246 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
8248 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
8249 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
8250 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
8251 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
8252 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
8253 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
8254 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
8255 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
8257 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
8258 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
8259 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
8260 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
8261 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
8262 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
8263 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
8264 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
8266 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
8267 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
8268 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
8269 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
8270 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
8271 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
8272 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
8273 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
8275 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
8276 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
8277 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
8278 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
8279 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
8280 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
8281 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
8282 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
8284 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
8285 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
8286 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
8287 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
8288 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
8289 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
8290 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
8291 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
8293 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
8295 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
8297 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
8299 #define LATA0 LATAbits.LATA0 // bit 0
8300 #define LATA1 LATAbits.LATA1 // bit 1
8301 #define LATA2 LATAbits.LATA2 // bit 2
8302 #define LATA3 LATAbits.LATA3 // bit 3
8303 #define LATA4 LATAbits.LATA4 // bit 4
8304 #define LATA5 LATAbits.LATA5 // bit 5
8305 #define LATA6 LATAbits.LATA6 // bit 6
8306 #define LATA7 LATAbits.LATA7 // bit 7
8308 #define LATB0 LATBbits.LATB0 // bit 0
8309 #define LATB1 LATBbits.LATB1 // bit 1
8310 #define LATB2 LATBbits.LATB2 // bit 2
8311 #define LATB3 LATBbits.LATB3 // bit 3
8312 #define LATB4 LATBbits.LATB4 // bit 4
8313 #define LATB5 LATBbits.LATB5 // bit 5
8314 #define LATB6 LATBbits.LATB6 // bit 6
8315 #define LATB7 LATBbits.LATB7 // bit 7
8317 #define LATC0 LATCbits.LATC0 // bit 0
8318 #define LATC1 LATCbits.LATC1 // bit 1
8319 #define LATC2 LATCbits.LATC2 // bit 2
8320 #define LATC3 LATCbits.LATC3 // bit 3
8321 #define LATC4 LATCbits.LATC4 // bit 4
8322 #define LATC5 LATCbits.LATC5 // bit 5
8323 #define LATC6 LATCbits.LATC6 // bit 6
8324 #define LATC7 LATCbits.LATC7 // bit 7
8326 #define LATD0 LATDbits.LATD0 // bit 0
8327 #define LATD1 LATDbits.LATD1 // bit 1
8328 #define LATD2 LATDbits.LATD2 // bit 2
8329 #define LATD3 LATDbits.LATD3 // bit 3
8330 #define LATD4 LATDbits.LATD4 // bit 4
8331 #define LATD5 LATDbits.LATD5 // bit 5
8332 #define LATD6 LATDbits.LATD6 // bit 6
8333 #define LATD7 LATDbits.LATD7 // bit 7
8335 #define LATE0 LATEbits.LATE0 // bit 0
8336 #define LATE1 LATEbits.LATE1 // bit 1
8337 #define LATE2 LATEbits.LATE2 // bit 2
8339 #define ODCONA0 ODCONAbits.ODCONA0 // bit 0
8340 #define ODCONA1 ODCONAbits.ODCONA1 // bit 1
8341 #define ODCONA2 ODCONAbits.ODCONA2 // bit 2
8342 #define ODCONA3 ODCONAbits.ODCONA3 // bit 3
8343 #define ODCONA4 ODCONAbits.ODCONA4 // bit 4
8344 #define ODCONA5 ODCONAbits.ODCONA5 // bit 5
8345 #define ODCONA6 ODCONAbits.ODCONA6 // bit 6
8346 #define ODCONA7 ODCONAbits.ODCONA7 // bit 7
8348 #define ODCONB0 ODCONBbits.ODCONB0 // bit 0
8349 #define ODCONB1 ODCONBbits.ODCONB1 // bit 1
8350 #define ODCONB2 ODCONBbits.ODCONB2 // bit 2
8351 #define ODCONB3 ODCONBbits.ODCONB3 // bit 3
8352 #define ODCONB4 ODCONBbits.ODCONB4 // bit 4
8353 #define ODCONB5 ODCONBbits.ODCONB5 // bit 5
8354 #define ODCONB6 ODCONBbits.ODCONB6 // bit 6
8355 #define ODCONB7 ODCONBbits.ODCONB7 // bit 7
8357 #define ODCONC0 ODCONCbits.ODCONC0 // bit 0
8358 #define ODCONC1 ODCONCbits.ODCONC1 // bit 1
8359 #define ODCONC2 ODCONCbits.ODCONC2 // bit 2
8360 #define ODCONC3 ODCONCbits.ODCONC3 // bit 3
8361 #define ODCONC4 ODCONCbits.ODCONC4 // bit 4
8362 #define ODCONC5 ODCONCbits.ODCONC5 // bit 5
8363 #define ODCONC6 ODCONCbits.ODCONC6 // bit 6
8364 #define ODCONC7 ODCONCbits.ODCONC7 // bit 7
8366 #define ODCOND0 ODCONDbits.ODCOND0 // bit 0
8367 #define ODCOND1 ODCONDbits.ODCOND1 // bit 1
8368 #define ODCOND2 ODCONDbits.ODCOND2 // bit 2
8369 #define ODCOND3 ODCONDbits.ODCOND3 // bit 3
8370 #define ODCOND4 ODCONDbits.ODCOND4 // bit 4
8371 #define ODCOND5 ODCONDbits.ODCOND5 // bit 5
8372 #define ODCOND6 ODCONDbits.ODCOND6 // bit 6
8373 #define ODCOND7 ODCONDbits.ODCOND7 // bit 7
8375 #define ODCONE0 ODCONEbits.ODCONE0 // bit 0
8376 #define ODCONE1 ODCONEbits.ODCONE1 // bit 1
8377 #define ODCONE2 ODCONEbits.ODCONE2 // bit 2
8379 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0, shadows bit in OPA1CONbits
8380 #define PCH0 OPA1CONbits.PCH0 // bit 0, shadows bit in OPA1CONbits
8381 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1, shadows bit in OPA1CONbits
8382 #define PCH1 OPA1CONbits.PCH1 // bit 1, shadows bit in OPA1CONbits
8383 #define OPA1SP OPA1CONbits.OPA1SP // bit 6, shadows bit in OPA1CONbits
8384 #define SP OPA1CONbits.SP // bit 6, shadows bit in OPA1CONbits
8385 #define OPA1EN OPA1CONbits.OPA1EN // bit 7, shadows bit in OPA1CONbits
8386 #define EN OPA1CONbits.EN // bit 7, shadows bit in OPA1CONbits
8388 #define PS0 OPTION_REGbits.PS0 // bit 0
8389 #define PS1 OPTION_REGbits.PS1 // bit 1
8390 #define PS2 OPTION_REGbits.PS2 // bit 2
8391 #define PSA OPTION_REGbits.PSA // bit 3
8392 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
8393 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
8394 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
8395 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
8396 #define INTEDG OPTION_REGbits.INTEDG // bit 6
8397 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
8399 #define SCS0 OSCCONbits.SCS0 // bit 0
8400 #define SCS1 OSCCONbits.SCS1 // bit 1
8401 #define IRCF0 OSCCONbits.IRCF0 // bit 3
8402 #define IRCF1 OSCCONbits.IRCF1 // bit 4
8403 #define IRCF2 OSCCONbits.IRCF2 // bit 5
8404 #define IRCF3 OSCCONbits.IRCF3 // bit 6
8405 #define SPLLEN OSCCONbits.SPLLEN // bit 7
8407 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
8408 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
8409 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
8410 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
8411 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
8412 #define OSTS OSCSTATbits.OSTS // bit 5
8413 #define PLLR OSCSTATbits.PLLR // bit 6
8414 #define T1OSCR OSCSTATbits.T1OSCR // bit 7
8416 #define TUN0 OSCTUNEbits.TUN0 // bit 0
8417 #define TUN1 OSCTUNEbits.TUN1 // bit 1
8418 #define TUN2 OSCTUNEbits.TUN2 // bit 2
8419 #define TUN3 OSCTUNEbits.TUN3 // bit 3
8420 #define TUN4 OSCTUNEbits.TUN4 // bit 4
8421 #define TUN5 OSCTUNEbits.TUN5 // bit 5
8423 #define NOT_BOR PCONbits.NOT_BOR // bit 0
8424 #define NOT_POR PCONbits.NOT_POR // bit 1
8425 #define NOT_RI PCONbits.NOT_RI // bit 2
8426 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
8427 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
8428 #define STKUNF PCONbits.STKUNF // bit 6
8429 #define STKOVF PCONbits.STKOVF // bit 7
8431 #define TMR1IE PIE1bits.TMR1IE // bit 0
8432 #define TMR2IE PIE1bits.TMR2IE // bit 1
8433 #define CCP1IE PIE1bits.CCP1IE // bit 2
8434 #define SSP1IE PIE1bits.SSP1IE // bit 3
8435 #define TXIE PIE1bits.TXIE // bit 4
8436 #define RCIE PIE1bits.RCIE // bit 5
8437 #define ADIE PIE1bits.ADIE // bit 6
8438 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
8440 #define CCP2IE PIE2bits.CCP2IE // bit 0
8441 #define C3IE PIE2bits.C3IE // bit 1
8442 #define C4IE PIE2bits.C4IE // bit 2
8443 #define BCL1IE PIE2bits.BCL1IE // bit 3
8444 #define EEIE PIE2bits.EEIE // bit 4
8445 #define C1IE PIE2bits.C1IE // bit 5
8446 #define C2IE PIE2bits.C2IE // bit 6
8447 #define OSFIE PIE2bits.OSFIE // bit 7
8449 #define CCP3IE PIE3bits.CCP3IE // bit 4
8451 #define PSMC1SIE PIE4bits.PSMC1SIE // bit 0
8452 #define PSMC2SIE PIE4bits.PSMC2SIE // bit 1
8453 #define PSMC3SIE PIE4bits.PSMC3SIE // bit 2
8454 #define PSMC1TIE PIE4bits.PSMC1TIE // bit 4
8455 #define PSMC2TIE PIE4bits.PSMC2TIE // bit 5
8456 #define PSMC3TIE PIE4bits.PSMC3TIE // bit 6, shadows bit in PIE4bits
8457 #define PMSC3TIE PIE4bits.PMSC3TIE // bit 6, shadows bit in PIE4bits
8459 #define TMR1IF PIR1bits.TMR1IF // bit 0
8460 #define TMR2IF PIR1bits.TMR2IF // bit 1
8461 #define CCP1IF PIR1bits.CCP1IF // bit 2
8462 #define SSP1IF PIR1bits.SSP1IF // bit 3
8463 #define TXIF PIR1bits.TXIF // bit 4
8464 #define RCIF PIR1bits.RCIF // bit 5
8465 #define ADIF PIR1bits.ADIF // bit 6
8466 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
8468 #define CCP2IF PIR2bits.CCP2IF // bit 0
8469 #define C3IF PIR2bits.C3IF // bit 1
8470 #define C4IF PIR2bits.C4IF // bit 2
8471 #define BCL1IF PIR2bits.BCL1IF // bit 3
8472 #define EEIF PIR2bits.EEIF // bit 4
8473 #define C1IF PIR2bits.C1IF // bit 5
8474 #define C2IF PIR2bits.C2IF // bit 6
8475 #define OSFIF PIR2bits.OSFIF // bit 7
8477 #define CCP3IF PIR3bits.CCP3IF // bit 4
8479 #define PSMC1SIF PIR4bits.PSMC1SIF // bit 0
8480 #define PSMC2SIF PIR4bits.PSMC2SIF // bit 1
8481 #define PSMC3SIF PIR4bits.PSMC3SIF // bit 2
8482 #define PSMC1TIF PIR4bits.PSMC1TIF // bit 4
8483 #define PSMC2TIF PIR4bits.PSMC2TIF // bit 5
8484 #define PSMC3TIF PIR4bits.PSMC3TIF // bit 6
8486 #define RA0 PORTAbits.RA0 // bit 0
8487 #define RA1 PORTAbits.RA1 // bit 1
8488 #define RA2 PORTAbits.RA2 // bit 2
8489 #define RA3 PORTAbits.RA3 // bit 3
8490 #define RA4 PORTAbits.RA4 // bit 4
8491 #define RA5 PORTAbits.RA5 // bit 5
8492 #define RA6 PORTAbits.RA6 // bit 6
8493 #define RA7 PORTAbits.RA7 // bit 7
8495 #define RB0 PORTBbits.RB0 // bit 0
8496 #define RB1 PORTBbits.RB1 // bit 1
8497 #define RB2 PORTBbits.RB2 // bit 2
8498 #define RB3 PORTBbits.RB3 // bit 3
8499 #define RB4 PORTBbits.RB4 // bit 4
8500 #define RB5 PORTBbits.RB5 // bit 5
8501 #define RB6 PORTBbits.RB6 // bit 6
8502 #define RB7 PORTBbits.RB7 // bit 7
8504 #define RC0 PORTCbits.RC0 // bit 0
8505 #define RC1 PORTCbits.RC1 // bit 1
8506 #define RC2 PORTCbits.RC2 // bit 2
8507 #define RC3 PORTCbits.RC3 // bit 3
8508 #define RC4 PORTCbits.RC4 // bit 4
8509 #define RC5 PORTCbits.RC5 // bit 5
8510 #define RC6 PORTCbits.RC6 // bit 6
8511 #define RC7 PORTCbits.RC7 // bit 7
8513 #define RD0 PORTDbits.RD0 // bit 0
8514 #define RD1 PORTDbits.RD1 // bit 1
8515 #define RD2 PORTDbits.RD2 // bit 2
8516 #define RD3 PORTDbits.RD3 // bit 3
8517 #define RD4 PORTDbits.RD4 // bit 4
8518 #define RD5 PORTDbits.RD5 // bit 5
8519 #define RD6 PORTDbits.RD6 // bit 6
8520 #define RD7 PORTDbits.RD7 // bit 7
8522 #define RE0 PORTEbits.RE0 // bit 0
8523 #define RE1 PORTEbits.RE1 // bit 1
8524 #define RE2 PORTEbits.RE2 // bit 2
8525 #define RE3 PORTEbits.RE3 // bit 3
8527 #define P1ASDOV PSMC1ASDCbits.P1ASDOV // bit 0
8528 #define P1ARSEN PSMC1ASDCbits.P1ARSEN // bit 5
8529 #define P1ASDEN PSMC1ASDCbits.P1ASDEN // bit 6
8530 #define P1ASE PSMC1ASDCbits.P1ASE // bit 7
8532 #define P1ASDLA PSMC1ASDLbits.P1ASDLA // bit 0
8533 #define P1ASDLB PSMC1ASDLbits.P1ASDLB // bit 1
8534 #define P1ASDLC PSMC1ASDLbits.P1ASDLC // bit 2
8535 #define P1ASDLD PSMC1ASDLbits.P1ASDLD // bit 3
8536 #define P1ASDLE PSMC1ASDLbits.P1ASDLE // bit 4
8537 #define P1ASDLF PSMC1ASDLbits.P1ASDLF // bit 5
8539 #define P1ASDSC1 PSMC1ASDSbits.P1ASDSC1 // bit 1
8540 #define P1ASDSC2 PSMC1ASDSbits.P1ASDSC2 // bit 2
8541 #define P1ASDSC3 PSMC1ASDSbits.P1ASDSC3 // bit 3
8542 #define P1ASDSC4 PSMC1ASDSbits.P1ASDSC4 // bit 4
8543 #define P1ASDSIN PSMC1ASDSbits.P1ASDSIN // bit 7
8545 #define PSMC1BLKF0 PSMC1BLKFbits.PSMC1BLKF0 // bit 0
8546 #define PSMC1BLKF1 PSMC1BLKFbits.PSMC1BLKF1 // bit 1
8547 #define PSMC1BLKF2 PSMC1BLKFbits.PSMC1BLKF2 // bit 2
8548 #define PSMC1BLKF3 PSMC1BLKFbits.PSMC1BLKF3 // bit 3
8549 #define PSMC1BLKF4 PSMC1BLKFbits.PSMC1BLKF4 // bit 4
8550 #define PSMC1BLKF5 PSMC1BLKFbits.PSMC1BLKF5 // bit 5
8551 #define PSMC1BLKF6 PSMC1BLKFbits.PSMC1BLKF6 // bit 6
8552 #define PSMC1BLKF7 PSMC1BLKFbits.PSMC1BLKF7 // bit 7
8554 #define PSMC1BLKR0 PSMC1BLKRbits.PSMC1BLKR0 // bit 0
8555 #define PSMC1BLKR1 PSMC1BLKRbits.PSMC1BLKR1 // bit 1
8556 #define PSMC1BLKR2 PSMC1BLKRbits.PSMC1BLKR2 // bit 2
8557 #define PSMC1BLKR3 PSMC1BLKRbits.PSMC1BLKR3 // bit 3
8558 #define PSMC1BLKR4 PSMC1BLKRbits.PSMC1BLKR4 // bit 4
8559 #define PSMC1BLKR5 PSMC1BLKRbits.PSMC1BLKR5 // bit 5
8560 #define PSMC1BLKR6 PSMC1BLKRbits.PSMC1BLKR6 // bit 6
8561 #define PSMC1BLKR7 PSMC1BLKRbits.PSMC1BLKR7 // bit 7
8563 #define P1REBM0 PSMC1BLNKbits.P1REBM0 // bit 0
8564 #define P1REBM1 PSMC1BLNKbits.P1REBM1 // bit 1
8565 #define P1FEBM0 PSMC1BLNKbits.P1FEBM0 // bit 4
8566 #define P1FEBM1 PSMC1BLNKbits.P1FEBM1 // bit 5
8568 #define P1CSRC0 PSMC1CLKbits.P1CSRC0 // bit 0
8569 #define P1CSRC1 PSMC1CLKbits.P1CSRC1 // bit 1
8570 #define P1CPRE0 PSMC1CLKbits.P1CPRE0 // bit 4
8571 #define P1CPRE1 PSMC1CLKbits.P1CPRE1 // bit 5
8573 #define P1MODE0 PSMC1CONbits.P1MODE0 // bit 0
8574 #define P1MODE1 PSMC1CONbits.P1MODE1 // bit 1
8575 #define P1MODE2 PSMC1CONbits.P1MODE2 // bit 2
8576 #define P1MODE3 PSMC1CONbits.P1MODE3 // bit 3
8577 #define P1DBRE PSMC1CONbits.P1DBRE // bit 4
8578 #define P1DBFE PSMC1CONbits.P1DBFE // bit 5
8579 #define PSMC1LD PSMC1CONbits.PSMC1LD // bit 6
8580 #define PSMC1EN PSMC1CONbits.PSMC1EN // bit 7
8582 #define PSMC1DBF0 PSMC1DBFbits.PSMC1DBF0 // bit 0
8583 #define PSMC1DBF1 PSMC1DBFbits.PSMC1DBF1 // bit 1
8584 #define PSMC1DBF2 PSMC1DBFbits.PSMC1DBF2 // bit 2
8585 #define PSMC1DBF3 PSMC1DBFbits.PSMC1DBF3 // bit 3
8586 #define PSMC1DBF4 PSMC1DBFbits.PSMC1DBF4 // bit 4
8587 #define PSMC1DBF5 PSMC1DBFbits.PSMC1DBF5 // bit 5
8588 #define PSMC1DBF6 PSMC1DBFbits.PSMC1DBF6 // bit 6
8589 #define PSMC1DBF7 PSMC1DBFbits.PSMC1DBF7 // bit 7
8591 #define PSMC1DBR0 PSMC1DBRbits.PSMC1DBR0 // bit 0
8592 #define PSMC1DBR1 PSMC1DBRbits.PSMC1DBR1 // bit 1
8593 #define PSMC1DBR2 PSMC1DBRbits.PSMC1DBR2 // bit 2
8594 #define PSMC1DBR3 PSMC1DBRbits.PSMC1DBR3 // bit 3
8595 #define PSMC1DBR4 PSMC1DBRbits.PSMC1DBR4 // bit 4
8596 #define PSMC1DBR5 PSMC1DBRbits.PSMC1DBR5 // bit 5
8597 #define PSMC1DBR6 PSMC1DBRbits.PSMC1DBR6 // bit 6
8598 #define PSMC1DBR7 PSMC1DBRbits.PSMC1DBR7 // bit 7
8600 #define PSMC1DC8 PSMC1DCHbits.PSMC1DC8 // bit 0
8601 #define PSMC1DC9 PSMC1DCHbits.PSMC1DC9 // bit 1
8602 #define PSMC1DC10 PSMC1DCHbits.PSMC1DC10 // bit 2
8603 #define PSMC1DC11 PSMC1DCHbits.PSMC1DC11 // bit 3
8604 #define PSMC1DC12 PSMC1DCHbits.PSMC1DC12 // bit 4
8605 #define PSMC1DC13 PSMC1DCHbits.PSMC1DC13 // bit 5
8606 #define PSMC1DC14 PSMC1DCHbits.PSMC1DC14 // bit 6
8607 #define PSMC1DC15 PSMC1DCHbits.PSMC1DC15 // bit 7
8609 #define PSMC1DC0 PSMC1DCLbits.PSMC1DC0 // bit 0
8610 #define PSMC1DC1 PSMC1DCLbits.PSMC1DC1 // bit 1
8611 #define PSMC1DC2 PSMC1DCLbits.PSMC1DC2 // bit 2
8612 #define PSMC1DC3 PSMC1DCLbits.PSMC1DC3 // bit 3
8613 #define PSMC1DC4 PSMC1DCLbits.PSMC1DC4 // bit 4
8614 #define PSMC1DC5 PSMC1DCLbits.PSMC1DC5 // bit 5
8615 #define PSMC1DC6 PSMC1DCLbits.PSMC1DC6 // bit 6
8616 #define PSMC1DC7 PSMC1DCLbits.PSMC1DC7 // bit 7
8618 #define P1DCST PSMC1DCSbits.P1DCST // bit 0
8619 #define P1DCSC1 PSMC1DCSbits.P1DCSC1 // bit 1
8620 #define P1DCSC2 PSMC1DCSbits.P1DCSC2 // bit 2
8621 #define P1DCSC3 PSMC1DCSbits.P1DCSC3 // bit 3
8622 #define P1DCSC4 PSMC1DCSbits.P1DCSC4 // bit 4
8623 #define P1DCSIN PSMC1DCSbits.P1DCSIN // bit 7
8625 #define P1FEBSC1 PSMC1FEBSbits.P1FEBSC1 // bit 1
8626 #define P1FEBSC2 PSMC1FEBSbits.P1FEBSC2 // bit 2
8627 #define P1FEBSC3 PSMC1FEBSbits.P1FEBSC3 // bit 3
8628 #define P1FEBSC4 PSMC1FEBSbits.P1FEBSC4 // bit 4
8629 #define P1FEBSIN PSMC1FEBSbits.P1FEBSIN // bit 7
8631 #define PSMC1FFA0 PSMC1FFAbits.PSMC1FFA0 // bit 0
8632 #define PSMC1FFA1 PSMC1FFAbits.PSMC1FFA1 // bit 1
8633 #define PSMC1FFA2 PSMC1FFAbits.PSMC1FFA2 // bit 2
8634 #define PSMC1FFA3 PSMC1FFAbits.PSMC1FFA3 // bit 3
8636 #define P1TPRIF PSMC1INTbits.P1TPRIF // bit 0
8637 #define P1TDCIF PSMC1INTbits.P1TDCIF // bit 1
8638 #define P1TPHIF PSMC1INTbits.P1TPHIF // bit 2
8639 #define P1TOVIF PSMC1INTbits.P1TOVIF // bit 3
8640 #define P1TPRIE PSMC1INTbits.P1TPRIE // bit 4
8641 #define P1TDCIE PSMC1INTbits.P1TDCIE // bit 5
8642 #define P1TPHIE PSMC1INTbits.P1TPHIE // bit 6
8643 #define P1TOVIE PSMC1INTbits.P1TOVIE // bit 7
8645 #define P1MSRC0 PSMC1MDLbits.P1MSRC0 // bit 0
8646 #define P1MSRC1 PSMC1MDLbits.P1MSRC1 // bit 1
8647 #define P1MSRC2 PSMC1MDLbits.P1MSRC2 // bit 2
8648 #define P1MSRC3 PSMC1MDLbits.P1MSRC3 // bit 3
8649 #define P1MDLBIT PSMC1MDLbits.P1MDLBIT // bit 5
8650 #define P1MDLPOL PSMC1MDLbits.P1MDLPOL // bit 6
8651 #define P1MDLEN PSMC1MDLbits.P1MDLEN // bit 7
8653 #define P1OEA PSMC1OENbits.P1OEA // bit 0
8654 #define P1OEB PSMC1OENbits.P1OEB // bit 1
8655 #define P1OEC PSMC1OENbits.P1OEC // bit 2
8656 #define P1OED PSMC1OENbits.P1OED // bit 3
8657 #define P1OEE PSMC1OENbits.P1OEE // bit 4
8658 #define P1OEF PSMC1OENbits.P1OEF // bit 5
8660 #define PSMC1PH8 PSMC1PHHbits.PSMC1PH8 // bit 0
8661 #define PSMC1PH9 PSMC1PHHbits.PSMC1PH9 // bit 1
8662 #define PSMC1PH10 PSMC1PHHbits.PSMC1PH10 // bit 2
8663 #define PSMC1PH11 PSMC1PHHbits.PSMC1PH11 // bit 3
8664 #define PSMC1PH12 PSMC1PHHbits.PSMC1PH12 // bit 4
8665 #define PSMC1PH13 PSMC1PHHbits.PSMC1PH13 // bit 5
8666 #define PSMC1PH14 PSMC1PHHbits.PSMC1PH14 // bit 6
8667 #define PSMC1PH15 PSMC1PHHbits.PSMC1PH15 // bit 7
8669 #define PSMC1PH0 PSMC1PHLbits.PSMC1PH0 // bit 0
8670 #define PSMC1PH1 PSMC1PHLbits.PSMC1PH1 // bit 1
8671 #define PSMC1PH2 PSMC1PHLbits.PSMC1PH2 // bit 2
8672 #define PSMC1PH3 PSMC1PHLbits.PSMC1PH3 // bit 3
8673 #define PSMC1PH4 PSMC1PHLbits.PSMC1PH4 // bit 4
8674 #define PSMC1PH5 PSMC1PHLbits.PSMC1PH5 // bit 5
8675 #define PSMC1PH6 PSMC1PHLbits.PSMC1PH6 // bit 6
8676 #define PSMC1PH7 PSMC1PHLbits.PSMC1PH7 // bit 7
8678 #define P1PHST PSMC1PHSbits.P1PHST // bit 0
8679 #define P1PHSC1 PSMC1PHSbits.P1PHSC1 // bit 1
8680 #define P1PHSC2 PSMC1PHSbits.P1PHSC2 // bit 2
8681 #define P1PHSC3 PSMC1PHSbits.P1PHSC3 // bit 3
8682 #define P1PHSC4 PSMC1PHSbits.P1PHSC4 // bit 4
8683 #define P1PHSIN PSMC1PHSbits.P1PHSIN // bit 7
8685 #define P1POLA PSMC1POLbits.P1POLA // bit 0
8686 #define P1POLB PSMC1POLbits.P1POLB // bit 1
8687 #define P1POLC PSMC1POLbits.P1POLC // bit 2
8688 #define P1POLD PSMC1POLbits.P1POLD // bit 3
8689 #define P1POLE PSMC1POLbits.P1POLE // bit 4
8690 #define P1POLF PSMC1POLbits.P1POLF // bit 5
8691 #define P1INPOL PSMC1POLbits.P1INPOL // bit 6
8693 #define PSMC1PR8 PSMC1PRHbits.PSMC1PR8 // bit 0
8694 #define PSMC1PR9 PSMC1PRHbits.PSMC1PR9 // bit 1
8695 #define PSMC1PR10 PSMC1PRHbits.PSMC1PR10 // bit 2
8696 #define PSMC1PR11 PSMC1PRHbits.PSMC1PR11 // bit 3
8697 #define PSMC1PR12 PSMC1PRHbits.PSMC1PR12 // bit 4
8698 #define PSMC1PR13 PSMC1PRHbits.PSMC1PR13 // bit 5
8699 #define PSMC1PR14 PSMC1PRHbits.PSMC1PR14 // bit 6
8700 #define PSMC1PR15 PSMC1PRHbits.PSMC1PR15 // bit 7
8702 #define PSMC1PR0 PSMC1PRLbits.PSMC1PR0 // bit 0
8703 #define PSMC1PR1 PSMC1PRLbits.PSMC1PR1 // bit 1
8704 #define PSMC1PR2 PSMC1PRLbits.PSMC1PR2 // bit 2
8705 #define PSMC1PR3 PSMC1PRLbits.PSMC1PR3 // bit 3
8706 #define PSMC1PR4 PSMC1PRLbits.PSMC1PR4 // bit 4
8707 #define PSMC1PR5 PSMC1PRLbits.PSMC1PR5 // bit 5
8708 #define PSMC1PR6 PSMC1PRLbits.PSMC1PR6 // bit 6
8709 #define PSMC1PR7 PSMC1PRLbits.PSMC1PR7 // bit 7
8711 #define P1PRST PSMC1PRSbits.P1PRST // bit 0
8712 #define P1PRSC1 PSMC1PRSbits.P1PRSC1 // bit 1
8713 #define P1PRSC2 PSMC1PRSbits.P1PRSC2 // bit 2
8714 #define P1PRSC3 PSMC1PRSbits.P1PRSC3 // bit 3
8715 #define P1PRSC4 PSMC1PRSbits.P1PRSC4 // bit 4
8716 #define P1PRSIN PSMC1PRSbits.P1PRSIN // bit 7
8718 #define P1REBSC1 PSMC1REBSbits.P1REBSC1 // bit 1
8719 #define P1REBSC2 PSMC1REBSbits.P1REBSC2 // bit 2
8720 #define P1REBSC3 PSMC1REBSbits.P1REBSC3 // bit 3
8721 #define P1REBSC4 PSMC1REBSbits.P1REBSC4 // bit 4
8722 #define P1REBSIN PSMC1REBSbits.P1REBSIN // bit 7
8724 #define P1STRA PSMC1STR0bits.P1STRA // bit 0
8725 #define P1STRB PSMC1STR0bits.P1STRB // bit 1
8726 #define P1STRC PSMC1STR0bits.P1STRC // bit 2
8727 #define P1STRD PSMC1STR0bits.P1STRD // bit 3
8728 #define P1STRE PSMC1STR0bits.P1STRE // bit 4
8729 #define P1STRF PSMC1STR0bits.P1STRF // bit 5
8731 #define P1HSMEN PSMC1STR1bits.P1HSMEN // bit 0
8732 #define P1LSMEN PSMC1STR1bits.P1LSMEN // bit 1
8733 #define P1SSYNC PSMC1STR1bits.P1SSYNC // bit 7
8735 #define P1SYNC0 PSMC1SYNCbits.P1SYNC0 // bit 0
8736 #define P1SYNC1 PSMC1SYNCbits.P1SYNC1 // bit 1
8737 #define P1SYNC2 PSMC1SYNCbits.P1SYNC2 // bit 2
8738 #define P1DCPOL PSMC1SYNCbits.P1DCPOL // bit 5
8739 #define P1PRPOL PSMC1SYNCbits.P1PRPOL // bit 6
8740 #define P1POFST PSMC1SYNCbits.P1POFST // bit 7
8742 #define PSMC1TMR8 PSMC1TMRHbits.PSMC1TMR8 // bit 0
8743 #define PSMC1TMR9 PSMC1TMRHbits.PSMC1TMR9 // bit 1
8744 #define PSMC1TMR10 PSMC1TMRHbits.PSMC1TMR10 // bit 2
8745 #define PSMC1TMR11 PSMC1TMRHbits.PSMC1TMR11 // bit 3
8746 #define PSMC1TMR12 PSMC1TMRHbits.PSMC1TMR12 // bit 4
8747 #define PSMC1TMR13 PSMC1TMRHbits.PSMC1TMR13 // bit 5
8748 #define PSMC1TMR14 PSMC1TMRHbits.PSMC1TMR14 // bit 6
8749 #define PSMC1TMR15 PSMC1TMRHbits.PSMC1TMR15 // bit 7
8751 #define PSMC1TMR0 PSMC1TMRLbits.PSMC1TMR0 // bit 0
8752 #define PSMC1TMR1 PSMC1TMRLbits.PSMC1TMR1 // bit 1
8753 #define PSMC1TMR2 PSMC1TMRLbits.PSMC1TMR2 // bit 2
8754 #define PSMC1TMR3 PSMC1TMRLbits.PSMC1TMR3 // bit 3
8755 #define PSMC1TMR4 PSMC1TMRLbits.PSMC1TMR4 // bit 4
8756 #define PSMC1TMR5 PSMC1TMRLbits.PSMC1TMR5 // bit 5
8757 #define PSMC1TMR6 PSMC1TMRLbits.PSMC1TMR6 // bit 6
8758 #define PSMC1TMR7 PSMC1TMRLbits.PSMC1TMR7 // bit 7
8760 #define P2ASDOV PSMC2ASDCbits.P2ASDOV // bit 0
8761 #define P2ARSEN PSMC2ASDCbits.P2ARSEN // bit 5
8762 #define P2ASDEN PSMC2ASDCbits.P2ASDEN // bit 6
8763 #define P2ASE PSMC2ASDCbits.P2ASE // bit 7
8765 #define P2ASDLA PSMC2ASDLbits.P2ASDLA // bit 0
8766 #define P2ASDLB PSMC2ASDLbits.P2ASDLB // bit 1
8768 #define P2ASDSC1 PSMC2ASDSbits.P2ASDSC1 // bit 1
8769 #define P2ASDSC2 PSMC2ASDSbits.P2ASDSC2 // bit 2
8770 #define P2ASDSC3 PSMC2ASDSbits.P2ASDSC3 // bit 3
8771 #define P2ASDSC4 PSMC2ASDSbits.P2ASDSC4 // bit 4
8772 #define P2ASDSIN PSMC2ASDSbits.P2ASDSIN // bit 7
8774 #define PSMC2BLKF0 PSMC2BLKFbits.PSMC2BLKF0 // bit 0
8775 #define PSMC2BLKF1 PSMC2BLKFbits.PSMC2BLKF1 // bit 1
8776 #define PSMC2BLKF2 PSMC2BLKFbits.PSMC2BLKF2 // bit 2
8777 #define PSMC2BLKF3 PSMC2BLKFbits.PSMC2BLKF3 // bit 3
8778 #define PSMC2BLKF4 PSMC2BLKFbits.PSMC2BLKF4 // bit 4
8779 #define PSMC2BLKF5 PSMC2BLKFbits.PSMC2BLKF5 // bit 5
8780 #define PSMC2BLKF6 PSMC2BLKFbits.PSMC2BLKF6 // bit 6
8781 #define PSMC2BLKF7 PSMC2BLKFbits.PSMC2BLKF7 // bit 7
8783 #define PSMC2BLKR0 PSMC2BLKRbits.PSMC2BLKR0 // bit 0
8784 #define PSMC2BLKR1 PSMC2BLKRbits.PSMC2BLKR1 // bit 1
8785 #define PSMC2BLKR2 PSMC2BLKRbits.PSMC2BLKR2 // bit 2
8786 #define PSMC2BLKR3 PSMC2BLKRbits.PSMC2BLKR3 // bit 3
8787 #define PSMC2BLKR4 PSMC2BLKRbits.PSMC2BLKR4 // bit 4
8788 #define PSMC2BLKR5 PSMC2BLKRbits.PSMC2BLKR5 // bit 5
8789 #define PSMC2BLKR6 PSMC2BLKRbits.PSMC2BLKR6 // bit 6
8790 #define PSMC2BLKR7 PSMC2BLKRbits.PSMC2BLKR7 // bit 7
8792 #define P2REBM0 PSMC2BLNKbits.P2REBM0 // bit 0
8793 #define P2REBM1 PSMC2BLNKbits.P2REBM1 // bit 1
8794 #define P2FEBM0 PSMC2BLNKbits.P2FEBM0 // bit 4
8795 #define P2FEBM1 PSMC2BLNKbits.P2FEBM1 // bit 5
8797 #define P2CSRC0 PSMC2CLKbits.P2CSRC0 // bit 0
8798 #define P2CSRC1 PSMC2CLKbits.P2CSRC1 // bit 1
8799 #define P2CPRE0 PSMC2CLKbits.P2CPRE0 // bit 4
8800 #define P2CPRE1 PSMC2CLKbits.P2CPRE1 // bit 5
8802 #define P2MODE0 PSMC2CONbits.P2MODE0 // bit 0
8803 #define P2MODE1 PSMC2CONbits.P2MODE1 // bit 1
8804 #define P2MODE2 PSMC2CONbits.P2MODE2 // bit 2
8805 #define P2MODE3 PSMC2CONbits.P2MODE3 // bit 3
8806 #define P2DBRE PSMC2CONbits.P2DBRE // bit 4
8807 #define P2DBFE PSMC2CONbits.P2DBFE // bit 5
8808 #define PSMC2LD PSMC2CONbits.PSMC2LD // bit 6
8809 #define PSMC2EN PSMC2CONbits.PSMC2EN // bit 7
8811 #define PSMC2DBF0 PSMC2DBFbits.PSMC2DBF0 // bit 0
8812 #define PSMC2DBF1 PSMC2DBFbits.PSMC2DBF1 // bit 1
8813 #define PSMC2DBF2 PSMC2DBFbits.PSMC2DBF2 // bit 2
8814 #define PSMC2DBF3 PSMC2DBFbits.PSMC2DBF3 // bit 3
8815 #define PSMC2DBF4 PSMC2DBFbits.PSMC2DBF4 // bit 4
8816 #define PSMC2DBF5 PSMC2DBFbits.PSMC2DBF5 // bit 5
8817 #define PSMC2DBF6 PSMC2DBFbits.PSMC2DBF6 // bit 6
8818 #define PSMC2DBF7 PSMC2DBFbits.PSMC2DBF7 // bit 7
8820 #define PSMC2DBR0 PSMC2DBRbits.PSMC2DBR0 // bit 0
8821 #define PSMC2DBR1 PSMC2DBRbits.PSMC2DBR1 // bit 1
8822 #define PSMC2DBR2 PSMC2DBRbits.PSMC2DBR2 // bit 2
8823 #define PSMC2DBR3 PSMC2DBRbits.PSMC2DBR3 // bit 3
8824 #define PSMC2DBR4 PSMC2DBRbits.PSMC2DBR4 // bit 4
8825 #define PSMC2DBR5 PSMC2DBRbits.PSMC2DBR5 // bit 5
8826 #define PSMC2DBR6 PSMC2DBRbits.PSMC2DBR6 // bit 6
8827 #define PSMC2DBR7 PSMC2DBRbits.PSMC2DBR7 // bit 7
8829 #define PSMC2DC8 PSMC2DCHbits.PSMC2DC8 // bit 0
8830 #define PSMC2DC9 PSMC2DCHbits.PSMC2DC9 // bit 1
8831 #define PSMC2DC10 PSMC2DCHbits.PSMC2DC10 // bit 2
8832 #define PSMC2DC11 PSMC2DCHbits.PSMC2DC11 // bit 3
8833 #define PSMC2DC12 PSMC2DCHbits.PSMC2DC12 // bit 4
8834 #define PSMC2DC13 PSMC2DCHbits.PSMC2DC13 // bit 5
8835 #define PSMC2DC14 PSMC2DCHbits.PSMC2DC14 // bit 6
8836 #define PSMC2DC15 PSMC2DCHbits.PSMC2DC15 // bit 7
8838 #define PSMC2DC0 PSMC2DCLbits.PSMC2DC0 // bit 0
8839 #define PSMC2DC1 PSMC2DCLbits.PSMC2DC1 // bit 1
8840 #define PSMC2DC2 PSMC2DCLbits.PSMC2DC2 // bit 2
8841 #define PSMC2DC3 PSMC2DCLbits.PSMC2DC3 // bit 3
8842 #define PSMC2DC4 PSMC2DCLbits.PSMC2DC4 // bit 4
8843 #define PSMC2DC5 PSMC2DCLbits.PSMC2DC5 // bit 5
8844 #define PSMC2DC6 PSMC2DCLbits.PSMC2DC6 // bit 6
8845 #define PSMC2DC7 PSMC2DCLbits.PSMC2DC7 // bit 7
8847 #define P2DCST PSMC2DCSbits.P2DCST // bit 0
8848 #define P2DCSC1 PSMC2DCSbits.P2DCSC1 // bit 1
8849 #define P2DCSC2 PSMC2DCSbits.P2DCSC2 // bit 2
8850 #define P2DCSC3 PSMC2DCSbits.P2DCSC3 // bit 3
8851 #define P2DCSC4 PSMC2DCSbits.P2DCSC4 // bit 4
8852 #define P2DCSIN PSMC2DCSbits.P2DCSIN // bit 7
8854 #define P2FEBSC1 PSMC2FEBSbits.P2FEBSC1 // bit 1
8855 #define P2FEBSC2 PSMC2FEBSbits.P2FEBSC2 // bit 2
8856 #define P2FEBSC3 PSMC2FEBSbits.P2FEBSC3 // bit 3
8857 #define P2FEBSC4 PSMC2FEBSbits.P2FEBSC4 // bit 4
8858 #define P2FEBSIN PSMC2FEBSbits.P2FEBSIN // bit 7
8860 #define PSMC2FFA0 PSMC2FFAbits.PSMC2FFA0 // bit 0
8861 #define PSMC2FFA1 PSMC2FFAbits.PSMC2FFA1 // bit 1
8862 #define PSMC2FFA2 PSMC2FFAbits.PSMC2FFA2 // bit 2
8863 #define PSMC2FFA3 PSMC2FFAbits.PSMC2FFA3 // bit 3
8865 #define P2TPRIF PSMC2INTbits.P2TPRIF // bit 0
8866 #define P2TDCIF PSMC2INTbits.P2TDCIF // bit 1
8867 #define P2TPHIF PSMC2INTbits.P2TPHIF // bit 2
8868 #define P2TOVIF PSMC2INTbits.P2TOVIF // bit 3
8869 #define P2TPRIE PSMC2INTbits.P2TPRIE // bit 4
8870 #define P2TDCIE PSMC2INTbits.P2TDCIE // bit 5
8871 #define P2TPHIE PSMC2INTbits.P2TPHIE // bit 6
8872 #define P2TOVIE PSMC2INTbits.P2TOVIE // bit 7
8874 #define P2MSRC0 PSMC2MDLbits.P2MSRC0 // bit 0
8875 #define P2MSRC1 PSMC2MDLbits.P2MSRC1 // bit 1
8876 #define P2MSRC2 PSMC2MDLbits.P2MSRC2 // bit 2
8877 #define P2MSRC3 PSMC2MDLbits.P2MSRC3 // bit 3
8878 #define P2MDLBIT PSMC2MDLbits.P2MDLBIT // bit 5
8879 #define P2MDLPOL PSMC2MDLbits.P2MDLPOL // bit 6
8880 #define P2MDLEN PSMC2MDLbits.P2MDLEN // bit 7
8882 #define P2OEA PSMC2OENbits.P2OEA // bit 0
8883 #define P2OEB PSMC2OENbits.P2OEB // bit 1
8885 #define PSMC2PH8 PSMC2PHHbits.PSMC2PH8 // bit 0
8886 #define PSMC2PH9 PSMC2PHHbits.PSMC2PH9 // bit 1
8887 #define PSMC2PH10 PSMC2PHHbits.PSMC2PH10 // bit 2
8888 #define PSMC2PH11 PSMC2PHHbits.PSMC2PH11 // bit 3
8889 #define PSMC2PH12 PSMC2PHHbits.PSMC2PH12 // bit 4
8890 #define PSMC2PH13 PSMC2PHHbits.PSMC2PH13 // bit 5
8891 #define PSMC2PH14 PSMC2PHHbits.PSMC2PH14 // bit 6
8892 #define PSMC2PH15 PSMC2PHHbits.PSMC2PH15 // bit 7
8894 #define PSMC2PH0 PSMC2PHLbits.PSMC2PH0 // bit 0
8895 #define PSMC2PH1 PSMC2PHLbits.PSMC2PH1 // bit 1
8896 #define PSMC2PH2 PSMC2PHLbits.PSMC2PH2 // bit 2
8897 #define PSMC2PH3 PSMC2PHLbits.PSMC2PH3 // bit 3
8898 #define PSMC2PH4 PSMC2PHLbits.PSMC2PH4 // bit 4
8899 #define PSMC2PH5 PSMC2PHLbits.PSMC2PH5 // bit 5
8900 #define PSMC2PH6 PSMC2PHLbits.PSMC2PH6 // bit 6
8901 #define PSMC2PH7 PSMC2PHLbits.PSMC2PH7 // bit 7
8903 #define P2PHST PSMC2PHSbits.P2PHST // bit 0
8904 #define P2PHSC1 PSMC2PHSbits.P2PHSC1 // bit 1
8905 #define P2PHSC2 PSMC2PHSbits.P2PHSC2 // bit 2
8906 #define P2PHSC3 PSMC2PHSbits.P2PHSC3 // bit 3
8907 #define P2PHSC4 PSMC2PHSbits.P2PHSC4 // bit 4
8908 #define P2PHSIN PSMC2PHSbits.P2PHSIN // bit 7
8910 #define P2POLA PSMC2POLbits.P2POLA // bit 0
8911 #define P2POLB PSMC2POLbits.P2POLB // bit 1
8912 #define P2INPOL PSMC2POLbits.P2INPOL // bit 6
8914 #define PSMC2PR8 PSMC2PRHbits.PSMC2PR8 // bit 0
8915 #define PSMC2PR9 PSMC2PRHbits.PSMC2PR9 // bit 1
8916 #define PSMC2PR10 PSMC2PRHbits.PSMC2PR10 // bit 2
8917 #define PSMC2PR11 PSMC2PRHbits.PSMC2PR11 // bit 3
8918 #define PSMC2PR12 PSMC2PRHbits.PSMC2PR12 // bit 4
8919 #define PSMC2PR13 PSMC2PRHbits.PSMC2PR13 // bit 5
8920 #define PSMC2PR14 PSMC2PRHbits.PSMC2PR14 // bit 6
8921 #define PSMC2PR15 PSMC2PRHbits.PSMC2PR15 // bit 7
8923 #define PSMC2PR0 PSMC2PRLbits.PSMC2PR0 // bit 0
8924 #define PSMC2PR1 PSMC2PRLbits.PSMC2PR1 // bit 1
8925 #define PSMC2PR2 PSMC2PRLbits.PSMC2PR2 // bit 2
8926 #define PSMC2PR3 PSMC2PRLbits.PSMC2PR3 // bit 3
8927 #define PSMC2PR4 PSMC2PRLbits.PSMC2PR4 // bit 4
8928 #define PSMC2PR5 PSMC2PRLbits.PSMC2PR5 // bit 5
8929 #define PSMC2PR6 PSMC2PRLbits.PSMC2PR6 // bit 6
8930 #define PSMC2PR7 PSMC2PRLbits.PSMC2PR7 // bit 7
8932 #define P2PRST PSMC2PRSbits.P2PRST // bit 0
8933 #define P2PRSC1 PSMC2PRSbits.P2PRSC1 // bit 1
8934 #define P2PRSC2 PSMC2PRSbits.P2PRSC2 // bit 2
8935 #define P2PRSC3 PSMC2PRSbits.P2PRSC3 // bit 3
8936 #define P2PRSC4 PSMC2PRSbits.P2PRSC4 // bit 4
8937 #define P2PRSIN PSMC2PRSbits.P2PRSIN // bit 7
8939 #define P2REBSC1 PSMC2REBSbits.P2REBSC1 // bit 1
8940 #define P2REBSC2 PSMC2REBSbits.P2REBSC2 // bit 2
8941 #define P2REBSC3 PSMC2REBSbits.P2REBSC3 // bit 3
8942 #define P2REBSC4 PSMC2REBSbits.P2REBSC4 // bit 4
8943 #define P2REBSIN PSMC2REBSbits.P2REBSIN // bit 7
8945 #define P2STRA PSMC2STR0bits.P2STRA // bit 0
8946 #define P2STRB PSMC2STR0bits.P2STRB // bit 1
8948 #define P2HSMEN PSMC2STR1bits.P2HSMEN // bit 0
8949 #define P2LSMEN PSMC2STR1bits.P2LSMEN // bit 1
8950 #define P2SSYNC PSMC2STR1bits.P2SSYNC // bit 7
8952 #define P2SYNC0 PSMC2SYNCbits.P2SYNC0 // bit 0
8953 #define P2SYNC1 PSMC2SYNCbits.P2SYNC1 // bit 1
8954 #define P2SYNC2 PSMC2SYNCbits.P2SYNC2 // bit 2
8955 #define P2DCPOL PSMC2SYNCbits.P2DCPOL // bit 5
8956 #define P2PRPOL PSMC2SYNCbits.P2PRPOL // bit 6
8957 #define P2POFST PSMC2SYNCbits.P2POFST // bit 7
8959 #define PSMC2TMR8 PSMC2TMRHbits.PSMC2TMR8 // bit 0
8960 #define PSMC2TMR9 PSMC2TMRHbits.PSMC2TMR9 // bit 1
8961 #define PSMC2TMR10 PSMC2TMRHbits.PSMC2TMR10 // bit 2
8962 #define PSMC2TMR11 PSMC2TMRHbits.PSMC2TMR11 // bit 3
8963 #define PSMC2TMR12 PSMC2TMRHbits.PSMC2TMR12 // bit 4
8964 #define PSMC2TMR13 PSMC2TMRHbits.PSMC2TMR13 // bit 5
8965 #define PSMC2TMR14 PSMC2TMRHbits.PSMC2TMR14 // bit 6
8966 #define PSMC2TMR15 PSMC2TMRHbits.PSMC2TMR15 // bit 7
8968 #define PSMC2TMR0 PSMC2TMRLbits.PSMC2TMR0 // bit 0
8969 #define PSMC2TMR1 PSMC2TMRLbits.PSMC2TMR1 // bit 1
8970 #define PSMC2TMR2 PSMC2TMRLbits.PSMC2TMR2 // bit 2
8971 #define PSMC2TMR3 PSMC2TMRLbits.PSMC2TMR3 // bit 3
8972 #define PSMC2TMR4 PSMC2TMRLbits.PSMC2TMR4 // bit 4
8973 #define PSMC2TMR5 PSMC2TMRLbits.PSMC2TMR5 // bit 5
8974 #define PSMC2TMR6 PSMC2TMRLbits.PSMC2TMR6 // bit 6
8975 #define PSMC2TMR7 PSMC2TMRLbits.PSMC2TMR7 // bit 7
8977 #define P3ASDOV PSMC3ASDCbits.P3ASDOV // bit 0
8978 #define P3ARSEN PSMC3ASDCbits.P3ARSEN // bit 5
8979 #define P3ASDEN PSMC3ASDCbits.P3ASDEN // bit 6
8980 #define P3ASE PSMC3ASDCbits.P3ASE // bit 7
8982 #define P3ASDLA PSMC3ASDLbits.P3ASDLA // bit 0
8983 #define P3ASDLB PSMC3ASDLbits.P3ASDLB // bit 1
8984 #define P3ASDLC PSMC3ASDLbits.P3ASDLC // bit 2
8985 #define P3ASDLD PSMC3ASDLbits.P3ASDLD // bit 3
8986 #define P3ASDLE PSMC3ASDLbits.P3ASDLE // bit 4
8987 #define P3ASDLF PSMC3ASDLbits.P3ASDLF // bit 5
8989 #define P3ASDSC1 PSMC3ASDSbits.P3ASDSC1 // bit 1
8990 #define P3ASDSC2 PSMC3ASDSbits.P3ASDSC2 // bit 2
8991 #define P3ASDSC3 PSMC3ASDSbits.P3ASDSC3 // bit 3
8992 #define P3ASDSC4 PSMC3ASDSbits.P3ASDSC4 // bit 4
8993 #define P3ASDSIN PSMC3ASDSbits.P3ASDSIN // bit 7
8995 #define PSMC3BLKF0 PSMC3BLKFbits.PSMC3BLKF0 // bit 0
8996 #define PSMC3BLKF1 PSMC3BLKFbits.PSMC3BLKF1 // bit 1
8997 #define PSMC3BLKF2 PSMC3BLKFbits.PSMC3BLKF2 // bit 2
8998 #define PSMC3BLKF3 PSMC3BLKFbits.PSMC3BLKF3 // bit 3
8999 #define PSMC3BLKF4 PSMC3BLKFbits.PSMC3BLKF4 // bit 4
9000 #define PSMC3BLKF5 PSMC3BLKFbits.PSMC3BLKF5 // bit 5
9001 #define PSMC3BLKF6 PSMC3BLKFbits.PSMC3BLKF6 // bit 6
9002 #define PSMC3BLKF7 PSMC3BLKFbits.PSMC3BLKF7 // bit 7
9004 #define PSMC3BLKR0 PSMC3BLKRbits.PSMC3BLKR0 // bit 0
9005 #define PSMC3BLKR1 PSMC3BLKRbits.PSMC3BLKR1 // bit 1
9006 #define PSMC3BLKR2 PSMC3BLKRbits.PSMC3BLKR2 // bit 2
9007 #define PSMC3BLKR3 PSMC3BLKRbits.PSMC3BLKR3 // bit 3
9008 #define PSMC3BLKR4 PSMC3BLKRbits.PSMC3BLKR4 // bit 4
9009 #define PSMC3BLKR5 PSMC3BLKRbits.PSMC3BLKR5 // bit 5
9010 #define PSMC3BLKR6 PSMC3BLKRbits.PSMC3BLKR6 // bit 6
9011 #define PSMC3BLKR7 PSMC3BLKRbits.PSMC3BLKR7 // bit 7
9013 #define P3REBM0 PSMC3BLNKbits.P3REBM0 // bit 0
9014 #define P3REBM1 PSMC3BLNKbits.P3REBM1 // bit 1
9015 #define P3FEBM0 PSMC3BLNKbits.P3FEBM0 // bit 4
9016 #define P3FEBM1 PSMC3BLNKbits.P3FEBM1 // bit 5
9018 #define P3CSRC0 PSMC3CLKbits.P3CSRC0 // bit 0
9019 #define P3CSRC1 PSMC3CLKbits.P3CSRC1 // bit 1
9020 #define P3CPRE0 PSMC3CLKbits.P3CPRE0 // bit 4
9021 #define P3CPRE1 PSMC3CLKbits.P3CPRE1 // bit 5
9023 #define P3MODE0 PSMC3CONbits.P3MODE0 // bit 0
9024 #define P3MODE1 PSMC3CONbits.P3MODE1 // bit 1
9025 #define P3MODE2 PSMC3CONbits.P3MODE2 // bit 2
9026 #define P3MODE3 PSMC3CONbits.P3MODE3 // bit 3
9027 #define P3DBRE PSMC3CONbits.P3DBRE // bit 4
9028 #define P3DBFE PSMC3CONbits.P3DBFE // bit 5
9029 #define PSMC3LD PSMC3CONbits.PSMC3LD // bit 6
9030 #define PSMC3EN PSMC3CONbits.PSMC3EN // bit 7
9032 #define PSMC3DBF0 PSMC3DBFbits.PSMC3DBF0 // bit 0
9033 #define PSMC3DBF1 PSMC3DBFbits.PSMC3DBF1 // bit 1
9034 #define PSMC3DBF2 PSMC3DBFbits.PSMC3DBF2 // bit 2
9035 #define PSMC3DBF3 PSMC3DBFbits.PSMC3DBF3 // bit 3
9036 #define PSMC3DBF4 PSMC3DBFbits.PSMC3DBF4 // bit 4
9037 #define PSMC3DBF5 PSMC3DBFbits.PSMC3DBF5 // bit 5
9038 #define PSMC3DBF6 PSMC3DBFbits.PSMC3DBF6 // bit 6
9039 #define PSMC3DBF7 PSMC3DBFbits.PSMC3DBF7 // bit 7
9041 #define PSMC3DBR0 PSMC3DBRbits.PSMC3DBR0 // bit 0
9042 #define PSMC3DBR1 PSMC3DBRbits.PSMC3DBR1 // bit 1
9043 #define PSMC3DBR2 PSMC3DBRbits.PSMC3DBR2 // bit 2
9044 #define PSMC3DBR3 PSMC3DBRbits.PSMC3DBR3 // bit 3
9045 #define PSMC3DBR4 PSMC3DBRbits.PSMC3DBR4 // bit 4
9046 #define PSMC3DBR5 PSMC3DBRbits.PSMC3DBR5 // bit 5
9047 #define PSMC3DBR6 PSMC3DBRbits.PSMC3DBR6 // bit 6
9048 #define PSMC3DBR7 PSMC3DBRbits.PSMC3DBR7 // bit 7
9050 #define PSMC3DC8 PSMC3DCHbits.PSMC3DC8 // bit 0
9051 #define PSMC3DC9 PSMC3DCHbits.PSMC3DC9 // bit 1
9052 #define PSMC3DC10 PSMC3DCHbits.PSMC3DC10 // bit 2
9053 #define PSMC3DC11 PSMC3DCHbits.PSMC3DC11 // bit 3
9054 #define PSMC3DC12 PSMC3DCHbits.PSMC3DC12 // bit 4
9055 #define PSMC3DC13 PSMC3DCHbits.PSMC3DC13 // bit 5
9056 #define PSMC3DC14 PSMC3DCHbits.PSMC3DC14 // bit 6
9057 #define PSMC3DC15 PSMC3DCHbits.PSMC3DC15 // bit 7
9059 #define PSMC3DC0 PSMC3DCLbits.PSMC3DC0 // bit 0
9060 #define PSMC3DC1 PSMC3DCLbits.PSMC3DC1 // bit 1
9061 #define PSMC3DC2 PSMC3DCLbits.PSMC3DC2 // bit 2
9062 #define PSMC3DC3 PSMC3DCLbits.PSMC3DC3 // bit 3
9063 #define PSMC3DC4 PSMC3DCLbits.PSMC3DC4 // bit 4
9064 #define PSMC3DC5 PSMC3DCLbits.PSMC3DC5 // bit 5
9065 #define PSMC3DC6 PSMC3DCLbits.PSMC3DC6 // bit 6
9066 #define PSMC3DC7 PSMC3DCLbits.PSMC3DC7 // bit 7
9068 #define P3DCST PSMC3DCSbits.P3DCST // bit 0
9069 #define P3DCSC1 PSMC3DCSbits.P3DCSC1 // bit 1
9070 #define P3DCSC2 PSMC3DCSbits.P3DCSC2 // bit 2
9071 #define P3DCSC3 PSMC3DCSbits.P3DCSC3 // bit 3
9072 #define P3DCSC4 PSMC3DCSbits.P3DCSC4 // bit 4
9073 #define P3DCSIN PSMC3DCSbits.P3DCSIN // bit 7
9075 #define P3FEBSC1 PSMC3FEBSbits.P3FEBSC1 // bit 1
9076 #define P3FEBSC2 PSMC3FEBSbits.P3FEBSC2 // bit 2
9077 #define P3FEBSC3 PSMC3FEBSbits.P3FEBSC3 // bit 3
9078 #define P3FEBSC4 PSMC3FEBSbits.P3FEBSC4 // bit 4
9079 #define P3FEBSIN PSMC3FEBSbits.P3FEBSIN // bit 7
9081 #define PSMC3FFA0 PSMC3FFAbits.PSMC3FFA0 // bit 0
9082 #define PSMC3FFA1 PSMC3FFAbits.PSMC3FFA1 // bit 1
9083 #define PSMC3FFA2 PSMC3FFAbits.PSMC3FFA2 // bit 2
9084 #define PSMC3FFA3 PSMC3FFAbits.PSMC3FFA3 // bit 3
9086 #define P3TPRIF PSMC3INTbits.P3TPRIF // bit 0
9087 #define P3TDCIF PSMC3INTbits.P3TDCIF // bit 1
9088 #define P3TPHIF PSMC3INTbits.P3TPHIF // bit 2
9089 #define P3TOVIF PSMC3INTbits.P3TOVIF // bit 3
9090 #define P3TPRIE PSMC3INTbits.P3TPRIE // bit 4
9091 #define P3TDCIE PSMC3INTbits.P3TDCIE // bit 5
9092 #define P3TPHIE PSMC3INTbits.P3TPHIE // bit 6
9093 #define P3TOVIE PSMC3INTbits.P3TOVIE // bit 7
9095 #define P3MSRC0 PSMC3MDLbits.P3MSRC0 // bit 0
9096 #define P3MSRC1 PSMC3MDLbits.P3MSRC1 // bit 1
9097 #define P3MSRC2 PSMC3MDLbits.P3MSRC2 // bit 2
9098 #define P3MSRC3 PSMC3MDLbits.P3MSRC3 // bit 3
9099 #define P3MDLBIT PSMC3MDLbits.P3MDLBIT // bit 5
9100 #define P3MDLPOL PSMC3MDLbits.P3MDLPOL // bit 6
9101 #define P3MDLEN PSMC3MDLbits.P3MDLEN // bit 7
9103 #define P3OEA PSMC3OENbits.P3OEA // bit 0
9104 #define P3OEB PSMC3OENbits.P3OEB // bit 1
9105 #define P3OEC PSMC3OENbits.P3OEC // bit 2
9106 #define P3OED PSMC3OENbits.P3OED // bit 3
9107 #define P3OEE PSMC3OENbits.P3OEE // bit 4
9108 #define P3OEF PSMC3OENbits.P3OEF // bit 5
9110 #define PSMC3PH8 PSMC3PHHbits.PSMC3PH8 // bit 0
9111 #define PSMC3PH9 PSMC3PHHbits.PSMC3PH9 // bit 1
9112 #define PSMC3PH10 PSMC3PHHbits.PSMC3PH10 // bit 2
9113 #define PSMC3PH11 PSMC3PHHbits.PSMC3PH11 // bit 3
9114 #define PSMC3PH12 PSMC3PHHbits.PSMC3PH12 // bit 4
9115 #define PSMC3PH13 PSMC3PHHbits.PSMC3PH13 // bit 5
9116 #define PSMC3PH14 PSMC3PHHbits.PSMC3PH14 // bit 6
9117 #define PSMC3PH15 PSMC3PHHbits.PSMC3PH15 // bit 7
9119 #define PSMC3PH0 PSMC3PHLbits.PSMC3PH0 // bit 0
9120 #define PSMC3PH1 PSMC3PHLbits.PSMC3PH1 // bit 1
9121 #define PSMC3PH2 PSMC3PHLbits.PSMC3PH2 // bit 2
9122 #define PSMC3PH3 PSMC3PHLbits.PSMC3PH3 // bit 3
9123 #define PSMC3PH4 PSMC3PHLbits.PSMC3PH4 // bit 4
9124 #define PSMC3PH5 PSMC3PHLbits.PSMC3PH5 // bit 5
9125 #define PSMC3PH6 PSMC3PHLbits.PSMC3PH6 // bit 6
9126 #define PSMC3PH7 PSMC3PHLbits.PSMC3PH7 // bit 7
9128 #define P3PHST PSMC3PHSbits.P3PHST // bit 0
9129 #define P3PHSC1 PSMC3PHSbits.P3PHSC1 // bit 1
9130 #define P3PHSC2 PSMC3PHSbits.P3PHSC2 // bit 2
9131 #define P3PHSC3 PSMC3PHSbits.P3PHSC3 // bit 3
9132 #define P3PHSC4 PSMC3PHSbits.P3PHSC4 // bit 4
9133 #define P3PHSIN PSMC3PHSbits.P3PHSIN // bit 7
9135 #define P3POLA PSMC3POLbits.P3POLA // bit 0
9136 #define P3POLB PSMC3POLbits.P3POLB // bit 1
9137 #define P3POLC PSMC3POLbits.P3POLC // bit 2
9138 #define P3POLD PSMC3POLbits.P3POLD // bit 3
9139 #define P3POLE PSMC3POLbits.P3POLE // bit 4
9140 #define P3POLF PSMC3POLbits.P3POLF // bit 5
9141 #define P3INPOL PSMC3POLbits.P3INPOL // bit 6
9143 #define PSMC3PR8 PSMC3PRHbits.PSMC3PR8 // bit 0
9144 #define PSMC3PR9 PSMC3PRHbits.PSMC3PR9 // bit 1
9145 #define PSMC3PR10 PSMC3PRHbits.PSMC3PR10 // bit 2
9146 #define PSMC3PR11 PSMC3PRHbits.PSMC3PR11 // bit 3
9147 #define PSMC3PR12 PSMC3PRHbits.PSMC3PR12 // bit 4
9148 #define PSMC3PR13 PSMC3PRHbits.PSMC3PR13 // bit 5
9149 #define PSMC3PR14 PSMC3PRHbits.PSMC3PR14 // bit 6
9150 #define PSMC3PR15 PSMC3PRHbits.PSMC3PR15 // bit 7
9152 #define PSMC3PR0 PSMC3PRLbits.PSMC3PR0 // bit 0
9153 #define PSMC3PR1 PSMC3PRLbits.PSMC3PR1 // bit 1
9154 #define PSMC3PR2 PSMC3PRLbits.PSMC3PR2 // bit 2
9155 #define PSMC3PR3 PSMC3PRLbits.PSMC3PR3 // bit 3
9156 #define PSMC3PR4 PSMC3PRLbits.PSMC3PR4 // bit 4
9157 #define PSMC3PR5 PSMC3PRLbits.PSMC3PR5 // bit 5
9158 #define PSMC3PR6 PSMC3PRLbits.PSMC3PR6 // bit 6
9159 #define PSMC3PR7 PSMC3PRLbits.PSMC3PR7 // bit 7
9161 #define P3PRST PSMC3PRSbits.P3PRST // bit 0
9162 #define P3PRSC1 PSMC3PRSbits.P3PRSC1 // bit 1
9163 #define P3PRSC2 PSMC3PRSbits.P3PRSC2 // bit 2
9164 #define P3PRSC3 PSMC3PRSbits.P3PRSC3 // bit 3
9165 #define P3PRSC4 PSMC3PRSbits.P3PRSC4 // bit 4
9166 #define P3PRSIN PSMC3PRSbits.P3PRSIN // bit 7
9168 #define P3REBSC1 PSMC3REBSbits.P3REBSC1 // bit 1
9169 #define P3REBSC2 PSMC3REBSbits.P3REBSC2 // bit 2
9170 #define P3REBSC3 PSMC3REBSbits.P3REBSC3 // bit 3
9171 #define P3REBSC4 PSMC3REBSbits.P3REBSC4 // bit 4
9172 #define P3REBSIN PSMC3REBSbits.P3REBSIN // bit 7
9174 #define P3STRA PSMC3STR0bits.P3STRA // bit 0
9175 #define P3STRB PSMC3STR0bits.P3STRB // bit 1
9176 #define P3STRC PSMC3STR0bits.P3STRC // bit 2
9177 #define P3STRD PSMC3STR0bits.P3STRD // bit 3
9178 #define P3STRE PSMC3STR0bits.P3STRE // bit 4
9179 #define P3STRF PSMC3STR0bits.P3STRF // bit 5
9181 #define P3HSMEN PSMC3STR1bits.P3HSMEN // bit 0
9182 #define P3LSMEN PSMC3STR1bits.P3LSMEN // bit 1
9183 #define P3SSYNC PSMC3STR1bits.P3SSYNC // bit 7
9185 #define P3SYNC0 PSMC3SYNCbits.P3SYNC0 // bit 0
9186 #define P3SYNC1 PSMC3SYNCbits.P3SYNC1 // bit 1
9187 #define P3SYNC2 PSMC3SYNCbits.P3SYNC2 // bit 2
9188 #define P3DCPOL PSMC3SYNCbits.P3DCPOL // bit 5
9189 #define P3PRPOL PSMC3SYNCbits.P3PRPOL // bit 6
9190 #define P3POFST PSMC3SYNCbits.P3POFST // bit 7
9192 #define PSMC3TMR8 PSMC3TMRHbits.PSMC3TMR8 // bit 0
9193 #define PSMC3TMR9 PSMC3TMRHbits.PSMC3TMR9 // bit 1
9194 #define PSMC3TMR10 PSMC3TMRHbits.PSMC3TMR10 // bit 2
9195 #define PSMC3TMR11 PSMC3TMRHbits.PSMC3TMR11 // bit 3
9196 #define PSMC3TMR12 PSMC3TMRHbits.PSMC3TMR12 // bit 4
9197 #define PSMC3TMR13 PSMC3TMRHbits.PSMC3TMR13 // bit 5
9198 #define PSMC3TMR14 PSMC3TMRHbits.PSMC3TMR14 // bit 6
9199 #define PSMC3TMR15 PSMC3TMRHbits.PSMC3TMR15 // bit 7
9201 #define PSMC3TMR0 PSMC3TMRLbits.PSMC3TMR0 // bit 0
9202 #define PSMC3TMR1 PSMC3TMRLbits.PSMC3TMR1 // bit 1
9203 #define PSMC3TMR2 PSMC3TMRLbits.PSMC3TMR2 // bit 2
9204 #define PSMC3TMR3 PSMC3TMRLbits.PSMC3TMR3 // bit 3
9205 #define PSMC3TMR4 PSMC3TMRLbits.PSMC3TMR4 // bit 4
9206 #define PSMC3TMR5 PSMC3TMRLbits.PSMC3TMR5 // bit 5
9207 #define PSMC3TMR6 PSMC3TMRLbits.PSMC3TMR6 // bit 6
9208 #define PSMC3TMR7 PSMC3TMRLbits.PSMC3TMR7 // bit 7
9210 #define RX9D RC1STAbits.RX9D // bit 0
9211 #define OERR RC1STAbits.OERR // bit 1
9212 #define FERR RC1STAbits.FERR // bit 2
9213 #define ADDEN RC1STAbits.ADDEN // bit 3
9214 #define CREN RC1STAbits.CREN // bit 4
9215 #define SREN RC1STAbits.SREN // bit 5
9216 #define RX9 RC1STAbits.RX9 // bit 6
9217 #define SPEN RC1STAbits.SPEN // bit 7
9219 #define SLRCONA0 SLRCONAbits.SLRCONA0 // bit 0
9220 #define SLRCONA1 SLRCONAbits.SLRCONA1 // bit 1
9221 #define SLRCONA2 SLRCONAbits.SLRCONA2 // bit 2
9222 #define SLRCONA3 SLRCONAbits.SLRCONA3 // bit 3
9223 #define SLRCONA4 SLRCONAbits.SLRCONA4 // bit 4
9224 #define SLRCONA5 SLRCONAbits.SLRCONA5 // bit 5
9225 #define SLRCONA6 SLRCONAbits.SLRCONA6 // bit 6
9226 #define SLRCONA7 SLRCONAbits.SLRCONA7 // bit 7
9228 #define SLRCONB0 SLRCONBbits.SLRCONB0 // bit 0
9229 #define SLRCONB1 SLRCONBbits.SLRCONB1 // bit 1
9230 #define SLRCONB2 SLRCONBbits.SLRCONB2 // bit 2
9231 #define SLRCONB3 SLRCONBbits.SLRCONB3 // bit 3
9232 #define SLRCONB4 SLRCONBbits.SLRCONB4 // bit 4
9233 #define SLRCONB5 SLRCONBbits.SLRCONB5 // bit 5
9234 #define SLRCONB6 SLRCONBbits.SLRCONB6 // bit 6
9235 #define SLRCONB7 SLRCONBbits.SLRCONB7 // bit 7
9237 #define SLRCONC0 SLRCONCbits.SLRCONC0 // bit 0
9238 #define SLRCONC1 SLRCONCbits.SLRCONC1 // bit 1
9239 #define SLRCONC2 SLRCONCbits.SLRCONC2 // bit 2
9240 #define SLRCONC3 SLRCONCbits.SLRCONC3 // bit 3
9241 #define SLRCONC4 SLRCONCbits.SLRCONC4 // bit 4
9242 #define SLRCONC5 SLRCONCbits.SLRCONC5 // bit 5
9243 #define SLRCONC6 SLRCONCbits.SLRCONC6 // bit 6
9244 #define SLRCONC7 SLRCONCbits.SLRCONC7 // bit 7
9246 #define SLRCOND0 SLRCONDbits.SLRCOND0 // bit 0
9247 #define SLRCOND1 SLRCONDbits.SLRCOND1 // bit 1
9248 #define SLRCOND2 SLRCONDbits.SLRCOND2 // bit 2
9249 #define SLRCOND3 SLRCONDbits.SLRCOND3 // bit 3
9250 #define SLRCOND4 SLRCONDbits.SLRCOND4 // bit 4
9251 #define SLRCOND5 SLRCONDbits.SLRCOND5 // bit 5
9252 #define SLRCOND6 SLRCONDbits.SLRCOND6 // bit 6
9253 #define SLRCOND7 SLRCONDbits.SLRCOND7 // bit 7
9255 #define SLRCONE0 SLRCONEbits.SLRCONE0 // bit 0
9256 #define SLRCONE1 SLRCONEbits.SLRCONE1 // bit 1
9257 #define SLRCONE2 SLRCONEbits.SLRCONE2 // bit 2
9259 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
9260 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
9261 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
9262 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
9263 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
9264 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
9265 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
9266 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
9267 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
9268 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
9269 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
9270 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
9271 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
9272 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
9273 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
9274 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
9276 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
9277 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
9278 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
9279 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
9280 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
9281 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
9282 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
9283 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
9284 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
9285 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
9286 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
9287 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
9288 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
9289 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
9290 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
9291 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
9293 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
9294 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
9295 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
9296 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
9297 #define CKP SSP1CONbits.CKP // bit 4
9298 #define SSPEN SSP1CONbits.SSPEN // bit 5
9299 #define SSPOV SSP1CONbits.SSPOV // bit 6
9300 #define WCOL SSP1CONbits.WCOL // bit 7
9302 #define SEN SSP1CON2bits.SEN // bit 0
9303 #define RSEN SSP1CON2bits.RSEN // bit 1
9304 #define PEN SSP1CON2bits.PEN // bit 2
9305 #define RCEN SSP1CON2bits.RCEN // bit 3
9306 #define ACKEN SSP1CON2bits.ACKEN // bit 4
9307 #define ACKDT SSP1CON2bits.ACKDT // bit 5
9308 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
9309 #define GCEN SSP1CON2bits.GCEN // bit 7
9311 #define DHEN SSP1CON3bits.DHEN // bit 0
9312 #define AHEN SSP1CON3bits.AHEN // bit 1
9313 #define SBCDE SSP1CON3bits.SBCDE // bit 2
9314 #define SDAHT SSP1CON3bits.SDAHT // bit 3
9315 #define BOEN SSP1CON3bits.BOEN // bit 4
9316 #define SCIE SSP1CON3bits.SCIE // bit 5
9317 #define PCIE SSP1CON3bits.PCIE // bit 6
9318 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
9320 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
9321 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
9322 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
9323 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
9324 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
9325 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
9326 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
9327 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
9328 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
9329 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
9330 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
9331 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
9332 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
9333 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
9334 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
9335 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
9337 #define BF SSP1STATbits.BF // bit 0
9338 #define UA SSP1STATbits.UA // bit 1
9339 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
9340 #define S SSP1STATbits.S // bit 3
9341 #define P SSP1STATbits.P // bit 4
9342 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
9343 #define CKE SSP1STATbits.CKE // bit 6
9344 #define SMP SSP1STATbits.SMP // bit 7
9346 #define C STATUSbits.C // bit 0
9347 #define DC STATUSbits.DC // bit 1
9348 #define Z STATUSbits.Z // bit 2
9349 #define NOT_PD STATUSbits.NOT_PD // bit 3
9350 #define NOT_TO STATUSbits.NOT_TO // bit 4
9352 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
9353 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
9354 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
9356 #define TMR1ON T1CONbits.TMR1ON // bit 0
9357 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
9358 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
9359 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
9360 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
9361 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
9362 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
9364 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
9365 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
9366 #define T1GVAL T1GCONbits.T1GVAL // bit 2
9367 #define T1GGO T1GCONbits.T1GGO // bit 3
9368 #define T1GSPM T1GCONbits.T1GSPM // bit 4
9369 #define T1GTM T1GCONbits.T1GTM // bit 5
9370 #define T1GPOL T1GCONbits.T1GPOL // bit 6
9371 #define TMR1GE T1GCONbits.TMR1GE // bit 7
9373 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
9374 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
9375 #define TMR2ON T2CONbits.TMR2ON // bit 2
9376 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
9377 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
9378 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
9379 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
9381 #define TRISA0 TRISAbits.TRISA0 // bit 0
9382 #define TRISA1 TRISAbits.TRISA1 // bit 1
9383 #define TRISA2 TRISAbits.TRISA2 // bit 2
9384 #define TRISA3 TRISAbits.TRISA3 // bit 3
9385 #define TRISA4 TRISAbits.TRISA4 // bit 4
9386 #define TRISA5 TRISAbits.TRISA5 // bit 5
9387 #define TRISA6 TRISAbits.TRISA6 // bit 6
9388 #define TRISA7 TRISAbits.TRISA7 // bit 7
9390 #define TRISB0 TRISBbits.TRISB0 // bit 0
9391 #define TRISB1 TRISBbits.TRISB1 // bit 1
9392 #define TRISB2 TRISBbits.TRISB2 // bit 2
9393 #define TRISB3 TRISBbits.TRISB3 // bit 3
9394 #define TRISB4 TRISBbits.TRISB4 // bit 4
9395 #define TRISB5 TRISBbits.TRISB5 // bit 5
9396 #define TRISB6 TRISBbits.TRISB6 // bit 6
9397 #define TRISB7 TRISBbits.TRISB7 // bit 7
9399 #define TRISC0 TRISCbits.TRISC0 // bit 0
9400 #define TRISC1 TRISCbits.TRISC1 // bit 1
9401 #define TRISC2 TRISCbits.TRISC2 // bit 2
9402 #define TRISC3 TRISCbits.TRISC3 // bit 3
9403 #define TRISC4 TRISCbits.TRISC4 // bit 4
9404 #define TRISC5 TRISCbits.TRISC5 // bit 5
9405 #define TRISC6 TRISCbits.TRISC6 // bit 6
9406 #define TRISC7 TRISCbits.TRISC7 // bit 7
9408 #define TRISD0 TRISDbits.TRISD0 // bit 0
9409 #define TRISD1 TRISDbits.TRISD1 // bit 1
9410 #define TRISD2 TRISDbits.TRISD2 // bit 2
9411 #define TRISD3 TRISDbits.TRISD3 // bit 3
9412 #define TRISD4 TRISDbits.TRISD4 // bit 4
9413 #define TRISD5 TRISDbits.TRISD5 // bit 5
9414 #define TRISD6 TRISDbits.TRISD6 // bit 6
9415 #define TRISD7 TRISDbits.TRISD7 // bit 7
9417 #define TRISE0 TRISEbits.TRISE0 // bit 0
9418 #define TRISE1 TRISEbits.TRISE1 // bit 1
9419 #define TRISE2 TRISEbits.TRISE2 // bit 2
9420 #define TRISE3 TRISEbits.TRISE3 // bit 3
9422 #define TX9D TX1STAbits.TX9D // bit 0
9423 #define TRMT TX1STAbits.TRMT // bit 1
9424 #define BRGH TX1STAbits.BRGH // bit 2
9425 #define SENDB TX1STAbits.SENDB // bit 3
9426 #define SYNC TX1STAbits.SYNC // bit 4
9427 #define TXEN TX1STAbits.TXEN // bit 5
9428 #define TX9 TX1STAbits.TX9 // bit 6
9429 #define CSRC TX1STAbits.CSRC // bit 7
9431 #define SWDTEN WDTCONbits.SWDTEN // bit 0
9432 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
9433 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
9434 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
9435 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
9436 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
9438 #define WPUA0 WPUAbits.WPUA0 // bit 0
9439 #define WPUA1 WPUAbits.WPUA1 // bit 1
9440 #define WPUA2 WPUAbits.WPUA2 // bit 2
9441 #define WPUA3 WPUAbits.WPUA3 // bit 3
9442 #define WPUA4 WPUAbits.WPUA4 // bit 4
9443 #define WPUA5 WPUAbits.WPUA5 // bit 5
9444 #define WPUA6 WPUAbits.WPUA6 // bit 6
9445 #define WPUA7 WPUAbits.WPUA7 // bit 7
9447 #define WPUB0 WPUBbits.WPUB0 // bit 0
9448 #define WPUB1 WPUBbits.WPUB1 // bit 1
9449 #define WPUB2 WPUBbits.WPUB2 // bit 2
9450 #define WPUB3 WPUBbits.WPUB3 // bit 3
9451 #define WPUB4 WPUBbits.WPUB4 // bit 4
9452 #define WPUB5 WPUBbits.WPUB5 // bit 5
9453 #define WPUB6 WPUBbits.WPUB6 // bit 6
9454 #define WPUB7 WPUBbits.WPUB7 // bit 7
9456 #define WPUC0 WPUCbits.WPUC0 // bit 0
9457 #define WPUC1 WPUCbits.WPUC1 // bit 1
9458 #define WPUC2 WPUCbits.WPUC2 // bit 2
9459 #define WPUC3 WPUCbits.WPUC3 // bit 3
9460 #define WPUC4 WPUCbits.WPUC4 // bit 4
9461 #define WPUC5 WPUCbits.WPUC5 // bit 5
9462 #define WPUC6 WPUCbits.WPUC6 // bit 6
9463 #define WPUC7 WPUCbits.WPUC7 // bit 7
9465 #define WPUD0 WPUDbits.WPUD0 // bit 0
9466 #define WPUD1 WPUDbits.WPUD1 // bit 1
9467 #define WPUD2 WPUDbits.WPUD2 // bit 2
9468 #define WPUD3 WPUDbits.WPUD3 // bit 3
9469 #define WPUD4 WPUDbits.WPUD4 // bit 4
9470 #define WPUD5 WPUDbits.WPUD5 // bit 5
9471 #define WPUD6 WPUDbits.WPUD6 // bit 6
9472 #define WPUD7 WPUDbits.WPUD7 // bit 7
9474 #define WPUE0 WPUEbits.WPUE0 // bit 0
9475 #define WPUE1 WPUEbits.WPUE1 // bit 1
9476 #define WPUE2 WPUEbits.WPUE2 // bit 2
9477 #define WPUE3 WPUEbits.WPUE3 // bit 3
9479 #endif // #ifndef NO_BIT_DEFINES
9481 #endif // #ifndef __PIC16LF1787_H__