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.

TDC7201-ZAX-EVM : Test Board Control Inquiry

Part Number: TDC7201-ZAX-EVM
Other Parts Discussed in Thread: MSP430F5529

Hi.

To control tdc7201-zax-evm using fpga.

After power-in, the register was initialized and the signal was checked at tirg1 but to no avail.

The value was output as coarse_cntr_ovf_int while checking the int_status register value.

The pin connection is only connected to din, dout1, enable, sclk, tirg1, and the sclk frequency is produced at 25 mhz and is in use.

CONFIG1 => add : x"40" / data : x"00"

CONFIG2 => add : x"41" / data : x"40"

INT_STATUS => add : x"42" / data : x"00"

INT_MASK => add : x"43" / data : x"07"

COARSE_CNTR_OVF_H => add : x"44" / data : x"ff"

COARSE_CNTR_OVF_L => add: x"45" / data : x"ff"

CLOCK_CNTR_OVF_H => add : x"46" / data : x"ff"

CLOCK_CNTR_OVF_L => add : x"47" / data : x"ff"

CLOCK_CNTR_STOP_MASK_H => add : x"48" / data : x"00"

CLOCK_CNTR_STOP_MASK_L => add : x"49" / data : x"00"

  • Hello,

    Welcome to the E2E Sensors Forum!

    To clarify, you are initializing the device, but probing the TRIGG1 pin does not show a pulse, and after that you read the TDC1_INT_STATUS register and the COARSE_CNTR_OVF_INT bit is set to 1? Also, no start or stop signal is input to the device?

    I have some further questions:

    Are you evaluating the EVM using the MSP430F5529 and provided firmware + GUI or with your FPGA?

    What happens if you initiate two measurements in series, and do you see the same behavior with TDC1 and TDC2?

    Make sure TRIGG1 is probed on TP3 and TRIGG2 on TP6 of the EVM. 

    Regards,

    Gabriel

  • Hi !

    1. Are you evaluating the EVM using the MSP430F5529 and provided firmware + GUI or with your FPGA?

        - I'm controlling it using the fpga code I made. Do not use msp430f5529 and gui

    2. What happens if you initiate two measurements in series, and do you see the same behavior with TDC1 and TDC2?

        - Are you telling me to send signals to tdc1 and tdc2 the same signals to cs1 and cs2?

        - When I used msp430f5529, trig1 reacted normally.

        - I tested it with the same signal of cs1 and cs2, but the result was the same. coarse_cntr_ovf_int err

    3. No response to tp3 and tp6 either

    I was testing by connecting only the tdc1 related pins. Should I connect all the pins?

    Regards,

    RYU

  • RYU,

    Each TDC can be used independently, so you can test either TDC1 or TDC2 by itself without making connections to the one not in use, but I would do the following:

    Since you have an msp430f5529, I recommend evaluating the EVM basic functionality following the user's guide (or you own customized EVM test). Make sure the board communicates with the GUI and register read/writes are working and probe at least the TRIGGx and INTBx pins during testing. Then test the communication with your FPGA; i.e. write some register settings and see if you can read back the correct values. After that is working, try to replicate the EVM test you did with the MSP430, using your FPGA. 

    If you are still seeing issues after this, please provide a schematic or diagram of your FPGA & EVM test setup, along with any additional information/discoveries during testing. 

    Regards,

    Gabriel

  • Hi

    Thanks to you, I solved it well.

    I did the counter counting wrong and it was pushed one by one.

    Thanks for the advice :)

    Regards,

    RYU

  • You're welcome, I'm glad it's working!

    -Gabriel

  • Dear Gabriel

    I have another question.

    I want to use only 100ns of data, so I want to end the measurement after that.

    Can I adjust the time when the intb signal changes to a low value by adjusting the value for Coarse_cntr_ovf h&l reg?

    If possible, I would appreciate it if you could let me know a simple calculation.
    I don't understand the way it's on page 13 of the manual.

    have a nice day:)

    Regards,

    RYU

  • Hi RYU,

    As seen in the datasheet, a calibration measurement is automatically performed before and after your ToF measurement, before the INTB interrupt goes low. The duration between the last stop received (as defined by NUM_STOP) and the INTB interrupt is not programmable.  The clock counter STOP mask can be set to ignore unwanted STOP signals before a certain time, defined by TDCx_CLOCK_CNTR_STOP_MASK = (TDCx_CLOCK_CNTR_STOP_MASK_H x 2^8 + TDCx_CLOCK_CNTR_STOP_MASK_L). 

    Does this information answer your question? In short, I would not recommend trying to stop the measurement with a timeout condition. 

    For further questions, please open a new thread. 

    thanks & regards,

    Gabriel