|
发表于 2010-4-30 15:29:39
|
显示全部楼层
ADC配置如下:
const unsigned char ADC_ACCESSORYID = 2;
const unsigned char ADC_VCHARGER = 4;
const unsigned char ADC_VISENSE = 5;
const unsigned char ADC_VBAT = 6;
const unsigned char ADC_VBATTMP = ADC_ERR_CHANNEL_NO;
const unsigned char ADC_PCBTMP = ADC_ERR_CHANNEL_NO;
const unsigned char ADC_CHR_USB = ADC_ERR_CHANNEL_NO;
const unsigned char ADC_OTG_VBUS = ADC_ERR_CHANNEL_NO;
ATE校准出数据如下:
===================== Begin Calibration =========================
Battery Slope=427823 ADC offset=-4640885
,Charger Slope=4454293 ADC offset=-1167158144
Check Battey Channel Slop Failed
Check Battery Channel Offset Failed
ADC Calibration current difference 0.594948 Failed, and limit data is 0.040000
ADC Calibration voltage difference 0.085254 Failed, and limit data is 0.040000
ADC Calibration time=3.000000
Actually measurement time=3.000000
GSM/EDGE Cal Total Time = 3.86 (sec)
===============================
Calibration Total Result FAIL
===============================
已解决
原因是CONFIG里BATTERY_CHANNEL与CHARGER_CHANNEL配置错误。 |
|