
/*
 * pic18f248.c - PIC18F248 Device Library Source
 *
 * This file is part of the GNU PIC Library.
 *
 * January, 2004
 * The GNU PIC Library is maintained by,
 * 	Vangelis Rokas <vrokas@otenet.gr>
 *
 * $Id: pic18f248.c 4906 2007-09-03 09:17:13Z tecodev $
 *
 */

#include <pic18f248.h>

__sfr __at (0xf00) RXF0SIDH;
volatile __RXF0SIDHbits_t __at (0xf00) RXF0SIDHbits;

__sfr __at (0xf01) RXF0SIDL;
volatile __RXF0SIDLbits_t __at (0xf01) RXF0SIDLbits;

__sfr __at (0xf02) RXF0EIDH;
volatile __RXF0EIDHbits_t __at (0xf02) RXF0EIDHbits;

__sfr __at (0xf03) RXF0EIDL;
volatile __RXF0EIDLbits_t __at (0xf03) RXF0EIDLbits;

__sfr __at (0xf04) RXF1SIDH;
volatile __RXF1SIDHbits_t __at (0xf04) RXF1SIDHbits;

__sfr __at (0xf05) RXF1SIDL;
volatile __RXF1SIDLbits_t __at (0xf05) RXF1SIDLbits;

__sfr __at (0xf06) RXF1EIDH;
volatile __RXF1EIDHbits_t __at (0xf06) RXF1EIDHbits;

__sfr __at (0xf07) RXF1EIDL;
volatile __RXF1EIDLbits_t __at (0xf07) RXF1EIDLbits;

__sfr __at (0xf08) RXF2SIDH;
volatile __RXF2SIDHbits_t __at (0xf08) RXF2SIDHbits;

__sfr __at (0xf09) RXF2SIDL;
volatile __RXF2SIDLbits_t __at (0xf09) RXF2SIDLbits;

__sfr __at (0xf0a) RXF2EIDH;
volatile __RXF2EIDHbits_t __at (0xf0a) RXF2EIDHbits;

__sfr __at (0xf0b) RXF2EIDL;
volatile __RXF2EIDLbits_t __at (0xf0b) RXF2EIDLbits;

__sfr __at (0xf0c) RXF3SIDH;
volatile __RXF3SIDHbits_t __at (0xf0c) RXF3SIDHbits;

__sfr __at (0xf0d) RXF3SIDL;
volatile __RXF3SIDLbits_t __at (0xf0d) RXF3SIDLbits;

__sfr __at (0xf0e) RXF3EIDH;
volatile __RXF3EIDHbits_t __at (0xf0e) RXF3EIDHbits;

__sfr __at (0xf0f) RXF3EIDL;
volatile __RXF3EIDLbits_t __at (0xf0f) RXF3EIDLbits;

__sfr __at (0xf10) RXF4SIDH;
volatile __RXF4SIDHbits_t __at (0xf10) RXF4SIDHbits;

__sfr __at (0xf11) RXF4SIDL;
volatile __RXF4SIDLbits_t __at (0xf11) RXF4SIDLbits;

__sfr __at (0xf12) RXF4EIDH;
volatile __RXF4EIDHbits_t __at (0xf12) RXF4EIDHbits;

__sfr __at (0xf13) RXF4EIDL;
volatile __RXF4EIDLbits_t __at (0xf13) RXF4EIDLbits;

__sfr __at (0xf14) RXF5SIDH;
volatile __RXF5SIDHbits_t __at (0xf14) RXF5SIDHbits;

__sfr __at (0xf15) RXF5SIDL;
volatile __RXF5SIDLbits_t __at (0xf15) RXF5SIDLbits;

__sfr __at (0xf16) RXF5EIDH;
volatile __RXF5EIDHbits_t __at (0xf16) RXF5EIDHbits;

__sfr __at (0xf17) RXF5EIDL;
volatile __RXF5EIDLbits_t __at (0xf17) RXF5EIDLbits;

__sfr __at (0xf18) RXM0SIDH;
volatile __RXM0SIDHbits_t __at (0xf18) RXM0SIDHbits;

__sfr __at (0xf19) RXM0SIDL;
volatile __RXM0SIDLbits_t __at (0xf19) RXM0SIDLbits;

__sfr __at (0xf1a) RXM0EIDH;
volatile __RXM0EIDHbits_t __at (0xf1a) RXM0EIDHbits;

__sfr __at (0xf1b) RXM0EIDL;
volatile __RXM0EIDLbits_t __at (0xf1b) RXM0EIDLbits;

__sfr __at (0xf1c) RXM1SIDH;
volatile __RXM1SIDHbits_t __at (0xf1c) RXM1SIDHbits;

__sfr __at (0xf1d) RXM1SIDL;
volatile __RXM1SIDLbits_t __at (0xf1d) RXM1SIDLbits;

__sfr __at (0xf1e) RXM1EIDH;
volatile __RXM1EIDHbits_t __at (0xf1e) RXM1EIDHbits;

__sfr __at (0xf1f) RXM1EIDL;
volatile __RXM1EIDLbits_t __at (0xf1f) RXM1EIDLbits;

__sfr __at (0xf20) TXB2CON;
volatile __TXB2CONbits_t __at (0xf20) TXB2CONbits;

__sfr __at (0xf21) TXB2SIDH;
volatile __TXB2SIDHbits_t __at (0xf21) TXB2SIDHbits;

__sfr __at (0xf22) TXB2SIDL;
volatile __TXB2SIDLbits_t __at (0xf22) TXB2SIDLbits;

__sfr __at (0xf23) TXB2EIDH;
volatile __TXB2EIDHbits_t __at (0xf23) TXB2EIDHbits;

__sfr __at (0xf24) TXB2EIDL;
volatile __TXB2EIDLbits_t __at (0xf24) TXB2EIDLbits;

__sfr __at (0xf25) TXB2DLC;
volatile __TXB2DLCbits_t __at (0xf25) TXB2DLCbits;

__sfr __at (0xf26) TXB2D0;
volatile __TXB2D0bits_t __at (0xf26) TXB2D0bits;

__sfr __at (0xf27) TXB2D1;
volatile __TXB2D1bits_t __at (0xf27) TXB2D1bits;

__sfr __at (0xf28) TXB2D2;
volatile __TXB2D2bits_t __at (0xf28) TXB2D2bits;

__sfr __at (0xf29) TXB2D3;
volatile __TXB2D3bits_t __at (0xf29) TXB2D3bits;

__sfr __at (0xf2a) TXB2D4;
volatile __TXB2D4bits_t __at (0xf2a) TXB2D4bits;

__sfr __at (0xf2b) TXB2D5;
volatile __TXB2D5bits_t __at (0xf2b) TXB2D5bits;

__sfr __at (0xf2c) TXB2D6;
volatile __TXB2D6bits_t __at (0xf2c) TXB2D6bits;

__sfr __at (0xf2d) TXB2D7;
volatile __TXB2D7bits_t __at (0xf2d) TXB2D7bits;

__sfr __at (0xf2e) CANSTATRO4;
volatile __CANSTATRO4bits_t __at (0xf2e) CANSTATRO4bits;

__sfr __at (0xf30) TXB1CON;
volatile __TXB1CONbits_t __at (0xf30) TXB1CONbits;

__sfr __at (0xf31) TXB1SIDH;
volatile __TXB1SIDHbits_t __at (0xf31) TXB1SIDHbits;

__sfr __at (0xf32) TXB1SIDL;
volatile __TXB1SIDLbits_t __at (0xf32) TXB1SIDLbits;

__sfr __at (0xf33) TXB1EIDH;
volatile __TXB1EIDHbits_t __at (0xf33) TXB1EIDHbits;

__sfr __at (0xf34) TXB1EIDL;
volatile __TXB1EIDLbits_t __at (0xf34) TXB1EIDLbits;

__sfr __at (0xf35) TXB1DLC;
volatile __TXB1DLCbits_t __at (0xf35) TXB1DLCbits;

__sfr __at (0xf36) TXB1D0;
volatile __TXB1D0bits_t __at (0xf36) TXB1D0bits;

__sfr __at (0xf37) TXB1D1;
volatile __TXB1D1bits_t __at (0xf37) TXB1D1bits;

__sfr __at (0xf38) TXB1D2;
volatile __TXB1D2bits_t __at (0xf38) TXB1D2bits;

__sfr __at (0xf39) TXB1D3;
volatile __TXB1D3bits_t __at (0xf39) TXB1D3bits;

__sfr __at (0xf3a) TXB1D4;
volatile __TXB1D4bits_t __at (0xf3a) TXB1D4bits;

__sfr __at (0xf3b) TXB1D5;
volatile __TXB1D5bits_t __at (0xf3b) TXB1D5bits;

__sfr __at (0xf3c) TXB1D6;
volatile __TXB1D6bits_t __at (0xf3c) TXB1D6bits;

__sfr __at (0xf3d) TXB1D7;
volatile __TXB1D7bits_t __at (0xf3d) TXB1D7bits;

__sfr __at (0xf3e) CANSTATRO3;
volatile __CANSTATRO3bits_t __at (0xf3e) CANSTATRO3bits;

__sfr __at (0xf40) TXB0CON;
volatile __TXB0CONbits_t __at (0xf40) TXB0CONbits;

__sfr __at (0xf41) TXB0SIDH;
volatile __TXB0SIDHbits_t __at (0xf41) TXB0SIDHbits;

__sfr __at (0xf42) TXB0SIDL;
volatile __TXB0SIDLbits_t __at (0xf42) TXB0SIDLbits;

__sfr __at (0xf43) TXB0EIDH;
volatile __TXB0EIDHbits_t __at (0xf43) TXB0EIDHbits;

__sfr __at (0xf44) TXB0EIDL;
volatile __TXB0EIDLbits_t __at (0xf44) TXB0EIDLbits;

__sfr __at (0xf45) TXB0DLC;
volatile __TXB0DLCbits_t __at (0xf45) TXB0DLCbits;

__sfr __at (0xf46) TXB0D0;
volatile __TXB0D0bits_t __at (0xf46) TXB0D0bits;

__sfr __at (0xf47) TXB0D1;
volatile __TXB0D1bits_t __at (0xf47) TXB0D1bits;

__sfr __at (0xf48) TXB0D2;
volatile __TXB0D2bits_t __at (0xf48) TXB0D2bits;

__sfr __at (0xf49) TXB0D3;
volatile __TXB0D3bits_t __at (0xf49) TXB0D3bits;

__sfr __at (0xf4a) TXB0D4;
volatile __TXB0D4bits_t __at (0xf4a) TXB0D4bits;

__sfr __at (0xf4b) TXB0D5;
volatile __TXB0D5bits_t __at (0xf4b) TXB0D5bits;

__sfr __at (0xf4c) TXB0D6;
volatile __TXB0D6bits_t __at (0xf4c) TXB0D6bits;

__sfr __at (0xf4d) TXB0D7;
volatile __TXB0D7bits_t __at (0xf4d) TXB0D7bits;

__sfr __at (0xf4e) CANSTATRO2;
volatile __CANSTATRO2bits_t __at (0xf4e) CANSTATRO2bits;

__sfr __at (0xf50) RXB1CON;
volatile __RXB1CONbits_t __at (0xf50) RXB1CONbits;

__sfr __at (0xf51) RXB1SIDH;
volatile __RXB1SIDHbits_t __at (0xf51) RXB1SIDHbits;

__sfr __at (0xf52) RXB1SIDL;
volatile __RXB1SIDLbits_t __at (0xf52) RXB1SIDLbits;

__sfr __at (0xf53) RXB1EIDH;
volatile __RXB1EIDHbits_t __at (0xf53) RXB1EIDHbits;

__sfr __at (0xf54) RXB1EIDL;
volatile __RXB1EIDLbits_t __at (0xf54) RXB1EIDLbits;

__sfr __at (0xf55) RXB1DLC;
volatile __RXB1DLCbits_t __at (0xf55) RXB1DLCbits;

__sfr __at (0xf56) RXB1D0;
volatile __RXB1D0bits_t __at (0xf56) RXB1D0bits;

__sfr __at (0xf57) RXB1D1;
volatile __RXB1D1bits_t __at (0xf57) RXB1D1bits;

__sfr __at (0xf58) RXB1D2;
volatile __RXB1D2bits_t __at (0xf58) RXB1D2bits;

__sfr __at (0xf59) RXB1D3;
volatile __RXB1D3bits_t __at (0xf59) RXB1D3bits;

__sfr __at (0xf5a) RXB1D4;
volatile __RXB1D4bits_t __at (0xf5a) RXB1D4bits;

__sfr __at (0xf5b) RXB1D5;
volatile __RXB1D5bits_t __at (0xf5b) RXB1D5bits;

__sfr __at (0xf5c) RXB1D6;
volatile __RXB1D6bits_t __at (0xf5c) RXB1D6bits;

__sfr __at (0xf5d) RXB1D7;
volatile __RXB1D7bits_t __at (0xf5d) RXB1D7bits;

__sfr __at (0xf5e) CANSTATRO1;
volatile __CANSTATRO1bits_t __at (0xf5e) CANSTATRO1bits;

__sfr __at (0xf60) RXB0CON;
volatile __RXB0CONbits_t __at (0xf60) RXB0CONbits;

__sfr __at (0xf61) RXB0SIDH;
volatile __RXB0SIDHbits_t __at (0xf61) RXB0SIDHbits;

__sfr __at (0xf62) RXB0SIDL;
volatile __RXB0SIDLbits_t __at (0xf62) RXB0SIDLbits;

__sfr __at (0xf63) RXB0EIDH;
volatile __RXB0EIDHbits_t __at (0xf63) RXB0EIDHbits;

__sfr __at (0xf64) RXB0EIDL;
volatile __RXB0EIDLbits_t __at (0xf64) RXB0EIDLbits;

__sfr __at (0xf65) RXB0DLC;
volatile __RXB0DLCbits_t __at (0xf65) RXB0DLCbits;

__sfr __at (0xf66) RXB0D0;
__sfr __at (0xf67) RXB0D1;
__sfr __at (0xf68) RXB0D2;
__sfr __at (0xf69) RXB0D3;
__sfr __at (0xf6a) RXB0D4;
__sfr __at (0xf6b) RXB0D5;
__sfr __at (0xf6c) RXB0D6;
__sfr __at (0xf6d) RXB0D7;
__sfr __at (0xf6e) CANSTAT;
volatile __CANSTATbits_t __at (0xf6e) CANSTATbits;

__sfr __at (0xf6f) CANCON;
volatile __CANCONbits_t __at (0xf6f) CANCONbits;

__sfr __at (0xf70) BRGCON1;
volatile __BRGCON1bits_t __at (0xf70) BRGCON1bits;

__sfr __at (0xf71) BRGCON2;
volatile __BRGCON2bits_t __at (0xf71) BRGCON2bits;

__sfr __at (0xf72) BRGCON3;
volatile __BRGCON3bits_t __at (0xf72) BRGCON3bits;

__sfr __at (0xf73) CIOCON;
volatile __CIOCONbits_t __at (0xf73) CIOCONbits;

__sfr __at (0xf74) COMSTAT;
volatile __COMSTATbits_t __at (0xf74) COMSTATbits;

__sfr __at (0xf75) RXERRCNT;
volatile __RXERRCNTbits_t __at (0xf75) RXERRCNTbits;

__sfr __at (0xf76) TXERRCNT;
volatile __TXERRCNTbits_t __at (0xf76) TXERRCNTbits;

__sfr __at (0xf80) PORTA;
volatile __PORTAbits_t __at (0xf80) PORTAbits;

__sfr __at (0xf81) PORTB;
volatile __PORTBbits_t __at (0xf81) PORTBbits;

__sfr __at (0xf82) PORTC;
volatile __PORTCbits_t __at (0xf82) PORTCbits;

__sfr __at (0xf89) LATA;
volatile __LATAbits_t __at (0xf89) LATAbits;

__sfr __at (0xf8a) LATB;
volatile __LATBbits_t __at (0xf8a) LATBbits;

__sfr __at (0xf8b) LATC;
volatile __LATCbits_t __at (0xf8b) LATCbits;

__sfr __at (0xf92) TRISA;
volatile __TRISAbits_t __at (0xf92) TRISAbits;

__sfr __at (0xf93) TRISB;
volatile __TRISBbits_t __at (0xf93) TRISBbits;

__sfr __at (0xf94) TRISC;
volatile __TRISCbits_t __at (0xf94) TRISCbits;

__sfr __at (0xf9d) PIE1;
volatile __PIE1bits_t __at (0xf9d) PIE1bits;

__sfr __at (0xf9e) PIR1;
volatile __PIR1bits_t __at (0xf9e) PIR1bits;

__sfr __at (0xf9f) IPR1;
volatile __IPR1bits_t __at (0xf9f) IPR1bits;

__sfr __at (0xfa0) PIE2;
volatile __PIE2bits_t __at (0xfa0) PIE2bits;

__sfr __at (0xfa1) PIR2;
volatile __PIR2bits_t __at (0xfa1) PIR2bits;

__sfr __at (0xfa2) IPR2;
volatile __IPR2bits_t __at (0xfa2) IPR2bits;

__sfr __at (0xfa3) PIE3;
volatile __PIE3bits_t __at (0xfa3) PIE3bits;

__sfr __at (0xfa4) PIR3;
volatile __PIR3bits_t __at (0xfa4) PIR3bits;

__sfr __at (0xfa5) IPR3;
volatile __IPR3bits_t __at (0xfa5) IPR3bits;

__sfr __at (0xfa6) EECON1;
volatile __EECON1bits_t __at (0xfa6) EECON1bits;

__sfr __at (0xfa7) EECON2;
__sfr __at (0xfa8) EEDATA;
__sfr __at (0xfa9) EEADR;
__sfr __at (0xfab) RCSTA;
volatile __RCSTAbits_t __at (0xfab) RCSTAbits;

__sfr __at (0xfac) TXSTA;
volatile __TXSTAbits_t __at (0xfac) TXSTAbits;

__sfr __at (0xfad) TXREG;
__sfr __at (0xfae) RCREG;
__sfr __at (0xfaf) SPBRG;
__sfr __at (0xfb1) T3CON;
volatile __T3CONbits_t __at (0xfb1) T3CONbits;

__sfr __at (0xfb2) TMR3L;
__sfr __at (0xfb3) TMR3H;
__sfr __at (0xfbd) CCP1CON;
volatile __CCP1CONbits_t __at (0xfbd) CCP1CONbits;

__sfr __at (0xfbe) CCPR1L;
__sfr __at (0xfbf) CCPR1H;
__sfr __at (0xfc1) ADCON1;
volatile __ADCON1bits_t __at (0xfc1) ADCON1bits;

__sfr __at (0xfc2) ADCON0;
volatile __ADCON0bits_t __at (0xfc2) ADCON0bits;

__sfr __at (0xfc3) ADRESL;
__sfr __at (0xfc4) ADRESH;
__sfr __at (0xfc5) SSPCON2;
volatile __SSPCON2bits_t __at (0xfc5) SSPCON2bits;

__sfr __at (0xfc6) SSPCON1;
volatile __SSPCON1bits_t __at (0xfc6) SSPCON1bits;

__sfr __at (0xfc7) SSPSTAT;
volatile __SSPSTATbits_t __at (0xfc7) SSPSTATbits;

__sfr __at (0xfc8) SSPADD;
__sfr __at (0xfc9) SSPBUF;
__sfr __at (0xfca) T2CON;
volatile __T2CONbits_t __at (0xfca) T2CONbits;

__sfr __at (0xfcb) PR2;
__sfr __at (0xfcc) TMR2;
__sfr __at (0xfcd) T1CON;
volatile __T1CONbits_t __at (0xfcd) T1CONbits;

__sfr __at (0xfce) TMR1L;
__sfr __at (0xfcf) TMR1H;
__sfr __at (0xfd0) RCON;
volatile __RCONbits_t __at (0xfd0) RCONbits;

__sfr __at (0xfd1) WDTCON;
volatile __WDTCONbits_t __at (0xfd1) WDTCONbits;

__sfr __at (0xfd2) LVDCON;
volatile __LVDCONbits_t __at (0xfd2) LVDCONbits;

__sfr __at (0xfd3) OSCCON;
volatile __OSCCONbits_t __at (0xfd3) OSCCONbits;

__sfr __at (0xfd5) T0CON;
volatile __T0CONbits_t __at (0xfd5) T0CONbits;

__sfr __at (0xfd6) TMR0L;
__sfr __at (0xfd7) TMR0H;
__sfr __at (0xfd8) STATUS;
volatile __STATUSbits_t __at (0xfd8) STATUSbits;

__sfr __at (0xfd9) FSR2L;
__sfr __at (0xfda) FSR2H;
__sfr __at (0xfdb) PLUSW2;
__sfr __at (0xfdc) PREINC2;
__sfr __at (0xfdd) POSTDEC2;
__sfr __at (0xfde) POSTINC2;
__sfr __at (0xfdf) INDF2;
__sfr __at (0xfe0) BSR;
__sfr __at (0xfe1) FSR1L;
__sfr __at (0xfe2) FSR1H;
__sfr __at (0xfe3) PLUSW1;
__sfr __at (0xfe4) PREINC1;
__sfr __at (0xfe5) POSTDEC1;
__sfr __at (0xfe6) POSTINC1;
__sfr __at (0xfe7) INDF1;
__sfr __at (0xfe8) WREG;
__sfr __at (0xfe9) FSR0L;
__sfr __at (0xfea) FSR0H;
__sfr __at (0xfeb) PLUSW0;
__sfr __at (0xfec) PREINC0;
__sfr __at (0xfed) POSTDEC0;
__sfr __at (0xfee) POSTINC0;
__sfr __at (0xfef) INDF0;
__sfr __at (0xff0) INTCON3;
volatile __INTCON3bits_t __at (0xff0) INTCON3bits;

__sfr __at (0xff1) INTCON2;
volatile __INTCON2bits_t __at (0xff1) INTCON2bits;

__sfr __at (0xff2) INTCON;
volatile __INTCONbits_t __at (0xff2) INTCONbits;

__sfr __at (0xff3) PRODL;
__sfr __at (0xff4) PRODH;
__sfr __at (0xff5) TABLAT;
__sfr __at (0xff6) TBLPTRL;
__sfr __at (0xff7) TBLPTRH;
__sfr __at (0xff8) TBLPTRU;
__sfr __at (0xff9) PCL;
__sfr __at (0xffa) PCLATH;
__sfr __at (0xffb) PCLATU;
__sfr __at (0xffc) STKPTR;
volatile __STKPTRbits_t __at (0xffc) STKPTRbits;

__sfr __at (0xffd) TOSL;
__sfr __at (0xffe) TOSH;
__sfr __at (0xfff) TOSU;


