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