请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:MSP430F413 工具/软件:TI C/C++编译器
如何设置频率。 我需要1个节拍等于1微秒延迟。 我该怎么做。
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.
工具/软件:TI C/C++编译器
如何设置频率。 我需要1个节拍等于1微秒延迟。 我该怎么做。
您好、Ilensys、
对于粗延迟、可以使用__delay_cycles (unsigned long cycles); 函数,参数是周期周期。
_DELAY_CYCLES (10);
如果您需要精确的1ms 延迟、则需要使用计时器来实现它。 为定时器附加一个参考程序:
http://dev.ti.com/tirex/explore/node?node=ABvtsvdBd9aNCX93gnXs6Q__IOGqZri__LATEST
此致
Johnson