高手请看!
你说的我知道!我的电机有配套的驱动器!详细情况在这上边也说不清!我用的电机和驱动
器都在这个网站上! <a href=http://www.startsh.com target=_blank> </a> ,型号为:17s101,驱动器为:SH-2H042Ma,
我现在的问题是;我按网站所说的来控制电机,但为什么总是不能换向,往各位高手予以解
决!多谢了!我所用的程序为:
MOV R0, #100
SETB P0.1
LOOP1: CLR P0.0
ACALL DEL1
SETB P0.0
ACALL DEL1
DJNZ R0, LOOP1
MOV R0,#100
CLR P0.1
LOOP: CLR P0.0
ACALL DEL1
SETB P0.0
ACALL DEL1
DJNZ R0,LOOP
DEL1: MOV A,#82
LOOP2: DEC A
JNZ LOOP2
RET
DEL3: MOV R3,#200
L1: MOV R4,#200
L2: MOV R5,#200
L3: NOP
NOP
DJNZ R5,L3
DJNZ R4,L2
DJNZ R3,L1
RET
END
发表时间:2003年1月8日15:24:00