單片機籃球計分器程序和仿真圖
(1) 按照題目要求獨立設計系統(tǒng)所需電路,并完成硬件電路的制作及調試。
(2)結合硬件能夠正常計分
2、發(fā)揮部分
三:基本原理與參考框圖
#define uchar unsigned char
uchar code table[10] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
uchar code wei[]={0xfe,0xfd,0xfb,0xf7,0xef,0xbf,0xdf,0x7f};
uchar fen=0,miao=0,yi1=0,yi2=0,er1=0,er2=0;
int a=0,flag=0,temp=0,temp1=0;fangui1=0,fangui2=0;
sbit key1=P1^0;
sbit key2=P1^1;
sbit key3=P1^2;
sbit key4=P1^3;
sbit key5=P1^4;
void delay(uchar z)
void time01()//定時器相關
{
}
display1(void)
{
}
display2()
{
}
void keyboard()
{
}
void jishu()
{
}
void main(void)
{
}
void time0() interrupt 1
評論