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:与 TSREF 和温度测量相关。

Guru**** 1144270 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1330649/bq79656evm-021-related-to-tsref-and-temperature-measurement

器件型号:BQ79656EVM-021

您好!

  • 我使用的是4个 Bq79656 EVM。 电池电压和温度监测。 (无主器件(BQ79600))。

我完全从其中获取了电压数据、但在温度测量方面、我启用了 TSREF、但得到的值为0。 (我已使用万用表进行检查、并且 TSREF 引脚的电压为0V)

请帮我解决这个问题。

  • 此外、请告诉我、若要从 GPIO 引脚(也在硬件和软件方面)收集温度数据、需要执行哪些步骤。
  • ADC 转换还需要使用的乘法器。

谢谢。此致、  

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); //