用c语言写51单片机的程序,0~99秒的秒表,到99s停止,并且有滴的一声。能帮我写程序吗?
第2个回答 2017-04-19
你好!是用的开发板吗?原理图发一下
相似回答
51单片机的秒表计时器设计,求大神帮忙设计电路图和C语言程序!!答:这个程序可以实现秒的计时,按键控制开始、暂停、清零功能,更多功能自己在看清程序的基础上进行改进。include <reg51.H>sbit P3_5 =P3^5;unsigned char code dispcode[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8, 0x80,0x90,0x88,0x83,0xC6,0xA1,0x86,0x8E,0x00};unsigned char...
51单片机数字秒表的程序 1、能实现0.0到9.9的计数 2、使用数码管显示计...答:sbit LED2=P2^1;sbit LED3=P2^2;sbit LED4=P2^3;sbit P3_5 =P3^5;unsigned char keycnt;unsigned char Tab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};unsigned int counet,second,msecond,minute;void delay(unsigned int m){ unsigned char s;for(;m>0;m--...
单片机秒表计时器c语言程序图 需要图和程序答:sbit sounder=P1^7; //naozhong uint a,b;uchar hour,minu,sec, //时钟 hour0,minu0,sec0, //秒表 hour1,minu1,sec1;h1,h2,m1,m2,s1,s2, //显示位 k,s; //状态转换标志 uchar code select[]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};uchar code table[]...