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.

[参考译文] TM4C1294NCPDT:将 GPIO 引脚中断配置为最高优先级。

Guru**** 2538960 points
Other Parts Discussed in Thread: TM4C1294NCPDT

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1107150/tm4c1294ncpdt-configure-a-gpio-pin-interrupt-as-the-highest-priority

器件型号:TM4C1294NCPDT

使用 TM4C1294NCPDT -

我必须将 GPIO 引脚中断配置为最高优先级。

我有一个 ADC 处理我置于最低优先级的中断: ADCSequenceConfigure (ADC0_BASE、PD_SAMPLE_SEQ、ADC_TRIGGER_TIMER、3);

我将 GPIO 中断配置为0优先级(最高): IntPrioritySet (INT_QCW_PORT、0x00);

同样重要的是、GPIO 中断也将从正在运行的中断(ADC 或 UART)中调用、但尽管已配置优先级、

在示波器上、我看不到 ADC 停止、并将 CPU 置于最高优先级。

我是否必须配置一些嵌套中断状态?

Maccabi

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Maccabi、您好!

    我想知道您是如何确认 GPIO 中断应该在 ADC 期间触发而不是触发的。 您不会看到"ADC stop"、因为您会看到 ADC 中断处理停止。 GPIO 中断的处理不应花费太多时间。 可能是您尝试观察此行为不够渐进、无法检测到 GPIO 确实中断了 ADC ISR。

    此致、

    Ralph Jacobi