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/TMS320F28335:CCS/TMS320F28335

Guru**** 2581345 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/727973/ccs-tms320f28335-ccs-tms320f28335

器件型号:TMS320F28335
主题中讨论的其他器件:C2000WARE

工具/软件:Code Composer Studio

我想在特定的时间打开和关闭 GPIO、我想使用延迟环路()、但我不知道如何执行或声明该指令、如何使用它? 或者有人有相关的代码吗?

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

    是否要使用 delay_US()? 或其他延迟方法?

    假设您要使用 delay_US(),则可以在 C2000Ware 中查看 sci_autobaud 示例(位于 device_support\f2833x\examples\sci_autobaud 下)。 您将看到、在 Example_2833xSci_Autobaud.c 中、有一个线路 DELAY_US (280000L)、它会创建一个持续280000微秒的延迟环路。

    要使用 DELAY_US()、您需要#include DSP2833x_Examples.h (DSP28x_Project.h 已#included)并将 DSP2833x_usDelay.asm 文件添加到您的项目中。

    惠特尼

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

    好的、谢谢、我会尝试