1 .file "analog.c" 2 __SREG__ = 0x3f 3 __SP_H__ = 0x3e 4 __SP_L__ = 0x3d 5 __CCP__ = 0x34 6 __tmp_reg__ = 0 7 __zero_reg__ = 1 8 .text 9 .global ADC_Init 11 ADC_Init: 12 /* prologue: function */ 13 /* frame size = 0 */ 14 0000 1092 7C00 sts 124,__zero_reg__ 15 0004 8FEC ldi r24,lo8(-49) 16 0006 8093 7A00 sts 122,r24 17 /* epilogue start */ 18 000a 0895 ret 20 .global __vector_24 22 __vector_24: 23 000c 1F92 push __zero_reg__ 24 000e 0F92 push r0 25 0010 0FB6 in r0,__SREG__ 26 0012 0F92 push r0 27 0014 1124 clr __zero_reg__ 28 0016 6F92 push r6 29 0018 7F92 push r7 30 001a 8F92 push r8 31 001c 9F92 push r9 32 001e AF92 push r10 33 0020 BF92 push r11 34 0022 CF92 push r12 35 0024 DF92 push r13 36 0026 EF92 push r14 37 0028 FF92 push r15 38 002a 0F93 push r16 39 002c 1F93 push r17 40 002e 2F93 push r18 41 0030 3F93 push r19 42 0032 4F93 push r20 43 0034 5F93 push r21 44 0036 6F93 push r22 45 0038 7F93 push r23 46 003a 8F93 push r24 47 003c 9F93 push r25 48 003e AF93 push r26 49 0040 BF93 push r27 50 0042 EF93 push r30 51 0044 FF93 push r31 52 /* prologue: Signal */ 53 /* frame size = 0 */ 54 0046 8091 0000 lds r24,state.2325 55 004a 8F5F subi r24,lo8(-(1)) 56 004c 8093 0000 sts state.2325,r24 57 0050 8150 subi r24,lo8(-(-1)) 58 0052 E82F mov r30,r24 59 0054 F0E0 ldi r31,lo8(0) 60 0056 E231 cpi r30,18 61 0058 F105 cpc r31,__zero_reg__ 62 005a 00F0 brlo .+2 63 005c 00C0 rjmp .L4 64 005e E050 subi r30,lo8(-(gs(.L23))) 65 0060 F040 sbci r31,hi8(-(gs(.L23))) 66 0062 0C94 0000 jmp __tablejump2__ 67 .data 68 .section .progmem.gcc_sw_table, "a", @progbits 69 .p2align 1 70 .L23: 71 .data 72 .section .progmem.gcc_sw_table, "a", @progbits 73 .p2align 1 74 0000 0000 .word gs(.L5) 75 0002 0000 .word gs(.L6) 76 0004 0000 .word gs(.L7) 77 0006 0000 .word gs(.L8) 78 0008 0000 .word gs(.L9) 79 000a 0000 .word gs(.L15) 80 000c 0000 .word gs(.L11) 81 000e 0000 .word gs(.L12) 82 0010 0000 .word gs(.L13) 83 0012 0000 .word gs(.L14) 84 0014 0000 .word gs(.L15) 85 0016 0000 .word gs(.L16) 86 0018 0000 .word gs(.L17) 87 001a 0000 .word gs(.L18) 88 001c 0000 .word gs(.L19) 89 001e 0000 .word gs(.L20) 90 0020 0000 .word gs(.L21) 91 0022 0000 .word gs(.L22) 92 .text 93 .L5: 94 0066 8091 7800 lds r24,120 95 006a 9091 7900 lds r25,(120)+1 96 006e 9093 0000 sts (nick1.2329)+1,r25 97 0072 8093 0000 sts nick1.2329,r24 98 0076 00C0 rjmp .L45 99 .L6: 100 0078 8091 7800 lds r24,120 101 007c 9091 7900 lds r25,(120)+1 102 0080 00C0 rjmp .L44 103 .L7: 104 0082 8091 7800 lds r24,120 105 0086 9091 7900 lds r25,(120)+1 106 008a 9093 0000 sts (gier1.2327)+1,r25 107 008e 8093 0000 sts gier1.2327,r24 108 0092 00C0 rjmp .L46 109 .L8: 110 0094 2091 7800 lds r18,120 111 0098 3091 7900 lds r19,(120)+1 112 009c 8091 0000 lds r24,NeutralAccY 113 00a0 9091 0000 lds r25,(NeutralAccY)+1 114 00a4 821B sub r24,r18 115 00a6 930B sbc r25,r19 116 00a8 9093 0000 sts (Aktuell_ay)+1,r25 117 00ac 8093 0000 sts Aktuell_ay,r24 118 00b0 8091 0000 lds r24,Aktuell_ay 119 00b4 9091 0000 lds r25,(Aktuell_ay)+1 120 00b8 9093 0000 sts (accy.2332)+1,r25 121 00bc 8093 0000 sts accy.2332,r24 122 00c0 00C0 rjmp .L47 123 .L9: 124 00c2 8091 7800 lds r24,120 125 00c6 9091 7900 lds r25,(120)+1 126 00ca 2091 0000 lds r18,NeutralAccX 127 00ce 3091 0000 lds r19,(NeutralAccX)+1 128 00d2 821B sub r24,r18 129 00d4 930B sbc r25,r19 130 00d6 9093 0000 sts (Aktuell_ax)+1,r25 131 00da 8093 0000 sts Aktuell_ax,r24 132 00de 8091 0000 lds r24,Aktuell_ax 133 00e2 9091 0000 lds r25,(Aktuell_ax)+1 134 00e6 9093 0000 sts (accx.2333)+1,r25 135 00ea 8093 0000 sts accx.2333,r24 136 00ee 00C0 rjmp .L48 137 .L11: 138 00f0 8091 7800 lds r24,120 139 00f4 9091 7900 lds r25,(120)+1 140 00f8 2091 0000 lds r18,roll1.2328 141 00fc 3091 0000 lds r19,(roll1.2328)+1 142 0100 280F add r18,r24 143 0102 391F adc r19,r25 144 0104 3093 0000 sts (roll1.2328)+1,r19 145 0108 2093 0000 sts roll1.2328,r18 146 010c 84E0 ldi r24,lo8(4) 147 010e 00C0 rjmp .L43 148 .L12: 149 0110 4091 0000 lds r20,UBat 150 0114 5091 0000 lds r21,(UBat)+1 151 0118 8091 7800 lds r24,120 152 011c 9091 7900 lds r25,(120)+1 153 0120 9A01 movw r18,r20 154 0122 220F lsl r18 155 0124 331F rol r19 156 0126 240F add r18,r20 157 0128 351F adc r19,r21 158 012a 63E0 ldi r22,lo8(3) 159 012c 70E0 ldi r23,hi8(3) 160 012e 0E94 0000 call __udivmodhi4 161 0132 260F add r18,r22 162 0134 371F adc r19,r23 163 0136 3695 lsr r19 164 0138 2795 ror r18 165 013a 3695 lsr r19 166 013c 2795 ror r18 167 013e 3093 0000 sts (UBat)+1,r19 168 0142 2093 0000 sts UBat,r18 169 0146 85E0 ldi r24,lo8(5) 170 0148 00C0 rjmp .L43 171 .L13: 172 014a 8091 7800 lds r24,120 173 014e 9091 7900 lds r25,(120)+1 174 0152 4091 0000 lds r20,NeutralAccZ 175 0156 5091 0000 lds r21,(NeutralAccZ)+1 176 015a 841B sub r24,r20 177 015c 950B sbc r25,r21 178 015e 9093 0000 sts (AdWertAccHoch)+1,r25 179 0162 8093 0000 sts AdWertAccHoch,r24 180 0166 8091 0000 lds r24,AdWertAccHoch 181 016a 9091 0000 lds r25,(AdWertAccHoch)+1 182 016e 0297 sbiw r24,2 183 0170 04F0 brlt .L25 184 0172 22E0 ldi r18,hi8(750) 185 0174 4E3E cpi r20,lo8(750) 186 0176 5207 cpc r21,r18 187 0178 04F4 brge .L26 188 017a 2091 0000 lds r18,subcount.2326 189 017e 2B5F subi r18,lo8(-(5)) 190 0180 2093 0000 sts subcount.2326,r18 191 0184 2550 subi r18,lo8(-(-5)) 192 0186 8091 0000 lds r24,modell_fliegt 193 018a 9091 0000 lds r25,(modell_fliegt)+1 194 018e 845F subi r24,lo8(500) 195 0190 9140 sbci r25,hi8(500) 196 0192 00F4 brsh .L26 197 0194 215F subi r18,lo8(-(15)) 198 0196 2093 0000 sts subcount.2326,r18 199 .L26: 200 019a 8091 0000 lds r24,subcount.2326 201 019e 8536 cpi r24,lo8(101) 202 01a0 04F0 brlt .L27 203 01a2 4F5F subi r20,lo8(-(1)) 204 01a4 5F4F sbci r21,hi8(-(1)) 205 01a6 5093 0000 sts (NeutralAccZ)+1,r21 206 01aa 4093 0000 sts NeutralAccZ,r20 207 01ae 8456 subi r24,lo8(-(-100)) 208 01b0 00C0 rjmp .L39 209 .L25: 210 01b2 8091 0000 lds r24,AdWertAccHoch 211 01b6 9091 0000 lds r25,(AdWertAccHoch)+1 212 01ba 8F5F subi r24,lo8(-1) 213 01bc 9F4F sbci r25,hi8(-1) 214 01be 04F4 brge .L27 215 01c0 B2E0 ldi r27,hi8(551) 216 01c2 4732 cpi r20,lo8(551) 217 01c4 5B07 cpc r21,r27 218 01c6 04F0 brlt .L27 219 01c8 2091 0000 lds r18,subcount.2326 220 01cc 2550 subi r18,lo8(-(-5)) 221 01ce 2093 0000 sts subcount.2326,r18 222 01d2 2B5F subi r18,lo8(-(5)) 223 01d4 8091 0000 lds r24,modell_fliegt 224 01d8 9091 0000 lds r25,(modell_fliegt)+1 225 01dc 845F subi r24,lo8(500) 226 01de 9140 sbci r25,hi8(500) 227 01e0 00F4 brsh .L28 228 01e2 2F50 subi r18,lo8(-(-15)) 229 01e4 2093 0000 sts subcount.2326,r18 230 .L28: 231 01e8 8091 0000 lds r24,subcount.2326 232 01ec 8C39 cpi r24,lo8(-100) 233 01ee 04F4 brge .L27 234 01f0 4150 subi r20,lo8(-(-1)) 235 01f2 5040 sbci r21,hi8(-(-1)) 236 01f4 5093 0000 sts (NeutralAccZ)+1,r21 237 01f8 4093 0000 sts NeutralAccZ,r20 238 01fc 8C59 subi r24,lo8(-(100)) 239 .L39: 240 01fe 8093 0000 sts subcount.2326,r24 241 .L27: 242 0202 81E0 ldi r24,lo8(1) 243 0204 8093 0000 sts messanzahl_AccHoch,r24 244 0208 8091 7800 lds r24,120 245 020c 9091 7900 lds r25,(120)+1 246 0210 9093 0000 sts (Aktuell_az)+1,r25 247 0214 8093 0000 sts Aktuell_az,r24 248 0218 2091 0000 lds r18,Mess_Integral_Hoch 249 021c 3091 0000 lds r19,(Mess_Integral_Hoch)+1 250 0220 4091 0000 lds r20,(Mess_Integral_Hoch)+2 251 0224 5091 0000 lds r21,(Mess_Integral_Hoch)+3 252 0228 8091 0000 lds r24,AdWertAccHoch 253 022c 9091 0000 lds r25,(AdWertAccHoch)+1 254 0230 AA27 clr r26 255 0232 97FD sbrc r25,7 256 0234 A095 com r26 257 0236 BA2F mov r27,r26 258 0238 820F add r24,r18 259 023a 931F adc r25,r19 260 023c A41F adc r26,r20 261 023e B51F adc r27,r21 262 0240 8093 0000 sts Mess_Integral_Hoch,r24 263 0244 9093 0000 sts (Mess_Integral_Hoch)+1,r25 264 0248 A093 0000 sts (Mess_Integral_Hoch)+2,r26 265 024c B093 0000 sts (Mess_Integral_Hoch)+3,r27 266 0250 E090 0000 lds r14,Mess_Integral_Hoch 267 0254 F090 0000 lds r15,(Mess_Integral_Hoch)+1 268 0258 0091 0000 lds r16,(Mess_Integral_Hoch)+2 269 025c 1091 0000 lds r17,(Mess_Integral_Hoch)+3 270 0260 6091 0000 lds r22,Mess_Integral_Hoch 271 0264 7091 0000 lds r23,(Mess_Integral_Hoch)+1 272 0268 8091 0000 lds r24,(Mess_Integral_Hoch)+2 273 026c 9091 0000 lds r25,(Mess_Integral_Hoch)+3 274 0270 20E0 ldi r18,lo8(1024) 275 0272 34E0 ldi r19,hi8(1024) 276 0274 40E0 ldi r20,hlo8(1024) 277 0276 50E0 ldi r21,hhi8(1024) 278 0278 0E94 0000 call __divmodsi4 279 027c E21A sub r14,r18 280 027e F30A sbc r15,r19 281 0280 040B sbc r16,r20 282 0282 150B sbc r17,r21 283 0284 E092 0000 sts Mess_Integral_Hoch,r14 284 0288 F092 0000 sts (Mess_Integral_Hoch)+1,r15 285 028c 0093 0000 sts (Mess_Integral_Hoch)+2,r16 286 0290 1093 0000 sts (Mess_Integral_Hoch)+3,r17 287 0294 00C0 rjmp .L49 288 .L15: 289 0296 8091 7800 lds r24,120 290 029a 9091 7900 lds r25,(120)+1 291 029e 2091 0000 lds r18,nick1.2329 292 02a2 3091 0000 lds r19,(nick1.2329)+1 293 02a6 280F add r18,r24 294 02a8 391F adc r19,r25 295 02aa 3093 0000 sts (nick1.2329)+1,r19 296 02ae 2093 0000 sts nick1.2329,r18 297 02b2 00C0 rjmp .L45 298 .L16: 299 02b4 2091 7800 lds r18,120 300 02b8 3091 7900 lds r19,(120)+1 301 02bc 8091 0000 lds r24,roll1.2328 302 02c0 9091 0000 lds r25,(roll1.2328)+1 303 02c4 820F add r24,r18 304 02c6 931F adc r25,r19 305 .L44: 306 02c8 9093 0000 sts (roll1.2328)+1,r25 307 02cc 8093 0000 sts roll1.2328,r24 308 02d0 1092 0000 sts kanal.2324,__zero_reg__ 309 02d4 00C0 rjmp .L24 310 .L17: 311 02d6 8091 0000 lds r24,PlatinenVersion 312 02da 8A30 cpi r24,lo8(10) 313 02dc 01F4 brne .L29 314 02de 8091 7800 lds r24,120 315 02e2 9091 7900 lds r25,(120)+1 316 02e6 0196 adiw r24,1 317 02e8 2091 0000 lds r18,gier1.2327 318 02ec 3091 0000 lds r19,(gier1.2327)+1 319 02f0 820F add r24,r18 320 02f2 931F adc r25,r19 321 02f4 9695 lsr r25 322 02f6 8795 ror r24 323 02f8 00C0 rjmp .L40 324 .L29: 325 02fa 4091 0000 lds r20,gier1.2327 326 02fe 5091 0000 lds r21,(gier1.2327)+1 327 0302 8431 cpi r24,lo8(20) 328 0304 00F0 brlo .L31 329 0306 2091 7800 lds r18,120 330 030a 3091 7900 lds r19,(120)+1 331 030e 8FEF ldi r24,lo8(2047) 332 0310 97E0 ldi r25,hi8(2047) 333 0312 821B sub r24,r18 334 0314 930B sbc r25,r19 335 0316 841B sub r24,r20 336 0318 950B sbc r25,r21 337 031a 00C0 rjmp .L40 338 .L31: 339 031c 8091 7800 lds r24,120 340 0320 9091 7900 lds r25,(120)+1 341 0324 840F add r24,r20 342 0326 951F adc r25,r21 343 .L40: 344 0328 9093 0000 sts (AdWertGier)+1,r25 345 032c 8093 0000 sts AdWertGier,r24 346 .L46: 347 0330 86E0 ldi r24,lo8(6) 348 0332 00C0 rjmp .L43 349 .L18: 350 0334 2091 7800 lds r18,120 351 0338 3091 7900 lds r19,(120)+1 352 033c 8091 0000 lds r24,NeutralAccY 353 0340 9091 0000 lds r25,(NeutralAccY)+1 354 0344 821B sub r24,r18 355 0346 930B sbc r25,r19 356 0348 9093 0000 sts (Aktuell_ay)+1,r25 357 034c 8093 0000 sts Aktuell_ay,r24 358 0350 8091 0000 lds r24,Aktuell_ay 359 0354 9091 0000 lds r25,(Aktuell_ay)+1 360 0358 2091 0000 lds r18,accy.2332 361 035c 3091 0000 lds r19,(accy.2332)+1 362 0360 820F add r24,r18 363 0362 931F adc r25,r19 364 0364 9093 0000 sts (AdWertAccRoll)+1,r25 365 0368 8093 0000 sts AdWertAccRoll,r24 366 .L47: 367 036c 87E0 ldi r24,lo8(7) 368 036e 00C0 rjmp .L43 369 .L19: 370 0370 8091 7800 lds r24,120 371 0374 9091 7900 lds r25,(120)+1 372 0378 2091 0000 lds r18,NeutralAccX 373 037c 3091 0000 lds r19,(NeutralAccX)+1 374 0380 821B sub r24,r18 375 0382 930B sbc r25,r19 376 0384 9093 0000 sts (Aktuell_ax)+1,r25 377 0388 8093 0000 sts Aktuell_ax,r24 378 038c 8091 0000 lds r24,Aktuell_ax 379 0390 9091 0000 lds r25,(Aktuell_ax)+1 380 0394 2091 0000 lds r18,accx.2333 381 0398 3091 0000 lds r19,(accx.2333)+1 382 039c 820F add r24,r18 383 039e 931F adc r25,r19 384 03a0 9093 0000 sts (AdWertAccNick)+1,r25 385 03a4 8093 0000 sts AdWertAccNick,r24 386 03a8 00C0 rjmp .L48 387 .L20: 388 03aa 2091 7800 lds r18,120 389 03ae 3091 7900 lds r19,(120)+1 390 03b2 8091 0000 lds r24,nick1.2329 391 03b6 9091 0000 lds r25,(nick1.2329)+1 392 03ba 280F add r18,r24 393 03bc 391F adc r19,r25 394 03be 8091 0000 lds r24,PlatinenVersion 395 03c2 8A30 cpi r24,lo8(10) 396 03c4 01F4 brne .L32 397 03c6 220F lsl r18 398 03c8 331F rol r19 399 03ca 00C0 rjmp .L41 400 .L32: 401 03cc 220F lsl r18 402 03ce 331F rol r19 403 03d0 220F lsl r18 404 03d2 331F rol r19 405 .L41: 406 03d4 3093 0000 sts (nick1.2329)+1,r19 407 03d8 2093 0000 sts nick1.2329,r18 408 03dc 2091 0000 lds r18,nick1.2329 409 03e0 3091 0000 lds r19,(nick1.2329)+1 410 03e4 C901 movw r24,r18 411 03e6 68E0 ldi r22,lo8(8) 412 03e8 70E0 ldi r23,hi8(8) 413 03ea 0E94 0000 call __divmodhi4 414 03ee 7093 0000 sts (AdWertNick)+1,r23 415 03f2 6093 0000 sts AdWertNick,r22 416 03f6 8091 0000 lds r24,nick_filter.2330 417 03fa 9091 0000 lds r25,(nick_filter.2330)+1 418 03fe 820F add r24,r18 419 0400 931F adc r25,r19 420 0402 62E0 ldi r22,lo8(2) 421 0404 70E0 ldi r23,hi8(2) 422 0406 0E94 0000 call __divmodhi4 423 040a CB01 movw r24,r22 424 040c 7093 0000 sts (nick_filter.2330)+1,r23 425 0410 6093 0000 sts nick_filter.2330,r22 426 0414 2091 0000 lds r18,AdNeutralNick 427 0418 3091 0000 lds r19,(AdNeutralNick)+1 428 041c 821B sub r24,r18 429 041e 930B sbc r25,r19 430 0420 9093 0000 sts (HiResNick)+1,r25 431 0424 8093 0000 sts HiResNick,r24 432 0428 2091 0000 lds r18,AdWertNickFilter 433 042c 3091 0000 lds r19,(AdWertNickFilter)+1 434 0430 8091 0000 lds r24,HiResNick 435 0434 9091 0000 lds r25,(HiResNick)+1 436 0438 820F add r24,r18 437 043a 931F adc r25,r19 438 043c 62E0 ldi r22,lo8(2) 439 043e 70E0 ldi r23,hi8(2) 440 0440 0E94 0000 call __divmodhi4 441 0444 7093 0000 sts (AdWertNickFilter)+1,r23 442 0448 6093 0000 sts AdWertNickFilter,r22 443 .L45: 444 044c 81E0 ldi r24,lo8(1) 445 044e 00C0 rjmp .L43 446 .L21: 447 0450 2091 7800 lds r18,120 448 0454 3091 7900 lds r19,(120)+1 449 0458 8091 0000 lds r24,roll1.2328 450 045c 9091 0000 lds r25,(roll1.2328)+1 451 0460 280F add r18,r24 452 0462 391F adc r19,r25 453 0464 8091 0000 lds r24,PlatinenVersion 454 0468 8A30 cpi r24,lo8(10) 455 046a 01F4 brne .L34 456 046c 220F lsl r18 457 046e 331F rol r19 458 0470 00C0 rjmp .L42 459 .L34: 460 0472 220F lsl r18 461 0474 331F rol r19 462 0476 220F lsl r18 463 0478 331F rol r19 464 .L42: 465 047a 3093 0000 sts (roll1.2328)+1,r19 466 047e 2093 0000 sts roll1.2328,r18 467 0482 2091 0000 lds r18,roll1.2328 468 0486 3091 0000 lds r19,(roll1.2328)+1 469 048a C901 movw r24,r18 470 048c 68E0 ldi r22,lo8(8) 471 048e 70E0 ldi r23,hi8(8) 472 0490 0E94 0000 call __divmodhi4 473 0494 7093 0000 sts (AdWertRoll)+1,r23 474 0498 6093 0000 sts AdWertRoll,r22 475 049c 8091 0000 lds r24,roll_filter.2331 476 04a0 9091 0000 lds r25,(roll_filter.2331)+1 477 04a4 820F add r24,r18 478 04a6 931F adc r25,r19 479 04a8 62E0 ldi r22,lo8(2) 480 04aa 70E0 ldi r23,hi8(2) 481 04ac 0E94 0000 call __divmodhi4 482 04b0 CB01 movw r24,r22 483 04b2 7093 0000 sts (roll_filter.2331)+1,r23 484 04b6 6093 0000 sts roll_filter.2331,r22 485 04ba 2091 0000 lds r18,AdNeutralRoll 486 04be 3091 0000 lds r19,(AdNeutralRoll)+1 487 04c2 821B sub r24,r18 488 04c4 930B sbc r25,r19 489 04c6 9093 0000 sts (HiResRoll)+1,r25 490 04ca 8093 0000 sts HiResRoll,r24 491 04ce 2091 0000 lds r18,AdWertRollFilter 492 04d2 3091 0000 lds r19,(AdWertRollFilter)+1 493 04d6 8091 0000 lds r24,HiResRoll 494 04da 9091 0000 lds r25,(HiResRoll)+1 495 04de 820F add r24,r18 496 04e0 931F adc r25,r19 497 04e2 62E0 ldi r22,lo8(2) 498 04e4 70E0 ldi r23,hi8(2) 499 04e6 0E94 0000 call __divmodhi4 500 04ea 7093 0000 sts (AdWertRollFilter)+1,r23 501 04ee 6093 0000 sts AdWertRollFilter,r22 502 .L49: 503 04f2 83E0 ldi r24,lo8(3) 504 04f4 00C0 rjmp .L43 505 .L22: 506 04f6 1092 0000 sts state.2325,__zero_reg__ 507 04fa 81E0 ldi r24,lo8(1) 508 04fc 8093 0000 sts AdReady,r24 509 0500 8091 0000 lds r24,ZaehlMessungen 510 0504 9091 0000 lds r25,(ZaehlMessungen)+1 511 0508 0196 adiw r24,1 512 050a 9093 0000 sts (ZaehlMessungen)+1,r25 513 050e 8093 0000 sts ZaehlMessungen,r24 514 .L14: 515 0512 8091 7800 lds r24,120 516 0516 9091 7900 lds r25,(120)+1 517 051a 9093 0000 sts (MessLuftdruck)+1,r25 518 051e 8093 0000 sts MessLuftdruck,r24 519 0522 8091 0000 lds r24,MessLuftdruck 520 0526 9091 0000 lds r25,(MessLuftdruck)+1 521 052a 3C01 movw r6,r24 522 052c 8824 clr r8 523 052e 9924 clr r9 524 0530 8091 0000 lds r24,tmpLuftdruck.2334 525 0534 9091 0000 lds r25,(tmpLuftdruck.2334)+1 526 0538 A091 0000 lds r26,(tmpLuftdruck.2334)+2 527 053c B091 0000 lds r27,(tmpLuftdruck.2334)+3 528 0540 680E add r6,r24 529 0542 791E adc r7,r25 530 0544 8A1E adc r8,r26 531 0546 9B1E adc r9,r27 532 0548 6092 0000 sts tmpLuftdruck.2334,r6 533 054c 7092 0000 sts (tmpLuftdruck.2334)+1,r7 534 0550 8092 0000 sts (tmpLuftdruck.2334)+2,r8 535 0554 9092 0000 sts (tmpLuftdruck.2334)+3,r9 536 0558 8091 0000 lds r24,messanzahl_Druck.2335 537 055c 8F5F subi r24,lo8(-(1)) 538 055e 8093 0000 sts messanzahl_Druck.2335,r24 539 0562 8231 cpi r24,lo8(18) 540 0564 00F4 brsh .+2 541 0566 00C0 rjmp .L48 542 0568 8091 0000 lds r24,Luftdruck 543 056c 9091 0000 lds r25,(Luftdruck)+1 544 0570 A091 0000 lds r26,(Luftdruck)+2 545 0574 B091 0000 lds r27,(Luftdruck)+3 546 0578 7C01 movw r14,r24 547 057a 8D01 movw r16,r26 548 057c 43E0 ldi r20,3 549 057e EE0C 1: lsl r14 550 0580 FF1C rol r15 551 0582 001F rol r16 552 0584 111F rol r17 553 0586 4A95 dec r20 554 0588 01F4 brne 1b 555 058a E81A sub r14,r24 556 058c F90A sbc r15,r25 557 058e 0A0B sbc r16,r26 558 0590 1B0B sbc r17,r27 559 0592 84E0 ldi r24,lo8(4) 560 0594 90E0 ldi r25,hi8(4) 561 0596 A0E0 ldi r26,hlo8(4) 562 0598 B0E0 ldi r27,hhi8(4) 563 059a E80E add r14,r24 564 059c F91E adc r15,r25 565 059e 0A1F adc r16,r26 566 05a0 1B1F adc r17,r27 567 05a2 E60C add r14,r6 568 05a4 F71C adc r15,r7 569 05a6 081D adc r16,r8 570 05a8 191D adc r17,r9 571 05aa 6091 0000 lds r22,ExpandBaro 572 05ae 7727 clr r23 573 05b0 67FD sbrc r22,7 574 05b2 7095 com r23 575 05b4 872F mov r24,r23 576 05b6 972F mov r25,r23 577 05b8 2AE3 ldi r18,lo8(-9414) 578 05ba 3BED ldi r19,hi8(-9414) 579 05bc 4FEF ldi r20,hlo8(-9414) 580 05be 5FEF ldi r21,hhi8(-9414) 581 05c0 0E94 0000 call __mulsi3 582 05c4 E60E add r14,r22 583 05c6 F71E adc r15,r23 584 05c8 081F adc r16,r24 585 05ca 191F adc r17,r25 586 05cc C801 movw r24,r16 587 05ce B701 movw r22,r14 588 05d0 28E0 ldi r18,lo8(8) 589 05d2 30E0 ldi r19,hi8(8) 590 05d4 40E0 ldi r20,hlo8(8) 591 05d6 50E0 ldi r21,hhi8(8) 592 05d8 0E94 0000 call __divmodsi4 593 05dc C901 movw r24,r18 594 05de DA01 movw r26,r20 595 05e0 8093 0000 sts Luftdruck,r24 596 05e4 9093 0000 sts (Luftdruck)+1,r25 597 05e8 A093 0000 sts (Luftdruck)+2,r26 598 05ec B093 0000 sts (Luftdruck)+3,r27 599 05f0 E090 0000 lds r14,StartLuftdruck 600 05f4 F090 0000 lds r15,(StartLuftdruck)+1 601 05f8 8091 0000 lds r24,Luftdruck 602 05fc 9091 0000 lds r25,(Luftdruck)+1 603 0600 A091 0000 lds r26,(Luftdruck)+2 604 0604 B091 0000 lds r27,(Luftdruck)+3 605 0608 0027 clr r16 606 060a F7FC sbrc r15,7 607 060c 0095 com r16 608 060e 102F mov r17,r16 609 0610 E81A sub r14,r24 610 0612 F90A sbc r15,r25 611 0614 0A0B sbc r16,r26 612 0616 1B0B sbc r17,r27 613 0618 E092 0000 sts HoehenWert,r14 614 061c F092 0000 sts (HoehenWert)+1,r15 615 0620 0093 0000 sts (HoehenWert)+2,r16 616 0624 1093 0000 sts (HoehenWert)+3,r17 617 0628 A090 0000 lds r10,SummenHoehe 618 062c B090 0000 lds r11,(SummenHoehe)+1 619 0630 C090 0000 lds r12,(SummenHoehe)+2 620 0634 D090 0000 lds r13,(SummenHoehe)+3 621 0638 6091 0000 lds r22,SummenHoehe 622 063c 7091 0000 lds r23,(SummenHoehe)+1 623 0640 8091 0000 lds r24,(SummenHoehe)+2 624 0644 9091 0000 lds r25,(SummenHoehe)+3 625 0648 20E1 ldi r18,lo8(16) 626 064a 30E0 ldi r19,hi8(16) 627 064c 40E0 ldi r20,hlo8(16) 628 064e 50E0 ldi r21,hhi8(16) 629 0650 0E94 0000 call __divmodsi4 630 0654 A21A sub r10,r18 631 0656 B30A sbc r11,r19 632 0658 C40A sbc r12,r20 633 065a D50A sbc r13,r21 634 065c A092 0000 sts SummenHoehe,r10 635 0660 B092 0000 sts (SummenHoehe)+1,r11 636 0664 C092 0000 sts (SummenHoehe)+2,r12 637 0668 D092 0000 sts (SummenHoehe)+3,r13 638 066c 8091 0000 lds r24,SummenHoehe 639 0670 9091 0000 lds r25,(SummenHoehe)+1 640 0674 A091 0000 lds r26,(SummenHoehe)+2 641 0678 B091 0000 lds r27,(SummenHoehe)+3 642 067c 8E0D add r24,r14 643 067e 9F1D adc r25,r15 644 0680 A01F adc r26,r16 645 0682 B11F adc r27,r17 646 0684 8093 0000 sts SummenHoehe,r24 647 0688 9093 0000 sts (SummenHoehe)+1,r25 648 068c A093 0000 sts (SummenHoehe)+2,r26 649 0690 B093 0000 sts (SummenHoehe)+3,r27 650 0694 C090 0000 lds r12,VarioMeter 651 0698 D090 0000 lds r13,(VarioMeter)+1 652 069c 6091 0000 lds r22,SummenHoehe 653 06a0 7091 0000 lds r23,(SummenHoehe)+1 654 06a4 8091 0000 lds r24,(SummenHoehe)+2 655 06a8 9091 0000 lds r25,(SummenHoehe)+3 656 06ac 20E1 ldi r18,lo8(16) 657 06ae 30E0 ldi r19,hi8(16) 658 06b0 40E0 ldi r20,hlo8(16) 659 06b2 50E0 ldi r21,hhi8(16) 660 06b4 0E94 0000 call __divmodsi4 661 06b8 5095 com r21 662 06ba 4095 com r20 663 06bc 3095 com r19 664 06be 2195 neg r18 665 06c0 3F4F sbci r19,lo8(-1) 666 06c2 4F4F sbci r20,lo8(-1) 667 06c4 5F4F sbci r21,lo8(-1) 668 06c6 E20E add r14,r18 669 06c8 F31E adc r15,r19 670 06ca 33E0 ldi r19,3 671 06cc EE0C 1: lsl r14 672 06ce FF1C rol r15 673 06d0 3A95 dec r19 674 06d2 01F4 brne 1b 675 06d4 C601 movw r24,r12 676 06d6 25E0 ldi r18,5 677 06d8 880F 1: lsl r24 678 06da 991F rol r25 679 06dc 2A95 dec r18 680 06de 01F4 brne 1b 681 06e0 8C19 sub r24,r12 682 06e2 9D09 sbc r25,r13 683 06e4 8E0D add r24,r14 684 06e6 9F1D adc r25,r15 685 06e8 60E2 ldi r22,lo8(32) 686 06ea 70E0 ldi r23,hi8(32) 687 06ec 0E94 0000 call __divmodhi4 688 06f0 7093 0000 sts (VarioMeter)+1,r23 689 06f4 6093 0000 sts VarioMeter,r22 690 06f8 C401 movw r24,r8 691 06fa B301 movw r22,r6 692 06fc 22E0 ldi r18,lo8(2) 693 06fe 30E0 ldi r19,hi8(2) 694 0700 40E0 ldi r20,hlo8(2) 695 0702 50E0 ldi r21,hhi8(2) 696 0704 0E94 0000 call __divmodsi4 697 0708 2093 0000 sts tmpLuftdruck.2334,r18 698 070c 3093 0000 sts (tmpLuftdruck.2334)+1,r19 699 0710 4093 0000 sts (tmpLuftdruck.2334)+2,r20 700 0714 5093 0000 sts (tmpLuftdruck.2334)+3,r21 701 0718 89E0 ldi r24,lo8(9) 702 071a 8093 0000 sts messanzahl_Druck.2335,r24 703 071e 00C0 rjmp .L48 704 .L4: 705 0720 1092 0000 sts state.2325,__zero_reg__ 706 .L48: 707 0724 82E0 ldi r24,lo8(2) 708 .L43: 709 0726 8093 0000 sts kanal.2324,r24 710 .L24: 711 072a 8091 0000 lds r24,kanal.2324 712 072e 8093 7C00 sts 124,r24 713 0732 8091 0000 lds r24,state.2325 714 0736 8823 tst r24 715 0738 01F0 breq .L38 716 073a 8FEC ldi r24,lo8(-49) 717 073c 8093 7A00 sts 122,r24 718 .L38: 719 /* epilogue start */ 720 0740 FF91 pop r31 721 0742 EF91 pop r30 722 0744 BF91 pop r27 723 0746 AF91 pop r26 724 0748 9F91 pop r25 725 074a 8F91 pop r24 726 074c 7F91 pop r23 727 074e 6F91 pop r22 728 0750 5F91 pop r21 729 0752 4F91 pop r20 730 0754 3F91 pop r19 731 0756 2F91 pop r18 732 0758 1F91 pop r17 733 075a 0F91 pop r16 734 075c FF90 pop r15 735 075e EF90 pop r14 736 0760 DF90 pop r13 737 0762 CF90 pop r12 738 0764 BF90 pop r11 739 0766 AF90 pop r10 740 0768 9F90 pop r9 741 076a 8F90 pop r8 742 076c 7F90 pop r7 743 076e 6F90 pop r6 744 0770 0F90 pop r0 745 0772 0FBE out __SREG__,r0 746 0774 0F90 pop r0 747 0776 1F90 pop __zero_reg__ 748 0778 1895 reti 750 .global SucheGyroOffset 752 SucheGyroOffset: 753 077a A0E0 ldi r26,lo8(0) 754 077c B0E0 ldi r27,hi8(0) 755 077e E0E0 ldi r30,lo8(gs(1f)) 756 0780 F0E0 ldi r31,hi8(gs(1f)) 757 0782 0C94 0000 jmp __prologue_saves__+((18 - 13) * 2) 758 1: 759 /* prologue: function */ 760 /* frame size = 0 */ 761 0786 80ED ldi r24,lo8(2000) 762 0788 97E0 ldi r25,hi8(2000) 763 078a 0E94 0000 call SetDelay 764 078e EC01 movw r28,r24 765 0790 0CE8 ldi r16,lo8(-116) 766 0792 52E1 ldi r21,lo8(18) 767 0794 752E mov r7,r21 768 0796 45EA ldi r20,lo8(-91) 769 0798 842E mov r8,r20 770 079a 3AE0 ldi r19,lo8(10) 771 079c E32E mov r14,r19 772 079e 25EF ldi r18,lo8(-11) 773 07a0 F22E mov r15,r18 774 07a2 90E0 ldi r25,lo8(gs(uart_putchar)) 775 07a4 A92E mov r10,r25 776 07a6 90E0 ldi r25,hi8(gs(uart_putchar)) 777 07a8 B92E mov r11,r25 778 07aa 80E0 ldi r24,lo8(__c.2279) 779 07ac C82E mov r12,r24 780 07ae 80E0 ldi r24,hi8(__c.2279) 781 07b0 D82E mov r13,r24 782 07b2 1FEC ldi r17,lo8(-49) 783 07b4 912E mov r9,r17 784 07b6 00C0 rjmp .L78 785 .L71: 786 07b8 1330 cpi r17,lo8(3) 787 07ba 01F4 brne .L78 788 07bc 0B30 cpi r16,lo8(11) 789 07be 00F0 brlo .L78 790 07c0 09E0 ldi r16,lo8(9) 791 .L78: 792 07c2 8091 0000 lds r24,AdWertNick 793 07c6 9091 0000 lds r25,(AdWertNick)+1 794 07ca 8C5F subi r24,lo8(1020) 795 07cc 9340 sbci r25,hi8(1020) 796 07ce 04F4 brge .L52 797 07d0 8091 0000 lds r24,AnalogOffsetNick 798 07d4 8150 subi r24,lo8(-(-1)) 799 07d6 00C0 rjmp .L79 800 .L52: 801 07d8 8091 0000 lds r24,AdWertNick 802 07dc 9091 0000 lds r25,(AdWertNick)+1 803 07e0 8750 subi r24,lo8(1031) 804 07e2 9440 sbci r25,hi8(1031) 805 07e4 04F4 brge .L54 806 07e6 11E0 ldi r17,lo8(1) 807 07e8 00C0 rjmp .L53 808 .L54: 809 07ea 8091 0000 lds r24,AnalogOffsetNick 810 07ee 8F5F subi r24,lo8(-(1)) 811 .L79: 812 07f0 8093 0000 sts AnalogOffsetNick,r24 813 07f4 10E0 ldi r17,lo8(0) 814 .L53: 815 07f6 8091 0000 lds r24,AdWertRoll 816 07fa 9091 0000 lds r25,(AdWertRoll)+1 817 07fe 8C5F subi r24,lo8(1020) 818 0800 9340 sbci r25,hi8(1020) 819 0802 04F4 brge .L55 820 0804 8091 0000 lds r24,AnalogOffsetRoll 821 0808 8150 subi r24,lo8(-(-1)) 822 080a 00C0 rjmp .L80 823 .L55: 824 080c 8091 0000 lds r24,AdWertRoll 825 0810 9091 0000 lds r25,(AdWertRoll)+1 826 0814 8750 subi r24,lo8(1031) 827 0816 9440 sbci r25,hi8(1031) 828 0818 04F0 brlt .L57 829 081a 8091 0000 lds r24,AnalogOffsetRoll 830 081e 8F5F subi r24,lo8(-(1)) 831 .L80: 832 0820 8093 0000 sts AnalogOffsetRoll,r24 833 0824 00C0 rjmp .L56 834 .L57: 835 0826 1F5F subi r17,lo8(-(1)) 836 .L56: 837 0828 8091 0000 lds r24,AdWertGier 838 082c 9091 0000 lds r25,(AdWertGier)+1 839 0830 8C5F subi r24,lo8(1020) 840 0832 9340 sbci r25,hi8(1020) 841 0834 04F4 brge .L58 842 0836 8091 0000 lds r24,AnalogOffsetGier 843 083a 8150 subi r24,lo8(-(-1)) 844 083c 00C0 rjmp .L81 845 .L58: 846 083e 8091 0000 lds r24,AdWertGier 847 0842 9091 0000 lds r25,(AdWertGier)+1 848 0846 8750 subi r24,lo8(1031) 849 0848 9440 sbci r25,hi8(1031) 850 084a 04F0 brlt .L60 851 084c 8091 0000 lds r24,AnalogOffsetGier 852 0850 8F5F subi r24,lo8(-(1)) 853 .L81: 854 0852 8093 0000 sts AnalogOffsetGier,r24 855 0856 00C0 rjmp .L59 856 .L60: 857 0858 1F5F subi r17,lo8(-(1)) 858 .L59: 859 085a 7092 0000 sts twi_state,r7 860 085e 8091 0000 lds r24,BLFlags 861 0862 8E7F andi r24,lo8(-2) 862 0864 8093 0000 sts BLFlags,r24 863 0868 8092 BC00 sts 188,r8 864 086c 8091 0000 lds r24,AnalogOffsetNick 865 0870 8A30 cpi r24,lo8(10) 866 0872 00F4 brsh .L61 867 0874 8091 0000 lds r24,VersionInfo+5 868 0878 8160 ori r24,lo8(1) 869 087a 8093 0000 sts VersionInfo+5,r24 870 087e E092 0000 sts AnalogOffsetNick,r14 871 .L61: 872 0882 8091 0000 lds r24,AnalogOffsetNick 873 0886 863F cpi r24,lo8(-10) 874 0888 00F0 brlo .L62 875 088a 8091 0000 lds r24,VersionInfo+5 876 088e 8160 ori r24,lo8(1) 877 0890 8093 0000 sts VersionInfo+5,r24 878 0894 F092 0000 sts AnalogOffsetNick,r15 879 .L62: 880 0898 8091 0000 lds r24,AnalogOffsetRoll 881 089c 8A30 cpi r24,lo8(10) 882 089e 00F4 brsh .L63 883 08a0 8091 0000 lds r24,VersionInfo+5 884 08a4 8260 ori r24,lo8(2) 885 08a6 8093 0000 sts VersionInfo+5,r24 886 08aa E092 0000 sts AnalogOffsetRoll,r14 887 .L63: 888 08ae 8091 0000 lds r24,AnalogOffsetRoll 889 08b2 863F cpi r24,lo8(-10) 890 08b4 00F0 brlo .L64 891 08b6 8091 0000 lds r24,VersionInfo+5 892 08ba 8260 ori r24,lo8(2) 893 08bc 8093 0000 sts VersionInfo+5,r24 894 08c0 F092 0000 sts AnalogOffsetRoll,r15 895 .L64: 896 08c4 8091 0000 lds r24,AnalogOffsetGier 897 08c8 8A30 cpi r24,lo8(10) 898 08ca 00F4 brsh .L65 899 08cc 8091 0000 lds r24,VersionInfo+5 900 08d0 8460 ori r24,lo8(4) 901 08d2 8093 0000 sts VersionInfo+5,r24 902 08d6 E092 0000 sts AnalogOffsetGier,r14 903 .L65: 904 08da 8091 0000 lds r24,AnalogOffsetGier 905 08de 863F cpi r24,lo8(-10) 906 08e0 00F0 brlo .L74 907 08e2 8091 0000 lds r24,VersionInfo+5 908 08e6 8460 ori r24,lo8(4) 909 08e8 8093 0000 sts VersionInfo+5,r24 910 08ec F092 0000 sts AnalogOffsetGier,r15 911 08f0 00C0 rjmp .L74 912 .L68: 913 08f2 CE01 movw r24,r28 914 08f4 0E94 0000 call CheckDelay 915 08f8 8823 tst r24 916 08fa 01F0 breq .L74 917 08fc 00D0 rcall . 918 08fe 00D0 rcall . 919 0900 EDB7 in r30,__SP_L__ 920 0902 FEB7 in r31,__SP_H__ 921 0904 B282 std Z+2,r11 922 0906 A182 std Z+1,r10 923 0908 D482 std Z+4,r13 924 090a C382 std Z+3,r12 925 090c E091 0000 lds r30,_printf_P 926 0910 F091 0000 lds r31,(_printf_P)+1 927 0914 0995 icall 928 0916 0F90 pop __tmp_reg__ 929 0918 0F90 pop __tmp_reg__ 930 091a 0F90 pop __tmp_reg__ 931 091c 0F90 pop __tmp_reg__ 932 091e 00C0 rjmp .L67 933 .L74: 934 0920 8091 0000 lds r24,twi_state 935 0924 8823 tst r24 936 0926 01F4 brne .L68 937 .L67: 938 0928 1092 0000 sts AdReady,__zero_reg__ 939 092c 9092 7A00 sts 122,r9 940 .L69: 941 0930 8091 0000 lds r24,AdReady 942 0934 8823 tst r24 943 0936 01F0 breq .L69 944 0938 0A30 cpi r16,lo8(10) 945 093a 00F4 brsh .L70 946 093c 8AE0 ldi r24,lo8(10) 947 093e 90E0 ldi r25,hi8(10) 948 0940 0E94 0000 call Delay_ms_Mess 949 .L70: 950 0944 0150 subi r16,lo8(-(-1)) 951 0946 01F0 breq .+2 952 0948 00C0 rjmp .L71 953 094a 86E4 ldi r24,lo8(70) 954 094c 90E0 ldi r25,hi8(70) 955 094e 0E94 0000 call Delay_ms_Mess 956 /* epilogue start */ 957 0952 CDB7 in r28,__SP_L__ 958 0954 DEB7 in r29,__SP_H__ 959 0956 EDE0 ldi r30, lo8(13) 960 0958 0C94 0000 jmp __epilogue_restores__ + ((18 - 13) * 2) 962 .global SucheLuftruckOffset 964 SucheLuftruckOffset: 965 095c EF92 push r14 966 095e FF92 push r15 967 0960 0F93 push r16 968 0962 1F93 push r17 969 0964 CF93 push r28 970 0966 DF93 push r29 971 /* prologue: function */ 972 /* frame size = 0 */ 973 0968 1092 0000 sts ExpandBaro,__zero_reg__ 974 096c 83E0 ldi r24,lo8(3) 975 096e 90E0 ldi r25,hi8(3) 976 0970 0E94 0000 call GetParamByte 977 0974 C82F mov r28,r24 978 0976 D0E0 ldi r29,lo8(0) 979 0978 C531 cpi r28,21 980 097a D105 cpc r29,__zero_reg__ 981 097c 00F0 brlo .L83 982 097e 2A97 sbiw r28,10 983 .L83: 984 0980 C7BD out 71-32,r28 985 0982 84E6 ldi r24,lo8(100) 986 0984 90E0 ldi r25,hi8(100) 987 0986 0E94 0000 call Delay_ms_Mess 988 098a 8091 0000 lds r24,MessLuftdruck 989 098e 9091 0000 lds r25,(MessLuftdruck)+1 990 0992 8052 subi r24,lo8(800) 991 0994 9340 sbci r25,hi8(800) 992 0996 00F4 brsh .L84 993 0998 C0E0 ldi r28,lo8(0) 994 099a D0E0 ldi r29,hi8(0) 995 099c 00C0 rjmp .L84 996 .L86: 997 099e C7BD out 71-32,r28 998 09a0 82E3 ldi r24,lo8(50) 999 09a2 90E0 ldi r25,hi8(50) 1000 09a4 0E94 0000 call Delay_ms_Mess 1001 09a8 00D0 rcall . 1002 09aa 00D0 rcall . 1003 09ac EDB7 in r30,__SP_L__ 1004 09ae FEB7 in r31,__SP_H__ 1005 09b0 F282 std Z+2,r15 1006 09b2 E182 std Z+1,r14 1007 09b4 1483 std Z+4,r17 1008 09b6 0383 std Z+3,r16 1009 09b8 E091 0000 lds r30,_printf_P 1010 09bc F091 0000 lds r31,(_printf_P)+1 1011 09c0 0995 icall 1012 09c2 8091 0000 lds r24,MessLuftdruck 1013 09c6 9091 0000 lds r25,(MessLuftdruck)+1 1014 09ca 0F90 pop __tmp_reg__ 1015 09cc 0F90 pop __tmp_reg__ 1016 09ce 0F90 pop __tmp_reg__ 1017 09d0 0F90 pop __tmp_reg__ 1018 09d2 8052 subi r24,lo8(800) 1019 09d4 9340 sbci r25,hi8(800) 1020 09d6 00F0 brlo .L85 1021 09d8 2196 adiw r28,1 1022 09da 00C0 rjmp .L89 1023 .L84: 1024 09dc 60E0 ldi r22,lo8(gs(uart_putchar)) 1025 09de E62E mov r14,r22 1026 09e0 60E0 ldi r22,hi8(gs(uart_putchar)) 1027 09e2 F62E mov r15,r22 1028 09e4 00E0 ldi r16,lo8(__c.2252) 1029 09e6 10E0 ldi r17,hi8(__c.2252) 1030 .L89: 1031 09e8 CA3F cpi r28,250 1032 09ea D105 cpc r29,__zero_reg__ 1033 09ec 00F0 brlo .L86 1034 .L85: 1035 09ee 1C2F mov r17,r28 1036 09f0 C093 0000 sts DruckOffsetSetting,r28 1037 09f4 83E0 ldi r24,lo8(3) 1038 09f6 90E0 ldi r25,hi8(3) 1039 09f8 6C2F mov r22,r28 1040 09fa 0E94 0000 call SetParamByte 1041 09fe 8091 0000 lds r24,EE_Parameter+13 1042 0a02 80FF sbrs r24,0 1043 0a04 00C0 rjmp .L87 1044 0a06 8091 0000 lds r24,DruckOffsetSetting 1045 0a0a 8A50 subi r24,lo8(-(-10)) 1046 0a0c 8B3E cpi r24,lo8(-21) 1047 0a0e 00F0 brlo .L87 1048 0a10 8091 0000 lds r24,VersionInfo+5 1049 0a14 8064 ori r24,lo8(64) 1050 0a16 8093 0000 sts VersionInfo+5,r24 1051 .L87: 1052 0a1a 17BD out 71-32,r17 1053 0a1c 8CE2 ldi r24,lo8(300) 1054 0a1e 91E0 ldi r25,hi8(300) 1055 0a20 0E94 0000 call Delay_ms_Mess 1056 /* epilogue start */ 1057 0a24 CDB7 in r28,__SP_L__ 1058 0a26 DEB7 in r29,__SP_H__ 1059 0a28 E6E0 ldi r30, lo8(6) 1060 0a2a 0C94 0000 jmp __epilogue_restores__ + ((18 - 6) * 2) 1062 .global UBat 1063 .data 1066 UBat: 1067 0000 6400 .word 100 1068 .global AdWertNickFilter 1069 .global AdWertNickFilter 1070 .section .bss 1073 AdWertNickFilter: 1074 0000 0000 .skip 2,0 1075 .global AdWertRollFilter 1076 .global AdWertRollFilter 1079 AdWertRollFilter: 1080 0002 0000 .skip 2,0 1081 .global AdWertGierFilter 1082 .global AdWertGierFilter 1085 AdWertGierFilter: 1086 0004 0000 .skip 2,0 1087 .global HiResNick 1088 .data 1091 HiResNick: 1092 0002 C409 .word 2500 1093 .global HiResRoll 1096 HiResRoll: 1097 0004 C409 .word 2500 1098 .global AdWertNick 1099 .global AdWertNick 1100 .section .bss 1103 AdWertNick: 1104 0006 0000 .skip 2,0 1105 .global AdWertRoll 1106 .global AdWertRoll 1109 AdWertRoll: 1110 0008 0000 .skip 2,0 1111 .global AdWertGier 1112 .global AdWertGier 1115 AdWertGier: 1116 000a 0000 .skip 2,0 1117 .global AdWertAccRoll 1118 .global AdWertAccRoll 1121 AdWertAccRoll: 1122 000c 0000 .skip 2,0 1123 .global AdWertAccNick 1124 .global AdWertAccNick 1127 AdWertAccNick: 1128 000e 0000 .skip 2,0 1129 .global AdWertAccHoch 1130 .global AdWertAccHoch 1133 AdWertAccHoch: 1134 0010 0000 .skip 2,0 1135 .global messanzahl_AccHoch 1136 .global messanzahl_AccHoch 1139 messanzahl_AccHoch: 1140 0012 00 .skip 1,0 1141 .global Luftdruck 1142 .data 1145 Luftdruck: 1146 0006 00 .byte 0 1147 0007 7D .byte 125 1148 0008 00 .byte 0 1149 0009 00 .byte 0 1150 .global SummenHoehe 1151 .global SummenHoehe 1152 .section .bss 1155 SummenHoehe: 1156 0013 0000 0000 .skip 4,0 1157 .global MessLuftdruck 1158 .data 1161 MessLuftdruck: 1162 000a FF03 .word 1023 1163 .global ExpandBaro 1164 .global ExpandBaro 1165 .section .bss 1168 ExpandBaro: 1169 0017 00 .skip 1,0 1170 .global VarioMeter 1171 .global VarioMeter 1174 VarioMeter: 1175 0018 0000 .skip 2,0 1176 .global ZaehlMessungen 1177 .global ZaehlMessungen 1180 ZaehlMessungen: 1181 001a 0000 .skip 2,0 1182 .global AnalogOffsetNick 1183 .data 1186 AnalogOffsetNick: 1187 000c 73 .byte 115 1188 .global AnalogOffsetRoll 1191 AnalogOffsetRoll: 1192 000d 73 .byte 115 1193 .global AnalogOffsetGier 1196 AnalogOffsetGier: 1197 000e 73 .byte 115 1198 .global AdReady 1201 AdReady: 1202 000f 01 .byte 1 1203 .lcomm messanzahl_Druck.2335,1 1204 .lcomm tmpLuftdruck.2334,4 1205 .lcomm accx.2333,2 1206 .lcomm accy.2332,2 1207 .lcomm roll_filter.2331,2 1208 .lcomm nick_filter.2330,2 1209 .lcomm nick1.2329,2 1210 .lcomm roll1.2328,2 1211 .lcomm gier1.2327,2 1212 .lcomm subcount.2326,1 1213 .lcomm state.2325,1 1214 .lcomm kanal.2324,1 1215 .section .progmem.data,"a",@progbits 1218 __c.2279: 1219 0000 0A0D 2044 .string "\n\r DAC or I2C ERROR! Check I2C, 3Vref, DAC and BL-Ctrl" 1219 4143 206F 1219 7220 4932 1219 4320 4552 1219 524F 5221 1222 __c.2252: 1223 0037 2E00 .string "." 1224 .comm Aktuell_Nick,2,1 1225 .comm Aktuell_Roll,2,1 1226 .comm Aktuell_Gier,2,1 1227 .comm Aktuell_ax,2,1 1228 .comm Aktuell_ay,2,1 1229 .comm Aktuell_az,2,1 1230 .comm DruckOffsetSetting,1,1 1231 .comm StartLuftdruck,2,1 1232 .comm NeutralAccZ_float,4,1 1233 .global __do_copy_data 1234 .global __do_clear_bss DEFINED SYMBOLS *ABS*:00000000 analog.c C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:2 *ABS*:0000003f __SREG__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:3 *ABS*:0000003e __SP_H__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:4 *ABS*:0000003d __SP_L__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:5 *ABS*:00000034 __CCP__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:6 *ABS*:00000000 __tmp_reg__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:7 *ABS*:00000001 __zero_reg__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:11 .text:00000000 ADC_Init C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:22 .text:0000000c __vector_24 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1212 .bss:00000030 state.2325 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1208 .bss:00000029 nick1.2329 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1210 .bss:0000002d gier1.2327 *COM*:00000002 Aktuell_ay C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1205 .bss:00000023 accy.2332 *COM*:00000002 Aktuell_ax C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1204 .bss:00000021 accx.2333 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1209 .bss:0000002b roll1.2328 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1066 .data:00000000 UBat C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1133 .bss:00000010 AdWertAccHoch C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1211 .bss:0000002f subcount.2326 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1139 .bss:00000012 messanzahl_AccHoch *COM*:00000002 Aktuell_az C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1213 .bss:00000031 kanal.2324 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1115 .bss:0000000a AdWertGier C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1121 .bss:0000000c AdWertAccRoll C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1127 .bss:0000000e AdWertAccNick C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1103 .bss:00000006 AdWertNick C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1207 .bss:00000027 nick_filter.2330 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1091 .data:00000002 HiResNick C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1073 .bss:00000000 AdWertNickFilter C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1109 .bss:00000008 AdWertRoll C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1206 .bss:00000025 roll_filter.2331 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1096 .data:00000004 HiResRoll C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1079 .bss:00000002 AdWertRollFilter C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1201 .data:0000000f AdReady C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1180 .bss:0000001a ZaehlMessungen C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1161 .data:0000000a MessLuftdruck C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1203 .bss:0000001d tmpLuftdruck.2334 .bss:0000001c messanzahl_Druck.2335 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1145 .data:00000006 Luftdruck C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1168 .bss:00000017 ExpandBaro *COM*:00000002 StartLuftdruck C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1155 .bss:00000013 SummenHoehe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1174 .bss:00000018 VarioMeter C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:752 .text:0000077a SucheGyroOffset C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1218 .progmem.data:00000000 __c.2279 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1186 .data:0000000c AnalogOffsetNick C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1191 .data:0000000d AnalogOffsetRoll C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1196 .data:0000000e AnalogOffsetGier C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:964 .text:0000095c SucheLuftruckOffset C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1222 .progmem.data:00000037 __c.2252 *COM*:00000001 DruckOffsetSetting C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccewM8xd.s:1085 .bss:00000004 AdWertGierFilter *COM*:00000002 Aktuell_Nick *COM*:00000002 Aktuell_Roll *COM*:00000002 Aktuell_Gier *COM*:00000004 NeutralAccZ_float UNDEFINED SYMBOLS __tablejump2__ NeutralAccY NeutralAccX __udivmodhi4 NeutralAccZ modell_fliegt Mess_Integral_Hoch __divmodsi4 PlatinenVersion __divmodhi4 AdNeutralNick AdNeutralRoll __mulsi3 HoehenWert __prologue_saves__ SetDelay uart_putchar twi_state BLFlags VersionInfo CheckDelay _printf_P Delay_ms_Mess __epilogue_restores__ GetParamByte SetParamByte EE_Parameter __do_copy_data __do_clear_bss