struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16lf1789.h
blobbfd4daeb254f0b046e47c898bf693a06a4daa4b9
1 /*
2 * This declarations of the PIC16LF1789 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:19 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 __PIC16LF1789_H__
26 #define __PIC16LF1789_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 DAC1CON0_ADDR 0x0118
102 #define DAC1CON1_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 ANSELC_ADDR 0x018E
114 #define ANSELD_ADDR 0x018F
115 #define ANSELE_ADDR 0x0190
116 #define EEADR_ADDR 0x0191
117 #define EEADRL_ADDR 0x0191
118 #define EEADRH_ADDR 0x0192
119 #define EEDAT_ADDR 0x0193
120 #define EEDATL_ADDR 0x0193
121 #define EEDATH_ADDR 0x0194
122 #define EECON1_ADDR 0x0195
123 #define EECON2_ADDR 0x0196
124 #define RC1REG_ADDR 0x0199
125 #define RCREG_ADDR 0x0199
126 #define RCREG1_ADDR 0x0199
127 #define TX1REG_ADDR 0x019A
128 #define TXREG_ADDR 0x019A
129 #define TXREG1_ADDR 0x019A
130 #define SP1BRG_ADDR 0x019B
131 #define SP1BRGL_ADDR 0x019B
132 #define SPBRG_ADDR 0x019B
133 #define SPBRG1_ADDR 0x019B
134 #define SPBRGL_ADDR 0x019B
135 #define SP1BRGH_ADDR 0x019C
136 #define SPBRGH_ADDR 0x019C
137 #define SPBRGH1_ADDR 0x019C
138 #define RC1STA_ADDR 0x019D
139 #define RCSTA_ADDR 0x019D
140 #define RCSTA1_ADDR 0x019D
141 #define TX1STA_ADDR 0x019E
142 #define TXSTA_ADDR 0x019E
143 #define TXSTA1_ADDR 0x019E
144 #define BAUD1CON_ADDR 0x019F
145 #define BAUDCON_ADDR 0x019F
146 #define BAUDCON1_ADDR 0x019F
147 #define BAUDCTL_ADDR 0x019F
148 #define BAUDCTL1_ADDR 0x019F
149 #define WPUA_ADDR 0x020C
150 #define WPUB_ADDR 0x020D
151 #define WPUC_ADDR 0x020E
152 #define WPUD_ADDR 0x020F
153 #define WPUE_ADDR 0x0210
154 #define SSP1BUF_ADDR 0x0211
155 #define SSPBUF_ADDR 0x0211
156 #define SSP1ADD_ADDR 0x0212
157 #define SSPADD_ADDR 0x0212
158 #define SSP1MSK_ADDR 0x0213
159 #define SSPMSK_ADDR 0x0213
160 #define SSP1STAT_ADDR 0x0214
161 #define SSPSTAT_ADDR 0x0214
162 #define SSP1CON_ADDR 0x0215
163 #define SSP1CON1_ADDR 0x0215
164 #define SSPCON_ADDR 0x0215
165 #define SSPCON1_ADDR 0x0215
166 #define SSP1CON2_ADDR 0x0216
167 #define SSPCON2_ADDR 0x0216
168 #define SSP1CON3_ADDR 0x0217
169 #define SSPCON3_ADDR 0x0217
170 #define ODCONA_ADDR 0x028C
171 #define ODCONB_ADDR 0x028D
172 #define ODCONC_ADDR 0x028E
173 #define ODCOND_ADDR 0x028F
174 #define ODCONE_ADDR 0x0290
175 #define CCPR1_ADDR 0x0291
176 #define CCPR1L_ADDR 0x0291
177 #define CCPR1H_ADDR 0x0292
178 #define CCP1CON_ADDR 0x0293
179 #define CCPR2_ADDR 0x0298
180 #define CCPR2L_ADDR 0x0298
181 #define CCPR2H_ADDR 0x0299
182 #define CCP2CON_ADDR 0x029A
183 #define SLRCONA_ADDR 0x030C
184 #define SLRCONB_ADDR 0x030D
185 #define SLRCONC_ADDR 0x030E
186 #define SLRCOND_ADDR 0x030F
187 #define SLRCONE_ADDR 0x0310
188 #define CCPR3_ADDR 0x0311
189 #define CCPR3L_ADDR 0x0311
190 #define CCPR3H_ADDR 0x0312
191 #define CCP3CON_ADDR 0x0313
192 #define INLVLA_ADDR 0x038C
193 #define INLVLB_ADDR 0x038D
194 #define INLVLC_ADDR 0x038E
195 #define INLVLD_ADDR 0x038F
196 #define INLVLE_ADDR 0x0390
197 #define IOCAP_ADDR 0x0391
198 #define IOCAN_ADDR 0x0392
199 #define IOCAF_ADDR 0x0393
200 #define IOCBP_ADDR 0x0394
201 #define IOCBN_ADDR 0x0395
202 #define IOCBF_ADDR 0x0396
203 #define IOCCP_ADDR 0x0397
204 #define IOCCN_ADDR 0x0398
205 #define IOCCF_ADDR 0x0399
206 #define IOCEP_ADDR 0x039D
207 #define IOCEN_ADDR 0x039E
208 #define IOCEF_ADDR 0x039F
209 #define OPA1CON_ADDR 0x0511
210 #define OPA2CON_ADDR 0x0513
211 #define OPA3CON_ADDR 0x0515
212 #define CLKRCON_ADDR 0x051A
213 #define DAC2CON0_ADDR 0x0591
214 #define DAC2CON1_ADDR 0x0592
215 #define DAC2REF_ADDR 0x0592
216 #define DAC3CON0_ADDR 0x0593
217 #define DAC3CON1_ADDR 0x0594
218 #define DAC3REF_ADDR 0x0594
219 #define DAC4CON0_ADDR 0x0595
220 #define DAC4CON1_ADDR 0x0596
221 #define DAC4REF_ADDR 0x0596
222 #define PSMC1CON_ADDR 0x0E91
223 #define PSMC1MDL_ADDR 0x0E92
224 #define PSMC1SYNC_ADDR 0x0E93
225 #define PSMC1CLK_ADDR 0x0E94
226 #define PSMC1OEN_ADDR 0x0E95
227 #define PSMC1POL_ADDR 0x0E96
228 #define PSMC1BLNK_ADDR 0x0E97
229 #define PSMC1REBS_ADDR 0x0E98
230 #define PSMC1FEBS_ADDR 0x0E99
231 #define PSMC1PHS_ADDR 0x0E9A
232 #define PSMC1DCS_ADDR 0x0E9B
233 #define PSMC1PRS_ADDR 0x0E9C
234 #define PSMC1ASDC_ADDR 0x0E9D
235 #define PSMC1ASDL_ADDR 0x0E9E
236 #define PSMC1ASDS_ADDR 0x0E9F
237 #define PSMC1INT_ADDR 0x0EA0
238 #define PSMC1PH_ADDR 0x0EA1
239 #define PSMC1PHL_ADDR 0x0EA1
240 #define PSMC1PHH_ADDR 0x0EA2
241 #define PSMC1DC_ADDR 0x0EA3
242 #define PSMC1DCL_ADDR 0x0EA3
243 #define PSMC1DCH_ADDR 0x0EA4
244 #define PSMC1PR_ADDR 0x0EA5
245 #define PSMC1PRL_ADDR 0x0EA5
246 #define PSMC1PRH_ADDR 0x0EA6
247 #define PSMC1TMR_ADDR 0x0EA7
248 #define PSMC1TMRL_ADDR 0x0EA7
249 #define PSMC1TMRH_ADDR 0x0EA8
250 #define PSMC1DBR_ADDR 0x0EA9
251 #define PSMC1DBF_ADDR 0x0EAA
252 #define PSMC1BLKR_ADDR 0x0EAB
253 #define PSMC1BLKF_ADDR 0x0EAC
254 #define PSMC1FFA_ADDR 0x0EAD
255 #define PSMC1STR0_ADDR 0x0EAE
256 #define PSMC1STR1_ADDR 0x0EAF
257 #define PSMC2CON_ADDR 0x0EB1
258 #define PSMC2MDL_ADDR 0x0EB2
259 #define PSMC2SYNC_ADDR 0x0EB3
260 #define PSMC2CLK_ADDR 0x0EB4
261 #define PSMC2OEN_ADDR 0x0EB5
262 #define PSMC2POL_ADDR 0x0EB6
263 #define PSMC2BLNK_ADDR 0x0EB7
264 #define PSMC2REBS_ADDR 0x0EB8
265 #define PSMC2FEBS_ADDR 0x0EB9
266 #define PSMC2PHS_ADDR 0x0EBA
267 #define PSMC2DCS_ADDR 0x0EBB
268 #define PSMC2PRS_ADDR 0x0EBC
269 #define PSMC2ASDC_ADDR 0x0EBD
270 #define PSMC2ASDL_ADDR 0x0EBE
271 #define PSMC2ASDS_ADDR 0x0EBF
272 #define PSMC2INT_ADDR 0x0EC0
273 #define PSMC2PH_ADDR 0x0EC1
274 #define PSMC2PHL_ADDR 0x0EC1
275 #define PSMC2PHH_ADDR 0x0EC2
276 #define PSMC2DC_ADDR 0x0EC3
277 #define PSMC2DCL_ADDR 0x0EC3
278 #define PSMC2DCH_ADDR 0x0EC4
279 #define PSMC2PR_ADDR 0x0EC5
280 #define PSMC2PRL_ADDR 0x0EC5
281 #define PSMC2PRH_ADDR 0x0EC6
282 #define PSMC2TMR_ADDR 0x0EC7
283 #define PSMC2TMRL_ADDR 0x0EC7
284 #define PSMC2TMRH_ADDR 0x0EC8
285 #define PSMC2DBR_ADDR 0x0EC9
286 #define PSMC2DBF_ADDR 0x0ECA
287 #define PSMC2BLKR_ADDR 0x0ECB
288 #define PSMC2BLKF_ADDR 0x0ECC
289 #define PSMC2FFA_ADDR 0x0ECD
290 #define PSMC2STR0_ADDR 0x0ECE
291 #define PSMC2STR1_ADDR 0x0ECF
292 #define PSMC3CON_ADDR 0x0ED1
293 #define PSMC3MDL_ADDR 0x0ED2
294 #define PSMC3SYNC_ADDR 0x0ED3
295 #define PSMC3CLK_ADDR 0x0ED4
296 #define PSMC3OEN_ADDR 0x0ED5
297 #define PSMC3POL_ADDR 0x0ED6
298 #define PSMC3BLNK_ADDR 0x0ED7
299 #define PSMC3REBS_ADDR 0x0ED8
300 #define PSMC3FEBS_ADDR 0x0ED9
301 #define PSMC3PHS_ADDR 0x0EDA
302 #define PSMC3DCS_ADDR 0x0EDB
303 #define PSMC3PRS_ADDR 0x0EDC
304 #define PSMC3ASDC_ADDR 0x0EDD
305 #define PSMC3ASDL_ADDR 0x0EDE
306 #define PSMC3ASDS_ADDR 0x0EDF
307 #define PSMC3INT_ADDR 0x0EE0
308 #define PSMC3PH_ADDR 0x0EE1
309 #define PSMC3PHL_ADDR 0x0EE1
310 #define PSMC3PHH_ADDR 0x0EE2
311 #define PSMC3DC_ADDR 0x0EE3
312 #define PSMC3DCL_ADDR 0x0EE3
313 #define PSMC3DCH_ADDR 0x0EE4
314 #define PSMC3PR_ADDR 0x0EE5
315 #define PSMC3PRL_ADDR 0x0EE5
316 #define PSMC3PRH_ADDR 0x0EE6
317 #define PSMC3TMR_ADDR 0x0EE7
318 #define PSMC3TMRL_ADDR 0x0EE7
319 #define PSMC3TMRH_ADDR 0x0EE8
320 #define PSMC3DBR_ADDR 0x0EE9
321 #define PSMC3DBF_ADDR 0x0EEA
322 #define PSMC3BLKR_ADDR 0x0EEB
323 #define PSMC3BLKF_ADDR 0x0EEC
324 #define PSMC3FFA_ADDR 0x0EED
325 #define PSMC3STR0_ADDR 0x0EEE
326 #define PSMC3STR1_ADDR 0x0EEF
327 #define PSMC4CON_ADDR 0x0F11
328 #define PSMC4MDL_ADDR 0x0F12
329 #define PSMC4SYNC_ADDR 0x0F13
330 #define PSMC4CLK_ADDR 0x0F14
331 #define PSMC4OEN_ADDR 0x0F15
332 #define PSMC4POL_ADDR 0x0F16
333 #define PSMC4BLNK_ADDR 0x0F17
334 #define PSMC4REBS_ADDR 0x0F18
335 #define PSMC4FEBS_ADDR 0x0F19
336 #define PSMC4PHS_ADDR 0x0F1A
337 #define PSMC4DCS_ADDR 0x0F1B
338 #define PSMC4PRS_ADDR 0x0F1C
339 #define PSMC4ASDC_ADDR 0x0F1D
340 #define PSMC4ASDL_ADDR 0x0F1E
341 #define PSMC4ASDS_ADDR 0x0F1F
342 #define PSMC4INT_ADDR 0x0F20
343 #define PSMC4PH_ADDR 0x0F21
344 #define PSMC4PHL_ADDR 0x0F21
345 #define PSMC4PHH_ADDR 0x0F22
346 #define PSMC4DC_ADDR 0x0F23
347 #define PSMC4DCL_ADDR 0x0F23
348 #define PSMC4DCH_ADDR 0x0F24
349 #define PSMC4PR_ADDR 0x0F25
350 #define PSMC4PRL_ADDR 0x0F25
351 #define PSMC4PRH_ADDR 0x0F26
352 #define PSMC4TMR_ADDR 0x0F27
353 #define PSMC4TMRL_ADDR 0x0F27
354 #define PSMC4TMRH_ADDR 0x0F28
355 #define PSMC4DBR_ADDR 0x0F29
356 #define PSMC4DBF_ADDR 0x0F2A
357 #define PSMC4BLKR_ADDR 0x0F2B
358 #define PSMC4BLKF_ADDR 0x0F2C
359 #define PSMC4FFA_ADDR 0x0F2D
360 #define PSMC4STR0_ADDR 0x0F2E
361 #define PSMC4STR1_ADDR 0x0F2F
362 #define STATUS_SHAD_ADDR 0x0FE4
363 #define WREG_SHAD_ADDR 0x0FE5
364 #define BSR_SHAD_ADDR 0x0FE6
365 #define PCLATH_SHAD_ADDR 0x0FE7
366 #define FSR0L_SHAD_ADDR 0x0FE8
367 #define FSR0H_SHAD_ADDR 0x0FE9
368 #define FSR1L_SHAD_ADDR 0x0FEA
369 #define FSR1H_SHAD_ADDR 0x0FEB
370 #define STKPTR_ADDR 0x0FED
371 #define TOSL_ADDR 0x0FEE
372 #define TOSH_ADDR 0x0FEF
374 #endif // #ifndef NO_ADDR_DEFINES
376 //==============================================================================
378 // Register Definitions
380 //==============================================================================
382 extern __at(0x0000) __sfr INDF0;
383 extern __at(0x0001) __sfr INDF1;
384 extern __at(0x0002) __sfr PCL;
386 //==============================================================================
387 // STATUS Bits
389 extern __at(0x0003) __sfr STATUS;
391 typedef struct
393 unsigned C : 1;
394 unsigned DC : 1;
395 unsigned Z : 1;
396 unsigned NOT_PD : 1;
397 unsigned NOT_TO : 1;
398 unsigned : 1;
399 unsigned : 1;
400 unsigned : 1;
401 } __STATUSbits_t;
403 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
405 #define _C 0x01
406 #define _DC 0x02
407 #define _Z 0x04
408 #define _NOT_PD 0x08
409 #define _NOT_TO 0x10
411 //==============================================================================
413 extern __at(0x0004) __sfr FSR0;
414 extern __at(0x0004) __sfr FSR0L;
415 extern __at(0x0005) __sfr FSR0H;
416 extern __at(0x0006) __sfr FSR1;
417 extern __at(0x0006) __sfr FSR1L;
418 extern __at(0x0007) __sfr FSR1H;
420 //==============================================================================
421 // BSR Bits
423 extern __at(0x0008) __sfr BSR;
425 typedef union
427 struct
429 unsigned BSR0 : 1;
430 unsigned BSR1 : 1;
431 unsigned BSR2 : 1;
432 unsigned BSR3 : 1;
433 unsigned BSR4 : 1;
434 unsigned : 1;
435 unsigned : 1;
436 unsigned : 1;
439 struct
441 unsigned BSR : 5;
442 unsigned : 3;
444 } __BSRbits_t;
446 extern __at(0x0008) volatile __BSRbits_t BSRbits;
448 #define _BSR0 0x01
449 #define _BSR1 0x02
450 #define _BSR2 0x04
451 #define _BSR3 0x08
452 #define _BSR4 0x10
454 //==============================================================================
456 extern __at(0x0009) __sfr WREG;
457 extern __at(0x000A) __sfr PCLATH;
459 //==============================================================================
460 // INTCON Bits
462 extern __at(0x000B) __sfr INTCON;
464 typedef union
466 struct
468 unsigned IOCIF : 1;
469 unsigned INTF : 1;
470 unsigned TMR0IF : 1;
471 unsigned IOCIE : 1;
472 unsigned INTE : 1;
473 unsigned TMR0IE : 1;
474 unsigned PEIE : 1;
475 unsigned GIE : 1;
478 struct
480 unsigned : 1;
481 unsigned : 1;
482 unsigned T0IF : 1;
483 unsigned : 1;
484 unsigned : 1;
485 unsigned T0IE : 1;
486 unsigned : 1;
487 unsigned : 1;
489 } __INTCONbits_t;
491 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
493 #define _IOCIF 0x01
494 #define _INTF 0x02
495 #define _TMR0IF 0x04
496 #define _T0IF 0x04
497 #define _IOCIE 0x08
498 #define _INTE 0x10
499 #define _TMR0IE 0x20
500 #define _T0IE 0x20
501 #define _PEIE 0x40
502 #define _GIE 0x80
504 //==============================================================================
507 //==============================================================================
508 // PORTA Bits
510 extern __at(0x000C) __sfr PORTA;
512 typedef struct
514 unsigned RA0 : 1;
515 unsigned RA1 : 1;
516 unsigned RA2 : 1;
517 unsigned RA3 : 1;
518 unsigned RA4 : 1;
519 unsigned RA5 : 1;
520 unsigned RA6 : 1;
521 unsigned RA7 : 1;
522 } __PORTAbits_t;
524 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
526 #define _RA0 0x01
527 #define _RA1 0x02
528 #define _RA2 0x04
529 #define _RA3 0x08
530 #define _RA4 0x10
531 #define _RA5 0x20
532 #define _RA6 0x40
533 #define _RA7 0x80
535 //==============================================================================
538 //==============================================================================
539 // PORTB Bits
541 extern __at(0x000D) __sfr PORTB;
543 typedef struct
545 unsigned RB0 : 1;
546 unsigned RB1 : 1;
547 unsigned RB2 : 1;
548 unsigned RB3 : 1;
549 unsigned RB4 : 1;
550 unsigned RB5 : 1;
551 unsigned RB6 : 1;
552 unsigned RB7 : 1;
553 } __PORTBbits_t;
555 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
557 #define _RB0 0x01
558 #define _RB1 0x02
559 #define _RB2 0x04
560 #define _RB3 0x08
561 #define _RB4 0x10
562 #define _RB5 0x20
563 #define _RB6 0x40
564 #define _RB7 0x80
566 //==============================================================================
569 //==============================================================================
570 // PORTC Bits
572 extern __at(0x000E) __sfr PORTC;
574 typedef struct
576 unsigned RC0 : 1;
577 unsigned RC1 : 1;
578 unsigned RC2 : 1;
579 unsigned RC3 : 1;
580 unsigned RC4 : 1;
581 unsigned RC5 : 1;
582 unsigned RC6 : 1;
583 unsigned RC7 : 1;
584 } __PORTCbits_t;
586 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
588 #define _RC0 0x01
589 #define _RC1 0x02
590 #define _RC2 0x04
591 #define _RC3 0x08
592 #define _RC4 0x10
593 #define _RC5 0x20
594 #define _RC6 0x40
595 #define _RC7 0x80
597 //==============================================================================
600 //==============================================================================
601 // PORTD Bits
603 extern __at(0x000F) __sfr PORTD;
605 typedef struct
607 unsigned RD0 : 1;
608 unsigned RD1 : 1;
609 unsigned RD2 : 1;
610 unsigned RD3 : 1;
611 unsigned RD4 : 1;
612 unsigned RD5 : 1;
613 unsigned RD6 : 1;
614 unsigned RD7 : 1;
615 } __PORTDbits_t;
617 extern __at(0x000F) volatile __PORTDbits_t PORTDbits;
619 #define _RD0 0x01
620 #define _RD1 0x02
621 #define _RD2 0x04
622 #define _RD3 0x08
623 #define _RD4 0x10
624 #define _RD5 0x20
625 #define _RD6 0x40
626 #define _RD7 0x80
628 //==============================================================================
631 //==============================================================================
632 // PORTE Bits
634 extern __at(0x0010) __sfr PORTE;
636 typedef union
638 struct
640 unsigned RE0 : 1;
641 unsigned RE1 : 1;
642 unsigned RE2 : 1;
643 unsigned RE3 : 1;
644 unsigned : 1;
645 unsigned : 1;
646 unsigned : 1;
647 unsigned : 1;
650 struct
652 unsigned RE : 4;
653 unsigned : 4;
655 } __PORTEbits_t;
657 extern __at(0x0010) volatile __PORTEbits_t PORTEbits;
659 #define _RE0 0x01
660 #define _RE1 0x02
661 #define _RE2 0x04
662 #define _RE3 0x08
664 //==============================================================================
667 //==============================================================================
668 // PIR1 Bits
670 extern __at(0x0011) __sfr PIR1;
672 typedef struct
674 unsigned TMR1IF : 1;
675 unsigned TMR2IF : 1;
676 unsigned CCP1IF : 1;
677 unsigned SSP1IF : 1;
678 unsigned TXIF : 1;
679 unsigned RCIF : 1;
680 unsigned ADIF : 1;
681 unsigned TMR1GIF : 1;
682 } __PIR1bits_t;
684 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
686 #define _TMR1IF 0x01
687 #define _TMR2IF 0x02
688 #define _CCP1IF 0x04
689 #define _SSP1IF 0x08
690 #define _TXIF 0x10
691 #define _RCIF 0x20
692 #define _ADIF 0x40
693 #define _TMR1GIF 0x80
695 //==============================================================================
698 //==============================================================================
699 // PIR2 Bits
701 extern __at(0x0012) __sfr PIR2;
703 typedef struct
705 unsigned CCP2IF : 1;
706 unsigned C3IF : 1;
707 unsigned C4IF : 1;
708 unsigned BCL1IF : 1;
709 unsigned EEIF : 1;
710 unsigned C1IF : 1;
711 unsigned C2IF : 1;
712 unsigned OSFIF : 1;
713 } __PIR2bits_t;
715 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
717 #define _CCP2IF 0x01
718 #define _C3IF 0x02
719 #define _C4IF 0x04
720 #define _BCL1IF 0x08
721 #define _EEIF 0x10
722 #define _C1IF 0x20
723 #define _C2IF 0x40
724 #define _OSFIF 0x80
726 //==============================================================================
729 //==============================================================================
730 // PIR3 Bits
732 extern __at(0x0013) __sfr PIR3;
734 typedef struct
736 unsigned : 1;
737 unsigned : 1;
738 unsigned : 1;
739 unsigned : 1;
740 unsigned CCP3IF : 1;
741 unsigned : 1;
742 unsigned : 1;
743 unsigned : 1;
744 } __PIR3bits_t;
746 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
748 #define _CCP3IF 0x10
750 //==============================================================================
753 //==============================================================================
754 // PIR4 Bits
756 extern __at(0x0014) __sfr PIR4;
758 typedef struct
760 unsigned PSMC1SIF : 1;
761 unsigned PSMC2SIF : 1;
762 unsigned PSMC3SIF : 1;
763 unsigned PSMC4SIF : 1;
764 unsigned PSMC1TIF : 1;
765 unsigned PSMC2TIF : 1;
766 unsigned PSMC3TIF : 1;
767 unsigned PSMC4TIF : 1;
768 } __PIR4bits_t;
770 extern __at(0x0014) volatile __PIR4bits_t PIR4bits;
772 #define _PSMC1SIF 0x01
773 #define _PSMC2SIF 0x02
774 #define _PSMC3SIF 0x04
775 #define _PSMC4SIF 0x08
776 #define _PSMC1TIF 0x10
777 #define _PSMC2TIF 0x20
778 #define _PSMC3TIF 0x40
779 #define _PSMC4TIF 0x80
781 //==============================================================================
783 extern __at(0x0015) __sfr TMR0;
784 extern __at(0x0016) __sfr TMR1;
785 extern __at(0x0016) __sfr TMR1L;
786 extern __at(0x0017) __sfr TMR1H;
788 //==============================================================================
789 // T1CON Bits
791 extern __at(0x0018) __sfr T1CON;
793 typedef union
795 struct
797 unsigned TMR1ON : 1;
798 unsigned : 1;
799 unsigned NOT_T1SYNC : 1;
800 unsigned T1OSCEN : 1;
801 unsigned T1CKPS0 : 1;
802 unsigned T1CKPS1 : 1;
803 unsigned TMR1CS0 : 1;
804 unsigned TMR1CS1 : 1;
807 struct
809 unsigned : 4;
810 unsigned T1CKPS : 2;
811 unsigned : 2;
814 struct
816 unsigned : 6;
817 unsigned TMR1CS : 2;
819 } __T1CONbits_t;
821 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
823 #define _TMR1ON 0x01
824 #define _NOT_T1SYNC 0x04
825 #define _T1OSCEN 0x08
826 #define _T1CKPS0 0x10
827 #define _T1CKPS1 0x20
828 #define _TMR1CS0 0x40
829 #define _TMR1CS1 0x80
831 //==============================================================================
834 //==============================================================================
835 // T1GCON Bits
837 extern __at(0x0019) __sfr T1GCON;
839 typedef union
841 struct
843 unsigned T1GSS0 : 1;
844 unsigned T1GSS1 : 1;
845 unsigned T1GVAL : 1;
846 unsigned T1GGO : 1;
847 unsigned T1GSPM : 1;
848 unsigned T1GTM : 1;
849 unsigned T1GPOL : 1;
850 unsigned TMR1GE : 1;
853 struct
855 unsigned T1GSS : 2;
856 unsigned : 6;
858 } __T1GCONbits_t;
860 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
862 #define _T1GSS0 0x01
863 #define _T1GSS1 0x02
864 #define _T1GVAL 0x04
865 #define _T1GGO 0x08
866 #define _T1GSPM 0x10
867 #define _T1GTM 0x20
868 #define _T1GPOL 0x40
869 #define _TMR1GE 0x80
871 //==============================================================================
873 extern __at(0x001A) __sfr TMR2;
874 extern __at(0x001B) __sfr PR2;
876 //==============================================================================
877 // T2CON Bits
879 extern __at(0x001C) __sfr T2CON;
881 typedef union
883 struct
885 unsigned T2CKPS0 : 1;
886 unsigned T2CKPS1 : 1;
887 unsigned TMR2ON : 1;
888 unsigned T2OUTPS0 : 1;
889 unsigned T2OUTPS1 : 1;
890 unsigned T2OUTPS2 : 1;
891 unsigned T2OUTPS3 : 1;
892 unsigned : 1;
895 struct
897 unsigned T2CKPS : 2;
898 unsigned : 6;
901 struct
903 unsigned : 3;
904 unsigned T2OUTPS : 4;
905 unsigned : 1;
907 } __T2CONbits_t;
909 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
911 #define _T2CKPS0 0x01
912 #define _T2CKPS1 0x02
913 #define _TMR2ON 0x04
914 #define _T2OUTPS0 0x08
915 #define _T2OUTPS1 0x10
916 #define _T2OUTPS2 0x20
917 #define _T2OUTPS3 0x40
919 //==============================================================================
922 //==============================================================================
923 // TRISA Bits
925 extern __at(0x008C) __sfr TRISA;
927 typedef struct
929 unsigned TRISA0 : 1;
930 unsigned TRISA1 : 1;
931 unsigned TRISA2 : 1;
932 unsigned TRISA3 : 1;
933 unsigned TRISA4 : 1;
934 unsigned TRISA5 : 1;
935 unsigned TRISA6 : 1;
936 unsigned TRISA7 : 1;
937 } __TRISAbits_t;
939 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
941 #define _TRISA0 0x01
942 #define _TRISA1 0x02
943 #define _TRISA2 0x04
944 #define _TRISA3 0x08
945 #define _TRISA4 0x10
946 #define _TRISA5 0x20
947 #define _TRISA6 0x40
948 #define _TRISA7 0x80
950 //==============================================================================
953 //==============================================================================
954 // TRISB Bits
956 extern __at(0x008D) __sfr TRISB;
958 typedef struct
960 unsigned TRISB0 : 1;
961 unsigned TRISB1 : 1;
962 unsigned TRISB2 : 1;
963 unsigned TRISB3 : 1;
964 unsigned TRISB4 : 1;
965 unsigned TRISB5 : 1;
966 unsigned TRISB6 : 1;
967 unsigned TRISB7 : 1;
968 } __TRISBbits_t;
970 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
972 #define _TRISB0 0x01
973 #define _TRISB1 0x02
974 #define _TRISB2 0x04
975 #define _TRISB3 0x08
976 #define _TRISB4 0x10
977 #define _TRISB5 0x20
978 #define _TRISB6 0x40
979 #define _TRISB7 0x80
981 //==============================================================================
984 //==============================================================================
985 // TRISC Bits
987 extern __at(0x008E) __sfr TRISC;
989 typedef struct
991 unsigned TRISC0 : 1;
992 unsigned TRISC1 : 1;
993 unsigned TRISC2 : 1;
994 unsigned TRISC3 : 1;
995 unsigned TRISC4 : 1;
996 unsigned TRISC5 : 1;
997 unsigned TRISC6 : 1;
998 unsigned TRISC7 : 1;
999 } __TRISCbits_t;
1001 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1003 #define _TRISC0 0x01
1004 #define _TRISC1 0x02
1005 #define _TRISC2 0x04
1006 #define _TRISC3 0x08
1007 #define _TRISC4 0x10
1008 #define _TRISC5 0x20
1009 #define _TRISC6 0x40
1010 #define _TRISC7 0x80
1012 //==============================================================================
1015 //==============================================================================
1016 // TRISD Bits
1018 extern __at(0x008F) __sfr TRISD;
1020 typedef struct
1022 unsigned TRISD0 : 1;
1023 unsigned TRISD1 : 1;
1024 unsigned TRISD2 : 1;
1025 unsigned TRISD3 : 1;
1026 unsigned TRISD4 : 1;
1027 unsigned TRISD5 : 1;
1028 unsigned TRISD6 : 1;
1029 unsigned TRISD7 : 1;
1030 } __TRISDbits_t;
1032 extern __at(0x008F) volatile __TRISDbits_t TRISDbits;
1034 #define _TRISD0 0x01
1035 #define _TRISD1 0x02
1036 #define _TRISD2 0x04
1037 #define _TRISD3 0x08
1038 #define _TRISD4 0x10
1039 #define _TRISD5 0x20
1040 #define _TRISD6 0x40
1041 #define _TRISD7 0x80
1043 //==============================================================================
1046 //==============================================================================
1047 // TRISE Bits
1049 extern __at(0x0090) __sfr TRISE;
1051 typedef union
1053 struct
1055 unsigned TRISE0 : 1;
1056 unsigned TRISE1 : 1;
1057 unsigned TRISE2 : 1;
1058 unsigned TRISE3 : 1;
1059 unsigned : 1;
1060 unsigned : 1;
1061 unsigned : 1;
1062 unsigned : 1;
1065 struct
1067 unsigned TRISE : 4;
1068 unsigned : 4;
1070 } __TRISEbits_t;
1072 extern __at(0x0090) volatile __TRISEbits_t TRISEbits;
1074 #define _TRISE0 0x01
1075 #define _TRISE1 0x02
1076 #define _TRISE2 0x04
1077 #define _TRISE3 0x08
1079 //==============================================================================
1082 //==============================================================================
1083 // PIE1 Bits
1085 extern __at(0x0091) __sfr PIE1;
1087 typedef struct
1089 unsigned TMR1IE : 1;
1090 unsigned TMR2IE : 1;
1091 unsigned CCP1IE : 1;
1092 unsigned SSP1IE : 1;
1093 unsigned TXIE : 1;
1094 unsigned RCIE : 1;
1095 unsigned ADIE : 1;
1096 unsigned TMR1GIE : 1;
1097 } __PIE1bits_t;
1099 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
1101 #define _TMR1IE 0x01
1102 #define _TMR2IE 0x02
1103 #define _CCP1IE 0x04
1104 #define _SSP1IE 0x08
1105 #define _TXIE 0x10
1106 #define _RCIE 0x20
1107 #define _ADIE 0x40
1108 #define _TMR1GIE 0x80
1110 //==============================================================================
1113 //==============================================================================
1114 // PIE2 Bits
1116 extern __at(0x0092) __sfr PIE2;
1118 typedef struct
1120 unsigned CCP2IE : 1;
1121 unsigned C3IE : 1;
1122 unsigned C4IE : 1;
1123 unsigned BCL1IE : 1;
1124 unsigned EEIE : 1;
1125 unsigned C1IE : 1;
1126 unsigned C2IE : 1;
1127 unsigned OSFIE : 1;
1128 } __PIE2bits_t;
1130 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
1132 #define _CCP2IE 0x01
1133 #define _C3IE 0x02
1134 #define _C4IE 0x04
1135 #define _BCL1IE 0x08
1136 #define _EEIE 0x10
1137 #define _C1IE 0x20
1138 #define _C2IE 0x40
1139 #define _OSFIE 0x80
1141 //==============================================================================
1144 //==============================================================================
1145 // PIE3 Bits
1147 extern __at(0x0093) __sfr PIE3;
1149 typedef struct
1151 unsigned : 1;
1152 unsigned : 1;
1153 unsigned : 1;
1154 unsigned : 1;
1155 unsigned CCP3IE : 1;
1156 unsigned : 1;
1157 unsigned : 1;
1158 unsigned : 1;
1159 } __PIE3bits_t;
1161 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
1163 #define _CCP3IE 0x10
1165 //==============================================================================
1168 //==============================================================================
1169 // PIE4 Bits
1171 extern __at(0x0094) __sfr PIE4;
1173 typedef union
1175 struct
1177 unsigned PSMC1SIE : 1;
1178 unsigned PSMC2SIE : 1;
1179 unsigned PSMC3SIE : 1;
1180 unsigned PSMC4SIE : 1;
1181 unsigned PSMC1TIE : 1;
1182 unsigned PSMC2TIE : 1;
1183 unsigned PSMC3TIE : 1;
1184 unsigned PSMC4TIE : 1;
1187 struct
1189 unsigned : 1;
1190 unsigned : 1;
1191 unsigned : 1;
1192 unsigned : 1;
1193 unsigned : 1;
1194 unsigned : 1;
1195 unsigned PMSC3TIE : 1;
1196 unsigned : 1;
1198 } __PIE4bits_t;
1200 extern __at(0x0094) volatile __PIE4bits_t PIE4bits;
1202 #define _PSMC1SIE 0x01
1203 #define _PSMC2SIE 0x02
1204 #define _PSMC3SIE 0x04
1205 #define _PSMC4SIE 0x08
1206 #define _PSMC1TIE 0x10
1207 #define _PSMC2TIE 0x20
1208 #define _PSMC3TIE 0x40
1209 #define _PMSC3TIE 0x40
1210 #define _PSMC4TIE 0x80
1212 //==============================================================================
1215 //==============================================================================
1216 // OPTION_REG Bits
1218 extern __at(0x0095) __sfr OPTION_REG;
1220 typedef union
1222 struct
1224 unsigned PS0 : 1;
1225 unsigned PS1 : 1;
1226 unsigned PS2 : 1;
1227 unsigned PSA : 1;
1228 unsigned TMR0SE : 1;
1229 unsigned TMR0CS : 1;
1230 unsigned INTEDG : 1;
1231 unsigned NOT_WPUEN : 1;
1234 struct
1236 unsigned : 1;
1237 unsigned : 1;
1238 unsigned : 1;
1239 unsigned : 1;
1240 unsigned T0SE : 1;
1241 unsigned T0CS : 1;
1242 unsigned : 1;
1243 unsigned : 1;
1246 struct
1248 unsigned PS : 3;
1249 unsigned : 5;
1251 } __OPTION_REGbits_t;
1253 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1255 #define _PS0 0x01
1256 #define _PS1 0x02
1257 #define _PS2 0x04
1258 #define _PSA 0x08
1259 #define _TMR0SE 0x10
1260 #define _T0SE 0x10
1261 #define _TMR0CS 0x20
1262 #define _T0CS 0x20
1263 #define _INTEDG 0x40
1264 #define _NOT_WPUEN 0x80
1266 //==============================================================================
1269 //==============================================================================
1270 // PCON Bits
1272 extern __at(0x0096) __sfr PCON;
1274 typedef struct
1276 unsigned NOT_BOR : 1;
1277 unsigned NOT_POR : 1;
1278 unsigned NOT_RI : 1;
1279 unsigned NOT_RMCLR : 1;
1280 unsigned NOT_RWDT : 1;
1281 unsigned : 1;
1282 unsigned STKUNF : 1;
1283 unsigned STKOVF : 1;
1284 } __PCONbits_t;
1286 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1288 #define _NOT_BOR 0x01
1289 #define _NOT_POR 0x02
1290 #define _NOT_RI 0x04
1291 #define _NOT_RMCLR 0x08
1292 #define _NOT_RWDT 0x10
1293 #define _STKUNF 0x40
1294 #define _STKOVF 0x80
1296 //==============================================================================
1299 //==============================================================================
1300 // WDTCON Bits
1302 extern __at(0x0097) __sfr WDTCON;
1304 typedef union
1306 struct
1308 unsigned SWDTEN : 1;
1309 unsigned WDTPS0 : 1;
1310 unsigned WDTPS1 : 1;
1311 unsigned WDTPS2 : 1;
1312 unsigned WDTPS3 : 1;
1313 unsigned WDTPS4 : 1;
1314 unsigned : 1;
1315 unsigned : 1;
1318 struct
1320 unsigned : 1;
1321 unsigned WDTPS : 5;
1322 unsigned : 2;
1324 } __WDTCONbits_t;
1326 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
1328 #define _SWDTEN 0x01
1329 #define _WDTPS0 0x02
1330 #define _WDTPS1 0x04
1331 #define _WDTPS2 0x08
1332 #define _WDTPS3 0x10
1333 #define _WDTPS4 0x20
1335 //==============================================================================
1338 //==============================================================================
1339 // OSCTUNE Bits
1341 extern __at(0x0098) __sfr OSCTUNE;
1343 typedef union
1345 struct
1347 unsigned TUN0 : 1;
1348 unsigned TUN1 : 1;
1349 unsigned TUN2 : 1;
1350 unsigned TUN3 : 1;
1351 unsigned TUN4 : 1;
1352 unsigned TUN5 : 1;
1353 unsigned : 1;
1354 unsigned : 1;
1357 struct
1359 unsigned TUN : 6;
1360 unsigned : 2;
1362 } __OSCTUNEbits_t;
1364 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1366 #define _TUN0 0x01
1367 #define _TUN1 0x02
1368 #define _TUN2 0x04
1369 #define _TUN3 0x08
1370 #define _TUN4 0x10
1371 #define _TUN5 0x20
1373 //==============================================================================
1376 //==============================================================================
1377 // OSCCON Bits
1379 extern __at(0x0099) __sfr OSCCON;
1381 typedef union
1383 struct
1385 unsigned SCS0 : 1;
1386 unsigned SCS1 : 1;
1387 unsigned : 1;
1388 unsigned IRCF0 : 1;
1389 unsigned IRCF1 : 1;
1390 unsigned IRCF2 : 1;
1391 unsigned IRCF3 : 1;
1392 unsigned SPLLEN : 1;
1395 struct
1397 unsigned SCS : 2;
1398 unsigned : 6;
1401 struct
1403 unsigned : 3;
1404 unsigned IRCF : 4;
1405 unsigned : 1;
1407 } __OSCCONbits_t;
1409 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1411 #define _SCS0 0x01
1412 #define _SCS1 0x02
1413 #define _IRCF0 0x08
1414 #define _IRCF1 0x10
1415 #define _IRCF2 0x20
1416 #define _IRCF3 0x40
1417 #define _SPLLEN 0x80
1419 //==============================================================================
1422 //==============================================================================
1423 // OSCSTAT Bits
1425 extern __at(0x009A) __sfr OSCSTAT;
1427 typedef struct
1429 unsigned HFIOFS : 1;
1430 unsigned LFIOFR : 1;
1431 unsigned MFIOFR : 1;
1432 unsigned HFIOFL : 1;
1433 unsigned HFIOFR : 1;
1434 unsigned OSTS : 1;
1435 unsigned PLLR : 1;
1436 unsigned T1OSCR : 1;
1437 } __OSCSTATbits_t;
1439 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1441 #define _HFIOFS 0x01
1442 #define _LFIOFR 0x02
1443 #define _MFIOFR 0x04
1444 #define _HFIOFL 0x08
1445 #define _HFIOFR 0x10
1446 #define _OSTS 0x20
1447 #define _PLLR 0x40
1448 #define _T1OSCR 0x80
1450 //==============================================================================
1452 extern __at(0x009B) __sfr ADRES;
1453 extern __at(0x009B) __sfr ADRESL;
1454 extern __at(0x009C) __sfr ADRESH;
1456 //==============================================================================
1457 // ADCON0 Bits
1459 extern __at(0x009D) __sfr ADCON0;
1461 typedef union
1463 struct
1465 unsigned ADON : 1;
1466 unsigned GO_NOT_DONE : 1;
1467 unsigned CHS0 : 1;
1468 unsigned CHS1 : 1;
1469 unsigned CHS2 : 1;
1470 unsigned CHS3 : 1;
1471 unsigned CHS4 : 1;
1472 unsigned ADRMD : 1;
1475 struct
1477 unsigned : 1;
1478 unsigned ADGO : 1;
1479 unsigned : 1;
1480 unsigned : 1;
1481 unsigned : 1;
1482 unsigned : 1;
1483 unsigned : 1;
1484 unsigned : 1;
1487 struct
1489 unsigned : 1;
1490 unsigned GO : 1;
1491 unsigned : 1;
1492 unsigned : 1;
1493 unsigned : 1;
1494 unsigned : 1;
1495 unsigned : 1;
1496 unsigned : 1;
1499 struct
1501 unsigned : 1;
1502 unsigned DONE : 1;
1503 unsigned : 1;
1504 unsigned : 1;
1505 unsigned : 1;
1506 unsigned : 1;
1507 unsigned : 1;
1508 unsigned : 1;
1511 struct
1513 unsigned : 2;
1514 unsigned CHS : 5;
1515 unsigned : 1;
1517 } __ADCON0bits_t;
1519 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1521 #define _ADON 0x01
1522 #define _GO_NOT_DONE 0x02
1523 #define _ADGO 0x02
1524 #define _GO 0x02
1525 #define _DONE 0x02
1526 #define _CHS0 0x04
1527 #define _CHS1 0x08
1528 #define _CHS2 0x10
1529 #define _CHS3 0x20
1530 #define _CHS4 0x40
1531 #define _ADRMD 0x80
1533 //==============================================================================
1536 //==============================================================================
1537 // ADCON1 Bits
1539 extern __at(0x009E) __sfr ADCON1;
1541 typedef union
1543 struct
1545 unsigned ADPREF0 : 1;
1546 unsigned ADPREF1 : 1;
1547 unsigned ADNREF : 1;
1548 unsigned : 1;
1549 unsigned ADCS0 : 1;
1550 unsigned ADCS1 : 1;
1551 unsigned ADCS2 : 1;
1552 unsigned ADFM : 1;
1555 struct
1557 unsigned ADPREF : 2;
1558 unsigned : 6;
1561 struct
1563 unsigned : 4;
1564 unsigned ADCS : 3;
1565 unsigned : 1;
1567 } __ADCON1bits_t;
1569 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1571 #define _ADPREF0 0x01
1572 #define _ADPREF1 0x02
1573 #define _ADNREF 0x04
1574 #define _ADCS0 0x10
1575 #define _ADCS1 0x20
1576 #define _ADCS2 0x40
1577 #define _ADFM 0x80
1579 //==============================================================================
1582 //==============================================================================
1583 // ADCON2 Bits
1585 extern __at(0x009F) __sfr ADCON2;
1587 typedef union
1589 struct
1591 unsigned CHSN0 : 1;
1592 unsigned CHSN1 : 1;
1593 unsigned CHSN2 : 1;
1594 unsigned CHSN3 : 1;
1595 unsigned TRIGSEL0 : 1;
1596 unsigned TRIGSEL1 : 1;
1597 unsigned TRIGSEL2 : 1;
1598 unsigned TRIGSEL3 : 1;
1601 struct
1603 unsigned CHSN : 4;
1604 unsigned : 4;
1607 struct
1609 unsigned : 4;
1610 unsigned TRIGSEL : 4;
1612 } __ADCON2bits_t;
1614 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1616 #define _CHSN0 0x01
1617 #define _CHSN1 0x02
1618 #define _CHSN2 0x04
1619 #define _CHSN3 0x08
1620 #define _TRIGSEL0 0x10
1621 #define _TRIGSEL1 0x20
1622 #define _TRIGSEL2 0x40
1623 #define _TRIGSEL3 0x80
1625 //==============================================================================
1628 //==============================================================================
1629 // LATA Bits
1631 extern __at(0x010C) __sfr LATA;
1633 typedef struct
1635 unsigned LATA0 : 1;
1636 unsigned LATA1 : 1;
1637 unsigned LATA2 : 1;
1638 unsigned LATA3 : 1;
1639 unsigned LATA4 : 1;
1640 unsigned LATA5 : 1;
1641 unsigned LATA6 : 1;
1642 unsigned LATA7 : 1;
1643 } __LATAbits_t;
1645 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1647 #define _LATA0 0x01
1648 #define _LATA1 0x02
1649 #define _LATA2 0x04
1650 #define _LATA3 0x08
1651 #define _LATA4 0x10
1652 #define _LATA5 0x20
1653 #define _LATA6 0x40
1654 #define _LATA7 0x80
1656 //==============================================================================
1659 //==============================================================================
1660 // LATB Bits
1662 extern __at(0x010D) __sfr LATB;
1664 typedef struct
1666 unsigned LATB0 : 1;
1667 unsigned LATB1 : 1;
1668 unsigned LATB2 : 1;
1669 unsigned LATB3 : 1;
1670 unsigned LATB4 : 1;
1671 unsigned LATB5 : 1;
1672 unsigned LATB6 : 1;
1673 unsigned LATB7 : 1;
1674 } __LATBbits_t;
1676 extern __at(0x010D) volatile __LATBbits_t LATBbits;
1678 #define _LATB0 0x01
1679 #define _LATB1 0x02
1680 #define _LATB2 0x04
1681 #define _LATB3 0x08
1682 #define _LATB4 0x10
1683 #define _LATB5 0x20
1684 #define _LATB6 0x40
1685 #define _LATB7 0x80
1687 //==============================================================================
1690 //==============================================================================
1691 // LATC Bits
1693 extern __at(0x010E) __sfr LATC;
1695 typedef struct
1697 unsigned LATC0 : 1;
1698 unsigned LATC1 : 1;
1699 unsigned LATC2 : 1;
1700 unsigned LATC3 : 1;
1701 unsigned LATC4 : 1;
1702 unsigned LATC5 : 1;
1703 unsigned LATC6 : 1;
1704 unsigned LATC7 : 1;
1705 } __LATCbits_t;
1707 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1709 #define _LATC0 0x01
1710 #define _LATC1 0x02
1711 #define _LATC2 0x04
1712 #define _LATC3 0x08
1713 #define _LATC4 0x10
1714 #define _LATC5 0x20
1715 #define _LATC6 0x40
1716 #define _LATC7 0x80
1718 //==============================================================================
1721 //==============================================================================
1722 // LATD Bits
1724 extern __at(0x010F) __sfr LATD;
1726 typedef struct
1728 unsigned LATD0 : 1;
1729 unsigned LATD1 : 1;
1730 unsigned LATD2 : 1;
1731 unsigned LATD3 : 1;
1732 unsigned LATD4 : 1;
1733 unsigned LATD5 : 1;
1734 unsigned LATD6 : 1;
1735 unsigned LATD7 : 1;
1736 } __LATDbits_t;
1738 extern __at(0x010F) volatile __LATDbits_t LATDbits;
1740 #define _LATD0 0x01
1741 #define _LATD1 0x02
1742 #define _LATD2 0x04
1743 #define _LATD3 0x08
1744 #define _LATD4 0x10
1745 #define _LATD5 0x20
1746 #define _LATD6 0x40
1747 #define _LATD7 0x80
1749 //==============================================================================
1752 //==============================================================================
1753 // LATE Bits
1755 extern __at(0x0110) __sfr LATE;
1757 typedef union
1759 struct
1761 unsigned LATE0 : 1;
1762 unsigned LATE1 : 1;
1763 unsigned LATE2 : 1;
1764 unsigned : 1;
1765 unsigned : 1;
1766 unsigned : 1;
1767 unsigned : 1;
1768 unsigned : 1;
1771 struct
1773 unsigned LATE : 3;
1774 unsigned : 5;
1776 } __LATEbits_t;
1778 extern __at(0x0110) volatile __LATEbits_t LATEbits;
1780 #define _LATE0 0x01
1781 #define _LATE1 0x02
1782 #define _LATE2 0x04
1784 //==============================================================================
1787 //==============================================================================
1788 // CM1CON0 Bits
1790 extern __at(0x0111) __sfr CM1CON0;
1792 typedef struct
1794 unsigned C1SYNC : 1;
1795 unsigned C1HYS : 1;
1796 unsigned C1SP : 1;
1797 unsigned C1ZLF : 1;
1798 unsigned C1POL : 1;
1799 unsigned C1OE : 1;
1800 unsigned C1OUT : 1;
1801 unsigned C1ON : 1;
1802 } __CM1CON0bits_t;
1804 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1806 #define _C1SYNC 0x01
1807 #define _C1HYS 0x02
1808 #define _C1SP 0x04
1809 #define _C1ZLF 0x08
1810 #define _C1POL 0x10
1811 #define _C1OE 0x20
1812 #define _C1OUT 0x40
1813 #define _C1ON 0x80
1815 //==============================================================================
1818 //==============================================================================
1819 // CM1CON1 Bits
1821 extern __at(0x0112) __sfr CM1CON1;
1823 typedef union
1825 struct
1827 unsigned C1NCH0 : 1;
1828 unsigned C1NCH1 : 1;
1829 unsigned C1NCH2 : 1;
1830 unsigned C1PCH0 : 1;
1831 unsigned C1PCH1 : 1;
1832 unsigned C1PCH2 : 1;
1833 unsigned C1INTN : 1;
1834 unsigned C1INTP : 1;
1837 struct
1839 unsigned C1NCH : 3;
1840 unsigned : 5;
1843 struct
1845 unsigned : 3;
1846 unsigned C1PCH : 3;
1847 unsigned : 2;
1849 } __CM1CON1bits_t;
1851 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1853 #define _C1NCH0 0x01
1854 #define _C1NCH1 0x02
1855 #define _C1NCH2 0x04
1856 #define _C1PCH0 0x08
1857 #define _C1PCH1 0x10
1858 #define _C1PCH2 0x20
1859 #define _C1INTN 0x40
1860 #define _C1INTP 0x80
1862 //==============================================================================
1865 //==============================================================================
1866 // CM2CON0 Bits
1868 extern __at(0x0113) __sfr CM2CON0;
1870 typedef struct
1872 unsigned C2SYNC : 1;
1873 unsigned C2HYS : 1;
1874 unsigned C2SP : 1;
1875 unsigned C2ZLF : 1;
1876 unsigned C2POL : 1;
1877 unsigned C2OE : 1;
1878 unsigned C2OUT : 1;
1879 unsigned C2ON : 1;
1880 } __CM2CON0bits_t;
1882 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
1884 #define _C2SYNC 0x01
1885 #define _C2HYS 0x02
1886 #define _C2SP 0x04
1887 #define _C2ZLF 0x08
1888 #define _C2POL 0x10
1889 #define _C2OE 0x20
1890 #define _C2OUT 0x40
1891 #define _C2ON 0x80
1893 //==============================================================================
1896 //==============================================================================
1897 // CM2CON1 Bits
1899 extern __at(0x0114) __sfr CM2CON1;
1901 typedef union
1903 struct
1905 unsigned C2NCH0 : 1;
1906 unsigned C2NCH1 : 1;
1907 unsigned C2NCH2 : 1;
1908 unsigned C2PCH0 : 1;
1909 unsigned C2PCH1 : 1;
1910 unsigned C2PCH2 : 1;
1911 unsigned C2INTN : 1;
1912 unsigned C2INTP : 1;
1915 struct
1917 unsigned C2NCH : 3;
1918 unsigned : 5;
1921 struct
1923 unsigned : 3;
1924 unsigned C2PCH : 3;
1925 unsigned : 2;
1927 } __CM2CON1bits_t;
1929 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
1931 #define _C2NCH0 0x01
1932 #define _C2NCH1 0x02
1933 #define _C2NCH2 0x04
1934 #define _C2PCH0 0x08
1935 #define _C2PCH1 0x10
1936 #define _C2PCH2 0x20
1937 #define _C2INTN 0x40
1938 #define _C2INTP 0x80
1940 //==============================================================================
1943 //==============================================================================
1944 // CMOUT Bits
1946 extern __at(0x0115) __sfr CMOUT;
1948 typedef struct
1950 unsigned MC1OUT : 1;
1951 unsigned MC2OUT : 1;
1952 unsigned MC3OUT : 1;
1953 unsigned MC4OUT : 1;
1954 unsigned : 1;
1955 unsigned : 1;
1956 unsigned : 1;
1957 unsigned : 1;
1958 } __CMOUTbits_t;
1960 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
1962 #define _MC1OUT 0x01
1963 #define _MC2OUT 0x02
1964 #define _MC3OUT 0x04
1965 #define _MC4OUT 0x08
1967 //==============================================================================
1970 //==============================================================================
1971 // BORCON Bits
1973 extern __at(0x0116) __sfr BORCON;
1975 typedef struct
1977 unsigned BORRDY : 1;
1978 unsigned : 1;
1979 unsigned : 1;
1980 unsigned : 1;
1981 unsigned : 1;
1982 unsigned : 1;
1983 unsigned BORFS : 1;
1984 unsigned SBOREN : 1;
1985 } __BORCONbits_t;
1987 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
1989 #define _BORRDY 0x01
1990 #define _BORFS 0x40
1991 #define _SBOREN 0x80
1993 //==============================================================================
1996 //==============================================================================
1997 // FVRCON Bits
1999 extern __at(0x0117) __sfr FVRCON;
2001 typedef union
2003 struct
2005 unsigned ADFVR0 : 1;
2006 unsigned ADFVR1 : 1;
2007 unsigned CDAFVR0 : 1;
2008 unsigned CDAFVR1 : 1;
2009 unsigned TSRNG : 1;
2010 unsigned TSEN : 1;
2011 unsigned FVRRDY : 1;
2012 unsigned FVREN : 1;
2015 struct
2017 unsigned ADFVR : 2;
2018 unsigned : 6;
2021 struct
2023 unsigned : 2;
2024 unsigned CDAFVR : 2;
2025 unsigned : 4;
2027 } __FVRCONbits_t;
2029 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
2031 #define _ADFVR0 0x01
2032 #define _ADFVR1 0x02
2033 #define _CDAFVR0 0x04
2034 #define _CDAFVR1 0x08
2035 #define _TSRNG 0x10
2036 #define _TSEN 0x20
2037 #define _FVRRDY 0x40
2038 #define _FVREN 0x80
2040 //==============================================================================
2043 //==============================================================================
2044 // DAC1CON0 Bits
2046 extern __at(0x0118) __sfr DAC1CON0;
2048 typedef union
2050 struct
2052 unsigned DAC1NSS : 1;
2053 unsigned : 1;
2054 unsigned DAC1PSS0 : 1;
2055 unsigned DAC1PSS1 : 1;
2056 unsigned DAC1OE2 : 1;
2057 unsigned DAC1OE1 : 1;
2058 unsigned : 1;
2059 unsigned DAC1EN : 1;
2062 struct
2064 unsigned DACNSS : 1;
2065 unsigned : 1;
2066 unsigned DACPSS0 : 1;
2067 unsigned DACPSS1 : 1;
2068 unsigned DACOE0 : 1;
2069 unsigned DACOE1 : 1;
2070 unsigned : 1;
2071 unsigned DACEN : 1;
2074 struct
2076 unsigned : 2;
2077 unsigned DAC1PSS : 2;
2078 unsigned : 4;
2081 struct
2083 unsigned : 2;
2084 unsigned DACPSS : 2;
2085 unsigned : 4;
2088 struct
2090 unsigned : 4;
2091 unsigned DACOE : 2;
2092 unsigned : 2;
2094 } __DAC1CON0bits_t;
2096 extern __at(0x0118) volatile __DAC1CON0bits_t DAC1CON0bits;
2098 #define _DAC1NSS 0x01
2099 #define _DACNSS 0x01
2100 #define _DAC1PSS0 0x04
2101 #define _DACPSS0 0x04
2102 #define _DAC1PSS1 0x08
2103 #define _DACPSS1 0x08
2104 #define _DAC1OE2 0x10
2105 #define _DACOE0 0x10
2106 #define _DAC1OE1 0x20
2107 #define _DACOE1 0x20
2108 #define _DAC1EN 0x80
2109 #define _DACEN 0x80
2111 //==============================================================================
2114 //==============================================================================
2115 // DAC1CON1 Bits
2117 extern __at(0x0119) __sfr DAC1CON1;
2119 typedef union
2121 struct
2123 unsigned DAC1R0 : 1;
2124 unsigned DAC1R1 : 1;
2125 unsigned DAC1R2 : 1;
2126 unsigned DAC1R3 : 1;
2127 unsigned DAC1R4 : 1;
2128 unsigned DAC1R5 : 1;
2129 unsigned DAC1R6 : 1;
2130 unsigned DAC1R7 : 1;
2133 struct
2135 unsigned DACR0 : 1;
2136 unsigned DACR1 : 1;
2137 unsigned DACR2 : 1;
2138 unsigned DACR3 : 1;
2139 unsigned DACR4 : 1;
2140 unsigned DACR5 : 1;
2141 unsigned DACR6 : 1;
2142 unsigned DACR7 : 1;
2144 } __DAC1CON1bits_t;
2146 extern __at(0x0119) volatile __DAC1CON1bits_t DAC1CON1bits;
2148 #define _DAC1R0 0x01
2149 #define _DACR0 0x01
2150 #define _DAC1R1 0x02
2151 #define _DACR1 0x02
2152 #define _DAC1R2 0x04
2153 #define _DACR2 0x04
2154 #define _DAC1R3 0x08
2155 #define _DACR3 0x08
2156 #define _DAC1R4 0x10
2157 #define _DACR4 0x10
2158 #define _DAC1R5 0x20
2159 #define _DACR5 0x20
2160 #define _DAC1R6 0x40
2161 #define _DACR6 0x40
2162 #define _DAC1R7 0x80
2163 #define _DACR7 0x80
2165 //==============================================================================
2168 //==============================================================================
2169 // CM4CON0 Bits
2171 extern __at(0x011A) __sfr CM4CON0;
2173 typedef struct
2175 unsigned C4SYNC : 1;
2176 unsigned C4HYS : 1;
2177 unsigned C4SP : 1;
2178 unsigned C4ZLF : 1;
2179 unsigned C4POL : 1;
2180 unsigned C4OE : 1;
2181 unsigned C4OUT : 1;
2182 unsigned C4ON : 1;
2183 } __CM4CON0bits_t;
2185 extern __at(0x011A) volatile __CM4CON0bits_t CM4CON0bits;
2187 #define _C4SYNC 0x01
2188 #define _C4HYS 0x02
2189 #define _C4SP 0x04
2190 #define _C4ZLF 0x08
2191 #define _C4POL 0x10
2192 #define _C4OE 0x20
2193 #define _C4OUT 0x40
2194 #define _C4ON 0x80
2196 //==============================================================================
2199 //==============================================================================
2200 // CM4CON1 Bits
2202 extern __at(0x011B) __sfr CM4CON1;
2204 typedef union
2206 struct
2208 unsigned C4NCH0 : 1;
2209 unsigned C4NCH1 : 1;
2210 unsigned C4NCH2 : 1;
2211 unsigned C4PCH0 : 1;
2212 unsigned C4PCH1 : 1;
2213 unsigned C4PCH2 : 1;
2214 unsigned C4INTN : 1;
2215 unsigned C4INTP : 1;
2218 struct
2220 unsigned C4NCH : 3;
2221 unsigned : 5;
2224 struct
2226 unsigned : 3;
2227 unsigned C4PCH : 3;
2228 unsigned : 2;
2230 } __CM4CON1bits_t;
2232 extern __at(0x011B) volatile __CM4CON1bits_t CM4CON1bits;
2234 #define _C4NCH0 0x01
2235 #define _C4NCH1 0x02
2236 #define _C4NCH2 0x04
2237 #define _C4PCH0 0x08
2238 #define _C4PCH1 0x10
2239 #define _C4PCH2 0x20
2240 #define _C4INTN 0x40
2241 #define _C4INTP 0x80
2243 //==============================================================================
2246 //==============================================================================
2247 // APFCON2 Bits
2249 extern __at(0x011C) __sfr APFCON2;
2251 typedef struct
2253 unsigned CCP3SEL : 1;
2254 unsigned : 1;
2255 unsigned : 1;
2256 unsigned : 1;
2257 unsigned : 1;
2258 unsigned : 1;
2259 unsigned : 1;
2260 unsigned : 1;
2261 } __APFCON2bits_t;
2263 extern __at(0x011C) volatile __APFCON2bits_t APFCON2bits;
2265 #define _CCP3SEL 0x01
2267 //==============================================================================
2270 //==============================================================================
2271 // APFCON Bits
2273 extern __at(0x011D) __sfr APFCON;
2275 typedef struct
2277 unsigned CCP2SEL : 1;
2278 unsigned RXSEL : 1;
2279 unsigned TXSEL : 1;
2280 unsigned SDISEL : 1;
2281 unsigned SCKSEL : 1;
2282 unsigned SDOSEL : 1;
2283 unsigned CCP1SEL : 1;
2284 unsigned C2OUTSEL : 1;
2285 } __APFCONbits_t;
2287 extern __at(0x011D) volatile __APFCONbits_t APFCONbits;
2289 #define _CCP2SEL 0x01
2290 #define _RXSEL 0x02
2291 #define _TXSEL 0x04
2292 #define _SDISEL 0x08
2293 #define _SCKSEL 0x10
2294 #define _SDOSEL 0x20
2295 #define _CCP1SEL 0x40
2296 #define _C2OUTSEL 0x80
2298 //==============================================================================
2301 //==============================================================================
2302 // APFCON0 Bits
2304 extern __at(0x011D) __sfr APFCON0;
2306 typedef struct
2308 unsigned CCP2SEL : 1;
2309 unsigned RXSEL : 1;
2310 unsigned TXSEL : 1;
2311 unsigned SDISEL : 1;
2312 unsigned SCKSEL : 1;
2313 unsigned SDOSEL : 1;
2314 unsigned CCP1SEL : 1;
2315 unsigned C2OUTSEL : 1;
2316 } __APFCON0bits_t;
2318 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits;
2320 #define _APFCON0_CCP2SEL 0x01
2321 #define _APFCON0_RXSEL 0x02
2322 #define _APFCON0_TXSEL 0x04
2323 #define _APFCON0_SDISEL 0x08
2324 #define _APFCON0_SCKSEL 0x10
2325 #define _APFCON0_SDOSEL 0x20
2326 #define _APFCON0_CCP1SEL 0x40
2327 #define _APFCON0_C2OUTSEL 0x80
2329 //==============================================================================
2332 //==============================================================================
2333 // APFCON1 Bits
2335 extern __at(0x011D) __sfr APFCON1;
2337 typedef struct
2339 unsigned CCP2SEL : 1;
2340 unsigned RXSEL : 1;
2341 unsigned TXSEL : 1;
2342 unsigned SDISEL : 1;
2343 unsigned SCKSEL : 1;
2344 unsigned SDOSEL : 1;
2345 unsigned CCP1SEL : 1;
2346 unsigned C2OUTSEL : 1;
2347 } __APFCON1bits_t;
2349 extern __at(0x011D) volatile __APFCON1bits_t APFCON1bits;
2351 #define _APFCON1_CCP2SEL 0x01
2352 #define _APFCON1_RXSEL 0x02
2353 #define _APFCON1_TXSEL 0x04
2354 #define _APFCON1_SDISEL 0x08
2355 #define _APFCON1_SCKSEL 0x10
2356 #define _APFCON1_SDOSEL 0x20
2357 #define _APFCON1_CCP1SEL 0x40
2358 #define _APFCON1_C2OUTSEL 0x80
2360 //==============================================================================
2363 //==============================================================================
2364 // CM3CON0 Bits
2366 extern __at(0x011E) __sfr CM3CON0;
2368 typedef struct
2370 unsigned C3SYNC : 1;
2371 unsigned C3HYS : 1;
2372 unsigned C3SP : 1;
2373 unsigned C3ZLF : 1;
2374 unsigned C3POL : 1;
2375 unsigned C3OE : 1;
2376 unsigned C3OUT : 1;
2377 unsigned C3ON : 1;
2378 } __CM3CON0bits_t;
2380 extern __at(0x011E) volatile __CM3CON0bits_t CM3CON0bits;
2382 #define _C3SYNC 0x01
2383 #define _C3HYS 0x02
2384 #define _C3SP 0x04
2385 #define _C3ZLF 0x08
2386 #define _C3POL 0x10
2387 #define _C3OE 0x20
2388 #define _C3OUT 0x40
2389 #define _C3ON 0x80
2391 //==============================================================================
2394 //==============================================================================
2395 // CM3CON1 Bits
2397 extern __at(0x011F) __sfr CM3CON1;
2399 typedef union
2401 struct
2403 unsigned C3NCH0 : 1;
2404 unsigned C3NCH1 : 1;
2405 unsigned C3NCH2 : 1;
2406 unsigned C3PCH0 : 1;
2407 unsigned C3PCH1 : 1;
2408 unsigned C3PCH2 : 1;
2409 unsigned C3INTN : 1;
2410 unsigned C3INTP : 1;
2413 struct
2415 unsigned C3NCH : 3;
2416 unsigned : 5;
2419 struct
2421 unsigned : 3;
2422 unsigned C3PCH : 3;
2423 unsigned : 2;
2425 } __CM3CON1bits_t;
2427 extern __at(0x011F) volatile __CM3CON1bits_t CM3CON1bits;
2429 #define _C3NCH0 0x01
2430 #define _C3NCH1 0x02
2431 #define _C3NCH2 0x04
2432 #define _C3PCH0 0x08
2433 #define _C3PCH1 0x10
2434 #define _C3PCH2 0x20
2435 #define _C3INTN 0x40
2436 #define _C3INTP 0x80
2438 //==============================================================================
2441 //==============================================================================
2442 // ANSELA Bits
2444 extern __at(0x018C) __sfr ANSELA;
2446 typedef struct
2448 unsigned ANSA0 : 1;
2449 unsigned ANSA1 : 1;
2450 unsigned ANSA2 : 1;
2451 unsigned ANSA3 : 1;
2452 unsigned ANSA4 : 1;
2453 unsigned ANSA5 : 1;
2454 unsigned : 1;
2455 unsigned ANSA7 : 1;
2456 } __ANSELAbits_t;
2458 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2460 #define _ANSA0 0x01
2461 #define _ANSA1 0x02
2462 #define _ANSA2 0x04
2463 #define _ANSA3 0x08
2464 #define _ANSA4 0x10
2465 #define _ANSA5 0x20
2466 #define _ANSA7 0x80
2468 //==============================================================================
2471 //==============================================================================
2472 // ANSELB Bits
2474 extern __at(0x018D) __sfr ANSELB;
2476 typedef union
2478 struct
2480 unsigned ANSB0 : 1;
2481 unsigned ANSB1 : 1;
2482 unsigned ANSB2 : 1;
2483 unsigned ANSB3 : 1;
2484 unsigned ANSB4 : 1;
2485 unsigned ANSB5 : 1;
2486 unsigned ANSB6 : 1;
2487 unsigned : 1;
2490 struct
2492 unsigned ANSB : 7;
2493 unsigned : 1;
2495 } __ANSELBbits_t;
2497 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2499 #define _ANSB0 0x01
2500 #define _ANSB1 0x02
2501 #define _ANSB2 0x04
2502 #define _ANSB3 0x08
2503 #define _ANSB4 0x10
2504 #define _ANSB5 0x20
2505 #define _ANSB6 0x40
2507 //==============================================================================
2510 //==============================================================================
2511 // ANSELC Bits
2513 extern __at(0x018E) __sfr ANSELC;
2515 typedef struct
2517 unsigned ANSC0 : 1;
2518 unsigned ANSC1 : 1;
2519 unsigned ANSC2 : 1;
2520 unsigned ANSC3 : 1;
2521 unsigned ANSC4 : 1;
2522 unsigned ANSC5 : 1;
2523 unsigned ANSC6 : 1;
2524 unsigned ANSC7 : 1;
2525 } __ANSELCbits_t;
2527 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2529 #define _ANSC0 0x01
2530 #define _ANSC1 0x02
2531 #define _ANSC2 0x04
2532 #define _ANSC3 0x08
2533 #define _ANSC4 0x10
2534 #define _ANSC5 0x20
2535 #define _ANSC6 0x40
2536 #define _ANSC7 0x80
2538 //==============================================================================
2541 //==============================================================================
2542 // ANSELD Bits
2544 extern __at(0x018F) __sfr ANSELD;
2546 typedef union
2548 struct
2550 unsigned ANSD0 : 1;
2551 unsigned ANSD1 : 1;
2552 unsigned ANSD2 : 1;
2553 unsigned : 1;
2554 unsigned : 1;
2555 unsigned : 1;
2556 unsigned : 1;
2557 unsigned : 1;
2560 struct
2562 unsigned ANSD : 3;
2563 unsigned : 5;
2565 } __ANSELDbits_t;
2567 extern __at(0x018F) volatile __ANSELDbits_t ANSELDbits;
2569 #define _ANSD0 0x01
2570 #define _ANSD1 0x02
2571 #define _ANSD2 0x04
2573 //==============================================================================
2576 //==============================================================================
2577 // ANSELE Bits
2579 extern __at(0x0190) __sfr ANSELE;
2581 typedef union
2583 struct
2585 unsigned ANSE0 : 1;
2586 unsigned ANSE1 : 1;
2587 unsigned ANSE2 : 1;
2588 unsigned : 1;
2589 unsigned : 1;
2590 unsigned : 1;
2591 unsigned : 1;
2592 unsigned : 1;
2595 struct
2597 unsigned ANSE : 3;
2598 unsigned : 5;
2600 } __ANSELEbits_t;
2602 extern __at(0x0190) volatile __ANSELEbits_t ANSELEbits;
2604 #define _ANSE0 0x01
2605 #define _ANSE1 0x02
2606 #define _ANSE2 0x04
2608 //==============================================================================
2610 extern __at(0x0191) __sfr EEADR;
2611 extern __at(0x0191) __sfr EEADRL;
2612 extern __at(0x0192) __sfr EEADRH;
2613 extern __at(0x0193) __sfr EEDAT;
2614 extern __at(0x0193) __sfr EEDATL;
2615 extern __at(0x0194) __sfr EEDATH;
2617 //==============================================================================
2618 // EECON1 Bits
2620 extern __at(0x0195) __sfr EECON1;
2622 typedef struct
2624 unsigned RD : 1;
2625 unsigned WR : 1;
2626 unsigned WREN : 1;
2627 unsigned WRERR : 1;
2628 unsigned FREE : 1;
2629 unsigned LWLO : 1;
2630 unsigned CFGS : 1;
2631 unsigned EEPGD : 1;
2632 } __EECON1bits_t;
2634 extern __at(0x0195) volatile __EECON1bits_t EECON1bits;
2636 #define _RD 0x01
2637 #define _WR 0x02
2638 #define _WREN 0x04
2639 #define _WRERR 0x08
2640 #define _FREE 0x10
2641 #define _LWLO 0x20
2642 #define _CFGS 0x40
2643 #define _EEPGD 0x80
2645 //==============================================================================
2647 extern __at(0x0196) __sfr EECON2;
2648 extern __at(0x0199) __sfr RC1REG;
2649 extern __at(0x0199) __sfr RCREG;
2650 extern __at(0x0199) __sfr RCREG1;
2651 extern __at(0x019A) __sfr TX1REG;
2652 extern __at(0x019A) __sfr TXREG;
2653 extern __at(0x019A) __sfr TXREG1;
2654 extern __at(0x019B) __sfr SP1BRG;
2655 extern __at(0x019B) __sfr SP1BRGL;
2656 extern __at(0x019B) __sfr SPBRG;
2657 extern __at(0x019B) __sfr SPBRG1;
2658 extern __at(0x019B) __sfr SPBRGL;
2659 extern __at(0x019C) __sfr SP1BRGH;
2660 extern __at(0x019C) __sfr SPBRGH;
2661 extern __at(0x019C) __sfr SPBRGH1;
2663 //==============================================================================
2664 // RC1STA Bits
2666 extern __at(0x019D) __sfr RC1STA;
2668 typedef struct
2670 unsigned RX9D : 1;
2671 unsigned OERR : 1;
2672 unsigned FERR : 1;
2673 unsigned ADDEN : 1;
2674 unsigned CREN : 1;
2675 unsigned SREN : 1;
2676 unsigned RX9 : 1;
2677 unsigned SPEN : 1;
2678 } __RC1STAbits_t;
2680 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2682 #define _RX9D 0x01
2683 #define _OERR 0x02
2684 #define _FERR 0x04
2685 #define _ADDEN 0x08
2686 #define _CREN 0x10
2687 #define _SREN 0x20
2688 #define _RX9 0x40
2689 #define _SPEN 0x80
2691 //==============================================================================
2694 //==============================================================================
2695 // RCSTA Bits
2697 extern __at(0x019D) __sfr RCSTA;
2699 typedef struct
2701 unsigned RX9D : 1;
2702 unsigned OERR : 1;
2703 unsigned FERR : 1;
2704 unsigned ADDEN : 1;
2705 unsigned CREN : 1;
2706 unsigned SREN : 1;
2707 unsigned RX9 : 1;
2708 unsigned SPEN : 1;
2709 } __RCSTAbits_t;
2711 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2713 #define _RCSTA_RX9D 0x01
2714 #define _RCSTA_OERR 0x02
2715 #define _RCSTA_FERR 0x04
2716 #define _RCSTA_ADDEN 0x08
2717 #define _RCSTA_CREN 0x10
2718 #define _RCSTA_SREN 0x20
2719 #define _RCSTA_RX9 0x40
2720 #define _RCSTA_SPEN 0x80
2722 //==============================================================================
2725 //==============================================================================
2726 // RCSTA1 Bits
2728 extern __at(0x019D) __sfr RCSTA1;
2730 typedef struct
2732 unsigned RX9D : 1;
2733 unsigned OERR : 1;
2734 unsigned FERR : 1;
2735 unsigned ADDEN : 1;
2736 unsigned CREN : 1;
2737 unsigned SREN : 1;
2738 unsigned RX9 : 1;
2739 unsigned SPEN : 1;
2740 } __RCSTA1bits_t;
2742 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2744 #define _RCSTA1_RX9D 0x01
2745 #define _RCSTA1_OERR 0x02
2746 #define _RCSTA1_FERR 0x04
2747 #define _RCSTA1_ADDEN 0x08
2748 #define _RCSTA1_CREN 0x10
2749 #define _RCSTA1_SREN 0x20
2750 #define _RCSTA1_RX9 0x40
2751 #define _RCSTA1_SPEN 0x80
2753 //==============================================================================
2756 //==============================================================================
2757 // TX1STA Bits
2759 extern __at(0x019E) __sfr TX1STA;
2761 typedef struct
2763 unsigned TX9D : 1;
2764 unsigned TRMT : 1;
2765 unsigned BRGH : 1;
2766 unsigned SENDB : 1;
2767 unsigned SYNC : 1;
2768 unsigned TXEN : 1;
2769 unsigned TX9 : 1;
2770 unsigned CSRC : 1;
2771 } __TX1STAbits_t;
2773 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
2775 #define _TX9D 0x01
2776 #define _TRMT 0x02
2777 #define _BRGH 0x04
2778 #define _SENDB 0x08
2779 #define _SYNC 0x10
2780 #define _TXEN 0x20
2781 #define _TX9 0x40
2782 #define _CSRC 0x80
2784 //==============================================================================
2787 //==============================================================================
2788 // TXSTA Bits
2790 extern __at(0x019E) __sfr TXSTA;
2792 typedef struct
2794 unsigned TX9D : 1;
2795 unsigned TRMT : 1;
2796 unsigned BRGH : 1;
2797 unsigned SENDB : 1;
2798 unsigned SYNC : 1;
2799 unsigned TXEN : 1;
2800 unsigned TX9 : 1;
2801 unsigned CSRC : 1;
2802 } __TXSTAbits_t;
2804 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
2806 #define _TXSTA_TX9D 0x01
2807 #define _TXSTA_TRMT 0x02
2808 #define _TXSTA_BRGH 0x04
2809 #define _TXSTA_SENDB 0x08
2810 #define _TXSTA_SYNC 0x10
2811 #define _TXSTA_TXEN 0x20
2812 #define _TXSTA_TX9 0x40
2813 #define _TXSTA_CSRC 0x80
2815 //==============================================================================
2818 //==============================================================================
2819 // TXSTA1 Bits
2821 extern __at(0x019E) __sfr TXSTA1;
2823 typedef struct
2825 unsigned TX9D : 1;
2826 unsigned TRMT : 1;
2827 unsigned BRGH : 1;
2828 unsigned SENDB : 1;
2829 unsigned SYNC : 1;
2830 unsigned TXEN : 1;
2831 unsigned TX9 : 1;
2832 unsigned CSRC : 1;
2833 } __TXSTA1bits_t;
2835 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
2837 #define _TXSTA1_TX9D 0x01
2838 #define _TXSTA1_TRMT 0x02
2839 #define _TXSTA1_BRGH 0x04
2840 #define _TXSTA1_SENDB 0x08
2841 #define _TXSTA1_SYNC 0x10
2842 #define _TXSTA1_TXEN 0x20
2843 #define _TXSTA1_TX9 0x40
2844 #define _TXSTA1_CSRC 0x80
2846 //==============================================================================
2849 //==============================================================================
2850 // BAUD1CON Bits
2852 extern __at(0x019F) __sfr BAUD1CON;
2854 typedef struct
2856 unsigned ABDEN : 1;
2857 unsigned WUE : 1;
2858 unsigned : 1;
2859 unsigned BRG16 : 1;
2860 unsigned SCKP : 1;
2861 unsigned : 1;
2862 unsigned RCIDL : 1;
2863 unsigned ABDOVF : 1;
2864 } __BAUD1CONbits_t;
2866 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
2868 #define _ABDEN 0x01
2869 #define _WUE 0x02
2870 #define _BRG16 0x08
2871 #define _SCKP 0x10
2872 #define _RCIDL 0x40
2873 #define _ABDOVF 0x80
2875 //==============================================================================
2878 //==============================================================================
2879 // BAUDCON Bits
2881 extern __at(0x019F) __sfr BAUDCON;
2883 typedef struct
2885 unsigned ABDEN : 1;
2886 unsigned WUE : 1;
2887 unsigned : 1;
2888 unsigned BRG16 : 1;
2889 unsigned SCKP : 1;
2890 unsigned : 1;
2891 unsigned RCIDL : 1;
2892 unsigned ABDOVF : 1;
2893 } __BAUDCONbits_t;
2895 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
2897 #define _BAUDCON_ABDEN 0x01
2898 #define _BAUDCON_WUE 0x02
2899 #define _BAUDCON_BRG16 0x08
2900 #define _BAUDCON_SCKP 0x10
2901 #define _BAUDCON_RCIDL 0x40
2902 #define _BAUDCON_ABDOVF 0x80
2904 //==============================================================================
2907 //==============================================================================
2908 // BAUDCON1 Bits
2910 extern __at(0x019F) __sfr BAUDCON1;
2912 typedef struct
2914 unsigned ABDEN : 1;
2915 unsigned WUE : 1;
2916 unsigned : 1;
2917 unsigned BRG16 : 1;
2918 unsigned SCKP : 1;
2919 unsigned : 1;
2920 unsigned RCIDL : 1;
2921 unsigned ABDOVF : 1;
2922 } __BAUDCON1bits_t;
2924 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
2926 #define _BAUDCON1_ABDEN 0x01
2927 #define _BAUDCON1_WUE 0x02
2928 #define _BAUDCON1_BRG16 0x08
2929 #define _BAUDCON1_SCKP 0x10
2930 #define _BAUDCON1_RCIDL 0x40
2931 #define _BAUDCON1_ABDOVF 0x80
2933 //==============================================================================
2936 //==============================================================================
2937 // BAUDCTL Bits
2939 extern __at(0x019F) __sfr BAUDCTL;
2941 typedef struct
2943 unsigned ABDEN : 1;
2944 unsigned WUE : 1;
2945 unsigned : 1;
2946 unsigned BRG16 : 1;
2947 unsigned SCKP : 1;
2948 unsigned : 1;
2949 unsigned RCIDL : 1;
2950 unsigned ABDOVF : 1;
2951 } __BAUDCTLbits_t;
2953 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
2955 #define _BAUDCTL_ABDEN 0x01
2956 #define _BAUDCTL_WUE 0x02
2957 #define _BAUDCTL_BRG16 0x08
2958 #define _BAUDCTL_SCKP 0x10
2959 #define _BAUDCTL_RCIDL 0x40
2960 #define _BAUDCTL_ABDOVF 0x80
2962 //==============================================================================
2965 //==============================================================================
2966 // BAUDCTL1 Bits
2968 extern __at(0x019F) __sfr BAUDCTL1;
2970 typedef struct
2972 unsigned ABDEN : 1;
2973 unsigned WUE : 1;
2974 unsigned : 1;
2975 unsigned BRG16 : 1;
2976 unsigned SCKP : 1;
2977 unsigned : 1;
2978 unsigned RCIDL : 1;
2979 unsigned ABDOVF : 1;
2980 } __BAUDCTL1bits_t;
2982 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
2984 #define _BAUDCTL1_ABDEN 0x01
2985 #define _BAUDCTL1_WUE 0x02
2986 #define _BAUDCTL1_BRG16 0x08
2987 #define _BAUDCTL1_SCKP 0x10
2988 #define _BAUDCTL1_RCIDL 0x40
2989 #define _BAUDCTL1_ABDOVF 0x80
2991 //==============================================================================
2994 //==============================================================================
2995 // WPUA Bits
2997 extern __at(0x020C) __sfr WPUA;
2999 typedef struct
3001 unsigned WPUA0 : 1;
3002 unsigned WPUA1 : 1;
3003 unsigned WPUA2 : 1;
3004 unsigned WPUA3 : 1;
3005 unsigned WPUA4 : 1;
3006 unsigned WPUA5 : 1;
3007 unsigned WPUA6 : 1;
3008 unsigned WPUA7 : 1;
3009 } __WPUAbits_t;
3011 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
3013 #define _WPUA0 0x01
3014 #define _WPUA1 0x02
3015 #define _WPUA2 0x04
3016 #define _WPUA3 0x08
3017 #define _WPUA4 0x10
3018 #define _WPUA5 0x20
3019 #define _WPUA6 0x40
3020 #define _WPUA7 0x80
3022 //==============================================================================
3025 //==============================================================================
3026 // WPUB Bits
3028 extern __at(0x020D) __sfr WPUB;
3030 typedef struct
3032 unsigned WPUB0 : 1;
3033 unsigned WPUB1 : 1;
3034 unsigned WPUB2 : 1;
3035 unsigned WPUB3 : 1;
3036 unsigned WPUB4 : 1;
3037 unsigned WPUB5 : 1;
3038 unsigned WPUB6 : 1;
3039 unsigned WPUB7 : 1;
3040 } __WPUBbits_t;
3042 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
3044 #define _WPUB0 0x01
3045 #define _WPUB1 0x02
3046 #define _WPUB2 0x04
3047 #define _WPUB3 0x08
3048 #define _WPUB4 0x10
3049 #define _WPUB5 0x20
3050 #define _WPUB6 0x40
3051 #define _WPUB7 0x80
3053 //==============================================================================
3056 //==============================================================================
3057 // WPUC Bits
3059 extern __at(0x020E) __sfr WPUC;
3061 typedef struct
3063 unsigned WPUC0 : 1;
3064 unsigned WPUC1 : 1;
3065 unsigned WPUC2 : 1;
3066 unsigned WPUC3 : 1;
3067 unsigned WPUC4 : 1;
3068 unsigned WPUC5 : 1;
3069 unsigned WPUC6 : 1;
3070 unsigned WPUC7 : 1;
3071 } __WPUCbits_t;
3073 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
3075 #define _WPUC0 0x01
3076 #define _WPUC1 0x02
3077 #define _WPUC2 0x04
3078 #define _WPUC3 0x08
3079 #define _WPUC4 0x10
3080 #define _WPUC5 0x20
3081 #define _WPUC6 0x40
3082 #define _WPUC7 0x80
3084 //==============================================================================
3087 //==============================================================================
3088 // WPUD Bits
3090 extern __at(0x020F) __sfr WPUD;
3092 typedef struct
3094 unsigned WPUD0 : 1;
3095 unsigned WPUD1 : 1;
3096 unsigned WPUD2 : 1;
3097 unsigned WPUD3 : 1;
3098 unsigned WPUD4 : 1;
3099 unsigned WPUD5 : 1;
3100 unsigned WPUD6 : 1;
3101 unsigned WPUD7 : 1;
3102 } __WPUDbits_t;
3104 extern __at(0x020F) volatile __WPUDbits_t WPUDbits;
3106 #define _WPUD0 0x01
3107 #define _WPUD1 0x02
3108 #define _WPUD2 0x04
3109 #define _WPUD3 0x08
3110 #define _WPUD4 0x10
3111 #define _WPUD5 0x20
3112 #define _WPUD6 0x40
3113 #define _WPUD7 0x80
3115 //==============================================================================
3118 //==============================================================================
3119 // WPUE Bits
3121 extern __at(0x0210) __sfr WPUE;
3123 typedef union
3125 struct
3127 unsigned WPUE0 : 1;
3128 unsigned WPUE1 : 1;
3129 unsigned WPUE2 : 1;
3130 unsigned WPUE3 : 1;
3131 unsigned : 1;
3132 unsigned : 1;
3133 unsigned : 1;
3134 unsigned : 1;
3137 struct
3139 unsigned WPUE : 4;
3140 unsigned : 4;
3142 } __WPUEbits_t;
3144 extern __at(0x0210) volatile __WPUEbits_t WPUEbits;
3146 #define _WPUE0 0x01
3147 #define _WPUE1 0x02
3148 #define _WPUE2 0x04
3149 #define _WPUE3 0x08
3151 //==============================================================================
3154 //==============================================================================
3155 // SSP1BUF Bits
3157 extern __at(0x0211) __sfr SSP1BUF;
3159 typedef union
3161 struct
3163 unsigned SSP1BUF0 : 1;
3164 unsigned SSP1BUF1 : 1;
3165 unsigned SSP1BUF2 : 1;
3166 unsigned SSP1BUF3 : 1;
3167 unsigned SSP1BUF4 : 1;
3168 unsigned SSP1BUF5 : 1;
3169 unsigned SSP1BUF6 : 1;
3170 unsigned SSP1BUF7 : 1;
3173 struct
3175 unsigned BUF0 : 1;
3176 unsigned BUF1 : 1;
3177 unsigned BUF2 : 1;
3178 unsigned BUF3 : 1;
3179 unsigned BUF4 : 1;
3180 unsigned BUF5 : 1;
3181 unsigned BUF6 : 1;
3182 unsigned BUF7 : 1;
3184 } __SSP1BUFbits_t;
3186 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
3188 #define _SSP1BUF0 0x01
3189 #define _BUF0 0x01
3190 #define _SSP1BUF1 0x02
3191 #define _BUF1 0x02
3192 #define _SSP1BUF2 0x04
3193 #define _BUF2 0x04
3194 #define _SSP1BUF3 0x08
3195 #define _BUF3 0x08
3196 #define _SSP1BUF4 0x10
3197 #define _BUF4 0x10
3198 #define _SSP1BUF5 0x20
3199 #define _BUF5 0x20
3200 #define _SSP1BUF6 0x40
3201 #define _BUF6 0x40
3202 #define _SSP1BUF7 0x80
3203 #define _BUF7 0x80
3205 //==============================================================================
3208 //==============================================================================
3209 // SSPBUF Bits
3211 extern __at(0x0211) __sfr SSPBUF;
3213 typedef union
3215 struct
3217 unsigned SSP1BUF0 : 1;
3218 unsigned SSP1BUF1 : 1;
3219 unsigned SSP1BUF2 : 1;
3220 unsigned SSP1BUF3 : 1;
3221 unsigned SSP1BUF4 : 1;
3222 unsigned SSP1BUF5 : 1;
3223 unsigned SSP1BUF6 : 1;
3224 unsigned SSP1BUF7 : 1;
3227 struct
3229 unsigned BUF0 : 1;
3230 unsigned BUF1 : 1;
3231 unsigned BUF2 : 1;
3232 unsigned BUF3 : 1;
3233 unsigned BUF4 : 1;
3234 unsigned BUF5 : 1;
3235 unsigned BUF6 : 1;
3236 unsigned BUF7 : 1;
3238 } __SSPBUFbits_t;
3240 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
3242 #define _SSPBUF_SSP1BUF0 0x01
3243 #define _SSPBUF_BUF0 0x01
3244 #define _SSPBUF_SSP1BUF1 0x02
3245 #define _SSPBUF_BUF1 0x02
3246 #define _SSPBUF_SSP1BUF2 0x04
3247 #define _SSPBUF_BUF2 0x04
3248 #define _SSPBUF_SSP1BUF3 0x08
3249 #define _SSPBUF_BUF3 0x08
3250 #define _SSPBUF_SSP1BUF4 0x10
3251 #define _SSPBUF_BUF4 0x10
3252 #define _SSPBUF_SSP1BUF5 0x20
3253 #define _SSPBUF_BUF5 0x20
3254 #define _SSPBUF_SSP1BUF6 0x40
3255 #define _SSPBUF_BUF6 0x40
3256 #define _SSPBUF_SSP1BUF7 0x80
3257 #define _SSPBUF_BUF7 0x80
3259 //==============================================================================
3262 //==============================================================================
3263 // SSP1ADD Bits
3265 extern __at(0x0212) __sfr SSP1ADD;
3267 typedef union
3269 struct
3271 unsigned SSP1ADD0 : 1;
3272 unsigned SSP1ADD1 : 1;
3273 unsigned SSP1ADD2 : 1;
3274 unsigned SSP1ADD3 : 1;
3275 unsigned SSP1ADD4 : 1;
3276 unsigned SSP1ADD5 : 1;
3277 unsigned SSP1ADD6 : 1;
3278 unsigned SSP1ADD7 : 1;
3281 struct
3283 unsigned ADD0 : 1;
3284 unsigned ADD1 : 1;
3285 unsigned ADD2 : 1;
3286 unsigned ADD3 : 1;
3287 unsigned ADD4 : 1;
3288 unsigned ADD5 : 1;
3289 unsigned ADD6 : 1;
3290 unsigned ADD7 : 1;
3292 } __SSP1ADDbits_t;
3294 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
3296 #define _SSP1ADD0 0x01
3297 #define _ADD0 0x01
3298 #define _SSP1ADD1 0x02
3299 #define _ADD1 0x02
3300 #define _SSP1ADD2 0x04
3301 #define _ADD2 0x04
3302 #define _SSP1ADD3 0x08
3303 #define _ADD3 0x08
3304 #define _SSP1ADD4 0x10
3305 #define _ADD4 0x10
3306 #define _SSP1ADD5 0x20
3307 #define _ADD5 0x20
3308 #define _SSP1ADD6 0x40
3309 #define _ADD6 0x40
3310 #define _SSP1ADD7 0x80
3311 #define _ADD7 0x80
3313 //==============================================================================
3316 //==============================================================================
3317 // SSPADD Bits
3319 extern __at(0x0212) __sfr SSPADD;
3321 typedef union
3323 struct
3325 unsigned SSP1ADD0 : 1;
3326 unsigned SSP1ADD1 : 1;
3327 unsigned SSP1ADD2 : 1;
3328 unsigned SSP1ADD3 : 1;
3329 unsigned SSP1ADD4 : 1;
3330 unsigned SSP1ADD5 : 1;
3331 unsigned SSP1ADD6 : 1;
3332 unsigned SSP1ADD7 : 1;
3335 struct
3337 unsigned ADD0 : 1;
3338 unsigned ADD1 : 1;
3339 unsigned ADD2 : 1;
3340 unsigned ADD3 : 1;
3341 unsigned ADD4 : 1;
3342 unsigned ADD5 : 1;
3343 unsigned ADD6 : 1;
3344 unsigned ADD7 : 1;
3346 } __SSPADDbits_t;
3348 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
3350 #define _SSPADD_SSP1ADD0 0x01
3351 #define _SSPADD_ADD0 0x01
3352 #define _SSPADD_SSP1ADD1 0x02
3353 #define _SSPADD_ADD1 0x02
3354 #define _SSPADD_SSP1ADD2 0x04
3355 #define _SSPADD_ADD2 0x04
3356 #define _SSPADD_SSP1ADD3 0x08
3357 #define _SSPADD_ADD3 0x08
3358 #define _SSPADD_SSP1ADD4 0x10
3359 #define _SSPADD_ADD4 0x10
3360 #define _SSPADD_SSP1ADD5 0x20
3361 #define _SSPADD_ADD5 0x20
3362 #define _SSPADD_SSP1ADD6 0x40
3363 #define _SSPADD_ADD6 0x40
3364 #define _SSPADD_SSP1ADD7 0x80
3365 #define _SSPADD_ADD7 0x80
3367 //==============================================================================
3370 //==============================================================================
3371 // SSP1MSK Bits
3373 extern __at(0x0213) __sfr SSP1MSK;
3375 typedef union
3377 struct
3379 unsigned SSP1MSK0 : 1;
3380 unsigned SSP1MSK1 : 1;
3381 unsigned SSP1MSK2 : 1;
3382 unsigned SSP1MSK3 : 1;
3383 unsigned SSP1MSK4 : 1;
3384 unsigned SSP1MSK5 : 1;
3385 unsigned SSP1MSK6 : 1;
3386 unsigned SSP1MSK7 : 1;
3389 struct
3391 unsigned MSK0 : 1;
3392 unsigned MSK1 : 1;
3393 unsigned MSK2 : 1;
3394 unsigned MSK3 : 1;
3395 unsigned MSK4 : 1;
3396 unsigned MSK5 : 1;
3397 unsigned MSK6 : 1;
3398 unsigned MSK7 : 1;
3400 } __SSP1MSKbits_t;
3402 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3404 #define _SSP1MSK0 0x01
3405 #define _MSK0 0x01
3406 #define _SSP1MSK1 0x02
3407 #define _MSK1 0x02
3408 #define _SSP1MSK2 0x04
3409 #define _MSK2 0x04
3410 #define _SSP1MSK3 0x08
3411 #define _MSK3 0x08
3412 #define _SSP1MSK4 0x10
3413 #define _MSK4 0x10
3414 #define _SSP1MSK5 0x20
3415 #define _MSK5 0x20
3416 #define _SSP1MSK6 0x40
3417 #define _MSK6 0x40
3418 #define _SSP1MSK7 0x80
3419 #define _MSK7 0x80
3421 //==============================================================================
3424 //==============================================================================
3425 // SSPMSK Bits
3427 extern __at(0x0213) __sfr SSPMSK;
3429 typedef union
3431 struct
3433 unsigned SSP1MSK0 : 1;
3434 unsigned SSP1MSK1 : 1;
3435 unsigned SSP1MSK2 : 1;
3436 unsigned SSP1MSK3 : 1;
3437 unsigned SSP1MSK4 : 1;
3438 unsigned SSP1MSK5 : 1;
3439 unsigned SSP1MSK6 : 1;
3440 unsigned SSP1MSK7 : 1;
3443 struct
3445 unsigned MSK0 : 1;
3446 unsigned MSK1 : 1;
3447 unsigned MSK2 : 1;
3448 unsigned MSK3 : 1;
3449 unsigned MSK4 : 1;
3450 unsigned MSK5 : 1;
3451 unsigned MSK6 : 1;
3452 unsigned MSK7 : 1;
3454 } __SSPMSKbits_t;
3456 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3458 #define _SSPMSK_SSP1MSK0 0x01
3459 #define _SSPMSK_MSK0 0x01
3460 #define _SSPMSK_SSP1MSK1 0x02
3461 #define _SSPMSK_MSK1 0x02
3462 #define _SSPMSK_SSP1MSK2 0x04
3463 #define _SSPMSK_MSK2 0x04
3464 #define _SSPMSK_SSP1MSK3 0x08
3465 #define _SSPMSK_MSK3 0x08
3466 #define _SSPMSK_SSP1MSK4 0x10
3467 #define _SSPMSK_MSK4 0x10
3468 #define _SSPMSK_SSP1MSK5 0x20
3469 #define _SSPMSK_MSK5 0x20
3470 #define _SSPMSK_SSP1MSK6 0x40
3471 #define _SSPMSK_MSK6 0x40
3472 #define _SSPMSK_SSP1MSK7 0x80
3473 #define _SSPMSK_MSK7 0x80
3475 //==============================================================================
3478 //==============================================================================
3479 // SSP1STAT Bits
3481 extern __at(0x0214) __sfr SSP1STAT;
3483 typedef struct
3485 unsigned BF : 1;
3486 unsigned UA : 1;
3487 unsigned R_NOT_W : 1;
3488 unsigned S : 1;
3489 unsigned P : 1;
3490 unsigned D_NOT_A : 1;
3491 unsigned CKE : 1;
3492 unsigned SMP : 1;
3493 } __SSP1STATbits_t;
3495 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3497 #define _BF 0x01
3498 #define _UA 0x02
3499 #define _R_NOT_W 0x04
3500 #define _S 0x08
3501 #define _P 0x10
3502 #define _D_NOT_A 0x20
3503 #define _CKE 0x40
3504 #define _SMP 0x80
3506 //==============================================================================
3509 //==============================================================================
3510 // SSPSTAT Bits
3512 extern __at(0x0214) __sfr SSPSTAT;
3514 typedef struct
3516 unsigned BF : 1;
3517 unsigned UA : 1;
3518 unsigned R_NOT_W : 1;
3519 unsigned S : 1;
3520 unsigned P : 1;
3521 unsigned D_NOT_A : 1;
3522 unsigned CKE : 1;
3523 unsigned SMP : 1;
3524 } __SSPSTATbits_t;
3526 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3528 #define _SSPSTAT_BF 0x01
3529 #define _SSPSTAT_UA 0x02
3530 #define _SSPSTAT_R_NOT_W 0x04
3531 #define _SSPSTAT_S 0x08
3532 #define _SSPSTAT_P 0x10
3533 #define _SSPSTAT_D_NOT_A 0x20
3534 #define _SSPSTAT_CKE 0x40
3535 #define _SSPSTAT_SMP 0x80
3537 //==============================================================================
3540 //==============================================================================
3541 // SSP1CON Bits
3543 extern __at(0x0215) __sfr SSP1CON;
3545 typedef union
3547 struct
3549 unsigned SSPM0 : 1;
3550 unsigned SSPM1 : 1;
3551 unsigned SSPM2 : 1;
3552 unsigned SSPM3 : 1;
3553 unsigned CKP : 1;
3554 unsigned SSPEN : 1;
3555 unsigned SSPOV : 1;
3556 unsigned WCOL : 1;
3559 struct
3561 unsigned SSPM : 4;
3562 unsigned : 4;
3564 } __SSP1CONbits_t;
3566 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3568 #define _SSPM0 0x01
3569 #define _SSPM1 0x02
3570 #define _SSPM2 0x04
3571 #define _SSPM3 0x08
3572 #define _CKP 0x10
3573 #define _SSPEN 0x20
3574 #define _SSPOV 0x40
3575 #define _WCOL 0x80
3577 //==============================================================================
3580 //==============================================================================
3581 // SSP1CON1 Bits
3583 extern __at(0x0215) __sfr SSP1CON1;
3585 typedef union
3587 struct
3589 unsigned SSPM0 : 1;
3590 unsigned SSPM1 : 1;
3591 unsigned SSPM2 : 1;
3592 unsigned SSPM3 : 1;
3593 unsigned CKP : 1;
3594 unsigned SSPEN : 1;
3595 unsigned SSPOV : 1;
3596 unsigned WCOL : 1;
3599 struct
3601 unsigned SSPM : 4;
3602 unsigned : 4;
3604 } __SSP1CON1bits_t;
3606 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3608 #define _SSP1CON1_SSPM0 0x01
3609 #define _SSP1CON1_SSPM1 0x02
3610 #define _SSP1CON1_SSPM2 0x04
3611 #define _SSP1CON1_SSPM3 0x08
3612 #define _SSP1CON1_CKP 0x10
3613 #define _SSP1CON1_SSPEN 0x20
3614 #define _SSP1CON1_SSPOV 0x40
3615 #define _SSP1CON1_WCOL 0x80
3617 //==============================================================================
3620 //==============================================================================
3621 // SSPCON Bits
3623 extern __at(0x0215) __sfr SSPCON;
3625 typedef union
3627 struct
3629 unsigned SSPM0 : 1;
3630 unsigned SSPM1 : 1;
3631 unsigned SSPM2 : 1;
3632 unsigned SSPM3 : 1;
3633 unsigned CKP : 1;
3634 unsigned SSPEN : 1;
3635 unsigned SSPOV : 1;
3636 unsigned WCOL : 1;
3639 struct
3641 unsigned SSPM : 4;
3642 unsigned : 4;
3644 } __SSPCONbits_t;
3646 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3648 #define _SSPCON_SSPM0 0x01
3649 #define _SSPCON_SSPM1 0x02
3650 #define _SSPCON_SSPM2 0x04
3651 #define _SSPCON_SSPM3 0x08
3652 #define _SSPCON_CKP 0x10
3653 #define _SSPCON_SSPEN 0x20
3654 #define _SSPCON_SSPOV 0x40
3655 #define _SSPCON_WCOL 0x80
3657 //==============================================================================
3660 //==============================================================================
3661 // SSPCON1 Bits
3663 extern __at(0x0215) __sfr SSPCON1;
3665 typedef union
3667 struct
3669 unsigned SSPM0 : 1;
3670 unsigned SSPM1 : 1;
3671 unsigned SSPM2 : 1;
3672 unsigned SSPM3 : 1;
3673 unsigned CKP : 1;
3674 unsigned SSPEN : 1;
3675 unsigned SSPOV : 1;
3676 unsigned WCOL : 1;
3679 struct
3681 unsigned SSPM : 4;
3682 unsigned : 4;
3684 } __SSPCON1bits_t;
3686 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3688 #define _SSPCON1_SSPM0 0x01
3689 #define _SSPCON1_SSPM1 0x02
3690 #define _SSPCON1_SSPM2 0x04
3691 #define _SSPCON1_SSPM3 0x08
3692 #define _SSPCON1_CKP 0x10
3693 #define _SSPCON1_SSPEN 0x20
3694 #define _SSPCON1_SSPOV 0x40
3695 #define _SSPCON1_WCOL 0x80
3697 //==============================================================================
3700 //==============================================================================
3701 // SSP1CON2 Bits
3703 extern __at(0x0216) __sfr SSP1CON2;
3705 typedef struct
3707 unsigned SEN : 1;
3708 unsigned RSEN : 1;
3709 unsigned PEN : 1;
3710 unsigned RCEN : 1;
3711 unsigned ACKEN : 1;
3712 unsigned ACKDT : 1;
3713 unsigned ACKSTAT : 1;
3714 unsigned GCEN : 1;
3715 } __SSP1CON2bits_t;
3717 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3719 #define _SEN 0x01
3720 #define _RSEN 0x02
3721 #define _PEN 0x04
3722 #define _RCEN 0x08
3723 #define _ACKEN 0x10
3724 #define _ACKDT 0x20
3725 #define _ACKSTAT 0x40
3726 #define _GCEN 0x80
3728 //==============================================================================
3731 //==============================================================================
3732 // SSPCON2 Bits
3734 extern __at(0x0216) __sfr SSPCON2;
3736 typedef struct
3738 unsigned SEN : 1;
3739 unsigned RSEN : 1;
3740 unsigned PEN : 1;
3741 unsigned RCEN : 1;
3742 unsigned ACKEN : 1;
3743 unsigned ACKDT : 1;
3744 unsigned ACKSTAT : 1;
3745 unsigned GCEN : 1;
3746 } __SSPCON2bits_t;
3748 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3750 #define _SSPCON2_SEN 0x01
3751 #define _SSPCON2_RSEN 0x02
3752 #define _SSPCON2_PEN 0x04
3753 #define _SSPCON2_RCEN 0x08
3754 #define _SSPCON2_ACKEN 0x10
3755 #define _SSPCON2_ACKDT 0x20
3756 #define _SSPCON2_ACKSTAT 0x40
3757 #define _SSPCON2_GCEN 0x80
3759 //==============================================================================
3762 //==============================================================================
3763 // SSP1CON3 Bits
3765 extern __at(0x0217) __sfr SSP1CON3;
3767 typedef struct
3769 unsigned DHEN : 1;
3770 unsigned AHEN : 1;
3771 unsigned SBCDE : 1;
3772 unsigned SDAHT : 1;
3773 unsigned BOEN : 1;
3774 unsigned SCIE : 1;
3775 unsigned PCIE : 1;
3776 unsigned ACKTIM : 1;
3777 } __SSP1CON3bits_t;
3779 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3781 #define _DHEN 0x01
3782 #define _AHEN 0x02
3783 #define _SBCDE 0x04
3784 #define _SDAHT 0x08
3785 #define _BOEN 0x10
3786 #define _SCIE 0x20
3787 #define _PCIE 0x40
3788 #define _ACKTIM 0x80
3790 //==============================================================================
3793 //==============================================================================
3794 // SSPCON3 Bits
3796 extern __at(0x0217) __sfr SSPCON3;
3798 typedef struct
3800 unsigned DHEN : 1;
3801 unsigned AHEN : 1;
3802 unsigned SBCDE : 1;
3803 unsigned SDAHT : 1;
3804 unsigned BOEN : 1;
3805 unsigned SCIE : 1;
3806 unsigned PCIE : 1;
3807 unsigned ACKTIM : 1;
3808 } __SSPCON3bits_t;
3810 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3812 #define _SSPCON3_DHEN 0x01
3813 #define _SSPCON3_AHEN 0x02
3814 #define _SSPCON3_SBCDE 0x04
3815 #define _SSPCON3_SDAHT 0x08
3816 #define _SSPCON3_BOEN 0x10
3817 #define _SSPCON3_SCIE 0x20
3818 #define _SSPCON3_PCIE 0x40
3819 #define _SSPCON3_ACKTIM 0x80
3821 //==============================================================================
3824 //==============================================================================
3825 // ODCONA Bits
3827 extern __at(0x028C) __sfr ODCONA;
3829 typedef struct
3831 unsigned ODCONA0 : 1;
3832 unsigned ODCONA1 : 1;
3833 unsigned ODCONA2 : 1;
3834 unsigned ODCONA3 : 1;
3835 unsigned ODCONA4 : 1;
3836 unsigned ODCONA5 : 1;
3837 unsigned ODCONA6 : 1;
3838 unsigned ODCONA7 : 1;
3839 } __ODCONAbits_t;
3841 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
3843 #define _ODCONA0 0x01
3844 #define _ODCONA1 0x02
3845 #define _ODCONA2 0x04
3846 #define _ODCONA3 0x08
3847 #define _ODCONA4 0x10
3848 #define _ODCONA5 0x20
3849 #define _ODCONA6 0x40
3850 #define _ODCONA7 0x80
3852 //==============================================================================
3855 //==============================================================================
3856 // ODCONB Bits
3858 extern __at(0x028D) __sfr ODCONB;
3860 typedef struct
3862 unsigned ODCONB0 : 1;
3863 unsigned ODCONB1 : 1;
3864 unsigned ODCONB2 : 1;
3865 unsigned ODCONB3 : 1;
3866 unsigned ODCONB4 : 1;
3867 unsigned ODCONB5 : 1;
3868 unsigned ODCONB6 : 1;
3869 unsigned ODCONB7 : 1;
3870 } __ODCONBbits_t;
3872 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
3874 #define _ODCONB0 0x01
3875 #define _ODCONB1 0x02
3876 #define _ODCONB2 0x04
3877 #define _ODCONB3 0x08
3878 #define _ODCONB4 0x10
3879 #define _ODCONB5 0x20
3880 #define _ODCONB6 0x40
3881 #define _ODCONB7 0x80
3883 //==============================================================================
3886 //==============================================================================
3887 // ODCONC Bits
3889 extern __at(0x028E) __sfr ODCONC;
3891 typedef struct
3893 unsigned ODCONC0 : 1;
3894 unsigned ODCONC1 : 1;
3895 unsigned ODCONC2 : 1;
3896 unsigned ODCONC3 : 1;
3897 unsigned ODCONC4 : 1;
3898 unsigned ODCONC5 : 1;
3899 unsigned ODCONC6 : 1;
3900 unsigned ODCONC7 : 1;
3901 } __ODCONCbits_t;
3903 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
3905 #define _ODCONC0 0x01
3906 #define _ODCONC1 0x02
3907 #define _ODCONC2 0x04
3908 #define _ODCONC3 0x08
3909 #define _ODCONC4 0x10
3910 #define _ODCONC5 0x20
3911 #define _ODCONC6 0x40
3912 #define _ODCONC7 0x80
3914 //==============================================================================
3917 //==============================================================================
3918 // ODCOND Bits
3920 extern __at(0x028F) __sfr ODCOND;
3922 typedef struct
3924 unsigned ODCOND0 : 1;
3925 unsigned ODCOND1 : 1;
3926 unsigned ODCOND2 : 1;
3927 unsigned ODCOND3 : 1;
3928 unsigned ODCOND4 : 1;
3929 unsigned ODCOND5 : 1;
3930 unsigned ODCOND6 : 1;
3931 unsigned ODCOND7 : 1;
3932 } __ODCONDbits_t;
3934 extern __at(0x028F) volatile __ODCONDbits_t ODCONDbits;
3936 #define _ODCOND0 0x01
3937 #define _ODCOND1 0x02
3938 #define _ODCOND2 0x04
3939 #define _ODCOND3 0x08
3940 #define _ODCOND4 0x10
3941 #define _ODCOND5 0x20
3942 #define _ODCOND6 0x40
3943 #define _ODCOND7 0x80
3945 //==============================================================================
3948 //==============================================================================
3949 // ODCONE Bits
3951 extern __at(0x0290) __sfr ODCONE;
3953 typedef union
3955 struct
3957 unsigned ODCONE0 : 1;
3958 unsigned ODCONE1 : 1;
3959 unsigned ODCONE2 : 1;
3960 unsigned : 1;
3961 unsigned : 1;
3962 unsigned : 1;
3963 unsigned : 1;
3964 unsigned : 1;
3967 struct
3969 unsigned ODCONE : 3;
3970 unsigned : 5;
3972 } __ODCONEbits_t;
3974 extern __at(0x0290) volatile __ODCONEbits_t ODCONEbits;
3976 #define _ODCONE0 0x01
3977 #define _ODCONE1 0x02
3978 #define _ODCONE2 0x04
3980 //==============================================================================
3982 extern __at(0x0291) __sfr CCPR1;
3983 extern __at(0x0291) __sfr CCPR1L;
3984 extern __at(0x0292) __sfr CCPR1H;
3986 //==============================================================================
3987 // CCP1CON Bits
3989 extern __at(0x0293) __sfr CCP1CON;
3991 typedef union
3993 struct
3995 unsigned CCP1M0 : 1;
3996 unsigned CCP1M1 : 1;
3997 unsigned CCP1M2 : 1;
3998 unsigned CCP1M3 : 1;
3999 unsigned DC1B0 : 1;
4000 unsigned DC1B1 : 1;
4001 unsigned : 1;
4002 unsigned : 1;
4005 struct
4007 unsigned CCP1M : 4;
4008 unsigned : 4;
4011 struct
4013 unsigned : 4;
4014 unsigned DC1B : 2;
4015 unsigned : 2;
4017 } __CCP1CONbits_t;
4019 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
4021 #define _CCP1M0 0x01
4022 #define _CCP1M1 0x02
4023 #define _CCP1M2 0x04
4024 #define _CCP1M3 0x08
4025 #define _DC1B0 0x10
4026 #define _DC1B1 0x20
4028 //==============================================================================
4030 extern __at(0x0298) __sfr CCPR2;
4031 extern __at(0x0298) __sfr CCPR2L;
4032 extern __at(0x0299) __sfr CCPR2H;
4034 //==============================================================================
4035 // CCP2CON Bits
4037 extern __at(0x029A) __sfr CCP2CON;
4039 typedef union
4041 struct
4043 unsigned CCP2M0 : 1;
4044 unsigned CCP2M1 : 1;
4045 unsigned CCP2M2 : 1;
4046 unsigned CCP2M3 : 1;
4047 unsigned DC2B0 : 1;
4048 unsigned DC2B1 : 1;
4049 unsigned : 1;
4050 unsigned : 1;
4053 struct
4055 unsigned CCP2M : 4;
4056 unsigned : 4;
4059 struct
4061 unsigned : 4;
4062 unsigned DC2B : 2;
4063 unsigned : 2;
4065 } __CCP2CONbits_t;
4067 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
4069 #define _CCP2M0 0x01
4070 #define _CCP2M1 0x02
4071 #define _CCP2M2 0x04
4072 #define _CCP2M3 0x08
4073 #define _DC2B0 0x10
4074 #define _DC2B1 0x20
4076 //==============================================================================
4079 //==============================================================================
4080 // SLRCONA Bits
4082 extern __at(0x030C) __sfr SLRCONA;
4084 typedef struct
4086 unsigned SLRCONA0 : 1;
4087 unsigned SLRCONA1 : 1;
4088 unsigned SLRCONA2 : 1;
4089 unsigned SLRCONA3 : 1;
4090 unsigned SLRCONA4 : 1;
4091 unsigned SLRCONA5 : 1;
4092 unsigned SLRCONA6 : 1;
4093 unsigned SLRCONA7 : 1;
4094 } __SLRCONAbits_t;
4096 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
4098 #define _SLRCONA0 0x01
4099 #define _SLRCONA1 0x02
4100 #define _SLRCONA2 0x04
4101 #define _SLRCONA3 0x08
4102 #define _SLRCONA4 0x10
4103 #define _SLRCONA5 0x20
4104 #define _SLRCONA6 0x40
4105 #define _SLRCONA7 0x80
4107 //==============================================================================
4110 //==============================================================================
4111 // SLRCONB Bits
4113 extern __at(0x030D) __sfr SLRCONB;
4115 typedef struct
4117 unsigned SLRCONB0 : 1;
4118 unsigned SLRCONB1 : 1;
4119 unsigned SLRCONB2 : 1;
4120 unsigned SLRCONB3 : 1;
4121 unsigned SLRCONB4 : 1;
4122 unsigned SLRCONB5 : 1;
4123 unsigned SLRCONB6 : 1;
4124 unsigned SLRCONB7 : 1;
4125 } __SLRCONBbits_t;
4127 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
4129 #define _SLRCONB0 0x01
4130 #define _SLRCONB1 0x02
4131 #define _SLRCONB2 0x04
4132 #define _SLRCONB3 0x08
4133 #define _SLRCONB4 0x10
4134 #define _SLRCONB5 0x20
4135 #define _SLRCONB6 0x40
4136 #define _SLRCONB7 0x80
4138 //==============================================================================
4141 //==============================================================================
4142 // SLRCONC Bits
4144 extern __at(0x030E) __sfr SLRCONC;
4146 typedef struct
4148 unsigned SLRCONC0 : 1;
4149 unsigned SLRCONC1 : 1;
4150 unsigned SLRCONC2 : 1;
4151 unsigned SLRCONC3 : 1;
4152 unsigned SLRCONC4 : 1;
4153 unsigned SLRCONC5 : 1;
4154 unsigned SLRCONC6 : 1;
4155 unsigned SLRCONC7 : 1;
4156 } __SLRCONCbits_t;
4158 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
4160 #define _SLRCONC0 0x01
4161 #define _SLRCONC1 0x02
4162 #define _SLRCONC2 0x04
4163 #define _SLRCONC3 0x08
4164 #define _SLRCONC4 0x10
4165 #define _SLRCONC5 0x20
4166 #define _SLRCONC6 0x40
4167 #define _SLRCONC7 0x80
4169 //==============================================================================
4172 //==============================================================================
4173 // SLRCOND Bits
4175 extern __at(0x030F) __sfr SLRCOND;
4177 typedef struct
4179 unsigned SLRCOND0 : 1;
4180 unsigned SLRCOND1 : 1;
4181 unsigned SLRCOND2 : 1;
4182 unsigned SLRCOND3 : 1;
4183 unsigned SLRCOND4 : 1;
4184 unsigned SLRCOND5 : 1;
4185 unsigned SLRCOND6 : 1;
4186 unsigned SLRCOND7 : 1;
4187 } __SLRCONDbits_t;
4189 extern __at(0x030F) volatile __SLRCONDbits_t SLRCONDbits;
4191 #define _SLRCOND0 0x01
4192 #define _SLRCOND1 0x02
4193 #define _SLRCOND2 0x04
4194 #define _SLRCOND3 0x08
4195 #define _SLRCOND4 0x10
4196 #define _SLRCOND5 0x20
4197 #define _SLRCOND6 0x40
4198 #define _SLRCOND7 0x80
4200 //==============================================================================
4203 //==============================================================================
4204 // SLRCONE Bits
4206 extern __at(0x0310) __sfr SLRCONE;
4208 typedef union
4210 struct
4212 unsigned SLRCONE0 : 1;
4213 unsigned SLRCONE1 : 1;
4214 unsigned SLRCONE2 : 1;
4215 unsigned : 1;
4216 unsigned : 1;
4217 unsigned : 1;
4218 unsigned : 1;
4219 unsigned : 1;
4222 struct
4224 unsigned SLRCONE : 3;
4225 unsigned : 5;
4227 } __SLRCONEbits_t;
4229 extern __at(0x0310) volatile __SLRCONEbits_t SLRCONEbits;
4231 #define _SLRCONE0 0x01
4232 #define _SLRCONE1 0x02
4233 #define _SLRCONE2 0x04
4235 //==============================================================================
4237 extern __at(0x0311) __sfr CCPR3;
4238 extern __at(0x0311) __sfr CCPR3L;
4239 extern __at(0x0312) __sfr CCPR3H;
4241 //==============================================================================
4242 // CCP3CON Bits
4244 extern __at(0x0313) __sfr CCP3CON;
4246 typedef union
4248 struct
4250 unsigned CCP3M0 : 1;
4251 unsigned CCP3M1 : 1;
4252 unsigned CCP3M2 : 1;
4253 unsigned CCP3M3 : 1;
4254 unsigned DC3B0 : 1;
4255 unsigned DC3B1 : 1;
4256 unsigned : 1;
4257 unsigned : 1;
4260 struct
4262 unsigned CCP3M : 4;
4263 unsigned : 4;
4266 struct
4268 unsigned : 4;
4269 unsigned DC3B : 2;
4270 unsigned : 2;
4272 } __CCP3CONbits_t;
4274 extern __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits;
4276 #define _CCP3M0 0x01
4277 #define _CCP3M1 0x02
4278 #define _CCP3M2 0x04
4279 #define _CCP3M3 0x08
4280 #define _DC3B0 0x10
4281 #define _DC3B1 0x20
4283 //==============================================================================
4286 //==============================================================================
4287 // INLVLA Bits
4289 extern __at(0x038C) __sfr INLVLA;
4291 typedef struct
4293 unsigned INLVLA0 : 1;
4294 unsigned INLVLA1 : 1;
4295 unsigned INLVLA2 : 1;
4296 unsigned INLVLA3 : 1;
4297 unsigned INLVLA4 : 1;
4298 unsigned INLVLA5 : 1;
4299 unsigned INLVLA6 : 1;
4300 unsigned INLVLA7 : 1;
4301 } __INLVLAbits_t;
4303 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
4305 #define _INLVLA0 0x01
4306 #define _INLVLA1 0x02
4307 #define _INLVLA2 0x04
4308 #define _INLVLA3 0x08
4309 #define _INLVLA4 0x10
4310 #define _INLVLA5 0x20
4311 #define _INLVLA6 0x40
4312 #define _INLVLA7 0x80
4314 //==============================================================================
4317 //==============================================================================
4318 // INLVLB Bits
4320 extern __at(0x038D) __sfr INLVLB;
4322 typedef struct
4324 unsigned INLVLB0 : 1;
4325 unsigned INLVLB1 : 1;
4326 unsigned INLVLB2 : 1;
4327 unsigned INLVLB3 : 1;
4328 unsigned INLVLB4 : 1;
4329 unsigned INLVLB5 : 1;
4330 unsigned INLVLB6 : 1;
4331 unsigned INLVLB7 : 1;
4332 } __INLVLBbits_t;
4334 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
4336 #define _INLVLB0 0x01
4337 #define _INLVLB1 0x02
4338 #define _INLVLB2 0x04
4339 #define _INLVLB3 0x08
4340 #define _INLVLB4 0x10
4341 #define _INLVLB5 0x20
4342 #define _INLVLB6 0x40
4343 #define _INLVLB7 0x80
4345 //==============================================================================
4348 //==============================================================================
4349 // INLVLC Bits
4351 extern __at(0x038E) __sfr INLVLC;
4353 typedef struct
4355 unsigned INLVLC0 : 1;
4356 unsigned INLVLC1 : 1;
4357 unsigned INLVLC2 : 1;
4358 unsigned INLVLC3 : 1;
4359 unsigned INLVLC4 : 1;
4360 unsigned INLVLC5 : 1;
4361 unsigned INLVLC6 : 1;
4362 unsigned INLVLC7 : 1;
4363 } __INLVLCbits_t;
4365 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
4367 #define _INLVLC0 0x01
4368 #define _INLVLC1 0x02
4369 #define _INLVLC2 0x04
4370 #define _INLVLC3 0x08
4371 #define _INLVLC4 0x10
4372 #define _INLVLC5 0x20
4373 #define _INLVLC6 0x40
4374 #define _INLVLC7 0x80
4376 //==============================================================================
4379 //==============================================================================
4380 // INLVLD Bits
4382 extern __at(0x038F) __sfr INLVLD;
4384 typedef struct
4386 unsigned INLVLD0 : 1;
4387 unsigned INLVLD1 : 1;
4388 unsigned INLVLD2 : 1;
4389 unsigned INLVLD3 : 1;
4390 unsigned INLVLD4 : 1;
4391 unsigned INLVLD5 : 1;
4392 unsigned INLVLD6 : 1;
4393 unsigned INLVLD7 : 1;
4394 } __INLVLDbits_t;
4396 extern __at(0x038F) volatile __INLVLDbits_t INLVLDbits;
4398 #define _INLVLD0 0x01
4399 #define _INLVLD1 0x02
4400 #define _INLVLD2 0x04
4401 #define _INLVLD3 0x08
4402 #define _INLVLD4 0x10
4403 #define _INLVLD5 0x20
4404 #define _INLVLD6 0x40
4405 #define _INLVLD7 0x80
4407 //==============================================================================
4410 //==============================================================================
4411 // INLVLE Bits
4413 extern __at(0x0390) __sfr INLVLE;
4415 typedef union
4417 struct
4419 unsigned INLVLE0 : 1;
4420 unsigned INLVLE1 : 1;
4421 unsigned INLVLE2 : 1;
4422 unsigned INLVLE3 : 1;
4423 unsigned : 1;
4424 unsigned : 1;
4425 unsigned : 1;
4426 unsigned : 1;
4429 struct
4431 unsigned INLVLE : 4;
4432 unsigned : 4;
4434 } __INLVLEbits_t;
4436 extern __at(0x0390) volatile __INLVLEbits_t INLVLEbits;
4438 #define _INLVLE0 0x01
4439 #define _INLVLE1 0x02
4440 #define _INLVLE2 0x04
4441 #define _INLVLE3 0x08
4443 //==============================================================================
4446 //==============================================================================
4447 // IOCAP Bits
4449 extern __at(0x0391) __sfr IOCAP;
4451 typedef struct
4453 unsigned IOCAP0 : 1;
4454 unsigned IOCAP1 : 1;
4455 unsigned IOCAP2 : 1;
4456 unsigned IOCAP3 : 1;
4457 unsigned IOCAP4 : 1;
4458 unsigned IOCAP5 : 1;
4459 unsigned IOCAP6 : 1;
4460 unsigned IOCAP7 : 1;
4461 } __IOCAPbits_t;
4463 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
4465 #define _IOCAP0 0x01
4466 #define _IOCAP1 0x02
4467 #define _IOCAP2 0x04
4468 #define _IOCAP3 0x08
4469 #define _IOCAP4 0x10
4470 #define _IOCAP5 0x20
4471 #define _IOCAP6 0x40
4472 #define _IOCAP7 0x80
4474 //==============================================================================
4477 //==============================================================================
4478 // IOCAN Bits
4480 extern __at(0x0392) __sfr IOCAN;
4482 typedef struct
4484 unsigned IOCAN0 : 1;
4485 unsigned IOCAN1 : 1;
4486 unsigned IOCAN2 : 1;
4487 unsigned IOCAN3 : 1;
4488 unsigned IOCAN4 : 1;
4489 unsigned IOCAN5 : 1;
4490 unsigned IOCAN6 : 1;
4491 unsigned IOCAN7 : 1;
4492 } __IOCANbits_t;
4494 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
4496 #define _IOCAN0 0x01
4497 #define _IOCAN1 0x02
4498 #define _IOCAN2 0x04
4499 #define _IOCAN3 0x08
4500 #define _IOCAN4 0x10
4501 #define _IOCAN5 0x20
4502 #define _IOCAN6 0x40
4503 #define _IOCAN7 0x80
4505 //==============================================================================
4508 //==============================================================================
4509 // IOCAF Bits
4511 extern __at(0x0393) __sfr IOCAF;
4513 typedef struct
4515 unsigned IOCAF0 : 1;
4516 unsigned IOCAF1 : 1;
4517 unsigned IOCAF2 : 1;
4518 unsigned IOCAF3 : 1;
4519 unsigned IOCAF4 : 1;
4520 unsigned IOCAF5 : 1;
4521 unsigned IOCAF6 : 1;
4522 unsigned IOCAF7 : 1;
4523 } __IOCAFbits_t;
4525 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
4527 #define _IOCAF0 0x01
4528 #define _IOCAF1 0x02
4529 #define _IOCAF2 0x04
4530 #define _IOCAF3 0x08
4531 #define _IOCAF4 0x10
4532 #define _IOCAF5 0x20
4533 #define _IOCAF6 0x40
4534 #define _IOCAF7 0x80
4536 //==============================================================================
4539 //==============================================================================
4540 // IOCBP Bits
4542 extern __at(0x0394) __sfr IOCBP;
4544 typedef struct
4546 unsigned IOCBP0 : 1;
4547 unsigned IOCBP1 : 1;
4548 unsigned IOCBP2 : 1;
4549 unsigned IOCBP3 : 1;
4550 unsigned IOCBP4 : 1;
4551 unsigned IOCBP5 : 1;
4552 unsigned IOCBP6 : 1;
4553 unsigned IOCBP7 : 1;
4554 } __IOCBPbits_t;
4556 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
4558 #define _IOCBP0 0x01
4559 #define _IOCBP1 0x02
4560 #define _IOCBP2 0x04
4561 #define _IOCBP3 0x08
4562 #define _IOCBP4 0x10
4563 #define _IOCBP5 0x20
4564 #define _IOCBP6 0x40
4565 #define _IOCBP7 0x80
4567 //==============================================================================
4570 //==============================================================================
4571 // IOCBN Bits
4573 extern __at(0x0395) __sfr IOCBN;
4575 typedef struct
4577 unsigned IOCBN0 : 1;
4578 unsigned IOCBN1 : 1;
4579 unsigned IOCBN2 : 1;
4580 unsigned IOCBN3 : 1;
4581 unsigned IOCBN4 : 1;
4582 unsigned IOCBN5 : 1;
4583 unsigned IOCBN6 : 1;
4584 unsigned IOCBN7 : 1;
4585 } __IOCBNbits_t;
4587 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
4589 #define _IOCBN0 0x01
4590 #define _IOCBN1 0x02
4591 #define _IOCBN2 0x04
4592 #define _IOCBN3 0x08
4593 #define _IOCBN4 0x10
4594 #define _IOCBN5 0x20
4595 #define _IOCBN6 0x40
4596 #define _IOCBN7 0x80
4598 //==============================================================================
4601 //==============================================================================
4602 // IOCBF Bits
4604 extern __at(0x0396) __sfr IOCBF;
4606 typedef struct
4608 unsigned IOCBF0 : 1;
4609 unsigned IOCBF1 : 1;
4610 unsigned IOCBF2 : 1;
4611 unsigned IOCBF3 : 1;
4612 unsigned IOCBF4 : 1;
4613 unsigned IOCBF5 : 1;
4614 unsigned IOCBF6 : 1;
4615 unsigned IOCBF7 : 1;
4616 } __IOCBFbits_t;
4618 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
4620 #define _IOCBF0 0x01
4621 #define _IOCBF1 0x02
4622 #define _IOCBF2 0x04
4623 #define _IOCBF3 0x08
4624 #define _IOCBF4 0x10
4625 #define _IOCBF5 0x20
4626 #define _IOCBF6 0x40
4627 #define _IOCBF7 0x80
4629 //==============================================================================
4632 //==============================================================================
4633 // IOCCP Bits
4635 extern __at(0x0397) __sfr IOCCP;
4637 typedef struct
4639 unsigned IOCCP0 : 1;
4640 unsigned IOCCP1 : 1;
4641 unsigned IOCCP2 : 1;
4642 unsigned IOCCP3 : 1;
4643 unsigned IOCCP4 : 1;
4644 unsigned IOCCP5 : 1;
4645 unsigned IOCCP6 : 1;
4646 unsigned IOCCP7 : 1;
4647 } __IOCCPbits_t;
4649 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
4651 #define _IOCCP0 0x01
4652 #define _IOCCP1 0x02
4653 #define _IOCCP2 0x04
4654 #define _IOCCP3 0x08
4655 #define _IOCCP4 0x10
4656 #define _IOCCP5 0x20
4657 #define _IOCCP6 0x40
4658 #define _IOCCP7 0x80
4660 //==============================================================================
4663 //==============================================================================
4664 // IOCCN Bits
4666 extern __at(0x0398) __sfr IOCCN;
4668 typedef struct
4670 unsigned IOCCN0 : 1;
4671 unsigned IOCCN1 : 1;
4672 unsigned IOCCN2 : 1;
4673 unsigned IOCCN3 : 1;
4674 unsigned IOCCN4 : 1;
4675 unsigned IOCCN5 : 1;
4676 unsigned IOCCN6 : 1;
4677 unsigned IOCCN7 : 1;
4678 } __IOCCNbits_t;
4680 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
4682 #define _IOCCN0 0x01
4683 #define _IOCCN1 0x02
4684 #define _IOCCN2 0x04
4685 #define _IOCCN3 0x08
4686 #define _IOCCN4 0x10
4687 #define _IOCCN5 0x20
4688 #define _IOCCN6 0x40
4689 #define _IOCCN7 0x80
4691 //==============================================================================
4694 //==============================================================================
4695 // IOCCF Bits
4697 extern __at(0x0399) __sfr IOCCF;
4699 typedef struct
4701 unsigned IOCCF0 : 1;
4702 unsigned IOCCF1 : 1;
4703 unsigned IOCCF2 : 1;
4704 unsigned IOCCF3 : 1;
4705 unsigned IOCCF4 : 1;
4706 unsigned IOCCF5 : 1;
4707 unsigned IOCCF6 : 1;
4708 unsigned IOCCF7 : 1;
4709 } __IOCCFbits_t;
4711 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
4713 #define _IOCCF0 0x01
4714 #define _IOCCF1 0x02
4715 #define _IOCCF2 0x04
4716 #define _IOCCF3 0x08
4717 #define _IOCCF4 0x10
4718 #define _IOCCF5 0x20
4719 #define _IOCCF6 0x40
4720 #define _IOCCF7 0x80
4722 //==============================================================================
4725 //==============================================================================
4726 // IOCEP Bits
4728 extern __at(0x039D) __sfr IOCEP;
4730 typedef struct
4732 unsigned : 1;
4733 unsigned : 1;
4734 unsigned : 1;
4735 unsigned IOCEP3 : 1;
4736 unsigned : 1;
4737 unsigned : 1;
4738 unsigned : 1;
4739 unsigned : 1;
4740 } __IOCEPbits_t;
4742 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits;
4744 #define _IOCEP3 0x08
4746 //==============================================================================
4749 //==============================================================================
4750 // IOCEN Bits
4752 extern __at(0x039E) __sfr IOCEN;
4754 typedef struct
4756 unsigned : 1;
4757 unsigned : 1;
4758 unsigned : 1;
4759 unsigned IOCEN3 : 1;
4760 unsigned : 1;
4761 unsigned : 1;
4762 unsigned : 1;
4763 unsigned : 1;
4764 } __IOCENbits_t;
4766 extern __at(0x039E) volatile __IOCENbits_t IOCENbits;
4768 #define _IOCEN3 0x08
4770 //==============================================================================
4773 //==============================================================================
4774 // IOCEF Bits
4776 extern __at(0x039F) __sfr IOCEF;
4778 typedef struct
4780 unsigned : 1;
4781 unsigned : 1;
4782 unsigned : 1;
4783 unsigned IOCEF3 : 1;
4784 unsigned : 1;
4785 unsigned : 1;
4786 unsigned : 1;
4787 unsigned : 1;
4788 } __IOCEFbits_t;
4790 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits;
4792 #define _IOCEF3 0x08
4794 //==============================================================================
4797 //==============================================================================
4798 // OPA1CON Bits
4800 extern __at(0x0511) __sfr OPA1CON;
4802 typedef union
4804 struct
4806 unsigned OPA1PCH0 : 1;
4807 unsigned OPA1PCH1 : 1;
4808 unsigned OPA1PCH2 : 1;
4809 unsigned : 1;
4810 unsigned : 1;
4811 unsigned : 1;
4812 unsigned OPA1SP : 1;
4813 unsigned OPA1EN : 1;
4816 struct
4818 unsigned PCH0 : 1;
4819 unsigned PCH1 : 1;
4820 unsigned PCH2 : 1;
4821 unsigned : 1;
4822 unsigned : 1;
4823 unsigned : 1;
4824 unsigned SP : 1;
4825 unsigned EN : 1;
4828 struct
4830 unsigned OPA1PCH : 3;
4831 unsigned : 5;
4834 struct
4836 unsigned PCH : 3;
4837 unsigned : 5;
4839 } __OPA1CONbits_t;
4841 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
4843 #define _OPA1PCH0 0x01
4844 #define _PCH0 0x01
4845 #define _OPA1PCH1 0x02
4846 #define _PCH1 0x02
4847 #define _OPA1PCH2 0x04
4848 #define _PCH2 0x04
4849 #define _OPA1SP 0x40
4850 #define _SP 0x40
4851 #define _OPA1EN 0x80
4852 #define _EN 0x80
4854 //==============================================================================
4857 //==============================================================================
4858 // OPA2CON Bits
4860 extern __at(0x0513) __sfr OPA2CON;
4862 typedef union
4864 struct
4866 unsigned OPA2PCH0 : 1;
4867 unsigned OPA2PCH1 : 1;
4868 unsigned OPA2PCH2 : 1;
4869 unsigned : 1;
4870 unsigned : 1;
4871 unsigned : 1;
4872 unsigned OPA2SP : 1;
4873 unsigned OPA2EN : 1;
4876 struct
4878 unsigned PCH0 : 1;
4879 unsigned PCH1 : 1;
4880 unsigned PCH2 : 1;
4881 unsigned : 1;
4882 unsigned : 1;
4883 unsigned : 1;
4884 unsigned SP : 1;
4885 unsigned EN : 1;
4888 struct
4890 unsigned OPA2PCH : 3;
4891 unsigned : 5;
4894 struct
4896 unsigned PCH : 3;
4897 unsigned : 5;
4899 } __OPA2CONbits_t;
4901 extern __at(0x0513) volatile __OPA2CONbits_t OPA2CONbits;
4903 #define _OPA2CON_OPA2PCH0 0x01
4904 #define _OPA2CON_PCH0 0x01
4905 #define _OPA2CON_OPA2PCH1 0x02
4906 #define _OPA2CON_PCH1 0x02
4907 #define _OPA2CON_OPA2PCH2 0x04
4908 #define _OPA2CON_PCH2 0x04
4909 #define _OPA2CON_OPA2SP 0x40
4910 #define _OPA2CON_SP 0x40
4911 #define _OPA2CON_OPA2EN 0x80
4912 #define _OPA2CON_EN 0x80
4914 //==============================================================================
4917 //==============================================================================
4918 // OPA3CON Bits
4920 extern __at(0x0515) __sfr OPA3CON;
4922 typedef union
4924 struct
4926 unsigned OPA3PCH0 : 1;
4927 unsigned OPA3PCH1 : 1;
4928 unsigned OPA3PCH2 : 1;
4929 unsigned : 1;
4930 unsigned : 1;
4931 unsigned : 1;
4932 unsigned OPA3SP : 1;
4933 unsigned OPA3EN : 1;
4936 struct
4938 unsigned PCH0 : 1;
4939 unsigned PCH1 : 1;
4940 unsigned PCH2 : 1;
4941 unsigned : 1;
4942 unsigned : 1;
4943 unsigned : 1;
4944 unsigned SP : 1;
4945 unsigned EN : 1;
4948 struct
4950 unsigned OPA3PCH : 3;
4951 unsigned : 5;
4954 struct
4956 unsigned PCH : 3;
4957 unsigned : 5;
4959 } __OPA3CONbits_t;
4961 extern __at(0x0515) volatile __OPA3CONbits_t OPA3CONbits;
4963 #define _OPA3CON_OPA3PCH0 0x01
4964 #define _OPA3CON_PCH0 0x01
4965 #define _OPA3CON_OPA3PCH1 0x02
4966 #define _OPA3CON_PCH1 0x02
4967 #define _OPA3CON_OPA3PCH2 0x04
4968 #define _OPA3CON_PCH2 0x04
4969 #define _OPA3CON_OPA3SP 0x40
4970 #define _OPA3CON_SP 0x40
4971 #define _OPA3CON_OPA3EN 0x80
4972 #define _OPA3CON_EN 0x80
4974 //==============================================================================
4977 //==============================================================================
4978 // CLKRCON Bits
4980 extern __at(0x051A) __sfr CLKRCON;
4982 typedef union
4984 struct
4986 unsigned CLKRDIV0 : 1;
4987 unsigned CLKRDIV1 : 1;
4988 unsigned CLKRDIV2 : 1;
4989 unsigned CLKRDC0 : 1;
4990 unsigned CLKRDC1 : 1;
4991 unsigned CLKRSLR : 1;
4992 unsigned CLKROE : 1;
4993 unsigned CLKREN : 1;
4996 struct
4998 unsigned CLKRDIV : 3;
4999 unsigned : 5;
5002 struct
5004 unsigned : 3;
5005 unsigned CLKRDC : 2;
5006 unsigned : 3;
5008 } __CLKRCONbits_t;
5010 extern __at(0x051A) volatile __CLKRCONbits_t CLKRCONbits;
5012 #define _CLKRDIV0 0x01
5013 #define _CLKRDIV1 0x02
5014 #define _CLKRDIV2 0x04
5015 #define _CLKRDC0 0x08
5016 #define _CLKRDC1 0x10
5017 #define _CLKRSLR 0x20
5018 #define _CLKROE 0x40
5019 #define _CLKREN 0x80
5021 //==============================================================================
5024 //==============================================================================
5025 // DAC2CON0 Bits
5027 extern __at(0x0591) __sfr DAC2CON0;
5029 typedef struct
5031 unsigned : 1;
5032 unsigned : 1;
5033 unsigned : 1;
5034 unsigned : 1;
5035 unsigned DAC2OE2 : 1;
5036 unsigned DAC2OE1 : 1;
5037 unsigned : 1;
5038 unsigned DAC2EN : 1;
5039 } __DAC2CON0bits_t;
5041 extern __at(0x0591) volatile __DAC2CON0bits_t DAC2CON0bits;
5043 #define _DAC2OE2 0x10
5044 #define _DAC2OE1 0x20
5045 #define _DAC2EN 0x80
5047 //==============================================================================
5049 extern __at(0x0592) __sfr DAC2CON1;
5050 extern __at(0x0592) __sfr DAC2REF;
5052 //==============================================================================
5053 // DAC3CON0 Bits
5055 extern __at(0x0593) __sfr DAC3CON0;
5057 typedef struct
5059 unsigned : 1;
5060 unsigned : 1;
5061 unsigned : 1;
5062 unsigned : 1;
5063 unsigned DAC3OE2 : 1;
5064 unsigned DAC3OE1 : 1;
5065 unsigned : 1;
5066 unsigned DAC3EN : 1;
5067 } __DAC3CON0bits_t;
5069 extern __at(0x0593) volatile __DAC3CON0bits_t DAC3CON0bits;
5071 #define _DAC3OE2 0x10
5072 #define _DAC3OE1 0x20
5073 #define _DAC3EN 0x80
5075 //==============================================================================
5077 extern __at(0x0594) __sfr DAC3CON1;
5078 extern __at(0x0594) __sfr DAC3REF;
5080 //==============================================================================
5081 // DAC4CON0 Bits
5083 extern __at(0x0595) __sfr DAC4CON0;
5085 typedef struct
5087 unsigned : 1;
5088 unsigned : 1;
5089 unsigned : 1;
5090 unsigned : 1;
5091 unsigned DAC4OE2 : 1;
5092 unsigned DAC4OE1 : 1;
5093 unsigned : 1;
5094 unsigned DAC4EN : 1;
5095 } __DAC4CON0bits_t;
5097 extern __at(0x0595) volatile __DAC4CON0bits_t DAC4CON0bits;
5099 #define _DAC4OE2 0x10
5100 #define _DAC4OE1 0x20
5101 #define _DAC4EN 0x80
5103 //==============================================================================
5105 extern __at(0x0596) __sfr DAC4CON1;
5106 extern __at(0x0596) __sfr DAC4REF;
5108 //==============================================================================
5109 // PSMC1CON Bits
5111 extern __at(0x0E91) __sfr PSMC1CON;
5113 typedef union
5115 struct
5117 unsigned P1MODE0 : 1;
5118 unsigned P1MODE1 : 1;
5119 unsigned P1MODE2 : 1;
5120 unsigned P1MODE3 : 1;
5121 unsigned P1DBRE : 1;
5122 unsigned P1DBFE : 1;
5123 unsigned PSMC1LD : 1;
5124 unsigned PSMC1EN : 1;
5127 struct
5129 unsigned P1MODE : 4;
5130 unsigned : 4;
5132 } __PSMC1CONbits_t;
5134 extern __at(0x0E91) volatile __PSMC1CONbits_t PSMC1CONbits;
5136 #define _P1MODE0 0x01
5137 #define _P1MODE1 0x02
5138 #define _P1MODE2 0x04
5139 #define _P1MODE3 0x08
5140 #define _P1DBRE 0x10
5141 #define _P1DBFE 0x20
5142 #define _PSMC1LD 0x40
5143 #define _PSMC1EN 0x80
5145 //==============================================================================
5148 //==============================================================================
5149 // PSMC1MDL Bits
5151 extern __at(0x0E92) __sfr PSMC1MDL;
5153 typedef union
5155 struct
5157 unsigned P1MSRC0 : 1;
5158 unsigned P1MSRC1 : 1;
5159 unsigned P1MSRC2 : 1;
5160 unsigned P1MSRC3 : 1;
5161 unsigned : 1;
5162 unsigned P1MDLBIT : 1;
5163 unsigned P1MDLPOL : 1;
5164 unsigned P1MDLEN : 1;
5167 struct
5169 unsigned P1MSRC : 4;
5170 unsigned : 4;
5172 } __PSMC1MDLbits_t;
5174 extern __at(0x0E92) volatile __PSMC1MDLbits_t PSMC1MDLbits;
5176 #define _P1MSRC0 0x01
5177 #define _P1MSRC1 0x02
5178 #define _P1MSRC2 0x04
5179 #define _P1MSRC3 0x08
5180 #define _P1MDLBIT 0x20
5181 #define _P1MDLPOL 0x40
5182 #define _P1MDLEN 0x80
5184 //==============================================================================
5187 //==============================================================================
5188 // PSMC1SYNC Bits
5190 extern __at(0x0E93) __sfr PSMC1SYNC;
5192 typedef union
5194 struct
5196 unsigned P1SYNC0 : 1;
5197 unsigned P1SYNC1 : 1;
5198 unsigned P1SYNC2 : 1;
5199 unsigned : 1;
5200 unsigned : 1;
5201 unsigned P1DCPOL : 1;
5202 unsigned P1PRPOL : 1;
5203 unsigned P1POFST : 1;
5206 struct
5208 unsigned P1SYNC : 3;
5209 unsigned : 5;
5211 } __PSMC1SYNCbits_t;
5213 extern __at(0x0E93) volatile __PSMC1SYNCbits_t PSMC1SYNCbits;
5215 #define _P1SYNC0 0x01
5216 #define _P1SYNC1 0x02
5217 #define _P1SYNC2 0x04
5218 #define _P1DCPOL 0x20
5219 #define _P1PRPOL 0x40
5220 #define _P1POFST 0x80
5222 //==============================================================================
5225 //==============================================================================
5226 // PSMC1CLK Bits
5228 extern __at(0x0E94) __sfr PSMC1CLK;
5230 typedef union
5232 struct
5234 unsigned P1CSRC0 : 1;
5235 unsigned P1CSRC1 : 1;
5236 unsigned : 1;
5237 unsigned : 1;
5238 unsigned P1CPRE0 : 1;
5239 unsigned P1CPRE1 : 1;
5240 unsigned : 1;
5241 unsigned : 1;
5244 struct
5246 unsigned P1CSRC : 2;
5247 unsigned : 6;
5250 struct
5252 unsigned : 4;
5253 unsigned P1CPRE : 2;
5254 unsigned : 2;
5256 } __PSMC1CLKbits_t;
5258 extern __at(0x0E94) volatile __PSMC1CLKbits_t PSMC1CLKbits;
5260 #define _P1CSRC0 0x01
5261 #define _P1CSRC1 0x02
5262 #define _P1CPRE0 0x10
5263 #define _P1CPRE1 0x20
5265 //==============================================================================
5268 //==============================================================================
5269 // PSMC1OEN Bits
5271 extern __at(0x0E95) __sfr PSMC1OEN;
5273 typedef struct
5275 unsigned P1OEA : 1;
5276 unsigned P1OEB : 1;
5277 unsigned P1OEC : 1;
5278 unsigned P1OED : 1;
5279 unsigned P1OEE : 1;
5280 unsigned P1OEF : 1;
5281 unsigned : 1;
5282 unsigned : 1;
5283 } __PSMC1OENbits_t;
5285 extern __at(0x0E95) volatile __PSMC1OENbits_t PSMC1OENbits;
5287 #define _P1OEA 0x01
5288 #define _P1OEB 0x02
5289 #define _P1OEC 0x04
5290 #define _P1OED 0x08
5291 #define _P1OEE 0x10
5292 #define _P1OEF 0x20
5294 //==============================================================================
5297 //==============================================================================
5298 // PSMC1POL Bits
5300 extern __at(0x0E96) __sfr PSMC1POL;
5302 typedef struct
5304 unsigned P1POLA : 1;
5305 unsigned P1POLB : 1;
5306 unsigned P1POLC : 1;
5307 unsigned P1POLD : 1;
5308 unsigned P1POLE : 1;
5309 unsigned P1POLF : 1;
5310 unsigned P1INPOL : 1;
5311 unsigned : 1;
5312 } __PSMC1POLbits_t;
5314 extern __at(0x0E96) volatile __PSMC1POLbits_t PSMC1POLbits;
5316 #define _P1POLA 0x01
5317 #define _P1POLB 0x02
5318 #define _P1POLC 0x04
5319 #define _P1POLD 0x08
5320 #define _P1POLE 0x10
5321 #define _P1POLF 0x20
5322 #define _P1INPOL 0x40
5324 //==============================================================================
5327 //==============================================================================
5328 // PSMC1BLNK Bits
5330 extern __at(0x0E97) __sfr PSMC1BLNK;
5332 typedef union
5334 struct
5336 unsigned P1REBM0 : 1;
5337 unsigned P1REBM1 : 1;
5338 unsigned : 1;
5339 unsigned : 1;
5340 unsigned P1FEBM0 : 1;
5341 unsigned P1FEBM1 : 1;
5342 unsigned : 1;
5343 unsigned : 1;
5346 struct
5348 unsigned P1REBM : 2;
5349 unsigned : 6;
5352 struct
5354 unsigned : 4;
5355 unsigned P1FEBM : 2;
5356 unsigned : 2;
5358 } __PSMC1BLNKbits_t;
5360 extern __at(0x0E97) volatile __PSMC1BLNKbits_t PSMC1BLNKbits;
5362 #define _P1REBM0 0x01
5363 #define _P1REBM1 0x02
5364 #define _P1FEBM0 0x10
5365 #define _P1FEBM1 0x20
5367 //==============================================================================
5370 //==============================================================================
5371 // PSMC1REBS Bits
5373 extern __at(0x0E98) __sfr PSMC1REBS;
5375 typedef struct
5377 unsigned : 1;
5378 unsigned P1REBSC1 : 1;
5379 unsigned P1REBSC2 : 1;
5380 unsigned P1REBSC3 : 1;
5381 unsigned P1REBSC4 : 1;
5382 unsigned : 1;
5383 unsigned : 1;
5384 unsigned P1REBSIN : 1;
5385 } __PSMC1REBSbits_t;
5387 extern __at(0x0E98) volatile __PSMC1REBSbits_t PSMC1REBSbits;
5389 #define _P1REBSC1 0x02
5390 #define _P1REBSC2 0x04
5391 #define _P1REBSC3 0x08
5392 #define _P1REBSC4 0x10
5393 #define _P1REBSIN 0x80
5395 //==============================================================================
5398 //==============================================================================
5399 // PSMC1FEBS Bits
5401 extern __at(0x0E99) __sfr PSMC1FEBS;
5403 typedef struct
5405 unsigned : 1;
5406 unsigned P1FEBSC1 : 1;
5407 unsigned P1FEBSC2 : 1;
5408 unsigned P1FEBSC3 : 1;
5409 unsigned P1FEBSC4 : 1;
5410 unsigned : 1;
5411 unsigned : 1;
5412 unsigned P1FEBSIN : 1;
5413 } __PSMC1FEBSbits_t;
5415 extern __at(0x0E99) volatile __PSMC1FEBSbits_t PSMC1FEBSbits;
5417 #define _P1FEBSC1 0x02
5418 #define _P1FEBSC2 0x04
5419 #define _P1FEBSC3 0x08
5420 #define _P1FEBSC4 0x10
5421 #define _P1FEBSIN 0x80
5423 //==============================================================================
5426 //==============================================================================
5427 // PSMC1PHS Bits
5429 extern __at(0x0E9A) __sfr PSMC1PHS;
5431 typedef struct
5433 unsigned P1PHST : 1;
5434 unsigned P1PHSC1 : 1;
5435 unsigned P1PHSC2 : 1;
5436 unsigned P1PHSC3 : 1;
5437 unsigned P1PHSC4 : 1;
5438 unsigned : 1;
5439 unsigned : 1;
5440 unsigned P1PHSIN : 1;
5441 } __PSMC1PHSbits_t;
5443 extern __at(0x0E9A) volatile __PSMC1PHSbits_t PSMC1PHSbits;
5445 #define _P1PHST 0x01
5446 #define _P1PHSC1 0x02
5447 #define _P1PHSC2 0x04
5448 #define _P1PHSC3 0x08
5449 #define _P1PHSC4 0x10
5450 #define _P1PHSIN 0x80
5452 //==============================================================================
5455 //==============================================================================
5456 // PSMC1DCS Bits
5458 extern __at(0x0E9B) __sfr PSMC1DCS;
5460 typedef struct
5462 unsigned P1DCST : 1;
5463 unsigned P1DCSC1 : 1;
5464 unsigned P1DCSC2 : 1;
5465 unsigned P1DCSC3 : 1;
5466 unsigned P1DCSC4 : 1;
5467 unsigned : 1;
5468 unsigned : 1;
5469 unsigned P1DCSIN : 1;
5470 } __PSMC1DCSbits_t;
5472 extern __at(0x0E9B) volatile __PSMC1DCSbits_t PSMC1DCSbits;
5474 #define _P1DCST 0x01
5475 #define _P1DCSC1 0x02
5476 #define _P1DCSC2 0x04
5477 #define _P1DCSC3 0x08
5478 #define _P1DCSC4 0x10
5479 #define _P1DCSIN 0x80
5481 //==============================================================================
5484 //==============================================================================
5485 // PSMC1PRS Bits
5487 extern __at(0x0E9C) __sfr PSMC1PRS;
5489 typedef struct
5491 unsigned P1PRST : 1;
5492 unsigned P1PRSC1 : 1;
5493 unsigned P1PRSC2 : 1;
5494 unsigned P1PRSC3 : 1;
5495 unsigned P1PRSC4 : 1;
5496 unsigned : 1;
5497 unsigned : 1;
5498 unsigned P1PRSIN : 1;
5499 } __PSMC1PRSbits_t;
5501 extern __at(0x0E9C) volatile __PSMC1PRSbits_t PSMC1PRSbits;
5503 #define _P1PRST 0x01
5504 #define _P1PRSC1 0x02
5505 #define _P1PRSC2 0x04
5506 #define _P1PRSC3 0x08
5507 #define _P1PRSC4 0x10
5508 #define _P1PRSIN 0x80
5510 //==============================================================================
5513 //==============================================================================
5514 // PSMC1ASDC Bits
5516 extern __at(0x0E9D) __sfr PSMC1ASDC;
5518 typedef struct
5520 unsigned P1ASDOV : 1;
5521 unsigned : 1;
5522 unsigned : 1;
5523 unsigned : 1;
5524 unsigned : 1;
5525 unsigned P1ARSEN : 1;
5526 unsigned P1ASDEN : 1;
5527 unsigned P1ASE : 1;
5528 } __PSMC1ASDCbits_t;
5530 extern __at(0x0E9D) volatile __PSMC1ASDCbits_t PSMC1ASDCbits;
5532 #define _P1ASDOV 0x01
5533 #define _P1ARSEN 0x20
5534 #define _P1ASDEN 0x40
5535 #define _P1ASE 0x80
5537 //==============================================================================
5540 //==============================================================================
5541 // PSMC1ASDL Bits
5543 extern __at(0x0E9E) __sfr PSMC1ASDL;
5545 typedef struct
5547 unsigned P1ASDLA : 1;
5548 unsigned P1ASDLB : 1;
5549 unsigned P1ASDLC : 1;
5550 unsigned P1ASDLD : 1;
5551 unsigned P1ASDLE : 1;
5552 unsigned P1ASDLF : 1;
5553 unsigned : 1;
5554 unsigned : 1;
5555 } __PSMC1ASDLbits_t;
5557 extern __at(0x0E9E) volatile __PSMC1ASDLbits_t PSMC1ASDLbits;
5559 #define _P1ASDLA 0x01
5560 #define _P1ASDLB 0x02
5561 #define _P1ASDLC 0x04
5562 #define _P1ASDLD 0x08
5563 #define _P1ASDLE 0x10
5564 #define _P1ASDLF 0x20
5566 //==============================================================================
5569 //==============================================================================
5570 // PSMC1ASDS Bits
5572 extern __at(0x0E9F) __sfr PSMC1ASDS;
5574 typedef struct
5576 unsigned : 1;
5577 unsigned P1ASDSC1 : 1;
5578 unsigned P1ASDSC2 : 1;
5579 unsigned P1ASDSC3 : 1;
5580 unsigned P1ASDSC4 : 1;
5581 unsigned : 1;
5582 unsigned : 1;
5583 unsigned P1ASDSIN : 1;
5584 } __PSMC1ASDSbits_t;
5586 extern __at(0x0E9F) volatile __PSMC1ASDSbits_t PSMC1ASDSbits;
5588 #define _P1ASDSC1 0x02
5589 #define _P1ASDSC2 0x04
5590 #define _P1ASDSC3 0x08
5591 #define _P1ASDSC4 0x10
5592 #define _P1ASDSIN 0x80
5594 //==============================================================================
5597 //==============================================================================
5598 // PSMC1INT Bits
5600 extern __at(0x0EA0) __sfr PSMC1INT;
5602 typedef struct
5604 unsigned P1TPRIF : 1;
5605 unsigned P1TDCIF : 1;
5606 unsigned P1TPHIF : 1;
5607 unsigned P1TOVIF : 1;
5608 unsigned P1TPRIE : 1;
5609 unsigned P1TDCIE : 1;
5610 unsigned P1TPHIE : 1;
5611 unsigned P1TOVIE : 1;
5612 } __PSMC1INTbits_t;
5614 extern __at(0x0EA0) volatile __PSMC1INTbits_t PSMC1INTbits;
5616 #define _P1TPRIF 0x01
5617 #define _P1TDCIF 0x02
5618 #define _P1TPHIF 0x04
5619 #define _P1TOVIF 0x08
5620 #define _P1TPRIE 0x10
5621 #define _P1TDCIE 0x20
5622 #define _P1TPHIE 0x40
5623 #define _P1TOVIE 0x80
5625 //==============================================================================
5627 extern __at(0x0EA1) __sfr PSMC1PH;
5629 //==============================================================================
5630 // PSMC1PHL Bits
5632 extern __at(0x0EA1) __sfr PSMC1PHL;
5634 typedef struct
5636 unsigned PSMC1PH0 : 1;
5637 unsigned PSMC1PH1 : 1;
5638 unsigned PSMC1PH2 : 1;
5639 unsigned PSMC1PH3 : 1;
5640 unsigned PSMC1PH4 : 1;
5641 unsigned PSMC1PH5 : 1;
5642 unsigned PSMC1PH6 : 1;
5643 unsigned PSMC1PH7 : 1;
5644 } __PSMC1PHLbits_t;
5646 extern __at(0x0EA1) volatile __PSMC1PHLbits_t PSMC1PHLbits;
5648 #define _PSMC1PH0 0x01
5649 #define _PSMC1PH1 0x02
5650 #define _PSMC1PH2 0x04
5651 #define _PSMC1PH3 0x08
5652 #define _PSMC1PH4 0x10
5653 #define _PSMC1PH5 0x20
5654 #define _PSMC1PH6 0x40
5655 #define _PSMC1PH7 0x80
5657 //==============================================================================
5660 //==============================================================================
5661 // PSMC1PHH Bits
5663 extern __at(0x0EA2) __sfr PSMC1PHH;
5665 typedef struct
5667 unsigned PSMC1PH8 : 1;
5668 unsigned PSMC1PH9 : 1;
5669 unsigned PSMC1PH10 : 1;
5670 unsigned PSMC1PH11 : 1;
5671 unsigned PSMC1PH12 : 1;
5672 unsigned PSMC1PH13 : 1;
5673 unsigned PSMC1PH14 : 1;
5674 unsigned PSMC1PH15 : 1;
5675 } __PSMC1PHHbits_t;
5677 extern __at(0x0EA2) volatile __PSMC1PHHbits_t PSMC1PHHbits;
5679 #define _PSMC1PH8 0x01
5680 #define _PSMC1PH9 0x02
5681 #define _PSMC1PH10 0x04
5682 #define _PSMC1PH11 0x08
5683 #define _PSMC1PH12 0x10
5684 #define _PSMC1PH13 0x20
5685 #define _PSMC1PH14 0x40
5686 #define _PSMC1PH15 0x80
5688 //==============================================================================
5690 extern __at(0x0EA3) __sfr PSMC1DC;
5692 //==============================================================================
5693 // PSMC1DCL Bits
5695 extern __at(0x0EA3) __sfr PSMC1DCL;
5697 typedef struct
5699 unsigned PSMC1DC0 : 1;
5700 unsigned PSMC1DC1 : 1;
5701 unsigned PSMC1DC2 : 1;
5702 unsigned PSMC1DC3 : 1;
5703 unsigned PSMC1DC4 : 1;
5704 unsigned PSMC1DC5 : 1;
5705 unsigned PSMC1DC6 : 1;
5706 unsigned PSMC1DC7 : 1;
5707 } __PSMC1DCLbits_t;
5709 extern __at(0x0EA3) volatile __PSMC1DCLbits_t PSMC1DCLbits;
5711 #define _PSMC1DC0 0x01
5712 #define _PSMC1DC1 0x02
5713 #define _PSMC1DC2 0x04
5714 #define _PSMC1DC3 0x08
5715 #define _PSMC1DC4 0x10
5716 #define _PSMC1DC5 0x20
5717 #define _PSMC1DC6 0x40
5718 #define _PSMC1DC7 0x80
5720 //==============================================================================
5723 //==============================================================================
5724 // PSMC1DCH Bits
5726 extern __at(0x0EA4) __sfr PSMC1DCH;
5728 typedef struct
5730 unsigned PSMC1DC8 : 1;
5731 unsigned PSMC1DC9 : 1;
5732 unsigned PSMC1DC10 : 1;
5733 unsigned PSMC1DC11 : 1;
5734 unsigned PSMC1DC12 : 1;
5735 unsigned PSMC1DC13 : 1;
5736 unsigned PSMC1DC14 : 1;
5737 unsigned PSMC1DC15 : 1;
5738 } __PSMC1DCHbits_t;
5740 extern __at(0x0EA4) volatile __PSMC1DCHbits_t PSMC1DCHbits;
5742 #define _PSMC1DC8 0x01
5743 #define _PSMC1DC9 0x02
5744 #define _PSMC1DC10 0x04
5745 #define _PSMC1DC11 0x08
5746 #define _PSMC1DC12 0x10
5747 #define _PSMC1DC13 0x20
5748 #define _PSMC1DC14 0x40
5749 #define _PSMC1DC15 0x80
5751 //==============================================================================
5753 extern __at(0x0EA5) __sfr PSMC1PR;
5755 //==============================================================================
5756 // PSMC1PRL Bits
5758 extern __at(0x0EA5) __sfr PSMC1PRL;
5760 typedef struct
5762 unsigned PSMC1PR0 : 1;
5763 unsigned PSMC1PR1 : 1;
5764 unsigned PSMC1PR2 : 1;
5765 unsigned PSMC1PR3 : 1;
5766 unsigned PSMC1PR4 : 1;
5767 unsigned PSMC1PR5 : 1;
5768 unsigned PSMC1PR6 : 1;
5769 unsigned PSMC1PR7 : 1;
5770 } __PSMC1PRLbits_t;
5772 extern __at(0x0EA5) volatile __PSMC1PRLbits_t PSMC1PRLbits;
5774 #define _PSMC1PR0 0x01
5775 #define _PSMC1PR1 0x02
5776 #define _PSMC1PR2 0x04
5777 #define _PSMC1PR3 0x08
5778 #define _PSMC1PR4 0x10
5779 #define _PSMC1PR5 0x20
5780 #define _PSMC1PR6 0x40
5781 #define _PSMC1PR7 0x80
5783 //==============================================================================
5786 //==============================================================================
5787 // PSMC1PRH Bits
5789 extern __at(0x0EA6) __sfr PSMC1PRH;
5791 typedef struct
5793 unsigned PSMC1PR8 : 1;
5794 unsigned PSMC1PR9 : 1;
5795 unsigned PSMC1PR10 : 1;
5796 unsigned PSMC1PR11 : 1;
5797 unsigned PSMC1PR12 : 1;
5798 unsigned PSMC1PR13 : 1;
5799 unsigned PSMC1PR14 : 1;
5800 unsigned PSMC1PR15 : 1;
5801 } __PSMC1PRHbits_t;
5803 extern __at(0x0EA6) volatile __PSMC1PRHbits_t PSMC1PRHbits;
5805 #define _PSMC1PR8 0x01
5806 #define _PSMC1PR9 0x02
5807 #define _PSMC1PR10 0x04
5808 #define _PSMC1PR11 0x08
5809 #define _PSMC1PR12 0x10
5810 #define _PSMC1PR13 0x20
5811 #define _PSMC1PR14 0x40
5812 #define _PSMC1PR15 0x80
5814 //==============================================================================
5816 extern __at(0x0EA7) __sfr PSMC1TMR;
5818 //==============================================================================
5819 // PSMC1TMRL Bits
5821 extern __at(0x0EA7) __sfr PSMC1TMRL;
5823 typedef struct
5825 unsigned PSMC1TMR0 : 1;
5826 unsigned PSMC1TMR1 : 1;
5827 unsigned PSMC1TMR2 : 1;
5828 unsigned PSMC1TMR3 : 1;
5829 unsigned PSMC1TMR4 : 1;
5830 unsigned PSMC1TMR5 : 1;
5831 unsigned PSMC1TMR6 : 1;
5832 unsigned PSMC1TMR7 : 1;
5833 } __PSMC1TMRLbits_t;
5835 extern __at(0x0EA7) volatile __PSMC1TMRLbits_t PSMC1TMRLbits;
5837 #define _PSMC1TMR0 0x01
5838 #define _PSMC1TMR1 0x02
5839 #define _PSMC1TMR2 0x04
5840 #define _PSMC1TMR3 0x08
5841 #define _PSMC1TMR4 0x10
5842 #define _PSMC1TMR5 0x20
5843 #define _PSMC1TMR6 0x40
5844 #define _PSMC1TMR7 0x80
5846 //==============================================================================
5849 //==============================================================================
5850 // PSMC1TMRH Bits
5852 extern __at(0x0EA8) __sfr PSMC1TMRH;
5854 typedef struct
5856 unsigned PSMC1TMR8 : 1;
5857 unsigned PSMC1TMR9 : 1;
5858 unsigned PSMC1TMR10 : 1;
5859 unsigned PSMC1TMR11 : 1;
5860 unsigned PSMC1TMR12 : 1;
5861 unsigned PSMC1TMR13 : 1;
5862 unsigned PSMC1TMR14 : 1;
5863 unsigned PSMC1TMR15 : 1;
5864 } __PSMC1TMRHbits_t;
5866 extern __at(0x0EA8) volatile __PSMC1TMRHbits_t PSMC1TMRHbits;
5868 #define _PSMC1TMR8 0x01
5869 #define _PSMC1TMR9 0x02
5870 #define _PSMC1TMR10 0x04
5871 #define _PSMC1TMR11 0x08
5872 #define _PSMC1TMR12 0x10
5873 #define _PSMC1TMR13 0x20
5874 #define _PSMC1TMR14 0x40
5875 #define _PSMC1TMR15 0x80
5877 //==============================================================================
5880 //==============================================================================
5881 // PSMC1DBR Bits
5883 extern __at(0x0EA9) __sfr PSMC1DBR;
5885 typedef struct
5887 unsigned PSMC1DBR0 : 1;
5888 unsigned PSMC1DBR1 : 1;
5889 unsigned PSMC1DBR2 : 1;
5890 unsigned PSMC1DBR3 : 1;
5891 unsigned PSMC1DBR4 : 1;
5892 unsigned PSMC1DBR5 : 1;
5893 unsigned PSMC1DBR6 : 1;
5894 unsigned PSMC1DBR7 : 1;
5895 } __PSMC1DBRbits_t;
5897 extern __at(0x0EA9) volatile __PSMC1DBRbits_t PSMC1DBRbits;
5899 #define _PSMC1DBR0 0x01
5900 #define _PSMC1DBR1 0x02
5901 #define _PSMC1DBR2 0x04
5902 #define _PSMC1DBR3 0x08
5903 #define _PSMC1DBR4 0x10
5904 #define _PSMC1DBR5 0x20
5905 #define _PSMC1DBR6 0x40
5906 #define _PSMC1DBR7 0x80
5908 //==============================================================================
5911 //==============================================================================
5912 // PSMC1DBF Bits
5914 extern __at(0x0EAA) __sfr PSMC1DBF;
5916 typedef struct
5918 unsigned PSMC1DBF0 : 1;
5919 unsigned PSMC1DBF1 : 1;
5920 unsigned PSMC1DBF2 : 1;
5921 unsigned PSMC1DBF3 : 1;
5922 unsigned PSMC1DBF4 : 1;
5923 unsigned PSMC1DBF5 : 1;
5924 unsigned PSMC1DBF6 : 1;
5925 unsigned PSMC1DBF7 : 1;
5926 } __PSMC1DBFbits_t;
5928 extern __at(0x0EAA) volatile __PSMC1DBFbits_t PSMC1DBFbits;
5930 #define _PSMC1DBF0 0x01
5931 #define _PSMC1DBF1 0x02
5932 #define _PSMC1DBF2 0x04
5933 #define _PSMC1DBF3 0x08
5934 #define _PSMC1DBF4 0x10
5935 #define _PSMC1DBF5 0x20
5936 #define _PSMC1DBF6 0x40
5937 #define _PSMC1DBF7 0x80
5939 //==============================================================================
5942 //==============================================================================
5943 // PSMC1BLKR Bits
5945 extern __at(0x0EAB) __sfr PSMC1BLKR;
5947 typedef struct
5949 unsigned PSMC1BLKR0 : 1;
5950 unsigned PSMC1BLKR1 : 1;
5951 unsigned PSMC1BLKR2 : 1;
5952 unsigned PSMC1BLKR3 : 1;
5953 unsigned PSMC1BLKR4 : 1;
5954 unsigned PSMC1BLKR5 : 1;
5955 unsigned PSMC1BLKR6 : 1;
5956 unsigned PSMC1BLKR7 : 1;
5957 } __PSMC1BLKRbits_t;
5959 extern __at(0x0EAB) volatile __PSMC1BLKRbits_t PSMC1BLKRbits;
5961 #define _PSMC1BLKR0 0x01
5962 #define _PSMC1BLKR1 0x02
5963 #define _PSMC1BLKR2 0x04
5964 #define _PSMC1BLKR3 0x08
5965 #define _PSMC1BLKR4 0x10
5966 #define _PSMC1BLKR5 0x20
5967 #define _PSMC1BLKR6 0x40
5968 #define _PSMC1BLKR7 0x80
5970 //==============================================================================
5973 //==============================================================================
5974 // PSMC1BLKF Bits
5976 extern __at(0x0EAC) __sfr PSMC1BLKF;
5978 typedef struct
5980 unsigned PSMC1BLKF0 : 1;
5981 unsigned PSMC1BLKF1 : 1;
5982 unsigned PSMC1BLKF2 : 1;
5983 unsigned PSMC1BLKF3 : 1;
5984 unsigned PSMC1BLKF4 : 1;
5985 unsigned PSMC1BLKF5 : 1;
5986 unsigned PSMC1BLKF6 : 1;
5987 unsigned PSMC1BLKF7 : 1;
5988 } __PSMC1BLKFbits_t;
5990 extern __at(0x0EAC) volatile __PSMC1BLKFbits_t PSMC1BLKFbits;
5992 #define _PSMC1BLKF0 0x01
5993 #define _PSMC1BLKF1 0x02
5994 #define _PSMC1BLKF2 0x04
5995 #define _PSMC1BLKF3 0x08
5996 #define _PSMC1BLKF4 0x10
5997 #define _PSMC1BLKF5 0x20
5998 #define _PSMC1BLKF6 0x40
5999 #define _PSMC1BLKF7 0x80
6001 //==============================================================================
6004 //==============================================================================
6005 // PSMC1FFA Bits
6007 extern __at(0x0EAD) __sfr PSMC1FFA;
6009 typedef union
6011 struct
6013 unsigned PSMC1FFA0 : 1;
6014 unsigned PSMC1FFA1 : 1;
6015 unsigned PSMC1FFA2 : 1;
6016 unsigned PSMC1FFA3 : 1;
6017 unsigned : 1;
6018 unsigned : 1;
6019 unsigned : 1;
6020 unsigned : 1;
6023 struct
6025 unsigned PSMC1FFA : 4;
6026 unsigned : 4;
6028 } __PSMC1FFAbits_t;
6030 extern __at(0x0EAD) volatile __PSMC1FFAbits_t PSMC1FFAbits;
6032 #define _PSMC1FFA0 0x01
6033 #define _PSMC1FFA1 0x02
6034 #define _PSMC1FFA2 0x04
6035 #define _PSMC1FFA3 0x08
6037 //==============================================================================
6040 //==============================================================================
6041 // PSMC1STR0 Bits
6043 extern __at(0x0EAE) __sfr PSMC1STR0;
6045 typedef struct
6047 unsigned P1STRA : 1;
6048 unsigned P1STRB : 1;
6049 unsigned P1STRC : 1;
6050 unsigned P1STRD : 1;
6051 unsigned P1STRE : 1;
6052 unsigned P1STRF : 1;
6053 unsigned : 1;
6054 unsigned : 1;
6055 } __PSMC1STR0bits_t;
6057 extern __at(0x0EAE) volatile __PSMC1STR0bits_t PSMC1STR0bits;
6059 #define _P1STRA 0x01
6060 #define _P1STRB 0x02
6061 #define _P1STRC 0x04
6062 #define _P1STRD 0x08
6063 #define _P1STRE 0x10
6064 #define _P1STRF 0x20
6066 //==============================================================================
6069 //==============================================================================
6070 // PSMC1STR1 Bits
6072 extern __at(0x0EAF) __sfr PSMC1STR1;
6074 typedef struct
6076 unsigned P1HSMEN : 1;
6077 unsigned P1LSMEN : 1;
6078 unsigned : 1;
6079 unsigned : 1;
6080 unsigned : 1;
6081 unsigned : 1;
6082 unsigned : 1;
6083 unsigned P1SSYNC : 1;
6084 } __PSMC1STR1bits_t;
6086 extern __at(0x0EAF) volatile __PSMC1STR1bits_t PSMC1STR1bits;
6088 #define _P1HSMEN 0x01
6089 #define _P1LSMEN 0x02
6090 #define _P1SSYNC 0x80
6092 //==============================================================================
6095 //==============================================================================
6096 // PSMC2CON Bits
6098 extern __at(0x0EB1) __sfr PSMC2CON;
6100 typedef union
6102 struct
6104 unsigned P2MODE0 : 1;
6105 unsigned P2MODE1 : 1;
6106 unsigned P2MODE2 : 1;
6107 unsigned P2MODE3 : 1;
6108 unsigned P2DBRE : 1;
6109 unsigned P2DBFE : 1;
6110 unsigned PSMC2LD : 1;
6111 unsigned PSMC2EN : 1;
6114 struct
6116 unsigned P2MODE : 4;
6117 unsigned : 4;
6119 } __PSMC2CONbits_t;
6121 extern __at(0x0EB1) volatile __PSMC2CONbits_t PSMC2CONbits;
6123 #define _P2MODE0 0x01
6124 #define _P2MODE1 0x02
6125 #define _P2MODE2 0x04
6126 #define _P2MODE3 0x08
6127 #define _P2DBRE 0x10
6128 #define _P2DBFE 0x20
6129 #define _PSMC2LD 0x40
6130 #define _PSMC2EN 0x80
6132 //==============================================================================
6135 //==============================================================================
6136 // PSMC2MDL Bits
6138 extern __at(0x0EB2) __sfr PSMC2MDL;
6140 typedef union
6142 struct
6144 unsigned P2MSRC0 : 1;
6145 unsigned P2MSRC1 : 1;
6146 unsigned P2MSRC2 : 1;
6147 unsigned P2MSRC3 : 1;
6148 unsigned : 1;
6149 unsigned P2MDLBIT : 1;
6150 unsigned P2MDLPOL : 1;
6151 unsigned P2MDLEN : 1;
6154 struct
6156 unsigned P2MSRC : 4;
6157 unsigned : 4;
6159 } __PSMC2MDLbits_t;
6161 extern __at(0x0EB2) volatile __PSMC2MDLbits_t PSMC2MDLbits;
6163 #define _P2MSRC0 0x01
6164 #define _P2MSRC1 0x02
6165 #define _P2MSRC2 0x04
6166 #define _P2MSRC3 0x08
6167 #define _P2MDLBIT 0x20
6168 #define _P2MDLPOL 0x40
6169 #define _P2MDLEN 0x80
6171 //==============================================================================
6174 //==============================================================================
6175 // PSMC2SYNC Bits
6177 extern __at(0x0EB3) __sfr PSMC2SYNC;
6179 typedef union
6181 struct
6183 unsigned P2SYNC0 : 1;
6184 unsigned P2SYNC1 : 1;
6185 unsigned P2SYNC2 : 1;
6186 unsigned : 1;
6187 unsigned : 1;
6188 unsigned P2DCPOL : 1;
6189 unsigned P2PRPOL : 1;
6190 unsigned P2POFST : 1;
6193 struct
6195 unsigned P2SYNC : 3;
6196 unsigned : 5;
6198 } __PSMC2SYNCbits_t;
6200 extern __at(0x0EB3) volatile __PSMC2SYNCbits_t PSMC2SYNCbits;
6202 #define _P2SYNC0 0x01
6203 #define _P2SYNC1 0x02
6204 #define _P2SYNC2 0x04
6205 #define _P2DCPOL 0x20
6206 #define _P2PRPOL 0x40
6207 #define _P2POFST 0x80
6209 //==============================================================================
6212 //==============================================================================
6213 // PSMC2CLK Bits
6215 extern __at(0x0EB4) __sfr PSMC2CLK;
6217 typedef union
6219 struct
6221 unsigned P2CSRC0 : 1;
6222 unsigned P2CSRC1 : 1;
6223 unsigned : 1;
6224 unsigned : 1;
6225 unsigned P2CPRE0 : 1;
6226 unsigned P2CPRE1 : 1;
6227 unsigned : 1;
6228 unsigned : 1;
6231 struct
6233 unsigned P2CSRC : 2;
6234 unsigned : 6;
6237 struct
6239 unsigned : 4;
6240 unsigned P2CPRE : 2;
6241 unsigned : 2;
6243 } __PSMC2CLKbits_t;
6245 extern __at(0x0EB4) volatile __PSMC2CLKbits_t PSMC2CLKbits;
6247 #define _P2CSRC0 0x01
6248 #define _P2CSRC1 0x02
6249 #define _P2CPRE0 0x10
6250 #define _P2CPRE1 0x20
6252 //==============================================================================
6255 //==============================================================================
6256 // PSMC2OEN Bits
6258 extern __at(0x0EB5) __sfr PSMC2OEN;
6260 typedef struct
6262 unsigned P2OEA : 1;
6263 unsigned P2OEB : 1;
6264 unsigned : 1;
6265 unsigned : 1;
6266 unsigned : 1;
6267 unsigned : 1;
6268 unsigned : 1;
6269 unsigned : 1;
6270 } __PSMC2OENbits_t;
6272 extern __at(0x0EB5) volatile __PSMC2OENbits_t PSMC2OENbits;
6274 #define _P2OEA 0x01
6275 #define _P2OEB 0x02
6277 //==============================================================================
6280 //==============================================================================
6281 // PSMC2POL Bits
6283 extern __at(0x0EB6) __sfr PSMC2POL;
6285 typedef struct
6287 unsigned P2POLA : 1;
6288 unsigned P2POLB : 1;
6289 unsigned : 1;
6290 unsigned : 1;
6291 unsigned : 1;
6292 unsigned : 1;
6293 unsigned P2INPOL : 1;
6294 unsigned : 1;
6295 } __PSMC2POLbits_t;
6297 extern __at(0x0EB6) volatile __PSMC2POLbits_t PSMC2POLbits;
6299 #define _P2POLA 0x01
6300 #define _P2POLB 0x02
6301 #define _P2INPOL 0x40
6303 //==============================================================================
6306 //==============================================================================
6307 // PSMC2BLNK Bits
6309 extern __at(0x0EB7) __sfr PSMC2BLNK;
6311 typedef union
6313 struct
6315 unsigned P2REBM0 : 1;
6316 unsigned P2REBM1 : 1;
6317 unsigned : 1;
6318 unsigned : 1;
6319 unsigned P2FEBM0 : 1;
6320 unsigned P2FEBM1 : 1;
6321 unsigned : 1;
6322 unsigned : 1;
6325 struct
6327 unsigned P2REBM : 2;
6328 unsigned : 6;
6331 struct
6333 unsigned : 4;
6334 unsigned P2FEBM : 2;
6335 unsigned : 2;
6337 } __PSMC2BLNKbits_t;
6339 extern __at(0x0EB7) volatile __PSMC2BLNKbits_t PSMC2BLNKbits;
6341 #define _P2REBM0 0x01
6342 #define _P2REBM1 0x02
6343 #define _P2FEBM0 0x10
6344 #define _P2FEBM1 0x20
6346 //==============================================================================
6349 //==============================================================================
6350 // PSMC2REBS Bits
6352 extern __at(0x0EB8) __sfr PSMC2REBS;
6354 typedef struct
6356 unsigned : 1;
6357 unsigned P2REBSC1 : 1;
6358 unsigned P2REBSC2 : 1;
6359 unsigned P2REBSC3 : 1;
6360 unsigned P2REBSC4 : 1;
6361 unsigned : 1;
6362 unsigned : 1;
6363 unsigned P2REBSIN : 1;
6364 } __PSMC2REBSbits_t;
6366 extern __at(0x0EB8) volatile __PSMC2REBSbits_t PSMC2REBSbits;
6368 #define _P2REBSC1 0x02
6369 #define _P2REBSC2 0x04
6370 #define _P2REBSC3 0x08
6371 #define _P2REBSC4 0x10
6372 #define _P2REBSIN 0x80
6374 //==============================================================================
6377 //==============================================================================
6378 // PSMC2FEBS Bits
6380 extern __at(0x0EB9) __sfr PSMC2FEBS;
6382 typedef struct
6384 unsigned : 1;
6385 unsigned P2FEBSC1 : 1;
6386 unsigned P2FEBSC2 : 1;
6387 unsigned P2FEBSC3 : 1;
6388 unsigned P2FEBSC4 : 1;
6389 unsigned : 1;
6390 unsigned : 1;
6391 unsigned P2FEBSIN : 1;
6392 } __PSMC2FEBSbits_t;
6394 extern __at(0x0EB9) volatile __PSMC2FEBSbits_t PSMC2FEBSbits;
6396 #define _P2FEBSC1 0x02
6397 #define _P2FEBSC2 0x04
6398 #define _P2FEBSC3 0x08
6399 #define _P2FEBSC4 0x10
6400 #define _P2FEBSIN 0x80
6402 //==============================================================================
6405 //==============================================================================
6406 // PSMC2PHS Bits
6408 extern __at(0x0EBA) __sfr PSMC2PHS;
6410 typedef struct
6412 unsigned P2PHST : 1;
6413 unsigned P2PHSC1 : 1;
6414 unsigned P2PHSC2 : 1;
6415 unsigned P2PHSC3 : 1;
6416 unsigned P2PHSC4 : 1;
6417 unsigned : 1;
6418 unsigned : 1;
6419 unsigned P2PHSIN : 1;
6420 } __PSMC2PHSbits_t;
6422 extern __at(0x0EBA) volatile __PSMC2PHSbits_t PSMC2PHSbits;
6424 #define _P2PHST 0x01
6425 #define _P2PHSC1 0x02
6426 #define _P2PHSC2 0x04
6427 #define _P2PHSC3 0x08
6428 #define _P2PHSC4 0x10
6429 #define _P2PHSIN 0x80
6431 //==============================================================================
6434 //==============================================================================
6435 // PSMC2DCS Bits
6437 extern __at(0x0EBB) __sfr PSMC2DCS;
6439 typedef struct
6441 unsigned P2DCST : 1;
6442 unsigned P2DCSC1 : 1;
6443 unsigned P2DCSC2 : 1;
6444 unsigned P2DCSC3 : 1;
6445 unsigned P2DCSC4 : 1;
6446 unsigned : 1;
6447 unsigned : 1;
6448 unsigned P2DCSIN : 1;
6449 } __PSMC2DCSbits_t;
6451 extern __at(0x0EBB) volatile __PSMC2DCSbits_t PSMC2DCSbits;
6453 #define _P2DCST 0x01
6454 #define _P2DCSC1 0x02
6455 #define _P2DCSC2 0x04
6456 #define _P2DCSC3 0x08
6457 #define _P2DCSC4 0x10
6458 #define _P2DCSIN 0x80
6460 //==============================================================================
6463 //==============================================================================
6464 // PSMC2PRS Bits
6466 extern __at(0x0EBC) __sfr PSMC2PRS;
6468 typedef struct
6470 unsigned P2PRST : 1;
6471 unsigned P2PRSC1 : 1;
6472 unsigned P2PRSC2 : 1;
6473 unsigned P2PRSC3 : 1;
6474 unsigned P2PRSC4 : 1;
6475 unsigned : 1;
6476 unsigned : 1;
6477 unsigned P2PRSIN : 1;
6478 } __PSMC2PRSbits_t;
6480 extern __at(0x0EBC) volatile __PSMC2PRSbits_t PSMC2PRSbits;
6482 #define _P2PRST 0x01
6483 #define _P2PRSC1 0x02
6484 #define _P2PRSC2 0x04
6485 #define _P2PRSC3 0x08
6486 #define _P2PRSC4 0x10
6487 #define _P2PRSIN 0x80
6489 //==============================================================================
6492 //==============================================================================
6493 // PSMC2ASDC Bits
6495 extern __at(0x0EBD) __sfr PSMC2ASDC;
6497 typedef struct
6499 unsigned P2ASDOV : 1;
6500 unsigned : 1;
6501 unsigned : 1;
6502 unsigned : 1;
6503 unsigned : 1;
6504 unsigned P2ARSEN : 1;
6505 unsigned P2ASDEN : 1;
6506 unsigned P2ASE : 1;
6507 } __PSMC2ASDCbits_t;
6509 extern __at(0x0EBD) volatile __PSMC2ASDCbits_t PSMC2ASDCbits;
6511 #define _P2ASDOV 0x01
6512 #define _P2ARSEN 0x20
6513 #define _P2ASDEN 0x40
6514 #define _P2ASE 0x80
6516 //==============================================================================
6519 //==============================================================================
6520 // PSMC2ASDL Bits
6522 extern __at(0x0EBE) __sfr PSMC2ASDL;
6524 typedef struct
6526 unsigned P2ASDLA : 1;
6527 unsigned P2ASDLB : 1;
6528 unsigned : 1;
6529 unsigned : 1;
6530 unsigned : 1;
6531 unsigned : 1;
6532 unsigned : 1;
6533 unsigned : 1;
6534 } __PSMC2ASDLbits_t;
6536 extern __at(0x0EBE) volatile __PSMC2ASDLbits_t PSMC2ASDLbits;
6538 #define _P2ASDLA 0x01
6539 #define _P2ASDLB 0x02
6541 //==============================================================================
6544 //==============================================================================
6545 // PSMC2ASDS Bits
6547 extern __at(0x0EBF) __sfr PSMC2ASDS;
6549 typedef struct
6551 unsigned : 1;
6552 unsigned P2ASDSC1 : 1;
6553 unsigned P2ASDSC2 : 1;
6554 unsigned P2ASDSC3 : 1;
6555 unsigned P2ASDSC4 : 1;
6556 unsigned : 1;
6557 unsigned : 1;
6558 unsigned P2ASDSIN : 1;
6559 } __PSMC2ASDSbits_t;
6561 extern __at(0x0EBF) volatile __PSMC2ASDSbits_t PSMC2ASDSbits;
6563 #define _P2ASDSC1 0x02
6564 #define _P2ASDSC2 0x04
6565 #define _P2ASDSC3 0x08
6566 #define _P2ASDSC4 0x10
6567 #define _P2ASDSIN 0x80
6569 //==============================================================================
6572 //==============================================================================
6573 // PSMC2INT Bits
6575 extern __at(0x0EC0) __sfr PSMC2INT;
6577 typedef struct
6579 unsigned P2TPRIF : 1;
6580 unsigned P2TDCIF : 1;
6581 unsigned P2TPHIF : 1;
6582 unsigned P2TOVIF : 1;
6583 unsigned P2TPRIE : 1;
6584 unsigned P2TDCIE : 1;
6585 unsigned P2TPHIE : 1;
6586 unsigned P2TOVIE : 1;
6587 } __PSMC2INTbits_t;
6589 extern __at(0x0EC0) volatile __PSMC2INTbits_t PSMC2INTbits;
6591 #define _P2TPRIF 0x01
6592 #define _P2TDCIF 0x02
6593 #define _P2TPHIF 0x04
6594 #define _P2TOVIF 0x08
6595 #define _P2TPRIE 0x10
6596 #define _P2TDCIE 0x20
6597 #define _P2TPHIE 0x40
6598 #define _P2TOVIE 0x80
6600 //==============================================================================
6602 extern __at(0x0EC1) __sfr PSMC2PH;
6604 //==============================================================================
6605 // PSMC2PHL Bits
6607 extern __at(0x0EC1) __sfr PSMC2PHL;
6609 typedef struct
6611 unsigned PSMC2PH0 : 1;
6612 unsigned PSMC2PH1 : 1;
6613 unsigned PSMC2PH2 : 1;
6614 unsigned PSMC2PH3 : 1;
6615 unsigned PSMC2PH4 : 1;
6616 unsigned PSMC2PH5 : 1;
6617 unsigned PSMC2PH6 : 1;
6618 unsigned PSMC2PH7 : 1;
6619 } __PSMC2PHLbits_t;
6621 extern __at(0x0EC1) volatile __PSMC2PHLbits_t PSMC2PHLbits;
6623 #define _PSMC2PH0 0x01
6624 #define _PSMC2PH1 0x02
6625 #define _PSMC2PH2 0x04
6626 #define _PSMC2PH3 0x08
6627 #define _PSMC2PH4 0x10
6628 #define _PSMC2PH5 0x20
6629 #define _PSMC2PH6 0x40
6630 #define _PSMC2PH7 0x80
6632 //==============================================================================
6635 //==============================================================================
6636 // PSMC2PHH Bits
6638 extern __at(0x0EC2) __sfr PSMC2PHH;
6640 typedef struct
6642 unsigned PSMC2PH8 : 1;
6643 unsigned PSMC2PH9 : 1;
6644 unsigned PSMC2PH10 : 1;
6645 unsigned PSMC2PH11 : 1;
6646 unsigned PSMC2PH12 : 1;
6647 unsigned PSMC2PH13 : 1;
6648 unsigned PSMC2PH14 : 1;
6649 unsigned PSMC2PH15 : 1;
6650 } __PSMC2PHHbits_t;
6652 extern __at(0x0EC2) volatile __PSMC2PHHbits_t PSMC2PHHbits;
6654 #define _PSMC2PH8 0x01
6655 #define _PSMC2PH9 0x02
6656 #define _PSMC2PH10 0x04
6657 #define _PSMC2PH11 0x08
6658 #define _PSMC2PH12 0x10
6659 #define _PSMC2PH13 0x20
6660 #define _PSMC2PH14 0x40
6661 #define _PSMC2PH15 0x80
6663 //==============================================================================
6665 extern __at(0x0EC3) __sfr PSMC2DC;
6667 //==============================================================================
6668 // PSMC2DCL Bits
6670 extern __at(0x0EC3) __sfr PSMC2DCL;
6672 typedef struct
6674 unsigned PSMC2DC0 : 1;
6675 unsigned PSMC2DC1 : 1;
6676 unsigned PSMC2DC2 : 1;
6677 unsigned PSMC2DC3 : 1;
6678 unsigned PSMC2DC4 : 1;
6679 unsigned PSMC2DC5 : 1;
6680 unsigned PSMC2DC6 : 1;
6681 unsigned PSMC2DC7 : 1;
6682 } __PSMC2DCLbits_t;
6684 extern __at(0x0EC3) volatile __PSMC2DCLbits_t PSMC2DCLbits;
6686 #define _PSMC2DC0 0x01
6687 #define _PSMC2DC1 0x02
6688 #define _PSMC2DC2 0x04
6689 #define _PSMC2DC3 0x08
6690 #define _PSMC2DC4 0x10
6691 #define _PSMC2DC5 0x20
6692 #define _PSMC2DC6 0x40
6693 #define _PSMC2DC7 0x80
6695 //==============================================================================
6698 //==============================================================================
6699 // PSMC2DCH Bits
6701 extern __at(0x0EC4) __sfr PSMC2DCH;
6703 typedef struct
6705 unsigned PSMC2DC8 : 1;
6706 unsigned PSMC2DC9 : 1;
6707 unsigned PSMC2DC10 : 1;
6708 unsigned PSMC2DC11 : 1;
6709 unsigned PSMC2DC12 : 1;
6710 unsigned PSMC2DC13 : 1;
6711 unsigned PSMC2DC14 : 1;
6712 unsigned PSMC2DC15 : 1;
6713 } __PSMC2DCHbits_t;
6715 extern __at(0x0EC4) volatile __PSMC2DCHbits_t PSMC2DCHbits;
6717 #define _PSMC2DC8 0x01
6718 #define _PSMC2DC9 0x02
6719 #define _PSMC2DC10 0x04
6720 #define _PSMC2DC11 0x08
6721 #define _PSMC2DC12 0x10
6722 #define _PSMC2DC13 0x20
6723 #define _PSMC2DC14 0x40
6724 #define _PSMC2DC15 0x80
6726 //==============================================================================
6728 extern __at(0x0EC5) __sfr PSMC2PR;
6730 //==============================================================================
6731 // PSMC2PRL Bits
6733 extern __at(0x0EC5) __sfr PSMC2PRL;
6735 typedef struct
6737 unsigned PSMC2PR0 : 1;
6738 unsigned PSMC2PR1 : 1;
6739 unsigned PSMC2PR2 : 1;
6740 unsigned PSMC2PR3 : 1;
6741 unsigned PSMC2PR4 : 1;
6742 unsigned PSMC2PR5 : 1;
6743 unsigned PSMC2PR6 : 1;
6744 unsigned PSMC2PR7 : 1;
6745 } __PSMC2PRLbits_t;
6747 extern __at(0x0EC5) volatile __PSMC2PRLbits_t PSMC2PRLbits;
6749 #define _PSMC2PR0 0x01
6750 #define _PSMC2PR1 0x02
6751 #define _PSMC2PR2 0x04
6752 #define _PSMC2PR3 0x08
6753 #define _PSMC2PR4 0x10
6754 #define _PSMC2PR5 0x20
6755 #define _PSMC2PR6 0x40
6756 #define _PSMC2PR7 0x80
6758 //==============================================================================
6761 //==============================================================================
6762 // PSMC2PRH Bits
6764 extern __at(0x0EC6) __sfr PSMC2PRH;
6766 typedef struct
6768 unsigned PSMC2PR8 : 1;
6769 unsigned PSMC2PR9 : 1;
6770 unsigned PSMC2PR10 : 1;
6771 unsigned PSMC2PR11 : 1;
6772 unsigned PSMC2PR12 : 1;
6773 unsigned PSMC2PR13 : 1;
6774 unsigned PSMC2PR14 : 1;
6775 unsigned PSMC2PR15 : 1;
6776 } __PSMC2PRHbits_t;
6778 extern __at(0x0EC6) volatile __PSMC2PRHbits_t PSMC2PRHbits;
6780 #define _PSMC2PR8 0x01
6781 #define _PSMC2PR9 0x02
6782 #define _PSMC2PR10 0x04
6783 #define _PSMC2PR11 0x08
6784 #define _PSMC2PR12 0x10
6785 #define _PSMC2PR13 0x20
6786 #define _PSMC2PR14 0x40
6787 #define _PSMC2PR15 0x80
6789 //==============================================================================
6791 extern __at(0x0EC7) __sfr PSMC2TMR;
6793 //==============================================================================
6794 // PSMC2TMRL Bits
6796 extern __at(0x0EC7) __sfr PSMC2TMRL;
6798 typedef struct
6800 unsigned PSMC2TMR0 : 1;
6801 unsigned PSMC2TMR1 : 1;
6802 unsigned PSMC2TMR2 : 1;
6803 unsigned PSMC2TMR3 : 1;
6804 unsigned PSMC2TMR4 : 1;
6805 unsigned PSMC2TMR5 : 1;
6806 unsigned PSMC2TMR6 : 1;
6807 unsigned PSMC2TMR7 : 1;
6808 } __PSMC2TMRLbits_t;
6810 extern __at(0x0EC7) volatile __PSMC2TMRLbits_t PSMC2TMRLbits;
6812 #define _PSMC2TMR0 0x01
6813 #define _PSMC2TMR1 0x02
6814 #define _PSMC2TMR2 0x04
6815 #define _PSMC2TMR3 0x08
6816 #define _PSMC2TMR4 0x10
6817 #define _PSMC2TMR5 0x20
6818 #define _PSMC2TMR6 0x40
6819 #define _PSMC2TMR7 0x80
6821 //==============================================================================
6824 //==============================================================================
6825 // PSMC2TMRH Bits
6827 extern __at(0x0EC8) __sfr PSMC2TMRH;
6829 typedef struct
6831 unsigned PSMC2TMR8 : 1;
6832 unsigned PSMC2TMR9 : 1;
6833 unsigned PSMC2TMR10 : 1;
6834 unsigned PSMC2TMR11 : 1;
6835 unsigned PSMC2TMR12 : 1;
6836 unsigned PSMC2TMR13 : 1;
6837 unsigned PSMC2TMR14 : 1;
6838 unsigned PSMC2TMR15 : 1;
6839 } __PSMC2TMRHbits_t;
6841 extern __at(0x0EC8) volatile __PSMC2TMRHbits_t PSMC2TMRHbits;
6843 #define _PSMC2TMR8 0x01
6844 #define _PSMC2TMR9 0x02
6845 #define _PSMC2TMR10 0x04
6846 #define _PSMC2TMR11 0x08
6847 #define _PSMC2TMR12 0x10
6848 #define _PSMC2TMR13 0x20
6849 #define _PSMC2TMR14 0x40
6850 #define _PSMC2TMR15 0x80
6852 //==============================================================================
6855 //==============================================================================
6856 // PSMC2DBR Bits
6858 extern __at(0x0EC9) __sfr PSMC2DBR;
6860 typedef struct
6862 unsigned PSMC2DBR0 : 1;
6863 unsigned PSMC2DBR1 : 1;
6864 unsigned PSMC2DBR2 : 1;
6865 unsigned PSMC2DBR3 : 1;
6866 unsigned PSMC2DBR4 : 1;
6867 unsigned PSMC2DBR5 : 1;
6868 unsigned PSMC2DBR6 : 1;
6869 unsigned PSMC2DBR7 : 1;
6870 } __PSMC2DBRbits_t;
6872 extern __at(0x0EC9) volatile __PSMC2DBRbits_t PSMC2DBRbits;
6874 #define _PSMC2DBR0 0x01
6875 #define _PSMC2DBR1 0x02
6876 #define _PSMC2DBR2 0x04
6877 #define _PSMC2DBR3 0x08
6878 #define _PSMC2DBR4 0x10
6879 #define _PSMC2DBR5 0x20
6880 #define _PSMC2DBR6 0x40
6881 #define _PSMC2DBR7 0x80
6883 //==============================================================================
6886 //==============================================================================
6887 // PSMC2DBF Bits
6889 extern __at(0x0ECA) __sfr PSMC2DBF;
6891 typedef struct
6893 unsigned PSMC2DBF0 : 1;
6894 unsigned PSMC2DBF1 : 1;
6895 unsigned PSMC2DBF2 : 1;
6896 unsigned PSMC2DBF3 : 1;
6897 unsigned PSMC2DBF4 : 1;
6898 unsigned PSMC2DBF5 : 1;
6899 unsigned PSMC2DBF6 : 1;
6900 unsigned PSMC2DBF7 : 1;
6901 } __PSMC2DBFbits_t;
6903 extern __at(0x0ECA) volatile __PSMC2DBFbits_t PSMC2DBFbits;
6905 #define _PSMC2DBF0 0x01
6906 #define _PSMC2DBF1 0x02
6907 #define _PSMC2DBF2 0x04
6908 #define _PSMC2DBF3 0x08
6909 #define _PSMC2DBF4 0x10
6910 #define _PSMC2DBF5 0x20
6911 #define _PSMC2DBF6 0x40
6912 #define _PSMC2DBF7 0x80
6914 //==============================================================================
6917 //==============================================================================
6918 // PSMC2BLKR Bits
6920 extern __at(0x0ECB) __sfr PSMC2BLKR;
6922 typedef struct
6924 unsigned PSMC2BLKR0 : 1;
6925 unsigned PSMC2BLKR1 : 1;
6926 unsigned PSMC2BLKR2 : 1;
6927 unsigned PSMC2BLKR3 : 1;
6928 unsigned PSMC2BLKR4 : 1;
6929 unsigned PSMC2BLKR5 : 1;
6930 unsigned PSMC2BLKR6 : 1;
6931 unsigned PSMC2BLKR7 : 1;
6932 } __PSMC2BLKRbits_t;
6934 extern __at(0x0ECB) volatile __PSMC2BLKRbits_t PSMC2BLKRbits;
6936 #define _PSMC2BLKR0 0x01
6937 #define _PSMC2BLKR1 0x02
6938 #define _PSMC2BLKR2 0x04
6939 #define _PSMC2BLKR3 0x08
6940 #define _PSMC2BLKR4 0x10
6941 #define _PSMC2BLKR5 0x20
6942 #define _PSMC2BLKR6 0x40
6943 #define _PSMC2BLKR7 0x80
6945 //==============================================================================
6948 //==============================================================================
6949 // PSMC2BLKF Bits
6951 extern __at(0x0ECC) __sfr PSMC2BLKF;
6953 typedef struct
6955 unsigned PSMC2BLKF0 : 1;
6956 unsigned PSMC2BLKF1 : 1;
6957 unsigned PSMC2BLKF2 : 1;
6958 unsigned PSMC2BLKF3 : 1;
6959 unsigned PSMC2BLKF4 : 1;
6960 unsigned PSMC2BLKF5 : 1;
6961 unsigned PSMC2BLKF6 : 1;
6962 unsigned PSMC2BLKF7 : 1;
6963 } __PSMC2BLKFbits_t;
6965 extern __at(0x0ECC) volatile __PSMC2BLKFbits_t PSMC2BLKFbits;
6967 #define _PSMC2BLKF0 0x01
6968 #define _PSMC2BLKF1 0x02
6969 #define _PSMC2BLKF2 0x04
6970 #define _PSMC2BLKF3 0x08
6971 #define _PSMC2BLKF4 0x10
6972 #define _PSMC2BLKF5 0x20
6973 #define _PSMC2BLKF6 0x40
6974 #define _PSMC2BLKF7 0x80
6976 //==============================================================================
6979 //==============================================================================
6980 // PSMC2FFA Bits
6982 extern __at(0x0ECD) __sfr PSMC2FFA;
6984 typedef union
6986 struct
6988 unsigned PSMC2FFA0 : 1;
6989 unsigned PSMC2FFA1 : 1;
6990 unsigned PSMC2FFA2 : 1;
6991 unsigned PSMC2FFA3 : 1;
6992 unsigned : 1;
6993 unsigned : 1;
6994 unsigned : 1;
6995 unsigned : 1;
6998 struct
7000 unsigned PSMC2FFA : 4;
7001 unsigned : 4;
7003 } __PSMC2FFAbits_t;
7005 extern __at(0x0ECD) volatile __PSMC2FFAbits_t PSMC2FFAbits;
7007 #define _PSMC2FFA0 0x01
7008 #define _PSMC2FFA1 0x02
7009 #define _PSMC2FFA2 0x04
7010 #define _PSMC2FFA3 0x08
7012 //==============================================================================
7015 //==============================================================================
7016 // PSMC2STR0 Bits
7018 extern __at(0x0ECE) __sfr PSMC2STR0;
7020 typedef struct
7022 unsigned P2STRA : 1;
7023 unsigned P2STRB : 1;
7024 unsigned : 1;
7025 unsigned : 1;
7026 unsigned : 1;
7027 unsigned : 1;
7028 unsigned : 1;
7029 unsigned : 1;
7030 } __PSMC2STR0bits_t;
7032 extern __at(0x0ECE) volatile __PSMC2STR0bits_t PSMC2STR0bits;
7034 #define _P2STRA 0x01
7035 #define _P2STRB 0x02
7037 //==============================================================================
7040 //==============================================================================
7041 // PSMC2STR1 Bits
7043 extern __at(0x0ECF) __sfr PSMC2STR1;
7045 typedef struct
7047 unsigned P2HSMEN : 1;
7048 unsigned P2LSMEN : 1;
7049 unsigned : 1;
7050 unsigned : 1;
7051 unsigned : 1;
7052 unsigned : 1;
7053 unsigned : 1;
7054 unsigned P2SSYNC : 1;
7055 } __PSMC2STR1bits_t;
7057 extern __at(0x0ECF) volatile __PSMC2STR1bits_t PSMC2STR1bits;
7059 #define _P2HSMEN 0x01
7060 #define _P2LSMEN 0x02
7061 #define _P2SSYNC 0x80
7063 //==============================================================================
7066 //==============================================================================
7067 // PSMC3CON Bits
7069 extern __at(0x0ED1) __sfr PSMC3CON;
7071 typedef union
7073 struct
7075 unsigned P3MODE0 : 1;
7076 unsigned P3MODE1 : 1;
7077 unsigned P3MODE2 : 1;
7078 unsigned P3MODE3 : 1;
7079 unsigned P3DBRE : 1;
7080 unsigned P3DBFE : 1;
7081 unsigned PSMC3LD : 1;
7082 unsigned PSMC3EN : 1;
7085 struct
7087 unsigned P3MODE : 4;
7088 unsigned : 4;
7090 } __PSMC3CONbits_t;
7092 extern __at(0x0ED1) volatile __PSMC3CONbits_t PSMC3CONbits;
7094 #define _P3MODE0 0x01
7095 #define _P3MODE1 0x02
7096 #define _P3MODE2 0x04
7097 #define _P3MODE3 0x08
7098 #define _P3DBRE 0x10
7099 #define _P3DBFE 0x20
7100 #define _PSMC3LD 0x40
7101 #define _PSMC3EN 0x80
7103 //==============================================================================
7106 //==============================================================================
7107 // PSMC3MDL Bits
7109 extern __at(0x0ED2) __sfr PSMC3MDL;
7111 typedef union
7113 struct
7115 unsigned P3MSRC0 : 1;
7116 unsigned P3MSRC1 : 1;
7117 unsigned P3MSRC2 : 1;
7118 unsigned P3MSRC3 : 1;
7119 unsigned : 1;
7120 unsigned P3MDLBIT : 1;
7121 unsigned P3MDLPOL : 1;
7122 unsigned P3MDLEN : 1;
7125 struct
7127 unsigned P3MSRC : 4;
7128 unsigned : 4;
7130 } __PSMC3MDLbits_t;
7132 extern __at(0x0ED2) volatile __PSMC3MDLbits_t PSMC3MDLbits;
7134 #define _P3MSRC0 0x01
7135 #define _P3MSRC1 0x02
7136 #define _P3MSRC2 0x04
7137 #define _P3MSRC3 0x08
7138 #define _P3MDLBIT 0x20
7139 #define _P3MDLPOL 0x40
7140 #define _P3MDLEN 0x80
7142 //==============================================================================
7145 //==============================================================================
7146 // PSMC3SYNC Bits
7148 extern __at(0x0ED3) __sfr PSMC3SYNC;
7150 typedef union
7152 struct
7154 unsigned P3SYNC0 : 1;
7155 unsigned P3SYNC1 : 1;
7156 unsigned P3SYNC2 : 1;
7157 unsigned : 1;
7158 unsigned : 1;
7159 unsigned P3DCPOL : 1;
7160 unsigned P3PRPOL : 1;
7161 unsigned P3POFST : 1;
7164 struct
7166 unsigned P3SYNC : 3;
7167 unsigned : 5;
7169 } __PSMC3SYNCbits_t;
7171 extern __at(0x0ED3) volatile __PSMC3SYNCbits_t PSMC3SYNCbits;
7173 #define _P3SYNC0 0x01
7174 #define _P3SYNC1 0x02
7175 #define _P3SYNC2 0x04
7176 #define _P3DCPOL 0x20
7177 #define _P3PRPOL 0x40
7178 #define _P3POFST 0x80
7180 //==============================================================================
7183 //==============================================================================
7184 // PSMC3CLK Bits
7186 extern __at(0x0ED4) __sfr PSMC3CLK;
7188 typedef union
7190 struct
7192 unsigned P3CSRC0 : 1;
7193 unsigned P3CSRC1 : 1;
7194 unsigned : 1;
7195 unsigned : 1;
7196 unsigned P3CPRE0 : 1;
7197 unsigned P3CPRE1 : 1;
7198 unsigned : 1;
7199 unsigned : 1;
7202 struct
7204 unsigned P3CSRC : 2;
7205 unsigned : 6;
7208 struct
7210 unsigned : 4;
7211 unsigned P3CPRE : 2;
7212 unsigned : 2;
7214 } __PSMC3CLKbits_t;
7216 extern __at(0x0ED4) volatile __PSMC3CLKbits_t PSMC3CLKbits;
7218 #define _P3CSRC0 0x01
7219 #define _P3CSRC1 0x02
7220 #define _P3CPRE0 0x10
7221 #define _P3CPRE1 0x20
7223 //==============================================================================
7226 //==============================================================================
7227 // PSMC3OEN Bits
7229 extern __at(0x0ED5) __sfr PSMC3OEN;
7231 typedef struct
7233 unsigned P3OEA : 1;
7234 unsigned P3OEB : 1;
7235 unsigned P3OEC : 1;
7236 unsigned P3OED : 1;
7237 unsigned P3OEE : 1;
7238 unsigned P3OEF : 1;
7239 unsigned : 1;
7240 unsigned : 1;
7241 } __PSMC3OENbits_t;
7243 extern __at(0x0ED5) volatile __PSMC3OENbits_t PSMC3OENbits;
7245 #define _P3OEA 0x01
7246 #define _P3OEB 0x02
7247 #define _P3OEC 0x04
7248 #define _P3OED 0x08
7249 #define _P3OEE 0x10
7250 #define _P3OEF 0x20
7252 //==============================================================================
7255 //==============================================================================
7256 // PSMC3POL Bits
7258 extern __at(0x0ED6) __sfr PSMC3POL;
7260 typedef struct
7262 unsigned P3POLA : 1;
7263 unsigned P3POLB : 1;
7264 unsigned P3POLC : 1;
7265 unsigned P3POLD : 1;
7266 unsigned P3POLE : 1;
7267 unsigned P3POLF : 1;
7268 unsigned P3INPOL : 1;
7269 unsigned : 1;
7270 } __PSMC3POLbits_t;
7272 extern __at(0x0ED6) volatile __PSMC3POLbits_t PSMC3POLbits;
7274 #define _P3POLA 0x01
7275 #define _P3POLB 0x02
7276 #define _P3POLC 0x04
7277 #define _P3POLD 0x08
7278 #define _P3POLE 0x10
7279 #define _P3POLF 0x20
7280 #define _P3INPOL 0x40
7282 //==============================================================================
7285 //==============================================================================
7286 // PSMC3BLNK Bits
7288 extern __at(0x0ED7) __sfr PSMC3BLNK;
7290 typedef union
7292 struct
7294 unsigned P3REBM0 : 1;
7295 unsigned P3REBM1 : 1;
7296 unsigned : 1;
7297 unsigned : 1;
7298 unsigned P3FEBM0 : 1;
7299 unsigned P3FEBM1 : 1;
7300 unsigned : 1;
7301 unsigned : 1;
7304 struct
7306 unsigned P3REBM : 2;
7307 unsigned : 6;
7310 struct
7312 unsigned : 4;
7313 unsigned P3FEBM : 2;
7314 unsigned : 2;
7316 } __PSMC3BLNKbits_t;
7318 extern __at(0x0ED7) volatile __PSMC3BLNKbits_t PSMC3BLNKbits;
7320 #define _P3REBM0 0x01
7321 #define _P3REBM1 0x02
7322 #define _P3FEBM0 0x10
7323 #define _P3FEBM1 0x20
7325 //==============================================================================
7328 //==============================================================================
7329 // PSMC3REBS Bits
7331 extern __at(0x0ED8) __sfr PSMC3REBS;
7333 typedef struct
7335 unsigned : 1;
7336 unsigned P3REBSC1 : 1;
7337 unsigned P3REBSC2 : 1;
7338 unsigned P3REBSC3 : 1;
7339 unsigned P3REBSC4 : 1;
7340 unsigned : 1;
7341 unsigned : 1;
7342 unsigned P3REBSIN : 1;
7343 } __PSMC3REBSbits_t;
7345 extern __at(0x0ED8) volatile __PSMC3REBSbits_t PSMC3REBSbits;
7347 #define _P3REBSC1 0x02
7348 #define _P3REBSC2 0x04
7349 #define _P3REBSC3 0x08
7350 #define _P3REBSC4 0x10
7351 #define _P3REBSIN 0x80
7353 //==============================================================================
7356 //==============================================================================
7357 // PSMC3FEBS Bits
7359 extern __at(0x0ED9) __sfr PSMC3FEBS;
7361 typedef struct
7363 unsigned : 1;
7364 unsigned P3FEBSC1 : 1;
7365 unsigned P3FEBSC2 : 1;
7366 unsigned P3FEBSC3 : 1;
7367 unsigned P3FEBSC4 : 1;
7368 unsigned : 1;
7369 unsigned : 1;
7370 unsigned P3FEBSIN : 1;
7371 } __PSMC3FEBSbits_t;
7373 extern __at(0x0ED9) volatile __PSMC3FEBSbits_t PSMC3FEBSbits;
7375 #define _P3FEBSC1 0x02
7376 #define _P3FEBSC2 0x04
7377 #define _P3FEBSC3 0x08
7378 #define _P3FEBSC4 0x10
7379 #define _P3FEBSIN 0x80
7381 //==============================================================================
7384 //==============================================================================
7385 // PSMC3PHS Bits
7387 extern __at(0x0EDA) __sfr PSMC3PHS;
7389 typedef struct
7391 unsigned P3PHST : 1;
7392 unsigned P3PHSC1 : 1;
7393 unsigned P3PHSC2 : 1;
7394 unsigned P3PHSC3 : 1;
7395 unsigned P3PHSC4 : 1;
7396 unsigned : 1;
7397 unsigned : 1;
7398 unsigned P3PHSIN : 1;
7399 } __PSMC3PHSbits_t;
7401 extern __at(0x0EDA) volatile __PSMC3PHSbits_t PSMC3PHSbits;
7403 #define _P3PHST 0x01
7404 #define _P3PHSC1 0x02
7405 #define _P3PHSC2 0x04
7406 #define _P3PHSC3 0x08
7407 #define _P3PHSC4 0x10
7408 #define _P3PHSIN 0x80
7410 //==============================================================================
7413 //==============================================================================
7414 // PSMC3DCS Bits
7416 extern __at(0x0EDB) __sfr PSMC3DCS;
7418 typedef struct
7420 unsigned P3DCST : 1;
7421 unsigned P3DCSC1 : 1;
7422 unsigned P3DCSC2 : 1;
7423 unsigned P3DCSC3 : 1;
7424 unsigned P3DCSC4 : 1;
7425 unsigned : 1;
7426 unsigned : 1;
7427 unsigned P3DCSIN : 1;
7428 } __PSMC3DCSbits_t;
7430 extern __at(0x0EDB) volatile __PSMC3DCSbits_t PSMC3DCSbits;
7432 #define _P3DCST 0x01
7433 #define _P3DCSC1 0x02
7434 #define _P3DCSC2 0x04
7435 #define _P3DCSC3 0x08
7436 #define _P3DCSC4 0x10
7437 #define _P3DCSIN 0x80
7439 //==============================================================================
7442 //==============================================================================
7443 // PSMC3PRS Bits
7445 extern __at(0x0EDC) __sfr PSMC3PRS;
7447 typedef struct
7449 unsigned P3PRST : 1;
7450 unsigned P3PRSC1 : 1;
7451 unsigned P3PRSC2 : 1;
7452 unsigned P3PRSC3 : 1;
7453 unsigned P3PRSC4 : 1;
7454 unsigned : 1;
7455 unsigned : 1;
7456 unsigned P3PRSIN : 1;
7457 } __PSMC3PRSbits_t;
7459 extern __at(0x0EDC) volatile __PSMC3PRSbits_t PSMC3PRSbits;
7461 #define _P3PRST 0x01
7462 #define _P3PRSC1 0x02
7463 #define _P3PRSC2 0x04
7464 #define _P3PRSC3 0x08
7465 #define _P3PRSC4 0x10
7466 #define _P3PRSIN 0x80
7468 //==============================================================================
7471 //==============================================================================
7472 // PSMC3ASDC Bits
7474 extern __at(0x0EDD) __sfr PSMC3ASDC;
7476 typedef struct
7478 unsigned P3ASDOV : 1;
7479 unsigned : 1;
7480 unsigned : 1;
7481 unsigned : 1;
7482 unsigned : 1;
7483 unsigned P3ARSEN : 1;
7484 unsigned P3ASDEN : 1;
7485 unsigned P3ASE : 1;
7486 } __PSMC3ASDCbits_t;
7488 extern __at(0x0EDD) volatile __PSMC3ASDCbits_t PSMC3ASDCbits;
7490 #define _P3ASDOV 0x01
7491 #define _P3ARSEN 0x20
7492 #define _P3ASDEN 0x40
7493 #define _P3ASE 0x80
7495 //==============================================================================
7498 //==============================================================================
7499 // PSMC3ASDL Bits
7501 extern __at(0x0EDE) __sfr PSMC3ASDL;
7503 typedef struct
7505 unsigned P3ASDLA : 1;
7506 unsigned P3ASDLB : 1;
7507 unsigned P3ASDLC : 1;
7508 unsigned P3ASDLD : 1;
7509 unsigned P3ASDLE : 1;
7510 unsigned P3ASDLF : 1;
7511 unsigned : 1;
7512 unsigned : 1;
7513 } __PSMC3ASDLbits_t;
7515 extern __at(0x0EDE) volatile __PSMC3ASDLbits_t PSMC3ASDLbits;
7517 #define _P3ASDLA 0x01
7518 #define _P3ASDLB 0x02
7519 #define _P3ASDLC 0x04
7520 #define _P3ASDLD 0x08
7521 #define _P3ASDLE 0x10
7522 #define _P3ASDLF 0x20
7524 //==============================================================================
7527 //==============================================================================
7528 // PSMC3ASDS Bits
7530 extern __at(0x0EDF) __sfr PSMC3ASDS;
7532 typedef struct
7534 unsigned : 1;
7535 unsigned P3ASDSC1 : 1;
7536 unsigned P3ASDSC2 : 1;
7537 unsigned P3ASDSC3 : 1;
7538 unsigned P3ASDSC4 : 1;
7539 unsigned : 1;
7540 unsigned : 1;
7541 unsigned P3ASDSIN : 1;
7542 } __PSMC3ASDSbits_t;
7544 extern __at(0x0EDF) volatile __PSMC3ASDSbits_t PSMC3ASDSbits;
7546 #define _P3ASDSC1 0x02
7547 #define _P3ASDSC2 0x04
7548 #define _P3ASDSC3 0x08
7549 #define _P3ASDSC4 0x10
7550 #define _P3ASDSIN 0x80
7552 //==============================================================================
7555 //==============================================================================
7556 // PSMC3INT Bits
7558 extern __at(0x0EE0) __sfr PSMC3INT;
7560 typedef struct
7562 unsigned P3TPRIF : 1;
7563 unsigned P3TDCIF : 1;
7564 unsigned P3TPHIF : 1;
7565 unsigned P3TOVIF : 1;
7566 unsigned P3TPRIE : 1;
7567 unsigned P3TDCIE : 1;
7568 unsigned P3TPHIE : 1;
7569 unsigned P3TOVIE : 1;
7570 } __PSMC3INTbits_t;
7572 extern __at(0x0EE0) volatile __PSMC3INTbits_t PSMC3INTbits;
7574 #define _P3TPRIF 0x01
7575 #define _P3TDCIF 0x02
7576 #define _P3TPHIF 0x04
7577 #define _P3TOVIF 0x08
7578 #define _P3TPRIE 0x10
7579 #define _P3TDCIE 0x20
7580 #define _P3TPHIE 0x40
7581 #define _P3TOVIE 0x80
7583 //==============================================================================
7585 extern __at(0x0EE1) __sfr PSMC3PH;
7587 //==============================================================================
7588 // PSMC3PHL Bits
7590 extern __at(0x0EE1) __sfr PSMC3PHL;
7592 typedef struct
7594 unsigned PSMC3PH0 : 1;
7595 unsigned PSMC3PH1 : 1;
7596 unsigned PSMC3PH2 : 1;
7597 unsigned PSMC3PH3 : 1;
7598 unsigned PSMC3PH4 : 1;
7599 unsigned PSMC3PH5 : 1;
7600 unsigned PSMC3PH6 : 1;
7601 unsigned PSMC3PH7 : 1;
7602 } __PSMC3PHLbits_t;
7604 extern __at(0x0EE1) volatile __PSMC3PHLbits_t PSMC3PHLbits;
7606 #define _PSMC3PH0 0x01
7607 #define _PSMC3PH1 0x02
7608 #define _PSMC3PH2 0x04
7609 #define _PSMC3PH3 0x08
7610 #define _PSMC3PH4 0x10
7611 #define _PSMC3PH5 0x20
7612 #define _PSMC3PH6 0x40
7613 #define _PSMC3PH7 0x80
7615 //==============================================================================
7618 //==============================================================================
7619 // PSMC3PHH Bits
7621 extern __at(0x0EE2) __sfr PSMC3PHH;
7623 typedef struct
7625 unsigned PSMC3PH8 : 1;
7626 unsigned PSMC3PH9 : 1;
7627 unsigned PSMC3PH10 : 1;
7628 unsigned PSMC3PH11 : 1;
7629 unsigned PSMC3PH12 : 1;
7630 unsigned PSMC3PH13 : 1;
7631 unsigned PSMC3PH14 : 1;
7632 unsigned PSMC3PH15 : 1;
7633 } __PSMC3PHHbits_t;
7635 extern __at(0x0EE2) volatile __PSMC3PHHbits_t PSMC3PHHbits;
7637 #define _PSMC3PH8 0x01
7638 #define _PSMC3PH9 0x02
7639 #define _PSMC3PH10 0x04
7640 #define _PSMC3PH11 0x08
7641 #define _PSMC3PH12 0x10
7642 #define _PSMC3PH13 0x20
7643 #define _PSMC3PH14 0x40
7644 #define _PSMC3PH15 0x80
7646 //==============================================================================
7648 extern __at(0x0EE3) __sfr PSMC3DC;
7650 //==============================================================================
7651 // PSMC3DCL Bits
7653 extern __at(0x0EE3) __sfr PSMC3DCL;
7655 typedef struct
7657 unsigned PSMC3DC0 : 1;
7658 unsigned PSMC3DC1 : 1;
7659 unsigned PSMC3DC2 : 1;
7660 unsigned PSMC3DC3 : 1;
7661 unsigned PSMC3DC4 : 1;
7662 unsigned PSMC3DC5 : 1;
7663 unsigned PSMC3DC6 : 1;
7664 unsigned PSMC3DC7 : 1;
7665 } __PSMC3DCLbits_t;
7667 extern __at(0x0EE3) volatile __PSMC3DCLbits_t PSMC3DCLbits;
7669 #define _PSMC3DC0 0x01
7670 #define _PSMC3DC1 0x02
7671 #define _PSMC3DC2 0x04
7672 #define _PSMC3DC3 0x08
7673 #define _PSMC3DC4 0x10
7674 #define _PSMC3DC5 0x20
7675 #define _PSMC3DC6 0x40
7676 #define _PSMC3DC7 0x80
7678 //==============================================================================
7681 //==============================================================================
7682 // PSMC3DCH Bits
7684 extern __at(0x0EE4) __sfr PSMC3DCH;
7686 typedef struct
7688 unsigned PSMC3DC8 : 1;
7689 unsigned PSMC3DC9 : 1;
7690 unsigned PSMC3DC10 : 1;
7691 unsigned PSMC3DC11 : 1;
7692 unsigned PSMC3DC12 : 1;
7693 unsigned PSMC3DC13 : 1;
7694 unsigned PSMC3DC14 : 1;
7695 unsigned PSMC3DC15 : 1;
7696 } __PSMC3DCHbits_t;
7698 extern __at(0x0EE4) volatile __PSMC3DCHbits_t PSMC3DCHbits;
7700 #define _PSMC3DC8 0x01
7701 #define _PSMC3DC9 0x02
7702 #define _PSMC3DC10 0x04
7703 #define _PSMC3DC11 0x08
7704 #define _PSMC3DC12 0x10
7705 #define _PSMC3DC13 0x20
7706 #define _PSMC3DC14 0x40
7707 #define _PSMC3DC15 0x80
7709 //==============================================================================
7711 extern __at(0x0EE5) __sfr PSMC3PR;
7713 //==============================================================================
7714 // PSMC3PRL Bits
7716 extern __at(0x0EE5) __sfr PSMC3PRL;
7718 typedef struct
7720 unsigned PSMC3PR0 : 1;
7721 unsigned PSMC3PR1 : 1;
7722 unsigned PSMC3PR2 : 1;
7723 unsigned PSMC3PR3 : 1;
7724 unsigned PSMC3PR4 : 1;
7725 unsigned PSMC3PR5 : 1;
7726 unsigned PSMC3PR6 : 1;
7727 unsigned PSMC3PR7 : 1;
7728 } __PSMC3PRLbits_t;
7730 extern __at(0x0EE5) volatile __PSMC3PRLbits_t PSMC3PRLbits;
7732 #define _PSMC3PR0 0x01
7733 #define _PSMC3PR1 0x02
7734 #define _PSMC3PR2 0x04
7735 #define _PSMC3PR3 0x08
7736 #define _PSMC3PR4 0x10
7737 #define _PSMC3PR5 0x20
7738 #define _PSMC3PR6 0x40
7739 #define _PSMC3PR7 0x80
7741 //==============================================================================
7744 //==============================================================================
7745 // PSMC3PRH Bits
7747 extern __at(0x0EE6) __sfr PSMC3PRH;
7749 typedef struct
7751 unsigned PSMC3PR8 : 1;
7752 unsigned PSMC3PR9 : 1;
7753 unsigned PSMC3PR10 : 1;
7754 unsigned PSMC3PR11 : 1;
7755 unsigned PSMC3PR12 : 1;
7756 unsigned PSMC3PR13 : 1;
7757 unsigned PSMC3PR14 : 1;
7758 unsigned PSMC3PR15 : 1;
7759 } __PSMC3PRHbits_t;
7761 extern __at(0x0EE6) volatile __PSMC3PRHbits_t PSMC3PRHbits;
7763 #define _PSMC3PR8 0x01
7764 #define _PSMC3PR9 0x02
7765 #define _PSMC3PR10 0x04
7766 #define _PSMC3PR11 0x08
7767 #define _PSMC3PR12 0x10
7768 #define _PSMC3PR13 0x20
7769 #define _PSMC3PR14 0x40
7770 #define _PSMC3PR15 0x80
7772 //==============================================================================
7774 extern __at(0x0EE7) __sfr PSMC3TMR;
7776 //==============================================================================
7777 // PSMC3TMRL Bits
7779 extern __at(0x0EE7) __sfr PSMC3TMRL;
7781 typedef struct
7783 unsigned PSMC3TMR0 : 1;
7784 unsigned PSMC3TMR1 : 1;
7785 unsigned PSMC3TMR2 : 1;
7786 unsigned PSMC3TMR3 : 1;
7787 unsigned PSMC3TMR4 : 1;
7788 unsigned PSMC3TMR5 : 1;
7789 unsigned PSMC3TMR6 : 1;
7790 unsigned PSMC3TMR7 : 1;
7791 } __PSMC3TMRLbits_t;
7793 extern __at(0x0EE7) volatile __PSMC3TMRLbits_t PSMC3TMRLbits;
7795 #define _PSMC3TMR0 0x01
7796 #define _PSMC3TMR1 0x02
7797 #define _PSMC3TMR2 0x04
7798 #define _PSMC3TMR3 0x08
7799 #define _PSMC3TMR4 0x10
7800 #define _PSMC3TMR5 0x20
7801 #define _PSMC3TMR6 0x40
7802 #define _PSMC3TMR7 0x80
7804 //==============================================================================
7807 //==============================================================================
7808 // PSMC3TMRH Bits
7810 extern __at(0x0EE8) __sfr PSMC3TMRH;
7812 typedef struct
7814 unsigned PSMC3TMR8 : 1;
7815 unsigned PSMC3TMR9 : 1;
7816 unsigned PSMC3TMR10 : 1;
7817 unsigned PSMC3TMR11 : 1;
7818 unsigned PSMC3TMR12 : 1;
7819 unsigned PSMC3TMR13 : 1;
7820 unsigned PSMC3TMR14 : 1;
7821 unsigned PSMC3TMR15 : 1;
7822 } __PSMC3TMRHbits_t;
7824 extern __at(0x0EE8) volatile __PSMC3TMRHbits_t PSMC3TMRHbits;
7826 #define _PSMC3TMR8 0x01
7827 #define _PSMC3TMR9 0x02
7828 #define _PSMC3TMR10 0x04
7829 #define _PSMC3TMR11 0x08
7830 #define _PSMC3TMR12 0x10
7831 #define _PSMC3TMR13 0x20
7832 #define _PSMC3TMR14 0x40
7833 #define _PSMC3TMR15 0x80
7835 //==============================================================================
7838 //==============================================================================
7839 // PSMC3DBR Bits
7841 extern __at(0x0EE9) __sfr PSMC3DBR;
7843 typedef struct
7845 unsigned PSMC3DBR0 : 1;
7846 unsigned PSMC3DBR1 : 1;
7847 unsigned PSMC3DBR2 : 1;
7848 unsigned PSMC3DBR3 : 1;
7849 unsigned PSMC3DBR4 : 1;
7850 unsigned PSMC3DBR5 : 1;
7851 unsigned PSMC3DBR6 : 1;
7852 unsigned PSMC3DBR7 : 1;
7853 } __PSMC3DBRbits_t;
7855 extern __at(0x0EE9) volatile __PSMC3DBRbits_t PSMC3DBRbits;
7857 #define _PSMC3DBR0 0x01
7858 #define _PSMC3DBR1 0x02
7859 #define _PSMC3DBR2 0x04
7860 #define _PSMC3DBR3 0x08
7861 #define _PSMC3DBR4 0x10
7862 #define _PSMC3DBR5 0x20
7863 #define _PSMC3DBR6 0x40
7864 #define _PSMC3DBR7 0x80
7866 //==============================================================================
7869 //==============================================================================
7870 // PSMC3DBF Bits
7872 extern __at(0x0EEA) __sfr PSMC3DBF;
7874 typedef struct
7876 unsigned PSMC3DBF0 : 1;
7877 unsigned PSMC3DBF1 : 1;
7878 unsigned PSMC3DBF2 : 1;
7879 unsigned PSMC3DBF3 : 1;
7880 unsigned PSMC3DBF4 : 1;
7881 unsigned PSMC3DBF5 : 1;
7882 unsigned PSMC3DBF6 : 1;
7883 unsigned PSMC3DBF7 : 1;
7884 } __PSMC3DBFbits_t;
7886 extern __at(0x0EEA) volatile __PSMC3DBFbits_t PSMC3DBFbits;
7888 #define _PSMC3DBF0 0x01
7889 #define _PSMC3DBF1 0x02
7890 #define _PSMC3DBF2 0x04
7891 #define _PSMC3DBF3 0x08
7892 #define _PSMC3DBF4 0x10
7893 #define _PSMC3DBF5 0x20
7894 #define _PSMC3DBF6 0x40
7895 #define _PSMC3DBF7 0x80
7897 //==============================================================================
7900 //==============================================================================
7901 // PSMC3BLKR Bits
7903 extern __at(0x0EEB) __sfr PSMC3BLKR;
7905 typedef struct
7907 unsigned PSMC3BLKR0 : 1;
7908 unsigned PSMC3BLKR1 : 1;
7909 unsigned PSMC3BLKR2 : 1;
7910 unsigned PSMC3BLKR3 : 1;
7911 unsigned PSMC3BLKR4 : 1;
7912 unsigned PSMC3BLKR5 : 1;
7913 unsigned PSMC3BLKR6 : 1;
7914 unsigned PSMC3BLKR7 : 1;
7915 } __PSMC3BLKRbits_t;
7917 extern __at(0x0EEB) volatile __PSMC3BLKRbits_t PSMC3BLKRbits;
7919 #define _PSMC3BLKR0 0x01
7920 #define _PSMC3BLKR1 0x02
7921 #define _PSMC3BLKR2 0x04
7922 #define _PSMC3BLKR3 0x08
7923 #define _PSMC3BLKR4 0x10
7924 #define _PSMC3BLKR5 0x20
7925 #define _PSMC3BLKR6 0x40
7926 #define _PSMC3BLKR7 0x80
7928 //==============================================================================
7931 //==============================================================================
7932 // PSMC3BLKF Bits
7934 extern __at(0x0EEC) __sfr PSMC3BLKF;
7936 typedef struct
7938 unsigned PSMC3BLKF0 : 1;
7939 unsigned PSMC3BLKF1 : 1;
7940 unsigned PSMC3BLKF2 : 1;
7941 unsigned PSMC3BLKF3 : 1;
7942 unsigned PSMC3BLKF4 : 1;
7943 unsigned PSMC3BLKF5 : 1;
7944 unsigned PSMC3BLKF6 : 1;
7945 unsigned PSMC3BLKF7 : 1;
7946 } __PSMC3BLKFbits_t;
7948 extern __at(0x0EEC) volatile __PSMC3BLKFbits_t PSMC3BLKFbits;
7950 #define _PSMC3BLKF0 0x01
7951 #define _PSMC3BLKF1 0x02
7952 #define _PSMC3BLKF2 0x04
7953 #define _PSMC3BLKF3 0x08
7954 #define _PSMC3BLKF4 0x10
7955 #define _PSMC3BLKF5 0x20
7956 #define _PSMC3BLKF6 0x40
7957 #define _PSMC3BLKF7 0x80
7959 //==============================================================================
7962 //==============================================================================
7963 // PSMC3FFA Bits
7965 extern __at(0x0EED) __sfr PSMC3FFA;
7967 typedef union
7969 struct
7971 unsigned PSMC3FFA0 : 1;
7972 unsigned PSMC3FFA1 : 1;
7973 unsigned PSMC3FFA2 : 1;
7974 unsigned PSMC3FFA3 : 1;
7975 unsigned : 1;
7976 unsigned : 1;
7977 unsigned : 1;
7978 unsigned : 1;
7981 struct
7983 unsigned PSMC3FFA : 4;
7984 unsigned : 4;
7986 } __PSMC3FFAbits_t;
7988 extern __at(0x0EED) volatile __PSMC3FFAbits_t PSMC3FFAbits;
7990 #define _PSMC3FFA0 0x01
7991 #define _PSMC3FFA1 0x02
7992 #define _PSMC3FFA2 0x04
7993 #define _PSMC3FFA3 0x08
7995 //==============================================================================
7998 //==============================================================================
7999 // PSMC3STR0 Bits
8001 extern __at(0x0EEE) __sfr PSMC3STR0;
8003 typedef struct
8005 unsigned P3STRA : 1;
8006 unsigned P3STRB : 1;
8007 unsigned P3STRC : 1;
8008 unsigned P3STRD : 1;
8009 unsigned P3STRE : 1;
8010 unsigned P3STRF : 1;
8011 unsigned : 1;
8012 unsigned : 1;
8013 } __PSMC3STR0bits_t;
8015 extern __at(0x0EEE) volatile __PSMC3STR0bits_t PSMC3STR0bits;
8017 #define _P3STRA 0x01
8018 #define _P3STRB 0x02
8019 #define _P3STRC 0x04
8020 #define _P3STRD 0x08
8021 #define _P3STRE 0x10
8022 #define _P3STRF 0x20
8024 //==============================================================================
8027 //==============================================================================
8028 // PSMC3STR1 Bits
8030 extern __at(0x0EEF) __sfr PSMC3STR1;
8032 typedef struct
8034 unsigned P3HSMEN : 1;
8035 unsigned P3LSMEN : 1;
8036 unsigned : 1;
8037 unsigned : 1;
8038 unsigned : 1;
8039 unsigned : 1;
8040 unsigned : 1;
8041 unsigned P3SSYNC : 1;
8042 } __PSMC3STR1bits_t;
8044 extern __at(0x0EEF) volatile __PSMC3STR1bits_t PSMC3STR1bits;
8046 #define _P3HSMEN 0x01
8047 #define _P3LSMEN 0x02
8048 #define _P3SSYNC 0x80
8050 //==============================================================================
8053 //==============================================================================
8054 // PSMC4CON Bits
8056 extern __at(0x0F11) __sfr PSMC4CON;
8058 typedef union
8060 struct
8062 unsigned P4MODE0 : 1;
8063 unsigned P4MODE1 : 1;
8064 unsigned P4MODE2 : 1;
8065 unsigned P4MODE3 : 1;
8066 unsigned P4DBRE : 1;
8067 unsigned P4DBFE : 1;
8068 unsigned PSMC4LD : 1;
8069 unsigned PSMC4EN : 1;
8072 struct
8074 unsigned P4MODE : 4;
8075 unsigned : 4;
8077 } __PSMC4CONbits_t;
8079 extern __at(0x0F11) volatile __PSMC4CONbits_t PSMC4CONbits;
8081 #define _P4MODE0 0x01
8082 #define _P4MODE1 0x02
8083 #define _P4MODE2 0x04
8084 #define _P4MODE3 0x08
8085 #define _P4DBRE 0x10
8086 #define _P4DBFE 0x20
8087 #define _PSMC4LD 0x40
8088 #define _PSMC4EN 0x80
8090 //==============================================================================
8093 //==============================================================================
8094 // PSMC4MDL Bits
8096 extern __at(0x0F12) __sfr PSMC4MDL;
8098 typedef union
8100 struct
8102 unsigned P4MSRC0 : 1;
8103 unsigned P4MSRC1 : 1;
8104 unsigned P4MSRC2 : 1;
8105 unsigned P4MSRC3 : 1;
8106 unsigned : 1;
8107 unsigned P4MDLBIT : 1;
8108 unsigned P4MDLPOL : 1;
8109 unsigned P4MDLEN : 1;
8112 struct
8114 unsigned P4MSRC : 4;
8115 unsigned : 4;
8117 } __PSMC4MDLbits_t;
8119 extern __at(0x0F12) volatile __PSMC4MDLbits_t PSMC4MDLbits;
8121 #define _P4MSRC0 0x01
8122 #define _P4MSRC1 0x02
8123 #define _P4MSRC2 0x04
8124 #define _P4MSRC3 0x08
8125 #define _P4MDLBIT 0x20
8126 #define _P4MDLPOL 0x40
8127 #define _P4MDLEN 0x80
8129 //==============================================================================
8132 //==============================================================================
8133 // PSMC4SYNC Bits
8135 extern __at(0x0F13) __sfr PSMC4SYNC;
8137 typedef union
8139 struct
8141 unsigned P4SYNC0 : 1;
8142 unsigned P4SYNC1 : 1;
8143 unsigned P4SYNC2 : 1;
8144 unsigned : 1;
8145 unsigned : 1;
8146 unsigned P4DCPOL : 1;
8147 unsigned P4PRPOL : 1;
8148 unsigned P4POFST : 1;
8151 struct
8153 unsigned P4SYNC : 3;
8154 unsigned : 5;
8156 } __PSMC4SYNCbits_t;
8158 extern __at(0x0F13) volatile __PSMC4SYNCbits_t PSMC4SYNCbits;
8160 #define _P4SYNC0 0x01
8161 #define _P4SYNC1 0x02
8162 #define _P4SYNC2 0x04
8163 #define _P4DCPOL 0x20
8164 #define _P4PRPOL 0x40
8165 #define _P4POFST 0x80
8167 //==============================================================================
8170 //==============================================================================
8171 // PSMC4CLK Bits
8173 extern __at(0x0F14) __sfr PSMC4CLK;
8175 typedef union
8177 struct
8179 unsigned P4CSRC0 : 1;
8180 unsigned P4CSRC1 : 1;
8181 unsigned : 1;
8182 unsigned : 1;
8183 unsigned P4CPRE0 : 1;
8184 unsigned P4CPRE1 : 1;
8185 unsigned : 1;
8186 unsigned : 1;
8189 struct
8191 unsigned P4CSRC : 2;
8192 unsigned : 6;
8195 struct
8197 unsigned : 4;
8198 unsigned P4CPRE : 2;
8199 unsigned : 2;
8201 } __PSMC4CLKbits_t;
8203 extern __at(0x0F14) volatile __PSMC4CLKbits_t PSMC4CLKbits;
8205 #define _P4CSRC0 0x01
8206 #define _P4CSRC1 0x02
8207 #define _P4CPRE0 0x10
8208 #define _P4CPRE1 0x20
8210 //==============================================================================
8213 //==============================================================================
8214 // PSMC4OEN Bits
8216 extern __at(0x0F15) __sfr PSMC4OEN;
8218 typedef struct
8220 unsigned P4OEA : 1;
8221 unsigned P4OEB : 1;
8222 unsigned : 1;
8223 unsigned : 1;
8224 unsigned : 1;
8225 unsigned : 1;
8226 unsigned : 1;
8227 unsigned : 1;
8228 } __PSMC4OENbits_t;
8230 extern __at(0x0F15) volatile __PSMC4OENbits_t PSMC4OENbits;
8232 #define _P4OEA 0x01
8233 #define _P4OEB 0x02
8235 //==============================================================================
8238 //==============================================================================
8239 // PSMC4POL Bits
8241 extern __at(0x0F16) __sfr PSMC4POL;
8243 typedef struct
8245 unsigned P4POLA : 1;
8246 unsigned P4POLB : 1;
8247 unsigned : 1;
8248 unsigned : 1;
8249 unsigned : 1;
8250 unsigned : 1;
8251 unsigned P4INPOL : 1;
8252 unsigned : 1;
8253 } __PSMC4POLbits_t;
8255 extern __at(0x0F16) volatile __PSMC4POLbits_t PSMC4POLbits;
8257 #define _P4POLA 0x01
8258 #define _P4POLB 0x02
8259 #define _P4INPOL 0x40
8261 //==============================================================================
8264 //==============================================================================
8265 // PSMC4BLNK Bits
8267 extern __at(0x0F17) __sfr PSMC4BLNK;
8269 typedef union
8271 struct
8273 unsigned P4REBM0 : 1;
8274 unsigned P4REBM1 : 1;
8275 unsigned : 1;
8276 unsigned : 1;
8277 unsigned P4FEBM0 : 1;
8278 unsigned P4FEBM1 : 1;
8279 unsigned : 1;
8280 unsigned : 1;
8283 struct
8285 unsigned P4REBM : 2;
8286 unsigned : 6;
8289 struct
8291 unsigned : 4;
8292 unsigned P4FEBM : 2;
8293 unsigned : 2;
8295 } __PSMC4BLNKbits_t;
8297 extern __at(0x0F17) volatile __PSMC4BLNKbits_t PSMC4BLNKbits;
8299 #define _P4REBM0 0x01
8300 #define _P4REBM1 0x02
8301 #define _P4FEBM0 0x10
8302 #define _P4FEBM1 0x20
8304 //==============================================================================
8307 //==============================================================================
8308 // PSMC4REBS Bits
8310 extern __at(0x0F18) __sfr PSMC4REBS;
8312 typedef struct
8314 unsigned : 1;
8315 unsigned P4REBSC1 : 1;
8316 unsigned P4REBSC2 : 1;
8317 unsigned P4REBSC3 : 1;
8318 unsigned P4REBSC4 : 1;
8319 unsigned : 1;
8320 unsigned : 1;
8321 unsigned P4REBSIN : 1;
8322 } __PSMC4REBSbits_t;
8324 extern __at(0x0F18) volatile __PSMC4REBSbits_t PSMC4REBSbits;
8326 #define _P4REBSC1 0x02
8327 #define _P4REBSC2 0x04
8328 #define _P4REBSC3 0x08
8329 #define _P4REBSC4 0x10
8330 #define _P4REBSIN 0x80
8332 //==============================================================================
8335 //==============================================================================
8336 // PSMC4FEBS Bits
8338 extern __at(0x0F19) __sfr PSMC4FEBS;
8340 typedef struct
8342 unsigned : 1;
8343 unsigned P4FEBSC1 : 1;
8344 unsigned P4FEBSC2 : 1;
8345 unsigned P4FEBSC3 : 1;
8346 unsigned P4FEBSC4 : 1;
8347 unsigned : 1;
8348 unsigned : 1;
8349 unsigned P4FEBSIN : 1;
8350 } __PSMC4FEBSbits_t;
8352 extern __at(0x0F19) volatile __PSMC4FEBSbits_t PSMC4FEBSbits;
8354 #define _P4FEBSC1 0x02
8355 #define _P4FEBSC2 0x04
8356 #define _P4FEBSC3 0x08
8357 #define _P4FEBSC4 0x10
8358 #define _P4FEBSIN 0x80
8360 //==============================================================================
8363 //==============================================================================
8364 // PSMC4PHS Bits
8366 extern __at(0x0F1A) __sfr PSMC4PHS;
8368 typedef struct
8370 unsigned P4PHST : 1;
8371 unsigned P4PHSC1 : 1;
8372 unsigned P4PHSC2 : 1;
8373 unsigned P4PHSC3 : 1;
8374 unsigned P4PHSC4 : 1;
8375 unsigned : 1;
8376 unsigned : 1;
8377 unsigned P4PHSIN : 1;
8378 } __PSMC4PHSbits_t;
8380 extern __at(0x0F1A) volatile __PSMC4PHSbits_t PSMC4PHSbits;
8382 #define _P4PHST 0x01
8383 #define _P4PHSC1 0x02
8384 #define _P4PHSC2 0x04
8385 #define _P4PHSC3 0x08
8386 #define _P4PHSC4 0x10
8387 #define _P4PHSIN 0x80
8389 //==============================================================================
8392 //==============================================================================
8393 // PSMC4DCS Bits
8395 extern __at(0x0F1B) __sfr PSMC4DCS;
8397 typedef struct
8399 unsigned P4DCST : 1;
8400 unsigned P4DCSC1 : 1;
8401 unsigned P4DCSC2 : 1;
8402 unsigned P4DCSC3 : 1;
8403 unsigned P4DCSC4 : 1;
8404 unsigned : 1;
8405 unsigned : 1;
8406 unsigned P4DCSIN : 1;
8407 } __PSMC4DCSbits_t;
8409 extern __at(0x0F1B) volatile __PSMC4DCSbits_t PSMC4DCSbits;
8411 #define _P4DCST 0x01
8412 #define _P4DCSC1 0x02
8413 #define _P4DCSC2 0x04
8414 #define _P4DCSC3 0x08
8415 #define _P4DCSC4 0x10
8416 #define _P4DCSIN 0x80
8418 //==============================================================================
8421 //==============================================================================
8422 // PSMC4PRS Bits
8424 extern __at(0x0F1C) __sfr PSMC4PRS;
8426 typedef struct
8428 unsigned P4PRST : 1;
8429 unsigned P4PRSC1 : 1;
8430 unsigned P4PRSC2 : 1;
8431 unsigned P4PRSC3 : 1;
8432 unsigned P4PRSC4 : 1;
8433 unsigned : 1;
8434 unsigned : 1;
8435 unsigned P4PRSIN : 1;
8436 } __PSMC4PRSbits_t;
8438 extern __at(0x0F1C) volatile __PSMC4PRSbits_t PSMC4PRSbits;
8440 #define _P4PRST 0x01
8441 #define _P4PRSC1 0x02
8442 #define _P4PRSC2 0x04
8443 #define _P4PRSC3 0x08
8444 #define _P4PRSC4 0x10
8445 #define _P4PRSIN 0x80
8447 //==============================================================================
8450 //==============================================================================
8451 // PSMC4ASDC Bits
8453 extern __at(0x0F1D) __sfr PSMC4ASDC;
8455 typedef struct
8457 unsigned P4ASDOV : 1;
8458 unsigned : 1;
8459 unsigned : 1;
8460 unsigned : 1;
8461 unsigned : 1;
8462 unsigned P4ARSEN : 1;
8463 unsigned P4ASDEN : 1;
8464 unsigned P4ASE : 1;
8465 } __PSMC4ASDCbits_t;
8467 extern __at(0x0F1D) volatile __PSMC4ASDCbits_t PSMC4ASDCbits;
8469 #define _P4ASDOV 0x01
8470 #define _P4ARSEN 0x20
8471 #define _P4ASDEN 0x40
8472 #define _P4ASE 0x80
8474 //==============================================================================
8477 //==============================================================================
8478 // PSMC4ASDL Bits
8480 extern __at(0x0F1E) __sfr PSMC4ASDL;
8482 typedef struct
8484 unsigned P4ASDLA : 1;
8485 unsigned P4ASDLB : 1;
8486 unsigned : 1;
8487 unsigned : 1;
8488 unsigned : 1;
8489 unsigned : 1;
8490 unsigned : 1;
8491 unsigned : 1;
8492 } __PSMC4ASDLbits_t;
8494 extern __at(0x0F1E) volatile __PSMC4ASDLbits_t PSMC4ASDLbits;
8496 #define _P4ASDLA 0x01
8497 #define _P4ASDLB 0x02
8499 //==============================================================================
8502 //==============================================================================
8503 // PSMC4ASDS Bits
8505 extern __at(0x0F1F) __sfr PSMC4ASDS;
8507 typedef struct
8509 unsigned : 1;
8510 unsigned P4ASDSC1 : 1;
8511 unsigned P4ASDSC2 : 1;
8512 unsigned P4ASDSC3 : 1;
8513 unsigned P4ASDSC4 : 1;
8514 unsigned : 1;
8515 unsigned : 1;
8516 unsigned P4ASDSIN : 1;
8517 } __PSMC4ASDSbits_t;
8519 extern __at(0x0F1F) volatile __PSMC4ASDSbits_t PSMC4ASDSbits;
8521 #define _P4ASDSC1 0x02
8522 #define _P4ASDSC2 0x04
8523 #define _P4ASDSC3 0x08
8524 #define _P4ASDSC4 0x10
8525 #define _P4ASDSIN 0x80
8527 //==============================================================================
8530 //==============================================================================
8531 // PSMC4INT Bits
8533 extern __at(0x0F20) __sfr PSMC4INT;
8535 typedef struct
8537 unsigned P4TPRIF : 1;
8538 unsigned P4TDCIF : 1;
8539 unsigned P4TPHIF : 1;
8540 unsigned P4TOVIF : 1;
8541 unsigned P4TPRIE : 1;
8542 unsigned P4TDCIE : 1;
8543 unsigned P4TPHIE : 1;
8544 unsigned P4TOVIE : 1;
8545 } __PSMC4INTbits_t;
8547 extern __at(0x0F20) volatile __PSMC4INTbits_t PSMC4INTbits;
8549 #define _P4TPRIF 0x01
8550 #define _P4TDCIF 0x02
8551 #define _P4TPHIF 0x04
8552 #define _P4TOVIF 0x08
8553 #define _P4TPRIE 0x10
8554 #define _P4TDCIE 0x20
8555 #define _P4TPHIE 0x40
8556 #define _P4TOVIE 0x80
8558 //==============================================================================
8560 extern __at(0x0F21) __sfr PSMC4PH;
8562 //==============================================================================
8563 // PSMC4PHL Bits
8565 extern __at(0x0F21) __sfr PSMC4PHL;
8567 typedef struct
8569 unsigned PSMC4PH0 : 1;
8570 unsigned PSMC4PH1 : 1;
8571 unsigned PSMC4PH2 : 1;
8572 unsigned PSMC4PH3 : 1;
8573 unsigned PSMC4PH4 : 1;
8574 unsigned PSMC4PH5 : 1;
8575 unsigned PSMC4PH6 : 1;
8576 unsigned PSMC4PH7 : 1;
8577 } __PSMC4PHLbits_t;
8579 extern __at(0x0F21) volatile __PSMC4PHLbits_t PSMC4PHLbits;
8581 #define _PSMC4PH0 0x01
8582 #define _PSMC4PH1 0x02
8583 #define _PSMC4PH2 0x04
8584 #define _PSMC4PH3 0x08
8585 #define _PSMC4PH4 0x10
8586 #define _PSMC4PH5 0x20
8587 #define _PSMC4PH6 0x40
8588 #define _PSMC4PH7 0x80
8590 //==============================================================================
8593 //==============================================================================
8594 // PSMC4PHH Bits
8596 extern __at(0x0F22) __sfr PSMC4PHH;
8598 typedef struct
8600 unsigned PSMC4PH8 : 1;
8601 unsigned PSMC4PH9 : 1;
8602 unsigned PSMC4PH10 : 1;
8603 unsigned PSMC4PH11 : 1;
8604 unsigned PSMC4PH12 : 1;
8605 unsigned PSMC4PH13 : 1;
8606 unsigned PSMC4PH14 : 1;
8607 unsigned PSMC4PH15 : 1;
8608 } __PSMC4PHHbits_t;
8610 extern __at(0x0F22) volatile __PSMC4PHHbits_t PSMC4PHHbits;
8612 #define _PSMC4PH8 0x01
8613 #define _PSMC4PH9 0x02
8614 #define _PSMC4PH10 0x04
8615 #define _PSMC4PH11 0x08
8616 #define _PSMC4PH12 0x10
8617 #define _PSMC4PH13 0x20
8618 #define _PSMC4PH14 0x40
8619 #define _PSMC4PH15 0x80
8621 //==============================================================================
8623 extern __at(0x0F23) __sfr PSMC4DC;
8625 //==============================================================================
8626 // PSMC4DCL Bits
8628 extern __at(0x0F23) __sfr PSMC4DCL;
8630 typedef struct
8632 unsigned PSMC4DC0 : 1;
8633 unsigned PSMC4DC1 : 1;
8634 unsigned PSMC4DC2 : 1;
8635 unsigned PSMC4DC3 : 1;
8636 unsigned PSMC4DC4 : 1;
8637 unsigned PSMC4DC5 : 1;
8638 unsigned PSMC4DC6 : 1;
8639 unsigned PSMC4DC7 : 1;
8640 } __PSMC4DCLbits_t;
8642 extern __at(0x0F23) volatile __PSMC4DCLbits_t PSMC4DCLbits;
8644 #define _PSMC4DC0 0x01
8645 #define _PSMC4DC1 0x02
8646 #define _PSMC4DC2 0x04
8647 #define _PSMC4DC3 0x08
8648 #define _PSMC4DC4 0x10
8649 #define _PSMC4DC5 0x20
8650 #define _PSMC4DC6 0x40
8651 #define _PSMC4DC7 0x80
8653 //==============================================================================
8656 //==============================================================================
8657 // PSMC4DCH Bits
8659 extern __at(0x0F24) __sfr PSMC4DCH;
8661 typedef struct
8663 unsigned PSMC4DC8 : 1;
8664 unsigned PSMC4DC9 : 1;
8665 unsigned PSMC4DC10 : 1;
8666 unsigned PSMC4DC11 : 1;
8667 unsigned PSMC4DC12 : 1;
8668 unsigned PSMC4DC13 : 1;
8669 unsigned PSMC4DC14 : 1;
8670 unsigned PSMC4DC15 : 1;
8671 } __PSMC4DCHbits_t;
8673 extern __at(0x0F24) volatile __PSMC4DCHbits_t PSMC4DCHbits;
8675 #define _PSMC4DC8 0x01
8676 #define _PSMC4DC9 0x02
8677 #define _PSMC4DC10 0x04
8678 #define _PSMC4DC11 0x08
8679 #define _PSMC4DC12 0x10
8680 #define _PSMC4DC13 0x20
8681 #define _PSMC4DC14 0x40
8682 #define _PSMC4DC15 0x80
8684 //==============================================================================
8686 extern __at(0x0F25) __sfr PSMC4PR;
8688 //==============================================================================
8689 // PSMC4PRL Bits
8691 extern __at(0x0F25) __sfr PSMC4PRL;
8693 typedef struct
8695 unsigned PSMC4PR0 : 1;
8696 unsigned PSMC4PR1 : 1;
8697 unsigned PSMC4PR2 : 1;
8698 unsigned PSMC4PR3 : 1;
8699 unsigned PSMC4PR4 : 1;
8700 unsigned PSMC4PR5 : 1;
8701 unsigned PSMC4PR6 : 1;
8702 unsigned PSMC4PR7 : 1;
8703 } __PSMC4PRLbits_t;
8705 extern __at(0x0F25) volatile __PSMC4PRLbits_t PSMC4PRLbits;
8707 #define _PSMC4PR0 0x01
8708 #define _PSMC4PR1 0x02
8709 #define _PSMC4PR2 0x04
8710 #define _PSMC4PR3 0x08
8711 #define _PSMC4PR4 0x10
8712 #define _PSMC4PR5 0x20
8713 #define _PSMC4PR6 0x40
8714 #define _PSMC4PR7 0x80
8716 //==============================================================================
8719 //==============================================================================
8720 // PSMC4PRH Bits
8722 extern __at(0x0F26) __sfr PSMC4PRH;
8724 typedef struct
8726 unsigned PSMC4PR8 : 1;
8727 unsigned PSMC4PR9 : 1;
8728 unsigned PSMC4PR10 : 1;
8729 unsigned PSMC4PR11 : 1;
8730 unsigned PSMC4PR12 : 1;
8731 unsigned PSMC4PR13 : 1;
8732 unsigned PSMC4PR14 : 1;
8733 unsigned PSMC4PR15 : 1;
8734 } __PSMC4PRHbits_t;
8736 extern __at(0x0F26) volatile __PSMC4PRHbits_t PSMC4PRHbits;
8738 #define _PSMC4PR8 0x01
8739 #define _PSMC4PR9 0x02
8740 #define _PSMC4PR10 0x04
8741 #define _PSMC4PR11 0x08
8742 #define _PSMC4PR12 0x10
8743 #define _PSMC4PR13 0x20
8744 #define _PSMC4PR14 0x40
8745 #define _PSMC4PR15 0x80
8747 //==============================================================================
8749 extern __at(0x0F27) __sfr PSMC4TMR;
8751 //==============================================================================
8752 // PSMC4TMRL Bits
8754 extern __at(0x0F27) __sfr PSMC4TMRL;
8756 typedef struct
8758 unsigned PSMC4TMR0 : 1;
8759 unsigned PSMC4TMR1 : 1;
8760 unsigned PSMC4TMR2 : 1;
8761 unsigned PSMC4TMR3 : 1;
8762 unsigned PSMC4TMR4 : 1;
8763 unsigned PSMC4TMR5 : 1;
8764 unsigned PSMC4TMR6 : 1;
8765 unsigned PSMC4TMR7 : 1;
8766 } __PSMC4TMRLbits_t;
8768 extern __at(0x0F27) volatile __PSMC4TMRLbits_t PSMC4TMRLbits;
8770 #define _PSMC4TMR0 0x01
8771 #define _PSMC4TMR1 0x02
8772 #define _PSMC4TMR2 0x04
8773 #define _PSMC4TMR3 0x08
8774 #define _PSMC4TMR4 0x10
8775 #define _PSMC4TMR5 0x20
8776 #define _PSMC4TMR6 0x40
8777 #define _PSMC4TMR7 0x80
8779 //==============================================================================
8782 //==============================================================================
8783 // PSMC4TMRH Bits
8785 extern __at(0x0F28) __sfr PSMC4TMRH;
8787 typedef struct
8789 unsigned PSMC4TMR8 : 1;
8790 unsigned PSMC4TMR9 : 1;
8791 unsigned PSMC4TMR10 : 1;
8792 unsigned PSMC4TMR11 : 1;
8793 unsigned PSMC4TMR12 : 1;
8794 unsigned PSMC4TMR13 : 1;
8795 unsigned PSMC4TMR14 : 1;
8796 unsigned PSMC4TMR15 : 1;
8797 } __PSMC4TMRHbits_t;
8799 extern __at(0x0F28) volatile __PSMC4TMRHbits_t PSMC4TMRHbits;
8801 #define _PSMC4TMR8 0x01
8802 #define _PSMC4TMR9 0x02
8803 #define _PSMC4TMR10 0x04
8804 #define _PSMC4TMR11 0x08
8805 #define _PSMC4TMR12 0x10
8806 #define _PSMC4TMR13 0x20
8807 #define _PSMC4TMR14 0x40
8808 #define _PSMC4TMR15 0x80
8810 //==============================================================================
8813 //==============================================================================
8814 // PSMC4DBR Bits
8816 extern __at(0x0F29) __sfr PSMC4DBR;
8818 typedef struct
8820 unsigned PSMC4DBR0 : 1;
8821 unsigned PSMC4DBR1 : 1;
8822 unsigned PSMC4DBR2 : 1;
8823 unsigned PSMC4DBR3 : 1;
8824 unsigned PSMC4DBR4 : 1;
8825 unsigned PSMC4DBR5 : 1;
8826 unsigned PSMC4DBR6 : 1;
8827 unsigned PSMC4DBR7 : 1;
8828 } __PSMC4DBRbits_t;
8830 extern __at(0x0F29) volatile __PSMC4DBRbits_t PSMC4DBRbits;
8832 #define _PSMC4DBR0 0x01
8833 #define _PSMC4DBR1 0x02
8834 #define _PSMC4DBR2 0x04
8835 #define _PSMC4DBR3 0x08
8836 #define _PSMC4DBR4 0x10
8837 #define _PSMC4DBR5 0x20
8838 #define _PSMC4DBR6 0x40
8839 #define _PSMC4DBR7 0x80
8841 //==============================================================================
8844 //==============================================================================
8845 // PSMC4DBF Bits
8847 extern __at(0x0F2A) __sfr PSMC4DBF;
8849 typedef struct
8851 unsigned PSMC4DBF0 : 1;
8852 unsigned PSMC4DBF1 : 1;
8853 unsigned PSMC4DBF2 : 1;
8854 unsigned PSMC4DBF3 : 1;
8855 unsigned PSMC4DBF4 : 1;
8856 unsigned PSMC4DBF5 : 1;
8857 unsigned PSMC4DBF6 : 1;
8858 unsigned PSMC4DBF7 : 1;
8859 } __PSMC4DBFbits_t;
8861 extern __at(0x0F2A) volatile __PSMC4DBFbits_t PSMC4DBFbits;
8863 #define _PSMC4DBF0 0x01
8864 #define _PSMC4DBF1 0x02
8865 #define _PSMC4DBF2 0x04
8866 #define _PSMC4DBF3 0x08
8867 #define _PSMC4DBF4 0x10
8868 #define _PSMC4DBF5 0x20
8869 #define _PSMC4DBF6 0x40
8870 #define _PSMC4DBF7 0x80
8872 //==============================================================================
8875 //==============================================================================
8876 // PSMC4BLKR Bits
8878 extern __at(0x0F2B) __sfr PSMC4BLKR;
8880 typedef struct
8882 unsigned PSMC4BLKR0 : 1;
8883 unsigned PSMC4BLKR1 : 1;
8884 unsigned PSMC4BLKR2 : 1;
8885 unsigned PSMC4BLKR3 : 1;
8886 unsigned PSMC4BLKR4 : 1;
8887 unsigned PSMC4BLKR5 : 1;
8888 unsigned PSMC4BLKR6 : 1;
8889 unsigned PSMC4BLKR7 : 1;
8890 } __PSMC4BLKRbits_t;
8892 extern __at(0x0F2B) volatile __PSMC4BLKRbits_t PSMC4BLKRbits;
8894 #define _PSMC4BLKR0 0x01
8895 #define _PSMC4BLKR1 0x02
8896 #define _PSMC4BLKR2 0x04
8897 #define _PSMC4BLKR3 0x08
8898 #define _PSMC4BLKR4 0x10
8899 #define _PSMC4BLKR5 0x20
8900 #define _PSMC4BLKR6 0x40
8901 #define _PSMC4BLKR7 0x80
8903 //==============================================================================
8906 //==============================================================================
8907 // PSMC4BLKF Bits
8909 extern __at(0x0F2C) __sfr PSMC4BLKF;
8911 typedef struct
8913 unsigned PSMC4BLKF0 : 1;
8914 unsigned PSMC4BLKF1 : 1;
8915 unsigned PSMC4BLKF2 : 1;
8916 unsigned PSMC4BLKF3 : 1;
8917 unsigned PSMC4BLKF4 : 1;
8918 unsigned PSMC4BLKF5 : 1;
8919 unsigned PSMC4BLKF6 : 1;
8920 unsigned PSMC4BLKF7 : 1;
8921 } __PSMC4BLKFbits_t;
8923 extern __at(0x0F2C) volatile __PSMC4BLKFbits_t PSMC4BLKFbits;
8925 #define _PSMC4BLKF0 0x01
8926 #define _PSMC4BLKF1 0x02
8927 #define _PSMC4BLKF2 0x04
8928 #define _PSMC4BLKF3 0x08
8929 #define _PSMC4BLKF4 0x10
8930 #define _PSMC4BLKF5 0x20
8931 #define _PSMC4BLKF6 0x40
8932 #define _PSMC4BLKF7 0x80
8934 //==============================================================================
8937 //==============================================================================
8938 // PSMC4FFA Bits
8940 extern __at(0x0F2D) __sfr PSMC4FFA;
8942 typedef union
8944 struct
8946 unsigned PSMC4FFA0 : 1;
8947 unsigned PSMC4FFA1 : 1;
8948 unsigned PSMC4FFA2 : 1;
8949 unsigned PSMC4FFA3 : 1;
8950 unsigned : 1;
8951 unsigned : 1;
8952 unsigned : 1;
8953 unsigned : 1;
8956 struct
8958 unsigned PSMC4FFA : 4;
8959 unsigned : 4;
8961 } __PSMC4FFAbits_t;
8963 extern __at(0x0F2D) volatile __PSMC4FFAbits_t PSMC4FFAbits;
8965 #define _PSMC4FFA0 0x01
8966 #define _PSMC4FFA1 0x02
8967 #define _PSMC4FFA2 0x04
8968 #define _PSMC4FFA3 0x08
8970 //==============================================================================
8973 //==============================================================================
8974 // PSMC4STR0 Bits
8976 extern __at(0x0F2E) __sfr PSMC4STR0;
8978 typedef struct
8980 unsigned P4STRA : 1;
8981 unsigned P4STRB : 1;
8982 unsigned : 1;
8983 unsigned : 1;
8984 unsigned : 1;
8985 unsigned : 1;
8986 unsigned : 1;
8987 unsigned : 1;
8988 } __PSMC4STR0bits_t;
8990 extern __at(0x0F2E) volatile __PSMC4STR0bits_t PSMC4STR0bits;
8992 #define _P4STRA 0x01
8993 #define _P4STRB 0x02
8995 //==============================================================================
8998 //==============================================================================
8999 // PSMC4STR1 Bits
9001 extern __at(0x0F2F) __sfr PSMC4STR1;
9003 typedef struct
9005 unsigned P4HSMEN : 1;
9006 unsigned P4LSMEN : 1;
9007 unsigned : 1;
9008 unsigned : 1;
9009 unsigned : 1;
9010 unsigned : 1;
9011 unsigned : 1;
9012 unsigned P4SSYNC : 1;
9013 } __PSMC4STR1bits_t;
9015 extern __at(0x0F2F) volatile __PSMC4STR1bits_t PSMC4STR1bits;
9017 #define _P4HSMEN 0x01
9018 #define _P4LSMEN 0x02
9019 #define _P4SSYNC 0x80
9021 //==============================================================================
9024 //==============================================================================
9025 // STATUS_SHAD Bits
9027 extern __at(0x0FE4) __sfr STATUS_SHAD;
9029 typedef struct
9031 unsigned C_SHAD : 1;
9032 unsigned DC_SHAD : 1;
9033 unsigned Z_SHAD : 1;
9034 unsigned : 1;
9035 unsigned : 1;
9036 unsigned : 1;
9037 unsigned : 1;
9038 unsigned : 1;
9039 } __STATUS_SHADbits_t;
9041 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
9043 #define _C_SHAD 0x01
9044 #define _DC_SHAD 0x02
9045 #define _Z_SHAD 0x04
9047 //==============================================================================
9049 extern __at(0x0FE5) __sfr WREG_SHAD;
9050 extern __at(0x0FE6) __sfr BSR_SHAD;
9051 extern __at(0x0FE7) __sfr PCLATH_SHAD;
9052 extern __at(0x0FE8) __sfr FSR0L_SHAD;
9053 extern __at(0x0FE9) __sfr FSR0H_SHAD;
9054 extern __at(0x0FEA) __sfr FSR1L_SHAD;
9055 extern __at(0x0FEB) __sfr FSR1H_SHAD;
9056 extern __at(0x0FED) __sfr STKPTR;
9057 extern __at(0x0FEE) __sfr TOSL;
9058 extern __at(0x0FEF) __sfr TOSH;
9060 //==============================================================================
9062 // Configuration Bits
9064 //==============================================================================
9066 #define _CONFIG1 0x8007
9067 #define _CONFIG2 0x8008
9069 //----------------------------- CONFIG1 Options -------------------------------
9071 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
9072 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
9073 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
9074 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
9075 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
9076 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
9077 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
9078 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin.
9079 #define _WDTE_OFF 0x3FE7 // WDT disabled.
9080 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
9081 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
9082 #define _WDTE_ON 0x3FFF // WDT enabled.
9083 #define _PWRTE_ON 0x3FDF // PWRT enabled.
9084 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
9085 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
9086 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
9087 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
9088 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
9089 #define _CPD_ON 0x3EFF // Data memory code protection is enabled.
9090 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
9091 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
9092 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
9093 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
9094 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
9095 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
9096 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
9097 #define _IESO_OFF 0x2FFF // Internal/External Switchover mode is disabled.
9098 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
9099 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
9100 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
9102 //----------------------------- CONFIG2 Options -------------------------------
9104 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
9105 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
9106 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
9107 #define _WRT_OFF 0x3FFF // Write protection off.
9108 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
9109 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
9110 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
9111 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
9112 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
9113 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
9114 #define _LPBOR_ON 0x37FF // Low power brown-out is enabled.
9115 #define _LPBOR_OFF 0x3FFF // Low power brown-out is disabled.
9116 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
9117 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
9118 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
9119 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
9121 //==============================================================================
9123 #define _DEVID1 0x8006
9125 #define _IDLOC0 0x8000
9126 #define _IDLOC1 0x8001
9127 #define _IDLOC2 0x8002
9128 #define _IDLOC3 0x8003
9130 //==============================================================================
9132 #ifndef NO_BIT_DEFINES
9134 #define ADON ADCON0bits.ADON // bit 0
9135 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
9136 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
9137 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
9138 #define DONE ADCON0bits.DONE // bit 1, shadows bit in ADCON0bits
9139 #define CHS0 ADCON0bits.CHS0 // bit 2
9140 #define CHS1 ADCON0bits.CHS1 // bit 3
9141 #define CHS2 ADCON0bits.CHS2 // bit 4
9142 #define CHS3 ADCON0bits.CHS3 // bit 5
9143 #define CHS4 ADCON0bits.CHS4 // bit 6
9144 #define ADRMD ADCON0bits.ADRMD // bit 7
9146 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
9147 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
9148 #define ADNREF ADCON1bits.ADNREF // bit 2
9149 #define ADCS0 ADCON1bits.ADCS0 // bit 4
9150 #define ADCS1 ADCON1bits.ADCS1 // bit 5
9151 #define ADCS2 ADCON1bits.ADCS2 // bit 6
9152 #define ADFM ADCON1bits.ADFM // bit 7
9154 #define CHSN0 ADCON2bits.CHSN0 // bit 0
9155 #define CHSN1 ADCON2bits.CHSN1 // bit 1
9156 #define CHSN2 ADCON2bits.CHSN2 // bit 2
9157 #define CHSN3 ADCON2bits.CHSN3 // bit 3
9158 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
9159 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
9160 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
9161 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
9163 #define ANSA0 ANSELAbits.ANSA0 // bit 0
9164 #define ANSA1 ANSELAbits.ANSA1 // bit 1
9165 #define ANSA2 ANSELAbits.ANSA2 // bit 2
9166 #define ANSA3 ANSELAbits.ANSA3 // bit 3
9167 #define ANSA4 ANSELAbits.ANSA4 // bit 4
9168 #define ANSA5 ANSELAbits.ANSA5 // bit 5
9169 #define ANSA7 ANSELAbits.ANSA7 // bit 7
9171 #define ANSB0 ANSELBbits.ANSB0 // bit 0
9172 #define ANSB1 ANSELBbits.ANSB1 // bit 1
9173 #define ANSB2 ANSELBbits.ANSB2 // bit 2
9174 #define ANSB3 ANSELBbits.ANSB3 // bit 3
9175 #define ANSB4 ANSELBbits.ANSB4 // bit 4
9176 #define ANSB5 ANSELBbits.ANSB5 // bit 5
9177 #define ANSB6 ANSELBbits.ANSB6 // bit 6
9179 #define ANSC0 ANSELCbits.ANSC0 // bit 0
9180 #define ANSC1 ANSELCbits.ANSC1 // bit 1
9181 #define ANSC2 ANSELCbits.ANSC2 // bit 2
9182 #define ANSC3 ANSELCbits.ANSC3 // bit 3
9183 #define ANSC4 ANSELCbits.ANSC4 // bit 4
9184 #define ANSC5 ANSELCbits.ANSC5 // bit 5
9185 #define ANSC6 ANSELCbits.ANSC6 // bit 6
9186 #define ANSC7 ANSELCbits.ANSC7 // bit 7
9188 #define ANSD0 ANSELDbits.ANSD0 // bit 0
9189 #define ANSD1 ANSELDbits.ANSD1 // bit 1
9190 #define ANSD2 ANSELDbits.ANSD2 // bit 2
9192 #define ANSE0 ANSELEbits.ANSE0 // bit 0
9193 #define ANSE1 ANSELEbits.ANSE1 // bit 1
9194 #define ANSE2 ANSELEbits.ANSE2 // bit 2
9196 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
9197 #define RXSEL APFCONbits.RXSEL // bit 1
9198 #define TXSEL APFCONbits.TXSEL // bit 2
9199 #define SDISEL APFCONbits.SDISEL // bit 3
9200 #define SCKSEL APFCONbits.SCKSEL // bit 4
9201 #define SDOSEL APFCONbits.SDOSEL // bit 5
9202 #define CCP1SEL APFCONbits.CCP1SEL // bit 6
9203 #define C2OUTSEL APFCONbits.C2OUTSEL // bit 7
9205 #define CCP3SEL APFCON2bits.CCP3SEL // bit 0
9207 #define ABDEN BAUD1CONbits.ABDEN // bit 0
9208 #define WUE BAUD1CONbits.WUE // bit 1
9209 #define BRG16 BAUD1CONbits.BRG16 // bit 3
9210 #define SCKP BAUD1CONbits.SCKP // bit 4
9211 #define RCIDL BAUD1CONbits.RCIDL // bit 6
9212 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
9214 #define BORRDY BORCONbits.BORRDY // bit 0
9215 #define BORFS BORCONbits.BORFS // bit 6
9216 #define SBOREN BORCONbits.SBOREN // bit 7
9218 #define BSR0 BSRbits.BSR0 // bit 0
9219 #define BSR1 BSRbits.BSR1 // bit 1
9220 #define BSR2 BSRbits.BSR2 // bit 2
9221 #define BSR3 BSRbits.BSR3 // bit 3
9222 #define BSR4 BSRbits.BSR4 // bit 4
9224 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
9225 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
9226 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
9227 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
9228 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
9229 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
9231 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
9232 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
9233 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
9234 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
9235 #define DC2B0 CCP2CONbits.DC2B0 // bit 4
9236 #define DC2B1 CCP2CONbits.DC2B1 // bit 5
9238 #define CCP3M0 CCP3CONbits.CCP3M0 // bit 0
9239 #define CCP3M1 CCP3CONbits.CCP3M1 // bit 1
9240 #define CCP3M2 CCP3CONbits.CCP3M2 // bit 2
9241 #define CCP3M3 CCP3CONbits.CCP3M3 // bit 3
9242 #define DC3B0 CCP3CONbits.DC3B0 // bit 4
9243 #define DC3B1 CCP3CONbits.DC3B1 // bit 5
9245 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
9246 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
9247 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
9248 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
9249 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
9250 #define CLKRSLR CLKRCONbits.CLKRSLR // bit 5
9251 #define CLKROE CLKRCONbits.CLKROE // bit 6
9252 #define CLKREN CLKRCONbits.CLKREN // bit 7
9254 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
9255 #define C1HYS CM1CON0bits.C1HYS // bit 1
9256 #define C1SP CM1CON0bits.C1SP // bit 2
9257 #define C1ZLF CM1CON0bits.C1ZLF // bit 3
9258 #define C1POL CM1CON0bits.C1POL // bit 4
9259 #define C1OE CM1CON0bits.C1OE // bit 5
9260 #define C1OUT CM1CON0bits.C1OUT // bit 6
9261 #define C1ON CM1CON0bits.C1ON // bit 7
9263 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
9264 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
9265 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
9266 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
9267 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
9268 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
9269 #define C1INTN CM1CON1bits.C1INTN // bit 6
9270 #define C1INTP CM1CON1bits.C1INTP // bit 7
9272 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
9273 #define C2HYS CM2CON0bits.C2HYS // bit 1
9274 #define C2SP CM2CON0bits.C2SP // bit 2
9275 #define C2ZLF CM2CON0bits.C2ZLF // bit 3
9276 #define C2POL CM2CON0bits.C2POL // bit 4
9277 #define C2OE CM2CON0bits.C2OE // bit 5
9278 #define C2OUT CM2CON0bits.C2OUT // bit 6
9279 #define C2ON CM2CON0bits.C2ON // bit 7
9281 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
9282 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
9283 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
9284 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 3
9285 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 4
9286 #define C2PCH2 CM2CON1bits.C2PCH2 // bit 5
9287 #define C2INTN CM2CON1bits.C2INTN // bit 6
9288 #define C2INTP CM2CON1bits.C2INTP // bit 7
9290 #define C3SYNC CM3CON0bits.C3SYNC // bit 0
9291 #define C3HYS CM3CON0bits.C3HYS // bit 1
9292 #define C3SP CM3CON0bits.C3SP // bit 2
9293 #define C3ZLF CM3CON0bits.C3ZLF // bit 3
9294 #define C3POL CM3CON0bits.C3POL // bit 4
9295 #define C3OE CM3CON0bits.C3OE // bit 5
9296 #define C3OUT CM3CON0bits.C3OUT // bit 6
9297 #define C3ON CM3CON0bits.C3ON // bit 7
9299 #define C3NCH0 CM3CON1bits.C3NCH0 // bit 0
9300 #define C3NCH1 CM3CON1bits.C3NCH1 // bit 1
9301 #define C3NCH2 CM3CON1bits.C3NCH2 // bit 2
9302 #define C3PCH0 CM3CON1bits.C3PCH0 // bit 3
9303 #define C3PCH1 CM3CON1bits.C3PCH1 // bit 4
9304 #define C3PCH2 CM3CON1bits.C3PCH2 // bit 5
9305 #define C3INTN CM3CON1bits.C3INTN // bit 6
9306 #define C3INTP CM3CON1bits.C3INTP // bit 7
9308 #define C4SYNC CM4CON0bits.C4SYNC // bit 0
9309 #define C4HYS CM4CON0bits.C4HYS // bit 1
9310 #define C4SP CM4CON0bits.C4SP // bit 2
9311 #define C4ZLF CM4CON0bits.C4ZLF // bit 3
9312 #define C4POL CM4CON0bits.C4POL // bit 4
9313 #define C4OE CM4CON0bits.C4OE // bit 5
9314 #define C4OUT CM4CON0bits.C4OUT // bit 6
9315 #define C4ON CM4CON0bits.C4ON // bit 7
9317 #define C4NCH0 CM4CON1bits.C4NCH0 // bit 0
9318 #define C4NCH1 CM4CON1bits.C4NCH1 // bit 1
9319 #define C4NCH2 CM4CON1bits.C4NCH2 // bit 2
9320 #define C4PCH0 CM4CON1bits.C4PCH0 // bit 3
9321 #define C4PCH1 CM4CON1bits.C4PCH1 // bit 4
9322 #define C4PCH2 CM4CON1bits.C4PCH2 // bit 5
9323 #define C4INTN CM4CON1bits.C4INTN // bit 6
9324 #define C4INTP CM4CON1bits.C4INTP // bit 7
9326 #define MC1OUT CMOUTbits.MC1OUT // bit 0
9327 #define MC2OUT CMOUTbits.MC2OUT // bit 1
9328 #define MC3OUT CMOUTbits.MC3OUT // bit 2
9329 #define MC4OUT CMOUTbits.MC4OUT // bit 3
9331 #define DAC1NSS DAC1CON0bits.DAC1NSS // bit 0, shadows bit in DAC1CON0bits
9332 #define DACNSS DAC1CON0bits.DACNSS // bit 0, shadows bit in DAC1CON0bits
9333 #define DAC1PSS0 DAC1CON0bits.DAC1PSS0 // bit 2, shadows bit in DAC1CON0bits
9334 #define DACPSS0 DAC1CON0bits.DACPSS0 // bit 2, shadows bit in DAC1CON0bits
9335 #define DAC1PSS1 DAC1CON0bits.DAC1PSS1 // bit 3, shadows bit in DAC1CON0bits
9336 #define DACPSS1 DAC1CON0bits.DACPSS1 // bit 3, shadows bit in DAC1CON0bits
9337 #define DAC1OE2 DAC1CON0bits.DAC1OE2 // bit 4, shadows bit in DAC1CON0bits
9338 #define DACOE0 DAC1CON0bits.DACOE0 // bit 4, shadows bit in DAC1CON0bits
9339 #define DAC1OE1 DAC1CON0bits.DAC1OE1 // bit 5, shadows bit in DAC1CON0bits
9340 #define DACOE1 DAC1CON0bits.DACOE1 // bit 5, shadows bit in DAC1CON0bits
9341 #define DAC1EN DAC1CON0bits.DAC1EN // bit 7, shadows bit in DAC1CON0bits
9342 #define DACEN DAC1CON0bits.DACEN // bit 7, shadows bit in DAC1CON0bits
9344 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0, shadows bit in DAC1CON1bits
9345 #define DACR0 DAC1CON1bits.DACR0 // bit 0, shadows bit in DAC1CON1bits
9346 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1, shadows bit in DAC1CON1bits
9347 #define DACR1 DAC1CON1bits.DACR1 // bit 1, shadows bit in DAC1CON1bits
9348 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2, shadows bit in DAC1CON1bits
9349 #define DACR2 DAC1CON1bits.DACR2 // bit 2, shadows bit in DAC1CON1bits
9350 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3, shadows bit in DAC1CON1bits
9351 #define DACR3 DAC1CON1bits.DACR3 // bit 3, shadows bit in DAC1CON1bits
9352 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4, shadows bit in DAC1CON1bits
9353 #define DACR4 DAC1CON1bits.DACR4 // bit 4, shadows bit in DAC1CON1bits
9354 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5, shadows bit in DAC1CON1bits
9355 #define DACR5 DAC1CON1bits.DACR5 // bit 5, shadows bit in DAC1CON1bits
9356 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6, shadows bit in DAC1CON1bits
9357 #define DACR6 DAC1CON1bits.DACR6 // bit 6, shadows bit in DAC1CON1bits
9358 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7, shadows bit in DAC1CON1bits
9359 #define DACR7 DAC1CON1bits.DACR7 // bit 7, shadows bit in DAC1CON1bits
9361 #define DAC2OE2 DAC2CON0bits.DAC2OE2 // bit 4
9362 #define DAC2OE1 DAC2CON0bits.DAC2OE1 // bit 5
9363 #define DAC2EN DAC2CON0bits.DAC2EN // bit 7
9365 #define DAC3OE2 DAC3CON0bits.DAC3OE2 // bit 4
9366 #define DAC3OE1 DAC3CON0bits.DAC3OE1 // bit 5
9367 #define DAC3EN DAC3CON0bits.DAC3EN // bit 7
9369 #define DAC4OE2 DAC4CON0bits.DAC4OE2 // bit 4
9370 #define DAC4OE1 DAC4CON0bits.DAC4OE1 // bit 5
9371 #define DAC4EN DAC4CON0bits.DAC4EN // bit 7
9373 #define RD EECON1bits.RD // bit 0
9374 #define WR EECON1bits.WR // bit 1
9375 #define WREN EECON1bits.WREN // bit 2
9376 #define WRERR EECON1bits.WRERR // bit 3
9377 #define FREE EECON1bits.FREE // bit 4
9378 #define LWLO EECON1bits.LWLO // bit 5
9379 #define CFGS EECON1bits.CFGS // bit 6
9380 #define EEPGD EECON1bits.EEPGD // bit 7
9382 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
9383 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
9384 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
9385 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
9386 #define TSRNG FVRCONbits.TSRNG // bit 4
9387 #define TSEN FVRCONbits.TSEN // bit 5
9388 #define FVRRDY FVRCONbits.FVRRDY // bit 6
9389 #define FVREN FVRCONbits.FVREN // bit 7
9391 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
9392 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
9393 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
9394 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
9395 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
9396 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
9397 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
9398 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
9400 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
9401 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
9402 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
9403 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
9404 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
9405 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
9406 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
9407 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
9409 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
9410 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
9411 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
9412 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
9413 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
9414 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
9415 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
9416 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
9418 #define INLVLD0 INLVLDbits.INLVLD0 // bit 0
9419 #define INLVLD1 INLVLDbits.INLVLD1 // bit 1
9420 #define INLVLD2 INLVLDbits.INLVLD2 // bit 2
9421 #define INLVLD3 INLVLDbits.INLVLD3 // bit 3
9422 #define INLVLD4 INLVLDbits.INLVLD4 // bit 4
9423 #define INLVLD5 INLVLDbits.INLVLD5 // bit 5
9424 #define INLVLD6 INLVLDbits.INLVLD6 // bit 6
9425 #define INLVLD7 INLVLDbits.INLVLD7 // bit 7
9427 #define INLVLE0 INLVLEbits.INLVLE0 // bit 0
9428 #define INLVLE1 INLVLEbits.INLVLE1 // bit 1
9429 #define INLVLE2 INLVLEbits.INLVLE2 // bit 2
9430 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
9432 #define IOCIF INTCONbits.IOCIF // bit 0
9433 #define INTF INTCONbits.INTF // bit 1
9434 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
9435 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
9436 #define IOCIE INTCONbits.IOCIE // bit 3
9437 #define INTE INTCONbits.INTE // bit 4
9438 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
9439 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
9440 #define PEIE INTCONbits.PEIE // bit 6
9441 #define GIE INTCONbits.GIE // bit 7
9443 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
9444 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
9445 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
9446 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
9447 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
9448 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
9449 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
9450 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
9452 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
9453 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
9454 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
9455 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
9456 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
9457 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
9458 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
9459 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
9461 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
9462 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
9463 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
9464 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
9465 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
9466 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
9467 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
9468 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
9470 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
9471 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
9472 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
9473 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
9474 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
9475 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
9476 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
9477 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
9479 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
9480 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
9481 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
9482 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
9483 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
9484 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
9485 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
9486 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
9488 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
9489 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
9490 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
9491 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
9492 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
9493 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
9494 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
9495 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
9497 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
9498 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
9499 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
9500 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
9501 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
9502 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
9503 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
9504 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
9506 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
9507 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
9508 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
9509 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
9510 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
9511 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
9512 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
9513 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
9515 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
9516 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
9517 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
9518 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
9519 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
9520 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
9521 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
9522 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
9524 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
9526 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
9528 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
9530 #define LATA0 LATAbits.LATA0 // bit 0
9531 #define LATA1 LATAbits.LATA1 // bit 1
9532 #define LATA2 LATAbits.LATA2 // bit 2
9533 #define LATA3 LATAbits.LATA3 // bit 3
9534 #define LATA4 LATAbits.LATA4 // bit 4
9535 #define LATA5 LATAbits.LATA5 // bit 5
9536 #define LATA6 LATAbits.LATA6 // bit 6
9537 #define LATA7 LATAbits.LATA7 // bit 7
9539 #define LATB0 LATBbits.LATB0 // bit 0
9540 #define LATB1 LATBbits.LATB1 // bit 1
9541 #define LATB2 LATBbits.LATB2 // bit 2
9542 #define LATB3 LATBbits.LATB3 // bit 3
9543 #define LATB4 LATBbits.LATB4 // bit 4
9544 #define LATB5 LATBbits.LATB5 // bit 5
9545 #define LATB6 LATBbits.LATB6 // bit 6
9546 #define LATB7 LATBbits.LATB7 // bit 7
9548 #define LATC0 LATCbits.LATC0 // bit 0
9549 #define LATC1 LATCbits.LATC1 // bit 1
9550 #define LATC2 LATCbits.LATC2 // bit 2
9551 #define LATC3 LATCbits.LATC3 // bit 3
9552 #define LATC4 LATCbits.LATC4 // bit 4
9553 #define LATC5 LATCbits.LATC5 // bit 5
9554 #define LATC6 LATCbits.LATC6 // bit 6
9555 #define LATC7 LATCbits.LATC7 // bit 7
9557 #define LATD0 LATDbits.LATD0 // bit 0
9558 #define LATD1 LATDbits.LATD1 // bit 1
9559 #define LATD2 LATDbits.LATD2 // bit 2
9560 #define LATD3 LATDbits.LATD3 // bit 3
9561 #define LATD4 LATDbits.LATD4 // bit 4
9562 #define LATD5 LATDbits.LATD5 // bit 5
9563 #define LATD6 LATDbits.LATD6 // bit 6
9564 #define LATD7 LATDbits.LATD7 // bit 7
9566 #define LATE0 LATEbits.LATE0 // bit 0
9567 #define LATE1 LATEbits.LATE1 // bit 1
9568 #define LATE2 LATEbits.LATE2 // bit 2
9570 #define ODCONA0 ODCONAbits.ODCONA0 // bit 0
9571 #define ODCONA1 ODCONAbits.ODCONA1 // bit 1
9572 #define ODCONA2 ODCONAbits.ODCONA2 // bit 2
9573 #define ODCONA3 ODCONAbits.ODCONA3 // bit 3
9574 #define ODCONA4 ODCONAbits.ODCONA4 // bit 4
9575 #define ODCONA5 ODCONAbits.ODCONA5 // bit 5
9576 #define ODCONA6 ODCONAbits.ODCONA6 // bit 6
9577 #define ODCONA7 ODCONAbits.ODCONA7 // bit 7
9579 #define ODCONB0 ODCONBbits.ODCONB0 // bit 0
9580 #define ODCONB1 ODCONBbits.ODCONB1 // bit 1
9581 #define ODCONB2 ODCONBbits.ODCONB2 // bit 2
9582 #define ODCONB3 ODCONBbits.ODCONB3 // bit 3
9583 #define ODCONB4 ODCONBbits.ODCONB4 // bit 4
9584 #define ODCONB5 ODCONBbits.ODCONB5 // bit 5
9585 #define ODCONB6 ODCONBbits.ODCONB6 // bit 6
9586 #define ODCONB7 ODCONBbits.ODCONB7 // bit 7
9588 #define ODCONC0 ODCONCbits.ODCONC0 // bit 0
9589 #define ODCONC1 ODCONCbits.ODCONC1 // bit 1
9590 #define ODCONC2 ODCONCbits.ODCONC2 // bit 2
9591 #define ODCONC3 ODCONCbits.ODCONC3 // bit 3
9592 #define ODCONC4 ODCONCbits.ODCONC4 // bit 4
9593 #define ODCONC5 ODCONCbits.ODCONC5 // bit 5
9594 #define ODCONC6 ODCONCbits.ODCONC6 // bit 6
9595 #define ODCONC7 ODCONCbits.ODCONC7 // bit 7
9597 #define ODCOND0 ODCONDbits.ODCOND0 // bit 0
9598 #define ODCOND1 ODCONDbits.ODCOND1 // bit 1
9599 #define ODCOND2 ODCONDbits.ODCOND2 // bit 2
9600 #define ODCOND3 ODCONDbits.ODCOND3 // bit 3
9601 #define ODCOND4 ODCONDbits.ODCOND4 // bit 4
9602 #define ODCOND5 ODCONDbits.ODCOND5 // bit 5
9603 #define ODCOND6 ODCONDbits.ODCOND6 // bit 6
9604 #define ODCOND7 ODCONDbits.ODCOND7 // bit 7
9606 #define ODCONE0 ODCONEbits.ODCONE0 // bit 0
9607 #define ODCONE1 ODCONEbits.ODCONE1 // bit 1
9608 #define ODCONE2 ODCONEbits.ODCONE2 // bit 2
9610 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0, shadows bit in OPA1CONbits
9611 #define PCH0 OPA1CONbits.PCH0 // bit 0, shadows bit in OPA1CONbits
9612 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1, shadows bit in OPA1CONbits
9613 #define PCH1 OPA1CONbits.PCH1 // bit 1, shadows bit in OPA1CONbits
9614 #define OPA1PCH2 OPA1CONbits.OPA1PCH2 // bit 2, shadows bit in OPA1CONbits
9615 #define PCH2 OPA1CONbits.PCH2 // bit 2, shadows bit in OPA1CONbits
9616 #define OPA1SP OPA1CONbits.OPA1SP // bit 6, shadows bit in OPA1CONbits
9617 #define SP OPA1CONbits.SP // bit 6, shadows bit in OPA1CONbits
9618 #define OPA1EN OPA1CONbits.OPA1EN // bit 7, shadows bit in OPA1CONbits
9619 #define EN OPA1CONbits.EN // bit 7, shadows bit in OPA1CONbits
9621 #define PS0 OPTION_REGbits.PS0 // bit 0
9622 #define PS1 OPTION_REGbits.PS1 // bit 1
9623 #define PS2 OPTION_REGbits.PS2 // bit 2
9624 #define PSA OPTION_REGbits.PSA // bit 3
9625 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
9626 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
9627 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
9628 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
9629 #define INTEDG OPTION_REGbits.INTEDG // bit 6
9630 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
9632 #define SCS0 OSCCONbits.SCS0 // bit 0
9633 #define SCS1 OSCCONbits.SCS1 // bit 1
9634 #define IRCF0 OSCCONbits.IRCF0 // bit 3
9635 #define IRCF1 OSCCONbits.IRCF1 // bit 4
9636 #define IRCF2 OSCCONbits.IRCF2 // bit 5
9637 #define IRCF3 OSCCONbits.IRCF3 // bit 6
9638 #define SPLLEN OSCCONbits.SPLLEN // bit 7
9640 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
9641 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
9642 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
9643 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
9644 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
9645 #define OSTS OSCSTATbits.OSTS // bit 5
9646 #define PLLR OSCSTATbits.PLLR // bit 6
9647 #define T1OSCR OSCSTATbits.T1OSCR // bit 7
9649 #define TUN0 OSCTUNEbits.TUN0 // bit 0
9650 #define TUN1 OSCTUNEbits.TUN1 // bit 1
9651 #define TUN2 OSCTUNEbits.TUN2 // bit 2
9652 #define TUN3 OSCTUNEbits.TUN3 // bit 3
9653 #define TUN4 OSCTUNEbits.TUN4 // bit 4
9654 #define TUN5 OSCTUNEbits.TUN5 // bit 5
9656 #define NOT_BOR PCONbits.NOT_BOR // bit 0
9657 #define NOT_POR PCONbits.NOT_POR // bit 1
9658 #define NOT_RI PCONbits.NOT_RI // bit 2
9659 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
9660 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
9661 #define STKUNF PCONbits.STKUNF // bit 6
9662 #define STKOVF PCONbits.STKOVF // bit 7
9664 #define TMR1IE PIE1bits.TMR1IE // bit 0
9665 #define TMR2IE PIE1bits.TMR2IE // bit 1
9666 #define CCP1IE PIE1bits.CCP1IE // bit 2
9667 #define SSP1IE PIE1bits.SSP1IE // bit 3
9668 #define TXIE PIE1bits.TXIE // bit 4
9669 #define RCIE PIE1bits.RCIE // bit 5
9670 #define ADIE PIE1bits.ADIE // bit 6
9671 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
9673 #define CCP2IE PIE2bits.CCP2IE // bit 0
9674 #define C3IE PIE2bits.C3IE // bit 1
9675 #define C4IE PIE2bits.C4IE // bit 2
9676 #define BCL1IE PIE2bits.BCL1IE // bit 3
9677 #define EEIE PIE2bits.EEIE // bit 4
9678 #define C1IE PIE2bits.C1IE // bit 5
9679 #define C2IE PIE2bits.C2IE // bit 6
9680 #define OSFIE PIE2bits.OSFIE // bit 7
9682 #define CCP3IE PIE3bits.CCP3IE // bit 4
9684 #define PSMC1SIE PIE4bits.PSMC1SIE // bit 0
9685 #define PSMC2SIE PIE4bits.PSMC2SIE // bit 1
9686 #define PSMC3SIE PIE4bits.PSMC3SIE // bit 2
9687 #define PSMC4SIE PIE4bits.PSMC4SIE // bit 3
9688 #define PSMC1TIE PIE4bits.PSMC1TIE // bit 4
9689 #define PSMC2TIE PIE4bits.PSMC2TIE // bit 5
9690 #define PSMC3TIE PIE4bits.PSMC3TIE // bit 6, shadows bit in PIE4bits
9691 #define PMSC3TIE PIE4bits.PMSC3TIE // bit 6, shadows bit in PIE4bits
9692 #define PSMC4TIE PIE4bits.PSMC4TIE // bit 7
9694 #define TMR1IF PIR1bits.TMR1IF // bit 0
9695 #define TMR2IF PIR1bits.TMR2IF // bit 1
9696 #define CCP1IF PIR1bits.CCP1IF // bit 2
9697 #define SSP1IF PIR1bits.SSP1IF // bit 3
9698 #define TXIF PIR1bits.TXIF // bit 4
9699 #define RCIF PIR1bits.RCIF // bit 5
9700 #define ADIF PIR1bits.ADIF // bit 6
9701 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
9703 #define CCP2IF PIR2bits.CCP2IF // bit 0
9704 #define C3IF PIR2bits.C3IF // bit 1
9705 #define C4IF PIR2bits.C4IF // bit 2
9706 #define BCL1IF PIR2bits.BCL1IF // bit 3
9707 #define EEIF PIR2bits.EEIF // bit 4
9708 #define C1IF PIR2bits.C1IF // bit 5
9709 #define C2IF PIR2bits.C2IF // bit 6
9710 #define OSFIF PIR2bits.OSFIF // bit 7
9712 #define CCP3IF PIR3bits.CCP3IF // bit 4
9714 #define PSMC1SIF PIR4bits.PSMC1SIF // bit 0
9715 #define PSMC2SIF PIR4bits.PSMC2SIF // bit 1
9716 #define PSMC3SIF PIR4bits.PSMC3SIF // bit 2
9717 #define PSMC4SIF PIR4bits.PSMC4SIF // bit 3
9718 #define PSMC1TIF PIR4bits.PSMC1TIF // bit 4
9719 #define PSMC2TIF PIR4bits.PSMC2TIF // bit 5
9720 #define PSMC3TIF PIR4bits.PSMC3TIF // bit 6
9721 #define PSMC4TIF PIR4bits.PSMC4TIF // bit 7
9723 #define RA0 PORTAbits.RA0 // bit 0
9724 #define RA1 PORTAbits.RA1 // bit 1
9725 #define RA2 PORTAbits.RA2 // bit 2
9726 #define RA3 PORTAbits.RA3 // bit 3
9727 #define RA4 PORTAbits.RA4 // bit 4
9728 #define RA5 PORTAbits.RA5 // bit 5
9729 #define RA6 PORTAbits.RA6 // bit 6
9730 #define RA7 PORTAbits.RA7 // bit 7
9732 #define RB0 PORTBbits.RB0 // bit 0
9733 #define RB1 PORTBbits.RB1 // bit 1
9734 #define RB2 PORTBbits.RB2 // bit 2
9735 #define RB3 PORTBbits.RB3 // bit 3
9736 #define RB4 PORTBbits.RB4 // bit 4
9737 #define RB5 PORTBbits.RB5 // bit 5
9738 #define RB6 PORTBbits.RB6 // bit 6
9739 #define RB7 PORTBbits.RB7 // bit 7
9741 #define RC0 PORTCbits.RC0 // bit 0
9742 #define RC1 PORTCbits.RC1 // bit 1
9743 #define RC2 PORTCbits.RC2 // bit 2
9744 #define RC3 PORTCbits.RC3 // bit 3
9745 #define RC4 PORTCbits.RC4 // bit 4
9746 #define RC5 PORTCbits.RC5 // bit 5
9747 #define RC6 PORTCbits.RC6 // bit 6
9748 #define RC7 PORTCbits.RC7 // bit 7
9750 #define RD0 PORTDbits.RD0 // bit 0
9751 #define RD1 PORTDbits.RD1 // bit 1
9752 #define RD2 PORTDbits.RD2 // bit 2
9753 #define RD3 PORTDbits.RD3 // bit 3
9754 #define RD4 PORTDbits.RD4 // bit 4
9755 #define RD5 PORTDbits.RD5 // bit 5
9756 #define RD6 PORTDbits.RD6 // bit 6
9757 #define RD7 PORTDbits.RD7 // bit 7
9759 #define RE0 PORTEbits.RE0 // bit 0
9760 #define RE1 PORTEbits.RE1 // bit 1
9761 #define RE2 PORTEbits.RE2 // bit 2
9762 #define RE3 PORTEbits.RE3 // bit 3
9764 #define P1ASDOV PSMC1ASDCbits.P1ASDOV // bit 0
9765 #define P1ARSEN PSMC1ASDCbits.P1ARSEN // bit 5
9766 #define P1ASDEN PSMC1ASDCbits.P1ASDEN // bit 6
9767 #define P1ASE PSMC1ASDCbits.P1ASE // bit 7
9769 #define P1ASDLA PSMC1ASDLbits.P1ASDLA // bit 0
9770 #define P1ASDLB PSMC1ASDLbits.P1ASDLB // bit 1
9771 #define P1ASDLC PSMC1ASDLbits.P1ASDLC // bit 2
9772 #define P1ASDLD PSMC1ASDLbits.P1ASDLD // bit 3
9773 #define P1ASDLE PSMC1ASDLbits.P1ASDLE // bit 4
9774 #define P1ASDLF PSMC1ASDLbits.P1ASDLF // bit 5
9776 #define P1ASDSC1 PSMC1ASDSbits.P1ASDSC1 // bit 1
9777 #define P1ASDSC2 PSMC1ASDSbits.P1ASDSC2 // bit 2
9778 #define P1ASDSC3 PSMC1ASDSbits.P1ASDSC3 // bit 3
9779 #define P1ASDSC4 PSMC1ASDSbits.P1ASDSC4 // bit 4
9780 #define P1ASDSIN PSMC1ASDSbits.P1ASDSIN // bit 7
9782 #define PSMC1BLKF0 PSMC1BLKFbits.PSMC1BLKF0 // bit 0
9783 #define PSMC1BLKF1 PSMC1BLKFbits.PSMC1BLKF1 // bit 1
9784 #define PSMC1BLKF2 PSMC1BLKFbits.PSMC1BLKF2 // bit 2
9785 #define PSMC1BLKF3 PSMC1BLKFbits.PSMC1BLKF3 // bit 3
9786 #define PSMC1BLKF4 PSMC1BLKFbits.PSMC1BLKF4 // bit 4
9787 #define PSMC1BLKF5 PSMC1BLKFbits.PSMC1BLKF5 // bit 5
9788 #define PSMC1BLKF6 PSMC1BLKFbits.PSMC1BLKF6 // bit 6
9789 #define PSMC1BLKF7 PSMC1BLKFbits.PSMC1BLKF7 // bit 7
9791 #define PSMC1BLKR0 PSMC1BLKRbits.PSMC1BLKR0 // bit 0
9792 #define PSMC1BLKR1 PSMC1BLKRbits.PSMC1BLKR1 // bit 1
9793 #define PSMC1BLKR2 PSMC1BLKRbits.PSMC1BLKR2 // bit 2
9794 #define PSMC1BLKR3 PSMC1BLKRbits.PSMC1BLKR3 // bit 3
9795 #define PSMC1BLKR4 PSMC1BLKRbits.PSMC1BLKR4 // bit 4
9796 #define PSMC1BLKR5 PSMC1BLKRbits.PSMC1BLKR5 // bit 5
9797 #define PSMC1BLKR6 PSMC1BLKRbits.PSMC1BLKR6 // bit 6
9798 #define PSMC1BLKR7 PSMC1BLKRbits.PSMC1BLKR7 // bit 7
9800 #define P1REBM0 PSMC1BLNKbits.P1REBM0 // bit 0
9801 #define P1REBM1 PSMC1BLNKbits.P1REBM1 // bit 1
9802 #define P1FEBM0 PSMC1BLNKbits.P1FEBM0 // bit 4
9803 #define P1FEBM1 PSMC1BLNKbits.P1FEBM1 // bit 5
9805 #define P1CSRC0 PSMC1CLKbits.P1CSRC0 // bit 0
9806 #define P1CSRC1 PSMC1CLKbits.P1CSRC1 // bit 1
9807 #define P1CPRE0 PSMC1CLKbits.P1CPRE0 // bit 4
9808 #define P1CPRE1 PSMC1CLKbits.P1CPRE1 // bit 5
9810 #define P1MODE0 PSMC1CONbits.P1MODE0 // bit 0
9811 #define P1MODE1 PSMC1CONbits.P1MODE1 // bit 1
9812 #define P1MODE2 PSMC1CONbits.P1MODE2 // bit 2
9813 #define P1MODE3 PSMC1CONbits.P1MODE3 // bit 3
9814 #define P1DBRE PSMC1CONbits.P1DBRE // bit 4
9815 #define P1DBFE PSMC1CONbits.P1DBFE // bit 5
9816 #define PSMC1LD PSMC1CONbits.PSMC1LD // bit 6
9817 #define PSMC1EN PSMC1CONbits.PSMC1EN // bit 7
9819 #define PSMC1DBF0 PSMC1DBFbits.PSMC1DBF0 // bit 0
9820 #define PSMC1DBF1 PSMC1DBFbits.PSMC1DBF1 // bit 1
9821 #define PSMC1DBF2 PSMC1DBFbits.PSMC1DBF2 // bit 2
9822 #define PSMC1DBF3 PSMC1DBFbits.PSMC1DBF3 // bit 3
9823 #define PSMC1DBF4 PSMC1DBFbits.PSMC1DBF4 // bit 4
9824 #define PSMC1DBF5 PSMC1DBFbits.PSMC1DBF5 // bit 5
9825 #define PSMC1DBF6 PSMC1DBFbits.PSMC1DBF6 // bit 6
9826 #define PSMC1DBF7 PSMC1DBFbits.PSMC1DBF7 // bit 7
9828 #define PSMC1DBR0 PSMC1DBRbits.PSMC1DBR0 // bit 0
9829 #define PSMC1DBR1 PSMC1DBRbits.PSMC1DBR1 // bit 1
9830 #define PSMC1DBR2 PSMC1DBRbits.PSMC1DBR2 // bit 2
9831 #define PSMC1DBR3 PSMC1DBRbits.PSMC1DBR3 // bit 3
9832 #define PSMC1DBR4 PSMC1DBRbits.PSMC1DBR4 // bit 4
9833 #define PSMC1DBR5 PSMC1DBRbits.PSMC1DBR5 // bit 5
9834 #define PSMC1DBR6 PSMC1DBRbits.PSMC1DBR6 // bit 6
9835 #define PSMC1DBR7 PSMC1DBRbits.PSMC1DBR7 // bit 7
9837 #define PSMC1DC8 PSMC1DCHbits.PSMC1DC8 // bit 0
9838 #define PSMC1DC9 PSMC1DCHbits.PSMC1DC9 // bit 1
9839 #define PSMC1DC10 PSMC1DCHbits.PSMC1DC10 // bit 2
9840 #define PSMC1DC11 PSMC1DCHbits.PSMC1DC11 // bit 3
9841 #define PSMC1DC12 PSMC1DCHbits.PSMC1DC12 // bit 4
9842 #define PSMC1DC13 PSMC1DCHbits.PSMC1DC13 // bit 5
9843 #define PSMC1DC14 PSMC1DCHbits.PSMC1DC14 // bit 6
9844 #define PSMC1DC15 PSMC1DCHbits.PSMC1DC15 // bit 7
9846 #define PSMC1DC0 PSMC1DCLbits.PSMC1DC0 // bit 0
9847 #define PSMC1DC1 PSMC1DCLbits.PSMC1DC1 // bit 1
9848 #define PSMC1DC2 PSMC1DCLbits.PSMC1DC2 // bit 2
9849 #define PSMC1DC3 PSMC1DCLbits.PSMC1DC3 // bit 3
9850 #define PSMC1DC4 PSMC1DCLbits.PSMC1DC4 // bit 4
9851 #define PSMC1DC5 PSMC1DCLbits.PSMC1DC5 // bit 5
9852 #define PSMC1DC6 PSMC1DCLbits.PSMC1DC6 // bit 6
9853 #define PSMC1DC7 PSMC1DCLbits.PSMC1DC7 // bit 7
9855 #define P1DCST PSMC1DCSbits.P1DCST // bit 0
9856 #define P1DCSC1 PSMC1DCSbits.P1DCSC1 // bit 1
9857 #define P1DCSC2 PSMC1DCSbits.P1DCSC2 // bit 2
9858 #define P1DCSC3 PSMC1DCSbits.P1DCSC3 // bit 3
9859 #define P1DCSC4 PSMC1DCSbits.P1DCSC4 // bit 4
9860 #define P1DCSIN PSMC1DCSbits.P1DCSIN // bit 7
9862 #define P1FEBSC1 PSMC1FEBSbits.P1FEBSC1 // bit 1
9863 #define P1FEBSC2 PSMC1FEBSbits.P1FEBSC2 // bit 2
9864 #define P1FEBSC3 PSMC1FEBSbits.P1FEBSC3 // bit 3
9865 #define P1FEBSC4 PSMC1FEBSbits.P1FEBSC4 // bit 4
9866 #define P1FEBSIN PSMC1FEBSbits.P1FEBSIN // bit 7
9868 #define PSMC1FFA0 PSMC1FFAbits.PSMC1FFA0 // bit 0
9869 #define PSMC1FFA1 PSMC1FFAbits.PSMC1FFA1 // bit 1
9870 #define PSMC1FFA2 PSMC1FFAbits.PSMC1FFA2 // bit 2
9871 #define PSMC1FFA3 PSMC1FFAbits.PSMC1FFA3 // bit 3
9873 #define P1TPRIF PSMC1INTbits.P1TPRIF // bit 0
9874 #define P1TDCIF PSMC1INTbits.P1TDCIF // bit 1
9875 #define P1TPHIF PSMC1INTbits.P1TPHIF // bit 2
9876 #define P1TOVIF PSMC1INTbits.P1TOVIF // bit 3
9877 #define P1TPRIE PSMC1INTbits.P1TPRIE // bit 4
9878 #define P1TDCIE PSMC1INTbits.P1TDCIE // bit 5
9879 #define P1TPHIE PSMC1INTbits.P1TPHIE // bit 6
9880 #define P1TOVIE PSMC1INTbits.P1TOVIE // bit 7
9882 #define P1MSRC0 PSMC1MDLbits.P1MSRC0 // bit 0
9883 #define P1MSRC1 PSMC1MDLbits.P1MSRC1 // bit 1
9884 #define P1MSRC2 PSMC1MDLbits.P1MSRC2 // bit 2
9885 #define P1MSRC3 PSMC1MDLbits.P1MSRC3 // bit 3
9886 #define P1MDLBIT PSMC1MDLbits.P1MDLBIT // bit 5
9887 #define P1MDLPOL PSMC1MDLbits.P1MDLPOL // bit 6
9888 #define P1MDLEN PSMC1MDLbits.P1MDLEN // bit 7
9890 #define P1OEA PSMC1OENbits.P1OEA // bit 0
9891 #define P1OEB PSMC1OENbits.P1OEB // bit 1
9892 #define P1OEC PSMC1OENbits.P1OEC // bit 2
9893 #define P1OED PSMC1OENbits.P1OED // bit 3
9894 #define P1OEE PSMC1OENbits.P1OEE // bit 4
9895 #define P1OEF PSMC1OENbits.P1OEF // bit 5
9897 #define PSMC1PH8 PSMC1PHHbits.PSMC1PH8 // bit 0
9898 #define PSMC1PH9 PSMC1PHHbits.PSMC1PH9 // bit 1
9899 #define PSMC1PH10 PSMC1PHHbits.PSMC1PH10 // bit 2
9900 #define PSMC1PH11 PSMC1PHHbits.PSMC1PH11 // bit 3
9901 #define PSMC1PH12 PSMC1PHHbits.PSMC1PH12 // bit 4
9902 #define PSMC1PH13 PSMC1PHHbits.PSMC1PH13 // bit 5
9903 #define PSMC1PH14 PSMC1PHHbits.PSMC1PH14 // bit 6
9904 #define PSMC1PH15 PSMC1PHHbits.PSMC1PH15 // bit 7
9906 #define PSMC1PH0 PSMC1PHLbits.PSMC1PH0 // bit 0
9907 #define PSMC1PH1 PSMC1PHLbits.PSMC1PH1 // bit 1
9908 #define PSMC1PH2 PSMC1PHLbits.PSMC1PH2 // bit 2
9909 #define PSMC1PH3 PSMC1PHLbits.PSMC1PH3 // bit 3
9910 #define PSMC1PH4 PSMC1PHLbits.PSMC1PH4 // bit 4
9911 #define PSMC1PH5 PSMC1PHLbits.PSMC1PH5 // bit 5
9912 #define PSMC1PH6 PSMC1PHLbits.PSMC1PH6 // bit 6
9913 #define PSMC1PH7 PSMC1PHLbits.PSMC1PH7 // bit 7
9915 #define P1PHST PSMC1PHSbits.P1PHST // bit 0
9916 #define P1PHSC1 PSMC1PHSbits.P1PHSC1 // bit 1
9917 #define P1PHSC2 PSMC1PHSbits.P1PHSC2 // bit 2
9918 #define P1PHSC3 PSMC1PHSbits.P1PHSC3 // bit 3
9919 #define P1PHSC4 PSMC1PHSbits.P1PHSC4 // bit 4
9920 #define P1PHSIN PSMC1PHSbits.P1PHSIN // bit 7
9922 #define P1POLA PSMC1POLbits.P1POLA // bit 0
9923 #define P1POLB PSMC1POLbits.P1POLB // bit 1
9924 #define P1POLC PSMC1POLbits.P1POLC // bit 2
9925 #define P1POLD PSMC1POLbits.P1POLD // bit 3
9926 #define P1POLE PSMC1POLbits.P1POLE // bit 4
9927 #define P1POLF PSMC1POLbits.P1POLF // bit 5
9928 #define P1INPOL PSMC1POLbits.P1INPOL // bit 6
9930 #define PSMC1PR8 PSMC1PRHbits.PSMC1PR8 // bit 0
9931 #define PSMC1PR9 PSMC1PRHbits.PSMC1PR9 // bit 1
9932 #define PSMC1PR10 PSMC1PRHbits.PSMC1PR10 // bit 2
9933 #define PSMC1PR11 PSMC1PRHbits.PSMC1PR11 // bit 3
9934 #define PSMC1PR12 PSMC1PRHbits.PSMC1PR12 // bit 4
9935 #define PSMC1PR13 PSMC1PRHbits.PSMC1PR13 // bit 5
9936 #define PSMC1PR14 PSMC1PRHbits.PSMC1PR14 // bit 6
9937 #define PSMC1PR15 PSMC1PRHbits.PSMC1PR15 // bit 7
9939 #define PSMC1PR0 PSMC1PRLbits.PSMC1PR0 // bit 0
9940 #define PSMC1PR1 PSMC1PRLbits.PSMC1PR1 // bit 1
9941 #define PSMC1PR2 PSMC1PRLbits.PSMC1PR2 // bit 2
9942 #define PSMC1PR3 PSMC1PRLbits.PSMC1PR3 // bit 3
9943 #define PSMC1PR4 PSMC1PRLbits.PSMC1PR4 // bit 4
9944 #define PSMC1PR5 PSMC1PRLbits.PSMC1PR5 // bit 5
9945 #define PSMC1PR6 PSMC1PRLbits.PSMC1PR6 // bit 6
9946 #define PSMC1PR7 PSMC1PRLbits.PSMC1PR7 // bit 7
9948 #define P1PRST PSMC1PRSbits.P1PRST // bit 0
9949 #define P1PRSC1 PSMC1PRSbits.P1PRSC1 // bit 1
9950 #define P1PRSC2 PSMC1PRSbits.P1PRSC2 // bit 2
9951 #define P1PRSC3 PSMC1PRSbits.P1PRSC3 // bit 3
9952 #define P1PRSC4 PSMC1PRSbits.P1PRSC4 // bit 4
9953 #define P1PRSIN PSMC1PRSbits.P1PRSIN // bit 7
9955 #define P1REBSC1 PSMC1REBSbits.P1REBSC1 // bit 1
9956 #define P1REBSC2 PSMC1REBSbits.P1REBSC2 // bit 2
9957 #define P1REBSC3 PSMC1REBSbits.P1REBSC3 // bit 3
9958 #define P1REBSC4 PSMC1REBSbits.P1REBSC4 // bit 4
9959 #define P1REBSIN PSMC1REBSbits.P1REBSIN // bit 7
9961 #define P1STRA PSMC1STR0bits.P1STRA // bit 0
9962 #define P1STRB PSMC1STR0bits.P1STRB // bit 1
9963 #define P1STRC PSMC1STR0bits.P1STRC // bit 2
9964 #define P1STRD PSMC1STR0bits.P1STRD // bit 3
9965 #define P1STRE PSMC1STR0bits.P1STRE // bit 4
9966 #define P1STRF PSMC1STR0bits.P1STRF // bit 5
9968 #define P1HSMEN PSMC1STR1bits.P1HSMEN // bit 0
9969 #define P1LSMEN PSMC1STR1bits.P1LSMEN // bit 1
9970 #define P1SSYNC PSMC1STR1bits.P1SSYNC // bit 7
9972 #define P1SYNC0 PSMC1SYNCbits.P1SYNC0 // bit 0
9973 #define P1SYNC1 PSMC1SYNCbits.P1SYNC1 // bit 1
9974 #define P1SYNC2 PSMC1SYNCbits.P1SYNC2 // bit 2
9975 #define P1DCPOL PSMC1SYNCbits.P1DCPOL // bit 5
9976 #define P1PRPOL PSMC1SYNCbits.P1PRPOL // bit 6
9977 #define P1POFST PSMC1SYNCbits.P1POFST // bit 7
9979 #define PSMC1TMR8 PSMC1TMRHbits.PSMC1TMR8 // bit 0
9980 #define PSMC1TMR9 PSMC1TMRHbits.PSMC1TMR9 // bit 1
9981 #define PSMC1TMR10 PSMC1TMRHbits.PSMC1TMR10 // bit 2
9982 #define PSMC1TMR11 PSMC1TMRHbits.PSMC1TMR11 // bit 3
9983 #define PSMC1TMR12 PSMC1TMRHbits.PSMC1TMR12 // bit 4
9984 #define PSMC1TMR13 PSMC1TMRHbits.PSMC1TMR13 // bit 5
9985 #define PSMC1TMR14 PSMC1TMRHbits.PSMC1TMR14 // bit 6
9986 #define PSMC1TMR15 PSMC1TMRHbits.PSMC1TMR15 // bit 7
9988 #define PSMC1TMR0 PSMC1TMRLbits.PSMC1TMR0 // bit 0
9989 #define PSMC1TMR1 PSMC1TMRLbits.PSMC1TMR1 // bit 1
9990 #define PSMC1TMR2 PSMC1TMRLbits.PSMC1TMR2 // bit 2
9991 #define PSMC1TMR3 PSMC1TMRLbits.PSMC1TMR3 // bit 3
9992 #define PSMC1TMR4 PSMC1TMRLbits.PSMC1TMR4 // bit 4
9993 #define PSMC1TMR5 PSMC1TMRLbits.PSMC1TMR5 // bit 5
9994 #define PSMC1TMR6 PSMC1TMRLbits.PSMC1TMR6 // bit 6
9995 #define PSMC1TMR7 PSMC1TMRLbits.PSMC1TMR7 // bit 7
9997 #define P2ASDOV PSMC2ASDCbits.P2ASDOV // bit 0
9998 #define P2ARSEN PSMC2ASDCbits.P2ARSEN // bit 5
9999 #define P2ASDEN PSMC2ASDCbits.P2ASDEN // bit 6
10000 #define P2ASE PSMC2ASDCbits.P2ASE // bit 7
10002 #define P2ASDLA PSMC2ASDLbits.P2ASDLA // bit 0
10003 #define P2ASDLB PSMC2ASDLbits.P2ASDLB // bit 1
10005 #define P2ASDSC1 PSMC2ASDSbits.P2ASDSC1 // bit 1
10006 #define P2ASDSC2 PSMC2ASDSbits.P2ASDSC2 // bit 2
10007 #define P2ASDSC3 PSMC2ASDSbits.P2ASDSC3 // bit 3
10008 #define P2ASDSC4 PSMC2ASDSbits.P2ASDSC4 // bit 4
10009 #define P2ASDSIN PSMC2ASDSbits.P2ASDSIN // bit 7
10011 #define PSMC2BLKF0 PSMC2BLKFbits.PSMC2BLKF0 // bit 0
10012 #define PSMC2BLKF1 PSMC2BLKFbits.PSMC2BLKF1 // bit 1
10013 #define PSMC2BLKF2 PSMC2BLKFbits.PSMC2BLKF2 // bit 2
10014 #define PSMC2BLKF3 PSMC2BLKFbits.PSMC2BLKF3 // bit 3
10015 #define PSMC2BLKF4 PSMC2BLKFbits.PSMC2BLKF4 // bit 4
10016 #define PSMC2BLKF5 PSMC2BLKFbits.PSMC2BLKF5 // bit 5
10017 #define PSMC2BLKF6 PSMC2BLKFbits.PSMC2BLKF6 // bit 6
10018 #define PSMC2BLKF7 PSMC2BLKFbits.PSMC2BLKF7 // bit 7
10020 #define PSMC2BLKR0 PSMC2BLKRbits.PSMC2BLKR0 // bit 0
10021 #define PSMC2BLKR1 PSMC2BLKRbits.PSMC2BLKR1 // bit 1
10022 #define PSMC2BLKR2 PSMC2BLKRbits.PSMC2BLKR2 // bit 2
10023 #define PSMC2BLKR3 PSMC2BLKRbits.PSMC2BLKR3 // bit 3
10024 #define PSMC2BLKR4 PSMC2BLKRbits.PSMC2BLKR4 // bit 4
10025 #define PSMC2BLKR5 PSMC2BLKRbits.PSMC2BLKR5 // bit 5
10026 #define PSMC2BLKR6 PSMC2BLKRbits.PSMC2BLKR6 // bit 6
10027 #define PSMC2BLKR7 PSMC2BLKRbits.PSMC2BLKR7 // bit 7
10029 #define P2REBM0 PSMC2BLNKbits.P2REBM0 // bit 0
10030 #define P2REBM1 PSMC2BLNKbits.P2REBM1 // bit 1
10031 #define P2FEBM0 PSMC2BLNKbits.P2FEBM0 // bit 4
10032 #define P2FEBM1 PSMC2BLNKbits.P2FEBM1 // bit 5
10034 #define P2CSRC0 PSMC2CLKbits.P2CSRC0 // bit 0
10035 #define P2CSRC1 PSMC2CLKbits.P2CSRC1 // bit 1
10036 #define P2CPRE0 PSMC2CLKbits.P2CPRE0 // bit 4
10037 #define P2CPRE1 PSMC2CLKbits.P2CPRE1 // bit 5
10039 #define P2MODE0 PSMC2CONbits.P2MODE0 // bit 0
10040 #define P2MODE1 PSMC2CONbits.P2MODE1 // bit 1
10041 #define P2MODE2 PSMC2CONbits.P2MODE2 // bit 2
10042 #define P2MODE3 PSMC2CONbits.P2MODE3 // bit 3
10043 #define P2DBRE PSMC2CONbits.P2DBRE // bit 4
10044 #define P2DBFE PSMC2CONbits.P2DBFE // bit 5
10045 #define PSMC2LD PSMC2CONbits.PSMC2LD // bit 6
10046 #define PSMC2EN PSMC2CONbits.PSMC2EN // bit 7
10048 #define PSMC2DBF0 PSMC2DBFbits.PSMC2DBF0 // bit 0
10049 #define PSMC2DBF1 PSMC2DBFbits.PSMC2DBF1 // bit 1
10050 #define PSMC2DBF2 PSMC2DBFbits.PSMC2DBF2 // bit 2
10051 #define PSMC2DBF3 PSMC2DBFbits.PSMC2DBF3 // bit 3
10052 #define PSMC2DBF4 PSMC2DBFbits.PSMC2DBF4 // bit 4
10053 #define PSMC2DBF5 PSMC2DBFbits.PSMC2DBF5 // bit 5
10054 #define PSMC2DBF6 PSMC2DBFbits.PSMC2DBF6 // bit 6
10055 #define PSMC2DBF7 PSMC2DBFbits.PSMC2DBF7 // bit 7
10057 #define PSMC2DBR0 PSMC2DBRbits.PSMC2DBR0 // bit 0
10058 #define PSMC2DBR1 PSMC2DBRbits.PSMC2DBR1 // bit 1
10059 #define PSMC2DBR2 PSMC2DBRbits.PSMC2DBR2 // bit 2
10060 #define PSMC2DBR3 PSMC2DBRbits.PSMC2DBR3 // bit 3
10061 #define PSMC2DBR4 PSMC2DBRbits.PSMC2DBR4 // bit 4
10062 #define PSMC2DBR5 PSMC2DBRbits.PSMC2DBR5 // bit 5
10063 #define PSMC2DBR6 PSMC2DBRbits.PSMC2DBR6 // bit 6
10064 #define PSMC2DBR7 PSMC2DBRbits.PSMC2DBR7 // bit 7
10066 #define PSMC2DC8 PSMC2DCHbits.PSMC2DC8 // bit 0
10067 #define PSMC2DC9 PSMC2DCHbits.PSMC2DC9 // bit 1
10068 #define PSMC2DC10 PSMC2DCHbits.PSMC2DC10 // bit 2
10069 #define PSMC2DC11 PSMC2DCHbits.PSMC2DC11 // bit 3
10070 #define PSMC2DC12 PSMC2DCHbits.PSMC2DC12 // bit 4
10071 #define PSMC2DC13 PSMC2DCHbits.PSMC2DC13 // bit 5
10072 #define PSMC2DC14 PSMC2DCHbits.PSMC2DC14 // bit 6
10073 #define PSMC2DC15 PSMC2DCHbits.PSMC2DC15 // bit 7
10075 #define PSMC2DC0 PSMC2DCLbits.PSMC2DC0 // bit 0
10076 #define PSMC2DC1 PSMC2DCLbits.PSMC2DC1 // bit 1
10077 #define PSMC2DC2 PSMC2DCLbits.PSMC2DC2 // bit 2
10078 #define PSMC2DC3 PSMC2DCLbits.PSMC2DC3 // bit 3
10079 #define PSMC2DC4 PSMC2DCLbits.PSMC2DC4 // bit 4
10080 #define PSMC2DC5 PSMC2DCLbits.PSMC2DC5 // bit 5
10081 #define PSMC2DC6 PSMC2DCLbits.PSMC2DC6 // bit 6
10082 #define PSMC2DC7 PSMC2DCLbits.PSMC2DC7 // bit 7
10084 #define P2DCST PSMC2DCSbits.P2DCST // bit 0
10085 #define P2DCSC1 PSMC2DCSbits.P2DCSC1 // bit 1
10086 #define P2DCSC2 PSMC2DCSbits.P2DCSC2 // bit 2
10087 #define P2DCSC3 PSMC2DCSbits.P2DCSC3 // bit 3
10088 #define P2DCSC4 PSMC2DCSbits.P2DCSC4 // bit 4
10089 #define P2DCSIN PSMC2DCSbits.P2DCSIN // bit 7
10091 #define P2FEBSC1 PSMC2FEBSbits.P2FEBSC1 // bit 1
10092 #define P2FEBSC2 PSMC2FEBSbits.P2FEBSC2 // bit 2
10093 #define P2FEBSC3 PSMC2FEBSbits.P2FEBSC3 // bit 3
10094 #define P2FEBSC4 PSMC2FEBSbits.P2FEBSC4 // bit 4
10095 #define P2FEBSIN PSMC2FEBSbits.P2FEBSIN // bit 7
10097 #define PSMC2FFA0 PSMC2FFAbits.PSMC2FFA0 // bit 0
10098 #define PSMC2FFA1 PSMC2FFAbits.PSMC2FFA1 // bit 1
10099 #define PSMC2FFA2 PSMC2FFAbits.PSMC2FFA2 // bit 2
10100 #define PSMC2FFA3 PSMC2FFAbits.PSMC2FFA3 // bit 3
10102 #define P2TPRIF PSMC2INTbits.P2TPRIF // bit 0
10103 #define P2TDCIF PSMC2INTbits.P2TDCIF // bit 1
10104 #define P2TPHIF PSMC2INTbits.P2TPHIF // bit 2
10105 #define P2TOVIF PSMC2INTbits.P2TOVIF // bit 3
10106 #define P2TPRIE PSMC2INTbits.P2TPRIE // bit 4
10107 #define P2TDCIE PSMC2INTbits.P2TDCIE // bit 5
10108 #define P2TPHIE PSMC2INTbits.P2TPHIE // bit 6
10109 #define P2TOVIE PSMC2INTbits.P2TOVIE // bit 7
10111 #define P2MSRC0 PSMC2MDLbits.P2MSRC0 // bit 0
10112 #define P2MSRC1 PSMC2MDLbits.P2MSRC1 // bit 1
10113 #define P2MSRC2 PSMC2MDLbits.P2MSRC2 // bit 2
10114 #define P2MSRC3 PSMC2MDLbits.P2MSRC3 // bit 3
10115 #define P2MDLBIT PSMC2MDLbits.P2MDLBIT // bit 5
10116 #define P2MDLPOL PSMC2MDLbits.P2MDLPOL // bit 6
10117 #define P2MDLEN PSMC2MDLbits.P2MDLEN // bit 7
10119 #define P2OEA PSMC2OENbits.P2OEA // bit 0
10120 #define P2OEB PSMC2OENbits.P2OEB // bit 1
10122 #define PSMC2PH8 PSMC2PHHbits.PSMC2PH8 // bit 0
10123 #define PSMC2PH9 PSMC2PHHbits.PSMC2PH9 // bit 1
10124 #define PSMC2PH10 PSMC2PHHbits.PSMC2PH10 // bit 2
10125 #define PSMC2PH11 PSMC2PHHbits.PSMC2PH11 // bit 3
10126 #define PSMC2PH12 PSMC2PHHbits.PSMC2PH12 // bit 4
10127 #define PSMC2PH13 PSMC2PHHbits.PSMC2PH13 // bit 5
10128 #define PSMC2PH14 PSMC2PHHbits.PSMC2PH14 // bit 6
10129 #define PSMC2PH15 PSMC2PHHbits.PSMC2PH15 // bit 7
10131 #define PSMC2PH0 PSMC2PHLbits.PSMC2PH0 // bit 0
10132 #define PSMC2PH1 PSMC2PHLbits.PSMC2PH1 // bit 1
10133 #define PSMC2PH2 PSMC2PHLbits.PSMC2PH2 // bit 2
10134 #define PSMC2PH3 PSMC2PHLbits.PSMC2PH3 // bit 3
10135 #define PSMC2PH4 PSMC2PHLbits.PSMC2PH4 // bit 4
10136 #define PSMC2PH5 PSMC2PHLbits.PSMC2PH5 // bit 5
10137 #define PSMC2PH6 PSMC2PHLbits.PSMC2PH6 // bit 6
10138 #define PSMC2PH7 PSMC2PHLbits.PSMC2PH7 // bit 7
10140 #define P2PHST PSMC2PHSbits.P2PHST // bit 0
10141 #define P2PHSC1 PSMC2PHSbits.P2PHSC1 // bit 1
10142 #define P2PHSC2 PSMC2PHSbits.P2PHSC2 // bit 2
10143 #define P2PHSC3 PSMC2PHSbits.P2PHSC3 // bit 3
10144 #define P2PHSC4 PSMC2PHSbits.P2PHSC4 // bit 4
10145 #define P2PHSIN PSMC2PHSbits.P2PHSIN // bit 7
10147 #define P2POLA PSMC2POLbits.P2POLA // bit 0
10148 #define P2POLB PSMC2POLbits.P2POLB // bit 1
10149 #define P2INPOL PSMC2POLbits.P2INPOL // bit 6
10151 #define PSMC2PR8 PSMC2PRHbits.PSMC2PR8 // bit 0
10152 #define PSMC2PR9 PSMC2PRHbits.PSMC2PR9 // bit 1
10153 #define PSMC2PR10 PSMC2PRHbits.PSMC2PR10 // bit 2
10154 #define PSMC2PR11 PSMC2PRHbits.PSMC2PR11 // bit 3
10155 #define PSMC2PR12 PSMC2PRHbits.PSMC2PR12 // bit 4
10156 #define PSMC2PR13 PSMC2PRHbits.PSMC2PR13 // bit 5
10157 #define PSMC2PR14 PSMC2PRHbits.PSMC2PR14 // bit 6
10158 #define PSMC2PR15 PSMC2PRHbits.PSMC2PR15 // bit 7
10160 #define PSMC2PR0 PSMC2PRLbits.PSMC2PR0 // bit 0
10161 #define PSMC2PR1 PSMC2PRLbits.PSMC2PR1 // bit 1
10162 #define PSMC2PR2 PSMC2PRLbits.PSMC2PR2 // bit 2
10163 #define PSMC2PR3 PSMC2PRLbits.PSMC2PR3 // bit 3
10164 #define PSMC2PR4 PSMC2PRLbits.PSMC2PR4 // bit 4
10165 #define PSMC2PR5 PSMC2PRLbits.PSMC2PR5 // bit 5
10166 #define PSMC2PR6 PSMC2PRLbits.PSMC2PR6 // bit 6
10167 #define PSMC2PR7 PSMC2PRLbits.PSMC2PR7 // bit 7
10169 #define P2PRST PSMC2PRSbits.P2PRST // bit 0
10170 #define P2PRSC1 PSMC2PRSbits.P2PRSC1 // bit 1
10171 #define P2PRSC2 PSMC2PRSbits.P2PRSC2 // bit 2
10172 #define P2PRSC3 PSMC2PRSbits.P2PRSC3 // bit 3
10173 #define P2PRSC4 PSMC2PRSbits.P2PRSC4 // bit 4
10174 #define P2PRSIN PSMC2PRSbits.P2PRSIN // bit 7
10176 #define P2REBSC1 PSMC2REBSbits.P2REBSC1 // bit 1
10177 #define P2REBSC2 PSMC2REBSbits.P2REBSC2 // bit 2
10178 #define P2REBSC3 PSMC2REBSbits.P2REBSC3 // bit 3
10179 #define P2REBSC4 PSMC2REBSbits.P2REBSC4 // bit 4
10180 #define P2REBSIN PSMC2REBSbits.P2REBSIN // bit 7
10182 #define P2STRA PSMC2STR0bits.P2STRA // bit 0
10183 #define P2STRB PSMC2STR0bits.P2STRB // bit 1
10185 #define P2HSMEN PSMC2STR1bits.P2HSMEN // bit 0
10186 #define P2LSMEN PSMC2STR1bits.P2LSMEN // bit 1
10187 #define P2SSYNC PSMC2STR1bits.P2SSYNC // bit 7
10189 #define P2SYNC0 PSMC2SYNCbits.P2SYNC0 // bit 0
10190 #define P2SYNC1 PSMC2SYNCbits.P2SYNC1 // bit 1
10191 #define P2SYNC2 PSMC2SYNCbits.P2SYNC2 // bit 2
10192 #define P2DCPOL PSMC2SYNCbits.P2DCPOL // bit 5
10193 #define P2PRPOL PSMC2SYNCbits.P2PRPOL // bit 6
10194 #define P2POFST PSMC2SYNCbits.P2POFST // bit 7
10196 #define PSMC2TMR8 PSMC2TMRHbits.PSMC2TMR8 // bit 0
10197 #define PSMC2TMR9 PSMC2TMRHbits.PSMC2TMR9 // bit 1
10198 #define PSMC2TMR10 PSMC2TMRHbits.PSMC2TMR10 // bit 2
10199 #define PSMC2TMR11 PSMC2TMRHbits.PSMC2TMR11 // bit 3
10200 #define PSMC2TMR12 PSMC2TMRHbits.PSMC2TMR12 // bit 4
10201 #define PSMC2TMR13 PSMC2TMRHbits.PSMC2TMR13 // bit 5
10202 #define PSMC2TMR14 PSMC2TMRHbits.PSMC2TMR14 // bit 6
10203 #define PSMC2TMR15 PSMC2TMRHbits.PSMC2TMR15 // bit 7
10205 #define PSMC2TMR0 PSMC2TMRLbits.PSMC2TMR0 // bit 0
10206 #define PSMC2TMR1 PSMC2TMRLbits.PSMC2TMR1 // bit 1
10207 #define PSMC2TMR2 PSMC2TMRLbits.PSMC2TMR2 // bit 2
10208 #define PSMC2TMR3 PSMC2TMRLbits.PSMC2TMR3 // bit 3
10209 #define PSMC2TMR4 PSMC2TMRLbits.PSMC2TMR4 // bit 4
10210 #define PSMC2TMR5 PSMC2TMRLbits.PSMC2TMR5 // bit 5
10211 #define PSMC2TMR6 PSMC2TMRLbits.PSMC2TMR6 // bit 6
10212 #define PSMC2TMR7 PSMC2TMRLbits.PSMC2TMR7 // bit 7
10214 #define P3ASDOV PSMC3ASDCbits.P3ASDOV // bit 0
10215 #define P3ARSEN PSMC3ASDCbits.P3ARSEN // bit 5
10216 #define P3ASDEN PSMC3ASDCbits.P3ASDEN // bit 6
10217 #define P3ASE PSMC3ASDCbits.P3ASE // bit 7
10219 #define P3ASDLA PSMC3ASDLbits.P3ASDLA // bit 0
10220 #define P3ASDLB PSMC3ASDLbits.P3ASDLB // bit 1
10221 #define P3ASDLC PSMC3ASDLbits.P3ASDLC // bit 2
10222 #define P3ASDLD PSMC3ASDLbits.P3ASDLD // bit 3
10223 #define P3ASDLE PSMC3ASDLbits.P3ASDLE // bit 4
10224 #define P3ASDLF PSMC3ASDLbits.P3ASDLF // bit 5
10226 #define P3ASDSC1 PSMC3ASDSbits.P3ASDSC1 // bit 1
10227 #define P3ASDSC2 PSMC3ASDSbits.P3ASDSC2 // bit 2
10228 #define P3ASDSC3 PSMC3ASDSbits.P3ASDSC3 // bit 3
10229 #define P3ASDSC4 PSMC3ASDSbits.P3ASDSC4 // bit 4
10230 #define P3ASDSIN PSMC3ASDSbits.P3ASDSIN // bit 7
10232 #define PSMC3BLKF0 PSMC3BLKFbits.PSMC3BLKF0 // bit 0
10233 #define PSMC3BLKF1 PSMC3BLKFbits.PSMC3BLKF1 // bit 1
10234 #define PSMC3BLKF2 PSMC3BLKFbits.PSMC3BLKF2 // bit 2
10235 #define PSMC3BLKF3 PSMC3BLKFbits.PSMC3BLKF3 // bit 3
10236 #define PSMC3BLKF4 PSMC3BLKFbits.PSMC3BLKF4 // bit 4
10237 #define PSMC3BLKF5 PSMC3BLKFbits.PSMC3BLKF5 // bit 5
10238 #define PSMC3BLKF6 PSMC3BLKFbits.PSMC3BLKF6 // bit 6
10239 #define PSMC3BLKF7 PSMC3BLKFbits.PSMC3BLKF7 // bit 7
10241 #define PSMC3BLKR0 PSMC3BLKRbits.PSMC3BLKR0 // bit 0
10242 #define PSMC3BLKR1 PSMC3BLKRbits.PSMC3BLKR1 // bit 1
10243 #define PSMC3BLKR2 PSMC3BLKRbits.PSMC3BLKR2 // bit 2
10244 #define PSMC3BLKR3 PSMC3BLKRbits.PSMC3BLKR3 // bit 3
10245 #define PSMC3BLKR4 PSMC3BLKRbits.PSMC3BLKR4 // bit 4
10246 #define PSMC3BLKR5 PSMC3BLKRbits.PSMC3BLKR5 // bit 5
10247 #define PSMC3BLKR6 PSMC3BLKRbits.PSMC3BLKR6 // bit 6
10248 #define PSMC3BLKR7 PSMC3BLKRbits.PSMC3BLKR7 // bit 7
10250 #define P3REBM0 PSMC3BLNKbits.P3REBM0 // bit 0
10251 #define P3REBM1 PSMC3BLNKbits.P3REBM1 // bit 1
10252 #define P3FEBM0 PSMC3BLNKbits.P3FEBM0 // bit 4
10253 #define P3FEBM1 PSMC3BLNKbits.P3FEBM1 // bit 5
10255 #define P3CSRC0 PSMC3CLKbits.P3CSRC0 // bit 0
10256 #define P3CSRC1 PSMC3CLKbits.P3CSRC1 // bit 1
10257 #define P3CPRE0 PSMC3CLKbits.P3CPRE0 // bit 4
10258 #define P3CPRE1 PSMC3CLKbits.P3CPRE1 // bit 5
10260 #define P3MODE0 PSMC3CONbits.P3MODE0 // bit 0
10261 #define P3MODE1 PSMC3CONbits.P3MODE1 // bit 1
10262 #define P3MODE2 PSMC3CONbits.P3MODE2 // bit 2
10263 #define P3MODE3 PSMC3CONbits.P3MODE3 // bit 3
10264 #define P3DBRE PSMC3CONbits.P3DBRE // bit 4
10265 #define P3DBFE PSMC3CONbits.P3DBFE // bit 5
10266 #define PSMC3LD PSMC3CONbits.PSMC3LD // bit 6
10267 #define PSMC3EN PSMC3CONbits.PSMC3EN // bit 7
10269 #define PSMC3DBF0 PSMC3DBFbits.PSMC3DBF0 // bit 0
10270 #define PSMC3DBF1 PSMC3DBFbits.PSMC3DBF1 // bit 1
10271 #define PSMC3DBF2 PSMC3DBFbits.PSMC3DBF2 // bit 2
10272 #define PSMC3DBF3 PSMC3DBFbits.PSMC3DBF3 // bit 3
10273 #define PSMC3DBF4 PSMC3DBFbits.PSMC3DBF4 // bit 4
10274 #define PSMC3DBF5 PSMC3DBFbits.PSMC3DBF5 // bit 5
10275 #define PSMC3DBF6 PSMC3DBFbits.PSMC3DBF6 // bit 6
10276 #define PSMC3DBF7 PSMC3DBFbits.PSMC3DBF7 // bit 7
10278 #define PSMC3DBR0 PSMC3DBRbits.PSMC3DBR0 // bit 0
10279 #define PSMC3DBR1 PSMC3DBRbits.PSMC3DBR1 // bit 1
10280 #define PSMC3DBR2 PSMC3DBRbits.PSMC3DBR2 // bit 2
10281 #define PSMC3DBR3 PSMC3DBRbits.PSMC3DBR3 // bit 3
10282 #define PSMC3DBR4 PSMC3DBRbits.PSMC3DBR4 // bit 4
10283 #define PSMC3DBR5 PSMC3DBRbits.PSMC3DBR5 // bit 5
10284 #define PSMC3DBR6 PSMC3DBRbits.PSMC3DBR6 // bit 6
10285 #define PSMC3DBR7 PSMC3DBRbits.PSMC3DBR7 // bit 7
10287 #define PSMC3DC8 PSMC3DCHbits.PSMC3DC8 // bit 0
10288 #define PSMC3DC9 PSMC3DCHbits.PSMC3DC9 // bit 1
10289 #define PSMC3DC10 PSMC3DCHbits.PSMC3DC10 // bit 2
10290 #define PSMC3DC11 PSMC3DCHbits.PSMC3DC11 // bit 3
10291 #define PSMC3DC12 PSMC3DCHbits.PSMC3DC12 // bit 4
10292 #define PSMC3DC13 PSMC3DCHbits.PSMC3DC13 // bit 5
10293 #define PSMC3DC14 PSMC3DCHbits.PSMC3DC14 // bit 6
10294 #define PSMC3DC15 PSMC3DCHbits.PSMC3DC15 // bit 7
10296 #define PSMC3DC0 PSMC3DCLbits.PSMC3DC0 // bit 0
10297 #define PSMC3DC1 PSMC3DCLbits.PSMC3DC1 // bit 1
10298 #define PSMC3DC2 PSMC3DCLbits.PSMC3DC2 // bit 2
10299 #define PSMC3DC3 PSMC3DCLbits.PSMC3DC3 // bit 3
10300 #define PSMC3DC4 PSMC3DCLbits.PSMC3DC4 // bit 4
10301 #define PSMC3DC5 PSMC3DCLbits.PSMC3DC5 // bit 5
10302 #define PSMC3DC6 PSMC3DCLbits.PSMC3DC6 // bit 6
10303 #define PSMC3DC7 PSMC3DCLbits.PSMC3DC7 // bit 7
10305 #define P3DCST PSMC3DCSbits.P3DCST // bit 0
10306 #define P3DCSC1 PSMC3DCSbits.P3DCSC1 // bit 1
10307 #define P3DCSC2 PSMC3DCSbits.P3DCSC2 // bit 2
10308 #define P3DCSC3 PSMC3DCSbits.P3DCSC3 // bit 3
10309 #define P3DCSC4 PSMC3DCSbits.P3DCSC4 // bit 4
10310 #define P3DCSIN PSMC3DCSbits.P3DCSIN // bit 7
10312 #define P3FEBSC1 PSMC3FEBSbits.P3FEBSC1 // bit 1
10313 #define P3FEBSC2 PSMC3FEBSbits.P3FEBSC2 // bit 2
10314 #define P3FEBSC3 PSMC3FEBSbits.P3FEBSC3 // bit 3
10315 #define P3FEBSC4 PSMC3FEBSbits.P3FEBSC4 // bit 4
10316 #define P3FEBSIN PSMC3FEBSbits.P3FEBSIN // bit 7
10318 #define PSMC3FFA0 PSMC3FFAbits.PSMC3FFA0 // bit 0
10319 #define PSMC3FFA1 PSMC3FFAbits.PSMC3FFA1 // bit 1
10320 #define PSMC3FFA2 PSMC3FFAbits.PSMC3FFA2 // bit 2
10321 #define PSMC3FFA3 PSMC3FFAbits.PSMC3FFA3 // bit 3
10323 #define P3TPRIF PSMC3INTbits.P3TPRIF // bit 0
10324 #define P3TDCIF PSMC3INTbits.P3TDCIF // bit 1
10325 #define P3TPHIF PSMC3INTbits.P3TPHIF // bit 2
10326 #define P3TOVIF PSMC3INTbits.P3TOVIF // bit 3
10327 #define P3TPRIE PSMC3INTbits.P3TPRIE // bit 4
10328 #define P3TDCIE PSMC3INTbits.P3TDCIE // bit 5
10329 #define P3TPHIE PSMC3INTbits.P3TPHIE // bit 6
10330 #define P3TOVIE PSMC3INTbits.P3TOVIE // bit 7
10332 #define P3MSRC0 PSMC3MDLbits.P3MSRC0 // bit 0
10333 #define P3MSRC1 PSMC3MDLbits.P3MSRC1 // bit 1
10334 #define P3MSRC2 PSMC3MDLbits.P3MSRC2 // bit 2
10335 #define P3MSRC3 PSMC3MDLbits.P3MSRC3 // bit 3
10336 #define P3MDLBIT PSMC3MDLbits.P3MDLBIT // bit 5
10337 #define P3MDLPOL PSMC3MDLbits.P3MDLPOL // bit 6
10338 #define P3MDLEN PSMC3MDLbits.P3MDLEN // bit 7
10340 #define P3OEA PSMC3OENbits.P3OEA // bit 0
10341 #define P3OEB PSMC3OENbits.P3OEB // bit 1
10342 #define P3OEC PSMC3OENbits.P3OEC // bit 2
10343 #define P3OED PSMC3OENbits.P3OED // bit 3
10344 #define P3OEE PSMC3OENbits.P3OEE // bit 4
10345 #define P3OEF PSMC3OENbits.P3OEF // bit 5
10347 #define PSMC3PH8 PSMC3PHHbits.PSMC3PH8 // bit 0
10348 #define PSMC3PH9 PSMC3PHHbits.PSMC3PH9 // bit 1
10349 #define PSMC3PH10 PSMC3PHHbits.PSMC3PH10 // bit 2
10350 #define PSMC3PH11 PSMC3PHHbits.PSMC3PH11 // bit 3
10351 #define PSMC3PH12 PSMC3PHHbits.PSMC3PH12 // bit 4
10352 #define PSMC3PH13 PSMC3PHHbits.PSMC3PH13 // bit 5
10353 #define PSMC3PH14 PSMC3PHHbits.PSMC3PH14 // bit 6
10354 #define PSMC3PH15 PSMC3PHHbits.PSMC3PH15 // bit 7
10356 #define PSMC3PH0 PSMC3PHLbits.PSMC3PH0 // bit 0
10357 #define PSMC3PH1 PSMC3PHLbits.PSMC3PH1 // bit 1
10358 #define PSMC3PH2 PSMC3PHLbits.PSMC3PH2 // bit 2
10359 #define PSMC3PH3 PSMC3PHLbits.PSMC3PH3 // bit 3
10360 #define PSMC3PH4 PSMC3PHLbits.PSMC3PH4 // bit 4
10361 #define PSMC3PH5 PSMC3PHLbits.PSMC3PH5 // bit 5
10362 #define PSMC3PH6 PSMC3PHLbits.PSMC3PH6 // bit 6
10363 #define PSMC3PH7 PSMC3PHLbits.PSMC3PH7 // bit 7
10365 #define P3PHST PSMC3PHSbits.P3PHST // bit 0
10366 #define P3PHSC1 PSMC3PHSbits.P3PHSC1 // bit 1
10367 #define P3PHSC2 PSMC3PHSbits.P3PHSC2 // bit 2
10368 #define P3PHSC3 PSMC3PHSbits.P3PHSC3 // bit 3
10369 #define P3PHSC4 PSMC3PHSbits.P3PHSC4 // bit 4
10370 #define P3PHSIN PSMC3PHSbits.P3PHSIN // bit 7
10372 #define P3POLA PSMC3POLbits.P3POLA // bit 0
10373 #define P3POLB PSMC3POLbits.P3POLB // bit 1
10374 #define P3POLC PSMC3POLbits.P3POLC // bit 2
10375 #define P3POLD PSMC3POLbits.P3POLD // bit 3
10376 #define P3POLE PSMC3POLbits.P3POLE // bit 4
10377 #define P3POLF PSMC3POLbits.P3POLF // bit 5
10378 #define P3INPOL PSMC3POLbits.P3INPOL // bit 6
10380 #define PSMC3PR8 PSMC3PRHbits.PSMC3PR8 // bit 0
10381 #define PSMC3PR9 PSMC3PRHbits.PSMC3PR9 // bit 1
10382 #define PSMC3PR10 PSMC3PRHbits.PSMC3PR10 // bit 2
10383 #define PSMC3PR11 PSMC3PRHbits.PSMC3PR11 // bit 3
10384 #define PSMC3PR12 PSMC3PRHbits.PSMC3PR12 // bit 4
10385 #define PSMC3PR13 PSMC3PRHbits.PSMC3PR13 // bit 5
10386 #define PSMC3PR14 PSMC3PRHbits.PSMC3PR14 // bit 6
10387 #define PSMC3PR15 PSMC3PRHbits.PSMC3PR15 // bit 7
10389 #define PSMC3PR0 PSMC3PRLbits.PSMC3PR0 // bit 0
10390 #define PSMC3PR1 PSMC3PRLbits.PSMC3PR1 // bit 1
10391 #define PSMC3PR2 PSMC3PRLbits.PSMC3PR2 // bit 2
10392 #define PSMC3PR3 PSMC3PRLbits.PSMC3PR3 // bit 3
10393 #define PSMC3PR4 PSMC3PRLbits.PSMC3PR4 // bit 4
10394 #define PSMC3PR5 PSMC3PRLbits.PSMC3PR5 // bit 5
10395 #define PSMC3PR6 PSMC3PRLbits.PSMC3PR6 // bit 6
10396 #define PSMC3PR7 PSMC3PRLbits.PSMC3PR7 // bit 7
10398 #define P3PRST PSMC3PRSbits.P3PRST // bit 0
10399 #define P3PRSC1 PSMC3PRSbits.P3PRSC1 // bit 1
10400 #define P3PRSC2 PSMC3PRSbits.P3PRSC2 // bit 2
10401 #define P3PRSC3 PSMC3PRSbits.P3PRSC3 // bit 3
10402 #define P3PRSC4 PSMC3PRSbits.P3PRSC4 // bit 4
10403 #define P3PRSIN PSMC3PRSbits.P3PRSIN // bit 7
10405 #define P3REBSC1 PSMC3REBSbits.P3REBSC1 // bit 1
10406 #define P3REBSC2 PSMC3REBSbits.P3REBSC2 // bit 2
10407 #define P3REBSC3 PSMC3REBSbits.P3REBSC3 // bit 3
10408 #define P3REBSC4 PSMC3REBSbits.P3REBSC4 // bit 4
10409 #define P3REBSIN PSMC3REBSbits.P3REBSIN // bit 7
10411 #define P3STRA PSMC3STR0bits.P3STRA // bit 0
10412 #define P3STRB PSMC3STR0bits.P3STRB // bit 1
10413 #define P3STRC PSMC3STR0bits.P3STRC // bit 2
10414 #define P3STRD PSMC3STR0bits.P3STRD // bit 3
10415 #define P3STRE PSMC3STR0bits.P3STRE // bit 4
10416 #define P3STRF PSMC3STR0bits.P3STRF // bit 5
10418 #define P3HSMEN PSMC3STR1bits.P3HSMEN // bit 0
10419 #define P3LSMEN PSMC3STR1bits.P3LSMEN // bit 1
10420 #define P3SSYNC PSMC3STR1bits.P3SSYNC // bit 7
10422 #define P3SYNC0 PSMC3SYNCbits.P3SYNC0 // bit 0
10423 #define P3SYNC1 PSMC3SYNCbits.P3SYNC1 // bit 1
10424 #define P3SYNC2 PSMC3SYNCbits.P3SYNC2 // bit 2
10425 #define P3DCPOL PSMC3SYNCbits.P3DCPOL // bit 5
10426 #define P3PRPOL PSMC3SYNCbits.P3PRPOL // bit 6
10427 #define P3POFST PSMC3SYNCbits.P3POFST // bit 7
10429 #define PSMC3TMR8 PSMC3TMRHbits.PSMC3TMR8 // bit 0
10430 #define PSMC3TMR9 PSMC3TMRHbits.PSMC3TMR9 // bit 1
10431 #define PSMC3TMR10 PSMC3TMRHbits.PSMC3TMR10 // bit 2
10432 #define PSMC3TMR11 PSMC3TMRHbits.PSMC3TMR11 // bit 3
10433 #define PSMC3TMR12 PSMC3TMRHbits.PSMC3TMR12 // bit 4
10434 #define PSMC3TMR13 PSMC3TMRHbits.PSMC3TMR13 // bit 5
10435 #define PSMC3TMR14 PSMC3TMRHbits.PSMC3TMR14 // bit 6
10436 #define PSMC3TMR15 PSMC3TMRHbits.PSMC3TMR15 // bit 7
10438 #define PSMC3TMR0 PSMC3TMRLbits.PSMC3TMR0 // bit 0
10439 #define PSMC3TMR1 PSMC3TMRLbits.PSMC3TMR1 // bit 1
10440 #define PSMC3TMR2 PSMC3TMRLbits.PSMC3TMR2 // bit 2
10441 #define PSMC3TMR3 PSMC3TMRLbits.PSMC3TMR3 // bit 3
10442 #define PSMC3TMR4 PSMC3TMRLbits.PSMC3TMR4 // bit 4
10443 #define PSMC3TMR5 PSMC3TMRLbits.PSMC3TMR5 // bit 5
10444 #define PSMC3TMR6 PSMC3TMRLbits.PSMC3TMR6 // bit 6
10445 #define PSMC3TMR7 PSMC3TMRLbits.PSMC3TMR7 // bit 7
10447 #define P4ASDOV PSMC4ASDCbits.P4ASDOV // bit 0
10448 #define P4ARSEN PSMC4ASDCbits.P4ARSEN // bit 5
10449 #define P4ASDEN PSMC4ASDCbits.P4ASDEN // bit 6
10450 #define P4ASE PSMC4ASDCbits.P4ASE // bit 7
10452 #define P4ASDLA PSMC4ASDLbits.P4ASDLA // bit 0
10453 #define P4ASDLB PSMC4ASDLbits.P4ASDLB // bit 1
10455 #define P4ASDSC1 PSMC4ASDSbits.P4ASDSC1 // bit 1
10456 #define P4ASDSC2 PSMC4ASDSbits.P4ASDSC2 // bit 2
10457 #define P4ASDSC3 PSMC4ASDSbits.P4ASDSC3 // bit 3
10458 #define P4ASDSC4 PSMC4ASDSbits.P4ASDSC4 // bit 4
10459 #define P4ASDSIN PSMC4ASDSbits.P4ASDSIN // bit 7
10461 #define PSMC4BLKF0 PSMC4BLKFbits.PSMC4BLKF0 // bit 0
10462 #define PSMC4BLKF1 PSMC4BLKFbits.PSMC4BLKF1 // bit 1
10463 #define PSMC4BLKF2 PSMC4BLKFbits.PSMC4BLKF2 // bit 2
10464 #define PSMC4BLKF3 PSMC4BLKFbits.PSMC4BLKF3 // bit 3
10465 #define PSMC4BLKF4 PSMC4BLKFbits.PSMC4BLKF4 // bit 4
10466 #define PSMC4BLKF5 PSMC4BLKFbits.PSMC4BLKF5 // bit 5
10467 #define PSMC4BLKF6 PSMC4BLKFbits.PSMC4BLKF6 // bit 6
10468 #define PSMC4BLKF7 PSMC4BLKFbits.PSMC4BLKF7 // bit 7
10470 #define PSMC4BLKR0 PSMC4BLKRbits.PSMC4BLKR0 // bit 0
10471 #define PSMC4BLKR1 PSMC4BLKRbits.PSMC4BLKR1 // bit 1
10472 #define PSMC4BLKR2 PSMC4BLKRbits.PSMC4BLKR2 // bit 2
10473 #define PSMC4BLKR3 PSMC4BLKRbits.PSMC4BLKR3 // bit 3
10474 #define PSMC4BLKR4 PSMC4BLKRbits.PSMC4BLKR4 // bit 4
10475 #define PSMC4BLKR5 PSMC4BLKRbits.PSMC4BLKR5 // bit 5
10476 #define PSMC4BLKR6 PSMC4BLKRbits.PSMC4BLKR6 // bit 6
10477 #define PSMC4BLKR7 PSMC4BLKRbits.PSMC4BLKR7 // bit 7
10479 #define P4REBM0 PSMC4BLNKbits.P4REBM0 // bit 0
10480 #define P4REBM1 PSMC4BLNKbits.P4REBM1 // bit 1
10481 #define P4FEBM0 PSMC4BLNKbits.P4FEBM0 // bit 4
10482 #define P4FEBM1 PSMC4BLNKbits.P4FEBM1 // bit 5
10484 #define P4CSRC0 PSMC4CLKbits.P4CSRC0 // bit 0
10485 #define P4CSRC1 PSMC4CLKbits.P4CSRC1 // bit 1
10486 #define P4CPRE0 PSMC4CLKbits.P4CPRE0 // bit 4
10487 #define P4CPRE1 PSMC4CLKbits.P4CPRE1 // bit 5
10489 #define P4MODE0 PSMC4CONbits.P4MODE0 // bit 0
10490 #define P4MODE1 PSMC4CONbits.P4MODE1 // bit 1
10491 #define P4MODE2 PSMC4CONbits.P4MODE2 // bit 2
10492 #define P4MODE3 PSMC4CONbits.P4MODE3 // bit 3
10493 #define P4DBRE PSMC4CONbits.P4DBRE // bit 4
10494 #define P4DBFE PSMC4CONbits.P4DBFE // bit 5
10495 #define PSMC4LD PSMC4CONbits.PSMC4LD // bit 6
10496 #define PSMC4EN PSMC4CONbits.PSMC4EN // bit 7
10498 #define PSMC4DBF0 PSMC4DBFbits.PSMC4DBF0 // bit 0
10499 #define PSMC4DBF1 PSMC4DBFbits.PSMC4DBF1 // bit 1
10500 #define PSMC4DBF2 PSMC4DBFbits.PSMC4DBF2 // bit 2
10501 #define PSMC4DBF3 PSMC4DBFbits.PSMC4DBF3 // bit 3
10502 #define PSMC4DBF4 PSMC4DBFbits.PSMC4DBF4 // bit 4
10503 #define PSMC4DBF5 PSMC4DBFbits.PSMC4DBF5 // bit 5
10504 #define PSMC4DBF6 PSMC4DBFbits.PSMC4DBF6 // bit 6
10505 #define PSMC4DBF7 PSMC4DBFbits.PSMC4DBF7 // bit 7
10507 #define PSMC4DBR0 PSMC4DBRbits.PSMC4DBR0 // bit 0
10508 #define PSMC4DBR1 PSMC4DBRbits.PSMC4DBR1 // bit 1
10509 #define PSMC4DBR2 PSMC4DBRbits.PSMC4DBR2 // bit 2
10510 #define PSMC4DBR3 PSMC4DBRbits.PSMC4DBR3 // bit 3
10511 #define PSMC4DBR4 PSMC4DBRbits.PSMC4DBR4 // bit 4
10512 #define PSMC4DBR5 PSMC4DBRbits.PSMC4DBR5 // bit 5
10513 #define PSMC4DBR6 PSMC4DBRbits.PSMC4DBR6 // bit 6
10514 #define PSMC4DBR7 PSMC4DBRbits.PSMC4DBR7 // bit 7
10516 #define PSMC4DC8 PSMC4DCHbits.PSMC4DC8 // bit 0
10517 #define PSMC4DC9 PSMC4DCHbits.PSMC4DC9 // bit 1
10518 #define PSMC4DC10 PSMC4DCHbits.PSMC4DC10 // bit 2
10519 #define PSMC4DC11 PSMC4DCHbits.PSMC4DC11 // bit 3
10520 #define PSMC4DC12 PSMC4DCHbits.PSMC4DC12 // bit 4
10521 #define PSMC4DC13 PSMC4DCHbits.PSMC4DC13 // bit 5
10522 #define PSMC4DC14 PSMC4DCHbits.PSMC4DC14 // bit 6
10523 #define PSMC4DC15 PSMC4DCHbits.PSMC4DC15 // bit 7
10525 #define PSMC4DC0 PSMC4DCLbits.PSMC4DC0 // bit 0
10526 #define PSMC4DC1 PSMC4DCLbits.PSMC4DC1 // bit 1
10527 #define PSMC4DC2 PSMC4DCLbits.PSMC4DC2 // bit 2
10528 #define PSMC4DC3 PSMC4DCLbits.PSMC4DC3 // bit 3
10529 #define PSMC4DC4 PSMC4DCLbits.PSMC4DC4 // bit 4
10530 #define PSMC4DC5 PSMC4DCLbits.PSMC4DC5 // bit 5
10531 #define PSMC4DC6 PSMC4DCLbits.PSMC4DC6 // bit 6
10532 #define PSMC4DC7 PSMC4DCLbits.PSMC4DC7 // bit 7
10534 #define P4DCST PSMC4DCSbits.P4DCST // bit 0
10535 #define P4DCSC1 PSMC4DCSbits.P4DCSC1 // bit 1
10536 #define P4DCSC2 PSMC4DCSbits.P4DCSC2 // bit 2
10537 #define P4DCSC3 PSMC4DCSbits.P4DCSC3 // bit 3
10538 #define P4DCSC4 PSMC4DCSbits.P4DCSC4 // bit 4
10539 #define P4DCSIN PSMC4DCSbits.P4DCSIN // bit 7
10541 #define P4FEBSC1 PSMC4FEBSbits.P4FEBSC1 // bit 1
10542 #define P4FEBSC2 PSMC4FEBSbits.P4FEBSC2 // bit 2
10543 #define P4FEBSC3 PSMC4FEBSbits.P4FEBSC3 // bit 3
10544 #define P4FEBSC4 PSMC4FEBSbits.P4FEBSC4 // bit 4
10545 #define P4FEBSIN PSMC4FEBSbits.P4FEBSIN // bit 7
10547 #define PSMC4FFA0 PSMC4FFAbits.PSMC4FFA0 // bit 0
10548 #define PSMC4FFA1 PSMC4FFAbits.PSMC4FFA1 // bit 1
10549 #define PSMC4FFA2 PSMC4FFAbits.PSMC4FFA2 // bit 2
10550 #define PSMC4FFA3 PSMC4FFAbits.PSMC4FFA3 // bit 3
10552 #define P4TPRIF PSMC4INTbits.P4TPRIF // bit 0
10553 #define P4TDCIF PSMC4INTbits.P4TDCIF // bit 1
10554 #define P4TPHIF PSMC4INTbits.P4TPHIF // bit 2
10555 #define P4TOVIF PSMC4INTbits.P4TOVIF // bit 3
10556 #define P4TPRIE PSMC4INTbits.P4TPRIE // bit 4
10557 #define P4TDCIE PSMC4INTbits.P4TDCIE // bit 5
10558 #define P4TPHIE PSMC4INTbits.P4TPHIE // bit 6
10559 #define P4TOVIE PSMC4INTbits.P4TOVIE // bit 7
10561 #define P4MSRC0 PSMC4MDLbits.P4MSRC0 // bit 0
10562 #define P4MSRC1 PSMC4MDLbits.P4MSRC1 // bit 1
10563 #define P4MSRC2 PSMC4MDLbits.P4MSRC2 // bit 2
10564 #define P4MSRC3 PSMC4MDLbits.P4MSRC3 // bit 3
10565 #define P4MDLBIT PSMC4MDLbits.P4MDLBIT // bit 5
10566 #define P4MDLPOL PSMC4MDLbits.P4MDLPOL // bit 6
10567 #define P4MDLEN PSMC4MDLbits.P4MDLEN // bit 7
10569 #define P4OEA PSMC4OENbits.P4OEA // bit 0
10570 #define P4OEB PSMC4OENbits.P4OEB // bit 1
10572 #define PSMC4PH8 PSMC4PHHbits.PSMC4PH8 // bit 0
10573 #define PSMC4PH9 PSMC4PHHbits.PSMC4PH9 // bit 1
10574 #define PSMC4PH10 PSMC4PHHbits.PSMC4PH10 // bit 2
10575 #define PSMC4PH11 PSMC4PHHbits.PSMC4PH11 // bit 3
10576 #define PSMC4PH12 PSMC4PHHbits.PSMC4PH12 // bit 4
10577 #define PSMC4PH13 PSMC4PHHbits.PSMC4PH13 // bit 5
10578 #define PSMC4PH14 PSMC4PHHbits.PSMC4PH14 // bit 6
10579 #define PSMC4PH15 PSMC4PHHbits.PSMC4PH15 // bit 7
10581 #define PSMC4PH0 PSMC4PHLbits.PSMC4PH0 // bit 0
10582 #define PSMC4PH1 PSMC4PHLbits.PSMC4PH1 // bit 1
10583 #define PSMC4PH2 PSMC4PHLbits.PSMC4PH2 // bit 2
10584 #define PSMC4PH3 PSMC4PHLbits.PSMC4PH3 // bit 3
10585 #define PSMC4PH4 PSMC4PHLbits.PSMC4PH4 // bit 4
10586 #define PSMC4PH5 PSMC4PHLbits.PSMC4PH5 // bit 5
10587 #define PSMC4PH6 PSMC4PHLbits.PSMC4PH6 // bit 6
10588 #define PSMC4PH7 PSMC4PHLbits.PSMC4PH7 // bit 7
10590 #define P4PHST PSMC4PHSbits.P4PHST // bit 0
10591 #define P4PHSC1 PSMC4PHSbits.P4PHSC1 // bit 1
10592 #define P4PHSC2 PSMC4PHSbits.P4PHSC2 // bit 2
10593 #define P4PHSC3 PSMC4PHSbits.P4PHSC3 // bit 3
10594 #define P4PHSC4 PSMC4PHSbits.P4PHSC4 // bit 4
10595 #define P4PHSIN PSMC4PHSbits.P4PHSIN // bit 7
10597 #define P4POLA PSMC4POLbits.P4POLA // bit 0
10598 #define P4POLB PSMC4POLbits.P4POLB // bit 1
10599 #define P4INPOL PSMC4POLbits.P4INPOL // bit 6
10601 #define PSMC4PR8 PSMC4PRHbits.PSMC4PR8 // bit 0
10602 #define PSMC4PR9 PSMC4PRHbits.PSMC4PR9 // bit 1
10603 #define PSMC4PR10 PSMC4PRHbits.PSMC4PR10 // bit 2
10604 #define PSMC4PR11 PSMC4PRHbits.PSMC4PR11 // bit 3
10605 #define PSMC4PR12 PSMC4PRHbits.PSMC4PR12 // bit 4
10606 #define PSMC4PR13 PSMC4PRHbits.PSMC4PR13 // bit 5
10607 #define PSMC4PR14 PSMC4PRHbits.PSMC4PR14 // bit 6
10608 #define PSMC4PR15 PSMC4PRHbits.PSMC4PR15 // bit 7
10610 #define PSMC4PR0 PSMC4PRLbits.PSMC4PR0 // bit 0
10611 #define PSMC4PR1 PSMC4PRLbits.PSMC4PR1 // bit 1
10612 #define PSMC4PR2 PSMC4PRLbits.PSMC4PR2 // bit 2
10613 #define PSMC4PR3 PSMC4PRLbits.PSMC4PR3 // bit 3
10614 #define PSMC4PR4 PSMC4PRLbits.PSMC4PR4 // bit 4
10615 #define PSMC4PR5 PSMC4PRLbits.PSMC4PR5 // bit 5
10616 #define PSMC4PR6 PSMC4PRLbits.PSMC4PR6 // bit 6
10617 #define PSMC4PR7 PSMC4PRLbits.PSMC4PR7 // bit 7
10619 #define P4PRST PSMC4PRSbits.P4PRST // bit 0
10620 #define P4PRSC1 PSMC4PRSbits.P4PRSC1 // bit 1
10621 #define P4PRSC2 PSMC4PRSbits.P4PRSC2 // bit 2
10622 #define P4PRSC3 PSMC4PRSbits.P4PRSC3 // bit 3
10623 #define P4PRSC4 PSMC4PRSbits.P4PRSC4 // bit 4
10624 #define P4PRSIN PSMC4PRSbits.P4PRSIN // bit 7
10626 #define P4REBSC1 PSMC4REBSbits.P4REBSC1 // bit 1
10627 #define P4REBSC2 PSMC4REBSbits.P4REBSC2 // bit 2
10628 #define P4REBSC3 PSMC4REBSbits.P4REBSC3 // bit 3
10629 #define P4REBSC4 PSMC4REBSbits.P4REBSC4 // bit 4
10630 #define P4REBSIN PSMC4REBSbits.P4REBSIN // bit 7
10632 #define P4STRA PSMC4STR0bits.P4STRA // bit 0
10633 #define P4STRB PSMC4STR0bits.P4STRB // bit 1
10635 #define P4HSMEN PSMC4STR1bits.P4HSMEN // bit 0
10636 #define P4LSMEN PSMC4STR1bits.P4LSMEN // bit 1
10637 #define P4SSYNC PSMC4STR1bits.P4SSYNC // bit 7
10639 #define P4SYNC0 PSMC4SYNCbits.P4SYNC0 // bit 0
10640 #define P4SYNC1 PSMC4SYNCbits.P4SYNC1 // bit 1
10641 #define P4SYNC2 PSMC4SYNCbits.P4SYNC2 // bit 2
10642 #define P4DCPOL PSMC4SYNCbits.P4DCPOL // bit 5
10643 #define P4PRPOL PSMC4SYNCbits.P4PRPOL // bit 6
10644 #define P4POFST PSMC4SYNCbits.P4POFST // bit 7
10646 #define PSMC4TMR8 PSMC4TMRHbits.PSMC4TMR8 // bit 0
10647 #define PSMC4TMR9 PSMC4TMRHbits.PSMC4TMR9 // bit 1
10648 #define PSMC4TMR10 PSMC4TMRHbits.PSMC4TMR10 // bit 2
10649 #define PSMC4TMR11 PSMC4TMRHbits.PSMC4TMR11 // bit 3
10650 #define PSMC4TMR12 PSMC4TMRHbits.PSMC4TMR12 // bit 4
10651 #define PSMC4TMR13 PSMC4TMRHbits.PSMC4TMR13 // bit 5
10652 #define PSMC4TMR14 PSMC4TMRHbits.PSMC4TMR14 // bit 6
10653 #define PSMC4TMR15 PSMC4TMRHbits.PSMC4TMR15 // bit 7
10655 #define PSMC4TMR0 PSMC4TMRLbits.PSMC4TMR0 // bit 0
10656 #define PSMC4TMR1 PSMC4TMRLbits.PSMC4TMR1 // bit 1
10657 #define PSMC4TMR2 PSMC4TMRLbits.PSMC4TMR2 // bit 2
10658 #define PSMC4TMR3 PSMC4TMRLbits.PSMC4TMR3 // bit 3
10659 #define PSMC4TMR4 PSMC4TMRLbits.PSMC4TMR4 // bit 4
10660 #define PSMC4TMR5 PSMC4TMRLbits.PSMC4TMR5 // bit 5
10661 #define PSMC4TMR6 PSMC4TMRLbits.PSMC4TMR6 // bit 6
10662 #define PSMC4TMR7 PSMC4TMRLbits.PSMC4TMR7 // bit 7
10664 #define RX9D RC1STAbits.RX9D // bit 0
10665 #define OERR RC1STAbits.OERR // bit 1
10666 #define FERR RC1STAbits.FERR // bit 2
10667 #define ADDEN RC1STAbits.ADDEN // bit 3
10668 #define CREN RC1STAbits.CREN // bit 4
10669 #define SREN RC1STAbits.SREN // bit 5
10670 #define RX9 RC1STAbits.RX9 // bit 6
10671 #define SPEN RC1STAbits.SPEN // bit 7
10673 #define SLRCONA0 SLRCONAbits.SLRCONA0 // bit 0
10674 #define SLRCONA1 SLRCONAbits.SLRCONA1 // bit 1
10675 #define SLRCONA2 SLRCONAbits.SLRCONA2 // bit 2
10676 #define SLRCONA3 SLRCONAbits.SLRCONA3 // bit 3
10677 #define SLRCONA4 SLRCONAbits.SLRCONA4 // bit 4
10678 #define SLRCONA5 SLRCONAbits.SLRCONA5 // bit 5
10679 #define SLRCONA6 SLRCONAbits.SLRCONA6 // bit 6
10680 #define SLRCONA7 SLRCONAbits.SLRCONA7 // bit 7
10682 #define SLRCONB0 SLRCONBbits.SLRCONB0 // bit 0
10683 #define SLRCONB1 SLRCONBbits.SLRCONB1 // bit 1
10684 #define SLRCONB2 SLRCONBbits.SLRCONB2 // bit 2
10685 #define SLRCONB3 SLRCONBbits.SLRCONB3 // bit 3
10686 #define SLRCONB4 SLRCONBbits.SLRCONB4 // bit 4
10687 #define SLRCONB5 SLRCONBbits.SLRCONB5 // bit 5
10688 #define SLRCONB6 SLRCONBbits.SLRCONB6 // bit 6
10689 #define SLRCONB7 SLRCONBbits.SLRCONB7 // bit 7
10691 #define SLRCONC0 SLRCONCbits.SLRCONC0 // bit 0
10692 #define SLRCONC1 SLRCONCbits.SLRCONC1 // bit 1
10693 #define SLRCONC2 SLRCONCbits.SLRCONC2 // bit 2
10694 #define SLRCONC3 SLRCONCbits.SLRCONC3 // bit 3
10695 #define SLRCONC4 SLRCONCbits.SLRCONC4 // bit 4
10696 #define SLRCONC5 SLRCONCbits.SLRCONC5 // bit 5
10697 #define SLRCONC6 SLRCONCbits.SLRCONC6 // bit 6
10698 #define SLRCONC7 SLRCONCbits.SLRCONC7 // bit 7
10700 #define SLRCOND0 SLRCONDbits.SLRCOND0 // bit 0
10701 #define SLRCOND1 SLRCONDbits.SLRCOND1 // bit 1
10702 #define SLRCOND2 SLRCONDbits.SLRCOND2 // bit 2
10703 #define SLRCOND3 SLRCONDbits.SLRCOND3 // bit 3
10704 #define SLRCOND4 SLRCONDbits.SLRCOND4 // bit 4
10705 #define SLRCOND5 SLRCONDbits.SLRCOND5 // bit 5
10706 #define SLRCOND6 SLRCONDbits.SLRCOND6 // bit 6
10707 #define SLRCOND7 SLRCONDbits.SLRCOND7 // bit 7
10709 #define SLRCONE0 SLRCONEbits.SLRCONE0 // bit 0
10710 #define SLRCONE1 SLRCONEbits.SLRCONE1 // bit 1
10711 #define SLRCONE2 SLRCONEbits.SLRCONE2 // bit 2
10713 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
10714 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
10715 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
10716 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
10717 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
10718 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
10719 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
10720 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
10721 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
10722 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
10723 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
10724 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
10725 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
10726 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
10727 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
10728 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
10730 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
10731 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
10732 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
10733 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
10734 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
10735 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
10736 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
10737 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
10738 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
10739 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
10740 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
10741 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
10742 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
10743 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
10744 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
10745 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
10747 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
10748 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
10749 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
10750 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
10751 #define CKP SSP1CONbits.CKP // bit 4
10752 #define SSPEN SSP1CONbits.SSPEN // bit 5
10753 #define SSPOV SSP1CONbits.SSPOV // bit 6
10754 #define WCOL SSP1CONbits.WCOL // bit 7
10756 #define SEN SSP1CON2bits.SEN // bit 0
10757 #define RSEN SSP1CON2bits.RSEN // bit 1
10758 #define PEN SSP1CON2bits.PEN // bit 2
10759 #define RCEN SSP1CON2bits.RCEN // bit 3
10760 #define ACKEN SSP1CON2bits.ACKEN // bit 4
10761 #define ACKDT SSP1CON2bits.ACKDT // bit 5
10762 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
10763 #define GCEN SSP1CON2bits.GCEN // bit 7
10765 #define DHEN SSP1CON3bits.DHEN // bit 0
10766 #define AHEN SSP1CON3bits.AHEN // bit 1
10767 #define SBCDE SSP1CON3bits.SBCDE // bit 2
10768 #define SDAHT SSP1CON3bits.SDAHT // bit 3
10769 #define BOEN SSP1CON3bits.BOEN // bit 4
10770 #define SCIE SSP1CON3bits.SCIE // bit 5
10771 #define PCIE SSP1CON3bits.PCIE // bit 6
10772 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
10774 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
10775 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
10776 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
10777 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
10778 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
10779 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
10780 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
10781 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
10782 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
10783 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
10784 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
10785 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
10786 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
10787 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
10788 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
10789 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
10791 #define BF SSP1STATbits.BF // bit 0
10792 #define UA SSP1STATbits.UA // bit 1
10793 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
10794 #define S SSP1STATbits.S // bit 3
10795 #define P SSP1STATbits.P // bit 4
10796 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
10797 #define CKE SSP1STATbits.CKE // bit 6
10798 #define SMP SSP1STATbits.SMP // bit 7
10800 #define C STATUSbits.C // bit 0
10801 #define DC STATUSbits.DC // bit 1
10802 #define Z STATUSbits.Z // bit 2
10803 #define NOT_PD STATUSbits.NOT_PD // bit 3
10804 #define NOT_TO STATUSbits.NOT_TO // bit 4
10806 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
10807 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
10808 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
10810 #define TMR1ON T1CONbits.TMR1ON // bit 0
10811 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
10812 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
10813 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
10814 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
10815 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
10816 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
10818 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
10819 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
10820 #define T1GVAL T1GCONbits.T1GVAL // bit 2
10821 #define T1GGO T1GCONbits.T1GGO // bit 3
10822 #define T1GSPM T1GCONbits.T1GSPM // bit 4
10823 #define T1GTM T1GCONbits.T1GTM // bit 5
10824 #define T1GPOL T1GCONbits.T1GPOL // bit 6
10825 #define TMR1GE T1GCONbits.TMR1GE // bit 7
10827 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
10828 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
10829 #define TMR2ON T2CONbits.TMR2ON // bit 2
10830 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
10831 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
10832 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
10833 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
10835 #define TRISA0 TRISAbits.TRISA0 // bit 0
10836 #define TRISA1 TRISAbits.TRISA1 // bit 1
10837 #define TRISA2 TRISAbits.TRISA2 // bit 2
10838 #define TRISA3 TRISAbits.TRISA3 // bit 3
10839 #define TRISA4 TRISAbits.TRISA4 // bit 4
10840 #define TRISA5 TRISAbits.TRISA5 // bit 5
10841 #define TRISA6 TRISAbits.TRISA6 // bit 6
10842 #define TRISA7 TRISAbits.TRISA7 // bit 7
10844 #define TRISB0 TRISBbits.TRISB0 // bit 0
10845 #define TRISB1 TRISBbits.TRISB1 // bit 1
10846 #define TRISB2 TRISBbits.TRISB2 // bit 2
10847 #define TRISB3 TRISBbits.TRISB3 // bit 3
10848 #define TRISB4 TRISBbits.TRISB4 // bit 4
10849 #define TRISB5 TRISBbits.TRISB5 // bit 5
10850 #define TRISB6 TRISBbits.TRISB6 // bit 6
10851 #define TRISB7 TRISBbits.TRISB7 // bit 7
10853 #define TRISC0 TRISCbits.TRISC0 // bit 0
10854 #define TRISC1 TRISCbits.TRISC1 // bit 1
10855 #define TRISC2 TRISCbits.TRISC2 // bit 2
10856 #define TRISC3 TRISCbits.TRISC3 // bit 3
10857 #define TRISC4 TRISCbits.TRISC4 // bit 4
10858 #define TRISC5 TRISCbits.TRISC5 // bit 5
10859 #define TRISC6 TRISCbits.TRISC6 // bit 6
10860 #define TRISC7 TRISCbits.TRISC7 // bit 7
10862 #define TRISD0 TRISDbits.TRISD0 // bit 0
10863 #define TRISD1 TRISDbits.TRISD1 // bit 1
10864 #define TRISD2 TRISDbits.TRISD2 // bit 2
10865 #define TRISD3 TRISDbits.TRISD3 // bit 3
10866 #define TRISD4 TRISDbits.TRISD4 // bit 4
10867 #define TRISD5 TRISDbits.TRISD5 // bit 5
10868 #define TRISD6 TRISDbits.TRISD6 // bit 6
10869 #define TRISD7 TRISDbits.TRISD7 // bit 7
10871 #define TRISE0 TRISEbits.TRISE0 // bit 0
10872 #define TRISE1 TRISEbits.TRISE1 // bit 1
10873 #define TRISE2 TRISEbits.TRISE2 // bit 2
10874 #define TRISE3 TRISEbits.TRISE3 // bit 3
10876 #define TX9D TX1STAbits.TX9D // bit 0
10877 #define TRMT TX1STAbits.TRMT // bit 1
10878 #define BRGH TX1STAbits.BRGH // bit 2
10879 #define SENDB TX1STAbits.SENDB // bit 3
10880 #define SYNC TX1STAbits.SYNC // bit 4
10881 #define TXEN TX1STAbits.TXEN // bit 5
10882 #define TX9 TX1STAbits.TX9 // bit 6
10883 #define CSRC TX1STAbits.CSRC // bit 7
10885 #define SWDTEN WDTCONbits.SWDTEN // bit 0
10886 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
10887 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
10888 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
10889 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
10890 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
10892 #define WPUA0 WPUAbits.WPUA0 // bit 0
10893 #define WPUA1 WPUAbits.WPUA1 // bit 1
10894 #define WPUA2 WPUAbits.WPUA2 // bit 2
10895 #define WPUA3 WPUAbits.WPUA3 // bit 3
10896 #define WPUA4 WPUAbits.WPUA4 // bit 4
10897 #define WPUA5 WPUAbits.WPUA5 // bit 5
10898 #define WPUA6 WPUAbits.WPUA6 // bit 6
10899 #define WPUA7 WPUAbits.WPUA7 // bit 7
10901 #define WPUB0 WPUBbits.WPUB0 // bit 0
10902 #define WPUB1 WPUBbits.WPUB1 // bit 1
10903 #define WPUB2 WPUBbits.WPUB2 // bit 2
10904 #define WPUB3 WPUBbits.WPUB3 // bit 3
10905 #define WPUB4 WPUBbits.WPUB4 // bit 4
10906 #define WPUB5 WPUBbits.WPUB5 // bit 5
10907 #define WPUB6 WPUBbits.WPUB6 // bit 6
10908 #define WPUB7 WPUBbits.WPUB7 // bit 7
10910 #define WPUC0 WPUCbits.WPUC0 // bit 0
10911 #define WPUC1 WPUCbits.WPUC1 // bit 1
10912 #define WPUC2 WPUCbits.WPUC2 // bit 2
10913 #define WPUC3 WPUCbits.WPUC3 // bit 3
10914 #define WPUC4 WPUCbits.WPUC4 // bit 4
10915 #define WPUC5 WPUCbits.WPUC5 // bit 5
10916 #define WPUC6 WPUCbits.WPUC6 // bit 6
10917 #define WPUC7 WPUCbits.WPUC7 // bit 7
10919 #define WPUD0 WPUDbits.WPUD0 // bit 0
10920 #define WPUD1 WPUDbits.WPUD1 // bit 1
10921 #define WPUD2 WPUDbits.WPUD2 // bit 2
10922 #define WPUD3 WPUDbits.WPUD3 // bit 3
10923 #define WPUD4 WPUDbits.WPUD4 // bit 4
10924 #define WPUD5 WPUDbits.WPUD5 // bit 5
10925 #define WPUD6 WPUDbits.WPUD6 // bit 6
10926 #define WPUD7 WPUDbits.WPUD7 // bit 7
10928 #define WPUE0 WPUEbits.WPUE0 // bit 0
10929 #define WPUE1 WPUEbits.WPUE1 // bit 1
10930 #define WPUE2 WPUEbits.WPUE2 // bit 2
10931 #define WPUE3 WPUEbits.WPUE3 // bit 3
10933 #endif // #ifndef NO_BIT_DEFINES
10935 #endif // #ifndef __PIC16LF1789_H__