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.

controlsuite的HVACI_Sensorless例程



void C2(void) //  SPARE
//----------------------------------------
{
    DcBusVolt = _IQmpy(_IQ12toIQ(AdcResult.ADCRESULT7),_IQ(1.2625));  // DC Bus voltage meas.
    pi_spd.Ref = DcBusVolt_Ref;
    pi_spd.Fbk = DcBusVolt;
    PI_MACRO(pi_spd);
#define   _IQ12toIQ(A) ((long) (A) << (GLOBAL_Q - 12))

DcBusVolt = _IQmpy(_IQ12toIQ(AdcResult.ADCRESULT7),_IQ(1.2625)); 这个语句的执行过程是什么,将AdcResult.ADCRESULT7左移12位(GLOBAL_Q默认为24),AdcResult.ADCRESULT7左移12位不是0吗?