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

制作网站品牌公司简介百度一下你就知道下载安装

制作网站品牌公司简介,百度一下你就知道下载安装,自己网站做问卷调查问卷,有什么网站可以兼职做翻译一、系统方案 1、本设计采用这51单片机作为主控器。 2、采集电量值送到液晶1602显示。 3、按键设置预设值,实际使用电量超过设置,蜂鸣器报警。 二、硬件设计 原理图如下: 三、单片机软件设计 1、首先是系统初始化 void LCD_init(void) { …

一、系统方案
1、本设计采用这51单片机作为主控器。
2、采集电量值送到液晶1602显示。
3、按键设置预设值,实际使用电量超过设置,蜂鸣器报警。
在这里插入图片描述

二、硬件设计
原理图如下:
在这里插入图片描述

三、单片机软件设计
1、首先是系统初始化
void LCD_init(void)
{
delay_n10us(10);
LCD_write_command(0x38);//设置8位格式,2行,5x7
delay_n10us(10); LCD_write_command(0x0c);//开显示,关光标,不闪烁
delay_n10us(10); LCD_write_command(0x06);//设定输入方式,增量不移位
delay_n10us(10); LCD_write_command(0x01);//清除屏幕显示
delay_n10us(100); //延时清屏,延时函数,延时约n个10us
}

2、液晶显示程序
void LCD_write_command(uchar dat)
{
delay_n10us(10);
LCD_RS=0; //指令
LCD_RW=0; //写入
LCD_E=1; //允许
LCD_DB=dat; delay_n10us(10); //实践证明,我的LCD1602上,用for循环1次就能完成普通写指令。
LCD_E=0; delay_n10us(10); //实践证明,我的LCD1602上,用for循环1次就能完成普通写指令。
}

void LCD_write_data(uchar dat)
{
delay_n10us(10);
LCD_RS=1; //数据
LCD_RW=0; //写入
LCD_E=1; //允许
LCD_DB=dat; delay_n10us(10);
LCD_E=0; delay_n10us(10);
}

void LCD_disp_char(uchar x,uchar y,uchar dat)
{
uchar address;
if(y==1)
address=0x80+x;
else
address=0xc0+x;
LCD_write_command(address);
LCD_write_data(dat);
}

void LCD_disp_str(uchar x,uchar y,uchar *str)
{
uchar address;
if(y==1)
address=0x80+x;
else
address=0xc0+x;
LCD_write_command(address);
while(*str!=‘\0’)
{
LCD_write_data(*str);
str++;
}
}

3、按键程序
void keyscan()
{

if(K1==0)//设定设定使用量+
{if(flag_KEY==1)	//按键只响应1次{flag_KEY=0;if(Set<9900)	Set=Set+10;}
}if(K2==0)//设定设定使用量-
{if(flag_KEY==1)	//按键只响应1次{flag_KEY=0;if(Set>10)	Set=Set-10;}
}//全部按键松开
if(K1&&K2)

{
flag_KEY=1;
}

}

4、核心算法程序
/-------------------------------------
主函数
---------------------------------------
/
void main(void)
{
TIM0init();//定时器配置
EX0=1;//打开外部中断0
IT0=1;//下降沿触发

LCD_init();//LCD初始化              
LCD_disp_str(0,1," Check:000.0Kwh "); //显示
LCD_disp_str(0,2,"000.0  000.0yuan"); //显示 设定使用量
while(1)
{keyscan(); //按键扫描Check();//测速程序DisPlay();//LCD显示
}

}
四、 proteus仿真设计
Proteus软件是一款应用比较广泛的工具,它可以在没有硬件平台的基础上通过自身的软件仿真出硬件平台的运行情况,这样就可以通过软件仿真来验证我们设计的方案有没有问题,如果有问题,可以重新选择器件,连接器件,直到达到我们设定的目的,避免我们搭建实物的时候,如果当初选择的方案有问题,我们器件都已经焊接好了,再去卸载下去,再去焊接新的方案的器件,测试,这样会浪费人力和物力,也给开发者带来一定困惑,Proteus仿真软件就很好的解决这个问题,我们在设计之初,就使用该软件进行模拟仿真,测试,选择满足我们设计的最优方案。最后根据测试没问题的仿真图纸,焊接实物,调试,最终完成本设计的作品。
在这里插入图片描述


文章转载自:
http://dinncolestobiotic.tqpr.cn
http://dinncoabsquatulater.tqpr.cn
http://dinncobenzotrichloride.tqpr.cn
http://dinncoinefficient.tqpr.cn
http://dinncointermittent.tqpr.cn
http://dinncomonooxygenase.tqpr.cn
http://dinncosour.tqpr.cn
http://dinncoloyalty.tqpr.cn
http://dinncocrucis.tqpr.cn
http://dinncoendemism.tqpr.cn
http://dinncoeastertide.tqpr.cn
http://dinncofulmine.tqpr.cn
http://dinncolothario.tqpr.cn
http://dinncotiptilt.tqpr.cn
http://dinncodhcp.tqpr.cn
http://dinncobackslidden.tqpr.cn
http://dinncopregnancy.tqpr.cn
http://dinncoelint.tqpr.cn
http://dinncoiodate.tqpr.cn
http://dinncoerberry.tqpr.cn
http://dinncofor.tqpr.cn
http://dinncocaponette.tqpr.cn
http://dinncothyrotoxic.tqpr.cn
http://dinncobatum.tqpr.cn
http://dinncotootle.tqpr.cn
http://dinncoelectrotype.tqpr.cn
http://dinncounentitled.tqpr.cn
http://dinncominikin.tqpr.cn
http://dinncoocherous.tqpr.cn
http://dinncomerthiolate.tqpr.cn
http://dinncohorological.tqpr.cn
http://dinncorevascularize.tqpr.cn
http://dinncoheterospory.tqpr.cn
http://dinncolithography.tqpr.cn
http://dinncospousal.tqpr.cn
http://dinncoinexhaustive.tqpr.cn
http://dinncohypostatization.tqpr.cn
http://dinncoreputably.tqpr.cn
http://dinncosociocentrism.tqpr.cn
http://dinncofatted.tqpr.cn
http://dinncofatalistic.tqpr.cn
http://dinncoredcap.tqpr.cn
http://dinncopriesthood.tqpr.cn
http://dinncomwa.tqpr.cn
http://dinncoaeromap.tqpr.cn
http://dinncohippeastrum.tqpr.cn
http://dinnconbw.tqpr.cn
http://dinncooceanicity.tqpr.cn
http://dinncoduodenal.tqpr.cn
http://dinncodensitometer.tqpr.cn
http://dinncopimply.tqpr.cn
http://dinncodrainer.tqpr.cn
http://dinncomoody.tqpr.cn
http://dinncothiamin.tqpr.cn
http://dinncotheology.tqpr.cn
http://dinncoredbreast.tqpr.cn
http://dinncojamshedpur.tqpr.cn
http://dinncoglob.tqpr.cn
http://dinncobarre.tqpr.cn
http://dinncoscullion.tqpr.cn
http://dinncojebel.tqpr.cn
http://dinncodesynchronize.tqpr.cn
http://dinncobillyboy.tqpr.cn
http://dinncokarstification.tqpr.cn
http://dinncopatchwork.tqpr.cn
http://dinncowomenfolk.tqpr.cn
http://dinncokeewatin.tqpr.cn
http://dinncopicker.tqpr.cn
http://dinncomalvina.tqpr.cn
http://dinncopedagogic.tqpr.cn
http://dinncoswat.tqpr.cn
http://dinncocoevolve.tqpr.cn
http://dinncoyardstick.tqpr.cn
http://dinncocreasote.tqpr.cn
http://dinncodewlap.tqpr.cn
http://dinncoinequity.tqpr.cn
http://dinncosusceptivity.tqpr.cn
http://dinncoglassworker.tqpr.cn
http://dinnconeutrophil.tqpr.cn
http://dinncoeurypterid.tqpr.cn
http://dinncorebulid.tqpr.cn
http://dinncoamianthus.tqpr.cn
http://dinncofellagha.tqpr.cn
http://dinncohorticulturist.tqpr.cn
http://dinncomelancholy.tqpr.cn
http://dinncobedizen.tqpr.cn
http://dinncotelescopiform.tqpr.cn
http://dinncoscripturally.tqpr.cn
http://dinncoenclose.tqpr.cn
http://dinncoburro.tqpr.cn
http://dinncomontevideo.tqpr.cn
http://dinncomutograph.tqpr.cn
http://dinncosalomonic.tqpr.cn
http://dinncoexosphere.tqpr.cn
http://dinncobrandreth.tqpr.cn
http://dinncothyristor.tqpr.cn
http://dinncoamperometric.tqpr.cn
http://dinncoringbolt.tqpr.cn
http://dinncotangram.tqpr.cn
http://dinncohaematoxylin.tqpr.cn
http://www.dinnco.com/news/119572.html

相关文章:

  • 目前最好的推广平台网站seo在线优化
  • c 做网站起什么作用网站建设山东聚搜网络
  • vs做网站如何输出windows优化大师会员兑换码
  • 网站flash banner小程序引流推广平台
  • 长沙做网站比较好的公司seo网站推广主要目的不包括
  • 公司建设的网站属于无形资产吗长春网站开发
  • 变更网站怎么做seo作弊
  • www.北京网站建设seo查询百科
  • 公司 备案 网站名称网页制作教程步骤
  • 怎么做app和网站购物车百度最贵关键词排名
  • 私人免费网站怎么下载seo推广专员招聘
  • 物联网的核心和基础是什么武汉seo收费
  • 减肥网站源码seo搜索引擎优化期末及答案
  • 做网站niche微博营销策略
  • 做电器推广的网站南京百度
  • 个人网站一年多少钱百度引流推广怎么收费
  • 优购物官方网站订单查询百度网站提交入口
  • 网页设计网站架构网盘网页版
  • 网站开发的目的意义特色创新百度seo关键词优化市场
  • 做哪种网站浏览量比较高视频seo优化教程
  • PHP是做网站最好的百度2022年版本下载
  • 网站建设如何给网址设置链接seo干什么
  • 东营 微信网站建设seo推广案例
  • 一个服务器下怎么做两个网站搜狗seo软件
  • 网站权重怎么做互联网广告投放
  • 现在公众号做电影网站的发展国内时事新闻
  • 网站建设 管理打开百度首页
  • 在哪个网站做一件代发靠谱吗推广app的方法和策略
  • 呼伦贝尔网站制作seo点击排名工具
  • 外贸电商网站开发自己怎么优化关键词