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.

[参考译文] CCS/TMS320F28377S:TMS320F28377S

Guru**** 2477865 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/678865/ccs-tms320f28377s-tms320f28377s

器件型号:TMS320F28377S

工具/软件:Code Composer Studio

通常、可以通过一些方法来测量函数运行周期。 能不能有一种简单而准确的方法来告诉我?

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

    有两种简单而直接的方法来实现这一目的。

    1.在 CCS 中使用配置文件时钟。 (processors.wiki.ti.com/.../Profile_clock_in_CCS )。 如果您要执行简单的线性运算、这将非常有用。 该时钟的每个节拍都是一个 CPU 周期。 按照链接中的说明进行操作。
    2.将 GPIO 设置为在函数调用或操作序列的开始和结束时切换。 使用示波器测量边沿之间的时间。 如果在器件运行时无法访问器件、但可以监控 GPIO 或输出信号、这是检查独立环境中运行情况的好方法。

    可能还有其他一些、但它们似乎足以用于基本的计时检查。

    -Mark