dsp28335外部中断不触发

dsp28335外部中断不触发

此问题尚无答案
All Replies
  • 秀才320分

    PieCtrlRegs.PIECTRL.bit.ENPIE = 1;

    PieCtrlRegs.PIEIER1.bit.INTx4= 1;//外部中断1

    void Exint0_Init(void)
    {
    EALLOW;
    GpioCtrlRegs.GPAMUX2.bit.GPIO30 = 0;
    GpioCtrlRegs.GPADIR.bit.GPIO30= 0;
    GpioCtrlRegs.GPAQSEL2.bit.GPIO30= 0;
    GpioCtrlRegs.GPAPUD.bit.GPIO30=1;
    GpioIntRegs.GPIOXINT1SEL.bit.GPIOSEL = 30;//选择GPIO30为外部输入XINT3输入引脚
    XIntruptRegs.XINT1CR.bit.POLARITY= 0;//下降沿触发中断
    XIntruptRegs.XINT1CR.bit.ENABLE = 1;
    EDIS;
    }

    interrupt void ISRXint0(void)
    {
    PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
    Power_Down.IntFlag=1;
    Power_Down.Counter=0;
    }

  • 秀才320分

     PieVectTable.XINT1 = &ISRXint0;

  • 状元39231分

    一次都进不去吗      检查一下中断对应外设的时钟有没有使能

    TI的忠诚粉丝!

  • 榜眼27571分

    您好,

    相应的中断打开了吗?程序里没看到有:

    IER |= M_INT1;