Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You don't need to know about twiddle factors or coefficients to run an FFT. Microchip has a free library for many of the common DSP tasks. Just call the appropriate function.
FFT is in: **broken link removed**
Whole bunch of other libraries: **broken link removed**
TwidFactorInit (LOG2_BLOCK_LENGTH, &twiddleFactors[0], 0); /* We need to do this only once at start-up */
Whether you want to understand what they are is up to you, you can generate them with the following line or use a lookup table in program memory (table available in link following).
Code:TwidFactorInit (LOG2_BLOCK_LENGTH, &twiddleFactors[0], 0); /* We need to do this only once at start-up */
Have a look at some of their example code (e.g. https://ww1.microchip.com/downloads/en/DeviceDoc/CE018_FFT_DSPlib_101007.zip). You can use the above function to create them in RAM, or you could have them defined in program memory (see twiddleFactors.c in the above .zip).