2 * This declarations of the PIC16F1784 MCU.
4 * This file is part of the GNU PIC library for SDCC, originally
5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:18 UTC.
9 * SDCC is licensed under the GNU Public license (GPL) v2. Note that
10 * this license covers the code to the compiler and other executables,
11 * but explicitly does not cover any code or objects generated by sdcc.
13 * For pic device libraries and header files which are derived from
14 * Microchip header (.inc) and linker script (.lkr) files Microchip
15 * requires that "The header files should state that they are only to be
16 * used with authentic Microchip devices" which makes them incompatible
17 * with the GPL. Pic device libraries and header files are located at
18 * non-free/lib and non-free/include directories respectively.
19 * Sdcc should be run with the --use-non-free command line option in
20 * order to include non-free header files and libraries.
22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
25 #ifndef __PIC16F1784_H__
26 #define __PIC16F1784_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 PORTD_ADDR 0x000F
54 #define PORTE_ADDR 0x0010
55 #define PIR1_ADDR 0x0011
56 #define PIR2_ADDR 0x0012
57 #define PIR3_ADDR 0x0013
58 #define PIR4_ADDR 0x0014
59 #define TMR0_ADDR 0x0015
60 #define TMR1_ADDR 0x0016
61 #define TMR1L_ADDR 0x0016
62 #define TMR1H_ADDR 0x0017
63 #define T1CON_ADDR 0x0018
64 #define T1GCON_ADDR 0x0019
65 #define TMR2_ADDR 0x001A
66 #define PR2_ADDR 0x001B
67 #define T2CON_ADDR 0x001C
68 #define TRISA_ADDR 0x008C
69 #define TRISB_ADDR 0x008D
70 #define TRISC_ADDR 0x008E
71 #define TRISD_ADDR 0x008F
72 #define TRISE_ADDR 0x0090
73 #define PIE1_ADDR 0x0091
74 #define PIE2_ADDR 0x0092
75 #define PIE3_ADDR 0x0093
76 #define PIE4_ADDR 0x0094
77 #define OPTION_REG_ADDR 0x0095
78 #define PCON_ADDR 0x0096
79 #define WDTCON_ADDR 0x0097
80 #define OSCTUNE_ADDR 0x0098
81 #define OSCCON_ADDR 0x0099
82 #define OSCSTAT_ADDR 0x009A
83 #define ADRES_ADDR 0x009B
84 #define ADRESL_ADDR 0x009B
85 #define ADRESH_ADDR 0x009C
86 #define ADCON0_ADDR 0x009D
87 #define ADCON1_ADDR 0x009E
88 #define ADCON2_ADDR 0x009F
89 #define LATA_ADDR 0x010C
90 #define LATB_ADDR 0x010D
91 #define LATC_ADDR 0x010E
92 #define LATD_ADDR 0x010F
93 #define LATE_ADDR 0x0110
94 #define CM1CON0_ADDR 0x0111
95 #define CM1CON1_ADDR 0x0112
96 #define CM2CON0_ADDR 0x0113
97 #define CM2CON1_ADDR 0x0114
98 #define CMOUT_ADDR 0x0115
99 #define BORCON_ADDR 0x0116
100 #define FVRCON_ADDR 0x0117
101 #define DACCON0_ADDR 0x0118
102 #define DACCON1_ADDR 0x0119
103 #define CM4CON0_ADDR 0x011A
104 #define CM4CON1_ADDR 0x011B
105 #define APFCON2_ADDR 0x011C
106 #define APFCON_ADDR 0x011D
107 #define APFCON0_ADDR 0x011D
108 #define APFCON1_ADDR 0x011D
109 #define CM3CON0_ADDR 0x011E
110 #define CM3CON1_ADDR 0x011F
111 #define ANSELA_ADDR 0x018C
112 #define ANSELB_ADDR 0x018D
113 #define ANSELD_ADDR 0x018F
114 #define ANSELE_ADDR 0x0190
115 #define EEADR_ADDR 0x0191
116 #define EEADRL_ADDR 0x0191
117 #define EEADRH_ADDR 0x0192
118 #define EEDAT_ADDR 0x0193
119 #define EEDATL_ADDR 0x0193
120 #define EEDATH_ADDR 0x0194
121 #define EECON1_ADDR 0x0195
122 #define EECON2_ADDR 0x0196
123 #define VREGCON_ADDR 0x0197
124 #define RC1REG_ADDR 0x0199
125 #define RCREG_ADDR 0x0199
126 #define RCREG1_ADDR 0x0199
127 #define TX1REG_ADDR 0x019A
128 #define TXREG_ADDR 0x019A
129 #define TXREG1_ADDR 0x019A
130 #define SP1BRG_ADDR 0x019B
131 #define SP1BRGL_ADDR 0x019B
132 #define SPBRG_ADDR 0x019B
133 #define SPBRG1_ADDR 0x019B
134 #define SPBRGL_ADDR 0x019B
135 #define SP1BRGH_ADDR 0x019C
136 #define SPBRGH_ADDR 0x019C
137 #define SPBRGH1_ADDR 0x019C
138 #define RC1STA_ADDR 0x019D
139 #define RCSTA_ADDR 0x019D
140 #define RCSTA1_ADDR 0x019D
141 #define TX1STA_ADDR 0x019E
142 #define TXSTA_ADDR 0x019E
143 #define TXSTA1_ADDR 0x019E
144 #define BAUD1CON_ADDR 0x019F
145 #define BAUDCON_ADDR 0x019F
146 #define BAUDCON1_ADDR 0x019F
147 #define BAUDCTL_ADDR 0x019F
148 #define BAUDCTL1_ADDR 0x019F
149 #define WPUA_ADDR 0x020C
150 #define WPUB_ADDR 0x020D
151 #define WPUC_ADDR 0x020E
152 #define WPUD_ADDR 0x020F
153 #define WPUE_ADDR 0x0210
154 #define SSP1BUF_ADDR 0x0211
155 #define SSPBUF_ADDR 0x0211
156 #define SSP1ADD_ADDR 0x0212
157 #define SSPADD_ADDR 0x0212
158 #define SSP1MSK_ADDR 0x0213
159 #define SSPMSK_ADDR 0x0213
160 #define SSP1STAT_ADDR 0x0214
161 #define SSPSTAT_ADDR 0x0214
162 #define SSP1CON_ADDR 0x0215
163 #define SSP1CON1_ADDR 0x0215
164 #define SSPCON_ADDR 0x0215
165 #define SSPCON1_ADDR 0x0215
166 #define SSP1CON2_ADDR 0x0216
167 #define SSPCON2_ADDR 0x0216
168 #define SSP1CON3_ADDR 0x0217
169 #define SSPCON3_ADDR 0x0217
170 #define ODCONA_ADDR 0x028C
171 #define ODCONB_ADDR 0x028D
172 #define ODCONC_ADDR 0x028E
173 #define ODCOND_ADDR 0x028F
174 #define ODCONE_ADDR 0x0290
175 #define CCPR1_ADDR 0x0291
176 #define CCPR1L_ADDR 0x0291
177 #define CCPR1H_ADDR 0x0292
178 #define CCP1CON_ADDR 0x0293
179 #define CCPR2_ADDR 0x0298
180 #define CCPR2L_ADDR 0x0298
181 #define CCPR2H_ADDR 0x0299
182 #define CCP2CON_ADDR 0x029A
183 #define SLRCONA_ADDR 0x030C
184 #define SLRCONB_ADDR 0x030D
185 #define SLRCONC_ADDR 0x030E
186 #define SLRCOND_ADDR 0x030F
187 #define SLRCONE_ADDR 0x0310
188 #define CCPR3_ADDR 0x0311
189 #define CCPR3L_ADDR 0x0311
190 #define CCPR3H_ADDR 0x0312
191 #define CCP3CON_ADDR 0x0313
192 #define INLVLA_ADDR 0x038C
193 #define INLVLB_ADDR 0x038D
194 #define INLVLC_ADDR 0x038E
195 #define INLVLD_ADDR 0x038F
196 #define INLVLE_ADDR 0x0390
197 #define IOCAP_ADDR 0x0391
198 #define IOCAN_ADDR 0x0392
199 #define IOCAF_ADDR 0x0393
200 #define IOCBP_ADDR 0x0394
201 #define IOCBN_ADDR 0x0395
202 #define IOCBF_ADDR 0x0396
203 #define IOCCP_ADDR 0x0397
204 #define IOCCN_ADDR 0x0398
205 #define IOCCF_ADDR 0x0399
206 #define IOCEP_ADDR 0x039D
207 #define IOCEN_ADDR 0x039E
208 #define IOCEF_ADDR 0x039F
209 #define OPA1CON_ADDR 0x0511
210 #define OPA2CON_ADDR 0x0513
211 #define OPA3CON_ADDR 0x0515
212 #define CLKRCON_ADDR 0x051A
213 #define PSMC1CON_ADDR 0x0811
214 #define PSMC1MDL_ADDR 0x0812
215 #define PSMC1SYNC_ADDR 0x0813
216 #define PSMC1CLK_ADDR 0x0814
217 #define PSMC1OEN_ADDR 0x0815
218 #define PSMC1POL_ADDR 0x0816
219 #define PSMC1BLNK_ADDR 0x0817
220 #define PSMC1REBS_ADDR 0x0818
221 #define PSMC1FEBS_ADDR 0x0819
222 #define PSMC1PHS_ADDR 0x081A
223 #define PSMC1DCS_ADDR 0x081B
224 #define PSMC1PRS_ADDR 0x081C
225 #define PSMC1ASDC_ADDR 0x081D
226 #define PSMC1ASDL_ADDR 0x081E
227 #define PSMC1ASDS_ADDR 0x081F
228 #define PSMC1INT_ADDR 0x0820
229 #define PSMC1PH_ADDR 0x0821
230 #define PSMC1PHL_ADDR 0x0821
231 #define PSMC1PHH_ADDR 0x0822
232 #define PSMC1DC_ADDR 0x0823
233 #define PSMC1DCL_ADDR 0x0823
234 #define PSMC1DCH_ADDR 0x0824
235 #define PSMC1PR_ADDR 0x0825
236 #define PSMC1PRL_ADDR 0x0825
237 #define PSMC1PRH_ADDR 0x0826
238 #define PSMC1TMR_ADDR 0x0827
239 #define PSMC1TMRL_ADDR 0x0827
240 #define PSMC1TMRH_ADDR 0x0828
241 #define PSMC1DBR_ADDR 0x0829
242 #define PSMC1DBF_ADDR 0x082A
243 #define PSMC1BLKR_ADDR 0x082B
244 #define PSMC1BLKF_ADDR 0x082C
245 #define PSMC1FFA_ADDR 0x082D
246 #define PSMC1STR0_ADDR 0x082E
247 #define PSMC1STR1_ADDR 0x082F
248 #define PSMC2CON_ADDR 0x0831
249 #define PSMC2MDL_ADDR 0x0832
250 #define PSMC2SYNC_ADDR 0x0833
251 #define PSMC2CLK_ADDR 0x0834
252 #define PSMC2OEN_ADDR 0x0835
253 #define PSMC2POL_ADDR 0x0836
254 #define PSMC2BLNK_ADDR 0x0837
255 #define PSMC2REBS_ADDR 0x0838
256 #define PSMC2FEBS_ADDR 0x0839
257 #define PSMC2PHS_ADDR 0x083A
258 #define PSMC2DCS_ADDR 0x083B
259 #define PSMC2PRS_ADDR 0x083C
260 #define PSMC2ASDC_ADDR 0x083D
261 #define PSMC2ASDL_ADDR 0x083E
262 #define PSMC2ASDS_ADDR 0x083F
263 #define PSMC2INT_ADDR 0x0840
264 #define PSMC2PH_ADDR 0x0841
265 #define PSMC2PHL_ADDR 0x0841
266 #define PSMC2PHH_ADDR 0x0842
267 #define PSMC2DC_ADDR 0x0843
268 #define PSMC2DCL_ADDR 0x0843
269 #define PSMC2DCH_ADDR 0x0844
270 #define PSMC2PR_ADDR 0x0845
271 #define PSMC2PRL_ADDR 0x0845
272 #define PSMC2PRH_ADDR 0x0846
273 #define PSMC2TMR_ADDR 0x0847
274 #define PSMC2TMRL_ADDR 0x0847
275 #define PSMC2TMRH_ADDR 0x0848
276 #define PSMC2DBR_ADDR 0x0849
277 #define PSMC2DBF_ADDR 0x084A
278 #define PSMC2BLKR_ADDR 0x084B
279 #define PSMC2BLKF_ADDR 0x084C
280 #define PSMC2FFA_ADDR 0x084D
281 #define PSMC2STR0_ADDR 0x084E
282 #define PSMC2STR1_ADDR 0x084F
283 #define PSMC3CON_ADDR 0x0851
284 #define PSMC3MDL_ADDR 0x0852
285 #define PSMC3SYNC_ADDR 0x0853
286 #define PSMC3CLK_ADDR 0x0854
287 #define PSMC3OEN_ADDR 0x0855
288 #define PSMC3POL_ADDR 0x0856
289 #define PSMC3BLNK_ADDR 0x0857
290 #define PSMC3REBS_ADDR 0x0858
291 #define PSMC3FEBS_ADDR 0x0859
292 #define PSMC3PHS_ADDR 0x085A
293 #define PSMC3DCS_ADDR 0x085B
294 #define PSMC3PRS_ADDR 0x085C
295 #define PSMC3ASDC_ADDR 0x085D
296 #define PSMC3ASDL_ADDR 0x085E
297 #define PSMC3ASDS_ADDR 0x085F
298 #define PSMC3INT_ADDR 0x0860
299 #define PSMC3PH_ADDR 0x0861
300 #define PSMC3PHL_ADDR 0x0861
301 #define PSMC3PHH_ADDR 0x0862
302 #define PSMC3DC_ADDR 0x0863
303 #define PSMC3DCL_ADDR 0x0863
304 #define PSMC3DCH_ADDR 0x0864
305 #define PSMC3PR_ADDR 0x0865
306 #define PSMC3PRL_ADDR 0x0865
307 #define PSMC3PRH_ADDR 0x0866
308 #define PSMC3TMR_ADDR 0x0867
309 #define PSMC3TMRL_ADDR 0x0867
310 #define PSMC3TMRH_ADDR 0x0868
311 #define PSMC3DBR_ADDR 0x0869
312 #define PSMC3DBF_ADDR 0x086A
313 #define PSMC3BLKR_ADDR 0x086B
314 #define PSMC3BLKF_ADDR 0x086C
315 #define PSMC3FFA_ADDR 0x086D
316 #define PSMC3STR0_ADDR 0x086E
317 #define PSMC3STR1_ADDR 0x086F
318 #define STATUS_SHAD_ADDR 0x0FE4
319 #define WREG_SHAD_ADDR 0x0FE5
320 #define BSR_SHAD_ADDR 0x0FE6
321 #define PCLATH_SHAD_ADDR 0x0FE7
322 #define FSR0L_SHAD_ADDR 0x0FE8
323 #define FSR0H_SHAD_ADDR 0x0FE9
324 #define FSR1L_SHAD_ADDR 0x0FEA
325 #define FSR1H_SHAD_ADDR 0x0FEB
326 #define STKPTR_ADDR 0x0FED
327 #define TOSL_ADDR 0x0FEE
328 #define TOSH_ADDR 0x0FEF
330 #endif // #ifndef NO_ADDR_DEFINES
332 //==============================================================================
334 // Register Definitions
336 //==============================================================================
338 extern __at(0x0000) __sfr INDF0
;
339 extern __at(0x0001) __sfr INDF1
;
340 extern __at(0x0002) __sfr PCL
;
342 //==============================================================================
345 extern __at(0x0003) __sfr STATUS
;
359 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
367 //==============================================================================
369 extern __at(0x0004) __sfr FSR0
;
370 extern __at(0x0004) __sfr FSR0L
;
371 extern __at(0x0005) __sfr FSR0H
;
372 extern __at(0x0006) __sfr FSR1
;
373 extern __at(0x0006) __sfr FSR1L
;
374 extern __at(0x0007) __sfr FSR1H
;
376 //==============================================================================
379 extern __at(0x0008) __sfr BSR
;
402 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
410 //==============================================================================
412 extern __at(0x0009) __sfr WREG
;
413 extern __at(0x000A) __sfr PCLATH
;
415 //==============================================================================
418 extern __at(0x000B) __sfr INTCON
;
447 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
460 //==============================================================================
463 //==============================================================================
466 extern __at(0x000C) __sfr PORTA
;
480 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
491 //==============================================================================
494 //==============================================================================
497 extern __at(0x000D) __sfr PORTB
;
511 extern __at(0x000D) volatile __PORTBbits_t PORTBbits
;
522 //==============================================================================
525 //==============================================================================
528 extern __at(0x000E) __sfr PORTC
;
542 extern __at(0x000E) volatile __PORTCbits_t PORTCbits
;
553 //==============================================================================
556 //==============================================================================
559 extern __at(0x000F) __sfr PORTD
;
573 extern __at(0x000F) volatile __PORTDbits_t PORTDbits
;
584 //==============================================================================
587 //==============================================================================
590 extern __at(0x0010) __sfr PORTE
;
613 extern __at(0x0010) volatile __PORTEbits_t PORTEbits
;
620 //==============================================================================
623 //==============================================================================
626 extern __at(0x0011) __sfr PIR1
;
637 unsigned TMR1GIF
: 1;
640 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
649 #define _TMR1GIF 0x80
651 //==============================================================================
654 //==============================================================================
657 extern __at(0x0012) __sfr PIR2
;
671 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
682 //==============================================================================
685 //==============================================================================
688 extern __at(0x0013) __sfr PIR3
;
702 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
706 //==============================================================================
709 //==============================================================================
712 extern __at(0x0014) __sfr PIR4
;
716 unsigned PSMC1SIF
: 1;
717 unsigned PSMC2SIF
: 1;
718 unsigned PSMC3SIF
: 1;
720 unsigned PSMC1TIF
: 1;
721 unsigned PSMC2TIF
: 1;
722 unsigned PSMC3TIF
: 1;
726 extern __at(0x0014) volatile __PIR4bits_t PIR4bits
;
728 #define _PSMC1SIF 0x01
729 #define _PSMC2SIF 0x02
730 #define _PSMC3SIF 0x04
731 #define _PSMC1TIF 0x10
732 #define _PSMC2TIF 0x20
733 #define _PSMC3TIF 0x40
735 //==============================================================================
737 extern __at(0x0015) __sfr TMR0
;
738 extern __at(0x0016) __sfr TMR1
;
739 extern __at(0x0016) __sfr TMR1L
;
740 extern __at(0x0017) __sfr TMR1H
;
742 //==============================================================================
745 extern __at(0x0018) __sfr T1CON
;
753 unsigned NOT_T1SYNC
: 1;
754 unsigned T1OSCEN
: 1;
755 unsigned T1CKPS0
: 1;
756 unsigned T1CKPS1
: 1;
757 unsigned TMR1CS0
: 1;
758 unsigned TMR1CS1
: 1;
775 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
778 #define _NOT_T1SYNC 0x04
779 #define _T1OSCEN 0x08
780 #define _T1CKPS0 0x10
781 #define _T1CKPS1 0x20
782 #define _TMR1CS0 0x40
783 #define _TMR1CS1 0x80
785 //==============================================================================
788 //==============================================================================
791 extern __at(0x0019) __sfr T1GCON
;
814 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
825 //==============================================================================
827 extern __at(0x001A) __sfr TMR2
;
828 extern __at(0x001B) __sfr PR2
;
830 //==============================================================================
833 extern __at(0x001C) __sfr T2CON
;
839 unsigned T2CKPS0
: 1;
840 unsigned T2CKPS1
: 1;
842 unsigned T2OUTPS0
: 1;
843 unsigned T2OUTPS1
: 1;
844 unsigned T2OUTPS2
: 1;
845 unsigned T2OUTPS3
: 1;
858 unsigned T2OUTPS
: 4;
863 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
865 #define _T2CKPS0 0x01
866 #define _T2CKPS1 0x02
868 #define _T2OUTPS0 0x08
869 #define _T2OUTPS1 0x10
870 #define _T2OUTPS2 0x20
871 #define _T2OUTPS3 0x40
873 //==============================================================================
876 //==============================================================================
879 extern __at(0x008C) __sfr TRISA
;
893 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
904 //==============================================================================
907 //==============================================================================
910 extern __at(0x008D) __sfr TRISB
;
924 extern __at(0x008D) volatile __TRISBbits_t TRISBbits
;
935 //==============================================================================
938 //==============================================================================
941 extern __at(0x008E) __sfr TRISC
;
955 extern __at(0x008E) volatile __TRISCbits_t TRISCbits
;
966 //==============================================================================
969 //==============================================================================
972 extern __at(0x008F) __sfr TRISD
;
986 extern __at(0x008F) volatile __TRISDbits_t TRISDbits
;
997 //==============================================================================
1000 //==============================================================================
1003 extern __at(0x0090) __sfr TRISE
;
1009 unsigned TRISE0
: 1;
1010 unsigned TRISE1
: 1;
1011 unsigned TRISE2
: 1;
1012 unsigned TRISE3
: 1;
1026 extern __at(0x0090) volatile __TRISEbits_t TRISEbits
;
1028 #define _TRISE0 0x01
1029 #define _TRISE1 0x02
1030 #define _TRISE2 0x04
1031 #define _TRISE3 0x08
1033 //==============================================================================
1036 //==============================================================================
1039 extern __at(0x0091) __sfr PIE1
;
1043 unsigned TMR1IE
: 1;
1044 unsigned TMR2IE
: 1;
1045 unsigned CCP1IE
: 1;
1046 unsigned SSP1IE
: 1;
1050 unsigned TMR1GIE
: 1;
1053 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
1055 #define _TMR1IE 0x01
1056 #define _TMR2IE 0x02
1057 #define _CCP1IE 0x04
1058 #define _SSP1IE 0x08
1062 #define _TMR1GIE 0x80
1064 //==============================================================================
1067 //==============================================================================
1070 extern __at(0x0092) __sfr PIE2
;
1074 unsigned CCP2IE
: 1;
1077 unsigned BCL1IE
: 1;
1084 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
1086 #define _CCP2IE 0x01
1089 #define _BCL1IE 0x08
1095 //==============================================================================
1098 //==============================================================================
1101 extern __at(0x0093) __sfr PIE3
;
1109 unsigned CCP3IE
: 1;
1115 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
1117 #define _CCP3IE 0x10
1119 //==============================================================================
1122 //==============================================================================
1125 extern __at(0x0094) __sfr PIE4
;
1131 unsigned PSMC1SIE
: 1;
1132 unsigned PSMC2SIE
: 1;
1133 unsigned PSMC3SIE
: 1;
1135 unsigned PSMC1TIE
: 1;
1136 unsigned PSMC2TIE
: 1;
1137 unsigned PSMC3TIE
: 1;
1149 unsigned PMSC3TIE
: 1;
1154 extern __at(0x0094) volatile __PIE4bits_t PIE4bits
;
1156 #define _PSMC1SIE 0x01
1157 #define _PSMC2SIE 0x02
1158 #define _PSMC3SIE 0x04
1159 #define _PSMC1TIE 0x10
1160 #define _PSMC2TIE 0x20
1161 #define _PSMC3TIE 0x40
1162 #define _PMSC3TIE 0x40
1164 //==============================================================================
1167 //==============================================================================
1170 extern __at(0x0095) __sfr OPTION_REG
;
1180 unsigned TMR0SE
: 1;
1181 unsigned TMR0CS
: 1;
1182 unsigned INTEDG
: 1;
1183 unsigned NOT_WPUEN
: 1;
1203 } __OPTION_REGbits_t
;
1205 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
1211 #define _TMR0SE 0x10
1213 #define _TMR0CS 0x20
1215 #define _INTEDG 0x40
1216 #define _NOT_WPUEN 0x80
1218 //==============================================================================
1221 //==============================================================================
1224 extern __at(0x0096) __sfr PCON
;
1228 unsigned NOT_BOR
: 1;
1229 unsigned NOT_POR
: 1;
1230 unsigned NOT_RI
: 1;
1231 unsigned NOT_RMCLR
: 1;
1232 unsigned NOT_RWDT
: 1;
1234 unsigned STKUNF
: 1;
1235 unsigned STKOVF
: 1;
1238 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
1240 #define _NOT_BOR 0x01
1241 #define _NOT_POR 0x02
1242 #define _NOT_RI 0x04
1243 #define _NOT_RMCLR 0x08
1244 #define _NOT_RWDT 0x10
1245 #define _STKUNF 0x40
1246 #define _STKOVF 0x80
1248 //==============================================================================
1251 //==============================================================================
1254 extern __at(0x0097) __sfr WDTCON
;
1260 unsigned SWDTEN
: 1;
1261 unsigned WDTPS0
: 1;
1262 unsigned WDTPS1
: 1;
1263 unsigned WDTPS2
: 1;
1264 unsigned WDTPS3
: 1;
1265 unsigned WDTPS4
: 1;
1278 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
1280 #define _SWDTEN 0x01
1281 #define _WDTPS0 0x02
1282 #define _WDTPS1 0x04
1283 #define _WDTPS2 0x08
1284 #define _WDTPS3 0x10
1285 #define _WDTPS4 0x20
1287 //==============================================================================
1290 //==============================================================================
1293 extern __at(0x0098) __sfr OSCTUNE
;
1316 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
1325 //==============================================================================
1328 //==============================================================================
1331 extern __at(0x0099) __sfr OSCCON
;
1344 unsigned SPLLEN
: 1;
1361 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
1369 #define _SPLLEN 0x80
1371 //==============================================================================
1374 //==============================================================================
1377 extern __at(0x009A) __sfr OSCSTAT
;
1381 unsigned HFIOFS
: 1;
1382 unsigned LFIOFR
: 1;
1383 unsigned MFIOFR
: 1;
1384 unsigned HFIOFL
: 1;
1385 unsigned HFIOFR
: 1;
1388 unsigned T1OSCR
: 1;
1391 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
1393 #define _HFIOFS 0x01
1394 #define _LFIOFR 0x02
1395 #define _MFIOFR 0x04
1396 #define _HFIOFL 0x08
1397 #define _HFIOFR 0x10
1400 #define _T1OSCR 0x80
1402 //==============================================================================
1404 extern __at(0x009B) __sfr ADRES
;
1405 extern __at(0x009B) __sfr ADRESL
;
1406 extern __at(0x009C) __sfr ADRESH
;
1408 //==============================================================================
1411 extern __at(0x009D) __sfr ADCON0
;
1418 unsigned GO_NOT_DONE
: 1;
1471 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1474 #define _GO_NOT_DONE 0x02
1485 //==============================================================================
1488 //==============================================================================
1491 extern __at(0x009E) __sfr ADCON1
;
1497 unsigned ADPREF0
: 1;
1498 unsigned ADPREF1
: 1;
1499 unsigned ADNREF
: 1;
1509 unsigned ADPREF
: 2;
1521 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1523 #define _ADPREF0 0x01
1524 #define _ADPREF1 0x02
1525 #define _ADNREF 0x04
1531 //==============================================================================
1534 //==============================================================================
1537 extern __at(0x009F) __sfr ADCON2
;
1547 unsigned TRIGSEL0
: 1;
1548 unsigned TRIGSEL1
: 1;
1549 unsigned TRIGSEL2
: 1;
1550 unsigned TRIGSEL3
: 1;
1562 unsigned TRIGSEL
: 4;
1566 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1572 #define _TRIGSEL0 0x10
1573 #define _TRIGSEL1 0x20
1574 #define _TRIGSEL2 0x40
1575 #define _TRIGSEL3 0x80
1577 //==============================================================================
1580 //==============================================================================
1583 extern __at(0x010C) __sfr LATA
;
1597 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1608 //==============================================================================
1611 //==============================================================================
1614 extern __at(0x010D) __sfr LATB
;
1628 extern __at(0x010D) volatile __LATBbits_t LATBbits
;
1639 //==============================================================================
1642 //==============================================================================
1645 extern __at(0x010E) __sfr LATC
;
1659 extern __at(0x010E) volatile __LATCbits_t LATCbits
;
1670 //==============================================================================
1673 //==============================================================================
1676 extern __at(0x010F) __sfr LATD
;
1690 extern __at(0x010F) volatile __LATDbits_t LATDbits
;
1701 //==============================================================================
1704 //==============================================================================
1707 extern __at(0x0110) __sfr LATE
;
1730 extern __at(0x0110) volatile __LATEbits_t LATEbits
;
1736 //==============================================================================
1739 //==============================================================================
1742 extern __at(0x0111) __sfr CM1CON0
;
1746 unsigned C1SYNC
: 1;
1756 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1758 #define _C1SYNC 0x01
1767 //==============================================================================
1770 //==============================================================================
1773 extern __at(0x0112) __sfr CM1CON1
;
1779 unsigned C1NCH0
: 1;
1780 unsigned C1NCH1
: 1;
1781 unsigned C1NCH2
: 1;
1782 unsigned C1PCH0
: 1;
1783 unsigned C1PCH1
: 1;
1784 unsigned C1PCH2
: 1;
1785 unsigned C1INTN
: 1;
1786 unsigned C1INTP
: 1;
1803 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1805 #define _C1NCH0 0x01
1806 #define _C1NCH1 0x02
1807 #define _C1NCH2 0x04
1808 #define _C1PCH0 0x08
1809 #define _C1PCH1 0x10
1810 #define _C1PCH2 0x20
1811 #define _C1INTN 0x40
1812 #define _C1INTP 0x80
1814 //==============================================================================
1817 //==============================================================================
1820 extern __at(0x0113) __sfr CM2CON0
;
1824 unsigned C2SYNC
: 1;
1834 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits
;
1836 #define _C2SYNC 0x01
1845 //==============================================================================
1848 //==============================================================================
1851 extern __at(0x0114) __sfr CM2CON1
;
1857 unsigned C2NCH0
: 1;
1858 unsigned C2NCH1
: 1;
1859 unsigned C2NCH2
: 1;
1860 unsigned C2PCH0
: 1;
1861 unsigned C2PCH1
: 1;
1862 unsigned C2PCH2
: 1;
1863 unsigned C2INTN
: 1;
1864 unsigned C2INTP
: 1;
1881 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits
;
1883 #define _C2NCH0 0x01
1884 #define _C2NCH1 0x02
1885 #define _C2NCH2 0x04
1886 #define _C2PCH0 0x08
1887 #define _C2PCH1 0x10
1888 #define _C2PCH2 0x20
1889 #define _C2INTN 0x40
1890 #define _C2INTP 0x80
1892 //==============================================================================
1895 //==============================================================================
1898 extern __at(0x0115) __sfr CMOUT
;
1902 unsigned MC1OUT
: 1;
1903 unsigned MC2OUT
: 1;
1904 unsigned MC3OUT
: 1;
1905 unsigned MC4OUT
: 1;
1912 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1914 #define _MC1OUT 0x01
1915 #define _MC2OUT 0x02
1916 #define _MC3OUT 0x04
1917 #define _MC4OUT 0x08
1919 //==============================================================================
1922 //==============================================================================
1925 extern __at(0x0116) __sfr BORCON
;
1929 unsigned BORRDY
: 1;
1936 unsigned SBOREN
: 1;
1939 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1941 #define _BORRDY 0x01
1943 #define _SBOREN 0x80
1945 //==============================================================================
1948 //==============================================================================
1951 extern __at(0x0117) __sfr FVRCON
;
1957 unsigned ADFVR0
: 1;
1958 unsigned ADFVR1
: 1;
1959 unsigned CDAFVR0
: 1;
1960 unsigned CDAFVR1
: 1;
1963 unsigned FVRRDY
: 1;
1976 unsigned CDAFVR
: 2;
1981 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1983 #define _ADFVR0 0x01
1984 #define _ADFVR1 0x02
1985 #define _CDAFVR0 0x04
1986 #define _CDAFVR1 0x08
1989 #define _FVRRDY 0x40
1992 //==============================================================================
1995 //==============================================================================
1998 extern __at(0x0118) __sfr DACCON0
;
2004 unsigned DACNSS
: 1;
2006 unsigned DACPSS0
: 1;
2007 unsigned DACPSS1
: 1;
2008 unsigned DACOE2
: 1;
2009 unsigned DACOE1
: 1;
2017 unsigned DACPSS
: 2;
2022 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
2024 #define _DACNSS 0x01
2025 #define _DACPSS0 0x04
2026 #define _DACPSS1 0x08
2027 #define _DACOE2 0x10
2028 #define _DACOE1 0x20
2031 //==============================================================================
2034 //==============================================================================
2037 extern __at(0x0119) __sfr DACCON1
;
2051 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
2062 //==============================================================================
2065 //==============================================================================
2068 extern __at(0x011A) __sfr CM4CON0
;
2072 unsigned C4SYNC
: 1;
2082 extern __at(0x011A) volatile __CM4CON0bits_t CM4CON0bits
;
2084 #define _C4SYNC 0x01
2093 //==============================================================================
2096 //==============================================================================
2099 extern __at(0x011B) __sfr CM4CON1
;
2105 unsigned C4NCH0
: 1;
2106 unsigned C4NCH1
: 1;
2107 unsigned C4NCH2
: 1;
2108 unsigned C4PCH0
: 1;
2109 unsigned C4PCH1
: 1;
2110 unsigned C4PCH2
: 1;
2111 unsigned C4INTN
: 1;
2112 unsigned C4INTP
: 1;
2129 extern __at(0x011B) volatile __CM4CON1bits_t CM4CON1bits
;
2131 #define _C4NCH0 0x01
2132 #define _C4NCH1 0x02
2133 #define _C4NCH2 0x04
2134 #define _C4PCH0 0x08
2135 #define _C4PCH1 0x10
2136 #define _C4PCH2 0x20
2137 #define _C4INTN 0x40
2138 #define _C4INTP 0x80
2140 //==============================================================================
2143 //==============================================================================
2146 extern __at(0x011C) __sfr APFCON2
;
2150 unsigned CCP3SEL
: 1;
2160 extern __at(0x011C) volatile __APFCON2bits_t APFCON2bits
;
2162 #define _CCP3SEL 0x01
2164 //==============================================================================
2167 //==============================================================================
2170 extern __at(0x011D) __sfr APFCON
;
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 __APFCONbits_t APFCONbits
;
2186 #define _CCP2SEL 0x01
2189 #define _SDISEL 0x08
2190 #define _SCKSEL 0x10
2191 #define _SDOSEL 0x20
2192 #define _CCP1SEL 0x40
2193 #define _C2OUTSEL 0x80
2195 //==============================================================================
2198 //==============================================================================
2201 extern __at(0x011D) __sfr APFCON0
;
2205 unsigned CCP2SEL
: 1;
2208 unsigned SDISEL
: 1;
2209 unsigned SCKSEL
: 1;
2210 unsigned SDOSEL
: 1;
2211 unsigned CCP1SEL
: 1;
2212 unsigned C2OUTSEL
: 1;
2215 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits
;
2217 #define _APFCON0_CCP2SEL 0x01
2218 #define _APFCON0_RXSEL 0x02
2219 #define _APFCON0_TXSEL 0x04
2220 #define _APFCON0_SDISEL 0x08
2221 #define _APFCON0_SCKSEL 0x10
2222 #define _APFCON0_SDOSEL 0x20
2223 #define _APFCON0_CCP1SEL 0x40
2224 #define _APFCON0_C2OUTSEL 0x80
2226 //==============================================================================
2229 //==============================================================================
2232 extern __at(0x011D) __sfr APFCON1
;
2236 unsigned CCP2SEL
: 1;
2239 unsigned SDISEL
: 1;
2240 unsigned SCKSEL
: 1;
2241 unsigned SDOSEL
: 1;
2242 unsigned CCP1SEL
: 1;
2243 unsigned C2OUTSEL
: 1;
2246 extern __at(0x011D) volatile __APFCON1bits_t APFCON1bits
;
2248 #define _APFCON1_CCP2SEL 0x01
2249 #define _APFCON1_RXSEL 0x02
2250 #define _APFCON1_TXSEL 0x04
2251 #define _APFCON1_SDISEL 0x08
2252 #define _APFCON1_SCKSEL 0x10
2253 #define _APFCON1_SDOSEL 0x20
2254 #define _APFCON1_CCP1SEL 0x40
2255 #define _APFCON1_C2OUTSEL 0x80
2257 //==============================================================================
2260 //==============================================================================
2263 extern __at(0x011E) __sfr CM3CON0
;
2267 unsigned C3SYNC
: 1;
2277 extern __at(0x011E) volatile __CM3CON0bits_t CM3CON0bits
;
2279 #define _C3SYNC 0x01
2288 //==============================================================================
2291 //==============================================================================
2294 extern __at(0x011F) __sfr CM3CON1
;
2300 unsigned C3NCH0
: 1;
2301 unsigned C3NCH1
: 1;
2302 unsigned C3NCH2
: 1;
2303 unsigned C3PCH0
: 1;
2304 unsigned C3PCH1
: 1;
2305 unsigned C3PCH2
: 1;
2306 unsigned C3INTN
: 1;
2307 unsigned C3INTP
: 1;
2324 extern __at(0x011F) volatile __CM3CON1bits_t CM3CON1bits
;
2326 #define _C3NCH0 0x01
2327 #define _C3NCH1 0x02
2328 #define _C3NCH2 0x04
2329 #define _C3PCH0 0x08
2330 #define _C3PCH1 0x10
2331 #define _C3PCH2 0x20
2332 #define _C3INTN 0x40
2333 #define _C3INTP 0x80
2335 //==============================================================================
2338 //==============================================================================
2341 extern __at(0x018C) __sfr ANSELA
;
2355 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
2365 //==============================================================================
2368 //==============================================================================
2371 extern __at(0x018D) __sfr ANSELB
;
2394 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits
;
2404 //==============================================================================
2407 //==============================================================================
2410 extern __at(0x018F) __sfr ANSELD
;
2433 extern __at(0x018F) volatile __ANSELDbits_t ANSELDbits
;
2439 //==============================================================================
2442 //==============================================================================
2445 extern __at(0x0190) __sfr ANSELE
;
2468 extern __at(0x0190) volatile __ANSELEbits_t ANSELEbits
;
2474 //==============================================================================
2476 extern __at(0x0191) __sfr EEADR
;
2477 extern __at(0x0191) __sfr EEADRL
;
2478 extern __at(0x0192) __sfr EEADRH
;
2479 extern __at(0x0193) __sfr EEDAT
;
2480 extern __at(0x0193) __sfr EEDATL
;
2481 extern __at(0x0194) __sfr EEDATH
;
2483 //==============================================================================
2486 extern __at(0x0195) __sfr EECON1
;
2500 extern __at(0x0195) volatile __EECON1bits_t EECON1bits
;
2511 //==============================================================================
2513 extern __at(0x0196) __sfr EECON2
;
2515 //==============================================================================
2518 extern __at(0x0197) __sfr VREGCON
;
2523 unsigned VREGPM
: 1;
2532 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits
;
2534 #define _VREGPM 0x02
2536 //==============================================================================
2538 extern __at(0x0199) __sfr RC1REG
;
2539 extern __at(0x0199) __sfr RCREG
;
2540 extern __at(0x0199) __sfr RCREG1
;
2541 extern __at(0x019A) __sfr TX1REG
;
2542 extern __at(0x019A) __sfr TXREG
;
2543 extern __at(0x019A) __sfr TXREG1
;
2544 extern __at(0x019B) __sfr SP1BRG
;
2545 extern __at(0x019B) __sfr SP1BRGL
;
2546 extern __at(0x019B) __sfr SPBRG
;
2547 extern __at(0x019B) __sfr SPBRG1
;
2548 extern __at(0x019B) __sfr SPBRGL
;
2549 extern __at(0x019C) __sfr SP1BRGH
;
2550 extern __at(0x019C) __sfr SPBRGH
;
2551 extern __at(0x019C) __sfr SPBRGH1
;
2553 //==============================================================================
2556 extern __at(0x019D) __sfr RC1STA
;
2570 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits
;
2581 //==============================================================================
2584 //==============================================================================
2587 extern __at(0x019D) __sfr RCSTA
;
2601 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
2603 #define _RCSTA_RX9D 0x01
2604 #define _RCSTA_OERR 0x02
2605 #define _RCSTA_FERR 0x04
2606 #define _RCSTA_ADDEN 0x08
2607 #define _RCSTA_CREN 0x10
2608 #define _RCSTA_SREN 0x20
2609 #define _RCSTA_RX9 0x40
2610 #define _RCSTA_SPEN 0x80
2612 //==============================================================================
2615 //==============================================================================
2618 extern __at(0x019D) __sfr RCSTA1
;
2632 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits
;
2634 #define _RCSTA1_RX9D 0x01
2635 #define _RCSTA1_OERR 0x02
2636 #define _RCSTA1_FERR 0x04
2637 #define _RCSTA1_ADDEN 0x08
2638 #define _RCSTA1_CREN 0x10
2639 #define _RCSTA1_SREN 0x20
2640 #define _RCSTA1_RX9 0x40
2641 #define _RCSTA1_SPEN 0x80
2643 //==============================================================================
2646 //==============================================================================
2649 extern __at(0x019E) __sfr TX1STA
;
2663 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits
;
2674 //==============================================================================
2677 //==============================================================================
2680 extern __at(0x019E) __sfr TXSTA
;
2694 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
2696 #define _TXSTA_TX9D 0x01
2697 #define _TXSTA_TRMT 0x02
2698 #define _TXSTA_BRGH 0x04
2699 #define _TXSTA_SENDB 0x08
2700 #define _TXSTA_SYNC 0x10
2701 #define _TXSTA_TXEN 0x20
2702 #define _TXSTA_TX9 0x40
2703 #define _TXSTA_CSRC 0x80
2705 //==============================================================================
2708 //==============================================================================
2711 extern __at(0x019E) __sfr TXSTA1
;
2725 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits
;
2727 #define _TXSTA1_TX9D 0x01
2728 #define _TXSTA1_TRMT 0x02
2729 #define _TXSTA1_BRGH 0x04
2730 #define _TXSTA1_SENDB 0x08
2731 #define _TXSTA1_SYNC 0x10
2732 #define _TXSTA1_TXEN 0x20
2733 #define _TXSTA1_TX9 0x40
2734 #define _TXSTA1_CSRC 0x80
2736 //==============================================================================
2739 //==============================================================================
2742 extern __at(0x019F) __sfr BAUD1CON
;
2753 unsigned ABDOVF
: 1;
2756 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits
;
2763 #define _ABDOVF 0x80
2765 //==============================================================================
2768 //==============================================================================
2771 extern __at(0x019F) __sfr BAUDCON
;
2782 unsigned ABDOVF
: 1;
2785 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
2787 #define _BAUDCON_ABDEN 0x01
2788 #define _BAUDCON_WUE 0x02
2789 #define _BAUDCON_BRG16 0x08
2790 #define _BAUDCON_SCKP 0x10
2791 #define _BAUDCON_RCIDL 0x40
2792 #define _BAUDCON_ABDOVF 0x80
2794 //==============================================================================
2797 //==============================================================================
2800 extern __at(0x019F) __sfr BAUDCON1
;
2811 unsigned ABDOVF
: 1;
2814 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits
;
2816 #define _BAUDCON1_ABDEN 0x01
2817 #define _BAUDCON1_WUE 0x02
2818 #define _BAUDCON1_BRG16 0x08
2819 #define _BAUDCON1_SCKP 0x10
2820 #define _BAUDCON1_RCIDL 0x40
2821 #define _BAUDCON1_ABDOVF 0x80
2823 //==============================================================================
2826 //==============================================================================
2829 extern __at(0x019F) __sfr BAUDCTL
;
2840 unsigned ABDOVF
: 1;
2843 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits
;
2845 #define _BAUDCTL_ABDEN 0x01
2846 #define _BAUDCTL_WUE 0x02
2847 #define _BAUDCTL_BRG16 0x08
2848 #define _BAUDCTL_SCKP 0x10
2849 #define _BAUDCTL_RCIDL 0x40
2850 #define _BAUDCTL_ABDOVF 0x80
2852 //==============================================================================
2855 //==============================================================================
2858 extern __at(0x019F) __sfr BAUDCTL1
;
2869 unsigned ABDOVF
: 1;
2872 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits
;
2874 #define _BAUDCTL1_ABDEN 0x01
2875 #define _BAUDCTL1_WUE 0x02
2876 #define _BAUDCTL1_BRG16 0x08
2877 #define _BAUDCTL1_SCKP 0x10
2878 #define _BAUDCTL1_RCIDL 0x40
2879 #define _BAUDCTL1_ABDOVF 0x80
2881 //==============================================================================
2884 //==============================================================================
2887 extern __at(0x020C) __sfr WPUA
;
2901 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
2912 //==============================================================================
2915 //==============================================================================
2918 extern __at(0x020D) __sfr WPUB
;
2932 extern __at(0x020D) volatile __WPUBbits_t WPUBbits
;
2943 //==============================================================================
2946 //==============================================================================
2949 extern __at(0x020E) __sfr WPUC
;
2963 extern __at(0x020E) volatile __WPUCbits_t WPUCbits
;
2974 //==============================================================================
2977 //==============================================================================
2980 extern __at(0x020F) __sfr WPUD
;
2994 extern __at(0x020F) volatile __WPUDbits_t WPUDbits
;
3005 //==============================================================================
3008 //==============================================================================
3011 extern __at(0x0210) __sfr WPUE
;
3034 extern __at(0x0210) volatile __WPUEbits_t WPUEbits
;
3041 //==============================================================================
3044 //==============================================================================
3047 extern __at(0x0211) __sfr SSP1BUF
;
3053 unsigned SSP1BUF0
: 1;
3054 unsigned SSP1BUF1
: 1;
3055 unsigned SSP1BUF2
: 1;
3056 unsigned SSP1BUF3
: 1;
3057 unsigned SSP1BUF4
: 1;
3058 unsigned SSP1BUF5
: 1;
3059 unsigned SSP1BUF6
: 1;
3060 unsigned SSP1BUF7
: 1;
3076 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits
;
3078 #define _SSP1BUF0 0x01
3080 #define _SSP1BUF1 0x02
3082 #define _SSP1BUF2 0x04
3084 #define _SSP1BUF3 0x08
3086 #define _SSP1BUF4 0x10
3088 #define _SSP1BUF5 0x20
3090 #define _SSP1BUF6 0x40
3092 #define _SSP1BUF7 0x80
3095 //==============================================================================
3098 //==============================================================================
3101 extern __at(0x0211) __sfr SSPBUF
;
3107 unsigned SSP1BUF0
: 1;
3108 unsigned SSP1BUF1
: 1;
3109 unsigned SSP1BUF2
: 1;
3110 unsigned SSP1BUF3
: 1;
3111 unsigned SSP1BUF4
: 1;
3112 unsigned SSP1BUF5
: 1;
3113 unsigned SSP1BUF6
: 1;
3114 unsigned SSP1BUF7
: 1;
3130 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits
;
3132 #define _SSPBUF_SSP1BUF0 0x01
3133 #define _SSPBUF_BUF0 0x01
3134 #define _SSPBUF_SSP1BUF1 0x02
3135 #define _SSPBUF_BUF1 0x02
3136 #define _SSPBUF_SSP1BUF2 0x04
3137 #define _SSPBUF_BUF2 0x04
3138 #define _SSPBUF_SSP1BUF3 0x08
3139 #define _SSPBUF_BUF3 0x08
3140 #define _SSPBUF_SSP1BUF4 0x10
3141 #define _SSPBUF_BUF4 0x10
3142 #define _SSPBUF_SSP1BUF5 0x20
3143 #define _SSPBUF_BUF5 0x20
3144 #define _SSPBUF_SSP1BUF6 0x40
3145 #define _SSPBUF_BUF6 0x40
3146 #define _SSPBUF_SSP1BUF7 0x80
3147 #define _SSPBUF_BUF7 0x80
3149 //==============================================================================
3152 //==============================================================================
3155 extern __at(0x0212) __sfr SSP1ADD
;
3161 unsigned SSP1ADD0
: 1;
3162 unsigned SSP1ADD1
: 1;
3163 unsigned SSP1ADD2
: 1;
3164 unsigned SSP1ADD3
: 1;
3165 unsigned SSP1ADD4
: 1;
3166 unsigned SSP1ADD5
: 1;
3167 unsigned SSP1ADD6
: 1;
3168 unsigned SSP1ADD7
: 1;
3184 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits
;
3186 #define _SSP1ADD0 0x01
3188 #define _SSP1ADD1 0x02
3190 #define _SSP1ADD2 0x04
3192 #define _SSP1ADD3 0x08
3194 #define _SSP1ADD4 0x10
3196 #define _SSP1ADD5 0x20
3198 #define _SSP1ADD6 0x40
3200 #define _SSP1ADD7 0x80
3203 //==============================================================================
3206 //==============================================================================
3209 extern __at(0x0212) __sfr SSPADD
;
3215 unsigned SSP1ADD0
: 1;
3216 unsigned SSP1ADD1
: 1;
3217 unsigned SSP1ADD2
: 1;
3218 unsigned SSP1ADD3
: 1;
3219 unsigned SSP1ADD4
: 1;
3220 unsigned SSP1ADD5
: 1;
3221 unsigned SSP1ADD6
: 1;
3222 unsigned SSP1ADD7
: 1;
3238 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits
;
3240 #define _SSPADD_SSP1ADD0 0x01
3241 #define _SSPADD_ADD0 0x01
3242 #define _SSPADD_SSP1ADD1 0x02
3243 #define _SSPADD_ADD1 0x02
3244 #define _SSPADD_SSP1ADD2 0x04
3245 #define _SSPADD_ADD2 0x04
3246 #define _SSPADD_SSP1ADD3 0x08
3247 #define _SSPADD_ADD3 0x08
3248 #define _SSPADD_SSP1ADD4 0x10
3249 #define _SSPADD_ADD4 0x10
3250 #define _SSPADD_SSP1ADD5 0x20
3251 #define _SSPADD_ADD5 0x20
3252 #define _SSPADD_SSP1ADD6 0x40
3253 #define _SSPADD_ADD6 0x40
3254 #define _SSPADD_SSP1ADD7 0x80
3255 #define _SSPADD_ADD7 0x80
3257 //==============================================================================
3260 //==============================================================================
3263 extern __at(0x0213) __sfr SSP1MSK
;
3269 unsigned SSP1MSK0
: 1;
3270 unsigned SSP1MSK1
: 1;
3271 unsigned SSP1MSK2
: 1;
3272 unsigned SSP1MSK3
: 1;
3273 unsigned SSP1MSK4
: 1;
3274 unsigned SSP1MSK5
: 1;
3275 unsigned SSP1MSK6
: 1;
3276 unsigned SSP1MSK7
: 1;
3292 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits
;
3294 #define _SSP1MSK0 0x01
3296 #define _SSP1MSK1 0x02
3298 #define _SSP1MSK2 0x04
3300 #define _SSP1MSK3 0x08
3302 #define _SSP1MSK4 0x10
3304 #define _SSP1MSK5 0x20
3306 #define _SSP1MSK6 0x40
3308 #define _SSP1MSK7 0x80
3311 //==============================================================================
3314 //==============================================================================
3317 extern __at(0x0213) __sfr SSPMSK
;
3323 unsigned SSP1MSK0
: 1;
3324 unsigned SSP1MSK1
: 1;
3325 unsigned SSP1MSK2
: 1;
3326 unsigned SSP1MSK3
: 1;
3327 unsigned SSP1MSK4
: 1;
3328 unsigned SSP1MSK5
: 1;
3329 unsigned SSP1MSK6
: 1;
3330 unsigned SSP1MSK7
: 1;
3346 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits
;
3348 #define _SSPMSK_SSP1MSK0 0x01
3349 #define _SSPMSK_MSK0 0x01
3350 #define _SSPMSK_SSP1MSK1 0x02
3351 #define _SSPMSK_MSK1 0x02
3352 #define _SSPMSK_SSP1MSK2 0x04
3353 #define _SSPMSK_MSK2 0x04
3354 #define _SSPMSK_SSP1MSK3 0x08
3355 #define _SSPMSK_MSK3 0x08
3356 #define _SSPMSK_SSP1MSK4 0x10
3357 #define _SSPMSK_MSK4 0x10
3358 #define _SSPMSK_SSP1MSK5 0x20
3359 #define _SSPMSK_MSK5 0x20
3360 #define _SSPMSK_SSP1MSK6 0x40
3361 #define _SSPMSK_MSK6 0x40
3362 #define _SSPMSK_SSP1MSK7 0x80
3363 #define _SSPMSK_MSK7 0x80
3365 //==============================================================================
3368 //==============================================================================
3371 extern __at(0x0214) __sfr SSP1STAT
;
3377 unsigned R_NOT_W
: 1;
3380 unsigned D_NOT_A
: 1;
3385 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits
;
3389 #define _R_NOT_W 0x04
3392 #define _D_NOT_A 0x20
3396 //==============================================================================
3399 //==============================================================================
3402 extern __at(0x0214) __sfr SSPSTAT
;
3408 unsigned R_NOT_W
: 1;
3411 unsigned D_NOT_A
: 1;
3416 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits
;
3418 #define _SSPSTAT_BF 0x01
3419 #define _SSPSTAT_UA 0x02
3420 #define _SSPSTAT_R_NOT_W 0x04
3421 #define _SSPSTAT_S 0x08
3422 #define _SSPSTAT_P 0x10
3423 #define _SSPSTAT_D_NOT_A 0x20
3424 #define _SSPSTAT_CKE 0x40
3425 #define _SSPSTAT_SMP 0x80
3427 //==============================================================================
3430 //==============================================================================
3433 extern __at(0x0215) __sfr SSP1CON
;
3456 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits
;
3467 //==============================================================================
3470 //==============================================================================
3473 extern __at(0x0215) __sfr SSP1CON1
;
3496 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits
;
3498 #define _SSP1CON1_SSPM0 0x01
3499 #define _SSP1CON1_SSPM1 0x02
3500 #define _SSP1CON1_SSPM2 0x04
3501 #define _SSP1CON1_SSPM3 0x08
3502 #define _SSP1CON1_CKP 0x10
3503 #define _SSP1CON1_SSPEN 0x20
3504 #define _SSP1CON1_SSPOV 0x40
3505 #define _SSP1CON1_WCOL 0x80
3507 //==============================================================================
3510 //==============================================================================
3513 extern __at(0x0215) __sfr SSPCON
;
3536 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits
;
3538 #define _SSPCON_SSPM0 0x01
3539 #define _SSPCON_SSPM1 0x02
3540 #define _SSPCON_SSPM2 0x04
3541 #define _SSPCON_SSPM3 0x08
3542 #define _SSPCON_CKP 0x10
3543 #define _SSPCON_SSPEN 0x20
3544 #define _SSPCON_SSPOV 0x40
3545 #define _SSPCON_WCOL 0x80
3547 //==============================================================================
3550 //==============================================================================
3553 extern __at(0x0215) __sfr SSPCON1
;
3576 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits
;
3578 #define _SSPCON1_SSPM0 0x01
3579 #define _SSPCON1_SSPM1 0x02
3580 #define _SSPCON1_SSPM2 0x04
3581 #define _SSPCON1_SSPM3 0x08
3582 #define _SSPCON1_CKP 0x10
3583 #define _SSPCON1_SSPEN 0x20
3584 #define _SSPCON1_SSPOV 0x40
3585 #define _SSPCON1_WCOL 0x80
3587 //==============================================================================
3590 //==============================================================================
3593 extern __at(0x0216) __sfr SSP1CON2
;
3603 unsigned ACKSTAT
: 1;
3607 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits
;
3615 #define _ACKSTAT 0x40
3618 //==============================================================================
3621 //==============================================================================
3624 extern __at(0x0216) __sfr SSPCON2
;
3634 unsigned ACKSTAT
: 1;
3638 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits
;
3640 #define _SSPCON2_SEN 0x01
3641 #define _SSPCON2_RSEN 0x02
3642 #define _SSPCON2_PEN 0x04
3643 #define _SSPCON2_RCEN 0x08
3644 #define _SSPCON2_ACKEN 0x10
3645 #define _SSPCON2_ACKDT 0x20
3646 #define _SSPCON2_ACKSTAT 0x40
3647 #define _SSPCON2_GCEN 0x80
3649 //==============================================================================
3652 //==============================================================================
3655 extern __at(0x0217) __sfr SSP1CON3
;
3666 unsigned ACKTIM
: 1;
3669 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits
;
3678 #define _ACKTIM 0x80
3680 //==============================================================================
3683 //==============================================================================
3686 extern __at(0x0217) __sfr SSPCON3
;
3697 unsigned ACKTIM
: 1;
3700 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits
;
3702 #define _SSPCON3_DHEN 0x01
3703 #define _SSPCON3_AHEN 0x02
3704 #define _SSPCON3_SBCDE 0x04
3705 #define _SSPCON3_SDAHT 0x08
3706 #define _SSPCON3_BOEN 0x10
3707 #define _SSPCON3_SCIE 0x20
3708 #define _SSPCON3_PCIE 0x40
3709 #define _SSPCON3_ACKTIM 0x80
3711 //==============================================================================
3714 //==============================================================================
3717 extern __at(0x028C) __sfr ODCONA
;
3721 unsigned ODCONA0
: 1;
3722 unsigned ODCONA1
: 1;
3723 unsigned ODCONA2
: 1;
3724 unsigned ODCONA3
: 1;
3725 unsigned ODCONA4
: 1;
3726 unsigned ODCONA5
: 1;
3727 unsigned ODCONA6
: 1;
3728 unsigned ODCONA7
: 1;
3731 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
3733 #define _ODCONA0 0x01
3734 #define _ODCONA1 0x02
3735 #define _ODCONA2 0x04
3736 #define _ODCONA3 0x08
3737 #define _ODCONA4 0x10
3738 #define _ODCONA5 0x20
3739 #define _ODCONA6 0x40
3740 #define _ODCONA7 0x80
3742 //==============================================================================
3745 //==============================================================================
3748 extern __at(0x028D) __sfr ODCONB
;
3752 unsigned ODCONB0
: 1;
3753 unsigned ODCONB1
: 1;
3754 unsigned ODCONB2
: 1;
3755 unsigned ODCONB3
: 1;
3756 unsigned ODCONB4
: 1;
3757 unsigned ODCONB5
: 1;
3758 unsigned ODCONB6
: 1;
3759 unsigned ODCONB7
: 1;
3762 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits
;
3764 #define _ODCONB0 0x01
3765 #define _ODCONB1 0x02
3766 #define _ODCONB2 0x04
3767 #define _ODCONB3 0x08
3768 #define _ODCONB4 0x10
3769 #define _ODCONB5 0x20
3770 #define _ODCONB6 0x40
3771 #define _ODCONB7 0x80
3773 //==============================================================================
3776 //==============================================================================
3779 extern __at(0x028E) __sfr ODCONC
;
3783 unsigned ODCONC0
: 1;
3784 unsigned ODCONC1
: 1;
3785 unsigned ODCONC2
: 1;
3786 unsigned ODCONC3
: 1;
3787 unsigned ODCONC4
: 1;
3788 unsigned ODCONC5
: 1;
3789 unsigned ODCONC6
: 1;
3790 unsigned ODCONC7
: 1;
3793 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits
;
3795 #define _ODCONC0 0x01
3796 #define _ODCONC1 0x02
3797 #define _ODCONC2 0x04
3798 #define _ODCONC3 0x08
3799 #define _ODCONC4 0x10
3800 #define _ODCONC5 0x20
3801 #define _ODCONC6 0x40
3802 #define _ODCONC7 0x80
3804 //==============================================================================
3807 //==============================================================================
3810 extern __at(0x028F) __sfr ODCOND
;
3814 unsigned ODCOND0
: 1;
3815 unsigned ODCOND1
: 1;
3816 unsigned ODCOND2
: 1;
3817 unsigned ODCOND3
: 1;
3818 unsigned ODCOND4
: 1;
3819 unsigned ODCOND5
: 1;
3820 unsigned ODCOND6
: 1;
3821 unsigned ODCOND7
: 1;
3824 extern __at(0x028F) volatile __ODCONDbits_t ODCONDbits
;
3826 #define _ODCOND0 0x01
3827 #define _ODCOND1 0x02
3828 #define _ODCOND2 0x04
3829 #define _ODCOND3 0x08
3830 #define _ODCOND4 0x10
3831 #define _ODCOND5 0x20
3832 #define _ODCOND6 0x40
3833 #define _ODCOND7 0x80
3835 //==============================================================================
3838 //==============================================================================
3841 extern __at(0x0290) __sfr ODCONE
;
3847 unsigned ODCONE0
: 1;
3848 unsigned ODCONE1
: 1;
3849 unsigned ODCONE2
: 1;
3859 unsigned ODCONE
: 3;
3864 extern __at(0x0290) volatile __ODCONEbits_t ODCONEbits
;
3866 #define _ODCONE0 0x01
3867 #define _ODCONE1 0x02
3868 #define _ODCONE2 0x04
3870 //==============================================================================
3872 extern __at(0x0291) __sfr CCPR1
;
3873 extern __at(0x0291) __sfr CCPR1L
;
3874 extern __at(0x0292) __sfr CCPR1H
;
3876 //==============================================================================
3879 extern __at(0x0293) __sfr CCP1CON
;
3885 unsigned CCP1M0
: 1;
3886 unsigned CCP1M1
: 1;
3887 unsigned CCP1M2
: 1;
3888 unsigned CCP1M3
: 1;
3909 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits
;
3911 #define _CCP1M0 0x01
3912 #define _CCP1M1 0x02
3913 #define _CCP1M2 0x04
3914 #define _CCP1M3 0x08
3918 //==============================================================================
3920 extern __at(0x0298) __sfr CCPR2
;
3921 extern __at(0x0298) __sfr CCPR2L
;
3922 extern __at(0x0299) __sfr CCPR2H
;
3924 //==============================================================================
3927 extern __at(0x029A) __sfr CCP2CON
;
3933 unsigned CCP2M0
: 1;
3934 unsigned CCP2M1
: 1;
3935 unsigned CCP2M2
: 1;
3936 unsigned CCP2M3
: 1;
3957 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits
;
3959 #define _CCP2M0 0x01
3960 #define _CCP2M1 0x02
3961 #define _CCP2M2 0x04
3962 #define _CCP2M3 0x08
3966 //==============================================================================
3969 //==============================================================================
3972 extern __at(0x030C) __sfr SLRCONA
;
3976 unsigned SLRCONA0
: 1;
3977 unsigned SLRCONA1
: 1;
3978 unsigned SLRCONA2
: 1;
3979 unsigned SLRCONA3
: 1;
3980 unsigned SLRCONA4
: 1;
3981 unsigned SLRCONA5
: 1;
3982 unsigned SLRCONA6
: 1;
3983 unsigned SLRCONA7
: 1;
3986 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
3988 #define _SLRCONA0 0x01
3989 #define _SLRCONA1 0x02
3990 #define _SLRCONA2 0x04
3991 #define _SLRCONA3 0x08
3992 #define _SLRCONA4 0x10
3993 #define _SLRCONA5 0x20
3994 #define _SLRCONA6 0x40
3995 #define _SLRCONA7 0x80
3997 //==============================================================================
4000 //==============================================================================
4003 extern __at(0x030D) __sfr SLRCONB
;
4007 unsigned SLRCONB0
: 1;
4008 unsigned SLRCONB1
: 1;
4009 unsigned SLRCONB2
: 1;
4010 unsigned SLRCONB3
: 1;
4011 unsigned SLRCONB4
: 1;
4012 unsigned SLRCONB5
: 1;
4013 unsigned SLRCONB6
: 1;
4014 unsigned SLRCONB7
: 1;
4017 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits
;
4019 #define _SLRCONB0 0x01
4020 #define _SLRCONB1 0x02
4021 #define _SLRCONB2 0x04
4022 #define _SLRCONB3 0x08
4023 #define _SLRCONB4 0x10
4024 #define _SLRCONB5 0x20
4025 #define _SLRCONB6 0x40
4026 #define _SLRCONB7 0x80
4028 //==============================================================================
4031 //==============================================================================
4034 extern __at(0x030E) __sfr SLRCONC
;
4038 unsigned SLRCONC0
: 1;
4039 unsigned SLRCONC1
: 1;
4040 unsigned SLRCONC2
: 1;
4041 unsigned SLRCONC3
: 1;
4042 unsigned SLRCONC4
: 1;
4043 unsigned SLRCONC5
: 1;
4044 unsigned SLRCONC6
: 1;
4045 unsigned SLRCONC7
: 1;
4048 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits
;
4050 #define _SLRCONC0 0x01
4051 #define _SLRCONC1 0x02
4052 #define _SLRCONC2 0x04
4053 #define _SLRCONC3 0x08
4054 #define _SLRCONC4 0x10
4055 #define _SLRCONC5 0x20
4056 #define _SLRCONC6 0x40
4057 #define _SLRCONC7 0x80
4059 //==============================================================================
4062 //==============================================================================
4065 extern __at(0x030F) __sfr SLRCOND
;
4069 unsigned SLRCOND0
: 1;
4070 unsigned SLRCOND1
: 1;
4071 unsigned SLRCOND2
: 1;
4072 unsigned SLRCOND3
: 1;
4073 unsigned SLRCOND4
: 1;
4074 unsigned SLRCOND5
: 1;
4075 unsigned SLRCOND6
: 1;
4076 unsigned SLRCOND7
: 1;
4079 extern __at(0x030F) volatile __SLRCONDbits_t SLRCONDbits
;
4081 #define _SLRCOND0 0x01
4082 #define _SLRCOND1 0x02
4083 #define _SLRCOND2 0x04
4084 #define _SLRCOND3 0x08
4085 #define _SLRCOND4 0x10
4086 #define _SLRCOND5 0x20
4087 #define _SLRCOND6 0x40
4088 #define _SLRCOND7 0x80
4090 //==============================================================================
4093 //==============================================================================
4096 extern __at(0x0310) __sfr SLRCONE
;
4102 unsigned SLRCONE0
: 1;
4103 unsigned SLRCONE1
: 1;
4104 unsigned SLRCONE2
: 1;
4114 unsigned SLRCONE
: 3;
4119 extern __at(0x0310) volatile __SLRCONEbits_t SLRCONEbits
;
4121 #define _SLRCONE0 0x01
4122 #define _SLRCONE1 0x02
4123 #define _SLRCONE2 0x04
4125 //==============================================================================
4127 extern __at(0x0311) __sfr CCPR3
;
4128 extern __at(0x0311) __sfr CCPR3L
;
4129 extern __at(0x0312) __sfr CCPR3H
;
4131 //==============================================================================
4134 extern __at(0x0313) __sfr CCP3CON
;
4140 unsigned CCP3M0
: 1;
4141 unsigned CCP3M1
: 1;
4142 unsigned CCP3M2
: 1;
4143 unsigned CCP3M3
: 1;
4164 extern __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits
;
4166 #define _CCP3M0 0x01
4167 #define _CCP3M1 0x02
4168 #define _CCP3M2 0x04
4169 #define _CCP3M3 0x08
4173 //==============================================================================
4176 //==============================================================================
4179 extern __at(0x038C) __sfr INLVLA
;
4183 unsigned INLVLA0
: 1;
4184 unsigned INLVLA1
: 1;
4185 unsigned INLVLA2
: 1;
4186 unsigned INLVLA3
: 1;
4187 unsigned INLVLA4
: 1;
4188 unsigned INLVLA5
: 1;
4189 unsigned INLVLA6
: 1;
4190 unsigned INLVLA7
: 1;
4193 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
4195 #define _INLVLA0 0x01
4196 #define _INLVLA1 0x02
4197 #define _INLVLA2 0x04
4198 #define _INLVLA3 0x08
4199 #define _INLVLA4 0x10
4200 #define _INLVLA5 0x20
4201 #define _INLVLA6 0x40
4202 #define _INLVLA7 0x80
4204 //==============================================================================
4207 //==============================================================================
4210 extern __at(0x038D) __sfr INLVLB
;
4214 unsigned INLVLB0
: 1;
4215 unsigned INLVLB1
: 1;
4216 unsigned INLVLB2
: 1;
4217 unsigned INLVLB3
: 1;
4218 unsigned INLVLB4
: 1;
4219 unsigned INLVLB5
: 1;
4220 unsigned INLVLB6
: 1;
4221 unsigned INLVLB7
: 1;
4224 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits
;
4226 #define _INLVLB0 0x01
4227 #define _INLVLB1 0x02
4228 #define _INLVLB2 0x04
4229 #define _INLVLB3 0x08
4230 #define _INLVLB4 0x10
4231 #define _INLVLB5 0x20
4232 #define _INLVLB6 0x40
4233 #define _INLVLB7 0x80
4235 //==============================================================================
4238 //==============================================================================
4241 extern __at(0x038E) __sfr INLVLC
;
4245 unsigned INLVLC0
: 1;
4246 unsigned INLVLC1
: 1;
4247 unsigned INLVLC2
: 1;
4248 unsigned INLVLC3
: 1;
4249 unsigned INLVLC4
: 1;
4250 unsigned INLVLC5
: 1;
4251 unsigned INLVLC6
: 1;
4252 unsigned INLVLC7
: 1;
4255 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits
;
4257 #define _INLVLC0 0x01
4258 #define _INLVLC1 0x02
4259 #define _INLVLC2 0x04
4260 #define _INLVLC3 0x08
4261 #define _INLVLC4 0x10
4262 #define _INLVLC5 0x20
4263 #define _INLVLC6 0x40
4264 #define _INLVLC7 0x80
4266 //==============================================================================
4269 //==============================================================================
4272 extern __at(0x038F) __sfr INLVLD
;
4276 unsigned INLVLD0
: 1;
4277 unsigned INLVLD1
: 1;
4278 unsigned INLVLD2
: 1;
4279 unsigned INLVLD3
: 1;
4280 unsigned INLVLD4
: 1;
4281 unsigned INLVLD5
: 1;
4282 unsigned INLVLD6
: 1;
4283 unsigned INLVLD7
: 1;
4286 extern __at(0x038F) volatile __INLVLDbits_t INLVLDbits
;
4288 #define _INLVLD0 0x01
4289 #define _INLVLD1 0x02
4290 #define _INLVLD2 0x04
4291 #define _INLVLD3 0x08
4292 #define _INLVLD4 0x10
4293 #define _INLVLD5 0x20
4294 #define _INLVLD6 0x40
4295 #define _INLVLD7 0x80
4297 //==============================================================================
4300 //==============================================================================
4303 extern __at(0x0390) __sfr INLVLE
;
4309 unsigned INLVLE0
: 1;
4310 unsigned INLVLE1
: 1;
4311 unsigned INLVLE2
: 1;
4312 unsigned INLVLE3
: 1;
4321 unsigned INLVLE
: 4;
4326 extern __at(0x0390) volatile __INLVLEbits_t INLVLEbits
;
4328 #define _INLVLE0 0x01
4329 #define _INLVLE1 0x02
4330 #define _INLVLE2 0x04
4331 #define _INLVLE3 0x08
4333 //==============================================================================
4336 //==============================================================================
4339 extern __at(0x0391) __sfr IOCAP
;
4343 unsigned IOCAP0
: 1;
4344 unsigned IOCAP1
: 1;
4345 unsigned IOCAP2
: 1;
4346 unsigned IOCAP3
: 1;
4347 unsigned IOCAP4
: 1;
4348 unsigned IOCAP5
: 1;
4349 unsigned IOCAP6
: 1;
4350 unsigned IOCAP7
: 1;
4353 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
4355 #define _IOCAP0 0x01
4356 #define _IOCAP1 0x02
4357 #define _IOCAP2 0x04
4358 #define _IOCAP3 0x08
4359 #define _IOCAP4 0x10
4360 #define _IOCAP5 0x20
4361 #define _IOCAP6 0x40
4362 #define _IOCAP7 0x80
4364 //==============================================================================
4367 //==============================================================================
4370 extern __at(0x0392) __sfr IOCAN
;
4374 unsigned IOCAN0
: 1;
4375 unsigned IOCAN1
: 1;
4376 unsigned IOCAN2
: 1;
4377 unsigned IOCAN3
: 1;
4378 unsigned IOCAN4
: 1;
4379 unsigned IOCAN5
: 1;
4380 unsigned IOCAN6
: 1;
4381 unsigned IOCAN7
: 1;
4384 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
4386 #define _IOCAN0 0x01
4387 #define _IOCAN1 0x02
4388 #define _IOCAN2 0x04
4389 #define _IOCAN3 0x08
4390 #define _IOCAN4 0x10
4391 #define _IOCAN5 0x20
4392 #define _IOCAN6 0x40
4393 #define _IOCAN7 0x80
4395 //==============================================================================
4398 //==============================================================================
4401 extern __at(0x0393) __sfr IOCAF
;
4405 unsigned IOCAF0
: 1;
4406 unsigned IOCAF1
: 1;
4407 unsigned IOCAF2
: 1;
4408 unsigned IOCAF3
: 1;
4409 unsigned IOCAF4
: 1;
4410 unsigned IOCAF5
: 1;
4411 unsigned IOCAF6
: 1;
4412 unsigned IOCAF7
: 1;
4415 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
4417 #define _IOCAF0 0x01
4418 #define _IOCAF1 0x02
4419 #define _IOCAF2 0x04
4420 #define _IOCAF3 0x08
4421 #define _IOCAF4 0x10
4422 #define _IOCAF5 0x20
4423 #define _IOCAF6 0x40
4424 #define _IOCAF7 0x80
4426 //==============================================================================
4429 //==============================================================================
4432 extern __at(0x0394) __sfr IOCBP
;
4436 unsigned IOCBP0
: 1;
4437 unsigned IOCBP1
: 1;
4438 unsigned IOCBP2
: 1;
4439 unsigned IOCBP3
: 1;
4440 unsigned IOCBP4
: 1;
4441 unsigned IOCBP5
: 1;
4442 unsigned IOCBP6
: 1;
4443 unsigned IOCBP7
: 1;
4446 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits
;
4448 #define _IOCBP0 0x01
4449 #define _IOCBP1 0x02
4450 #define _IOCBP2 0x04
4451 #define _IOCBP3 0x08
4452 #define _IOCBP4 0x10
4453 #define _IOCBP5 0x20
4454 #define _IOCBP6 0x40
4455 #define _IOCBP7 0x80
4457 //==============================================================================
4460 //==============================================================================
4463 extern __at(0x0395) __sfr IOCBN
;
4467 unsigned IOCBN0
: 1;
4468 unsigned IOCBN1
: 1;
4469 unsigned IOCBN2
: 1;
4470 unsigned IOCBN3
: 1;
4471 unsigned IOCBN4
: 1;
4472 unsigned IOCBN5
: 1;
4473 unsigned IOCBN6
: 1;
4474 unsigned IOCBN7
: 1;
4477 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits
;
4479 #define _IOCBN0 0x01
4480 #define _IOCBN1 0x02
4481 #define _IOCBN2 0x04
4482 #define _IOCBN3 0x08
4483 #define _IOCBN4 0x10
4484 #define _IOCBN5 0x20
4485 #define _IOCBN6 0x40
4486 #define _IOCBN7 0x80
4488 //==============================================================================
4491 //==============================================================================
4494 extern __at(0x0396) __sfr IOCBF
;
4498 unsigned IOCBF0
: 1;
4499 unsigned IOCBF1
: 1;
4500 unsigned IOCBF2
: 1;
4501 unsigned IOCBF3
: 1;
4502 unsigned IOCBF4
: 1;
4503 unsigned IOCBF5
: 1;
4504 unsigned IOCBF6
: 1;
4505 unsigned IOCBF7
: 1;
4508 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits
;
4510 #define _IOCBF0 0x01
4511 #define _IOCBF1 0x02
4512 #define _IOCBF2 0x04
4513 #define _IOCBF3 0x08
4514 #define _IOCBF4 0x10
4515 #define _IOCBF5 0x20
4516 #define _IOCBF6 0x40
4517 #define _IOCBF7 0x80
4519 //==============================================================================
4522 //==============================================================================
4525 extern __at(0x0397) __sfr IOCCP
;
4529 unsigned IOCCP0
: 1;
4530 unsigned IOCCP1
: 1;
4531 unsigned IOCCP2
: 1;
4532 unsigned IOCCP3
: 1;
4533 unsigned IOCCP4
: 1;
4534 unsigned IOCCP5
: 1;
4535 unsigned IOCCP6
: 1;
4536 unsigned IOCCP7
: 1;
4539 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits
;
4541 #define _IOCCP0 0x01
4542 #define _IOCCP1 0x02
4543 #define _IOCCP2 0x04
4544 #define _IOCCP3 0x08
4545 #define _IOCCP4 0x10
4546 #define _IOCCP5 0x20
4547 #define _IOCCP6 0x40
4548 #define _IOCCP7 0x80
4550 //==============================================================================
4553 //==============================================================================
4556 extern __at(0x0398) __sfr IOCCN
;
4560 unsigned IOCCN0
: 1;
4561 unsigned IOCCN1
: 1;
4562 unsigned IOCCN2
: 1;
4563 unsigned IOCCN3
: 1;
4564 unsigned IOCCN4
: 1;
4565 unsigned IOCCN5
: 1;
4566 unsigned IOCCN6
: 1;
4567 unsigned IOCCN7
: 1;
4570 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits
;
4572 #define _IOCCN0 0x01
4573 #define _IOCCN1 0x02
4574 #define _IOCCN2 0x04
4575 #define _IOCCN3 0x08
4576 #define _IOCCN4 0x10
4577 #define _IOCCN5 0x20
4578 #define _IOCCN6 0x40
4579 #define _IOCCN7 0x80
4581 //==============================================================================
4584 //==============================================================================
4587 extern __at(0x0399) __sfr IOCCF
;
4591 unsigned IOCCF0
: 1;
4592 unsigned IOCCF1
: 1;
4593 unsigned IOCCF2
: 1;
4594 unsigned IOCCF3
: 1;
4595 unsigned IOCCF4
: 1;
4596 unsigned IOCCF5
: 1;
4597 unsigned IOCCF6
: 1;
4598 unsigned IOCCF7
: 1;
4601 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits
;
4603 #define _IOCCF0 0x01
4604 #define _IOCCF1 0x02
4605 #define _IOCCF2 0x04
4606 #define _IOCCF3 0x08
4607 #define _IOCCF4 0x10
4608 #define _IOCCF5 0x20
4609 #define _IOCCF6 0x40
4610 #define _IOCCF7 0x80
4612 //==============================================================================
4615 //==============================================================================
4618 extern __at(0x039D) __sfr IOCEP
;
4625 unsigned IOCEP3
: 1;
4632 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits
;
4634 #define _IOCEP3 0x08
4636 //==============================================================================
4639 //==============================================================================
4642 extern __at(0x039E) __sfr IOCEN
;
4649 unsigned IOCEN3
: 1;
4656 extern __at(0x039E) volatile __IOCENbits_t IOCENbits
;
4658 #define _IOCEN3 0x08
4660 //==============================================================================
4663 //==============================================================================
4666 extern __at(0x039F) __sfr IOCEF
;
4673 unsigned IOCEF3
: 1;
4680 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits
;
4682 #define _IOCEF3 0x08
4684 //==============================================================================
4687 //==============================================================================
4690 extern __at(0x0511) __sfr OPA1CON
;
4696 unsigned OPA1PCH0
: 1;
4697 unsigned OPA1PCH1
: 1;
4702 unsigned OPA1SP
: 1;
4703 unsigned OPA1EN
: 1;
4726 unsigned OPA1PCH
: 2;
4731 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits
;
4733 #define _OPA1PCH0 0x01
4735 #define _OPA1PCH1 0x02
4737 #define _OPA1SP 0x40
4739 #define _OPA1EN 0x80
4742 //==============================================================================
4745 //==============================================================================
4748 extern __at(0x0513) __sfr OPA2CON
;
4754 unsigned OPA2PCH0
: 1;
4755 unsigned OPA2PCH1
: 1;
4760 unsigned OPA2SP
: 1;
4761 unsigned OPA2EN
: 1;
4778 unsigned OPA2PCH
: 2;
4789 extern __at(0x0513) volatile __OPA2CONbits_t OPA2CONbits
;
4791 #define _OPA2CON_OPA2PCH0 0x01
4792 #define _OPA2CON_PCH0 0x01
4793 #define _OPA2CON_OPA2PCH1 0x02
4794 #define _OPA2CON_PCH1 0x02
4795 #define _OPA2CON_OPA2SP 0x40
4796 #define _OPA2CON_SP 0x40
4797 #define _OPA2CON_OPA2EN 0x80
4798 #define _OPA2CON_EN 0x80
4800 //==============================================================================
4803 //==============================================================================
4806 extern __at(0x0515) __sfr OPA3CON
;
4812 unsigned OPA3PCH0
: 1;
4813 unsigned OPA3PCH1
: 1;
4818 unsigned OPA3SP
: 1;
4819 unsigned OPA3EN
: 1;
4842 unsigned OPA3PCH
: 2;
4847 extern __at(0x0515) volatile __OPA3CONbits_t OPA3CONbits
;
4849 #define _OPA3CON_OPA3PCH0 0x01
4850 #define _OPA3CON_PCH0 0x01
4851 #define _OPA3CON_OPA3PCH1 0x02
4852 #define _OPA3CON_PCH1 0x02
4853 #define _OPA3CON_OPA3SP 0x40
4854 #define _OPA3CON_SP 0x40
4855 #define _OPA3CON_OPA3EN 0x80
4856 #define _OPA3CON_EN 0x80
4858 //==============================================================================
4861 //==============================================================================
4864 extern __at(0x051A) __sfr CLKRCON
;
4870 unsigned CLKRDIV0
: 1;
4871 unsigned CLKRDIV1
: 1;
4872 unsigned CLKRDIV2
: 1;
4873 unsigned CLKRDC0
: 1;
4874 unsigned CLKRDC1
: 1;
4875 unsigned CLKRSLR
: 1;
4876 unsigned CLKROE
: 1;
4877 unsigned CLKREN
: 1;
4882 unsigned CLKRDIV
: 3;
4889 unsigned CLKRDC
: 2;
4894 extern __at(0x051A) volatile __CLKRCONbits_t CLKRCONbits
;
4896 #define _CLKRDIV0 0x01
4897 #define _CLKRDIV1 0x02
4898 #define _CLKRDIV2 0x04
4899 #define _CLKRDC0 0x08
4900 #define _CLKRDC1 0x10
4901 #define _CLKRSLR 0x20
4902 #define _CLKROE 0x40
4903 #define _CLKREN 0x80
4905 //==============================================================================
4908 //==============================================================================
4911 extern __at(0x0811) __sfr PSMC1CON
;
4917 unsigned P1MODE0
: 1;
4918 unsigned P1MODE1
: 1;
4919 unsigned P1MODE2
: 1;
4920 unsigned P1MODE3
: 1;
4921 unsigned P1DBRE
: 1;
4922 unsigned P1DBFE
: 1;
4923 unsigned PSMC1LD
: 1;
4924 unsigned PSMC1EN
: 1;
4929 unsigned P1MODE
: 4;
4934 extern __at(0x0811) volatile __PSMC1CONbits_t PSMC1CONbits
;
4936 #define _P1MODE0 0x01
4937 #define _P1MODE1 0x02
4938 #define _P1MODE2 0x04
4939 #define _P1MODE3 0x08
4940 #define _P1DBRE 0x10
4941 #define _P1DBFE 0x20
4942 #define _PSMC1LD 0x40
4943 #define _PSMC1EN 0x80
4945 //==============================================================================
4948 //==============================================================================
4951 extern __at(0x0812) __sfr PSMC1MDL
;
4957 unsigned P1MSRC0
: 1;
4958 unsigned P1MSRC1
: 1;
4959 unsigned P1MSRC2
: 1;
4960 unsigned P1MSRC3
: 1;
4962 unsigned P1MDLBIT
: 1;
4963 unsigned P1MDLPOL
: 1;
4964 unsigned P1MDLEN
: 1;
4969 unsigned P1MSRC
: 4;
4974 extern __at(0x0812) volatile __PSMC1MDLbits_t PSMC1MDLbits
;
4976 #define _P1MSRC0 0x01
4977 #define _P1MSRC1 0x02
4978 #define _P1MSRC2 0x04
4979 #define _P1MSRC3 0x08
4980 #define _P1MDLBIT 0x20
4981 #define _P1MDLPOL 0x40
4982 #define _P1MDLEN 0x80
4984 //==============================================================================
4987 //==============================================================================
4990 extern __at(0x0813) __sfr PSMC1SYNC
;
4996 unsigned P1SYNC0
: 1;
4997 unsigned P1SYNC1
: 1;
4998 unsigned P1SYNC2
: 1;
5001 unsigned P1DCPOL
: 1;
5002 unsigned P1PRPOL
: 1;
5003 unsigned P1POFST
: 1;
5008 unsigned P1SYNC
: 3;
5011 } __PSMC1SYNCbits_t
;
5013 extern __at(0x0813) volatile __PSMC1SYNCbits_t PSMC1SYNCbits
;
5015 #define _P1SYNC0 0x01
5016 #define _P1SYNC1 0x02
5017 #define _P1SYNC2 0x04
5018 #define _P1DCPOL 0x20
5019 #define _P1PRPOL 0x40
5020 #define _P1POFST 0x80
5022 //==============================================================================
5025 //==============================================================================
5028 extern __at(0x0814) __sfr PSMC1CLK
;
5034 unsigned P1CSRC0
: 1;
5035 unsigned P1CSRC1
: 1;
5038 unsigned P1CPRE0
: 1;
5039 unsigned P1CPRE1
: 1;
5046 unsigned P1CSRC
: 2;
5053 unsigned P1CPRE
: 2;
5058 extern __at(0x0814) volatile __PSMC1CLKbits_t PSMC1CLKbits
;
5060 #define _P1CSRC0 0x01
5061 #define _P1CSRC1 0x02
5062 #define _P1CPRE0 0x10
5063 #define _P1CPRE1 0x20
5065 //==============================================================================
5068 //==============================================================================
5071 extern __at(0x0815) __sfr PSMC1OEN
;
5085 extern __at(0x0815) volatile __PSMC1OENbits_t PSMC1OENbits
;
5094 //==============================================================================
5097 //==============================================================================
5100 extern __at(0x0816) __sfr PSMC1POL
;
5104 unsigned P1POLA
: 1;
5105 unsigned P1POLB
: 1;
5106 unsigned P1POLC
: 1;
5107 unsigned P1POLD
: 1;
5108 unsigned P1POLE
: 1;
5109 unsigned P1POLF
: 1;
5110 unsigned P1INPOL
: 1;
5114 extern __at(0x0816) volatile __PSMC1POLbits_t PSMC1POLbits
;
5116 #define _P1POLA 0x01
5117 #define _P1POLB 0x02
5118 #define _P1POLC 0x04
5119 #define _P1POLD 0x08
5120 #define _P1POLE 0x10
5121 #define _P1POLF 0x20
5122 #define _P1INPOL 0x40
5124 //==============================================================================
5127 //==============================================================================
5130 extern __at(0x0817) __sfr PSMC1BLNK
;
5136 unsigned P1REBM0
: 1;
5137 unsigned P1REBM1
: 1;
5140 unsigned P1FEBM0
: 1;
5141 unsigned P1FEBM1
: 1;
5148 unsigned P1REBM
: 2;
5155 unsigned P1FEBM
: 2;
5158 } __PSMC1BLNKbits_t
;
5160 extern __at(0x0817) volatile __PSMC1BLNKbits_t PSMC1BLNKbits
;
5162 #define _P1REBM0 0x01
5163 #define _P1REBM1 0x02
5164 #define _P1FEBM0 0x10
5165 #define _P1FEBM1 0x20
5167 //==============================================================================
5170 //==============================================================================
5173 extern __at(0x0818) __sfr PSMC1REBS
;
5178 unsigned P1REBSC1
: 1;
5179 unsigned P1REBSC2
: 1;
5180 unsigned P1REBSC3
: 1;
5181 unsigned P1REBSC4
: 1;
5184 unsigned P1REBSIN
: 1;
5185 } __PSMC1REBSbits_t
;
5187 extern __at(0x0818) volatile __PSMC1REBSbits_t PSMC1REBSbits
;
5189 #define _P1REBSC1 0x02
5190 #define _P1REBSC2 0x04
5191 #define _P1REBSC3 0x08
5192 #define _P1REBSC4 0x10
5193 #define _P1REBSIN 0x80
5195 //==============================================================================
5198 //==============================================================================
5201 extern __at(0x0819) __sfr PSMC1FEBS
;
5206 unsigned P1FEBSC1
: 1;
5207 unsigned P1FEBSC2
: 1;
5208 unsigned P1FEBSC3
: 1;
5209 unsigned P1FEBSC4
: 1;
5212 unsigned P1FEBSIN
: 1;
5213 } __PSMC1FEBSbits_t
;
5215 extern __at(0x0819) volatile __PSMC1FEBSbits_t PSMC1FEBSbits
;
5217 #define _P1FEBSC1 0x02
5218 #define _P1FEBSC2 0x04
5219 #define _P1FEBSC3 0x08
5220 #define _P1FEBSC4 0x10
5221 #define _P1FEBSIN 0x80
5223 //==============================================================================
5226 //==============================================================================
5229 extern __at(0x081A) __sfr PSMC1PHS
;
5233 unsigned P1PHST
: 1;
5234 unsigned P1PHSC1
: 1;
5235 unsigned P1PHSC2
: 1;
5236 unsigned P1PHSC3
: 1;
5237 unsigned P1PHSC4
: 1;
5240 unsigned P1PHSIN
: 1;
5243 extern __at(0x081A) volatile __PSMC1PHSbits_t PSMC1PHSbits
;
5245 #define _P1PHST 0x01
5246 #define _P1PHSC1 0x02
5247 #define _P1PHSC2 0x04
5248 #define _P1PHSC3 0x08
5249 #define _P1PHSC4 0x10
5250 #define _P1PHSIN 0x80
5252 //==============================================================================
5255 //==============================================================================
5258 extern __at(0x081B) __sfr PSMC1DCS
;
5262 unsigned P1DCST
: 1;
5263 unsigned P1DCSC1
: 1;
5264 unsigned P1DCSC2
: 1;
5265 unsigned P1DCSC3
: 1;
5266 unsigned P1DCSC4
: 1;
5269 unsigned P1DCSIN
: 1;
5272 extern __at(0x081B) volatile __PSMC1DCSbits_t PSMC1DCSbits
;
5274 #define _P1DCST 0x01
5275 #define _P1DCSC1 0x02
5276 #define _P1DCSC2 0x04
5277 #define _P1DCSC3 0x08
5278 #define _P1DCSC4 0x10
5279 #define _P1DCSIN 0x80
5281 //==============================================================================
5284 //==============================================================================
5287 extern __at(0x081C) __sfr PSMC1PRS
;
5291 unsigned P1PRST
: 1;
5292 unsigned P1PRSC1
: 1;
5293 unsigned P1PRSC2
: 1;
5294 unsigned P1PRSC3
: 1;
5295 unsigned P1PRSC4
: 1;
5298 unsigned P1PRSIN
: 1;
5301 extern __at(0x081C) volatile __PSMC1PRSbits_t PSMC1PRSbits
;
5303 #define _P1PRST 0x01
5304 #define _P1PRSC1 0x02
5305 #define _P1PRSC2 0x04
5306 #define _P1PRSC3 0x08
5307 #define _P1PRSC4 0x10
5308 #define _P1PRSIN 0x80
5310 //==============================================================================
5313 //==============================================================================
5316 extern __at(0x081D) __sfr PSMC1ASDC
;
5320 unsigned P1ASDOV
: 1;
5325 unsigned P1ARSEN
: 1;
5326 unsigned P1ASDEN
: 1;
5328 } __PSMC1ASDCbits_t
;
5330 extern __at(0x081D) volatile __PSMC1ASDCbits_t PSMC1ASDCbits
;
5332 #define _P1ASDOV 0x01
5333 #define _P1ARSEN 0x20
5334 #define _P1ASDEN 0x40
5337 //==============================================================================
5340 //==============================================================================
5343 extern __at(0x081E) __sfr PSMC1ASDL
;
5347 unsigned P1ASDLA
: 1;
5348 unsigned P1ASDLB
: 1;
5349 unsigned P1ASDLC
: 1;
5350 unsigned P1ASDLD
: 1;
5351 unsigned P1ASDLE
: 1;
5352 unsigned P1ASDLF
: 1;
5355 } __PSMC1ASDLbits_t
;
5357 extern __at(0x081E) volatile __PSMC1ASDLbits_t PSMC1ASDLbits
;
5359 #define _P1ASDLA 0x01
5360 #define _P1ASDLB 0x02
5361 #define _P1ASDLC 0x04
5362 #define _P1ASDLD 0x08
5363 #define _P1ASDLE 0x10
5364 #define _P1ASDLF 0x20
5366 //==============================================================================
5369 //==============================================================================
5372 extern __at(0x081F) __sfr PSMC1ASDS
;
5377 unsigned P1ASDSC1
: 1;
5378 unsigned P1ASDSC2
: 1;
5379 unsigned P1ASDSC3
: 1;
5380 unsigned P1ASDSC4
: 1;
5383 unsigned P1ASDSIN
: 1;
5384 } __PSMC1ASDSbits_t
;
5386 extern __at(0x081F) volatile __PSMC1ASDSbits_t PSMC1ASDSbits
;
5388 #define _P1ASDSC1 0x02
5389 #define _P1ASDSC2 0x04
5390 #define _P1ASDSC3 0x08
5391 #define _P1ASDSC4 0x10
5392 #define _P1ASDSIN 0x80
5394 //==============================================================================
5397 //==============================================================================
5400 extern __at(0x0820) __sfr PSMC1INT
;
5404 unsigned P1TPRIF
: 1;
5405 unsigned P1TDCIF
: 1;
5406 unsigned P1TPHIF
: 1;
5407 unsigned P1TOVIF
: 1;
5408 unsigned P1TPRIE
: 1;
5409 unsigned P1TDCIE
: 1;
5410 unsigned P1TPHIE
: 1;
5411 unsigned P1TOVIE
: 1;
5414 extern __at(0x0820) volatile __PSMC1INTbits_t PSMC1INTbits
;
5416 #define _P1TPRIF 0x01
5417 #define _P1TDCIF 0x02
5418 #define _P1TPHIF 0x04
5419 #define _P1TOVIF 0x08
5420 #define _P1TPRIE 0x10
5421 #define _P1TDCIE 0x20
5422 #define _P1TPHIE 0x40
5423 #define _P1TOVIE 0x80
5425 //==============================================================================
5427 extern __at(0x0821) __sfr PSMC1PH
;
5429 //==============================================================================
5432 extern __at(0x0821) __sfr PSMC1PHL
;
5436 unsigned PSMC1PH0
: 1;
5437 unsigned PSMC1PH1
: 1;
5438 unsigned PSMC1PH2
: 1;
5439 unsigned PSMC1PH3
: 1;
5440 unsigned PSMC1PH4
: 1;
5441 unsigned PSMC1PH5
: 1;
5442 unsigned PSMC1PH6
: 1;
5443 unsigned PSMC1PH7
: 1;
5446 extern __at(0x0821) volatile __PSMC1PHLbits_t PSMC1PHLbits
;
5448 #define _PSMC1PH0 0x01
5449 #define _PSMC1PH1 0x02
5450 #define _PSMC1PH2 0x04
5451 #define _PSMC1PH3 0x08
5452 #define _PSMC1PH4 0x10
5453 #define _PSMC1PH5 0x20
5454 #define _PSMC1PH6 0x40
5455 #define _PSMC1PH7 0x80
5457 //==============================================================================
5460 //==============================================================================
5463 extern __at(0x0822) __sfr PSMC1PHH
;
5467 unsigned PSMC1PH8
: 1;
5468 unsigned PSMC1PH9
: 1;
5469 unsigned PSMC1PH10
: 1;
5470 unsigned PSMC1PH11
: 1;
5471 unsigned PSMC1PH12
: 1;
5472 unsigned PSMC1PH13
: 1;
5473 unsigned PSMC1PH14
: 1;
5474 unsigned PSMC1PH15
: 1;
5477 extern __at(0x0822) volatile __PSMC1PHHbits_t PSMC1PHHbits
;
5479 #define _PSMC1PH8 0x01
5480 #define _PSMC1PH9 0x02
5481 #define _PSMC1PH10 0x04
5482 #define _PSMC1PH11 0x08
5483 #define _PSMC1PH12 0x10
5484 #define _PSMC1PH13 0x20
5485 #define _PSMC1PH14 0x40
5486 #define _PSMC1PH15 0x80
5488 //==============================================================================
5490 extern __at(0x0823) __sfr PSMC1DC
;
5492 //==============================================================================
5495 extern __at(0x0823) __sfr PSMC1DCL
;
5499 unsigned PSMC1DC0
: 1;
5500 unsigned PSMC1DC1
: 1;
5501 unsigned PSMC1DC2
: 1;
5502 unsigned PSMC1DC3
: 1;
5503 unsigned PSMC1DC4
: 1;
5504 unsigned PSMC1DC5
: 1;
5505 unsigned PSMC1DC6
: 1;
5506 unsigned PSMC1DC7
: 1;
5509 extern __at(0x0823) volatile __PSMC1DCLbits_t PSMC1DCLbits
;
5511 #define _PSMC1DC0 0x01
5512 #define _PSMC1DC1 0x02
5513 #define _PSMC1DC2 0x04
5514 #define _PSMC1DC3 0x08
5515 #define _PSMC1DC4 0x10
5516 #define _PSMC1DC5 0x20
5517 #define _PSMC1DC6 0x40
5518 #define _PSMC1DC7 0x80
5520 //==============================================================================
5523 //==============================================================================
5526 extern __at(0x0824) __sfr PSMC1DCH
;
5530 unsigned PSMC1DC8
: 1;
5531 unsigned PSMC1DC9
: 1;
5532 unsigned PSMC1DC10
: 1;
5533 unsigned PSMC1DC11
: 1;
5534 unsigned PSMC1DC12
: 1;
5535 unsigned PSMC1DC13
: 1;
5536 unsigned PSMC1DC14
: 1;
5537 unsigned PSMC1DC15
: 1;
5540 extern __at(0x0824) volatile __PSMC1DCHbits_t PSMC1DCHbits
;
5542 #define _PSMC1DC8 0x01
5543 #define _PSMC1DC9 0x02
5544 #define _PSMC1DC10 0x04
5545 #define _PSMC1DC11 0x08
5546 #define _PSMC1DC12 0x10
5547 #define _PSMC1DC13 0x20
5548 #define _PSMC1DC14 0x40
5549 #define _PSMC1DC15 0x80
5551 //==============================================================================
5553 extern __at(0x0825) __sfr PSMC1PR
;
5555 //==============================================================================
5558 extern __at(0x0825) __sfr PSMC1PRL
;
5562 unsigned PSMC1PR0
: 1;
5563 unsigned PSMC1PR1
: 1;
5564 unsigned PSMC1PR2
: 1;
5565 unsigned PSMC1PR3
: 1;
5566 unsigned PSMC1PR4
: 1;
5567 unsigned PSMC1PR5
: 1;
5568 unsigned PSMC1PR6
: 1;
5569 unsigned PSMC1PR7
: 1;
5572 extern __at(0x0825) volatile __PSMC1PRLbits_t PSMC1PRLbits
;
5574 #define _PSMC1PR0 0x01
5575 #define _PSMC1PR1 0x02
5576 #define _PSMC1PR2 0x04
5577 #define _PSMC1PR3 0x08
5578 #define _PSMC1PR4 0x10
5579 #define _PSMC1PR5 0x20
5580 #define _PSMC1PR6 0x40
5581 #define _PSMC1PR7 0x80
5583 //==============================================================================
5586 //==============================================================================
5589 extern __at(0x0826) __sfr PSMC1PRH
;
5593 unsigned PSMC1PR8
: 1;
5594 unsigned PSMC1PR9
: 1;
5595 unsigned PSMC1PR10
: 1;
5596 unsigned PSMC1PR11
: 1;
5597 unsigned PSMC1PR12
: 1;
5598 unsigned PSMC1PR13
: 1;
5599 unsigned PSMC1PR14
: 1;
5600 unsigned PSMC1PR15
: 1;
5603 extern __at(0x0826) volatile __PSMC1PRHbits_t PSMC1PRHbits
;
5605 #define _PSMC1PR8 0x01
5606 #define _PSMC1PR9 0x02
5607 #define _PSMC1PR10 0x04
5608 #define _PSMC1PR11 0x08
5609 #define _PSMC1PR12 0x10
5610 #define _PSMC1PR13 0x20
5611 #define _PSMC1PR14 0x40
5612 #define _PSMC1PR15 0x80
5614 //==============================================================================
5616 extern __at(0x0827) __sfr PSMC1TMR
;
5618 //==============================================================================
5621 extern __at(0x0827) __sfr PSMC1TMRL
;
5625 unsigned PSMC1TMR0
: 1;
5626 unsigned PSMC1TMR1
: 1;
5627 unsigned PSMC1TMR2
: 1;
5628 unsigned PSMC1TMR3
: 1;
5629 unsigned PSMC1TMR4
: 1;
5630 unsigned PSMC1TMR5
: 1;
5631 unsigned PSMC1TMR6
: 1;
5632 unsigned PSMC1TMR7
: 1;
5633 } __PSMC1TMRLbits_t
;
5635 extern __at(0x0827) volatile __PSMC1TMRLbits_t PSMC1TMRLbits
;
5637 #define _PSMC1TMR0 0x01
5638 #define _PSMC1TMR1 0x02
5639 #define _PSMC1TMR2 0x04
5640 #define _PSMC1TMR3 0x08
5641 #define _PSMC1TMR4 0x10
5642 #define _PSMC1TMR5 0x20
5643 #define _PSMC1TMR6 0x40
5644 #define _PSMC1TMR7 0x80
5646 //==============================================================================
5649 //==============================================================================
5652 extern __at(0x0828) __sfr PSMC1TMRH
;
5656 unsigned PSMC1TMR8
: 1;
5657 unsigned PSMC1TMR9
: 1;
5658 unsigned PSMC1TMR10
: 1;
5659 unsigned PSMC1TMR11
: 1;
5660 unsigned PSMC1TMR12
: 1;
5661 unsigned PSMC1TMR13
: 1;
5662 unsigned PSMC1TMR14
: 1;
5663 unsigned PSMC1TMR15
: 1;
5664 } __PSMC1TMRHbits_t
;
5666 extern __at(0x0828) volatile __PSMC1TMRHbits_t PSMC1TMRHbits
;
5668 #define _PSMC1TMR8 0x01
5669 #define _PSMC1TMR9 0x02
5670 #define _PSMC1TMR10 0x04
5671 #define _PSMC1TMR11 0x08
5672 #define _PSMC1TMR12 0x10
5673 #define _PSMC1TMR13 0x20
5674 #define _PSMC1TMR14 0x40
5675 #define _PSMC1TMR15 0x80
5677 //==============================================================================
5680 //==============================================================================
5683 extern __at(0x0829) __sfr PSMC1DBR
;
5687 unsigned PSMC1DBR0
: 1;
5688 unsigned PSMC1DBR1
: 1;
5689 unsigned PSMC1DBR2
: 1;
5690 unsigned PSMC1DBR3
: 1;
5691 unsigned PSMC1DBR4
: 1;
5692 unsigned PSMC1DBR5
: 1;
5693 unsigned PSMC1DBR6
: 1;
5694 unsigned PSMC1DBR7
: 1;
5697 extern __at(0x0829) volatile __PSMC1DBRbits_t PSMC1DBRbits
;
5699 #define _PSMC1DBR0 0x01
5700 #define _PSMC1DBR1 0x02
5701 #define _PSMC1DBR2 0x04
5702 #define _PSMC1DBR3 0x08
5703 #define _PSMC1DBR4 0x10
5704 #define _PSMC1DBR5 0x20
5705 #define _PSMC1DBR6 0x40
5706 #define _PSMC1DBR7 0x80
5708 //==============================================================================
5711 //==============================================================================
5714 extern __at(0x082A) __sfr PSMC1DBF
;
5718 unsigned PSMC1DBF0
: 1;
5719 unsigned PSMC1DBF1
: 1;
5720 unsigned PSMC1DBF2
: 1;
5721 unsigned PSMC1DBF3
: 1;
5722 unsigned PSMC1DBF4
: 1;
5723 unsigned PSMC1DBF5
: 1;
5724 unsigned PSMC1DBF6
: 1;
5725 unsigned PSMC1DBF7
: 1;
5728 extern __at(0x082A) volatile __PSMC1DBFbits_t PSMC1DBFbits
;
5730 #define _PSMC1DBF0 0x01
5731 #define _PSMC1DBF1 0x02
5732 #define _PSMC1DBF2 0x04
5733 #define _PSMC1DBF3 0x08
5734 #define _PSMC1DBF4 0x10
5735 #define _PSMC1DBF5 0x20
5736 #define _PSMC1DBF6 0x40
5737 #define _PSMC1DBF7 0x80
5739 //==============================================================================
5742 //==============================================================================
5745 extern __at(0x082B) __sfr PSMC1BLKR
;
5749 unsigned PSMC1BLKR0
: 1;
5750 unsigned PSMC1BLKR1
: 1;
5751 unsigned PSMC1BLKR2
: 1;
5752 unsigned PSMC1BLKR3
: 1;
5753 unsigned PSMC1BLKR4
: 1;
5754 unsigned PSMC1BLKR5
: 1;
5755 unsigned PSMC1BLKR6
: 1;
5756 unsigned PSMC1BLKR7
: 1;
5757 } __PSMC1BLKRbits_t
;
5759 extern __at(0x082B) volatile __PSMC1BLKRbits_t PSMC1BLKRbits
;
5761 #define _PSMC1BLKR0 0x01
5762 #define _PSMC1BLKR1 0x02
5763 #define _PSMC1BLKR2 0x04
5764 #define _PSMC1BLKR3 0x08
5765 #define _PSMC1BLKR4 0x10
5766 #define _PSMC1BLKR5 0x20
5767 #define _PSMC1BLKR6 0x40
5768 #define _PSMC1BLKR7 0x80
5770 //==============================================================================
5773 //==============================================================================
5776 extern __at(0x082C) __sfr PSMC1BLKF
;
5780 unsigned PSMC1BLKF0
: 1;
5781 unsigned PSMC1BLKF1
: 1;
5782 unsigned PSMC1BLKF2
: 1;
5783 unsigned PSMC1BLKF3
: 1;
5784 unsigned PSMC1BLKF4
: 1;
5785 unsigned PSMC1BLKF5
: 1;
5786 unsigned PSMC1BLKF6
: 1;
5787 unsigned PSMC1BLKF7
: 1;
5788 } __PSMC1BLKFbits_t
;
5790 extern __at(0x082C) volatile __PSMC1BLKFbits_t PSMC1BLKFbits
;
5792 #define _PSMC1BLKF0 0x01
5793 #define _PSMC1BLKF1 0x02
5794 #define _PSMC1BLKF2 0x04
5795 #define _PSMC1BLKF3 0x08
5796 #define _PSMC1BLKF4 0x10
5797 #define _PSMC1BLKF5 0x20
5798 #define _PSMC1BLKF6 0x40
5799 #define _PSMC1BLKF7 0x80
5801 //==============================================================================
5804 //==============================================================================
5807 extern __at(0x082D) __sfr PSMC1FFA
;
5813 unsigned PSMC1FFA0
: 1;
5814 unsigned PSMC1FFA1
: 1;
5815 unsigned PSMC1FFA2
: 1;
5816 unsigned PSMC1FFA3
: 1;
5825 unsigned PSMC1FFA
: 4;
5830 extern __at(0x082D) volatile __PSMC1FFAbits_t PSMC1FFAbits
;
5832 #define _PSMC1FFA0 0x01
5833 #define _PSMC1FFA1 0x02
5834 #define _PSMC1FFA2 0x04
5835 #define _PSMC1FFA3 0x08
5837 //==============================================================================
5840 //==============================================================================
5843 extern __at(0x082E) __sfr PSMC1STR0
;
5847 unsigned P1STRA
: 1;
5848 unsigned P1STRB
: 1;
5849 unsigned P1STRC
: 1;
5850 unsigned P1STRD
: 1;
5851 unsigned P1STRE
: 1;
5852 unsigned P1STRF
: 1;
5855 } __PSMC1STR0bits_t
;
5857 extern __at(0x082E) volatile __PSMC1STR0bits_t PSMC1STR0bits
;
5859 #define _P1STRA 0x01
5860 #define _P1STRB 0x02
5861 #define _P1STRC 0x04
5862 #define _P1STRD 0x08
5863 #define _P1STRE 0x10
5864 #define _P1STRF 0x20
5866 //==============================================================================
5869 //==============================================================================
5872 extern __at(0x082F) __sfr PSMC1STR1
;
5876 unsigned P1HSMEN
: 1;
5877 unsigned P1LSMEN
: 1;
5883 unsigned P1SSYNC
: 1;
5884 } __PSMC1STR1bits_t
;
5886 extern __at(0x082F) volatile __PSMC1STR1bits_t PSMC1STR1bits
;
5888 #define _P1HSMEN 0x01
5889 #define _P1LSMEN 0x02
5890 #define _P1SSYNC 0x80
5892 //==============================================================================
5895 //==============================================================================
5898 extern __at(0x0831) __sfr PSMC2CON
;
5904 unsigned P2MODE0
: 1;
5905 unsigned P2MODE1
: 1;
5906 unsigned P2MODE2
: 1;
5907 unsigned P2MODE3
: 1;
5908 unsigned P2DBRE
: 1;
5909 unsigned P2DBFE
: 1;
5910 unsigned PSMC2LD
: 1;
5911 unsigned PSMC2EN
: 1;
5916 unsigned P2MODE
: 4;
5921 extern __at(0x0831) volatile __PSMC2CONbits_t PSMC2CONbits
;
5923 #define _P2MODE0 0x01
5924 #define _P2MODE1 0x02
5925 #define _P2MODE2 0x04
5926 #define _P2MODE3 0x08
5927 #define _P2DBRE 0x10
5928 #define _P2DBFE 0x20
5929 #define _PSMC2LD 0x40
5930 #define _PSMC2EN 0x80
5932 //==============================================================================
5935 //==============================================================================
5938 extern __at(0x0832) __sfr PSMC2MDL
;
5944 unsigned P2MSRC0
: 1;
5945 unsigned P2MSRC1
: 1;
5946 unsigned P2MSRC2
: 1;
5947 unsigned P2MSRC3
: 1;
5949 unsigned P2MDLBIT
: 1;
5950 unsigned P2MDLPOL
: 1;
5951 unsigned P2MDLEN
: 1;
5956 unsigned P2MSRC
: 4;
5961 extern __at(0x0832) volatile __PSMC2MDLbits_t PSMC2MDLbits
;
5963 #define _P2MSRC0 0x01
5964 #define _P2MSRC1 0x02
5965 #define _P2MSRC2 0x04
5966 #define _P2MSRC3 0x08
5967 #define _P2MDLBIT 0x20
5968 #define _P2MDLPOL 0x40
5969 #define _P2MDLEN 0x80
5971 //==============================================================================
5974 //==============================================================================
5977 extern __at(0x0833) __sfr PSMC2SYNC
;
5983 unsigned P2SYNC0
: 1;
5984 unsigned P2SYNC1
: 1;
5985 unsigned P2SYNC2
: 1;
5988 unsigned P2DCPOL
: 1;
5989 unsigned P2PRPOL
: 1;
5990 unsigned P2POFST
: 1;
5995 unsigned P2SYNC
: 3;
5998 } __PSMC2SYNCbits_t
;
6000 extern __at(0x0833) volatile __PSMC2SYNCbits_t PSMC2SYNCbits
;
6002 #define _P2SYNC0 0x01
6003 #define _P2SYNC1 0x02
6004 #define _P2SYNC2 0x04
6005 #define _P2DCPOL 0x20
6006 #define _P2PRPOL 0x40
6007 #define _P2POFST 0x80
6009 //==============================================================================
6012 //==============================================================================
6015 extern __at(0x0834) __sfr PSMC2CLK
;
6021 unsigned P2CSRC0
: 1;
6022 unsigned P2CSRC1
: 1;
6025 unsigned P2CPRE0
: 1;
6026 unsigned P2CPRE1
: 1;
6033 unsigned P2CSRC
: 2;
6040 unsigned P2CPRE
: 2;
6045 extern __at(0x0834) volatile __PSMC2CLKbits_t PSMC2CLKbits
;
6047 #define _P2CSRC0 0x01
6048 #define _P2CSRC1 0x02
6049 #define _P2CPRE0 0x10
6050 #define _P2CPRE1 0x20
6052 //==============================================================================
6055 //==============================================================================
6058 extern __at(0x0835) __sfr PSMC2OEN
;
6072 extern __at(0x0835) volatile __PSMC2OENbits_t PSMC2OENbits
;
6077 //==============================================================================
6080 //==============================================================================
6083 extern __at(0x0836) __sfr PSMC2POL
;
6087 unsigned P2POLA
: 1;
6088 unsigned P2POLB
: 1;
6093 unsigned P2INPOL
: 1;
6097 extern __at(0x0836) volatile __PSMC2POLbits_t PSMC2POLbits
;
6099 #define _P2POLA 0x01
6100 #define _P2POLB 0x02
6101 #define _P2INPOL 0x40
6103 //==============================================================================
6106 //==============================================================================
6109 extern __at(0x0837) __sfr PSMC2BLNK
;
6115 unsigned P2REBM0
: 1;
6116 unsigned P2REBM1
: 1;
6119 unsigned P2FEBM0
: 1;
6120 unsigned P2FEBM1
: 1;
6127 unsigned P2REBM
: 2;
6134 unsigned P2FEBM
: 2;
6137 } __PSMC2BLNKbits_t
;
6139 extern __at(0x0837) volatile __PSMC2BLNKbits_t PSMC2BLNKbits
;
6141 #define _P2REBM0 0x01
6142 #define _P2REBM1 0x02
6143 #define _P2FEBM0 0x10
6144 #define _P2FEBM1 0x20
6146 //==============================================================================
6149 //==============================================================================
6152 extern __at(0x0838) __sfr PSMC2REBS
;
6157 unsigned P2REBSC1
: 1;
6158 unsigned P2REBSC2
: 1;
6159 unsigned P2REBSC3
: 1;
6160 unsigned P2REBSC4
: 1;
6163 unsigned P2REBSIN
: 1;
6164 } __PSMC2REBSbits_t
;
6166 extern __at(0x0838) volatile __PSMC2REBSbits_t PSMC2REBSbits
;
6168 #define _P2REBSC1 0x02
6169 #define _P2REBSC2 0x04
6170 #define _P2REBSC3 0x08
6171 #define _P2REBSC4 0x10
6172 #define _P2REBSIN 0x80
6174 //==============================================================================
6177 //==============================================================================
6180 extern __at(0x0839) __sfr PSMC2FEBS
;
6185 unsigned P2FEBSC1
: 1;
6186 unsigned P2FEBSC2
: 1;
6187 unsigned P2FEBSC3
: 1;
6188 unsigned P2FEBSC4
: 1;
6191 unsigned P2FEBSIN
: 1;
6192 } __PSMC2FEBSbits_t
;
6194 extern __at(0x0839) volatile __PSMC2FEBSbits_t PSMC2FEBSbits
;
6196 #define _P2FEBSC1 0x02
6197 #define _P2FEBSC2 0x04
6198 #define _P2FEBSC3 0x08
6199 #define _P2FEBSC4 0x10
6200 #define _P2FEBSIN 0x80
6202 //==============================================================================
6205 //==============================================================================
6208 extern __at(0x083A) __sfr PSMC2PHS
;
6212 unsigned P2PHST
: 1;
6213 unsigned P2PHSC1
: 1;
6214 unsigned P2PHSC2
: 1;
6215 unsigned P2PHSC3
: 1;
6216 unsigned P2PHSC4
: 1;
6219 unsigned P2PHSIN
: 1;
6222 extern __at(0x083A) volatile __PSMC2PHSbits_t PSMC2PHSbits
;
6224 #define _P2PHST 0x01
6225 #define _P2PHSC1 0x02
6226 #define _P2PHSC2 0x04
6227 #define _P2PHSC3 0x08
6228 #define _P2PHSC4 0x10
6229 #define _P2PHSIN 0x80
6231 //==============================================================================
6234 //==============================================================================
6237 extern __at(0x083B) __sfr PSMC2DCS
;
6241 unsigned P2DCST
: 1;
6242 unsigned P2DCSC1
: 1;
6243 unsigned P2DCSC2
: 1;
6244 unsigned P2DCSC3
: 1;
6245 unsigned P2DCSC4
: 1;
6248 unsigned P2DCSIN
: 1;
6251 extern __at(0x083B) volatile __PSMC2DCSbits_t PSMC2DCSbits
;
6253 #define _P2DCST 0x01
6254 #define _P2DCSC1 0x02
6255 #define _P2DCSC2 0x04
6256 #define _P2DCSC3 0x08
6257 #define _P2DCSC4 0x10
6258 #define _P2DCSIN 0x80
6260 //==============================================================================
6263 //==============================================================================
6266 extern __at(0x083C) __sfr PSMC2PRS
;
6270 unsigned P2PRST
: 1;
6271 unsigned P2PRSC1
: 1;
6272 unsigned P2PRSC2
: 1;
6273 unsigned P2PRSC3
: 1;
6274 unsigned P2PRSC4
: 1;
6277 unsigned P2PRSIN
: 1;
6280 extern __at(0x083C) volatile __PSMC2PRSbits_t PSMC2PRSbits
;
6282 #define _P2PRST 0x01
6283 #define _P2PRSC1 0x02
6284 #define _P2PRSC2 0x04
6285 #define _P2PRSC3 0x08
6286 #define _P2PRSC4 0x10
6287 #define _P2PRSIN 0x80
6289 //==============================================================================
6292 //==============================================================================
6295 extern __at(0x083D) __sfr PSMC2ASDC
;
6299 unsigned P2ASDOV
: 1;
6304 unsigned P2ARSEN
: 1;
6305 unsigned P2ASDEN
: 1;
6307 } __PSMC2ASDCbits_t
;
6309 extern __at(0x083D) volatile __PSMC2ASDCbits_t PSMC2ASDCbits
;
6311 #define _P2ASDOV 0x01
6312 #define _P2ARSEN 0x20
6313 #define _P2ASDEN 0x40
6316 //==============================================================================
6319 //==============================================================================
6322 extern __at(0x083E) __sfr PSMC2ASDL
;
6326 unsigned P2ASDLA
: 1;
6327 unsigned P2ASDLB
: 1;
6334 } __PSMC2ASDLbits_t
;
6336 extern __at(0x083E) volatile __PSMC2ASDLbits_t PSMC2ASDLbits
;
6338 #define _P2ASDLA 0x01
6339 #define _P2ASDLB 0x02
6341 //==============================================================================
6344 //==============================================================================
6347 extern __at(0x083F) __sfr PSMC2ASDS
;
6352 unsigned P2ASDSC1
: 1;
6353 unsigned P2ASDSC2
: 1;
6354 unsigned P2ASDSC3
: 1;
6355 unsigned P2ASDSC4
: 1;
6358 unsigned P2ASDSIN
: 1;
6359 } __PSMC2ASDSbits_t
;
6361 extern __at(0x083F) volatile __PSMC2ASDSbits_t PSMC2ASDSbits
;
6363 #define _P2ASDSC1 0x02
6364 #define _P2ASDSC2 0x04
6365 #define _P2ASDSC3 0x08
6366 #define _P2ASDSC4 0x10
6367 #define _P2ASDSIN 0x80
6369 //==============================================================================
6372 //==============================================================================
6375 extern __at(0x0840) __sfr PSMC2INT
;
6379 unsigned P2TPRIF
: 1;
6380 unsigned P2TDCIF
: 1;
6381 unsigned P2TPHIF
: 1;
6382 unsigned P2TOVIF
: 1;
6383 unsigned P2TPRIE
: 1;
6384 unsigned P2TDCIE
: 1;
6385 unsigned P2TPHIE
: 1;
6386 unsigned P2TOVIE
: 1;
6389 extern __at(0x0840) volatile __PSMC2INTbits_t PSMC2INTbits
;
6391 #define _P2TPRIF 0x01
6392 #define _P2TDCIF 0x02
6393 #define _P2TPHIF 0x04
6394 #define _P2TOVIF 0x08
6395 #define _P2TPRIE 0x10
6396 #define _P2TDCIE 0x20
6397 #define _P2TPHIE 0x40
6398 #define _P2TOVIE 0x80
6400 //==============================================================================
6402 extern __at(0x0841) __sfr PSMC2PH
;
6404 //==============================================================================
6407 extern __at(0x0841) __sfr PSMC2PHL
;
6411 unsigned PSMC2PH0
: 1;
6412 unsigned PSMC2PH1
: 1;
6413 unsigned PSMC2PH2
: 1;
6414 unsigned PSMC2PH3
: 1;
6415 unsigned PSMC2PH4
: 1;
6416 unsigned PSMC2PH5
: 1;
6417 unsigned PSMC2PH6
: 1;
6418 unsigned PSMC2PH7
: 1;
6421 extern __at(0x0841) volatile __PSMC2PHLbits_t PSMC2PHLbits
;
6423 #define _PSMC2PH0 0x01
6424 #define _PSMC2PH1 0x02
6425 #define _PSMC2PH2 0x04
6426 #define _PSMC2PH3 0x08
6427 #define _PSMC2PH4 0x10
6428 #define _PSMC2PH5 0x20
6429 #define _PSMC2PH6 0x40
6430 #define _PSMC2PH7 0x80
6432 //==============================================================================
6435 //==============================================================================
6438 extern __at(0x0842) __sfr PSMC2PHH
;
6442 unsigned PSMC2PH8
: 1;
6443 unsigned PSMC2PH9
: 1;
6444 unsigned PSMC2PH10
: 1;
6445 unsigned PSMC2PH11
: 1;
6446 unsigned PSMC2PH12
: 1;
6447 unsigned PSMC2PH13
: 1;
6448 unsigned PSMC2PH14
: 1;
6449 unsigned PSMC2PH15
: 1;
6452 extern __at(0x0842) volatile __PSMC2PHHbits_t PSMC2PHHbits
;
6454 #define _PSMC2PH8 0x01
6455 #define _PSMC2PH9 0x02
6456 #define _PSMC2PH10 0x04
6457 #define _PSMC2PH11 0x08
6458 #define _PSMC2PH12 0x10
6459 #define _PSMC2PH13 0x20
6460 #define _PSMC2PH14 0x40
6461 #define _PSMC2PH15 0x80
6463 //==============================================================================
6465 extern __at(0x0843) __sfr PSMC2DC
;
6467 //==============================================================================
6470 extern __at(0x0843) __sfr PSMC2DCL
;
6474 unsigned PSMC2DC0
: 1;
6475 unsigned PSMC2DC1
: 1;
6476 unsigned PSMC2DC2
: 1;
6477 unsigned PSMC2DC3
: 1;
6478 unsigned PSMC2DC4
: 1;
6479 unsigned PSMC2DC5
: 1;
6480 unsigned PSMC2DC6
: 1;
6481 unsigned PSMC2DC7
: 1;
6484 extern __at(0x0843) volatile __PSMC2DCLbits_t PSMC2DCLbits
;
6486 #define _PSMC2DC0 0x01
6487 #define _PSMC2DC1 0x02
6488 #define _PSMC2DC2 0x04
6489 #define _PSMC2DC3 0x08
6490 #define _PSMC2DC4 0x10
6491 #define _PSMC2DC5 0x20
6492 #define _PSMC2DC6 0x40
6493 #define _PSMC2DC7 0x80
6495 //==============================================================================
6498 //==============================================================================
6501 extern __at(0x0844) __sfr PSMC2DCH
;
6505 unsigned PSMC2DC8
: 1;
6506 unsigned PSMC2DC9
: 1;
6507 unsigned PSMC2DC10
: 1;
6508 unsigned PSMC2DC11
: 1;
6509 unsigned PSMC2DC12
: 1;
6510 unsigned PSMC2DC13
: 1;
6511 unsigned PSMC2DC14
: 1;
6512 unsigned PSMC2DC15
: 1;
6515 extern __at(0x0844) volatile __PSMC2DCHbits_t PSMC2DCHbits
;
6517 #define _PSMC2DC8 0x01
6518 #define _PSMC2DC9 0x02
6519 #define _PSMC2DC10 0x04
6520 #define _PSMC2DC11 0x08
6521 #define _PSMC2DC12 0x10
6522 #define _PSMC2DC13 0x20
6523 #define _PSMC2DC14 0x40
6524 #define _PSMC2DC15 0x80
6526 //==============================================================================
6528 extern __at(0x0845) __sfr PSMC2PR
;
6530 //==============================================================================
6533 extern __at(0x0845) __sfr PSMC2PRL
;
6537 unsigned PSMC2PR0
: 1;
6538 unsigned PSMC2PR1
: 1;
6539 unsigned PSMC2PR2
: 1;
6540 unsigned PSMC2PR3
: 1;
6541 unsigned PSMC2PR4
: 1;
6542 unsigned PSMC2PR5
: 1;
6543 unsigned PSMC2PR6
: 1;
6544 unsigned PSMC2PR7
: 1;
6547 extern __at(0x0845) volatile __PSMC2PRLbits_t PSMC2PRLbits
;
6549 #define _PSMC2PR0 0x01
6550 #define _PSMC2PR1 0x02
6551 #define _PSMC2PR2 0x04
6552 #define _PSMC2PR3 0x08
6553 #define _PSMC2PR4 0x10
6554 #define _PSMC2PR5 0x20
6555 #define _PSMC2PR6 0x40
6556 #define _PSMC2PR7 0x80
6558 //==============================================================================
6561 //==============================================================================
6564 extern __at(0x0846) __sfr PSMC2PRH
;
6568 unsigned PSMC2PR8
: 1;
6569 unsigned PSMC2PR9
: 1;
6570 unsigned PSMC2PR10
: 1;
6571 unsigned PSMC2PR11
: 1;
6572 unsigned PSMC2PR12
: 1;
6573 unsigned PSMC2PR13
: 1;
6574 unsigned PSMC2PR14
: 1;
6575 unsigned PSMC2PR15
: 1;
6578 extern __at(0x0846) volatile __PSMC2PRHbits_t PSMC2PRHbits
;
6580 #define _PSMC2PR8 0x01
6581 #define _PSMC2PR9 0x02
6582 #define _PSMC2PR10 0x04
6583 #define _PSMC2PR11 0x08
6584 #define _PSMC2PR12 0x10
6585 #define _PSMC2PR13 0x20
6586 #define _PSMC2PR14 0x40
6587 #define _PSMC2PR15 0x80
6589 //==============================================================================
6591 extern __at(0x0847) __sfr PSMC2TMR
;
6593 //==============================================================================
6596 extern __at(0x0847) __sfr PSMC2TMRL
;
6600 unsigned PSMC2TMR0
: 1;
6601 unsigned PSMC2TMR1
: 1;
6602 unsigned PSMC2TMR2
: 1;
6603 unsigned PSMC2TMR3
: 1;
6604 unsigned PSMC2TMR4
: 1;
6605 unsigned PSMC2TMR5
: 1;
6606 unsigned PSMC2TMR6
: 1;
6607 unsigned PSMC2TMR7
: 1;
6608 } __PSMC2TMRLbits_t
;
6610 extern __at(0x0847) volatile __PSMC2TMRLbits_t PSMC2TMRLbits
;
6612 #define _PSMC2TMR0 0x01
6613 #define _PSMC2TMR1 0x02
6614 #define _PSMC2TMR2 0x04
6615 #define _PSMC2TMR3 0x08
6616 #define _PSMC2TMR4 0x10
6617 #define _PSMC2TMR5 0x20
6618 #define _PSMC2TMR6 0x40
6619 #define _PSMC2TMR7 0x80
6621 //==============================================================================
6624 //==============================================================================
6627 extern __at(0x0848) __sfr PSMC2TMRH
;
6631 unsigned PSMC2TMR8
: 1;
6632 unsigned PSMC2TMR9
: 1;
6633 unsigned PSMC2TMR10
: 1;
6634 unsigned PSMC2TMR11
: 1;
6635 unsigned PSMC2TMR12
: 1;
6636 unsigned PSMC2TMR13
: 1;
6637 unsigned PSMC2TMR14
: 1;
6638 unsigned PSMC2TMR15
: 1;
6639 } __PSMC2TMRHbits_t
;
6641 extern __at(0x0848) volatile __PSMC2TMRHbits_t PSMC2TMRHbits
;
6643 #define _PSMC2TMR8 0x01
6644 #define _PSMC2TMR9 0x02
6645 #define _PSMC2TMR10 0x04
6646 #define _PSMC2TMR11 0x08
6647 #define _PSMC2TMR12 0x10
6648 #define _PSMC2TMR13 0x20
6649 #define _PSMC2TMR14 0x40
6650 #define _PSMC2TMR15 0x80
6652 //==============================================================================
6655 //==============================================================================
6658 extern __at(0x0849) __sfr PSMC2DBR
;
6662 unsigned PSMC2DBR0
: 1;
6663 unsigned PSMC2DBR1
: 1;
6664 unsigned PSMC2DBR2
: 1;
6665 unsigned PSMC2DBR3
: 1;
6666 unsigned PSMC2DBR4
: 1;
6667 unsigned PSMC2DBR5
: 1;
6668 unsigned PSMC2DBR6
: 1;
6669 unsigned PSMC2DBR7
: 1;
6672 extern __at(0x0849) volatile __PSMC2DBRbits_t PSMC2DBRbits
;
6674 #define _PSMC2DBR0 0x01
6675 #define _PSMC2DBR1 0x02
6676 #define _PSMC2DBR2 0x04
6677 #define _PSMC2DBR3 0x08
6678 #define _PSMC2DBR4 0x10
6679 #define _PSMC2DBR5 0x20
6680 #define _PSMC2DBR6 0x40
6681 #define _PSMC2DBR7 0x80
6683 //==============================================================================
6686 //==============================================================================
6689 extern __at(0x084A) __sfr PSMC2DBF
;
6693 unsigned PSMC2DBF0
: 1;
6694 unsigned PSMC2DBF1
: 1;
6695 unsigned PSMC2DBF2
: 1;
6696 unsigned PSMC2DBF3
: 1;
6697 unsigned PSMC2DBF4
: 1;
6698 unsigned PSMC2DBF5
: 1;
6699 unsigned PSMC2DBF6
: 1;
6700 unsigned PSMC2DBF7
: 1;
6703 extern __at(0x084A) volatile __PSMC2DBFbits_t PSMC2DBFbits
;
6705 #define _PSMC2DBF0 0x01
6706 #define _PSMC2DBF1 0x02
6707 #define _PSMC2DBF2 0x04
6708 #define _PSMC2DBF3 0x08
6709 #define _PSMC2DBF4 0x10
6710 #define _PSMC2DBF5 0x20
6711 #define _PSMC2DBF6 0x40
6712 #define _PSMC2DBF7 0x80
6714 //==============================================================================
6717 //==============================================================================
6720 extern __at(0x084B) __sfr PSMC2BLKR
;
6724 unsigned PSMC2BLKR0
: 1;
6725 unsigned PSMC2BLKR1
: 1;
6726 unsigned PSMC2BLKR2
: 1;
6727 unsigned PSMC2BLKR3
: 1;
6728 unsigned PSMC2BLKR4
: 1;
6729 unsigned PSMC2BLKR5
: 1;
6730 unsigned PSMC2BLKR6
: 1;
6731 unsigned PSMC2BLKR7
: 1;
6732 } __PSMC2BLKRbits_t
;
6734 extern __at(0x084B) volatile __PSMC2BLKRbits_t PSMC2BLKRbits
;
6736 #define _PSMC2BLKR0 0x01
6737 #define _PSMC2BLKR1 0x02
6738 #define _PSMC2BLKR2 0x04
6739 #define _PSMC2BLKR3 0x08
6740 #define _PSMC2BLKR4 0x10
6741 #define _PSMC2BLKR5 0x20
6742 #define _PSMC2BLKR6 0x40
6743 #define _PSMC2BLKR7 0x80
6745 //==============================================================================
6748 //==============================================================================
6751 extern __at(0x084C) __sfr PSMC2BLKF
;
6755 unsigned PSMC2BLKF0
: 1;
6756 unsigned PSMC2BLKF1
: 1;
6757 unsigned PSMC2BLKF2
: 1;
6758 unsigned PSMC2BLKF3
: 1;
6759 unsigned PSMC2BLKF4
: 1;
6760 unsigned PSMC2BLKF5
: 1;
6761 unsigned PSMC2BLKF6
: 1;
6762 unsigned PSMC2BLKF7
: 1;
6763 } __PSMC2BLKFbits_t
;
6765 extern __at(0x084C) volatile __PSMC2BLKFbits_t PSMC2BLKFbits
;
6767 #define _PSMC2BLKF0 0x01
6768 #define _PSMC2BLKF1 0x02
6769 #define _PSMC2BLKF2 0x04
6770 #define _PSMC2BLKF3 0x08
6771 #define _PSMC2BLKF4 0x10
6772 #define _PSMC2BLKF5 0x20
6773 #define _PSMC2BLKF6 0x40
6774 #define _PSMC2BLKF7 0x80
6776 //==============================================================================
6779 //==============================================================================
6782 extern __at(0x084D) __sfr PSMC2FFA
;
6788 unsigned PSMC2FFA0
: 1;
6789 unsigned PSMC2FFA1
: 1;
6790 unsigned PSMC2FFA2
: 1;
6791 unsigned PSMC2FFA3
: 1;
6800 unsigned PSMC2FFA
: 4;
6805 extern __at(0x084D) volatile __PSMC2FFAbits_t PSMC2FFAbits
;
6807 #define _PSMC2FFA0 0x01
6808 #define _PSMC2FFA1 0x02
6809 #define _PSMC2FFA2 0x04
6810 #define _PSMC2FFA3 0x08
6812 //==============================================================================
6815 //==============================================================================
6818 extern __at(0x084E) __sfr PSMC2STR0
;
6822 unsigned P2STRA
: 1;
6823 unsigned P2STRB
: 1;
6830 } __PSMC2STR0bits_t
;
6832 extern __at(0x084E) volatile __PSMC2STR0bits_t PSMC2STR0bits
;
6834 #define _P2STRA 0x01
6835 #define _P2STRB 0x02
6837 //==============================================================================
6840 //==============================================================================
6843 extern __at(0x084F) __sfr PSMC2STR1
;
6847 unsigned P2HSMEN
: 1;
6848 unsigned P2LSMEN
: 1;
6854 unsigned P2SSYNC
: 1;
6855 } __PSMC2STR1bits_t
;
6857 extern __at(0x084F) volatile __PSMC2STR1bits_t PSMC2STR1bits
;
6859 #define _P2HSMEN 0x01
6860 #define _P2LSMEN 0x02
6861 #define _P2SSYNC 0x80
6863 //==============================================================================
6866 //==============================================================================
6869 extern __at(0x0851) __sfr PSMC3CON
;
6875 unsigned P3MODE0
: 1;
6876 unsigned P3MODE1
: 1;
6877 unsigned P3MODE2
: 1;
6878 unsigned P3MODE3
: 1;
6879 unsigned P3DBRE
: 1;
6880 unsigned P3DBFE
: 1;
6881 unsigned PSMC3LD
: 1;
6882 unsigned PSMC3EN
: 1;
6887 unsigned P3MODE
: 4;
6892 extern __at(0x0851) volatile __PSMC3CONbits_t PSMC3CONbits
;
6894 #define _P3MODE0 0x01
6895 #define _P3MODE1 0x02
6896 #define _P3MODE2 0x04
6897 #define _P3MODE3 0x08
6898 #define _P3DBRE 0x10
6899 #define _P3DBFE 0x20
6900 #define _PSMC3LD 0x40
6901 #define _PSMC3EN 0x80
6903 //==============================================================================
6906 //==============================================================================
6909 extern __at(0x0852) __sfr PSMC3MDL
;
6915 unsigned P3MSRC0
: 1;
6916 unsigned P3MSRC1
: 1;
6917 unsigned P3MSRC2
: 1;
6918 unsigned P3MSRC3
: 1;
6920 unsigned P3MDLBIT
: 1;
6921 unsigned P3MDLPOL
: 1;
6922 unsigned P3MDLEN
: 1;
6927 unsigned P3MSRC
: 4;
6932 extern __at(0x0852) volatile __PSMC3MDLbits_t PSMC3MDLbits
;
6934 #define _P3MSRC0 0x01
6935 #define _P3MSRC1 0x02
6936 #define _P3MSRC2 0x04
6937 #define _P3MSRC3 0x08
6938 #define _P3MDLBIT 0x20
6939 #define _P3MDLPOL 0x40
6940 #define _P3MDLEN 0x80
6942 //==============================================================================
6945 //==============================================================================
6948 extern __at(0x0853) __sfr PSMC3SYNC
;
6954 unsigned P3SYNC0
: 1;
6955 unsigned P3SYNC1
: 1;
6956 unsigned P3SYNC2
: 1;
6959 unsigned P3DCPOL
: 1;
6960 unsigned P3PRPOL
: 1;
6961 unsigned P3POFST
: 1;
6966 unsigned P3SYNC
: 3;
6969 } __PSMC3SYNCbits_t
;
6971 extern __at(0x0853) volatile __PSMC3SYNCbits_t PSMC3SYNCbits
;
6973 #define _P3SYNC0 0x01
6974 #define _P3SYNC1 0x02
6975 #define _P3SYNC2 0x04
6976 #define _P3DCPOL 0x20
6977 #define _P3PRPOL 0x40
6978 #define _P3POFST 0x80
6980 //==============================================================================
6983 //==============================================================================
6986 extern __at(0x0854) __sfr PSMC3CLK
;
6992 unsigned P3CSRC0
: 1;
6993 unsigned P3CSRC1
: 1;
6996 unsigned P3CPRE0
: 1;
6997 unsigned P3CPRE1
: 1;
7004 unsigned P3CSRC
: 2;
7011 unsigned P3CPRE
: 2;
7016 extern __at(0x0854) volatile __PSMC3CLKbits_t PSMC3CLKbits
;
7018 #define _P3CSRC0 0x01
7019 #define _P3CSRC1 0x02
7020 #define _P3CPRE0 0x10
7021 #define _P3CPRE1 0x20
7023 //==============================================================================
7026 //==============================================================================
7029 extern __at(0x0855) __sfr PSMC3OEN
;
7043 extern __at(0x0855) volatile __PSMC3OENbits_t PSMC3OENbits
;
7052 //==============================================================================
7055 //==============================================================================
7058 extern __at(0x0856) __sfr PSMC3POL
;
7062 unsigned P3POLA
: 1;
7063 unsigned P3POLB
: 1;
7064 unsigned P3POLC
: 1;
7065 unsigned P3POLD
: 1;
7066 unsigned P3POLE
: 1;
7067 unsigned P3POLF
: 1;
7068 unsigned P3INPOL
: 1;
7072 extern __at(0x0856) volatile __PSMC3POLbits_t PSMC3POLbits
;
7074 #define _P3POLA 0x01
7075 #define _P3POLB 0x02
7076 #define _P3POLC 0x04
7077 #define _P3POLD 0x08
7078 #define _P3POLE 0x10
7079 #define _P3POLF 0x20
7080 #define _P3INPOL 0x40
7082 //==============================================================================
7085 //==============================================================================
7088 extern __at(0x0857) __sfr PSMC3BLNK
;
7094 unsigned P3REBM0
: 1;
7095 unsigned P3REBM1
: 1;
7098 unsigned P3FEBM0
: 1;
7099 unsigned P3FEBM1
: 1;
7106 unsigned P3REBM
: 2;
7113 unsigned P3FEBM
: 2;
7116 } __PSMC3BLNKbits_t
;
7118 extern __at(0x0857) volatile __PSMC3BLNKbits_t PSMC3BLNKbits
;
7120 #define _P3REBM0 0x01
7121 #define _P3REBM1 0x02
7122 #define _P3FEBM0 0x10
7123 #define _P3FEBM1 0x20
7125 //==============================================================================
7128 //==============================================================================
7131 extern __at(0x0858) __sfr PSMC3REBS
;
7136 unsigned P3REBSC1
: 1;
7137 unsigned P3REBSC2
: 1;
7138 unsigned P3REBSC3
: 1;
7139 unsigned P3REBSC4
: 1;
7142 unsigned P3REBSIN
: 1;
7143 } __PSMC3REBSbits_t
;
7145 extern __at(0x0858) volatile __PSMC3REBSbits_t PSMC3REBSbits
;
7147 #define _P3REBSC1 0x02
7148 #define _P3REBSC2 0x04
7149 #define _P3REBSC3 0x08
7150 #define _P3REBSC4 0x10
7151 #define _P3REBSIN 0x80
7153 //==============================================================================
7156 //==============================================================================
7159 extern __at(0x0859) __sfr PSMC3FEBS
;
7164 unsigned P3FEBSC1
: 1;
7165 unsigned P3FEBSC2
: 1;
7166 unsigned P3FEBSC3
: 1;
7167 unsigned P3FEBSC4
: 1;
7170 unsigned P3FEBSIN
: 1;
7171 } __PSMC3FEBSbits_t
;
7173 extern __at(0x0859) volatile __PSMC3FEBSbits_t PSMC3FEBSbits
;
7175 #define _P3FEBSC1 0x02
7176 #define _P3FEBSC2 0x04
7177 #define _P3FEBSC3 0x08
7178 #define _P3FEBSC4 0x10
7179 #define _P3FEBSIN 0x80
7181 //==============================================================================
7184 //==============================================================================
7187 extern __at(0x085A) __sfr PSMC3PHS
;
7191 unsigned P3PHST
: 1;
7192 unsigned P3PHSC1
: 1;
7193 unsigned P3PHSC2
: 1;
7194 unsigned P3PHSC3
: 1;
7195 unsigned P3PHSC4
: 1;
7198 unsigned P3PHSIN
: 1;
7201 extern __at(0x085A) volatile __PSMC3PHSbits_t PSMC3PHSbits
;
7203 #define _P3PHST 0x01
7204 #define _P3PHSC1 0x02
7205 #define _P3PHSC2 0x04
7206 #define _P3PHSC3 0x08
7207 #define _P3PHSC4 0x10
7208 #define _P3PHSIN 0x80
7210 //==============================================================================
7213 //==============================================================================
7216 extern __at(0x085B) __sfr PSMC3DCS
;
7220 unsigned P3DCST
: 1;
7221 unsigned P3DCSC1
: 1;
7222 unsigned P3DCSC2
: 1;
7223 unsigned P3DCSC3
: 1;
7224 unsigned P3DCSC4
: 1;
7227 unsigned P3DCSIN
: 1;
7230 extern __at(0x085B) volatile __PSMC3DCSbits_t PSMC3DCSbits
;
7232 #define _P3DCST 0x01
7233 #define _P3DCSC1 0x02
7234 #define _P3DCSC2 0x04
7235 #define _P3DCSC3 0x08
7236 #define _P3DCSC4 0x10
7237 #define _P3DCSIN 0x80
7239 //==============================================================================
7242 //==============================================================================
7245 extern __at(0x085C) __sfr PSMC3PRS
;
7249 unsigned P3PRST
: 1;
7250 unsigned P3PRSC1
: 1;
7251 unsigned P3PRSC2
: 1;
7252 unsigned P3PRSC3
: 1;
7253 unsigned P3PRSC4
: 1;
7256 unsigned P3PRSIN
: 1;
7259 extern __at(0x085C) volatile __PSMC3PRSbits_t PSMC3PRSbits
;
7261 #define _P3PRST 0x01
7262 #define _P3PRSC1 0x02
7263 #define _P3PRSC2 0x04
7264 #define _P3PRSC3 0x08
7265 #define _P3PRSC4 0x10
7266 #define _P3PRSIN 0x80
7268 //==============================================================================
7271 //==============================================================================
7274 extern __at(0x085D) __sfr PSMC3ASDC
;
7278 unsigned P3ASDOV
: 1;
7283 unsigned P3ARSEN
: 1;
7284 unsigned P3ASDEN
: 1;
7286 } __PSMC3ASDCbits_t
;
7288 extern __at(0x085D) volatile __PSMC3ASDCbits_t PSMC3ASDCbits
;
7290 #define _P3ASDOV 0x01
7291 #define _P3ARSEN 0x20
7292 #define _P3ASDEN 0x40
7295 //==============================================================================
7298 //==============================================================================
7301 extern __at(0x085E) __sfr PSMC3ASDL
;
7305 unsigned P3ASDLA
: 1;
7306 unsigned P3ASDLB
: 1;
7307 unsigned P3ASDLC
: 1;
7308 unsigned P3ASDLD
: 1;
7309 unsigned P3ASDLE
: 1;
7310 unsigned P3ASDLF
: 1;
7313 } __PSMC3ASDLbits_t
;
7315 extern __at(0x085E) volatile __PSMC3ASDLbits_t PSMC3ASDLbits
;
7317 #define _P3ASDLA 0x01
7318 #define _P3ASDLB 0x02
7319 #define _P3ASDLC 0x04
7320 #define _P3ASDLD 0x08
7321 #define _P3ASDLE 0x10
7322 #define _P3ASDLF 0x20
7324 //==============================================================================
7327 //==============================================================================
7330 extern __at(0x085F) __sfr PSMC3ASDS
;
7335 unsigned P3ASDSC1
: 1;
7336 unsigned P3ASDSC2
: 1;
7337 unsigned P3ASDSC3
: 1;
7338 unsigned P3ASDSC4
: 1;
7341 unsigned P3ASDSIN
: 1;
7342 } __PSMC3ASDSbits_t
;
7344 extern __at(0x085F) volatile __PSMC3ASDSbits_t PSMC3ASDSbits
;
7346 #define _P3ASDSC1 0x02
7347 #define _P3ASDSC2 0x04
7348 #define _P3ASDSC3 0x08
7349 #define _P3ASDSC4 0x10
7350 #define _P3ASDSIN 0x80
7352 //==============================================================================
7355 //==============================================================================
7358 extern __at(0x0860) __sfr PSMC3INT
;
7362 unsigned P3TPRIF
: 1;
7363 unsigned P3TDCIF
: 1;
7364 unsigned P3TPHIF
: 1;
7365 unsigned P3TOVIF
: 1;
7366 unsigned P3TPRIE
: 1;
7367 unsigned P3TDCIE
: 1;
7368 unsigned P3TPHIE
: 1;
7369 unsigned P3TOVIE
: 1;
7372 extern __at(0x0860) volatile __PSMC3INTbits_t PSMC3INTbits
;
7374 #define _P3TPRIF 0x01
7375 #define _P3TDCIF 0x02
7376 #define _P3TPHIF 0x04
7377 #define _P3TOVIF 0x08
7378 #define _P3TPRIE 0x10
7379 #define _P3TDCIE 0x20
7380 #define _P3TPHIE 0x40
7381 #define _P3TOVIE 0x80
7383 //==============================================================================
7385 extern __at(0x0861) __sfr PSMC3PH
;
7387 //==============================================================================
7390 extern __at(0x0861) __sfr PSMC3PHL
;
7394 unsigned PSMC3PH0
: 1;
7395 unsigned PSMC3PH1
: 1;
7396 unsigned PSMC3PH2
: 1;
7397 unsigned PSMC3PH3
: 1;
7398 unsigned PSMC3PH4
: 1;
7399 unsigned PSMC3PH5
: 1;
7400 unsigned PSMC3PH6
: 1;
7401 unsigned PSMC3PH7
: 1;
7404 extern __at(0x0861) volatile __PSMC3PHLbits_t PSMC3PHLbits
;
7406 #define _PSMC3PH0 0x01
7407 #define _PSMC3PH1 0x02
7408 #define _PSMC3PH2 0x04
7409 #define _PSMC3PH3 0x08
7410 #define _PSMC3PH4 0x10
7411 #define _PSMC3PH5 0x20
7412 #define _PSMC3PH6 0x40
7413 #define _PSMC3PH7 0x80
7415 //==============================================================================
7418 //==============================================================================
7421 extern __at(0x0862) __sfr PSMC3PHH
;
7425 unsigned PSMC3PH8
: 1;
7426 unsigned PSMC3PH9
: 1;
7427 unsigned PSMC3PH10
: 1;
7428 unsigned PSMC3PH11
: 1;
7429 unsigned PSMC3PH12
: 1;
7430 unsigned PSMC3PH13
: 1;
7431 unsigned PSMC3PH14
: 1;
7432 unsigned PSMC3PH15
: 1;
7435 extern __at(0x0862) volatile __PSMC3PHHbits_t PSMC3PHHbits
;
7437 #define _PSMC3PH8 0x01
7438 #define _PSMC3PH9 0x02
7439 #define _PSMC3PH10 0x04
7440 #define _PSMC3PH11 0x08
7441 #define _PSMC3PH12 0x10
7442 #define _PSMC3PH13 0x20
7443 #define _PSMC3PH14 0x40
7444 #define _PSMC3PH15 0x80
7446 //==============================================================================
7448 extern __at(0x0863) __sfr PSMC3DC
;
7450 //==============================================================================
7453 extern __at(0x0863) __sfr PSMC3DCL
;
7457 unsigned PSMC3DC0
: 1;
7458 unsigned PSMC3DC1
: 1;
7459 unsigned PSMC3DC2
: 1;
7460 unsigned PSMC3DC3
: 1;
7461 unsigned PSMC3DC4
: 1;
7462 unsigned PSMC3DC5
: 1;
7463 unsigned PSMC3DC6
: 1;
7464 unsigned PSMC3DC7
: 1;
7467 extern __at(0x0863) volatile __PSMC3DCLbits_t PSMC3DCLbits
;
7469 #define _PSMC3DC0 0x01
7470 #define _PSMC3DC1 0x02
7471 #define _PSMC3DC2 0x04
7472 #define _PSMC3DC3 0x08
7473 #define _PSMC3DC4 0x10
7474 #define _PSMC3DC5 0x20
7475 #define _PSMC3DC6 0x40
7476 #define _PSMC3DC7 0x80
7478 //==============================================================================
7481 //==============================================================================
7484 extern __at(0x0864) __sfr PSMC3DCH
;
7488 unsigned PSMC3DC8
: 1;
7489 unsigned PSMC3DC9
: 1;
7490 unsigned PSMC3DC10
: 1;
7491 unsigned PSMC3DC11
: 1;
7492 unsigned PSMC3DC12
: 1;
7493 unsigned PSMC3DC13
: 1;
7494 unsigned PSMC3DC14
: 1;
7495 unsigned PSMC3DC15
: 1;
7498 extern __at(0x0864) volatile __PSMC3DCHbits_t PSMC3DCHbits
;
7500 #define _PSMC3DC8 0x01
7501 #define _PSMC3DC9 0x02
7502 #define _PSMC3DC10 0x04
7503 #define _PSMC3DC11 0x08
7504 #define _PSMC3DC12 0x10
7505 #define _PSMC3DC13 0x20
7506 #define _PSMC3DC14 0x40
7507 #define _PSMC3DC15 0x80
7509 //==============================================================================
7511 extern __at(0x0865) __sfr PSMC3PR
;
7513 //==============================================================================
7516 extern __at(0x0865) __sfr PSMC3PRL
;
7520 unsigned PSMC3PR0
: 1;
7521 unsigned PSMC3PR1
: 1;
7522 unsigned PSMC3PR2
: 1;
7523 unsigned PSMC3PR3
: 1;
7524 unsigned PSMC3PR4
: 1;
7525 unsigned PSMC3PR5
: 1;
7526 unsigned PSMC3PR6
: 1;
7527 unsigned PSMC3PR7
: 1;
7530 extern __at(0x0865) volatile __PSMC3PRLbits_t PSMC3PRLbits
;
7532 #define _PSMC3PR0 0x01
7533 #define _PSMC3PR1 0x02
7534 #define _PSMC3PR2 0x04
7535 #define _PSMC3PR3 0x08
7536 #define _PSMC3PR4 0x10
7537 #define _PSMC3PR5 0x20
7538 #define _PSMC3PR6 0x40
7539 #define _PSMC3PR7 0x80
7541 //==============================================================================
7544 //==============================================================================
7547 extern __at(0x0866) __sfr PSMC3PRH
;
7551 unsigned PSMC3PR8
: 1;
7552 unsigned PSMC3PR9
: 1;
7553 unsigned PSMC3PR10
: 1;
7554 unsigned PSMC3PR11
: 1;
7555 unsigned PSMC3PR12
: 1;
7556 unsigned PSMC3PR13
: 1;
7557 unsigned PSMC3PR14
: 1;
7558 unsigned PSMC3PR15
: 1;
7561 extern __at(0x0866) volatile __PSMC3PRHbits_t PSMC3PRHbits
;
7563 #define _PSMC3PR8 0x01
7564 #define _PSMC3PR9 0x02
7565 #define _PSMC3PR10 0x04
7566 #define _PSMC3PR11 0x08
7567 #define _PSMC3PR12 0x10
7568 #define _PSMC3PR13 0x20
7569 #define _PSMC3PR14 0x40
7570 #define _PSMC3PR15 0x80
7572 //==============================================================================
7574 extern __at(0x0867) __sfr PSMC3TMR
;
7576 //==============================================================================
7579 extern __at(0x0867) __sfr PSMC3TMRL
;
7583 unsigned PSMC3TMR0
: 1;
7584 unsigned PSMC3TMR1
: 1;
7585 unsigned PSMC3TMR2
: 1;
7586 unsigned PSMC3TMR3
: 1;
7587 unsigned PSMC3TMR4
: 1;
7588 unsigned PSMC3TMR5
: 1;
7589 unsigned PSMC3TMR6
: 1;
7590 unsigned PSMC3TMR7
: 1;
7591 } __PSMC3TMRLbits_t
;
7593 extern __at(0x0867) volatile __PSMC3TMRLbits_t PSMC3TMRLbits
;
7595 #define _PSMC3TMR0 0x01
7596 #define _PSMC3TMR1 0x02
7597 #define _PSMC3TMR2 0x04
7598 #define _PSMC3TMR3 0x08
7599 #define _PSMC3TMR4 0x10
7600 #define _PSMC3TMR5 0x20
7601 #define _PSMC3TMR6 0x40
7602 #define _PSMC3TMR7 0x80
7604 //==============================================================================
7607 //==============================================================================
7610 extern __at(0x0868) __sfr PSMC3TMRH
;
7614 unsigned PSMC3TMR8
: 1;
7615 unsigned PSMC3TMR9
: 1;
7616 unsigned PSMC3TMR10
: 1;
7617 unsigned PSMC3TMR11
: 1;
7618 unsigned PSMC3TMR12
: 1;
7619 unsigned PSMC3TMR13
: 1;
7620 unsigned PSMC3TMR14
: 1;
7621 unsigned PSMC3TMR15
: 1;
7622 } __PSMC3TMRHbits_t
;
7624 extern __at(0x0868) volatile __PSMC3TMRHbits_t PSMC3TMRHbits
;
7626 #define _PSMC3TMR8 0x01
7627 #define _PSMC3TMR9 0x02
7628 #define _PSMC3TMR10 0x04
7629 #define _PSMC3TMR11 0x08
7630 #define _PSMC3TMR12 0x10
7631 #define _PSMC3TMR13 0x20
7632 #define _PSMC3TMR14 0x40
7633 #define _PSMC3TMR15 0x80
7635 //==============================================================================
7638 //==============================================================================
7641 extern __at(0x0869) __sfr PSMC3DBR
;
7645 unsigned PSMC3DBR0
: 1;
7646 unsigned PSMC3DBR1
: 1;
7647 unsigned PSMC3DBR2
: 1;
7648 unsigned PSMC3DBR3
: 1;
7649 unsigned PSMC3DBR4
: 1;
7650 unsigned PSMC3DBR5
: 1;
7651 unsigned PSMC3DBR6
: 1;
7652 unsigned PSMC3DBR7
: 1;
7655 extern __at(0x0869) volatile __PSMC3DBRbits_t PSMC3DBRbits
;
7657 #define _PSMC3DBR0 0x01
7658 #define _PSMC3DBR1 0x02
7659 #define _PSMC3DBR2 0x04
7660 #define _PSMC3DBR3 0x08
7661 #define _PSMC3DBR4 0x10
7662 #define _PSMC3DBR5 0x20
7663 #define _PSMC3DBR6 0x40
7664 #define _PSMC3DBR7 0x80
7666 //==============================================================================
7669 //==============================================================================
7672 extern __at(0x086A) __sfr PSMC3DBF
;
7676 unsigned PSMC3DBF0
: 1;
7677 unsigned PSMC3DBF1
: 1;
7678 unsigned PSMC3DBF2
: 1;
7679 unsigned PSMC3DBF3
: 1;
7680 unsigned PSMC3DBF4
: 1;
7681 unsigned PSMC3DBF5
: 1;
7682 unsigned PSMC3DBF6
: 1;
7683 unsigned PSMC3DBF7
: 1;
7686 extern __at(0x086A) volatile __PSMC3DBFbits_t PSMC3DBFbits
;
7688 #define _PSMC3DBF0 0x01
7689 #define _PSMC3DBF1 0x02
7690 #define _PSMC3DBF2 0x04
7691 #define _PSMC3DBF3 0x08
7692 #define _PSMC3DBF4 0x10
7693 #define _PSMC3DBF5 0x20
7694 #define _PSMC3DBF6 0x40
7695 #define _PSMC3DBF7 0x80
7697 //==============================================================================
7700 //==============================================================================
7703 extern __at(0x086B) __sfr PSMC3BLKR
;
7707 unsigned PSMC3BLKR0
: 1;
7708 unsigned PSMC3BLKR1
: 1;
7709 unsigned PSMC3BLKR2
: 1;
7710 unsigned PSMC3BLKR3
: 1;
7711 unsigned PSMC3BLKR4
: 1;
7712 unsigned PSMC3BLKR5
: 1;
7713 unsigned PSMC3BLKR6
: 1;
7714 unsigned PSMC3BLKR7
: 1;
7715 } __PSMC3BLKRbits_t
;
7717 extern __at(0x086B) volatile __PSMC3BLKRbits_t PSMC3BLKRbits
;
7719 #define _PSMC3BLKR0 0x01
7720 #define _PSMC3BLKR1 0x02
7721 #define _PSMC3BLKR2 0x04
7722 #define _PSMC3BLKR3 0x08
7723 #define _PSMC3BLKR4 0x10
7724 #define _PSMC3BLKR5 0x20
7725 #define _PSMC3BLKR6 0x40
7726 #define _PSMC3BLKR7 0x80
7728 //==============================================================================
7731 //==============================================================================
7734 extern __at(0x086C) __sfr PSMC3BLKF
;
7738 unsigned PSMC3BLKF0
: 1;
7739 unsigned PSMC3BLKF1
: 1;
7740 unsigned PSMC3BLKF2
: 1;
7741 unsigned PSMC3BLKF3
: 1;
7742 unsigned PSMC3BLKF4
: 1;
7743 unsigned PSMC3BLKF5
: 1;
7744 unsigned PSMC3BLKF6
: 1;
7745 unsigned PSMC3BLKF7
: 1;
7746 } __PSMC3BLKFbits_t
;
7748 extern __at(0x086C) volatile __PSMC3BLKFbits_t PSMC3BLKFbits
;
7750 #define _PSMC3BLKF0 0x01
7751 #define _PSMC3BLKF1 0x02
7752 #define _PSMC3BLKF2 0x04
7753 #define _PSMC3BLKF3 0x08
7754 #define _PSMC3BLKF4 0x10
7755 #define _PSMC3BLKF5 0x20
7756 #define _PSMC3BLKF6 0x40
7757 #define _PSMC3BLKF7 0x80
7759 //==============================================================================
7762 //==============================================================================
7765 extern __at(0x086D) __sfr PSMC3FFA
;
7771 unsigned PSMC3FFA0
: 1;
7772 unsigned PSMC3FFA1
: 1;
7773 unsigned PSMC3FFA2
: 1;
7774 unsigned PSMC3FFA3
: 1;
7783 unsigned PSMC3FFA
: 4;
7788 extern __at(0x086D) volatile __PSMC3FFAbits_t PSMC3FFAbits
;
7790 #define _PSMC3FFA0 0x01
7791 #define _PSMC3FFA1 0x02
7792 #define _PSMC3FFA2 0x04
7793 #define _PSMC3FFA3 0x08
7795 //==============================================================================
7798 //==============================================================================
7801 extern __at(0x086E) __sfr PSMC3STR0
;
7805 unsigned P3STRA
: 1;
7806 unsigned P3STRB
: 1;
7807 unsigned P3STRC
: 1;
7808 unsigned P3STRD
: 1;
7809 unsigned P3STRE
: 1;
7810 unsigned P3STRF
: 1;
7813 } __PSMC3STR0bits_t
;
7815 extern __at(0x086E) volatile __PSMC3STR0bits_t PSMC3STR0bits
;
7817 #define _P3STRA 0x01
7818 #define _P3STRB 0x02
7819 #define _P3STRC 0x04
7820 #define _P3STRD 0x08
7821 #define _P3STRE 0x10
7822 #define _P3STRF 0x20
7824 //==============================================================================
7827 //==============================================================================
7830 extern __at(0x086F) __sfr PSMC3STR1
;
7834 unsigned P3HSMEN
: 1;
7835 unsigned P3LSMEN
: 1;
7841 unsigned P3SSYNC
: 1;
7842 } __PSMC3STR1bits_t
;
7844 extern __at(0x086F) volatile __PSMC3STR1bits_t PSMC3STR1bits
;
7846 #define _P3HSMEN 0x01
7847 #define _P3LSMEN 0x02
7848 #define _P3SSYNC 0x80
7850 //==============================================================================
7853 //==============================================================================
7856 extern __at(0x0FE4) __sfr STATUS_SHAD
;
7860 unsigned C_SHAD
: 1;
7861 unsigned DC_SHAD
: 1;
7862 unsigned Z_SHAD
: 1;
7868 } __STATUS_SHADbits_t
;
7870 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
7872 #define _C_SHAD 0x01
7873 #define _DC_SHAD 0x02
7874 #define _Z_SHAD 0x04
7876 //==============================================================================
7878 extern __at(0x0FE5) __sfr WREG_SHAD
;
7879 extern __at(0x0FE6) __sfr BSR_SHAD
;
7880 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
7881 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
7882 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
7883 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
7884 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
7885 extern __at(0x0FED) __sfr STKPTR
;
7886 extern __at(0x0FEE) __sfr TOSL
;
7887 extern __at(0x0FEF) __sfr TOSH
;
7889 //==============================================================================
7891 // Configuration Bits
7893 //==============================================================================
7895 #define _CONFIG1 0x8007
7896 #define _CONFIG2 0x8008
7898 //----------------------------- CONFIG1 Options -------------------------------
7900 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
7901 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
7902 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
7903 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
7904 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
7905 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
7906 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
7907 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin.
7908 #define _WDTE_OFF 0x3FE7 // WDT disabled.
7909 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
7910 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
7911 #define _WDTE_ON 0x3FFF // WDT enabled.
7912 #define _PWRTE_ON 0x3FDF // PWRT enabled.
7913 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
7914 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
7915 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
7916 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
7917 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
7918 #define _CPD_ON 0x3EFF // Data memory code protection is enabled.
7919 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
7920 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
7921 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
7922 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
7923 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
7924 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
7925 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
7926 #define _IESO_OFF 0x2FFF // Internal/External Switchover mode is disabled.
7927 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
7928 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
7929 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
7931 //----------------------------- CONFIG2 Options -------------------------------
7933 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
7934 #define _WRT_HALF 0x3FFD // 000h to 7FFh write protected, 800h to FFFh may be modified by EECON control.
7935 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to FFFh may be modified by EECON control.
7936 #define _WRT_OFF 0x3FFF // Write protection off.
7937 #define _VCAPEN_ON 0x3FDF // Vcap functionality is enabled on RA6 (Vddcore is connected to the pad).
7938 #define _VCAPEN_OFF 0x3FFF // Vcap functionality is disabled on RA6.
7939 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
7940 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
7941 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
7942 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
7943 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
7944 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
7945 #define _LPBOR_ON 0x37FF // Low power brown-out is enabled.
7946 #define _LPBOR_OFF 0x3FFF // Low power brown-out is disabled.
7947 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
7948 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
7949 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
7950 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
7952 //==============================================================================
7954 #define _DEVID1 0x8006
7956 #define _IDLOC0 0x8000
7957 #define _IDLOC1 0x8001
7958 #define _IDLOC2 0x8002
7959 #define _IDLOC3 0x8003
7961 //==============================================================================
7963 #ifndef NO_BIT_DEFINES
7965 #define ADON ADCON0bits.ADON // bit 0
7966 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
7967 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
7968 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
7969 #define DONE ADCON0bits.DONE // bit 1, shadows bit in ADCON0bits
7970 #define CHS0 ADCON0bits.CHS0 // bit 2
7971 #define CHS1 ADCON0bits.CHS1 // bit 3
7972 #define CHS2 ADCON0bits.CHS2 // bit 4
7973 #define CHS3 ADCON0bits.CHS3 // bit 5
7974 #define CHS4 ADCON0bits.CHS4 // bit 6
7975 #define ADRMD ADCON0bits.ADRMD // bit 7
7977 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
7978 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
7979 #define ADNREF ADCON1bits.ADNREF // bit 2
7980 #define ADCS0 ADCON1bits.ADCS0 // bit 4
7981 #define ADCS1 ADCON1bits.ADCS1 // bit 5
7982 #define ADCS2 ADCON1bits.ADCS2 // bit 6
7983 #define ADFM ADCON1bits.ADFM // bit 7
7985 #define CHSN0 ADCON2bits.CHSN0 // bit 0
7986 #define CHSN1 ADCON2bits.CHSN1 // bit 1
7987 #define CHSN2 ADCON2bits.CHSN2 // bit 2
7988 #define CHSN3 ADCON2bits.CHSN3 // bit 3
7989 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
7990 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
7991 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
7992 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
7994 #define ANSA0 ANSELAbits.ANSA0 // bit 0
7995 #define ANSA1 ANSELAbits.ANSA1 // bit 1
7996 #define ANSA2 ANSELAbits.ANSA2 // bit 2
7997 #define ANSA3 ANSELAbits.ANSA3 // bit 3
7998 #define ANSA4 ANSELAbits.ANSA4 // bit 4
7999 #define ANSA5 ANSELAbits.ANSA5 // bit 5
8000 #define ANSA7 ANSELAbits.ANSA7 // bit 7
8002 #define ANSB0 ANSELBbits.ANSB0 // bit 0
8003 #define ANSB1 ANSELBbits.ANSB1 // bit 1
8004 #define ANSB2 ANSELBbits.ANSB2 // bit 2
8005 #define ANSB3 ANSELBbits.ANSB3 // bit 3
8006 #define ANSB4 ANSELBbits.ANSB4 // bit 4
8007 #define ANSB5 ANSELBbits.ANSB5 // bit 5
8008 #define ANSB6 ANSELBbits.ANSB6 // bit 6
8010 #define ANSD0 ANSELDbits.ANSD0 // bit 0
8011 #define ANSD1 ANSELDbits.ANSD1 // bit 1
8012 #define ANSD2 ANSELDbits.ANSD2 // bit 2
8014 #define ANSE0 ANSELEbits.ANSE0 // bit 0
8015 #define ANSE1 ANSELEbits.ANSE1 // bit 1
8016 #define ANSE2 ANSELEbits.ANSE2 // bit 2
8018 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
8019 #define RXSEL APFCONbits.RXSEL // bit 1
8020 #define TXSEL APFCONbits.TXSEL // bit 2
8021 #define SDISEL APFCONbits.SDISEL // bit 3
8022 #define SCKSEL APFCONbits.SCKSEL // bit 4
8023 #define SDOSEL APFCONbits.SDOSEL // bit 5
8024 #define CCP1SEL APFCONbits.CCP1SEL // bit 6
8025 #define C2OUTSEL APFCONbits.C2OUTSEL // bit 7
8027 #define CCP3SEL APFCON2bits.CCP3SEL // bit 0
8029 #define ABDEN BAUD1CONbits.ABDEN // bit 0
8030 #define WUE BAUD1CONbits.WUE // bit 1
8031 #define BRG16 BAUD1CONbits.BRG16 // bit 3
8032 #define SCKP BAUD1CONbits.SCKP // bit 4
8033 #define RCIDL BAUD1CONbits.RCIDL // bit 6
8034 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
8036 #define BORRDY BORCONbits.BORRDY // bit 0
8037 #define BORFS BORCONbits.BORFS // bit 6
8038 #define SBOREN BORCONbits.SBOREN // bit 7
8040 #define BSR0 BSRbits.BSR0 // bit 0
8041 #define BSR1 BSRbits.BSR1 // bit 1
8042 #define BSR2 BSRbits.BSR2 // bit 2
8043 #define BSR3 BSRbits.BSR3 // bit 3
8044 #define BSR4 BSRbits.BSR4 // bit 4
8046 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
8047 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
8048 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
8049 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
8050 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
8051 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
8053 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
8054 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
8055 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
8056 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
8057 #define DC2B0 CCP2CONbits.DC2B0 // bit 4
8058 #define DC2B1 CCP2CONbits.DC2B1 // bit 5
8060 #define CCP3M0 CCP3CONbits.CCP3M0 // bit 0
8061 #define CCP3M1 CCP3CONbits.CCP3M1 // bit 1
8062 #define CCP3M2 CCP3CONbits.CCP3M2 // bit 2
8063 #define CCP3M3 CCP3CONbits.CCP3M3 // bit 3
8064 #define DC3B0 CCP3CONbits.DC3B0 // bit 4
8065 #define DC3B1 CCP3CONbits.DC3B1 // bit 5
8067 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
8068 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
8069 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
8070 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
8071 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
8072 #define CLKRSLR CLKRCONbits.CLKRSLR // bit 5
8073 #define CLKROE CLKRCONbits.CLKROE // bit 6
8074 #define CLKREN CLKRCONbits.CLKREN // bit 7
8076 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
8077 #define C1HYS CM1CON0bits.C1HYS // bit 1
8078 #define C1SP CM1CON0bits.C1SP // bit 2
8079 #define C1ZLF CM1CON0bits.C1ZLF // bit 3
8080 #define C1POL CM1CON0bits.C1POL // bit 4
8081 #define C1OE CM1CON0bits.C1OE // bit 5
8082 #define C1OUT CM1CON0bits.C1OUT // bit 6
8083 #define C1ON CM1CON0bits.C1ON // bit 7
8085 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
8086 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
8087 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
8088 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
8089 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
8090 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
8091 #define C1INTN CM1CON1bits.C1INTN // bit 6
8092 #define C1INTP CM1CON1bits.C1INTP // bit 7
8094 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
8095 #define C2HYS CM2CON0bits.C2HYS // bit 1
8096 #define C2SP CM2CON0bits.C2SP // bit 2
8097 #define C2ZLF CM2CON0bits.C2ZLF // bit 3
8098 #define C2POL CM2CON0bits.C2POL // bit 4
8099 #define C2OE CM2CON0bits.C2OE // bit 5
8100 #define C2OUT CM2CON0bits.C2OUT // bit 6
8101 #define C2ON CM2CON0bits.C2ON // bit 7
8103 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
8104 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
8105 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
8106 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 3
8107 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 4
8108 #define C2PCH2 CM2CON1bits.C2PCH2 // bit 5
8109 #define C2INTN CM2CON1bits.C2INTN // bit 6
8110 #define C2INTP CM2CON1bits.C2INTP // bit 7
8112 #define C3SYNC CM3CON0bits.C3SYNC // bit 0
8113 #define C3HYS CM3CON0bits.C3HYS // bit 1
8114 #define C3SP CM3CON0bits.C3SP // bit 2
8115 #define C3ZLF CM3CON0bits.C3ZLF // bit 3
8116 #define C3POL CM3CON0bits.C3POL // bit 4
8117 #define C3OE CM3CON0bits.C3OE // bit 5
8118 #define C3OUT CM3CON0bits.C3OUT // bit 6
8119 #define C3ON CM3CON0bits.C3ON // bit 7
8121 #define C3NCH0 CM3CON1bits.C3NCH0 // bit 0
8122 #define C3NCH1 CM3CON1bits.C3NCH1 // bit 1
8123 #define C3NCH2 CM3CON1bits.C3NCH2 // bit 2
8124 #define C3PCH0 CM3CON1bits.C3PCH0 // bit 3
8125 #define C3PCH1 CM3CON1bits.C3PCH1 // bit 4
8126 #define C3PCH2 CM3CON1bits.C3PCH2 // bit 5
8127 #define C3INTN CM3CON1bits.C3INTN // bit 6
8128 #define C3INTP CM3CON1bits.C3INTP // bit 7
8130 #define C4SYNC CM4CON0bits.C4SYNC // bit 0
8131 #define C4HYS CM4CON0bits.C4HYS // bit 1
8132 #define C4SP CM4CON0bits.C4SP // bit 2
8133 #define C4ZLF CM4CON0bits.C4ZLF // bit 3
8134 #define C4POL CM4CON0bits.C4POL // bit 4
8135 #define C4OE CM4CON0bits.C4OE // bit 5
8136 #define C4OUT CM4CON0bits.C4OUT // bit 6
8137 #define C4ON CM4CON0bits.C4ON // bit 7
8139 #define C4NCH0 CM4CON1bits.C4NCH0 // bit 0
8140 #define C4NCH1 CM4CON1bits.C4NCH1 // bit 1
8141 #define C4NCH2 CM4CON1bits.C4NCH2 // bit 2
8142 #define C4PCH0 CM4CON1bits.C4PCH0 // bit 3
8143 #define C4PCH1 CM4CON1bits.C4PCH1 // bit 4
8144 #define C4PCH2 CM4CON1bits.C4PCH2 // bit 5
8145 #define C4INTN CM4CON1bits.C4INTN // bit 6
8146 #define C4INTP CM4CON1bits.C4INTP // bit 7
8148 #define MC1OUT CMOUTbits.MC1OUT // bit 0
8149 #define MC2OUT CMOUTbits.MC2OUT // bit 1
8150 #define MC3OUT CMOUTbits.MC3OUT // bit 2
8151 #define MC4OUT CMOUTbits.MC4OUT // bit 3
8153 #define DACNSS DACCON0bits.DACNSS // bit 0
8154 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
8155 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
8156 #define DACOE2 DACCON0bits.DACOE2 // bit 4
8157 #define DACOE1 DACCON0bits.DACOE1 // bit 5
8158 #define DACEN DACCON0bits.DACEN // bit 7
8160 #define DACR0 DACCON1bits.DACR0 // bit 0
8161 #define DACR1 DACCON1bits.DACR1 // bit 1
8162 #define DACR2 DACCON1bits.DACR2 // bit 2
8163 #define DACR3 DACCON1bits.DACR3 // bit 3
8164 #define DACR4 DACCON1bits.DACR4 // bit 4
8165 #define DACR5 DACCON1bits.DACR5 // bit 5
8166 #define DACR6 DACCON1bits.DACR6 // bit 6
8167 #define DACR7 DACCON1bits.DACR7 // bit 7
8169 #define RD EECON1bits.RD // bit 0
8170 #define WR EECON1bits.WR // bit 1
8171 #define WREN EECON1bits.WREN // bit 2
8172 #define WRERR EECON1bits.WRERR // bit 3
8173 #define FREE EECON1bits.FREE // bit 4
8174 #define LWLO EECON1bits.LWLO // bit 5
8175 #define CFGS EECON1bits.CFGS // bit 6
8176 #define EEPGD EECON1bits.EEPGD // bit 7
8178 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
8179 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
8180 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
8181 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
8182 #define TSRNG FVRCONbits.TSRNG // bit 4
8183 #define TSEN FVRCONbits.TSEN // bit 5
8184 #define FVRRDY FVRCONbits.FVRRDY // bit 6
8185 #define FVREN FVRCONbits.FVREN // bit 7
8187 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
8188 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
8189 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
8190 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
8191 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
8192 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
8193 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
8194 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
8196 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
8197 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
8198 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
8199 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
8200 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
8201 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
8202 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
8203 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
8205 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
8206 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
8207 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
8208 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
8209 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
8210 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
8211 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
8212 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
8214 #define INLVLD0 INLVLDbits.INLVLD0 // bit 0
8215 #define INLVLD1 INLVLDbits.INLVLD1 // bit 1
8216 #define INLVLD2 INLVLDbits.INLVLD2 // bit 2
8217 #define INLVLD3 INLVLDbits.INLVLD3 // bit 3
8218 #define INLVLD4 INLVLDbits.INLVLD4 // bit 4
8219 #define INLVLD5 INLVLDbits.INLVLD5 // bit 5
8220 #define INLVLD6 INLVLDbits.INLVLD6 // bit 6
8221 #define INLVLD7 INLVLDbits.INLVLD7 // bit 7
8223 #define INLVLE0 INLVLEbits.INLVLE0 // bit 0
8224 #define INLVLE1 INLVLEbits.INLVLE1 // bit 1
8225 #define INLVLE2 INLVLEbits.INLVLE2 // bit 2
8226 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
8228 #define IOCIF INTCONbits.IOCIF // bit 0
8229 #define INTF INTCONbits.INTF // bit 1
8230 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
8231 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
8232 #define IOCIE INTCONbits.IOCIE // bit 3
8233 #define INTE INTCONbits.INTE // bit 4
8234 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
8235 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
8236 #define PEIE INTCONbits.PEIE // bit 6
8237 #define GIE INTCONbits.GIE // bit 7
8239 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
8240 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
8241 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
8242 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
8243 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
8244 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
8245 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
8246 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
8248 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
8249 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
8250 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
8251 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
8252 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
8253 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
8254 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
8255 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
8257 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
8258 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
8259 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
8260 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
8261 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
8262 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
8263 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
8264 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
8266 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
8267 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
8268 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
8269 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
8270 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
8271 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
8272 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
8273 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
8275 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
8276 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
8277 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
8278 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
8279 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
8280 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
8281 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
8282 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
8284 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
8285 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
8286 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
8287 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
8288 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
8289 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
8290 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
8291 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
8293 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
8294 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
8295 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
8296 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
8297 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
8298 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
8299 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
8300 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
8302 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
8303 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
8304 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
8305 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
8306 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
8307 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
8308 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
8309 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
8311 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
8312 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
8313 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
8314 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
8315 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
8316 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
8317 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
8318 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
8320 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
8322 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
8324 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
8326 #define LATA0 LATAbits.LATA0 // bit 0
8327 #define LATA1 LATAbits.LATA1 // bit 1
8328 #define LATA2 LATAbits.LATA2 // bit 2
8329 #define LATA3 LATAbits.LATA3 // bit 3
8330 #define LATA4 LATAbits.LATA4 // bit 4
8331 #define LATA5 LATAbits.LATA5 // bit 5
8332 #define LATA6 LATAbits.LATA6 // bit 6
8333 #define LATA7 LATAbits.LATA7 // bit 7
8335 #define LATB0 LATBbits.LATB0 // bit 0
8336 #define LATB1 LATBbits.LATB1 // bit 1
8337 #define LATB2 LATBbits.LATB2 // bit 2
8338 #define LATB3 LATBbits.LATB3 // bit 3
8339 #define LATB4 LATBbits.LATB4 // bit 4
8340 #define LATB5 LATBbits.LATB5 // bit 5
8341 #define LATB6 LATBbits.LATB6 // bit 6
8342 #define LATB7 LATBbits.LATB7 // bit 7
8344 #define LATC0 LATCbits.LATC0 // bit 0
8345 #define LATC1 LATCbits.LATC1 // bit 1
8346 #define LATC2 LATCbits.LATC2 // bit 2
8347 #define LATC3 LATCbits.LATC3 // bit 3
8348 #define LATC4 LATCbits.LATC4 // bit 4
8349 #define LATC5 LATCbits.LATC5 // bit 5
8350 #define LATC6 LATCbits.LATC6 // bit 6
8351 #define LATC7 LATCbits.LATC7 // bit 7
8353 #define LATD0 LATDbits.LATD0 // bit 0
8354 #define LATD1 LATDbits.LATD1 // bit 1
8355 #define LATD2 LATDbits.LATD2 // bit 2
8356 #define LATD3 LATDbits.LATD3 // bit 3
8357 #define LATD4 LATDbits.LATD4 // bit 4
8358 #define LATD5 LATDbits.LATD5 // bit 5
8359 #define LATD6 LATDbits.LATD6 // bit 6
8360 #define LATD7 LATDbits.LATD7 // bit 7
8362 #define LATE0 LATEbits.LATE0 // bit 0
8363 #define LATE1 LATEbits.LATE1 // bit 1
8364 #define LATE2 LATEbits.LATE2 // bit 2
8366 #define ODCONA0 ODCONAbits.ODCONA0 // bit 0
8367 #define ODCONA1 ODCONAbits.ODCONA1 // bit 1
8368 #define ODCONA2 ODCONAbits.ODCONA2 // bit 2
8369 #define ODCONA3 ODCONAbits.ODCONA3 // bit 3
8370 #define ODCONA4 ODCONAbits.ODCONA4 // bit 4
8371 #define ODCONA5 ODCONAbits.ODCONA5 // bit 5
8372 #define ODCONA6 ODCONAbits.ODCONA6 // bit 6
8373 #define ODCONA7 ODCONAbits.ODCONA7 // bit 7
8375 #define ODCONB0 ODCONBbits.ODCONB0 // bit 0
8376 #define ODCONB1 ODCONBbits.ODCONB1 // bit 1
8377 #define ODCONB2 ODCONBbits.ODCONB2 // bit 2
8378 #define ODCONB3 ODCONBbits.ODCONB3 // bit 3
8379 #define ODCONB4 ODCONBbits.ODCONB4 // bit 4
8380 #define ODCONB5 ODCONBbits.ODCONB5 // bit 5
8381 #define ODCONB6 ODCONBbits.ODCONB6 // bit 6
8382 #define ODCONB7 ODCONBbits.ODCONB7 // bit 7
8384 #define ODCONC0 ODCONCbits.ODCONC0 // bit 0
8385 #define ODCONC1 ODCONCbits.ODCONC1 // bit 1
8386 #define ODCONC2 ODCONCbits.ODCONC2 // bit 2
8387 #define ODCONC3 ODCONCbits.ODCONC3 // bit 3
8388 #define ODCONC4 ODCONCbits.ODCONC4 // bit 4
8389 #define ODCONC5 ODCONCbits.ODCONC5 // bit 5
8390 #define ODCONC6 ODCONCbits.ODCONC6 // bit 6
8391 #define ODCONC7 ODCONCbits.ODCONC7 // bit 7
8393 #define ODCOND0 ODCONDbits.ODCOND0 // bit 0
8394 #define ODCOND1 ODCONDbits.ODCOND1 // bit 1
8395 #define ODCOND2 ODCONDbits.ODCOND2 // bit 2
8396 #define ODCOND3 ODCONDbits.ODCOND3 // bit 3
8397 #define ODCOND4 ODCONDbits.ODCOND4 // bit 4
8398 #define ODCOND5 ODCONDbits.ODCOND5 // bit 5
8399 #define ODCOND6 ODCONDbits.ODCOND6 // bit 6
8400 #define ODCOND7 ODCONDbits.ODCOND7 // bit 7
8402 #define ODCONE0 ODCONEbits.ODCONE0 // bit 0
8403 #define ODCONE1 ODCONEbits.ODCONE1 // bit 1
8404 #define ODCONE2 ODCONEbits.ODCONE2 // bit 2
8406 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0, shadows bit in OPA1CONbits
8407 #define PCH0 OPA1CONbits.PCH0 // bit 0, shadows bit in OPA1CONbits
8408 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1, shadows bit in OPA1CONbits
8409 #define PCH1 OPA1CONbits.PCH1 // bit 1, shadows bit in OPA1CONbits
8410 #define OPA1SP OPA1CONbits.OPA1SP // bit 6, shadows bit in OPA1CONbits
8411 #define SP OPA1CONbits.SP // bit 6, shadows bit in OPA1CONbits
8412 #define OPA1EN OPA1CONbits.OPA1EN // bit 7, shadows bit in OPA1CONbits
8413 #define EN OPA1CONbits.EN // bit 7, shadows bit in OPA1CONbits
8415 #define PS0 OPTION_REGbits.PS0 // bit 0
8416 #define PS1 OPTION_REGbits.PS1 // bit 1
8417 #define PS2 OPTION_REGbits.PS2 // bit 2
8418 #define PSA OPTION_REGbits.PSA // bit 3
8419 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
8420 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
8421 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
8422 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
8423 #define INTEDG OPTION_REGbits.INTEDG // bit 6
8424 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
8426 #define SCS0 OSCCONbits.SCS0 // bit 0
8427 #define SCS1 OSCCONbits.SCS1 // bit 1
8428 #define IRCF0 OSCCONbits.IRCF0 // bit 3
8429 #define IRCF1 OSCCONbits.IRCF1 // bit 4
8430 #define IRCF2 OSCCONbits.IRCF2 // bit 5
8431 #define IRCF3 OSCCONbits.IRCF3 // bit 6
8432 #define SPLLEN OSCCONbits.SPLLEN // bit 7
8434 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
8435 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
8436 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
8437 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
8438 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
8439 #define OSTS OSCSTATbits.OSTS // bit 5
8440 #define PLLR OSCSTATbits.PLLR // bit 6
8441 #define T1OSCR OSCSTATbits.T1OSCR // bit 7
8443 #define TUN0 OSCTUNEbits.TUN0 // bit 0
8444 #define TUN1 OSCTUNEbits.TUN1 // bit 1
8445 #define TUN2 OSCTUNEbits.TUN2 // bit 2
8446 #define TUN3 OSCTUNEbits.TUN3 // bit 3
8447 #define TUN4 OSCTUNEbits.TUN4 // bit 4
8448 #define TUN5 OSCTUNEbits.TUN5 // bit 5
8450 #define NOT_BOR PCONbits.NOT_BOR // bit 0
8451 #define NOT_POR PCONbits.NOT_POR // bit 1
8452 #define NOT_RI PCONbits.NOT_RI // bit 2
8453 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
8454 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
8455 #define STKUNF PCONbits.STKUNF // bit 6
8456 #define STKOVF PCONbits.STKOVF // bit 7
8458 #define TMR1IE PIE1bits.TMR1IE // bit 0
8459 #define TMR2IE PIE1bits.TMR2IE // bit 1
8460 #define CCP1IE PIE1bits.CCP1IE // bit 2
8461 #define SSP1IE PIE1bits.SSP1IE // bit 3
8462 #define TXIE PIE1bits.TXIE // bit 4
8463 #define RCIE PIE1bits.RCIE // bit 5
8464 #define ADIE PIE1bits.ADIE // bit 6
8465 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
8467 #define CCP2IE PIE2bits.CCP2IE // bit 0
8468 #define C3IE PIE2bits.C3IE // bit 1
8469 #define C4IE PIE2bits.C4IE // bit 2
8470 #define BCL1IE PIE2bits.BCL1IE // bit 3
8471 #define EEIE PIE2bits.EEIE // bit 4
8472 #define C1IE PIE2bits.C1IE // bit 5
8473 #define C2IE PIE2bits.C2IE // bit 6
8474 #define OSFIE PIE2bits.OSFIE // bit 7
8476 #define CCP3IE PIE3bits.CCP3IE // bit 4
8478 #define PSMC1SIE PIE4bits.PSMC1SIE // bit 0
8479 #define PSMC2SIE PIE4bits.PSMC2SIE // bit 1
8480 #define PSMC3SIE PIE4bits.PSMC3SIE // bit 2
8481 #define PSMC1TIE PIE4bits.PSMC1TIE // bit 4
8482 #define PSMC2TIE PIE4bits.PSMC2TIE // bit 5
8483 #define PSMC3TIE PIE4bits.PSMC3TIE // bit 6, shadows bit in PIE4bits
8484 #define PMSC3TIE PIE4bits.PMSC3TIE // bit 6, shadows bit in PIE4bits
8486 #define TMR1IF PIR1bits.TMR1IF // bit 0
8487 #define TMR2IF PIR1bits.TMR2IF // bit 1
8488 #define CCP1IF PIR1bits.CCP1IF // bit 2
8489 #define SSP1IF PIR1bits.SSP1IF // bit 3
8490 #define TXIF PIR1bits.TXIF // bit 4
8491 #define RCIF PIR1bits.RCIF // bit 5
8492 #define ADIF PIR1bits.ADIF // bit 6
8493 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
8495 #define CCP2IF PIR2bits.CCP2IF // bit 0
8496 #define C3IF PIR2bits.C3IF // bit 1
8497 #define C4IF PIR2bits.C4IF // bit 2
8498 #define BCL1IF PIR2bits.BCL1IF // bit 3
8499 #define EEIF PIR2bits.EEIF // bit 4
8500 #define C1IF PIR2bits.C1IF // bit 5
8501 #define C2IF PIR2bits.C2IF // bit 6
8502 #define OSFIF PIR2bits.OSFIF // bit 7
8504 #define CCP3IF PIR3bits.CCP3IF // bit 4
8506 #define PSMC1SIF PIR4bits.PSMC1SIF // bit 0
8507 #define PSMC2SIF PIR4bits.PSMC2SIF // bit 1
8508 #define PSMC3SIF PIR4bits.PSMC3SIF // bit 2
8509 #define PSMC1TIF PIR4bits.PSMC1TIF // bit 4
8510 #define PSMC2TIF PIR4bits.PSMC2TIF // bit 5
8511 #define PSMC3TIF PIR4bits.PSMC3TIF // bit 6
8513 #define RA0 PORTAbits.RA0 // bit 0
8514 #define RA1 PORTAbits.RA1 // bit 1
8515 #define RA2 PORTAbits.RA2 // bit 2
8516 #define RA3 PORTAbits.RA3 // bit 3
8517 #define RA4 PORTAbits.RA4 // bit 4
8518 #define RA5 PORTAbits.RA5 // bit 5
8519 #define RA6 PORTAbits.RA6 // bit 6
8520 #define RA7 PORTAbits.RA7 // bit 7
8522 #define RB0 PORTBbits.RB0 // bit 0
8523 #define RB1 PORTBbits.RB1 // bit 1
8524 #define RB2 PORTBbits.RB2 // bit 2
8525 #define RB3 PORTBbits.RB3 // bit 3
8526 #define RB4 PORTBbits.RB4 // bit 4
8527 #define RB5 PORTBbits.RB5 // bit 5
8528 #define RB6 PORTBbits.RB6 // bit 6
8529 #define RB7 PORTBbits.RB7 // bit 7
8531 #define RC0 PORTCbits.RC0 // bit 0
8532 #define RC1 PORTCbits.RC1 // bit 1
8533 #define RC2 PORTCbits.RC2 // bit 2
8534 #define RC3 PORTCbits.RC3 // bit 3
8535 #define RC4 PORTCbits.RC4 // bit 4
8536 #define RC5 PORTCbits.RC5 // bit 5
8537 #define RC6 PORTCbits.RC6 // bit 6
8538 #define RC7 PORTCbits.RC7 // bit 7
8540 #define RD0 PORTDbits.RD0 // bit 0
8541 #define RD1 PORTDbits.RD1 // bit 1
8542 #define RD2 PORTDbits.RD2 // bit 2
8543 #define RD3 PORTDbits.RD3 // bit 3
8544 #define RD4 PORTDbits.RD4 // bit 4
8545 #define RD5 PORTDbits.RD5 // bit 5
8546 #define RD6 PORTDbits.RD6 // bit 6
8547 #define RD7 PORTDbits.RD7 // bit 7
8549 #define RE0 PORTEbits.RE0 // bit 0
8550 #define RE1 PORTEbits.RE1 // bit 1
8551 #define RE2 PORTEbits.RE2 // bit 2
8552 #define RE3 PORTEbits.RE3 // bit 3
8554 #define P1ASDOV PSMC1ASDCbits.P1ASDOV // bit 0
8555 #define P1ARSEN PSMC1ASDCbits.P1ARSEN // bit 5
8556 #define P1ASDEN PSMC1ASDCbits.P1ASDEN // bit 6
8557 #define P1ASE PSMC1ASDCbits.P1ASE // bit 7
8559 #define P1ASDLA PSMC1ASDLbits.P1ASDLA // bit 0
8560 #define P1ASDLB PSMC1ASDLbits.P1ASDLB // bit 1
8561 #define P1ASDLC PSMC1ASDLbits.P1ASDLC // bit 2
8562 #define P1ASDLD PSMC1ASDLbits.P1ASDLD // bit 3
8563 #define P1ASDLE PSMC1ASDLbits.P1ASDLE // bit 4
8564 #define P1ASDLF PSMC1ASDLbits.P1ASDLF // bit 5
8566 #define P1ASDSC1 PSMC1ASDSbits.P1ASDSC1 // bit 1
8567 #define P1ASDSC2 PSMC1ASDSbits.P1ASDSC2 // bit 2
8568 #define P1ASDSC3 PSMC1ASDSbits.P1ASDSC3 // bit 3
8569 #define P1ASDSC4 PSMC1ASDSbits.P1ASDSC4 // bit 4
8570 #define P1ASDSIN PSMC1ASDSbits.P1ASDSIN // bit 7
8572 #define PSMC1BLKF0 PSMC1BLKFbits.PSMC1BLKF0 // bit 0
8573 #define PSMC1BLKF1 PSMC1BLKFbits.PSMC1BLKF1 // bit 1
8574 #define PSMC1BLKF2 PSMC1BLKFbits.PSMC1BLKF2 // bit 2
8575 #define PSMC1BLKF3 PSMC1BLKFbits.PSMC1BLKF3 // bit 3
8576 #define PSMC1BLKF4 PSMC1BLKFbits.PSMC1BLKF4 // bit 4
8577 #define PSMC1BLKF5 PSMC1BLKFbits.PSMC1BLKF5 // bit 5
8578 #define PSMC1BLKF6 PSMC1BLKFbits.PSMC1BLKF6 // bit 6
8579 #define PSMC1BLKF7 PSMC1BLKFbits.PSMC1BLKF7 // bit 7
8581 #define PSMC1BLKR0 PSMC1BLKRbits.PSMC1BLKR0 // bit 0
8582 #define PSMC1BLKR1 PSMC1BLKRbits.PSMC1BLKR1 // bit 1
8583 #define PSMC1BLKR2 PSMC1BLKRbits.PSMC1BLKR2 // bit 2
8584 #define PSMC1BLKR3 PSMC1BLKRbits.PSMC1BLKR3 // bit 3
8585 #define PSMC1BLKR4 PSMC1BLKRbits.PSMC1BLKR4 // bit 4
8586 #define PSMC1BLKR5 PSMC1BLKRbits.PSMC1BLKR5 // bit 5
8587 #define PSMC1BLKR6 PSMC1BLKRbits.PSMC1BLKR6 // bit 6
8588 #define PSMC1BLKR7 PSMC1BLKRbits.PSMC1BLKR7 // bit 7
8590 #define P1REBM0 PSMC1BLNKbits.P1REBM0 // bit 0
8591 #define P1REBM1 PSMC1BLNKbits.P1REBM1 // bit 1
8592 #define P1FEBM0 PSMC1BLNKbits.P1FEBM0 // bit 4
8593 #define P1FEBM1 PSMC1BLNKbits.P1FEBM1 // bit 5
8595 #define P1CSRC0 PSMC1CLKbits.P1CSRC0 // bit 0
8596 #define P1CSRC1 PSMC1CLKbits.P1CSRC1 // bit 1
8597 #define P1CPRE0 PSMC1CLKbits.P1CPRE0 // bit 4
8598 #define P1CPRE1 PSMC1CLKbits.P1CPRE1 // bit 5
8600 #define P1MODE0 PSMC1CONbits.P1MODE0 // bit 0
8601 #define P1MODE1 PSMC1CONbits.P1MODE1 // bit 1
8602 #define P1MODE2 PSMC1CONbits.P1MODE2 // bit 2
8603 #define P1MODE3 PSMC1CONbits.P1MODE3 // bit 3
8604 #define P1DBRE PSMC1CONbits.P1DBRE // bit 4
8605 #define P1DBFE PSMC1CONbits.P1DBFE // bit 5
8606 #define PSMC1LD PSMC1CONbits.PSMC1LD // bit 6
8607 #define PSMC1EN PSMC1CONbits.PSMC1EN // bit 7
8609 #define PSMC1DBF0 PSMC1DBFbits.PSMC1DBF0 // bit 0
8610 #define PSMC1DBF1 PSMC1DBFbits.PSMC1DBF1 // bit 1
8611 #define PSMC1DBF2 PSMC1DBFbits.PSMC1DBF2 // bit 2
8612 #define PSMC1DBF3 PSMC1DBFbits.PSMC1DBF3 // bit 3
8613 #define PSMC1DBF4 PSMC1DBFbits.PSMC1DBF4 // bit 4
8614 #define PSMC1DBF5 PSMC1DBFbits.PSMC1DBF5 // bit 5
8615 #define PSMC1DBF6 PSMC1DBFbits.PSMC1DBF6 // bit 6
8616 #define PSMC1DBF7 PSMC1DBFbits.PSMC1DBF7 // bit 7
8618 #define PSMC1DBR0 PSMC1DBRbits.PSMC1DBR0 // bit 0
8619 #define PSMC1DBR1 PSMC1DBRbits.PSMC1DBR1 // bit 1
8620 #define PSMC1DBR2 PSMC1DBRbits.PSMC1DBR2 // bit 2
8621 #define PSMC1DBR3 PSMC1DBRbits.PSMC1DBR3 // bit 3
8622 #define PSMC1DBR4 PSMC1DBRbits.PSMC1DBR4 // bit 4
8623 #define PSMC1DBR5 PSMC1DBRbits.PSMC1DBR5 // bit 5
8624 #define PSMC1DBR6 PSMC1DBRbits.PSMC1DBR6 // bit 6
8625 #define PSMC1DBR7 PSMC1DBRbits.PSMC1DBR7 // bit 7
8627 #define PSMC1DC8 PSMC1DCHbits.PSMC1DC8 // bit 0
8628 #define PSMC1DC9 PSMC1DCHbits.PSMC1DC9 // bit 1
8629 #define PSMC1DC10 PSMC1DCHbits.PSMC1DC10 // bit 2
8630 #define PSMC1DC11 PSMC1DCHbits.PSMC1DC11 // bit 3
8631 #define PSMC1DC12 PSMC1DCHbits.PSMC1DC12 // bit 4
8632 #define PSMC1DC13 PSMC1DCHbits.PSMC1DC13 // bit 5
8633 #define PSMC1DC14 PSMC1DCHbits.PSMC1DC14 // bit 6
8634 #define PSMC1DC15 PSMC1DCHbits.PSMC1DC15 // bit 7
8636 #define PSMC1DC0 PSMC1DCLbits.PSMC1DC0 // bit 0
8637 #define PSMC1DC1 PSMC1DCLbits.PSMC1DC1 // bit 1
8638 #define PSMC1DC2 PSMC1DCLbits.PSMC1DC2 // bit 2
8639 #define PSMC1DC3 PSMC1DCLbits.PSMC1DC3 // bit 3
8640 #define PSMC1DC4 PSMC1DCLbits.PSMC1DC4 // bit 4
8641 #define PSMC1DC5 PSMC1DCLbits.PSMC1DC5 // bit 5
8642 #define PSMC1DC6 PSMC1DCLbits.PSMC1DC6 // bit 6
8643 #define PSMC1DC7 PSMC1DCLbits.PSMC1DC7 // bit 7
8645 #define P1DCST PSMC1DCSbits.P1DCST // bit 0
8646 #define P1DCSC1 PSMC1DCSbits.P1DCSC1 // bit 1
8647 #define P1DCSC2 PSMC1DCSbits.P1DCSC2 // bit 2
8648 #define P1DCSC3 PSMC1DCSbits.P1DCSC3 // bit 3
8649 #define P1DCSC4 PSMC1DCSbits.P1DCSC4 // bit 4
8650 #define P1DCSIN PSMC1DCSbits.P1DCSIN // bit 7
8652 #define P1FEBSC1 PSMC1FEBSbits.P1FEBSC1 // bit 1
8653 #define P1FEBSC2 PSMC1FEBSbits.P1FEBSC2 // bit 2
8654 #define P1FEBSC3 PSMC1FEBSbits.P1FEBSC3 // bit 3
8655 #define P1FEBSC4 PSMC1FEBSbits.P1FEBSC4 // bit 4
8656 #define P1FEBSIN PSMC1FEBSbits.P1FEBSIN // bit 7
8658 #define PSMC1FFA0 PSMC1FFAbits.PSMC1FFA0 // bit 0
8659 #define PSMC1FFA1 PSMC1FFAbits.PSMC1FFA1 // bit 1
8660 #define PSMC1FFA2 PSMC1FFAbits.PSMC1FFA2 // bit 2
8661 #define PSMC1FFA3 PSMC1FFAbits.PSMC1FFA3 // bit 3
8663 #define P1TPRIF PSMC1INTbits.P1TPRIF // bit 0
8664 #define P1TDCIF PSMC1INTbits.P1TDCIF // bit 1
8665 #define P1TPHIF PSMC1INTbits.P1TPHIF // bit 2
8666 #define P1TOVIF PSMC1INTbits.P1TOVIF // bit 3
8667 #define P1TPRIE PSMC1INTbits.P1TPRIE // bit 4
8668 #define P1TDCIE PSMC1INTbits.P1TDCIE // bit 5
8669 #define P1TPHIE PSMC1INTbits.P1TPHIE // bit 6
8670 #define P1TOVIE PSMC1INTbits.P1TOVIE // bit 7
8672 #define P1MSRC0 PSMC1MDLbits.P1MSRC0 // bit 0
8673 #define P1MSRC1 PSMC1MDLbits.P1MSRC1 // bit 1
8674 #define P1MSRC2 PSMC1MDLbits.P1MSRC2 // bit 2
8675 #define P1MSRC3 PSMC1MDLbits.P1MSRC3 // bit 3
8676 #define P1MDLBIT PSMC1MDLbits.P1MDLBIT // bit 5
8677 #define P1MDLPOL PSMC1MDLbits.P1MDLPOL // bit 6
8678 #define P1MDLEN PSMC1MDLbits.P1MDLEN // bit 7
8680 #define P1OEA PSMC1OENbits.P1OEA // bit 0
8681 #define P1OEB PSMC1OENbits.P1OEB // bit 1
8682 #define P1OEC PSMC1OENbits.P1OEC // bit 2
8683 #define P1OED PSMC1OENbits.P1OED // bit 3
8684 #define P1OEE PSMC1OENbits.P1OEE // bit 4
8685 #define P1OEF PSMC1OENbits.P1OEF // bit 5
8687 #define PSMC1PH8 PSMC1PHHbits.PSMC1PH8 // bit 0
8688 #define PSMC1PH9 PSMC1PHHbits.PSMC1PH9 // bit 1
8689 #define PSMC1PH10 PSMC1PHHbits.PSMC1PH10 // bit 2
8690 #define PSMC1PH11 PSMC1PHHbits.PSMC1PH11 // bit 3
8691 #define PSMC1PH12 PSMC1PHHbits.PSMC1PH12 // bit 4
8692 #define PSMC1PH13 PSMC1PHHbits.PSMC1PH13 // bit 5
8693 #define PSMC1PH14 PSMC1PHHbits.PSMC1PH14 // bit 6
8694 #define PSMC1PH15 PSMC1PHHbits.PSMC1PH15 // bit 7
8696 #define PSMC1PH0 PSMC1PHLbits.PSMC1PH0 // bit 0
8697 #define PSMC1PH1 PSMC1PHLbits.PSMC1PH1 // bit 1
8698 #define PSMC1PH2 PSMC1PHLbits.PSMC1PH2 // bit 2
8699 #define PSMC1PH3 PSMC1PHLbits.PSMC1PH3 // bit 3
8700 #define PSMC1PH4 PSMC1PHLbits.PSMC1PH4 // bit 4
8701 #define PSMC1PH5 PSMC1PHLbits.PSMC1PH5 // bit 5
8702 #define PSMC1PH6 PSMC1PHLbits.PSMC1PH6 // bit 6
8703 #define PSMC1PH7 PSMC1PHLbits.PSMC1PH7 // bit 7
8705 #define P1PHST PSMC1PHSbits.P1PHST // bit 0
8706 #define P1PHSC1 PSMC1PHSbits.P1PHSC1 // bit 1
8707 #define P1PHSC2 PSMC1PHSbits.P1PHSC2 // bit 2
8708 #define P1PHSC3 PSMC1PHSbits.P1PHSC3 // bit 3
8709 #define P1PHSC4 PSMC1PHSbits.P1PHSC4 // bit 4
8710 #define P1PHSIN PSMC1PHSbits.P1PHSIN // bit 7
8712 #define P1POLA PSMC1POLbits.P1POLA // bit 0
8713 #define P1POLB PSMC1POLbits.P1POLB // bit 1
8714 #define P1POLC PSMC1POLbits.P1POLC // bit 2
8715 #define P1POLD PSMC1POLbits.P1POLD // bit 3
8716 #define P1POLE PSMC1POLbits.P1POLE // bit 4
8717 #define P1POLF PSMC1POLbits.P1POLF // bit 5
8718 #define P1INPOL PSMC1POLbits.P1INPOL // bit 6
8720 #define PSMC1PR8 PSMC1PRHbits.PSMC1PR8 // bit 0
8721 #define PSMC1PR9 PSMC1PRHbits.PSMC1PR9 // bit 1
8722 #define PSMC1PR10 PSMC1PRHbits.PSMC1PR10 // bit 2
8723 #define PSMC1PR11 PSMC1PRHbits.PSMC1PR11 // bit 3
8724 #define PSMC1PR12 PSMC1PRHbits.PSMC1PR12 // bit 4
8725 #define PSMC1PR13 PSMC1PRHbits.PSMC1PR13 // bit 5
8726 #define PSMC1PR14 PSMC1PRHbits.PSMC1PR14 // bit 6
8727 #define PSMC1PR15 PSMC1PRHbits.PSMC1PR15 // bit 7
8729 #define PSMC1PR0 PSMC1PRLbits.PSMC1PR0 // bit 0
8730 #define PSMC1PR1 PSMC1PRLbits.PSMC1PR1 // bit 1
8731 #define PSMC1PR2 PSMC1PRLbits.PSMC1PR2 // bit 2
8732 #define PSMC1PR3 PSMC1PRLbits.PSMC1PR3 // bit 3
8733 #define PSMC1PR4 PSMC1PRLbits.PSMC1PR4 // bit 4
8734 #define PSMC1PR5 PSMC1PRLbits.PSMC1PR5 // bit 5
8735 #define PSMC1PR6 PSMC1PRLbits.PSMC1PR6 // bit 6
8736 #define PSMC1PR7 PSMC1PRLbits.PSMC1PR7 // bit 7
8738 #define P1PRST PSMC1PRSbits.P1PRST // bit 0
8739 #define P1PRSC1 PSMC1PRSbits.P1PRSC1 // bit 1
8740 #define P1PRSC2 PSMC1PRSbits.P1PRSC2 // bit 2
8741 #define P1PRSC3 PSMC1PRSbits.P1PRSC3 // bit 3
8742 #define P1PRSC4 PSMC1PRSbits.P1PRSC4 // bit 4
8743 #define P1PRSIN PSMC1PRSbits.P1PRSIN // bit 7
8745 #define P1REBSC1 PSMC1REBSbits.P1REBSC1 // bit 1
8746 #define P1REBSC2 PSMC1REBSbits.P1REBSC2 // bit 2
8747 #define P1REBSC3 PSMC1REBSbits.P1REBSC3 // bit 3
8748 #define P1REBSC4 PSMC1REBSbits.P1REBSC4 // bit 4
8749 #define P1REBSIN PSMC1REBSbits.P1REBSIN // bit 7
8751 #define P1STRA PSMC1STR0bits.P1STRA // bit 0
8752 #define P1STRB PSMC1STR0bits.P1STRB // bit 1
8753 #define P1STRC PSMC1STR0bits.P1STRC // bit 2
8754 #define P1STRD PSMC1STR0bits.P1STRD // bit 3
8755 #define P1STRE PSMC1STR0bits.P1STRE // bit 4
8756 #define P1STRF PSMC1STR0bits.P1STRF // bit 5
8758 #define P1HSMEN PSMC1STR1bits.P1HSMEN // bit 0
8759 #define P1LSMEN PSMC1STR1bits.P1LSMEN // bit 1
8760 #define P1SSYNC PSMC1STR1bits.P1SSYNC // bit 7
8762 #define P1SYNC0 PSMC1SYNCbits.P1SYNC0 // bit 0
8763 #define P1SYNC1 PSMC1SYNCbits.P1SYNC1 // bit 1
8764 #define P1SYNC2 PSMC1SYNCbits.P1SYNC2 // bit 2
8765 #define P1DCPOL PSMC1SYNCbits.P1DCPOL // bit 5
8766 #define P1PRPOL PSMC1SYNCbits.P1PRPOL // bit 6
8767 #define P1POFST PSMC1SYNCbits.P1POFST // bit 7
8769 #define PSMC1TMR8 PSMC1TMRHbits.PSMC1TMR8 // bit 0
8770 #define PSMC1TMR9 PSMC1TMRHbits.PSMC1TMR9 // bit 1
8771 #define PSMC1TMR10 PSMC1TMRHbits.PSMC1TMR10 // bit 2
8772 #define PSMC1TMR11 PSMC1TMRHbits.PSMC1TMR11 // bit 3
8773 #define PSMC1TMR12 PSMC1TMRHbits.PSMC1TMR12 // bit 4
8774 #define PSMC1TMR13 PSMC1TMRHbits.PSMC1TMR13 // bit 5
8775 #define PSMC1TMR14 PSMC1TMRHbits.PSMC1TMR14 // bit 6
8776 #define PSMC1TMR15 PSMC1TMRHbits.PSMC1TMR15 // bit 7
8778 #define PSMC1TMR0 PSMC1TMRLbits.PSMC1TMR0 // bit 0
8779 #define PSMC1TMR1 PSMC1TMRLbits.PSMC1TMR1 // bit 1
8780 #define PSMC1TMR2 PSMC1TMRLbits.PSMC1TMR2 // bit 2
8781 #define PSMC1TMR3 PSMC1TMRLbits.PSMC1TMR3 // bit 3
8782 #define PSMC1TMR4 PSMC1TMRLbits.PSMC1TMR4 // bit 4
8783 #define PSMC1TMR5 PSMC1TMRLbits.PSMC1TMR5 // bit 5
8784 #define PSMC1TMR6 PSMC1TMRLbits.PSMC1TMR6 // bit 6
8785 #define PSMC1TMR7 PSMC1TMRLbits.PSMC1TMR7 // bit 7
8787 #define P2ASDOV PSMC2ASDCbits.P2ASDOV // bit 0
8788 #define P2ARSEN PSMC2ASDCbits.P2ARSEN // bit 5
8789 #define P2ASDEN PSMC2ASDCbits.P2ASDEN // bit 6
8790 #define P2ASE PSMC2ASDCbits.P2ASE // bit 7
8792 #define P2ASDLA PSMC2ASDLbits.P2ASDLA // bit 0
8793 #define P2ASDLB PSMC2ASDLbits.P2ASDLB // bit 1
8795 #define P2ASDSC1 PSMC2ASDSbits.P2ASDSC1 // bit 1
8796 #define P2ASDSC2 PSMC2ASDSbits.P2ASDSC2 // bit 2
8797 #define P2ASDSC3 PSMC2ASDSbits.P2ASDSC3 // bit 3
8798 #define P2ASDSC4 PSMC2ASDSbits.P2ASDSC4 // bit 4
8799 #define P2ASDSIN PSMC2ASDSbits.P2ASDSIN // bit 7
8801 #define PSMC2BLKF0 PSMC2BLKFbits.PSMC2BLKF0 // bit 0
8802 #define PSMC2BLKF1 PSMC2BLKFbits.PSMC2BLKF1 // bit 1
8803 #define PSMC2BLKF2 PSMC2BLKFbits.PSMC2BLKF2 // bit 2
8804 #define PSMC2BLKF3 PSMC2BLKFbits.PSMC2BLKF3 // bit 3
8805 #define PSMC2BLKF4 PSMC2BLKFbits.PSMC2BLKF4 // bit 4
8806 #define PSMC2BLKF5 PSMC2BLKFbits.PSMC2BLKF5 // bit 5
8807 #define PSMC2BLKF6 PSMC2BLKFbits.PSMC2BLKF6 // bit 6
8808 #define PSMC2BLKF7 PSMC2BLKFbits.PSMC2BLKF7 // bit 7
8810 #define PSMC2BLKR0 PSMC2BLKRbits.PSMC2BLKR0 // bit 0
8811 #define PSMC2BLKR1 PSMC2BLKRbits.PSMC2BLKR1 // bit 1
8812 #define PSMC2BLKR2 PSMC2BLKRbits.PSMC2BLKR2 // bit 2
8813 #define PSMC2BLKR3 PSMC2BLKRbits.PSMC2BLKR3 // bit 3
8814 #define PSMC2BLKR4 PSMC2BLKRbits.PSMC2BLKR4 // bit 4
8815 #define PSMC2BLKR5 PSMC2BLKRbits.PSMC2BLKR5 // bit 5
8816 #define PSMC2BLKR6 PSMC2BLKRbits.PSMC2BLKR6 // bit 6
8817 #define PSMC2BLKR7 PSMC2BLKRbits.PSMC2BLKR7 // bit 7
8819 #define P2REBM0 PSMC2BLNKbits.P2REBM0 // bit 0
8820 #define P2REBM1 PSMC2BLNKbits.P2REBM1 // bit 1
8821 #define P2FEBM0 PSMC2BLNKbits.P2FEBM0 // bit 4
8822 #define P2FEBM1 PSMC2BLNKbits.P2FEBM1 // bit 5
8824 #define P2CSRC0 PSMC2CLKbits.P2CSRC0 // bit 0
8825 #define P2CSRC1 PSMC2CLKbits.P2CSRC1 // bit 1
8826 #define P2CPRE0 PSMC2CLKbits.P2CPRE0 // bit 4
8827 #define P2CPRE1 PSMC2CLKbits.P2CPRE1 // bit 5
8829 #define P2MODE0 PSMC2CONbits.P2MODE0 // bit 0
8830 #define P2MODE1 PSMC2CONbits.P2MODE1 // bit 1
8831 #define P2MODE2 PSMC2CONbits.P2MODE2 // bit 2
8832 #define P2MODE3 PSMC2CONbits.P2MODE3 // bit 3
8833 #define P2DBRE PSMC2CONbits.P2DBRE // bit 4
8834 #define P2DBFE PSMC2CONbits.P2DBFE // bit 5
8835 #define PSMC2LD PSMC2CONbits.PSMC2LD // bit 6
8836 #define PSMC2EN PSMC2CONbits.PSMC2EN // bit 7
8838 #define PSMC2DBF0 PSMC2DBFbits.PSMC2DBF0 // bit 0
8839 #define PSMC2DBF1 PSMC2DBFbits.PSMC2DBF1 // bit 1
8840 #define PSMC2DBF2 PSMC2DBFbits.PSMC2DBF2 // bit 2
8841 #define PSMC2DBF3 PSMC2DBFbits.PSMC2DBF3 // bit 3
8842 #define PSMC2DBF4 PSMC2DBFbits.PSMC2DBF4 // bit 4
8843 #define PSMC2DBF5 PSMC2DBFbits.PSMC2DBF5 // bit 5
8844 #define PSMC2DBF6 PSMC2DBFbits.PSMC2DBF6 // bit 6
8845 #define PSMC2DBF7 PSMC2DBFbits.PSMC2DBF7 // bit 7
8847 #define PSMC2DBR0 PSMC2DBRbits.PSMC2DBR0 // bit 0
8848 #define PSMC2DBR1 PSMC2DBRbits.PSMC2DBR1 // bit 1
8849 #define PSMC2DBR2 PSMC2DBRbits.PSMC2DBR2 // bit 2
8850 #define PSMC2DBR3 PSMC2DBRbits.PSMC2DBR3 // bit 3
8851 #define PSMC2DBR4 PSMC2DBRbits.PSMC2DBR4 // bit 4
8852 #define PSMC2DBR5 PSMC2DBRbits.PSMC2DBR5 // bit 5
8853 #define PSMC2DBR6 PSMC2DBRbits.PSMC2DBR6 // bit 6
8854 #define PSMC2DBR7 PSMC2DBRbits.PSMC2DBR7 // bit 7
8856 #define PSMC2DC8 PSMC2DCHbits.PSMC2DC8 // bit 0
8857 #define PSMC2DC9 PSMC2DCHbits.PSMC2DC9 // bit 1
8858 #define PSMC2DC10 PSMC2DCHbits.PSMC2DC10 // bit 2
8859 #define PSMC2DC11 PSMC2DCHbits.PSMC2DC11 // bit 3
8860 #define PSMC2DC12 PSMC2DCHbits.PSMC2DC12 // bit 4
8861 #define PSMC2DC13 PSMC2DCHbits.PSMC2DC13 // bit 5
8862 #define PSMC2DC14 PSMC2DCHbits.PSMC2DC14 // bit 6
8863 #define PSMC2DC15 PSMC2DCHbits.PSMC2DC15 // bit 7
8865 #define PSMC2DC0 PSMC2DCLbits.PSMC2DC0 // bit 0
8866 #define PSMC2DC1 PSMC2DCLbits.PSMC2DC1 // bit 1
8867 #define PSMC2DC2 PSMC2DCLbits.PSMC2DC2 // bit 2
8868 #define PSMC2DC3 PSMC2DCLbits.PSMC2DC3 // bit 3
8869 #define PSMC2DC4 PSMC2DCLbits.PSMC2DC4 // bit 4
8870 #define PSMC2DC5 PSMC2DCLbits.PSMC2DC5 // bit 5
8871 #define PSMC2DC6 PSMC2DCLbits.PSMC2DC6 // bit 6
8872 #define PSMC2DC7 PSMC2DCLbits.PSMC2DC7 // bit 7
8874 #define P2DCST PSMC2DCSbits.P2DCST // bit 0
8875 #define P2DCSC1 PSMC2DCSbits.P2DCSC1 // bit 1
8876 #define P2DCSC2 PSMC2DCSbits.P2DCSC2 // bit 2
8877 #define P2DCSC3 PSMC2DCSbits.P2DCSC3 // bit 3
8878 #define P2DCSC4 PSMC2DCSbits.P2DCSC4 // bit 4
8879 #define P2DCSIN PSMC2DCSbits.P2DCSIN // bit 7
8881 #define P2FEBSC1 PSMC2FEBSbits.P2FEBSC1 // bit 1
8882 #define P2FEBSC2 PSMC2FEBSbits.P2FEBSC2 // bit 2
8883 #define P2FEBSC3 PSMC2FEBSbits.P2FEBSC3 // bit 3
8884 #define P2FEBSC4 PSMC2FEBSbits.P2FEBSC4 // bit 4
8885 #define P2FEBSIN PSMC2FEBSbits.P2FEBSIN // bit 7
8887 #define PSMC2FFA0 PSMC2FFAbits.PSMC2FFA0 // bit 0
8888 #define PSMC2FFA1 PSMC2FFAbits.PSMC2FFA1 // bit 1
8889 #define PSMC2FFA2 PSMC2FFAbits.PSMC2FFA2 // bit 2
8890 #define PSMC2FFA3 PSMC2FFAbits.PSMC2FFA3 // bit 3
8892 #define P2TPRIF PSMC2INTbits.P2TPRIF // bit 0
8893 #define P2TDCIF PSMC2INTbits.P2TDCIF // bit 1
8894 #define P2TPHIF PSMC2INTbits.P2TPHIF // bit 2
8895 #define P2TOVIF PSMC2INTbits.P2TOVIF // bit 3
8896 #define P2TPRIE PSMC2INTbits.P2TPRIE // bit 4
8897 #define P2TDCIE PSMC2INTbits.P2TDCIE // bit 5
8898 #define P2TPHIE PSMC2INTbits.P2TPHIE // bit 6
8899 #define P2TOVIE PSMC2INTbits.P2TOVIE // bit 7
8901 #define P2MSRC0 PSMC2MDLbits.P2MSRC0 // bit 0
8902 #define P2MSRC1 PSMC2MDLbits.P2MSRC1 // bit 1
8903 #define P2MSRC2 PSMC2MDLbits.P2MSRC2 // bit 2
8904 #define P2MSRC3 PSMC2MDLbits.P2MSRC3 // bit 3
8905 #define P2MDLBIT PSMC2MDLbits.P2MDLBIT // bit 5
8906 #define P2MDLPOL PSMC2MDLbits.P2MDLPOL // bit 6
8907 #define P2MDLEN PSMC2MDLbits.P2MDLEN // bit 7
8909 #define P2OEA PSMC2OENbits.P2OEA // bit 0
8910 #define P2OEB PSMC2OENbits.P2OEB // bit 1
8912 #define PSMC2PH8 PSMC2PHHbits.PSMC2PH8 // bit 0
8913 #define PSMC2PH9 PSMC2PHHbits.PSMC2PH9 // bit 1
8914 #define PSMC2PH10 PSMC2PHHbits.PSMC2PH10 // bit 2
8915 #define PSMC2PH11 PSMC2PHHbits.PSMC2PH11 // bit 3
8916 #define PSMC2PH12 PSMC2PHHbits.PSMC2PH12 // bit 4
8917 #define PSMC2PH13 PSMC2PHHbits.PSMC2PH13 // bit 5
8918 #define PSMC2PH14 PSMC2PHHbits.PSMC2PH14 // bit 6
8919 #define PSMC2PH15 PSMC2PHHbits.PSMC2PH15 // bit 7
8921 #define PSMC2PH0 PSMC2PHLbits.PSMC2PH0 // bit 0
8922 #define PSMC2PH1 PSMC2PHLbits.PSMC2PH1 // bit 1
8923 #define PSMC2PH2 PSMC2PHLbits.PSMC2PH2 // bit 2
8924 #define PSMC2PH3 PSMC2PHLbits.PSMC2PH3 // bit 3
8925 #define PSMC2PH4 PSMC2PHLbits.PSMC2PH4 // bit 4
8926 #define PSMC2PH5 PSMC2PHLbits.PSMC2PH5 // bit 5
8927 #define PSMC2PH6 PSMC2PHLbits.PSMC2PH6 // bit 6
8928 #define PSMC2PH7 PSMC2PHLbits.PSMC2PH7 // bit 7
8930 #define P2PHST PSMC2PHSbits.P2PHST // bit 0
8931 #define P2PHSC1 PSMC2PHSbits.P2PHSC1 // bit 1
8932 #define P2PHSC2 PSMC2PHSbits.P2PHSC2 // bit 2
8933 #define P2PHSC3 PSMC2PHSbits.P2PHSC3 // bit 3
8934 #define P2PHSC4 PSMC2PHSbits.P2PHSC4 // bit 4
8935 #define P2PHSIN PSMC2PHSbits.P2PHSIN // bit 7
8937 #define P2POLA PSMC2POLbits.P2POLA // bit 0
8938 #define P2POLB PSMC2POLbits.P2POLB // bit 1
8939 #define P2INPOL PSMC2POLbits.P2INPOL // bit 6
8941 #define PSMC2PR8 PSMC2PRHbits.PSMC2PR8 // bit 0
8942 #define PSMC2PR9 PSMC2PRHbits.PSMC2PR9 // bit 1
8943 #define PSMC2PR10 PSMC2PRHbits.PSMC2PR10 // bit 2
8944 #define PSMC2PR11 PSMC2PRHbits.PSMC2PR11 // bit 3
8945 #define PSMC2PR12 PSMC2PRHbits.PSMC2PR12 // bit 4
8946 #define PSMC2PR13 PSMC2PRHbits.PSMC2PR13 // bit 5
8947 #define PSMC2PR14 PSMC2PRHbits.PSMC2PR14 // bit 6
8948 #define PSMC2PR15 PSMC2PRHbits.PSMC2PR15 // bit 7
8950 #define PSMC2PR0 PSMC2PRLbits.PSMC2PR0 // bit 0
8951 #define PSMC2PR1 PSMC2PRLbits.PSMC2PR1 // bit 1
8952 #define PSMC2PR2 PSMC2PRLbits.PSMC2PR2 // bit 2
8953 #define PSMC2PR3 PSMC2PRLbits.PSMC2PR3 // bit 3
8954 #define PSMC2PR4 PSMC2PRLbits.PSMC2PR4 // bit 4
8955 #define PSMC2PR5 PSMC2PRLbits.PSMC2PR5 // bit 5
8956 #define PSMC2PR6 PSMC2PRLbits.PSMC2PR6 // bit 6
8957 #define PSMC2PR7 PSMC2PRLbits.PSMC2PR7 // bit 7
8959 #define P2PRST PSMC2PRSbits.P2PRST // bit 0
8960 #define P2PRSC1 PSMC2PRSbits.P2PRSC1 // bit 1
8961 #define P2PRSC2 PSMC2PRSbits.P2PRSC2 // bit 2
8962 #define P2PRSC3 PSMC2PRSbits.P2PRSC3 // bit 3
8963 #define P2PRSC4 PSMC2PRSbits.P2PRSC4 // bit 4
8964 #define P2PRSIN PSMC2PRSbits.P2PRSIN // bit 7
8966 #define P2REBSC1 PSMC2REBSbits.P2REBSC1 // bit 1
8967 #define P2REBSC2 PSMC2REBSbits.P2REBSC2 // bit 2
8968 #define P2REBSC3 PSMC2REBSbits.P2REBSC3 // bit 3
8969 #define P2REBSC4 PSMC2REBSbits.P2REBSC4 // bit 4
8970 #define P2REBSIN PSMC2REBSbits.P2REBSIN // bit 7
8972 #define P2STRA PSMC2STR0bits.P2STRA // bit 0
8973 #define P2STRB PSMC2STR0bits.P2STRB // bit 1
8975 #define P2HSMEN PSMC2STR1bits.P2HSMEN // bit 0
8976 #define P2LSMEN PSMC2STR1bits.P2LSMEN // bit 1
8977 #define P2SSYNC PSMC2STR1bits.P2SSYNC // bit 7
8979 #define P2SYNC0 PSMC2SYNCbits.P2SYNC0 // bit 0
8980 #define P2SYNC1 PSMC2SYNCbits.P2SYNC1 // bit 1
8981 #define P2SYNC2 PSMC2SYNCbits.P2SYNC2 // bit 2
8982 #define P2DCPOL PSMC2SYNCbits.P2DCPOL // bit 5
8983 #define P2PRPOL PSMC2SYNCbits.P2PRPOL // bit 6
8984 #define P2POFST PSMC2SYNCbits.P2POFST // bit 7
8986 #define PSMC2TMR8 PSMC2TMRHbits.PSMC2TMR8 // bit 0
8987 #define PSMC2TMR9 PSMC2TMRHbits.PSMC2TMR9 // bit 1
8988 #define PSMC2TMR10 PSMC2TMRHbits.PSMC2TMR10 // bit 2
8989 #define PSMC2TMR11 PSMC2TMRHbits.PSMC2TMR11 // bit 3
8990 #define PSMC2TMR12 PSMC2TMRHbits.PSMC2TMR12 // bit 4
8991 #define PSMC2TMR13 PSMC2TMRHbits.PSMC2TMR13 // bit 5
8992 #define PSMC2TMR14 PSMC2TMRHbits.PSMC2TMR14 // bit 6
8993 #define PSMC2TMR15 PSMC2TMRHbits.PSMC2TMR15 // bit 7
8995 #define PSMC2TMR0 PSMC2TMRLbits.PSMC2TMR0 // bit 0
8996 #define PSMC2TMR1 PSMC2TMRLbits.PSMC2TMR1 // bit 1
8997 #define PSMC2TMR2 PSMC2TMRLbits.PSMC2TMR2 // bit 2
8998 #define PSMC2TMR3 PSMC2TMRLbits.PSMC2TMR3 // bit 3
8999 #define PSMC2TMR4 PSMC2TMRLbits.PSMC2TMR4 // bit 4
9000 #define PSMC2TMR5 PSMC2TMRLbits.PSMC2TMR5 // bit 5
9001 #define PSMC2TMR6 PSMC2TMRLbits.PSMC2TMR6 // bit 6
9002 #define PSMC2TMR7 PSMC2TMRLbits.PSMC2TMR7 // bit 7
9004 #define P3ASDOV PSMC3ASDCbits.P3ASDOV // bit 0
9005 #define P3ARSEN PSMC3ASDCbits.P3ARSEN // bit 5
9006 #define P3ASDEN PSMC3ASDCbits.P3ASDEN // bit 6
9007 #define P3ASE PSMC3ASDCbits.P3ASE // bit 7
9009 #define P3ASDLA PSMC3ASDLbits.P3ASDLA // bit 0
9010 #define P3ASDLB PSMC3ASDLbits.P3ASDLB // bit 1
9011 #define P3ASDLC PSMC3ASDLbits.P3ASDLC // bit 2
9012 #define P3ASDLD PSMC3ASDLbits.P3ASDLD // bit 3
9013 #define P3ASDLE PSMC3ASDLbits.P3ASDLE // bit 4
9014 #define P3ASDLF PSMC3ASDLbits.P3ASDLF // bit 5
9016 #define P3ASDSC1 PSMC3ASDSbits.P3ASDSC1 // bit 1
9017 #define P3ASDSC2 PSMC3ASDSbits.P3ASDSC2 // bit 2
9018 #define P3ASDSC3 PSMC3ASDSbits.P3ASDSC3 // bit 3
9019 #define P3ASDSC4 PSMC3ASDSbits.P3ASDSC4 // bit 4
9020 #define P3ASDSIN PSMC3ASDSbits.P3ASDSIN // bit 7
9022 #define PSMC3BLKF0 PSMC3BLKFbits.PSMC3BLKF0 // bit 0
9023 #define PSMC3BLKF1 PSMC3BLKFbits.PSMC3BLKF1 // bit 1
9024 #define PSMC3BLKF2 PSMC3BLKFbits.PSMC3BLKF2 // bit 2
9025 #define PSMC3BLKF3 PSMC3BLKFbits.PSMC3BLKF3 // bit 3
9026 #define PSMC3BLKF4 PSMC3BLKFbits.PSMC3BLKF4 // bit 4
9027 #define PSMC3BLKF5 PSMC3BLKFbits.PSMC3BLKF5 // bit 5
9028 #define PSMC3BLKF6 PSMC3BLKFbits.PSMC3BLKF6 // bit 6
9029 #define PSMC3BLKF7 PSMC3BLKFbits.PSMC3BLKF7 // bit 7
9031 #define PSMC3BLKR0 PSMC3BLKRbits.PSMC3BLKR0 // bit 0
9032 #define PSMC3BLKR1 PSMC3BLKRbits.PSMC3BLKR1 // bit 1
9033 #define PSMC3BLKR2 PSMC3BLKRbits.PSMC3BLKR2 // bit 2
9034 #define PSMC3BLKR3 PSMC3BLKRbits.PSMC3BLKR3 // bit 3
9035 #define PSMC3BLKR4 PSMC3BLKRbits.PSMC3BLKR4 // bit 4
9036 #define PSMC3BLKR5 PSMC3BLKRbits.PSMC3BLKR5 // bit 5
9037 #define PSMC3BLKR6 PSMC3BLKRbits.PSMC3BLKR6 // bit 6
9038 #define PSMC3BLKR7 PSMC3BLKRbits.PSMC3BLKR7 // bit 7
9040 #define P3REBM0 PSMC3BLNKbits.P3REBM0 // bit 0
9041 #define P3REBM1 PSMC3BLNKbits.P3REBM1 // bit 1
9042 #define P3FEBM0 PSMC3BLNKbits.P3FEBM0 // bit 4
9043 #define P3FEBM1 PSMC3BLNKbits.P3FEBM1 // bit 5
9045 #define P3CSRC0 PSMC3CLKbits.P3CSRC0 // bit 0
9046 #define P3CSRC1 PSMC3CLKbits.P3CSRC1 // bit 1
9047 #define P3CPRE0 PSMC3CLKbits.P3CPRE0 // bit 4
9048 #define P3CPRE1 PSMC3CLKbits.P3CPRE1 // bit 5
9050 #define P3MODE0 PSMC3CONbits.P3MODE0 // bit 0
9051 #define P3MODE1 PSMC3CONbits.P3MODE1 // bit 1
9052 #define P3MODE2 PSMC3CONbits.P3MODE2 // bit 2
9053 #define P3MODE3 PSMC3CONbits.P3MODE3 // bit 3
9054 #define P3DBRE PSMC3CONbits.P3DBRE // bit 4
9055 #define P3DBFE PSMC3CONbits.P3DBFE // bit 5
9056 #define PSMC3LD PSMC3CONbits.PSMC3LD // bit 6
9057 #define PSMC3EN PSMC3CONbits.PSMC3EN // bit 7
9059 #define PSMC3DBF0 PSMC3DBFbits.PSMC3DBF0 // bit 0
9060 #define PSMC3DBF1 PSMC3DBFbits.PSMC3DBF1 // bit 1
9061 #define PSMC3DBF2 PSMC3DBFbits.PSMC3DBF2 // bit 2
9062 #define PSMC3DBF3 PSMC3DBFbits.PSMC3DBF3 // bit 3
9063 #define PSMC3DBF4 PSMC3DBFbits.PSMC3DBF4 // bit 4
9064 #define PSMC3DBF5 PSMC3DBFbits.PSMC3DBF5 // bit 5
9065 #define PSMC3DBF6 PSMC3DBFbits.PSMC3DBF6 // bit 6
9066 #define PSMC3DBF7 PSMC3DBFbits.PSMC3DBF7 // bit 7
9068 #define PSMC3DBR0 PSMC3DBRbits.PSMC3DBR0 // bit 0
9069 #define PSMC3DBR1 PSMC3DBRbits.PSMC3DBR1 // bit 1
9070 #define PSMC3DBR2 PSMC3DBRbits.PSMC3DBR2 // bit 2
9071 #define PSMC3DBR3 PSMC3DBRbits.PSMC3DBR3 // bit 3
9072 #define PSMC3DBR4 PSMC3DBRbits.PSMC3DBR4 // bit 4
9073 #define PSMC3DBR5 PSMC3DBRbits.PSMC3DBR5 // bit 5
9074 #define PSMC3DBR6 PSMC3DBRbits.PSMC3DBR6 // bit 6
9075 #define PSMC3DBR7 PSMC3DBRbits.PSMC3DBR7 // bit 7
9077 #define PSMC3DC8 PSMC3DCHbits.PSMC3DC8 // bit 0
9078 #define PSMC3DC9 PSMC3DCHbits.PSMC3DC9 // bit 1
9079 #define PSMC3DC10 PSMC3DCHbits.PSMC3DC10 // bit 2
9080 #define PSMC3DC11 PSMC3DCHbits.PSMC3DC11 // bit 3
9081 #define PSMC3DC12 PSMC3DCHbits.PSMC3DC12 // bit 4
9082 #define PSMC3DC13 PSMC3DCHbits.PSMC3DC13 // bit 5
9083 #define PSMC3DC14 PSMC3DCHbits.PSMC3DC14 // bit 6
9084 #define PSMC3DC15 PSMC3DCHbits.PSMC3DC15 // bit 7
9086 #define PSMC3DC0 PSMC3DCLbits.PSMC3DC0 // bit 0
9087 #define PSMC3DC1 PSMC3DCLbits.PSMC3DC1 // bit 1
9088 #define PSMC3DC2 PSMC3DCLbits.PSMC3DC2 // bit 2
9089 #define PSMC3DC3 PSMC3DCLbits.PSMC3DC3 // bit 3
9090 #define PSMC3DC4 PSMC3DCLbits.PSMC3DC4 // bit 4
9091 #define PSMC3DC5 PSMC3DCLbits.PSMC3DC5 // bit 5
9092 #define PSMC3DC6 PSMC3DCLbits.PSMC3DC6 // bit 6
9093 #define PSMC3DC7 PSMC3DCLbits.PSMC3DC7 // bit 7
9095 #define P3DCST PSMC3DCSbits.P3DCST // bit 0
9096 #define P3DCSC1 PSMC3DCSbits.P3DCSC1 // bit 1
9097 #define P3DCSC2 PSMC3DCSbits.P3DCSC2 // bit 2
9098 #define P3DCSC3 PSMC3DCSbits.P3DCSC3 // bit 3
9099 #define P3DCSC4 PSMC3DCSbits.P3DCSC4 // bit 4
9100 #define P3DCSIN PSMC3DCSbits.P3DCSIN // bit 7
9102 #define P3FEBSC1 PSMC3FEBSbits.P3FEBSC1 // bit 1
9103 #define P3FEBSC2 PSMC3FEBSbits.P3FEBSC2 // bit 2
9104 #define P3FEBSC3 PSMC3FEBSbits.P3FEBSC3 // bit 3
9105 #define P3FEBSC4 PSMC3FEBSbits.P3FEBSC4 // bit 4
9106 #define P3FEBSIN PSMC3FEBSbits.P3FEBSIN // bit 7
9108 #define PSMC3FFA0 PSMC3FFAbits.PSMC3FFA0 // bit 0
9109 #define PSMC3FFA1 PSMC3FFAbits.PSMC3FFA1 // bit 1
9110 #define PSMC3FFA2 PSMC3FFAbits.PSMC3FFA2 // bit 2
9111 #define PSMC3FFA3 PSMC3FFAbits.PSMC3FFA3 // bit 3
9113 #define P3TPRIF PSMC3INTbits.P3TPRIF // bit 0
9114 #define P3TDCIF PSMC3INTbits.P3TDCIF // bit 1
9115 #define P3TPHIF PSMC3INTbits.P3TPHIF // bit 2
9116 #define P3TOVIF PSMC3INTbits.P3TOVIF // bit 3
9117 #define P3TPRIE PSMC3INTbits.P3TPRIE // bit 4
9118 #define P3TDCIE PSMC3INTbits.P3TDCIE // bit 5
9119 #define P3TPHIE PSMC3INTbits.P3TPHIE // bit 6
9120 #define P3TOVIE PSMC3INTbits.P3TOVIE // bit 7
9122 #define P3MSRC0 PSMC3MDLbits.P3MSRC0 // bit 0
9123 #define P3MSRC1 PSMC3MDLbits.P3MSRC1 // bit 1
9124 #define P3MSRC2 PSMC3MDLbits.P3MSRC2 // bit 2
9125 #define P3MSRC3 PSMC3MDLbits.P3MSRC3 // bit 3
9126 #define P3MDLBIT PSMC3MDLbits.P3MDLBIT // bit 5
9127 #define P3MDLPOL PSMC3MDLbits.P3MDLPOL // bit 6
9128 #define P3MDLEN PSMC3MDLbits.P3MDLEN // bit 7
9130 #define P3OEA PSMC3OENbits.P3OEA // bit 0
9131 #define P3OEB PSMC3OENbits.P3OEB // bit 1
9132 #define P3OEC PSMC3OENbits.P3OEC // bit 2
9133 #define P3OED PSMC3OENbits.P3OED // bit 3
9134 #define P3OEE PSMC3OENbits.P3OEE // bit 4
9135 #define P3OEF PSMC3OENbits.P3OEF // bit 5
9137 #define PSMC3PH8 PSMC3PHHbits.PSMC3PH8 // bit 0
9138 #define PSMC3PH9 PSMC3PHHbits.PSMC3PH9 // bit 1
9139 #define PSMC3PH10 PSMC3PHHbits.PSMC3PH10 // bit 2
9140 #define PSMC3PH11 PSMC3PHHbits.PSMC3PH11 // bit 3
9141 #define PSMC3PH12 PSMC3PHHbits.PSMC3PH12 // bit 4
9142 #define PSMC3PH13 PSMC3PHHbits.PSMC3PH13 // bit 5
9143 #define PSMC3PH14 PSMC3PHHbits.PSMC3PH14 // bit 6
9144 #define PSMC3PH15 PSMC3PHHbits.PSMC3PH15 // bit 7
9146 #define PSMC3PH0 PSMC3PHLbits.PSMC3PH0 // bit 0
9147 #define PSMC3PH1 PSMC3PHLbits.PSMC3PH1 // bit 1
9148 #define PSMC3PH2 PSMC3PHLbits.PSMC3PH2 // bit 2
9149 #define PSMC3PH3 PSMC3PHLbits.PSMC3PH3 // bit 3
9150 #define PSMC3PH4 PSMC3PHLbits.PSMC3PH4 // bit 4
9151 #define PSMC3PH5 PSMC3PHLbits.PSMC3PH5 // bit 5
9152 #define PSMC3PH6 PSMC3PHLbits.PSMC3PH6 // bit 6
9153 #define PSMC3PH7 PSMC3PHLbits.PSMC3PH7 // bit 7
9155 #define P3PHST PSMC3PHSbits.P3PHST // bit 0
9156 #define P3PHSC1 PSMC3PHSbits.P3PHSC1 // bit 1
9157 #define P3PHSC2 PSMC3PHSbits.P3PHSC2 // bit 2
9158 #define P3PHSC3 PSMC3PHSbits.P3PHSC3 // bit 3
9159 #define P3PHSC4 PSMC3PHSbits.P3PHSC4 // bit 4
9160 #define P3PHSIN PSMC3PHSbits.P3PHSIN // bit 7
9162 #define P3POLA PSMC3POLbits.P3POLA // bit 0
9163 #define P3POLB PSMC3POLbits.P3POLB // bit 1
9164 #define P3POLC PSMC3POLbits.P3POLC // bit 2
9165 #define P3POLD PSMC3POLbits.P3POLD // bit 3
9166 #define P3POLE PSMC3POLbits.P3POLE // bit 4
9167 #define P3POLF PSMC3POLbits.P3POLF // bit 5
9168 #define P3INPOL PSMC3POLbits.P3INPOL // bit 6
9170 #define PSMC3PR8 PSMC3PRHbits.PSMC3PR8 // bit 0
9171 #define PSMC3PR9 PSMC3PRHbits.PSMC3PR9 // bit 1
9172 #define PSMC3PR10 PSMC3PRHbits.PSMC3PR10 // bit 2
9173 #define PSMC3PR11 PSMC3PRHbits.PSMC3PR11 // bit 3
9174 #define PSMC3PR12 PSMC3PRHbits.PSMC3PR12 // bit 4
9175 #define PSMC3PR13 PSMC3PRHbits.PSMC3PR13 // bit 5
9176 #define PSMC3PR14 PSMC3PRHbits.PSMC3PR14 // bit 6
9177 #define PSMC3PR15 PSMC3PRHbits.PSMC3PR15 // bit 7
9179 #define PSMC3PR0 PSMC3PRLbits.PSMC3PR0 // bit 0
9180 #define PSMC3PR1 PSMC3PRLbits.PSMC3PR1 // bit 1
9181 #define PSMC3PR2 PSMC3PRLbits.PSMC3PR2 // bit 2
9182 #define PSMC3PR3 PSMC3PRLbits.PSMC3PR3 // bit 3
9183 #define PSMC3PR4 PSMC3PRLbits.PSMC3PR4 // bit 4
9184 #define PSMC3PR5 PSMC3PRLbits.PSMC3PR5 // bit 5
9185 #define PSMC3PR6 PSMC3PRLbits.PSMC3PR6 // bit 6
9186 #define PSMC3PR7 PSMC3PRLbits.PSMC3PR7 // bit 7
9188 #define P3PRST PSMC3PRSbits.P3PRST // bit 0
9189 #define P3PRSC1 PSMC3PRSbits.P3PRSC1 // bit 1
9190 #define P3PRSC2 PSMC3PRSbits.P3PRSC2 // bit 2
9191 #define P3PRSC3 PSMC3PRSbits.P3PRSC3 // bit 3
9192 #define P3PRSC4 PSMC3PRSbits.P3PRSC4 // bit 4
9193 #define P3PRSIN PSMC3PRSbits.P3PRSIN // bit 7
9195 #define P3REBSC1 PSMC3REBSbits.P3REBSC1 // bit 1
9196 #define P3REBSC2 PSMC3REBSbits.P3REBSC2 // bit 2
9197 #define P3REBSC3 PSMC3REBSbits.P3REBSC3 // bit 3
9198 #define P3REBSC4 PSMC3REBSbits.P3REBSC4 // bit 4
9199 #define P3REBSIN PSMC3REBSbits.P3REBSIN // bit 7
9201 #define P3STRA PSMC3STR0bits.P3STRA // bit 0
9202 #define P3STRB PSMC3STR0bits.P3STRB // bit 1
9203 #define P3STRC PSMC3STR0bits.P3STRC // bit 2
9204 #define P3STRD PSMC3STR0bits.P3STRD // bit 3
9205 #define P3STRE PSMC3STR0bits.P3STRE // bit 4
9206 #define P3STRF PSMC3STR0bits.P3STRF // bit 5
9208 #define P3HSMEN PSMC3STR1bits.P3HSMEN // bit 0
9209 #define P3LSMEN PSMC3STR1bits.P3LSMEN // bit 1
9210 #define P3SSYNC PSMC3STR1bits.P3SSYNC // bit 7
9212 #define P3SYNC0 PSMC3SYNCbits.P3SYNC0 // bit 0
9213 #define P3SYNC1 PSMC3SYNCbits.P3SYNC1 // bit 1
9214 #define P3SYNC2 PSMC3SYNCbits.P3SYNC2 // bit 2
9215 #define P3DCPOL PSMC3SYNCbits.P3DCPOL // bit 5
9216 #define P3PRPOL PSMC3SYNCbits.P3PRPOL // bit 6
9217 #define P3POFST PSMC3SYNCbits.P3POFST // bit 7
9219 #define PSMC3TMR8 PSMC3TMRHbits.PSMC3TMR8 // bit 0
9220 #define PSMC3TMR9 PSMC3TMRHbits.PSMC3TMR9 // bit 1
9221 #define PSMC3TMR10 PSMC3TMRHbits.PSMC3TMR10 // bit 2
9222 #define PSMC3TMR11 PSMC3TMRHbits.PSMC3TMR11 // bit 3
9223 #define PSMC3TMR12 PSMC3TMRHbits.PSMC3TMR12 // bit 4
9224 #define PSMC3TMR13 PSMC3TMRHbits.PSMC3TMR13 // bit 5
9225 #define PSMC3TMR14 PSMC3TMRHbits.PSMC3TMR14 // bit 6
9226 #define PSMC3TMR15 PSMC3TMRHbits.PSMC3TMR15 // bit 7
9228 #define PSMC3TMR0 PSMC3TMRLbits.PSMC3TMR0 // bit 0
9229 #define PSMC3TMR1 PSMC3TMRLbits.PSMC3TMR1 // bit 1
9230 #define PSMC3TMR2 PSMC3TMRLbits.PSMC3TMR2 // bit 2
9231 #define PSMC3TMR3 PSMC3TMRLbits.PSMC3TMR3 // bit 3
9232 #define PSMC3TMR4 PSMC3TMRLbits.PSMC3TMR4 // bit 4
9233 #define PSMC3TMR5 PSMC3TMRLbits.PSMC3TMR5 // bit 5
9234 #define PSMC3TMR6 PSMC3TMRLbits.PSMC3TMR6 // bit 6
9235 #define PSMC3TMR7 PSMC3TMRLbits.PSMC3TMR7 // bit 7
9237 #define RX9D RC1STAbits.RX9D // bit 0
9238 #define OERR RC1STAbits.OERR // bit 1
9239 #define FERR RC1STAbits.FERR // bit 2
9240 #define ADDEN RC1STAbits.ADDEN // bit 3
9241 #define CREN RC1STAbits.CREN // bit 4
9242 #define SREN RC1STAbits.SREN // bit 5
9243 #define RX9 RC1STAbits.RX9 // bit 6
9244 #define SPEN RC1STAbits.SPEN // bit 7
9246 #define SLRCONA0 SLRCONAbits.SLRCONA0 // bit 0
9247 #define SLRCONA1 SLRCONAbits.SLRCONA1 // bit 1
9248 #define SLRCONA2 SLRCONAbits.SLRCONA2 // bit 2
9249 #define SLRCONA3 SLRCONAbits.SLRCONA3 // bit 3
9250 #define SLRCONA4 SLRCONAbits.SLRCONA4 // bit 4
9251 #define SLRCONA5 SLRCONAbits.SLRCONA5 // bit 5
9252 #define SLRCONA6 SLRCONAbits.SLRCONA6 // bit 6
9253 #define SLRCONA7 SLRCONAbits.SLRCONA7 // bit 7
9255 #define SLRCONB0 SLRCONBbits.SLRCONB0 // bit 0
9256 #define SLRCONB1 SLRCONBbits.SLRCONB1 // bit 1
9257 #define SLRCONB2 SLRCONBbits.SLRCONB2 // bit 2
9258 #define SLRCONB3 SLRCONBbits.SLRCONB3 // bit 3
9259 #define SLRCONB4 SLRCONBbits.SLRCONB4 // bit 4
9260 #define SLRCONB5 SLRCONBbits.SLRCONB5 // bit 5
9261 #define SLRCONB6 SLRCONBbits.SLRCONB6 // bit 6
9262 #define SLRCONB7 SLRCONBbits.SLRCONB7 // bit 7
9264 #define SLRCONC0 SLRCONCbits.SLRCONC0 // bit 0
9265 #define SLRCONC1 SLRCONCbits.SLRCONC1 // bit 1
9266 #define SLRCONC2 SLRCONCbits.SLRCONC2 // bit 2
9267 #define SLRCONC3 SLRCONCbits.SLRCONC3 // bit 3
9268 #define SLRCONC4 SLRCONCbits.SLRCONC4 // bit 4
9269 #define SLRCONC5 SLRCONCbits.SLRCONC5 // bit 5
9270 #define SLRCONC6 SLRCONCbits.SLRCONC6 // bit 6
9271 #define SLRCONC7 SLRCONCbits.SLRCONC7 // bit 7
9273 #define SLRCOND0 SLRCONDbits.SLRCOND0 // bit 0
9274 #define SLRCOND1 SLRCONDbits.SLRCOND1 // bit 1
9275 #define SLRCOND2 SLRCONDbits.SLRCOND2 // bit 2
9276 #define SLRCOND3 SLRCONDbits.SLRCOND3 // bit 3
9277 #define SLRCOND4 SLRCONDbits.SLRCOND4 // bit 4
9278 #define SLRCOND5 SLRCONDbits.SLRCOND5 // bit 5
9279 #define SLRCOND6 SLRCONDbits.SLRCOND6 // bit 6
9280 #define SLRCOND7 SLRCONDbits.SLRCOND7 // bit 7
9282 #define SLRCONE0 SLRCONEbits.SLRCONE0 // bit 0
9283 #define SLRCONE1 SLRCONEbits.SLRCONE1 // bit 1
9284 #define SLRCONE2 SLRCONEbits.SLRCONE2 // bit 2
9286 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
9287 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
9288 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
9289 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
9290 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
9291 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
9292 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
9293 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
9294 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
9295 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
9296 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
9297 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
9298 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
9299 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
9300 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
9301 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
9303 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
9304 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
9305 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
9306 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
9307 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
9308 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
9309 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
9310 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
9311 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
9312 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
9313 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
9314 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
9315 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
9316 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
9317 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
9318 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
9320 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
9321 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
9322 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
9323 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
9324 #define CKP SSP1CONbits.CKP // bit 4
9325 #define SSPEN SSP1CONbits.SSPEN // bit 5
9326 #define SSPOV SSP1CONbits.SSPOV // bit 6
9327 #define WCOL SSP1CONbits.WCOL // bit 7
9329 #define SEN SSP1CON2bits.SEN // bit 0
9330 #define RSEN SSP1CON2bits.RSEN // bit 1
9331 #define PEN SSP1CON2bits.PEN // bit 2
9332 #define RCEN SSP1CON2bits.RCEN // bit 3
9333 #define ACKEN SSP1CON2bits.ACKEN // bit 4
9334 #define ACKDT SSP1CON2bits.ACKDT // bit 5
9335 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
9336 #define GCEN SSP1CON2bits.GCEN // bit 7
9338 #define DHEN SSP1CON3bits.DHEN // bit 0
9339 #define AHEN SSP1CON3bits.AHEN // bit 1
9340 #define SBCDE SSP1CON3bits.SBCDE // bit 2
9341 #define SDAHT SSP1CON3bits.SDAHT // bit 3
9342 #define BOEN SSP1CON3bits.BOEN // bit 4
9343 #define SCIE SSP1CON3bits.SCIE // bit 5
9344 #define PCIE SSP1CON3bits.PCIE // bit 6
9345 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
9347 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
9348 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
9349 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
9350 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
9351 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
9352 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
9353 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
9354 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
9355 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
9356 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
9357 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
9358 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
9359 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
9360 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
9361 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
9362 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
9364 #define BF SSP1STATbits.BF // bit 0
9365 #define UA SSP1STATbits.UA // bit 1
9366 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
9367 #define S SSP1STATbits.S // bit 3
9368 #define P SSP1STATbits.P // bit 4
9369 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
9370 #define CKE SSP1STATbits.CKE // bit 6
9371 #define SMP SSP1STATbits.SMP // bit 7
9373 #define C STATUSbits.C // bit 0
9374 #define DC STATUSbits.DC // bit 1
9375 #define Z STATUSbits.Z // bit 2
9376 #define NOT_PD STATUSbits.NOT_PD // bit 3
9377 #define NOT_TO STATUSbits.NOT_TO // bit 4
9379 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
9380 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
9381 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
9383 #define TMR1ON T1CONbits.TMR1ON // bit 0
9384 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
9385 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
9386 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
9387 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
9388 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
9389 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
9391 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
9392 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
9393 #define T1GVAL T1GCONbits.T1GVAL // bit 2
9394 #define T1GGO T1GCONbits.T1GGO // bit 3
9395 #define T1GSPM T1GCONbits.T1GSPM // bit 4
9396 #define T1GTM T1GCONbits.T1GTM // bit 5
9397 #define T1GPOL T1GCONbits.T1GPOL // bit 6
9398 #define TMR1GE T1GCONbits.TMR1GE // bit 7
9400 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
9401 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
9402 #define TMR2ON T2CONbits.TMR2ON // bit 2
9403 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
9404 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
9405 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
9406 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
9408 #define TRISA0 TRISAbits.TRISA0 // bit 0
9409 #define TRISA1 TRISAbits.TRISA1 // bit 1
9410 #define TRISA2 TRISAbits.TRISA2 // bit 2
9411 #define TRISA3 TRISAbits.TRISA3 // bit 3
9412 #define TRISA4 TRISAbits.TRISA4 // bit 4
9413 #define TRISA5 TRISAbits.TRISA5 // bit 5
9414 #define TRISA6 TRISAbits.TRISA6 // bit 6
9415 #define TRISA7 TRISAbits.TRISA7 // bit 7
9417 #define TRISB0 TRISBbits.TRISB0 // bit 0
9418 #define TRISB1 TRISBbits.TRISB1 // bit 1
9419 #define TRISB2 TRISBbits.TRISB2 // bit 2
9420 #define TRISB3 TRISBbits.TRISB3 // bit 3
9421 #define TRISB4 TRISBbits.TRISB4 // bit 4
9422 #define TRISB5 TRISBbits.TRISB5 // bit 5
9423 #define TRISB6 TRISBbits.TRISB6 // bit 6
9424 #define TRISB7 TRISBbits.TRISB7 // bit 7
9426 #define TRISC0 TRISCbits.TRISC0 // bit 0
9427 #define TRISC1 TRISCbits.TRISC1 // bit 1
9428 #define TRISC2 TRISCbits.TRISC2 // bit 2
9429 #define TRISC3 TRISCbits.TRISC3 // bit 3
9430 #define TRISC4 TRISCbits.TRISC4 // bit 4
9431 #define TRISC5 TRISCbits.TRISC5 // bit 5
9432 #define TRISC6 TRISCbits.TRISC6 // bit 6
9433 #define TRISC7 TRISCbits.TRISC7 // bit 7
9435 #define TRISD0 TRISDbits.TRISD0 // bit 0
9436 #define TRISD1 TRISDbits.TRISD1 // bit 1
9437 #define TRISD2 TRISDbits.TRISD2 // bit 2
9438 #define TRISD3 TRISDbits.TRISD3 // bit 3
9439 #define TRISD4 TRISDbits.TRISD4 // bit 4
9440 #define TRISD5 TRISDbits.TRISD5 // bit 5
9441 #define TRISD6 TRISDbits.TRISD6 // bit 6
9442 #define TRISD7 TRISDbits.TRISD7 // bit 7
9444 #define TRISE0 TRISEbits.TRISE0 // bit 0
9445 #define TRISE1 TRISEbits.TRISE1 // bit 1
9446 #define TRISE2 TRISEbits.TRISE2 // bit 2
9447 #define TRISE3 TRISEbits.TRISE3 // bit 3
9449 #define TX9D TX1STAbits.TX9D // bit 0
9450 #define TRMT TX1STAbits.TRMT // bit 1
9451 #define BRGH TX1STAbits.BRGH // bit 2
9452 #define SENDB TX1STAbits.SENDB // bit 3
9453 #define SYNC TX1STAbits.SYNC // bit 4
9454 #define TXEN TX1STAbits.TXEN // bit 5
9455 #define TX9 TX1STAbits.TX9 // bit 6
9456 #define CSRC TX1STAbits.CSRC // bit 7
9458 #define VREGPM VREGCONbits.VREGPM // bit 1
9460 #define SWDTEN WDTCONbits.SWDTEN // bit 0
9461 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
9462 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
9463 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
9464 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
9465 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
9467 #define WPUA0 WPUAbits.WPUA0 // bit 0
9468 #define WPUA1 WPUAbits.WPUA1 // bit 1
9469 #define WPUA2 WPUAbits.WPUA2 // bit 2
9470 #define WPUA3 WPUAbits.WPUA3 // bit 3
9471 #define WPUA4 WPUAbits.WPUA4 // bit 4
9472 #define WPUA5 WPUAbits.WPUA5 // bit 5
9473 #define WPUA6 WPUAbits.WPUA6 // bit 6
9474 #define WPUA7 WPUAbits.WPUA7 // bit 7
9476 #define WPUB0 WPUBbits.WPUB0 // bit 0
9477 #define WPUB1 WPUBbits.WPUB1 // bit 1
9478 #define WPUB2 WPUBbits.WPUB2 // bit 2
9479 #define WPUB3 WPUBbits.WPUB3 // bit 3
9480 #define WPUB4 WPUBbits.WPUB4 // bit 4
9481 #define WPUB5 WPUBbits.WPUB5 // bit 5
9482 #define WPUB6 WPUBbits.WPUB6 // bit 6
9483 #define WPUB7 WPUBbits.WPUB7 // bit 7
9485 #define WPUC0 WPUCbits.WPUC0 // bit 0
9486 #define WPUC1 WPUCbits.WPUC1 // bit 1
9487 #define WPUC2 WPUCbits.WPUC2 // bit 2
9488 #define WPUC3 WPUCbits.WPUC3 // bit 3
9489 #define WPUC4 WPUCbits.WPUC4 // bit 4
9490 #define WPUC5 WPUCbits.WPUC5 // bit 5
9491 #define WPUC6 WPUCbits.WPUC6 // bit 6
9492 #define WPUC7 WPUCbits.WPUC7 // bit 7
9494 #define WPUD0 WPUDbits.WPUD0 // bit 0
9495 #define WPUD1 WPUDbits.WPUD1 // bit 1
9496 #define WPUD2 WPUDbits.WPUD2 // bit 2
9497 #define WPUD3 WPUDbits.WPUD3 // bit 3
9498 #define WPUD4 WPUDbits.WPUD4 // bit 4
9499 #define WPUD5 WPUDbits.WPUD5 // bit 5
9500 #define WPUD6 WPUDbits.WPUD6 // bit 6
9501 #define WPUD7 WPUDbits.WPUD7 // bit 7
9503 #define WPUE0 WPUEbits.WPUE0 // bit 0
9504 #define WPUE1 WPUEbits.WPUE1 // bit 1
9505 #define WPUE2 WPUEbits.WPUE2 // bit 2
9506 #define WPUE3 WPUEbits.WPUE3 // bit 3
9508 #endif // #ifndef NO_BIT_DEFINES
9510 #endif // #ifndef __PIC16F1784_H__