PIC16F684的低成本双向直流有刷电机控制
Thisapplicationnotediscusseshowtousethe
Enhanced,Capture,Compare,PWM(ECCP)onthe
PIC16F684forbidirectional,brushedDC(BDC)motor
control.Low-costbrushedDCmotorcontrolcanbe
usedinapplicationssuchasintelligenttoys,small
appliancesandpowertools.ThePIC16F684takes
Microchip'sMid-RangeFamilyofproductstothenext
levelwithitsnewECCPperipheral.TheECCP
peripheralbuildsonthetechnologyoftheCCPmodule
withaddedfeaturessuchasfourPWMchannelsfor
easybidirectionalmotorcontrolthroughthehardware.
ThisapplicationnotefocusesonusingtheECCPin
PWMmodeusingthefull-bridgeconfiguration.Using
theECCPallowseasyinterfacingtoafull-bridge
configurationforbidirectionalBDCmotorcontrol.
Thisapplicationnotewilldiscussthefollowing:
•CalculatingECCPPWMParameters
•InitializingtheECCPinfull-bridgePWMmode
•BidirectionalBDCMotorControl
•SensorlessMotorControlFeedback
•ExampleApplicationAN893Low-CostBidirectionalBrushedDCMotorControlUsingthePIC16F684Author:MikeRyleeCALCULATINGECCPPWMMicrochipTechnologyInc.PARAMETERSWhenworkingwiththeECCPinPWMmode,thePWMINTRODUCTIONfrequency,dutycycleandresolution,therearethreeusefulpiecesofinformationtobecalculated.ThisapplicationnotediscusseshowtousetheEnhanced,Capture,Compare,PWM(ECCP)onthePIC16F684forbidirectional,brushed