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.
烧写blinky_c28程序后,示波器测得LD2的闪烁周期为372ms;而程序中延迟程序为for(delay = 0; delay < 2000000; delay++);根据C28核的主频为150MHz,我想知道如何计算出LD2的闪烁周期啊???麻烦朋友们给指导一下,谢谢了!!!
在CCS上点击菜单view->disassembly 看汇编,对照汇编指令计算每个循环需要的指令周期,再乘上循环次数,得到总共需要的指令周期,最后根据CPU的系统时钟计算时间。
Victor说得对。
您也可以用GPIO在程序开始的时候进行toogle用示波器看,大致估算周期,另外CCv5S中也有估算指令周期的工具,在CCS--》RUN--》中。