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: CONFIG2 Register

Part Number: TDC7200

Tool/software: Code Composer Studio

Hi there


I have a question regarding the config register 2. 


In the source code I have an infinite loop. The measured values ​​data should be recorded by the TDC7200 during each loop pass. see source code below.

int main(void)
{
  
      static uint32_t t_inter=0;

      WDTCTL = WDTPW | WDTHOLD;              // stop watchdog timer

      clock_init();

      SPI_init();



      SPI_write_config(0x41,0x42);           // write CONFIG register 2 with commands Single Stop/1 Measurement_cycle/ 10 Clock_periods Config1

      for(;;)
      {
     
      SPI_write_config(0x40,0x03);           // write CONFIG register 1 with commands Meas Mode2/StartMeas Config1


      //wait for INTB pin to go low
      t_inter=0;
         while(P2IN & BIT6)
          {
             t_inter++;
            if (t_inter >= 200000)
                break;
          }


Now my real question is that I have to describe both config registers with each call. Say the config register are both volatile?

Or can I describe the config register 2 outside the infinite loop



Greets Ben