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.

28034 xint3无法进入



我在手册上看到这个说明只针对XINT1和XINT2,那么XINT3也是使用gpio0~31的吗?

我把GPIO24作为XINT2的输入可以正常触发中断,但是作为XINT3的输入就不行了。

中断配置如下:

void Init_interrupt(void)

{

EALLOW;

PieCtrlRegs.PIEIER1.bit.INTx7 = 1;

IER | =M_INT1;

PieCtrlRegs.PIEIER1.bit.INTx1 = 1;

IER | =M_INT1;

PieCtrlRegs.PIEIER1.bit.INTx4 = 1;

PieCtrlRegs.PIEIER1.bit.INTx5 = 1;

IER | =M_INT1;

PieCtrlRegs.PIEIER12.bit.INTx1 = 1;

IER | =M_INT12;

PieCtrlRegs.PIECTRL.bit.ENPIE= 1;

EDIS;

}

  • 图在SPRUI10的136页第一个表
  • 你好,XINT1~3都是可以使用GPIO0~31的,但XINT2在有些地方会有不同,比如
    Table 1-89中介绍:
    To use XINT2 as ADC start of conversion, enable it in the desired ADCSOCxCTL register.
    The ADCSOC signal is always rising edge sensitive.
    8.2 Features中介绍:ADC模块的多种触发源
    Multiple trigger sources
    – S/W - software immediate start
    – ePWM 1-7
    – GPIO XINT2
    – CPU Timers 0/1/2
    – ADCINT1/2