程序如下:#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
sbit LED=P0^0;
sbit LED1=P0^1;
void DelayMS(uint x)
{
uchar t;
while(x--)
{
for(t=120;t>0;t--);
}
}
void interrupt_0()interrupt 0
{
LED=~LED;
DelayMS(10);
}
void interrrupt_1()interrupt 1
{
LED1=~LED1;
DelayMS(10);
}
void main()
{
// {
EA=1;
EX0=1;
EX1=1;
IT0=1;
IT1=1;
// }
while(1);
}
問題: 中斷1不能正常工作?求解,問題出在哪!