Hello Guys,
How much time does the IQ() function need? I am using the following code in my program and these 7 lines takes about 20us(verified using oscilloscope and CPU timer).
// Conversion of ADC Values into corresponding Voltage and Current values
U_L2_L1= _IQmpy((_IQ(U_L2_L1_int)+ offset_L2_L1),gain_L2_L1);
U_L3_L2= _IQmpy((_IQ(U_L3_L2_int)+ offset_L3_L2),gain_L3_L2);
U_L1_L3= _IQmpy((_IQ(U_L1_L3_int)+ offset_L1_L3),gain_L1_L3);
U_DC= _IQmpy((_IQ(U_DC_int)),gain_DC); // offset is 0
I_L1= _IQmpy((_IQ(I_L1_int)+ offset_L1),gain_L1);
I_L2= _IQmpy((_IQ(I_L2_int)+ offset_L2),gain_L2);
I_L3= _IQmpy((_IQ(I_L3_int)+ offset_L3),gain_L3);
In the documentation for IQMath Library the time for _IQ() is not available. Also please suggest me an alternative for converting the ADC Register values to Global IQ instead of using _IQ().