• 光中探寻
    了解作者
  • C/C++
    开发工具
  • 53KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 1
    下载次数
  • 2019-12-23 18:22
    上传日期
实现LED照明灯的无极调光,以实现LED灯的亮度调整。即循环。
无极调光C程序.rar
  • 无极调光C程序.doc
    88KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6264a4014c65f41259eab900/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6264a4014c65f41259eab900/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#26080;&#26497;&#35843;&#20809;&#35797;&#39564;&#31243;&#24207;</div><div class="t m0 x1 h3 y3 ff2 fs0 fc0 sc0 ls0 ws0">&#58881; &#58881; <span class="ff1">&#21333;&#29255;&#26426;&#37319;&#29992;<span class="_ _0"> </span></span>PIC12F683<span class="ff1">&#65292;&#36825;&#20010;&#21333;&#29255;&#26426;&#20869;&#37096;&#26377;&#30828;&#20214;<span class="_ _0"> </span></span>CCP<span class="_ _0"> </span><span class="ff1">&#21333;&#20803;&#65292;&#21487;&#20197;&#37197;&#32622;&#25104;<span class="_ _0"> </span></span>PWM<span class="_ _0"> </span><span class="ff1">&#27169;&#24335;&#12290;&#20026;&#20160;&#20040;&#35201;&#29992;&#36825;&#20010;&#21333;&#29255;&#26426;&#65292;&#32780;&#19981;&#29992;&#21035;&#30340;&#22411;&#21495;&#65292;&#19968;&#26469;&#23545;<span class="_ _0"> </span></span>PIC<span class="_ _0"> </span><span class="ff1">&#27604;&#36739;&#29087;&#24713;&#65292;&#20108;</span></div><div class="t m0 x1 h3 y4 ff1 fs0 fc0 sc0 ls0 ws0">&#26469;&#20080;&#30340;&#21040;&#19988;&#19981;&#31639;&#36149;&#12290;</div><div class="t m0 x1 h3 y5 ff2 fs0 fc0 sc0 ls0 ws0">&#58881; &#58881; 12F683<span class="_ _0"> </span><span class="ff1">&#36319;<span class="_ _0"> </span></span>12F628<span class="_ _0"> </span><span class="ff1">&#19968;&#26679;&#65292;&#26377;<span class="_ _0"> </span></span>SO-8<span class="_ _0"> </span><span class="ff1">&#23553;&#35013;&#30340;&#24086;&#29255;&#65292;&#20307;&#31215;&#19968;&#26679;&#12290;&#35774;&#35745;<span class="_ _0"> </span></span>IC<span class="_ _0"> </span><span class="ff1">&#30340;<span class="_ _0"> </span></span>2<span class="ff1">&#12289;</span>3<span class="_ _0"> </span><span class="ff1">&#33050;&#20998;&#21035;&#23545;&#22320;&#25509;&#19968;&#20010;&#24320;&#20851;&#65292;</span>2<span class="_ _0"> </span><span class="ff1">&#33050;&#24320;&#20851;&#25353;&#19979;&#21518;&#65292;&#21344;&#31354;&#27604;&#22686;&#21152;&#65292;<span class="_ _1"></span></span>3<span class="_ _0"> </span><span class="ff1">&#33050;&#24320;&#20851;&#25353;&#19979;&#21518;&#21344;&#31354;</span></div><div class="t m0 x1 h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">&#27604;&#20943;&#23567;&#12290;&#24320;&#26426;&#21518;&#21021;&#22987;&#20540;&#22823;&#27010;<span class="_ _0"> </span><span class="ff2">50</span>&#65285;&#65292;<span class="ff2">PWM<span class="_ _0"> </span></span>&#39057;&#29575;&#22823;&#27010;<span class="_ _0"> </span><span class="ff2">15.6KHz</span>&#12290;<span class="ff2">PWM<span class="_ _0"> </span></span>&#33033;&#20914;&#20174;<span class="_ _0"> </span><span class="ff2">IC<span class="_ _0"> </span></span>&#30340;<span class="_ _2"> </span><span class="ff2">5<span class="_ _2"> </span></span>&#33050;&#36755;&#20986;&#12290;<span class="ff2">12F683<span class="_ _0"> </span></span>&#30340;&#36164;&#26009;&#20063;&#26159;&#19981;&#22810;&#65292;&#20165;&#26377;<span class="_ _0"> </span><span class="ff2">Datasheet<span class="_ _0"> </span></span>&#21487;&#20197;&#21442;&#32771;&#65292;&#32463;&#36807;&#21453;&#22797;</div><div class="t m0 x1 h3 y7 ff1 fs0 fc0 sc0 ls0 ws0">&#27979;&#35797;&#65292;&#32456;&#20110;&#29992;&#19979;&#38754;&#20195;&#30721;&#35843;&#35797;&#25104;&#21151;&#65306;</div><div class="t m0 x1 h4 y8 ff2 fs0 fc0 sc0 ls0 ws0">;---------------------------------------------<span class="_ _1"></span>-------------</div><div class="t m0 x1 h4 y9 ff2 fs0 fc0 sc0 ls0 ws0">BSF ST<span class="_ _3"></span>A<span class="_ _3"></span>TUS,RP0</div><div class="t m0 x1 h4 ya ff2 fs0 fc0 sc0 ls0 ws0">MOVL<span class="_ _3"></span>W 07H</div><div class="t m0 x1 h3 yb ff2 fs0 fc0 sc0 ls0 ws0">MOVWF OPTION_REG ;<span class="ff1">&#20801;&#35768;&#19978;&#25289;</span></div><div class="t m0 x1 h4 yc ff2 fs0 fc0 sc0 ls0 ws0">MOVL<span class="_ _3"></span>W 30H</div><div class="t m0 x1 h3 yd ff2 fs0 fc0 sc0 ls0 ws0">MOVWF WPU&#58881;&#58881;;<span class="ff1">&#35774;&#32622;<span class="_ _2"> </span></span>GP4<span class="ff1">&#12289;</span>GP5<span class="_ _0"> </span><span class="ff1">&#24369;&#19978;&#25289;</span></div><div class="t m0 x1 h3 ye ff2 fs0 fc0 sc0 ls0 ws0">MOVWF IOC&#58881;&#58881;;<span class="ff1">&#35774;&#32622;<span class="_ _2"> </span></span>GP4<span class="_ _1"></span><span class="ff1">&#12289;</span>GP5<span class="_ _2"> </span><span class="ff1">&#20801;&#35768;&#31471;&#21475;&#30005;&#24179;&#21464;&#21270;&#20013;&#26029;</span></div><div class="t m0 x1 h4 yf ff2 fs0 fc0 sc0 ls0 ws0">BSF INT<span class="_ _3"></span>CON,GPIE</div><div class="t m0 x1 h4 y10 ff2 fs0 fc0 sc0 ls0 ws0">;---------------------------------------------<span class="_ _1"></span>-------------</div><div class="t m0 x1 h4 y11 ff2 fs0 fc0 sc0 ls0 ws0">BCF ST<span class="_ _3"></span>A<span class="_ _3"></span>TUS,RP0</div><div class="t m0 x1 h4 y12 ff2 fs0 fc0 sc0 ls0 ws0">MOVL<span class="_ _3"></span>W 07H</div><div class="t m0 x1 h3 y13 ff2 fs0 fc0 sc0 ls0 ws0">MOVWF CMCON0&#58881;&#58881;;<span class="ff1">&#20851;&#38381;&#27604;&#36739;&#22120;</span></div><div class="t m0 x1 h4 y14 ff2 fs0 fc0 sc0 ls0 ws0">;**********************************************************************</div><div class="t m0 x1 h4 y15 ff2 fs0 fc0 sc0 ls0 ws0">BSF ST<span class="_ _3"></span>A<span class="_ _3"></span>TUS,RP0</div><div class="t m0 x1 h3 y16 ff2 fs0 fc0 sc0 ls0 ws0">CLRF ANSEL&#58881;&#58881;;<span class="ff1">&#28165;&#38500;&#27169;&#25311;&#36873;&#25321;&#23492;&#23384;&#22120;</span></div><div class="t m0 x1 h4 y17 ff2 fs0 fc0 sc0 ls0 ws0">MOVL<span class="_ _3"></span>W 3FH</div><div class="t m0 x1 h3 y18 ff2 fs0 fc0 sc0 ls0 ws0">MOVWF PR2&#58881;&#58881;;<span class="ff1">&#35774;&#32622;<span class="_ _2"> </span></span>PR2,PWM<span class="_ _0"> </span><span class="ff1">&#21608;&#26399;</span>,<span class="ff1">&#40664;&#35748;<span class="_ _0"> </span></span>4M<span class="_ _2"> </span><span class="ff1">&#25391;&#33633;&#36755;&#20986;<span class="_ _0"> </span></span>PWM<span class="_ _0"> </span><span class="ff1">&#39057;&#29575;&#32422;<span class="_ _0"> </span></span>15.6KHz</div><div class="t m0 x1 h4 y19 ff2 fs0 fc0 sc0 ls0 ws0">;---------------------------------------------<span class="_ _1"></span>-------------</div><div class="t m0 x1 h4 y1a ff2 fs0 fc0 sc0 ls0 ws0">BCF ST<span class="_ _3"></span>A<span class="_ _3"></span>TUS,RP0</div><div class="t m0 x1 h4 y1b ff2 fs0 fc0 sc0 ls0 ws0">MOVL<span class="_ _3"></span>W 1FH</div><div class="t m0 x1 h3 y1c ff2 fs0 fc0 sc0 ls0 ws0">MOVWF CCPR1L&#58881;&#58881;;<span class="ff1">&#35774;&#32622;&#21344;&#31354;&#27604;&#21021;&#20540;</span></div><div class="t m0 x1 h4 y1d ff2 fs0 fc0 sc0 ls0 ws0">;---------------------------------------------<span class="_ _1"></span>-------------</div><div class="t m0 x1 h4 y1e ff2 fs0 fc0 sc0 ls0 ws0">BSF ST<span class="_ _3"></span>A<span class="_ _3"></span>TUS,RP0</div><div class="t m0 x1 h4 y1f ff2 fs0 fc0 sc0 ls0 ws0">MOVL<span class="_ _3"></span>W 0F8H</div><div class="t m0 x1 h3 y20 ff2 fs0 fc0 sc0 ls0 ws0">MOVWF TRISIO&#58881;&#58881;;<span class="ff1">&#35774;&#32622;<span class="_ _2"> </span></span>GP2<span class="_ _0"> </span><span class="ff1">&#36755;&#20986;</span></div><div class="t m0 x1 h4 y21 ff2 fs0 fc0 sc0 ls0 ws0">;---------------------------------------------<span class="_ _1"></span>-------------&#58881;</div><div class="t m0 x1 h4 y22 ff2 fs0 fc0 sc0 ls0 ws0">BCF ST<span class="_ _3"></span>A<span class="_ _3"></span>TUS,RP0</div><div class="t m0 x1 h4 y23 ff2 fs0 fc0 sc0 ls0 ws0">CLRF T2CON</div><div class="t m0 x1 h3 y24 ff2 fs0 fc0 sc0 ls0 ws0">BSF T2CON,TMR2ON ;<span class="ff1">&#35774;&#32622;<span class="_ _2"> </span></span>T2CON<span class="_ _0"> </span><span class="ff1">&#20351;&#33021;&#65292;&#39044;&#20998;&#39057;&#27604;<span class="_ _0"> </span></span>1</div><div class="t m0 x1 h4 y25 ff2 fs0 fc0 sc0 ls0 ws0">;---------------------------------------------<span class="_ _1"></span>-------------</div><div class="t m0 x1 h4 y26 ff2 fs0 fc0 sc0 ls0 ws0">MOVL<span class="_ _3"></span>W 0FH</div><div class="t m0 x1 h3 y27 ff2 fs0 fc0 sc0 ls0 ws0">MOVWF CCP1CON&#58881;&#58881;;<span class="ff1">&#35774;&#32622;<span class="_ _2"> </span></span>CCP<span class="_ _0"> </span><span class="ff1">&#27169;&#22359;&#20026;<span class="_ _0"> </span></span>PWM<span class="_ _2"> </span><span class="ff1">&#27169;&#24335;</span></div><div class="t m0 x1 h4 y28 ff2 fs0 fc0 sc0 ls0 ws0">;---------------------------------------------<span class="_ _1"></span>-------------</div><div class="t m0 x1 h3 y29 ff2 fs0 fc0 sc0 ls0 ws0">BSF INT<span class="_ _3"></span>CON,GIE&#58881;&#58881;;<span class="ff1">&#24320;&#21551;&#20840;&#23616;&#20013;&#26029;</span></div><div class="t m0 x1 h4 y2a ff2 fs0 fc0 sc0 ls0 ws0">LOOP GOTO L<span class="_ _3"></span>OOP</div><div class="t m0 x1 h4 y2b ff2 fs0 fc0 sc0 ls0 ws0">;**********************************************************************</div><div class="t m0 x1 h4 y2c ff2 fs0 fc0 sc0 ls0 ws0">GPINT BCF ST<span class="_ _3"></span>A<span class="_ _3"></span>TUS,RP0</div><div class="t m0 x1 h3 y2d ff2 fs0 fc0 sc0 ls0 ws0">BCF INT<span class="_ _3"></span>CON,GPIF&#58881;&#58881;;<span class="ff1">&#28165;&#20013;&#26029;&#26631;&#24535;</span></div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • LED调光项目资料.rar
      紫外LED照射系统采用365nm紫外LED作为照射光源,用于油墨固化领域,系统由控制器及照射头两部分组成,系统分为4种基本照射方式,由控制器分开4路独立供电控制,每路可独立调节照射功率强度,控制器通过航空插连接...
    • PWM调光.rar
      PWM调光,采C51单片机做主控芯片,通过控制IO口输出脉冲调整高低电平的宽度时间,以达到控制输出电压电流大小的目的,进行控制LED灯光的亮度! PWM调光,采C51单片机做主控芯片,通过控制IO口输出脉冲调整高低电平的...
    • 1214-LED调光.zip
      通过不同的方式,手动或自动的方式调节灯光亮度,实现台灯的智能化管理
    • PWM调光.zip
      简单的小程序通过PWM(脉宽调制)调节LED亮度
    • LED.rar
      白光LED调光系统,STC89C52控制,可以加减灯的亮度
    • PWM数码管和LED调光亮度.zip
      利用不同的占空比来调整数码管和LED亮度,仅用1个定时器
    • 单片机pwm调光
      单片机stc89c52pwm调光,通过PWM(脉宽调制)调节LED亮度
    • 电子-LED手电无级调光.rar
      电子-LED手电无级调光.rar,单片机/嵌入式STM32-F0/F1/F2
    • 感应式调光电路的设计与实现.zip
      通过各软件功能程序可对信号(包括检测室内有无人员、光强等)采集并进行处理,并且根据室内有无人员和光强的大小来共同控制室内亮、灭情况和亮度调节情况,从而实现对室内灯光的智能控制;当按下按键时,可根据按键...
    • 人事管理系统(VFP版).rar
      给别人做过的一个毕业设计。用VFP做的。