用51单片机设计一个秒表,计时范围从00:00-59:59.答:include<reg51.h>#include "intrins.h"#include "absacc.h"#define uchar unsigned charuchar code ledtab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x40,0xff};//0-9unsigned char sec=0,min=0,scanled;unsigned char key=0,mode,time; unsigned char disdat[4];...
用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 ...
急求!单片机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...