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.

[参考译文] SysConfig:SysConfig 中的 ADC 设置存在故障-- can'' t select a value for VREFHI

Guru**** 2526700 points
Other Parts Discussed in Thread: SYSCONFIG, TMS320F280037

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1225286/sysconfig-bug-in-the-adc-setup-in-sysconfig----can-t-select-a-value-for-vrefhi

器件型号:SysConfig
主题中讨论的其他器件: TMS320F280037

SysConfig 允许您为 ADC 设置基准、但您只能为内部基准指定电压基准。  无法指定外部基准。 在器件驱动程序中、有两个外部电压基准选项:

//*****************************************************************************
//
//! Values that can be passed to ADC_setVREF() and ADC_setOffsetTrimAll() as the
//! \e refVoltage parameter.
//!
//
//*****************************************************************************
typedef enum
{
    ADC_REFERENCE_3_3V = 0U,
    ADC_REFERENCE_2_5V = 1U
} ADC_ReferenceVoltage;

但是、SysConfig 中只能有一个选项:

如果您切换到"内部"参考、您会看到一个用于指定内部参考的选项:

是否有变通办法、使我不必编辑自动生成的文件?

此致

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

    Neil 好、您使用的 SOC 是什么?

    此致、

    Ming

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

    TMS320F280037处理器上的 SOC0。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [quote userid="248859" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1225286/sysconfig-bug-in-the-adc-setup-in-sysconfig----can-t-select-a-value-for-vrefhi 无法指定外部引用。 在设备驱动程序中有两个外部参考电压选项:

    这些是内部电压基准选项。

    1.65乘以2 :),它变成3.3V 选项。 因此、当您选择1.65时、您实际上会选择3.3V。

    外部基准、可以是任何东西... 因此、它不是真正有意义的 SysConfig 选项。 您可以在应用程序 main.c 文件中创建#define 并将其设置为您需要的计算值。

    #define my_external_voltage 1.12

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

    NIMA、

    谢谢你。  我看到在外部模式下使用时、ADC 参考值被该函数忽略。  感谢您指出这一点。

    此致