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/TDC7200: problem with multiple spi reads

Part Number: TDC7200
Other Parts Discussed in Thread: MSP-FET, TDC1000,

Tool/software: Code Composer Studio

Hi,

I am working with the TDC1000-TDC7200EVM board I am programming with a MSP-FET.

CCS version is 8.3.0.00009 (Mac OS) and complier is TI v18.1.5.LTS.

I can successfully write the TDC1000 / TDC7200 registers and do time measurement.

However, I have the following problem:

- After starting the time measurement with a SPI write to the TDC7200, I wait for the interrupt on the INTB pin of the TDC7200

- Once I get the interrupt, I do a SPI byte read to the TDC7200 to get the interrupt status registers

- I check the interrupt status to see if the time measurement is successful: if so, I start another SPI auto increment read function to get all TIMEn, CLOCK_COUNTn and CALIBRATIONn registers.

The second SPI function is not successful: I get zeros, it does not work. I tried many things and it seems the TDC7200 returns only one successful read command (which can be a byte read or multiple bytes read if using auto increment) once it has a successful time measurement. Following commands would return only zeros, as if the first read command also has the effect of erasing the measurement result registers.

I want to :

- Check first the interrupt status: I will not read the TIMEn, CLOCK_COUNTn and CALIBRATIONn registers if the measurement has failed (save time and power)

- Be able to do one read function for TIME1, CLOCK_COUNT1 and TIME2, then another read for CALIBRATION1 and CALIBRATION. I only have one STOP pulse so I do not need the rest, and I do not want to waste memory.

Can you help me?

Thanks,

Guillaume