Hai everyone,
I am working on a EzDSP-F28335 Evaluation board which is interfaced with an External ADC of 18-bits and an External DAC of 14-bits.
I have to take the ADC outputs, convert to floating-point say A, B, C, D and calculate a factor say
X = ((A-B)*C)-D then pass the X as input to the 14-bit DAC.
Here main task is maintaining precision as well as timings whole process should not take more time to execute and give DAC output.
Now I need a clarity whether going for floating point hardware is better or IQ-Math?
In case of IQ-Math, we can maintain even the least precision but takes more number of cycles to execute the conversions.
In case of floating point hardware, we can complete the process in less time but the values like 10.000002 are considered as 10.0 where I have to loose the precision of final output.
One more help I need is,
When using IQ-Math,
- Aall the variables in "X = ((A-B)*C)-D" are converted from floating point to IQ variables with different Q values(26, 24, 20, 19)
- Using _IQmpy function for multiplication
- The output is defined in Q17 which gets a 32-bit long value in Y.
- I have converted this Y to QN format using _IQtoQ15(Y) function.
But I need to pass only 14-bits to DAC at the same time precision is important.
How can I implement this?
Please help me with this issue as soon as possible.
Thankyou,
Lakshmi.