There are many applications in which the accurate measurement of a time interval is useful. For example, accurate time interval measurement is often used in various measurement and instrumentation applications, in analog-to-digital converters based on pulse-width modulation, in digital phase-locked loops, and in mass spectrometer time-of-flight measurements. It is also expected to that being able to accurately measure a time interval will become important in future technologies, such as for the operation of digitally-assisted radio frequency circuits, and also as data rates in general become faster.
Time interval measurements are typically performed between two trigger events (a start event and an end event). Conventionally, the time difference between trigger events has been measured by referring to a clock signal having a known frequency. The detection time of one or both trigger events is rounded to the nearest clock cycle. The number of clock cycles occurring between the trigger events is counted, and with this count plus the known clock frequency, the time interval can be determined. However, this clock-based method results in a rough time measurement having an error that depends upon the clock frequency.
For large time intervals, the error may be reduced to an acceptable level by increasing the reference clock frequency. But for small time intervals, the reference clock frequency would need to be impractically large. Hence, a time-to-digital converter (TDC) is often used to quantize the measurement error at the beginning and end of the time interval. The results of the TDC measurements are added to or subtracted from the rough time measurement to produce a more accurate time measurement.
There are various problems with this conventional TDC approach. For instance, the reference clock is susceptible to jitter, thereby reducing the accuracy of the measurements. Also, a high frequency clock consumes a relatively large amount of power, which is especially problematic where the circuitry for the clock exists solely for operating the TDC. In such a case, a complete phase-locked loop including a voltage-controlled oscillator is needed, further increasing the power penalty. Moreover, a dedicated TDC clock consumes precious real estate—typically a resource in short supply—when implemented on an integrated circuit.
Various aspects are described herein. For example, an apparatus is described including a circuit that is configured to measure timing between features in a first signal referring only to timing information contained in the signal itself Other illustrative apparatuses are also described, and methods of operation of the various apparatuses are further described.
These and other aspects of the disclosure will be apparent upon consideration of the following detailed description of illustrative aspects.
A more complete understanding of the present disclosure may be acquired by referring to the following description in consideration of the accompanying drawings, in which like reference numbers indicate like features, and wherein:
The various aspects described herein may be embodied in various forms. The following description shows by way of illustration various examples in which the aspects may be practiced. It is understood that other examples may be utilized, and that structural and functional modifications may be made, without departing from the scope of the present disclosure.
Except where explicitly stated otherwise, all references herein to two or more elements being “coupled,” “connected,” and “interconnected” to each other is intended to broadly include both (a) the elements being directly connected to each other, or otherwise in direct communication with each other, without any intervening elements, as well as (b) the elements being indirectly connected to each other, or otherwise in indirect communication with each other, with one or more intervening elements.
As previously described, there are many potential problems with using a time-to-digital converter (TDC) that relies on a reference clock. Therefore, it may be desirable to accurately measure time intervals without the need for a reference clock. One way this may be accomplished is to provide an event-driven time measurement device having one or more TDCs, where each TDC measures a time interval between trigger events in a signal to be measured based on nothing more than the relative timing of the trigger events. The device may be configured to extract timing control signals from features of the signal being measured itself, without the need for a reference clock. Such features in the signal being measured may include, for example, transitions (e.g., transitioning from a logical 0 to a logical 1, and vice versa) and/or spikes.
Providing TDC-based time measurement without relying on a reference clock may potentially overcome one or more of the above-described problems in conventional TDC-based devices. For instance, such a device may be made smaller, and may consume less power, in that special clock circuitry may no longer be needed. Moreover, time intervals may potentially be even more accurately measured, in that clock jitter may no longer be a source of error.
An illustrative embodiment of a TDC 100 is shown in
Each node in the chain is further connected to the data input of a respective latch 102-1, 102-2, . . . 102-L, as shown. Each latch 102 is clocked to signal Z, and each latch 102 has a respective data output Q(1), Q(2), . . . Q(L). Thus, in operation, as signal Y propagates through the delay chain, signal Z may be used as a trigger to take a snapshot of the signal values at each node, which are output on lines Q in response to signal Z. Another way to look at this is that signal Y acts as a “start” signal for time interval measurement, and signal Z acts as a “stop” signal.
Outputs Q(1) through Q(L) may collectively represent a series of data bits that together may represent the time interval measured (referred to as a pseudo thermometer code). Proper interpretation of outputs Q(1) through Q(L) is a known process and thus does not need to be described in detail herein.
There are many known variations on the type of TDC shown in
Traditionally, signal Y has been the signal to be measured (e.g., measuring the width of a pulse in signal Y), also referred to as the start signal; and signal Z has been the reference clock, also referred to as the stop signal. However, as will be described below with reference to several illustrative embodiments, both signals Y and Z may be the signal to be measured and/or based on the signal to be measured, without the need for a reference clock.
An illustrative embodiment of such a configuration that does not need a reference clock to measure time is shown in
Event-generating circuit 201 may be configured in any of a number of ways, depending upon the function desired of the device. In general, event-generating circuit 201 may be configured to generate signals Y and Z based on input signal X, where signals Y and Z may be generated irrespective of any reference clock. For example, event-generating circuit 201 may be configured to change the value of signal Y in response to a rising edge in signal X, and to change the value of signal Z in response to a falling edge in signal X.
Another illustrative embodiment is shown in
Thus, each TDC 303 in this example receives the opposite start and stop signals, such that TDC 303-1 measures the time interval where signal X is high and outputs this measurement as signal g, and TDC 303-2 measures the time interval where signal X is low and outputs this measurement as signal h. More specifically, referring to illustrative signal X in
Post-processing circuit 304 receives signals g and h and determines the duty cycle of signal X by dividing the time interval represented by signal g by the sum of the time intervals represented by signals g and h. The result is the ratio of time that signal X is at a value of 1 and the actual period of signal X. This measurement and calculation by the device of
In the device of
The duty cycle as determined by the device of
It is noted that the embodiments described herein are not limited to determining relative quantities. Rather, various embodiments may be used to determine relative quantities, absolute quantities, or both, depending upon the configuration of the device. For the measurement of absolute quantities, analog or digital calibration may be used to cancel out any impact of process variations.
In
As in the other embodiments, signals Y, Z in this embodiment depend only upon signal X, and thus do not need to depend upon any other signal independent from signal X and/or having a known period or frequency, such as a reference clock signal. The device in
A post-processing circuit 503 is configured in this example to receive multiple outputs from TDC 502 digitally indicating the measured position of a rising or falling transition of the signal propagating along the delay chain. Post-processing circuit 503 is configured to calculate the appropriate duty cycle ratio from these outputs. Of course, post-processing circuit 503 may be configured to determine relative and/or absolute quantities other than a duty cycle ratio.
Referring to another illustrative embodiment,
For example, it may be desired that the device of
In alternative embodiments, each TDC 602 may generate a “ready” signal as shown, indicating that the particular TDC 602 has completed a measurement. Where such ready signals are used in TDCs, counter 604 may not be needed or desirable. The ready signals may be generated in a variety of ways, depending upon the type of TDC. For instance, a pulse-shrinking TDC may generate the ready signal in response to the pulse vanishing, which may be detected when the oscillation in the loop has vanished. Or, a Vernier TDC may include or be coupled to logic that detects a transition in the thermometer code already acquired.
Again, as in the other embodiments, signals Y, Z in this embodiment depend only upon signal X, and thus do not need to depend upon any other signal independent from signal X and/or having a known period or frequency, such as a reference clock signal. The device in
A device according
Another illustrative embodiment is shown in
In
Latches 704 receive signals g and h into their data inputs as shown, and output signals t1, t2, t3, and t4 as shown. Latches 704 are each clocked by one of signals p1, p2, p3, and p4 generated by synchronization circuit 705 as shown. Signal p1 flips value in response to rising edges in signal X, signal p2 flips value in response to falling edges in signal X, signal p3 is the inverse of signal p1, and signal p4 is the inverse of signal p2. Thus, signals t1 and t3 are differently delayed versions of signal g, and signals t2 and t4 are differently delayed versions of signal h.
Post-processing circuit 706 receives signals t1 through t4 and, in this example, is configured to perform the following calculation: output=(t3t2−t1t4)/(t22t4+t2t42) to calculate the first derivative of the duty cycle of signal X. This output of post-processing circuit 706 may be updated as new values of t1 through t4 are presented by the outputs of latches 704.
In the embodiment of
A post-processing circuit 804 performs the same calculation as post-processing circuit 706, that is: the output of post-processing circuit 804=(t3t2−t1t4)/(t22t4+t2t42). In this embodiment, signals t1 through t2 may be passed directly from TDCs 703 into post-processing circuit 804.
In each of the various illustrative embodiments described herein, the devices may interface with another device or may be incorporated into a larger device. In either of these cases, it may be desirable that the determined quantity (e.g., raw time intervals, duty cycles, first derivatives of duty cycles, etc.) output by the device be made available to the other device or to another portion of the larger device. These other circuits may be asynchronous to the time-determining devices described herein, especially since the time-determining devices are event-based and are not necessarily clocked. Accordingly, it may be desirable to make the output available to the other circuits when they are ready to fetch the output, such as by storing the output in one or more latches or another type of buffer. For instance, a first-in-first-out (FIFO) buffer may be used to store the post-processing circuit output so that it is ready when the other circuits need the output.
Thus, various illustrative embodiments of event-driven time measurement devices have been described. By extracting timing control signals from the signal being measured itself, various potential disadvantages stemming from using a reference clock may be avoided.
It is further noted that the above embodiments are merely examples. It is within the scope of this disclosure to combine various aspects of the different embodiments to produce variations thereof. For example, any combination of event-generating circuits and post-processing circuits may be used in order to obtain the desired result. In addition, while various types of TDCs may be used in the embodiments described herein, these embodiments may required minor modification to accommodate different TDC types. These modifications are well within the capability of one of ordinary skill in the art, without requiring undue experimentation. For example, the event generation circuit and/or the post-processing circuit may be modified depending upon the type of TDC used. Moreover, while several of the described embodiments measure time intervals and generate signals Y and Z based on transitions in signal X, these and other embodiments may additionally or alternatively measure time intervals and generate signals Y and Z based on other features of signal X, such as spikes in signal X, the crossing of a predetermined reference level, and/or the occurrence of a signal change with at least a certain predetermined rate of change.