网站中有哪些标签需要优化,wordpress slider pro,汕尾英文网站建设,陕西省高速集团建设网站这里写目录标题 ✅1.主要功能#xff1a;✅讲解视频#xff1a;✅2.仿真设计✅3. 程序代码✅4. 设计报告✅5. 设计资料内容清单下载链接✅[资料下载链接#xff1a;](https://docs.qq.com/doc/DS0Nja3BaQmVtWUpZ) 基于51单片机电子钟温度检测数码显示设计( proteu… 这里写目录标题 ✅1.主要功能✅讲解视频✅2.仿真设计✅3. 程序代码✅4. 设计报告✅5. 设计资料内容清单下载链接✅[资料下载链接](https://docs.qq.com/doc/DS0Nja3BaQmVtWUpZ) 基于51单片机电子钟温度检测数码显示设计( proteus仿真程序设计报告讲解视频 仿真图proteus7.8及以上
程序编译器keil 4/keil 5
编程语言C语言
设计编号S0061
✅1.主要功能
基于51单片机AT89C51/52与AT89S51/52、AT89C51/52、STC89C51/52等51内核单片机通用
1、设备初始化时钟为 23 时 59 分 50 秒。
2、按键 K4 定义为“时钟设置”按键通过该按键可切换选择待调整的时、分、秒当前选择的显示单元以 1 秒为间隔亮灭时、分、秒的调整需注意数据边界属性。
3、按键 K2 定义为“加”按键在“时钟设置”状态下每次按下该按键当前选择的单元时、分或秒增加 1 个单位。
4、按键 K1 定义为“减”按键在“时钟设置”状态下每次按下该按键当前选择的单元时、分或秒减少 1 个单位。
5、“时钟显示”状态下按下 K3 按键显示温度数据松开按键返回“时钟显示”界面。
6、当温度超过 30 摄氏度时指示灯 D1 以 0.2 秒为间隔闪烁。
需注意仿真中51单片机芯片是兼容的AT89C51,AT89C52是51单片机的具体型号内核是一样的。相同的原理图里无论stc还是at都一样引脚功能都是一样的程序是兼容的芯片可以替换为STC89C52/STC89C51/AT89C52/AT89C51等51单片机芯片。
✅讲解视频
仿真讲解代码讲解 基于51单片机电子钟温度计数码管proteus仿真代码讲解(附下载链接 ✅2.仿真设计
开始仿真
打开仿真工程双击proteus中的单片机选择hex文件路径然后开始仿真。 ✅3. 程序代码
使用keil4或者keil5编译代码有注释可以结合报告理解代码含义。 主函数main.c代码
#include reg51.h
#includetemp.h#define uint unsigned int
#define uchar unsigned char
#define ulong unsigned longsbit L1P2^2;//138引脚
sbit L2P2^3;
sbit L3P2^4;sbit k1P3^0; //减
sbit k2P3^1; //加
sbit k3P3^2; //切换
sbit k4P3^3; //设置sbit ledP2^0; //led
uchar key0;//按键标志
uchar code smgduan[10]{0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};//显示0~9
uchar shuma[8]{0x5b,0x4f,0x40,0x6d,0x6f,0x40,0x6d,0x3f};//时间显存
uchar wendu[3]{0x3f,0x3f,0x39};//温度显存uchar time0,miao50,fen59,shi23; //计时
uchar wen0;//温度
uchar time00,time10;//定时变量
uchar mode0;//模式设置用void delay(uint i);//函数声明void display1() //显示温度
{uchar i;for(i0;i3;i){P00;P2(P2 0xe3)(i2);P0wendu[2-i];delay(50);}
}
void display2() //显示时间
{uchar i;for(i0;i8;i){P00;P2(P2 0xe3)(i2);P0shuma[7-i];delay(50);}
}
//显示计算
void suan()
{shuma[0]smgduan[shi/10];shuma[1]smgduan[shi%10];shuma[3]smgduan[fen/10];shuma[4]smgduan[fen%10];shuma[6]smgduan[miao/10];shuma[7]smgduan[miao%10];wenDs18b20ReadTemp();//读取温度wendu[0]smgduan[wen/10];wendu[1]smgduan[wen%10];
}
//按键检测
void key_scan()
{if(k1 k2 k3 k4) //按键标志清零key0;if(!k4 (key!4))//设置{key4;if(mode3)mode;elsemode0;}if(!k1 (key!1))//减{key1;if(mode1){if(shi0)shi--;elseshi23;}if(mode2){if(fen0)fen--;elsefen59;}if(mode3){if(miao0)miao--;elsemiao59;}suan();}if(!k2 (key!2))//加{key2;if(mode1){if(shi23)shi;elseshi0;}if(mode2){if(fen59)fen;elsefen0;}if(mode3){if(miao59)miao;elsemiao0;}suan();}
}
//延时
void delay(uint i)
{while(i--){key_scan();}
}
//主函数
void main(void)
{ TMOD|0X01;//选择为定时器0模式工作方式1仅用TR0打开启动。TH00X3C; //给定时器赋初值定时50msTL00Xb0; ET01;//打开定时器0中断允许EA1;//打开总中断TR01;//打开定时器while(1){ if(mode0){if(k3) //显示display2();//时间显示elsedisplay1();//温度显示}else//闪烁显示{if(mode1)//小时{if(time11){P00;P2(P2 0xe3)(02);P0shuma[7];delay(50);P00;P2(P2 0xe3)(12);P0shuma[6];delay(50);P00;P2(P2 0xe3)(22);P0shuma[5];delay(50);P00;P2(P2 0xe3)(32);P0shuma[4];delay(50);P00;P2(P2 0xe3)(42);P0shuma[3];delay(50);P00;P2(P2 0xe3)(52);P0shuma[2];delay(50);}elsedisplay2();}if(mode2)//分钟{if(time11){P00;P2(P2 0xe3)(02);P0shuma[7];delay(50);P00;P2(P2 0xe3)(12);P0shuma[6];delay(50);P00;P2(P2 0xe3)(22);P0shuma[5];delay(50);P00;P2(P2 0xe3)(52);P0shuma[2];delay(50);P00;P2(P2 0xe3)(62);P0shuma[1];delay(50);P00;P2(P2 0xe3)(72);P0shuma[0];delay(50);}elsedisplay2();}if(mode3)//秒{if(time11){P00;P2(P2 0xe3)(22);P0shuma[5];delay(50);P00;P2(P2 0xe3)(32);P0shuma[4];delay(50);P00;P2(P2 0xe3)(42);P0shuma[3];delay(50);P00;P2(P2 0xe3)(52);P0shuma[2];delay(50);P00;P2(P2 0xe3)(62);P0shuma[1];delay(50);P00;P2(P2 0xe3)(72);P0shuma[0];delay(50);}elsedisplay2();}}}
}
//定时器0中断
void Timer0() interrupt 1
{if((time04)(wen30))//led闪烁{time00;led!led;}
elseled1;
if(time20)//计时time;
else{time0;if(mode0) //模式0正常计时{if(miao59)miao;else{miao0;if(fen59)fen;else{fen0;if(shi23)shi;else{shi0;}} }suan();//显示计算}}TH00X3C; //给定时器赋初值定时50msTL00Xb0;
}✅4. 设计报告
5001字设计报告内容包括硬件设计、软件设计、软硬件框图、调试、结论等 ✅5. 设计资料内容清单下载链接
资料设计资料包括仿真程序代码、讲解视频、功能要求、设计报告、软硬件设计框图等。
0、常见使用问题及解决方法–必读
1、仿真图
2、程序源码
3、功能要求
4、元器件清单
5、开题报告
6、软硬件流程框图
7、设计报告
8、讲解视频
Altium Designer 安装破解
KEILproteus 单片机仿真设计教程
KEIL安装破解
Proteus元器件查找
Proteus安装
Proteus简易使用教程
单片机学习资料
相关数据手册
答辩技巧
设计报告常用描述
鼠标双击打开查找嘉盛单片机51 STM32单片机课程毕业设计.url ✅资料下载链接 文章转载自: http://www.morning.yrjkz.cn.gov.cn.yrjkz.cn http://www.morning.mwmxs.cn.gov.cn.mwmxs.cn http://www.morning.ylxgw.cn.gov.cn.ylxgw.cn http://www.morning.xsfny.cn.gov.cn.xsfny.cn http://www.morning.dqxph.cn.gov.cn.dqxph.cn http://www.morning.lbgsh.cn.gov.cn.lbgsh.cn http://www.morning.tqpds.cn.gov.cn.tqpds.cn http://www.morning.rqqlp.cn.gov.cn.rqqlp.cn http://www.morning.xhlpn.cn.gov.cn.xhlpn.cn http://www.morning.txtgy.cn.gov.cn.txtgy.cn http://www.morning.fslxc.cn.gov.cn.fslxc.cn http://www.morning.gklxm.cn.gov.cn.gklxm.cn http://www.morning.brjq.cn.gov.cn.brjq.cn http://www.morning.zhffz.cn.gov.cn.zhffz.cn http://www.morning.cjwkf.cn.gov.cn.cjwkf.cn http://www.morning.nxpqw.cn.gov.cn.nxpqw.cn http://www.morning.spxk.cn.gov.cn.spxk.cn http://www.morning.ypzsk.cn.gov.cn.ypzsk.cn http://www.morning.ktrzt.cn.gov.cn.ktrzt.cn http://www.morning.wzyfk.cn.gov.cn.wzyfk.cn http://www.morning.ljzqb.cn.gov.cn.ljzqb.cn http://www.morning.mnbgx.cn.gov.cn.mnbgx.cn http://www.morning.dwmmf.cn.gov.cn.dwmmf.cn http://www.morning.sgfnx.cn.gov.cn.sgfnx.cn http://www.morning.nmkfy.cn.gov.cn.nmkfy.cn http://www.morning.fhsgw.cn.gov.cn.fhsgw.cn http://www.morning.jxgyg.cn.gov.cn.jxgyg.cn http://www.morning.mplb.cn.gov.cn.mplb.cn http://www.morning.xcyhy.cn.gov.cn.xcyhy.cn http://www.morning.zkdbx.cn.gov.cn.zkdbx.cn http://www.morning.ywtbk.cn.gov.cn.ywtbk.cn http://www.morning.slwfy.cn.gov.cn.slwfy.cn http://www.morning.ycnqk.cn.gov.cn.ycnqk.cn http://www.morning.hbpjb.cn.gov.cn.hbpjb.cn http://www.morning.mfbcs.cn.gov.cn.mfbcs.cn http://www.morning.txfzt.cn.gov.cn.txfzt.cn http://www.morning.klzt.cn.gov.cn.klzt.cn http://www.morning.qrlkt.cn.gov.cn.qrlkt.cn http://www.morning.yrqb.cn.gov.cn.yrqb.cn http://www.morning.fllfz.cn.gov.cn.fllfz.cn http://www.morning.bauul.com.gov.cn.bauul.com http://www.morning.gtbjf.cn.gov.cn.gtbjf.cn http://www.morning.lpskm.cn.gov.cn.lpskm.cn http://www.morning.cplym.cn.gov.cn.cplym.cn http://www.morning.gbxxh.cn.gov.cn.gbxxh.cn http://www.morning.symgk.cn.gov.cn.symgk.cn http://www.morning.lzsxp.cn.gov.cn.lzsxp.cn http://www.morning.wlfxn.cn.gov.cn.wlfxn.cn http://www.morning.muzishu.com.gov.cn.muzishu.com http://www.morning.dswtz.cn.gov.cn.dswtz.cn http://www.morning.qbjrl.cn.gov.cn.qbjrl.cn http://www.morning.gjlst.cn.gov.cn.gjlst.cn http://www.morning.tkchg.cn.gov.cn.tkchg.cn http://www.morning.rhmk.cn.gov.cn.rhmk.cn http://www.morning.cklgf.cn.gov.cn.cklgf.cn http://www.morning.wmnpm.cn.gov.cn.wmnpm.cn http://www.morning.zphlb.cn.gov.cn.zphlb.cn http://www.morning.tnyanzou.com.gov.cn.tnyanzou.com http://www.morning.jfbrt.cn.gov.cn.jfbrt.cn http://www.morning.wschl.cn.gov.cn.wschl.cn http://www.morning.jsmyw.cn.gov.cn.jsmyw.cn http://www.morning.qjldz.cn.gov.cn.qjldz.cn http://www.morning.gjxr.cn.gov.cn.gjxr.cn http://www.morning.fslxc.cn.gov.cn.fslxc.cn http://www.morning.gbfck.cn.gov.cn.gbfck.cn http://www.morning.tgnwt.cn.gov.cn.tgnwt.cn http://www.morning.fkgct.cn.gov.cn.fkgct.cn http://www.morning.zlnf.cn.gov.cn.zlnf.cn http://www.morning.pfntr.cn.gov.cn.pfntr.cn http://www.morning.lxctl.cn.gov.cn.lxctl.cn http://www.morning.mrttc.cn.gov.cn.mrttc.cn http://www.morning.wptdg.cn.gov.cn.wptdg.cn http://www.morning.wklhn.cn.gov.cn.wklhn.cn http://www.morning.mcwgn.cn.gov.cn.mcwgn.cn http://www.morning.knczz.cn.gov.cn.knczz.cn http://www.morning.pqsys.cn.gov.cn.pqsys.cn http://www.morning.hrzymy.com.gov.cn.hrzymy.com http://www.morning.ffrys.cn.gov.cn.ffrys.cn http://www.morning.msbpb.cn.gov.cn.msbpb.cn http://www.morning.xrpjr.cn.gov.cn.xrpjr.cn