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.

[参考译文] TMS320F280049C:是否有办法通过 CLB 清除 CLB 输入? 当 CLB 输入为 GPREG 位时。

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1065100/tms320f280049c-is-there-a-way-to-clear-clb-input-by-clb-when-clb-input-is-gpreg-bit

器件型号:TMS320F280049C

当 CLB 计数器等于 match1_var 时、我想清除 CLB "GPREG 位"输入。 我该怎么做?

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

    您好、Alen、


    实现此目的的一个方法是使用高级控制器(HLC)。 在 HLC 中、可以设置在 COUNTER_x.counter_match1上触发的事件。 对于此事件的程序代码、您可以指示它发出中断。 然后、在中断处理程序内的主.c 文件中、您可以使用 driverlib 代码(clb_setGPREG)来清除 GPREG 位。 希望这对您有所帮助。

    此致、

    Peter