2 * This declarations of the PIC16LF1786 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 __PIC16LF1786_H__
26 #define __PIC16LF1786_H__
28 //==============================================================================
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF0_ADDR 0x0000
37 #define INDF1_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR0_ADDR 0x0004
41 #define FSR0L_ADDR 0x0004
42 #define FSR0H_ADDR 0x0005
43 #define FSR1_ADDR 0x0006
44 #define FSR1L_ADDR 0x0006
45 #define FSR1H_ADDR 0x0007
46 #define BSR_ADDR 0x0008
47 #define WREG_ADDR 0x0009
48 #define PCLATH_ADDR 0x000A
49 #define INTCON_ADDR 0x000B
50 #define PORTA_ADDR 0x000C
51 #define PORTB_ADDR 0x000D
52 #define PORTC_ADDR 0x000E
53 #define PORTE_ADDR 0x0010
54 #define PIR1_ADDR 0x0011
55 #define PIR2_ADDR 0x0012
56 #define PIR3_ADDR 0x0013
57 #define PIR4_ADDR 0x0014
58 #define TMR0_ADDR 0x0015
59 #define TMR1_ADDR 0x0016
60 #define TMR1L_ADDR 0x0016
61 #define TMR1H_ADDR 0x0017
62 #define T1CON_ADDR 0x0018
63 #define T1GCON_ADDR 0x0019
64 #define TMR2_ADDR 0x001A
65 #define PR2_ADDR 0x001B
66 #define T2CON_ADDR 0x001C
67 #define TRISA_ADDR 0x008C
68 #define TRISB_ADDR 0x008D
69 #define TRISC_ADDR 0x008E
70 #define TRISE_ADDR 0x0090
71 #define PIE1_ADDR 0x0091
72 #define PIE2_ADDR 0x0092
73 #define PIE3_ADDR 0x0093
74 #define PIE4_ADDR 0x0094
75 #define OPTION_REG_ADDR 0x0095
76 #define PCON_ADDR 0x0096
77 #define WDTCON_ADDR 0x0097
78 #define OSCTUNE_ADDR 0x0098
79 #define OSCCON_ADDR 0x0099
80 #define OSCSTAT_ADDR 0x009A
81 #define ADRES_ADDR 0x009B
82 #define ADRESL_ADDR 0x009B
83 #define ADRESH_ADDR 0x009C
84 #define ADCON0_ADDR 0x009D
85 #define ADCON1_ADDR 0x009E
86 #define ADCON2_ADDR 0x009F
87 #define LATA_ADDR 0x010C
88 #define LATB_ADDR 0x010D
89 #define LATC_ADDR 0x010E
90 #define CM1CON0_ADDR 0x0111
91 #define CM1CON1_ADDR 0x0112
92 #define CM2CON0_ADDR 0x0113
93 #define CM2CON1_ADDR 0x0114
94 #define CMOUT_ADDR 0x0115
95 #define BORCON_ADDR 0x0116
96 #define FVRCON_ADDR 0x0117
97 #define DACCON0_ADDR 0x0118
98 #define DACCON1_ADDR 0x0119
99 #define CM4CON0_ADDR 0x011A
100 #define CM4CON1_ADDR 0x011B
101 #define APFCON2_ADDR 0x011C
102 #define APFCON_ADDR 0x011D
103 #define APFCON0_ADDR 0x011D
104 #define APFCON1_ADDR 0x011D
105 #define CM3CON0_ADDR 0x011E
106 #define CM3CON1_ADDR 0x011F
107 #define ANSELA_ADDR 0x018C
108 #define ANSELB_ADDR 0x018D
109 #define EEADR_ADDR 0x0191
110 #define EEADRL_ADDR 0x0191
111 #define EEADRH_ADDR 0x0192
112 #define EEDAT_ADDR 0x0193
113 #define EEDATL_ADDR 0x0193
114 #define EEDATH_ADDR 0x0194
115 #define EECON1_ADDR 0x0195
116 #define EECON2_ADDR 0x0196
117 #define RC1REG_ADDR 0x0199
118 #define RCREG_ADDR 0x0199
119 #define RCREG1_ADDR 0x0199
120 #define TX1REG_ADDR 0x019A
121 #define TXREG_ADDR 0x019A
122 #define TXREG1_ADDR 0x019A
123 #define SP1BRG_ADDR 0x019B
124 #define SP1BRGL_ADDR 0x019B
125 #define SPBRG_ADDR 0x019B
126 #define SPBRG1_ADDR 0x019B
127 #define SPBRGL_ADDR 0x019B
128 #define SP1BRGH_ADDR 0x019C
129 #define SPBRGH_ADDR 0x019C
130 #define SPBRGH1_ADDR 0x019C
131 #define RC1STA_ADDR 0x019D
132 #define RCSTA_ADDR 0x019D
133 #define RCSTA1_ADDR 0x019D
134 #define TX1STA_ADDR 0x019E
135 #define TXSTA_ADDR 0x019E
136 #define TXSTA1_ADDR 0x019E
137 #define BAUD1CON_ADDR 0x019F
138 #define BAUDCON_ADDR 0x019F
139 #define BAUDCON1_ADDR 0x019F
140 #define BAUDCTL_ADDR 0x019F
141 #define BAUDCTL1_ADDR 0x019F
142 #define WPUA_ADDR 0x020C
143 #define WPUB_ADDR 0x020D
144 #define WPUC_ADDR 0x020E
145 #define WPUE_ADDR 0x0210
146 #define SSP1BUF_ADDR 0x0211
147 #define SSPBUF_ADDR 0x0211
148 #define SSP1ADD_ADDR 0x0212
149 #define SSPADD_ADDR 0x0212
150 #define SSP1MSK_ADDR 0x0213
151 #define SSPMSK_ADDR 0x0213
152 #define SSP1STAT_ADDR 0x0214
153 #define SSPSTAT_ADDR 0x0214
154 #define SSP1CON_ADDR 0x0215
155 #define SSP1CON1_ADDR 0x0215
156 #define SSPCON_ADDR 0x0215
157 #define SSPCON1_ADDR 0x0215
158 #define SSP1CON2_ADDR 0x0216
159 #define SSPCON2_ADDR 0x0216
160 #define SSP1CON3_ADDR 0x0217
161 #define SSPCON3_ADDR 0x0217
162 #define ODCONA_ADDR 0x028C
163 #define ODCONB_ADDR 0x028D
164 #define ODCONC_ADDR 0x028E
165 #define CCPR1_ADDR 0x0291
166 #define CCPR1L_ADDR 0x0291
167 #define CCPR1H_ADDR 0x0292
168 #define CCP1CON_ADDR 0x0293
169 #define CCPR2_ADDR 0x0298
170 #define CCPR2L_ADDR 0x0298
171 #define CCPR2H_ADDR 0x0299
172 #define CCP2CON_ADDR 0x029A
173 #define SLRCONA_ADDR 0x030C
174 #define SLRCONB_ADDR 0x030D
175 #define SLRCONC_ADDR 0x030E
176 #define CCPR3_ADDR 0x0311
177 #define CCPR3L_ADDR 0x0311
178 #define CCPR3H_ADDR 0x0312
179 #define CCP3CON_ADDR 0x0313
180 #define INLVLA_ADDR 0x038C
181 #define INLVLB_ADDR 0x038D
182 #define INLVLC_ADDR 0x038E
183 #define INLVLE_ADDR 0x0390
184 #define IOCAP_ADDR 0x0391
185 #define IOCAN_ADDR 0x0392
186 #define IOCAF_ADDR 0x0393
187 #define IOCBP_ADDR 0x0394
188 #define IOCBN_ADDR 0x0395
189 #define IOCBF_ADDR 0x0396
190 #define IOCCP_ADDR 0x0397
191 #define IOCCN_ADDR 0x0398
192 #define IOCCF_ADDR 0x0399
193 #define IOCEP_ADDR 0x039D
194 #define IOCEN_ADDR 0x039E
195 #define IOCEF_ADDR 0x039F
196 #define OPA1CON_ADDR 0x0511
197 #define OPA2CON_ADDR 0x0513
198 #define CLKRCON_ADDR 0x051A
199 #define PSMC1CON_ADDR 0x0811
200 #define PSMC1MDL_ADDR 0x0812
201 #define PSMC1SYNC_ADDR 0x0813
202 #define PSMC1CLK_ADDR 0x0814
203 #define PSMC1OEN_ADDR 0x0815
204 #define PSMC1POL_ADDR 0x0816
205 #define PSMC1BLNK_ADDR 0x0817
206 #define PSMC1REBS_ADDR 0x0818
207 #define PSMC1FEBS_ADDR 0x0819
208 #define PSMC1PHS_ADDR 0x081A
209 #define PSMC1DCS_ADDR 0x081B
210 #define PSMC1PRS_ADDR 0x081C
211 #define PSMC1ASDC_ADDR 0x081D
212 #define PSMC1ASDL_ADDR 0x081E
213 #define PSMC1ASDS_ADDR 0x081F
214 #define PSMC1INT_ADDR 0x0820
215 #define PSMC1PH_ADDR 0x0821
216 #define PSMC1PHL_ADDR 0x0821
217 #define PSMC1PHH_ADDR 0x0822
218 #define PSMC1DC_ADDR 0x0823
219 #define PSMC1DCL_ADDR 0x0823
220 #define PSMC1DCH_ADDR 0x0824
221 #define PSMC1PR_ADDR 0x0825
222 #define PSMC1PRL_ADDR 0x0825
223 #define PSMC1PRH_ADDR 0x0826
224 #define PSMC1TMR_ADDR 0x0827
225 #define PSMC1TMRL_ADDR 0x0827
226 #define PSMC1TMRH_ADDR 0x0828
227 #define PSMC1DBR_ADDR 0x0829
228 #define PSMC1DBF_ADDR 0x082A
229 #define PSMC1BLKR_ADDR 0x082B
230 #define PSMC1BLKF_ADDR 0x082C
231 #define PSMC1FFA_ADDR 0x082D
232 #define PSMC1STR0_ADDR 0x082E
233 #define PSMC1STR1_ADDR 0x082F
234 #define PSMC2CON_ADDR 0x0831
235 #define PSMC2MDL_ADDR 0x0832
236 #define PSMC2SYNC_ADDR 0x0833
237 #define PSMC2CLK_ADDR 0x0834
238 #define PSMC2OEN_ADDR 0x0835
239 #define PSMC2POL_ADDR 0x0836
240 #define PSMC2BLNK_ADDR 0x0837
241 #define PSMC2REBS_ADDR 0x0838
242 #define PSMC2FEBS_ADDR 0x0839
243 #define PSMC2PHS_ADDR 0x083A
244 #define PSMC2DCS_ADDR 0x083B
245 #define PSMC2PRS_ADDR 0x083C
246 #define PSMC2ASDC_ADDR 0x083D
247 #define PSMC2ASDL_ADDR 0x083E
248 #define PSMC2ASDS_ADDR 0x083F
249 #define PSMC2INT_ADDR 0x0840
250 #define PSMC2PH_ADDR 0x0841
251 #define PSMC2PHL_ADDR 0x0841
252 #define PSMC2PHH_ADDR 0x0842
253 #define PSMC2DC_ADDR 0x0843
254 #define PSMC2DCL_ADDR 0x0843
255 #define PSMC2DCH_ADDR 0x0844
256 #define PSMC2PR_ADDR 0x0845
257 #define PSMC2PRL_ADDR 0x0845
258 #define PSMC2PRH_ADDR 0x0846
259 #define PSMC2TMR_ADDR 0x0847
260 #define PSMC2TMRL_ADDR 0x0847
261 #define PSMC2TMRH_ADDR 0x0848
262 #define PSMC2DBR_ADDR 0x0849
263 #define PSMC2DBF_ADDR 0x084A
264 #define PSMC2BLKR_ADDR 0x084B
265 #define PSMC2BLKF_ADDR 0x084C
266 #define PSMC2FFA_ADDR 0x084D
267 #define PSMC2STR0_ADDR 0x084E
268 #define PSMC2STR1_ADDR 0x084F
269 #define PSMC3CON_ADDR 0x0851
270 #define PSMC3MDL_ADDR 0x0852
271 #define PSMC3SYNC_ADDR 0x0853
272 #define PSMC3CLK_ADDR 0x0854
273 #define PSMC3OEN_ADDR 0x0855
274 #define PSMC3POL_ADDR 0x0856
275 #define PSMC3BLNK_ADDR 0x0857
276 #define PSMC3REBS_ADDR 0x0858
277 #define PSMC3FEBS_ADDR 0x0859
278 #define PSMC3PHS_ADDR 0x085A
279 #define PSMC3DCS_ADDR 0x085B
280 #define PSMC3PRS_ADDR 0x085C
281 #define PSMC3ASDC_ADDR 0x085D
282 #define PSMC3ASDL_ADDR 0x085E
283 #define PSMC3ASDS_ADDR 0x085F
284 #define PSMC3INT_ADDR 0x0860
285 #define PSMC3PH_ADDR 0x0861
286 #define PSMC3PHL_ADDR 0x0861
287 #define PSMC3PHH_ADDR 0x0862
288 #define PSMC3DC_ADDR 0x0863
289 #define PSMC3DCL_ADDR 0x0863
290 #define PSMC3DCH_ADDR 0x0864
291 #define PSMC3PR_ADDR 0x0865
292 #define PSMC3PRL_ADDR 0x0865
293 #define PSMC3PRH_ADDR 0x0866
294 #define PSMC3TMR_ADDR 0x0867
295 #define PSMC3TMRL_ADDR 0x0867
296 #define PSMC3TMRH_ADDR 0x0868
297 #define PSMC3DBR_ADDR 0x0869
298 #define PSMC3DBF_ADDR 0x086A
299 #define PSMC3BLKR_ADDR 0x086B
300 #define PSMC3BLKF_ADDR 0x086C
301 #define PSMC3FFA_ADDR 0x086D
302 #define PSMC3STR0_ADDR 0x086E
303 #define PSMC3STR1_ADDR 0x086F
304 #define STATUS_SHAD_ADDR 0x0FE4
305 #define WREG_SHAD_ADDR 0x0FE5
306 #define BSR_SHAD_ADDR 0x0FE6
307 #define PCLATH_SHAD_ADDR 0x0FE7
308 #define FSR0L_SHAD_ADDR 0x0FE8
309 #define FSR0H_SHAD_ADDR 0x0FE9
310 #define FSR1L_SHAD_ADDR 0x0FEA
311 #define FSR1H_SHAD_ADDR 0x0FEB
312 #define STKPTR_ADDR 0x0FED
313 #define TOSL_ADDR 0x0FEE
314 #define TOSH_ADDR 0x0FEF
316 #endif // #ifndef NO_ADDR_DEFINES
318 //==============================================================================
320 // Register Definitions
322 //==============================================================================
324 extern __at(0x0000) __sfr INDF0
;
325 extern __at(0x0001) __sfr INDF1
;
326 extern __at(0x0002) __sfr PCL
;
328 //==============================================================================
331 extern __at(0x0003) __sfr STATUS
;
345 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
353 //==============================================================================
355 extern __at(0x0004) __sfr FSR0
;
356 extern __at(0x0004) __sfr FSR0L
;
357 extern __at(0x0005) __sfr FSR0H
;
358 extern __at(0x0006) __sfr FSR1
;
359 extern __at(0x0006) __sfr FSR1L
;
360 extern __at(0x0007) __sfr FSR1H
;
362 //==============================================================================
365 extern __at(0x0008) __sfr BSR
;
388 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
396 //==============================================================================
398 extern __at(0x0009) __sfr WREG
;
399 extern __at(0x000A) __sfr PCLATH
;
401 //==============================================================================
404 extern __at(0x000B) __sfr INTCON
;
433 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
446 //==============================================================================
449 //==============================================================================
452 extern __at(0x000C) __sfr PORTA
;
466 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
477 //==============================================================================
480 //==============================================================================
483 extern __at(0x000D) __sfr PORTB
;
497 extern __at(0x000D) volatile __PORTBbits_t PORTBbits
;
508 //==============================================================================
511 //==============================================================================
514 extern __at(0x000E) __sfr PORTC
;
528 extern __at(0x000E) volatile __PORTCbits_t PORTCbits
;
539 //==============================================================================
542 //==============================================================================
545 extern __at(0x0010) __sfr PORTE
;
559 extern __at(0x0010) volatile __PORTEbits_t PORTEbits
;
563 //==============================================================================
566 //==============================================================================
569 extern __at(0x0011) __sfr PIR1
;
580 unsigned TMR1GIF
: 1;
583 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
592 #define _TMR1GIF 0x80
594 //==============================================================================
597 //==============================================================================
600 extern __at(0x0012) __sfr PIR2
;
614 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
625 //==============================================================================
628 //==============================================================================
631 extern __at(0x0013) __sfr PIR3
;
645 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
649 //==============================================================================
652 //==============================================================================
655 extern __at(0x0014) __sfr PIR4
;
659 unsigned PSMC1SIF
: 1;
660 unsigned PSMC2SIF
: 1;
661 unsigned PSMC3SIF
: 1;
663 unsigned PSMC1TIF
: 1;
664 unsigned PSMC2TIF
: 1;
665 unsigned PSMC3TIF
: 1;
669 extern __at(0x0014) volatile __PIR4bits_t PIR4bits
;
671 #define _PSMC1SIF 0x01
672 #define _PSMC2SIF 0x02
673 #define _PSMC3SIF 0x04
674 #define _PSMC1TIF 0x10
675 #define _PSMC2TIF 0x20
676 #define _PSMC3TIF 0x40
678 //==============================================================================
680 extern __at(0x0015) __sfr TMR0
;
681 extern __at(0x0016) __sfr TMR1
;
682 extern __at(0x0016) __sfr TMR1L
;
683 extern __at(0x0017) __sfr TMR1H
;
685 //==============================================================================
688 extern __at(0x0018) __sfr T1CON
;
696 unsigned NOT_T1SYNC
: 1;
697 unsigned T1OSCEN
: 1;
698 unsigned T1CKPS0
: 1;
699 unsigned T1CKPS1
: 1;
700 unsigned TMR1CS0
: 1;
701 unsigned TMR1CS1
: 1;
718 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
721 #define _NOT_T1SYNC 0x04
722 #define _T1OSCEN 0x08
723 #define _T1CKPS0 0x10
724 #define _T1CKPS1 0x20
725 #define _TMR1CS0 0x40
726 #define _TMR1CS1 0x80
728 //==============================================================================
731 //==============================================================================
734 extern __at(0x0019) __sfr T1GCON
;
757 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
768 //==============================================================================
770 extern __at(0x001A) __sfr TMR2
;
771 extern __at(0x001B) __sfr PR2
;
773 //==============================================================================
776 extern __at(0x001C) __sfr T2CON
;
782 unsigned T2CKPS0
: 1;
783 unsigned T2CKPS1
: 1;
785 unsigned T2OUTPS0
: 1;
786 unsigned T2OUTPS1
: 1;
787 unsigned T2OUTPS2
: 1;
788 unsigned T2OUTPS3
: 1;
801 unsigned T2OUTPS
: 4;
806 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
808 #define _T2CKPS0 0x01
809 #define _T2CKPS1 0x02
811 #define _T2OUTPS0 0x08
812 #define _T2OUTPS1 0x10
813 #define _T2OUTPS2 0x20
814 #define _T2OUTPS3 0x40
816 //==============================================================================
819 //==============================================================================
822 extern __at(0x008C) __sfr TRISA
;
836 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
847 //==============================================================================
850 //==============================================================================
853 extern __at(0x008D) __sfr TRISB
;
867 extern __at(0x008D) volatile __TRISBbits_t TRISBbits
;
878 //==============================================================================
881 //==============================================================================
884 extern __at(0x008E) __sfr TRISC
;
898 extern __at(0x008E) volatile __TRISCbits_t TRISCbits
;
909 //==============================================================================
912 //==============================================================================
915 extern __at(0x0090) __sfr TRISE
;
929 extern __at(0x0090) volatile __TRISEbits_t TRISEbits
;
933 //==============================================================================
936 //==============================================================================
939 extern __at(0x0091) __sfr PIE1
;
950 unsigned TMR1GIE
: 1;
953 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
962 #define _TMR1GIE 0x80
964 //==============================================================================
967 //==============================================================================
970 extern __at(0x0092) __sfr PIE2
;
984 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
995 //==============================================================================
998 //==============================================================================
1001 extern __at(0x0093) __sfr PIE3
;
1009 unsigned CCP3IE
: 1;
1015 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
1017 #define _CCP3IE 0x10
1019 //==============================================================================
1022 //==============================================================================
1025 extern __at(0x0094) __sfr PIE4
;
1031 unsigned PSMC1SIE
: 1;
1032 unsigned PSMC2SIE
: 1;
1033 unsigned PSMC3SIE
: 1;
1035 unsigned PSMC1TIE
: 1;
1036 unsigned PSMC2TIE
: 1;
1037 unsigned PSMC3TIE
: 1;
1049 unsigned PMSC3TIE
: 1;
1054 extern __at(0x0094) volatile __PIE4bits_t PIE4bits
;
1056 #define _PSMC1SIE 0x01
1057 #define _PSMC2SIE 0x02
1058 #define _PSMC3SIE 0x04
1059 #define _PSMC1TIE 0x10
1060 #define _PSMC2TIE 0x20
1061 #define _PSMC3TIE 0x40
1062 #define _PMSC3TIE 0x40
1064 //==============================================================================
1067 //==============================================================================
1070 extern __at(0x0095) __sfr OPTION_REG
;
1080 unsigned TMR0SE
: 1;
1081 unsigned TMR0CS
: 1;
1082 unsigned INTEDG
: 1;
1083 unsigned NOT_WPUEN
: 1;
1103 } __OPTION_REGbits_t
;
1105 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
1111 #define _TMR0SE 0x10
1113 #define _TMR0CS 0x20
1115 #define _INTEDG 0x40
1116 #define _NOT_WPUEN 0x80
1118 //==============================================================================
1121 //==============================================================================
1124 extern __at(0x0096) __sfr PCON
;
1128 unsigned NOT_BOR
: 1;
1129 unsigned NOT_POR
: 1;
1130 unsigned NOT_RI
: 1;
1131 unsigned NOT_RMCLR
: 1;
1132 unsigned NOT_RWDT
: 1;
1134 unsigned STKUNF
: 1;
1135 unsigned STKOVF
: 1;
1138 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
1140 #define _NOT_BOR 0x01
1141 #define _NOT_POR 0x02
1142 #define _NOT_RI 0x04
1143 #define _NOT_RMCLR 0x08
1144 #define _NOT_RWDT 0x10
1145 #define _STKUNF 0x40
1146 #define _STKOVF 0x80
1148 //==============================================================================
1151 //==============================================================================
1154 extern __at(0x0097) __sfr WDTCON
;
1160 unsigned SWDTEN
: 1;
1161 unsigned WDTPS0
: 1;
1162 unsigned WDTPS1
: 1;
1163 unsigned WDTPS2
: 1;
1164 unsigned WDTPS3
: 1;
1165 unsigned WDTPS4
: 1;
1178 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
1180 #define _SWDTEN 0x01
1181 #define _WDTPS0 0x02
1182 #define _WDTPS1 0x04
1183 #define _WDTPS2 0x08
1184 #define _WDTPS3 0x10
1185 #define _WDTPS4 0x20
1187 //==============================================================================
1190 //==============================================================================
1193 extern __at(0x0098) __sfr OSCTUNE
;
1216 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
1225 //==============================================================================
1228 //==============================================================================
1231 extern __at(0x0099) __sfr OSCCON
;
1244 unsigned SPLLEN
: 1;
1261 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
1269 #define _SPLLEN 0x80
1271 //==============================================================================
1274 //==============================================================================
1277 extern __at(0x009A) __sfr OSCSTAT
;
1281 unsigned HFIOFS
: 1;
1282 unsigned LFIOFR
: 1;
1283 unsigned MFIOFR
: 1;
1284 unsigned HFIOFL
: 1;
1285 unsigned HFIOFR
: 1;
1288 unsigned T1OSCR
: 1;
1291 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
1293 #define _HFIOFS 0x01
1294 #define _LFIOFR 0x02
1295 #define _MFIOFR 0x04
1296 #define _HFIOFL 0x08
1297 #define _HFIOFR 0x10
1300 #define _T1OSCR 0x80
1302 //==============================================================================
1304 extern __at(0x009B) __sfr ADRES
;
1305 extern __at(0x009B) __sfr ADRESL
;
1306 extern __at(0x009C) __sfr ADRESH
;
1308 //==============================================================================
1311 extern __at(0x009D) __sfr ADCON0
;
1318 unsigned GO_NOT_DONE
: 1;
1371 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1374 #define _GO_NOT_DONE 0x02
1385 //==============================================================================
1388 //==============================================================================
1391 extern __at(0x009E) __sfr ADCON1
;
1397 unsigned ADPREF0
: 1;
1398 unsigned ADPREF1
: 1;
1399 unsigned ADNREF
: 1;
1409 unsigned ADPREF
: 2;
1421 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1423 #define _ADPREF0 0x01
1424 #define _ADPREF1 0x02
1425 #define _ADNREF 0x04
1431 //==============================================================================
1434 //==============================================================================
1437 extern __at(0x009F) __sfr ADCON2
;
1447 unsigned TRIGSEL0
: 1;
1448 unsigned TRIGSEL1
: 1;
1449 unsigned TRIGSEL2
: 1;
1450 unsigned TRIGSEL3
: 1;
1462 unsigned TRIGSEL
: 4;
1466 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1472 #define _TRIGSEL0 0x10
1473 #define _TRIGSEL1 0x20
1474 #define _TRIGSEL2 0x40
1475 #define _TRIGSEL3 0x80
1477 //==============================================================================
1480 //==============================================================================
1483 extern __at(0x010C) __sfr LATA
;
1497 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1508 //==============================================================================
1511 //==============================================================================
1514 extern __at(0x010D) __sfr LATB
;
1528 extern __at(0x010D) volatile __LATBbits_t LATBbits
;
1539 //==============================================================================
1542 //==============================================================================
1545 extern __at(0x010E) __sfr LATC
;
1559 extern __at(0x010E) volatile __LATCbits_t LATCbits
;
1570 //==============================================================================
1573 //==============================================================================
1576 extern __at(0x0111) __sfr CM1CON0
;
1580 unsigned C1SYNC
: 1;
1590 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1592 #define _C1SYNC 0x01
1601 //==============================================================================
1604 //==============================================================================
1607 extern __at(0x0112) __sfr CM1CON1
;
1613 unsigned C1NCH0
: 1;
1614 unsigned C1NCH1
: 1;
1615 unsigned C1NCH2
: 1;
1616 unsigned C1PCH0
: 1;
1617 unsigned C1PCH1
: 1;
1618 unsigned C1PCH2
: 1;
1619 unsigned C1INTN
: 1;
1620 unsigned C1INTP
: 1;
1637 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1639 #define _C1NCH0 0x01
1640 #define _C1NCH1 0x02
1641 #define _C1NCH2 0x04
1642 #define _C1PCH0 0x08
1643 #define _C1PCH1 0x10
1644 #define _C1PCH2 0x20
1645 #define _C1INTN 0x40
1646 #define _C1INTP 0x80
1648 //==============================================================================
1651 //==============================================================================
1654 extern __at(0x0113) __sfr CM2CON0
;
1658 unsigned C2SYNC
: 1;
1668 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits
;
1670 #define _C2SYNC 0x01
1679 //==============================================================================
1682 //==============================================================================
1685 extern __at(0x0114) __sfr CM2CON1
;
1691 unsigned C2NCH0
: 1;
1692 unsigned C2NCH1
: 1;
1693 unsigned C2NCH2
: 1;
1694 unsigned C2PCH0
: 1;
1695 unsigned C2PCH1
: 1;
1696 unsigned C2PCH2
: 1;
1697 unsigned C2INTN
: 1;
1698 unsigned C2INTP
: 1;
1715 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits
;
1717 #define _C2NCH0 0x01
1718 #define _C2NCH1 0x02
1719 #define _C2NCH2 0x04
1720 #define _C2PCH0 0x08
1721 #define _C2PCH1 0x10
1722 #define _C2PCH2 0x20
1723 #define _C2INTN 0x40
1724 #define _C2INTP 0x80
1726 //==============================================================================
1729 //==============================================================================
1732 extern __at(0x0115) __sfr CMOUT
;
1736 unsigned MC1OUT
: 1;
1737 unsigned MC2OUT
: 1;
1738 unsigned MC3OUT
: 1;
1739 unsigned MC4OUT
: 1;
1746 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1748 #define _MC1OUT 0x01
1749 #define _MC2OUT 0x02
1750 #define _MC3OUT 0x04
1751 #define _MC4OUT 0x08
1753 //==============================================================================
1756 //==============================================================================
1759 extern __at(0x0116) __sfr BORCON
;
1763 unsigned BORRDY
: 1;
1770 unsigned SBOREN
: 1;
1773 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1775 #define _BORRDY 0x01
1777 #define _SBOREN 0x80
1779 //==============================================================================
1782 //==============================================================================
1785 extern __at(0x0117) __sfr FVRCON
;
1791 unsigned ADFVR0
: 1;
1792 unsigned ADFVR1
: 1;
1793 unsigned CDAFVR0
: 1;
1794 unsigned CDAFVR1
: 1;
1797 unsigned FVRRDY
: 1;
1810 unsigned CDAFVR
: 2;
1815 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1817 #define _ADFVR0 0x01
1818 #define _ADFVR1 0x02
1819 #define _CDAFVR0 0x04
1820 #define _CDAFVR1 0x08
1823 #define _FVRRDY 0x40
1826 //==============================================================================
1829 //==============================================================================
1832 extern __at(0x0118) __sfr DACCON0
;
1838 unsigned DACNSS
: 1;
1840 unsigned DACPSS0
: 1;
1841 unsigned DACPSS1
: 1;
1842 unsigned DACOE2
: 1;
1843 unsigned DACOE1
: 1;
1851 unsigned DACPSS
: 2;
1856 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1858 #define _DACNSS 0x01
1859 #define _DACPSS0 0x04
1860 #define _DACPSS1 0x08
1861 #define _DACOE2 0x10
1862 #define _DACOE1 0x20
1865 //==============================================================================
1868 //==============================================================================
1871 extern __at(0x0119) __sfr DACCON1
;
1885 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1896 //==============================================================================
1899 //==============================================================================
1902 extern __at(0x011A) __sfr CM4CON0
;
1906 unsigned C4SYNC
: 1;
1916 extern __at(0x011A) volatile __CM4CON0bits_t CM4CON0bits
;
1918 #define _C4SYNC 0x01
1927 //==============================================================================
1930 //==============================================================================
1933 extern __at(0x011B) __sfr CM4CON1
;
1939 unsigned C4NCH0
: 1;
1940 unsigned C4NCH1
: 1;
1941 unsigned C4NCH2
: 1;
1942 unsigned C4PCH0
: 1;
1943 unsigned C4PCH1
: 1;
1944 unsigned C4PCH2
: 1;
1945 unsigned C4INTN
: 1;
1946 unsigned C4INTP
: 1;
1963 extern __at(0x011B) volatile __CM4CON1bits_t CM4CON1bits
;
1965 #define _C4NCH0 0x01
1966 #define _C4NCH1 0x02
1967 #define _C4NCH2 0x04
1968 #define _C4PCH0 0x08
1969 #define _C4PCH1 0x10
1970 #define _C4PCH2 0x20
1971 #define _C4INTN 0x40
1972 #define _C4INTP 0x80
1974 //==============================================================================
1977 //==============================================================================
1980 extern __at(0x011C) __sfr APFCON2
;
1984 unsigned CCP3SEL
: 1;
1994 extern __at(0x011C) volatile __APFCON2bits_t APFCON2bits
;
1996 #define _CCP3SEL 0x01
1998 //==============================================================================
2001 //==============================================================================
2004 extern __at(0x011D) __sfr APFCON
;
2008 unsigned CCP2SEL
: 1;
2011 unsigned SDISEL
: 1;
2012 unsigned SCKSEL
: 1;
2013 unsigned SDOSEL
: 1;
2014 unsigned CCP1SEL
: 1;
2015 unsigned C2OUTSEL
: 1;
2018 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
2020 #define _CCP2SEL 0x01
2023 #define _SDISEL 0x08
2024 #define _SCKSEL 0x10
2025 #define _SDOSEL 0x20
2026 #define _CCP1SEL 0x40
2027 #define _C2OUTSEL 0x80
2029 //==============================================================================
2032 //==============================================================================
2035 extern __at(0x011D) __sfr APFCON0
;
2039 unsigned CCP2SEL
: 1;
2042 unsigned SDISEL
: 1;
2043 unsigned SCKSEL
: 1;
2044 unsigned SDOSEL
: 1;
2045 unsigned CCP1SEL
: 1;
2046 unsigned C2OUTSEL
: 1;
2049 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits
;
2051 #define _APFCON0_CCP2SEL 0x01
2052 #define _APFCON0_RXSEL 0x02
2053 #define _APFCON0_TXSEL 0x04
2054 #define _APFCON0_SDISEL 0x08
2055 #define _APFCON0_SCKSEL 0x10
2056 #define _APFCON0_SDOSEL 0x20
2057 #define _APFCON0_CCP1SEL 0x40
2058 #define _APFCON0_C2OUTSEL 0x80
2060 //==============================================================================
2063 //==============================================================================
2066 extern __at(0x011D) __sfr APFCON1
;
2070 unsigned CCP2SEL
: 1;
2073 unsigned SDISEL
: 1;
2074 unsigned SCKSEL
: 1;
2075 unsigned SDOSEL
: 1;
2076 unsigned CCP1SEL
: 1;
2077 unsigned C2OUTSEL
: 1;
2080 extern __at(0x011D) volatile __APFCON1bits_t APFCON1bits
;
2082 #define _APFCON1_CCP2SEL 0x01
2083 #define _APFCON1_RXSEL 0x02
2084 #define _APFCON1_TXSEL 0x04
2085 #define _APFCON1_SDISEL 0x08
2086 #define _APFCON1_SCKSEL 0x10
2087 #define _APFCON1_SDOSEL 0x20
2088 #define _APFCON1_CCP1SEL 0x40
2089 #define _APFCON1_C2OUTSEL 0x80
2091 //==============================================================================
2094 //==============================================================================
2097 extern __at(0x011E) __sfr CM3CON0
;
2101 unsigned C3SYNC
: 1;
2111 extern __at(0x011E) volatile __CM3CON0bits_t CM3CON0bits
;
2113 #define _C3SYNC 0x01
2122 //==============================================================================
2125 //==============================================================================
2128 extern __at(0x011F) __sfr CM3CON1
;
2134 unsigned C3NCH0
: 1;
2135 unsigned C3NCH1
: 1;
2136 unsigned C3NCH2
: 1;
2137 unsigned C3PCH0
: 1;
2138 unsigned C3PCH1
: 1;
2139 unsigned C3PCH2
: 1;
2140 unsigned C3INTN
: 1;
2141 unsigned C3INTP
: 1;
2158 extern __at(0x011F) volatile __CM3CON1bits_t CM3CON1bits
;
2160 #define _C3NCH0 0x01
2161 #define _C3NCH1 0x02
2162 #define _C3NCH2 0x04
2163 #define _C3PCH0 0x08
2164 #define _C3PCH1 0x10
2165 #define _C3PCH2 0x20
2166 #define _C3INTN 0x40
2167 #define _C3INTP 0x80
2169 //==============================================================================
2172 //==============================================================================
2175 extern __at(0x018C) __sfr ANSELA
;
2189 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
2199 //==============================================================================
2202 //==============================================================================
2205 extern __at(0x018D) __sfr ANSELB
;
2228 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits
;
2238 //==============================================================================
2240 extern __at(0x0191) __sfr EEADR
;
2241 extern __at(0x0191) __sfr EEADRL
;
2242 extern __at(0x0192) __sfr EEADRH
;
2243 extern __at(0x0193) __sfr EEDAT
;
2244 extern __at(0x0193) __sfr EEDATL
;
2245 extern __at(0x0194) __sfr EEDATH
;
2247 //==============================================================================
2250 extern __at(0x0195) __sfr EECON1
;
2264 extern __at(0x0195) volatile __EECON1bits_t EECON1bits
;
2275 //==============================================================================
2277 extern __at(0x0196) __sfr EECON2
;
2278 extern __at(0x0199) __sfr RC1REG
;
2279 extern __at(0x0199) __sfr RCREG
;
2280 extern __at(0x0199) __sfr RCREG1
;
2281 extern __at(0x019A) __sfr TX1REG
;
2282 extern __at(0x019A) __sfr TXREG
;
2283 extern __at(0x019A) __sfr TXREG1
;
2284 extern __at(0x019B) __sfr SP1BRG
;
2285 extern __at(0x019B) __sfr SP1BRGL
;
2286 extern __at(0x019B) __sfr SPBRG
;
2287 extern __at(0x019B) __sfr SPBRG1
;
2288 extern __at(0x019B) __sfr SPBRGL
;
2289 extern __at(0x019C) __sfr SP1BRGH
;
2290 extern __at(0x019C) __sfr SPBRGH
;
2291 extern __at(0x019C) __sfr SPBRGH1
;
2293 //==============================================================================
2296 extern __at(0x019D) __sfr RC1STA
;
2310 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits
;
2321 //==============================================================================
2324 //==============================================================================
2327 extern __at(0x019D) __sfr RCSTA
;
2341 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
2343 #define _RCSTA_RX9D 0x01
2344 #define _RCSTA_OERR 0x02
2345 #define _RCSTA_FERR 0x04
2346 #define _RCSTA_ADDEN 0x08
2347 #define _RCSTA_CREN 0x10
2348 #define _RCSTA_SREN 0x20
2349 #define _RCSTA_RX9 0x40
2350 #define _RCSTA_SPEN 0x80
2352 //==============================================================================
2355 //==============================================================================
2358 extern __at(0x019D) __sfr RCSTA1
;
2372 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits
;
2374 #define _RCSTA1_RX9D 0x01
2375 #define _RCSTA1_OERR 0x02
2376 #define _RCSTA1_FERR 0x04
2377 #define _RCSTA1_ADDEN 0x08
2378 #define _RCSTA1_CREN 0x10
2379 #define _RCSTA1_SREN 0x20
2380 #define _RCSTA1_RX9 0x40
2381 #define _RCSTA1_SPEN 0x80
2383 //==============================================================================
2386 //==============================================================================
2389 extern __at(0x019E) __sfr TX1STA
;
2403 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits
;
2414 //==============================================================================
2417 //==============================================================================
2420 extern __at(0x019E) __sfr TXSTA
;
2434 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
2436 #define _TXSTA_TX9D 0x01
2437 #define _TXSTA_TRMT 0x02
2438 #define _TXSTA_BRGH 0x04
2439 #define _TXSTA_SENDB 0x08
2440 #define _TXSTA_SYNC 0x10
2441 #define _TXSTA_TXEN 0x20
2442 #define _TXSTA_TX9 0x40
2443 #define _TXSTA_CSRC 0x80
2445 //==============================================================================
2448 //==============================================================================
2451 extern __at(0x019E) __sfr TXSTA1
;
2465 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits
;
2467 #define _TXSTA1_TX9D 0x01
2468 #define _TXSTA1_TRMT 0x02
2469 #define _TXSTA1_BRGH 0x04
2470 #define _TXSTA1_SENDB 0x08
2471 #define _TXSTA1_SYNC 0x10
2472 #define _TXSTA1_TXEN 0x20
2473 #define _TXSTA1_TX9 0x40
2474 #define _TXSTA1_CSRC 0x80
2476 //==============================================================================
2479 //==============================================================================
2482 extern __at(0x019F) __sfr BAUD1CON
;
2493 unsigned ABDOVF
: 1;
2496 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits
;
2503 #define _ABDOVF 0x80
2505 //==============================================================================
2508 //==============================================================================
2511 extern __at(0x019F) __sfr BAUDCON
;
2522 unsigned ABDOVF
: 1;
2525 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
2527 #define _BAUDCON_ABDEN 0x01
2528 #define _BAUDCON_WUE 0x02
2529 #define _BAUDCON_BRG16 0x08
2530 #define _BAUDCON_SCKP 0x10
2531 #define _BAUDCON_RCIDL 0x40
2532 #define _BAUDCON_ABDOVF 0x80
2534 //==============================================================================
2537 //==============================================================================
2540 extern __at(0x019F) __sfr BAUDCON1
;
2551 unsigned ABDOVF
: 1;
2554 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits
;
2556 #define _BAUDCON1_ABDEN 0x01
2557 #define _BAUDCON1_WUE 0x02
2558 #define _BAUDCON1_BRG16 0x08
2559 #define _BAUDCON1_SCKP 0x10
2560 #define _BAUDCON1_RCIDL 0x40
2561 #define _BAUDCON1_ABDOVF 0x80
2563 //==============================================================================
2566 //==============================================================================
2569 extern __at(0x019F) __sfr BAUDCTL
;
2580 unsigned ABDOVF
: 1;
2583 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits
;
2585 #define _BAUDCTL_ABDEN 0x01
2586 #define _BAUDCTL_WUE 0x02
2587 #define _BAUDCTL_BRG16 0x08
2588 #define _BAUDCTL_SCKP 0x10
2589 #define _BAUDCTL_RCIDL 0x40
2590 #define _BAUDCTL_ABDOVF 0x80
2592 //==============================================================================
2595 //==============================================================================
2598 extern __at(0x019F) __sfr BAUDCTL1
;
2609 unsigned ABDOVF
: 1;
2612 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits
;
2614 #define _BAUDCTL1_ABDEN 0x01
2615 #define _BAUDCTL1_WUE 0x02
2616 #define _BAUDCTL1_BRG16 0x08
2617 #define _BAUDCTL1_SCKP 0x10
2618 #define _BAUDCTL1_RCIDL 0x40
2619 #define _BAUDCTL1_ABDOVF 0x80
2621 //==============================================================================
2624 //==============================================================================
2627 extern __at(0x020C) __sfr WPUA
;
2641 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
2652 //==============================================================================
2655 //==============================================================================
2658 extern __at(0x020D) __sfr WPUB
;
2672 extern __at(0x020D) volatile __WPUBbits_t WPUBbits
;
2683 //==============================================================================
2686 //==============================================================================
2689 extern __at(0x020E) __sfr WPUC
;
2703 extern __at(0x020E) volatile __WPUCbits_t WPUCbits
;
2714 //==============================================================================
2717 //==============================================================================
2720 extern __at(0x0210) __sfr WPUE
;
2734 extern __at(0x0210) volatile __WPUEbits_t WPUEbits
;
2738 //==============================================================================
2741 //==============================================================================
2744 extern __at(0x0211) __sfr SSP1BUF
;
2750 unsigned SSP1BUF0
: 1;
2751 unsigned SSP1BUF1
: 1;
2752 unsigned SSP1BUF2
: 1;
2753 unsigned SSP1BUF3
: 1;
2754 unsigned SSP1BUF4
: 1;
2755 unsigned SSP1BUF5
: 1;
2756 unsigned SSP1BUF6
: 1;
2757 unsigned SSP1BUF7
: 1;
2773 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits
;
2775 #define _SSP1BUF0 0x01
2777 #define _SSP1BUF1 0x02
2779 #define _SSP1BUF2 0x04
2781 #define _SSP1BUF3 0x08
2783 #define _SSP1BUF4 0x10
2785 #define _SSP1BUF5 0x20
2787 #define _SSP1BUF6 0x40
2789 #define _SSP1BUF7 0x80
2792 //==============================================================================
2795 //==============================================================================
2798 extern __at(0x0211) __sfr SSPBUF
;
2804 unsigned SSP1BUF0
: 1;
2805 unsigned SSP1BUF1
: 1;
2806 unsigned SSP1BUF2
: 1;
2807 unsigned SSP1BUF3
: 1;
2808 unsigned SSP1BUF4
: 1;
2809 unsigned SSP1BUF5
: 1;
2810 unsigned SSP1BUF6
: 1;
2811 unsigned SSP1BUF7
: 1;
2827 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits
;
2829 #define _SSPBUF_SSP1BUF0 0x01
2830 #define _SSPBUF_BUF0 0x01
2831 #define _SSPBUF_SSP1BUF1 0x02
2832 #define _SSPBUF_BUF1 0x02
2833 #define _SSPBUF_SSP1BUF2 0x04
2834 #define _SSPBUF_BUF2 0x04
2835 #define _SSPBUF_SSP1BUF3 0x08
2836 #define _SSPBUF_BUF3 0x08
2837 #define _SSPBUF_SSP1BUF4 0x10
2838 #define _SSPBUF_BUF4 0x10
2839 #define _SSPBUF_SSP1BUF5 0x20
2840 #define _SSPBUF_BUF5 0x20
2841 #define _SSPBUF_SSP1BUF6 0x40
2842 #define _SSPBUF_BUF6 0x40
2843 #define _SSPBUF_SSP1BUF7 0x80
2844 #define _SSPBUF_BUF7 0x80
2846 //==============================================================================
2849 //==============================================================================
2852 extern __at(0x0212) __sfr SSP1ADD
;
2858 unsigned SSP1ADD0
: 1;
2859 unsigned SSP1ADD1
: 1;
2860 unsigned SSP1ADD2
: 1;
2861 unsigned SSP1ADD3
: 1;
2862 unsigned SSP1ADD4
: 1;
2863 unsigned SSP1ADD5
: 1;
2864 unsigned SSP1ADD6
: 1;
2865 unsigned SSP1ADD7
: 1;
2881 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits
;
2883 #define _SSP1ADD0 0x01
2885 #define _SSP1ADD1 0x02
2887 #define _SSP1ADD2 0x04
2889 #define _SSP1ADD3 0x08
2891 #define _SSP1ADD4 0x10
2893 #define _SSP1ADD5 0x20
2895 #define _SSP1ADD6 0x40
2897 #define _SSP1ADD7 0x80
2900 //==============================================================================
2903 //==============================================================================
2906 extern __at(0x0212) __sfr SSPADD
;
2912 unsigned SSP1ADD0
: 1;
2913 unsigned SSP1ADD1
: 1;
2914 unsigned SSP1ADD2
: 1;
2915 unsigned SSP1ADD3
: 1;
2916 unsigned SSP1ADD4
: 1;
2917 unsigned SSP1ADD5
: 1;
2918 unsigned SSP1ADD6
: 1;
2919 unsigned SSP1ADD7
: 1;
2935 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits
;
2937 #define _SSPADD_SSP1ADD0 0x01
2938 #define _SSPADD_ADD0 0x01
2939 #define _SSPADD_SSP1ADD1 0x02
2940 #define _SSPADD_ADD1 0x02
2941 #define _SSPADD_SSP1ADD2 0x04
2942 #define _SSPADD_ADD2 0x04
2943 #define _SSPADD_SSP1ADD3 0x08
2944 #define _SSPADD_ADD3 0x08
2945 #define _SSPADD_SSP1ADD4 0x10
2946 #define _SSPADD_ADD4 0x10
2947 #define _SSPADD_SSP1ADD5 0x20
2948 #define _SSPADD_ADD5 0x20
2949 #define _SSPADD_SSP1ADD6 0x40
2950 #define _SSPADD_ADD6 0x40
2951 #define _SSPADD_SSP1ADD7 0x80
2952 #define _SSPADD_ADD7 0x80
2954 //==============================================================================
2957 //==============================================================================
2960 extern __at(0x0213) __sfr SSP1MSK
;
2966 unsigned SSP1MSK0
: 1;
2967 unsigned SSP1MSK1
: 1;
2968 unsigned SSP1MSK2
: 1;
2969 unsigned SSP1MSK3
: 1;
2970 unsigned SSP1MSK4
: 1;
2971 unsigned SSP1MSK5
: 1;
2972 unsigned SSP1MSK6
: 1;
2973 unsigned SSP1MSK7
: 1;
2989 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits
;
2991 #define _SSP1MSK0 0x01
2993 #define _SSP1MSK1 0x02
2995 #define _SSP1MSK2 0x04
2997 #define _SSP1MSK3 0x08
2999 #define _SSP1MSK4 0x10
3001 #define _SSP1MSK5 0x20
3003 #define _SSP1MSK6 0x40
3005 #define _SSP1MSK7 0x80
3008 //==============================================================================
3011 //==============================================================================
3014 extern __at(0x0213) __sfr SSPMSK
;
3020 unsigned SSP1MSK0
: 1;
3021 unsigned SSP1MSK1
: 1;
3022 unsigned SSP1MSK2
: 1;
3023 unsigned SSP1MSK3
: 1;
3024 unsigned SSP1MSK4
: 1;
3025 unsigned SSP1MSK5
: 1;
3026 unsigned SSP1MSK6
: 1;
3027 unsigned SSP1MSK7
: 1;
3043 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits
;
3045 #define _SSPMSK_SSP1MSK0 0x01
3046 #define _SSPMSK_MSK0 0x01
3047 #define _SSPMSK_SSP1MSK1 0x02
3048 #define _SSPMSK_MSK1 0x02
3049 #define _SSPMSK_SSP1MSK2 0x04
3050 #define _SSPMSK_MSK2 0x04
3051 #define _SSPMSK_SSP1MSK3 0x08
3052 #define _SSPMSK_MSK3 0x08
3053 #define _SSPMSK_SSP1MSK4 0x10
3054 #define _SSPMSK_MSK4 0x10
3055 #define _SSPMSK_SSP1MSK5 0x20
3056 #define _SSPMSK_MSK5 0x20
3057 #define _SSPMSK_SSP1MSK6 0x40
3058 #define _SSPMSK_MSK6 0x40
3059 #define _SSPMSK_SSP1MSK7 0x80
3060 #define _SSPMSK_MSK7 0x80
3062 //==============================================================================
3065 //==============================================================================
3068 extern __at(0x0214) __sfr SSP1STAT
;
3074 unsigned R_NOT_W
: 1;
3077 unsigned D_NOT_A
: 1;
3082 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits
;
3086 #define _R_NOT_W 0x04
3089 #define _D_NOT_A 0x20
3093 //==============================================================================
3096 //==============================================================================
3099 extern __at(0x0214) __sfr SSPSTAT
;
3105 unsigned R_NOT_W
: 1;
3108 unsigned D_NOT_A
: 1;
3113 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits
;
3115 #define _SSPSTAT_BF 0x01
3116 #define _SSPSTAT_UA 0x02
3117 #define _SSPSTAT_R_NOT_W 0x04
3118 #define _SSPSTAT_S 0x08
3119 #define _SSPSTAT_P 0x10
3120 #define _SSPSTAT_D_NOT_A 0x20
3121 #define _SSPSTAT_CKE 0x40
3122 #define _SSPSTAT_SMP 0x80
3124 //==============================================================================
3127 //==============================================================================
3130 extern __at(0x0215) __sfr SSP1CON
;
3153 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits
;
3164 //==============================================================================
3167 //==============================================================================
3170 extern __at(0x0215) __sfr SSP1CON1
;
3193 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits
;
3195 #define _SSP1CON1_SSPM0 0x01
3196 #define _SSP1CON1_SSPM1 0x02
3197 #define _SSP1CON1_SSPM2 0x04
3198 #define _SSP1CON1_SSPM3 0x08
3199 #define _SSP1CON1_CKP 0x10
3200 #define _SSP1CON1_SSPEN 0x20
3201 #define _SSP1CON1_SSPOV 0x40
3202 #define _SSP1CON1_WCOL 0x80
3204 //==============================================================================
3207 //==============================================================================
3210 extern __at(0x0215) __sfr SSPCON
;
3233 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits
;
3235 #define _SSPCON_SSPM0 0x01
3236 #define _SSPCON_SSPM1 0x02
3237 #define _SSPCON_SSPM2 0x04
3238 #define _SSPCON_SSPM3 0x08
3239 #define _SSPCON_CKP 0x10
3240 #define _SSPCON_SSPEN 0x20
3241 #define _SSPCON_SSPOV 0x40
3242 #define _SSPCON_WCOL 0x80
3244 //==============================================================================
3247 //==============================================================================
3250 extern __at(0x0215) __sfr SSPCON1
;
3273 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits
;
3275 #define _SSPCON1_SSPM0 0x01
3276 #define _SSPCON1_SSPM1 0x02
3277 #define _SSPCON1_SSPM2 0x04
3278 #define _SSPCON1_SSPM3 0x08
3279 #define _SSPCON1_CKP 0x10
3280 #define _SSPCON1_SSPEN 0x20
3281 #define _SSPCON1_SSPOV 0x40
3282 #define _SSPCON1_WCOL 0x80
3284 //==============================================================================
3287 //==============================================================================
3290 extern __at(0x0216) __sfr SSP1CON2
;
3300 unsigned ACKSTAT
: 1;
3304 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits
;
3312 #define _ACKSTAT 0x40
3315 //==============================================================================
3318 //==============================================================================
3321 extern __at(0x0216) __sfr SSPCON2
;
3331 unsigned ACKSTAT
: 1;
3335 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits
;
3337 #define _SSPCON2_SEN 0x01
3338 #define _SSPCON2_RSEN 0x02
3339 #define _SSPCON2_PEN 0x04
3340 #define _SSPCON2_RCEN 0x08
3341 #define _SSPCON2_ACKEN 0x10
3342 #define _SSPCON2_ACKDT 0x20
3343 #define _SSPCON2_ACKSTAT 0x40
3344 #define _SSPCON2_GCEN 0x80
3346 //==============================================================================
3349 //==============================================================================
3352 extern __at(0x0217) __sfr SSP1CON3
;
3363 unsigned ACKTIM
: 1;
3366 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits
;
3375 #define _ACKTIM 0x80
3377 //==============================================================================
3380 //==============================================================================
3383 extern __at(0x0217) __sfr SSPCON3
;
3394 unsigned ACKTIM
: 1;
3397 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits
;
3399 #define _SSPCON3_DHEN 0x01
3400 #define _SSPCON3_AHEN 0x02
3401 #define _SSPCON3_SBCDE 0x04
3402 #define _SSPCON3_SDAHT 0x08
3403 #define _SSPCON3_BOEN 0x10
3404 #define _SSPCON3_SCIE 0x20
3405 #define _SSPCON3_PCIE 0x40
3406 #define _SSPCON3_ACKTIM 0x80
3408 //==============================================================================
3411 //==============================================================================
3414 extern __at(0x028C) __sfr ODCONA
;
3418 unsigned ODCONA0
: 1;
3419 unsigned ODCONA1
: 1;
3420 unsigned ODCONA2
: 1;
3421 unsigned ODCONA3
: 1;
3422 unsigned ODCONA4
: 1;
3423 unsigned ODCONA5
: 1;
3424 unsigned ODCONA6
: 1;
3425 unsigned ODCONA7
: 1;
3428 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
3430 #define _ODCONA0 0x01
3431 #define _ODCONA1 0x02
3432 #define _ODCONA2 0x04
3433 #define _ODCONA3 0x08
3434 #define _ODCONA4 0x10
3435 #define _ODCONA5 0x20
3436 #define _ODCONA6 0x40
3437 #define _ODCONA7 0x80
3439 //==============================================================================
3442 //==============================================================================
3445 extern __at(0x028D) __sfr ODCONB
;
3449 unsigned ODCONB0
: 1;
3450 unsigned ODCONB1
: 1;
3451 unsigned ODCONB2
: 1;
3452 unsigned ODCONB3
: 1;
3453 unsigned ODCONB4
: 1;
3454 unsigned ODCONB5
: 1;
3455 unsigned ODCONB6
: 1;
3456 unsigned ODCONB7
: 1;
3459 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits
;
3461 #define _ODCONB0 0x01
3462 #define _ODCONB1 0x02
3463 #define _ODCONB2 0x04
3464 #define _ODCONB3 0x08
3465 #define _ODCONB4 0x10
3466 #define _ODCONB5 0x20
3467 #define _ODCONB6 0x40
3468 #define _ODCONB7 0x80
3470 //==============================================================================
3473 //==============================================================================
3476 extern __at(0x028E) __sfr ODCONC
;
3480 unsigned ODCONC0
: 1;
3481 unsigned ODCONC1
: 1;
3482 unsigned ODCONC2
: 1;
3483 unsigned ODCONC3
: 1;
3484 unsigned ODCONC4
: 1;
3485 unsigned ODCONC5
: 1;
3486 unsigned ODCONC6
: 1;
3487 unsigned ODCONC7
: 1;
3490 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits
;
3492 #define _ODCONC0 0x01
3493 #define _ODCONC1 0x02
3494 #define _ODCONC2 0x04
3495 #define _ODCONC3 0x08
3496 #define _ODCONC4 0x10
3497 #define _ODCONC5 0x20
3498 #define _ODCONC6 0x40
3499 #define _ODCONC7 0x80
3501 //==============================================================================
3503 extern __at(0x0291) __sfr CCPR1
;
3504 extern __at(0x0291) __sfr CCPR1L
;
3505 extern __at(0x0292) __sfr CCPR1H
;
3507 //==============================================================================
3510 extern __at(0x0293) __sfr CCP1CON
;
3516 unsigned CCP1M0
: 1;
3517 unsigned CCP1M1
: 1;
3518 unsigned CCP1M2
: 1;
3519 unsigned CCP1M3
: 1;
3540 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits
;
3542 #define _CCP1M0 0x01
3543 #define _CCP1M1 0x02
3544 #define _CCP1M2 0x04
3545 #define _CCP1M3 0x08
3549 //==============================================================================
3551 extern __at(0x0298) __sfr CCPR2
;
3552 extern __at(0x0298) __sfr CCPR2L
;
3553 extern __at(0x0299) __sfr CCPR2H
;
3555 //==============================================================================
3558 extern __at(0x029A) __sfr CCP2CON
;
3564 unsigned CCP2M0
: 1;
3565 unsigned CCP2M1
: 1;
3566 unsigned CCP2M2
: 1;
3567 unsigned CCP2M3
: 1;
3588 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits
;
3590 #define _CCP2M0 0x01
3591 #define _CCP2M1 0x02
3592 #define _CCP2M2 0x04
3593 #define _CCP2M3 0x08
3597 //==============================================================================
3600 //==============================================================================
3603 extern __at(0x030C) __sfr SLRCONA
;
3607 unsigned SLRCONA0
: 1;
3608 unsigned SLRCONA1
: 1;
3609 unsigned SLRCONA2
: 1;
3610 unsigned SLRCONA3
: 1;
3611 unsigned SLRCONA4
: 1;
3612 unsigned SLRCONA5
: 1;
3613 unsigned SLRCONA6
: 1;
3614 unsigned SLRCONA7
: 1;
3617 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
3619 #define _SLRCONA0 0x01
3620 #define _SLRCONA1 0x02
3621 #define _SLRCONA2 0x04
3622 #define _SLRCONA3 0x08
3623 #define _SLRCONA4 0x10
3624 #define _SLRCONA5 0x20
3625 #define _SLRCONA6 0x40
3626 #define _SLRCONA7 0x80
3628 //==============================================================================
3631 //==============================================================================
3634 extern __at(0x030D) __sfr SLRCONB
;
3638 unsigned SLRCONB0
: 1;
3639 unsigned SLRCONB1
: 1;
3640 unsigned SLRCONB2
: 1;
3641 unsigned SLRCONB3
: 1;
3642 unsigned SLRCONB4
: 1;
3643 unsigned SLRCONB5
: 1;
3644 unsigned SLRCONB6
: 1;
3645 unsigned SLRCONB7
: 1;
3648 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits
;
3650 #define _SLRCONB0 0x01
3651 #define _SLRCONB1 0x02
3652 #define _SLRCONB2 0x04
3653 #define _SLRCONB3 0x08
3654 #define _SLRCONB4 0x10
3655 #define _SLRCONB5 0x20
3656 #define _SLRCONB6 0x40
3657 #define _SLRCONB7 0x80
3659 //==============================================================================
3662 //==============================================================================
3665 extern __at(0x030E) __sfr SLRCONC
;
3669 unsigned SLRCONC0
: 1;
3670 unsigned SLRCONC1
: 1;
3671 unsigned SLRCONC2
: 1;
3672 unsigned SLRCONC3
: 1;
3673 unsigned SLRCONC4
: 1;
3674 unsigned SLRCONC5
: 1;
3675 unsigned SLRCONC6
: 1;
3676 unsigned SLRCONC7
: 1;
3679 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits
;
3681 #define _SLRCONC0 0x01
3682 #define _SLRCONC1 0x02
3683 #define _SLRCONC2 0x04
3684 #define _SLRCONC3 0x08
3685 #define _SLRCONC4 0x10
3686 #define _SLRCONC5 0x20
3687 #define _SLRCONC6 0x40
3688 #define _SLRCONC7 0x80
3690 //==============================================================================
3692 extern __at(0x0311) __sfr CCPR3
;
3693 extern __at(0x0311) __sfr CCPR3L
;
3694 extern __at(0x0312) __sfr CCPR3H
;
3696 //==============================================================================
3699 extern __at(0x0313) __sfr CCP3CON
;
3705 unsigned CCP3M0
: 1;
3706 unsigned CCP3M1
: 1;
3707 unsigned CCP3M2
: 1;
3708 unsigned CCP3M3
: 1;
3729 extern __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits
;
3731 #define _CCP3M0 0x01
3732 #define _CCP3M1 0x02
3733 #define _CCP3M2 0x04
3734 #define _CCP3M3 0x08
3738 //==============================================================================
3741 //==============================================================================
3744 extern __at(0x038C) __sfr INLVLA
;
3748 unsigned INLVLA0
: 1;
3749 unsigned INLVLA1
: 1;
3750 unsigned INLVLA2
: 1;
3751 unsigned INLVLA3
: 1;
3752 unsigned INLVLA4
: 1;
3753 unsigned INLVLA5
: 1;
3754 unsigned INLVLA6
: 1;
3755 unsigned INLVLA7
: 1;
3758 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
3760 #define _INLVLA0 0x01
3761 #define _INLVLA1 0x02
3762 #define _INLVLA2 0x04
3763 #define _INLVLA3 0x08
3764 #define _INLVLA4 0x10
3765 #define _INLVLA5 0x20
3766 #define _INLVLA6 0x40
3767 #define _INLVLA7 0x80
3769 //==============================================================================
3772 //==============================================================================
3775 extern __at(0x038D) __sfr INLVLB
;
3779 unsigned INLVLB0
: 1;
3780 unsigned INLVLB1
: 1;
3781 unsigned INLVLB2
: 1;
3782 unsigned INLVLB3
: 1;
3783 unsigned INLVLB4
: 1;
3784 unsigned INLVLB5
: 1;
3785 unsigned INLVLB6
: 1;
3786 unsigned INLVLB7
: 1;
3789 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits
;
3791 #define _INLVLB0 0x01
3792 #define _INLVLB1 0x02
3793 #define _INLVLB2 0x04
3794 #define _INLVLB3 0x08
3795 #define _INLVLB4 0x10
3796 #define _INLVLB5 0x20
3797 #define _INLVLB6 0x40
3798 #define _INLVLB7 0x80
3800 //==============================================================================
3803 //==============================================================================
3806 extern __at(0x038E) __sfr INLVLC
;
3810 unsigned INLVLC0
: 1;
3811 unsigned INLVLC1
: 1;
3812 unsigned INLVLC2
: 1;
3813 unsigned INLVLC3
: 1;
3814 unsigned INLVLC4
: 1;
3815 unsigned INLVLC5
: 1;
3816 unsigned INLVLC6
: 1;
3817 unsigned INLVLC7
: 1;
3820 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits
;
3822 #define _INLVLC0 0x01
3823 #define _INLVLC1 0x02
3824 #define _INLVLC2 0x04
3825 #define _INLVLC3 0x08
3826 #define _INLVLC4 0x10
3827 #define _INLVLC5 0x20
3828 #define _INLVLC6 0x40
3829 #define _INLVLC7 0x80
3831 //==============================================================================
3834 //==============================================================================
3837 extern __at(0x0390) __sfr INLVLE
;
3844 unsigned INLVLE3
: 1;
3851 extern __at(0x0390) volatile __INLVLEbits_t INLVLEbits
;
3853 #define _INLVLE3 0x08
3855 //==============================================================================
3858 //==============================================================================
3861 extern __at(0x0391) __sfr IOCAP
;
3865 unsigned IOCAP0
: 1;
3866 unsigned IOCAP1
: 1;
3867 unsigned IOCAP2
: 1;
3868 unsigned IOCAP3
: 1;
3869 unsigned IOCAP4
: 1;
3870 unsigned IOCAP5
: 1;
3871 unsigned IOCAP6
: 1;
3872 unsigned IOCAP7
: 1;
3875 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
3877 #define _IOCAP0 0x01
3878 #define _IOCAP1 0x02
3879 #define _IOCAP2 0x04
3880 #define _IOCAP3 0x08
3881 #define _IOCAP4 0x10
3882 #define _IOCAP5 0x20
3883 #define _IOCAP6 0x40
3884 #define _IOCAP7 0x80
3886 //==============================================================================
3889 //==============================================================================
3892 extern __at(0x0392) __sfr IOCAN
;
3896 unsigned IOCAN0
: 1;
3897 unsigned IOCAN1
: 1;
3898 unsigned IOCAN2
: 1;
3899 unsigned IOCAN3
: 1;
3900 unsigned IOCAN4
: 1;
3901 unsigned IOCAN5
: 1;
3902 unsigned IOCAN6
: 1;
3903 unsigned IOCAN7
: 1;
3906 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
3908 #define _IOCAN0 0x01
3909 #define _IOCAN1 0x02
3910 #define _IOCAN2 0x04
3911 #define _IOCAN3 0x08
3912 #define _IOCAN4 0x10
3913 #define _IOCAN5 0x20
3914 #define _IOCAN6 0x40
3915 #define _IOCAN7 0x80
3917 //==============================================================================
3920 //==============================================================================
3923 extern __at(0x0393) __sfr IOCAF
;
3927 unsigned IOCAF0
: 1;
3928 unsigned IOCAF1
: 1;
3929 unsigned IOCAF2
: 1;
3930 unsigned IOCAF3
: 1;
3931 unsigned IOCAF4
: 1;
3932 unsigned IOCAF5
: 1;
3933 unsigned IOCAF6
: 1;
3934 unsigned IOCAF7
: 1;
3937 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
3939 #define _IOCAF0 0x01
3940 #define _IOCAF1 0x02
3941 #define _IOCAF2 0x04
3942 #define _IOCAF3 0x08
3943 #define _IOCAF4 0x10
3944 #define _IOCAF5 0x20
3945 #define _IOCAF6 0x40
3946 #define _IOCAF7 0x80
3948 //==============================================================================
3951 //==============================================================================
3954 extern __at(0x0394) __sfr IOCBP
;
3958 unsigned IOCBP0
: 1;
3959 unsigned IOCBP1
: 1;
3960 unsigned IOCBP2
: 1;
3961 unsigned IOCBP3
: 1;
3962 unsigned IOCBP4
: 1;
3963 unsigned IOCBP5
: 1;
3964 unsigned IOCBP6
: 1;
3965 unsigned IOCBP7
: 1;
3968 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits
;
3970 #define _IOCBP0 0x01
3971 #define _IOCBP1 0x02
3972 #define _IOCBP2 0x04
3973 #define _IOCBP3 0x08
3974 #define _IOCBP4 0x10
3975 #define _IOCBP5 0x20
3976 #define _IOCBP6 0x40
3977 #define _IOCBP7 0x80
3979 //==============================================================================
3982 //==============================================================================
3985 extern __at(0x0395) __sfr IOCBN
;
3989 unsigned IOCBN0
: 1;
3990 unsigned IOCBN1
: 1;
3991 unsigned IOCBN2
: 1;
3992 unsigned IOCBN3
: 1;
3993 unsigned IOCBN4
: 1;
3994 unsigned IOCBN5
: 1;
3995 unsigned IOCBN6
: 1;
3996 unsigned IOCBN7
: 1;
3999 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits
;
4001 #define _IOCBN0 0x01
4002 #define _IOCBN1 0x02
4003 #define _IOCBN2 0x04
4004 #define _IOCBN3 0x08
4005 #define _IOCBN4 0x10
4006 #define _IOCBN5 0x20
4007 #define _IOCBN6 0x40
4008 #define _IOCBN7 0x80
4010 //==============================================================================
4013 //==============================================================================
4016 extern __at(0x0396) __sfr IOCBF
;
4020 unsigned IOCBF0
: 1;
4021 unsigned IOCBF1
: 1;
4022 unsigned IOCBF2
: 1;
4023 unsigned IOCBF3
: 1;
4024 unsigned IOCBF4
: 1;
4025 unsigned IOCBF5
: 1;
4026 unsigned IOCBF6
: 1;
4027 unsigned IOCBF7
: 1;
4030 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits
;
4032 #define _IOCBF0 0x01
4033 #define _IOCBF1 0x02
4034 #define _IOCBF2 0x04
4035 #define _IOCBF3 0x08
4036 #define _IOCBF4 0x10
4037 #define _IOCBF5 0x20
4038 #define _IOCBF6 0x40
4039 #define _IOCBF7 0x80
4041 //==============================================================================
4044 //==============================================================================
4047 extern __at(0x0397) __sfr IOCCP
;
4051 unsigned IOCCP0
: 1;
4052 unsigned IOCCP1
: 1;
4053 unsigned IOCCP2
: 1;
4054 unsigned IOCCP3
: 1;
4055 unsigned IOCCP4
: 1;
4056 unsigned IOCCP5
: 1;
4057 unsigned IOCCP6
: 1;
4058 unsigned IOCCP7
: 1;
4061 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits
;
4063 #define _IOCCP0 0x01
4064 #define _IOCCP1 0x02
4065 #define _IOCCP2 0x04
4066 #define _IOCCP3 0x08
4067 #define _IOCCP4 0x10
4068 #define _IOCCP5 0x20
4069 #define _IOCCP6 0x40
4070 #define _IOCCP7 0x80
4072 //==============================================================================
4075 //==============================================================================
4078 extern __at(0x0398) __sfr IOCCN
;
4082 unsigned IOCCN0
: 1;
4083 unsigned IOCCN1
: 1;
4084 unsigned IOCCN2
: 1;
4085 unsigned IOCCN3
: 1;
4086 unsigned IOCCN4
: 1;
4087 unsigned IOCCN5
: 1;
4088 unsigned IOCCN6
: 1;
4089 unsigned IOCCN7
: 1;
4092 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits
;
4094 #define _IOCCN0 0x01
4095 #define _IOCCN1 0x02
4096 #define _IOCCN2 0x04
4097 #define _IOCCN3 0x08
4098 #define _IOCCN4 0x10
4099 #define _IOCCN5 0x20
4100 #define _IOCCN6 0x40
4101 #define _IOCCN7 0x80
4103 //==============================================================================
4106 //==============================================================================
4109 extern __at(0x0399) __sfr IOCCF
;
4113 unsigned IOCCF0
: 1;
4114 unsigned IOCCF1
: 1;
4115 unsigned IOCCF2
: 1;
4116 unsigned IOCCF3
: 1;
4117 unsigned IOCCF4
: 1;
4118 unsigned IOCCF5
: 1;
4119 unsigned IOCCF6
: 1;
4120 unsigned IOCCF7
: 1;
4123 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits
;
4125 #define _IOCCF0 0x01
4126 #define _IOCCF1 0x02
4127 #define _IOCCF2 0x04
4128 #define _IOCCF3 0x08
4129 #define _IOCCF4 0x10
4130 #define _IOCCF5 0x20
4131 #define _IOCCF6 0x40
4132 #define _IOCCF7 0x80
4134 //==============================================================================
4137 //==============================================================================
4140 extern __at(0x039D) __sfr IOCEP
;
4147 unsigned IOCEP3
: 1;
4154 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits
;
4156 #define _IOCEP3 0x08
4158 //==============================================================================
4161 //==============================================================================
4164 extern __at(0x039E) __sfr IOCEN
;
4171 unsigned IOCEN3
: 1;
4178 extern __at(0x039E) volatile __IOCENbits_t IOCENbits
;
4180 #define _IOCEN3 0x08
4182 //==============================================================================
4185 //==============================================================================
4188 extern __at(0x039F) __sfr IOCEF
;
4195 unsigned IOCEF3
: 1;
4202 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits
;
4204 #define _IOCEF3 0x08
4206 //==============================================================================
4209 //==============================================================================
4212 extern __at(0x0511) __sfr OPA1CON
;
4218 unsigned OPA1PCH0
: 1;
4219 unsigned OPA1PCH1
: 1;
4224 unsigned OPA1SP
: 1;
4225 unsigned OPA1EN
: 1;
4242 unsigned OPA1PCH
: 2;
4253 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits
;
4255 #define _OPA1PCH0 0x01
4257 #define _OPA1PCH1 0x02
4259 #define _OPA1SP 0x40
4261 #define _OPA1EN 0x80
4264 //==============================================================================
4267 //==============================================================================
4270 extern __at(0x0513) __sfr OPA2CON
;
4276 unsigned OPA2PCH0
: 1;
4277 unsigned OPA2PCH1
: 1;
4282 unsigned OPA2SP
: 1;
4283 unsigned OPA2EN
: 1;
4306 unsigned OPA2PCH
: 2;
4311 extern __at(0x0513) volatile __OPA2CONbits_t OPA2CONbits
;
4313 #define _OPA2CON_OPA2PCH0 0x01
4314 #define _OPA2CON_PCH0 0x01
4315 #define _OPA2CON_OPA2PCH1 0x02
4316 #define _OPA2CON_PCH1 0x02
4317 #define _OPA2CON_OPA2SP 0x40
4318 #define _OPA2CON_SP 0x40
4319 #define _OPA2CON_OPA2EN 0x80
4320 #define _OPA2CON_EN 0x80
4322 //==============================================================================
4325 //==============================================================================
4328 extern __at(0x051A) __sfr CLKRCON
;
4334 unsigned CLKRDIV0
: 1;
4335 unsigned CLKRDIV1
: 1;
4336 unsigned CLKRDIV2
: 1;
4337 unsigned CLKRDC0
: 1;
4338 unsigned CLKRDC1
: 1;
4339 unsigned CLKRSLR
: 1;
4340 unsigned CLKROE
: 1;
4341 unsigned CLKREN
: 1;
4346 unsigned CLKRDIV
: 3;
4353 unsigned CLKRDC
: 2;
4358 extern __at(0x051A) volatile __CLKRCONbits_t CLKRCONbits
;
4360 #define _CLKRDIV0 0x01
4361 #define _CLKRDIV1 0x02
4362 #define _CLKRDIV2 0x04
4363 #define _CLKRDC0 0x08
4364 #define _CLKRDC1 0x10
4365 #define _CLKRSLR 0x20
4366 #define _CLKROE 0x40
4367 #define _CLKREN 0x80
4369 //==============================================================================
4372 //==============================================================================
4375 extern __at(0x0811) __sfr PSMC1CON
;
4381 unsigned P1MODE0
: 1;
4382 unsigned P1MODE1
: 1;
4383 unsigned P1MODE2
: 1;
4384 unsigned P1MODE3
: 1;
4385 unsigned P1DBRE
: 1;
4386 unsigned P1DBFE
: 1;
4387 unsigned PSMC1LD
: 1;
4388 unsigned PSMC1EN
: 1;
4393 unsigned P1MODE
: 4;
4398 extern __at(0x0811) volatile __PSMC1CONbits_t PSMC1CONbits
;
4400 #define _P1MODE0 0x01
4401 #define _P1MODE1 0x02
4402 #define _P1MODE2 0x04
4403 #define _P1MODE3 0x08
4404 #define _P1DBRE 0x10
4405 #define _P1DBFE 0x20
4406 #define _PSMC1LD 0x40
4407 #define _PSMC1EN 0x80
4409 //==============================================================================
4412 //==============================================================================
4415 extern __at(0x0812) __sfr PSMC1MDL
;
4421 unsigned P1MSRC0
: 1;
4422 unsigned P1MSRC1
: 1;
4423 unsigned P1MSRC2
: 1;
4424 unsigned P1MSRC3
: 1;
4426 unsigned P1MDLBIT
: 1;
4427 unsigned P1MDLPOL
: 1;
4428 unsigned P1MDLEN
: 1;
4433 unsigned P1MSRC
: 4;
4438 extern __at(0x0812) volatile __PSMC1MDLbits_t PSMC1MDLbits
;
4440 #define _P1MSRC0 0x01
4441 #define _P1MSRC1 0x02
4442 #define _P1MSRC2 0x04
4443 #define _P1MSRC3 0x08
4444 #define _P1MDLBIT 0x20
4445 #define _P1MDLPOL 0x40
4446 #define _P1MDLEN 0x80
4448 //==============================================================================
4451 //==============================================================================
4454 extern __at(0x0813) __sfr PSMC1SYNC
;
4460 unsigned P1SYNC0
: 1;
4461 unsigned P1SYNC1
: 1;
4462 unsigned P1SYNC2
: 1;
4465 unsigned P1DCPOL
: 1;
4466 unsigned P1PRPOL
: 1;
4467 unsigned P1POFST
: 1;
4472 unsigned P1SYNC
: 3;
4475 } __PSMC1SYNCbits_t
;
4477 extern __at(0x0813) volatile __PSMC1SYNCbits_t PSMC1SYNCbits
;
4479 #define _P1SYNC0 0x01
4480 #define _P1SYNC1 0x02
4481 #define _P1SYNC2 0x04
4482 #define _P1DCPOL 0x20
4483 #define _P1PRPOL 0x40
4484 #define _P1POFST 0x80
4486 //==============================================================================
4489 //==============================================================================
4492 extern __at(0x0814) __sfr PSMC1CLK
;
4498 unsigned P1CSRC0
: 1;
4499 unsigned P1CSRC1
: 1;
4502 unsigned P1CPRE0
: 1;
4503 unsigned P1CPRE1
: 1;
4510 unsigned P1CSRC
: 2;
4517 unsigned P1CPRE
: 2;
4522 extern __at(0x0814) volatile __PSMC1CLKbits_t PSMC1CLKbits
;
4524 #define _P1CSRC0 0x01
4525 #define _P1CSRC1 0x02
4526 #define _P1CPRE0 0x10
4527 #define _P1CPRE1 0x20
4529 //==============================================================================
4532 //==============================================================================
4535 extern __at(0x0815) __sfr PSMC1OEN
;
4549 extern __at(0x0815) volatile __PSMC1OENbits_t PSMC1OENbits
;
4558 //==============================================================================
4561 //==============================================================================
4564 extern __at(0x0816) __sfr PSMC1POL
;
4568 unsigned P1POLA
: 1;
4569 unsigned P1POLB
: 1;
4570 unsigned P1POLC
: 1;
4571 unsigned P1POLD
: 1;
4572 unsigned P1POLE
: 1;
4573 unsigned P1POLF
: 1;
4574 unsigned P1INPOL
: 1;
4578 extern __at(0x0816) volatile __PSMC1POLbits_t PSMC1POLbits
;
4580 #define _P1POLA 0x01
4581 #define _P1POLB 0x02
4582 #define _P1POLC 0x04
4583 #define _P1POLD 0x08
4584 #define _P1POLE 0x10
4585 #define _P1POLF 0x20
4586 #define _P1INPOL 0x40
4588 //==============================================================================
4591 //==============================================================================
4594 extern __at(0x0817) __sfr PSMC1BLNK
;
4600 unsigned P1REBM0
: 1;
4601 unsigned P1REBM1
: 1;
4604 unsigned P1FEBM0
: 1;
4605 unsigned P1FEBM1
: 1;
4612 unsigned P1REBM
: 2;
4619 unsigned P1FEBM
: 2;
4622 } __PSMC1BLNKbits_t
;
4624 extern __at(0x0817) volatile __PSMC1BLNKbits_t PSMC1BLNKbits
;
4626 #define _P1REBM0 0x01
4627 #define _P1REBM1 0x02
4628 #define _P1FEBM0 0x10
4629 #define _P1FEBM1 0x20
4631 //==============================================================================
4634 //==============================================================================
4637 extern __at(0x0818) __sfr PSMC1REBS
;
4642 unsigned P1REBSC1
: 1;
4643 unsigned P1REBSC2
: 1;
4644 unsigned P1REBSC3
: 1;
4645 unsigned P1REBSC4
: 1;
4648 unsigned P1REBSIN
: 1;
4649 } __PSMC1REBSbits_t
;
4651 extern __at(0x0818) volatile __PSMC1REBSbits_t PSMC1REBSbits
;
4653 #define _P1REBSC1 0x02
4654 #define _P1REBSC2 0x04
4655 #define _P1REBSC3 0x08
4656 #define _P1REBSC4 0x10
4657 #define _P1REBSIN 0x80
4659 //==============================================================================
4662 //==============================================================================
4665 extern __at(0x0819) __sfr PSMC1FEBS
;
4670 unsigned P1FEBSC1
: 1;
4671 unsigned P1FEBSC2
: 1;
4672 unsigned P1FEBSC3
: 1;
4673 unsigned P1FEBSC4
: 1;
4676 unsigned P1FEBSIN
: 1;
4677 } __PSMC1FEBSbits_t
;
4679 extern __at(0x0819) volatile __PSMC1FEBSbits_t PSMC1FEBSbits
;
4681 #define _P1FEBSC1 0x02
4682 #define _P1FEBSC2 0x04
4683 #define _P1FEBSC3 0x08
4684 #define _P1FEBSC4 0x10
4685 #define _P1FEBSIN 0x80
4687 //==============================================================================
4690 //==============================================================================
4693 extern __at(0x081A) __sfr PSMC1PHS
;
4697 unsigned P1PHST
: 1;
4698 unsigned P1PHSC1
: 1;
4699 unsigned P1PHSC2
: 1;
4700 unsigned P1PHSC3
: 1;
4701 unsigned P1PHSC4
: 1;
4704 unsigned P1PHSIN
: 1;
4707 extern __at(0x081A) volatile __PSMC1PHSbits_t PSMC1PHSbits
;
4709 #define _P1PHST 0x01
4710 #define _P1PHSC1 0x02
4711 #define _P1PHSC2 0x04
4712 #define _P1PHSC3 0x08
4713 #define _P1PHSC4 0x10
4714 #define _P1PHSIN 0x80
4716 //==============================================================================
4719 //==============================================================================
4722 extern __at(0x081B) __sfr PSMC1DCS
;
4726 unsigned P1DCST
: 1;
4727 unsigned P1DCSC1
: 1;
4728 unsigned P1DCSC2
: 1;
4729 unsigned P1DCSC3
: 1;
4730 unsigned P1DCSC4
: 1;
4733 unsigned P1DCSIN
: 1;
4736 extern __at(0x081B) volatile __PSMC1DCSbits_t PSMC1DCSbits
;
4738 #define _P1DCST 0x01
4739 #define _P1DCSC1 0x02
4740 #define _P1DCSC2 0x04
4741 #define _P1DCSC3 0x08
4742 #define _P1DCSC4 0x10
4743 #define _P1DCSIN 0x80
4745 //==============================================================================
4748 //==============================================================================
4751 extern __at(0x081C) __sfr PSMC1PRS
;
4755 unsigned P1PRST
: 1;
4756 unsigned P1PRSC1
: 1;
4757 unsigned P1PRSC2
: 1;
4758 unsigned P1PRSC3
: 1;
4759 unsigned P1PRSC4
: 1;
4762 unsigned P1PRSIN
: 1;
4765 extern __at(0x081C) volatile __PSMC1PRSbits_t PSMC1PRSbits
;
4767 #define _P1PRST 0x01
4768 #define _P1PRSC1 0x02
4769 #define _P1PRSC2 0x04
4770 #define _P1PRSC3 0x08
4771 #define _P1PRSC4 0x10
4772 #define _P1PRSIN 0x80
4774 //==============================================================================
4777 //==============================================================================
4780 extern __at(0x081D) __sfr PSMC1ASDC
;
4784 unsigned P1ASDOV
: 1;
4789 unsigned P1ARSEN
: 1;
4790 unsigned P1ASDEN
: 1;
4792 } __PSMC1ASDCbits_t
;
4794 extern __at(0x081D) volatile __PSMC1ASDCbits_t PSMC1ASDCbits
;
4796 #define _P1ASDOV 0x01
4797 #define _P1ARSEN 0x20
4798 #define _P1ASDEN 0x40
4801 //==============================================================================
4804 //==============================================================================
4807 extern __at(0x081E) __sfr PSMC1ASDL
;
4811 unsigned P1ASDLA
: 1;
4812 unsigned P1ASDLB
: 1;
4813 unsigned P1ASDLC
: 1;
4814 unsigned P1ASDLD
: 1;
4815 unsigned P1ASDLE
: 1;
4816 unsigned P1ASDLF
: 1;
4819 } __PSMC1ASDLbits_t
;
4821 extern __at(0x081E) volatile __PSMC1ASDLbits_t PSMC1ASDLbits
;
4823 #define _P1ASDLA 0x01
4824 #define _P1ASDLB 0x02
4825 #define _P1ASDLC 0x04
4826 #define _P1ASDLD 0x08
4827 #define _P1ASDLE 0x10
4828 #define _P1ASDLF 0x20
4830 //==============================================================================
4833 //==============================================================================
4836 extern __at(0x081F) __sfr PSMC1ASDS
;
4841 unsigned P1ASDSC1
: 1;
4842 unsigned P1ASDSC2
: 1;
4843 unsigned P1ASDSC3
: 1;
4844 unsigned P1ASDSC4
: 1;
4847 unsigned P1ASDSIN
: 1;
4848 } __PSMC1ASDSbits_t
;
4850 extern __at(0x081F) volatile __PSMC1ASDSbits_t PSMC1ASDSbits
;
4852 #define _P1ASDSC1 0x02
4853 #define _P1ASDSC2 0x04
4854 #define _P1ASDSC3 0x08
4855 #define _P1ASDSC4 0x10
4856 #define _P1ASDSIN 0x80
4858 //==============================================================================
4861 //==============================================================================
4864 extern __at(0x0820) __sfr PSMC1INT
;
4868 unsigned P1TPRIF
: 1;
4869 unsigned P1TDCIF
: 1;
4870 unsigned P1TPHIF
: 1;
4871 unsigned P1TOVIF
: 1;
4872 unsigned P1TPRIE
: 1;
4873 unsigned P1TDCIE
: 1;
4874 unsigned P1TPHIE
: 1;
4875 unsigned P1TOVIE
: 1;
4878 extern __at(0x0820) volatile __PSMC1INTbits_t PSMC1INTbits
;
4880 #define _P1TPRIF 0x01
4881 #define _P1TDCIF 0x02
4882 #define _P1TPHIF 0x04
4883 #define _P1TOVIF 0x08
4884 #define _P1TPRIE 0x10
4885 #define _P1TDCIE 0x20
4886 #define _P1TPHIE 0x40
4887 #define _P1TOVIE 0x80
4889 //==============================================================================
4891 extern __at(0x0821) __sfr PSMC1PH
;
4893 //==============================================================================
4896 extern __at(0x0821) __sfr PSMC1PHL
;
4900 unsigned PSMC1PH0
: 1;
4901 unsigned PSMC1PH1
: 1;
4902 unsigned PSMC1PH2
: 1;
4903 unsigned PSMC1PH3
: 1;
4904 unsigned PSMC1PH4
: 1;
4905 unsigned PSMC1PH5
: 1;
4906 unsigned PSMC1PH6
: 1;
4907 unsigned PSMC1PH7
: 1;
4910 extern __at(0x0821) volatile __PSMC1PHLbits_t PSMC1PHLbits
;
4912 #define _PSMC1PH0 0x01
4913 #define _PSMC1PH1 0x02
4914 #define _PSMC1PH2 0x04
4915 #define _PSMC1PH3 0x08
4916 #define _PSMC1PH4 0x10
4917 #define _PSMC1PH5 0x20
4918 #define _PSMC1PH6 0x40
4919 #define _PSMC1PH7 0x80
4921 //==============================================================================
4924 //==============================================================================
4927 extern __at(0x0822) __sfr PSMC1PHH
;
4931 unsigned PSMC1PH8
: 1;
4932 unsigned PSMC1PH9
: 1;
4933 unsigned PSMC1PH10
: 1;
4934 unsigned PSMC1PH11
: 1;
4935 unsigned PSMC1PH12
: 1;
4936 unsigned PSMC1PH13
: 1;
4937 unsigned PSMC1PH14
: 1;
4938 unsigned PSMC1PH15
: 1;
4941 extern __at(0x0822) volatile __PSMC1PHHbits_t PSMC1PHHbits
;
4943 #define _PSMC1PH8 0x01
4944 #define _PSMC1PH9 0x02
4945 #define _PSMC1PH10 0x04
4946 #define _PSMC1PH11 0x08
4947 #define _PSMC1PH12 0x10
4948 #define _PSMC1PH13 0x20
4949 #define _PSMC1PH14 0x40
4950 #define _PSMC1PH15 0x80
4952 //==============================================================================
4954 extern __at(0x0823) __sfr PSMC1DC
;
4956 //==============================================================================
4959 extern __at(0x0823) __sfr PSMC1DCL
;
4963 unsigned PSMC1DC0
: 1;
4964 unsigned PSMC1DC1
: 1;
4965 unsigned PSMC1DC2
: 1;
4966 unsigned PSMC1DC3
: 1;
4967 unsigned PSMC1DC4
: 1;
4968 unsigned PSMC1DC5
: 1;
4969 unsigned PSMC1DC6
: 1;
4970 unsigned PSMC1DC7
: 1;
4973 extern __at(0x0823) volatile __PSMC1DCLbits_t PSMC1DCLbits
;
4975 #define _PSMC1DC0 0x01
4976 #define _PSMC1DC1 0x02
4977 #define _PSMC1DC2 0x04
4978 #define _PSMC1DC3 0x08
4979 #define _PSMC1DC4 0x10
4980 #define _PSMC1DC5 0x20
4981 #define _PSMC1DC6 0x40
4982 #define _PSMC1DC7 0x80
4984 //==============================================================================
4987 //==============================================================================
4990 extern __at(0x0824) __sfr PSMC1DCH
;
4994 unsigned PSMC1DC8
: 1;
4995 unsigned PSMC1DC9
: 1;
4996 unsigned PSMC1DC10
: 1;
4997 unsigned PSMC1DC11
: 1;
4998 unsigned PSMC1DC12
: 1;
4999 unsigned PSMC1DC13
: 1;
5000 unsigned PSMC1DC14
: 1;
5001 unsigned PSMC1DC15
: 1;
5004 extern __at(0x0824) volatile __PSMC1DCHbits_t PSMC1DCHbits
;
5006 #define _PSMC1DC8 0x01
5007 #define _PSMC1DC9 0x02
5008 #define _PSMC1DC10 0x04
5009 #define _PSMC1DC11 0x08
5010 #define _PSMC1DC12 0x10
5011 #define _PSMC1DC13 0x20
5012 #define _PSMC1DC14 0x40
5013 #define _PSMC1DC15 0x80
5015 //==============================================================================
5017 extern __at(0x0825) __sfr PSMC1PR
;
5019 //==============================================================================
5022 extern __at(0x0825) __sfr PSMC1PRL
;
5026 unsigned PSMC1PR0
: 1;
5027 unsigned PSMC1PR1
: 1;
5028 unsigned PSMC1PR2
: 1;
5029 unsigned PSMC1PR3
: 1;
5030 unsigned PSMC1PR4
: 1;
5031 unsigned PSMC1PR5
: 1;
5032 unsigned PSMC1PR6
: 1;
5033 unsigned PSMC1PR7
: 1;
5036 extern __at(0x0825) volatile __PSMC1PRLbits_t PSMC1PRLbits
;
5038 #define _PSMC1PR0 0x01
5039 #define _PSMC1PR1 0x02
5040 #define _PSMC1PR2 0x04
5041 #define _PSMC1PR3 0x08
5042 #define _PSMC1PR4 0x10
5043 #define _PSMC1PR5 0x20
5044 #define _PSMC1PR6 0x40
5045 #define _PSMC1PR7 0x80
5047 //==============================================================================
5050 //==============================================================================
5053 extern __at(0x0826) __sfr PSMC1PRH
;
5057 unsigned PSMC1PR8
: 1;
5058 unsigned PSMC1PR9
: 1;
5059 unsigned PSMC1PR10
: 1;
5060 unsigned PSMC1PR11
: 1;
5061 unsigned PSMC1PR12
: 1;
5062 unsigned PSMC1PR13
: 1;
5063 unsigned PSMC1PR14
: 1;
5064 unsigned PSMC1PR15
: 1;
5067 extern __at(0x0826) volatile __PSMC1PRHbits_t PSMC1PRHbits
;
5069 #define _PSMC1PR8 0x01
5070 #define _PSMC1PR9 0x02
5071 #define _PSMC1PR10 0x04
5072 #define _PSMC1PR11 0x08
5073 #define _PSMC1PR12 0x10
5074 #define _PSMC1PR13 0x20
5075 #define _PSMC1PR14 0x40
5076 #define _PSMC1PR15 0x80
5078 //==============================================================================
5080 extern __at(0x0827) __sfr PSMC1TMR
;
5082 //==============================================================================
5085 extern __at(0x0827) __sfr PSMC1TMRL
;
5089 unsigned PSMC1TMR0
: 1;
5090 unsigned PSMC1TMR1
: 1;
5091 unsigned PSMC1TMR2
: 1;
5092 unsigned PSMC1TMR3
: 1;
5093 unsigned PSMC1TMR4
: 1;
5094 unsigned PSMC1TMR5
: 1;
5095 unsigned PSMC1TMR6
: 1;
5096 unsigned PSMC1TMR7
: 1;
5097 } __PSMC1TMRLbits_t
;
5099 extern __at(0x0827) volatile __PSMC1TMRLbits_t PSMC1TMRLbits
;
5101 #define _PSMC1TMR0 0x01
5102 #define _PSMC1TMR1 0x02
5103 #define _PSMC1TMR2 0x04
5104 #define _PSMC1TMR3 0x08
5105 #define _PSMC1TMR4 0x10
5106 #define _PSMC1TMR5 0x20
5107 #define _PSMC1TMR6 0x40
5108 #define _PSMC1TMR7 0x80
5110 //==============================================================================
5113 //==============================================================================
5116 extern __at(0x0828) __sfr PSMC1TMRH
;
5120 unsigned PSMC1TMR8
: 1;
5121 unsigned PSMC1TMR9
: 1;
5122 unsigned PSMC1TMR10
: 1;
5123 unsigned PSMC1TMR11
: 1;
5124 unsigned PSMC1TMR12
: 1;
5125 unsigned PSMC1TMR13
: 1;
5126 unsigned PSMC1TMR14
: 1;
5127 unsigned PSMC1TMR15
: 1;
5128 } __PSMC1TMRHbits_t
;
5130 extern __at(0x0828) volatile __PSMC1TMRHbits_t PSMC1TMRHbits
;
5132 #define _PSMC1TMR8 0x01
5133 #define _PSMC1TMR9 0x02
5134 #define _PSMC1TMR10 0x04
5135 #define _PSMC1TMR11 0x08
5136 #define _PSMC1TMR12 0x10
5137 #define _PSMC1TMR13 0x20
5138 #define _PSMC1TMR14 0x40
5139 #define _PSMC1TMR15 0x80
5141 //==============================================================================
5144 //==============================================================================
5147 extern __at(0x0829) __sfr PSMC1DBR
;
5151 unsigned PSMC1DBR0
: 1;
5152 unsigned PSMC1DBR1
: 1;
5153 unsigned PSMC1DBR2
: 1;
5154 unsigned PSMC1DBR3
: 1;
5155 unsigned PSMC1DBR4
: 1;
5156 unsigned PSMC1DBR5
: 1;
5157 unsigned PSMC1DBR6
: 1;
5158 unsigned PSMC1DBR7
: 1;
5161 extern __at(0x0829) volatile __PSMC1DBRbits_t PSMC1DBRbits
;
5163 #define _PSMC1DBR0 0x01
5164 #define _PSMC1DBR1 0x02
5165 #define _PSMC1DBR2 0x04
5166 #define _PSMC1DBR3 0x08
5167 #define _PSMC1DBR4 0x10
5168 #define _PSMC1DBR5 0x20
5169 #define _PSMC1DBR6 0x40
5170 #define _PSMC1DBR7 0x80
5172 //==============================================================================
5175 //==============================================================================
5178 extern __at(0x082A) __sfr PSMC1DBF
;
5182 unsigned PSMC1DBF0
: 1;
5183 unsigned PSMC1DBF1
: 1;
5184 unsigned PSMC1DBF2
: 1;
5185 unsigned PSMC1DBF3
: 1;
5186 unsigned PSMC1DBF4
: 1;
5187 unsigned PSMC1DBF5
: 1;
5188 unsigned PSMC1DBF6
: 1;
5189 unsigned PSMC1DBF7
: 1;
5192 extern __at(0x082A) volatile __PSMC1DBFbits_t PSMC1DBFbits
;
5194 #define _PSMC1DBF0 0x01
5195 #define _PSMC1DBF1 0x02
5196 #define _PSMC1DBF2 0x04
5197 #define _PSMC1DBF3 0x08
5198 #define _PSMC1DBF4 0x10
5199 #define _PSMC1DBF5 0x20
5200 #define _PSMC1DBF6 0x40
5201 #define _PSMC1DBF7 0x80
5203 //==============================================================================
5206 //==============================================================================
5209 extern __at(0x082B) __sfr PSMC1BLKR
;
5213 unsigned PSMC1BLKR0
: 1;
5214 unsigned PSMC1BLKR1
: 1;
5215 unsigned PSMC1BLKR2
: 1;
5216 unsigned PSMC1BLKR3
: 1;
5217 unsigned PSMC1BLKR4
: 1;
5218 unsigned PSMC1BLKR5
: 1;
5219 unsigned PSMC1BLKR6
: 1;
5220 unsigned PSMC1BLKR7
: 1;
5221 } __PSMC1BLKRbits_t
;
5223 extern __at(0x082B) volatile __PSMC1BLKRbits_t PSMC1BLKRbits
;
5225 #define _PSMC1BLKR0 0x01
5226 #define _PSMC1BLKR1 0x02
5227 #define _PSMC1BLKR2 0x04
5228 #define _PSMC1BLKR3 0x08
5229 #define _PSMC1BLKR4 0x10
5230 #define _PSMC1BLKR5 0x20
5231 #define _PSMC1BLKR6 0x40
5232 #define _PSMC1BLKR7 0x80
5234 //==============================================================================
5237 //==============================================================================
5240 extern __at(0x082C) __sfr PSMC1BLKF
;
5244 unsigned PSMC1BLKF0
: 1;
5245 unsigned PSMC1BLKF1
: 1;
5246 unsigned PSMC1BLKF2
: 1;
5247 unsigned PSMC1BLKF3
: 1;
5248 unsigned PSMC1BLKF4
: 1;
5249 unsigned PSMC1BLKF5
: 1;
5250 unsigned PSMC1BLKF6
: 1;
5251 unsigned PSMC1BLKF7
: 1;
5252 } __PSMC1BLKFbits_t
;
5254 extern __at(0x082C) volatile __PSMC1BLKFbits_t PSMC1BLKFbits
;
5256 #define _PSMC1BLKF0 0x01
5257 #define _PSMC1BLKF1 0x02
5258 #define _PSMC1BLKF2 0x04
5259 #define _PSMC1BLKF3 0x08
5260 #define _PSMC1BLKF4 0x10
5261 #define _PSMC1BLKF5 0x20
5262 #define _PSMC1BLKF6 0x40
5263 #define _PSMC1BLKF7 0x80
5265 //==============================================================================
5268 //==============================================================================
5271 extern __at(0x082D) __sfr PSMC1FFA
;
5277 unsigned PSMC1FFA0
: 1;
5278 unsigned PSMC1FFA1
: 1;
5279 unsigned PSMC1FFA2
: 1;
5280 unsigned PSMC1FFA3
: 1;
5289 unsigned PSMC1FFA
: 4;
5294 extern __at(0x082D) volatile __PSMC1FFAbits_t PSMC1FFAbits
;
5296 #define _PSMC1FFA0 0x01
5297 #define _PSMC1FFA1 0x02
5298 #define _PSMC1FFA2 0x04
5299 #define _PSMC1FFA3 0x08
5301 //==============================================================================
5304 //==============================================================================
5307 extern __at(0x082E) __sfr PSMC1STR0
;
5311 unsigned P1STRA
: 1;
5312 unsigned P1STRB
: 1;
5313 unsigned P1STRC
: 1;
5314 unsigned P1STRD
: 1;
5315 unsigned P1STRE
: 1;
5316 unsigned P1STRF
: 1;
5319 } __PSMC1STR0bits_t
;
5321 extern __at(0x082E) volatile __PSMC1STR0bits_t PSMC1STR0bits
;
5323 #define _P1STRA 0x01
5324 #define _P1STRB 0x02
5325 #define _P1STRC 0x04
5326 #define _P1STRD 0x08
5327 #define _P1STRE 0x10
5328 #define _P1STRF 0x20
5330 //==============================================================================
5333 //==============================================================================
5336 extern __at(0x082F) __sfr PSMC1STR1
;
5340 unsigned P1HSMEN
: 1;
5341 unsigned P1LSMEN
: 1;
5347 unsigned P1SSYNC
: 1;
5348 } __PSMC1STR1bits_t
;
5350 extern __at(0x082F) volatile __PSMC1STR1bits_t PSMC1STR1bits
;
5352 #define _P1HSMEN 0x01
5353 #define _P1LSMEN 0x02
5354 #define _P1SSYNC 0x80
5356 //==============================================================================
5359 //==============================================================================
5362 extern __at(0x0831) __sfr PSMC2CON
;
5368 unsigned P2MODE0
: 1;
5369 unsigned P2MODE1
: 1;
5370 unsigned P2MODE2
: 1;
5371 unsigned P2MODE3
: 1;
5372 unsigned P2DBRE
: 1;
5373 unsigned P2DBFE
: 1;
5374 unsigned PSMC2LD
: 1;
5375 unsigned PSMC2EN
: 1;
5380 unsigned P2MODE
: 4;
5385 extern __at(0x0831) volatile __PSMC2CONbits_t PSMC2CONbits
;
5387 #define _P2MODE0 0x01
5388 #define _P2MODE1 0x02
5389 #define _P2MODE2 0x04
5390 #define _P2MODE3 0x08
5391 #define _P2DBRE 0x10
5392 #define _P2DBFE 0x20
5393 #define _PSMC2LD 0x40
5394 #define _PSMC2EN 0x80
5396 //==============================================================================
5399 //==============================================================================
5402 extern __at(0x0832) __sfr PSMC2MDL
;
5408 unsigned P2MSRC0
: 1;
5409 unsigned P2MSRC1
: 1;
5410 unsigned P2MSRC2
: 1;
5411 unsigned P2MSRC3
: 1;
5413 unsigned P2MDLBIT
: 1;
5414 unsigned P2MDLPOL
: 1;
5415 unsigned P2MDLEN
: 1;
5420 unsigned P2MSRC
: 4;
5425 extern __at(0x0832) volatile __PSMC2MDLbits_t PSMC2MDLbits
;
5427 #define _P2MSRC0 0x01
5428 #define _P2MSRC1 0x02
5429 #define _P2MSRC2 0x04
5430 #define _P2MSRC3 0x08
5431 #define _P2MDLBIT 0x20
5432 #define _P2MDLPOL 0x40
5433 #define _P2MDLEN 0x80
5435 //==============================================================================
5438 //==============================================================================
5441 extern __at(0x0833) __sfr PSMC2SYNC
;
5447 unsigned P2SYNC0
: 1;
5448 unsigned P2SYNC1
: 1;
5449 unsigned P2SYNC2
: 1;
5452 unsigned P2DCPOL
: 1;
5453 unsigned P2PRPOL
: 1;
5454 unsigned P2POFST
: 1;
5459 unsigned P2SYNC
: 3;
5462 } __PSMC2SYNCbits_t
;
5464 extern __at(0x0833) volatile __PSMC2SYNCbits_t PSMC2SYNCbits
;
5466 #define _P2SYNC0 0x01
5467 #define _P2SYNC1 0x02
5468 #define _P2SYNC2 0x04
5469 #define _P2DCPOL 0x20
5470 #define _P2PRPOL 0x40
5471 #define _P2POFST 0x80
5473 //==============================================================================
5476 //==============================================================================
5479 extern __at(0x0834) __sfr PSMC2CLK
;
5485 unsigned P2CSRC0
: 1;
5486 unsigned P2CSRC1
: 1;
5489 unsigned P2CPRE0
: 1;
5490 unsigned P2CPRE1
: 1;
5497 unsigned P2CSRC
: 2;
5504 unsigned P2CPRE
: 2;
5509 extern __at(0x0834) volatile __PSMC2CLKbits_t PSMC2CLKbits
;
5511 #define _P2CSRC0 0x01
5512 #define _P2CSRC1 0x02
5513 #define _P2CPRE0 0x10
5514 #define _P2CPRE1 0x20
5516 //==============================================================================
5519 //==============================================================================
5522 extern __at(0x0835) __sfr PSMC2OEN
;
5536 extern __at(0x0835) volatile __PSMC2OENbits_t PSMC2OENbits
;
5541 //==============================================================================
5544 //==============================================================================
5547 extern __at(0x0836) __sfr PSMC2POL
;
5551 unsigned P2POLA
: 1;
5552 unsigned P2POLB
: 1;
5557 unsigned P2INPOL
: 1;
5561 extern __at(0x0836) volatile __PSMC2POLbits_t PSMC2POLbits
;
5563 #define _P2POLA 0x01
5564 #define _P2POLB 0x02
5565 #define _P2INPOL 0x40
5567 //==============================================================================
5570 //==============================================================================
5573 extern __at(0x0837) __sfr PSMC2BLNK
;
5579 unsigned P2REBM0
: 1;
5580 unsigned P2REBM1
: 1;
5583 unsigned P2FEBM0
: 1;
5584 unsigned P2FEBM1
: 1;
5591 unsigned P2REBM
: 2;
5598 unsigned P2FEBM
: 2;
5601 } __PSMC2BLNKbits_t
;
5603 extern __at(0x0837) volatile __PSMC2BLNKbits_t PSMC2BLNKbits
;
5605 #define _P2REBM0 0x01
5606 #define _P2REBM1 0x02
5607 #define _P2FEBM0 0x10
5608 #define _P2FEBM1 0x20
5610 //==============================================================================
5613 //==============================================================================
5616 extern __at(0x0838) __sfr PSMC2REBS
;
5621 unsigned P2REBSC1
: 1;
5622 unsigned P2REBSC2
: 1;
5623 unsigned P2REBSC3
: 1;
5624 unsigned P2REBSC4
: 1;
5627 unsigned P2REBSIN
: 1;
5628 } __PSMC2REBSbits_t
;
5630 extern __at(0x0838) volatile __PSMC2REBSbits_t PSMC2REBSbits
;
5632 #define _P2REBSC1 0x02
5633 #define _P2REBSC2 0x04
5634 #define _P2REBSC3 0x08
5635 #define _P2REBSC4 0x10
5636 #define _P2REBSIN 0x80
5638 //==============================================================================
5641 //==============================================================================
5644 extern __at(0x0839) __sfr PSMC2FEBS
;
5649 unsigned P2FEBSC1
: 1;
5650 unsigned P2FEBSC2
: 1;
5651 unsigned P2FEBSC3
: 1;
5652 unsigned P2FEBSC4
: 1;
5655 unsigned P2FEBSIN
: 1;
5656 } __PSMC2FEBSbits_t
;
5658 extern __at(0x0839) volatile __PSMC2FEBSbits_t PSMC2FEBSbits
;
5660 #define _P2FEBSC1 0x02
5661 #define _P2FEBSC2 0x04
5662 #define _P2FEBSC3 0x08
5663 #define _P2FEBSC4 0x10
5664 #define _P2FEBSIN 0x80
5666 //==============================================================================
5669 //==============================================================================
5672 extern __at(0x083A) __sfr PSMC2PHS
;
5676 unsigned P2PHST
: 1;
5677 unsigned P2PHSC1
: 1;
5678 unsigned P2PHSC2
: 1;
5679 unsigned P2PHSC3
: 1;
5680 unsigned P2PHSC4
: 1;
5683 unsigned P2PHSIN
: 1;
5686 extern __at(0x083A) volatile __PSMC2PHSbits_t PSMC2PHSbits
;
5688 #define _P2PHST 0x01
5689 #define _P2PHSC1 0x02
5690 #define _P2PHSC2 0x04
5691 #define _P2PHSC3 0x08
5692 #define _P2PHSC4 0x10
5693 #define _P2PHSIN 0x80
5695 //==============================================================================
5698 //==============================================================================
5701 extern __at(0x083B) __sfr PSMC2DCS
;
5705 unsigned P2DCST
: 1;
5706 unsigned P2DCSC1
: 1;
5707 unsigned P2DCSC2
: 1;
5708 unsigned P2DCSC3
: 1;
5709 unsigned P2DCSC4
: 1;
5712 unsigned P2DCSIN
: 1;
5715 extern __at(0x083B) volatile __PSMC2DCSbits_t PSMC2DCSbits
;
5717 #define _P2DCST 0x01
5718 #define _P2DCSC1 0x02
5719 #define _P2DCSC2 0x04
5720 #define _P2DCSC3 0x08
5721 #define _P2DCSC4 0x10
5722 #define _P2DCSIN 0x80
5724 //==============================================================================
5727 //==============================================================================
5730 extern __at(0x083C) __sfr PSMC2PRS
;
5734 unsigned P2PRST
: 1;
5735 unsigned P2PRSC1
: 1;
5736 unsigned P2PRSC2
: 1;
5737 unsigned P2PRSC3
: 1;
5738 unsigned P2PRSC4
: 1;
5741 unsigned P2PRSIN
: 1;
5744 extern __at(0x083C) volatile __PSMC2PRSbits_t PSMC2PRSbits
;
5746 #define _P2PRST 0x01
5747 #define _P2PRSC1 0x02
5748 #define _P2PRSC2 0x04
5749 #define _P2PRSC3 0x08
5750 #define _P2PRSC4 0x10
5751 #define _P2PRSIN 0x80
5753 //==============================================================================
5756 //==============================================================================
5759 extern __at(0x083D) __sfr PSMC2ASDC
;
5763 unsigned P2ASDOV
: 1;
5768 unsigned P2ARSEN
: 1;
5769 unsigned P2ASDEN
: 1;
5771 } __PSMC2ASDCbits_t
;
5773 extern __at(0x083D) volatile __PSMC2ASDCbits_t PSMC2ASDCbits
;
5775 #define _P2ASDOV 0x01
5776 #define _P2ARSEN 0x20
5777 #define _P2ASDEN 0x40
5780 //==============================================================================
5783 //==============================================================================
5786 extern __at(0x083E) __sfr PSMC2ASDL
;
5790 unsigned P2ASDLA
: 1;
5791 unsigned P2ASDLB
: 1;
5798 } __PSMC2ASDLbits_t
;
5800 extern __at(0x083E) volatile __PSMC2ASDLbits_t PSMC2ASDLbits
;
5802 #define _P2ASDLA 0x01
5803 #define _P2ASDLB 0x02
5805 //==============================================================================
5808 //==============================================================================
5811 extern __at(0x083F) __sfr PSMC2ASDS
;
5816 unsigned P2ASDSC1
: 1;
5817 unsigned P2ASDSC2
: 1;
5818 unsigned P2ASDSC3
: 1;
5819 unsigned P2ASDSC4
: 1;
5822 unsigned P2ASDSIN
: 1;
5823 } __PSMC2ASDSbits_t
;
5825 extern __at(0x083F) volatile __PSMC2ASDSbits_t PSMC2ASDSbits
;
5827 #define _P2ASDSC1 0x02
5828 #define _P2ASDSC2 0x04
5829 #define _P2ASDSC3 0x08
5830 #define _P2ASDSC4 0x10
5831 #define _P2ASDSIN 0x80
5833 //==============================================================================
5836 //==============================================================================
5839 extern __at(0x0840) __sfr PSMC2INT
;
5843 unsigned P2TPRIF
: 1;
5844 unsigned P2TDCIF
: 1;
5845 unsigned P2TPHIF
: 1;
5846 unsigned P2TOVIF
: 1;
5847 unsigned P2TPRIE
: 1;
5848 unsigned P2TDCIE
: 1;
5849 unsigned P2TPHIE
: 1;
5850 unsigned P2TOVIE
: 1;
5853 extern __at(0x0840) volatile __PSMC2INTbits_t PSMC2INTbits
;
5855 #define _P2TPRIF 0x01
5856 #define _P2TDCIF 0x02
5857 #define _P2TPHIF 0x04
5858 #define _P2TOVIF 0x08
5859 #define _P2TPRIE 0x10
5860 #define _P2TDCIE 0x20
5861 #define _P2TPHIE 0x40
5862 #define _P2TOVIE 0x80
5864 //==============================================================================
5866 extern __at(0x0841) __sfr PSMC2PH
;
5868 //==============================================================================
5871 extern __at(0x0841) __sfr PSMC2PHL
;
5875 unsigned PSMC2PH0
: 1;
5876 unsigned PSMC2PH1
: 1;
5877 unsigned PSMC2PH2
: 1;
5878 unsigned PSMC2PH3
: 1;
5879 unsigned PSMC2PH4
: 1;
5880 unsigned PSMC2PH5
: 1;
5881 unsigned PSMC2PH6
: 1;
5882 unsigned PSMC2PH7
: 1;
5885 extern __at(0x0841) volatile __PSMC2PHLbits_t PSMC2PHLbits
;
5887 #define _PSMC2PH0 0x01
5888 #define _PSMC2PH1 0x02
5889 #define _PSMC2PH2 0x04
5890 #define _PSMC2PH3 0x08
5891 #define _PSMC2PH4 0x10
5892 #define _PSMC2PH5 0x20
5893 #define _PSMC2PH6 0x40
5894 #define _PSMC2PH7 0x80
5896 //==============================================================================
5899 //==============================================================================
5902 extern __at(0x0842) __sfr PSMC2PHH
;
5906 unsigned PSMC2PH8
: 1;
5907 unsigned PSMC2PH9
: 1;
5908 unsigned PSMC2PH10
: 1;
5909 unsigned PSMC2PH11
: 1;
5910 unsigned PSMC2PH12
: 1;
5911 unsigned PSMC2PH13
: 1;
5912 unsigned PSMC2PH14
: 1;
5913 unsigned PSMC2PH15
: 1;
5916 extern __at(0x0842) volatile __PSMC2PHHbits_t PSMC2PHHbits
;
5918 #define _PSMC2PH8 0x01
5919 #define _PSMC2PH9 0x02
5920 #define _PSMC2PH10 0x04
5921 #define _PSMC2PH11 0x08
5922 #define _PSMC2PH12 0x10
5923 #define _PSMC2PH13 0x20
5924 #define _PSMC2PH14 0x40
5925 #define _PSMC2PH15 0x80
5927 //==============================================================================
5929 extern __at(0x0843) __sfr PSMC2DC
;
5931 //==============================================================================
5934 extern __at(0x0843) __sfr PSMC2DCL
;
5938 unsigned PSMC2DC0
: 1;
5939 unsigned PSMC2DC1
: 1;
5940 unsigned PSMC2DC2
: 1;
5941 unsigned PSMC2DC3
: 1;
5942 unsigned PSMC2DC4
: 1;
5943 unsigned PSMC2DC5
: 1;
5944 unsigned PSMC2DC6
: 1;
5945 unsigned PSMC2DC7
: 1;
5948 extern __at(0x0843) volatile __PSMC2DCLbits_t PSMC2DCLbits
;
5950 #define _PSMC2DC0 0x01
5951 #define _PSMC2DC1 0x02
5952 #define _PSMC2DC2 0x04
5953 #define _PSMC2DC3 0x08
5954 #define _PSMC2DC4 0x10
5955 #define _PSMC2DC5 0x20
5956 #define _PSMC2DC6 0x40
5957 #define _PSMC2DC7 0x80
5959 //==============================================================================
5962 //==============================================================================
5965 extern __at(0x0844) __sfr PSMC2DCH
;
5969 unsigned PSMC2DC8
: 1;
5970 unsigned PSMC2DC9
: 1;
5971 unsigned PSMC2DC10
: 1;
5972 unsigned PSMC2DC11
: 1;
5973 unsigned PSMC2DC12
: 1;
5974 unsigned PSMC2DC13
: 1;
5975 unsigned PSMC2DC14
: 1;
5976 unsigned PSMC2DC15
: 1;
5979 extern __at(0x0844) volatile __PSMC2DCHbits_t PSMC2DCHbits
;
5981 #define _PSMC2DC8 0x01
5982 #define _PSMC2DC9 0x02
5983 #define _PSMC2DC10 0x04
5984 #define _PSMC2DC11 0x08
5985 #define _PSMC2DC12 0x10
5986 #define _PSMC2DC13 0x20
5987 #define _PSMC2DC14 0x40
5988 #define _PSMC2DC15 0x80
5990 //==============================================================================
5992 extern __at(0x0845) __sfr PSMC2PR
;
5994 //==============================================================================
5997 extern __at(0x0845) __sfr PSMC2PRL
;
6001 unsigned PSMC2PR0
: 1;
6002 unsigned PSMC2PR1
: 1;
6003 unsigned PSMC2PR2
: 1;
6004 unsigned PSMC2PR3
: 1;
6005 unsigned PSMC2PR4
: 1;
6006 unsigned PSMC2PR5
: 1;
6007 unsigned PSMC2PR6
: 1;
6008 unsigned PSMC2PR7
: 1;
6011 extern __at(0x0845) volatile __PSMC2PRLbits_t PSMC2PRLbits
;
6013 #define _PSMC2PR0 0x01
6014 #define _PSMC2PR1 0x02
6015 #define _PSMC2PR2 0x04
6016 #define _PSMC2PR3 0x08
6017 #define _PSMC2PR4 0x10
6018 #define _PSMC2PR5 0x20
6019 #define _PSMC2PR6 0x40
6020 #define _PSMC2PR7 0x80
6022 //==============================================================================
6025 //==============================================================================
6028 extern __at(0x0846) __sfr PSMC2PRH
;
6032 unsigned PSMC2PR8
: 1;
6033 unsigned PSMC2PR9
: 1;
6034 unsigned PSMC2PR10
: 1;
6035 unsigned PSMC2PR11
: 1;
6036 unsigned PSMC2PR12
: 1;
6037 unsigned PSMC2PR13
: 1;
6038 unsigned PSMC2PR14
: 1;
6039 unsigned PSMC2PR15
: 1;
6042 extern __at(0x0846) volatile __PSMC2PRHbits_t PSMC2PRHbits
;
6044 #define _PSMC2PR8 0x01
6045 #define _PSMC2PR9 0x02
6046 #define _PSMC2PR10 0x04
6047 #define _PSMC2PR11 0x08
6048 #define _PSMC2PR12 0x10
6049 #define _PSMC2PR13 0x20
6050 #define _PSMC2PR14 0x40
6051 #define _PSMC2PR15 0x80
6053 //==============================================================================
6055 extern __at(0x0847) __sfr PSMC2TMR
;
6057 //==============================================================================
6060 extern __at(0x0847) __sfr PSMC2TMRL
;
6064 unsigned PSMC2TMR0
: 1;
6065 unsigned PSMC2TMR1
: 1;
6066 unsigned PSMC2TMR2
: 1;
6067 unsigned PSMC2TMR3
: 1;
6068 unsigned PSMC2TMR4
: 1;
6069 unsigned PSMC2TMR5
: 1;
6070 unsigned PSMC2TMR6
: 1;
6071 unsigned PSMC2TMR7
: 1;
6072 } __PSMC2TMRLbits_t
;
6074 extern __at(0x0847) volatile __PSMC2TMRLbits_t PSMC2TMRLbits
;
6076 #define _PSMC2TMR0 0x01
6077 #define _PSMC2TMR1 0x02
6078 #define _PSMC2TMR2 0x04
6079 #define _PSMC2TMR3 0x08
6080 #define _PSMC2TMR4 0x10
6081 #define _PSMC2TMR5 0x20
6082 #define _PSMC2TMR6 0x40
6083 #define _PSMC2TMR7 0x80
6085 //==============================================================================
6088 //==============================================================================
6091 extern __at(0x0848) __sfr PSMC2TMRH
;
6095 unsigned PSMC2TMR8
: 1;
6096 unsigned PSMC2TMR9
: 1;
6097 unsigned PSMC2TMR10
: 1;
6098 unsigned PSMC2TMR11
: 1;
6099 unsigned PSMC2TMR12
: 1;
6100 unsigned PSMC2TMR13
: 1;
6101 unsigned PSMC2TMR14
: 1;
6102 unsigned PSMC2TMR15
: 1;
6103 } __PSMC2TMRHbits_t
;
6105 extern __at(0x0848) volatile __PSMC2TMRHbits_t PSMC2TMRHbits
;
6107 #define _PSMC2TMR8 0x01
6108 #define _PSMC2TMR9 0x02
6109 #define _PSMC2TMR10 0x04
6110 #define _PSMC2TMR11 0x08
6111 #define _PSMC2TMR12 0x10
6112 #define _PSMC2TMR13 0x20
6113 #define _PSMC2TMR14 0x40
6114 #define _PSMC2TMR15 0x80
6116 //==============================================================================
6119 //==============================================================================
6122 extern __at(0x0849) __sfr PSMC2DBR
;
6126 unsigned PSMC2DBR0
: 1;
6127 unsigned PSMC2DBR1
: 1;
6128 unsigned PSMC2DBR2
: 1;
6129 unsigned PSMC2DBR3
: 1;
6130 unsigned PSMC2DBR4
: 1;
6131 unsigned PSMC2DBR5
: 1;
6132 unsigned PSMC2DBR6
: 1;
6133 unsigned PSMC2DBR7
: 1;
6136 extern __at(0x0849) volatile __PSMC2DBRbits_t PSMC2DBRbits
;
6138 #define _PSMC2DBR0 0x01
6139 #define _PSMC2DBR1 0x02
6140 #define _PSMC2DBR2 0x04
6141 #define _PSMC2DBR3 0x08
6142 #define _PSMC2DBR4 0x10
6143 #define _PSMC2DBR5 0x20
6144 #define _PSMC2DBR6 0x40
6145 #define _PSMC2DBR7 0x80
6147 //==============================================================================
6150 //==============================================================================
6153 extern __at(0x084A) __sfr PSMC2DBF
;
6157 unsigned PSMC2DBF0
: 1;
6158 unsigned PSMC2DBF1
: 1;
6159 unsigned PSMC2DBF2
: 1;
6160 unsigned PSMC2DBF3
: 1;
6161 unsigned PSMC2DBF4
: 1;
6162 unsigned PSMC2DBF5
: 1;
6163 unsigned PSMC2DBF6
: 1;
6164 unsigned PSMC2DBF7
: 1;
6167 extern __at(0x084A) volatile __PSMC2DBFbits_t PSMC2DBFbits
;
6169 #define _PSMC2DBF0 0x01
6170 #define _PSMC2DBF1 0x02
6171 #define _PSMC2DBF2 0x04
6172 #define _PSMC2DBF3 0x08
6173 #define _PSMC2DBF4 0x10
6174 #define _PSMC2DBF5 0x20
6175 #define _PSMC2DBF6 0x40
6176 #define _PSMC2DBF7 0x80
6178 //==============================================================================
6181 //==============================================================================
6184 extern __at(0x084B) __sfr PSMC2BLKR
;
6188 unsigned PSMC2BLKR0
: 1;
6189 unsigned PSMC2BLKR1
: 1;
6190 unsigned PSMC2BLKR2
: 1;
6191 unsigned PSMC2BLKR3
: 1;
6192 unsigned PSMC2BLKR4
: 1;
6193 unsigned PSMC2BLKR5
: 1;
6194 unsigned PSMC2BLKR6
: 1;
6195 unsigned PSMC2BLKR7
: 1;
6196 } __PSMC2BLKRbits_t
;
6198 extern __at(0x084B) volatile __PSMC2BLKRbits_t PSMC2BLKRbits
;
6200 #define _PSMC2BLKR0 0x01
6201 #define _PSMC2BLKR1 0x02
6202 #define _PSMC2BLKR2 0x04
6203 #define _PSMC2BLKR3 0x08
6204 #define _PSMC2BLKR4 0x10
6205 #define _PSMC2BLKR5 0x20
6206 #define _PSMC2BLKR6 0x40
6207 #define _PSMC2BLKR7 0x80
6209 //==============================================================================
6212 //==============================================================================
6215 extern __at(0x084C) __sfr PSMC2BLKF
;
6219 unsigned PSMC2BLKF0
: 1;
6220 unsigned PSMC2BLKF1
: 1;
6221 unsigned PSMC2BLKF2
: 1;
6222 unsigned PSMC2BLKF3
: 1;
6223 unsigned PSMC2BLKF4
: 1;
6224 unsigned PSMC2BLKF5
: 1;
6225 unsigned PSMC2BLKF6
: 1;
6226 unsigned PSMC2BLKF7
: 1;
6227 } __PSMC2BLKFbits_t
;
6229 extern __at(0x084C) volatile __PSMC2BLKFbits_t PSMC2BLKFbits
;
6231 #define _PSMC2BLKF0 0x01
6232 #define _PSMC2BLKF1 0x02
6233 #define _PSMC2BLKF2 0x04
6234 #define _PSMC2BLKF3 0x08
6235 #define _PSMC2BLKF4 0x10
6236 #define _PSMC2BLKF5 0x20
6237 #define _PSMC2BLKF6 0x40
6238 #define _PSMC2BLKF7 0x80
6240 //==============================================================================
6243 //==============================================================================
6246 extern __at(0x084D) __sfr PSMC2FFA
;
6252 unsigned PSMC2FFA0
: 1;
6253 unsigned PSMC2FFA1
: 1;
6254 unsigned PSMC2FFA2
: 1;
6255 unsigned PSMC2FFA3
: 1;
6264 unsigned PSMC2FFA
: 4;
6269 extern __at(0x084D) volatile __PSMC2FFAbits_t PSMC2FFAbits
;
6271 #define _PSMC2FFA0 0x01
6272 #define _PSMC2FFA1 0x02
6273 #define _PSMC2FFA2 0x04
6274 #define _PSMC2FFA3 0x08
6276 //==============================================================================
6279 //==============================================================================
6282 extern __at(0x084E) __sfr PSMC2STR0
;
6286 unsigned P2STRA
: 1;
6287 unsigned P2STRB
: 1;
6294 } __PSMC2STR0bits_t
;
6296 extern __at(0x084E) volatile __PSMC2STR0bits_t PSMC2STR0bits
;
6298 #define _P2STRA 0x01
6299 #define _P2STRB 0x02
6301 //==============================================================================
6304 //==============================================================================
6307 extern __at(0x084F) __sfr PSMC2STR1
;
6311 unsigned P2HSMEN
: 1;
6312 unsigned P2LSMEN
: 1;
6318 unsigned P2SSYNC
: 1;
6319 } __PSMC2STR1bits_t
;
6321 extern __at(0x084F) volatile __PSMC2STR1bits_t PSMC2STR1bits
;
6323 #define _P2HSMEN 0x01
6324 #define _P2LSMEN 0x02
6325 #define _P2SSYNC 0x80
6327 //==============================================================================
6330 //==============================================================================
6333 extern __at(0x0851) __sfr PSMC3CON
;
6339 unsigned P3MODE0
: 1;
6340 unsigned P3MODE1
: 1;
6341 unsigned P3MODE2
: 1;
6342 unsigned P3MODE3
: 1;
6343 unsigned P3DBRE
: 1;
6344 unsigned P3DBFE
: 1;
6345 unsigned PSMC3LD
: 1;
6346 unsigned PSMC3EN
: 1;
6351 unsigned P3MODE
: 4;
6356 extern __at(0x0851) volatile __PSMC3CONbits_t PSMC3CONbits
;
6358 #define _P3MODE0 0x01
6359 #define _P3MODE1 0x02
6360 #define _P3MODE2 0x04
6361 #define _P3MODE3 0x08
6362 #define _P3DBRE 0x10
6363 #define _P3DBFE 0x20
6364 #define _PSMC3LD 0x40
6365 #define _PSMC3EN 0x80
6367 //==============================================================================
6370 //==============================================================================
6373 extern __at(0x0852) __sfr PSMC3MDL
;
6379 unsigned P3MSRC0
: 1;
6380 unsigned P3MSRC1
: 1;
6381 unsigned P3MSRC2
: 1;
6382 unsigned P3MSRC3
: 1;
6384 unsigned P3MDLBIT
: 1;
6385 unsigned P3MDLPOL
: 1;
6386 unsigned P3MDLEN
: 1;
6391 unsigned P3MSRC
: 4;
6396 extern __at(0x0852) volatile __PSMC3MDLbits_t PSMC3MDLbits
;
6398 #define _P3MSRC0 0x01
6399 #define _P3MSRC1 0x02
6400 #define _P3MSRC2 0x04
6401 #define _P3MSRC3 0x08
6402 #define _P3MDLBIT 0x20
6403 #define _P3MDLPOL 0x40
6404 #define _P3MDLEN 0x80
6406 //==============================================================================
6409 //==============================================================================
6412 extern __at(0x0853) __sfr PSMC3SYNC
;
6418 unsigned P3SYNC0
: 1;
6419 unsigned P3SYNC1
: 1;
6420 unsigned P3SYNC2
: 1;
6423 unsigned P3DCPOL
: 1;
6424 unsigned P3PRPOL
: 1;
6425 unsigned P3POFST
: 1;
6430 unsigned P3SYNC
: 3;
6433 } __PSMC3SYNCbits_t
;
6435 extern __at(0x0853) volatile __PSMC3SYNCbits_t PSMC3SYNCbits
;
6437 #define _P3SYNC0 0x01
6438 #define _P3SYNC1 0x02
6439 #define _P3SYNC2 0x04
6440 #define _P3DCPOL 0x20
6441 #define _P3PRPOL 0x40
6442 #define _P3POFST 0x80
6444 //==============================================================================
6447 //==============================================================================
6450 extern __at(0x0854) __sfr PSMC3CLK
;
6456 unsigned P3CSRC0
: 1;
6457 unsigned P3CSRC1
: 1;
6460 unsigned P3CPRE0
: 1;
6461 unsigned P3CPRE1
: 1;
6468 unsigned P3CSRC
: 2;
6475 unsigned P3CPRE
: 2;
6480 extern __at(0x0854) volatile __PSMC3CLKbits_t PSMC3CLKbits
;
6482 #define _P3CSRC0 0x01
6483 #define _P3CSRC1 0x02
6484 #define _P3CPRE0 0x10
6485 #define _P3CPRE1 0x20
6487 //==============================================================================
6490 //==============================================================================
6493 extern __at(0x0855) __sfr PSMC3OEN
;
6507 extern __at(0x0855) volatile __PSMC3OENbits_t PSMC3OENbits
;
6512 //==============================================================================
6515 //==============================================================================
6518 extern __at(0x0856) __sfr PSMC3POL
;
6522 unsigned P3POLA
: 1;
6523 unsigned P3POLB
: 1;
6528 unsigned P3INPOL
: 1;
6532 extern __at(0x0856) volatile __PSMC3POLbits_t PSMC3POLbits
;
6534 #define _P3POLA 0x01
6535 #define _P3POLB 0x02
6536 #define _P3INPOL 0x40
6538 //==============================================================================
6541 //==============================================================================
6544 extern __at(0x0857) __sfr PSMC3BLNK
;
6550 unsigned P3REBM0
: 1;
6551 unsigned P3REBM1
: 1;
6554 unsigned P3FEBM0
: 1;
6555 unsigned P3FEBM1
: 1;
6562 unsigned P3REBM
: 2;
6569 unsigned P3FEBM
: 2;
6572 } __PSMC3BLNKbits_t
;
6574 extern __at(0x0857) volatile __PSMC3BLNKbits_t PSMC3BLNKbits
;
6576 #define _P3REBM0 0x01
6577 #define _P3REBM1 0x02
6578 #define _P3FEBM0 0x10
6579 #define _P3FEBM1 0x20
6581 //==============================================================================
6584 //==============================================================================
6587 extern __at(0x0858) __sfr PSMC3REBS
;
6592 unsigned P3REBSC1
: 1;
6593 unsigned P3REBSC2
: 1;
6594 unsigned P3REBSC3
: 1;
6595 unsigned P3REBSC4
: 1;
6598 unsigned P3REBSIN
: 1;
6599 } __PSMC3REBSbits_t
;
6601 extern __at(0x0858) volatile __PSMC3REBSbits_t PSMC3REBSbits
;
6603 #define _P3REBSC1 0x02
6604 #define _P3REBSC2 0x04
6605 #define _P3REBSC3 0x08
6606 #define _P3REBSC4 0x10
6607 #define _P3REBSIN 0x80
6609 //==============================================================================
6612 //==============================================================================
6615 extern __at(0x0859) __sfr PSMC3FEBS
;
6620 unsigned P3FEBSC1
: 1;
6621 unsigned P3FEBSC2
: 1;
6622 unsigned P3FEBSC3
: 1;
6623 unsigned P3FEBSC4
: 1;
6626 unsigned P3FEBSIN
: 1;
6627 } __PSMC3FEBSbits_t
;
6629 extern __at(0x0859) volatile __PSMC3FEBSbits_t PSMC3FEBSbits
;
6631 #define _P3FEBSC1 0x02
6632 #define _P3FEBSC2 0x04
6633 #define _P3FEBSC3 0x08
6634 #define _P3FEBSC4 0x10
6635 #define _P3FEBSIN 0x80
6637 //==============================================================================
6640 //==============================================================================
6643 extern __at(0x085A) __sfr PSMC3PHS
;
6647 unsigned P3PHST
: 1;
6648 unsigned P3PHSC1
: 1;
6649 unsigned P3PHSC2
: 1;
6650 unsigned P3PHSC3
: 1;
6651 unsigned P3PHSC4
: 1;
6654 unsigned P3PHSIN
: 1;
6657 extern __at(0x085A) volatile __PSMC3PHSbits_t PSMC3PHSbits
;
6659 #define _P3PHST 0x01
6660 #define _P3PHSC1 0x02
6661 #define _P3PHSC2 0x04
6662 #define _P3PHSC3 0x08
6663 #define _P3PHSC4 0x10
6664 #define _P3PHSIN 0x80
6666 //==============================================================================
6669 //==============================================================================
6672 extern __at(0x085B) __sfr PSMC3DCS
;
6676 unsigned P3DCST
: 1;
6677 unsigned P3DCSC1
: 1;
6678 unsigned P3DCSC2
: 1;
6679 unsigned P3DCSC3
: 1;
6680 unsigned P3DCSC4
: 1;
6683 unsigned P3DCSIN
: 1;
6686 extern __at(0x085B) volatile __PSMC3DCSbits_t PSMC3DCSbits
;
6688 #define _P3DCST 0x01
6689 #define _P3DCSC1 0x02
6690 #define _P3DCSC2 0x04
6691 #define _P3DCSC3 0x08
6692 #define _P3DCSC4 0x10
6693 #define _P3DCSIN 0x80
6695 //==============================================================================
6698 //==============================================================================
6701 extern __at(0x085C) __sfr PSMC3PRS
;
6705 unsigned P3PRST
: 1;
6706 unsigned P3PRSC1
: 1;
6707 unsigned P3PRSC2
: 1;
6708 unsigned P3PRSC3
: 1;
6709 unsigned P3PRSC4
: 1;
6712 unsigned P3PRSIN
: 1;
6715 extern __at(0x085C) volatile __PSMC3PRSbits_t PSMC3PRSbits
;
6717 #define _P3PRST 0x01
6718 #define _P3PRSC1 0x02
6719 #define _P3PRSC2 0x04
6720 #define _P3PRSC3 0x08
6721 #define _P3PRSC4 0x10
6722 #define _P3PRSIN 0x80
6724 //==============================================================================
6727 //==============================================================================
6730 extern __at(0x085D) __sfr PSMC3ASDC
;
6734 unsigned P3ASDOV
: 1;
6739 unsigned P3ARSEN
: 1;
6740 unsigned P3ASDEN
: 1;
6742 } __PSMC3ASDCbits_t
;
6744 extern __at(0x085D) volatile __PSMC3ASDCbits_t PSMC3ASDCbits
;
6746 #define _P3ASDOV 0x01
6747 #define _P3ARSEN 0x20
6748 #define _P3ASDEN 0x40
6751 //==============================================================================
6754 //==============================================================================
6757 extern __at(0x085E) __sfr PSMC3ASDL
;
6761 unsigned P3ASDLA
: 1;
6762 unsigned P3ASDLB
: 1;
6763 unsigned P3ASDLC
: 1;
6764 unsigned P3ASDLD
: 1;
6765 unsigned P3ASDLE
: 1;
6766 unsigned P3ASDLF
: 1;
6769 } __PSMC3ASDLbits_t
;
6771 extern __at(0x085E) volatile __PSMC3ASDLbits_t PSMC3ASDLbits
;
6773 #define _P3ASDLA 0x01
6774 #define _P3ASDLB 0x02
6775 #define _P3ASDLC 0x04
6776 #define _P3ASDLD 0x08
6777 #define _P3ASDLE 0x10
6778 #define _P3ASDLF 0x20
6780 //==============================================================================
6783 //==============================================================================
6786 extern __at(0x085F) __sfr PSMC3ASDS
;
6791 unsigned P3ASDSC1
: 1;
6792 unsigned P3ASDSC2
: 1;
6793 unsigned P3ASDSC3
: 1;
6794 unsigned P3ASDSC4
: 1;
6797 unsigned P3ASDSIN
: 1;
6798 } __PSMC3ASDSbits_t
;
6800 extern __at(0x085F) volatile __PSMC3ASDSbits_t PSMC3ASDSbits
;
6802 #define _P3ASDSC1 0x02
6803 #define _P3ASDSC2 0x04
6804 #define _P3ASDSC3 0x08
6805 #define _P3ASDSC4 0x10
6806 #define _P3ASDSIN 0x80
6808 //==============================================================================
6811 //==============================================================================
6814 extern __at(0x0860) __sfr PSMC3INT
;
6818 unsigned P3TPRIF
: 1;
6819 unsigned P3TDCIF
: 1;
6820 unsigned P3TPHIF
: 1;
6821 unsigned P3TOVIF
: 1;
6822 unsigned P3TPRIE
: 1;
6823 unsigned P3TDCIE
: 1;
6824 unsigned P3TPHIE
: 1;
6825 unsigned P3TOVIE
: 1;
6828 extern __at(0x0860) volatile __PSMC3INTbits_t PSMC3INTbits
;
6830 #define _P3TPRIF 0x01
6831 #define _P3TDCIF 0x02
6832 #define _P3TPHIF 0x04
6833 #define _P3TOVIF 0x08
6834 #define _P3TPRIE 0x10
6835 #define _P3TDCIE 0x20
6836 #define _P3TPHIE 0x40
6837 #define _P3TOVIE 0x80
6839 //==============================================================================
6841 extern __at(0x0861) __sfr PSMC3PH
;
6843 //==============================================================================
6846 extern __at(0x0861) __sfr PSMC3PHL
;
6850 unsigned PSMC3PH0
: 1;
6851 unsigned PSMC3PH1
: 1;
6852 unsigned PSMC3PH2
: 1;
6853 unsigned PSMC3PH3
: 1;
6854 unsigned PSMC3PH4
: 1;
6855 unsigned PSMC3PH5
: 1;
6856 unsigned PSMC3PH6
: 1;
6857 unsigned PSMC3PH7
: 1;
6860 extern __at(0x0861) volatile __PSMC3PHLbits_t PSMC3PHLbits
;
6862 #define _PSMC3PH0 0x01
6863 #define _PSMC3PH1 0x02
6864 #define _PSMC3PH2 0x04
6865 #define _PSMC3PH3 0x08
6866 #define _PSMC3PH4 0x10
6867 #define _PSMC3PH5 0x20
6868 #define _PSMC3PH6 0x40
6869 #define _PSMC3PH7 0x80
6871 //==============================================================================
6874 //==============================================================================
6877 extern __at(0x0862) __sfr PSMC3PHH
;
6881 unsigned PSMC3PH8
: 1;
6882 unsigned PSMC3PH9
: 1;
6883 unsigned PSMC3PH10
: 1;
6884 unsigned PSMC3PH11
: 1;
6885 unsigned PSMC3PH12
: 1;
6886 unsigned PSMC3PH13
: 1;
6887 unsigned PSMC3PH14
: 1;
6888 unsigned PSMC3PH15
: 1;
6891 extern __at(0x0862) volatile __PSMC3PHHbits_t PSMC3PHHbits
;
6893 #define _PSMC3PH8 0x01
6894 #define _PSMC3PH9 0x02
6895 #define _PSMC3PH10 0x04
6896 #define _PSMC3PH11 0x08
6897 #define _PSMC3PH12 0x10
6898 #define _PSMC3PH13 0x20
6899 #define _PSMC3PH14 0x40
6900 #define _PSMC3PH15 0x80
6902 //==============================================================================
6904 extern __at(0x0863) __sfr PSMC3DC
;
6906 //==============================================================================
6909 extern __at(0x0863) __sfr PSMC3DCL
;
6913 unsigned PSMC3DC0
: 1;
6914 unsigned PSMC3DC1
: 1;
6915 unsigned PSMC3DC2
: 1;
6916 unsigned PSMC3DC3
: 1;
6917 unsigned PSMC3DC4
: 1;
6918 unsigned PSMC3DC5
: 1;
6919 unsigned PSMC3DC6
: 1;
6920 unsigned PSMC3DC7
: 1;
6923 extern __at(0x0863) volatile __PSMC3DCLbits_t PSMC3DCLbits
;
6925 #define _PSMC3DC0 0x01
6926 #define _PSMC3DC1 0x02
6927 #define _PSMC3DC2 0x04
6928 #define _PSMC3DC3 0x08
6929 #define _PSMC3DC4 0x10
6930 #define _PSMC3DC5 0x20
6931 #define _PSMC3DC6 0x40
6932 #define _PSMC3DC7 0x80
6934 //==============================================================================
6937 //==============================================================================
6940 extern __at(0x0864) __sfr PSMC3DCH
;
6944 unsigned PSMC3DC8
: 1;
6945 unsigned PSMC3DC9
: 1;
6946 unsigned PSMC3DC10
: 1;
6947 unsigned PSMC3DC11
: 1;
6948 unsigned PSMC3DC12
: 1;
6949 unsigned PSMC3DC13
: 1;
6950 unsigned PSMC3DC14
: 1;
6951 unsigned PSMC3DC15
: 1;
6954 extern __at(0x0864) volatile __PSMC3DCHbits_t PSMC3DCHbits
;
6956 #define _PSMC3DC8 0x01
6957 #define _PSMC3DC9 0x02
6958 #define _PSMC3DC10 0x04
6959 #define _PSMC3DC11 0x08
6960 #define _PSMC3DC12 0x10
6961 #define _PSMC3DC13 0x20
6962 #define _PSMC3DC14 0x40
6963 #define _PSMC3DC15 0x80
6965 //==============================================================================
6967 extern __at(0x0865) __sfr PSMC3PR
;
6969 //==============================================================================
6972 extern __at(0x0865) __sfr PSMC3PRL
;
6976 unsigned PSMC3PR0
: 1;
6977 unsigned PSMC3PR1
: 1;
6978 unsigned PSMC3PR2
: 1;
6979 unsigned PSMC3PR3
: 1;
6980 unsigned PSMC3PR4
: 1;
6981 unsigned PSMC3PR5
: 1;
6982 unsigned PSMC3PR6
: 1;
6983 unsigned PSMC3PR7
: 1;
6986 extern __at(0x0865) volatile __PSMC3PRLbits_t PSMC3PRLbits
;
6988 #define _PSMC3PR0 0x01
6989 #define _PSMC3PR1 0x02
6990 #define _PSMC3PR2 0x04
6991 #define _PSMC3PR3 0x08
6992 #define _PSMC3PR4 0x10
6993 #define _PSMC3PR5 0x20
6994 #define _PSMC3PR6 0x40
6995 #define _PSMC3PR7 0x80
6997 //==============================================================================
7000 //==============================================================================
7003 extern __at(0x0866) __sfr PSMC3PRH
;
7007 unsigned PSMC3PR8
: 1;
7008 unsigned PSMC3PR9
: 1;
7009 unsigned PSMC3PR10
: 1;
7010 unsigned PSMC3PR11
: 1;
7011 unsigned PSMC3PR12
: 1;
7012 unsigned PSMC3PR13
: 1;
7013 unsigned PSMC3PR14
: 1;
7014 unsigned PSMC3PR15
: 1;
7017 extern __at(0x0866) volatile __PSMC3PRHbits_t PSMC3PRHbits
;
7019 #define _PSMC3PR8 0x01
7020 #define _PSMC3PR9 0x02
7021 #define _PSMC3PR10 0x04
7022 #define _PSMC3PR11 0x08
7023 #define _PSMC3PR12 0x10
7024 #define _PSMC3PR13 0x20
7025 #define _PSMC3PR14 0x40
7026 #define _PSMC3PR15 0x80
7028 //==============================================================================
7030 extern __at(0x0867) __sfr PSMC3TMR
;
7032 //==============================================================================
7035 extern __at(0x0867) __sfr PSMC3TMRL
;
7039 unsigned PSMC3TMR0
: 1;
7040 unsigned PSMC3TMR1
: 1;
7041 unsigned PSMC3TMR2
: 1;
7042 unsigned PSMC3TMR3
: 1;
7043 unsigned PSMC3TMR4
: 1;
7044 unsigned PSMC3TMR5
: 1;
7045 unsigned PSMC3TMR6
: 1;
7046 unsigned PSMC3TMR7
: 1;
7047 } __PSMC3TMRLbits_t
;
7049 extern __at(0x0867) volatile __PSMC3TMRLbits_t PSMC3TMRLbits
;
7051 #define _PSMC3TMR0 0x01
7052 #define _PSMC3TMR1 0x02
7053 #define _PSMC3TMR2 0x04
7054 #define _PSMC3TMR3 0x08
7055 #define _PSMC3TMR4 0x10
7056 #define _PSMC3TMR5 0x20
7057 #define _PSMC3TMR6 0x40
7058 #define _PSMC3TMR7 0x80
7060 //==============================================================================
7063 //==============================================================================
7066 extern __at(0x0868) __sfr PSMC3TMRH
;
7070 unsigned PSMC3TMR8
: 1;
7071 unsigned PSMC3TMR9
: 1;
7072 unsigned PSMC3TMR10
: 1;
7073 unsigned PSMC3TMR11
: 1;
7074 unsigned PSMC3TMR12
: 1;
7075 unsigned PSMC3TMR13
: 1;
7076 unsigned PSMC3TMR14
: 1;
7077 unsigned PSMC3TMR15
: 1;
7078 } __PSMC3TMRHbits_t
;
7080 extern __at(0x0868) volatile __PSMC3TMRHbits_t PSMC3TMRHbits
;
7082 #define _PSMC3TMR8 0x01
7083 #define _PSMC3TMR9 0x02
7084 #define _PSMC3TMR10 0x04
7085 #define _PSMC3TMR11 0x08
7086 #define _PSMC3TMR12 0x10
7087 #define _PSMC3TMR13 0x20
7088 #define _PSMC3TMR14 0x40
7089 #define _PSMC3TMR15 0x80
7091 //==============================================================================
7094 //==============================================================================
7097 extern __at(0x0869) __sfr PSMC3DBR
;
7101 unsigned PSMC3DBR0
: 1;
7102 unsigned PSMC3DBR1
: 1;
7103 unsigned PSMC3DBR2
: 1;
7104 unsigned PSMC3DBR3
: 1;
7105 unsigned PSMC3DBR4
: 1;
7106 unsigned PSMC3DBR5
: 1;
7107 unsigned PSMC3DBR6
: 1;
7108 unsigned PSMC3DBR7
: 1;
7111 extern __at(0x0869) volatile __PSMC3DBRbits_t PSMC3DBRbits
;
7113 #define _PSMC3DBR0 0x01
7114 #define _PSMC3DBR1 0x02
7115 #define _PSMC3DBR2 0x04
7116 #define _PSMC3DBR3 0x08
7117 #define _PSMC3DBR4 0x10
7118 #define _PSMC3DBR5 0x20
7119 #define _PSMC3DBR6 0x40
7120 #define _PSMC3DBR7 0x80
7122 //==============================================================================
7125 //==============================================================================
7128 extern __at(0x086A) __sfr PSMC3DBF
;
7132 unsigned PSMC3DBF0
: 1;
7133 unsigned PSMC3DBF1
: 1;
7134 unsigned PSMC3DBF2
: 1;
7135 unsigned PSMC3DBF3
: 1;
7136 unsigned PSMC3DBF4
: 1;
7137 unsigned PSMC3DBF5
: 1;
7138 unsigned PSMC3DBF6
: 1;
7139 unsigned PSMC3DBF7
: 1;
7142 extern __at(0x086A) volatile __PSMC3DBFbits_t PSMC3DBFbits
;
7144 #define _PSMC3DBF0 0x01
7145 #define _PSMC3DBF1 0x02
7146 #define _PSMC3DBF2 0x04
7147 #define _PSMC3DBF3 0x08
7148 #define _PSMC3DBF4 0x10
7149 #define _PSMC3DBF5 0x20
7150 #define _PSMC3DBF6 0x40
7151 #define _PSMC3DBF7 0x80
7153 //==============================================================================
7156 //==============================================================================
7159 extern __at(0x086B) __sfr PSMC3BLKR
;
7163 unsigned PSMC3BLKR0
: 1;
7164 unsigned PSMC3BLKR1
: 1;
7165 unsigned PSMC3BLKR2
: 1;
7166 unsigned PSMC3BLKR3
: 1;
7167 unsigned PSMC3BLKR4
: 1;
7168 unsigned PSMC3BLKR5
: 1;
7169 unsigned PSMC3BLKR6
: 1;
7170 unsigned PSMC3BLKR7
: 1;
7171 } __PSMC3BLKRbits_t
;
7173 extern __at(0x086B) volatile __PSMC3BLKRbits_t PSMC3BLKRbits
;
7175 #define _PSMC3BLKR0 0x01
7176 #define _PSMC3BLKR1 0x02
7177 #define _PSMC3BLKR2 0x04
7178 #define _PSMC3BLKR3 0x08
7179 #define _PSMC3BLKR4 0x10
7180 #define _PSMC3BLKR5 0x20
7181 #define _PSMC3BLKR6 0x40
7182 #define _PSMC3BLKR7 0x80
7184 //==============================================================================
7187 //==============================================================================
7190 extern __at(0x086C) __sfr PSMC3BLKF
;
7194 unsigned PSMC3BLKF0
: 1;
7195 unsigned PSMC3BLKF1
: 1;
7196 unsigned PSMC3BLKF2
: 1;
7197 unsigned PSMC3BLKF3
: 1;
7198 unsigned PSMC3BLKF4
: 1;
7199 unsigned PSMC3BLKF5
: 1;
7200 unsigned PSMC3BLKF6
: 1;
7201 unsigned PSMC3BLKF7
: 1;
7202 } __PSMC3BLKFbits_t
;
7204 extern __at(0x086C) volatile __PSMC3BLKFbits_t PSMC3BLKFbits
;
7206 #define _PSMC3BLKF0 0x01
7207 #define _PSMC3BLKF1 0x02
7208 #define _PSMC3BLKF2 0x04
7209 #define _PSMC3BLKF3 0x08
7210 #define _PSMC3BLKF4 0x10
7211 #define _PSMC3BLKF5 0x20
7212 #define _PSMC3BLKF6 0x40
7213 #define _PSMC3BLKF7 0x80
7215 //==============================================================================
7218 //==============================================================================
7221 extern __at(0x086D) __sfr PSMC3FFA
;
7227 unsigned PSMC3FFA0
: 1;
7228 unsigned PSMC3FFA1
: 1;
7229 unsigned PSMC3FFA2
: 1;
7230 unsigned PSMC3FFA3
: 1;
7239 unsigned PSMC3FFA
: 4;
7244 extern __at(0x086D) volatile __PSMC3FFAbits_t PSMC3FFAbits
;
7246 #define _PSMC3FFA0 0x01
7247 #define _PSMC3FFA1 0x02
7248 #define _PSMC3FFA2 0x04
7249 #define _PSMC3FFA3 0x08
7251 //==============================================================================
7254 //==============================================================================
7257 extern __at(0x086E) __sfr PSMC3STR0
;
7261 unsigned P3STRA
: 1;
7262 unsigned P3STRB
: 1;
7269 } __PSMC3STR0bits_t
;
7271 extern __at(0x086E) volatile __PSMC3STR0bits_t PSMC3STR0bits
;
7273 #define _P3STRA 0x01
7274 #define _P3STRB 0x02
7276 //==============================================================================
7279 //==============================================================================
7282 extern __at(0x086F) __sfr PSMC3STR1
;
7286 unsigned P3HSMEN
: 1;
7287 unsigned P3LSMEN
: 1;
7293 unsigned P3SSYNC
: 1;
7294 } __PSMC3STR1bits_t
;
7296 extern __at(0x086F) volatile __PSMC3STR1bits_t PSMC3STR1bits
;
7298 #define _P3HSMEN 0x01
7299 #define _P3LSMEN 0x02
7300 #define _P3SSYNC 0x80
7302 //==============================================================================
7305 //==============================================================================
7308 extern __at(0x0FE4) __sfr STATUS_SHAD
;
7312 unsigned C_SHAD
: 1;
7313 unsigned DC_SHAD
: 1;
7314 unsigned Z_SHAD
: 1;
7320 } __STATUS_SHADbits_t
;
7322 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
7324 #define _C_SHAD 0x01
7325 #define _DC_SHAD 0x02
7326 #define _Z_SHAD 0x04
7328 //==============================================================================
7330 extern __at(0x0FE5) __sfr WREG_SHAD
;
7331 extern __at(0x0FE6) __sfr BSR_SHAD
;
7332 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
7333 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
7334 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
7335 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
7336 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
7337 extern __at(0x0FED) __sfr STKPTR
;
7338 extern __at(0x0FEE) __sfr TOSL
;
7339 extern __at(0x0FEF) __sfr TOSH
;
7341 //==============================================================================
7343 // Configuration Bits
7345 //==============================================================================
7347 #define _CONFIG1 0x8007
7348 #define _CONFIG2 0x8008
7350 //----------------------------- CONFIG1 Options -------------------------------
7352 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
7353 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
7354 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
7355 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
7356 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
7357 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
7358 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
7359 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin.
7360 #define _WDTE_OFF 0x3FE7 // WDT disabled.
7361 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
7362 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
7363 #define _WDTE_ON 0x3FFF // WDT enabled.
7364 #define _PWRTE_ON 0x3FDF // PWRT enabled.
7365 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
7366 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
7367 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
7368 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
7369 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
7370 #define _CPD_ON 0x3EFF // Data memory code protection is enabled.
7371 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
7372 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
7373 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
7374 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
7375 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
7376 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
7377 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
7378 #define _IESO_OFF 0x2FFF // Internal/External Switchover mode is disabled.
7379 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
7380 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
7381 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
7383 //----------------------------- CONFIG2 Options -------------------------------
7385 #define _WRT_ALL 0x3FFC // 000h to FFFh write protected, no addresses may be modified by EECON control.
7386 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
7387 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
7388 #define _WRT_OFF 0x3FFF // Write protection off.
7389 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
7390 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
7391 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
7392 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
7393 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
7394 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
7395 #define _LPBOR_ON 0x37FF // Low power brown-out is enabled.
7396 #define _LPBOR_OFF 0x3FFF // Low power brown-out is disabled.
7397 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
7398 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
7399 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
7400 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
7402 //==============================================================================
7404 #define _DEVID1 0x8006
7406 #define _IDLOC0 0x8000
7407 #define _IDLOC1 0x8001
7408 #define _IDLOC2 0x8002
7409 #define _IDLOC3 0x8003
7411 //==============================================================================
7413 #ifndef NO_BIT_DEFINES
7415 #define ADON ADCON0bits.ADON // bit 0
7416 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
7417 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
7418 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
7419 #define DONE ADCON0bits.DONE // bit 1, shadows bit in ADCON0bits
7420 #define CHS0 ADCON0bits.CHS0 // bit 2
7421 #define CHS1 ADCON0bits.CHS1 // bit 3
7422 #define CHS2 ADCON0bits.CHS2 // bit 4
7423 #define CHS3 ADCON0bits.CHS3 // bit 5
7424 #define CHS4 ADCON0bits.CHS4 // bit 6
7425 #define ADRMD ADCON0bits.ADRMD // bit 7
7427 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
7428 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
7429 #define ADNREF ADCON1bits.ADNREF // bit 2
7430 #define ADCS0 ADCON1bits.ADCS0 // bit 4
7431 #define ADCS1 ADCON1bits.ADCS1 // bit 5
7432 #define ADCS2 ADCON1bits.ADCS2 // bit 6
7433 #define ADFM ADCON1bits.ADFM // bit 7
7435 #define CHSN0 ADCON2bits.CHSN0 // bit 0
7436 #define CHSN1 ADCON2bits.CHSN1 // bit 1
7437 #define CHSN2 ADCON2bits.CHSN2 // bit 2
7438 #define CHSN3 ADCON2bits.CHSN3 // bit 3
7439 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
7440 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
7441 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
7442 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
7444 #define ANSA0 ANSELAbits.ANSA0 // bit 0
7445 #define ANSA1 ANSELAbits.ANSA1 // bit 1
7446 #define ANSA2 ANSELAbits.ANSA2 // bit 2
7447 #define ANSA3 ANSELAbits.ANSA3 // bit 3
7448 #define ANSA4 ANSELAbits.ANSA4 // bit 4
7449 #define ANSA5 ANSELAbits.ANSA5 // bit 5
7450 #define ANSA7 ANSELAbits.ANSA7 // bit 7
7452 #define ANSB0 ANSELBbits.ANSB0 // bit 0
7453 #define ANSB1 ANSELBbits.ANSB1 // bit 1
7454 #define ANSB2 ANSELBbits.ANSB2 // bit 2
7455 #define ANSB3 ANSELBbits.ANSB3 // bit 3
7456 #define ANSB4 ANSELBbits.ANSB4 // bit 4
7457 #define ANSB5 ANSELBbits.ANSB5 // bit 5
7458 #define ANSB6 ANSELBbits.ANSB6 // bit 6
7460 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
7461 #define RXSEL APFCONbits.RXSEL // bit 1
7462 #define TXSEL APFCONbits.TXSEL // bit 2
7463 #define SDISEL APFCONbits.SDISEL // bit 3
7464 #define SCKSEL APFCONbits.SCKSEL // bit 4
7465 #define SDOSEL APFCONbits.SDOSEL // bit 5
7466 #define CCP1SEL APFCONbits.CCP1SEL // bit 6
7467 #define C2OUTSEL APFCONbits.C2OUTSEL // bit 7
7469 #define CCP3SEL APFCON2bits.CCP3SEL // bit 0
7471 #define ABDEN BAUD1CONbits.ABDEN // bit 0
7472 #define WUE BAUD1CONbits.WUE // bit 1
7473 #define BRG16 BAUD1CONbits.BRG16 // bit 3
7474 #define SCKP BAUD1CONbits.SCKP // bit 4
7475 #define RCIDL BAUD1CONbits.RCIDL // bit 6
7476 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
7478 #define BORRDY BORCONbits.BORRDY // bit 0
7479 #define BORFS BORCONbits.BORFS // bit 6
7480 #define SBOREN BORCONbits.SBOREN // bit 7
7482 #define BSR0 BSRbits.BSR0 // bit 0
7483 #define BSR1 BSRbits.BSR1 // bit 1
7484 #define BSR2 BSRbits.BSR2 // bit 2
7485 #define BSR3 BSRbits.BSR3 // bit 3
7486 #define BSR4 BSRbits.BSR4 // bit 4
7488 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
7489 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
7490 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
7491 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
7492 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
7493 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
7495 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
7496 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
7497 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
7498 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
7499 #define DC2B0 CCP2CONbits.DC2B0 // bit 4
7500 #define DC2B1 CCP2CONbits.DC2B1 // bit 5
7502 #define CCP3M0 CCP3CONbits.CCP3M0 // bit 0
7503 #define CCP3M1 CCP3CONbits.CCP3M1 // bit 1
7504 #define CCP3M2 CCP3CONbits.CCP3M2 // bit 2
7505 #define CCP3M3 CCP3CONbits.CCP3M3 // bit 3
7506 #define DC3B0 CCP3CONbits.DC3B0 // bit 4
7507 #define DC3B1 CCP3CONbits.DC3B1 // bit 5
7509 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
7510 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
7511 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
7512 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
7513 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
7514 #define CLKRSLR CLKRCONbits.CLKRSLR // bit 5
7515 #define CLKROE CLKRCONbits.CLKROE // bit 6
7516 #define CLKREN CLKRCONbits.CLKREN // bit 7
7518 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
7519 #define C1HYS CM1CON0bits.C1HYS // bit 1
7520 #define C1SP CM1CON0bits.C1SP // bit 2
7521 #define C1ZLF CM1CON0bits.C1ZLF // bit 3
7522 #define C1POL CM1CON0bits.C1POL // bit 4
7523 #define C1OE CM1CON0bits.C1OE // bit 5
7524 #define C1OUT CM1CON0bits.C1OUT // bit 6
7525 #define C1ON CM1CON0bits.C1ON // bit 7
7527 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
7528 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
7529 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
7530 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
7531 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
7532 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
7533 #define C1INTN CM1CON1bits.C1INTN // bit 6
7534 #define C1INTP CM1CON1bits.C1INTP // bit 7
7536 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
7537 #define C2HYS CM2CON0bits.C2HYS // bit 1
7538 #define C2SP CM2CON0bits.C2SP // bit 2
7539 #define C2ZLF CM2CON0bits.C2ZLF // bit 3
7540 #define C2POL CM2CON0bits.C2POL // bit 4
7541 #define C2OE CM2CON0bits.C2OE // bit 5
7542 #define C2OUT CM2CON0bits.C2OUT // bit 6
7543 #define C2ON CM2CON0bits.C2ON // bit 7
7545 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
7546 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
7547 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
7548 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 3
7549 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 4
7550 #define C2PCH2 CM2CON1bits.C2PCH2 // bit 5
7551 #define C2INTN CM2CON1bits.C2INTN // bit 6
7552 #define C2INTP CM2CON1bits.C2INTP // bit 7
7554 #define C3SYNC CM3CON0bits.C3SYNC // bit 0
7555 #define C3HYS CM3CON0bits.C3HYS // bit 1
7556 #define C3SP CM3CON0bits.C3SP // bit 2
7557 #define C3ZLF CM3CON0bits.C3ZLF // bit 3
7558 #define C3POL CM3CON0bits.C3POL // bit 4
7559 #define C3OE CM3CON0bits.C3OE // bit 5
7560 #define C3OUT CM3CON0bits.C3OUT // bit 6
7561 #define C3ON CM3CON0bits.C3ON // bit 7
7563 #define C3NCH0 CM3CON1bits.C3NCH0 // bit 0
7564 #define C3NCH1 CM3CON1bits.C3NCH1 // bit 1
7565 #define C3NCH2 CM3CON1bits.C3NCH2 // bit 2
7566 #define C3PCH0 CM3CON1bits.C3PCH0 // bit 3
7567 #define C3PCH1 CM3CON1bits.C3PCH1 // bit 4
7568 #define C3PCH2 CM3CON1bits.C3PCH2 // bit 5
7569 #define C3INTN CM3CON1bits.C3INTN // bit 6
7570 #define C3INTP CM3CON1bits.C3INTP // bit 7
7572 #define C4SYNC CM4CON0bits.C4SYNC // bit 0
7573 #define C4HYS CM4CON0bits.C4HYS // bit 1
7574 #define C4SP CM4CON0bits.C4SP // bit 2
7575 #define C4ZLF CM4CON0bits.C4ZLF // bit 3
7576 #define C4POL CM4CON0bits.C4POL // bit 4
7577 #define C4OE CM4CON0bits.C4OE // bit 5
7578 #define C4OUT CM4CON0bits.C4OUT // bit 6
7579 #define C4ON CM4CON0bits.C4ON // bit 7
7581 #define C4NCH0 CM4CON1bits.C4NCH0 // bit 0
7582 #define C4NCH1 CM4CON1bits.C4NCH1 // bit 1
7583 #define C4NCH2 CM4CON1bits.C4NCH2 // bit 2
7584 #define C4PCH0 CM4CON1bits.C4PCH0 // bit 3
7585 #define C4PCH1 CM4CON1bits.C4PCH1 // bit 4
7586 #define C4PCH2 CM4CON1bits.C4PCH2 // bit 5
7587 #define C4INTN CM4CON1bits.C4INTN // bit 6
7588 #define C4INTP CM4CON1bits.C4INTP // bit 7
7590 #define MC1OUT CMOUTbits.MC1OUT // bit 0
7591 #define MC2OUT CMOUTbits.MC2OUT // bit 1
7592 #define MC3OUT CMOUTbits.MC3OUT // bit 2
7593 #define MC4OUT CMOUTbits.MC4OUT // bit 3
7595 #define DACNSS DACCON0bits.DACNSS // bit 0
7596 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
7597 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
7598 #define DACOE2 DACCON0bits.DACOE2 // bit 4
7599 #define DACOE1 DACCON0bits.DACOE1 // bit 5
7600 #define DACEN DACCON0bits.DACEN // bit 7
7602 #define DACR0 DACCON1bits.DACR0 // bit 0
7603 #define DACR1 DACCON1bits.DACR1 // bit 1
7604 #define DACR2 DACCON1bits.DACR2 // bit 2
7605 #define DACR3 DACCON1bits.DACR3 // bit 3
7606 #define DACR4 DACCON1bits.DACR4 // bit 4
7607 #define DACR5 DACCON1bits.DACR5 // bit 5
7608 #define DACR6 DACCON1bits.DACR6 // bit 6
7609 #define DACR7 DACCON1bits.DACR7 // bit 7
7611 #define RD EECON1bits.RD // bit 0
7612 #define WR EECON1bits.WR // bit 1
7613 #define WREN EECON1bits.WREN // bit 2
7614 #define WRERR EECON1bits.WRERR // bit 3
7615 #define FREE EECON1bits.FREE // bit 4
7616 #define LWLO EECON1bits.LWLO // bit 5
7617 #define CFGS EECON1bits.CFGS // bit 6
7618 #define EEPGD EECON1bits.EEPGD // bit 7
7620 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
7621 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
7622 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
7623 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
7624 #define TSRNG FVRCONbits.TSRNG // bit 4
7625 #define TSEN FVRCONbits.TSEN // bit 5
7626 #define FVRRDY FVRCONbits.FVRRDY // bit 6
7627 #define FVREN FVRCONbits.FVREN // bit 7
7629 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
7630 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
7631 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
7632 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
7633 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
7634 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
7635 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
7636 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
7638 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
7639 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
7640 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
7641 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
7642 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
7643 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
7644 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
7645 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
7647 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
7648 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
7649 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
7650 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
7651 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
7652 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
7653 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
7654 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
7656 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
7658 #define IOCIF INTCONbits.IOCIF // bit 0
7659 #define INTF INTCONbits.INTF // bit 1
7660 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
7661 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
7662 #define IOCIE INTCONbits.IOCIE // bit 3
7663 #define INTE INTCONbits.INTE // bit 4
7664 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
7665 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
7666 #define PEIE INTCONbits.PEIE // bit 6
7667 #define GIE INTCONbits.GIE // bit 7
7669 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
7670 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
7671 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
7672 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
7673 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
7674 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
7675 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
7676 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
7678 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
7679 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
7680 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
7681 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
7682 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
7683 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
7684 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
7685 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
7687 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
7688 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
7689 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
7690 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
7691 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
7692 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
7693 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
7694 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
7696 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
7697 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
7698 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
7699 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
7700 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
7701 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
7702 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
7703 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
7705 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
7706 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
7707 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
7708 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
7709 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
7710 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
7711 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
7712 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
7714 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
7715 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
7716 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
7717 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
7718 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
7719 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
7720 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
7721 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
7723 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
7724 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
7725 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
7726 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
7727 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
7728 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
7729 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
7730 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
7732 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
7733 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
7734 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
7735 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
7736 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
7737 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
7738 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
7739 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
7741 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
7742 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
7743 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
7744 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
7745 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
7746 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
7747 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
7748 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
7750 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
7752 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
7754 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
7756 #define LATA0 LATAbits.LATA0 // bit 0
7757 #define LATA1 LATAbits.LATA1 // bit 1
7758 #define LATA2 LATAbits.LATA2 // bit 2
7759 #define LATA3 LATAbits.LATA3 // bit 3
7760 #define LATA4 LATAbits.LATA4 // bit 4
7761 #define LATA5 LATAbits.LATA5 // bit 5
7762 #define LATA6 LATAbits.LATA6 // bit 6
7763 #define LATA7 LATAbits.LATA7 // bit 7
7765 #define LATB0 LATBbits.LATB0 // bit 0
7766 #define LATB1 LATBbits.LATB1 // bit 1
7767 #define LATB2 LATBbits.LATB2 // bit 2
7768 #define LATB3 LATBbits.LATB3 // bit 3
7769 #define LATB4 LATBbits.LATB4 // bit 4
7770 #define LATB5 LATBbits.LATB5 // bit 5
7771 #define LATB6 LATBbits.LATB6 // bit 6
7772 #define LATB7 LATBbits.LATB7 // bit 7
7774 #define LATC0 LATCbits.LATC0 // bit 0
7775 #define LATC1 LATCbits.LATC1 // bit 1
7776 #define LATC2 LATCbits.LATC2 // bit 2
7777 #define LATC3 LATCbits.LATC3 // bit 3
7778 #define LATC4 LATCbits.LATC4 // bit 4
7779 #define LATC5 LATCbits.LATC5 // bit 5
7780 #define LATC6 LATCbits.LATC6 // bit 6
7781 #define LATC7 LATCbits.LATC7 // bit 7
7783 #define ODCONA0 ODCONAbits.ODCONA0 // bit 0
7784 #define ODCONA1 ODCONAbits.ODCONA1 // bit 1
7785 #define ODCONA2 ODCONAbits.ODCONA2 // bit 2
7786 #define ODCONA3 ODCONAbits.ODCONA3 // bit 3
7787 #define ODCONA4 ODCONAbits.ODCONA4 // bit 4
7788 #define ODCONA5 ODCONAbits.ODCONA5 // bit 5
7789 #define ODCONA6 ODCONAbits.ODCONA6 // bit 6
7790 #define ODCONA7 ODCONAbits.ODCONA7 // bit 7
7792 #define ODCONB0 ODCONBbits.ODCONB0 // bit 0
7793 #define ODCONB1 ODCONBbits.ODCONB1 // bit 1
7794 #define ODCONB2 ODCONBbits.ODCONB2 // bit 2
7795 #define ODCONB3 ODCONBbits.ODCONB3 // bit 3
7796 #define ODCONB4 ODCONBbits.ODCONB4 // bit 4
7797 #define ODCONB5 ODCONBbits.ODCONB5 // bit 5
7798 #define ODCONB6 ODCONBbits.ODCONB6 // bit 6
7799 #define ODCONB7 ODCONBbits.ODCONB7 // bit 7
7801 #define ODCONC0 ODCONCbits.ODCONC0 // bit 0
7802 #define ODCONC1 ODCONCbits.ODCONC1 // bit 1
7803 #define ODCONC2 ODCONCbits.ODCONC2 // bit 2
7804 #define ODCONC3 ODCONCbits.ODCONC3 // bit 3
7805 #define ODCONC4 ODCONCbits.ODCONC4 // bit 4
7806 #define ODCONC5 ODCONCbits.ODCONC5 // bit 5
7807 #define ODCONC6 ODCONCbits.ODCONC6 // bit 6
7808 #define ODCONC7 ODCONCbits.ODCONC7 // bit 7
7810 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0, shadows bit in OPA1CONbits
7811 #define PCH0 OPA1CONbits.PCH0 // bit 0, shadows bit in OPA1CONbits
7812 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1, shadows bit in OPA1CONbits
7813 #define PCH1 OPA1CONbits.PCH1 // bit 1, shadows bit in OPA1CONbits
7814 #define OPA1SP OPA1CONbits.OPA1SP // bit 6, shadows bit in OPA1CONbits
7815 #define SP OPA1CONbits.SP // bit 6, shadows bit in OPA1CONbits
7816 #define OPA1EN OPA1CONbits.OPA1EN // bit 7, shadows bit in OPA1CONbits
7817 #define EN OPA1CONbits.EN // bit 7, shadows bit in OPA1CONbits
7819 #define PS0 OPTION_REGbits.PS0 // bit 0
7820 #define PS1 OPTION_REGbits.PS1 // bit 1
7821 #define PS2 OPTION_REGbits.PS2 // bit 2
7822 #define PSA OPTION_REGbits.PSA // bit 3
7823 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
7824 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
7825 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
7826 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
7827 #define INTEDG OPTION_REGbits.INTEDG // bit 6
7828 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
7830 #define SCS0 OSCCONbits.SCS0 // bit 0
7831 #define SCS1 OSCCONbits.SCS1 // bit 1
7832 #define IRCF0 OSCCONbits.IRCF0 // bit 3
7833 #define IRCF1 OSCCONbits.IRCF1 // bit 4
7834 #define IRCF2 OSCCONbits.IRCF2 // bit 5
7835 #define IRCF3 OSCCONbits.IRCF3 // bit 6
7836 #define SPLLEN OSCCONbits.SPLLEN // bit 7
7838 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
7839 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
7840 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
7841 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
7842 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
7843 #define OSTS OSCSTATbits.OSTS // bit 5
7844 #define PLLR OSCSTATbits.PLLR // bit 6
7845 #define T1OSCR OSCSTATbits.T1OSCR // bit 7
7847 #define TUN0 OSCTUNEbits.TUN0 // bit 0
7848 #define TUN1 OSCTUNEbits.TUN1 // bit 1
7849 #define TUN2 OSCTUNEbits.TUN2 // bit 2
7850 #define TUN3 OSCTUNEbits.TUN3 // bit 3
7851 #define TUN4 OSCTUNEbits.TUN4 // bit 4
7852 #define TUN5 OSCTUNEbits.TUN5 // bit 5
7854 #define NOT_BOR PCONbits.NOT_BOR // bit 0
7855 #define NOT_POR PCONbits.NOT_POR // bit 1
7856 #define NOT_RI PCONbits.NOT_RI // bit 2
7857 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
7858 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
7859 #define STKUNF PCONbits.STKUNF // bit 6
7860 #define STKOVF PCONbits.STKOVF // bit 7
7862 #define TMR1IE PIE1bits.TMR1IE // bit 0
7863 #define TMR2IE PIE1bits.TMR2IE // bit 1
7864 #define CCP1IE PIE1bits.CCP1IE // bit 2
7865 #define SSP1IE PIE1bits.SSP1IE // bit 3
7866 #define TXIE PIE1bits.TXIE // bit 4
7867 #define RCIE PIE1bits.RCIE // bit 5
7868 #define ADIE PIE1bits.ADIE // bit 6
7869 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
7871 #define CCP2IE PIE2bits.CCP2IE // bit 0
7872 #define C3IE PIE2bits.C3IE // bit 1
7873 #define C4IE PIE2bits.C4IE // bit 2
7874 #define BCL1IE PIE2bits.BCL1IE // bit 3
7875 #define EEIE PIE2bits.EEIE // bit 4
7876 #define C1IE PIE2bits.C1IE // bit 5
7877 #define C2IE PIE2bits.C2IE // bit 6
7878 #define OSFIE PIE2bits.OSFIE // bit 7
7880 #define CCP3IE PIE3bits.CCP3IE // bit 4
7882 #define PSMC1SIE PIE4bits.PSMC1SIE // bit 0
7883 #define PSMC2SIE PIE4bits.PSMC2SIE // bit 1
7884 #define PSMC3SIE PIE4bits.PSMC3SIE // bit 2
7885 #define PSMC1TIE PIE4bits.PSMC1TIE // bit 4
7886 #define PSMC2TIE PIE4bits.PSMC2TIE // bit 5
7887 #define PSMC3TIE PIE4bits.PSMC3TIE // bit 6, shadows bit in PIE4bits
7888 #define PMSC3TIE PIE4bits.PMSC3TIE // bit 6, shadows bit in PIE4bits
7890 #define TMR1IF PIR1bits.TMR1IF // bit 0
7891 #define TMR2IF PIR1bits.TMR2IF // bit 1
7892 #define CCP1IF PIR1bits.CCP1IF // bit 2
7893 #define SSP1IF PIR1bits.SSP1IF // bit 3
7894 #define TXIF PIR1bits.TXIF // bit 4
7895 #define RCIF PIR1bits.RCIF // bit 5
7896 #define ADIF PIR1bits.ADIF // bit 6
7897 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
7899 #define CCP2IF PIR2bits.CCP2IF // bit 0
7900 #define C3IF PIR2bits.C3IF // bit 1
7901 #define C4IF PIR2bits.C4IF // bit 2
7902 #define BCL1IF PIR2bits.BCL1IF // bit 3
7903 #define EEIF PIR2bits.EEIF // bit 4
7904 #define C1IF PIR2bits.C1IF // bit 5
7905 #define C2IF PIR2bits.C2IF // bit 6
7906 #define OSFIF PIR2bits.OSFIF // bit 7
7908 #define CCP3IF PIR3bits.CCP3IF // bit 4
7910 #define PSMC1SIF PIR4bits.PSMC1SIF // bit 0
7911 #define PSMC2SIF PIR4bits.PSMC2SIF // bit 1
7912 #define PSMC3SIF PIR4bits.PSMC3SIF // bit 2
7913 #define PSMC1TIF PIR4bits.PSMC1TIF // bit 4
7914 #define PSMC2TIF PIR4bits.PSMC2TIF // bit 5
7915 #define PSMC3TIF PIR4bits.PSMC3TIF // bit 6
7917 #define RA0 PORTAbits.RA0 // bit 0
7918 #define RA1 PORTAbits.RA1 // bit 1
7919 #define RA2 PORTAbits.RA2 // bit 2
7920 #define RA3 PORTAbits.RA3 // bit 3
7921 #define RA4 PORTAbits.RA4 // bit 4
7922 #define RA5 PORTAbits.RA5 // bit 5
7923 #define RA6 PORTAbits.RA6 // bit 6
7924 #define RA7 PORTAbits.RA7 // bit 7
7926 #define RB0 PORTBbits.RB0 // bit 0
7927 #define RB1 PORTBbits.RB1 // bit 1
7928 #define RB2 PORTBbits.RB2 // bit 2
7929 #define RB3 PORTBbits.RB3 // bit 3
7930 #define RB4 PORTBbits.RB4 // bit 4
7931 #define RB5 PORTBbits.RB5 // bit 5
7932 #define RB6 PORTBbits.RB6 // bit 6
7933 #define RB7 PORTBbits.RB7 // bit 7
7935 #define RC0 PORTCbits.RC0 // bit 0
7936 #define RC1 PORTCbits.RC1 // bit 1
7937 #define RC2 PORTCbits.RC2 // bit 2
7938 #define RC3 PORTCbits.RC3 // bit 3
7939 #define RC4 PORTCbits.RC4 // bit 4
7940 #define RC5 PORTCbits.RC5 // bit 5
7941 #define RC6 PORTCbits.RC6 // bit 6
7942 #define RC7 PORTCbits.RC7 // bit 7
7944 #define RE3 PORTEbits.RE3 // bit 3
7946 #define P1ASDOV PSMC1ASDCbits.P1ASDOV // bit 0
7947 #define P1ARSEN PSMC1ASDCbits.P1ARSEN // bit 5
7948 #define P1ASDEN PSMC1ASDCbits.P1ASDEN // bit 6
7949 #define P1ASE PSMC1ASDCbits.P1ASE // bit 7
7951 #define P1ASDLA PSMC1ASDLbits.P1ASDLA // bit 0
7952 #define P1ASDLB PSMC1ASDLbits.P1ASDLB // bit 1
7953 #define P1ASDLC PSMC1ASDLbits.P1ASDLC // bit 2
7954 #define P1ASDLD PSMC1ASDLbits.P1ASDLD // bit 3
7955 #define P1ASDLE PSMC1ASDLbits.P1ASDLE // bit 4
7956 #define P1ASDLF PSMC1ASDLbits.P1ASDLF // bit 5
7958 #define P1ASDSC1 PSMC1ASDSbits.P1ASDSC1 // bit 1
7959 #define P1ASDSC2 PSMC1ASDSbits.P1ASDSC2 // bit 2
7960 #define P1ASDSC3 PSMC1ASDSbits.P1ASDSC3 // bit 3
7961 #define P1ASDSC4 PSMC1ASDSbits.P1ASDSC4 // bit 4
7962 #define P1ASDSIN PSMC1ASDSbits.P1ASDSIN // bit 7
7964 #define PSMC1BLKF0 PSMC1BLKFbits.PSMC1BLKF0 // bit 0
7965 #define PSMC1BLKF1 PSMC1BLKFbits.PSMC1BLKF1 // bit 1
7966 #define PSMC1BLKF2 PSMC1BLKFbits.PSMC1BLKF2 // bit 2
7967 #define PSMC1BLKF3 PSMC1BLKFbits.PSMC1BLKF3 // bit 3
7968 #define PSMC1BLKF4 PSMC1BLKFbits.PSMC1BLKF4 // bit 4
7969 #define PSMC1BLKF5 PSMC1BLKFbits.PSMC1BLKF5 // bit 5
7970 #define PSMC1BLKF6 PSMC1BLKFbits.PSMC1BLKF6 // bit 6
7971 #define PSMC1BLKF7 PSMC1BLKFbits.PSMC1BLKF7 // bit 7
7973 #define PSMC1BLKR0 PSMC1BLKRbits.PSMC1BLKR0 // bit 0
7974 #define PSMC1BLKR1 PSMC1BLKRbits.PSMC1BLKR1 // bit 1
7975 #define PSMC1BLKR2 PSMC1BLKRbits.PSMC1BLKR2 // bit 2
7976 #define PSMC1BLKR3 PSMC1BLKRbits.PSMC1BLKR3 // bit 3
7977 #define PSMC1BLKR4 PSMC1BLKRbits.PSMC1BLKR4 // bit 4
7978 #define PSMC1BLKR5 PSMC1BLKRbits.PSMC1BLKR5 // bit 5
7979 #define PSMC1BLKR6 PSMC1BLKRbits.PSMC1BLKR6 // bit 6
7980 #define PSMC1BLKR7 PSMC1BLKRbits.PSMC1BLKR7 // bit 7
7982 #define P1REBM0 PSMC1BLNKbits.P1REBM0 // bit 0
7983 #define P1REBM1 PSMC1BLNKbits.P1REBM1 // bit 1
7984 #define P1FEBM0 PSMC1BLNKbits.P1FEBM0 // bit 4
7985 #define P1FEBM1 PSMC1BLNKbits.P1FEBM1 // bit 5
7987 #define P1CSRC0 PSMC1CLKbits.P1CSRC0 // bit 0
7988 #define P1CSRC1 PSMC1CLKbits.P1CSRC1 // bit 1
7989 #define P1CPRE0 PSMC1CLKbits.P1CPRE0 // bit 4
7990 #define P1CPRE1 PSMC1CLKbits.P1CPRE1 // bit 5
7992 #define P1MODE0 PSMC1CONbits.P1MODE0 // bit 0
7993 #define P1MODE1 PSMC1CONbits.P1MODE1 // bit 1
7994 #define P1MODE2 PSMC1CONbits.P1MODE2 // bit 2
7995 #define P1MODE3 PSMC1CONbits.P1MODE3 // bit 3
7996 #define P1DBRE PSMC1CONbits.P1DBRE // bit 4
7997 #define P1DBFE PSMC1CONbits.P1DBFE // bit 5
7998 #define PSMC1LD PSMC1CONbits.PSMC1LD // bit 6
7999 #define PSMC1EN PSMC1CONbits.PSMC1EN // bit 7
8001 #define PSMC1DBF0 PSMC1DBFbits.PSMC1DBF0 // bit 0
8002 #define PSMC1DBF1 PSMC1DBFbits.PSMC1DBF1 // bit 1
8003 #define PSMC1DBF2 PSMC1DBFbits.PSMC1DBF2 // bit 2
8004 #define PSMC1DBF3 PSMC1DBFbits.PSMC1DBF3 // bit 3
8005 #define PSMC1DBF4 PSMC1DBFbits.PSMC1DBF4 // bit 4
8006 #define PSMC1DBF5 PSMC1DBFbits.PSMC1DBF5 // bit 5
8007 #define PSMC1DBF6 PSMC1DBFbits.PSMC1DBF6 // bit 6
8008 #define PSMC1DBF7 PSMC1DBFbits.PSMC1DBF7 // bit 7
8010 #define PSMC1DBR0 PSMC1DBRbits.PSMC1DBR0 // bit 0
8011 #define PSMC1DBR1 PSMC1DBRbits.PSMC1DBR1 // bit 1
8012 #define PSMC1DBR2 PSMC1DBRbits.PSMC1DBR2 // bit 2
8013 #define PSMC1DBR3 PSMC1DBRbits.PSMC1DBR3 // bit 3
8014 #define PSMC1DBR4 PSMC1DBRbits.PSMC1DBR4 // bit 4
8015 #define PSMC1DBR5 PSMC1DBRbits.PSMC1DBR5 // bit 5
8016 #define PSMC1DBR6 PSMC1DBRbits.PSMC1DBR6 // bit 6
8017 #define PSMC1DBR7 PSMC1DBRbits.PSMC1DBR7 // bit 7
8019 #define PSMC1DC8 PSMC1DCHbits.PSMC1DC8 // bit 0
8020 #define PSMC1DC9 PSMC1DCHbits.PSMC1DC9 // bit 1
8021 #define PSMC1DC10 PSMC1DCHbits.PSMC1DC10 // bit 2
8022 #define PSMC1DC11 PSMC1DCHbits.PSMC1DC11 // bit 3
8023 #define PSMC1DC12 PSMC1DCHbits.PSMC1DC12 // bit 4
8024 #define PSMC1DC13 PSMC1DCHbits.PSMC1DC13 // bit 5
8025 #define PSMC1DC14 PSMC1DCHbits.PSMC1DC14 // bit 6
8026 #define PSMC1DC15 PSMC1DCHbits.PSMC1DC15 // bit 7
8028 #define PSMC1DC0 PSMC1DCLbits.PSMC1DC0 // bit 0
8029 #define PSMC1DC1 PSMC1DCLbits.PSMC1DC1 // bit 1
8030 #define PSMC1DC2 PSMC1DCLbits.PSMC1DC2 // bit 2
8031 #define PSMC1DC3 PSMC1DCLbits.PSMC1DC3 // bit 3
8032 #define PSMC1DC4 PSMC1DCLbits.PSMC1DC4 // bit 4
8033 #define PSMC1DC5 PSMC1DCLbits.PSMC1DC5 // bit 5
8034 #define PSMC1DC6 PSMC1DCLbits.PSMC1DC6 // bit 6
8035 #define PSMC1DC7 PSMC1DCLbits.PSMC1DC7 // bit 7
8037 #define P1DCST PSMC1DCSbits.P1DCST // bit 0
8038 #define P1DCSC1 PSMC1DCSbits.P1DCSC1 // bit 1
8039 #define P1DCSC2 PSMC1DCSbits.P1DCSC2 // bit 2
8040 #define P1DCSC3 PSMC1DCSbits.P1DCSC3 // bit 3
8041 #define P1DCSC4 PSMC1DCSbits.P1DCSC4 // bit 4
8042 #define P1DCSIN PSMC1DCSbits.P1DCSIN // bit 7
8044 #define P1FEBSC1 PSMC1FEBSbits.P1FEBSC1 // bit 1
8045 #define P1FEBSC2 PSMC1FEBSbits.P1FEBSC2 // bit 2
8046 #define P1FEBSC3 PSMC1FEBSbits.P1FEBSC3 // bit 3
8047 #define P1FEBSC4 PSMC1FEBSbits.P1FEBSC4 // bit 4
8048 #define P1FEBSIN PSMC1FEBSbits.P1FEBSIN // bit 7
8050 #define PSMC1FFA0 PSMC1FFAbits.PSMC1FFA0 // bit 0
8051 #define PSMC1FFA1 PSMC1FFAbits.PSMC1FFA1 // bit 1
8052 #define PSMC1FFA2 PSMC1FFAbits.PSMC1FFA2 // bit 2
8053 #define PSMC1FFA3 PSMC1FFAbits.PSMC1FFA3 // bit 3
8055 #define P1TPRIF PSMC1INTbits.P1TPRIF // bit 0
8056 #define P1TDCIF PSMC1INTbits.P1TDCIF // bit 1
8057 #define P1TPHIF PSMC1INTbits.P1TPHIF // bit 2
8058 #define P1TOVIF PSMC1INTbits.P1TOVIF // bit 3
8059 #define P1TPRIE PSMC1INTbits.P1TPRIE // bit 4
8060 #define P1TDCIE PSMC1INTbits.P1TDCIE // bit 5
8061 #define P1TPHIE PSMC1INTbits.P1TPHIE // bit 6
8062 #define P1TOVIE PSMC1INTbits.P1TOVIE // bit 7
8064 #define P1MSRC0 PSMC1MDLbits.P1MSRC0 // bit 0
8065 #define P1MSRC1 PSMC1MDLbits.P1MSRC1 // bit 1
8066 #define P1MSRC2 PSMC1MDLbits.P1MSRC2 // bit 2
8067 #define P1MSRC3 PSMC1MDLbits.P1MSRC3 // bit 3
8068 #define P1MDLBIT PSMC1MDLbits.P1MDLBIT // bit 5
8069 #define P1MDLPOL PSMC1MDLbits.P1MDLPOL // bit 6
8070 #define P1MDLEN PSMC1MDLbits.P1MDLEN // bit 7
8072 #define P1OEA PSMC1OENbits.P1OEA // bit 0
8073 #define P1OEB PSMC1OENbits.P1OEB // bit 1
8074 #define P1OEC PSMC1OENbits.P1OEC // bit 2
8075 #define P1OED PSMC1OENbits.P1OED // bit 3
8076 #define P1OEE PSMC1OENbits.P1OEE // bit 4
8077 #define P1OEF PSMC1OENbits.P1OEF // bit 5
8079 #define PSMC1PH8 PSMC1PHHbits.PSMC1PH8 // bit 0
8080 #define PSMC1PH9 PSMC1PHHbits.PSMC1PH9 // bit 1
8081 #define PSMC1PH10 PSMC1PHHbits.PSMC1PH10 // bit 2
8082 #define PSMC1PH11 PSMC1PHHbits.PSMC1PH11 // bit 3
8083 #define PSMC1PH12 PSMC1PHHbits.PSMC1PH12 // bit 4
8084 #define PSMC1PH13 PSMC1PHHbits.PSMC1PH13 // bit 5
8085 #define PSMC1PH14 PSMC1PHHbits.PSMC1PH14 // bit 6
8086 #define PSMC1PH15 PSMC1PHHbits.PSMC1PH15 // bit 7
8088 #define PSMC1PH0 PSMC1PHLbits.PSMC1PH0 // bit 0
8089 #define PSMC1PH1 PSMC1PHLbits.PSMC1PH1 // bit 1
8090 #define PSMC1PH2 PSMC1PHLbits.PSMC1PH2 // bit 2
8091 #define PSMC1PH3 PSMC1PHLbits.PSMC1PH3 // bit 3
8092 #define PSMC1PH4 PSMC1PHLbits.PSMC1PH4 // bit 4
8093 #define PSMC1PH5 PSMC1PHLbits.PSMC1PH5 // bit 5
8094 #define PSMC1PH6 PSMC1PHLbits.PSMC1PH6 // bit 6
8095 #define PSMC1PH7 PSMC1PHLbits.PSMC1PH7 // bit 7
8097 #define P1PHST PSMC1PHSbits.P1PHST // bit 0
8098 #define P1PHSC1 PSMC1PHSbits.P1PHSC1 // bit 1
8099 #define P1PHSC2 PSMC1PHSbits.P1PHSC2 // bit 2
8100 #define P1PHSC3 PSMC1PHSbits.P1PHSC3 // bit 3
8101 #define P1PHSC4 PSMC1PHSbits.P1PHSC4 // bit 4
8102 #define P1PHSIN PSMC1PHSbits.P1PHSIN // bit 7
8104 #define P1POLA PSMC1POLbits.P1POLA // bit 0
8105 #define P1POLB PSMC1POLbits.P1POLB // bit 1
8106 #define P1POLC PSMC1POLbits.P1POLC // bit 2
8107 #define P1POLD PSMC1POLbits.P1POLD // bit 3
8108 #define P1POLE PSMC1POLbits.P1POLE // bit 4
8109 #define P1POLF PSMC1POLbits.P1POLF // bit 5
8110 #define P1INPOL PSMC1POLbits.P1INPOL // bit 6
8112 #define PSMC1PR8 PSMC1PRHbits.PSMC1PR8 // bit 0
8113 #define PSMC1PR9 PSMC1PRHbits.PSMC1PR9 // bit 1
8114 #define PSMC1PR10 PSMC1PRHbits.PSMC1PR10 // bit 2
8115 #define PSMC1PR11 PSMC1PRHbits.PSMC1PR11 // bit 3
8116 #define PSMC1PR12 PSMC1PRHbits.PSMC1PR12 // bit 4
8117 #define PSMC1PR13 PSMC1PRHbits.PSMC1PR13 // bit 5
8118 #define PSMC1PR14 PSMC1PRHbits.PSMC1PR14 // bit 6
8119 #define PSMC1PR15 PSMC1PRHbits.PSMC1PR15 // bit 7
8121 #define PSMC1PR0 PSMC1PRLbits.PSMC1PR0 // bit 0
8122 #define PSMC1PR1 PSMC1PRLbits.PSMC1PR1 // bit 1
8123 #define PSMC1PR2 PSMC1PRLbits.PSMC1PR2 // bit 2
8124 #define PSMC1PR3 PSMC1PRLbits.PSMC1PR3 // bit 3
8125 #define PSMC1PR4 PSMC1PRLbits.PSMC1PR4 // bit 4
8126 #define PSMC1PR5 PSMC1PRLbits.PSMC1PR5 // bit 5
8127 #define PSMC1PR6 PSMC1PRLbits.PSMC1PR6 // bit 6
8128 #define PSMC1PR7 PSMC1PRLbits.PSMC1PR7 // bit 7
8130 #define P1PRST PSMC1PRSbits.P1PRST // bit 0
8131 #define P1PRSC1 PSMC1PRSbits.P1PRSC1 // bit 1
8132 #define P1PRSC2 PSMC1PRSbits.P1PRSC2 // bit 2
8133 #define P1PRSC3 PSMC1PRSbits.P1PRSC3 // bit 3
8134 #define P1PRSC4 PSMC1PRSbits.P1PRSC4 // bit 4
8135 #define P1PRSIN PSMC1PRSbits.P1PRSIN // bit 7
8137 #define P1REBSC1 PSMC1REBSbits.P1REBSC1 // bit 1
8138 #define P1REBSC2 PSMC1REBSbits.P1REBSC2 // bit 2
8139 #define P1REBSC3 PSMC1REBSbits.P1REBSC3 // bit 3
8140 #define P1REBSC4 PSMC1REBSbits.P1REBSC4 // bit 4
8141 #define P1REBSIN PSMC1REBSbits.P1REBSIN // bit 7
8143 #define P1STRA PSMC1STR0bits.P1STRA // bit 0
8144 #define P1STRB PSMC1STR0bits.P1STRB // bit 1
8145 #define P1STRC PSMC1STR0bits.P1STRC // bit 2
8146 #define P1STRD PSMC1STR0bits.P1STRD // bit 3
8147 #define P1STRE PSMC1STR0bits.P1STRE // bit 4
8148 #define P1STRF PSMC1STR0bits.P1STRF // bit 5
8150 #define P1HSMEN PSMC1STR1bits.P1HSMEN // bit 0
8151 #define P1LSMEN PSMC1STR1bits.P1LSMEN // bit 1
8152 #define P1SSYNC PSMC1STR1bits.P1SSYNC // bit 7
8154 #define P1SYNC0 PSMC1SYNCbits.P1SYNC0 // bit 0
8155 #define P1SYNC1 PSMC1SYNCbits.P1SYNC1 // bit 1
8156 #define P1SYNC2 PSMC1SYNCbits.P1SYNC2 // bit 2
8157 #define P1DCPOL PSMC1SYNCbits.P1DCPOL // bit 5
8158 #define P1PRPOL PSMC1SYNCbits.P1PRPOL // bit 6
8159 #define P1POFST PSMC1SYNCbits.P1POFST // bit 7
8161 #define PSMC1TMR8 PSMC1TMRHbits.PSMC1TMR8 // bit 0
8162 #define PSMC1TMR9 PSMC1TMRHbits.PSMC1TMR9 // bit 1
8163 #define PSMC1TMR10 PSMC1TMRHbits.PSMC1TMR10 // bit 2
8164 #define PSMC1TMR11 PSMC1TMRHbits.PSMC1TMR11 // bit 3
8165 #define PSMC1TMR12 PSMC1TMRHbits.PSMC1TMR12 // bit 4
8166 #define PSMC1TMR13 PSMC1TMRHbits.PSMC1TMR13 // bit 5
8167 #define PSMC1TMR14 PSMC1TMRHbits.PSMC1TMR14 // bit 6
8168 #define PSMC1TMR15 PSMC1TMRHbits.PSMC1TMR15 // bit 7
8170 #define PSMC1TMR0 PSMC1TMRLbits.PSMC1TMR0 // bit 0
8171 #define PSMC1TMR1 PSMC1TMRLbits.PSMC1TMR1 // bit 1
8172 #define PSMC1TMR2 PSMC1TMRLbits.PSMC1TMR2 // bit 2
8173 #define PSMC1TMR3 PSMC1TMRLbits.PSMC1TMR3 // bit 3
8174 #define PSMC1TMR4 PSMC1TMRLbits.PSMC1TMR4 // bit 4
8175 #define PSMC1TMR5 PSMC1TMRLbits.PSMC1TMR5 // bit 5
8176 #define PSMC1TMR6 PSMC1TMRLbits.PSMC1TMR6 // bit 6
8177 #define PSMC1TMR7 PSMC1TMRLbits.PSMC1TMR7 // bit 7
8179 #define P2ASDOV PSMC2ASDCbits.P2ASDOV // bit 0
8180 #define P2ARSEN PSMC2ASDCbits.P2ARSEN // bit 5
8181 #define P2ASDEN PSMC2ASDCbits.P2ASDEN // bit 6
8182 #define P2ASE PSMC2ASDCbits.P2ASE // bit 7
8184 #define P2ASDLA PSMC2ASDLbits.P2ASDLA // bit 0
8185 #define P2ASDLB PSMC2ASDLbits.P2ASDLB // bit 1
8187 #define P2ASDSC1 PSMC2ASDSbits.P2ASDSC1 // bit 1
8188 #define P2ASDSC2 PSMC2ASDSbits.P2ASDSC2 // bit 2
8189 #define P2ASDSC3 PSMC2ASDSbits.P2ASDSC3 // bit 3
8190 #define P2ASDSC4 PSMC2ASDSbits.P2ASDSC4 // bit 4
8191 #define P2ASDSIN PSMC2ASDSbits.P2ASDSIN // bit 7
8193 #define PSMC2BLKF0 PSMC2BLKFbits.PSMC2BLKF0 // bit 0
8194 #define PSMC2BLKF1 PSMC2BLKFbits.PSMC2BLKF1 // bit 1
8195 #define PSMC2BLKF2 PSMC2BLKFbits.PSMC2BLKF2 // bit 2
8196 #define PSMC2BLKF3 PSMC2BLKFbits.PSMC2BLKF3 // bit 3
8197 #define PSMC2BLKF4 PSMC2BLKFbits.PSMC2BLKF4 // bit 4
8198 #define PSMC2BLKF5 PSMC2BLKFbits.PSMC2BLKF5 // bit 5
8199 #define PSMC2BLKF6 PSMC2BLKFbits.PSMC2BLKF6 // bit 6
8200 #define PSMC2BLKF7 PSMC2BLKFbits.PSMC2BLKF7 // bit 7
8202 #define PSMC2BLKR0 PSMC2BLKRbits.PSMC2BLKR0 // bit 0
8203 #define PSMC2BLKR1 PSMC2BLKRbits.PSMC2BLKR1 // bit 1
8204 #define PSMC2BLKR2 PSMC2BLKRbits.PSMC2BLKR2 // bit 2
8205 #define PSMC2BLKR3 PSMC2BLKRbits.PSMC2BLKR3 // bit 3
8206 #define PSMC2BLKR4 PSMC2BLKRbits.PSMC2BLKR4 // bit 4
8207 #define PSMC2BLKR5 PSMC2BLKRbits.PSMC2BLKR5 // bit 5
8208 #define PSMC2BLKR6 PSMC2BLKRbits.PSMC2BLKR6 // bit 6
8209 #define PSMC2BLKR7 PSMC2BLKRbits.PSMC2BLKR7 // bit 7
8211 #define P2REBM0 PSMC2BLNKbits.P2REBM0 // bit 0
8212 #define P2REBM1 PSMC2BLNKbits.P2REBM1 // bit 1
8213 #define P2FEBM0 PSMC2BLNKbits.P2FEBM0 // bit 4
8214 #define P2FEBM1 PSMC2BLNKbits.P2FEBM1 // bit 5
8216 #define P2CSRC0 PSMC2CLKbits.P2CSRC0 // bit 0
8217 #define P2CSRC1 PSMC2CLKbits.P2CSRC1 // bit 1
8218 #define P2CPRE0 PSMC2CLKbits.P2CPRE0 // bit 4
8219 #define P2CPRE1 PSMC2CLKbits.P2CPRE1 // bit 5
8221 #define P2MODE0 PSMC2CONbits.P2MODE0 // bit 0
8222 #define P2MODE1 PSMC2CONbits.P2MODE1 // bit 1
8223 #define P2MODE2 PSMC2CONbits.P2MODE2 // bit 2
8224 #define P2MODE3 PSMC2CONbits.P2MODE3 // bit 3
8225 #define P2DBRE PSMC2CONbits.P2DBRE // bit 4
8226 #define P2DBFE PSMC2CONbits.P2DBFE // bit 5
8227 #define PSMC2LD PSMC2CONbits.PSMC2LD // bit 6
8228 #define PSMC2EN PSMC2CONbits.PSMC2EN // bit 7
8230 #define PSMC2DBF0 PSMC2DBFbits.PSMC2DBF0 // bit 0
8231 #define PSMC2DBF1 PSMC2DBFbits.PSMC2DBF1 // bit 1
8232 #define PSMC2DBF2 PSMC2DBFbits.PSMC2DBF2 // bit 2
8233 #define PSMC2DBF3 PSMC2DBFbits.PSMC2DBF3 // bit 3
8234 #define PSMC2DBF4 PSMC2DBFbits.PSMC2DBF4 // bit 4
8235 #define PSMC2DBF5 PSMC2DBFbits.PSMC2DBF5 // bit 5
8236 #define PSMC2DBF6 PSMC2DBFbits.PSMC2DBF6 // bit 6
8237 #define PSMC2DBF7 PSMC2DBFbits.PSMC2DBF7 // bit 7
8239 #define PSMC2DBR0 PSMC2DBRbits.PSMC2DBR0 // bit 0
8240 #define PSMC2DBR1 PSMC2DBRbits.PSMC2DBR1 // bit 1
8241 #define PSMC2DBR2 PSMC2DBRbits.PSMC2DBR2 // bit 2
8242 #define PSMC2DBR3 PSMC2DBRbits.PSMC2DBR3 // bit 3
8243 #define PSMC2DBR4 PSMC2DBRbits.PSMC2DBR4 // bit 4
8244 #define PSMC2DBR5 PSMC2DBRbits.PSMC2DBR5 // bit 5
8245 #define PSMC2DBR6 PSMC2DBRbits.PSMC2DBR6 // bit 6
8246 #define PSMC2DBR7 PSMC2DBRbits.PSMC2DBR7 // bit 7
8248 #define PSMC2DC8 PSMC2DCHbits.PSMC2DC8 // bit 0
8249 #define PSMC2DC9 PSMC2DCHbits.PSMC2DC9 // bit 1
8250 #define PSMC2DC10 PSMC2DCHbits.PSMC2DC10 // bit 2
8251 #define PSMC2DC11 PSMC2DCHbits.PSMC2DC11 // bit 3
8252 #define PSMC2DC12 PSMC2DCHbits.PSMC2DC12 // bit 4
8253 #define PSMC2DC13 PSMC2DCHbits.PSMC2DC13 // bit 5
8254 #define PSMC2DC14 PSMC2DCHbits.PSMC2DC14 // bit 6
8255 #define PSMC2DC15 PSMC2DCHbits.PSMC2DC15 // bit 7
8257 #define PSMC2DC0 PSMC2DCLbits.PSMC2DC0 // bit 0
8258 #define PSMC2DC1 PSMC2DCLbits.PSMC2DC1 // bit 1
8259 #define PSMC2DC2 PSMC2DCLbits.PSMC2DC2 // bit 2
8260 #define PSMC2DC3 PSMC2DCLbits.PSMC2DC3 // bit 3
8261 #define PSMC2DC4 PSMC2DCLbits.PSMC2DC4 // bit 4
8262 #define PSMC2DC5 PSMC2DCLbits.PSMC2DC5 // bit 5
8263 #define PSMC2DC6 PSMC2DCLbits.PSMC2DC6 // bit 6
8264 #define PSMC2DC7 PSMC2DCLbits.PSMC2DC7 // bit 7
8266 #define P2DCST PSMC2DCSbits.P2DCST // bit 0
8267 #define P2DCSC1 PSMC2DCSbits.P2DCSC1 // bit 1
8268 #define P2DCSC2 PSMC2DCSbits.P2DCSC2 // bit 2
8269 #define P2DCSC3 PSMC2DCSbits.P2DCSC3 // bit 3
8270 #define P2DCSC4 PSMC2DCSbits.P2DCSC4 // bit 4
8271 #define P2DCSIN PSMC2DCSbits.P2DCSIN // bit 7
8273 #define P2FEBSC1 PSMC2FEBSbits.P2FEBSC1 // bit 1
8274 #define P2FEBSC2 PSMC2FEBSbits.P2FEBSC2 // bit 2
8275 #define P2FEBSC3 PSMC2FEBSbits.P2FEBSC3 // bit 3
8276 #define P2FEBSC4 PSMC2FEBSbits.P2FEBSC4 // bit 4
8277 #define P2FEBSIN PSMC2FEBSbits.P2FEBSIN // bit 7
8279 #define PSMC2FFA0 PSMC2FFAbits.PSMC2FFA0 // bit 0
8280 #define PSMC2FFA1 PSMC2FFAbits.PSMC2FFA1 // bit 1
8281 #define PSMC2FFA2 PSMC2FFAbits.PSMC2FFA2 // bit 2
8282 #define PSMC2FFA3 PSMC2FFAbits.PSMC2FFA3 // bit 3
8284 #define P2TPRIF PSMC2INTbits.P2TPRIF // bit 0
8285 #define P2TDCIF PSMC2INTbits.P2TDCIF // bit 1
8286 #define P2TPHIF PSMC2INTbits.P2TPHIF // bit 2
8287 #define P2TOVIF PSMC2INTbits.P2TOVIF // bit 3
8288 #define P2TPRIE PSMC2INTbits.P2TPRIE // bit 4
8289 #define P2TDCIE PSMC2INTbits.P2TDCIE // bit 5
8290 #define P2TPHIE PSMC2INTbits.P2TPHIE // bit 6
8291 #define P2TOVIE PSMC2INTbits.P2TOVIE // bit 7
8293 #define P2MSRC0 PSMC2MDLbits.P2MSRC0 // bit 0
8294 #define P2MSRC1 PSMC2MDLbits.P2MSRC1 // bit 1
8295 #define P2MSRC2 PSMC2MDLbits.P2MSRC2 // bit 2
8296 #define P2MSRC3 PSMC2MDLbits.P2MSRC3 // bit 3
8297 #define P2MDLBIT PSMC2MDLbits.P2MDLBIT // bit 5
8298 #define P2MDLPOL PSMC2MDLbits.P2MDLPOL // bit 6
8299 #define P2MDLEN PSMC2MDLbits.P2MDLEN // bit 7
8301 #define P2OEA PSMC2OENbits.P2OEA // bit 0
8302 #define P2OEB PSMC2OENbits.P2OEB // bit 1
8304 #define PSMC2PH8 PSMC2PHHbits.PSMC2PH8 // bit 0
8305 #define PSMC2PH9 PSMC2PHHbits.PSMC2PH9 // bit 1
8306 #define PSMC2PH10 PSMC2PHHbits.PSMC2PH10 // bit 2
8307 #define PSMC2PH11 PSMC2PHHbits.PSMC2PH11 // bit 3
8308 #define PSMC2PH12 PSMC2PHHbits.PSMC2PH12 // bit 4
8309 #define PSMC2PH13 PSMC2PHHbits.PSMC2PH13 // bit 5
8310 #define PSMC2PH14 PSMC2PHHbits.PSMC2PH14 // bit 6
8311 #define PSMC2PH15 PSMC2PHHbits.PSMC2PH15 // bit 7
8313 #define PSMC2PH0 PSMC2PHLbits.PSMC2PH0 // bit 0
8314 #define PSMC2PH1 PSMC2PHLbits.PSMC2PH1 // bit 1
8315 #define PSMC2PH2 PSMC2PHLbits.PSMC2PH2 // bit 2
8316 #define PSMC2PH3 PSMC2PHLbits.PSMC2PH3 // bit 3
8317 #define PSMC2PH4 PSMC2PHLbits.PSMC2PH4 // bit 4
8318 #define PSMC2PH5 PSMC2PHLbits.PSMC2PH5 // bit 5
8319 #define PSMC2PH6 PSMC2PHLbits.PSMC2PH6 // bit 6
8320 #define PSMC2PH7 PSMC2PHLbits.PSMC2PH7 // bit 7
8322 #define P2PHST PSMC2PHSbits.P2PHST // bit 0
8323 #define P2PHSC1 PSMC2PHSbits.P2PHSC1 // bit 1
8324 #define P2PHSC2 PSMC2PHSbits.P2PHSC2 // bit 2
8325 #define P2PHSC3 PSMC2PHSbits.P2PHSC3 // bit 3
8326 #define P2PHSC4 PSMC2PHSbits.P2PHSC4 // bit 4
8327 #define P2PHSIN PSMC2PHSbits.P2PHSIN // bit 7
8329 #define P2POLA PSMC2POLbits.P2POLA // bit 0
8330 #define P2POLB PSMC2POLbits.P2POLB // bit 1
8331 #define P2INPOL PSMC2POLbits.P2INPOL // bit 6
8333 #define PSMC2PR8 PSMC2PRHbits.PSMC2PR8 // bit 0
8334 #define PSMC2PR9 PSMC2PRHbits.PSMC2PR9 // bit 1
8335 #define PSMC2PR10 PSMC2PRHbits.PSMC2PR10 // bit 2
8336 #define PSMC2PR11 PSMC2PRHbits.PSMC2PR11 // bit 3
8337 #define PSMC2PR12 PSMC2PRHbits.PSMC2PR12 // bit 4
8338 #define PSMC2PR13 PSMC2PRHbits.PSMC2PR13 // bit 5
8339 #define PSMC2PR14 PSMC2PRHbits.PSMC2PR14 // bit 6
8340 #define PSMC2PR15 PSMC2PRHbits.PSMC2PR15 // bit 7
8342 #define PSMC2PR0 PSMC2PRLbits.PSMC2PR0 // bit 0
8343 #define PSMC2PR1 PSMC2PRLbits.PSMC2PR1 // bit 1
8344 #define PSMC2PR2 PSMC2PRLbits.PSMC2PR2 // bit 2
8345 #define PSMC2PR3 PSMC2PRLbits.PSMC2PR3 // bit 3
8346 #define PSMC2PR4 PSMC2PRLbits.PSMC2PR4 // bit 4
8347 #define PSMC2PR5 PSMC2PRLbits.PSMC2PR5 // bit 5
8348 #define PSMC2PR6 PSMC2PRLbits.PSMC2PR6 // bit 6
8349 #define PSMC2PR7 PSMC2PRLbits.PSMC2PR7 // bit 7
8351 #define P2PRST PSMC2PRSbits.P2PRST // bit 0
8352 #define P2PRSC1 PSMC2PRSbits.P2PRSC1 // bit 1
8353 #define P2PRSC2 PSMC2PRSbits.P2PRSC2 // bit 2
8354 #define P2PRSC3 PSMC2PRSbits.P2PRSC3 // bit 3
8355 #define P2PRSC4 PSMC2PRSbits.P2PRSC4 // bit 4
8356 #define P2PRSIN PSMC2PRSbits.P2PRSIN // bit 7
8358 #define P2REBSC1 PSMC2REBSbits.P2REBSC1 // bit 1
8359 #define P2REBSC2 PSMC2REBSbits.P2REBSC2 // bit 2
8360 #define P2REBSC3 PSMC2REBSbits.P2REBSC3 // bit 3
8361 #define P2REBSC4 PSMC2REBSbits.P2REBSC4 // bit 4
8362 #define P2REBSIN PSMC2REBSbits.P2REBSIN // bit 7
8364 #define P2STRA PSMC2STR0bits.P2STRA // bit 0
8365 #define P2STRB PSMC2STR0bits.P2STRB // bit 1
8367 #define P2HSMEN PSMC2STR1bits.P2HSMEN // bit 0
8368 #define P2LSMEN PSMC2STR1bits.P2LSMEN // bit 1
8369 #define P2SSYNC PSMC2STR1bits.P2SSYNC // bit 7
8371 #define P2SYNC0 PSMC2SYNCbits.P2SYNC0 // bit 0
8372 #define P2SYNC1 PSMC2SYNCbits.P2SYNC1 // bit 1
8373 #define P2SYNC2 PSMC2SYNCbits.P2SYNC2 // bit 2
8374 #define P2DCPOL PSMC2SYNCbits.P2DCPOL // bit 5
8375 #define P2PRPOL PSMC2SYNCbits.P2PRPOL // bit 6
8376 #define P2POFST PSMC2SYNCbits.P2POFST // bit 7
8378 #define PSMC2TMR8 PSMC2TMRHbits.PSMC2TMR8 // bit 0
8379 #define PSMC2TMR9 PSMC2TMRHbits.PSMC2TMR9 // bit 1
8380 #define PSMC2TMR10 PSMC2TMRHbits.PSMC2TMR10 // bit 2
8381 #define PSMC2TMR11 PSMC2TMRHbits.PSMC2TMR11 // bit 3
8382 #define PSMC2TMR12 PSMC2TMRHbits.PSMC2TMR12 // bit 4
8383 #define PSMC2TMR13 PSMC2TMRHbits.PSMC2TMR13 // bit 5
8384 #define PSMC2TMR14 PSMC2TMRHbits.PSMC2TMR14 // bit 6
8385 #define PSMC2TMR15 PSMC2TMRHbits.PSMC2TMR15 // bit 7
8387 #define PSMC2TMR0 PSMC2TMRLbits.PSMC2TMR0 // bit 0
8388 #define PSMC2TMR1 PSMC2TMRLbits.PSMC2TMR1 // bit 1
8389 #define PSMC2TMR2 PSMC2TMRLbits.PSMC2TMR2 // bit 2
8390 #define PSMC2TMR3 PSMC2TMRLbits.PSMC2TMR3 // bit 3
8391 #define PSMC2TMR4 PSMC2TMRLbits.PSMC2TMR4 // bit 4
8392 #define PSMC2TMR5 PSMC2TMRLbits.PSMC2TMR5 // bit 5
8393 #define PSMC2TMR6 PSMC2TMRLbits.PSMC2TMR6 // bit 6
8394 #define PSMC2TMR7 PSMC2TMRLbits.PSMC2TMR7 // bit 7
8396 #define P3ASDOV PSMC3ASDCbits.P3ASDOV // bit 0
8397 #define P3ARSEN PSMC3ASDCbits.P3ARSEN // bit 5
8398 #define P3ASDEN PSMC3ASDCbits.P3ASDEN // bit 6
8399 #define P3ASE PSMC3ASDCbits.P3ASE // bit 7
8401 #define P3ASDLA PSMC3ASDLbits.P3ASDLA // bit 0
8402 #define P3ASDLB PSMC3ASDLbits.P3ASDLB // bit 1
8403 #define P3ASDLC PSMC3ASDLbits.P3ASDLC // bit 2
8404 #define P3ASDLD PSMC3ASDLbits.P3ASDLD // bit 3
8405 #define P3ASDLE PSMC3ASDLbits.P3ASDLE // bit 4
8406 #define P3ASDLF PSMC3ASDLbits.P3ASDLF // bit 5
8408 #define P3ASDSC1 PSMC3ASDSbits.P3ASDSC1 // bit 1
8409 #define P3ASDSC2 PSMC3ASDSbits.P3ASDSC2 // bit 2
8410 #define P3ASDSC3 PSMC3ASDSbits.P3ASDSC3 // bit 3
8411 #define P3ASDSC4 PSMC3ASDSbits.P3ASDSC4 // bit 4
8412 #define P3ASDSIN PSMC3ASDSbits.P3ASDSIN // bit 7
8414 #define PSMC3BLKF0 PSMC3BLKFbits.PSMC3BLKF0 // bit 0
8415 #define PSMC3BLKF1 PSMC3BLKFbits.PSMC3BLKF1 // bit 1
8416 #define PSMC3BLKF2 PSMC3BLKFbits.PSMC3BLKF2 // bit 2
8417 #define PSMC3BLKF3 PSMC3BLKFbits.PSMC3BLKF3 // bit 3
8418 #define PSMC3BLKF4 PSMC3BLKFbits.PSMC3BLKF4 // bit 4
8419 #define PSMC3BLKF5 PSMC3BLKFbits.PSMC3BLKF5 // bit 5
8420 #define PSMC3BLKF6 PSMC3BLKFbits.PSMC3BLKF6 // bit 6
8421 #define PSMC3BLKF7 PSMC3BLKFbits.PSMC3BLKF7 // bit 7
8423 #define PSMC3BLKR0 PSMC3BLKRbits.PSMC3BLKR0 // bit 0
8424 #define PSMC3BLKR1 PSMC3BLKRbits.PSMC3BLKR1 // bit 1
8425 #define PSMC3BLKR2 PSMC3BLKRbits.PSMC3BLKR2 // bit 2
8426 #define PSMC3BLKR3 PSMC3BLKRbits.PSMC3BLKR3 // bit 3
8427 #define PSMC3BLKR4 PSMC3BLKRbits.PSMC3BLKR4 // bit 4
8428 #define PSMC3BLKR5 PSMC3BLKRbits.PSMC3BLKR5 // bit 5
8429 #define PSMC3BLKR6 PSMC3BLKRbits.PSMC3BLKR6 // bit 6
8430 #define PSMC3BLKR7 PSMC3BLKRbits.PSMC3BLKR7 // bit 7
8432 #define P3REBM0 PSMC3BLNKbits.P3REBM0 // bit 0
8433 #define P3REBM1 PSMC3BLNKbits.P3REBM1 // bit 1
8434 #define P3FEBM0 PSMC3BLNKbits.P3FEBM0 // bit 4
8435 #define P3FEBM1 PSMC3BLNKbits.P3FEBM1 // bit 5
8437 #define P3CSRC0 PSMC3CLKbits.P3CSRC0 // bit 0
8438 #define P3CSRC1 PSMC3CLKbits.P3CSRC1 // bit 1
8439 #define P3CPRE0 PSMC3CLKbits.P3CPRE0 // bit 4
8440 #define P3CPRE1 PSMC3CLKbits.P3CPRE1 // bit 5
8442 #define P3MODE0 PSMC3CONbits.P3MODE0 // bit 0
8443 #define P3MODE1 PSMC3CONbits.P3MODE1 // bit 1
8444 #define P3MODE2 PSMC3CONbits.P3MODE2 // bit 2
8445 #define P3MODE3 PSMC3CONbits.P3MODE3 // bit 3
8446 #define P3DBRE PSMC3CONbits.P3DBRE // bit 4
8447 #define P3DBFE PSMC3CONbits.P3DBFE // bit 5
8448 #define PSMC3LD PSMC3CONbits.PSMC3LD // bit 6
8449 #define PSMC3EN PSMC3CONbits.PSMC3EN // bit 7
8451 #define PSMC3DBF0 PSMC3DBFbits.PSMC3DBF0 // bit 0
8452 #define PSMC3DBF1 PSMC3DBFbits.PSMC3DBF1 // bit 1
8453 #define PSMC3DBF2 PSMC3DBFbits.PSMC3DBF2 // bit 2
8454 #define PSMC3DBF3 PSMC3DBFbits.PSMC3DBF3 // bit 3
8455 #define PSMC3DBF4 PSMC3DBFbits.PSMC3DBF4 // bit 4
8456 #define PSMC3DBF5 PSMC3DBFbits.PSMC3DBF5 // bit 5
8457 #define PSMC3DBF6 PSMC3DBFbits.PSMC3DBF6 // bit 6
8458 #define PSMC3DBF7 PSMC3DBFbits.PSMC3DBF7 // bit 7
8460 #define PSMC3DBR0 PSMC3DBRbits.PSMC3DBR0 // bit 0
8461 #define PSMC3DBR1 PSMC3DBRbits.PSMC3DBR1 // bit 1
8462 #define PSMC3DBR2 PSMC3DBRbits.PSMC3DBR2 // bit 2
8463 #define PSMC3DBR3 PSMC3DBRbits.PSMC3DBR3 // bit 3
8464 #define PSMC3DBR4 PSMC3DBRbits.PSMC3DBR4 // bit 4
8465 #define PSMC3DBR5 PSMC3DBRbits.PSMC3DBR5 // bit 5
8466 #define PSMC3DBR6 PSMC3DBRbits.PSMC3DBR6 // bit 6
8467 #define PSMC3DBR7 PSMC3DBRbits.PSMC3DBR7 // bit 7
8469 #define PSMC3DC8 PSMC3DCHbits.PSMC3DC8 // bit 0
8470 #define PSMC3DC9 PSMC3DCHbits.PSMC3DC9 // bit 1
8471 #define PSMC3DC10 PSMC3DCHbits.PSMC3DC10 // bit 2
8472 #define PSMC3DC11 PSMC3DCHbits.PSMC3DC11 // bit 3
8473 #define PSMC3DC12 PSMC3DCHbits.PSMC3DC12 // bit 4
8474 #define PSMC3DC13 PSMC3DCHbits.PSMC3DC13 // bit 5
8475 #define PSMC3DC14 PSMC3DCHbits.PSMC3DC14 // bit 6
8476 #define PSMC3DC15 PSMC3DCHbits.PSMC3DC15 // bit 7
8478 #define PSMC3DC0 PSMC3DCLbits.PSMC3DC0 // bit 0
8479 #define PSMC3DC1 PSMC3DCLbits.PSMC3DC1 // bit 1
8480 #define PSMC3DC2 PSMC3DCLbits.PSMC3DC2 // bit 2
8481 #define PSMC3DC3 PSMC3DCLbits.PSMC3DC3 // bit 3
8482 #define PSMC3DC4 PSMC3DCLbits.PSMC3DC4 // bit 4
8483 #define PSMC3DC5 PSMC3DCLbits.PSMC3DC5 // bit 5
8484 #define PSMC3DC6 PSMC3DCLbits.PSMC3DC6 // bit 6
8485 #define PSMC3DC7 PSMC3DCLbits.PSMC3DC7 // bit 7
8487 #define P3DCST PSMC3DCSbits.P3DCST // bit 0
8488 #define P3DCSC1 PSMC3DCSbits.P3DCSC1 // bit 1
8489 #define P3DCSC2 PSMC3DCSbits.P3DCSC2 // bit 2
8490 #define P3DCSC3 PSMC3DCSbits.P3DCSC3 // bit 3
8491 #define P3DCSC4 PSMC3DCSbits.P3DCSC4 // bit 4
8492 #define P3DCSIN PSMC3DCSbits.P3DCSIN // bit 7
8494 #define P3FEBSC1 PSMC3FEBSbits.P3FEBSC1 // bit 1
8495 #define P3FEBSC2 PSMC3FEBSbits.P3FEBSC2 // bit 2
8496 #define P3FEBSC3 PSMC3FEBSbits.P3FEBSC3 // bit 3
8497 #define P3FEBSC4 PSMC3FEBSbits.P3FEBSC4 // bit 4
8498 #define P3FEBSIN PSMC3FEBSbits.P3FEBSIN // bit 7
8500 #define PSMC3FFA0 PSMC3FFAbits.PSMC3FFA0 // bit 0
8501 #define PSMC3FFA1 PSMC3FFAbits.PSMC3FFA1 // bit 1
8502 #define PSMC3FFA2 PSMC3FFAbits.PSMC3FFA2 // bit 2
8503 #define PSMC3FFA3 PSMC3FFAbits.PSMC3FFA3 // bit 3
8505 #define P3TPRIF PSMC3INTbits.P3TPRIF // bit 0
8506 #define P3TDCIF PSMC3INTbits.P3TDCIF // bit 1
8507 #define P3TPHIF PSMC3INTbits.P3TPHIF // bit 2
8508 #define P3TOVIF PSMC3INTbits.P3TOVIF // bit 3
8509 #define P3TPRIE PSMC3INTbits.P3TPRIE // bit 4
8510 #define P3TDCIE PSMC3INTbits.P3TDCIE // bit 5
8511 #define P3TPHIE PSMC3INTbits.P3TPHIE // bit 6
8512 #define P3TOVIE PSMC3INTbits.P3TOVIE // bit 7
8514 #define P3MSRC0 PSMC3MDLbits.P3MSRC0 // bit 0
8515 #define P3MSRC1 PSMC3MDLbits.P3MSRC1 // bit 1
8516 #define P3MSRC2 PSMC3MDLbits.P3MSRC2 // bit 2
8517 #define P3MSRC3 PSMC3MDLbits.P3MSRC3 // bit 3
8518 #define P3MDLBIT PSMC3MDLbits.P3MDLBIT // bit 5
8519 #define P3MDLPOL PSMC3MDLbits.P3MDLPOL // bit 6
8520 #define P3MDLEN PSMC3MDLbits.P3MDLEN // bit 7
8522 #define P3OEA PSMC3OENbits.P3OEA // bit 0
8523 #define P3OEB PSMC3OENbits.P3OEB // bit 1
8525 #define PSMC3PH8 PSMC3PHHbits.PSMC3PH8 // bit 0
8526 #define PSMC3PH9 PSMC3PHHbits.PSMC3PH9 // bit 1
8527 #define PSMC3PH10 PSMC3PHHbits.PSMC3PH10 // bit 2
8528 #define PSMC3PH11 PSMC3PHHbits.PSMC3PH11 // bit 3
8529 #define PSMC3PH12 PSMC3PHHbits.PSMC3PH12 // bit 4
8530 #define PSMC3PH13 PSMC3PHHbits.PSMC3PH13 // bit 5
8531 #define PSMC3PH14 PSMC3PHHbits.PSMC3PH14 // bit 6
8532 #define PSMC3PH15 PSMC3PHHbits.PSMC3PH15 // bit 7
8534 #define PSMC3PH0 PSMC3PHLbits.PSMC3PH0 // bit 0
8535 #define PSMC3PH1 PSMC3PHLbits.PSMC3PH1 // bit 1
8536 #define PSMC3PH2 PSMC3PHLbits.PSMC3PH2 // bit 2
8537 #define PSMC3PH3 PSMC3PHLbits.PSMC3PH3 // bit 3
8538 #define PSMC3PH4 PSMC3PHLbits.PSMC3PH4 // bit 4
8539 #define PSMC3PH5 PSMC3PHLbits.PSMC3PH5 // bit 5
8540 #define PSMC3PH6 PSMC3PHLbits.PSMC3PH6 // bit 6
8541 #define PSMC3PH7 PSMC3PHLbits.PSMC3PH7 // bit 7
8543 #define P3PHST PSMC3PHSbits.P3PHST // bit 0
8544 #define P3PHSC1 PSMC3PHSbits.P3PHSC1 // bit 1
8545 #define P3PHSC2 PSMC3PHSbits.P3PHSC2 // bit 2
8546 #define P3PHSC3 PSMC3PHSbits.P3PHSC3 // bit 3
8547 #define P3PHSC4 PSMC3PHSbits.P3PHSC4 // bit 4
8548 #define P3PHSIN PSMC3PHSbits.P3PHSIN // bit 7
8550 #define P3POLA PSMC3POLbits.P3POLA // bit 0
8551 #define P3POLB PSMC3POLbits.P3POLB // bit 1
8552 #define P3INPOL PSMC3POLbits.P3INPOL // bit 6
8554 #define PSMC3PR8 PSMC3PRHbits.PSMC3PR8 // bit 0
8555 #define PSMC3PR9 PSMC3PRHbits.PSMC3PR9 // bit 1
8556 #define PSMC3PR10 PSMC3PRHbits.PSMC3PR10 // bit 2
8557 #define PSMC3PR11 PSMC3PRHbits.PSMC3PR11 // bit 3
8558 #define PSMC3PR12 PSMC3PRHbits.PSMC3PR12 // bit 4
8559 #define PSMC3PR13 PSMC3PRHbits.PSMC3PR13 // bit 5
8560 #define PSMC3PR14 PSMC3PRHbits.PSMC3PR14 // bit 6
8561 #define PSMC3PR15 PSMC3PRHbits.PSMC3PR15 // bit 7
8563 #define PSMC3PR0 PSMC3PRLbits.PSMC3PR0 // bit 0
8564 #define PSMC3PR1 PSMC3PRLbits.PSMC3PR1 // bit 1
8565 #define PSMC3PR2 PSMC3PRLbits.PSMC3PR2 // bit 2
8566 #define PSMC3PR3 PSMC3PRLbits.PSMC3PR3 // bit 3
8567 #define PSMC3PR4 PSMC3PRLbits.PSMC3PR4 // bit 4
8568 #define PSMC3PR5 PSMC3PRLbits.PSMC3PR5 // bit 5
8569 #define PSMC3PR6 PSMC3PRLbits.PSMC3PR6 // bit 6
8570 #define PSMC3PR7 PSMC3PRLbits.PSMC3PR7 // bit 7
8572 #define P3PRST PSMC3PRSbits.P3PRST // bit 0
8573 #define P3PRSC1 PSMC3PRSbits.P3PRSC1 // bit 1
8574 #define P3PRSC2 PSMC3PRSbits.P3PRSC2 // bit 2
8575 #define P3PRSC3 PSMC3PRSbits.P3PRSC3 // bit 3
8576 #define P3PRSC4 PSMC3PRSbits.P3PRSC4 // bit 4
8577 #define P3PRSIN PSMC3PRSbits.P3PRSIN // bit 7
8579 #define P3REBSC1 PSMC3REBSbits.P3REBSC1 // bit 1
8580 #define P3REBSC2 PSMC3REBSbits.P3REBSC2 // bit 2
8581 #define P3REBSC3 PSMC3REBSbits.P3REBSC3 // bit 3
8582 #define P3REBSC4 PSMC3REBSbits.P3REBSC4 // bit 4
8583 #define P3REBSIN PSMC3REBSbits.P3REBSIN // bit 7
8585 #define P3STRA PSMC3STR0bits.P3STRA // bit 0
8586 #define P3STRB PSMC3STR0bits.P3STRB // bit 1
8588 #define P3HSMEN PSMC3STR1bits.P3HSMEN // bit 0
8589 #define P3LSMEN PSMC3STR1bits.P3LSMEN // bit 1
8590 #define P3SSYNC PSMC3STR1bits.P3SSYNC // bit 7
8592 #define P3SYNC0 PSMC3SYNCbits.P3SYNC0 // bit 0
8593 #define P3SYNC1 PSMC3SYNCbits.P3SYNC1 // bit 1
8594 #define P3SYNC2 PSMC3SYNCbits.P3SYNC2 // bit 2
8595 #define P3DCPOL PSMC3SYNCbits.P3DCPOL // bit 5
8596 #define P3PRPOL PSMC3SYNCbits.P3PRPOL // bit 6
8597 #define P3POFST PSMC3SYNCbits.P3POFST // bit 7
8599 #define PSMC3TMR8 PSMC3TMRHbits.PSMC3TMR8 // bit 0
8600 #define PSMC3TMR9 PSMC3TMRHbits.PSMC3TMR9 // bit 1
8601 #define PSMC3TMR10 PSMC3TMRHbits.PSMC3TMR10 // bit 2
8602 #define PSMC3TMR11 PSMC3TMRHbits.PSMC3TMR11 // bit 3
8603 #define PSMC3TMR12 PSMC3TMRHbits.PSMC3TMR12 // bit 4
8604 #define PSMC3TMR13 PSMC3TMRHbits.PSMC3TMR13 // bit 5
8605 #define PSMC3TMR14 PSMC3TMRHbits.PSMC3TMR14 // bit 6
8606 #define PSMC3TMR15 PSMC3TMRHbits.PSMC3TMR15 // bit 7
8608 #define PSMC3TMR0 PSMC3TMRLbits.PSMC3TMR0 // bit 0
8609 #define PSMC3TMR1 PSMC3TMRLbits.PSMC3TMR1 // bit 1
8610 #define PSMC3TMR2 PSMC3TMRLbits.PSMC3TMR2 // bit 2
8611 #define PSMC3TMR3 PSMC3TMRLbits.PSMC3TMR3 // bit 3
8612 #define PSMC3TMR4 PSMC3TMRLbits.PSMC3TMR4 // bit 4
8613 #define PSMC3TMR5 PSMC3TMRLbits.PSMC3TMR5 // bit 5
8614 #define PSMC3TMR6 PSMC3TMRLbits.PSMC3TMR6 // bit 6
8615 #define PSMC3TMR7 PSMC3TMRLbits.PSMC3TMR7 // bit 7
8617 #define RX9D RC1STAbits.RX9D // bit 0
8618 #define OERR RC1STAbits.OERR // bit 1
8619 #define FERR RC1STAbits.FERR // bit 2
8620 #define ADDEN RC1STAbits.ADDEN // bit 3
8621 #define CREN RC1STAbits.CREN // bit 4
8622 #define SREN RC1STAbits.SREN // bit 5
8623 #define RX9 RC1STAbits.RX9 // bit 6
8624 #define SPEN RC1STAbits.SPEN // bit 7
8626 #define SLRCONA0 SLRCONAbits.SLRCONA0 // bit 0
8627 #define SLRCONA1 SLRCONAbits.SLRCONA1 // bit 1
8628 #define SLRCONA2 SLRCONAbits.SLRCONA2 // bit 2
8629 #define SLRCONA3 SLRCONAbits.SLRCONA3 // bit 3
8630 #define SLRCONA4 SLRCONAbits.SLRCONA4 // bit 4
8631 #define SLRCONA5 SLRCONAbits.SLRCONA5 // bit 5
8632 #define SLRCONA6 SLRCONAbits.SLRCONA6 // bit 6
8633 #define SLRCONA7 SLRCONAbits.SLRCONA7 // bit 7
8635 #define SLRCONB0 SLRCONBbits.SLRCONB0 // bit 0
8636 #define SLRCONB1 SLRCONBbits.SLRCONB1 // bit 1
8637 #define SLRCONB2 SLRCONBbits.SLRCONB2 // bit 2
8638 #define SLRCONB3 SLRCONBbits.SLRCONB3 // bit 3
8639 #define SLRCONB4 SLRCONBbits.SLRCONB4 // bit 4
8640 #define SLRCONB5 SLRCONBbits.SLRCONB5 // bit 5
8641 #define SLRCONB6 SLRCONBbits.SLRCONB6 // bit 6
8642 #define SLRCONB7 SLRCONBbits.SLRCONB7 // bit 7
8644 #define SLRCONC0 SLRCONCbits.SLRCONC0 // bit 0
8645 #define SLRCONC1 SLRCONCbits.SLRCONC1 // bit 1
8646 #define SLRCONC2 SLRCONCbits.SLRCONC2 // bit 2
8647 #define SLRCONC3 SLRCONCbits.SLRCONC3 // bit 3
8648 #define SLRCONC4 SLRCONCbits.SLRCONC4 // bit 4
8649 #define SLRCONC5 SLRCONCbits.SLRCONC5 // bit 5
8650 #define SLRCONC6 SLRCONCbits.SLRCONC6 // bit 6
8651 #define SLRCONC7 SLRCONCbits.SLRCONC7 // bit 7
8653 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
8654 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
8655 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
8656 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
8657 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
8658 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
8659 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
8660 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
8661 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
8662 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
8663 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
8664 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
8665 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
8666 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
8667 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
8668 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
8670 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
8671 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
8672 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
8673 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
8674 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
8675 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
8676 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
8677 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
8678 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
8679 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
8680 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
8681 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
8682 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
8683 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
8684 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
8685 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
8687 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
8688 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
8689 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
8690 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
8691 #define CKP SSP1CONbits.CKP // bit 4
8692 #define SSPEN SSP1CONbits.SSPEN // bit 5
8693 #define SSPOV SSP1CONbits.SSPOV // bit 6
8694 #define WCOL SSP1CONbits.WCOL // bit 7
8696 #define SEN SSP1CON2bits.SEN // bit 0
8697 #define RSEN SSP1CON2bits.RSEN // bit 1
8698 #define PEN SSP1CON2bits.PEN // bit 2
8699 #define RCEN SSP1CON2bits.RCEN // bit 3
8700 #define ACKEN SSP1CON2bits.ACKEN // bit 4
8701 #define ACKDT SSP1CON2bits.ACKDT // bit 5
8702 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
8703 #define GCEN SSP1CON2bits.GCEN // bit 7
8705 #define DHEN SSP1CON3bits.DHEN // bit 0
8706 #define AHEN SSP1CON3bits.AHEN // bit 1
8707 #define SBCDE SSP1CON3bits.SBCDE // bit 2
8708 #define SDAHT SSP1CON3bits.SDAHT // bit 3
8709 #define BOEN SSP1CON3bits.BOEN // bit 4
8710 #define SCIE SSP1CON3bits.SCIE // bit 5
8711 #define PCIE SSP1CON3bits.PCIE // bit 6
8712 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
8714 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
8715 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
8716 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
8717 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
8718 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
8719 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
8720 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
8721 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
8722 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
8723 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
8724 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
8725 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
8726 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
8727 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
8728 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
8729 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
8731 #define BF SSP1STATbits.BF // bit 0
8732 #define UA SSP1STATbits.UA // bit 1
8733 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
8734 #define S SSP1STATbits.S // bit 3
8735 #define P SSP1STATbits.P // bit 4
8736 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
8737 #define CKE SSP1STATbits.CKE // bit 6
8738 #define SMP SSP1STATbits.SMP // bit 7
8740 #define C STATUSbits.C // bit 0
8741 #define DC STATUSbits.DC // bit 1
8742 #define Z STATUSbits.Z // bit 2
8743 #define NOT_PD STATUSbits.NOT_PD // bit 3
8744 #define NOT_TO STATUSbits.NOT_TO // bit 4
8746 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
8747 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
8748 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
8750 #define TMR1ON T1CONbits.TMR1ON // bit 0
8751 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
8752 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
8753 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
8754 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
8755 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
8756 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
8758 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
8759 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
8760 #define T1GVAL T1GCONbits.T1GVAL // bit 2
8761 #define T1GGO T1GCONbits.T1GGO // bit 3
8762 #define T1GSPM T1GCONbits.T1GSPM // bit 4
8763 #define T1GTM T1GCONbits.T1GTM // bit 5
8764 #define T1GPOL T1GCONbits.T1GPOL // bit 6
8765 #define TMR1GE T1GCONbits.TMR1GE // bit 7
8767 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
8768 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
8769 #define TMR2ON T2CONbits.TMR2ON // bit 2
8770 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
8771 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
8772 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
8773 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
8775 #define TRISA0 TRISAbits.TRISA0 // bit 0
8776 #define TRISA1 TRISAbits.TRISA1 // bit 1
8777 #define TRISA2 TRISAbits.TRISA2 // bit 2
8778 #define TRISA3 TRISAbits.TRISA3 // bit 3
8779 #define TRISA4 TRISAbits.TRISA4 // bit 4
8780 #define TRISA5 TRISAbits.TRISA5 // bit 5
8781 #define TRISA6 TRISAbits.TRISA6 // bit 6
8782 #define TRISA7 TRISAbits.TRISA7 // bit 7
8784 #define TRISB0 TRISBbits.TRISB0 // bit 0
8785 #define TRISB1 TRISBbits.TRISB1 // bit 1
8786 #define TRISB2 TRISBbits.TRISB2 // bit 2
8787 #define TRISB3 TRISBbits.TRISB3 // bit 3
8788 #define TRISB4 TRISBbits.TRISB4 // bit 4
8789 #define TRISB5 TRISBbits.TRISB5 // bit 5
8790 #define TRISB6 TRISBbits.TRISB6 // bit 6
8791 #define TRISB7 TRISBbits.TRISB7 // bit 7
8793 #define TRISC0 TRISCbits.TRISC0 // bit 0
8794 #define TRISC1 TRISCbits.TRISC1 // bit 1
8795 #define TRISC2 TRISCbits.TRISC2 // bit 2
8796 #define TRISC3 TRISCbits.TRISC3 // bit 3
8797 #define TRISC4 TRISCbits.TRISC4 // bit 4
8798 #define TRISC5 TRISCbits.TRISC5 // bit 5
8799 #define TRISC6 TRISCbits.TRISC6 // bit 6
8800 #define TRISC7 TRISCbits.TRISC7 // bit 7
8802 #define TRISE3 TRISEbits.TRISE3 // bit 3
8804 #define TX9D TX1STAbits.TX9D // bit 0
8805 #define TRMT TX1STAbits.TRMT // bit 1
8806 #define BRGH TX1STAbits.BRGH // bit 2
8807 #define SENDB TX1STAbits.SENDB // bit 3
8808 #define SYNC TX1STAbits.SYNC // bit 4
8809 #define TXEN TX1STAbits.TXEN // bit 5
8810 #define TX9 TX1STAbits.TX9 // bit 6
8811 #define CSRC TX1STAbits.CSRC // bit 7
8813 #define SWDTEN WDTCONbits.SWDTEN // bit 0
8814 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
8815 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
8816 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
8817 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
8818 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
8820 #define WPUA0 WPUAbits.WPUA0 // bit 0
8821 #define WPUA1 WPUAbits.WPUA1 // bit 1
8822 #define WPUA2 WPUAbits.WPUA2 // bit 2
8823 #define WPUA3 WPUAbits.WPUA3 // bit 3
8824 #define WPUA4 WPUAbits.WPUA4 // bit 4
8825 #define WPUA5 WPUAbits.WPUA5 // bit 5
8826 #define WPUA6 WPUAbits.WPUA6 // bit 6
8827 #define WPUA7 WPUAbits.WPUA7 // bit 7
8829 #define WPUB0 WPUBbits.WPUB0 // bit 0
8830 #define WPUB1 WPUBbits.WPUB1 // bit 1
8831 #define WPUB2 WPUBbits.WPUB2 // bit 2
8832 #define WPUB3 WPUBbits.WPUB3 // bit 3
8833 #define WPUB4 WPUBbits.WPUB4 // bit 4
8834 #define WPUB5 WPUBbits.WPUB5 // bit 5
8835 #define WPUB6 WPUBbits.WPUB6 // bit 6
8836 #define WPUB7 WPUBbits.WPUB7 // bit 7
8838 #define WPUC0 WPUCbits.WPUC0 // bit 0
8839 #define WPUC1 WPUCbits.WPUC1 // bit 1
8840 #define WPUC2 WPUCbits.WPUC2 // bit 2
8841 #define WPUC3 WPUCbits.WPUC3 // bit 3
8842 #define WPUC4 WPUCbits.WPUC4 // bit 4
8843 #define WPUC5 WPUCbits.WPUC5 // bit 5
8844 #define WPUC6 WPUCbits.WPUC6 // bit 6
8845 #define WPUC7 WPUCbits.WPUC7 // bit 7
8847 #define WPUE3 WPUEbits.WPUE3 // bit 3
8849 #endif // #ifndef NO_BIT_DEFINES
8851 #endif // #ifndef __PIC16LF1786_H__