小弟 设置如下,:
//--------------Timer3----------------------------
T3CON = 0X10;
TR3=0;
TF3 = 0;
TL3 = 0XFF;
TH3 = 0XF0;
IEN1=0X10; //ʹÄܶ¨Ê±Æ÷3ÖжÏ
IEN0=0XA0;
//EA=1;
TR3=1;
-------------------------------------------------
void Timer3Int(void) interrupt 11 using 1
{
TL3 = 0XFF;
TH3 = 0X00;
}
main()中做如下检测:
while(1)
{
while(TF3==1)
{
dsp888(0);//显示0
}
dsp888(1);//显示1
}
为何实现不了切换显示 0 和1 ? 请高手指点,谢谢! |