我现在出现一个问题,刚刚少入程序时是都正常的,但是运行几天后,出现STAT状态读取一直是0,但是我其他的CELL,温度等信息全都能正常读取到信息,不知道有没有人遇到过。
Star Xu:
您确认一下是否进入保护
user4111495:
回复 Star Xu:
我库仑计数器开到最快,理论上250ms会一次数据出来现在的情况是不库伦计数那一位都是0,导致我电流一直不变。
user4111495:
回复 Star Xu:
我将库仑计数器开到最快,理论上STAT不可能是0,应该是250ms会有一次库伦计数的标志位出来。
Hugo Zhang:
回复 user4111495:
你看看CC_EN bit是否为1?
user4111495:
回复 Hugo Zhang:
此为偶发性现象,初始化时我将CC_EN和CCONESHOT都设置为1了,这样是否会存在隐患?后续读取寄存器时,只有CC_EN为1,ONESHOT因为只有一次,直接没了。
Star Xu:
回复 user4111495:
Coulomb Counter (CC) is an integrating converter and averages over the 250mS integration period only. If the processor Missed an update, the CC value for that specific time frame is lost. The accumulated charge value will be lost in both modes[( ALWAYS ON(CC_EN =1)] or 1- SHOT CC-EN=0, CC-ONESHOT=1 ]. The CC_READY bit needs to be cleared between 2 adjacent CC readings in the 1-SHOT, or it won’t perform another 1-SHOT. In a brief, would NOT recommend the CC to be utilized to capture a “peak event”! Also refer to the app note SLUA775 in the bq76930 product folder. Here on pp 8(section 3), I give a deeper understanding of the embedded Scheduler and the 16-bit ADC.