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.

使用CLA时出现疑问?关于程序的编写?

Other Parts Discussed in Thread: CONTROLSUITE

这是我的project,我的程序思路是这样的,以controlSUITE中的例程Example_2803xClaAdc为基础,在main.c里添加

for(;;)
{
LoopCount++;
for(LoopCount1=0;LoopCount1<20;LoopCount1++)
{
VoltageCLA1[LoopCount1]=AdcResult.ADCRESULT1;
}
}

将ADC采样的结果存入数组VoltageCLA1中,把他和CLA里的数组VoltageCLA作比较,如果两者数组的值都是相等的,

ADC每次采样的值同时赋值给两个数组,则可以说明cpu和CLA是同时读取ADC的值,两者是并行的。

但是我再调试阶段出现CLA中的数组值和CPU数组值不一样。

希望各位TI专家解答