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.

[参考译文] TMS320F28069M:如何在 CLA 任务中切换 GPIO

Guru**** 2390735 points
Other Parts Discussed in Thread: TMS320F28069M

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1374326/tms320f28069m-how-to-toggle-gpio-in-cla-tasks

器件型号:TMS320F28069M

工具与软件:

尊敬的 TI 团队:

我正在使用 TMS320F28069M 微控制器进行开发。

我使用 CLA 读取 ADC 数据并将其发送到 CPU。

我曾尝试在 CLA 任务中切换 GPIO。 我未能在 CLA 任务中切换 GPIO。

我的疑问是如何在 CLA 任务中切换 GPIO?

代码 如下所示。


__interrupt void Cla1Task1 ( void )

//局部变量
dummyCounter++;
for (ConversionCount=0;ConversionCount < NUM_DATA_POINTS;ConversionCount++)

VoltageCLA[ConversionCount]= AdcResult。 ADCRESULT1;
}

if (dummyCounter >=10 )

 GpioDataRegs.GPATOGGLE.bit.GPIO17 = 1;
dummyCounter = 0;
}

// for (dummyCounter =0;dummyCounter < 100000;dummyCounter++);
}

提前感谢。

此致

Ram Singh