[求助]谁能向我解释一下下面关于步进电机的程序,多谢。下面是驱动步进电机的程序,是驱动步进电机正转三圈,我不明白为什么要循环250次才让电机转了三圈?谁能解释一下?多谢了
org 00h
x1:mov r3,#250
start: mov r0,#00h
start1:
mov p1,#0ffh
mov a,r0
mov dptr,#table
movc a,@a+dptr
jz start
cpl a
mov p1,a
call delay
inc r0
djnz r3,start1
table:
db 03h,09h,0ch,06h
db 00
end
我不明白的是送完一次正转表03h,09h,0ch,06h后,电机究竟转了多少?为什么要循环250次才让电机转了三圈?