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: GETTING WRONG RESULTS

Part Number: BQ79654-Q1

HI all,

i am configuring GPIO of BQ79654-Q1 IC as ADC input and OTUT input.

but i am getting error :- protectors will flag all OT and UT faults on all GPIO inputs as an indication of abnormal detection

my code is below


WriteReg(1,CONTROL2,0X01,1, FRMWRT_SGL_W); //tsref enable
delayus(1500);

//ENABLE GPIO AS ADC AND OTUT

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(1, ACTIVE_CELL, 0x0A, 1, FRMWRT_SGL_W); //set all cells to active
WriteReg(1, ADC_CTRL1, 0x06, 1, FRMWRT_SGL_W); //continuous run and MAIN_GO
delayus(200);

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

Plese help me .

Thanks 

  • Sudhir,

    It is odd that both OT and UT faults are being triggered for all of the GPIO pins. To be clear, are you reading 0xFF from both FAULT_OT and FAULT_UT registers? That might indicate that the value of the GPIO registers is fluctuating a lot, triggering both OT and UT faults. What do you read from the GPIO*_HI/LO registers? Is it what you are expecting? And if you clear the fault using FAULT_RST1/2 does it come back or does it only happen once?

    Regards,

    Ben 

  • Hi Benjamin 

    after clear the fault using FAULT_RST1 its working fine.

    Thanks