EINT0下降沿中断为什么不断产生?
使用2119;
初始化代码:
void EINT01_Init(void)
{
EXTMODE = 0x0d;
EXTPOLAR = 0x00;
VICIntSelect = 0x00000000;
VICVectCntl4 = 0x20|14;
VICVectAddr4 = (int)IRQ_Eint0;
VICIntEnable = 0x00004000;
VICVectCntl5 = 0x20|16;
VICVectAddr5 = (int)IRQ_Eint2;
VICIntEnable = 0x00010000;
VICVectCntl6 = 0x20|17;
VICVectAddr6 = (int)IRQ_Eint3;
VICIntEnable = 0x00020000;
EXTINT = 0x0d;
VICVectAddr = 0x00;
}
中断程序:
void __irq IRQ_Eint0(void)//czd
{
....
EXTINT = 0x01;
VICVectAddr = 0x00;
}
发现只要外部电平从高转为低后,只要低电平保持,就一直在产生中断。请教是什么原因? |