我想自己用单片机读取bq27541,然后用上位机进行校准,不想通过ev2300进行校准!
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.
我校准之后,发现这里面calibration 有数据变化,但是我不知道计算公式, 请问谁能不能提供下思路,电流我知道怎么弄,但是 电压和温度我不知道怎么去做校准
这个参数计算是 有符号的字符型
程序里面应该这样处理
if((calibratetemp1&0x80)==0x80)
{
calibratetemp1=256-calibratetemp1;//如果是E3 那么就256-E3=29
calibratetemp1+=1;
Write_BQ3050(0xaa,0x4C,row2-calibratetemp1);
jianfa=row2-calibratetemp1-check[12]; //这个是校准变量
}
else
{
Write_BQ3050(0xaa,0x4C,calibratetemp1+row2);
jianfa=row2+calibratetemp1-check[12];
}
不过我现在还是不知道CCGAIN和CCDELTA是怎么写进去的,里面既然是非IEEE标准,那么应该有计算公式的