3 * pic18f242.c - PIC18F242 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 <pic18f242.h>
18 volatile __PORTAbits_t at 0xf80 PORTAbits;
21 volatile __PORTBbits_t at 0xf81 PORTBbits;
24 volatile __PORTCbits_t at 0xf82 PORTCbits;
27 volatile __LATAbits_t at 0xf89 LATAbits;
30 volatile __LATBbits_t at 0xf8a LATBbits;
33 volatile __LATCbits_t at 0xf8b LATCbits;
36 volatile __TRISAbits_t at 0xf92 TRISAbits;
39 volatile __TRISBbits_t at 0xf93 TRISBbits;
42 volatile __TRISCbits_t at 0xf94 TRISCbits;
45 volatile __PIE1bits_t at 0xf9d PIE1bits;
48 volatile __PIR1bits_t at 0xf9e PIR1bits;
51 volatile __IPR1bits_t at 0xf9f IPR1bits;
54 volatile __PIE2bits_t at 0xfa0 PIE2bits;
57 volatile __PIR2bits_t at 0xfa1 PIR2bits;
60 volatile __IPR2bits_t at 0xfa2 IPR2bits;
63 volatile __EECON1bits_t at 0xfa6 EECON1bits;
69 volatile __RCSTAbits_t at 0xfab RCSTAbits;
72 volatile __TXSTAbits_t at 0xfac TXSTAbits;
78 volatile __T3CONbits_t at 0xfb1 T3CONbits;
83 volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
88 volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
93 volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
96 volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
100 sfr at 0xfc5 SSPCON2;
101 volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
103 sfr at 0xfc6 SSPCON1;
104 volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
106 sfr at 0xfc7 SSPSTAT;
107 volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
112 volatile __T2CONbits_t at 0xfca T2CONbits;
117 volatile __T1CONbits_t at 0xfcd T1CONbits;
122 volatile __RCONbits_t at 0xfd0 RCONbits;
125 volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
128 volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
131 volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
134 volatile __T0CONbits_t at 0xfd5 T0CONbits;
139 volatile __STATUSbits_t at 0xfd8 STATUSbits;
144 sfr at 0xfdc PREINC2;
145 sfr at 0xfdd POSTDEC2;
146 sfr at 0xfde POSTINC2;
152 sfr at 0xfe4 PREINC1;
153 sfr at 0xfe5 POSTDEC1;
154 sfr at 0xfe6 POSTINC1;
160 sfr at 0xfec PREINC0;
161 sfr at 0xfed POSTDEC0;
162 sfr at 0xfee POSTINC0;
164 sfr at 0xff0 INTCON3;
165 volatile __INTCON3bits_t at 0xff0 INTCON3bits;
167 sfr at 0xff1 INTCON2;
168 volatile __INTCON2bits_t at 0xff1 INTCON2bits;
171 volatile __INTCONbits_t at 0xff2 INTCONbits;
176 sfr at 0xff6 TBLPTRL;
177 sfr at 0xff7 TBLPTRH;
178 sfr at 0xff8 TBLPTRU;
183 volatile __STKPTRbits_t at 0xffc STKPTRbits;