A pulse width measurement system and method

Through the combination of a pulse converter and multiple measurement circuits, the problems of low accuracy and limited range of time-to-digital converters in pulse width measurement are solved, and high-precision detection of tiny pulse widths and system scale compression are achieved.

CN118393226BActive Publication Date: 2024-10-01NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410866955.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

Existing time-to-digital converters have problems with limited measurement range and low accuracy in pulse width measurement, resulting in the inability to detect tiny pulse widths with high accuracy.

Method used

A pulse converter is used to convert the input pulse width signal into two rising edge signals, the high-bit measurement result of the pulse width is obtained through the first pulse width measurement circuit, and the amplified micro-pulse width is accurately measured through the second pulse width measurement circuit, and finally The splicing module outputs the pulse width measurement results.

Benefits of technology

It improves the accuracy of pulse width measurement, reduces the circuit scale, occupies a smaller area, and achieves high-precision detection of tiny pulse widths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118393226B_ABST
    Figure CN118393226B_ABST
Patent Text Reader

Abstract

The present invention discloses a pulse width measurement system and method, the system includes a pulse converter, a first pulse width measurement circuit, a second pulse width measurement circuit and a splicing module; during operation, the pulse converter converts the input pulse width signal into two rising edge signals; after the first pulse width circuit measures the two rising edge signals to obtain the pulse width high-bit measurement result, it obtains the unmeasured tiny pulse width; after the second pulse width measurement circuit amplifies the tiny pulse width, it measures and obtains the pulse width low-bit measurement result; the splicing module splices the pulse width high-bit measurement result and the pulse width low-bit measurement result together, and outputs the pulse width measurement result. The present invention divides the measurement system into two measurement circuits, roughly measures by the first measurement circuit, and accurately measures the amplified tiny pulse width by the second measurement circuit, and finally outputs the measurement result. Compared with the prior art, the measurement accuracy is improved and the scale of the measurement system is compressed. The method has the same beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic chip design, and in particular to a pulse width measurement system and method. Background Art

[0002] Converting various physical signals in the real world into pulse electrical signals of a certain width is a common signal acquisition method, and converting the pulse width into a binary digital signal can easily realize the display and processing of various signals. The common method of converting pulse width into a digital signal is to use a time-to-digital converter to detect the pulse width and output the corresponding binary signal to discretely characterize the pulse width. This method is limited by the detection accuracy of the time-to-digital converter, and the circuit scale of the time-to-digital converter with high accuracy and wide range detection capability is very large, occupying a lot of area.

[0003] At present, when using a time-to-digital converter to measure pulse width, there is a problem of limited measurement range. For example, an 8-bit output time-to-digital converter needs 255 levels to achieve. If the measurement range is to be improved, the measurement level of the time-to-digital converter needs to be increased, thereby increasing the scale of the circuit and occupying a larger area. In addition, the increase in the number of levels will lead to the extension of the delay chain, which will bring about the problem of delay variation on the delay chain. These are all factors that limit the pulse width detection range. In addition to the limited pulse width detection range, the delay size of the delay unit on the delay chain limits the measurement accuracy of the time-to-digital converter, making the time-to-digital converter have low detection accuracy for tiny pulse widths or even unable to detect them.

[0004] Therefore, it is an urgent problem to be solved by those skilled in the art to provide a pulse width measurement system and method that can effectively solve the above problems. Summary of the invention

[0005] The object of the present invention is to provide a pulse width measurement system which has a simple structure, is safe, effective, reliable and easy to operate, improves measurement accuracy, reduces circuit scale, and makes the area occupied by the entire system smaller, thereby making it easier to integrate.

[0006] Based on the above objectives, the technical solution provided by the present invention is as follows:

[0007] A pulse width measurement system comprises: a pulse converter, a first pulse width measurement circuit, a second pulse width measurement circuit and a splicing module;

[0008] The first pulse width measurement circuit is connected to the pulse converter and the second pulse width measurement circuit respectively;

[0009] The splicing module is respectively connected to the first pulse width measurement circuit and the second pulse width measurement circuit;

[0010] The pulse converter is used to convert the input pulse width signal into two rising edge signals;

[0011] The first pulse width measurement circuit is used to obtain a pulse width high position measurement result according to the two rising edge signals, and obtain a tiny pulse width;

[0012] The second pulse width measurement circuit is used to obtain a pulse width low-bit measurement result according to the amplified tiny pulse width;

[0013] The splicing module is used to splice the pulse width high-bit measurement result and the pulse width low-bit measurement result, and output the pulse width measurement result.

[0014] Preferably, the pulse converter is specifically: composed of a rising edge sensitive D flip-flop and a falling edge sensitive D flip-flop;

[0015] Connecting a high level to the D terminals of the rising edge sensitive D flip-flop and the falling edge sensitive D flip-flop, so that the two D flip-flops respectively output a rising edge signal at the rising and falling edges of the pulse;

[0016] The time difference between two rising edge signals is equal to the pulse width.

[0017] Preferably, the first pulse width measurement circuit comprises: a first time-to-digital converter, a first selector and a delay recovery module;

[0018] The first selector is connected to the first time-to-digital converter and the delay recovery module respectively;

[0019] The first time-to-digital converter is used to measure the two rising edge signals to obtain a pulse width high position measurement result;

[0020] The first selector is used to select the two rising edge signals at a preset time point;

[0021] The delay recovery module is used to restore the phase relationship between the two rising edge signals to obtain a small pulse width.

[0022] Preferably, the second pulse width measurement circuit comprises: a time amplification frequency detector and a second time digital converter;

[0023] The time amplification frequency detector and phase detector are connected to the delay recovery module and the second time-to-digital converter respectively;

[0024] The time amplification frequency detector is used to amplify the small pulse width according to the preset weight relationship between the pulse width low-bit measurement result and the pulse width high-bit measurement result;

[0025] The second time-to-digital converter is used to measure the amplified tiny pulse width to obtain a low-bit measurement result of the pulse width.

[0026] Preferably, it also includes: a first reset module;

[0027] The first resetting module is connected to the splicing module;

[0028] The first reset module is used to output a reset signal after the splicing module outputs the pulse width measurement result to end the current pulse width measurement process.

[0029] Preferably, the second pulse width measurement circuit comprises: a time amplification frequency detector, a second selector and the first time-to-digital converter;

[0030] The second selector is connected to the pulse converter, the time amplification frequency detector and the first time digital converter respectively;

[0031] The second selector is used to select the two rising edge signals as input when the first time-to-digital converter does not obtain the pulse width high-bit measurement result;

[0032] The second selector is further used to select the amplified tiny pulse width as input after the first time-to-digital converter obtains the pulse width high-bit measurement result;

[0033] The first time-to-digital converter is also used to measure the amplified tiny pulse width to obtain a low-bit measurement result of the pulse width.

[0034] Preferably, it also includes: an output saving module and a second resetting module;

[0035] The output storage module is connected to the splicing module and the first time-to-digital converter respectively;

[0036] The second reset module is connected to the first time-to-digital converter;

[0037] The output saving module is used to save the pulse width high bit measurement result and the pulse width low bit measurement result when the pulse width measurement process is finished;

[0038] The second reset module is used to send a reset signal to reset the first time-to-digital converter after the output storage module finishes saving the pulse width high-bit measurement result.

[0039] A pulse width measurement method, implemented based on any of the pulse width measurement systems described above, comprises the following steps:

[0040] The input pulse width signal is converted into two rising edge signals by a pulse converter;

[0041] Obtaining a pulse width high-bit measurement result according to the two rising edge signals through a first pulse width measurement circuit, and obtaining a tiny pulse width;

[0042] The second pulse width measurement circuit is used to obtain a pulse width low-bit measurement result according to the amplified tiny pulse width;

[0043] The pulse width high-bit measurement result and the pulse width low-bit measurement result are spliced ​​together through a splicing module to output the pulse width measurement result.

[0044] The invention discloses a pulse width measurement system, comprising a pulse converter, a first pulse width measurement circuit, a second pulse width measurement circuit and a splicing module; during operation, the pulse converter converts an input pulse width signal into two rising edge signals; after the first pulse width circuit measures the two rising edge signals to obtain a pulse width high-bit measurement result, an unmeasured tiny pulse width is obtained; after the second pulse width measurement circuit amplifies the tiny pulse width, a low-bit measurement result of the pulse width is measured; and the splicing module splices the pulse width high-bit measurement result and the pulse width low-bit measurement result together to output the pulse width measurement result.

[0045] The present invention divides the measurement system into two measurement circuits, uses the first measurement circuit to roughly measure, and uses the second measurement circuit to accurately measure the amplified tiny pulse width, and finally outputs the measurement result. Compared with the prior art, the measurement accuracy is improved and the scale of the measurement system is compressed.

[0046] The present invention also provides a pulse width measurement method, which solves the same technical problem as the system, belongs to the same technical concept, and should have the same beneficial effects, so it will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] 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.

[0048] Figure 1 A schematic diagram of the structure of a pulse width measurement system provided by an embodiment of the present invention;

[0049] Figure 2 (a) is a schematic diagram of the structure of a pulse converter provided in an embodiment of the present invention;

[0050] Figure 2 (b) is a schematic diagram of the input and output of the pulse converter provided by an embodiment of the present invention;

[0051] Figure 3A schematic diagram of a rising edge signal output provided by an embodiment of the present invention;

[0052] Figure 4 A schematic diagram of the specific structure of a time-to-digital converter provided by an embodiment of the present invention;

[0053] Figure 5 A schematic diagram of the specific structure of a pulse width measurement system provided by an embodiment of the present invention;

[0054] Figure 6 A schematic diagram of the specific structure of another pulse width measurement system provided by an embodiment of the present invention;

[0055] Figure 7 A flow chart of a pulse width measurement method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] The embodiments of the present invention are written in a progressive manner.

[0058] The embodiment of the present invention provides a pulse width measurement system and method, which mainly solves the technical problems in the prior art that the pulse width measurement accuracy is low and the measurement system is large in scale.

[0059] like Figure 1 As shown, a pulse width measurement system includes: a pulse converter, a first pulse width measurement circuit, a second pulse width measurement circuit and a splicing module;

[0060] The first pulse width measurement circuit is connected to the pulse converter and the second pulse width measurement circuit respectively;

[0061] The splicing module is connected to the first pulse width measurement circuit and the second pulse width measurement circuit respectively;

[0062] A pulse converter, used for converting an input pulse width signal into two rising edge signals;

[0063] A first pulse width measurement circuit is used to obtain a pulse width high-bit measurement result according to two rising edge signals, and obtain a tiny pulse width;

[0064] A second pulse width measurement circuit is used to obtain a pulse width low-bit measurement result according to the amplified tiny pulse width;

[0065] The splicing module is used to splice the pulse width high-bit measurement result and the pulse width low-bit measurement result, and output the pulse width measurement result.

[0066] During actual application, the input pulse width signal is converted into two rising edge signals through a pulse converter and then input into the first pulse width measurement circuit, and a rough measurement is performed through the pulse width measurement circuit to obtain the high-order part of the pulse width measurement result and the tiny pulse width that cannot be measured; the tiny pulse width is input into the second pulse width measurement circuit, and the second pulse width measurement circuit amplifies the tiny pulse width and performs precise measurement to obtain the low-order part of the pulse width measurement result; the high-order part and the low-order part of the pulse width measurement result are spliced ​​together through a splicing module, and the final pulse width measurement result is input.

[0067] In this embodiment, assuming that the final pulse width result is 1100 0011, the high-order pulse width result output by the first pulse width measurement circuit is 1100, and the low-order pulse width result output by the second pulse width measurement circuit is 0011, that is, the 4-bit output of the first pulse width measurement circuit is used as the high-order 4-bit of the entire 8-bit pulse width measurement result, and the 4-bit output of the second pulse width measurement circuit is used as the low-order 4-bit of the entire 8-bit pulse width measurement result. Therefore, the pulse width result is the splicing of the high-order and low-order data.

[0068] Preferably, if Figure 2 As shown in (a), the pulse converter is specifically composed of a rising edge sensitive D flip-flop and a falling edge sensitive D flip-flop;

[0069] like Figure 2 As shown in (b), Figure 2 (b) The upper figure is the input diagram. Figure 2 The lower figure in (b) is an output schematic diagram. A high level is connected to the D terminal of the rising edge sensitive D flip-flop and the falling edge sensitive D flip-flop, so that the two D flip-flops output a rising edge signal at the rising and falling edges of the pulse respectively; the time difference between the two rising edge signals is equal to the pulse width.

[0070] In actual application, the pulse converter processes the pulse signal to obtain two rising edge signals, and the time difference between the rising edge signals is equal to the pulse width; the pulse converter is specifically composed of a rising edge sensitive and a falling edge sensitive D flip-flop, and a high level is connected to the D end, so that the two flip-flops respectively output a rising edge signal at the rising and falling edges of the pulse, and obtain two rising edge signals.

[0071] Preferably, the first pulse width measurement circuit comprises: a first time-to-digital converter, a first selector and a delay recovery module;

[0072] The first selector is connected to the first time-to-digital converter and the delay recovery module respectively;

[0073] A first time-to-digital converter is used to measure two rising edge signals to obtain a pulse width high-bit measurement result;

[0074] A first selector, used for selecting two rising edge signals at a preset time point;

[0075] The delay recovery module is used to restore the phase relationship between two rising edge signals to obtain a small pulse width.

[0076] In actual use, the first pulse width measurement circuit is specifically used to roughly measure the pulse width, and is provided with a first time-to-digital converter, a first selector and a delay recovery module;

[0077] It should be noted that the specific structure of the time-to-digital converter (taking a three-stage time-to-digital converter as an example) is as follows: Figure 3 As shown, it includes rising edge 1 and rising edge 2; Figure 4 Delay unit 1 and delay unit 2 are two delay modules of different sizes, and the delay size of delay unit 1 is greater than that of delay unit 2. Figure 3 It can be seen that in state 1, the phase of rising edge 1 is ahead of rising edge 2, and the difference is 3 time units, corresponding to Figure 4 In the figure, the state of the two points 1 and 1 is shown. At this time, the first trigger outputs 1 (that is, output bit i). After the delay between point 1 and point 2, since delay unit 1> delay unit 2, the time difference between rising edge 1 and rising edge 2 is shortened to 1 time unit, that is, Figure 3 The state corresponding to state 2 in the middle corresponds to Figure 4 That is, the state of points 2 and 2, but at this time the phase of rising edge 1 is still ahead of rising edge 2, so the second flip-flop still outputs 1 (that is, output bit i+1). After the two edges have passed the delay between point 2 and point 3, the phase of rising edge 2 exceeds that of rising edge 1 ( Figure 3 State 3 in the output bit i+2 outputs 0.

[0078] The specific function of the first selector is to select the position of the two 0 outputs according to the output information of the first time digital converter. Figure 4 The state of rising edge 1 and rising edge 2 at a certain time point is selected and output. This time point is Figure 4 At the moment when output bit i=1, output bit i+1=0, and output bit i+2=0, the output of the selector is edge (i+2) The status of the two lines represented;

[0079] Figure 4 The outputs of output bits i, i+1, and i+2 are 1, 1, and 0. At this time (i.e., the preset time point), the first selector selects the two signal lines corresponding to edge (i+3) as the output of the first selector.

[0080] The working principle of the delay recovery module is as follows: the output changes with the rising edge 1 and the rising edge 2. The law has been explained. In this process, we can understand that the output 110 of the time digital converter represents the difference between the two rising edges. Since the time difference between the rising edge 1 and the rising edge 2 will be reduced by 2 units of time each time during the conversion process 1-2, 2-3, 3-4, the time digital converter output 110 represents that the pulse width of the signal to be measured is 4 units of time, and Figure 3 It can be seen that this result is not accurate. The actual measured signal is 3 unit time, and the measured result is 1 unit time larger than the actual result. What needs to be restored is Figure 3 State 2 in the output is the state before the final output. In this state, the difference between the two rising edges is only 1 unit time, so it cannot be accurately measured.

[0081] During the testing process, Figure 3 As shown, we determine the time when the pulse width measurement is completed, which is the output of the first 0 output signal (corresponding to Figure 3 State 3 in Figure 4 The output bit in is i+2), then select Figure 3 edge(i+1) and edge(i+2) in (that is, Figure 3 It is too late to recover from state 2 and state 3 in the delay recovery module. Therefore, when the first 0 output signal is generated, we need to select edge (i+3) as the state for recovery. The difference between the last two rising edges in edge (i+3) is 4 units of time relative to the difference between the last two rising edges in edge (i+1). Therefore, the 4 units of time difference must be compensated in the delay recovery module to make the time difference between the two rising edges obtained by the time amplifier frequency detector consistent with edge (i+1). This process can be called the recovery process.

[0082] like Figure 5 As shown, preferably, the second pulse width measurement circuit comprises: a time amplification frequency detector and a second time digital converter;

[0083] The time amplification frequency detector and phase detector are respectively connected to the delay recovery module and the second time digital converter;

[0084] A time-amplifying frequency-phase detector is used to amplify a small pulse width according to a preset weight relationship between a pulse width low-bit measurement result and a pulse width high-bit measurement result;

[0085] The second time-to-digital converter is used to measure the amplified tiny pulse width to obtain the low-bit measurement result of the pulse width.

[0086] In actual use, the second pulse width measurement circuit is specifically used to accurately measure the tiny pulse width, and is provided with a time amplification frequency detector and phase detector, which is specifically used to amplify the tiny pulse width; a second time digital converter, which measures the amplified tiny pulse width;

[0087] Analysis shows that the small pulse width is Figure 3 The time difference between the two rising edges in state 2 cannot be accurately measured by the time-to-digital converter. We can measure this tiny pulse width by amplifying this 1 unit time by a certain proportion, for example, amplifying it 8 times to 8 unit time, and then inputting it into the second time-to-digital converter. However, the result measured again after amplification is already the low-order part of the entire measurement result, which can be understood as the decimal part 0.232 in 213.232.

[0088] It should be noted that the tiny pulse width amplified by the time-amplifying frequency-discriminating phase detector is in a certain proportional relationship with the weight in the pulse width high-bit result output by the first time-to-digital converter;

[0089] In this embodiment, assuming that there is a 2Xn-bit binary code output in the end, then the high-order output is the high n bits of the 2Xn-bit binary code, and the low-order output is the low n bits of the 2Xn-bit binary code.

[0090] Taking the above 6-bit binary code as an example, the high n bits in 110011, that is, the high bit output, are the first three bits in 110011, and the low bit output is the last three bits. Now let XXXXXX represent a 6-bit binary number, then the weight of the third bit X is 8 times the weight of the sixth bit X, that is, the weights of each X in the six-bit binary number XXXXXX from left to right are 32, 16, 8, 4, 2, 1.

[0091] According to the above relationship, in a 2Xn binary number, the weight of the lowest bit in the upper n bits is twice the weight of the lowest bit in the lower n bits. n times.

[0092] That is, the weight of the least significant bit in the output of time-to-digital converter 1 is twice the weight of the least significant bit in the output of time-to-digital converter 2. n times.

[0093] Preferably, it also includes: a first reset module;

[0094] The first resetting module is connected to the splicing module;

[0095] The first reset module is used to output a reset signal after the splicing module outputs the pulse width measurement result to end the current pulse width measurement process.

[0096] In actual use, based on the consideration of multiple pulse width measurements, a first reset module is also provided; after the splicing module completes splicing and outputs the pulse width measurement result, the first reset module outputs a reset signal to end the current pulse width measurement process.

[0097] like Figure 6 As shown, preferably, the second pulse width measurement circuit comprises: a time amplification frequency detector, a second selector and a first time digital converter;

[0098] The second selector is respectively connected to the pulse converter, the time amplification frequency detector and the first time digital converter;

[0099] A second selector, used for selecting two rising edge signals as inputs when the first time digital converter does not obtain the pulse width high bit measurement result;

[0100] The second selector is also used to select the amplified tiny pulse width as input after the first time-to-digital converter obtains the pulse width high-bit measurement result;

[0101] The first time digital converter is also used to measure the amplified tiny pulse width to obtain the low-bit measurement result of the pulse width.

[0102] In actual application, the first pulse width measurement circuit can be combined with the second pulse width circuit, that is, a time amplification frequency detector, a second selector and a first time-to-digital converter are set in the second pulse width circuit, and the second selector is respectively connected to the pulse converter, the time amplification frequency detector and the first time-to-digital converter.

[0103] In this embodiment, the first time digital converter is used to obtain both the pulse width high-bit measurement result and the pulse width low-bit measurement result. When the first time digital converter does not obtain the pulse width high-bit measurement result, the second selector selects the rising edge signal as the input of the first time digital converter, and the first selector selects the rising edge signal as the input of the delay recovery module. When the first time digital converter has obtained the pulse width high-bit measurement result, the second selector selects the amplified tiny pulse width as the input of the first time digital converter.

[0104] Preferably, it also includes: an output saving module and a second resetting module;

[0105] The output saving module is connected to the splicing module and the first time digital converter respectively;

[0106] The second reset module is connected to the first time-to-digital converter;

[0107] The output saving module is used to save the pulse width high-bit measurement result and the pulse width low-bit measurement result when the pulse width measurement process is completed;

[0108] The second reset module is used to send a reset signal to reset the first time-to-digital converter after the output storage module finishes saving the pulse width high-bit measurement result.

[0109] In actual application, based on the consideration of multiple pulse width measurements, an output saving module and a second reset module are also provided; the output saving module and the second reset module are both connected to the first time digital converter; at the end of each pulse width measurement process, the pulse width high-bit measurement result and the pulse width low-bit measurement result are saved by the output saving module, and the saved content is sent to the splicing module for output; after the pulse width measurement result is saved, the parameters in the first time digital converter are reset by the second reset module, so that the pulse width low-bit measurement result measured by the first time digital converter is not affected by the pulse width high-bit measurement result.

[0110] like Figure 7 As shown, a pulse width measurement method is implemented based on any of the above-mentioned pulse width measurement systems, comprising the following steps:

[0111] S1. Convert the input pulse width signal into two rising edge signals through a pulse converter;

[0112] S2. Obtaining the pulse width high position measurement result according to the two rising edge signals through the first pulse width measurement circuit, and obtaining a small pulse width;

[0113] S3. Obtaining the pulse width low-bit measurement result according to the amplified tiny pulse width through the second pulse width measurement circuit;

[0114] S4. Splice the pulse width high-order measurement result and the pulse width low-order measurement result through the splicing module, and output the pulse width measurement result.

[0115] In actual application, the present invention also discloses a pulse width measurement method, which is to convert the input pulse width signal into a rising edge signal through a pulse converter, and roughly measure the pulse width high-order measurement result and the undetected small pulse width through a first pulse width measurement circuit; amplify the small pulse width through a second pulse width measurement circuit and then accurately measure the pulse width low-order measurement result; and use a splicing module to splice the pulse width high-order measurement result and the pulse width low-order measurement result to output the final pulse width measurement result.

[0116] In the embodiments provided in the present application, it should be understood that the disclosed methods and systems can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0117] In addition, all functional modules in the embodiments of the present invention may be integrated into one processor, or each module may be a separate device, or two or more modules may be integrated into one device; each functional module in the embodiments of the present invention may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0118] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by program instructions and related hardware. The aforementioned program instructions can be stored in a computer-readable storage medium. When the program instructions are executed, the steps of the above method embodiment are executed; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and other media that can store program codes.

[0119] It should be understood that the use of "system", "device", "unit" and / or "module" in this application is only a method for distinguishing different components, elements, parts, parts or assemblies at different levels. However, if other words can achieve the same purpose, the word can be replaced by other expressions.

[0120] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "a kind" and / or "the" do not refer to the singular, but also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of clearly identified steps and elements, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements. The elements defined by the sentence "includes a..." do not exclude the existence of other identical elements in the process, method, commodity or device that includes the elements.

[0121] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0122] If a flow chart is used in the present application, the flow chart is used to illustrate the operations performed by the system according to the embodiment of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, each step can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a certain step or several steps of operations can be removed from these processes.

[0123] The above is a detailed introduction to a pulse width measurement system and method provided by the present invention. The above description of the disclosed embodiments enables professionals and technicians in the field to implement or use the present invention. Various modifications to these embodiments will be obvious to professionals and technicians in the field, and the general principles defined in this article can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in this article, but will conform to the widest scope consistent with the principles and novel features disclosed in this article.

Claims

1. A pulse width measurement system, characterized in that: include: A pulse converter, a first pulse width measurement circuit, a second pulse width measurement circuit and a splicing module; The first pulse width measurement circuit is connected to the pulse converter and the second pulse width measurement circuit respectively; The splicing module is respectively connected to the first pulse width measurement circuit and the second pulse width measurement circuit; The pulse converter is used to convert the input pulse width signal into two rising edge signals; The first pulse width measurement circuit is used to obtain a pulse width high position measurement result according to the two rising edge signals, and obtain a tiny pulse width; The second pulse width measurement circuit is used to obtain a pulse width low-bit measurement result according to the amplified tiny pulse width; The splicing module is used to splice the pulse width high-bit measurement result and the pulse width low-bit measurement result, and output the pulse width measurement result; The pulse converter is specifically composed of a rising edge sensitive D flip-flop and a falling edge sensitive D flip-flop; Connecting a high level to the D terminals of the rising edge sensitive D flip-flop and the falling edge sensitive D flip-flop, so that the two D flip-flops respectively output a rising edge signal at the rising and falling edges of the pulse; The time difference between the two rising edge signals is equal to the pulse width; The first pulse width measurement circuit comprises: a first time-to-digital converter, a first selector, and a delay recovery module; The first selector is connected to the first time-to-digital converter and the delay recovery module respectively; The first time-to-digital converter is used to measure the two rising edge signals to obtain a pulse width high position measurement result; The second pulse width measurement circuit comprises: A time-amplifying phase-frequency detector and a second time-to-digital converter; The time amplification frequency detector and phase detector are connected to the delay recovery module and the second time-to-digital converter respectively; The first time-to-digital converter comprises: a first delay unit and a second delay unit and a first trigger and a second trigger. The first delay unit and the second delay unit are two delay modules of different sizes. The delay size is that the first delay unit is larger than the second delay unit. The first delay unit and the second delay unit are respectively used to delay two rising edge signals. State one is that the phase of the first rising edge signal is ahead of the second rising edge signal, and the difference is three time units. In state one, the first trigger outputs 1; after another delay, the phase of the first rising edge signal is ahead of the second rising edge signal by one time unit, and this is state two, and the second trigger outputs 1; continue to delay, the phase of the second rising edge signal is ahead of the first rising edge signal, and 0 is output at this time, which is state three; continue to delay to state four; during the conversion process, each time the time difference between the first rising edge signal and the second rising edge signal will be reduced by two unit times; determine that the time when the pulse width measurement is completed is the output of the first 0 output signal; The first selector is specifically used to select state four as a state for recovery when the first 0 output signal is output, and compensate for the four time units of the phase difference in the delay recovery module; The delay recovery module is used to compensate for the four time units of the phase difference, so that the time difference between the two rising edges of the input time amplification frequency detector and phase detector is consistent with the state 2, and a small pulse width is obtained; the small pulse width is the time difference between the two rising edges in the state 2; The time amplification frequency detector is used to amplify the small pulse width according to the preset weight relationship between the pulse width low-bit measurement result and the pulse width high-bit measurement result; The second time-to-digital converter is used to measure the amplified tiny pulse width to obtain a low-bit measurement result of the pulse width.

2. The pulse width measurement system according to claim 1, characterized in that: Also includes: A first reset module; The first resetting module is connected to the splicing module; The first reset module is used to output a reset signal after the splicing module outputs the pulse width measurement result to end the current pulse width measurement process.

3. The pulse width measurement system according to claim 1, wherein: The second pulse width measurement circuit comprises: a time-amplifying frequency-phase detector, a second selector and the first time-to-digital converter; The second selector is connected to the pulse converter, the time amplification frequency detector and the first time digital converter respectively; The second selector is used to select the two rising edge signals as input when the first time-to-digital converter does not obtain the pulse width high-bit measurement result; The second selector is further used to select the amplified tiny pulse width as input after the first time-to-digital converter obtains the pulse width high-bit measurement result; The first time-to-digital converter is also used to measure the amplified tiny pulse width to obtain a low-bit measurement result of the pulse width.

4. The pulse width measurement system according to claim 3, characterized in that: Also includes: An output saving module and a second reset module; The output storage module is connected to the splicing module and the first time-to-digital converter respectively; The second reset module is connected to the first time-to-digital converter; The output saving module is used to save the pulse width high bit measurement result and the pulse width low bit measurement result when the pulse width measurement process is finished; The second reset module is used to send a reset signal to reset the first time-to-digital converter after the output storage module finishes saving the pulse width high-bit measurement result.

5. A pulse width measurement method, implemented based on the pulse width measurement system according to any one of claims 1 to 4, characterized in that: The steps include: The input pulse width signal is converted into two rising edge signals by a pulse converter; Obtaining a pulse width high-bit measurement result according to the two rising edge signals through a first pulse width measurement circuit, and obtaining a tiny pulse width; The first pulse width measurement circuit comprises: a first time-to-digital converter, a first selector, and a delay recovery module; The first selector is connected to the first time-to-digital converter and the delay recovery module respectively; The first time-to-digital converter is used to measure the two rising edge signals to obtain a pulse width high position measurement result; The second pulse width measurement circuit comprises: A time-amplifying phase-frequency detector and a second time-to-digital converter; The time amplification frequency detector and phase detector are connected to the delay recovery module and the second time-to-digital converter respectively; The first time-to-digital converter comprises: a first delay unit and a second delay unit and a first trigger and a second trigger. The first delay unit and the second delay unit are two delay modules of different sizes. The delay size is that the first delay unit is larger than the second delay unit. The first delay unit and the second delay unit are respectively used to delay the two rising edge signals. State one is that the phase of the first rising edge signal is ahead of the second rising edge signal, and the difference is three time units. In state one, the first trigger outputs 1; after another delay, the phase of the first rising edge signal is ahead of the second rising edge signal by one time unit, and this is state two, and the second trigger outputs 1; continue to delay, the phase of the second rising edge signal is ahead of the first rising edge signal, and 0 is output at this time, which is state three; continue to delay to state four; during the conversion process, each time the time difference between the first rising edge signal and the second rising edge signal will be reduced by two unit times; determine that the time when the pulse width measurement is completed is the output of the first 0 output signal; By means of the first selector, when the first 0 output signal is output, the state four is selected as the state for recovery, and in the delay recovery module, the four time units of the phase difference are compensated; The delay recovery module compensates for the four time units of the phase difference, so that the time difference between the two rising edges of the input time amplification frequency detector and phase detector is consistent with the state 2, and a small pulse width is obtained; the small pulse width is the time difference between the two rising edges in the state 2; By means of the time amplification frequency detector and phase detector, the tiny pulse width is amplified according to a preset weight relationship between the pulse width low-bit measurement result and the pulse width high-bit measurement result; Measuring the amplified tiny pulse width by the second time-to-digital converter to obtain the pulse width low-bit measurement result; The pulse width high-bit measurement result and the pulse width low-bit measurement result are spliced ​​together through a splicing module to output the pulse width measurement result.