076ac3372a6d992f739b27a9d71086d18ecb4aab
[fw/sdcc] / device / lib / pic16 / libdev / pic18f2220.c
1
2 /*
3  * pic18f2220.c - PIC18F2220 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 <pic18f2220.h>
16
17 sfr at 0xf80 PORTA;
18 volatile __PORTAbits_t at 0xf80 PORTAbits;
19
20 sfr at 0xf81 PORTB;
21 volatile __PORTBbits_t at 0xf81 PORTBbits;
22
23 sfr at 0xf82 PORTC;
24 volatile __PORTCbits_t at 0xf82 PORTCbits;
25
26 sfr at 0xf89 LATA;
27 volatile __LATAbits_t at 0xf89 LATAbits;
28
29 sfr at 0xf8a LATB;
30 volatile __LATBbits_t at 0xf8a LATBbits;
31
32 sfr at 0xf8b LATC;
33 volatile __LATCbits_t at 0xf8b LATCbits;
34
35 sfr at 0xf92 TRISA;
36 volatile __TRISAbits_t at 0xf92 TRISAbits;
37
38 sfr at 0xf93 TRISB;
39 volatile __TRISBbits_t at 0xf93 TRISBbits;
40
41 sfr at 0xf94 TRISC;
42 volatile __TRISCbits_t at 0xf94 TRISCbits;
43
44 sfr at 0xf9b OSCTUNE;
45 volatile __OSCTUNEbits_t at 0xf9b OSCTUNEbits;
46
47 sfr at 0xf9d PIE1;
48 volatile __PIE1bits_t at 0xf9d PIE1bits;
49
50 sfr at 0xf9e PIR1;
51 volatile __PIR1bits_t at 0xf9e PIR1bits;
52
53 sfr at 0xf9f IPR1;
54 volatile __IPR1bits_t at 0xf9f IPR1bits;
55
56 sfr at 0xfa0 PIE2;
57 volatile __PIE2bits_t at 0xfa0 PIE2bits;
58
59 sfr at 0xfa1 PIR2;
60 volatile __PIR2bits_t at 0xfa1 PIR2bits;
61
62 sfr at 0xfa2 IPR2;
63 volatile __IPR2bits_t at 0xfa2 IPR2bits;
64
65 sfr at 0xfa6 EECON1;
66 volatile __EECON1bits_t at 0xfa6 EECON1bits;
67
68 sfr at 0xfa7 EECON2;
69 sfr at 0xfa8 EEDATA;
70 sfr at 0xfa9 EEADR;
71 sfr at 0xfab RCSTA;
72 volatile __RCSTAbits_t at 0xfab RCSTAbits;
73
74 sfr at 0xfac TXSTA;
75 volatile __TXSTAbits_t at 0xfac TXSTAbits;
76
77 sfr at 0xfad TXREG;
78 sfr at 0xfae RCREG;
79 sfr at 0xfaf SPBRG;
80 sfr at 0xfb1 T3CON;
81 volatile __T3CONbits_t at 0xfb1 T3CONbits;
82
83 sfr at 0xfb2 TMR3L;
84 sfr at 0xfb3 TMR3H;
85 sfr at 0xfb4 CMCON;
86 volatile __CMCONbits_t at 0xfb4 CMCONbits;
87
88 sfr at 0xfb5 CVRCON;
89 volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
90
91 sfr at 0xfba CCP2CON;
92 volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
93
94 sfr at 0xfbb CCPR2L;
95 sfr at 0xfbc CCPR2H;
96 sfr at 0xfbd CCP1CON;
97 volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
98
99 sfr at 0xfbe CCPR1L;
100 sfr at 0xfbf CCPR1H;
101 sfr at 0xfc0 ADCON2;
102 volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
103
104 sfr at 0xfc1 ADCON1;
105 volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
106
107 sfr at 0xfc2 ADCON0;
108 volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
109
110 sfr at 0xfc3 ADRESL;
111 sfr at 0xfc4 ADRESH;
112 sfr at 0xfc5 SSPCON2;
113 volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
114
115 sfr at 0xfc6 SSPCON1;
116 volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
117
118 sfr at 0xfc7 SSPSTAT;
119 volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
120
121 sfr at 0xfc8 SSPADD;
122 sfr at 0xfc9 SSPBUF;
123 sfr at 0xfca T2CON;
124 volatile __T2CONbits_t at 0xfca T2CONbits;
125
126 sfr at 0xfcb PR2;
127 sfr at 0xfcc TMR2;
128 sfr at 0xfcd T1CON;
129 volatile __T1CONbits_t at 0xfcd T1CONbits;
130
131 sfr at 0xfce TMR1L;
132 sfr at 0xfcf TMR1H;
133 sfr at 0xfd0 RCON;
134 volatile __RCONbits_t at 0xfd0 RCONbits;
135
136 sfr at 0xfd1 WDTCON;
137 volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
138
139 sfr at 0xfd2 LVDCON;
140 volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
141
142 sfr at 0xfd3 OSCCON;
143 volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
144
145 sfr at 0xfd5 T0CON;
146 sfr at 0xfd6 TMR0L;
147 sfr at 0xfd7 TMR0H;
148 sfr at 0xfd8 STATUS;
149 volatile __STATUSbits_t at 0xfd8 STATUSbits;
150
151 sfr at 0xfd9 FSR2L;
152 sfr at 0xfda FSR2H;
153 sfr at 0xfdb PLUSW2;
154 sfr at 0xfdc PREINC2;
155 sfr at 0xfdd POSTDEC2;
156 sfr at 0xfde POSTINC2;
157 sfr at 0xfdf INDF2;
158 sfr at 0xfe0 BSR;
159 sfr at 0xfe1 FSR1L;
160 sfr at 0xfe2 FSR1H;
161 sfr at 0xfe3 PLUSW1;
162 sfr at 0xfe4 PREINC1;
163 sfr at 0xfe5 POSTDEC1;
164 sfr at 0xfe6 POSTINC1;
165 sfr at 0xfe7 INDF1;
166 sfr at 0xfe8 WREG;
167 sfr at 0xfe9 FSR0L;
168 sfr at 0xfea FSR0H;
169 sfr at 0xfeb PLUSW0;
170 sfr at 0xfec PREINC0;
171 sfr at 0xfed POSTDEC0;
172 sfr at 0xfee POSTINC0;
173 sfr at 0xfef INDF0;
174 sfr at 0xff0 INTCON3;
175 volatile __INTCON3bits_t at 0xff0 INTCON3bits;
176
177 sfr at 0xff1 INTCON2;
178 volatile __INTCON2bits_t at 0xff1 INTCON2bits;
179
180 sfr at 0xff2 INTCON;
181 volatile __INTCONbits_t at 0xff2 INTCONbits;
182
183 sfr at 0xff3 PRODL;
184 sfr at 0xff4 PRODH;
185 sfr at 0xff5 TABLAT;
186 sfr at 0xff6 TBLPTRL;
187 sfr at 0xff7 TBLPTRH;
188 sfr at 0xff8 TBLPTRU;
189 sfr at 0xff9 PCL;
190 sfr at 0xffa PCLATH;
191 sfr at 0xffb PCLATU;
192 sfr at 0xffc STKPTR;
193 volatile __STKPTRbits_t at 0xffc STKPTRbits;
194
195 sfr at 0xffd TOSL;
196 sfr at 0xffe TOSH;
197 sfr at 0xfff TOSU;
198
199