我想计算0.5*1500,0.5用IQ12表示则结果为_IQtoF(_IQ(O.5)*1500),因为IQ12范围小,导致结果溢出,怎么办?
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.
我想计算0.5*1500,0.5用IQ12表示则结果为_IQtoF(_IQ(O.5)*1500),因为IQ12范围小,导致结果溢出,怎么办?
IQtoF是指IQ24转到浮点,你应该写成_IQ12toF(_IQ12(0.5*5000)).
参考C:\ti\controlSUITE\libs\math\IQmath\v160\doc路径下IQmath_Quickstart文档中的IQmath Linker Command File Example例子,或者直接参考对应芯片的Linker Command File: C:\ti\controlSUITE\libs\math\IQmath\v160\examples\cmd