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.

BQ79654-Q1: When using GPIO as ADC and OTUT inputs getting fluctuating output

Part Number: BQ79654-Q1

Tool/software:

Hi all,

When i am using GPIO as ADC and OTUT inputs getting fluctuating output 

For example f I give 2v as input then I get the output variable like 2v 3v 4v

Please help me 

Below is my configuration 

WriteReg(0,CONTROL2,0X01,1, FRMWRT_ALL_W); //tsref enable

delayus(1500);


WriteReg(1, GPIO_CONF1, 0x09, 1,FRMWRT_SGL_W);
delayus(100);
WriteReg(1, GPIO_CONF2, 0x09, 1, FRMWRT_SGL_W);
delayus(100);
WriteReg(1, GPIO_CONF3, 0x09, 1, FRMWRT_SGL_W);
delayus(100);
WriteReg(1, GPIO_CONF4,0x09, 1,FRMWRT_SGL_W);
delayus(100);

WriteReg(0, ACTIVE_CELL, 0x0A, 1, FRMWRT_SGL_W); //set all cells to active

//
WriteReg(1,OTUT_THRESH, 0xff,1, FRMWRT_SGL_W); //oyut thresold set
WriteReg(1,OTUT_CTRL,0x01,1, FRMWRT_SGL_W); //otut mode
//
WriteReg(1,OTUT_CTRL,0x05,1,FRMWRT_SGL_W); //otut go
delayus(20000);
WriteReg(0, ADC_CTRL1, 0x06, 1, FRMWRT_SGL_W); //continuous run and MAIN_GO
delayus(200);
WriteReg(0, FAULT_RST1, 0x60, 1,FRMWRT_SGL_W);

if my configuration is wrong than give me right configuration