2 * This declarations of the PIC16F1786 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 __PIC16F1786_H__
26 #define __PIC16F1786_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 VREGCON_ADDR 0x0197
118 #define RC1REG_ADDR 0x0199
119 #define RCREG_ADDR 0x0199
120 #define RCREG1_ADDR 0x0199
121 #define TX1REG_ADDR 0x019A
122 #define TXREG_ADDR 0x019A
123 #define TXREG1_ADDR 0x019A
124 #define SP1BRG_ADDR 0x019B
125 #define SP1BRGL_ADDR 0x019B
126 #define SPBRG_ADDR 0x019B
127 #define SPBRG1_ADDR 0x019B
128 #define SPBRGL_ADDR 0x019B
129 #define SP1BRGH_ADDR 0x019C
130 #define SPBRGH_ADDR 0x019C
131 #define SPBRGH1_ADDR 0x019C
132 #define RC1STA_ADDR 0x019D
133 #define RCSTA_ADDR 0x019D
134 #define RCSTA1_ADDR 0x019D
135 #define TX1STA_ADDR 0x019E
136 #define TXSTA_ADDR 0x019E
137 #define TXSTA1_ADDR 0x019E
138 #define BAUD1CON_ADDR 0x019F
139 #define BAUDCON_ADDR 0x019F
140 #define BAUDCON1_ADDR 0x019F
141 #define BAUDCTL_ADDR 0x019F
142 #define BAUDCTL1_ADDR 0x019F
143 #define WPUA_ADDR 0x020C
144 #define WPUB_ADDR 0x020D
145 #define WPUC_ADDR 0x020E
146 #define WPUE_ADDR 0x0210
147 #define SSP1BUF_ADDR 0x0211
148 #define SSPBUF_ADDR 0x0211
149 #define SSP1ADD_ADDR 0x0212
150 #define SSPADD_ADDR 0x0212
151 #define SSP1MSK_ADDR 0x0213
152 #define SSPMSK_ADDR 0x0213
153 #define SSP1STAT_ADDR 0x0214
154 #define SSPSTAT_ADDR 0x0214
155 #define SSP1CON_ADDR 0x0215
156 #define SSP1CON1_ADDR 0x0215
157 #define SSPCON_ADDR 0x0215
158 #define SSPCON1_ADDR 0x0215
159 #define SSP1CON2_ADDR 0x0216
160 #define SSPCON2_ADDR 0x0216
161 #define SSP1CON3_ADDR 0x0217
162 #define SSPCON3_ADDR 0x0217
163 #define ODCONA_ADDR 0x028C
164 #define ODCONB_ADDR 0x028D
165 #define ODCONC_ADDR 0x028E
166 #define CCPR1_ADDR 0x0291
167 #define CCPR1L_ADDR 0x0291
168 #define CCPR1H_ADDR 0x0292
169 #define CCP1CON_ADDR 0x0293
170 #define CCPR2_ADDR 0x0298
171 #define CCPR2L_ADDR 0x0298
172 #define CCPR2H_ADDR 0x0299
173 #define CCP2CON_ADDR 0x029A
174 #define SLRCONA_ADDR 0x030C
175 #define SLRCONB_ADDR 0x030D
176 #define SLRCONC_ADDR 0x030E
177 #define CCPR3_ADDR 0x0311
178 #define CCPR3L_ADDR 0x0311
179 #define CCPR3H_ADDR 0x0312
180 #define CCP3CON_ADDR 0x0313
181 #define INLVLA_ADDR 0x038C
182 #define INLVLB_ADDR 0x038D
183 #define INLVLC_ADDR 0x038E
184 #define INLVLE_ADDR 0x0390
185 #define IOCAP_ADDR 0x0391
186 #define IOCAN_ADDR 0x0392
187 #define IOCAF_ADDR 0x0393
188 #define IOCBP_ADDR 0x0394
189 #define IOCBN_ADDR 0x0395
190 #define IOCBF_ADDR 0x0396
191 #define IOCCP_ADDR 0x0397
192 #define IOCCN_ADDR 0x0398
193 #define IOCCF_ADDR 0x0399
194 #define IOCEP_ADDR 0x039D
195 #define IOCEN_ADDR 0x039E
196 #define IOCEF_ADDR 0x039F
197 #define OPA1CON_ADDR 0x0511
198 #define OPA2CON_ADDR 0x0513
199 #define CLKRCON_ADDR 0x051A
200 #define PSMC1CON_ADDR 0x0811
201 #define PSMC1MDL_ADDR 0x0812
202 #define PSMC1SYNC_ADDR 0x0813
203 #define PSMC1CLK_ADDR 0x0814
204 #define PSMC1OEN_ADDR 0x0815
205 #define PSMC1POL_ADDR 0x0816
206 #define PSMC1BLNK_ADDR 0x0817
207 #define PSMC1REBS_ADDR 0x0818
208 #define PSMC1FEBS_ADDR 0x0819
209 #define PSMC1PHS_ADDR 0x081A
210 #define PSMC1DCS_ADDR 0x081B
211 #define PSMC1PRS_ADDR 0x081C
212 #define PSMC1ASDC_ADDR 0x081D
213 #define PSMC1ASDL_ADDR 0x081E
214 #define PSMC1ASDS_ADDR 0x081F
215 #define PSMC1INT_ADDR 0x0820
216 #define PSMC1PH_ADDR 0x0821
217 #define PSMC1PHL_ADDR 0x0821
218 #define PSMC1PHH_ADDR 0x0822
219 #define PSMC1DC_ADDR 0x0823
220 #define PSMC1DCL_ADDR 0x0823
221 #define PSMC1DCH_ADDR 0x0824
222 #define PSMC1PR_ADDR 0x0825
223 #define PSMC1PRL_ADDR 0x0825
224 #define PSMC1PRH_ADDR 0x0826
225 #define PSMC1TMR_ADDR 0x0827
226 #define PSMC1TMRL_ADDR 0x0827
227 #define PSMC1TMRH_ADDR 0x0828
228 #define PSMC1DBR_ADDR 0x0829
229 #define PSMC1DBF_ADDR 0x082A
230 #define PSMC1BLKR_ADDR 0x082B
231 #define PSMC1BLKF_ADDR 0x082C
232 #define PSMC1FFA_ADDR 0x082D
233 #define PSMC1STR0_ADDR 0x082E
234 #define PSMC1STR1_ADDR 0x082F
235 #define PSMC2CON_ADDR 0x0831
236 #define PSMC2MDL_ADDR 0x0832
237 #define PSMC2SYNC_ADDR 0x0833
238 #define PSMC2CLK_ADDR 0x0834
239 #define PSMC2OEN_ADDR 0x0835
240 #define PSMC2POL_ADDR 0x0836
241 #define PSMC2BLNK_ADDR 0x0837
242 #define PSMC2REBS_ADDR 0x0838
243 #define PSMC2FEBS_ADDR 0x0839
244 #define PSMC2PHS_ADDR 0x083A
245 #define PSMC2DCS_ADDR 0x083B
246 #define PSMC2PRS_ADDR 0x083C
247 #define PSMC2ASDC_ADDR 0x083D
248 #define PSMC2ASDL_ADDR 0x083E
249 #define PSMC2ASDS_ADDR 0x083F
250 #define PSMC2INT_ADDR 0x0840
251 #define PSMC2PH_ADDR 0x0841
252 #define PSMC2PHL_ADDR 0x0841
253 #define PSMC2PHH_ADDR 0x0842
254 #define PSMC2DC_ADDR 0x0843
255 #define PSMC2DCL_ADDR 0x0843
256 #define PSMC2DCH_ADDR 0x0844
257 #define PSMC2PR_ADDR 0x0845
258 #define PSMC2PRL_ADDR 0x0845
259 #define PSMC2PRH_ADDR 0x0846
260 #define PSMC2TMR_ADDR 0x0847
261 #define PSMC2TMRL_ADDR 0x0847
262 #define PSMC2TMRH_ADDR 0x0848
263 #define PSMC2DBR_ADDR 0x0849
264 #define PSMC2DBF_ADDR 0x084A
265 #define PSMC2BLKR_ADDR 0x084B
266 #define PSMC2BLKF_ADDR 0x084C
267 #define PSMC2FFA_ADDR 0x084D
268 #define PSMC2STR0_ADDR 0x084E
269 #define PSMC2STR1_ADDR 0x084F
270 #define PSMC3CON_ADDR 0x0851
271 #define PSMC3MDL_ADDR 0x0852
272 #define PSMC3SYNC_ADDR 0x0853
273 #define PSMC3CLK_ADDR 0x0854
274 #define PSMC3OEN_ADDR 0x0855
275 #define PSMC3POL_ADDR 0x0856
276 #define PSMC3BLNK_ADDR 0x0857
277 #define PSMC3REBS_ADDR 0x0858
278 #define PSMC3FEBS_ADDR 0x0859
279 #define PSMC3PHS_ADDR 0x085A
280 #define PSMC3DCS_ADDR 0x085B
281 #define PSMC3PRS_ADDR 0x085C
282 #define PSMC3ASDC_ADDR 0x085D
283 #define PSMC3ASDL_ADDR 0x085E
284 #define PSMC3ASDS_ADDR 0x085F
285 #define PSMC3INT_ADDR 0x0860
286 #define PSMC3PH_ADDR 0x0861
287 #define PSMC3PHL_ADDR 0x0861
288 #define PSMC3PHH_ADDR 0x0862
289 #define PSMC3DC_ADDR 0x0863
290 #define PSMC3DCL_ADDR 0x0863
291 #define PSMC3DCH_ADDR 0x0864
292 #define PSMC3PR_ADDR 0x0865
293 #define PSMC3PRL_ADDR 0x0865
294 #define PSMC3PRH_ADDR 0x0866
295 #define PSMC3TMR_ADDR 0x0867
296 #define PSMC3TMRL_ADDR 0x0867
297 #define PSMC3TMRH_ADDR 0x0868
298 #define PSMC3DBR_ADDR 0x0869
299 #define PSMC3DBF_ADDR 0x086A
300 #define PSMC3BLKR_ADDR 0x086B
301 #define PSMC3BLKF_ADDR 0x086C
302 #define PSMC3FFA_ADDR 0x086D
303 #define PSMC3STR0_ADDR 0x086E
304 #define PSMC3STR1_ADDR 0x086F
305 #define STATUS_SHAD_ADDR 0x0FE4
306 #define WREG_SHAD_ADDR 0x0FE5
307 #define BSR_SHAD_ADDR 0x0FE6
308 #define PCLATH_SHAD_ADDR 0x0FE7
309 #define FSR0L_SHAD_ADDR 0x0FE8
310 #define FSR0H_SHAD_ADDR 0x0FE9
311 #define FSR1L_SHAD_ADDR 0x0FEA
312 #define FSR1H_SHAD_ADDR 0x0FEB
313 #define STKPTR_ADDR 0x0FED
314 #define TOSL_ADDR 0x0FEE
315 #define TOSH_ADDR 0x0FEF
317 #endif // #ifndef NO_ADDR_DEFINES
319 //==============================================================================
321 // Register Definitions
323 //==============================================================================
325 extern __at(0x0000) __sfr INDF0
;
326 extern __at(0x0001) __sfr INDF1
;
327 extern __at(0x0002) __sfr PCL
;
329 //==============================================================================
332 extern __at(0x0003) __sfr STATUS
;
346 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
354 //==============================================================================
356 extern __at(0x0004) __sfr FSR0
;
357 extern __at(0x0004) __sfr FSR0L
;
358 extern __at(0x0005) __sfr FSR0H
;
359 extern __at(0x0006) __sfr FSR1
;
360 extern __at(0x0006) __sfr FSR1L
;
361 extern __at(0x0007) __sfr FSR1H
;
363 //==============================================================================
366 extern __at(0x0008) __sfr BSR
;
389 extern __at(0x0008) volatile __BSRbits_t BSRbits
;
397 //==============================================================================
399 extern __at(0x0009) __sfr WREG
;
400 extern __at(0x000A) __sfr PCLATH
;
402 //==============================================================================
405 extern __at(0x000B) __sfr INTCON
;
434 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
447 //==============================================================================
450 //==============================================================================
453 extern __at(0x000C) __sfr PORTA
;
467 extern __at(0x000C) volatile __PORTAbits_t PORTAbits
;
478 //==============================================================================
481 //==============================================================================
484 extern __at(0x000D) __sfr PORTB
;
498 extern __at(0x000D) volatile __PORTBbits_t PORTBbits
;
509 //==============================================================================
512 //==============================================================================
515 extern __at(0x000E) __sfr PORTC
;
529 extern __at(0x000E) volatile __PORTCbits_t PORTCbits
;
540 //==============================================================================
543 //==============================================================================
546 extern __at(0x0010) __sfr PORTE
;
560 extern __at(0x0010) volatile __PORTEbits_t PORTEbits
;
564 //==============================================================================
567 //==============================================================================
570 extern __at(0x0011) __sfr PIR1
;
581 unsigned TMR1GIF
: 1;
584 extern __at(0x0011) volatile __PIR1bits_t PIR1bits
;
593 #define _TMR1GIF 0x80
595 //==============================================================================
598 //==============================================================================
601 extern __at(0x0012) __sfr PIR2
;
615 extern __at(0x0012) volatile __PIR2bits_t PIR2bits
;
626 //==============================================================================
629 //==============================================================================
632 extern __at(0x0013) __sfr PIR3
;
646 extern __at(0x0013) volatile __PIR3bits_t PIR3bits
;
650 //==============================================================================
653 //==============================================================================
656 extern __at(0x0014) __sfr PIR4
;
660 unsigned PSMC1SIF
: 1;
661 unsigned PSMC2SIF
: 1;
662 unsigned PSMC3SIF
: 1;
664 unsigned PSMC1TIF
: 1;
665 unsigned PSMC2TIF
: 1;
666 unsigned PSMC3TIF
: 1;
670 extern __at(0x0014) volatile __PIR4bits_t PIR4bits
;
672 #define _PSMC1SIF 0x01
673 #define _PSMC2SIF 0x02
674 #define _PSMC3SIF 0x04
675 #define _PSMC1TIF 0x10
676 #define _PSMC2TIF 0x20
677 #define _PSMC3TIF 0x40
679 //==============================================================================
681 extern __at(0x0015) __sfr TMR0
;
682 extern __at(0x0016) __sfr TMR1
;
683 extern __at(0x0016) __sfr TMR1L
;
684 extern __at(0x0017) __sfr TMR1H
;
686 //==============================================================================
689 extern __at(0x0018) __sfr T1CON
;
697 unsigned NOT_T1SYNC
: 1;
698 unsigned T1OSCEN
: 1;
699 unsigned T1CKPS0
: 1;
700 unsigned T1CKPS1
: 1;
701 unsigned TMR1CS0
: 1;
702 unsigned TMR1CS1
: 1;
719 extern __at(0x0018) volatile __T1CONbits_t T1CONbits
;
722 #define _NOT_T1SYNC 0x04
723 #define _T1OSCEN 0x08
724 #define _T1CKPS0 0x10
725 #define _T1CKPS1 0x20
726 #define _TMR1CS0 0x40
727 #define _TMR1CS1 0x80
729 //==============================================================================
732 //==============================================================================
735 extern __at(0x0019) __sfr T1GCON
;
758 extern __at(0x0019) volatile __T1GCONbits_t T1GCONbits
;
769 //==============================================================================
771 extern __at(0x001A) __sfr TMR2
;
772 extern __at(0x001B) __sfr PR2
;
774 //==============================================================================
777 extern __at(0x001C) __sfr T2CON
;
783 unsigned T2CKPS0
: 1;
784 unsigned T2CKPS1
: 1;
786 unsigned T2OUTPS0
: 1;
787 unsigned T2OUTPS1
: 1;
788 unsigned T2OUTPS2
: 1;
789 unsigned T2OUTPS3
: 1;
802 unsigned T2OUTPS
: 4;
807 extern __at(0x001C) volatile __T2CONbits_t T2CONbits
;
809 #define _T2CKPS0 0x01
810 #define _T2CKPS1 0x02
812 #define _T2OUTPS0 0x08
813 #define _T2OUTPS1 0x10
814 #define _T2OUTPS2 0x20
815 #define _T2OUTPS3 0x40
817 //==============================================================================
820 //==============================================================================
823 extern __at(0x008C) __sfr TRISA
;
837 extern __at(0x008C) volatile __TRISAbits_t TRISAbits
;
848 //==============================================================================
851 //==============================================================================
854 extern __at(0x008D) __sfr TRISB
;
868 extern __at(0x008D) volatile __TRISBbits_t TRISBbits
;
879 //==============================================================================
882 //==============================================================================
885 extern __at(0x008E) __sfr TRISC
;
899 extern __at(0x008E) volatile __TRISCbits_t TRISCbits
;
910 //==============================================================================
913 //==============================================================================
916 extern __at(0x0090) __sfr TRISE
;
930 extern __at(0x0090) volatile __TRISEbits_t TRISEbits
;
934 //==============================================================================
937 //==============================================================================
940 extern __at(0x0091) __sfr PIE1
;
951 unsigned TMR1GIE
: 1;
954 extern __at(0x0091) volatile __PIE1bits_t PIE1bits
;
963 #define _TMR1GIE 0x80
965 //==============================================================================
968 //==============================================================================
971 extern __at(0x0092) __sfr PIE2
;
985 extern __at(0x0092) volatile __PIE2bits_t PIE2bits
;
996 //==============================================================================
999 //==============================================================================
1002 extern __at(0x0093) __sfr PIE3
;
1010 unsigned CCP3IE
: 1;
1016 extern __at(0x0093) volatile __PIE3bits_t PIE3bits
;
1018 #define _CCP3IE 0x10
1020 //==============================================================================
1023 //==============================================================================
1026 extern __at(0x0094) __sfr PIE4
;
1032 unsigned PSMC1SIE
: 1;
1033 unsigned PSMC2SIE
: 1;
1034 unsigned PSMC3SIE
: 1;
1036 unsigned PSMC1TIE
: 1;
1037 unsigned PSMC2TIE
: 1;
1038 unsigned PSMC3TIE
: 1;
1050 unsigned PMSC3TIE
: 1;
1055 extern __at(0x0094) volatile __PIE4bits_t PIE4bits
;
1057 #define _PSMC1SIE 0x01
1058 #define _PSMC2SIE 0x02
1059 #define _PSMC3SIE 0x04
1060 #define _PSMC1TIE 0x10
1061 #define _PSMC2TIE 0x20
1062 #define _PSMC3TIE 0x40
1063 #define _PMSC3TIE 0x40
1065 //==============================================================================
1068 //==============================================================================
1071 extern __at(0x0095) __sfr OPTION_REG
;
1081 unsigned TMR0SE
: 1;
1082 unsigned TMR0CS
: 1;
1083 unsigned INTEDG
: 1;
1084 unsigned NOT_WPUEN
: 1;
1104 } __OPTION_REGbits_t
;
1106 extern __at(0x0095) volatile __OPTION_REGbits_t OPTION_REGbits
;
1112 #define _TMR0SE 0x10
1114 #define _TMR0CS 0x20
1116 #define _INTEDG 0x40
1117 #define _NOT_WPUEN 0x80
1119 //==============================================================================
1122 //==============================================================================
1125 extern __at(0x0096) __sfr PCON
;
1129 unsigned NOT_BOR
: 1;
1130 unsigned NOT_POR
: 1;
1131 unsigned NOT_RI
: 1;
1132 unsigned NOT_RMCLR
: 1;
1133 unsigned NOT_RWDT
: 1;
1135 unsigned STKUNF
: 1;
1136 unsigned STKOVF
: 1;
1139 extern __at(0x0096) volatile __PCONbits_t PCONbits
;
1141 #define _NOT_BOR 0x01
1142 #define _NOT_POR 0x02
1143 #define _NOT_RI 0x04
1144 #define _NOT_RMCLR 0x08
1145 #define _NOT_RWDT 0x10
1146 #define _STKUNF 0x40
1147 #define _STKOVF 0x80
1149 //==============================================================================
1152 //==============================================================================
1155 extern __at(0x0097) __sfr WDTCON
;
1161 unsigned SWDTEN
: 1;
1162 unsigned WDTPS0
: 1;
1163 unsigned WDTPS1
: 1;
1164 unsigned WDTPS2
: 1;
1165 unsigned WDTPS3
: 1;
1166 unsigned WDTPS4
: 1;
1179 extern __at(0x0097) volatile __WDTCONbits_t WDTCONbits
;
1181 #define _SWDTEN 0x01
1182 #define _WDTPS0 0x02
1183 #define _WDTPS1 0x04
1184 #define _WDTPS2 0x08
1185 #define _WDTPS3 0x10
1186 #define _WDTPS4 0x20
1188 //==============================================================================
1191 //==============================================================================
1194 extern __at(0x0098) __sfr OSCTUNE
;
1217 extern __at(0x0098) volatile __OSCTUNEbits_t OSCTUNEbits
;
1226 //==============================================================================
1229 //==============================================================================
1232 extern __at(0x0099) __sfr OSCCON
;
1245 unsigned SPLLEN
: 1;
1262 extern __at(0x0099) volatile __OSCCONbits_t OSCCONbits
;
1270 #define _SPLLEN 0x80
1272 //==============================================================================
1275 //==============================================================================
1278 extern __at(0x009A) __sfr OSCSTAT
;
1282 unsigned HFIOFS
: 1;
1283 unsigned LFIOFR
: 1;
1284 unsigned MFIOFR
: 1;
1285 unsigned HFIOFL
: 1;
1286 unsigned HFIOFR
: 1;
1289 unsigned T1OSCR
: 1;
1292 extern __at(0x009A) volatile __OSCSTATbits_t OSCSTATbits
;
1294 #define _HFIOFS 0x01
1295 #define _LFIOFR 0x02
1296 #define _MFIOFR 0x04
1297 #define _HFIOFL 0x08
1298 #define _HFIOFR 0x10
1301 #define _T1OSCR 0x80
1303 //==============================================================================
1305 extern __at(0x009B) __sfr ADRES
;
1306 extern __at(0x009B) __sfr ADRESL
;
1307 extern __at(0x009C) __sfr ADRESH
;
1309 //==============================================================================
1312 extern __at(0x009D) __sfr ADCON0
;
1319 unsigned GO_NOT_DONE
: 1;
1372 extern __at(0x009D) volatile __ADCON0bits_t ADCON0bits
;
1375 #define _GO_NOT_DONE 0x02
1386 //==============================================================================
1389 //==============================================================================
1392 extern __at(0x009E) __sfr ADCON1
;
1398 unsigned ADPREF0
: 1;
1399 unsigned ADPREF1
: 1;
1400 unsigned ADNREF
: 1;
1410 unsigned ADPREF
: 2;
1422 extern __at(0x009E) volatile __ADCON1bits_t ADCON1bits
;
1424 #define _ADPREF0 0x01
1425 #define _ADPREF1 0x02
1426 #define _ADNREF 0x04
1432 //==============================================================================
1435 //==============================================================================
1438 extern __at(0x009F) __sfr ADCON2
;
1448 unsigned TRIGSEL0
: 1;
1449 unsigned TRIGSEL1
: 1;
1450 unsigned TRIGSEL2
: 1;
1451 unsigned TRIGSEL3
: 1;
1463 unsigned TRIGSEL
: 4;
1467 extern __at(0x009F) volatile __ADCON2bits_t ADCON2bits
;
1473 #define _TRIGSEL0 0x10
1474 #define _TRIGSEL1 0x20
1475 #define _TRIGSEL2 0x40
1476 #define _TRIGSEL3 0x80
1478 //==============================================================================
1481 //==============================================================================
1484 extern __at(0x010C) __sfr LATA
;
1498 extern __at(0x010C) volatile __LATAbits_t LATAbits
;
1509 //==============================================================================
1512 //==============================================================================
1515 extern __at(0x010D) __sfr LATB
;
1529 extern __at(0x010D) volatile __LATBbits_t LATBbits
;
1540 //==============================================================================
1543 //==============================================================================
1546 extern __at(0x010E) __sfr LATC
;
1560 extern __at(0x010E) volatile __LATCbits_t LATCbits
;
1571 //==============================================================================
1574 //==============================================================================
1577 extern __at(0x0111) __sfr CM1CON0
;
1581 unsigned C1SYNC
: 1;
1591 extern __at(0x0111) volatile __CM1CON0bits_t CM1CON0bits
;
1593 #define _C1SYNC 0x01
1602 //==============================================================================
1605 //==============================================================================
1608 extern __at(0x0112) __sfr CM1CON1
;
1614 unsigned C1NCH0
: 1;
1615 unsigned C1NCH1
: 1;
1616 unsigned C1NCH2
: 1;
1617 unsigned C1PCH0
: 1;
1618 unsigned C1PCH1
: 1;
1619 unsigned C1PCH2
: 1;
1620 unsigned C1INTN
: 1;
1621 unsigned C1INTP
: 1;
1638 extern __at(0x0112) volatile __CM1CON1bits_t CM1CON1bits
;
1640 #define _C1NCH0 0x01
1641 #define _C1NCH1 0x02
1642 #define _C1NCH2 0x04
1643 #define _C1PCH0 0x08
1644 #define _C1PCH1 0x10
1645 #define _C1PCH2 0x20
1646 #define _C1INTN 0x40
1647 #define _C1INTP 0x80
1649 //==============================================================================
1652 //==============================================================================
1655 extern __at(0x0113) __sfr CM2CON0
;
1659 unsigned C2SYNC
: 1;
1669 extern __at(0x0113) volatile __CM2CON0bits_t CM2CON0bits
;
1671 #define _C2SYNC 0x01
1680 //==============================================================================
1683 //==============================================================================
1686 extern __at(0x0114) __sfr CM2CON1
;
1692 unsigned C2NCH0
: 1;
1693 unsigned C2NCH1
: 1;
1694 unsigned C2NCH2
: 1;
1695 unsigned C2PCH0
: 1;
1696 unsigned C2PCH1
: 1;
1697 unsigned C2PCH2
: 1;
1698 unsigned C2INTN
: 1;
1699 unsigned C2INTP
: 1;
1716 extern __at(0x0114) volatile __CM2CON1bits_t CM2CON1bits
;
1718 #define _C2NCH0 0x01
1719 #define _C2NCH1 0x02
1720 #define _C2NCH2 0x04
1721 #define _C2PCH0 0x08
1722 #define _C2PCH1 0x10
1723 #define _C2PCH2 0x20
1724 #define _C2INTN 0x40
1725 #define _C2INTP 0x80
1727 //==============================================================================
1730 //==============================================================================
1733 extern __at(0x0115) __sfr CMOUT
;
1737 unsigned MC1OUT
: 1;
1738 unsigned MC2OUT
: 1;
1739 unsigned MC3OUT
: 1;
1740 unsigned MC4OUT
: 1;
1747 extern __at(0x0115) volatile __CMOUTbits_t CMOUTbits
;
1749 #define _MC1OUT 0x01
1750 #define _MC2OUT 0x02
1751 #define _MC3OUT 0x04
1752 #define _MC4OUT 0x08
1754 //==============================================================================
1757 //==============================================================================
1760 extern __at(0x0116) __sfr BORCON
;
1764 unsigned BORRDY
: 1;
1771 unsigned SBOREN
: 1;
1774 extern __at(0x0116) volatile __BORCONbits_t BORCONbits
;
1776 #define _BORRDY 0x01
1778 #define _SBOREN 0x80
1780 //==============================================================================
1783 //==============================================================================
1786 extern __at(0x0117) __sfr FVRCON
;
1792 unsigned ADFVR0
: 1;
1793 unsigned ADFVR1
: 1;
1794 unsigned CDAFVR0
: 1;
1795 unsigned CDAFVR1
: 1;
1798 unsigned FVRRDY
: 1;
1811 unsigned CDAFVR
: 2;
1816 extern __at(0x0117) volatile __FVRCONbits_t FVRCONbits
;
1818 #define _ADFVR0 0x01
1819 #define _ADFVR1 0x02
1820 #define _CDAFVR0 0x04
1821 #define _CDAFVR1 0x08
1824 #define _FVRRDY 0x40
1827 //==============================================================================
1830 //==============================================================================
1833 extern __at(0x0118) __sfr DACCON0
;
1839 unsigned DACNSS
: 1;
1841 unsigned DACPSS0
: 1;
1842 unsigned DACPSS1
: 1;
1843 unsigned DACOE2
: 1;
1844 unsigned DACOE1
: 1;
1852 unsigned DACPSS
: 2;
1857 extern __at(0x0118) volatile __DACCON0bits_t DACCON0bits
;
1859 #define _DACNSS 0x01
1860 #define _DACPSS0 0x04
1861 #define _DACPSS1 0x08
1862 #define _DACOE2 0x10
1863 #define _DACOE1 0x20
1866 //==============================================================================
1869 //==============================================================================
1872 extern __at(0x0119) __sfr DACCON1
;
1886 extern __at(0x0119) volatile __DACCON1bits_t DACCON1bits
;
1897 //==============================================================================
1900 //==============================================================================
1903 extern __at(0x011A) __sfr CM4CON0
;
1907 unsigned C4SYNC
: 1;
1917 extern __at(0x011A) volatile __CM4CON0bits_t CM4CON0bits
;
1919 #define _C4SYNC 0x01
1928 //==============================================================================
1931 //==============================================================================
1934 extern __at(0x011B) __sfr CM4CON1
;
1940 unsigned C4NCH0
: 1;
1941 unsigned C4NCH1
: 1;
1942 unsigned C4NCH2
: 1;
1943 unsigned C4PCH0
: 1;
1944 unsigned C4PCH1
: 1;
1945 unsigned C4PCH2
: 1;
1946 unsigned C4INTN
: 1;
1947 unsigned C4INTP
: 1;
1964 extern __at(0x011B) volatile __CM4CON1bits_t CM4CON1bits
;
1966 #define _C4NCH0 0x01
1967 #define _C4NCH1 0x02
1968 #define _C4NCH2 0x04
1969 #define _C4PCH0 0x08
1970 #define _C4PCH1 0x10
1971 #define _C4PCH2 0x20
1972 #define _C4INTN 0x40
1973 #define _C4INTP 0x80
1975 //==============================================================================
1978 //==============================================================================
1981 extern __at(0x011C) __sfr APFCON2
;
1985 unsigned CCP3SEL
: 1;
1995 extern __at(0x011C) volatile __APFCON2bits_t APFCON2bits
;
1997 #define _CCP3SEL 0x01
1999 //==============================================================================
2002 //==============================================================================
2005 extern __at(0x011D) __sfr APFCON
;
2009 unsigned CCP2SEL
: 1;
2012 unsigned SDISEL
: 1;
2013 unsigned SCKSEL
: 1;
2014 unsigned SDOSEL
: 1;
2015 unsigned CCP1SEL
: 1;
2016 unsigned C2OUTSEL
: 1;
2019 extern __at(0x011D) volatile __APFCONbits_t APFCONbits
;
2021 #define _CCP2SEL 0x01
2024 #define _SDISEL 0x08
2025 #define _SCKSEL 0x10
2026 #define _SDOSEL 0x20
2027 #define _CCP1SEL 0x40
2028 #define _C2OUTSEL 0x80
2030 //==============================================================================
2033 //==============================================================================
2036 extern __at(0x011D) __sfr APFCON0
;
2040 unsigned CCP2SEL
: 1;
2043 unsigned SDISEL
: 1;
2044 unsigned SCKSEL
: 1;
2045 unsigned SDOSEL
: 1;
2046 unsigned CCP1SEL
: 1;
2047 unsigned C2OUTSEL
: 1;
2050 extern __at(0x011D) volatile __APFCON0bits_t APFCON0bits
;
2052 #define _APFCON0_CCP2SEL 0x01
2053 #define _APFCON0_RXSEL 0x02
2054 #define _APFCON0_TXSEL 0x04
2055 #define _APFCON0_SDISEL 0x08
2056 #define _APFCON0_SCKSEL 0x10
2057 #define _APFCON0_SDOSEL 0x20
2058 #define _APFCON0_CCP1SEL 0x40
2059 #define _APFCON0_C2OUTSEL 0x80
2061 //==============================================================================
2064 //==============================================================================
2067 extern __at(0x011D) __sfr APFCON1
;
2071 unsigned CCP2SEL
: 1;
2074 unsigned SDISEL
: 1;
2075 unsigned SCKSEL
: 1;
2076 unsigned SDOSEL
: 1;
2077 unsigned CCP1SEL
: 1;
2078 unsigned C2OUTSEL
: 1;
2081 extern __at(0x011D) volatile __APFCON1bits_t APFCON1bits
;
2083 #define _APFCON1_CCP2SEL 0x01
2084 #define _APFCON1_RXSEL 0x02
2085 #define _APFCON1_TXSEL 0x04
2086 #define _APFCON1_SDISEL 0x08
2087 #define _APFCON1_SCKSEL 0x10
2088 #define _APFCON1_SDOSEL 0x20
2089 #define _APFCON1_CCP1SEL 0x40
2090 #define _APFCON1_C2OUTSEL 0x80
2092 //==============================================================================
2095 //==============================================================================
2098 extern __at(0x011E) __sfr CM3CON0
;
2102 unsigned C3SYNC
: 1;
2112 extern __at(0x011E) volatile __CM3CON0bits_t CM3CON0bits
;
2114 #define _C3SYNC 0x01
2123 //==============================================================================
2126 //==============================================================================
2129 extern __at(0x011F) __sfr CM3CON1
;
2135 unsigned C3NCH0
: 1;
2136 unsigned C3NCH1
: 1;
2137 unsigned C3NCH2
: 1;
2138 unsigned C3PCH0
: 1;
2139 unsigned C3PCH1
: 1;
2140 unsigned C3PCH2
: 1;
2141 unsigned C3INTN
: 1;
2142 unsigned C3INTP
: 1;
2159 extern __at(0x011F) volatile __CM3CON1bits_t CM3CON1bits
;
2161 #define _C3NCH0 0x01
2162 #define _C3NCH1 0x02
2163 #define _C3NCH2 0x04
2164 #define _C3PCH0 0x08
2165 #define _C3PCH1 0x10
2166 #define _C3PCH2 0x20
2167 #define _C3INTN 0x40
2168 #define _C3INTP 0x80
2170 //==============================================================================
2173 //==============================================================================
2176 extern __at(0x018C) __sfr ANSELA
;
2190 extern __at(0x018C) volatile __ANSELAbits_t ANSELAbits
;
2200 //==============================================================================
2203 //==============================================================================
2206 extern __at(0x018D) __sfr ANSELB
;
2229 extern __at(0x018D) volatile __ANSELBbits_t ANSELBbits
;
2239 //==============================================================================
2241 extern __at(0x0191) __sfr EEADR
;
2242 extern __at(0x0191) __sfr EEADRL
;
2243 extern __at(0x0192) __sfr EEADRH
;
2244 extern __at(0x0193) __sfr EEDAT
;
2245 extern __at(0x0193) __sfr EEDATL
;
2246 extern __at(0x0194) __sfr EEDATH
;
2248 //==============================================================================
2251 extern __at(0x0195) __sfr EECON1
;
2265 extern __at(0x0195) volatile __EECON1bits_t EECON1bits
;
2276 //==============================================================================
2278 extern __at(0x0196) __sfr EECON2
;
2280 //==============================================================================
2283 extern __at(0x0197) __sfr VREGCON
;
2288 unsigned VREGPM
: 1;
2297 extern __at(0x0197) volatile __VREGCONbits_t VREGCONbits
;
2299 #define _VREGPM 0x02
2301 //==============================================================================
2303 extern __at(0x0199) __sfr RC1REG
;
2304 extern __at(0x0199) __sfr RCREG
;
2305 extern __at(0x0199) __sfr RCREG1
;
2306 extern __at(0x019A) __sfr TX1REG
;
2307 extern __at(0x019A) __sfr TXREG
;
2308 extern __at(0x019A) __sfr TXREG1
;
2309 extern __at(0x019B) __sfr SP1BRG
;
2310 extern __at(0x019B) __sfr SP1BRGL
;
2311 extern __at(0x019B) __sfr SPBRG
;
2312 extern __at(0x019B) __sfr SPBRG1
;
2313 extern __at(0x019B) __sfr SPBRGL
;
2314 extern __at(0x019C) __sfr SP1BRGH
;
2315 extern __at(0x019C) __sfr SPBRGH
;
2316 extern __at(0x019C) __sfr SPBRGH1
;
2318 //==============================================================================
2321 extern __at(0x019D) __sfr RC1STA
;
2335 extern __at(0x019D) volatile __RC1STAbits_t RC1STAbits
;
2346 //==============================================================================
2349 //==============================================================================
2352 extern __at(0x019D) __sfr RCSTA
;
2366 extern __at(0x019D) volatile __RCSTAbits_t RCSTAbits
;
2368 #define _RCSTA_RX9D 0x01
2369 #define _RCSTA_OERR 0x02
2370 #define _RCSTA_FERR 0x04
2371 #define _RCSTA_ADDEN 0x08
2372 #define _RCSTA_CREN 0x10
2373 #define _RCSTA_SREN 0x20
2374 #define _RCSTA_RX9 0x40
2375 #define _RCSTA_SPEN 0x80
2377 //==============================================================================
2380 //==============================================================================
2383 extern __at(0x019D) __sfr RCSTA1
;
2397 extern __at(0x019D) volatile __RCSTA1bits_t RCSTA1bits
;
2399 #define _RCSTA1_RX9D 0x01
2400 #define _RCSTA1_OERR 0x02
2401 #define _RCSTA1_FERR 0x04
2402 #define _RCSTA1_ADDEN 0x08
2403 #define _RCSTA1_CREN 0x10
2404 #define _RCSTA1_SREN 0x20
2405 #define _RCSTA1_RX9 0x40
2406 #define _RCSTA1_SPEN 0x80
2408 //==============================================================================
2411 //==============================================================================
2414 extern __at(0x019E) __sfr TX1STA
;
2428 extern __at(0x019E) volatile __TX1STAbits_t TX1STAbits
;
2439 //==============================================================================
2442 //==============================================================================
2445 extern __at(0x019E) __sfr TXSTA
;
2459 extern __at(0x019E) volatile __TXSTAbits_t TXSTAbits
;
2461 #define _TXSTA_TX9D 0x01
2462 #define _TXSTA_TRMT 0x02
2463 #define _TXSTA_BRGH 0x04
2464 #define _TXSTA_SENDB 0x08
2465 #define _TXSTA_SYNC 0x10
2466 #define _TXSTA_TXEN 0x20
2467 #define _TXSTA_TX9 0x40
2468 #define _TXSTA_CSRC 0x80
2470 //==============================================================================
2473 //==============================================================================
2476 extern __at(0x019E) __sfr TXSTA1
;
2490 extern __at(0x019E) volatile __TXSTA1bits_t TXSTA1bits
;
2492 #define _TXSTA1_TX9D 0x01
2493 #define _TXSTA1_TRMT 0x02
2494 #define _TXSTA1_BRGH 0x04
2495 #define _TXSTA1_SENDB 0x08
2496 #define _TXSTA1_SYNC 0x10
2497 #define _TXSTA1_TXEN 0x20
2498 #define _TXSTA1_TX9 0x40
2499 #define _TXSTA1_CSRC 0x80
2501 //==============================================================================
2504 //==============================================================================
2507 extern __at(0x019F) __sfr BAUD1CON
;
2518 unsigned ABDOVF
: 1;
2521 extern __at(0x019F) volatile __BAUD1CONbits_t BAUD1CONbits
;
2528 #define _ABDOVF 0x80
2530 //==============================================================================
2533 //==============================================================================
2536 extern __at(0x019F) __sfr BAUDCON
;
2547 unsigned ABDOVF
: 1;
2550 extern __at(0x019F) volatile __BAUDCONbits_t BAUDCONbits
;
2552 #define _BAUDCON_ABDEN 0x01
2553 #define _BAUDCON_WUE 0x02
2554 #define _BAUDCON_BRG16 0x08
2555 #define _BAUDCON_SCKP 0x10
2556 #define _BAUDCON_RCIDL 0x40
2557 #define _BAUDCON_ABDOVF 0x80
2559 //==============================================================================
2562 //==============================================================================
2565 extern __at(0x019F) __sfr BAUDCON1
;
2576 unsigned ABDOVF
: 1;
2579 extern __at(0x019F) volatile __BAUDCON1bits_t BAUDCON1bits
;
2581 #define _BAUDCON1_ABDEN 0x01
2582 #define _BAUDCON1_WUE 0x02
2583 #define _BAUDCON1_BRG16 0x08
2584 #define _BAUDCON1_SCKP 0x10
2585 #define _BAUDCON1_RCIDL 0x40
2586 #define _BAUDCON1_ABDOVF 0x80
2588 //==============================================================================
2591 //==============================================================================
2594 extern __at(0x019F) __sfr BAUDCTL
;
2605 unsigned ABDOVF
: 1;
2608 extern __at(0x019F) volatile __BAUDCTLbits_t BAUDCTLbits
;
2610 #define _BAUDCTL_ABDEN 0x01
2611 #define _BAUDCTL_WUE 0x02
2612 #define _BAUDCTL_BRG16 0x08
2613 #define _BAUDCTL_SCKP 0x10
2614 #define _BAUDCTL_RCIDL 0x40
2615 #define _BAUDCTL_ABDOVF 0x80
2617 //==============================================================================
2620 //==============================================================================
2623 extern __at(0x019F) __sfr BAUDCTL1
;
2634 unsigned ABDOVF
: 1;
2637 extern __at(0x019F) volatile __BAUDCTL1bits_t BAUDCTL1bits
;
2639 #define _BAUDCTL1_ABDEN 0x01
2640 #define _BAUDCTL1_WUE 0x02
2641 #define _BAUDCTL1_BRG16 0x08
2642 #define _BAUDCTL1_SCKP 0x10
2643 #define _BAUDCTL1_RCIDL 0x40
2644 #define _BAUDCTL1_ABDOVF 0x80
2646 //==============================================================================
2649 //==============================================================================
2652 extern __at(0x020C) __sfr WPUA
;
2666 extern __at(0x020C) volatile __WPUAbits_t WPUAbits
;
2677 //==============================================================================
2680 //==============================================================================
2683 extern __at(0x020D) __sfr WPUB
;
2697 extern __at(0x020D) volatile __WPUBbits_t WPUBbits
;
2708 //==============================================================================
2711 //==============================================================================
2714 extern __at(0x020E) __sfr WPUC
;
2728 extern __at(0x020E) volatile __WPUCbits_t WPUCbits
;
2739 //==============================================================================
2742 //==============================================================================
2745 extern __at(0x0210) __sfr WPUE
;
2759 extern __at(0x0210) volatile __WPUEbits_t WPUEbits
;
2763 //==============================================================================
2766 //==============================================================================
2769 extern __at(0x0211) __sfr SSP1BUF
;
2775 unsigned SSP1BUF0
: 1;
2776 unsigned SSP1BUF1
: 1;
2777 unsigned SSP1BUF2
: 1;
2778 unsigned SSP1BUF3
: 1;
2779 unsigned SSP1BUF4
: 1;
2780 unsigned SSP1BUF5
: 1;
2781 unsigned SSP1BUF6
: 1;
2782 unsigned SSP1BUF7
: 1;
2798 extern __at(0x0211) volatile __SSP1BUFbits_t SSP1BUFbits
;
2800 #define _SSP1BUF0 0x01
2802 #define _SSP1BUF1 0x02
2804 #define _SSP1BUF2 0x04
2806 #define _SSP1BUF3 0x08
2808 #define _SSP1BUF4 0x10
2810 #define _SSP1BUF5 0x20
2812 #define _SSP1BUF6 0x40
2814 #define _SSP1BUF7 0x80
2817 //==============================================================================
2820 //==============================================================================
2823 extern __at(0x0211) __sfr SSPBUF
;
2829 unsigned SSP1BUF0
: 1;
2830 unsigned SSP1BUF1
: 1;
2831 unsigned SSP1BUF2
: 1;
2832 unsigned SSP1BUF3
: 1;
2833 unsigned SSP1BUF4
: 1;
2834 unsigned SSP1BUF5
: 1;
2835 unsigned SSP1BUF6
: 1;
2836 unsigned SSP1BUF7
: 1;
2852 extern __at(0x0211) volatile __SSPBUFbits_t SSPBUFbits
;
2854 #define _SSPBUF_SSP1BUF0 0x01
2855 #define _SSPBUF_BUF0 0x01
2856 #define _SSPBUF_SSP1BUF1 0x02
2857 #define _SSPBUF_BUF1 0x02
2858 #define _SSPBUF_SSP1BUF2 0x04
2859 #define _SSPBUF_BUF2 0x04
2860 #define _SSPBUF_SSP1BUF3 0x08
2861 #define _SSPBUF_BUF3 0x08
2862 #define _SSPBUF_SSP1BUF4 0x10
2863 #define _SSPBUF_BUF4 0x10
2864 #define _SSPBUF_SSP1BUF5 0x20
2865 #define _SSPBUF_BUF5 0x20
2866 #define _SSPBUF_SSP1BUF6 0x40
2867 #define _SSPBUF_BUF6 0x40
2868 #define _SSPBUF_SSP1BUF7 0x80
2869 #define _SSPBUF_BUF7 0x80
2871 //==============================================================================
2874 //==============================================================================
2877 extern __at(0x0212) __sfr SSP1ADD
;
2883 unsigned SSP1ADD0
: 1;
2884 unsigned SSP1ADD1
: 1;
2885 unsigned SSP1ADD2
: 1;
2886 unsigned SSP1ADD3
: 1;
2887 unsigned SSP1ADD4
: 1;
2888 unsigned SSP1ADD5
: 1;
2889 unsigned SSP1ADD6
: 1;
2890 unsigned SSP1ADD7
: 1;
2906 extern __at(0x0212) volatile __SSP1ADDbits_t SSP1ADDbits
;
2908 #define _SSP1ADD0 0x01
2910 #define _SSP1ADD1 0x02
2912 #define _SSP1ADD2 0x04
2914 #define _SSP1ADD3 0x08
2916 #define _SSP1ADD4 0x10
2918 #define _SSP1ADD5 0x20
2920 #define _SSP1ADD6 0x40
2922 #define _SSP1ADD7 0x80
2925 //==============================================================================
2928 //==============================================================================
2931 extern __at(0x0212) __sfr SSPADD
;
2937 unsigned SSP1ADD0
: 1;
2938 unsigned SSP1ADD1
: 1;
2939 unsigned SSP1ADD2
: 1;
2940 unsigned SSP1ADD3
: 1;
2941 unsigned SSP1ADD4
: 1;
2942 unsigned SSP1ADD5
: 1;
2943 unsigned SSP1ADD6
: 1;
2944 unsigned SSP1ADD7
: 1;
2960 extern __at(0x0212) volatile __SSPADDbits_t SSPADDbits
;
2962 #define _SSPADD_SSP1ADD0 0x01
2963 #define _SSPADD_ADD0 0x01
2964 #define _SSPADD_SSP1ADD1 0x02
2965 #define _SSPADD_ADD1 0x02
2966 #define _SSPADD_SSP1ADD2 0x04
2967 #define _SSPADD_ADD2 0x04
2968 #define _SSPADD_SSP1ADD3 0x08
2969 #define _SSPADD_ADD3 0x08
2970 #define _SSPADD_SSP1ADD4 0x10
2971 #define _SSPADD_ADD4 0x10
2972 #define _SSPADD_SSP1ADD5 0x20
2973 #define _SSPADD_ADD5 0x20
2974 #define _SSPADD_SSP1ADD6 0x40
2975 #define _SSPADD_ADD6 0x40
2976 #define _SSPADD_SSP1ADD7 0x80
2977 #define _SSPADD_ADD7 0x80
2979 //==============================================================================
2982 //==============================================================================
2985 extern __at(0x0213) __sfr SSP1MSK
;
2991 unsigned SSP1MSK0
: 1;
2992 unsigned SSP1MSK1
: 1;
2993 unsigned SSP1MSK2
: 1;
2994 unsigned SSP1MSK3
: 1;
2995 unsigned SSP1MSK4
: 1;
2996 unsigned SSP1MSK5
: 1;
2997 unsigned SSP1MSK6
: 1;
2998 unsigned SSP1MSK7
: 1;
3014 extern __at(0x0213) volatile __SSP1MSKbits_t SSP1MSKbits
;
3016 #define _SSP1MSK0 0x01
3018 #define _SSP1MSK1 0x02
3020 #define _SSP1MSK2 0x04
3022 #define _SSP1MSK3 0x08
3024 #define _SSP1MSK4 0x10
3026 #define _SSP1MSK5 0x20
3028 #define _SSP1MSK6 0x40
3030 #define _SSP1MSK7 0x80
3033 //==============================================================================
3036 //==============================================================================
3039 extern __at(0x0213) __sfr SSPMSK
;
3045 unsigned SSP1MSK0
: 1;
3046 unsigned SSP1MSK1
: 1;
3047 unsigned SSP1MSK2
: 1;
3048 unsigned SSP1MSK3
: 1;
3049 unsigned SSP1MSK4
: 1;
3050 unsigned SSP1MSK5
: 1;
3051 unsigned SSP1MSK6
: 1;
3052 unsigned SSP1MSK7
: 1;
3068 extern __at(0x0213) volatile __SSPMSKbits_t SSPMSKbits
;
3070 #define _SSPMSK_SSP1MSK0 0x01
3071 #define _SSPMSK_MSK0 0x01
3072 #define _SSPMSK_SSP1MSK1 0x02
3073 #define _SSPMSK_MSK1 0x02
3074 #define _SSPMSK_SSP1MSK2 0x04
3075 #define _SSPMSK_MSK2 0x04
3076 #define _SSPMSK_SSP1MSK3 0x08
3077 #define _SSPMSK_MSK3 0x08
3078 #define _SSPMSK_SSP1MSK4 0x10
3079 #define _SSPMSK_MSK4 0x10
3080 #define _SSPMSK_SSP1MSK5 0x20
3081 #define _SSPMSK_MSK5 0x20
3082 #define _SSPMSK_SSP1MSK6 0x40
3083 #define _SSPMSK_MSK6 0x40
3084 #define _SSPMSK_SSP1MSK7 0x80
3085 #define _SSPMSK_MSK7 0x80
3087 //==============================================================================
3090 //==============================================================================
3093 extern __at(0x0214) __sfr SSP1STAT
;
3099 unsigned R_NOT_W
: 1;
3102 unsigned D_NOT_A
: 1;
3107 extern __at(0x0214) volatile __SSP1STATbits_t SSP1STATbits
;
3111 #define _R_NOT_W 0x04
3114 #define _D_NOT_A 0x20
3118 //==============================================================================
3121 //==============================================================================
3124 extern __at(0x0214) __sfr SSPSTAT
;
3130 unsigned R_NOT_W
: 1;
3133 unsigned D_NOT_A
: 1;
3138 extern __at(0x0214) volatile __SSPSTATbits_t SSPSTATbits
;
3140 #define _SSPSTAT_BF 0x01
3141 #define _SSPSTAT_UA 0x02
3142 #define _SSPSTAT_R_NOT_W 0x04
3143 #define _SSPSTAT_S 0x08
3144 #define _SSPSTAT_P 0x10
3145 #define _SSPSTAT_D_NOT_A 0x20
3146 #define _SSPSTAT_CKE 0x40
3147 #define _SSPSTAT_SMP 0x80
3149 //==============================================================================
3152 //==============================================================================
3155 extern __at(0x0215) __sfr SSP1CON
;
3178 extern __at(0x0215) volatile __SSP1CONbits_t SSP1CONbits
;
3189 //==============================================================================
3192 //==============================================================================
3195 extern __at(0x0215) __sfr SSP1CON1
;
3218 extern __at(0x0215) volatile __SSP1CON1bits_t SSP1CON1bits
;
3220 #define _SSP1CON1_SSPM0 0x01
3221 #define _SSP1CON1_SSPM1 0x02
3222 #define _SSP1CON1_SSPM2 0x04
3223 #define _SSP1CON1_SSPM3 0x08
3224 #define _SSP1CON1_CKP 0x10
3225 #define _SSP1CON1_SSPEN 0x20
3226 #define _SSP1CON1_SSPOV 0x40
3227 #define _SSP1CON1_WCOL 0x80
3229 //==============================================================================
3232 //==============================================================================
3235 extern __at(0x0215) __sfr SSPCON
;
3258 extern __at(0x0215) volatile __SSPCONbits_t SSPCONbits
;
3260 #define _SSPCON_SSPM0 0x01
3261 #define _SSPCON_SSPM1 0x02
3262 #define _SSPCON_SSPM2 0x04
3263 #define _SSPCON_SSPM3 0x08
3264 #define _SSPCON_CKP 0x10
3265 #define _SSPCON_SSPEN 0x20
3266 #define _SSPCON_SSPOV 0x40
3267 #define _SSPCON_WCOL 0x80
3269 //==============================================================================
3272 //==============================================================================
3275 extern __at(0x0215) __sfr SSPCON1
;
3298 extern __at(0x0215) volatile __SSPCON1bits_t SSPCON1bits
;
3300 #define _SSPCON1_SSPM0 0x01
3301 #define _SSPCON1_SSPM1 0x02
3302 #define _SSPCON1_SSPM2 0x04
3303 #define _SSPCON1_SSPM3 0x08
3304 #define _SSPCON1_CKP 0x10
3305 #define _SSPCON1_SSPEN 0x20
3306 #define _SSPCON1_SSPOV 0x40
3307 #define _SSPCON1_WCOL 0x80
3309 //==============================================================================
3312 //==============================================================================
3315 extern __at(0x0216) __sfr SSP1CON2
;
3325 unsigned ACKSTAT
: 1;
3329 extern __at(0x0216) volatile __SSP1CON2bits_t SSP1CON2bits
;
3337 #define _ACKSTAT 0x40
3340 //==============================================================================
3343 //==============================================================================
3346 extern __at(0x0216) __sfr SSPCON2
;
3356 unsigned ACKSTAT
: 1;
3360 extern __at(0x0216) volatile __SSPCON2bits_t SSPCON2bits
;
3362 #define _SSPCON2_SEN 0x01
3363 #define _SSPCON2_RSEN 0x02
3364 #define _SSPCON2_PEN 0x04
3365 #define _SSPCON2_RCEN 0x08
3366 #define _SSPCON2_ACKEN 0x10
3367 #define _SSPCON2_ACKDT 0x20
3368 #define _SSPCON2_ACKSTAT 0x40
3369 #define _SSPCON2_GCEN 0x80
3371 //==============================================================================
3374 //==============================================================================
3377 extern __at(0x0217) __sfr SSP1CON3
;
3388 unsigned ACKTIM
: 1;
3391 extern __at(0x0217) volatile __SSP1CON3bits_t SSP1CON3bits
;
3400 #define _ACKTIM 0x80
3402 //==============================================================================
3405 //==============================================================================
3408 extern __at(0x0217) __sfr SSPCON3
;
3419 unsigned ACKTIM
: 1;
3422 extern __at(0x0217) volatile __SSPCON3bits_t SSPCON3bits
;
3424 #define _SSPCON3_DHEN 0x01
3425 #define _SSPCON3_AHEN 0x02
3426 #define _SSPCON3_SBCDE 0x04
3427 #define _SSPCON3_SDAHT 0x08
3428 #define _SSPCON3_BOEN 0x10
3429 #define _SSPCON3_SCIE 0x20
3430 #define _SSPCON3_PCIE 0x40
3431 #define _SSPCON3_ACKTIM 0x80
3433 //==============================================================================
3436 //==============================================================================
3439 extern __at(0x028C) __sfr ODCONA
;
3443 unsigned ODCONA0
: 1;
3444 unsigned ODCONA1
: 1;
3445 unsigned ODCONA2
: 1;
3446 unsigned ODCONA3
: 1;
3447 unsigned ODCONA4
: 1;
3448 unsigned ODCONA5
: 1;
3449 unsigned ODCONA6
: 1;
3450 unsigned ODCONA7
: 1;
3453 extern __at(0x028C) volatile __ODCONAbits_t ODCONAbits
;
3455 #define _ODCONA0 0x01
3456 #define _ODCONA1 0x02
3457 #define _ODCONA2 0x04
3458 #define _ODCONA3 0x08
3459 #define _ODCONA4 0x10
3460 #define _ODCONA5 0x20
3461 #define _ODCONA6 0x40
3462 #define _ODCONA7 0x80
3464 //==============================================================================
3467 //==============================================================================
3470 extern __at(0x028D) __sfr ODCONB
;
3474 unsigned ODCONB0
: 1;
3475 unsigned ODCONB1
: 1;
3476 unsigned ODCONB2
: 1;
3477 unsigned ODCONB3
: 1;
3478 unsigned ODCONB4
: 1;
3479 unsigned ODCONB5
: 1;
3480 unsigned ODCONB6
: 1;
3481 unsigned ODCONB7
: 1;
3484 extern __at(0x028D) volatile __ODCONBbits_t ODCONBbits
;
3486 #define _ODCONB0 0x01
3487 #define _ODCONB1 0x02
3488 #define _ODCONB2 0x04
3489 #define _ODCONB3 0x08
3490 #define _ODCONB4 0x10
3491 #define _ODCONB5 0x20
3492 #define _ODCONB6 0x40
3493 #define _ODCONB7 0x80
3495 //==============================================================================
3498 //==============================================================================
3501 extern __at(0x028E) __sfr ODCONC
;
3505 unsigned ODCONC0
: 1;
3506 unsigned ODCONC1
: 1;
3507 unsigned ODCONC2
: 1;
3508 unsigned ODCONC3
: 1;
3509 unsigned ODCONC4
: 1;
3510 unsigned ODCONC5
: 1;
3511 unsigned ODCONC6
: 1;
3512 unsigned ODCONC7
: 1;
3515 extern __at(0x028E) volatile __ODCONCbits_t ODCONCbits
;
3517 #define _ODCONC0 0x01
3518 #define _ODCONC1 0x02
3519 #define _ODCONC2 0x04
3520 #define _ODCONC3 0x08
3521 #define _ODCONC4 0x10
3522 #define _ODCONC5 0x20
3523 #define _ODCONC6 0x40
3524 #define _ODCONC7 0x80
3526 //==============================================================================
3528 extern __at(0x0291) __sfr CCPR1
;
3529 extern __at(0x0291) __sfr CCPR1L
;
3530 extern __at(0x0292) __sfr CCPR1H
;
3532 //==============================================================================
3535 extern __at(0x0293) __sfr CCP1CON
;
3541 unsigned CCP1M0
: 1;
3542 unsigned CCP1M1
: 1;
3543 unsigned CCP1M2
: 1;
3544 unsigned CCP1M3
: 1;
3565 extern __at(0x0293) volatile __CCP1CONbits_t CCP1CONbits
;
3567 #define _CCP1M0 0x01
3568 #define _CCP1M1 0x02
3569 #define _CCP1M2 0x04
3570 #define _CCP1M3 0x08
3574 //==============================================================================
3576 extern __at(0x0298) __sfr CCPR2
;
3577 extern __at(0x0298) __sfr CCPR2L
;
3578 extern __at(0x0299) __sfr CCPR2H
;
3580 //==============================================================================
3583 extern __at(0x029A) __sfr CCP2CON
;
3589 unsigned CCP2M0
: 1;
3590 unsigned CCP2M1
: 1;
3591 unsigned CCP2M2
: 1;
3592 unsigned CCP2M3
: 1;
3613 extern __at(0x029A) volatile __CCP2CONbits_t CCP2CONbits
;
3615 #define _CCP2M0 0x01
3616 #define _CCP2M1 0x02
3617 #define _CCP2M2 0x04
3618 #define _CCP2M3 0x08
3622 //==============================================================================
3625 //==============================================================================
3628 extern __at(0x030C) __sfr SLRCONA
;
3632 unsigned SLRCONA0
: 1;
3633 unsigned SLRCONA1
: 1;
3634 unsigned SLRCONA2
: 1;
3635 unsigned SLRCONA3
: 1;
3636 unsigned SLRCONA4
: 1;
3637 unsigned SLRCONA5
: 1;
3638 unsigned SLRCONA6
: 1;
3639 unsigned SLRCONA7
: 1;
3642 extern __at(0x030C) volatile __SLRCONAbits_t SLRCONAbits
;
3644 #define _SLRCONA0 0x01
3645 #define _SLRCONA1 0x02
3646 #define _SLRCONA2 0x04
3647 #define _SLRCONA3 0x08
3648 #define _SLRCONA4 0x10
3649 #define _SLRCONA5 0x20
3650 #define _SLRCONA6 0x40
3651 #define _SLRCONA7 0x80
3653 //==============================================================================
3656 //==============================================================================
3659 extern __at(0x030D) __sfr SLRCONB
;
3663 unsigned SLRCONB0
: 1;
3664 unsigned SLRCONB1
: 1;
3665 unsigned SLRCONB2
: 1;
3666 unsigned SLRCONB3
: 1;
3667 unsigned SLRCONB4
: 1;
3668 unsigned SLRCONB5
: 1;
3669 unsigned SLRCONB6
: 1;
3670 unsigned SLRCONB7
: 1;
3673 extern __at(0x030D) volatile __SLRCONBbits_t SLRCONBbits
;
3675 #define _SLRCONB0 0x01
3676 #define _SLRCONB1 0x02
3677 #define _SLRCONB2 0x04
3678 #define _SLRCONB3 0x08
3679 #define _SLRCONB4 0x10
3680 #define _SLRCONB5 0x20
3681 #define _SLRCONB6 0x40
3682 #define _SLRCONB7 0x80
3684 //==============================================================================
3687 //==============================================================================
3690 extern __at(0x030E) __sfr SLRCONC
;
3694 unsigned SLRCONC0
: 1;
3695 unsigned SLRCONC1
: 1;
3696 unsigned SLRCONC2
: 1;
3697 unsigned SLRCONC3
: 1;
3698 unsigned SLRCONC4
: 1;
3699 unsigned SLRCONC5
: 1;
3700 unsigned SLRCONC6
: 1;
3701 unsigned SLRCONC7
: 1;
3704 extern __at(0x030E) volatile __SLRCONCbits_t SLRCONCbits
;
3706 #define _SLRCONC0 0x01
3707 #define _SLRCONC1 0x02
3708 #define _SLRCONC2 0x04
3709 #define _SLRCONC3 0x08
3710 #define _SLRCONC4 0x10
3711 #define _SLRCONC5 0x20
3712 #define _SLRCONC6 0x40
3713 #define _SLRCONC7 0x80
3715 //==============================================================================
3717 extern __at(0x0311) __sfr CCPR3
;
3718 extern __at(0x0311) __sfr CCPR3L
;
3719 extern __at(0x0312) __sfr CCPR3H
;
3721 //==============================================================================
3724 extern __at(0x0313) __sfr CCP3CON
;
3730 unsigned CCP3M0
: 1;
3731 unsigned CCP3M1
: 1;
3732 unsigned CCP3M2
: 1;
3733 unsigned CCP3M3
: 1;
3754 extern __at(0x0313) volatile __CCP3CONbits_t CCP3CONbits
;
3756 #define _CCP3M0 0x01
3757 #define _CCP3M1 0x02
3758 #define _CCP3M2 0x04
3759 #define _CCP3M3 0x08
3763 //==============================================================================
3766 //==============================================================================
3769 extern __at(0x038C) __sfr INLVLA
;
3773 unsigned INLVLA0
: 1;
3774 unsigned INLVLA1
: 1;
3775 unsigned INLVLA2
: 1;
3776 unsigned INLVLA3
: 1;
3777 unsigned INLVLA4
: 1;
3778 unsigned INLVLA5
: 1;
3779 unsigned INLVLA6
: 1;
3780 unsigned INLVLA7
: 1;
3783 extern __at(0x038C) volatile __INLVLAbits_t INLVLAbits
;
3785 #define _INLVLA0 0x01
3786 #define _INLVLA1 0x02
3787 #define _INLVLA2 0x04
3788 #define _INLVLA3 0x08
3789 #define _INLVLA4 0x10
3790 #define _INLVLA5 0x20
3791 #define _INLVLA6 0x40
3792 #define _INLVLA7 0x80
3794 //==============================================================================
3797 //==============================================================================
3800 extern __at(0x038D) __sfr INLVLB
;
3804 unsigned INLVLB0
: 1;
3805 unsigned INLVLB1
: 1;
3806 unsigned INLVLB2
: 1;
3807 unsigned INLVLB3
: 1;
3808 unsigned INLVLB4
: 1;
3809 unsigned INLVLB5
: 1;
3810 unsigned INLVLB6
: 1;
3811 unsigned INLVLB7
: 1;
3814 extern __at(0x038D) volatile __INLVLBbits_t INLVLBbits
;
3816 #define _INLVLB0 0x01
3817 #define _INLVLB1 0x02
3818 #define _INLVLB2 0x04
3819 #define _INLVLB3 0x08
3820 #define _INLVLB4 0x10
3821 #define _INLVLB5 0x20
3822 #define _INLVLB6 0x40
3823 #define _INLVLB7 0x80
3825 //==============================================================================
3828 //==============================================================================
3831 extern __at(0x038E) __sfr INLVLC
;
3835 unsigned INLVLC0
: 1;
3836 unsigned INLVLC1
: 1;
3837 unsigned INLVLC2
: 1;
3838 unsigned INLVLC3
: 1;
3839 unsigned INLVLC4
: 1;
3840 unsigned INLVLC5
: 1;
3841 unsigned INLVLC6
: 1;
3842 unsigned INLVLC7
: 1;
3845 extern __at(0x038E) volatile __INLVLCbits_t INLVLCbits
;
3847 #define _INLVLC0 0x01
3848 #define _INLVLC1 0x02
3849 #define _INLVLC2 0x04
3850 #define _INLVLC3 0x08
3851 #define _INLVLC4 0x10
3852 #define _INLVLC5 0x20
3853 #define _INLVLC6 0x40
3854 #define _INLVLC7 0x80
3856 //==============================================================================
3859 //==============================================================================
3862 extern __at(0x0390) __sfr INLVLE
;
3869 unsigned INLVLE3
: 1;
3876 extern __at(0x0390) volatile __INLVLEbits_t INLVLEbits
;
3878 #define _INLVLE3 0x08
3880 //==============================================================================
3883 //==============================================================================
3886 extern __at(0x0391) __sfr IOCAP
;
3890 unsigned IOCAP0
: 1;
3891 unsigned IOCAP1
: 1;
3892 unsigned IOCAP2
: 1;
3893 unsigned IOCAP3
: 1;
3894 unsigned IOCAP4
: 1;
3895 unsigned IOCAP5
: 1;
3896 unsigned IOCAP6
: 1;
3897 unsigned IOCAP7
: 1;
3900 extern __at(0x0391) volatile __IOCAPbits_t IOCAPbits
;
3902 #define _IOCAP0 0x01
3903 #define _IOCAP1 0x02
3904 #define _IOCAP2 0x04
3905 #define _IOCAP3 0x08
3906 #define _IOCAP4 0x10
3907 #define _IOCAP5 0x20
3908 #define _IOCAP6 0x40
3909 #define _IOCAP7 0x80
3911 //==============================================================================
3914 //==============================================================================
3917 extern __at(0x0392) __sfr IOCAN
;
3921 unsigned IOCAN0
: 1;
3922 unsigned IOCAN1
: 1;
3923 unsigned IOCAN2
: 1;
3924 unsigned IOCAN3
: 1;
3925 unsigned IOCAN4
: 1;
3926 unsigned IOCAN5
: 1;
3927 unsigned IOCAN6
: 1;
3928 unsigned IOCAN7
: 1;
3931 extern __at(0x0392) volatile __IOCANbits_t IOCANbits
;
3933 #define _IOCAN0 0x01
3934 #define _IOCAN1 0x02
3935 #define _IOCAN2 0x04
3936 #define _IOCAN3 0x08
3937 #define _IOCAN4 0x10
3938 #define _IOCAN5 0x20
3939 #define _IOCAN6 0x40
3940 #define _IOCAN7 0x80
3942 //==============================================================================
3945 //==============================================================================
3948 extern __at(0x0393) __sfr IOCAF
;
3952 unsigned IOCAF0
: 1;
3953 unsigned IOCAF1
: 1;
3954 unsigned IOCAF2
: 1;
3955 unsigned IOCAF3
: 1;
3956 unsigned IOCAF4
: 1;
3957 unsigned IOCAF5
: 1;
3958 unsigned IOCAF6
: 1;
3959 unsigned IOCAF7
: 1;
3962 extern __at(0x0393) volatile __IOCAFbits_t IOCAFbits
;
3964 #define _IOCAF0 0x01
3965 #define _IOCAF1 0x02
3966 #define _IOCAF2 0x04
3967 #define _IOCAF3 0x08
3968 #define _IOCAF4 0x10
3969 #define _IOCAF5 0x20
3970 #define _IOCAF6 0x40
3971 #define _IOCAF7 0x80
3973 //==============================================================================
3976 //==============================================================================
3979 extern __at(0x0394) __sfr IOCBP
;
3983 unsigned IOCBP0
: 1;
3984 unsigned IOCBP1
: 1;
3985 unsigned IOCBP2
: 1;
3986 unsigned IOCBP3
: 1;
3987 unsigned IOCBP4
: 1;
3988 unsigned IOCBP5
: 1;
3989 unsigned IOCBP6
: 1;
3990 unsigned IOCBP7
: 1;
3993 extern __at(0x0394) volatile __IOCBPbits_t IOCBPbits
;
3995 #define _IOCBP0 0x01
3996 #define _IOCBP1 0x02
3997 #define _IOCBP2 0x04
3998 #define _IOCBP3 0x08
3999 #define _IOCBP4 0x10
4000 #define _IOCBP5 0x20
4001 #define _IOCBP6 0x40
4002 #define _IOCBP7 0x80
4004 //==============================================================================
4007 //==============================================================================
4010 extern __at(0x0395) __sfr IOCBN
;
4014 unsigned IOCBN0
: 1;
4015 unsigned IOCBN1
: 1;
4016 unsigned IOCBN2
: 1;
4017 unsigned IOCBN3
: 1;
4018 unsigned IOCBN4
: 1;
4019 unsigned IOCBN5
: 1;
4020 unsigned IOCBN6
: 1;
4021 unsigned IOCBN7
: 1;
4024 extern __at(0x0395) volatile __IOCBNbits_t IOCBNbits
;
4026 #define _IOCBN0 0x01
4027 #define _IOCBN1 0x02
4028 #define _IOCBN2 0x04
4029 #define _IOCBN3 0x08
4030 #define _IOCBN4 0x10
4031 #define _IOCBN5 0x20
4032 #define _IOCBN6 0x40
4033 #define _IOCBN7 0x80
4035 //==============================================================================
4038 //==============================================================================
4041 extern __at(0x0396) __sfr IOCBF
;
4045 unsigned IOCBF0
: 1;
4046 unsigned IOCBF1
: 1;
4047 unsigned IOCBF2
: 1;
4048 unsigned IOCBF3
: 1;
4049 unsigned IOCBF4
: 1;
4050 unsigned IOCBF5
: 1;
4051 unsigned IOCBF6
: 1;
4052 unsigned IOCBF7
: 1;
4055 extern __at(0x0396) volatile __IOCBFbits_t IOCBFbits
;
4057 #define _IOCBF0 0x01
4058 #define _IOCBF1 0x02
4059 #define _IOCBF2 0x04
4060 #define _IOCBF3 0x08
4061 #define _IOCBF4 0x10
4062 #define _IOCBF5 0x20
4063 #define _IOCBF6 0x40
4064 #define _IOCBF7 0x80
4066 //==============================================================================
4069 //==============================================================================
4072 extern __at(0x0397) __sfr IOCCP
;
4076 unsigned IOCCP0
: 1;
4077 unsigned IOCCP1
: 1;
4078 unsigned IOCCP2
: 1;
4079 unsigned IOCCP3
: 1;
4080 unsigned IOCCP4
: 1;
4081 unsigned IOCCP5
: 1;
4082 unsigned IOCCP6
: 1;
4083 unsigned IOCCP7
: 1;
4086 extern __at(0x0397) volatile __IOCCPbits_t IOCCPbits
;
4088 #define _IOCCP0 0x01
4089 #define _IOCCP1 0x02
4090 #define _IOCCP2 0x04
4091 #define _IOCCP3 0x08
4092 #define _IOCCP4 0x10
4093 #define _IOCCP5 0x20
4094 #define _IOCCP6 0x40
4095 #define _IOCCP7 0x80
4097 //==============================================================================
4100 //==============================================================================
4103 extern __at(0x0398) __sfr IOCCN
;
4107 unsigned IOCCN0
: 1;
4108 unsigned IOCCN1
: 1;
4109 unsigned IOCCN2
: 1;
4110 unsigned IOCCN3
: 1;
4111 unsigned IOCCN4
: 1;
4112 unsigned IOCCN5
: 1;
4113 unsigned IOCCN6
: 1;
4114 unsigned IOCCN7
: 1;
4117 extern __at(0x0398) volatile __IOCCNbits_t IOCCNbits
;
4119 #define _IOCCN0 0x01
4120 #define _IOCCN1 0x02
4121 #define _IOCCN2 0x04
4122 #define _IOCCN3 0x08
4123 #define _IOCCN4 0x10
4124 #define _IOCCN5 0x20
4125 #define _IOCCN6 0x40
4126 #define _IOCCN7 0x80
4128 //==============================================================================
4131 //==============================================================================
4134 extern __at(0x0399) __sfr IOCCF
;
4138 unsigned IOCCF0
: 1;
4139 unsigned IOCCF1
: 1;
4140 unsigned IOCCF2
: 1;
4141 unsigned IOCCF3
: 1;
4142 unsigned IOCCF4
: 1;
4143 unsigned IOCCF5
: 1;
4144 unsigned IOCCF6
: 1;
4145 unsigned IOCCF7
: 1;
4148 extern __at(0x0399) volatile __IOCCFbits_t IOCCFbits
;
4150 #define _IOCCF0 0x01
4151 #define _IOCCF1 0x02
4152 #define _IOCCF2 0x04
4153 #define _IOCCF3 0x08
4154 #define _IOCCF4 0x10
4155 #define _IOCCF5 0x20
4156 #define _IOCCF6 0x40
4157 #define _IOCCF7 0x80
4159 //==============================================================================
4162 //==============================================================================
4165 extern __at(0x039D) __sfr IOCEP
;
4172 unsigned IOCEP3
: 1;
4179 extern __at(0x039D) volatile __IOCEPbits_t IOCEPbits
;
4181 #define _IOCEP3 0x08
4183 //==============================================================================
4186 //==============================================================================
4189 extern __at(0x039E) __sfr IOCEN
;
4196 unsigned IOCEN3
: 1;
4203 extern __at(0x039E) volatile __IOCENbits_t IOCENbits
;
4205 #define _IOCEN3 0x08
4207 //==============================================================================
4210 //==============================================================================
4213 extern __at(0x039F) __sfr IOCEF
;
4220 unsigned IOCEF3
: 1;
4227 extern __at(0x039F) volatile __IOCEFbits_t IOCEFbits
;
4229 #define _IOCEF3 0x08
4231 //==============================================================================
4234 //==============================================================================
4237 extern __at(0x0511) __sfr OPA1CON
;
4243 unsigned OPA1PCH0
: 1;
4244 unsigned OPA1PCH1
: 1;
4249 unsigned OPA1SP
: 1;
4250 unsigned OPA1EN
: 1;
4273 unsigned OPA1PCH
: 2;
4278 extern __at(0x0511) volatile __OPA1CONbits_t OPA1CONbits
;
4280 #define _OPA1PCH0 0x01
4282 #define _OPA1PCH1 0x02
4284 #define _OPA1SP 0x40
4286 #define _OPA1EN 0x80
4289 //==============================================================================
4292 //==============================================================================
4295 extern __at(0x0513) __sfr OPA2CON
;
4301 unsigned OPA2PCH0
: 1;
4302 unsigned OPA2PCH1
: 1;
4307 unsigned OPA2SP
: 1;
4308 unsigned OPA2EN
: 1;
4331 unsigned OPA2PCH
: 2;
4336 extern __at(0x0513) volatile __OPA2CONbits_t OPA2CONbits
;
4338 #define _OPA2CON_OPA2PCH0 0x01
4339 #define _OPA2CON_PCH0 0x01
4340 #define _OPA2CON_OPA2PCH1 0x02
4341 #define _OPA2CON_PCH1 0x02
4342 #define _OPA2CON_OPA2SP 0x40
4343 #define _OPA2CON_SP 0x40
4344 #define _OPA2CON_OPA2EN 0x80
4345 #define _OPA2CON_EN 0x80
4347 //==============================================================================
4350 //==============================================================================
4353 extern __at(0x051A) __sfr CLKRCON
;
4359 unsigned CLKRDIV0
: 1;
4360 unsigned CLKRDIV1
: 1;
4361 unsigned CLKRDIV2
: 1;
4362 unsigned CLKRDC0
: 1;
4363 unsigned CLKRDC1
: 1;
4364 unsigned CLKRSLR
: 1;
4365 unsigned CLKROE
: 1;
4366 unsigned CLKREN
: 1;
4371 unsigned CLKRDIV
: 3;
4378 unsigned CLKRDC
: 2;
4383 extern __at(0x051A) volatile __CLKRCONbits_t CLKRCONbits
;
4385 #define _CLKRDIV0 0x01
4386 #define _CLKRDIV1 0x02
4387 #define _CLKRDIV2 0x04
4388 #define _CLKRDC0 0x08
4389 #define _CLKRDC1 0x10
4390 #define _CLKRSLR 0x20
4391 #define _CLKROE 0x40
4392 #define _CLKREN 0x80
4394 //==============================================================================
4397 //==============================================================================
4400 extern __at(0x0811) __sfr PSMC1CON
;
4406 unsigned P1MODE0
: 1;
4407 unsigned P1MODE1
: 1;
4408 unsigned P1MODE2
: 1;
4409 unsigned P1MODE3
: 1;
4410 unsigned P1DBRE
: 1;
4411 unsigned P1DBFE
: 1;
4412 unsigned PSMC1LD
: 1;
4413 unsigned PSMC1EN
: 1;
4418 unsigned P1MODE
: 4;
4423 extern __at(0x0811) volatile __PSMC1CONbits_t PSMC1CONbits
;
4425 #define _P1MODE0 0x01
4426 #define _P1MODE1 0x02
4427 #define _P1MODE2 0x04
4428 #define _P1MODE3 0x08
4429 #define _P1DBRE 0x10
4430 #define _P1DBFE 0x20
4431 #define _PSMC1LD 0x40
4432 #define _PSMC1EN 0x80
4434 //==============================================================================
4437 //==============================================================================
4440 extern __at(0x0812) __sfr PSMC1MDL
;
4446 unsigned P1MSRC0
: 1;
4447 unsigned P1MSRC1
: 1;
4448 unsigned P1MSRC2
: 1;
4449 unsigned P1MSRC3
: 1;
4451 unsigned P1MDLBIT
: 1;
4452 unsigned P1MDLPOL
: 1;
4453 unsigned P1MDLEN
: 1;
4458 unsigned P1MSRC
: 4;
4463 extern __at(0x0812) volatile __PSMC1MDLbits_t PSMC1MDLbits
;
4465 #define _P1MSRC0 0x01
4466 #define _P1MSRC1 0x02
4467 #define _P1MSRC2 0x04
4468 #define _P1MSRC3 0x08
4469 #define _P1MDLBIT 0x20
4470 #define _P1MDLPOL 0x40
4471 #define _P1MDLEN 0x80
4473 //==============================================================================
4476 //==============================================================================
4479 extern __at(0x0813) __sfr PSMC1SYNC
;
4485 unsigned P1SYNC0
: 1;
4486 unsigned P1SYNC1
: 1;
4487 unsigned P1SYNC2
: 1;
4490 unsigned P1DCPOL
: 1;
4491 unsigned P1PRPOL
: 1;
4492 unsigned P1POFST
: 1;
4497 unsigned P1SYNC
: 3;
4500 } __PSMC1SYNCbits_t
;
4502 extern __at(0x0813) volatile __PSMC1SYNCbits_t PSMC1SYNCbits
;
4504 #define _P1SYNC0 0x01
4505 #define _P1SYNC1 0x02
4506 #define _P1SYNC2 0x04
4507 #define _P1DCPOL 0x20
4508 #define _P1PRPOL 0x40
4509 #define _P1POFST 0x80
4511 //==============================================================================
4514 //==============================================================================
4517 extern __at(0x0814) __sfr PSMC1CLK
;
4523 unsigned P1CSRC0
: 1;
4524 unsigned P1CSRC1
: 1;
4527 unsigned P1CPRE0
: 1;
4528 unsigned P1CPRE1
: 1;
4535 unsigned P1CSRC
: 2;
4542 unsigned P1CPRE
: 2;
4547 extern __at(0x0814) volatile __PSMC1CLKbits_t PSMC1CLKbits
;
4549 #define _P1CSRC0 0x01
4550 #define _P1CSRC1 0x02
4551 #define _P1CPRE0 0x10
4552 #define _P1CPRE1 0x20
4554 //==============================================================================
4557 //==============================================================================
4560 extern __at(0x0815) __sfr PSMC1OEN
;
4574 extern __at(0x0815) volatile __PSMC1OENbits_t PSMC1OENbits
;
4583 //==============================================================================
4586 //==============================================================================
4589 extern __at(0x0816) __sfr PSMC1POL
;
4593 unsigned P1POLA
: 1;
4594 unsigned P1POLB
: 1;
4595 unsigned P1POLC
: 1;
4596 unsigned P1POLD
: 1;
4597 unsigned P1POLE
: 1;
4598 unsigned P1POLF
: 1;
4599 unsigned P1INPOL
: 1;
4603 extern __at(0x0816) volatile __PSMC1POLbits_t PSMC1POLbits
;
4605 #define _P1POLA 0x01
4606 #define _P1POLB 0x02
4607 #define _P1POLC 0x04
4608 #define _P1POLD 0x08
4609 #define _P1POLE 0x10
4610 #define _P1POLF 0x20
4611 #define _P1INPOL 0x40
4613 //==============================================================================
4616 //==============================================================================
4619 extern __at(0x0817) __sfr PSMC1BLNK
;
4625 unsigned P1REBM0
: 1;
4626 unsigned P1REBM1
: 1;
4629 unsigned P1FEBM0
: 1;
4630 unsigned P1FEBM1
: 1;
4637 unsigned P1REBM
: 2;
4644 unsigned P1FEBM
: 2;
4647 } __PSMC1BLNKbits_t
;
4649 extern __at(0x0817) volatile __PSMC1BLNKbits_t PSMC1BLNKbits
;
4651 #define _P1REBM0 0x01
4652 #define _P1REBM1 0x02
4653 #define _P1FEBM0 0x10
4654 #define _P1FEBM1 0x20
4656 //==============================================================================
4659 //==============================================================================
4662 extern __at(0x0818) __sfr PSMC1REBS
;
4667 unsigned P1REBSC1
: 1;
4668 unsigned P1REBSC2
: 1;
4669 unsigned P1REBSC3
: 1;
4670 unsigned P1REBSC4
: 1;
4673 unsigned P1REBSIN
: 1;
4674 } __PSMC1REBSbits_t
;
4676 extern __at(0x0818) volatile __PSMC1REBSbits_t PSMC1REBSbits
;
4678 #define _P1REBSC1 0x02
4679 #define _P1REBSC2 0x04
4680 #define _P1REBSC3 0x08
4681 #define _P1REBSC4 0x10
4682 #define _P1REBSIN 0x80
4684 //==============================================================================
4687 //==============================================================================
4690 extern __at(0x0819) __sfr PSMC1FEBS
;
4695 unsigned P1FEBSC1
: 1;
4696 unsigned P1FEBSC2
: 1;
4697 unsigned P1FEBSC3
: 1;
4698 unsigned P1FEBSC4
: 1;
4701 unsigned P1FEBSIN
: 1;
4702 } __PSMC1FEBSbits_t
;
4704 extern __at(0x0819) volatile __PSMC1FEBSbits_t PSMC1FEBSbits
;
4706 #define _P1FEBSC1 0x02
4707 #define _P1FEBSC2 0x04
4708 #define _P1FEBSC3 0x08
4709 #define _P1FEBSC4 0x10
4710 #define _P1FEBSIN 0x80
4712 //==============================================================================
4715 //==============================================================================
4718 extern __at(0x081A) __sfr PSMC1PHS
;
4722 unsigned P1PHST
: 1;
4723 unsigned P1PHSC1
: 1;
4724 unsigned P1PHSC2
: 1;
4725 unsigned P1PHSC3
: 1;
4726 unsigned P1PHSC4
: 1;
4729 unsigned P1PHSIN
: 1;
4732 extern __at(0x081A) volatile __PSMC1PHSbits_t PSMC1PHSbits
;
4734 #define _P1PHST 0x01
4735 #define _P1PHSC1 0x02
4736 #define _P1PHSC2 0x04
4737 #define _P1PHSC3 0x08
4738 #define _P1PHSC4 0x10
4739 #define _P1PHSIN 0x80
4741 //==============================================================================
4744 //==============================================================================
4747 extern __at(0x081B) __sfr PSMC1DCS
;
4751 unsigned P1DCST
: 1;
4752 unsigned P1DCSC1
: 1;
4753 unsigned P1DCSC2
: 1;
4754 unsigned P1DCSC3
: 1;
4755 unsigned P1DCSC4
: 1;
4758 unsigned P1DCSIN
: 1;
4761 extern __at(0x081B) volatile __PSMC1DCSbits_t PSMC1DCSbits
;
4763 #define _P1DCST 0x01
4764 #define _P1DCSC1 0x02
4765 #define _P1DCSC2 0x04
4766 #define _P1DCSC3 0x08
4767 #define _P1DCSC4 0x10
4768 #define _P1DCSIN 0x80
4770 //==============================================================================
4773 //==============================================================================
4776 extern __at(0x081C) __sfr PSMC1PRS
;
4780 unsigned P1PRST
: 1;
4781 unsigned P1PRSC1
: 1;
4782 unsigned P1PRSC2
: 1;
4783 unsigned P1PRSC3
: 1;
4784 unsigned P1PRSC4
: 1;
4787 unsigned P1PRSIN
: 1;
4790 extern __at(0x081C) volatile __PSMC1PRSbits_t PSMC1PRSbits
;
4792 #define _P1PRST 0x01
4793 #define _P1PRSC1 0x02
4794 #define _P1PRSC2 0x04
4795 #define _P1PRSC3 0x08
4796 #define _P1PRSC4 0x10
4797 #define _P1PRSIN 0x80
4799 //==============================================================================
4802 //==============================================================================
4805 extern __at(0x081D) __sfr PSMC1ASDC
;
4809 unsigned P1ASDOV
: 1;
4814 unsigned P1ARSEN
: 1;
4815 unsigned P1ASDEN
: 1;
4817 } __PSMC1ASDCbits_t
;
4819 extern __at(0x081D) volatile __PSMC1ASDCbits_t PSMC1ASDCbits
;
4821 #define _P1ASDOV 0x01
4822 #define _P1ARSEN 0x20
4823 #define _P1ASDEN 0x40
4826 //==============================================================================
4829 //==============================================================================
4832 extern __at(0x081E) __sfr PSMC1ASDL
;
4836 unsigned P1ASDLA
: 1;
4837 unsigned P1ASDLB
: 1;
4838 unsigned P1ASDLC
: 1;
4839 unsigned P1ASDLD
: 1;
4840 unsigned P1ASDLE
: 1;
4841 unsigned P1ASDLF
: 1;
4844 } __PSMC1ASDLbits_t
;
4846 extern __at(0x081E) volatile __PSMC1ASDLbits_t PSMC1ASDLbits
;
4848 #define _P1ASDLA 0x01
4849 #define _P1ASDLB 0x02
4850 #define _P1ASDLC 0x04
4851 #define _P1ASDLD 0x08
4852 #define _P1ASDLE 0x10
4853 #define _P1ASDLF 0x20
4855 //==============================================================================
4858 //==============================================================================
4861 extern __at(0x081F) __sfr PSMC1ASDS
;
4866 unsigned P1ASDSC1
: 1;
4867 unsigned P1ASDSC2
: 1;
4868 unsigned P1ASDSC3
: 1;
4869 unsigned P1ASDSC4
: 1;
4872 unsigned P1ASDSIN
: 1;
4873 } __PSMC1ASDSbits_t
;
4875 extern __at(0x081F) volatile __PSMC1ASDSbits_t PSMC1ASDSbits
;
4877 #define _P1ASDSC1 0x02
4878 #define _P1ASDSC2 0x04
4879 #define _P1ASDSC3 0x08
4880 #define _P1ASDSC4 0x10
4881 #define _P1ASDSIN 0x80
4883 //==============================================================================
4886 //==============================================================================
4889 extern __at(0x0820) __sfr PSMC1INT
;
4893 unsigned P1TPRIF
: 1;
4894 unsigned P1TDCIF
: 1;
4895 unsigned P1TPHIF
: 1;
4896 unsigned P1TOVIF
: 1;
4897 unsigned P1TPRIE
: 1;
4898 unsigned P1TDCIE
: 1;
4899 unsigned P1TPHIE
: 1;
4900 unsigned P1TOVIE
: 1;
4903 extern __at(0x0820) volatile __PSMC1INTbits_t PSMC1INTbits
;
4905 #define _P1TPRIF 0x01
4906 #define _P1TDCIF 0x02
4907 #define _P1TPHIF 0x04
4908 #define _P1TOVIF 0x08
4909 #define _P1TPRIE 0x10
4910 #define _P1TDCIE 0x20
4911 #define _P1TPHIE 0x40
4912 #define _P1TOVIE 0x80
4914 //==============================================================================
4916 extern __at(0x0821) __sfr PSMC1PH
;
4918 //==============================================================================
4921 extern __at(0x0821) __sfr PSMC1PHL
;
4925 unsigned PSMC1PH0
: 1;
4926 unsigned PSMC1PH1
: 1;
4927 unsigned PSMC1PH2
: 1;
4928 unsigned PSMC1PH3
: 1;
4929 unsigned PSMC1PH4
: 1;
4930 unsigned PSMC1PH5
: 1;
4931 unsigned PSMC1PH6
: 1;
4932 unsigned PSMC1PH7
: 1;
4935 extern __at(0x0821) volatile __PSMC1PHLbits_t PSMC1PHLbits
;
4937 #define _PSMC1PH0 0x01
4938 #define _PSMC1PH1 0x02
4939 #define _PSMC1PH2 0x04
4940 #define _PSMC1PH3 0x08
4941 #define _PSMC1PH4 0x10
4942 #define _PSMC1PH5 0x20
4943 #define _PSMC1PH6 0x40
4944 #define _PSMC1PH7 0x80
4946 //==============================================================================
4949 //==============================================================================
4952 extern __at(0x0822) __sfr PSMC1PHH
;
4956 unsigned PSMC1PH8
: 1;
4957 unsigned PSMC1PH9
: 1;
4958 unsigned PSMC1PH10
: 1;
4959 unsigned PSMC1PH11
: 1;
4960 unsigned PSMC1PH12
: 1;
4961 unsigned PSMC1PH13
: 1;
4962 unsigned PSMC1PH14
: 1;
4963 unsigned PSMC1PH15
: 1;
4966 extern __at(0x0822) volatile __PSMC1PHHbits_t PSMC1PHHbits
;
4968 #define _PSMC1PH8 0x01
4969 #define _PSMC1PH9 0x02
4970 #define _PSMC1PH10 0x04
4971 #define _PSMC1PH11 0x08
4972 #define _PSMC1PH12 0x10
4973 #define _PSMC1PH13 0x20
4974 #define _PSMC1PH14 0x40
4975 #define _PSMC1PH15 0x80
4977 //==============================================================================
4979 extern __at(0x0823) __sfr PSMC1DC
;
4981 //==============================================================================
4984 extern __at(0x0823) __sfr PSMC1DCL
;
4988 unsigned PSMC1DC0
: 1;
4989 unsigned PSMC1DC1
: 1;
4990 unsigned PSMC1DC2
: 1;
4991 unsigned PSMC1DC3
: 1;
4992 unsigned PSMC1DC4
: 1;
4993 unsigned PSMC1DC5
: 1;
4994 unsigned PSMC1DC6
: 1;
4995 unsigned PSMC1DC7
: 1;
4998 extern __at(0x0823) volatile __PSMC1DCLbits_t PSMC1DCLbits
;
5000 #define _PSMC1DC0 0x01
5001 #define _PSMC1DC1 0x02
5002 #define _PSMC1DC2 0x04
5003 #define _PSMC1DC3 0x08
5004 #define _PSMC1DC4 0x10
5005 #define _PSMC1DC5 0x20
5006 #define _PSMC1DC6 0x40
5007 #define _PSMC1DC7 0x80
5009 //==============================================================================
5012 //==============================================================================
5015 extern __at(0x0824) __sfr PSMC1DCH
;
5019 unsigned PSMC1DC8
: 1;
5020 unsigned PSMC1DC9
: 1;
5021 unsigned PSMC1DC10
: 1;
5022 unsigned PSMC1DC11
: 1;
5023 unsigned PSMC1DC12
: 1;
5024 unsigned PSMC1DC13
: 1;
5025 unsigned PSMC1DC14
: 1;
5026 unsigned PSMC1DC15
: 1;
5029 extern __at(0x0824) volatile __PSMC1DCHbits_t PSMC1DCHbits
;
5031 #define _PSMC1DC8 0x01
5032 #define _PSMC1DC9 0x02
5033 #define _PSMC1DC10 0x04
5034 #define _PSMC1DC11 0x08
5035 #define _PSMC1DC12 0x10
5036 #define _PSMC1DC13 0x20
5037 #define _PSMC1DC14 0x40
5038 #define _PSMC1DC15 0x80
5040 //==============================================================================
5042 extern __at(0x0825) __sfr PSMC1PR
;
5044 //==============================================================================
5047 extern __at(0x0825) __sfr PSMC1PRL
;
5051 unsigned PSMC1PR0
: 1;
5052 unsigned PSMC1PR1
: 1;
5053 unsigned PSMC1PR2
: 1;
5054 unsigned PSMC1PR3
: 1;
5055 unsigned PSMC1PR4
: 1;
5056 unsigned PSMC1PR5
: 1;
5057 unsigned PSMC1PR6
: 1;
5058 unsigned PSMC1PR7
: 1;
5061 extern __at(0x0825) volatile __PSMC1PRLbits_t PSMC1PRLbits
;
5063 #define _PSMC1PR0 0x01
5064 #define _PSMC1PR1 0x02
5065 #define _PSMC1PR2 0x04
5066 #define _PSMC1PR3 0x08
5067 #define _PSMC1PR4 0x10
5068 #define _PSMC1PR5 0x20
5069 #define _PSMC1PR6 0x40
5070 #define _PSMC1PR7 0x80
5072 //==============================================================================
5075 //==============================================================================
5078 extern __at(0x0826) __sfr PSMC1PRH
;
5082 unsigned PSMC1PR8
: 1;
5083 unsigned PSMC1PR9
: 1;
5084 unsigned PSMC1PR10
: 1;
5085 unsigned PSMC1PR11
: 1;
5086 unsigned PSMC1PR12
: 1;
5087 unsigned PSMC1PR13
: 1;
5088 unsigned PSMC1PR14
: 1;
5089 unsigned PSMC1PR15
: 1;
5092 extern __at(0x0826) volatile __PSMC1PRHbits_t PSMC1PRHbits
;
5094 #define _PSMC1PR8 0x01
5095 #define _PSMC1PR9 0x02
5096 #define _PSMC1PR10 0x04
5097 #define _PSMC1PR11 0x08
5098 #define _PSMC1PR12 0x10
5099 #define _PSMC1PR13 0x20
5100 #define _PSMC1PR14 0x40
5101 #define _PSMC1PR15 0x80
5103 //==============================================================================
5105 extern __at(0x0827) __sfr PSMC1TMR
;
5107 //==============================================================================
5110 extern __at(0x0827) __sfr PSMC1TMRL
;
5114 unsigned PSMC1TMR0
: 1;
5115 unsigned PSMC1TMR1
: 1;
5116 unsigned PSMC1TMR2
: 1;
5117 unsigned PSMC1TMR3
: 1;
5118 unsigned PSMC1TMR4
: 1;
5119 unsigned PSMC1TMR5
: 1;
5120 unsigned PSMC1TMR6
: 1;
5121 unsigned PSMC1TMR7
: 1;
5122 } __PSMC1TMRLbits_t
;
5124 extern __at(0x0827) volatile __PSMC1TMRLbits_t PSMC1TMRLbits
;
5126 #define _PSMC1TMR0 0x01
5127 #define _PSMC1TMR1 0x02
5128 #define _PSMC1TMR2 0x04
5129 #define _PSMC1TMR3 0x08
5130 #define _PSMC1TMR4 0x10
5131 #define _PSMC1TMR5 0x20
5132 #define _PSMC1TMR6 0x40
5133 #define _PSMC1TMR7 0x80
5135 //==============================================================================
5138 //==============================================================================
5141 extern __at(0x0828) __sfr PSMC1TMRH
;
5145 unsigned PSMC1TMR8
: 1;
5146 unsigned PSMC1TMR9
: 1;
5147 unsigned PSMC1TMR10
: 1;
5148 unsigned PSMC1TMR11
: 1;
5149 unsigned PSMC1TMR12
: 1;
5150 unsigned PSMC1TMR13
: 1;
5151 unsigned PSMC1TMR14
: 1;
5152 unsigned PSMC1TMR15
: 1;
5153 } __PSMC1TMRHbits_t
;
5155 extern __at(0x0828) volatile __PSMC1TMRHbits_t PSMC1TMRHbits
;
5157 #define _PSMC1TMR8 0x01
5158 #define _PSMC1TMR9 0x02
5159 #define _PSMC1TMR10 0x04
5160 #define _PSMC1TMR11 0x08
5161 #define _PSMC1TMR12 0x10
5162 #define _PSMC1TMR13 0x20
5163 #define _PSMC1TMR14 0x40
5164 #define _PSMC1TMR15 0x80
5166 //==============================================================================
5169 //==============================================================================
5172 extern __at(0x0829) __sfr PSMC1DBR
;
5176 unsigned PSMC1DBR0
: 1;
5177 unsigned PSMC1DBR1
: 1;
5178 unsigned PSMC1DBR2
: 1;
5179 unsigned PSMC1DBR3
: 1;
5180 unsigned PSMC1DBR4
: 1;
5181 unsigned PSMC1DBR5
: 1;
5182 unsigned PSMC1DBR6
: 1;
5183 unsigned PSMC1DBR7
: 1;
5186 extern __at(0x0829) volatile __PSMC1DBRbits_t PSMC1DBRbits
;
5188 #define _PSMC1DBR0 0x01
5189 #define _PSMC1DBR1 0x02
5190 #define _PSMC1DBR2 0x04
5191 #define _PSMC1DBR3 0x08
5192 #define _PSMC1DBR4 0x10
5193 #define _PSMC1DBR5 0x20
5194 #define _PSMC1DBR6 0x40
5195 #define _PSMC1DBR7 0x80
5197 //==============================================================================
5200 //==============================================================================
5203 extern __at(0x082A) __sfr PSMC1DBF
;
5207 unsigned PSMC1DBF0
: 1;
5208 unsigned PSMC1DBF1
: 1;
5209 unsigned PSMC1DBF2
: 1;
5210 unsigned PSMC1DBF3
: 1;
5211 unsigned PSMC1DBF4
: 1;
5212 unsigned PSMC1DBF5
: 1;
5213 unsigned PSMC1DBF6
: 1;
5214 unsigned PSMC1DBF7
: 1;
5217 extern __at(0x082A) volatile __PSMC1DBFbits_t PSMC1DBFbits
;
5219 #define _PSMC1DBF0 0x01
5220 #define _PSMC1DBF1 0x02
5221 #define _PSMC1DBF2 0x04
5222 #define _PSMC1DBF3 0x08
5223 #define _PSMC1DBF4 0x10
5224 #define _PSMC1DBF5 0x20
5225 #define _PSMC1DBF6 0x40
5226 #define _PSMC1DBF7 0x80
5228 //==============================================================================
5231 //==============================================================================
5234 extern __at(0x082B) __sfr PSMC1BLKR
;
5238 unsigned PSMC1BLKR0
: 1;
5239 unsigned PSMC1BLKR1
: 1;
5240 unsigned PSMC1BLKR2
: 1;
5241 unsigned PSMC1BLKR3
: 1;
5242 unsigned PSMC1BLKR4
: 1;
5243 unsigned PSMC1BLKR5
: 1;
5244 unsigned PSMC1BLKR6
: 1;
5245 unsigned PSMC1BLKR7
: 1;
5246 } __PSMC1BLKRbits_t
;
5248 extern __at(0x082B) volatile __PSMC1BLKRbits_t PSMC1BLKRbits
;
5250 #define _PSMC1BLKR0 0x01
5251 #define _PSMC1BLKR1 0x02
5252 #define _PSMC1BLKR2 0x04
5253 #define _PSMC1BLKR3 0x08
5254 #define _PSMC1BLKR4 0x10
5255 #define _PSMC1BLKR5 0x20
5256 #define _PSMC1BLKR6 0x40
5257 #define _PSMC1BLKR7 0x80
5259 //==============================================================================
5262 //==============================================================================
5265 extern __at(0x082C) __sfr PSMC1BLKF
;
5269 unsigned PSMC1BLKF0
: 1;
5270 unsigned PSMC1BLKF1
: 1;
5271 unsigned PSMC1BLKF2
: 1;
5272 unsigned PSMC1BLKF3
: 1;
5273 unsigned PSMC1BLKF4
: 1;
5274 unsigned PSMC1BLKF5
: 1;
5275 unsigned PSMC1BLKF6
: 1;
5276 unsigned PSMC1BLKF7
: 1;
5277 } __PSMC1BLKFbits_t
;
5279 extern __at(0x082C) volatile __PSMC1BLKFbits_t PSMC1BLKFbits
;
5281 #define _PSMC1BLKF0 0x01
5282 #define _PSMC1BLKF1 0x02
5283 #define _PSMC1BLKF2 0x04
5284 #define _PSMC1BLKF3 0x08
5285 #define _PSMC1BLKF4 0x10
5286 #define _PSMC1BLKF5 0x20
5287 #define _PSMC1BLKF6 0x40
5288 #define _PSMC1BLKF7 0x80
5290 //==============================================================================
5293 //==============================================================================
5296 extern __at(0x082D) __sfr PSMC1FFA
;
5302 unsigned PSMC1FFA0
: 1;
5303 unsigned PSMC1FFA1
: 1;
5304 unsigned PSMC1FFA2
: 1;
5305 unsigned PSMC1FFA3
: 1;
5314 unsigned PSMC1FFA
: 4;
5319 extern __at(0x082D) volatile __PSMC1FFAbits_t PSMC1FFAbits
;
5321 #define _PSMC1FFA0 0x01
5322 #define _PSMC1FFA1 0x02
5323 #define _PSMC1FFA2 0x04
5324 #define _PSMC1FFA3 0x08
5326 //==============================================================================
5329 //==============================================================================
5332 extern __at(0x082E) __sfr PSMC1STR0
;
5336 unsigned P1STRA
: 1;
5337 unsigned P1STRB
: 1;
5338 unsigned P1STRC
: 1;
5339 unsigned P1STRD
: 1;
5340 unsigned P1STRE
: 1;
5341 unsigned P1STRF
: 1;
5344 } __PSMC1STR0bits_t
;
5346 extern __at(0x082E) volatile __PSMC1STR0bits_t PSMC1STR0bits
;
5348 #define _P1STRA 0x01
5349 #define _P1STRB 0x02
5350 #define _P1STRC 0x04
5351 #define _P1STRD 0x08
5352 #define _P1STRE 0x10
5353 #define _P1STRF 0x20
5355 //==============================================================================
5358 //==============================================================================
5361 extern __at(0x082F) __sfr PSMC1STR1
;
5365 unsigned P1HSMEN
: 1;
5366 unsigned P1LSMEN
: 1;
5372 unsigned P1SSYNC
: 1;
5373 } __PSMC1STR1bits_t
;
5375 extern __at(0x082F) volatile __PSMC1STR1bits_t PSMC1STR1bits
;
5377 #define _P1HSMEN 0x01
5378 #define _P1LSMEN 0x02
5379 #define _P1SSYNC 0x80
5381 //==============================================================================
5384 //==============================================================================
5387 extern __at(0x0831) __sfr PSMC2CON
;
5393 unsigned P2MODE0
: 1;
5394 unsigned P2MODE1
: 1;
5395 unsigned P2MODE2
: 1;
5396 unsigned P2MODE3
: 1;
5397 unsigned P2DBRE
: 1;
5398 unsigned P2DBFE
: 1;
5399 unsigned PSMC2LD
: 1;
5400 unsigned PSMC2EN
: 1;
5405 unsigned P2MODE
: 4;
5410 extern __at(0x0831) volatile __PSMC2CONbits_t PSMC2CONbits
;
5412 #define _P2MODE0 0x01
5413 #define _P2MODE1 0x02
5414 #define _P2MODE2 0x04
5415 #define _P2MODE3 0x08
5416 #define _P2DBRE 0x10
5417 #define _P2DBFE 0x20
5418 #define _PSMC2LD 0x40
5419 #define _PSMC2EN 0x80
5421 //==============================================================================
5424 //==============================================================================
5427 extern __at(0x0832) __sfr PSMC2MDL
;
5433 unsigned P2MSRC0
: 1;
5434 unsigned P2MSRC1
: 1;
5435 unsigned P2MSRC2
: 1;
5436 unsigned P2MSRC3
: 1;
5438 unsigned P2MDLBIT
: 1;
5439 unsigned P2MDLPOL
: 1;
5440 unsigned P2MDLEN
: 1;
5445 unsigned P2MSRC
: 4;
5450 extern __at(0x0832) volatile __PSMC2MDLbits_t PSMC2MDLbits
;
5452 #define _P2MSRC0 0x01
5453 #define _P2MSRC1 0x02
5454 #define _P2MSRC2 0x04
5455 #define _P2MSRC3 0x08
5456 #define _P2MDLBIT 0x20
5457 #define _P2MDLPOL 0x40
5458 #define _P2MDLEN 0x80
5460 //==============================================================================
5463 //==============================================================================
5466 extern __at(0x0833) __sfr PSMC2SYNC
;
5472 unsigned P2SYNC0
: 1;
5473 unsigned P2SYNC1
: 1;
5474 unsigned P2SYNC2
: 1;
5477 unsigned P2DCPOL
: 1;
5478 unsigned P2PRPOL
: 1;
5479 unsigned P2POFST
: 1;
5484 unsigned P2SYNC
: 3;
5487 } __PSMC2SYNCbits_t
;
5489 extern __at(0x0833) volatile __PSMC2SYNCbits_t PSMC2SYNCbits
;
5491 #define _P2SYNC0 0x01
5492 #define _P2SYNC1 0x02
5493 #define _P2SYNC2 0x04
5494 #define _P2DCPOL 0x20
5495 #define _P2PRPOL 0x40
5496 #define _P2POFST 0x80
5498 //==============================================================================
5501 //==============================================================================
5504 extern __at(0x0834) __sfr PSMC2CLK
;
5510 unsigned P2CSRC0
: 1;
5511 unsigned P2CSRC1
: 1;
5514 unsigned P2CPRE0
: 1;
5515 unsigned P2CPRE1
: 1;
5522 unsigned P2CSRC
: 2;
5529 unsigned P2CPRE
: 2;
5534 extern __at(0x0834) volatile __PSMC2CLKbits_t PSMC2CLKbits
;
5536 #define _P2CSRC0 0x01
5537 #define _P2CSRC1 0x02
5538 #define _P2CPRE0 0x10
5539 #define _P2CPRE1 0x20
5541 //==============================================================================
5544 //==============================================================================
5547 extern __at(0x0835) __sfr PSMC2OEN
;
5561 extern __at(0x0835) volatile __PSMC2OENbits_t PSMC2OENbits
;
5566 //==============================================================================
5569 //==============================================================================
5572 extern __at(0x0836) __sfr PSMC2POL
;
5576 unsigned P2POLA
: 1;
5577 unsigned P2POLB
: 1;
5582 unsigned P2INPOL
: 1;
5586 extern __at(0x0836) volatile __PSMC2POLbits_t PSMC2POLbits
;
5588 #define _P2POLA 0x01
5589 #define _P2POLB 0x02
5590 #define _P2INPOL 0x40
5592 //==============================================================================
5595 //==============================================================================
5598 extern __at(0x0837) __sfr PSMC2BLNK
;
5604 unsigned P2REBM0
: 1;
5605 unsigned P2REBM1
: 1;
5608 unsigned P2FEBM0
: 1;
5609 unsigned P2FEBM1
: 1;
5616 unsigned P2REBM
: 2;
5623 unsigned P2FEBM
: 2;
5626 } __PSMC2BLNKbits_t
;
5628 extern __at(0x0837) volatile __PSMC2BLNKbits_t PSMC2BLNKbits
;
5630 #define _P2REBM0 0x01
5631 #define _P2REBM1 0x02
5632 #define _P2FEBM0 0x10
5633 #define _P2FEBM1 0x20
5635 //==============================================================================
5638 //==============================================================================
5641 extern __at(0x0838) __sfr PSMC2REBS
;
5646 unsigned P2REBSC1
: 1;
5647 unsigned P2REBSC2
: 1;
5648 unsigned P2REBSC3
: 1;
5649 unsigned P2REBSC4
: 1;
5652 unsigned P2REBSIN
: 1;
5653 } __PSMC2REBSbits_t
;
5655 extern __at(0x0838) volatile __PSMC2REBSbits_t PSMC2REBSbits
;
5657 #define _P2REBSC1 0x02
5658 #define _P2REBSC2 0x04
5659 #define _P2REBSC3 0x08
5660 #define _P2REBSC4 0x10
5661 #define _P2REBSIN 0x80
5663 //==============================================================================
5666 //==============================================================================
5669 extern __at(0x0839) __sfr PSMC2FEBS
;
5674 unsigned P2FEBSC1
: 1;
5675 unsigned P2FEBSC2
: 1;
5676 unsigned P2FEBSC3
: 1;
5677 unsigned P2FEBSC4
: 1;
5680 unsigned P2FEBSIN
: 1;
5681 } __PSMC2FEBSbits_t
;
5683 extern __at(0x0839) volatile __PSMC2FEBSbits_t PSMC2FEBSbits
;
5685 #define _P2FEBSC1 0x02
5686 #define _P2FEBSC2 0x04
5687 #define _P2FEBSC3 0x08
5688 #define _P2FEBSC4 0x10
5689 #define _P2FEBSIN 0x80
5691 //==============================================================================
5694 //==============================================================================
5697 extern __at(0x083A) __sfr PSMC2PHS
;
5701 unsigned P2PHST
: 1;
5702 unsigned P2PHSC1
: 1;
5703 unsigned P2PHSC2
: 1;
5704 unsigned P2PHSC3
: 1;
5705 unsigned P2PHSC4
: 1;
5708 unsigned P2PHSIN
: 1;
5711 extern __at(0x083A) volatile __PSMC2PHSbits_t PSMC2PHSbits
;
5713 #define _P2PHST 0x01
5714 #define _P2PHSC1 0x02
5715 #define _P2PHSC2 0x04
5716 #define _P2PHSC3 0x08
5717 #define _P2PHSC4 0x10
5718 #define _P2PHSIN 0x80
5720 //==============================================================================
5723 //==============================================================================
5726 extern __at(0x083B) __sfr PSMC2DCS
;
5730 unsigned P2DCST
: 1;
5731 unsigned P2DCSC1
: 1;
5732 unsigned P2DCSC2
: 1;
5733 unsigned P2DCSC3
: 1;
5734 unsigned P2DCSC4
: 1;
5737 unsigned P2DCSIN
: 1;
5740 extern __at(0x083B) volatile __PSMC2DCSbits_t PSMC2DCSbits
;
5742 #define _P2DCST 0x01
5743 #define _P2DCSC1 0x02
5744 #define _P2DCSC2 0x04
5745 #define _P2DCSC3 0x08
5746 #define _P2DCSC4 0x10
5747 #define _P2DCSIN 0x80
5749 //==============================================================================
5752 //==============================================================================
5755 extern __at(0x083C) __sfr PSMC2PRS
;
5759 unsigned P2PRST
: 1;
5760 unsigned P2PRSC1
: 1;
5761 unsigned P2PRSC2
: 1;
5762 unsigned P2PRSC3
: 1;
5763 unsigned P2PRSC4
: 1;
5766 unsigned P2PRSIN
: 1;
5769 extern __at(0x083C) volatile __PSMC2PRSbits_t PSMC2PRSbits
;
5771 #define _P2PRST 0x01
5772 #define _P2PRSC1 0x02
5773 #define _P2PRSC2 0x04
5774 #define _P2PRSC3 0x08
5775 #define _P2PRSC4 0x10
5776 #define _P2PRSIN 0x80
5778 //==============================================================================
5781 //==============================================================================
5784 extern __at(0x083D) __sfr PSMC2ASDC
;
5788 unsigned P2ASDOV
: 1;
5793 unsigned P2ARSEN
: 1;
5794 unsigned P2ASDEN
: 1;
5796 } __PSMC2ASDCbits_t
;
5798 extern __at(0x083D) volatile __PSMC2ASDCbits_t PSMC2ASDCbits
;
5800 #define _P2ASDOV 0x01
5801 #define _P2ARSEN 0x20
5802 #define _P2ASDEN 0x40
5805 //==============================================================================
5808 //==============================================================================
5811 extern __at(0x083E) __sfr PSMC2ASDL
;
5815 unsigned P2ASDLA
: 1;
5816 unsigned P2ASDLB
: 1;
5823 } __PSMC2ASDLbits_t
;
5825 extern __at(0x083E) volatile __PSMC2ASDLbits_t PSMC2ASDLbits
;
5827 #define _P2ASDLA 0x01
5828 #define _P2ASDLB 0x02
5830 //==============================================================================
5833 //==============================================================================
5836 extern __at(0x083F) __sfr PSMC2ASDS
;
5841 unsigned P2ASDSC1
: 1;
5842 unsigned P2ASDSC2
: 1;
5843 unsigned P2ASDSC3
: 1;
5844 unsigned P2ASDSC4
: 1;
5847 unsigned P2ASDSIN
: 1;
5848 } __PSMC2ASDSbits_t
;
5850 extern __at(0x083F) volatile __PSMC2ASDSbits_t PSMC2ASDSbits
;
5852 #define _P2ASDSC1 0x02
5853 #define _P2ASDSC2 0x04
5854 #define _P2ASDSC3 0x08
5855 #define _P2ASDSC4 0x10
5856 #define _P2ASDSIN 0x80
5858 //==============================================================================
5861 //==============================================================================
5864 extern __at(0x0840) __sfr PSMC2INT
;
5868 unsigned P2TPRIF
: 1;
5869 unsigned P2TDCIF
: 1;
5870 unsigned P2TPHIF
: 1;
5871 unsigned P2TOVIF
: 1;
5872 unsigned P2TPRIE
: 1;
5873 unsigned P2TDCIE
: 1;
5874 unsigned P2TPHIE
: 1;
5875 unsigned P2TOVIE
: 1;
5878 extern __at(0x0840) volatile __PSMC2INTbits_t PSMC2INTbits
;
5880 #define _P2TPRIF 0x01
5881 #define _P2TDCIF 0x02
5882 #define _P2TPHIF 0x04
5883 #define _P2TOVIF 0x08
5884 #define _P2TPRIE 0x10
5885 #define _P2TDCIE 0x20
5886 #define _P2TPHIE 0x40
5887 #define _P2TOVIE 0x80
5889 //==============================================================================
5891 extern __at(0x0841) __sfr PSMC2PH
;
5893 //==============================================================================
5896 extern __at(0x0841) __sfr PSMC2PHL
;
5900 unsigned PSMC2PH0
: 1;
5901 unsigned PSMC2PH1
: 1;
5902 unsigned PSMC2PH2
: 1;
5903 unsigned PSMC2PH3
: 1;
5904 unsigned PSMC2PH4
: 1;
5905 unsigned PSMC2PH5
: 1;
5906 unsigned PSMC2PH6
: 1;
5907 unsigned PSMC2PH7
: 1;
5910 extern __at(0x0841) volatile __PSMC2PHLbits_t PSMC2PHLbits
;
5912 #define _PSMC2PH0 0x01
5913 #define _PSMC2PH1 0x02
5914 #define _PSMC2PH2 0x04
5915 #define _PSMC2PH3 0x08
5916 #define _PSMC2PH4 0x10
5917 #define _PSMC2PH5 0x20
5918 #define _PSMC2PH6 0x40
5919 #define _PSMC2PH7 0x80
5921 //==============================================================================
5924 //==============================================================================
5927 extern __at(0x0842) __sfr PSMC2PHH
;
5931 unsigned PSMC2PH8
: 1;
5932 unsigned PSMC2PH9
: 1;
5933 unsigned PSMC2PH10
: 1;
5934 unsigned PSMC2PH11
: 1;
5935 unsigned PSMC2PH12
: 1;
5936 unsigned PSMC2PH13
: 1;
5937 unsigned PSMC2PH14
: 1;
5938 unsigned PSMC2PH15
: 1;
5941 extern __at(0x0842) volatile __PSMC2PHHbits_t PSMC2PHHbits
;
5943 #define _PSMC2PH8 0x01
5944 #define _PSMC2PH9 0x02
5945 #define _PSMC2PH10 0x04
5946 #define _PSMC2PH11 0x08
5947 #define _PSMC2PH12 0x10
5948 #define _PSMC2PH13 0x20
5949 #define _PSMC2PH14 0x40
5950 #define _PSMC2PH15 0x80
5952 //==============================================================================
5954 extern __at(0x0843) __sfr PSMC2DC
;
5956 //==============================================================================
5959 extern __at(0x0843) __sfr PSMC2DCL
;
5963 unsigned PSMC2DC0
: 1;
5964 unsigned PSMC2DC1
: 1;
5965 unsigned PSMC2DC2
: 1;
5966 unsigned PSMC2DC3
: 1;
5967 unsigned PSMC2DC4
: 1;
5968 unsigned PSMC2DC5
: 1;
5969 unsigned PSMC2DC6
: 1;
5970 unsigned PSMC2DC7
: 1;
5973 extern __at(0x0843) volatile __PSMC2DCLbits_t PSMC2DCLbits
;
5975 #define _PSMC2DC0 0x01
5976 #define _PSMC2DC1 0x02
5977 #define _PSMC2DC2 0x04
5978 #define _PSMC2DC3 0x08
5979 #define _PSMC2DC4 0x10
5980 #define _PSMC2DC5 0x20
5981 #define _PSMC2DC6 0x40
5982 #define _PSMC2DC7 0x80
5984 //==============================================================================
5987 //==============================================================================
5990 extern __at(0x0844) __sfr PSMC2DCH
;
5994 unsigned PSMC2DC8
: 1;
5995 unsigned PSMC2DC9
: 1;
5996 unsigned PSMC2DC10
: 1;
5997 unsigned PSMC2DC11
: 1;
5998 unsigned PSMC2DC12
: 1;
5999 unsigned PSMC2DC13
: 1;
6000 unsigned PSMC2DC14
: 1;
6001 unsigned PSMC2DC15
: 1;
6004 extern __at(0x0844) volatile __PSMC2DCHbits_t PSMC2DCHbits
;
6006 #define _PSMC2DC8 0x01
6007 #define _PSMC2DC9 0x02
6008 #define _PSMC2DC10 0x04
6009 #define _PSMC2DC11 0x08
6010 #define _PSMC2DC12 0x10
6011 #define _PSMC2DC13 0x20
6012 #define _PSMC2DC14 0x40
6013 #define _PSMC2DC15 0x80
6015 //==============================================================================
6017 extern __at(0x0845) __sfr PSMC2PR
;
6019 //==============================================================================
6022 extern __at(0x0845) __sfr PSMC2PRL
;
6026 unsigned PSMC2PR0
: 1;
6027 unsigned PSMC2PR1
: 1;
6028 unsigned PSMC2PR2
: 1;
6029 unsigned PSMC2PR3
: 1;
6030 unsigned PSMC2PR4
: 1;
6031 unsigned PSMC2PR5
: 1;
6032 unsigned PSMC2PR6
: 1;
6033 unsigned PSMC2PR7
: 1;
6036 extern __at(0x0845) volatile __PSMC2PRLbits_t PSMC2PRLbits
;
6038 #define _PSMC2PR0 0x01
6039 #define _PSMC2PR1 0x02
6040 #define _PSMC2PR2 0x04
6041 #define _PSMC2PR3 0x08
6042 #define _PSMC2PR4 0x10
6043 #define _PSMC2PR5 0x20
6044 #define _PSMC2PR6 0x40
6045 #define _PSMC2PR7 0x80
6047 //==============================================================================
6050 //==============================================================================
6053 extern __at(0x0846) __sfr PSMC2PRH
;
6057 unsigned PSMC2PR8
: 1;
6058 unsigned PSMC2PR9
: 1;
6059 unsigned PSMC2PR10
: 1;
6060 unsigned PSMC2PR11
: 1;
6061 unsigned PSMC2PR12
: 1;
6062 unsigned PSMC2PR13
: 1;
6063 unsigned PSMC2PR14
: 1;
6064 unsigned PSMC2PR15
: 1;
6067 extern __at(0x0846) volatile __PSMC2PRHbits_t PSMC2PRHbits
;
6069 #define _PSMC2PR8 0x01
6070 #define _PSMC2PR9 0x02
6071 #define _PSMC2PR10 0x04
6072 #define _PSMC2PR11 0x08
6073 #define _PSMC2PR12 0x10
6074 #define _PSMC2PR13 0x20
6075 #define _PSMC2PR14 0x40
6076 #define _PSMC2PR15 0x80
6078 //==============================================================================
6080 extern __at(0x0847) __sfr PSMC2TMR
;
6082 //==============================================================================
6085 extern __at(0x0847) __sfr PSMC2TMRL
;
6089 unsigned PSMC2TMR0
: 1;
6090 unsigned PSMC2TMR1
: 1;
6091 unsigned PSMC2TMR2
: 1;
6092 unsigned PSMC2TMR3
: 1;
6093 unsigned PSMC2TMR4
: 1;
6094 unsigned PSMC2TMR5
: 1;
6095 unsigned PSMC2TMR6
: 1;
6096 unsigned PSMC2TMR7
: 1;
6097 } __PSMC2TMRLbits_t
;
6099 extern __at(0x0847) volatile __PSMC2TMRLbits_t PSMC2TMRLbits
;
6101 #define _PSMC2TMR0 0x01
6102 #define _PSMC2TMR1 0x02
6103 #define _PSMC2TMR2 0x04
6104 #define _PSMC2TMR3 0x08
6105 #define _PSMC2TMR4 0x10
6106 #define _PSMC2TMR5 0x20
6107 #define _PSMC2TMR6 0x40
6108 #define _PSMC2TMR7 0x80
6110 //==============================================================================
6113 //==============================================================================
6116 extern __at(0x0848) __sfr PSMC2TMRH
;
6120 unsigned PSMC2TMR8
: 1;
6121 unsigned PSMC2TMR9
: 1;
6122 unsigned PSMC2TMR10
: 1;
6123 unsigned PSMC2TMR11
: 1;
6124 unsigned PSMC2TMR12
: 1;
6125 unsigned PSMC2TMR13
: 1;
6126 unsigned PSMC2TMR14
: 1;
6127 unsigned PSMC2TMR15
: 1;
6128 } __PSMC2TMRHbits_t
;
6130 extern __at(0x0848) volatile __PSMC2TMRHbits_t PSMC2TMRHbits
;
6132 #define _PSMC2TMR8 0x01
6133 #define _PSMC2TMR9 0x02
6134 #define _PSMC2TMR10 0x04
6135 #define _PSMC2TMR11 0x08
6136 #define _PSMC2TMR12 0x10
6137 #define _PSMC2TMR13 0x20
6138 #define _PSMC2TMR14 0x40
6139 #define _PSMC2TMR15 0x80
6141 //==============================================================================
6144 //==============================================================================
6147 extern __at(0x0849) __sfr PSMC2DBR
;
6151 unsigned PSMC2DBR0
: 1;
6152 unsigned PSMC2DBR1
: 1;
6153 unsigned PSMC2DBR2
: 1;
6154 unsigned PSMC2DBR3
: 1;
6155 unsigned PSMC2DBR4
: 1;
6156 unsigned PSMC2DBR5
: 1;
6157 unsigned PSMC2DBR6
: 1;
6158 unsigned PSMC2DBR7
: 1;
6161 extern __at(0x0849) volatile __PSMC2DBRbits_t PSMC2DBRbits
;
6163 #define _PSMC2DBR0 0x01
6164 #define _PSMC2DBR1 0x02
6165 #define _PSMC2DBR2 0x04
6166 #define _PSMC2DBR3 0x08
6167 #define _PSMC2DBR4 0x10
6168 #define _PSMC2DBR5 0x20
6169 #define _PSMC2DBR6 0x40
6170 #define _PSMC2DBR7 0x80
6172 //==============================================================================
6175 //==============================================================================
6178 extern __at(0x084A) __sfr PSMC2DBF
;
6182 unsigned PSMC2DBF0
: 1;
6183 unsigned PSMC2DBF1
: 1;
6184 unsigned PSMC2DBF2
: 1;
6185 unsigned PSMC2DBF3
: 1;
6186 unsigned PSMC2DBF4
: 1;
6187 unsigned PSMC2DBF5
: 1;
6188 unsigned PSMC2DBF6
: 1;
6189 unsigned PSMC2DBF7
: 1;
6192 extern __at(0x084A) volatile __PSMC2DBFbits_t PSMC2DBFbits
;
6194 #define _PSMC2DBF0 0x01
6195 #define _PSMC2DBF1 0x02
6196 #define _PSMC2DBF2 0x04
6197 #define _PSMC2DBF3 0x08
6198 #define _PSMC2DBF4 0x10
6199 #define _PSMC2DBF5 0x20
6200 #define _PSMC2DBF6 0x40
6201 #define _PSMC2DBF7 0x80
6203 //==============================================================================
6206 //==============================================================================
6209 extern __at(0x084B) __sfr PSMC2BLKR
;
6213 unsigned PSMC2BLKR0
: 1;
6214 unsigned PSMC2BLKR1
: 1;
6215 unsigned PSMC2BLKR2
: 1;
6216 unsigned PSMC2BLKR3
: 1;
6217 unsigned PSMC2BLKR4
: 1;
6218 unsigned PSMC2BLKR5
: 1;
6219 unsigned PSMC2BLKR6
: 1;
6220 unsigned PSMC2BLKR7
: 1;
6221 } __PSMC2BLKRbits_t
;
6223 extern __at(0x084B) volatile __PSMC2BLKRbits_t PSMC2BLKRbits
;
6225 #define _PSMC2BLKR0 0x01
6226 #define _PSMC2BLKR1 0x02
6227 #define _PSMC2BLKR2 0x04
6228 #define _PSMC2BLKR3 0x08
6229 #define _PSMC2BLKR4 0x10
6230 #define _PSMC2BLKR5 0x20
6231 #define _PSMC2BLKR6 0x40
6232 #define _PSMC2BLKR7 0x80
6234 //==============================================================================
6237 //==============================================================================
6240 extern __at(0x084C) __sfr PSMC2BLKF
;
6244 unsigned PSMC2BLKF0
: 1;
6245 unsigned PSMC2BLKF1
: 1;
6246 unsigned PSMC2BLKF2
: 1;
6247 unsigned PSMC2BLKF3
: 1;
6248 unsigned PSMC2BLKF4
: 1;
6249 unsigned PSMC2BLKF5
: 1;
6250 unsigned PSMC2BLKF6
: 1;
6251 unsigned PSMC2BLKF7
: 1;
6252 } __PSMC2BLKFbits_t
;
6254 extern __at(0x084C) volatile __PSMC2BLKFbits_t PSMC2BLKFbits
;
6256 #define _PSMC2BLKF0 0x01
6257 #define _PSMC2BLKF1 0x02
6258 #define _PSMC2BLKF2 0x04
6259 #define _PSMC2BLKF3 0x08
6260 #define _PSMC2BLKF4 0x10
6261 #define _PSMC2BLKF5 0x20
6262 #define _PSMC2BLKF6 0x40
6263 #define _PSMC2BLKF7 0x80
6265 //==============================================================================
6268 //==============================================================================
6271 extern __at(0x084D) __sfr PSMC2FFA
;
6277 unsigned PSMC2FFA0
: 1;
6278 unsigned PSMC2FFA1
: 1;
6279 unsigned PSMC2FFA2
: 1;
6280 unsigned PSMC2FFA3
: 1;
6289 unsigned PSMC2FFA
: 4;
6294 extern __at(0x084D) volatile __PSMC2FFAbits_t PSMC2FFAbits
;
6296 #define _PSMC2FFA0 0x01
6297 #define _PSMC2FFA1 0x02
6298 #define _PSMC2FFA2 0x04
6299 #define _PSMC2FFA3 0x08
6301 //==============================================================================
6304 //==============================================================================
6307 extern __at(0x084E) __sfr PSMC2STR0
;
6311 unsigned P2STRA
: 1;
6312 unsigned P2STRB
: 1;
6319 } __PSMC2STR0bits_t
;
6321 extern __at(0x084E) volatile __PSMC2STR0bits_t PSMC2STR0bits
;
6323 #define _P2STRA 0x01
6324 #define _P2STRB 0x02
6326 //==============================================================================
6329 //==============================================================================
6332 extern __at(0x084F) __sfr PSMC2STR1
;
6336 unsigned P2HSMEN
: 1;
6337 unsigned P2LSMEN
: 1;
6343 unsigned P2SSYNC
: 1;
6344 } __PSMC2STR1bits_t
;
6346 extern __at(0x084F) volatile __PSMC2STR1bits_t PSMC2STR1bits
;
6348 #define _P2HSMEN 0x01
6349 #define _P2LSMEN 0x02
6350 #define _P2SSYNC 0x80
6352 //==============================================================================
6355 //==============================================================================
6358 extern __at(0x0851) __sfr PSMC3CON
;
6364 unsigned P3MODE0
: 1;
6365 unsigned P3MODE1
: 1;
6366 unsigned P3MODE2
: 1;
6367 unsigned P3MODE3
: 1;
6368 unsigned P3DBRE
: 1;
6369 unsigned P3DBFE
: 1;
6370 unsigned PSMC3LD
: 1;
6371 unsigned PSMC3EN
: 1;
6376 unsigned P3MODE
: 4;
6381 extern __at(0x0851) volatile __PSMC3CONbits_t PSMC3CONbits
;
6383 #define _P3MODE0 0x01
6384 #define _P3MODE1 0x02
6385 #define _P3MODE2 0x04
6386 #define _P3MODE3 0x08
6387 #define _P3DBRE 0x10
6388 #define _P3DBFE 0x20
6389 #define _PSMC3LD 0x40
6390 #define _PSMC3EN 0x80
6392 //==============================================================================
6395 //==============================================================================
6398 extern __at(0x0852) __sfr PSMC3MDL
;
6404 unsigned P3MSRC0
: 1;
6405 unsigned P3MSRC1
: 1;
6406 unsigned P3MSRC2
: 1;
6407 unsigned P3MSRC3
: 1;
6409 unsigned P3MDLBIT
: 1;
6410 unsigned P3MDLPOL
: 1;
6411 unsigned P3MDLEN
: 1;
6416 unsigned P3MSRC
: 4;
6421 extern __at(0x0852) volatile __PSMC3MDLbits_t PSMC3MDLbits
;
6423 #define _P3MSRC0 0x01
6424 #define _P3MSRC1 0x02
6425 #define _P3MSRC2 0x04
6426 #define _P3MSRC3 0x08
6427 #define _P3MDLBIT 0x20
6428 #define _P3MDLPOL 0x40
6429 #define _P3MDLEN 0x80
6431 //==============================================================================
6434 //==============================================================================
6437 extern __at(0x0853) __sfr PSMC3SYNC
;
6443 unsigned P3SYNC0
: 1;
6444 unsigned P3SYNC1
: 1;
6445 unsigned P3SYNC2
: 1;
6448 unsigned P3DCPOL
: 1;
6449 unsigned P3PRPOL
: 1;
6450 unsigned P3POFST
: 1;
6455 unsigned P3SYNC
: 3;
6458 } __PSMC3SYNCbits_t
;
6460 extern __at(0x0853) volatile __PSMC3SYNCbits_t PSMC3SYNCbits
;
6462 #define _P3SYNC0 0x01
6463 #define _P3SYNC1 0x02
6464 #define _P3SYNC2 0x04
6465 #define _P3DCPOL 0x20
6466 #define _P3PRPOL 0x40
6467 #define _P3POFST 0x80
6469 //==============================================================================
6472 //==============================================================================
6475 extern __at(0x0854) __sfr PSMC3CLK
;
6481 unsigned P3CSRC0
: 1;
6482 unsigned P3CSRC1
: 1;
6485 unsigned P3CPRE0
: 1;
6486 unsigned P3CPRE1
: 1;
6493 unsigned P3CSRC
: 2;
6500 unsigned P3CPRE
: 2;
6505 extern __at(0x0854) volatile __PSMC3CLKbits_t PSMC3CLKbits
;
6507 #define _P3CSRC0 0x01
6508 #define _P3CSRC1 0x02
6509 #define _P3CPRE0 0x10
6510 #define _P3CPRE1 0x20
6512 //==============================================================================
6515 //==============================================================================
6518 extern __at(0x0855) __sfr PSMC3OEN
;
6532 extern __at(0x0855) volatile __PSMC3OENbits_t PSMC3OENbits
;
6537 //==============================================================================
6540 //==============================================================================
6543 extern __at(0x0856) __sfr PSMC3POL
;
6547 unsigned P3POLA
: 1;
6548 unsigned P3POLB
: 1;
6553 unsigned P3INPOL
: 1;
6557 extern __at(0x0856) volatile __PSMC3POLbits_t PSMC3POLbits
;
6559 #define _P3POLA 0x01
6560 #define _P3POLB 0x02
6561 #define _P3INPOL 0x40
6563 //==============================================================================
6566 //==============================================================================
6569 extern __at(0x0857) __sfr PSMC3BLNK
;
6575 unsigned P3REBM0
: 1;
6576 unsigned P3REBM1
: 1;
6579 unsigned P3FEBM0
: 1;
6580 unsigned P3FEBM1
: 1;
6587 unsigned P3REBM
: 2;
6594 unsigned P3FEBM
: 2;
6597 } __PSMC3BLNKbits_t
;
6599 extern __at(0x0857) volatile __PSMC3BLNKbits_t PSMC3BLNKbits
;
6601 #define _P3REBM0 0x01
6602 #define _P3REBM1 0x02
6603 #define _P3FEBM0 0x10
6604 #define _P3FEBM1 0x20
6606 //==============================================================================
6609 //==============================================================================
6612 extern __at(0x0858) __sfr PSMC3REBS
;
6617 unsigned P3REBSC1
: 1;
6618 unsigned P3REBSC2
: 1;
6619 unsigned P3REBSC3
: 1;
6620 unsigned P3REBSC4
: 1;
6623 unsigned P3REBSIN
: 1;
6624 } __PSMC3REBSbits_t
;
6626 extern __at(0x0858) volatile __PSMC3REBSbits_t PSMC3REBSbits
;
6628 #define _P3REBSC1 0x02
6629 #define _P3REBSC2 0x04
6630 #define _P3REBSC3 0x08
6631 #define _P3REBSC4 0x10
6632 #define _P3REBSIN 0x80
6634 //==============================================================================
6637 //==============================================================================
6640 extern __at(0x0859) __sfr PSMC3FEBS
;
6645 unsigned P3FEBSC1
: 1;
6646 unsigned P3FEBSC2
: 1;
6647 unsigned P3FEBSC3
: 1;
6648 unsigned P3FEBSC4
: 1;
6651 unsigned P3FEBSIN
: 1;
6652 } __PSMC3FEBSbits_t
;
6654 extern __at(0x0859) volatile __PSMC3FEBSbits_t PSMC3FEBSbits
;
6656 #define _P3FEBSC1 0x02
6657 #define _P3FEBSC2 0x04
6658 #define _P3FEBSC3 0x08
6659 #define _P3FEBSC4 0x10
6660 #define _P3FEBSIN 0x80
6662 //==============================================================================
6665 //==============================================================================
6668 extern __at(0x085A) __sfr PSMC3PHS
;
6672 unsigned P3PHST
: 1;
6673 unsigned P3PHSC1
: 1;
6674 unsigned P3PHSC2
: 1;
6675 unsigned P3PHSC3
: 1;
6676 unsigned P3PHSC4
: 1;
6679 unsigned P3PHSIN
: 1;
6682 extern __at(0x085A) volatile __PSMC3PHSbits_t PSMC3PHSbits
;
6684 #define _P3PHST 0x01
6685 #define _P3PHSC1 0x02
6686 #define _P3PHSC2 0x04
6687 #define _P3PHSC3 0x08
6688 #define _P3PHSC4 0x10
6689 #define _P3PHSIN 0x80
6691 //==============================================================================
6694 //==============================================================================
6697 extern __at(0x085B) __sfr PSMC3DCS
;
6701 unsigned P3DCST
: 1;
6702 unsigned P3DCSC1
: 1;
6703 unsigned P3DCSC2
: 1;
6704 unsigned P3DCSC3
: 1;
6705 unsigned P3DCSC4
: 1;
6708 unsigned P3DCSIN
: 1;
6711 extern __at(0x085B) volatile __PSMC3DCSbits_t PSMC3DCSbits
;
6713 #define _P3DCST 0x01
6714 #define _P3DCSC1 0x02
6715 #define _P3DCSC2 0x04
6716 #define _P3DCSC3 0x08
6717 #define _P3DCSC4 0x10
6718 #define _P3DCSIN 0x80
6720 //==============================================================================
6723 //==============================================================================
6726 extern __at(0x085C) __sfr PSMC3PRS
;
6730 unsigned P3PRST
: 1;
6731 unsigned P3PRSC1
: 1;
6732 unsigned P3PRSC2
: 1;
6733 unsigned P3PRSC3
: 1;
6734 unsigned P3PRSC4
: 1;
6737 unsigned P3PRSIN
: 1;
6740 extern __at(0x085C) volatile __PSMC3PRSbits_t PSMC3PRSbits
;
6742 #define _P3PRST 0x01
6743 #define _P3PRSC1 0x02
6744 #define _P3PRSC2 0x04
6745 #define _P3PRSC3 0x08
6746 #define _P3PRSC4 0x10
6747 #define _P3PRSIN 0x80
6749 //==============================================================================
6752 //==============================================================================
6755 extern __at(0x085D) __sfr PSMC3ASDC
;
6759 unsigned P3ASDOV
: 1;
6764 unsigned P3ARSEN
: 1;
6765 unsigned P3ASDEN
: 1;
6767 } __PSMC3ASDCbits_t
;
6769 extern __at(0x085D) volatile __PSMC3ASDCbits_t PSMC3ASDCbits
;
6771 #define _P3ASDOV 0x01
6772 #define _P3ARSEN 0x20
6773 #define _P3ASDEN 0x40
6776 //==============================================================================
6779 //==============================================================================
6782 extern __at(0x085E) __sfr PSMC3ASDL
;
6786 unsigned P3ASDLA
: 1;
6787 unsigned P3ASDLB
: 1;
6788 unsigned P3ASDLC
: 1;
6789 unsigned P3ASDLD
: 1;
6790 unsigned P3ASDLE
: 1;
6791 unsigned P3ASDLF
: 1;
6794 } __PSMC3ASDLbits_t
;
6796 extern __at(0x085E) volatile __PSMC3ASDLbits_t PSMC3ASDLbits
;
6798 #define _P3ASDLA 0x01
6799 #define _P3ASDLB 0x02
6800 #define _P3ASDLC 0x04
6801 #define _P3ASDLD 0x08
6802 #define _P3ASDLE 0x10
6803 #define _P3ASDLF 0x20
6805 //==============================================================================
6808 //==============================================================================
6811 extern __at(0x085F) __sfr PSMC3ASDS
;
6816 unsigned P3ASDSC1
: 1;
6817 unsigned P3ASDSC2
: 1;
6818 unsigned P3ASDSC3
: 1;
6819 unsigned P3ASDSC4
: 1;
6822 unsigned P3ASDSIN
: 1;
6823 } __PSMC3ASDSbits_t
;
6825 extern __at(0x085F) volatile __PSMC3ASDSbits_t PSMC3ASDSbits
;
6827 #define _P3ASDSC1 0x02
6828 #define _P3ASDSC2 0x04
6829 #define _P3ASDSC3 0x08
6830 #define _P3ASDSC4 0x10
6831 #define _P3ASDSIN 0x80
6833 //==============================================================================
6836 //==============================================================================
6839 extern __at(0x0860) __sfr PSMC3INT
;
6843 unsigned P3TPRIF
: 1;
6844 unsigned P3TDCIF
: 1;
6845 unsigned P3TPHIF
: 1;
6846 unsigned P3TOVIF
: 1;
6847 unsigned P3TPRIE
: 1;
6848 unsigned P3TDCIE
: 1;
6849 unsigned P3TPHIE
: 1;
6850 unsigned P3TOVIE
: 1;
6853 extern __at(0x0860) volatile __PSMC3INTbits_t PSMC3INTbits
;
6855 #define _P3TPRIF 0x01
6856 #define _P3TDCIF 0x02
6857 #define _P3TPHIF 0x04
6858 #define _P3TOVIF 0x08
6859 #define _P3TPRIE 0x10
6860 #define _P3TDCIE 0x20
6861 #define _P3TPHIE 0x40
6862 #define _P3TOVIE 0x80
6864 //==============================================================================
6866 extern __at(0x0861) __sfr PSMC3PH
;
6868 //==============================================================================
6871 extern __at(0x0861) __sfr PSMC3PHL
;
6875 unsigned PSMC3PH0
: 1;
6876 unsigned PSMC3PH1
: 1;
6877 unsigned PSMC3PH2
: 1;
6878 unsigned PSMC3PH3
: 1;
6879 unsigned PSMC3PH4
: 1;
6880 unsigned PSMC3PH5
: 1;
6881 unsigned PSMC3PH6
: 1;
6882 unsigned PSMC3PH7
: 1;
6885 extern __at(0x0861) volatile __PSMC3PHLbits_t PSMC3PHLbits
;
6887 #define _PSMC3PH0 0x01
6888 #define _PSMC3PH1 0x02
6889 #define _PSMC3PH2 0x04
6890 #define _PSMC3PH3 0x08
6891 #define _PSMC3PH4 0x10
6892 #define _PSMC3PH5 0x20
6893 #define _PSMC3PH6 0x40
6894 #define _PSMC3PH7 0x80
6896 //==============================================================================
6899 //==============================================================================
6902 extern __at(0x0862) __sfr PSMC3PHH
;
6906 unsigned PSMC3PH8
: 1;
6907 unsigned PSMC3PH9
: 1;
6908 unsigned PSMC3PH10
: 1;
6909 unsigned PSMC3PH11
: 1;
6910 unsigned PSMC3PH12
: 1;
6911 unsigned PSMC3PH13
: 1;
6912 unsigned PSMC3PH14
: 1;
6913 unsigned PSMC3PH15
: 1;
6916 extern __at(0x0862) volatile __PSMC3PHHbits_t PSMC3PHHbits
;
6918 #define _PSMC3PH8 0x01
6919 #define _PSMC3PH9 0x02
6920 #define _PSMC3PH10 0x04
6921 #define _PSMC3PH11 0x08
6922 #define _PSMC3PH12 0x10
6923 #define _PSMC3PH13 0x20
6924 #define _PSMC3PH14 0x40
6925 #define _PSMC3PH15 0x80
6927 //==============================================================================
6929 extern __at(0x0863) __sfr PSMC3DC
;
6931 //==============================================================================
6934 extern __at(0x0863) __sfr PSMC3DCL
;
6938 unsigned PSMC3DC0
: 1;
6939 unsigned PSMC3DC1
: 1;
6940 unsigned PSMC3DC2
: 1;
6941 unsigned PSMC3DC3
: 1;
6942 unsigned PSMC3DC4
: 1;
6943 unsigned PSMC3DC5
: 1;
6944 unsigned PSMC3DC6
: 1;
6945 unsigned PSMC3DC7
: 1;
6948 extern __at(0x0863) volatile __PSMC3DCLbits_t PSMC3DCLbits
;
6950 #define _PSMC3DC0 0x01
6951 #define _PSMC3DC1 0x02
6952 #define _PSMC3DC2 0x04
6953 #define _PSMC3DC3 0x08
6954 #define _PSMC3DC4 0x10
6955 #define _PSMC3DC5 0x20
6956 #define _PSMC3DC6 0x40
6957 #define _PSMC3DC7 0x80
6959 //==============================================================================
6962 //==============================================================================
6965 extern __at(0x0864) __sfr PSMC3DCH
;
6969 unsigned PSMC3DC8
: 1;
6970 unsigned PSMC3DC9
: 1;
6971 unsigned PSMC3DC10
: 1;
6972 unsigned PSMC3DC11
: 1;
6973 unsigned PSMC3DC12
: 1;
6974 unsigned PSMC3DC13
: 1;
6975 unsigned PSMC3DC14
: 1;
6976 unsigned PSMC3DC15
: 1;
6979 extern __at(0x0864) volatile __PSMC3DCHbits_t PSMC3DCHbits
;
6981 #define _PSMC3DC8 0x01
6982 #define _PSMC3DC9 0x02
6983 #define _PSMC3DC10 0x04
6984 #define _PSMC3DC11 0x08
6985 #define _PSMC3DC12 0x10
6986 #define _PSMC3DC13 0x20
6987 #define _PSMC3DC14 0x40
6988 #define _PSMC3DC15 0x80
6990 //==============================================================================
6992 extern __at(0x0865) __sfr PSMC3PR
;
6994 //==============================================================================
6997 extern __at(0x0865) __sfr PSMC3PRL
;
7001 unsigned PSMC3PR0
: 1;
7002 unsigned PSMC3PR1
: 1;
7003 unsigned PSMC3PR2
: 1;
7004 unsigned PSMC3PR3
: 1;
7005 unsigned PSMC3PR4
: 1;
7006 unsigned PSMC3PR5
: 1;
7007 unsigned PSMC3PR6
: 1;
7008 unsigned PSMC3PR7
: 1;
7011 extern __at(0x0865) volatile __PSMC3PRLbits_t PSMC3PRLbits
;
7013 #define _PSMC3PR0 0x01
7014 #define _PSMC3PR1 0x02
7015 #define _PSMC3PR2 0x04
7016 #define _PSMC3PR3 0x08
7017 #define _PSMC3PR4 0x10
7018 #define _PSMC3PR5 0x20
7019 #define _PSMC3PR6 0x40
7020 #define _PSMC3PR7 0x80
7022 //==============================================================================
7025 //==============================================================================
7028 extern __at(0x0866) __sfr PSMC3PRH
;
7032 unsigned PSMC3PR8
: 1;
7033 unsigned PSMC3PR9
: 1;
7034 unsigned PSMC3PR10
: 1;
7035 unsigned PSMC3PR11
: 1;
7036 unsigned PSMC3PR12
: 1;
7037 unsigned PSMC3PR13
: 1;
7038 unsigned PSMC3PR14
: 1;
7039 unsigned PSMC3PR15
: 1;
7042 extern __at(0x0866) volatile __PSMC3PRHbits_t PSMC3PRHbits
;
7044 #define _PSMC3PR8 0x01
7045 #define _PSMC3PR9 0x02
7046 #define _PSMC3PR10 0x04
7047 #define _PSMC3PR11 0x08
7048 #define _PSMC3PR12 0x10
7049 #define _PSMC3PR13 0x20
7050 #define _PSMC3PR14 0x40
7051 #define _PSMC3PR15 0x80
7053 //==============================================================================
7055 extern __at(0x0867) __sfr PSMC3TMR
;
7057 //==============================================================================
7060 extern __at(0x0867) __sfr PSMC3TMRL
;
7064 unsigned PSMC3TMR0
: 1;
7065 unsigned PSMC3TMR1
: 1;
7066 unsigned PSMC3TMR2
: 1;
7067 unsigned PSMC3TMR3
: 1;
7068 unsigned PSMC3TMR4
: 1;
7069 unsigned PSMC3TMR5
: 1;
7070 unsigned PSMC3TMR6
: 1;
7071 unsigned PSMC3TMR7
: 1;
7072 } __PSMC3TMRLbits_t
;
7074 extern __at(0x0867) volatile __PSMC3TMRLbits_t PSMC3TMRLbits
;
7076 #define _PSMC3TMR0 0x01
7077 #define _PSMC3TMR1 0x02
7078 #define _PSMC3TMR2 0x04
7079 #define _PSMC3TMR3 0x08
7080 #define _PSMC3TMR4 0x10
7081 #define _PSMC3TMR5 0x20
7082 #define _PSMC3TMR6 0x40
7083 #define _PSMC3TMR7 0x80
7085 //==============================================================================
7088 //==============================================================================
7091 extern __at(0x0868) __sfr PSMC3TMRH
;
7095 unsigned PSMC3TMR8
: 1;
7096 unsigned PSMC3TMR9
: 1;
7097 unsigned PSMC3TMR10
: 1;
7098 unsigned PSMC3TMR11
: 1;
7099 unsigned PSMC3TMR12
: 1;
7100 unsigned PSMC3TMR13
: 1;
7101 unsigned PSMC3TMR14
: 1;
7102 unsigned PSMC3TMR15
: 1;
7103 } __PSMC3TMRHbits_t
;
7105 extern __at(0x0868) volatile __PSMC3TMRHbits_t PSMC3TMRHbits
;
7107 #define _PSMC3TMR8 0x01
7108 #define _PSMC3TMR9 0x02
7109 #define _PSMC3TMR10 0x04
7110 #define _PSMC3TMR11 0x08
7111 #define _PSMC3TMR12 0x10
7112 #define _PSMC3TMR13 0x20
7113 #define _PSMC3TMR14 0x40
7114 #define _PSMC3TMR15 0x80
7116 //==============================================================================
7119 //==============================================================================
7122 extern __at(0x0869) __sfr PSMC3DBR
;
7126 unsigned PSMC3DBR0
: 1;
7127 unsigned PSMC3DBR1
: 1;
7128 unsigned PSMC3DBR2
: 1;
7129 unsigned PSMC3DBR3
: 1;
7130 unsigned PSMC3DBR4
: 1;
7131 unsigned PSMC3DBR5
: 1;
7132 unsigned PSMC3DBR6
: 1;
7133 unsigned PSMC3DBR7
: 1;
7136 extern __at(0x0869) volatile __PSMC3DBRbits_t PSMC3DBRbits
;
7138 #define _PSMC3DBR0 0x01
7139 #define _PSMC3DBR1 0x02
7140 #define _PSMC3DBR2 0x04
7141 #define _PSMC3DBR3 0x08
7142 #define _PSMC3DBR4 0x10
7143 #define _PSMC3DBR5 0x20
7144 #define _PSMC3DBR6 0x40
7145 #define _PSMC3DBR7 0x80
7147 //==============================================================================
7150 //==============================================================================
7153 extern __at(0x086A) __sfr PSMC3DBF
;
7157 unsigned PSMC3DBF0
: 1;
7158 unsigned PSMC3DBF1
: 1;
7159 unsigned PSMC3DBF2
: 1;
7160 unsigned PSMC3DBF3
: 1;
7161 unsigned PSMC3DBF4
: 1;
7162 unsigned PSMC3DBF5
: 1;
7163 unsigned PSMC3DBF6
: 1;
7164 unsigned PSMC3DBF7
: 1;
7167 extern __at(0x086A) volatile __PSMC3DBFbits_t PSMC3DBFbits
;
7169 #define _PSMC3DBF0 0x01
7170 #define _PSMC3DBF1 0x02
7171 #define _PSMC3DBF2 0x04
7172 #define _PSMC3DBF3 0x08
7173 #define _PSMC3DBF4 0x10
7174 #define _PSMC3DBF5 0x20
7175 #define _PSMC3DBF6 0x40
7176 #define _PSMC3DBF7 0x80
7178 //==============================================================================
7181 //==============================================================================
7184 extern __at(0x086B) __sfr PSMC3BLKR
;
7188 unsigned PSMC3BLKR0
: 1;
7189 unsigned PSMC3BLKR1
: 1;
7190 unsigned PSMC3BLKR2
: 1;
7191 unsigned PSMC3BLKR3
: 1;
7192 unsigned PSMC3BLKR4
: 1;
7193 unsigned PSMC3BLKR5
: 1;
7194 unsigned PSMC3BLKR6
: 1;
7195 unsigned PSMC3BLKR7
: 1;
7196 } __PSMC3BLKRbits_t
;
7198 extern __at(0x086B) volatile __PSMC3BLKRbits_t PSMC3BLKRbits
;
7200 #define _PSMC3BLKR0 0x01
7201 #define _PSMC3BLKR1 0x02
7202 #define _PSMC3BLKR2 0x04
7203 #define _PSMC3BLKR3 0x08
7204 #define _PSMC3BLKR4 0x10
7205 #define _PSMC3BLKR5 0x20
7206 #define _PSMC3BLKR6 0x40
7207 #define _PSMC3BLKR7 0x80
7209 //==============================================================================
7212 //==============================================================================
7215 extern __at(0x086C) __sfr PSMC3BLKF
;
7219 unsigned PSMC3BLKF0
: 1;
7220 unsigned PSMC3BLKF1
: 1;
7221 unsigned PSMC3BLKF2
: 1;
7222 unsigned PSMC3BLKF3
: 1;
7223 unsigned PSMC3BLKF4
: 1;
7224 unsigned PSMC3BLKF5
: 1;
7225 unsigned PSMC3BLKF6
: 1;
7226 unsigned PSMC3BLKF7
: 1;
7227 } __PSMC3BLKFbits_t
;
7229 extern __at(0x086C) volatile __PSMC3BLKFbits_t PSMC3BLKFbits
;
7231 #define _PSMC3BLKF0 0x01
7232 #define _PSMC3BLKF1 0x02
7233 #define _PSMC3BLKF2 0x04
7234 #define _PSMC3BLKF3 0x08
7235 #define _PSMC3BLKF4 0x10
7236 #define _PSMC3BLKF5 0x20
7237 #define _PSMC3BLKF6 0x40
7238 #define _PSMC3BLKF7 0x80
7240 //==============================================================================
7243 //==============================================================================
7246 extern __at(0x086D) __sfr PSMC3FFA
;
7252 unsigned PSMC3FFA0
: 1;
7253 unsigned PSMC3FFA1
: 1;
7254 unsigned PSMC3FFA2
: 1;
7255 unsigned PSMC3FFA3
: 1;
7264 unsigned PSMC3FFA
: 4;
7269 extern __at(0x086D) volatile __PSMC3FFAbits_t PSMC3FFAbits
;
7271 #define _PSMC3FFA0 0x01
7272 #define _PSMC3FFA1 0x02
7273 #define _PSMC3FFA2 0x04
7274 #define _PSMC3FFA3 0x08
7276 //==============================================================================
7279 //==============================================================================
7282 extern __at(0x086E) __sfr PSMC3STR0
;
7286 unsigned P3STRA
: 1;
7287 unsigned P3STRB
: 1;
7294 } __PSMC3STR0bits_t
;
7296 extern __at(0x086E) volatile __PSMC3STR0bits_t PSMC3STR0bits
;
7298 #define _P3STRA 0x01
7299 #define _P3STRB 0x02
7301 //==============================================================================
7304 //==============================================================================
7307 extern __at(0x086F) __sfr PSMC3STR1
;
7311 unsigned P3HSMEN
: 1;
7312 unsigned P3LSMEN
: 1;
7318 unsigned P3SSYNC
: 1;
7319 } __PSMC3STR1bits_t
;
7321 extern __at(0x086F) volatile __PSMC3STR1bits_t PSMC3STR1bits
;
7323 #define _P3HSMEN 0x01
7324 #define _P3LSMEN 0x02
7325 #define _P3SSYNC 0x80
7327 //==============================================================================
7330 //==============================================================================
7333 extern __at(0x0FE4) __sfr STATUS_SHAD
;
7337 unsigned C_SHAD
: 1;
7338 unsigned DC_SHAD
: 1;
7339 unsigned Z_SHAD
: 1;
7345 } __STATUS_SHADbits_t
;
7347 extern __at(0x0FE4) volatile __STATUS_SHADbits_t STATUS_SHADbits
;
7349 #define _C_SHAD 0x01
7350 #define _DC_SHAD 0x02
7351 #define _Z_SHAD 0x04
7353 //==============================================================================
7355 extern __at(0x0FE5) __sfr WREG_SHAD
;
7356 extern __at(0x0FE6) __sfr BSR_SHAD
;
7357 extern __at(0x0FE7) __sfr PCLATH_SHAD
;
7358 extern __at(0x0FE8) __sfr FSR0L_SHAD
;
7359 extern __at(0x0FE9) __sfr FSR0H_SHAD
;
7360 extern __at(0x0FEA) __sfr FSR1L_SHAD
;
7361 extern __at(0x0FEB) __sfr FSR1H_SHAD
;
7362 extern __at(0x0FED) __sfr STKPTR
;
7363 extern __at(0x0FEE) __sfr TOSL
;
7364 extern __at(0x0FEF) __sfr TOSH
;
7366 //==============================================================================
7368 // Configuration Bits
7370 //==============================================================================
7372 #define _CONFIG1 0x8007
7373 #define _CONFIG2 0x8008
7375 //----------------------------- CONFIG1 Options -------------------------------
7377 #define _FOSC_LP 0x3FF8 // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins.
7378 #define _FOSC_XT 0x3FF9 // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins.
7379 #define _FOSC_HS 0x3FFA // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins.
7380 #define _FOSC_EXTRC 0x3FFB // EXTRC oscillator: External RC circuit connected to CLKIN pin.
7381 #define _FOSC_INTOSC 0x3FFC // INTOSC oscillator: I/O function on CLKIN pin.
7382 #define _FOSC_ECL 0x3FFD // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin.
7383 #define _FOSC_ECM 0x3FFE // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin.
7384 #define _FOSC_ECH 0x3FFF // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin.
7385 #define _WDTE_OFF 0x3FE7 // WDT disabled.
7386 #define _WDTE_SWDTEN 0x3FEF // WDT controlled by the SWDTEN bit in the WDTCON register.
7387 #define _WDTE_NSLEEP 0x3FF7 // WDT enabled while running and disabled in Sleep.
7388 #define _WDTE_ON 0x3FFF // WDT enabled.
7389 #define _PWRTE_ON 0x3FDF // PWRT enabled.
7390 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
7391 #define _MCLRE_OFF 0x3FBF // MCLR/VPP pin function is digital input.
7392 #define _MCLRE_ON 0x3FFF // MCLR/VPP pin function is MCLR.
7393 #define _CP_ON 0x3F7F // Program memory code protection is enabled.
7394 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
7395 #define _CPD_ON 0x3EFF // Data memory code protection is enabled.
7396 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
7397 #define _BOREN_OFF 0x39FF // Brown-out Reset disabled.
7398 #define _BOREN_SBODEN 0x3BFF // Brown-out Reset controlled by the SBOREN bit in the BORCON register.
7399 #define _BOREN_NSLEEP 0x3DFF // Brown-out Reset enabled while running and disabled in Sleep.
7400 #define _BOREN_ON 0x3FFF // Brown-out Reset enabled.
7401 #define _CLKOUTEN_ON 0x37FF // CLKOUT function is enabled on the CLKOUT pin.
7402 #define _CLKOUTEN_OFF 0x3FFF // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin.
7403 #define _IESO_OFF 0x2FFF // Internal/External Switchover mode is disabled.
7404 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
7405 #define _FCMEN_OFF 0x1FFF // Fail-Safe Clock Monitor is disabled.
7406 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
7408 //----------------------------- CONFIG2 Options -------------------------------
7410 #define _WRT_ALL 0x3FFC // 000h to 7FFh write protected, no addresses may be modified by EECON control.
7411 #define _WRT_HALF 0x3FFD // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control.
7412 #define _WRT_BOOT 0x3FFE // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control.
7413 #define _WRT_OFF 0x3FFF // Write protection off.
7414 #define _VCAPEN_ON 0x3FDF // Vcap functionality is enabled on RA6 (Vddcore is connected to the pad).
7415 #define _VCAPEN_OFF 0x3FFF // Vcap functionality is disabled on RA6.
7416 #define _PLLEN_OFF 0x3EFF // 4x PLL disabled.
7417 #define _PLLEN_ON 0x3FFF // 4x PLL enabled.
7418 #define _STVREN_OFF 0x3DFF // Stack Overflow or Underflow will not cause a Reset.
7419 #define _STVREN_ON 0x3FFF // Stack Overflow or Underflow will cause a Reset.
7420 #define _BORV_HI 0x3BFF // Brown-out Reset Voltage (Vbor), high trip point selected.
7421 #define _BORV_LO 0x3FFF // Brown-out Reset Voltage (Vbor), low trip point selected.
7422 #define _LPBOR_ON 0x37FF // Low power brown-out is enabled.
7423 #define _LPBOR_OFF 0x3FFF // Low power brown-out is disabled.
7424 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger.
7425 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins.
7426 #define _LVP_OFF 0x1FFF // High-voltage on MCLR/VPP must be used for programming.
7427 #define _LVP_ON 0x3FFF // Low-voltage programming enabled.
7429 //==============================================================================
7431 #define _DEVID1 0x8006
7433 #define _IDLOC0 0x8000
7434 #define _IDLOC1 0x8001
7435 #define _IDLOC2 0x8002
7436 #define _IDLOC3 0x8003
7438 //==============================================================================
7440 #ifndef NO_BIT_DEFINES
7442 #define ADON ADCON0bits.ADON // bit 0
7443 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
7444 #define ADGO ADCON0bits.ADGO // bit 1, shadows bit in ADCON0bits
7445 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
7446 #define DONE ADCON0bits.DONE // bit 1, shadows bit in ADCON0bits
7447 #define CHS0 ADCON0bits.CHS0 // bit 2
7448 #define CHS1 ADCON0bits.CHS1 // bit 3
7449 #define CHS2 ADCON0bits.CHS2 // bit 4
7450 #define CHS3 ADCON0bits.CHS3 // bit 5
7451 #define CHS4 ADCON0bits.CHS4 // bit 6
7452 #define ADRMD ADCON0bits.ADRMD // bit 7
7454 #define ADPREF0 ADCON1bits.ADPREF0 // bit 0
7455 #define ADPREF1 ADCON1bits.ADPREF1 // bit 1
7456 #define ADNREF ADCON1bits.ADNREF // bit 2
7457 #define ADCS0 ADCON1bits.ADCS0 // bit 4
7458 #define ADCS1 ADCON1bits.ADCS1 // bit 5
7459 #define ADCS2 ADCON1bits.ADCS2 // bit 6
7460 #define ADFM ADCON1bits.ADFM // bit 7
7462 #define CHSN0 ADCON2bits.CHSN0 // bit 0
7463 #define CHSN1 ADCON2bits.CHSN1 // bit 1
7464 #define CHSN2 ADCON2bits.CHSN2 // bit 2
7465 #define CHSN3 ADCON2bits.CHSN3 // bit 3
7466 #define TRIGSEL0 ADCON2bits.TRIGSEL0 // bit 4
7467 #define TRIGSEL1 ADCON2bits.TRIGSEL1 // bit 5
7468 #define TRIGSEL2 ADCON2bits.TRIGSEL2 // bit 6
7469 #define TRIGSEL3 ADCON2bits.TRIGSEL3 // bit 7
7471 #define ANSA0 ANSELAbits.ANSA0 // bit 0
7472 #define ANSA1 ANSELAbits.ANSA1 // bit 1
7473 #define ANSA2 ANSELAbits.ANSA2 // bit 2
7474 #define ANSA3 ANSELAbits.ANSA3 // bit 3
7475 #define ANSA4 ANSELAbits.ANSA4 // bit 4
7476 #define ANSA5 ANSELAbits.ANSA5 // bit 5
7477 #define ANSA7 ANSELAbits.ANSA7 // bit 7
7479 #define ANSB0 ANSELBbits.ANSB0 // bit 0
7480 #define ANSB1 ANSELBbits.ANSB1 // bit 1
7481 #define ANSB2 ANSELBbits.ANSB2 // bit 2
7482 #define ANSB3 ANSELBbits.ANSB3 // bit 3
7483 #define ANSB4 ANSELBbits.ANSB4 // bit 4
7484 #define ANSB5 ANSELBbits.ANSB5 // bit 5
7485 #define ANSB6 ANSELBbits.ANSB6 // bit 6
7487 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
7488 #define RXSEL APFCONbits.RXSEL // bit 1
7489 #define TXSEL APFCONbits.TXSEL // bit 2
7490 #define SDISEL APFCONbits.SDISEL // bit 3
7491 #define SCKSEL APFCONbits.SCKSEL // bit 4
7492 #define SDOSEL APFCONbits.SDOSEL // bit 5
7493 #define CCP1SEL APFCONbits.CCP1SEL // bit 6
7494 #define C2OUTSEL APFCONbits.C2OUTSEL // bit 7
7496 #define CCP3SEL APFCON2bits.CCP3SEL // bit 0
7498 #define ABDEN BAUD1CONbits.ABDEN // bit 0
7499 #define WUE BAUD1CONbits.WUE // bit 1
7500 #define BRG16 BAUD1CONbits.BRG16 // bit 3
7501 #define SCKP BAUD1CONbits.SCKP // bit 4
7502 #define RCIDL BAUD1CONbits.RCIDL // bit 6
7503 #define ABDOVF BAUD1CONbits.ABDOVF // bit 7
7505 #define BORRDY BORCONbits.BORRDY // bit 0
7506 #define BORFS BORCONbits.BORFS // bit 6
7507 #define SBOREN BORCONbits.SBOREN // bit 7
7509 #define BSR0 BSRbits.BSR0 // bit 0
7510 #define BSR1 BSRbits.BSR1 // bit 1
7511 #define BSR2 BSRbits.BSR2 // bit 2
7512 #define BSR3 BSRbits.BSR3 // bit 3
7513 #define BSR4 BSRbits.BSR4 // bit 4
7515 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
7516 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
7517 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
7518 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
7519 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
7520 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
7522 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
7523 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
7524 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
7525 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
7526 #define DC2B0 CCP2CONbits.DC2B0 // bit 4
7527 #define DC2B1 CCP2CONbits.DC2B1 // bit 5
7529 #define CCP3M0 CCP3CONbits.CCP3M0 // bit 0
7530 #define CCP3M1 CCP3CONbits.CCP3M1 // bit 1
7531 #define CCP3M2 CCP3CONbits.CCP3M2 // bit 2
7532 #define CCP3M3 CCP3CONbits.CCP3M3 // bit 3
7533 #define DC3B0 CCP3CONbits.DC3B0 // bit 4
7534 #define DC3B1 CCP3CONbits.DC3B1 // bit 5
7536 #define CLKRDIV0 CLKRCONbits.CLKRDIV0 // bit 0
7537 #define CLKRDIV1 CLKRCONbits.CLKRDIV1 // bit 1
7538 #define CLKRDIV2 CLKRCONbits.CLKRDIV2 // bit 2
7539 #define CLKRDC0 CLKRCONbits.CLKRDC0 // bit 3
7540 #define CLKRDC1 CLKRCONbits.CLKRDC1 // bit 4
7541 #define CLKRSLR CLKRCONbits.CLKRSLR // bit 5
7542 #define CLKROE CLKRCONbits.CLKROE // bit 6
7543 #define CLKREN CLKRCONbits.CLKREN // bit 7
7545 #define C1SYNC CM1CON0bits.C1SYNC // bit 0
7546 #define C1HYS CM1CON0bits.C1HYS // bit 1
7547 #define C1SP CM1CON0bits.C1SP // bit 2
7548 #define C1ZLF CM1CON0bits.C1ZLF // bit 3
7549 #define C1POL CM1CON0bits.C1POL // bit 4
7550 #define C1OE CM1CON0bits.C1OE // bit 5
7551 #define C1OUT CM1CON0bits.C1OUT // bit 6
7552 #define C1ON CM1CON0bits.C1ON // bit 7
7554 #define C1NCH0 CM1CON1bits.C1NCH0 // bit 0
7555 #define C1NCH1 CM1CON1bits.C1NCH1 // bit 1
7556 #define C1NCH2 CM1CON1bits.C1NCH2 // bit 2
7557 #define C1PCH0 CM1CON1bits.C1PCH0 // bit 3
7558 #define C1PCH1 CM1CON1bits.C1PCH1 // bit 4
7559 #define C1PCH2 CM1CON1bits.C1PCH2 // bit 5
7560 #define C1INTN CM1CON1bits.C1INTN // bit 6
7561 #define C1INTP CM1CON1bits.C1INTP // bit 7
7563 #define C2SYNC CM2CON0bits.C2SYNC // bit 0
7564 #define C2HYS CM2CON0bits.C2HYS // bit 1
7565 #define C2SP CM2CON0bits.C2SP // bit 2
7566 #define C2ZLF CM2CON0bits.C2ZLF // bit 3
7567 #define C2POL CM2CON0bits.C2POL // bit 4
7568 #define C2OE CM2CON0bits.C2OE // bit 5
7569 #define C2OUT CM2CON0bits.C2OUT // bit 6
7570 #define C2ON CM2CON0bits.C2ON // bit 7
7572 #define C2NCH0 CM2CON1bits.C2NCH0 // bit 0
7573 #define C2NCH1 CM2CON1bits.C2NCH1 // bit 1
7574 #define C2NCH2 CM2CON1bits.C2NCH2 // bit 2
7575 #define C2PCH0 CM2CON1bits.C2PCH0 // bit 3
7576 #define C2PCH1 CM2CON1bits.C2PCH1 // bit 4
7577 #define C2PCH2 CM2CON1bits.C2PCH2 // bit 5
7578 #define C2INTN CM2CON1bits.C2INTN // bit 6
7579 #define C2INTP CM2CON1bits.C2INTP // bit 7
7581 #define C3SYNC CM3CON0bits.C3SYNC // bit 0
7582 #define C3HYS CM3CON0bits.C3HYS // bit 1
7583 #define C3SP CM3CON0bits.C3SP // bit 2
7584 #define C3ZLF CM3CON0bits.C3ZLF // bit 3
7585 #define C3POL CM3CON0bits.C3POL // bit 4
7586 #define C3OE CM3CON0bits.C3OE // bit 5
7587 #define C3OUT CM3CON0bits.C3OUT // bit 6
7588 #define C3ON CM3CON0bits.C3ON // bit 7
7590 #define C3NCH0 CM3CON1bits.C3NCH0 // bit 0
7591 #define C3NCH1 CM3CON1bits.C3NCH1 // bit 1
7592 #define C3NCH2 CM3CON1bits.C3NCH2 // bit 2
7593 #define C3PCH0 CM3CON1bits.C3PCH0 // bit 3
7594 #define C3PCH1 CM3CON1bits.C3PCH1 // bit 4
7595 #define C3PCH2 CM3CON1bits.C3PCH2 // bit 5
7596 #define C3INTN CM3CON1bits.C3INTN // bit 6
7597 #define C3INTP CM3CON1bits.C3INTP // bit 7
7599 #define C4SYNC CM4CON0bits.C4SYNC // bit 0
7600 #define C4HYS CM4CON0bits.C4HYS // bit 1
7601 #define C4SP CM4CON0bits.C4SP // bit 2
7602 #define C4ZLF CM4CON0bits.C4ZLF // bit 3
7603 #define C4POL CM4CON0bits.C4POL // bit 4
7604 #define C4OE CM4CON0bits.C4OE // bit 5
7605 #define C4OUT CM4CON0bits.C4OUT // bit 6
7606 #define C4ON CM4CON0bits.C4ON // bit 7
7608 #define C4NCH0 CM4CON1bits.C4NCH0 // bit 0
7609 #define C4NCH1 CM4CON1bits.C4NCH1 // bit 1
7610 #define C4NCH2 CM4CON1bits.C4NCH2 // bit 2
7611 #define C4PCH0 CM4CON1bits.C4PCH0 // bit 3
7612 #define C4PCH1 CM4CON1bits.C4PCH1 // bit 4
7613 #define C4PCH2 CM4CON1bits.C4PCH2 // bit 5
7614 #define C4INTN CM4CON1bits.C4INTN // bit 6
7615 #define C4INTP CM4CON1bits.C4INTP // bit 7
7617 #define MC1OUT CMOUTbits.MC1OUT // bit 0
7618 #define MC2OUT CMOUTbits.MC2OUT // bit 1
7619 #define MC3OUT CMOUTbits.MC3OUT // bit 2
7620 #define MC4OUT CMOUTbits.MC4OUT // bit 3
7622 #define DACNSS DACCON0bits.DACNSS // bit 0
7623 #define DACPSS0 DACCON0bits.DACPSS0 // bit 2
7624 #define DACPSS1 DACCON0bits.DACPSS1 // bit 3
7625 #define DACOE2 DACCON0bits.DACOE2 // bit 4
7626 #define DACOE1 DACCON0bits.DACOE1 // bit 5
7627 #define DACEN DACCON0bits.DACEN // bit 7
7629 #define DACR0 DACCON1bits.DACR0 // bit 0
7630 #define DACR1 DACCON1bits.DACR1 // bit 1
7631 #define DACR2 DACCON1bits.DACR2 // bit 2
7632 #define DACR3 DACCON1bits.DACR3 // bit 3
7633 #define DACR4 DACCON1bits.DACR4 // bit 4
7634 #define DACR5 DACCON1bits.DACR5 // bit 5
7635 #define DACR6 DACCON1bits.DACR6 // bit 6
7636 #define DACR7 DACCON1bits.DACR7 // bit 7
7638 #define RD EECON1bits.RD // bit 0
7639 #define WR EECON1bits.WR // bit 1
7640 #define WREN EECON1bits.WREN // bit 2
7641 #define WRERR EECON1bits.WRERR // bit 3
7642 #define FREE EECON1bits.FREE // bit 4
7643 #define LWLO EECON1bits.LWLO // bit 5
7644 #define CFGS EECON1bits.CFGS // bit 6
7645 #define EEPGD EECON1bits.EEPGD // bit 7
7647 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
7648 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
7649 #define CDAFVR0 FVRCONbits.CDAFVR0 // bit 2
7650 #define CDAFVR1 FVRCONbits.CDAFVR1 // bit 3
7651 #define TSRNG FVRCONbits.TSRNG // bit 4
7652 #define TSEN FVRCONbits.TSEN // bit 5
7653 #define FVRRDY FVRCONbits.FVRRDY // bit 6
7654 #define FVREN FVRCONbits.FVREN // bit 7
7656 #define INLVLA0 INLVLAbits.INLVLA0 // bit 0
7657 #define INLVLA1 INLVLAbits.INLVLA1 // bit 1
7658 #define INLVLA2 INLVLAbits.INLVLA2 // bit 2
7659 #define INLVLA3 INLVLAbits.INLVLA3 // bit 3
7660 #define INLVLA4 INLVLAbits.INLVLA4 // bit 4
7661 #define INLVLA5 INLVLAbits.INLVLA5 // bit 5
7662 #define INLVLA6 INLVLAbits.INLVLA6 // bit 6
7663 #define INLVLA7 INLVLAbits.INLVLA7 // bit 7
7665 #define INLVLB0 INLVLBbits.INLVLB0 // bit 0
7666 #define INLVLB1 INLVLBbits.INLVLB1 // bit 1
7667 #define INLVLB2 INLVLBbits.INLVLB2 // bit 2
7668 #define INLVLB3 INLVLBbits.INLVLB3 // bit 3
7669 #define INLVLB4 INLVLBbits.INLVLB4 // bit 4
7670 #define INLVLB5 INLVLBbits.INLVLB5 // bit 5
7671 #define INLVLB6 INLVLBbits.INLVLB6 // bit 6
7672 #define INLVLB7 INLVLBbits.INLVLB7 // bit 7
7674 #define INLVLC0 INLVLCbits.INLVLC0 // bit 0
7675 #define INLVLC1 INLVLCbits.INLVLC1 // bit 1
7676 #define INLVLC2 INLVLCbits.INLVLC2 // bit 2
7677 #define INLVLC3 INLVLCbits.INLVLC3 // bit 3
7678 #define INLVLC4 INLVLCbits.INLVLC4 // bit 4
7679 #define INLVLC5 INLVLCbits.INLVLC5 // bit 5
7680 #define INLVLC6 INLVLCbits.INLVLC6 // bit 6
7681 #define INLVLC7 INLVLCbits.INLVLC7 // bit 7
7683 #define INLVLE3 INLVLEbits.INLVLE3 // bit 3
7685 #define IOCIF INTCONbits.IOCIF // bit 0
7686 #define INTF INTCONbits.INTF // bit 1
7687 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
7688 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
7689 #define IOCIE INTCONbits.IOCIE // bit 3
7690 #define INTE INTCONbits.INTE // bit 4
7691 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
7692 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
7693 #define PEIE INTCONbits.PEIE // bit 6
7694 #define GIE INTCONbits.GIE // bit 7
7696 #define IOCAF0 IOCAFbits.IOCAF0 // bit 0
7697 #define IOCAF1 IOCAFbits.IOCAF1 // bit 1
7698 #define IOCAF2 IOCAFbits.IOCAF2 // bit 2
7699 #define IOCAF3 IOCAFbits.IOCAF3 // bit 3
7700 #define IOCAF4 IOCAFbits.IOCAF4 // bit 4
7701 #define IOCAF5 IOCAFbits.IOCAF5 // bit 5
7702 #define IOCAF6 IOCAFbits.IOCAF6 // bit 6
7703 #define IOCAF7 IOCAFbits.IOCAF7 // bit 7
7705 #define IOCAN0 IOCANbits.IOCAN0 // bit 0
7706 #define IOCAN1 IOCANbits.IOCAN1 // bit 1
7707 #define IOCAN2 IOCANbits.IOCAN2 // bit 2
7708 #define IOCAN3 IOCANbits.IOCAN3 // bit 3
7709 #define IOCAN4 IOCANbits.IOCAN4 // bit 4
7710 #define IOCAN5 IOCANbits.IOCAN5 // bit 5
7711 #define IOCAN6 IOCANbits.IOCAN6 // bit 6
7712 #define IOCAN7 IOCANbits.IOCAN7 // bit 7
7714 #define IOCAP0 IOCAPbits.IOCAP0 // bit 0
7715 #define IOCAP1 IOCAPbits.IOCAP1 // bit 1
7716 #define IOCAP2 IOCAPbits.IOCAP2 // bit 2
7717 #define IOCAP3 IOCAPbits.IOCAP3 // bit 3
7718 #define IOCAP4 IOCAPbits.IOCAP4 // bit 4
7719 #define IOCAP5 IOCAPbits.IOCAP5 // bit 5
7720 #define IOCAP6 IOCAPbits.IOCAP6 // bit 6
7721 #define IOCAP7 IOCAPbits.IOCAP7 // bit 7
7723 #define IOCBF0 IOCBFbits.IOCBF0 // bit 0
7724 #define IOCBF1 IOCBFbits.IOCBF1 // bit 1
7725 #define IOCBF2 IOCBFbits.IOCBF2 // bit 2
7726 #define IOCBF3 IOCBFbits.IOCBF3 // bit 3
7727 #define IOCBF4 IOCBFbits.IOCBF4 // bit 4
7728 #define IOCBF5 IOCBFbits.IOCBF5 // bit 5
7729 #define IOCBF6 IOCBFbits.IOCBF6 // bit 6
7730 #define IOCBF7 IOCBFbits.IOCBF7 // bit 7
7732 #define IOCBN0 IOCBNbits.IOCBN0 // bit 0
7733 #define IOCBN1 IOCBNbits.IOCBN1 // bit 1
7734 #define IOCBN2 IOCBNbits.IOCBN2 // bit 2
7735 #define IOCBN3 IOCBNbits.IOCBN3 // bit 3
7736 #define IOCBN4 IOCBNbits.IOCBN4 // bit 4
7737 #define IOCBN5 IOCBNbits.IOCBN5 // bit 5
7738 #define IOCBN6 IOCBNbits.IOCBN6 // bit 6
7739 #define IOCBN7 IOCBNbits.IOCBN7 // bit 7
7741 #define IOCBP0 IOCBPbits.IOCBP0 // bit 0
7742 #define IOCBP1 IOCBPbits.IOCBP1 // bit 1
7743 #define IOCBP2 IOCBPbits.IOCBP2 // bit 2
7744 #define IOCBP3 IOCBPbits.IOCBP3 // bit 3
7745 #define IOCBP4 IOCBPbits.IOCBP4 // bit 4
7746 #define IOCBP5 IOCBPbits.IOCBP5 // bit 5
7747 #define IOCBP6 IOCBPbits.IOCBP6 // bit 6
7748 #define IOCBP7 IOCBPbits.IOCBP7 // bit 7
7750 #define IOCCF0 IOCCFbits.IOCCF0 // bit 0
7751 #define IOCCF1 IOCCFbits.IOCCF1 // bit 1
7752 #define IOCCF2 IOCCFbits.IOCCF2 // bit 2
7753 #define IOCCF3 IOCCFbits.IOCCF3 // bit 3
7754 #define IOCCF4 IOCCFbits.IOCCF4 // bit 4
7755 #define IOCCF5 IOCCFbits.IOCCF5 // bit 5
7756 #define IOCCF6 IOCCFbits.IOCCF6 // bit 6
7757 #define IOCCF7 IOCCFbits.IOCCF7 // bit 7
7759 #define IOCCN0 IOCCNbits.IOCCN0 // bit 0
7760 #define IOCCN1 IOCCNbits.IOCCN1 // bit 1
7761 #define IOCCN2 IOCCNbits.IOCCN2 // bit 2
7762 #define IOCCN3 IOCCNbits.IOCCN3 // bit 3
7763 #define IOCCN4 IOCCNbits.IOCCN4 // bit 4
7764 #define IOCCN5 IOCCNbits.IOCCN5 // bit 5
7765 #define IOCCN6 IOCCNbits.IOCCN6 // bit 6
7766 #define IOCCN7 IOCCNbits.IOCCN7 // bit 7
7768 #define IOCCP0 IOCCPbits.IOCCP0 // bit 0
7769 #define IOCCP1 IOCCPbits.IOCCP1 // bit 1
7770 #define IOCCP2 IOCCPbits.IOCCP2 // bit 2
7771 #define IOCCP3 IOCCPbits.IOCCP3 // bit 3
7772 #define IOCCP4 IOCCPbits.IOCCP4 // bit 4
7773 #define IOCCP5 IOCCPbits.IOCCP5 // bit 5
7774 #define IOCCP6 IOCCPbits.IOCCP6 // bit 6
7775 #define IOCCP7 IOCCPbits.IOCCP7 // bit 7
7777 #define IOCEF3 IOCEFbits.IOCEF3 // bit 3
7779 #define IOCEN3 IOCENbits.IOCEN3 // bit 3
7781 #define IOCEP3 IOCEPbits.IOCEP3 // bit 3
7783 #define LATA0 LATAbits.LATA0 // bit 0
7784 #define LATA1 LATAbits.LATA1 // bit 1
7785 #define LATA2 LATAbits.LATA2 // bit 2
7786 #define LATA3 LATAbits.LATA3 // bit 3
7787 #define LATA4 LATAbits.LATA4 // bit 4
7788 #define LATA5 LATAbits.LATA5 // bit 5
7789 #define LATA6 LATAbits.LATA6 // bit 6
7790 #define LATA7 LATAbits.LATA7 // bit 7
7792 #define LATB0 LATBbits.LATB0 // bit 0
7793 #define LATB1 LATBbits.LATB1 // bit 1
7794 #define LATB2 LATBbits.LATB2 // bit 2
7795 #define LATB3 LATBbits.LATB3 // bit 3
7796 #define LATB4 LATBbits.LATB4 // bit 4
7797 #define LATB5 LATBbits.LATB5 // bit 5
7798 #define LATB6 LATBbits.LATB6 // bit 6
7799 #define LATB7 LATBbits.LATB7 // bit 7
7801 #define LATC0 LATCbits.LATC0 // bit 0
7802 #define LATC1 LATCbits.LATC1 // bit 1
7803 #define LATC2 LATCbits.LATC2 // bit 2
7804 #define LATC3 LATCbits.LATC3 // bit 3
7805 #define LATC4 LATCbits.LATC4 // bit 4
7806 #define LATC5 LATCbits.LATC5 // bit 5
7807 #define LATC6 LATCbits.LATC6 // bit 6
7808 #define LATC7 LATCbits.LATC7 // bit 7
7810 #define ODCONA0 ODCONAbits.ODCONA0 // bit 0
7811 #define ODCONA1 ODCONAbits.ODCONA1 // bit 1
7812 #define ODCONA2 ODCONAbits.ODCONA2 // bit 2
7813 #define ODCONA3 ODCONAbits.ODCONA3 // bit 3
7814 #define ODCONA4 ODCONAbits.ODCONA4 // bit 4
7815 #define ODCONA5 ODCONAbits.ODCONA5 // bit 5
7816 #define ODCONA6 ODCONAbits.ODCONA6 // bit 6
7817 #define ODCONA7 ODCONAbits.ODCONA7 // bit 7
7819 #define ODCONB0 ODCONBbits.ODCONB0 // bit 0
7820 #define ODCONB1 ODCONBbits.ODCONB1 // bit 1
7821 #define ODCONB2 ODCONBbits.ODCONB2 // bit 2
7822 #define ODCONB3 ODCONBbits.ODCONB3 // bit 3
7823 #define ODCONB4 ODCONBbits.ODCONB4 // bit 4
7824 #define ODCONB5 ODCONBbits.ODCONB5 // bit 5
7825 #define ODCONB6 ODCONBbits.ODCONB6 // bit 6
7826 #define ODCONB7 ODCONBbits.ODCONB7 // bit 7
7828 #define ODCONC0 ODCONCbits.ODCONC0 // bit 0
7829 #define ODCONC1 ODCONCbits.ODCONC1 // bit 1
7830 #define ODCONC2 ODCONCbits.ODCONC2 // bit 2
7831 #define ODCONC3 ODCONCbits.ODCONC3 // bit 3
7832 #define ODCONC4 ODCONCbits.ODCONC4 // bit 4
7833 #define ODCONC5 ODCONCbits.ODCONC5 // bit 5
7834 #define ODCONC6 ODCONCbits.ODCONC6 // bit 6
7835 #define ODCONC7 ODCONCbits.ODCONC7 // bit 7
7837 #define OPA1PCH0 OPA1CONbits.OPA1PCH0 // bit 0, shadows bit in OPA1CONbits
7838 #define PCH0 OPA1CONbits.PCH0 // bit 0, shadows bit in OPA1CONbits
7839 #define OPA1PCH1 OPA1CONbits.OPA1PCH1 // bit 1, shadows bit in OPA1CONbits
7840 #define PCH1 OPA1CONbits.PCH1 // bit 1, shadows bit in OPA1CONbits
7841 #define OPA1SP OPA1CONbits.OPA1SP // bit 6, shadows bit in OPA1CONbits
7842 #define SP OPA1CONbits.SP // bit 6, shadows bit in OPA1CONbits
7843 #define OPA1EN OPA1CONbits.OPA1EN // bit 7, shadows bit in OPA1CONbits
7844 #define EN OPA1CONbits.EN // bit 7, shadows bit in OPA1CONbits
7846 #define PS0 OPTION_REGbits.PS0 // bit 0
7847 #define PS1 OPTION_REGbits.PS1 // bit 1
7848 #define PS2 OPTION_REGbits.PS2 // bit 2
7849 #define PSA OPTION_REGbits.PSA // bit 3
7850 #define TMR0SE OPTION_REGbits.TMR0SE // bit 4, shadows bit in OPTION_REGbits
7851 #define T0SE OPTION_REGbits.T0SE // bit 4, shadows bit in OPTION_REGbits
7852 #define TMR0CS OPTION_REGbits.TMR0CS // bit 5, shadows bit in OPTION_REGbits
7853 #define T0CS OPTION_REGbits.T0CS // bit 5, shadows bit in OPTION_REGbits
7854 #define INTEDG OPTION_REGbits.INTEDG // bit 6
7855 #define NOT_WPUEN OPTION_REGbits.NOT_WPUEN // bit 7
7857 #define SCS0 OSCCONbits.SCS0 // bit 0
7858 #define SCS1 OSCCONbits.SCS1 // bit 1
7859 #define IRCF0 OSCCONbits.IRCF0 // bit 3
7860 #define IRCF1 OSCCONbits.IRCF1 // bit 4
7861 #define IRCF2 OSCCONbits.IRCF2 // bit 5
7862 #define IRCF3 OSCCONbits.IRCF3 // bit 6
7863 #define SPLLEN OSCCONbits.SPLLEN // bit 7
7865 #define HFIOFS OSCSTATbits.HFIOFS // bit 0
7866 #define LFIOFR OSCSTATbits.LFIOFR // bit 1
7867 #define MFIOFR OSCSTATbits.MFIOFR // bit 2
7868 #define HFIOFL OSCSTATbits.HFIOFL // bit 3
7869 #define HFIOFR OSCSTATbits.HFIOFR // bit 4
7870 #define OSTS OSCSTATbits.OSTS // bit 5
7871 #define PLLR OSCSTATbits.PLLR // bit 6
7872 #define T1OSCR OSCSTATbits.T1OSCR // bit 7
7874 #define TUN0 OSCTUNEbits.TUN0 // bit 0
7875 #define TUN1 OSCTUNEbits.TUN1 // bit 1
7876 #define TUN2 OSCTUNEbits.TUN2 // bit 2
7877 #define TUN3 OSCTUNEbits.TUN3 // bit 3
7878 #define TUN4 OSCTUNEbits.TUN4 // bit 4
7879 #define TUN5 OSCTUNEbits.TUN5 // bit 5
7881 #define NOT_BOR PCONbits.NOT_BOR // bit 0
7882 #define NOT_POR PCONbits.NOT_POR // bit 1
7883 #define NOT_RI PCONbits.NOT_RI // bit 2
7884 #define NOT_RMCLR PCONbits.NOT_RMCLR // bit 3
7885 #define NOT_RWDT PCONbits.NOT_RWDT // bit 4
7886 #define STKUNF PCONbits.STKUNF // bit 6
7887 #define STKOVF PCONbits.STKOVF // bit 7
7889 #define TMR1IE PIE1bits.TMR1IE // bit 0
7890 #define TMR2IE PIE1bits.TMR2IE // bit 1
7891 #define CCP1IE PIE1bits.CCP1IE // bit 2
7892 #define SSP1IE PIE1bits.SSP1IE // bit 3
7893 #define TXIE PIE1bits.TXIE // bit 4
7894 #define RCIE PIE1bits.RCIE // bit 5
7895 #define ADIE PIE1bits.ADIE // bit 6
7896 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
7898 #define CCP2IE PIE2bits.CCP2IE // bit 0
7899 #define C3IE PIE2bits.C3IE // bit 1
7900 #define C4IE PIE2bits.C4IE // bit 2
7901 #define BCL1IE PIE2bits.BCL1IE // bit 3
7902 #define EEIE PIE2bits.EEIE // bit 4
7903 #define C1IE PIE2bits.C1IE // bit 5
7904 #define C2IE PIE2bits.C2IE // bit 6
7905 #define OSFIE PIE2bits.OSFIE // bit 7
7907 #define CCP3IE PIE3bits.CCP3IE // bit 4
7909 #define PSMC1SIE PIE4bits.PSMC1SIE // bit 0
7910 #define PSMC2SIE PIE4bits.PSMC2SIE // bit 1
7911 #define PSMC3SIE PIE4bits.PSMC3SIE // bit 2
7912 #define PSMC1TIE PIE4bits.PSMC1TIE // bit 4
7913 #define PSMC2TIE PIE4bits.PSMC2TIE // bit 5
7914 #define PSMC3TIE PIE4bits.PSMC3TIE // bit 6, shadows bit in PIE4bits
7915 #define PMSC3TIE PIE4bits.PMSC3TIE // bit 6, shadows bit in PIE4bits
7917 #define TMR1IF PIR1bits.TMR1IF // bit 0
7918 #define TMR2IF PIR1bits.TMR2IF // bit 1
7919 #define CCP1IF PIR1bits.CCP1IF // bit 2
7920 #define SSP1IF PIR1bits.SSP1IF // bit 3
7921 #define TXIF PIR1bits.TXIF // bit 4
7922 #define RCIF PIR1bits.RCIF // bit 5
7923 #define ADIF PIR1bits.ADIF // bit 6
7924 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
7926 #define CCP2IF PIR2bits.CCP2IF // bit 0
7927 #define C3IF PIR2bits.C3IF // bit 1
7928 #define C4IF PIR2bits.C4IF // bit 2
7929 #define BCL1IF PIR2bits.BCL1IF // bit 3
7930 #define EEIF PIR2bits.EEIF // bit 4
7931 #define C1IF PIR2bits.C1IF // bit 5
7932 #define C2IF PIR2bits.C2IF // bit 6
7933 #define OSFIF PIR2bits.OSFIF // bit 7
7935 #define CCP3IF PIR3bits.CCP3IF // bit 4
7937 #define PSMC1SIF PIR4bits.PSMC1SIF // bit 0
7938 #define PSMC2SIF PIR4bits.PSMC2SIF // bit 1
7939 #define PSMC3SIF PIR4bits.PSMC3SIF // bit 2
7940 #define PSMC1TIF PIR4bits.PSMC1TIF // bit 4
7941 #define PSMC2TIF PIR4bits.PSMC2TIF // bit 5
7942 #define PSMC3TIF PIR4bits.PSMC3TIF // bit 6
7944 #define RA0 PORTAbits.RA0 // bit 0
7945 #define RA1 PORTAbits.RA1 // bit 1
7946 #define RA2 PORTAbits.RA2 // bit 2
7947 #define RA3 PORTAbits.RA3 // bit 3
7948 #define RA4 PORTAbits.RA4 // bit 4
7949 #define RA5 PORTAbits.RA5 // bit 5
7950 #define RA6 PORTAbits.RA6 // bit 6
7951 #define RA7 PORTAbits.RA7 // bit 7
7953 #define RB0 PORTBbits.RB0 // bit 0
7954 #define RB1 PORTBbits.RB1 // bit 1
7955 #define RB2 PORTBbits.RB2 // bit 2
7956 #define RB3 PORTBbits.RB3 // bit 3
7957 #define RB4 PORTBbits.RB4 // bit 4
7958 #define RB5 PORTBbits.RB5 // bit 5
7959 #define RB6 PORTBbits.RB6 // bit 6
7960 #define RB7 PORTBbits.RB7 // bit 7
7962 #define RC0 PORTCbits.RC0 // bit 0
7963 #define RC1 PORTCbits.RC1 // bit 1
7964 #define RC2 PORTCbits.RC2 // bit 2
7965 #define RC3 PORTCbits.RC3 // bit 3
7966 #define RC4 PORTCbits.RC4 // bit 4
7967 #define RC5 PORTCbits.RC5 // bit 5
7968 #define RC6 PORTCbits.RC6 // bit 6
7969 #define RC7 PORTCbits.RC7 // bit 7
7971 #define RE3 PORTEbits.RE3 // bit 3
7973 #define P1ASDOV PSMC1ASDCbits.P1ASDOV // bit 0
7974 #define P1ARSEN PSMC1ASDCbits.P1ARSEN // bit 5
7975 #define P1ASDEN PSMC1ASDCbits.P1ASDEN // bit 6
7976 #define P1ASE PSMC1ASDCbits.P1ASE // bit 7
7978 #define P1ASDLA PSMC1ASDLbits.P1ASDLA // bit 0
7979 #define P1ASDLB PSMC1ASDLbits.P1ASDLB // bit 1
7980 #define P1ASDLC PSMC1ASDLbits.P1ASDLC // bit 2
7981 #define P1ASDLD PSMC1ASDLbits.P1ASDLD // bit 3
7982 #define P1ASDLE PSMC1ASDLbits.P1ASDLE // bit 4
7983 #define P1ASDLF PSMC1ASDLbits.P1ASDLF // bit 5
7985 #define P1ASDSC1 PSMC1ASDSbits.P1ASDSC1 // bit 1
7986 #define P1ASDSC2 PSMC1ASDSbits.P1ASDSC2 // bit 2
7987 #define P1ASDSC3 PSMC1ASDSbits.P1ASDSC3 // bit 3
7988 #define P1ASDSC4 PSMC1ASDSbits.P1ASDSC4 // bit 4
7989 #define P1ASDSIN PSMC1ASDSbits.P1ASDSIN // bit 7
7991 #define PSMC1BLKF0 PSMC1BLKFbits.PSMC1BLKF0 // bit 0
7992 #define PSMC1BLKF1 PSMC1BLKFbits.PSMC1BLKF1 // bit 1
7993 #define PSMC1BLKF2 PSMC1BLKFbits.PSMC1BLKF2 // bit 2
7994 #define PSMC1BLKF3 PSMC1BLKFbits.PSMC1BLKF3 // bit 3
7995 #define PSMC1BLKF4 PSMC1BLKFbits.PSMC1BLKF4 // bit 4
7996 #define PSMC1BLKF5 PSMC1BLKFbits.PSMC1BLKF5 // bit 5
7997 #define PSMC1BLKF6 PSMC1BLKFbits.PSMC1BLKF6 // bit 6
7998 #define PSMC1BLKF7 PSMC1BLKFbits.PSMC1BLKF7 // bit 7
8000 #define PSMC1BLKR0 PSMC1BLKRbits.PSMC1BLKR0 // bit 0
8001 #define PSMC1BLKR1 PSMC1BLKRbits.PSMC1BLKR1 // bit 1
8002 #define PSMC1BLKR2 PSMC1BLKRbits.PSMC1BLKR2 // bit 2
8003 #define PSMC1BLKR3 PSMC1BLKRbits.PSMC1BLKR3 // bit 3
8004 #define PSMC1BLKR4 PSMC1BLKRbits.PSMC1BLKR4 // bit 4
8005 #define PSMC1BLKR5 PSMC1BLKRbits.PSMC1BLKR5 // bit 5
8006 #define PSMC1BLKR6 PSMC1BLKRbits.PSMC1BLKR6 // bit 6
8007 #define PSMC1BLKR7 PSMC1BLKRbits.PSMC1BLKR7 // bit 7
8009 #define P1REBM0 PSMC1BLNKbits.P1REBM0 // bit 0
8010 #define P1REBM1 PSMC1BLNKbits.P1REBM1 // bit 1
8011 #define P1FEBM0 PSMC1BLNKbits.P1FEBM0 // bit 4
8012 #define P1FEBM1 PSMC1BLNKbits.P1FEBM1 // bit 5
8014 #define P1CSRC0 PSMC1CLKbits.P1CSRC0 // bit 0
8015 #define P1CSRC1 PSMC1CLKbits.P1CSRC1 // bit 1
8016 #define P1CPRE0 PSMC1CLKbits.P1CPRE0 // bit 4
8017 #define P1CPRE1 PSMC1CLKbits.P1CPRE1 // bit 5
8019 #define P1MODE0 PSMC1CONbits.P1MODE0 // bit 0
8020 #define P1MODE1 PSMC1CONbits.P1MODE1 // bit 1
8021 #define P1MODE2 PSMC1CONbits.P1MODE2 // bit 2
8022 #define P1MODE3 PSMC1CONbits.P1MODE3 // bit 3
8023 #define P1DBRE PSMC1CONbits.P1DBRE // bit 4
8024 #define P1DBFE PSMC1CONbits.P1DBFE // bit 5
8025 #define PSMC1LD PSMC1CONbits.PSMC1LD // bit 6
8026 #define PSMC1EN PSMC1CONbits.PSMC1EN // bit 7
8028 #define PSMC1DBF0 PSMC1DBFbits.PSMC1DBF0 // bit 0
8029 #define PSMC1DBF1 PSMC1DBFbits.PSMC1DBF1 // bit 1
8030 #define PSMC1DBF2 PSMC1DBFbits.PSMC1DBF2 // bit 2
8031 #define PSMC1DBF3 PSMC1DBFbits.PSMC1DBF3 // bit 3
8032 #define PSMC1DBF4 PSMC1DBFbits.PSMC1DBF4 // bit 4
8033 #define PSMC1DBF5 PSMC1DBFbits.PSMC1DBF5 // bit 5
8034 #define PSMC1DBF6 PSMC1DBFbits.PSMC1DBF6 // bit 6
8035 #define PSMC1DBF7 PSMC1DBFbits.PSMC1DBF7 // bit 7
8037 #define PSMC1DBR0 PSMC1DBRbits.PSMC1DBR0 // bit 0
8038 #define PSMC1DBR1 PSMC1DBRbits.PSMC1DBR1 // bit 1
8039 #define PSMC1DBR2 PSMC1DBRbits.PSMC1DBR2 // bit 2
8040 #define PSMC1DBR3 PSMC1DBRbits.PSMC1DBR3 // bit 3
8041 #define PSMC1DBR4 PSMC1DBRbits.PSMC1DBR4 // bit 4
8042 #define PSMC1DBR5 PSMC1DBRbits.PSMC1DBR5 // bit 5
8043 #define PSMC1DBR6 PSMC1DBRbits.PSMC1DBR6 // bit 6
8044 #define PSMC1DBR7 PSMC1DBRbits.PSMC1DBR7 // bit 7
8046 #define PSMC1DC8 PSMC1DCHbits.PSMC1DC8 // bit 0
8047 #define PSMC1DC9 PSMC1DCHbits.PSMC1DC9 // bit 1
8048 #define PSMC1DC10 PSMC1DCHbits.PSMC1DC10 // bit 2
8049 #define PSMC1DC11 PSMC1DCHbits.PSMC1DC11 // bit 3
8050 #define PSMC1DC12 PSMC1DCHbits.PSMC1DC12 // bit 4
8051 #define PSMC1DC13 PSMC1DCHbits.PSMC1DC13 // bit 5
8052 #define PSMC1DC14 PSMC1DCHbits.PSMC1DC14 // bit 6
8053 #define PSMC1DC15 PSMC1DCHbits.PSMC1DC15 // bit 7
8055 #define PSMC1DC0 PSMC1DCLbits.PSMC1DC0 // bit 0
8056 #define PSMC1DC1 PSMC1DCLbits.PSMC1DC1 // bit 1
8057 #define PSMC1DC2 PSMC1DCLbits.PSMC1DC2 // bit 2
8058 #define PSMC1DC3 PSMC1DCLbits.PSMC1DC3 // bit 3
8059 #define PSMC1DC4 PSMC1DCLbits.PSMC1DC4 // bit 4
8060 #define PSMC1DC5 PSMC1DCLbits.PSMC1DC5 // bit 5
8061 #define PSMC1DC6 PSMC1DCLbits.PSMC1DC6 // bit 6
8062 #define PSMC1DC7 PSMC1DCLbits.PSMC1DC7 // bit 7
8064 #define P1DCST PSMC1DCSbits.P1DCST // bit 0
8065 #define P1DCSC1 PSMC1DCSbits.P1DCSC1 // bit 1
8066 #define P1DCSC2 PSMC1DCSbits.P1DCSC2 // bit 2
8067 #define P1DCSC3 PSMC1DCSbits.P1DCSC3 // bit 3
8068 #define P1DCSC4 PSMC1DCSbits.P1DCSC4 // bit 4
8069 #define P1DCSIN PSMC1DCSbits.P1DCSIN // bit 7
8071 #define P1FEBSC1 PSMC1FEBSbits.P1FEBSC1 // bit 1
8072 #define P1FEBSC2 PSMC1FEBSbits.P1FEBSC2 // bit 2
8073 #define P1FEBSC3 PSMC1FEBSbits.P1FEBSC3 // bit 3
8074 #define P1FEBSC4 PSMC1FEBSbits.P1FEBSC4 // bit 4
8075 #define P1FEBSIN PSMC1FEBSbits.P1FEBSIN // bit 7
8077 #define PSMC1FFA0 PSMC1FFAbits.PSMC1FFA0 // bit 0
8078 #define PSMC1FFA1 PSMC1FFAbits.PSMC1FFA1 // bit 1
8079 #define PSMC1FFA2 PSMC1FFAbits.PSMC1FFA2 // bit 2
8080 #define PSMC1FFA3 PSMC1FFAbits.PSMC1FFA3 // bit 3
8082 #define P1TPRIF PSMC1INTbits.P1TPRIF // bit 0
8083 #define P1TDCIF PSMC1INTbits.P1TDCIF // bit 1
8084 #define P1TPHIF PSMC1INTbits.P1TPHIF // bit 2
8085 #define P1TOVIF PSMC1INTbits.P1TOVIF // bit 3
8086 #define P1TPRIE PSMC1INTbits.P1TPRIE // bit 4
8087 #define P1TDCIE PSMC1INTbits.P1TDCIE // bit 5
8088 #define P1TPHIE PSMC1INTbits.P1TPHIE // bit 6
8089 #define P1TOVIE PSMC1INTbits.P1TOVIE // bit 7
8091 #define P1MSRC0 PSMC1MDLbits.P1MSRC0 // bit 0
8092 #define P1MSRC1 PSMC1MDLbits.P1MSRC1 // bit 1
8093 #define P1MSRC2 PSMC1MDLbits.P1MSRC2 // bit 2
8094 #define P1MSRC3 PSMC1MDLbits.P1MSRC3 // bit 3
8095 #define P1MDLBIT PSMC1MDLbits.P1MDLBIT // bit 5
8096 #define P1MDLPOL PSMC1MDLbits.P1MDLPOL // bit 6
8097 #define P1MDLEN PSMC1MDLbits.P1MDLEN // bit 7
8099 #define P1OEA PSMC1OENbits.P1OEA // bit 0
8100 #define P1OEB PSMC1OENbits.P1OEB // bit 1
8101 #define P1OEC PSMC1OENbits.P1OEC // bit 2
8102 #define P1OED PSMC1OENbits.P1OED // bit 3
8103 #define P1OEE PSMC1OENbits.P1OEE // bit 4
8104 #define P1OEF PSMC1OENbits.P1OEF // bit 5
8106 #define PSMC1PH8 PSMC1PHHbits.PSMC1PH8 // bit 0
8107 #define PSMC1PH9 PSMC1PHHbits.PSMC1PH9 // bit 1
8108 #define PSMC1PH10 PSMC1PHHbits.PSMC1PH10 // bit 2
8109 #define PSMC1PH11 PSMC1PHHbits.PSMC1PH11 // bit 3
8110 #define PSMC1PH12 PSMC1PHHbits.PSMC1PH12 // bit 4
8111 #define PSMC1PH13 PSMC1PHHbits.PSMC1PH13 // bit 5
8112 #define PSMC1PH14 PSMC1PHHbits.PSMC1PH14 // bit 6
8113 #define PSMC1PH15 PSMC1PHHbits.PSMC1PH15 // bit 7
8115 #define PSMC1PH0 PSMC1PHLbits.PSMC1PH0 // bit 0
8116 #define PSMC1PH1 PSMC1PHLbits.PSMC1PH1 // bit 1
8117 #define PSMC1PH2 PSMC1PHLbits.PSMC1PH2 // bit 2
8118 #define PSMC1PH3 PSMC1PHLbits.PSMC1PH3 // bit 3
8119 #define PSMC1PH4 PSMC1PHLbits.PSMC1PH4 // bit 4
8120 #define PSMC1PH5 PSMC1PHLbits.PSMC1PH5 // bit 5
8121 #define PSMC1PH6 PSMC1PHLbits.PSMC1PH6 // bit 6
8122 #define PSMC1PH7 PSMC1PHLbits.PSMC1PH7 // bit 7
8124 #define P1PHST PSMC1PHSbits.P1PHST // bit 0
8125 #define P1PHSC1 PSMC1PHSbits.P1PHSC1 // bit 1
8126 #define P1PHSC2 PSMC1PHSbits.P1PHSC2 // bit 2
8127 #define P1PHSC3 PSMC1PHSbits.P1PHSC3 // bit 3
8128 #define P1PHSC4 PSMC1PHSbits.P1PHSC4 // bit 4
8129 #define P1PHSIN PSMC1PHSbits.P1PHSIN // bit 7
8131 #define P1POLA PSMC1POLbits.P1POLA // bit 0
8132 #define P1POLB PSMC1POLbits.P1POLB // bit 1
8133 #define P1POLC PSMC1POLbits.P1POLC // bit 2
8134 #define P1POLD PSMC1POLbits.P1POLD // bit 3
8135 #define P1POLE PSMC1POLbits.P1POLE // bit 4
8136 #define P1POLF PSMC1POLbits.P1POLF // bit 5
8137 #define P1INPOL PSMC1POLbits.P1INPOL // bit 6
8139 #define PSMC1PR8 PSMC1PRHbits.PSMC1PR8 // bit 0
8140 #define PSMC1PR9 PSMC1PRHbits.PSMC1PR9 // bit 1
8141 #define PSMC1PR10 PSMC1PRHbits.PSMC1PR10 // bit 2
8142 #define PSMC1PR11 PSMC1PRHbits.PSMC1PR11 // bit 3
8143 #define PSMC1PR12 PSMC1PRHbits.PSMC1PR12 // bit 4
8144 #define PSMC1PR13 PSMC1PRHbits.PSMC1PR13 // bit 5
8145 #define PSMC1PR14 PSMC1PRHbits.PSMC1PR14 // bit 6
8146 #define PSMC1PR15 PSMC1PRHbits.PSMC1PR15 // bit 7
8148 #define PSMC1PR0 PSMC1PRLbits.PSMC1PR0 // bit 0
8149 #define PSMC1PR1 PSMC1PRLbits.PSMC1PR1 // bit 1
8150 #define PSMC1PR2 PSMC1PRLbits.PSMC1PR2 // bit 2
8151 #define PSMC1PR3 PSMC1PRLbits.PSMC1PR3 // bit 3
8152 #define PSMC1PR4 PSMC1PRLbits.PSMC1PR4 // bit 4
8153 #define PSMC1PR5 PSMC1PRLbits.PSMC1PR5 // bit 5
8154 #define PSMC1PR6 PSMC1PRLbits.PSMC1PR6 // bit 6
8155 #define PSMC1PR7 PSMC1PRLbits.PSMC1PR7 // bit 7
8157 #define P1PRST PSMC1PRSbits.P1PRST // bit 0
8158 #define P1PRSC1 PSMC1PRSbits.P1PRSC1 // bit 1
8159 #define P1PRSC2 PSMC1PRSbits.P1PRSC2 // bit 2
8160 #define P1PRSC3 PSMC1PRSbits.P1PRSC3 // bit 3
8161 #define P1PRSC4 PSMC1PRSbits.P1PRSC4 // bit 4
8162 #define P1PRSIN PSMC1PRSbits.P1PRSIN // bit 7
8164 #define P1REBSC1 PSMC1REBSbits.P1REBSC1 // bit 1
8165 #define P1REBSC2 PSMC1REBSbits.P1REBSC2 // bit 2
8166 #define P1REBSC3 PSMC1REBSbits.P1REBSC3 // bit 3
8167 #define P1REBSC4 PSMC1REBSbits.P1REBSC4 // bit 4
8168 #define P1REBSIN PSMC1REBSbits.P1REBSIN // bit 7
8170 #define P1STRA PSMC1STR0bits.P1STRA // bit 0
8171 #define P1STRB PSMC1STR0bits.P1STRB // bit 1
8172 #define P1STRC PSMC1STR0bits.P1STRC // bit 2
8173 #define P1STRD PSMC1STR0bits.P1STRD // bit 3
8174 #define P1STRE PSMC1STR0bits.P1STRE // bit 4
8175 #define P1STRF PSMC1STR0bits.P1STRF // bit 5
8177 #define P1HSMEN PSMC1STR1bits.P1HSMEN // bit 0
8178 #define P1LSMEN PSMC1STR1bits.P1LSMEN // bit 1
8179 #define P1SSYNC PSMC1STR1bits.P1SSYNC // bit 7
8181 #define P1SYNC0 PSMC1SYNCbits.P1SYNC0 // bit 0
8182 #define P1SYNC1 PSMC1SYNCbits.P1SYNC1 // bit 1
8183 #define P1SYNC2 PSMC1SYNCbits.P1SYNC2 // bit 2
8184 #define P1DCPOL PSMC1SYNCbits.P1DCPOL // bit 5
8185 #define P1PRPOL PSMC1SYNCbits.P1PRPOL // bit 6
8186 #define P1POFST PSMC1SYNCbits.P1POFST // bit 7
8188 #define PSMC1TMR8 PSMC1TMRHbits.PSMC1TMR8 // bit 0
8189 #define PSMC1TMR9 PSMC1TMRHbits.PSMC1TMR9 // bit 1
8190 #define PSMC1TMR10 PSMC1TMRHbits.PSMC1TMR10 // bit 2
8191 #define PSMC1TMR11 PSMC1TMRHbits.PSMC1TMR11 // bit 3
8192 #define PSMC1TMR12 PSMC1TMRHbits.PSMC1TMR12 // bit 4
8193 #define PSMC1TMR13 PSMC1TMRHbits.PSMC1TMR13 // bit 5
8194 #define PSMC1TMR14 PSMC1TMRHbits.PSMC1TMR14 // bit 6
8195 #define PSMC1TMR15 PSMC1TMRHbits.PSMC1TMR15 // bit 7
8197 #define PSMC1TMR0 PSMC1TMRLbits.PSMC1TMR0 // bit 0
8198 #define PSMC1TMR1 PSMC1TMRLbits.PSMC1TMR1 // bit 1
8199 #define PSMC1TMR2 PSMC1TMRLbits.PSMC1TMR2 // bit 2
8200 #define PSMC1TMR3 PSMC1TMRLbits.PSMC1TMR3 // bit 3
8201 #define PSMC1TMR4 PSMC1TMRLbits.PSMC1TMR4 // bit 4
8202 #define PSMC1TMR5 PSMC1TMRLbits.PSMC1TMR5 // bit 5
8203 #define PSMC1TMR6 PSMC1TMRLbits.PSMC1TMR6 // bit 6
8204 #define PSMC1TMR7 PSMC1TMRLbits.PSMC1TMR7 // bit 7
8206 #define P2ASDOV PSMC2ASDCbits.P2ASDOV // bit 0
8207 #define P2ARSEN PSMC2ASDCbits.P2ARSEN // bit 5
8208 #define P2ASDEN PSMC2ASDCbits.P2ASDEN // bit 6
8209 #define P2ASE PSMC2ASDCbits.P2ASE // bit 7
8211 #define P2ASDLA PSMC2ASDLbits.P2ASDLA // bit 0
8212 #define P2ASDLB PSMC2ASDLbits.P2ASDLB // bit 1
8214 #define P2ASDSC1 PSMC2ASDSbits.P2ASDSC1 // bit 1
8215 #define P2ASDSC2 PSMC2ASDSbits.P2ASDSC2 // bit 2
8216 #define P2ASDSC3 PSMC2ASDSbits.P2ASDSC3 // bit 3
8217 #define P2ASDSC4 PSMC2ASDSbits.P2ASDSC4 // bit 4
8218 #define P2ASDSIN PSMC2ASDSbits.P2ASDSIN // bit 7
8220 #define PSMC2BLKF0 PSMC2BLKFbits.PSMC2BLKF0 // bit 0
8221 #define PSMC2BLKF1 PSMC2BLKFbits.PSMC2BLKF1 // bit 1
8222 #define PSMC2BLKF2 PSMC2BLKFbits.PSMC2BLKF2 // bit 2
8223 #define PSMC2BLKF3 PSMC2BLKFbits.PSMC2BLKF3 // bit 3
8224 #define PSMC2BLKF4 PSMC2BLKFbits.PSMC2BLKF4 // bit 4
8225 #define PSMC2BLKF5 PSMC2BLKFbits.PSMC2BLKF5 // bit 5
8226 #define PSMC2BLKF6 PSMC2BLKFbits.PSMC2BLKF6 // bit 6
8227 #define PSMC2BLKF7 PSMC2BLKFbits.PSMC2BLKF7 // bit 7
8229 #define PSMC2BLKR0 PSMC2BLKRbits.PSMC2BLKR0 // bit 0
8230 #define PSMC2BLKR1 PSMC2BLKRbits.PSMC2BLKR1 // bit 1
8231 #define PSMC2BLKR2 PSMC2BLKRbits.PSMC2BLKR2 // bit 2
8232 #define PSMC2BLKR3 PSMC2BLKRbits.PSMC2BLKR3 // bit 3
8233 #define PSMC2BLKR4 PSMC2BLKRbits.PSMC2BLKR4 // bit 4
8234 #define PSMC2BLKR5 PSMC2BLKRbits.PSMC2BLKR5 // bit 5
8235 #define PSMC2BLKR6 PSMC2BLKRbits.PSMC2BLKR6 // bit 6
8236 #define PSMC2BLKR7 PSMC2BLKRbits.PSMC2BLKR7 // bit 7
8238 #define P2REBM0 PSMC2BLNKbits.P2REBM0 // bit 0
8239 #define P2REBM1 PSMC2BLNKbits.P2REBM1 // bit 1
8240 #define P2FEBM0 PSMC2BLNKbits.P2FEBM0 // bit 4
8241 #define P2FEBM1 PSMC2BLNKbits.P2FEBM1 // bit 5
8243 #define P2CSRC0 PSMC2CLKbits.P2CSRC0 // bit 0
8244 #define P2CSRC1 PSMC2CLKbits.P2CSRC1 // bit 1
8245 #define P2CPRE0 PSMC2CLKbits.P2CPRE0 // bit 4
8246 #define P2CPRE1 PSMC2CLKbits.P2CPRE1 // bit 5
8248 #define P2MODE0 PSMC2CONbits.P2MODE0 // bit 0
8249 #define P2MODE1 PSMC2CONbits.P2MODE1 // bit 1
8250 #define P2MODE2 PSMC2CONbits.P2MODE2 // bit 2
8251 #define P2MODE3 PSMC2CONbits.P2MODE3 // bit 3
8252 #define P2DBRE PSMC2CONbits.P2DBRE // bit 4
8253 #define P2DBFE PSMC2CONbits.P2DBFE // bit 5
8254 #define PSMC2LD PSMC2CONbits.PSMC2LD // bit 6
8255 #define PSMC2EN PSMC2CONbits.PSMC2EN // bit 7
8257 #define PSMC2DBF0 PSMC2DBFbits.PSMC2DBF0 // bit 0
8258 #define PSMC2DBF1 PSMC2DBFbits.PSMC2DBF1 // bit 1
8259 #define PSMC2DBF2 PSMC2DBFbits.PSMC2DBF2 // bit 2
8260 #define PSMC2DBF3 PSMC2DBFbits.PSMC2DBF3 // bit 3
8261 #define PSMC2DBF4 PSMC2DBFbits.PSMC2DBF4 // bit 4
8262 #define PSMC2DBF5 PSMC2DBFbits.PSMC2DBF5 // bit 5
8263 #define PSMC2DBF6 PSMC2DBFbits.PSMC2DBF6 // bit 6
8264 #define PSMC2DBF7 PSMC2DBFbits.PSMC2DBF7 // bit 7
8266 #define PSMC2DBR0 PSMC2DBRbits.PSMC2DBR0 // bit 0
8267 #define PSMC2DBR1 PSMC2DBRbits.PSMC2DBR1 // bit 1
8268 #define PSMC2DBR2 PSMC2DBRbits.PSMC2DBR2 // bit 2
8269 #define PSMC2DBR3 PSMC2DBRbits.PSMC2DBR3 // bit 3
8270 #define PSMC2DBR4 PSMC2DBRbits.PSMC2DBR4 // bit 4
8271 #define PSMC2DBR5 PSMC2DBRbits.PSMC2DBR5 // bit 5
8272 #define PSMC2DBR6 PSMC2DBRbits.PSMC2DBR6 // bit 6
8273 #define PSMC2DBR7 PSMC2DBRbits.PSMC2DBR7 // bit 7
8275 #define PSMC2DC8 PSMC2DCHbits.PSMC2DC8 // bit 0
8276 #define PSMC2DC9 PSMC2DCHbits.PSMC2DC9 // bit 1
8277 #define PSMC2DC10 PSMC2DCHbits.PSMC2DC10 // bit 2
8278 #define PSMC2DC11 PSMC2DCHbits.PSMC2DC11 // bit 3
8279 #define PSMC2DC12 PSMC2DCHbits.PSMC2DC12 // bit 4
8280 #define PSMC2DC13 PSMC2DCHbits.PSMC2DC13 // bit 5
8281 #define PSMC2DC14 PSMC2DCHbits.PSMC2DC14 // bit 6
8282 #define PSMC2DC15 PSMC2DCHbits.PSMC2DC15 // bit 7
8284 #define PSMC2DC0 PSMC2DCLbits.PSMC2DC0 // bit 0
8285 #define PSMC2DC1 PSMC2DCLbits.PSMC2DC1 // bit 1
8286 #define PSMC2DC2 PSMC2DCLbits.PSMC2DC2 // bit 2
8287 #define PSMC2DC3 PSMC2DCLbits.PSMC2DC3 // bit 3
8288 #define PSMC2DC4 PSMC2DCLbits.PSMC2DC4 // bit 4
8289 #define PSMC2DC5 PSMC2DCLbits.PSMC2DC5 // bit 5
8290 #define PSMC2DC6 PSMC2DCLbits.PSMC2DC6 // bit 6
8291 #define PSMC2DC7 PSMC2DCLbits.PSMC2DC7 // bit 7
8293 #define P2DCST PSMC2DCSbits.P2DCST // bit 0
8294 #define P2DCSC1 PSMC2DCSbits.P2DCSC1 // bit 1
8295 #define P2DCSC2 PSMC2DCSbits.P2DCSC2 // bit 2
8296 #define P2DCSC3 PSMC2DCSbits.P2DCSC3 // bit 3
8297 #define P2DCSC4 PSMC2DCSbits.P2DCSC4 // bit 4
8298 #define P2DCSIN PSMC2DCSbits.P2DCSIN // bit 7
8300 #define P2FEBSC1 PSMC2FEBSbits.P2FEBSC1 // bit 1
8301 #define P2FEBSC2 PSMC2FEBSbits.P2FEBSC2 // bit 2
8302 #define P2FEBSC3 PSMC2FEBSbits.P2FEBSC3 // bit 3
8303 #define P2FEBSC4 PSMC2FEBSbits.P2FEBSC4 // bit 4
8304 #define P2FEBSIN PSMC2FEBSbits.P2FEBSIN // bit 7
8306 #define PSMC2FFA0 PSMC2FFAbits.PSMC2FFA0 // bit 0
8307 #define PSMC2FFA1 PSMC2FFAbits.PSMC2FFA1 // bit 1
8308 #define PSMC2FFA2 PSMC2FFAbits.PSMC2FFA2 // bit 2
8309 #define PSMC2FFA3 PSMC2FFAbits.PSMC2FFA3 // bit 3
8311 #define P2TPRIF PSMC2INTbits.P2TPRIF // bit 0
8312 #define P2TDCIF PSMC2INTbits.P2TDCIF // bit 1
8313 #define P2TPHIF PSMC2INTbits.P2TPHIF // bit 2
8314 #define P2TOVIF PSMC2INTbits.P2TOVIF // bit 3
8315 #define P2TPRIE PSMC2INTbits.P2TPRIE // bit 4
8316 #define P2TDCIE PSMC2INTbits.P2TDCIE // bit 5
8317 #define P2TPHIE PSMC2INTbits.P2TPHIE // bit 6
8318 #define P2TOVIE PSMC2INTbits.P2TOVIE // bit 7
8320 #define P2MSRC0 PSMC2MDLbits.P2MSRC0 // bit 0
8321 #define P2MSRC1 PSMC2MDLbits.P2MSRC1 // bit 1
8322 #define P2MSRC2 PSMC2MDLbits.P2MSRC2 // bit 2
8323 #define P2MSRC3 PSMC2MDLbits.P2MSRC3 // bit 3
8324 #define P2MDLBIT PSMC2MDLbits.P2MDLBIT // bit 5
8325 #define P2MDLPOL PSMC2MDLbits.P2MDLPOL // bit 6
8326 #define P2MDLEN PSMC2MDLbits.P2MDLEN // bit 7
8328 #define P2OEA PSMC2OENbits.P2OEA // bit 0
8329 #define P2OEB PSMC2OENbits.P2OEB // bit 1
8331 #define PSMC2PH8 PSMC2PHHbits.PSMC2PH8 // bit 0
8332 #define PSMC2PH9 PSMC2PHHbits.PSMC2PH9 // bit 1
8333 #define PSMC2PH10 PSMC2PHHbits.PSMC2PH10 // bit 2
8334 #define PSMC2PH11 PSMC2PHHbits.PSMC2PH11 // bit 3
8335 #define PSMC2PH12 PSMC2PHHbits.PSMC2PH12 // bit 4
8336 #define PSMC2PH13 PSMC2PHHbits.PSMC2PH13 // bit 5
8337 #define PSMC2PH14 PSMC2PHHbits.PSMC2PH14 // bit 6
8338 #define PSMC2PH15 PSMC2PHHbits.PSMC2PH15 // bit 7
8340 #define PSMC2PH0 PSMC2PHLbits.PSMC2PH0 // bit 0
8341 #define PSMC2PH1 PSMC2PHLbits.PSMC2PH1 // bit 1
8342 #define PSMC2PH2 PSMC2PHLbits.PSMC2PH2 // bit 2
8343 #define PSMC2PH3 PSMC2PHLbits.PSMC2PH3 // bit 3
8344 #define PSMC2PH4 PSMC2PHLbits.PSMC2PH4 // bit 4
8345 #define PSMC2PH5 PSMC2PHLbits.PSMC2PH5 // bit 5
8346 #define PSMC2PH6 PSMC2PHLbits.PSMC2PH6 // bit 6
8347 #define PSMC2PH7 PSMC2PHLbits.PSMC2PH7 // bit 7
8349 #define P2PHST PSMC2PHSbits.P2PHST // bit 0
8350 #define P2PHSC1 PSMC2PHSbits.P2PHSC1 // bit 1
8351 #define P2PHSC2 PSMC2PHSbits.P2PHSC2 // bit 2
8352 #define P2PHSC3 PSMC2PHSbits.P2PHSC3 // bit 3
8353 #define P2PHSC4 PSMC2PHSbits.P2PHSC4 // bit 4
8354 #define P2PHSIN PSMC2PHSbits.P2PHSIN // bit 7
8356 #define P2POLA PSMC2POLbits.P2POLA // bit 0
8357 #define P2POLB PSMC2POLbits.P2POLB // bit 1
8358 #define P2INPOL PSMC2POLbits.P2INPOL // bit 6
8360 #define PSMC2PR8 PSMC2PRHbits.PSMC2PR8 // bit 0
8361 #define PSMC2PR9 PSMC2PRHbits.PSMC2PR9 // bit 1
8362 #define PSMC2PR10 PSMC2PRHbits.PSMC2PR10 // bit 2
8363 #define PSMC2PR11 PSMC2PRHbits.PSMC2PR11 // bit 3
8364 #define PSMC2PR12 PSMC2PRHbits.PSMC2PR12 // bit 4
8365 #define PSMC2PR13 PSMC2PRHbits.PSMC2PR13 // bit 5
8366 #define PSMC2PR14 PSMC2PRHbits.PSMC2PR14 // bit 6
8367 #define PSMC2PR15 PSMC2PRHbits.PSMC2PR15 // bit 7
8369 #define PSMC2PR0 PSMC2PRLbits.PSMC2PR0 // bit 0
8370 #define PSMC2PR1 PSMC2PRLbits.PSMC2PR1 // bit 1
8371 #define PSMC2PR2 PSMC2PRLbits.PSMC2PR2 // bit 2
8372 #define PSMC2PR3 PSMC2PRLbits.PSMC2PR3 // bit 3
8373 #define PSMC2PR4 PSMC2PRLbits.PSMC2PR4 // bit 4
8374 #define PSMC2PR5 PSMC2PRLbits.PSMC2PR5 // bit 5
8375 #define PSMC2PR6 PSMC2PRLbits.PSMC2PR6 // bit 6
8376 #define PSMC2PR7 PSMC2PRLbits.PSMC2PR7 // bit 7
8378 #define P2PRST PSMC2PRSbits.P2PRST // bit 0
8379 #define P2PRSC1 PSMC2PRSbits.P2PRSC1 // bit 1
8380 #define P2PRSC2 PSMC2PRSbits.P2PRSC2 // bit 2
8381 #define P2PRSC3 PSMC2PRSbits.P2PRSC3 // bit 3
8382 #define P2PRSC4 PSMC2PRSbits.P2PRSC4 // bit 4
8383 #define P2PRSIN PSMC2PRSbits.P2PRSIN // bit 7
8385 #define P2REBSC1 PSMC2REBSbits.P2REBSC1 // bit 1
8386 #define P2REBSC2 PSMC2REBSbits.P2REBSC2 // bit 2
8387 #define P2REBSC3 PSMC2REBSbits.P2REBSC3 // bit 3
8388 #define P2REBSC4 PSMC2REBSbits.P2REBSC4 // bit 4
8389 #define P2REBSIN PSMC2REBSbits.P2REBSIN // bit 7
8391 #define P2STRA PSMC2STR0bits.P2STRA // bit 0
8392 #define P2STRB PSMC2STR0bits.P2STRB // bit 1
8394 #define P2HSMEN PSMC2STR1bits.P2HSMEN // bit 0
8395 #define P2LSMEN PSMC2STR1bits.P2LSMEN // bit 1
8396 #define P2SSYNC PSMC2STR1bits.P2SSYNC // bit 7
8398 #define P2SYNC0 PSMC2SYNCbits.P2SYNC0 // bit 0
8399 #define P2SYNC1 PSMC2SYNCbits.P2SYNC1 // bit 1
8400 #define P2SYNC2 PSMC2SYNCbits.P2SYNC2 // bit 2
8401 #define P2DCPOL PSMC2SYNCbits.P2DCPOL // bit 5
8402 #define P2PRPOL PSMC2SYNCbits.P2PRPOL // bit 6
8403 #define P2POFST PSMC2SYNCbits.P2POFST // bit 7
8405 #define PSMC2TMR8 PSMC2TMRHbits.PSMC2TMR8 // bit 0
8406 #define PSMC2TMR9 PSMC2TMRHbits.PSMC2TMR9 // bit 1
8407 #define PSMC2TMR10 PSMC2TMRHbits.PSMC2TMR10 // bit 2
8408 #define PSMC2TMR11 PSMC2TMRHbits.PSMC2TMR11 // bit 3
8409 #define PSMC2TMR12 PSMC2TMRHbits.PSMC2TMR12 // bit 4
8410 #define PSMC2TMR13 PSMC2TMRHbits.PSMC2TMR13 // bit 5
8411 #define PSMC2TMR14 PSMC2TMRHbits.PSMC2TMR14 // bit 6
8412 #define PSMC2TMR15 PSMC2TMRHbits.PSMC2TMR15 // bit 7
8414 #define PSMC2TMR0 PSMC2TMRLbits.PSMC2TMR0 // bit 0
8415 #define PSMC2TMR1 PSMC2TMRLbits.PSMC2TMR1 // bit 1
8416 #define PSMC2TMR2 PSMC2TMRLbits.PSMC2TMR2 // bit 2
8417 #define PSMC2TMR3 PSMC2TMRLbits.PSMC2TMR3 // bit 3
8418 #define PSMC2TMR4 PSMC2TMRLbits.PSMC2TMR4 // bit 4
8419 #define PSMC2TMR5 PSMC2TMRLbits.PSMC2TMR5 // bit 5
8420 #define PSMC2TMR6 PSMC2TMRLbits.PSMC2TMR6 // bit 6
8421 #define PSMC2TMR7 PSMC2TMRLbits.PSMC2TMR7 // bit 7
8423 #define P3ASDOV PSMC3ASDCbits.P3ASDOV // bit 0
8424 #define P3ARSEN PSMC3ASDCbits.P3ARSEN // bit 5
8425 #define P3ASDEN PSMC3ASDCbits.P3ASDEN // bit 6
8426 #define P3ASE PSMC3ASDCbits.P3ASE // bit 7
8428 #define P3ASDLA PSMC3ASDLbits.P3ASDLA // bit 0
8429 #define P3ASDLB PSMC3ASDLbits.P3ASDLB // bit 1
8430 #define P3ASDLC PSMC3ASDLbits.P3ASDLC // bit 2
8431 #define P3ASDLD PSMC3ASDLbits.P3ASDLD // bit 3
8432 #define P3ASDLE PSMC3ASDLbits.P3ASDLE // bit 4
8433 #define P3ASDLF PSMC3ASDLbits.P3ASDLF // bit 5
8435 #define P3ASDSC1 PSMC3ASDSbits.P3ASDSC1 // bit 1
8436 #define P3ASDSC2 PSMC3ASDSbits.P3ASDSC2 // bit 2
8437 #define P3ASDSC3 PSMC3ASDSbits.P3ASDSC3 // bit 3
8438 #define P3ASDSC4 PSMC3ASDSbits.P3ASDSC4 // bit 4
8439 #define P3ASDSIN PSMC3ASDSbits.P3ASDSIN // bit 7
8441 #define PSMC3BLKF0 PSMC3BLKFbits.PSMC3BLKF0 // bit 0
8442 #define PSMC3BLKF1 PSMC3BLKFbits.PSMC3BLKF1 // bit 1
8443 #define PSMC3BLKF2 PSMC3BLKFbits.PSMC3BLKF2 // bit 2
8444 #define PSMC3BLKF3 PSMC3BLKFbits.PSMC3BLKF3 // bit 3
8445 #define PSMC3BLKF4 PSMC3BLKFbits.PSMC3BLKF4 // bit 4
8446 #define PSMC3BLKF5 PSMC3BLKFbits.PSMC3BLKF5 // bit 5
8447 #define PSMC3BLKF6 PSMC3BLKFbits.PSMC3BLKF6 // bit 6
8448 #define PSMC3BLKF7 PSMC3BLKFbits.PSMC3BLKF7 // bit 7
8450 #define PSMC3BLKR0 PSMC3BLKRbits.PSMC3BLKR0 // bit 0
8451 #define PSMC3BLKR1 PSMC3BLKRbits.PSMC3BLKR1 // bit 1
8452 #define PSMC3BLKR2 PSMC3BLKRbits.PSMC3BLKR2 // bit 2
8453 #define PSMC3BLKR3 PSMC3BLKRbits.PSMC3BLKR3 // bit 3
8454 #define PSMC3BLKR4 PSMC3BLKRbits.PSMC3BLKR4 // bit 4
8455 #define PSMC3BLKR5 PSMC3BLKRbits.PSMC3BLKR5 // bit 5
8456 #define PSMC3BLKR6 PSMC3BLKRbits.PSMC3BLKR6 // bit 6
8457 #define PSMC3BLKR7 PSMC3BLKRbits.PSMC3BLKR7 // bit 7
8459 #define P3REBM0 PSMC3BLNKbits.P3REBM0 // bit 0
8460 #define P3REBM1 PSMC3BLNKbits.P3REBM1 // bit 1
8461 #define P3FEBM0 PSMC3BLNKbits.P3FEBM0 // bit 4
8462 #define P3FEBM1 PSMC3BLNKbits.P3FEBM1 // bit 5
8464 #define P3CSRC0 PSMC3CLKbits.P3CSRC0 // bit 0
8465 #define P3CSRC1 PSMC3CLKbits.P3CSRC1 // bit 1
8466 #define P3CPRE0 PSMC3CLKbits.P3CPRE0 // bit 4
8467 #define P3CPRE1 PSMC3CLKbits.P3CPRE1 // bit 5
8469 #define P3MODE0 PSMC3CONbits.P3MODE0 // bit 0
8470 #define P3MODE1 PSMC3CONbits.P3MODE1 // bit 1
8471 #define P3MODE2 PSMC3CONbits.P3MODE2 // bit 2
8472 #define P3MODE3 PSMC3CONbits.P3MODE3 // bit 3
8473 #define P3DBRE PSMC3CONbits.P3DBRE // bit 4
8474 #define P3DBFE PSMC3CONbits.P3DBFE // bit 5
8475 #define PSMC3LD PSMC3CONbits.PSMC3LD // bit 6
8476 #define PSMC3EN PSMC3CONbits.PSMC3EN // bit 7
8478 #define PSMC3DBF0 PSMC3DBFbits.PSMC3DBF0 // bit 0
8479 #define PSMC3DBF1 PSMC3DBFbits.PSMC3DBF1 // bit 1
8480 #define PSMC3DBF2 PSMC3DBFbits.PSMC3DBF2 // bit 2
8481 #define PSMC3DBF3 PSMC3DBFbits.PSMC3DBF3 // bit 3
8482 #define PSMC3DBF4 PSMC3DBFbits.PSMC3DBF4 // bit 4
8483 #define PSMC3DBF5 PSMC3DBFbits.PSMC3DBF5 // bit 5
8484 #define PSMC3DBF6 PSMC3DBFbits.PSMC3DBF6 // bit 6
8485 #define PSMC3DBF7 PSMC3DBFbits.PSMC3DBF7 // bit 7
8487 #define PSMC3DBR0 PSMC3DBRbits.PSMC3DBR0 // bit 0
8488 #define PSMC3DBR1 PSMC3DBRbits.PSMC3DBR1 // bit 1
8489 #define PSMC3DBR2 PSMC3DBRbits.PSMC3DBR2 // bit 2
8490 #define PSMC3DBR3 PSMC3DBRbits.PSMC3DBR3 // bit 3
8491 #define PSMC3DBR4 PSMC3DBRbits.PSMC3DBR4 // bit 4
8492 #define PSMC3DBR5 PSMC3DBRbits.PSMC3DBR5 // bit 5
8493 #define PSMC3DBR6 PSMC3DBRbits.PSMC3DBR6 // bit 6
8494 #define PSMC3DBR7 PSMC3DBRbits.PSMC3DBR7 // bit 7
8496 #define PSMC3DC8 PSMC3DCHbits.PSMC3DC8 // bit 0
8497 #define PSMC3DC9 PSMC3DCHbits.PSMC3DC9 // bit 1
8498 #define PSMC3DC10 PSMC3DCHbits.PSMC3DC10 // bit 2
8499 #define PSMC3DC11 PSMC3DCHbits.PSMC3DC11 // bit 3
8500 #define PSMC3DC12 PSMC3DCHbits.PSMC3DC12 // bit 4
8501 #define PSMC3DC13 PSMC3DCHbits.PSMC3DC13 // bit 5
8502 #define PSMC3DC14 PSMC3DCHbits.PSMC3DC14 // bit 6
8503 #define PSMC3DC15 PSMC3DCHbits.PSMC3DC15 // bit 7
8505 #define PSMC3DC0 PSMC3DCLbits.PSMC3DC0 // bit 0
8506 #define PSMC3DC1 PSMC3DCLbits.PSMC3DC1 // bit 1
8507 #define PSMC3DC2 PSMC3DCLbits.PSMC3DC2 // bit 2
8508 #define PSMC3DC3 PSMC3DCLbits.PSMC3DC3 // bit 3
8509 #define PSMC3DC4 PSMC3DCLbits.PSMC3DC4 // bit 4
8510 #define PSMC3DC5 PSMC3DCLbits.PSMC3DC5 // bit 5
8511 #define PSMC3DC6 PSMC3DCLbits.PSMC3DC6 // bit 6
8512 #define PSMC3DC7 PSMC3DCLbits.PSMC3DC7 // bit 7
8514 #define P3DCST PSMC3DCSbits.P3DCST // bit 0
8515 #define P3DCSC1 PSMC3DCSbits.P3DCSC1 // bit 1
8516 #define P3DCSC2 PSMC3DCSbits.P3DCSC2 // bit 2
8517 #define P3DCSC3 PSMC3DCSbits.P3DCSC3 // bit 3
8518 #define P3DCSC4 PSMC3DCSbits.P3DCSC4 // bit 4
8519 #define P3DCSIN PSMC3DCSbits.P3DCSIN // bit 7
8521 #define P3FEBSC1 PSMC3FEBSbits.P3FEBSC1 // bit 1
8522 #define P3FEBSC2 PSMC3FEBSbits.P3FEBSC2 // bit 2
8523 #define P3FEBSC3 PSMC3FEBSbits.P3FEBSC3 // bit 3
8524 #define P3FEBSC4 PSMC3FEBSbits.P3FEBSC4 // bit 4
8525 #define P3FEBSIN PSMC3FEBSbits.P3FEBSIN // bit 7
8527 #define PSMC3FFA0 PSMC3FFAbits.PSMC3FFA0 // bit 0
8528 #define PSMC3FFA1 PSMC3FFAbits.PSMC3FFA1 // bit 1
8529 #define PSMC3FFA2 PSMC3FFAbits.PSMC3FFA2 // bit 2
8530 #define PSMC3FFA3 PSMC3FFAbits.PSMC3FFA3 // bit 3
8532 #define P3TPRIF PSMC3INTbits.P3TPRIF // bit 0
8533 #define P3TDCIF PSMC3INTbits.P3TDCIF // bit 1
8534 #define P3TPHIF PSMC3INTbits.P3TPHIF // bit 2
8535 #define P3TOVIF PSMC3INTbits.P3TOVIF // bit 3
8536 #define P3TPRIE PSMC3INTbits.P3TPRIE // bit 4
8537 #define P3TDCIE PSMC3INTbits.P3TDCIE // bit 5
8538 #define P3TPHIE PSMC3INTbits.P3TPHIE // bit 6
8539 #define P3TOVIE PSMC3INTbits.P3TOVIE // bit 7
8541 #define P3MSRC0 PSMC3MDLbits.P3MSRC0 // bit 0
8542 #define P3MSRC1 PSMC3MDLbits.P3MSRC1 // bit 1
8543 #define P3MSRC2 PSMC3MDLbits.P3MSRC2 // bit 2
8544 #define P3MSRC3 PSMC3MDLbits.P3MSRC3 // bit 3
8545 #define P3MDLBIT PSMC3MDLbits.P3MDLBIT // bit 5
8546 #define P3MDLPOL PSMC3MDLbits.P3MDLPOL // bit 6
8547 #define P3MDLEN PSMC3MDLbits.P3MDLEN // bit 7
8549 #define P3OEA PSMC3OENbits.P3OEA // bit 0
8550 #define P3OEB PSMC3OENbits.P3OEB // bit 1
8552 #define PSMC3PH8 PSMC3PHHbits.PSMC3PH8 // bit 0
8553 #define PSMC3PH9 PSMC3PHHbits.PSMC3PH9 // bit 1
8554 #define PSMC3PH10 PSMC3PHHbits.PSMC3PH10 // bit 2
8555 #define PSMC3PH11 PSMC3PHHbits.PSMC3PH11 // bit 3
8556 #define PSMC3PH12 PSMC3PHHbits.PSMC3PH12 // bit 4
8557 #define PSMC3PH13 PSMC3PHHbits.PSMC3PH13 // bit 5
8558 #define PSMC3PH14 PSMC3PHHbits.PSMC3PH14 // bit 6
8559 #define PSMC3PH15 PSMC3PHHbits.PSMC3PH15 // bit 7
8561 #define PSMC3PH0 PSMC3PHLbits.PSMC3PH0 // bit 0
8562 #define PSMC3PH1 PSMC3PHLbits.PSMC3PH1 // bit 1
8563 #define PSMC3PH2 PSMC3PHLbits.PSMC3PH2 // bit 2
8564 #define PSMC3PH3 PSMC3PHLbits.PSMC3PH3 // bit 3
8565 #define PSMC3PH4 PSMC3PHLbits.PSMC3PH4 // bit 4
8566 #define PSMC3PH5 PSMC3PHLbits.PSMC3PH5 // bit 5
8567 #define PSMC3PH6 PSMC3PHLbits.PSMC3PH6 // bit 6
8568 #define PSMC3PH7 PSMC3PHLbits.PSMC3PH7 // bit 7
8570 #define P3PHST PSMC3PHSbits.P3PHST // bit 0
8571 #define P3PHSC1 PSMC3PHSbits.P3PHSC1 // bit 1
8572 #define P3PHSC2 PSMC3PHSbits.P3PHSC2 // bit 2
8573 #define P3PHSC3 PSMC3PHSbits.P3PHSC3 // bit 3
8574 #define P3PHSC4 PSMC3PHSbits.P3PHSC4 // bit 4
8575 #define P3PHSIN PSMC3PHSbits.P3PHSIN // bit 7
8577 #define P3POLA PSMC3POLbits.P3POLA // bit 0
8578 #define P3POLB PSMC3POLbits.P3POLB // bit 1
8579 #define P3INPOL PSMC3POLbits.P3INPOL // bit 6
8581 #define PSMC3PR8 PSMC3PRHbits.PSMC3PR8 // bit 0
8582 #define PSMC3PR9 PSMC3PRHbits.PSMC3PR9 // bit 1
8583 #define PSMC3PR10 PSMC3PRHbits.PSMC3PR10 // bit 2
8584 #define PSMC3PR11 PSMC3PRHbits.PSMC3PR11 // bit 3
8585 #define PSMC3PR12 PSMC3PRHbits.PSMC3PR12 // bit 4
8586 #define PSMC3PR13 PSMC3PRHbits.PSMC3PR13 // bit 5
8587 #define PSMC3PR14 PSMC3PRHbits.PSMC3PR14 // bit 6
8588 #define PSMC3PR15 PSMC3PRHbits.PSMC3PR15 // bit 7
8590 #define PSMC3PR0 PSMC3PRLbits.PSMC3PR0 // bit 0
8591 #define PSMC3PR1 PSMC3PRLbits.PSMC3PR1 // bit 1
8592 #define PSMC3PR2 PSMC3PRLbits.PSMC3PR2 // bit 2
8593 #define PSMC3PR3 PSMC3PRLbits.PSMC3PR3 // bit 3
8594 #define PSMC3PR4 PSMC3PRLbits.PSMC3PR4 // bit 4
8595 #define PSMC3PR5 PSMC3PRLbits.PSMC3PR5 // bit 5
8596 #define PSMC3PR6 PSMC3PRLbits.PSMC3PR6 // bit 6
8597 #define PSMC3PR7 PSMC3PRLbits.PSMC3PR7 // bit 7
8599 #define P3PRST PSMC3PRSbits.P3PRST // bit 0
8600 #define P3PRSC1 PSMC3PRSbits.P3PRSC1 // bit 1
8601 #define P3PRSC2 PSMC3PRSbits.P3PRSC2 // bit 2
8602 #define P3PRSC3 PSMC3PRSbits.P3PRSC3 // bit 3
8603 #define P3PRSC4 PSMC3PRSbits.P3PRSC4 // bit 4
8604 #define P3PRSIN PSMC3PRSbits.P3PRSIN // bit 7
8606 #define P3REBSC1 PSMC3REBSbits.P3REBSC1 // bit 1
8607 #define P3REBSC2 PSMC3REBSbits.P3REBSC2 // bit 2
8608 #define P3REBSC3 PSMC3REBSbits.P3REBSC3 // bit 3
8609 #define P3REBSC4 PSMC3REBSbits.P3REBSC4 // bit 4
8610 #define P3REBSIN PSMC3REBSbits.P3REBSIN // bit 7
8612 #define P3STRA PSMC3STR0bits.P3STRA // bit 0
8613 #define P3STRB PSMC3STR0bits.P3STRB // bit 1
8615 #define P3HSMEN PSMC3STR1bits.P3HSMEN // bit 0
8616 #define P3LSMEN PSMC3STR1bits.P3LSMEN // bit 1
8617 #define P3SSYNC PSMC3STR1bits.P3SSYNC // bit 7
8619 #define P3SYNC0 PSMC3SYNCbits.P3SYNC0 // bit 0
8620 #define P3SYNC1 PSMC3SYNCbits.P3SYNC1 // bit 1
8621 #define P3SYNC2 PSMC3SYNCbits.P3SYNC2 // bit 2
8622 #define P3DCPOL PSMC3SYNCbits.P3DCPOL // bit 5
8623 #define P3PRPOL PSMC3SYNCbits.P3PRPOL // bit 6
8624 #define P3POFST PSMC3SYNCbits.P3POFST // bit 7
8626 #define PSMC3TMR8 PSMC3TMRHbits.PSMC3TMR8 // bit 0
8627 #define PSMC3TMR9 PSMC3TMRHbits.PSMC3TMR9 // bit 1
8628 #define PSMC3TMR10 PSMC3TMRHbits.PSMC3TMR10 // bit 2
8629 #define PSMC3TMR11 PSMC3TMRHbits.PSMC3TMR11 // bit 3
8630 #define PSMC3TMR12 PSMC3TMRHbits.PSMC3TMR12 // bit 4
8631 #define PSMC3TMR13 PSMC3TMRHbits.PSMC3TMR13 // bit 5
8632 #define PSMC3TMR14 PSMC3TMRHbits.PSMC3TMR14 // bit 6
8633 #define PSMC3TMR15 PSMC3TMRHbits.PSMC3TMR15 // bit 7
8635 #define PSMC3TMR0 PSMC3TMRLbits.PSMC3TMR0 // bit 0
8636 #define PSMC3TMR1 PSMC3TMRLbits.PSMC3TMR1 // bit 1
8637 #define PSMC3TMR2 PSMC3TMRLbits.PSMC3TMR2 // bit 2
8638 #define PSMC3TMR3 PSMC3TMRLbits.PSMC3TMR3 // bit 3
8639 #define PSMC3TMR4 PSMC3TMRLbits.PSMC3TMR4 // bit 4
8640 #define PSMC3TMR5 PSMC3TMRLbits.PSMC3TMR5 // bit 5
8641 #define PSMC3TMR6 PSMC3TMRLbits.PSMC3TMR6 // bit 6
8642 #define PSMC3TMR7 PSMC3TMRLbits.PSMC3TMR7 // bit 7
8644 #define RX9D RC1STAbits.RX9D // bit 0
8645 #define OERR RC1STAbits.OERR // bit 1
8646 #define FERR RC1STAbits.FERR // bit 2
8647 #define ADDEN RC1STAbits.ADDEN // bit 3
8648 #define CREN RC1STAbits.CREN // bit 4
8649 #define SREN RC1STAbits.SREN // bit 5
8650 #define RX9 RC1STAbits.RX9 // bit 6
8651 #define SPEN RC1STAbits.SPEN // bit 7
8653 #define SLRCONA0 SLRCONAbits.SLRCONA0 // bit 0
8654 #define SLRCONA1 SLRCONAbits.SLRCONA1 // bit 1
8655 #define SLRCONA2 SLRCONAbits.SLRCONA2 // bit 2
8656 #define SLRCONA3 SLRCONAbits.SLRCONA3 // bit 3
8657 #define SLRCONA4 SLRCONAbits.SLRCONA4 // bit 4
8658 #define SLRCONA5 SLRCONAbits.SLRCONA5 // bit 5
8659 #define SLRCONA6 SLRCONAbits.SLRCONA6 // bit 6
8660 #define SLRCONA7 SLRCONAbits.SLRCONA7 // bit 7
8662 #define SLRCONB0 SLRCONBbits.SLRCONB0 // bit 0
8663 #define SLRCONB1 SLRCONBbits.SLRCONB1 // bit 1
8664 #define SLRCONB2 SLRCONBbits.SLRCONB2 // bit 2
8665 #define SLRCONB3 SLRCONBbits.SLRCONB3 // bit 3
8666 #define SLRCONB4 SLRCONBbits.SLRCONB4 // bit 4
8667 #define SLRCONB5 SLRCONBbits.SLRCONB5 // bit 5
8668 #define SLRCONB6 SLRCONBbits.SLRCONB6 // bit 6
8669 #define SLRCONB7 SLRCONBbits.SLRCONB7 // bit 7
8671 #define SLRCONC0 SLRCONCbits.SLRCONC0 // bit 0
8672 #define SLRCONC1 SLRCONCbits.SLRCONC1 // bit 1
8673 #define SLRCONC2 SLRCONCbits.SLRCONC2 // bit 2
8674 #define SLRCONC3 SLRCONCbits.SLRCONC3 // bit 3
8675 #define SLRCONC4 SLRCONCbits.SLRCONC4 // bit 4
8676 #define SLRCONC5 SLRCONCbits.SLRCONC5 // bit 5
8677 #define SLRCONC6 SLRCONCbits.SLRCONC6 // bit 6
8678 #define SLRCONC7 SLRCONCbits.SLRCONC7 // bit 7
8680 #define SSP1ADD0 SSP1ADDbits.SSP1ADD0 // bit 0, shadows bit in SSP1ADDbits
8681 #define ADD0 SSP1ADDbits.ADD0 // bit 0, shadows bit in SSP1ADDbits
8682 #define SSP1ADD1 SSP1ADDbits.SSP1ADD1 // bit 1, shadows bit in SSP1ADDbits
8683 #define ADD1 SSP1ADDbits.ADD1 // bit 1, shadows bit in SSP1ADDbits
8684 #define SSP1ADD2 SSP1ADDbits.SSP1ADD2 // bit 2, shadows bit in SSP1ADDbits
8685 #define ADD2 SSP1ADDbits.ADD2 // bit 2, shadows bit in SSP1ADDbits
8686 #define SSP1ADD3 SSP1ADDbits.SSP1ADD3 // bit 3, shadows bit in SSP1ADDbits
8687 #define ADD3 SSP1ADDbits.ADD3 // bit 3, shadows bit in SSP1ADDbits
8688 #define SSP1ADD4 SSP1ADDbits.SSP1ADD4 // bit 4, shadows bit in SSP1ADDbits
8689 #define ADD4 SSP1ADDbits.ADD4 // bit 4, shadows bit in SSP1ADDbits
8690 #define SSP1ADD5 SSP1ADDbits.SSP1ADD5 // bit 5, shadows bit in SSP1ADDbits
8691 #define ADD5 SSP1ADDbits.ADD5 // bit 5, shadows bit in SSP1ADDbits
8692 #define SSP1ADD6 SSP1ADDbits.SSP1ADD6 // bit 6, shadows bit in SSP1ADDbits
8693 #define ADD6 SSP1ADDbits.ADD6 // bit 6, shadows bit in SSP1ADDbits
8694 #define SSP1ADD7 SSP1ADDbits.SSP1ADD7 // bit 7, shadows bit in SSP1ADDbits
8695 #define ADD7 SSP1ADDbits.ADD7 // bit 7, shadows bit in SSP1ADDbits
8697 #define SSP1BUF0 SSP1BUFbits.SSP1BUF0 // bit 0, shadows bit in SSP1BUFbits
8698 #define BUF0 SSP1BUFbits.BUF0 // bit 0, shadows bit in SSP1BUFbits
8699 #define SSP1BUF1 SSP1BUFbits.SSP1BUF1 // bit 1, shadows bit in SSP1BUFbits
8700 #define BUF1 SSP1BUFbits.BUF1 // bit 1, shadows bit in SSP1BUFbits
8701 #define SSP1BUF2 SSP1BUFbits.SSP1BUF2 // bit 2, shadows bit in SSP1BUFbits
8702 #define BUF2 SSP1BUFbits.BUF2 // bit 2, shadows bit in SSP1BUFbits
8703 #define SSP1BUF3 SSP1BUFbits.SSP1BUF3 // bit 3, shadows bit in SSP1BUFbits
8704 #define BUF3 SSP1BUFbits.BUF3 // bit 3, shadows bit in SSP1BUFbits
8705 #define SSP1BUF4 SSP1BUFbits.SSP1BUF4 // bit 4, shadows bit in SSP1BUFbits
8706 #define BUF4 SSP1BUFbits.BUF4 // bit 4, shadows bit in SSP1BUFbits
8707 #define SSP1BUF5 SSP1BUFbits.SSP1BUF5 // bit 5, shadows bit in SSP1BUFbits
8708 #define BUF5 SSP1BUFbits.BUF5 // bit 5, shadows bit in SSP1BUFbits
8709 #define SSP1BUF6 SSP1BUFbits.SSP1BUF6 // bit 6, shadows bit in SSP1BUFbits
8710 #define BUF6 SSP1BUFbits.BUF6 // bit 6, shadows bit in SSP1BUFbits
8711 #define SSP1BUF7 SSP1BUFbits.SSP1BUF7 // bit 7, shadows bit in SSP1BUFbits
8712 #define BUF7 SSP1BUFbits.BUF7 // bit 7, shadows bit in SSP1BUFbits
8714 #define SSPM0 SSP1CONbits.SSPM0 // bit 0
8715 #define SSPM1 SSP1CONbits.SSPM1 // bit 1
8716 #define SSPM2 SSP1CONbits.SSPM2 // bit 2
8717 #define SSPM3 SSP1CONbits.SSPM3 // bit 3
8718 #define CKP SSP1CONbits.CKP // bit 4
8719 #define SSPEN SSP1CONbits.SSPEN // bit 5
8720 #define SSPOV SSP1CONbits.SSPOV // bit 6
8721 #define WCOL SSP1CONbits.WCOL // bit 7
8723 #define SEN SSP1CON2bits.SEN // bit 0
8724 #define RSEN SSP1CON2bits.RSEN // bit 1
8725 #define PEN SSP1CON2bits.PEN // bit 2
8726 #define RCEN SSP1CON2bits.RCEN // bit 3
8727 #define ACKEN SSP1CON2bits.ACKEN // bit 4
8728 #define ACKDT SSP1CON2bits.ACKDT // bit 5
8729 #define ACKSTAT SSP1CON2bits.ACKSTAT // bit 6
8730 #define GCEN SSP1CON2bits.GCEN // bit 7
8732 #define DHEN SSP1CON3bits.DHEN // bit 0
8733 #define AHEN SSP1CON3bits.AHEN // bit 1
8734 #define SBCDE SSP1CON3bits.SBCDE // bit 2
8735 #define SDAHT SSP1CON3bits.SDAHT // bit 3
8736 #define BOEN SSP1CON3bits.BOEN // bit 4
8737 #define SCIE SSP1CON3bits.SCIE // bit 5
8738 #define PCIE SSP1CON3bits.PCIE // bit 6
8739 #define ACKTIM SSP1CON3bits.ACKTIM // bit 7
8741 #define SSP1MSK0 SSP1MSKbits.SSP1MSK0 // bit 0, shadows bit in SSP1MSKbits
8742 #define MSK0 SSP1MSKbits.MSK0 // bit 0, shadows bit in SSP1MSKbits
8743 #define SSP1MSK1 SSP1MSKbits.SSP1MSK1 // bit 1, shadows bit in SSP1MSKbits
8744 #define MSK1 SSP1MSKbits.MSK1 // bit 1, shadows bit in SSP1MSKbits
8745 #define SSP1MSK2 SSP1MSKbits.SSP1MSK2 // bit 2, shadows bit in SSP1MSKbits
8746 #define MSK2 SSP1MSKbits.MSK2 // bit 2, shadows bit in SSP1MSKbits
8747 #define SSP1MSK3 SSP1MSKbits.SSP1MSK3 // bit 3, shadows bit in SSP1MSKbits
8748 #define MSK3 SSP1MSKbits.MSK3 // bit 3, shadows bit in SSP1MSKbits
8749 #define SSP1MSK4 SSP1MSKbits.SSP1MSK4 // bit 4, shadows bit in SSP1MSKbits
8750 #define MSK4 SSP1MSKbits.MSK4 // bit 4, shadows bit in SSP1MSKbits
8751 #define SSP1MSK5 SSP1MSKbits.SSP1MSK5 // bit 5, shadows bit in SSP1MSKbits
8752 #define MSK5 SSP1MSKbits.MSK5 // bit 5, shadows bit in SSP1MSKbits
8753 #define SSP1MSK6 SSP1MSKbits.SSP1MSK6 // bit 6, shadows bit in SSP1MSKbits
8754 #define MSK6 SSP1MSKbits.MSK6 // bit 6, shadows bit in SSP1MSKbits
8755 #define SSP1MSK7 SSP1MSKbits.SSP1MSK7 // bit 7, shadows bit in SSP1MSKbits
8756 #define MSK7 SSP1MSKbits.MSK7 // bit 7, shadows bit in SSP1MSKbits
8758 #define BF SSP1STATbits.BF // bit 0
8759 #define UA SSP1STATbits.UA // bit 1
8760 #define R_NOT_W SSP1STATbits.R_NOT_W // bit 2
8761 #define S SSP1STATbits.S // bit 3
8762 #define P SSP1STATbits.P // bit 4
8763 #define D_NOT_A SSP1STATbits.D_NOT_A // bit 5
8764 #define CKE SSP1STATbits.CKE // bit 6
8765 #define SMP SSP1STATbits.SMP // bit 7
8767 #define C STATUSbits.C // bit 0
8768 #define DC STATUSbits.DC // bit 1
8769 #define Z STATUSbits.Z // bit 2
8770 #define NOT_PD STATUSbits.NOT_PD // bit 3
8771 #define NOT_TO STATUSbits.NOT_TO // bit 4
8773 #define C_SHAD STATUS_SHADbits.C_SHAD // bit 0
8774 #define DC_SHAD STATUS_SHADbits.DC_SHAD // bit 1
8775 #define Z_SHAD STATUS_SHADbits.Z_SHAD // bit 2
8777 #define TMR1ON T1CONbits.TMR1ON // bit 0
8778 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
8779 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
8780 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
8781 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
8782 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
8783 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
8785 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
8786 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
8787 #define T1GVAL T1GCONbits.T1GVAL // bit 2
8788 #define T1GGO T1GCONbits.T1GGO // bit 3
8789 #define T1GSPM T1GCONbits.T1GSPM // bit 4
8790 #define T1GTM T1GCONbits.T1GTM // bit 5
8791 #define T1GPOL T1GCONbits.T1GPOL // bit 6
8792 #define TMR1GE T1GCONbits.TMR1GE // bit 7
8794 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
8795 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
8796 #define TMR2ON T2CONbits.TMR2ON // bit 2
8797 #define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
8798 #define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
8799 #define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
8800 #define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
8802 #define TRISA0 TRISAbits.TRISA0 // bit 0
8803 #define TRISA1 TRISAbits.TRISA1 // bit 1
8804 #define TRISA2 TRISAbits.TRISA2 // bit 2
8805 #define TRISA3 TRISAbits.TRISA3 // bit 3
8806 #define TRISA4 TRISAbits.TRISA4 // bit 4
8807 #define TRISA5 TRISAbits.TRISA5 // bit 5
8808 #define TRISA6 TRISAbits.TRISA6 // bit 6
8809 #define TRISA7 TRISAbits.TRISA7 // bit 7
8811 #define TRISB0 TRISBbits.TRISB0 // bit 0
8812 #define TRISB1 TRISBbits.TRISB1 // bit 1
8813 #define TRISB2 TRISBbits.TRISB2 // bit 2
8814 #define TRISB3 TRISBbits.TRISB3 // bit 3
8815 #define TRISB4 TRISBbits.TRISB4 // bit 4
8816 #define TRISB5 TRISBbits.TRISB5 // bit 5
8817 #define TRISB6 TRISBbits.TRISB6 // bit 6
8818 #define TRISB7 TRISBbits.TRISB7 // bit 7
8820 #define TRISC0 TRISCbits.TRISC0 // bit 0
8821 #define TRISC1 TRISCbits.TRISC1 // bit 1
8822 #define TRISC2 TRISCbits.TRISC2 // bit 2
8823 #define TRISC3 TRISCbits.TRISC3 // bit 3
8824 #define TRISC4 TRISCbits.TRISC4 // bit 4
8825 #define TRISC5 TRISCbits.TRISC5 // bit 5
8826 #define TRISC6 TRISCbits.TRISC6 // bit 6
8827 #define TRISC7 TRISCbits.TRISC7 // bit 7
8829 #define TRISE3 TRISEbits.TRISE3 // bit 3
8831 #define TX9D TX1STAbits.TX9D // bit 0
8832 #define TRMT TX1STAbits.TRMT // bit 1
8833 #define BRGH TX1STAbits.BRGH // bit 2
8834 #define SENDB TX1STAbits.SENDB // bit 3
8835 #define SYNC TX1STAbits.SYNC // bit 4
8836 #define TXEN TX1STAbits.TXEN // bit 5
8837 #define TX9 TX1STAbits.TX9 // bit 6
8838 #define CSRC TX1STAbits.CSRC // bit 7
8840 #define VREGPM VREGCONbits.VREGPM // bit 1
8842 #define SWDTEN WDTCONbits.SWDTEN // bit 0
8843 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
8844 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
8845 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
8846 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
8847 #define WDTPS4 WDTCONbits.WDTPS4 // bit 5
8849 #define WPUA0 WPUAbits.WPUA0 // bit 0
8850 #define WPUA1 WPUAbits.WPUA1 // bit 1
8851 #define WPUA2 WPUAbits.WPUA2 // bit 2
8852 #define WPUA3 WPUAbits.WPUA3 // bit 3
8853 #define WPUA4 WPUAbits.WPUA4 // bit 4
8854 #define WPUA5 WPUAbits.WPUA5 // bit 5
8855 #define WPUA6 WPUAbits.WPUA6 // bit 6
8856 #define WPUA7 WPUAbits.WPUA7 // bit 7
8858 #define WPUB0 WPUBbits.WPUB0 // bit 0
8859 #define WPUB1 WPUBbits.WPUB1 // bit 1
8860 #define WPUB2 WPUBbits.WPUB2 // bit 2
8861 #define WPUB3 WPUBbits.WPUB3 // bit 3
8862 #define WPUB4 WPUBbits.WPUB4 // bit 4
8863 #define WPUB5 WPUBbits.WPUB5 // bit 5
8864 #define WPUB6 WPUBbits.WPUB6 // bit 6
8865 #define WPUB7 WPUBbits.WPUB7 // bit 7
8867 #define WPUC0 WPUCbits.WPUC0 // bit 0
8868 #define WPUC1 WPUCbits.WPUC1 // bit 1
8869 #define WPUC2 WPUCbits.WPUC2 // bit 2
8870 #define WPUC3 WPUCbits.WPUC3 // bit 3
8871 #define WPUC4 WPUCbits.WPUC4 // bit 4
8872 #define WPUC5 WPUCbits.WPUC5 // bit 5
8873 #define WPUC6 WPUCbits.WPUC6 // bit 6
8874 #define WPUC7 WPUCbits.WPUC7 // bit 7
8876 #define WPUE3 WPUEbits.WPUE3 // bit 3
8878 #endif // #ifndef NO_BIT_DEFINES
8880 #endif // #ifndef __PIC16F1786_H__