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.

AWR2544LOPEVM: 12-bit Data Streaming via mmWave Studio

Part Number: AWR2544LOPEVM
Other Parts Discussed in Thread: AWR2544

Tool/software:

Hi,

I’m using mmWave Studio to connect the EVM to the DCA and save data to my computer over Ethernet.

On the DCA, I see options for 12/14/16-bit data output. I need to stream 12-bit data, but so far I’ve only been successful with 16-bit.

Is it possible to stream 12-bit data? Am I missing something in the mmWave Studio configuration?

Thanks,
Shlomi

  • Hi Shlomi,

    You can change the number of ADC bits in the Static config tab of mmWave Studio -

    Regards,

    Samhitha

  • Hi, 

    I have already configured this setting, when I run with 16bits it's successfully creates a bin file, when I try to run with 12/14 bits no bin file is created.

    Data is 12bit but probably streaming out 16bit via ethernet, can I control the number of bits streaming via ethernet?

    Can you help with this issue?

    Thanks, 

    Shlomi

  • Hi Shlomi,

    Can you share the mmWave Studio output log?

    Regards,

    Samhitha

  • Hi, 

    The log is simillar in both 12 and 16 bit configurations, despite the option of the adc config that you mentioned in the picture above and SW1 on the DCA that switched to 12bit.

    Somehow 16bit works, it creates the correct bin file, and 12bit don't even create the file.

    Can you confirm that DCA1000 can stream 12bit via ethernet?

    Thanks, 

    Shlomi

  • Hi Shlomi,

    Can you confirm that DCA1000 can stream 12bit via ethernet?

    You should be able to capture 12 bit ADC data using DCA1000. 

    The log is simillar in both 12 and 16 bit configurations, despite the option of the adc config that you mentioned in the picture above and SW1 on the DCA that switched to 12bit.

    Did you click set after changing the number of ADC bits in ADC config?

    Regards,

    Samhitha

  • Hi,

    Thanks for the follow-up. I'm not a beginner—I'm using a LUA script for configuration, and I've confirmed that the setting is being applied correctly by checking the relevant tab in the studio.

    Could you please share a sample LUA script with a random configuration that is known to enable 12-bit streaming? I want to make sure I'm setting it up correctly.

    Just to clarify, I understand that the data might be sampled at 12 bits, but it seems that the data streamed over Ethernet and stored on the PC is in 16-bit format. I need to understand how to control or change the bit-depth of the data that's actually streamed via Ethernet.

    Thanks, 

    Shlomi

  • Hi Shlomi,

    Here is a lua script that you can use -

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/1023/adc_5F00_12bit.lua

    Regards,

    Samhitha

  • Hi Samhitha,

    Thanks for sharing the LUA script. I found the issue — the CaptureCardConfig_Mode was set to (1, 2, 1, 2, 3, 30) instead of 1.

    Currently, BIN files are being successfully created for both 12-bit and 16-bit settings. However, the file sizes are identical and match exactly the expected size for 16-bit data. Based on this, I suspect that the LVDS is indeed streaming 12-bit data, but the Ethernet interface is padding or aligning it to 16-bit before streaming and storing it on the PC.

    Is there any way to configure the Ethernet streaming to output raw 12-bit data without padding?

    Thanks,
    Shlomi

  • Shlomi,

    However, the file sizes are identical and match exactly the expected size for 16-bit data. Based on this, I suspect that the LVDS is indeed streaming 12-bit data, but the Ethernet interface is padding or aligning it to 16-bit before streaming and storing it on the PC.

    Yes, your understanding is correct. 12-bit data is padded with zeros, so the ADC data bin file size is same.

    Is there any way to configure the Ethernet streaming to output raw 12-bit data without padding?

    I don't think there is any such option.

    Regards,

    Samhitha

  • Hi Samhitha,

    Thank you for the information.

    Assuming I’m capturing 12-bit data via LVDS, I don’t see a reason to go beyond 12 bits for a 12-bit ADC sampler. So, LVDS is no longer a bottleneck in this case.

    However, it seems that the Ethernet interface pads the data with zeros before streaming. Is there any concern about potential data loss if the data is being written faster than it can be streamed over Ethernet?

    Thanks,
    Shlomi

  • Hi Shlomi,

    Let me check internally to find the potential cause of padding data with zeros. Is there is any specific reason why you want to use 12-bit ADC data? We haven't tested 12-bit ADC data extensively as 16-bit ADC data is the widely used mode.

    Regards,

    Samhitha

  • Hi Samhitha,

    The ADC resolution is 12 bits, but when I analyze the captured data, I observe values that exceed the expected 12-bit signed range of [-2^11, 2^11-1], that's probably because I configured 16 bits in ADC Config.

    Previously, as you mentioned, capturing 12-bit data (configuring 12 bit in ADC Config) results in 16-bit output with zero-padding.

    However, now that I’m capturing 16-bit data directly (configuring 16 bit in ADC Config), could you please clarify the exact process by which the 12-bit ADC values are extended to 16 bits?

    From the real data I’ve collected, it doesn’t appear to be zero-padded.

    Can you confirm that the signed integers are saved in two's complement method?

    Thanks,
    Shlomi

  • Hi Shlomi,

    The ADC resolution is 12 bits, but when I analyze the captured data, I observe values that exceed the expected 12-bit signed range of [-2^11, 2^11-1], that's probably because I configured 16 bits in ADC Config.

    Let me check and get back to you by Wednesday.

    Regards,

    Samhitha

  • Hi Shlomi,

    16-bit ADC data is converted to 12-bit ADC data by dropping LSBs.

    Can you confirm that the signed integers are saved in two's complement method?

    As per my understanding, ADC data is stored in 2's complement format.

    Regards,

    Samhitha

  • Hi Samhitha,

    I'm a bit confused and hoping you can clarify something.

    According to the chip's user guide, the ADC has a resolution of only 12 bits. However, in the ADC configuration, we’re able to set it to 16 bits. It seems that the 12-bit ADC data is somehow being represented or converted to 16-bit format.

    Could you please explain how this works? Am I misunderstanding something here?

    Thanks,
    Shlomi

  • Hi Shlomi,

    It seems to be a typo in AWR2544 datasheet. Let me check with the team and get back to you tomorrow.

    Regards,

    Samhitha

  • Hi Shlomi,

    I have checked with the team about this. ADC resolution is 16 bits. It's a typo in the datasheet.

    Regards,

    Samhitha

  • Hi Samhitha,

    Thank you for the clarification.

    As you mentioned, the 2544 supports only 16-bit configuration.
    Now, regarding the 2E44P — I was able to successfully capture 12-bit data, and the datasheet confirms that the ADC resolution is 12 bits. So we can probably agree that the ADC's actual resolution is indeed 12 bits.

    However, if I configure the ADC to capture 16 bits, what exactly will I get? How are the 12 bits converted or mapped into 16 bits?

    Thanks,
    Shlomi

  • Hi Shlomi,

    In AWR2544 or AWR2x44P, ADC resolution is 16 bits. You can configure number of ADC bits to be 12/14/16 bits. Refer to the below screenshot from "C:\ti\mmwave_mcuplus_sdk_04_07_01_03\mmwave_dfp_02_04_18_00\docs\mmWave-Radar-Interface-Control.pdf" to understand how 12-bit ADC data is obtained from 16-bit ADC data.

    Now, regarding the 2E44P — I was able to successfully capture 12-bit data, and the datasheet confirms that the ADC resolution is 12 bits. So we can probably agree that the ADC's actual resolution is indeed 12 bits.

    I think you are referring to datasheet of some other device. AWR2E44P datasheet mentions that ADC resolution is 16 bits.

    Regards,

    Samhitha