(1) 程序1-跑马灯:会看到led变化。 (2) 程序2-独立键盘 :分别按“INT0/+”键和”t0/-“会看到LED变化。 (3) 程序3-定时器:会看到5个LED闪烁。 (4) 程序4-

源代码在线查看: count.m51

软件大小: 86 K
上传用户: WUYUEASDF
关键词: LED 程序 led INT
下载地址: 免注册下载 普通下载 VIP

相关代码

				L51 LINKER/LOCATOR V3.11                                                                  05/10/07  10:51:01  PAGE 1
				
				
				MS-DOS L51 LINKER/LOCATOR V3.11, INVOKED BY:
				C:\BIN\L51.EXE COUNT.OBJ TO COUNT.OMF RAMSIZE (128)
				
				
				MEMORY MODEL: SMALL
				
				
				INPUT MODULES INCLUDED:
				  COUNT.OBJ (COUNT)
				  C:\LIB\C51S.LIB (?C_STARTUP)
				  C:\LIB\C51S.LIB (?C_IMUL)
				  C:\LIB\C51S.LIB (?C_UIDIV)
				  C:\LIB\C51S.LIB (?C_INIT)
				
				
				LINK MAP OF MODULE:  COUNT.OMF (COUNT)
				
				
				            TYPE    BASE      LENGTH    RELOCATION   SEGMENT NAME
				            -----------------------------------------------------
				
				            * * * * * * *   D A T A   M E M O R Y   * * * * * * *
				            REG     0000H     0008H     ABSOLUTE     "REG BANK 0"
				            REG     0008H     0008H     ABSOLUTE     "REG BANK 1"
				            DATA    0010H     000EH     UNIT         ?DT?COUNT
				            DATA    001EH     0002H     UNIT         _DATA_GROUP_
				            IDATA   0020H     0001H     UNIT         ?STACK
				
				            * * * * * * *   C O D E   M E M O R Y   * * * * * * *
				            CODE    0000H     0003H     ABSOLUTE     
				            CODE    0003H     0011H     UNIT         ?C_INITSEG
				                    0014H     0007H                  *** GAP ***
				            CODE    001BH     0003H     ABSOLUTE     
				            CODE    001EH     0112H     UNIT         ?PR?T1?COUNT
				            CODE    0130H     0037H     UNIT         ?PR?MAIN?COUNT
				            CODE    0167H     008CH     UNIT         ?C_C51STARTUP
				            CODE    01F3H     0069H     UNIT         ?C_LIB_CODE
				
				
				
				OVERLAY MAP OF MODULE:   COUNT.OMF (COUNT)
				
				
				SEGMENT                          DATA_GROUP 
				  +--> CALLED SEGMENT          START    LENGTH
				----------------------------------------------
				?PR?T1?COUNT                   001EH    0002H
				  +--> ?C_LIB_CODE
				
				?C_C51STARTUP                  -----    -----
				  +--> ?PR?MAIN?COUNT
				  +--> ?C_INITSEG
				
				
				
				SYMBOL TABLE OF MODULE:  COUNT.OMF (COUNT)
				
				  VALUE           TYPE          NAME
				  ----------------------------------
				
				  -------         MODULE        COUNT
				  C:0000H         SYMBOL        _ICE_DUMMY_
				  D:0080H         PUBLIC        P0
				  D:0090H         PUBLIC        P1
				  D:00A0H         PUBLIC        P2
				  B:00B0H.5       PUBLIC        shu1
				L51 LINKER/LOCATOR V3.11                                                                05/10/07  10:51:01  PAGE 2
				
				
				  D:00B0H         PUBLIC        P3
				  B:00A0H.1       PUBLIC        shu2
				  B:00B0H.4       PUBLIC        T0
				  B:00D0H.6       PUBLIC        AC
				  B:00B0H.3       PUBLIC        shu3
				  B:00B0H.5       PUBLIC        T1
				  B:00A0H.0       PUBLIC        shu4
				  B:00A8H.7       PUBLIC        EA
				  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
				  B:00B8H.4       PUBLIC        PS
				  C:001EH         PUBLIC        t1
				  B:00D0H.2       PUBLIC        OV
				  C:0130H         PUBLIC        main
				  B:00B0H.6       PUBLIC        WR
				  D:0089H         PUBLIC        TMOD
				  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
				  D:008CH         PUBLIC        TH0
				  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
				  D:008AH         PUBLIC        TL0
				  B:0098H.6       PUBLIC        SM1
				  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
				  B:0088H.6       PUBLIC        TR1
				  B:00B8H.0       PUBLIC        PX0
				  B:00B8H.2       PUBLIC        PX1
				  D:001CH         PUBLIC        b
				  B:0098H.4       PUBLIC        REN
				  B:0090H.0       PUBLIC        led1
				  B:0090H.1       PUBLIC        led2
				  B:0090H.2       PUBLIC        led3
				  B:0090H.3       PUBLIC        led4
				  B:0090H.4       PUBLIC        led5
				  B:00B0H.0       PUBLIC        RXD
				  B:00B0H.1       PUBLIC        TXD
				  B:00D0H.5       PUBLIC        F0
				  -------         PROC          T1
				  C:001EH         LINE#         14
				  -------         DO            (NULL)
				  D:000BH         SYMBOL        a1
				  D:000AH         SYMBOL        a2
				  D:001EH         SYMBOL        a3
				  D:001FH         SYMBOL        a4
				L51 LINKER/LOCATOR V3.11                                                                05/10/07  10:51:01  PAGE 3
				
				
				  D:0010H         SYMBOL        yima
				  D:001AH         SYMBOL        k
				  C:0027H         LINE#         16
				  C:002EH         LINE#         20
				  C:003BH         LINE#         21
				  C:0057H         LINE#         22
				  C:0082H         LINE#         23
				  C:00A8H         LINE#         24
				  C:00C1H         LINE#         25
				  C:00DBH         LINE#         26
				  C:00F5H         LINE#         27
				  C:010CH         LINE#         28
				  C:0114H         LINE#         29
				  C:0126H         LINE#         31
				  C:0129H         LINE#         32
				  -------         ENDDO         (NULL)
				  -------         ENDPROC       T1
				  -------         PROC          MAIN
				  C:0130H         LINE#         34
				  C:0130H         LINE#         35
				  C:0130H         LINE#         36
				  C:0132H         LINE#         37
				  C:0134H         LINE#         38
				  C:0136H         LINE#         39
				  C:0138H         LINE#         41
				  C:013BH         LINE#         42
				  C:013EH         LINE#         43
				  C:0140H         LINE#         45
				  C:0140H         LINE#         46
				  C:0140H         LINE#         47
				  C:0150H         LINE#         48
				  C:0164H         LINE#         50
				  C:0166H         LINE#         52
				  -------         ENDPROC       MAIN
				  -------         ENDMOD        COUNT
				
				  -------         MODULE        ?C_IMUL
				  C:01F3H         PUBLIC        ?C_IMUL
				  -------         ENDMOD        ?C_IMUL
				
				  -------         MODULE        ?C_UIDIV
				  C:0207H         PUBLIC        ?C_UIDIV
				  -------         ENDMOD        ?C_UIDIV
				
				LINK/LOCATE RUN COMPLETE.  0 WARNING(S),  0 ERROR(S)
							

相关资源