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.

TDC1000-C2000EVM: TDC1000-C2000EVM serial communication protocol.

Part Number: TDC1000-C2000EVM
Other Parts Discussed in Thread: TDC1000,

I found this information in the following

"" In command packet buffer GUI fills bytes 0-7: bytes0/1 constitute the command, rest any data associated with the command, bytes 8-31 is 0

In response packet buffer C2000 fills in bytes 8-31. Bytes 0-7 is usually left unchanged. Always a response is sent to let GUI know C2000 received the command. So the response packet is some times identical to command packet.

-          For example

30 32 30 38  30 30 30 30  30 30 30 30  30 30 30 30  30 30 30 30  30 30 30 30  30 30 30 30  30 30 30 30

is a command (0x02) from GUI to do a TDC1000 spi byte write to register address (0x08) the value (0x0). Since this is a write command, the C2000 simply echos back the packet buffer w/o any change. ""

could you please explain the highlighted packet more.

1. I get that it is a 32 byte packet but cannot understand what is 3 in this packet.

i am planing to use python for serial communication with evm. please help me to understand how to communicate with the board with a simple example.

Thank you.

Samith

.

  • Hi Samith,

    The highlighted packet contains proprietary overhead that is specific to the operation of the TDC1000-C2000EVM GUI. The TDC1000 itself uses a 16-bit SPI frame, not 32 bits. Using your example of performing a SPI write of to TDC1000 register address 0x08 with data value 0x23, the SPI SDI data would be a binary: 01001000 00100011 (red is reserved bit, orange is R/W bit, green is address, pink is data).

    If you are attempting to create a Python based serial communication example, please use the example source code installed with the GUI to establish a serial COM port connection. You can find the source code at "C:\Program Files (x86)\Texas Instruments\TDC1000_C2000\Firmware\TDC1000_C2000EVM_FW-Source-v1.42.zip".

  • hi,

    sorry i still cannot understand the communication protocol between the gui and the evm. I found the firmware and went through the host interface file.

    could you give me few example for this communication.

    I read the following thread.

    My goal is to develop python script to communicate with EVM and obtain the Tof value from it.

  • hi,

    what is the baud rate that is using to communicate between gui and the evm? 

  • Samith,

    Based on the source code, the baud rate is specified as 9600 baud.

    Other COM port setting details from the code:

    // 1 stop bit, no loopback
    // no parity, 8 char bits,
    // async mode, idle-line protocol

    I have created an Excel based ASCII command packet generator (attached) for the TDC1000-C2000EVM based on the comments from Vishy's earlier post. You can refer to this tool for command examples, and modify the input data to generate your own command packet strings to pass into your COM serial port. Try this file out, and let me know if you have any questions.

    TDC1000-C2000EVM_COM_CommandPacketGenerator_AW1.xlsx