Other Parts Discussed in Thread: TMS320F28069, MOTORWARE
Dear TI's experts,
I'm using TMS320F28069 device.
In my project, I use soft lib floating point with runtime support lib without FPU.
I'm trying to use IQ math but I got an error with _IQdiv API:
float a = 0.5f;
float b = 0.3f;
float c = 0.0f;
_iq30 tmp = _IQ30div(_IQ30(a),_IQ30(b));
c = _IQ30toF(tmp);
but when I debug it, I just saw that value of tmp is not correct
tmp long 0.5412080726 (Q-Value(30))
As per I know, it should be 0.5/0.3 = 1.66666
Any recommendation for fixing this issue?
Regards,
Fitz