基于单片机的步进电机电路控制设计英文文献及翻译.docx

上传人:p** 文档编号:641769 上传时间:2024-01-02 格式:DOCX 页数:15 大小:45.83KB
下载 相关 举报
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第1页
第1页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第2页
第2页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第3页
第3页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第4页
第4页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第5页
第5页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第6页
第6页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第7页
第7页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第8页
第8页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第9页
第9页 / 共15页
基于单片机的步进电机电路控制设计英文文献及翻译.docx_第10页
第10页 / 共15页
亲,该文档总共15页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《基于单片机的步进电机电路控制设计英文文献及翻译.docx》由会员分享,可在线阅读,更多相关《基于单片机的步进电机电路控制设计英文文献及翻译.docx(15页珍藏版)》请在第壹文秘上搜索。

1、TheSteppermotorcontrolcircuitbebasedonSinglechipmicrocomputerTheAT89C51isalow-power,high-performanceCMOS8-bitmicrocomputerwith4KbytesofFlashprogrammableanderasablereadonlymemory(PEROM).ThedeviceismanufacturedusingAtmeshigh-densitynonvolatilememorytechnologyandiscompatiblewiththeindustrystandardMCS-5

2、1instructionsetandpinout.Theon-chipFlashallowstheprogrammemorytobereprogrammedin-systemorbyaconventionalnonvolatilememoryprogrammer.Bycombiningaversatile8-bitCPUwithFlashonamonolithicchip,theAtmelAT89C51isapowerfulmicrocomputerwhichprovidesahighly-flexibleandcost-effectivesolutiontomanyembeddedcontr

3、olapplications.FunctioncharacteristicTheAT89C51providesthefollowingstandardfeatures:4KbytesofFlash,128bytesofRAM,32I/Olines,two16-bittimer/counters,afivevectortwo-levelinterruptarchitecture,afullduplexserialport,on-chiposcillatorandclockcircuitry.Inaddition,theAT89C51isdesignedwithstaticlogicforoper

4、ationdowntozerofrequencyandsupportstwosoftwareselectablepowersavingmodes.TheIdleModestopstheCPUwhileallowingtheRAM,timer/counters,serialportandinterruptsystemtocontinuefunctioning.ThePower-downModesavestheRAMcontentsbutfreezestheoscillatordisablingallotherchipfunctionsuntilthenexthardwarereset.PinDe

5、scriptionVCC:Supplyvoltage.GND:Ground.Port0:PortOisan8-bitopen-drainbi-directionalI/Oport.Asanoutputport,eachpincansinkeightTTLinputs.WhenIsarewrittentoportOpins,thepinscanbeusedasHighimpedanceinuts.PortOmayalsobeconfiguredtobethemultiplexedIoworderaddress/databusduringaccessestoexternalprogramandda

6、tamemory.InthismodePOhasinternalpullups.PortOalsoreceivesthecodebytesduringFlashprogramming,andoutputsthecodebytesduringprogramverification.Externalpullupsarerequiredduringprogramverification.PortlPort1isan8-bitbi-directionalI/Oportwithinternalpullups.ThePOrt1outputbufferscansink/sourcefourTTLinputs

7、.WhenIsarewrittentoPort1pinstheyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port1pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseoftheinternalpullups.Port1alsoreceivesthelow-orderaddressbytesduringFlashprogrammingandverification.Port2Port2isan8-bitbi-directionalI/O

8、portwithinternalpullups.ThePort2outputbufferscansink/sourcefourTTLinuts.When1sarewrittentoPort2pinstheyarepulledhighbytheinternalpullupsandcanbeusedasinputsAsinputs,Port2pinsthatareexternallybeingpulledlowwillsourcecurrent,becauseoftheinternalpullups.Port2emitsthehigh-orderaddressbyteduringfetchesfr

9、omexternalprogrammemoryandduringaccessestoexternaldatamemorythatuse16-bitaddresses.Inthisapplication,itusesstronginternalpullupswhenemittingIs.Duringaccessestoexternaldatamemorythatuse8-bitaddresses,Port2emitsthecontentsoftheP2SpecialFunctionRegistenPort2alsoreceivesthehigh-orderaddressbitsandsomeco

10、ntrolsignalsduringFlashprogrammingandverification.Port3Port3isan8-bitbi-directionalI/Oportwithinternalpullups.ThePort3outputbufferscansink/sourcefourTTLinputs.WhenIsarewrittentoPort3pinstheyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port3pinsthatareexternallybeingpulledlowwillsou

11、rcecurrent(IIL)becauseofthepullups.Port3alsoservesthefunctionsofvariousspecialfeaturesoftheAT89C51aslistedbelow:Port3alsoreceivessomecontrolsignalsforFlashprogrammingandverification.RSTResetinputAhighonthispinfortwomachinecycleswhiletheoscillatorisrunningresetsthedevice.ALE/PROGAddressLatchEnableout

12、putpulseforlatchingthelowbyteoftheaddressduringaccessestoexternalmemory.Thispinisalsotheprogrampulseinput(PROG)duringFlashprogrammingJnnormaloperationALEisemittedataconstantrateof1/6theoscillatorfrequency,andmaybeusedforexternaltimingorclockingpurposes.Note,however,thatoneALEpulseisskippedduringeach

13、accesstoexternalDataMemory.Ifdesired,ALEoperationcanbedisabledbysettingbitOofSFRlocation8EH.Withthebitset,ALEisactiveonlyduringaMOVXorMOVCinstruction.Otherwise,thepinisweaklypulledhigh.SettingtheALE-disablebithasnoeffectifthemicrocontrollerisinexternalexecutionmode.PSENProgramStoreEnableisthereadstr

14、obetoexternalprogrammemory.WhentheAT89C51isexecutingcodefromexternalprogrammemory,PSENisactivatedtwiceeachmachinecycle,exceptthattwoPSENactivationsareskippedduringeachaccesstoexternaldatamemory.EA/VPPExternalAccessEnable.EAmustbestrappedtoGNDinordertoenablethedevicetofetchcodefromexternalprogrammemo

15、rylocationsstartingatOOOOHuptoFFFFH.Note,however,thatiflockbit1isprogrammed,EAwillbeinternallylatchedonreset.EAshouldbestrappedtoVCCforinternalprogramexecutions.Thispinalsoreceivesthe12-voltprogrammingenablevoltage(VPP)duringFlashprogramming,forpartsthatrequire12-voltVPP.XTALlInputtotheinvertingosci

16、llatoramplifierandinputtotheinternalclockoperatingcircuit.XTAL2OutputfromtheinvertingoscillatoramplifierOscillatorCharacteristicsXTALlandXTAL2aretheinputandoutput,respectively,ofaninvertingamplifierwhichcanbeconfiguredforuseasanon-chiposcillator,asshowninFigureLEitheraquartzcrystalorceramicresonatormaybeused.Todrivethedevicefromanexternalclocksource,XTAL2shouldbeleftunconnectedwhileXTALlisdrivenasshowninFigure2.Therearenorequireme

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 大学课件

copyright@ 2008-2023 1wenmi网站版权所有

经营许可证编号:宁ICP备2022001189号-1

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知第壹文秘网,我们立即给予删除!