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.

TMS320F280025C: FFT Scaling Issue

Part Number: TMS320F280025C

Hello,

I am working on the FFT calculation in order to measure the Harmonics. The issue I am facing is regarding the realization of the Harmonic magnitude as per my input.

Since ADC expects no negative value therefore I have added a DC-offset of 1volt to a 50Hz Sine wave of 1 Volt peak.

To explain it I am attaching results of the two sample tests conducted:

  1. The first column shows, the ADC values;
  2. The second column shows, the volts in the converted analogue voltage;
  3. The third column shows, the computed FFT from the RFFT.32mag function;
  4. The fourth column shows, the data conversion of output to Q30,
  5. The fifth column shows, since the input is scaled down by 16 so the output of Q30 is scaled (multiplied by 16);
  6. The sixth column shows, since the output is squared magnitude so we take the square root of it and,
  7. The seventh column shows, then we multiply it by 2 since the FFT is a mirror spectrum.    

Now the queries:

Q1. I provided a DC offset of 1v but I got 1.23v at the output?

Q2. Since my harmonic value shall be 1volts instead of 1.23v (as marked) in both the tests conducted, I don't understand what I am doing wrong in order to calculate the right harmonic amplitudes?

-----------

Q3. I provided a DC offset of 1.5v but I got 1.83v at the output?

Q4. Since my harmonic value shall be 1volts instead of 1.23v (as marked) in both the tests conducted, I don't understand what I am doing wrong in order to calculate the right harmonic amplitudes?

--------

Q5. I provided a DC offset of 1.5v but I got 1.84v at the output?

Q6. Since my harmonic value shall be 0.5volts instead of 0.617v (as marked) in both the tests conducted, I don't understand what I am doing wrong in order to calculate the right harmonic amplitudes?

Please let me know. Looking forward to hearing from you soon.
Thank you.