51单片机的IIC总线先测试程序

源代码在线查看: 串行写入数据控制led.m51

软件大小: 24 K
上传用户: red2years
关键词: IIC 51单片机 总线 测试程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				BL51 BANKED LINKER/LOCATER V5.03                                                        09/20/2008  01:05:43  PAGE 1
				
				
				BL51 BANKED LINKER/LOCATER V5.03, INVOKED BY:
				D:\C51\BIN\BL51.EXE 串行写入数据控制led.obj TO 串行写入数据控制led RAMSIZE (256)
				
				
				MEMORY MODEL: SMALL
				
				
				INPUT MODULES INCLUDED:
				  串行写入数据控制led.obj (______入数_菘刂芁ED)
				  D:\C51\LIB\C51S.LIB (?C_STARTUP)
				
				
				LINK MAP OF MODULE:  串行写入数据控制led (______入数_菘刂芁ED)
				
				
				            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     0001H     UNIT         ?DT?______入数_菘刂芁ED
				            DATA    0009H     0001H     UNIT         _DATA_GROUP_
				            IDATA   000AH     0001H     UNIT         ?STACK
				
				            * * * * * * *   C O D E   M E M O R Y   * * * * * * *
				            CODE    0000H     0003H     ABSOLUTE     
				                    0003H     07FDH                  *** GAP ***
				            CODE    0800H     0041H     UNIT         ?PR?MAIN?______入数_菘刂芁ED
				            CODE    0841H     0028H     UNIT         ?PR?READ_BYTE?______入数_菘刂芁ED
				            CODE    0869H     0020H     UNIT         ?PR?RESPONSE?______入数_菘刂芁ED
				            CODE    0889H     001EH     UNIT         ?PR?_WRITE_BYTE?______入数_菘刂芁ED
				            CODE    08A7H     000EH     UNIT         ?PR?_DELAY2?______入数_菘刂芁ED
				            CODE    08B5H     000CH     UNIT         ?C_C51STARTUP
				            CODE    08C1H     000AH     UNIT         ?PR?START?______入数_菘刂芁ED
				            CODE    08CBH     000AH     UNIT         ?PR?STOP?______入数_菘刂芁ED
				            CODE    08D5H     0006H     UNIT         ?PR?DELAY1?______入数_菘刂芁ED
				            CODE    08DBH     0005H     UNIT         ?PR?INITIAL?______入数_菘刂芁ED
				
				
				
				OVERLAY MAP OF MODULE:   串行写入数据控制led (______入数_菘刂芁ED)
				
				
				SEGMENT                                       DATA_GROUP 
				  +--> CALLED SEGMENT                       START    LENGTH
				-----------------------------------------------------------
				?C_C51STARTUP                               -----    -----
				  +--> ?PR?MAIN?______入数_菘刂芁ED
				
				?PR?MAIN?______入数_菘刂芁ED                -----    -----
				  +--> ?PR?INITIAL?______入数_菘刂芁ED
				  +--> ?PR?RESPONSE?______入数_菘刂芁ED
				  +--> ?PR?_WRITE_BYTE?______入数_菘刂芁ED
				  +--> ?PR?STOP?______入数_菘刂芁ED
				  +--> ?PR?_DELAY2?______入数_菘刂芁ED
				  +--> ?PR?START?______入数_菘刂芁ED
				  +--> ?PR?READ_BYTE?______入数_菘刂芁ED
				
				BL51 BANKED LINKER/LOCATER V5.03                                                      09/20/2008  01:05:43  PAGE 2
				
				
				?PR?RESPONSE?______入数_菘刂芁ED            0009H    0001H
				  +--> ?PR?START?______入数_菘刂芁ED
				  +--> ?PR?_WRITE_BYTE?______入数_菘刂芁ED
				  +--> ?PR?DELAY1?______入数_菘刂芁ED
				
				?PR?START?______入数_菘刂芁ED               -----    -----
				  +--> ?PR?DELAY1?______入数_菘刂芁ED
				
				?PR?_WRITE_BYTE?______入数_菘刂芁ED         -----    -----
				  +--> ?PR?DELAY1?______入数_菘刂芁ED
				
				?PR?STOP?______入数_菘刂芁ED                -----    -----
				  +--> ?PR?DELAY1?______入数_菘刂芁ED
				
				?PR?READ_BYTE?______入数_菘刂芁ED           -----    -----
				  +--> ?PR?DELAY1?______入数_菘刂芁ED
				
				
				
				SYMBOL TABLE OF MODULE:  串行写入数据控制led (______入数_菘刂芁ED)
				
				  VALUE           TYPE          NAME
				  ----------------------------------
				
				  -------         MODULE        ______入数_菘刂芁ED
				  C:0000H         SYMBOL        _ICE_DUMMY_
				  D:0090H         PUBLIC        P1
				  D:00A0H         PUBLIC        P2
				  D:00B0H         PUBLIC        P3
				  D:00A8H         PUBLIC        IE
				  D:00B8H         PUBLIC        IP
				  B:00D0H.7       PUBLIC        CY
				  C:08A7H         PUBLIC        _delay2
				  C:0889H         PUBLIC        _write_byte
				  C:0800H         PUBLIC        main
				  C:08C1H         PUBLIC        start
				  D:0098H         PUBLIC        SCON
				  C:0841H         PUBLIC        read_byte
				  D:0088H         PUBLIC        TCON
				  B:00A0H.0       PUBLIC        sda
				  C:08DAH         PUBLIC        delay1
				  B:00A0H.1       PUBLIC        scl
				  C:08CBH         PUBLIC        stop
				  D:0008H         PUBLIC        a
				  D:00C8H         PUBLIC        T2CON
				  C:08DBH         PUBLIC        initial
				  C:0871H         PUBLIC        response
				  D:00D0H         PUBLIC        PSW
				  C:08D5H         SYMBOL        L?0028
				  -------         PROC          L?0027
				  -------         ENDPROC       L?0027
				  C:08D5H         SYMBOL        L?0028
				  -------         PROC          DELAY1
				  C:08DAH         LINE#         10
				  C:08DAH         LINE#         11
				  -------         ENDPROC       DELAY1
				  -------         PROC          _DELAY2
				BL51 BANKED LINKER/LOCATER V5.03                                                      09/20/2008  01:05:43  PAGE 3
				
				
				  D:0007H         SYMBOL        z
				  -------         DO            
				  D:0007H         SYMBOL        x
				  D:0006H         SYMBOL        y
				  -------         ENDDO         
				  C:08A7H         LINE#         12
				  C:08A7H         LINE#         13
				  C:08A7H         LINE#         15
				  C:08ADH         LINE#         16
				  C:08B4H         LINE#         17
				  -------         ENDPROC       _DELAY2
				  -------         PROC          START
				  C:08C1H         LINE#         18
				  C:08C1H         LINE#         19
				  C:08C1H         LINE#         20
				  C:08C3H         LINE#         21
				  C:08C3H         LINE#         22
				  C:08C3H         LINE#         23
				  C:08C6H         LINE#         24
				  C:08C8H         LINE#         25
				  -------         ENDPROC       START
				  -------         PROC          L?0026
				  -------         ENDPROC       L?0026
				  -------         PROC          RESPONSE
				  -------         DO            
				  D:0009H         SYMBOL        i
				  -------         ENDDO         
				  C:0871H         LINE#         27
				  C:0871H         LINE#         28
				  C:0871H         LINE#         30
				  C:0873H         LINE#         31
				  C:0876H         LINE#         32
				  C:0884H         LINE#         33
				  C:0886H         LINE#         34
				  -------         ENDPROC       RESPONSE
				  -------         PROC          INITIAL
				  C:08DBH         LINE#         36
				  C:08DBH         LINE#         37
				  C:08DBH         LINE#         38
				  C:08DDH         LINE#         39
				  C:08DFH         LINE#         40
				  -------         ENDPROC       INITIAL
				  -------         PROC          _WRITE_BYTE
				  D:0007H         SYMBOL        dat
				  -------         DO            
				  D:0006H         SYMBOL        i
				  D:0007H         SYMBOL        j
				  -------         ENDDO         
				  C:0889H         LINE#         41
				  C:0889H         LINE#         42
				  C:0889H         LINE#         44
				  C:0889H         LINE#         46
				  C:088BH         LINE#         47
				  C:088BH         LINE#         48
				  C:088FH         LINE#         49
				  C:0891H         LINE#         50
				  C:0894H         LINE#         51
				BL51 BANKED LINKER/LOCATER V5.03                                                      09/20/2008  01:05:43  PAGE 4
				
				
				  C:0896H         LINE#         52
				  C:0896H         LINE#         53
				  C:0896H         LINE#         54
				  C:0899H         LINE#         57
				  C:089DH         LINE#         58
				  C:089FH         LINE#         59
				  C:08A2H         LINE#         60
				  C:08A4H         LINE#         61
				  -------         ENDPROC       _WRITE_BYTE
				  -------         PROC          READ_BYTE
				  -------         DO            
				  D:0006H         SYMBOL        i
				  D:0005H         SYMBOL        j
				  D:0007H         SYMBOL        k
				  -------         ENDDO         
				  C:0841H         LINE#         63
				  C:0841H         LINE#         64
				  C:0841H         LINE#         66
				  C:0843H         LINE#         67
				  C:0846H         LINE#         68
				  C:0848H         LINE#         69
				  C:084BH         LINE#         70
				  C:084DH         LINE#         71
				  C:084DH         LINE#         72
				  C:084FH         LINE#         73
				  C:0852H         LINE#         74
				  C:0857H         LINE#         75
				  C:085CH         LINE#         76
				  C:085FH         LINE#         77
				  C:0861H         LINE#         78
				  C:0864H         LINE#         79
				  C:0868H         LINE#         80
				  C:0868H         LINE#         81
				  -------         ENDPROC       READ_BYTE
				  -------         PROC          STOP
				  C:08CBH         LINE#         82
				  C:08CBH         LINE#         83
				  C:08CBH         LINE#         84
				  C:08CDH         LINE#         85
				  C:08CDH         LINE#         86
				  C:08CDH         LINE#         87
				  C:08D0H         LINE#         88
				  C:08D2H         LINE#         89
				  -------         ENDPROC       STOP
				  -------         PROC          MAIN
				  C:0800H         LINE#         91
				  C:0800H         LINE#         92
				  C:0800H         LINE#         93
				  C:0803H         LINE#         94
				  C:0803H         LINE#         95
				  C:0803H         LINE#         96
				  C:0806H         LINE#         97
				  C:080BH         LINE#         98
				  C:080EH         LINE#         99
				  C:0813H         LINE#         100
				  C:0816H         LINE#         101
				  C:0819H         LINE#         103
				BL51 BANKED LINKER/LOCATER V5.03                                                      09/20/2008  01:05:43  PAGE 5
				
				
				  C:081EH         LINE#         104
				  C:081EH         LINE#         105
				  C:081EH         LINE#         106
				  C:0821H         LINE#         107
				  C:0826H         LINE#         108
				  C:0829H         LINE#         109
				  C:082CH         LINE#         110
				  C:0831H         LINE#         111
				  C:0834H         LINE#         112
				  C:0839H         LINE#         113
				  C:083CH         LINE#         114
				  C:083FH         LINE#         115
				  -------         ENDPROC       MAIN
				  -------         ENDMOD        ______入数_菘刂芁ED
				
				******************************************************************************
				* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 00E1H BYTE (10%) *
				******************************************************************************
				
				Program Size: data=11.0 xdata=0 code=227
				LINK/LOCATE RUN COMPLETE.  0 WARNING(S),  0 ERROR(S)
							

相关资源