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.

[参考译文] TM4C129ENCPDT:SysTick 配置

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1389190/tm4c129encpdt-systick-configure

器件型号:TM4C129ENCPDT

工具与软件:

我想在我的应用中使用 SysTick 以按顺序等待(它可以是200毫秒、或300毫秒... 具体取决于我的当前应用、即 AT 命令)、以获得特定响应。

我正在使用 TivaWare_C_Series-2.2.0.295和 code compose studio IDE。 到目前为止,我已经使用了下面的,但不能读取 ticks 值. 如何设置节拍值?


int main()

G_ui32SysClock = MAP_SysCtlClockFreqSet ((SYSCTL_XTAL_25MHz |SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_240 )、120000000);
SysTickEnable();
.
.
}

function ()//命令 TimeoutTicks 作为参数传递

   StartTime = SysTickValueGet ();
   while (!found)&&((SysTickValueGet ()-StartTime)<commandTimeoutTicks)
    {

    }

}