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.

[参考译文] cc3220sf ADCsinglechChannel 组织

Guru**** 2540720 points
Other Parts Discussed in Thread: SYSCONFIG

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

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/954500/cc3220sf-adcsinglechannel-organizaiton

Thread 中讨论的其他器件:SysConfig

*==== ADC ===========
*

/* P59、模拟输入3 */
extern const uint_least8_t CONFIG_ADC_0_const;
#define CONFIG_ADC_0
/* P60、模拟输入4 */
extern const uint_least8_t CONFIG_ADC_1_const;
#define CONFIG_ADC_1
#define CONFIG_TI_DRIVERS_ADC_COUNT 2.

此代码可在 ti_drivers_config.h 文件中找到。 我想知道、当 ADC 通道对应于引脚57至60时、为什么引脚59是 ADC 通道0。 TIA

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

    尊敬的 Derek:

    ti_drivers_config.h 文件仅定义要在应用程序中使用的名称。 默认为 CONFIG_ADC_x、您可以在 SysConfig 中将其设置为任何名称。

    这些值对应于 ADC 配置结构中的实例。 此配置结构在 ti_drivers_config.c 中生成、它在这里配置正确的引脚和 ADC 通道。

    此致、

    Sarah