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.

TDC7200 Evaluation Module

Other Parts Discussed in Thread: TDC7200, MSP430F5529, TDC7200EVM

Hello everyone!

I recently bought a TDC7200 EVM with the MSP430F5529 to make it work. I downloaded the GUI and everything works fine.

Now I'm trying to implement a code to make the TDC7200 work with the MSP but without the GUI, just to send the final value to the serial port. 

However all I read is ´0x00´or ´0xFF´. I checked the electrical connections, everything is correct. What I'm doing wrong?

#include <SPI.h>

/*
PIN DEFINITIONS ARE HERE
*/ void setup(){ Serial.begin(9600); /// delay(1000); Serial.println("Hello"); Serial.println("Starting Setup..."); Serial.println("Defining Pins..."); pinMode (gCS, OUTPUT); pinMode (INTN, INPUT); pinMode (ENABLE, OUTPUT); pinMode (LED, OUTPUT); digitalWrite(gCS,HIGH); SPI.begin(); SPI.setBitOrder(MSBFIRST); SPI.setClockDivider(SPI_CLOCK_DIV8); SPI.setDataMode(SPI_MODE1); Serial.println(F("Enabling TDC7200")); digitalWrite(ENABLE,HIGH); delay(100); } void loop(){ byte x=0x00; Serial.println("TEST"); //write process digitalWrite(gCS, LOW); // Select device SPI.transfer(0x41); SPI.transfer(0x10); digitalWrite(gCS, HIGH); // Deselect the device delayMicroseconds(10); //small delay to see better the signals in the oscilloscope. //read process digitalWrite(gCS, LOW); SPI.transfer(0x01); // Send read command x = SPI.transfer(0x00); // Read back 8 bits digitalWrite(gCS, HIGH); // Deselect the device Serial.println(x,HEX); delay(100); }

  • Edwin,


    I've moved this post to the Ultrasonic Sensing Forum. I believe that this is the forum where the TDC7200 belongs based on the product line.


    Joseph Wu

  • Edwin,

    When you install the TDC7200EVM GUI, you can find the TDC7200EVM firmware source code with project files in the following install folder: C:\Program Files (x86)\Texas Instruments\TDC7200EVM\Firmware

    Please take a look at the firmware to see how the MSP430 SPI port is setup for communication with TDC7200.

    A new version of the TDC7200EVM GUI software will be available on the TI web soon that supports start to stop time calculation (also known as time of flight (TOF) in ultrasonic applications) in firmware. This basically reads all the measurement result registers of TDC7200 to calculate start to stop time instead of just sending the registers to GUI for calculation. Also, the calculated values will be output over the UART port (backchannel). You can take a look at that code to see how the serial port input/ouput is handled.

    Thanks,
    Vishy

    PS: When you install the TDC7200EVM GUI, you can find the TDC7200EVM firmware source code in the following install folder: C:\Program Files (x86)\Texas Instruments\TDC7200EVM\Firmware
  • An updated version of the TDC7200EVM GUI is now available on the web (v1.5.0.0)

    http://www.ti.com/tool/tdc7200evm

    This has support for start to stop time calculation in firmware and outputs the data over the MSP430F5529 Launchpad backchannel UART USCIA1 (MSP Application UART1). You can use a terminal like Teraterm to observe the data. Set the serial link parameters to 38400/8/N/1. 

  • Hi Vishy,

    what firmware number works with UART1 and 38400 Baud. The TDC7200EVM_FW_Source-v.1.07 and v2.01 outputs no data by the  lanchpad  MSP430FF5529.

    The GUI Revision 1.7.2.0 is running and ok.

    greetings

    Frank

  • Frank,
    Please make sure the "TDC7200 UART Stream" option is enabled in the "DEBUG" tab of the GUI.
    Thanks,
    Vishy