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.

C2000 motor application adc result command line

Hello,

The C2000 motor application example codes have few lines involving reading ADC data, e.g.

vclarke.As = _IQ15toIQ((AdcResult.ADCRESULT0<<3)-_IQ15(0.4939))<<1;  // Phase A voltage

Could anyone explain how the process is made? why do we need to shift the bits in the line?

Thank you.

Jingzhe