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.

[参考译文] CC2650MODA:如何从 GPIO 端口读取模拟值?

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1453022/cc2650moda-how-do-i-read-analog-values-from-a-gpio-port

器件型号:CC2650MODA

工具与软件:

如何在 simple peripheral 示例中从 GPIO 端口(例如 DIO11)或类似端口读取模拟值?

我看到 PIN_getInputValue (...) 函数、但返回高电平或低电平(1或0)、我想知道是否可以读取模拟值?

我无法使用传感器控制器、因为它在重新启动后停止工作。 非常感谢您提供任何帮助。

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

    您好!  

    感谢您联系我们。 您的观察结果是正确的、那么引脚驱动器将仅返回引脚的状态(低/高)。 您将需要 ADC 来读取引脚上的模拟值。  

    请参考 TIRTOS 安装中的 ADC 示例。  

    此致、