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.

[参考译文] EK-TM4C123GXL:同时使用外设和相应的 GPIO 端口。

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1212987/ek-tm4c123gxl-use-peripherals-and-the-corresponding-gpio-port-at-the-same-time

器件型号:EK-TM4C123GXL

我可以同时使用外设和 GPIO 吗?

例如、我需要计时器 WT5A 并已将其配置为 ADC 触发器。

是否可以配置 GPIO 端口 PD6并将其用作 GPIO 输出?

下一个示例将计时器 WT5B 配置为 OneShoot 计时器。

我可以将 GPIO 端口 PD7配置为输出吗?

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

    您好!

    例如、我需要计时器 WT5A 并已将其配置为 ADC 触发器。

    是否可以配置 GPIO 端口 PD6并将其用作 GPIO 输出?

    [/报价]

    要用作 ADC 触发器、必须将定时器配置为单次触发或周期超时模式。 在这种情况下、不会将 PD6用作捕获/比较/PWM 引脚。 因此、您可以将 PD6用作 GPIO。  

    WT5B 也是如此。