TMDSCNCD280039C: TMDSCND280039C

Part Number: TMDSCNCD280039C
Other Parts Discussed in Thread: PMP23069

Hi TI support

I am working on PMP23069 TI example code to run our new board design. 

I have question regarding the current sense calibration and calculation, I am not able to understand the AC Inductor current measurement at TOTEMPOLE PMP23069 example code. I am attaching the code below for current sense.

#pragma FUNC_ALWAYS_INLINE(TTPLPFC_read_acReturnCurrent)
static inline void TTPLPFC_read_acReturnCurrent()
{
// TTPLPFC_ac_cur_sensed_pu = (((float32_t)(TTPLPFC_AC_CUR_FB + TTPLPFC_AC_CUR_FB_2 ))
// * 0.5 * TTPLPFC_ADC_PU_SCALE_FACTOR
// - (TTPLPFC_ac_cur_senseOffset_pu)) * -2.0f;//for PMP23031

TTPLPFC_ac_cur_sensed_pu = (((float32_t)(TTPLPFC_AC_CUR_FB + TTPLPFC_AC_CUR_FB_2 ))
* 0.5 * TTPLPFC_ADC_PU_SCALE_FACTOR
- (TTPLPFC_ac_cur_senseOffset_pu)) * -2.0f;//for PMP23069 and PMP41026

}

Where TTPLPFC_AC_CUR_FB and TTPLPFC_AC_CUR_FB_2 is ADC reading, TTPLPFC_ADC_PU_SCALE_FACTOR is 0.000244140625 and TTPLPFC_ac_cur_senseOffset_pu is 0.495.

I want to understand the calculation behind those offset value, scale factor and multiplying with -2.0f. User guide is not very elaborate to understand the concept of measuring the current. Please Guide me here to understand the math behind it.

Thanking you

warm regards

Tenzin Lobsang