微机原理步进电机控制实验(9)
发布时间:2021-06-06
发布时间:2021-06-06
本实验通过设计电路,编写程序来驱动步进电机的转动。采用开环控制方式,使之能对步进电机的转动方向,速度和角度进行调节。所谓步进,就是指每给步进电机一个递进脉冲,步进电机各绕组的通电顺序就改变一次,即电机转动依次。根据步进电机控制绕组的多少可以将电机分为三相、四相和五相。实验中采用的步进电机为35BYJ46型四相八拍,电压为DC12v
top stack
data
string1
string2 buf1 buf2
data code assume start:
label word ends
segment
db '0--9 are control keys',0dh,0ah db '0 is stop',0dh,0ah
db '1--3 are forward control',0dh,0ah db '3 is the highest speed',0dh,0ah db '4--6 are backward contral',0dh,0ah db '6 is the highest speed',0dh,0ah db '7 is small speed increase',0dh,0ah db '8 is small speed decrease',0dh,0ah db '9 is quit and go back to dos',0dh,0ah,'$'
db 0dh,0ah,'input error,retry:',0dh,0ah,'$'
db 01H,03H,02H,06H,04H,0cH,08H,09H db 09H,08H,0cH,04H,06H,02H,03H,01H ends
segment
cs:code,ds:data,ss:stack mov ax,data mov ds,ax
正转相序反转相序 ; ;
上一篇:2011南京市江宁一模地理试卷
下一篇:信息技术教师专业成长计划