Tool/software: Code Composer Studio
Hi all,
I'm using CFFT_f32s_mag_TMU0 function to calculate the FFT magnitude of a pretty simpe waveform which contains 1Hz and 3Hz components. As attached below, the graph shows a clear result:
And what the function gives me is:
In the function documentation it says:
The output from CFFT_f32s_mag matches the magnitude output from the FFT found in common mathematics software and Code Composer Studio FFT graphs.
But it seems not. So my question is:
- Why the result is inconsistent?
- Why would negeative number appears, since the magnitude should calculate sqrt(Xre[i]2 + Xim[i]2).
Any relpy is appreciated.
Best Regards
Ethan