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.

Compiler/TDC7200: TDC7200

Part Number: TDC7200
Other Parts Discussed in Thread: TDC1000,

Tool/software: TI C/C++ Compiler

Get All ways count over flow flag and read the count 0x0000.

My application use the TDC1000 as ultrasonic fronand and the TDC7200 for the TOF measure.

i set the TDC7200 registers as follow 

TDC7200_reg_local_copy[10] = {0x82, 0x68, 0x1f, 0x07, 0xFF, 0xFF, 0xFF, 0xFF, 0xff, 0xff };

and  TDC1000_reg_local_copy[10] = {0x4a, 0x04, 0x0a, 0x0b, 0x00, 0xe0, 0x28, 0x00, 0x02, 0x03};

The TOF between the start and the first Stop is 101.4us (measure using scop)

I am using the TDC7200 to trigger the TDC1000 by setting bit 0 at the TDC7200_CONFIG1_REG. working in mode 2 clk = 8mhz.

The TDC7200 generate the trigger as expected. then TDC1000 generate the start and after 104.us generate the first Stop.

But when reading the result i get in all counters 0x00000 result and in the fist TIME register value all other TIME register read 0x0000

when i read the status register  TDC7200_INTRPT_STATUS_REG receive value of 0x1d mean measure completed and counter over flow.

I checked problem and get it in other boards.

Please advice

Thanks,

Ofer Merom

  

  • Hi Ofer,

    You have the Clock Counter Stop Mask set to the maximum value (Register addresses 08h and 09h are both set to 0xFF). This will make the TDC7200 ignore the STOP signal. For now set those registers to 0x00, which will allow the TDC7200 to read the STOP signal and output values to the TIME and COUNTER registers.

    Regards,