Other Parts Discussed in Thread: TDC1000, , MSP-ULTRASONIC-DESIGN-CENTER
Hello,
I am using TDC1000 and TDC7200 chip in flow metering. Distance between sensors is about 62mm so I am using standart ToF with blanking. I amusing 10 calibration periods and 4 averaging measure cycles.
Start and Stop signals picture:
My trancdursers are working on frequency of 1Mhz and I am able to see in oscilloscope graph similar to datasheet but seems that calculated time values are not exact. I see problems in zero flow as well (delta ToF is negative all the time). Reading interrupt registers and errors registers not showing any problem (all is good and there is no overflow).
TDC1000 settings:
data 0 42
data 1 52
data 2 12
data 3 4C
data 4 1F
data 5 00
data 6 28
data 7 00
data 8 19
data 9 00
TDC7200 setiings:
data 0 00 data 1 51 data 2 00 data 3 07 data 4 07 data 5 08 data 6 FF data 7 FF data 8 01
I have marked that read via SPI clockCount periods are not exactly what I see on oscilloscope. For example my clock frequency is 8Mhz and I see that there is about 10-12 periods between clockCount1 and clockCount2, but if I calculate difference received from TDC7200, then it is about 32 periods.
Received by SPI value of clockCount are the next:
clockCount1: 1713
clockCount2: 1746
timeCount1: 2053
timeCount3: 1218
On the picture below there is 2 stop signals on TDC7200 (yellow) and clock (blue).
Also in datasheet is not clear about start of counting clockCount. From the picture seems that every stop is starting clockCount, but in numbers received from TDC7200, seems that it continue to count from the start.
If you need additional information, please, let me know.
Thank you for you help.
BR,
Vyacheslav Serov