struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic14 / pic16f1789.h
blob5b7b4185c994915765459f503d4cbaa82f247e2f
1 /*
2 * This declarations of the PIC16F1789 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 __PIC16F1789_H__
26 #define __PIC16F1789_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 VREGCON_ADDR 0x0197
125 #define RC1REG_ADDR 0x0199
126 #define RCREG_ADDR 0x0199
127 #define RCREG1_ADDR 0x0199
128 #define TX1REG_ADDR 0x019A
129 #define TXREG_ADDR 0x019A
130 #define TXREG1_ADDR 0x019A
131 #define SP1BRG_ADDR 0x019B
132 #define SP1BRGL_ADDR 0x019B
133 #define SPBRG_ADDR 0x019B
134 #define SPBRG1_ADDR 0x019B
135 #define SPBRGL_ADDR 0x019B
136 #define SP1BRGH_ADDR 0x019C
137 #define SPBRGH_ADDR 0x019C
138 #define SPBRGH1_ADDR 0x019C
139 #define RC1STA_ADDR 0x019D
140 #define RCSTA_ADDR 0x019D
141 #define RCSTA1_ADDR 0x019D
142 #define TX1STA_ADDR 0x019E
143 #define TXSTA_ADDR 0x019E
144 #define TXSTA1_ADDR 0x019E
145 #define BAUD1CON_ADDR 0x019F
146 #define BAUDCON_ADDR 0x019F
147 #define BAUDCON1_ADDR 0x019F
148 #define BAUDCTL_ADDR 0x019F
149 #define BAUDCTL1_ADDR 0x019F
150 #define WPUA_ADDR 0x020C
151 #define WPUB_ADDR 0x020D
152 #define WPUC_ADDR 0x020E
153 #define WPUD_ADDR 0x020F
154 #define WPUE_ADDR 0x0210
155 #define SSP1BUF_ADDR 0x0211
156 #define SSPBUF_ADDR 0x0211
157 #define SSP1ADD_ADDR 0x0212
158 #define SSPADD_ADDR 0x0212
159 #define SSP1MSK_ADDR 0x0213
160 #define SSPMSK_ADDR 0x0213
161 #define SSP1STAT_ADDR 0x0214
162 #define SSPSTAT_ADDR 0x0214
163 #define SSP1CON_ADDR 0x0215
164 #define SSP1CON1_ADDR 0x0215
165 #define SSPCON_ADDR 0x0215
166 #define SSPCON1_ADDR 0x0215
167 #define SSP1CON2_ADDR 0x0216
168 #define SSPCON2_ADDR 0x0216
169 #define SSP1CON3_ADDR 0x0217
170 #define SSPCON3_ADDR 0x0217
171 #define ODCONA_ADDR 0x028C
172 #define ODCONB_ADDR 0x028D
173 #define ODCONC_ADDR 0x028E
174 #define ODCOND_ADDR 0x028F
175 #define ODCONE_ADDR 0x0290
176 #define CCPR1_ADDR 0x0291
177 #define CCPR1L_ADDR 0x0291
178 #define CCPR1H_ADDR 0x0292
179 #define CCP1CON_ADDR 0x0293
180 #define CCPR2_ADDR 0x0298
181 #define CCPR2L_ADDR 0x0298
182 #define CCPR2H_ADDR 0x0299
183 #define CCP2CON_ADDR 0x029A
184 #define SLRCONA_ADDR 0x030C
185 #define SLRCONB_ADDR 0x030D
186 #define SLRCONC_ADDR 0x030E
187 #define SLRCOND_ADDR 0x030F
188 #define SLRCONE_ADDR 0x0310
189 #define CCPR3_ADDR 0x0311
190 #define CCPR3L_ADDR 0x0311
191 #define CCPR3H_ADDR 0x0312
192 #define CCP3CON_ADDR 0x0313
193 #define INLVLA_ADDR 0x038C
194 #define INLVLB_ADDR 0x038D
195 #define INLVLC_ADDR 0x038E
196 #define INLVLD_ADDR 0x038F
197 #define INLVLE_ADDR 0x0390
198 #define IOCAP_ADDR 0x0391
199 #define IOCAN_ADDR 0x0392
200 #define IOCAF_ADDR 0x0393
201 #define IOCBP_ADDR 0x0394
202 #define IOCBN_ADDR 0x0395
203 #define IOCBF_ADDR 0x0396
204 #define IOCCP_ADDR 0x0397
205 #define IOCCN_ADDR 0x0398
206 #define IOCCF_ADDR 0x0399
207 #define IOCEP_ADDR 0x039D
208 #define IOCEN_ADDR 0x039E
209 #define IOCEF_ADDR 0x039F
210 #define OPA1CON_ADDR 0x0511
211 #define OPA2CON_ADDR 0x0513
212 #define OPA3CON_ADDR 0x0515
213 #define CLKRCON_ADDR 0x051A
214 #define DAC2CON0_ADDR 0x0591
215 #define DAC2CON1_ADDR 0x0592
216 #define DAC2REF_ADDR 0x0592
217 #define DAC3CON0_ADDR 0x0593
218 #define DAC3CON1_ADDR 0x0594
219 #define DAC3REF_ADDR 0x0594
220 #define DAC4CON0_ADDR 0x0595
221 #define DAC4CON1_ADDR 0x0596
222 #define DAC4REF_ADDR 0x0596
223 #define PSMC1CON_ADDR 0x0E91
224 #define PSMC1MDL_ADDR 0x0E92
225 #define PSMC1SYNC_ADDR 0x0E93
226 #define PSMC1CLK_ADDR 0x0E94
227 #define PSMC1OEN_ADDR 0x0E95
228 #define PSMC1POL_ADDR 0x0E96
229 #define PSMC1BLNK_ADDR 0x0E97
230 #define PSMC1REBS_ADDR 0x0E98
231 #define PSMC1FEBS_ADDR 0x0E99
232 #define PSMC1PHS_ADDR 0x0E9A
233 #define PSMC1DCS_ADDR 0x0E9B
234 #define PSMC1PRS_ADDR 0x0E9C
235 #define PSMC1ASDC_ADDR 0x0E9D
236 #define PSMC1ASDL_ADDR 0x0E9E
237 #define PSMC1ASDS_ADDR 0x0E9F
238 #define PSMC1INT_ADDR 0x0EA0
239 #define PSMC1PH_ADDR 0x0EA1
240 #define PSMC1PHL_ADDR 0x0EA1
241 #define PSMC1PHH_ADDR 0x0EA2
242 #define PSMC1DC_ADDR 0x0EA3
243 #define PSMC1DCL_ADDR 0x0EA3
244 #define PSMC1DCH_ADDR 0x0EA4
245 #define PSMC1PR_ADDR 0x0EA5
246 #define PSMC1PRL_ADDR 0x0EA5
247 #define PSMC1PRH_ADDR 0x0EA6
248 #define PSMC1TMR_ADDR 0x0EA7
249 #define PSMC1TMRL_ADDR 0x0EA7
250 #define PSMC1TMRH_ADDR 0x0EA8
251 #define PSMC1DBR_ADDR 0x0EA9
252 #define PSMC1DBF_ADDR 0x0EAA
253 #define PSMC1BLKR_ADDR 0x0EAB
254 #define PSMC1BLKF_ADDR 0x0EAC
255 #define PSMC1FFA_ADDR 0x0EAD
256 #define PSMC1STR0_ADDR 0x0EAE
257 #define PSMC1STR1_ADDR 0x0EAF
258 #define PSMC2CON_ADDR 0x0EB1
259 #define PSMC2MDL_ADDR 0x0EB2
260 #define PSMC2SYNC_ADDR 0x0EB3
261 #define PSMC2CLK_ADDR 0x0EB4
262 #define PSMC2OEN_ADDR 0x0EB5
263 #define PSMC2POL_ADDR 0x0EB6
264 #define PSMC2BLNK_ADDR 0x0EB7
265 #define PSMC2REBS_ADDR 0x0EB8
266 #define PSMC2FEBS_ADDR 0x0EB9
267 #define PSMC2PHS_ADDR 0x0EBA
268 #define PSMC2DCS_ADDR 0x0EBB
269 #define PSMC2PRS_ADDR 0x0EBC
270 #define PSMC2ASDC_ADDR 0x0EBD
271 #define PSMC2ASDL_ADDR 0x0EBE
272 #define PSMC2ASDS_ADDR 0x0EBF
273 #define PSMC2INT_ADDR 0x0EC0
274 #define PSMC2PH_ADDR 0x0EC1
275 #define PSMC2PHL_ADDR 0x0EC1
276 #define PSMC2PHH_ADDR 0x0EC2
277 #define PSMC2DC_ADDR 0x0EC3
278 #define PSMC2DCL_ADDR 0x0EC3
279 #define PSMC2DCH_ADDR 0x0EC4
280 #define PSMC2PR_ADDR 0x0EC5
281 #define PSMC2PRL_ADDR 0x0EC5
282 #define PSMC2PRH_ADDR 0x0EC6
283 #define PSMC2TMR_ADDR 0x0EC7
284 #define PSMC2TMRL_ADDR 0x0EC7
285 #define PSMC2TMRH_ADDR 0x0EC8
286 #define PSMC2DBR_ADDR 0x0EC9
287 #define PSMC2DBF_ADDR 0x0ECA
288 #define PSMC2BLKR_ADDR 0x0ECB
289 #define PSMC2BLKF_ADDR 0x0ECC
290 #define PSMC2FFA_ADDR 0x0ECD
291 #define PSMC2STR0_ADDR 0x0ECE
292 #define PSMC2STR1_ADDR 0x0ECF
293 #define PSMC3CON_ADDR 0x0ED1
294 #define PSMC3MDL_ADDR 0x0ED2
295 #define PSMC3SYNC_ADDR 0x0ED3
296 #define PSMC3CLK_ADDR 0x0ED4
297 #define PSMC3OEN_ADDR 0x0ED5
298 #define PSMC3POL_ADDR 0x0ED6
299 #define PSMC3BLNK_ADDR 0x0ED7
300 #define PSMC3REBS_ADDR 0x0ED8
301 #define PSMC3FEBS_ADDR 0x0ED9
302 #define PSMC3PHS_ADDR 0x0EDA
303 #define PSMC3DCS_ADDR 0x0EDB
304 #define PSMC3PRS_ADDR 0x0EDC
305 #define PSMC3ASDC_ADDR 0x0EDD
306 #define PSMC3ASDL_ADDR 0x0EDE
307 #define PSMC3ASDS_ADDR 0x0EDF
308 #define PSMC3INT_ADDR 0x0EE0
309 #define PSMC3PH_ADDR 0x0EE1
310 #define PSMC3PHL_ADDR 0x0EE1
311 #define PSMC3PHH_ADDR 0x0EE2
312 #define PSMC3DC_ADDR 0x0EE3
313 #define PSMC3DCL_ADDR 0x0EE3
314 #define PSMC3DCH_ADDR 0x0EE4
315 #define PSMC3PR_ADDR 0x0EE5
316 #define PSMC3PRL_ADDR 0x0EE5
317 #define PSMC3PRH_ADDR 0x0EE6
318 #define PSMC3TMR_ADDR 0x0EE7
319 #define PSMC3TMRL_ADDR 0x0EE7
320 #define PSMC3TMRH_ADDR 0x0EE8
321 #define PSMC3DBR_ADDR 0x0EE9
322 #define PSMC3DBF_ADDR 0x0EEA
323 #define PSMC3BLKR_ADDR 0x0EEB
324 #define PSMC3BLKF_ADDR 0x0EEC
325 #define PSMC3FFA_ADDR 0x0EED
326 #define PSMC3STR0_ADDR 0x0EEE
327 #define PSMC3STR1_ADDR 0x0EEF
328 #define PSMC4CON_ADDR 0x0F11
329 #define PSMC4MDL_ADDR 0x0F12
330 #define PSMC4SYNC_ADDR 0x0F13
331 #define PSMC4CLK_ADDR 0x0F14
332 #define PSMC4OEN_ADDR 0x0F15
333 #define PSMC4POL_ADDR 0x0F16
334 #define PSMC4BLNK_ADDR 0x0F17
335 #define PSMC4REBS_ADDR 0x0F18
336 #define PSMC4FEBS_ADDR 0x0F19
337 #define PSMC4PHS_ADDR 0x0F1A
338 #define PSMC4DCS_ADDR 0x0F1B
339 #define PSMC4PRS_ADDR 0x0F1C
340 #define PSMC4ASDC_ADDR 0x0F1D
341 #define PSMC4ASDL_ADDR 0x0F1E
342 #define PSMC4ASDS_ADDR 0x0F1F
343 #define PSMC4INT_ADDR 0x0F20
344 #define PSMC4PH_ADDR 0x0F21
345 #define PSMC4PHL_ADDR 0x0F21
346 #define PSMC4PHH_ADDR 0x0F22
347 #define PSMC4DC_ADDR 0x0F23
348 #define PSMC4DCL_ADDR 0x0F23
349 #define PSMC4DCH_ADDR 0x0F24
350 #define PSMC4PR_ADDR 0x0F25
351 #define PSMC4PRL_ADDR 0x0F25
352 #define PSMC4PRH_ADDR 0x0F26
353 #define PSMC4TMR_ADDR 0x0F27
354 #define PSMC4TMRL_ADDR 0x0F27
355 #define PSMC4TMRH_ADDR 0x0F28
356 #define PSMC4DBR_ADDR 0x0F29
357 #define PSMC4DBF_ADDR 0x0F2A
358 #define PSMC4BLKR_ADDR 0x0F2B
359 #define PSMC4BLKF_ADDR 0x0F2C
360 #define PSMC4FFA_ADDR 0x0F2D
361 #define PSMC4STR0_ADDR 0x0F2E
362 #define PSMC4STR1_ADDR 0x0F2F
363 #define STATUS_SHAD_ADDR 0x0FE4
364 #define WREG_SHAD_ADDR 0x0FE5
365 #define BSR_SHAD_ADDR 0x0FE6
366 #define PCLATH_SHAD_ADDR 0x0FE7
367 #define FSR0L_SHAD_ADDR 0x0FE8
368 #define FSR0H_SHAD_ADDR 0x0FE9
369 #define FSR1L_SHAD_ADDR 0x0FEA
370 #define FSR1H_SHAD_ADDR 0x0FEB
371 #define STKPTR_ADDR 0x0FED
372 #define TOSL_ADDR 0x0FEE
373 #define TOSH_ADDR 0x0FEF
375 #endif // #ifndef NO_ADDR_DEFINES
377 //==============================================================================
379 // Register Definitions
381 //==============================================================================
383 extern __at(0x0000) __sfr INDF0;
384 extern __at(0x0001) __sfr INDF1;
385 extern __at(0x0002) __sfr PCL;
387 //==============================================================================
388 // STATUS Bits
390 extern __at(0x0003) __sfr STATUS;
392 typedef struct
394 unsigned C : 1;
395 unsigned DC : 1;
396 unsigned Z : 1;
397 unsigned NOT_PD : 1;
398 unsigned NOT_TO : 1;
399 unsigned : 1;
400 unsigned : 1;
401 unsigned : 1;
402 } __STATUSbits_t;
404 extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
406 #define _C 0x01
407 #define _DC 0x02
408 #define _Z 0x04
409 #define _NOT_PD 0x08
410 #define _NOT_TO 0x10
412 //==============================================================================
414 extern __at(0x0004) __sfr FSR0;
415 extern __at(0x0004) __sfr FSR0L;
416 extern __at(0x0005) __sfr FSR0H;
417 extern __at(0x0006) __sfr FSR1;
418 extern __at(0x0006) __sfr FSR1L;
419 extern __at(0x0007) __sfr FSR1H;
421 //==============================================================================
422 // BSR Bits
424 extern __at(0x0008) __sfr BSR;
426 typedef union
428 struct
430 unsigned BSR0 : 1;
431 unsigned BSR1 : 1;
432 unsigned BSR2 : 1;
433 unsigned BSR3 : 1;
434 unsigned BSR4 : 1;
435 unsigned : 1;
436 unsigned : 1;
437 unsigned : 1;
440 struct
442 unsigned BSR : 5;
443 unsigned : 3;
445 } __BSRbits_t;
447 extern __at(0x0008) volatile __BSRbits_t BSRbits;
449 #define _BSR0 0x01
450 #define _BSR1 0x02
451 #define _BSR2 0x04
452 #define _BSR3 0x08
453 #define _BSR4 0x10
455 //==============================================================================
457 extern __at(0x0009) __sfr WREG;
458 extern __at(0x000A) __sfr PCLATH;
460 //==============================================================================
461 // INTCON Bits
463 extern __at(0x000B) __sfr INTCON;
465 typedef union
467 struct
469 unsigned IOCIF : 1;
470 unsigned INTF : 1;
471 unsigned TMR0IF : 1;
472 unsigned IOCIE : 1;
473 unsigned INTE : 1;
474 unsigned TMR0IE : 1;
475 unsigned PEIE : 1;
476 unsigned GIE : 1;
479 struct
481 unsigned : 1;
482 unsigned : 1;
483 unsigned T0IF : 1;
484 unsigned : 1;
485 unsigned : 1;
486 unsigned T0IE : 1;
487 unsigned : 1;
488 unsigned : 1;
490 } __INTCONbits_t;
492 extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
494 #define _IOCIF 0x01
495 #define _INTF 0x02
496 #define _TMR0IF 0x04
497 #define _T0IF 0x04
498 #define _IOCIE 0x08
499 #define _INTE 0x10
500 #define _TMR0IE 0x20
501 #define _T0IE 0x20
502 #define _PEIE 0x40
503 #define _GIE 0x80
505 //==============================================================================
508 //==============================================================================
509 // PORTA Bits
511 extern __at(0x000C) __sfr PORTA;
513 typedef struct
515 unsigned RA0 : 1;
516 unsigned RA1 : 1;
517 unsigned RA2 : 1;
518 unsigned RA3 : 1;
519 unsigned RA4 : 1;
520 unsigned RA5 : 1;
521 unsigned RA6 : 1;
522 unsigned RA7 : 1;
523 } __PORTAbits_t;
525 extern __at(0x000C) volatile __PORTAbits_t PORTAbits;
527 #define _RA0 0x01
528 #define _RA1 0x02
529 #define _RA2 0x04
530 #define _RA3 0x08
531 #define _RA4 0x10
532 #define _RA5 0x20
533 #define _RA6 0x40
534 #define _RA7 0x80
536 //==============================================================================
539 //==============================================================================
540 // PORTB Bits
542 extern __at(0x000D) __sfr PORTB;
544 typedef struct
546 unsigned RB0 : 1;
547 unsigned RB1 : 1;
548 unsigned RB2 : 1;
549 unsigned RB3 : 1;
550 unsigned RB4 : 1;
551 unsigned RB5 : 1;
552 unsigned RB6 : 1;
553 unsigned RB7 : 1;
554 } __PORTBbits_t;
556 extern __at(0x000D) volatile __PORTBbits_t PORTBbits;
558 #define _RB0 0x01
559 #define _RB1 0x02
560 #define _RB2 0x04
561 #define _RB3 0x08
562 #define _RB4 0x10
563 #define _RB5 0x20
564 #define _RB6 0x40
565 #define _RB7 0x80
567 //==============================================================================
570 //==============================================================================
571 // PORTC Bits
573 extern __at(0x000E) __sfr PORTC;
575 typedef struct
577 unsigned RC0 : 1;
578 unsigned RC1 : 1;
579 unsigned RC2 : 1;
580 unsigned RC3 : 1;
581 unsigned RC4 : 1;
582 unsigned RC5 : 1;
583 unsigned RC6 : 1;
584 unsigned RC7 : 1;
585 } __PORTCbits_t;
587 extern __at(0x000E) volatile __PORTCbits_t PORTCbits;
589 #define _RC0 0x01
590 #define _RC1 0x02
591 #define _RC2 0x04
592 #define _RC3 0x08
593 #define _RC4 0x10
594 #define _RC5 0x20
595 #define _RC6 0x40
596 #define _RC7 0x80
598 //==============================================================================
601 //==============================================================================
602 // PORTD Bits
604 extern __at(0x000F) __sfr PORTD;
606 typedef struct
608 unsigned RD0 : 1;
609 unsigned RD1 : 1;
610 unsigned RD2 : 1;
611 unsigned RD3 : 1;
612 unsigned RD4 : 1;
613 unsigned RD5 : 1;
614 unsigned RD6 : 1;
615 unsigned RD7 : 1;
616 } __PORTDbits_t;
618 extern __at(0x000F) volatile __PORTDbits_t PORTDbits;
620 #define _RD0 0x01
621 #define _RD1 0x02
622 #define _RD2 0x04
623 #define _RD3 0x08
624 #define _RD4 0x10
625 #define _RD5 0x20
626 #define _RD6 0x40
627 #define _RD7 0x80
629 //==============================================================================
632 //==============================================================================
633 // PORTE Bits
635 extern __at(0x0010) __sfr PORTE;
637 typedef union
639 struct
641 unsigned RE0 : 1;
642 unsigned RE1 : 1;
643 unsigned RE2 : 1;
644 unsigned RE3 : 1;
645 unsigned : 1;
646 unsigned : 1;
647 unsigned : 1;
648 unsigned : 1;
651 struct
653 unsigned RE : 4;
654 unsigned : 4;
656 } __PORTEbits_t;
658 extern __at(0x0010) volatile __PORTEbits_t PORTEbits;
660 #define _RE0 0x01
661 #define _RE1 0x02
662 #define _RE2 0x04
663 #define _RE3 0x08
665 //==============================================================================
668 //==============================================================================
669 // PIR1 Bits
671 extern __at(0x0011) __sfr PIR1;
673 typedef struct
675 unsigned TMR1IF : 1;
676 unsigned TMR2IF : 1;
677 unsigned CCP1IF : 1;
678 unsigned SSP1IF : 1;
679 unsigned TXIF : 1;
680 unsigned RCIF : 1;
681 unsigned ADIF : 1;
682 unsigned TMR1GIF : 1;
683 } __PIR1bits_t;
685 extern __at(0x0011) volatile __PIR1bits_t PIR1bits;
687 #define _TMR1IF 0x01
688 #define _TMR2IF 0x02
689 #define _CCP1IF 0x04
690 #define _SSP1IF 0x08
691 #define _TXIF 0x10
692 #define _RCIF 0x20
693 #define _ADIF 0x40
694 #define _TMR1GIF 0x80
696 //==============================================================================
699 //==============================================================================
700 // PIR2 Bits
702 extern __at(0x0012) __sfr PIR2;
704 typedef struct
706 unsigned CCP2IF : 1;
707 unsigned C3IF : 1;
708 unsigned C4IF : 1;
709 unsigned BCL1IF : 1;
710 unsigned EEIF : 1;
711 unsigned C1IF : 1;
712 unsigned C2IF : 1;
713 unsigned OSFIF : 1;
714 } __PIR2bits_t;
716 extern __at(0x0012) volatile __PIR2bits_t PIR2bits;
718 #define _CCP2IF 0x01
719 #define _C3IF 0x02
720 #define _C4IF 0x04
721 #define _BCL1IF 0x08
722 #define _EEIF 0x10
723 #define _C1IF 0x20
724 #define _C2IF 0x40
725 #define _OSFIF 0x80
727 //==============================================================================
730 //==============================================================================
731 // PIR3 Bits
733 extern __at(0x0013) __sfr PIR3;
735 typedef struct
737 unsigned : 1;
738 unsigned : 1;
739 unsigned : 1;
740 unsigned : 1;
741 unsigned CCP3IF : 1;
742 unsigned : 1;
743 unsigned : 1;
744 unsigned : 1;
745 } __PIR3bits_t;
747 extern __at(0x0013) volatile __PIR3bits_t PIR3bits;
749 #define _CCP3IF 0x10
751 //==============================================================================
754 //==============================================================================
755 // PIR4 Bits
757 extern __at(0x0014) __sfr PIR4;
759 typedef struct
761 unsigned PSMC1SIF : 1;
762 unsigned PSMC2SIF : 1;
763 unsigned PSMC3SIF : 1;
764 unsigned PSMC4SIF : 1;
765 unsigned PSMC1TIF : 1;
766 unsigned PSMC2TIF : 1;
767 unsigned PSMC3TIF : 1;
768 unsigned PSMC4TIF : 1;
769 } __PIR4bits_t;
771 extern __at(0x0014) volatile __PIR4bits_t PIR4bits;
773 #define _PSMC1SIF 0x01
774 #define _PSMC2SIF 0x02
775 #define _PSMC3SIF 0x04
776 #define _PSMC4SIF 0x08
777 #define _PSMC1TIF 0x10
778 #define _PSMC2TIF 0x20
779 #define _PSMC3TIF 0x40
780 #define _PSMC4TIF 0x80
782 //==============================================================================
784 extern __at(0x0015) __sfr TMR0;
785 extern __at(0x0016) __sfr TMR1;
786 extern __at(0x0016) __sfr TMR1L;
787 extern __at(0x0017) __sfr TMR1H;
789 //==============================================================================
790 // T1CON Bits
792 extern __at(0x0018) __sfr T1CON;
794 typedef union
796 struct
798 unsigned TMR1ON : 1;
799 unsigned : 1;
800 unsigned NOT_T1SYNC : 1;
801 unsigned T1OSCEN : 1;
802 unsigned T1CKPS0 : 1;
803 unsigned T1CKPS1 : 1;
804 unsigned TMR1CS0 : 1;
805 unsigned TMR1CS1 : 1;
808 struct
810 unsigned : 4;
811 unsigned T1CKPS : 2;
812 unsigned : 2;
815 struct
817 unsigned : 6;
818 unsigned TMR1CS : 2;
820 } __T1CONbits_t;
822 extern __at(0x0018) volatile __T1CONbits_t T1CONbits;
824 #define _TMR1ON 0x01
825 #define _NOT_T1SYNC 0x04
826 #define _T1OSCEN 0x08
827 #define _T1CKPS0 0x10
828 #define _T1CKPS1 0x20
829 #define _TMR1CS0 0x40
830 #define _TMR1CS1 0x80
832 //==============================================================================
835 //==============================================================================
836 // T1GCON Bits
838 extern __at(0x0019) __sfr T1GCON;
840 typedef union
842 struct
844 unsigned T1GSS0 : 1;
845 unsigned T1GSS1 : 1;
846 unsigned T1GVAL : 1;
847 unsigned T1GGO : 1;
848 unsigned T1GSPM : 1;
849 unsigned T1GTM : 1;
850 unsigned T1GPOL : 1;
851 unsigned TMR1GE : 1;
854 struct
856 unsigned T1GSS : 2;
857 unsigned : 6;
859 } __T1GCONbits_t;
861 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits;
863 #define _T1GSS0 0x01
864 #define _T1GSS1 0x02
865 #define _T1GVAL 0x04
866 #define _T1GGO 0x08
867 #define _T1GSPM 0x10
868 #define _T1GTM 0x20
869 #define _T1GPOL 0x40
870 #define _TMR1GE 0x80
872 //==============================================================================
874 extern __at(0x001A) __sfr TMR2;
875 extern __at(0x001B) __sfr PR2;
877 //==============================================================================
878 // T2CON Bits
880 extern __at(0x001C) __sfr T2CON;
882 typedef union
884 struct
886 unsigned T2CKPS0 : 1;
887 unsigned T2CKPS1 : 1;
888 unsigned TMR2ON : 1;
889 unsigned T2OUTPS0 : 1;
890 unsigned T2OUTPS1 : 1;
891 unsigned T2OUTPS2 : 1;
892 unsigned T2OUTPS3 : 1;
893 unsigned : 1;
896 struct
898 unsigned T2CKPS : 2;
899 unsigned : 6;
902 struct
904 unsigned : 3;
905 unsigned T2OUTPS : 4;
906 unsigned : 1;
908 } __T2CONbits_t;
910 extern __at(0x001C) volatile __T2CONbits_t T2CONbits;
912 #define _T2CKPS0 0x01
913 #define _T2CKPS1 0x02
914 #define _TMR2ON 0x04
915 #define _T2OUTPS0 0x08
916 #define _T2OUTPS1 0x10
917 #define _T2OUTPS2 0x20
918 #define _T2OUTPS3 0x40
920 //==============================================================================
923 //==============================================================================
924 // TRISA Bits
926 extern __at(0x008C) __sfr TRISA;
928 typedef struct
930 unsigned TRISA0 : 1;
931 unsigned TRISA1 : 1;
932 unsigned TRISA2 : 1;
933 unsigned TRISA3 : 1;
934 unsigned TRISA4 : 1;
935 unsigned TRISA5 : 1;
936 unsigned TRISA6 : 1;
937 unsigned TRISA7 : 1;
938 } __TRISAbits_t;
940 extern __at(0x008C) volatile __TRISAbits_t TRISAbits;
942 #define _TRISA0 0x01
943 #define _TRISA1 0x02
944 #define _TRISA2 0x04
945 #define _TRISA3 0x08
946 #define _TRISA4 0x10
947 #define _TRISA5 0x20
948 #define _TRISA6 0x40
949 #define _TRISA7 0x80
951 //==============================================================================
954 //==============================================================================
955 // TRISB Bits
957 extern __at(0x008D) __sfr TRISB;
959 typedef struct
961 unsigned TRISB0 : 1;
962 unsigned TRISB1 : 1;
963 unsigned TRISB2 : 1;
964 unsigned TRISB3 : 1;
965 unsigned TRISB4 : 1;
966 unsigned TRISB5 : 1;
967 unsigned TRISB6 : 1;
968 unsigned TRISB7 : 1;
969 } __TRISBbits_t;
971 extern __at(0x008D) volatile __TRISBbits_t TRISBbits;
973 #define _TRISB0 0x01
974 #define _TRISB1 0x02
975 #define _TRISB2 0x04
976 #define _TRISB3 0x08
977 #define _TRISB4 0x10
978 #define _TRISB5 0x20
979 #define _TRISB6 0x40
980 #define _TRISB7 0x80
982 //==============================================================================
985 //==============================================================================
986 // TRISC Bits
988 extern __at(0x008E) __sfr TRISC;
990 typedef struct
992 unsigned TRISC0 : 1;
993 unsigned TRISC1 : 1;
994 unsigned TRISC2 : 1;
995 unsigned TRISC3 : 1;
996 unsigned TRISC4 : 1;
997 unsigned TRISC5 : 1;
998 unsigned TRISC6 : 1;
999 unsigned TRISC7 : 1;
1000 } __TRISCbits_t;
1002 extern __at(0x008E) volatile __TRISCbits_t TRISCbits;
1004 #define _TRISC0 0x01
1005 #define _TRISC1 0x02
1006 #define _TRISC2 0x04
1007 #define _TRISC3 0x08
1008 #define _TRISC4 0x10
1009 #define _TRISC5 0x20
1010 #define _TRISC6 0x40
1011 #define _TRISC7 0x80
1013 //==============================================================================
1016 //==============================================================================
1017 // TRISD Bits
1019 extern __at(0x008F) __sfr TRISD;
1021 typedef struct
1023 unsigned TRISD0 : 1;
1024 unsigned TRISD1 : 1;
1025 unsigned TRISD2 : 1;
1026 unsigned TRISD3 : 1;
1027 unsigned TRISD4 : 1;
1028 unsigned TRISD5 : 1;
1029 unsigned TRISD6 : 1;
1030 unsigned TRISD7 : 1;
1031 } __TRISDbits_t;
1033 extern __at(0x008F) volatile __TRISDbits_t TRISDbits;
1035 #define _TRISD0 0x01
1036 #define _TRISD1 0x02
1037 #define _TRISD2 0x04
1038 #define _TRISD3 0x08
1039 #define _TRISD4 0x10
1040 #define _TRISD5 0x20
1041 #define _TRISD6 0x40
1042 #define _TRISD7 0x80
1044 //==============================================================================
1047 //==============================================================================
1048 // TRISE Bits
1050 extern __at(0x0090) __sfr TRISE;
1052 typedef union
1054 struct
1056 unsigned TRISE0 : 1;
1057 unsigned TRISE1 : 1;
1058 unsigned TRISE2 : 1;
1059 unsigned TRISE3 : 1;
1060 unsigned : 1;
1061 unsigned : 1;
1062 unsigned : 1;
1063 unsigned : 1;
1066 struct
1068 unsigned TRISE : 4;
1069 unsigned : 4;
1071 } __TRISEbits_t;
1073 extern __at(0x0090) volatile __TRISEbits_t TRISEbits;
1075 #define _TRISE0 0x01
1076 #define _TRISE1 0x02
1077 #define _TRISE2 0x04
1078 #define _TRISE3 0x08
1080 //==============================================================================
1083 //==============================================================================
1084 // PIE1 Bits
1086 extern __at(0x0091) __sfr PIE1;
1088 typedef struct
1090 unsigned TMR1IE : 1;
1091 unsigned TMR2IE : 1;
1092 unsigned CCP1IE : 1;
1093 unsigned SSP1IE : 1;
1094 unsigned TXIE : 1;
1095 unsigned RCIE : 1;
1096 unsigned ADIE : 1;
1097 unsigned TMR1GIE : 1;
1098 } __PIE1bits_t;
1100 extern __at(0x0091) volatile __PIE1bits_t PIE1bits;
1102 #define _TMR1IE 0x01
1103 #define _TMR2IE 0x02
1104 #define _CCP1IE 0x04
1105 #define _SSP1IE 0x08
1106 #define _TXIE 0x10
1107 #define _RCIE 0x20
1108 #define _ADIE 0x40
1109 #define _TMR1GIE 0x80
1111 //==============================================================================
1114 //==============================================================================
1115 // PIE2 Bits
1117 extern __at(0x0092) __sfr PIE2;
1119 typedef struct
1121 unsigned CCP2IE : 1;
1122 unsigned C3IE : 1;
1123 unsigned C4IE : 1;
1124 unsigned BCL1IE : 1;
1125 unsigned EEIE : 1;
1126 unsigned C1IE : 1;
1127 unsigned C2IE : 1;
1128 unsigned OSFIE : 1;
1129 } __PIE2bits_t;
1131 extern __at(0x0092) volatile __PIE2bits_t PIE2bits;
1133 #define _CCP2IE 0x01
1134 #define _C3IE 0x02
1135 #define _C4IE 0x04
1136 #define _BCL1IE 0x08
1137 #define _EEIE 0x10
1138 #define _C1IE 0x20
1139 #define _C2IE 0x40
1140 #define _OSFIE 0x80
1142 //==============================================================================
1145 //==============================================================================
1146 // PIE3 Bits
1148 extern __at(0x0093) __sfr PIE3;
1150 typedef struct
1152 unsigned : 1;
1153 unsigned : 1;
1154 unsigned : 1;
1155 unsigned : 1;
1156 unsigned CCP3IE : 1;
1157 unsigned : 1;
1158 unsigned : 1;
1159 unsigned : 1;
1160 } __PIE3bits_t;
1162 extern __at(0x0093) volatile __PIE3bits_t PIE3bits;
1164 #define _CCP3IE 0x10
1166 //==============================================================================
1169 //==============================================================================
1170 // PIE4 Bits
1172 extern __at(0x0094) __sfr PIE4;
1174 typedef union
1176 struct
1178 unsigned PSMC1SIE : 1;
1179 unsigned PSMC2SIE : 1;
1180 unsigned PSMC3SIE : 1;
1181 unsigned PSMC4SIE : 1;
1182 unsigned PSMC1TIE : 1;
1183 unsigned PSMC2TIE : 1;
1184 unsigned PSMC3TIE : 1;
1185 unsigned PSMC4TIE : 1;
1188 struct
1190 unsigned : 1;
1191 unsigned : 1;
1192 unsigned : 1;
1193 unsigned : 1;
1194 unsigned : 1;
1195 unsigned : 1;
1196 unsigned PMSC3TIE : 1;
1197 unsigned : 1;
1199 } __PIE4bits_t;
1201 extern __at(0x0094) volatile __PIE4bits_t PIE4bits;
1203 #define _PSMC1SIE 0x01
1204 #define _PSMC2SIE 0x02
1205 #define _PSMC3SIE 0x04
1206 #define _PSMC4SIE 0x08
1207 #define _PSMC1TIE 0x10
1208 #define _PSMC2TIE 0x20
1209 #define _PSMC3TIE 0x40
1210 #define _PMSC3TIE 0x40
1211 #define _PSMC4TIE 0x80
1213 //==============================================================================
1216 //==============================================================================
1217 // OPTION_REG Bits
1219 extern __at(0x0095) __sfr OPTION_REG;
1221 typedef union
1223 struct
1225 unsigned PS0 : 1;
1226 unsigned PS1 : 1;
1227 unsigned PS2 : 1;
1228 unsigned PSA : 1;
1229 unsigned TMR0SE : 1;
1230 unsigned TMR0CS : 1;
1231 unsigned INTEDG : 1;
1232 unsigned NOT_WPUEN : 1;
1235 struct
1237 unsigned : 1;
1238 unsigned : 1;
1239 unsigned : 1;
1240 unsigned : 1;
1241 unsigned T0SE : 1;
1242 unsigned T0CS : 1;
1243 unsigned : 1;
1244 unsigned : 1;
1247 struct
1249 unsigned PS : 3;
1250 unsigned : 5;
1252 } __OPTION_REGbits_t;
1254 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits;
1256 #define _PS0 0x01
1257 #define _PS1 0x02
1258 #define _PS2 0x04
1259 #define _PSA 0x08
1260 #define _TMR0SE 0x10
1261 #define _T0SE 0x10
1262 #define _TMR0CS 0x20
1263 #define _T0CS 0x20
1264 #define _INTEDG 0x40
1265 #define _NOT_WPUEN 0x80
1267 //==============================================================================
1270 //==============================================================================
1271 // PCON Bits
1273 extern __at(0x0096) __sfr PCON;
1275 typedef struct
1277 unsigned NOT_BOR : 1;
1278 unsigned NOT_POR : 1;
1279 unsigned NOT_RI : 1;
1280 unsigned NOT_RMCLR : 1;
1281 unsigned NOT_RWDT : 1;
1282 unsigned : 1;
1283 unsigned STKUNF : 1;
1284 unsigned STKOVF : 1;
1285 } __PCONbits_t;
1287 extern __at(0x0096) volatile __PCONbits_t PCONbits;
1289 #define _NOT_BOR 0x01
1290 #define _NOT_POR 0x02
1291 #define _NOT_RI 0x04
1292 #define _NOT_RMCLR 0x08
1293 #define _NOT_RWDT 0x10
1294 #define _STKUNF 0x40
1295 #define _STKOVF 0x80
1297 //==============================================================================
1300 //==============================================================================
1301 // WDTCON Bits
1303 extern __at(0x0097) __sfr WDTCON;
1305 typedef union
1307 struct
1309 unsigned SWDTEN : 1;
1310 unsigned WDTPS0 : 1;
1311 unsigned WDTPS1 : 1;
1312 unsigned WDTPS2 : 1;
1313 unsigned WDTPS3 : 1;
1314 unsigned WDTPS4 : 1;
1315 unsigned : 1;
1316 unsigned : 1;
1319 struct
1321 unsigned : 1;
1322 unsigned WDTPS : 5;
1323 unsigned : 2;
1325 } __WDTCONbits_t;
1327 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits;
1329 #define _SWDTEN 0x01
1330 #define _WDTPS0 0x02
1331 #define _WDTPS1 0x04
1332 #define _WDTPS2 0x08
1333 #define _WDTPS3 0x10
1334 #define _WDTPS4 0x20
1336 //==============================================================================
1339 //==============================================================================
1340 // OSCTUNE Bits
1342 extern __at(0x0098) __sfr OSCTUNE;
1344 typedef union
1346 struct
1348 unsigned TUN0 : 1;
1349 unsigned TUN1 : 1;
1350 unsigned TUN2 : 1;
1351 unsigned TUN3 : 1;
1352 unsigned TUN4 : 1;
1353 unsigned TUN5 : 1;
1354 unsigned : 1;
1355 unsigned : 1;
1358 struct
1360 unsigned TUN : 6;
1361 unsigned : 2;
1363 } __OSCTUNEbits_t;
1365 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits;
1367 #define _TUN0 0x01
1368 #define _TUN1 0x02
1369 #define _TUN2 0x04
1370 #define _TUN3 0x08
1371 #define _TUN4 0x10
1372 #define _TUN5 0x20
1374 //==============================================================================
1377 //==============================================================================
1378 // OSCCON Bits
1380 extern __at(0x0099) __sfr OSCCON;
1382 typedef union
1384 struct
1386 unsigned SCS0 : 1;
1387 unsigned SCS1 : 1;
1388 unsigned : 1;
1389 unsigned IRCF0 : 1;
1390 unsigned IRCF1 : 1;
1391 unsigned IRCF2 : 1;
1392 unsigned IRCF3 : 1;
1393 unsigned SPLLEN : 1;
1396 struct
1398 unsigned SCS : 2;
1399 unsigned : 6;
1402 struct
1404 unsigned : 3;
1405 unsigned IRCF : 4;
1406 unsigned : 1;
1408 } __OSCCONbits_t;
1410 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits;
1412 #define _SCS0 0x01
1413 #define _SCS1 0x02
1414 #define _IRCF0 0x08
1415 #define _IRCF1 0x10
1416 #define _IRCF2 0x20
1417 #define _IRCF3 0x40
1418 #define _SPLLEN 0x80
1420 //==============================================================================
1423 //==============================================================================
1424 // OSCSTAT Bits
1426 extern __at(0x009A) __sfr OSCSTAT;
1428 typedef struct
1430 unsigned HFIOFS : 1;
1431 unsigned LFIOFR : 1;
1432 unsigned MFIOFR : 1;
1433 unsigned HFIOFL : 1;
1434 unsigned HFIOFR : 1;
1435 unsigned OSTS : 1;
1436 unsigned PLLR : 1;
1437 unsigned T1OSCR : 1;
1438 } __OSCSTATbits_t;
1440 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits;
1442 #define _HFIOFS 0x01
1443 #define _LFIOFR 0x02
1444 #define _MFIOFR 0x04
1445 #define _HFIOFL 0x08
1446 #define _HFIOFR 0x10
1447 #define _OSTS 0x20
1448 #define _PLLR 0x40
1449 #define _T1OSCR 0x80
1451 //==============================================================================
1453 extern __at(0x009B) __sfr ADRES;
1454 extern __at(0x009B) __sfr ADRESL;
1455 extern __at(0x009C) __sfr ADRESH;
1457 //==============================================================================
1458 // ADCON0 Bits
1460 extern __at(0x009D) __sfr ADCON0;
1462 typedef union
1464 struct
1466 unsigned ADON : 1;
1467 unsigned GO_NOT_DONE : 1;
1468 unsigned CHS0 : 1;
1469 unsigned CHS1 : 1;
1470 unsigned CHS2 : 1;
1471 unsigned CHS3 : 1;
1472 unsigned CHS4 : 1;
1473 unsigned ADRMD : 1;
1476 struct
1478 unsigned : 1;
1479 unsigned ADGO : 1;
1480 unsigned : 1;
1481 unsigned : 1;
1482 unsigned : 1;
1483 unsigned : 1;
1484 unsigned : 1;
1485 unsigned : 1;
1488 struct
1490 unsigned : 1;
1491 unsigned GO : 1;
1492 unsigned : 1;
1493 unsigned : 1;
1494 unsigned : 1;
1495 unsigned : 1;
1496 unsigned : 1;
1497 unsigned : 1;
1500 struct
1502 unsigned : 1;
1503 unsigned DONE : 1;
1504 unsigned : 1;
1505 unsigned : 1;
1506 unsigned : 1;
1507 unsigned : 1;
1508 unsigned : 1;
1509 unsigned : 1;
1512 struct
1514 unsigned : 2;
1515 unsigned CHS : 5;
1516 unsigned : 1;
1518 } __ADCON0bits_t;
1520 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits;
1522 #define _ADON 0x01
1523 #define _GO_NOT_DONE 0x02
1524 #define _ADGO 0x02
1525 #define _GO 0x02
1526 #define _DONE 0x02
1527 #define _CHS0 0x04
1528 #define _CHS1 0x08
1529 #define _CHS2 0x10
1530 #define _CHS3 0x20
1531 #define _CHS4 0x40
1532 #define _ADRMD 0x80
1534 //==============================================================================
1537 //==============================================================================
1538 // ADCON1 Bits
1540 extern __at(0x009E) __sfr ADCON1;
1542 typedef union
1544 struct
1546 unsigned ADPREF0 : 1;
1547 unsigned ADPREF1 : 1;
1548 unsigned ADNREF : 1;
1549 unsigned : 1;
1550 unsigned ADCS0 : 1;
1551 unsigned ADCS1 : 1;
1552 unsigned ADCS2 : 1;
1553 unsigned ADFM : 1;
1556 struct
1558 unsigned ADPREF : 2;
1559 unsigned : 6;
1562 struct
1564 unsigned : 4;
1565 unsigned ADCS : 3;
1566 unsigned : 1;
1568 } __ADCON1bits_t;
1570 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits;
1572 #define _ADPREF0 0x01
1573 #define _ADPREF1 0x02
1574 #define _ADNREF 0x04
1575 #define _ADCS0 0x10
1576 #define _ADCS1 0x20
1577 #define _ADCS2 0x40
1578 #define _ADFM 0x80
1580 //==============================================================================
1583 //==============================================================================
1584 // ADCON2 Bits
1586 extern __at(0x009F) __sfr ADCON2;
1588 typedef union
1590 struct
1592 unsigned CHSN0 : 1;
1593 unsigned CHSN1 : 1;
1594 unsigned CHSN2 : 1;
1595 unsigned CHSN3 : 1;
1596 unsigned TRIGSEL0 : 1;
1597 unsigned TRIGSEL1 : 1;
1598 unsigned TRIGSEL2 : 1;
1599 unsigned TRIGSEL3 : 1;
1602 struct
1604 unsigned CHSN : 4;
1605 unsigned : 4;
1608 struct
1610 unsigned : 4;
1611 unsigned TRIGSEL : 4;
1613 } __ADCON2bits_t;
1615 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits;
1617 #define _CHSN0 0x01
1618 #define _CHSN1 0x02
1619 #define _CHSN2 0x04
1620 #define _CHSN3 0x08
1621 #define _TRIGSEL0 0x10
1622 #define _TRIGSEL1 0x20
1623 #define _TRIGSEL2 0x40
1624 #define _TRIGSEL3 0x80
1626 //==============================================================================
1629 //==============================================================================
1630 // LATA Bits
1632 extern __at(0x010C) __sfr LATA;
1634 typedef struct
1636 unsigned LATA0 : 1;
1637 unsigned LATA1 : 1;
1638 unsigned LATA2 : 1;
1639 unsigned LATA3 : 1;
1640 unsigned LATA4 : 1;
1641 unsigned LATA5 : 1;
1642 unsigned LATA6 : 1;
1643 unsigned LATA7 : 1;
1644 } __LATAbits_t;
1646 extern __at(0x010C) volatile __LATAbits_t LATAbits;
1648 #define _LATA0 0x01
1649 #define _LATA1 0x02
1650 #define _LATA2 0x04
1651 #define _LATA3 0x08
1652 #define _LATA4 0x10
1653 #define _LATA5 0x20
1654 #define _LATA6 0x40
1655 #define _LATA7 0x80
1657 //==============================================================================
1660 //==============================================================================
1661 // LATB Bits
1663 extern __at(0x010D) __sfr LATB;
1665 typedef struct
1667 unsigned LATB0 : 1;
1668 unsigned LATB1 : 1;
1669 unsigned LATB2 : 1;
1670 unsigned LATB3 : 1;
1671 unsigned LATB4 : 1;
1672 unsigned LATB5 : 1;
1673 unsigned LATB6 : 1;
1674 unsigned LATB7 : 1;
1675 } __LATBbits_t;
1677 extern __at(0x010D) volatile __LATBbits_t LATBbits;
1679 #define _LATB0 0x01
1680 #define _LATB1 0x02
1681 #define _LATB2 0x04
1682 #define _LATB3 0x08
1683 #define _LATB4 0x10
1684 #define _LATB5 0x20
1685 #define _LATB6 0x40
1686 #define _LATB7 0x80
1688 //==============================================================================
1691 //==============================================================================
1692 // LATC Bits
1694 extern __at(0x010E) __sfr LATC;
1696 typedef struct
1698 unsigned LATC0 : 1;
1699 unsigned LATC1 : 1;
1700 unsigned LATC2 : 1;
1701 unsigned LATC3 : 1;
1702 unsigned LATC4 : 1;
1703 unsigned LATC5 : 1;
1704 unsigned LATC6 : 1;
1705 unsigned LATC7 : 1;
1706 } __LATCbits_t;
1708 extern __at(0x010E) volatile __LATCbits_t LATCbits;
1710 #define _LATC0 0x01
1711 #define _LATC1 0x02
1712 #define _LATC2 0x04
1713 #define _LATC3 0x08
1714 #define _LATC4 0x10
1715 #define _LATC5 0x20
1716 #define _LATC6 0x40
1717 #define _LATC7 0x80
1719 //==============================================================================
1722 //==============================================================================
1723 // LATD Bits
1725 extern __at(0x010F) __sfr LATD;
1727 typedef struct
1729 unsigned LATD0 : 1;
1730 unsigned LATD1 : 1;
1731 unsigned LATD2 : 1;
1732 unsigned LATD3 : 1;
1733 unsigned LATD4 : 1;
1734 unsigned LATD5 : 1;
1735 unsigned LATD6 : 1;
1736 unsigned LATD7 : 1;
1737 } __LATDbits_t;
1739 extern __at(0x010F) volatile __LATDbits_t LATDbits;
1741 #define _LATD0 0x01
1742 #define _LATD1 0x02
1743 #define _LATD2 0x04
1744 #define _LATD3 0x08
1745 #define _LATD4 0x10
1746 #define _LATD5 0x20
1747 #define _LATD6 0x40
1748 #define _LATD7 0x80
1750 //==============================================================================
1753 //==============================================================================
1754 // LATE Bits
1756 extern __at(0x0110) __sfr LATE;
1758 typedef union
1760 struct
1762 unsigned LATE0 : 1;
1763 unsigned LATE1 : 1;
1764 unsigned LATE2 : 1;
1765 unsigned : 1;
1766 unsigned : 1;
1767 unsigned : 1;
1768 unsigned : 1;
1769 unsigned : 1;
1772 struct
1774 unsigned LATE : 3;
1775 unsigned : 5;
1777 } __LATEbits_t;
1779 extern __at(0x0110) volatile __LATEbits_t LATEbits;
1781 #define _LATE0 0x01
1782 #define _LATE1 0x02
1783 #define _LATE2 0x04
1785 //==============================================================================
1788 //==============================================================================
1789 // CM1CON0 Bits
1791 extern __at(0x0111) __sfr CM1CON0;
1793 typedef struct
1795 unsigned C1SYNC : 1;
1796 unsigned C1HYS : 1;
1797 unsigned C1SP : 1;
1798 unsigned C1ZLF : 1;
1799 unsigned C1POL : 1;
1800 unsigned C1OE : 1;
1801 unsigned C1OUT : 1;
1802 unsigned C1ON : 1;
1803 } __CM1CON0bits_t;
1805 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits;
1807 #define _C1SYNC 0x01
1808 #define _C1HYS 0x02
1809 #define _C1SP 0x04
1810 #define _C1ZLF 0x08
1811 #define _C1POL 0x10
1812 #define _C1OE 0x20
1813 #define _C1OUT 0x40
1814 #define _C1ON 0x80
1816 //==============================================================================
1819 //==============================================================================
1820 // CM1CON1 Bits
1822 extern __at(0x0112) __sfr CM1CON1;
1824 typedef union
1826 struct
1828 unsigned C1NCH0 : 1;
1829 unsigned C1NCH1 : 1;
1830 unsigned C1NCH2 : 1;
1831 unsigned C1PCH0 : 1;
1832 unsigned C1PCH1 : 1;
1833 unsigned C1PCH2 : 1;
1834 unsigned C1INTN : 1;
1835 unsigned C1INTP : 1;
1838 struct
1840 unsigned C1NCH : 3;
1841 unsigned : 5;
1844 struct
1846 unsigned : 3;
1847 unsigned C1PCH : 3;
1848 unsigned : 2;
1850 } __CM1CON1bits_t;
1852 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits;
1854 #define _C1NCH0 0x01
1855 #define _C1NCH1 0x02
1856 #define _C1NCH2 0x04
1857 #define _C1PCH0 0x08
1858 #define _C1PCH1 0x10
1859 #define _C1PCH2 0x20
1860 #define _C1INTN 0x40
1861 #define _C1INTP 0x80
1863 //==============================================================================
1866 //==============================================================================
1867 // CM2CON0 Bits
1869 extern __at(0x0113) __sfr CM2CON0;
1871 typedef struct
1873 unsigned C2SYNC : 1;
1874 unsigned C2HYS : 1;
1875 unsigned C2SP : 1;
1876 unsigned C2ZLF : 1;
1877 unsigned C2POL : 1;
1878 unsigned C2OE : 1;
1879 unsigned C2OUT : 1;
1880 unsigned C2ON : 1;
1881 } __CM2CON0bits_t;
1883 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits;
1885 #define _C2SYNC 0x01
1886 #define _C2HYS 0x02
1887 #define _C2SP 0x04
1888 #define _C2ZLF 0x08
1889 #define _C2POL 0x10
1890 #define _C2OE 0x20
1891 #define _C2OUT 0x40
1892 #define _C2ON 0x80
1894 //==============================================================================
1897 //==============================================================================
1898 // CM2CON1 Bits
1900 extern __at(0x0114) __sfr CM2CON1;
1902 typedef union
1904 struct
1906 unsigned C2NCH0 : 1;
1907 unsigned C2NCH1 : 1;
1908 unsigned C2NCH2 : 1;
1909 unsigned C2PCH0 : 1;
1910 unsigned C2PCH1 : 1;
1911 unsigned C2PCH2 : 1;
1912 unsigned C2INTN : 1;
1913 unsigned C2INTP : 1;
1916 struct
1918 unsigned C2NCH : 3;
1919 unsigned : 5;
1922 struct
1924 unsigned : 3;
1925 unsigned C2PCH : 3;
1926 unsigned : 2;
1928 } __CM2CON1bits_t;
1930 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits;
1932 #define _C2NCH0 0x01
1933 #define _C2NCH1 0x02
1934 #define _C2NCH2 0x04
1935 #define _C2PCH0 0x08
1936 #define _C2PCH1 0x10
1937 #define _C2PCH2 0x20
1938 #define _C2INTN 0x40
1939 #define _C2INTP 0x80
1941 //==============================================================================
1944 //==============================================================================
1945 // CMOUT Bits
1947 extern __at(0x0115) __sfr CMOUT;
1949 typedef struct
1951 unsigned MC1OUT : 1;
1952 unsigned MC2OUT : 1;
1953 unsigned MC3OUT : 1;
1954 unsigned MC4OUT : 1;
1955 unsigned : 1;
1956 unsigned : 1;
1957 unsigned : 1;
1958 unsigned : 1;
1959 } __CMOUTbits_t;
1961 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits;
1963 #define _MC1OUT 0x01
1964 #define _MC2OUT 0x02
1965 #define _MC3OUT 0x04
1966 #define _MC4OUT 0x08
1968 //==============================================================================
1971 //==============================================================================
1972 // BORCON Bits
1974 extern __at(0x0116) __sfr BORCON;
1976 typedef struct
1978 unsigned BORRDY : 1;
1979 unsigned : 1;
1980 unsigned : 1;
1981 unsigned : 1;
1982 unsigned : 1;
1983 unsigned : 1;
1984 unsigned BORFS : 1;
1985 unsigned SBOREN : 1;
1986 } __BORCONbits_t;
1988 extern __at(0x0116) volatile __BORCONbits_t BORCONbits;
1990 #define _BORRDY 0x01
1991 #define _BORFS 0x40
1992 #define _SBOREN 0x80
1994 //==============================================================================
1997 //==============================================================================
1998 // FVRCON Bits
2000 extern __at(0x0117) __sfr FVRCON;
2002 typedef union
2004 struct
2006 unsigned ADFVR0 : 1;
2007 unsigned ADFVR1 : 1;
2008 unsigned CDAFVR0 : 1;
2009 unsigned CDAFVR1 : 1;
2010 unsigned TSRNG : 1;
2011 unsigned TSEN : 1;
2012 unsigned FVRRDY : 1;
2013 unsigned FVREN : 1;
2016 struct
2018 unsigned ADFVR : 2;
2019 unsigned : 6;
2022 struct
2024 unsigned : 2;
2025 unsigned CDAFVR : 2;
2026 unsigned : 4;
2028 } __FVRCONbits_t;
2030 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits;
2032 #define _ADFVR0 0x01
2033 #define _ADFVR1 0x02
2034 #define _CDAFVR0 0x04
2035 #define _CDAFVR1 0x08
2036 #define _TSRNG 0x10
2037 #define _TSEN 0x20
2038 #define _FVRRDY 0x40
2039 #define _FVREN 0x80
2041 //==============================================================================
2044 //==============================================================================
2045 // DAC1CON0 Bits
2047 extern __at(0x0118) __sfr DAC1CON0;
2049 typedef union
2051 struct
2053 unsigned DAC1NSS : 1;
2054 unsigned : 1;
2055 unsigned DAC1PSS0 : 1;
2056 unsigned DAC1PSS1 : 1;
2057 unsigned DAC1OE2 : 1;
2058 unsigned DAC1OE1 : 1;
2059 unsigned : 1;
2060 unsigned DAC1EN : 1;
2063 struct
2065 unsigned DACNSS : 1;
2066 unsigned : 1;
2067 unsigned DACPSS0 : 1;
2068 unsigned DACPSS1 : 1;
2069 unsigned DACOE0 : 1;
2070 unsigned DACOE1 : 1;
2071 unsigned : 1;
2072 unsigned DACEN : 1;
2075 struct
2077 unsigned : 2;
2078 unsigned DACPSS : 2;
2079 unsigned : 4;
2082 struct
2084 unsigned : 2;
2085 unsigned DAC1PSS : 2;
2086 unsigned : 4;
2089 struct
2091 unsigned : 4;
2092 unsigned DACOE : 2;
2093 unsigned : 2;
2095 } __DAC1CON0bits_t;
2097 extern __at(0x0118) volatile __DAC1CON0bits_t DAC1CON0bits;
2099 #define _DAC1NSS 0x01
2100 #define _DACNSS 0x01
2101 #define _DAC1PSS0 0x04
2102 #define _DACPSS0 0x04
2103 #define _DAC1PSS1 0x08
2104 #define _DACPSS1 0x08
2105 #define _DAC1OE2 0x10
2106 #define _DACOE0 0x10
2107 #define _DAC1OE1 0x20
2108 #define _DACOE1 0x20
2109 #define _DAC1EN 0x80
2110 #define _DACEN 0x80
2112 //==============================================================================
2115 //==============================================================================
2116 // DAC1CON1 Bits
2118 extern __at(0x0119) __sfr DAC1CON1;
2120 typedef union
2122 struct
2124 unsigned DAC1R0 : 1;
2125 unsigned DAC1R1 : 1;
2126 unsigned DAC1R2 : 1;
2127 unsigned DAC1R3 : 1;
2128 unsigned DAC1R4 : 1;
2129 unsigned DAC1R5 : 1;
2130 unsigned DAC1R6 : 1;
2131 unsigned DAC1R7 : 1;
2134 struct
2136 unsigned DACR0 : 1;
2137 unsigned DACR1 : 1;
2138 unsigned DACR2 : 1;
2139 unsigned DACR3 : 1;
2140 unsigned DACR4 : 1;
2141 unsigned DACR5 : 1;
2142 unsigned DACR6 : 1;
2143 unsigned DACR7 : 1;
2145 } __DAC1CON1bits_t;
2147 extern __at(0x0119) volatile __DAC1CON1bits_t DAC1CON1bits;
2149 #define _DAC1R0 0x01
2150 #define _DACR0 0x01
2151 #define _DAC1R1 0x02
2152 #define _DACR1 0x02
2153 #define _DAC1R2 0x04
2154 #define _DACR2 0x04
2155 #define _DAC1R3 0x08
2156 #define _DACR3 0x08
2157 #define _DAC1R4 0x10
2158 #define _DACR4 0x10
2159 #define _DAC1R5 0x20
2160 #define _DACR5 0x20
2161 #define _DAC1R6 0x40
2162 #define _DACR6 0x40
2163 #define _DAC1R7 0x80
2164 #define _DACR7 0x80
2166 //==============================================================================
2169 //==============================================================================
2170 // CM4CON0 Bits
2172 extern __at(0x011A) __sfr CM4CON0;
2174 typedef struct
2176 unsigned C4SYNC : 1;
2177 unsigned C4HYS : 1;
2178 unsigned C4SP : 1;
2179 unsigned C4ZLF : 1;
2180 unsigned C4POL : 1;
2181 unsigned C4OE : 1;
2182 unsigned C4OUT : 1;
2183 unsigned C4ON : 1;
2184 } __CM4CON0bits_t;
2186 extern __at(0x011A) volatile __CM4CON0bits_t CM4CON0bits;
2188 #define _C4SYNC 0x01
2189 #define _C4HYS 0x02
2190 #define _C4SP 0x04
2191 #define _C4ZLF 0x08
2192 #define _C4POL 0x10
2193 #define _C4OE 0x20
2194 #define _C4OUT 0x40
2195 #define _C4ON 0x80
2197 //==============================================================================
2200 //==============================================================================
2201 // CM4CON1 Bits
2203 extern __at(0x011B) __sfr CM4CON1;
2205 typedef union
2207 struct
2209 unsigned C4NCH0 : 1;
2210 unsigned C4NCH1 : 1;
2211 unsigned C4NCH2 : 1;
2212 unsigned C4PCH0 : 1;
2213 unsigned C4PCH1 : 1;
2214 unsigned C4PCH2 : 1;
2215 unsigned C4INTN : 1;
2216 unsigned C4INTP : 1;
2219 struct
2221 unsigned C4NCH : 3;
2222 unsigned : 5;
2225 struct
2227 unsigned : 3;
2228 unsigned C4PCH : 3;
2229 unsigned : 2;
2231 } __CM4CON1bits_t;
2233 extern __at(0x011B) volatile __CM4CON1bits_t CM4CON1bits;
2235 #define _C4NCH0 0x01
2236 #define _C4NCH1 0x02
2237 #define _C4NCH2 0x04
2238 #define _C4PCH0 0x08
2239 #define _C4PCH1 0x10
2240 #define _C4PCH2 0x20
2241 #define _C4INTN 0x40
2242 #define _C4INTP 0x80
2244 //==============================================================================
2247 //==============================================================================
2248 // APFCON2 Bits
2250 extern __at(0x011C) __sfr APFCON2;
2252 typedef struct
2254 unsigned CCP3SEL : 1;
2255 unsigned : 1;
2256 unsigned : 1;
2257 unsigned : 1;
2258 unsigned : 1;
2259 unsigned : 1;
2260 unsigned : 1;
2261 unsigned : 1;
2262 } __APFCON2bits_t;
2264 extern __at(0x011C) volatile __APFCON2bits_t APFCON2bits;
2266 #define _CCP3SEL 0x01
2268 //==============================================================================
2271 //==============================================================================
2272 // APFCON Bits
2274 extern __at(0x011D) __sfr APFCON;
2276 typedef struct
2278 unsigned CCP2SEL : 1;
2279 unsigned RXSEL : 1;
2280 unsigned TXSEL : 1;
2281 unsigned SDISEL : 1;
2282 unsigned SCKSEL : 1;
2283 unsigned SDOSEL : 1;
2284 unsigned CCP1SEL : 1;
2285 unsigned C2OUTSEL : 1;
2286 } __APFCONbits_t;
2288 extern __at(0x011D) volatile __APFCONbits_t APFCONbits;
2290 #define _CCP2SEL 0x01
2291 #define _RXSEL 0x02
2292 #define _TXSEL 0x04
2293 #define _SDISEL 0x08
2294 #define _SCKSEL 0x10
2295 #define _SDOSEL 0x20
2296 #define _CCP1SEL 0x40
2297 #define _C2OUTSEL 0x80
2299 //==============================================================================
2302 //==============================================================================
2303 // APFCON0 Bits
2305 extern __at(0x011D) __sfr APFCON0;
2307 typedef struct
2309 unsigned CCP2SEL : 1;
2310 unsigned RXSEL : 1;
2311 unsigned TXSEL : 1;
2312 unsigned SDISEL : 1;
2313 unsigned SCKSEL : 1;
2314 unsigned SDOSEL : 1;
2315 unsigned CCP1SEL : 1;
2316 unsigned C2OUTSEL : 1;
2317 } __APFCON0bits_t;
2319 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits;
2321 #define _APFCON0_CCP2SEL 0x01
2322 #define _APFCON0_RXSEL 0x02
2323 #define _APFCON0_TXSEL 0x04
2324 #define _APFCON0_SDISEL 0x08
2325 #define _APFCON0_SCKSEL 0x10
2326 #define _APFCON0_SDOSEL 0x20
2327 #define _APFCON0_CCP1SEL 0x40
2328 #define _APFCON0_C2OUTSEL 0x80
2330 //==============================================================================
2333 //==============================================================================
2334 // APFCON1 Bits
2336 extern __at(0x011D) __sfr APFCON1;
2338 typedef struct
2340 unsigned CCP2SEL : 1;
2341 unsigned RXSEL : 1;
2342 unsigned TXSEL : 1;
2343 unsigned SDISEL : 1;
2344 unsigned SCKSEL : 1;
2345 unsigned SDOSEL : 1;
2346 unsigned CCP1SEL : 1;
2347 unsigned C2OUTSEL : 1;
2348 } __APFCON1bits_t;
2350 extern __at(0x011D) volatile __APFCON1bits_t APFCON1bits;
2352 #define _APFCON1_CCP2SEL 0x01
2353 #define _APFCON1_RXSEL 0x02
2354 #define _APFCON1_TXSEL 0x04
2355 #define _APFCON1_SDISEL 0x08
2356 #define _APFCON1_SCKSEL 0x10
2357 #define _APFCON1_SDOSEL 0x20
2358 #define _APFCON1_CCP1SEL 0x40
2359 #define _APFCON1_C2OUTSEL 0x80
2361 //==============================================================================
2364 //==============================================================================
2365 // CM3CON0 Bits
2367 extern __at(0x011E) __sfr CM3CON0;
2369 typedef struct
2371 unsigned C3SYNC : 1;
2372 unsigned C3HYS : 1;
2373 unsigned C3SP : 1;
2374 unsigned C3ZLF : 1;
2375 unsigned C3POL : 1;
2376 unsigned C3OE : 1;
2377 unsigned C3OUT : 1;
2378 unsigned C3ON : 1;
2379 } __CM3CON0bits_t;
2381 extern __at(0x011E) volatile __CM3CON0bits_t CM3CON0bits;
2383 #define _C3SYNC 0x01
2384 #define _C3HYS 0x02
2385 #define _C3SP 0x04
2386 #define _C3ZLF 0x08
2387 #define _C3POL 0x10
2388 #define _C3OE 0x20
2389 #define _C3OUT 0x40
2390 #define _C3ON 0x80
2392 //==============================================================================
2395 //==============================================================================
2396 // CM3CON1 Bits
2398 extern __at(0x011F) __sfr CM3CON1;
2400 typedef union
2402 struct
2404 unsigned C3NCH0 : 1;
2405 unsigned C3NCH1 : 1;
2406 unsigned C3NCH2 : 1;
2407 unsigned C3PCH0 : 1;
2408 unsigned C3PCH1 : 1;
2409 unsigned C3PCH2 : 1;
2410 unsigned C3INTN : 1;
2411 unsigned C3INTP : 1;
2414 struct
2416 unsigned C3NCH : 3;
2417 unsigned : 5;
2420 struct
2422 unsigned : 3;
2423 unsigned C3PCH : 3;
2424 unsigned : 2;
2426 } __CM3CON1bits_t;
2428 extern __at(0x011F) volatile __CM3CON1bits_t CM3CON1bits;
2430 #define _C3NCH0 0x01
2431 #define _C3NCH1 0x02
2432 #define _C3NCH2 0x04
2433 #define _C3PCH0 0x08
2434 #define _C3PCH1 0x10
2435 #define _C3PCH2 0x20
2436 #define _C3INTN 0x40
2437 #define _C3INTP 0x80
2439 //==============================================================================
2442 //==============================================================================
2443 // ANSELA Bits
2445 extern __at(0x018C) __sfr ANSELA;
2447 typedef struct
2449 unsigned ANSA0 : 1;
2450 unsigned ANSA1 : 1;
2451 unsigned ANSA2 : 1;
2452 unsigned ANSA3 : 1;
2453 unsigned ANSA4 : 1;
2454 unsigned ANSA5 : 1;
2455 unsigned : 1;
2456 unsigned ANSA7 : 1;
2457 } __ANSELAbits_t;
2459 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits;
2461 #define _ANSA0 0x01
2462 #define _ANSA1 0x02
2463 #define _ANSA2 0x04
2464 #define _ANSA3 0x08
2465 #define _ANSA4 0x10
2466 #define _ANSA5 0x20
2467 #define _ANSA7 0x80
2469 //==============================================================================
2472 //==============================================================================
2473 // ANSELB Bits
2475 extern __at(0x018D) __sfr ANSELB;
2477 typedef union
2479 struct
2481 unsigned ANSB0 : 1;
2482 unsigned ANSB1 : 1;
2483 unsigned ANSB2 : 1;
2484 unsigned ANSB3 : 1;
2485 unsigned ANSB4 : 1;
2486 unsigned ANSB5 : 1;
2487 unsigned ANSB6 : 1;
2488 unsigned : 1;
2491 struct
2493 unsigned ANSB : 7;
2494 unsigned : 1;
2496 } __ANSELBbits_t;
2498 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits;
2500 #define _ANSB0 0x01
2501 #define _ANSB1 0x02
2502 #define _ANSB2 0x04
2503 #define _ANSB3 0x08
2504 #define _ANSB4 0x10
2505 #define _ANSB5 0x20
2506 #define _ANSB6 0x40
2508 //==============================================================================
2511 //==============================================================================
2512 // ANSELC Bits
2514 extern __at(0x018E) __sfr ANSELC;
2516 typedef struct
2518 unsigned ANSC0 : 1;
2519 unsigned ANSC1 : 1;
2520 unsigned ANSC2 : 1;
2521 unsigned ANSC3 : 1;
2522 unsigned ANSC4 : 1;
2523 unsigned ANSC5 : 1;
2524 unsigned ANSC6 : 1;
2525 unsigned ANSC7 : 1;
2526 } __ANSELCbits_t;
2528 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits;
2530 #define _ANSC0 0x01
2531 #define _ANSC1 0x02
2532 #define _ANSC2 0x04
2533 #define _ANSC3 0x08
2534 #define _ANSC4 0x10
2535 #define _ANSC5 0x20
2536 #define _ANSC6 0x40
2537 #define _ANSC7 0x80
2539 //==============================================================================
2542 //==============================================================================
2543 // ANSELD Bits
2545 extern __at(0x018F) __sfr ANSELD;
2547 typedef union
2549 struct
2551 unsigned ANSD0 : 1;
2552 unsigned ANSD1 : 1;
2553 unsigned ANSD2 : 1;
2554 unsigned : 1;
2555 unsigned : 1;
2556 unsigned : 1;
2557 unsigned : 1;
2558 unsigned : 1;
2561 struct
2563 unsigned ANSD : 3;
2564 unsigned : 5;
2566 } __ANSELDbits_t;
2568 extern __at(0x018F) volatile __ANSELDbits_t ANSELDbits;
2570 #define _ANSD0 0x01
2571 #define _ANSD1 0x02
2572 #define _ANSD2 0x04
2574 //==============================================================================
2577 //==============================================================================
2578 // ANSELE Bits
2580 extern __at(0x0190) __sfr ANSELE;
2582 typedef union
2584 struct
2586 unsigned ANSE0 : 1;
2587 unsigned ANSE1 : 1;
2588 unsigned ANSE2 : 1;
2589 unsigned : 1;
2590 unsigned : 1;
2591 unsigned : 1;
2592 unsigned : 1;
2593 unsigned : 1;
2596 struct
2598 unsigned ANSE : 3;
2599 unsigned : 5;
2601 } __ANSELEbits_t;
2603 extern __at(0x0190) volatile __ANSELEbits_t ANSELEbits;
2605 #define _ANSE0 0x01
2606 #define _ANSE1 0x02
2607 #define _ANSE2 0x04
2609 //==============================================================================
2611 extern __at(0x0191) __sfr EEADR;
2612 extern __at(0x0191) __sfr EEADRL;
2613 extern __at(0x0192) __sfr EEADRH;
2614 extern __at(0x0193) __sfr EEDAT;
2615 extern __at(0x0193) __sfr EEDATL;
2616 extern __at(0x0194) __sfr EEDATH;
2618 //==============================================================================
2619 // EECON1 Bits
2621 extern __at(0x0195) __sfr EECON1;
2623 typedef struct
2625 unsigned RD : 1;
2626 unsigned WR : 1;
2627 unsigned WREN : 1;
2628 unsigned WRERR : 1;
2629 unsigned FREE : 1;
2630 unsigned LWLO : 1;
2631 unsigned CFGS : 1;
2632 unsigned EEPGD : 1;
2633 } __EECON1bits_t;
2635 extern __at(0x0195) volatile __EECON1bits_t EECON1bits;
2637 #define _RD 0x01
2638 #define _WR 0x02
2639 #define _WREN 0x04
2640 #define _WRERR 0x08
2641 #define _FREE 0x10
2642 #define _LWLO 0x20
2643 #define _CFGS 0x40
2644 #define _EEPGD 0x80
2646 //==============================================================================
2648 extern __at(0x0196) __sfr EECON2;
2650 //==============================================================================
2651 // VREGCON Bits
2653 extern __at(0x0197) __sfr VREGCON;
2655 typedef struct
2657 unsigned : 1;
2658 unsigned VREGPM : 1;
2659 unsigned : 1;
2660 unsigned : 1;
2661 unsigned : 1;
2662 unsigned : 1;
2663 unsigned : 1;
2664 unsigned : 1;
2665 } __VREGCONbits_t;
2667 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits;
2669 #define _VREGPM 0x02
2671 //==============================================================================
2673 extern __at(0x0199) __sfr RC1REG;
2674 extern __at(0x0199) __sfr RCREG;
2675 extern __at(0x0199) __sfr RCREG1;
2676 extern __at(0x019A) __sfr TX1REG;
2677 extern __at(0x019A) __sfr TXREG;
2678 extern __at(0x019A) __sfr TXREG1;
2679 extern __at(0x019B) __sfr SP1BRG;
2680 extern __at(0x019B) __sfr SP1BRGL;
2681 extern __at(0x019B) __sfr SPBRG;
2682 extern __at(0x019B) __sfr SPBRG1;
2683 extern __at(0x019B) __sfr SPBRGL;
2684 extern __at(0x019C) __sfr SP1BRGH;
2685 extern __at(0x019C) __sfr SPBRGH;
2686 extern __at(0x019C) __sfr SPBRGH1;
2688 //==============================================================================
2689 // RC1STA Bits
2691 extern __at(0x019D) __sfr RC1STA;
2693 typedef struct
2695 unsigned RX9D : 1;
2696 unsigned OERR : 1;
2697 unsigned FERR : 1;
2698 unsigned ADDEN : 1;
2699 unsigned CREN : 1;
2700 unsigned SREN : 1;
2701 unsigned RX9 : 1;
2702 unsigned SPEN : 1;
2703 } __RC1STAbits_t;
2705 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits;
2707 #define _RX9D 0x01
2708 #define _OERR 0x02
2709 #define _FERR 0x04
2710 #define _ADDEN 0x08
2711 #define _CREN 0x10
2712 #define _SREN 0x20
2713 #define _RX9 0x40
2714 #define _SPEN 0x80
2716 //==============================================================================
2719 //==============================================================================
2720 // RCSTA Bits
2722 extern __at(0x019D) __sfr RCSTA;
2724 typedef struct
2726 unsigned RX9D : 1;
2727 unsigned OERR : 1;
2728 unsigned FERR : 1;
2729 unsigned ADDEN : 1;
2730 unsigned CREN : 1;
2731 unsigned SREN : 1;
2732 unsigned RX9 : 1;
2733 unsigned SPEN : 1;
2734 } __RCSTAbits_t;
2736 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits;
2738 #define _RCSTA_RX9D 0x01
2739 #define _RCSTA_OERR 0x02
2740 #define _RCSTA_FERR 0x04
2741 #define _RCSTA_ADDEN 0x08
2742 #define _RCSTA_CREN 0x10
2743 #define _RCSTA_SREN 0x20
2744 #define _RCSTA_RX9 0x40
2745 #define _RCSTA_SPEN 0x80
2747 //==============================================================================
2750 //==============================================================================
2751 // RCSTA1 Bits
2753 extern __at(0x019D) __sfr RCSTA1;
2755 typedef struct
2757 unsigned RX9D : 1;
2758 unsigned OERR : 1;
2759 unsigned FERR : 1;
2760 unsigned ADDEN : 1;
2761 unsigned CREN : 1;
2762 unsigned SREN : 1;
2763 unsigned RX9 : 1;
2764 unsigned SPEN : 1;
2765 } __RCSTA1bits_t;
2767 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits;
2769 #define _RCSTA1_RX9D 0x01
2770 #define _RCSTA1_OERR 0x02
2771 #define _RCSTA1_FERR 0x04
2772 #define _RCSTA1_ADDEN 0x08
2773 #define _RCSTA1_CREN 0x10
2774 #define _RCSTA1_SREN 0x20
2775 #define _RCSTA1_RX9 0x40
2776 #define _RCSTA1_SPEN 0x80
2778 //==============================================================================
2781 //==============================================================================
2782 // TX1STA Bits
2784 extern __at(0x019E) __sfr TX1STA;
2786 typedef struct
2788 unsigned TX9D : 1;
2789 unsigned TRMT : 1;
2790 unsigned BRGH : 1;
2791 unsigned SENDB : 1;
2792 unsigned SYNC : 1;
2793 unsigned TXEN : 1;
2794 unsigned TX9 : 1;
2795 unsigned CSRC : 1;
2796 } __TX1STAbits_t;
2798 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits;
2800 #define _TX9D 0x01
2801 #define _TRMT 0x02
2802 #define _BRGH 0x04
2803 #define _SENDB 0x08
2804 #define _SYNC 0x10
2805 #define _TXEN 0x20
2806 #define _TX9 0x40
2807 #define _CSRC 0x80
2809 //==============================================================================
2812 //==============================================================================
2813 // TXSTA Bits
2815 extern __at(0x019E) __sfr TXSTA;
2817 typedef struct
2819 unsigned TX9D : 1;
2820 unsigned TRMT : 1;
2821 unsigned BRGH : 1;
2822 unsigned SENDB : 1;
2823 unsigned SYNC : 1;
2824 unsigned TXEN : 1;
2825 unsigned TX9 : 1;
2826 unsigned CSRC : 1;
2827 } __TXSTAbits_t;
2829 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits;
2831 #define _TXSTA_TX9D 0x01
2832 #define _TXSTA_TRMT 0x02
2833 #define _TXSTA_BRGH 0x04
2834 #define _TXSTA_SENDB 0x08
2835 #define _TXSTA_SYNC 0x10
2836 #define _TXSTA_TXEN 0x20
2837 #define _TXSTA_TX9 0x40
2838 #define _TXSTA_CSRC 0x80
2840 //==============================================================================
2843 //==============================================================================
2844 // TXSTA1 Bits
2846 extern __at(0x019E) __sfr TXSTA1;
2848 typedef struct
2850 unsigned TX9D : 1;
2851 unsigned TRMT : 1;
2852 unsigned BRGH : 1;
2853 unsigned SENDB : 1;
2854 unsigned SYNC : 1;
2855 unsigned TXEN : 1;
2856 unsigned TX9 : 1;
2857 unsigned CSRC : 1;
2858 } __TXSTA1bits_t;
2860 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits;
2862 #define _TXSTA1_TX9D 0x01
2863 #define _TXSTA1_TRMT 0x02
2864 #define _TXSTA1_BRGH 0x04
2865 #define _TXSTA1_SENDB 0x08
2866 #define _TXSTA1_SYNC 0x10
2867 #define _TXSTA1_TXEN 0x20
2868 #define _TXSTA1_TX9 0x40
2869 #define _TXSTA1_CSRC 0x80
2871 //==============================================================================
2874 //==============================================================================
2875 // BAUD1CON Bits
2877 extern __at(0x019F) __sfr BAUD1CON;
2879 typedef struct
2881 unsigned ABDEN : 1;
2882 unsigned WUE : 1;
2883 unsigned : 1;
2884 unsigned BRG16 : 1;
2885 unsigned SCKP : 1;
2886 unsigned : 1;
2887 unsigned RCIDL : 1;
2888 unsigned ABDOVF : 1;
2889 } __BAUD1CONbits_t;
2891 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits;
2893 #define _ABDEN 0x01
2894 #define _WUE 0x02
2895 #define _BRG16 0x08
2896 #define _SCKP 0x10
2897 #define _RCIDL 0x40
2898 #define _ABDOVF 0x80
2900 //==============================================================================
2903 //==============================================================================
2904 // BAUDCON Bits
2906 extern __at(0x019F) __sfr BAUDCON;
2908 typedef struct
2910 unsigned ABDEN : 1;
2911 unsigned WUE : 1;
2912 unsigned : 1;
2913 unsigned BRG16 : 1;
2914 unsigned SCKP : 1;
2915 unsigned : 1;
2916 unsigned RCIDL : 1;
2917 unsigned ABDOVF : 1;
2918 } __BAUDCONbits_t;
2920 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits;
2922 #define _BAUDCON_ABDEN 0x01
2923 #define _BAUDCON_WUE 0x02
2924 #define _BAUDCON_BRG16 0x08
2925 #define _BAUDCON_SCKP 0x10
2926 #define _BAUDCON_RCIDL 0x40
2927 #define _BAUDCON_ABDOVF 0x80
2929 //==============================================================================
2932 //==============================================================================
2933 // BAUDCON1 Bits
2935 extern __at(0x019F) __sfr BAUDCON1;
2937 typedef struct
2939 unsigned ABDEN : 1;
2940 unsigned WUE : 1;
2941 unsigned : 1;
2942 unsigned BRG16 : 1;
2943 unsigned SCKP : 1;
2944 unsigned : 1;
2945 unsigned RCIDL : 1;
2946 unsigned ABDOVF : 1;
2947 } __BAUDCON1bits_t;
2949 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits;
2951 #define _BAUDCON1_ABDEN 0x01
2952 #define _BAUDCON1_WUE 0x02
2953 #define _BAUDCON1_BRG16 0x08
2954 #define _BAUDCON1_SCKP 0x10
2955 #define _BAUDCON1_RCIDL 0x40
2956 #define _BAUDCON1_ABDOVF 0x80
2958 //==============================================================================
2961 //==============================================================================
2962 // BAUDCTL Bits
2964 extern __at(0x019F) __sfr BAUDCTL;
2966 typedef struct
2968 unsigned ABDEN : 1;
2969 unsigned WUE : 1;
2970 unsigned : 1;
2971 unsigned BRG16 : 1;
2972 unsigned SCKP : 1;
2973 unsigned : 1;
2974 unsigned RCIDL : 1;
2975 unsigned ABDOVF : 1;
2976 } __BAUDCTLbits_t;
2978 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits;
2980 #define _BAUDCTL_ABDEN 0x01
2981 #define _BAUDCTL_WUE 0x02
2982 #define _BAUDCTL_BRG16 0x08
2983 #define _BAUDCTL_SCKP 0x10
2984 #define _BAUDCTL_RCIDL 0x40
2985 #define _BAUDCTL_ABDOVF 0x80
2987 //==============================================================================
2990 //==============================================================================
2991 // BAUDCTL1 Bits
2993 extern __at(0x019F) __sfr BAUDCTL1;
2995 typedef struct
2997 unsigned ABDEN : 1;
2998 unsigned WUE : 1;
2999 unsigned : 1;
3000 unsigned BRG16 : 1;
3001 unsigned SCKP : 1;
3002 unsigned : 1;
3003 unsigned RCIDL : 1;
3004 unsigned ABDOVF : 1;
3005 } __BAUDCTL1bits_t;
3007 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits;
3009 #define _BAUDCTL1_ABDEN 0x01
3010 #define _BAUDCTL1_WUE 0x02
3011 #define _BAUDCTL1_BRG16 0x08
3012 #define _BAUDCTL1_SCKP 0x10
3013 #define _BAUDCTL1_RCIDL 0x40
3014 #define _BAUDCTL1_ABDOVF 0x80
3016 //==============================================================================
3019 //==============================================================================
3020 // WPUA Bits
3022 extern __at(0x020C) __sfr WPUA;
3024 typedef struct
3026 unsigned WPUA0 : 1;
3027 unsigned WPUA1 : 1;
3028 unsigned WPUA2 : 1;
3029 unsigned WPUA3 : 1;
3030 unsigned WPUA4 : 1;
3031 unsigned WPUA5 : 1;
3032 unsigned WPUA6 : 1;
3033 unsigned WPUA7 : 1;
3034 } __WPUAbits_t;
3036 extern __at(0x020C) volatile __WPUAbits_t WPUAbits;
3038 #define _WPUA0 0x01
3039 #define _WPUA1 0x02
3040 #define _WPUA2 0x04
3041 #define _WPUA3 0x08
3042 #define _WPUA4 0x10
3043 #define _WPUA5 0x20
3044 #define _WPUA6 0x40
3045 #define _WPUA7 0x80
3047 //==============================================================================
3050 //==============================================================================
3051 // WPUB Bits
3053 extern __at(0x020D) __sfr WPUB;
3055 typedef struct
3057 unsigned WPUB0 : 1;
3058 unsigned WPUB1 : 1;
3059 unsigned WPUB2 : 1;
3060 unsigned WPUB3 : 1;
3061 unsigned WPUB4 : 1;
3062 unsigned WPUB5 : 1;
3063 unsigned WPUB6 : 1;
3064 unsigned WPUB7 : 1;
3065 } __WPUBbits_t;
3067 extern __at(0x020D) volatile __WPUBbits_t WPUBbits;
3069 #define _WPUB0 0x01
3070 #define _WPUB1 0x02
3071 #define _WPUB2 0x04
3072 #define _WPUB3 0x08
3073 #define _WPUB4 0x10
3074 #define _WPUB5 0x20
3075 #define _WPUB6 0x40
3076 #define _WPUB7 0x80
3078 //==============================================================================
3081 //==============================================================================
3082 // WPUC Bits
3084 extern __at(0x020E) __sfr WPUC;
3086 typedef struct
3088 unsigned WPUC0 : 1;
3089 unsigned WPUC1 : 1;
3090 unsigned WPUC2 : 1;
3091 unsigned WPUC3 : 1;
3092 unsigned WPUC4 : 1;
3093 unsigned WPUC5 : 1;
3094 unsigned WPUC6 : 1;
3095 unsigned WPUC7 : 1;
3096 } __WPUCbits_t;
3098 extern __at(0x020E) volatile __WPUCbits_t WPUCbits;
3100 #define _WPUC0 0x01
3101 #define _WPUC1 0x02
3102 #define _WPUC2 0x04
3103 #define _WPUC3 0x08
3104 #define _WPUC4 0x10
3105 #define _WPUC5 0x20
3106 #define _WPUC6 0x40
3107 #define _WPUC7 0x80
3109 //==============================================================================
3112 //==============================================================================
3113 // WPUD Bits
3115 extern __at(0x020F) __sfr WPUD;
3117 typedef struct
3119 unsigned WPUD0 : 1;
3120 unsigned WPUD1 : 1;
3121 unsigned WPUD2 : 1;
3122 unsigned WPUD3 : 1;
3123 unsigned WPUD4 : 1;
3124 unsigned WPUD5 : 1;
3125 unsigned WPUD6 : 1;
3126 unsigned WPUD7 : 1;
3127 } __WPUDbits_t;
3129 extern __at(0x020F) volatile __WPUDbits_t WPUDbits;
3131 #define _WPUD0 0x01
3132 #define _WPUD1 0x02
3133 #define _WPUD2 0x04
3134 #define _WPUD3 0x08
3135 #define _WPUD4 0x10
3136 #define _WPUD5 0x20
3137 #define _WPUD6 0x40
3138 #define _WPUD7 0x80
3140 //==============================================================================
3143 //==============================================================================
3144 // WPUE Bits
3146 extern __at(0x0210) __sfr WPUE;
3148 typedef union
3150 struct
3152 unsigned WPUE0 : 1;
3153 unsigned WPUE1 : 1;
3154 unsigned WPUE2 : 1;
3155 unsigned WPUE3 : 1;
3156 unsigned : 1;
3157 unsigned : 1;
3158 unsigned : 1;
3159 unsigned : 1;
3162 struct
3164 unsigned WPUE : 4;
3165 unsigned : 4;
3167 } __WPUEbits_t;
3169 extern __at(0x0210) volatile __WPUEbits_t WPUEbits;
3171 #define _WPUE0 0x01
3172 #define _WPUE1 0x02
3173 #define _WPUE2 0x04
3174 #define _WPUE3 0x08
3176 //==============================================================================
3179 //==============================================================================
3180 // SSP1BUF Bits
3182 extern __at(0x0211) __sfr SSP1BUF;
3184 typedef union
3186 struct
3188 unsigned SSP1BUF0 : 1;
3189 unsigned SSP1BUF1 : 1;
3190 unsigned SSP1BUF2 : 1;
3191 unsigned SSP1BUF3 : 1;
3192 unsigned SSP1BUF4 : 1;
3193 unsigned SSP1BUF5 : 1;
3194 unsigned SSP1BUF6 : 1;
3195 unsigned SSP1BUF7 : 1;
3198 struct
3200 unsigned BUF0 : 1;
3201 unsigned BUF1 : 1;
3202 unsigned BUF2 : 1;
3203 unsigned BUF3 : 1;
3204 unsigned BUF4 : 1;
3205 unsigned BUF5 : 1;
3206 unsigned BUF6 : 1;
3207 unsigned BUF7 : 1;
3209 } __SSP1BUFbits_t;
3211 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits;
3213 #define _SSP1BUF0 0x01
3214 #define _BUF0 0x01
3215 #define _SSP1BUF1 0x02
3216 #define _BUF1 0x02
3217 #define _SSP1BUF2 0x04
3218 #define _BUF2 0x04
3219 #define _SSP1BUF3 0x08
3220 #define _BUF3 0x08
3221 #define _SSP1BUF4 0x10
3222 #define _BUF4 0x10
3223 #define _SSP1BUF5 0x20
3224 #define _BUF5 0x20
3225 #define _SSP1BUF6 0x40
3226 #define _BUF6 0x40
3227 #define _SSP1BUF7 0x80
3228 #define _BUF7 0x80
3230 //==============================================================================
3233 //==============================================================================
3234 // SSPBUF Bits
3236 extern __at(0x0211) __sfr SSPBUF;
3238 typedef union
3240 struct
3242 unsigned SSP1BUF0 : 1;
3243 unsigned SSP1BUF1 : 1;
3244 unsigned SSP1BUF2 : 1;
3245 unsigned SSP1BUF3 : 1;
3246 unsigned SSP1BUF4 : 1;
3247 unsigned SSP1BUF5 : 1;
3248 unsigned SSP1BUF6 : 1;
3249 unsigned SSP1BUF7 : 1;
3252 struct
3254 unsigned BUF0 : 1;
3255 unsigned BUF1 : 1;
3256 unsigned BUF2 : 1;
3257 unsigned BUF3 : 1;
3258 unsigned BUF4 : 1;
3259 unsigned BUF5 : 1;
3260 unsigned BUF6 : 1;
3261 unsigned BUF7 : 1;
3263 } __SSPBUFbits_t;
3265 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits;
3267 #define _SSPBUF_SSP1BUF0 0x01
3268 #define _SSPBUF_BUF0 0x01
3269 #define _SSPBUF_SSP1BUF1 0x02
3270 #define _SSPBUF_BUF1 0x02
3271 #define _SSPBUF_SSP1BUF2 0x04
3272 #define _SSPBUF_BUF2 0x04
3273 #define _SSPBUF_SSP1BUF3 0x08
3274 #define _SSPBUF_BUF3 0x08
3275 #define _SSPBUF_SSP1BUF4 0x10
3276 #define _SSPBUF_BUF4 0x10
3277 #define _SSPBUF_SSP1BUF5 0x20
3278 #define _SSPBUF_BUF5 0x20
3279 #define _SSPBUF_SSP1BUF6 0x40
3280 #define _SSPBUF_BUF6 0x40
3281 #define _SSPBUF_SSP1BUF7 0x80
3282 #define _SSPBUF_BUF7 0x80
3284 //==============================================================================
3287 //==============================================================================
3288 // SSP1ADD Bits
3290 extern __at(0x0212) __sfr SSP1ADD;
3292 typedef union
3294 struct
3296 unsigned SSP1ADD0 : 1;
3297 unsigned SSP1ADD1 : 1;
3298 unsigned SSP1ADD2 : 1;
3299 unsigned SSP1ADD3 : 1;
3300 unsigned SSP1ADD4 : 1;
3301 unsigned SSP1ADD5 : 1;
3302 unsigned SSP1ADD6 : 1;
3303 unsigned SSP1ADD7 : 1;
3306 struct
3308 unsigned ADD0 : 1;
3309 unsigned ADD1 : 1;
3310 unsigned ADD2 : 1;
3311 unsigned ADD3 : 1;
3312 unsigned ADD4 : 1;
3313 unsigned ADD5 : 1;
3314 unsigned ADD6 : 1;
3315 unsigned ADD7 : 1;
3317 } __SSP1ADDbits_t;
3319 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits;
3321 #define _SSP1ADD0 0x01
3322 #define _ADD0 0x01
3323 #define _SSP1ADD1 0x02
3324 #define _ADD1 0x02
3325 #define _SSP1ADD2 0x04
3326 #define _ADD2 0x04
3327 #define _SSP1ADD3 0x08
3328 #define _ADD3 0x08
3329 #define _SSP1ADD4 0x10
3330 #define _ADD4 0x10
3331 #define _SSP1ADD5 0x20
3332 #define _ADD5 0x20
3333 #define _SSP1ADD6 0x40
3334 #define _ADD6 0x40
3335 #define _SSP1ADD7 0x80
3336 #define _ADD7 0x80
3338 //==============================================================================
3341 //==============================================================================
3342 // SSPADD Bits
3344 extern __at(0x0212) __sfr SSPADD;
3346 typedef union
3348 struct
3350 unsigned SSP1ADD0 : 1;
3351 unsigned SSP1ADD1 : 1;
3352 unsigned SSP1ADD2 : 1;
3353 unsigned SSP1ADD3 : 1;
3354 unsigned SSP1ADD4 : 1;
3355 unsigned SSP1ADD5 : 1;
3356 unsigned SSP1ADD6 : 1;
3357 unsigned SSP1ADD7 : 1;
3360 struct
3362 unsigned ADD0 : 1;
3363 unsigned ADD1 : 1;
3364 unsigned ADD2 : 1;
3365 unsigned ADD3 : 1;
3366 unsigned ADD4 : 1;
3367 unsigned ADD5 : 1;
3368 unsigned ADD6 : 1;
3369 unsigned ADD7 : 1;
3371 } __SSPADDbits_t;
3373 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits;
3375 #define _SSPADD_SSP1ADD0 0x01
3376 #define _SSPADD_ADD0 0x01
3377 #define _SSPADD_SSP1ADD1 0x02
3378 #define _SSPADD_ADD1 0x02
3379 #define _SSPADD_SSP1ADD2 0x04
3380 #define _SSPADD_ADD2 0x04
3381 #define _SSPADD_SSP1ADD3 0x08
3382 #define _SSPADD_ADD3 0x08
3383 #define _SSPADD_SSP1ADD4 0x10
3384 #define _SSPADD_ADD4 0x10
3385 #define _SSPADD_SSP1ADD5 0x20
3386 #define _SSPADD_ADD5 0x20
3387 #define _SSPADD_SSP1ADD6 0x40
3388 #define _SSPADD_ADD6 0x40
3389 #define _SSPADD_SSP1ADD7 0x80
3390 #define _SSPADD_ADD7 0x80
3392 //==============================================================================
3395 //==============================================================================
3396 // SSP1MSK Bits
3398 extern __at(0x0213) __sfr SSP1MSK;
3400 typedef union
3402 struct
3404 unsigned SSP1MSK0 : 1;
3405 unsigned SSP1MSK1 : 1;
3406 unsigned SSP1MSK2 : 1;
3407 unsigned SSP1MSK3 : 1;
3408 unsigned SSP1MSK4 : 1;
3409 unsigned SSP1MSK5 : 1;
3410 unsigned SSP1MSK6 : 1;
3411 unsigned SSP1MSK7 : 1;
3414 struct
3416 unsigned MSK0 : 1;
3417 unsigned MSK1 : 1;
3418 unsigned MSK2 : 1;
3419 unsigned MSK3 : 1;
3420 unsigned MSK4 : 1;
3421 unsigned MSK5 : 1;
3422 unsigned MSK6 : 1;
3423 unsigned MSK7 : 1;
3425 } __SSP1MSKbits_t;
3427 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits;
3429 #define _SSP1MSK0 0x01
3430 #define _MSK0 0x01
3431 #define _SSP1MSK1 0x02
3432 #define _MSK1 0x02
3433 #define _SSP1MSK2 0x04
3434 #define _MSK2 0x04
3435 #define _SSP1MSK3 0x08
3436 #define _MSK3 0x08
3437 #define _SSP1MSK4 0x10
3438 #define _MSK4 0x10
3439 #define _SSP1MSK5 0x20
3440 #define _MSK5 0x20
3441 #define _SSP1MSK6 0x40
3442 #define _MSK6 0x40
3443 #define _SSP1MSK7 0x80
3444 #define _MSK7 0x80
3446 //==============================================================================
3449 //==============================================================================
3450 // SSPMSK Bits
3452 extern __at(0x0213) __sfr SSPMSK;
3454 typedef union
3456 struct
3458 unsigned SSP1MSK0 : 1;
3459 unsigned SSP1MSK1 : 1;
3460 unsigned SSP1MSK2 : 1;
3461 unsigned SSP1MSK3 : 1;
3462 unsigned SSP1MSK4 : 1;
3463 unsigned SSP1MSK5 : 1;
3464 unsigned SSP1MSK6 : 1;
3465 unsigned SSP1MSK7 : 1;
3468 struct
3470 unsigned MSK0 : 1;
3471 unsigned MSK1 : 1;
3472 unsigned MSK2 : 1;
3473 unsigned MSK3 : 1;
3474 unsigned MSK4 : 1;
3475 unsigned MSK5 : 1;
3476 unsigned MSK6 : 1;
3477 unsigned MSK7 : 1;
3479 } __SSPMSKbits_t;
3481 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits;
3483 #define _SSPMSK_SSP1MSK0 0x01
3484 #define _SSPMSK_MSK0 0x01
3485 #define _SSPMSK_SSP1MSK1 0x02
3486 #define _SSPMSK_MSK1 0x02
3487 #define _SSPMSK_SSP1MSK2 0x04
3488 #define _SSPMSK_MSK2 0x04
3489 #define _SSPMSK_SSP1MSK3 0x08
3490 #define _SSPMSK_MSK3 0x08
3491 #define _SSPMSK_SSP1MSK4 0x10
3492 #define _SSPMSK_MSK4 0x10
3493 #define _SSPMSK_SSP1MSK5 0x20
3494 #define _SSPMSK_MSK5 0x20
3495 #define _SSPMSK_SSP1MSK6 0x40
3496 #define _SSPMSK_MSK6 0x40
3497 #define _SSPMSK_SSP1MSK7 0x80
3498 #define _SSPMSK_MSK7 0x80
3500 //==============================================================================
3503 //==============================================================================
3504 // SSP1STAT Bits
3506 extern __at(0x0214) __sfr SSP1STAT;
3508 typedef struct
3510 unsigned BF : 1;
3511 unsigned UA : 1;
3512 unsigned R_NOT_W : 1;
3513 unsigned S : 1;
3514 unsigned P : 1;
3515 unsigned D_NOT_A : 1;
3516 unsigned CKE : 1;
3517 unsigned SMP : 1;
3518 } __SSP1STATbits_t;
3520 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits;
3522 #define _BF 0x01
3523 #define _UA 0x02
3524 #define _R_NOT_W 0x04
3525 #define _S 0x08
3526 #define _P 0x10
3527 #define _D_NOT_A 0x20
3528 #define _CKE 0x40
3529 #define _SMP 0x80
3531 //==============================================================================
3534 //==============================================================================
3535 // SSPSTAT Bits
3537 extern __at(0x0214) __sfr SSPSTAT;
3539 typedef struct
3541 unsigned BF : 1;
3542 unsigned UA : 1;
3543 unsigned R_NOT_W : 1;
3544 unsigned S : 1;
3545 unsigned P : 1;
3546 unsigned D_NOT_A : 1;
3547 unsigned CKE : 1;
3548 unsigned SMP : 1;
3549 } __SSPSTATbits_t;
3551 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits;
3553 #define _SSPSTAT_BF 0x01
3554 #define _SSPSTAT_UA 0x02
3555 #define _SSPSTAT_R_NOT_W 0x04
3556 #define _SSPSTAT_S 0x08
3557 #define _SSPSTAT_P 0x10
3558 #define _SSPSTAT_D_NOT_A 0x20
3559 #define _SSPSTAT_CKE 0x40
3560 #define _SSPSTAT_SMP 0x80
3562 //==============================================================================
3565 //==============================================================================
3566 // SSP1CON Bits
3568 extern __at(0x0215) __sfr SSP1CON;
3570 typedef union
3572 struct
3574 unsigned SSPM0 : 1;
3575 unsigned SSPM1 : 1;
3576 unsigned SSPM2 : 1;
3577 unsigned SSPM3 : 1;
3578 unsigned CKP : 1;
3579 unsigned SSPEN : 1;
3580 unsigned SSPOV : 1;
3581 unsigned WCOL : 1;
3584 struct
3586 unsigned SSPM : 4;
3587 unsigned : 4;
3589 } __SSP1CONbits_t;
3591 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits;
3593 #define _SSPM0 0x01
3594 #define _SSPM1 0x02
3595 #define _SSPM2 0x04
3596 #define _SSPM3 0x08
3597 #define _CKP 0x10
3598 #define _SSPEN 0x20
3599 #define _SSPOV 0x40
3600 #define _WCOL 0x80
3602 //==============================================================================
3605 //==============================================================================
3606 // SSP1CON1 Bits
3608 extern __at(0x0215) __sfr SSP1CON1;
3610 typedef union
3612 struct
3614 unsigned SSPM0 : 1;
3615 unsigned SSPM1 : 1;
3616 unsigned SSPM2 : 1;
3617 unsigned SSPM3 : 1;
3618 unsigned CKP : 1;
3619 unsigned SSPEN : 1;
3620 unsigned SSPOV : 1;
3621 unsigned WCOL : 1;
3624 struct
3626 unsigned SSPM : 4;
3627 unsigned : 4;
3629 } __SSP1CON1bits_t;
3631 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits;
3633 #define _SSP1CON1_SSPM0 0x01
3634 #define _SSP1CON1_SSPM1 0x02
3635 #define _SSP1CON1_SSPM2 0x04
3636 #define _SSP1CON1_SSPM3 0x08
3637 #define _SSP1CON1_CKP 0x10
3638 #define _SSP1CON1_SSPEN 0x20
3639 #define _SSP1CON1_SSPOV 0x40
3640 #define _SSP1CON1_WCOL 0x80
3642 //==============================================================================
3645 //==============================================================================
3646 // SSPCON Bits
3648 extern __at(0x0215) __sfr SSPCON;
3650 typedef union
3652 struct
3654 unsigned SSPM0 : 1;
3655 unsigned SSPM1 : 1;
3656 unsigned SSPM2 : 1;
3657 unsigned SSPM3 : 1;
3658 unsigned CKP : 1;
3659 unsigned SSPEN : 1;
3660 unsigned SSPOV : 1;
3661 unsigned WCOL : 1;
3664 struct
3666 unsigned SSPM : 4;
3667 unsigned : 4;
3669 } __SSPCONbits_t;
3671 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits;
3673 #define _SSPCON_SSPM0 0x01
3674 #define _SSPCON_SSPM1 0x02
3675 #define _SSPCON_SSPM2 0x04
3676 #define _SSPCON_SSPM3 0x08
3677 #define _SSPCON_CKP 0x10
3678 #define _SSPCON_SSPEN 0x20
3679 #define _SSPCON_SSPOV 0x40
3680 #define _SSPCON_WCOL 0x80
3682 //==============================================================================
3685 //==============================================================================
3686 // SSPCON1 Bits
3688 extern __at(0x0215) __sfr SSPCON1;
3690 typedef union
3692 struct
3694 unsigned SSPM0 : 1;
3695 unsigned SSPM1 : 1;
3696 unsigned SSPM2 : 1;
3697 unsigned SSPM3 : 1;
3698 unsigned CKP : 1;
3699 unsigned SSPEN : 1;
3700 unsigned SSPOV : 1;
3701 unsigned WCOL : 1;
3704 struct
3706 unsigned SSPM : 4;
3707 unsigned : 4;
3709 } __SSPCON1bits_t;
3711 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits;
3713 #define _SSPCON1_SSPM0 0x01
3714 #define _SSPCON1_SSPM1 0x02
3715 #define _SSPCON1_SSPM2 0x04
3716 #define _SSPCON1_SSPM3 0x08
3717 #define _SSPCON1_CKP 0x10
3718 #define _SSPCON1_SSPEN 0x20
3719 #define _SSPCON1_SSPOV 0x40
3720 #define _SSPCON1_WCOL 0x80
3722 //==============================================================================
3725 //==============================================================================
3726 // SSP1CON2 Bits
3728 extern __at(0x0216) __sfr SSP1CON2;
3730 typedef struct
3732 unsigned SEN : 1;
3733 unsigned RSEN : 1;
3734 unsigned PEN : 1;
3735 unsigned RCEN : 1;
3736 unsigned ACKEN : 1;
3737 unsigned ACKDT : 1;
3738 unsigned ACKSTAT : 1;
3739 unsigned GCEN : 1;
3740 } __SSP1CON2bits_t;
3742 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits;
3744 #define _SEN 0x01
3745 #define _RSEN 0x02
3746 #define _PEN 0x04
3747 #define _RCEN 0x08
3748 #define _ACKEN 0x10
3749 #define _ACKDT 0x20
3750 #define _ACKSTAT 0x40
3751 #define _GCEN 0x80
3753 //==============================================================================
3756 //==============================================================================
3757 // SSPCON2 Bits
3759 extern __at(0x0216) __sfr SSPCON2;
3761 typedef struct
3763 unsigned SEN : 1;
3764 unsigned RSEN : 1;
3765 unsigned PEN : 1;
3766 unsigned RCEN : 1;
3767 unsigned ACKEN : 1;
3768 unsigned ACKDT : 1;
3769 unsigned ACKSTAT : 1;
3770 unsigned GCEN : 1;
3771 } __SSPCON2bits_t;
3773 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits;
3775 #define _SSPCON2_SEN 0x01
3776 #define _SSPCON2_RSEN 0x02
3777 #define _SSPCON2_PEN 0x04
3778 #define _SSPCON2_RCEN 0x08
3779 #define _SSPCON2_ACKEN 0x10
3780 #define _SSPCON2_ACKDT 0x20
3781 #define _SSPCON2_ACKSTAT 0x40
3782 #define _SSPCON2_GCEN 0x80
3784 //==============================================================================
3787 //==============================================================================
3788 // SSP1CON3 Bits
3790 extern __at(0x0217) __sfr SSP1CON3;
3792 typedef struct
3794 unsigned DHEN : 1;
3795 unsigned AHEN : 1;
3796 unsigned SBCDE : 1;
3797 unsigned SDAHT : 1;
3798 unsigned BOEN : 1;
3799 unsigned SCIE : 1;
3800 unsigned PCIE : 1;
3801 unsigned ACKTIM : 1;
3802 } __SSP1CON3bits_t;
3804 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits;
3806 #define _DHEN 0x01
3807 #define _AHEN 0x02
3808 #define _SBCDE 0x04
3809 #define _SDAHT 0x08
3810 #define _BOEN 0x10
3811 #define _SCIE 0x20
3812 #define _PCIE 0x40
3813 #define _ACKTIM 0x80
3815 //==============================================================================
3818 //==============================================================================
3819 // SSPCON3 Bits
3821 extern __at(0x0217) __sfr SSPCON3;
3823 typedef struct
3825 unsigned DHEN : 1;
3826 unsigned AHEN : 1;
3827 unsigned SBCDE : 1;
3828 unsigned SDAHT : 1;
3829 unsigned BOEN : 1;
3830 unsigned SCIE : 1;
3831 unsigned PCIE : 1;
3832 unsigned ACKTIM : 1;
3833 } __SSPCON3bits_t;
3835 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits;
3837 #define _SSPCON3_DHEN 0x01
3838 #define _SSPCON3_AHEN 0x02
3839 #define _SSPCON3_SBCDE 0x04
3840 #define _SSPCON3_SDAHT 0x08
3841 #define _SSPCON3_BOEN 0x10
3842 #define _SSPCON3_SCIE 0x20
3843 #define _SSPCON3_PCIE 0x40
3844 #define _SSPCON3_ACKTIM 0x80
3846 //==============================================================================
3849 //==============================================================================
3850 // ODCONA Bits
3852 extern __at(0x028C) __sfr ODCONA;
3854 typedef struct
3856 unsigned ODCONA0 : 1;
3857 unsigned ODCONA1 : 1;
3858 unsigned ODCONA2 : 1;
3859 unsigned ODCONA3 : 1;
3860 unsigned ODCONA4 : 1;
3861 unsigned ODCONA5 : 1;
3862 unsigned ODCONA6 : 1;
3863 unsigned ODCONA7 : 1;
3864 } __ODCONAbits_t;
3866 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits;
3868 #define _ODCONA0 0x01
3869 #define _ODCONA1 0x02
3870 #define _ODCONA2 0x04
3871 #define _ODCONA3 0x08
3872 #define _ODCONA4 0x10
3873 #define _ODCONA5 0x20
3874 #define _ODCONA6 0x40
3875 #define _ODCONA7 0x80
3877 //==============================================================================
3880 //==============================================================================
3881 // ODCONB Bits
3883 extern __at(0x028D) __sfr ODCONB;
3885 typedef struct
3887 unsigned ODCONB0 : 1;
3888 unsigned ODCONB1 : 1;
3889 unsigned ODCONB2 : 1;
3890 unsigned ODCONB3 : 1;
3891 unsigned ODCONB4 : 1;
3892 unsigned ODCONB5 : 1;
3893 unsigned ODCONB6 : 1;
3894 unsigned ODCONB7 : 1;
3895 } __ODCONBbits_t;
3897 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits;
3899 #define _ODCONB0 0x01
3900 #define _ODCONB1 0x02
3901 #define _ODCONB2 0x04
3902 #define _ODCONB3 0x08
3903 #define _ODCONB4 0x10
3904 #define _ODCONB5 0x20
3905 #define _ODCONB6 0x40
3906 #define _ODCONB7 0x80
3908 //==============================================================================
3911 //==============================================================================
3912 // ODCONC Bits
3914 extern __at(0x028E) __sfr ODCONC;
3916 typedef struct
3918 unsigned ODCONC0 : 1;
3919 unsigned ODCONC1 : 1;
3920 unsigned ODCONC2 : 1;
3921 unsigned ODCONC3 : 1;
3922 unsigned ODCONC4 : 1;
3923 unsigned ODCONC5 : 1;
3924 unsigned ODCONC6 : 1;
3925 unsigned ODCONC7 : 1;
3926 } __ODCONCbits_t;
3928 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits;
3930 #define _ODCONC0 0x01
3931 #define _ODCONC1 0x02
3932 #define _ODCONC2 0x04
3933 #define _ODCONC3 0x08
3934 #define _ODCONC4 0x10
3935 #define _ODCONC5 0x20
3936 #define _ODCONC6 0x40
3937 #define _ODCONC7 0x80
3939 //==============================================================================
3942 //==============================================================================
3943 // ODCOND Bits
3945 extern __at(0x028F) __sfr ODCOND;
3947 typedef struct
3949 unsigned ODCOND0 : 1;
3950 unsigned ODCOND1 : 1;
3951 unsigned ODCOND2 : 1;
3952 unsigned ODCOND3 : 1;
3953 unsigned ODCOND4 : 1;
3954 unsigned ODCOND5 : 1;
3955 unsigned ODCOND6 : 1;
3956 unsigned ODCOND7 : 1;
3957 } __ODCONDbits_t;
3959 extern __at(0x028F) volatile __ODCONDbits_t ODCONDbits;
3961 #define _ODCOND0 0x01
3962 #define _ODCOND1 0x02
3963 #define _ODCOND2 0x04
3964 #define _ODCOND3 0x08
3965 #define _ODCOND4 0x10
3966 #define _ODCOND5 0x20
3967 #define _ODCOND6 0x40
3968 #define _ODCOND7 0x80
3970 //==============================================================================
3973 //==============================================================================
3974 // ODCONE Bits
3976 extern __at(0x0290) __sfr ODCONE;
3978 typedef union
3980 struct
3982 unsigned ODCONE0 : 1;
3983 unsigned ODCONE1 : 1;
3984 unsigned ODCONE2 : 1;
3985 unsigned : 1;
3986 unsigned : 1;
3987 unsigned : 1;
3988 unsigned : 1;
3989 unsigned : 1;
3992 struct
3994 unsigned ODCONE : 3;
3995 unsigned : 5;
3997 } __ODCONEbits_t;
3999 extern __at(0x0290) volatile __ODCONEbits_t ODCONEbits;
4001 #define _ODCONE0 0x01
4002 #define _ODCONE1 0x02
4003 #define _ODCONE2 0x04
4005 //==============================================================================
4007 extern __at(0x0291) __sfr CCPR1;
4008 extern __at(0x0291) __sfr CCPR1L;
4009 extern __at(0x0292) __sfr CCPR1H;
4011 //==============================================================================
4012 // CCP1CON Bits
4014 extern __at(0x0293) __sfr CCP1CON;
4016 typedef union
4018 struct
4020 unsigned CCP1M0 : 1;
4021 unsigned CCP1M1 : 1;
4022 unsigned CCP1M2 : 1;
4023 unsigned CCP1M3 : 1;
4024 unsigned DC1B0 : 1;
4025 unsigned DC1B1 : 1;
4026 unsigned : 1;
4027 unsigned : 1;
4030 struct
4032 unsigned CCP1M : 4;
4033 unsigned : 4;
4036 struct
4038 unsigned : 4;
4039 unsigned DC1B : 2;
4040 unsigned : 2;
4042 } __CCP1CONbits_t;
4044 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits;
4046 #define _CCP1M0 0x01
4047 #define _CCP1M1 0x02
4048 #define _CCP1M2 0x04
4049 #define _CCP1M3 0x08
4050 #define _DC1B0 0x10
4051 #define _DC1B1 0x20
4053 //==============================================================================
4055 extern __at(0x0298) __sfr CCPR2;
4056 extern __at(0x0298) __sfr CCPR2L;
4057 extern __at(0x0299) __sfr CCPR2H;
4059 //==============================================================================
4060 // CCP2CON Bits
4062 extern __at(0x029A) __sfr CCP2CON;
4064 typedef union
4066 struct
4068 unsigned CCP2M0 : 1;
4069 unsigned CCP2M1 : 1;
4070 unsigned CCP2M2 : 1;
4071 unsigned CCP2M3 : 1;
4072 unsigned DC2B0 : 1;
4073 unsigned DC2B1 : 1;
4074 unsigned : 1;
4075 unsigned : 1;
4078 struct
4080 unsigned CCP2M : 4;
4081 unsigned : 4;
4084 struct
4086 unsigned : 4;
4087 unsigned DC2B : 2;
4088 unsigned : 2;
4090 } __CCP2CONbits_t;
4092 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits;
4094 #define _CCP2M0 0x01
4095 #define _CCP2M1 0x02
4096 #define _CCP2M2 0x04
4097 #define _CCP2M3 0x08
4098 #define _DC2B0 0x10
4099 #define _DC2B1 0x20
4101 //==============================================================================
4104 //==============================================================================
4105 // SLRCONA Bits
4107 extern __at(0x030C) __sfr SLRCONA;
4109 typedef struct
4111 unsigned SLRCONA0 : 1;
4112 unsigned SLRCONA1 : 1;
4113 unsigned SLRCONA2 : 1;
4114 unsigned SLRCONA3 : 1;
4115 unsigned SLRCONA4 : 1;
4116 unsigned SLRCONA5 : 1;
4117 unsigned SLRCONA6 : 1;
4118 unsigned SLRCONA7 : 1;
4119 } __SLRCONAbits_t;
4121 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits;
4123 #define _SLRCONA0 0x01
4124 #define _SLRCONA1 0x02
4125 #define _SLRCONA2 0x04
4126 #define _SLRCONA3 0x08
4127 #define _SLRCONA4 0x10
4128 #define _SLRCONA5 0x20
4129 #define _SLRCONA6 0x40
4130 #define _SLRCONA7 0x80
4132 //==============================================================================
4135 //==============================================================================
4136 // SLRCONB Bits
4138 extern __at(0x030D) __sfr SLRCONB;
4140 typedef struct
4142 unsigned SLRCONB0 : 1;
4143 unsigned SLRCONB1 : 1;
4144 unsigned SLRCONB2 : 1;
4145 unsigned SLRCONB3 : 1;
4146 unsigned SLRCONB4 : 1;
4147 unsigned SLRCONB5 : 1;
4148 unsigned SLRCONB6 : 1;
4149 unsigned SLRCONB7 : 1;
4150 } __SLRCONBbits_t;
4152 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits;
4154 #define _SLRCONB0 0x01
4155 #define _SLRCONB1 0x02
4156 #define _SLRCONB2 0x04
4157 #define _SLRCONB3 0x08
4158 #define _SLRCONB4 0x10
4159 #define _SLRCONB5 0x20
4160 #define _SLRCONB6 0x40
4161 #define _SLRCONB7 0x80
4163 //==============================================================================
4166 //==============================================================================
4167 // SLRCONC Bits
4169 extern __at(0x030E) __sfr SLRCONC;
4171 typedef struct
4173 unsigned SLRCONC0 : 1;
4174 unsigned SLRCONC1 : 1;
4175 unsigned SLRCONC2 : 1;
4176 unsigned SLRCONC3 : 1;
4177 unsigned SLRCONC4 : 1;
4178 unsigned SLRCONC5 : 1;
4179 unsigned SLRCONC6 : 1;
4180 unsigned SLRCONC7 : 1;
4181 } __SLRCONCbits_t;
4183 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits;
4185 #define _SLRCONC0 0x01
4186 #define _SLRCONC1 0x02
4187 #define _SLRCONC2 0x04
4188 #define _SLRCONC3 0x08
4189 #define _SLRCONC4 0x10
4190 #define _SLRCONC5 0x20
4191 #define _SLRCONC6 0x40
4192 #define _SLRCONC7 0x80
4194 //==============================================================================
4197 //==============================================================================
4198 // SLRCOND Bits
4200 extern __at(0x030F) __sfr SLRCOND;
4202 typedef struct
4204 unsigned SLRCOND0 : 1;
4205 unsigned SLRCOND1 : 1;
4206 unsigned SLRCOND2 : 1;
4207 unsigned SLRCOND3 : 1;
4208 unsigned SLRCOND4 : 1;
4209 unsigned SLRCOND5 : 1;
4210 unsigned SLRCOND6 : 1;
4211 unsigned SLRCOND7 : 1;
4212 } __SLRCONDbits_t;
4214 extern __at(0x030F) volatile __SLRCONDbits_t SLRCONDbits;
4216 #define _SLRCOND0 0x01
4217 #define _SLRCOND1 0x02
4218 #define _SLRCOND2 0x04
4219 #define _SLRCOND3 0x08
4220 #define _SLRCOND4 0x10
4221 #define _SLRCOND5 0x20
4222 #define _SLRCOND6 0x40
4223 #define _SLRCOND7 0x80
4225 //==============================================================================
4228 //==============================================================================
4229 // SLRCONE Bits
4231 extern __at(0x0310) __sfr SLRCONE;
4233 typedef union
4235 struct
4237 unsigned SLRCONE0 : 1;
4238 unsigned SLRCONE1 : 1;
4239 unsigned SLRCONE2 : 1;
4240 unsigned : 1;
4241 unsigned : 1;
4242 unsigned : 1;
4243 unsigned : 1;
4244 unsigned : 1;
4247 struct
4249 unsigned SLRCONE : 3;
4250 unsigned : 5;
4252 } __SLRCONEbits_t;
4254 extern __at(0x0310) volatile __SLRCONEbits_t SLRCONEbits;
4256 #define _SLRCONE0 0x01
4257 #define _SLRCONE1 0x02
4258 #define _SLRCONE2 0x04
4260 //==============================================================================
4262 extern __at(0x0311) __sfr CCPR3;
4263 extern __at(0x0311) __sfr CCPR3L;
4264 extern __at(0x0312) __sfr CCPR3H;
4266 //==============================================================================
4267 // CCP3CON Bits
4269 extern __at(0x0313) __sfr CCP3CON;
4271 typedef union
4273 struct
4275 unsigned CCP3M0 : 1;
4276 unsigned CCP3M1 : 1;
4277 unsigned CCP3M2 : 1;
4278 unsigned CCP3M3 : 1;
4279 unsigned DC3B0 : 1;
4280 unsigned DC3B1 : 1;
4281 unsigned : 1;
4282 unsigned : 1;
4285 struct
4287 unsigned CCP3M : 4;
4288 unsigned : 4;
4291 struct
4293 unsigned : 4;
4294 unsigned DC3B : 2;
4295 unsigned : 2;
4297 } __CCP3CONbits_t;
4299 extern __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits;
4301 #define _CCP3M0 0x01
4302 #define _CCP3M1 0x02
4303 #define _CCP3M2 0x04
4304 #define _CCP3M3 0x08
4305 #define _DC3B0 0x10
4306 #define _DC3B1 0x20
4308 //==============================================================================
4311 //==============================================================================
4312 // INLVLA Bits
4314 extern __at(0x038C) __sfr INLVLA;
4316 typedef struct
4318 unsigned INLVLA0 : 1;
4319 unsigned INLVLA1 : 1;
4320 unsigned INLVLA2 : 1;
4321 unsigned INLVLA3 : 1;
4322 unsigned INLVLA4 : 1;
4323 unsigned INLVLA5 : 1;
4324 unsigned INLVLA6 : 1;
4325 unsigned INLVLA7 : 1;
4326 } __INLVLAbits_t;
4328 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits;
4330 #define _INLVLA0 0x01
4331 #define _INLVLA1 0x02
4332 #define _INLVLA2 0x04
4333 #define _INLVLA3 0x08
4334 #define _INLVLA4 0x10
4335 #define _INLVLA5 0x20
4336 #define _INLVLA6 0x40
4337 #define _INLVLA7 0x80
4339 //==============================================================================
4342 //==============================================================================
4343 // INLVLB Bits
4345 extern __at(0x038D) __sfr INLVLB;
4347 typedef struct
4349 unsigned INLVLB0 : 1;
4350 unsigned INLVLB1 : 1;
4351 unsigned INLVLB2 : 1;
4352 unsigned INLVLB3 : 1;
4353 unsigned INLVLB4 : 1;
4354 unsigned INLVLB5 : 1;
4355 unsigned INLVLB6 : 1;
4356 unsigned INLVLB7 : 1;
4357 } __INLVLBbits_t;
4359 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits;
4361 #define _INLVLB0 0x01
4362 #define _INLVLB1 0x02
4363 #define _INLVLB2 0x04
4364 #define _INLVLB3 0x08
4365 #define _INLVLB4 0x10
4366 #define _INLVLB5 0x20
4367 #define _INLVLB6 0x40
4368 #define _INLVLB7 0x80
4370 //==============================================================================
4373 //==============================================================================
4374 // INLVLC Bits
4376 extern __at(0x038E) __sfr INLVLC;
4378 typedef struct
4380 unsigned INLVLC0 : 1;
4381 unsigned INLVLC1 : 1;
4382 unsigned INLVLC2 : 1;
4383 unsigned INLVLC3 : 1;
4384 unsigned INLVLC4 : 1;
4385 unsigned INLVLC5 : 1;
4386 unsigned INLVLC6 : 1;
4387 unsigned INLVLC7 : 1;
4388 } __INLVLCbits_t;
4390 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits;
4392 #define _INLVLC0 0x01
4393 #define _INLVLC1 0x02
4394 #define _INLVLC2 0x04
4395 #define _INLVLC3 0x08
4396 #define _INLVLC4 0x10
4397 #define _INLVLC5 0x20
4398 #define _INLVLC6 0x40
4399 #define _INLVLC7 0x80
4401 //==============================================================================
4404 //==============================================================================
4405 // INLVLD Bits
4407 extern __at(0x038F) __sfr INLVLD;
4409 typedef struct
4411 unsigned INLVLD0 : 1;
4412 unsigned INLVLD1 : 1;
4413 unsigned INLVLD2 : 1;
4414 unsigned INLVLD3 : 1;
4415 unsigned INLVLD4 : 1;
4416 unsigned INLVLD5 : 1;
4417 unsigned INLVLD6 : 1;
4418 unsigned INLVLD7 : 1;
4419 } __INLVLDbits_t;
4421 extern __at(0x038F) volatile __INLVLDbits_t INLVLDbits;
4423 #define _INLVLD0 0x01
4424 #define _INLVLD1 0x02
4425 #define _INLVLD2 0x04
4426 #define _INLVLD3 0x08
4427 #define _INLVLD4 0x10
4428 #define _INLVLD5 0x20
4429 #define _INLVLD6 0x40
4430 #define _INLVLD7 0x80
4432 //==============================================================================
4435 //==============================================================================
4436 // INLVLE Bits
4438 extern __at(0x0390) __sfr INLVLE;
4440 typedef union
4442 struct
4444 unsigned INLVLE0 : 1;
4445 unsigned INLVLE1 : 1;
4446 unsigned INLVLE2 : 1;
4447 unsigned INLVLE3 : 1;
4448 unsigned : 1;
4449 unsigned : 1;
4450 unsigned : 1;
4451 unsigned : 1;
4454 struct
4456 unsigned INLVLE : 4;
4457 unsigned : 4;
4459 } __INLVLEbits_t;
4461 extern __at(0x0390) volatile __INLVLEbits_t INLVLEbits;
4463 #define _INLVLE0 0x01
4464 #define _INLVLE1 0x02
4465 #define _INLVLE2 0x04
4466 #define _INLVLE3 0x08
4468 //==============================================================================
4471 //==============================================================================
4472 // IOCAP Bits
4474 extern __at(0x0391) __sfr IOCAP;
4476 typedef struct
4478 unsigned IOCAP0 : 1;
4479 unsigned IOCAP1 : 1;
4480 unsigned IOCAP2 : 1;
4481 unsigned IOCAP3 : 1;
4482 unsigned IOCAP4 : 1;
4483 unsigned IOCAP5 : 1;
4484 unsigned IOCAP6 : 1;
4485 unsigned IOCAP7 : 1;
4486 } __IOCAPbits_t;
4488 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits;
4490 #define _IOCAP0 0x01
4491 #define _IOCAP1 0x02
4492 #define _IOCAP2 0x04
4493 #define _IOCAP3 0x08
4494 #define _IOCAP4 0x10
4495 #define _IOCAP5 0x20
4496 #define _IOCAP6 0x40
4497 #define _IOCAP7 0x80
4499 //==============================================================================
4502 //==============================================================================
4503 // IOCAN Bits
4505 extern __at(0x0392) __sfr IOCAN;
4507 typedef struct
4509 unsigned IOCAN0 : 1;
4510 unsigned IOCAN1 : 1;
4511 unsigned IOCAN2 : 1;
4512 unsigned IOCAN3 : 1;
4513 unsigned IOCAN4 : 1;
4514 unsigned IOCAN5 : 1;
4515 unsigned IOCAN6 : 1;
4516 unsigned IOCAN7 : 1;
4517 } __IOCANbits_t;
4519 extern __at(0x0392) volatile __IOCANbits_t IOCANbits;
4521 #define _IOCAN0 0x01
4522 #define _IOCAN1 0x02
4523 #define _IOCAN2 0x04
4524 #define _IOCAN3 0x08
4525 #define _IOCAN4 0x10
4526 #define _IOCAN5 0x20
4527 #define _IOCAN6 0x40
4528 #define _IOCAN7 0x80
4530 //==============================================================================
4533 //==============================================================================
4534 // IOCAF Bits
4536 extern __at(0x0393) __sfr IOCAF;
4538 typedef struct
4540 unsigned IOCAF0 : 1;
4541 unsigned IOCAF1 : 1;
4542 unsigned IOCAF2 : 1;
4543 unsigned IOCAF3 : 1;
4544 unsigned IOCAF4 : 1;
4545 unsigned IOCAF5 : 1;
4546 unsigned IOCAF6 : 1;
4547 unsigned IOCAF7 : 1;
4548 } __IOCAFbits_t;
4550 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits;
4552 #define _IOCAF0 0x01
4553 #define _IOCAF1 0x02
4554 #define _IOCAF2 0x04
4555 #define _IOCAF3 0x08
4556 #define _IOCAF4 0x10
4557 #define _IOCAF5 0x20
4558 #define _IOCAF6 0x40
4559 #define _IOCAF7 0x80
4561 //==============================================================================
4564 //==============================================================================
4565 // IOCBP Bits
4567 extern __at(0x0394) __sfr IOCBP;
4569 typedef struct
4571 unsigned IOCBP0 : 1;
4572 unsigned IOCBP1 : 1;
4573 unsigned IOCBP2 : 1;
4574 unsigned IOCBP3 : 1;
4575 unsigned IOCBP4 : 1;
4576 unsigned IOCBP5 : 1;
4577 unsigned IOCBP6 : 1;
4578 unsigned IOCBP7 : 1;
4579 } __IOCBPbits_t;
4581 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits;
4583 #define _IOCBP0 0x01
4584 #define _IOCBP1 0x02
4585 #define _IOCBP2 0x04
4586 #define _IOCBP3 0x08
4587 #define _IOCBP4 0x10
4588 #define _IOCBP5 0x20
4589 #define _IOCBP6 0x40
4590 #define _IOCBP7 0x80
4592 //==============================================================================
4595 //==============================================================================
4596 // IOCBN Bits
4598 extern __at(0x0395) __sfr IOCBN;
4600 typedef struct
4602 unsigned IOCBN0 : 1;
4603 unsigned IOCBN1 : 1;
4604 unsigned IOCBN2 : 1;
4605 unsigned IOCBN3 : 1;
4606 unsigned IOCBN4 : 1;
4607 unsigned IOCBN5 : 1;
4608 unsigned IOCBN6 : 1;
4609 unsigned IOCBN7 : 1;
4610 } __IOCBNbits_t;
4612 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits;
4614 #define _IOCBN0 0x01
4615 #define _IOCBN1 0x02
4616 #define _IOCBN2 0x04
4617 #define _IOCBN3 0x08
4618 #define _IOCBN4 0x10
4619 #define _IOCBN5 0x20
4620 #define _IOCBN6 0x40
4621 #define _IOCBN7 0x80
4623 //==============================================================================
4626 //==============================================================================
4627 // IOCBF Bits
4629 extern __at(0x0396) __sfr IOCBF;
4631 typedef struct
4633 unsigned IOCBF0 : 1;
4634 unsigned IOCBF1 : 1;
4635 unsigned IOCBF2 : 1;
4636 unsigned IOCBF3 : 1;
4637 unsigned IOCBF4 : 1;
4638 unsigned IOCBF5 : 1;
4639 unsigned IOCBF6 : 1;
4640 unsigned IOCBF7 : 1;
4641 } __IOCBFbits_t;
4643 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits;
4645 #define _IOCBF0 0x01
4646 #define _IOCBF1 0x02
4647 #define _IOCBF2 0x04
4648 #define _IOCBF3 0x08
4649 #define _IOCBF4 0x10
4650 #define _IOCBF5 0x20
4651 #define _IOCBF6 0x40
4652 #define _IOCBF7 0x80
4654 //==============================================================================
4657 //==============================================================================
4658 // IOCCP Bits
4660 extern __at(0x0397) __sfr IOCCP;
4662 typedef struct
4664 unsigned IOCCP0 : 1;
4665 unsigned IOCCP1 : 1;
4666 unsigned IOCCP2 : 1;
4667 unsigned IOCCP3 : 1;
4668 unsigned IOCCP4 : 1;
4669 unsigned IOCCP5 : 1;
4670 unsigned IOCCP6 : 1;
4671 unsigned IOCCP7 : 1;
4672 } __IOCCPbits_t;
4674 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits;
4676 #define _IOCCP0 0x01
4677 #define _IOCCP1 0x02
4678 #define _IOCCP2 0x04
4679 #define _IOCCP3 0x08
4680 #define _IOCCP4 0x10
4681 #define _IOCCP5 0x20
4682 #define _IOCCP6 0x40
4683 #define _IOCCP7 0x80
4685 //==============================================================================
4688 //==============================================================================
4689 // IOCCN Bits
4691 extern __at(0x0398) __sfr IOCCN;
4693 typedef struct
4695 unsigned IOCCN0 : 1;
4696 unsigned IOCCN1 : 1;
4697 unsigned IOCCN2 : 1;
4698 unsigned IOCCN3 : 1;
4699 unsigned IOCCN4 : 1;
4700 unsigned IOCCN5 : 1;
4701 unsigned IOCCN6 : 1;
4702 unsigned IOCCN7 : 1;
4703 } __IOCCNbits_t;
4705 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits;
4707 #define _IOCCN0 0x01
4708 #define _IOCCN1 0x02
4709 #define _IOCCN2 0x04
4710 #define _IOCCN3 0x08
4711 #define _IOCCN4 0x10
4712 #define _IOCCN5 0x20
4713 #define _IOCCN6 0x40
4714 #define _IOCCN7 0x80
4716 //==============================================================================
4719 //==============================================================================
4720 // IOCCF Bits
4722 extern __at(0x0399) __sfr IOCCF;
4724 typedef struct
4726 unsigned IOCCF0 : 1;
4727 unsigned IOCCF1 : 1;
4728 unsigned IOCCF2 : 1;
4729 unsigned IOCCF3 : 1;
4730 unsigned IOCCF4 : 1;
4731 unsigned IOCCF5 : 1;
4732 unsigned IOCCF6 : 1;
4733 unsigned IOCCF7 : 1;
4734 } __IOCCFbits_t;
4736 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits;
4738 #define _IOCCF0 0x01
4739 #define _IOCCF1 0x02
4740 #define _IOCCF2 0x04
4741 #define _IOCCF3 0x08
4742 #define _IOCCF4 0x10
4743 #define _IOCCF5 0x20
4744 #define _IOCCF6 0x40
4745 #define _IOCCF7 0x80
4747 //==============================================================================
4750 //==============================================================================
4751 // IOCEP Bits
4753 extern __at(0x039D) __sfr IOCEP;
4755 typedef struct
4757 unsigned : 1;
4758 unsigned : 1;
4759 unsigned : 1;
4760 unsigned IOCEP3 : 1;
4761 unsigned : 1;
4762 unsigned : 1;
4763 unsigned : 1;
4764 unsigned : 1;
4765 } __IOCEPbits_t;
4767 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits;
4769 #define _IOCEP3 0x08
4771 //==============================================================================
4774 //==============================================================================
4775 // IOCEN Bits
4777 extern __at(0x039E) __sfr IOCEN;
4779 typedef struct
4781 unsigned : 1;
4782 unsigned : 1;
4783 unsigned : 1;
4784 unsigned IOCEN3 : 1;
4785 unsigned : 1;
4786 unsigned : 1;
4787 unsigned : 1;
4788 unsigned : 1;
4789 } __IOCENbits_t;
4791 extern __at(0x039E) volatile __IOCENbits_t IOCENbits;
4793 #define _IOCEN3 0x08
4795 //==============================================================================
4798 //==============================================================================
4799 // IOCEF Bits
4801 extern __at(0x039F) __sfr IOCEF;
4803 typedef struct
4805 unsigned : 1;
4806 unsigned : 1;
4807 unsigned : 1;
4808 unsigned IOCEF3 : 1;
4809 unsigned : 1;
4810 unsigned : 1;
4811 unsigned : 1;
4812 unsigned : 1;
4813 } __IOCEFbits_t;
4815 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits;
4817 #define _IOCEF3 0x08
4819 //==============================================================================
4822 //==============================================================================
4823 // OPA1CON Bits
4825 extern __at(0x0511) __sfr OPA1CON;
4827 typedef union
4829 struct
4831 unsigned OPA1PCH0 : 1;
4832 unsigned OPA1PCH1 : 1;
4833 unsigned OPA1PCH2 : 1;
4834 unsigned : 1;
4835 unsigned : 1;
4836 unsigned : 1;
4837 unsigned OPA1SP : 1;
4838 unsigned OPA1EN : 1;
4841 struct
4843 unsigned PCH0 : 1;
4844 unsigned PCH1 : 1;
4845 unsigned PCH2 : 1;
4846 unsigned : 1;
4847 unsigned : 1;
4848 unsigned : 1;
4849 unsigned SP : 1;
4850 unsigned EN : 1;
4853 struct
4855 unsigned OPA1PCH : 3;
4856 unsigned : 5;
4859 struct
4861 unsigned PCH : 3;
4862 unsigned : 5;
4864 } __OPA1CONbits_t;
4866 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits;
4868 #define _OPA1PCH0 0x01
4869 #define _PCH0 0x01
4870 #define _OPA1PCH1 0x02
4871 #define _PCH1 0x02
4872 #define _OPA1PCH2 0x04
4873 #define _PCH2 0x04
4874 #define _OPA1SP 0x40
4875 #define _SP 0x40
4876 #define _OPA1EN 0x80
4877 #define _EN 0x80
4879 //==============================================================================
4882 //==============================================================================
4883 // OPA2CON Bits
4885 extern __at(0x0513) __sfr OPA2CON;
4887 typedef union
4889 struct
4891 unsigned OPA2PCH0 : 1;
4892 unsigned OPA2PCH1 : 1;
4893 unsigned OPA2PCH2 : 1;
4894 unsigned : 1;
4895 unsigned : 1;
4896 unsigned : 1;
4897 unsigned OPA2SP : 1;
4898 unsigned OPA2EN : 1;
4901 struct
4903 unsigned PCH0 : 1;
4904 unsigned PCH1 : 1;
4905 unsigned PCH2 : 1;
4906 unsigned : 1;
4907 unsigned : 1;
4908 unsigned : 1;
4909 unsigned SP : 1;
4910 unsigned EN : 1;
4913 struct
4915 unsigned OPA2PCH : 3;
4916 unsigned : 5;
4919 struct
4921 unsigned PCH : 3;
4922 unsigned : 5;
4924 } __OPA2CONbits_t;
4926 extern __at(0x0513) volatile __OPA2CONbits_t OPA2CONbits;
4928 #define _OPA2CON_OPA2PCH0 0x01
4929 #define _OPA2CON_PCH0 0x01
4930 #define _OPA2CON_OPA2PCH1 0x02
4931 #define _OPA2CON_PCH1 0x02
4932 #define _OPA2CON_OPA2PCH2 0x04
4933 #define _OPA2CON_PCH2 0x04
4934 #define _OPA2CON_OPA2SP 0x40
4935 #define _OPA2CON_SP 0x40
4936 #define _OPA2CON_OPA2EN 0x80
4937 #define _OPA2CON_EN 0x80
4939 //==============================================================================
4942 //==============================================================================
4943 // OPA3CON Bits
4945 extern __at(0x0515) __sfr OPA3CON;
4947 typedef union
4949 struct
4951 unsigned OPA3PCH0 : 1;
4952 unsigned OPA3PCH1 : 1;
4953 unsigned OPA3PCH2 : 1;
4954 unsigned : 1;
4955 unsigned : 1;
4956 unsigned : 1;
4957 unsigned OPA3SP : 1;
4958 unsigned OPA3EN : 1;
4961 struct
4963 unsigned PCH0 : 1;
4964 unsigned PCH1 : 1;
4965 unsigned PCH2 : 1;
4966 unsigned : 1;
4967 unsigned : 1;
4968 unsigned : 1;
4969 unsigned SP : 1;
4970 unsigned EN : 1;
4973 struct
4975 unsigned PCH : 3;
4976 unsigned : 5;
4979 struct
4981 unsigned OPA3PCH : 3;
4982 unsigned : 5;
4984 } __OPA3CONbits_t;
4986 extern __at(0x0515) volatile __OPA3CONbits_t OPA3CONbits;
4988 #define _OPA3CON_OPA3PCH0 0x01
4989 #define _OPA3CON_PCH0 0x01
4990 #define _OPA3CON_OPA3PCH1 0x02
4991 #define _OPA3CON_PCH1 0x02
4992 #define _OPA3CON_OPA3PCH2 0x04
4993 #define _OPA3CON_PCH2 0x04
4994 #define _OPA3CON_OPA3SP 0x40
4995 #define _OPA3CON_SP 0x40
4996 #define _OPA3CON_OPA3EN 0x80
4997 #define _OPA3CON_EN 0x80
4999 //==============================================================================
5002 //==============================================================================
5003 // CLKRCON Bits
5005 extern __at(0x051A) __sfr CLKRCON;
5007 typedef union
5009 struct
5011 unsigned CLKRDIV0 : 1;
5012 unsigned CLKRDIV1 : 1;
5013 unsigned CLKRDIV2 : 1;
5014 unsigned CLKRDC0 : 1;
5015 unsigned CLKRDC1 : 1;
5016 unsigned CLKRSLR : 1;
5017 unsigned CLKROE : 1;
5018 unsigned CLKREN : 1;
5021 struct
5023 unsigned CLKRDIV : 3;
5024 unsigned : 5;
5027 struct
5029 unsigned : 3;
5030 unsigned CLKRDC : 2;
5031 unsigned : 3;
5033 } __CLKRCONbits_t;
5035 extern __at(0x051A) volatile __CLKRCONbits_t CLKRCONbits;
5037 #define _CLKRDIV0 0x01
5038 #define _CLKRDIV1 0x02
5039 #define _CLKRDIV2 0x04
5040 #define _CLKRDC0 0x08
5041 #define _CLKRDC1 0x10
5042 #define _CLKRSLR 0x20
5043 #define _CLKROE 0x40
5044 #define _CLKREN 0x80
5046 //==============================================================================
5049 //==============================================================================
5050 // DAC2CON0 Bits
5052 extern __at(0x0591) __sfr DAC2CON0;
5054 typedef struct
5056 unsigned : 1;
5057 unsigned : 1;
5058 unsigned : 1;
5059 unsigned : 1;
5060 unsigned DAC2OE2 : 1;
5061 unsigned DAC2OE1 : 1;
5062 unsigned : 1;
5063 unsigned DAC2EN : 1;
5064 } __DAC2CON0bits_t;
5066 extern __at(0x0591) volatile __DAC2CON0bits_t DAC2CON0bits;
5068 #define _DAC2OE2 0x10
5069 #define _DAC2OE1 0x20
5070 #define _DAC2EN 0x80
5072 //==============================================================================
5074 extern __at(0x0592) __sfr DAC2CON1;
5075 extern __at(0x0592) __sfr DAC2REF;
5077 //==============================================================================
5078 // DAC3CON0 Bits
5080 extern __at(0x0593) __sfr DAC3CON0;
5082 typedef struct
5084 unsigned : 1;
5085 unsigned : 1;
5086 unsigned : 1;
5087 unsigned : 1;
5088 unsigned DAC3OE2 : 1;
5089 unsigned DAC3OE1 : 1;
5090 unsigned : 1;
5091 unsigned DAC3EN : 1;
5092 } __DAC3CON0bits_t;
5094 extern __at(0x0593) volatile __DAC3CON0bits_t DAC3CON0bits;
5096 #define _DAC3OE2 0x10
5097 #define _DAC3OE1 0x20
5098 #define _DAC3EN 0x80
5100 //==============================================================================
5102 extern __at(0x0594) __sfr DAC3CON1;
5103 extern __at(0x0594) __sfr DAC3REF;
5105 //==============================================================================
5106 // DAC4CON0 Bits
5108 extern __at(0x0595) __sfr DAC4CON0;
5110 typedef struct
5112 unsigned : 1;
5113 unsigned : 1;
5114 unsigned : 1;
5115 unsigned : 1;
5116 unsigned DAC4OE2 : 1;
5117 unsigned DAC4OE1 : 1;
5118 unsigned : 1;
5119 unsigned DAC4EN : 1;
5120 } __DAC4CON0bits_t;
5122 extern __at(0x0595) volatile __DAC4CON0bits_t DAC4CON0bits;
5124 #define _DAC4OE2 0x10
5125 #define _DAC4OE1 0x20
5126 #define _DAC4EN 0x80
5128 //==============================================================================
5130 extern __at(0x0596) __sfr DAC4CON1;
5131 extern __at(0x0596) __sfr DAC4REF;
5133 //==============================================================================
5134 // PSMC1CON Bits
5136 extern __at(0x0E91) __sfr PSMC1CON;
5138 typedef union
5140 struct
5142 unsigned P1MODE0 : 1;
5143 unsigned P1MODE1 : 1;
5144 unsigned P1MODE2 : 1;
5145 unsigned P1MODE3 : 1;
5146 unsigned P1DBRE : 1;
5147 unsigned P1DBFE : 1;
5148 unsigned PSMC1LD : 1;
5149 unsigned PSMC1EN : 1;
5152 struct
5154 unsigned P1MODE : 4;
5155 unsigned : 4;
5157 } __PSMC1CONbits_t;
5159 extern __at(0x0E91) volatile __PSMC1CONbits_t PSMC1CONbits;
5161 #define _P1MODE0 0x01
5162 #define _P1MODE1 0x02
5163 #define _P1MODE2 0x04
5164 #define _P1MODE3 0x08
5165 #define _P1DBRE 0x10
5166 #define _P1DBFE 0x20
5167 #define _PSMC1LD 0x40
5168 #define _PSMC1EN 0x80
5170 //==============================================================================
5173 //==============================================================================
5174 // PSMC1MDL Bits
5176 extern __at(0x0E92) __sfr PSMC1MDL;
5178 typedef union
5180 struct
5182 unsigned P1MSRC0 : 1;
5183 unsigned P1MSRC1 : 1;
5184 unsigned P1MSRC2 : 1;
5185 unsigned P1MSRC3 : 1;
5186 unsigned : 1;
5187 unsigned P1MDLBIT : 1;
5188 unsigned P1MDLPOL : 1;
5189 unsigned P1MDLEN : 1;
5192 struct
5194 unsigned P1MSRC : 4;
5195 unsigned : 4;
5197 } __PSMC1MDLbits_t;
5199 extern __at(0x0E92) volatile __PSMC1MDLbits_t PSMC1MDLbits;
5201 #define _P1MSRC0 0x01
5202 #define _P1MSRC1 0x02
5203 #define _P1MSRC2 0x04
5204 #define _P1MSRC3 0x08
5205 #define _P1MDLBIT 0x20
5206 #define _P1MDLPOL 0x40
5207 #define _P1MDLEN 0x80
5209 //==============================================================================
5212 //==============================================================================
5213 // PSMC1SYNC Bits
5215 extern __at(0x0E93) __sfr PSMC1SYNC;
5217 typedef union
5219 struct
5221 unsigned P1SYNC0 : 1;
5222 unsigned P1SYNC1 : 1;
5223 unsigned P1SYNC2 : 1;
5224 unsigned : 1;
5225 unsigned : 1;
5226 unsigned P1DCPOL : 1;
5227 unsigned P1PRPOL : 1;
5228 unsigned P1POFST : 1;
5231 struct
5233 unsigned P1SYNC : 3;
5234 unsigned : 5;
5236 } __PSMC1SYNCbits_t;
5238 extern __at(0x0E93) volatile __PSMC1SYNCbits_t PSMC1SYNCbits;
5240 #define _P1SYNC0 0x01
5241 #define _P1SYNC1 0x02
5242 #define _P1SYNC2 0x04
5243 #define _P1DCPOL 0x20
5244 #define _P1PRPOL 0x40
5245 #define _P1POFST 0x80
5247 //==============================================================================
5250 //==============================================================================
5251 // PSMC1CLK Bits
5253 extern __at(0x0E94) __sfr PSMC1CLK;
5255 typedef union
5257 struct
5259 unsigned P1CSRC0 : 1;
5260 unsigned P1CSRC1 : 1;
5261 unsigned : 1;
5262 unsigned : 1;
5263 unsigned P1CPRE0 : 1;
5264 unsigned P1CPRE1 : 1;
5265 unsigned : 1;
5266 unsigned : 1;
5269 struct
5271 unsigned P1CSRC : 2;
5272 unsigned : 6;
5275 struct
5277 unsigned : 4;
5278 unsigned P1CPRE : 2;
5279 unsigned : 2;
5281 } __PSMC1CLKbits_t;
5283 extern __at(0x0E94) volatile __PSMC1CLKbits_t PSMC1CLKbits;
5285 #define _P1CSRC0 0x01
5286 #define _P1CSRC1 0x02
5287 #define _P1CPRE0 0x10
5288 #define _P1CPRE1 0x20
5290 //==============================================================================
5293 //==============================================================================
5294 // PSMC1OEN Bits
5296 extern __at(0x0E95) __sfr PSMC1OEN;
5298 typedef struct
5300 unsigned P1OEA : 1;
5301 unsigned P1OEB : 1;
5302 unsigned P1OEC : 1;
5303 unsigned P1OED : 1;
5304 unsigned P1OEE : 1;
5305 unsigned P1OEF : 1;
5306 unsigned : 1;
5307 unsigned : 1;
5308 } __PSMC1OENbits_t;
5310 extern __at(0x0E95) volatile __PSMC1OENbits_t PSMC1OENbits;
5312 #define _P1OEA 0x01
5313 #define _P1OEB 0x02
5314 #define _P1OEC 0x04
5315 #define _P1OED 0x08
5316 #define _P1OEE 0x10
5317 #define _P1OEF 0x20
5319 //==============================================================================
5322 //==============================================================================
5323 // PSMC1POL Bits
5325 extern __at(0x0E96) __sfr PSMC1POL;
5327 typedef struct
5329 unsigned P1POLA : 1;
5330 unsigned P1POLB : 1;
5331 unsigned P1POLC : 1;
5332 unsigned P1POLD : 1;
5333 unsigned P1POLE : 1;
5334 unsigned P1POLF : 1;
5335 unsigned P1INPOL : 1;
5336 unsigned : 1;
5337 } __PSMC1POLbits_t;
5339 extern __at(0x0E96) volatile __PSMC1POLbits_t PSMC1POLbits;
5341 #define _P1POLA 0x01
5342 #define _P1POLB 0x02
5343 #define _P1POLC 0x04
5344 #define _P1POLD 0x08
5345 #define _P1POLE 0x10
5346 #define _P1POLF 0x20
5347 #define _P1INPOL 0x40
5349 //==============================================================================
5352 //==============================================================================
5353 // PSMC1BLNK Bits
5355 extern __at(0x0E97) __sfr PSMC1BLNK;
5357 typedef union
5359 struct
5361 unsigned P1REBM0 : 1;
5362 unsigned P1REBM1 : 1;
5363 unsigned : 1;
5364 unsigned : 1;
5365 unsigned P1FEBM0 : 1;
5366 unsigned P1FEBM1 : 1;
5367 unsigned : 1;
5368 unsigned : 1;
5371 struct
5373 unsigned P1REBM : 2;
5374 unsigned : 6;
5377 struct
5379 unsigned : 4;
5380 unsigned P1FEBM : 2;
5381 unsigned : 2;
5383 } __PSMC1BLNKbits_t;
5385 extern __at(0x0E97) volatile __PSMC1BLNKbits_t PSMC1BLNKbits;
5387 #define _P1REBM0 0x01
5388 #define _P1REBM1 0x02
5389 #define _P1FEBM0 0x10
5390 #define _P1FEBM1 0x20
5392 //==============================================================================
5395 //==============================================================================
5396 // PSMC1REBS Bits
5398 extern __at(0x0E98) __sfr PSMC1REBS;
5400 typedef struct
5402 unsigned : 1;
5403 unsigned P1REBSC1 : 1;
5404 unsigned P1REBSC2 : 1;
5405 unsigned P1REBSC3 : 1;
5406 unsigned P1REBSC4 : 1;
5407 unsigned : 1;
5408 unsigned : 1;
5409 unsigned P1REBSIN : 1;
5410 } __PSMC1REBSbits_t;
5412 extern __at(0x0E98) volatile __PSMC1REBSbits_t PSMC1REBSbits;
5414 #define _P1REBSC1 0x02
5415 #define _P1REBSC2 0x04
5416 #define _P1REBSC3 0x08
5417 #define _P1REBSC4 0x10
5418 #define _P1REBSIN 0x80
5420 //==============================================================================
5423 //==============================================================================
5424 // PSMC1FEBS Bits
5426 extern __at(0x0E99) __sfr PSMC1FEBS;
5428 typedef struct
5430 unsigned : 1;
5431 unsigned P1FEBSC1 : 1;
5432 unsigned P1FEBSC2 : 1;
5433 unsigned P1FEBSC3 : 1;
5434 unsigned P1FEBSC4 : 1;
5435 unsigned : 1;
5436 unsigned : 1;
5437 unsigned P1FEBSIN : 1;
5438 } __PSMC1FEBSbits_t;
5440 extern __at(0x0E99) volatile __PSMC1FEBSbits_t PSMC1FEBSbits;
5442 #define _P1FEBSC1 0x02
5443 #define _P1FEBSC2 0x04
5444 #define _P1FEBSC3 0x08
5445 #define _P1FEBSC4 0x10
5446 #define _P1FEBSIN 0x80
5448 //==============================================================================
5451 //==============================================================================
5452 // PSMC1PHS Bits
5454 extern __at(0x0E9A) __sfr PSMC1PHS;
5456 typedef struct
5458 unsigned P1PHST : 1;
5459 unsigned P1PHSC1 : 1;
5460 unsigned P1PHSC2 : 1;
5461 unsigned P1PHSC3 : 1;
5462 unsigned P1PHSC4 : 1;
5463 unsigned : 1;
5464 unsigned : 1;
5465 unsigned P1PHSIN : 1;
5466 } __PSMC1PHSbits_t;
5468 extern __at(0x0E9A) volatile __PSMC1PHSbits_t PSMC1PHSbits;
5470 #define _P1PHST 0x01
5471 #define _P1PHSC1 0x02
5472 #define _P1PHSC2 0x04
5473 #define _P1PHSC3 0x08
5474 #define _P1PHSC4 0x10
5475 #define _P1PHSIN 0x80
5477 //==============================================================================
5480 //==============================================================================
5481 // PSMC1DCS Bits
5483 extern __at(0x0E9B) __sfr PSMC1DCS;
5485 typedef struct
5487 unsigned P1DCST : 1;
5488 unsigned P1DCSC1 : 1;
5489 unsigned P1DCSC2 : 1;
5490 unsigned P1DCSC3 : 1;
5491 unsigned P1DCSC4 : 1;
5492 unsigned : 1;
5493 unsigned : 1;
5494 unsigned P1DCSIN : 1;
5495 } __PSMC1DCSbits_t;
5497 extern __at(0x0E9B) volatile __PSMC1DCSbits_t PSMC1DCSbits;
5499 #define _P1DCST 0x01
5500 #define _P1DCSC1 0x02
5501 #define _P1DCSC2 0x04
5502 #define _P1DCSC3 0x08
5503 #define _P1DCSC4 0x10
5504 #define _P1DCSIN 0x80
5506 //==============================================================================
5509 //==============================================================================
5510 // PSMC1PRS Bits
5512 extern __at(0x0E9C) __sfr PSMC1PRS;
5514 typedef struct
5516 unsigned P1PRST : 1;
5517 unsigned P1PRSC1 : 1;
5518 unsigned P1PRSC2 : 1;
5519 unsigned P1PRSC3 : 1;
5520 unsigned P1PRSC4 : 1;
5521 unsigned : 1;
5522 unsigned : 1;
5523 unsigned P1PRSIN : 1;
5524 } __PSMC1PRSbits_t;
5526 extern __at(0x0E9C) volatile __PSMC1PRSbits_t PSMC1PRSbits;
5528 #define _P1PRST 0x01
5529 #define _P1PRSC1 0x02
5530 #define _P1PRSC2 0x04
5531 #define _P1PRSC3 0x08
5532 #define _P1PRSC4 0x10
5533 #define _P1PRSIN 0x80
5535 //==============================================================================
5538 //==============================================================================
5539 // PSMC1ASDC Bits
5541 extern __at(0x0E9D) __sfr PSMC1ASDC;
5543 typedef struct
5545 unsigned P1ASDOV : 1;
5546 unsigned : 1;
5547 unsigned : 1;
5548 unsigned : 1;
5549 unsigned : 1;
5550 unsigned P1ARSEN : 1;
5551 unsigned P1ASDEN : 1;
5552 unsigned P1ASE : 1;
5553 } __PSMC1ASDCbits_t;
5555 extern __at(0x0E9D) volatile __PSMC1ASDCbits_t PSMC1ASDCbits;
5557 #define _P1ASDOV 0x01
5558 #define _P1ARSEN 0x20
5559 #define _P1ASDEN 0x40
5560 #define _P1ASE 0x80
5562 //==============================================================================
5565 //==============================================================================
5566 // PSMC1ASDL Bits
5568 extern __at(0x0E9E) __sfr PSMC1ASDL;
5570 typedef struct
5572 unsigned P1ASDLA : 1;
5573 unsigned P1ASDLB : 1;
5574 unsigned P1ASDLC : 1;
5575 unsigned P1ASDLD : 1;
5576 unsigned P1ASDLE : 1;
5577 unsigned P1ASDLF : 1;
5578 unsigned : 1;
5579 unsigned : 1;
5580 } __PSMC1ASDLbits_t;
5582 extern __at(0x0E9E) volatile __PSMC1ASDLbits_t PSMC1ASDLbits;
5584 #define _P1ASDLA 0x01
5585 #define _P1ASDLB 0x02
5586 #define _P1ASDLC 0x04
5587 #define _P1ASDLD 0x08
5588 #define _P1ASDLE 0x10
5589 #define _P1ASDLF 0x20
5591 //==============================================================================
5594 //==============================================================================
5595 // PSMC1ASDS Bits
5597 extern __at(0x0E9F) __sfr PSMC1ASDS;
5599 typedef struct
5601 unsigned : 1;
5602 unsigned P1ASDSC1 : 1;
5603 unsigned P1ASDSC2 : 1;
5604 unsigned P1ASDSC3 : 1;
5605 unsigned P1ASDSC4 : 1;
5606 unsigned : 1;
5607 unsigned : 1;
5608 unsigned P1ASDSIN : 1;
5609 } __PSMC1ASDSbits_t;
5611 extern __at(0x0E9F) volatile __PSMC1ASDSbits_t PSMC1ASDSbits;
5613 #define _P1ASDSC1 0x02
5614 #define _P1ASDSC2 0x04
5615 #define _P1ASDSC3 0x08
5616 #define _P1ASDSC4 0x10
5617 #define _P1ASDSIN 0x80
5619 //==============================================================================
5622 //==============================================================================
5623 // PSMC1INT Bits
5625 extern __at(0x0EA0) __sfr PSMC1INT;
5627 typedef struct
5629 unsigned P1TPRIF : 1;
5630 unsigned P1TDCIF : 1;
5631 unsigned P1TPHIF : 1;
5632 unsigned P1TOVIF : 1;
5633 unsigned P1TPRIE : 1;
5634 unsigned P1TDCIE : 1;
5635 unsigned P1TPHIE : 1;
5636 unsigned P1TOVIE : 1;
5637 } __PSMC1INTbits_t;
5639 extern __at(0x0EA0) volatile __PSMC1INTbits_t PSMC1INTbits;
5641 #define _P1TPRIF 0x01
5642 #define _P1TDCIF 0x02
5643 #define _P1TPHIF 0x04
5644 #define _P1TOVIF 0x08
5645 #define _P1TPRIE 0x10
5646 #define _P1TDCIE 0x20
5647 #define _P1TPHIE 0x40
5648 #define _P1TOVIE 0x80
5650 //==============================================================================
5652 extern __at(0x0EA1) __sfr PSMC1PH;
5654 //==============================================================================
5655 // PSMC1PHL Bits
5657 extern __at(0x0EA1) __sfr PSMC1PHL;
5659 typedef struct
5661 unsigned PSMC1PH0 : 1;
5662 unsigned PSMC1PH1 : 1;
5663 unsigned PSMC1PH2 : 1;
5664 unsigned PSMC1PH3 : 1;
5665 unsigned PSMC1PH4 : 1;
5666 unsigned PSMC1PH5 : 1;
5667 unsigned PSMC1PH6 : 1;
5668 unsigned PSMC1PH7 : 1;
5669 } __PSMC1PHLbits_t;
5671 extern __at(0x0EA1) volatile __PSMC1PHLbits_t PSMC1PHLbits;
5673 #define _PSMC1PH0 0x01
5674 #define _PSMC1PH1 0x02
5675 #define _PSMC1PH2 0x04
5676 #define _PSMC1PH3 0x08
5677 #define _PSMC1PH4 0x10
5678 #define _PSMC1PH5 0x20
5679 #define _PSMC1PH6 0x40
5680 #define _PSMC1PH7 0x80
5682 //==============================================================================
5685 //==============================================================================
5686 // PSMC1PHH Bits
5688 extern __at(0x0EA2) __sfr PSMC1PHH;
5690 typedef struct
5692 unsigned PSMC1PH8 : 1;
5693 unsigned PSMC1PH9 : 1;
5694 unsigned PSMC1PH10 : 1;
5695 unsigned PSMC1PH11 : 1;
5696 unsigned PSMC1PH12 : 1;
5697 unsigned PSMC1PH13 : 1;
5698 unsigned PSMC1PH14 : 1;
5699 unsigned PSMC1PH15 : 1;
5700 } __PSMC1PHHbits_t;
5702 extern __at(0x0EA2) volatile __PSMC1PHHbits_t PSMC1PHHbits;
5704 #define _PSMC1PH8 0x01
5705 #define _PSMC1PH9 0x02
5706 #define _PSMC1PH10 0x04
5707 #define _PSMC1PH11 0x08
5708 #define _PSMC1PH12 0x10
5709 #define _PSMC1PH13 0x20
5710 #define _PSMC1PH14 0x40
5711 #define _PSMC1PH15 0x80
5713 //==============================================================================
5715 extern __at(0x0EA3) __sfr PSMC1DC;
5717 //==============================================================================
5718 // PSMC1DCL Bits
5720 extern __at(0x0EA3) __sfr PSMC1DCL;
5722 typedef struct
5724 unsigned PSMC1DC0 : 1;
5725 unsigned PSMC1DC1 : 1;
5726 unsigned PSMC1DC2 : 1;
5727 unsigned PSMC1DC3 : 1;
5728 unsigned PSMC1DC4 : 1;
5729 unsigned PSMC1DC5 : 1;
5730 unsigned PSMC1DC6 : 1;
5731 unsigned PSMC1DC7 : 1;
5732 } __PSMC1DCLbits_t;
5734 extern __at(0x0EA3) volatile __PSMC1DCLbits_t PSMC1DCLbits;
5736 #define _PSMC1DC0 0x01
5737 #define _PSMC1DC1 0x02
5738 #define _PSMC1DC2 0x04
5739 #define _PSMC1DC3 0x08
5740 #define _PSMC1DC4 0x10
5741 #define _PSMC1DC5 0x20
5742 #define _PSMC1DC6 0x40
5743 #define _PSMC1DC7 0x80
5745 //==============================================================================
5748 //==============================================================================
5749 // PSMC1DCH Bits
5751 extern __at(0x0EA4) __sfr PSMC1DCH;
5753 typedef struct
5755 unsigned PSMC1DC8 : 1;
5756 unsigned PSMC1DC9 : 1;
5757 unsigned PSMC1DC10 : 1;
5758 unsigned PSMC1DC11 : 1;
5759 unsigned PSMC1DC12 : 1;
5760 unsigned PSMC1DC13 : 1;
5761 unsigned PSMC1DC14 : 1;
5762 unsigned PSMC1DC15 : 1;
5763 } __PSMC1DCHbits_t;
5765 extern __at(0x0EA4) volatile __PSMC1DCHbits_t PSMC1DCHbits;
5767 #define _PSMC1DC8 0x01
5768 #define _PSMC1DC9 0x02
5769 #define _PSMC1DC10 0x04
5770 #define _PSMC1DC11 0x08
5771 #define _PSMC1DC12 0x10
5772 #define _PSMC1DC13 0x20
5773 #define _PSMC1DC14 0x40
5774 #define _PSMC1DC15 0x80
5776 //==============================================================================
5778 extern __at(0x0EA5) __sfr PSMC1PR;
5780 //==============================================================================
5781 // PSMC1PRL Bits
5783 extern __at(0x0EA5) __sfr PSMC1PRL;
5785 typedef struct
5787 unsigned PSMC1PR0 : 1;
5788 unsigned PSMC1PR1 : 1;
5789 unsigned PSMC1PR2 : 1;
5790 unsigned PSMC1PR3 : 1;
5791 unsigned PSMC1PR4 : 1;
5792 unsigned PSMC1PR5 : 1;
5793 unsigned PSMC1PR6 : 1;
5794 unsigned PSMC1PR7 : 1;
5795 } __PSMC1PRLbits_t;
5797 extern __at(0x0EA5) volatile __PSMC1PRLbits_t PSMC1PRLbits;
5799 #define _PSMC1PR0 0x01
5800 #define _PSMC1PR1 0x02
5801 #define _PSMC1PR2 0x04
5802 #define _PSMC1PR3 0x08
5803 #define _PSMC1PR4 0x10
5804 #define _PSMC1PR5 0x20
5805 #define _PSMC1PR6 0x40
5806 #define _PSMC1PR7 0x80
5808 //==============================================================================
5811 //==============================================================================
5812 // PSMC1PRH Bits
5814 extern __at(0x0EA6) __sfr PSMC1PRH;
5816 typedef struct
5818 unsigned PSMC1PR8 : 1;
5819 unsigned PSMC1PR9 : 1;
5820 unsigned PSMC1PR10 : 1;
5821 unsigned PSMC1PR11 : 1;
5822 unsigned PSMC1PR12 : 1;
5823 unsigned PSMC1PR13 : 1;
5824 unsigned PSMC1PR14 : 1;
5825 unsigned PSMC1PR15 : 1;
5826 } __PSMC1PRHbits_t;
5828 extern __at(0x0EA6) volatile __PSMC1PRHbits_t PSMC1PRHbits;
5830 #define _PSMC1PR8 0x01
5831 #define _PSMC1PR9 0x02
5832 #define _PSMC1PR10 0x04
5833 #define _PSMC1PR11 0x08
5834 #define _PSMC1PR12 0x10
5835 #define _PSMC1PR13 0x20
5836 #define _PSMC1PR14 0x40
5837 #define _PSMC1PR15 0x80
5839 //==============================================================================
5841 extern __at(0x0EA7) __sfr PSMC1TMR;
5843 //==============================================================================
5844 // PSMC1TMRL Bits
5846 extern __at(0x0EA7) __sfr PSMC1TMRL;
5848 typedef struct
5850 unsigned PSMC1TMR0 : 1;
5851 unsigned PSMC1TMR1 : 1;
5852 unsigned PSMC1TMR2 : 1;
5853 unsigned PSMC1TMR3 : 1;
5854 unsigned PSMC1TMR4 : 1;
5855 unsigned PSMC1TMR5 : 1;
5856 unsigned PSMC1TMR6 : 1;
5857 unsigned PSMC1TMR7 : 1;
5858 } __PSMC1TMRLbits_t;
5860 extern __at(0x0EA7) volatile __PSMC1TMRLbits_t PSMC1TMRLbits;
5862 #define _PSMC1TMR0 0x01
5863 #define _PSMC1TMR1 0x02
5864 #define _PSMC1TMR2 0x04
5865 #define _PSMC1TMR3 0x08
5866 #define _PSMC1TMR4 0x10
5867 #define _PSMC1TMR5 0x20
5868 #define _PSMC1TMR6 0x40
5869 #define _PSMC1TMR7 0x80
5871 //==============================================================================
5874 //==============================================================================
5875 // PSMC1TMRH Bits
5877 extern __at(0x0EA8) __sfr PSMC1TMRH;
5879 typedef struct
5881 unsigned PSMC1TMR8 : 1;
5882 unsigned PSMC1TMR9 : 1;
5883 unsigned PSMC1TMR10 : 1;
5884 unsigned PSMC1TMR11 : 1;
5885 unsigned PSMC1TMR12 : 1;
5886 unsigned PSMC1TMR13 : 1;
5887 unsigned PSMC1TMR14 : 1;
5888 unsigned PSMC1TMR15 : 1;
5889 } __PSMC1TMRHbits_t;
5891 extern __at(0x0EA8) volatile __PSMC1TMRHbits_t PSMC1TMRHbits;
5893 #define _PSMC1TMR8 0x01
5894 #define _PSMC1TMR9 0x02
5895 #define _PSMC1TMR10 0x04
5896 #define _PSMC1TMR11 0x08
5897 #define _PSMC1TMR12 0x10
5898 #define _PSMC1TMR13 0x20
5899 #define _PSMC1TMR14 0x40
5900 #define _PSMC1TMR15 0x80
5902 //==============================================================================
5905 //==============================================================================
5906 // PSMC1DBR Bits
5908 extern __at(0x0EA9) __sfr PSMC1DBR;
5910 typedef struct
5912 unsigned PSMC1DBR0 : 1;
5913 unsigned PSMC1DBR1 : 1;
5914 unsigned PSMC1DBR2 : 1;
5915 unsigned PSMC1DBR3 : 1;
5916 unsigned PSMC1DBR4 : 1;
5917 unsigned PSMC1DBR5 : 1;
5918 unsigned PSMC1DBR6 : 1;
5919 unsigned PSMC1DBR7 : 1;
5920 } __PSMC1DBRbits_t;
5922 extern __at(0x0EA9) volatile __PSMC1DBRbits_t PSMC1DBRbits;
5924 #define _PSMC1DBR0 0x01
5925 #define _PSMC1DBR1 0x02
5926 #define _PSMC1DBR2 0x04
5927 #define _PSMC1DBR3 0x08
5928 #define _PSMC1DBR4 0x10
5929 #define _PSMC1DBR5 0x20
5930 #define _PSMC1DBR6 0x40
5931 #define _PSMC1DBR7 0x80
5933 //==============================================================================
5936 //==============================================================================
5937 // PSMC1DBF Bits
5939 extern __at(0x0EAA) __sfr PSMC1DBF;
5941 typedef struct
5943 unsigned PSMC1DBF0 : 1;
5944 unsigned PSMC1DBF1 : 1;
5945 unsigned PSMC1DBF2 : 1;
5946 unsigned PSMC1DBF3 : 1;
5947 unsigned PSMC1DBF4 : 1;
5948 unsigned PSMC1DBF5 : 1;
5949 unsigned PSMC1DBF6 : 1;
5950 unsigned PSMC1DBF7 : 1;
5951 } __PSMC1DBFbits_t;
5953 extern __at(0x0EAA) volatile __PSMC1DBFbits_t PSMC1DBFbits;
5955 #define _PSMC1DBF0 0x01
5956 #define _PSMC1DBF1 0x02
5957 #define _PSMC1DBF2 0x04
5958 #define _PSMC1DBF3 0x08
5959 #define _PSMC1DBF4 0x10
5960 #define _PSMC1DBF5 0x20
5961 #define _PSMC1DBF6 0x40
5962 #define _PSMC1DBF7 0x80
5964 //==============================================================================
5967 //==============================================================================
5968 // PSMC1BLKR Bits
5970 extern __at(0x0EAB) __sfr PSMC1BLKR;
5972 typedef struct
5974 unsigned PSMC1BLKR0 : 1;
5975 unsigned PSMC1BLKR1 : 1;
5976 unsigned PSMC1BLKR2 : 1;
5977 unsigned PSMC1BLKR3 : 1;
5978 unsigned PSMC1BLKR4 : 1;
5979 unsigned PSMC1BLKR5 : 1;
5980 unsigned PSMC1BLKR6 : 1;
5981 unsigned PSMC1BLKR7 : 1;
5982 } __PSMC1BLKRbits_t;
5984 extern __at(0x0EAB) volatile __PSMC1BLKRbits_t PSMC1BLKRbits;
5986 #define _PSMC1BLKR0 0x01
5987 #define _PSMC1BLKR1 0x02
5988 #define _PSMC1BLKR2 0x04
5989 #define _PSMC1BLKR3 0x08
5990 #define _PSMC1BLKR4 0x10
5991 #define _PSMC1BLKR5 0x20
5992 #define _PSMC1BLKR6 0x40
5993 #define _PSMC1BLKR7 0x80
5995 //==============================================================================
5998 //==============================================================================
5999 // PSMC1BLKF Bits
6001 extern __at(0x0EAC) __sfr PSMC1BLKF;
6003 typedef struct
6005 unsigned PSMC1BLKF0 : 1;
6006 unsigned PSMC1BLKF1 : 1;
6007 unsigned PSMC1BLKF2 : 1;
6008 unsigned PSMC1BLKF3 : 1;
6009 unsigned PSMC1BLKF4 : 1;
6010 unsigned PSMC1BLKF5 : 1;
6011 unsigned PSMC1BLKF6 : 1;
6012 unsigned PSMC1BLKF7 : 1;
6013 } __PSMC1BLKFbits_t;
6015 extern __at(0x0EAC) volatile __PSMC1BLKFbits_t PSMC1BLKFbits;
6017 #define _PSMC1BLKF0 0x01
6018 #define _PSMC1BLKF1 0x02
6019 #define _PSMC1BLKF2 0x04
6020 #define _PSMC1BLKF3 0x08
6021 #define _PSMC1BLKF4 0x10
6022 #define _PSMC1BLKF5 0x20
6023 #define _PSMC1BLKF6 0x40
6024 #define _PSMC1BLKF7 0x80
6026 //==============================================================================
6029 //==============================================================================
6030 // PSMC1FFA Bits
6032 extern __at(0x0EAD) __sfr PSMC1FFA;
6034 typedef union
6036 struct
6038 unsigned PSMC1FFA0 : 1;
6039 unsigned PSMC1FFA1 : 1;
6040 unsigned PSMC1FFA2 : 1;
6041 unsigned PSMC1FFA3 : 1;
6042 unsigned : 1;
6043 unsigned : 1;
6044 unsigned : 1;
6045 unsigned : 1;
6048 struct
6050 unsigned PSMC1FFA : 4;
6051 unsigned : 4;
6053 } __PSMC1FFAbits_t;
6055 extern __at(0x0EAD) volatile __PSMC1FFAbits_t PSMC1FFAbits;
6057 #define _PSMC1FFA0 0x01
6058 #define _PSMC1FFA1 0x02
6059 #define _PSMC1FFA2 0x04
6060 #define _PSMC1FFA3 0x08
6062 //==============================================================================
6065 //==============================================================================
6066 // PSMC1STR0 Bits
6068 extern __at(0x0EAE) __sfr PSMC1STR0;
6070 typedef struct
6072 unsigned P1STRA : 1;
6073 unsigned P1STRB : 1;
6074 unsigned P1STRC : 1;
6075 unsigned P1STRD : 1;
6076 unsigned P1STRE : 1;
6077 unsigned P1STRF : 1;
6078 unsigned : 1;
6079 unsigned : 1;
6080 } __PSMC1STR0bits_t;
6082 extern __at(0x0EAE) volatile __PSMC1STR0bits_t PSMC1STR0bits;
6084 #define _P1STRA 0x01
6085 #define _P1STRB 0x02
6086 #define _P1STRC 0x04
6087 #define _P1STRD 0x08
6088 #define _P1STRE 0x10
6089 #define _P1STRF 0x20
6091 //==============================================================================
6094 //==============================================================================
6095 // PSMC1STR1 Bits
6097 extern __at(0x0EAF) __sfr PSMC1STR1;
6099 typedef struct
6101 unsigned P1HSMEN : 1;
6102 unsigned P1LSMEN : 1;
6103 unsigned : 1;
6104 unsigned : 1;
6105 unsigned : 1;
6106 unsigned : 1;
6107 unsigned : 1;
6108 unsigned P1SSYNC : 1;
6109 } __PSMC1STR1bits_t;
6111 extern __at(0x0EAF) volatile __PSMC1STR1bits_t PSMC1STR1bits;
6113 #define _P1HSMEN 0x01
6114 #define _P1LSMEN 0x02
6115 #define _P1SSYNC 0x80
6117 //==============================================================================
6120 //==============================================================================
6121 // PSMC2CON Bits
6123 extern __at(0x0EB1) __sfr PSMC2CON;
6125 typedef union
6127 struct
6129 unsigned P2MODE0 : 1;
6130 unsigned P2MODE1 : 1;
6131 unsigned P2MODE2 : 1;
6132 unsigned P2MODE3 : 1;
6133 unsigned P2DBRE : 1;
6134 unsigned P2DBFE : 1;
6135 unsigned PSMC2LD : 1;
6136 unsigned PSMC2EN : 1;
6139 struct
6141 unsigned P2MODE : 4;
6142 unsigned : 4;
6144 } __PSMC2CONbits_t;
6146 extern __at(0x0EB1) volatile __PSMC2CONbits_t PSMC2CONbits;
6148 #define _P2MODE0 0x01
6149 #define _P2MODE1 0x02
6150 #define _P2MODE2 0x04
6151 #define _P2MODE3 0x08
6152 #define _P2DBRE 0x10
6153 #define _P2DBFE 0x20
6154 #define _PSMC2LD 0x40
6155 #define _PSMC2EN 0x80
6157 //==============================================================================
6160 //==============================================================================
6161 // PSMC2MDL Bits
6163 extern __at(0x0EB2) __sfr PSMC2MDL;
6165 typedef union
6167 struct
6169 unsigned P2MSRC0 : 1;
6170 unsigned P2MSRC1 : 1;
6171 unsigned P2MSRC2 : 1;
6172 unsigned P2MSRC3 : 1;
6173 unsigned : 1;
6174 unsigned P2MDLBIT : 1;
6175 unsigned P2MDLPOL : 1;
6176 unsigned P2MDLEN : 1;
6179 struct
6181 unsigned P2MSRC : 4;
6182 unsigned : 4;
6184 } __PSMC2MDLbits_t;
6186 extern __at(0x0EB2) volatile __PSMC2MDLbits_t PSMC2MDLbits;
6188 #define _P2MSRC0 0x01
6189 #define _P2MSRC1 0x02
6190 #define _P2MSRC2 0x04
6191 #define _P2MSRC3 0x08
6192 #define _P2MDLBIT 0x20
6193 #define _P2MDLPOL 0x40
6194 #define _P2MDLEN 0x80
6196 //==============================================================================
6199 //==============================================================================
6200 // PSMC2SYNC Bits
6202 extern __at(0x0EB3) __sfr PSMC2SYNC;
6204 typedef union
6206 struct
6208 unsigned P2SYNC0 : 1;
6209 unsigned P2SYNC1 : 1;
6210 unsigned P2SYNC2 : 1;
6211 unsigned : 1;
6212 unsigned : 1;
6213 unsigned P2DCPOL : 1;
6214 unsigned P2PRPOL : 1;
6215 unsigned P2POFST : 1;
6218 struct
6220 unsigned P2SYNC : 3;
6221 unsigned : 5;
6223 } __PSMC2SYNCbits_t;
6225 extern __at(0x0EB3) volatile __PSMC2SYNCbits_t PSMC2SYNCbits;
6227 #define _P2SYNC0 0x01
6228 #define _P2SYNC1 0x02
6229 #define _P2SYNC2 0x04
6230 #define _P2DCPOL 0x20
6231 #define _P2PRPOL 0x40
6232 #define _P2POFST 0x80
6234 //==============================================================================
6237 //==============================================================================
6238 // PSMC2CLK Bits
6240 extern __at(0x0EB4) __sfr PSMC2CLK;
6242 typedef union
6244 struct
6246 unsigned P2CSRC0 : 1;
6247 unsigned P2CSRC1 : 1;
6248 unsigned : 1;
6249 unsigned : 1;
6250 unsigned P2CPRE0 : 1;
6251 unsigned P2CPRE1 : 1;
6252 unsigned : 1;
6253 unsigned : 1;
6256 struct
6258 unsigned P2CSRC : 2;
6259 unsigned : 6;
6262 struct
6264 unsigned : 4;
6265 unsigned P2CPRE : 2;
6266 unsigned : 2;
6268 } __PSMC2CLKbits_t;
6270 extern __at(0x0EB4) volatile __PSMC2CLKbits_t PSMC2CLKbits;
6272 #define _P2CSRC0 0x01
6273 #define _P2CSRC1 0x02
6274 #define _P2CPRE0 0x10
6275 #define _P2CPRE1 0x20
6277 //==============================================================================
6280 //==============================================================================
6281 // PSMC2OEN Bits
6283 extern __at(0x0EB5) __sfr PSMC2OEN;
6285 typedef struct
6287 unsigned P2OEA : 1;
6288 unsigned P2OEB : 1;
6289 unsigned : 1;
6290 unsigned : 1;
6291 unsigned : 1;
6292 unsigned : 1;
6293 unsigned : 1;
6294 unsigned : 1;
6295 } __PSMC2OENbits_t;
6297 extern __at(0x0EB5) volatile __PSMC2OENbits_t PSMC2OENbits;
6299 #define _P2OEA 0x01
6300 #define _P2OEB 0x02
6302 //==============================================================================
6305 //==============================================================================
6306 // PSMC2POL Bits
6308 extern __at(0x0EB6) __sfr PSMC2POL;
6310 typedef struct
6312 unsigned P2POLA : 1;
6313 unsigned P2POLB : 1;
6314 unsigned : 1;
6315 unsigned : 1;
6316 unsigned : 1;
6317 unsigned : 1;
6318 unsigned P2INPOL : 1;
6319 unsigned : 1;
6320 } __PSMC2POLbits_t;
6322 extern __at(0x0EB6) volatile __PSMC2POLbits_t PSMC2POLbits;
6324 #define _P2POLA 0x01
6325 #define _P2POLB 0x02
6326 #define _P2INPOL 0x40
6328 //==============================================================================
6331 //==============================================================================
6332 // PSMC2BLNK Bits
6334 extern __at(0x0EB7) __sfr PSMC2BLNK;
6336 typedef union
6338 struct
6340 unsigned P2REBM0 : 1;
6341 unsigned P2REBM1 : 1;
6342 unsigned : 1;
6343 unsigned : 1;
6344 unsigned P2FEBM0 : 1;
6345 unsigned P2FEBM1 : 1;
6346 unsigned : 1;
6347 unsigned : 1;
6350 struct
6352 unsigned P2REBM : 2;
6353 unsigned : 6;
6356 struct
6358 unsigned : 4;
6359 unsigned P2FEBM : 2;
6360 unsigned : 2;
6362 } __PSMC2BLNKbits_t;
6364 extern __at(0x0EB7) volatile __PSMC2BLNKbits_t PSMC2BLNKbits;
6366 #define _P2REBM0 0x01
6367 #define _P2REBM1 0x02
6368 #define _P2FEBM0 0x10
6369 #define _P2FEBM1 0x20
6371 //==============================================================================
6374 //==============================================================================
6375 // PSMC2REBS Bits
6377 extern __at(0x0EB8) __sfr PSMC2REBS;
6379 typedef struct
6381 unsigned : 1;
6382 unsigned P2REBSC1 : 1;
6383 unsigned P2REBSC2 : 1;
6384 unsigned P2REBSC3 : 1;
6385 unsigned P2REBSC4 : 1;
6386 unsigned : 1;
6387 unsigned : 1;
6388 unsigned P2REBSIN : 1;
6389 } __PSMC2REBSbits_t;
6391 extern __at(0x0EB8) volatile __PSMC2REBSbits_t PSMC2REBSbits;
6393 #define _P2REBSC1 0x02
6394 #define _P2REBSC2 0x04
6395 #define _P2REBSC3 0x08
6396 #define _P2REBSC4 0x10
6397 #define _P2REBSIN 0x80
6399 //==============================================================================
6402 //==============================================================================
6403 // PSMC2FEBS Bits
6405 extern __at(0x0EB9) __sfr PSMC2FEBS;
6407 typedef struct
6409 unsigned : 1;
6410 unsigned P2FEBSC1 : 1;
6411 unsigned P2FEBSC2 : 1;
6412 unsigned P2FEBSC3 : 1;
6413 unsigned P2FEBSC4 : 1;
6414 unsigned : 1;
6415 unsigned : 1;
6416 unsigned P2FEBSIN : 1;
6417 } __PSMC2FEBSbits_t;
6419 extern __at(0x0EB9) volatile __PSMC2FEBSbits_t PSMC2FEBSbits;
6421 #define _P2FEBSC1 0x02
6422 #define _P2FEBSC2 0x04
6423 #define _P2FEBSC3 0x08
6424 #define _P2FEBSC4 0x10
6425 #define _P2FEBSIN 0x80
6427 //==============================================================================
6430 //==============================================================================
6431 // PSMC2PHS Bits
6433 extern __at(0x0EBA) __sfr PSMC2PHS;
6435 typedef struct
6437 unsigned P2PHST : 1;
6438 unsigned P2PHSC1 : 1;
6439 unsigned P2PHSC2 : 1;
6440 unsigned P2PHSC3 : 1;
6441 unsigned P2PHSC4 : 1;
6442 unsigned : 1;
6443 unsigned : 1;
6444 unsigned P2PHSIN : 1;
6445 } __PSMC2PHSbits_t;
6447 extern __at(0x0EBA) volatile __PSMC2PHSbits_t PSMC2PHSbits;
6449 #define _P2PHST 0x01
6450 #define _P2PHSC1 0x02
6451 #define _P2PHSC2 0x04
6452 #define _P2PHSC3 0x08
6453 #define _P2PHSC4 0x10
6454 #define _P2PHSIN 0x80
6456 //==============================================================================
6459 //==============================================================================
6460 // PSMC2DCS Bits
6462 extern __at(0x0EBB) __sfr PSMC2DCS;
6464 typedef struct
6466 unsigned P2DCST : 1;
6467 unsigned P2DCSC1 : 1;
6468 unsigned P2DCSC2 : 1;
6469 unsigned P2DCSC3 : 1;
6470 unsigned P2DCSC4 : 1;
6471 unsigned : 1;
6472 unsigned : 1;
6473 unsigned P2DCSIN : 1;
6474 } __PSMC2DCSbits_t;
6476 extern __at(0x0EBB) volatile __PSMC2DCSbits_t PSMC2DCSbits;
6478 #define _P2DCST 0x01
6479 #define _P2DCSC1 0x02
6480 #define _P2DCSC2 0x04
6481 #define _P2DCSC3 0x08
6482 #define _P2DCSC4 0x10
6483 #define _P2DCSIN 0x80
6485 //==============================================================================
6488 //==============================================================================
6489 // PSMC2PRS Bits
6491 extern __at(0x0EBC) __sfr PSMC2PRS;
6493 typedef struct
6495 unsigned P2PRST : 1;
6496 unsigned P2PRSC1 : 1;
6497 unsigned P2PRSC2 : 1;
6498 unsigned P2PRSC3 : 1;
6499 unsigned P2PRSC4 : 1;
6500 unsigned : 1;
6501 unsigned : 1;
6502 unsigned P2PRSIN : 1;
6503 } __PSMC2PRSbits_t;
6505 extern __at(0x0EBC) volatile __PSMC2PRSbits_t PSMC2PRSbits;
6507 #define _P2PRST 0x01
6508 #define _P2PRSC1 0x02
6509 #define _P2PRSC2 0x04
6510 #define _P2PRSC3 0x08
6511 #define _P2PRSC4 0x10
6512 #define _P2PRSIN 0x80
6514 //==============================================================================
6517 //==============================================================================
6518 // PSMC2ASDC Bits
6520 extern __at(0x0EBD) __sfr PSMC2ASDC;
6522 typedef struct
6524 unsigned P2ASDOV : 1;
6525 unsigned : 1;
6526 unsigned : 1;
6527 unsigned : 1;
6528 unsigned : 1;
6529 unsigned P2ARSEN : 1;
6530 unsigned P2ASDEN : 1;
6531 unsigned P2ASE : 1;
6532 } __PSMC2ASDCbits_t;
6534 extern __at(0x0EBD) volatile __PSMC2ASDCbits_t PSMC2ASDCbits;
6536 #define _P2ASDOV 0x01
6537 #define _P2ARSEN 0x20
6538 #define _P2ASDEN 0x40
6539 #define _P2ASE 0x80
6541 //==============================================================================
6544 //==============================================================================
6545 // PSMC2ASDL Bits
6547 extern __at(0x0EBE) __sfr PSMC2ASDL;
6549 typedef struct
6551 unsigned P2ASDLA : 1;
6552 unsigned P2ASDLB : 1;
6553 unsigned : 1;
6554 unsigned : 1;
6555 unsigned : 1;
6556 unsigned : 1;
6557 unsigned : 1;
6558 unsigned : 1;
6559 } __PSMC2ASDLbits_t;
6561 extern __at(0x0EBE) volatile __PSMC2ASDLbits_t PSMC2ASDLbits;
6563 #define _P2ASDLA 0x01
6564 #define _P2ASDLB 0x02
6566 //==============================================================================
6569 //==============================================================================
6570 // PSMC2ASDS Bits
6572 extern __at(0x0EBF) __sfr PSMC2ASDS;
6574 typedef struct
6576 unsigned : 1;
6577 unsigned P2ASDSC1 : 1;
6578 unsigned P2ASDSC2 : 1;
6579 unsigned P2ASDSC3 : 1;
6580 unsigned P2ASDSC4 : 1;
6581 unsigned : 1;
6582 unsigned : 1;
6583 unsigned P2ASDSIN : 1;
6584 } __PSMC2ASDSbits_t;
6586 extern __at(0x0EBF) volatile __PSMC2ASDSbits_t PSMC2ASDSbits;
6588 #define _P2ASDSC1 0x02
6589 #define _P2ASDSC2 0x04
6590 #define _P2ASDSC3 0x08
6591 #define _P2ASDSC4 0x10
6592 #define _P2ASDSIN 0x80
6594 //==============================================================================
6597 //==============================================================================
6598 // PSMC2INT Bits
6600 extern __at(0x0EC0) __sfr PSMC2INT;
6602 typedef struct
6604 unsigned P2TPRIF : 1;
6605 unsigned P2TDCIF : 1;
6606 unsigned P2TPHIF : 1;
6607 unsigned P2TOVIF : 1;
6608 unsigned P2TPRIE : 1;
6609 unsigned P2TDCIE : 1;
6610 unsigned P2TPHIE : 1;
6611 unsigned P2TOVIE : 1;
6612 } __PSMC2INTbits_t;
6614 extern __at(0x0EC0) volatile __PSMC2INTbits_t PSMC2INTbits;
6616 #define _P2TPRIF 0x01
6617 #define _P2TDCIF 0x02
6618 #define _P2TPHIF 0x04
6619 #define _P2TOVIF 0x08
6620 #define _P2TPRIE 0x10
6621 #define _P2TDCIE 0x20
6622 #define _P2TPHIE 0x40
6623 #define _P2TOVIE 0x80
6625 //==============================================================================
6627 extern __at(0x0EC1) __sfr PSMC2PH;
6629 //==============================================================================
6630 // PSMC2PHL Bits
6632 extern __at(0x0EC1) __sfr PSMC2PHL;
6634 typedef struct
6636 unsigned PSMC2PH0 : 1;
6637 unsigned PSMC2PH1 : 1;
6638 unsigned PSMC2PH2 : 1;
6639 unsigned PSMC2PH3 : 1;
6640 unsigned PSMC2PH4 : 1;
6641 unsigned PSMC2PH5 : 1;
6642 unsigned PSMC2PH6 : 1;
6643 unsigned PSMC2PH7 : 1;
6644 } __PSMC2PHLbits_t;
6646 extern __at(0x0EC1) volatile __PSMC2PHLbits_t PSMC2PHLbits;
6648 #define _PSMC2PH0 0x01
6649 #define _PSMC2PH1 0x02
6650 #define _PSMC2PH2 0x04
6651 #define _PSMC2PH3 0x08
6652 #define _PSMC2PH4 0x10
6653 #define _PSMC2PH5 0x20
6654 #define _PSMC2PH6 0x40
6655 #define _PSMC2PH7 0x80
6657 //==============================================================================
6660 //==============================================================================
6661 // PSMC2PHH Bits
6663 extern __at(0x0EC2) __sfr PSMC2PHH;
6665 typedef struct
6667 unsigned PSMC2PH8 : 1;
6668 unsigned PSMC2PH9 : 1;
6669 unsigned PSMC2PH10 : 1;
6670 unsigned PSMC2PH11 : 1;
6671 unsigned PSMC2PH12 : 1;
6672 unsigned PSMC2PH13 : 1;
6673 unsigned PSMC2PH14 : 1;
6674 unsigned PSMC2PH15 : 1;
6675 } __PSMC2PHHbits_t;
6677 extern __at(0x0EC2) volatile __PSMC2PHHbits_t PSMC2PHHbits;
6679 #define _PSMC2PH8 0x01
6680 #define _PSMC2PH9 0x02
6681 #define _PSMC2PH10 0x04
6682 #define _PSMC2PH11 0x08
6683 #define _PSMC2PH12 0x10
6684 #define _PSMC2PH13 0x20
6685 #define _PSMC2PH14 0x40
6686 #define _PSMC2PH15 0x80
6688 //==============================================================================
6690 extern __at(0x0EC3) __sfr PSMC2DC;
6692 //==============================================================================
6693 // PSMC2DCL Bits
6695 extern __at(0x0EC3) __sfr PSMC2DCL;
6697 typedef struct
6699 unsigned PSMC2DC0 : 1;
6700 unsigned PSMC2DC1 : 1;
6701 unsigned PSMC2DC2 : 1;
6702 unsigned PSMC2DC3 : 1;
6703 unsigned PSMC2DC4 : 1;
6704 unsigned PSMC2DC5 : 1;
6705 unsigned PSMC2DC6 : 1;
6706 unsigned PSMC2DC7 : 1;
6707 } __PSMC2DCLbits_t;
6709 extern __at(0x0EC3) volatile __PSMC2DCLbits_t PSMC2DCLbits;
6711 #define _PSMC2DC0 0x01
6712 #define _PSMC2DC1 0x02
6713 #define _PSMC2DC2 0x04
6714 #define _PSMC2DC3 0x08
6715 #define _PSMC2DC4 0x10
6716 #define _PSMC2DC5 0x20
6717 #define _PSMC2DC6 0x40
6718 #define _PSMC2DC7 0x80
6720 //==============================================================================
6723 //==============================================================================
6724 // PSMC2DCH Bits
6726 extern __at(0x0EC4) __sfr PSMC2DCH;
6728 typedef struct
6730 unsigned PSMC2DC8 : 1;
6731 unsigned PSMC2DC9 : 1;
6732 unsigned PSMC2DC10 : 1;
6733 unsigned PSMC2DC11 : 1;
6734 unsigned PSMC2DC12 : 1;
6735 unsigned PSMC2DC13 : 1;
6736 unsigned PSMC2DC14 : 1;
6737 unsigned PSMC2DC15 : 1;
6738 } __PSMC2DCHbits_t;
6740 extern __at(0x0EC4) volatile __PSMC2DCHbits_t PSMC2DCHbits;
6742 #define _PSMC2DC8 0x01
6743 #define _PSMC2DC9 0x02
6744 #define _PSMC2DC10 0x04
6745 #define _PSMC2DC11 0x08
6746 #define _PSMC2DC12 0x10
6747 #define _PSMC2DC13 0x20
6748 #define _PSMC2DC14 0x40
6749 #define _PSMC2DC15 0x80
6751 //==============================================================================
6753 extern __at(0x0EC5) __sfr PSMC2PR;
6755 //==============================================================================
6756 // PSMC2PRL Bits
6758 extern __at(0x0EC5) __sfr PSMC2PRL;
6760 typedef struct
6762 unsigned PSMC2PR0 : 1;
6763 unsigned PSMC2PR1 : 1;
6764 unsigned PSMC2PR2 : 1;
6765 unsigned PSMC2PR3 : 1;
6766 unsigned PSMC2PR4 : 1;
6767 unsigned PSMC2PR5 : 1;
6768 unsigned PSMC2PR6 : 1;
6769 unsigned PSMC2PR7 : 1;
6770 } __PSMC2PRLbits_t;
6772 extern __at(0x0EC5) volatile __PSMC2PRLbits_t PSMC2PRLbits;
6774 #define _PSMC2PR0 0x01
6775 #define _PSMC2PR1 0x02
6776 #define _PSMC2PR2 0x04
6777 #define _PSMC2PR3 0x08
6778 #define _PSMC2PR4 0x10
6779 #define _PSMC2PR5 0x20
6780 #define _PSMC2PR6 0x40
6781 #define _PSMC2PR7 0x80
6783 //==============================================================================
6786 //==============================================================================
6787 // PSMC2PRH Bits
6789 extern __at(0x0EC6) __sfr PSMC2PRH;
6791 typedef struct
6793 unsigned PSMC2PR8 : 1;
6794 unsigned PSMC2PR9 : 1;
6795 unsigned PSMC2PR10 : 1;
6796 unsigned PSMC2PR11 : 1;
6797 unsigned PSMC2PR12 : 1;
6798 unsigned PSMC2PR13 : 1;
6799 unsigned PSMC2PR14 : 1;
6800 unsigned PSMC2PR15 : 1;
6801 } __PSMC2PRHbits_t;
6803 extern __at(0x0EC6) volatile __PSMC2PRHbits_t PSMC2PRHbits;
6805 #define _PSMC2PR8 0x01
6806 #define _PSMC2PR9 0x02
6807 #define _PSMC2PR10 0x04
6808 #define _PSMC2PR11 0x08
6809 #define _PSMC2PR12 0x10
6810 #define _PSMC2PR13 0x20
6811 #define _PSMC2PR14 0x40
6812 #define _PSMC2PR15 0x80
6814 //==============================================================================
6816 extern __at(0x0EC7) __sfr PSMC2TMR;
6818 //==============================================================================
6819 // PSMC2TMRL Bits
6821 extern __at(0x0EC7) __sfr PSMC2TMRL;
6823 typedef struct
6825 unsigned PSMC2TMR0 : 1;
6826 unsigned PSMC2TMR1 : 1;
6827 unsigned PSMC2TMR2 : 1;
6828 unsigned PSMC2TMR3 : 1;
6829 unsigned PSMC2TMR4 : 1;
6830 unsigned PSMC2TMR5 : 1;
6831 unsigned PSMC2TMR6 : 1;
6832 unsigned PSMC2TMR7 : 1;
6833 } __PSMC2TMRLbits_t;
6835 extern __at(0x0EC7) volatile __PSMC2TMRLbits_t PSMC2TMRLbits;
6837 #define _PSMC2TMR0 0x01
6838 #define _PSMC2TMR1 0x02
6839 #define _PSMC2TMR2 0x04
6840 #define _PSMC2TMR3 0x08
6841 #define _PSMC2TMR4 0x10
6842 #define _PSMC2TMR5 0x20
6843 #define _PSMC2TMR6 0x40
6844 #define _PSMC2TMR7 0x80
6846 //==============================================================================
6849 //==============================================================================
6850 // PSMC2TMRH Bits
6852 extern __at(0x0EC8) __sfr PSMC2TMRH;
6854 typedef struct
6856 unsigned PSMC2TMR8 : 1;
6857 unsigned PSMC2TMR9 : 1;
6858 unsigned PSMC2TMR10 : 1;
6859 unsigned PSMC2TMR11 : 1;
6860 unsigned PSMC2TMR12 : 1;
6861 unsigned PSMC2TMR13 : 1;
6862 unsigned PSMC2TMR14 : 1;
6863 unsigned PSMC2TMR15 : 1;
6864 } __PSMC2TMRHbits_t;
6866 extern __at(0x0EC8) volatile __PSMC2TMRHbits_t PSMC2TMRHbits;
6868 #define _PSMC2TMR8 0x01
6869 #define _PSMC2TMR9 0x02
6870 #define _PSMC2TMR10 0x04
6871 #define _PSMC2TMR11 0x08
6872 #define _PSMC2TMR12 0x10
6873 #define _PSMC2TMR13 0x20
6874 #define _PSMC2TMR14 0x40
6875 #define _PSMC2TMR15 0x80
6877 //==============================================================================
6880 //==============================================================================
6881 // PSMC2DBR Bits
6883 extern __at(0x0EC9) __sfr PSMC2DBR;
6885 typedef struct
6887 unsigned PSMC2DBR0 : 1;
6888 unsigned PSMC2DBR1 : 1;
6889 unsigned PSMC2DBR2 : 1;
6890 unsigned PSMC2DBR3 : 1;
6891 unsigned PSMC2DBR4 : 1;
6892 unsigned PSMC2DBR5 : 1;
6893 unsigned PSMC2DBR6 : 1;
6894 unsigned PSMC2DBR7 : 1;
6895 } __PSMC2DBRbits_t;
6897 extern __at(0x0EC9) volatile __PSMC2DBRbits_t PSMC2DBRbits;
6899 #define _PSMC2DBR0 0x01
6900 #define _PSMC2DBR1 0x02
6901 #define _PSMC2DBR2 0x04
6902 #define _PSMC2DBR3 0x08
6903 #define _PSMC2DBR4 0x10
6904 #define _PSMC2DBR5 0x20
6905 #define _PSMC2DBR6 0x40
6906 #define _PSMC2DBR7 0x80
6908 //==============================================================================
6911 //==============================================================================
6912 // PSMC2DBF Bits
6914 extern __at(0x0ECA) __sfr PSMC2DBF;
6916 typedef struct
6918 unsigned PSMC2DBF0 : 1;
6919 unsigned PSMC2DBF1 : 1;
6920 unsigned PSMC2DBF2 : 1;
6921 unsigned PSMC2DBF3 : 1;
6922 unsigned PSMC2DBF4 : 1;
6923 unsigned PSMC2DBF5 : 1;
6924 unsigned PSMC2DBF6 : 1;
6925 unsigned PSMC2DBF7 : 1;
6926 } __PSMC2DBFbits_t;
6928 extern __at(0x0ECA) volatile __PSMC2DBFbits_t PSMC2DBFbits;
6930 #define _PSMC2DBF0 0x01
6931 #define _PSMC2DBF1 0x02
6932 #define _PSMC2DBF2 0x04
6933 #define _PSMC2DBF3 0x08
6934 #define _PSMC2DBF4 0x10
6935 #define _PSMC2DBF5 0x20
6936 #define _PSMC2DBF6 0x40
6937 #define _PSMC2DBF7 0x80
6939 //==============================================================================
6942 //==============================================================================
6943 // PSMC2BLKR Bits
6945 extern __at(0x0ECB) __sfr PSMC2BLKR;
6947 typedef struct
6949 unsigned PSMC2BLKR0 : 1;
6950 unsigned PSMC2BLKR1 : 1;
6951 unsigned PSMC2BLKR2 : 1;
6952 unsigned PSMC2BLKR3 : 1;
6953 unsigned PSMC2BLKR4 : 1;
6954 unsigned PSMC2BLKR5 : 1;
6955 unsigned PSMC2BLKR6 : 1;
6956 unsigned PSMC2BLKR7 : 1;
6957 } __PSMC2BLKRbits_t;
6959 extern __at(0x0ECB) volatile __PSMC2BLKRbits_t PSMC2BLKRbits;
6961 #define _PSMC2BLKR0 0x01
6962 #define _PSMC2BLKR1 0x02
6963 #define _PSMC2BLKR2 0x04
6964 #define _PSMC2BLKR3 0x08
6965 #define _PSMC2BLKR4 0x10
6966 #define _PSMC2BLKR5 0x20
6967 #define _PSMC2BLKR6 0x40
6968 #define _PSMC2BLKR7 0x80
6970 //==============================================================================
6973 //==============================================================================
6974 // PSMC2BLKF Bits
6976 extern __at(0x0ECC) __sfr PSMC2BLKF;
6978 typedef struct
6980 unsigned PSMC2BLKF0 : 1;
6981 unsigned PSMC2BLKF1 : 1;
6982 unsigned PSMC2BLKF2 : 1;
6983 unsigned PSMC2BLKF3 : 1;
6984 unsigned PSMC2BLKF4 : 1;
6985 unsigned PSMC2BLKF5 : 1;
6986 unsigned PSMC2BLKF6 : 1;
6987 unsigned PSMC2BLKF7 : 1;
6988 } __PSMC2BLKFbits_t;
6990 extern __at(0x0ECC) volatile __PSMC2BLKFbits_t PSMC2BLKFbits;
6992 #define _PSMC2BLKF0 0x01
6993 #define _PSMC2BLKF1 0x02
6994 #define _PSMC2BLKF2 0x04
6995 #define _PSMC2BLKF3 0x08
6996 #define _PSMC2BLKF4 0x10
6997 #define _PSMC2BLKF5 0x20
6998 #define _PSMC2BLKF6 0x40
6999 #define _PSMC2BLKF7 0x80
7001 //==============================================================================
7004 //==============================================================================
7005 // PSMC2FFA Bits
7007 extern __at(0x0ECD) __sfr PSMC2FFA;
7009 typedef union
7011 struct
7013 unsigned PSMC2FFA0 : 1;
7014 unsigned PSMC2FFA1 : 1;
7015 unsigned PSMC2FFA2 : 1;
7016 unsigned PSMC2FFA3 : 1;
7017 unsigned : 1;
7018 unsigned : 1;
7019 unsigned : 1;
7020 unsigned : 1;
7023 struct
7025 unsigned PSMC2FFA : 4;
7026 unsigned : 4;
7028 } __PSMC2FFAbits_t;
7030 extern __at(0x0ECD) volatile __PSMC2FFAbits_t PSMC2FFAbits;
7032 #define _PSMC2FFA0 0x01
7033 #define _PSMC2FFA1 0x02
7034 #define _PSMC2FFA2 0x04
7035 #define _PSMC2FFA3 0x08
7037 //==============================================================================
7040 //==============================================================================
7041 // PSMC2STR0 Bits
7043 extern __at(0x0ECE) __sfr PSMC2STR0;
7045 typedef struct
7047 unsigned P2STRA : 1;
7048 unsigned P2STRB : 1;
7049 unsigned : 1;
7050 unsigned : 1;
7051 unsigned : 1;
7052 unsigned : 1;
7053 unsigned : 1;
7054 unsigned : 1;
7055 } __PSMC2STR0bits_t;
7057 extern __at(0x0ECE) volatile __PSMC2STR0bits_t PSMC2STR0bits;
7059 #define _P2STRA 0x01
7060 #define _P2STRB 0x02
7062 //==============================================================================
7065 //==============================================================================
7066 // PSMC2STR1 Bits
7068 extern __at(0x0ECF) __sfr PSMC2STR1;
7070 typedef struct
7072 unsigned P2HSMEN : 1;
7073 unsigned P2LSMEN : 1;
7074 unsigned : 1;
7075 unsigned : 1;
7076 unsigned : 1;
7077 unsigned : 1;
7078 unsigned : 1;
7079 unsigned P2SSYNC : 1;
7080 } __PSMC2STR1bits_t;
7082 extern __at(0x0ECF) volatile __PSMC2STR1bits_t PSMC2STR1bits;
7084 #define _P2HSMEN 0x01
7085 #define _P2LSMEN 0x02
7086 #define _P2SSYNC 0x80
7088 //==============================================================================
7091 //==============================================================================
7092 // PSMC3CON Bits
7094 extern __at(0x0ED1) __sfr PSMC3CON;
7096 typedef union
7098 struct
7100 unsigned P3MODE0 : 1;
7101 unsigned P3MODE1 : 1;
7102 unsigned P3MODE2 : 1;
7103 unsigned P3MODE3 : 1;
7104 unsigned P3DBRE : 1;
7105 unsigned P3DBFE : 1;
7106 unsigned PSMC3LD : 1;
7107 unsigned PSMC3EN : 1;
7110 struct
7112 unsigned P3MODE : 4;
7113 unsigned : 4;
7115 } __PSMC3CONbits_t;
7117 extern __at(0x0ED1) volatile __PSMC3CONbits_t PSMC3CONbits;
7119 #define _P3MODE0 0x01
7120 #define _P3MODE1 0x02
7121 #define _P3MODE2 0x04
7122 #define _P3MODE3 0x08
7123 #define _P3DBRE 0x10
7124 #define _P3DBFE 0x20
7125 #define _PSMC3LD 0x40
7126 #define _PSMC3EN 0x80
7128 //==============================================================================
7131 //==============================================================================
7132 // PSMC3MDL Bits
7134 extern __at(0x0ED2) __sfr PSMC3MDL;
7136 typedef union
7138 struct
7140 unsigned P3MSRC0 : 1;
7141 unsigned P3MSRC1 : 1;
7142 unsigned P3MSRC2 : 1;
7143 unsigned P3MSRC3 : 1;
7144 unsigned : 1;
7145 unsigned P3MDLBIT : 1;
7146 unsigned P3MDLPOL : 1;
7147 unsigned P3MDLEN : 1;
7150 struct
7152 unsigned P3MSRC : 4;
7153 unsigned : 4;
7155 } __PSMC3MDLbits_t;
7157 extern __at(0x0ED2) volatile __PSMC3MDLbits_t PSMC3MDLbits;
7159 #define _P3MSRC0 0x01
7160 #define _P3MSRC1 0x02
7161 #define _P3MSRC2 0x04
7162 #define _P3MSRC3 0x08
7163 #define _P3MDLBIT 0x20
7164 #define _P3MDLPOL 0x40
7165 #define _P3MDLEN 0x80
7167 //==============================================================================
7170 //==============================================================================
7171 // PSMC3SYNC Bits
7173 extern __at(0x0ED3) __sfr PSMC3SYNC;
7175 typedef union
7177 struct
7179 unsigned P3SYNC0 : 1;
7180 unsigned P3SYNC1 : 1;
7181 unsigned P3SYNC2 : 1;
7182 unsigned : 1;
7183 unsigned : 1;
7184 unsigned P3DCPOL : 1;
7185 unsigned P3PRPOL : 1;
7186 unsigned P3POFST : 1;
7189 struct
7191 unsigned P3SYNC : 3;
7192 unsigned : 5;
7194 } __PSMC3SYNCbits_t;
7196 extern __at(0x0ED3) volatile __PSMC3SYNCbits_t PSMC3SYNCbits;
7198 #define _P3SYNC0 0x01
7199 #define _P3SYNC1 0x02
7200 #define _P3SYNC2 0x04
7201 #define _P3DCPOL 0x20
7202 #define _P3PRPOL 0x40
7203 #define _P3POFST 0x80
7205 //==============================================================================
7208 //==============================================================================
7209 // PSMC3CLK Bits
7211 extern __at(0x0ED4) __sfr PSMC3CLK;
7213 typedef union
7215 struct
7217 unsigned P3CSRC0 : 1;
7218 unsigned P3CSRC1 : 1;
7219 unsigned : 1;
7220 unsigned : 1;
7221 unsigned P3CPRE0 : 1;
7222 unsigned P3CPRE1 : 1;
7223 unsigned : 1;
7224 unsigned : 1;
7227 struct
7229 unsigned P3CSRC : 2;
7230 unsigned : 6;
7233 struct
7235 unsigned : 4;
7236 unsigned P3CPRE : 2;
7237 unsigned : 2;
7239 } __PSMC3CLKbits_t;
7241 extern __at(0x0ED4) volatile __PSMC3CLKbits_t PSMC3CLKbits;
7243 #define _P3CSRC0 0x01
7244 #define _P3CSRC1 0x02
7245 #define _P3CPRE0 0x10
7246 #define _P3CPRE1 0x20
7248 //==============================================================================
7251 //==============================================================================
7252 // PSMC3OEN Bits
7254 extern __at(0x0ED5) __sfr PSMC3OEN;
7256 typedef struct
7258 unsigned P3OEA : 1;
7259 unsigned P3OEB : 1;
7260 unsigned P3OEC : 1;
7261 unsigned P3OED : 1;
7262 unsigned P3OEE : 1;
7263 unsigned P3OEF : 1;
7264 unsigned : 1;
7265 unsigned : 1;
7266 } __PSMC3OENbits_t;
7268 extern __at(0x0ED5) volatile __PSMC3OENbits_t PSMC3OENbits;
7270 #define _P3OEA 0x01
7271 #define _P3OEB 0x02
7272 #define _P3OEC 0x04
7273 #define _P3OED 0x08
7274 #define _P3OEE 0x10
7275 #define _P3OEF 0x20
7277 //==============================================================================
7280 //==============================================================================
7281 // PSMC3POL Bits
7283 extern __at(0x0ED6) __sfr PSMC3POL;
7285 typedef struct
7287 unsigned P3POLA : 1;
7288 unsigned P3POLB : 1;
7289 unsigned P3POLC : 1;
7290 unsigned P3POLD : 1;
7291 unsigned P3POLE : 1;
7292 unsigned P3POLF : 1;
7293 unsigned P3INPOL : 1;
7294 unsigned : 1;
7295 } __PSMC3POLbits_t;
7297 extern __at(0x0ED6) volatile __PSMC3POLbits_t PSMC3POLbits;
7299 #define _P3POLA 0x01
7300 #define _P3POLB 0x02
7301 #define _P3POLC 0x04
7302 #define _P3POLD 0x08
7303 #define _P3POLE 0x10
7304 #define _P3POLF 0x20
7305 #define _P3INPOL 0x40
7307 //==============================================================================
7310 //==============================================================================
7311 // PSMC3BLNK Bits
7313 extern __at(0x0ED7) __sfr PSMC3BLNK;
7315 typedef union
7317 struct
7319 unsigned P3REBM0 : 1;
7320 unsigned P3REBM1 : 1;
7321 unsigned : 1;
7322 unsigned : 1;
7323 unsigned P3FEBM0 : 1;
7324 unsigned P3FEBM1 : 1;
7325 unsigned : 1;
7326 unsigned : 1;
7329 struct
7331 unsigned P3REBM : 2;
7332 unsigned : 6;
7335 struct
7337 unsigned : 4;
7338 unsigned P3FEBM : 2;
7339 unsigned : 2;
7341 } __PSMC3BLNKbits_t;
7343 extern __at(0x0ED7) volatile __PSMC3BLNKbits_t PSMC3BLNKbits;
7345 #define _P3REBM0 0x01
7346 #define _P3REBM1 0x02
7347 #define _P3FEBM0 0x10
7348 #define _P3FEBM1 0x20
7350 //==============================================================================
7353 //==============================================================================
7354 // PSMC3REBS Bits
7356 extern __at(0x0ED8) __sfr PSMC3REBS;
7358 typedef struct
7360 unsigned : 1;
7361 unsigned P3REBSC1 : 1;
7362 unsigned P3REBSC2 : 1;
7363 unsigned P3REBSC3 : 1;
7364 unsigned P3REBSC4 : 1;
7365 unsigned : 1;
7366 unsigned : 1;
7367 unsigned P3REBSIN : 1;
7368 } __PSMC3REBSbits_t;
7370 extern __at(0x0ED8) volatile __PSMC3REBSbits_t PSMC3REBSbits;
7372 #define _P3REBSC1 0x02
7373 #define _P3REBSC2 0x04
7374 #define _P3REBSC3 0x08
7375 #define _P3REBSC4 0x10
7376 #define _P3REBSIN 0x80
7378 //==============================================================================
7381 //==============================================================================
7382 // PSMC3FEBS Bits
7384 extern __at(0x0ED9) __sfr PSMC3FEBS;
7386 typedef struct
7388 unsigned : 1;
7389 unsigned P3FEBSC1 : 1;
7390 unsigned P3FEBSC2 : 1;
7391 unsigned P3FEBSC3 : 1;
7392 unsigned P3FEBSC4 : 1;
7393 unsigned : 1;
7394 unsigned : 1;
7395 unsigned P3FEBSIN : 1;
7396 } __PSMC3FEBSbits_t;
7398 extern __at(0x0ED9) volatile __PSMC3FEBSbits_t PSMC3FEBSbits;
7400 #define _P3FEBSC1 0x02
7401 #define _P3FEBSC2 0x04
7402 #define _P3FEBSC3 0x08
7403 #define _P3FEBSC4 0x10
7404 #define _P3FEBSIN 0x80
7406 //==============================================================================
7409 //==============================================================================
7410 // PSMC3PHS Bits
7412 extern __at(0x0EDA) __sfr PSMC3PHS;
7414 typedef struct
7416 unsigned P3PHST : 1;
7417 unsigned P3PHSC1 : 1;
7418 unsigned P3PHSC2 : 1;
7419 unsigned P3PHSC3 : 1;
7420 unsigned P3PHSC4 : 1;
7421 unsigned : 1;
7422 unsigned : 1;
7423 unsigned P3PHSIN : 1;
7424 } __PSMC3PHSbits_t;
7426 extern __at(0x0EDA) volatile __PSMC3PHSbits_t PSMC3PHSbits;
7428 #define _P3PHST 0x01
7429 #define _P3PHSC1 0x02
7430 #define _P3PHSC2 0x04
7431 #define _P3PHSC3 0x08
7432 #define _P3PHSC4 0x10
7433 #define _P3PHSIN 0x80
7435 //==============================================================================
7438 //==============================================================================
7439 // PSMC3DCS Bits
7441 extern __at(0x0EDB) __sfr PSMC3DCS;
7443 typedef struct
7445 unsigned P3DCST : 1;
7446 unsigned P3DCSC1 : 1;
7447 unsigned P3DCSC2 : 1;
7448 unsigned P3DCSC3 : 1;
7449 unsigned P3DCSC4 : 1;
7450 unsigned : 1;
7451 unsigned : 1;
7452 unsigned P3DCSIN : 1;
7453 } __PSMC3DCSbits_t;
7455 extern __at(0x0EDB) volatile __PSMC3DCSbits_t PSMC3DCSbits;
7457 #define _P3DCST 0x01
7458 #define _P3DCSC1 0x02
7459 #define _P3DCSC2 0x04
7460 #define _P3DCSC3 0x08
7461 #define _P3DCSC4 0x10
7462 #define _P3DCSIN 0x80
7464 //==============================================================================
7467 //==============================================================================
7468 // PSMC3PRS Bits
7470 extern __at(0x0EDC) __sfr PSMC3PRS;
7472 typedef struct
7474 unsigned P3PRST : 1;
7475 unsigned P3PRSC1 : 1;
7476 unsigned P3PRSC2 : 1;
7477 unsigned P3PRSC3 : 1;
7478 unsigned P3PRSC4 : 1;
7479 unsigned : 1;
7480 unsigned : 1;
7481 unsigned P3PRSIN : 1;
7482 } __PSMC3PRSbits_t;
7484 extern __at(0x0EDC) volatile __PSMC3PRSbits_t PSMC3PRSbits;
7486 #define _P3PRST 0x01
7487 #define _P3PRSC1 0x02
7488 #define _P3PRSC2 0x04
7489 #define _P3PRSC3 0x08
7490 #define _P3PRSC4 0x10
7491 #define _P3PRSIN 0x80
7493 //==============================================================================
7496 //==============================================================================
7497 // PSMC3ASDC Bits
7499 extern __at(0x0EDD) __sfr PSMC3ASDC;
7501 typedef struct
7503 unsigned P3ASDOV : 1;
7504 unsigned : 1;
7505 unsigned : 1;
7506 unsigned : 1;
7507 unsigned : 1;
7508 unsigned P3ARSEN : 1;
7509 unsigned P3ASDEN : 1;
7510 unsigned P3ASE : 1;
7511 } __PSMC3ASDCbits_t;
7513 extern __at(0x0EDD) volatile __PSMC3ASDCbits_t PSMC3ASDCbits;
7515 #define _P3ASDOV 0x01
7516 #define _P3ARSEN 0x20
7517 #define _P3ASDEN 0x40
7518 #define _P3ASE 0x80
7520 //==============================================================================
7523 //==============================================================================
7524 // PSMC3ASDL Bits
7526 extern __at(0x0EDE) __sfr PSMC3ASDL;
7528 typedef struct
7530 unsigned P3ASDLA : 1;
7531 unsigned P3ASDLB : 1;
7532 unsigned P3ASDLC : 1;
7533 unsigned P3ASDLD : 1;
7534 unsigned P3ASDLE : 1;
7535 unsigned P3ASDLF : 1;
7536 unsigned : 1;
7537 unsigned : 1;
7538 } __PSMC3ASDLbits_t;
7540 extern __at(0x0EDE) volatile __PSMC3ASDLbits_t PSMC3ASDLbits;
7542 #define _P3ASDLA 0x01
7543 #define _P3ASDLB 0x02
7544 #define _P3ASDLC 0x04
7545 #define _P3ASDLD 0x08
7546 #define _P3ASDLE 0x10
7547 #define _P3ASDLF 0x20
7549 //==============================================================================
7552 //==============================================================================
7553 // PSMC3ASDS Bits
7555 extern __at(0x0EDF) __sfr PSMC3ASDS;
7557 typedef struct
7559 unsigned : 1;
7560 unsigned P3ASDSC1 : 1;
7561 unsigned P3ASDSC2 : 1;
7562 unsigned P3ASDSC3 : 1;
7563 unsigned P3ASDSC4 : 1;
7564 unsigned : 1;
7565 unsigned : 1;
7566 unsigned P3ASDSIN : 1;
7567 } __PSMC3ASDSbits_t;
7569 extern __at(0x0EDF) volatile __PSMC3ASDSbits_t PSMC3ASDSbits;
7571 #define _P3ASDSC1 0x02
7572 #define _P3ASDSC2 0x04
7573 #define _P3ASDSC3 0x08
7574 #define _P3ASDSC4 0x10
7575 #define _P3ASDSIN 0x80
7577 //==============================================================================
7580 //==============================================================================
7581 // PSMC3INT Bits
7583 extern __at(0x0EE0) __sfr PSMC3INT;
7585 typedef struct
7587 unsigned P3TPRIF : 1;
7588 unsigned P3TDCIF : 1;
7589 unsigned P3TPHIF : 1;
7590 unsigned P3TOVIF : 1;
7591 unsigned P3TPRIE : 1;
7592 unsigned P3TDCIE : 1;
7593 unsigned P3TPHIE : 1;
7594 unsigned P3TOVIE : 1;
7595 } __PSMC3INTbits_t;
7597 extern __at(0x0EE0) volatile __PSMC3INTbits_t PSMC3INTbits;
7599 #define _P3TPRIF 0x01
7600 #define _P3TDCIF 0x02
7601 #define _P3TPHIF 0x04
7602 #define _P3TOVIF 0x08
7603 #define _P3TPRIE 0x10
7604 #define _P3TDCIE 0x20
7605 #define _P3TPHIE 0x40
7606 #define _P3TOVIE 0x80
7608 //==============================================================================
7610 extern __at(0x0EE1) __sfr PSMC3PH;
7612 //==============================================================================
7613 // PSMC3PHL Bits
7615 extern __at(0x0EE1) __sfr PSMC3PHL;
7617 typedef struct
7619 unsigned PSMC3PH0 : 1;
7620 unsigned PSMC3PH1 : 1;
7621 unsigned PSMC3PH2 : 1;
7622 unsigned PSMC3PH3 : 1;
7623 unsigned PSMC3PH4 : 1;
7624 unsigned PSMC3PH5 : 1;
7625 unsigned PSMC3PH6 : 1;
7626 unsigned PSMC3PH7 : 1;
7627 } __PSMC3PHLbits_t;
7629 extern __at(0x0EE1) volatile __PSMC3PHLbits_t PSMC3PHLbits;
7631 #define _PSMC3PH0 0x01
7632 #define _PSMC3PH1 0x02
7633 #define _PSMC3PH2 0x04
7634 #define _PSMC3PH3 0x08
7635 #define _PSMC3PH4 0x10
7636 #define _PSMC3PH5 0x20
7637 #define _PSMC3PH6 0x40
7638 #define _PSMC3PH7 0x80
7640 //==============================================================================
7643 //==============================================================================
7644 // PSMC3PHH Bits
7646 extern __at(0x0EE2) __sfr PSMC3PHH;
7648 typedef struct
7650 unsigned PSMC3PH8 : 1;
7651 unsigned PSMC3PH9 : 1;
7652 unsigned PSMC3PH10 : 1;
7653 unsigned PSMC3PH11 : 1;
7654 unsigned PSMC3PH12 : 1;
7655 unsigned PSMC3PH13 : 1;
7656 unsigned PSMC3PH14 : 1;
7657 unsigned PSMC3PH15 : 1;
7658 } __PSMC3PHHbits_t;
7660 extern __at(0x0EE2) volatile __PSMC3PHHbits_t PSMC3PHHbits;
7662 #define _PSMC3PH8 0x01
7663 #define _PSMC3PH9 0x02
7664 #define _PSMC3PH10 0x04
7665 #define _PSMC3PH11 0x08
7666 #define _PSMC3PH12 0x10
7667 #define _PSMC3PH13 0x20
7668 #define _PSMC3PH14 0x40
7669 #define _PSMC3PH15 0x80
7671 //==============================================================================
7673 extern __at(0x0EE3) __sfr PSMC3DC;
7675 //==============================================================================
7676 // PSMC3DCL Bits
7678 extern __at(0x0EE3) __sfr PSMC3DCL;
7680 typedef struct
7682 unsigned PSMC3DC0 : 1;
7683 unsigned PSMC3DC1 : 1;
7684 unsigned PSMC3DC2 : 1;
7685 unsigned PSMC3DC3 : 1;
7686 unsigned PSMC3DC4 : 1;
7687 unsigned PSMC3DC5 : 1;
7688 unsigned PSMC3DC6 : 1;
7689 unsigned PSMC3DC7 : 1;
7690 } __PSMC3DCLbits_t;
7692 extern __at(0x0EE3) volatile __PSMC3DCLbits_t PSMC3DCLbits;
7694 #define _PSMC3DC0 0x01
7695 #define _PSMC3DC1 0x02
7696 #define _PSMC3DC2 0x04
7697 #define _PSMC3DC3 0x08
7698 #define _PSMC3DC4 0x10
7699 #define _PSMC3DC5 0x20
7700 #define _PSMC3DC6 0x40
7701 #define _PSMC3DC7 0x80
7703 //==============================================================================
7706 //==============================================================================
7707 // PSMC3DCH Bits
7709 extern __at(0x0EE4) __sfr PSMC3DCH;
7711 typedef struct
7713 unsigned PSMC3DC8 : 1;
7714 unsigned PSMC3DC9 : 1;
7715 unsigned PSMC3DC10 : 1;
7716 unsigned PSMC3DC11 : 1;
7717 unsigned PSMC3DC12 : 1;
7718 unsigned PSMC3DC13 : 1;
7719 unsigned PSMC3DC14 : 1;
7720 unsigned PSMC3DC15 : 1;
7721 } __PSMC3DCHbits_t;
7723 extern __at(0x0EE4) volatile __PSMC3DCHbits_t PSMC3DCHbits;
7725 #define _PSMC3DC8 0x01
7726 #define _PSMC3DC9 0x02
7727 #define _PSMC3DC10 0x04
7728 #define _PSMC3DC11 0x08
7729 #define _PSMC3DC12 0x10
7730 #define _PSMC3DC13 0x20
7731 #define _PSMC3DC14 0x40
7732 #define _PSMC3DC15 0x80
7734 //==============================================================================
7736 extern __at(0x0EE5) __sfr PSMC3PR;
7738 //==============================================================================
7739 // PSMC3PRL Bits
7741 extern __at(0x0EE5) __sfr PSMC3PRL;
7743 typedef struct
7745 unsigned PSMC3PR0 : 1;
7746 unsigned PSMC3PR1 : 1;
7747 unsigned PSMC3PR2 : 1;
7748 unsigned PSMC3PR3 : 1;
7749 unsigned PSMC3PR4 : 1;
7750 unsigned PSMC3PR5 : 1;
7751 unsigned PSMC3PR6 : 1;
7752 unsigned PSMC3PR7 : 1;
7753 } __PSMC3PRLbits_t;
7755 extern __at(0x0EE5) volatile __PSMC3PRLbits_t PSMC3PRLbits;
7757 #define _PSMC3PR0 0x01
7758 #define _PSMC3PR1 0x02
7759 #define _PSMC3PR2 0x04
7760 #define _PSMC3PR3 0x08
7761 #define _PSMC3PR4 0x10
7762 #define _PSMC3PR5 0x20
7763 #define _PSMC3PR6 0x40
7764 #define _PSMC3PR7 0x80
7766 //==============================================================================
7769 //==============================================================================
7770 // PSMC3PRH Bits
7772 extern __at(0x0EE6) __sfr PSMC3PRH;
7774 typedef struct
7776 unsigned PSMC3PR8 : 1;
7777 unsigned PSMC3PR9 : 1;
7778 unsigned PSMC3PR10 : 1;
7779 unsigned PSMC3PR11 : 1;
7780 unsigned PSMC3PR12 : 1;
7781 unsigned PSMC3PR13 : 1;
7782 unsigned PSMC3PR14 : 1;
7783 unsigned PSMC3PR15 : 1;
7784 } __PSMC3PRHbits_t;
7786 extern __at(0x0EE6) volatile __PSMC3PRHbits_t PSMC3PRHbits;
7788 #define _PSMC3PR8 0x01
7789 #define _PSMC3PR9 0x02
7790 #define _PSMC3PR10 0x04
7791 #define _PSMC3PR11 0x08
7792 #define _PSMC3PR12 0x10
7793 #define _PSMC3PR13 0x20
7794 #define _PSMC3PR14 0x40
7795 #define _PSMC3PR15 0x80
7797 //==============================================================================
7799 extern __at(0x0EE7) __sfr PSMC3TMR;
7801 //==============================================================================
7802 // PSMC3TMRL Bits
7804 extern __at(0x0EE7) __sfr PSMC3TMRL;
7806 typedef struct
7808 unsigned PSMC3TMR0 : 1;
7809 unsigned PSMC3TMR1 : 1;
7810 unsigned PSMC3TMR2 : 1;
7811 unsigned PSMC3TMR3 : 1;
7812 unsigned PSMC3TMR4 : 1;
7813 unsigned PSMC3TMR5 : 1;
7814 unsigned PSMC3TMR6 : 1;
7815 unsigned PSMC3TMR7 : 1;
7816 } __PSMC3TMRLbits_t;
7818 extern __at(0x0EE7) volatile __PSMC3TMRLbits_t PSMC3TMRLbits;
7820 #define _PSMC3TMR0 0x01
7821 #define _PSMC3TMR1 0x02
7822 #define _PSMC3TMR2 0x04
7823 #define _PSMC3TMR3 0x08
7824 #define _PSMC3TMR4 0x10
7825 #define _PSMC3TMR5 0x20
7826 #define _PSMC3TMR6 0x40
7827 #define _PSMC3TMR7 0x80
7829 //==============================================================================
7832 //==============================================================================
7833 // PSMC3TMRH Bits
7835 extern __at(0x0EE8) __sfr PSMC3TMRH;
7837 typedef struct
7839 unsigned PSMC3TMR8 : 1;
7840 unsigned PSMC3TMR9 : 1;
7841 unsigned PSMC3TMR10 : 1;
7842 unsigned PSMC3TMR11 : 1;
7843 unsigned PSMC3TMR12 : 1;
7844 unsigned PSMC3TMR13 : 1;
7845 unsigned PSMC3TMR14 : 1;
7846 unsigned PSMC3TMR15 : 1;
7847 } __PSMC3TMRHbits_t;
7849 extern __at(0x0EE8) volatile __PSMC3TMRHbits_t PSMC3TMRHbits;
7851 #define _PSMC3TMR8 0x01
7852 #define _PSMC3TMR9 0x02
7853 #define _PSMC3TMR10 0x04
7854 #define _PSMC3TMR11 0x08
7855 #define _PSMC3TMR12 0x10
7856 #define _PSMC3TMR13 0x20
7857 #define _PSMC3TMR14 0x40
7858 #define _PSMC3TMR15 0x80
7860 //==============================================================================
7863 //==============================================================================
7864 // PSMC3DBR Bits
7866 extern __at(0x0EE9) __sfr PSMC3DBR;
7868 typedef struct
7870 unsigned PSMC3DBR0 : 1;
7871 unsigned PSMC3DBR1 : 1;
7872 unsigned PSMC3DBR2 : 1;
7873 unsigned PSMC3DBR3 : 1;
7874 unsigned PSMC3DBR4 : 1;
7875 unsigned PSMC3DBR5 : 1;
7876 unsigned PSMC3DBR6 : 1;
7877 unsigned PSMC3DBR7 : 1;
7878 } __PSMC3DBRbits_t;
7880 extern __at(0x0EE9) volatile __PSMC3DBRbits_t PSMC3DBRbits;
7882 #define _PSMC3DBR0 0x01
7883 #define _PSMC3DBR1 0x02
7884 #define _PSMC3DBR2 0x04
7885 #define _PSMC3DBR3 0x08
7886 #define _PSMC3DBR4 0x10
7887 #define _PSMC3DBR5 0x20
7888 #define _PSMC3DBR6 0x40
7889 #define _PSMC3DBR7 0x80
7891 //==============================================================================
7894 //==============================================================================
7895 // PSMC3DBF Bits
7897 extern __at(0x0EEA) __sfr PSMC3DBF;
7899 typedef struct
7901 unsigned PSMC3DBF0 : 1;
7902 unsigned PSMC3DBF1 : 1;
7903 unsigned PSMC3DBF2 : 1;
7904 unsigned PSMC3DBF3 : 1;
7905 unsigned PSMC3DBF4 : 1;
7906 unsigned PSMC3DBF5 : 1;
7907 unsigned PSMC3DBF6 : 1;
7908 unsigned PSMC3DBF7 : 1;
7909 } __PSMC3DBFbits_t;
7911 extern __at(0x0EEA) volatile __PSMC3DBFbits_t PSMC3DBFbits;
7913 #define _PSMC3DBF0 0x01
7914 #define _PSMC3DBF1 0x02
7915 #define _PSMC3DBF2 0x04
7916 #define _PSMC3DBF3 0x08
7917 #define _PSMC3DBF4 0x10
7918 #define _PSMC3DBF5 0x20
7919 #define _PSMC3DBF6 0x40
7920 #define _PSMC3DBF7 0x80
7922 //==============================================================================
7925 //==============================================================================
7926 // PSMC3BLKR Bits
7928 extern __at(0x0EEB) __sfr PSMC3BLKR;
7930 typedef struct
7932 unsigned PSMC3BLKR0 : 1;
7933 unsigned PSMC3BLKR1 : 1;
7934 unsigned PSMC3BLKR2 : 1;
7935 unsigned PSMC3BLKR3 : 1;
7936 unsigned PSMC3BLKR4 : 1;
7937 unsigned PSMC3BLKR5 : 1;
7938 unsigned PSMC3BLKR6 : 1;
7939 unsigned PSMC3BLKR7 : 1;
7940 } __PSMC3BLKRbits_t;
7942 extern __at(0x0EEB) volatile __PSMC3BLKRbits_t PSMC3BLKRbits;
7944 #define _PSMC3BLKR0 0x01
7945 #define _PSMC3BLKR1 0x02
7946 #define _PSMC3BLKR2 0x04
7947 #define _PSMC3BLKR3 0x08
7948 #define _PSMC3BLKR4 0x10
7949 #define _PSMC3BLKR5 0x20
7950 #define _PSMC3BLKR6 0x40
7951 #define _PSMC3BLKR7 0x80
7953 //==============================================================================
7956 //==============================================================================
7957 // PSMC3BLKF Bits
7959 extern __at(0x0EEC) __sfr PSMC3BLKF;
7961 typedef struct
7963 unsigned PSMC3BLKF0 : 1;
7964 unsigned PSMC3BLKF1 : 1;
7965 unsigned PSMC3BLKF2 : 1;
7966 unsigned PSMC3BLKF3 : 1;
7967 unsigned PSMC3BLKF4 : 1;
7968 unsigned PSMC3BLKF5 : 1;
7969 unsigned PSMC3BLKF6 : 1;
7970 unsigned PSMC3BLKF7 : 1;
7971 } __PSMC3BLKFbits_t;
7973 extern __at(0x0EEC) volatile __PSMC3BLKFbits_t PSMC3BLKFbits;
7975 #define _PSMC3BLKF0 0x01
7976 #define _PSMC3BLKF1 0x02
7977 #define _PSMC3BLKF2 0x04
7978 #define _PSMC3BLKF3 0x08
7979 #define _PSMC3BLKF4 0x10
7980 #define _PSMC3BLKF5 0x20
7981 #define _PSMC3BLKF6 0x40
7982 #define _PSMC3BLKF7 0x80
7984 //==============================================================================
7987 //==============================================================================
7988 // PSMC3FFA Bits
7990 extern __at(0x0EED) __sfr PSMC3FFA;
7992 typedef union
7994 struct
7996 unsigned PSMC3FFA0 : 1;
7997 unsigned PSMC3FFA1 : 1;
7998 unsigned PSMC3FFA2 : 1;
7999 unsigned PSMC3FFA3 : 1;
8000 unsigned : 1;
8001 unsigned : 1;
8002 unsigned : 1;
8003 unsigned : 1;
8006 struct
8008 unsigned PSMC3FFA : 4;
8009 unsigned : 4;
8011 } __PSMC3FFAbits_t;
8013 extern __at(0x0EED) volatile __PSMC3FFAbits_t PSMC3FFAbits;
8015 #define _PSMC3FFA0 0x01
8016 #define _PSMC3FFA1 0x02
8017 #define _PSMC3FFA2 0x04
8018 #define _PSMC3FFA3 0x08
8020 //==============================================================================
8023 //==============================================================================
8024 // PSMC3STR0 Bits
8026 extern __at(0x0EEE) __sfr PSMC3STR0;
8028 typedef struct
8030 unsigned P3STRA : 1;
8031 unsigned P3STRB : 1;
8032 unsigned P3STRC : 1;
8033 unsigned P3STRD : 1;
8034 unsigned P3STRE : 1;
8035 unsigned P3STRF : 1;
8036 unsigned : 1;
8037 unsigned : 1;
8038 } __PSMC3STR0bits_t;
8040 extern __at(0x0EEE) volatile __PSMC3STR0bits_t PSMC3STR0bits;
8042 #define _P3STRA 0x01
8043 #define _P3STRB 0x02
8044 #define _P3STRC 0x04
8045 #define _P3STRD 0x08
8046 #define _P3STRE 0x10
8047 #define _P3STRF 0x20
8049 //==============================================================================
8052 //==============================================================================
8053 // PSMC3STR1 Bits
8055 extern __at(0x0EEF) __sfr PSMC3STR1;
8057 typedef struct
8059 unsigned P3HSMEN : 1;
8060 unsigned P3LSMEN : 1;
8061 unsigned : 1;
8062 unsigned : 1;
8063 unsigned : 1;
8064 unsigned : 1;
8065 unsigned : 1;
8066 unsigned P3SSYNC : 1;
8067 } __PSMC3STR1bits_t;
8069 extern __at(0x0EEF) volatile __PSMC3STR1bits_t PSMC3STR1bits;
8071 #define _P3HSMEN 0x01
8072 #define _P3LSMEN 0x02
8073 #define _P3SSYNC 0x80
8075 //==============================================================================
8078 //==============================================================================
8079 // PSMC4CON Bits
8081 extern __at(0x0F11) __sfr PSMC4CON;
8083 typedef union
8085 struct
8087 unsigned P4MODE0 : 1;
8088 unsigned P4MODE1 : 1;
8089 unsigned P4MODE2 : 1;
8090 unsigned P4MODE3 : 1;
8091 unsigned P4DBRE : 1;
8092 unsigned P4DBFE : 1;
8093 unsigned PSMC4LD : 1;
8094 unsigned PSMC4EN : 1;
8097 struct
8099 unsigned P4MODE : 4;
8100 unsigned : 4;
8102 } __PSMC4CONbits_t;
8104 extern __at(0x0F11) volatile __PSMC4CONbits_t PSMC4CONbits;
8106 #define _P4MODE0 0x01
8107 #define _P4MODE1 0x02
8108 #define _P4MODE2 0x04
8109 #define _P4MODE3 0x08
8110 #define _P4DBRE 0x10
8111 #define _P4DBFE 0x20
8112 #define _PSMC4LD 0x40
8113 #define _PSMC4EN 0x80
8115 //==============================================================================
8118 //==============================================================================
8119 // PSMC4MDL Bits
8121 extern __at(0x0F12) __sfr PSMC4MDL;
8123 typedef union
8125 struct
8127 unsigned P4MSRC0 : 1;
8128 unsigned P4MSRC1 : 1;
8129 unsigned P4MSRC2 : 1;
8130 unsigned P4MSRC3 : 1;
8131 unsigned : 1;
8132 unsigned P4MDLBIT : 1;
8133 unsigned P4MDLPOL : 1;
8134 unsigned P4MDLEN : 1;
8137 struct
8139 unsigned P4MSRC : 4;
8140 unsigned : 4;
8142 } __PSMC4MDLbits_t;
8144 extern __at(0x0F12) volatile __PSMC4MDLbits_t PSMC4MDLbits;
8146 #define _P4MSRC0 0x01
8147 #define _P4MSRC1 0x02
8148 #define _P4MSRC2 0x04
8149 #define _P4MSRC3 0x08
8150 #define _P4MDLBIT 0x20
8151 #define _P4MDLPOL 0x40
8152 #define _P4MDLEN 0x80
8154 //==============================================================================
8157 //==============================================================================
8158 // PSMC4SYNC Bits
8160 extern __at(0x0F13) __sfr PSMC4SYNC;
8162 typedef union
8164 struct
8166 unsigned P4SYNC0 : 1;
8167 unsigned P4SYNC1 : 1;
8168 unsigned P4SYNC2 : 1;
8169 unsigned : 1;
8170 unsigned : 1;
8171 unsigned P4DCPOL : 1;
8172 unsigned P4PRPOL : 1;
8173 unsigned P4POFST : 1;
8176 struct
8178 unsigned P4SYNC : 3;
8179 unsigned : 5;
8181 } __PSMC4SYNCbits_t;
8183 extern __at(0x0F13) volatile __PSMC4SYNCbits_t PSMC4SYNCbits;
8185 #define _P4SYNC0 0x01
8186 #define _P4SYNC1 0x02
8187 #define _P4SYNC2 0x04
8188 #define _P4DCPOL 0x20
8189 #define _P4PRPOL 0x40
8190 #define _P4POFST 0x80
8192 //==============================================================================
8195 //==============================================================================
8196 // PSMC4CLK Bits
8198 extern __at(0x0F14) __sfr PSMC4CLK;
8200 typedef union
8202 struct
8204 unsigned P4CSRC0 : 1;
8205 unsigned P4CSRC1 : 1;
8206 unsigned : 1;
8207 unsigned : 1;
8208 unsigned P4CPRE0 : 1;
8209 unsigned P4CPRE1 : 1;
8210 unsigned : 1;
8211 unsigned : 1;
8214 struct
8216 unsigned P4CSRC : 2;
8217 unsigned : 6;
8220 struct
8222 unsigned : 4;
8223 unsigned P4CPRE : 2;
8224 unsigned : 2;
8226 } __PSMC4CLKbits_t;
8228 extern __at(0x0F14) volatile __PSMC4CLKbits_t PSMC4CLKbits;
8230 #define _P4CSRC0 0x01
8231 #define _P4CSRC1 0x02
8232 #define _P4CPRE0 0x10
8233 #define _P4CPRE1 0x20
8235 //==============================================================================
8238 //==============================================================================
8239 // PSMC4OEN Bits
8241 extern __at(0x0F15) __sfr PSMC4OEN;
8243 typedef struct
8245 unsigned P4OEA : 1;
8246 unsigned P4OEB : 1;
8247 unsigned : 1;
8248 unsigned : 1;
8249 unsigned : 1;
8250 unsigned : 1;
8251 unsigned : 1;
8252 unsigned : 1;
8253 } __PSMC4OENbits_t;
8255 extern __at(0x0F15) volatile __PSMC4OENbits_t PSMC4OENbits;
8257 #define _P4OEA 0x01
8258 #define _P4OEB 0x02
8260 //==============================================================================
8263 //==============================================================================
8264 // PSMC4POL Bits
8266 extern __at(0x0F16) __sfr PSMC4POL;
8268 typedef struct
8270 unsigned P4POLA : 1;
8271 unsigned P4POLB : 1;
8272 unsigned : 1;
8273 unsigned : 1;
8274 unsigned : 1;
8275 unsigned : 1;
8276 unsigned P4INPOL : 1;
8277 unsigned : 1;
8278 } __PSMC4POLbits_t;
8280 extern __at(0x0F16) volatile __PSMC4POLbits_t PSMC4POLbits;
8282 #define _P4POLA 0x01
8283 #define _P4POLB 0x02
8284 #define _P4INPOL 0x40
8286 //==============================================================================
8289 //==============================================================================
8290 // PSMC4BLNK Bits
8292 extern __at(0x0F17) __sfr PSMC4BLNK;
8294 typedef union
8296 struct
8298 unsigned P4REBM0 : 1;
8299 unsigned P4REBM1 : 1;
8300 unsigned : 1;
8301 unsigned : 1;
8302 unsigned P4FEBM0 : 1;
8303 unsigned P4FEBM1 : 1;
8304 unsigned : 1;
8305 unsigned : 1;
8308 struct
8310 unsigned P4REBM : 2;
8311 unsigned : 6;
8314 struct
8316 unsigned : 4;
8317 unsigned P4FEBM : 2;
8318 unsigned : 2;
8320 } __PSMC4BLNKbits_t;
8322 extern __at(0x0F17) volatile __PSMC4BLNKbits_t PSMC4BLNKbits;
8324 #define _P4REBM0 0x01
8325 #define _P4REBM1 0x02
8326 #define _P4FEBM0 0x10
8327 #define _P4FEBM1 0x20
8329 //==============================================================================
8332 //==============================================================================
8333 // PSMC4REBS Bits
8335 extern __at(0x0F18) __sfr PSMC4REBS;
8337 typedef struct
8339 unsigned : 1;
8340 unsigned P4REBSC1 : 1;
8341 unsigned P4REBSC2 : 1;
8342 unsigned P4REBSC3 : 1;
8343 unsigned P4REBSC4 : 1;
8344 unsigned : 1;
8345 unsigned : 1;
8346 unsigned P4REBSIN : 1;
8347 } __PSMC4REBSbits_t;
8349 extern __at(0x0F18) volatile __PSMC4REBSbits_t PSMC4REBSbits;
8351 #define _P4REBSC1 0x02
8352 #define _P4REBSC2 0x04
8353 #define _P4REBSC3 0x08
8354 #define _P4REBSC4 0x10
8355 #define _P4REBSIN 0x80
8357 //==============================================================================
8360 //==============================================================================
8361 // PSMC4FEBS Bits
8363 extern __at(0x0F19) __sfr PSMC4FEBS;
8365 typedef struct
8367 unsigned : 1;
8368 unsigned P4FEBSC1 : 1;
8369 unsigned P4FEBSC2 : 1;
8370 unsigned P4FEBSC3 : 1;
8371 unsigned P4FEBSC4 : 1;
8372 unsigned : 1;
8373 unsigned : 1;
8374 unsigned P4FEBSIN : 1;
8375 } __PSMC4FEBSbits_t;
8377 extern __at(0x0F19) volatile __PSMC4FEBSbits_t PSMC4FEBSbits;
8379 #define _P4FEBSC1 0x02
8380 #define _P4FEBSC2 0x04
8381 #define _P4FEBSC3 0x08
8382 #define _P4FEBSC4 0x10
8383 #define _P4FEBSIN 0x80
8385 //==============================================================================
8388 //==============================================================================
8389 // PSMC4PHS Bits
8391 extern __at(0x0F1A) __sfr PSMC4PHS;
8393 typedef struct
8395 unsigned P4PHST : 1;
8396 unsigned P4PHSC1 : 1;
8397 unsigned P4PHSC2 : 1;
8398 unsigned P4PHSC3 : 1;
8399 unsigned P4PHSC4 : 1;
8400 unsigned : 1;
8401 unsigned : 1;
8402 unsigned P4PHSIN : 1;
8403 } __PSMC4PHSbits_t;
8405 extern __at(0x0F1A) volatile __PSMC4PHSbits_t PSMC4PHSbits;
8407 #define _P4PHST 0x01
8408 #define _P4PHSC1 0x02
8409 #define _P4PHSC2 0x04
8410 #define _P4PHSC3 0x08
8411 #define _P4PHSC4 0x10
8412 #define _P4PHSIN 0x80
8414 //==============================================================================
8417 //==============================================================================
8418 // PSMC4DCS Bits
8420 extern __at(0x0F1B) __sfr PSMC4DCS;
8422 typedef struct
8424 unsigned P4DCST : 1;
8425 unsigned P4DCSC1 : 1;
8426 unsigned P4DCSC2 : 1;
8427 unsigned P4DCSC3 : 1;
8428 unsigned P4DCSC4 : 1;
8429 unsigned : 1;
8430 unsigned : 1;
8431 unsigned P4DCSIN : 1;
8432 } __PSMC4DCSbits_t;
8434 extern __at(0x0F1B) volatile __PSMC4DCSbits_t PSMC4DCSbits;
8436 #define _P4DCST 0x01
8437 #define _P4DCSC1 0x02
8438 #define _P4DCSC2 0x04
8439 #define _P4DCSC3 0x08
8440 #define _P4DCSC4 0x10
8441 #define _P4DCSIN 0x80
8443 //==============================================================================
8446 //==============================================================================
8447 // PSMC4PRS Bits
8449 extern __at(0x0F1C) __sfr PSMC4PRS;
8451 typedef struct
8453 unsigned P4PRST : 1;
8454 unsigned P4PRSC1 : 1;
8455 unsigned P4PRSC2 : 1;
8456 unsigned P4PRSC3 : 1;
8457 unsigned P4PRSC4 : 1;
8458 unsigned : 1;
8459 unsigned : 1;
8460 unsigned P4PRSIN : 1;
8461 } __PSMC4PRSbits_t;
8463 extern __at(0x0F1C) volatile __PSMC4PRSbits_t PSMC4PRSbits;
8465 #define _P4PRST 0x01
8466 #define _P4PRSC1 0x02
8467 #define _P4PRSC2 0x04
8468 #define _P4PRSC3 0x08
8469 #define _P4PRSC4 0x10
8470 #define _P4PRSIN 0x80
8472 //==============================================================================
8475 //==============================================================================
8476 // PSMC4ASDC Bits
8478 extern __at(0x0F1D) __sfr PSMC4ASDC;
8480 typedef struct
8482 unsigned P4ASDOV : 1;
8483 unsigned : 1;
8484 unsigned : 1;
8485 unsigned : 1;
8486 unsigned : 1;
8487 unsigned P4ARSEN : 1;
8488 unsigned P4ASDEN : 1;
8489 unsigned P4ASE : 1;
8490 } __PSMC4ASDCbits_t;
8492 extern __at(0x0F1D) volatile __PSMC4ASDCbits_t PSMC4ASDCbits;
8494 #define _P4ASDOV 0x01
8495 #define _P4ARSEN 0x20
8496 #define _P4ASDEN 0x40
8497 #define _P4ASE 0x80
8499 //==============================================================================
8502 //==============================================================================
8503 // PSMC4ASDL Bits
8505 extern __at(0x0F1E) __sfr PSMC4ASDL;
8507 typedef struct
8509 unsigned P4ASDLA : 1;
8510 unsigned P4ASDLB : 1;
8511 unsigned : 1;
8512 unsigned : 1;
8513 unsigned : 1;
8514 unsigned : 1;
8515 unsigned : 1;
8516 unsigned : 1;
8517 } __PSMC4ASDLbits_t;
8519 extern __at(0x0F1E) volatile __PSMC4ASDLbits_t PSMC4ASDLbits;
8521 #define _P4ASDLA 0x01
8522 #define _P4ASDLB 0x02
8524 //==============================================================================
8527 //==============================================================================
8528 // PSMC4ASDS Bits
8530 extern __at(0x0F1F) __sfr PSMC4ASDS;
8532 typedef struct
8534 unsigned : 1;
8535 unsigned P4ASDSC1 : 1;
8536 unsigned P4ASDSC2 : 1;
8537 unsigned P4ASDSC3 : 1;
8538 unsigned P4ASDSC4 : 1;
8539 unsigned : 1;
8540 unsigned : 1;
8541 unsigned P4ASDSIN : 1;
8542 } __PSMC4ASDSbits_t;
8544 extern __at(0x0F1F) volatile __PSMC4ASDSbits_t PSMC4ASDSbits;
8546 #define _P4ASDSC1 0x02
8547 #define _P4ASDSC2 0x04
8548 #define _P4ASDSC3 0x08
8549 #define _P4ASDSC4 0x10
8550 #define _P4ASDSIN 0x80
8552 //==============================================================================
8555 //==============================================================================
8556 // PSMC4INT Bits
8558 extern __at(0x0F20) __sfr PSMC4INT;
8560 typedef struct
8562 unsigned P4TPRIF : 1;
8563 unsigned P4TDCIF : 1;
8564 unsigned P4TPHIF : 1;
8565 unsigned P4TOVIF : 1;
8566 unsigned P4TPRIE : 1;
8567 unsigned P4TDCIE : 1;
8568 unsigned P4TPHIE : 1;
8569 unsigned P4TOVIE : 1;
8570 } __PSMC4INTbits_t;
8572 extern __at(0x0F20) volatile __PSMC4INTbits_t PSMC4INTbits;
8574 #define _P4TPRIF 0x01
8575 #define _P4TDCIF 0x02
8576 #define _P4TPHIF 0x04
8577 #define _P4TOVIF 0x08
8578 #define _P4TPRIE 0x10
8579 #define _P4TDCIE 0x20
8580 #define _P4TPHIE 0x40
8581 #define _P4TOVIE 0x80
8583 //==============================================================================
8585 extern __at(0x0F21) __sfr PSMC4PH;
8587 //==============================================================================
8588 // PSMC4PHL Bits
8590 extern __at(0x0F21) __sfr PSMC4PHL;
8592 typedef struct
8594 unsigned PSMC4PH0 : 1;
8595 unsigned PSMC4PH1 : 1;
8596 unsigned PSMC4PH2 : 1;
8597 unsigned PSMC4PH3 : 1;
8598 unsigned PSMC4PH4 : 1;
8599 unsigned PSMC4PH5 : 1;
8600 unsigned PSMC4PH6 : 1;
8601 unsigned PSMC4PH7 : 1;
8602 } __PSMC4PHLbits_t;
8604 extern __at(0x0F21) volatile __PSMC4PHLbits_t PSMC4PHLbits;
8606 #define _PSMC4PH0 0x01
8607 #define _PSMC4PH1 0x02
8608 #define _PSMC4PH2 0x04
8609 #define _PSMC4PH3 0x08
8610 #define _PSMC4PH4 0x10
8611 #define _PSMC4PH5 0x20
8612 #define _PSMC4PH6 0x40
8613 #define _PSMC4PH7 0x80
8615 //==============================================================================
8618 //==============================================================================
8619 // PSMC4PHH Bits
8621 extern __at(0x0F22) __sfr PSMC4PHH;
8623 typedef struct
8625 unsigned PSMC4PH8 : 1;
8626 unsigned PSMC4PH9 : 1;
8627 unsigned PSMC4PH10 : 1;
8628 unsigned PSMC4PH11 : 1;
8629 unsigned PSMC4PH12 : 1;
8630 unsigned PSMC4PH13 : 1;
8631 unsigned PSMC4PH14 : 1;
8632 unsigned PSMC4PH15 : 1;
8633 } __PSMC4PHHbits_t;
8635 extern __at(0x0F22) volatile __PSMC4PHHbits_t PSMC4PHHbits;
8637 #define _PSMC4PH8 0x01
8638 #define _PSMC4PH9 0x02
8639 #define _PSMC4PH10 0x04
8640 #define _PSMC4PH11 0x08
8641 #define _PSMC4PH12 0x10
8642 #define _PSMC4PH13 0x20
8643 #define _PSMC4PH14 0x40
8644 #define _PSMC4PH15 0x80
8646 //==============================================================================
8648 extern __at(0x0F23) __sfr PSMC4DC;
8650 //==============================================================================
8651 // PSMC4DCL Bits
8653 extern __at(0x0F23) __sfr PSMC4DCL;
8655 typedef struct
8657 unsigned PSMC4DC0 : 1;
8658 unsigned PSMC4DC1 : 1;
8659 unsigned PSMC4DC2 : 1;
8660 unsigned PSMC4DC3 : 1;
8661 unsigned PSMC4DC4 : 1;
8662 unsigned PSMC4DC5 : 1;
8663 unsigned PSMC4DC6 : 1;
8664 unsigned PSMC4DC7 : 1;
8665 } __PSMC4DCLbits_t;
8667 extern __at(0x0F23) volatile __PSMC4DCLbits_t PSMC4DCLbits;
8669 #define _PSMC4DC0 0x01
8670 #define _PSMC4DC1 0x02
8671 #define _PSMC4DC2 0x04
8672 #define _PSMC4DC3 0x08
8673 #define _PSMC4DC4 0x10
8674 #define _PSMC4DC5 0x20
8675 #define _PSMC4DC6 0x40
8676 #define _PSMC4DC7 0x80
8678 //==============================================================================
8681 //==============================================================================
8682 // PSMC4DCH Bits
8684 extern __at(0x0F24) __sfr PSMC4DCH;
8686 typedef struct
8688 unsigned PSMC4DC8 : 1;
8689 unsigned PSMC4DC9 : 1;
8690 unsigned PSMC4DC10 : 1;
8691 unsigned PSMC4DC11 : 1;
8692 unsigned PSMC4DC12 : 1;
8693 unsigned PSMC4DC13 : 1;
8694 unsigned PSMC4DC14 : 1;
8695 unsigned PSMC4DC15 : 1;
8696 } __PSMC4DCHbits_t;
8698 extern __at(0x0F24) volatile __PSMC4DCHbits_t PSMC4DCHbits;
8700 #define _PSMC4DC8 0x01
8701 #define _PSMC4DC9 0x02
8702 #define _PSMC4DC10 0x04
8703 #define _PSMC4DC11 0x08
8704 #define _PSMC4DC12 0x10
8705 #define _PSMC4DC13 0x20
8706 #define _PSMC4DC14 0x40
8707 #define _PSMC4DC15 0x80
8709 //==============================================================================
8711 extern __at(0x0F25) __sfr PSMC4PR;
8713 //==============================================================================
8714 // PSMC4PRL Bits
8716 extern __at(0x0F25) __sfr PSMC4PRL;
8718 typedef struct
8720 unsigned PSMC4PR0 : 1;
8721 unsigned PSMC4PR1 : 1;
8722 unsigned PSMC4PR2 : 1;
8723 unsigned PSMC4PR3 : 1;
8724 unsigned PSMC4PR4 : 1;
8725 unsigned PSMC4PR5 : 1;
8726 unsigned PSMC4PR6 : 1;
8727 unsigned PSMC4PR7 : 1;
8728 } __PSMC4PRLbits_t;
8730 extern __at(0x0F25) volatile __PSMC4PRLbits_t PSMC4PRLbits;
8732 #define _PSMC4PR0 0x01
8733 #define _PSMC4PR1 0x02
8734 #define _PSMC4PR2 0x04
8735 #define _PSMC4PR3 0x08
8736 #define _PSMC4PR4 0x10
8737 #define _PSMC4PR5 0x20
8738 #define _PSMC4PR6 0x40
8739 #define _PSMC4PR7 0x80
8741 //==============================================================================
8744 //==============================================================================
8745 // PSMC4PRH Bits
8747 extern __at(0x0F26) __sfr PSMC4PRH;
8749 typedef struct
8751 unsigned PSMC4PR8 : 1;
8752 unsigned PSMC4PR9 : 1;
8753 unsigned PSMC4PR10 : 1;
8754 unsigned PSMC4PR11 : 1;
8755 unsigned PSMC4PR12 : 1;
8756 unsigned PSMC4PR13 : 1;
8757 unsigned PSMC4PR14 : 1;
8758 unsigned PSMC4PR15 : 1;
8759 } __PSMC4PRHbits_t;
8761 extern __at(0x0F26) volatile __PSMC4PRHbits_t PSMC4PRHbits;
8763 #define _PSMC4PR8 0x01
8764 #define _PSMC4PR9 0x02
8765 #define _PSMC4PR10 0x04
8766 #define _PSMC4PR11 0x08
8767 #define _PSMC4PR12 0x10
8768 #define _PSMC4PR13 0x20
8769 #define _PSMC4PR14 0x40
8770 #define _PSMC4PR15 0x80
8772 //==============================================================================
8774 extern __at(0x0F27) __sfr PSMC4TMR;
8776 //==============================================================================
8777 // PSMC4TMRL Bits
8779 extern __at(0x0F27) __sfr PSMC4TMRL;
8781 typedef struct
8783 unsigned PSMC4TMR0 : 1;
8784 unsigned PSMC4TMR1 : 1;
8785 unsigned PSMC4TMR2 : 1;
8786 unsigned PSMC4TMR3 : 1;
8787 unsigned PSMC4TMR4 : 1;
8788 unsigned PSMC4TMR5 : 1;
8789 unsigned PSMC4TMR6 : 1;
8790 unsigned PSMC4TMR7 : 1;
8791 } __PSMC4TMRLbits_t;
8793 extern __at(0x0F27) volatile __PSMC4TMRLbits_t PSMC4TMRLbits;
8795 #define _PSMC4TMR0 0x01
8796 #define _PSMC4TMR1 0x02
8797 #define _PSMC4TMR2 0x04
8798 #define _PSMC4TMR3 0x08
8799 #define _PSMC4TMR4 0x10
8800 #define _PSMC4TMR5 0x20
8801 #define _PSMC4TMR6 0x40
8802 #define _PSMC4TMR7 0x80
8804 //==============================================================================
8807 //==============================================================================
8808 // PSMC4TMRH Bits
8810 extern __at(0x0F28) __sfr PSMC4TMRH;
8812 typedef struct
8814 unsigned PSMC4TMR8 : 1;
8815 unsigned PSMC4TMR9 : 1;
8816 unsigned PSMC4TMR10 : 1;
8817 unsigned PSMC4TMR11 : 1;
8818 unsigned PSMC4TMR12 : 1;
8819 unsigned PSMC4TMR13 : 1;
8820 unsigned PSMC4TMR14 : 1;
8821 unsigned PSMC4TMR15 : 1;
8822 } __PSMC4TMRHbits_t;
8824 extern __at(0x0F28) volatile __PSMC4TMRHbits_t PSMC4TMRHbits;
8826 #define _PSMC4TMR8 0x01
8827 #define _PSMC4TMR9 0x02
8828 #define _PSMC4TMR10 0x04
8829 #define _PSMC4TMR11 0x08
8830 #define _PSMC4TMR12 0x10
8831 #define _PSMC4TMR13 0x20
8832 #define _PSMC4TMR14 0x40
8833 #define _PSMC4TMR15 0x80
8835 //==============================================================================
8838 //==============================================================================
8839 // PSMC4DBR Bits
8841 extern __at(0x0F29) __sfr PSMC4DBR;
8843 typedef struct
8845 unsigned PSMC4DBR0 : 1;
8846 unsigned PSMC4DBR1 : 1;
8847 unsigned PSMC4DBR2 : 1;
8848 unsigned PSMC4DBR3 : 1;
8849 unsigned PSMC4DBR4 : 1;
8850 unsigned PSMC4DBR5 : 1;
8851 unsigned PSMC4DBR6 : 1;
8852 unsigned PSMC4DBR7 : 1;
8853 } __PSMC4DBRbits_t;
8855 extern __at(0x0F29) volatile __PSMC4DBRbits_t PSMC4DBRbits;
8857 #define _PSMC4DBR0 0x01
8858 #define _PSMC4DBR1 0x02
8859 #define _PSMC4DBR2 0x04
8860 #define _PSMC4DBR3 0x08
8861 #define _PSMC4DBR4 0x10
8862 #define _PSMC4DBR5 0x20
8863 #define _PSMC4DBR6 0x40
8864 #define _PSMC4DBR7 0x80
8866 //==============================================================================
8869 //==============================================================================
8870 // PSMC4DBF Bits
8872 extern __at(0x0F2A) __sfr PSMC4DBF;
8874 typedef struct
8876 unsigned PSMC4DBF0 : 1;
8877 unsigned PSMC4DBF1 : 1;
8878 unsigned PSMC4DBF2 : 1;
8879 unsigned PSMC4DBF3 : 1;
8880 unsigned PSMC4DBF4 : 1;
8881 unsigned PSMC4DBF5 : 1;
8882 unsigned PSMC4DBF6 : 1;
8883 unsigned PSMC4DBF7 : 1;
8884 } __PSMC4DBFbits_t;
8886 extern __at(0x0F2A) volatile __PSMC4DBFbits_t PSMC4DBFbits;
8888 #define _PSMC4DBF0 0x01
8889 #define _PSMC4DBF1 0x02
8890 #define _PSMC4DBF2 0x04
8891 #define _PSMC4DBF3 0x08
8892 #define _PSMC4DBF4 0x10
8893 #define _PSMC4DBF5 0x20
8894 #define _PSMC4DBF6 0x40
8895 #define _PSMC4DBF7 0x80
8897 //==============================================================================
8900 //==============================================================================
8901 // PSMC4BLKR Bits
8903 extern __at(0x0F2B) __sfr PSMC4BLKR;
8905 typedef struct
8907 unsigned PSMC4BLKR0 : 1;
8908 unsigned PSMC4BLKR1 : 1;
8909 unsigned PSMC4BLKR2 : 1;
8910 unsigned PSMC4BLKR3 : 1;
8911 unsigned PSMC4BLKR4 : 1;
8912 unsigned PSMC4BLKR5 : 1;
8913 unsigned PSMC4BLKR6 : 1;
8914 unsigned PSMC4BLKR7 : 1;
8915 } __PSMC4BLKRbits_t;
8917 extern __at(0x0F2B) volatile __PSMC4BLKRbits_t PSMC4BLKRbits;
8919 #define _PSMC4BLKR0 0x01
8920 #define _PSMC4BLKR1 0x02
8921 #define _PSMC4BLKR2 0x04
8922 #define _PSMC4BLKR3 0x08
8923 #define _PSMC4BLKR4 0x10
8924 #define _PSMC4BLKR5 0x20
8925 #define _PSMC4BLKR6 0x40
8926 #define _PSMC4BLKR7 0x80
8928 //==============================================================================
8931 //==============================================================================
8932 // PSMC4BLKF Bits
8934 extern __at(0x0F2C) __sfr PSMC4BLKF;
8936 typedef struct
8938 unsigned PSMC4BLKF0 : 1;
8939 unsigned PSMC4BLKF1 : 1;
8940 unsigned PSMC4BLKF2 : 1;
8941 unsigned PSMC4BLKF3 : 1;
8942 unsigned PSMC4BLKF4 : 1;
8943 unsigned PSMC4BLKF5 : 1;
8944 unsigned PSMC4BLKF6 : 1;
8945 unsigned PSMC4BLKF7 : 1;
8946 } __PSMC4BLKFbits_t;
8948 extern __at(0x0F2C) volatile __PSMC4BLKFbits_t PSMC4BLKFbits;
8950 #define _PSMC4BLKF0 0x01
8951 #define _PSMC4BLKF1 0x02
8952 #define _PSMC4BLKF2 0x04
8953 #define _PSMC4BLKF3 0x08
8954 #define _PSMC4BLKF4 0x10
8955 #define _PSMC4BLKF5 0x20
8956 #define _PSMC4BLKF6 0x40
8957 #define _PSMC4BLKF7 0x80
8959 //==============================================================================
8962 //==============================================================================
8963 // PSMC4FFA Bits
8965 extern __at(0x0F2D) __sfr PSMC4FFA;
8967 typedef union
8969 struct
8971 unsigned PSMC4FFA0 : 1;
8972 unsigned PSMC4FFA1 : 1;
8973 unsigned PSMC4FFA2 : 1;
8974 unsigned PSMC4FFA3 : 1;
8975 unsigned : 1;
8976 unsigned : 1;
8977 unsigned : 1;
8978 unsigned : 1;
8981 struct
8983 unsigned PSMC4FFA : 4;
8984 unsigned : 4;
8986 } __PSMC4FFAbits_t;
8988 extern __at(0x0F2D) volatile __PSMC4FFAbits_t PSMC4FFAbits;
8990 #define _PSMC4FFA0 0x01
8991 #define _PSMC4FFA1 0x02
8992 #define _PSMC4FFA2 0x04
8993 #define _PSMC4FFA3 0x08
8995 //==============================================================================
8998 //==============================================================================
8999 // PSMC4STR0 Bits
9001 extern __at(0x0F2E) __sfr PSMC4STR0;
9003 typedef struct
9005 unsigned P4STRA : 1;
9006 unsigned P4STRB : 1;
9007 unsigned : 1;
9008 unsigned : 1;
9009 unsigned : 1;
9010 unsigned : 1;
9011 unsigned : 1;
9012 unsigned : 1;
9013 } __PSMC4STR0bits_t;
9015 extern __at(0x0F2E) volatile __PSMC4STR0bits_t PSMC4STR0bits;
9017 #define _P4STRA 0x01
9018 #define _P4STRB 0x02
9020 //==============================================================================
9023 //==============================================================================
9024 // PSMC4STR1 Bits
9026 extern __at(0x0F2F) __sfr PSMC4STR1;
9028 typedef struct
9030 unsigned P4HSMEN : 1;
9031 unsigned P4LSMEN : 1;
9032 unsigned : 1;
9033 unsigned : 1;
9034 unsigned : 1;
9035 unsigned : 1;
9036 unsigned : 1;
9037 unsigned P4SSYNC : 1;
9038 } __PSMC4STR1bits_t;
9040 extern __at(0x0F2F) volatile __PSMC4STR1bits_t PSMC4STR1bits;
9042 #define _P4HSMEN 0x01
9043 #define _P4LSMEN 0x02
9044 #define _P4SSYNC 0x80
9046 //==============================================================================
9049 //==============================================================================
9050 // STATUS_SHAD Bits
9052 extern __at(0x0FE4) __sfr STATUS_SHAD;
9054 typedef struct
9056 unsigned C_SHAD : 1;
9057 unsigned DC_SHAD : 1;
9058 unsigned Z_SHAD : 1;
9059 unsigned : 1;
9060 unsigned : 1;
9061 unsigned : 1;
9062 unsigned : 1;
9063 unsigned : 1;
9064 } __STATUS_SHADbits_t;
9066 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits;
9068 #define _C_SHAD 0x01
9069 #define _DC_SHAD 0x02
9070 #define _Z_SHAD 0x04
9072 //==============================================================================
9074 extern __at(0x0FE5) __sfr WREG_SHAD;
9075 extern __at(0x0FE6) __sfr BSR_SHAD;
9076 extern __at(0x0FE7) __sfr PCLATH_SHAD;
9077 extern __at(0x0FE8) __sfr FSR0L_SHAD;
9078 extern __at(0x0FE9) __sfr FSR0H_SHAD;
9079 extern __at(0x0FEA) __sfr FSR1L_SHAD;
9080 extern __at(0x0FEB) __sfr FSR1H_SHAD;
9081 extern __at(0x0FED) __sfr STKPTR;
9082 extern __at(0x0FEE) __sfr TOSL;
9083 extern __at(0x0FEF) __sfr TOSH;
9085 //==============================================================================
9087 // Configuration Bits
9089 //==============================================================================
9091 #define _CONFIG1 0x8007
9092 #define _CONFIG2 0x8008
9094 //----------------------------- CONFIG1 Options -------------------------------
9096 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
9097 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
9098 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
9099 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
9100 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
9101 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
9102 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
9103 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin.
9104 #define _WDTE_OFF 0x3FE7 // WDT disabled.
9105 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
9106 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
9107 #define _WDTE_ON 0x3FFF // WDT enabled.
9108 #define _PWRTE_ON 0x3FDF // PWRT enabled.
9109 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
9110 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
9111 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
9112 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
9113 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
9114 #define _CPD_ON 0x3EFF // Data memory code protection is enabled.
9115 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
9116 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
9117 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
9118 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
9119 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
9120 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
9121 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
9122 #define _IESO_OFF 0x2FFF // Internal/External Switchover mode is disabled.
9123 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
9124 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
9125 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
9127 //----------------------------- CONFIG2 Options -------------------------------
9129 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
9130 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
9131 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
9132 #define _WRT_OFF 0x3FFF // Write protection off.
9133 #define _VCAPEN_ON 0x3FDF // Vcap functionality is enabled on RA6 (Vddcore is connected to the pad).
9134 #define _VCAPEN_OFF 0x3FFF // Vcap functionality is disabled on RA6.
9135 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
9136 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
9137 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
9138 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
9139 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
9140 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
9141 #define _LPBOR_ON 0x37FF // Low power brown-out is enabled.
9142 #define _LPBOR_OFF 0x3FFF // Low power brown-out is disabled.
9143 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
9144 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
9145 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
9146 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
9148 //==============================================================================
9150 #define _DEVID1 0x8006
9152 #define _IDLOC0 0x8000
9153 #define _IDLOC1 0x8001
9154 #define _IDLOC2 0x8002
9155 #define _IDLOC3 0x8003
9157 //==============================================================================
9159 #ifndef NO_BIT_DEFINES
9161 #define ADON ADCON0bits.ADON // bit 0
9162 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
9163 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
9164 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
9165 #define DONE ADCON0bits.DONE // bit 1, shadows bit in ADCON0bits
9166 #define CHS0 ADCON0bits.CHS0 // bit 2
9167 #define CHS1 ADCON0bits.CHS1 // bit 3
9168 #define CHS2 ADCON0bits.CHS2 // bit 4
9169 #define CHS3 ADCON0bits.CHS3 // bit 5
9170 #define CHS4 ADCON0bits.CHS4 // bit 6
9171 #define ADRMD ADCON0bits.ADRMD // bit 7
9173 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
9174 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
9175 #define ADNREF ADCON1bits.ADNREF // bit 2
9176 #define ADCS0 ADCON1bits.ADCS0 // bit 4
9177 #define ADCS1 ADCON1bits.ADCS1 // bit 5
9178 #define ADCS2 ADCON1bits.ADCS2 // bit 6
9179 #define ADFM ADCON1bits.ADFM // bit 7
9181 #define CHSN0 ADCON2bits.CHSN0 // bit 0
9182 #define CHSN1 ADCON2bits.CHSN1 // bit 1
9183 #define CHSN2 ADCON2bits.CHSN2 // bit 2
9184 #define CHSN3 ADCON2bits.CHSN3 // bit 3
9185 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
9186 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
9187 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
9188 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
9190 #define ANSA0 ANSELAbits.ANSA0 // bit 0
9191 #define ANSA1 ANSELAbits.ANSA1 // bit 1
9192 #define ANSA2 ANSELAbits.ANSA2 // bit 2
9193 #define ANSA3 ANSELAbits.ANSA3 // bit 3
9194 #define ANSA4 ANSELAbits.ANSA4 // bit 4
9195 #define ANSA5 ANSELAbits.ANSA5 // bit 5
9196 #define ANSA7 ANSELAbits.ANSA7 // bit 7
9198 #define ANSB0 ANSELBbits.ANSB0 // bit 0
9199 #define ANSB1 ANSELBbits.ANSB1 // bit 1
9200 #define ANSB2 ANSELBbits.ANSB2 // bit 2
9201 #define ANSB3 ANSELBbits.ANSB3 // bit 3
9202 #define ANSB4 ANSELBbits.ANSB4 // bit 4
9203 #define ANSB5 ANSELBbits.ANSB5 // bit 5
9204 #define ANSB6 ANSELBbits.ANSB6 // bit 6
9206 #define ANSC0 ANSELCbits.ANSC0 // bit 0
9207 #define ANSC1 ANSELCbits.ANSC1 // bit 1
9208 #define ANSC2 ANSELCbits.ANSC2 // bit 2
9209 #define ANSC3 ANSELCbits.ANSC3 // bit 3
9210 #define ANSC4 ANSELCbits.ANSC4 // bit 4
9211 #define ANSC5 ANSELCbits.ANSC5 // bit 5
9212 #define ANSC6 ANSELCbits.ANSC6 // bit 6
9213 #define ANSC7 ANSELCbits.ANSC7 // bit 7
9215 #define ANSD0 ANSELDbits.ANSD0 // bit 0
9216 #define ANSD1 ANSELDbits.ANSD1 // bit 1
9217 #define ANSD2 ANSELDbits.ANSD2 // bit 2
9219 #define ANSE0 ANSELEbits.ANSE0 // bit 0
9220 #define ANSE1 ANSELEbits.ANSE1 // bit 1
9221 #define ANSE2 ANSELEbits.ANSE2 // bit 2
9223 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
9224 #define RXSEL APFCONbits.RXSEL // bit 1
9225 #define TXSEL APFCONbits.TXSEL // bit 2
9226 #define SDISEL APFCONbits.SDISEL // bit 3
9227 #define SCKSEL APFCONbits.SCKSEL // bit 4
9228 #define SDOSEL APFCONbits.SDOSEL // bit 5
9229 #define CCP1SEL APFCONbits.CCP1SEL // bit 6
9230 #define C2OUTSEL APFCONbits.C2OUTSEL // bit 7
9232 #define CCP3SEL APFCON2bits.CCP3SEL // bit 0
9234 #define ABDEN BAUD1CONbits.ABDEN // bit 0
9235 #define WUE BAUD1CONbits.WUE // bit 1
9236 #define BRG16 BAUD1CONbits.BRG16 // bit 3
9237 #define SCKP BAUD1CONbits.SCKP // bit 4
9238 #define RCIDL BAUD1CONbits.RCIDL // bit 6
9239 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
9241 #define BORRDY BORCONbits.BORRDY // bit 0
9242 #define BORFS BORCONbits.BORFS // bit 6
9243 #define SBOREN BORCONbits.SBOREN // bit 7
9245 #define BSR0 BSRbits.BSR0 // bit 0
9246 #define BSR1 BSRbits.BSR1 // bit 1
9247 #define BSR2 BSRbits.BSR2 // bit 2
9248 #define BSR3 BSRbits.BSR3 // bit 3
9249 #define BSR4 BSRbits.BSR4 // bit 4
9251 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
9252 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
9253 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
9254 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
9255 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
9256 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
9258 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
9259 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
9260 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
9261 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
9262 #define DC2B0 CCP2CONbits.DC2B0 // bit 4
9263 #define DC2B1 CCP2CONbits.DC2B1 // bit 5
9265 #define CCP3M0 CCP3CONbits.CCP3M0 // bit 0
9266 #define CCP3M1 CCP3CONbits.CCP3M1 // bit 1
9267 #define CCP3M2 CCP3CONbits.CCP3M2 // bit 2
9268 #define CCP3M3 CCP3CONbits.CCP3M3 // bit 3
9269 #define DC3B0 CCP3CONbits.DC3B0 // bit 4
9270 #define DC3B1 CCP3CONbits.DC3B1 // bit 5
9272 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
9273 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
9274 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
9275 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
9276 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
9277 #define CLKRSLR CLKRCONbits.CLKRSLR // bit 5
9278 #define CLKROE CLKRCONbits.CLKROE // bit 6
9279 #define CLKREN CLKRCONbits.CLKREN // bit 7
9281 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
9282 #define C1HYS CM1CON0bits.C1HYS // bit 1
9283 #define C1SP CM1CON0bits.C1SP // bit 2
9284 #define C1ZLF CM1CON0bits.C1ZLF // bit 3
9285 #define C1POL CM1CON0bits.C1POL // bit 4
9286 #define C1OE CM1CON0bits.C1OE // bit 5
9287 #define C1OUT CM1CON0bits.C1OUT // bit 6
9288 #define C1ON CM1CON0bits.C1ON // bit 7
9290 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
9291 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
9292 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
9293 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
9294 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
9295 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
9296 #define C1INTN CM1CON1bits.C1INTN // bit 6
9297 #define C1INTP CM1CON1bits.C1INTP // bit 7
9299 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
9300 #define C2HYS CM2CON0bits.C2HYS // bit 1
9301 #define C2SP CM2CON0bits.C2SP // bit 2
9302 #define C2ZLF CM2CON0bits.C2ZLF // bit 3
9303 #define C2POL CM2CON0bits.C2POL // bit 4
9304 #define C2OE CM2CON0bits.C2OE // bit 5
9305 #define C2OUT CM2CON0bits.C2OUT // bit 6
9306 #define C2ON CM2CON0bits.C2ON // bit 7
9308 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
9309 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
9310 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
9311 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 3
9312 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 4
9313 #define C2PCH2 CM2CON1bits.C2PCH2 // bit 5
9314 #define C2INTN CM2CON1bits.C2INTN // bit 6
9315 #define C2INTP CM2CON1bits.C2INTP // bit 7
9317 #define C3SYNC CM3CON0bits.C3SYNC // bit 0
9318 #define C3HYS CM3CON0bits.C3HYS // bit 1
9319 #define C3SP CM3CON0bits.C3SP // bit 2
9320 #define C3ZLF CM3CON0bits.C3ZLF // bit 3
9321 #define C3POL CM3CON0bits.C3POL // bit 4
9322 #define C3OE CM3CON0bits.C3OE // bit 5
9323 #define C3OUT CM3CON0bits.C3OUT // bit 6
9324 #define C3ON CM3CON0bits.C3ON // bit 7
9326 #define C3NCH0 CM3CON1bits.C3NCH0 // bit 0
9327 #define C3NCH1 CM3CON1bits.C3NCH1 // bit 1
9328 #define C3NCH2 CM3CON1bits.C3NCH2 // bit 2
9329 #define C3PCH0 CM3CON1bits.C3PCH0 // bit 3
9330 #define C3PCH1 CM3CON1bits.C3PCH1 // bit 4
9331 #define C3PCH2 CM3CON1bits.C3PCH2 // bit 5
9332 #define C3INTN CM3CON1bits.C3INTN // bit 6
9333 #define C3INTP CM3CON1bits.C3INTP // bit 7
9335 #define C4SYNC CM4CON0bits.C4SYNC // bit 0
9336 #define C4HYS CM4CON0bits.C4HYS // bit 1
9337 #define C4SP CM4CON0bits.C4SP // bit 2
9338 #define C4ZLF CM4CON0bits.C4ZLF // bit 3
9339 #define C4POL CM4CON0bits.C4POL // bit 4
9340 #define C4OE CM4CON0bits.C4OE // bit 5
9341 #define C4OUT CM4CON0bits.C4OUT // bit 6
9342 #define C4ON CM4CON0bits.C4ON // bit 7
9344 #define C4NCH0 CM4CON1bits.C4NCH0 // bit 0
9345 #define C4NCH1 CM4CON1bits.C4NCH1 // bit 1
9346 #define C4NCH2 CM4CON1bits.C4NCH2 // bit 2
9347 #define C4PCH0 CM4CON1bits.C4PCH0 // bit 3
9348 #define C4PCH1 CM4CON1bits.C4PCH1 // bit 4
9349 #define C4PCH2 CM4CON1bits.C4PCH2 // bit 5
9350 #define C4INTN CM4CON1bits.C4INTN // bit 6
9351 #define C4INTP CM4CON1bits.C4INTP // bit 7
9353 #define MC1OUT CMOUTbits.MC1OUT // bit 0
9354 #define MC2OUT CMOUTbits.MC2OUT // bit 1
9355 #define MC3OUT CMOUTbits.MC3OUT // bit 2
9356 #define MC4OUT CMOUTbits.MC4OUT // bit 3
9358 #define DAC1NSS DAC1CON0bits.DAC1NSS // bit 0, shadows bit in DAC1CON0bits
9359 #define DACNSS DAC1CON0bits.DACNSS // bit 0, shadows bit in DAC1CON0bits
9360 #define DAC1PSS0 DAC1CON0bits.DAC1PSS0 // bit 2, shadows bit in DAC1CON0bits
9361 #define DACPSS0 DAC1CON0bits.DACPSS0 // bit 2, shadows bit in DAC1CON0bits
9362 #define DAC1PSS1 DAC1CON0bits.DAC1PSS1 // bit 3, shadows bit in DAC1CON0bits
9363 #define DACPSS1 DAC1CON0bits.DACPSS1 // bit 3, shadows bit in DAC1CON0bits
9364 #define DAC1OE2 DAC1CON0bits.DAC1OE2 // bit 4, shadows bit in DAC1CON0bits
9365 #define DACOE0 DAC1CON0bits.DACOE0 // bit 4, shadows bit in DAC1CON0bits
9366 #define DAC1OE1 DAC1CON0bits.DAC1OE1 // bit 5, shadows bit in DAC1CON0bits
9367 #define DACOE1 DAC1CON0bits.DACOE1 // bit 5, shadows bit in DAC1CON0bits
9368 #define DAC1EN DAC1CON0bits.DAC1EN // bit 7, shadows bit in DAC1CON0bits
9369 #define DACEN DAC1CON0bits.DACEN // bit 7, shadows bit in DAC1CON0bits
9371 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0, shadows bit in DAC1CON1bits
9372 #define DACR0 DAC1CON1bits.DACR0 // bit 0, shadows bit in DAC1CON1bits
9373 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1, shadows bit in DAC1CON1bits
9374 #define DACR1 DAC1CON1bits.DACR1 // bit 1, shadows bit in DAC1CON1bits
9375 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2, shadows bit in DAC1CON1bits
9376 #define DACR2 DAC1CON1bits.DACR2 // bit 2, shadows bit in DAC1CON1bits
9377 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3, shadows bit in DAC1CON1bits
9378 #define DACR3 DAC1CON1bits.DACR3 // bit 3, shadows bit in DAC1CON1bits
9379 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4, shadows bit in DAC1CON1bits
9380 #define DACR4 DAC1CON1bits.DACR4 // bit 4, shadows bit in DAC1CON1bits
9381 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5, shadows bit in DAC1CON1bits
9382 #define DACR5 DAC1CON1bits.DACR5 // bit 5, shadows bit in DAC1CON1bits
9383 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6, shadows bit in DAC1CON1bits
9384 #define DACR6 DAC1CON1bits.DACR6 // bit 6, shadows bit in DAC1CON1bits
9385 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7, shadows bit in DAC1CON1bits
9386 #define DACR7 DAC1CON1bits.DACR7 // bit 7, shadows bit in DAC1CON1bits
9388 #define DAC2OE2 DAC2CON0bits.DAC2OE2 // bit 4
9389 #define DAC2OE1 DAC2CON0bits.DAC2OE1 // bit 5
9390 #define DAC2EN DAC2CON0bits.DAC2EN // bit 7
9392 #define DAC3OE2 DAC3CON0bits.DAC3OE2 // bit 4
9393 #define DAC3OE1 DAC3CON0bits.DAC3OE1 // bit 5
9394 #define DAC3EN DAC3CON0bits.DAC3EN // bit 7
9396 #define DAC4OE2 DAC4CON0bits.DAC4OE2 // bit 4
9397 #define DAC4OE1 DAC4CON0bits.DAC4OE1 // bit 5
9398 #define DAC4EN DAC4CON0bits.DAC4EN // bit 7
9400 #define RD EECON1bits.RD // bit 0
9401 #define WR EECON1bits.WR // bit 1
9402 #define WREN EECON1bits.WREN // bit 2
9403 #define WRERR EECON1bits.WRERR // bit 3
9404 #define FREE EECON1bits.FREE // bit 4
9405 #define LWLO EECON1bits.LWLO // bit 5
9406 #define CFGS EECON1bits.CFGS // bit 6
9407 #define EEPGD EECON1bits.EEPGD // bit 7
9409 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
9410 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
9411 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
9412 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
9413 #define TSRNG FVRCONbits.TSRNG // bit 4
9414 #define TSEN FVRCONbits.TSEN // bit 5
9415 #define FVRRDY FVRCONbits.FVRRDY // bit 6
9416 #define FVREN FVRCONbits.FVREN // bit 7
9418 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
9419 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
9420 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
9421 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
9422 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
9423 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
9424 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
9425 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
9427 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
9428 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
9429 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
9430 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
9431 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
9432 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
9433 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
9434 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
9436 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
9437 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
9438 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
9439 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
9440 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
9441 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
9442 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
9443 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
9445 #define INLVLD0 INLVLDbits.INLVLD0 // bit 0
9446 #define INLVLD1 INLVLDbits.INLVLD1 // bit 1
9447 #define INLVLD2 INLVLDbits.INLVLD2 // bit 2
9448 #define INLVLD3 INLVLDbits.INLVLD3 // bit 3
9449 #define INLVLD4 INLVLDbits.INLVLD4 // bit 4
9450 #define INLVLD5 INLVLDbits.INLVLD5 // bit 5
9451 #define INLVLD6 INLVLDbits.INLVLD6 // bit 6
9452 #define INLVLD7 INLVLDbits.INLVLD7 // bit 7
9454 #define INLVLE0 INLVLEbits.INLVLE0 // bit 0
9455 #define INLVLE1 INLVLEbits.INLVLE1 // bit 1
9456 #define INLVLE2 INLVLEbits.INLVLE2 // bit 2
9457 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
9459 #define IOCIF INTCONbits.IOCIF // bit 0
9460 #define INTF INTCONbits.INTF // bit 1
9461 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
9462 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
9463 #define IOCIE INTCONbits.IOCIE // bit 3
9464 #define INTE INTCONbits.INTE // bit 4
9465 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
9466 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
9467 #define PEIE INTCONbits.PEIE // bit 6
9468 #define GIE INTCONbits.GIE // bit 7
9470 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
9471 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
9472 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
9473 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
9474 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
9475 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
9476 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
9477 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
9479 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
9480 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
9481 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
9482 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
9483 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
9484 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
9485 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
9486 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
9488 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
9489 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
9490 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
9491 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
9492 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
9493 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
9494 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
9495 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
9497 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
9498 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
9499 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
9500 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
9501 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
9502 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
9503 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
9504 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
9506 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
9507 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
9508 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
9509 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
9510 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
9511 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
9512 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
9513 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
9515 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
9516 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
9517 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
9518 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
9519 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
9520 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
9521 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
9522 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
9524 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
9525 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
9526 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
9527 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
9528 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
9529 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
9530 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
9531 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
9533 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
9534 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
9535 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
9536 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
9537 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
9538 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
9539 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
9540 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
9542 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
9543 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
9544 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
9545 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
9546 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
9547 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
9548 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
9549 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
9551 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
9553 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
9555 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
9557 #define LATA0 LATAbits.LATA0 // bit 0
9558 #define LATA1 LATAbits.LATA1 // bit 1
9559 #define LATA2 LATAbits.LATA2 // bit 2
9560 #define LATA3 LATAbits.LATA3 // bit 3
9561 #define LATA4 LATAbits.LATA4 // bit 4
9562 #define LATA5 LATAbits.LATA5 // bit 5
9563 #define LATA6 LATAbits.LATA6 // bit 6
9564 #define LATA7 LATAbits.LATA7 // bit 7
9566 #define LATB0 LATBbits.LATB0 // bit 0
9567 #define LATB1 LATBbits.LATB1 // bit 1
9568 #define LATB2 LATBbits.LATB2 // bit 2
9569 #define LATB3 LATBbits.LATB3 // bit 3
9570 #define LATB4 LATBbits.LATB4 // bit 4
9571 #define LATB5 LATBbits.LATB5 // bit 5
9572 #define LATB6 LATBbits.LATB6 // bit 6
9573 #define LATB7 LATBbits.LATB7 // bit 7
9575 #define LATC0 LATCbits.LATC0 // bit 0
9576 #define LATC1 LATCbits.LATC1 // bit 1
9577 #define LATC2 LATCbits.LATC2 // bit 2
9578 #define LATC3 LATCbits.LATC3 // bit 3
9579 #define LATC4 LATCbits.LATC4 // bit 4
9580 #define LATC5 LATCbits.LATC5 // bit 5
9581 #define LATC6 LATCbits.LATC6 // bit 6
9582 #define LATC7 LATCbits.LATC7 // bit 7
9584 #define LATD0 LATDbits.LATD0 // bit 0
9585 #define LATD1 LATDbits.LATD1 // bit 1
9586 #define LATD2 LATDbits.LATD2 // bit 2
9587 #define LATD3 LATDbits.LATD3 // bit 3
9588 #define LATD4 LATDbits.LATD4 // bit 4
9589 #define LATD5 LATDbits.LATD5 // bit 5
9590 #define LATD6 LATDbits.LATD6 // bit 6
9591 #define LATD7 LATDbits.LATD7 // bit 7
9593 #define LATE0 LATEbits.LATE0 // bit 0
9594 #define LATE1 LATEbits.LATE1 // bit 1
9595 #define LATE2 LATEbits.LATE2 // bit 2
9597 #define ODCONA0 ODCONAbits.ODCONA0 // bit 0
9598 #define ODCONA1 ODCONAbits.ODCONA1 // bit 1
9599 #define ODCONA2 ODCONAbits.ODCONA2 // bit 2
9600 #define ODCONA3 ODCONAbits.ODCONA3 // bit 3
9601 #define ODCONA4 ODCONAbits.ODCONA4 // bit 4
9602 #define ODCONA5 ODCONAbits.ODCONA5 // bit 5
9603 #define ODCONA6 ODCONAbits.ODCONA6 // bit 6
9604 #define ODCONA7 ODCONAbits.ODCONA7 // bit 7
9606 #define ODCONB0 ODCONBbits.ODCONB0 // bit 0
9607 #define ODCONB1 ODCONBbits.ODCONB1 // bit 1
9608 #define ODCONB2 ODCONBbits.ODCONB2 // bit 2
9609 #define ODCONB3 ODCONBbits.ODCONB3 // bit 3
9610 #define ODCONB4 ODCONBbits.ODCONB4 // bit 4
9611 #define ODCONB5 ODCONBbits.ODCONB5 // bit 5
9612 #define ODCONB6 ODCONBbits.ODCONB6 // bit 6
9613 #define ODCONB7 ODCONBbits.ODCONB7 // bit 7
9615 #define ODCONC0 ODCONCbits.ODCONC0 // bit 0
9616 #define ODCONC1 ODCONCbits.ODCONC1 // bit 1
9617 #define ODCONC2 ODCONCbits.ODCONC2 // bit 2
9618 #define ODCONC3 ODCONCbits.ODCONC3 // bit 3
9619 #define ODCONC4 ODCONCbits.ODCONC4 // bit 4
9620 #define ODCONC5 ODCONCbits.ODCONC5 // bit 5
9621 #define ODCONC6 ODCONCbits.ODCONC6 // bit 6
9622 #define ODCONC7 ODCONCbits.ODCONC7 // bit 7
9624 #define ODCOND0 ODCONDbits.ODCOND0 // bit 0
9625 #define ODCOND1 ODCONDbits.ODCOND1 // bit 1
9626 #define ODCOND2 ODCONDbits.ODCOND2 // bit 2
9627 #define ODCOND3 ODCONDbits.ODCOND3 // bit 3
9628 #define ODCOND4 ODCONDbits.ODCOND4 // bit 4
9629 #define ODCOND5 ODCONDbits.ODCOND5 // bit 5
9630 #define ODCOND6 ODCONDbits.ODCOND6 // bit 6
9631 #define ODCOND7 ODCONDbits.ODCOND7 // bit 7
9633 #define ODCONE0 ODCONEbits.ODCONE0 // bit 0
9634 #define ODCONE1 ODCONEbits.ODCONE1 // bit 1
9635 #define ODCONE2 ODCONEbits.ODCONE2 // bit 2
9637 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0, shadows bit in OPA1CONbits
9638 #define PCH0 OPA1CONbits.PCH0 // bit 0, shadows bit in OPA1CONbits
9639 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1, shadows bit in OPA1CONbits
9640 #define PCH1 OPA1CONbits.PCH1 // bit 1, shadows bit in OPA1CONbits
9641 #define OPA1PCH2 OPA1CONbits.OPA1PCH2 // bit 2, shadows bit in OPA1CONbits
9642 #define PCH2 OPA1CONbits.PCH2 // bit 2, shadows bit in OPA1CONbits
9643 #define OPA1SP OPA1CONbits.OPA1SP // bit 6, shadows bit in OPA1CONbits
9644 #define SP OPA1CONbits.SP // bit 6, shadows bit in OPA1CONbits
9645 #define OPA1EN OPA1CONbits.OPA1EN // bit 7, shadows bit in OPA1CONbits
9646 #define EN OPA1CONbits.EN // bit 7, shadows bit in OPA1CONbits
9648 #define PS0 OPTION_REGbits.PS0 // bit 0
9649 #define PS1 OPTION_REGbits.PS1 // bit 1
9650 #define PS2 OPTION_REGbits.PS2 // bit 2
9651 #define PSA OPTION_REGbits.PSA // bit 3
9652 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
9653 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
9654 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
9655 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
9656 #define INTEDG OPTION_REGbits.INTEDG // bit 6
9657 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
9659 #define SCS0 OSCCONbits.SCS0 // bit 0
9660 #define SCS1 OSCCONbits.SCS1 // bit 1
9661 #define IRCF0 OSCCONbits.IRCF0 // bit 3
9662 #define IRCF1 OSCCONbits.IRCF1 // bit 4
9663 #define IRCF2 OSCCONbits.IRCF2 // bit 5
9664 #define IRCF3 OSCCONbits.IRCF3 // bit 6
9665 #define SPLLEN OSCCONbits.SPLLEN // bit 7
9667 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
9668 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
9669 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
9670 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
9671 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
9672 #define OSTS OSCSTATbits.OSTS // bit 5
9673 #define PLLR OSCSTATbits.PLLR // bit 6
9674 #define T1OSCR OSCSTATbits.T1OSCR // bit 7
9676 #define TUN0 OSCTUNEbits.TUN0 // bit 0
9677 #define TUN1 OSCTUNEbits.TUN1 // bit 1
9678 #define TUN2 OSCTUNEbits.TUN2 // bit 2
9679 #define TUN3 OSCTUNEbits.TUN3 // bit 3
9680 #define TUN4 OSCTUNEbits.TUN4 // bit 4
9681 #define TUN5 OSCTUNEbits.TUN5 // bit 5
9683 #define NOT_BOR PCONbits.NOT_BOR // bit 0
9684 #define NOT_POR PCONbits.NOT_POR // bit 1
9685 #define NOT_RI PCONbits.NOT_RI // bit 2
9686 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
9687 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
9688 #define STKUNF PCONbits.STKUNF // bit 6
9689 #define STKOVF PCONbits.STKOVF // bit 7
9691 #define TMR1IE PIE1bits.TMR1IE // bit 0
9692 #define TMR2IE PIE1bits.TMR2IE // bit 1
9693 #define CCP1IE PIE1bits.CCP1IE // bit 2
9694 #define SSP1IE PIE1bits.SSP1IE // bit 3
9695 #define TXIE PIE1bits.TXIE // bit 4
9696 #define RCIE PIE1bits.RCIE // bit 5
9697 #define ADIE PIE1bits.ADIE // bit 6
9698 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
9700 #define CCP2IE PIE2bits.CCP2IE // bit 0
9701 #define C3IE PIE2bits.C3IE // bit 1
9702 #define C4IE PIE2bits.C4IE // bit 2
9703 #define BCL1IE PIE2bits.BCL1IE // bit 3
9704 #define EEIE PIE2bits.EEIE // bit 4
9705 #define C1IE PIE2bits.C1IE // bit 5
9706 #define C2IE PIE2bits.C2IE // bit 6
9707 #define OSFIE PIE2bits.OSFIE // bit 7
9709 #define CCP3IE PIE3bits.CCP3IE // bit 4
9711 #define PSMC1SIE PIE4bits.PSMC1SIE // bit 0
9712 #define PSMC2SIE PIE4bits.PSMC2SIE // bit 1
9713 #define PSMC3SIE PIE4bits.PSMC3SIE // bit 2
9714 #define PSMC4SIE PIE4bits.PSMC4SIE // bit 3
9715 #define PSMC1TIE PIE4bits.PSMC1TIE // bit 4
9716 #define PSMC2TIE PIE4bits.PSMC2TIE // bit 5
9717 #define PSMC3TIE PIE4bits.PSMC3TIE // bit 6, shadows bit in PIE4bits
9718 #define PMSC3TIE PIE4bits.PMSC3TIE // bit 6, shadows bit in PIE4bits
9719 #define PSMC4TIE PIE4bits.PSMC4TIE // bit 7
9721 #define TMR1IF PIR1bits.TMR1IF // bit 0
9722 #define TMR2IF PIR1bits.TMR2IF // bit 1
9723 #define CCP1IF PIR1bits.CCP1IF // bit 2
9724 #define SSP1IF PIR1bits.SSP1IF // bit 3
9725 #define TXIF PIR1bits.TXIF // bit 4
9726 #define RCIF PIR1bits.RCIF // bit 5
9727 #define ADIF PIR1bits.ADIF // bit 6
9728 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
9730 #define CCP2IF PIR2bits.CCP2IF // bit 0
9731 #define C3IF PIR2bits.C3IF // bit 1
9732 #define C4IF PIR2bits.C4IF // bit 2
9733 #define BCL1IF PIR2bits.BCL1IF // bit 3
9734 #define EEIF PIR2bits.EEIF // bit 4
9735 #define C1IF PIR2bits.C1IF // bit 5
9736 #define C2IF PIR2bits.C2IF // bit 6
9737 #define OSFIF PIR2bits.OSFIF // bit 7
9739 #define CCP3IF PIR3bits.CCP3IF // bit 4
9741 #define PSMC1SIF PIR4bits.PSMC1SIF // bit 0
9742 #define PSMC2SIF PIR4bits.PSMC2SIF // bit 1
9743 #define PSMC3SIF PIR4bits.PSMC3SIF // bit 2
9744 #define PSMC4SIF PIR4bits.PSMC4SIF // bit 3
9745 #define PSMC1TIF PIR4bits.PSMC1TIF // bit 4
9746 #define PSMC2TIF PIR4bits.PSMC2TIF // bit 5
9747 #define PSMC3TIF PIR4bits.PSMC3TIF // bit 6
9748 #define PSMC4TIF PIR4bits.PSMC4TIF // bit 7
9750 #define RA0 PORTAbits.RA0 // bit 0
9751 #define RA1 PORTAbits.RA1 // bit 1
9752 #define RA2 PORTAbits.RA2 // bit 2
9753 #define RA3 PORTAbits.RA3 // bit 3
9754 #define RA4 PORTAbits.RA4 // bit 4
9755 #define RA5 PORTAbits.RA5 // bit 5
9756 #define RA6 PORTAbits.RA6 // bit 6
9757 #define RA7 PORTAbits.RA7 // bit 7
9759 #define RB0 PORTBbits.RB0 // bit 0
9760 #define RB1 PORTBbits.RB1 // bit 1
9761 #define RB2 PORTBbits.RB2 // bit 2
9762 #define RB3 PORTBbits.RB3 // bit 3
9763 #define RB4 PORTBbits.RB4 // bit 4
9764 #define RB5 PORTBbits.RB5 // bit 5
9765 #define RB6 PORTBbits.RB6 // bit 6
9766 #define RB7 PORTBbits.RB7 // bit 7
9768 #define RC0 PORTCbits.RC0 // bit 0
9769 #define RC1 PORTCbits.RC1 // bit 1
9770 #define RC2 PORTCbits.RC2 // bit 2
9771 #define RC3 PORTCbits.RC3 // bit 3
9772 #define RC4 PORTCbits.RC4 // bit 4
9773 #define RC5 PORTCbits.RC5 // bit 5
9774 #define RC6 PORTCbits.RC6 // bit 6
9775 #define RC7 PORTCbits.RC7 // bit 7
9777 #define RD0 PORTDbits.RD0 // bit 0
9778 #define RD1 PORTDbits.RD1 // bit 1
9779 #define RD2 PORTDbits.RD2 // bit 2
9780 #define RD3 PORTDbits.RD3 // bit 3
9781 #define RD4 PORTDbits.RD4 // bit 4
9782 #define RD5 PORTDbits.RD5 // bit 5
9783 #define RD6 PORTDbits.RD6 // bit 6
9784 #define RD7 PORTDbits.RD7 // bit 7
9786 #define RE0 PORTEbits.RE0 // bit 0
9787 #define RE1 PORTEbits.RE1 // bit 1
9788 #define RE2 PORTEbits.RE2 // bit 2
9789 #define RE3 PORTEbits.RE3 // bit 3
9791 #define P1ASDOV PSMC1ASDCbits.P1ASDOV // bit 0
9792 #define P1ARSEN PSMC1ASDCbits.P1ARSEN // bit 5
9793 #define P1ASDEN PSMC1ASDCbits.P1ASDEN // bit 6
9794 #define P1ASE PSMC1ASDCbits.P1ASE // bit 7
9796 #define P1ASDLA PSMC1ASDLbits.P1ASDLA // bit 0
9797 #define P1ASDLB PSMC1ASDLbits.P1ASDLB // bit 1
9798 #define P1ASDLC PSMC1ASDLbits.P1ASDLC // bit 2
9799 #define P1ASDLD PSMC1ASDLbits.P1ASDLD // bit 3
9800 #define P1ASDLE PSMC1ASDLbits.P1ASDLE // bit 4
9801 #define P1ASDLF PSMC1ASDLbits.P1ASDLF // bit 5
9803 #define P1ASDSC1 PSMC1ASDSbits.P1ASDSC1 // bit 1
9804 #define P1ASDSC2 PSMC1ASDSbits.P1ASDSC2 // bit 2
9805 #define P1ASDSC3 PSMC1ASDSbits.P1ASDSC3 // bit 3
9806 #define P1ASDSC4 PSMC1ASDSbits.P1ASDSC4 // bit 4
9807 #define P1ASDSIN PSMC1ASDSbits.P1ASDSIN // bit 7
9809 #define PSMC1BLKF0 PSMC1BLKFbits.PSMC1BLKF0 // bit 0
9810 #define PSMC1BLKF1 PSMC1BLKFbits.PSMC1BLKF1 // bit 1
9811 #define PSMC1BLKF2 PSMC1BLKFbits.PSMC1BLKF2 // bit 2
9812 #define PSMC1BLKF3 PSMC1BLKFbits.PSMC1BLKF3 // bit 3
9813 #define PSMC1BLKF4 PSMC1BLKFbits.PSMC1BLKF4 // bit 4
9814 #define PSMC1BLKF5 PSMC1BLKFbits.PSMC1BLKF5 // bit 5
9815 #define PSMC1BLKF6 PSMC1BLKFbits.PSMC1BLKF6 // bit 6
9816 #define PSMC1BLKF7 PSMC1BLKFbits.PSMC1BLKF7 // bit 7
9818 #define PSMC1BLKR0 PSMC1BLKRbits.PSMC1BLKR0 // bit 0
9819 #define PSMC1BLKR1 PSMC1BLKRbits.PSMC1BLKR1 // bit 1
9820 #define PSMC1BLKR2 PSMC1BLKRbits.PSMC1BLKR2 // bit 2
9821 #define PSMC1BLKR3 PSMC1BLKRbits.PSMC1BLKR3 // bit 3
9822 #define PSMC1BLKR4 PSMC1BLKRbits.PSMC1BLKR4 // bit 4
9823 #define PSMC1BLKR5 PSMC1BLKRbits.PSMC1BLKR5 // bit 5
9824 #define PSMC1BLKR6 PSMC1BLKRbits.PSMC1BLKR6 // bit 6
9825 #define PSMC1BLKR7 PSMC1BLKRbits.PSMC1BLKR7 // bit 7
9827 #define P1REBM0 PSMC1BLNKbits.P1REBM0 // bit 0
9828 #define P1REBM1 PSMC1BLNKbits.P1REBM1 // bit 1
9829 #define P1FEBM0 PSMC1BLNKbits.P1FEBM0 // bit 4
9830 #define P1FEBM1 PSMC1BLNKbits.P1FEBM1 // bit 5
9832 #define P1CSRC0 PSMC1CLKbits.P1CSRC0 // bit 0
9833 #define P1CSRC1 PSMC1CLKbits.P1CSRC1 // bit 1
9834 #define P1CPRE0 PSMC1CLKbits.P1CPRE0 // bit 4
9835 #define P1CPRE1 PSMC1CLKbits.P1CPRE1 // bit 5
9837 #define P1MODE0 PSMC1CONbits.P1MODE0 // bit 0
9838 #define P1MODE1 PSMC1CONbits.P1MODE1 // bit 1
9839 #define P1MODE2 PSMC1CONbits.P1MODE2 // bit 2
9840 #define P1MODE3 PSMC1CONbits.P1MODE3 // bit 3
9841 #define P1DBRE PSMC1CONbits.P1DBRE // bit 4
9842 #define P1DBFE PSMC1CONbits.P1DBFE // bit 5
9843 #define PSMC1LD PSMC1CONbits.PSMC1LD // bit 6
9844 #define PSMC1EN PSMC1CONbits.PSMC1EN // bit 7
9846 #define PSMC1DBF0 PSMC1DBFbits.PSMC1DBF0 // bit 0
9847 #define PSMC1DBF1 PSMC1DBFbits.PSMC1DBF1 // bit 1
9848 #define PSMC1DBF2 PSMC1DBFbits.PSMC1DBF2 // bit 2
9849 #define PSMC1DBF3 PSMC1DBFbits.PSMC1DBF3 // bit 3
9850 #define PSMC1DBF4 PSMC1DBFbits.PSMC1DBF4 // bit 4
9851 #define PSMC1DBF5 PSMC1DBFbits.PSMC1DBF5 // bit 5
9852 #define PSMC1DBF6 PSMC1DBFbits.PSMC1DBF6 // bit 6
9853 #define PSMC1DBF7 PSMC1DBFbits.PSMC1DBF7 // bit 7
9855 #define PSMC1DBR0 PSMC1DBRbits.PSMC1DBR0 // bit 0
9856 #define PSMC1DBR1 PSMC1DBRbits.PSMC1DBR1 // bit 1
9857 #define PSMC1DBR2 PSMC1DBRbits.PSMC1DBR2 // bit 2
9858 #define PSMC1DBR3 PSMC1DBRbits.PSMC1DBR3 // bit 3
9859 #define PSMC1DBR4 PSMC1DBRbits.PSMC1DBR4 // bit 4
9860 #define PSMC1DBR5 PSMC1DBRbits.PSMC1DBR5 // bit 5
9861 #define PSMC1DBR6 PSMC1DBRbits.PSMC1DBR6 // bit 6
9862 #define PSMC1DBR7 PSMC1DBRbits.PSMC1DBR7 // bit 7
9864 #define PSMC1DC8 PSMC1DCHbits.PSMC1DC8 // bit 0
9865 #define PSMC1DC9 PSMC1DCHbits.PSMC1DC9 // bit 1
9866 #define PSMC1DC10 PSMC1DCHbits.PSMC1DC10 // bit 2
9867 #define PSMC1DC11 PSMC1DCHbits.PSMC1DC11 // bit 3
9868 #define PSMC1DC12 PSMC1DCHbits.PSMC1DC12 // bit 4
9869 #define PSMC1DC13 PSMC1DCHbits.PSMC1DC13 // bit 5
9870 #define PSMC1DC14 PSMC1DCHbits.PSMC1DC14 // bit 6
9871 #define PSMC1DC15 PSMC1DCHbits.PSMC1DC15 // bit 7
9873 #define PSMC1DC0 PSMC1DCLbits.PSMC1DC0 // bit 0
9874 #define PSMC1DC1 PSMC1DCLbits.PSMC1DC1 // bit 1
9875 #define PSMC1DC2 PSMC1DCLbits.PSMC1DC2 // bit 2
9876 #define PSMC1DC3 PSMC1DCLbits.PSMC1DC3 // bit 3
9877 #define PSMC1DC4 PSMC1DCLbits.PSMC1DC4 // bit 4
9878 #define PSMC1DC5 PSMC1DCLbits.PSMC1DC5 // bit 5
9879 #define PSMC1DC6 PSMC1DCLbits.PSMC1DC6 // bit 6
9880 #define PSMC1DC7 PSMC1DCLbits.PSMC1DC7 // bit 7
9882 #define P1DCST PSMC1DCSbits.P1DCST // bit 0
9883 #define P1DCSC1 PSMC1DCSbits.P1DCSC1 // bit 1
9884 #define P1DCSC2 PSMC1DCSbits.P1DCSC2 // bit 2
9885 #define P1DCSC3 PSMC1DCSbits.P1DCSC3 // bit 3
9886 #define P1DCSC4 PSMC1DCSbits.P1DCSC4 // bit 4
9887 #define P1DCSIN PSMC1DCSbits.P1DCSIN // bit 7
9889 #define P1FEBSC1 PSMC1FEBSbits.P1FEBSC1 // bit 1
9890 #define P1FEBSC2 PSMC1FEBSbits.P1FEBSC2 // bit 2
9891 #define P1FEBSC3 PSMC1FEBSbits.P1FEBSC3 // bit 3
9892 #define P1FEBSC4 PSMC1FEBSbits.P1FEBSC4 // bit 4
9893 #define P1FEBSIN PSMC1FEBSbits.P1FEBSIN // bit 7
9895 #define PSMC1FFA0 PSMC1FFAbits.PSMC1FFA0 // bit 0
9896 #define PSMC1FFA1 PSMC1FFAbits.PSMC1FFA1 // bit 1
9897 #define PSMC1FFA2 PSMC1FFAbits.PSMC1FFA2 // bit 2
9898 #define PSMC1FFA3 PSMC1FFAbits.PSMC1FFA3 // bit 3
9900 #define P1TPRIF PSMC1INTbits.P1TPRIF // bit 0
9901 #define P1TDCIF PSMC1INTbits.P1TDCIF // bit 1
9902 #define P1TPHIF PSMC1INTbits.P1TPHIF // bit 2
9903 #define P1TOVIF PSMC1INTbits.P1TOVIF // bit 3
9904 #define P1TPRIE PSMC1INTbits.P1TPRIE // bit 4
9905 #define P1TDCIE PSMC1INTbits.P1TDCIE // bit 5
9906 #define P1TPHIE PSMC1INTbits.P1TPHIE // bit 6
9907 #define P1TOVIE PSMC1INTbits.P1TOVIE // bit 7
9909 #define P1MSRC0 PSMC1MDLbits.P1MSRC0 // bit 0
9910 #define P1MSRC1 PSMC1MDLbits.P1MSRC1 // bit 1
9911 #define P1MSRC2 PSMC1MDLbits.P1MSRC2 // bit 2
9912 #define P1MSRC3 PSMC1MDLbits.P1MSRC3 // bit 3
9913 #define P1MDLBIT PSMC1MDLbits.P1MDLBIT // bit 5
9914 #define P1MDLPOL PSMC1MDLbits.P1MDLPOL // bit 6
9915 #define P1MDLEN PSMC1MDLbits.P1MDLEN // bit 7
9917 #define P1OEA PSMC1OENbits.P1OEA // bit 0
9918 #define P1OEB PSMC1OENbits.P1OEB // bit 1
9919 #define P1OEC PSMC1OENbits.P1OEC // bit 2
9920 #define P1OED PSMC1OENbits.P1OED // bit 3
9921 #define P1OEE PSMC1OENbits.P1OEE // bit 4
9922 #define P1OEF PSMC1OENbits.P1OEF // bit 5
9924 #define PSMC1PH8 PSMC1PHHbits.PSMC1PH8 // bit 0
9925 #define PSMC1PH9 PSMC1PHHbits.PSMC1PH9 // bit 1
9926 #define PSMC1PH10 PSMC1PHHbits.PSMC1PH10 // bit 2
9927 #define PSMC1PH11 PSMC1PHHbits.PSMC1PH11 // bit 3
9928 #define PSMC1PH12 PSMC1PHHbits.PSMC1PH12 // bit 4
9929 #define PSMC1PH13 PSMC1PHHbits.PSMC1PH13 // bit 5
9930 #define PSMC1PH14 PSMC1PHHbits.PSMC1PH14 // bit 6
9931 #define PSMC1PH15 PSMC1PHHbits.PSMC1PH15 // bit 7
9933 #define PSMC1PH0 PSMC1PHLbits.PSMC1PH0 // bit 0
9934 #define PSMC1PH1 PSMC1PHLbits.PSMC1PH1 // bit 1
9935 #define PSMC1PH2 PSMC1PHLbits.PSMC1PH2 // bit 2
9936 #define PSMC1PH3 PSMC1PHLbits.PSMC1PH3 // bit 3
9937 #define PSMC1PH4 PSMC1PHLbits.PSMC1PH4 // bit 4
9938 #define PSMC1PH5 PSMC1PHLbits.PSMC1PH5 // bit 5
9939 #define PSMC1PH6 PSMC1PHLbits.PSMC1PH6 // bit 6
9940 #define PSMC1PH7 PSMC1PHLbits.PSMC1PH7 // bit 7
9942 #define P1PHST PSMC1PHSbits.P1PHST // bit 0
9943 #define P1PHSC1 PSMC1PHSbits.P1PHSC1 // bit 1
9944 #define P1PHSC2 PSMC1PHSbits.P1PHSC2 // bit 2
9945 #define P1PHSC3 PSMC1PHSbits.P1PHSC3 // bit 3
9946 #define P1PHSC4 PSMC1PHSbits.P1PHSC4 // bit 4
9947 #define P1PHSIN PSMC1PHSbits.P1PHSIN // bit 7
9949 #define P1POLA PSMC1POLbits.P1POLA // bit 0
9950 #define P1POLB PSMC1POLbits.P1POLB // bit 1
9951 #define P1POLC PSMC1POLbits.P1POLC // bit 2
9952 #define P1POLD PSMC1POLbits.P1POLD // bit 3
9953 #define P1POLE PSMC1POLbits.P1POLE // bit 4
9954 #define P1POLF PSMC1POLbits.P1POLF // bit 5
9955 #define P1INPOL PSMC1POLbits.P1INPOL // bit 6
9957 #define PSMC1PR8 PSMC1PRHbits.PSMC1PR8 // bit 0
9958 #define PSMC1PR9 PSMC1PRHbits.PSMC1PR9 // bit 1
9959 #define PSMC1PR10 PSMC1PRHbits.PSMC1PR10 // bit 2
9960 #define PSMC1PR11 PSMC1PRHbits.PSMC1PR11 // bit 3
9961 #define PSMC1PR12 PSMC1PRHbits.PSMC1PR12 // bit 4
9962 #define PSMC1PR13 PSMC1PRHbits.PSMC1PR13 // bit 5
9963 #define PSMC1PR14 PSMC1PRHbits.PSMC1PR14 // bit 6
9964 #define PSMC1PR15 PSMC1PRHbits.PSMC1PR15 // bit 7
9966 #define PSMC1PR0 PSMC1PRLbits.PSMC1PR0 // bit 0
9967 #define PSMC1PR1 PSMC1PRLbits.PSMC1PR1 // bit 1
9968 #define PSMC1PR2 PSMC1PRLbits.PSMC1PR2 // bit 2
9969 #define PSMC1PR3 PSMC1PRLbits.PSMC1PR3 // bit 3
9970 #define PSMC1PR4 PSMC1PRLbits.PSMC1PR4 // bit 4
9971 #define PSMC1PR5 PSMC1PRLbits.PSMC1PR5 // bit 5
9972 #define PSMC1PR6 PSMC1PRLbits.PSMC1PR6 // bit 6
9973 #define PSMC1PR7 PSMC1PRLbits.PSMC1PR7 // bit 7
9975 #define P1PRST PSMC1PRSbits.P1PRST // bit 0
9976 #define P1PRSC1 PSMC1PRSbits.P1PRSC1 // bit 1
9977 #define P1PRSC2 PSMC1PRSbits.P1PRSC2 // bit 2
9978 #define P1PRSC3 PSMC1PRSbits.P1PRSC3 // bit 3
9979 #define P1PRSC4 PSMC1PRSbits.P1PRSC4 // bit 4
9980 #define P1PRSIN PSMC1PRSbits.P1PRSIN // bit 7
9982 #define P1REBSC1 PSMC1REBSbits.P1REBSC1 // bit 1
9983 #define P1REBSC2 PSMC1REBSbits.P1REBSC2 // bit 2
9984 #define P1REBSC3 PSMC1REBSbits.P1REBSC3 // bit 3
9985 #define P1REBSC4 PSMC1REBSbits.P1REBSC4 // bit 4
9986 #define P1REBSIN PSMC1REBSbits.P1REBSIN // bit 7
9988 #define P1STRA PSMC1STR0bits.P1STRA // bit 0
9989 #define P1STRB PSMC1STR0bits.P1STRB // bit 1
9990 #define P1STRC PSMC1STR0bits.P1STRC // bit 2
9991 #define P1STRD PSMC1STR0bits.P1STRD // bit 3
9992 #define P1STRE PSMC1STR0bits.P1STRE // bit 4
9993 #define P1STRF PSMC1STR0bits.P1STRF // bit 5
9995 #define P1HSMEN PSMC1STR1bits.P1HSMEN // bit 0
9996 #define P1LSMEN PSMC1STR1bits.P1LSMEN // bit 1
9997 #define P1SSYNC PSMC1STR1bits.P1SSYNC // bit 7
9999 #define P1SYNC0 PSMC1SYNCbits.P1SYNC0 // bit 0
10000 #define P1SYNC1 PSMC1SYNCbits.P1SYNC1 // bit 1
10001 #define P1SYNC2 PSMC1SYNCbits.P1SYNC2 // bit 2
10002 #define P1DCPOL PSMC1SYNCbits.P1DCPOL // bit 5
10003 #define P1PRPOL PSMC1SYNCbits.P1PRPOL // bit 6
10004 #define P1POFST PSMC1SYNCbits.P1POFST // bit 7
10006 #define PSMC1TMR8 PSMC1TMRHbits.PSMC1TMR8 // bit 0
10007 #define PSMC1TMR9 PSMC1TMRHbits.PSMC1TMR9 // bit 1
10008 #define PSMC1TMR10 PSMC1TMRHbits.PSMC1TMR10 // bit 2
10009 #define PSMC1TMR11 PSMC1TMRHbits.PSMC1TMR11 // bit 3
10010 #define PSMC1TMR12 PSMC1TMRHbits.PSMC1TMR12 // bit 4
10011 #define PSMC1TMR13 PSMC1TMRHbits.PSMC1TMR13 // bit 5
10012 #define PSMC1TMR14 PSMC1TMRHbits.PSMC1TMR14 // bit 6
10013 #define PSMC1TMR15 PSMC1TMRHbits.PSMC1TMR15 // bit 7
10015 #define PSMC1TMR0 PSMC1TMRLbits.PSMC1TMR0 // bit 0
10016 #define PSMC1TMR1 PSMC1TMRLbits.PSMC1TMR1 // bit 1
10017 #define PSMC1TMR2 PSMC1TMRLbits.PSMC1TMR2 // bit 2
10018 #define PSMC1TMR3 PSMC1TMRLbits.PSMC1TMR3 // bit 3
10019 #define PSMC1TMR4 PSMC1TMRLbits.PSMC1TMR4 // bit 4
10020 #define PSMC1TMR5 PSMC1TMRLbits.PSMC1TMR5 // bit 5
10021 #define PSMC1TMR6 PSMC1TMRLbits.PSMC1TMR6 // bit 6
10022 #define PSMC1TMR7 PSMC1TMRLbits.PSMC1TMR7 // bit 7
10024 #define P2ASDOV PSMC2ASDCbits.P2ASDOV // bit 0
10025 #define P2ARSEN PSMC2ASDCbits.P2ARSEN // bit 5
10026 #define P2ASDEN PSMC2ASDCbits.P2ASDEN // bit 6
10027 #define P2ASE PSMC2ASDCbits.P2ASE // bit 7
10029 #define P2ASDLA PSMC2ASDLbits.P2ASDLA // bit 0
10030 #define P2ASDLB PSMC2ASDLbits.P2ASDLB // bit 1
10032 #define P2ASDSC1 PSMC2ASDSbits.P2ASDSC1 // bit 1
10033 #define P2ASDSC2 PSMC2ASDSbits.P2ASDSC2 // bit 2
10034 #define P2ASDSC3 PSMC2ASDSbits.P2ASDSC3 // bit 3
10035 #define P2ASDSC4 PSMC2ASDSbits.P2ASDSC4 // bit 4
10036 #define P2ASDSIN PSMC2ASDSbits.P2ASDSIN // bit 7
10038 #define PSMC2BLKF0 PSMC2BLKFbits.PSMC2BLKF0 // bit 0
10039 #define PSMC2BLKF1 PSMC2BLKFbits.PSMC2BLKF1 // bit 1
10040 #define PSMC2BLKF2 PSMC2BLKFbits.PSMC2BLKF2 // bit 2
10041 #define PSMC2BLKF3 PSMC2BLKFbits.PSMC2BLKF3 // bit 3
10042 #define PSMC2BLKF4 PSMC2BLKFbits.PSMC2BLKF4 // bit 4
10043 #define PSMC2BLKF5 PSMC2BLKFbits.PSMC2BLKF5 // bit 5
10044 #define PSMC2BLKF6 PSMC2BLKFbits.PSMC2BLKF6 // bit 6
10045 #define PSMC2BLKF7 PSMC2BLKFbits.PSMC2BLKF7 // bit 7
10047 #define PSMC2BLKR0 PSMC2BLKRbits.PSMC2BLKR0 // bit 0
10048 #define PSMC2BLKR1 PSMC2BLKRbits.PSMC2BLKR1 // bit 1
10049 #define PSMC2BLKR2 PSMC2BLKRbits.PSMC2BLKR2 // bit 2
10050 #define PSMC2BLKR3 PSMC2BLKRbits.PSMC2BLKR3 // bit 3
10051 #define PSMC2BLKR4 PSMC2BLKRbits.PSMC2BLKR4 // bit 4
10052 #define PSMC2BLKR5 PSMC2BLKRbits.PSMC2BLKR5 // bit 5
10053 #define PSMC2BLKR6 PSMC2BLKRbits.PSMC2BLKR6 // bit 6
10054 #define PSMC2BLKR7 PSMC2BLKRbits.PSMC2BLKR7 // bit 7
10056 #define P2REBM0 PSMC2BLNKbits.P2REBM0 // bit 0
10057 #define P2REBM1 PSMC2BLNKbits.P2REBM1 // bit 1
10058 #define P2FEBM0 PSMC2BLNKbits.P2FEBM0 // bit 4
10059 #define P2FEBM1 PSMC2BLNKbits.P2FEBM1 // bit 5
10061 #define P2CSRC0 PSMC2CLKbits.P2CSRC0 // bit 0
10062 #define P2CSRC1 PSMC2CLKbits.P2CSRC1 // bit 1
10063 #define P2CPRE0 PSMC2CLKbits.P2CPRE0 // bit 4
10064 #define P2CPRE1 PSMC2CLKbits.P2CPRE1 // bit 5
10066 #define P2MODE0 PSMC2CONbits.P2MODE0 // bit 0
10067 #define P2MODE1 PSMC2CONbits.P2MODE1 // bit 1
10068 #define P2MODE2 PSMC2CONbits.P2MODE2 // bit 2
10069 #define P2MODE3 PSMC2CONbits.P2MODE3 // bit 3
10070 #define P2DBRE PSMC2CONbits.P2DBRE // bit 4
10071 #define P2DBFE PSMC2CONbits.P2DBFE // bit 5
10072 #define PSMC2LD PSMC2CONbits.PSMC2LD // bit 6
10073 #define PSMC2EN PSMC2CONbits.PSMC2EN // bit 7
10075 #define PSMC2DBF0 PSMC2DBFbits.PSMC2DBF0 // bit 0
10076 #define PSMC2DBF1 PSMC2DBFbits.PSMC2DBF1 // bit 1
10077 #define PSMC2DBF2 PSMC2DBFbits.PSMC2DBF2 // bit 2
10078 #define PSMC2DBF3 PSMC2DBFbits.PSMC2DBF3 // bit 3
10079 #define PSMC2DBF4 PSMC2DBFbits.PSMC2DBF4 // bit 4
10080 #define PSMC2DBF5 PSMC2DBFbits.PSMC2DBF5 // bit 5
10081 #define PSMC2DBF6 PSMC2DBFbits.PSMC2DBF6 // bit 6
10082 #define PSMC2DBF7 PSMC2DBFbits.PSMC2DBF7 // bit 7
10084 #define PSMC2DBR0 PSMC2DBRbits.PSMC2DBR0 // bit 0
10085 #define PSMC2DBR1 PSMC2DBRbits.PSMC2DBR1 // bit 1
10086 #define PSMC2DBR2 PSMC2DBRbits.PSMC2DBR2 // bit 2
10087 #define PSMC2DBR3 PSMC2DBRbits.PSMC2DBR3 // bit 3
10088 #define PSMC2DBR4 PSMC2DBRbits.PSMC2DBR4 // bit 4
10089 #define PSMC2DBR5 PSMC2DBRbits.PSMC2DBR5 // bit 5
10090 #define PSMC2DBR6 PSMC2DBRbits.PSMC2DBR6 // bit 6
10091 #define PSMC2DBR7 PSMC2DBRbits.PSMC2DBR7 // bit 7
10093 #define PSMC2DC8 PSMC2DCHbits.PSMC2DC8 // bit 0
10094 #define PSMC2DC9 PSMC2DCHbits.PSMC2DC9 // bit 1
10095 #define PSMC2DC10 PSMC2DCHbits.PSMC2DC10 // bit 2
10096 #define PSMC2DC11 PSMC2DCHbits.PSMC2DC11 // bit 3
10097 #define PSMC2DC12 PSMC2DCHbits.PSMC2DC12 // bit 4
10098 #define PSMC2DC13 PSMC2DCHbits.PSMC2DC13 // bit 5
10099 #define PSMC2DC14 PSMC2DCHbits.PSMC2DC14 // bit 6
10100 #define PSMC2DC15 PSMC2DCHbits.PSMC2DC15 // bit 7
10102 #define PSMC2DC0 PSMC2DCLbits.PSMC2DC0 // bit 0
10103 #define PSMC2DC1 PSMC2DCLbits.PSMC2DC1 // bit 1
10104 #define PSMC2DC2 PSMC2DCLbits.PSMC2DC2 // bit 2
10105 #define PSMC2DC3 PSMC2DCLbits.PSMC2DC3 // bit 3
10106 #define PSMC2DC4 PSMC2DCLbits.PSMC2DC4 // bit 4
10107 #define PSMC2DC5 PSMC2DCLbits.PSMC2DC5 // bit 5
10108 #define PSMC2DC6 PSMC2DCLbits.PSMC2DC6 // bit 6
10109 #define PSMC2DC7 PSMC2DCLbits.PSMC2DC7 // bit 7
10111 #define P2DCST PSMC2DCSbits.P2DCST // bit 0
10112 #define P2DCSC1 PSMC2DCSbits.P2DCSC1 // bit 1
10113 #define P2DCSC2 PSMC2DCSbits.P2DCSC2 // bit 2
10114 #define P2DCSC3 PSMC2DCSbits.P2DCSC3 // bit 3
10115 #define P2DCSC4 PSMC2DCSbits.P2DCSC4 // bit 4
10116 #define P2DCSIN PSMC2DCSbits.P2DCSIN // bit 7
10118 #define P2FEBSC1 PSMC2FEBSbits.P2FEBSC1 // bit 1
10119 #define P2FEBSC2 PSMC2FEBSbits.P2FEBSC2 // bit 2
10120 #define P2FEBSC3 PSMC2FEBSbits.P2FEBSC3 // bit 3
10121 #define P2FEBSC4 PSMC2FEBSbits.P2FEBSC4 // bit 4
10122 #define P2FEBSIN PSMC2FEBSbits.P2FEBSIN // bit 7
10124 #define PSMC2FFA0 PSMC2FFAbits.PSMC2FFA0 // bit 0
10125 #define PSMC2FFA1 PSMC2FFAbits.PSMC2FFA1 // bit 1
10126 #define PSMC2FFA2 PSMC2FFAbits.PSMC2FFA2 // bit 2
10127 #define PSMC2FFA3 PSMC2FFAbits.PSMC2FFA3 // bit 3
10129 #define P2TPRIF PSMC2INTbits.P2TPRIF // bit 0
10130 #define P2TDCIF PSMC2INTbits.P2TDCIF // bit 1
10131 #define P2TPHIF PSMC2INTbits.P2TPHIF // bit 2
10132 #define P2TOVIF PSMC2INTbits.P2TOVIF // bit 3
10133 #define P2TPRIE PSMC2INTbits.P2TPRIE // bit 4
10134 #define P2TDCIE PSMC2INTbits.P2TDCIE // bit 5
10135 #define P2TPHIE PSMC2INTbits.P2TPHIE // bit 6
10136 #define P2TOVIE PSMC2INTbits.P2TOVIE // bit 7
10138 #define P2MSRC0 PSMC2MDLbits.P2MSRC0 // bit 0
10139 #define P2MSRC1 PSMC2MDLbits.P2MSRC1 // bit 1
10140 #define P2MSRC2 PSMC2MDLbits.P2MSRC2 // bit 2
10141 #define P2MSRC3 PSMC2MDLbits.P2MSRC3 // bit 3
10142 #define P2MDLBIT PSMC2MDLbits.P2MDLBIT // bit 5
10143 #define P2MDLPOL PSMC2MDLbits.P2MDLPOL // bit 6
10144 #define P2MDLEN PSMC2MDLbits.P2MDLEN // bit 7
10146 #define P2OEA PSMC2OENbits.P2OEA // bit 0
10147 #define P2OEB PSMC2OENbits.P2OEB // bit 1
10149 #define PSMC2PH8 PSMC2PHHbits.PSMC2PH8 // bit 0
10150 #define PSMC2PH9 PSMC2PHHbits.PSMC2PH9 // bit 1
10151 #define PSMC2PH10 PSMC2PHHbits.PSMC2PH10 // bit 2
10152 #define PSMC2PH11 PSMC2PHHbits.PSMC2PH11 // bit 3
10153 #define PSMC2PH12 PSMC2PHHbits.PSMC2PH12 // bit 4
10154 #define PSMC2PH13 PSMC2PHHbits.PSMC2PH13 // bit 5
10155 #define PSMC2PH14 PSMC2PHHbits.PSMC2PH14 // bit 6
10156 #define PSMC2PH15 PSMC2PHHbits.PSMC2PH15 // bit 7
10158 #define PSMC2PH0 PSMC2PHLbits.PSMC2PH0 // bit 0
10159 #define PSMC2PH1 PSMC2PHLbits.PSMC2PH1 // bit 1
10160 #define PSMC2PH2 PSMC2PHLbits.PSMC2PH2 // bit 2
10161 #define PSMC2PH3 PSMC2PHLbits.PSMC2PH3 // bit 3
10162 #define PSMC2PH4 PSMC2PHLbits.PSMC2PH4 // bit 4
10163 #define PSMC2PH5 PSMC2PHLbits.PSMC2PH5 // bit 5
10164 #define PSMC2PH6 PSMC2PHLbits.PSMC2PH6 // bit 6
10165 #define PSMC2PH7 PSMC2PHLbits.PSMC2PH7 // bit 7
10167 #define P2PHST PSMC2PHSbits.P2PHST // bit 0
10168 #define P2PHSC1 PSMC2PHSbits.P2PHSC1 // bit 1
10169 #define P2PHSC2 PSMC2PHSbits.P2PHSC2 // bit 2
10170 #define P2PHSC3 PSMC2PHSbits.P2PHSC3 // bit 3
10171 #define P2PHSC4 PSMC2PHSbits.P2PHSC4 // bit 4
10172 #define P2PHSIN PSMC2PHSbits.P2PHSIN // bit 7
10174 #define P2POLA PSMC2POLbits.P2POLA // bit 0
10175 #define P2POLB PSMC2POLbits.P2POLB // bit 1
10176 #define P2INPOL PSMC2POLbits.P2INPOL // bit 6
10178 #define PSMC2PR8 PSMC2PRHbits.PSMC2PR8 // bit 0
10179 #define PSMC2PR9 PSMC2PRHbits.PSMC2PR9 // bit 1
10180 #define PSMC2PR10 PSMC2PRHbits.PSMC2PR10 // bit 2
10181 #define PSMC2PR11 PSMC2PRHbits.PSMC2PR11 // bit 3
10182 #define PSMC2PR12 PSMC2PRHbits.PSMC2PR12 // bit 4
10183 #define PSMC2PR13 PSMC2PRHbits.PSMC2PR13 // bit 5
10184 #define PSMC2PR14 PSMC2PRHbits.PSMC2PR14 // bit 6
10185 #define PSMC2PR15 PSMC2PRHbits.PSMC2PR15 // bit 7
10187 #define PSMC2PR0 PSMC2PRLbits.PSMC2PR0 // bit 0
10188 #define PSMC2PR1 PSMC2PRLbits.PSMC2PR1 // bit 1
10189 #define PSMC2PR2 PSMC2PRLbits.PSMC2PR2 // bit 2
10190 #define PSMC2PR3 PSMC2PRLbits.PSMC2PR3 // bit 3
10191 #define PSMC2PR4 PSMC2PRLbits.PSMC2PR4 // bit 4
10192 #define PSMC2PR5 PSMC2PRLbits.PSMC2PR5 // bit 5
10193 #define PSMC2PR6 PSMC2PRLbits.PSMC2PR6 // bit 6
10194 #define PSMC2PR7 PSMC2PRLbits.PSMC2PR7 // bit 7
10196 #define P2PRST PSMC2PRSbits.P2PRST // bit 0
10197 #define P2PRSC1 PSMC2PRSbits.P2PRSC1 // bit 1
10198 #define P2PRSC2 PSMC2PRSbits.P2PRSC2 // bit 2
10199 #define P2PRSC3 PSMC2PRSbits.P2PRSC3 // bit 3
10200 #define P2PRSC4 PSMC2PRSbits.P2PRSC4 // bit 4
10201 #define P2PRSIN PSMC2PRSbits.P2PRSIN // bit 7
10203 #define P2REBSC1 PSMC2REBSbits.P2REBSC1 // bit 1
10204 #define P2REBSC2 PSMC2REBSbits.P2REBSC2 // bit 2
10205 #define P2REBSC3 PSMC2REBSbits.P2REBSC3 // bit 3
10206 #define P2REBSC4 PSMC2REBSbits.P2REBSC4 // bit 4
10207 #define P2REBSIN PSMC2REBSbits.P2REBSIN // bit 7
10209 #define P2STRA PSMC2STR0bits.P2STRA // bit 0
10210 #define P2STRB PSMC2STR0bits.P2STRB // bit 1
10212 #define P2HSMEN PSMC2STR1bits.P2HSMEN // bit 0
10213 #define P2LSMEN PSMC2STR1bits.P2LSMEN // bit 1
10214 #define P2SSYNC PSMC2STR1bits.P2SSYNC // bit 7
10216 #define P2SYNC0 PSMC2SYNCbits.P2SYNC0 // bit 0
10217 #define P2SYNC1 PSMC2SYNCbits.P2SYNC1 // bit 1
10218 #define P2SYNC2 PSMC2SYNCbits.P2SYNC2 // bit 2
10219 #define P2DCPOL PSMC2SYNCbits.P2DCPOL // bit 5
10220 #define P2PRPOL PSMC2SYNCbits.P2PRPOL // bit 6
10221 #define P2POFST PSMC2SYNCbits.P2POFST // bit 7
10223 #define PSMC2TMR8 PSMC2TMRHbits.PSMC2TMR8 // bit 0
10224 #define PSMC2TMR9 PSMC2TMRHbits.PSMC2TMR9 // bit 1
10225 #define PSMC2TMR10 PSMC2TMRHbits.PSMC2TMR10 // bit 2
10226 #define PSMC2TMR11 PSMC2TMRHbits.PSMC2TMR11 // bit 3
10227 #define PSMC2TMR12 PSMC2TMRHbits.PSMC2TMR12 // bit 4
10228 #define PSMC2TMR13 PSMC2TMRHbits.PSMC2TMR13 // bit 5
10229 #define PSMC2TMR14 PSMC2TMRHbits.PSMC2TMR14 // bit 6
10230 #define PSMC2TMR15 PSMC2TMRHbits.PSMC2TMR15 // bit 7
10232 #define PSMC2TMR0 PSMC2TMRLbits.PSMC2TMR0 // bit 0
10233 #define PSMC2TMR1 PSMC2TMRLbits.PSMC2TMR1 // bit 1
10234 #define PSMC2TMR2 PSMC2TMRLbits.PSMC2TMR2 // bit 2
10235 #define PSMC2TMR3 PSMC2TMRLbits.PSMC2TMR3 // bit 3
10236 #define PSMC2TMR4 PSMC2TMRLbits.PSMC2TMR4 // bit 4
10237 #define PSMC2TMR5 PSMC2TMRLbits.PSMC2TMR5 // bit 5
10238 #define PSMC2TMR6 PSMC2TMRLbits.PSMC2TMR6 // bit 6
10239 #define PSMC2TMR7 PSMC2TMRLbits.PSMC2TMR7 // bit 7
10241 #define P3ASDOV PSMC3ASDCbits.P3ASDOV // bit 0
10242 #define P3ARSEN PSMC3ASDCbits.P3ARSEN // bit 5
10243 #define P3ASDEN PSMC3ASDCbits.P3ASDEN // bit 6
10244 #define P3ASE PSMC3ASDCbits.P3ASE // bit 7
10246 #define P3ASDLA PSMC3ASDLbits.P3ASDLA // bit 0
10247 #define P3ASDLB PSMC3ASDLbits.P3ASDLB // bit 1
10248 #define P3ASDLC PSMC3ASDLbits.P3ASDLC // bit 2
10249 #define P3ASDLD PSMC3ASDLbits.P3ASDLD // bit 3
10250 #define P3ASDLE PSMC3ASDLbits.P3ASDLE // bit 4
10251 #define P3ASDLF PSMC3ASDLbits.P3ASDLF // bit 5
10253 #define P3ASDSC1 PSMC3ASDSbits.P3ASDSC1 // bit 1
10254 #define P3ASDSC2 PSMC3ASDSbits.P3ASDSC2 // bit 2
10255 #define P3ASDSC3 PSMC3ASDSbits.P3ASDSC3 // bit 3
10256 #define P3ASDSC4 PSMC3ASDSbits.P3ASDSC4 // bit 4
10257 #define P3ASDSIN PSMC3ASDSbits.P3ASDSIN // bit 7
10259 #define PSMC3BLKF0 PSMC3BLKFbits.PSMC3BLKF0 // bit 0
10260 #define PSMC3BLKF1 PSMC3BLKFbits.PSMC3BLKF1 // bit 1
10261 #define PSMC3BLKF2 PSMC3BLKFbits.PSMC3BLKF2 // bit 2
10262 #define PSMC3BLKF3 PSMC3BLKFbits.PSMC3BLKF3 // bit 3
10263 #define PSMC3BLKF4 PSMC3BLKFbits.PSMC3BLKF4 // bit 4
10264 #define PSMC3BLKF5 PSMC3BLKFbits.PSMC3BLKF5 // bit 5
10265 #define PSMC3BLKF6 PSMC3BLKFbits.PSMC3BLKF6 // bit 6
10266 #define PSMC3BLKF7 PSMC3BLKFbits.PSMC3BLKF7 // bit 7
10268 #define PSMC3BLKR0 PSMC3BLKRbits.PSMC3BLKR0 // bit 0
10269 #define PSMC3BLKR1 PSMC3BLKRbits.PSMC3BLKR1 // bit 1
10270 #define PSMC3BLKR2 PSMC3BLKRbits.PSMC3BLKR2 // bit 2
10271 #define PSMC3BLKR3 PSMC3BLKRbits.PSMC3BLKR3 // bit 3
10272 #define PSMC3BLKR4 PSMC3BLKRbits.PSMC3BLKR4 // bit 4
10273 #define PSMC3BLKR5 PSMC3BLKRbits.PSMC3BLKR5 // bit 5
10274 #define PSMC3BLKR6 PSMC3BLKRbits.PSMC3BLKR6 // bit 6
10275 #define PSMC3BLKR7 PSMC3BLKRbits.PSMC3BLKR7 // bit 7
10277 #define P3REBM0 PSMC3BLNKbits.P3REBM0 // bit 0
10278 #define P3REBM1 PSMC3BLNKbits.P3REBM1 // bit 1
10279 #define P3FEBM0 PSMC3BLNKbits.P3FEBM0 // bit 4
10280 #define P3FEBM1 PSMC3BLNKbits.P3FEBM1 // bit 5
10282 #define P3CSRC0 PSMC3CLKbits.P3CSRC0 // bit 0
10283 #define P3CSRC1 PSMC3CLKbits.P3CSRC1 // bit 1
10284 #define P3CPRE0 PSMC3CLKbits.P3CPRE0 // bit 4
10285 #define P3CPRE1 PSMC3CLKbits.P3CPRE1 // bit 5
10287 #define P3MODE0 PSMC3CONbits.P3MODE0 // bit 0
10288 #define P3MODE1 PSMC3CONbits.P3MODE1 // bit 1
10289 #define P3MODE2 PSMC3CONbits.P3MODE2 // bit 2
10290 #define P3MODE3 PSMC3CONbits.P3MODE3 // bit 3
10291 #define P3DBRE PSMC3CONbits.P3DBRE // bit 4
10292 #define P3DBFE PSMC3CONbits.P3DBFE // bit 5
10293 #define PSMC3LD PSMC3CONbits.PSMC3LD // bit 6
10294 #define PSMC3EN PSMC3CONbits.PSMC3EN // bit 7
10296 #define PSMC3DBF0 PSMC3DBFbits.PSMC3DBF0 // bit 0
10297 #define PSMC3DBF1 PSMC3DBFbits.PSMC3DBF1 // bit 1
10298 #define PSMC3DBF2 PSMC3DBFbits.PSMC3DBF2 // bit 2
10299 #define PSMC3DBF3 PSMC3DBFbits.PSMC3DBF3 // bit 3
10300 #define PSMC3DBF4 PSMC3DBFbits.PSMC3DBF4 // bit 4
10301 #define PSMC3DBF5 PSMC3DBFbits.PSMC3DBF5 // bit 5
10302 #define PSMC3DBF6 PSMC3DBFbits.PSMC3DBF6 // bit 6
10303 #define PSMC3DBF7 PSMC3DBFbits.PSMC3DBF7 // bit 7
10305 #define PSMC3DBR0 PSMC3DBRbits.PSMC3DBR0 // bit 0
10306 #define PSMC3DBR1 PSMC3DBRbits.PSMC3DBR1 // bit 1
10307 #define PSMC3DBR2 PSMC3DBRbits.PSMC3DBR2 // bit 2
10308 #define PSMC3DBR3 PSMC3DBRbits.PSMC3DBR3 // bit 3
10309 #define PSMC3DBR4 PSMC3DBRbits.PSMC3DBR4 // bit 4
10310 #define PSMC3DBR5 PSMC3DBRbits.PSMC3DBR5 // bit 5
10311 #define PSMC3DBR6 PSMC3DBRbits.PSMC3DBR6 // bit 6
10312 #define PSMC3DBR7 PSMC3DBRbits.PSMC3DBR7 // bit 7
10314 #define PSMC3DC8 PSMC3DCHbits.PSMC3DC8 // bit 0
10315 #define PSMC3DC9 PSMC3DCHbits.PSMC3DC9 // bit 1
10316 #define PSMC3DC10 PSMC3DCHbits.PSMC3DC10 // bit 2
10317 #define PSMC3DC11 PSMC3DCHbits.PSMC3DC11 // bit 3
10318 #define PSMC3DC12 PSMC3DCHbits.PSMC3DC12 // bit 4
10319 #define PSMC3DC13 PSMC3DCHbits.PSMC3DC13 // bit 5
10320 #define PSMC3DC14 PSMC3DCHbits.PSMC3DC14 // bit 6
10321 #define PSMC3DC15 PSMC3DCHbits.PSMC3DC15 // bit 7
10323 #define PSMC3DC0 PSMC3DCLbits.PSMC3DC0 // bit 0
10324 #define PSMC3DC1 PSMC3DCLbits.PSMC3DC1 // bit 1
10325 #define PSMC3DC2 PSMC3DCLbits.PSMC3DC2 // bit 2
10326 #define PSMC3DC3 PSMC3DCLbits.PSMC3DC3 // bit 3
10327 #define PSMC3DC4 PSMC3DCLbits.PSMC3DC4 // bit 4
10328 #define PSMC3DC5 PSMC3DCLbits.PSMC3DC5 // bit 5
10329 #define PSMC3DC6 PSMC3DCLbits.PSMC3DC6 // bit 6
10330 #define PSMC3DC7 PSMC3DCLbits.PSMC3DC7 // bit 7
10332 #define P3DCST PSMC3DCSbits.P3DCST // bit 0
10333 #define P3DCSC1 PSMC3DCSbits.P3DCSC1 // bit 1
10334 #define P3DCSC2 PSMC3DCSbits.P3DCSC2 // bit 2
10335 #define P3DCSC3 PSMC3DCSbits.P3DCSC3 // bit 3
10336 #define P3DCSC4 PSMC3DCSbits.P3DCSC4 // bit 4
10337 #define P3DCSIN PSMC3DCSbits.P3DCSIN // bit 7
10339 #define P3FEBSC1 PSMC3FEBSbits.P3FEBSC1 // bit 1
10340 #define P3FEBSC2 PSMC3FEBSbits.P3FEBSC2 // bit 2
10341 #define P3FEBSC3 PSMC3FEBSbits.P3FEBSC3 // bit 3
10342 #define P3FEBSC4 PSMC3FEBSbits.P3FEBSC4 // bit 4
10343 #define P3FEBSIN PSMC3FEBSbits.P3FEBSIN // bit 7
10345 #define PSMC3FFA0 PSMC3FFAbits.PSMC3FFA0 // bit 0
10346 #define PSMC3FFA1 PSMC3FFAbits.PSMC3FFA1 // bit 1
10347 #define PSMC3FFA2 PSMC3FFAbits.PSMC3FFA2 // bit 2
10348 #define PSMC3FFA3 PSMC3FFAbits.PSMC3FFA3 // bit 3
10350 #define P3TPRIF PSMC3INTbits.P3TPRIF // bit 0
10351 #define P3TDCIF PSMC3INTbits.P3TDCIF // bit 1
10352 #define P3TPHIF PSMC3INTbits.P3TPHIF // bit 2
10353 #define P3TOVIF PSMC3INTbits.P3TOVIF // bit 3
10354 #define P3TPRIE PSMC3INTbits.P3TPRIE // bit 4
10355 #define P3TDCIE PSMC3INTbits.P3TDCIE // bit 5
10356 #define P3TPHIE PSMC3INTbits.P3TPHIE // bit 6
10357 #define P3TOVIE PSMC3INTbits.P3TOVIE // bit 7
10359 #define P3MSRC0 PSMC3MDLbits.P3MSRC0 // bit 0
10360 #define P3MSRC1 PSMC3MDLbits.P3MSRC1 // bit 1
10361 #define P3MSRC2 PSMC3MDLbits.P3MSRC2 // bit 2
10362 #define P3MSRC3 PSMC3MDLbits.P3MSRC3 // bit 3
10363 #define P3MDLBIT PSMC3MDLbits.P3MDLBIT // bit 5
10364 #define P3MDLPOL PSMC3MDLbits.P3MDLPOL // bit 6
10365 #define P3MDLEN PSMC3MDLbits.P3MDLEN // bit 7
10367 #define P3OEA PSMC3OENbits.P3OEA // bit 0
10368 #define P3OEB PSMC3OENbits.P3OEB // bit 1
10369 #define P3OEC PSMC3OENbits.P3OEC // bit 2
10370 #define P3OED PSMC3OENbits.P3OED // bit 3
10371 #define P3OEE PSMC3OENbits.P3OEE // bit 4
10372 #define P3OEF PSMC3OENbits.P3OEF // bit 5
10374 #define PSMC3PH8 PSMC3PHHbits.PSMC3PH8 // bit 0
10375 #define PSMC3PH9 PSMC3PHHbits.PSMC3PH9 // bit 1
10376 #define PSMC3PH10 PSMC3PHHbits.PSMC3PH10 // bit 2
10377 #define PSMC3PH11 PSMC3PHHbits.PSMC3PH11 // bit 3
10378 #define PSMC3PH12 PSMC3PHHbits.PSMC3PH12 // bit 4
10379 #define PSMC3PH13 PSMC3PHHbits.PSMC3PH13 // bit 5
10380 #define PSMC3PH14 PSMC3PHHbits.PSMC3PH14 // bit 6
10381 #define PSMC3PH15 PSMC3PHHbits.PSMC3PH15 // bit 7
10383 #define PSMC3PH0 PSMC3PHLbits.PSMC3PH0 // bit 0
10384 #define PSMC3PH1 PSMC3PHLbits.PSMC3PH1 // bit 1
10385 #define PSMC3PH2 PSMC3PHLbits.PSMC3PH2 // bit 2
10386 #define PSMC3PH3 PSMC3PHLbits.PSMC3PH3 // bit 3
10387 #define PSMC3PH4 PSMC3PHLbits.PSMC3PH4 // bit 4
10388 #define PSMC3PH5 PSMC3PHLbits.PSMC3PH5 // bit 5
10389 #define PSMC3PH6 PSMC3PHLbits.PSMC3PH6 // bit 6
10390 #define PSMC3PH7 PSMC3PHLbits.PSMC3PH7 // bit 7
10392 #define P3PHST PSMC3PHSbits.P3PHST // bit 0
10393 #define P3PHSC1 PSMC3PHSbits.P3PHSC1 // bit 1
10394 #define P3PHSC2 PSMC3PHSbits.P3PHSC2 // bit 2
10395 #define P3PHSC3 PSMC3PHSbits.P3PHSC3 // bit 3
10396 #define P3PHSC4 PSMC3PHSbits.P3PHSC4 // bit 4
10397 #define P3PHSIN PSMC3PHSbits.P3PHSIN // bit 7
10399 #define P3POLA PSMC3POLbits.P3POLA // bit 0
10400 #define P3POLB PSMC3POLbits.P3POLB // bit 1
10401 #define P3POLC PSMC3POLbits.P3POLC // bit 2
10402 #define P3POLD PSMC3POLbits.P3POLD // bit 3
10403 #define P3POLE PSMC3POLbits.P3POLE // bit 4
10404 #define P3POLF PSMC3POLbits.P3POLF // bit 5
10405 #define P3INPOL PSMC3POLbits.P3INPOL // bit 6
10407 #define PSMC3PR8 PSMC3PRHbits.PSMC3PR8 // bit 0
10408 #define PSMC3PR9 PSMC3PRHbits.PSMC3PR9 // bit 1
10409 #define PSMC3PR10 PSMC3PRHbits.PSMC3PR10 // bit 2
10410 #define PSMC3PR11 PSMC3PRHbits.PSMC3PR11 // bit 3
10411 #define PSMC3PR12 PSMC3PRHbits.PSMC3PR12 // bit 4
10412 #define PSMC3PR13 PSMC3PRHbits.PSMC3PR13 // bit 5
10413 #define PSMC3PR14 PSMC3PRHbits.PSMC3PR14 // bit 6
10414 #define PSMC3PR15 PSMC3PRHbits.PSMC3PR15 // bit 7
10416 #define PSMC3PR0 PSMC3PRLbits.PSMC3PR0 // bit 0
10417 #define PSMC3PR1 PSMC3PRLbits.PSMC3PR1 // bit 1
10418 #define PSMC3PR2 PSMC3PRLbits.PSMC3PR2 // bit 2
10419 #define PSMC3PR3 PSMC3PRLbits.PSMC3PR3 // bit 3
10420 #define PSMC3PR4 PSMC3PRLbits.PSMC3PR4 // bit 4
10421 #define PSMC3PR5 PSMC3PRLbits.PSMC3PR5 // bit 5
10422 #define PSMC3PR6 PSMC3PRLbits.PSMC3PR6 // bit 6
10423 #define PSMC3PR7 PSMC3PRLbits.PSMC3PR7 // bit 7
10425 #define P3PRST PSMC3PRSbits.P3PRST // bit 0
10426 #define P3PRSC1 PSMC3PRSbits.P3PRSC1 // bit 1
10427 #define P3PRSC2 PSMC3PRSbits.P3PRSC2 // bit 2
10428 #define P3PRSC3 PSMC3PRSbits.P3PRSC3 // bit 3
10429 #define P3PRSC4 PSMC3PRSbits.P3PRSC4 // bit 4
10430 #define P3PRSIN PSMC3PRSbits.P3PRSIN // bit 7
10432 #define P3REBSC1 PSMC3REBSbits.P3REBSC1 // bit 1
10433 #define P3REBSC2 PSMC3REBSbits.P3REBSC2 // bit 2
10434 #define P3REBSC3 PSMC3REBSbits.P3REBSC3 // bit 3
10435 #define P3REBSC4 PSMC3REBSbits.P3REBSC4 // bit 4
10436 #define P3REBSIN PSMC3REBSbits.P3REBSIN // bit 7
10438 #define P3STRA PSMC3STR0bits.P3STRA // bit 0
10439 #define P3STRB PSMC3STR0bits.P3STRB // bit 1
10440 #define P3STRC PSMC3STR0bits.P3STRC // bit 2
10441 #define P3STRD PSMC3STR0bits.P3STRD // bit 3
10442 #define P3STRE PSMC3STR0bits.P3STRE // bit 4
10443 #define P3STRF PSMC3STR0bits.P3STRF // bit 5
10445 #define P3HSMEN PSMC3STR1bits.P3HSMEN // bit 0
10446 #define P3LSMEN PSMC3STR1bits.P3LSMEN // bit 1
10447 #define P3SSYNC PSMC3STR1bits.P3SSYNC // bit 7
10449 #define P3SYNC0 PSMC3SYNCbits.P3SYNC0 // bit 0
10450 #define P3SYNC1 PSMC3SYNCbits.P3SYNC1 // bit 1
10451 #define P3SYNC2 PSMC3SYNCbits.P3SYNC2 // bit 2
10452 #define P3DCPOL PSMC3SYNCbits.P3DCPOL // bit 5
10453 #define P3PRPOL PSMC3SYNCbits.P3PRPOL // bit 6
10454 #define P3POFST PSMC3SYNCbits.P3POFST // bit 7
10456 #define PSMC3TMR8 PSMC3TMRHbits.PSMC3TMR8 // bit 0
10457 #define PSMC3TMR9 PSMC3TMRHbits.PSMC3TMR9 // bit 1
10458 #define PSMC3TMR10 PSMC3TMRHbits.PSMC3TMR10 // bit 2
10459 #define PSMC3TMR11 PSMC3TMRHbits.PSMC3TMR11 // bit 3
10460 #define PSMC3TMR12 PSMC3TMRHbits.PSMC3TMR12 // bit 4
10461 #define PSMC3TMR13 PSMC3TMRHbits.PSMC3TMR13 // bit 5
10462 #define PSMC3TMR14 PSMC3TMRHbits.PSMC3TMR14 // bit 6
10463 #define PSMC3TMR15 PSMC3TMRHbits.PSMC3TMR15 // bit 7
10465 #define PSMC3TMR0 PSMC3TMRLbits.PSMC3TMR0 // bit 0
10466 #define PSMC3TMR1 PSMC3TMRLbits.PSMC3TMR1 // bit 1
10467 #define PSMC3TMR2 PSMC3TMRLbits.PSMC3TMR2 // bit 2
10468 #define PSMC3TMR3 PSMC3TMRLbits.PSMC3TMR3 // bit 3
10469 #define PSMC3TMR4 PSMC3TMRLbits.PSMC3TMR4 // bit 4
10470 #define PSMC3TMR5 PSMC3TMRLbits.PSMC3TMR5 // bit 5
10471 #define PSMC3TMR6 PSMC3TMRLbits.PSMC3TMR6 // bit 6
10472 #define PSMC3TMR7 PSMC3TMRLbits.PSMC3TMR7 // bit 7
10474 #define P4ASDOV PSMC4ASDCbits.P4ASDOV // bit 0
10475 #define P4ARSEN PSMC4ASDCbits.P4ARSEN // bit 5
10476 #define P4ASDEN PSMC4ASDCbits.P4ASDEN // bit 6
10477 #define P4ASE PSMC4ASDCbits.P4ASE // bit 7
10479 #define P4ASDLA PSMC4ASDLbits.P4ASDLA // bit 0
10480 #define P4ASDLB PSMC4ASDLbits.P4ASDLB // bit 1
10482 #define P4ASDSC1 PSMC4ASDSbits.P4ASDSC1 // bit 1
10483 #define P4ASDSC2 PSMC4ASDSbits.P4ASDSC2 // bit 2
10484 #define P4ASDSC3 PSMC4ASDSbits.P4ASDSC3 // bit 3
10485 #define P4ASDSC4 PSMC4ASDSbits.P4ASDSC4 // bit 4
10486 #define P4ASDSIN PSMC4ASDSbits.P4ASDSIN // bit 7
10488 #define PSMC4BLKF0 PSMC4BLKFbits.PSMC4BLKF0 // bit 0
10489 #define PSMC4BLKF1 PSMC4BLKFbits.PSMC4BLKF1 // bit 1
10490 #define PSMC4BLKF2 PSMC4BLKFbits.PSMC4BLKF2 // bit 2
10491 #define PSMC4BLKF3 PSMC4BLKFbits.PSMC4BLKF3 // bit 3
10492 #define PSMC4BLKF4 PSMC4BLKFbits.PSMC4BLKF4 // bit 4
10493 #define PSMC4BLKF5 PSMC4BLKFbits.PSMC4BLKF5 // bit 5
10494 #define PSMC4BLKF6 PSMC4BLKFbits.PSMC4BLKF6 // bit 6
10495 #define PSMC4BLKF7 PSMC4BLKFbits.PSMC4BLKF7 // bit 7
10497 #define PSMC4BLKR0 PSMC4BLKRbits.PSMC4BLKR0 // bit 0
10498 #define PSMC4BLKR1 PSMC4BLKRbits.PSMC4BLKR1 // bit 1
10499 #define PSMC4BLKR2 PSMC4BLKRbits.PSMC4BLKR2 // bit 2
10500 #define PSMC4BLKR3 PSMC4BLKRbits.PSMC4BLKR3 // bit 3
10501 #define PSMC4BLKR4 PSMC4BLKRbits.PSMC4BLKR4 // bit 4
10502 #define PSMC4BLKR5 PSMC4BLKRbits.PSMC4BLKR5 // bit 5
10503 #define PSMC4BLKR6 PSMC4BLKRbits.PSMC4BLKR6 // bit 6
10504 #define PSMC4BLKR7 PSMC4BLKRbits.PSMC4BLKR7 // bit 7
10506 #define P4REBM0 PSMC4BLNKbits.P4REBM0 // bit 0
10507 #define P4REBM1 PSMC4BLNKbits.P4REBM1 // bit 1
10508 #define P4FEBM0 PSMC4BLNKbits.P4FEBM0 // bit 4
10509 #define P4FEBM1 PSMC4BLNKbits.P4FEBM1 // bit 5
10511 #define P4CSRC0 PSMC4CLKbits.P4CSRC0 // bit 0
10512 #define P4CSRC1 PSMC4CLKbits.P4CSRC1 // bit 1
10513 #define P4CPRE0 PSMC4CLKbits.P4CPRE0 // bit 4
10514 #define P4CPRE1 PSMC4CLKbits.P4CPRE1 // bit 5
10516 #define P4MODE0 PSMC4CONbits.P4MODE0 // bit 0
10517 #define P4MODE1 PSMC4CONbits.P4MODE1 // bit 1
10518 #define P4MODE2 PSMC4CONbits.P4MODE2 // bit 2
10519 #define P4MODE3 PSMC4CONbits.P4MODE3 // bit 3
10520 #define P4DBRE PSMC4CONbits.P4DBRE // bit 4
10521 #define P4DBFE PSMC4CONbits.P4DBFE // bit 5
10522 #define PSMC4LD PSMC4CONbits.PSMC4LD // bit 6
10523 #define PSMC4EN PSMC4CONbits.PSMC4EN // bit 7
10525 #define PSMC4DBF0 PSMC4DBFbits.PSMC4DBF0 // bit 0
10526 #define PSMC4DBF1 PSMC4DBFbits.PSMC4DBF1 // bit 1
10527 #define PSMC4DBF2 PSMC4DBFbits.PSMC4DBF2 // bit 2
10528 #define PSMC4DBF3 PSMC4DBFbits.PSMC4DBF3 // bit 3
10529 #define PSMC4DBF4 PSMC4DBFbits.PSMC4DBF4 // bit 4
10530 #define PSMC4DBF5 PSMC4DBFbits.PSMC4DBF5 // bit 5
10531 #define PSMC4DBF6 PSMC4DBFbits.PSMC4DBF6 // bit 6
10532 #define PSMC4DBF7 PSMC4DBFbits.PSMC4DBF7 // bit 7
10534 #define PSMC4DBR0 PSMC4DBRbits.PSMC4DBR0 // bit 0
10535 #define PSMC4DBR1 PSMC4DBRbits.PSMC4DBR1 // bit 1
10536 #define PSMC4DBR2 PSMC4DBRbits.PSMC4DBR2 // bit 2
10537 #define PSMC4DBR3 PSMC4DBRbits.PSMC4DBR3 // bit 3
10538 #define PSMC4DBR4 PSMC4DBRbits.PSMC4DBR4 // bit 4
10539 #define PSMC4DBR5 PSMC4DBRbits.PSMC4DBR5 // bit 5
10540 #define PSMC4DBR6 PSMC4DBRbits.PSMC4DBR6 // bit 6
10541 #define PSMC4DBR7 PSMC4DBRbits.PSMC4DBR7 // bit 7
10543 #define PSMC4DC8 PSMC4DCHbits.PSMC4DC8 // bit 0
10544 #define PSMC4DC9 PSMC4DCHbits.PSMC4DC9 // bit 1
10545 #define PSMC4DC10 PSMC4DCHbits.PSMC4DC10 // bit 2
10546 #define PSMC4DC11 PSMC4DCHbits.PSMC4DC11 // bit 3
10547 #define PSMC4DC12 PSMC4DCHbits.PSMC4DC12 // bit 4
10548 #define PSMC4DC13 PSMC4DCHbits.PSMC4DC13 // bit 5
10549 #define PSMC4DC14 PSMC4DCHbits.PSMC4DC14 // bit 6
10550 #define PSMC4DC15 PSMC4DCHbits.PSMC4DC15 // bit 7
10552 #define PSMC4DC0 PSMC4DCLbits.PSMC4DC0 // bit 0
10553 #define PSMC4DC1 PSMC4DCLbits.PSMC4DC1 // bit 1
10554 #define PSMC4DC2 PSMC4DCLbits.PSMC4DC2 // bit 2
10555 #define PSMC4DC3 PSMC4DCLbits.PSMC4DC3 // bit 3
10556 #define PSMC4DC4 PSMC4DCLbits.PSMC4DC4 // bit 4
10557 #define PSMC4DC5 PSMC4DCLbits.PSMC4DC5 // bit 5
10558 #define PSMC4DC6 PSMC4DCLbits.PSMC4DC6 // bit 6
10559 #define PSMC4DC7 PSMC4DCLbits.PSMC4DC7 // bit 7
10561 #define P4DCST PSMC4DCSbits.P4DCST // bit 0
10562 #define P4DCSC1 PSMC4DCSbits.P4DCSC1 // bit 1
10563 #define P4DCSC2 PSMC4DCSbits.P4DCSC2 // bit 2
10564 #define P4DCSC3 PSMC4DCSbits.P4DCSC3 // bit 3
10565 #define P4DCSC4 PSMC4DCSbits.P4DCSC4 // bit 4
10566 #define P4DCSIN PSMC4DCSbits.P4DCSIN // bit 7
10568 #define P4FEBSC1 PSMC4FEBSbits.P4FEBSC1 // bit 1
10569 #define P4FEBSC2 PSMC4FEBSbits.P4FEBSC2 // bit 2
10570 #define P4FEBSC3 PSMC4FEBSbits.P4FEBSC3 // bit 3
10571 #define P4FEBSC4 PSMC4FEBSbits.P4FEBSC4 // bit 4
10572 #define P4FEBSIN PSMC4FEBSbits.P4FEBSIN // bit 7
10574 #define PSMC4FFA0 PSMC4FFAbits.PSMC4FFA0 // bit 0
10575 #define PSMC4FFA1 PSMC4FFAbits.PSMC4FFA1 // bit 1
10576 #define PSMC4FFA2 PSMC4FFAbits.PSMC4FFA2 // bit 2
10577 #define PSMC4FFA3 PSMC4FFAbits.PSMC4FFA3 // bit 3
10579 #define P4TPRIF PSMC4INTbits.P4TPRIF // bit 0
10580 #define P4TDCIF PSMC4INTbits.P4TDCIF // bit 1
10581 #define P4TPHIF PSMC4INTbits.P4TPHIF // bit 2
10582 #define P4TOVIF PSMC4INTbits.P4TOVIF // bit 3
10583 #define P4TPRIE PSMC4INTbits.P4TPRIE // bit 4
10584 #define P4TDCIE PSMC4INTbits.P4TDCIE // bit 5
10585 #define P4TPHIE PSMC4INTbits.P4TPHIE // bit 6
10586 #define P4TOVIE PSMC4INTbits.P4TOVIE // bit 7
10588 #define P4MSRC0 PSMC4MDLbits.P4MSRC0 // bit 0
10589 #define P4MSRC1 PSMC4MDLbits.P4MSRC1 // bit 1
10590 #define P4MSRC2 PSMC4MDLbits.P4MSRC2 // bit 2
10591 #define P4MSRC3 PSMC4MDLbits.P4MSRC3 // bit 3
10592 #define P4MDLBIT PSMC4MDLbits.P4MDLBIT // bit 5
10593 #define P4MDLPOL PSMC4MDLbits.P4MDLPOL // bit 6
10594 #define P4MDLEN PSMC4MDLbits.P4MDLEN // bit 7
10596 #define P4OEA PSMC4OENbits.P4OEA // bit 0
10597 #define P4OEB PSMC4OENbits.P4OEB // bit 1
10599 #define PSMC4PH8 PSMC4PHHbits.PSMC4PH8 // bit 0
10600 #define PSMC4PH9 PSMC4PHHbits.PSMC4PH9 // bit 1
10601 #define PSMC4PH10 PSMC4PHHbits.PSMC4PH10 // bit 2
10602 #define PSMC4PH11 PSMC4PHHbits.PSMC4PH11 // bit 3
10603 #define PSMC4PH12 PSMC4PHHbits.PSMC4PH12 // bit 4
10604 #define PSMC4PH13 PSMC4PHHbits.PSMC4PH13 // bit 5
10605 #define PSMC4PH14 PSMC4PHHbits.PSMC4PH14 // bit 6
10606 #define PSMC4PH15 PSMC4PHHbits.PSMC4PH15 // bit 7
10608 #define PSMC4PH0 PSMC4PHLbits.PSMC4PH0 // bit 0
10609 #define PSMC4PH1 PSMC4PHLbits.PSMC4PH1 // bit 1
10610 #define PSMC4PH2 PSMC4PHLbits.PSMC4PH2 // bit 2
10611 #define PSMC4PH3 PSMC4PHLbits.PSMC4PH3 // bit 3
10612 #define PSMC4PH4 PSMC4PHLbits.PSMC4PH4 // bit 4
10613 #define PSMC4PH5 PSMC4PHLbits.PSMC4PH5 // bit 5
10614 #define PSMC4PH6 PSMC4PHLbits.PSMC4PH6 // bit 6
10615 #define PSMC4PH7 PSMC4PHLbits.PSMC4PH7 // bit 7
10617 #define P4PHST PSMC4PHSbits.P4PHST // bit 0
10618 #define P4PHSC1 PSMC4PHSbits.P4PHSC1 // bit 1
10619 #define P4PHSC2 PSMC4PHSbits.P4PHSC2 // bit 2
10620 #define P4PHSC3 PSMC4PHSbits.P4PHSC3 // bit 3
10621 #define P4PHSC4 PSMC4PHSbits.P4PHSC4 // bit 4
10622 #define P4PHSIN PSMC4PHSbits.P4PHSIN // bit 7
10624 #define P4POLA PSMC4POLbits.P4POLA // bit 0
10625 #define P4POLB PSMC4POLbits.P4POLB // bit 1
10626 #define P4INPOL PSMC4POLbits.P4INPOL // bit 6
10628 #define PSMC4PR8 PSMC4PRHbits.PSMC4PR8 // bit 0
10629 #define PSMC4PR9 PSMC4PRHbits.PSMC4PR9 // bit 1
10630 #define PSMC4PR10 PSMC4PRHbits.PSMC4PR10 // bit 2
10631 #define PSMC4PR11 PSMC4PRHbits.PSMC4PR11 // bit 3
10632 #define PSMC4PR12 PSMC4PRHbits.PSMC4PR12 // bit 4
10633 #define PSMC4PR13 PSMC4PRHbits.PSMC4PR13 // bit 5
10634 #define PSMC4PR14 PSMC4PRHbits.PSMC4PR14 // bit 6
10635 #define PSMC4PR15 PSMC4PRHbits.PSMC4PR15 // bit 7
10637 #define PSMC4PR0 PSMC4PRLbits.PSMC4PR0 // bit 0
10638 #define PSMC4PR1 PSMC4PRLbits.PSMC4PR1 // bit 1
10639 #define PSMC4PR2 PSMC4PRLbits.PSMC4PR2 // bit 2
10640 #define PSMC4PR3 PSMC4PRLbits.PSMC4PR3 // bit 3
10641 #define PSMC4PR4 PSMC4PRLbits.PSMC4PR4 // bit 4
10642 #define PSMC4PR5 PSMC4PRLbits.PSMC4PR5 // bit 5
10643 #define PSMC4PR6 PSMC4PRLbits.PSMC4PR6 // bit 6
10644 #define PSMC4PR7 PSMC4PRLbits.PSMC4PR7 // bit 7
10646 #define P4PRST PSMC4PRSbits.P4PRST // bit 0
10647 #define P4PRSC1 PSMC4PRSbits.P4PRSC1 // bit 1
10648 #define P4PRSC2 PSMC4PRSbits.P4PRSC2 // bit 2
10649 #define P4PRSC3 PSMC4PRSbits.P4PRSC3 // bit 3
10650 #define P4PRSC4 PSMC4PRSbits.P4PRSC4 // bit 4
10651 #define P4PRSIN PSMC4PRSbits.P4PRSIN // bit 7
10653 #define P4REBSC1 PSMC4REBSbits.P4REBSC1 // bit 1
10654 #define P4REBSC2 PSMC4REBSbits.P4REBSC2 // bit 2
10655 #define P4REBSC3 PSMC4REBSbits.P4REBSC3 // bit 3
10656 #define P4REBSC4 PSMC4REBSbits.P4REBSC4 // bit 4
10657 #define P4REBSIN PSMC4REBSbits.P4REBSIN // bit 7
10659 #define P4STRA PSMC4STR0bits.P4STRA // bit 0
10660 #define P4STRB PSMC4STR0bits.P4STRB // bit 1
10662 #define P4HSMEN PSMC4STR1bits.P4HSMEN // bit 0
10663 #define P4LSMEN PSMC4STR1bits.P4LSMEN // bit 1
10664 #define P4SSYNC PSMC4STR1bits.P4SSYNC // bit 7
10666 #define P4SYNC0 PSMC4SYNCbits.P4SYNC0 // bit 0
10667 #define P4SYNC1 PSMC4SYNCbits.P4SYNC1 // bit 1
10668 #define P4SYNC2 PSMC4SYNCbits.P4SYNC2 // bit 2
10669 #define P4DCPOL PSMC4SYNCbits.P4DCPOL // bit 5
10670 #define P4PRPOL PSMC4SYNCbits.P4PRPOL // bit 6
10671 #define P4POFST PSMC4SYNCbits.P4POFST // bit 7
10673 #define PSMC4TMR8 PSMC4TMRHbits.PSMC4TMR8 // bit 0
10674 #define PSMC4TMR9 PSMC4TMRHbits.PSMC4TMR9 // bit 1
10675 #define PSMC4TMR10 PSMC4TMRHbits.PSMC4TMR10 // bit 2
10676 #define PSMC4TMR11 PSMC4TMRHbits.PSMC4TMR11 // bit 3
10677 #define PSMC4TMR12 PSMC4TMRHbits.PSMC4TMR12 // bit 4
10678 #define PSMC4TMR13 PSMC4TMRHbits.PSMC4TMR13 // bit 5
10679 #define PSMC4TMR14 PSMC4TMRHbits.PSMC4TMR14 // bit 6
10680 #define PSMC4TMR15 PSMC4TMRHbits.PSMC4TMR15 // bit 7
10682 #define PSMC4TMR0 PSMC4TMRLbits.PSMC4TMR0 // bit 0
10683 #define PSMC4TMR1 PSMC4TMRLbits.PSMC4TMR1 // bit 1
10684 #define PSMC4TMR2 PSMC4TMRLbits.PSMC4TMR2 // bit 2
10685 #define PSMC4TMR3 PSMC4TMRLbits.PSMC4TMR3 // bit 3
10686 #define PSMC4TMR4 PSMC4TMRLbits.PSMC4TMR4 // bit 4
10687 #define PSMC4TMR5 PSMC4TMRLbits.PSMC4TMR5 // bit 5
10688 #define PSMC4TMR6 PSMC4TMRLbits.PSMC4TMR6 // bit 6
10689 #define PSMC4TMR7 PSMC4TMRLbits.PSMC4TMR7 // bit 7
10691 #define RX9D RC1STAbits.RX9D // bit 0
10692 #define OERR RC1STAbits.OERR // bit 1
10693 #define FERR RC1STAbits.FERR // bit 2
10694 #define ADDEN RC1STAbits.ADDEN // bit 3
10695 #define CREN RC1STAbits.CREN // bit 4
10696 #define SREN RC1STAbits.SREN // bit 5
10697 #define RX9 RC1STAbits.RX9 // bit 6
10698 #define SPEN RC1STAbits.SPEN // bit 7
10700 #define SLRCONA0 SLRCONAbits.SLRCONA0 // bit 0
10701 #define SLRCONA1 SLRCONAbits.SLRCONA1 // bit 1
10702 #define SLRCONA2 SLRCONAbits.SLRCONA2 // bit 2
10703 #define SLRCONA3 SLRCONAbits.SLRCONA3 // bit 3
10704 #define SLRCONA4 SLRCONAbits.SLRCONA4 // bit 4
10705 #define SLRCONA5 SLRCONAbits.SLRCONA5 // bit 5
10706 #define SLRCONA6 SLRCONAbits.SLRCONA6 // bit 6
10707 #define SLRCONA7 SLRCONAbits.SLRCONA7 // bit 7
10709 #define SLRCONB0 SLRCONBbits.SLRCONB0 // bit 0
10710 #define SLRCONB1 SLRCONBbits.SLRCONB1 // bit 1
10711 #define SLRCONB2 SLRCONBbits.SLRCONB2 // bit 2
10712 #define SLRCONB3 SLRCONBbits.SLRCONB3 // bit 3
10713 #define SLRCONB4 SLRCONBbits.SLRCONB4 // bit 4
10714 #define SLRCONB5 SLRCONBbits.SLRCONB5 // bit 5
10715 #define SLRCONB6 SLRCONBbits.SLRCONB6 // bit 6
10716 #define SLRCONB7 SLRCONBbits.SLRCONB7 // bit 7
10718 #define SLRCONC0 SLRCONCbits.SLRCONC0 // bit 0
10719 #define SLRCONC1 SLRCONCbits.SLRCONC1 // bit 1
10720 #define SLRCONC2 SLRCONCbits.SLRCONC2 // bit 2
10721 #define SLRCONC3 SLRCONCbits.SLRCONC3 // bit 3
10722 #define SLRCONC4 SLRCONCbits.SLRCONC4 // bit 4
10723 #define SLRCONC5 SLRCONCbits.SLRCONC5 // bit 5
10724 #define SLRCONC6 SLRCONCbits.SLRCONC6 // bit 6
10725 #define SLRCONC7 SLRCONCbits.SLRCONC7 // bit 7
10727 #define SLRCOND0 SLRCONDbits.SLRCOND0 // bit 0
10728 #define SLRCOND1 SLRCONDbits.SLRCOND1 // bit 1
10729 #define SLRCOND2 SLRCONDbits.SLRCOND2 // bit 2
10730 #define SLRCOND3 SLRCONDbits.SLRCOND3 // bit 3
10731 #define SLRCOND4 SLRCONDbits.SLRCOND4 // bit 4
10732 #define SLRCOND5 SLRCONDbits.SLRCOND5 // bit 5
10733 #define SLRCOND6 SLRCONDbits.SLRCOND6 // bit 6
10734 #define SLRCOND7 SLRCONDbits.SLRCOND7 // bit 7
10736 #define SLRCONE0 SLRCONEbits.SLRCONE0 // bit 0
10737 #define SLRCONE1 SLRCONEbits.SLRCONE1 // bit 1
10738 #define SLRCONE2 SLRCONEbits.SLRCONE2 // bit 2
10740 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
10741 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
10742 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
10743 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
10744 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
10745 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
10746 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
10747 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
10748 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
10749 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
10750 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
10751 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
10752 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
10753 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
10754 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
10755 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
10757 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
10758 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
10759 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
10760 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
10761 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
10762 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
10763 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
10764 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
10765 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
10766 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
10767 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
10768 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
10769 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
10770 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
10771 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
10772 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
10774 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
10775 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
10776 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
10777 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
10778 #define CKP SSP1CONbits.CKP // bit 4
10779 #define SSPEN SSP1CONbits.SSPEN // bit 5
10780 #define SSPOV SSP1CONbits.SSPOV // bit 6
10781 #define WCOL SSP1CONbits.WCOL // bit 7
10783 #define SEN SSP1CON2bits.SEN // bit 0
10784 #define RSEN SSP1CON2bits.RSEN // bit 1
10785 #define PEN SSP1CON2bits.PEN // bit 2
10786 #define RCEN SSP1CON2bits.RCEN // bit 3
10787 #define ACKEN SSP1CON2bits.ACKEN // bit 4
10788 #define ACKDT SSP1CON2bits.ACKDT // bit 5
10789 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
10790 #define GCEN SSP1CON2bits.GCEN // bit 7
10792 #define DHEN SSP1CON3bits.DHEN // bit 0
10793 #define AHEN SSP1CON3bits.AHEN // bit 1
10794 #define SBCDE SSP1CON3bits.SBCDE // bit 2
10795 #define SDAHT SSP1CON3bits.SDAHT // bit 3
10796 #define BOEN SSP1CON3bits.BOEN // bit 4
10797 #define SCIE SSP1CON3bits.SCIE // bit 5
10798 #define PCIE SSP1CON3bits.PCIE // bit 6
10799 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
10801 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
10802 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
10803 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
10804 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
10805 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
10806 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
10807 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
10808 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
10809 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
10810 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
10811 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
10812 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
10813 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
10814 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
10815 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
10816 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
10818 #define BF SSP1STATbits.BF // bit 0
10819 #define UA SSP1STATbits.UA // bit 1
10820 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
10821 #define S SSP1STATbits.S // bit 3
10822 #define P SSP1STATbits.P // bit 4
10823 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
10824 #define CKE SSP1STATbits.CKE // bit 6
10825 #define SMP SSP1STATbits.SMP // bit 7
10827 #define C STATUSbits.C // bit 0
10828 #define DC STATUSbits.DC // bit 1
10829 #define Z STATUSbits.Z // bit 2
10830 #define NOT_PD STATUSbits.NOT_PD // bit 3
10831 #define NOT_TO STATUSbits.NOT_TO // bit 4
10833 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
10834 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
10835 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
10837 #define TMR1ON T1CONbits.TMR1ON // bit 0
10838 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
10839 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
10840 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
10841 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
10842 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
10843 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
10845 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
10846 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
10847 #define T1GVAL T1GCONbits.T1GVAL // bit 2
10848 #define T1GGO T1GCONbits.T1GGO // bit 3
10849 #define T1GSPM T1GCONbits.T1GSPM // bit 4
10850 #define T1GTM T1GCONbits.T1GTM // bit 5
10851 #define T1GPOL T1GCONbits.T1GPOL // bit 6
10852 #define TMR1GE T1GCONbits.TMR1GE // bit 7
10854 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
10855 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
10856 #define TMR2ON T2CONbits.TMR2ON // bit 2
10857 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
10858 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
10859 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
10860 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
10862 #define TRISA0 TRISAbits.TRISA0 // bit 0
10863 #define TRISA1 TRISAbits.TRISA1 // bit 1
10864 #define TRISA2 TRISAbits.TRISA2 // bit 2
10865 #define TRISA3 TRISAbits.TRISA3 // bit 3
10866 #define TRISA4 TRISAbits.TRISA4 // bit 4
10867 #define TRISA5 TRISAbits.TRISA5 // bit 5
10868 #define TRISA6 TRISAbits.TRISA6 // bit 6
10869 #define TRISA7 TRISAbits.TRISA7 // bit 7
10871 #define TRISB0 TRISBbits.TRISB0 // bit 0
10872 #define TRISB1 TRISBbits.TRISB1 // bit 1
10873 #define TRISB2 TRISBbits.TRISB2 // bit 2
10874 #define TRISB3 TRISBbits.TRISB3 // bit 3
10875 #define TRISB4 TRISBbits.TRISB4 // bit 4
10876 #define TRISB5 TRISBbits.TRISB5 // bit 5
10877 #define TRISB6 TRISBbits.TRISB6 // bit 6
10878 #define TRISB7 TRISBbits.TRISB7 // bit 7
10880 #define TRISC0 TRISCbits.TRISC0 // bit 0
10881 #define TRISC1 TRISCbits.TRISC1 // bit 1
10882 #define TRISC2 TRISCbits.TRISC2 // bit 2
10883 #define TRISC3 TRISCbits.TRISC3 // bit 3
10884 #define TRISC4 TRISCbits.TRISC4 // bit 4
10885 #define TRISC5 TRISCbits.TRISC5 // bit 5
10886 #define TRISC6 TRISCbits.TRISC6 // bit 6
10887 #define TRISC7 TRISCbits.TRISC7 // bit 7
10889 #define TRISD0 TRISDbits.TRISD0 // bit 0
10890 #define TRISD1 TRISDbits.TRISD1 // bit 1
10891 #define TRISD2 TRISDbits.TRISD2 // bit 2
10892 #define TRISD3 TRISDbits.TRISD3 // bit 3
10893 #define TRISD4 TRISDbits.TRISD4 // bit 4
10894 #define TRISD5 TRISDbits.TRISD5 // bit 5
10895 #define TRISD6 TRISDbits.TRISD6 // bit 6
10896 #define TRISD7 TRISDbits.TRISD7 // bit 7
10898 #define TRISE0 TRISEbits.TRISE0 // bit 0
10899 #define TRISE1 TRISEbits.TRISE1 // bit 1
10900 #define TRISE2 TRISEbits.TRISE2 // bit 2
10901 #define TRISE3 TRISEbits.TRISE3 // bit 3
10903 #define TX9D TX1STAbits.TX9D // bit 0
10904 #define TRMT TX1STAbits.TRMT // bit 1
10905 #define BRGH TX1STAbits.BRGH // bit 2
10906 #define SENDB TX1STAbits.SENDB // bit 3
10907 #define SYNC TX1STAbits.SYNC // bit 4
10908 #define TXEN TX1STAbits.TXEN // bit 5
10909 #define TX9 TX1STAbits.TX9 // bit 6
10910 #define CSRC TX1STAbits.CSRC // bit 7
10912 #define VREGPM VREGCONbits.VREGPM // bit 1
10914 #define SWDTEN WDTCONbits.SWDTEN // bit 0
10915 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
10916 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
10917 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
10918 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
10919 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
10921 #define WPUA0 WPUAbits.WPUA0 // bit 0
10922 #define WPUA1 WPUAbits.WPUA1 // bit 1
10923 #define WPUA2 WPUAbits.WPUA2 // bit 2
10924 #define WPUA3 WPUAbits.WPUA3 // bit 3
10925 #define WPUA4 WPUAbits.WPUA4 // bit 4
10926 #define WPUA5 WPUAbits.WPUA5 // bit 5
10927 #define WPUA6 WPUAbits.WPUA6 // bit 6
10928 #define WPUA7 WPUAbits.WPUA7 // bit 7
10930 #define WPUB0 WPUBbits.WPUB0 // bit 0
10931 #define WPUB1 WPUBbits.WPUB1 // bit 1
10932 #define WPUB2 WPUBbits.WPUB2 // bit 2
10933 #define WPUB3 WPUBbits.WPUB3 // bit 3
10934 #define WPUB4 WPUBbits.WPUB4 // bit 4
10935 #define WPUB5 WPUBbits.WPUB5 // bit 5
10936 #define WPUB6 WPUBbits.WPUB6 // bit 6
10937 #define WPUB7 WPUBbits.WPUB7 // bit 7
10939 #define WPUC0 WPUCbits.WPUC0 // bit 0
10940 #define WPUC1 WPUCbits.WPUC1 // bit 1
10941 #define WPUC2 WPUCbits.WPUC2 // bit 2
10942 #define WPUC3 WPUCbits.WPUC3 // bit 3
10943 #define WPUC4 WPUCbits.WPUC4 // bit 4
10944 #define WPUC5 WPUCbits.WPUC5 // bit 5
10945 #define WPUC6 WPUCbits.WPUC6 // bit 6
10946 #define WPUC7 WPUCbits.WPUC7 // bit 7
10948 #define WPUD0 WPUDbits.WPUD0 // bit 0
10949 #define WPUD1 WPUDbits.WPUD1 // bit 1
10950 #define WPUD2 WPUDbits.WPUD2 // bit 2
10951 #define WPUD3 WPUDbits.WPUD3 // bit 3
10952 #define WPUD4 WPUDbits.WPUD4 // bit 4
10953 #define WPUD5 WPUDbits.WPUD5 // bit 5
10954 #define WPUD6 WPUDbits.WPUD6 // bit 6
10955 #define WPUD7 WPUDbits.WPUD7 // bit 7
10957 #define WPUE0 WPUEbits.WPUE0 // bit 0
10958 #define WPUE1 WPUEbits.WPUE1 // bit 1
10959 #define WPUE2 WPUEbits.WPUE2 // bit 2
10960 #define WPUE3 WPUEbits.WPUE3 // bit 3
10962 #endif // #ifndef NO_BIT_DEFINES
10964 #endif // #ifndef __PIC16F1789_H__