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.

storing received values using TIMAC in an array and perform FFT?

Other Parts Discussed in Thread: TIMAC, CC2520, MSP430F5438A

hi,

i am using TIMAC for sensor data transfer.at the receiver side i am collecting the data in :

pData->dataInd.msdu.p[4]

now i have stored these values in another array which is  to be passed to  a FFT function (256 pts) and graph displayed on lcd 

i am using the FFT code from userexperience demo example as the source. 

can u suggest how to proceed?

thank  u.

  • hi,

    i am able to perform  FFT at the receiver side of TIMAC node

    but one problem is i am getting the peak after considerable amt of delay.sometimes 10 secs on the lcd.

    hardware used is experimenter board with (msp430f5438a+cc2520) controller and transceiver.

    At the transmitter side  the adc(12 bit) code is as such:

    P7SEL |= BIT5;
    P7DIR &= ~BIT5;

    UCSCTL8 |= MODOSCREQEN ; //5MHZ

    ADC12CTL0 &= ~ADC12ENC; // Disable conversion
    ADC12CTL0 = ADC12ON + ADC12SHT02 + ADC12MSC;
    ADC12CTL1 = ADC12CSTARTADD_1 + ADC12SHP + ADC12CONSEQ_2 + ADC12SSEL_1;
    ADC12CTL2 = ADC12RES_2;

    ADC12MCTL1 = ADC12INCH_13; //select channel 13(pin 7.5)

    ADC12IE = 0x00;

    __delay_cycles(200000); // Allowing reference voltage to stabilize

    At the receiver side for FFT i am using code from userexperience demo program for TI-MSP430f5438 experimenter board.

    plz suggest.

    thank you.

  • Hi,

    Please characterize and break down the timing as whether this delay is because of stack operations (ie TI-MAC SW) or on the application code that uses the MAC stack so we can dispatch the thread more properly.

    This forum is about TI-MAC SW.

    For application code using MSP430 SW or resources, I would recommend you post your queries here: http://e2e.ti.com/support/microcontrollers/msp430/default.aspx

    Thanks,

    TheDarkSide 

  • Hi,this delay is because of application code that uses the MAC stack.

    thanks

    pratap