51單片機C編程(四、定時器秒表數(shù)碼管顯示)
#include
#define uchar unsigned char
#define uint unsingned int
#define LED P0
uchar tab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};//共陽數(shù)碼管數(shù)字碼
uchar num,t,shi,ge;
//----------------子函數(shù)初始化--------------------
void init();
void timer0();
void display();
void delay(uchar);
//-----------------主函數(shù)-------------------
void main()
{
}
//-----------------定時器0初始化-------------------
void init()
{
}
//-----------------計時函數(shù)-------------------
void timer0()
{
}
//-----------------顯示函數(shù)-------------------
void display()
{
}
//-----------------延時函數(shù)-------------------
void delay(uchar x)
{
}
評論