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.

[参考译文] TMS320F2800156-Q1:F2800156 AIO 引脚作为模拟引脚

Guru**** 2466550 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1484595/tms320f2800156-q1-f2800156-aio-pin-as-a-analog-pin

器件型号:TMS320F2800156-Q1

工具与软件:

您好!

 目前我们正在研究使用32引脚 F2800156的电机控制器。 在此设计中、我们 使用 AIO 引脚 GPIO242、GPIO224和 GPIO228作为模拟引脚。 根据手册、如果我要以模拟方式激活这些引脚 、则无需进行任何配置。 但它不按预期工作、仍在这里、我 已经按照手册所述尝试清除和设置 GHAMSEL 寄存器、但在两种情况下都不工作。  

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

    Amish、您好!

    您是否在初始化时使用 GPIO_setAnalogMode()函数启用模拟模式? 对于使用 AIO 引脚而言、这一点至关重要。

    此致、
    Masoud