F1 TDC timing and GlueX

F326, noon, Nov. 13, ’14

Discussion with Ed Jastrzembski, Ben Raydo, Kei Moriya, and MMI


  1. F1 TDC codes run from a bit more than 0 to a bit less than (2^16 – 1)= 65535, e. g. 10 to 65525
  2. These codes go round and round, repeating.
  3. When the code flips from the highest possible value to the lowest possible value (e. g., from 65525 to 10), it is called a “reset”, for now we will call the period of resets the “reset period.”
  4. The sequence starts at lowest possible code (e. g. 10) at sync time.
  5. There is a system clock going on a 32 ns period (31.25 MHz) all internal clock are derived from this one.
  6. A trigger time stamp is also generated with a 32 ns period starts at 0 and is read-out.
  7. For a 56 ps least count, the time between resets would be 3.67 microseconds if the count range were 2^16 (which it is not).
  8. The trigger defines the beginning of the read-out window, using the configured look-back time. Details of how this is done is not clear, but the data values are completely insensitive to these details, only the choice of which hits are read-out.
  9. The trigger time stamp is recorded.
  10. The read-out window cannot be more than 90% of the reset period, otherwise more than one reset could occur in the window and relative time differences channel-to-channel would be ambiguous.


  1. Since the reset period is not a intgral multiple of any clock period, except for the least count of the tdc code (56 ps), it cannot be referenced to any internal time except for the sync at the beginning of the run. Referencing time to the trigger would requiring calculating reset cycles since synch and looking at the TI timestamp to determine the tdc code for the trigger. Then all codes in the system could reference this trigger time. This has never been attempted.
  2. Currently the synch is not synchronized with the 31.25 MHz clock. William’s firmware fix will fix that.
  3. Having a reference signal in any F1-TDC solves all problems as well. That is why everybody does it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s