14.08.2013 Views

Fast Fourier Transforms on Motorola's Digital Signal Processors

Fast Fourier Transforms on Motorola's Digital Signal Processors

Fast Fourier Transforms on Motorola's Digital Signal Processors

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FFT program executi<strong>on</strong> or data acquisiti<strong>on</strong>), has to<br />

wait for the other <strong>on</strong>e to finish its task. Thus, two<br />

data buffers, plus synchr<strong>on</strong>izati<strong>on</strong> between the program<br />

executi<strong>on</strong> and data acquisiti<strong>on</strong> is required to<br />

implement the real-time FFT. This is also called<br />

double buffering. The following secti<strong>on</strong>s present the<br />

I/O peripherals <strong>on</strong> the DSP56001/2 and the<br />

DSP96002, and show examples of how to set up<br />

these peripherals for real-time data acquisiti<strong>on</strong>.<br />

6.5.1 <str<strong>on</strong>g>Fast</str<strong>on</strong>g> Interrupt <strong>on</strong> DSP56001 for<br />

Real-Time FFT Data Acquisiti<strong>on</strong><br />

Figure 6-7 shows a scheme for double buffering.<br />

Two memory spaces are exclusively assigned to an<br />

FFT program. The FFT program will not start until<br />

<strong>on</strong>e of two buffers is full. The loaded buffer will not<br />

be loaded with data again unless the FFT has finished<br />

its executi<strong>on</strong> <strong>on</strong> the buffer.<br />

P = program X = real data<br />

<str<strong>on</strong>g>Fast</str<strong>on</strong>g> interrupt<br />

FFT program<br />

Buffer 1<br />

Buffer 2<br />

Y = imaginary data<br />

Figure 6-7 Double buffering input data so that<br />

data input can work with the FFT<br />

program c<strong>on</strong>currently<br />

MOTOROLA 6-21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!