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.

为什么dsp28335执行速度奇慢!!!!



各位大虾好!

我现在在用28035做步进电机的控制,电机的核心控制代码是放置在epwm的周期中断里的,这个中断时间是设置为60us,结果测试发现60us居然无法完成计算,于是就写了如下的一段测试程序来测试dsp的运行速度。

main()

{

int i;

.

..

...

关闭所有中断;

while(1)

     {

     led_on;

     for(i=0;i<20;i++);

     led_off;     

     }

}

运行程序,进行测试发现led的变化频率为30us左右,为什么会这么慢呢,该芯片采用内部晶振,主频为60m,测试clockout输出波形周期为16.7ns。。。。