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.

TMS320F280049: Problems with scaling factor of sdfm module using amc3306

Part Number: TMS320F280049

Hello everyone,

i have Problems with using the SDF module of the F280049. I get the wrong results testing (gain error of over 1%) it and i think i might be using the wrong formula to scale it.

The formulas in the datasheet aren´t really helping and i couldn´t find any questions on here where it is discussed.

here is my code:

    FLOAT32_exact result;
     INT32_exact reg=SDFM1.SDDATA1.AsLongWord;
     result=(FLOAT32_exact) reg/2097152.0f*clipping_voltage_mV; //with OSR of 128 and sinc3 maximum possible value is 2,097,152.

     result=result/SD_Module.shunt_voltage_in_mV*SD_Module.rated_ampere;

     return result;

Furthermore if i aplly the clipping voltage of 64mV of the AMC3306, i don´t get the expected result. since the AMC3306 send a complementary bit every 128 clock cycles i would expect the maximum number to be

2,097,152*(127/128), yet the biggest value i get is exactly 2,097,152*(126/128).