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.

[参考译文] MSPM0G3519:MSPM0G3519通过 API 读取 GPIO

Guru**** 2459590 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1486690/mspm0g3519-mspm0g3519-reading-gpio-through-api

器件型号:MSPM0G3519

工具与软件:

您好!

我们将通过 API 将 GPIO 读取为输入  

DL_GPIO_initDigitalInputFeatures (CONFIG->pinPortIdx、CONFIG->gpioInversion、DL_GPIO_resistor_pull_up、CONFIG->gpioHysteresis、CONFIG->gpioWakeup);

      }

在 GPIO 之前有一个分压器、在初始化时、GPIO 不会读取高电平输入。 未初始化时、GPIO 读数将按预期变为高电平。  

此外、在初始化时、GPIO 的电流消耗会70 mA 远高于预期。

我们有没有做错什么事? 因为这种行为出乎意料。

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

    您好!

    我不完全了解您的观点。  

    但对于70mA 在单个引脚上的电流消耗。 它可能会使用该高电流损坏引脚。 SDIO 上的最大电流仅为6mA。 在如此高的电流下、可能会限制 GPIO。  

    此致、

    Cash Hao