This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FFT CMSIS always showing zero for non-multiples of fund frequency

Hi all, I am using STM32H7 controller. I have 2 signals one at 50Hz (Fund Frequency) and another one at 175Hz (20% amplitude of 50Hz), My sampling rate is 25600 (About 512 samples / Cycle of fund frequency).

Running 4096 point FFT with 8 cycles of data. as per my sampling rate the frequency spread is 6.25Hz. So Expecting the fund at 8th bin which is coming properly. But expecting 175Hz spectrum at 28th Bin. But 28th bin is always zero. Instead some value is showing at 24th bin and some at 32nd bin. 

Then I tried with 160, 180Hz. But other than 8, 16, 24, 32... all other bins are always zero. 

Can somebody help me on this?. Thanks in advance

0