   int lsb = SPI.transfer(0x00);
 
   value = (msb << 16) + (mid << 8) + lsb;
+
+  digitalWrite(CSB, HIGH);
+  SPI.endTransaction();
   
 //  This clobbers the stack at runtime:
 //	SPI.transfer((uint8_t *) &value + 1, 3);

  //  Start a SPI transaction
  //  Max speed for the tdc7200 is 20MHz
  //  CPOL = 0; CPHA = 0
  SPI.beginTransaction(SPISettings(20000000, MSBFIRST, SPI_MODE0));
  digitalWrite(CSB, LOW);

  time1Result = readReg24(TIME1);
  time2Result  = readReg24(TIME2);

  // inputs, these two 32 bits still won't overflow.
  tempu32 += clock1Result * CLOCK_PERIOD_PS;
  // return tempu32;
//  digitalWrite(CSB, HIGH);
//  SPI.endTransaction();

  return (long)tempu32;
}
