This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

紧急求助!关于DSP 28335外部中断的困惑!



GPIO23设为外部中断,下降沿触发。进中断后读取GPIO23的状态,但不对!

interrupt void XINT2_ISR( void ) //当开关按下时下降沿触发中断
{

  PIE_CTRL_PieCtrlRegs.PIEACK.all = 0X0001;

  DELAY_US(5000);//延时5ms去抖
  if(GpioDataRegs.GPADAT.bit.GPIO23==0)  //读取IO口的状态
  {

   能进中断,但是这里进不来!是不是低电平检测不到?但是开关已经按下了呀!没弹起也进不来!

  }

}

……