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.

BQ79656EVM-021: Related to TSREF, and Temperature measurement.

Part Number: BQ79656EVM-021

Hi,

  • I'm using 4 Bq79656 EVM. for cell voltage and temperature monitoring. (without master (BQ79600)).

I am perfectly getting the voltage data from it, but for the temperature measurement, I enabled the TSREF but getting 0 value. (I checked with the multimeter as well it is coming 0V in TSREF pin)

please help me in this.

  • And please let me know the steps need to be followed to collect temperature data from GPIO pins (Hardware and software side as well).
  • What is the multiplier need to be used for ADC conversion as well.

Thanks, and Regards 

Abhaya Raj Mishra 

  •  WriteReg(0, CONTROL2, 0x01, 1, FRMWRT_STK_W); //to enable the TSREF
        delayms(2);
    
        ReadReg(0, TSREF_HI, Tref, 2, 0, FRMWRT_ALL_R);
        uint16 Tref_T = (Tref[0] << 8) | Tref[1];
        //    uint16 Tref_T = (Tref[8+4] << 8) | Tref[8+5];
        printf("\n");
        printf("%d\t",Tref_T);
    
    
        // here abhaya changed 0x41 to 0x09 and enable 2,3,4 GPIO as well//
    
        WriteReg(0, GPIO_CONF1, 0x09, 1, FRMWRT_STK_W); //-   Configure GPIO1 for temperature measurement
        WriteReg(0, GPIO_CONF2, 0x09, 1, FRMWRT_STK_W); //-   Configure GPIO2 for temperature measurement
        WriteReg(0, GPIO_CONF3, 0x09, 1, FRMWRT_STK_W); //-   Configure GPIO3 for temperature measurement
        WriteReg(0, GPIO_CONF4, 0x09, 1, FRMWRT_STK_W); //-   Configure GPIO4 for temperature measurement
    
        WriteReg(0, ADC_CTRL1, 0x06, 1, FRMWRT_STK_W); // - Start Main ADC in continuous run mode
    
    
    
    
        WriteReg(0, OTUT_THRESH, 0xFF, 1, FRMWRT_STK_W);  //
        WriteReg(0, OTUT_CTRL, 0b01, 1, FRMWRT_STK_W); //