为什么我设置了中断,而单片机内部工作不停止呢
#include<reg52.h>#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit led=P1^4;
uchar code num[]={0x28, 0x7E, 0xA2, 0x62, 0x74, 0x61, 0x21, 0x7A, 0x20, 0x60};
void delay(uint x)
{
uchar i;
while(x--)
{
for(i=165;i>0;i--);
}
}
void main()
{ uchar i;
EA=1;
EX0=1;
IT0=0;
led=1;
P2=0x00;
for(i=0;i<10;i++)
{
P0=num[i];
delay(200);
}
}
void exter0() interrupt 0
{
led=0;
}