I was hoping that there would be some psuedo or example code for the CMSIS generated bit reverse look up tables for the FFTs. I would like to try and extend the FFT to 8k in length. So I am looking at these tables, but can not figure out how they are generated, specifically the tables like armBitRevIndexTable128.
Thanks.
Hi dangould,
First, please clarify that you just want to extend the CMSIS-DSP FFT function to handle 8192 sample length, you are not writing your own FFT function which will be able to handle this longer number of samples.
Doing the bit reversal for the new length is not very hard. The difficulty that you have to resolve in extending an existing FFT function for handling longer data is in the twiddle factors. Problems that may arise include:
I believe that's the problem that you should plan to solve first. After you have crafted your solution you have to weigh the advantages and disadvantages compared to writing a new function. A factor to consider is if your application will only handle the longer number of samples or will still support the shorter FFT lengths.
If you have a bright idea, however, please share it with us. Even if you think your idea is not rigid, fellow members may be able to help polish it.
Regards,
Goodwin