ORG 0000H
LJMP MAIN
MAIN:
MOV A,#33H
LOOP:MOV P1,A
LCALL DELAY
RLC A
LJMP LOOP
DELAY: MOV R5,#10
D1: MOV R6,#50
D2: MOV R7,#248
DJNZ R7,$
DJNZ R6,D2
DJNZ R5,D1
RET
END
51单片机步进电机控制实验
最新推荐文章于 2023-02-12 17:47:37 发布
ORG 0000H
LJMP MAIN
MAIN:
MOV A,#33H
LOOP:MOV P1,A
LCALL DELAY
RLC A
LJMP LOOP
DELAY: MOV R5,#10
D1: MOV R6,#50
D2: MOV R7,#248
DJNZ R7,$
DJNZ R6,D2
DJNZ R5,D1
RET
END