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.

[参考译文] TM4C1290NCZAD:从 GPIO 输出引脚读取

Guru**** 2501705 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1282893/tm4c1290nczad-reading-from-a-gpio-output-pin

器件型号:TM4C1290NCZAD

您好!

新同事告诉我、当 GPIO 引脚配置为输出时、他如何读取该引脚。 在一个上拉的开漏上能够做到这一点是合理的、但是他似乎只能从一个内部寄存器而不能从引脚读取。

/迈克尔

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

    您好!

     为了读取引脚,您需要通过调用 GPIOPinTypeGPIOInput()将 IO 方向更改为输入。

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

    显然、它可以工作、但它不再是输出。

    /迈克尔