3 * pic18f6680.c - PIC18F6680 Device Library Source
5 * This file is part of the GNU PIC Library.
8 * The GNU PIC Library is maintained by,
9 * Vangelis Rokas <vrokas@otenet.gr>
15 #include <pic18f6680.h>
17 sfr at 0xf00 RXF0SIDH;
18 sfr at 0xf01 RXF0SIDL;
19 volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
21 sfr at 0xf02 RXF0EIDH;
22 sfr at 0xf03 RXF0EIDL;
23 sfr at 0xf04 RXF1SIDH;
24 sfr at 0xf05 RXF1SIDL;
25 volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
27 sfr at 0xf06 RXF1EIDH;
28 sfr at 0xf07 RXF1EIDL;
29 sfr at 0xf08 RXF2SIDH;
30 sfr at 0xf09 RXF2SIDL;
31 sfr at 0xf0a RXF2EIDH;
32 sfr at 0xf0b RXF2EIDL;
33 volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
35 sfr at 0xf0c RXF3SIDH;
36 sfr at 0xf0d RXF3SIDL;
37 volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
39 sfr at 0xf0e RXF3EIDH;
40 sfr at 0xf0f RXF3EIDL;
41 sfr at 0xf10 RXF4SIDH;
42 sfr at 0xf11 RXF4SIDL;
43 volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
45 sfr at 0xf12 RXF4EIDH;
46 sfr at 0xf13 RXF4EIDL;
47 sfr at 0xf14 RXF5SIDH;
48 sfr at 0xf15 RXF5SIDL;
49 volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
51 sfr at 0xf16 RXF5EIDH;
52 sfr at 0xf17 RXF5EIDL;
53 sfr at 0xf18 RXM0SIDH;
54 sfr at 0xf19 RXM0SIDL;
55 volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
57 sfr at 0xf1a RXM0EIDH;
58 sfr at 0xf1b RXM0EIDL;
59 sfr at 0xf1c RXM1SIDH;
60 sfr at 0xf1d RXM1SIDL;
61 volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
63 sfr at 0xf1e RXM1EIDH;
64 sfr at 0xf1f RXM1EIDL;
66 volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
68 sfr at 0xf21 TXB2SIDH;
69 sfr at 0xf22 TXB2SIDL;
70 volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
72 sfr at 0xf23 TXB2EIDH;
73 sfr at 0xf24 TXB2EIDL;
75 volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
85 sfr at 0xf2e CANSTATRO3;
87 volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
89 sfr at 0xf31 TXB1SIDH;
90 sfr at 0xf32 TXB1SIDL;
91 volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
93 sfr at 0xf33 TXB1EIDH;
94 sfr at 0xf34 TXB1EIDL;
96 volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
106 sfr at 0xf3e CANSTATRO2;
107 sfr at 0xf40 TXB0CON;
108 volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
110 sfr at 0xf41 TXB0SIDH;
111 sfr at 0xf42 TXB0SIDL;
112 sfr at 0xf43 TXB0EIDH;
113 sfr at 0xf44 TXB0EIDL;
114 sfr at 0xf45 TXB0DLC;
115 volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
125 sfr at 0xf4e CANSTATRO1;
126 sfr at 0xf50 RXB1CON;
127 volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
129 sfr at 0xf51 RXB1SIDH;
130 sfr at 0xf52 RXB1SIDL;
131 volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
133 sfr at 0xf53 RXB1EIDH;
134 sfr at 0xf54 RXB1EIDL;
135 sfr at 0xf55 RXB1DLC;
136 volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
146 sfr at 0xf5e CANSTATRO0;
147 sfr at 0xf60 RXB0CON;
148 volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
150 sfr at 0xf61 RXB0SIDH;
151 sfr at 0xf62 RXB0SIDL;
152 volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
154 sfr at 0xf63 RXB0EIDH;
155 sfr at 0xf64 RXB0EIDL;
156 sfr at 0xf65 RXB0DLC;
165 sfr at 0xf6e CANSTAT;
166 volatile __CANSTATbits_t at 0xf6e CANSTATbits;
169 volatile __CANCONbits_t at 0xf6f CANCONbits;
171 sfr at 0xf70 BRGCON1;
172 volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
174 sfr at 0xf71 BRGCON2;
175 volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
177 sfr at 0xf72 BRGCON3;
178 volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
181 volatile __CIOCONbits_t at 0xf73 CIOCONbits;
183 sfr at 0xf74 COMSTAT;
184 volatile __COMSTATbits_t at 0xf74 COMSTATbits;
186 sfr at 0xf75 RXERRCNT;
187 volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
189 sfr at 0xf76 TXERRCNT;
190 volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
193 volatile __PORTAbits_t at 0xf80 PORTAbits;
196 volatile __PORTBbits_t at 0xf81 PORTBbits;
199 volatile __PORTCbits_t at 0xf82 PORTCbits;
202 volatile __PORTDbits_t at 0xf83 PORTDbits;
205 volatile __PORTEbits_t at 0xf84 PORTEbits;
208 volatile __PORTFbits_t at 0xf85 PORTFbits;
211 volatile __PORTGbits_t at 0xf86 PORTGbits;
214 volatile __LATAbits_t at 0xf89 LATAbits;
217 volatile __LATBbits_t at 0xf8a LATBbits;
220 volatile __LATCbits_t at 0xf8b LATCbits;
223 volatile __LATDbits_t at 0xf8c LATDbits;
226 volatile __LATEbits_t at 0xf8d LATEbits;
229 volatile __LATFbits_t at 0xf8e LATFbits;
232 volatile __LATGbits_t at 0xf8f LATGbits;
235 volatile __TRISAbits_t at 0xf92 TRISAbits;
238 volatile __TRISBbits_t at 0xf93 TRISBbits;
241 volatile __TRISCbits_t at 0xf94 TRISCbits;
244 volatile __TRISDbits_t at 0xf95 TRISDbits;
247 volatile __TRISEbits_t at 0xf96 TRISEbits;
250 volatile __TRISFbits_t at 0xf97 TRISFbits;
253 volatile __TRISGbits_t at 0xf98 TRISGbits;
256 volatile __PIE1bits_t at 0xf9d PIE1bits;
259 volatile __PIR1bits_t at 0xf9e PIR1bits;
262 volatile __IPR1bits_t at 0xf9f IPR1bits;
265 volatile __PIE2bits_t at 0xfa0 PIE2bits;
268 volatile __PIR2bits_t at 0xfa1 PIR2bits;
271 volatile __IPR2bits_t at 0xfa2 IPR2bits;
274 volatile __PIE3bits_t at 0xfa3 PIE3bits;
277 volatile __PIR3bits_t at 0xfa4 PIR3bits;
280 volatile __IPR3bits_t at 0xfa5 IPR3bits;
283 volatile __EECON1bits_t at 0xfa6 EECON1bits;
290 volatile __RCSTAbits_t at 0xfab RCSTAbits;
293 volatile __TXSTAbits_t at 0xfac TXSTAbits;
299 volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
302 volatile __T3CONbits_t at 0xfb1 T3CONbits;
307 volatile __CMCONbits_t at 0xfb4 CMCONbits;
310 volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
313 volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
315 sfr at 0xfb7 ECCP1DEL;
316 volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
318 sfr at 0xfba ECCP1CON;
319 volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
321 sfr at 0xfba CCP2CON;
322 volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
324 sfr at 0xfbb ECCPR1L;
326 sfr at 0xfbc ECCPR1H;
329 volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
332 volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
335 volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
339 sfr at 0xfc5 SSPCON2;
340 volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
342 sfr at 0xfc6 SSPCON1;
343 volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
345 sfr at 0xfc7 SSPSTAT;
346 volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
351 volatile __T2CONbits_t at 0xfca T2CONbits;
356 volatile __T1CONbits_t at 0xfcd T1CONbits;
361 volatile __RCONbits_t at 0xfd0 RCONbits;
364 volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
367 volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
370 volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
376 volatile __STATUSbits_t at 0xfd8 STATUSbits;
381 sfr at 0xfdc PREINC2;
382 sfr at 0xfdd POSTDEC2;
383 sfr at 0xfde POSTINC2;
389 sfr at 0xfe4 PREINC1;
390 sfr at 0xfe5 POSTDEC1;
391 sfr at 0xfe6 POSTINC1;
397 sfr at 0xfec PREINC0;
398 sfr at 0xfed POSTDEC0;
399 sfr at 0xfee POSTINC0;
401 sfr at 0xff0 INTCON3;
402 volatile __INTCON3bits_t at 0xff0 INTCON3bits;
404 sfr at 0xff1 INTCON2;
405 volatile __INTCON2bits_t at 0xff1 INTCON2bits;
408 volatile __INTCONbits_t at 0xff2 INTCONbits;
413 sfr at 0xff6 TBLPTRL;
414 sfr at 0xff7 TBLPTRH;
415 sfr at 0xff8 TBLPTRU;
420 volatile __STKPTRbits_t at 0xffc STKPTRbits;