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.

[参考译文] MSP430G2553:GPIO 中断被启用时缺少定时器中断

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/986554/msp430g2553-missing-timer-interrupt-when-gpio-interrupt-is-enabled

器件型号:MSP430G2553

您好!

我们正在使用 MSP430G2553 MCU、我们有多种模式、在这些模式下、两个计时器都与 GPIO 中断一起使用。 我们还将 RO_PINOSC_TA0_WDTp (.measGateSource= GATE _WDT_SMCLK、 .accumulationCycles= WDTp_GATE _8192)用于2个按钮。 MCU 使用 TA0作为通用计时器、计时器在每次扫描按钮后加载并启动。 定时器与 SMCLK 一起运行、并且在 ID_3连续模式下运行。

我们还使用 TA0CCR1来生成 PWM (将不同的值加载到 TA0CCR1、设置和清除 GPIO)。 此部件工作正常。  

我们有一种使用 TA1 (时钟为 ACLK、模式为向上计数模式)和 GPIO 中断的模式。 当我们启用该模式并使用不同的值加载 TA1CCR0寄存器时。 GPIO 中断每10ms 触发一次、我们将清除中断标志并更改边沿、我们将重新加载 TA1CCR0寄存 器并在 ISR 中启动计时器、在这种情况下、PWM 不会正确生成。 PWM 输出引脚将在一 段时间内保持高电平或低电平。  

有人能告诉我如何解决这个问题吗?

谢谢、

Sreekanth