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.

TIDA-010231: TIDA-010231

Part Number: TIDA-010231

Hello, TI experts.
I have an inquiry while driving the TIDA-010231 project.
The AD_result variable should be the buffer in which the FFT results are updated..

AD_Results  I don't think 1500 bytes are updated at once..
Can't I know the index when the FFT is updated every time and how many bytes of data are updated in AD_result?

The AD_result_idx file..There is no change in the value of the variable.

Please give me an answer to your inquiry.

  • Hi,

    Every call of  of ARC_DoArcDetect() will write one value into AR_Results.
    So every value there represents one FFT of 1024 points.

    Best regards,

    Andreas

  • Thank you for your answer.
    Testing an example results in ARC_DoArcDetect (0) running approximately every 4 msec... If so, is there a flag that shows when ARC_DoArcDetect() is called and FFT is completed and copied to AD_result[]? I can check the variables 1 to 4 below in the example. The update of the value does not fit the cycle.
    I wonder if there is any Flag that can tell when FFT is completed every time.

    ARC_BufferFillFlagCH1 --1
    ARC_Busy -- 2
    ARC_DataBufferFull --3
    DoArcDetectCounter --4

  • Hi,

    Yes, ARC_DoArcDetect() runs every ~4 ms, since 1024 samples are used and it samples at 250 kHz.
    As you can see in arc_main.c you can use ARC_Busy to indicate if ARC_DoArcDetect() is running or not:

    Best regards,

    Andreas