55fd34362c5784f810bed7735f563519e0dfe5ec
[fw/sdcc] / device / lib / pic16 / libdev / pic18f6620.c
1
2 /*
3  * pic18f6620.c - PIC18F6620 Device Library Source
4  *
5  * This file is part of the GNU PIC Library.
6  *
7  * January, 2004
8  * The GNU PIC Library is maintained by,
9  *      Vangelis Rokas <vrokas@otenet.gr>
10  *
11  * $Id$
12  *
13  */
14
15 #include <pic18f6620.h>
16
17 sfr at 0xf6b RCSTA2;
18 volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
19
20 sfr at 0xf6c TXSTA2;
21 volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
22
23 sfr at 0xf6d TXREG2;
24 sfr at 0xf6e RCREG2;
25 sfr at 0xf6f SPBRG2;
26 sfr at 0xf70 CCP5CON;
27 volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
28
29 sfr at 0xf71 CCPR5L;
30 sfr at 0xf72 CCPR5H;
31 sfr at 0xf73 CCP4CON;
32 volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
33
34 sfr at 0xf74 CCPR4L;
35 sfr at 0xf75 CCPR4H;
36 sfr at 0xf76 T4CON;
37 volatile __T4CONbits_t at 0xf76 T4CONbits;
38
39 sfr at 0xf77 PR4;
40 sfr at 0xf78 TMR4;
41 sfr at 0xf80 PORTA;
42 volatile __PORTAbits_t at 0xf80 PORTAbits;
43
44 sfr at 0xf81 PORTB;
45 volatile __PORTBbits_t at 0xf81 PORTBbits;
46
47 sfr at 0xf82 PORTC;
48 volatile __PORTCbits_t at 0xf82 PORTCbits;
49
50 sfr at 0xf83 PORTD;
51 volatile __PORTDbits_t at 0xf83 PORTDbits;
52
53 sfr at 0xf84 PORTE;
54 volatile __PORTEbits_t at 0xf84 PORTEbits;
55
56 sfr at 0xf85 PORTF;
57 volatile __PORTFbits_t at 0xf85 PORTFbits;
58
59 sfr at 0xf86 PORTG;
60 volatile __PORTGbits_t at 0xf86 PORTGbits;
61
62 sfr at 0xf89 LATA;
63 volatile __LATAbits_t at 0xf89 LATAbits;
64
65 sfr at 0xf8a LATB;
66 volatile __LATBbits_t at 0xf8a LATBbits;
67
68 sfr at 0xf8b LATC;
69 volatile __LATCbits_t at 0xf8b LATCbits;
70
71 sfr at 0xf8c LATD;
72 volatile __LATDbits_t at 0xf8c LATDbits;
73
74 sfr at 0xf8d LATE;
75 volatile __LATEbits_t at 0xf8d LATEbits;
76
77 sfr at 0xf8e LATF;
78 volatile __LATFbits_t at 0xf8e LATFbits;
79
80 sfr at 0xf8f LATG;
81 volatile __LATGbits_t at 0xf8f LATGbits;
82
83 sfr at 0xf92 TRISA;
84 volatile __TRISAbits_t at 0xf92 TRISAbits;
85
86 sfr at 0xf93 TRISB;
87 volatile __TRISBbits_t at 0xf93 TRISBbits;
88
89 sfr at 0xf94 TRISC;
90 volatile __TRISCbits_t at 0xf94 TRISCbits;
91
92 sfr at 0xf95 TRISD;
93 volatile __TRISDbits_t at 0xf95 TRISDbits;
94
95 sfr at 0xf96 TRISE;
96 volatile __TRISEbits_t at 0xf96 TRISEbits;
97
98 sfr at 0xf97 TRISF;
99 volatile __TRISFbits_t at 0xf97 TRISFbits;
100
101 sfr at 0xf98 TRISG;
102 volatile __TRISGbits_t at 0xf98 TRISGbits;
103
104 sfr at 0xf9d PIE1;
105 volatile __PIE1bits_t at 0xf9d PIE1bits;
106
107 sfr at 0xf9e PIR1;
108 volatile __PIR1bits_t at 0xf9e PIR1bits;
109
110 sfr at 0xf9f IPR1;
111 volatile __IPR1bits_t at 0xf9f IPR1bits;
112
113 sfr at 0xfa0 PIE2;
114 volatile __PIE2bits_t at 0xfa0 PIE2bits;
115
116 sfr at 0xfa1 PIR2;
117 volatile __PIR2bits_t at 0xfa1 PIR2bits;
118
119 sfr at 0xfa2 IPR2;
120 volatile __IPR2bits_t at 0xfa2 IPR2bits;
121
122 sfr at 0xfa3 PIE3;
123 volatile __PIE3bits_t at 0xfa3 PIE3bits;
124
125 sfr at 0xfa4 PIR3;
126 volatile __PIR3bits_t at 0xfa4 PIR3bits;
127
128 sfr at 0xfa5 IPR3;
129 volatile __IPR3bits_t at 0xfa5 IPR3bits;
130
131 sfr at 0xfa6 EECON1;
132 volatile __EECON1bits_t at 0xfa6 EECON1bits;
133
134 sfr at 0xfa7 EECON2;
135 sfr at 0xfa8 EEDATA;
136 sfr at 0xfa9 EEADR;
137 sfr at 0xfaa EEADRH;
138 sfr at 0xfab RCSTA1;
139 volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
140
141 sfr at 0xfac TXSTA1;
142 volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
143
144 sfr at 0xfad TXREG1;
145 sfr at 0xfae RCREG1;
146 sfr at 0xfaf SPBRG1;
147 sfr at 0xfb0 PSPCON;
148 volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
149
150 sfr at 0xfb1 T3CON;
151 volatile __T3CONbits_t at 0xfb1 T3CONbits;
152
153 sfr at 0xfb2 TMR3L;
154 sfr at 0xfb3 TMR3H;
155 sfr at 0xfb4 CMCON;
156 volatile __CMCONbits_t at 0xfb4 CMCONbits;
157
158 sfr at 0xfb5 CVRCON;
159 volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
160
161 sfr at 0xfb7 CCP3CON;
162 volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
163
164 sfr at 0xfb8 CCPR3L;
165 sfr at 0xfb9 CCPR3H;
166 sfr at 0xfba CCP2CON;
167 volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
168
169 sfr at 0xfbb CCPR2L;
170 sfr at 0xfbc CCPR2H;
171 sfr at 0xfbd CCP1CON;
172 volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
173
174 sfr at 0xfbe CCPR1L;
175 sfr at 0xfbf CCPR1H;
176 sfr at 0xfc0 ADCON2;
177 volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
178
179 sfr at 0xfc1 ADCON1;
180 volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
181
182 sfr at 0xfc2 ADCON0;
183 volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
184
185 sfr at 0xfc3 ADRESL;
186 sfr at 0xfc4 ADRESH;
187 sfr at 0xfc5 SSPCON2;
188 volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
189
190 sfr at 0xfc6 SSPCON1;
191 volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
192
193 sfr at 0xfc7 SSPSTAT;
194 volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
195
196 sfr at 0xfc8 SSPADD;
197 sfr at 0xfc9 SSPBUF;
198 sfr at 0xfca T2CON;
199 volatile __T2CONbits_t at 0xfca T2CONbits;
200
201 sfr at 0xfcb PR2;
202 sfr at 0xfcc TMR2;
203 sfr at 0xfcd T1CON;
204 volatile __T1CONbits_t at 0xfcd T1CONbits;
205
206 sfr at 0xfce TMR1L;
207 sfr at 0xfcf TMR1H;
208 sfr at 0xfd0 RCON;
209 volatile __RCONbits_t at 0xfd0 RCONbits;
210
211 sfr at 0xfd1 WDTCON;
212 volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
213
214 sfr at 0xfd2 LVDCON;
215 volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
216
217 sfr at 0xfd3 OSCCON;
218 volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
219
220 sfr at 0xfd5 T0CON;
221 sfr at 0xfd6 TMR0L;
222 sfr at 0xfd7 TMR0H;
223 sfr at 0xfd8 STATUS;
224 volatile __STATUSbits_t at 0xfd8 STATUSbits;
225
226 sfr at 0xfd9 FSR2L;
227 sfr at 0xfda FSR2H;
228 sfr at 0xfdb PLUSW2;
229 sfr at 0xfdc PREINC2;
230 sfr at 0xfdd POSTDEC2;
231 sfr at 0xfde POSTINC2;
232 sfr at 0xfdf INDF2;
233 sfr at 0xfe0 BSR;
234 sfr at 0xfe1 FSR1L;
235 sfr at 0xfe2 FSR1H;
236 sfr at 0xfe3 PLUSW1;
237 sfr at 0xfe4 PREINC1;
238 sfr at 0xfe5 POSTDEC1;
239 sfr at 0xfe6 POSTINC1;
240 sfr at 0xfe7 INDF1;
241 sfr at 0xfe8 WREG;
242 sfr at 0xfe9 FSR0L;
243 sfr at 0xfea FSR0H;
244 sfr at 0xfeb PLUSW0;
245 sfr at 0xfec PREINC0;
246 sfr at 0xfed POSTDEC0;
247 sfr at 0xfee POSTINC0;
248 sfr at 0xfef INDF0;
249 sfr at 0xff0 INTCON3;
250 volatile __INTCON3bits_t at 0xff0 INTCON3bits;
251
252 sfr at 0xff1 INTCON2;
253 volatile __INTCON2bits_t at 0xff1 INTCON2bits;
254
255 sfr at 0xff2 INTCON;
256 volatile __INTCONbits_t at 0xff2 INTCONbits;
257
258 sfr at 0xff3 PRODL;
259 sfr at 0xff4 PRODH;
260 sfr at 0xff5 TABLAT;
261 sfr at 0xff6 TBLPTRL;
262 sfr at 0xff7 TBLPTRH;
263 sfr at 0xff8 TBLPTRU;
264 sfr at 0xff9 PCL;
265 sfr at 0xffa PCLATH;
266 sfr at 0xffb PCLATU;
267 sfr at 0xffc STKPTR;
268 volatile __STKPTRbits_t at 0xffc STKPTRbits;
269
270 sfr at 0xffd TOSL;
271 sfr at 0xffe TOSH;
272 sfr at 0xfff TOSU;
273
274