Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform


Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | FFT code for dsPIC

There are 3 messages in this thread.

You are currently looking at messages 0 to 3.


FFT code for dsPIC - charlyb - 2008-05-10 07:46:00

Hi 

Has anyone written their own fft function for the dsPIC ? (NOT the
supplied library fft).

I need a fft for measuring signal in noise and not being a DSP person
would prefer to implement it rather than write it from scratch. The dsPIC
library scales the data by 1/N which limits the dynamic range of the fft.

I can post scale and run the fft again until I have a usable number - its
just a lot of extra processing.

Thanks in advance.
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: FFT code for dsPIC - steve - 2008-05-10 18:52:00



On May 10, 7:46=A0am, "charlyb" <c...@eca.co.za> wrote:
> Hi
>
> Has anyone written their own fft function for the dsPIC ? (NOT the
> supplied library fft).
>
> I need a fft for measuring signal in noise and not being a DSP person
> would prefer to implement it rather than write it from scratch. The dsPIC
> library scales the data by 1/N which limits the dynamic range of the fft.
>
> I can post scale and run the fft again until I have a usable number - its
> just a lot of extra processing.
>
> Thanks in advance.

you not going to get any more dynamic range unless you use floating
point or 32 bit fixed point FFT
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: FFT code for dsPIC - DigitalSignal - 2008-05-10 19:42:00

I am not sure this is true. Before 32bit fixed point and floating
point DSP were introduced, everybody have to work on 16 bit or even 8
bit processor. Many techniques have been developed to gain high
dynamic range. Among them the most popular one is called block
floating point FFT. This method simply carefully scales each stage of
FFT to maximize its calculation dynamic range. The problem of 1/N is
naturally part of this process. Charlyb, you can find the solution on
older textbooks.

James
www.go-ci.com
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.