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.

[参考译文] TM4C123GH6PM:我能否问一个有关如何在 TM4C123GH6PM 微控制器的单个序列发生器上对多个 ADC 通道进行编码的问题?

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/986128/tm4c123gh6pm-can-i-ask-a-question-on-how-to-go-about-coding-multiple-adc-channels-on-a-single-sequencer-on-the-tm4c123gh6pm-microcontroller

器件型号:TM4C123GH6PM

我有 TM4C123GH6PM 板、 我想知道如何 使用直接寄存器编码在序列发生器0上对5个 ADC 输入进行编码。 理想情况下、我希望使用引脚 E0-E4

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

    您好!

    如前所述、我们不支持在 E2E :https://e2e.ti.com/support/microcontrollers/other/f/other-microcontrollers-forum/695568/faq-read-before-posting-tm4c-forum-general-guidelines 上进行直接寄存器编码

    您可以使用 TivaWare 来组合一个工作示例、然后查看 TivaWare API 来查找您需要进行的 DRM 调用。 您可以在[安装路径]\TivaWare_C_Series-2.2.0.295\examples\peripheral\ADC 中找到单端示例的起点

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

    那么、您如何不在直接寄存器编码中实现它?

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

    您好!

    使用 single_ended 示例作为基础、但对于要添加的每个通道、您将使用新 的 ADCSequenceStepConfigure API 进行配置。 因此您:

    1) 1) 启用 GPIO

    2) 2)设置 ADC 的 GPIN 引脚类型

    3) 3)配置 ADC 序列

    4) 4)配置每个 ADC 通道

    5) 5)启用 ADC 序列。