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.

display peak value in the fft code for userexperience demo code

Other Parts Discussed in Thread: MSP430F5438, TIMAC

Hi,

I have gone through the user experience demo source code for msp430f5438 experimenter board.

In that i have run the FFT code and the waveform is coming on the LCD monitor of the board for audio input.

I want to display the values of the peak in the wave form for FFT. when ever the peak changes the value should be changed .

how to go for it.

  • Hi Pratap,

    The FFT results are calculated and displayed in FFTrecorder() inside FFT.c.

    The routine calculates the value and stores them in the array FFT_Image, then uses halLcdImage to display the results in the LCD. 

    The parameters for halLcdImage are: pointer to the array, number of rows, number of columns, start x-coordinate, start y-coordinate.

    So, you can basically change the contents of this array as needed, or use your own array; and then display it in the LCD using this function.

    I'm not sure if this helps, but I hope it points you in the right direction.

    Regards,

    Luis R

  • hi luis,

    i am able to get wave peak as per your suggestions.

    i have i more query.i want to transfer the fft code files to the TIMAC code already given so that i can pass the incoming values at the receiver end as input to the fft file instead of audio input in sample fft code.

    i have added the code to TIMAC with necessary changes .

    currently i am taking audio as input .

    but i am not able to get any waveform.

    i am not able to understand what is happening.

**Attention** This is a public forum