TDC control system, method and film thickness detection device
阅读说明:本技术 Tdc控制系统、方法和膜厚检测装置 (TDC control system, method and film thickness detection device ) 是由 弗拉基米尔·克雷姆尼察 王龙 敬文华 于 2019-11-20 设计创作,主要内容包括:本发明的实施例提供了一种TDC控制系统、方法和膜厚检测装置,涉及质量检测技术领域。该TDC控制系统包括均与微处理器电连接的状态机、所述第一数据选择输出模块和时间数字转换器,状态机与第二数据选择输出模块电连接,第一数据选择输出模块、第二数据选择输出模块均与时间数字转换器电连接,第一数据选择输出模块和第二数据选择输出模块均包括多个具有不同延时时长的延时通道。通过第一数据选择输出模块和第二数据选择输出模块可调节开始信号和结束信号向时间数字转换器发送的时间,使得较短延时链长度的时间数字转换器能够得到准确和稳定的第一时间间隔值和第二时间间隔值,从而获得更准确和稳定的待测频率波形的频率。(The embodiment of the invention provides a TDC control system, a TDC control method and a film thickness detection device, and relates to the technical field of quality detection. The TDC control system comprises a state machine, a first data selection output module and a time-to-digital converter, wherein the state machine, the first data selection output module and the time-to-digital converter are electrically connected with a microprocessor, the state machine is electrically connected with a second data selection output module, the first data selection output module and the second data selection output module are electrically connected with the time-to-digital converter, and the first data selection output module and the second data selection output module respectively comprise a plurality of delay channels with different delay time lengths. The time for sending the start signal and the end signal to the time-to-digital converter can be adjusted through the first data selection output module and the second data selection output module, so that the time-to-digital converter with shorter delay chain length can obtain an accurate and stable first time interval value and a stable second time interval value, and more accurate and stable frequency of the frequency waveform to be measured is obtained.)
1. A TDC control system is characterized by comprising a microprocessor, a state machine, a first data selection output module, a second data selection output module and a time-to-digital converter, wherein the state machine, the first data selection output module and the time-to-digital converter are electrically connected with the microprocessor, the state machine is electrically connected with the second data selection output module, the first data selection output module and the second data selection output module are electrically connected with the time-to-digital converter, and the first data selection output module and the second data selection output module respectively comprise a plurality of delay channels with different delay time lengths;
the state machine is used for generating a first measuring signal according to the received frequency waveform to be measured and the reference waveform when receiving a first working signal sent by the microprocessor, and sending the first measuring signal to the first data selection output module; when a second working signal sent by the microprocessor is received, generating a second measuring signal according to the frequency waveform to be measured and the reference waveform, and sending the second measuring signal to the second data selection output module;
the microprocessor is used for sending a first control instruction to the first data selection output module and sending a second control instruction to the state machine so that the state machine can generate a selection instruction according to the second control instruction, and the state machine sends the selection instruction to the second data selection output module;
the first data selection output module is used for selecting a delay channel corresponding to the first control instruction according to the first control instruction to perform delay processing on the first measurement signal to obtain a start signal and sending the start signal to the time-to-digital converter;
the second data selection output module is used for selecting a delay channel corresponding to the selection instruction according to the selection instruction to perform delay processing on the second measurement signal to obtain an end signal and sending the end signal to the time-to-digital converter;
the time-to-digital converter is used for calculating a first time interval value and a second time interval value according to the starting signal and the ending signal and sending the first time interval value and the second time interval value to the microprocessor;
and the microprocessor is used for calculating the frequency of the frequency waveform to be measured according to the first time interval value and the second time interval value.
2. The TDC control system according to claim 1, wherein the state machine is configured to, when receiving a first working signal sent by the microprocessor, if receiving the frequency waveform to be measured and the reference waveform, output the first measurement signal at a time when an amplitude of the reference waveform jumps after the amplitude of the frequency waveform to be measured jumps; and the second measuring signal is also used for outputting the second measuring signal at the moment when the amplitude of the reference waveform jumps after the amplitude of the frequency waveform to be measured jumps when the second working signal sent by the microprocessor is received.
3. The TDC control system according to claim 1, wherein the first data selection output module comprises a first data selector and a plurality of buffers, the plurality of buffers are electrically connected to the state machine in sequence, the first data selector is electrically connected to the state machine and the plurality of buffers to form a plurality of delay paths with different delay durations, and the first data selector is further electrically connected to both the microprocessor and the time-to-digital converter.
4. The TDC control system according to claim 1, wherein the second data selection output module comprises a second data selector electrically connected to the state machine and an inverter electrically connected between the state machine and the second data selector to form a plurality of delay paths having different delay durations, and the second data selector is further electrically connected to the time-to-digital converter.
5. The TDC control system according to claim 1, further comprising a delay module, wherein the state machine is electrically connected to the first data selection output module and the second data selection output module through the delay module;
the time delay module is used for carrying out time delay processing on the first measuring signal or the second measuring signal, sending the first measuring signal after time delay to the first data selection output module, and sending the second measuring signal after time delay to the second data selection output module.
6. The TDC control system of claim 5, further comprising a counting module electrically connected to the state machine, the microprocessor, and the delay module;
the counting module is used for calculating the number of pulses of the frequency waveform to be detected and the number of pulses of the reference waveform according to the delayed first measuring signal and the delayed second measuring signal output by the delay module, and transmitting the number of pulses of the frequency waveform to be detected and the number of pulses of the reference waveform to the microprocessor;
and the microprocessor is used for calculating the frequency of the frequency waveform to be detected according to the number of pulses of the frequency waveform to be detected, the number of pulses of the reference waveform, the first time interval value and the second time interval value.
7. The TDC control system of claim 6, wherein the counting module comprises a first counter and a second counter, the first counter is electrically connected to the state machine, the microprocessor and the delay module, and the second counter is electrically connected to the state machine, the microprocessor and the delay module;
the first counter is used for starting to count the pulses of the frequency waveform to be measured according to the delayed first measuring signal and stopping counting the pulses of the frequency waveform to be measured according to the delayed second measuring signal so as to obtain the number of the pulses of the frequency waveform to be measured;
and the second counter is used for starting to count the pulses of the reference waveform according to the delayed first measuring signal and stopping counting the pulses of the reference waveform according to the delayed second measuring signal so as to obtain the number of the pulses of the reference waveform.
8. A TDC control method is characterized in that the TDC control method is applied to a TDC control system, the TDC control system comprises a microprocessor, a state machine, a first data selection output module, a second data selection output module and a time-to-digital converter, the state machine, the first data selection output module and the time-to-digital converter are all electrically connected with the microprocessor, the state machine is electrically connected with the second data selection output module, the first data selection output module and the second data selection output module are all electrically connected with the time-to-digital converter, the first data selection output module and the second data selection output module both comprise a plurality of delay channels with different delay time lengths, and the method comprises the following steps:
when the state machine receives a first working signal sent by the microprocessor, a first measuring signal is generated according to the received frequency waveform to be measured and the reference waveform, and the first measuring signal is sent to the first data selection output module; when a second working signal sent by the microprocessor is received, generating a second measuring signal according to the frequency waveform to be measured and the reference waveform, and sending the second measuring signal to the second data selection output module;
the microprocessor sends a first control instruction to the first data selection output module and a second control instruction to the state machine so that the state machine can generate a selection instruction according to the second control instruction, and the state machine sends the selection instruction to the second data selection output module;
the first data selection output module selects a delay channel corresponding to the first control instruction according to the first control instruction to perform delay processing on the first measurement signal to obtain a start signal, and sends the start signal to the time-to-digital converter;
the second data selection output module selects a delay channel corresponding to the selection instruction according to the selection instruction to perform delay processing on the second measurement signal to obtain an end signal, and sends the end signal to the time-to-digital converter;
the time-to-digital converter calculates a first time interval value and a second time interval value according to the starting signal and the ending signal and sends the first time interval value and the second time interval value to the microprocessor;
and the microprocessor calculates the frequency of the frequency waveform to be measured according to the first time interval value and the second time interval value.
9. The TDC control method according to claim 8, wherein the microprocessor is preset with preset interval values, the microprocessor is prestored with a mapping table, the mapping table is used for representing the corresponding relationship between each first time interval value and each delay channel of the first data selection output module, and the corresponding relationship between each second time interval value and each delay channel of the second data selection output module, the step of sending the first control command to the first data selection output module by the microprocessor, and the step of sending the second control command to the state machine comprises:
when the microprocessor sends a first control instruction to the first data selection output module for the first time and sends a second control instruction to the state machine for the first time, the microprocessor determines the first control instruction and the second control instruction according to preset initial channel parameters;
when the microprocessor sends a first control instruction to the first data selection output module for a non-first time and sends a second control instruction to the state machine for a non-first time, the microprocessor matches a first time interval value and a second time interval value generated by the time-to-digital converter with the mapping relation table to determine the first control instruction and the second control instruction; so that the new first and second time interval values generated by the time to digital converter match the preset interval value.
10. A film thickness detection device is characterized by comprising a quartz crystal microbalance, a high-frequency oscillator and the TDC control system as claimed in any one of claims 1 to 7, wherein the quartz crystal microbalance and the high-frequency oscillator are electrically connected with the TDC control system;
the quartz crystal microbalance is used for generating a frequency waveform to be detected;
the high frequency oscillator is used for generating a reference waveform.
Technical Field
The invention relates to the technical field of quality detection, in particular to a TDC control system and method and a film thickness detection device.
Background
The quartz crystal microbalance is a very sensitive mass detection instrument, the measurement precision of which can reach nanogram level, and the mass change which can be measured theoretically is equal to a fraction of a single sub-layer or an atomic layer. The quartz crystal microbalance utilizes the piezoelectric effect of quartz crystal, converts the surface quality change of the quartz crystal electrode into the frequency change of the output electric signal of the quartz crystal oscillation circuit, and further obtains high-precision data through frequency detection equipment.
The length of a delay chain of a Time-to-Digital converter (TDC) used in the conventional frequency detection device is related to a start signal and an end signal generated by a frequency waveform to be detected output by a quartz crystal microbalance. When the time difference between the start signal and the end signal is large, the delay chain of the time-to-digital converter is long, so that the time-to-digital converter is easily interfered by the outside, the measurement precision is reduced, the hardware cost is increased, and the hardware resource is wasted.
Disclosure of Invention
The invention aims to provide a TDC control system, a TDC control method and a film thickness detection device, which can generate a proper start signal and an end signal, reduce the interference of the outside on a time-to-digital converter, improve the measurement precision and save hardware resources.
Embodiments of the invention may be implemented as follows:
in a first aspect, an embodiment of the present invention provides a TDC control system, including a microprocessor, a state machine, a first data selection output module, a second data selection output module, and a time-to-digital converter, where the state machine, the first data selection output module, and the time-to-digital converter are all electrically connected to the microprocessor, the state machine is electrically connected to the second data selection output module, the first data selection output module and the second data selection output module are all electrically connected to the time-to-digital converter, and the first data selection output module and the second data selection output module both include a plurality of delay channels with different delay durations; the state machine is used for generating a first measuring signal according to the received frequency waveform to be measured and the reference waveform when receiving a first working signal sent by the microprocessor, and sending the first measuring signal to the first data selection output module; when a second working signal sent by the microprocessor is received, generating a second measuring signal according to the frequency waveform to be measured and the reference waveform, and sending the second measuring signal to the second data selection output module; the microprocessor is used for sending a first control instruction to the first data selection output module and sending a second control instruction to the state machine so that the state machine can generate a selection instruction according to the second control instruction, and the state machine sends the selection instruction to the second data selection output module; the first data selection output module is used for selecting a delay channel corresponding to the first control instruction according to the first control instruction to perform delay processing on the first measurement signal to obtain a start signal and sending the start signal to the time-to-digital converter; the second data selection output module is used for selecting a delay channel corresponding to the selection instruction according to the selection instruction to perform delay processing on the second measurement signal to obtain an end signal and sending the end signal to the time-to-digital converter; the time-to-digital converter is used for calculating a first time interval value and a second time interval value according to the starting signal and the ending signal and sending the first time interval value and the second time interval value to the microprocessor; and the microprocessor is used for calculating the frequency of the frequency waveform to be measured according to the first time interval value and the second time interval value.
In a second aspect, an embodiment of the present invention provides a TDC control method, which is applied to a TDC control system, where the TDC control system includes a microprocessor, a state machine, a first data selection output module, a second data selection output module, and a time-to-digital converter, the state machine, the first data selection output module, and the time-to-digital converter are all electrically connected to the microprocessor, the state machine is electrically connected to the second data selection output module, the first data selection output module and the second data selection output module are all electrically connected to the time-to-digital converter, and the first data selection output module and the second data selection output module each include a plurality of delay channels with different delay durations, and the method includes: when the state machine receives a first working signal sent by the microprocessor, a first measuring signal is generated according to the received frequency waveform to be measured and the reference waveform, and the first measuring signal is sent to the first data selection output module; when a second working signal sent by the microprocessor is received, generating a second measuring signal according to the frequency waveform to be measured and the reference waveform, and sending the second measuring signal to the second data selection output module; the microprocessor sends a first control instruction to the first data selection output module and a second control instruction to the state machine so that the state machine can generate a selection instruction according to the second control instruction, and the state machine sends the selection instruction to the second data selection output module; the first data selection output module selects a delay channel corresponding to the first control instruction according to the first control instruction to perform delay processing on the first measurement signal to obtain a start signal, and sends the start signal to the time-to-digital converter; the second data selection output module selects a delay channel corresponding to the selection instruction according to the selection instruction to perform delay processing on the second measurement signal to obtain an end signal, and sends the end signal to the time-to-digital converter; the time-to-digital converter calculates a first time interval value and a second time interval value according to the starting signal and the ending signal and sends the first time interval value and the second time interval value to the microprocessor; and the microprocessor calculates the frequency of the frequency waveform to be measured according to the first time interval value and the second time interval value.
In a third aspect, an embodiment of the present invention provides a film thickness detection apparatus, including a quartz crystal microbalance and a TDC control system according to any one of the foregoing embodiments of a high-frequency oscillator, where the quartz crystal microbalance and the high-frequency oscillator are both electrically connected to the TDC control system; the quartz crystal microbalance is used for generating a frequency waveform to be detected; the high frequency oscillator is used for generating a reference waveform.
The embodiment of the invention has the advantages that the first data selection output module selects the delay channel corresponding to the first control instruction according to the first control instruction sent by the microprocessor to carry out delay processing on the first measurement signal to obtain a start signal, and sends the start signal to the time-to-digital converter; selecting a delay channel corresponding to the selection instruction according to the selection instruction sent by the state machine through a second data selection output module to perform delay processing on the second measurement signal to obtain an end signal, and sending the end signal to the time-to-digital converter; and the time-to-digital converter calculates a first time interval value and a second time interval value according to the start signal and the end signal, and sends the first time interval value and the second time interval value to the microprocessor so that the microprocessor can calculate the frequency of the frequency waveform to be measured according to the first time interval value and the second time interval value. Therefore, the time of the start signal sent to the time digital converter can be adjusted by the first data selection output module through selection of the delay channels of the first data selection output module and the second data selection output module by the microprocessor, the time of the end signal sent to the time digital converter can be adjusted by the second data selection output module, the condition that the time difference between the start signal and the end signal is large can be avoided, the time digital converter with the shorter delay chain length can obtain the accurate and stable first time interval value and second time interval value, the more accurate and stable frequency of the frequency waveform to be detected is obtained, and hardware resources of the TDC control system are saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a film thickness detection apparatus according to an embodiment of the present invention;
fig. 2 is a block diagram of a TDC control system according to an embodiment of the present invention;
FIG. 3 is a circuit diagram of a TDC control system according to an embodiment of the present invention;
FIG. 4 is a circuit diagram of a time-to-digital converter according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a frequency waveform to be measured and a reference waveform obtained by the TDC control system according to the embodiment of the present invention;
fig. 6 is a block diagram of another TDC control system according to an embodiment of the present invention;
FIG. 7 is a circuit diagram of another TDC control system according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating a TDC control method according to an embodiment of the present invention.
Icon: 10-a film thickness detection device; 100-TDC control system; 110-a state machine; 120-a first data selection output module; 121-a first data selector; 122-a buffer; 130-a second data selection output module; 131-a second data selector; 132-an inverter; 140-a time-to-digital converter; 150-a delay module; 160-a counting module; 161-a first counter; 162-a second counter; 170-a communication module; 180-a microprocessor; 300-quartz crystal microbalance; 400-high frequency oscillator.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Referring to fig. 1, a block diagram of an implementable structure of a film
Referring to fig. 2, which is a block diagram of an implementable structure of the
In this embodiment, the
It can be understood that the
In other words, after the
As shown in fig. 3, which is a circuit diagram of an implementation of the
In this embodiment, the number of the
It is understood that the
The first buffer, the second buffer and the third buffer all play a role of delay, and the delay duration of each
In this embodiment, the second data
It is understood that a first input terminal of the
The
In the present embodiment, the
Referring to fig. 4, which is a schematic structural diagram of an implementation of the time-to-
The time-to-
As shown in fig. 5, which is a schematic diagram of a frequency waveform to be measured and a reference waveform provided in the embodiment of the present invention, in fig. 5, tau1 is a first time interval value, tau2 is a second time interval value, Nq is the number of pulses of the frequency waveform to be measured, Nr is the number of pulses of the reference waveform, and Tm is a measurement duration of one-time frequency detection. It is understood that the first time interval value may be a time difference between a rising edge or a falling edge of the frequency waveform to be measured and an adjacent rising edge or a falling edge of the reference waveform, and the second time interval value may be a time difference between a rising edge or a falling edge of the frequency waveform to be measured and an adjacent rising edge or a falling edge of the reference waveform. The first time interval shown in fig. 5 is the time difference between the rising edge of the frequency waveform to be measured and the adjacent rising edge of the reference waveform, and the second time interval is also the time difference between the rising edge of the frequency waveform to be measured and the adjacent rising edge of the reference waveform.
In the present embodiment, the first control instruction transmitted from the
It is understood that, when the
The mapping relationship table includes a corresponding relationship between each of the first time interval value and the second time interval value and each of the delay channels of the first data
It can be seen that, by selecting the delay channels of the first data
Referring to fig. 6, which is a block diagram of another implementable structure of the
In this embodiment, the
It can be understood that the delay processing performed by the
The first delay measurement signal and the third delay measurement signal are sent to the first data
Further, as shown in fig. 7, which is an implementable schematic diagram of the
In this embodiment, the number of the plurality of D flip-flops may be set according to actual situations, and the detailed description is given by taking 3D flip-flops as an example. The plurality of D flip-flops include a D flip-flop a, a D flip-flop b, and a D flip-flop c, and the
After the state machine 110 generates the first measurement signal, the first measurement signal generates a first delay measurement signal through the D flip-flop a and the D flip-flop b, and the first measurement signal generates a second delay measurement signal through the D flip-flop a, the D flip-flop b, and the D flip-flop C. Similarly, the second measurement signal may generate a third delay measurement signal through the D flip-flop a and the D flip-flop b, and the second measurement signal may generate a fourth delay measurement signal through the D flip-flop a, the D flip-flop b, and the D flip-flop C. It can be understood that the first measurement signal generates a first delay measurement signal after passing through the sum of the delay durations of the D flip-flop a and the D flip-flop b, and the first measurement signal generates a second delay measurement signal after passing through the sum of the delay durations of the D flip-flop a, the D flip-flop b and the D flip-flop C; the second measurement signal generates a third delay measurement signal after passing through the sum of the delay time of the D trigger a and the D trigger b, and the second measurement signal generates a fourth delay measurement signal after passing through the sum of the delay time of the D trigger a, the delay time of the D trigger b and the delay time of the D trigger C.
In another embodiment, D flip-flop a is electrically connected to
In this embodiment, by setting the
Further, as shown in fig. 6, the
It can be understood that, as shown in fig. 7, the
The
In this embodiment, after receiving the number of pulses of the frequency waveform to be measured, the number of pulses of the reference waveform, the first time interval value, and the second time interval value, the
fq=Nq*fr/(Nr+fr(tau1-tau2));
Wherein Nq represents the number of pulses of the frequency waveform to be measured, and fr represents the frequency of the reference waveform; nr represents the number of pulses of the reference waveform; tau1 represents a first time interval value; tau2 represents the second time interval value.
In this embodiment, the number of pulses of the frequency waveform to be measured, the number of pulses of the reference waveform, the first time interval value, and the second time interval value can be generated synchronously by the delay function of the
Further, in the present embodiment, the
In this embodiment, the
Fig. 8 is a schematic flow chart of the TDC control method according to the present embodiment. It should be noted that the TDC control method according to the embodiment of the present application is not limited by fig. 8 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the TDC control method according to the embodiment of the present application may be interchanged according to actual needs, or some steps may be omitted or deleted. It should be noted that the basic principle and the generated technical effects of the TDC control method provided by the present embodiment are the same as those of the foregoing embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the foregoing embodiments. The TDC control method can be applied to the
Step S101, when receiving a first working signal sent by a microprocessor, a state machine generates a first measuring signal according to a received frequency waveform to be measured and a reference waveform, and sends the first measuring signal to a first data selection output module; and when a second working signal sent by the microprocessor is received, generating a second measuring signal according to the frequency waveform to be measured and the reference waveform, and sending the second measuring signal to a second data selection output module.
It is understood that step S101 may be performed by the
And step S102, the microprocessor sends a first control instruction to the first data selection output module and sends a second control instruction to the state machine so that the state machine can generate a selection instruction according to the second control instruction, and the state machine sends the selection instruction to the second data selection output module.
In this embodiment, the
When the
It is understood that step S102 may be performed by the
And step S103, the first data selection output module selects a delay channel corresponding to the first control instruction according to the first control instruction to perform delay processing on the first measurement signal to obtain a start signal, and sends the start signal to the time-to-digital converter.
It is understood that step S103 may be performed by the first data
And step S104, the second data selection output module selects a delay channel corresponding to the selection instruction according to the selection instruction to perform delay processing on the second measurement signal to obtain an end signal, and the end signal is sent to the time-to-digital converter.
It is understood that step S104 may be performed by the second data
And step S105, calculating a first time interval value and a second time interval value by the time-to-digital converter according to the starting signal and the ending signal, and sending the first time interval value and the second time interval value to the microprocessor.
It is understood that step S105 may be performed by the time-to-
And step S106, calculating the frequency of the frequency waveform to be measured by the microprocessor according to the first time interval value and the second time interval value.
It is understood that step S106 may be performed by the
In summary, embodiments of the present invention provide a TDC control system, a method, and a film thickness detection apparatus, where the TDC control system includes a state machine, a first data selection output module, a second data selection output module, and a time-to-digital converter, the state machine, the first data selection output module, and the time-to-digital converter are all electrically connected to a microprocessor, the state machine is electrically connected to the second data selection output module, the first data selection output module, and the second data selection output module are both electrically connected to the time-to-digital converter, and the first data selection output module and the second data selection output module each include a plurality of delay channels with different delay durations. Selecting a delay channel corresponding to a first control instruction according to the first control instruction sent by the microprocessor through a first data selection output module to perform delay processing on the first measurement signal to obtain a start signal, and sending the start signal to a time-to-digital converter; selecting a delay channel corresponding to the selection instruction according to the selection instruction sent by the state machine through a second data selection output module to perform delay processing on the second measurement signal to obtain an end signal, and sending the end signal to the time-to-digital converter; and the time-to-digital converter calculates a first time interval value and a second time interval value according to the start signal and the end signal, and sends the first time interval value and the second time interval value to the microprocessor so that the microprocessor can calculate the frequency of the frequency waveform to be measured according to the first time interval value and the second time interval value.
Therefore, the time for sending the start signal to the time-to-digital converter can be adjusted through the first data selection output module, the time for sending the end signal to the time-to-digital converter can be adjusted through the second data selection output module, and the situation that the time difference between the start signal and the end signal is large can be further avoided, so that the time-to-digital converter with the short delay chain length can obtain the accurate and stable first time interval value and second time interval value, the more accurate and stable frequency of the frequency waveform to be detected can be obtained, and the hardware resources of the TDC control system can be saved.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种红木家具含水率检测装置