Timing Difference Detection Circuit Capable of Detecting a Phase Difference Between Different Channels
20210341524 · 2021-11-04
Inventors
Cpc classification
G01R25/005
PHYSICS
International classification
Abstract
A timing difference detection circuit includes a first channel, a second channel, a third channel, a waveform conversion unit, a sampling unit and a comparison unit. The first channel to the third channel generate three signals according to a first reference signal. The waveform conversion unit generates three control signals according to the three signals. The sampling unit samples a second reference signal according to the three control signals to generate three sampling signals. The comparison unit generates three comparison signals according to the three sampling signals. A phase difference between the first channel and the second channel is calculated according to the three comparison signals.
Claims
1. A timing difference detection circuit comprising: a first channel configured to generate a first signal according to a first reference signal; a second channel configured to generate a second signal according to the first reference signal; a third channel configured to generate a third signal according to the first reference signal; a waveform conversion unit coupled to the first channel, the second channel and the third channel and configured to generate a first control signal, a second control signal and a third control signal according to the first signal, the second signal and the third signal respectively; a sampling unit coupled to the wave conversion unit and configured to sample a second reference signal according to the first control signal, the second control signal and the third control signal to generate a first sampling signal, a second sampling signal and a third sampling signal respectively; and a comparison unit coupled to the sampling unit and configured to generate a first comparison signal, a second comparison signal and a third comparison signal according to the first sampling signal, the second sampling signal and the third sampling signal respectively; wherein a phase difference between the first channel and the second channel is calculated according to the first comparison signal, the second comparison signal and the third comparison signal.
2. The detection circuit of claim 1 wherein the sampling unit comprises: a first switch configured to sample the second reference signal according to the first control signal to generate the first sampling signal; a second switch configured to sample the second reference signal according to the second control signal to generate the second sampling signal; and a third switch configured to sample the second reference signal according to the third control signal to generate the third sampling signal.
3. The detection circuit of claim 1 wherein the comparison unit comprises: a first comparator configured to compare the first sampling signal and a third reference signal to generate the first comparison signal; a second comparator configured to compare the second sampling signal and the third reference signal to generate the second comparison signal; and a third comparator configured to compare the third sampling signal and the third reference signal to generate the third comparison signal.
4. The detection circuit of claim 3 wherein each of the first comparator, the second comparator and the third comparator comprises a first chopper, a second chopper, and a comparison element coupled between the first chopper and the second chopper, the first chopper and the second chopper being controlled by a chopper clock signal.
5. The detection circuit of claim 3 wherein the first comparison signal, the second comparison signal and the third comparison signal are one-bit signals.
6. The detection circuit of claim 1 wherein the waveform conversion unit comprises: a first waveform converter coupled to the first channel and configured to generate the first control signal according to the first signal; a second waveform converter coupled to the second channel and configured to generate the second control signal according to the second signal; and a third waveform converter coupled to the third channel and configured to generate the third control signal according to the third signal.
7. The detection circuit of claim 6 wherein the first waveform converter, the second waveform converter and the third waveform converter are inverters.
8. The detection circuit of claim 1 wherein a delay of the third channel is less than delays of the first channel and the second channel.
9. The detection circuit of claim 1 wherein the first reference signal is a linear signal.
10. A timing difference detection circuit comprising: a first channel configured to generate a first signal according to a reference signal; a second channel configured to generate a second signal according to the reference signal; a third channel configured to generate a third signal according to the reference signal; a comparison unit configured to generate a first comparison signal, a second comparison signal and a third comparison signal according to the first signal, the second signal and the third signal respectively; wherein a phase difference between the first channel and the second channel is calculated according to the first comparison signal, the second comparison signal and the third comparison signal.
11. The detection circuit of claim 10 wherein the reference signal is a linear signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
DETAILED DESCRIPTION
[0015]
[0016] The amplitude A1 and A2 after the channel response (channel response) must be evaluated, so the cross-correlation coefficient can be calculated as:
[0017] This can then eliminate the amplitude term to evaluate the phase difference.
[0018] For example, if the first reference signal x(t) is a sine wave and expressed as sin(2πft), where f is frequency, and t is time. According to the above, the first reference signal x(t) after passing through the first channel CH1 and the second channel CH2 can be expressed as x1=sin(2πft)=A1 sin(2πf(t+T1)) and x2=A2 sin(2πf(t+T2)). Substituting into equation (2), equation (3) can be obtained as:
[0019] If the frequency of the system is known, the phase difference (T1−T2) can be obtained, which is ΔT. In equation (3), since cosine is an even function, although the value of (T1−T2) can be obtained, the sequence relationship between the first signal x1 and the second signal x2 cannot be known. In order to know which one leads the other, the structure in
[0020]
[0021] Assuming that the system design can affirm T1+T2−2TR>0, the polarity and magnitude relationship of the timing phases of the signals can be evaluated according to the calculation of ρ1R−ρ2R in equation (6).
[0022] However, a more complicated circuit such as a multiplier is required to perform the above calculations on amplitude and correlation. Therefore, the embodiment further provides a detection circuit to simplify signal processing.
[0023] The waveform conversion unit 310 receives the first signal x1, the second signal x2, and the third signal xR to generate the first control signal Sc1, the second control signal Sc2, and the third control signal ScR, respectively. The sampling unit 320 uses the first control signal Sc1, the second control signal Sc2, and the third control signal ScR to sample the second reference signal y(t) to generate the first sampling signal S1, the second sampling signal S2, and the third sampling signal SR. The comparison unit 330 generates a first comparison signal D1(t), a second comparison signal D2(t), and a third comparison signal DR(t) according to the first sampling signal S1, the second sampling signal S2, and the third sampling signal SR, respectively. Among them, the first control signal Sc1, the second control signal Sc2, and the third control signal ScR can be respectively expressed as: Sc1=y(t+T1), Sc2=y(t+T2) and ScR=y(t+TR).
[0024] The first channel CH1 and the second channel CH2 are channels to be tested, and the third channel CHR is a known channel. The first comparison signal D1(t), the second comparison signal D2(t) and the third comparison signal DR(t) are used to calculate the phase difference ΔT between the first channel CH1 and the second channel CH2.
[0025] In
[0026] According to an embodiment, as shown in
[0027] According to an embodiment, as shown in
[0028] Since the delay TR of the third channel CHR is the shortest, the third sampling signal SR can be sampled and output first. Then, if the delay T1 of the first channel CH1 is shorter than the delay T2 of the second channel CH2, the first sampling signal S1 will be sampled and output before the second sampling signal S2; otherwise, the first sampling signal S1 will follow the second sampling signal S2 to be sampled and output.
[0029] According to an embodiment, as shown in
[0030]
[0031]
[0032] Using the choppers 511 and 512 can eliminate the interference of the offset voltage. Because the choppers 511 and 512 can switch the inputs of the comparison element 520, the offset voltage generated by the comparison element 520 will be at the positive node once and at the negative node the other time. But for the input nodes, when the offset voltage is at the positive node, its output is also at the positive node; when the offset voltage is at the negative node, its output will be reversed. Therefore, no matter what the situation is, the relationship between the output and the input is always the same, and the offset voltage of the comparison element 520 changes from a fixed value to a carrier wave at the output node, and its frequency corresponds to the chopping clock signal CKc. Using the chopping comparator as shown in
[0033] The structure in
[0034]
[0035] In general, by using the detection circuits 300 and 700 provided in the embodiments, the complexity of the circuit can be effectively simplified, and the phase difference and the sequence relationship of the two channels to be tested can be obtained. In practical applications, such as sonar signal, before and after the ultrasonic wave is transmitted, the channel response is different. By comparing with the reference channel (such as the above-mentioned channel CHR), the distance and depth of the measured object can be found. Another example is the application of TOF (time of flight). After the laser is launched, the measured distance can be obtained by comparing the correlation relationship of the rebounded laser signals. Another example is a low-speed phase detection circuit that can obtain a relatively small phase difference through long-term correlation calculations and comparisons, which helps to improve detection precision. Using the detection circuit provided in the embodiment, the phase sequence of the signals transmitted by the two channels can be confirmed. Therefore, the detection circuit provided by the embodiment is really helpful for solving the problems in the field.
[0036] Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.