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.

TSW14J57EVM: HSDC Pro Output Binary File Format

Other Parts Discussed in Thread: ADC12DJ5200RFEVM

Hi, 

Converting ADC raw data saved in a binary file does not result in the same values as CSV.
Please tell me how to convert.

Info
・ADC12DJ5200RFEVM
・TSW14J57 Rev.E EVM
・HSDCPro v5.2
・ADC resolution 12bit
・JMODE1 setting

(Binary files and CSV files are the same captured data.)

bin_vs_csv.zip

Regards,

Takeo

  • Hi Takeo,

    The samples will be signed 16-bit values, even for the 12-bit ADC data.

    • The first sample is composed of 0x00 (LSBs) and 0x08 (MSBs). So, the first sample is 0x0800, corresponding to 0.
    • The second sample, composed of 0x04 (LSBs) and 0x08 (MSBs), is 0x0804, corresponding to 4.
    • For sample 9, we are using the first two bytes of the second row: 0xFA and 0x07. When combined, this represents 0x07FA corresponding to -6.

    I hope this helps clear things up.

    Thanks,
    Chase

  • Hi Chase,

    Thank you for the prompt reply.

    I understood.

    Range(12bit): 0 - 4095 ... 2048=0V

    LSB MSB
    0x00 0x08 => 0x0800 = 2048 therefore 2048 - 2048 = 0
    0x04 0x08 => 0x0804 = 2052 therefore 2052 - 2048 = 4
    0xFA 0x07 => 0x07FA = 2042 therefore 2042 - 2048 = -6

    Thanks,

    Takeo