2 * pic18f4450.c - device specific definitions
4 * This file is part of the GNU PIC library for SDCC,
5 * originally devised by Vangelis Rokas <vrokas AT otenet.gr>
7 * It has been automatically generated by inc2h-pic16.pl,
8 * (c) 2007 by Raphael Neider <rneider AT web.de>
11 #include <pic18f4450.h>
14 __sfr __at (0xF66) UFRM;
16 __sfr __at (0xF66) UFRML;
18 __sfr __at (0xF67) UFRMH;
20 __sfr __at (0xF68) UIR;
21 volatile __UIRbits_t __at (0xF68) UIRbits;
23 __sfr __at (0xF69) UIE;
24 volatile __UIEbits_t __at (0xF69) UIEbits;
26 __sfr __at (0xF6A) UEIR;
27 volatile __UEIRbits_t __at (0xF6A) UEIRbits;
29 __sfr __at (0xF6B) UEIE;
30 volatile __UEIEbits_t __at (0xF6B) UEIEbits;
32 __sfr __at (0xF6C) USTAT;
33 volatile __USTATbits_t __at (0xF6C) USTATbits;
35 __sfr __at (0xF6D) UCON;
36 volatile __UCONbits_t __at (0xF6D) UCONbits;
38 __sfr __at (0xF6E) UADDR;
39 volatile __UADDRbits_t __at (0xF6E) UADDRbits;
41 __sfr __at (0xF6F) UCFG;
42 volatile __UCFGbits_t __at (0xF6F) UCFGbits;
44 __sfr __at (0xF70) UEP0;
45 volatile __UEP0bits_t __at (0xF70) UEP0bits;
47 __sfr __at (0xF71) UEP1;
48 volatile __UEP1bits_t __at (0xF71) UEP1bits;
50 __sfr __at (0xF72) UEP2;
51 volatile __UEP2bits_t __at (0xF72) UEP2bits;
53 __sfr __at (0xF73) UEP3;
54 volatile __UEP3bits_t __at (0xF73) UEP3bits;
56 __sfr __at (0xF74) UEP4;
57 volatile __UEP4bits_t __at (0xF74) UEP4bits;
59 __sfr __at (0xF75) UEP5;
60 volatile __UEP5bits_t __at (0xF75) UEP5bits;
62 __sfr __at (0xF76) UEP6;
63 volatile __UEP6bits_t __at (0xF76) UEP6bits;
65 __sfr __at (0xF77) UEP7;
66 volatile __UEP7bits_t __at (0xF77) UEP7bits;
68 __sfr __at (0xF78) UEP8;
69 volatile __UEP8bits_t __at (0xF78) UEP8bits;
71 __sfr __at (0xF79) UEP9;
72 volatile __UEP9bits_t __at (0xF79) UEP9bits;
74 __sfr __at (0xF7A) UEP10;
75 volatile __UEP10bits_t __at (0xF7A) UEP10bits;
77 __sfr __at (0xF7B) UEP11;
78 volatile __UEP11bits_t __at (0xF7B) UEP11bits;
80 __sfr __at (0xF7C) UEP12;
81 volatile __UEP12bits_t __at (0xF7C) UEP12bits;
83 __sfr __at (0xF7D) UEP13;
84 volatile __UEP13bits_t __at (0xF7D) UEP13bits;
86 __sfr __at (0xF7E) UEP14;
87 volatile __UEP14bits_t __at (0xF7E) UEP14bits;
89 __sfr __at (0xF7F) UEP15;
90 volatile __UEP15bits_t __at (0xF7F) UEP15bits;
92 __sfr __at (0xF80) PORTA;
93 volatile __PORTAbits_t __at (0xF80) PORTAbits;
95 __sfr __at (0xF81) PORTB;
96 volatile __PORTBbits_t __at (0xF81) PORTBbits;
98 __sfr __at (0xF82) PORTC;
99 volatile __PORTCbits_t __at (0xF82) PORTCbits;
101 __sfr __at (0xF83) PORTD;
102 volatile __PORTDbits_t __at (0xF83) PORTDbits;
104 __sfr __at (0xF84) PORTE;
105 volatile __PORTEbits_t __at (0xF84) PORTEbits;
107 __sfr __at (0xF89) LATA;
108 volatile __LATAbits_t __at (0xF89) LATAbits;
110 __sfr __at (0xF8A) LATB;
111 volatile __LATBbits_t __at (0xF8A) LATBbits;
113 __sfr __at (0xF8B) LATC;
114 volatile __LATCbits_t __at (0xF8B) LATCbits;
116 __sfr __at (0xF8C) LATD;
117 volatile __LATDbits_t __at (0xF8C) LATDbits;
119 __sfr __at (0xF8D) LATE;
120 volatile __LATEbits_t __at (0xF8D) LATEbits;
122 __sfr __at (0xF92) DDRA;
123 volatile __DDRAbits_t __at (0xF92) DDRAbits;
125 __sfr __at (0xF92) TRISA;
126 volatile __TRISAbits_t __at (0xF92) TRISAbits;
128 __sfr __at (0xF93) DDRB;
129 volatile __DDRBbits_t __at (0xF93) DDRBbits;
131 __sfr __at (0xF93) TRISB;
132 volatile __TRISBbits_t __at (0xF93) TRISBbits;
134 __sfr __at (0xF94) DDRC;
135 volatile __DDRCbits_t __at (0xF94) DDRCbits;
137 __sfr __at (0xF94) TRISC;
138 volatile __TRISCbits_t __at (0xF94) TRISCbits;
140 __sfr __at (0xF95) DDRD;
141 volatile __DDRDbits_t __at (0xF95) DDRDbits;
143 __sfr __at (0xF95) TRISD;
144 volatile __TRISDbits_t __at (0xF95) TRISDbits;
146 __sfr __at (0xF96) DDRE;
147 volatile __DDREbits_t __at (0xF96) DDREbits;
149 __sfr __at (0xF96) TRISE;
150 volatile __TRISEbits_t __at (0xF96) TRISEbits;
152 __sfr __at (0xF9D) PIE1;
153 volatile __PIE1bits_t __at (0xF9D) PIE1bits;
155 __sfr __at (0xF9E) PIR1;
156 volatile __PIR1bits_t __at (0xF9E) PIR1bits;
158 __sfr __at (0xF9F) IPR1;
159 volatile __IPR1bits_t __at (0xF9F) IPR1bits;
161 __sfr __at (0xFA0) PIE2;
162 volatile __PIE2bits_t __at (0xFA0) PIE2bits;
164 __sfr __at (0xFA1) PIR2;
165 volatile __PIR2bits_t __at (0xFA1) PIR2bits;
167 __sfr __at (0xFA2) IPR2;
168 volatile __IPR2bits_t __at (0xFA2) IPR2bits;
170 __sfr __at (0xFA6) EECON1;
171 volatile __EECON1bits_t __at (0xFA6) EECON1bits;
173 __sfr __at (0xFA7) EECON2;
175 __sfr __at (0xFAB) RCSTA;
176 volatile __RCSTAbits_t __at (0xFAB) RCSTAbits;
178 __sfr __at (0xFAC) TXSTA;
179 volatile __TXSTAbits_t __at (0xFAC) TXSTAbits;
181 __sfr __at (0xFAD) TXREG;
183 __sfr __at (0xFAE) RCREG;
185 __sfr __at (0xFAF) SPBRG;
187 __sfr __at (0xFB0) SPBRGH;
189 __sfr __at (0xFB8) BAUDCON;
190 volatile __BAUDCONbits_t __at (0xFB8) BAUDCONbits;
192 __sfr __at (0xFBD) CCP1CON;
193 volatile __CCP1CONbits_t __at (0xFBD) CCP1CONbits;
195 __sfr __at (0xFBE) CCPR1;
197 __sfr __at (0xFBE) CCPR1L;
199 __sfr __at (0xFBF) CCPR1H;
201 __sfr __at (0xFC0) ADCON2;
202 volatile __ADCON2bits_t __at (0xFC0) ADCON2bits;
204 __sfr __at (0xFC1) ADCON1;
205 volatile __ADCON1bits_t __at (0xFC1) ADCON1bits;
207 __sfr __at (0xFC2) ADCON0;
208 volatile __ADCON0bits_t __at (0xFC2) ADCON0bits;
210 __sfr __at (0xFC3) ADRES;
212 __sfr __at (0xFC3) ADRESL;
214 __sfr __at (0xFC4) ADRESH;
216 __sfr __at (0xFC9) SSPBUF; /* unimplemented */
218 __sfr __at (0xFCA) T2CON;
219 volatile __T2CONbits_t __at (0xFCA) T2CONbits;
221 __sfr __at (0xFCB) PR2;
223 __sfr __at (0xFCC) TMR2;
225 __sfr __at (0xFCD) T1CON;
226 volatile __T1CONbits_t __at (0xFCD) T1CONbits;
228 __sfr __at (0xFCE) TMR1L;
230 __sfr __at (0xFCF) TMR1H;
232 __sfr __at (0xFD0) RCON;
233 volatile __RCONbits_t __at (0xFD0) RCONbits;
235 __sfr __at (0xFD1) WDTCON;
236 volatile __WDTCONbits_t __at (0xFD1) WDTCONbits;
238 __sfr __at (0xFD2) HLVDCON;
239 volatile __HLVDCONbits_t __at (0xFD2) HLVDCONbits;
241 __sfr __at (0xFD2) LVDCON;
242 volatile __LVDCONbits_t __at (0xFD2) LVDCONbits;
244 __sfr __at (0xFD3) OSCCON;
245 volatile __OSCCONbits_t __at (0xFD3) OSCCONbits;
247 __sfr __at (0xFD5) T0CON;
248 volatile __T0CONbits_t __at (0xFD5) T0CONbits;
250 __sfr __at (0xFD6) TMR0L;
252 __sfr __at (0xFD7) TMR0H;
254 __sfr __at (0xFD8) STATUS;
255 volatile __STATUSbits_t __at (0xFD8) STATUSbits;
257 __sfr __at (0xFD9) FSR2L;
259 __sfr __at (0xFDA) FSR2H;
261 __sfr __at (0xFDB) PLUSW2;
263 __sfr __at (0xFDC) PREINC2;
265 __sfr __at (0xFDD) POSTDEC2;
267 __sfr __at (0xFDE) POSTINC2;
269 __sfr __at (0xFDF) INDF2;
271 __sfr __at (0xFE0) BSR;
273 __sfr __at (0xFE1) FSR1L;
275 __sfr __at (0xFE2) FSR1H;
277 __sfr __at (0xFE3) PLUSW1;
279 __sfr __at (0xFE4) PREINC1;
281 __sfr __at (0xFE5) POSTDEC1;
283 __sfr __at (0xFE6) POSTINC1;
285 __sfr __at (0xFE7) INDF1;
287 __sfr __at (0xFE8) WREG;
289 __sfr __at (0xFE9) FSR0L;
291 __sfr __at (0xFEA) FSR0H;
293 __sfr __at (0xFEB) PLUSW0;
295 __sfr __at (0xFEC) PREINC0;
297 __sfr __at (0xFED) POSTDEC0;
299 __sfr __at (0xFEE) POSTINC0;
301 __sfr __at (0xFEF) INDF0;
303 __sfr __at (0xFF0) INTCON3;
304 volatile __INTCON3bits_t __at (0xFF0) INTCON3bits;
306 __sfr __at (0xFF1) INTCON2;
307 volatile __INTCON2bits_t __at (0xFF1) INTCON2bits;
309 __sfr __at (0xFF2) INTCON;
310 volatile __INTCONbits_t __at (0xFF2) INTCONbits;
312 __sfr __at (0xFF3) PROD;
314 __sfr __at (0xFF3) PRODL;
316 __sfr __at (0xFF4) PRODH;
318 __sfr __at (0xFF5) TABLAT;
320 __sfr __at (0xFF6) TBLPTR;
322 __sfr __at (0xFF6) TBLPTRL;
324 __sfr __at (0xFF7) TBLPTRH;
326 __sfr __at (0xFF8) TBLPTRU;
328 __sfr __at (0xFF9) PC;
330 __sfr __at (0xFF9) PCL;
332 __sfr __at (0xFFA) PCLATH;
334 __sfr __at (0xFFB) PCLATU;
336 __sfr __at (0xFFC) STKPTR;
337 volatile __STKPTRbits_t __at (0xFFC) STKPTRbits;
339 __sfr __at (0xFFD) TOS;
341 __sfr __at (0xFFD) TOSL;
343 __sfr __at (0xFFE) TOSH;
345 __sfr __at (0xFFF) TOSU;