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.

AWRL6432BOOST: ADC buffer data size in motion and presence detection demo

Part Number: AWRL6432BOOST

Hello, 

i am reviewing motion and presence detection demo, but  i have a one question.

according to code, adcbuffdata size is numofadcsamples * numRxAntenas * 4 

params->ADCBufData.dataSize = gMmwMssMCB.profileComCfg.h_NumOfAdcSamples * params->ADCBufData.dataProperty.numRxAntennas * 4 ;

(motion_detect.c 1234 line)

i don't understand number 4. 

i saw that adc buffer will be [rxAnt][Sample] by Real int16 in MotionPresenceDetecionDemo_documenatation.

variable is int16 , thus, i think number will be not 4 but 2. 

please share your opinion. 

  • HI, there:

    Yes, it looks wrong. Maybe it meant for total buffer size (including ping and pong buffer below).  The figure comes from figure 16 inside motion and presence detection implementation guide located at C:\ti\MMWAVE_L_SDK_05_03_00_02\docs\MotionPresenceDetectionDemo_documentation.pdf 

    On the other hand, I did not see this params->ADCBufData.dataSize used anywhere else.   Please give me another two days to find more information. 

    Best,

    Zigang

  • HI, there:

    This following line is wrong (from old SDK), and dataSize is not used anywhere.

    params->ADCBufData.dataSize = gMmwMssMCB.profileComCfg.h_NumOfAdcSamples * params->ADCBufData.dataProperty.numRxAntennas * 4 ;

    The EDMA data transfer size is programmed as below inside rangeProcHWA_ConfigEDMA_DataIn().

    //real ADC samples only supported
    bytePerRxChan = DPParams->numAdcSamples * DPParams->numRxAntennas * sizeof(uint16_t);

    Best,

    Zigang