关闭

关闭

封号提示

内容

首页 AN4241 dSPIN™ family fully integrated…

AN4241 dSPIN™ family fully integrated stepper motor drivers.pdf

AN4241 dSPIN™ family …

上传者: mzh6000 2014-03-28 评分 4.5 0 77 10 350 暂无简介 简介 举报

简介:本文档为《AN4241 dSPIN™ family fully integrated stepper motor driverspdf》,可适用于IT/计算机领域,主题内容包含JanuaryDocIDRevANApplicationnotedSPINfamily:fullyintegratedsteppermotordri符等。

JanuaryDocIDRevANApplicationnotedSPINfamily:fullyintegratedsteppermotordriversByEnricoPoliIntroductionTheLandLarefullyintegratedmotordriversprovidingacompletestandalonesolutionforthehighendsteppermotorapplicationsThedevicescanbecontrolledbyahostmicrocontrollerthroughafastSPIinterfaceandareabletoexecuteacompletesetofmotioncommandsThisdocumentdescribeshowthedevicescanbeconfiguredandgivessomesuggestionsabouttheoperationandtheapplicationdesignThecurrentcontrolalgorithmofthedevices(theLvoltagemodedrivingandtheLadvancedcurrentcontrol)isnotinvestigatedinthisdocumentForfurtherdetails,please,refertotherespectiveapplicationnotesAN"Voltagemodecontroloperationandparameteroptimization"andAN"Peakcurrentcontrolwithautomaticdecayadjustmentandpredictivecurrentcontrol:basicsandsetup"wwwstcomContentsANDocIDRevContentsTheLandLcommunicationinterfaceCommunicationprotocolDaisychainVandVcommunicationinterfaceMotionengineSpeedtrackingcommandsPositioningcommandsChangethetargetpositionoftheontheflycommandStopcommandsInitializingpositionusingGoUntilandReleaseSWcommandsProtectionsOvertemperatureprotectionOvercurrentprotectionUndervoltageStalldetectionMainclocksourceLayoutsuggestionsRevisionhistoryANTheLandLcommunicationinterfaceDocIDRevTheLandLcommunicationinterfaceThedevice(alwaysslave)canbedrivenbyaMCU(alwaysmaster)sendingcommandsthroughanbitSPIinterfaceThebitshiftregisterofthedeviceiskeptenabledwhileCSinputisforcedlowDuringthistime,ateveryraisingedgeoftheserialclock(CK),theSDIinputisstoredintotheshiftregisterAtCKfallingedgestheSDOoutputisupdatedaccordingtothelastbitoftheshiftregisterWhentheCSinputisraised,thedevicecatchestheshiftregistercontentandinterpretsitsvalueasacommandoranargumentofthepreviouslyreceivedcommandAllthebytesaresentthroughtheSPIdatalinesstartingfromthemostsignificantbitCommunicationprotocolThecommunicationprotocolisbasedonsinglebytecommandsthatcanbefollowedbyacommandargumentuptobytelongwhichmustbetransmittedstartingfromthemostsignificantbytePartoftheinformationneededtoexecutethetargetoperationcouldbeembeddedintothecommandbyte,forexamplethetargetregisteraddressintheGetParamandSetParamcommands,andtheargumentprovidesextradataaswellasthetargetpositionoftheGoTocommandBydefaulttheresponsebyteofthedeviceish(hexadecimalformat)Somecommands,forexamplethoseusedtoreadthevalueofaregister,generatearesponsefromthedeviceuptobytelongwhichistransmittedduringthefollowingtransmissioncyclesstartingfromthemostsignificantbyteDaisychainThedeviceiscompatiblewiththedaisychainarchitectureallowingtheMCUtodrivemultipledeviceswithasingleSPIinterfaceThedaisychainarchitectureisobtainedasfollows:MasterserialclocklineisconnectedtotheCKinputofeachslavedeviceMasterslaveselectlineisconnectedtotheCSinputofeachslavedeviceMasterserialdataoutput(MOSI)isconnectedtotheSDIinputofthefirstslaveofthechainTheSDOoutputofeachslavedeviceisconnectedtotheSDIinputofthenextone,lastslaveexcludedMasterserialdatainput(MISO)isconnectedtotheSDOoutputofthelastslaveofthechain,TheconnectiondiagramoftheconfigurationisshowninFigureTheLandLcommunicationinterfaceANDocIDRevFigureDaisychainconnectiondiagramInthisconfiguration,thechainofslavesactsasasingleslavewithanSPIdeviceofNbyteEachcommunicationcycle,forexamplewhenthemasterneedstotransmitreceiveabytefromtoaslave,themastermustfillalltheshiftregistersoftheslavesbeforeraisingtheCSlineThedevicesareaddressedaccordingtothepositionofthebyteinthecommunicationcycle:thefirstbytetransmittedbythemasterisreceivedbythelastdeviceofthechainthesecondoneisreceivedbythelastbutoneslaveandsoondowntothelasttransmittedbytewhichisreceivedbythefirstslaveofthechainTheresponsebytesfromthedevicechainareaddressedtothesameway:thefirstbytereceivedbythemasterhasbeentransmittedbythelastdeviceofthechainthesecondonehasbeentransmittedbythelastbutoneslaveandsoondowntothelastreceivedbytewhichhasbeentransmittedbythefirstslaveofthechainIntheory,thenumberofslavesthatanMCUcandriveusingthedaisychainconfigurationisunlimitedinpracticethemaximumnumberofdevicesconnectedtothesameSPIdependsontheclockskewThenumberofslaveslimitsthecommunicationspeedalsobecauseeverytimeabytehastobetransmittedtoadevice,thewholeNslavechainhastobefilledtransmittingNextrabytesVandVcommunicationinterfaceThedevicecanbeconfiguredtooperatebothwithVandVstandardlogicasshowninFigureMCUSerialclockSlaveselectSerialdataoutSerialdatainDevice(stofthechain)toSDIofdevicetoSDIofdeviceXfromSDOofdeviceXfromSDOofdeviceNDeviceXDeviceXDeviceN(lastofthechain)CSCKSDISDOCSCKSDISDOCSCKSDISDOCSCKSDISDOAMvANTheLandLcommunicationinterfaceDocIDRevFigureLogicinterfacesupplyscenariosCDDPOLCDDCREGPOLCREGµFnFnFµFVREGVDDCDDPOLCDDCREGµFnFnFVREGVDDCDDPOLCDDCREGPOLCREGµFnFnFµFVREGVDDVVVCDDPOLCDDCREGµFnFnFVREGVDDVFullyselfsupplieddeviceCompliantwithVlogicSelfsupplieddeviceCompliantwithVlogicExternallysupplieddeviceCompliantwithVlogicExternallysupplieddeviceCompliantwithVlogicAMvMotionengineANDocIDRevMotionengineThedSPINfamilydevicesintegrateamotionengineprovidingafullsetofcommandsThemotionenginegeneratesthestepsequenceaccordingtotheprogrammedspeedprofileandtherequestedcommandThespeedprofilerepresentstheoperationboundaries,definedbytheacceleration,deceleration,maximumandminimumspeed,whichshouldberespectedtoensuretheproperfunctioningoftheapplicationThedevicesallowalltheparameterstobesetindependently:AccelerationanddecelerationvaluesrangefromuptostepssThedevicecanalsobesettouseaninfiniteaccelerationanddecelerationvalueinthiscase,boththeaccelerationanddecelerationphasesaretotallyskippedMaximumspeedvaluerangesfromstepssuptostepsMinimumspeedvaluerangesfromuptostepssTheacceleration,decelerationandminimumspeedparameterscanbemodifiedwhenthemotorisstoppedonlyThemaximumspeedcanbealsochangedwhenthemotorisrunning,butthenewvalueisonlyconsideredatnextcommandexecutionThecommandssupportedbythemotionenginearelistedinTableTableCommandlistNameLength(bytes)DescriptionNotesMove(includingofarguments)PerformingthetargetnumberofmicrostepsasperrequesteddirectionCanbeexecutedwhenthemotorisstoppedonlyGoTo(includingofarguments)Reachingtheabsolutetargetposition(ABSPOSregister)usingtheshortestpathNotacceptedwhileanothercommandisunderexecutionGoToDIR(includingofarguments)Reachingtheabsolutetargetposition(ABSPOSregister)runningasperrequesteddirectionNotacceptedwhileanothercommandisunderexecutionGoHomeReachingthehomeposition(allzeroes)usingtheshortestpathNotacceptedwhileanothercommandisunderexecutionGoMarkReachingthepositionstoredintotheMARKregisterusingtheshortestpathNotacceptedwhileanothercommandisunderexecutionRun(includingofarguments)ReachingthetargetspeedintherequesteddirectionAlwaysacceptedandimmediatelyexecuted(ifpresent,thepreviouscommandisaborted)StepClockSwitchingthedeviceinstepclockmodeimposingthedirectionCanbeexecutedwhenthemotorisstoppedonlyANMotionengineDocIDRevSpeedtrackingcommandsDuringthespeedtracking,thedevicedynamicallychangesthemotorspeedaccordingtotheapplicationrequirementsTheRuncommandcanbeusedtoachievethisresultTheRuncommandsetsthespeedtargetanddirectionwhichthemotorhastoreachBothspeedtargetanddirectioncanbechangedinrealtimethroughanewRuncommand(seeFigure)GoUntil(includingofarguments)ReachingthespeedtargetintherequesteddirectionandstoppingwhenSWinputisforcedlow(fallingedge)Alwaysacceptedandimmediatelyexecuted(ifpresent,thepreviouscommandisaborted)ReleaseSWRunnigthemotoratlowspeedintherequesteddirectionandstoppingwhenSWinputisforcedhigh(risingedge)Alwaysacceptedandimmediatelyexecuted(ifpresent,thepreviouscommandisaborted)SoftStopStoppingthemotorinaccordancetotheprogrammedspeedprofileAlwaysacceptedandimmediatelyexecuted(ifpresent,thepreviouscommandisaborted)HardStopStoppingthemotorimmediately(infinitedeceleration)Alwaysacceptedandimmediatelyexecuted(ifpresent,thepreviouscommandisaborted)SoftHiZStoppingthemotorinaccordancetotheprogrammedspeedprofileandthendisablingthepowerbridgesAlwaysacceptedandimmediatelyexecuted(ifpresent,thepreviouscommandisaborted)HardHizDisablingthepowerbridgesimmediatelyAlwaysacceptedandimmediatelyexecuted(ifpresent,thepreviouscommandisaborted)TableCommandlist(continued)NameLength(bytes)DescriptionNotesMotionengineANDocIDRevFigureSpeedtrackingusingRuncommandsequencesPositioningcommandsThemotionengine,integratedintothedevices,allowsthepositionofthemotorinatargetpositionbasedonintegratedABSPOSregisterTheABSPOSregistertracesallthemotionperformedbythemotoraddingaunittoeachmicrostepcompletedinforwarddirectionandsubtractingaunitwhenthemicrostepisperformedinreversedirectionThetargetpositioningcanbedirectlyimposedindicatingtheABSPOSregistervalue(absoluteposition)orthedistancebetweenthecurrentpositionandthetargetone(relativeposition)TherelativepositioningcommandisMoveThemotionengineexecutesthiscommandonlywhenthemotorisstoppedinordertoavoidunexpectedbehaviors(egthetargetofnumberofstepsisnotenoughtoallowthespeedprofilecompliance)FigureRelativepositioningcommandexampleSpeedTimeRun(forward,)Run(forward,)Run(forward,)Run(reverse,)AMvhhFFFFFhFFFFFhhhFFFFFhFFFFFhStartingpositionStartingpositionFinalpositionMove(Reverse)Move(Forward)FinalpositionAMvANMotionengineDocIDRevTheabsolutepositioningcommandsareGoToandGoToDIRTheformermovesthemotortothepositiontargetchoosingtherotationdirectionaccordingtoaminimumpathalgorithm(iethelowernumberofmicrostepsisexecuted)whereasthelatterimposesthedirectiondirectlyFigureAbsolutepositioningcommandexampleIfaGoTocommandisrequestedwhenthemotorisrunning,theminimumpathalgorithmalsoconsidersthestepsrequiredtoreversethedirection(seeFigure)FigureMinimumpathalgorithmwhenmotorisrunningTheGoToandGoToDIRcanonlybeexecutedwhennoothercommandsareunderexecutionChangethetargetpositionoftheontheflycommandIfaRuncommandissenttothedeviceduringtheexecutionofaGoTocommand,itabortsthepreviouscommandThiseffectcanbeusedtochangethetargetpositionofthemotionengineontheflyhhFFFFFhFFFFFhhhFFFFFhFFFFFhStartingpositionStartingpositionTargetpositionTargetpositionGoToGoToDIR(Forward)AMvh>thenforwarddirectionisusedhFFFFFhFFFFFhCurrentpositionZerospeedposition(wherethemotorwillstopifitstartsdecelerating)TargetpositionMotorisrunninginforwarddirectionForwarddirectionpathForwarddirectionpathReversedirectionpathReversedirectionpathAMvMotionengineANDocIDRevFollowingthesuggestedsequenceofoperations:Readthecurrentmotorspeed(SPEEDregister)anddirection(DIRbitintheSTATUSregister)SendaRuncommandsettingthetargetspeedanddirectionequaltothevaluesobtainedatpointWaitfortheexecutioncommandmonitoringtheBUSYpinortheBUSYflagintheSTATUSregisterSendthenewpositioningcommandThisoperationcouldintroduceasmallerrorinthegenerationofthespeedprofileIfthetargetpositionischangedahighnumberoftimes(trackingposition)theerrorincreasesandanomalousbehaviorscouldoccurStopcommandsThemotorcanbestoppedthroughthestopcommandsThesecommandscanbesentatanytimeandtheyareexecutedimmediatelyTheSoftStopcommandstopsthemotorfittingthedecelerationvalueofthespeedprofilewhereasHardStopcommandstopsthemotorimmediately(infinitedeceleration)TheSoftHiZandHardHiZcommandsoperatesimilarly,butthepowerbridgesaredisabledassoonasthezerospeedisreached(thehighimpedancestatusisforced)InitializingpositionusingGoUntilandReleaseSWcommandsTheGoUntilandReleaseSWcommandscanbeusedtoinitializetheabsolutepositioninformationstoredintotheABSPOSregisteraccordingtoanexternalpositionsensorInthiswayarelationbetweenABSPOSvalueandmechanicalpositionofthemotorcanbeestablishedThepositioninitializationsequence,asshowninFigure,isthefollowing:Inpowerupstatus,theloadpositionisunknownUsingGoUntilcommandtheloadismovedtothelimitswitchathighspeedWhentheloadreachesthelimitswitchtheSWinputofthedeviceisforcedlowThemotordeceleratesandthenstopsConsideringthehighspeedusedtoapproachtheloadtothelimitswitch,asignificanterrorinthepositioningcouldhappenUsingReleaseSWcommandtheloadismovedawayfromthelimitswitchatlowspeedAssoonasthethresholdpositionofthelimitswitchiscrossedbytheloadtheSWinputofthedeviceisforcedhighThemotorstopsimmediatelyTheloadispositionedincorrespondencetothethresholdpositionofthelimitswitchwithahighprecisionANMotionengineDocIDRevFigureInitializationpositionusingGoUntilandReleaseSWcommandsLoadinunknownpositionPositionsensor(limitswitch)SteppermotordSPINfamilymotordriverGoUntilcommandisexecutedandtheloadreachesthelimitswitchSWSWReleaseSWcommandisexecutedandtheloadispositionedexactlyonthetriggeringpointofthelimitswitchSWAMvProtectionsANDocIDRevProtectionsThedSPINfamilydevicesprovideacompletesetofprotectionsdesignedtopreventfromdamagingthedeviceincriticalconditionsTheimplementedprotectionsare:Overtemperature(seeSection)Overcurrent(seeSection)Undervoltage(seeSection)OvertemperatureprotectionTheovertemperatureprotectiondisablesthepowerstageofthedevicewhenthetemperatureofthechipexceedsthesafeoperationconditionsWhentheovertemperatureprotectionistriggeredthedeviceislockedinasafecondition(allMOSFETsareturnedoff)andiskeptinthisconditionuntilthejunctiontemperaturedecreasesbelowC(typical)Thethermalshutdowneventoccurrenceissignaledthroughtherespectiveflag(THSD)intheSTATUSregisterwhichiskeptlowuntilitisreleasedbyaGetStatuscommand(moredetailsareavailableinthedatasheetofthedevice)AwarningthresholdisalsopresentallowingthehosttocontrolthedevicetopreventtheshutdownOvercurrentprotectionTheovercurrentprotectionmonitorsthecurrentinallpowerMOSFETsofthedeviceanddisablesthepowerstagewhentheprogrammedcurrentthresholdisreachedNoinformationaboutthespecificMOSFETorbridgecausingthefailureisavailableAssoonastheovercurrentprotectionistriggered,thedeviceislockedinasafecondition(allMOSFETsareturnedoff)andiskeptinthisconditionuntiltheOCDfailureflagisreleasedbyaGetStatuscommandWhenthedeviceislockedinsafestatenocommandenablingthebridgescanbeexecuted(egMove,Run,GoTo,HardStop,etc)Thecommandsaresimplyignored,nononperformablesignallingisreturnedbythedeviceWarning:TheovercurrentprotectioncanbedisabledsettingtheOCSDpinoftheCONFIGregistertozeroHoweveritisnotrecommendedthisprotectiontobedisabledUndervoltageTheundervoltageprotectionavoidsthepowerstageofthedevicetooperatewithasupplyvoltagebelowthesafeconditionsANProtectionsDocIDRevAtpowerup,thedeviceisinundervoltagestatus:thepowerbridgesofthedevicearekeptdisableduntilthesupplyvoltageisbelowtheturnonthresholdInthisconditionallthecommandsenablingthebridges(egMove,Run,GoTo,HardStop,etc)areignoredandtheUVLOfailureflagisforcedlowWhentheturnonthresholdisreachedthepowerbridgesareoperativeTheUVLOflagiskeptlowuntilitisreleasedthroughaGetStatuscommandThedevicereturnsinundervoltagestatusifthesupplyvoltagefallsbelowtheturnoffthresholdFigureUndervoltagepro

类似资料

该用户的其他资料

教你七天变身肌肉男.pdf

晚会专用:游戏惩罚整蛊方法_晚会游戏惩罚项目_晚会游戏惩罚.doc

贴片铝电解电容封装尺寸定义.pdf

STM32F4DISCOVERY.pdf

AN4144 Voltage mode control operation and parameter optimization.pdf

职业精品

精彩专题

上传我的资料

精选资料

热门资料排行换一换

  • 《丁道尔新约圣经注释04-约翰福…

  • 似水年华.txt

  • 太平御览(第2卷).pdf

  • 诸子文集.txt

  • 《楷书要论:结构》田英章.pdf

  • GB 23639-2009-T …

  • 汉字古今谈.pdf

  • 基于条件随机场的命名实体识别研究…

  • JSP教程_w3cschool菜…

  • 资料评价:

    / 18
    所需积分:0 立即下载

    意见
    反馈

    返回
    顶部