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.

请教关于IQ格式的表示

Other Parts Discussed in Thread: CONTROLSUITE

请教一个表达式  W=Td*(Rec*3/4095)/(3*T)

其中

0<Td<500

0<Rec<4095

7000<T<8000

请问以下用Q格式表示是否正确:

_iq24  W, dta_u, dta_l;

dta_u = _IQ24mpy(_IQ16toIQ(Tdt),(_IQ24div(_IQ24mpy(_IQ16toIQ(RectfierVoltage ), _IQ16toIQ(3)), _IQ16toIQ(4095)) ));
dta_l = _IQ24mpy(_IQ24mpy(_IQ16toIQ(2),_IQ16toIQ(EvbRegs.T3PR)),_IQ24(3));

W= _IQ24div(dta_u, dta_l);

谢谢 !