2 * This declarations of the PIC16LF1788 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 __PIC16LF1788_H__
26 #define __PIC16LF1788_H__
28 //==============================================================================
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 PORTE_ADDR 0x0010
54 #define PIR1_ADDR 0x0011
55 #define PIR2_ADDR 0x0012
56 #define PIR3_ADDR 0x0013
57 #define PIR4_ADDR 0x0014
58 #define TMR0_ADDR 0x0015
59 #define TMR1_ADDR 0x0016
60 #define TMR1L_ADDR 0x0016
61 #define TMR1H_ADDR 0x0017
62 #define T1CON_ADDR 0x0018
63 #define T1GCON_ADDR 0x0019
64 #define TMR2_ADDR 0x001A
65 #define PR2_ADDR 0x001B
66 #define T2CON_ADDR 0x001C
67 #define TRISA_ADDR 0x008C
68 #define TRISB_ADDR 0x008D
69 #define TRISC_ADDR 0x008E
70 #define TRISE_ADDR 0x0090
71 #define PIE1_ADDR 0x0091
72 #define PIE2_ADDR 0x0092
73 #define PIE3_ADDR 0x0093
74 #define PIE4_ADDR 0x0094
75 #define OPTION_REG_ADDR 0x0095
76 #define PCON_ADDR 0x0096
77 #define WDTCON_ADDR 0x0097
78 #define OSCTUNE_ADDR 0x0098
79 #define OSCCON_ADDR 0x0099
80 #define OSCSTAT_ADDR 0x009A
81 #define ADRES_ADDR 0x009B
82 #define ADRESL_ADDR 0x009B
83 #define ADRESH_ADDR 0x009C
84 #define ADCON0_ADDR 0x009D
85 #define ADCON1_ADDR 0x009E
86 #define ADCON2_ADDR 0x009F
87 #define LATA_ADDR 0x010C
88 #define LATB_ADDR 0x010D
89 #define LATC_ADDR 0x010E
90 #define CM1CON0_ADDR 0x0111
91 #define CM1CON1_ADDR 0x0112
92 #define CM2CON0_ADDR 0x0113
93 #define CM2CON1_ADDR 0x0114
94 #define CMOUT_ADDR 0x0115
95 #define BORCON_ADDR 0x0116
96 #define FVRCON_ADDR 0x0117
97 #define DAC1CON0_ADDR 0x0118
98 #define DAC1CON1_ADDR 0x0119
99 #define CM4CON0_ADDR 0x011A
100 #define CM4CON1_ADDR 0x011B
101 #define APFCON2_ADDR 0x011C
102 #define APFCON_ADDR 0x011D
103 #define APFCON0_ADDR 0x011D
104 #define APFCON1_ADDR 0x011D
105 #define CM3CON0_ADDR 0x011E
106 #define CM3CON1_ADDR 0x011F
107 #define ANSELA_ADDR 0x018C
108 #define ANSELB_ADDR 0x018D
109 #define ANSELC_ADDR 0x018E
110 #define EEADR_ADDR 0x0191
111 #define EEADRL_ADDR 0x0191
112 #define EEADRH_ADDR 0x0192
113 #define EEDAT_ADDR 0x0193
114 #define EEDATL_ADDR 0x0193
115 #define EEDATH_ADDR 0x0194
116 #define EECON1_ADDR 0x0195
117 #define EECON2_ADDR 0x0196
118 #define RC1REG_ADDR 0x0199
119 #define RCREG_ADDR 0x0199
120 #define RCREG1_ADDR 0x0199
121 #define TX1REG_ADDR 0x019A
122 #define TXREG_ADDR 0x019A
123 #define TXREG1_ADDR 0x019A
124 #define SP1BRG_ADDR 0x019B
125 #define SP1BRGL_ADDR 0x019B
126 #define SPBRG_ADDR 0x019B
127 #define SPBRG1_ADDR 0x019B
128 #define SPBRGL_ADDR 0x019B
129 #define SP1BRGH_ADDR 0x019C
130 #define SPBRGH_ADDR 0x019C
131 #define SPBRGH1_ADDR 0x019C
132 #define RC1STA_ADDR 0x019D
133 #define RCSTA_ADDR 0x019D
134 #define RCSTA1_ADDR 0x019D
135 #define TX1STA_ADDR 0x019E
136 #define TXSTA_ADDR 0x019E
137 #define TXSTA1_ADDR 0x019E
138 #define BAUD1CON_ADDR 0x019F
139 #define BAUDCON_ADDR 0x019F
140 #define BAUDCON1_ADDR 0x019F
141 #define BAUDCTL_ADDR 0x019F
142 #define BAUDCTL1_ADDR 0x019F
143 #define WPUA_ADDR 0x020C
144 #define WPUB_ADDR 0x020D
145 #define WPUC_ADDR 0x020E
146 #define WPUE_ADDR 0x0210
147 #define SSP1BUF_ADDR 0x0211
148 #define SSPBUF_ADDR 0x0211
149 #define SSP1ADD_ADDR 0x0212
150 #define SSPADD_ADDR 0x0212
151 #define SSP1MSK_ADDR 0x0213
152 #define SSPMSK_ADDR 0x0213
153 #define SSP1STAT_ADDR 0x0214
154 #define SSPSTAT_ADDR 0x0214
155 #define SSP1CON_ADDR 0x0215
156 #define SSP1CON1_ADDR 0x0215
157 #define SSPCON_ADDR 0x0215
158 #define SSPCON1_ADDR 0x0215
159 #define SSP1CON2_ADDR 0x0216
160 #define SSPCON2_ADDR 0x0216
161 #define SSP1CON3_ADDR 0x0217
162 #define SSPCON3_ADDR 0x0217
163 #define ODCONA_ADDR 0x028C
164 #define ODCONB_ADDR 0x028D
165 #define ODCONC_ADDR 0x028E
166 #define CCPR1_ADDR 0x0291
167 #define CCPR1L_ADDR 0x0291
168 #define CCPR1H_ADDR 0x0292
169 #define CCP1CON_ADDR 0x0293
170 #define CCPR2_ADDR 0x0298
171 #define CCPR2L_ADDR 0x0298
172 #define CCPR2H_ADDR 0x0299
173 #define CCP2CON_ADDR 0x029A
174 #define SLRCONA_ADDR 0x030C
175 #define SLRCONB_ADDR 0x030D
176 #define SLRCONC_ADDR 0x030E
177 #define CCPR3_ADDR 0x0311
178 #define CCPR3L_ADDR 0x0311
179 #define CCPR3H_ADDR 0x0312
180 #define CCP3CON_ADDR 0x0313
181 #define INLVLA_ADDR 0x038C
182 #define INLVLB_ADDR 0x038D
183 #define INLVLC_ADDR 0x038E
184 #define INLVLE_ADDR 0x0390
185 #define IOCAP_ADDR 0x0391
186 #define IOCAN_ADDR 0x0392
187 #define IOCAF_ADDR 0x0393
188 #define IOCBP_ADDR 0x0394
189 #define IOCBN_ADDR 0x0395
190 #define IOCBF_ADDR 0x0396
191 #define IOCCP_ADDR 0x0397
192 #define IOCCN_ADDR 0x0398
193 #define IOCCF_ADDR 0x0399
194 #define IOCEP_ADDR 0x039D
195 #define IOCEN_ADDR 0x039E
196 #define IOCEF_ADDR 0x039F
197 #define OPA1CON_ADDR 0x0511
198 #define OPA2CON_ADDR 0x0513
199 #define CLKRCON_ADDR 0x051A
200 #define DAC2CON0_ADDR 0x0591
201 #define DAC2CON1_ADDR 0x0592
202 #define DAC2REF_ADDR 0x0592
203 #define DAC3CON0_ADDR 0x0593
204 #define DAC3CON1_ADDR 0x0594
205 #define DAC3REF_ADDR 0x0594
206 #define DAC4CON0_ADDR 0x0595
207 #define DAC4CON1_ADDR 0x0596
208 #define DAC4REF_ADDR 0x0596
209 #define PSMC1CON_ADDR 0x0E91
210 #define PSMC1MDL_ADDR 0x0E92
211 #define PSMC1SYNC_ADDR 0x0E93
212 #define PSMC1CLK_ADDR 0x0E94
213 #define PSMC1OEN_ADDR 0x0E95
214 #define PSMC1POL_ADDR 0x0E96
215 #define PSMC1BLNK_ADDR 0x0E97
216 #define PSMC1REBS_ADDR 0x0E98
217 #define PSMC1FEBS_ADDR 0x0E99
218 #define PSMC1PHS_ADDR 0x0E9A
219 #define PSMC1DCS_ADDR 0x0E9B
220 #define PSMC1PRS_ADDR 0x0E9C
221 #define PSMC1ASDC_ADDR 0x0E9D
222 #define PSMC1ASDL_ADDR 0x0E9E
223 #define PSMC1ASDS_ADDR 0x0E9F
224 #define PSMC1INT_ADDR 0x0EA0
225 #define PSMC1PH_ADDR 0x0EA1
226 #define PSMC1PHL_ADDR 0x0EA1
227 #define PSMC1PHH_ADDR 0x0EA2
228 #define PSMC1DC_ADDR 0x0EA3
229 #define PSMC1DCL_ADDR 0x0EA3
230 #define PSMC1DCH_ADDR 0x0EA4
231 #define PSMC1PR_ADDR 0x0EA5
232 #define PSMC1PRL_ADDR 0x0EA5
233 #define PSMC1PRH_ADDR 0x0EA6
234 #define PSMC1TMR_ADDR 0x0EA7
235 #define PSMC1TMRL_ADDR 0x0EA7
236 #define PSMC1TMRH_ADDR 0x0EA8
237 #define PSMC1DBR_ADDR 0x0EA9
238 #define PSMC1DBF_ADDR 0x0EAA
239 #define PSMC1BLKR_ADDR 0x0EAB
240 #define PSMC1BLKF_ADDR 0x0EAC
241 #define PSMC1FFA_ADDR 0x0EAD
242 #define PSMC1STR0_ADDR 0x0EAE
243 #define PSMC1STR1_ADDR 0x0EAF
244 #define PSMC2CON_ADDR 0x0EB1
245 #define PSMC2MDL_ADDR 0x0EB2
246 #define PSMC2SYNC_ADDR 0x0EB3
247 #define PSMC2CLK_ADDR 0x0EB4
248 #define PSMC2OEN_ADDR 0x0EB5
249 #define PSMC2POL_ADDR 0x0EB6
250 #define PSMC2BLNK_ADDR 0x0EB7
251 #define PSMC2REBS_ADDR 0x0EB8
252 #define PSMC2FEBS_ADDR 0x0EB9
253 #define PSMC2PHS_ADDR 0x0EBA
254 #define PSMC2DCS_ADDR 0x0EBB
255 #define PSMC2PRS_ADDR 0x0EBC
256 #define PSMC2ASDC_ADDR 0x0EBD
257 #define PSMC2ASDL_ADDR 0x0EBE
258 #define PSMC2ASDS_ADDR 0x0EBF
259 #define PSMC2INT_ADDR 0x0EC0
260 #define PSMC2PH_ADDR 0x0EC1
261 #define PSMC2PHL_ADDR 0x0EC1
262 #define PSMC2PHH_ADDR 0x0EC2
263 #define PSMC2DC_ADDR 0x0EC3
264 #define PSMC2DCL_ADDR 0x0EC3
265 #define PSMC2DCH_ADDR 0x0EC4
266 #define PSMC2PR_ADDR 0x0EC5
267 #define PSMC2PRL_ADDR 0x0EC5
268 #define PSMC2PRH_ADDR 0x0EC6
269 #define PSMC2TMR_ADDR 0x0EC7
270 #define PSMC2TMRL_ADDR 0x0EC7
271 #define PSMC2TMRH_ADDR 0x0EC8
272 #define PSMC2DBR_ADDR 0x0EC9
273 #define PSMC2DBF_ADDR 0x0ECA
274 #define PSMC2BLKR_ADDR 0x0ECB
275 #define PSMC2BLKF_ADDR 0x0ECC
276 #define PSMC2FFA_ADDR 0x0ECD
277 #define PSMC2STR0_ADDR 0x0ECE
278 #define PSMC2STR1_ADDR 0x0ECF
279 #define PSMC3CON_ADDR 0x0ED1
280 #define PSMC3MDL_ADDR 0x0ED2
281 #define PSMC3SYNC_ADDR 0x0ED3
282 #define PSMC3CLK_ADDR 0x0ED4
283 #define PSMC3OEN_ADDR 0x0ED5
284 #define PSMC3POL_ADDR 0x0ED6
285 #define PSMC3BLNK_ADDR 0x0ED7
286 #define PSMC3REBS_ADDR 0x0ED8
287 #define PSMC3FEBS_ADDR 0x0ED9
288 #define PSMC3PHS_ADDR 0x0EDA
289 #define PSMC3DCS_ADDR 0x0EDB
290 #define PSMC3PRS_ADDR 0x0EDC
291 #define PSMC3ASDC_ADDR 0x0EDD
292 #define PSMC3ASDL_ADDR 0x0EDE
293 #define PSMC3ASDS_ADDR 0x0EDF
294 #define PSMC3INT_ADDR 0x0EE0
295 #define PSMC3PH_ADDR 0x0EE1
296 #define PSMC3PHL_ADDR 0x0EE1
297 #define PSMC3PHH_ADDR 0x0EE2
298 #define PSMC3DC_ADDR 0x0EE3
299 #define PSMC3DCL_ADDR 0x0EE3
300 #define PSMC3DCH_ADDR 0x0EE4
301 #define PSMC3PR_ADDR 0x0EE5
302 #define PSMC3PRL_ADDR 0x0EE5
303 #define PSMC3PRH_ADDR 0x0EE6
304 #define PSMC3TMR_ADDR 0x0EE7
305 #define PSMC3TMRL_ADDR 0x0EE7
306 #define PSMC3TMRH_ADDR 0x0EE8
307 #define PSMC3DBR_ADDR 0x0EE9
308 #define PSMC3DBF_ADDR 0x0EEA
309 #define PSMC3BLKR_ADDR 0x0EEB
310 #define PSMC3BLKF_ADDR 0x0EEC
311 #define PSMC3FFA_ADDR 0x0EED
312 #define PSMC3STR0_ADDR 0x0EEE
313 #define PSMC3STR1_ADDR 0x0EEF
314 #define PSMC4CON_ADDR 0x0F11
315 #define PSMC4MDL_ADDR 0x0F12
316 #define PSMC4SYNC_ADDR 0x0F13
317 #define PSMC4CLK_ADDR 0x0F14
318 #define PSMC4OEN_ADDR 0x0F15
319 #define PSMC4POL_ADDR 0x0F16
320 #define PSMC4BLNK_ADDR 0x0F17
321 #define PSMC4REBS_ADDR 0x0F18
322 #define PSMC4FEBS_ADDR 0x0F19
323 #define PSMC4PHS_ADDR 0x0F1A
324 #define PSMC4DCS_ADDR 0x0F1B
325 #define PSMC4PRS_ADDR 0x0F1C
326 #define PSMC4ASDC_ADDR 0x0F1D
327 #define PSMC4ASDL_ADDR 0x0F1E
328 #define PSMC4ASDS_ADDR 0x0F1F
329 #define PSMC4INT_ADDR 0x0F20
330 #define PSMC4PH_ADDR 0x0F21
331 #define PSMC4PHL_ADDR 0x0F21
332 #define PSMC4PHH_ADDR 0x0F22
333 #define PSMC4DC_ADDR 0x0F23
334 #define PSMC4DCL_ADDR 0x0F23
335 #define PSMC4DCH_ADDR 0x0F24
336 #define PSMC4PR_ADDR 0x0F25
337 #define PSMC4PRL_ADDR 0x0F25
338 #define PSMC4PRH_ADDR 0x0F26
339 #define PSMC4TMR_ADDR 0x0F27
340 #define PSMC4TMRL_ADDR 0x0F27
341 #define PSMC4TMRH_ADDR 0x0F28
342 #define PSMC4DBR_ADDR 0x0F29
343 #define PSMC4DBF_ADDR 0x0F2A
344 #define PSMC4BLKR_ADDR 0x0F2B
345 #define PSMC4BLKF_ADDR 0x0F2C
346 #define PSMC4FFA_ADDR 0x0F2D
347 #define PSMC4STR0_ADDR 0x0F2E
348 #define PSMC4STR1_ADDR 0x0F2F
349 #define STATUS_SHAD_ADDR 0x0FE4
350 #define WREG_SHAD_ADDR 0x0FE5
351 #define BSR_SHAD_ADDR 0x0FE6
352 #define PCLATH_SHAD_ADDR 0x0FE7
353 #define FSR0L_SHAD_ADDR 0x0FE8
354 #define FSR0H_SHAD_ADDR 0x0FE9
355 #define FSR1L_SHAD_ADDR 0x0FEA
356 #define FSR1H_SHAD_ADDR 0x0FEB
357 #define STKPTR_ADDR 0x0FED
358 #define TOSL_ADDR 0x0FEE
359 #define TOSH_ADDR 0x0FEF
361 #endif // #ifndef NO_ADDR_DEFINES
363 //==============================================================================
365 // Register Definitions
367 //==============================================================================
369 extern __at(0x0000) __sfr INDF0
;
370 extern __at(0x0001) __sfr INDF1
;
371 extern __at(0x0002) __sfr PCL
;
373 //==============================================================================
376 extern __at(0x0003) __sfr STATUS
;
390 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
398 //==============================================================================
400 extern __at(0x0004) __sfr FSR0
;
401 extern __at(0x0004) __sfr FSR0L
;
402 extern __at(0x0005) __sfr FSR0H
;
403 extern __at(0x0006) __sfr FSR1
;
404 extern __at(0x0006) __sfr FSR1L
;
405 extern __at(0x0007) __sfr FSR1H
;
407 //==============================================================================
410 extern __at(0x0008) __sfr BSR
;
433 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
441 //==============================================================================
443 extern __at(0x0009) __sfr WREG
;
444 extern __at(0x000A) __sfr PCLATH
;
446 //==============================================================================
449 extern __at(0x000B) __sfr INTCON
;
478 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
491 //==============================================================================
494 //==============================================================================
497 extern __at(0x000C) __sfr PORTA
;
511 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
522 //==============================================================================
525 //==============================================================================
528 extern __at(0x000D) __sfr PORTB
;
542 extern __at(0x000D) volatile __PORTBbits_t PORTBbits
;
553 //==============================================================================
556 //==============================================================================
559 extern __at(0x000E) __sfr PORTC
;
573 extern __at(0x000E) volatile __PORTCbits_t PORTCbits
;
584 //==============================================================================
587 //==============================================================================
590 extern __at(0x0010) __sfr PORTE
;
604 extern __at(0x0010) volatile __PORTEbits_t PORTEbits
;
608 //==============================================================================
611 //==============================================================================
614 extern __at(0x0011) __sfr PIR1
;
625 unsigned TMR1GIF
: 1;
628 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
637 #define _TMR1GIF 0x80
639 //==============================================================================
642 //==============================================================================
645 extern __at(0x0012) __sfr PIR2
;
659 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
670 //==============================================================================
673 //==============================================================================
676 extern __at(0x0013) __sfr PIR3
;
690 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
694 //==============================================================================
697 //==============================================================================
700 extern __at(0x0014) __sfr PIR4
;
704 unsigned PSMC1SIF
: 1;
705 unsigned PSMC2SIF
: 1;
706 unsigned PSMC3SIF
: 1;
707 unsigned PSMC4SIF
: 1;
708 unsigned PSMC1TIF
: 1;
709 unsigned PSMC2TIF
: 1;
710 unsigned PSMC3TIF
: 1;
711 unsigned PSMC4TIF
: 1;
714 extern __at(0x0014) volatile __PIR4bits_t PIR4bits
;
716 #define _PSMC1SIF 0x01
717 #define _PSMC2SIF 0x02
718 #define _PSMC3SIF 0x04
719 #define _PSMC4SIF 0x08
720 #define _PSMC1TIF 0x10
721 #define _PSMC2TIF 0x20
722 #define _PSMC3TIF 0x40
723 #define _PSMC4TIF 0x80
725 //==============================================================================
727 extern __at(0x0015) __sfr TMR0
;
728 extern __at(0x0016) __sfr TMR1
;
729 extern __at(0x0016) __sfr TMR1L
;
730 extern __at(0x0017) __sfr TMR1H
;
732 //==============================================================================
735 extern __at(0x0018) __sfr T1CON
;
743 unsigned NOT_T1SYNC
: 1;
744 unsigned T1OSCEN
: 1;
745 unsigned T1CKPS0
: 1;
746 unsigned T1CKPS1
: 1;
747 unsigned TMR1CS0
: 1;
748 unsigned TMR1CS1
: 1;
765 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
768 #define _NOT_T1SYNC 0x04
769 #define _T1OSCEN 0x08
770 #define _T1CKPS0 0x10
771 #define _T1CKPS1 0x20
772 #define _TMR1CS0 0x40
773 #define _TMR1CS1 0x80
775 //==============================================================================
778 //==============================================================================
781 extern __at(0x0019) __sfr T1GCON
;
804 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
815 //==============================================================================
817 extern __at(0x001A) __sfr TMR2
;
818 extern __at(0x001B) __sfr PR2
;
820 //==============================================================================
823 extern __at(0x001C) __sfr T2CON
;
829 unsigned T2CKPS0
: 1;
830 unsigned T2CKPS1
: 1;
832 unsigned T2OUTPS0
: 1;
833 unsigned T2OUTPS1
: 1;
834 unsigned T2OUTPS2
: 1;
835 unsigned T2OUTPS3
: 1;
848 unsigned T2OUTPS
: 4;
853 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
855 #define _T2CKPS0 0x01
856 #define _T2CKPS1 0x02
858 #define _T2OUTPS0 0x08
859 #define _T2OUTPS1 0x10
860 #define _T2OUTPS2 0x20
861 #define _T2OUTPS3 0x40
863 //==============================================================================
866 //==============================================================================
869 extern __at(0x008C) __sfr TRISA
;
883 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
894 //==============================================================================
897 //==============================================================================
900 extern __at(0x008D) __sfr TRISB
;
914 extern __at(0x008D) volatile __TRISBbits_t TRISBbits
;
925 //==============================================================================
928 //==============================================================================
931 extern __at(0x008E) __sfr TRISC
;
945 extern __at(0x008E) volatile __TRISCbits_t TRISCbits
;
956 //==============================================================================
959 //==============================================================================
962 extern __at(0x0090) __sfr TRISE
;
976 extern __at(0x0090) volatile __TRISEbits_t TRISEbits
;
980 //==============================================================================
983 //==============================================================================
986 extern __at(0x0091) __sfr PIE1
;
997 unsigned TMR1GIE
: 1;
1000 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
1002 #define _TMR1IE 0x01
1003 #define _TMR2IE 0x02
1004 #define _CCP1IE 0x04
1005 #define _SSP1IE 0x08
1009 #define _TMR1GIE 0x80
1011 //==============================================================================
1014 //==============================================================================
1017 extern __at(0x0092) __sfr PIE2
;
1021 unsigned CCP2IE
: 1;
1024 unsigned BCL1IE
: 1;
1031 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
1033 #define _CCP2IE 0x01
1036 #define _BCL1IE 0x08
1042 //==============================================================================
1045 //==============================================================================
1048 extern __at(0x0093) __sfr PIE3
;
1056 unsigned CCP3IE
: 1;
1062 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
1064 #define _CCP3IE 0x10
1066 //==============================================================================
1069 //==============================================================================
1072 extern __at(0x0094) __sfr PIE4
;
1078 unsigned PSMC1SIE
: 1;
1079 unsigned PSMC2SIE
: 1;
1080 unsigned PSMC3SIE
: 1;
1081 unsigned PSMC4SIE
: 1;
1082 unsigned PSMC1TIE
: 1;
1083 unsigned PSMC2TIE
: 1;
1084 unsigned PSMC3TIE
: 1;
1085 unsigned PSMC4TIE
: 1;
1096 unsigned PMSC3TIE
: 1;
1101 extern __at(0x0094) volatile __PIE4bits_t PIE4bits
;
1103 #define _PSMC1SIE 0x01
1104 #define _PSMC2SIE 0x02
1105 #define _PSMC3SIE 0x04
1106 #define _PSMC4SIE 0x08
1107 #define _PSMC1TIE 0x10
1108 #define _PSMC2TIE 0x20
1109 #define _PSMC3TIE 0x40
1110 #define _PMSC3TIE 0x40
1111 #define _PSMC4TIE 0x80
1113 //==============================================================================
1116 //==============================================================================
1119 extern __at(0x0095) __sfr OPTION_REG
;
1129 unsigned TMR0SE
: 1;
1130 unsigned TMR0CS
: 1;
1131 unsigned INTEDG
: 1;
1132 unsigned NOT_WPUEN
: 1;
1152 } __OPTION_REGbits_t
;
1154 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
1160 #define _TMR0SE 0x10
1162 #define _TMR0CS 0x20
1164 #define _INTEDG 0x40
1165 #define _NOT_WPUEN 0x80
1167 //==============================================================================
1170 //==============================================================================
1173 extern __at(0x0096) __sfr PCON
;
1177 unsigned NOT_BOR
: 1;
1178 unsigned NOT_POR
: 1;
1179 unsigned NOT_RI
: 1;
1180 unsigned NOT_RMCLR
: 1;
1181 unsigned NOT_RWDT
: 1;
1183 unsigned STKUNF
: 1;
1184 unsigned STKOVF
: 1;
1187 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
1189 #define _NOT_BOR 0x01
1190 #define _NOT_POR 0x02
1191 #define _NOT_RI 0x04
1192 #define _NOT_RMCLR 0x08
1193 #define _NOT_RWDT 0x10
1194 #define _STKUNF 0x40
1195 #define _STKOVF 0x80
1197 //==============================================================================
1200 //==============================================================================
1203 extern __at(0x0097) __sfr WDTCON
;
1209 unsigned SWDTEN
: 1;
1210 unsigned WDTPS0
: 1;
1211 unsigned WDTPS1
: 1;
1212 unsigned WDTPS2
: 1;
1213 unsigned WDTPS3
: 1;
1214 unsigned WDTPS4
: 1;
1227 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
1229 #define _SWDTEN 0x01
1230 #define _WDTPS0 0x02
1231 #define _WDTPS1 0x04
1232 #define _WDTPS2 0x08
1233 #define _WDTPS3 0x10
1234 #define _WDTPS4 0x20
1236 //==============================================================================
1239 //==============================================================================
1242 extern __at(0x0098) __sfr OSCTUNE
;
1265 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
1274 //==============================================================================
1277 //==============================================================================
1280 extern __at(0x0099) __sfr OSCCON
;
1293 unsigned SPLLEN
: 1;
1310 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
1318 #define _SPLLEN 0x80
1320 //==============================================================================
1323 //==============================================================================
1326 extern __at(0x009A) __sfr OSCSTAT
;
1330 unsigned HFIOFS
: 1;
1331 unsigned LFIOFR
: 1;
1332 unsigned MFIOFR
: 1;
1333 unsigned HFIOFL
: 1;
1334 unsigned HFIOFR
: 1;
1337 unsigned T1OSCR
: 1;
1340 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
1342 #define _HFIOFS 0x01
1343 #define _LFIOFR 0x02
1344 #define _MFIOFR 0x04
1345 #define _HFIOFL 0x08
1346 #define _HFIOFR 0x10
1349 #define _T1OSCR 0x80
1351 //==============================================================================
1353 extern __at(0x009B) __sfr ADRES
;
1354 extern __at(0x009B) __sfr ADRESL
;
1355 extern __at(0x009C) __sfr ADRESH
;
1357 //==============================================================================
1360 extern __at(0x009D) __sfr ADCON0
;
1367 unsigned GO_NOT_DONE
: 1;
1420 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1423 #define _GO_NOT_DONE 0x02
1434 //==============================================================================
1437 //==============================================================================
1440 extern __at(0x009E) __sfr ADCON1
;
1446 unsigned ADPREF0
: 1;
1447 unsigned ADPREF1
: 1;
1448 unsigned ADNREF
: 1;
1458 unsigned ADPREF
: 2;
1470 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1472 #define _ADPREF0 0x01
1473 #define _ADPREF1 0x02
1474 #define _ADNREF 0x04
1480 //==============================================================================
1483 //==============================================================================
1486 extern __at(0x009F) __sfr ADCON2
;
1496 unsigned TRIGSEL0
: 1;
1497 unsigned TRIGSEL1
: 1;
1498 unsigned TRIGSEL2
: 1;
1499 unsigned TRIGSEL3
: 1;
1511 unsigned TRIGSEL
: 4;
1515 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1521 #define _TRIGSEL0 0x10
1522 #define _TRIGSEL1 0x20
1523 #define _TRIGSEL2 0x40
1524 #define _TRIGSEL3 0x80
1526 //==============================================================================
1529 //==============================================================================
1532 extern __at(0x010C) __sfr LATA
;
1546 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1557 //==============================================================================
1560 //==============================================================================
1563 extern __at(0x010D) __sfr LATB
;
1577 extern __at(0x010D) volatile __LATBbits_t LATBbits
;
1588 //==============================================================================
1591 //==============================================================================
1594 extern __at(0x010E) __sfr LATC
;
1608 extern __at(0x010E) volatile __LATCbits_t LATCbits
;
1619 //==============================================================================
1622 //==============================================================================
1625 extern __at(0x0111) __sfr CM1CON0
;
1629 unsigned C1SYNC
: 1;
1639 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1641 #define _C1SYNC 0x01
1650 //==============================================================================
1653 //==============================================================================
1656 extern __at(0x0112) __sfr CM1CON1
;
1662 unsigned C1NCH0
: 1;
1663 unsigned C1NCH1
: 1;
1664 unsigned C1NCH2
: 1;
1665 unsigned C1PCH0
: 1;
1666 unsigned C1PCH1
: 1;
1667 unsigned C1PCH2
: 1;
1668 unsigned C1INTN
: 1;
1669 unsigned C1INTP
: 1;
1686 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1688 #define _C1NCH0 0x01
1689 #define _C1NCH1 0x02
1690 #define _C1NCH2 0x04
1691 #define _C1PCH0 0x08
1692 #define _C1PCH1 0x10
1693 #define _C1PCH2 0x20
1694 #define _C1INTN 0x40
1695 #define _C1INTP 0x80
1697 //==============================================================================
1700 //==============================================================================
1703 extern __at(0x0113) __sfr CM2CON0
;
1707 unsigned C2SYNC
: 1;
1717 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits
;
1719 #define _C2SYNC 0x01
1728 //==============================================================================
1731 //==============================================================================
1734 extern __at(0x0114) __sfr CM2CON1
;
1740 unsigned C2NCH0
: 1;
1741 unsigned C2NCH1
: 1;
1742 unsigned C2NCH2
: 1;
1743 unsigned C2PCH0
: 1;
1744 unsigned C2PCH1
: 1;
1745 unsigned C2PCH2
: 1;
1746 unsigned C2INTN
: 1;
1747 unsigned C2INTP
: 1;
1764 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits
;
1766 #define _C2NCH0 0x01
1767 #define _C2NCH1 0x02
1768 #define _C2NCH2 0x04
1769 #define _C2PCH0 0x08
1770 #define _C2PCH1 0x10
1771 #define _C2PCH2 0x20
1772 #define _C2INTN 0x40
1773 #define _C2INTP 0x80
1775 //==============================================================================
1778 //==============================================================================
1781 extern __at(0x0115) __sfr CMOUT
;
1785 unsigned MC1OUT
: 1;
1786 unsigned MC2OUT
: 1;
1787 unsigned MC3OUT
: 1;
1788 unsigned MC4OUT
: 1;
1795 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1797 #define _MC1OUT 0x01
1798 #define _MC2OUT 0x02
1799 #define _MC3OUT 0x04
1800 #define _MC4OUT 0x08
1802 //==============================================================================
1805 //==============================================================================
1808 extern __at(0x0116) __sfr BORCON
;
1812 unsigned BORRDY
: 1;
1819 unsigned SBOREN
: 1;
1822 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1824 #define _BORRDY 0x01
1826 #define _SBOREN 0x80
1828 //==============================================================================
1831 //==============================================================================
1834 extern __at(0x0117) __sfr FVRCON
;
1840 unsigned ADFVR0
: 1;
1841 unsigned ADFVR1
: 1;
1842 unsigned CDAFVR0
: 1;
1843 unsigned CDAFVR1
: 1;
1846 unsigned FVRRDY
: 1;
1859 unsigned CDAFVR
: 2;
1864 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1866 #define _ADFVR0 0x01
1867 #define _ADFVR1 0x02
1868 #define _CDAFVR0 0x04
1869 #define _CDAFVR1 0x08
1872 #define _FVRRDY 0x40
1875 //==============================================================================
1878 //==============================================================================
1881 extern __at(0x0118) __sfr DAC1CON0
;
1887 unsigned DAC1NSS
: 1;
1889 unsigned DAC1PSS0
: 1;
1890 unsigned DAC1PSS1
: 1;
1891 unsigned DAC1OE2
: 1;
1892 unsigned DAC1OE1
: 1;
1894 unsigned DAC1EN
: 1;
1899 unsigned DACNSS
: 1;
1901 unsigned DACPSS0
: 1;
1902 unsigned DACPSS1
: 1;
1903 unsigned DACOE0
: 1;
1904 unsigned DACOE1
: 1;
1912 unsigned DACPSS
: 2;
1919 unsigned DAC1PSS
: 2;
1931 extern __at(0x0118) volatile __DAC1CON0bits_t DAC1CON0bits
;
1933 #define _DAC1NSS 0x01
1934 #define _DACNSS 0x01
1935 #define _DAC1PSS0 0x04
1936 #define _DACPSS0 0x04
1937 #define _DAC1PSS1 0x08
1938 #define _DACPSS1 0x08
1939 #define _DAC1OE2 0x10
1940 #define _DACOE0 0x10
1941 #define _DAC1OE1 0x20
1942 #define _DACOE1 0x20
1943 #define _DAC1EN 0x80
1946 //==============================================================================
1949 //==============================================================================
1952 extern __at(0x0119) __sfr DAC1CON1
;
1958 unsigned DAC1R0
: 1;
1959 unsigned DAC1R1
: 1;
1960 unsigned DAC1R2
: 1;
1961 unsigned DAC1R3
: 1;
1962 unsigned DAC1R4
: 1;
1963 unsigned DAC1R5
: 1;
1964 unsigned DAC1R6
: 1;
1965 unsigned DAC1R7
: 1;
1981 extern __at(0x0119) volatile __DAC1CON1bits_t DAC1CON1bits
;
1983 #define _DAC1R0 0x01
1985 #define _DAC1R1 0x02
1987 #define _DAC1R2 0x04
1989 #define _DAC1R3 0x08
1991 #define _DAC1R4 0x10
1993 #define _DAC1R5 0x20
1995 #define _DAC1R6 0x40
1997 #define _DAC1R7 0x80
2000 //==============================================================================
2003 //==============================================================================
2006 extern __at(0x011A) __sfr CM4CON0
;
2010 unsigned C4SYNC
: 1;
2020 extern __at(0x011A) volatile __CM4CON0bits_t CM4CON0bits
;
2022 #define _C4SYNC 0x01
2031 //==============================================================================
2034 //==============================================================================
2037 extern __at(0x011B) __sfr CM4CON1
;
2043 unsigned C4NCH0
: 1;
2044 unsigned C4NCH1
: 1;
2045 unsigned C4NCH2
: 1;
2046 unsigned C4PCH0
: 1;
2047 unsigned C4PCH1
: 1;
2048 unsigned C4PCH2
: 1;
2049 unsigned C4INTN
: 1;
2050 unsigned C4INTP
: 1;
2067 extern __at(0x011B) volatile __CM4CON1bits_t CM4CON1bits
;
2069 #define _C4NCH0 0x01
2070 #define _C4NCH1 0x02
2071 #define _C4NCH2 0x04
2072 #define _C4PCH0 0x08
2073 #define _C4PCH1 0x10
2074 #define _C4PCH2 0x20
2075 #define _C4INTN 0x40
2076 #define _C4INTP 0x80
2078 //==============================================================================
2081 //==============================================================================
2084 extern __at(0x011C) __sfr APFCON2
;
2088 unsigned CCP3SEL
: 1;
2098 extern __at(0x011C) volatile __APFCON2bits_t APFCON2bits
;
2100 #define _CCP3SEL 0x01
2102 //==============================================================================
2105 //==============================================================================
2108 extern __at(0x011D) __sfr APFCON
;
2112 unsigned CCP2SEL
: 1;
2115 unsigned SDISEL
: 1;
2116 unsigned SCKSEL
: 1;
2117 unsigned SDOSEL
: 1;
2118 unsigned CCP1SEL
: 1;
2119 unsigned C2OUTSEL
: 1;
2122 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
2124 #define _CCP2SEL 0x01
2127 #define _SDISEL 0x08
2128 #define _SCKSEL 0x10
2129 #define _SDOSEL 0x20
2130 #define _CCP1SEL 0x40
2131 #define _C2OUTSEL 0x80
2133 //==============================================================================
2136 //==============================================================================
2139 extern __at(0x011D) __sfr APFCON0
;
2143 unsigned CCP2SEL
: 1;
2146 unsigned SDISEL
: 1;
2147 unsigned SCKSEL
: 1;
2148 unsigned SDOSEL
: 1;
2149 unsigned CCP1SEL
: 1;
2150 unsigned C2OUTSEL
: 1;
2153 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits
;
2155 #define _APFCON0_CCP2SEL 0x01
2156 #define _APFCON0_RXSEL 0x02
2157 #define _APFCON0_TXSEL 0x04
2158 #define _APFCON0_SDISEL 0x08
2159 #define _APFCON0_SCKSEL 0x10
2160 #define _APFCON0_SDOSEL 0x20
2161 #define _APFCON0_CCP1SEL 0x40
2162 #define _APFCON0_C2OUTSEL 0x80
2164 //==============================================================================
2167 //==============================================================================
2170 extern __at(0x011D) __sfr APFCON1
;
2174 unsigned CCP2SEL
: 1;
2177 unsigned SDISEL
: 1;
2178 unsigned SCKSEL
: 1;
2179 unsigned SDOSEL
: 1;
2180 unsigned CCP1SEL
: 1;
2181 unsigned C2OUTSEL
: 1;
2184 extern __at(0x011D) volatile __APFCON1bits_t APFCON1bits
;
2186 #define _APFCON1_CCP2SEL 0x01
2187 #define _APFCON1_RXSEL 0x02
2188 #define _APFCON1_TXSEL 0x04
2189 #define _APFCON1_SDISEL 0x08
2190 #define _APFCON1_SCKSEL 0x10
2191 #define _APFCON1_SDOSEL 0x20
2192 #define _APFCON1_CCP1SEL 0x40
2193 #define _APFCON1_C2OUTSEL 0x80
2195 //==============================================================================
2198 //==============================================================================
2201 extern __at(0x011E) __sfr CM3CON0
;
2205 unsigned C3SYNC
: 1;
2215 extern __at(0x011E) volatile __CM3CON0bits_t CM3CON0bits
;
2217 #define _C3SYNC 0x01
2226 //==============================================================================
2229 //==============================================================================
2232 extern __at(0x011F) __sfr CM3CON1
;
2238 unsigned C3NCH0
: 1;
2239 unsigned C3NCH1
: 1;
2240 unsigned C3NCH2
: 1;
2241 unsigned C3PCH0
: 1;
2242 unsigned C3PCH1
: 1;
2243 unsigned C3PCH2
: 1;
2244 unsigned C3INTN
: 1;
2245 unsigned C3INTP
: 1;
2262 extern __at(0x011F) volatile __CM3CON1bits_t CM3CON1bits
;
2264 #define _C3NCH0 0x01
2265 #define _C3NCH1 0x02
2266 #define _C3NCH2 0x04
2267 #define _C3PCH0 0x08
2268 #define _C3PCH1 0x10
2269 #define _C3PCH2 0x20
2270 #define _C3INTN 0x40
2271 #define _C3INTP 0x80
2273 //==============================================================================
2276 //==============================================================================
2279 extern __at(0x018C) __sfr ANSELA
;
2293 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
2303 //==============================================================================
2306 //==============================================================================
2309 extern __at(0x018D) __sfr ANSELB
;
2332 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits
;
2342 //==============================================================================
2345 //==============================================================================
2348 extern __at(0x018E) __sfr ANSELC
;
2362 extern __at(0x018E) volatile __ANSELCbits_t ANSELCbits
;
2373 //==============================================================================
2375 extern __at(0x0191) __sfr EEADR
;
2376 extern __at(0x0191) __sfr EEADRL
;
2377 extern __at(0x0192) __sfr EEADRH
;
2378 extern __at(0x0193) __sfr EEDAT
;
2379 extern __at(0x0193) __sfr EEDATL
;
2380 extern __at(0x0194) __sfr EEDATH
;
2382 //==============================================================================
2385 extern __at(0x0195) __sfr EECON1
;
2399 extern __at(0x0195) volatile __EECON1bits_t EECON1bits
;
2410 //==============================================================================
2412 extern __at(0x0196) __sfr EECON2
;
2413 extern __at(0x0199) __sfr RC1REG
;
2414 extern __at(0x0199) __sfr RCREG
;
2415 extern __at(0x0199) __sfr RCREG1
;
2416 extern __at(0x019A) __sfr TX1REG
;
2417 extern __at(0x019A) __sfr TXREG
;
2418 extern __at(0x019A) __sfr TXREG1
;
2419 extern __at(0x019B) __sfr SP1BRG
;
2420 extern __at(0x019B) __sfr SP1BRGL
;
2421 extern __at(0x019B) __sfr SPBRG
;
2422 extern __at(0x019B) __sfr SPBRG1
;
2423 extern __at(0x019B) __sfr SPBRGL
;
2424 extern __at(0x019C) __sfr SP1BRGH
;
2425 extern __at(0x019C) __sfr SPBRGH
;
2426 extern __at(0x019C) __sfr SPBRGH1
;
2428 //==============================================================================
2431 extern __at(0x019D) __sfr RC1STA
;
2445 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits
;
2456 //==============================================================================
2459 //==============================================================================
2462 extern __at(0x019D) __sfr RCSTA
;
2476 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
2478 #define _RCSTA_RX9D 0x01
2479 #define _RCSTA_OERR 0x02
2480 #define _RCSTA_FERR 0x04
2481 #define _RCSTA_ADDEN 0x08
2482 #define _RCSTA_CREN 0x10
2483 #define _RCSTA_SREN 0x20
2484 #define _RCSTA_RX9 0x40
2485 #define _RCSTA_SPEN 0x80
2487 //==============================================================================
2490 //==============================================================================
2493 extern __at(0x019D) __sfr RCSTA1
;
2507 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits
;
2509 #define _RCSTA1_RX9D 0x01
2510 #define _RCSTA1_OERR 0x02
2511 #define _RCSTA1_FERR 0x04
2512 #define _RCSTA1_ADDEN 0x08
2513 #define _RCSTA1_CREN 0x10
2514 #define _RCSTA1_SREN 0x20
2515 #define _RCSTA1_RX9 0x40
2516 #define _RCSTA1_SPEN 0x80
2518 //==============================================================================
2521 //==============================================================================
2524 extern __at(0x019E) __sfr TX1STA
;
2538 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits
;
2549 //==============================================================================
2552 //==============================================================================
2555 extern __at(0x019E) __sfr TXSTA
;
2569 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
2571 #define _TXSTA_TX9D 0x01
2572 #define _TXSTA_TRMT 0x02
2573 #define _TXSTA_BRGH 0x04
2574 #define _TXSTA_SENDB 0x08
2575 #define _TXSTA_SYNC 0x10
2576 #define _TXSTA_TXEN 0x20
2577 #define _TXSTA_TX9 0x40
2578 #define _TXSTA_CSRC 0x80
2580 //==============================================================================
2583 //==============================================================================
2586 extern __at(0x019E) __sfr TXSTA1
;
2600 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits
;
2602 #define _TXSTA1_TX9D 0x01
2603 #define _TXSTA1_TRMT 0x02
2604 #define _TXSTA1_BRGH 0x04
2605 #define _TXSTA1_SENDB 0x08
2606 #define _TXSTA1_SYNC 0x10
2607 #define _TXSTA1_TXEN 0x20
2608 #define _TXSTA1_TX9 0x40
2609 #define _TXSTA1_CSRC 0x80
2611 //==============================================================================
2614 //==============================================================================
2617 extern __at(0x019F) __sfr BAUD1CON
;
2628 unsigned ABDOVF
: 1;
2631 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits
;
2638 #define _ABDOVF 0x80
2640 //==============================================================================
2643 //==============================================================================
2646 extern __at(0x019F) __sfr BAUDCON
;
2657 unsigned ABDOVF
: 1;
2660 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
2662 #define _BAUDCON_ABDEN 0x01
2663 #define _BAUDCON_WUE 0x02
2664 #define _BAUDCON_BRG16 0x08
2665 #define _BAUDCON_SCKP 0x10
2666 #define _BAUDCON_RCIDL 0x40
2667 #define _BAUDCON_ABDOVF 0x80
2669 //==============================================================================
2672 //==============================================================================
2675 extern __at(0x019F) __sfr BAUDCON1
;
2686 unsigned ABDOVF
: 1;
2689 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits
;
2691 #define _BAUDCON1_ABDEN 0x01
2692 #define _BAUDCON1_WUE 0x02
2693 #define _BAUDCON1_BRG16 0x08
2694 #define _BAUDCON1_SCKP 0x10
2695 #define _BAUDCON1_RCIDL 0x40
2696 #define _BAUDCON1_ABDOVF 0x80
2698 //==============================================================================
2701 //==============================================================================
2704 extern __at(0x019F) __sfr BAUDCTL
;
2715 unsigned ABDOVF
: 1;
2718 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits
;
2720 #define _BAUDCTL_ABDEN 0x01
2721 #define _BAUDCTL_WUE 0x02
2722 #define _BAUDCTL_BRG16 0x08
2723 #define _BAUDCTL_SCKP 0x10
2724 #define _BAUDCTL_RCIDL 0x40
2725 #define _BAUDCTL_ABDOVF 0x80
2727 //==============================================================================
2730 //==============================================================================
2733 extern __at(0x019F) __sfr BAUDCTL1
;
2744 unsigned ABDOVF
: 1;
2747 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits
;
2749 #define _BAUDCTL1_ABDEN 0x01
2750 #define _BAUDCTL1_WUE 0x02
2751 #define _BAUDCTL1_BRG16 0x08
2752 #define _BAUDCTL1_SCKP 0x10
2753 #define _BAUDCTL1_RCIDL 0x40
2754 #define _BAUDCTL1_ABDOVF 0x80
2756 //==============================================================================
2759 //==============================================================================
2762 extern __at(0x020C) __sfr WPUA
;
2776 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
2787 //==============================================================================
2790 //==============================================================================
2793 extern __at(0x020D) __sfr WPUB
;
2807 extern __at(0x020D) volatile __WPUBbits_t WPUBbits
;
2818 //==============================================================================
2821 //==============================================================================
2824 extern __at(0x020E) __sfr WPUC
;
2838 extern __at(0x020E) volatile __WPUCbits_t WPUCbits
;
2849 //==============================================================================
2852 //==============================================================================
2855 extern __at(0x0210) __sfr WPUE
;
2869 extern __at(0x0210) volatile __WPUEbits_t WPUEbits
;
2873 //==============================================================================
2876 //==============================================================================
2879 extern __at(0x0211) __sfr SSP1BUF
;
2885 unsigned SSP1BUF0
: 1;
2886 unsigned SSP1BUF1
: 1;
2887 unsigned SSP1BUF2
: 1;
2888 unsigned SSP1BUF3
: 1;
2889 unsigned SSP1BUF4
: 1;
2890 unsigned SSP1BUF5
: 1;
2891 unsigned SSP1BUF6
: 1;
2892 unsigned SSP1BUF7
: 1;
2908 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits
;
2910 #define _SSP1BUF0 0x01
2912 #define _SSP1BUF1 0x02
2914 #define _SSP1BUF2 0x04
2916 #define _SSP1BUF3 0x08
2918 #define _SSP1BUF4 0x10
2920 #define _SSP1BUF5 0x20
2922 #define _SSP1BUF6 0x40
2924 #define _SSP1BUF7 0x80
2927 //==============================================================================
2930 //==============================================================================
2933 extern __at(0x0211) __sfr SSPBUF
;
2939 unsigned SSP1BUF0
: 1;
2940 unsigned SSP1BUF1
: 1;
2941 unsigned SSP1BUF2
: 1;
2942 unsigned SSP1BUF3
: 1;
2943 unsigned SSP1BUF4
: 1;
2944 unsigned SSP1BUF5
: 1;
2945 unsigned SSP1BUF6
: 1;
2946 unsigned SSP1BUF7
: 1;
2962 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits
;
2964 #define _SSPBUF_SSP1BUF0 0x01
2965 #define _SSPBUF_BUF0 0x01
2966 #define _SSPBUF_SSP1BUF1 0x02
2967 #define _SSPBUF_BUF1 0x02
2968 #define _SSPBUF_SSP1BUF2 0x04
2969 #define _SSPBUF_BUF2 0x04
2970 #define _SSPBUF_SSP1BUF3 0x08
2971 #define _SSPBUF_BUF3 0x08
2972 #define _SSPBUF_SSP1BUF4 0x10
2973 #define _SSPBUF_BUF4 0x10
2974 #define _SSPBUF_SSP1BUF5 0x20
2975 #define _SSPBUF_BUF5 0x20
2976 #define _SSPBUF_SSP1BUF6 0x40
2977 #define _SSPBUF_BUF6 0x40
2978 #define _SSPBUF_SSP1BUF7 0x80
2979 #define _SSPBUF_BUF7 0x80
2981 //==============================================================================
2984 //==============================================================================
2987 extern __at(0x0212) __sfr SSP1ADD
;
2993 unsigned SSP1ADD0
: 1;
2994 unsigned SSP1ADD1
: 1;
2995 unsigned SSP1ADD2
: 1;
2996 unsigned SSP1ADD3
: 1;
2997 unsigned SSP1ADD4
: 1;
2998 unsigned SSP1ADD5
: 1;
2999 unsigned SSP1ADD6
: 1;
3000 unsigned SSP1ADD7
: 1;
3016 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits
;
3018 #define _SSP1ADD0 0x01
3020 #define _SSP1ADD1 0x02
3022 #define _SSP1ADD2 0x04
3024 #define _SSP1ADD3 0x08
3026 #define _SSP1ADD4 0x10
3028 #define _SSP1ADD5 0x20
3030 #define _SSP1ADD6 0x40
3032 #define _SSP1ADD7 0x80
3035 //==============================================================================
3038 //==============================================================================
3041 extern __at(0x0212) __sfr SSPADD
;
3047 unsigned SSP1ADD0
: 1;
3048 unsigned SSP1ADD1
: 1;
3049 unsigned SSP1ADD2
: 1;
3050 unsigned SSP1ADD3
: 1;
3051 unsigned SSP1ADD4
: 1;
3052 unsigned SSP1ADD5
: 1;
3053 unsigned SSP1ADD6
: 1;
3054 unsigned SSP1ADD7
: 1;
3070 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits
;
3072 #define _SSPADD_SSP1ADD0 0x01
3073 #define _SSPADD_ADD0 0x01
3074 #define _SSPADD_SSP1ADD1 0x02
3075 #define _SSPADD_ADD1 0x02
3076 #define _SSPADD_SSP1ADD2 0x04
3077 #define _SSPADD_ADD2 0x04
3078 #define _SSPADD_SSP1ADD3 0x08
3079 #define _SSPADD_ADD3 0x08
3080 #define _SSPADD_SSP1ADD4 0x10
3081 #define _SSPADD_ADD4 0x10
3082 #define _SSPADD_SSP1ADD5 0x20
3083 #define _SSPADD_ADD5 0x20
3084 #define _SSPADD_SSP1ADD6 0x40
3085 #define _SSPADD_ADD6 0x40
3086 #define _SSPADD_SSP1ADD7 0x80
3087 #define _SSPADD_ADD7 0x80
3089 //==============================================================================
3092 //==============================================================================
3095 extern __at(0x0213) __sfr SSP1MSK
;
3101 unsigned SSP1MSK0
: 1;
3102 unsigned SSP1MSK1
: 1;
3103 unsigned SSP1MSK2
: 1;
3104 unsigned SSP1MSK3
: 1;
3105 unsigned SSP1MSK4
: 1;
3106 unsigned SSP1MSK5
: 1;
3107 unsigned SSP1MSK6
: 1;
3108 unsigned SSP1MSK7
: 1;
3124 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits
;
3126 #define _SSP1MSK0 0x01
3128 #define _SSP1MSK1 0x02
3130 #define _SSP1MSK2 0x04
3132 #define _SSP1MSK3 0x08
3134 #define _SSP1MSK4 0x10
3136 #define _SSP1MSK5 0x20
3138 #define _SSP1MSK6 0x40
3140 #define _SSP1MSK7 0x80
3143 //==============================================================================
3146 //==============================================================================
3149 extern __at(0x0213) __sfr SSPMSK
;
3155 unsigned SSP1MSK0
: 1;
3156 unsigned SSP1MSK1
: 1;
3157 unsigned SSP1MSK2
: 1;
3158 unsigned SSP1MSK3
: 1;
3159 unsigned SSP1MSK4
: 1;
3160 unsigned SSP1MSK5
: 1;
3161 unsigned SSP1MSK6
: 1;
3162 unsigned SSP1MSK7
: 1;
3178 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits
;
3180 #define _SSPMSK_SSP1MSK0 0x01
3181 #define _SSPMSK_MSK0 0x01
3182 #define _SSPMSK_SSP1MSK1 0x02
3183 #define _SSPMSK_MSK1 0x02
3184 #define _SSPMSK_SSP1MSK2 0x04
3185 #define _SSPMSK_MSK2 0x04
3186 #define _SSPMSK_SSP1MSK3 0x08
3187 #define _SSPMSK_MSK3 0x08
3188 #define _SSPMSK_SSP1MSK4 0x10
3189 #define _SSPMSK_MSK4 0x10
3190 #define _SSPMSK_SSP1MSK5 0x20
3191 #define _SSPMSK_MSK5 0x20
3192 #define _SSPMSK_SSP1MSK6 0x40
3193 #define _SSPMSK_MSK6 0x40
3194 #define _SSPMSK_SSP1MSK7 0x80
3195 #define _SSPMSK_MSK7 0x80
3197 //==============================================================================
3200 //==============================================================================
3203 extern __at(0x0214) __sfr SSP1STAT
;
3209 unsigned R_NOT_W
: 1;
3212 unsigned D_NOT_A
: 1;
3217 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits
;
3221 #define _R_NOT_W 0x04
3224 #define _D_NOT_A 0x20
3228 //==============================================================================
3231 //==============================================================================
3234 extern __at(0x0214) __sfr SSPSTAT
;
3240 unsigned R_NOT_W
: 1;
3243 unsigned D_NOT_A
: 1;
3248 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits
;
3250 #define _SSPSTAT_BF 0x01
3251 #define _SSPSTAT_UA 0x02
3252 #define _SSPSTAT_R_NOT_W 0x04
3253 #define _SSPSTAT_S 0x08
3254 #define _SSPSTAT_P 0x10
3255 #define _SSPSTAT_D_NOT_A 0x20
3256 #define _SSPSTAT_CKE 0x40
3257 #define _SSPSTAT_SMP 0x80
3259 //==============================================================================
3262 //==============================================================================
3265 extern __at(0x0215) __sfr SSP1CON
;
3288 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits
;
3299 //==============================================================================
3302 //==============================================================================
3305 extern __at(0x0215) __sfr SSP1CON1
;
3328 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits
;
3330 #define _SSP1CON1_SSPM0 0x01
3331 #define _SSP1CON1_SSPM1 0x02
3332 #define _SSP1CON1_SSPM2 0x04
3333 #define _SSP1CON1_SSPM3 0x08
3334 #define _SSP1CON1_CKP 0x10
3335 #define _SSP1CON1_SSPEN 0x20
3336 #define _SSP1CON1_SSPOV 0x40
3337 #define _SSP1CON1_WCOL 0x80
3339 //==============================================================================
3342 //==============================================================================
3345 extern __at(0x0215) __sfr SSPCON
;
3368 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits
;
3370 #define _SSPCON_SSPM0 0x01
3371 #define _SSPCON_SSPM1 0x02
3372 #define _SSPCON_SSPM2 0x04
3373 #define _SSPCON_SSPM3 0x08
3374 #define _SSPCON_CKP 0x10
3375 #define _SSPCON_SSPEN 0x20
3376 #define _SSPCON_SSPOV 0x40
3377 #define _SSPCON_WCOL 0x80
3379 //==============================================================================
3382 //==============================================================================
3385 extern __at(0x0215) __sfr SSPCON1
;
3408 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits
;
3410 #define _SSPCON1_SSPM0 0x01
3411 #define _SSPCON1_SSPM1 0x02
3412 #define _SSPCON1_SSPM2 0x04
3413 #define _SSPCON1_SSPM3 0x08
3414 #define _SSPCON1_CKP 0x10
3415 #define _SSPCON1_SSPEN 0x20
3416 #define _SSPCON1_SSPOV 0x40
3417 #define _SSPCON1_WCOL 0x80
3419 //==============================================================================
3422 //==============================================================================
3425 extern __at(0x0216) __sfr SSP1CON2
;
3435 unsigned ACKSTAT
: 1;
3439 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits
;
3447 #define _ACKSTAT 0x40
3450 //==============================================================================
3453 //==============================================================================
3456 extern __at(0x0216) __sfr SSPCON2
;
3466 unsigned ACKSTAT
: 1;
3470 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits
;
3472 #define _SSPCON2_SEN 0x01
3473 #define _SSPCON2_RSEN 0x02
3474 #define _SSPCON2_PEN 0x04
3475 #define _SSPCON2_RCEN 0x08
3476 #define _SSPCON2_ACKEN 0x10
3477 #define _SSPCON2_ACKDT 0x20
3478 #define _SSPCON2_ACKSTAT 0x40
3479 #define _SSPCON2_GCEN 0x80
3481 //==============================================================================
3484 //==============================================================================
3487 extern __at(0x0217) __sfr SSP1CON3
;
3498 unsigned ACKTIM
: 1;
3501 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits
;
3510 #define _ACKTIM 0x80
3512 //==============================================================================
3515 //==============================================================================
3518 extern __at(0x0217) __sfr SSPCON3
;
3529 unsigned ACKTIM
: 1;
3532 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits
;
3534 #define _SSPCON3_DHEN 0x01
3535 #define _SSPCON3_AHEN 0x02
3536 #define _SSPCON3_SBCDE 0x04
3537 #define _SSPCON3_SDAHT 0x08
3538 #define _SSPCON3_BOEN 0x10
3539 #define _SSPCON3_SCIE 0x20
3540 #define _SSPCON3_PCIE 0x40
3541 #define _SSPCON3_ACKTIM 0x80
3543 //==============================================================================
3546 //==============================================================================
3549 extern __at(0x028C) __sfr ODCONA
;
3553 unsigned ODCONA0
: 1;
3554 unsigned ODCONA1
: 1;
3555 unsigned ODCONA2
: 1;
3556 unsigned ODCONA3
: 1;
3557 unsigned ODCONA4
: 1;
3558 unsigned ODCONA5
: 1;
3559 unsigned ODCONA6
: 1;
3560 unsigned ODCONA7
: 1;
3563 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
3565 #define _ODCONA0 0x01
3566 #define _ODCONA1 0x02
3567 #define _ODCONA2 0x04
3568 #define _ODCONA3 0x08
3569 #define _ODCONA4 0x10
3570 #define _ODCONA5 0x20
3571 #define _ODCONA6 0x40
3572 #define _ODCONA7 0x80
3574 //==============================================================================
3577 //==============================================================================
3580 extern __at(0x028D) __sfr ODCONB
;
3584 unsigned ODCONB0
: 1;
3585 unsigned ODCONB1
: 1;
3586 unsigned ODCONB2
: 1;
3587 unsigned ODCONB3
: 1;
3588 unsigned ODCONB4
: 1;
3589 unsigned ODCONB5
: 1;
3590 unsigned ODCONB6
: 1;
3591 unsigned ODCONB7
: 1;
3594 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits
;
3596 #define _ODCONB0 0x01
3597 #define _ODCONB1 0x02
3598 #define _ODCONB2 0x04
3599 #define _ODCONB3 0x08
3600 #define _ODCONB4 0x10
3601 #define _ODCONB5 0x20
3602 #define _ODCONB6 0x40
3603 #define _ODCONB7 0x80
3605 //==============================================================================
3608 //==============================================================================
3611 extern __at(0x028E) __sfr ODCONC
;
3615 unsigned ODCONC0
: 1;
3616 unsigned ODCONC1
: 1;
3617 unsigned ODCONC2
: 1;
3618 unsigned ODCONC3
: 1;
3619 unsigned ODCONC4
: 1;
3620 unsigned ODCONC5
: 1;
3621 unsigned ODCONC6
: 1;
3622 unsigned ODCONC7
: 1;
3625 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits
;
3627 #define _ODCONC0 0x01
3628 #define _ODCONC1 0x02
3629 #define _ODCONC2 0x04
3630 #define _ODCONC3 0x08
3631 #define _ODCONC4 0x10
3632 #define _ODCONC5 0x20
3633 #define _ODCONC6 0x40
3634 #define _ODCONC7 0x80
3636 //==============================================================================
3638 extern __at(0x0291) __sfr CCPR1
;
3639 extern __at(0x0291) __sfr CCPR1L
;
3640 extern __at(0x0292) __sfr CCPR1H
;
3642 //==============================================================================
3645 extern __at(0x0293) __sfr CCP1CON
;
3651 unsigned CCP1M0
: 1;
3652 unsigned CCP1M1
: 1;
3653 unsigned CCP1M2
: 1;
3654 unsigned CCP1M3
: 1;
3675 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits
;
3677 #define _CCP1M0 0x01
3678 #define _CCP1M1 0x02
3679 #define _CCP1M2 0x04
3680 #define _CCP1M3 0x08
3684 //==============================================================================
3686 extern __at(0x0298) __sfr CCPR2
;
3687 extern __at(0x0298) __sfr CCPR2L
;
3688 extern __at(0x0299) __sfr CCPR2H
;
3690 //==============================================================================
3693 extern __at(0x029A) __sfr CCP2CON
;
3699 unsigned CCP2M0
: 1;
3700 unsigned CCP2M1
: 1;
3701 unsigned CCP2M2
: 1;
3702 unsigned CCP2M3
: 1;
3723 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits
;
3725 #define _CCP2M0 0x01
3726 #define _CCP2M1 0x02
3727 #define _CCP2M2 0x04
3728 #define _CCP2M3 0x08
3732 //==============================================================================
3735 //==============================================================================
3738 extern __at(0x030C) __sfr SLRCONA
;
3742 unsigned SLRCONA0
: 1;
3743 unsigned SLRCONA1
: 1;
3744 unsigned SLRCONA2
: 1;
3745 unsigned SLRCONA3
: 1;
3746 unsigned SLRCONA4
: 1;
3747 unsigned SLRCONA5
: 1;
3748 unsigned SLRCONA6
: 1;
3749 unsigned SLRCONA7
: 1;
3752 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
3754 #define _SLRCONA0 0x01
3755 #define _SLRCONA1 0x02
3756 #define _SLRCONA2 0x04
3757 #define _SLRCONA3 0x08
3758 #define _SLRCONA4 0x10
3759 #define _SLRCONA5 0x20
3760 #define _SLRCONA6 0x40
3761 #define _SLRCONA7 0x80
3763 //==============================================================================
3766 //==============================================================================
3769 extern __at(0x030D) __sfr SLRCONB
;
3773 unsigned SLRCONB0
: 1;
3774 unsigned SLRCONB1
: 1;
3775 unsigned SLRCONB2
: 1;
3776 unsigned SLRCONB3
: 1;
3777 unsigned SLRCONB4
: 1;
3778 unsigned SLRCONB5
: 1;
3779 unsigned SLRCONB6
: 1;
3780 unsigned SLRCONB7
: 1;
3783 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits
;
3785 #define _SLRCONB0 0x01
3786 #define _SLRCONB1 0x02
3787 #define _SLRCONB2 0x04
3788 #define _SLRCONB3 0x08
3789 #define _SLRCONB4 0x10
3790 #define _SLRCONB5 0x20
3791 #define _SLRCONB6 0x40
3792 #define _SLRCONB7 0x80
3794 //==============================================================================
3797 //==============================================================================
3800 extern __at(0x030E) __sfr SLRCONC
;
3804 unsigned SLRCONC0
: 1;
3805 unsigned SLRCONC1
: 1;
3806 unsigned SLRCONC2
: 1;
3807 unsigned SLRCONC3
: 1;
3808 unsigned SLRCONC4
: 1;
3809 unsigned SLRCONC5
: 1;
3810 unsigned SLRCONC6
: 1;
3811 unsigned SLRCONC7
: 1;
3814 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits
;
3816 #define _SLRCONC0 0x01
3817 #define _SLRCONC1 0x02
3818 #define _SLRCONC2 0x04
3819 #define _SLRCONC3 0x08
3820 #define _SLRCONC4 0x10
3821 #define _SLRCONC5 0x20
3822 #define _SLRCONC6 0x40
3823 #define _SLRCONC7 0x80
3825 //==============================================================================
3827 extern __at(0x0311) __sfr CCPR3
;
3828 extern __at(0x0311) __sfr CCPR3L
;
3829 extern __at(0x0312) __sfr CCPR3H
;
3831 //==============================================================================
3834 extern __at(0x0313) __sfr CCP3CON
;
3840 unsigned CCP3M0
: 1;
3841 unsigned CCP3M1
: 1;
3842 unsigned CCP3M2
: 1;
3843 unsigned CCP3M3
: 1;
3864 extern __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits
;
3866 #define _CCP3M0 0x01
3867 #define _CCP3M1 0x02
3868 #define _CCP3M2 0x04
3869 #define _CCP3M3 0x08
3873 //==============================================================================
3876 //==============================================================================
3879 extern __at(0x038C) __sfr INLVLA
;
3883 unsigned INLVLA0
: 1;
3884 unsigned INLVLA1
: 1;
3885 unsigned INLVLA2
: 1;
3886 unsigned INLVLA3
: 1;
3887 unsigned INLVLA4
: 1;
3888 unsigned INLVLA5
: 1;
3889 unsigned INLVLA6
: 1;
3890 unsigned INLVLA7
: 1;
3893 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
3895 #define _INLVLA0 0x01
3896 #define _INLVLA1 0x02
3897 #define _INLVLA2 0x04
3898 #define _INLVLA3 0x08
3899 #define _INLVLA4 0x10
3900 #define _INLVLA5 0x20
3901 #define _INLVLA6 0x40
3902 #define _INLVLA7 0x80
3904 //==============================================================================
3907 //==============================================================================
3910 extern __at(0x038D) __sfr INLVLB
;
3914 unsigned INLVLB0
: 1;
3915 unsigned INLVLB1
: 1;
3916 unsigned INLVLB2
: 1;
3917 unsigned INLVLB3
: 1;
3918 unsigned INLVLB4
: 1;
3919 unsigned INLVLB5
: 1;
3920 unsigned INLVLB6
: 1;
3921 unsigned INLVLB7
: 1;
3924 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits
;
3926 #define _INLVLB0 0x01
3927 #define _INLVLB1 0x02
3928 #define _INLVLB2 0x04
3929 #define _INLVLB3 0x08
3930 #define _INLVLB4 0x10
3931 #define _INLVLB5 0x20
3932 #define _INLVLB6 0x40
3933 #define _INLVLB7 0x80
3935 //==============================================================================
3938 //==============================================================================
3941 extern __at(0x038E) __sfr INLVLC
;
3945 unsigned INLVLC0
: 1;
3946 unsigned INLVLC1
: 1;
3947 unsigned INLVLC2
: 1;
3948 unsigned INLVLC3
: 1;
3949 unsigned INLVLC4
: 1;
3950 unsigned INLVLC5
: 1;
3951 unsigned INLVLC6
: 1;
3952 unsigned INLVLC7
: 1;
3955 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits
;
3957 #define _INLVLC0 0x01
3958 #define _INLVLC1 0x02
3959 #define _INLVLC2 0x04
3960 #define _INLVLC3 0x08
3961 #define _INLVLC4 0x10
3962 #define _INLVLC5 0x20
3963 #define _INLVLC6 0x40
3964 #define _INLVLC7 0x80
3966 //==============================================================================
3969 //==============================================================================
3972 extern __at(0x0390) __sfr INLVLE
;
3979 unsigned INLVLE3
: 1;
3986 extern __at(0x0390) volatile __INLVLEbits_t INLVLEbits
;
3988 #define _INLVLE3 0x08
3990 //==============================================================================
3993 //==============================================================================
3996 extern __at(0x0391) __sfr IOCAP
;
4000 unsigned IOCAP0
: 1;
4001 unsigned IOCAP1
: 1;
4002 unsigned IOCAP2
: 1;
4003 unsigned IOCAP3
: 1;
4004 unsigned IOCAP4
: 1;
4005 unsigned IOCAP5
: 1;
4006 unsigned IOCAP6
: 1;
4007 unsigned IOCAP7
: 1;
4010 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
4012 #define _IOCAP0 0x01
4013 #define _IOCAP1 0x02
4014 #define _IOCAP2 0x04
4015 #define _IOCAP3 0x08
4016 #define _IOCAP4 0x10
4017 #define _IOCAP5 0x20
4018 #define _IOCAP6 0x40
4019 #define _IOCAP7 0x80
4021 //==============================================================================
4024 //==============================================================================
4027 extern __at(0x0392) __sfr IOCAN
;
4031 unsigned IOCAN0
: 1;
4032 unsigned IOCAN1
: 1;
4033 unsigned IOCAN2
: 1;
4034 unsigned IOCAN3
: 1;
4035 unsigned IOCAN4
: 1;
4036 unsigned IOCAN5
: 1;
4037 unsigned IOCAN6
: 1;
4038 unsigned IOCAN7
: 1;
4041 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
4043 #define _IOCAN0 0x01
4044 #define _IOCAN1 0x02
4045 #define _IOCAN2 0x04
4046 #define _IOCAN3 0x08
4047 #define _IOCAN4 0x10
4048 #define _IOCAN5 0x20
4049 #define _IOCAN6 0x40
4050 #define _IOCAN7 0x80
4052 //==============================================================================
4055 //==============================================================================
4058 extern __at(0x0393) __sfr IOCAF
;
4062 unsigned IOCAF0
: 1;
4063 unsigned IOCAF1
: 1;
4064 unsigned IOCAF2
: 1;
4065 unsigned IOCAF3
: 1;
4066 unsigned IOCAF4
: 1;
4067 unsigned IOCAF5
: 1;
4068 unsigned IOCAF6
: 1;
4069 unsigned IOCAF7
: 1;
4072 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
4074 #define _IOCAF0 0x01
4075 #define _IOCAF1 0x02
4076 #define _IOCAF2 0x04
4077 #define _IOCAF3 0x08
4078 #define _IOCAF4 0x10
4079 #define _IOCAF5 0x20
4080 #define _IOCAF6 0x40
4081 #define _IOCAF7 0x80
4083 //==============================================================================
4086 //==============================================================================
4089 extern __at(0x0394) __sfr IOCBP
;
4093 unsigned IOCBP0
: 1;
4094 unsigned IOCBP1
: 1;
4095 unsigned IOCBP2
: 1;
4096 unsigned IOCBP3
: 1;
4097 unsigned IOCBP4
: 1;
4098 unsigned IOCBP5
: 1;
4099 unsigned IOCBP6
: 1;
4100 unsigned IOCBP7
: 1;
4103 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits
;
4105 #define _IOCBP0 0x01
4106 #define _IOCBP1 0x02
4107 #define _IOCBP2 0x04
4108 #define _IOCBP3 0x08
4109 #define _IOCBP4 0x10
4110 #define _IOCBP5 0x20
4111 #define _IOCBP6 0x40
4112 #define _IOCBP7 0x80
4114 //==============================================================================
4117 //==============================================================================
4120 extern __at(0x0395) __sfr IOCBN
;
4124 unsigned IOCBN0
: 1;
4125 unsigned IOCBN1
: 1;
4126 unsigned IOCBN2
: 1;
4127 unsigned IOCBN3
: 1;
4128 unsigned IOCBN4
: 1;
4129 unsigned IOCBN5
: 1;
4130 unsigned IOCBN6
: 1;
4131 unsigned IOCBN7
: 1;
4134 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits
;
4136 #define _IOCBN0 0x01
4137 #define _IOCBN1 0x02
4138 #define _IOCBN2 0x04
4139 #define _IOCBN3 0x08
4140 #define _IOCBN4 0x10
4141 #define _IOCBN5 0x20
4142 #define _IOCBN6 0x40
4143 #define _IOCBN7 0x80
4145 //==============================================================================
4148 //==============================================================================
4151 extern __at(0x0396) __sfr IOCBF
;
4155 unsigned IOCBF0
: 1;
4156 unsigned IOCBF1
: 1;
4157 unsigned IOCBF2
: 1;
4158 unsigned IOCBF3
: 1;
4159 unsigned IOCBF4
: 1;
4160 unsigned IOCBF5
: 1;
4161 unsigned IOCBF6
: 1;
4162 unsigned IOCBF7
: 1;
4165 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits
;
4167 #define _IOCBF0 0x01
4168 #define _IOCBF1 0x02
4169 #define _IOCBF2 0x04
4170 #define _IOCBF3 0x08
4171 #define _IOCBF4 0x10
4172 #define _IOCBF5 0x20
4173 #define _IOCBF6 0x40
4174 #define _IOCBF7 0x80
4176 //==============================================================================
4179 //==============================================================================
4182 extern __at(0x0397) __sfr IOCCP
;
4186 unsigned IOCCP0
: 1;
4187 unsigned IOCCP1
: 1;
4188 unsigned IOCCP2
: 1;
4189 unsigned IOCCP3
: 1;
4190 unsigned IOCCP4
: 1;
4191 unsigned IOCCP5
: 1;
4192 unsigned IOCCP6
: 1;
4193 unsigned IOCCP7
: 1;
4196 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits
;
4198 #define _IOCCP0 0x01
4199 #define _IOCCP1 0x02
4200 #define _IOCCP2 0x04
4201 #define _IOCCP3 0x08
4202 #define _IOCCP4 0x10
4203 #define _IOCCP5 0x20
4204 #define _IOCCP6 0x40
4205 #define _IOCCP7 0x80
4207 //==============================================================================
4210 //==============================================================================
4213 extern __at(0x0398) __sfr IOCCN
;
4217 unsigned IOCCN0
: 1;
4218 unsigned IOCCN1
: 1;
4219 unsigned IOCCN2
: 1;
4220 unsigned IOCCN3
: 1;
4221 unsigned IOCCN4
: 1;
4222 unsigned IOCCN5
: 1;
4223 unsigned IOCCN6
: 1;
4224 unsigned IOCCN7
: 1;
4227 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits
;
4229 #define _IOCCN0 0x01
4230 #define _IOCCN1 0x02
4231 #define _IOCCN2 0x04
4232 #define _IOCCN3 0x08
4233 #define _IOCCN4 0x10
4234 #define _IOCCN5 0x20
4235 #define _IOCCN6 0x40
4236 #define _IOCCN7 0x80
4238 //==============================================================================
4241 //==============================================================================
4244 extern __at(0x0399) __sfr IOCCF
;
4248 unsigned IOCCF0
: 1;
4249 unsigned IOCCF1
: 1;
4250 unsigned IOCCF2
: 1;
4251 unsigned IOCCF3
: 1;
4252 unsigned IOCCF4
: 1;
4253 unsigned IOCCF5
: 1;
4254 unsigned IOCCF6
: 1;
4255 unsigned IOCCF7
: 1;
4258 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits
;
4260 #define _IOCCF0 0x01
4261 #define _IOCCF1 0x02
4262 #define _IOCCF2 0x04
4263 #define _IOCCF3 0x08
4264 #define _IOCCF4 0x10
4265 #define _IOCCF5 0x20
4266 #define _IOCCF6 0x40
4267 #define _IOCCF7 0x80
4269 //==============================================================================
4272 //==============================================================================
4275 extern __at(0x039D) __sfr IOCEP
;
4282 unsigned IOCEP3
: 1;
4289 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits
;
4291 #define _IOCEP3 0x08
4293 //==============================================================================
4296 //==============================================================================
4299 extern __at(0x039E) __sfr IOCEN
;
4306 unsigned IOCEN3
: 1;
4313 extern __at(0x039E) volatile __IOCENbits_t IOCENbits
;
4315 #define _IOCEN3 0x08
4317 //==============================================================================
4320 //==============================================================================
4323 extern __at(0x039F) __sfr IOCEF
;
4330 unsigned IOCEF3
: 1;
4337 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits
;
4339 #define _IOCEF3 0x08
4341 //==============================================================================
4344 //==============================================================================
4347 extern __at(0x0511) __sfr OPA1CON
;
4353 unsigned OPA1PCH0
: 1;
4354 unsigned OPA1PCH1
: 1;
4355 unsigned OPA1PCH2
: 1;
4359 unsigned OPA1SP
: 1;
4360 unsigned OPA1EN
: 1;
4383 unsigned OPA1PCH
: 3;
4388 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits
;
4390 #define _OPA1PCH0 0x01
4392 #define _OPA1PCH1 0x02
4394 #define _OPA1PCH2 0x04
4396 #define _OPA1SP 0x40
4398 #define _OPA1EN 0x80
4401 //==============================================================================
4404 //==============================================================================
4407 extern __at(0x0513) __sfr OPA2CON
;
4413 unsigned OPA2PCH0
: 1;
4414 unsigned OPA2PCH1
: 1;
4415 unsigned OPA2PCH2
: 1;
4419 unsigned OPA2SP
: 1;
4420 unsigned OPA2EN
: 1;
4443 unsigned OPA2PCH
: 3;
4448 extern __at(0x0513) volatile __OPA2CONbits_t OPA2CONbits
;
4450 #define _OPA2CON_OPA2PCH0 0x01
4451 #define _OPA2CON_PCH0 0x01
4452 #define _OPA2CON_OPA2PCH1 0x02
4453 #define _OPA2CON_PCH1 0x02
4454 #define _OPA2CON_OPA2PCH2 0x04
4455 #define _OPA2CON_PCH2 0x04
4456 #define _OPA2CON_OPA2SP 0x40
4457 #define _OPA2CON_SP 0x40
4458 #define _OPA2CON_OPA2EN 0x80
4459 #define _OPA2CON_EN 0x80
4461 //==============================================================================
4464 //==============================================================================
4467 extern __at(0x051A) __sfr CLKRCON
;
4473 unsigned CLKRDIV0
: 1;
4474 unsigned CLKRDIV1
: 1;
4475 unsigned CLKRDIV2
: 1;
4476 unsigned CLKRDC0
: 1;
4477 unsigned CLKRDC1
: 1;
4478 unsigned CLKRSLR
: 1;
4479 unsigned CLKROE
: 1;
4480 unsigned CLKREN
: 1;
4485 unsigned CLKRDIV
: 3;
4492 unsigned CLKRDC
: 2;
4497 extern __at(0x051A) volatile __CLKRCONbits_t CLKRCONbits
;
4499 #define _CLKRDIV0 0x01
4500 #define _CLKRDIV1 0x02
4501 #define _CLKRDIV2 0x04
4502 #define _CLKRDC0 0x08
4503 #define _CLKRDC1 0x10
4504 #define _CLKRSLR 0x20
4505 #define _CLKROE 0x40
4506 #define _CLKREN 0x80
4508 //==============================================================================
4511 //==============================================================================
4514 extern __at(0x0591) __sfr DAC2CON0
;
4522 unsigned DAC2OE2
: 1;
4523 unsigned DAC2OE1
: 1;
4525 unsigned DAC2EN
: 1;
4528 extern __at(0x0591) volatile __DAC2CON0bits_t DAC2CON0bits
;
4530 #define _DAC2OE2 0x10
4531 #define _DAC2OE1 0x20
4532 #define _DAC2EN 0x80
4534 //==============================================================================
4536 extern __at(0x0592) __sfr DAC2CON1
;
4537 extern __at(0x0592) __sfr DAC2REF
;
4539 //==============================================================================
4542 extern __at(0x0593) __sfr DAC3CON0
;
4550 unsigned DAC3OE2
: 1;
4551 unsigned DAC3OE1
: 1;
4553 unsigned DAC3EN
: 1;
4556 extern __at(0x0593) volatile __DAC3CON0bits_t DAC3CON0bits
;
4558 #define _DAC3OE2 0x10
4559 #define _DAC3OE1 0x20
4560 #define _DAC3EN 0x80
4562 //==============================================================================
4564 extern __at(0x0594) __sfr DAC3CON1
;
4565 extern __at(0x0594) __sfr DAC3REF
;
4567 //==============================================================================
4570 extern __at(0x0595) __sfr DAC4CON0
;
4578 unsigned DAC4OE2
: 1;
4579 unsigned DAC4OE1
: 1;
4581 unsigned DAC4EN
: 1;
4584 extern __at(0x0595) volatile __DAC4CON0bits_t DAC4CON0bits
;
4586 #define _DAC4OE2 0x10
4587 #define _DAC4OE1 0x20
4588 #define _DAC4EN 0x80
4590 //==============================================================================
4592 extern __at(0x0596) __sfr DAC4CON1
;
4593 extern __at(0x0596) __sfr DAC4REF
;
4595 //==============================================================================
4598 extern __at(0x0E91) __sfr PSMC1CON
;
4604 unsigned P1MODE0
: 1;
4605 unsigned P1MODE1
: 1;
4606 unsigned P1MODE2
: 1;
4607 unsigned P1MODE3
: 1;
4608 unsigned P1DBRE
: 1;
4609 unsigned P1DBFE
: 1;
4610 unsigned PSMC1LD
: 1;
4611 unsigned PSMC1EN
: 1;
4616 unsigned P1MODE
: 4;
4621 extern __at(0x0E91) volatile __PSMC1CONbits_t PSMC1CONbits
;
4623 #define _P1MODE0 0x01
4624 #define _P1MODE1 0x02
4625 #define _P1MODE2 0x04
4626 #define _P1MODE3 0x08
4627 #define _P1DBRE 0x10
4628 #define _P1DBFE 0x20
4629 #define _PSMC1LD 0x40
4630 #define _PSMC1EN 0x80
4632 //==============================================================================
4635 //==============================================================================
4638 extern __at(0x0E92) __sfr PSMC1MDL
;
4644 unsigned P1MSRC0
: 1;
4645 unsigned P1MSRC1
: 1;
4646 unsigned P1MSRC2
: 1;
4647 unsigned P1MSRC3
: 1;
4649 unsigned P1MDLBIT
: 1;
4650 unsigned P1MDLPOL
: 1;
4651 unsigned P1MDLEN
: 1;
4656 unsigned P1MSRC
: 4;
4661 extern __at(0x0E92) volatile __PSMC1MDLbits_t PSMC1MDLbits
;
4663 #define _P1MSRC0 0x01
4664 #define _P1MSRC1 0x02
4665 #define _P1MSRC2 0x04
4666 #define _P1MSRC3 0x08
4667 #define _P1MDLBIT 0x20
4668 #define _P1MDLPOL 0x40
4669 #define _P1MDLEN 0x80
4671 //==============================================================================
4674 //==============================================================================
4677 extern __at(0x0E93) __sfr PSMC1SYNC
;
4683 unsigned P1SYNC0
: 1;
4684 unsigned P1SYNC1
: 1;
4685 unsigned P1SYNC2
: 1;
4688 unsigned P1DCPOL
: 1;
4689 unsigned P1PRPOL
: 1;
4690 unsigned P1POFST
: 1;
4695 unsigned P1SYNC
: 3;
4698 } __PSMC1SYNCbits_t
;
4700 extern __at(0x0E93) volatile __PSMC1SYNCbits_t PSMC1SYNCbits
;
4702 #define _P1SYNC0 0x01
4703 #define _P1SYNC1 0x02
4704 #define _P1SYNC2 0x04
4705 #define _P1DCPOL 0x20
4706 #define _P1PRPOL 0x40
4707 #define _P1POFST 0x80
4709 //==============================================================================
4712 //==============================================================================
4715 extern __at(0x0E94) __sfr PSMC1CLK
;
4721 unsigned P1CSRC0
: 1;
4722 unsigned P1CSRC1
: 1;
4725 unsigned P1CPRE0
: 1;
4726 unsigned P1CPRE1
: 1;
4733 unsigned P1CSRC
: 2;
4740 unsigned P1CPRE
: 2;
4745 extern __at(0x0E94) volatile __PSMC1CLKbits_t PSMC1CLKbits
;
4747 #define _P1CSRC0 0x01
4748 #define _P1CSRC1 0x02
4749 #define _P1CPRE0 0x10
4750 #define _P1CPRE1 0x20
4752 //==============================================================================
4755 //==============================================================================
4758 extern __at(0x0E95) __sfr PSMC1OEN
;
4772 extern __at(0x0E95) volatile __PSMC1OENbits_t PSMC1OENbits
;
4781 //==============================================================================
4784 //==============================================================================
4787 extern __at(0x0E96) __sfr PSMC1POL
;
4791 unsigned P1POLA
: 1;
4792 unsigned P1POLB
: 1;
4793 unsigned P1POLC
: 1;
4794 unsigned P1POLD
: 1;
4795 unsigned P1POLE
: 1;
4796 unsigned P1POLF
: 1;
4797 unsigned P1INPOL
: 1;
4801 extern __at(0x0E96) volatile __PSMC1POLbits_t PSMC1POLbits
;
4803 #define _P1POLA 0x01
4804 #define _P1POLB 0x02
4805 #define _P1POLC 0x04
4806 #define _P1POLD 0x08
4807 #define _P1POLE 0x10
4808 #define _P1POLF 0x20
4809 #define _P1INPOL 0x40
4811 //==============================================================================
4814 //==============================================================================
4817 extern __at(0x0E97) __sfr PSMC1BLNK
;
4823 unsigned P1REBM0
: 1;
4824 unsigned P1REBM1
: 1;
4827 unsigned P1FEBM0
: 1;
4828 unsigned P1FEBM1
: 1;
4835 unsigned P1REBM
: 2;
4842 unsigned P1FEBM
: 2;
4845 } __PSMC1BLNKbits_t
;
4847 extern __at(0x0E97) volatile __PSMC1BLNKbits_t PSMC1BLNKbits
;
4849 #define _P1REBM0 0x01
4850 #define _P1REBM1 0x02
4851 #define _P1FEBM0 0x10
4852 #define _P1FEBM1 0x20
4854 //==============================================================================
4857 //==============================================================================
4860 extern __at(0x0E98) __sfr PSMC1REBS
;
4865 unsigned P1REBSC1
: 1;
4866 unsigned P1REBSC2
: 1;
4867 unsigned P1REBSC3
: 1;
4868 unsigned P1REBSC4
: 1;
4871 unsigned P1REBSIN
: 1;
4872 } __PSMC1REBSbits_t
;
4874 extern __at(0x0E98) volatile __PSMC1REBSbits_t PSMC1REBSbits
;
4876 #define _P1REBSC1 0x02
4877 #define _P1REBSC2 0x04
4878 #define _P1REBSC3 0x08
4879 #define _P1REBSC4 0x10
4880 #define _P1REBSIN 0x80
4882 //==============================================================================
4885 //==============================================================================
4888 extern __at(0x0E99) __sfr PSMC1FEBS
;
4893 unsigned P1FEBSC1
: 1;
4894 unsigned P1FEBSC2
: 1;
4895 unsigned P1FEBSC3
: 1;
4896 unsigned P1FEBSC4
: 1;
4899 unsigned P1FEBSIN
: 1;
4900 } __PSMC1FEBSbits_t
;
4902 extern __at(0x0E99) volatile __PSMC1FEBSbits_t PSMC1FEBSbits
;
4904 #define _P1FEBSC1 0x02
4905 #define _P1FEBSC2 0x04
4906 #define _P1FEBSC3 0x08
4907 #define _P1FEBSC4 0x10
4908 #define _P1FEBSIN 0x80
4910 //==============================================================================
4913 //==============================================================================
4916 extern __at(0x0E9A) __sfr PSMC1PHS
;
4920 unsigned P1PHST
: 1;
4921 unsigned P1PHSC1
: 1;
4922 unsigned P1PHSC2
: 1;
4923 unsigned P1PHSC3
: 1;
4924 unsigned P1PHSC4
: 1;
4927 unsigned P1PHSIN
: 1;
4930 extern __at(0x0E9A) volatile __PSMC1PHSbits_t PSMC1PHSbits
;
4932 #define _P1PHST 0x01
4933 #define _P1PHSC1 0x02
4934 #define _P1PHSC2 0x04
4935 #define _P1PHSC3 0x08
4936 #define _P1PHSC4 0x10
4937 #define _P1PHSIN 0x80
4939 //==============================================================================
4942 //==============================================================================
4945 extern __at(0x0E9B) __sfr PSMC1DCS
;
4949 unsigned P1DCST
: 1;
4950 unsigned P1DCSC1
: 1;
4951 unsigned P1DCSC2
: 1;
4952 unsigned P1DCSC3
: 1;
4953 unsigned P1DCSC4
: 1;
4956 unsigned P1DCSIN
: 1;
4959 extern __at(0x0E9B) volatile __PSMC1DCSbits_t PSMC1DCSbits
;
4961 #define _P1DCST 0x01
4962 #define _P1DCSC1 0x02
4963 #define _P1DCSC2 0x04
4964 #define _P1DCSC3 0x08
4965 #define _P1DCSC4 0x10
4966 #define _P1DCSIN 0x80
4968 //==============================================================================
4971 //==============================================================================
4974 extern __at(0x0E9C) __sfr PSMC1PRS
;
4978 unsigned P1PRST
: 1;
4979 unsigned P1PRSC1
: 1;
4980 unsigned P1PRSC2
: 1;
4981 unsigned P1PRSC3
: 1;
4982 unsigned P1PRSC4
: 1;
4985 unsigned P1PRSIN
: 1;
4988 extern __at(0x0E9C) volatile __PSMC1PRSbits_t PSMC1PRSbits
;
4990 #define _P1PRST 0x01
4991 #define _P1PRSC1 0x02
4992 #define _P1PRSC2 0x04
4993 #define _P1PRSC3 0x08
4994 #define _P1PRSC4 0x10
4995 #define _P1PRSIN 0x80
4997 //==============================================================================
5000 //==============================================================================
5003 extern __at(0x0E9D) __sfr PSMC1ASDC
;
5007 unsigned P1ASDOV
: 1;
5012 unsigned P1ARSEN
: 1;
5013 unsigned P1ASDEN
: 1;
5015 } __PSMC1ASDCbits_t
;
5017 extern __at(0x0E9D) volatile __PSMC1ASDCbits_t PSMC1ASDCbits
;
5019 #define _P1ASDOV 0x01
5020 #define _P1ARSEN 0x20
5021 #define _P1ASDEN 0x40
5024 //==============================================================================
5027 //==============================================================================
5030 extern __at(0x0E9E) __sfr PSMC1ASDL
;
5034 unsigned P1ASDLA
: 1;
5035 unsigned P1ASDLB
: 1;
5036 unsigned P1ASDLC
: 1;
5037 unsigned P1ASDLD
: 1;
5038 unsigned P1ASDLE
: 1;
5039 unsigned P1ASDLF
: 1;
5042 } __PSMC1ASDLbits_t
;
5044 extern __at(0x0E9E) volatile __PSMC1ASDLbits_t PSMC1ASDLbits
;
5046 #define _P1ASDLA 0x01
5047 #define _P1ASDLB 0x02
5048 #define _P1ASDLC 0x04
5049 #define _P1ASDLD 0x08
5050 #define _P1ASDLE 0x10
5051 #define _P1ASDLF 0x20
5053 //==============================================================================
5056 //==============================================================================
5059 extern __at(0x0E9F) __sfr PSMC1ASDS
;
5064 unsigned P1ASDSC1
: 1;
5065 unsigned P1ASDSC2
: 1;
5066 unsigned P1ASDSC3
: 1;
5067 unsigned P1ASDSC4
: 1;
5070 unsigned P1ASDSIN
: 1;
5071 } __PSMC1ASDSbits_t
;
5073 extern __at(0x0E9F) volatile __PSMC1ASDSbits_t PSMC1ASDSbits
;
5075 #define _P1ASDSC1 0x02
5076 #define _P1ASDSC2 0x04
5077 #define _P1ASDSC3 0x08
5078 #define _P1ASDSC4 0x10
5079 #define _P1ASDSIN 0x80
5081 //==============================================================================
5084 //==============================================================================
5087 extern __at(0x0EA0) __sfr PSMC1INT
;
5091 unsigned P1TPRIF
: 1;
5092 unsigned P1TDCIF
: 1;
5093 unsigned P1TPHIF
: 1;
5094 unsigned P1TOVIF
: 1;
5095 unsigned P1TPRIE
: 1;
5096 unsigned P1TDCIE
: 1;
5097 unsigned P1TPHIE
: 1;
5098 unsigned P1TOVIE
: 1;
5101 extern __at(0x0EA0) volatile __PSMC1INTbits_t PSMC1INTbits
;
5103 #define _P1TPRIF 0x01
5104 #define _P1TDCIF 0x02
5105 #define _P1TPHIF 0x04
5106 #define _P1TOVIF 0x08
5107 #define _P1TPRIE 0x10
5108 #define _P1TDCIE 0x20
5109 #define _P1TPHIE 0x40
5110 #define _P1TOVIE 0x80
5112 //==============================================================================
5114 extern __at(0x0EA1) __sfr PSMC1PH
;
5116 //==============================================================================
5119 extern __at(0x0EA1) __sfr PSMC1PHL
;
5123 unsigned PSMC1PH0
: 1;
5124 unsigned PSMC1PH1
: 1;
5125 unsigned PSMC1PH2
: 1;
5126 unsigned PSMC1PH3
: 1;
5127 unsigned PSMC1PH4
: 1;
5128 unsigned PSMC1PH5
: 1;
5129 unsigned PSMC1PH6
: 1;
5130 unsigned PSMC1PH7
: 1;
5133 extern __at(0x0EA1) volatile __PSMC1PHLbits_t PSMC1PHLbits
;
5135 #define _PSMC1PH0 0x01
5136 #define _PSMC1PH1 0x02
5137 #define _PSMC1PH2 0x04
5138 #define _PSMC1PH3 0x08
5139 #define _PSMC1PH4 0x10
5140 #define _PSMC1PH5 0x20
5141 #define _PSMC1PH6 0x40
5142 #define _PSMC1PH7 0x80
5144 //==============================================================================
5147 //==============================================================================
5150 extern __at(0x0EA2) __sfr PSMC1PHH
;
5154 unsigned PSMC1PH8
: 1;
5155 unsigned PSMC1PH9
: 1;
5156 unsigned PSMC1PH10
: 1;
5157 unsigned PSMC1PH11
: 1;
5158 unsigned PSMC1PH12
: 1;
5159 unsigned PSMC1PH13
: 1;
5160 unsigned PSMC1PH14
: 1;
5161 unsigned PSMC1PH15
: 1;
5164 extern __at(0x0EA2) volatile __PSMC1PHHbits_t PSMC1PHHbits
;
5166 #define _PSMC1PH8 0x01
5167 #define _PSMC1PH9 0x02
5168 #define _PSMC1PH10 0x04
5169 #define _PSMC1PH11 0x08
5170 #define _PSMC1PH12 0x10
5171 #define _PSMC1PH13 0x20
5172 #define _PSMC1PH14 0x40
5173 #define _PSMC1PH15 0x80
5175 //==============================================================================
5177 extern __at(0x0EA3) __sfr PSMC1DC
;
5179 //==============================================================================
5182 extern __at(0x0EA3) __sfr PSMC1DCL
;
5186 unsigned PSMC1DC0
: 1;
5187 unsigned PSMC1DC1
: 1;
5188 unsigned PSMC1DC2
: 1;
5189 unsigned PSMC1DC3
: 1;
5190 unsigned PSMC1DC4
: 1;
5191 unsigned PSMC1DC5
: 1;
5192 unsigned PSMC1DC6
: 1;
5193 unsigned PSMC1DC7
: 1;
5196 extern __at(0x0EA3) volatile __PSMC1DCLbits_t PSMC1DCLbits
;
5198 #define _PSMC1DC0 0x01
5199 #define _PSMC1DC1 0x02
5200 #define _PSMC1DC2 0x04
5201 #define _PSMC1DC3 0x08
5202 #define _PSMC1DC4 0x10
5203 #define _PSMC1DC5 0x20
5204 #define _PSMC1DC6 0x40
5205 #define _PSMC1DC7 0x80
5207 //==============================================================================
5210 //==============================================================================
5213 extern __at(0x0EA4) __sfr PSMC1DCH
;
5217 unsigned PSMC1DC8
: 1;
5218 unsigned PSMC1DC9
: 1;
5219 unsigned PSMC1DC10
: 1;
5220 unsigned PSMC1DC11
: 1;
5221 unsigned PSMC1DC12
: 1;
5222 unsigned PSMC1DC13
: 1;
5223 unsigned PSMC1DC14
: 1;
5224 unsigned PSMC1DC15
: 1;
5227 extern __at(0x0EA4) volatile __PSMC1DCHbits_t PSMC1DCHbits
;
5229 #define _PSMC1DC8 0x01
5230 #define _PSMC1DC9 0x02
5231 #define _PSMC1DC10 0x04
5232 #define _PSMC1DC11 0x08
5233 #define _PSMC1DC12 0x10
5234 #define _PSMC1DC13 0x20
5235 #define _PSMC1DC14 0x40
5236 #define _PSMC1DC15 0x80
5238 //==============================================================================
5240 extern __at(0x0EA5) __sfr PSMC1PR
;
5242 //==============================================================================
5245 extern __at(0x0EA5) __sfr PSMC1PRL
;
5249 unsigned PSMC1PR0
: 1;
5250 unsigned PSMC1PR1
: 1;
5251 unsigned PSMC1PR2
: 1;
5252 unsigned PSMC1PR3
: 1;
5253 unsigned PSMC1PR4
: 1;
5254 unsigned PSMC1PR5
: 1;
5255 unsigned PSMC1PR6
: 1;
5256 unsigned PSMC1PR7
: 1;
5259 extern __at(0x0EA5) volatile __PSMC1PRLbits_t PSMC1PRLbits
;
5261 #define _PSMC1PR0 0x01
5262 #define _PSMC1PR1 0x02
5263 #define _PSMC1PR2 0x04
5264 #define _PSMC1PR3 0x08
5265 #define _PSMC1PR4 0x10
5266 #define _PSMC1PR5 0x20
5267 #define _PSMC1PR6 0x40
5268 #define _PSMC1PR7 0x80
5270 //==============================================================================
5273 //==============================================================================
5276 extern __at(0x0EA6) __sfr PSMC1PRH
;
5280 unsigned PSMC1PR8
: 1;
5281 unsigned PSMC1PR9
: 1;
5282 unsigned PSMC1PR10
: 1;
5283 unsigned PSMC1PR11
: 1;
5284 unsigned PSMC1PR12
: 1;
5285 unsigned PSMC1PR13
: 1;
5286 unsigned PSMC1PR14
: 1;
5287 unsigned PSMC1PR15
: 1;
5290 extern __at(0x0EA6) volatile __PSMC1PRHbits_t PSMC1PRHbits
;
5292 #define _PSMC1PR8 0x01
5293 #define _PSMC1PR9 0x02
5294 #define _PSMC1PR10 0x04
5295 #define _PSMC1PR11 0x08
5296 #define _PSMC1PR12 0x10
5297 #define _PSMC1PR13 0x20
5298 #define _PSMC1PR14 0x40
5299 #define _PSMC1PR15 0x80
5301 //==============================================================================
5303 extern __at(0x0EA7) __sfr PSMC1TMR
;
5305 //==============================================================================
5308 extern __at(0x0EA7) __sfr PSMC1TMRL
;
5312 unsigned PSMC1TMR0
: 1;
5313 unsigned PSMC1TMR1
: 1;
5314 unsigned PSMC1TMR2
: 1;
5315 unsigned PSMC1TMR3
: 1;
5316 unsigned PSMC1TMR4
: 1;
5317 unsigned PSMC1TMR5
: 1;
5318 unsigned PSMC1TMR6
: 1;
5319 unsigned PSMC1TMR7
: 1;
5320 } __PSMC1TMRLbits_t
;
5322 extern __at(0x0EA7) volatile __PSMC1TMRLbits_t PSMC1TMRLbits
;
5324 #define _PSMC1TMR0 0x01
5325 #define _PSMC1TMR1 0x02
5326 #define _PSMC1TMR2 0x04
5327 #define _PSMC1TMR3 0x08
5328 #define _PSMC1TMR4 0x10
5329 #define _PSMC1TMR5 0x20
5330 #define _PSMC1TMR6 0x40
5331 #define _PSMC1TMR7 0x80
5333 //==============================================================================
5336 //==============================================================================
5339 extern __at(0x0EA8) __sfr PSMC1TMRH
;
5343 unsigned PSMC1TMR8
: 1;
5344 unsigned PSMC1TMR9
: 1;
5345 unsigned PSMC1TMR10
: 1;
5346 unsigned PSMC1TMR11
: 1;
5347 unsigned PSMC1TMR12
: 1;
5348 unsigned PSMC1TMR13
: 1;
5349 unsigned PSMC1TMR14
: 1;
5350 unsigned PSMC1TMR15
: 1;
5351 } __PSMC1TMRHbits_t
;
5353 extern __at(0x0EA8) volatile __PSMC1TMRHbits_t PSMC1TMRHbits
;
5355 #define _PSMC1TMR8 0x01
5356 #define _PSMC1TMR9 0x02
5357 #define _PSMC1TMR10 0x04
5358 #define _PSMC1TMR11 0x08
5359 #define _PSMC1TMR12 0x10
5360 #define _PSMC1TMR13 0x20
5361 #define _PSMC1TMR14 0x40
5362 #define _PSMC1TMR15 0x80
5364 //==============================================================================
5367 //==============================================================================
5370 extern __at(0x0EA9) __sfr PSMC1DBR
;
5374 unsigned PSMC1DBR0
: 1;
5375 unsigned PSMC1DBR1
: 1;
5376 unsigned PSMC1DBR2
: 1;
5377 unsigned PSMC1DBR3
: 1;
5378 unsigned PSMC1DBR4
: 1;
5379 unsigned PSMC1DBR5
: 1;
5380 unsigned PSMC1DBR6
: 1;
5381 unsigned PSMC1DBR7
: 1;
5384 extern __at(0x0EA9) volatile __PSMC1DBRbits_t PSMC1DBRbits
;
5386 #define _PSMC1DBR0 0x01
5387 #define _PSMC1DBR1 0x02
5388 #define _PSMC1DBR2 0x04
5389 #define _PSMC1DBR3 0x08
5390 #define _PSMC1DBR4 0x10
5391 #define _PSMC1DBR5 0x20
5392 #define _PSMC1DBR6 0x40
5393 #define _PSMC1DBR7 0x80
5395 //==============================================================================
5398 //==============================================================================
5401 extern __at(0x0EAA) __sfr PSMC1DBF
;
5405 unsigned PSMC1DBF0
: 1;
5406 unsigned PSMC1DBF1
: 1;
5407 unsigned PSMC1DBF2
: 1;
5408 unsigned PSMC1DBF3
: 1;
5409 unsigned PSMC1DBF4
: 1;
5410 unsigned PSMC1DBF5
: 1;
5411 unsigned PSMC1DBF6
: 1;
5412 unsigned PSMC1DBF7
: 1;
5415 extern __at(0x0EAA) volatile __PSMC1DBFbits_t PSMC1DBFbits
;
5417 #define _PSMC1DBF0 0x01
5418 #define _PSMC1DBF1 0x02
5419 #define _PSMC1DBF2 0x04
5420 #define _PSMC1DBF3 0x08
5421 #define _PSMC1DBF4 0x10
5422 #define _PSMC1DBF5 0x20
5423 #define _PSMC1DBF6 0x40
5424 #define _PSMC1DBF7 0x80
5426 //==============================================================================
5429 //==============================================================================
5432 extern __at(0x0EAB) __sfr PSMC1BLKR
;
5436 unsigned PSMC1BLKR0
: 1;
5437 unsigned PSMC1BLKR1
: 1;
5438 unsigned PSMC1BLKR2
: 1;
5439 unsigned PSMC1BLKR3
: 1;
5440 unsigned PSMC1BLKR4
: 1;
5441 unsigned PSMC1BLKR5
: 1;
5442 unsigned PSMC1BLKR6
: 1;
5443 unsigned PSMC1BLKR7
: 1;
5444 } __PSMC1BLKRbits_t
;
5446 extern __at(0x0EAB) volatile __PSMC1BLKRbits_t PSMC1BLKRbits
;
5448 #define _PSMC1BLKR0 0x01
5449 #define _PSMC1BLKR1 0x02
5450 #define _PSMC1BLKR2 0x04
5451 #define _PSMC1BLKR3 0x08
5452 #define _PSMC1BLKR4 0x10
5453 #define _PSMC1BLKR5 0x20
5454 #define _PSMC1BLKR6 0x40
5455 #define _PSMC1BLKR7 0x80
5457 //==============================================================================
5460 //==============================================================================
5463 extern __at(0x0EAC) __sfr PSMC1BLKF
;
5467 unsigned PSMC1BLKF0
: 1;
5468 unsigned PSMC1BLKF1
: 1;
5469 unsigned PSMC1BLKF2
: 1;
5470 unsigned PSMC1BLKF3
: 1;
5471 unsigned PSMC1BLKF4
: 1;
5472 unsigned PSMC1BLKF5
: 1;
5473 unsigned PSMC1BLKF6
: 1;
5474 unsigned PSMC1BLKF7
: 1;
5475 } __PSMC1BLKFbits_t
;
5477 extern __at(0x0EAC) volatile __PSMC1BLKFbits_t PSMC1BLKFbits
;
5479 #define _PSMC1BLKF0 0x01
5480 #define _PSMC1BLKF1 0x02
5481 #define _PSMC1BLKF2 0x04
5482 #define _PSMC1BLKF3 0x08
5483 #define _PSMC1BLKF4 0x10
5484 #define _PSMC1BLKF5 0x20
5485 #define _PSMC1BLKF6 0x40
5486 #define _PSMC1BLKF7 0x80
5488 //==============================================================================
5491 //==============================================================================
5494 extern __at(0x0EAD) __sfr PSMC1FFA
;
5500 unsigned PSMC1FFA0
: 1;
5501 unsigned PSMC1FFA1
: 1;
5502 unsigned PSMC1FFA2
: 1;
5503 unsigned PSMC1FFA3
: 1;
5512 unsigned PSMC1FFA
: 4;
5517 extern __at(0x0EAD) volatile __PSMC1FFAbits_t PSMC1FFAbits
;
5519 #define _PSMC1FFA0 0x01
5520 #define _PSMC1FFA1 0x02
5521 #define _PSMC1FFA2 0x04
5522 #define _PSMC1FFA3 0x08
5524 //==============================================================================
5527 //==============================================================================
5530 extern __at(0x0EAE) __sfr PSMC1STR0
;
5534 unsigned P1STRA
: 1;
5535 unsigned P1STRB
: 1;
5536 unsigned P1STRC
: 1;
5537 unsigned P1STRD
: 1;
5538 unsigned P1STRE
: 1;
5539 unsigned P1STRF
: 1;
5542 } __PSMC1STR0bits_t
;
5544 extern __at(0x0EAE) volatile __PSMC1STR0bits_t PSMC1STR0bits
;
5546 #define _P1STRA 0x01
5547 #define _P1STRB 0x02
5548 #define _P1STRC 0x04
5549 #define _P1STRD 0x08
5550 #define _P1STRE 0x10
5551 #define _P1STRF 0x20
5553 //==============================================================================
5556 //==============================================================================
5559 extern __at(0x0EAF) __sfr PSMC1STR1
;
5563 unsigned P1HSMEN
: 1;
5564 unsigned P1LSMEN
: 1;
5570 unsigned P1SSYNC
: 1;
5571 } __PSMC1STR1bits_t
;
5573 extern __at(0x0EAF) volatile __PSMC1STR1bits_t PSMC1STR1bits
;
5575 #define _P1HSMEN 0x01
5576 #define _P1LSMEN 0x02
5577 #define _P1SSYNC 0x80
5579 //==============================================================================
5582 //==============================================================================
5585 extern __at(0x0EB1) __sfr PSMC2CON
;
5591 unsigned P2MODE0
: 1;
5592 unsigned P2MODE1
: 1;
5593 unsigned P2MODE2
: 1;
5594 unsigned P2MODE3
: 1;
5595 unsigned P2DBRE
: 1;
5596 unsigned P2DBFE
: 1;
5597 unsigned PSMC2LD
: 1;
5598 unsigned PSMC2EN
: 1;
5603 unsigned P2MODE
: 4;
5608 extern __at(0x0EB1) volatile __PSMC2CONbits_t PSMC2CONbits
;
5610 #define _P2MODE0 0x01
5611 #define _P2MODE1 0x02
5612 #define _P2MODE2 0x04
5613 #define _P2MODE3 0x08
5614 #define _P2DBRE 0x10
5615 #define _P2DBFE 0x20
5616 #define _PSMC2LD 0x40
5617 #define _PSMC2EN 0x80
5619 //==============================================================================
5622 //==============================================================================
5625 extern __at(0x0EB2) __sfr PSMC2MDL
;
5631 unsigned P2MSRC0
: 1;
5632 unsigned P2MSRC1
: 1;
5633 unsigned P2MSRC2
: 1;
5634 unsigned P2MSRC3
: 1;
5636 unsigned P2MDLBIT
: 1;
5637 unsigned P2MDLPOL
: 1;
5638 unsigned P2MDLEN
: 1;
5643 unsigned P2MSRC
: 4;
5648 extern __at(0x0EB2) volatile __PSMC2MDLbits_t PSMC2MDLbits
;
5650 #define _P2MSRC0 0x01
5651 #define _P2MSRC1 0x02
5652 #define _P2MSRC2 0x04
5653 #define _P2MSRC3 0x08
5654 #define _P2MDLBIT 0x20
5655 #define _P2MDLPOL 0x40
5656 #define _P2MDLEN 0x80
5658 //==============================================================================
5661 //==============================================================================
5664 extern __at(0x0EB3) __sfr PSMC2SYNC
;
5670 unsigned P2SYNC0
: 1;
5671 unsigned P2SYNC1
: 1;
5672 unsigned P2SYNC2
: 1;
5675 unsigned P2DCPOL
: 1;
5676 unsigned P2PRPOL
: 1;
5677 unsigned P2POFST
: 1;
5682 unsigned P2SYNC
: 3;
5685 } __PSMC2SYNCbits_t
;
5687 extern __at(0x0EB3) volatile __PSMC2SYNCbits_t PSMC2SYNCbits
;
5689 #define _P2SYNC0 0x01
5690 #define _P2SYNC1 0x02
5691 #define _P2SYNC2 0x04
5692 #define _P2DCPOL 0x20
5693 #define _P2PRPOL 0x40
5694 #define _P2POFST 0x80
5696 //==============================================================================
5699 //==============================================================================
5702 extern __at(0x0EB4) __sfr PSMC2CLK
;
5708 unsigned P2CSRC0
: 1;
5709 unsigned P2CSRC1
: 1;
5712 unsigned P2CPRE0
: 1;
5713 unsigned P2CPRE1
: 1;
5720 unsigned P2CSRC
: 2;
5727 unsigned P2CPRE
: 2;
5732 extern __at(0x0EB4) volatile __PSMC2CLKbits_t PSMC2CLKbits
;
5734 #define _P2CSRC0 0x01
5735 #define _P2CSRC1 0x02
5736 #define _P2CPRE0 0x10
5737 #define _P2CPRE1 0x20
5739 //==============================================================================
5742 //==============================================================================
5745 extern __at(0x0EB5) __sfr PSMC2OEN
;
5759 extern __at(0x0EB5) volatile __PSMC2OENbits_t PSMC2OENbits
;
5764 //==============================================================================
5767 //==============================================================================
5770 extern __at(0x0EB6) __sfr PSMC2POL
;
5774 unsigned P2POLA
: 1;
5775 unsigned P2POLB
: 1;
5780 unsigned P2INPOL
: 1;
5784 extern __at(0x0EB6) volatile __PSMC2POLbits_t PSMC2POLbits
;
5786 #define _P2POLA 0x01
5787 #define _P2POLB 0x02
5788 #define _P2INPOL 0x40
5790 //==============================================================================
5793 //==============================================================================
5796 extern __at(0x0EB7) __sfr PSMC2BLNK
;
5802 unsigned P2REBM0
: 1;
5803 unsigned P2REBM1
: 1;
5806 unsigned P2FEBM0
: 1;
5807 unsigned P2FEBM1
: 1;
5814 unsigned P2REBM
: 2;
5821 unsigned P2FEBM
: 2;
5824 } __PSMC2BLNKbits_t
;
5826 extern __at(0x0EB7) volatile __PSMC2BLNKbits_t PSMC2BLNKbits
;
5828 #define _P2REBM0 0x01
5829 #define _P2REBM1 0x02
5830 #define _P2FEBM0 0x10
5831 #define _P2FEBM1 0x20
5833 //==============================================================================
5836 //==============================================================================
5839 extern __at(0x0EB8) __sfr PSMC2REBS
;
5844 unsigned P2REBSC1
: 1;
5845 unsigned P2REBSC2
: 1;
5846 unsigned P2REBSC3
: 1;
5847 unsigned P2REBSC4
: 1;
5850 unsigned P2REBSIN
: 1;
5851 } __PSMC2REBSbits_t
;
5853 extern __at(0x0EB8) volatile __PSMC2REBSbits_t PSMC2REBSbits
;
5855 #define _P2REBSC1 0x02
5856 #define _P2REBSC2 0x04
5857 #define _P2REBSC3 0x08
5858 #define _P2REBSC4 0x10
5859 #define _P2REBSIN 0x80
5861 //==============================================================================
5864 //==============================================================================
5867 extern __at(0x0EB9) __sfr PSMC2FEBS
;
5872 unsigned P2FEBSC1
: 1;
5873 unsigned P2FEBSC2
: 1;
5874 unsigned P2FEBSC3
: 1;
5875 unsigned P2FEBSC4
: 1;
5878 unsigned P2FEBSIN
: 1;
5879 } __PSMC2FEBSbits_t
;
5881 extern __at(0x0EB9) volatile __PSMC2FEBSbits_t PSMC2FEBSbits
;
5883 #define _P2FEBSC1 0x02
5884 #define _P2FEBSC2 0x04
5885 #define _P2FEBSC3 0x08
5886 #define _P2FEBSC4 0x10
5887 #define _P2FEBSIN 0x80
5889 //==============================================================================
5892 //==============================================================================
5895 extern __at(0x0EBA) __sfr PSMC2PHS
;
5899 unsigned P2PHST
: 1;
5900 unsigned P2PHSC1
: 1;
5901 unsigned P2PHSC2
: 1;
5902 unsigned P2PHSC3
: 1;
5903 unsigned P2PHSC4
: 1;
5906 unsigned P2PHSIN
: 1;
5909 extern __at(0x0EBA) volatile __PSMC2PHSbits_t PSMC2PHSbits
;
5911 #define _P2PHST 0x01
5912 #define _P2PHSC1 0x02
5913 #define _P2PHSC2 0x04
5914 #define _P2PHSC3 0x08
5915 #define _P2PHSC4 0x10
5916 #define _P2PHSIN 0x80
5918 //==============================================================================
5921 //==============================================================================
5924 extern __at(0x0EBB) __sfr PSMC2DCS
;
5928 unsigned P2DCST
: 1;
5929 unsigned P2DCSC1
: 1;
5930 unsigned P2DCSC2
: 1;
5931 unsigned P2DCSC3
: 1;
5932 unsigned P2DCSC4
: 1;
5935 unsigned P2DCSIN
: 1;
5938 extern __at(0x0EBB) volatile __PSMC2DCSbits_t PSMC2DCSbits
;
5940 #define _P2DCST 0x01
5941 #define _P2DCSC1 0x02
5942 #define _P2DCSC2 0x04
5943 #define _P2DCSC3 0x08
5944 #define _P2DCSC4 0x10
5945 #define _P2DCSIN 0x80
5947 //==============================================================================
5950 //==============================================================================
5953 extern __at(0x0EBC) __sfr PSMC2PRS
;
5957 unsigned P2PRST
: 1;
5958 unsigned P2PRSC1
: 1;
5959 unsigned P2PRSC2
: 1;
5960 unsigned P2PRSC3
: 1;
5961 unsigned P2PRSC4
: 1;
5964 unsigned P2PRSIN
: 1;
5967 extern __at(0x0EBC) volatile __PSMC2PRSbits_t PSMC2PRSbits
;
5969 #define _P2PRST 0x01
5970 #define _P2PRSC1 0x02
5971 #define _P2PRSC2 0x04
5972 #define _P2PRSC3 0x08
5973 #define _P2PRSC4 0x10
5974 #define _P2PRSIN 0x80
5976 //==============================================================================
5979 //==============================================================================
5982 extern __at(0x0EBD) __sfr PSMC2ASDC
;
5986 unsigned P2ASDOV
: 1;
5991 unsigned P2ARSEN
: 1;
5992 unsigned P2ASDEN
: 1;
5994 } __PSMC2ASDCbits_t
;
5996 extern __at(0x0EBD) volatile __PSMC2ASDCbits_t PSMC2ASDCbits
;
5998 #define _P2ASDOV 0x01
5999 #define _P2ARSEN 0x20
6000 #define _P2ASDEN 0x40
6003 //==============================================================================
6006 //==============================================================================
6009 extern __at(0x0EBE) __sfr PSMC2ASDL
;
6013 unsigned P2ASDLA
: 1;
6014 unsigned P2ASDLB
: 1;
6021 } __PSMC2ASDLbits_t
;
6023 extern __at(0x0EBE) volatile __PSMC2ASDLbits_t PSMC2ASDLbits
;
6025 #define _P2ASDLA 0x01
6026 #define _P2ASDLB 0x02
6028 //==============================================================================
6031 //==============================================================================
6034 extern __at(0x0EBF) __sfr PSMC2ASDS
;
6039 unsigned P2ASDSC1
: 1;
6040 unsigned P2ASDSC2
: 1;
6041 unsigned P2ASDSC3
: 1;
6042 unsigned P2ASDSC4
: 1;
6045 unsigned P2ASDSIN
: 1;
6046 } __PSMC2ASDSbits_t
;
6048 extern __at(0x0EBF) volatile __PSMC2ASDSbits_t PSMC2ASDSbits
;
6050 #define _P2ASDSC1 0x02
6051 #define _P2ASDSC2 0x04
6052 #define _P2ASDSC3 0x08
6053 #define _P2ASDSC4 0x10
6054 #define _P2ASDSIN 0x80
6056 //==============================================================================
6059 //==============================================================================
6062 extern __at(0x0EC0) __sfr PSMC2INT
;
6066 unsigned P2TPRIF
: 1;
6067 unsigned P2TDCIF
: 1;
6068 unsigned P2TPHIF
: 1;
6069 unsigned P2TOVIF
: 1;
6070 unsigned P2TPRIE
: 1;
6071 unsigned P2TDCIE
: 1;
6072 unsigned P2TPHIE
: 1;
6073 unsigned P2TOVIE
: 1;
6076 extern __at(0x0EC0) volatile __PSMC2INTbits_t PSMC2INTbits
;
6078 #define _P2TPRIF 0x01
6079 #define _P2TDCIF 0x02
6080 #define _P2TPHIF 0x04
6081 #define _P2TOVIF 0x08
6082 #define _P2TPRIE 0x10
6083 #define _P2TDCIE 0x20
6084 #define _P2TPHIE 0x40
6085 #define _P2TOVIE 0x80
6087 //==============================================================================
6089 extern __at(0x0EC1) __sfr PSMC2PH
;
6091 //==============================================================================
6094 extern __at(0x0EC1) __sfr PSMC2PHL
;
6098 unsigned PSMC2PH0
: 1;
6099 unsigned PSMC2PH1
: 1;
6100 unsigned PSMC2PH2
: 1;
6101 unsigned PSMC2PH3
: 1;
6102 unsigned PSMC2PH4
: 1;
6103 unsigned PSMC2PH5
: 1;
6104 unsigned PSMC2PH6
: 1;
6105 unsigned PSMC2PH7
: 1;
6108 extern __at(0x0EC1) volatile __PSMC2PHLbits_t PSMC2PHLbits
;
6110 #define _PSMC2PH0 0x01
6111 #define _PSMC2PH1 0x02
6112 #define _PSMC2PH2 0x04
6113 #define _PSMC2PH3 0x08
6114 #define _PSMC2PH4 0x10
6115 #define _PSMC2PH5 0x20
6116 #define _PSMC2PH6 0x40
6117 #define _PSMC2PH7 0x80
6119 //==============================================================================
6122 //==============================================================================
6125 extern __at(0x0EC2) __sfr PSMC2PHH
;
6129 unsigned PSMC2PH8
: 1;
6130 unsigned PSMC2PH9
: 1;
6131 unsigned PSMC2PH10
: 1;
6132 unsigned PSMC2PH11
: 1;
6133 unsigned PSMC2PH12
: 1;
6134 unsigned PSMC2PH13
: 1;
6135 unsigned PSMC2PH14
: 1;
6136 unsigned PSMC2PH15
: 1;
6139 extern __at(0x0EC2) volatile __PSMC2PHHbits_t PSMC2PHHbits
;
6141 #define _PSMC2PH8 0x01
6142 #define _PSMC2PH9 0x02
6143 #define _PSMC2PH10 0x04
6144 #define _PSMC2PH11 0x08
6145 #define _PSMC2PH12 0x10
6146 #define _PSMC2PH13 0x20
6147 #define _PSMC2PH14 0x40
6148 #define _PSMC2PH15 0x80
6150 //==============================================================================
6152 extern __at(0x0EC3) __sfr PSMC2DC
;
6154 //==============================================================================
6157 extern __at(0x0EC3) __sfr PSMC2DCL
;
6161 unsigned PSMC2DC0
: 1;
6162 unsigned PSMC2DC1
: 1;
6163 unsigned PSMC2DC2
: 1;
6164 unsigned PSMC2DC3
: 1;
6165 unsigned PSMC2DC4
: 1;
6166 unsigned PSMC2DC5
: 1;
6167 unsigned PSMC2DC6
: 1;
6168 unsigned PSMC2DC7
: 1;
6171 extern __at(0x0EC3) volatile __PSMC2DCLbits_t PSMC2DCLbits
;
6173 #define _PSMC2DC0 0x01
6174 #define _PSMC2DC1 0x02
6175 #define _PSMC2DC2 0x04
6176 #define _PSMC2DC3 0x08
6177 #define _PSMC2DC4 0x10
6178 #define _PSMC2DC5 0x20
6179 #define _PSMC2DC6 0x40
6180 #define _PSMC2DC7 0x80
6182 //==============================================================================
6185 //==============================================================================
6188 extern __at(0x0EC4) __sfr PSMC2DCH
;
6192 unsigned PSMC2DC8
: 1;
6193 unsigned PSMC2DC9
: 1;
6194 unsigned PSMC2DC10
: 1;
6195 unsigned PSMC2DC11
: 1;
6196 unsigned PSMC2DC12
: 1;
6197 unsigned PSMC2DC13
: 1;
6198 unsigned PSMC2DC14
: 1;
6199 unsigned PSMC2DC15
: 1;
6202 extern __at(0x0EC4) volatile __PSMC2DCHbits_t PSMC2DCHbits
;
6204 #define _PSMC2DC8 0x01
6205 #define _PSMC2DC9 0x02
6206 #define _PSMC2DC10 0x04
6207 #define _PSMC2DC11 0x08
6208 #define _PSMC2DC12 0x10
6209 #define _PSMC2DC13 0x20
6210 #define _PSMC2DC14 0x40
6211 #define _PSMC2DC15 0x80
6213 //==============================================================================
6215 extern __at(0x0EC5) __sfr PSMC2PR
;
6217 //==============================================================================
6220 extern __at(0x0EC5) __sfr PSMC2PRL
;
6224 unsigned PSMC2PR0
: 1;
6225 unsigned PSMC2PR1
: 1;
6226 unsigned PSMC2PR2
: 1;
6227 unsigned PSMC2PR3
: 1;
6228 unsigned PSMC2PR4
: 1;
6229 unsigned PSMC2PR5
: 1;
6230 unsigned PSMC2PR6
: 1;
6231 unsigned PSMC2PR7
: 1;
6234 extern __at(0x0EC5) volatile __PSMC2PRLbits_t PSMC2PRLbits
;
6236 #define _PSMC2PR0 0x01
6237 #define _PSMC2PR1 0x02
6238 #define _PSMC2PR2 0x04
6239 #define _PSMC2PR3 0x08
6240 #define _PSMC2PR4 0x10
6241 #define _PSMC2PR5 0x20
6242 #define _PSMC2PR6 0x40
6243 #define _PSMC2PR7 0x80
6245 //==============================================================================
6248 //==============================================================================
6251 extern __at(0x0EC6) __sfr PSMC2PRH
;
6255 unsigned PSMC2PR8
: 1;
6256 unsigned PSMC2PR9
: 1;
6257 unsigned PSMC2PR10
: 1;
6258 unsigned PSMC2PR11
: 1;
6259 unsigned PSMC2PR12
: 1;
6260 unsigned PSMC2PR13
: 1;
6261 unsigned PSMC2PR14
: 1;
6262 unsigned PSMC2PR15
: 1;
6265 extern __at(0x0EC6) volatile __PSMC2PRHbits_t PSMC2PRHbits
;
6267 #define _PSMC2PR8 0x01
6268 #define _PSMC2PR9 0x02
6269 #define _PSMC2PR10 0x04
6270 #define _PSMC2PR11 0x08
6271 #define _PSMC2PR12 0x10
6272 #define _PSMC2PR13 0x20
6273 #define _PSMC2PR14 0x40
6274 #define _PSMC2PR15 0x80
6276 //==============================================================================
6278 extern __at(0x0EC7) __sfr PSMC2TMR
;
6280 //==============================================================================
6283 extern __at(0x0EC7) __sfr PSMC2TMRL
;
6287 unsigned PSMC2TMR0
: 1;
6288 unsigned PSMC2TMR1
: 1;
6289 unsigned PSMC2TMR2
: 1;
6290 unsigned PSMC2TMR3
: 1;
6291 unsigned PSMC2TMR4
: 1;
6292 unsigned PSMC2TMR5
: 1;
6293 unsigned PSMC2TMR6
: 1;
6294 unsigned PSMC2TMR7
: 1;
6295 } __PSMC2TMRLbits_t
;
6297 extern __at(0x0EC7) volatile __PSMC2TMRLbits_t PSMC2TMRLbits
;
6299 #define _PSMC2TMR0 0x01
6300 #define _PSMC2TMR1 0x02
6301 #define _PSMC2TMR2 0x04
6302 #define _PSMC2TMR3 0x08
6303 #define _PSMC2TMR4 0x10
6304 #define _PSMC2TMR5 0x20
6305 #define _PSMC2TMR6 0x40
6306 #define _PSMC2TMR7 0x80
6308 //==============================================================================
6311 //==============================================================================
6314 extern __at(0x0EC8) __sfr PSMC2TMRH
;
6318 unsigned PSMC2TMR8
: 1;
6319 unsigned PSMC2TMR9
: 1;
6320 unsigned PSMC2TMR10
: 1;
6321 unsigned PSMC2TMR11
: 1;
6322 unsigned PSMC2TMR12
: 1;
6323 unsigned PSMC2TMR13
: 1;
6324 unsigned PSMC2TMR14
: 1;
6325 unsigned PSMC2TMR15
: 1;
6326 } __PSMC2TMRHbits_t
;
6328 extern __at(0x0EC8) volatile __PSMC2TMRHbits_t PSMC2TMRHbits
;
6330 #define _PSMC2TMR8 0x01
6331 #define _PSMC2TMR9 0x02
6332 #define _PSMC2TMR10 0x04
6333 #define _PSMC2TMR11 0x08
6334 #define _PSMC2TMR12 0x10
6335 #define _PSMC2TMR13 0x20
6336 #define _PSMC2TMR14 0x40
6337 #define _PSMC2TMR15 0x80
6339 //==============================================================================
6342 //==============================================================================
6345 extern __at(0x0EC9) __sfr PSMC2DBR
;
6349 unsigned PSMC2DBR0
: 1;
6350 unsigned PSMC2DBR1
: 1;
6351 unsigned PSMC2DBR2
: 1;
6352 unsigned PSMC2DBR3
: 1;
6353 unsigned PSMC2DBR4
: 1;
6354 unsigned PSMC2DBR5
: 1;
6355 unsigned PSMC2DBR6
: 1;
6356 unsigned PSMC2DBR7
: 1;
6359 extern __at(0x0EC9) volatile __PSMC2DBRbits_t PSMC2DBRbits
;
6361 #define _PSMC2DBR0 0x01
6362 #define _PSMC2DBR1 0x02
6363 #define _PSMC2DBR2 0x04
6364 #define _PSMC2DBR3 0x08
6365 #define _PSMC2DBR4 0x10
6366 #define _PSMC2DBR5 0x20
6367 #define _PSMC2DBR6 0x40
6368 #define _PSMC2DBR7 0x80
6370 //==============================================================================
6373 //==============================================================================
6376 extern __at(0x0ECA) __sfr PSMC2DBF
;
6380 unsigned PSMC2DBF0
: 1;
6381 unsigned PSMC2DBF1
: 1;
6382 unsigned PSMC2DBF2
: 1;
6383 unsigned PSMC2DBF3
: 1;
6384 unsigned PSMC2DBF4
: 1;
6385 unsigned PSMC2DBF5
: 1;
6386 unsigned PSMC2DBF6
: 1;
6387 unsigned PSMC2DBF7
: 1;
6390 extern __at(0x0ECA) volatile __PSMC2DBFbits_t PSMC2DBFbits
;
6392 #define _PSMC2DBF0 0x01
6393 #define _PSMC2DBF1 0x02
6394 #define _PSMC2DBF2 0x04
6395 #define _PSMC2DBF3 0x08
6396 #define _PSMC2DBF4 0x10
6397 #define _PSMC2DBF5 0x20
6398 #define _PSMC2DBF6 0x40
6399 #define _PSMC2DBF7 0x80
6401 //==============================================================================
6404 //==============================================================================
6407 extern __at(0x0ECB) __sfr PSMC2BLKR
;
6411 unsigned PSMC2BLKR0
: 1;
6412 unsigned PSMC2BLKR1
: 1;
6413 unsigned PSMC2BLKR2
: 1;
6414 unsigned PSMC2BLKR3
: 1;
6415 unsigned PSMC2BLKR4
: 1;
6416 unsigned PSMC2BLKR5
: 1;
6417 unsigned PSMC2BLKR6
: 1;
6418 unsigned PSMC2BLKR7
: 1;
6419 } __PSMC2BLKRbits_t
;
6421 extern __at(0x0ECB) volatile __PSMC2BLKRbits_t PSMC2BLKRbits
;
6423 #define _PSMC2BLKR0 0x01
6424 #define _PSMC2BLKR1 0x02
6425 #define _PSMC2BLKR2 0x04
6426 #define _PSMC2BLKR3 0x08
6427 #define _PSMC2BLKR4 0x10
6428 #define _PSMC2BLKR5 0x20
6429 #define _PSMC2BLKR6 0x40
6430 #define _PSMC2BLKR7 0x80
6432 //==============================================================================
6435 //==============================================================================
6438 extern __at(0x0ECC) __sfr PSMC2BLKF
;
6442 unsigned PSMC2BLKF0
: 1;
6443 unsigned PSMC2BLKF1
: 1;
6444 unsigned PSMC2BLKF2
: 1;
6445 unsigned PSMC2BLKF3
: 1;
6446 unsigned PSMC2BLKF4
: 1;
6447 unsigned PSMC2BLKF5
: 1;
6448 unsigned PSMC2BLKF6
: 1;
6449 unsigned PSMC2BLKF7
: 1;
6450 } __PSMC2BLKFbits_t
;
6452 extern __at(0x0ECC) volatile __PSMC2BLKFbits_t PSMC2BLKFbits
;
6454 #define _PSMC2BLKF0 0x01
6455 #define _PSMC2BLKF1 0x02
6456 #define _PSMC2BLKF2 0x04
6457 #define _PSMC2BLKF3 0x08
6458 #define _PSMC2BLKF4 0x10
6459 #define _PSMC2BLKF5 0x20
6460 #define _PSMC2BLKF6 0x40
6461 #define _PSMC2BLKF7 0x80
6463 //==============================================================================
6466 //==============================================================================
6469 extern __at(0x0ECD) __sfr PSMC2FFA
;
6475 unsigned PSMC2FFA0
: 1;
6476 unsigned PSMC2FFA1
: 1;
6477 unsigned PSMC2FFA2
: 1;
6478 unsigned PSMC2FFA3
: 1;
6487 unsigned PSMC2FFA
: 4;
6492 extern __at(0x0ECD) volatile __PSMC2FFAbits_t PSMC2FFAbits
;
6494 #define _PSMC2FFA0 0x01
6495 #define _PSMC2FFA1 0x02
6496 #define _PSMC2FFA2 0x04
6497 #define _PSMC2FFA3 0x08
6499 //==============================================================================
6502 //==============================================================================
6505 extern __at(0x0ECE) __sfr PSMC2STR0
;
6509 unsigned P2STRA
: 1;
6510 unsigned P2STRB
: 1;
6517 } __PSMC2STR0bits_t
;
6519 extern __at(0x0ECE) volatile __PSMC2STR0bits_t PSMC2STR0bits
;
6521 #define _P2STRA 0x01
6522 #define _P2STRB 0x02
6524 //==============================================================================
6527 //==============================================================================
6530 extern __at(0x0ECF) __sfr PSMC2STR1
;
6534 unsigned P2HSMEN
: 1;
6535 unsigned P2LSMEN
: 1;
6541 unsigned P2SSYNC
: 1;
6542 } __PSMC2STR1bits_t
;
6544 extern __at(0x0ECF) volatile __PSMC2STR1bits_t PSMC2STR1bits
;
6546 #define _P2HSMEN 0x01
6547 #define _P2LSMEN 0x02
6548 #define _P2SSYNC 0x80
6550 //==============================================================================
6553 //==============================================================================
6556 extern __at(0x0ED1) __sfr PSMC3CON
;
6562 unsigned P3MODE0
: 1;
6563 unsigned P3MODE1
: 1;
6564 unsigned P3MODE2
: 1;
6565 unsigned P3MODE3
: 1;
6566 unsigned P3DBRE
: 1;
6567 unsigned P3DBFE
: 1;
6568 unsigned PSMC3LD
: 1;
6569 unsigned PSMC3EN
: 1;
6574 unsigned P3MODE
: 4;
6579 extern __at(0x0ED1) volatile __PSMC3CONbits_t PSMC3CONbits
;
6581 #define _P3MODE0 0x01
6582 #define _P3MODE1 0x02
6583 #define _P3MODE2 0x04
6584 #define _P3MODE3 0x08
6585 #define _P3DBRE 0x10
6586 #define _P3DBFE 0x20
6587 #define _PSMC3LD 0x40
6588 #define _PSMC3EN 0x80
6590 //==============================================================================
6593 //==============================================================================
6596 extern __at(0x0ED2) __sfr PSMC3MDL
;
6602 unsigned P3MSRC0
: 1;
6603 unsigned P3MSRC1
: 1;
6604 unsigned P3MSRC2
: 1;
6605 unsigned P3MSRC3
: 1;
6607 unsigned P3MDLBIT
: 1;
6608 unsigned P3MDLPOL
: 1;
6609 unsigned P3MDLEN
: 1;
6614 unsigned P3MSRC
: 4;
6619 extern __at(0x0ED2) volatile __PSMC3MDLbits_t PSMC3MDLbits
;
6621 #define _P3MSRC0 0x01
6622 #define _P3MSRC1 0x02
6623 #define _P3MSRC2 0x04
6624 #define _P3MSRC3 0x08
6625 #define _P3MDLBIT 0x20
6626 #define _P3MDLPOL 0x40
6627 #define _P3MDLEN 0x80
6629 //==============================================================================
6632 //==============================================================================
6635 extern __at(0x0ED3) __sfr PSMC3SYNC
;
6641 unsigned P3SYNC0
: 1;
6642 unsigned P3SYNC1
: 1;
6643 unsigned P3SYNC2
: 1;
6646 unsigned P3DCPOL
: 1;
6647 unsigned P3PRPOL
: 1;
6648 unsigned P3POFST
: 1;
6653 unsigned P3SYNC
: 3;
6656 } __PSMC3SYNCbits_t
;
6658 extern __at(0x0ED3) volatile __PSMC3SYNCbits_t PSMC3SYNCbits
;
6660 #define _P3SYNC0 0x01
6661 #define _P3SYNC1 0x02
6662 #define _P3SYNC2 0x04
6663 #define _P3DCPOL 0x20
6664 #define _P3PRPOL 0x40
6665 #define _P3POFST 0x80
6667 //==============================================================================
6670 //==============================================================================
6673 extern __at(0x0ED4) __sfr PSMC3CLK
;
6679 unsigned P3CSRC0
: 1;
6680 unsigned P3CSRC1
: 1;
6683 unsigned P3CPRE0
: 1;
6684 unsigned P3CPRE1
: 1;
6691 unsigned P3CSRC
: 2;
6698 unsigned P3CPRE
: 2;
6703 extern __at(0x0ED4) volatile __PSMC3CLKbits_t PSMC3CLKbits
;
6705 #define _P3CSRC0 0x01
6706 #define _P3CSRC1 0x02
6707 #define _P3CPRE0 0x10
6708 #define _P3CPRE1 0x20
6710 //==============================================================================
6713 //==============================================================================
6716 extern __at(0x0ED5) __sfr PSMC3OEN
;
6730 extern __at(0x0ED5) volatile __PSMC3OENbits_t PSMC3OENbits
;
6735 //==============================================================================
6738 //==============================================================================
6741 extern __at(0x0ED6) __sfr PSMC3POL
;
6745 unsigned P3POLA
: 1;
6746 unsigned P3POLB
: 1;
6751 unsigned P3INPOL
: 1;
6755 extern __at(0x0ED6) volatile __PSMC3POLbits_t PSMC3POLbits
;
6757 #define _P3POLA 0x01
6758 #define _P3POLB 0x02
6759 #define _P3INPOL 0x40
6761 //==============================================================================
6764 //==============================================================================
6767 extern __at(0x0ED7) __sfr PSMC3BLNK
;
6773 unsigned P3REBM0
: 1;
6774 unsigned P3REBM1
: 1;
6777 unsigned P3FEBM0
: 1;
6778 unsigned P3FEBM1
: 1;
6785 unsigned P3REBM
: 2;
6792 unsigned P3FEBM
: 2;
6795 } __PSMC3BLNKbits_t
;
6797 extern __at(0x0ED7) volatile __PSMC3BLNKbits_t PSMC3BLNKbits
;
6799 #define _P3REBM0 0x01
6800 #define _P3REBM1 0x02
6801 #define _P3FEBM0 0x10
6802 #define _P3FEBM1 0x20
6804 //==============================================================================
6807 //==============================================================================
6810 extern __at(0x0ED8) __sfr PSMC3REBS
;
6815 unsigned P3REBSC1
: 1;
6816 unsigned P3REBSC2
: 1;
6817 unsigned P3REBSC3
: 1;
6818 unsigned P3REBSC4
: 1;
6821 unsigned P3REBSIN
: 1;
6822 } __PSMC3REBSbits_t
;
6824 extern __at(0x0ED8) volatile __PSMC3REBSbits_t PSMC3REBSbits
;
6826 #define _P3REBSC1 0x02
6827 #define _P3REBSC2 0x04
6828 #define _P3REBSC3 0x08
6829 #define _P3REBSC4 0x10
6830 #define _P3REBSIN 0x80
6832 //==============================================================================
6835 //==============================================================================
6838 extern __at(0x0ED9) __sfr PSMC3FEBS
;
6843 unsigned P3FEBSC1
: 1;
6844 unsigned P3FEBSC2
: 1;
6845 unsigned P3FEBSC3
: 1;
6846 unsigned P3FEBSC4
: 1;
6849 unsigned P3FEBSIN
: 1;
6850 } __PSMC3FEBSbits_t
;
6852 extern __at(0x0ED9) volatile __PSMC3FEBSbits_t PSMC3FEBSbits
;
6854 #define _P3FEBSC1 0x02
6855 #define _P3FEBSC2 0x04
6856 #define _P3FEBSC3 0x08
6857 #define _P3FEBSC4 0x10
6858 #define _P3FEBSIN 0x80
6860 //==============================================================================
6863 //==============================================================================
6866 extern __at(0x0EDA) __sfr PSMC3PHS
;
6870 unsigned P3PHST
: 1;
6871 unsigned P3PHSC1
: 1;
6872 unsigned P3PHSC2
: 1;
6873 unsigned P3PHSC3
: 1;
6874 unsigned P3PHSC4
: 1;
6877 unsigned P3PHSIN
: 1;
6880 extern __at(0x0EDA) volatile __PSMC3PHSbits_t PSMC3PHSbits
;
6882 #define _P3PHST 0x01
6883 #define _P3PHSC1 0x02
6884 #define _P3PHSC2 0x04
6885 #define _P3PHSC3 0x08
6886 #define _P3PHSC4 0x10
6887 #define _P3PHSIN 0x80
6889 //==============================================================================
6892 //==============================================================================
6895 extern __at(0x0EDB) __sfr PSMC3DCS
;
6899 unsigned P3DCST
: 1;
6900 unsigned P3DCSC1
: 1;
6901 unsigned P3DCSC2
: 1;
6902 unsigned P3DCSC3
: 1;
6903 unsigned P3DCSC4
: 1;
6906 unsigned P3DCSIN
: 1;
6909 extern __at(0x0EDB) volatile __PSMC3DCSbits_t PSMC3DCSbits
;
6911 #define _P3DCST 0x01
6912 #define _P3DCSC1 0x02
6913 #define _P3DCSC2 0x04
6914 #define _P3DCSC3 0x08
6915 #define _P3DCSC4 0x10
6916 #define _P3DCSIN 0x80
6918 //==============================================================================
6921 //==============================================================================
6924 extern __at(0x0EDC) __sfr PSMC3PRS
;
6928 unsigned P3PRST
: 1;
6929 unsigned P3PRSC1
: 1;
6930 unsigned P3PRSC2
: 1;
6931 unsigned P3PRSC3
: 1;
6932 unsigned P3PRSC4
: 1;
6935 unsigned P3PRSIN
: 1;
6938 extern __at(0x0EDC) volatile __PSMC3PRSbits_t PSMC3PRSbits
;
6940 #define _P3PRST 0x01
6941 #define _P3PRSC1 0x02
6942 #define _P3PRSC2 0x04
6943 #define _P3PRSC3 0x08
6944 #define _P3PRSC4 0x10
6945 #define _P3PRSIN 0x80
6947 //==============================================================================
6950 //==============================================================================
6953 extern __at(0x0EDD) __sfr PSMC3ASDC
;
6957 unsigned P3ASDOV
: 1;
6962 unsigned P3ARSEN
: 1;
6963 unsigned P3ASDEN
: 1;
6965 } __PSMC3ASDCbits_t
;
6967 extern __at(0x0EDD) volatile __PSMC3ASDCbits_t PSMC3ASDCbits
;
6969 #define _P3ASDOV 0x01
6970 #define _P3ARSEN 0x20
6971 #define _P3ASDEN 0x40
6974 //==============================================================================
6977 //==============================================================================
6980 extern __at(0x0EDE) __sfr PSMC3ASDL
;
6984 unsigned P3ASDLA
: 1;
6985 unsigned P3ASDLB
: 1;
6992 } __PSMC3ASDLbits_t
;
6994 extern __at(0x0EDE) volatile __PSMC3ASDLbits_t PSMC3ASDLbits
;
6996 #define _P3ASDLA 0x01
6997 #define _P3ASDLB 0x02
6999 //==============================================================================
7002 //==============================================================================
7005 extern __at(0x0EDF) __sfr PSMC3ASDS
;
7010 unsigned P3ASDSC1
: 1;
7011 unsigned P3ASDSC2
: 1;
7012 unsigned P3ASDSC3
: 1;
7013 unsigned P3ASDSC4
: 1;
7016 unsigned P3ASDSIN
: 1;
7017 } __PSMC3ASDSbits_t
;
7019 extern __at(0x0EDF) volatile __PSMC3ASDSbits_t PSMC3ASDSbits
;
7021 #define _P3ASDSC1 0x02
7022 #define _P3ASDSC2 0x04
7023 #define _P3ASDSC3 0x08
7024 #define _P3ASDSC4 0x10
7025 #define _P3ASDSIN 0x80
7027 //==============================================================================
7030 //==============================================================================
7033 extern __at(0x0EE0) __sfr PSMC3INT
;
7037 unsigned P3TPRIF
: 1;
7038 unsigned P3TDCIF
: 1;
7039 unsigned P3TPHIF
: 1;
7040 unsigned P3TOVIF
: 1;
7041 unsigned P3TPRIE
: 1;
7042 unsigned P3TDCIE
: 1;
7043 unsigned P3TPHIE
: 1;
7044 unsigned P3TOVIE
: 1;
7047 extern __at(0x0EE0) volatile __PSMC3INTbits_t PSMC3INTbits
;
7049 #define _P3TPRIF 0x01
7050 #define _P3TDCIF 0x02
7051 #define _P3TPHIF 0x04
7052 #define _P3TOVIF 0x08
7053 #define _P3TPRIE 0x10
7054 #define _P3TDCIE 0x20
7055 #define _P3TPHIE 0x40
7056 #define _P3TOVIE 0x80
7058 //==============================================================================
7060 extern __at(0x0EE1) __sfr PSMC3PH
;
7062 //==============================================================================
7065 extern __at(0x0EE1) __sfr PSMC3PHL
;
7069 unsigned PSMC3PH0
: 1;
7070 unsigned PSMC3PH1
: 1;
7071 unsigned PSMC3PH2
: 1;
7072 unsigned PSMC3PH3
: 1;
7073 unsigned PSMC3PH4
: 1;
7074 unsigned PSMC3PH5
: 1;
7075 unsigned PSMC3PH6
: 1;
7076 unsigned PSMC3PH7
: 1;
7079 extern __at(0x0EE1) volatile __PSMC3PHLbits_t PSMC3PHLbits
;
7081 #define _PSMC3PH0 0x01
7082 #define _PSMC3PH1 0x02
7083 #define _PSMC3PH2 0x04
7084 #define _PSMC3PH3 0x08
7085 #define _PSMC3PH4 0x10
7086 #define _PSMC3PH5 0x20
7087 #define _PSMC3PH6 0x40
7088 #define _PSMC3PH7 0x80
7090 //==============================================================================
7093 //==============================================================================
7096 extern __at(0x0EE2) __sfr PSMC3PHH
;
7100 unsigned PSMC3PH8
: 1;
7101 unsigned PSMC3PH9
: 1;
7102 unsigned PSMC3PH10
: 1;
7103 unsigned PSMC3PH11
: 1;
7104 unsigned PSMC3PH12
: 1;
7105 unsigned PSMC3PH13
: 1;
7106 unsigned PSMC3PH14
: 1;
7107 unsigned PSMC3PH15
: 1;
7110 extern __at(0x0EE2) volatile __PSMC3PHHbits_t PSMC3PHHbits
;
7112 #define _PSMC3PH8 0x01
7113 #define _PSMC3PH9 0x02
7114 #define _PSMC3PH10 0x04
7115 #define _PSMC3PH11 0x08
7116 #define _PSMC3PH12 0x10
7117 #define _PSMC3PH13 0x20
7118 #define _PSMC3PH14 0x40
7119 #define _PSMC3PH15 0x80
7121 //==============================================================================
7123 extern __at(0x0EE3) __sfr PSMC3DC
;
7125 //==============================================================================
7128 extern __at(0x0EE3) __sfr PSMC3DCL
;
7132 unsigned PSMC3DC0
: 1;
7133 unsigned PSMC3DC1
: 1;
7134 unsigned PSMC3DC2
: 1;
7135 unsigned PSMC3DC3
: 1;
7136 unsigned PSMC3DC4
: 1;
7137 unsigned PSMC3DC5
: 1;
7138 unsigned PSMC3DC6
: 1;
7139 unsigned PSMC3DC7
: 1;
7142 extern __at(0x0EE3) volatile __PSMC3DCLbits_t PSMC3DCLbits
;
7144 #define _PSMC3DC0 0x01
7145 #define _PSMC3DC1 0x02
7146 #define _PSMC3DC2 0x04
7147 #define _PSMC3DC3 0x08
7148 #define _PSMC3DC4 0x10
7149 #define _PSMC3DC5 0x20
7150 #define _PSMC3DC6 0x40
7151 #define _PSMC3DC7 0x80
7153 //==============================================================================
7156 //==============================================================================
7159 extern __at(0x0EE4) __sfr PSMC3DCH
;
7163 unsigned PSMC3DC8
: 1;
7164 unsigned PSMC3DC9
: 1;
7165 unsigned PSMC3DC10
: 1;
7166 unsigned PSMC3DC11
: 1;
7167 unsigned PSMC3DC12
: 1;
7168 unsigned PSMC3DC13
: 1;
7169 unsigned PSMC3DC14
: 1;
7170 unsigned PSMC3DC15
: 1;
7173 extern __at(0x0EE4) volatile __PSMC3DCHbits_t PSMC3DCHbits
;
7175 #define _PSMC3DC8 0x01
7176 #define _PSMC3DC9 0x02
7177 #define _PSMC3DC10 0x04
7178 #define _PSMC3DC11 0x08
7179 #define _PSMC3DC12 0x10
7180 #define _PSMC3DC13 0x20
7181 #define _PSMC3DC14 0x40
7182 #define _PSMC3DC15 0x80
7184 //==============================================================================
7186 extern __at(0x0EE5) __sfr PSMC3PR
;
7188 //==============================================================================
7191 extern __at(0x0EE5) __sfr PSMC3PRL
;
7195 unsigned PSMC3PR0
: 1;
7196 unsigned PSMC3PR1
: 1;
7197 unsigned PSMC3PR2
: 1;
7198 unsigned PSMC3PR3
: 1;
7199 unsigned PSMC3PR4
: 1;
7200 unsigned PSMC3PR5
: 1;
7201 unsigned PSMC3PR6
: 1;
7202 unsigned PSMC3PR7
: 1;
7205 extern __at(0x0EE5) volatile __PSMC3PRLbits_t PSMC3PRLbits
;
7207 #define _PSMC3PR0 0x01
7208 #define _PSMC3PR1 0x02
7209 #define _PSMC3PR2 0x04
7210 #define _PSMC3PR3 0x08
7211 #define _PSMC3PR4 0x10
7212 #define _PSMC3PR5 0x20
7213 #define _PSMC3PR6 0x40
7214 #define _PSMC3PR7 0x80
7216 //==============================================================================
7219 //==============================================================================
7222 extern __at(0x0EE6) __sfr PSMC3PRH
;
7226 unsigned PSMC3PR8
: 1;
7227 unsigned PSMC3PR9
: 1;
7228 unsigned PSMC3PR10
: 1;
7229 unsigned PSMC3PR11
: 1;
7230 unsigned PSMC3PR12
: 1;
7231 unsigned PSMC3PR13
: 1;
7232 unsigned PSMC3PR14
: 1;
7233 unsigned PSMC3PR15
: 1;
7236 extern __at(0x0EE6) volatile __PSMC3PRHbits_t PSMC3PRHbits
;
7238 #define _PSMC3PR8 0x01
7239 #define _PSMC3PR9 0x02
7240 #define _PSMC3PR10 0x04
7241 #define _PSMC3PR11 0x08
7242 #define _PSMC3PR12 0x10
7243 #define _PSMC3PR13 0x20
7244 #define _PSMC3PR14 0x40
7245 #define _PSMC3PR15 0x80
7247 //==============================================================================
7249 extern __at(0x0EE7) __sfr PSMC3TMR
;
7251 //==============================================================================
7254 extern __at(0x0EE7) __sfr PSMC3TMRL
;
7258 unsigned PSMC3TMR0
: 1;
7259 unsigned PSMC3TMR1
: 1;
7260 unsigned PSMC3TMR2
: 1;
7261 unsigned PSMC3TMR3
: 1;
7262 unsigned PSMC3TMR4
: 1;
7263 unsigned PSMC3TMR5
: 1;
7264 unsigned PSMC3TMR6
: 1;
7265 unsigned PSMC3TMR7
: 1;
7266 } __PSMC3TMRLbits_t
;
7268 extern __at(0x0EE7) volatile __PSMC3TMRLbits_t PSMC3TMRLbits
;
7270 #define _PSMC3TMR0 0x01
7271 #define _PSMC3TMR1 0x02
7272 #define _PSMC3TMR2 0x04
7273 #define _PSMC3TMR3 0x08
7274 #define _PSMC3TMR4 0x10
7275 #define _PSMC3TMR5 0x20
7276 #define _PSMC3TMR6 0x40
7277 #define _PSMC3TMR7 0x80
7279 //==============================================================================
7282 //==============================================================================
7285 extern __at(0x0EE8) __sfr PSMC3TMRH
;
7289 unsigned PSMC3TMR8
: 1;
7290 unsigned PSMC3TMR9
: 1;
7291 unsigned PSMC3TMR10
: 1;
7292 unsigned PSMC3TMR11
: 1;
7293 unsigned PSMC3TMR12
: 1;
7294 unsigned PSMC3TMR13
: 1;
7295 unsigned PSMC3TMR14
: 1;
7296 unsigned PSMC3TMR15
: 1;
7297 } __PSMC3TMRHbits_t
;
7299 extern __at(0x0EE8) volatile __PSMC3TMRHbits_t PSMC3TMRHbits
;
7301 #define _PSMC3TMR8 0x01
7302 #define _PSMC3TMR9 0x02
7303 #define _PSMC3TMR10 0x04
7304 #define _PSMC3TMR11 0x08
7305 #define _PSMC3TMR12 0x10
7306 #define _PSMC3TMR13 0x20
7307 #define _PSMC3TMR14 0x40
7308 #define _PSMC3TMR15 0x80
7310 //==============================================================================
7313 //==============================================================================
7316 extern __at(0x0EE9) __sfr PSMC3DBR
;
7320 unsigned PSMC3DBR0
: 1;
7321 unsigned PSMC3DBR1
: 1;
7322 unsigned PSMC3DBR2
: 1;
7323 unsigned PSMC3DBR3
: 1;
7324 unsigned PSMC3DBR4
: 1;
7325 unsigned PSMC3DBR5
: 1;
7326 unsigned PSMC3DBR6
: 1;
7327 unsigned PSMC3DBR7
: 1;
7330 extern __at(0x0EE9) volatile __PSMC3DBRbits_t PSMC3DBRbits
;
7332 #define _PSMC3DBR0 0x01
7333 #define _PSMC3DBR1 0x02
7334 #define _PSMC3DBR2 0x04
7335 #define _PSMC3DBR3 0x08
7336 #define _PSMC3DBR4 0x10
7337 #define _PSMC3DBR5 0x20
7338 #define _PSMC3DBR6 0x40
7339 #define _PSMC3DBR7 0x80
7341 //==============================================================================
7344 //==============================================================================
7347 extern __at(0x0EEA) __sfr PSMC3DBF
;
7351 unsigned PSMC3DBF0
: 1;
7352 unsigned PSMC3DBF1
: 1;
7353 unsigned PSMC3DBF2
: 1;
7354 unsigned PSMC3DBF3
: 1;
7355 unsigned PSMC3DBF4
: 1;
7356 unsigned PSMC3DBF5
: 1;
7357 unsigned PSMC3DBF6
: 1;
7358 unsigned PSMC3DBF7
: 1;
7361 extern __at(0x0EEA) volatile __PSMC3DBFbits_t PSMC3DBFbits
;
7363 #define _PSMC3DBF0 0x01
7364 #define _PSMC3DBF1 0x02
7365 #define _PSMC3DBF2 0x04
7366 #define _PSMC3DBF3 0x08
7367 #define _PSMC3DBF4 0x10
7368 #define _PSMC3DBF5 0x20
7369 #define _PSMC3DBF6 0x40
7370 #define _PSMC3DBF7 0x80
7372 //==============================================================================
7375 //==============================================================================
7378 extern __at(0x0EEB) __sfr PSMC3BLKR
;
7382 unsigned PSMC3BLKR0
: 1;
7383 unsigned PSMC3BLKR1
: 1;
7384 unsigned PSMC3BLKR2
: 1;
7385 unsigned PSMC3BLKR3
: 1;
7386 unsigned PSMC3BLKR4
: 1;
7387 unsigned PSMC3BLKR5
: 1;
7388 unsigned PSMC3BLKR6
: 1;
7389 unsigned PSMC3BLKR7
: 1;
7390 } __PSMC3BLKRbits_t
;
7392 extern __at(0x0EEB) volatile __PSMC3BLKRbits_t PSMC3BLKRbits
;
7394 #define _PSMC3BLKR0 0x01
7395 #define _PSMC3BLKR1 0x02
7396 #define _PSMC3BLKR2 0x04
7397 #define _PSMC3BLKR3 0x08
7398 #define _PSMC3BLKR4 0x10
7399 #define _PSMC3BLKR5 0x20
7400 #define _PSMC3BLKR6 0x40
7401 #define _PSMC3BLKR7 0x80
7403 //==============================================================================
7406 //==============================================================================
7409 extern __at(0x0EEC) __sfr PSMC3BLKF
;
7413 unsigned PSMC3BLKF0
: 1;
7414 unsigned PSMC3BLKF1
: 1;
7415 unsigned PSMC3BLKF2
: 1;
7416 unsigned PSMC3BLKF3
: 1;
7417 unsigned PSMC3BLKF4
: 1;
7418 unsigned PSMC3BLKF5
: 1;
7419 unsigned PSMC3BLKF6
: 1;
7420 unsigned PSMC3BLKF7
: 1;
7421 } __PSMC3BLKFbits_t
;
7423 extern __at(0x0EEC) volatile __PSMC3BLKFbits_t PSMC3BLKFbits
;
7425 #define _PSMC3BLKF0 0x01
7426 #define _PSMC3BLKF1 0x02
7427 #define _PSMC3BLKF2 0x04
7428 #define _PSMC3BLKF3 0x08
7429 #define _PSMC3BLKF4 0x10
7430 #define _PSMC3BLKF5 0x20
7431 #define _PSMC3BLKF6 0x40
7432 #define _PSMC3BLKF7 0x80
7434 //==============================================================================
7437 //==============================================================================
7440 extern __at(0x0EED) __sfr PSMC3FFA
;
7446 unsigned PSMC3FFA0
: 1;
7447 unsigned PSMC3FFA1
: 1;
7448 unsigned PSMC3FFA2
: 1;
7449 unsigned PSMC3FFA3
: 1;
7458 unsigned PSMC3FFA
: 4;
7463 extern __at(0x0EED) volatile __PSMC3FFAbits_t PSMC3FFAbits
;
7465 #define _PSMC3FFA0 0x01
7466 #define _PSMC3FFA1 0x02
7467 #define _PSMC3FFA2 0x04
7468 #define _PSMC3FFA3 0x08
7470 //==============================================================================
7473 //==============================================================================
7476 extern __at(0x0EEE) __sfr PSMC3STR0
;
7480 unsigned P3STRA
: 1;
7481 unsigned P3STRB
: 1;
7488 } __PSMC3STR0bits_t
;
7490 extern __at(0x0EEE) volatile __PSMC3STR0bits_t PSMC3STR0bits
;
7492 #define _P3STRA 0x01
7493 #define _P3STRB 0x02
7495 //==============================================================================
7498 //==============================================================================
7501 extern __at(0x0EEF) __sfr PSMC3STR1
;
7505 unsigned P3HSMEN
: 1;
7506 unsigned P3LSMEN
: 1;
7512 unsigned P3SSYNC
: 1;
7513 } __PSMC3STR1bits_t
;
7515 extern __at(0x0EEF) volatile __PSMC3STR1bits_t PSMC3STR1bits
;
7517 #define _P3HSMEN 0x01
7518 #define _P3LSMEN 0x02
7519 #define _P3SSYNC 0x80
7521 //==============================================================================
7524 //==============================================================================
7527 extern __at(0x0F11) __sfr PSMC4CON
;
7533 unsigned P4MODE0
: 1;
7534 unsigned P4MODE1
: 1;
7535 unsigned P4MODE2
: 1;
7536 unsigned P4MODE3
: 1;
7537 unsigned P4DBRE
: 1;
7538 unsigned P4DBFE
: 1;
7539 unsigned PSMC4LD
: 1;
7540 unsigned PSMC4EN
: 1;
7545 unsigned P4MODE
: 4;
7550 extern __at(0x0F11) volatile __PSMC4CONbits_t PSMC4CONbits
;
7552 #define _P4MODE0 0x01
7553 #define _P4MODE1 0x02
7554 #define _P4MODE2 0x04
7555 #define _P4MODE3 0x08
7556 #define _P4DBRE 0x10
7557 #define _P4DBFE 0x20
7558 #define _PSMC4LD 0x40
7559 #define _PSMC4EN 0x80
7561 //==============================================================================
7564 //==============================================================================
7567 extern __at(0x0F12) __sfr PSMC4MDL
;
7573 unsigned P4MSRC0
: 1;
7574 unsigned P4MSRC1
: 1;
7575 unsigned P4MSRC2
: 1;
7576 unsigned P4MSRC3
: 1;
7578 unsigned P4MDLBIT
: 1;
7579 unsigned P4MDLPOL
: 1;
7580 unsigned P4MDLEN
: 1;
7585 unsigned P4MSRC
: 4;
7590 extern __at(0x0F12) volatile __PSMC4MDLbits_t PSMC4MDLbits
;
7592 #define _P4MSRC0 0x01
7593 #define _P4MSRC1 0x02
7594 #define _P4MSRC2 0x04
7595 #define _P4MSRC3 0x08
7596 #define _P4MDLBIT 0x20
7597 #define _P4MDLPOL 0x40
7598 #define _P4MDLEN 0x80
7600 //==============================================================================
7603 //==============================================================================
7606 extern __at(0x0F13) __sfr PSMC4SYNC
;
7612 unsigned P4SYNC0
: 1;
7613 unsigned P4SYNC1
: 1;
7614 unsigned P4SYNC2
: 1;
7617 unsigned P4DCPOL
: 1;
7618 unsigned P4PRPOL
: 1;
7619 unsigned P4POFST
: 1;
7624 unsigned P4SYNC
: 3;
7627 } __PSMC4SYNCbits_t
;
7629 extern __at(0x0F13) volatile __PSMC4SYNCbits_t PSMC4SYNCbits
;
7631 #define _P4SYNC0 0x01
7632 #define _P4SYNC1 0x02
7633 #define _P4SYNC2 0x04
7634 #define _P4DCPOL 0x20
7635 #define _P4PRPOL 0x40
7636 #define _P4POFST 0x80
7638 //==============================================================================
7641 //==============================================================================
7644 extern __at(0x0F14) __sfr PSMC4CLK
;
7650 unsigned P4CSRC0
: 1;
7651 unsigned P4CSRC1
: 1;
7654 unsigned P4CPRE0
: 1;
7655 unsigned P4CPRE1
: 1;
7662 unsigned P4CSRC
: 2;
7669 unsigned P4CPRE
: 2;
7674 extern __at(0x0F14) volatile __PSMC4CLKbits_t PSMC4CLKbits
;
7676 #define _P4CSRC0 0x01
7677 #define _P4CSRC1 0x02
7678 #define _P4CPRE0 0x10
7679 #define _P4CPRE1 0x20
7681 //==============================================================================
7684 //==============================================================================
7687 extern __at(0x0F15) __sfr PSMC4OEN
;
7701 extern __at(0x0F15) volatile __PSMC4OENbits_t PSMC4OENbits
;
7706 //==============================================================================
7709 //==============================================================================
7712 extern __at(0x0F16) __sfr PSMC4POL
;
7716 unsigned P4POLA
: 1;
7717 unsigned P4POLB
: 1;
7722 unsigned P4INPOL
: 1;
7726 extern __at(0x0F16) volatile __PSMC4POLbits_t PSMC4POLbits
;
7728 #define _P4POLA 0x01
7729 #define _P4POLB 0x02
7730 #define _P4INPOL 0x40
7732 //==============================================================================
7735 //==============================================================================
7738 extern __at(0x0F17) __sfr PSMC4BLNK
;
7744 unsigned P4REBM0
: 1;
7745 unsigned P4REBM1
: 1;
7748 unsigned P4FEBM0
: 1;
7749 unsigned P4FEBM1
: 1;
7756 unsigned P4REBM
: 2;
7763 unsigned P4FEBM
: 2;
7766 } __PSMC4BLNKbits_t
;
7768 extern __at(0x0F17) volatile __PSMC4BLNKbits_t PSMC4BLNKbits
;
7770 #define _P4REBM0 0x01
7771 #define _P4REBM1 0x02
7772 #define _P4FEBM0 0x10
7773 #define _P4FEBM1 0x20
7775 //==============================================================================
7778 //==============================================================================
7781 extern __at(0x0F18) __sfr PSMC4REBS
;
7786 unsigned P4REBSC1
: 1;
7787 unsigned P4REBSC2
: 1;
7788 unsigned P4REBSC3
: 1;
7789 unsigned P4REBSC4
: 1;
7792 unsigned P4REBSIN
: 1;
7793 } __PSMC4REBSbits_t
;
7795 extern __at(0x0F18) volatile __PSMC4REBSbits_t PSMC4REBSbits
;
7797 #define _P4REBSC1 0x02
7798 #define _P4REBSC2 0x04
7799 #define _P4REBSC3 0x08
7800 #define _P4REBSC4 0x10
7801 #define _P4REBSIN 0x80
7803 //==============================================================================
7806 //==============================================================================
7809 extern __at(0x0F19) __sfr PSMC4FEBS
;
7814 unsigned P4FEBSC1
: 1;
7815 unsigned P4FEBSC2
: 1;
7816 unsigned P4FEBSC3
: 1;
7817 unsigned P4FEBSC4
: 1;
7820 unsigned P4FEBSIN
: 1;
7821 } __PSMC4FEBSbits_t
;
7823 extern __at(0x0F19) volatile __PSMC4FEBSbits_t PSMC4FEBSbits
;
7825 #define _P4FEBSC1 0x02
7826 #define _P4FEBSC2 0x04
7827 #define _P4FEBSC3 0x08
7828 #define _P4FEBSC4 0x10
7829 #define _P4FEBSIN 0x80
7831 //==============================================================================
7834 //==============================================================================
7837 extern __at(0x0F1A) __sfr PSMC4PHS
;
7841 unsigned P4PHST
: 1;
7842 unsigned P4PHSC1
: 1;
7843 unsigned P4PHSC2
: 1;
7844 unsigned P4PHSC3
: 1;
7845 unsigned P4PHSC4
: 1;
7848 unsigned P4PHSIN
: 1;
7851 extern __at(0x0F1A) volatile __PSMC4PHSbits_t PSMC4PHSbits
;
7853 #define _P4PHST 0x01
7854 #define _P4PHSC1 0x02
7855 #define _P4PHSC2 0x04
7856 #define _P4PHSC3 0x08
7857 #define _P4PHSC4 0x10
7858 #define _P4PHSIN 0x80
7860 //==============================================================================
7863 //==============================================================================
7866 extern __at(0x0F1B) __sfr PSMC4DCS
;
7870 unsigned P4DCST
: 1;
7871 unsigned P4DCSC1
: 1;
7872 unsigned P4DCSC2
: 1;
7873 unsigned P4DCSC3
: 1;
7874 unsigned P4DCSC4
: 1;
7877 unsigned P4DCSIN
: 1;
7880 extern __at(0x0F1B) volatile __PSMC4DCSbits_t PSMC4DCSbits
;
7882 #define _P4DCST 0x01
7883 #define _P4DCSC1 0x02
7884 #define _P4DCSC2 0x04
7885 #define _P4DCSC3 0x08
7886 #define _P4DCSC4 0x10
7887 #define _P4DCSIN 0x80
7889 //==============================================================================
7892 //==============================================================================
7895 extern __at(0x0F1C) __sfr PSMC4PRS
;
7899 unsigned P4PRST
: 1;
7900 unsigned P4PRSC1
: 1;
7901 unsigned P4PRSC2
: 1;
7902 unsigned P4PRSC3
: 1;
7903 unsigned P4PRSC4
: 1;
7906 unsigned P4PRSIN
: 1;
7909 extern __at(0x0F1C) volatile __PSMC4PRSbits_t PSMC4PRSbits
;
7911 #define _P4PRST 0x01
7912 #define _P4PRSC1 0x02
7913 #define _P4PRSC2 0x04
7914 #define _P4PRSC3 0x08
7915 #define _P4PRSC4 0x10
7916 #define _P4PRSIN 0x80
7918 //==============================================================================
7921 //==============================================================================
7924 extern __at(0x0F1D) __sfr PSMC4ASDC
;
7928 unsigned P4ASDOV
: 1;
7933 unsigned P4ARSEN
: 1;
7934 unsigned P4ASDEN
: 1;
7936 } __PSMC4ASDCbits_t
;
7938 extern __at(0x0F1D) volatile __PSMC4ASDCbits_t PSMC4ASDCbits
;
7940 #define _P4ASDOV 0x01
7941 #define _P4ARSEN 0x20
7942 #define _P4ASDEN 0x40
7945 //==============================================================================
7948 //==============================================================================
7951 extern __at(0x0F1E) __sfr PSMC4ASDL
;
7955 unsigned P4ASDLA
: 1;
7956 unsigned P4ASDLB
: 1;
7963 } __PSMC4ASDLbits_t
;
7965 extern __at(0x0F1E) volatile __PSMC4ASDLbits_t PSMC4ASDLbits
;
7967 #define _P4ASDLA 0x01
7968 #define _P4ASDLB 0x02
7970 //==============================================================================
7973 //==============================================================================
7976 extern __at(0x0F1F) __sfr PSMC4ASDS
;
7981 unsigned P4ASDSC1
: 1;
7982 unsigned P4ASDSC2
: 1;
7983 unsigned P4ASDSC3
: 1;
7984 unsigned P4ASDSC4
: 1;
7987 unsigned P4ASDSIN
: 1;
7988 } __PSMC4ASDSbits_t
;
7990 extern __at(0x0F1F) volatile __PSMC4ASDSbits_t PSMC4ASDSbits
;
7992 #define _P4ASDSC1 0x02
7993 #define _P4ASDSC2 0x04
7994 #define _P4ASDSC3 0x08
7995 #define _P4ASDSC4 0x10
7996 #define _P4ASDSIN 0x80
7998 //==============================================================================
8001 //==============================================================================
8004 extern __at(0x0F20) __sfr PSMC4INT
;
8008 unsigned P4TPRIF
: 1;
8009 unsigned P4TDCIF
: 1;
8010 unsigned P4TPHIF
: 1;
8011 unsigned P4TOVIF
: 1;
8012 unsigned P4TPRIE
: 1;
8013 unsigned P4TDCIE
: 1;
8014 unsigned P4TPHIE
: 1;
8015 unsigned P4TOVIE
: 1;
8018 extern __at(0x0F20) volatile __PSMC4INTbits_t PSMC4INTbits
;
8020 #define _P4TPRIF 0x01
8021 #define _P4TDCIF 0x02
8022 #define _P4TPHIF 0x04
8023 #define _P4TOVIF 0x08
8024 #define _P4TPRIE 0x10
8025 #define _P4TDCIE 0x20
8026 #define _P4TPHIE 0x40
8027 #define _P4TOVIE 0x80
8029 //==============================================================================
8031 extern __at(0x0F21) __sfr PSMC4PH
;
8033 //==============================================================================
8036 extern __at(0x0F21) __sfr PSMC4PHL
;
8040 unsigned PSMC4PH0
: 1;
8041 unsigned PSMC4PH1
: 1;
8042 unsigned PSMC4PH2
: 1;
8043 unsigned PSMC4PH3
: 1;
8044 unsigned PSMC4PH4
: 1;
8045 unsigned PSMC4PH5
: 1;
8046 unsigned PSMC4PH6
: 1;
8047 unsigned PSMC4PH7
: 1;
8050 extern __at(0x0F21) volatile __PSMC4PHLbits_t PSMC4PHLbits
;
8052 #define _PSMC4PH0 0x01
8053 #define _PSMC4PH1 0x02
8054 #define _PSMC4PH2 0x04
8055 #define _PSMC4PH3 0x08
8056 #define _PSMC4PH4 0x10
8057 #define _PSMC4PH5 0x20
8058 #define _PSMC4PH6 0x40
8059 #define _PSMC4PH7 0x80
8061 //==============================================================================
8064 //==============================================================================
8067 extern __at(0x0F22) __sfr PSMC4PHH
;
8071 unsigned PSMC4PH8
: 1;
8072 unsigned PSMC4PH9
: 1;
8073 unsigned PSMC4PH10
: 1;
8074 unsigned PSMC4PH11
: 1;
8075 unsigned PSMC4PH12
: 1;
8076 unsigned PSMC4PH13
: 1;
8077 unsigned PSMC4PH14
: 1;
8078 unsigned PSMC4PH15
: 1;
8081 extern __at(0x0F22) volatile __PSMC4PHHbits_t PSMC4PHHbits
;
8083 #define _PSMC4PH8 0x01
8084 #define _PSMC4PH9 0x02
8085 #define _PSMC4PH10 0x04
8086 #define _PSMC4PH11 0x08
8087 #define _PSMC4PH12 0x10
8088 #define _PSMC4PH13 0x20
8089 #define _PSMC4PH14 0x40
8090 #define _PSMC4PH15 0x80
8092 //==============================================================================
8094 extern __at(0x0F23) __sfr PSMC4DC
;
8096 //==============================================================================
8099 extern __at(0x0F23) __sfr PSMC4DCL
;
8103 unsigned PSMC4DC0
: 1;
8104 unsigned PSMC4DC1
: 1;
8105 unsigned PSMC4DC2
: 1;
8106 unsigned PSMC4DC3
: 1;
8107 unsigned PSMC4DC4
: 1;
8108 unsigned PSMC4DC5
: 1;
8109 unsigned PSMC4DC6
: 1;
8110 unsigned PSMC4DC7
: 1;
8113 extern __at(0x0F23) volatile __PSMC4DCLbits_t PSMC4DCLbits
;
8115 #define _PSMC4DC0 0x01
8116 #define _PSMC4DC1 0x02
8117 #define _PSMC4DC2 0x04
8118 #define _PSMC4DC3 0x08
8119 #define _PSMC4DC4 0x10
8120 #define _PSMC4DC5 0x20
8121 #define _PSMC4DC6 0x40
8122 #define _PSMC4DC7 0x80
8124 //==============================================================================
8127 //==============================================================================
8130 extern __at(0x0F24) __sfr PSMC4DCH
;
8134 unsigned PSMC4DC8
: 1;
8135 unsigned PSMC4DC9
: 1;
8136 unsigned PSMC4DC10
: 1;
8137 unsigned PSMC4DC11
: 1;
8138 unsigned PSMC4DC12
: 1;
8139 unsigned PSMC4DC13
: 1;
8140 unsigned PSMC4DC14
: 1;
8141 unsigned PSMC4DC15
: 1;
8144 extern __at(0x0F24) volatile __PSMC4DCHbits_t PSMC4DCHbits
;
8146 #define _PSMC4DC8 0x01
8147 #define _PSMC4DC9 0x02
8148 #define _PSMC4DC10 0x04
8149 #define _PSMC4DC11 0x08
8150 #define _PSMC4DC12 0x10
8151 #define _PSMC4DC13 0x20
8152 #define _PSMC4DC14 0x40
8153 #define _PSMC4DC15 0x80
8155 //==============================================================================
8157 extern __at(0x0F25) __sfr PSMC4PR
;
8159 //==============================================================================
8162 extern __at(0x0F25) __sfr PSMC4PRL
;
8166 unsigned PSMC4PR0
: 1;
8167 unsigned PSMC4PR1
: 1;
8168 unsigned PSMC4PR2
: 1;
8169 unsigned PSMC4PR3
: 1;
8170 unsigned PSMC4PR4
: 1;
8171 unsigned PSMC4PR5
: 1;
8172 unsigned PSMC4PR6
: 1;
8173 unsigned PSMC4PR7
: 1;
8176 extern __at(0x0F25) volatile __PSMC4PRLbits_t PSMC4PRLbits
;
8178 #define _PSMC4PR0 0x01
8179 #define _PSMC4PR1 0x02
8180 #define _PSMC4PR2 0x04
8181 #define _PSMC4PR3 0x08
8182 #define _PSMC4PR4 0x10
8183 #define _PSMC4PR5 0x20
8184 #define _PSMC4PR6 0x40
8185 #define _PSMC4PR7 0x80
8187 //==============================================================================
8190 //==============================================================================
8193 extern __at(0x0F26) __sfr PSMC4PRH
;
8197 unsigned PSMC4PR8
: 1;
8198 unsigned PSMC4PR9
: 1;
8199 unsigned PSMC4PR10
: 1;
8200 unsigned PSMC4PR11
: 1;
8201 unsigned PSMC4PR12
: 1;
8202 unsigned PSMC4PR13
: 1;
8203 unsigned PSMC4PR14
: 1;
8204 unsigned PSMC4PR15
: 1;
8207 extern __at(0x0F26) volatile __PSMC4PRHbits_t PSMC4PRHbits
;
8209 #define _PSMC4PR8 0x01
8210 #define _PSMC4PR9 0x02
8211 #define _PSMC4PR10 0x04
8212 #define _PSMC4PR11 0x08
8213 #define _PSMC4PR12 0x10
8214 #define _PSMC4PR13 0x20
8215 #define _PSMC4PR14 0x40
8216 #define _PSMC4PR15 0x80
8218 //==============================================================================
8220 extern __at(0x0F27) __sfr PSMC4TMR
;
8222 //==============================================================================
8225 extern __at(0x0F27) __sfr PSMC4TMRL
;
8229 unsigned PSMC4TMR0
: 1;
8230 unsigned PSMC4TMR1
: 1;
8231 unsigned PSMC4TMR2
: 1;
8232 unsigned PSMC4TMR3
: 1;
8233 unsigned PSMC4TMR4
: 1;
8234 unsigned PSMC4TMR5
: 1;
8235 unsigned PSMC4TMR6
: 1;
8236 unsigned PSMC4TMR7
: 1;
8237 } __PSMC4TMRLbits_t
;
8239 extern __at(0x0F27) volatile __PSMC4TMRLbits_t PSMC4TMRLbits
;
8241 #define _PSMC4TMR0 0x01
8242 #define _PSMC4TMR1 0x02
8243 #define _PSMC4TMR2 0x04
8244 #define _PSMC4TMR3 0x08
8245 #define _PSMC4TMR4 0x10
8246 #define _PSMC4TMR5 0x20
8247 #define _PSMC4TMR6 0x40
8248 #define _PSMC4TMR7 0x80
8250 //==============================================================================
8253 //==============================================================================
8256 extern __at(0x0F28) __sfr PSMC4TMRH
;
8260 unsigned PSMC4TMR8
: 1;
8261 unsigned PSMC4TMR9
: 1;
8262 unsigned PSMC4TMR10
: 1;
8263 unsigned PSMC4TMR11
: 1;
8264 unsigned PSMC4TMR12
: 1;
8265 unsigned PSMC4TMR13
: 1;
8266 unsigned PSMC4TMR14
: 1;
8267 unsigned PSMC4TMR15
: 1;
8268 } __PSMC4TMRHbits_t
;
8270 extern __at(0x0F28) volatile __PSMC4TMRHbits_t PSMC4TMRHbits
;
8272 #define _PSMC4TMR8 0x01
8273 #define _PSMC4TMR9 0x02
8274 #define _PSMC4TMR10 0x04
8275 #define _PSMC4TMR11 0x08
8276 #define _PSMC4TMR12 0x10
8277 #define _PSMC4TMR13 0x20
8278 #define _PSMC4TMR14 0x40
8279 #define _PSMC4TMR15 0x80
8281 //==============================================================================
8284 //==============================================================================
8287 extern __at(0x0F29) __sfr PSMC4DBR
;
8291 unsigned PSMC4DBR0
: 1;
8292 unsigned PSMC4DBR1
: 1;
8293 unsigned PSMC4DBR2
: 1;
8294 unsigned PSMC4DBR3
: 1;
8295 unsigned PSMC4DBR4
: 1;
8296 unsigned PSMC4DBR5
: 1;
8297 unsigned PSMC4DBR6
: 1;
8298 unsigned PSMC4DBR7
: 1;
8301 extern __at(0x0F29) volatile __PSMC4DBRbits_t PSMC4DBRbits
;
8303 #define _PSMC4DBR0 0x01
8304 #define _PSMC4DBR1 0x02
8305 #define _PSMC4DBR2 0x04
8306 #define _PSMC4DBR3 0x08
8307 #define _PSMC4DBR4 0x10
8308 #define _PSMC4DBR5 0x20
8309 #define _PSMC4DBR6 0x40
8310 #define _PSMC4DBR7 0x80
8312 //==============================================================================
8315 //==============================================================================
8318 extern __at(0x0F2A) __sfr PSMC4DBF
;
8322 unsigned PSMC4DBF0
: 1;
8323 unsigned PSMC4DBF1
: 1;
8324 unsigned PSMC4DBF2
: 1;
8325 unsigned PSMC4DBF3
: 1;
8326 unsigned PSMC4DBF4
: 1;
8327 unsigned PSMC4DBF5
: 1;
8328 unsigned PSMC4DBF6
: 1;
8329 unsigned PSMC4DBF7
: 1;
8332 extern __at(0x0F2A) volatile __PSMC4DBFbits_t PSMC4DBFbits
;
8334 #define _PSMC4DBF0 0x01
8335 #define _PSMC4DBF1 0x02
8336 #define _PSMC4DBF2 0x04
8337 #define _PSMC4DBF3 0x08
8338 #define _PSMC4DBF4 0x10
8339 #define _PSMC4DBF5 0x20
8340 #define _PSMC4DBF6 0x40
8341 #define _PSMC4DBF7 0x80
8343 //==============================================================================
8346 //==============================================================================
8349 extern __at(0x0F2B) __sfr PSMC4BLKR
;
8353 unsigned PSMC4BLKR0
: 1;
8354 unsigned PSMC4BLKR1
: 1;
8355 unsigned PSMC4BLKR2
: 1;
8356 unsigned PSMC4BLKR3
: 1;
8357 unsigned PSMC4BLKR4
: 1;
8358 unsigned PSMC4BLKR5
: 1;
8359 unsigned PSMC4BLKR6
: 1;
8360 unsigned PSMC4BLKR7
: 1;
8361 } __PSMC4BLKRbits_t
;
8363 extern __at(0x0F2B) volatile __PSMC4BLKRbits_t PSMC4BLKRbits
;
8365 #define _PSMC4BLKR0 0x01
8366 #define _PSMC4BLKR1 0x02
8367 #define _PSMC4BLKR2 0x04
8368 #define _PSMC4BLKR3 0x08
8369 #define _PSMC4BLKR4 0x10
8370 #define _PSMC4BLKR5 0x20
8371 #define _PSMC4BLKR6 0x40
8372 #define _PSMC4BLKR7 0x80
8374 //==============================================================================
8377 //==============================================================================
8380 extern __at(0x0F2C) __sfr PSMC4BLKF
;
8384 unsigned PSMC4BLKF0
: 1;
8385 unsigned PSMC4BLKF1
: 1;
8386 unsigned PSMC4BLKF2
: 1;
8387 unsigned PSMC4BLKF3
: 1;
8388 unsigned PSMC4BLKF4
: 1;
8389 unsigned PSMC4BLKF5
: 1;
8390 unsigned PSMC4BLKF6
: 1;
8391 unsigned PSMC4BLKF7
: 1;
8392 } __PSMC4BLKFbits_t
;
8394 extern __at(0x0F2C) volatile __PSMC4BLKFbits_t PSMC4BLKFbits
;
8396 #define _PSMC4BLKF0 0x01
8397 #define _PSMC4BLKF1 0x02
8398 #define _PSMC4BLKF2 0x04
8399 #define _PSMC4BLKF3 0x08
8400 #define _PSMC4BLKF4 0x10
8401 #define _PSMC4BLKF5 0x20
8402 #define _PSMC4BLKF6 0x40
8403 #define _PSMC4BLKF7 0x80
8405 //==============================================================================
8408 //==============================================================================
8411 extern __at(0x0F2D) __sfr PSMC4FFA
;
8417 unsigned PSMC4FFA0
: 1;
8418 unsigned PSMC4FFA1
: 1;
8419 unsigned PSMC4FFA2
: 1;
8420 unsigned PSMC4FFA3
: 1;
8429 unsigned PSMC4FFA
: 4;
8434 extern __at(0x0F2D) volatile __PSMC4FFAbits_t PSMC4FFAbits
;
8436 #define _PSMC4FFA0 0x01
8437 #define _PSMC4FFA1 0x02
8438 #define _PSMC4FFA2 0x04
8439 #define _PSMC4FFA3 0x08
8441 //==============================================================================
8444 //==============================================================================
8447 extern __at(0x0F2E) __sfr PSMC4STR0
;
8451 unsigned P4STRA
: 1;
8452 unsigned P4STRB
: 1;
8459 } __PSMC4STR0bits_t
;
8461 extern __at(0x0F2E) volatile __PSMC4STR0bits_t PSMC4STR0bits
;
8463 #define _P4STRA 0x01
8464 #define _P4STRB 0x02
8466 //==============================================================================
8469 //==============================================================================
8472 extern __at(0x0F2F) __sfr PSMC4STR1
;
8476 unsigned P4HSMEN
: 1;
8477 unsigned P4LSMEN
: 1;
8483 unsigned P4SSYNC
: 1;
8484 } __PSMC4STR1bits_t
;
8486 extern __at(0x0F2F) volatile __PSMC4STR1bits_t PSMC4STR1bits
;
8488 #define _P4HSMEN 0x01
8489 #define _P4LSMEN 0x02
8490 #define _P4SSYNC 0x80
8492 //==============================================================================
8495 //==============================================================================
8498 extern __at(0x0FE4) __sfr STATUS_SHAD
;
8502 unsigned C_SHAD
: 1;
8503 unsigned DC_SHAD
: 1;
8504 unsigned Z_SHAD
: 1;
8510 } __STATUS_SHADbits_t
;
8512 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
8514 #define _C_SHAD 0x01
8515 #define _DC_SHAD 0x02
8516 #define _Z_SHAD 0x04
8518 //==============================================================================
8520 extern __at(0x0FE5) __sfr WREG_SHAD
;
8521 extern __at(0x0FE6) __sfr BSR_SHAD
;
8522 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
8523 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
8524 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
8525 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
8526 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
8527 extern __at(0x0FED) __sfr STKPTR
;
8528 extern __at(0x0FEE) __sfr TOSL
;
8529 extern __at(0x0FEF) __sfr TOSH
;
8531 //==============================================================================
8533 // Configuration Bits
8535 //==============================================================================
8537 #define _CONFIG1 0x8007
8538 #define _CONFIG2 0x8008
8540 //----------------------------- CONFIG1 Options -------------------------------
8542 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
8543 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
8544 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
8545 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
8546 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
8547 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
8548 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
8549 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin.
8550 #define _WDTE_OFF 0x3FE7 // WDT disabled.
8551 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
8552 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
8553 #define _WDTE_ON 0x3FFF // WDT enabled.
8554 #define _PWRTE_ON 0x3FDF // PWRT enabled.
8555 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
8556 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
8557 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
8558 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
8559 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
8560 #define _CPD_ON 0x3EFF // Data memory code protection is enabled.
8561 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
8562 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
8563 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
8564 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
8565 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
8566 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
8567 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
8568 #define _IESO_OFF 0x2FFF // Internal/External Switchover mode is disabled.
8569 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
8570 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
8571 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
8573 //----------------------------- CONFIG2 Options -------------------------------
8575 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
8576 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
8577 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
8578 #define _WRT_OFF 0x3FFF // Write protection off.
8579 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
8580 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
8581 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
8582 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
8583 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
8584 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
8585 #define _LPBOR_ON 0x37FF // Low power brown-out is enabled.
8586 #define _LPBOR_OFF 0x3FFF // Low power brown-out is disabled.
8587 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
8588 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
8589 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
8590 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
8592 //==============================================================================
8594 #define _DEVID1 0x8006
8596 #define _IDLOC0 0x8000
8597 #define _IDLOC1 0x8001
8598 #define _IDLOC2 0x8002
8599 #define _IDLOC3 0x8003
8601 //==============================================================================
8603 #ifndef NO_BIT_DEFINES
8605 #define ADON ADCON0bits.ADON // bit 0
8606 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
8607 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
8608 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
8609 #define DONE ADCON0bits.DONE // bit 1, shadows bit in ADCON0bits
8610 #define CHS0 ADCON0bits.CHS0 // bit 2
8611 #define CHS1 ADCON0bits.CHS1 // bit 3
8612 #define CHS2 ADCON0bits.CHS2 // bit 4
8613 #define CHS3 ADCON0bits.CHS3 // bit 5
8614 #define CHS4 ADCON0bits.CHS4 // bit 6
8615 #define ADRMD ADCON0bits.ADRMD // bit 7
8617 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
8618 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
8619 #define ADNREF ADCON1bits.ADNREF // bit 2
8620 #define ADCS0 ADCON1bits.ADCS0 // bit 4
8621 #define ADCS1 ADCON1bits.ADCS1 // bit 5
8622 #define ADCS2 ADCON1bits.ADCS2 // bit 6
8623 #define ADFM ADCON1bits.ADFM // bit 7
8625 #define CHSN0 ADCON2bits.CHSN0 // bit 0
8626 #define CHSN1 ADCON2bits.CHSN1 // bit 1
8627 #define CHSN2 ADCON2bits.CHSN2 // bit 2
8628 #define CHSN3 ADCON2bits.CHSN3 // bit 3
8629 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
8630 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
8631 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
8632 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
8634 #define ANSA0 ANSELAbits.ANSA0 // bit 0
8635 #define ANSA1 ANSELAbits.ANSA1 // bit 1
8636 #define ANSA2 ANSELAbits.ANSA2 // bit 2
8637 #define ANSA3 ANSELAbits.ANSA3 // bit 3
8638 #define ANSA4 ANSELAbits.ANSA4 // bit 4
8639 #define ANSA5 ANSELAbits.ANSA5 // bit 5
8640 #define ANSA7 ANSELAbits.ANSA7 // bit 7
8642 #define ANSB0 ANSELBbits.ANSB0 // bit 0
8643 #define ANSB1 ANSELBbits.ANSB1 // bit 1
8644 #define ANSB2 ANSELBbits.ANSB2 // bit 2
8645 #define ANSB3 ANSELBbits.ANSB3 // bit 3
8646 #define ANSB4 ANSELBbits.ANSB4 // bit 4
8647 #define ANSB5 ANSELBbits.ANSB5 // bit 5
8648 #define ANSB6 ANSELBbits.ANSB6 // bit 6
8650 #define ANSC0 ANSELCbits.ANSC0 // bit 0
8651 #define ANSC1 ANSELCbits.ANSC1 // bit 1
8652 #define ANSC2 ANSELCbits.ANSC2 // bit 2
8653 #define ANSC3 ANSELCbits.ANSC3 // bit 3
8654 #define ANSC4 ANSELCbits.ANSC4 // bit 4
8655 #define ANSC5 ANSELCbits.ANSC5 // bit 5
8656 #define ANSC6 ANSELCbits.ANSC6 // bit 6
8657 #define ANSC7 ANSELCbits.ANSC7 // bit 7
8659 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
8660 #define RXSEL APFCONbits.RXSEL // bit 1
8661 #define TXSEL APFCONbits.TXSEL // bit 2
8662 #define SDISEL APFCONbits.SDISEL // bit 3
8663 #define SCKSEL APFCONbits.SCKSEL // bit 4
8664 #define SDOSEL APFCONbits.SDOSEL // bit 5
8665 #define CCP1SEL APFCONbits.CCP1SEL // bit 6
8666 #define C2OUTSEL APFCONbits.C2OUTSEL // bit 7
8668 #define CCP3SEL APFCON2bits.CCP3SEL // bit 0
8670 #define ABDEN BAUD1CONbits.ABDEN // bit 0
8671 #define WUE BAUD1CONbits.WUE // bit 1
8672 #define BRG16 BAUD1CONbits.BRG16 // bit 3
8673 #define SCKP BAUD1CONbits.SCKP // bit 4
8674 #define RCIDL BAUD1CONbits.RCIDL // bit 6
8675 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
8677 #define BORRDY BORCONbits.BORRDY // bit 0
8678 #define BORFS BORCONbits.BORFS // bit 6
8679 #define SBOREN BORCONbits.SBOREN // bit 7
8681 #define BSR0 BSRbits.BSR0 // bit 0
8682 #define BSR1 BSRbits.BSR1 // bit 1
8683 #define BSR2 BSRbits.BSR2 // bit 2
8684 #define BSR3 BSRbits.BSR3 // bit 3
8685 #define BSR4 BSRbits.BSR4 // bit 4
8687 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
8688 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
8689 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
8690 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
8691 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
8692 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
8694 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
8695 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
8696 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
8697 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
8698 #define DC2B0 CCP2CONbits.DC2B0 // bit 4
8699 #define DC2B1 CCP2CONbits.DC2B1 // bit 5
8701 #define CCP3M0 CCP3CONbits.CCP3M0 // bit 0
8702 #define CCP3M1 CCP3CONbits.CCP3M1 // bit 1
8703 #define CCP3M2 CCP3CONbits.CCP3M2 // bit 2
8704 #define CCP3M3 CCP3CONbits.CCP3M3 // bit 3
8705 #define DC3B0 CCP3CONbits.DC3B0 // bit 4
8706 #define DC3B1 CCP3CONbits.DC3B1 // bit 5
8708 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
8709 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
8710 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
8711 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
8712 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
8713 #define CLKRSLR CLKRCONbits.CLKRSLR // bit 5
8714 #define CLKROE CLKRCONbits.CLKROE // bit 6
8715 #define CLKREN CLKRCONbits.CLKREN // bit 7
8717 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
8718 #define C1HYS CM1CON0bits.C1HYS // bit 1
8719 #define C1SP CM1CON0bits.C1SP // bit 2
8720 #define C1ZLF CM1CON0bits.C1ZLF // bit 3
8721 #define C1POL CM1CON0bits.C1POL // bit 4
8722 #define C1OE CM1CON0bits.C1OE // bit 5
8723 #define C1OUT CM1CON0bits.C1OUT // bit 6
8724 #define C1ON CM1CON0bits.C1ON // bit 7
8726 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
8727 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
8728 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
8729 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
8730 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
8731 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
8732 #define C1INTN CM1CON1bits.C1INTN // bit 6
8733 #define C1INTP CM1CON1bits.C1INTP // bit 7
8735 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
8736 #define C2HYS CM2CON0bits.C2HYS // bit 1
8737 #define C2SP CM2CON0bits.C2SP // bit 2
8738 #define C2ZLF CM2CON0bits.C2ZLF // bit 3
8739 #define C2POL CM2CON0bits.C2POL // bit 4
8740 #define C2OE CM2CON0bits.C2OE // bit 5
8741 #define C2OUT CM2CON0bits.C2OUT // bit 6
8742 #define C2ON CM2CON0bits.C2ON // bit 7
8744 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
8745 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
8746 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
8747 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 3
8748 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 4
8749 #define C2PCH2 CM2CON1bits.C2PCH2 // bit 5
8750 #define C2INTN CM2CON1bits.C2INTN // bit 6
8751 #define C2INTP CM2CON1bits.C2INTP // bit 7
8753 #define C3SYNC CM3CON0bits.C3SYNC // bit 0
8754 #define C3HYS CM3CON0bits.C3HYS // bit 1
8755 #define C3SP CM3CON0bits.C3SP // bit 2
8756 #define C3ZLF CM3CON0bits.C3ZLF // bit 3
8757 #define C3POL CM3CON0bits.C3POL // bit 4
8758 #define C3OE CM3CON0bits.C3OE // bit 5
8759 #define C3OUT CM3CON0bits.C3OUT // bit 6
8760 #define C3ON CM3CON0bits.C3ON // bit 7
8762 #define C3NCH0 CM3CON1bits.C3NCH0 // bit 0
8763 #define C3NCH1 CM3CON1bits.C3NCH1 // bit 1
8764 #define C3NCH2 CM3CON1bits.C3NCH2 // bit 2
8765 #define C3PCH0 CM3CON1bits.C3PCH0 // bit 3
8766 #define C3PCH1 CM3CON1bits.C3PCH1 // bit 4
8767 #define C3PCH2 CM3CON1bits.C3PCH2 // bit 5
8768 #define C3INTN CM3CON1bits.C3INTN // bit 6
8769 #define C3INTP CM3CON1bits.C3INTP // bit 7
8771 #define C4SYNC CM4CON0bits.C4SYNC // bit 0
8772 #define C4HYS CM4CON0bits.C4HYS // bit 1
8773 #define C4SP CM4CON0bits.C4SP // bit 2
8774 #define C4ZLF CM4CON0bits.C4ZLF // bit 3
8775 #define C4POL CM4CON0bits.C4POL // bit 4
8776 #define C4OE CM4CON0bits.C4OE // bit 5
8777 #define C4OUT CM4CON0bits.C4OUT // bit 6
8778 #define C4ON CM4CON0bits.C4ON // bit 7
8780 #define C4NCH0 CM4CON1bits.C4NCH0 // bit 0
8781 #define C4NCH1 CM4CON1bits.C4NCH1 // bit 1
8782 #define C4NCH2 CM4CON1bits.C4NCH2 // bit 2
8783 #define C4PCH0 CM4CON1bits.C4PCH0 // bit 3
8784 #define C4PCH1 CM4CON1bits.C4PCH1 // bit 4
8785 #define C4PCH2 CM4CON1bits.C4PCH2 // bit 5
8786 #define C4INTN CM4CON1bits.C4INTN // bit 6
8787 #define C4INTP CM4CON1bits.C4INTP // bit 7
8789 #define MC1OUT CMOUTbits.MC1OUT // bit 0
8790 #define MC2OUT CMOUTbits.MC2OUT // bit 1
8791 #define MC3OUT CMOUTbits.MC3OUT // bit 2
8792 #define MC4OUT CMOUTbits.MC4OUT // bit 3
8794 #define DAC1NSS DAC1CON0bits.DAC1NSS // bit 0, shadows bit in DAC1CON0bits
8795 #define DACNSS DAC1CON0bits.DACNSS // bit 0, shadows bit in DAC1CON0bits
8796 #define DAC1PSS0 DAC1CON0bits.DAC1PSS0 // bit 2, shadows bit in DAC1CON0bits
8797 #define DACPSS0 DAC1CON0bits.DACPSS0 // bit 2, shadows bit in DAC1CON0bits
8798 #define DAC1PSS1 DAC1CON0bits.DAC1PSS1 // bit 3, shadows bit in DAC1CON0bits
8799 #define DACPSS1 DAC1CON0bits.DACPSS1 // bit 3, shadows bit in DAC1CON0bits
8800 #define DAC1OE2 DAC1CON0bits.DAC1OE2 // bit 4, shadows bit in DAC1CON0bits
8801 #define DACOE0 DAC1CON0bits.DACOE0 // bit 4, shadows bit in DAC1CON0bits
8802 #define DAC1OE1 DAC1CON0bits.DAC1OE1 // bit 5, shadows bit in DAC1CON0bits
8803 #define DACOE1 DAC1CON0bits.DACOE1 // bit 5, shadows bit in DAC1CON0bits
8804 #define DAC1EN DAC1CON0bits.DAC1EN // bit 7, shadows bit in DAC1CON0bits
8805 #define DACEN DAC1CON0bits.DACEN // bit 7, shadows bit in DAC1CON0bits
8807 #define DAC1R0 DAC1CON1bits.DAC1R0 // bit 0, shadows bit in DAC1CON1bits
8808 #define DACR0 DAC1CON1bits.DACR0 // bit 0, shadows bit in DAC1CON1bits
8809 #define DAC1R1 DAC1CON1bits.DAC1R1 // bit 1, shadows bit in DAC1CON1bits
8810 #define DACR1 DAC1CON1bits.DACR1 // bit 1, shadows bit in DAC1CON1bits
8811 #define DAC1R2 DAC1CON1bits.DAC1R2 // bit 2, shadows bit in DAC1CON1bits
8812 #define DACR2 DAC1CON1bits.DACR2 // bit 2, shadows bit in DAC1CON1bits
8813 #define DAC1R3 DAC1CON1bits.DAC1R3 // bit 3, shadows bit in DAC1CON1bits
8814 #define DACR3 DAC1CON1bits.DACR3 // bit 3, shadows bit in DAC1CON1bits
8815 #define DAC1R4 DAC1CON1bits.DAC1R4 // bit 4, shadows bit in DAC1CON1bits
8816 #define DACR4 DAC1CON1bits.DACR4 // bit 4, shadows bit in DAC1CON1bits
8817 #define DAC1R5 DAC1CON1bits.DAC1R5 // bit 5, shadows bit in DAC1CON1bits
8818 #define DACR5 DAC1CON1bits.DACR5 // bit 5, shadows bit in DAC1CON1bits
8819 #define DAC1R6 DAC1CON1bits.DAC1R6 // bit 6, shadows bit in DAC1CON1bits
8820 #define DACR6 DAC1CON1bits.DACR6 // bit 6, shadows bit in DAC1CON1bits
8821 #define DAC1R7 DAC1CON1bits.DAC1R7 // bit 7, shadows bit in DAC1CON1bits
8822 #define DACR7 DAC1CON1bits.DACR7 // bit 7, shadows bit in DAC1CON1bits
8824 #define DAC2OE2 DAC2CON0bits.DAC2OE2 // bit 4
8825 #define DAC2OE1 DAC2CON0bits.DAC2OE1 // bit 5
8826 #define DAC2EN DAC2CON0bits.DAC2EN // bit 7
8828 #define DAC3OE2 DAC3CON0bits.DAC3OE2 // bit 4
8829 #define DAC3OE1 DAC3CON0bits.DAC3OE1 // bit 5
8830 #define DAC3EN DAC3CON0bits.DAC3EN // bit 7
8832 #define DAC4OE2 DAC4CON0bits.DAC4OE2 // bit 4
8833 #define DAC4OE1 DAC4CON0bits.DAC4OE1 // bit 5
8834 #define DAC4EN DAC4CON0bits.DAC4EN // bit 7
8836 #define RD EECON1bits.RD // bit 0
8837 #define WR EECON1bits.WR // bit 1
8838 #define WREN EECON1bits.WREN // bit 2
8839 #define WRERR EECON1bits.WRERR // bit 3
8840 #define FREE EECON1bits.FREE // bit 4
8841 #define LWLO EECON1bits.LWLO // bit 5
8842 #define CFGS EECON1bits.CFGS // bit 6
8843 #define EEPGD EECON1bits.EEPGD // bit 7
8845 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
8846 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
8847 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
8848 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
8849 #define TSRNG FVRCONbits.TSRNG // bit 4
8850 #define TSEN FVRCONbits.TSEN // bit 5
8851 #define FVRRDY FVRCONbits.FVRRDY // bit 6
8852 #define FVREN FVRCONbits.FVREN // bit 7
8854 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
8855 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
8856 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
8857 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
8858 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
8859 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
8860 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
8861 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
8863 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
8864 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
8865 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
8866 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
8867 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
8868 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
8869 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
8870 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
8872 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
8873 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
8874 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
8875 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
8876 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
8877 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
8878 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
8879 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
8881 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
8883 #define IOCIF INTCONbits.IOCIF // bit 0
8884 #define INTF INTCONbits.INTF // bit 1
8885 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
8886 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
8887 #define IOCIE INTCONbits.IOCIE // bit 3
8888 #define INTE INTCONbits.INTE // bit 4
8889 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
8890 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
8891 #define PEIE INTCONbits.PEIE // bit 6
8892 #define GIE INTCONbits.GIE // bit 7
8894 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
8895 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
8896 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
8897 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
8898 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
8899 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
8900 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
8901 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
8903 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
8904 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
8905 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
8906 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
8907 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
8908 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
8909 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
8910 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
8912 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
8913 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
8914 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
8915 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
8916 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
8917 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
8918 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
8919 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
8921 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
8922 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
8923 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
8924 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
8925 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
8926 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
8927 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
8928 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
8930 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
8931 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
8932 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
8933 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
8934 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
8935 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
8936 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
8937 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
8939 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
8940 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
8941 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
8942 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
8943 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
8944 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
8945 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
8946 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
8948 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
8949 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
8950 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
8951 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
8952 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
8953 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
8954 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
8955 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
8957 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
8958 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
8959 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
8960 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
8961 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
8962 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
8963 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
8964 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
8966 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
8967 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
8968 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
8969 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
8970 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
8971 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
8972 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
8973 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
8975 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
8977 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
8979 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
8981 #define LATA0 LATAbits.LATA0 // bit 0
8982 #define LATA1 LATAbits.LATA1 // bit 1
8983 #define LATA2 LATAbits.LATA2 // bit 2
8984 #define LATA3 LATAbits.LATA3 // bit 3
8985 #define LATA4 LATAbits.LATA4 // bit 4
8986 #define LATA5 LATAbits.LATA5 // bit 5
8987 #define LATA6 LATAbits.LATA6 // bit 6
8988 #define LATA7 LATAbits.LATA7 // bit 7
8990 #define LATB0 LATBbits.LATB0 // bit 0
8991 #define LATB1 LATBbits.LATB1 // bit 1
8992 #define LATB2 LATBbits.LATB2 // bit 2
8993 #define LATB3 LATBbits.LATB3 // bit 3
8994 #define LATB4 LATBbits.LATB4 // bit 4
8995 #define LATB5 LATBbits.LATB5 // bit 5
8996 #define LATB6 LATBbits.LATB6 // bit 6
8997 #define LATB7 LATBbits.LATB7 // bit 7
8999 #define LATC0 LATCbits.LATC0 // bit 0
9000 #define LATC1 LATCbits.LATC1 // bit 1
9001 #define LATC2 LATCbits.LATC2 // bit 2
9002 #define LATC3 LATCbits.LATC3 // bit 3
9003 #define LATC4 LATCbits.LATC4 // bit 4
9004 #define LATC5 LATCbits.LATC5 // bit 5
9005 #define LATC6 LATCbits.LATC6 // bit 6
9006 #define LATC7 LATCbits.LATC7 // bit 7
9008 #define ODCONA0 ODCONAbits.ODCONA0 // bit 0
9009 #define ODCONA1 ODCONAbits.ODCONA1 // bit 1
9010 #define ODCONA2 ODCONAbits.ODCONA2 // bit 2
9011 #define ODCONA3 ODCONAbits.ODCONA3 // bit 3
9012 #define ODCONA4 ODCONAbits.ODCONA4 // bit 4
9013 #define ODCONA5 ODCONAbits.ODCONA5 // bit 5
9014 #define ODCONA6 ODCONAbits.ODCONA6 // bit 6
9015 #define ODCONA7 ODCONAbits.ODCONA7 // bit 7
9017 #define ODCONB0 ODCONBbits.ODCONB0 // bit 0
9018 #define ODCONB1 ODCONBbits.ODCONB1 // bit 1
9019 #define ODCONB2 ODCONBbits.ODCONB2 // bit 2
9020 #define ODCONB3 ODCONBbits.ODCONB3 // bit 3
9021 #define ODCONB4 ODCONBbits.ODCONB4 // bit 4
9022 #define ODCONB5 ODCONBbits.ODCONB5 // bit 5
9023 #define ODCONB6 ODCONBbits.ODCONB6 // bit 6
9024 #define ODCONB7 ODCONBbits.ODCONB7 // bit 7
9026 #define ODCONC0 ODCONCbits.ODCONC0 // bit 0
9027 #define ODCONC1 ODCONCbits.ODCONC1 // bit 1
9028 #define ODCONC2 ODCONCbits.ODCONC2 // bit 2
9029 #define ODCONC3 ODCONCbits.ODCONC3 // bit 3
9030 #define ODCONC4 ODCONCbits.ODCONC4 // bit 4
9031 #define ODCONC5 ODCONCbits.ODCONC5 // bit 5
9032 #define ODCONC6 ODCONCbits.ODCONC6 // bit 6
9033 #define ODCONC7 ODCONCbits.ODCONC7 // bit 7
9035 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0, shadows bit in OPA1CONbits
9036 #define PCH0 OPA1CONbits.PCH0 // bit 0, shadows bit in OPA1CONbits
9037 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1, shadows bit in OPA1CONbits
9038 #define PCH1 OPA1CONbits.PCH1 // bit 1, shadows bit in OPA1CONbits
9039 #define OPA1PCH2 OPA1CONbits.OPA1PCH2 // bit 2, shadows bit in OPA1CONbits
9040 #define PCH2 OPA1CONbits.PCH2 // bit 2, shadows bit in OPA1CONbits
9041 #define OPA1SP OPA1CONbits.OPA1SP // bit 6, shadows bit in OPA1CONbits
9042 #define SP OPA1CONbits.SP // bit 6, shadows bit in OPA1CONbits
9043 #define OPA1EN OPA1CONbits.OPA1EN // bit 7, shadows bit in OPA1CONbits
9044 #define EN OPA1CONbits.EN // bit 7, shadows bit in OPA1CONbits
9046 #define PS0 OPTION_REGbits.PS0 // bit 0
9047 #define PS1 OPTION_REGbits.PS1 // bit 1
9048 #define PS2 OPTION_REGbits.PS2 // bit 2
9049 #define PSA OPTION_REGbits.PSA // bit 3
9050 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
9051 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
9052 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
9053 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
9054 #define INTEDG OPTION_REGbits.INTEDG // bit 6
9055 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
9057 #define SCS0 OSCCONbits.SCS0 // bit 0
9058 #define SCS1 OSCCONbits.SCS1 // bit 1
9059 #define IRCF0 OSCCONbits.IRCF0 // bit 3
9060 #define IRCF1 OSCCONbits.IRCF1 // bit 4
9061 #define IRCF2 OSCCONbits.IRCF2 // bit 5
9062 #define IRCF3 OSCCONbits.IRCF3 // bit 6
9063 #define SPLLEN OSCCONbits.SPLLEN // bit 7
9065 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
9066 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
9067 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
9068 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
9069 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
9070 #define OSTS OSCSTATbits.OSTS // bit 5
9071 #define PLLR OSCSTATbits.PLLR // bit 6
9072 #define T1OSCR OSCSTATbits.T1OSCR // bit 7
9074 #define TUN0 OSCTUNEbits.TUN0 // bit 0
9075 #define TUN1 OSCTUNEbits.TUN1 // bit 1
9076 #define TUN2 OSCTUNEbits.TUN2 // bit 2
9077 #define TUN3 OSCTUNEbits.TUN3 // bit 3
9078 #define TUN4 OSCTUNEbits.TUN4 // bit 4
9079 #define TUN5 OSCTUNEbits.TUN5 // bit 5
9081 #define NOT_BOR PCONbits.NOT_BOR // bit 0
9082 #define NOT_POR PCONbits.NOT_POR // bit 1
9083 #define NOT_RI PCONbits.NOT_RI // bit 2
9084 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
9085 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
9086 #define STKUNF PCONbits.STKUNF // bit 6
9087 #define STKOVF PCONbits.STKOVF // bit 7
9089 #define TMR1IE PIE1bits.TMR1IE // bit 0
9090 #define TMR2IE PIE1bits.TMR2IE // bit 1
9091 #define CCP1IE PIE1bits.CCP1IE // bit 2
9092 #define SSP1IE PIE1bits.SSP1IE // bit 3
9093 #define TXIE PIE1bits.TXIE // bit 4
9094 #define RCIE PIE1bits.RCIE // bit 5
9095 #define ADIE PIE1bits.ADIE // bit 6
9096 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
9098 #define CCP2IE PIE2bits.CCP2IE // bit 0
9099 #define C3IE PIE2bits.C3IE // bit 1
9100 #define C4IE PIE2bits.C4IE // bit 2
9101 #define BCL1IE PIE2bits.BCL1IE // bit 3
9102 #define EEIE PIE2bits.EEIE // bit 4
9103 #define C1IE PIE2bits.C1IE // bit 5
9104 #define C2IE PIE2bits.C2IE // bit 6
9105 #define OSFIE PIE2bits.OSFIE // bit 7
9107 #define CCP3IE PIE3bits.CCP3IE // bit 4
9109 #define PSMC1SIE PIE4bits.PSMC1SIE // bit 0
9110 #define PSMC2SIE PIE4bits.PSMC2SIE // bit 1
9111 #define PSMC3SIE PIE4bits.PSMC3SIE // bit 2
9112 #define PSMC4SIE PIE4bits.PSMC4SIE // bit 3
9113 #define PSMC1TIE PIE4bits.PSMC1TIE // bit 4
9114 #define PSMC2TIE PIE4bits.PSMC2TIE // bit 5
9115 #define PSMC3TIE PIE4bits.PSMC3TIE // bit 6, shadows bit in PIE4bits
9116 #define PMSC3TIE PIE4bits.PMSC3TIE // bit 6, shadows bit in PIE4bits
9117 #define PSMC4TIE PIE4bits.PSMC4TIE // bit 7
9119 #define TMR1IF PIR1bits.TMR1IF // bit 0
9120 #define TMR2IF PIR1bits.TMR2IF // bit 1
9121 #define CCP1IF PIR1bits.CCP1IF // bit 2
9122 #define SSP1IF PIR1bits.SSP1IF // bit 3
9123 #define TXIF PIR1bits.TXIF // bit 4
9124 #define RCIF PIR1bits.RCIF // bit 5
9125 #define ADIF PIR1bits.ADIF // bit 6
9126 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
9128 #define CCP2IF PIR2bits.CCP2IF // bit 0
9129 #define C3IF PIR2bits.C3IF // bit 1
9130 #define C4IF PIR2bits.C4IF // bit 2
9131 #define BCL1IF PIR2bits.BCL1IF // bit 3
9132 #define EEIF PIR2bits.EEIF // bit 4
9133 #define C1IF PIR2bits.C1IF // bit 5
9134 #define C2IF PIR2bits.C2IF // bit 6
9135 #define OSFIF PIR2bits.OSFIF // bit 7
9137 #define CCP3IF PIR3bits.CCP3IF // bit 4
9139 #define PSMC1SIF PIR4bits.PSMC1SIF // bit 0
9140 #define PSMC2SIF PIR4bits.PSMC2SIF // bit 1
9141 #define PSMC3SIF PIR4bits.PSMC3SIF // bit 2
9142 #define PSMC4SIF PIR4bits.PSMC4SIF // bit 3
9143 #define PSMC1TIF PIR4bits.PSMC1TIF // bit 4
9144 #define PSMC2TIF PIR4bits.PSMC2TIF // bit 5
9145 #define PSMC3TIF PIR4bits.PSMC3TIF // bit 6
9146 #define PSMC4TIF PIR4bits.PSMC4TIF // bit 7
9148 #define RA0 PORTAbits.RA0 // bit 0
9149 #define RA1 PORTAbits.RA1 // bit 1
9150 #define RA2 PORTAbits.RA2 // bit 2
9151 #define RA3 PORTAbits.RA3 // bit 3
9152 #define RA4 PORTAbits.RA4 // bit 4
9153 #define RA5 PORTAbits.RA5 // bit 5
9154 #define RA6 PORTAbits.RA6 // bit 6
9155 #define RA7 PORTAbits.RA7 // bit 7
9157 #define RB0 PORTBbits.RB0 // bit 0
9158 #define RB1 PORTBbits.RB1 // bit 1
9159 #define RB2 PORTBbits.RB2 // bit 2
9160 #define RB3 PORTBbits.RB3 // bit 3
9161 #define RB4 PORTBbits.RB4 // bit 4
9162 #define RB5 PORTBbits.RB5 // bit 5
9163 #define RB6 PORTBbits.RB6 // bit 6
9164 #define RB7 PORTBbits.RB7 // bit 7
9166 #define RC0 PORTCbits.RC0 // bit 0
9167 #define RC1 PORTCbits.RC1 // bit 1
9168 #define RC2 PORTCbits.RC2 // bit 2
9169 #define RC3 PORTCbits.RC3 // bit 3
9170 #define RC4 PORTCbits.RC4 // bit 4
9171 #define RC5 PORTCbits.RC5 // bit 5
9172 #define RC6 PORTCbits.RC6 // bit 6
9173 #define RC7 PORTCbits.RC7 // bit 7
9175 #define RE3 PORTEbits.RE3 // bit 3
9177 #define P1ASDOV PSMC1ASDCbits.P1ASDOV // bit 0
9178 #define P1ARSEN PSMC1ASDCbits.P1ARSEN // bit 5
9179 #define P1ASDEN PSMC1ASDCbits.P1ASDEN // bit 6
9180 #define P1ASE PSMC1ASDCbits.P1ASE // bit 7
9182 #define P1ASDLA PSMC1ASDLbits.P1ASDLA // bit 0
9183 #define P1ASDLB PSMC1ASDLbits.P1ASDLB // bit 1
9184 #define P1ASDLC PSMC1ASDLbits.P1ASDLC // bit 2
9185 #define P1ASDLD PSMC1ASDLbits.P1ASDLD // bit 3
9186 #define P1ASDLE PSMC1ASDLbits.P1ASDLE // bit 4
9187 #define P1ASDLF PSMC1ASDLbits.P1ASDLF // bit 5
9189 #define P1ASDSC1 PSMC1ASDSbits.P1ASDSC1 // bit 1
9190 #define P1ASDSC2 PSMC1ASDSbits.P1ASDSC2 // bit 2
9191 #define P1ASDSC3 PSMC1ASDSbits.P1ASDSC3 // bit 3
9192 #define P1ASDSC4 PSMC1ASDSbits.P1ASDSC4 // bit 4
9193 #define P1ASDSIN PSMC1ASDSbits.P1ASDSIN // bit 7
9195 #define PSMC1BLKF0 PSMC1BLKFbits.PSMC1BLKF0 // bit 0
9196 #define PSMC1BLKF1 PSMC1BLKFbits.PSMC1BLKF1 // bit 1
9197 #define PSMC1BLKF2 PSMC1BLKFbits.PSMC1BLKF2 // bit 2
9198 #define PSMC1BLKF3 PSMC1BLKFbits.PSMC1BLKF3 // bit 3
9199 #define PSMC1BLKF4 PSMC1BLKFbits.PSMC1BLKF4 // bit 4
9200 #define PSMC1BLKF5 PSMC1BLKFbits.PSMC1BLKF5 // bit 5
9201 #define PSMC1BLKF6 PSMC1BLKFbits.PSMC1BLKF6 // bit 6
9202 #define PSMC1BLKF7 PSMC1BLKFbits.PSMC1BLKF7 // bit 7
9204 #define PSMC1BLKR0 PSMC1BLKRbits.PSMC1BLKR0 // bit 0
9205 #define PSMC1BLKR1 PSMC1BLKRbits.PSMC1BLKR1 // bit 1
9206 #define PSMC1BLKR2 PSMC1BLKRbits.PSMC1BLKR2 // bit 2
9207 #define PSMC1BLKR3 PSMC1BLKRbits.PSMC1BLKR3 // bit 3
9208 #define PSMC1BLKR4 PSMC1BLKRbits.PSMC1BLKR4 // bit 4
9209 #define PSMC1BLKR5 PSMC1BLKRbits.PSMC1BLKR5 // bit 5
9210 #define PSMC1BLKR6 PSMC1BLKRbits.PSMC1BLKR6 // bit 6
9211 #define PSMC1BLKR7 PSMC1BLKRbits.PSMC1BLKR7 // bit 7
9213 #define P1REBM0 PSMC1BLNKbits.P1REBM0 // bit 0
9214 #define P1REBM1 PSMC1BLNKbits.P1REBM1 // bit 1
9215 #define P1FEBM0 PSMC1BLNKbits.P1FEBM0 // bit 4
9216 #define P1FEBM1 PSMC1BLNKbits.P1FEBM1 // bit 5
9218 #define P1CSRC0 PSMC1CLKbits.P1CSRC0 // bit 0
9219 #define P1CSRC1 PSMC1CLKbits.P1CSRC1 // bit 1
9220 #define P1CPRE0 PSMC1CLKbits.P1CPRE0 // bit 4
9221 #define P1CPRE1 PSMC1CLKbits.P1CPRE1 // bit 5
9223 #define P1MODE0 PSMC1CONbits.P1MODE0 // bit 0
9224 #define P1MODE1 PSMC1CONbits.P1MODE1 // bit 1
9225 #define P1MODE2 PSMC1CONbits.P1MODE2 // bit 2
9226 #define P1MODE3 PSMC1CONbits.P1MODE3 // bit 3
9227 #define P1DBRE PSMC1CONbits.P1DBRE // bit 4
9228 #define P1DBFE PSMC1CONbits.P1DBFE // bit 5
9229 #define PSMC1LD PSMC1CONbits.PSMC1LD // bit 6
9230 #define PSMC1EN PSMC1CONbits.PSMC1EN // bit 7
9232 #define PSMC1DBF0 PSMC1DBFbits.PSMC1DBF0 // bit 0
9233 #define PSMC1DBF1 PSMC1DBFbits.PSMC1DBF1 // bit 1
9234 #define PSMC1DBF2 PSMC1DBFbits.PSMC1DBF2 // bit 2
9235 #define PSMC1DBF3 PSMC1DBFbits.PSMC1DBF3 // bit 3
9236 #define PSMC1DBF4 PSMC1DBFbits.PSMC1DBF4 // bit 4
9237 #define PSMC1DBF5 PSMC1DBFbits.PSMC1DBF5 // bit 5
9238 #define PSMC1DBF6 PSMC1DBFbits.PSMC1DBF6 // bit 6
9239 #define PSMC1DBF7 PSMC1DBFbits.PSMC1DBF7 // bit 7
9241 #define PSMC1DBR0 PSMC1DBRbits.PSMC1DBR0 // bit 0
9242 #define PSMC1DBR1 PSMC1DBRbits.PSMC1DBR1 // bit 1
9243 #define PSMC1DBR2 PSMC1DBRbits.PSMC1DBR2 // bit 2
9244 #define PSMC1DBR3 PSMC1DBRbits.PSMC1DBR3 // bit 3
9245 #define PSMC1DBR4 PSMC1DBRbits.PSMC1DBR4 // bit 4
9246 #define PSMC1DBR5 PSMC1DBRbits.PSMC1DBR5 // bit 5
9247 #define PSMC1DBR6 PSMC1DBRbits.PSMC1DBR6 // bit 6
9248 #define PSMC1DBR7 PSMC1DBRbits.PSMC1DBR7 // bit 7
9250 #define PSMC1DC8 PSMC1DCHbits.PSMC1DC8 // bit 0
9251 #define PSMC1DC9 PSMC1DCHbits.PSMC1DC9 // bit 1
9252 #define PSMC1DC10 PSMC1DCHbits.PSMC1DC10 // bit 2
9253 #define PSMC1DC11 PSMC1DCHbits.PSMC1DC11 // bit 3
9254 #define PSMC1DC12 PSMC1DCHbits.PSMC1DC12 // bit 4
9255 #define PSMC1DC13 PSMC1DCHbits.PSMC1DC13 // bit 5
9256 #define PSMC1DC14 PSMC1DCHbits.PSMC1DC14 // bit 6
9257 #define PSMC1DC15 PSMC1DCHbits.PSMC1DC15 // bit 7
9259 #define PSMC1DC0 PSMC1DCLbits.PSMC1DC0 // bit 0
9260 #define PSMC1DC1 PSMC1DCLbits.PSMC1DC1 // bit 1
9261 #define PSMC1DC2 PSMC1DCLbits.PSMC1DC2 // bit 2
9262 #define PSMC1DC3 PSMC1DCLbits.PSMC1DC3 // bit 3
9263 #define PSMC1DC4 PSMC1DCLbits.PSMC1DC4 // bit 4
9264 #define PSMC1DC5 PSMC1DCLbits.PSMC1DC5 // bit 5
9265 #define PSMC1DC6 PSMC1DCLbits.PSMC1DC6 // bit 6
9266 #define PSMC1DC7 PSMC1DCLbits.PSMC1DC7 // bit 7
9268 #define P1DCST PSMC1DCSbits.P1DCST // bit 0
9269 #define P1DCSC1 PSMC1DCSbits.P1DCSC1 // bit 1
9270 #define P1DCSC2 PSMC1DCSbits.P1DCSC2 // bit 2
9271 #define P1DCSC3 PSMC1DCSbits.P1DCSC3 // bit 3
9272 #define P1DCSC4 PSMC1DCSbits.P1DCSC4 // bit 4
9273 #define P1DCSIN PSMC1DCSbits.P1DCSIN // bit 7
9275 #define P1FEBSC1 PSMC1FEBSbits.P1FEBSC1 // bit 1
9276 #define P1FEBSC2 PSMC1FEBSbits.P1FEBSC2 // bit 2
9277 #define P1FEBSC3 PSMC1FEBSbits.P1FEBSC3 // bit 3
9278 #define P1FEBSC4 PSMC1FEBSbits.P1FEBSC4 // bit 4
9279 #define P1FEBSIN PSMC1FEBSbits.P1FEBSIN // bit 7
9281 #define PSMC1FFA0 PSMC1FFAbits.PSMC1FFA0 // bit 0
9282 #define PSMC1FFA1 PSMC1FFAbits.PSMC1FFA1 // bit 1
9283 #define PSMC1FFA2 PSMC1FFAbits.PSMC1FFA2 // bit 2
9284 #define PSMC1FFA3 PSMC1FFAbits.PSMC1FFA3 // bit 3
9286 #define P1TPRIF PSMC1INTbits.P1TPRIF // bit 0
9287 #define P1TDCIF PSMC1INTbits.P1TDCIF // bit 1
9288 #define P1TPHIF PSMC1INTbits.P1TPHIF // bit 2
9289 #define P1TOVIF PSMC1INTbits.P1TOVIF // bit 3
9290 #define P1TPRIE PSMC1INTbits.P1TPRIE // bit 4
9291 #define P1TDCIE PSMC1INTbits.P1TDCIE // bit 5
9292 #define P1TPHIE PSMC1INTbits.P1TPHIE // bit 6
9293 #define P1TOVIE PSMC1INTbits.P1TOVIE // bit 7
9295 #define P1MSRC0 PSMC1MDLbits.P1MSRC0 // bit 0
9296 #define P1MSRC1 PSMC1MDLbits.P1MSRC1 // bit 1
9297 #define P1MSRC2 PSMC1MDLbits.P1MSRC2 // bit 2
9298 #define P1MSRC3 PSMC1MDLbits.P1MSRC3 // bit 3
9299 #define P1MDLBIT PSMC1MDLbits.P1MDLBIT // bit 5
9300 #define P1MDLPOL PSMC1MDLbits.P1MDLPOL // bit 6
9301 #define P1MDLEN PSMC1MDLbits.P1MDLEN // bit 7
9303 #define P1OEA PSMC1OENbits.P1OEA // bit 0
9304 #define P1OEB PSMC1OENbits.P1OEB // bit 1
9305 #define P1OEC PSMC1OENbits.P1OEC // bit 2
9306 #define P1OED PSMC1OENbits.P1OED // bit 3
9307 #define P1OEE PSMC1OENbits.P1OEE // bit 4
9308 #define P1OEF PSMC1OENbits.P1OEF // bit 5
9310 #define PSMC1PH8 PSMC1PHHbits.PSMC1PH8 // bit 0
9311 #define PSMC1PH9 PSMC1PHHbits.PSMC1PH9 // bit 1
9312 #define PSMC1PH10 PSMC1PHHbits.PSMC1PH10 // bit 2
9313 #define PSMC1PH11 PSMC1PHHbits.PSMC1PH11 // bit 3
9314 #define PSMC1PH12 PSMC1PHHbits.PSMC1PH12 // bit 4
9315 #define PSMC1PH13 PSMC1PHHbits.PSMC1PH13 // bit 5
9316 #define PSMC1PH14 PSMC1PHHbits.PSMC1PH14 // bit 6
9317 #define PSMC1PH15 PSMC1PHHbits.PSMC1PH15 // bit 7
9319 #define PSMC1PH0 PSMC1PHLbits.PSMC1PH0 // bit 0
9320 #define PSMC1PH1 PSMC1PHLbits.PSMC1PH1 // bit 1
9321 #define PSMC1PH2 PSMC1PHLbits.PSMC1PH2 // bit 2
9322 #define PSMC1PH3 PSMC1PHLbits.PSMC1PH3 // bit 3
9323 #define PSMC1PH4 PSMC1PHLbits.PSMC1PH4 // bit 4
9324 #define PSMC1PH5 PSMC1PHLbits.PSMC1PH5 // bit 5
9325 #define PSMC1PH6 PSMC1PHLbits.PSMC1PH6 // bit 6
9326 #define PSMC1PH7 PSMC1PHLbits.PSMC1PH7 // bit 7
9328 #define P1PHST PSMC1PHSbits.P1PHST // bit 0
9329 #define P1PHSC1 PSMC1PHSbits.P1PHSC1 // bit 1
9330 #define P1PHSC2 PSMC1PHSbits.P1PHSC2 // bit 2
9331 #define P1PHSC3 PSMC1PHSbits.P1PHSC3 // bit 3
9332 #define P1PHSC4 PSMC1PHSbits.P1PHSC4 // bit 4
9333 #define P1PHSIN PSMC1PHSbits.P1PHSIN // bit 7
9335 #define P1POLA PSMC1POLbits.P1POLA // bit 0
9336 #define P1POLB PSMC1POLbits.P1POLB // bit 1
9337 #define P1POLC PSMC1POLbits.P1POLC // bit 2
9338 #define P1POLD PSMC1POLbits.P1POLD // bit 3
9339 #define P1POLE PSMC1POLbits.P1POLE // bit 4
9340 #define P1POLF PSMC1POLbits.P1POLF // bit 5
9341 #define P1INPOL PSMC1POLbits.P1INPOL // bit 6
9343 #define PSMC1PR8 PSMC1PRHbits.PSMC1PR8 // bit 0
9344 #define PSMC1PR9 PSMC1PRHbits.PSMC1PR9 // bit 1
9345 #define PSMC1PR10 PSMC1PRHbits.PSMC1PR10 // bit 2
9346 #define PSMC1PR11 PSMC1PRHbits.PSMC1PR11 // bit 3
9347 #define PSMC1PR12 PSMC1PRHbits.PSMC1PR12 // bit 4
9348 #define PSMC1PR13 PSMC1PRHbits.PSMC1PR13 // bit 5
9349 #define PSMC1PR14 PSMC1PRHbits.PSMC1PR14 // bit 6
9350 #define PSMC1PR15 PSMC1PRHbits.PSMC1PR15 // bit 7
9352 #define PSMC1PR0 PSMC1PRLbits.PSMC1PR0 // bit 0
9353 #define PSMC1PR1 PSMC1PRLbits.PSMC1PR1 // bit 1
9354 #define PSMC1PR2 PSMC1PRLbits.PSMC1PR2 // bit 2
9355 #define PSMC1PR3 PSMC1PRLbits.PSMC1PR3 // bit 3
9356 #define PSMC1PR4 PSMC1PRLbits.PSMC1PR4 // bit 4
9357 #define PSMC1PR5 PSMC1PRLbits.PSMC1PR5 // bit 5
9358 #define PSMC1PR6 PSMC1PRLbits.PSMC1PR6 // bit 6
9359 #define PSMC1PR7 PSMC1PRLbits.PSMC1PR7 // bit 7
9361 #define P1PRST PSMC1PRSbits.P1PRST // bit 0
9362 #define P1PRSC1 PSMC1PRSbits.P1PRSC1 // bit 1
9363 #define P1PRSC2 PSMC1PRSbits.P1PRSC2 // bit 2
9364 #define P1PRSC3 PSMC1PRSbits.P1PRSC3 // bit 3
9365 #define P1PRSC4 PSMC1PRSbits.P1PRSC4 // bit 4
9366 #define P1PRSIN PSMC1PRSbits.P1PRSIN // bit 7
9368 #define P1REBSC1 PSMC1REBSbits.P1REBSC1 // bit 1
9369 #define P1REBSC2 PSMC1REBSbits.P1REBSC2 // bit 2
9370 #define P1REBSC3 PSMC1REBSbits.P1REBSC3 // bit 3
9371 #define P1REBSC4 PSMC1REBSbits.P1REBSC4 // bit 4
9372 #define P1REBSIN PSMC1REBSbits.P1REBSIN // bit 7
9374 #define P1STRA PSMC1STR0bits.P1STRA // bit 0
9375 #define P1STRB PSMC1STR0bits.P1STRB // bit 1
9376 #define P1STRC PSMC1STR0bits.P1STRC // bit 2
9377 #define P1STRD PSMC1STR0bits.P1STRD // bit 3
9378 #define P1STRE PSMC1STR0bits.P1STRE // bit 4
9379 #define P1STRF PSMC1STR0bits.P1STRF // bit 5
9381 #define P1HSMEN PSMC1STR1bits.P1HSMEN // bit 0
9382 #define P1LSMEN PSMC1STR1bits.P1LSMEN // bit 1
9383 #define P1SSYNC PSMC1STR1bits.P1SSYNC // bit 7
9385 #define P1SYNC0 PSMC1SYNCbits.P1SYNC0 // bit 0
9386 #define P1SYNC1 PSMC1SYNCbits.P1SYNC1 // bit 1
9387 #define P1SYNC2 PSMC1SYNCbits.P1SYNC2 // bit 2
9388 #define P1DCPOL PSMC1SYNCbits.P1DCPOL // bit 5
9389 #define P1PRPOL PSMC1SYNCbits.P1PRPOL // bit 6
9390 #define P1POFST PSMC1SYNCbits.P1POFST // bit 7
9392 #define PSMC1TMR8 PSMC1TMRHbits.PSMC1TMR8 // bit 0
9393 #define PSMC1TMR9 PSMC1TMRHbits.PSMC1TMR9 // bit 1
9394 #define PSMC1TMR10 PSMC1TMRHbits.PSMC1TMR10 // bit 2
9395 #define PSMC1TMR11 PSMC1TMRHbits.PSMC1TMR11 // bit 3
9396 #define PSMC1TMR12 PSMC1TMRHbits.PSMC1TMR12 // bit 4
9397 #define PSMC1TMR13 PSMC1TMRHbits.PSMC1TMR13 // bit 5
9398 #define PSMC1TMR14 PSMC1TMRHbits.PSMC1TMR14 // bit 6
9399 #define PSMC1TMR15 PSMC1TMRHbits.PSMC1TMR15 // bit 7
9401 #define PSMC1TMR0 PSMC1TMRLbits.PSMC1TMR0 // bit 0
9402 #define PSMC1TMR1 PSMC1TMRLbits.PSMC1TMR1 // bit 1
9403 #define PSMC1TMR2 PSMC1TMRLbits.PSMC1TMR2 // bit 2
9404 #define PSMC1TMR3 PSMC1TMRLbits.PSMC1TMR3 // bit 3
9405 #define PSMC1TMR4 PSMC1TMRLbits.PSMC1TMR4 // bit 4
9406 #define PSMC1TMR5 PSMC1TMRLbits.PSMC1TMR5 // bit 5
9407 #define PSMC1TMR6 PSMC1TMRLbits.PSMC1TMR6 // bit 6
9408 #define PSMC1TMR7 PSMC1TMRLbits.PSMC1TMR7 // bit 7
9410 #define P2ASDOV PSMC2ASDCbits.P2ASDOV // bit 0
9411 #define P2ARSEN PSMC2ASDCbits.P2ARSEN // bit 5
9412 #define P2ASDEN PSMC2ASDCbits.P2ASDEN // bit 6
9413 #define P2ASE PSMC2ASDCbits.P2ASE // bit 7
9415 #define P2ASDLA PSMC2ASDLbits.P2ASDLA // bit 0
9416 #define P2ASDLB PSMC2ASDLbits.P2ASDLB // bit 1
9418 #define P2ASDSC1 PSMC2ASDSbits.P2ASDSC1 // bit 1
9419 #define P2ASDSC2 PSMC2ASDSbits.P2ASDSC2 // bit 2
9420 #define P2ASDSC3 PSMC2ASDSbits.P2ASDSC3 // bit 3
9421 #define P2ASDSC4 PSMC2ASDSbits.P2ASDSC4 // bit 4
9422 #define P2ASDSIN PSMC2ASDSbits.P2ASDSIN // bit 7
9424 #define PSMC2BLKF0 PSMC2BLKFbits.PSMC2BLKF0 // bit 0
9425 #define PSMC2BLKF1 PSMC2BLKFbits.PSMC2BLKF1 // bit 1
9426 #define PSMC2BLKF2 PSMC2BLKFbits.PSMC2BLKF2 // bit 2
9427 #define PSMC2BLKF3 PSMC2BLKFbits.PSMC2BLKF3 // bit 3
9428 #define PSMC2BLKF4 PSMC2BLKFbits.PSMC2BLKF4 // bit 4
9429 #define PSMC2BLKF5 PSMC2BLKFbits.PSMC2BLKF5 // bit 5
9430 #define PSMC2BLKF6 PSMC2BLKFbits.PSMC2BLKF6 // bit 6
9431 #define PSMC2BLKF7 PSMC2BLKFbits.PSMC2BLKF7 // bit 7
9433 #define PSMC2BLKR0 PSMC2BLKRbits.PSMC2BLKR0 // bit 0
9434 #define PSMC2BLKR1 PSMC2BLKRbits.PSMC2BLKR1 // bit 1
9435 #define PSMC2BLKR2 PSMC2BLKRbits.PSMC2BLKR2 // bit 2
9436 #define PSMC2BLKR3 PSMC2BLKRbits.PSMC2BLKR3 // bit 3
9437 #define PSMC2BLKR4 PSMC2BLKRbits.PSMC2BLKR4 // bit 4
9438 #define PSMC2BLKR5 PSMC2BLKRbits.PSMC2BLKR5 // bit 5
9439 #define PSMC2BLKR6 PSMC2BLKRbits.PSMC2BLKR6 // bit 6
9440 #define PSMC2BLKR7 PSMC2BLKRbits.PSMC2BLKR7 // bit 7
9442 #define P2REBM0 PSMC2BLNKbits.P2REBM0 // bit 0
9443 #define P2REBM1 PSMC2BLNKbits.P2REBM1 // bit 1
9444 #define P2FEBM0 PSMC2BLNKbits.P2FEBM0 // bit 4
9445 #define P2FEBM1 PSMC2BLNKbits.P2FEBM1 // bit 5
9447 #define P2CSRC0 PSMC2CLKbits.P2CSRC0 // bit 0
9448 #define P2CSRC1 PSMC2CLKbits.P2CSRC1 // bit 1
9449 #define P2CPRE0 PSMC2CLKbits.P2CPRE0 // bit 4
9450 #define P2CPRE1 PSMC2CLKbits.P2CPRE1 // bit 5
9452 #define P2MODE0 PSMC2CONbits.P2MODE0 // bit 0
9453 #define P2MODE1 PSMC2CONbits.P2MODE1 // bit 1
9454 #define P2MODE2 PSMC2CONbits.P2MODE2 // bit 2
9455 #define P2MODE3 PSMC2CONbits.P2MODE3 // bit 3
9456 #define P2DBRE PSMC2CONbits.P2DBRE // bit 4
9457 #define P2DBFE PSMC2CONbits.P2DBFE // bit 5
9458 #define PSMC2LD PSMC2CONbits.PSMC2LD // bit 6
9459 #define PSMC2EN PSMC2CONbits.PSMC2EN // bit 7
9461 #define PSMC2DBF0 PSMC2DBFbits.PSMC2DBF0 // bit 0
9462 #define PSMC2DBF1 PSMC2DBFbits.PSMC2DBF1 // bit 1
9463 #define PSMC2DBF2 PSMC2DBFbits.PSMC2DBF2 // bit 2
9464 #define PSMC2DBF3 PSMC2DBFbits.PSMC2DBF3 // bit 3
9465 #define PSMC2DBF4 PSMC2DBFbits.PSMC2DBF4 // bit 4
9466 #define PSMC2DBF5 PSMC2DBFbits.PSMC2DBF5 // bit 5
9467 #define PSMC2DBF6 PSMC2DBFbits.PSMC2DBF6 // bit 6
9468 #define PSMC2DBF7 PSMC2DBFbits.PSMC2DBF7 // bit 7
9470 #define PSMC2DBR0 PSMC2DBRbits.PSMC2DBR0 // bit 0
9471 #define PSMC2DBR1 PSMC2DBRbits.PSMC2DBR1 // bit 1
9472 #define PSMC2DBR2 PSMC2DBRbits.PSMC2DBR2 // bit 2
9473 #define PSMC2DBR3 PSMC2DBRbits.PSMC2DBR3 // bit 3
9474 #define PSMC2DBR4 PSMC2DBRbits.PSMC2DBR4 // bit 4
9475 #define PSMC2DBR5 PSMC2DBRbits.PSMC2DBR5 // bit 5
9476 #define PSMC2DBR6 PSMC2DBRbits.PSMC2DBR6 // bit 6
9477 #define PSMC2DBR7 PSMC2DBRbits.PSMC2DBR7 // bit 7
9479 #define PSMC2DC8 PSMC2DCHbits.PSMC2DC8 // bit 0
9480 #define PSMC2DC9 PSMC2DCHbits.PSMC2DC9 // bit 1
9481 #define PSMC2DC10 PSMC2DCHbits.PSMC2DC10 // bit 2
9482 #define PSMC2DC11 PSMC2DCHbits.PSMC2DC11 // bit 3
9483 #define PSMC2DC12 PSMC2DCHbits.PSMC2DC12 // bit 4
9484 #define PSMC2DC13 PSMC2DCHbits.PSMC2DC13 // bit 5
9485 #define PSMC2DC14 PSMC2DCHbits.PSMC2DC14 // bit 6
9486 #define PSMC2DC15 PSMC2DCHbits.PSMC2DC15 // bit 7
9488 #define PSMC2DC0 PSMC2DCLbits.PSMC2DC0 // bit 0
9489 #define PSMC2DC1 PSMC2DCLbits.PSMC2DC1 // bit 1
9490 #define PSMC2DC2 PSMC2DCLbits.PSMC2DC2 // bit 2
9491 #define PSMC2DC3 PSMC2DCLbits.PSMC2DC3 // bit 3
9492 #define PSMC2DC4 PSMC2DCLbits.PSMC2DC4 // bit 4
9493 #define PSMC2DC5 PSMC2DCLbits.PSMC2DC5 // bit 5
9494 #define PSMC2DC6 PSMC2DCLbits.PSMC2DC6 // bit 6
9495 #define PSMC2DC7 PSMC2DCLbits.PSMC2DC7 // bit 7
9497 #define P2DCST PSMC2DCSbits.P2DCST // bit 0
9498 #define P2DCSC1 PSMC2DCSbits.P2DCSC1 // bit 1
9499 #define P2DCSC2 PSMC2DCSbits.P2DCSC2 // bit 2
9500 #define P2DCSC3 PSMC2DCSbits.P2DCSC3 // bit 3
9501 #define P2DCSC4 PSMC2DCSbits.P2DCSC4 // bit 4
9502 #define P2DCSIN PSMC2DCSbits.P2DCSIN // bit 7
9504 #define P2FEBSC1 PSMC2FEBSbits.P2FEBSC1 // bit 1
9505 #define P2FEBSC2 PSMC2FEBSbits.P2FEBSC2 // bit 2
9506 #define P2FEBSC3 PSMC2FEBSbits.P2FEBSC3 // bit 3
9507 #define P2FEBSC4 PSMC2FEBSbits.P2FEBSC4 // bit 4
9508 #define P2FEBSIN PSMC2FEBSbits.P2FEBSIN // bit 7
9510 #define PSMC2FFA0 PSMC2FFAbits.PSMC2FFA0 // bit 0
9511 #define PSMC2FFA1 PSMC2FFAbits.PSMC2FFA1 // bit 1
9512 #define PSMC2FFA2 PSMC2FFAbits.PSMC2FFA2 // bit 2
9513 #define PSMC2FFA3 PSMC2FFAbits.PSMC2FFA3 // bit 3
9515 #define P2TPRIF PSMC2INTbits.P2TPRIF // bit 0
9516 #define P2TDCIF PSMC2INTbits.P2TDCIF // bit 1
9517 #define P2TPHIF PSMC2INTbits.P2TPHIF // bit 2
9518 #define P2TOVIF PSMC2INTbits.P2TOVIF // bit 3
9519 #define P2TPRIE PSMC2INTbits.P2TPRIE // bit 4
9520 #define P2TDCIE PSMC2INTbits.P2TDCIE // bit 5
9521 #define P2TPHIE PSMC2INTbits.P2TPHIE // bit 6
9522 #define P2TOVIE PSMC2INTbits.P2TOVIE // bit 7
9524 #define P2MSRC0 PSMC2MDLbits.P2MSRC0 // bit 0
9525 #define P2MSRC1 PSMC2MDLbits.P2MSRC1 // bit 1
9526 #define P2MSRC2 PSMC2MDLbits.P2MSRC2 // bit 2
9527 #define P2MSRC3 PSMC2MDLbits.P2MSRC3 // bit 3
9528 #define P2MDLBIT PSMC2MDLbits.P2MDLBIT // bit 5
9529 #define P2MDLPOL PSMC2MDLbits.P2MDLPOL // bit 6
9530 #define P2MDLEN PSMC2MDLbits.P2MDLEN // bit 7
9532 #define P2OEA PSMC2OENbits.P2OEA // bit 0
9533 #define P2OEB PSMC2OENbits.P2OEB // bit 1
9535 #define PSMC2PH8 PSMC2PHHbits.PSMC2PH8 // bit 0
9536 #define PSMC2PH9 PSMC2PHHbits.PSMC2PH9 // bit 1
9537 #define PSMC2PH10 PSMC2PHHbits.PSMC2PH10 // bit 2
9538 #define PSMC2PH11 PSMC2PHHbits.PSMC2PH11 // bit 3
9539 #define PSMC2PH12 PSMC2PHHbits.PSMC2PH12 // bit 4
9540 #define PSMC2PH13 PSMC2PHHbits.PSMC2PH13 // bit 5
9541 #define PSMC2PH14 PSMC2PHHbits.PSMC2PH14 // bit 6
9542 #define PSMC2PH15 PSMC2PHHbits.PSMC2PH15 // bit 7
9544 #define PSMC2PH0 PSMC2PHLbits.PSMC2PH0 // bit 0
9545 #define PSMC2PH1 PSMC2PHLbits.PSMC2PH1 // bit 1
9546 #define PSMC2PH2 PSMC2PHLbits.PSMC2PH2 // bit 2
9547 #define PSMC2PH3 PSMC2PHLbits.PSMC2PH3 // bit 3
9548 #define PSMC2PH4 PSMC2PHLbits.PSMC2PH4 // bit 4
9549 #define PSMC2PH5 PSMC2PHLbits.PSMC2PH5 // bit 5
9550 #define PSMC2PH6 PSMC2PHLbits.PSMC2PH6 // bit 6
9551 #define PSMC2PH7 PSMC2PHLbits.PSMC2PH7 // bit 7
9553 #define P2PHST PSMC2PHSbits.P2PHST // bit 0
9554 #define P2PHSC1 PSMC2PHSbits.P2PHSC1 // bit 1
9555 #define P2PHSC2 PSMC2PHSbits.P2PHSC2 // bit 2
9556 #define P2PHSC3 PSMC2PHSbits.P2PHSC3 // bit 3
9557 #define P2PHSC4 PSMC2PHSbits.P2PHSC4 // bit 4
9558 #define P2PHSIN PSMC2PHSbits.P2PHSIN // bit 7
9560 #define P2POLA PSMC2POLbits.P2POLA // bit 0
9561 #define P2POLB PSMC2POLbits.P2POLB // bit 1
9562 #define P2INPOL PSMC2POLbits.P2INPOL // bit 6
9564 #define PSMC2PR8 PSMC2PRHbits.PSMC2PR8 // bit 0
9565 #define PSMC2PR9 PSMC2PRHbits.PSMC2PR9 // bit 1
9566 #define PSMC2PR10 PSMC2PRHbits.PSMC2PR10 // bit 2
9567 #define PSMC2PR11 PSMC2PRHbits.PSMC2PR11 // bit 3
9568 #define PSMC2PR12 PSMC2PRHbits.PSMC2PR12 // bit 4
9569 #define PSMC2PR13 PSMC2PRHbits.PSMC2PR13 // bit 5
9570 #define PSMC2PR14 PSMC2PRHbits.PSMC2PR14 // bit 6
9571 #define PSMC2PR15 PSMC2PRHbits.PSMC2PR15 // bit 7
9573 #define PSMC2PR0 PSMC2PRLbits.PSMC2PR0 // bit 0
9574 #define PSMC2PR1 PSMC2PRLbits.PSMC2PR1 // bit 1
9575 #define PSMC2PR2 PSMC2PRLbits.PSMC2PR2 // bit 2
9576 #define PSMC2PR3 PSMC2PRLbits.PSMC2PR3 // bit 3
9577 #define PSMC2PR4 PSMC2PRLbits.PSMC2PR4 // bit 4
9578 #define PSMC2PR5 PSMC2PRLbits.PSMC2PR5 // bit 5
9579 #define PSMC2PR6 PSMC2PRLbits.PSMC2PR6 // bit 6
9580 #define PSMC2PR7 PSMC2PRLbits.PSMC2PR7 // bit 7
9582 #define P2PRST PSMC2PRSbits.P2PRST // bit 0
9583 #define P2PRSC1 PSMC2PRSbits.P2PRSC1 // bit 1
9584 #define P2PRSC2 PSMC2PRSbits.P2PRSC2 // bit 2
9585 #define P2PRSC3 PSMC2PRSbits.P2PRSC3 // bit 3
9586 #define P2PRSC4 PSMC2PRSbits.P2PRSC4 // bit 4
9587 #define P2PRSIN PSMC2PRSbits.P2PRSIN // bit 7
9589 #define P2REBSC1 PSMC2REBSbits.P2REBSC1 // bit 1
9590 #define P2REBSC2 PSMC2REBSbits.P2REBSC2 // bit 2
9591 #define P2REBSC3 PSMC2REBSbits.P2REBSC3 // bit 3
9592 #define P2REBSC4 PSMC2REBSbits.P2REBSC4 // bit 4
9593 #define P2REBSIN PSMC2REBSbits.P2REBSIN // bit 7
9595 #define P2STRA PSMC2STR0bits.P2STRA // bit 0
9596 #define P2STRB PSMC2STR0bits.P2STRB // bit 1
9598 #define P2HSMEN PSMC2STR1bits.P2HSMEN // bit 0
9599 #define P2LSMEN PSMC2STR1bits.P2LSMEN // bit 1
9600 #define P2SSYNC PSMC2STR1bits.P2SSYNC // bit 7
9602 #define P2SYNC0 PSMC2SYNCbits.P2SYNC0 // bit 0
9603 #define P2SYNC1 PSMC2SYNCbits.P2SYNC1 // bit 1
9604 #define P2SYNC2 PSMC2SYNCbits.P2SYNC2 // bit 2
9605 #define P2DCPOL PSMC2SYNCbits.P2DCPOL // bit 5
9606 #define P2PRPOL PSMC2SYNCbits.P2PRPOL // bit 6
9607 #define P2POFST PSMC2SYNCbits.P2POFST // bit 7
9609 #define PSMC2TMR8 PSMC2TMRHbits.PSMC2TMR8 // bit 0
9610 #define PSMC2TMR9 PSMC2TMRHbits.PSMC2TMR9 // bit 1
9611 #define PSMC2TMR10 PSMC2TMRHbits.PSMC2TMR10 // bit 2
9612 #define PSMC2TMR11 PSMC2TMRHbits.PSMC2TMR11 // bit 3
9613 #define PSMC2TMR12 PSMC2TMRHbits.PSMC2TMR12 // bit 4
9614 #define PSMC2TMR13 PSMC2TMRHbits.PSMC2TMR13 // bit 5
9615 #define PSMC2TMR14 PSMC2TMRHbits.PSMC2TMR14 // bit 6
9616 #define PSMC2TMR15 PSMC2TMRHbits.PSMC2TMR15 // bit 7
9618 #define PSMC2TMR0 PSMC2TMRLbits.PSMC2TMR0 // bit 0
9619 #define PSMC2TMR1 PSMC2TMRLbits.PSMC2TMR1 // bit 1
9620 #define PSMC2TMR2 PSMC2TMRLbits.PSMC2TMR2 // bit 2
9621 #define PSMC2TMR3 PSMC2TMRLbits.PSMC2TMR3 // bit 3
9622 #define PSMC2TMR4 PSMC2TMRLbits.PSMC2TMR4 // bit 4
9623 #define PSMC2TMR5 PSMC2TMRLbits.PSMC2TMR5 // bit 5
9624 #define PSMC2TMR6 PSMC2TMRLbits.PSMC2TMR6 // bit 6
9625 #define PSMC2TMR7 PSMC2TMRLbits.PSMC2TMR7 // bit 7
9627 #define P3ASDOV PSMC3ASDCbits.P3ASDOV // bit 0
9628 #define P3ARSEN PSMC3ASDCbits.P3ARSEN // bit 5
9629 #define P3ASDEN PSMC3ASDCbits.P3ASDEN // bit 6
9630 #define P3ASE PSMC3ASDCbits.P3ASE // bit 7
9632 #define P3ASDLA PSMC3ASDLbits.P3ASDLA // bit 0
9633 #define P3ASDLB PSMC3ASDLbits.P3ASDLB // bit 1
9635 #define P3ASDSC1 PSMC3ASDSbits.P3ASDSC1 // bit 1
9636 #define P3ASDSC2 PSMC3ASDSbits.P3ASDSC2 // bit 2
9637 #define P3ASDSC3 PSMC3ASDSbits.P3ASDSC3 // bit 3
9638 #define P3ASDSC4 PSMC3ASDSbits.P3ASDSC4 // bit 4
9639 #define P3ASDSIN PSMC3ASDSbits.P3ASDSIN // bit 7
9641 #define PSMC3BLKF0 PSMC3BLKFbits.PSMC3BLKF0 // bit 0
9642 #define PSMC3BLKF1 PSMC3BLKFbits.PSMC3BLKF1 // bit 1
9643 #define PSMC3BLKF2 PSMC3BLKFbits.PSMC3BLKF2 // bit 2
9644 #define PSMC3BLKF3 PSMC3BLKFbits.PSMC3BLKF3 // bit 3
9645 #define PSMC3BLKF4 PSMC3BLKFbits.PSMC3BLKF4 // bit 4
9646 #define PSMC3BLKF5 PSMC3BLKFbits.PSMC3BLKF5 // bit 5
9647 #define PSMC3BLKF6 PSMC3BLKFbits.PSMC3BLKF6 // bit 6
9648 #define PSMC3BLKF7 PSMC3BLKFbits.PSMC3BLKF7 // bit 7
9650 #define PSMC3BLKR0 PSMC3BLKRbits.PSMC3BLKR0 // bit 0
9651 #define PSMC3BLKR1 PSMC3BLKRbits.PSMC3BLKR1 // bit 1
9652 #define PSMC3BLKR2 PSMC3BLKRbits.PSMC3BLKR2 // bit 2
9653 #define PSMC3BLKR3 PSMC3BLKRbits.PSMC3BLKR3 // bit 3
9654 #define PSMC3BLKR4 PSMC3BLKRbits.PSMC3BLKR4 // bit 4
9655 #define PSMC3BLKR5 PSMC3BLKRbits.PSMC3BLKR5 // bit 5
9656 #define PSMC3BLKR6 PSMC3BLKRbits.PSMC3BLKR6 // bit 6
9657 #define PSMC3BLKR7 PSMC3BLKRbits.PSMC3BLKR7 // bit 7
9659 #define P3REBM0 PSMC3BLNKbits.P3REBM0 // bit 0
9660 #define P3REBM1 PSMC3BLNKbits.P3REBM1 // bit 1
9661 #define P3FEBM0 PSMC3BLNKbits.P3FEBM0 // bit 4
9662 #define P3FEBM1 PSMC3BLNKbits.P3FEBM1 // bit 5
9664 #define P3CSRC0 PSMC3CLKbits.P3CSRC0 // bit 0
9665 #define P3CSRC1 PSMC3CLKbits.P3CSRC1 // bit 1
9666 #define P3CPRE0 PSMC3CLKbits.P3CPRE0 // bit 4
9667 #define P3CPRE1 PSMC3CLKbits.P3CPRE1 // bit 5
9669 #define P3MODE0 PSMC3CONbits.P3MODE0 // bit 0
9670 #define P3MODE1 PSMC3CONbits.P3MODE1 // bit 1
9671 #define P3MODE2 PSMC3CONbits.P3MODE2 // bit 2
9672 #define P3MODE3 PSMC3CONbits.P3MODE3 // bit 3
9673 #define P3DBRE PSMC3CONbits.P3DBRE // bit 4
9674 #define P3DBFE PSMC3CONbits.P3DBFE // bit 5
9675 #define PSMC3LD PSMC3CONbits.PSMC3LD // bit 6
9676 #define PSMC3EN PSMC3CONbits.PSMC3EN // bit 7
9678 #define PSMC3DBF0 PSMC3DBFbits.PSMC3DBF0 // bit 0
9679 #define PSMC3DBF1 PSMC3DBFbits.PSMC3DBF1 // bit 1
9680 #define PSMC3DBF2 PSMC3DBFbits.PSMC3DBF2 // bit 2
9681 #define PSMC3DBF3 PSMC3DBFbits.PSMC3DBF3 // bit 3
9682 #define PSMC3DBF4 PSMC3DBFbits.PSMC3DBF4 // bit 4
9683 #define PSMC3DBF5 PSMC3DBFbits.PSMC3DBF5 // bit 5
9684 #define PSMC3DBF6 PSMC3DBFbits.PSMC3DBF6 // bit 6
9685 #define PSMC3DBF7 PSMC3DBFbits.PSMC3DBF7 // bit 7
9687 #define PSMC3DBR0 PSMC3DBRbits.PSMC3DBR0 // bit 0
9688 #define PSMC3DBR1 PSMC3DBRbits.PSMC3DBR1 // bit 1
9689 #define PSMC3DBR2 PSMC3DBRbits.PSMC3DBR2 // bit 2
9690 #define PSMC3DBR3 PSMC3DBRbits.PSMC3DBR3 // bit 3
9691 #define PSMC3DBR4 PSMC3DBRbits.PSMC3DBR4 // bit 4
9692 #define PSMC3DBR5 PSMC3DBRbits.PSMC3DBR5 // bit 5
9693 #define PSMC3DBR6 PSMC3DBRbits.PSMC3DBR6 // bit 6
9694 #define PSMC3DBR7 PSMC3DBRbits.PSMC3DBR7 // bit 7
9696 #define PSMC3DC8 PSMC3DCHbits.PSMC3DC8 // bit 0
9697 #define PSMC3DC9 PSMC3DCHbits.PSMC3DC9 // bit 1
9698 #define PSMC3DC10 PSMC3DCHbits.PSMC3DC10 // bit 2
9699 #define PSMC3DC11 PSMC3DCHbits.PSMC3DC11 // bit 3
9700 #define PSMC3DC12 PSMC3DCHbits.PSMC3DC12 // bit 4
9701 #define PSMC3DC13 PSMC3DCHbits.PSMC3DC13 // bit 5
9702 #define PSMC3DC14 PSMC3DCHbits.PSMC3DC14 // bit 6
9703 #define PSMC3DC15 PSMC3DCHbits.PSMC3DC15 // bit 7
9705 #define PSMC3DC0 PSMC3DCLbits.PSMC3DC0 // bit 0
9706 #define PSMC3DC1 PSMC3DCLbits.PSMC3DC1 // bit 1
9707 #define PSMC3DC2 PSMC3DCLbits.PSMC3DC2 // bit 2
9708 #define PSMC3DC3 PSMC3DCLbits.PSMC3DC3 // bit 3
9709 #define PSMC3DC4 PSMC3DCLbits.PSMC3DC4 // bit 4
9710 #define PSMC3DC5 PSMC3DCLbits.PSMC3DC5 // bit 5
9711 #define PSMC3DC6 PSMC3DCLbits.PSMC3DC6 // bit 6
9712 #define PSMC3DC7 PSMC3DCLbits.PSMC3DC7 // bit 7
9714 #define P3DCST PSMC3DCSbits.P3DCST // bit 0
9715 #define P3DCSC1 PSMC3DCSbits.P3DCSC1 // bit 1
9716 #define P3DCSC2 PSMC3DCSbits.P3DCSC2 // bit 2
9717 #define P3DCSC3 PSMC3DCSbits.P3DCSC3 // bit 3
9718 #define P3DCSC4 PSMC3DCSbits.P3DCSC4 // bit 4
9719 #define P3DCSIN PSMC3DCSbits.P3DCSIN // bit 7
9721 #define P3FEBSC1 PSMC3FEBSbits.P3FEBSC1 // bit 1
9722 #define P3FEBSC2 PSMC3FEBSbits.P3FEBSC2 // bit 2
9723 #define P3FEBSC3 PSMC3FEBSbits.P3FEBSC3 // bit 3
9724 #define P3FEBSC4 PSMC3FEBSbits.P3FEBSC4 // bit 4
9725 #define P3FEBSIN PSMC3FEBSbits.P3FEBSIN // bit 7
9727 #define PSMC3FFA0 PSMC3FFAbits.PSMC3FFA0 // bit 0
9728 #define PSMC3FFA1 PSMC3FFAbits.PSMC3FFA1 // bit 1
9729 #define PSMC3FFA2 PSMC3FFAbits.PSMC3FFA2 // bit 2
9730 #define PSMC3FFA3 PSMC3FFAbits.PSMC3FFA3 // bit 3
9732 #define P3TPRIF PSMC3INTbits.P3TPRIF // bit 0
9733 #define P3TDCIF PSMC3INTbits.P3TDCIF // bit 1
9734 #define P3TPHIF PSMC3INTbits.P3TPHIF // bit 2
9735 #define P3TOVIF PSMC3INTbits.P3TOVIF // bit 3
9736 #define P3TPRIE PSMC3INTbits.P3TPRIE // bit 4
9737 #define P3TDCIE PSMC3INTbits.P3TDCIE // bit 5
9738 #define P3TPHIE PSMC3INTbits.P3TPHIE // bit 6
9739 #define P3TOVIE PSMC3INTbits.P3TOVIE // bit 7
9741 #define P3MSRC0 PSMC3MDLbits.P3MSRC0 // bit 0
9742 #define P3MSRC1 PSMC3MDLbits.P3MSRC1 // bit 1
9743 #define P3MSRC2 PSMC3MDLbits.P3MSRC2 // bit 2
9744 #define P3MSRC3 PSMC3MDLbits.P3MSRC3 // bit 3
9745 #define P3MDLBIT PSMC3MDLbits.P3MDLBIT // bit 5
9746 #define P3MDLPOL PSMC3MDLbits.P3MDLPOL // bit 6
9747 #define P3MDLEN PSMC3MDLbits.P3MDLEN // bit 7
9749 #define P3OEA PSMC3OENbits.P3OEA // bit 0
9750 #define P3OEB PSMC3OENbits.P3OEB // bit 1
9752 #define PSMC3PH8 PSMC3PHHbits.PSMC3PH8 // bit 0
9753 #define PSMC3PH9 PSMC3PHHbits.PSMC3PH9 // bit 1
9754 #define PSMC3PH10 PSMC3PHHbits.PSMC3PH10 // bit 2
9755 #define PSMC3PH11 PSMC3PHHbits.PSMC3PH11 // bit 3
9756 #define PSMC3PH12 PSMC3PHHbits.PSMC3PH12 // bit 4
9757 #define PSMC3PH13 PSMC3PHHbits.PSMC3PH13 // bit 5
9758 #define PSMC3PH14 PSMC3PHHbits.PSMC3PH14 // bit 6
9759 #define PSMC3PH15 PSMC3PHHbits.PSMC3PH15 // bit 7
9761 #define PSMC3PH0 PSMC3PHLbits.PSMC3PH0 // bit 0
9762 #define PSMC3PH1 PSMC3PHLbits.PSMC3PH1 // bit 1
9763 #define PSMC3PH2 PSMC3PHLbits.PSMC3PH2 // bit 2
9764 #define PSMC3PH3 PSMC3PHLbits.PSMC3PH3 // bit 3
9765 #define PSMC3PH4 PSMC3PHLbits.PSMC3PH4 // bit 4
9766 #define PSMC3PH5 PSMC3PHLbits.PSMC3PH5 // bit 5
9767 #define PSMC3PH6 PSMC3PHLbits.PSMC3PH6 // bit 6
9768 #define PSMC3PH7 PSMC3PHLbits.PSMC3PH7 // bit 7
9770 #define P3PHST PSMC3PHSbits.P3PHST // bit 0
9771 #define P3PHSC1 PSMC3PHSbits.P3PHSC1 // bit 1
9772 #define P3PHSC2 PSMC3PHSbits.P3PHSC2 // bit 2
9773 #define P3PHSC3 PSMC3PHSbits.P3PHSC3 // bit 3
9774 #define P3PHSC4 PSMC3PHSbits.P3PHSC4 // bit 4
9775 #define P3PHSIN PSMC3PHSbits.P3PHSIN // bit 7
9777 #define P3POLA PSMC3POLbits.P3POLA // bit 0
9778 #define P3POLB PSMC3POLbits.P3POLB // bit 1
9779 #define P3INPOL PSMC3POLbits.P3INPOL // bit 6
9781 #define PSMC3PR8 PSMC3PRHbits.PSMC3PR8 // bit 0
9782 #define PSMC3PR9 PSMC3PRHbits.PSMC3PR9 // bit 1
9783 #define PSMC3PR10 PSMC3PRHbits.PSMC3PR10 // bit 2
9784 #define PSMC3PR11 PSMC3PRHbits.PSMC3PR11 // bit 3
9785 #define PSMC3PR12 PSMC3PRHbits.PSMC3PR12 // bit 4
9786 #define PSMC3PR13 PSMC3PRHbits.PSMC3PR13 // bit 5
9787 #define PSMC3PR14 PSMC3PRHbits.PSMC3PR14 // bit 6
9788 #define PSMC3PR15 PSMC3PRHbits.PSMC3PR15 // bit 7
9790 #define PSMC3PR0 PSMC3PRLbits.PSMC3PR0 // bit 0
9791 #define PSMC3PR1 PSMC3PRLbits.PSMC3PR1 // bit 1
9792 #define PSMC3PR2 PSMC3PRLbits.PSMC3PR2 // bit 2
9793 #define PSMC3PR3 PSMC3PRLbits.PSMC3PR3 // bit 3
9794 #define PSMC3PR4 PSMC3PRLbits.PSMC3PR4 // bit 4
9795 #define PSMC3PR5 PSMC3PRLbits.PSMC3PR5 // bit 5
9796 #define PSMC3PR6 PSMC3PRLbits.PSMC3PR6 // bit 6
9797 #define PSMC3PR7 PSMC3PRLbits.PSMC3PR7 // bit 7
9799 #define P3PRST PSMC3PRSbits.P3PRST // bit 0
9800 #define P3PRSC1 PSMC3PRSbits.P3PRSC1 // bit 1
9801 #define P3PRSC2 PSMC3PRSbits.P3PRSC2 // bit 2
9802 #define P3PRSC3 PSMC3PRSbits.P3PRSC3 // bit 3
9803 #define P3PRSC4 PSMC3PRSbits.P3PRSC4 // bit 4
9804 #define P3PRSIN PSMC3PRSbits.P3PRSIN // bit 7
9806 #define P3REBSC1 PSMC3REBSbits.P3REBSC1 // bit 1
9807 #define P3REBSC2 PSMC3REBSbits.P3REBSC2 // bit 2
9808 #define P3REBSC3 PSMC3REBSbits.P3REBSC3 // bit 3
9809 #define P3REBSC4 PSMC3REBSbits.P3REBSC4 // bit 4
9810 #define P3REBSIN PSMC3REBSbits.P3REBSIN // bit 7
9812 #define P3STRA PSMC3STR0bits.P3STRA // bit 0
9813 #define P3STRB PSMC3STR0bits.P3STRB // bit 1
9815 #define P3HSMEN PSMC3STR1bits.P3HSMEN // bit 0
9816 #define P3LSMEN PSMC3STR1bits.P3LSMEN // bit 1
9817 #define P3SSYNC PSMC3STR1bits.P3SSYNC // bit 7
9819 #define P3SYNC0 PSMC3SYNCbits.P3SYNC0 // bit 0
9820 #define P3SYNC1 PSMC3SYNCbits.P3SYNC1 // bit 1
9821 #define P3SYNC2 PSMC3SYNCbits.P3SYNC2 // bit 2
9822 #define P3DCPOL PSMC3SYNCbits.P3DCPOL // bit 5
9823 #define P3PRPOL PSMC3SYNCbits.P3PRPOL // bit 6
9824 #define P3POFST PSMC3SYNCbits.P3POFST // bit 7
9826 #define PSMC3TMR8 PSMC3TMRHbits.PSMC3TMR8 // bit 0
9827 #define PSMC3TMR9 PSMC3TMRHbits.PSMC3TMR9 // bit 1
9828 #define PSMC3TMR10 PSMC3TMRHbits.PSMC3TMR10 // bit 2
9829 #define PSMC3TMR11 PSMC3TMRHbits.PSMC3TMR11 // bit 3
9830 #define PSMC3TMR12 PSMC3TMRHbits.PSMC3TMR12 // bit 4
9831 #define PSMC3TMR13 PSMC3TMRHbits.PSMC3TMR13 // bit 5
9832 #define PSMC3TMR14 PSMC3TMRHbits.PSMC3TMR14 // bit 6
9833 #define PSMC3TMR15 PSMC3TMRHbits.PSMC3TMR15 // bit 7
9835 #define PSMC3TMR0 PSMC3TMRLbits.PSMC3TMR0 // bit 0
9836 #define PSMC3TMR1 PSMC3TMRLbits.PSMC3TMR1 // bit 1
9837 #define PSMC3TMR2 PSMC3TMRLbits.PSMC3TMR2 // bit 2
9838 #define PSMC3TMR3 PSMC3TMRLbits.PSMC3TMR3 // bit 3
9839 #define PSMC3TMR4 PSMC3TMRLbits.PSMC3TMR4 // bit 4
9840 #define PSMC3TMR5 PSMC3TMRLbits.PSMC3TMR5 // bit 5
9841 #define PSMC3TMR6 PSMC3TMRLbits.PSMC3TMR6 // bit 6
9842 #define PSMC3TMR7 PSMC3TMRLbits.PSMC3TMR7 // bit 7
9844 #define P4ASDOV PSMC4ASDCbits.P4ASDOV // bit 0
9845 #define P4ARSEN PSMC4ASDCbits.P4ARSEN // bit 5
9846 #define P4ASDEN PSMC4ASDCbits.P4ASDEN // bit 6
9847 #define P4ASE PSMC4ASDCbits.P4ASE // bit 7
9849 #define P4ASDLA PSMC4ASDLbits.P4ASDLA // bit 0
9850 #define P4ASDLB PSMC4ASDLbits.P4ASDLB // bit 1
9852 #define P4ASDSC1 PSMC4ASDSbits.P4ASDSC1 // bit 1
9853 #define P4ASDSC2 PSMC4ASDSbits.P4ASDSC2 // bit 2
9854 #define P4ASDSC3 PSMC4ASDSbits.P4ASDSC3 // bit 3
9855 #define P4ASDSC4 PSMC4ASDSbits.P4ASDSC4 // bit 4
9856 #define P4ASDSIN PSMC4ASDSbits.P4ASDSIN // bit 7
9858 #define PSMC4BLKF0 PSMC4BLKFbits.PSMC4BLKF0 // bit 0
9859 #define PSMC4BLKF1 PSMC4BLKFbits.PSMC4BLKF1 // bit 1
9860 #define PSMC4BLKF2 PSMC4BLKFbits.PSMC4BLKF2 // bit 2
9861 #define PSMC4BLKF3 PSMC4BLKFbits.PSMC4BLKF3 // bit 3
9862 #define PSMC4BLKF4 PSMC4BLKFbits.PSMC4BLKF4 // bit 4
9863 #define PSMC4BLKF5 PSMC4BLKFbits.PSMC4BLKF5 // bit 5
9864 #define PSMC4BLKF6 PSMC4BLKFbits.PSMC4BLKF6 // bit 6
9865 #define PSMC4BLKF7 PSMC4BLKFbits.PSMC4BLKF7 // bit 7
9867 #define PSMC4BLKR0 PSMC4BLKRbits.PSMC4BLKR0 // bit 0
9868 #define PSMC4BLKR1 PSMC4BLKRbits.PSMC4BLKR1 // bit 1
9869 #define PSMC4BLKR2 PSMC4BLKRbits.PSMC4BLKR2 // bit 2
9870 #define PSMC4BLKR3 PSMC4BLKRbits.PSMC4BLKR3 // bit 3
9871 #define PSMC4BLKR4 PSMC4BLKRbits.PSMC4BLKR4 // bit 4
9872 #define PSMC4BLKR5 PSMC4BLKRbits.PSMC4BLKR5 // bit 5
9873 #define PSMC4BLKR6 PSMC4BLKRbits.PSMC4BLKR6 // bit 6
9874 #define PSMC4BLKR7 PSMC4BLKRbits.PSMC4BLKR7 // bit 7
9876 #define P4REBM0 PSMC4BLNKbits.P4REBM0 // bit 0
9877 #define P4REBM1 PSMC4BLNKbits.P4REBM1 // bit 1
9878 #define P4FEBM0 PSMC4BLNKbits.P4FEBM0 // bit 4
9879 #define P4FEBM1 PSMC4BLNKbits.P4FEBM1 // bit 5
9881 #define P4CSRC0 PSMC4CLKbits.P4CSRC0 // bit 0
9882 #define P4CSRC1 PSMC4CLKbits.P4CSRC1 // bit 1
9883 #define P4CPRE0 PSMC4CLKbits.P4CPRE0 // bit 4
9884 #define P4CPRE1 PSMC4CLKbits.P4CPRE1 // bit 5
9886 #define P4MODE0 PSMC4CONbits.P4MODE0 // bit 0
9887 #define P4MODE1 PSMC4CONbits.P4MODE1 // bit 1
9888 #define P4MODE2 PSMC4CONbits.P4MODE2 // bit 2
9889 #define P4MODE3 PSMC4CONbits.P4MODE3 // bit 3
9890 #define P4DBRE PSMC4CONbits.P4DBRE // bit 4
9891 #define P4DBFE PSMC4CONbits.P4DBFE // bit 5
9892 #define PSMC4LD PSMC4CONbits.PSMC4LD // bit 6
9893 #define PSMC4EN PSMC4CONbits.PSMC4EN // bit 7
9895 #define PSMC4DBF0 PSMC4DBFbits.PSMC4DBF0 // bit 0
9896 #define PSMC4DBF1 PSMC4DBFbits.PSMC4DBF1 // bit 1
9897 #define PSMC4DBF2 PSMC4DBFbits.PSMC4DBF2 // bit 2
9898 #define PSMC4DBF3 PSMC4DBFbits.PSMC4DBF3 // bit 3
9899 #define PSMC4DBF4 PSMC4DBFbits.PSMC4DBF4 // bit 4
9900 #define PSMC4DBF5 PSMC4DBFbits.PSMC4DBF5 // bit 5
9901 #define PSMC4DBF6 PSMC4DBFbits.PSMC4DBF6 // bit 6
9902 #define PSMC4DBF7 PSMC4DBFbits.PSMC4DBF7 // bit 7
9904 #define PSMC4DBR0 PSMC4DBRbits.PSMC4DBR0 // bit 0
9905 #define PSMC4DBR1 PSMC4DBRbits.PSMC4DBR1 // bit 1
9906 #define PSMC4DBR2 PSMC4DBRbits.PSMC4DBR2 // bit 2
9907 #define PSMC4DBR3 PSMC4DBRbits.PSMC4DBR3 // bit 3
9908 #define PSMC4DBR4 PSMC4DBRbits.PSMC4DBR4 // bit 4
9909 #define PSMC4DBR5 PSMC4DBRbits.PSMC4DBR5 // bit 5
9910 #define PSMC4DBR6 PSMC4DBRbits.PSMC4DBR6 // bit 6
9911 #define PSMC4DBR7 PSMC4DBRbits.PSMC4DBR7 // bit 7
9913 #define PSMC4DC8 PSMC4DCHbits.PSMC4DC8 // bit 0
9914 #define PSMC4DC9 PSMC4DCHbits.PSMC4DC9 // bit 1
9915 #define PSMC4DC10 PSMC4DCHbits.PSMC4DC10 // bit 2
9916 #define PSMC4DC11 PSMC4DCHbits.PSMC4DC11 // bit 3
9917 #define PSMC4DC12 PSMC4DCHbits.PSMC4DC12 // bit 4
9918 #define PSMC4DC13 PSMC4DCHbits.PSMC4DC13 // bit 5
9919 #define PSMC4DC14 PSMC4DCHbits.PSMC4DC14 // bit 6
9920 #define PSMC4DC15 PSMC4DCHbits.PSMC4DC15 // bit 7
9922 #define PSMC4DC0 PSMC4DCLbits.PSMC4DC0 // bit 0
9923 #define PSMC4DC1 PSMC4DCLbits.PSMC4DC1 // bit 1
9924 #define PSMC4DC2 PSMC4DCLbits.PSMC4DC2 // bit 2
9925 #define PSMC4DC3 PSMC4DCLbits.PSMC4DC3 // bit 3
9926 #define PSMC4DC4 PSMC4DCLbits.PSMC4DC4 // bit 4
9927 #define PSMC4DC5 PSMC4DCLbits.PSMC4DC5 // bit 5
9928 #define PSMC4DC6 PSMC4DCLbits.PSMC4DC6 // bit 6
9929 #define PSMC4DC7 PSMC4DCLbits.PSMC4DC7 // bit 7
9931 #define P4DCST PSMC4DCSbits.P4DCST // bit 0
9932 #define P4DCSC1 PSMC4DCSbits.P4DCSC1 // bit 1
9933 #define P4DCSC2 PSMC4DCSbits.P4DCSC2 // bit 2
9934 #define P4DCSC3 PSMC4DCSbits.P4DCSC3 // bit 3
9935 #define P4DCSC4 PSMC4DCSbits.P4DCSC4 // bit 4
9936 #define P4DCSIN PSMC4DCSbits.P4DCSIN // bit 7
9938 #define P4FEBSC1 PSMC4FEBSbits.P4FEBSC1 // bit 1
9939 #define P4FEBSC2 PSMC4FEBSbits.P4FEBSC2 // bit 2
9940 #define P4FEBSC3 PSMC4FEBSbits.P4FEBSC3 // bit 3
9941 #define P4FEBSC4 PSMC4FEBSbits.P4FEBSC4 // bit 4
9942 #define P4FEBSIN PSMC4FEBSbits.P4FEBSIN // bit 7
9944 #define PSMC4FFA0 PSMC4FFAbits.PSMC4FFA0 // bit 0
9945 #define PSMC4FFA1 PSMC4FFAbits.PSMC4FFA1 // bit 1
9946 #define PSMC4FFA2 PSMC4FFAbits.PSMC4FFA2 // bit 2
9947 #define PSMC4FFA3 PSMC4FFAbits.PSMC4FFA3 // bit 3
9949 #define P4TPRIF PSMC4INTbits.P4TPRIF // bit 0
9950 #define P4TDCIF PSMC4INTbits.P4TDCIF // bit 1
9951 #define P4TPHIF PSMC4INTbits.P4TPHIF // bit 2
9952 #define P4TOVIF PSMC4INTbits.P4TOVIF // bit 3
9953 #define P4TPRIE PSMC4INTbits.P4TPRIE // bit 4
9954 #define P4TDCIE PSMC4INTbits.P4TDCIE // bit 5
9955 #define P4TPHIE PSMC4INTbits.P4TPHIE // bit 6
9956 #define P4TOVIE PSMC4INTbits.P4TOVIE // bit 7
9958 #define P4MSRC0 PSMC4MDLbits.P4MSRC0 // bit 0
9959 #define P4MSRC1 PSMC4MDLbits.P4MSRC1 // bit 1
9960 #define P4MSRC2 PSMC4MDLbits.P4MSRC2 // bit 2
9961 #define P4MSRC3 PSMC4MDLbits.P4MSRC3 // bit 3
9962 #define P4MDLBIT PSMC4MDLbits.P4MDLBIT // bit 5
9963 #define P4MDLPOL PSMC4MDLbits.P4MDLPOL // bit 6
9964 #define P4MDLEN PSMC4MDLbits.P4MDLEN // bit 7
9966 #define P4OEA PSMC4OENbits.P4OEA // bit 0
9967 #define P4OEB PSMC4OENbits.P4OEB // bit 1
9969 #define PSMC4PH8 PSMC4PHHbits.PSMC4PH8 // bit 0
9970 #define PSMC4PH9 PSMC4PHHbits.PSMC4PH9 // bit 1
9971 #define PSMC4PH10 PSMC4PHHbits.PSMC4PH10 // bit 2
9972 #define PSMC4PH11 PSMC4PHHbits.PSMC4PH11 // bit 3
9973 #define PSMC4PH12 PSMC4PHHbits.PSMC4PH12 // bit 4
9974 #define PSMC4PH13 PSMC4PHHbits.PSMC4PH13 // bit 5
9975 #define PSMC4PH14 PSMC4PHHbits.PSMC4PH14 // bit 6
9976 #define PSMC4PH15 PSMC4PHHbits.PSMC4PH15 // bit 7
9978 #define PSMC4PH0 PSMC4PHLbits.PSMC4PH0 // bit 0
9979 #define PSMC4PH1 PSMC4PHLbits.PSMC4PH1 // bit 1
9980 #define PSMC4PH2 PSMC4PHLbits.PSMC4PH2 // bit 2
9981 #define PSMC4PH3 PSMC4PHLbits.PSMC4PH3 // bit 3
9982 #define PSMC4PH4 PSMC4PHLbits.PSMC4PH4 // bit 4
9983 #define PSMC4PH5 PSMC4PHLbits.PSMC4PH5 // bit 5
9984 #define PSMC4PH6 PSMC4PHLbits.PSMC4PH6 // bit 6
9985 #define PSMC4PH7 PSMC4PHLbits.PSMC4PH7 // bit 7
9987 #define P4PHST PSMC4PHSbits.P4PHST // bit 0
9988 #define P4PHSC1 PSMC4PHSbits.P4PHSC1 // bit 1
9989 #define P4PHSC2 PSMC4PHSbits.P4PHSC2 // bit 2
9990 #define P4PHSC3 PSMC4PHSbits.P4PHSC3 // bit 3
9991 #define P4PHSC4 PSMC4PHSbits.P4PHSC4 // bit 4
9992 #define P4PHSIN PSMC4PHSbits.P4PHSIN // bit 7
9994 #define P4POLA PSMC4POLbits.P4POLA // bit 0
9995 #define P4POLB PSMC4POLbits.P4POLB // bit 1
9996 #define P4INPOL PSMC4POLbits.P4INPOL // bit 6
9998 #define PSMC4PR8 PSMC4PRHbits.PSMC4PR8 // bit 0
9999 #define PSMC4PR9 PSMC4PRHbits.PSMC4PR9 // bit 1
10000 #define PSMC4PR10 PSMC4PRHbits.PSMC4PR10 // bit 2
10001 #define PSMC4PR11 PSMC4PRHbits.PSMC4PR11 // bit 3
10002 #define PSMC4PR12 PSMC4PRHbits.PSMC4PR12 // bit 4
10003 #define PSMC4PR13 PSMC4PRHbits.PSMC4PR13 // bit 5
10004 #define PSMC4PR14 PSMC4PRHbits.PSMC4PR14 // bit 6
10005 #define PSMC4PR15 PSMC4PRHbits.PSMC4PR15 // bit 7
10007 #define PSMC4PR0 PSMC4PRLbits.PSMC4PR0 // bit 0
10008 #define PSMC4PR1 PSMC4PRLbits.PSMC4PR1 // bit 1
10009 #define PSMC4PR2 PSMC4PRLbits.PSMC4PR2 // bit 2
10010 #define PSMC4PR3 PSMC4PRLbits.PSMC4PR3 // bit 3
10011 #define PSMC4PR4 PSMC4PRLbits.PSMC4PR4 // bit 4
10012 #define PSMC4PR5 PSMC4PRLbits.PSMC4PR5 // bit 5
10013 #define PSMC4PR6 PSMC4PRLbits.PSMC4PR6 // bit 6
10014 #define PSMC4PR7 PSMC4PRLbits.PSMC4PR7 // bit 7
10016 #define P4PRST PSMC4PRSbits.P4PRST // bit 0
10017 #define P4PRSC1 PSMC4PRSbits.P4PRSC1 // bit 1
10018 #define P4PRSC2 PSMC4PRSbits.P4PRSC2 // bit 2
10019 #define P4PRSC3 PSMC4PRSbits.P4PRSC3 // bit 3
10020 #define P4PRSC4 PSMC4PRSbits.P4PRSC4 // bit 4
10021 #define P4PRSIN PSMC4PRSbits.P4PRSIN // bit 7
10023 #define P4REBSC1 PSMC4REBSbits.P4REBSC1 // bit 1
10024 #define P4REBSC2 PSMC4REBSbits.P4REBSC2 // bit 2
10025 #define P4REBSC3 PSMC4REBSbits.P4REBSC3 // bit 3
10026 #define P4REBSC4 PSMC4REBSbits.P4REBSC4 // bit 4
10027 #define P4REBSIN PSMC4REBSbits.P4REBSIN // bit 7
10029 #define P4STRA PSMC4STR0bits.P4STRA // bit 0
10030 #define P4STRB PSMC4STR0bits.P4STRB // bit 1
10032 #define P4HSMEN PSMC4STR1bits.P4HSMEN // bit 0
10033 #define P4LSMEN PSMC4STR1bits.P4LSMEN // bit 1
10034 #define P4SSYNC PSMC4STR1bits.P4SSYNC // bit 7
10036 #define P4SYNC0 PSMC4SYNCbits.P4SYNC0 // bit 0
10037 #define P4SYNC1 PSMC4SYNCbits.P4SYNC1 // bit 1
10038 #define P4SYNC2 PSMC4SYNCbits.P4SYNC2 // bit 2
10039 #define P4DCPOL PSMC4SYNCbits.P4DCPOL // bit 5
10040 #define P4PRPOL PSMC4SYNCbits.P4PRPOL // bit 6
10041 #define P4POFST PSMC4SYNCbits.P4POFST // bit 7
10043 #define PSMC4TMR8 PSMC4TMRHbits.PSMC4TMR8 // bit 0
10044 #define PSMC4TMR9 PSMC4TMRHbits.PSMC4TMR9 // bit 1
10045 #define PSMC4TMR10 PSMC4TMRHbits.PSMC4TMR10 // bit 2
10046 #define PSMC4TMR11 PSMC4TMRHbits.PSMC4TMR11 // bit 3
10047 #define PSMC4TMR12 PSMC4TMRHbits.PSMC4TMR12 // bit 4
10048 #define PSMC4TMR13 PSMC4TMRHbits.PSMC4TMR13 // bit 5
10049 #define PSMC4TMR14 PSMC4TMRHbits.PSMC4TMR14 // bit 6
10050 #define PSMC4TMR15 PSMC4TMRHbits.PSMC4TMR15 // bit 7
10052 #define PSMC4TMR0 PSMC4TMRLbits.PSMC4TMR0 // bit 0
10053 #define PSMC4TMR1 PSMC4TMRLbits.PSMC4TMR1 // bit 1
10054 #define PSMC4TMR2 PSMC4TMRLbits.PSMC4TMR2 // bit 2
10055 #define PSMC4TMR3 PSMC4TMRLbits.PSMC4TMR3 // bit 3
10056 #define PSMC4TMR4 PSMC4TMRLbits.PSMC4TMR4 // bit 4
10057 #define PSMC4TMR5 PSMC4TMRLbits.PSMC4TMR5 // bit 5
10058 #define PSMC4TMR6 PSMC4TMRLbits.PSMC4TMR6 // bit 6
10059 #define PSMC4TMR7 PSMC4TMRLbits.PSMC4TMR7 // bit 7
10061 #define RX9D RC1STAbits.RX9D // bit 0
10062 #define OERR RC1STAbits.OERR // bit 1
10063 #define FERR RC1STAbits.FERR // bit 2
10064 #define ADDEN RC1STAbits.ADDEN // bit 3
10065 #define CREN RC1STAbits.CREN // bit 4
10066 #define SREN RC1STAbits.SREN // bit 5
10067 #define RX9 RC1STAbits.RX9 // bit 6
10068 #define SPEN RC1STAbits.SPEN // bit 7
10070 #define SLRCONA0 SLRCONAbits.SLRCONA0 // bit 0
10071 #define SLRCONA1 SLRCONAbits.SLRCONA1 // bit 1
10072 #define SLRCONA2 SLRCONAbits.SLRCONA2 // bit 2
10073 #define SLRCONA3 SLRCONAbits.SLRCONA3 // bit 3
10074 #define SLRCONA4 SLRCONAbits.SLRCONA4 // bit 4
10075 #define SLRCONA5 SLRCONAbits.SLRCONA5 // bit 5
10076 #define SLRCONA6 SLRCONAbits.SLRCONA6 // bit 6
10077 #define SLRCONA7 SLRCONAbits.SLRCONA7 // bit 7
10079 #define SLRCONB0 SLRCONBbits.SLRCONB0 // bit 0
10080 #define SLRCONB1 SLRCONBbits.SLRCONB1 // bit 1
10081 #define SLRCONB2 SLRCONBbits.SLRCONB2 // bit 2
10082 #define SLRCONB3 SLRCONBbits.SLRCONB3 // bit 3
10083 #define SLRCONB4 SLRCONBbits.SLRCONB4 // bit 4
10084 #define SLRCONB5 SLRCONBbits.SLRCONB5 // bit 5
10085 #define SLRCONB6 SLRCONBbits.SLRCONB6 // bit 6
10086 #define SLRCONB7 SLRCONBbits.SLRCONB7 // bit 7
10088 #define SLRCONC0 SLRCONCbits.SLRCONC0 // bit 0
10089 #define SLRCONC1 SLRCONCbits.SLRCONC1 // bit 1
10090 #define SLRCONC2 SLRCONCbits.SLRCONC2 // bit 2
10091 #define SLRCONC3 SLRCONCbits.SLRCONC3 // bit 3
10092 #define SLRCONC4 SLRCONCbits.SLRCONC4 // bit 4
10093 #define SLRCONC5 SLRCONCbits.SLRCONC5 // bit 5
10094 #define SLRCONC6 SLRCONCbits.SLRCONC6 // bit 6
10095 #define SLRCONC7 SLRCONCbits.SLRCONC7 // bit 7
10097 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
10098 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
10099 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
10100 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
10101 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
10102 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
10103 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
10104 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
10105 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
10106 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
10107 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
10108 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
10109 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
10110 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
10111 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
10112 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
10114 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
10115 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
10116 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
10117 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
10118 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
10119 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
10120 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
10121 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
10122 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
10123 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
10124 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
10125 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
10126 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
10127 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
10128 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
10129 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
10131 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
10132 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
10133 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
10134 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
10135 #define CKP SSP1CONbits.CKP // bit 4
10136 #define SSPEN SSP1CONbits.SSPEN // bit 5
10137 #define SSPOV SSP1CONbits.SSPOV // bit 6
10138 #define WCOL SSP1CONbits.WCOL // bit 7
10140 #define SEN SSP1CON2bits.SEN // bit 0
10141 #define RSEN SSP1CON2bits.RSEN // bit 1
10142 #define PEN SSP1CON2bits.PEN // bit 2
10143 #define RCEN SSP1CON2bits.RCEN // bit 3
10144 #define ACKEN SSP1CON2bits.ACKEN // bit 4
10145 #define ACKDT SSP1CON2bits.ACKDT // bit 5
10146 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
10147 #define GCEN SSP1CON2bits.GCEN // bit 7
10149 #define DHEN SSP1CON3bits.DHEN // bit 0
10150 #define AHEN SSP1CON3bits.AHEN // bit 1
10151 #define SBCDE SSP1CON3bits.SBCDE // bit 2
10152 #define SDAHT SSP1CON3bits.SDAHT // bit 3
10153 #define BOEN SSP1CON3bits.BOEN // bit 4
10154 #define SCIE SSP1CON3bits.SCIE // bit 5
10155 #define PCIE SSP1CON3bits.PCIE // bit 6
10156 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
10158 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
10159 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
10160 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
10161 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
10162 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
10163 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
10164 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
10165 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
10166 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
10167 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
10168 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
10169 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
10170 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
10171 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
10172 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
10173 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
10175 #define BF SSP1STATbits.BF // bit 0
10176 #define UA SSP1STATbits.UA // bit 1
10177 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
10178 #define S SSP1STATbits.S // bit 3
10179 #define P SSP1STATbits.P // bit 4
10180 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
10181 #define CKE SSP1STATbits.CKE // bit 6
10182 #define SMP SSP1STATbits.SMP // bit 7
10184 #define C STATUSbits.C // bit 0
10185 #define DC STATUSbits.DC // bit 1
10186 #define Z STATUSbits.Z // bit 2
10187 #define NOT_PD STATUSbits.NOT_PD // bit 3
10188 #define NOT_TO STATUSbits.NOT_TO // bit 4
10190 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
10191 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
10192 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
10194 #define TMR1ON T1CONbits.TMR1ON // bit 0
10195 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
10196 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
10197 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
10198 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
10199 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
10200 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
10202 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
10203 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
10204 #define T1GVAL T1GCONbits.T1GVAL // bit 2
10205 #define T1GGO T1GCONbits.T1GGO // bit 3
10206 #define T1GSPM T1GCONbits.T1GSPM // bit 4
10207 #define T1GTM T1GCONbits.T1GTM // bit 5
10208 #define T1GPOL T1GCONbits.T1GPOL // bit 6
10209 #define TMR1GE T1GCONbits.TMR1GE // bit 7
10211 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
10212 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
10213 #define TMR2ON T2CONbits.TMR2ON // bit 2
10214 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
10215 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
10216 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
10217 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
10219 #define TRISA0 TRISAbits.TRISA0 // bit 0
10220 #define TRISA1 TRISAbits.TRISA1 // bit 1
10221 #define TRISA2 TRISAbits.TRISA2 // bit 2
10222 #define TRISA3 TRISAbits.TRISA3 // bit 3
10223 #define TRISA4 TRISAbits.TRISA4 // bit 4
10224 #define TRISA5 TRISAbits.TRISA5 // bit 5
10225 #define TRISA6 TRISAbits.TRISA6 // bit 6
10226 #define TRISA7 TRISAbits.TRISA7 // bit 7
10228 #define TRISB0 TRISBbits.TRISB0 // bit 0
10229 #define TRISB1 TRISBbits.TRISB1 // bit 1
10230 #define TRISB2 TRISBbits.TRISB2 // bit 2
10231 #define TRISB3 TRISBbits.TRISB3 // bit 3
10232 #define TRISB4 TRISBbits.TRISB4 // bit 4
10233 #define TRISB5 TRISBbits.TRISB5 // bit 5
10234 #define TRISB6 TRISBbits.TRISB6 // bit 6
10235 #define TRISB7 TRISBbits.TRISB7 // bit 7
10237 #define TRISC0 TRISCbits.TRISC0 // bit 0
10238 #define TRISC1 TRISCbits.TRISC1 // bit 1
10239 #define TRISC2 TRISCbits.TRISC2 // bit 2
10240 #define TRISC3 TRISCbits.TRISC3 // bit 3
10241 #define TRISC4 TRISCbits.TRISC4 // bit 4
10242 #define TRISC5 TRISCbits.TRISC5 // bit 5
10243 #define TRISC6 TRISCbits.TRISC6 // bit 6
10244 #define TRISC7 TRISCbits.TRISC7 // bit 7
10246 #define TRISE3 TRISEbits.TRISE3 // bit 3
10248 #define TX9D TX1STAbits.TX9D // bit 0
10249 #define TRMT TX1STAbits.TRMT // bit 1
10250 #define BRGH TX1STAbits.BRGH // bit 2
10251 #define SENDB TX1STAbits.SENDB // bit 3
10252 #define SYNC TX1STAbits.SYNC // bit 4
10253 #define TXEN TX1STAbits.TXEN // bit 5
10254 #define TX9 TX1STAbits.TX9 // bit 6
10255 #define CSRC TX1STAbits.CSRC // bit 7
10257 #define SWDTEN WDTCONbits.SWDTEN // bit 0
10258 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
10259 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
10260 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
10261 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
10262 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
10264 #define WPUA0 WPUAbits.WPUA0 // bit 0
10265 #define WPUA1 WPUAbits.WPUA1 // bit 1
10266 #define WPUA2 WPUAbits.WPUA2 // bit 2
10267 #define WPUA3 WPUAbits.WPUA3 // bit 3
10268 #define WPUA4 WPUAbits.WPUA4 // bit 4
10269 #define WPUA5 WPUAbits.WPUA5 // bit 5
10270 #define WPUA6 WPUAbits.WPUA6 // bit 6
10271 #define WPUA7 WPUAbits.WPUA7 // bit 7
10273 #define WPUB0 WPUBbits.WPUB0 // bit 0
10274 #define WPUB1 WPUBbits.WPUB1 // bit 1
10275 #define WPUB2 WPUBbits.WPUB2 // bit 2
10276 #define WPUB3 WPUBbits.WPUB3 // bit 3
10277 #define WPUB4 WPUBbits.WPUB4 // bit 4
10278 #define WPUB5 WPUBbits.WPUB5 // bit 5
10279 #define WPUB6 WPUBbits.WPUB6 // bit 6
10280 #define WPUB7 WPUBbits.WPUB7 // bit 7
10282 #define WPUC0 WPUCbits.WPUC0 // bit 0
10283 #define WPUC1 WPUCbits.WPUC1 // bit 1
10284 #define WPUC2 WPUCbits.WPUC2 // bit 2
10285 #define WPUC3 WPUCbits.WPUC3 // bit 3
10286 #define WPUC4 WPUCbits.WPUC4 // bit 4
10287 #define WPUC5 WPUCbits.WPUC5 // bit 5
10288 #define WPUC6 WPUCbits.WPUC6 // bit 6
10289 #define WPUC7 WPUCbits.WPUC7 // bit 7
10291 #define WPUE3 WPUEbits.WPUE3 // bit 3
10293 #endif // #ifndef NO_BIT_DEFINES
10295 #endif // #ifndef __PIC16LF1788_H__