1. 首页
  2. 课程学习
  3. 嵌入式
  4. 数字式恒流LED驱动器

数字式恒流LED驱动器

上传者: 2022-06-23 23:20:23上传 PDF文件 388.01 KB 热度 10次

ThisdocumentdescribesapowerLEDdriversolution

usingthePIC12HV615microcontroller(MCU).The

PIC12HV615isan8-pinMCUwithmanyintegrated

analogfeatures.TheLEDdrivercircuitisabuck(step-

down)solutionandthecircuitpresentedherecan

operatefrommostanyinputvoltagesourceaslongas

itexceedstheforwardvoltageoftheLEDstobedriven.

Aproportional-integral(PI)controlleralgorithmisused

toregulatetheLEDcurrenttoaconstantvalue.ThePI

controllerisexecutedatarateof976Hz,leavingplenty

ofCPUtimeavailableforothertasks.Althoughthis

sampleratewouldprovideinadequatecontrol

responseformostpowersupplyapplications,itworks

wellforLEDapplicationsbecausetheLEDpresentsa

constantloadtothepowerstage.Therefore,the

controllerdoesnotneedtomakefrequentadjustments.

TheLEDcurrentissampledusingaresistorinseries

withthesourceoftheMOSFETinthebuckcircuitand

amplifiedusingasingleopamp.TheLEDcurrentis

sampledusingoneoftheavailableADCinputsonthe

PIC12HV615.TheEnhancedCaptureComparePWM

(ECCP)moduleoftheMCUisusedinPWMmodeto

drivethebuckcircuit.SincetheMCUhasaninternal

voltageregulatorand8MHzoscillator,veryfew

externalcomponentsarerequiredtocompletethe

circuit.AN1138ADigitalConstantCurrentPowerLEDDriverdrivecurrentforthistypeofLEDwouldbe350mAandAuthor:StephenBowlingatypicalforwardvoltagewouldbe3.5V.Secondly,weMicrochipTechnologyInc.willassumethatthecircuitinputvoltageis12V.Theinductorvaluewillbechosentoallowamaximumcurrentrippleof+/-20%.TheeyewillnotbeabletoINTRODUCTIONperceivethiscur

用户评论