lm3s811例程中的延时程序搞不懂为什么这样写(已解决)

2019-03-24 12:58发布

lm3s811例程中的是这样写的延时voidDelay(unsigned long ulSeconds){    //    // Loop while there are more seconds to wait.    //    while(ulSeconds--)    {        //        // Wait until the SysTick value is less than 1000.        //        while(SysTickValueGet() > 1000)        {        }
        //        // Wait until the SysTick value is greater than 1000.        //        while(SysTickValueGet() < 1000)        {        }    }}为什么要这样写呢,延时的时间是 怎么计算的?程序里有下面这一句SysTickPeriodSet(SysCtlClockGet());那么SysTick的频率是不是跟板上使用的晶振频率一致啊。 [ 本帖最后由 leekuip 于 2012-2-21 13:13 编辑 ] 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
11条回答
leekuip
2019-03-25 14:01
 精彩回答 2  元偷偷看……0人看过

一周热门 更多>

相关问题

    相关文章