Author Topic: What's All This TDC Stuff, Anyhow?  (Read 7675 times)

0 Members and 1 Guest are viewing this topic.

Offline branadicTopic starter

  • Super Contributor
  • ***
  • Posts: 2390
  • Country: de
  • Sounds like noise
What's All This TDC Stuff, Anyhow?
« on: December 06, 2016, 07:05:36 pm »
As many people might know Time-to-Digital-Converters are becoming cheaper and cheaper, while resolution increases. This is thanks to continuous improvements in CMOS technology.
Inspired by the paper "The ? counter, a frequency counter based on the Linear Regression" I thought a comparision of TDCs might be interesting.
https://arxiv.org/pdf/1506.05009v1
I have currently two TDCs on the table in my lab, GP22 and TDC7200. Links below:

http://www.pmt-fl.com/tdc/tdc-time-to-digital-converters.php
http://www.ti.com/product/TDC7200

Both devices are available for <10€ so it's interesting how they perform compared to each other, right?
So here is a first simple comparision with the given example on page 10 in the manuel of TDC7200EVM:

Setting the Dual Channel Function Generator (for example: Tektronix’s AFG3102):
(a) Set channel 1 of the dual function generator to as follows (see Figure 5):
(i) Pulse 1-Cycle
(ii) Burst mode
(iii) Freq = 40kHz
(iv) Delay = 0s
(v) Amplitude = 3.3Vpp
(vi) Offset = 1.65V
(vii) Duty = 20%
(b) Set channel 2 of the dual function generator to as follows (see Figure 5):
(i) Pulse 1-Cycle
(ii) Burst mode
(iii) Freq = 40 kHz
(iv) Delay = 19us --> this is the time-of-flight (TOF)
(v) Amplitude = 3.3 Vpp
(vi) Offset = 1.65 V
(vii) Duty = 20%

Both devices are in Mode 2 and as far as I currently know with the best settings, which means quad resolution on GP22 and with the given settings described in TDC7200EVM manuel.

First result

GP22: 4933 samples in 30.2s; mean= 19000.7790687205ns; std=0.0451478954351179ns; max-min=0.336999999999534ns
TDC7200: 998 samples in 30.33s; mean=19000.0621584899ns; std=0.233032667622456ns; max-min=0.917114999996556ns

Pretty interesting results. I guess I need other TDC models to compare with.
« Last Edit: December 06, 2016, 07:30:40 pm by branadic »
Computers exist to solve problems that we wouldn't have without them. AI exists to answer questions, we wouldn't ask without it.
 
The following users thanked this post: edavid, doktor pyta, evb149, pigrew, 1001

Offline branadicTopic starter

  • Super Contributor
  • ***
  • Posts: 2390
  • Country: de
  • Sounds like noise
Re: What's All This TDC Stuff, Anyhow?
« Reply #1 on: December 07, 2016, 08:19:19 pm »
I did another test today, I was interested in what influence the signal form at the inputs of a TDC has. Obvisously a very big. I tested combinations of sinus (S) and rectangle (R). Maybe someone can explain the different results, that where proven to be reproducable? Here are the result of GP22 & TDC7200.

Conditions
CH1: 3.3V amplitude, 1.65V offset, 40kHz
CH2: 3.3V amplitude, 1.65V offset, 40kHz, Phase 180°
Continuous wave
TDC7200: Trigger Update Frequence: 100ms
GP22 was measured to trigger every 6ms, so much faster than TDC7200

Maybe someone can explain the differences?
« Last Edit: December 08, 2016, 09:14:58 am by branadic »
Computers exist to solve problems that we wouldn't have without them. AI exists to answer questions, we wouldn't ask without it.
 

Offline branadicTopic starter

  • Super Contributor
  • ***
  • Posts: 2390
  • Country: de
  • Sounds like noise
Re: What's All This TDC Stuff, Anyhow?
« Reply #2 on: December 08, 2016, 09:39:00 am »
Comparing two sinusoidal waves, the first one 40kHz, the second one 40.0001kHz. What you see is the difference in sampling time between both TDCs.
Computers exist to solve problems that we wouldn't have without them. AI exists to answer questions, we wouldn't ask without it.
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 694
Re: What's All This TDC Stuff, Anyhow?
« Reply #3 on: December 08, 2016, 04:49:19 pm »
I guess you saw the arduino-shield with a TI TDC7200
http://tapr.org/kits_ticc.html

have you looked at FPGA-based TDCs? There is potential for more resolution there. Something that competes with the ~13 ps RMS for time-intervals of the Keygilent 53230A would be interesting...
 

Offline branadicTopic starter

  • Super Contributor
  • ***
  • Posts: 2390
  • Country: de
  • Sounds like noise
Re: What's All This TDC Stuff, Anyhow?
« Reply #4 on: December 09, 2016, 08:01:37 am »
Yes, I saw that TICC before but as I have TDC7200 and TDC7201 eval boards I don't need a TICC anymore.

A TDC7201-ZAX-EVM board goes for 76,22 €:
http://de.farnell.com/texas-instruments/tdc7201-zax-evm/eval-board-zeit-digital-wandler/dp/2664492

and the necessary MSP-EXP430F5529LP Launchpad for another 12,77 €:
http://de.farnell.com/texas-instruments/msp-exp430f5529lp/evaluationskit-usb-launchpad/dp/2357895

So this is 88,99€ for the hardware, half the price of a TICC. Sad to calculate this way, but they are to late as TDC7201 is available now.
FPGA based TDC's are not of my interest, but there are chips available with <10ps resolution. I guess I will have some more TDC eval boards soon at hand and a 53230A at the beginning of next year in lab.
Computers exist to solve problems that we wouldn't have without them. AI exists to answer questions, we wouldn't ask without it.
 

Online doktor pyta

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: pl
Re: What's All This TDC Stuff, Anyhow?
« Reply #5 on: December 09, 2016, 12:30:17 pm »
Typical TDC need well defined start and stop signals (sharp edges). We used ultrafast comparators to do this.  Constant Fraction Discriminator is often used to minimize "time walk".
« Last Edit: December 09, 2016, 03:01:41 pm by doktor pyta »
 

Offline Theboel

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: id
Re: What's All This TDC Stuff, Anyhow?
« Reply #6 on: December 09, 2016, 02:44:15 pm »
Hi Branadic,

Do You know how to made the combo of TDC7201-ZAX-EVM with MSP-EXP430F5529LP can work with Timelab software ?
 

Offline branadicTopic starter

  • Super Contributor
  • ***
  • Posts: 2390
  • Country: de
  • Sounds like noise
Re: What's All This TDC Stuff, Anyhow?
« Reply #7 on: December 09, 2016, 06:52:59 pm »
To be honest, I have no idea, but I'm sure there is an offline way to import data to Timelab software.
Ordered MAX35101 EVM board today, another interesting candidate to play with and to compare to.
Computers exist to solve problems that we wouldn't have without them. AI exists to answer questions, we wouldn't ask without it.
 

Offline branadicTopic starter

  • Super Contributor
  • ***
  • Posts: 2390
  • Country: de
  • Sounds like noise
Re: What's All This TDC Stuff, Anyhow?
« Reply #8 on: December 11, 2016, 03:05:10 pm »
Yes they are and I will order both EVM boards too. You can't trust datasheets and to get the downsides of each chip you better run own tests.

As you can see on the photo and extract from the datasheet there is just the sma connector and a series resistor in front of the TDC7200.

http://www.ti.com/tool/tdc7200evm

Furthermore the EVM board uses a Abracon Corportation ASFLMB-8.000MHZ-LY-T oscillator with 8MHz.
I used Tektronix AFG3022B and performed one test after the other. The rise time of a square wave on this unit is specced to be <18ns. I could have used AFG3102 with <5ns but as both tests are equal for each TDC this makes no real different. So yes, you could use ultra fast comparators or low jitter pulse sharpening buffers to improve performance.
I could also have used a GPSDO as a clock source, which I do have at hand, but then I would have needed a /2-divider as GP22 needs a clock between min. 4 ... typ. 6 ... max 8MHz.

What do you mean by discrete TDC? Using discrete logic gates?
Well, I haven't planed something like this as high resolution TDCs are available and I'm pretty sure you won't reach their performance in a discrete setup, won't you?
And while this TDCs are cheap too it makes no sense for me to use FPGAs unless you have special requirements. Maybe some cheaper CPLDs are interesting, but that's not my business.
Computers exist to solve problems that we wouldn't have without them. AI exists to answer questions, we wouldn't ask without it.
 

Offline Theboel

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: id
Re: What's All This TDC Stuff, Anyhow?
« Reply #9 on: December 13, 2016, 05:23:43 am »
Hi Branadic and All

I try to understand what TIC/TDC specification mean the most I like to understand is ps Time interval mean.
what I like to understand what the important this ps.
for example : I want to compare 2 signal with 10Mhz freq with first signal expected stability 10e-9 and the second signal 10e-12 if I use TIC with 50ns or 250ns or 600ns what I will get ?
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 694
Re: What's All This TDC Stuff, Anyhow?
« Reply #10 on: December 13, 2016, 05:53:16 pm »
Hi Branadic and All
for example : I want to compare 2 signal with 10Mhz freq with first signal expected stability 10e-9 and the second signal 10e-12 if I use TIC with 50ns or 250ns or 600ns what I will get ?

FWIW, 53230A noise-floor plots for 1PPS measurements in time-interval mode:
http://www.anderswallin.net/2015/04/keysight-53230a-noise-floor-test/
in time interval mode the ADEV will be roughly sqrt(3)*(RMS-single-shot-noise), and I got ADEV(1s)=1.8e-11 for a 1PPS measurement

and for frequency measurements with 1s gate time in either defaut (CONT) or reciprocal pi-counting (RCON) mode:
http://www.anderswallin.net/2015/06/cont-vs-rcon-mode-on-the-53230a-frequency-counter/
for the RCON mode I got around 3e-11 at 1s. The default CONT mode does some averaging or reduction of bandwidth which isn't very well documented AFAIK.

The counter noise itself is white phase-noise, and averages down as 1/tau. So let's say you want the counter noise to be 1/10th of your real signal (i.e. frequency difference of two oscillators). That means a 1e-9 difference between two oscillators is measurable immediately, at 100ms or less gate time. But to see a 1e-12 difference you need to average (or increase the gate time) to around 100s.
This assumes your frequency sources are stable during that 100s also...
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 694
Re: What's All This TDC Stuff, Anyhow?
« Reply #11 on: December 21, 2016, 10:01:39 am »
I guess you saw the arduino-shield with a TI TDC7200
http://tapr.org/kits_ticc.html

here's a talk about the TICC:

 

Offline Bruce G

  • Contributor
  • Posts: 14
Re: What's All This TDC Stuff, Anyhow?
« Reply #12 on: February 23, 2017, 05:07:00 am »
Measuring the period of a function generator output to evaluate the performance of sub 100ps TDCs is essentially pointless (as all one ends up doing is characterising the function output signal period generator jitter) unless one simultaneously measures the same period with another TDC with 10x lower noise and INL etc. One needs to use a signal known to have lower noise than the TDC being evaluated. Synchronous dividers clocked by a low noise OCXO (for longer term stability) usually suffice for TDCs with a resolution of a few tens of picosec. For TDC's with sub 10ps noise cascading a pair of LTC's low jitter programmable divider evaluation boards can be useful.

The statistical fill the buckets technique using a noisy oscillator can be useful in evaluating the INL and DNL of a TDC.

A Trombone style variable delay line can be useful in evaluating the TDC performance when measuring time intervals of a few ns.

Whilst interesting the TDC-GPX2 datasheet is somewhat light on performance detail when measuring time intervals beyond 100ns or so. Ultimately for longer time intervals the TDEV of the reference clock will determine the performance. With a 1MHz reference clock the TDC jitter may increase by a factor of 3, the datasheet omits anything about the performance variation with different reference clock frequencies.

Discrete TDCs with sub picosecond jitter do exist.
However the measurement rate is low due to the number of calculations required. These TDC's use an RF ADC to sample the output of a SAW filter excited by a narrow pulse.

Keysight/Agilent used to sell a discrete TDC with 5ps resolution and noise. It should be possible to do a little better than this. 
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 694
Re: What's All This TDC Stuff, Anyhow?
« Reply #13 on: February 23, 2017, 09:47:41 am »
Discrete TDCs with sub picosecond jitter do exist.
However the measurement rate is low due to the number of calculations required. These TDC's use an RF ADC to sample the output of a SAW filter excited by a narrow pulse.

I noticed this work by CERN on the ADC + correlation approach was posted quite (?) recently
http://www.ohwr.org/projects/r19-tdc-del-a/wiki
 

Offline Bruce G

  • Contributor
  • Posts: 14
Re: What's All This TDC Stuff, Anyhow?
« Reply #14 on: February 23, 2017, 10:42:19 pm »
The original technique from which this was derived is outlined in:

https://cddis.nasa.gov/lw16/docs/papers/las_4_Prochazka_p.pdf

and many similar papers on the same theme.

One problem with this technique is that one can't quickly damp the signal when sufficient samples have been obtained. Other variants using helical resonators or other bandpass filters suffer from the same issue. However they do circumvent some "interesting" issues that arise when a SAW bandpass filter is employed.

The other major problem is the time that it takes to compute each timestamp from the ADC samples.

An Italian group proposed the damped sine technique some years ago but their implementation was inept. Far too many switches were employed. Done correctly only a single switch with an appropriate on resistance is required. This minimises the parasitic effects seen by the Italian group.

A few years ago I built a simplified version using only passive components powered direct from the signal being measured just to see if the technique actually worked as stated. The tuned circuit was connected directly to my 14bit scope input. Unfortunately the high baseline noise, probably due to the less than ideal setup, limited the standard deviation of the measurement of the period of the test square wave signal to about 10ps or so.  Some of this can be attributed to the divider chain used to produce the test signal, principally the comparator used as a sine to square converter.

I achieved a much higher tank Q (~250) by using T50-7 inductor core and a silver mica tank capacitor. The switch parasitics were also quite low. An air cored inductor with a Q~400 is possible but together with the shielding required to prevent crosstalk would have been quite bulky.

A dc coupled tank driver is required for general use.


The discontinued Keysight/Agilent Aqiris TC842 used a damped sine TDC interpolator.

One advantage of such TDC's is that they are largely self calibrating apart from the delay from the signal transition to the begining of the damped sine.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf