⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lss

📁 这是使用AVR GCC的读取DS18B20的代码。 代码功能很全
💻 LSS
📖 第 1 页 / 共 5 页
字号:

main.elf:     file format elf32-avr

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00001890  00000000  00000000  00000094  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .data         0000000a  00800060  00001890  00001924  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000074  0080006a  0080006a  0000192e  2**0
                  ALLOC
  3 .noinit       00000000  008000de  008000de  0000192e  2**0
                  CONTENTS
  4 .eeprom       00000000  00810000  00810000  0000192e  2**0
                  CONTENTS
  5 .stab         0000036c  00000000  00000000  00001930  2**2
                  CONTENTS, READONLY, DEBUGGING
  6 .stabstr      00000084  00000000  00000000  00001c9c  2**0
                  CONTENTS, READONLY, DEBUGGING
  7 .debug_aranges 00000078  00000000  00000000  00001d20  2**0
                  CONTENTS, READONLY, DEBUGGING
  8 .debug_pubnames 000003dc  00000000  00000000  00001d98  2**0
                  CONTENTS, READONLY, DEBUGGING
  9 .debug_info   0000139a  00000000  00000000  00002174  2**0
                  CONTENTS, READONLY, DEBUGGING
 10 .debug_abbrev 0000059b  00000000  00000000  0000350e  2**0
                  CONTENTS, READONLY, DEBUGGING
 11 .debug_line   00000f42  00000000  00000000  00003aa9  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .debug_str    000004e6  00000000  00000000  000049eb  2**0
                  CONTENTS, READONLY, DEBUGGING
 13 .debug_ranges 0000000c  00001890  00001890  00004ed1  2**0
                  CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:

00000000 <__vectors>:
       0:	0c 94 ab 02 	jmp	0x556 <__init>
       4:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
       8:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
       c:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      10:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      14:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      18:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      1c:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      20:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      24:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      28:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      2c:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      30:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      34:	0c 94 f0 0a 	jmp	0x15e0 <__vector_13>
      38:	0c 94 19 0b 	jmp	0x1632 <__vector_14>
      3c:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      40:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      44:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      48:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      4c:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>
      50:	0c 94 c6 02 	jmp	0x58c <__bad_interrupt>

00000054 <__ctors_end>:
      54:	0d 53       	subi	r16, 0x3D	; 61
      56:	63 61       	ori	r22, 0x13	; 19
      58:	6e 6e       	ori	r22, 0xEE	; 238
      5a:	69 6e       	ori	r22, 0xE9	; 233
      5c:	67 20       	and	r6, r7
      5e:	42 75       	andi	r20, 0x52	; 82
      60:	73 20       	and	r7, r3
      62:	66 6f       	ori	r22, 0xF6	; 246
      64:	72 20       	and	r7, r2
      66:	44 53       	subi	r20, 0x34	; 52
      68:	31 38       	cpi	r19, 0x81	; 129
      6a:	58 32       	cpi	r21, 0x28	; 40
      6c:	30 0d       	add	r19, r0
	...

0000006f <c.47>:
      6f:	4e 6f 20 53 65 6e 73 6f 72 20 66 6f 75 6e 64 0d     No Sensor found.
	...

00000080 <c.48>:
      80:	42 75 73 20 45 72 72 6f 72 0d 00                    Bus Error..

0000008b <c.41>:
      8b:	2e 00                                               ..

0000008d <c.42>:
      8d:	30 00                                               0.

0000008f <c.43>:
      8f:	b0 43 20 5b 00                                      .C [.

00000094 <c.44>:
      94:	2e 00                                               ..

00000096 <c.45>:
      96:	b0 43 5d 00                                         .C].

0000009a <c.0>:
      9a:	0d 44 53 31 38 58 32 30 20 31 2d 57 69 72 65 2d     .DS18X20 1-Wire-
      aa:	52 65 61 64 65 72 20 44 65 6d 6f 20 62 79 20 4d     Reader Demo by M
      ba:	61 72 74 69 6e 20 54 68 6f 6d 61 73 0d 00           artin Thomas..

000000c8 <c.1>:
      c8:	2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d     ----------------
      d8:	2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d     ----------------
      e8:	2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 00                 -----------.

000000f4 <c.2>:
      f4:	20 44 53 31 38 58 32 30 20 53 65 6e 73 6f 72 28      DS18X20 Sensor(
     104:	73 29 20 61 76 61 69 6c 61 62 6c 65 3a 0d 00        s) available:..

00000113 <c.3>:
     113:	23 20 69 6e 20 42 75 73 20 3a 00                    # in Bus :.

0000011e <c.4>:
     11e:	20 3a 20 00                                          : .

00000122 <c.5>:
     122:	0d 00                                               ..

00000124 <c.6>:
     124:	53 65 6e 73 6f 72 23 20 00                          Sensor# .

0000012d <c.7>:
     12d:	20 69 73 20 61 20 00                                 is a .

00000134 <c.8>:
     134:	44 53 31 38 53 32 30 2f 44 53 31 38 32 30 00        DS18S20/DS1820.

00000143 <c.9>:
     143:	44 53 31 38 42 32 30 00                             DS18B20.

0000014b <c.10>:
     14b:	20 77 68 69 63 68 20 69 73 20 00                     which is .

00000156 <c.11>:
     156:	70 61 72 61 73 69 74 65 00                          parasite.

0000015f <c.12>:
     15f:	65 78 74 65 72 6e 61 6c 6c 79 00                    externally.

0000016a <c.13>:
     16a:	20 70 6f 77 65 72 65 64 0d 00                        powered..

00000174 <c.29>:
     174:	0d 44 53 31 38 78 32 30 20 45 45 50 52 4f 4d 20     .DS18x20 EEPROM 
     184:	73 75 70 70 6f 72 74 20 74 65 73 74 20 66 6f 72     support test for
     194:	20 66 69 73 74 20 73 65 6e 73 6f 72 0d 00            fist sensor..

000001a2 <c.30>:
     1a2:	54 48 2f 54 4c 20 66 72 6f 6d 20 45 45 50 52 4f     TH/TL from EEPRO
     1b2:	4d 20 73 65 6e 73 6f 72 20 31 20 3a 20 00           M sensor 1 : .

000001c0 <c.31>:
     1c0:	20 2f 20 00                                          / .

000001c4 <c.32>:
     1c4:	0d 00                                               ..

000001c6 <c.33>:
     1c6:	54 48 2b 31 20 61 6e 64 20 54 4c 2b 31 20 77 72     TH+1 and TL+1 wr
     1d6:	69 74 74 65 6e 20 74 6f 20 73 63 72 61 74 63 68     itten to scratch
     1e6:	70 61 64 0d 00                                      pad..

000001eb <c.34>:
     1eb:	73 63 72 61 74 63 68 70 61 64 20 63 6f 70 69 65     scratchpad copie
     1fb:	64 20 74 6f 20 44 53 31 38 78 32 30 20 45 45 50     d to DS18x20 EEP
     20b:	52 4f 4d 0d 00                                      ROM..

00000210 <c.35>:
     210:	44 53 31 38 78 32 30 20 45 45 50 52 4f 4d 20 63     DS18x20 EEPROM c
     220:	6f 70 69 65 64 20 62 61 63 6b 20 74 6f 20 73 63     opied back to sc
     230:	72 61 74 63 68 70 61 64 0d 00                       ratchpad..

0000023a <c.36>:
     23a:	54 48 20 61 6e 64 20 54 4c 20 76 65 72 69 66 69     TH and TL verifi
     24a:	65 64 0d 00                                         ed..

0000024e <c.37>:
     24e:	76 65 72 69 66 79 20 66 61 69 6c 65 64 0d 00        verify failed..

0000025d <c.38>:
     25d:	54 48 2f 54 4c 20 66 72 6f 6d 20 45 45 50 52 4f     TH/TL from EEPRO
     26d:	4d 20 73 65 6e 73 6f 72 20 31 20 6e 6f 77 20 3a     M sensor 1 now :
     27d:	20 00                                                .

0000027f <c.39>:
     27f:	20 2f 20 00                                          / .

00000283 <c.40>:
     283:	0d 00                                               ..

00000285 <c.14>:
     285:	0d 54 68 65 72 65 20 69 73 20 6f 6e 6c 79 20 6f     .There is only o
     295:	6e 65 20 73 65 6e 73 6f 72 20 2d 3e 20 44 65 6d     ne sensor -> Dem
     2a5:	6f 20 6f 66 20 22 72 65 61 64 5f 6d 65 61 73 5f     o of "read_meas_
     2b5:	73 69 6e 67 6c 65 22 3a 0d 00                       single":..

000002bf <c.15>:
     2bf:	0d 00                                               ..

000002c1 <c.16>:
     2c1:	0d 43 6f 6e 76 65 72 74 5f 54 20 61 6e 64 20 52     .Convert_T and R
     2d1:	65 61 64 20 53 65 6e 73 6f 72 20 62 79 20 53 65     ead Sensor by Se
     2e1:	6e 73 6f 72 20 28 72 65 76 65 72 73 65 20 6f 72     nsor (reverse or
     2f1:	64 65 72 29 0d 00                                   der)..

000002f7 <c.17>:
     2f7:	53 65 6e 73 6f 72 23 20 00                          Sensor# .

00000300 <c.18>:
     300:	20 3d 20 00                                          = .

00000304 <c.19>:
     304:	43 52 43 20 45 72 72 6f 72 20 28 6c 6f 73 74 20     CRC Error (lost 
     314:	63 6f 6e 6e 65 63 74 69 6f 6e 3f 29 00              connection?).

00000321 <c.20>:
     321:	0d 00                                               ..

00000323 <c.21>:
     323:	53 74 61 72 74 20 6d 65 61 73 2e 20 66 61 69 6c     Start meas. fail
     333:	65 64 20 28 73 68 6f 72 74 20 63 69 72 63 75 69     ed (short circui
     343:	74 3f 29 00                                         t?).

00000347 <c.22>:
     347:	0d 43 6f 6e 76 65 72 74 5f 54 20 66 6f 72 20 61     .Convert_T for a
     357:	6c 6c 20 53 65 6e 73 6f 72 73 20 61 6e 64 20 52     ll Sensors and R
     367:	65 61 64 20 53 65 6e 73 6f 72 20 62 79 20 53 65     ead Sensor by Se
     377:	6e 73 6f 72 0d 00                                   nsor..

0000037d <c.23>:
     37d:	53 65 6e 73 6f 72 23 20 00                          Sensor# .

00000386 <c.24>:
     386:	20 3d 20 00                                          = .

0000038a <c.25>:
     38a:	43 52 43 20 45 72 72 6f 72 20 28 6c 6f 73 74 20     CRC Error (lost 
     39a:	63 6f 6e 6e 65 63 74 69 6f 6e 3f 29 00              connection?).

000003a7 <c.26>:
     3a7:	0d 00                                               ..

000003a9 <c.27>:
     3a9:	53 74 61 72 74 20 6d 65 61 73 2e 20 66 61 69 6c     Start meas. fail
     3b9:	65 64 20 28 73 68 6f 72 74 20 63 69 72 63 75 69     ed (short circui
     3c9:	74 3f 29 00                                         t?).

000003cd <c.28>:
     3cd:	0d 56 65 72 62 6f 73 65 20 6f 75 74 70 75 74 0d     .Verbose output.
	...

000003de <c.30>:
     3de:	2e 00                                               ..

000003e0 <c.31>:
     3e0:	30 00                                               0.

000003e2 <c.32>:
     3e2:	b0 43 00                                            .C.

000003e5 <c.21>:
     3e5:	46 43 3a 00                                         FC:.

000003e9 <c.22>:
     3e9:	43 52 43 3a 00                                      CRC:.

000003ee <c.23>:
     3ee:	53 4e 3a 20 00                                      SN: .

000003f3 <c.24>:
     3f3:	20 00                                                .

000003f5 <c.25>:
     3f5:	28 31 38 53 29 00                                   (18S).

000003fb <c.26>:
     3fb:	28 31 38 42 29 00                                   (18B).

00000401 <c.27>:
     401:	28 20 3f 20 29 00                                   ( ? ).

00000407 <c.28>:
     407:	20 43 52 43 20 46 41 49 4c 20 00                     CRC FAIL .

00000412 <c.29>:
     412:	20 43 52 43 20 4f 2e 4b 2e 20 00                     CRC O.K. .

0000041d <c.18>:
     41d:	53 50 3a 00                                         SP:.

00000421 <c.19>:
     421:	43 52 43 3a 00                                      CRC:.

00000426 <c.20>:
     426:	20 00                                                .

00000428 <c.5>:
     428:	4e 6f 20 53 65 6e 73 6f 72 20 66 6f 75 6e 64 0d     No Sensor found.
	...

00000439 <c.6>:
     439:	42 75 73 20 45 72 72 6f 72 0d 00                    Bus Error..

00000444 <c.7>:
     444:	20 43 52 43 20 46 41 49 4c 20 00                     CRC FAIL .

0000044f <c.8>:
     44f:	20 43 52 43 20 4f 2e 4b 2e 20 00                     CRC O.K. .

0000045a <c.9>:
     45a:	20 54 5f 72 61 77 3d 00                              T_raw=.

00000462 <c.10>:
     462:	20 00                                                .

00000464 <c.11>:
     464:	53 32 30 2f 30 39 00                                S20/09.

0000046b <c.12>:
     46b:	42 32 30 2f 31 32 00                                B20/12.

00000472 <c.13>:
     472:	42 32 30 2f 31 31 00                                B20/11.

00000479 <c.14>:
     479:	20 42 32 30 2f 31 30 20 00                           B20/10 .

00000482 <c.15>:
     482:	42 32 30 2f 30 39 00                                B20/09.

00000489 <c.16>:
     489:	20 00                                                .

0000048b <c.17>:
     48b:	0d 00                                               ..

0000048d <c.4>:
     48d:	44 53 31 38 58 32 30 5f 73 74 61 72 74 5f 6d 65     DS18X20_start_me
     49d:	61 73 3a 20 53 68 6f 72 74 20 43 69 72 63 75 69     as: Short Circui
     4ad:	74 20 21 0d 00                                      t !..

000004b2 <c.3>:
     4b2:	44 53 31 38 58 32 30 5f 77 72 69 74 65 5f 73 63     DS18X20_write_sc
     4c2:	72 61 74 63 68 70 61 64 3a 20 53 68 6f 72 74 20     ratchpad: Short 
     4d2:	43 69 72 63 75 69 74 20 21 0d 00                    Circuit !..

000004dd <c.2>:
     4dd:	44 53 31 38 58 32 30 5f 72 65 61 64 5f 73 63 72     DS18X20_read_scr
     4ed:	61 74 63 68 70 61 64 3a 20 53 68 6f 72 74 20 43     atchpad: Short C
     4fd:	69 72 63 75 69 74 20 21 0d 00                       ircuit !..

00000507 <c.1>:
     507:	44 53 31 38 58 32 30 5f 63 6f 70 79 5f 73 63 72     DS18X20_copy_scr
     517:	61 74 63 68 70 61 64 3a 20 53 68 6f 72 74 20 43     atchpad: Short C
     527:	69 72 63 75 69 74 20 21 0d 00                       ircuit !..

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -