使用PROTEUS仿真的RS232串行通信口,可在串口助手输入,激活7段数码管显示相应的数字

源代码在线查看: com_1.m51

软件大小: 34 K
上传用户: srbrabbit
关键词: PROTEUS 232 RS 仿真
下载地址: 免注册下载 普通下载 VIP

相关代码

				BL51 BANKED LINKER/LOCATER V4.13                                                        01/06/2002  05:12:13  PAGE 1
				
				
				BL51 BANKED LINKER/LOCATER V4.13, INVOKED BY:
				G:\单片机学习\单片机软件\KEIL\C51\BIN\BL51.EXE com_1.obj TO com_1
				
				
				MEMORY MODEL: SMALL
				
				
				INPUT MODULES INCLUDED:
				  com_1.obj (COM_1)
				  G:\单片机学习\单片机软件\KEIL\C51\LIB\C51S.LIB (?C_STARTUP)
				  G:\单片机学习\单片机软件\KEIL\C51\LIB\C51S.LIB (?C?CLDPTR)
				  G:\单片机学习\单片机软件\KEIL\C51\LIB\C51S.LIB (?C?CSTPTR)
				  G:\单片机学习\单片机软件\KEIL\C51\LIB\C51S.LIB (?C_INIT)
				
				
				LINK MAP OF MODULE:  com_1 (COM_1)
				
				
				            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     000CH     UNIT         ?DT?COM_1
				            DATA    0014H     0004H     UNIT         _DATA_GROUP_
				            IDATA   0018H     0001H     UNIT         ?STACK
				
				            * * * * * * *   C O D E   M E M O R Y   * * * * * * *
				            CODE    0000H     0003H     ABSOLUTE     
				            CODE    0003H     008CH     UNIT         ?C_C51STARTUP
				            CODE    008FH     005FH     UNIT         ?PR?_INITCOM?COM_1
				            CODE    00EEH     0043H     UNIT         ?PR?MAIN?COM_1
				            CODE    0131H     002FH     UNIT         ?PR?_COMINSTR?COM_1
				            CODE    0160H     002BH     UNIT         ?C?LIB_CODE
				            CODE    018BH     000EH     UNIT         ?C_INITSEG
				            CODE    0199H     000DH     UNIT         ?PR?DELAY1S?COM_1
				            CODE    01A6H     000AH     UNIT         ?CO?COM_1
				
				
				
				OVERLAY MAP OF MODULE:   com_1 (COM_1)
				
				
				SEGMENT                          DATA_GROUP 
				  +--> CALLED SEGMENT          START    LENGTH
				----------------------------------------------
				?C_C51STARTUP                  -----    -----
				  +--> ?PR?MAIN?COM_1
				  +--> ?C_INITSEG
				
				?PR?MAIN?COM_1                 0014H    0001H
				  +--> ?PR?_INITCOM?COM_1
				  +--> ?PR?_COMINSTR?COM_1
				  +--> ?CO?COM_1
				  +--> ?PR?DELAY1S?COM_1
				
				?PR?_COMINSTR?COM_1            0015H    0003H
				
				BL51 BANKED LINKER/LOCATER V4.13                                                      01/06/2002  05:12:13  PAGE 2
				
				
				
				
				SYMBOL TABLE OF MODULE:  com_1 (COM_1)
				
				  VALUE           TYPE          NAME
				  ----------------------------------
				
				  -------         MODULE        COM_1
				  C:0000H         SYMBOL        _ICE_DUMMY_
				  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:01A6H         PUBLIC        table
				  B:00B0H.7       PUBLIC        RD
				  C:008FH         PUBLIC        _InitCom
				  B:00A8H.4       PUBLIC        ES
				  B:0098H.0       PUBLIC        RI
				  D:0008H         PUBLIC        flag
				  B:00B0H.2       PUBLIC        INT0
				  B:00D0H.7       PUBLIC        CY
				  B:0098H.1       PUBLIC        TI
				  B:00B0H.3       PUBLIC        INT1
				  B:00B8H.4       PUBLIC        PS
				  B:00D0H.2       PUBLIC        OV
				  C:00EEH         PUBLIC        main
				  B:00B0H.6       PUBLIC        WR
				  D:0099H         PUBLIC        SBUF
				  D:0087H         PUBLIC        PCON
				  D:0098H         PUBLIC        SCON
				  D:0089H         PUBLIC        TMOD
				  D:0088H         PUBLIC        TCON
				  C:0199H         PUBLIC        delay1s
				  B:0088H.1       PUBLIC        IE0
				  B:0088H.3       PUBLIC        IE1
				  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
				  B:0098H.7       PUBLIC        SM0
				  B:0098H.6       PUBLIC        SM1
				  D:008BH         PUBLIC        TL1
				  B:0098H.5       PUBLIC        SM2
				  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
				BL51 BANKED LINKER/LOCATER V4.13                                                      01/06/2002  05:12:13  PAGE 3
				
				
				  B:0088H.6       PUBLIC        TR1
				  B:00B8H.0       PUBLIC        PX0
				  B:00B8H.2       PUBLIC        PX1
				  D:0009H         PUBLIC        receive_data
				  B:0098H.4       PUBLIC        REN
				  B:00B0H.0       PUBLIC        RXD
				  B:00B0H.1       PUBLIC        TXD
				  C:0131H         PUBLIC        _ComInStr
				  B:00D0H.5       PUBLIC        F0
				  -------         PROC          _INITCOM
				  D:0007H         SYMBOL        BaudRate
				  -------         DO            BaudRate
				  D:0006H         SYMBOL        THTL
				  -------         ENDDO         THTL
				  C:008FH         LINE#         8
				  C:008FH         LINE#         9
				  C:008FH         LINE#         11
				  C:00B5H         LINE#         12
				  C:00B5H         LINE#         13
				  C:00B9H         LINE#         14
				  C:00BDH         LINE#         15
				  C:00C1H         LINE#         16
				  C:00C5H         LINE#         17
				  C:00C9H         LINE#         18
				  C:00CDH         LINE#         19
				  C:00D1H         LINE#         20
				  C:00D5H         LINE#         21
				  C:00D7H         LINE#         22
				  C:00D7H         LINE#         23
				  C:00DAH         LINE#         24
				  C:00DDH         LINE#         25
				  C:00E0H         LINE#         26
				  C:00E2H         LINE#         27
				  C:00E4H         LINE#         28
				  C:00E7H         LINE#         29
				  C:00E9H         LINE#         30
				  C:00EBH         LINE#         31
				  C:00EDH         LINE#         32
				  -------         ENDPROC       _INITCOM
				  -------         PROC          _COMINSTR
				  D:0015H         SYMBOL        Str
				  C:0131H         LINE#         38
				  C:0137H         LINE#         39
				  C:0137H         LINE#         40
				  C:0142H         LINE#         41
				  C:0142H         LINE#         42
				  C:0145H         LINE#         43
				  C:0150H         LINE#         44
				  C:0152H         LINE#         45
				  C:015DH         LINE#         46
				  C:015FH         LINE#         47
				  -------         ENDPROC       _COMINSTR
				  -------         PROC          DELAY1S
				  -------         DO            DELAY1S
				  D:0006H         SYMBOL        i
				  D:0005H         SYMBOL        j
				  D:0007H         SYMBOL        k
				BL51 BANKED LINKER/LOCATER V4.13                                                      01/06/2002  05:12:13  PAGE 4
				
				
				  -------         ENDDO         k
				  C:0199H         LINE#         49
				  C:0199H         LINE#         51
				  C:0199H         LINE#         55
				  C:019BH         LINE#         57
				  C:019DH         LINE#         59
				  C:01A5H         LINE#         61
				  -------         ENDPROC       DELAY1S
				  -------         PROC          MAIN
				  -------         DO            MAIN
				  D:0014H         SYMBOL        i
				  -------         ENDDO         i
				  C:00EEH         LINE#         62
				  C:00EEH         LINE#         63
				  C:00EEH         LINE#         64
				  C:00F3H         LINE#         65
				  C:00F5H         LINE#         66
				  C:00F7H         LINE#         67
				  C:00F9H         LINE#         68
				  C:0102H         LINE#         69
				  C:0102H         LINE#         70
				  C:0102H         LINE#         73
				  C:0105H         LINE#         74
				  C:0105H         LINE#         75
				  C:011EH         LINE#         76
				  C:0121H         LINE#         77
				  C:012CH         LINE#         78
				  C:012FH         LINE#         80
				  -------         ENDPROC       MAIN
				  -------         ENDMOD        COM_1
				
				  -------         MODULE        ?C?CLDPTR
				  C:0160H         PUBLIC        ?C?CLDPTR
				  -------         ENDMOD        ?C?CLDPTR
				
				  -------         MODULE        ?C?CSTPTR
				  C:0179H         PUBLIC        ?C?CSTPTR
				  -------         ENDMOD        ?C?CSTPTR
				
				******************************************************************************
				* RESTRICTED VERSION WITH FFFFH BYTE CODE SIZE LIMIT; USED: 00FFH BYTE ( 0%) *
				******************************************************************************
				
				LINK/LOCATE RUN COMPLETE.  0 WARNING(S),  0 ERROR(S)
							

相关资源