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.

[参考译文] CCS/UCD3138A:有关 GPIO 设置的问题

Guru**** 2466550 points


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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/682569/ccs-ucd3138a-question-about-gpio-setting

器件型号:UCD3138A

工具/软件:Code Composer Studio

如果它没有上拉电阻、并且我希望 GPIO 引脚输出高电平、如何设置 GPIO 寄存器?

下面的代码:

    
   杂项 AnalogRegs.GLBIOOE.ALL = ALERT_GLBIO_bit_MASK;
   杂项 AnalogRegs.GLBIOOD.ALL = 0;  
   杂项 AnalogRegs.GLBION.ALL = ALERT_GLBIO_BIT_MASK;

   杂项 AnalogRegs.GLBIOVAL.ALL = ALERT_GLBIO_BIT_BIT_MASK;

我 发现、如果我不连接上拉电阻、它就无法输出高电平。 为什么? GPIO 引脚是否 没有输出功能?

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

    只有 PMBus_ALERT 和 PMBus_CTRL 引脚是漏极开路、它们需要外部上拉电阻器、所有其他 GPIO 都具有内部上拉电阻器。 您尝试使用 PMBus_ALER 引脚的代码、需要外部上拉。

    此致、

    Bosheng Sun

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

    非常感谢!