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.

Linux/TPS659037: GPADC code to amps

Part Number: TPS659037

Tool/software: Linux

My settings:

GPADC_SMPS_ILMONITOR_EN register value = 0x24 (SMPS_ILMON_EN=1 | SMPS_ILMON_SEL=4 [smps7])

SMPS7 voltage = 1.8 volts

Load on SMPS7 rail = 1000 ohm radial resistor

When SMPS7 is active, the GPADC SW_CONV0 registers report ~ 0x212 (530 decimal)

When SMPS7 is inactive, the GPADC SW_CONV0 register report ~0xe (14 decimal)

Are these values GPDAC codes?

If I plug these values into Equation 1 in the TSP659037 data sheet section 5.3.2.1.3, I end up with:

IL (smps7 active) = IFS0 * (0.129) – IOS0 = 3.958 A * 0.129 – 0.652 A = –0.141 A

IL (smps7 inactive) = IFS0 * (0.00342) – IOS0 = 3.958 A * 0.00342 – 0.652 A = –0.638 A

What am I doing wrong?  I am expecting values close to 0.0018 A and 0 A, respectively, since the voltage is 1.8 volts and the load is 1000 ohms.