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.

[参考译文] BQ76940:BQ76940

Guru**** 2502205 points


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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1556807/bq76940-bq76940

器件型号:BQ76940


工具/软件:

尊敬的团队:  

 

我们 希望使用库仑计数器 (CC) 功能测量电池包电流,但 CC_READY 位未设置, 并将 cc 设置为连续模式。

Write_data=0xFF;
	HAL_I2C_Mem_Write(&hi2c1, 0x08<<1, 0x00, I2C_MEMADD_SIZE_8BIT, &Write_data, 1, 100);  //write all high
	Write_data=0x19;
	HAL_I2C_Mem_Write(&hi2c1, 0x08<<1, 0x0B, I2C_MEMADD_SIZE_8BIT, &Write_data, 1, 100); //initial coulomb counter
//HAL_Delay(20);
	
	HAL_I2C_Mem_Write(&hi2c1, 0x08<<1, 0x01, I2C_MEMADD_SIZE_8BIT, &Write_data, 1, 100);  //cell bal disabled cell 1 to 5
//HAL_Delay(20); 
	HAL_I2C_Mem_Write(&hi2c1, 0x08<<1, 0x02, I2C_MEMADD_SIZE_8BIT, &Write_data, 1, 100); //cell bal disabled cell 6 to 10
//HAL_Delay(20);
	HAL_I2C_Mem_Write(&hi2c1, 0x08<<1, 0x03, I2C_MEMADD_SIZE_8BIT, &Write_data, 1, 100); //cell bal disabled cell 10 to 15
//	HAL_Delay(20);
	adc_en=0x13;
	HAL_I2C_Mem_Write(&hi2c1, 0x08<<1, 0x04, I2C_MEMADD_SIZE_8BIT, &adc_en, 1, 100); //Enable ADC and temperature reading
	cc_en=0x40; //CC EN Continuous reading
	HAL_I2C_Mem_Write(&hi2c1, 0x08<<1, 0x05, I2C_MEMADD_SIZE_8BIT, &cc_en, 1, 100); //Enable voltage and temperature readings
	HAL_Delay(800);
	
	HAL_I2C_Mem_Read(&hi2c1, 0x08<<1, 0x04, I2C_MEMADD_SIZE_8BIT, &adc_en, 1, 100);
//	HAL_Delay(800);
	HAL_I2C_Mem_Read(&hi2c1, 0x08<<1, 0x05, I2C_MEMADD_SIZE_8BIT, &cc_en, 1, 100);
//	HAL_Delay(800);

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

    尊敬的 TI 团队:
    只是一个温柔的提醒这个问题。 我仍然面临这一问题、并希望得到任何指导。
    提前感谢。