标题: 单片机可调数字钟闹钟整点报时功能(带Proteus仿真电路图+源码+pcb图) [打印本页]

作者: thomaspang    时间: 2020-1-3 18:07
标题: 单片机可调数字钟闹钟整点报时功能(带Proteus仿真电路图+源码+pcb图)


sbit beep=P2^1;
sbit s2=P1^1;  
sbit s3=P1^2;  
sbit s4=P1^3;  
bit flag;
uchar shi,fen,miao,ri,yue,nin,k;
uchar num,num1,count;
uint i,sh,ge,s,g;
uchar code table[]={"pangchunhuishuai"};
uchar code table1[]={"    00:00:55"};

void delay(uchar time)
{
   uint j;
   for(;time>0;time--)
   for(j=0;j<125;j++);

  }
部分代码,源程序在附件

用1602LCD设计的可调式电子钟.rar

2.2 MB, 下载次数: 84, 下载积分: 黑币 -5






欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1