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.

工程移植问题

Other Parts Discussed in Thread: CONTROLSUITE

现想将controlsuite里面的28035的工程,移植到自己的28069板子上,请问怎样从定点DSP工程移植到浮点DSP,应该怎样转换,怎样处理定点DSP里的Q value,像下面这样的语句,应该怎么移植呢,谢谢

_IQ(0.004)

_IQtoIQ15(0.5)

  • shizhong,

              28069本身也是一个定点内核,在运算上比28035多了一个浮点运算单元FPU,如果你要做浮点运算,可以使用这个FPU来做,参照下图设置,然后直接做浮点运算,跟C一样。

              那么28069一样是支持IQmath的,如果你不用FPU,直接把工程移植过去,关于IQmath的运算可以不用改。

  •  

         你好,继续请教一下,是不是如果想使用浮点预算,就添加一个rts2800_fpu32.lib和一个C28x_FPU_FastRTS.lib,再选中fpu32就行了,在程序里就可以直接使用如:

    float u=0.03;float p=0.00012;

    不用添加别的修饰了是吗?

  • shizhong,

          你的理解是完全正确!

    Eric