2 * This definitions of the PIC10F322 MCU.
4 * This file is part of the GNU PIC library for SDCC, originally
5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:22:55 UTC.
9 * SDCC is licensed under the GNU Public license (GPL) v2. Note that
10 * this license covers the code to the compiler and other executables,
11 * but explicitly does not cover any code or objects generated by sdcc.
13 * For pic device libraries and header files which are derived from
14 * Microchip header (.inc) and linker script (.lkr) files Microchip
15 * requires that "The header files should state that they are only to be
16 * used with authentic Microchip devices" which makes them incompatible
17 * with the GPL. Pic device libraries and header files are located at
18 * non-free/lib and non-free/include directories respectively.
19 * Sdcc should be run with the --use-non-free command line option in
20 * order to include non-free header files and libraries.
22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
25 #include <pic10f322.h>
27 //==============================================================================
29 __at(0x0000) __sfr INDF
;
31 __at(0x0001) __sfr TMR0
;
33 __at(0x0002) __sfr PCL
;
35 __at(0x0003) __sfr STATUS
;
36 __at(0x0003) volatile __STATUSbits_t STATUSbits
;
38 __at(0x0004) __sfr FSR
;
40 __at(0x0005) __sfr PORTA
;
41 __at(0x0005) volatile __PORTAbits_t PORTAbits
;
43 __at(0x0006) __sfr TRISA
;
44 __at(0x0006) volatile __TRISAbits_t TRISAbits
;
46 __at(0x0007) __sfr LATA
;
47 __at(0x0007) volatile __LATAbits_t LATAbits
;
49 __at(0x0008) __sfr ANSELA
;
50 __at(0x0008) volatile __ANSELAbits_t ANSELAbits
;
52 __at(0x0009) __sfr WPUA
;
53 __at(0x0009) volatile __WPUAbits_t WPUAbits
;
55 __at(0x000A) __sfr PCLATH
;
56 __at(0x000A) volatile __PCLATHbits_t PCLATHbits
;
58 __at(0x000B) __sfr INTCON
;
59 __at(0x000B) volatile __INTCONbits_t INTCONbits
;
61 __at(0x000C) __sfr PIR1
;
62 __at(0x000C) volatile __PIR1bits_t PIR1bits
;
64 __at(0x000D) __sfr PIE1
;
65 __at(0x000D) volatile __PIE1bits_t PIE1bits
;
67 __at(0x000E) __sfr OPTION_REG
;
68 __at(0x000E) volatile __OPTION_REGbits_t OPTION_REGbits
;
70 __at(0x000F) __sfr PCON
;
71 __at(0x000F) volatile __PCONbits_t PCONbits
;
73 __at(0x0010) __sfr OSCCON
;
74 __at(0x0010) volatile __OSCCONbits_t OSCCONbits
;
76 __at(0x0011) __sfr TMR2
;
78 __at(0x0012) __sfr PR2
;
80 __at(0x0013) __sfr T2CON
;
81 __at(0x0013) volatile __T2CONbits_t T2CONbits
;
83 __at(0x0014) __sfr PWM1DCL
;
84 __at(0x0014) volatile __PWM1DCLbits_t PWM1DCLbits
;
86 __at(0x0015) __sfr PWM1DCH
;
87 __at(0x0015) volatile __PWM1DCHbits_t PWM1DCHbits
;
89 __at(0x0016) __sfr PWM1CON
;
90 __at(0x0016) volatile __PWM1CONbits_t PWM1CONbits
;
92 __at(0x0016) __sfr PWM1CON0
;
93 __at(0x0016) volatile __PWM1CON0bits_t PWM1CON0bits
;
95 __at(0x0017) __sfr PWM2DCL
;
96 __at(0x0017) volatile __PWM2DCLbits_t PWM2DCLbits
;
98 __at(0x0018) __sfr PWM2DCH
;
99 __at(0x0018) volatile __PWM2DCHbits_t PWM2DCHbits
;
101 __at(0x0019) __sfr PWM2CON
;
102 __at(0x0019) volatile __PWM2CONbits_t PWM2CONbits
;
104 __at(0x0019) __sfr PWM2CON0
;
105 __at(0x0019) volatile __PWM2CON0bits_t PWM2CON0bits
;
107 __at(0x001A) __sfr IOCAP
;
108 __at(0x001A) volatile __IOCAPbits_t IOCAPbits
;
110 __at(0x001B) __sfr IOCAN
;
111 __at(0x001B) volatile __IOCANbits_t IOCANbits
;
113 __at(0x001C) __sfr IOCAF
;
114 __at(0x001C) volatile __IOCAFbits_t IOCAFbits
;
116 __at(0x001D) __sfr FVRCON
;
117 __at(0x001D) volatile __FVRCONbits_t FVRCONbits
;
119 __at(0x001E) __sfr ADRES
;
121 __at(0x001F) __sfr ADCON
;
122 __at(0x001F) volatile __ADCONbits_t ADCONbits
;
124 __at(0x0020) __sfr PMADR
;
126 __at(0x0020) __sfr PMADRL
;
128 __at(0x0021) __sfr PMADRH
;
129 __at(0x0021) volatile __PMADRHbits_t PMADRHbits
;
131 __at(0x0022) __sfr PMDAT
;
133 __at(0x0022) __sfr PMDATL
;
135 __at(0x0023) __sfr PMDATH
;
137 __at(0x0024) __sfr PMCON1
;
138 __at(0x0024) volatile __PMCON1bits_t PMCON1bits
;
140 __at(0x0025) __sfr PMCON2
;
142 __at(0x0026) __sfr CLKRCON
;
143 __at(0x0026) volatile __CLKRCONbits_t CLKRCONbits
;
145 __at(0x0027) __sfr NCO1ACC
;
147 __at(0x0027) __sfr NCO1ACCL
;
148 __at(0x0027) volatile __NCO1ACCLbits_t NCO1ACCLbits
;
150 __at(0x0028) __sfr NCO1ACCH
;
151 __at(0x0028) volatile __NCO1ACCHbits_t NCO1ACCHbits
;
153 __at(0x0029) __sfr NCO1ACCU
;
154 __at(0x0029) volatile __NCO1ACCUbits_t NCO1ACCUbits
;
156 __at(0x002A) __sfr NCO1INC
;
158 __at(0x002A) __sfr NCO1INCL
;
159 __at(0x002A) volatile __NCO1INCLbits_t NCO1INCLbits
;
161 __at(0x002B) __sfr NCO1INCH
;
162 __at(0x002B) volatile __NCO1INCHbits_t NCO1INCHbits
;
164 __at(0x002C) __sfr NCO1INCU
;
166 __at(0x002D) __sfr NCO1CON
;
167 __at(0x002D) volatile __NCO1CONbits_t NCO1CONbits
;
169 __at(0x002E) __sfr NCO1CLK
;
170 __at(0x002E) volatile __NCO1CLKbits_t NCO1CLKbits
;
172 __at(0x0030) __sfr WDTCON
;
173 __at(0x0030) volatile __WDTCONbits_t WDTCONbits
;
175 __at(0x0031) __sfr CLC1CON
;
176 __at(0x0031) volatile __CLC1CONbits_t CLC1CONbits
;
178 __at(0x0032) __sfr CLC1SEL0
;
179 __at(0x0032) volatile __CLC1SEL0bits_t CLC1SEL0bits
;
181 __at(0x0033) __sfr CLC1SEL1
;
182 __at(0x0033) volatile __CLC1SEL1bits_t CLC1SEL1bits
;
184 __at(0x0034) __sfr CLC1POL
;
185 __at(0x0034) volatile __CLC1POLbits_t CLC1POLbits
;
187 __at(0x0035) __sfr CLC1GLS0
;
188 __at(0x0035) volatile __CLC1GLS0bits_t CLC1GLS0bits
;
190 __at(0x0036) __sfr CLC1GLS1
;
191 __at(0x0036) volatile __CLC1GLS1bits_t CLC1GLS1bits
;
193 __at(0x0037) __sfr CLC1GLS2
;
194 __at(0x0037) volatile __CLC1GLS2bits_t CLC1GLS2bits
;
196 __at(0x0038) __sfr CLC1GLS3
;
197 __at(0x0038) volatile __CLC1GLS3bits_t CLC1GLS3bits
;
199 __at(0x0039) __sfr CWG1CON0
;
200 __at(0x0039) volatile __CWG1CON0bits_t CWG1CON0bits
;
202 __at(0x003A) __sfr CWG1CON1
;
203 __at(0x003A) volatile __CWG1CON1bits_t CWG1CON1bits
;
205 __at(0x003B) __sfr CWG1CON2
;
206 __at(0x003B) volatile __CWG1CON2bits_t CWG1CON2bits
;
208 __at(0x003C) __sfr CWG1DBR
;
209 __at(0x003C) volatile __CWG1DBRbits_t CWG1DBRbits
;
211 __at(0x003D) __sfr CWG1DBF
;
212 __at(0x003D) volatile __CWG1DBFbits_t CWG1DBFbits
;
214 __at(0x003E) __sfr VREGCON
;
215 __at(0x003E) volatile __VREGCONbits_t VREGCONbits
;
217 __at(0x003F) __sfr BORCON
;
218 __at(0x003F) volatile __BORCONbits_t BORCONbits
;