Tool/software: Code Composer Studio
Hello,
I am going through an example code for the XM3 3-phase Inverter (CRD300DA12E-XM3) and I am not sure why two lines are being used to obtain the currents or voltages in the main program. I am posting two lines from the example below. Any explanation will be appreciated. Thank you.
VoltageMsgData[0] = (int16_t)getVoltageA()>>8; //Vsense-A
VoltageMsgData[1] = (int16_t)getVoltageA();