18b20的c程序+串口通讯+595显示温度
源代码在线查看: com.m51
BL51 BANKED LINKER/LOCATER V5.00 03/24/2007 21:59:49 PAGE 1
BL51 BANKED LINKER/LOCATER V5.00, INVOKED BY:
C:\KEIL\C51\BIN\BL51.EXE com.obj TO com
MEMORY MODEL: SMALL
INPUT MODULES INCLUDED:
com.obj (COM)
C:\KEIL\C51\LIB\C51S.LIB (?C_STARTUP)
LINK MAP OF MODULE: com (COM)
TYPE BASE LENGTH RELOCATION SEGMENT NAME
-----------------------------------------------------
* * * * * * * D A T A M E M O R Y * * * * * * *
REG 0000H 0008H ABSOLUTE "REG BANK 0"
DATA 0008H 0003H UNIT ?DT?COM
IDATA 000BH 0001H UNIT ?STACK
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
CODE 0003H 002EH UNIT ?PR?MAIN?COM
CODE 0031H 0021H UNIT ?CO?COM
CODE 0052H 001CH UNIT ?PR?_DISPLAY?COM
CODE 006EH 0019H UNIT ?PR?_SENDBYTE?COM
CODE 0087H 0017H UNIT ?PR?_DELAY?COM
CODE 009EH 0015H UNIT ?PR?INITCOM?COM
CODE 00B3H 0014H UNIT ?PR?SEND_STR?COM
CODE 00C7H 0012H UNIT ?PR?_DELAYMS?COM
CODE 00D9H 000FH UNIT ?PR?SCAN_KEY?COM
CODE 00E8H 000CH UNIT ?C_C51STARTUP
CODE 00F4H 0009H UNIT ?PR?KEY_PRO?COM
CODE 00FDH 0008H UNIT ?PR?_SEND_CHAR?COM
CODE 0105H 0007H UNIT ?PR?OUT595?COM
OVERLAY MAP OF MODULE: com (COM)
SEGMENT
+--> CALLED SEGMENT
---------------------
?C_C51STARTUP
+--> ?PR?MAIN?COM
?PR?MAIN?COM
+--> ?PR?INITCOM?COM
+--> ?PR?_DELAYMS?COM
+--> ?PR?_SEND_CHAR?COM
+--> ?PR?_DISPLAY?COM
?PR?_DISPLAY?COM
+--> ?PR?_SENDBYTE?COM
BL51 BANKED LINKER/LOCATER V5.00 03/24/2007 21:59:49 PAGE 2
+--> ?PR?OUT595?COM
?PR?_SENDBYTE?COM
+--> ?CO?COM
SYMBOL TABLE OF MODULE: com (COM)
VALUE TYPE NAME
----------------------------------
------- MODULE COM
C:0000H SYMBOL _ICE_DUMMY_
D:0080H PUBLIC P0
D:0090H PUBLIC P1
D:00A0H PUBLIC P2
B:00B0H.4 PUBLIC T0
B:00D0H.6 PUBLIC AC
B:00B0H.5 PUBLIC T1
B:00A8H.7 PUBLIC EA
C:00FDH PUBLIC _send_char
D:00A8H PUBLIC IE
B:00B0H.7 PUBLIC RD
B:00A8H.4 PUBLIC ES
B:0098H.0 PUBLIC RI
B:00B0H.2 PUBLIC INT0
B:00D0H.7 PUBLIC CY
B:0098H.1 PUBLIC TI
B:00B0H.3 PUBLIC INT1
D:0008H PUBLIC key_s
D:0009H PUBLIC key_v
B:00B8H.4 PUBLIC PS
B:00D0H.2 PUBLIC OV
C:0003H PUBLIC main
B:00B0H.6 PUBLIC WR
B:0080H.7 PUBLIC RCLK
D:0099H PUBLIC SBUF
D:0087H PUBLIC PCON
D:0098H PUBLIC SCON
D:0089H PUBLIC TMOD
C:0046H PUBLIC tab
B:0088H.1 PUBLIC IE0
B:0088H.3 PUBLIC IE1
C:006EH PUBLIC _sendbyte
B:00A8H.1 PUBLIC ET0
B:00A8H.3 PUBLIC ET1
B:0088H.5 PUBLIC TF0
B:0088H.7 PUBLIC TF1
B:0098H.2 PUBLIC RB8
B:00A8H.0 PUBLIC EX0
B:0088H.0 PUBLIC IT0
D:008DH PUBLIC TH1
B:0098H.3 PUBLIC TB8
B:00A8H.2 PUBLIC EX1
B:0088H.2 PUBLIC IT1
B:00D0H.0 PUBLIC P
BL51 BANKED LINKER/LOCATER V5.00 03/24/2007 21:59:49 PAGE 3
B:0098H.7 PUBLIC SM0
B:0098H.6 PUBLIC SM1
D:008BH PUBLIC TL1
C:00D9H PUBLIC scan_key
D:000AH PUBLIC tmp
B:0098H.5 PUBLIC SM2
C:00C7H PUBLIC _delayms
B:00B8H.1 PUBLIC PT0
B:00B8H.3 PUBLIC PT1
B:00D0H.3 PUBLIC RS0
B:0088H.4 PUBLIC TR0
B:00D0H.4 PUBLIC RS1
B:0088H.6 PUBLIC TR1
B:00B8H.0 PUBLIC PX0
B:0080H.4 PUBLIC DAT
B:00B8H.2 PUBLIC PX1
C:0052H PUBLIC _display
B:0080H.6 PUBLIC CLK
C:0031H PUBLIC str
B:0098H.4 PUBLIC REN
C:00B3H PUBLIC send_str
B:00B0H.0 PUBLIC RXD
B:00B0H.1 PUBLIC TXD
C:0087H PUBLIC _delay
B:00D0H.5 PUBLIC F0
C:009EH PUBLIC initcom
B:0090H.0 PUBLIC K1
C:0105H PUBLIC out595
C:00F4H PUBLIC key_pro
------- PROC _DELAY
D:0006H SYMBOL j
------- DO
D:0005H SYMBOL m
------- ENDDO
C:0087H LINE# 34
C:0087H LINE# 35
C:0087H LINE# 36
C:0090H LINE# 37
C:0090H LINE# 38
C:0092H LINE# 39
C:0096H LINE# 40
C:009DH LINE# 41
------- ENDPROC _DELAY
------- PROC _SENDBYTE
D:0007H SYMBOL byte
------- DO
D:0007H SYMBOL num
D:0006H SYMBOL i
------- ENDDO
C:006EH LINE# 43
C:006EH LINE# 44
C:006EH LINE# 46
C:0074H LINE# 48
C:0076H LINE# 49
C:0076H LINE# 50
C:0078H LINE# 51
C:007CH LINE# 52
BL51 BANKED LINKER/LOCATER V5.00 03/24/2007 21:59:49 PAGE 4
C:0080H LINE# 54
C:0082H LINE# 55
C:0086H LINE# 61
------- ENDPROC _SENDBYTE
------- PROC OUT595
C:0105H LINE# 63
C:0105H LINE# 64
C:0105H LINE# 65
C:0107H LINE# 66
C:0109H LINE# 67
C:010BH LINE# 68
------- ENDPROC OUT595
------- PROC _DISPLAY
D:0006H SYMBOL number
------- DO
D:0005H SYMBOL sw
D:0007H SYMBOL gw
------- ENDDO
C:0052H LINE# 70
C:0054H LINE# 71
C:0054H LINE# 73
C:005AH LINE# 74
C:0063H LINE# 75
C:0066H LINE# 76
C:006BH LINE# 78
------- ENDPROC _DISPLAY
------- PROC INITCOM
C:009EH LINE# 84
C:009EH LINE# 85
C:009EH LINE# 86
C:00A1H LINE# 87
C:00A4H LINE# 88
C:00A7H LINE# 90
C:00AAH LINE# 91
C:00ADH LINE# 93
C:00AFH LINE# 94
C:00B2H LINE# 96
------- ENDPROC INITCOM
------- PROC _SEND_CHAR
D:0007H SYMBOL txd
C:00FDH LINE# 98
C:00FDH LINE# 100
C:00FDH LINE# 101
C:00FFH LINE# 102
C:0102H LINE# 103
C:0104H LINE# 104
------- ENDPROC _SEND_CHAR
------- PROC SEND_STR
------- DO
D:0007H SYMBOL i
------- ENDDO
C:00B3H LINE# 106
C:00B3H LINE# 108
C:00B3H LINE# 109
C:00B5H LINE# 110
C:00BCH LINE# 111
C:00BCH LINE# 112
BL51 BANKED LINKER/LOCATER V5.00 03/24/2007 21:59:49 PAGE 5
C:00BEH LINE# 113
C:00C1H LINE# 114
C:00C3H LINE# 115
C:00C4H LINE# 116
C:00C6H LINE# 117
------- ENDPROC SEND_STR
------- PROC _DELAYMS
D:0007H SYMBOL ms
------- DO
D:0006H SYMBOL i
------- ENDDO
C:00C7H LINE# 119
C:00C7H LINE# 121
C:00C7H LINE# 123
C:00CDH LINE# 124
C:00CDH LINE# 125
C:00D8H LINE# 126
C:00D8H LINE# 127
------- ENDPROC _DELAYMS
------- PROC SCAN_KEY
C:00D9H LINE# 131
C:00D9H LINE# 133
C:00D9H LINE# 134
C:00DCH LINE# 135
C:00E1H LINE# 136
C:00E7H LINE# 137
------- ENDPROC SCAN_KEY
------- PROC KEY_PRO
C:00F4H LINE# 138
C:00F4H LINE# 139
C:00F4H LINE# 140
C:00F9H LINE# 141
C:00FCH LINE# 142
------- ENDPROC KEY_PRO
------- PROC MAIN
C:0003H LINE# 144
C:0003H LINE# 145
C:0003H LINE# 148
C:0009H LINE# 149
C:000FH LINE# 150
C:0015H LINE# 152
C:0018H LINE# 153
C:0018H LINE# 154
C:0018H LINE# 165
C:001BH LINE# 166
C:001BH LINE# 167
C:001DH LINE# 168
C:0020H LINE# 169
C:0025H LINE# 170
C:002AH LINE# 171
C:002AH LINE# 173
C:002FH LINE# 175
------- ENDPROC MAIN
------- ENDMOD COM
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_DELAY?COM
BL51 BANKED LINKER/LOCATER V5.00 03/24/2007 21:59:49 PAGE 6
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?SCAN_KEY?COM
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?KEY_PRO?COM
Program Size: data=12.0 xdata=0 code=268
LINK/LOCATE RUN COMPLETE. 3 WARNING(S), 0 ERROR(S)