请大侠帮忙:一脚收到一触发信号在8角输出自定时0.5秒4096脉宽信号
用过stc15f104,外部中断8次左右就死机了,bug多得很
#include
sfr AUXR =0x8e;
sbit out=P3^3;
sbit test=P3^4;
void main()
{AUXR=0x00;TMOD=0X00; TL0=0XF0;//初值
TH0=0XD8; TR0=1; ET0=1;
out=1;
while(1){if(test)EA=1;else out=1;}
}
void Time0(void ) interrupt 1 using 1
{out=~out;}