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.

[参考译文] MSP432E401Y:使用 MAP_SysCtlDelay

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1458996/msp432e401y-usage-of-map_sysctldelay

器件型号:MSP432E401Y

工具与软件:

团队成员、您好!

使用 Simplelink SDK、MAP_SysCtlDelay 函数执行时钟周期延迟。

您能告诉我们、当系统时钟为120MHz 时、使用 MAP_SysCtlDelay (1000)意味着什么吗?

如果我想给出10ms 的延迟、我必须在 MAP_SysCtlDelay 函数内传递的值是多少?

这里使用的公式是什么?

谢谢你

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [报价用户 id="577647" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1458996/msp432e401y-usage-of-map_sysctldelay "]

    使用 Simplelink SDK、MAP_SysCtlDelay 函数执行时钟周期延迟。

    [报价]

    SysCtlDelay 只分支到自身直到计数到系统时钟周期数量的函数。 执行该函数将需要3个周期。 因此 、如果你指定 SysCtlDelay (1)、那么它将延迟3个系统时钟周期。 如果指定 SysCtlDelay (120000000)、则它将创建3秒延迟。 如果您只需要一秒钟的延迟 、那么您应该指定 SysCtlDelay (120000000 / 3)。 如果你需要10ms、那么你将指定 SysCtlDelay (120000000 / 100 / 3)。