Circuits for measuring tof between two electrical signals comprises 1) a slow TAF-DPS clock signal generator for generating a slow clock signal, a fast TAF-DPS clock signal generator for generating a fast clock signal, said slow TAF-DPS clock signal generator comprises a gated ring oscillator and a TAF-DPS frequency synthesizer, said fast TAF-DPS clock signal generator comprises a gated ring oscillator and a TAF-DPS frequency synthesizer; 2) a phase detector for receiving said slow and fast clock signals and detecting point-of-coincidence between said slow and fast clock signals; 3) a first digital counter driven by said slow clock signal for storing the number of slow clock cycles and a second digital counter driven by said fast clock signal for storing the number of fast clock cycles; 4) a calibrator for calibrating said gate ring oscillators; 5) a calculation block for calculating tof measurement result. Methods of using a slow TAF-DPS clock generator and a fast TAF-DPS clock generator for measuring tof between two electrical signals are also disclosed.

Patent
   9379714
Priority
Jun 01 2015
Filed
Jun 01 2015
Issued
Jun 28 2016
Expiry
Jun 01 2035
Assg.orig
Entity
Micro
14
2
currently ok
13. A method of measuring tof between signal transitions of a first and a second electrical signals, comprising the steps of:
receiving a first electrical signal;
receiving a plurality of q second electrical signals where q is an integer of greater than zero;
creating a slow clock signal generator and a plurality of q fast clock signal generators by using gated ring oscillators and TAF-DPS frequency synthesizers and 1×PLLs;
configuring said slow clock signal generator by using a frequency control word Fslow so that its output frequency (period) is set to be 1/f1=T1=Fslow·Δ=I·Δ where Δ is a base time unit and I is an integer of greater than one, configuring said fast clock signal generators by using a plurality of frequency control word Ffast_i so that their output frequencies (periods) are set to be 1/f2_i=T2_i=Ffast_i·Δ=[(I−1)+ri]·Δ, and ri is a fraction in range of [0,1), i=1, 2, . . . , q;
starting the slow clock generator from rising (or falling) edge of said first electrical signal and generating a slow clock signal, starting each fast clock generator of said plurality of q fast clock generators from rising (or falling) edge of a second electrical signal from said plurality of q second electrical signals, generating a plurality of q fast clock signals from said q fast clock generators;
feeding said slow clock signal and said plurality of q fast clock signals to a plurality of q phase detectors, driving a plurality of q first digital counters by said slow clock signal, driving each one of a plurality of q second digital counters by a said fast clock signal from said plurality of q fast clock signals;
generating a plurality of q reset signals from said phase detectors by detecting a plurality of q point-of-coincidences, reading out contents of said plurality of q first and second digital counters after said plurality of q reset signals are received by said plurality of q first and second digital counters and then resetting said digital counters;
calibrating the frequency of said gated ring oscillators;
calculating TOFs between said first and a plurality of q second electrical signals.
1. A system of measuring time-of-Flight (tof) between signal transitions of two electrical signals by using two clock generators, comprising:
a first input for receiving a first electrical signal;
a second input for receiving a second electrical signal;
a third input for receiving a frequency control word Fslow;
a fourth input for receiving a frequency control word Ffast;
a fifth input for receiving an electrical signal of known frequency;
a sixth input for receiving an enable signal;
an output for delivering tof measurement result;
a slow TAF-DPS (time-Average-frequency Direct Period Synthesis) clock generator for generating a slow clock signal, having a first input for receiving said first electrical signal, having a second input for receiving said frequency control word Fslow, having a first output for delivering said slow clock signal, having a second output for delivering an electrical signal for calibration;
a fast TAF-DPS clock generator for generating a fast clock signal, having a first input for receiving said second electrical signal, having a second input for receiving said frequency control word Ffast, having a first output for delivering said fast clock signal, having a second output for delivering an electrical signal for calibration;
a phase detector for detecting point-of-coincidence, having a first input for receiving said slow clock signal, having a second input for receiving said fast clock signal, having an output for delivering a reset signal;
a first digital counter, having a clock input for receiving said slow clock signal, having a reset input for receiving said reset signal from said phase detector; having an output for outputting its content;
a second digital counter, having a clock input for receiving said fast clock signal, having a reset input for receiving said reset signal from said phase detector; having an output for outputting its content;
a calibration block, having an enable input for receiving a signal from said sixth input, having a calibration input for receiving a signal from said fifth input, having a first oscillation input for receiving signal from said second output of slow TAF-DPS clock generator, having a second oscillation input for receiving signal from said second output of fast TAF-DPS clock generator, having an output for delivering calibration result;
a calculation block, having a first input for receiving a first digital value, having a second input for receiving a second digital value, having a third input for receiving a third digital value, having an output for delivering calculation result;
wherein said output of said calculation block is connected to said output;
wherein said output of first digital counter is connected to said first input of said calculation block;
wherein said output of second digital counter is connected to said second input of said calculation block;
wherein said output of calibration block is connected to said third input of said calculation block.
8. A system of measuring time-of-Flight (tof) between signal transitions of two electrical signals by using a plurality of clock generators, comprising:
a first input for receiving an electrical signal Start;
a second multi-bit input for receiving a plurality of q electrical signals Stop1, Stop2, . . . , Stopq where q is an integer of greater than zero;
a third input for receiving a frequency control word Fslow;
a fourth multi-bit input for receiving a plurality of q frequency control word Ffast_1, Ffast_2, . . . , Ffast_q;
a fifth input for receiving an electrical signal of known frequency;
a sixth input for receiving an enable signal;
a multi-bit output for delivering tof measurement result;
a slow TAF-DPS clock generator for generating a slow clock signal, having a first input for receiving said Start signal, having a second input for receiving said frequency control word Fslow, having a first output for delivering said slow clock signal, having a second output for delivering an electrical signal for calibration;
a plurality of q fast TAF-DPS clock generators for generating a plurality of q fast clock signals, each said fast TAF-DPS clock generator having a first input for receiving a Stop signal from said second multi-bit input, each said fast TAF-DPS clock generator having a second input for receiving a frequency control word Ffast from said fourth multi-bit input, each said fast TAF-DPS clock generator having a first output for delivering a fast clock signal, each said fast TAF-DPS clock generator having a second output for delivering an electrical signal for calibration;
a plurality of q phase detectors for detecting a plurality of q point-of-coincidences, each said phase detector having a first input for receiving said slow clock signal, each said phase detector having a second input for receiving a said fast clock signal from one of said q fast TAF-DPS clock generators, each said phase detector having an output for delivering a reset signal;
a plurality of q first digital counters, each said first digital counter having a clock input for receiving said slow clock signal, each said first digital counter having a reset input for receiving a said reset signal from one of said q phase detectors;
each said first digital counter having an output for outputting its content;
a plurality of q second digital counters, each said second digital counter having a clock input for receiving a said fast clock signal from one of said q fast TAF-DPS clock generators, each said second digital counter having a reset input for receiving a reset signal from one of said q phase detectors, each said second digital counter having an output for outputting its content;
a calibration block, having an enable input for receiving a signal from said sixth input, having a calibration input for receiving a signal from said fifth input, having a first oscillation input for receiving signal from said second output of said slow TAF-DPS clock generator, having a multi-bit second oscillation input for receiving signals from said second outputs of said plurality of q fast TAF-DPS clock generators, having an output for delivering calibration result;
a calculation block, having a plurality of q first inputs for receiving a plurality of q first digital values, having a plurality of q second inputs for receiving a plurality of q second digital values, having a third input for receiving a third digital value, having a multi-bit output for delivering calculation result;
wherein said multi-bit output of calculation block is connected to said multi-bit output;
wherein said output of each said first digital counter is connected to each said first input of calculation block;
wherein said output of each said second digital counter is connected to each said second input of calculation block;
wherein said output of calibration block is connected to said third input of calculation block.
2. The system of claim 1, wherein said slow TAF-DPS clock generator comprises:
a gated ring oscillator (GRO) for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said first electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a slow TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Fslow, having an output for delivering said slow TAF clock signal;
a 1×PLL for generating said slow clock signal, having an input for receiving said slow TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said slow clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
3. The system of claim 2, wherein said TAF-DPS frequency synthesizer comprises:
a first K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a second K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a 2→1 multiplexer, having a first input for receiving the output from said first K→1 multiplexer, having a second input for receiving the output from said second K→1 multiplexer, having a control input, having an output;
a toggle flip-flop for generating a pulse train, comprises:
a D-type flip-flop, having a clock input for receiving output from the output of said 2→1 multiplexer, having a data input, having an output for outputting a CLK1 signal;
an inverter, having an input for receiving said CLK1 signal, having an output for outputting a CLK2 signal;
wherein said CLK2 signal is connected to said data input of said D-type flip-flop;
wherein said CLK1 signal contains said pulse train;
a control logic block, having a first input for receiving said frequency control word, having a second input for receiving said phase adjustment control word, having a third input for receiving said enable signal, having a fourth input for receiving said CLK1 signal, having a fifth input for receiving said CLK2 signal, having a first output connected to said control input of said first K→1 multiplexer, having a second output connected to said control input of said second K→1 multiplexer;
wherein said CLK1 signal is connected to the control input of said 2→1 multiplexer;
wherein said CLK1 signal is outputted as said slow TAF clock signal.
4. The system of claim 1, wherein said frequency control word Fslow is set in form of Fslow=I where I is an integer in range of [2, 2K].
5. The system of claim 1, wherein said fast TAF-DPS clock generator comprises:
a gated ring oscillator (GRO) for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said second electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a fast TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Ffast, having an output for delivering said fast TAF clock signal;
a 1×PLL for generating said fast clock signal, having an input for receiving said fast TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said fast clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
6. The system of claim 5, wherein said TAF-DPS frequency synthesizer comprises:
a first K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a second K→1 multiplexer, having a multi-bit reference input for receiving said plurality of K phase-evenly-spaced signals, having a control input, having an output;
a 2→1 multiplexer, having a first input for receiving the output from said first K→1 multiplexer, having a second input for receiving the output from said second K→1 multiplexer, having a control input, having an output;
a toggle flip-flop for generating a pulse train, comprises:
a D-type flip-flop, having a clock input for receiving output from the output of said 2→1 multiplexer, having a data input, having an output for outputting a CLK1 signal;
an inverter, having an input for receiving said CLK1 signal, having an output for outputting a CLK2 signal;
wherein said CLK2 signal is connected to said data input of said D-type flip-flop;
wherein said CLK1 signal contains said pulse train;
a control logic block, having a first input for receiving said frequency control word, having a second input for receiving said phase adjustment control word, having a third input for receiving said enable signal, having a fourth input for receiving said CLK1 signal, having a fifth input for receiving said CLK2 signal, having a first output connected to said control input of said first K→1 multiplexer, having a second output connected to said control input of said second K→1 multiplexer;
wherein said CLK1 signal is connected to the control input of said 2→1 multiplexer;
wherein said CLK1 signal is outputted as said fast TAF clock signal.
7. The system of claim 1, wherein said frequency control word Ffast is set in form of Ffast=(I−1)+r where r is a fraction in range of [0, 1).
9. The system of claim 8, wherein said slow TAF-DPS clock generator comprises:
a gated ring oscillator (GRO) for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said first electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a slow TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Fslow, having an output for delivering said slow TAF clock signal;
a 1×PLL for generating said slow clock signal, having an input for receiving said slow TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said slow clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
10. The system of claim 8, wherein said frequency control word Fslow is set in form of Fslow=I where I is an integer in range of [2, 2K].
11. The system of claim 8, wherein each said fast TAF-DPS clock generator comprises:
a GRO for generating a plurality of K phase-evenly-spaced signals where K is an integer of greater than one, having an enable input for receiving said second electrical signal, having an output for delivering said plurality of K phase-evenly-spaced signals, comprising:
a plurality of delay stages configured as a ring oscillator, outputs from said delay stages form said plurality of K phase-evenly-spaced signals;
an enable cell for controlling electrical oscillation of said GRO, having an input pin for receiving signal from said enable input;
a TAF-DPS frequency synthesizer for generating a fast TAF clock signal, having a first input for receiving said plurality of K phase-evenly-spaced signals from said GRO, having a second input for receiving said frequency control word Ffast, having an output for delivering said fast clock signal;
a 1×PLL for generating said fast clock signal, having an input for receiving said fast TAF clock signal from said TAF-DPS frequency synthesizer as reference input of the PLL, having an output for delivering said fast clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
12. The system of claim 8, wherein said frequency control word Ffast_i is set in form of Ffast_i=(I−1)+ri where ri is a fraction in range of [0, 1), i=1, 2, . . . , q.
14. The method of claim 13, wherein the creating of said slow clock signal generator comprises the steps of:
creating a first input for receiving said first electrical signal, creating a second input for receiving said frequency control word Fslow for configuring output frequency of said slow clock signal generator, creating a first output for delivering generated clock signal, creating a second output for delivering a signal for calibration, comprising the steps of:
creating a plurality of K phase-evenly-spaced signals by using said gated ring oscillator where K is an integer of greater than one, oscillation of said gated ring oscillator is controlled by said first electrical signal;
generating a slow TAF clock signal by using a TAF-DPS synthesizer, said TAF-DPS synthesizer uses said plurality of K phase-evenly-spaced signals as its input, said TAF-DPS synthesizer uses said frequency control word Fslow to synthesize a clock frequency for said slow TAF clock signal;
generating said slow clock signal by using a 1×PLL, said 1×PLL uses said slow TAF signal as its reference input, output of said 1×PLL is said slow clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
15. The method of claim 13, wherein the creating of each one of said plurality of q fast clock signal generators comprises the steps of:
creating a first input for receiving a second electrical signal from said plurality of q second electrical signals, creating a second input for receiving a frequency control word Ffast_i from said plurality of q frequency control words for configuring output frequency of said fast clock signal generator, creating a first output for delivering generated clock signal, creating a second output for delivering a signal for calibration, comprising the steps of;
creating a plurality of K phase-evenly-spaced signals by using said gated ring oscillator where K is an integer of greater than one, oscillation of said gated ring oscillator is controlled by said second electrical signal;
generating a fast TAF clock signal by using TAF-DPS synthesizer, said TAF-DPS synthesizer uses said plurality of K phase-evenly-spaced signals as its input, said TAF-DPS synthesizer uses said frequency control word Ffast_i to synthesize a clock frequency for said fast TAF clock signal;
generating said slow clock signal by using a 1×PLL, said 1×PLL uses said fast TAF signal as its reference input, output of said 1×PLL is said fast clock signal, said 1×PLL is configured in a way that frequency ratio of said input and said output is one.
16. The method of claim 13, wherein the detection of a plurality of q point-of-coincidence is accomplished by comparing rising (or falling) edges of said slow clock signal and each one of said plurality of q fast clock signals, said plurality of q point-of-coincidence are reached when said edges are aligned in time, respectively.
17. The method of claim 13, wherein calibration of gated ring oscillator frequency is accomplished by counting the number of gated ring oscillator's oscillation cycles within p cycles of a reference signal of known frequency where p is an integer of greater than zero and calibration result is stored in Ncal, tof calculation is carried out by using τ=[(n1−n2)·I+(1−r)·n2]/(K·Ncal·fcal) where n1 and n2 are outputs of said first and second digital counters, respectively, fcal is frequency of said reference signal.
18. The method of claim 17, wherein the calibrating of the frequency of gated ring oscillator comprises the step of:
calibrating m number of gated ring oscillators and producing Ncal_1, Ncal_2, . . . , Ncal_m where m is an integer of greater than zero;
deriving calibration result Ncal by Ncal=Σ(Ncal_i)/m, i=1, 2, . . . , m.
19. The method of claim 18, wherein the calculation of Ncal_i of a said gated ring oscillator comprises the step of:
counting the number of oscillations of said gated ring oscillator within p cycles of a reference signal of known frequency;
deriving calibration result Ncal_i from dividing said number of oscillations by p.

The present invention generally relates to the field of integrated circuit. More specifically, embodiments of the present invention pertain to circuits and methods of using one kind of frequency synthesizer, Time-Average-Frequency Direct Period Synthesis, to measure Time-of-Flight (TOF).

Time-of-Flight (TOF) measures the time that it takes for an object, particle or acoustic/electromagnetic to travel a distance through a medium. This measurement can be used as a way to measure velocity or path-length through the given medium, or as a way to learn about the particle or the medium (such as composition or flow rate). The traveling object may be detected directly (e.g., ion detector in mass spectrometry) or indirectly (e.g., light scattered from an object in laser Doppler velocimetry).

In ultrasonic flow meter measurement, in order to estimate total flow velocity, TOF is used to measure the speed of a signal propagating upstream, and downstream, of flow of a media. This measurement is made in a collinear direction with the flow. In planar Doppler velocimetry (optical flow meter measurement), TOF measurements are made perpendicular to the flow by timing when individual particles cross two or more locations along the flow. In optical interferometry, the path-length difference between sample and reference arms can be measured by TOF methods, such as frequency modulation followed by phase shift measurement. Such methods are used in laser radar and laser tracker systems for medium to long range distance measurement.

Refer to FIG. 1A, an exemplary sensor system has a transmitter 110 and a receiver 120. A target 130 is located in front of the sensor by certain distance. The sensor system is used to measure this distance between the sensor and the target. An acoustic or electromagnetic wave 111 is transmitted from the transmitter. The wave is reflected by the target. Some portion of the reflected wave 121 is received by the receiver. The TOF is the time elapsed between the moment that the wave is being transmitted and the moment of the wave being received. The distance can be calculated from the measured TOF since the speed of the wave is known.

In FIG. 1B, an electric circuit called Time-to-Digital Converter (TDC) is used to measure the time elapsed between the transits of signals Start and Stop. Signal Start is delayed by a plurality of n delay lines. The delay lines have time delays of t0+σ, t0+2·σ, t0+3·σ, . . . , t0+n·σ, respectively. The ends of the delay lines are connected to the data inputs of a plurality of n flip-flops. The flip-flops are clocked by the Stop signal. The outputs of the flip-flops are fed to a decoder circuit. The value represented by these outputs is the time duration between Start and Stop. The time resolution is σ. In TOF measurement discussed in FIG. 1A, the Start signal represents the moment that the transmitter starts to transmit the wave. The Stop signal is the moment of the wave reaching the receiver.

FIG. 1C is another type of TDC where the Start signal is passed though a delay line made of a series of identical delay cells. The time delay associated with each delay cell is σ. Signals are tapped out from each of those delay cells and fed to a group of flip-flops. The flip-flops are clocked by the Stop signal. The outputs of the flip-flops are fed to a decoder whose output value represents the TOF between Start and Stop. The time resolution is σ. FIG. 1D illustrates a third type of TDC where both the Start and Stop signals are passed through delay lines. The two delay lines are however made of delay cells of slightly different time delays, σ1 and σ2, respectively. Thus the time resolution is improved to σ1−σ2, assuming σ12.

One problem with the method of using TDC to measure TOF is that the absolution value of the TOF measurement is difficult to be known in high accuracy. To get high accuracy on TOF measurement, the precise delay values of σ, σ1, σ2 must be known. This is difficult unless the delay line is locked to a known frequency by PLL or DLL for the cases of FIG. 1C and FIG. 1D. For the case of FIG. 1B, high accuracy is virtually impossible since the delay value depends on the capacitor C's capacitance value which could varies in large degree under different PVT (process, voltage, temperature) condition. For these reasons, TDC is not good for TOF measurement. However, they are useful to detect the relative phase different between two signals. This is especially applicable for phase detector in Phase Locked Loop design.

As discussed previously, the time resolution of TDC is limited by cell delay a. It can be improved by the method of using delay difference of two delay cells: σ1−σ2. The principle of using the delay difference approach to measure TOF can be illustrated by the example of using Vernier caliper to measure distance. Refer now to FIG. 2, a Vernier caliper is used to measure distance. It has two scales: the main scale 210 and the Vernier scale 220. The Vernier scale is constructed in such a way that its graduations are at a slightly smaller spacing than those on the main scale. When the zero point of the Vernier scale is coincident with the start 230 of the main scale, none but the last graduation in Vernier scale coincides with a graduation 240 on the main scale. Therefore, N graduations of the Vernier scale cover N−1 graduations of the main scale. N is defined in this application as “Vernier factor”. In Vernier scale, its graduation is spaced at a constant fraction of that of main scale. For the Vernier caliper displayed in FIG. 2, N=50. Thus, the measurement resolution is 1 mm/50=0.02 mm.

For an example of N=10, the marks on the Vernier scale is spaced nine tenths of those on the main scale. If the two scales are put together with zero points aligned, the first mark on the Vernier scale is one tenth short of the first main scale mark, the second two tenths short, and so on up to the ninth mark which is misaligned by nine tenths. Only when a full ten marks are counted is there an alignment since the tenth mark is ten tenths (a whole main scale unit short). At this time, the tenth mark on Vernier scale aligns with the ninth mark on the main scale. Now if the Vernier is moved by a small amount, for example one tenth of the main scale, the only pair of marks that come into alignment are the first pair since these were the only ones originally misaligned by one tenth. If it is moved by two tenths, the second pair aligns since these are the only ones originally misaligned by that amount. If it is moved by five tenths, the fifth pair aligns; and so on. For any movement, only one pair of marks aligns and that pair shows the value between the marks on the main scale.

Refer now to FIG. 3, the Vernier method is applied to build an electronic system 300 of measuring TOF. System 300 has two oscillators: a slow oscillator 330 and a fast oscillator 340 with oscillation frequencies f1 and f2, respectively. Their output signals, slow clock 331 and fast clock 341, are fed to a phase detector 350. System 300 has two digital counters: counter#1 360 and counter#2 370. The counters are driven by signals slow clock 331 and fast clock 341, respectively. When the edges of slow clock and fast clock are aligned, a point-of-coincidence is reached. At this moment, the phase detector 350 generates a signal Reset 351 that is used to read out the counters' contents, n1 361 and n2 371, and then reset the counter#1 360 and counter#2 370.

System 300 is used to measure the time elapsed between signals Start 310 and Stop 320. The time elapsed is the TOF whose value is τ 380. Signal Start 310 is used to enable the slow oscillator 330 and signal Stop is used to enable the fast oscillator 340. FIG. 4 shows exemplary waveforms. As shown, the slow clock 430 with period T1 is enabled by Start 410 and the fast clock 440 with period T2 is enabled by Stop 420. The TOF is the time difference between Start 410 and Stop 420. The value of TOF is τ 460. When the point-of-coincidence 450 is reached, equation (1) is established and TOF value τ can be calculated.
τ+n2·T2=n1·T1custom characterτ=n1·T1−n2·T2=n1/f1−n2/f2  (1)
τ=(n1−n2)/(f1/df)+n1·df/[f1·(f1+df)]=(n1−n2)/f2+n1·df/(f1·f2   (2)

If the fast clock's frequency f2 is expressed as f2=f1+df, the TOF value τ can be derived as in (2). From (2), it can be seen that high measurement resolution on τ can be achieved by small df. Similar to the case of Vernier caliper where the larger the Vernier factor N is, the higher the measurement resolution will be. In the case of system of 300, the smaller the df is, the higher the measurement resolution will be. The key requirement for system 300 is therefore the frequency generation for the slow and fast oscillators. Their frequencies must be generated in high accuracy and the frequency granularity of the frequency generators must be made as small as possible.

This “Discussion of the Background” section is provided for background information only. The statements in this “Discussion of the Background” are not an admission that the subject matter disclosed in this “Discussion of the Background” section constitutes prior art to the present disclosure, and no part of this “Discussion of the Background” section may be used as an admission that any part of this application, including this “Discussion of the Background” section, constitutes prior art to the present disclosure.

It is therefore an object of the present invention to use the method of Time-Average-Frequency direct period synthesis (TAF-DPS) to create two clock generators with highly tunable frequencies. It is a further object of the present invention to use said two clock generators for generating two clock signals with slightly different frequencies and use said clock signals to measure TOF through applying Vernier method.

The present invention relates to circuits and systems that use TAF-DPS to create the functional clock signals for measuring TOF. Thus, the present invention can take advantage of the powerful frequency generation capability provided by TAF-DPS. This can result in very fine frequency granularity that can be used to differentiate the two said clock generators. This fact subsequently improves the resolution of the TOF measurement.

FIG. 1A is a diagram showing the scheme of using a transmitter and receiver pair for measuring TOF.

FIG. 1B is an electrical diagram, in block form, showing the scheme of evaluating the time delay between two signals using a RC-delay based Time-to-Digital Converter.

FIG. 1C is an electrical diagram, in block form, showing the scheme of evaluating the time delay between two signals using a delay-chain Time-to-Digital Converter.

FIG. 1D is an electrical diagram, in block form, showing the scheme of evaluating the time delay between two signals using a two-delay-chain Time-to-Digital Converter.

FIG. 2 is an exemplary Vernier caliper for measuring distance.

FIG. 3 is an electrical diagram, in block form, showing the principle of using two oscillators of slightly different frequencies for measuring TOF.

FIG. 4 is a diagram showing the waveforms of using two oscillators of slightly different frequencies for measuring TOF.

FIG. 5 is an electrical diagram, in block form, showing the general architecture of TAF-DPS.

FIG. 6 is an electrical diagram, in block form, showing the circuit structure of TAF-DPS.

FIG. 7 is an electrical diagram, in block form, illustrating an embodiment of present invention of using TAF-DPS Vernier caliper to create two clock signals of slightly different frequencies.

FIG. 8 is an electrical diagram, in block form, illustrating an embodiment of present invention of using TAF-DPS Vernier caliper to measure TOF.

FIG. 9 is an electrical diagram, in block form, illustrating another embodiment of present invention of using TAF-DPS Vernier caliper to create a clock signal of first frequency and a plurality of clock signals of second frequency.

FIG. 10 is an electrical diagram, in block form, illustrating another embodiment of present invention of using TAF-DPS Vernier caliper of a plurality of clock signals of second frequency to measure TOF.

FIG. 11 is the procedure illustrating the steps of using TAF-DPS clock generators to measure TOF according to present invention.

Reference will now be made in detail to various embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the following embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be readily apparent to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present invention.

Some portions of the detailed descriptions that follow are presented in terms of processes, procedures, logic blocks, functional blocks, processing, and other symbolic representations of operations on data bits, data streams or waveforms within a computer, processor, controller and/or memory. These descriptions and representations are generally used by those skilled in the arts of VLSI-circuit-and-system design to effectively convey the substance of their work to others skilled in the art. A process, procedure, logic block, function, process, etc., is herein, and is generally, considered to be a self-consistent sequence of steps or instructions leading to a desired and/or expected result. The steps generally include physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical, magnetic, optical, or quantum signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer or data processing system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, waves, waveforms, streams, values, elements, symbols, characters, terms, numbers, or the like.

It should be borne in mind, however, that all of these and similar terms are associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise and/or as is apparent from the following discussions, it is appreciated that throughout the present application, discussions utilizing terms such as “processing,” “operating,” “computing,” “calculating,” “determining,” “manipulating,” “transforming,” “displaying” or the like, refer to the action and processes of a computer or signal processing system, or similar processing device (e.g., an electrical, optical, or quantum computing or processing device), that manipulates and transforms data represented as physical (e.g., electronic) quantities. The terms refer to actions and processes of the processing devices that manipulate or transform physical quantities within the component(s) of a system or architecture (e.g., registers, memories, flip-flops, other such information storage, transmission or display devices, etc.) into other data similarly represented as physical quantities within other components of the same or a different system or architecture.

Furthermore, for the sake of convenience and simplicity, the terms “clock,” “time,” “rate,” “period,” “frequency” and grammatical variations thereof are generally used interchangeably herein, but are generally given their art-recognized meanings. Also, for convenience and simplicity, the terms “data,” “data stream,” “waveform” and “information” may be used interchangeably, as may the terms “connected to,” “coupled with,” “coupled to,” and “in communication with” (each of which may refer to direct or indirect connections, couplings, and communications), as may the terms “electrical path,” “channel,” “wire” (each of which may refer to a physical channel for transferring electrical signal), as may the terms “signal,” “pulse,” “pulse train,” “a sequence of digital data” (each of which may refer to an electrical signal that has only two values: zero and one), as may the terms “input,” “input port,” “input pin” (each of which may refer to a physical channel for receiving data), as may the terms “output,” “output port,” “output pin” (each of which may refer to a physical channel for sending data), but these terms are also generally given their art-recognized meanings.

Referring now to FIG. 5, the principle of TAF-DPS clock generator 500 will be explained. A TAF-DPS frequency synthesizer 510 has two inputs: a base unit Δ 520 and a frequency/period control word 530 F=I+r where I is an integer of greater than one and r is a fraction. TAF-DPS 510 has one output CLK 550. It is the synthesized Time-Average-Frequency clock signal. Starting from the base unit 520, the TAF-DPS creates two types of cycles TA=I·Δ and TB=(I+1)·Δ. Its output CLK is a clock pulse train 540 that contains both type of cycles TA 541 and TB 542. They are used in an interleaved fashion. The fraction r represents the occurrence possibility of cycle type TB (and thus it also determines the possibility of TA).

The base unit Δ 520 is usually generated from a multi-stage VCO (voltage controlled oscillator) 570. The Δ is the time span between any two adjacent VCO outputs. The VCO can be locked to a reference frequency of known frequency through a Phase Locked Loop (PLL) 560. As a result, the VCO frequency fvco is a known value. In FIG. 5, VCO 570 has K phase-evenly-spaced outputs where K is an integer of greater than one. Consequently, the base unit A can be calculated using equation (3).
Δ=TVCO/K=1/(K·fvco)  (3)

Referring now to FIG. 6, in one embodiment of present invention, an exemplary TAF-DPS frequency synthesizer 600 comprises two K→1 multiplexers 611 and 612, a 2→1 multiplexer 620, a D-type flip-flop configured as toggle flip-flop 630 and a control logic block 640. The TAF-DPS frequency synthesizer 600 takes signal Multiphase_Input 660 as an input. Multiphase_Input 660 has K evenly-spaced phases with frequency fr. The time span between any two logically adjacent phases is Δ 650 and it is calculated as Δ=Tr/K=1/(K·fr). The TAF-DPS frequency synthesizer 600 takes another signal F 670 as input to control its output frequency (or period). The TAF-DPS frequency synthesizer 600 has an output signal CLK_OUT 680 with frequency fTAF.

The TAF-DPS output's period can be calculated as TTAF=F·Δ. The control word F can take value in the range of [2, 2K]. When only integer is used in control word F, the TAF-DPS output is a signal of conventional frequency. When control word F contains fractional part, the TAF-DPS uses Time-Average-Frequency concept in its output signal. The Time-Average-Frequency concept is explained in chapter 3 of reference [1]. The working principle of TAF-DPS can be found in chapter 4 of reference [1]. TAF-DPS frequency synthesizer 600 can function as the circuit block 510 in FIG. 5. The signal F 670 functions as the control word F 530 in FIG. 5. The signal CLK_OUT 680 functions as the signal CLK 550 in FIG. 5.

The signal CLK_OUT 680 output frequency fTAF can be calculated using (4) (please see chapter 4 of reference [1]). When PLL 560 of FIG. 5 is used as the circuit for generating base unit Δ, equation (5) can be derived from (3) and (4).
fTAF=1/TTAF=1/(F·Δ)  (4)
fTAF=(K/Ffvco  (5)

Referring now to FIG. 7, an embodiment implementing the TAF-DPS Vernier Caliper for generating two signals of slightly different frequencies according to the present invention will be explained. Clock generator 750 comprises a TAF-DPSslow 751, a Phase Locked Loop with a dividing ratio of 1 (1×PLL) 759, and a Gated Ring Oscillator (GRO) 752. GRO 752 comprises a plurality of delay stages 753 that can be either differential or single-ended. The delay stages are configured as a ring oscillator with an oscillation enabling cell 754. One input of the enabling cell 754 is connected to a signal Start 755. The state of the Start 755 controls the on-and-off of the oscillation. A “high” state enables the oscillation and a “low” state disables the oscillation, or vice versa. The GRO 752 has K phase-evenly-spaced outputs where K is an integer of greater than one. The time difference between any two adjacent phases can be calculated as Δ=1/(K·fGRO) where fGRO is the oscillation frequency of GRO 752. These outputs are fed to TAF-DPSslow 751. The GRO 752 has an output SGRO_S 758 delivered from one of the delay stage's output. SGRO_S 758 can also be one of the members of said K phase-evenly-spaced outputs. TAF-DPSslow 751 has an input for receiving frequency control word Fslow 756. It functions as the main scale of TAF-DPS Vernier caliper. Its frequency (period) is T1=Fslow·Δ. The frequency (period) value is T1=I·Δ when Fslow takes the value of I where I is an integer of greater than one. The output from TAF-DPSslow 751 is fed to the 1×PLL 759. The output of 1×PLL 759 is the signal Slow Clock 757.

Clock generator 760 comprises a TAF-DPSfast 761, a 1×PLL 769 and a Gated Ring Oscillator (GRO) 762. GRO 762 is structurally identical to GRO 752. It comprises a plurality of delay stages 763. The delay stages are configured as a ring oscillator with an oscillation enabling cell 764. One input of the enabling cell 764 is connected to a signal Stop 765. The state of the Stop signal 765 controls the on-and-off of the oscillation. A “high” state enables the oscillation and a “low” state disables the oscillation, or vice versa. The GRO 762 has K phase-evenly-spaced outputs where K is an integer of greater than one. The time difference between any two adjacent phases can be calculated as Δ=1/(K·fGRO) where fGRO is the oscillation frequency of GRO 762 and GRO 752 since they are structurally identical. These outputs are fed to TAF-DPSfast 761. The GRO 762 has an output SGRO_F 768 delivered from one of the delay stage's output. SGRO_F 768 can also be one of the members of said K phase-evenly-spaced outputs. TAF-DPSfast 761 has an input for receiving frequency control word Ffast 766. It functions as the Vernier scale of TAF-DPS Vernier caliper. Its frequency (period) is T2=Ffast·Δ. The frequency (period) value is T2=[(I−1)+r]·Δ when Ffast takes the value of (I−1)+r where I is an integer of greater than one and r is a fraction. The output from TAF-DPSfast 761 is fed to the 1×PLL 769. PLL 769 is structurally identical to PLL 759. The 1×PLL converts the Time-Average-Frequency signal outputted from TAF-DPSfast 761 to a conventional frequency signal. The output of 1×PLL 769 is the signal Fast Clock 767.

T1 functions as the graduation of main scale in TAF-DPS Vernier caliper and T2 is the graduation of Vernier scale. The Vernier factor N can be found using the principle that N graduations on Vernier scale covers the length (the time duration) of N−1 graduations on main scale. N is an integer. The calculation is carried out in (6) and the result is expressed in (7). From (7), it is understood that the TAF-DPS Vernier caliper's resolution is programmable since its Vernier factor N can be changed by the values of I and r. In TAF-DPS circuit, the I and r are user inputs. Table I provides some numerical examples. From this table, it is seen that TAF-DPS Vernier caliper possesses the capability of producing very fine measurement resolution.
N·T2=(N−1)·T1→N·[(I−1)+r]·Δ=(N−1)·I·Δ  (6)
N=I/(1−r)  (7)

TABLE I
The Vernier factor N in TAF-DPS Vernier caliper
(1 − r) = 2−0 (1 − r) = 2−1 (1 − r) = 2−2 (1 − r) = 2−4 (1 − r) = 2−8 (1 − r) = 2−16 (1 − r) = 2−24
I = 8  8 16  32 128 2048  524288 134217728
I = 16 16 32  64 256 4096 1048576 268435456
I = 32 32 64 128 512 8192 2097152 536870912
I = 64 64 128  256 1024  16384  4194304 1073741824 

τ=n1·T1−n2·T2=n1·I·Δ−n2·[(I−1)+r]·Δ  (8)
τ=(n1−n2I·Δ+(1−rn2·Δ=(n1−n2T1+(1−rn2·Δ  (9)

Clock generator 750 can function as the slow oscillator 330 in FIG. 3 and clock generator 760 can function as the fast oscillator 340 in FIG. 3. Refer now back to FIG. 4 and equation (1), the principle of using TAF-DPS Vernier caliper to measure TOF will now be explained. The TOF can be measured by using the calculations carried out in (8) and (9). Some observations on resolution can be made as follow. In (9), the first part (n1−n2)·T1 represents the number of slow clock cycles. This is the TOF measurement result obtained by directly using a digital counter. Its time resolution is the slow clock cycle. It is the “integer part” of the TOF measurement. The second part (1−r)·n2·Δ is the resolution achieved beyond the digital counter. It is the “fractional part” of the measurement that is made possible by the Vernier method. It is the sub-T resolution. In other words, it is the time resolution which cannot be reached by using digital counter. A special case is n1=n2=n and r=0. In this case, τ=n·Δ. This situation is exactly what is illustrated in FIG. 4. In this case, the resolution on measuring τ is Δ, which is smaller than T1 or T2 (i.e. it is sub-T resolution). When r≠0, it is possible that the value of (1−r)·n2·Δ be smaller than Δ. In circuit implementation, Δ usually represents one gate delay. Therefore, in TAF-DPS Vernier caliper, the resolution can reach sub-Δ (i.e. the TOF measurement resolution res(τ)<Δ) by using appropriate value for r.
Ncal=fGRO/fcal=Tcal/TGRO=Tcal/(K·Δ)=1/(K·Δ·fcal)→Δ=1/(K·Ncal·fcal)  (10)
τ=[(n1−n2I+(1−rn2]/(K·Ncal·fcal  (11)

In practice, the value of Δ might not be precisely known since the GROs are free-run. In circuit design, the range of the GRO oscillation frequency can be controlled and its value can be estimated. However, at any given moment, its precise value is difficult to be known for sure. For this reason, a reference signal of known frequency has to be used to calibrate it. In system, a stable reference frequency fcal can be incorporated to calibrate the FGRO. Within one cycle of Tcal, the number of pulses Ncal of TGRO can be counted. In some cases, more cycles of Tcal can be used to improve the accuracy of calculating Ncal by using the average of several Ncal values. Δ can be calculated from (10). Subsequently, the absolution value of TOF measurement τ is derived in (11).

Exemplary TAF-DPS Vernier Caliper configuration #1 is now described. In this case, no fraction is used in the frequency control word Ffast. Assume that the gated ring oscillators 752 and 762 run at frequency of fGRO=200 MHz (TGRO=5 ns). Further assume that, inside each GRO, there are 16 differential stages (K=32). This leads to Δ=TGRO/32=156.25 ps. For TAF-DPSslow 751, frequency control word Fslow 756 takes value of Fslow=I=50. This results in T1=50·Δ=7.8125 ns. For TAF-DPSfast 761, frequency control word Ffast 766 takes value of Ffast=I−1=49. This results in T2=49·Δ=7.65625 ns. The Vernier factor in this configuration can be calculated as N=I=50. If the calibration frequency is chosen as fcal=32.768 KHz (Tcal=30.5176 ms), the Ncal is expected to be in the neighborhood of 6103. Three counters could be used for holding the values of n1, n2 and Ncal.

Table II gives several examples of hypothetic TOF measurements. They can be used to illustrate the working mechanism of this method. There are six different TOFs measured in this table. For each measurement, the TOF measurement τ comprises two parts: τ=τintfrac. It is worth to mention that the base unit for TOF measurement in this approach is Δ. The two scales are T1=50·Δ (the main scale) and T2=49·Δ (the Vernier scale). However, the Δ is not explicitly used in the calculation. It is indirectly included in the calculation through fGRO and fcal.

TABLE II
TOF measurements from TAF-DPS Vernier caliper configuration #1
n1 = 10000, n2 = 38 n1 = 9, n2 = 9
Meas. integer part, Meas. fractional part Meas. integer part Meas. fractional part
τint τfrac τint τfrac
fGRO = 200 MHz 9962 fslow cycles 38Δ1 zero fslow cycle
Ncal = 6103 77.83 us 5.9 ns 0 us 1.41 ns
fGRO = 175 MHz 9962 fslow cycles 38Δ zero fslow cycle
Ncal = 5340 88.96 us 6.8 ns 0 us 1.61 ns
fGRO = 225 MHz 9962 fslow cycles 38Δ zero fslow cycle
Ncal = 6866 69.19 us 5.3 ns 0 us 1.25 ns
1T1 = I · Δ = 50Δ is the size of a full cycle of the slow clock. Thus, this number is called the fractional part of the measurement since 38Δ is smaller than one T1.

Exemplary TAF-DPS Vernier Caliper configuration #2 is now described. In this case, a fraction is used in frequency control word Ffast 766. For TAF-DPSslow 751, its frequency control word Fslow take the value of Fslow=I=50. This leads to T1=50·Δ=7.8125 ns. For TAF-DPSfast 761, its frequency control word Fslow takes the value of Fslow=(I−1)+r=49+r. This leads to T2=(49+r)·Δ. The Vernier factor is N=I/(1−r)=49/(1−r). The rest of parameters are the same as that of the previous case.

In this case, we assume n1=n2=n. Under this setting, we measure smaller TOFs. In other words, we only study the fractional portion of the measurement (since the integer portion is straightforward and it is already understood in previous case). We further assume fGRO=200 MHz (Ncal=6103). Under this condition, from (11), we have τ=(1−r)·n/(K·Ncal·fcal). In this example, the fraction r in the frequency control word is chosen in such way that the values of 1−r are 20, 2−1, 2−8, 2−16, and 2−24, respectively. According to equation (7), the Vernier factor is set to be 50, 100, 12800, 3276800 and 838860800, respectively. It is expected that the time resolution on measuring TOF will be greatly enhanced with large Vernier factor. The numbers given in table III confirm this predication.

TABLE III
TOF measurements from TAF-DPS Vernier caliper configuration #2
n = 10 n = 100 n = 1000 n = 10000
(1-r) = 20 τ = 10Δ τ = 100Δ+ τ = 1000Δ+ τ = 10000Δ+
→ N = 50 1.56 ns 15.6 ns 156 ns 1.56 us
(1-r) = 2−1 τ = 5Δ τ = 50Δ+ τ = 500Δ+ τ = 5000Δ+
→ N = 100 0.78 ns 7.8 ns 78 ns 780 ns
(1-r) = 2−8 τ = 0.0390625Δ τ = 0.390625Δ τ = 3.90625Δ τ = 39.0625Δ
→ N = 12800 0.6 ps 6 ps 60 ps 600 ps
(1-r) = 2−16 τ = 0.000152588Δ τ = 0.001525879Δ τ = 0.015258789Δ τ = 0.152587891Δ
→ N = 3276800 0.02 ps 0.2 ps 2 ps 20 ps
(1-r) = 2−24 τ = 5.96046E−07Δ τ = 5.96046E−06Δ τ = 5.96046E−05Δ τ = 0.000596046Δ
→ N = 838860800 0.09 fs 0.9 fs 9 fs 90 fs
+These values are invalid (not produced from the counters) since they are greater than T1 → n value is not realistic for this Vernier factor setting.

In configuration #1, the frequency control words for the TAF-DPSslow and TAF-DPSfast are Fslow=I=50 and Ffast=I−1=49, respectively. This results in the main scale of T1=50·Δ and the Vernier scale of T2=49·Δ. The Vernier factor is 50. In configuration #2, taking the case of 1−r=2−8 for example, Fslow=I=50 and Ffast=I−1+2−8=49.00390625. Thus, the Vernier factor is 12800. In this case, the main scale is still T1=50·Δ. The Vernier scale is not fixed; it varies. For every 256 (=28) cycles in Vernier scale, there are 255 T2_A=49·Δ and one T2_B=50·Δ. In average, the size of Vernier scale is T2=49.00390625·Δ. As a result, it can reach a fine measurement resolution.

Refer now to FIG. 8, an embodiment of present invention of using TAF-DPS Vernier caliper 800 to measure TOF will now be explained. A Slow TAF-DPS Clock Generator 830 has two inputs: ENslow 834 for enabling its oscillation and Fslow 833 for controlling its output frequency (period). It has two outputs: Slow Clock 831 generated from TAF-DPS frequency synthesizer and SGRO_S 832 generated from GRO. Slow TAF-DPS Clock Generator 830 is the TAF-DPS clock generator 750 described in FIG. 7. SGRO_S 832 can be one of the members from the plurality of K outputs. ENslow 834 is connected to the signal Start 810. A Fast TAF-DPS Clock Generator 840 has two inputs: ENfast 844 for enabling its oscillation and Ffast 843 for controlling its output frequency (period). It has two outputs: Fast Clock 841 generated from TAF-DPS frequency synthesizer and SGRO_S 842 generated from GRO. Fast TAF-DPS Clock Generator 840 is the TAF-DPS clock generator 760 described in FIG. 7. SGRO_F 842 can be one of the members from the plurality of K outputs. ENfast 844 is connected to the signal Stop 820.

Both Slow Clock 831 and Fast Clock 841 are fed to phase detector 850. Slow Clock 831 and Fast Clock 841 are also used to drive Counter #1 860 and Counter #2 870, respectively. Phase detector 850 has an output Reset 851 that is used to control the Counter #1 860 and Counter #2 870. Signal Reset 851 becomes active when point-of-coincidence is detected. The point-of-coincidence is reached when the edges of Slow Clock 831 and Fast Clock 841 are aligned. At this moment, the contents of Counter #1 860 and Counter #2 870 are read out and stored in registers as values n1 861 and n2 871, respectively. The counters are subsequently reset.

System 800 has a block of A-Calibrator 880 for calibrating the base time unit A. It has four inputs: EN 882 for enabling the A-Calibrator 880; Scal 881 for receiving a reference signal of known frequency; SGRO_S 832 and SGRO_F 842 are fed into Δ-Calibrator 880 for being calibrated. EN 882 can connect to Reset 851 or other user-controlled signals. Scal 881 comes from external source of known frequency fcal. As an example, it could be a 32.768 KHz real time clock. Δ-Calibrator 880 has an output Ncal 884 whose value can be derived by using equation (10). In the process of calculating Ncal, either signal SGRO_S 832 or SGRO_F 842 can be used to count against the reference signal Scal 881. In some case, both signals SGRO_S 832 and SGRO_F 842 can be used and the Ncal 884 can be the derived from the average of the results obtained.

System 800 has another block of Calculation 890 for calculating the TOF measurement result. From the values of n1 861, n2 871, Ncal 884, fcal and the integer value I used in Fslow and Ffast, equation (11) can be used to derive the TOF value τ 891.

Refer now to FIG. 9, a plurality of fast clocks can be generated by using a plurality of GROs and TAF-DPSfasts. Clock generator 950 is used to create the signal Slow Clock 952. Its frequency control word is Fslow 951. Its output frequency (period) is 1/f1=T1=Fslow·Δ=I·Δ where I is an integer of greater than one. The signal Slow Clock 952 is enabled by signal Start 953. A plurality of q Fast Clock signals 9621, 9622, . . . , 962q are created by a plurality of q clock generators 9601, 9602, . . . , 960q, respectively, where q is an integer of greater than zero. Said plurality of q clock generators use a plurality of q frequency control words Ffast_1 9611, Ffast_2 9612, . . . , Ffast_q 961q to control their output frequencies. Said plurality of q frequency control words take the values of Ffast_i=[(I−1)+ri] where ri is a fraction in range of [0,1), i=1, 2, . . . , q. As a result, said plurality of q Fast Clock signals 9621, 9622, . . . , 962q have output frequencies (periods) 1/f2_i=T2_i=Ffast_i·Δ=[(I−1)+ri]·Δ, i=1, 2, . . . , q. Said plurality of q clock generators 9601, 9602, . . . , 960q are enabled by signal Stop1 9631, Stop2 9632, . . . , Stopq 963q, respectively. In certain case, signals Stop1 9631, Stop2 9632, . . . , Stopq 963q can all be connected to one signal and frequency control words Ffast_1 961i, Ffast_2 9612, . . . , Ffast_q 961q can all take the same value.

Refer now to FIG. 10, another embodiment of using one slow clock signal and multiple fast clock signals according to present invention is described in system 1000. A plurality of q fast clock generators 10401, 10402, . . . , 1040q are paired with a slow clock generator 1030. The oscillations of said plurality of q fast clock generators 10401, 10402, . . . , 1040q are enabled by signals Stop1 10201, Stop2 10202, . . . , Stopq 1020q. The output frequencies of said plurality of q fast clock generators 10401, 10402, . . . , 1040q are controlled by a plurality of q frequency control words Ffast_1 10431, Ffast_2 10432, . . . , Ffast_q 1043q. The slow clock 1031 and a plurality of q fast clock 10411, 10412, . . . , 1041q are paired and fed to a plurality of q phase detectors 10501, 10502, . . . , 1050q. The phase detectors' outputs Reset 10511, 10512, . . . , 1051q are used to control a plurality of q counter pairs 10601, 10701, 10602, 10702, . . . , 1060q, 1070q. Said plurality of q counter pairs produce outputs of {n1_1, n2_1}, {n1_2, n2_2}, . . . , {n1_q, n2_q}, which can be used in equation (11) to derive a plurality of q TOF results 1091 τ1, τ2, . . . , τq.

To improve the accuracy of TOF measurement, using system 1000, duplication of Fast Clock signals can be used to generate a group of T values that correspond to one pair of Start and Stop signals. In this case, signals Stop1 10201, Stop2 10202, . . . , Stopq 1020q will all be connected to one signal Stop 1020 and frequency control words Ffast_—1 10431, Ffast_2 10432, . . . , Ffast_q 1043q all take the same value. The final τ value can be derived as the average of the said plurality of q τ values. In certain case, the maximum and minimum τ values of said plurality of q τ values can be eliminated from the calculation. The average can be derived from the rest of T values in the set. In some other cases, signals Stop1 10201, Stop2 10202, . . . , Stopq 1020q can connect to multiple different Stop signals so that a group of TOF measurements can be accomplished. Further, in certain cases, each of the frequency control words Ffast_1 10431, Ffast_2 10432, . . . , Ffast_q 1043q can take its own value so that several different configurations can be implemented in said plurality of q fast clock generators 10401, 10402, . . . , 1040q. This approach is useful for certain applications.

System 1000 also has a A-Calibrator block 1080. It performs the same function as those described in system 800. Signal EN 1082 can be one selected from the set of {Reset1, Reset2, . . . , Resetq,} or other user-controlled signals. Signal Scal 1081 comes from a reference signal source of known frequency. The SGRO_S 1032 and the set of signals {SGRO_F1, SGRO_F2, . . . , SGRO_Fq} are all fed into A-Calibrator block 1080. In the process of calibration, one of them can be used to count against the reference. In some cases, several of them can be used to count against the reference and the final result of Ncal 1084 can be derived from the averaging.

System 1000 also has a Calculation block 1090. It takes the outputs {n1_1, n2_1}, {n1_2, n2_2}, . . . , {n1_q, n2_q} from said plurality of q counter pairs. It also takes output Ncal 1084 from Δ-Calibrator block 1080. It uses equation (11) to derive a plurality of q TOF results 1091 τ1, τ2, . . . , τq.

The present invention further relates to a method of using TAF-DPS Vernier caliper to measure TOF. The method generally comprises the steps of (1) using gated ring oscillator and TAF-DPS and 1×PLL to create a slow clock signal generator and a fast clock signal generator; 2) setting the clock frequencies (periods) of said slow clock signal and fast clock signal to 1/f1=T1=I·Δ and 1/f2=T2=[(I−1)+r]·Δ, respectively, where I is an integer of greater than one and r is a fraction in range of [0,1); 3) starting the slow clock generator from the rising (or falling) edge of a Start signal, starting the fast clock generator from the rising (or falling) edge of a Stop signal; 4) feeding the slow clock signal and the fast clock signal to a phase detector, driving a first digital counter by said slow clock signal, driving a second digital counter by said fast clock signal; 5) generating a Reset signal from said phase detector by detecting point-of-coincidence; 6) reading out the contents of said digital counters and then reset the digital counters; 7) calibrating the frequency of gated ring oscillator by comparing its output to a signal of known frequency; 8) calculating TOF between the Start and Stop signals from the contents of said digital counters and the calibrated frequency of gated ring oscillator.

Refer now to FIG. 11, the procedure of steps of using TAF-DPS Vernier caliper to measure TOF between signals Start and Stop will now be described. Procedure 1100 starts from the step of Start 1101. In step 1102, the system takes input from user and initializes the TAF-DPS clock generators. In step 1103, the slow TAF-DPS clock generator is enabled by signal Start. In step 1104, the fast TAF-DPS clock generator is enabled by signal Stop. In step 1105, the point-of-coincidence is detected. After the point-of-coincidence is reached, the counters' contents are read out in step 1106 and the counters are subsequently reset. In step 1106, the Δ-calibrator is started. In step 1107, all the parameters are available and the calculation is carried out to derive the value τ of TOF measurement. After the calculation is accomplished, the flow returns back to step 1101 and is ready for next measurement.

Thus, the present invention provides circuits and methods to accurately measure TOF between two electrical signals. The present invention can reach measurement accuracy far beyond the gate delay of one buffer/inverter. The present invention uses Time-Average-Frequency direct period synthesizer to create the slow and fast clock signals. Thus, the present invention advantageously utilizes the TAF-DPS clock generator's capabilities of arbitrary frequency generation. Theoretically, it can result in any measurement accuracy giving appropriate resource and enough measurement time.

The foregoing descriptions of specific embodiments of the present invention have been presented for the purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.

Xiu, Liming

Patent Priority Assignee Title
10520901, Feb 23 2018 Qualcomm Incorporated Clock screening with programmable counter-based clock interface and time-to-digital converter with high resolution and wide range operation
10541696, Jan 31 2018 BOE TECHNOLOGY GROUP CO., LTD. Method of controlling electronic device and electronic device
10558238, Jan 04 2017 BOE TECHNOLOGY GROUP CO , LTD Frequency source with an adjustable frequency and related system, method and electronic device
10686458, Aug 01 2017 Liming, Xiu Method and apparatus for improving frequency source frequency accuracy and frequency stability
10707854, Feb 23 2018 Qualcomm Incorporated Clock screening with programmable counter-based clock interface and time-to-digital converter with high resolution and wide range operation
10715154, Jan 04 2017 BOE TECHNOLOGY GROUP CO , LTD Digitally controlled oscillator and all-digital frequency-locked loop and phase-locked loop based on digitally controlled oscillator
11088691, Jul 17 2019 Kioxia Corporation Oscillation circuit and interface circuit
11177797, Jan 02 2019 BEIJING BOE TECHNOLOGY DEVELOPMENT CO , LTD ; BOE TECHNOLOGY GROUP CO , LTD Measuring device and measuring method
11342925, Aug 30 2019 BEIJING BOE TECHNOLOGY DEVELOPMENT CO , LTD ; BOE TECHNOLOGY GROUP CO , LTD Signal generation circuit and method, and digit-to-time conversion circuit and method
11381246, Dec 17 2019 HYUNDAI MOBIS CO , LTD Time-to-digital converter and converting methods
11588491, Aug 30 2019 BEIJING BOE TECHNOLOGY DEVELOPMENT CO , LTD ; BOE TECHNOLOGY GROUP CO , LTD Signal generation circuit and method, and digit-to-time conversion circuit and method
11777510, Oct 12 2022 Samsung Electronics Co., Ltd. Fractional divider with phase shifter and fractional phase locked loop including the same
11947672, Mar 02 2021 NXP B.V. Voltage glitch detection circuit
9621173, Nov 19 2015 Liming, Xiu Circuits and methods of implementing time-average-frequency direct period synthesizer on programmable logic chip and driving applications using the same
Patent Priority Assignee Title
6411075, Mar 18 1999 Nanosurf AG Electronic frequency measuring device and its use
9134752, Dec 01 2011 LAPIS SEMICONDUCTOR CO , LTD Time measurement device, micro-controller and method of measuring time
/
Executed onAssignorAssigneeConveyanceFrameReelDoc
Jun 01 2015Liming, Xiu(assignment on the face of the patent)
Date Maintenance Fee Events
Nov 17 2019M3551: Payment of Maintenance Fee, 4th Year, Micro Entity.
Dec 16 2023M3552: Payment of Maintenance Fee, 8th Year, Micro Entity.


Date Maintenance Schedule
Jun 28 20194 years fee payment window open
Dec 28 20196 months grace period start (w surcharge)
Jun 28 2020patent expiry (for year 4)
Jun 28 20222 years to revive unintentionally abandoned end. (for year 4)
Jun 28 20238 years fee payment window open
Dec 28 20236 months grace period start (w surcharge)
Jun 28 2024patent expiry (for year 8)
Jun 28 20262 years to revive unintentionally abandoned end. (for year 8)
Jun 28 202712 years fee payment window open
Dec 28 20276 months grace period start (w surcharge)
Jun 28 2028patent expiry (for year 12)
Jun 28 20302 years to revive unintentionally abandoned end. (for year 12)