3 * pic18f8680.c - PIC18F8680 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 <pic18f8680.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 __PORTHbits_t at 0xf87 PORTHbits;
217 volatile __PORTJbits_t at 0xf88 PORTJbits;
220 volatile __LATAbits_t at 0xf89 LATAbits;
223 volatile __LATBbits_t at 0xf8a LATBbits;
226 volatile __LATCbits_t at 0xf8b LATCbits;
229 volatile __LATDbits_t at 0xf8c LATDbits;
232 volatile __LATEbits_t at 0xf8d LATEbits;
235 volatile __LATFbits_t at 0xf8e LATFbits;
238 volatile __LATGbits_t at 0xf8f LATGbits;
241 volatile __LATHbits_t at 0xf90 LATHbits;
244 volatile __LATJbits_t at 0xf91 LATJbits;
247 volatile __TRISAbits_t at 0xf92 TRISAbits;
250 volatile __TRISBbits_t at 0xf93 TRISBbits;
253 volatile __TRISCbits_t at 0xf94 TRISCbits;
256 volatile __TRISDbits_t at 0xf95 TRISDbits;
259 volatile __TRISEbits_t at 0xf96 TRISEbits;
262 volatile __TRISFbits_t at 0xf97 TRISFbits;
265 volatile __TRISGbits_t at 0xf98 TRISGbits;
268 volatile __TRISHbits_t at 0xf99 TRISHbits;
271 volatile __TRISJbits_t at 0xf9a TRISJbits;
274 volatile __MEMCONbits_t at 0xf9c MEMCONbits;
277 volatile __PIE1bits_t at 0xf9d PIE1bits;
280 volatile __PIR1bits_t at 0xf9e PIR1bits;
283 volatile __IPR1bits_t at 0xf9f IPR1bits;
286 volatile __PIE2bits_t at 0xfa0 PIE2bits;
289 volatile __PIR2bits_t at 0xfa1 PIR2bits;
292 volatile __IPR2bits_t at 0xfa2 IPR2bits;
295 volatile __PIE3bits_t at 0xfa3 PIE3bits;
298 volatile __PIR3bits_t at 0xfa4 PIR3bits;
301 volatile __IPR3bits_t at 0xfa5 IPR3bits;
304 volatile __EECON1bits_t at 0xfa6 EECON1bits;
311 volatile __RCSTAbits_t at 0xfab RCSTAbits;
314 volatile __TXSTAbits_t at 0xfac TXSTAbits;
320 volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
323 volatile __T3CONbits_t at 0xfb1 T3CONbits;
328 volatile __CMCONbits_t at 0xfb4 CMCONbits;
331 volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
334 volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
336 sfr at 0xfb7 ECCP1DEL;
337 volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
339 sfr at 0xfba ECCP1CON;
340 volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
342 sfr at 0xfba CCP2CON;
343 volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
345 sfr at 0xfbb ECCPR1L;
347 sfr at 0xfbc ECCPR1H;
350 volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
353 volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
356 volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
360 sfr at 0xfc5 SSPCON2;
361 volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
363 sfr at 0xfc6 SSPCON1;
364 volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
366 sfr at 0xfc7 SSPSTAT;
367 volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
372 volatile __T2CONbits_t at 0xfca T2CONbits;
377 volatile __T1CONbits_t at 0xfcd T1CONbits;
382 volatile __RCONbits_t at 0xfd0 RCONbits;
385 volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
388 volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
391 volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
397 volatile __STATUSbits_t at 0xfd8 STATUSbits;
402 sfr at 0xfdc PREINC2;
403 sfr at 0xfdd POSTDEC2;
404 sfr at 0xfde POSTINC2;
410 sfr at 0xfe4 PREINC1;
411 sfr at 0xfe5 POSTDEC1;
412 sfr at 0xfe6 POSTINC1;
418 sfr at 0xfec PREINC0;
419 sfr at 0xfed POSTDEC0;
420 sfr at 0xfee POSTINC0;
422 sfr at 0xff0 INTCON3;
423 volatile __INTCON3bits_t at 0xff0 INTCON3bits;
425 sfr at 0xff1 INTCON2;
426 volatile __INTCON2bits_t at 0xff1 INTCON2bits;
429 volatile __INTCONbits_t at 0xff2 INTCONbits;
434 sfr at 0xff6 TBLPTRL;
435 sfr at 0xff7 TBLPTRH;
436 sfr at 0xff8 TBLPTRU;
441 volatile __STKPTRbits_t at 0xffc STKPTRbits;