|
ORG 0000H
START:
MOV 30H,#11111111B
SPEED100:
MOV A,11111101B
MOV P1,A
CALL DELAY100
MOV A,00000100B
MOV P1,A
CALL DELAY100
DJNZ 30H,$
JMP START
DELAY100:
MOV R7,#3
D100: MOV R6,#10
DJNZ R6,$
DJNZ R7,D100
RET
END
看程序应该是连续的啊,可是步进电机一顿一顿的转过一个角度,而且速度起不来,怎么回事啊
|
欢迎继续阅读楼主其他信息
|