Time interval test circuit, time interval test method and distance measurement system
By designing the time interval test circuit, the delay module outputs preset time interval signals for testing and calibration, the problem of slow calibration speed and high cost of dToF system is solved, and a fast and economical time interval recording module testing is achieved.
Patent Information
- Application Number
- CN202111415921.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-11-25
AI Technical Summary
The existing dToF systems are slower during calibration and are prone to waste module chips and packaging materials, resulting in increased costs and long testing time.
A time interval testing circuit is designed, and the preset time interval timing signal and delay recording signal are output through the delay module, which are used to record and compare the test time interval, judge the accuracy of the time interval recording module, and replace the single-photon avalanche diode signal. Perform test calibration without laser source and single-photon avalanche diode to shorten the test time.
The test of the time interval recording module can be carried out without the complete packaging of the entire ToF module, avoiding the waste of other chips and packaging materials, shortening the test time and improving the calibration speed.
Smart Images

Figure CN114089318B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of integrated circuits, and in particular to a time interval testing circuit, a time interval testing method and a distance measurement system. Background Art
[0002] At present, with the market's growing interest in 3D vision and recognition technology, ToF (time of flight) technology continues to develop. ToF mainly includes two technical routes: iToF (indirect time of flight, indirect-ToF) and dToF (direct time of flight, direct-ToF). The dToF system detects the distance to an object by emitting a short pulse of light and then measuring the time required for the emitted light to return.
[0003] The existing dToF system mainly includes a laser source, a single-photon avalanche diode (SPAD) and a time-to-digital converter (TDC). The laser source emits pulsed light, which is received by the single-photon avalanche diode after being reflected by an object. The time-to-digital converter writes the time interval data of the process, which is then read by the digital module for processing and calculation to obtain the distance. Since the laser driver chip and laser emitter of the laser source require different semiconductor processes to manufacture, the current method mainly integrates the time-to-digital converter and the single-photon avalanche diode on the same chip (generally called a SPAD sensor chip because it has a SPAD sensor), and then assembles it with the laser source to form a ToF module.
[0004] After the entire ToF module is assembled, a calibration will be performed to correct the performance deviation caused by the production process. However, if it is found during the calibration process that the performance of the entire ToF module does not meet the requirements due to process reasons, the cost of other chips and packaging materials on the module will be wasted; at the same time, due to the need to calibrate the accuracy and linearity of the time-to-digital converter array, the ToF module needs to measure the time interval data at different distances multiple times to determine the accuracy and linearity of the time-to-digital converter array, resulting in a long calibration test time. Therefore, how to improve the calibration speed of the ToF module has become the direction of efforts of people in this field. Summary of the invention
[0005] The present application provides a time interval testing circuit, a time interval testing method and a ranging system, aiming to solve the technical problems that the current ToF module calibration speed is slow and the cost of module chips and packaging materials is easily wasted.
[0006] In a first aspect, the present application provides a time interval testing circuit, comprising:
[0007] Time interval recording module;
[0008] A delay module, the delay module is connected to the time interval recording module, and the delay module is used to output a timing signal with a preset time interval and a delay recording signal;
[0009] The time interval recording module records the test time interval according to the timing signal and the delay recording signal, so as to determine the accuracy of the time interval recording module according to the preset time interval and the test time interval.
[0010] In some embodiments, the delay module includes a plurality of delay registers connected in series and a first multiplexer connected to output ends of the plurality of delay registers;
[0011] In the direction from the first end of the series connection to the last end of the series connection, the delay register at the first end of the series connection is connected to the initial signal, and the control ends of the multiple delay registers are connected to the same preset clock signal, and the preset clock signal has a fixed clock period;
[0012] The first multiplexer is configured to select the output signal output of the mth delay register so that under the control of a preset clock signal, the first multiplexer outputs a delayed recording signal whose interval time with the initial signal is m clock cycles, wherein m is an integer greater than or equal to 1.
[0013] In some embodiments, the delay module further includes a second multiplexer connected to output terminals of the plurality of delay registers;
[0014] The second multiplexer is configured to select the output signal output of the nth delay register so that under the control of a preset clock signal, the second multiplexer outputs a timing signal whose interval time with the initial signal is n clock cycles, where n is an integer greater than or equal to 1, and n is less than m.
[0015] In some embodiments, the delay module further includes a third multiplexer, and an output terminal of the third multiplexer is connected to control terminals of the plurality of delay registers;
[0016] The input end of the third multiplexer is connected to the first clock signal and the second clock signal. The third multiplexer is configured to select the first clock signal or the second clock signal to be input to the control ends of the plurality of delay registers.
[0017] In some embodiments, the time interval recording module includes:
[0018] A reference clock submodule, the reference subclock module has a fixed operation cycle;
[0019] A counting submodule, the counting submodule is connected to the reference clock submodule;
[0020] A timing submodule, the timing submodule is connected to the counting submodule;
[0021] The counting submodule starts to record the number of operation cycles of the reference clock submodule according to the timing signal, and the timing submodule stores the recording result of the current time counting submodule as the test time interval according to the delay recording signal.
[0022] In some embodiments, the time interval recording module further includes a fourth multiplexer, and an output terminal of the fourth multiplexer is connected to a control terminal of the timing submodule;
[0023] The input end of the fourth multiplexer is connected to the delayed recording signal and the real recording signal, and the fourth multiplexer is configured to select the delayed recording signal or the real recording signal to be input to the control end of the timing submodule.
[0024] In a second aspect, the present application provides a time interval testing method, comprising:
[0025] The delay module outputs a first timing signal and a first delay recording signal, and the first timing signal and the first delay recording signal have a first preset time interval;
[0026] The time interval recording module records the first test time interval according to the first timing signal and the first delay recording signal;
[0027] The first preset time interval and the first test time interval are compared to determine the accuracy of the time interval recording module.
[0028] In some embodiments, the method further comprises:
[0029] The delay module outputs a second timing signal and a second delay recording signal, and the second timing signal and the second timing signal have a second preset time interval;
[0030] The time interval recording module records the second test time interval according to the second timing signal and the second delay recording signal;
[0031] The first time difference and the second time difference are compared to determine the accuracy of the time interval recording module, wherein the first time difference is the difference between the first preset time interval and the second preset time interval, and the second time difference is the difference between the first test time interval and the second test time interval.
[0032] In some embodiments, the time interval recording module includes a reference clock submodule, a counting submodule and a timing submodule, the reference subclock submodule has a fixed operation cycle, the counting submodule is connected to the reference clock submodule, and the timing submodule is connected to the counting submodule;
[0033] The step of the time interval recording module recording the first test time interval according to the first timing signal and the first delay recording signal includes:
[0034] The counting submodule starts recording the number of operation cycles of the reference clock submodule according to the first timing signal;
[0035] The timing submodule stores the recording result of the current time counting submodule as the first test time interval according to the first delay recording signal.
[0036] In a third aspect, the present application provides a ranging system, comprising the time interval testing circuit as described in the first aspect.
[0037] In some embodiments, it also includes:
[0038] A signal transmitting unit, the signal transmitting unit is used to transmit a ranging signal;
[0039] A signal receiving unit, the signal receiving unit is used to receive the ranging signal after being reflected by the object; and
[0040] The delay module of the time interval test circuit is connected to the signal transmitting unit, and the time interval recording module of the time interval test circuit is connected to the signal receiving unit;
[0041] The delay module sends out a transmission signal and a timing signal. The transmission signal is input to the signal transmission unit, and the timing signal is input to the time interval recording module to perform the following process:
[0042] The time interval recording module starts timing under the triggering of the timing signal, and the signal transmitting unit transmits the ranging signal under the triggering of the transmitting signal;
[0043] After receiving the returned ranging signal, the signal receiving unit generates a real recording signal to control the time interval recording module to end timing and obtain the propagation time of the ranging signal.
[0044] In some embodiments, the transmission signal and the timing signal have a preset time interval, so as to offset the time difference between the first signal circuit delay and the second signal circuit delay by the preset time interval;
[0045] The first signal circuit delay is the time taken for the transmission signal to be input to the signal transmission unit, and the second signal circuit delay is the time taken for the timing signal to be input to the time interval recording module.
[0046] The present application sends out a timing signal and a delay recording signal of a simulated test through a delay module, and the time interval recording module records the test time interval according to the timing signal and the delay recording signal. Since the timing signal and the delay recording signal have a preset time interval, the accuracy of the time interval recording module can be judged according to the preset time interval and the test time interval, that is, the delay recording signal replaces the signal generated by the single-photon avalanche diode to trigger the time interval recording module, so that the time interval recording module can be tested and calibrated without a laser source and a single-photon avalanche diode, and thus the test of the time interval recording module does not need to be performed after the entire ToF module is packaged, so as to avoid the waste of other chips and packaging materials on the module; at the same time, since the delay recording signal is simulated by the delay module, the entire test process does not need to simulate the real test environment, nor does it need to consider the phenomenon that the ambient light mistakenly triggers the single-photon avalanche diode to generate a signal, which is beneficial to shorten the test time of the time interval recording module. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 It is a module schematic diagram of a time interval test circuit provided in an embodiment of the present application;
[0049] Figure 2 It is a schematic diagram of a time interval test circuit including a specific structure of a delay module provided in an embodiment of the present application;
[0050] Figure 3 It is a schematic diagram of a time interval test circuit including a specific structure of a delay module provided in an embodiment of the present application;
[0051] Figure 4 It is a schematic diagram of a time interval test circuit including a specific structure of a delay module provided in an embodiment of the present application;
[0052] Figure 5 It is a schematic diagram of a time interval test circuit including a specific structure of a delay module provided in an embodiment of the present application;
[0053] Figure 6 It is a schematic diagram of a time interval testing circuit including a specific structure of a time interval recording module provided in an embodiment of the present application;
[0054] Figure 7It is a schematic diagram of a time interval testing circuit including a specific structure of a time interval recording module provided in an embodiment of the present application;
[0055] Figure 8 It is a flow chart of a time interval testing method provided in an embodiment of the present application;
[0056] Fig. 9 It is a flow chart of a time interval testing method provided in an embodiment of the present application;
[0057] Fig.10 is a signal schematic diagram provided in an embodiment of the present application;
[0058] Fig.11 It is a relationship diagram between multiple preset time intervals and multiple test time intervals provided in the embodiment of the present application;
[0059] Fig.12 It is a module schematic diagram of the ranging system provided in the embodiment of the present application.
[0060] in:
[0061] 10 time interval recording module, 11 reference clock submodule, 12 counting submodule, 13 timing submodule, 14 fourth multiplexer, 20 delay module, 21 delay register, 22 first multiplexer, 23 second multiplexer, 24 third multiplexer;
[0062] 100 time interval test circuit, 200 signal transmitting unit, 300 signal receiving unit, 400 storage control unit. DETAILED DESCRIPTION
[0063] 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 invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0064] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0065] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0066] The embodiments of the present application provide a time interval testing circuit 100, a time interval testing method and a distance measurement system, which are described in detail below.
[0067] First, see Figure 1 , Figure 1 A module schematic diagram of a time interval test circuit 100 in an embodiment of the present application is shown, wherein the time interval test circuit 100 includes:
[0068] Time interval recording module 10;
[0069] The delay module 20 is connected to the time interval recording module 10, and the delay module 20 is used to output a timing signal and a delay recording signal with a preset time interval;
[0070] The time interval recording module 10 records the test time interval according to the timing signal and the delay recording signal, so as to determine the accuracy of the time interval recording module 10 according to the preset time interval and the test time interval.
[0071] Specifically, the time interval recording module 10 is used to record time interval data. Generally, for a ToF system, the time interval recording module 10 refers to a time-to-digital converter, that is, the time interval recording module can record the time interval data from the laser source emitting pulse light to the pulse light being reflected by an object and received by a single photon avalanche diode.
[0072] The delay module 20 is used to output a signal with a preset time interval (e.g. 5*10 -8 The timing signal and the delay recording signal of 10 seconds (seconds) are used to record the test time interval according to the timing signal and the delay recording signal. Figure 1 For example, the time interval recording module 10 starts timing after receiving the timing signal, and stops timing after receiving the delay recording signal, thereby obtaining the test time interval. By comparing the preset time interval with the test time interval, the accuracy of the time interval recording module 10 can be determined. For example, the preset time interval is 5*10 -8 seconds, and the test time interval recorded by the time interval recording module 10 is 6*10 -8 seconds, the error of the time interval recording module 10 is 1*10 -8 Second.
[0073] In the embodiment of the present application, since the delayed recording signal replaces the signal generated by the single-photon avalanche diode to trigger the time interval recording module 10, the time interval recording module 10 can be tested and calibrated without a laser source and a single-photon avalanche diode. Therefore, the test of the time interval recording module 10 does not need to be performed after the entire ToF module is packaged to avoid wasting other chips and packaging materials on the module. At the same time, since the delayed recording signal is simulated by the delay module 20, the entire test process does not need to simulate the real test environment, nor does it need to consider the phenomenon of ambient light falsely triggering the single-photon avalanche diode to generate a signal. This is beneficial to shorten the test time of the time interval recording module 10.
[0074] It can be understood that the time interval test circuit 100 of the present application is not only applicable to dToF systems, but also to devices / systems that require the accuracy of the time interval recorded by the test module / module.
[0075] As an example, see Figure 2 , Figure 2A schematic diagram of a time interval test circuit 100 including a specific structure of a delay module 20 in an embodiment of the present application is shown. The delay module 20 includes a plurality of delay registers 21 connected in series and a first multiplexer 22 connected to the output ends (Q ports) of the plurality of delay registers 21. From the beginning end of the series connection to the end end of the series connection, the delay register 21 located at the beginning end of the series connection is connected to the initial signal, and the control ends (Clk ports) of the plurality of delay registers 21 are connected to the same preset clock signal, the preset clock signal has a fixed clock cycle, and the first multiplexer 22 is configured to select the output signal of the mth delay register 21 for output, so that under the control of the preset clock signal, the first multiplexer 22 outputs a delay recording signal with a time interval of m clock cycles from the initial signal, wherein m is an integer greater than or equal to 1.
[0076] In the above embodiment, the initial signal and the first selection signal of the first multiplexer 22 may be sent by the storage control unit 400, and the clock signal has a fixed clock period, for example, 1*10 -8 seconds. When the high-level signal in the first clock cycle is input to the multiple delay registers 21 connected in series, the first extension register stores the initial signal, while the second extension register has no signal at its input end (D port), so the second extension register has no relevant signal data; when the high-level signal in the second clock cycle is input to the multiple delay registers 21 connected in series, since the input end (D port) of the second extension register has the initial signal stored in the first extension register at this time, when the high-level signal in the second clock cycle is input, the second extension register stores the initial signal; this cycle repeats, and the mth delay register 21 stores the initial signal at m clock cycles. Since the first multiplexer 22 selects the output signal of the mth delay register 21 for output, the delay recording signal with a time interval of m clock cycles from the initial signal is output, such as Figure 2 As shown, if the initial signal is used as the timing signal, the preset time interval between the delayed recording signal and the timing signal is m clock cycles, thereby achieving the purpose of the delay module 20 outputting the timing signal and the delayed recording signal with a preset time interval.
[0077] In order to facilitate more flexible control of the preset time interval between the delayed recording signal and the timing signal, in some embodiments of the present application, for example, the delay module 20 includes a plurality of delay registers 21 connected in series and a first multiplexer 22, continue to refer to Figure 3 , Figure 3A schematic diagram of a time interval test circuit 100 including a specific structure of a delay module 20 in an embodiment of the present application is shown, wherein the delay module 20 also includes a second multiplexer 23, and the second multiplexer 23 is connected to the output ends (Q ports) of multiple delay registers 21. The second multiplexer 23 is configured to select the output signal of the nth delay register 21 for output, so that under the control of a preset clock signal, the second multiplexer 23 outputs a timing signal with a time interval of n clock cycles from the initial signal, wherein n is an integer greater than or equal to 1, and n is less than m.
[0078] Similarly, the second selection signal of the second multiplexer 23 can be issued by the storage control unit 400. The nth delay register 21 saves the initial signal in n clock cycles. Since the second multiplexer 23 selects the output signal of the nth delay register 21 for output, a timing signal with a time interval of n clock cycles with the initial signal is output, that is, the preset time interval between the delay recording signal and the timing signal is mn clock cycles. In this way, the upper limit and lower limit of the preset time interval can be controlled, making the control of the preset time interval between the delay recording signal and the timing signal more flexible.
[0079] Those skilled in the art will appreciate that it is also possible to simultaneously implement the delay of the initial signal to form a timing signal and a delay recording signal by only one multiplexer, for example, see Figure 4 , Figure 4 A schematic diagram of a time interval test circuit 100 including a specific structure of a delay module 20 in an embodiment of the present application is shown, wherein a first selection signal and a second selection signal are input to a first multiplexer 22 to respectively select the output signals of the nth delay register 21 and the mth delay register 21 to form a delay recording signal and a timing signal with a preset time interval of mn clock cycles.
[0080] In some embodiments of the present application, in order to facilitate the selection of the clock signal, continue to refer to Figure 5 , Figure 5 A schematic diagram of a time interval test circuit 100 including a specific structure of a delay module 20 in an embodiment of the present application is shown, wherein the delay module 20 also includes a third multiplexer 24, the output end (Q port) of the third multiplexer 24 is connected to the control end (Clk port) of multiple delay registers 21, the input end (D port) of the third multiplexer 24 is connected to the first clock signal and the second clock signal, and the third multiplexer 24 is configured to select the first clock signal or the second clock signal to be input to the control end (Clk port) of the multiple delay registers 21.
[0081] Generally, the first clock signal can be the clock signal of the PLL chip. Since the clock signal used by the time interval recording module 10 generally also comes from the PLL chip, the clock signal of the selection module can be synchronized with the clock signal of the time interval recording module 10; the second clock signal can be a clock signal that is asynchronous with the time interval recording module 10 provided by other modules or externally, so that a higher frequency clock signal can be used to obtain higher test accuracy.
[0082] In some embodiments of the present application, see Figure 6 , Figure 6 A schematic diagram of a time interval testing circuit 100 including a specific structure of a time interval recording module 10 in an embodiment of the present application is shown, wherein the time interval recording module 10 includes:
[0083] A reference clock submodule 11, the reference subclock module has a fixed operation cycle;
[0084] A counting submodule 12, the counting submodule 12 is connected to the reference clock submodule 11;
[0085] A timing submodule 13, the timing submodule 13 is connected to the counting submodule 12;
[0086] The counting submodule 12 starts to record the number of operation cycles of the reference clock submodule 11 according to the timing signal, and the timing submodule 13 stores the recording result of the current time counting submodule 12 as the test time interval according to the delay recording signal.
[0087] Specifically, the reference clock submodule 11 is used to generate a repetitive electronic signal with a fixed frequency, and a single electronic signal can be used as a unit time. The number of repetitions of the electronic signal during measurement is recorded by the counting submodule 12 to obtain the test time interval. In some embodiments of the present application, the reference clock submodule 11 includes an oscillator and a phase-locked loop circuit, wherein the oscillator generates a repetitive electronic signal with a fixed frequency, and the phase-locked loop is used to keep the frequency and phase of the oscillator in a certain relationship with the start signal (such as a timing signal) of the counting submodule 12, thereby ensuring the accuracy of the test time interval.
[0088] Exemplarily, the oscillator may be a resistor-capacitor oscillator, an inductor-capacitor oscillator, a crystal oscillator, a tuning fork oscillator, etc., and the electronic signal generated by the oscillator may be a sine wave, a square wave, a sawtooth wave, etc.
[0089] The counting submodule 12 is used to record the number of operating cycles of the reference clock submodule 11, for example, the number of sine waves generated by the oscillator. Since the operating cycle has an inherent fixed frequency, that is, a single operating cycle has a fixed time, for example, the frequency of the sine wave generated by the oscillator is 50MHz, and the time corresponding to a single operating cycle is 2*10 -8Exemplarily, the counting submodule 12 may include a counter, which may be a synchronous or asynchronous counter, and may also be a binary, decimal, or other system counter.
[0090] The timing submodule 13 is used to store the recording result of the counting submodule 12 as the test time interval. Figure 6 For example, during the test, the timing signal controls the counting submodule 12 to start recording the number of operating cycles of the reference clock submodule 11, and the delay recording signal controls the timing submodule 13 to read the recording result of the counting submodule 12 to obtain the test time interval, and finally completes the process of the time interval recording module 10 recording the test time interval.
[0091] Further, in order to complete the real test process of the ToF system, continue to refer to Figure 7 , Figure 7 A schematic diagram of a time interval test circuit 100 including a specific structure of a time interval recording module 10 in an embodiment of the present application is shown. The time interval recording module 10 also includes a signal selection module, which includes a fourth multiplexer 14. The output end (Q port) of the fourth multiplexer 14 is connected to the control end (Clk port) of the timing submodule 13, and the input end (D port) of the fourth multiplexer 14 is connected to the delayed recording signal and the real recording signal. The fourth multiplexer 14 is configured to select the delayed recording signal or the real recording signal to be input to the control end (Clk port) of the timing submodule 13.
[0092] In the above embodiment, the real recording signal refers to the signal generated by the single photon avalanche diode (SPAD) receiving the returned laser, so that the time interval between the laser emission and return can be measured by the real recording signal. Under the selection of the fourth multiplexer 14, both the delayed recording signal and the real recording signal can trigger the timing submodule 13 to record the time interval, so the switching between the test mode and the real measurement mode can be realized by the fourth multiplexer 14. For the ToF module, before the ToF module is assembled, the accuracy test of the time interval recording module 10 can be performed separately; after the ToF module is assembled or in actual use, it can also be switched to the test mode, and the automatic correction function can be realized through the test to correct the performance changes caused by device aging or temperature changes.
[0093] It is worth noting that the content of the above-mentioned time interval test circuit 100 is intended to clearly illustrate the implementation verification process of the present application. Those skilled in the art can make equivalent modified designs under the guidance of the present application. For example, the first multiplexer 22, the second multiplexer 23, the third multiplexer 24 and the fourth multiplexer 14 can use switching circuits or logic gate circuits to achieve the same function.
[0094] Furthermore, in order to better implement the time interval test circuit 100 of the present application, a time interval test method is also provided in the embodiment of the present application on top of the time interval test circuit 100. Figure 8 , Figure 8 A schematic diagram of a flow chart of a time interval testing method in an embodiment of the present application is shown, wherein the time interval testing method includes:
[0095] Step S801, the delay module 20 outputs a first timing signal and a first delay recording signal, and the first timing signal and the first delay recording signal have a first preset time interval;
[0096] In some embodiments of the present application, for example, for an embodiment in which the delay module 20 includes a plurality of delay registers 21 connected in series, a first multiplexer 22 and a second multiplexer 23, the first multiplexer 22 and the second multiplexer 23 can respectively select the signal outputs of the mth delay register 21 and the nth delay register 21, so that the first preset time interval between the first timing signal and the first delay recording signal is mn clock cycles.
[0097] Step S802, the time interval recording module 10 records the first test time interval according to the first timing signal and the first delay recording signal;
[0098] In some embodiments of the present application, the time interval recording module 10 includes a reference clock submodule 11, a counting submodule 12 and a timing submodule 13, the reference sub-clock module has a fixed operating cycle, the counting submodule 12 is connected to the reference clock submodule 11, and the timing submodule 13 is connected to the counting submodule 12. The step of the time interval recording module 10 recording the first test time interval according to the first timing signal and the first delay recording signal includes: the counting submodule 12 starts recording the number of operating cycles of the reference clock submodule 11 according to the first timing signal, and the timing submodule 13 stores the recording result of the current time counting submodule 12 as the first test time interval according to the first delay recording signal.
[0099] Step S803 : comparing the first preset time interval and the first test time interval to determine the accuracy of the time interval recording module 10 .
[0100] After obtaining the first preset time interval and the first test time interval, the first preset time interval and the first test time interval can be compared to determine the accuracy of the time interval recording module 10. For example, if the first preset time interval is 5*10 -8 seconds, and the first test time interval recorded by the time interval recording module 10 is 6*10 -8 seconds, the error of the time interval recording module 10 is 1*10 -8 Second.
[0101] In the embodiment of the present application, since the delayed recording signal replaces the signal generated by the single-photon avalanche diode to trigger the time interval recording module 10, the time interval recording module 10 can be tested and calibrated without a laser source and a single-photon avalanche diode. Therefore, the test of the time interval recording module 10 does not need to be performed after the entire ToF module is packaged, so as to avoid wasting other chips and packaging materials on the module.
[0102] In the test process of the present application, the time for the signal to be transmitted on the circuit may actually cause errors in the test process, for example, the time for the timing signal to be transmitted to the counting submodule 12 and the time for the delay recording signal to be transmitted to the timing submodule 13. In order to eliminate the influence of the time for the signal to be transmitted on the circuit on the test process, continue to refer to Fig. 9 as well as Fig.10 , Fig. 9 A schematic flow chart of a time interval testing method in an embodiment of the present application is shown, wherein the time interval testing method further includes:
[0103] Step S901, the delay module 20 outputs a second timing signal and a second delay recording signal, and the second timing signal and the second timing signal have a second preset time interval;
[0104] S902, the time interval recording module 10 records the second test time interval according to the second timing signal and the second delay recording signal;
[0105] S903, comparing the first time difference and the second time difference to determine the accuracy of the time interval recording module 10, wherein the first time difference is the difference between the first preset time interval and the second preset time interval, and the second time difference is the difference between the first test time interval and the second test time interval.
[0106] See also Fig.10 If the time interval recording module 10 works normally, the first test time interval and the second test time interval satisfy the following relationship:
[0107] T1=t1+(Δt2-Δt3)
[0108] T2=t2+(Δt2-Δt3)
[0109] Among them, T1 is the first test time interval, T2 is the second test time interval, t1 is the first preset time interval, t2 is the second preset time interval, Δt2 is the time when the timing signal is transmitted to the time interval recording module 10 (for example, the counting submodule 12), and Δt3 is the time when the delay recording signal is transmitted to the time interval recording module 10 (for example, the timing submodule 13).
[0110] Since Δt2 and Δt3 are unknown, the first time difference and the second time difference can be directly compared. The first time difference is the difference between the first preset time interval T1 and the second preset time interval T2, and the second time difference is the difference between the first test time interval t1 and the second test time interval t2, so as to offset the influence of Δt2 and Δt3, for example, as follows:
[0111] T1-T2=t1-t2
[0112] If the difference between the first time difference and the second time difference is smaller, it means that the error of the time interval recording module 10 is smaller; conversely, if the difference between the first time difference and the second time difference is larger, it means that the error of the time interval recording module 10 is larger. Therefore, the accuracy of the time interval recording module 10 can be judged by measuring twice and comparing the first time difference and the second time difference, thereby eliminating the error influence on the test process caused by the time of signal transmission in the circuit.
[0113] Further, according to the above method, more measurements can be performed to achieve the linearity measurement of the time interval recording module 10, that is, the accuracy of the time interval recording module 10 for different time intervals, for example, see Fig.11 , Fig.11 A relationship diagram between multiple preset time intervals and multiple test time intervals in an embodiment of the present application is shown. The relationship diagram is obtained through multiple measurements, and it can be concluded whether the linearity of the time interval recording module 10 meets the requirements within a certain time interval range.
[0114] It should be emphasized that for the time interval recording module 10 of the array, the timing signal and the delay recording signal are connected to each time interval recording module 10, so in the above test process, the time interval recording module 10 of the array can simultaneously complete the accuracy and linearity test process without measuring one by one.
[0115] Further, in order to better implement the time interval test circuit 100 of the present application, a distance measurement system is further provided in the embodiment of the present application on top of the time interval test circuit 100, wherein the distance measurement system includes the time interval test circuit 100 of any of the above embodiments. The distance measurement system in the embodiment of the present application has all the beneficial effects of the above time interval test circuit 100 because it is provided with the time interval test circuit 100 of the above embodiment, which will not be described in detail here.
[0116] For further information, see Fig.12 , Fig.12 A schematic diagram of a module of a distance measurement system in an embodiment of the present application is shown, wherein the distance measurement system further includes:
[0117] A signal transmitting unit 200, the signal transmitting unit 200 is used to transmit a ranging signal;
[0118] A signal receiving unit 300, the signal receiving unit 300 is used to receive the ranging signal after being reflected by the object;
[0119] The delay module 20 of the time interval test circuit 100 is connected to the signal transmitting unit 200, and the time interval recording module 10 of the time interval test circuit 100 is connected to the signal receiving unit 300;
[0120] The delay module 20 sends out a transmission signal and a timing signal, the transmission signal is input to the signal transmission unit 200, and the timing signal is input to the time interval recording module 10 to perform the following process:
[0121] The time interval recording module 10 starts timing under the triggering of the timing signal, and the signal transmitting unit 200 transmits the ranging signal under the triggering of the transmitting signal;
[0122] After receiving the returned ranging signal, the signal receiving unit 300 generates a real recording signal to control the time interval recording module 10 to end timing and obtain the propagation time of the ranging signal.
[0123] The signal receiving unit 300 may be a single photon avalanche diode, the signal transmitting unit 200 may be a laser source, and the ranging signal corresponds to a laser signal. After the laser signal reaches the ranging object, it is reflected and finally received by the signal receiving unit 300. Specifically, the delay module 20 sends out a transmission signal and a timing signal, the transmission signal is input to the signal transmitting unit 200, the timing signal is input to the time interval recording module 10, the time interval recording module 10 starts timing under the triggering of the timing signal, and the signal transmitting unit 200 transmits the ranging signal under the triggering of the transmission signal; after receiving the returned ranging signal, the signal receiving unit 300 generates a real recording signal to control the time interval recording module 10 to end timing, and obtains the propagation time of the ranging signal, and finally calculates the distance to the object in combination with the propagation speed of light.
[0124] In fact, for the ToF system, since the laser source and the time interval recording module 10 need to be connected through an external circuit, the signal received by the laser source has a large delay problem. In order to eliminate the measurement error caused by the delay in the transmission of the emission signal to the laser source, in some embodiments of the present application, the emission signal and the timing signal have a preset time interval, so as to offset the time difference between the delay of the first signal circuit and the delay of the second signal circuit through the preset time interval, see Fig.12 The first signal circuit delay is the time Δt1 when the transmission signal is input to the signal transmission unit 200 , and the second signal circuit delay is the time Δt2 when the timing signal is input to the time interval recording module 10 .
[0125] Generally, the preset time interval T, the time Δt1 when the transmission signal is input to the signal transmission unit 200, and the time Δt2 when the timing signal is input to the time interval recording module 10 satisfy the following relationship:
[0126] T=Δt1-Δt2
[0127] In the above embodiment, the delay module 20 can not only generate a timing signal and a delay recording signal for testing during the test process, but also generate a timing signal and an emission signal with a preset time interval through its delay function during the actual measurement process, thereby eliminating the delay effect of the emission signal being transmitted to the laser source and the timing signal being input into the time interval recording module 10.
[0128] It is worth noting that the content of the above-mentioned ranging system is intended to clearly illustrate the implementation verification process of the present application. Those skilled in the art can make equivalent modified designs under the guidance of the present application. For example, the ranging system can also include a storage control unit 400, which sends an initial signal to control the laser source and the time interval recording module 10, and receives and stores the time interval data.
[0129] It should be understood that Fig.12 The system and its units shown can be implemented in various ways. For example, in some embodiments, the device and its modules can be implemented by hardware, software or a combination of software and hardware. Among them, the hardware part can be implemented by a dedicated logic circuit; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or a dedicated design hardware. Those skilled in the art will understand that the above-mentioned method and system can be implemented using computer executable instructions and / or included in a processor control code, for example, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The system and its modules of the present application can not only be implemented by hardware circuits such as ultra-large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., but can also be implemented by software such as executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software (for example, firmware).
[0130] It should be noted that the above description of the device and its modules is only for convenience of description and does not limit the present application to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle. For example, Fig.12The signal receiving unit 300 and the time interval testing circuit 100 disclosed in the specification can be directly integrated on the same chip.
[0131] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0132] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0133] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0134] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0135] Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.
[0136] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0137] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this application is hereby incorporated by reference in its entirety, except for application history documents that are inconsistent with or conflicting with the content of this application, and documents that limit the broadest scope of the claims of this application (currently or later attached to this application). It should be noted that if the descriptions, definitions, and / or use of terms in the accompanying materials of this application are inconsistent or conflicting with the content described in this application, the descriptions, definitions, and / or use of terms in this application shall prevail.
[0138] The above is a detailed introduction to a time interval test circuit, a time interval test method and a ranging system provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A time interval test circuit, It is characterized in that include: Time interval recording module; A delay module, the delay module is connected to the time interval recording module, and the delay module is used to output a timing signal with a preset time interval and a delay recording signal; Wherein, the time interval recording module records the test time interval according to the timing signal and the delay recording signal, so as to determine the accuracy of the time interval recording module according to the preset time interval and the test time interval; The time interval recording module comprises: A reference clock submodule, wherein the reference subclock module has a fixed operation cycle; A counting submodule, wherein the counting submodule is connected to the reference clock submodule; A timing submodule, the timing submodule is connected to the counting submodule; The counting submodule starts to record the number of operation cycles of the reference clock submodule according to the timing signal, and the timing submodule stores the recording result of the counting submodule at the current time as the test time interval according to the delay recording signal.
2. The time interval test circuit as claimed in claim 1, It is characterized in that The delay module includes a plurality of delay registers connected in series and a first multiplexer connected to output ends of the plurality of delay registers; In the direction from the beginning of the series connection to the end of the series connection, the delay register at the beginning of the series connection is connected to the initial signal, and the control ends of the plurality of delay registers are connected to the same preset clock signal, and the preset clock signal has a fixed clock period; The first multiplexer is configured to select the output signal output of the mth delay register so that under the control of the preset clock signal, the first multiplexer outputs a delayed recording signal whose interval time with the initial signal is m clock cycles, wherein m is an integer greater than or equal to 1.
3. The time interval test circuit as claimed in claim 2, It is characterized in that The delay module further comprises a second multiplexer, wherein the second multiplexer is connected to output ends of the plurality of delay registers; The second multiplexer is configured to select the output signal output of the nth delay register so that under the control of the preset clock signal, the second multiplexer outputs a timing signal whose interval time with the initial signal is n clock cycles, wherein n is an integer greater than or equal to 1, and n is less than m.
4. The time interval test circuit according to any one of claims 2 or 3, It is characterized in that The delay module further comprises a third multiplexer, the output end of the third multiplexer is connected to the control ends of the plurality of delay registers; The input end of the third multiplexer is connected to the first clock signal and the second clock signal, and the third multiplexer is configured to select the first clock signal or the second clock signal to be input to the control ends of the plurality of delay registers.
5. The time interval test circuit as claimed in claim 1, It is characterized in that The time interval recording module further comprises a fourth multiplexer, the output end of the fourth multiplexer is connected to the control end of the timing submodule; The input end of the fourth multiplexer is connected to the delayed recording signal and the real recording signal, and the fourth multiplexer is configured to select the delayed recording signal or the real recording signal to input to the control end of the timing submodule.
6. A time interval testing method, It is characterized in that include: The delay module outputs a first timing signal and a first delay recording signal, wherein the first timing signal and the first delay recording signal have a first preset time interval; The time interval recording module records the first test time interval according to the first timing signal and the first delay recording signal; Comparing the first preset time interval with the first test time interval to determine the accuracy of the time interval recording module; The time interval recording module comprises: A reference clock submodule, wherein the reference subclock module has a fixed operation cycle; A counting submodule, wherein the counting submodule is connected to the reference clock submodule; A timing submodule, the timing submodule is connected to the counting submodule; The counting submodule starts to record the number of operation cycles of the reference clock submodule according to the timing signal, and the timing submodule stores the recording result of the counting submodule at the current time as the test time interval according to the delay recording signal.
7. The time interval testing method according to claim 6, It is characterized in that The method further comprises: The delay module outputs a second timing signal and a second delay recording signal, and the second timing signal and the second timing signal have a second preset time interval; The time interval recording module records the second test time interval according to the second timing signal and the second delay recording signal; Compare the first time difference and the second time difference to determine the accuracy of the time interval recording module, wherein the first time difference is the difference between the first preset time interval and the second preset time interval, and the second time difference is the difference between the first test time interval and the second test time interval.
8. The time interval testing method according to claim 6, It is characterized in that The time interval recording module includes a reference clock submodule, a counting submodule and a timing submodule, wherein the reference subclock submodule has a fixed operation cycle, the counting submodule is connected to the reference clock submodule, and the timing submodule is connected to the counting submodule; The step of recording the first test time interval by the time interval recording module according to the first timing signal and the first delay recording signal comprises: The counting submodule starts recording the number of operation cycles of the reference clock submodule according to the first timing signal; The timing submodule stores the recording result of the counting submodule at the current time as the first test time interval according to the first delay recording signal.
9. A distance measuring system, It is characterized in that The method comprises the time interval testing circuit as claimed in any one of claims 1 to 5.
10. The distance measuring system according to claim 9, It is characterized in that Also includes: A signal transmitting unit, wherein the signal transmitting unit is used to transmit a ranging signal; A signal receiving unit, the signal receiving unit is used to receive the ranging signal after being reflected by the object; as well as The delay module of the time interval test circuit is connected to the signal transmitting unit, and the time interval recording module of the time interval test circuit is connected to the signal receiving unit; The delay module sends out a transmission signal and a timing signal, the transmission signal is input into the signal transmission unit, and the timing signal is input into the time interval recording module to perform the following process: The time interval recording module starts timing under the triggering of the timing signal, and the signal transmitting unit transmits a ranging signal under the triggering of the transmitting signal; The signal receiving unit generates a real recording signal after receiving the returned ranging signal to control the time interval recording module to end timing and obtain the propagation time of the ranging signal.
11. The distance measuring system according to claim 10, Features: The transmission signal and the timing signal have a preset time interval, so as to offset the time difference between the first signal circuit delay and the second signal circuit delay through the preset time interval; The first signal circuit delay is the time taken for the transmission signal to be input into the signal transmission unit, and the second signal circuit delay is the time taken for the timing signal to be input into the time interval recording module.
Citation Information
Patent Citations
High-precision pulse time interval measurement circuit
CN102073268A
Circuit and method of measuring time, and related chip, system and device thereof
CN108401445A
Time-to-digital converter, phase-locked loop and electronic equipment
CN112311391A
Digital-to-time converter, time-to-digital converter, and converting method using the same
US10642227B1
Circuit and method for measuring delay of high speed signals
US20050111537A1
