标题: 大家来看看 [打印本页]

作者: piao99    时间: 2010-8-13 20:10
标题: 大家来看看

#include<reg51.h>
#include<stdio.h>
Uart_Init();
main();
{    Uart_Init();
     EX0=1;
  EA=1;
  while(1);
}

void int0() interrupt 0 using 0
{    printf("Timer 0 overflow\n");

}


Uart_Init()
{SCON=0x52;
 TMOD=0x20;
 TCON=0x69;
 TH1=0xf3;
}

 

 

 

怎么调试不出来


作者: aphar    时间: 2010-8-28 21:17
判断中断源(RI=1?ORTI=1?),清除中断,(RI和TI不会自动清除,必须手动),个人蹩见。其他原因没细看了。




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1