This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Real time FFT with ADC in ControlSUITE

Hello

I used Real time FFT with ADC project which is in ContorlSUITE

i want to realize FIR filter using FFT with ADC of sine wave

as i know on it, that project has FFT and ADC function. Then FIR filter also

and i make sine wave using by slave module which is function No3

but i dont know how to deliver sine wave which made in slave module to master module.

 

when i observe AdcBuf that is ADC result buffer, it wasn't looked like sine wave... just like some noise...

so i guess sine wave that I generated in slave module doesn't go to master module...

I tried to adjust code that is register about ADC, but i couldn't..

 

if someone knows how to make it works with slave module sine wave, plz let me know your way

  • Hi

    If I understand correctly you are using two similar micros - one master and one slave and the slave will generate your test signal while the master samples it on an ADC channel and does the FIR filtering and then FFT. If your slave has a DAC built in you can generate an analog sine wave, if not you will have to setup an EPWM to generate a square wave on a GPIO pin and then pass it through an external RC filter to get a very crude sine wave.

    If you would just like to test the algorithm Id suggest sending samples of the sine wave across the I2C or UART to the master.