Cypress技术论坛
直播中

崔丽

7年用户 231经验值
私信 关注
[问答]

WICED CYW20719-B1如何减少GPIO输出电流泄漏

嗨队,
在配置了GPIO PIN(例如P13)为“GPIOIN输入,使能GPIOOUTPUtiON启用”和默认值设置为“GPIOPIN PosiOutPurthHig”,
然后,另一个MCU尝试控制配置的GPIO并将其作为输入到CYW20719-B1的地面,我们可以发现电流泄漏是~21.5毫安。
太高了。
因此,在不增加任何外部电阻器的情况下,有没有通过在内部配置FW来减少电流泄漏的方法,就像PSoC DO(例如配置为内部上拉输出)一样?
还有一个问题,所有的GPIO都有内拉电阻和下拉电阻吗?如果是的话,这些内部上拉和下拉电阻的确切值是多少?
谢谢,
杜德利

以上来自于百度翻译


     以下为原文
  Hi Team,

After configured a GPIO pin (such as P13) as "GPIO_INPUT_ENABLE | GPIO_OUTPUT_ENABLE" and the default value set to "GPIO_PIN_OUTPUT_HIGH",
then another MCU tried to control the configured GPIO and put it down to the ground as an input to the CYW20719-B1, we can find that the current leak is ~21.5mA.
It's too high.
So, without adding any external resistors, is there any method to reduce the current leak by configuring in the FW internally, just as the PSoC do (such as configured as internal pull up output)?
And one more question, are there pull up and pull down internal resistors for all GPIO? if so, what is the exact value of these internal pull up and pull down resistors?

Thanks,
Dudley

回帖(3)

李兆水

2018-10-11 16:09:55
你不能把针从另一output_enable单片机驱动销。那会毁掉芯片的!

以上来自于百度翻译


     以下为原文
  You cannot set the pin as OUTPUT_ENABLE and drive the pin from another MCU. That is going to destroy the chip!
举报

崔丽

2018-10-11 16:28:09
引用: 烈阳异丙醇 发表于 2018-10-11 15:39
你不能把针从另一output_enable单片机驱动销。那会毁掉芯片的!

以上来自于百度翻译

如果只是设置密码为“gpio_input_enable”,结果都是一样的,电流太高。
我认为,该引脚应该能够被配置为“gpio_input_enable | gpio_output_enable”用于输入和输出,这是一个正常的使用。
谢谢,
杜德利

以上来自于百度翻译


     以下为原文
  If just set the pin as "GPIO_INPUT_ENABLE", the result is same, the current is too high.
And I think, the pin should be able to be configured as "GPIO_INPUT_ENABLE | GPIO_OUTPUT_ENABLE" for both input and output, it's a normal usage.
 
Thanks,
Dudley
举报

刘倩

2018-10-11 16:37:27
是的,有上拉和下拉电阻,可以使用GPIOPULLYLUP或GPIOPULLYWORD宏激活,同时配置GPIO引脚。例如,下面的语句将将端口P30配置为输入引脚,并启用上拉。
WieDeHalgGPIOOXCOMPULION PIN(WICEDEPH P30,GPIOOI输入,使能GPIOOPULLUP UP,GPIOOPIN PUTIOUTPUTHOPHIGH);
还有2个强大的驱动器GPIO互相连接对于这两个设备不是一个好主意。拉起是正确的方法。

以上来自于百度翻译


     以下为原文
  Yes there are Pull Up & Pull Down resistors, that can be activated using the 'GPIO_PULL_UP' or  'GPIO_PULL_DOWN' macros while configuring the GPIO Pin. For E.g. The below statement will configure the port P30 as an Input pin with a Pull Up enabled.
 
wiced_hal_gpio_configure_pin( WICED_P30, GPIO_INPUT_ENABLE | GPIO_PULL_UP , GPIO_PIN_OUTPUT_HIGH);
 
Also having 2 Strong Drive GPIO's connected to each other is not a good idea for both devices. Having the Pull up is the correct method.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分