手机电池电压校准是咋回事?怎么校准的?
同求大神
ADC的校准
1)根据原理图,对于ADC的校准主要利用了ADC0和ADC3这两个模数转换通道(分别对应电池VBAT和Charge端,其余两个通道的值校准后直接用ADC0的校准参数,不单独做校准。
2)校准的过程:先控制电源供电电压分别为3.4V和4.2V,则可以得到两个对应的ADC值,根据这两组值分别计算出ADC0和ADC3的slop和offset值,知道了slop值和offset值,就可以得到每个输入电压的值。
3)准后的检测:主要检测slop和offset值是否超出范围,还有ADC current limit check
和ADC voltage limit check 两项功能,分别检测通过电阻RESISTANCE的电流,还有在ADC0和ADC3之处得到的电压差。
4)通过检测后就可以把校准参数写到手机里了。
2005-1-25 16:18:36 ================ADC calibration begin =====================
2005-1-25 16:18:36 set Agilent 663x2 set vlotage = 3.4
2005-1-25 16:18:36 set Agilent 663x2 measure vlotage = 3.41122
2005-1-25 16:18:36 BATTERY_ADC_Output[0] = 625.948974609375
2005-1-25 16:18:36 CHARGER_ADC_Output[0] = 624.679016113281
2005-1-25 16:18:36 set Agilent 663x2 set vlotage = 4.2
2005-1-25 16:18:36 set Agilent 663x2 measure vlotage = 4.21372
2005-1-25 16:18:36 BATTERY_ADC_Output[1] = 774.361022949219
2005-1-25 16:18:36 CHARGER_ADC_Output[1] = 772.705017089844
2005-1-25 16:18:36 BATTERY_ADC_Slope = 5407
2005-1-25 16:18:36 BATTERY_ADC_Offset = 26562
2005-1-25 16:18:36 CHARGER_ADC_Slope = 5421
2005-1-25 16:18:36 CHARGER_ADC_Offset = 24620
2005-1-25 16:18:36 Start writting ADC slope and offset to flash
2005-1-25 16:18:37 Target< Write ADC slope and offset to flash ok
2005-1-25 16:18:37 =================ADC calibration end ======================
2005-1-25 16:18:37 ===============ADC current limit check begin =================
2005-1-25 16:18:37 BATTERY_ADC_Output[2] = 774.306030273438
2005-1-25 16:18:37 BATTERY_ADC_Predict_Voltage = 4.21323490142822
2005-1-25 16:18:37 CHARGER_ADC_Output[2] = 772.708984375
2005-1-25 16:18:37 CHARGER_ADC_Predict_Voltage = 4.21347522735596
2005-1-25 16:18:37 PASS : ADC calibration check current difference, difference = 0.000600814819335938
2005-1-25 16:18:37 ==============ADC current limit check end ===================
2005-1-25 16:18:37 ==============ADC voltage limit check begin =================
2005-1-25 16:18:37 set Agilent 663x2 set vlotage = 3.6
2005-1-25 16:18:37 set Agilent 663x2 measure vlotage = 3.61138
2005-1-25 16:18:37 BATTERY_ADC_Output[2] = 662.25
2005-1-25 16:18:37 BATTERY_ADC_Predict_Voltage = 3.6073477268219
2005-1-25 16:18:37 CHARGER_ADC_Output[2] = 660.859985351563
2005-1-25 16:18:37 CHARGER_ADC_Predict_Voltage = 3.60714197158813
2005-1-25 16:18:37 Pass : ADC calibration check battery channel vlotage difference = 0.00403237342834473
2005-1-25 16:18:37 Pass: ADC calibration check slope and offset . BATTERY ADC slope = 5407
min battery ADC slope = 5250
max battery ADC slope = 5550
2005-1-25 16:18:37 ===============ADC voltage limit check end =================
2005-1-25 16:18:39 set Agilent 663x2 set vlotage = 3.8
哥们我这个是MTK 平台的,高通的文档也有说明
很详细,谢谢!
现在多少平台都不校准ADC了,芯片出厂就校准好了
DING-----