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/MSP430FR6989: TIDM-ULTRASONIC-TDC

Part Number: MSP430FR6989

Tool/software: Code Composer Studio

Hi

I'm working on TIDM-ULTRASONIC-TDC board and i set parameters and see the outputs through the TDC1000-7200EVM GUI. Now i want to use a micro controller instead of the GUI i get know how the GUI send command to the MSP430FR6989 but i don't know how the msp430FR6989 send the time data to the GUI.

i sniffed the income and outgoing data through serial while the GUI is reading data from the TIDM_ULTRASONIC_TDC and i see the responses from the board and it has data frame like below:

00 08 36 00 01 e9 00 04 b7 00 01 eb 00 03 2f 00 01 ed 00 03 94 00 01 ef 00 03 b5 00 01 f1 00 04 14 00 08 da 00 58 6b 00

I see the MSP430FR6989 code also but i couldn't find the data frame of these packet to deocde it.

it would be great if you tell me how to decode these data and get the time values from this packet.

and also i get a little confused by how does the GUI Distinguish the upstream time and downstream time!!?

thanks in advance.

  • Hello ArMiN,

    Thanks for your posting.
    We are looking into this issue and will get back to you ASAP.

    Thanks,
    Ling
  • Hello ArMiN,

    Please refer to void Send_Data_To_GUI(void) function.

    Thanks,

    Ling

  • Hi Ling

    thanks for your answer. i understand how to decode the packet and get the value from it, but i still don't know how the GUI distinguish between the upstream packet and downstream packets, because the packets frame are the same and i think there is no bit to distinguish the upstream and downstream data! So how we should get know which packet is for Upstream and which one is for Downstream to determine the flow direction correctly.

    sincerely yours.

  • Hi ArMiN,

    Sorry for the late reply. Why the GUI need to distinguish between the upstream packet and downstream packets? GUI sends command to EVM and receives the data from EVM. The communication is based on UART protocol.

    Regards,

    Ling

  • Hi Ling

    its important to know and distinguish between the upstream and downstream TOF, because in Flow Measurement process, difference of the upstream and down stream declare the flow direction in the pipe! so its necessary to distinguish the upstream and down stream TOF to indicate the direction of the flow.

    Regards,

  • Hi ArMiN,

    It is easy to distinguish the upstream and downstream based on the flow direction. First set one direction as the positive direction, than that the flow runs at that direction. In this situation, the TOF upstream should shorter than the TOF downstream.  

    Best regards,

    Cash Hao

  • Hi Cash,

    I agree with your answer but for example in some situations the flow direction in the pipe may be change and if you cant understand which TOF is for upstream and which one is for downstream is hard to figure the flow direction.
    by the way, i have another misunderstand in packet responses from MSP430 to GUI. for example i set the Trigger Update Frequency to 2s in GUI and the MSP430 sends one packet to the GUI each 2s (0.5Hz). as i know MSP430 only sends the "| TIME1 |CLKCOUNT1| TIME2 |CLKCOUNT2| TIME3 |CLKCOUNT3| TIME4 |CLKCOUNT4| TIME5 |CLKCOUNT5| TIME6 |CALIBRATION1|CALIBRATION2|" which is the time measurement values only for one direction of the transducers(.e.g only upstream) so what happen for downstream TOF measurement here? MSP will send the downstream measurement in next packet in next 2s? or this packet contain the upstream and downstream differential TOF?
    it would be great if you put some light on this section of reading and calculating the differential TOF.

    Best Regards,
  • Hi ArMiN,
    Once you certain which one is the upstream or the downstream, it will always be that. If the flow direction change, the TOF upstream should longer than the TOF downstream. You can know the flow direction by comparing the upstream and downstream's TOF then.
    Does it make sense to you?

    Best regards,
    Cash Hao

**Attention** This is a public forum