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

Guru**** 2537200 points
Other Parts Discussed in Thread: MSP430FR2355

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/757918/ccs-msp430fr2355-ccs-msp430fr2355

器件型号:MSP430FR2355

工具/软件:Code Composer Studio

    _DELAY_CYCLLES ((unsigned int) 3000 * MCLK_FREQ_MHz);  

我是 msp430fr2355微控制器的初学者、我不明白这行代码是如何工作的。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我假设 MCLK_FREQ_MHz 是以兆赫兹(MHz)为单位计数的 CPU (MCLK)速度。 例如、如果您的 CPU 频率为8MHz、MCLK_FREQ_MHz = 8。

    这也是一微秒(usec)内的 CPU 周期数(MCLK)、因此_delay_cycles (MCLK_FREQ_MHz)将延迟1 us。 延迟3000的时间将持续3000微秒或3毫秒(毫秒)。

    FR2355启动时、它以1MHz 的频率运行。