1 .file "analog.c" 2 __SREG__ = 0x3f 3 __SP_H__ = 0x3e 4 __SP_L__ = 0x3d 5 __tmp_reg__ = 0 6 __zero_reg__ = 1 7 .global __do_copy_data 8 .global __do_clear_bss 9 .text 10 .global ADC_Init 12 ADC_Init: 13 /* prologue: frame size=0 */ 14 /* prologue end (size=0) */ 15 0000 1092 7C00 sts 124,__zero_reg__ 16 0004 8FEC ldi r24,lo8(-49) 17 0006 8093 7A00 sts 122,r24 18 /* epilogue: frame size=0 */ 19 000a 0895 ret 20 /* epilogue end (size=1) */ 21 /* function ADC_Init size 6 (5) */ 23 .global __vector_24 25 __vector_24: 26 /* prologue: frame size=0 */ 27 000c 1F92 push __zero_reg__ 28 000e 0F92 push __tmp_reg__ 29 0010 0FB6 in __tmp_reg__,__SREG__ 30 0012 0F92 push __tmp_reg__ 31 0014 1124 clr __zero_reg__ 32 0016 DF92 push r13 33 0018 EF92 push r14 34 001a FF92 push r15 35 001c 0F93 push r16 36 001e 1F93 push r17 37 0020 2F93 push r18 38 0022 3F93 push r19 39 0024 4F93 push r20 40 0026 5F93 push r21 41 0028 6F93 push r22 42 002a 7F93 push r23 43 002c 8F93 push r24 44 002e 9F93 push r25 45 0030 AF93 push r26 46 0032 BF93 push r27 47 0034 CF93 push r28 48 0036 DF93 push r29 49 0038 EF93 push r30 50 003a FF93 push r31 51 /* prologue end (size=24) */ 52 003c D090 0000 lds r13,state.2447 53 0040 8D2D mov r24,r13 54 0042 D394 inc r13 55 0044 D092 0000 sts state.2447,r13 56 0048 E82F mov r30,r24 57 004a F0E0 ldi r31,lo8(0) 58 004c E231 cpi r30,18 59 004e F105 cpc r31,__zero_reg__ 60 0050 00F0 brlo .L61 61 0052 1092 0000 sts state.2447,__zero_reg__ 62 0056 82E0 ldi r24,lo8(2) 63 0058 8093 0000 sts kanal.2446,r24 64 005c 8093 7C00 sts 124,r24 65 0060 00C0 rjmp .L59 66 .L61: 67 0062 E050 subi r30,lo8(-(gs(.L23))) **** Warning:expression dangerous with linker stubs 68 0064 F040 sbci r31,hi8(-(gs(.L23))) **** Warning:expression dangerous with linker stubs 69 0066 EE0F lsl r30 70 0068 FF1F rol r31 71 006a 0590 lpm __tmp_reg__,Z+ 72 006c F491 lpm r31,Z 73 006e E02D mov r30,__tmp_reg__ 74 0070 0994 ijmp 75 .data 76 .section .progmem.gcc_sw_table, "a", @progbits 77 .p2align 1 78 .L23: 79 .data 80 .section .progmem.gcc_sw_table, "a", @progbits 81 .p2align 1 82 0000 0000 .word gs(.L5) 83 0002 0000 .word gs(.L6) 84 0004 0000 .word gs(.L7) 85 0006 0000 .word gs(.L8) 86 0008 0000 .word gs(.L9) 87 000a 0000 .word gs(.L15) 88 000c 0000 .word gs(.L11) 89 000e 0000 .word gs(.L12) 90 0010 0000 .word gs(.L13) 91 0012 0000 .word gs(.L14) 92 0014 0000 .word gs(.L15) 93 0016 0000 .word gs(.L16) 94 0018 0000 .word gs(.L17) 95 001a 0000 .word gs(.L18) 96 001c 0000 .word gs(.L19) 97 001e 0000 .word gs(.L20) 98 0020 0000 .word gs(.L21) 99 0022 0000 .word gs(.L22) 100 .text 101 .L15: 102 0072 8091 7800 lds r24,120 103 0076 9091 7900 lds r25,(120)+1 104 007a 2091 0000 lds r18,nick1.2450 105 007e 3091 0000 lds r19,(nick1.2450)+1 106 0082 280F add r18,r24 107 0084 391F adc r19,r25 108 0086 3093 0000 sts (nick1.2450)+1,r19 109 008a 2093 0000 sts nick1.2450,r18 110 008e 81E0 ldi r24,lo8(1) 111 0090 8093 0000 sts kanal.2446,r24 112 .L24: 113 0094 8091 0000 lds r24,kanal.2446 114 0098 8093 7C00 sts 124,r24 115 009c DD20 tst r13 116 009e 01F4 brne .+2 117 00a0 00C0 rjmp .L59 118 00a2 8FEC ldi r24,lo8(-49) 119 00a4 8093 7A00 sts 122,r24 120 00a8 00C0 rjmp .L59 121 .L22: 122 00aa DD24 clr r13 123 00ac 1092 0000 sts state.2447,__zero_reg__ 124 00b0 81E0 ldi r24,lo8(1) 125 00b2 8093 0000 sts AdReady,r24 126 00b6 8091 0000 lds r24,ZaehlMessungen 127 00ba 9091 0000 lds r25,(ZaehlMessungen)+1 128 00be 0196 adiw r24,1 129 00c0 9093 0000 sts (ZaehlMessungen)+1,r25 130 00c4 8093 0000 sts ZaehlMessungen,r24 131 .L14: 132 00c8 2091 7800 lds r18,120 133 00cc 3091 7900 lds r19,(120)+1 134 00d0 8091 0000 lds r24,tmpLuftdruck 135 00d4 9091 0000 lds r25,(tmpLuftdruck)+1 136 00d8 820F add r24,r18 137 00da 931F adc r25,r19 138 00dc 9093 0000 sts (tmpLuftdruck)+1,r25 139 00e0 8093 0000 sts tmpLuftdruck,r24 140 00e4 8091 0000 lds r24,messanzahl_Druck 141 00e8 8F5F subi r24,lo8(-(1)) 142 00ea 8093 0000 sts messanzahl_Druck,r24 143 00ee 8091 0000 lds r24,messanzahl_Druck 144 00f2 8530 cpi r24,lo8(5) 145 00f4 00F4 brsh .+2 146 00f6 00C0 rjmp .L52 147 00f8 8091 0000 lds r24,tmpLuftdruck 148 00fc 9091 0000 lds r25,(tmpLuftdruck)+1 149 0100 97FD sbrc r25,7 150 0102 00C0 rjmp .L62 151 .L54: 152 0104 9595 asr r25 153 0106 8795 ror r24 154 0108 9093 0000 sts (tmpLuftdruck)+1,r25 155 010c 8093 0000 sts tmpLuftdruck,r24 156 0110 8091 7800 lds r24,120 157 0114 9091 7900 lds r25,(120)+1 158 0118 9093 0000 sts (MessLuftdruck)+1,r25 159 011c 8093 0000 sts MessLuftdruck,r24 160 0120 1092 0000 sts messanzahl_Druck,__zero_reg__ 161 0124 6091 0000 lds r22,HoeheD 162 0128 7091 0000 lds r23,(HoeheD)+1 163 012c 8091 0000 lds r24,ExpandBaro 164 0130 9927 clr r25 165 0132 87FD sbrc r24,7 166 0134 9095 com r25 167 0136 D82F mov r29,r24 168 0138 CC27 clr r28 169 013a C81B sub r28,r24 170 013c D90B sbc r29,r25 171 013e 2091 0000 lds r18,StartLuftdruck 172 0142 3091 0000 lds r19,(StartLuftdruck)+1 173 0146 8091 0000 lds r24,tmpLuftdruck 174 014a 9091 0000 lds r25,(tmpLuftdruck)+1 175 014e 4091 0000 lds r20,HoehenWert 176 0152 5091 0000 lds r21,(HoehenWert)+1 177 0156 281B sub r18,r24 178 0158 390B sbc r19,r25 179 015a 241B sub r18,r20 180 015c 350B sbc r19,r21 181 015e 2C0F add r18,r28 182 0160 3D1F adc r19,r29 183 0162 8091 0000 lds r24,Parameter_Luftdruck_D 184 0166 90E0 ldi r25,lo8(0) 185 0168 A901 movw r20,r18 186 016a 489F mul r20,r24 187 016c 9001 movw r18,r0 188 016e 499F mul r20,r25 189 0170 300D add r19,r0 190 0172 589F mul r21,r24 191 0174 300D add r19,r0 192 0176 1124 clr r1 193 0178 8FE1 ldi r24,lo8(31) 194 017a 90E0 ldi r25,hi8(31) 195 017c AC01 movw r20,r24 196 017e 649F mul r22,r20 197 0180 C001 movw r24,r0 198 0182 659F mul r22,r21 199 0184 900D add r25,r0 200 0186 749F mul r23,r20 201 0188 900D add r25,r0 202 018a 1124 clr r1 203 018c 280F add r18,r24 204 018e 391F adc r19,r25 205 0190 37FD sbrc r19,7 206 0192 00C0 rjmp .L63 207 .L55: 208 0194 3595 asr r19 209 0196 2795 ror r18 210 0198 3595 asr r19 211 019a 2795 ror r18 212 019c 3595 asr r19 213 019e 2795 ror r18 214 01a0 3595 asr r19 215 01a2 2795 ror r18 216 01a4 3595 asr r19 217 01a6 2795 ror r18 218 01a8 3093 0000 sts (HoeheD)+1,r19 219 01ac 2093 0000 sts HoeheD,r18 220 01b0 6091 0000 lds r22,tmpLuftdruck 221 01b4 7091 0000 lds r23,(tmpLuftdruck)+1 222 01b8 E090 0000 lds r14,Luftdruck 223 01bc F090 0000 lds r15,(Luftdruck)+1 224 01c0 0091 0000 lds r16,(Luftdruck)+2 225 01c4 1091 0000 lds r17,(Luftdruck)+3 226 01c8 8827 clr r24 227 01ca 77FD sbrc r23,7 228 01cc 8095 com r24 229 01ce 982F mov r25,r24 230 01d0 A801 movw r20,r16 231 01d2 9701 movw r18,r14 232 01d4 220F lsl r18 233 01d6 331F rol r19 234 01d8 441F rol r20 235 01da 551F rol r21 236 01dc 220F lsl r18 237 01de 331F rol r19 238 01e0 441F rol r20 239 01e2 551F rol r21 240 01e4 220F lsl r18 241 01e6 331F rol r19 242 01e8 441F rol r20 243 01ea 551F rol r21 244 01ec 2E19 sub r18,r14 245 01ee 3F09 sbc r19,r15 246 01f0 400B sbc r20,r16 247 01f2 510B sbc r21,r17 248 01f4 620F add r22,r18 249 01f6 731F adc r23,r19 250 01f8 841F adc r24,r20 251 01fa 951F adc r25,r21 252 01fc 6C5F subi r22,lo8(-(4)) 253 01fe 7F4F sbci r23,hi8(-(4)) 254 0200 8F4F sbci r24,hlo8(-(4)) 255 0202 9F4F sbci r25,hhi8(-(4)) 256 0204 28E0 ldi r18,lo8(8) 257 0206 30E0 ldi r19,hi8(8) 258 0208 40E0 ldi r20,hlo8(8) 259 020a 50E0 ldi r21,hhi8(8) 260 020c 0E94 0000 call __divmodsi4 261 0210 2093 0000 sts Luftdruck,r18 262 0214 3093 0000 sts (Luftdruck)+1,r19 263 0218 4093 0000 sts (Luftdruck)+2,r20 264 021c 5093 0000 sts (Luftdruck)+3,r21 265 0220 2091 0000 lds r18,StartLuftdruck 266 0224 3091 0000 lds r19,(StartLuftdruck)+1 267 0228 8091 0000 lds r24,Luftdruck 268 022c 9091 0000 lds r25,(Luftdruck)+1 269 0230 A091 0000 lds r26,(Luftdruck)+2 270 0234 B091 0000 lds r27,(Luftdruck)+3 271 0238 C20F add r28,r18 272 023a D31F adc r29,r19 273 023c C81B sub r28,r24 274 023e D90B sbc r29,r25 275 0240 D093 0000 sts (HoehenWert)+1,r29 276 0244 C093 0000 sts HoehenWert,r28 277 0248 8091 0000 lds r24,tmpLuftdruck 278 024c 9091 0000 lds r25,(tmpLuftdruck)+1 279 0250 97FD sbrc r25,7 280 0252 00C0 rjmp .L64 281 .L56: 282 0254 9595 asr r25 283 0256 8795 ror r24 284 0258 9093 0000 sts (tmpLuftdruck)+1,r25 285 025c 8093 0000 sts tmpLuftdruck,r24 286 .L52: 287 0260 82E0 ldi r24,lo8(2) 288 0262 8093 0000 sts kanal.2446,r24 289 0266 00C0 rjmp .L24 290 .L13: 291 0268 6091 7800 lds r22,120 292 026c 7091 7900 lds r23,(120)+1 293 0270 E090 0000 lds r14,NeutralAccZ 294 0274 F090 0000 lds r15,(NeutralAccZ)+1 295 0278 0091 0000 lds r16,(NeutralAccZ)+2 296 027c 1091 0000 lds r17,(NeutralAccZ)+3 297 0280 8827 clr r24 298 0282 77FD sbrc r23,7 299 0284 8095 com r24 300 0286 982F mov r25,r24 301 0288 0E94 0000 call __floatsisf 302 028c A801 movw r20,r16 303 028e 9701 movw r18,r14 304 0290 0E94 0000 call __subsf3 305 0294 0E94 0000 call __fixsfsi 306 0298 7093 0000 sts (AdWertAccHoch)+1,r23 307 029c 6093 0000 sts AdWertAccHoch,r22 308 02a0 8091 0000 lds r24,AdWertAccHoch 309 02a4 9091 0000 lds r25,(AdWertAccHoch)+1 310 02a8 0297 sbiw r24,2 311 02aa 04F4 brge .+2 312 02ac 00C0 rjmp .L25 313 02ae 6091 0000 lds r22,NeutralAccZ 314 02b2 7091 0000 lds r23,(NeutralAccZ)+1 315 02b6 8091 0000 lds r24,(NeutralAccZ)+2 316 02ba 9091 0000 lds r25,(NeutralAccZ)+3 317 02be 20E0 ldi r18,lo8(0x443b8000) 318 02c0 30E8 ldi r19,hi8(0x443b8000) 319 02c2 4BE3 ldi r20,hlo8(0x443b8000) 320 02c4 54E4 ldi r21,hhi8(0x443b8000) 321 02c6 0E94 0000 call __ltsf2 322 02ca 8823 tst r24 323 02cc 04F4 brge .L27 324 02ce 6091 0000 lds r22,NeutralAccZ 325 02d2 7091 0000 lds r23,(NeutralAccZ)+1 326 02d6 8091 0000 lds r24,(NeutralAccZ)+2 327 02da 9091 0000 lds r25,(NeutralAccZ)+3 328 02de 2AE0 ldi r18,lo8(0x3ca3d70a) 329 02e0 37ED ldi r19,hi8(0x3ca3d70a) 330 02e2 43EA ldi r20,hlo8(0x3ca3d70a) 331 02e4 5CE3 ldi r21,hhi8(0x3ca3d70a) 332 02e6 0E94 0000 call __addsf3 333 02ea 6093 0000 sts NeutralAccZ,r22 334 02ee 7093 0000 sts (NeutralAccZ)+1,r23 335 02f2 8093 0000 sts (NeutralAccZ)+2,r24 336 02f6 9093 0000 sts (NeutralAccZ)+3,r25 337 02fa 8091 0000 lds r24,modell_fliegt 338 02fe 9091 0000 lds r25,(modell_fliegt)+1 339 0302 845F subi r24,lo8(500) 340 0304 9140 sbci r25,hi8(500) 341 0306 00F4 brsh .L27 342 0308 6091 0000 lds r22,NeutralAccZ 343 030c 7091 0000 lds r23,(NeutralAccZ)+1 344 0310 8091 0000 lds r24,(NeutralAccZ)+2 345 0314 9091 0000 lds r25,(NeutralAccZ)+3 346 0318 2DEC ldi r18,lo8(0x3dcccccd) 347 031a 3CEC ldi r19,hi8(0x3dcccccd) 348 031c 4CEC ldi r20,hlo8(0x3dcccccd) 349 031e 5DE3 ldi r21,hhi8(0x3dcccccd) 350 0320 0E94 0000 call __addsf3 351 0324 6093 0000 sts NeutralAccZ,r22 352 0328 7093 0000 sts (NeutralAccZ)+1,r23 353 032c 8093 0000 sts (NeutralAccZ)+2,r24 354 0330 9093 0000 sts (NeutralAccZ)+3,r25 355 .L27: 356 0334 81E0 ldi r24,lo8(1) 357 0336 8093 0000 sts messanzahl_AccHoch,r24 358 033a 8091 7800 lds r24,120 359 033e 9091 7900 lds r25,(120)+1 360 0342 9093 0000 sts (Aktuell_az)+1,r25 361 0346 8093 0000 sts Aktuell_az,r24 362 034a 8091 0000 lds r24,AdWertAccHoch 363 034e 9091 0000 lds r25,(AdWertAccHoch)+1 364 0352 2091 0000 lds r18,Mess_Integral_Hoch 365 0356 3091 0000 lds r19,(Mess_Integral_Hoch)+1 366 035a 4091 0000 lds r20,(Mess_Integral_Hoch)+2 367 035e 5091 0000 lds r21,(Mess_Integral_Hoch)+3 368 0362 AA27 clr r26 369 0364 97FD sbrc r25,7 370 0366 A095 com r26 371 0368 BA2F mov r27,r26 372 036a 820F add r24,r18 373 036c 931F adc r25,r19 374 036e A41F adc r26,r20 375 0370 B51F adc r27,r21 376 0372 8093 0000 sts Mess_Integral_Hoch,r24 377 0376 9093 0000 sts (Mess_Integral_Hoch)+1,r25 378 037a A093 0000 sts (Mess_Integral_Hoch)+2,r26 379 037e B093 0000 sts (Mess_Integral_Hoch)+3,r27 380 0382 E090 0000 lds r14,Mess_Integral_Hoch 381 0386 F090 0000 lds r15,(Mess_Integral_Hoch)+1 382 038a 0091 0000 lds r16,(Mess_Integral_Hoch)+2 383 038e 1091 0000 lds r17,(Mess_Integral_Hoch)+3 384 0392 6091 0000 lds r22,Mess_Integral_Hoch 385 0396 7091 0000 lds r23,(Mess_Integral_Hoch)+1 386 039a 8091 0000 lds r24,(Mess_Integral_Hoch)+2 387 039e 9091 0000 lds r25,(Mess_Integral_Hoch)+3 388 03a2 20E0 ldi r18,lo8(1024) 389 03a4 34E0 ldi r19,hi8(1024) 390 03a6 40E0 ldi r20,hlo8(1024) 391 03a8 50E0 ldi r21,hhi8(1024) 392 03aa 0E94 0000 call __divmodsi4 393 03ae E21A sub r14,r18 394 03b0 F30A sbc r15,r19 395 03b2 040B sbc r16,r20 396 03b4 150B sbc r17,r21 397 03b6 E092 0000 sts Mess_Integral_Hoch,r14 398 03ba F092 0000 sts (Mess_Integral_Hoch)+1,r15 399 03be 0093 0000 sts (Mess_Integral_Hoch)+2,r16 400 03c2 1093 0000 sts (Mess_Integral_Hoch)+3,r17 401 03c6 83E0 ldi r24,lo8(3) 402 03c8 8093 0000 sts kanal.2446,r24 403 03cc 00C0 rjmp .L24 404 .L11: 405 03ce 8091 7800 lds r24,120 406 03d2 9091 7900 lds r25,(120)+1 407 03d6 2091 0000 lds r18,roll1.2449 408 03da 3091 0000 lds r19,(roll1.2449)+1 409 03de 280F add r18,r24 410 03e0 391F adc r19,r25 411 03e2 3093 0000 sts (roll1.2449)+1,r19 412 03e6 2093 0000 sts roll1.2449,r18 413 03ea 84E0 ldi r24,lo8(4) 414 03ec 8093 0000 sts kanal.2446,r24 415 03f0 00C0 rjmp .L24 416 .L12: 417 03f2 4091 0000 lds r20,UBat 418 03f6 5091 0000 lds r21,(UBat)+1 419 03fa 8091 7800 lds r24,120 420 03fe 9091 7900 lds r25,(120)+1 421 0402 9A01 movw r18,r20 422 0404 220F lsl r18 423 0406 331F rol r19 424 0408 240F add r18,r20 425 040a 351F adc r19,r21 426 040c 63E0 ldi r22,lo8(3) 427 040e 70E0 ldi r23,hi8(3) 428 0410 0E94 0000 call __udivmodhi4 429 0414 260F add r18,r22 430 0416 371F adc r19,r23 431 0418 3695 lsr r19 432 041a 2795 ror r18 433 041c 3695 lsr r19 434 041e 2795 ror r18 435 0420 3093 0000 sts (UBat)+1,r19 436 0424 2093 0000 sts UBat,r18 437 0428 85E0 ldi r24,lo8(5) 438 042a 8093 0000 sts kanal.2446,r24 439 042e 00C0 rjmp .L24 440 .L7: 441 0430 8091 7800 lds r24,120 442 0434 9091 7900 lds r25,(120)+1 443 0438 9093 0000 sts (gier1.2448)+1,r25 444 043c 8093 0000 sts gier1.2448,r24 445 0440 86E0 ldi r24,lo8(6) 446 0442 8093 0000 sts kanal.2446,r24 447 0446 00C0 rjmp .L24 448 .L8: 449 0448 2091 7800 lds r18,120 450 044c 3091 7900 lds r19,(120)+1 451 0450 8091 0000 lds r24,NeutralAccY 452 0454 9091 0000 lds r25,(NeutralAccY)+1 453 0458 821B sub r24,r18 454 045a 930B sbc r25,r19 455 045c 9093 0000 sts (Aktuell_ay)+1,r25 456 0460 8093 0000 sts Aktuell_ay,r24 457 0464 8091 0000 lds r24,Aktuell_ay 458 0468 9091 0000 lds r25,(Aktuell_ay)+1 459 046c 9093 0000 sts (accy.2453)+1,r25 460 0470 8093 0000 sts accy.2453,r24 461 0474 87E0 ldi r24,lo8(7) 462 0476 8093 0000 sts kanal.2446,r24 463 047a 00C0 rjmp .L24 464 .L9: 465 047c 8091 7800 lds r24,120 466 0480 9091 7900 lds r25,(120)+1 467 0484 2091 0000 lds r18,NeutralAccX 468 0488 3091 0000 lds r19,(NeutralAccX)+1 469 048c 821B sub r24,r18 470 048e 930B sbc r25,r19 471 0490 9093 0000 sts (Aktuell_ax)+1,r25 472 0494 8093 0000 sts Aktuell_ax,r24 473 0498 8091 0000 lds r24,Aktuell_ax 474 049c 9091 0000 lds r25,(Aktuell_ax)+1 475 04a0 9093 0000 sts (accx.2454)+1,r25 476 04a4 8093 0000 sts accx.2454,r24 477 04a8 82E0 ldi r24,lo8(2) 478 04aa 8093 0000 sts kanal.2446,r24 479 04ae 00C0 rjmp .L24 480 .L16: 481 04b0 2091 7800 lds r18,120 482 04b4 3091 7900 lds r19,(120)+1 483 04b8 8091 0000 lds r24,roll1.2449 484 04bc 9091 0000 lds r25,(roll1.2449)+1 485 04c0 820F add r24,r18 486 04c2 931F adc r25,r19 487 04c4 9093 0000 sts (roll1.2449)+1,r25 488 04c8 8093 0000 sts roll1.2449,r24 489 04cc 1092 0000 sts kanal.2446,__zero_reg__ 490 04d0 00C0 rjmp .L24 491 .L17: 492 04d2 8091 0000 lds r24,PlatinenVersion 493 04d6 8A30 cpi r24,lo8(10) 494 04d8 01F4 brne .+2 495 04da 00C0 rjmp .L65 496 04dc 8431 cpi r24,lo8(20) 497 04de 01F4 brne .+2 498 04e0 00C0 rjmp .L66 499 04e2 8091 7800 lds r24,120 500 04e6 9091 7900 lds r25,(120)+1 501 04ea 2091 0000 lds r18,gier1.2448 502 04ee 3091 0000 lds r19,(gier1.2448)+1 503 04f2 820F add r24,r18 504 04f4 931F adc r25,r19 505 04f6 9093 0000 sts (AdWertGier)+1,r25 506 04fa 8093 0000 sts AdWertGier,r24 507 .L37: 508 04fe 86E0 ldi r24,lo8(6) 509 0500 8093 0000 sts kanal.2446,r24 510 0504 00C0 rjmp .L24 511 .L18: 512 0506 2091 7800 lds r18,120 513 050a 3091 7900 lds r19,(120)+1 514 050e 8091 0000 lds r24,NeutralAccY 515 0512 9091 0000 lds r25,(NeutralAccY)+1 516 0516 821B sub r24,r18 517 0518 930B sbc r25,r19 518 051a 9093 0000 sts (Aktuell_ay)+1,r25 519 051e 8093 0000 sts Aktuell_ay,r24 520 0522 8091 0000 lds r24,Aktuell_ay 521 0526 9091 0000 lds r25,(Aktuell_ay)+1 522 052a 2091 0000 lds r18,accy.2453 523 052e 3091 0000 lds r19,(accy.2453)+1 524 0532 820F add r24,r18 525 0534 931F adc r25,r19 526 0536 9093 0000 sts (AdWertAccRoll)+1,r25 527 053a 8093 0000 sts AdWertAccRoll,r24 528 053e 87E0 ldi r24,lo8(7) 529 0540 8093 0000 sts kanal.2446,r24 530 0544 00C0 rjmp .L24 531 .L19: 532 0546 8091 7800 lds r24,120 533 054a 9091 7900 lds r25,(120)+1 534 054e 2091 0000 lds r18,NeutralAccX 535 0552 3091 0000 lds r19,(NeutralAccX)+1 536 0556 821B sub r24,r18 537 0558 930B sbc r25,r19 538 055a 9093 0000 sts (Aktuell_ax)+1,r25 539 055e 8093 0000 sts Aktuell_ax,r24 540 0562 8091 0000 lds r24,Aktuell_ax 541 0566 9091 0000 lds r25,(Aktuell_ax)+1 542 056a 2091 0000 lds r18,accx.2454 543 056e 3091 0000 lds r19,(accx.2454)+1 544 0572 820F add r24,r18 545 0574 931F adc r25,r19 546 0576 9093 0000 sts (AdWertAccNick)+1,r25 547 057a 8093 0000 sts AdWertAccNick,r24 548 057e 82E0 ldi r24,lo8(2) 549 0580 8093 0000 sts kanal.2446,r24 550 0584 00C0 rjmp .L24 551 .L20: 552 0586 2091 7800 lds r18,120 553 058a 3091 7900 lds r19,(120)+1 554 058e 8091 0000 lds r24,nick1.2450 555 0592 9091 0000 lds r25,(nick1.2450)+1 556 0596 280F add r18,r24 557 0598 391F adc r19,r25 558 059a 3093 0000 sts (nick1.2450)+1,r19 559 059e 2093 0000 sts nick1.2450,r18 560 05a2 8091 0000 lds r24,PlatinenVersion 561 05a6 8A30 cpi r24,lo8(10) 562 05a8 01F4 brne .+2 563 05aa 00C0 rjmp .L67 564 05ac 220F lsl r18 565 05ae 331F rol r19 566 05b0 220F lsl r18 567 05b2 331F rol r19 568 05b4 3093 0000 sts (nick1.2450)+1,r19 569 05b8 2093 0000 sts nick1.2450,r18 570 .L42: 571 05bc 2091 0000 lds r18,nick1.2450 572 05c0 3091 0000 lds r19,(nick1.2450)+1 573 05c4 C901 movw r24,r18 574 05c6 37FD sbrc r19,7 575 05c8 00C0 rjmp .L68 576 .L43: 577 05ca 9595 asr r25 578 05cc 8795 ror r24 579 05ce 9595 asr r25 580 05d0 8795 ror r24 581 05d2 9595 asr r25 582 05d4 8795 ror r24 583 05d6 9093 0000 sts (AdWertNick)+1,r25 584 05da 8093 0000 sts AdWertNick,r24 585 05de 8091 0000 lds r24,nick_filter.2451 586 05e2 9091 0000 lds r25,(nick_filter.2451)+1 587 05e6 820F add r24,r18 588 05e8 931F adc r25,r19 589 05ea 97FD sbrc r25,7 590 05ec 00C0 rjmp .L69 591 .L44: 592 05ee 9595 asr r25 593 05f0 8795 ror r24 594 05f2 9093 0000 sts (nick_filter.2451)+1,r25 595 05f6 8093 0000 sts nick_filter.2451,r24 596 05fa 2091 0000 lds r18,AdNeutralNick 597 05fe 3091 0000 lds r19,(AdNeutralNick)+1 598 0602 821B sub r24,r18 599 0604 930B sbc r25,r19 600 0606 9093 0000 sts (HiResNick)+1,r25 601 060a 8093 0000 sts HiResNick,r24 602 060e 8091 0000 lds r24,AdWertNickFilter 603 0612 9091 0000 lds r25,(AdWertNickFilter)+1 604 0616 2091 0000 lds r18,HiResNick 605 061a 3091 0000 lds r19,(HiResNick)+1 606 061e 280F add r18,r24 607 0620 391F adc r19,r25 608 0622 37FD sbrc r19,7 609 0624 00C0 rjmp .L70 610 .L45: 611 0626 3595 asr r19 612 0628 2795 ror r18 613 062a 3093 0000 sts (AdWertNickFilter)+1,r19 614 062e 2093 0000 sts AdWertNickFilter,r18 615 0632 81E0 ldi r24,lo8(1) 616 0634 8093 0000 sts kanal.2446,r24 617 0638 00C0 rjmp .L24 618 .L21: 619 063a 2091 7800 lds r18,120 620 063e 3091 7900 lds r19,(120)+1 621 0642 8091 0000 lds r24,roll1.2449 622 0646 9091 0000 lds r25,(roll1.2449)+1 623 064a 280F add r18,r24 624 064c 391F adc r19,r25 625 064e 3093 0000 sts (roll1.2449)+1,r19 626 0652 2093 0000 sts roll1.2449,r18 627 0656 8091 0000 lds r24,PlatinenVersion 628 065a 8A30 cpi r24,lo8(10) 629 065c 01F4 brne .+2 630 065e 00C0 rjmp .L71 631 0660 220F lsl r18 632 0662 331F rol r19 633 0664 220F lsl r18 634 0666 331F rol r19 635 0668 3093 0000 sts (roll1.2449)+1,r19 636 066c 2093 0000 sts roll1.2449,r18 637 .L48: 638 0670 2091 0000 lds r18,roll1.2449 639 0674 3091 0000 lds r19,(roll1.2449)+1 640 0678 C901 movw r24,r18 641 067a 37FD sbrc r19,7 642 067c 00C0 rjmp .L72 643 .L49: 644 067e 9595 asr r25 645 0680 8795 ror r24 646 0682 9595 asr r25 647 0684 8795 ror r24 648 0686 9595 asr r25 649 0688 8795 ror r24 650 068a 9093 0000 sts (AdWertRoll)+1,r25 651 068e 8093 0000 sts AdWertRoll,r24 652 0692 8091 0000 lds r24,roll_filter.2452 653 0696 9091 0000 lds r25,(roll_filter.2452)+1 654 069a 820F add r24,r18 655 069c 931F adc r25,r19 656 069e 97FD sbrc r25,7 657 06a0 00C0 rjmp .L73 658 .L50: 659 06a2 9595 asr r25 660 06a4 8795 ror r24 661 06a6 9093 0000 sts (roll_filter.2452)+1,r25 662 06aa 8093 0000 sts roll_filter.2452,r24 663 06ae 2091 0000 lds r18,AdNeutralRoll 664 06b2 3091 0000 lds r19,(AdNeutralRoll)+1 665 06b6 821B sub r24,r18 666 06b8 930B sbc r25,r19 667 06ba 9093 0000 sts (HiResRoll)+1,r25 668 06be 8093 0000 sts HiResRoll,r24 669 06c2 8091 0000 lds r24,AdWertRollFilter 670 06c6 9091 0000 lds r25,(AdWertRollFilter)+1 671 06ca 2091 0000 lds r18,HiResRoll 672 06ce 3091 0000 lds r19,(HiResRoll)+1 673 06d2 280F add r18,r24 674 06d4 391F adc r19,r25 675 06d6 37FD sbrc r19,7 676 06d8 00C0 rjmp .L74 677 .L51: 678 06da 3595 asr r19 679 06dc 2795 ror r18 680 06de 3093 0000 sts (AdWertRollFilter)+1,r19 681 06e2 2093 0000 sts AdWertRollFilter,r18 682 06e6 83E0 ldi r24,lo8(3) 683 06e8 8093 0000 sts kanal.2446,r24 684 06ec 00C0 rjmp .L24 685 .L5: 686 06ee 8091 7800 lds r24,120 687 06f2 9091 7900 lds r25,(120)+1 688 06f6 9093 0000 sts (nick1.2450)+1,r25 689 06fa 8093 0000 sts nick1.2450,r24 690 06fe 81E0 ldi r24,lo8(1) 691 0700 8093 0000 sts kanal.2446,r24 692 0704 00C0 rjmp .L24 693 .L6: 694 0706 8091 7800 lds r24,120 695 070a 9091 7900 lds r25,(120)+1 696 070e 9093 0000 sts (roll1.2449)+1,r25 697 0712 8093 0000 sts roll1.2449,r24 698 0716 1092 0000 sts kanal.2446,__zero_reg__ 699 071a 00C0 rjmp .L24 700 .L65: 701 071c 8091 7800 lds r24,120 702 0720 9091 7900 lds r25,(120)+1 703 0724 0196 adiw r24,1 704 0726 2091 0000 lds r18,gier1.2448 705 072a 3091 0000 lds r19,(gier1.2448)+1 706 072e 820F add r24,r18 707 0730 931F adc r25,r19 708 0732 9695 lsr r25 709 0734 8795 ror r24 710 0736 9093 0000 sts (AdWertGier)+1,r25 711 073a 8093 0000 sts AdWertGier,r24 712 073e 00C0 rjmp .L37 713 .L71: 714 0740 220F lsl r18 715 0742 331F rol r19 716 0744 3093 0000 sts (roll1.2449)+1,r19 717 0748 2093 0000 sts roll1.2449,r18 718 074c 00C0 rjmp .L48 719 .L67: 720 074e 220F lsl r18 721 0750 331F rol r19 722 0752 3093 0000 sts (nick1.2450)+1,r19 723 0756 2093 0000 sts nick1.2450,r18 724 075a 00C0 rjmp .L42 725 .L64: 726 075c 0196 adiw r24,1 727 075e 00C0 rjmp .L56 728 .L63: 729 0760 215E subi r18,lo8(-(31)) 730 0762 3F4F sbci r19,hi8(-(31)) 731 0764 00C0 rjmp .L55 732 .L25: 733 0766 8091 0000 lds r24,AdWertAccHoch 734 076a 9091 0000 lds r25,(AdWertAccHoch)+1 735 076e 8F5F subi r24,lo8(-1) 736 0770 9F4F sbci r25,hi8(-1) 737 0772 04F0 brlt .+2 738 0774 00C0 rjmp .L27 739 0776 6091 0000 lds r22,NeutralAccZ 740 077a 7091 0000 lds r23,(NeutralAccZ)+1 741 077e 8091 0000 lds r24,(NeutralAccZ)+2 742 0782 9091 0000 lds r25,(NeutralAccZ)+3 743 0786 20E0 ldi r18,lo8(0x44098000) 744 0788 30E8 ldi r19,hi8(0x44098000) 745 078a 49E0 ldi r20,hlo8(0x44098000) 746 078c 54E4 ldi r21,hhi8(0x44098000) 747 078e 0E94 0000 call __gtsf2 748 0792 1816 cp __zero_reg__,r24 749 0794 04F0 brlt .+2 750 0796 00C0 rjmp .L27 751 0798 6091 0000 lds r22,NeutralAccZ 752 079c 7091 0000 lds r23,(NeutralAccZ)+1 753 07a0 8091 0000 lds r24,(NeutralAccZ)+2 754 07a4 9091 0000 lds r25,(NeutralAccZ)+3 755 07a8 2AE0 ldi r18,lo8(0x3ca3d70a) 756 07aa 37ED ldi r19,hi8(0x3ca3d70a) 757 07ac 43EA ldi r20,hlo8(0x3ca3d70a) 758 07ae 5CE3 ldi r21,hhi8(0x3ca3d70a) 759 07b0 0E94 0000 call __subsf3 760 07b4 6093 0000 sts NeutralAccZ,r22 761 07b8 7093 0000 sts (NeutralAccZ)+1,r23 762 07bc 8093 0000 sts (NeutralAccZ)+2,r24 763 07c0 9093 0000 sts (NeutralAccZ)+3,r25 764 07c4 8091 0000 lds r24,modell_fliegt 765 07c8 9091 0000 lds r25,(modell_fliegt)+1 766 07cc 845F subi r24,lo8(500) 767 07ce 9140 sbci r25,hi8(500) 768 07d0 00F0 brlo .+2 769 07d2 00C0 rjmp .L27 770 07d4 6091 0000 lds r22,NeutralAccZ 771 07d8 7091 0000 lds r23,(NeutralAccZ)+1 772 07dc 8091 0000 lds r24,(NeutralAccZ)+2 773 07e0 9091 0000 lds r25,(NeutralAccZ)+3 774 07e4 2DEC ldi r18,lo8(0x3dcccccd) 775 07e6 3CEC ldi r19,hi8(0x3dcccccd) 776 07e8 4CEC ldi r20,hlo8(0x3dcccccd) 777 07ea 5DE3 ldi r21,hhi8(0x3dcccccd) 778 07ec 0E94 0000 call __subsf3 779 07f0 6093 0000 sts NeutralAccZ,r22 780 07f4 7093 0000 sts (NeutralAccZ)+1,r23 781 07f8 8093 0000 sts (NeutralAccZ)+2,r24 782 07fc 9093 0000 sts (NeutralAccZ)+3,r25 783 0800 00C0 rjmp .L27 784 .L62: 785 0802 0196 adiw r24,1 786 0804 00C0 rjmp .L54 787 .L74: 788 0806 2F5F subi r18,lo8(-(1)) 789 0808 3F4F sbci r19,hi8(-(1)) 790 080a 00C0 rjmp .L51 791 .L73: 792 080c 0196 adiw r24,1 793 080e 00C0 rjmp .L50 794 .L72: 795 0810 0796 adiw r24,7 796 0812 00C0 rjmp .L49 797 .L70: 798 0814 2F5F subi r18,lo8(-(1)) 799 0816 3F4F sbci r19,hi8(-(1)) 800 0818 00C0 rjmp .L45 801 .L69: 802 081a 0196 adiw r24,1 803 081c 00C0 rjmp .L44 804 .L68: 805 081e 0796 adiw r24,7 806 0820 00C0 rjmp .L43 807 .L66: 808 0822 8091 7800 lds r24,120 809 0826 9091 7900 lds r25,(120)+1 810 082a 2FEF ldi r18,lo8(2047) 811 082c 37E0 ldi r19,hi8(2047) 812 082e 281B sub r18,r24 813 0830 390B sbc r19,r25 814 0832 8091 0000 lds r24,gier1.2448 815 0836 9091 0000 lds r25,(gier1.2448)+1 816 083a 281B sub r18,r24 817 083c 390B sbc r19,r25 818 083e 3093 0000 sts (AdWertGier)+1,r19 819 0842 2093 0000 sts AdWertGier,r18 820 0846 00C0 rjmp .L37 821 .L59: 822 /* epilogue: frame size=0 */ 823 0848 FF91 pop r31 824 084a EF91 pop r30 825 084c DF91 pop r29 826 084e CF91 pop r28 827 0850 BF91 pop r27 828 0852 AF91 pop r26 829 0854 9F91 pop r25 830 0856 8F91 pop r24 831 0858 7F91 pop r23 832 085a 6F91 pop r22 833 085c 5F91 pop r21 834 085e 4F91 pop r20 835 0860 3F91 pop r19 836 0862 2F91 pop r18 837 0864 1F91 pop r17 838 0866 0F91 pop r16 839 0868 FF90 pop r15 840 086a EF90 pop r14 841 086c DF90 pop r13 842 086e 0F90 pop __tmp_reg__ 843 0870 0FBE out __SREG__,__tmp_reg__ 844 0872 0F90 pop __tmp_reg__ 845 0874 1F90 pop __zero_reg__ 846 0876 1895 reti 847 /* epilogue end (size=24) */ 848 /* function __vector_24 size 1102 (1054) */ 850 .global SucheGyroOffset 852 SucheGyroOffset: 853 /* prologue: frame size=0 */ 854 0878 0F93 push r16 855 087a 1F93 push r17 856 /* prologue end (size=2) */ 857 087c 1092 0000 sts GyroDefektN,__zero_reg__ 858 0880 1092 0000 sts GyroDefektR,__zero_reg__ 859 0884 1092 0000 sts GyroDefektG,__zero_reg__ 860 0888 1CE8 ldi r17,lo8(-116) 861 088a 00E0 ldi r16,lo8(0) 862 .L76: 863 088c 0330 cpi r16,lo8(3) 864 088e 01F4 brne .+2 865 0890 00C0 rjmp .L121 866 .L77: 867 0892 8091 0000 lds r24,AdWertNick 868 0896 9091 0000 lds r25,(AdWertNick)+1 869 089a 8C5F subi r24,lo8(1020) 870 089c 9340 sbci r25,hi8(1020) 871 089e 04F0 brlt .+2 872 08a0 00C0 rjmp .L80 873 08a2 8091 0000 lds r24,AnalogOffsetNick 874 08a6 8150 subi r24,lo8(-(-1)) 875 08a8 8093 0000 sts AnalogOffsetNick,r24 876 08ac 00E0 ldi r16,lo8(0) 877 .L82: 878 08ae 8091 0000 lds r24,AdWertRoll 879 08b2 9091 0000 lds r25,(AdWertRoll)+1 880 08b6 8C5F subi r24,lo8(1020) 881 08b8 9340 sbci r25,hi8(1020) 882 08ba 04F0 brlt .+2 883 08bc 00C0 rjmp .L85 884 08be 8091 0000 lds r24,AnalogOffsetRoll 885 08c2 8150 subi r24,lo8(-(-1)) 886 08c4 8093 0000 sts AnalogOffsetRoll,r24 887 .L87: 888 08c8 8091 0000 lds r24,AdWertGier 889 08cc 9091 0000 lds r25,(AdWertGier)+1 890 08d0 8C5F subi r24,lo8(1020) 891 08d2 9340 sbci r25,hi8(1020) 892 08d4 04F0 brlt .+2 893 08d6 00C0 rjmp .L90 894 08d8 8091 0000 lds r24,AnalogOffsetGier 895 08dc 8150 subi r24,lo8(-(-1)) 896 08de 8093 0000 sts AnalogOffsetGier,r24 897 .L92: 898 08e2 88E0 ldi r24,lo8(8) 899 08e4 8093 0000 sts twi_state,r24 900 08e8 0E94 0000 call i2c_start 901 08ec 8091 0000 lds r24,AnalogOffsetNick 902 08f0 8A30 cpi r24,lo8(10) 903 08f2 00F0 brlo .+2 904 08f4 00C0 rjmp .L95 905 08f6 81E0 ldi r24,lo8(1) 906 08f8 8093 0000 sts GyroDefektN,r24 907 08fc 8AE0 ldi r24,lo8(10) 908 08fe 8093 0000 sts AnalogOffsetNick,r24 909 .L97: 910 0902 8091 0000 lds r24,AnalogOffsetRoll 911 0906 8A30 cpi r24,lo8(10) 912 0908 00F4 brsh .L99 913 090a 81E0 ldi r24,lo8(1) 914 090c 8093 0000 sts GyroDefektR,r24 915 0910 8AE0 ldi r24,lo8(10) 916 0912 8093 0000 sts AnalogOffsetRoll,r24 917 .L101: 918 0916 8091 0000 lds r24,AnalogOffsetGier 919 091a 8A30 cpi r24,lo8(10) 920 091c 00F4 brsh .L103 921 091e 81E0 ldi r24,lo8(1) 922 0920 8093 0000 sts GyroDefektG,r24 923 0924 8AE0 ldi r24,lo8(10) 924 0926 8093 0000 sts AnalogOffsetGier,r24 925 .L114: 926 092a 8091 0000 lds r24,twi_state 927 092e 8823 tst r24 928 0930 01F4 brne .L114 929 0932 1092 0000 sts messanzahl_Druck,__zero_reg__ 930 0936 8FEC ldi r24,lo8(-49) 931 0938 8093 7A00 sts 122,r24 932 .L108: 933 093c 8091 0000 lds r24,messanzahl_Druck 934 0940 8823 tst r24 935 0942 01F0 breq .L108 936 0944 1A30 cpi r17,lo8(10) 937 0946 00F4 brsh .+2 938 0948 00C0 rjmp .L122 939 .L110: 940 094a 1150 subi r17,lo8(-(-1)) 941 094c 01F0 breq .+2 942 094e 00C0 rjmp .L76 943 0950 00C0 rjmp .L124 944 .L103: 945 0952 863F cpi r24,lo8(-10) 946 0954 00F0 brlo .L114 947 0956 81E0 ldi r24,lo8(1) 948 0958 8093 0000 sts GyroDefektG,r24 949 095c 85EF ldi r24,lo8(-11) 950 095e 8093 0000 sts AnalogOffsetGier,r24 951 0962 00C0 rjmp .L114 952 .L99: 953 0964 863F cpi r24,lo8(-10) 954 0966 00F0 brlo .L101 955 0968 81E0 ldi r24,lo8(1) 956 096a 8093 0000 sts GyroDefektR,r24 957 096e 85EF ldi r24,lo8(-11) 958 0970 8093 0000 sts AnalogOffsetRoll,r24 959 0974 00C0 rjmp .L101 960 .L95: 961 0976 863F cpi r24,lo8(-10) 962 0978 00F0 brlo .L97 963 097a 81E0 ldi r24,lo8(1) 964 097c 8093 0000 sts GyroDefektN,r24 965 0980 85EF ldi r24,lo8(-11) 966 0982 8093 0000 sts AnalogOffsetNick,r24 967 0986 00C0 rjmp .L97 968 .L90: 969 0988 8091 0000 lds r24,AdWertGier 970 098c 9091 0000 lds r25,(AdWertGier)+1 971 0990 8750 subi r24,lo8(1031) 972 0992 9440 sbci r25,hi8(1031) 973 0994 04F0 brlt .L93 974 0996 8091 0000 lds r24,AnalogOffsetGier 975 099a 8F5F subi r24,lo8(-(1)) 976 099c 8093 0000 sts AnalogOffsetGier,r24 977 09a0 00C0 rjmp .L92 978 .L85: 979 09a2 8091 0000 lds r24,AdWertRoll 980 09a6 9091 0000 lds r25,(AdWertRoll)+1 981 09aa 8750 subi r24,lo8(1031) 982 09ac 9440 sbci r25,hi8(1031) 983 09ae 04F0 brlt .L88 984 09b0 8091 0000 lds r24,AnalogOffsetRoll 985 09b4 8F5F subi r24,lo8(-(1)) 986 09b6 8093 0000 sts AnalogOffsetRoll,r24 987 09ba 00C0 rjmp .L87 988 .L80: 989 09bc 8091 0000 lds r24,AdWertNick 990 09c0 9091 0000 lds r25,(AdWertNick)+1 991 09c4 8750 subi r24,lo8(1031) 992 09c6 9440 sbci r25,hi8(1031) 993 09c8 04F4 brge .L83 994 09ca 01E0 ldi r16,lo8(1) 995 09cc 00C0 rjmp .L82 996 .L122: 997 09ce 8AE0 ldi r24,lo8(10) 998 09d0 90E0 ldi r25,hi8(10) 999 09d2 0E94 0000 call Delay_ms_Mess 1000 09d6 00C0 rjmp .L110 1001 .L121: 1002 09d8 1B30 cpi r17,lo8(11) 1003 09da 00F4 brsh .+2 1004 09dc 00C0 rjmp .L77 1005 09de 19E0 ldi r17,lo8(9) 1006 09e0 00C0 rjmp .L77 1007 .L88: 1008 09e2 0F5F subi r16,lo8(-(1)) 1009 09e4 00C0 rjmp .L87 1010 .L93: 1011 09e6 0F5F subi r16,lo8(-(1)) 1012 09e8 00C0 rjmp .L92 1013 .L83: 1014 09ea 8091 0000 lds r24,AnalogOffsetNick 1015 09ee 8F5F subi r24,lo8(-(1)) 1016 09f0 8093 0000 sts AnalogOffsetNick,r24 1017 09f4 00E0 ldi r16,lo8(0) 1018 09f6 00C0 rjmp .L82 1019 .L124: 1020 09f8 86E4 ldi r24,lo8(70) 1021 09fa 90E0 ldi r25,hi8(70) 1022 09fc 0E94 0000 call Delay_ms_Mess 1023 /* epilogue: frame size=0 */ 1024 0a00 1F91 pop r17 1025 0a02 0F91 pop r16 1026 0a04 0895 ret 1027 /* epilogue end (size=3) */ 1028 /* function SucheGyroOffset size 206 (201) */ 1030 .global SucheLuftruckOffset 1032 SucheLuftruckOffset: 1033 /* prologue: frame size=0 */ 1034 0a06 CF92 push r12 1035 0a08 DF92 push r13 1036 0a0a EF92 push r14 1037 0a0c FF92 push r15 1038 0a0e 1F93 push r17 1039 0a10 CF93 push r28 1040 0a12 DF93 push r29 1041 /* prologue end (size=7) */ 1042 0a14 F0E0 ldi r31,lo8(EEPromArray+3) 1043 0a16 EF2E mov r14,r31 1044 0a18 F0E0 ldi r31,hi8(EEPromArray+3) 1045 0a1a FF2E mov r15,r31 1046 0a1c D701 movw r26,r14 1047 /* #APP */ 1048 0a1e 0E94 0000 call __eeprom_read_byte_1F2021 1049 0a22 802D mov r24,__tmp_reg__ 1050 /* #NOAPP */ 1051 0a24 C82F mov r28,r24 1052 0a26 D0E0 ldi r29,lo8(0) 1053 0a28 C531 cpi r28,21 1054 0a2a D105 cpc r29,__zero_reg__ 1055 0a2c 00F0 brlo .L126 1056 0a2e 2A97 sbiw r28,10 1057 .L126: 1058 0a30 C7BD out 71-0x20,r28 1059 0a32 1092 0000 sts ExpandBaro,__zero_reg__ 1060 0a36 84E6 ldi r24,lo8(100) 1061 0a38 90E0 ldi r25,hi8(100) 1062 0a3a 0E94 0000 call Delay_ms_Mess 1063 0a3e 8091 0000 lds r24,MessLuftdruck 1064 0a42 9091 0000 lds r25,(MessLuftdruck)+1 1065 0a46 8255 subi r24,lo8(850) 1066 0a48 9340 sbci r25,hi8(850) 1067 0a4a 00F4 brsh .L134 1068 0a4c C0E0 ldi r28,lo8(0) 1069 0a4e D0E0 ldi r29,hi8(0) 1070 0a50 E0E0 ldi r30,lo8(__c.2396) 1071 0a52 CE2E mov r12,r30 1072 0a54 E0E0 ldi r30,hi8(__c.2396) 1073 0a56 DE2E mov r13,r30 1074 0a58 00C0 rjmp .L135 1075 .L139: 1076 0a5a 2196 adiw r28,1 1077 0a5c CA3F cpi r28,250 1078 0a5e D105 cpc r29,__zero_reg__ 1079 0a60 00F4 brsh .L138 1080 .L135: 1081 0a62 1C2F mov r17,r28 1082 0a64 C7BD out 71-0x20,r28 1083 0a66 82E3 ldi r24,lo8(50) 1084 0a68 90E0 ldi r25,hi8(50) 1085 0a6a 0E94 0000 call Delay_ms_Mess 1086 0a6e DF92 push r13 1087 0a70 CF92 push r12 1088 0a72 1F92 push __zero_reg__ 1089 0a74 0E94 0000 call _printf_P 1090 0a78 8091 0000 lds r24,MessLuftdruck 1091 0a7c 9091 0000 lds r25,(MessLuftdruck)+1 1092 0a80 0F90 pop __tmp_reg__ 1093 0a82 0F90 pop __tmp_reg__ 1094 0a84 0F90 pop __tmp_reg__ 1095 0a86 8255 subi r24,lo8(850) 1096 0a88 9340 sbci r25,hi8(850) 1097 0a8a 00F4 brsh .L139 1098 0a8c 00C0 rjmp .L130 1099 .L134: 1100 0a8e 70E0 ldi r23,lo8(__c.2396) 1101 0a90 C72E mov r12,r23 1102 0a92 70E0 ldi r23,hi8(__c.2396) 1103 0a94 D72E mov r13,r23 1104 0a96 00C0 rjmp .L135 1105 .L138: 1106 0a98 1C2F mov r17,r28 1107 .L130: 1108 0a9a D701 movw r26,r14 1109 /* #APP */ 1110 0a9c 012E mov __tmp_reg__,r17 1111 0a9e 0E94 0000 call __eeprom_write_byte_1F2021 1112 /* #NOAPP */ 1113 0aa2 1093 0000 sts DruckOffsetSetting,r17 1114 0aa6 8CE2 ldi r24,lo8(300) 1115 0aa8 91E0 ldi r25,hi8(300) 1116 0aaa 0E94 0000 call Delay_ms_Mess 1117 /* epilogue: frame size=0 */ 1118 0aae DF91 pop r29 1119 0ab0 CF91 pop r28 1120 0ab2 1F91 pop r17 1121 0ab4 FF90 pop r15 1122 0ab6 EF90 pop r14 1123 0ab8 DF90 pop r13 1124 0aba CF90 pop r12 1125 0abc 0895 ret 1126 /* epilogue end (size=8) */ 1127 /* function SucheLuftruckOffset size 96 (81) */ 1129 .global UBat 1130 .data 1133 UBat: 1134 0000 6400 .word 100 1135 .global AdWertNickFilter 1136 .global AdWertNickFilter 1137 .section .bss 1140 AdWertNickFilter: 1141 0000 0000 .skip 2,0 1142 .global AdWertRollFilter 1143 .global AdWertRollFilter 1146 AdWertRollFilter: 1147 0002 0000 .skip 2,0 1148 .global AdWertGierFilter 1149 .global AdWertGierFilter 1152 AdWertGierFilter: 1153 0004 0000 .skip 2,0 1154 .global HiResNick 1155 .data 1158 HiResNick: 1159 0002 C409 .word 2500 1160 .global HiResRoll 1163 HiResRoll: 1164 0004 C409 .word 2500 1165 .global AdWertNick 1166 .global AdWertNick 1167 .section .bss 1170 AdWertNick: 1171 0006 0000 .skip 2,0 1172 .global AdWertRoll 1173 .global AdWertRoll 1176 AdWertRoll: 1177 0008 0000 .skip 2,0 1178 .global AdWertGier 1179 .global AdWertGier 1182 AdWertGier: 1183 000a 0000 .skip 2,0 1184 .global AdWertAccRoll 1185 .global AdWertAccRoll 1188 AdWertAccRoll: 1189 000c 0000 .skip 2,0 1190 .global AdWertAccNick 1191 .global AdWertAccNick 1194 AdWertAccNick: 1195 000e 0000 .skip 2,0 1196 .global AdWertAccHoch 1197 .global AdWertAccHoch 1200 AdWertAccHoch: 1201 0010 0000 .skip 2,0 1202 .global messanzahl_AccHoch 1203 .global messanzahl_AccHoch 1206 messanzahl_AccHoch: 1207 0012 00 .skip 1,0 1208 .global Luftdruck 1209 .data 1212 Luftdruck: 1213 0006 00 .byte 0 1214 0007 7D .byte 125 1215 0008 00 .byte 0 1216 0009 00 .byte 0 1217 .global MessLuftdruck 1220 MessLuftdruck: 1221 000a FF03 .word 1023 1222 .global ExpandBaro 1223 .global ExpandBaro 1224 .section .bss 1227 ExpandBaro: 1228 0013 00 .skip 1,0 1229 .global HoeheD 1230 .global HoeheD 1233 HoeheD: 1234 0014 0000 .skip 2,0 1235 .global ZaehlMessungen 1236 .global ZaehlMessungen 1239 ZaehlMessungen: 1240 0016 0000 .skip 2,0 1241 .global AnalogOffsetNick 1242 .data 1245 AnalogOffsetNick: 1246 000c 73 .byte 115 1247 .global AnalogOffsetRoll 1250 AnalogOffsetRoll: 1251 000d 73 .byte 115 1252 .global AnalogOffsetGier 1255 AnalogOffsetGier: 1256 000e 73 .byte 115 1257 .global GyroDefektN 1258 .global GyroDefektN 1259 .section .bss 1262 GyroDefektN: 1263 0018 00 .skip 1,0 1264 .global GyroDefektR 1265 .global GyroDefektR 1268 GyroDefektR: 1269 0019 00 .skip 1,0 1270 .global GyroDefektG 1271 .global GyroDefektG 1274 GyroDefektG: 1275 001a 00 .skip 1,0 1276 .global AdReady 1277 .data 1280 AdReady: 1281 000f 01 .byte 1 1282 .lcomm accx.2454,2 1283 .lcomm accy.2453,2 1284 .lcomm roll_filter.2452,2 1285 .lcomm nick_filter.2451,2 1286 .lcomm nick1.2450,2 1287 .lcomm roll1.2449,2 1288 .lcomm gier1.2448,2 1289 .lcomm state.2447,1 1290 .lcomm kanal.2446,1 1291 .section .progmem.data,"a",@progbits 1294 __c.2396: 1295 0000 2E00 .string "." 1296 .comm Aktuell_Nick,2,1 1297 .comm Aktuell_Roll,2,1 1298 .comm Aktuell_Gier,2,1 1299 .comm Aktuell_ax,2,1 1300 .comm Aktuell_ay,2,1 1301 .comm Aktuell_az,2,1 1302 .comm messanzahl_Druck,1,1 1303 .comm DruckOffsetSetting,1,1 1304 .comm StartLuftdruck,2,1 1305 .comm tmpLuftdruck,2,1 1306 /* File "analog.c": code 1410 = 0x0582 (1341), prologues 33, epilogues 36 */ DEFINED SYMBOLS *ABS*:00000000 analog.c C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:2 *ABS*:0000003f __SREG__ C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:3 *ABS*:0000003e __SP_H__ C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:4 *ABS*:0000003d __SP_L__ C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:5 *ABS*:00000000 __tmp_reg__ C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:6 *ABS*:00000001 __zero_reg__ C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:12 .text:00000000 ADC_Init C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:25 .text:0000000c __vector_24 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1288 .bss:00000029 state.2447 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1289 .bss:0000002a kanal.2446 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1285 .bss:00000023 nick1.2450 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1280 .data:0000000f AdReady C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1239 .bss:00000016 ZaehlMessungen *COM*:00000002 tmpLuftdruck *COM*:00000001 messanzahl_Druck C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1220 .data:0000000a MessLuftdruck C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1233 .bss:00000014 HoeheD C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1227 .bss:00000013 ExpandBaro *COM*:00000002 StartLuftdruck C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1212 .data:00000006 Luftdruck C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1200 .bss:00000010 AdWertAccHoch C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1206 .bss:00000012 messanzahl_AccHoch *COM*:00000002 Aktuell_az C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1286 .bss:00000025 roll1.2449 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1133 .data:00000000 UBat C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1287 .bss:00000027 gier1.2448 *COM*:00000002 Aktuell_ay C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1282 .bss:0000001d accy.2453 *COM*:00000002 Aktuell_ax .bss:0000001b accx.2454 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1182 .bss:0000000a AdWertGier C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1188 .bss:0000000c AdWertAccRoll C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1194 .bss:0000000e AdWertAccNick C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1170 .bss:00000006 AdWertNick C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1284 .bss:00000021 nick_filter.2451 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1158 .data:00000002 HiResNick C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1140 .bss:00000000 AdWertNickFilter C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1176 .bss:00000008 AdWertRoll C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1283 .bss:0000001f roll_filter.2452 C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1163 .data:00000004 HiResRoll C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1146 .bss:00000002 AdWertRollFilter C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:852 .text:00000878 SucheGyroOffset C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1262 .bss:00000018 GyroDefektN C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1268 .bss:00000019 GyroDefektR C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1274 .bss:0000001a GyroDefektG C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1245 .data:0000000c AnalogOffsetNick C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1250 .data:0000000d AnalogOffsetRoll C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1255 .data:0000000e AnalogOffsetGier C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1032 .text:00000a06 SucheLuftruckOffset C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1294 .progmem.data:00000000 __c.2396 *COM*:00000001 DruckOffsetSetting C:\DOKUME~1\David\LOKALE~1\Temp/ccH12TJL.s:1152 .bss:00000004 AdWertGierFilter *COM*:00000002 Aktuell_Nick *COM*:00000002 Aktuell_Roll *COM*:00000002 Aktuell_Gier UNDEFINED SYMBOLS __do_copy_data __do_clear_bss HoehenWert Parameter_Luftdruck_D __divmodsi4 NeutralAccZ __floatsisf __subsf3 __fixsfsi __ltsf2 __addsf3 modell_fliegt Mess_Integral_Hoch __udivmodhi4 NeutralAccY NeutralAccX PlatinenVersion AdNeutralNick AdNeutralRoll __gtsf2 twi_state i2c_start Delay_ms_Mess EEPromArray __eeprom_read_byte_1F2021 _printf_P __eeprom_write_byte_1F2021