Skip to content

Spectrum display Magnify mode = Zoom FFT

DD4WH edited this page Aug 18, 2016 · 22 revisions

Menu Display --> Spectrum Magnify [adjust to the desired magnification] OR

Menu Display --> Spectrum Size [Normal] --> leave Menu and then touch until you reach the desired magnification level

There was a longstanding wish of many mcHF users to be able to see the signals in the spectrum or waterfall display with higher resolution. Clint has provided us with a 2x Magnification mode that doubles the resolution, but in reality the same resolution was used and the points in the display were interpolated. However, the problem remained that it needed more processor power to calculate higher resolution FFTs in order to obtain more resolution.

One solution to this problem is to use a technique that is described by Lyons (2011) as the Zoom FFT.

The Zoom FFT is used when fine-grained spectral resolution is needed within a small portion of a signal´s overall frequency bandwidth range (Lyons 2011), especially when computing resources are low. That is exactly the situation we face when we want to see a small part of the spectrum display of the mcHF, but with high resolution. The Zoom FFT helps us to perform this without having to calculate high order FFTs. It consists of the following components:

  1. complex frequency conversion to baseband
  2. lowpass filtering of the I & Q path
  3. downsampling of I & Q
  4. complex FFT of I & Q

But how can we save processor cycles, if we perform all of these steps instead of just calculating one higher order FFT?

Well, step 1 has already been performed in the mcHF, because we need the frequency conversion for the filtering and demodulation, so this step has already been performed and does not take any additional processor power. For step 2, the decimation lowpass filtering, we use highly efficient cascaded IIR biquad filters that take low processor power. The coefficients have been precalculated, we use four stages with elliptic response for steepest filter response and highest stopband. The following cutoff frequencies are used:

1x magnification = 48kHz spectrum = 24kHz decimation filter in hardware! no software filter. [frequency resolution 187.5Hz]

2x magnification = 24kHz spectrum = 12kHz biquad decimation filter [frequency resolution: 93.8Hz]

4x magnification = 12kHz spectrum = 6kHz biquad decimation filter [frequency resolution: 46.9Hz]

8x magnification = 6kHz spectrum = 3kHz biquad decimation filter [frequency resolution: 23.4Hz]

16x magnification = 3kHz spectrum = 1.5kHz biquad decimation filter [frequency resolution: 11.7Hz]

32x magnification = 1.5kHz spectrum = 750Hz biquad decimation filter [frequency resolution 5.9Hz]

These decimation filters BEFORE the downsampling prevent the production of alias products that could be seen in the spectrum as false signals without audio.

After the decimation filter follows the downsampling which is performed with the built in ARM decimation functions and uses an additional rudimentary FIR decimation filter with 4 taps. These 4 taps have also been precalculated and are switched depending on the magnification.

The downsampled I & Q samples are then processed by the 256-point FFT that feeds the spectrum and waterfall display. The FFT is always a 256-point FFT, but depending on the grade of downsampling the frequency resolution (= bin bandwidth) can be as fine as:

1.5kHz / 256 = 5.9Hz [32 x magnification]

You might wonder why the spectrum and waterfall display have very different speeds depending on the magnification: this is a fundamental property or law of DSP (digital signal processing): when you require more frequency resolution, you need time (and loose time resolution) and vice versa. In terms of downsampling, this means that for high magnification, you need to collect many many samples before you can perform the FFT with that high resolution, so the refreshing of the display happens in long time intervalls when you have high frequency resolution. This is an elementary property of DSP and you have to live with it ;-).

http://www.arc.id.au/ZoomFFT.html

Lyons, R.G. (2011): Understanding Digital Signal Processing. - Pearson, 3rd edition.

Clone this wiki locally