Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SoftwareSerialExample-492.ino.elf: file format elf32-avr
- - Tx Timing 1: from start bit to first bit
- 00000436 <_ZN14SoftwareSerial5writeEh>:
- LGT 48c: 40 83 st Z, r20
- ------
- 1 1 48e: e9 01 movw r28, r18
- 490: 21 97 sbiw r28, 0x01 ; delay_loop
- 492: 00 00 nop ; not count here
- 494: e9 f7 brne .-6 ; not count here
- 496: 00 00 nop ; not count here
- 1 1 498: 48 e0 ldi r20, 0x08 ; 8
- 1 1 49a: 50 81 ld r21, Z
- 1 2 49c: 60 ff sbrs r22, 0
- 1 49e: 02 c0 rjmp .+4 ; 0x4a4 <_ZN14SoftwareSerial5writeEh+0x6e>
- 1 4a0: 59 2b or r21, r25
- 1 4a2: 01 c0 rjmp .+2 ; 0x4a6 <_ZN14SoftwareSerial5writeEh+0x70>
- 1 4a4: 58 23 and r21, r24
- 1 1 4a6: 50 83 st Z, r21
- ------
- 7 8
- - Tx Timing 2: between bits
- 1 1 49a: 50 81 ld r21, Z
- 1 2 49c: 60 ff sbrs r22, 0
- 1 49e: 02 c0 rjmp .+4 ; 0x4a4 <_ZN14SoftwareSerial5writeEh+0x6e>
- 1 4a0: 59 2b or r21, r25
- 1 4a2: 01 c0 rjmp .+2 ; 0x4a6 <_ZN14SoftwareSerial5writeEh+0x70>
- 1 4a4: 58 23 and r21, r24
- 1 1 4a6: 50 83 st Z, r21
- 1 1 4a8: e9 01 movw r28, r18
- 4aa: 21 97 sbiw r28, 0x01 ; delay_loop
- 4ac: 00 00 nop ; not count here
- 4ae: e9 f7 brne .-6 ; not count here
- 4b0: 00 00 nop ; not count here
- 1 1 4b2: 66 95 lsr r22
- 1 1 4b4: 41 50 subi r20, 0x01 ; 1
- 2 2 4b6: 89 f7 brne .-30 ; 0x49a <_ZN14SoftwareSerial5writeEh+0x64>
- ------
- 10 11
- - Tx Timing 3: from last bit to stop bit
- 4a6: 50 83 st Z, r21
- 1 1 4a8: e9 01 movw r28, r18
- 4aa: 21 97 sbiw r28, 0x01 ; delay_loop
- 4ac: 00 00 nop ; not count here
- 4ae: e9 f7 brne .-6 ; not count here
- 4b0: 00 00 nop ; not count here
- 1 1 4b2: 66 95 lsr r22
- 1 1 4b4: 41 50 subi r20, 0x01 ; 1
- 1 1 4b6: 89 f7 brne .-30 ; 0x49a <_ZN14SoftwareSerial5writeEh+0x64>
- 1 1 4b8: 77 23 and r23, r23
- 1 2 4ba: 21 f0 breq .+8 ; 0x4c4 <_ZN14SoftwareSerial5writeEh+0x8e>
- 1 4bc: 90 81 ld r25, Z
- 1 4be: 89 23 and r24, r25
- 1 4c0: 80 83 st Z, r24
- 1 4c2: 03 c0 rjmp .+6 ; 0x4ca <_ZN14SoftwareSerial5writeEh+0x94>
- 1 4c4: 80 81 ld r24, Z
- 1 4c6: 98 2b or r25, r24
- 1 4c8: 90 83 st Z, r25
- ------
- 10 10
- - Rx Timing 1: raise interrupt signal
- 4clk cycles, maybe AVR/LGT same
- - Rx Timing 2: CPU recognize interrupt signal
- 4clk cycles, maybe AVR/LGT same
- - Rx Timing 3: jmp @ vectors ~ before centering delay
- 00000000 <__vectors>:
- 3 3 c: 0c 94 7d 03 jmp 0x6fa ; 0x6fa <__vector_3>
- 000006fa <__vector_3>:
- 1 1 6fa: 1f 92 push r1
- 1 1 6fc: 0f 92 push r0
- 1 1 6fe: 0f b6 in r0, 0x3f ; 63
- 1 1 700: 0f 92 push r0
- 1 1 702: 11 24 eor r1, r1
- 1 1 704: 2f 93 push r18
- 1 1 706: 3f 93 push r19
- 1 1 708: 4f 93 push r20
- 1 1 70a: 5f 93 push r21
- 1 1 70c: 6f 93 push r22
- 1 1 70e: 7f 93 push r23
- 1 1 710: 8f 93 push r24
- 1 1 712: 9f 93 push r25
- 1 1 714: af 93 push r26
- 1 1 716: bf 93 push r27
- 1 1 718: ef 93 push r30
- 1 1 71a: ff 93 push r31
- 2 2 71c: e0 91 88 01 lds r30, 0x0188 ; 0x800188 <_ZN14SoftwareSerial13active_objectE>
- 2 2 720: f0 91 89 01 lds r31, 0x0189 ; 0x800189 <_ZN14SoftwareSerial13active_objectE+0x1>
- 1 1 724: 30 97 sbiw r30, 0x00 ; 0
- 2 2 726: 09 f4 brne .+2 ; 0x72a <__vector_3+0x30>
- 728: 57 c0 rjmp .+174 ; 0x7d8 <__vector_3+0xde>
- 1 1 72a: 96 8d ldd r25, Z+30 ; 0x1e
- 1 1 72c: a6 85 ldd r26, Z+14 ; 0x0e
- 1 1 72e: b7 85 ldd r27, Z+15 ; 0x0f
- 1 1 730: 85 85 ldd r24, Z+13 ; 0x0d
- 1 2 732: 91 ff sbrs r25, 1
- 1 734: 04 c0 rjmp .+8 ; 0x73e <__vector_3+0x44>
- 1 736: 9c 91 ld r25, X
- 1 738: 89 23 and r24, r25
- 2 73a: 29 f4 brne .+10 ; 0x746 <__vector_3+0x4c>
- 73c: 4d c0 rjmp .+154 ; 0x7d8 <__vector_3+0xde>
- 1 73e: 9c 91 ld r25, X
- 1 740: 89 23 and r24, r25
- 2 742: 09 f0 breq .+2 ; 0x746 <__vector_3+0x4c>
- 744: 49 c0 rjmp .+146 ; 0x7d8 <__vector_3+0xde>
- 1 1 746: a3 89 ldd r26, Z+19 ; 0x13
- 1 1 748: b4 89 ldd r27, Z+20 ; 0x14
- 1 1 74a: 9c 91 ld r25, X
- 1 1 74c: 85 89 ldd r24, Z+21 ; 0x15
- 1 1 74e: 80 95 com r24
- 1 1 750: 89 23 and r24, r25
- 1 1 752: 8c 93 st X, r24
- 1 1 754: 86 89 ldd r24, Z+22 ; 0x16
- 1 1 756: 97 89 ldd r25, Z+23 ; 0x17
- 758: 01 97 sbiw r24, 0x01 ; delay_loop
- 75a: 00 00 nop ; not count here
- 75c: e9 f7 brne .-6 ; not count here
- 75e: 00 00 nop
- ------
- 46 46
- - Rx Timing 4: after centering delay ~ read signal pin
- 758: 01 97 sbiw r24, 0x01 ; delay_loop
- 75a: 00 00 nop ; not count here
- 75c: e9 f7 brne .-6 ; not count here
- 75e: 00 00 nop
- 1 760: 60 8d ldd r22, Z+24 ; 0x18
- 1 762: 71 8d ldd r23, Z+25 ; 0x19
- 1 764: a6 85 ldd r26, Z+14 ; 0x0e
- 1 766: b7 85 ldd r27, Z+15 ; 0x0f
- 1 768: 55 85 ldd r21, Z+13 ; 0x0d
- 1 76a: 38 e0 ldi r19, 0x08 ; 8
- 1 76c: 20 e0 ldi r18, 0x00 ; 0
- 1 76e: cb 01 movw r24, r22
- 770: 01 97 sbiw r24, 0x01 ; delay_loop
- 772: 00 00 nop ; not count here
- 774: e9 f7 brne .-6 ; not count here
- 776: 00 00 nop ; not count here
- 1 778: 82 2f mov r24, r18
- 1 77a: 90 e0 ldi r25, 0x00 ; 0
- 1 77c: 95 95 asr r25
- 1 77e: 87 95 ror r24
- 1 780: 28 2f mov r18, r24
- 1 782: 4c 91 ld r20, X
- ------
- 14
- - Rx Timing 5: inside read loop
- 1 1 76e: cb 01 movw r24, r22
- 770: 01 97 sbiw r24, 0x01 ; delay_loop
- 772: 00 00 nop ; not count here
- 774: e9 f7 brne .-6 ; not count here
- 776: 00 00 nop ; not count here
- 1 1 778: 82 2f mov r24, r18
- 1 1 77a: 90 e0 ldi r25, 0x00 ; 0
- 1 1 77c: 95 95 asr r25
- 1 1 77e: 87 95 ror r24
- 1 1 780: 28 2f mov r18, r24
- 1 1 782: 4c 91 ld r20, X
- 1 1 784: 45 23 and r20, r21
- 1 2 786: 09 f0 breq .+2 ; 0x78a <__vector_3+0x90>
- 1 788: 20 68 ori r18, 0x80 ; 128
- 1 1 78a: 31 50 subi r19, 0x01 ; 1
- 2 2 78c: 81 f7 brne .-32 ; 0x76e <__vector_3+0x74>
- ------
- 13 13
- - Rx Timing 6: after last bit read ~ before stop bit delay
- 782: 4c 91 ld r20, X
- 1 1 784: 45 23 and r20, r21
- 1 2 786: 09 f0 breq .+2 ; 0x78a <__vector_3+0x90>
- 1 788: 20 68 ori r18, 0x80 ; 128
- 1 1 78a: 31 50 subi r19, 0x01 ; 1
- 1 1 78c: 81 f7 brne .-32 ; 0x76e <__vector_3+0x74>
- 1 1 78e: 86 8d ldd r24, Z+30 ; 0x1e
- 1 2 790: 81 fd sbrc r24, 1
- 1 792: 20 95 com r18
- 2 2 794: 80 91 87 01 lds r24, 0x0187 ; 0x800187 <_ZN14SoftwareSerial20_receive_buffer_tailE>
- 1 1 798: 90 e0 ldi r25, 0x00 ; 0
- 1 1 79a: 01 96 adiw r24, 0x01 ; 1
- 1 1 79c: 8f 73 andi r24, 0x3F ; 63
- 1 1 79e: 99 27 eor r25, r25
- 2 2 7a0: 30 91 86 01 lds r19, 0x0186 ; 0x800186 <_ZN14SoftwareSerial20_receive_buffer_headE>
- 1 1 7a4: 38 17 cp r19, r24
- 1 2 7a6: 49 f0 breq .+18 ; 0x7ba <__vector_3+0xc0>
- 2 7a8: a0 91 87 01 lds r26, 0x0187 ; 0x800187 <_ZN14SoftwareSerial20_receive_buffer_tailE>
- 1 7ac: b0 e0 ldi r27, 0x00 ; 0
- 1 7ae: aa 5b subi r26, 0xBA ; 186
- 1 7b0: be 4f sbci r27, 0xFE ; 254
- 1 7b2: 2c 93 st X, r18
- 2 7b4: 80 93 87 01 sts 0x0187, r24 ; 0x800187 <_ZN14SoftwareSerial20_receive_buffer_tailE>
- 1 7b8: 03 c0 rjmp .+6 ; 0x7c0 <__vector_3+0xc6>
- 1 7ba: 86 8d ldd r24, Z+30 ; 0x1e (overflow)
- 1 7bc: 81 60 ori r24, 0x01 ; 1
- 1 7be: 86 8f std Z+30, r24 ; 0x1e
- 1 1 7c0: 82 8d ldd r24, Z+26 ; 0x1a
- 1 1 7c2: 93 8d ldd r25, Z+27 ; 0x1b
- 7c4: 01 97 sbiw r24, 0x01 ; delay_loop
- 7c6: 00 00 nop ; not count here
- 7c8: e9 f7 brne .-6 ; not count here
- 7ca: 00 00 nop ; not count here
- ------
- 29 24
- - Rx Timing 7: after stop bit delay ~ re-enable interrupt
- 7c4: 01 97 sbiw r24, 0x01 ; delay_loop
- 7c6: 00 00 nop ; not count here
- 7c8: e9 f7 brne .-6 ; not count here
- 7ca: 00 00 nop ; not count here
- 1 7cc: a3 89 ldd r26, Z+19 ; 0x13
- 1 7ce: b4 89 ldd r27, Z+20 ; 0x14
- 1 7d0: 9c 91 ld r25, X
- 1 7d2: 85 89 ldd r24, Z+21 ; 0x15
- 1 7d4: 89 2b or r24, r25
- 1 7d6: 8c 93 st X, r24
- ------
- 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement