DSPRelated.com
Forums

PING PONG for real time FFT Analyzer

Started by B S April 14, 2011
Hi,

I am working with C6713 DSK and ADS7881 converter. I am trying to make a FFT
analyzer. My project is working fine at the moment but it is lacking with real
time implementation. Now I want to use PING PONG buffer scheme to make it real
time FFT analyzer. My idea is to capture samples in PING buffer and by the time
PONG buffer is filled with new sample compute FFT of data stored in PING buffer
and continue in the same manner.

I did work hard but couldn't figure out how to implement this. I saw some
examples but they are using McBSP which is used for serial interface but ADS7881
has parallel interface with DSK.

I will really appreciate if some one help/guide me how can I do it ?

Thanks in advance.
B S-

> I am working with C6713 DSK and ADS7881 converter. I am trying to make a FFT
> analyzer. My project is working fine at the moment but it is lacking with real
> time implementation. Now I want to use PING PONG buffer scheme to make it real
> time FFT analyzer. My idea is to capture samples in PING buffer and by the time
> PONG buffer is filled with new sample compute FFT of data stored in PING buffer
> and continue in the same manner.
>
> I did work hard but couldn't figure out how to implement this. I saw some
> examples but they are using McBSP which is used for serial interface but ADS7881
> has parallel interface with DSK.
>
> I will really appreciate if some one help/guide me how can I do it ?

I believe Rulf Chassaing's book shows how to do this:

http://books.google.com/books?id=hrlRFMh-dgYC&printsec=frontcover&dq=Chassaing+DSK+C6713&source=bl&ots=oQkf-uKGyG&sig=StRwGcibCrK8rJ03iCvK32vMR6M&hl=en&ei=ZxOuTaLMFIj00gG_tc25Cw&sa=X&oi=book_result&ct=result&resnum=1&vedBgQ6AEwAA#v=snippet&q=ISR&fse

Search for example 6.2, "FFT of a Real-Time Input Signal Using an FFT Function in C". It talks about using an ISR and
circular buffers.

-Jeff

_____________________________________