编译环境是KEIL,仿真环境是PROTEUS,控制彩灯的闪烁

源代码在线查看: main.src

软件大小: 59 K
上传用户: tfwangxy
关键词: PROTEUS KEIL 编译环境 仿真环境
下载地址: 免注册下载 普通下载 VIP

相关代码

				; .\main.SRC generated from: main.c
				; COMPILER INVOKED BY:
				;        C:\Keil\C51\BIN\C51.EXE main.c BROWSE DEBUG OBJECTEXTEND SRC(.\main.SRC)
				
				
				NAME	MAIN
				
				; #pragma asm
				  ; ASSEMBLE CODE HERE
				  
				  
				  ORG 0000H
				  AJMP MAIN
				  
				  ORG 0100H
				  MAIN:
				      
				  LL:   MOV A,#0AH  
				        MOV R6,#11H
				        MOV P0,#40H
				   LOOP:INC A  
				        MOV R0,A
				        MOVC A,@A+PC
				        MOV P0,A
				        MOV R7,#50H
				  
				  
				        ACALL DELAY
				        MOV A,R0
				        DJNZ R6,LOOP
				   
				       AJMP LL
				  
				  
				  
				  DES:   DB 40H
				         DB 79H
				         DB 24H
				         DB 30H
				         DB 19H
				         DB 12H
				         DB 02H
				         DB 78H
				         DB 00H
				         DB 10H
				         DB 08H
				         DB 03H
				         DB 46H
				         DB 21H
				         DB 06H
				         DB 0EH
				         
				  DELAY:MOV R4,#50H
				       DELAY1:
				            DJNZ R4,DELAY1
				         DJNZ R7,DELAY
				         RET
					END
							

相关资源