Flight time measurement method, circuit, device, storage medium and electronic device
Through multi-phase clock unit and multiple sets of delay signal processing technology, the problem that the time resolution of the TDC chip circuit is limited by the delay amount of the delay unit is solved, high-precision time measurement and cost reduction are achieved, and the TDC chip circuit is improved Practical and universal.
Patent Information
- Application Number
- CN202180100044.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-16
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-07-16
AI Technical Summary
The existing TDC chip circuits are difficult to meet under the demand for high resolution time measurement, and are costly, and the time resolution is limited by the delay amount of the delay unit, which affects its practicality and universality.
Multiple clock signals with different phases are generated by multi-phase clock units, and multiple flight times are generated based on multiple sets of delay signals. Finally, the target flight time of the echo signal is obtained by processing, which improves the time measurement accuracy and reduces high accuracy The cost of TDC chip circuit.
It effectively improves the accuracy of time measurement, reduces the cost of high-precision TDC chip circuits, and occupies less logic resources, improving its practicality and universality.
Smart Images

Figure CN117716256B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of time measurement, and in particular to a flight time measurement method, circuit, device, storage medium and electronic device. Background Art
[0002] Time to Digital Converter (TDC) is based on the detection of the time difference between the echo signal and the reference signal by a clock signal. It is widely used in laser radar, consumer electronics, medical and other fields due to its advantages of high precision, large measurement range and simple structure. The TDC chip circuit implemented by the carry chain and gate circuit based on the Field Programmable Gate Array (FPGA) has the characteristics of low cost, short cycle, convenience and flexibility. However, the time resolution of time measurement is greatly affected by the model, process and performance parameters of the TDC chip circuit. For example, the TDC chip TDC-GP2, which is used in a large number of occasions, mainly depends on the minimum value of the carry chain delay of the FPGA for measuring the time difference. Therefore, in some occasions where the resolution of time measurement is required to be high, due to the limitation of cost or installation environment, most of the TDC chip circuits in the prior art are difficult to meet the requirements of high-resolution measurement. Summary of the invention
[0003] The embodiments of the present application provide a flight time measurement method, circuit, device, storage medium and electronic device, which can effectively improve the accuracy of measuring the flight time of an echo signal under the premise of saving costs and simplifying calculations. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a method for measuring time of flight, the method comprising:
[0005] Delay processing is performed on the echo signal to obtain N delayed signals; wherein the delay amounts of the N delayed signals are uniformly increased by U, where U is the delay amount of the delay unit and U is a natural number greater than 0;
[0006] Generate X clock signals with different phases based on the multi-phase clock unit; wherein X is a positive integer greater than or equal to 2;
[0007] Delay latching the N delayed signals based on each of the clock signals respectively; wherein the delay latching results include X;
[0008] Determine the to-be-processed flight time corresponding to each delay latch result in combination with the reference signal and each delay latch result; wherein the to-be-processed flight time includes X;
[0009] A target flight time is determined according to the X flight times to be processed; the target flight time is a time difference between transmitting the reference signal and receiving the echo signal.
[0010] In a second aspect, an embodiment of the present application provides another flight time measurement method, characterized in that it includes:
[0011] Performing multi-phase delay processing on the echo signal to obtain X input signals with different phases; wherein X is a positive integer greater than or equal to 2;
[0012] Delay processing is performed on the X signals to be input with different phases respectively to obtain N delayed signals corresponding to each signal to be input; wherein the delay amount of the N delayed signals increases uniformly by U, each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0;
[0013] Delay latching each group of the N delayed signals based on each of the clock signals; wherein the delay latching results include X;
[0014] Determine the to-be-processed flight time corresponding to each delay latch result in combination with the reference signal and the delay latch result; wherein the to-be-processed flight time includes X;
[0015] A target flight time is determined according to the X flight times to be processed; the target flight time is a time difference between transmitting the reference signal and receiving the echo signal.
[0016] In a third aspect, an embodiment of the present application provides a time-of-flight measurement circuit, the circuit comprising:
[0017] N delay units, X time counting units, X delay latch units, a multi-phase clock unit and a time calculation unit;
[0018] The N delay units are connected in sequence, each of the delay latch units is connected to each of the N delay units, each of the time counting units is connected to each of the delay latch units in a one-to-one correspondence, the multi-phase clock unit is respectively connected to each of the time counting units and each of the delay latch units, and the time calculation unit is connected to each of the time counting units;
[0019] The N delay units are used to obtain N delayed signals after delay processing on the echo signal; wherein the delay amounts of the N delayed signals are uniformly increased by U, where U is the delay amount of the delay unit and U is a natural number greater than 0;
[0020] The multi-phase clock unit is used to generate X clock signals with different phases; wherein X is a positive integer greater than or equal to 2;
[0021] The delay latch unit is used to generate a delay latch result based on the corresponding clock signal and the corresponding N delay signals;
[0022] The time counting unit is used to generate a flight time to be processed based on the delay latch result output by the corresponding delay latch unit and a reference signal;
[0023] The time calculation unit is used to determine a target flight time according to the X to-be-processed flight times output by the X time counting units; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
[0024] In a fourth aspect, an embodiment of the present application provides another time-of-flight measurement circuit, the circuit comprising:
[0025] X×N delay units, X time counting units, X delay latch units, a multi-phase delay unit and a time calculation unit; the N delay units constitute a group of delay units;
[0026] The multi-phase delay unit is connected to each group of delay units, each of the delay latch units is connected to each of the N delay units, each of the time counting units is connected to each of the delay latch units in a one-to-one correspondence, and the time calculation unit is connected to each of the time counting units;
[0027] The multi-phase delay unit is used to obtain X input signals with different phases after multi-phase delay processing on the echo signal; wherein X is a positive integer greater than or equal to 2;
[0028] Each group of delay units is used to perform delay processing on each of the to-be-input signals to obtain N delayed signals corresponding to each to-be-input signal; wherein the delay amounts of the N delayed signals are uniformly increased by U, and each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0;
[0029] The delay latch unit is used to generate a delay latch result based on the clock signal and the corresponding N delay signals;
[0030] The time counting unit is used to generate a flight time to be processed based on the delay latch result output by the corresponding delay latch unit and a reference signal;
[0031] The time calculation unit is used to determine a target flight time according to the X to-be-processed flight times output by the X time counting units; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
[0032] In a fifth aspect, an embodiment of the present application provides a flight time measurement device, the device comprising:
[0033] A delay processing module, used for delay processing the echo signal to obtain N delayed signals; wherein the delay amounts of the N delayed signals increase uniformly by U, where U is the delay amount of the delay unit and U is a natural number greater than 0;
[0034] A clock signal module, used to generate X clock signals with different phases based on a multi-phase clock unit; wherein X is a positive integer greater than or equal to 2;
[0035] A delay latch module, delay latching the N delay signals based on each of the clock signals respectively; wherein the delay latching results include X;
[0036] A flight time module to be processed, used to determine the flight time to be processed corresponding to each delay latch result in combination with the reference signal and the result of each delay latch; wherein the flight time to be processed includes X;
[0037] The target flight time module is used to determine the target flight time according to the X flight times to be processed; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
[0038] In a sixth aspect, an embodiment of the present application provides another flight time measurement device, the device comprising:
[0039] A multi-phase delay module is used to perform multi-phase delay processing on the echo signal to obtain X input signals with different phases; wherein X is a positive integer greater than or equal to 2;
[0040] A delay processing module, used for performing delay processing on the X signals to be input with different phases respectively, to obtain N delayed signals corresponding to each signal to be input; wherein the delay amount of the N delayed signals increases uniformly by U, each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0;
[0041] A delay latch module, used for delay latching each group of the N delayed signals based on each of the clock signals; wherein the delay latch results include X;
[0042] A flight time module to be processed, used to determine the flight time to be processed corresponding to each delay latch result in combination with the reference signal and the delay latch result; wherein the flight time to be processed includes X;
[0043] The target flight time module is used to determine the target flight time according to the X flight times to be processed; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
[0044] In a seventh aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0045] In an eighth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0046] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0047] The present application generates multiple clock signals with different phases through a multi-phase clock unit, and generates multiple flight times to be processed based on the corresponding multiple groups of delay signals, and finally processes the flight time to be processed to obtain the target flight time of the echo signal; the present application also performs multi-phase delay on the echo signal through a multi-phase delay unit to obtain multiple input signals with different phases, generates multiple flight times to be processed based on the corresponding multiple clock signals, and finally processes the flight time to be processed to obtain the target flight time of the echo signal. Different from the method of generating flight time by a clock signal and a group of delay signals in the prior art, the present application solves the problem that the resolution of TDC time ranging is limited by the delay amount of the delay unit, effectively improves the accuracy of time measurement, and greatly reduces the cost of high-precision TDC chip circuits, and occupies less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 It is a schematic diagram of the structure of a time-of-flight measurement circuit in the prior art;
[0050] Figure 2 It is a flow chart of a method for measuring time of flight in the prior art provided in an embodiment of the present application;
[0051] Figure 3It is a flowchart of a flight time measurement method provided in an embodiment of the present application;
[0052] Figure 4 is a structural schematic diagram of a time-of-flight measurement circuit provided in an embodiment of the present application;
[0053] Figure 5 is a structural schematic diagram of another time-of-flight measurement circuit provided in an embodiment of the present application;
[0054] Figure 6 is a flow chart of another method for measuring time of flight provided in an embodiment of the present application;
[0055] Figure 7 is a structural schematic diagram of a time-of-flight measurement circuit provided in an embodiment of the present application;
[0056] Figure 8 is a structural schematic diagram of another time-of-flight measurement circuit provided in an embodiment of the present application;
[0057] Fig. 9 is a structural schematic diagram of a flight time measurement method provided in an embodiment of the present application;
[0058] Fig.10 is a structural schematic diagram of a time-of-flight measurement circuit provided in an embodiment of the present application;
[0059] Fig.11 is a structural schematic diagram of another flight time measurement method provided in an embodiment of the present application;
[0060] Fig.12 is a structural schematic diagram of a time-of-flight measurement circuit provided in an embodiment of the present application;
[0061] Fig.13 is a structural schematic diagram of a flight time measurement device provided in an embodiment of the present application;
[0062] Fig.14 is a structural schematic diagram of a flight time measurement device provided in an embodiment of the present application;
[0063] Fig.15 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0065] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0066] The present application is described in detail below with reference to specific embodiments.
[0067] In the prior art, Figure 1 As shown, it is a structural schematic diagram of a time-of-flight measurement circuit of the prior art, and the time-of-flight measurement circuit includes: a group of delay units 101, a delay latch unit 102 and a time counting unit 103. A group of delay units 101 includes a delay unit 1011, a delay unit 1012, a delay unit 1013, a delay unit 1014, ..., a delay unit 101N. In other words, a group of delay units 101 includes N delay units, and each delay unit 101 in a group of delay units 101 is connected in sequence, and each delay unit 101 is connected to the delay latch unit 102, and the delay latch unit 102 is connected to the time counting unit 103.
[0068] In one embodiment, the above Figure 1 The flight time measurement circuit shown and all the flight time measurement circuits described below are connected based on an on-chip bus structure, preferably based on an Advanced Peripheral Bus (APB). The peripheral bus structure is one of the bus structures based on the on-chip bus protocol (Advanced Microcontroller Bus Architecture, AMBA) proposed by ARM, and has the advantages of high standardization and good stability.
[0069] like Figure 2FIG. 1 is a flow chart of a time-of-flight measurement principle of the prior art provided in an embodiment of the present application, which is applicable to Figure 1 The flight time measurement circuit shown is used in the field of laser ranging as an example. The process includes the following steps:
[0070] S201. Perform delay processing on the echo signal to obtain N delayed signals.
[0071] The laser signal is emitted from the emission unit of the target device to the object to be detected, and a start signal is emitted to the time counting unit 103 at the same time. The start signal is Figure 1 The reference signal shown is used to enable the time counting unit 103 to start counting the clock signal based on the period T from the time the reference signal is received, that is, one count is increased for each clock signal received; the echo signal reflected from the object to be detected is received by the receiving unit of the target device, and the processed echo signal is sent to a group of delay units 101. The echo signal may refer to the laser echo signal reflected by the above-mentioned laser signal on the object to be detected, or it may be an infrared echo signal reflected by the infrared signal on the object to be detected, or it may be an ultrasonic echo signal reflected by the ultrasonic signal on the object to be detected, etc. In other words, the present application does not impose any limitation on the specific type of the echo signal. The object to be detected can be understood as the target object that generates the echo signal. For example, in the field of laser radar, the object to be detected is a car or a tree on the street; in the field of medical detection, the object to be detected is a human tissue; in the field of ultrasonic detection, the object to be detected is a piece of metal, etc.
[0072] A group of delay units 101 delay the echo signal to obtain N delayed signals, and the delay amount of the delayed signal increases uniformly by U. In other words, the delay amount of the delay unit 101 is U, and the echo signal outputs a delayed signal whose time difference with the echo signal is U after passing through the first delay unit, and the first delay unit sends the delayed signal to the second delay unit, so that the second delay unit delays the delay signal and outputs a delayed signal whose time difference with the echo signal is 2U. Based on the delay principle, N delay units delay the echo signal to obtain N delayed signals, and the delay amount of the N delayed signals increases uniformly by U, and the delay amount is the above-mentioned time difference.
[0073] S202 , delay latching N delayed signals based on the clock signal.
[0074] The delay unit 101 sends N delayed signals to the delay latch unit 102, and the delay latch unit 102 delays and latches the N delayed signals.
[0075] S203: Determine the target flight time by combining the reference signal and the result of the delay latch.
[0076] The delay latch unit 102 receives the clock signal and N delay signals for delay latching, and compares the rising edge of the Gth delay signal among the N delay signals to align with the rising edge of the clock signal, that is, based on the rising edge triggering method, the Gth delay signal is obtained as the target delay signal, and the target delay signal is the result of the delay latching of the delay latch unit 102; based on the Gth delay signal and the counting amount H of the time counting unit 103, in this embodiment, when the time counting unit receives a clock signal, a counting amount is increased, and the flight time of the echo signal is calculated according to the calculation formula T×HG×U, and the target flight time is output. In another embodiment, when the time counting unit completes the acquisition of a clock signal, a counting amount is increased, and the flight time of the echo signal is calculated according to the calculation formula T×H+G×U, and the target flight time is output. The present application does not limit the counting method of the time counting unit and the calculation method of the target flight time. When the counting method and calculation method of the time counting unit appear in all the following embodiments, they are understood according to the description in the previous embodiment and are only one possible embodiment to show the working principle of the time counting unit. The present application does not exclude one or more counting methods and calculation methods of any other time counting unit.
[0077] In the field of laser ranging, a processing unit connected to the flight time measurement circuit can obtain the distance between the object to be detected and the target device based on multiplying the target flight time by the speed at which the laser signal flies.
[0078] Based on the working principle of the flight time measurement circuit in the above-mentioned prior art, in other words, the target delay signal is obtained based on the rising edge triggering method. When the delay amount of the delay unit is large, for example, when the delay amount can only reach 1 / 3 of the clock signal period at the lowest, only three delay units can be arranged, and the three delay signals are compared with the rising edge of the clock signal. At this time, it is easy to have a situation where no matter which delay signal cannot completely overlap with the clock signal. During calculation, only the delay signal closest to the clock signal can be taken as the target signal, so the time corresponding to the part that cannot completely overlap is ignored, and the accuracy of time measurement is greatly reduced.
[0079] To sum up, the time resolution of the flight time measurement circuit depends on the delay amount of the delay unit. For example, if the delay amount of the delay unit is 20ps and the number of delay units is 10, then the period of the clock unit is 200ps and the time resolution is 20ps. When the delay amount of the delay unit is 10ps, the time resolution of the flight time measurement circuit is 10ps.
[0080] However, a high-precision delay unit is bound to have high requirements on the manufacturing process and working environment of the delay unit. In other words, a high-precision delay unit corresponds to high cost and a stable working environment, which undoubtedly greatly reduces the practicality and universality of the high-precision time-of-flight measurement circuit.
[0081] Therefore, the present application proposes a flight time measurement method and circuit, which can effectively improve the accuracy of measuring the flight time of the echo signal while saving costs and simplifying calculations.
[0082] like Figure 3 FIG. 1 is a flow chart of a method for measuring time of flight provided by the present application in one embodiment, and the method for measuring time of flight includes the following steps:
[0083] S301. Perform delay processing on the echo signal to obtain N delayed signals.
[0084] The delay amounts of the N delayed signals increase uniformly with U, where U is the delay amount of the delay unit and U is a natural number greater than 0.
[0085] S302 . Generate X clock signals with different phases based on a multi-phase clock unit.
[0086] Wherein, X is a positive integer greater than or equal to 2. X clock signals with different phases can be understood as clock signals with a period of T but different start times of transmission. In the embodiment of the present application, the phase difference of the X clock signals increases uniformly as U / X. In other words, the phase difference between the first clock signal and the Xth clock signal is the delay amount of one delay unit.
[0087] For example, if the delay amount of the delay unit is 20ps, then the time difference between the first delay signal and the second delay signal among the N delay signals received by the delay latch unit is 20ps, that is, the delay amounts of the N delay signals increase uniformly by 20ps, and the period of the clock signal is 20×Nps, where N is the number of delay units. For example, if there are N=10 delay units, then the period of the clock signal is 200ps, and the phase difference of the X clock signals increases uniformly by 200ps / X.
[0088] S303 , delay latching the N delayed signals based on each clock signal respectively.
[0089] The result of the delay latch includes X. It can be understood that there are X delay latch units and X groups of delay signals, each delay latch unit receives a group of delay signals and a clock signal, a group of delay signals includes N delay signals, and one group of delay signals is no different from another group of delay signals; X time counting units correspond to the X delay latch units one by one, and each time counting unit counts based on a clock signal with a period T.
[0090] S304 , combining the reference signal and each delayed latch result, determining the to-be-processed flight time corresponding to each delayed latch result.
[0091] The flight time to be processed includes X. The flight time to be processed can be understood as Figure 1 The target flight time shown is determined based on a set of N delay signals, a clock signal, a delay latch unit and a time counting unit. For a detailed process of determining the corresponding to-be-processed flight time, see Figure 2 The step S203, i.e., the delay latch unit receives the first clock signal and N delay signals for delay latching, obtains the Gth delay signal as the target delay signal based on the rising edge triggering method, and then calculates the flight time of the echo signal based on the Gth delay signal and the counting amount H of the time counting unit according to the calculation formula T×HG×U.
[0092] Therefore, based on the X groups of delay signals, X clock signals, X delay latch units and X time counting units determine the corresponding X flight times to be processed.
[0093] S305: Determine the target flight time according to the X flight times to be processed.
[0094] The target flight time is the time difference between the transmitted reference signal and the received echo signal, that is, the flight time of the echo signal. In this embodiment, since the phase difference between the clock signals increases uniformly at U / X, the steps according to the X pending flight times are: determining the target flight time after averaging the X pending flight times, and the averaging calculation can be understood as adding the X pending flight times and dividing by X.
[0095] The following is a principle of improving the time resolution of the time-of-flight measurement method according to an embodiment of the present application:
[0096] Assume that X=2 at this time, that is, there are only 2 groups of delay signals, 2 clock signals, 2 delay latch units and 2 time counting units, the first group of delay signals corresponds to the first clock signal, the first delay latch unit and the first time counting unit, and the second group of delay signals corresponds to the second clock signal, the second delay latch unit and the second time counting unit; wherein, the period of the clock signal is T, the delay amount of the delay unit is t, t=U, the phase of the first clock signal of the two clock signals is 0, and the phase difference between the second clock signal and the first clock signal is t / 2; at this time, based on Figure 2 The time resolution of the flight time measurement method in the prior art is the delay t.
[0097] Assume that the first pending flight time corresponding to the first clock signal, the first delay latch unit and the first time counting unit corresponding to the first group of delay signals is H×TG×t, wherein H refers to the alignment of the target delay signal with the Hth clock signal in the first clock signal, and G refers to the target delay unit being the Gth delay signal among the N delay signals. Based on t=T / H, the above formula can be converted to obtain the first pending flight time of M×t.
[0098] Since the phase difference between the second clock signal and the first clock signal is t / 2, the first to-be-processed flight time corresponding to the second clock signal, the second delay latch unit and the second time counting unit based on the second group of delay signals is (M+1)×t or M×t, (M+1)×t can be understood as the G+1th delay signal is aligned with the Hth clock signal, and M×t can be understood as the Gth delay signal is aligned with the Hth clock signal.
[0099] After averaging the first flight time to be processed and the second flight time to be processed, the target flight time may be M×t or (M+0.5)×t, where (M+0.5)×t is (2M+1)×t. 1 , t 1 =2t.
[0100] Therefore, the time resolution changes from the delay amount t to the delay amount t / 2. In other words, the time resolution is increased by 2 times.
[0101] Based on the same principle as above, Figure 3 The flight time measurement method includes X clock signals, which is X times higher than the flight time measurement method in the prior art.
[0102] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0103] A plurality of clock units with different phases are generated by a multi-phase clock unit, and a plurality of to-be-processed flight times are generated based on the corresponding plurality of groups of delay signals. Finally, the to-be-processed flight time is processed to obtain the target flight time of the echo signal. This is different from the prior art in which the flight time is generated by one clock signal and a group of delay signals. This solves the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit, effectively improves the accuracy of time measurement, and greatly reduces the cost of high-precision TDC chip circuits, and occupies less logic resources, so as to improve the practicability and universality of high-precision TDC chip circuits.
[0104] For ease of understanding Figure 3 The flight time measurement method proposed in this application is shown as follows: Figure 4 As shown, in one embodiment, the present application proposes a time-of-flight measurement circuit suitable for Figure 3The flight time measurement method shown. The flight time measurement circuit includes: X×N delay units, X delay latch units, X time counting units, a multi-phase clock unit 440 and a time calculation unit 450. It can be understood that Figure 4 The structure shown is only part of the flight time measurement circuit, which is for illustration only and can be understood as the flight time measurement circuit when X=2.
[0105] Among them, N delay units form a group of delay units, such as Figure 4 As shown, one group of delay units 411 includes delay unit 4111, delay unit 4112, delay unit 4113, ..., delay unit 411N, another group of delay units 412 includes delay unit 4121, delay unit 4122, ..., delay unit 412N, and also includes an Xth group of delay units 41X (not shown in the figure), X delay latch units include delay latch unit 421 and delay latch unit 422, and X time counting units include time counting unit 431 and time counting unit 432.
[0106] like Figure 4 As shown in the connection relationship, N delay units in a group of delay units 411 are connected in sequence, each delay latch unit is connected to each delay unit in the N delay units, each time counting unit is connected to each delay latch unit one by one, the multi-phase clock unit is respectively connected to each time counting unit and each delay latch unit, and the time calculation unit is connected to each time counting unit.
[0107] A group of delay units is used to obtain N delayed signals after delay processing of the echo signal. Among them, the delay amount of the N delayed signals increases uniformly with U, U is the delay amount of the delay unit, and U is a natural number greater than 0. For example, a group of delay units 411 generates N delayed signals based on the echo signal, and another group of delay units 412 generates N delayed signals based on the echo signal. The working principle of a group of delay units generating N delayed signals can be found in the above Figure 2 shown.
[0108] The multi-phase clock unit 440 is used to generate X clock signals with different phases; wherein X is a positive integer greater than or equal to 2, the phase difference of the X clock signals increases uniformly at U / X, and the X clock signals with different phases are sent to the corresponding delay latch unit and time counting unit. For example, the clock signal includes a first clock signal and a second clock signal; the first clock signal is sent to the delay latch unit 421 and the time counting unit 431, and the second clock signal is sent to the delay latch unit 422 and the time counting unit 432, and the phase difference between the first clock signal and the second clock signal is U / X.
[0109] The delay latch unit is used to generate a delay latch result based on the corresponding clock signal and the corresponding N delay signals. It can be understood that the delay latch unit 421 generates a first delay latch result based on the first clock signal and the N delay signals generated by a group of delay units 411, and the delay latch unit 422 generates a second delay latch result based on the second clock signal and the N delay signals generated by a group of delay units 412.
[0110] The time counting unit is used to generate a pending flight time based on the result of the delay latch output by the corresponding delay latch unit and the reference signal. It can be understood that the number of pending flight times is X. For example, the time counting unit 431 generates a first pending flight time based on the result output by the delay latch unit 421 and the reference signal, and the time counting unit 432 generates a second pending flight time based on the result output by the delay latch unit 422 and the reference signal.
[0111] The time calculation unit 450 is used to average the X pending flight times output by the X time counting units to obtain the target flight time. It can be understood that the X pending flight times include Figure 4 A first pending flight time and a second pending flight time are shown.
[0112] The specific steps of the above-mentioned flight time measurement circuit to complete the flight time measurement are shown in FIG. Figure 3 The flight time measurement method shown is not repeated here.
[0113] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0114] A plurality of clock units with different phases are generated by a multi-phase clock unit, and a plurality of to-be-processed flight times are generated based on the corresponding plurality of groups of delay signals. Finally, the to-be-processed flight time is processed to obtain the target flight time of the echo signal. This is different from the prior art in which the flight time is generated by one clock signal and a group of delay signals. This solves the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit, effectively improves the accuracy of time measurement, and greatly reduces the cost of high-precision TDC chip circuits, and occupies less logic resources, so as to improve the practicability and universality of high-precision TDC chip circuits.
[0115] For ease of understanding Figure 3 The flight time measurement method proposed in this application is shown as follows: Figure 5 As shown, in one embodiment, the present application proposes another time-of-flight measurement circuit, suitable for Figure 3 The time-of-flight measurement method shown. Figure 5The flight time measurement circuit shown includes: a group of delay units 510, X delay latch units, X time counting units, a time calculation unit 550 and a multi-phase clock unit 540, Figure 5 The structure shown is only part of the flight time measurement circuit, which is for illustration only and can be understood as the flight time measurement circuit when X=2.
[0116] Among them, a group of delay units 510 includes delay unit 511, delay unit 512, delay unit 513, ..., delay unit 51N, X delay latch units include delay latch unit 521, delay latch unit 522, ..., delay latch unit 52X (not shown in the figure), and X time counting units include time counting unit 531, time counting unit 532, ..., time counting unit 53X (not shown in the figure).
[0117] like Figure 5 As shown in the connection relationship, N delay units in a group of delay units 510 are connected in sequence, each delay latch unit is connected to each delay unit in the N delay units, each time counting unit is connected to each delay latch unit one by one, the multi-phase clock unit is respectively connected to each time counting unit and each delay latch unit, and the time calculation unit is connected to each time counting unit.
[0118] Compared to Figure 4 The flight time measurement circuit shown, Figure 5 The flight time measurement circuit shown includes only one group of delay units 510. In other words, N delay signals are generated by one group of delay units 510, and one group of delay units 510 generates X groups of delay signals, each group of delay signals includes N delay signals. Therefore, Figure 5 The flight time measurement circuit shown is compared to Figure 4 The flight time measurement circuit shown reduces (X-1) groups of delay units, further reducing the cost of the high-precision flight time measurement circuit.
[0119] N delay units are used to obtain X groups of delayed signals after delay processing on the echo signal, each group of delayed signals includes N delayed signals, and send the X groups of delayed signals to the corresponding X delay latch units. Among them, the delay amount of the N delayed signals increases uniformly with U, U is the delay amount of the delay unit, and U is a natural number greater than 0.
[0120] The specific steps of the above-mentioned flight time measurement circuit to complete the flight time measurement are shown in FIG. Figure 3 The flight time measurement method shown and Figure 4 The flight time measurement circuit shown is not described in detail here.
[0121] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0122] Compared to Figure 4 The flight time measurement circuit shown in the present embodiment uses N delay units instead of X×N delay units to generate X groups of delay signals. Under the premise of achieving high-precision flight time measurement, the cost of the high-precision TDC chip circuit is greatly reduced, and errors in time measurement caused by phase differences caused by environmental reasons such as quantization errors and signal jitter during operation of multiple groups of delay units are avoided, thereby effectively improving the working stability and reliability of the flight time measurement circuit.
[0123] The present application generates multiple clock units with different phases through a multi-phase clock unit, and generates multiple flight times to be processed based on the corresponding multiple groups of delay signals. Finally, the flight time to be processed is processed to obtain the target flight time of the echo signal. This is different from the prior art in which the flight time is generated by one clock signal and a group of delay signals. It solves the problem that the resolution of TDC time ranging is limited by the delay amount of the delay unit, effectively improves the accuracy of time measurement, and greatly reduces the cost of high-precision TDC chip circuits, and occupies less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits.
[0124] It is understandable that based on Figure 3 The flight time measurement method shown requires that the phase difference of the clock signal increases uniformly at U / X, that is, the phase difference of two adjacent clock signals is 1 / X of the delay amount of the delay unit, but this means that a higher precision requirement is placed on the multi-phase clock unit. Therefore, the present application proposes another flight time measurement method, which can reduce the precision requirement and cost of the multi-phase clock unit and further improve the universality of the flight time measurement circuit of the present application.
[0125] In another embodiment, Figure 6 FIG. 2 is a flow chart of another method for measuring time of flight proposed in an embodiment of the present application, and the method for measuring time of flight comprises the following steps:
[0126] S601. Perform delay processing on the echo signal to obtain N delayed signals.
[0127] The delay amounts of the N delayed signals increase uniformly with U, where U is the delay amount of the delay unit and U is a natural number greater than 0.
[0128] S602 . Generate X clock signals with different phases based on a multi-phase clock unit.
[0129] Wherein, X is a positive integer greater than or equal to 2. The X clock signals with different phases can be understood as clock signals with a period of T but different start times of transmission. In the embodiment of the present application, the phase difference of the X clock signals increases uniformly by Y, where Y is greater than U / X.
[0130] For example, the delay amount of the delay unit is 20 ps, X=2, and the phase difference between the two clock signals is greater than 10 ps, such as 20 ps, 50 ps, etc.
[0131] S603 , delay latching the N delayed signals based on each of the clock signals respectively.
[0132] The result of the delay latch includes X. It can be understood that there are X delay latch units and X groups of delay signals, each delay latch unit receives a group of delay signals and a clock signal, a group of delay signals includes N delay signals, and one group of delay signals is no different from another group of delay signals; X time counting units correspond to the X delay latch units one by one, and each time counting unit counts based on a clock signal with a period T.
[0133] S604: Determine the to-be-processed flight time corresponding to each delay latch result by combining the reference signal and each delay latch result.
[0134] The working principle of combining the reference signal and the result of each delayed latch to determine the pending flight time corresponding to each delayed latch result is shown above. Figure 1 The time-of-flight measurement method and Figure 3 The time-of-flight measurement method shown.
[0135] S605 , performing time compensation on the X flight times to be processed based on the phase difference of the clock signal to obtain X compensated flight times.
[0136] From step S602 , it can be seen that the phase differences of the X clock signals uniformly increase by Y, so the time compensation amount is ΔT=YU / X. Based on the time compensation amount, the X flight times to be processed are compensated to obtain X compensated flight times.
[0137] For example, the delay amount of the delay unit is 20ps, X=5, and the 5 clock signals increase uniformly with a phase difference of 50ps, then the time compensation amount ΔT=YU / X=45ps; the 5 delay latch units obtain 5 flight times to be processed based on the corresponding 5 time counting units, the corresponding 5 clock signals and N delay signals, which are T1, T2, T3, T4, and T5 respectively. The time compensation amount of 45ps is subtracted from T1, T2, T3, T4, and T5 respectively to obtain 5 compensated flight times.
[0138] S606: Determine the target flight time by averaging the X compensated flight times.
[0139] The target flight time is determined by averaging the X compensated flight times. The calculation formula for averaging is (T1+T2+T3+T4+T5+…T N ) / X, the target flight time is the time difference between transmitting the reference signal and receiving the echo signal, that is, the flight time of the echo signal.
[0140] The principle of improving the time resolution by the time-of-flight measurement method of the present application embodiment is shown in the above Figure 3 As shown, no further description is given here.
[0141] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0142] By performing time compensation on the flight time to be processed, the flight time measurement method can reduce the accuracy requirements and costs for the multi-phase clock unit, and further improve the universality of the flight time measurement method of the present application without reducing the resolution of the TDC chip circuit measuring time.
[0143] For ease of understanding Figure 6 The flight time measurement method proposed in this application is shown as follows: Figure 7 As shown, in one embodiment, the present application proposes a time-of-flight measurement circuit suitable for Figure 6 The flight time measurement method shown. The flight time measurement circuit includes: X×N delay units, X delay latch units, X time counting units, X time compensation units, a multi-phase clock unit 740 and a time calculation unit 760. It can be understood that Figure 7 The structure shown is only part of the flight time measurement circuit, which is for illustration only and can be understood as the flight time measurement circuit when X=2.
[0144] Among them, N delay units form a group of delay units, such as Figure 7 As shown, one group of delay units 711 includes delay unit 7111, delay unit 7112, delay unit 7113, ..., delay unit 711N, another group of delay units 712 includes delay unit 7121, delay unit 7122, ..., delay unit 712N, and also includes an Xth group of delay units 41X (not shown in the figure), X delay latch units include delay latch unit 721 and delay latch unit 722, X time counting units include time counting unit 731 and time counting unit 732, and X time compensation units include time compensation unit 751 and time compensation unit 752.
[0145] like Figure 7As shown in the connection relationship, N delay units in a group of delay units 711 are connected in sequence, each delay latch unit is connected to each delay unit in the N delay units, each time counting unit is connected to each delay latch unit one-to-one, each time compensation unit is connected to each time counting unit one-to-one, the multi-phase clock unit is respectively connected to each time counting unit and each delay latch unit, and the time calculation unit is connected to each time compensation unit.
[0146] The working principles of the delay unit, the multi-phase clock unit 740, the delay latch unit and the time counting unit are shown in the above Figure 4 As shown, no further description is given here.
[0147] The time compensation unit is used to perform time compensation on X pending flight times based on Y to obtain X compensated flight times. It can be understood that in the embodiment of the present application, the phase difference of the X clock signals increases uniformly with Y, Y is greater than U / X, and the time compensation amount ΔT for the X pending flight times is ΔT=YU / X. For example, the time compensation unit 751 performs time compensation on the first pending flight time to obtain the first compensated flight time, and the time compensation unit 752 performs time compensation on the second pending flight time to obtain the second compensated flight time. The working principle of each time compensation unit performing time compensation on each pending flight time can be found in the above Figure 6 shown.
[0148] In another embodiment, the time compensation unit and the time calculation unit 760 are integrated into the same computing chip. In other words, the X time compensation units are just a plurality of sub-units included in the time calculation unit 760, and the time calculation unit 760 uses the X time compensation units to perform time compensation on the corresponding X pending flight times. In other embodiments, the X time compensation units are a plurality of virtual modules included in the time calculation unit 760, and the X time compensation units are used to indicate that the time calculation unit 760 has the function of performing time compensation on the X pending flight times.
[0149] It is understandable that the phase difference of the clock signal is required to increase uniformly at U / X, that is, the phase difference of two adjacent clock signals is 1 / X of the delay amount of the delay unit. However, this means that a higher precision requirement is imposed on the multi-phase clock unit. In the prior art, the clock phase difference output by the more commonly used multi-phase clock unit is Y, and Y is greater than U / X. Therefore, a time compensation unit is used to perform time compensation for the flight time to be processed according to the part of the phase difference of the clock signal that is greater than U / X. This reduces the precision requirement on the multi-phase clock unit and further detects the cost of the flight time measurement circuit.
[0150] The time calculation unit 760 is specifically used to determine the target flight time after averaging the X compensated flight times. It can be understood that the X compensated flight times include the first compensated flight time and the second compensated flight time.
[0151] The specific steps of the above-mentioned flight time measurement circuit to complete the flight time measurement are shown in FIG. Figure 6 The flight time measurement method shown is not repeated here.
[0152] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0153] The problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit is solved by the multi-phase clock unit, the accuracy of time measurement is effectively improved, and the cost of high-precision TDC chip circuits is greatly reduced, and less logic resources are occupied to improve the practicality and universality of high-precision TDC chip circuits; by performing time compensation on the flight time to be processed, the flight time measurement circuit can reduce the accuracy requirements and costs of the multi-phase clock unit, and without reducing the resolution of the TDC chip circuit in measuring time, the universality and working reliability of the flight time measurement circuit of the present application are further improved.
[0154] For ease of understanding Figure 6 The flight time measurement method proposed in this application is shown as follows: Figure 8 As shown, in one embodiment, the present application proposes another time-of-flight measurement circuit, suitable for Figure 6 The time-of-flight measurement method shown. Figure 8 The flight time measurement circuit shown includes: a group of delay units 810, X delay latch units, X time counting units, X time compensation units, a time calculation unit 860 and a multi-phase clock unit 840, Figure 8 The structure shown is only part of the flight time measurement circuit, which is for illustration only and can be understood as the flight time measurement circuit when X=2.
[0155] Among them, a group of delay units 810 includes delay unit 811, delay unit 812, delay unit 813, ..., delay unit 81N, X delay latch units include delay latch unit 821, delay latch unit 822, ..., delay latch unit 82X (not shown in the figure), and X time counting units include time counting unit 831, time counting unit 832, ..., time counting unit 83X (not shown in the figure).
[0156] like Figure 8As shown in the connection relationship, N delay units in a group of delay units 810 are connected in sequence, each delay latch unit is connected to each delay unit in the N delay units, each time counting unit is connected to each delay latch unit one by one, the multi-phase clock unit 840 is respectively connected to each time counting unit and each delay latch unit, and the time calculation unit 860 is connected to each time counting unit.
[0157] Compared to Figure 7 The flight time measurement circuit shown, Figure 8 The flight time measurement circuit shown includes only one group of delay units 810. In other words, N delay signals are generated by one group of delay units 810, and one group of delay units 810 generates X groups of delay signals, each group of delay signals includes N delay signals.
[0158] N delay units are used to obtain X groups of delayed signals after delay processing on the echo signal, each group of delayed signals includes N delayed signals, and send the X groups of delayed signals to the corresponding X delay latch units. Among them, the delay amount of the N delayed signals increases uniformly with U, U is the delay amount of the delay unit, and U is a natural number greater than 0.
[0159] The time compensation unit is used to perform time compensation on X pending flight times based on Y to obtain X compensated flight times. It can be understood that in the embodiment of the present application, the phase difference of the X clock signals increases uniformly with Y, Y is greater than U / X, and the time compensation amount ΔT for the X pending flight times is ΔT=YU / X. For example, the time compensation unit 851 performs time compensation on the first pending flight time to obtain the first compensated flight time, and the time compensation unit 852 performs time compensation on the second pending flight time to obtain the second compensated flight time. The working principle of each time compensation unit performing time compensation on each pending flight time can be found in the above Figure 6 The working principle of the time compensation unit can be found in Figure 7 As shown, no further description is given here.
[0160] The time calculation unit 860 is specifically used to determine the target flight time after averaging the X compensated flight times. It can be understood that the X compensated flight times include the first compensated flight time and the second compensated flight time.
[0161] The specific steps of the above-mentioned flight time measurement circuit to complete the flight time measurement are shown in FIG. Figure 6 The time-of-flight measurement method shown and Figure 7 The flight time measurement circuit shown is not described in detail here.
[0162] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0163] Compared to Figure 7 The flight time measurement circuit shown in the embodiment uses N delay units instead of X×N delay units to generate X groups of delay signals. Under the premise of also achieving high-precision flight time measurement, the cost of the high-precision TDC chip circuit is greatly reduced, and the error in time measurement caused by phase differences caused by environmental reasons such as quantization errors and signal jitter during operation of multiple groups of delay units is avoided, thereby effectively improving the working stability and reliability of the flight time measurement circuit; by performing time compensation on the flight time to be processed, the flight time measurement circuit can reduce the accuracy requirements and costs of the multi-phase clock unit, and further improve the universality and working reliability of the flight time measurement circuit of the present application without reducing the resolution of the TDC chip circuit in measuring time.
[0164] In a possible embodiment, the flight time measurement circuit further includes a delay line phase-locked oscillator, through which the multi-phase clock unit is connected to the N delay units. The delay line latched oscillator adjusts the oscillation period of the N delay units or X×N delay units by feedback-controlling the voltage of the TDC chip circuit, so that the oscillation period is stabilized on the period of the clock signal, so as to stabilize the overall delay of the X groups of delay units of the high-precision TDC chip circuit in real time. When the frequency of the delay unit changes due to factors such as the external temperature and the power supply voltage, the loop filter circuit of the delay line phase-locked oscillator controls the voltage of the TDC chip circuit, and detects the frequency of the delay unit through the feedback loop until the frequency of the delay unit is restored to 1 / N of the frequency of the clock signal.
[0165] The beneficial effects brought about by the technical solution provided in the embodiment of the present application include at least: using the delay line phase-locked oscillator to eliminate the frequency changes of the delay unit caused by factors such as external temperature and power supply voltage, stabilizing the frequency of the delay unit of the high-precision TDC chip circuit in real time, and improving the reliability of the TDC chip circuit.
[0166] The present application solves the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit through a multi-phase clock unit, effectively improves the accuracy of time measurement, and significantly reduces the cost of high-precision TDC chip circuits, while occupying fewer logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits; by performing time compensation on the flight time to be processed, the flight time measurement circuit can reduce the accuracy requirements and costs of the multi-phase clock unit, and further improve the universality and working reliability of the flight time measurement circuit of the present application without reducing the resolution of the TDC chip circuit in measuring time.
[0167] In one possible embodiment, Fig. 9 As shown, a flight time measurement method proposed in an embodiment of the present application includes the following steps:
[0168] S901 , perform multi-phase delay processing on the echo signal to obtain X signals to be input with different phases.
[0169] Among them, the period of the clock signal is T, the delay amount of the delay unit is U, X is a positive integer greater than or equal to 2, and the phase difference of the X signals to be input increases uniformly as U / X. In other words, the phase difference between the first signal to be input and the Xth signal to be input is the delay amount of a delay unit.
[0170] In the present application, a multi-phase delay unit is used to perform multi-phase delay on the echo signal to output X input signals with different phases.
[0171] S902 , respectively perform delay processing on X to-be-input signals with different phases to obtain N delayed signals corresponding to each to-be-input signal.
[0172] Among them, the delay amount of N delayed signals increases uniformly by U, and every N delayed signals form a group of delayed signals, and N is a positive integer greater than or equal to 2. It can be understood that after a signal to be input is delayed N times, a group of delayed signals is obtained, and the delay amount of this group of delayed signals increases uniformly by U, and the phase difference of X groups of delayed signals corresponding to X groups of input signals increases uniformly by U / X.
[0173] S903 , delay latching each group of N delayed signals based on each clock signal.
[0174] Among them, the results of the delayed latch include X.
[0175] It can be understood that a clock unit generates X clock signals, the period of the clock signal is T, N delayed signals are delayed and latched based on one clock signal, and each group of N delayed signals is delayed and latched based on X clock signals. The working principle of delaying and latching N delay latch units based on one clock signal is shown in Figure 2 or Figure 3 As shown, no further description is given here.
[0176] S904: Determine the to-be-processed flight time corresponding to each delay latch result by combining the reference signal and the delay latch result.
[0177] Among them, the flight time to be processed includes X.
[0178] The pending flight time can be understood as Figure 1 The target flight time shown is determined based on a set of N delay signals, a clock signal, a delay latch unit and a time counting unit. For a detailed process of determining the corresponding to-be-processed flight time, see Figure 2The step S204, i.e., the delay latch unit receives the first clock signal and N delay signals for delay latching, obtains the Gth delay signal as the target delay signal based on the rising edge trigger method, and then calculates the flight time of the echo signal based on the Gth delay signal and the counting amount H of the time counting unit according to the calculation formula T×HG×U.
[0179] S905. Determine the target flight time according to the X flight times to be processed.
[0180] The target flight time is the time difference between the transmitted reference signal and the received echo signal, that is, the flight time of the echo signal. In this embodiment, since the phase difference between the clock signals increases uniformly at U / X, the steps according to the X pending flight times are: determining the target flight time after averaging the X pending flight times, and the averaging calculation can be understood as adding the X pending flight times and dividing by X.
[0181] The following is a principle of improving the time resolution of the time-of-flight measurement method according to an embodiment of the present application:
[0182] Assume that X=2 at this time, that is, there are only 2 waiting input signals, 2 groups of delay signals, 2 clock signals, 2 delay latch units and 2 time counting units, the first waiting input signal corresponds to the first group of delay signals, the first delay latch unit and the first time counting unit, and the second waiting input signal corresponds to the second group of delay signals, the second delay latch unit and the second time counting unit; wherein, the period of the clock signal is T, the delay amount of the delay unit is t, t=U, the phase of the first waiting input signal of the 2 waiting input signals is 0, and the phase difference between the second waiting input signal and the first waiting input signal is t / 2; at this time, based on Figure 2 The time resolution of the flight time measurement method in the prior art is the delay amount t of the delay unit;
[0183] Assuming that the first pending flight time corresponding to the first group of delay signals corresponding to the first waiting input signal, the first delay latch unit and the first time counting unit is H×TG×t, wherein H refers to the alignment of the target delay signal with the Hth clock signal in the first clock signal, and G refers to the target delay unit being the Gth delay signal in the N delay signals, based on t=T / H, the first pending flight time can be converted to M×t;
[0184] Since the phase difference between the second signal to be input and the first signal to be input is t / 2, the phase difference between the second group of delayed signals and the first group of delayed signals is t / 2, based on the second group of delayed signals corresponding to the second clock signal, the second delay latch unit and the second time counting unit corresponding to the first flight time to be processed is (M+1)×t or M×t, (M+1)×t can be understood as the G+1th delayed signal is aligned with the Hth clock signal, and M×t can be understood as the Gth delayed signal is aligned with the Hth clock signal;
[0185] After averaging the first flight time to be processed and the second flight time to be processed, the target flight time may be M×t or (M+0.5)×t, where (M+0.5)×t is (2M+1)×t. 1 , t 1 =2t;
[0186] Therefore, the time resolution changes from the delay amount t to the delay amount t / 2. In other words, the time resolution is increased by 2 times;
[0187] Based on the same principle as above, Fig. 9 The flight time measurement method includes X signals to be input, which is X times higher than the flight time measurement method in the prior art.
[0188] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0189] By delaying the echo through a multi-phase delay unit, the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit is solved, the accuracy of time measurement is effectively improved, and the cost of high-precision TDC chip circuits is greatly reduced. It also occupies less logic resources, thereby improving the practicality and universality of high-precision TDC chip circuits.
[0190] For ease of understanding Fig. 9 The flight time measurement method proposed in this application is shown as follows: Fig.10 As shown, in one embodiment, the present application proposes a time-of-flight measurement circuit suitable for Fig.10 The flight time measurement method shown. The flight time measurement circuit includes: X×N delay units, X delay latch units, X time counting units, a multi-phase delay unit 1040 and a time calculation unit 1050. It can be understood that Fig.10 The structure shown is only part of the flight time measurement circuit, which is for illustration only and can be understood as the flight time measurement circuit when X=2.
[0191] Among them, N delay units form a group of delay units, such as Fig.10As shown, one group of delay units 1011 includes delay unit 10111, delay unit 10112, delay unit 10113, ..., delay unit 1011N, another group of delay units 1012 includes delay unit 10121, delay unit 10122, ..., delay unit 1012N, and also includes an Xth group of delay units 101X (not shown in the figure), X delay latch units include delay latch unit 1021 and delay latch unit 1022, and X time counting units include time counting unit 1031 and time counting unit 1032.
[0192] like Fig.10 As shown in the connection relationship, N delay units in a group of delay units 1011 are connected in sequence, each delay latch unit is connected to each delay unit in the N delay units, each time counting unit is connected to each delay latch unit one by one, the multi-phase delay unit 1040 is connected to each group of delay units respectively, and the time calculation unit is connected to each time counting unit.
[0193] N multi-phase delay units are used to obtain X input signals with different phases after multi-phase delay processing on the echo signal; wherein X is a positive integer greater than or equal to 2.
[0194] Each group of delay units is used to delay each signal to be input, and obtain N delayed signals corresponding to each signal to be input; wherein the delay amount of the N delayed signals increases uniformly with U, and each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0. For example, a group of delay units 1011 delays the first signal to be input N times to obtain a group of N delayed signals, and another group of delay units 1012 delays the second signal to be input N times to obtain another group of N delayed signals, and the phase difference between the two groups of delayed signals is U / X. It can be understood that the X signals to be input include Fig.10 The first signal to be input and the second signal to be input are shown.
[0195] The delay latch unit is used to generate a delay latch result based on the clock signal and the corresponding N delay signals. The clock signal can be understood as a signal with a period of T generated by the clock unit. For example, the delay latch unit 1021 generates a delay latch result based on the clock signal and the N delay signals corresponding to the first input signal, and the delay latch unit 1022 generates a delay latch result based on the clock signal and the N delay signals corresponding to the second input signal.
[0196] The time counting unit is used to generate a pending flight time based on the result of the delay latch output by the corresponding delay latch unit and the reference signal. The emission time can be understood as the start signal of the time counting unit, that is, the signal emitted simultaneously with the laser signal generating the echo signal. For example, the time counting unit 1031 generates a first pending flight time based on the result output by the delay latch unit 1021 and the reference signal, and the time counting unit 1032 generates a second pending flight time based on the result output by the delay latch unit 1022 and the reference signal.
[0197] The time calculation unit 1050 is used to calculate the average of the X pending flight times output by the X time counting units to obtain the target flight time, where the target flight time is the time difference between the transmitted reference signal and the received echo signal. It can be understood that the X pending flight times include Fig.10 A first pending flight time and a second pending flight time are shown.
[0198] The specific steps of the above-mentioned flight time measurement circuit to complete the flight time measurement are shown in FIG. Fig. 9 The flight time measurement method shown is not repeated here.
[0199] The present application performs multi-phase delay on the echo signal through a multi-phase delay unit to obtain multiple input signals with different phases, generates multiple flight times to be processed based on the corresponding multiple clock signals, and finally processes the flight times to be processed to obtain the target flight time of the echo signal, thereby solving the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit, effectively improving the accuracy of time measurement, and greatly reducing the cost of high-precision TDC chip circuits, while occupying less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits.
[0200] It is understandable that based on Fig. 9 The flight time measurement method shown requires that the phase difference of the input signal increases uniformly at U / X, that is, the phase difference of two adjacent input signals is 1 / X of the delay amount of the delay unit, but this means that a higher accuracy requirement is placed on the multi-phase clock unit. Therefore, the present application proposes another flight time measurement method, which can reduce the accuracy requirement and cost of the multi-phase delay unit and further improve the universality of the flight time measurement circuit of the present application.
[0201] In one possible embodiment, Fig.11 FIG. 1 is another method for measuring time of flight proposed in an embodiment of the present application, and the method comprises the following steps:
[0202] S1101 , perform multi-phase delay processing on the echo signal to obtain X signals to be input with different phases.
[0203] The period of the clock signal is T, the delay amount of the delay unit is U, X is a positive integer greater than or equal to 2, and the phase difference of the X input signals increases uniformly by Y, wherein Y is greater than U / X. In the present application, the multi-phase delay unit is used to perform multi-phase delay on the echo signal to output X input signals with different phases.
[0204] For example, the delay amount of the delay unit is 20 ps, X=2, and the phase difference between the two clock signals is greater than 10 ps, such as 20 ps, 50 ps, etc.
[0205] S1102 , respectively perform delay processing on X to-be-input signals with different phases to obtain N delayed signals corresponding to each to-be-input signal.
[0206] Among them, the delay amount of N delayed signals increases uniformly by U, and every N delayed signals form a group of delayed signals, and N is a positive integer greater than or equal to 2. It can be understood that after a signal to be input is delayed N times, a group of delayed signals is obtained, and the delay amount of this group of delayed signals increases uniformly by U, and the phase difference of X groups of delayed signals corresponding to X groups of input signals increases uniformly by Y.
[0207] S1103 , delay latching each group of N delayed signals based on each clock signal.
[0208] Among them, the results of the delayed latch include X.
[0209] It can be understood that a clock unit generates X clock signals, the period of the clock signal is T, N delayed signals are delayed and latched based on one clock signal, and each group of N delayed signals is delayed and latched based on X clock signals. The working principle of delaying and latching N delay latch units based on one clock signal is shown in Figure 2 or Figure 3 As shown, no further description is given here.
[0210] S1104 , combining the reference signal and the delay latch result, determining the to-be-processed flight time corresponding to each delay latch result.
[0211] Among them, the flight time to be processed includes X.
[0212] The working principle of combining the reference signal and the result of each delayed latch to determine the pending flight time corresponding to each delayed latch result is shown above. Figure 1 The time-of-flight measurement method and Figure 3 The time-of-flight measurement method shown.
[0213] S1105 , performing time compensation on the X flight times to be processed based on the phase difference of the signal to be input to obtain X compensated flight times.
[0214] From step S1101 , it can be seen that the phase differences of the X input signals uniformly increase by Y, so the time compensation amount is ΔT=YU / X. Based on the time compensation amount, the X flight times to be processed are compensated to obtain X compensated flight times.
[0215] For example, the delay amount of the delay unit is 20ps, X=5, and the five input signals increase uniformly with a phase difference of 50ps, then the time compensation amount ΔT=YU / X=45ps; the five delay latch units obtain five flight times to be processed based on the corresponding five time counting units and the 5×N delay signals corresponding to the five input signals, which are T1, T2, T3, T4, and T5 respectively. The time compensation amount of 45ps is subtracted from T1, T2, T3, T4, and T5 respectively to obtain the five compensated flight times.
[0216] S1106: Determine the target flight time by averaging the X compensated flight times.
[0217] The target flight time is determined by averaging the X compensated flight times. The calculation formula for averaging is (T1+T2+T3+T4+T5+…T N ) / X, the target flight time is the time difference between transmitting the reference signal and receiving the echo signal, that is, the flight time of the echo signal.
[0218] The principle of improving the time resolution by the time-of-flight measurement method of the present application embodiment is shown in the above Fig. 9 As shown, no further description is given here.
[0219] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0220] By delaying the echo through a multi-phase delay unit, the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit is solved, the accuracy of time measurement is effectively improved, and the cost of high-precision TDC chip circuits is greatly reduced. It also occupies less logic resources, thereby improving the practicality and universality of high-precision TDC chip circuits.
[0221] For ease of understanding Fig.11 The flight time measurement method proposed in this application is shown as follows: Fig.12 As shown, in one embodiment, the present application proposes a time-of-flight measurement circuit suitable for Fig.10The flight time measurement method shown. The flight time measurement circuit includes: X×N delay units, X delay latch units, X time counting units, a multi-phase delay unit 1240, X time compensation units and a time calculation unit 1260. It can be understood that Fig.12 The structure shown is only part of the flight time measurement circuit, which is for illustration only and can be understood as the flight time measurement circuit when X=2.
[0222] Among them, N delay units form a group of delay units, such as Fig.12 As shown, one group of delay units 1211 includes delay unit 12111, delay unit 12112, delay unit 12113, ..., delay unit 1211N, another group of delay units 1212 includes delay unit 12121, delay unit 12122, ..., delay unit 1212N, and also includes an Xth group of delay units 101X (not shown in the figure), X delay latch units include delay latch unit 1221 and delay latch unit 1222, and X time counting units include time counting unit 1231 and time counting unit 1232.
[0223] like Fig.12 As shown in the connection relationship, N delay units in a group of delay units 1211 are connected in sequence, each delay latch unit is connected to each delay unit in the N delay units, each time counting unit is connected to each delay latch unit one by one, the multi-phase delay unit 1240 is connected to each group of delay units respectively, and the time calculation unit is connected to each time counting unit.
[0224] N multiphase delay units are used to obtain X input signals with different phases after multiphase delay processing on the echo signal; wherein X is a positive integer greater than or equal to 2, and the phase differences of the X input signals increase uniformly by Y, wherein Y is greater than U / X.
[0225] Each group of delay units is used to delay each signal to be input, and obtain N delayed signals corresponding to each signal to be input; wherein the delay amount of the N delayed signals increases uniformly with U, and each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0. For example, a group of delay units 1211 delays the first signal to be input N times to obtain a group of N delayed signals, and another group of delay units 1212 delays the second signal to be input N times to obtain another group of N delayed signals, and the phase difference between the two groups of delayed signals is U / X. It can be understood that the X signals to be input include Fig.12 The first signal to be input and the second signal to be input are shown.
[0226] The delay latch unit is used to generate a delay latch result based on the clock signal and the corresponding N delay signals. The clock signal can be understood as a signal with a period of T generated by the clock unit. For example, the delay latch unit 1221 generates a delay latch result based on the clock signal and the N delay signals corresponding to the first input signal, and the delay latch unit 1222 generates a delay latch result based on the clock signal and the N delay signals corresponding to the second input signal.
[0227] The time counting unit is used to generate a pending flight time based on the result of the delay latch output by the corresponding delay latch unit and the reference signal. The emission time can be understood as the start signal of the start time counting unit, that is, the signal emitted simultaneously with the laser signal generating the echo signal. For example, the time counting unit 1231 generates a first pending flight time based on the result output by the delay latch unit 1221 and the reference signal, and the time counting unit 1232 generates a second pending flight time based on the result output by the delay latch unit 1222 and the reference signal.
[0228] The time compensation unit is used to perform time compensation on X pending flight times based on Y to obtain X compensated flight times. It can be understood that in the embodiment of the present application, the phase difference of the X clock signals increases uniformly with Y, Y is greater than U / X, and the time compensation amount ΔT for the X pending flight times is ΔT=YU / X. For example, the time compensation unit 1251 performs time compensation on the first pending flight time to obtain the first compensated flight time, and the time compensation unit 1252 performs time compensation on the second pending flight time to obtain the second compensated flight time. The working principle of each time compensation unit performing time compensation on each pending flight time can be found in the above Fig.11 shown.
[0229] In another embodiment, the time compensation unit and the time calculation unit 1250 are integrated into the same computing chip. In other words, the X time compensation units are just a plurality of sub-units included in the time calculation unit 1250, and the time calculation unit 1250 uses the X time compensation units to perform time compensation on the corresponding X pending flight times. In other embodiments, the X time compensation units are a plurality of virtual modules included in the time calculation unit 1250, and the X time compensation units are used to indicate that the time calculation unit 1250 has the function of performing time compensation on the X pending flight times.
[0230] The time calculation unit 1250 is used to calculate the average of the X pending flight times output by the X time counting units to obtain the target flight time, where the target flight time is the time difference between the transmitted reference signal and the received echo signal. It can be understood that the X pending flight times include Fig.10A first pending flight time and a second pending flight time are shown.
[0231] The specific steps of the above-mentioned flight time measurement circuit to complete the flight time measurement are shown in FIG. Fig.11 The flight time measurement method shown is not repeated here.
[0232] The present application performs multi-phase delay on the echo signal through a multi-phase delay unit to obtain multiple input signals with different phases, generates multiple flight times to be processed based on the corresponding multiple clock signals, and finally processes the flight time to be processed to obtain the target flight time of the echo signal, thereby solving the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit, effectively improving the accuracy of time measurement, and greatly reducing the cost of high-precision TDC chip circuits, and occupying less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits; by performing time compensation on the flight time to be processed, the flight time measurement circuit can reduce the accuracy requirements and costs of the multi-phase clock unit, and further improve the universality and working reliability of the flight time measurement circuit of the present application without reducing the resolution of the TDC chip circuit in measuring time.
[0233] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0234] See also Fig.13 , which shows a schematic diagram of the structure of a flight time measurement device provided by an exemplary embodiment of the present application. The flight time measurement device can be implemented as all or part of the device through software, hardware or a combination of both. The flight time measurement device includes a delay processing module 1301, a clock signal module 1302, a delay latch module 1303, a flight time module to be processed 1304 and a target flight time target 1305.
[0235] The delay processing module 1301 is used to perform delay processing on the echo signal to obtain N delayed signals; wherein the delay amounts of the N delayed signals are uniformly increased by U, where U is the delay amount of the delay unit and U is a natural number greater than 0;
[0236] A clock signal module 1302, configured to generate X clock signals with different phases based on a multi-phase clock unit; wherein X is a positive integer greater than or equal to 2;
[0237] The delay latch module 1303 performs delay latching on the N delayed signals based on each of the clock signals, wherein the delay latching results include X;
[0238] The flight time to be processed module 1304 is used to determine the flight time to be processed corresponding to each delay latch result in combination with the reference signal and the result of each delay latch; wherein the flight time to be processed includes X;
[0239] The target flight time module 1305 is used to determine a target flight time according to the X flight times to be processed; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
[0240] In one or more possible embodiments, the phase differences of the X clock signals are uniformly increased by U / X;
[0241] The target flight time module 1305 specifically performs:
[0242] The target flight time is determined by averaging the X flight times to be processed.
[0243] In one or more possible embodiments, the phase differences of the X clock signals are uniformly increased by Y; wherein Y is greater than U / X;
[0244] The target flight time module 1305 includes:
[0245] A compensation unit, configured to perform time compensation on the X to-be-processed flight times based on the Y to obtain X compensated flight times; wherein the time compensation amount ΔT for the X to-be-processed flight times is ΔT=YU / X;
[0246] An averaging unit is used to determine the target flight time by averaging the X compensated flight times.
[0247] In one or more possible embodiments, the N delayed signals are generated by a group of delay units, and the group of delay units includes N delay units.
[0248] In one or more possible embodiments, the N delay signals are generated by X×N delay units; each N delay units form a group of delay units, each group of delay units generates a group of delay signals, each group of delay signals includes the N delay signals whose delay amounts uniformly increase by U, and each group of delay units corresponds to each of the clock signals;
[0249] The delay latch module 1303 specifically performs:
[0250] Delay latching is performed based on each of the clock signals and each group of delay signals corresponding to each of the clock signals.
[0251] The present application generates multiple clock units with different phases through a multi-phase clock unit, and generates multiple flight times to be processed based on the corresponding multiple groups of delay signals. Finally, the flight time to be processed is processed to obtain the target flight time of the echo signal. This is different from the prior art in which the flight time is generated by one clock signal and a group of delay signals. It solves the problem that the resolution of TDC time ranging is limited by the delay amount of the delay unit, effectively improves the accuracy of time measurement, and greatly reduces the cost of high-precision TDC chip circuits, and occupies less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits.
[0252] See also Fig.14 , which shows a schematic diagram of the structure of a flight time measurement device provided by an exemplary embodiment of the present application. The flight time measurement device can be implemented as all or part of the device through software, hardware or a combination of both. The flight time measurement device includes a multi-phase delay module 1401, a delay processing module 1402, a delay latch module 1403, a to-be-processed flight time module 1404 and a target flight time module 1405.
[0253] The multi-phase delay module 1401 is used to perform multi-phase delay processing on the echo signal to obtain X input signals with different phases; wherein X is a positive integer greater than or equal to 2;
[0254] The delay processing module 1402 is used to perform delay processing on the X signals to be input with different phases respectively, and obtain N delayed signals corresponding to each signal to be input; wherein the delay amount of the N delayed signals increases uniformly by U, and each N delayed signals is a group of delayed signals, and U is the delay amount of the delay unit, and U is a natural number greater than 0;
[0255] A delay latch module 1403 is used to delay latch each group of the N delayed signals based on each of the clock signals; wherein the delay latch results include X;
[0256] The flight time to be processed module 1404 is used to determine the flight time to be processed corresponding to each delay latch result in combination with the reference signal and the delay latch result; wherein the flight time to be processed includes X;
[0257] The target flight time module 1405 is used to determine a target flight time according to the X flight times to be processed; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
[0258] In one or more possible embodiments, the phase differences of the X to-be-input signals are uniformly increased by U / X;
[0259] The target flight time module 1405 specifically performs:
[0260] The target flight time is determined by averaging the X flight times to be processed.
[0261] In one or more possible embodiments, the phase differences of the X to-be-input signals are uniformly increased by Y; wherein Y is greater than U / X;
[0262] The target flight time module 1405 includes:
[0263] A compensation unit, which performs time compensation on the X to-be-processed flight times based on the Y to obtain X compensated flight times; wherein the time compensation amount ΔT for the X to-be-processed flight times is ΔT=YU / X;
[0264] The averaging unit determines the target flight time by averaging the X compensated flight times.
[0265] The present application performs multi-phase delay on the echo signal through a multi-phase delay unit to obtain multiple input signals with different phases, generates multiple flight times to be processed based on the corresponding multiple clock signals, and finally processes the flight times to be processed to obtain the target flight time of the echo signal, thereby solving the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit, effectively improving the accuracy of time measurement, and greatly reducing the cost of high-precision TDC chip circuits, while occupying less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits.
[0266] It should be noted that the flight time measurement device provided in the above embodiment only uses the division of the above functional modules as an example when executing the flight time measurement method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the flight time measurement device provided in the above embodiment and the flight time measurement method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0267] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0268] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 2 The flight time measurement method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1-Figure 2 The specific description of the illustrated embodiment will not be repeated here.
[0269] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1-Figure 12 The flight time measurement method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1-Figure 12 The specific description of the illustrated embodiment will not be repeated here.
[0270] See also Fig.15 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.15 As shown, the electronic device 1500 may include: at least one processor 1501 , at least one network interface 1504 , a user interface 1503 , a memory 1505 , and at least one communication bus 1502 .
[0271] The communication bus 1502 is used to realize the connection and communication between these components.
[0272] The user interface 1503 may include a display screen (Display) and a camera (Camera), and the optional user interface 1503 may also include a standard wired interface and a wireless interface.
[0273] The network interface 1504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0274] Among them, the processor 1501 may include one or more processing cores. The processor 1501 uses various interfaces and lines to connect various parts of the entire electronic device 1500, and executes various functions and processes data of the electronic device 1500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1505, and calling data stored in the memory 1505. Optionally, the processor 1501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1501, and it can be implemented separately through a chip.
[0275] Among them, the memory 1505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1505 includes a non-transitory computer-readable storage medium. The memory 1505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 1505 may optionally be at least one storage device located away from the aforementioned processor 1501. As Fig.15 As shown, the memory 1505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a flight time measurement application.
[0276] exist Fig.15In the electronic device 1500 shown, the user interface 1503 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1501 can be used to call the flight time measurement application stored in the memory 1505 and specifically perform the following operations:
[0277] Delay processing is performed on the echo signal to obtain N delayed signals; wherein the delay amounts of the N delayed signals are uniformly increased by U, where U is the delay amount of the delay unit and U is a natural number greater than 0;
[0278] Generate X clock signals with different phases based on the multi-phase clock unit; wherein X is a positive integer greater than or equal to 2;
[0279] Delay latching the N delayed signals based on each of the clock signals respectively; wherein the delay latching results include X;
[0280] Determine the to-be-processed flight time corresponding to each delay latch result in combination with the reference signal and each delay latch result; wherein the to-be-processed flight time includes X;
[0281] A target flight time is determined according to the X flight times to be processed; the target flight time is a time difference between transmitting the reference signal and receiving the echo signal.
[0282] In one or more possible embodiments, the phase difference of the X clock signals is uniformly increased by U / X, and when the processor 1501 determines the target flight time according to the X flight times to be processed, specifically performs:
[0283] The target flight time is determined by averaging the X flight times to be processed.
[0284] In one or more possible embodiments, the phase difference of the X clock signals increases uniformly by Y; wherein Y is greater than U / X, and when the processor 1501 determines the target flight time according to the X flight times to be processed, specifically performs:
[0285] After performing time compensation on the X to-be-processed flight times based on the Y, X compensated flight times are obtained; wherein the time compensation amount ΔT for the X to-be-processed flight times is equal to YU / X;
[0286] The target flight time is determined by averaging the X compensated flight times.
[0287] In one or more possible embodiments, the N delayed signals are generated by a group of delay units, and the group of delay units includes N delay units.
[0288] In one or more possible embodiments, the N delay signals are generated by X×N delay units; each N delay units form a group of delay units, each group of delay units generates a group of delay signals, each group of delay signals includes the N delay signals whose delay amounts uniformly increase by U, and each group of delay units corresponds to each of the clock signals, and the processor 1501 executes the delay latching of the N delay signals based on each of the clock signals, specifically performing:
[0289] Delay latching is performed based on each of the clock signals and each group of delay signals corresponding to each of the clock signals.
[0290] The embodiment of the present application generates multiple clock units with different phases through a multi-phase clock unit, and generates multiple flight times to be processed based on the corresponding multiple groups of delay signals. Finally, the flight time to be processed is processed to obtain the target flight time of the echo signal. This is different from the prior art in which the flight time is generated by one clock signal and a group of delay signals. It solves the problem that the resolution of TDC time ranging is limited by the delay amount of the delay unit, effectively improves the accuracy of time measurement, and greatly reduces the cost of high-precision TDC chip circuits, and occupies less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits.
[0291] In a possible embodiment, the processor 1501 may be used to call another flight time measurement application stored in the memory 1505, and specifically perform the following operations:
[0292] Performing multi-phase delay processing on the echo signal to obtain X input signals with different phases; wherein X is a positive integer greater than or equal to 2;
[0293] Delay processing is performed on the X signals to be input with different phases respectively to obtain N delayed signals corresponding to each signal to be input; wherein the delay amount of the N delayed signals increases uniformly by U, each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0;
[0294] Delay latching each group of the N delayed signals based on each of the clock signals; wherein the delay latching results include X;
[0295] Determine the to-be-processed flight time corresponding to each delay latch result in combination with the reference signal and the delay latch result; wherein the to-be-processed flight time includes X;
[0296] A target flight time is determined according to the X flight times to be processed; the target flight time is a time difference between transmitting the reference signal and receiving the echo signal.
[0297] In one or more possible embodiments, the phase differences of the X to-be-input signals are uniformly increased by U / X, and when the processor 1501 performs the step of determining the target flight time according to the X to-be-processed flight times, specifically:
[0298] The target flight time is determined by averaging the X flight times to be processed.
[0299] In one or more possible embodiments, the phase differences of the X to-be-input signals are uniformly increased by Y; wherein Y is greater than U / X, and when the processor 1501 performs the step of determining the target flight time according to the X to-be-processed flight times, specifically:
[0300] After performing time compensation on the X to-be-processed flight times based on the Y, X compensated flight times are obtained; wherein the time compensation amount ΔT for the X to-be-processed flight times is equal to YU / X;
[0301] The target flight time is determined by averaging the X compensated flight times.
[0302] The present application performs multi-phase delay on the echo signal through a multi-phase delay unit to obtain multiple input signals with different phases, generates multiple flight times to be processed based on the corresponding multiple clock signals, and finally processes the flight times to be processed to obtain the target flight time of the echo signal, thereby solving the problem that the resolution of TDC-based time ranging is limited by the delay amount of the delay unit, effectively improving the accuracy of time measurement, and greatly reducing the cost of high-precision TDC chip circuits, while occupying less logic resources, so as to improve the practicality and universality of high-precision TDC chip circuits.
[0303] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0304] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for measuring time of flight, characterized in that: include: Delay processing is performed on the echo signal to obtain N delayed signals; wherein the delay amounts of the N delayed signals are uniformly increased by U, where U is the delay amount of the delay unit and U is a natural number greater than 0; Generate X clock signals with different phases based on the multi-phase clock unit; wherein X is a positive integer greater than or equal to 2; Delay latching the N delayed signals based on each of the clock signals respectively; wherein the delay latching results include X; Combine the reference signal and the result of each delay latch, determine the flight time to be processed corresponding to the result of each delay latch; wherein the flight time to be processed includes X, when the laser signal is emitted from the emission unit of the target device to the object to be detected, the reference signal is emitted to the time counting unit of the target device, so that the time counting unit starts counting based on the clock signal of period T from the time when the reference signal is received; A target flight time is determined according to the X flight times to be processed; the target flight time is a time difference between transmitting the reference signal and receiving the echo signal.
2. The method according to claim 1, characterized in that: The phase difference of the X clock signals increases uniformly by U / X; Determining the target flight time according to the X to-be-processed flight times comprises: The target flight time is determined by averaging the X flight times to be processed.
3. The method according to claim 1, characterized in that: The phase differences of the X clock signals uniformly increase by Y, wherein Y is greater than U / X; Determining the target flight time according to the X to-be-processed flight times comprises: After performing time compensation on the X to-be-processed flight times based on the Y, X compensated flight times are obtained; wherein the time compensation amount ΔT for the X to-be-processed flight times is equal to YU / X; The target flight time is determined by averaging the X compensated flight times.
4. The method according to any one of claims 1 to 3, characterized in that: The N delayed signals are generated by a group of delay units, and the group of delay units includes N delay units.
5. The method according to any one of claims 1 to 3, characterized in that: The N delay signals are generated by X×N delay units; each N delay units form a group of delay units, each group of delay units generates a group of delay signals, each group of delay signals includes N delay signals with delay amounts uniformly increasing by U, and each group of delay units corresponds to each of the clock signals; The delay latching of the N delayed signals based on each of the clock signals respectively comprises: Delay latching is performed based on each of the clock signals and each group of delay signals corresponding to each of the clock signals.
6. A method for measuring time of flight, characterized in that: include: Performing multi-phase delay processing on the echo signal to obtain X input signals with different phases; wherein X is a positive integer greater than or equal to 2; Delay processing is performed on the X signals to be input with different phases respectively to obtain N delayed signals corresponding to each signal to be input; wherein the delay amounts of the N delayed signals are uniformly increased by U, where U is the delay amount of the delay unit and U is a natural number greater than 0; Delay latching each group of the N delayed signals based on each clock signal; wherein the delay latching results include X; Combine the reference signal and the result of the delay latch, determine the flight time to be processed corresponding to each delay latch result; wherein the flight time to be processed includes X, when the laser signal is emitted from the emission unit of the target device to the object to be detected, the reference signal is emitted to the time counting unit of the target device, so that the time counting unit starts counting based on the clock signal of period T from the time when the reference signal is received; A target flight time is determined according to the X flight times to be processed; the target flight time is a time difference between transmitting the reference signal and receiving the echo signal.
7. The method according to claim 6, characterized in that: The phase differences of the X input signals are uniformly increased by U / X; Determining the target flight time according to the X to-be-processed flight times comprises: The target flight time is determined by averaging the X flight times to be processed.
8. The method according to claim 6, characterized in that: The phase differences of the X input signals are uniformly increased by Y, wherein Y is greater than U / X; Determining the target flight time according to the X to-be-processed flight times comprises: After performing time compensation on the X to-be-processed flight times based on the Y, X compensated flight times are obtained; wherein the time compensation amount ΔT for the X to-be-processed flight times is equal to YU / X; The target flight time is determined by averaging the X compensated flight times.
9. A time-of-flight measurement circuit, characterized in that: The circuit comprises: N delay units, X time counting units, X delay latch units, a multi-phase clock unit and a time calculation unit; The N delay units are connected in sequence, each of the delay latch units is connected to each of the N delay units, each of the time counting units is connected to each of the delay latch units in a one-to-one correspondence, the multi-phase clock unit is respectively connected to each of the time counting units and each of the delay latch units, and the time calculation unit is connected to each of the time counting units; The N delay units are used to obtain N delayed signals after delay processing on the echo signal; wherein the delay amounts of the N delayed signals are uniformly increased by U, where U is the delay amount of the delay unit and U is a natural number greater than 0; The multi-phase clock unit is used to generate X clock signals with different phases; wherein X is a positive integer greater than or equal to 2; The delay latch unit is used to generate a delay latch result based on the corresponding clock signal and the corresponding N delay signals; The time counting unit is used to generate a flight time to be processed based on the result of the delay latch output by the corresponding delay latch unit and the reference signal; wherein, when the laser signal is emitted from the emission unit of the target device to the object to be detected, the time counting unit receives the reference signal sent by the target device and starts counting the clock signal based on the period T at the same time; The time calculation unit is used to determine a target flight time according to the X to-be-processed flight times output by the X time counting units; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
10. The circuit according to claim 9, characterized in that The phase difference of the X clock signals increases uniformly by U / X; The time calculation unit is specifically used to determine the target flight time after averaging the X flight times to be processed.
11. The circuit according to claim 9, characterized in that: The phase differences of the X clock signals are uniformly increased by Y, wherein Y is greater than U / X; The circuit further comprises: X time compensation units; The time calculation unit is connected to the X time compensation units in correspondence, and each of the time compensation units is connected to each of the time counting units in a one-to-one correspondence; Each of the time compensation units is used to perform time compensation on the X to-be-processed flight times based on the Y to obtain X compensated flight times; wherein the time compensation amount ΔT for the X to-be-processed flight times is ΔT=YU / X; The time calculation unit is specifically used to determine the target flight time after averaging the X compensated flight times.
12. The circuit according to claim 9, characterized in that: The circuit further includes (X-1)×N delay units; each N delay units form a group of delay units, each group of delay units generates a group of delay signals, each group of delay signals includes N delay signals with delay amounts uniformly increasing by U, and each group of delay units corresponds to each of the clock signals; The X groups of delay units are connected to the X delay latch units in a one-to-one correspondence.
13. A time-of-flight measurement circuit, characterized in that: The circuit comprises: X×N delay units, X time counting units, X delay latch units, a multi-phase delay unit and a time calculation unit; the N delay units constitute a group of delay units; The multi-phase delay unit is connected to each group of delay units, each of the delay latch units is connected to each of the N delay units, each of the time counting units is connected to each of the delay latch units in a one-to-one correspondence, and the time calculation unit is connected to each of the time counting units; The multi-phase delay unit is used to obtain X input signals with different phases after multi-phase delay processing on the echo signal; wherein X is a positive integer greater than or equal to 2; Each group of delay units is used to perform delay processing on each of the to-be-input signals to obtain N delayed signals corresponding to each to-be-input signal; wherein the delay amounts of the N delayed signals are uniformly increased by U, and each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0; The delay latch unit is used to generate a delay latch result based on the clock signal and the corresponding N delay signals; The time counting unit is used to generate a flight time to be processed based on the result of the delay latch output by the corresponding delay latch unit and the reference signal; wherein, when the laser signal is emitted from the emission unit of the target device to the object to be detected, the time counting unit receives the reference signal sent by the target device and starts counting the clock signal based on the period T at the same time; The time calculation unit is used to determine a target flight time according to the X to-be-processed flight times output by the X time counting units; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
14. The circuit according to claim 13, characterized in that: The phase differences of the X input signals are uniformly increased by U / X; The time calculation unit is specifically used to determine the target flight time after averaging the X flight times to be processed.
15. The circuit according to claim 13, characterized in that: The phase differences of the X clock input signals are uniformly increased by Y, wherein Y is greater than U / X; The circuit further comprises: X time compensation units; The time calculation unit is connected to the X time compensation units in correspondence, and each of the time compensation units is connected to each of the time counting units in a one-to-one correspondence; Each of the time compensation units is used for obtaining X compensated flight times by performing time compensation on the X flight times to be processed by Y; wherein the time compensation amount ΔT for the X flight times to be processed is equal to YU / X; The time calculation unit is specifically used to determine the target flight time after averaging the X compensated flight times.
16. A flight time measurement device, characterized in that: The device comprises: A delay processing module, used for delay processing the echo signal to obtain N delayed signals; wherein the delay amounts of the N delayed signals increase uniformly by U, where U is the delay amount of the delay unit and U is a natural number greater than 0; A clock signal module, used to generate X clock signals with different phases based on a multi-phase clock unit; wherein X is a positive integer greater than or equal to 2; A delay latch module, delay latching the N delay signals based on each of the clock signals respectively; wherein the delay latching results include X; A flight time module to be processed, used to determine the flight time to be processed corresponding to the result of each delay latch in combination with the reference signal and the result of each delay latch; wherein the flight time to be processed includes X, and when the laser signal is emitted from the emission unit of the target device to the object to be detected, the reference signal is emitted to the time counting unit of the target device, so that the time counting unit starts counting based on the clock signal of period T from the receipt of the reference signal; The target flight time module is used to determine the target flight time according to the X flight times to be processed; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
17. A flight time measurement device, characterized in that: The device comprises: A multi-phase delay module is used to perform multi-phase delay processing on the echo signal to obtain X input signals with different phases; wherein X is a positive integer greater than or equal to 2; A delay processing module, used for performing delay processing on the X signals to be input with different phases respectively, to obtain N delayed signals corresponding to each signal to be input; wherein the delay amount of the N delayed signals increases uniformly by U, each N delayed signals is a group of delayed signals, U is the delay amount of the delay unit, and U is a natural number greater than 0; A delay latch module, used for delay latching each group of the N delayed signals based on each clock signal; wherein the delay latch results include X; A flight time module to be processed, used to determine the flight time to be processed corresponding to each delay latch result in combination with the reference signal and the delay latch result; wherein the flight time to be processed includes X, and when the laser signal is emitted from the emission unit of the target device to the object to be detected, the reference signal is emitted to the time counting unit of the target device, so that the time counting unit starts counting based on the clock signal of period T from the receipt of the reference signal; The target flight time module is used to determine the target flight time according to the X flight times to be processed; the target flight time is the time difference between transmitting the reference signal and receiving the echo signal.
18. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 8.
19. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
FPGA-based TDC realization method
CN108389225A
Time-to-digital converter based on delay phase-locked loop
CN109521666A
