Other Parts Discussed in Thread: BQ76952, , BQSTUDIO
Hi
The customer use a 2/3 milliohm resistor between the SRP and SRN pins.
Configure Calibration:Current:CC Gain and Calibration:Current:Capacity Gain according to the BQ769x2 Calibration and OTP Programming Guide.
However, the read resistance value is still the dfault resistance value of 1 milliohm. Is there any configuration required for configuring this register?
The following is a sample configuration code:
/******************************************************************************
* 名 称: bq76952_CURRENT_PARA_CONFIG
* 功 能: 配置CC2电流采集,电阻阻值校准
* 入口参数: 无
* 出口参数: ret_fg:0-配置失败;1—配置成功
*******************************************************************************/
uint8_t bq76952_CURRENT_PARA_CONFIG(void)
{
uint8_t ret_fg = false;
uint8_t u8WriteBuff[40] = {0};
u8WriteBuff[0] = 11;//配置CC Gain, SRP 和 SRN 引脚之间的电阻阻值为2/3mΩ,见datasheet 123页
ret_fg = bq76942_AFE_WRITE_FUNC(MEM_CC_GAIN,1,u8WriteBuff, SUBCOMMAND);
delay_ms(55);
u8WriteBuff[0] = 11;//配置CC Gain, SRP 和 SRN 引脚之间的电阻阻值为2/3mΩ,见datasheet 123页
ret_fg = bq76942_AFE_WRITE_FUNC(MEM_CC_GAIN,1,u8WriteBuff, SUBCOMMAND);
delay_ms(55);
u8WriteBuff[0] = 3345064 & 0xFF;//配置Capacity Gain
u8WriteBuff[1] = (3345064 >>8) & 0xFF;
u8WriteBuff[2] = (3345064 >>16) & 0xFF;
// u8WriteBuff[0] = (3280878 >> 24) & 0xFF;//配置Capacity Gain
// u8WriteBuff[1] = (3280878 >> 16) & 0xFF;
// u8WriteBuff[2] = (3280878 >> 8) & 0xFF;
// u8WriteBuff[3] = 3280878 & 0xFF;
ret_fg &= bq76942_AFE_WRITE_FUNC(MEM_CAPACITY_GAIN,3,u8WriteBuff, SUBCOMMAND);
delay_ms(55);
ret_fg &= bq76942_AFE_WRITE_FUNC(MEM_CAPACITY_GAIN,3,u8WriteBuff, SUBCOMMAND);
delay_ms(55);
return ret_fg;
}
Please help check it.
Thanks
Star