1 ;-------------------------------------------------------- 2 ; File Created by SDCC : free open source ANSI-C Compiler 3 ; Version 3.0.0 #6037 (Oct 31 2010) (Linux) 4 ; This file was generated Sun Feb 26 03:56:10 2012 5 ;-------------------------------------------------------- 6 .module adc 7 .optsdcc -mmcs51 --model-medium 8 9 ;-------------------------------------------------------- 10 ; Public variables in this module 11 ;-------------------------------------------------------- 12 .globl _adcRead 13 .globl _adcReadDifferential 14 ;-------------------------------------------------------- 15 ; special function registers 16 ;-------------------------------------------------------- 17 .area RSEG (ABS,DATA) 0000 18 .org 0x0000 0080 19 Fadc$P0$0$0 == 0x0080 0080 20 _P0 = 0x0080 0081 21 Fadc$SP$0$0 == 0x0081 0081 22 _SP = 0x0081 0082 23 Fadc$DPL0$0$0 == 0x0082 0082 24 _DPL0 = 0x0082 0083 25 Fadc$DPH0$0$0 == 0x0083 0083 26 _DPH0 = 0x0083 0084 27 Fadc$DPL1$0$0 == 0x0084 0084 28 _DPL1 = 0x0084 0085 29 Fadc$DPH1$0$0 == 0x0085 0085 30 _DPH1 = 0x0085 0086 31 Fadc$U0CSR$0$0 == 0x0086 0086 32 _U0CSR = 0x0086 0087 33 Fadc$PCON$0$0 == 0x0087 0087 34 _PCON = 0x0087 0088 35 Fadc$TCON$0$0 == 0x0088 0088 36 _TCON = 0x0088 0089 37 Fadc$P0IFG$0$0 == 0x0089 0089 38 _P0IFG = 0x0089 008A 39 Fadc$P1IFG$0$0 == 0x008a 008A 40 _P1IFG = 0x008a 008B 41 Fadc$P2IFG$0$0 == 0x008b 008B 42 _P2IFG = 0x008b 008C 43 Fadc$PICTL$0$0 == 0x008c 008C 44 _PICTL = 0x008c 008D 45 Fadc$P1IEN$0$0 == 0x008d 008D 46 _P1IEN = 0x008d 008F 47 Fadc$P0INP$0$0 == 0x008f 008F 48 _P0INP = 0x008f 0090 49 Fadc$P1$0$0 == 0x0090 0090 50 _P1 = 0x0090 0091 51 Fadc$RFIM$0$0 == 0x0091 0091 52 _RFIM = 0x0091 0092 53 Fadc$DPS$0$0 == 0x0092 0092 54 _DPS = 0x0092 0093 55 Fadc$MPAGE$0$0 == 0x0093 0093 56 _MPAGE = 0x0093 0095 57 Fadc$ENDIAN$0$0 == 0x0095 0095 58 _ENDIAN = 0x0095 0098 59 Fadc$S0CON$0$0 == 0x0098 0098 60 _S0CON = 0x0098 009A 61 Fadc$IEN2$0$0 == 0x009a 009A 62 _IEN2 = 0x009a 009B 63 Fadc$S1CON$0$0 == 0x009b 009B 64 _S1CON = 0x009b 009C 65 Fadc$T2CT$0$0 == 0x009c 009C 66 _T2CT = 0x009c 009D 67 Fadc$T2PR$0$0 == 0x009d 009D 68 _T2PR = 0x009d 009E 69 Fadc$T2CTL$0$0 == 0x009e 009E 70 _T2CTL = 0x009e 00A0 71 Fadc$P2$0$0 == 0x00a0 00A0 72 _P2 = 0x00a0 00A1 73 Fadc$WORIRQ$0$0 == 0x00a1 00A1 74 _WORIRQ = 0x00a1 00A2 75 Fadc$WORCTRL$0$0 == 0x00a2 00A2 76 _WORCTRL = 0x00a2 00A3 77 Fadc$WOREVT0$0$0 == 0x00a3 00A3 78 _WOREVT0 = 0x00a3 00A4 79 Fadc$WOREVT1$0$0 == 0x00a4 00A4 80 _WOREVT1 = 0x00a4 00A5 81 Fadc$WORTIME0$0$0 == 0x00a5 00A5 82 _WORTIME0 = 0x00a5 00A6 83 Fadc$WORTIME1$0$0 == 0x00a6 00A6 84 _WORTIME1 = 0x00a6 00A8 85 Fadc$IEN0$0$0 == 0x00a8 00A8 86 _IEN0 = 0x00a8 00A9 87 Fadc$IP0$0$0 == 0x00a9 00A9 88 _IP0 = 0x00a9 00AB 89 Fadc$FWT$0$0 == 0x00ab 00AB 90 _FWT = 0x00ab 00AC 91 Fadc$FADDRL$0$0 == 0x00ac 00AC 92 _FADDRL = 0x00ac 00AD 93 Fadc$FADDRH$0$0 == 0x00ad 00AD 94 _FADDRH = 0x00ad 00AE 95 Fadc$FCTL$0$0 == 0x00ae 00AE 96 _FCTL = 0x00ae 00AF 97 Fadc$FWDATA$0$0 == 0x00af 00AF 98 _FWDATA = 0x00af 00B1 99 Fadc$ENCDI$0$0 == 0x00b1 00B1 100 _ENCDI = 0x00b1 00B2 101 Fadc$ENCDO$0$0 == 0x00b2 00B2 102 _ENCDO = 0x00b2 00B3 103 Fadc$ENCCS$0$0 == 0x00b3 00B3 104 _ENCCS = 0x00b3 00B4 105 Fadc$ADCCON1$0$0 == 0x00b4 00B4 106 _ADCCON1 = 0x00b4 00B5 107 Fadc$ADCCON2$0$0 == 0x00b5 00B5 108 _ADCCON2 = 0x00b5 00B6 109 Fadc$ADCCON3$0$0 == 0x00b6 00B6 110 _ADCCON3 = 0x00b6 00B8 111 Fadc$IEN1$0$0 == 0x00b8 00B8 112 _IEN1 = 0x00b8 00B9 113 Fadc$IP1$0$0 == 0x00b9 00B9 114 _IP1 = 0x00b9 00BA 115 Fadc$ADCL$0$0 == 0x00ba 00BA 116 _ADCL = 0x00ba 00BB 117 Fadc$ADCH$0$0 == 0x00bb 00BB 118 _ADCH = 0x00bb 00BC 119 Fadc$RNDL$0$0 == 0x00bc 00BC 120 _RNDL = 0x00bc 00BD 121 Fadc$RNDH$0$0 == 0x00bd 00BD 122 _RNDH = 0x00bd 00BE 123 Fadc$SLEEP$0$0 == 0x00be 00BE 124 _SLEEP = 0x00be 00C0 125 Fadc$IRCON$0$0 == 0x00c0 00C0 126 _IRCON = 0x00c0 00C1 127 Fadc$U0DBUF$0$0 == 0x00c1 00C1 128 _U0DBUF = 0x00c1 00C2 129 Fadc$U0BAUD$0$0 == 0x00c2 00C2 130 _U0BAUD = 0x00c2 00C4 131 Fadc$U0UCR$0$0 == 0x00c4 00C4 132 _U0UCR = 0x00c4 00C5 133 Fadc$U0GCR$0$0 == 0x00c5 00C5 134 _U0GCR = 0x00c5 00C6 135 Fadc$CLKCON$0$0 == 0x00c6 00C6 136 _CLKCON = 0x00c6 00C7 137 Fadc$MEMCTR$0$0 == 0x00c7 00C7 138 _MEMCTR = 0x00c7 00C9 139 Fadc$WDCTL$0$0 == 0x00c9 00C9 140 _WDCTL = 0x00c9 00CA 141 Fadc$T3CNT$0$0 == 0x00ca 00CA 142 _T3CNT = 0x00ca 00CB 143 Fadc$T3CTL$0$0 == 0x00cb 00CB 144 _T3CTL = 0x00cb 00CC 145 Fadc$T3CCTL0$0$0 == 0x00cc 00CC 146 _T3CCTL0 = 0x00cc 00CD 147 Fadc$T3CC0$0$0 == 0x00cd 00CD 148 _T3CC0 = 0x00cd 00CE 149 Fadc$T3CCTL1$0$0 == 0x00ce 00CE 150 _T3CCTL1 = 0x00ce 00CF 151 Fadc$T3CC1$0$0 == 0x00cf 00CF 152 _T3CC1 = 0x00cf 00D0 153 Fadc$PSW$0$0 == 0x00d0 00D0 154 _PSW = 0x00d0 00D1 155 Fadc$DMAIRQ$0$0 == 0x00d1 00D1 156 _DMAIRQ = 0x00d1 00D2 157 Fadc$DMA1CFGL$0$0 == 0x00d2 00D2 158 _DMA1CFGL = 0x00d2 00D3 159 Fadc$DMA1CFGH$0$0 == 0x00d3 00D3 160 _DMA1CFGH = 0x00d3 00D4 161 Fadc$DMA0CFGL$0$0 == 0x00d4 00D4 162 _DMA0CFGL = 0x00d4 00D5 163 Fadc$DMA0CFGH$0$0 == 0x00d5 00D5 164 _DMA0CFGH = 0x00d5 00D6 165 Fadc$DMAARM$0$0 == 0x00d6 00D6 166 _DMAARM = 0x00d6 00D7 167 Fadc$DMAREQ$0$0 == 0x00d7 00D7 168 _DMAREQ = 0x00d7 00D8 169 Fadc$TIMIF$0$0 == 0x00d8 00D8 170 _TIMIF = 0x00d8 00D9 171 Fadc$RFD$0$0 == 0x00d9 00D9 172 _RFD = 0x00d9 00DA 173 Fadc$T1CC0L$0$0 == 0x00da 00DA 174 _T1CC0L = 0x00da 00DB 175 Fadc$T1CC0H$0$0 == 0x00db 00DB 176 _T1CC0H = 0x00db 00DC 177 Fadc$T1CC1L$0$0 == 0x00dc 00DC 178 _T1CC1L = 0x00dc 00DD 179 Fadc$T1CC1H$0$0 == 0x00dd 00DD 180 _T1CC1H = 0x00dd 00DE 181 Fadc$T1CC2L$0$0 == 0x00de 00DE 182 _T1CC2L = 0x00de 00DF 183 Fadc$T1CC2H$0$0 == 0x00df 00DF 184 _T1CC2H = 0x00df 00E0 185 Fadc$ACC$0$0 == 0x00e0 00E0 186 _ACC = 0x00e0 00E1 187 Fadc$RFST$0$0 == 0x00e1 00E1 188 _RFST = 0x00e1 00E2 189 Fadc$T1CNTL$0$0 == 0x00e2 00E2 190 _T1CNTL = 0x00e2 00E3 191 Fadc$T1CNTH$0$0 == 0x00e3 00E3 192 _T1CNTH = 0x00e3 00E4 193 Fadc$T1CTL$0$0 == 0x00e4 00E4 194 _T1CTL = 0x00e4 00E5 195 Fadc$T1CCTL0$0$0 == 0x00e5 00E5 196 _T1CCTL0 = 0x00e5 00E6 197 Fadc$T1CCTL1$0$0 == 0x00e6 00E6 198 _T1CCTL1 = 0x00e6 00E7 199 Fadc$T1CCTL2$0$0 == 0x00e7 00E7 200 _T1CCTL2 = 0x00e7 00E8 201 Fadc$IRCON2$0$0 == 0x00e8 00E8 202 _IRCON2 = 0x00e8 00E9 203 Fadc$RFIF$0$0 == 0x00e9 00E9 204 _RFIF = 0x00e9 00EA 205 Fadc$T4CNT$0$0 == 0x00ea 00EA 206 _T4CNT = 0x00ea 00EB 207 Fadc$T4CTL$0$0 == 0x00eb 00EB 208 _T4CTL = 0x00eb 00EC 209 Fadc$T4CCTL0$0$0 == 0x00ec 00EC 210 _T4CCTL0 = 0x00ec 00ED 211 Fadc$T4CC0$0$0 == 0x00ed 00ED 212 _T4CC0 = 0x00ed 00EE 213 Fadc$T4CCTL1$0$0 == 0x00ee 00EE 214 _T4CCTL1 = 0x00ee 00EF 215 Fadc$T4CC1$0$0 == 0x00ef 00EF 216 _T4CC1 = 0x00ef 00F0 217 Fadc$B$0$0 == 0x00f0 00F0 218 _B = 0x00f0 00F1 219 Fadc$PERCFG$0$0 == 0x00f1 00F1 220 _PERCFG = 0x00f1 00F2 221 Fadc$ADCCFG$0$0 == 0x00f2 00F2 222 _ADCCFG = 0x00f2 00F3 223 Fadc$P0SEL$0$0 == 0x00f3 00F3 224 _P0SEL = 0x00f3 00F4 225 Fadc$P1SEL$0$0 == 0x00f4 00F4 226 _P1SEL = 0x00f4 00F5 227 Fadc$P2SEL$0$0 == 0x00f5 00F5 228 _P2SEL = 0x00f5 00F6 229 Fadc$P1INP$0$0 == 0x00f6 00F6 230 _P1INP = 0x00f6 00F7 231 Fadc$P2INP$0$0 == 0x00f7 00F7 232 _P2INP = 0x00f7 00F8 233 Fadc$U1CSR$0$0 == 0x00f8 00F8 234 _U1CSR = 0x00f8 00F9 235 Fadc$U1DBUF$0$0 == 0x00f9 00F9 236 _U1DBUF = 0x00f9 00FA 237 Fadc$U1BAUD$0$0 == 0x00fa 00FA 238 _U1BAUD = 0x00fa 00FB 239 Fadc$U1UCR$0$0 == 0x00fb 00FB 240 _U1UCR = 0x00fb 00FC 241 Fadc$U1GCR$0$0 == 0x00fc 00FC 242 _U1GCR = 0x00fc 00FD 243 Fadc$P0DIR$0$0 == 0x00fd 00FD 244 _P0DIR = 0x00fd 00FE 245 Fadc$P1DIR$0$0 == 0x00fe 00FE 246 _P1DIR = 0x00fe 00FF 247 Fadc$P2DIR$0$0 == 0x00ff 00FF 248 _P2DIR = 0x00ff FFFFD5D4 249 Fadc$DMA0CFG$0$0 == 0xffffd5d4 FFFFD5D4 250 _DMA0CFG = 0xffffd5d4 FFFFD3D2 251 Fadc$DMA1CFG$0$0 == 0xffffd3d2 FFFFD3D2 252 _DMA1CFG = 0xffffd3d2 FFFFADAC 253 Fadc$FADDR$0$0 == 0xffffadac FFFFADAC 254 _FADDR = 0xffffadac FFFFBBBA 255 Fadc$ADC$0$0 == 0xffffbbba FFFFBBBA 256 _ADC = 0xffffbbba FFFFDBDA 257 Fadc$T1CC0$0$0 == 0xffffdbda FFFFDBDA 258 _T1CC0 = 0xffffdbda FFFFDDDC 259 Fadc$T1CC1$0$0 == 0xffffdddc FFFFDDDC 260 _T1CC1 = 0xffffdddc FFFFDFDE 261 Fadc$T1CC2$0$0 == 0xffffdfde FFFFDFDE 262 _T1CC2 = 0xffffdfde 263 ;-------------------------------------------------------- 264 ; special function bits 265 ;-------------------------------------------------------- 266 .area RSEG (ABS,DATA) 0000 267 .org 0x0000 0080 268 Fadc$P0_0$0$0 == 0x0080 0080 269 _P0_0 = 0x0080 0081 270 Fadc$P0_1$0$0 == 0x0081 0081 271 _P0_1 = 0x0081 0082 272 Fadc$P0_2$0$0 == 0x0082 0082 273 _P0_2 = 0x0082 0083 274 Fadc$P0_3$0$0 == 0x0083 0083 275 _P0_3 = 0x0083 0084 276 Fadc$P0_4$0$0 == 0x0084 0084 277 _P0_4 = 0x0084 0085 278 Fadc$P0_5$0$0 == 0x0085 0085 279 _P0_5 = 0x0085 0086 280 Fadc$P0_6$0$0 == 0x0086 0086 281 _P0_6 = 0x0086 0087 282 Fadc$P0_7$0$0 == 0x0087 0087 283 _P0_7 = 0x0087 0088 284 Fadc$_TCON_0$0$0 == 0x0088 0088 285 __TCON_0 = 0x0088 0089 286 Fadc$RFTXRXIF$0$0 == 0x0089 0089 287 _RFTXRXIF = 0x0089 008A 288 Fadc$_TCON_2$0$0 == 0x008a 008A 289 __TCON_2 = 0x008a 008B 290 Fadc$URX0IF$0$0 == 0x008b 008B 291 _URX0IF = 0x008b 008C 292 Fadc$_TCON_4$0$0 == 0x008c 008C 293 __TCON_4 = 0x008c 008D 294 Fadc$ADCIF$0$0 == 0x008d 008D 295 _ADCIF = 0x008d 008E 296 Fadc$_TCON_6$0$0 == 0x008e 008E 297 __TCON_6 = 0x008e 008F 298 Fadc$URX1IF$0$0 == 0x008f 008F 299 _URX1IF = 0x008f 0090 300 Fadc$P1_0$0$0 == 0x0090 0090 301 _P1_0 = 0x0090 0091 302 Fadc$P1_1$0$0 == 0x0091 0091 303 _P1_1 = 0x0091 0092 304 Fadc$P1_2$0$0 == 0x0092 0092 305 _P1_2 = 0x0092 0093 306 Fadc$P1_3$0$0 == 0x0093 0093 307 _P1_3 = 0x0093 0094 308 Fadc$P1_4$0$0 == 0x0094 0094 309 _P1_4 = 0x0094 0095 310 Fadc$P1_5$0$0 == 0x0095 0095 311 _P1_5 = 0x0095 0096 312 Fadc$P1_6$0$0 == 0x0096 0096 313 _P1_6 = 0x0096 0097 314 Fadc$P1_7$0$0 == 0x0097 0097 315 _P1_7 = 0x0097 0098 316 Fadc$ENCIF_0$0$0 == 0x0098 0098 317 _ENCIF_0 = 0x0098 0099 318 Fadc$ENCIF_1$0$0 == 0x0099 0099 319 _ENCIF_1 = 0x0099 009A 320 Fadc$_SOCON2$0$0 == 0x009a 009A 321 __SOCON2 = 0x009a 009B 322 Fadc$_SOCON3$0$0 == 0x009b 009B 323 __SOCON3 = 0x009b 009C 324 Fadc$_SOCON4$0$0 == 0x009c 009C 325 __SOCON4 = 0x009c 009D 326 Fadc$_SOCON5$0$0 == 0x009d 009D 327 __SOCON5 = 0x009d 009E 328 Fadc$_SOCON6$0$0 == 0x009e 009E 329 __SOCON6 = 0x009e 009F 330 Fadc$_SOCON7$0$0 == 0x009f 009F 331 __SOCON7 = 0x009f 00A0 332 Fadc$P2_0$0$0 == 0x00a0 00A0 333 _P2_0 = 0x00a0 00A1 334 Fadc$P2_1$0$0 == 0x00a1 00A1 335 _P2_1 = 0x00a1 00A2 336 Fadc$P2_2$0$0 == 0x00a2 00A2 337 _P2_2 = 0x00a2 00A3 338 Fadc$P2_3$0$0 == 0x00a3 00A3 339 _P2_3 = 0x00a3 00A4 340 Fadc$P2_4$0$0 == 0x00a4 00A4 341 _P2_4 = 0x00a4 00A5 342 Fadc$P2_5$0$0 == 0x00a5 00A5 343 _P2_5 = 0x00a5 00A6 344 Fadc$P2_6$0$0 == 0x00a6 00A6 345 _P2_6 = 0x00a6 00A7 346 Fadc$P2_7$0$0 == 0x00a7 00A7 347 _P2_7 = 0x00a7 00A8 348 Fadc$RFTXRXIE$0$0 == 0x00a8 00A8 349 _RFTXRXIE = 0x00a8 00A9 350 Fadc$ADCIE$0$0 == 0x00a9 00A9 351 _ADCIE = 0x00a9 00AA 352 Fadc$URX0IE$0$0 == 0x00aa 00AA 353 _URX0IE = 0x00aa 00AB 354 Fadc$URX1IE$0$0 == 0x00ab 00AB 355 _URX1IE = 0x00ab 00AC 356 Fadc$ENCIE$0$0 == 0x00ac 00AC 357 _ENCIE = 0x00ac 00AD 358 Fadc$STIE$0$0 == 0x00ad 00AD 359 _STIE = 0x00ad 00AE 360 Fadc$_IEN06$0$0 == 0x00ae 00AE 361 __IEN06 = 0x00ae 00AF 362 Fadc$EA$0$0 == 0x00af 00AF 363 _EA = 0x00af 00B8 364 Fadc$DMAIE$0$0 == 0x00b8 00B8 365 _DMAIE = 0x00b8 00B9 366 Fadc$T1IE$0$0 == 0x00b9 00B9 367 _T1IE = 0x00b9 00BA 368 Fadc$T2IE$0$0 == 0x00ba 00BA 369 _T2IE = 0x00ba 00BB 370 Fadc$T3IE$0$0 == 0x00bb 00BB 371 _T3IE = 0x00bb 00BC 372 Fadc$T4IE$0$0 == 0x00bc 00BC 373 _T4IE = 0x00bc 00BD 374 Fadc$P0IE$0$0 == 0x00bd 00BD 375 _P0IE = 0x00bd 00BE 376 Fadc$_IEN16$0$0 == 0x00be 00BE 377 __IEN16 = 0x00be 00BF 378 Fadc$_IEN17$0$0 == 0x00bf 00BF 379 __IEN17 = 0x00bf 00C0 380 Fadc$DMAIF$0$0 == 0x00c0 00C0 381 _DMAIF = 0x00c0 00C1 382 Fadc$T1IF$0$0 == 0x00c1 00C1 383 _T1IF = 0x00c1 00C2 384 Fadc$T2IF$0$0 == 0x00c2 00C2 385 _T2IF = 0x00c2 00C3 386 Fadc$T3IF$0$0 == 0x00c3 00C3 387 _T3IF = 0x00c3 00C4 388 Fadc$T4IF$0$0 == 0x00c4 00C4 389 _T4IF = 0x00c4 00C5 390 Fadc$P0IF$0$0 == 0x00c5 00C5 391 _P0IF = 0x00c5 00C6 392 Fadc$_IRCON6$0$0 == 0x00c6 00C6 393 __IRCON6 = 0x00c6 00C7 394 Fadc$STIF$0$0 == 0x00c7 00C7 395 _STIF = 0x00c7 00D0 396 Fadc$P$0$0 == 0x00d0 00D0 397 _P = 0x00d0 00D1 398 Fadc$F1$0$0 == 0x00d1 00D1 399 _F1 = 0x00d1 00D2 400 Fadc$OV$0$0 == 0x00d2 00D2 401 _OV = 0x00d2 00D3 402 Fadc$RS0$0$0 == 0x00d3 00D3 403 _RS0 = 0x00d3 00D4 404 Fadc$RS1$0$0 == 0x00d4 00D4 405 _RS1 = 0x00d4 00D5 406 Fadc$F0$0$0 == 0x00d5 00D5 407 _F0 = 0x00d5 00D6 408 Fadc$AC$0$0 == 0x00d6 00D6 409 _AC = 0x00d6 00D7 410 Fadc$CY$0$0 == 0x00d7 00D7 411 _CY = 0x00d7 00D8 412 Fadc$T3OVFIF$0$0 == 0x00d8 00D8 413 _T3OVFIF = 0x00d8 00D9 414 Fadc$T3CH0IF$0$0 == 0x00d9 00D9 415 _T3CH0IF = 0x00d9 00DA 416 Fadc$T3CH1IF$0$0 == 0x00da 00DA 417 _T3CH1IF = 0x00da 00DB 418 Fadc$T4OVFIF$0$0 == 0x00db 00DB 419 _T4OVFIF = 0x00db 00DC 420 Fadc$T4CH0IF$0$0 == 0x00dc 00DC 421 _T4CH0IF = 0x00dc 00DD 422 Fadc$T4CH1IF$0$0 == 0x00dd 00DD 423 _T4CH1IF = 0x00dd 00DE 424 Fadc$OVFIM$0$0 == 0x00de 00DE 425 _OVFIM = 0x00de 00DF 426 Fadc$_TIMIF7$0$0 == 0x00df 00DF 427 __TIMIF7 = 0x00df 00E0 428 Fadc$ACC_0$0$0 == 0x00e0 00E0 429 _ACC_0 = 0x00e0 00E1 430 Fadc$ACC_1$0$0 == 0x00e1 00E1 431 _ACC_1 = 0x00e1 00E2 432 Fadc$ACC_2$0$0 == 0x00e2 00E2 433 _ACC_2 = 0x00e2 00E3 434 Fadc$ACC_3$0$0 == 0x00e3 00E3 435 _ACC_3 = 0x00e3 00E4 436 Fadc$ACC_4$0$0 == 0x00e4 00E4 437 _ACC_4 = 0x00e4 00E5 438 Fadc$ACC_5$0$0 == 0x00e5 00E5 439 _ACC_5 = 0x00e5 00E6 440 Fadc$ACC_6$0$0 == 0x00e6 00E6 441 _ACC_6 = 0x00e6 00E7 442 Fadc$ACC_7$0$0 == 0x00e7 00E7 443 _ACC_7 = 0x00e7 00E8 444 Fadc$P2IF$0$0 == 0x00e8 00E8 445 _P2IF = 0x00e8 00E9 446 Fadc$UTX0IF$0$0 == 0x00e9 00E9 447 _UTX0IF = 0x00e9 00EA 448 Fadc$UTX1IF$0$0 == 0x00ea 00EA 449 _UTX1IF = 0x00ea 00EB 450 Fadc$P1IF$0$0 == 0x00eb 00EB 451 _P1IF = 0x00eb 00EC 452 Fadc$WDTIF$0$0 == 0x00ec 00EC 453 _WDTIF = 0x00ec 00ED 454 Fadc$_IRCON25$0$0 == 0x00ed 00ED 455 __IRCON25 = 0x00ed 00EE 456 Fadc$_IRCON26$0$0 == 0x00ee 00EE 457 __IRCON26 = 0x00ee 00EF 458 Fadc$_IRCON27$0$0 == 0x00ef 00EF 459 __IRCON27 = 0x00ef 00F0 460 Fadc$B_0$0$0 == 0x00f0 00F0 461 _B_0 = 0x00f0 00F1 462 Fadc$B_1$0$0 == 0x00f1 00F1 463 _B_1 = 0x00f1 00F2 464 Fadc$B_2$0$0 == 0x00f2 00F2 465 _B_2 = 0x00f2 00F3 466 Fadc$B_3$0$0 == 0x00f3 00F3 467 _B_3 = 0x00f3 00F4 468 Fadc$B_4$0$0 == 0x00f4 00F4 469 _B_4 = 0x00f4 00F5 470 Fadc$B_5$0$0 == 0x00f5 00F5 471 _B_5 = 0x00f5 00F6 472 Fadc$B_6$0$0 == 0x00f6 00F6 473 _B_6 = 0x00f6 00F7 474 Fadc$B_7$0$0 == 0x00f7 00F7 475 _B_7 = 0x00f7 00F8 476 Fadc$U1ACTIVE$0$0 == 0x00f8 00F8 477 _U1ACTIVE = 0x00f8 00F9 478 Fadc$U1TX_BYTE$0$0 == 0x00f9 00F9 479 _U1TX_BYTE = 0x00f9 00FA 480 Fadc$U1RX_BYTE$0$0 == 0x00fa 00FA 481 _U1RX_BYTE = 0x00fa 00FB 482 Fadc$U1ERR$0$0 == 0x00fb 00FB 483 _U1ERR = 0x00fb 00FC 484 Fadc$U1FE$0$0 == 0x00fc 00FC 485 _U1FE = 0x00fc 00FD 486 Fadc$U1SLAVE$0$0 == 0x00fd 00FD 487 _U1SLAVE = 0x00fd 00FE 488 Fadc$U1RE$0$0 == 0x00fe 00FE 489 _U1RE = 0x00fe 00FF 490 Fadc$U1MODE$0$0 == 0x00ff 00FF 491 _U1MODE = 0x00ff 492 ;-------------------------------------------------------- 493 ; overlayable register banks 494 ;-------------------------------------------------------- 495 .area REG_BANK_0 (REL,OVR,DATA) 0000 496 .ds 8 497 ;-------------------------------------------------------- 498 ; internal ram data 499 ;-------------------------------------------------------- 500 .area DSEG (DATA) 501 ;-------------------------------------------------------- 502 ; overlayable items in internal ram 503 ;-------------------------------------------------------- 504 .area OSEG (OVR,DATA) 505 ;-------------------------------------------------------- 506 ; indirectly addressable internal ram data 507 ;-------------------------------------------------------- 508 .area ISEG (DATA) 509 ;-------------------------------------------------------- 510 ; absolute internal ram data 511 ;-------------------------------------------------------- 512 .area IABS (ABS,DATA) 513 .area IABS (ABS,DATA) 514 ;-------------------------------------------------------- 515 ; bit data 516 ;-------------------------------------------------------- 517 .area BSEG (BIT) 518 ;-------------------------------------------------------- 519 ; paged external ram data 520 ;-------------------------------------------------------- 521 .area PSEG (PAG,XDATA) 522 ;-------------------------------------------------------- 523 ; external ram data 524 ;-------------------------------------------------------- 525 .area XSEG (XDATA) DF00 526 Fadc$SYNC1$0$0 == 0xdf00 DF00 527 _SYNC1 = 0xdf00 DF01 528 Fadc$SYNC0$0$0 == 0xdf01 DF01 529 _SYNC0 = 0xdf01 DF02 530 Fadc$PKTLEN$0$0 == 0xdf02 DF02 531 _PKTLEN = 0xdf02 DF03 532 Fadc$PKTCTRL1$0$0 == 0xdf03 DF03 533 _PKTCTRL1 = 0xdf03 DF04 534 Fadc$PKTCTRL0$0$0 == 0xdf04 DF04 535 _PKTCTRL0 = 0xdf04 DF05 536 Fadc$ADDR$0$0 == 0xdf05 DF05 537 _ADDR = 0xdf05 DF06 538 Fadc$CHANNR$0$0 == 0xdf06 DF06 539 _CHANNR = 0xdf06 DF07 540 Fadc$FSCTRL1$0$0 == 0xdf07 DF07 541 _FSCTRL1 = 0xdf07 DF08 542 Fadc$FSCTRL0$0$0 == 0xdf08 DF08 543 _FSCTRL0 = 0xdf08 DF09 544 Fadc$FREQ2$0$0 == 0xdf09 DF09 545 _FREQ2 = 0xdf09 DF0A 546 Fadc$FREQ1$0$0 == 0xdf0a DF0A 547 _FREQ1 = 0xdf0a DF0B 548 Fadc$FREQ0$0$0 == 0xdf0b DF0B 549 _FREQ0 = 0xdf0b DF0C 550 Fadc$MDMCFG4$0$0 == 0xdf0c DF0C 551 _MDMCFG4 = 0xdf0c DF0D 552 Fadc$MDMCFG3$0$0 == 0xdf0d DF0D 553 _MDMCFG3 = 0xdf0d DF0E 554 Fadc$MDMCFG2$0$0 == 0xdf0e DF0E 555 _MDMCFG2 = 0xdf0e DF0F 556 Fadc$MDMCFG1$0$0 == 0xdf0f DF0F 557 _MDMCFG1 = 0xdf0f DF10 558 Fadc$MDMCFG0$0$0 == 0xdf10 DF10 559 _MDMCFG0 = 0xdf10 DF11 560 Fadc$DEVIATN$0$0 == 0xdf11 DF11 561 _DEVIATN = 0xdf11 DF12 562 Fadc$MCSM2$0$0 == 0xdf12 DF12 563 _MCSM2 = 0xdf12 DF13 564 Fadc$MCSM1$0$0 == 0xdf13 DF13 565 _MCSM1 = 0xdf13 DF14 566 Fadc$MCSM0$0$0 == 0xdf14 DF14 567 _MCSM0 = 0xdf14 DF15 568 Fadc$FOCCFG$0$0 == 0xdf15 DF15 569 _FOCCFG = 0xdf15 DF16 570 Fadc$BSCFG$0$0 == 0xdf16 DF16 571 _BSCFG = 0xdf16 DF17 572 Fadc$AGCCTRL2$0$0 == 0xdf17 DF17 573 _AGCCTRL2 = 0xdf17 DF18 574 Fadc$AGCCTRL1$0$0 == 0xdf18 DF18 575 _AGCCTRL1 = 0xdf18 DF19 576 Fadc$AGCCTRL0$0$0 == 0xdf19 DF19 577 _AGCCTRL0 = 0xdf19 DF1A 578 Fadc$FREND1$0$0 == 0xdf1a DF1A 579 _FREND1 = 0xdf1a DF1B 580 Fadc$FREND0$0$0 == 0xdf1b DF1B 581 _FREND0 = 0xdf1b DF1C 582 Fadc$FSCAL3$0$0 == 0xdf1c DF1C 583 _FSCAL3 = 0xdf1c DF1D 584 Fadc$FSCAL2$0$0 == 0xdf1d DF1D 585 _FSCAL2 = 0xdf1d DF1E 586 Fadc$FSCAL1$0$0 == 0xdf1e DF1E 587 _FSCAL1 = 0xdf1e DF1F 588 Fadc$FSCAL0$0$0 == 0xdf1f DF1F 589 _FSCAL0 = 0xdf1f DF23 590 Fadc$TEST2$0$0 == 0xdf23 DF23 591 _TEST2 = 0xdf23 DF24 592 Fadc$TEST1$0$0 == 0xdf24 DF24 593 _TEST1 = 0xdf24 DF25 594 Fadc$TEST0$0$0 == 0xdf25 DF25 595 _TEST0 = 0xdf25 DF2E 596 Fadc$PA_TABLE0$0$0 == 0xdf2e DF2E 597 _PA_TABLE0 = 0xdf2e DF2F 598 Fadc$IOCFG2$0$0 == 0xdf2f DF2F 599 _IOCFG2 = 0xdf2f DF30 600 Fadc$IOCFG1$0$0 == 0xdf30 DF30 601 _IOCFG1 = 0xdf30 DF31 602 Fadc$IOCFG0$0$0 == 0xdf31 DF31 603 _IOCFG0 = 0xdf31 DF36 604 Fadc$PARTNUM$0$0 == 0xdf36 DF36 605 _PARTNUM = 0xdf36 DF37 606 Fadc$VERSION$0$0 == 0xdf37 DF37 607 _VERSION = 0xdf37 DF38 608 Fadc$FREQEST$0$0 == 0xdf38 DF38 609 _FREQEST = 0xdf38 DF39 610 Fadc$LQI$0$0 == 0xdf39 DF39 611 _LQI = 0xdf39 DF3A 612 Fadc$RSSI$0$0 == 0xdf3a DF3A 613 _RSSI = 0xdf3a DF3B 614 Fadc$MARCSTATE$0$0 == 0xdf3b DF3B 615 _MARCSTATE = 0xdf3b DF3C 616 Fadc$PKTSTATUS$0$0 == 0xdf3c DF3C 617 _PKTSTATUS = 0xdf3c DF3D 618 Fadc$VCO_VC_DAC$0$0 == 0xdf3d DF3D 619 _VCO_VC_DAC = 0xdf3d DF40 620 Fadc$I2SCFG0$0$0 == 0xdf40 DF40 621 _I2SCFG0 = 0xdf40 DF41 622 Fadc$I2SCFG1$0$0 == 0xdf41 DF41 623 _I2SCFG1 = 0xdf41 DF42 624 Fadc$I2SDATL$0$0 == 0xdf42 DF42 625 _I2SDATL = 0xdf42 DF43 626 Fadc$I2SDATH$0$0 == 0xdf43 DF43 627 _I2SDATH = 0xdf43 DF44 628 Fadc$I2SWCNT$0$0 == 0xdf44 DF44 629 _I2SWCNT = 0xdf44 DF45 630 Fadc$I2SSTAT$0$0 == 0xdf45 DF45 631 _I2SSTAT = 0xdf45 DF46 632 Fadc$I2SCLKF0$0$0 == 0xdf46 DF46 633 _I2SCLKF0 = 0xdf46 DF47 634 Fadc$I2SCLKF1$0$0 == 0xdf47 DF47 635 _I2SCLKF1 = 0xdf47 DF48 636 Fadc$I2SCLKF2$0$0 == 0xdf48 DF48 637 _I2SCLKF2 = 0xdf48 DE00 638 Fadc$USBADDR$0$0 == 0xde00 DE00 639 _USBADDR = 0xde00 DE01 640 Fadc$USBPOW$0$0 == 0xde01 DE01 641 _USBPOW = 0xde01 DE02 642 Fadc$USBIIF$0$0 == 0xde02 DE02 643 _USBIIF = 0xde02 DE04 644 Fadc$USBOIF$0$0 == 0xde04 DE04 645 _USBOIF = 0xde04 DE06 646 Fadc$USBCIF$0$0 == 0xde06 DE06 647 _USBCIF = 0xde06 DE07 648 Fadc$USBIIE$0$0 == 0xde07 DE07 649 _USBIIE = 0xde07 DE09 650 Fadc$USBOIE$0$0 == 0xde09 DE09 651 _USBOIE = 0xde09 DE0B 652 Fadc$USBCIE$0$0 == 0xde0b DE0B 653 _USBCIE = 0xde0b DE0C 654 Fadc$USBFRML$0$0 == 0xde0c DE0C 655 _USBFRML = 0xde0c DE0D 656 Fadc$USBFRMH$0$0 == 0xde0d DE0D 657 _USBFRMH = 0xde0d DE0E 658 Fadc$USBINDEX$0$0 == 0xde0e DE0E 659 _USBINDEX = 0xde0e DE10 660 Fadc$USBMAXI$0$0 == 0xde10 DE10 661 _USBMAXI = 0xde10 DE11 662 Fadc$USBCSIL$0$0 == 0xde11 DE11 663 _USBCSIL = 0xde11 DE12 664 Fadc$USBCSIH$0$0 == 0xde12 DE12 665 _USBCSIH = 0xde12 DE13 666 Fadc$USBMAXO$0$0 == 0xde13 DE13 667 _USBMAXO = 0xde13 DE14 668 Fadc$USBCSOL$0$0 == 0xde14 DE14 669 _USBCSOL = 0xde14 DE15 670 Fadc$USBCSOH$0$0 == 0xde15 DE15 671 _USBCSOH = 0xde15 DE16 672 Fadc$USBCNTL$0$0 == 0xde16 DE16 673 _USBCNTL = 0xde16 DE17 674 Fadc$USBCNTH$0$0 == 0xde17 DE17 675 _USBCNTH = 0xde17 DE20 676 Fadc$USBF0$0$0 == 0xde20 DE20 677 _USBF0 = 0xde20 DE22 678 Fadc$USBF1$0$0 == 0xde22 DE22 679 _USBF1 = 0xde22 DE24 680 Fadc$USBF2$0$0 == 0xde24 DE24 681 _USBF2 = 0xde24 DE26 682 Fadc$USBF3$0$0 == 0xde26 DE26 683 _USBF3 = 0xde26 DE28 684 Fadc$USBF4$0$0 == 0xde28 DE28 685 _USBF4 = 0xde28 DE2A 686 Fadc$USBF5$0$0 == 0xde2a DE2A 687 _USBF5 = 0xde2a 688 ;-------------------------------------------------------- 689 ; absolute external ram data 690 ;-------------------------------------------------------- 691 .area XABS (ABS,XDATA) 692 ;-------------------------------------------------------- 693 ; external initialized ram data 694 ;-------------------------------------------------------- 695 .area XISEG (XDATA) 696 .area HOME (CODE) 697 .area GSINIT0 (CODE) 698 .area GSINIT1 (CODE) 699 .area GSINIT2 (CODE) 700 .area GSINIT3 (CODE) 701 .area GSINIT4 (CODE) 702 .area GSINIT5 (CODE) 703 .area GSINIT (CODE) 704 .area GSFINAL (CODE) 705 .area CSEG (CODE) 706 ;-------------------------------------------------------- 707 ; global & static initialisations 708 ;-------------------------------------------------------- 709 .area HOME (CODE) 710 .area GSINIT (CODE) 711 .area GSFINAL (CODE) 712 .area GSINIT (CODE) 713 ;-------------------------------------------------------- 714 ; Home 715 ;-------------------------------------------------------- 716 .area HOME (CODE) 717 .area HOME (CODE) 718 ;-------------------------------------------------------- 719 ; code 720 ;-------------------------------------------------------- 721 .area CSEG (CODE) 722 ;------------------------------------------------------------ 723 ;Allocation info for local variables in function 'adcRead' 724 ;------------------------------------------------------------ 725 ;------------------------------------------------------------ 0000 726 G$adcRead$0$0 ==. 0000 727 C$adc.c$5$0$0 ==. 728 ; libraries/src/adc/adc.c:5: uint16 adcRead(uint8 channel) 729 ; ----------------------------------------- 730 ; function adcRead 731 ; ----------------------------------------- 0000 732 _adcRead: 0002 733 ar2 = 0x02 0003 734 ar3 = 0x03 0004 735 ar4 = 0x04 0005 736 ar5 = 0x05 0006 737 ar6 = 0x06 0007 738 ar7 = 0x07 0000 739 ar0 = 0x00 0001 740 ar1 = 0x01 0000 AA 82 741 mov r2,dpl 0002 742 C$adc.c$7$1$1 ==. 743 ; libraries/src/adc/adc.c:7: ADCIF = 0; // Clear the flag. 0002 C2 8D 744 clr _ADCIF 0004 745 C$adc.c$8$1$1 ==. 746 ; libraries/src/adc/adc.c:8: ADCCON3 = 0b10110000 ^ channel; 0004 74 B0 747 mov a,#0xB0 0006 6A 748 xrl a,r2 0007 F5 B6 749 mov _ADCCON3,a 0009 750 C$adc.c$9$1$1 ==. 751 ; libraries/src/adc/adc.c:9: while(!ADCIF){}; // Wait for the reading to finish. 0009 752 00101$: 0009 30 8D FD 753 jnb _ADCIF,00101$ 000C 754 C$adc.c$11$1$1 ==. 755 ; libraries/src/adc/adc.c:11: if (ADCH & 0x80) 000C E5 BB 756 mov a,_ADCH 000E 30 E7 04 757 jnb acc.7,00105$ 0011 758 C$adc.c$14$2$3 ==. 759 ; libraries/src/adc/adc.c:14: return 0; 0011 90 00 00 760 mov dptr,#0x0000 0014 22 761 ret 0015 762 00105$: 0015 763 C$adc.c$21$2$4 ==. 764 ; libraries/src/adc/adc.c:21: return ADC >> 4; 0015 85 BA 82 765 mov dpl,_ADC 0018 E5 BB 766 mov a,(_ADC >> 8) 001A C4 767 swap a 001B C5 82 768 xch a,dpl 001D C4 769 swap a 001E 54 0F 770 anl a,#0x0f 0020 65 82 771 xrl a,dpl 0022 C5 82 772 xch a,dpl 0024 54 0F 773 anl a,#0x0f 0026 C5 82 774 xch a,dpl 0028 65 82 775 xrl a,dpl 002A C5 82 776 xch a,dpl 002C F5 83 777 mov dph,a 002E 778 C$adc.c$23$1$1 ==. 002E 779 XG$adcRead$0$0 ==. 002E 22 780 ret 781 ;------------------------------------------------------------ 782 ;Allocation info for local variables in function 'adcReadDifferential' 783 ;------------------------------------------------------------ 784 ;------------------------------------------------------------ 002F 785 G$adcReadDifferential$0$0 ==. 002F 786 C$adc.c$25$1$1 ==. 787 ; libraries/src/adc/adc.c:25: int16 adcReadDifferential(uint8 channel) 788 ; ----------------------------------------- 789 ; function adcReadDifferential 790 ; ----------------------------------------- 002F 791 _adcReadDifferential: 002F AA 82 792 mov r2,dpl 0031 793 C$adc.c$27$1$1 ==. 794 ; libraries/src/adc/adc.c:27: ADCIF = 0; // Clear the flag. 0031 C2 8D 795 clr _ADCIF 0033 796 C$adc.c$28$1$1 ==. 797 ; libraries/src/adc/adc.c:28: ADCCON3 = 0b10110000 ^ channel; 0033 74 B0 798 mov a,#0xB0 0035 6A 799 xrl a,r2 0036 F5 B6 800 mov _ADCCON3,a 0038 801 C$adc.c$29$1$1 ==. 802 ; libraries/src/adc/adc.c:29: while(!ADCIF){}; // Wait for the reading to finish. 0038 803 00101$: 0038 30 8D FD 804 jnb _ADCIF,00101$ 003B 805 C$adc.c$31$1$1 ==. 806 ; libraries/src/adc/adc.c:31: return (int16)ADC >> 4; 003B AA BA 807 mov r2,_ADC 003D AB BB 808 mov r3,(_ADC >> 8) 003F 8A 82 809 mov dpl,r2 0041 EB 810 mov a,r3 0042 C4 811 swap a 0043 C5 82 812 xch a,dpl 0045 C4 813 swap a 0046 54 0F 814 anl a,#0x0f 0048 65 82 815 xrl a,dpl 004A C5 82 816 xch a,dpl 004C 54 0F 817 anl a,#0x0f 004E C5 82 818 xch a,dpl 0050 65 82 819 xrl a,dpl 0052 C5 82 820 xch a,dpl 0054 30 E3 02 821 jnb acc.3,00109$ 0057 44 F0 822 orl a,#0xf0 0059 823 00109$: 0059 F5 83 824 mov dph,a 005B 825 C$adc.c$32$1$1 ==. 005B 826 XG$adcReadDifferential$0$0 ==. 005B 22 827 ret 828 .area CSEG (CODE) 829 .area CONST (CODE) 830 .area XINIT (CODE) 831 .area CABS (ABS,CODE)