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.

关于用CPU定时计数器测量CLA运行时间的问题?



程序代码

CpuTimer1Regs.TCR.bit.TSS = 0;
for(i=0;i<10000;i++){}
n=CpuTimer1Regs.TIM.all;

test_run();
CpuTimer1Regs.TCR.bit.TSS = 1;
m=CpuTimer1Regs.TIM.all;
m1=(unsigned int)CpuTimer0Regs.TIM.all;

利用定时器1作计数器,n代表for(i=0;i<10000;i++){}所用时常,数值为15312

m=4861将其强制转换成无符号型,其数值m1=65535

这能代表什么?加入CLA的计算,其计数器技术为负值??