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.

[参考译文] TM4C1290NCPDT:GPIO

Guru**** 2537290 points
Other Parts Discussed in Thread: TM4C1290NCPDT

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1030517/tm4c1290ncpdt-gpio

器件型号:TM4C1290NCPDT

您好!

我使用 TM4C1290NCPDT 定制板进行我们的开发。

PH1与 EEPROM 的写保护引脚连接。 需要在 PH1中写入1以禁用写保护。

GPIOPinTypeGPIOOutput (GPIO_Porth_BASE、GPIO_PIN_1);
GPIOPinWrite (GPIO_Porth_BASE、GPIO_PIN_1、1);

我 已将 PH1配置为输出并将值写入为1、当我读取此引脚时、它始终为0。

注意:我在原理图中注意到、PH1连接了10k 电阻器并接地。 它会有什么影响吗?

请 帮帮我。

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

    Thalapushpam,您好!

    API 的正确用法是:

    GPIOPinWrite(GPIO_PORTH_BASE, GPIO_PIN_1, GPIO_PIN_1);

    您使用它的方式将切换引脚0、而不是引脚1。 有一个使用的掩码、因此您需要使用 GPIO_PIN_X 来打开引脚。 0将关闭它。

    此致、

    Ralph Jacobi