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.

[参考译文] MSPM0L1227:实现计时器中断

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1492310/mspm0l1227-implement-timer-interrupt

器件型号:MSPM0L1227

工具与软件:

您好!

我的客户现在通过参考计时器中断示例代码中的 IRQHandler (void)、使用 Timer_cc 寄存器来实现计时器中断服务例程。

但是、即使程序在处理中断例程后返回到上一个点、程序也会停止。

是否有任何限制、例如 IRQHandler (void)必须与生成中断处理的程序放在同一源文件中?

谢谢。此致、

英明

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

    是什么例子?

    我看到 timx_timer_mode_periodic_sleep 包含以下行代码:

    > DL_SYSCTL_enableSleepOnExit ();

    如果你已经包括了这一行,你应该删除它;在第一个中断后, main ()将永远不会再次运行。

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

    您好!

    您能否提供代码的相关区域、以便我们了解一下实现情况?

    -Matthew