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.

CCS/TDC1000-TDC7200EVM: Change registers of TDC1000-TDC7200EVM using CCS

Part Number: TDC1000-TDC7200EVM

Tool/software: Code Composer Studio

Hi guys,

I'm trying to edit the source firmware that comes with the TDC100-TDC7200 EVM GUI download using CCS and then importing my updated firmware as a hex file into the GUI.

My goal is to edit the source code so that at a certain height measurement read by the ultrasonic sensor (20cm) it will automatically change the BLANKING register (located in the TDC1000 menu of the GUI) from disabled to enabled without me manually stopping the graph and changing the register myself once the water level hits that height.

Any tips on how to accomplish this would be great! 

Thanks! 

Megan

  • Hi Megan,

    In the firmware folder included with the GUI install you will find R/W demo apps for the TDC1000 and TDC7200 (C:\Program Files (x86)\Texas Instruments\TDC1000_7200EVM\Firmware\code\demo_apps)

    In these files, the code shows how to read and write to registers in the TDC1000 and TDC7200 from the MSP430. For what you would like to do, you will need to read the TIME1, CLOCK_COUNT1, and CALIBRATION1 and 2 registers from the TDC7200, then apply the formula from section 8.4.2.2.1 of the TDC7200 datasheet to output your time of flight. With that and the speed of sound of water (~1400m/s) you can calculate the water level. Once this reaches your desired height, simply add a write command (found in the above demos) to write the CONFIG_3 register in the TDC1000 to turn on the blanking.

    Regards,