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.

TPS2HCS10-Q1: [YURA] How to set register to read ADC?

Part Number: TPS2HCS10-Q1

Tool/software:

Hi, Team

Here is technical question from YURA, Tier1 of HKMC about TPS2HCS10-Q1.

  1. Register setting
    1. DEVICE_SAF. ADC_EN => ON
    2. DIAG_CONFIG_CHx. OL_ON_EN_CHx  => ON
    3. SW_STATE. CHx_ON => ON
    4. Other registers are all default
  2. Connect Electric loader to Vout
  3. And then tried to read ADC from ADC_RESULT_CHx_I.ADC_RESULT_CH2_I 
  • Questions
    • Register (ADC_RESULT_CHx_I.ADC_RESULT_CH2_I) value was NOT updated without switching on "DIAG_CONFIG_CHx.OL_ON_EN_CHx ON"
    • When read Register (ADC_RESULT_CHx_I.ADC_RESULT_CH2_I), ADC data kept updated between 800mA and 2A.
    • If load current is over 2A, DIAG_CONFIG_CHx.OL_ON_EN_CHx switched to OFF state.
    • why did this (DIAG_CONFIG_CHx.OL_ON_EN_CHx) set OFF state in case of >2A?
    • How could customer read ADC even >2A?
    • Is this correct sequence? Do we need to set other register?

  • Luke,

    So you shouldn't have to enable the open load detection for the ADC sensing to work, but one step I see that is missing is clearing the ADC_CONFIG.ADC_ISNS_DIS bit to 0. This will specifically enable the global conversions of the load currents.

    Best Regards,
    Tim

  • I tried changing the ADC_CONFIG.ADC_ISNS_DIS bit to 0 as per the answer, but the problem is not resolved and remains the same.
    Are there any other registers that need to be set?
  • Hello Haejin,

    So the steps you would need to do are:

    • Set the DEVICE_SAF.ADC_EN bit
    • Clear the ADC_CONFIG.ADC_ISNS_DIS bit

    Once you do this, the ADC result will be periodically updated in the TPS2HC10S_ADC_RESULT_CH1_I_REG register.

    I think I see the problem though from your schematic. Your SNS pin is going to system ground, when it should be going to IC ground:

    What is likely happening here is that the internal ADC is trying to use the SNS pin resistor with respect to IC ground, however since the SNS resistor is connected to system ground it is producing erroneous results given the mismatched ground potential.

    Best Regards,

    Tim