資源描述:
《無刷電調(diào)2051程序》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在工程資料-天天文庫。
1、無刷電調(diào)2051程序;DefineeachdriverportAXZBITP3.7;TheP3?7isthepositivecontrolendofAcoils;Inaccordancewiththiscircuit,whenP3?7islowpotential(P3.7=0),thetriodeTIP42leadstotheAcoil,andAco訂receivesthepositiveterminal;WhenP3.7ishighpotential(P3.7=1),thetriodeTIP42,whichdrivesAcoil,
2、endsAXFBITPl.0;Pl.0isAcoilconnectedtothenegativeterminal;WhenPl.0islowpotential(Pl.0=0),thetriodeTIP41,whichdrivesAcoil,receivesAnegativeelectrodeforAcoilBXZBITPl.1;ThePl.1isthepositivecontrolendoftheBcoils;WhenthePl.1islowpotential(Pl.1=0),thetriodeTIP42leadstotheBcoi
3、ls,andtheBcoilsreceivethepositiveterminalBXFBITPl.6;ThePl.6isaBcoilconnectingthenegativeterminal;WhenthePl.6islowpotential(Pl.6=0),thetriodeTIP41,whichdrivestheBcoils,isconnectedtothenegativeterminalCXZBITPl.5;ThePl.5istheCcoilsforthepositiveterminalcontrol;WhenthePl.5
4、islowpotential(Pl.5=0),thetriodeTIP42,whichdrivesCcoils,isreceivedbytheCcoilsCXFBITPl.7;ThePl.7istheCcoilsforthenegativeterminal;WhenthePl.7islowpotential(Pl.7=0),thetriodeTIP41,whichdrivestheCcoils,receivesanegativeterminalfortheCcoil;DefineeachprobeportADUANBITPl.2;P
5、l.2isAcoilinducedelectromotiveforcedetectionBDUANBITPl.3;ThePl.3istheBcoilinductionelectromotiveforcedetectionendCDUANBITPl.4;Pl.4istheCcoilinducedelectromotiveforcedetection;DefineeachkeyportZZHUANBITP3.5;TheP3.5istheforwardcontrolportFZHUANBITP3.4;P3.4isthereversecon
6、trolportSTOPBITP3.3;TheP3.3isastopcontrolport;Theaboveportcanbesetaccordingtotheactualsituation■ORG0JMPSTART■9ORG0bhJMPSUBTIMERO■;InitializationprogramSTART:MOVSP,#65hMOVTMOD,#1MOV,IE#1OOOOO1ObMOVPl,#0FFHMOVP3,#0FFHMOVR6,#0MOVR7,#0;*;KeycheckprogramKONGZHI:SETBAXZSETBA
7、XFSETBBXZSETBBXFSETBCXZSETBCXF;Theaboveinstructionsaretopulleachdriverporttothehighpotential,whichisnottodriveeachpushtube,leavingallcoilswithoutpowerJNBZZHUANZZHUANO;Ifthe"positive"buttonispressed,itjumpstotherightpartoftheprogramJNBFZHUAN,Ifthe"reverse"buttonispresse
8、d,itjumpstothereversepartoftheprogramJMPKONGZHI;Iftheabovebuttonisnotpressed,returnandrecheck■;Thefollowingtwoinstruc