TI中文支持网
TI专业的中文技术问题搜集分享网站

BQ40Z50-r3 GPIO LEDCNTLC(Pin22)无法设置

BQ40Z50-R3

设置如下寄存器:

使能GPIO_EN,关闭LED_EN。

Settings-Configuration:

Flag Map Set Up 设置为 0x8434可以在Charging Status在HV状态下将GPIO LEDCNTLA(Pin20引脚)拉高。

Flag Map Set Up 设置为 0x8234可以在Charging Status在HV状态下将GPIO LEDCNTLB(Pin21引脚)拉高。

Flag Map Set Up 设置为0x8634却无法拉高GPIO LEDCNTLC(Pin22引脚),使用GPIO Write() 写入0x0040方式也无法拉高。

请问我该如何做才能控制GPIO LEDCNTLC(Pin22引脚)?

Star Xu:

您好,TRM 有描述GPIO and LED functionality cannot coexist: It is not possible for some pins to function for the
gauge LED operation, while others are used as GPIOs. However, when the pins are used as
GPIOs, the user can attach an LED and control the pin manually using the commands described below
详细请参考TRM Chapter 10
www.ti.com.cn/…/sluubu5a.pdf

,

user6496103:

您好,我以上的描述就在LED_EN关闭,GPIO_EN打开的情况下进行的,现在GPIO LEDCNTLA与GPIO LEDCNTLB均实现了GPIO操作,但GPIO LEDCNTLC的操作无效,想知道这个无效是什么设置引起的。

,

user6496103:

你好,可以回复吗?很急

,

Star Xu:

您好,您需要GPIO实现哪些功能。是不是只有22 pin有问题。

,

user6496103:

是的,只有pin 22 引脚有问题,我们需要外接一个自放电的电路,需要通过状态控制GPIO来打开放电回路,pin20和pin21可正常使用

,

user6496103:

但是我们pin20和pin21用来做LED显示了,所以只有pin22能使用了,但发现pin22设置不了

,

Star Xu:

您好,方便提供您的gg文档吗?

,

user6496103:

可以,请问如何提供?

赞(0)
未经允许不得转载:TI中文支持网 » BQ40Z50-r3 GPIO LEDCNTLC(Pin22)无法设置
分享到: 更多 (0)