Other Parts Discussed in Thread: BQ79616-Q1
Tool/software:
Hi all,
When i connected16 cell battery pack to BQ79656-Q1 I am getting 5.9 v on VC16 and also getting due this OV fault on VC16
and the rest VC1 to VC15 is OK.
Only issue with VC16.
Below is my code configuration
Wake79600(); //send wake ping to bridge device
delayus(3500); //wait tSU(WAKE_SHUT), at least 3.5ms
Wake79600(); //send wake ping to bridge device
delayus(3500); //wait tSU(WAKE_SHUT), at least 3.5ms
//INITIALIZE BQ79616-Q1 STACK
WriteReg(0, CONTROL1, 0x20, 1, FRMWRT_SGL_W); //send wake tone to stack devices
delayms(11.6*TOTALBOARDS); //wake tone duration is ~1.6ms per board + 10ms per board for each device to wake up from shutdown = 11.6ms per 616 board
//AUTO-ADDRESS
AutoAddress(); //auto address sequence
//RESET ANY COMM FAULT CONDITIONS FROM STARTUP
WriteReg(0, FAULT_RST1, 0xFF, 1, FRMWRT_STK_W); //Reset faults on stacked devices
WriteReg(0, FAULT_RST2, 0xFF, 1, FRMWRT_STK_W); //Reset faults on stacked devices
WriteReg(0, Bridge_FAULT_RST, 0x22, 1, FRMWRT_SGL_W); //Reset FAULT_COMM and FAULT_SYS on bridge device
WriteReg(1, CONTROL2, 0x01, 1, FRMWRT_SGL_W); //enable TSREF
delayus(6000);
// GPIO_CONFIG
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);
// NO.of active cell
// WriteReg(0, ACTIVE_CELL, 0x0A, 1, FRMWRT_STK_W);
// otut seting
WriteReg(1,OTUT_THRESH, 0xCA,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(200);
// OVUV_setting
WriteReg(1, OV_THRESH,0x16,1,FRMWRT_SGL_W);
WriteReg(1, UV_THRESH,0x1C,1,FRMWRT_SGL_W);
WriteReg(1, OVUV_CTRL,0x05,1,FRMWRT_SGL_W);
// WriteReg(1,UV_DISABLE1,0xE0,1,FRMWRT_SGL_W);
//ENABLE BQ79616-Q1 MAIN ADC
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(5*TOTALBOARDS + 192);
Please help as soon as possible
Thanks.