Hot!FFT on dsPIC33EP never works but in FJ yes

Page: < 12 Showing page 2 of 2
Author
timijk
Super Member
  • Total Posts : 1216
  • Reward points : 0
  • Joined: 2007/11/26 00:30:07
  • Location: Taiwan
  • Status: offline
Re: FFT on dsPIC33EP never works but in FJ yes 2018/04/16 18:08:39 (permalink)
0
I tested
 SquareMagnitudeCplx(Muestras_FFT, &vector_complejo[0], &vector_complejo[0].real);

In the simulator, it looks OK.
 
Originally, I probably used wrong data samples,  maybe I was using (real,image) = (Q15(0.5),Q15(0.5)), so the square is the same Q15(0.5).   Q15(0.5) equals Q15(0.5)^2 + Q15(0.5)^2...
 
In the cplxsqrmag.s, it does mention
It is allowed for the source and destination vectors to be the same.

 
So probably you can try it again after you fix your data sampling frequency issues.
#21
David Felipe
New Member
  • Total Posts : 18
  • Reward points : 0
  • Joined: 2018/04/06 11:32:53
  • Location: Colombia
  • Status: offline
Re: FFT on dsPIC33EP never works but in FJ yes 2018/04/18 15:15:54 (permalink)
0
Hello timijk, put the same vector as destination on SquareMagnitudeCplx does not work, and as you said, the function allows that, like in FJ that works ok but in EP not, now the FFT is measuring exactly with the sample frequency fixed! 
#22
Page: < 12 Showing page 2 of 2
Jump to:
© 2018 APG vNext Commercial Version 4.5