Part Number: LAUNCHXL-F28069M
Tool/software: TI C/C++ Compiler
**************************************************************************************
Uint16 conv[6];
phase_1_gain=3.3f;
phase_2_gain=3.3f;
phase_3_gain=3.3f;
while(1)
{
AdcConversion_run(conv);
phase1_current=(((float)(conv[0]-conv[3]))/4096.0f)*phase_1_gain;
phase3_current=(((float)(conv[1]-conv[4]))/4096.0f)*phase_3_gain;
phase2_current=(((float)(conv[2]-conv[5]))/4096.0f)*phase_2_gain;
}
************************************************************************************************+
The code above with conv={1500,1500,1500,0,0,0} debugging (in Variables or Expressions) gave phase1_current=0.0, phase2_current=0.0 and phase3_current=0.0
Seems that (float)(conv[0]-conv[3]) is equal to 0.0 and must be (float)(1500-0)/4096.0f*3.3f
Please, consult included libraries. Any missing or error in debug?
