3 * pic18f458.c - PIC18F458 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 <pic18f458.h>
17 sfr at 0xf00 RXF0SIDH;
18 volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
20 sfr at 0xf01 RXF0SIDL;
21 volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
23 sfr at 0xf02 RXF0EIDH;
24 volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
26 sfr at 0xf03 RXF0EIDL;
27 volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
29 sfr at 0xf04 RXF1SIDH;
30 volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
32 sfr at 0xf05 RXF1SIDL;
33 volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
35 sfr at 0xf06 RXF1EIDH;
36 volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
38 sfr at 0xf07 RXF1EIDL;
39 volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
41 sfr at 0xf08 RXF2SIDH;
42 volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
44 sfr at 0xf09 RXF2SIDL;
45 volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
47 sfr at 0xf0a RXF2EIDH;
48 volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
50 sfr at 0xf0b RXF2EIDL;
51 volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
53 sfr at 0xf0c RXF3SIDH;
54 volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
56 sfr at 0xf0d RXF3SIDL;
57 volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
59 sfr at 0xf0e RXF3EIDH;
60 volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
62 sfr at 0xf0f RXF3EIDL;
63 volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
65 sfr at 0xf10 RXF4SIDH;
66 volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
68 sfr at 0xf11 RXF4SIDL;
69 volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
71 sfr at 0xf12 RXF4EIDH;
72 volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
74 sfr at 0xf13 RXF4EIDL;
75 volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
77 sfr at 0xf14 RXF5SIDH;
78 volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
80 sfr at 0xf15 RXF5SIDL;
81 volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
83 sfr at 0xf16 RXF5EIDH;
84 volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
86 sfr at 0xf17 RXF5EIDL;
87 volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
89 sfr at 0xf18 RXM0SIDH;
90 volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
92 sfr at 0xf19 RXM0SIDL;
93 volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
95 sfr at 0xf1a RXM0EIDH;
96 volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
98 sfr at 0xf1b RXM0EIDL;
99 volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
101 sfr at 0xf1c RXM1SIDH;
102 volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
104 sfr at 0xf1d RXM1SIDL;
105 volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
107 sfr at 0xf1e RXM1EIDH;
108 volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
110 sfr at 0xf1f RXM1EIDL;
111 volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
113 sfr at 0xf20 TXB2CON;
114 volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
116 sfr at 0xf21 TXB2SIDH;
117 volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
119 sfr at 0xf22 TXB2SIDL;
120 volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
122 sfr at 0xf23 TXB2EIDH;
123 volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
125 sfr at 0xf24 TXB2EIDL;
126 volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
128 sfr at 0xf25 TXB2DLC;
129 volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
132 volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
135 volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
138 volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
141 volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
144 volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
147 volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
150 volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
153 volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
155 sfr at 0xf2e CANSTATRO4;
156 volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
158 sfr at 0xf30 TXB1CON;
159 volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
161 sfr at 0xf31 TXB1SIDH;
162 volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
164 sfr at 0xf32 TXB1SIDL;
165 volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
167 sfr at 0xf33 TXB1EIDH;
168 volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
170 sfr at 0xf34 TXB1EIDL;
171 volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
173 sfr at 0xf35 TXB1DLC;
174 volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
177 volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
180 volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
183 volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
186 volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
189 volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
192 volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
195 volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
198 volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
200 sfr at 0xf3e CANSTATRO3;
201 volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
203 sfr at 0xf40 TXB0CON;
204 volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
206 sfr at 0xf41 TXB0SIDH;
207 volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
209 sfr at 0xf42 TXB0SIDL;
210 volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
212 sfr at 0xf43 TXB0EIDH;
213 volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
215 sfr at 0xf44 TXB0EIDL;
216 volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
218 sfr at 0xf45 TXB0DLC;
219 volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
222 volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
225 volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
228 volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
231 volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
234 volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
237 volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
240 volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
243 volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
245 sfr at 0xf4e CANSTATRO2;
246 volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
248 sfr at 0xf50 RXB1CON;
249 volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
251 sfr at 0xf51 RXB1SIDH;
252 volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
254 sfr at 0xf52 RXB1SIDL;
255 volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
257 sfr at 0xf53 RXB1EIDH;
258 volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
260 sfr at 0xf54 RXB1EIDL;
261 volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
263 sfr at 0xf55 RXB1DLC;
264 volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
267 volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
270 volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
273 volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
276 volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
279 volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
282 volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
285 volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
288 volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
290 sfr at 0xf5e CANSTATRO1;
291 volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
293 sfr at 0xf60 RXB0CON;
294 volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
296 sfr at 0xf61 RXB0SIDH;
297 volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
299 sfr at 0xf62 RXB0SIDL;
300 volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
302 sfr at 0xf63 RXB0EIDH;
303 volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
305 sfr at 0xf64 RXB0EIDL;
306 volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
308 sfr at 0xf65 RXB0DLC;
309 volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
319 sfr at 0xf6e CANSTAT;
320 volatile __CANSTATbits_t at 0xf6e CANSTATbits;
323 volatile __CANCONbits_t at 0xf6f CANCONbits;
325 sfr at 0xf70 BRGCON1;
326 volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
328 sfr at 0xf71 BRGCON2;
329 volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
331 sfr at 0xf72 BRGCON3;
332 volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
335 volatile __CIOCONbits_t at 0xf73 CIOCONbits;
337 sfr at 0xf74 COMSTAT;
338 volatile __COMSTATbits_t at 0xf74 COMSTATbits;
340 sfr at 0xf75 RXERRCNT;
341 volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
343 sfr at 0xf76 TXERRCNT;
344 volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
347 volatile __PORTAbits_t at 0xf80 PORTAbits;
350 volatile __PORTBbits_t at 0xf81 PORTBbits;
353 volatile __PORTCbits_t at 0xf82 PORTCbits;
356 volatile __PORTDbits_t at 0xf83 PORTDbits;
359 volatile __PORTEbits_t at 0xf84 PORTEbits;
362 volatile __LATAbits_t at 0xf89 LATAbits;
365 volatile __LATBbits_t at 0xf8a LATBbits;
368 volatile __LATCbits_t at 0xf8b LATCbits;
371 volatile __LATDbits_t at 0xf8c LATDbits;
374 volatile __LATEbits_t at 0xf8d LATEbits;
377 volatile __TRISAbits_t at 0xf92 TRISAbits;
380 volatile __TRISBbits_t at 0xf93 TRISBbits;
383 volatile __TRISCbits_t at 0xf94 TRISCbits;
386 volatile __TRISDbits_t at 0xf95 TRISDbits;
389 volatile __TRISEbits_t at 0xf96 TRISEbits;
392 volatile __PIE1bits_t at 0xf9d PIE1bits;
395 volatile __PIR1bits_t at 0xf9e PIR1bits;
398 volatile __IPR1bits_t at 0xf9f IPR1bits;
401 volatile __PIE2bits_t at 0xfa0 PIE2bits;
404 volatile __PIR2bits_t at 0xfa1 PIR2bits;
407 volatile __IPR2bits_t at 0xfa2 IPR2bits;
410 volatile __PIE3bits_t at 0xfa3 PIE3bits;
413 volatile __PIR3bits_t at 0xfa4 PIR3bits;
416 volatile __IPR3bits_t at 0xfa5 IPR3bits;
419 volatile __EECON1bits_t at 0xfa6 EECON1bits;
425 volatile __RCSTAbits_t at 0xfab RCSTAbits;
428 volatile __TXSTAbits_t at 0xfac TXSTAbits;
434 volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
437 volatile __T3CONbits_t at 0xfb1 T3CONbits;
442 volatile __CMCONbits_t at 0xfb4 CMCONbits;
445 volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
448 volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
450 sfr at 0xfb7 ECCP1DEL;
451 volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
453 sfr at 0xfba ECCP1CON;
454 volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
456 sfr at 0xfbb ECCPR1L;
457 sfr at 0xfbc ECCPR1H;
458 sfr at 0xfbd CCP1CON;
459 volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
464 volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
467 volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
471 sfr at 0xfc5 SSPCON2;
472 volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
474 sfr at 0xfc6 SSPCON1;
475 volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
477 sfr at 0xfc7 SSPSTAT;
478 volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
483 volatile __T2CONbits_t at 0xfca T2CONbits;
488 volatile __T1CONbits_t at 0xfcd T1CONbits;
493 volatile __RCONbits_t at 0xfd0 RCONbits;
496 volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
499 volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
502 volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
508 volatile __STATUSbits_t at 0xfd8 STATUSbits;
513 sfr at 0xfdc PREINC2;
514 sfr at 0xfdd POSTDEC2;
515 sfr at 0xfde POSTINC2;
521 sfr at 0xfe4 PREINC1;
522 sfr at 0xfe5 POSTDEC1;
523 sfr at 0xfe6 POSTINC1;
529 sfr at 0xfec PREINC0;
530 sfr at 0xfed POSTDEC0;
531 sfr at 0xfee POSTINC0;
533 sfr at 0xff0 INTCON3;
534 volatile __INTCON3bits_t at 0xff0 INTCON3bits;
536 sfr at 0xff1 INTCON2;
537 volatile __INTCON2bits_t at 0xff1 INTCON2bits;
540 volatile __INTCONbits_t at 0xff2 INTCONbits;
545 sfr at 0xff6 TBLPTRL;
546 sfr at 0xff7 TBLPTRH;
547 sfr at 0xff8 TBLPTRU;
552 volatile __STKPTRbits_t at 0xffc STKPTRbits;