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.

请教TI程序AD的一个问题



#ifdef DSP2833x_DEVICE_H
 clarke1.As=((AdcMirror.ADCRESULT1)*0.00024414-offsetA)*2*0.909; // Phase A curr.
 clarke1.Bs=((AdcMirror.ADCRESULT2)*0.00024414-offsetB)*2*0.909; // Phase B curr.
 #endif                     // ((ADCmeas(q12)/2^12)-offset)*2*(3.0/3.3)  

以上的数据格式是不是有问题啊:((AdcMirror.ADCRESULT1)*0.00024414-offsetA)*2*0.909为-1到1,为浮点型,

而clarke1.As,clarke1.Bs为IQ格式,这里是不是需要加一个IO()格式转换呢?请高手为我解答一下!!!