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.

[参考译文] LP-MSPM0L2228:如何在 SysConfig 中配置多个 ADC 通道?

Guru**** 1828310 points
Other Parts Discussed in Thread: LP-MSPM0L2228, SYSCONFIG, MSPM0L2228
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1426916/lp-mspm0l2228-how-to-configure-multiple-adc-channels-in-sysconfig

器件型号:LP-MSPM0L2228
主题中讨论的其他器件: SysConfigMSPM0L2228

工具与软件:

您好!

我当前正在使用 LP-MSPM0L2228上的"adc_to_uart_lp_MSPM0L2228_nortos_ticlang"示例。 我注意到 SysConfig 中只能配置一个 ADC 通道、尽管它理论上支持多达26个外部通道。 是否需要配置任何其他设置? 谢谢你。

MSPM0L2228

https://www.ti.com/product/MSPM0L2228


此致、

蔡奕迅

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

    尊敬的 EASON:

    请使用下图配置不同频道。

    此致、

    Zoey

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

     Zoey、您好!

    我发现设置输入通道6 / PB19会导致错误、而设置其他输入通道(例如输入通道14 / PA16)不会导致任何问题。 这是由于使用限制还是其他原因造成的?

    [9]Generating Code (adc_to_uart.syscfg)...
    [10]subdir_rules.mk:14: recipe for target 'build-1906488417' failed
    [11]0 error(s), 1 warning(s)
    [12]TypeError: Cannot read properties of undefined (reading '$solution')
    [13]    at printDefine (/home/eason/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/.meta/adc12/ADC12.Board.h.xdt:168:55)
    [14]    at subTemplateFunction (/home/eason/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/.meta/adc12/ADC12.Board.h.xdt:54:13)
    [15]    at /home/eason/ti/sysconfig_1.21.0/dist/webpack:/sysconfig/src/pinmux/services/resources/runtime.ts:116:11
    [16]    at templateFunc (/home/eason/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/.meta/templates/Board.h.xdt:52:10)
    [17]    at func (/home/eason/ti/sysconfig_1.21.0/dist/webpack:/sysconfig/src/pinmux/services/codeGeneration/templateRunner.ts:29:39)
    [18]    at allowPathVisibility (/home/eason/ti/sysconfig_1.21.0/dist/webpack:/sysconfig/src/pinmux/services/pathsVisibility.ts:11:10)
    [19]    at runTemplate (/home/eason/ti/sysconfig_1.21.0/dist/webpack:/sysconfig/src/pinmux/services/codeGeneration/templateRunner.ts:29:13)
    [20]    at t.CodeGenerator.generate (/home/eason/ti/sysconfig_1.21.0/dist/webpack:/sysconfig/src/pinmux/services/codeGeneration/codeGenerator.ts:136:10)
    [21]    at iteratee (/home/eason/ti/sysconfig_1.21.0/dist/webpack:/sysconfig/src/pinmux/services/codeGeneration/codeGenerator.ts:141:26)
    [22]    at Rt (/home/eason/ti/sysconfig_1.21.0/dist/webpack:/sysconfig/node_modules/lodash/lodash.js:653:23)
    [23]gmake: *** [build-1906488417] Error 1
    [24]gmake: Target 'all' not remade because of errors.
    [25]**** Build Finished 

    此致、

    蔡奕迅

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

    尊敬的 EASON:

    这是 SysConfig 的错误、我会将此问题报告给软件团队。

    如果您要使用此信道、请自行编写代码。 您可以复制其他通道的初始化代码、然后请求修改一些...

    此致、

    Zoey