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.
Replies: 1
Views: 51
Part Number: AWR1642BOOST
Tool/software: TI-RTOS
Reading through the ADC data capture guide or the DCA1000 data capture guide, I did not see anything regarding the LSB/MSB format of the data. Therefore, upon inspecting the packet capture from the DCA1000 in raw mode I saw the following (just a snippet of one capture)
02000000b00500000000bb06b400d807230bcff9baf490098d03d2f4c4f9
Where the red text is the packet number, blue text is the byte count, bold text is the I sample of the first receiver, and unbolded text is the Q sample of the first receiver. I only enabled 1 receiver and 1 transmitter on my device, so all of the data should be associated with the first receiver.
As you can see, this is only the second packet I captured but the format of the byte count and packet number headers implies that the format is LSB. "050b" = 1456 in decimal, which makes sense because I captured packets 1466 bytes long and 10 bytes are allocated to the header, which leaves 1456 for data (after just one packet capture).
Therefore, my question is whether the data samples for the I and Q samples are also LSB format. For instance is the first complex sample: "06bb - I 004b - Q" ? Then I would just subtract 2^15 from each of these values to obtain the binary offset compensated value?
Samuel,
Attached is a sample MATLAB script that is used for extracting the data from a .bin file of captured data using the DCA1000EVM. The format of the data should be LSB. The attached script addresses the issue of subtracting 2^15 from the values to obtain the twos complement.
Straight_Forward_Processing_with_chirp_configs_16xx.m
Regards,Kyle