51单片机程序.zip

  • 雕刻机雕刻机
    了解作者
  • C/C++
    开发工具
  • 9KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 0
    下载次数
  • 2021-04-15 09:44
    上传日期
基于51单片机的激光雕刻控制代码源码,已编译成功,复制keil编译即可
51单片机程序.zip
  • 51单片机程序.doc
    120KB
内容介绍
<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/626d405b3c16ee627a4afbf4/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/626d405b3c16ee627a4afbf4/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">1.<span class="_ _0"> </span><span class="fs1">/*z<span class="_ _1"> </span><span class="ff2">&#22320;&#22336;&#23450;&#20041;</span></span></div><div class="t m0 x1 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">2.<span class="_ _0"> </span><span class="fs1">50 1=x+<span class="ff2">&#65292;</span>2=x-<span class="ff2">&#65292;</span>3=y+,4=y-</span></div><div class="t m0 x1 h3 y4 ff1 fs0 fc0 sc0 ls0 ws0">3.<span class="_ _0"> </span><span class="fs1">51 <span class="ff2">&#21069;&#36827;&#21518;&#36864;&#27493;&#25968;&#39640;</span></span></div><div class="t m0 x1 h3 y5 ff1 fs0 fc0 sc0 ls0 ws0">4.<span class="_ _0"> </span><span class="fs1">52 <span class="ff2">&#21069;&#36827;&#21518;&#36864;&#27493;&#25968;&#20302;</span></span></div><div class="t m0 x1 h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">5.<span class="_ _0"> </span><span class="fs1">53</span></div><div class="t m0 x1 h3 y7 ff1 fs0 fc0 sc0 ls0 ws0">6.<span class="_ _0"> </span><span class="fs1">54/55 <span class="ff2">&#23383;&#23485;</span></span></div><div class="t m0 x1 h3 y8 ff1 fs0 fc0 sc0 ls0 ws0">7.<span class="_ _0"> </span><span class="fs1">56</span></div><div class="t m0 x1 h3 y9 ff1 fs0 fc0 sc0 ls0 ws0">8.<span class="_ _0"> </span><span class="fs1">57 <span class="ff2">&#24369;&#20809;&#24320;&#20851;</span></span></div><div class="t m0 x1 h3 ya ff1 fs0 fc0 sc0 ls0 ws0">9.<span class="_ _0"> </span><span class="fs1">58/59 <span class="ff2">&#28608;&#20809;&#24378;&#24230;</span></span></div><div class="t m0 x1 h3 yb ff1 fs0 fc0 sc0 ls0 ws0">10.<span class="_ _2"> </span><span class="fs1">60 x<span class="_ _1"> </span><span class="ff2">&#36724;&#36895;&#24230;</span></span></div><div class="t m0 x1 h3 yc ff1 fs0 fc0 sc0 ls0 ws0">11.<span class="_ _2"> </span><span class="fs1">61 y<span class="_ _1"> </span><span class="ff2">&#36724;&#36895;&#24230;</span></span></div><div class="t m0 x1 h3 yd ff1 fs0 fc0 sc0 ls0 ws0">12.<span class="_ _2"> </span><span class="fs1">62 <span class="ff2">&#24320;&#22987;&#25171;&#21360;<span class="_ _1"> </span></span>0,57</span></div><div class="t m0 x1 h3 ye ff1 fs0 fc0 sc0 ls0 ws0">13.<span class="_ _2"> </span><span class="fs1">63 <span class="ff2">&#26242;&#20572;</span></span></div><div class="t m0 x1 h3 yf ff1 fs0 fc0 sc0 ls0 ws0">14.<span class="_ _2"> </span><span class="fs1">64 <span class="ff2">&#20572;&#27490;&#26631;&#24535;</span></span></div><div class="t m0 x1 h3 y10 ff1 fs0 fc0 sc0 ls0 ws0">15.<span class="_ _2"> </span><span class="fs1">65</span></div><div class="t m0 x1 h3 y11 ff1 fs0 fc0 sc0 ls0 ws0">16.<span class="_ _2"> </span><span class="fs1">66&#58902;&#58902;<span class="ff2">&#24038;&#21491;&#26631;&#35760;</span></span></div><div class="t m0 x1 h3 y12 ff1 fs0 fc0 sc0 ls0 ws0">17.<span class="_ _2"> </span><span class="fs1">100<span class="_ _1"> </span><span class="ff2">&#24320;&#22987;&#26102;&#28784;&#24230;&#22270;&#25968;&#25454;</span></span></div><div class="t m0 x1 h3 y13 ff1 fs0 fc0 sc0 ls0 ws0">18.<span class="_ _2"> </span><span class="fs1">*/</span></div><div class="t m0 x1 h3 y14 ff1 fs0 fc1 sc0 ls0 ws0">19.</div><div class="t m0 x1 h3 y15 ff1 fs0 fc0 sc0 ls0 ws0">20.<span class="_ _2"> </span><span class="fs1">#include &lt;reg52.h&gt;</span></div><div class="t m0 x1 h3 y16 ff1 fs0 fc0 sc0 ls0 ws0">21.<span class="_ _2"> </span><span class="fs1">#define uint unsigned int</span></div><div class="t m0 x1 h3 y17 ff1 fs0 fc0 sc0 ls0 ws0">22.<span class="_ _2"> </span><span class="fs1">#define uchar unsigned char</span></div><div class="t m0 x1 h3 y18 ff1 fs0 fc0 sc0 ls0 ws0">23.<span class="_ _2"> </span><span class="fs1">#define N z[60]&#58902; &#58902;&#58902; &#58902;&#58902; &#58902;&#58902;&#58902;//X<span class="_ _1"> </span><span class="ff2">&#36895;&#24230;</span></span></div><div class="t m0 x1 h3 y19 ff1 fs0 fc0 sc0 ls0 ws0">24.<span class="_ _2"> </span><span class="fs1">#define M z[61]&#58902; &#58902;&#58902; &#58902;&#58902; &#58902;&#58902;&#58902;//Y<span class="_ _1"> </span><span class="ff2">&#36895;&#24230;</span></span></div><div class="t m0 x1 h3 y1a ff1 fs0 fc0 sc0 ls0 ws0">25.<span class="_ _2"> </span><span class="fs1">sbit a=P1^3;//<span class="ff2">&#27493;&#36827;&#30005;&#26426;&#25509;&#32447;&#23450;&#20041;,,&#31227;&#21160;&#28608;&#20809;&#22836;</span></span></div><div class="t m0 x1 h3 y1b ff1 fs0 fc0 sc0 ls0 ws0">26.<span class="_ _2"> </span><span class="fs1">sbit a_=P1^2;</span></div><div class="t m0 x1 h3 y1c ff1 fs0 fc0 sc0 ls0 ws0">27.<span class="_ _2"> </span><span class="fs1">sbit b=P1^1;</span></div><div class="t m0 x1 h3 y1d ff1 fs0 fc0 sc0 ls0 ws0">28.<span class="_ _2"> </span><span class="fs1">sbit b_=P1^0;</span></div><div class="t m0 x1 h3 y1e ff1 fs0 fc0 sc0 ls0 ws0">29.<span class="_ _2"> </span><span class="fs1">sbit xa=P1^4;</span></div><div class="t m0 x1 h3 y1f ff1 fs0 fc0 sc0 ls0 ws0">30.<span class="_ _2"> </span><span class="fs1">sbit xa_=P1^5;</span></div><div class="t m0 x1 h3 y20 ff1 fs0 fc0 sc0 ls0 ws0">31.<span class="_ _2"> </span><span class="fs1">sbit xb=P1^6;</span></div><div class="t m0 x1 h3 y21 ff1 fs0 fc0 sc0 ls0 ws0">32.<span class="_ _2"> </span><span class="fs1">sbit xb_=P1^7;</span></div><div class="t m0 x1 h3 y22 ff1 fs0 fc0 sc0 ls0 ws0">33.<span class="_ _2"> </span><span class="fs1">/*sbit a=P1^4;//<span class="ff2">&#27493;&#36827;&#30005;&#26426;&#25509;&#32447;&#23450;&#20041;,&#31227;&#21160;&#24213;&#26495;</span></span></div><div class="t m0 x1 h3 y23 ff1 fs0 fc0 sc0 ls0 ws0">34.<span class="_ _2"> </span><span class="fs1">sbit a_=P1^5;</span></div><div class="t m0 x1 h3 y24 ff1 fs0 fc0 sc0 ls0 ws0">35.<span class="_ _2"> </span><span class="fs1">sbit b=P1^6;</span></div><div class="t m0 x1 h3 y25 ff1 fs0 fc0 sc0 ls0 ws0">36.<span class="_ _2"> </span><span class="fs1">sbit b_=P1^7;</span></div><div class="t m0 x1 h3 y26 ff1 fs0 fc0 sc0 ls0 ws0">37.<span class="_ _2"> </span><span class="fs1">sbit xa=P1^3;</span></div><div class="t m0 x1 h3 y27 ff1 fs0 fc0 sc0 ls0 ws0">38.<span class="_ _2"> </span><span class="fs1">sbit xa_=P1^2;</span></div><div class="t m0 x1 h3 y28 ff1 fs0 fc0 sc0 ls0 ws0">39.<span class="_ _2"> </span><span class="fs1">sbit xb=P1^1;</span></div><div class="t m0 x1 h3 y29 ff1 fs0 fc0 sc0 ls0 ws0">40.<span class="_ _2"> </span><span class="fs1">sbit xb_=P1^0;&#58902;&#58902;*/</span></div><div class="t m0 x1 h3 y2a ff1 fs0 fc0 sc0 ls0 ws0">41.<span class="_ _2"> </span><span class="fs1">sbit jg=P2^0;</span></div><div class="t m0 x1 h3 y2b ff1 fs0 fc0 sc0 ls0 ws0">42.<span class="_ _2"> </span><span class="fs1">sbit led=P2^1;//<span class="ff2">&#25351;&#31034;&#28783;</span></span></div><div class="t m0 x1 h3 y2c ff1 fs0 fc0 sc0 ls0 ws0">43.<span class="_ _2"> </span><span class="fs1">uchar xdata z[500]={0};//<span class="ff2">&#32531;&#23384;</span></span></div><div class="t m0 x1 h3 y2d ff1 fs0 fc0 sc0 ls0 ws0">44.<span class="_ _2"> </span><span class="fs1">uchar buff[3];//<span class="ff2">&#20018;&#21475;&#32531;&#23384;</span></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>
评论
    相关推荐