单片机智能秒表 ,怎么写程序啊?答:include<reg52.h> code char tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};code char tab1[]={0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd, 0x87,0xff,0xef};sbit key1=P1^0;sbit key2=P1^1;sbit key3=P1^2;sbit key4=P1^3;sbit key5=P1^4;sbit beep=...
51单片机数字秒表的程序 1、能实现0.0到9.9的计数 2、使用数码管显示计...答:include<reg52.h> sbit LED1=P2^0;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...
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...
单片机编程问题,编写一个秒表答:include<reg51.h>#define uchar unsigned char;uchar distab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; //0到fuchar number,sec,cnt;sbit keya=P1^0;sbit keyb=P1^1;void t0isr() interrupt 1{TH0=(65536-5000)/256...
单片机秒表设计(含按键,中断,定时器等)答:include<reg52.h> define uint unsigned int /*int code table[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0x88,0x83,0xC6,0xA1,0x84,0x0E};*/ /*uint code table[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,...
急求!单片机99秒表课程设计,回答的好追加!答:include<reg52.h> define uchar unsigned char define uint unsigned int uchar code table[10] = {0x03, 0x9f, 0x25, 0x0d, 0x99, 0x49, 0x41, 0x1f, 0x01, 0x09};//数码管显示代码 uchar num,aa;void delay(){ uint x,y;for(x=20;x>0;x--)for(y=30;y>0;y--);} voi...