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.

[参考译文] TMS320F2800137:无法更新寄存器

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1277053/tms320f2800137-not-able-to-update-registers

器件型号:TMS320F2800137

GpioDataRegs.GPADAT.bit.GPIO22=1;
GpioDataRegs.GPADAT.bit.GPIO20=0;
DELAY_US (1000);
GpioDataRegs.GPADAT.bit.GPIO22=0;
GpioDataRegs.GPADAT.bit.GPIO20=1;
DELAY_US (1000);

在上面的代码中、GPIO22正在开启和关闭、但 Gpio22没有、两者都配置为 GPIO 输出。

我看到 GPADAT 在 Gpio22发生了更改、但在 Gpio20发生了更改。

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

    尊敬的 Manoj:

    GPIO20是一个 AGPIO。 您是否已确保将 AGPIO 设置为使用 GPIO 模式? 请参阅下面的数据表。

    此致、

    文斯