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.

[参考译文] CC3235SF:使用 Systick 获得精确的延时功能

Guru**** 2553260 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1081043/cc3235sf-get-the-exact-time-delay-function-with-systick

部件号:CC3235SF

大家好,团队

客户提出的问题可能需要您的帮助:

客户希望通过 Systick 获得准确的延迟时间,官方例程是否具有 API 接口? 如果没有,他们应该怎么做才能获得确切的时间延迟?

请帮您检查此案例? 谢谢。

此致,

樱桃

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

    您好,

    系统勾号表示每次勾号有多少 usec。 系统实际上以刻度计算,这是最小的时间分辨率,需要进行转换才能将其转换为时间。

    以 TIRTOS 为例,在*.cfg 文件下将其定义为1000 (每刻度1000 usec)。 请参阅以下内容:

    /*
     * Default value is family dependent. For example, Linux systems often only
     * support a minimum period of 10000 us and multiples of 10000 us.
     * TI platforms have a default of 1000 us.
     */
    Clock.tickPeriod = 1000;

    然后,您应该可以使用作为延迟,但分辨率将为1mSec。

    我可以在 SDK 中找到使用/完成此操作的位置。

    请参阅以获取例如 to_msec()函数或甚至 ClockP_usleep()。

    此致,

    什洛米