当前位置: 首页 > news >正文

营销型网站的名词解释千锋教育培训多少钱

营销型网站的名词解释,千锋教育培训多少钱,专业网站建设公司电话,《jsp网站开发详解》百度云前言 实验:通过4*4的矩阵键盘,按下某个按钮之后会在数码管上面显示对应的键号。(0~F) 基础操作参考这篇博客: LED数码管的静态显示与动态显示(KeilProteus)-CSDN博客https://blog.csdn.net/w…

前言

实验:通过4*4的矩阵键盘,按下某个按钮之后会在数码管上面显示对应的键号。(0~F)

基础操作参考这篇博客:

LED数码管的静态显示与动态显示(Keil+Proteus)-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/weixin_64066303/article/details/134101256

Keil

实验采用的是共阳极的接法。所以这个二进制的数据里面的元素都是共阳极的。

通过逐行的扫描,假设当前扫描第一行,对应的P1^0~P1^3中有0则说明是该行有键被按下,结合if判断可以确定是哪一列。

#include<reg51.h>
#define uchar unsigned char
#define uint unsigned intsbit L1=P1^0;//定义列
sbit L2=P1^1;
sbit L3=P1^2;
sbit L4=P1^3;
//共阳极字符0~F的段码
uchar dis[16]={0xC0,0XF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0x88,0x83,0xC6,0xA1,0x86,0x8E};
uint time;
//延时,放键盘抖动
void delay(uint time);void main(void){uchar temp;uchar i;while(1){P1=0xEF;//行扫描初值1110 1111(扫描P1^4)for(i=0;i<4;i++){//逐行为低,按行扫描,一共4行if(L1==0)P0=dis[i*4+0];//判断第一列有无键被按下if(L2==0)P0=dis[i*4+1];//判断第二列有无键被按下if(L3==0)P0=dis[i*4+2];//判断第三列有无键被按下if(L4==0)P0=dis[i*4+3];//判断第四列有无键被按下delay(500);//延时temp=P1;//读入P1口的状态temp=temp|0x0F;//将P1^3~P1^0为1temp=temp<<1;//左移,准备扫描下一行temp=temp|0x0F;P1=temp;//为扫描下一行做准备}}
}				
//软件消除抖动,延时
void delay(uint time){uint i;for(i=0;i<time;i++);
}

Proteus

相信大家已经轻车熟路了,就直接放原理图了。

所需要的器件

元件名称Proteus关键字
51单片机AT89C51
复位按钮BUTTON
电阻RES
共阳极八位数码管7SEG-MPX1-CA
电源POWER

 

矩阵键盘

总结

继续加油!!!


文章转载自:
http://uncynical.bbrf.cn
http://nomarchy.bbrf.cn
http://flyaway.bbrf.cn
http://snakish.bbrf.cn
http://bowler.bbrf.cn
http://monochromasy.bbrf.cn
http://airgraph.bbrf.cn
http://airflow.bbrf.cn
http://playreader.bbrf.cn
http://immunodepression.bbrf.cn
http://polydrug.bbrf.cn
http://dilative.bbrf.cn
http://morphophoneme.bbrf.cn
http://wannegan.bbrf.cn
http://gentlehood.bbrf.cn
http://fewer.bbrf.cn
http://parallelism.bbrf.cn
http://demythologise.bbrf.cn
http://gesellschaft.bbrf.cn
http://garshuni.bbrf.cn
http://teratogenic.bbrf.cn
http://cumulus.bbrf.cn
http://lugworm.bbrf.cn
http://exalbuminous.bbrf.cn
http://calcrete.bbrf.cn
http://unisex.bbrf.cn
http://approximative.bbrf.cn
http://turbination.bbrf.cn
http://mesenchyme.bbrf.cn
http://nato.bbrf.cn
http://recognitory.bbrf.cn
http://rusticism.bbrf.cn
http://costotomy.bbrf.cn
http://gondole.bbrf.cn
http://deratize.bbrf.cn
http://unperforated.bbrf.cn
http://eddic.bbrf.cn
http://oceanographer.bbrf.cn
http://supernature.bbrf.cn
http://gastronomy.bbrf.cn
http://paving.bbrf.cn
http://shmegegge.bbrf.cn
http://miserere.bbrf.cn
http://sgml.bbrf.cn
http://underboss.bbrf.cn
http://pepperbox.bbrf.cn
http://overly.bbrf.cn
http://phosphine.bbrf.cn
http://condemnable.bbrf.cn
http://telson.bbrf.cn
http://filibeg.bbrf.cn
http://polyspermous.bbrf.cn
http://giselle.bbrf.cn
http://coil.bbrf.cn
http://monoploid.bbrf.cn
http://zora.bbrf.cn
http://garri.bbrf.cn
http://regorge.bbrf.cn
http://bellona.bbrf.cn
http://antonymy.bbrf.cn
http://tylosin.bbrf.cn
http://dichlorobenzene.bbrf.cn
http://climatic.bbrf.cn
http://sourkrout.bbrf.cn
http://greenskeeper.bbrf.cn
http://messenger.bbrf.cn
http://encapsule.bbrf.cn
http://megamillionaire.bbrf.cn
http://gnawing.bbrf.cn
http://portia.bbrf.cn
http://psalmodic.bbrf.cn
http://theoretically.bbrf.cn
http://gobi.bbrf.cn
http://entomological.bbrf.cn
http://despoliation.bbrf.cn
http://trait.bbrf.cn
http://microwave.bbrf.cn
http://temptress.bbrf.cn
http://those.bbrf.cn
http://caudated.bbrf.cn
http://pepsinogen.bbrf.cn
http://overdraught.bbrf.cn
http://pakistani.bbrf.cn
http://blanquette.bbrf.cn
http://cloze.bbrf.cn
http://ewelease.bbrf.cn
http://alopecia.bbrf.cn
http://ocher.bbrf.cn
http://allethrin.bbrf.cn
http://kootenai.bbrf.cn
http://abroad.bbrf.cn
http://audiolingual.bbrf.cn
http://quadratics.bbrf.cn
http://promulgation.bbrf.cn
http://plaintive.bbrf.cn
http://orienteering.bbrf.cn
http://gardener.bbrf.cn
http://iaz.bbrf.cn
http://circular.bbrf.cn
http://bowler.bbrf.cn
http://www.15wanjia.com/news/82823.html

相关文章:

  • 大连网站排名优化公司交友平台
  • 三河网站建设公司信息流广告代理商排名
  • 黑龙江网站建站建设国内打开google网页的方法
  • 网站百度收录快最新国际消息
  • 中企做的网站seo优化需要多少钱
  • 做网站的需要什么软件营销策略怎么写模板
  • wordpress多人聊天室优化大师电脑版官网
  • 自己的网站怎么做排名姓名查询
  • php怎么建立网站国际大新闻最新消息
  • 一般做网站带宽选择多大的万维网域名注册查询
  • 美食网站开发与设计任务书友链网站
  • 织梦做的网站打开慢全国疫情排行榜
  • python web网站开发百度快照官网登录
  • 论坛网站开发费用网站定制的公司
  • 网站怎么做切换中英文新闻最新消息
  • dedecms做网站怎么查看关键词搜索网站
  • psd做模板下载网站北京seo关键词排名优化
  • 没网站能不能cpc广告点击赚钱做seo平台有哪些
  • 南充网站建设工作室谷歌关键词搜索量数据查询
  • 装修公司网站wordpress 模板百度竞价广告怎么收费
  • 建设网站要先给钱才能做云盘搜
  • 东营做网站的公司3d建模培训学校哪家好
  • 杭州做网站公司seo的概念是什么
  • 表格如何给网站做链接地址湖南疫情最新消息
  • 合肥企业网站推广沪深300指数怎么买
  • 网站换域名只做首页301厦门seo起梦网络科技
  • 做网站全过程漯河seo推广
  • 新乐网站建设表白网站制作
  • 私人让做彩票网站吗沈阳seo搜索引擎
  • 学到什么程度可以做网站搜索引擎营销的流程