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.

TDC7200: tdc7200 read register issue

Part Number: TDC7200

Hi,

     i am working on flow meter but i am facing issue in reading CONFIG1 and INT_STATUS register but am able to Read and Write all other registers what would be the problem

To read register am not making auto increment bit high so is that would be the problem..? suggest me a solution..?

Regards,

Rashmi HM

  • Hello Rashmi,

    What happens when you try to read the CONFIG1 and INT_STATUS registers? Also, when are you attempting to read these registers? If the measurement is active, the INT_STATUS especially may not be read properly.

    Can you post the SPI commands you are sending to these registers?

    Thanks,
  • Hi Scott,

                   Sorry for a late reply,When i try to read the register am unable to write and read the CONFIG1 and INT_STATUS register and am unable to set START_MEAS bit ....Is there any specific criteria to set START_MEAS bit of CONFIG1..?

    //writing to TDC 7200 Registers//

    digitalWrite(SS, LOW); //disable device
    SPI.begin();// wake up the SPI bus.
    SPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE0));
    //TDC 7200 REG config
    writeRegister1(0xC0, 0xC3);
    writeRegister1(0xC1, 0x44);
    writeRegister1(0xC2, 0x00);
    writeRegister1(0xC3, 0x07);

    SPI.endTransaction();

    SPI.end();
    digitalWrite(SS, HIGH);

    //Reading the Registers//

    SPI.begin(); // wake up the SPI bus.
    SPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE0));
    digitalWrite(SS, LOW); //disable device
    readRegister(0x80);
    readRegister(0x81);
    readRegister(0x82);
    readRegister(0x83);
    readRegister(0x85);

    SPI.endTransaction();
    SPI.end();
    digitalWrite(SS, HIGH);

    Regards,

    Rashmi HM

  • Hello scott,
    I got to know that thread has been deleted i have posted new thread because i din't got any reply from TI
    I am trying 7200 from more then 15 days this problem is not resolving and i tried with 3 chips to check whether chip has damaged but in all the 3 chips trigger signal is not generating and after read operation Config1 and Int_status is not updating...?

    Regards,R
    Rashmi HM
  • Hi Rashmi,

    Please try disabling the autoincrement bit for writing. Can you also include your code for the writeregister and readregister functions? These don't seem to be the standard SPI.transfer() functions for the arduino. Is there a reason you are not using the standard functions?

    Regards,
  • Hi Rashmi,

    One more thing to try. In another thread I mentioned that the ENABLE pin should not be tied to VDD. This problem may occur because of an issue related to the enable pin not seeing a rising edge AFTER power has been applied.

    Please use a GPIO from your microcontroller to pull ENABLE high only after power has been applied to the TDC7200.

    Regards,