51单片机矩阵键盘数码管

  • x0_929201
    了解作者
  • 188.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-11 03:32
    上传日期
基于51单片机的矩阵键盘程序,数码管显示程序
矩阵键盘数码管.zip
  • 矩阵键盘数码管
  • Last Loaded 51矩阵键盘 数码管.DBK
    98.3KB
  • 数码管1.c
    2.7KB
  • 数码管矩阵键盘.hex
    2.4KB
  • 51矩阵键盘 数码管.PWI
    742B
  • 51矩阵键盘 数码管.DSN
    98.3KB
  • 矩阵键盘数码管.doc
    217KB
内容介绍
<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/626938620990925c0443d2fa/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/626938620990925c0443d2fa/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#30697;&#38453;&#38190;&#30424;&#21644;&#21160;&#24577;&#25968;&#30721;&#31649;&#30340;&#25805;&#20316;</div><div class="t m0 x2 h4 y3 ff2 fs1 fc0 sc1 ls0 ws0">/**** <span class="ff1">&#22836;&#25991;&#20214;&#65292;&#23439;&#23450;&#20041;&#65292;&#20889;&#31243;&#24207;&#21069;&#20808;&#22797;&#21046;&#36827;&#26469;&#22312;&#35828;</span> *******/</div><div class="t m0 x2 h5 y4 ff2 fs1 fc0 sc1 ls0 ws0">#include&lt;REG52.H&gt; </div><div class="t m0 x2 h5 y5 ff2 fs1 fc0 sc1 ls0 ws0">#include&lt;intrins.h&gt;</div><div class="t m0 x2 h5 y6 ff2 fs1 fc0 sc1 ls0 ws0">#define uchar unsigned char </div><div class="t m0 x2 h5 y7 ff2 fs1 fc0 sc1 ls0 ws0">#define uint unsigned int </div><div class="t m0 x2 h4 y8 ff2 fs1 fc0 sc1 ls0 ws0">/*<span class="ff1">&#20301;&#23450;&#20041;</span> <span class="ff1">&#24403;&#35201;&#29992;&#21040;&#20301;&#25805;&#20316;&#26102;&#23601;&#35201;&#29992;&#21040;</span>*/</div><div class="t m0 x2 h5 y9 ff2 fs1 fc0 sc1 ls0 ws0">sbit P24=P2^4;sbit P25=P2^5;sbit P26=P2^6;sbit P27=P2^7;</div><div class="t m0 x2 h4 ya ff2 fs1 fc0 sc1 ls0 ws0">/*<span class="ff1">&#24310;&#26102;&#20989;&#25968;&#65292;&#24310;&#26102;<span class="_ _0"> </span></span>1<span class="_ _0"> </span><span class="ff1">&#27627;&#31186;</span>*/</div><div class="t m0 x2 h5 yb ff2 fs1 fc0 sc1 ls0 ws0">void delay(uint a) </div><div class="t m0 x2 h5 yc ff2 fs1 fc0 sc1 ls0 ws0">{</div><div class="t m0 x3 h5 yd ff2 fs1 fc0 sc1 ls0 ws0">unsigned char j;</div><div class="t m0 x3 h5 ye ff2 fs1 fc0 sc1 ls0 ws0">for(;a&gt;0;a--)</div><div class="t m0 x3 h4 yf ff2 fs1 fc0 sc1 ls0 ws0">for(j=1<span class="_ _1"></span>10;j&gt;0;j--);//<span class="ff1">&#27880;&#24847;&#36825;&#37324;&#30340;&#20998;&#21495;&#23427;&#20195;&#34920;&#19968;&#20010;&#31354;&#35821;&#21477;</span></div><div class="t m0 x2 h5 y10 ff2 fs1 fc0 sc1 ls0 ws0">}<span class="_ _2"> </span> </div><div class="t m0 x2 h4 y11 ff2 fs1 fc0 sc1 ls0 ws0">/***<span class="ff1">&#20989;&#25968;&#21151;&#33021;&#65306;&#21028;&#26029;&#26159;&#21542;&#26377;&#25353;&#38190;&#25353;&#19979;&#65292;&#26377;&#30340;&#35805;&#21017;&#36820;&#22238;<span class="_ _0"> </span></span>1<span class="ff1">&#65292;&#21542;&#21017;&#36820;&#22238;<span class="_ _0"> </span></span>0***/</div><div class="t m0 x2 h5 y12 ff2 fs1 fc0 sc1 ls0 ws0">uchar keypress()</div><div class="t m0 x2 h5 y13 ff2 fs1 fc0 sc1 ls0 ws0">{</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>
评论
    相关推荐