2 * pic18f2455.h - PIC18F2455 Device Library Sources
4 * This file is part of the GNU PIC Library.
7 * The GNU PIC Library is maintained by
8 * Raphael Neider <rneider AT web.de>
10 * originally designed by
11 * Vangelis Rokas <vrokas@otenet.gr>
17 #include <pic18f2455.h>
19 __sfr __at (0xF62) SPPDATA;
20 volatile __SPPDATA_t __at (0xF62) SPPDATAbits;
22 __sfr __at (0xF63) SPPCFG;
23 volatile __SPPCFG_t __at (0xF63) SPPCFGbits;
25 __sfr __at (0xF64) SPPEPS;
26 volatile __SPPEPS_t __at (0xF64) SPPEPSbits;
28 __sfr __at (0xF65) SPPCON;
29 volatile __SPPCON_t __at (0xF65) SPPCONbits;
31 __sfr __at (0xF66) UFRML;
32 volatile __UFRML_t __at (0xF66) UFRMLbits;
34 __sfr __at (0xF67) UFRMH;
35 volatile __UFRMH_t __at (0xF67) UFRMHbits;
37 __sfr __at (0xF68) UIR;
38 volatile __UIR_t __at (0xF68) UIRbits;
40 __sfr __at (0xF69) UIE;
41 volatile __UIE_t __at (0xF69) UIEbits;
43 __sfr __at (0xF6A) UEIR;
44 volatile __UEIR_t __at (0xF6A) UEIRbits;
46 __sfr __at (0xF6B) UEIE;
47 volatile __UEIE_t __at (0xF6B) UEIEbits;
49 __sfr __at (0xF6C) USTAT;
50 volatile __USTAT_t __at (0xF6C) USTATbits;
52 __sfr __at (0xF6D) UCON;
53 volatile __UCON_t __at (0xF6D) UCONbits;
55 __sfr __at (0xF6E) UADDR;
56 volatile __UADDR_t __at (0xF6E) UADDRbits;
58 __sfr __at (0xF6F) UCFG;
59 volatile __UCFG_t __at (0xF6F) UCFGbits;
61 __sfr __at (0xF70) UEP0;
62 volatile __UEP0_t __at (0xF70) UEP0bits;
64 __sfr __at (0xF71) UEP1;
65 volatile __UEP1_t __at (0xF71) UEP1bits;
67 __sfr __at (0xF72) UEP2;
68 volatile __UEP2_t __at (0xF72) UEP2bits;
70 __sfr __at (0xF73) UEP3;
71 volatile __UEP3_t __at (0xF73) UEP3bits;
73 __sfr __at (0xF74) UEP4;
74 volatile __UEP4_t __at (0xF74) UEP4bits;
76 __sfr __at (0xF75) UEP5;
77 volatile __UEP5_t __at (0xF75) UEP5bits;
79 __sfr __at (0xF76) UEP6;
80 volatile __UEP6_t __at (0xF76) UEP6bits;
82 __sfr __at (0xF77) UEP7;
83 volatile __UEP7_t __at (0xF77) UEP7bits;
85 __sfr __at (0xF78) UEP8;
86 volatile __UEP8_t __at (0xF78) UEP8bits;
88 __sfr __at (0xF79) UEP9;
89 volatile __UEP9_t __at (0xF79) UEP9bits;
91 __sfr __at (0xF7A) UEP10;
92 volatile __UEP10_t __at (0xF7A) UEP10bits;
94 __sfr __at (0xF7B) UEP11;
95 volatile __UEP11_t __at (0xF7B) UEP11bits;
97 __sfr __at (0xF7C) UEP12;
98 volatile __UEP12_t __at (0xF7C) UEP12bits;
100 __sfr __at (0xF7D) UEP13;
101 volatile __UEP13_t __at (0xF7D) UEP13bits;
103 __sfr __at (0xF7E) UEP14;
104 volatile __UEP14_t __at (0xF7E) UEP14bits;
106 __sfr __at (0xF7F) UEP15;
107 volatile __UEP15_t __at (0xF7F) UEP15bits;
109 __sfr __at (0xF80) PORTA;
110 volatile __PORTA_t __at (0xF80) PORTAbits;
112 __sfr __at (0xF81) PORTB;
113 volatile __PORTB_t __at (0xF81) PORTBbits;
115 __sfr __at (0xF82) PORTC;
116 volatile __PORTC_t __at (0xF82) PORTCbits;
118 __sfr __at (0xF83) PORTD;
119 volatile __PORTD_t __at (0xF83) PORTDbits;
121 __sfr __at (0xF84) PORTE;
122 volatile __PORTE_t __at (0xF84) PORTEbits;
124 __sfr __at (0xF89) LATA;
125 volatile __LATA_t __at (0xF89) LATAbits;
127 __sfr __at (0xF8A) LATB;
128 volatile __LATB_t __at (0xF8A) LATBbits;
130 __sfr __at (0xF8B) LATC;
131 volatile __LATC_t __at (0xF8B) LATCbits;
133 __sfr __at (0xF8C) LATD;
134 volatile __LATD_t __at (0xF8C) LATDbits;
136 __sfr __at (0xF8D) LATE;
137 volatile __LATE_t __at (0xF8D) LATEbits;
139 __sfr __at (0xF92) TRISA;
140 volatile __TRISA_t __at (0xF92) TRISAbits;
142 __sfr __at (0xF93) TRISB;
143 volatile __TRISB_t __at (0xF93) TRISBbits;
145 __sfr __at (0xF94) TRISC;
146 volatile __TRISC_t __at (0xF94) TRISCbits;
148 __sfr __at (0xF95) TRISD;
149 volatile __TRISD_t __at (0xF95) TRISDbits;
151 __sfr __at (0xF96) TRISE;
152 volatile __TRISE_t __at (0xF96) TRISEbits;
154 __sfr __at (0xF9B) OSCTUNE;
155 volatile __OSCTUNE_t __at (0xF9B) OSCTUNEbits;
157 __sfr __at (0xF9D) PIE1;
158 volatile __PIE1_t __at (0xF9D) PIE1bits;
160 __sfr __at (0xF9E) PIR1;
161 volatile __PIR1_t __at (0xF9E) PIR1bits;
163 __sfr __at (0xF9F) IPR1;
164 volatile __IPR1_t __at (0xF9F) IPR1bits;
166 __sfr __at (0xFA0) PIE2;
167 volatile __PIE2_t __at (0xFA0) PIE2bits;
169 __sfr __at (0xFA1) PIR2;
170 volatile __PIR2_t __at (0xFA1) PIR2bits;
172 __sfr __at (0xFA2) IPR2;
173 volatile __IPR2_t __at (0xFA2) IPR2bits;
175 __sfr __at (0xFA6) EECON1;
176 volatile __EECON1_t __at (0xFA6) EECON1bits;
178 __sfr __at (0xFA7) EECON2;
180 __sfr __at (0xFA8) EEDATA;
182 __sfr __at (0xFA9) EEADR;
184 __sfr __at (0xFAB) RCSTA;
185 volatile __RCSTA_t __at (0xFAB) RCSTAbits;
187 __sfr __at (0xFAC) TXSTA;
188 volatile __TXSTA_t __at (0xFAC) TXSTAbits;
190 __sfr __at (0xFAD) TXREG;
192 __sfr __at (0xFAE) RCREG;
194 __sfr __at (0xFAF) SPBRG;
196 __sfr __at (0xFB0) SPBRGH;
198 __sfr __at (0xFB1) T3CON;
199 volatile __T3CON_t __at (0xFB1) T3CONbits;
201 __sfr __at (0xFB2) TMR3L;
203 __sfr __at (0xFB3) TMR3H;
205 __sfr __at (0xFB4) CMCON;
206 volatile __CMCON_t __at (0xFB4) CMCONbits;
208 __sfr __at (0xFB5) CVRCON;
209 volatile __CVRCON_t __at (0xFB5) CVRCONbits;
211 __sfr __at (0xFB6) ECCP1AS;
212 volatile __ECCP1AS_t __at (0xFB6) ECCP1ASbits;
214 __sfr __at (0xFB7) ECCP1DEL;
215 volatile __ECCP1DEL_t __at (0xFB7) ECCP1DELbits;
217 __sfr __at (0xFB8) BAUDCON;
218 volatile __BAUDCON_t __at (0xFB8) BAUDCONbits;
220 __sfr __at (0xFBA) CCP2CON;
221 volatile __CCP2CON_t __at (0xFBA) CCP2CONbits;
223 __sfr __at (0xFBB) CCPR2L;
225 __sfr __at (0xFBC) CCPR2H;
227 __sfr __at (0xFBD) CCP1CON;
228 volatile __CCP1CON_t __at (0xFBD) CCP1CONbits;
230 __sfr __at (0xFBE) CCPR1L;
232 __sfr __at (0xFBF) CCPR1H;
234 __sfr __at (0xFC0) ADCON2;
235 volatile __ADCON2_t __at (0xFC0) ADCON2bits;
237 __sfr __at (0xFC1) ADCON1;
238 volatile __ADCON1_t __at (0xFC1) ADCON1bits;
240 __sfr __at (0xFC2) ADCON0;
241 volatile __ADCON0_t __at (0xFC2) ADCON0bits;
243 __sfr __at (0xFC3) ADRESL;
245 __sfr __at (0xFC4) ADRESH;
247 __sfr __at (0xFC5) SSPCON2;
248 volatile __SSPCON2_t __at (0xFC5) SSPCON2bits;
250 __sfr __at (0xFC6) SSPCON1;
251 volatile __SSPCON1_t __at (0xFC6) SSPCON1bits;
253 __sfr __at (0xFC7) SSPSTAT;
254 volatile __SSPSTAT_t __at (0xFC7) SSPSTATbits;
256 __sfr __at (0xFC8) SSPADD;
258 __sfr __at (0xFC9) SSPBUF;
260 __sfr __at (0xFCA) T2CON;
261 volatile __T2CON_t __at (0xFCA) T2CONbits;
263 __sfr __at (0xFCB) PR2;
265 __sfr __at (0xFCC) TMR2;
267 __sfr __at (0xFCD) T1CON;
268 volatile __T1CON_t __at (0xFCD) T1CONbits;
270 __sfr __at (0xFCE) TMR1L;
272 __sfr __at (0xFCF) TMR1H;
274 __sfr __at (0xFD0) RCON;
275 volatile __RCON_t __at (0xFD0) RCONbits;
277 __sfr __at (0xFD1) WDTCON;
278 volatile __WDTCON_t __at (0xFD1) WDTCONbits;
280 __sfr __at (0xFD2) HLVDCON;
281 volatile __HLVDCON_t __at (0xFD2) HLVDCONbits;
283 __sfr __at (0xFD3) OSCCON;
284 volatile __OSCCON_t __at (0xFD3) OSCCONbits;
286 __sfr __at (0xFD5) T0CON;
287 volatile __T0CON_t __at (0xFD5) T0CONbits;
289 __sfr __at (0xFD6) TMR0L;
291 __sfr __at (0xFD7) TMR0H;
293 __sfr __at (0xFD8) STATUS;
294 volatile __STATUS_t __at (0xFD8) STATUSbits;
296 __sfr __at (0xFD9) FSR2L;
298 __sfr __at (0xFDA) FSR2H;
299 volatile __FSR2H_t __at (0xFDA) FSR2Hbits;
301 __sfr __at (0xFDB) PLUSW2;
303 __sfr __at (0xFDC) PREINC2;
305 __sfr __at (0xFDD) POSTDEC2;
307 __sfr __at (0xFDE) POSTINC2;
309 __sfr __at (0xFDF) INDF2;
311 __sfr __at (0xFE0) BSR;
312 volatile __BSR_t __at (0xFE0) BSRbits;
314 __sfr __at (0xFE1) FSR1L;
316 __sfr __at (0xFE2) FSR1H;
317 volatile __FSR1H_t __at (0xFE2) FSR1Hbits;
319 __sfr __at (0xFE3) PLUSW1;
321 __sfr __at (0xFE4) PREINC1;
323 __sfr __at (0xFE5) POSTDEC1;
325 __sfr __at (0xFE6) POSTINC1;
327 __sfr __at (0xFE7) INDF1;
329 __sfr __at (0xFE8) WREG;
331 __sfr __at (0xFE9) FSR0L;
333 __sfr __at (0xFEA) FSR0H;
334 volatile __FSR0H_t __at (0xFEA) FSR0Hbits;
336 __sfr __at (0xFEB) PLUSW0;
338 __sfr __at (0xFEC) PREINC0;
340 __sfr __at (0xFED) POSTDEC0;
342 __sfr __at (0xFEE) POSTINC0;
344 __sfr __at (0xFEF) INDF0;
346 __sfr __at (0xFF0) INTCON3;
347 volatile __INTCON3_t __at (0xFF0) INTCON3bits;
349 __sfr __at (0xFF1) INTCON2;
350 volatile __INTCON2_t __at (0xFF1) INTCON2bits;
352 __sfr __at (0xFF2) INTCON;
353 volatile __INTCON_t __at (0xFF2) INTCONbits;
355 __sfr __at (0xFF3) PRODL;
357 __sfr __at (0xFF4) PRODH;
359 __sfr __at (0xFF5) TABLAT;
361 __sfr __at (0xFF6) TBLPTRL;
363 __sfr __at (0xFF7) TBLPTRH;
365 __sfr __at (0xFF8) TBLPTRU;
366 volatile __TBLPTRU_t __at (0xFF8) TBLPTRUbits;
368 __sfr __at (0xFF9) PCL;
370 __sfr __at (0xFFA) PCLATH;
371 volatile __PCLATH_t __at (0xFFA) PCLATHbits;
373 __sfr __at (0xFFB) PCLATU;
374 volatile __PCLATU_t __at (0xFFB) PCLATUbits;
376 __sfr __at (0xFFC) STKPTR;
377 volatile __STKPTR_t __at (0xFFC) STKPTRbits;
379 __sfr __at (0xFFD) TOSL;
381 __sfr __at (0xFFE) TOSH;
383 __sfr __at (0xFFF) TOSU;
384 volatile __TOSU_t __at (0xFFF) TOSUbits;