PIC18CXXX PIC16CXXX直流伺服电机应用
ThePICmicro
®
microcontrollermakesanidealchoice
foranembeddedDCServomotorapplication.ThePIC-
microfamilyhasmanydevicesandoptionsforthe
embeddeddesignertochoosefrom.Furthermore,pin
compatibledevicesareofferedinthePIC16CXXXand
PIC18CXXXdevicefamilies,whichmakesitpossibleto
useeitherdeviceinthesamehardwaredesign.This
givesthedesigneraneasymigrationpath,depending
onthefeaturesandperformancerequiredintheappli-
cation.Inparticular,thisservomotorhasbeenimple-
mentedonboththePIC18C452andPIC16F877
devices,andwe’lllookattheMCUresourcesrequired
tosupporttheservomotorapplication.Withanunder-
standingoftheservomotorfunctions,youcanstartwith
thedesignshownhereandimplementyourowncus-
tomDCservomotorapplicationbasedonthePICmicro
devicethatsuitsyourneeds.
ThePICmicroMCUhandlesmanyfunctionsinthe
servomotorapplication,suchas:
•Usercontrolinterface
•Measurementofmotorposition
•Computationofmotionprofile
•ComputationoferrorsignalandPIDcompensa-
tionalgorithm
•Generationofmotordrivesignal
•Communicationwithnon-volatileEEPROM
memoryAN696PIC18CXXX/PIC16CXXXDCServomotorApplicationAschematicdiagramfortheapplicationisshowninAuthor:StephenBowlingFigure1.TheDCmotorisdrivenbyaSGS-ThomsonMicrochipTechnologyInc.L6203H-bridgedriverICthatusesDMOSoutputChandler,AZdevicesandcandeliverupto3Aoutputcurrentatsup-plyvoltagesupto52V.Thedevicehasaninternalchargepumpfordrivingthehigh-side